@vcp-dev/site-edit-bridge 0.10.1 → 0.10.3
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 +8 -11
- package/dist/auto-bootstrap.js +13 -13
- package/dist/index.js +15 -15
- package/dist/next-dev-server.d.ts +2 -0
- package/dist/next-dev-server.js +3 -3
- package/dist/protocol.d.ts +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.js +2 -2
- package/dist/window-message.d.ts +2 -0
- package/dist/window-message.js +1 -1
- package/package.json +3 -3
package/dist/auto-bootstrap.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SiteEditCompositionContext, SiteEditRenderDocument, SiteEditRenderEntry } from "@vcp-dev/contracts";
|
|
1
|
+
import type { SiteEditCompositionContext, SiteEditCompositionSelector, SiteEditRenderDocument, SiteEditRenderEntry } from "@vcp-dev/contracts";
|
|
2
2
|
import { type SiteEditBridgeClient, type SiteEditBridge, type SiteEditBridgeConnectionStatus, type SiteEditBridgeConnectionState } from "./client.js";
|
|
3
3
|
import { type SiteEditFrameRuntimeBridgeStatus, type SiteEditFrameRuntimeRequestBody } from "./window-message.js";
|
|
4
4
|
declare global {
|
|
@@ -18,12 +18,6 @@ declare global {
|
|
|
18
18
|
}
|
|
19
19
|
export declare const VCP_SITE_EDIT_ROUTE_READY_EVENT = "vcp-site-edit:route-ready";
|
|
20
20
|
export declare const VCP_SITE_EDIT_BRIDGE_STATUS_EVENT = "vcp-site-edit:bridge-status";
|
|
21
|
-
export declare const VCP_PAGE_TEMPLATE_CONTEXT_MARKER_ATTRIBUTE = "data-vcp-page-template-context";
|
|
22
|
-
export declare const VCP_PAGE_TEMPLATE_CONTEXT_MARKER_VALUE = "1";
|
|
23
|
-
export declare const VCP_PAGE_TEMPLATE_ROUTE_ID_ATTRIBUTE = "data-vcp-route-id";
|
|
24
|
-
export declare const VCP_PAGE_TEMPLATE_EFFECTIVE_TEMPLATE_ID_ATTRIBUTE = "data-vcp-effective-template-id";
|
|
25
|
-
export declare const VCP_PAGE_TEMPLATE_CONTEXT_MARKER_SELECTOR = "[data-vcp-page-template-context=\"1\"]";
|
|
26
|
-
export declare const SITE_EDIT_COMPOSITION_MARKER_INVALID = "SITE_EDIT_COMPOSITION_MARKER_INVALID";
|
|
27
21
|
export declare const SITE_EDIT_COMPOSITION_RENDER_MISMATCH = "SITE_EDIT_COMPOSITION_RENDER_MISMATCH";
|
|
28
22
|
export type SiteEditRouteReadyDetail = {
|
|
29
23
|
composition: SiteEditCompositionContext;
|
|
@@ -40,6 +34,8 @@ export type SiteEditAutoBootstrapOptions = {
|
|
|
40
34
|
bridge_session_key?: string;
|
|
41
35
|
defer_initial_sync?: boolean;
|
|
42
36
|
runtime_versions?: SiteEditRuntimeVersions;
|
|
37
|
+
launch_id?: string;
|
|
38
|
+
snapshot_id?: string;
|
|
43
39
|
create_client?: (url: string) => SiteEditBootstrapClient;
|
|
44
40
|
schedule_after_navigation?: (callback: () => void) => void;
|
|
45
41
|
};
|
|
@@ -57,6 +53,8 @@ export type SiteEditAutoBootstrapSignature = {
|
|
|
57
53
|
engine: string | null;
|
|
58
54
|
};
|
|
59
55
|
sessionKeyFingerprint: string | null;
|
|
56
|
+
launchId: string | null;
|
|
57
|
+
snapshotId: string | null;
|
|
60
58
|
};
|
|
61
59
|
export type SiteEditBootstrapClient = SiteEditBridgeClient & {
|
|
62
60
|
connect(): Promise<void>;
|
|
@@ -75,12 +73,11 @@ type BridgeFrameRuntimeRequestBody = Extract<SiteEditFrameRuntimeRequestBody, {
|
|
|
75
73
|
*/
|
|
76
74
|
export declare function syncRuntimeSiteBlockIds(documentLike: Pick<Document, "querySelectorAll">, enabled: boolean): void;
|
|
77
75
|
export declare function resolveSiteEditRouteId(pathname: string, basePath?: string): string;
|
|
78
|
-
export declare function
|
|
79
|
-
export declare function resolveBrowserCompositionContext(input: {
|
|
76
|
+
export declare function resolveBrowserCompositionSelector(input: {
|
|
80
77
|
pathname: string;
|
|
81
|
-
|
|
78
|
+
search?: string;
|
|
82
79
|
basePath?: string;
|
|
83
|
-
}):
|
|
80
|
+
}): SiteEditCompositionSelector;
|
|
84
81
|
export declare function resolveSiteEditWebSocketUrl(windowLike: Pick<Window, "location">, options?: {
|
|
85
82
|
explicit_ws_url?: string;
|
|
86
83
|
port?: string;
|