/** * @import { EditorThemeClasses } from 'lexical'; * @import { Transformer } from '@lexical/markdown'; * @import { * TextEditorBlockType, * TextEditorFormatType, * TextEditorInlineType, * TextEditorNodeType, * } from '../../typedefs'; */ /** * @type {EditorThemeClasses} */ export const EDITOR_THEME: EditorThemeClasses; /** * List of available buttons. * @type {{ [key: string]: { labelKey: string, icon: string, inline: boolean } }} */ export const AVAILABLE_BUTTONS: { [key: string]: { labelKey: string; icon: string; inline: boolean; }; }; /** * @type {TextEditorFormatType[]} */ export const TEXT_FORMAT_BUTTON_TYPES: TextEditorFormatType[]; /** * @type {TextEditorInlineType[]} */ export const INLINE_BUTTON_TYPES: TextEditorInlineType[]; /** * @type {TextEditorBlockType[]} */ export const BLOCK_BUTTON_TYPES: TextEditorBlockType[]; /** * Map of Lexical nodes for each block type. The `paragraph` block type is excluded because it is * the default block type. * @type {Record, any[]>} */ export const NODE_MAP: Record, any[]>; /** * Map of Lexical transformers for each block type. The `paragraph` block type is excluded because * it is the default block type. * @type {Record, Transformer[]>} */ export const TRANSFORMER_MAP: Record, Transformer[]>; /** * List of Markdown tags that should be disabled in the editor when converting Lexical nodes to * Markdown (but not when converting Markdown to Lexical nodes because we don’t want to lose any * formatting). Use underscore for italic text in Markdown instead of asterisks, and use double * asterisks for bold text in Markdown instead of underscores. Also, disable triple asterisks and * triple underscores for bold+italic text in Markdown, which can be confusing and is not commonly * used. This is to ensure that the Markdown output is more readable and consistent. */ export const DISABLED_MARKDOWN_TAGS: string[]; import type { EditorThemeClasses } from 'lexical'; import type { TextEditorFormatType } from '../../typedefs'; import type { TextEditorInlineType } from '../../typedefs'; import type { TextEditorBlockType } from '../../typedefs'; import type { TextEditorNodeType } from '../../typedefs'; import type { Transformer } from '@lexical/markdown';