1// Headless surface only; the React binding lives behind `@clo/markdown-editor/react` so plain-TS
2// consumers never pull React into their graph.
3export { chipField, type ChipSpec } from "./chips.ts";
4export {
5 autoCloseFence,
6 codeBlockEnter,
7 continueList,
8 cycleEmphasis,
9 dedentListItem,
10 enclosingCodeBlock,
11 indentListItem,
12 insertNewline,
13 surroundSelection,
14 toggleInlineMark,
15} from "./commands.ts";
16export {
17 blockAt,
18 DEFAULT_WRAP_COLUMN,
19 detectWrapColumn,
20 fromDisplayPos,
21 hardWrap,
22 type HardWrapExtensionOptions,
23 type HardWrapOptions,
24 joinDecorations,
25 type JoinRange,
26 rewrapBlockChanges,
27 rewrapText,
28 scanBlocks,
29 scanJoins,
30 type TextChange,
31 toDisplayPos,
32 unwrapText,
33 type WrapBlock,
34} from "./hard-wrap.ts";
35export { classifyHtmlBlock, sanitizeHtml } from "./html.ts";
36export type { HtmlBlockShape, HtmlOptions } from "./html.ts";
37export { baseKeymap, markdownKeymap } from "./keymap.ts";
38export { createMarkdownEditor, type MarkdownEditor, type MarkdownEditorOptions } from "./editor.ts";
39export { type Emoji, searchEmoji } from "./emoji.ts";
40export { blockDecorations, formattingDecorations, livePreview } from "./live-preview.ts";
41export type { LivePreviewOptions } from "./live-preview.ts";
42export type { VideoPreviewInput, VideoPreviewRenderer } from "./widgets.ts";
43export {
44 createMentionRegistry,
45 hydrateMentions,
46 insertMention,
47 type MentionCandidate,
48 type MentionProvider,
49 type MentionRegistry,
50 mentionsExtension,
51 scanMentions,
52 serializeMentions,
53 staticMentionProvider,
54} from "./mentions.ts";
55export {
56 type EmojiTrigger,
57 emojiTriggerAt,
58 type MentionTrigger,
59 mentionTriggerAt,
60 type SlashTrigger,
61 slashTriggerAt,
62 type Trigger,
63} from "./triggers.ts";