Skip to main content

Module platform

Module platform 

Source
Expand description

Host access stays here so components keep renderer-independent signatures.

Eval-capable hosts use a fixed script and a data channel. SSR and native hosts report Unsupported, allowing callers to keep their native markup fallback.

Structs§

Capabilities
Capabilities detected after mount, never used to change the initial tree.
DomBridge
An asynchronous host bridge; errors are acknowledged by the host.
EditorSession
Upstream’s editor binding attached to one .fc-editor. Events arrive in order. Dropping the session, as unmounting the editor does when its task ends, calls the binding’s destroy(), so no listener outlives the component.
MenuPoint
A viewport point a popup opens at, in CSS pixels.
PreferenceWatch
A user preference as it changes, from DomBridge::watch.

Enums§

DomError
A host operation could not be performed.
Edge
Which side of a popup sits at a point’s x.
EditorEvent
Something upstream’s editor binding reported.
MediaPreference
A user preference the host reports through a media query. Fixed queries only, so no caller can pass the bridge arbitrary text.
ScrollBlock
The position to which a node is scrolled.

Functions§

location_query
Read the web entrypoint’s query string. Non-web hosts supply initial props. This is input to the application, not capability-dependent component markup.