@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.
17 lines (15 loc) • 462 B
TypeScript
interface CslpData {
entry_uid: string;
content_type_uid: string;
variant?: string;
cslpValue: string;
locale: string;
fieldPath: string;
}
/**
* Extracts details from a CSLP value string.
* @param cslpValue The CSLP value string to extract details from.
* @returns An object containing the extracted details.
*/
declare function extractDetailsFromCslp(cslpValue: string): CslpData;
export { type CslpData, extractDetailsFromCslp };