Wocart

@wocart/theme v4.1.0


@wocart/theme / index / PreviewPageMessage

Type Alias: PreviewPageMessage

PreviewPageMessage = object & ({ instances: PreviewInstance[]; type: "ready"; } | { instances: PreviewInstance[]; type: "layout"; } | { instances: PreviewInstance[]; revision: number | null; type: "rendered"; } | { id: string; type: "select"; } | { id: string | null; type: "hover"; } | { reason: string; revision: number | null; type: "error"; })

What the preview page tells the editor.

Type Declaration

source

source: "wocart-preview"

version

version: typeof PREVIEW_PROTOCOL_VERSION