@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.
14 lines (11 loc) • 646 B
text/typescript
import { FieldDataType, ISchemaFieldMap } from '../utils/types/index.types.cjs';
import '../../cms/types/contentTypeSchema.types.cjs';
declare const FieldTypeIconsMap: Record<FieldDataType | "loading" | "empty" | "discussion", any>;
interface IGenerateCustomCursor {
fieldType: FieldDataType | "loading" | "empty" | "discussion";
customCursor: HTMLDivElement;
fieldDisabled?: boolean;
}
declare function generateCustomCursor({ fieldType, customCursor, fieldDisabled, }: IGenerateCustomCursor): void;
declare function getFieldIcon(fieldSchema: ISchemaFieldMap): any;
export { FieldTypeIconsMap, generateCustomCursor, getFieldIcon };