@vcp-dev/site-edit-bridge 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-bootstrap.d.ts +7 -0
- package/dist/auto-bootstrap.js +4 -4
- package/dist/index.js +13 -13
- package/dist/next-dev-server.js +3 -3
- package/package.json +4 -4
package/dist/auto-bootstrap.d.ts
CHANGED
|
@@ -67,6 +67,13 @@ export type SiteEditBootstrapClient = SiteEditBridgeClient & {
|
|
|
67
67
|
type BridgeFrameRuntimeRequestBody = Extract<SiteEditFrameRuntimeRequestBody, {
|
|
68
68
|
kind: "bridge-initialize-session" | "bridge-get-document" | "bridge-get-history-status" | "bridge-get-style-context" | "bridge-ensure-document-version" | "bridge-acknowledge-document-version" | "bridge-get-object-edit-context" | "bridge-get-class-name-source" | "bridge-get-source-tree" | "bridge-get-source-file" | "bridge-resolve-source-location" | "bridge-execute" | "bridge-undo" | "bridge-redo" | "bridge-subscribe" | "bridge-unsubscribe";
|
|
69
69
|
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Adds the section identity required by Designer's preview-only interaction
|
|
72
|
+
* surface without writing it back into the user's snapshot source. Explicit
|
|
73
|
+
* source metadata always wins; generated identities are deterministic from
|
|
74
|
+
* the instrumented edit key and the repeated-instance occurrence.
|
|
75
|
+
*/
|
|
76
|
+
export declare function syncRuntimeSiteBlockIds(documentLike: Pick<Document, "querySelectorAll">, enabled: boolean): void;
|
|
70
77
|
export declare function resolveSiteEditRouteId(pathname: string, basePath?: string): string;
|
|
71
78
|
export declare function readVcpPageTemplateContextMarker(documentLike: Pick<Document, "querySelectorAll">): SiteEditCompositionContext | null;
|
|
72
79
|
export declare function resolveBrowserCompositionContext(input: {
|