UNPKG

customerio-gist-web

Version:

Build beautiful in-app flows with no code and deliver them instantly to your app. http://customer.io

14 lines (13 loc) 761 B
export declare const PREVIEW_PARAM_ID = "cioPreviewId"; export declare const PREVIEW_SETTINGS_PARAM = "cioPreviewSettings"; export declare function setupPreview(): boolean; /** * Rewrites a navigation target so the preview session survives the hop: * setupPreview() on the destination page re-bootstraps the preview bar and the * preview user token from these params. Without them a cross-page step change * would strand the tab in a headless preview session — sessionStorage keeps the * preview token alive, but the bar (and its exit affordance) only initializes * from the URL (INAPP-14575). */ export declare function withPreviewSession(url: string, stepName?: string, displayType?: string): string; export declare function teardownPreview(): void;