Skip to content
HomePagesHomePages template kit

EditorBridgeSelection

The current canvas selection as the bridge carries it: document-wide, section instance identity included.

The current canvas selection as the bridge carries it: document-wide, section instance identity included. A discriminated union rather than flat optionals so a slot selection structurally always carries its slot id.

Import from @homepages/template-kit or @homepages/template-kit/island-runtime.

export type EditorBridgeSelection = {
kind: "section";
instanceId: string;
} | {
kind: "slot";
instanceId: string;
slotId: string;
itemIndex?: number;
fieldName?: string;
};