UNPKG

overcentric

Version:

Overcentric watches your website, product, and users - and tells you what matters and what to do about it.

28 lines (27 loc) 871 B
interface InitOptions { context: string; position: "bottom-right" | "bottom-left"; isChatEnabled: boolean; isKBEnabled: boolean; dockColor?: string; dockColorSecondary?: string; dockCalloutText?: string; } /** * Initialize the dock with a floating button and iframe. * @param options - The options for the dock. */ export declare function initDock(options: InitOptions): void; /** * Update the dock iframe with the identity ID. * @param identity - The identity to be added to the iframe URL. */ export declare function updateDockIdentity(identity: any): void; export declare function setDockUrl(urlSuffix: string): void; export declare function openDock(): void; export declare function closeDock(): void; /** * Clean up all dock resources, event listeners, and DOM elements. */ export declare function cleanupDock(): void; export {};