@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) • 754 B
TypeScript
import { CslpData } from '../../cslp/types/cslp.types.js';
import { ISchemaFieldMap } from './types/index.types.js';
import { IActiveDiscussion } from '../components/CommentIcon.js';
import '../../cms/types/contentTypeSchema.types.js';
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 };