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.

25 lines (22 loc) 1.18 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { CslpData } from '../../../cslp/types/cslp.types.cjs'; interface IVariantStatus { fieldLevelCustomizations: boolean; isBaseModified: boolean; isAddedInstances: boolean; isDeletedInstances: boolean; isOrderChanged: boolean; } type TFieldRevertActionCallback = "revert_to_base_entry_value" | "revert_added_instances" | "restore_deleted_instances" | "reset_field_level_customizations" | "restore_sorted_instances"; interface FieldRevertComponentProps { fieldDataName: string; fieldMetadata: CslpData; isOpen: boolean; closeDropdown: () => void; variantStatus?: IVariantStatus; } declare const BASE_VARIANT_STATUS: IVariantStatus; declare function getFieldVariantStatus(fieldMetadata: CslpData): Promise<IVariantStatus | undefined>; declare const FieldRevertComponent: (props: FieldRevertComponentProps) => react_jsx_runtime.JSX.Element; declare const VariantRevertDropdown: (props: any) => react_jsx_runtime.JSX.Element; export { BASE_VARIANT_STATUS, FieldRevertComponent, type IVariantStatus, type TFieldRevertActionCallback, VariantRevertDropdown, getFieldVariantStatus };