Skip to content

PreviewReceiver

The site’s end of the bridge, framework-agnostic — <PreviewBridge> is a thin React wrapper over it.

readonly composerOrigin: string | null

The origin Composer turned out to speak from — null until the first accepted message.

dispose(): void

void


postEdit(pin, kind, target): void

number

PreviewPinKind

PreviewTarget

void


postError(code, message): void

string

string

void


postNavigated(path): void

string

void


postRendered(seq, pins): void

number

PreviewPin[]

void


postStandalone(keys): void

string[]

void


ready(): void

Announce the bridge. Before an origin is known this goes to every allowed origin; the browser delivers to whichever one actually holds the parent.

void