Exports
What each entry of the package is for. The Engine reference and the Headless reference list every name those two entries export, each with its signature, generated from the source when the site is built.
From quoin-editor: BlockCanvas, QuoinProvider, useQuoin, defineBlock, blockByType, paletteBlocks, coreBlocks, UploadField, FilePickerButton, useAutosave, formatShortcut, englishLabels, resolveLabels, useLabels, and everything in quoin-editor/headless, with their types (QuoinBlock, QuoinEditorHandle, UploadFn, UploadResult, BlockDefinition, AnyBlockDefinition, BlockEditorProps, BlockPreviewProps, BlockCanvasProps, UploadFieldProps, FilePickerButtonProps and others), and the core block data shapes: MarkdownBlockData, CalloutBlockData, CodeBlockData, ImageBlockData, FileBlockData and CoreBlockData.
From quoin-editor/headless: the editing engine and its editable view, with no canvas UI. Every name it adds to the engine is in the Headless reference.
From quoin-editor/engine: the engine alone, with no React and no 'use client' banner. Every name it exports is in the Engine reference.
From quoin-editor/table: tableExtension, its TableLabels and englishTableLabels, and the table commands and cell selection.
From quoin-editor/embed: embedExtension, its EmbedOptions, EmbedLabels and englishEmbedLabels, and the Unfurl and UnfurledLink types.
From quoin-editor/math: mathExtension, its MathOptions, MathLabels and englishMathLabels, and the RenderMath type.
From quoin-editor/diagram: diagramExtension, its DiagramOptions, DiagramLabels and englishDiagramLabels, the RenderDiagram type for the renderer you pass, and DEFAULT_DIAGRAM_LANGUAGES, the languages a code block offers to draw.
From quoin-editor/toc: tocExtension, its TocOptions, TocLabels and englishTocLabels, and headings with its TocHeading type.
From quoin-editor/mention: mentionExtension, its MentionOptions, MentionLabels and englishMentionLabels, and the Mention, MentionResult and MentionSearch types.
From quoin-editor/emoji: emojiExtension, its EmojiOptions, EmojiLabels and englishEmojiLabels, loadEmojiData with its EmojiData, and the Emoji and EmojiGroup types.
From quoin-editor/find: findExtension, its FindOptions, FindLabels and englishFindLabels, findMatches and replaceMatches, and the SearchOptions, FindQuery, FindMatch and FindResult types.
From quoin-editor/stats: statsExtension, its StatsOptions, StatsLabels and englishStatsLabels, and useEditorStats with its EditorStats type.
From quoin-editor/source: QuoinSource with its QuoinSourceProps type, the read-only pane that shows the document as the markdown it is stored as, useEditorSource with its EditorSource type for a pane of your own, blockLines with its LineSpan type, and englishSourceLabels with its SourceLabels type.
From quoin-editor/highlight: usePrismHighlighter, the CodeHighlighter a code block reads, fetching each language from Prism as the picker asks for it.
From quoin-editor/locale-ar, quoin-editor/locale-de, quoin-editor/locale-es, quoin-editor/locale-fr, quoin-editor/locale-ja, quoin-editor/locale-pt and quoin-editor/locale-zh: every label set in that language, named after it, frLabels for the canvas and frTableLabels, frAiLabels and the rest for the features. Data alone, with no React and nothing that runs at load; see Localization.
From quoin-editor/yjs: yjsCollaboration with its YjsCollaborationOptions, YjsCollaboration, CollaborationUser, YjsAwareness and Seed types, and collaborationExtension, applyRemote and the CollaborationAdapter and CollaborationHistory types for an adapter of your own. Like the engine entry it has no 'use client' banner and needs no DOM.
From quoin-editor/presence: presenceExtension with its PresenceOptions and PresenceLabels types, and englishPresenceLabels.
From quoin-editor/comments: commentsExtension with its CommentsOptions and CommentsLabels types, englishCommentsLabels, and createCommentThreads with the CommentThreads, CommentThread, ThreadComment, CommentAuthor and CommentUser types.
From quoin-editor/ai: aiExtension with its AiOptions and AiLabels types, englishAiLabels, and the AiAction, AiRequest and AiStream types.
From quoin-editor/view: QuoinView with its QuoinViewProps type, and defineBlock with the BlockDefinition and AnyBlockDefinition types, for block types built on a server. Like the engine entry it has no 'use client' banner and needs no DOM.
From quoin-editor/diff: QuoinDiff with its QuoinDiffProps and DiffLabels types, englishDiffLabels, and defineBlock with its types, as in quoin-editor/view. Like the view entry it has no 'use client' banner and needs no DOM.
From quoin-editor/docx: toDocx with its DocxOptions and FetchAsset types. It has no 'use client' banner, needs no DOM and loads no React.
From quoin-editor/catalogue: catalogue, every opt-in feature at once.
From quoin-editor/styles.css: the stylesheet, opt-in features included.