UNPKG

@contentstack/live-preview-utils

Version:

Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.

20 lines (17 loc) 844 B
import { OnEntryChangeCallback, OnEntryChangeConfig, OnEntryChangeCallbackUID } from './livePreview/types/onEntryChangeCallback.type.js'; import { IExportedConfig } from './types/types.js'; import './visualBuilder/types/collab.types.js'; declare class LightLivePreviewHoC { private static previewConstructors; private static onEntryChangeCallbacks; static init(): Promise<{}>; private static initializePreview; static get hash(): string; static get config(): IExportedConfig; static isInitialized(): boolean; static onEntryChange(callback: OnEntryChangeCallback, config?: OnEntryChangeConfig): OnEntryChangeCallbackUID; static onLiveEdit(callback: OnEntryChangeCallback): string; static unsubscribeOnEntryChange(): void; static getSdkVersion(): string; } export { LightLivePreviewHoC as default };