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) 758 B
import { CslpData } from '../../cslp/types/cslp.types.cjs'; import { ISchemaFieldMap } from './types/index.types.cjs'; import { IActiveDiscussion } from '../components/CommentIcon.cjs'; import '../../cms/types/contentTypeSchema.types.cjs'; import 'react/jsx-runtime'; interface GetDiscussionIdParams { fieldMetadata: CslpData; fieldSchema: ISchemaFieldMap; } /** * Retrieves the discussion data based on the field metadata and field UID. * * @param params The parameters including field metadata and field UID. * @returns A promise that resolves to the discussion data as a string. */ declare function getDiscussionIdByFieldMetaData(params: GetDiscussionIdParams): Promise<IActiveDiscussion | null>; export { getDiscussionIdByFieldMetaData };