@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.
35 lines (33 loc) • 1.01 kB
TypeScript
interface CslpData {
entry_uid: string;
content_type_uid: string;
cslpValue: string;
locale: string;
variant: string | undefined;
/**
* This path excludes the indexes in the Group or Modular blocks.
* This path could be used to traverse in the content type schema.
*/
fieldPath: string;
/**
* This path includes the indexes in the Group or Modular blocks.
* This path could be used to traverse in the entry schema.
*/
fieldPathWithIndex: string;
multipleFieldMetadata: CslpDataMultipleFieldMetadata;
instance: {
fieldPathWithIndex: string;
};
}
interface CslpDataMultipleFieldMetadata {
index: number;
/**
* It contains the path of the parent group, modular block, reference, or field.
*/
parentDetails: CslpDataParentDetails | null;
}
interface CslpDataParentDetails {
parentPath: string;
parentCslpValue: string;
}
export type { CslpData, CslpDataMultipleFieldMetadata, CslpDataParentDetails };