This is the API surface between components. If a behavior crosses component boundaries, it must be an event.
kweb:*.event.detail is JSON-serializable.composed: true so they can cross shadow DOM boundaries.Most events include:
webId (string)source (string, e.g. graph, timeline, map, bio, search, trails, spheres, editor)at (ISO timestamp, optional)kweb:navigateCommit or preview navigation to a node.
detail:
webIdnodeIdmode (preview | commit)sourcekweb:selection-changedEmitted by app shell after a commit.
detail:
webIdnodeIdkweb:hover-changedEmitted by app shell after a preview change.
detail:
webIdnodeId (string or null)kweb:focus-linkHighlight or focus a link.
detail:
webIdlinkIdmode (preview | commit)sourcekweb:time-range-setSet an active time filter.
detail:
webIdstart (ISO string or year string)end (ISO string or year string)mode (preview | commit)sourcekweb:time-range-clearedClear time filter.
detail:
webIdsourcekweb:map-focusFocus a geographic point.
detail:
webIdlatlonzoom (optional number)mode (preview | commit)sourcekweb:search-querySearch query changed.
detail:
webIdquerysourcekweb:search-selectUser selected a search result.
detail:
webIdnodeIdmode (preview | commit)sourcekweb:trail-stepUser navigated via trail.
detail:
webIdnodeIdindexmode (preview | commit)sourcekweb:trail-saveSave current trail as a journey.
detail:
webIdtitlesteps (array of node ids)kweb:node-createdetail:
webIddraft (node partial)kweb:node-updatedetail:
webIdnodeIdpatch (partial fields)kweb:node-deletedetail:
webIdnodeIdkweb:link-createdetail:
webIddraft (link partial)kweb:link-updatedetail:
webIdlinkIdpatchkweb:link-deletedetail:
webIdlinkIdkweb:web-createdetail:
titledescription (optional)kweb:web-switchdetail:
webIdkweb:web-exportdetail:
webIdformat (zip | folder)kweb:web-importdetail:
formatsource (file picker / drag drop)kweb:logA structured log event for the inspector.
detail:
level (info | warn | error)messagedata (optional object)