markloom 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/collab.md +25 -13
  2. package/dist/ai/index.cjs +5 -4
  3. package/dist/ai/index.d.cts +5 -5
  4. package/dist/ai/index.d.ts +5 -5
  5. package/dist/ai/index.js +4 -3
  6. package/dist/{chunk-KYZJIOOL.js → chunk-4Q7PAR2T.js} +3671 -904
  7. package/dist/chunk-75EJ4ARB.cjs +642 -0
  8. package/dist/{chunk-U3JZDFL4.cjs → chunk-BMPCVT3B.cjs} +2 -34
  9. package/dist/{chunk-VSBIMMI7.js → chunk-EFYT2223.js} +3 -35
  10. package/dist/chunk-HXABDVLZ.cjs +297 -0
  11. package/dist/{chunk-I5VK4U7J.cjs → chunk-I2LDEVLA.cjs} +434 -80
  12. package/dist/{chunk-YBAT343I.js → chunk-MQLRZQZL.js} +263 -119
  13. package/dist/chunk-OVHASRID.cjs +4279 -0
  14. package/dist/chunk-PCSVBPOR.cjs +40 -0
  15. package/dist/{chunk-TB2OY3D4.js → chunk-PSAXWBNM.js} +413 -59
  16. package/dist/{chunk-QEVME6ZU.cjs → chunk-PZRWTLLB.cjs} +260 -161
  17. package/dist/chunk-QO7JEZDB.js +4279 -0
  18. package/dist/{chunk-EJSFZHGT.js → chunk-WSJUXPAG.js} +18 -2
  19. package/dist/{chunk-ACFYBYZJ.cjs → chunk-Y4IXQFWL.cjs} +4212 -1445
  20. package/dist/{chunk-CGYCJORO.js → chunk-YLVSMDIO.js} +220 -121
  21. package/dist/chunk-ZL6WT6OY.js +297 -0
  22. package/dist/{client-CLYq17SW.d.ts → client-BvvyHjhh.d.ts} +57 -7
  23. package/dist/{client-DAth8pPq.d.cts → client-Ciy7Fa_k.d.cts} +57 -7
  24. package/dist/collab/index.cjs +5 -4
  25. package/dist/collab/index.d.cts +13 -15
  26. package/dist/collab/index.d.ts +13 -15
  27. package/dist/collab/index.js +4 -3
  28. package/dist/{controller-BIOO_XKJ.d.cts → controller-CHznEhAR.d.cts} +186 -27
  29. package/dist/{controller-6AJ36G52.d.ts → controller-DLqI8_jm.d.ts} +186 -27
  30. package/dist/index.cjs +69 -7
  31. package/dist/index.d.cts +127 -8
  32. package/dist/index.d.ts +127 -8
  33. package/dist/index.js +80 -18
  34. package/dist/io/index.cjs +58 -59
  35. package/dist/io/index.d.cts +1 -1
  36. package/dist/io/index.d.ts +1 -1
  37. package/dist/io/index.js +15 -16
  38. package/dist/react/index.cjs +9 -8
  39. package/dist/react/index.d.cts +5 -5
  40. package/dist/react/index.d.ts +5 -5
  41. package/dist/react/index.js +8 -7
  42. package/dist/{rebase-batch-DlerAcFN.d.ts → rebase-batch-CSnv8FKp.d.ts} +1 -1
  43. package/dist/{rebase-batch-PjENQ742.d.cts → rebase-batch-DO1ygkx9.d.cts} +1 -1
  44. package/dist/{types-COUweEav.d.cts → types-BkHlmUFL.d.cts} +5 -1
  45. package/dist/{types-COUweEav.d.ts → types-BkHlmUFL.d.ts} +5 -1
  46. package/dist/{versions-9mG1epfB.d.cts → versions-DNFf8zVz.d.cts} +1 -1
  47. package/dist/{versions-Bubyo4pt.d.ts → versions-DOkOyh2J.d.ts} +1 -1
  48. package/dist/view/index.cjs +215 -17
  49. package/dist/view/index.d.cts +82 -9
  50. package/dist/view/index.d.ts +82 -9
  51. package/dist/view/index.js +212 -14
  52. package/dist/view/theme.css +349 -75
  53. package/dist/{suggest-Bk4zLzuv.d.ts → word-count-BPw9G2Bg.d.ts} +15 -5
  54. package/dist/{suggest-BkGGiPKA.d.cts → word-count-DNLn1h_t.d.cts} +15 -5
  55. package/package.json +11 -6
  56. package/dist/chunk-EADZKEU4.cjs +0 -498
  57. package/dist/chunk-SNFF6X45.js +0 -2347
  58. package/dist/chunk-TWD5T4YC.cjs +0 -2347
  59. package/dist/chunk-ZKQSQSSM.cjs +0 -24
@@ -1,9 +1,9 @@
1
- import { S as Step, a as DocVersion } from './versions-Bubyo4pt.js';
2
- import { E as ElementNode, S as Selection, M as Mark, P as Path, N as Node } from './types-COUweEav.js';
1
+ import { S as Step, a as DocVersion } from './versions-DOkOyh2J.js';
2
+ import { E as ElementNode, S as Selection, M as Mark, P as Path, N as Node } from './types-BkHlmUFL.js';
3
3
  import * as preact from 'preact';
4
4
  import { ComponentChild } from 'preact';
5
- import { H as History, c as CommentThread, C as CommentAuthor, e as SuggestAuthor, T as TextMatch } from './suggest-Bk4zLzuv.js';
6
- import { d as CollabConfig, c as CollabClient } from './client-CLYq17SW.js';
5
+ import { H as History, c as CommentThread, C as CommentAuthor, e as SuggestAuthor, T as TextMatch, W as WordCount } from './word-count-BPw9G2Bg.js';
6
+ import { d as CollabConfig, g as CollabReplica, c as CollabClient } from './client-BvvyHjhh.js';
7
7
 
8
8
  interface MentionCandidate {
9
9
  id: string;
@@ -36,6 +36,10 @@ declare class MentionMenu {
36
36
  private paint;
37
37
  }
38
38
 
39
+ declare function safeCssValue(v: string): string;
40
+ type TextStyleAttr = 'color' | 'backgroundColor' | 'fontFamily' | 'fontSize' | 'lineHeight';
41
+ declare function attrsToStyle(attrs: Record<string, unknown> | undefined): string;
42
+
39
43
  interface NodeViewCtx {
40
44
  node: ElementNode;
41
45
  text: string;
@@ -69,12 +73,43 @@ interface RenderOpts {
69
73
  };
70
74
  atomSelect?: AtomSelectCtx | null;
71
75
  editable?: boolean;
76
+ leafDecos?: WeakMap<object, InlineDeco[]>;
77
+ diagram?: DiagramResolver;
78
+ blockCache?: BlockVnodeCache;
79
+ checkboxLabel?: (checked: boolean) => string;
80
+ }
81
+ /** 图表(```mermaid 一类围栏)的当前态:html = 画好的 SVG/HTML;error = 画不出来的原因;都没有 = 还在画。 */
82
+ interface DiagramState {
83
+ html?: string;
84
+ error?: string;
85
+ }
86
+ /** 取一个代码块的图表态。null = 这个块不是图表,照常画成代码。(lang, 源码, 块 id);同一源码的结果由调用方缓存。 */
87
+ type DiagramResolver = (lang: string, source: string, id: string) => DiagramState | null;
88
+ /**
89
+ * 顶层块的 vnode 缓存(Editor 持有,长文档的逐字输入靠它只重画被改的那一块)。
90
+ * 文档是不可变树、没碰的块保持同一个对象,所以「同一个块对象 + 同样的渲染上下文」得到的 vnode 必然相同;
91
+ * 把上一轮的 vnode 原样交给 Preact,它认出是同一个 vnode 就整棵跳过 diff(不再对账上万块)。
92
+ * 上下文(`key`)变了——显隐符、可编辑态、评论态、图选中态——调用方整个换一个新缓存。
93
+ * 依赖「渲染时才定下来的、会随别处变」的东西不能缓存:slug 工厂(重名标题的后缀按先后累加)、行内装饰(按路径落到叶上)、图表围栏(异步出图)。
94
+ */
95
+ interface BlockVnodeCache {
96
+ key: string;
97
+ map: WeakMap<object, {
98
+ vnode: ComponentChild;
99
+ id: string | number;
100
+ }>;
101
+ }
102
+ /** 文本叶内 [from,to) 套 class 的装饰。 */
103
+ interface InlineDeco {
104
+ from: number;
105
+ to: number;
106
+ class: string;
72
107
  }
73
108
  declare const defaultBlockTag: Record<string, string>;
74
109
  declare const defaultMarkTag: Record<string, string>;
75
110
  declare function renderImage(spec: ElementNode, key: number | string, atomSelect?: AtomSelectCtx | null): ComponentChild;
76
- declare function safeCssValue(v: string): string;
77
- declare function textStyleCss(attrs: Record<string, unknown> | undefined): string;
111
+
112
+ declare const textStyleCss: typeof attrsToStyle;
78
113
  declare function renderEmbed(spec: ElementNode, key: number | string, atomSelect?: AtomSelectCtx | null): ComponentChild;
79
114
  declare function youtubeId(url: string): string | null;
80
115
  declare function twitchChannel(url: string): string | null;
@@ -93,6 +128,8 @@ declare function renderDoc(doc: ElementNode, opts?: RenderOpts): preact.VNode<pr
93
128
  }>;
94
129
  declare function renderToHtml(doc: ElementNode, opts?: RenderOpts): string;
95
130
 
131
+ type ListType = 'a' | 'A' | 'i' | 'I';
132
+
96
133
  interface InputResult {
97
134
  steps: Step[];
98
135
  selection: Selection;
@@ -104,28 +141,38 @@ declare function wordBoundaryBack(text: string, offset: number): number | null;
104
141
  declare function wordBoundaryFwd(text: string, offset: number): number | null;
105
142
  declare function lineBoundaryBack(text: string, offset: number): number | null;
106
143
  declare function lineBoundaryFwd(text: string, offset: number): number | null;
144
+ declare function leafBlockPath(sel: Selection): Path;
145
+ declare function nearestListPath(doc: ElementNode, fromPath: Path): Path | null;
107
146
  declare function isAtom(block: Node): boolean;
147
+ declare function keepsApart(block: Node): boolean;
108
148
  declare function isOpaque(block: Node): boolean;
109
149
  declare function mapInput(doc: ElementNode, intent: Intent, data: string, sel: Selection, newId: () => string, rules?: BlockInputRule[], pendingMarks?: Mark[] | null): InputResult | null;
110
- declare function wrapList(block: ElementNode, blockIdx: number, newId: () => string, rest: string, tail: Node[], ordered: boolean, start?: number): InputResult;
150
+ declare function wrapList(block: ElementNode, blockPath: number | Path, newId: () => string, rest: string, tail: Node[], ordered: boolean, start?: number): InputResult;
111
151
  type BlockKind = 'paragraph' | 'heading1' | 'heading2' | 'heading3' | 'quote' | 'callout' | 'bullet' | 'ordered' | 'task' | 'code';
152
+ declare function isCellBlockKind(kind: BlockKind): boolean;
112
153
  declare const CALLOUT_VARIANTS: readonly ["info", "warn", "success", "danger"];
113
154
  type CalloutVariant = typeof CALLOUT_VARIANTS[number];
114
155
  declare function calloutVariantFromQuery(q: string): CalloutVariant;
115
- declare function blockTransform(block: ElementNode, blockIdx: number, kind: BlockKind, newId: () => string, extra?: {
156
+ declare function blockTransform(block: ElementNode, blockPath: number | Path, kind: BlockKind, newId: () => string, extra?: {
116
157
  variant?: CalloutVariant;
117
158
  }): InputResult;
159
+ declare function joinPrevList(doc: ElementNode, path: Path, kind: BlockKind, made: ElementNode, count?: number): InputResult | null;
160
+ declare function blockTransformRange(doc: ElementNode, sel: Selection, kind: BlockKind, newId: () => string, extra?: {
161
+ variant?: CalloutVariant;
162
+ }): InputResult | null;
118
163
  declare function setCalloutVariant(doc: ElementNode, path: Path, variant: CalloutVariant): InputResult | null;
119
164
  declare function cycleCalloutVariant(doc: ElementNode, path: Path): InputResult | null;
120
165
  declare function setAlign(doc: ElementNode, sel: Selection, align: 'left' | 'center' | 'right' | 'justify'): InputResult | null;
166
+ declare function setHeadingDepth(doc: ElementNode, sel: Selection, depth: number): InputResult | null;
167
+ declare function setListType(doc: ElementNode, sel: Selection, type: ListType | null): InputResult | null;
121
168
  declare function marksAtCaret(doc: ElementNode, path: Path): Mark[];
169
+ declare function expandToLink(doc: ElementNode, sel: Selection): Selection;
122
170
  declare function toggleMarkList(marks: Mark[], name: string, attrs?: Record<string, unknown>): Mark[];
171
+ /** 清除格式:选区里的文字去掉全部 mark,但批注锚点(comment)不是格式,留着。塌缩选区、没有可清的 mark 返回 null。 */
172
+ declare function clearMarks(doc: ElementNode, sel: Selection): InputResult | null;
123
173
  declare function toggleMark(doc: ElementNode, sel: Selection, markName: string, attrs?: Record<string, unknown>): InputResult | null;
124
174
  type TextStylePatch = {
125
- color?: string | null;
126
- backgroundColor?: string | null;
127
- fontFamily?: string | null;
128
- fontSize?: string | null;
175
+ [K in TextStyleAttr]?: string | null;
129
176
  };
130
177
  declare function mergeTextStyleAttrs(attrs: Record<string, unknown> | undefined, patch: TextStylePatch): Record<string, unknown> | null;
131
178
  declare function setTextStyle(doc: ElementNode, sel: Selection, patch: TextStylePatch): InputResult | null;
@@ -136,6 +183,39 @@ declare function mapPaste(doc: ElementNode, sel: Selection, md: string, newId: (
136
183
  declare function mapPasteBlocks(doc: ElementNode, sel: Selection, frag: ElementNode[], newId: () => string): InputResult | null;
137
184
  declare function indentItem(doc: ElementNode, sel: Selection, newId: () => string): InputResult | null;
138
185
  declare function outdentItem(doc: ElementNode, sel: Selection, newId: () => string): InputResult | null;
186
+ declare function tableAbove(doc: ElementNode, p: Path): Path | null;
187
+ interface TypedLink {
188
+ start: number;
189
+ text: string;
190
+ url: string;
191
+ title?: string;
192
+ }
193
+ /** marker = caret 前文本(还没含刚打的 `)`)。认得出就返回要换成链接的区间与内容。 */
194
+ declare function parseTypedLink(marker: string): TypedLink | null;
195
+ declare const markdownLinkRule: BlockInputRule;
196
+ interface InlinePair {
197
+ delim: string;
198
+ mark: string;
199
+ }
200
+ declare const INLINE_PAIRS: readonly InlinePair[];
201
+ interface InlinePairHit {
202
+ start: number;
203
+ content: string;
204
+ mark: string;
205
+ }
206
+ /** marker = caret 前的叶内文本;trigger = 刚打的字符;startOk = 叶首算不算词边界(前一叶的末字符是空白/标点/没有)。 */
207
+ declare function matchInlinePair(marker: string, trigger: string, startOk: boolean, table?: readonly InlinePair[]): InlinePairHit | null;
208
+ declare const inlinePairRule: BlockInputRule;
209
+ interface TypedUrl {
210
+ start: number;
211
+ url: string;
212
+ trail: string;
213
+ }
214
+ /** marker = caret 前叶内文本。认得出一个刚打完的网址就返回它在叶内的起点、网址本身、网址后被排除的标点。 */
215
+ declare function parseTypedUrl(marker: string): TypedUrl | null;
216
+ declare function urlAutolink(should?: (url: string) => boolean): BlockInputRule;
217
+ /** 默认规则:任何通过 isSafeLinkUrl 的网址都成链接。 */
218
+ declare const urlAutolinkRule: BlockInputRule;
139
219
 
140
220
  interface BlockRenderCtx {
141
221
  renderChild: (node: ElementNode['children'][number], key: number) => ComponentChild;
@@ -143,6 +223,7 @@ interface BlockRenderCtx {
143
223
  codeView?: NodeView;
144
224
  atomSelect?: AtomSelectCtx | null;
145
225
  editable?: boolean;
226
+ diagram?: DiagramResolver;
146
227
  }
147
228
  type BlockRenderer = (spec: ElementNode, key: number | string, ctx: BlockRenderCtx) => ComponentChild;
148
229
  interface InputRuleCtx {
@@ -195,9 +276,13 @@ interface DecorationHost {
195
276
  dispatch: (steps: Step[], selectionAfter?: Selection) => void;
196
277
  sel: () => Selection | null;
197
278
  markSel: () => Selection | null;
198
- insertImage: (blockIdx: number) => void;
199
- insertMath?: (blockIdx: number) => void;
200
- insertEmbed?: (blockIdx: number, kind: 'youtube' | 'twitch' | 'audio' | 'file') => void;
279
+ /** 给文本叶 path 里的 [from,to) 套 class(只是显示,不进文档;位置不随编辑映射,文档一变要自己重给)。返回撤销函数 */
280
+ decorateInline: (path: Path, from: number, to: number, attrs: {
281
+ class: string;
282
+ }) => () => void;
283
+ insertImage: (blockPath: number | number[]) => void;
284
+ insertMath?: (blockPath: number | Path) => void;
285
+ insertEmbed?: (blockPath: number | Path, kind: 'youtube' | 'twitch' | 'audio' | 'file') => void;
201
286
  insertBelow: (blockIdx: number) => void;
202
287
  langs: () => string[];
203
288
  mentionSource: () => ((query: string) => MentionCandidate[]) | undefined;
@@ -243,6 +328,8 @@ interface Resolved {
243
328
  }
244
329
  declare function resolve(extensions: Extension[]): Resolved;
245
330
 
331
+ type TypingKind = 'insert' | 'delete';
332
+
246
333
  /** OpenAI-compatible 供应商配置(xAI / OpenAI / 智谱 …) */
247
334
  type AiProvider = {
248
335
  host: string;
@@ -321,6 +408,9 @@ declare class MentionPopovers {
321
408
  private paintDateTime;
322
409
  }
323
410
 
411
+ type Autofocus = boolean | 'start' | 'end' | 'all' | number;
412
+ declare function autofocusSelection(doc: ElementNode, mode: Autofocus): Selection | null;
413
+
324
414
  interface EditorOptions {
325
415
  onChange?: (doc: ElementNode) => void;
326
416
  slug?: () => (text: string) => string;
@@ -334,6 +424,7 @@ interface EditorOptions {
334
424
  mentionSource?: (query: string) => MentionCandidate[];
335
425
  mentionProfile?: (id: string) => MentionProfile | null | undefined;
336
426
  renderMath?: (latex: string, display: boolean) => string | null;
427
+ renderDiagram?: (lang: string, source: string) => string | Promise<string> | null;
337
428
  invisibleCharacters?: boolean;
338
429
  comments?: {
339
430
  threads?: CommentThread[];
@@ -343,7 +434,17 @@ interface EditorOptions {
343
434
  toc?: boolean | {
344
435
  open?: boolean;
345
436
  };
437
+ autofocus?: Autofocus;
346
438
  search?: boolean;
439
+ sourceMode?: boolean;
440
+ source?: string;
441
+ focusMode?: boolean;
442
+ typewriterMode?: boolean;
443
+ spellcheck?: boolean;
444
+ checkboxLabel?: (checked: boolean) => string;
445
+ exitOnArrowUp?: boolean;
446
+ exitOnArrowDown?: boolean;
447
+ shouldAutoLink?: (url: string) => boolean;
347
448
  versions?: boolean | {
348
449
  seed?: DocVersion[];
349
450
  max?: number;
@@ -366,16 +467,20 @@ interface EditorOptions {
366
467
  * 实时协作(中心化 OT + WebSocket)。传 { url, room } 即连 Cloudflare worker 房间。
367
468
  * 本地 dispatch 自动上行;远端 applyRemote。见 collab.md。
368
469
  */
369
- collab?: CollabConfig;
470
+ collab?: Omit<CollabConfig, 'onReplica'> & {
471
+ onState?: (state: {
472
+ doc: ElementNode;
473
+ replica: CollabReplica;
474
+ }) => void;
475
+ };
370
476
  }
371
477
  declare class Editor {
372
478
  root: HTMLElement;
373
479
  /** Preact 独占且 ≡ .markloom-doc;chrome 只挂 root,与投影不交 */
374
480
  private surface;
375
481
  history: History;
376
- private composing;
377
- private composeBase;
378
- private pendingMarks;
482
+ private tx;
483
+ private afterCommit;
379
484
  private opts;
380
485
  private resolved;
381
486
  private invisible;
@@ -384,6 +489,9 @@ declare class Editor {
384
489
  private commentPanel;
385
490
  private tocPanel;
386
491
  private searchBar;
492
+ private modes;
493
+ private sourceCtl;
494
+ private srcMd;
387
495
  private versionsPanel;
388
496
  private versionList;
389
497
  private versionMax;
@@ -393,6 +501,7 @@ declare class Editor {
393
501
  private suggestInsertId;
394
502
  private suggestDeleteId;
395
503
  private mentionPops;
504
+ private footnoteUi;
396
505
  private decorations;
397
506
  /** AI 一等公民(opts.ai):斜杠 / 格式栏 / 卡片全内置 */
398
507
  private aiCtl;
@@ -400,12 +509,19 @@ declare class Editor {
400
509
  private collabCtl;
401
510
  private collabUi;
402
511
  private applyingRemote;
512
+ private typing;
403
513
  constructor(root: HTMLElement, doc: ElementNode, opts?: EditorOptions);
404
514
  destroy(): void;
405
515
  /** AI 控制器(opts.ai 启用时);应用工具栏可 ed.ai?.openAtFocus / stop */
406
516
  get ai(): MarkloomAi | null;
407
517
  /** 协作客户端(opts.collab 启用时) */
408
518
  get collab(): CollabClient | null;
519
+ /** 源码模式(opts.sourceMode 时):切换 / 设定 / 当前是否在源码里 */
520
+ toggleSource(): void;
521
+ setSourceMode(on: boolean): void;
522
+ get inSourceMode(): boolean;
523
+ /** 现在文档的块 span 指向的那份原文:宿主 docToMd(doc, editor.source)。在源码里还没同步的字也算(同步在停手 300ms 后,或切回时)。 */
524
+ get source(): string;
409
525
  /** 查找替换栏(opts.search 时) */
410
526
  openSearch(): void;
411
527
  closeSearch(): void;
@@ -444,15 +560,40 @@ declare class Editor {
444
560
  openAi(mode: 'continue' | 'rewrite'): void;
445
561
  stopAi(): void;
446
562
  get doc(): ElementNode;
563
+ /** 字数统计(Typora 口径:中日韩一字一词,英文按词;不含 front matter 和 HTML 原样块)。读一次遍历一遍,不缓存。 */
564
+ stats(): WordCount;
565
+ setFocusMode(on: boolean): void;
566
+ setTypewriterMode(on: boolean): void;
567
+ get focusMode(): boolean;
568
+ get typewriterMode(): boolean;
569
+ /** 运行时切拼写检查。undefined = 去掉属性,跟浏览器。 */
570
+ setSpellcheck(on: boolean | undefined): void;
447
571
  setEditable(editable: boolean): void;
448
572
  setInvisibleCharacters(visible: boolean): void;
449
573
  get invisibleCharacters(): boolean;
450
574
  get comments(): CommentThread[];
451
575
  setComments(threads: CommentThread[]): void;
452
576
  private get readonly();
577
+ private inlineDecos;
578
+ private setInlineDecos;
579
+ private leafDecos;
580
+ private topIds;
581
+ private blockCache;
453
582
  private draw;
583
+ private onModesSelection;
584
+ private diagramCache;
585
+ private diagramPending;
586
+ private diagramLast;
587
+ private diagramTimers;
588
+ private destroyed;
589
+ private diagramState;
590
+ private syncDiagram;
454
591
  private syncPlaceholder;
455
- dispatch(steps: Step[], selectionAfter?: Selection): void;
592
+ dispatch(steps: Step[], selectionAfter?: Selection, opts?: {
593
+ scroll?: boolean;
594
+ coalesce?: TypingKind;
595
+ }): void;
596
+ private plainCode;
456
597
  dispatchStream(steps: Step[], selectionAfter?: Selection): void;
457
598
  /**
458
599
  * 远端协作 op — 写路径唯一 foreign 入口:
@@ -462,10 +603,11 @@ declare class Editor {
462
603
  * · 本端选区随 steps map(光标不被远端编辑挤飞)
463
604
  */
464
605
  applyRemote(steps: Step[], foreignSite?: number, selectionAfter?: Selection): void;
465
- /** 权威快照替换(welcome/resync);清空本地 undo 栈 */
466
- replaceDoc(doc: ElementNode): void;
467
- /** 协作快照是否实质为空(仅空段) */
468
- private isSparseCollabDoc;
606
+ /** 新副本或无 pending 的安全快照替换;清空本地 undo 栈。 */
607
+ replaceDoc(doc: ElementNode, opts?: {
608
+ notify?: boolean;
609
+ quiet?: boolean;
610
+ }): void;
469
611
  /**
470
612
  * 回退一笔**本端** history(AI discard / 协作人员粒度 undo)。
471
613
  * 协作时 past 仅含本地提交;inverse 经 applyForeign 保持与远端交错后的坐标,再上行。
@@ -483,8 +625,17 @@ declare class Editor {
483
625
  private onTaskCheck;
484
626
  private openMentionPop;
485
627
  private setMentionDate;
628
+ /**
629
+ * 仅清**格内**原生 ol/ul(CE 自动列表漏网)。
630
+ * 禁止碰顶层 list——那是 model 合法投影,误删 = 列表刚建就被扒掉、看起来「空格没反应」。
631
+ */
632
+ private healCellNativeLists;
633
+ /** 事件来自根里、文档面之外的表单控件(查找栏、版本栏的输入框):它们自己处理输入,编辑器的管线不碰。 */
634
+ private fromControl;
635
+ private onDomInput;
636
+ /** 插空格并跑 inputRules:`1. `/`- ` → list;否则字面空格。CE 自动列表接管后走此路径。 */
637
+ private applySpaceWithRules;
486
638
  private onBeforeInput;
487
- /** caret 是否在 type=ai 块内;是则返该块,否则 null */
488
639
  private aiBlockAt;
489
640
  private aiBlockGuard;
490
641
  /** 壳已不在的 aiDraft 顶层块 → 剥事务标记,恢复可编辑 */
@@ -497,6 +648,7 @@ declare class Editor {
497
648
  private onEdgeVisualLine;
498
649
  private atomAtEdgeVertical;
499
650
  private atomSelectGuard;
651
+ private nestedAtomBefore;
500
652
  private atomBlockGuard;
501
653
  private neighborCaret;
502
654
  private isCodeBlock;
@@ -514,13 +666,20 @@ declare class Editor {
514
666
  private writeExclusiveClipboard;
515
667
  private onCopy;
516
668
  private onCut;
669
+ private static dragging;
670
+ private onDragStart;
671
+ private onDragEnd;
672
+ private onDrop;
673
+ private dropPoint;
674
+ private insertionAt;
517
675
  private onPaste;
518
676
  private insertImageFile;
519
677
  private insertImageUrl;
520
678
  private selectInsertedImage;
679
+ private asBlockPath;
521
680
  private slashInsertImage;
522
681
  private slashInsertMath;
523
- /** 顶层块在视口中的 rect;找不到则回退视口中上 */
682
+ /** 块在视口中的 rect;Path 顶层或格内均可;找不到则回退视口中上 */
524
683
  private blockRect;
525
684
  private slashInsertEmbed;
526
685
  private editMathAtom;
@@ -620,4 +779,4 @@ declare class MarkloomAi {
620
779
  private paintMd;
621
780
  }
622
781
 
623
- export { diffSpan as $, type AiConfig as A, type BlockInputRule as B, CALLOUT_VARIANTS as C, type DecorationFactory as D, type EditorOptions as E, MentionPopovers as F, type MentionPopoversHost as G, type MentionProfile as H, type InputResult as I, type NodeViewCtx as J, type KeymapCommand as K, type Resolved as L, MarkloomAi as M, type NodeView as N, atomIsSelected as O, type PasteRule as P, blockTransform as Q, type RenderOpts as R, type SlashCommand as S, type TextStylePatch as T, calloutVariantFromQuery as U, caret as V, chord as W, cycleCalloutVariant as X, defaultBlockRenderers as Y, defaultBlockTag as Z, defaultMarkTag as _, type AiPromptMode as a, indentItem as a0, isAtom as a1, isOpaque as a2, leafText as a3, lineBoundaryBack as a4, lineBoundaryFwd as a5, mapInput as a6, mapPaste as a7, mapPasteBlocks as a8, marksAtCaret as a9, mergeTextStyleAttrs as aa, outdentItem as ab, projectDoc as ac, renderCode as ad, renderDoc as ae, renderEmbed as af, renderHr as ag, renderImage as ah, renderTable as ai, renderToHtml as aj, resolve as ak, safeCssValue as al, serializeBlock as am, serializeSelection as an, setAlign as ao, setCalloutVariant as ap, setTextStyle as aq, textStyleCss as ar, toggleMark as as, toggleMarkList as at, twitchChannel as au, wordBoundaryBack as av, wordBoundaryFwd as aw, wrapList as ax, youtubeId as ay, type AiProvider as b, type AiStreamFn as c, type AiStreamInput as d, type AiWriteMode as e, type AiWriteSession as f, type MarkloomAiOpts as g, blockPlainText as h, createAiStream as i, focusBlockId as j, Editor as k, type Extension as l, type AtomSelectCtx as m, type BlockKind as n, type BlockRenderCtx as o, type BlockRenderer as p, type CalloutVariant as q, type DecorationHost as r, startAiWrite as s, type InputRuleCtx as t, type Intent as u, type KeymapCtx as v, type KeymapResult as w, type MentionCandidate as x, type MentionHost as y, MentionMenu as z };
782
+ export { atomIsSelected as $, type AiConfig as A, type BlockInputRule as B, CALLOUT_VARIANTS as C, type DecorationFactory as D, type EditorOptions as E, type InputRuleCtx as F, type Intent as G, type KeymapCtx as H, INLINE_PAIRS as I, type KeymapResult as J, type KeymapCommand as K, type MentionCandidate as L, MarkloomAi as M, type NodeView as N, type MentionHost as O, MentionMenu as P, MentionPopovers as Q, type MentionPopoversHost as R, type MentionProfile as S, type NodeViewCtx as T, type PasteRule as U, type RenderOpts as V, type Resolved as W, type SlashCommand as X, type TextStylePatch as Y, type TypedLink as Z, type TypedUrl as _, type AiPromptMode as a, autofocusSelection as a0, blockTransform as a1, blockTransformRange as a2, calloutVariantFromQuery as a3, caret as a4, chord as a5, clearMarks as a6, cycleCalloutVariant as a7, defaultBlockRenderers as a8, defaultBlockTag as a9, renderCode as aA, renderDoc as aB, renderEmbed as aC, renderHr as aD, renderImage as aE, renderTable as aF, renderToHtml as aG, resolve as aH, safeCssValue as aI, serializeBlock as aJ, serializeSelection as aK, setAlign as aL, setCalloutVariant as aM, setHeadingDepth as aN, setListType as aO, setTextStyle as aP, tableAbove as aQ, textStyleCss as aR, toggleMark as aS, toggleMarkList as aT, twitchChannel as aU, urlAutolink as aV, urlAutolinkRule as aW, wordBoundaryBack as aX, wordBoundaryFwd as aY, wrapList as aZ, youtubeId as a_, defaultMarkTag as aa, diffSpan as ab, expandToLink as ac, indentItem as ad, inlinePairRule as ae, isAtom as af, isCellBlockKind as ag, isOpaque as ah, joinPrevList as ai, keepsApart as aj, leafBlockPath as ak, leafText as al, lineBoundaryBack as am, lineBoundaryFwd as an, mapInput as ao, mapPaste as ap, mapPasteBlocks as aq, markdownLinkRule as ar, marksAtCaret as as, matchInlinePair as at, mergeTextStyleAttrs as au, nearestListPath as av, outdentItem as aw, parseTypedLink as ax, parseTypedUrl as ay, projectDoc as az, type AiProvider as b, type AiStreamFn as c, type AiStreamInput as d, type AiWriteMode as e, type AiWriteSession as f, type MarkloomAiOpts as g, blockPlainText as h, createAiStream as i, focusBlockId as j, Editor as k, type Extension as l, type AtomSelectCtx as m, type Autofocus as n, type BlockKind as o, type BlockRenderCtx as p, type BlockRenderer as q, type BlockVnodeCache as r, startAiWrite as s, type CalloutVariant as t, type DecorationHost as u, type DiagramResolver as v, type DiagramState as w, type InlineDeco as x, type InlinePairHit as y, type InputResult as z };
package/dist/index.cjs CHANGED
@@ -29,7 +29,6 @@
29
29
 
30
30
 
31
31
 
32
- var _chunkQEVME6ZUcjs = require('./chunk-QEVME6ZU.cjs');
33
32
 
34
33
 
35
34
 
@@ -38,6 +37,7 @@ var _chunkQEVME6ZUcjs = require('./chunk-QEVME6ZU.cjs');
38
37
 
39
38
 
40
39
 
40
+ var _chunkPZRWTLLBcjs = require('./chunk-PZRWTLLB.cjs');
41
41
 
42
42
 
43
43
 
@@ -93,7 +93,6 @@ var _chunkQEVME6ZUcjs = require('./chunk-QEVME6ZU.cjs');
93
93
 
94
94
 
95
95
 
96
- var _chunkTWD5T4YCcjs = require('./chunk-TWD5T4YC.cjs');
97
96
 
98
97
 
99
98
 
@@ -106,21 +105,54 @@ var _chunkTWD5T4YCcjs = require('./chunk-TWD5T4YC.cjs');
106
105
 
107
106
 
108
107
 
109
- var _chunkU3JZDFL4cjs = require('./chunk-U3JZDFL4.cjs');
110
108
 
109
+ var _chunkOVHASRIDcjs = require('./chunk-OVHASRID.cjs');
111
110
 
112
111
 
113
112
 
114
- var _chunkZKQSQSSMcjs = require('./chunk-ZKQSQSSM.cjs');
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ var _chunkBMPCVT3Bcjs = require('./chunk-BMPCVT3B.cjs');
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ var _chunkHXABDVLZcjs = require('./chunk-HXABDVLZ.cjs');
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+ var _chunkPCSVBPORcjs = require('./chunk-PCSVBPOR.cjs');
115
147
 
116
148
  // src/tree/stats.ts
117
149
  function rawText(node) {
118
- if (_chunkZKQSQSSMcjs.isText.call(void 0, node))
150
+ if (_chunkPCSVBPORcjs.isText.call(void 0, node))
119
151
  return node.text;
120
152
  return node.children.map(rawText).join("");
121
153
  }
122
154
  function spacedText(node) {
123
- if (_chunkZKQSQSSMcjs.isText.call(void 0, node))
155
+ if (_chunkPCSVBPORcjs.isText.call(void 0, node))
124
156
  return node.text;
125
157
  return node.children.map(spacedText).join("\n");
126
158
  }
@@ -249,4 +281,34 @@ function docStats(doc) {
249
281
 
250
282
 
251
283
 
252
- exports.acceptSuggestion = _chunkQEVME6ZUcjs.acceptSuggestion; exports.amend = _chunkQEVME6ZUcjs.amend; exports.appendText = _chunkTWD5T4YCcjs.appendText; exports.apply = _chunkTWD5T4YCcjs.apply; exports.applyAll = _chunkTWD5T4YCcjs.applyAll; exports.applyForeign = _chunkQEVME6ZUcjs.applyForeign; exports.applyReplaceAll = _chunkQEVME6ZUcjs.applyReplaceAll; exports.arrowCell = _chunkTWD5T4YCcjs.arrowCell; exports.basicSchema = _chunkTWD5T4YCcjs.basicSchema; exports.buildGrid = _chunkTWD5T4YCcjs.buildGrid; exports.buildIdIndex = _chunkTWD5T4YCcjs.buildIdIndex; exports.calloutToHtml = _chunkTWD5T4YCcjs.calloutToHtml; exports.caretCell = _chunkTWD5T4YCcjs.caretCell; exports.cellCaret = _chunkTWD5T4YCcjs.cellCaret; exports.cellText = _chunkTWD5T4YCcjs.cellText; exports.checkSchema = _chunkTWD5T4YCcjs.checkSchema; exports.checkTable = _chunkTWD5T4YCcjs.checkTable; exports.clearCells = _chunkTWD5T4YCcjs.clearCells; exports.colspanOf = _chunkTWD5T4YCcjs.colspanOf; exports.commentIdsInDoc = _chunkQEVME6ZUcjs.commentIdsInDoc; exports.commit = _chunkQEVME6ZUcjs.commit; exports.deleteCol = _chunkTWD5T4YCcjs.deleteCol; exports.deleteRow = _chunkTWD5T4YCcjs.deleteRow; exports.deleteTableBlock = _chunkTWD5T4YCcjs.deleteTableBlock; exports.diffById = _chunkTWD5T4YCcjs.diffById; exports.docStats = docStats; exports.docToMd = _chunkTWD5T4YCcjs.docToMd; exports.dropSuggestText = _chunkQEVME6ZUcjs.dropSuggestText; exports.embedHtml = _chunkTWD5T4YCcjs.embedHtml; exports.findText = _chunkQEVME6ZUcjs.findText; exports.firstLeafPath = _chunkTWD5T4YCcjs.firstLeafPath; exports.firstViolation = _chunkQEVME6ZUcjs.firstViolation; exports.getVersion = _chunkQEVME6ZUcjs.getVersion; exports.hasSpan = _chunkTWD5T4YCcjs.hasSpan; exports.htmlToBlocks = _chunkTWD5T4YCcjs.htmlToBlocks; exports.init = _chunkQEVME6ZUcjs.init; exports.insertAfter = _chunkTWD5T4YCcjs.insertAfter; exports.insertCol = _chunkTWD5T4YCcjs.insertCol; exports.insertRow = _chunkTWD5T4YCcjs.insertRow; exports.invariants = _chunkQEVME6ZUcjs.invariants; exports.invert = _chunkTWD5T4YCcjs.invert; exports.invertAll = _chunkTWD5T4YCcjs.invertAll; exports.isElement = _chunkZKQSQSSMcjs.isElement; exports.isInlineAtom = _chunkZKQSQSSMcjs.isInlineAtom; exports.isPlainTransportHtml = _chunkTWD5T4YCcjs.isPlainTransportHtml; exports.isRichHtmlBlocks = _chunkTWD5T4YCcjs.isRichHtmlBlocks; exports.isSuggestMark = _chunkQEVME6ZUcjs.isSuggestMark; exports.isText = _chunkZKQSQSSMcjs.isText; exports.lastLeafEnd = _chunkTWD5T4YCcjs.lastLeafEnd; exports.listSuggestions = _chunkQEVME6ZUcjs.listSuggestions; exports.makeBias = _chunkU3JZDFL4cjs.makeBias; exports.makeTable = _chunkTWD5T4YCcjs.makeTable; exports.mapPosition = _chunkU3JZDFL4cjs.mapPosition; exports.mapSelection = _chunkU3JZDFL4cjs.mapSelection; exports.mapSelectionThrough = _chunkU3JZDFL4cjs.mapSelectionThrough; exports.markSuggestRange = _chunkQEVME6ZUcjs.markSuggestRange; exports.mdStructureBeatsTransport = _chunkTWD5T4YCcjs.mdStructureBeatsTransport; exports.mdToDoc = _chunkTWD5T4YCcjs.mdToDoc; exports.mergeCells = _chunkTWD5T4YCcjs.mergeCells; exports.moveBlock = _chunkTWD5T4YCcjs.moveBlock; exports.moveCol = _chunkTWD5T4YCcjs.moveCol; exports.moveRow = _chunkTWD5T4YCcjs.moveRow; exports.nextCell = _chunkTWD5T4YCcjs.nextCell; exports.nodeAt = _chunkTWD5T4YCcjs.nodeAt; exports.normalizePosition = _chunkU3JZDFL4cjs.normalizePosition; exports.normalizeToLeaf = _chunkTWD5T4YCcjs.normalizeToLeaf; exports.outline = _chunkQEVME6ZUcjs.outline; exports.pathOfId = _chunkTWD5T4YCcjs.pathOfId; exports.preferMarkdownPaste = _chunkTWD5T4YCcjs.preferMarkdownPaste; exports.pushVersion = _chunkQEVME6ZUcjs.pushVersion; exports.rangeForDelete = _chunkQEVME6ZUcjs.rangeForDelete; exports.rangeIsSuggestInsert = _chunkQEVME6ZUcjs.rangeIsSuggestInsert; exports.rebase = _chunkU3JZDFL4cjs.rebase; exports.rebaseBatchOver = _chunkU3JZDFL4cjs.rebaseBatchOver; exports.rebaseOne = _chunkU3JZDFL4cjs.rebaseOne; exports.rebaseStepsThrough = _chunkU3JZDFL4cjs.rebaseStepsThrough; exports.redo = _chunkQEVME6ZUcjs.redo; exports.rejectSuggestion = _chunkQEVME6ZUcjs.rejectSuggestion; exports.removeVersion = _chunkQEVME6ZUcjs.removeVersion; exports.replaceAll = _chunkQEVME6ZUcjs.replaceAll; exports.replaceAt = _chunkTWD5T4YCcjs.replaceAt; exports.replaceMatch = _chunkQEVME6ZUcjs.replaceMatch; exports.resolve = _chunkTWD5T4YCcjs.resolve; exports.resolveTxAfter = _chunkU3JZDFL4cjs.resolveTxAfter; exports.rewriteNode = _chunkTWD5T4YCcjs.rewriteNode; exports.rowspanOf = _chunkTWD5T4YCcjs.rowspanOf; exports.setAlign = _chunkTWD5T4YCcjs.setAlign; exports.setCellStyle = _chunkTWD5T4YCcjs.setCellStyle; exports.setColWidths = _chunkTWD5T4YCcjs.setColWidths; exports.setFreeze = _chunkTWD5T4YCcjs.setFreeze; exports.snapshotDoc = _chunkQEVME6ZUcjs.snapshotDoc; exports.spliceAt = _chunkTWD5T4YCcjs.spliceAt; exports.splitCell = _chunkTWD5T4YCcjs.splitCell; exports.stripCommentMarks = _chunkQEVME6ZUcjs.stripCommentMarks; exports.stripSuggestMarks = _chunkQEVME6ZUcjs.stripSuggestMarks; exports.suggestIdsInDoc = _chunkQEVME6ZUcjs.suggestIdsInDoc; exports.suggestMark = _chunkQEVME6ZUcjs.suggestMark; exports.tableAt = _chunkTWD5T4YCcjs.tableAt; exports.tableColWidths = _chunkTWD5T4YCcjs.tableColWidths; exports.tableHasExtras = _chunkTWD5T4YCcjs.tableHasExtras; exports.tableSchema = _chunkTWD5T4YCcjs.tableSchema; exports.tableShape = _chunkTWD5T4YCcjs.tableShape; exports.tableToHtml = _chunkTWD5T4YCcjs.tableToHtml; exports.transformRemoteAgainstPending = _chunkU3JZDFL4cjs.transformRemoteAgainstPending; exports.undo = _chunkQEVME6ZUcjs.undo; exports.validate = _chunkTWD5T4YCcjs.validate; exports.validateAll = _chunkTWD5T4YCcjs.validateAll;
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+ exports.CELL_BLOCK_TYPES = _chunkOVHASRIDcjs.CELL_BLOCK_TYPES; exports.CELL_EXCLUDED_FROM_BODY = _chunkOVHASRIDcjs.CELL_EXCLUDED_FROM_BODY; exports.DEFAULT_COL_WIDTH = _chunkOVHASRIDcjs.DEFAULT_COL_WIDTH; exports.FRONT_MATTER = _chunkOVHASRIDcjs.FRONT_MATTER; exports.acceptSuggestion = _chunkPZRWTLLBcjs.acceptSuggestion; exports.amend = _chunkPZRWTLLBcjs.amend; exports.appendText = _chunkOVHASRIDcjs.appendText; exports.apply = _chunkHXABDVLZcjs.apply; exports.applyAll = _chunkHXABDVLZcjs.applyAll; exports.applyForeign = _chunkPZRWTLLBcjs.applyForeign; exports.applyReplaceAll = _chunkPZRWTLLBcjs.applyReplaceAll; exports.arrowCell = _chunkOVHASRIDcjs.arrowCell; exports.basicSchema = _chunkOVHASRIDcjs.basicSchema; exports.bodyBlockTypes = _chunkOVHASRIDcjs.bodyBlockTypes; exports.buildGrid = _chunkOVHASRIDcjs.buildGrid; exports.buildIdIndex = _chunkOVHASRIDcjs.buildIdIndex; exports.calloutToHtml = _chunkOVHASRIDcjs.calloutToHtml; exports.caretCell = _chunkOVHASRIDcjs.caretCell; exports.cellBlockTypes = _chunkOVHASRIDcjs.cellBlockTypes; exports.cellCaret = _chunkOVHASRIDcjs.cellCaret; exports.cellRectTable = _chunkOVHASRIDcjs.cellRectTable; exports.cellText = _chunkOVHASRIDcjs.cellText; exports.checkSchema = _chunkOVHASRIDcjs.checkSchema; exports.checkTable = _chunkOVHASRIDcjs.checkTable; exports.clearCells = _chunkOVHASRIDcjs.clearCells; exports.colspanOf = _chunkOVHASRIDcjs.colspanOf; exports.commentIdsInDoc = _chunkPZRWTLLBcjs.commentIdsInDoc; exports.commit = _chunkPZRWTLLBcjs.commit; exports.deleteCol = _chunkOVHASRIDcjs.deleteCol; exports.deleteRow = _chunkOVHASRIDcjs.deleteRow; exports.deleteTableBlock = _chunkOVHASRIDcjs.deleteTableBlock; exports.diffById = _chunkOVHASRIDcjs.diffById; exports.docStats = docStats; exports.docToMd = _chunkOVHASRIDcjs.docToMd; exports.dropMarkedLeaves = _chunkPZRWTLLBcjs.dropMarkedLeaves; exports.dropSuggestText = _chunkPZRWTLLBcjs.dropSuggestText; exports.embedHtml = _chunkOVHASRIDcjs.embedHtml; exports.findText = _chunkPZRWTLLBcjs.findText; exports.firstLeafPath = _chunkHXABDVLZcjs.firstLeafPath; exports.firstViolation = _chunkPZRWTLLBcjs.firstViolation; exports.footnoteIndex = _chunkPZRWTLLBcjs.footnoteIndex; exports.footnoteKey = _chunkPCSVBPORcjs.footnoteKey; exports.footnoteText = _chunkPZRWTLLBcjs.footnoteText; exports.frontMatterEnd = _chunkOVHASRIDcjs.frontMatterEnd; exports.gapToTextPath = _chunkHXABDVLZcjs.gapToTextPath; exports.getVersion = _chunkPZRWTLLBcjs.getVersion; exports.hasFootnotes = _chunkPZRWTLLBcjs.hasFootnotes; exports.hasSpan = _chunkOVHASRIDcjs.hasSpan; exports.htmlToBlocks = _chunkOVHASRIDcjs.htmlToBlocks; exports.init = _chunkPZRWTLLBcjs.init; exports.insertAfter = _chunkOVHASRIDcjs.insertAfter; exports.insertCol = _chunkOVHASRIDcjs.insertCol; exports.insertRow = _chunkOVHASRIDcjs.insertRow; exports.invariants = _chunkPZRWTLLBcjs.invariants; exports.invert = _chunkHXABDVLZcjs.invert; exports.invertAll = _chunkHXABDVLZcjs.invertAll; exports.isAiCompose = _chunkPCSVBPORcjs.isAiCompose; exports.isBodyBlockType = _chunkOVHASRIDcjs.isBodyBlockType; exports.isCallout = _chunkPCSVBPORcjs.isCallout; exports.isCellBlockType = _chunkOVHASRIDcjs.isCellBlockType; exports.isCellBlockTypeInSpace = _chunkOVHASRIDcjs.isCellBlockTypeInSpace; exports.isElement = _chunkPCSVBPORcjs.isElement; exports.isFootnoteDef = _chunkPCSVBPORcjs.isFootnoteDef; exports.isFrontMatter = _chunkOVHASRIDcjs.isFrontMatter; exports.isInlineAtom = _chunkPCSVBPORcjs.isInlineAtom; exports.isLastCell = _chunkOVHASRIDcjs.isLastCell; exports.isPlainTransportHtml = _chunkOVHASRIDcjs.isPlainTransportHtml; exports.isRichHtmlBlocks = _chunkOVHASRIDcjs.isRichHtmlBlocks; exports.isSuggestMark = _chunkPZRWTLLBcjs.isSuggestMark; exports.isText = _chunkPCSVBPORcjs.isText; exports.lastLeafEnd = _chunkHXABDVLZcjs.lastLeafEnd; exports.listSuggestions = _chunkPZRWTLLBcjs.listSuggestions; exports.makeBias = _chunkBMPCVT3Bcjs.makeBias; exports.makeTable = _chunkOVHASRIDcjs.makeTable; exports.mapLeafBlocks = _chunkPZRWTLLBcjs.mapLeafBlocks; exports.mapPosition = _chunkBMPCVT3Bcjs.mapPosition; exports.mapSelection = _chunkBMPCVT3Bcjs.mapSelection; exports.mapSelectionThrough = _chunkBMPCVT3Bcjs.mapSelectionThrough; exports.markIdsInDoc = _chunkPZRWTLLBcjs.markIdsInDoc; exports.markSuggestRange = _chunkPZRWTLLBcjs.markSuggestRange; exports.mdStructureBeatsTransport = _chunkOVHASRIDcjs.mdStructureBeatsTransport; exports.mdToDoc = _chunkOVHASRIDcjs.mdToDoc; exports.mdToDocAsync = _chunkOVHASRIDcjs.mdToDocAsync; exports.mergeCells = _chunkOVHASRIDcjs.mergeCells; exports.moveBlock = _chunkHXABDVLZcjs.moveBlock; exports.moveCol = _chunkOVHASRIDcjs.moveCol; exports.moveRow = _chunkOVHASRIDcjs.moveRow; exports.nextCell = _chunkOVHASRIDcjs.nextCell; exports.nodeAt = _chunkHXABDVLZcjs.nodeAt; exports.normalizePosition = _chunkBMPCVT3Bcjs.normalizePosition; exports.normalizeToLeaf = _chunkHXABDVLZcjs.normalizeToLeaf; exports.outline = _chunkPZRWTLLBcjs.outline; exports.pathOfId = _chunkOVHASRIDcjs.pathOfId; exports.preferMarkdownPaste = _chunkOVHASRIDcjs.preferMarkdownPaste; exports.pushVersion = _chunkPZRWTLLBcjs.pushVersion; exports.rangeForDelete = _chunkPZRWTLLBcjs.rangeForDelete; exports.rangeIsSuggestInsert = _chunkPZRWTLLBcjs.rangeIsSuggestInsert; exports.rebase = _chunkBMPCVT3Bcjs.rebase; exports.rebaseBatchOver = _chunkBMPCVT3Bcjs.rebaseBatchOver; exports.rebaseOne = _chunkBMPCVT3Bcjs.rebaseOne; exports.rebaseStepsThrough = _chunkBMPCVT3Bcjs.rebaseStepsThrough; exports.redo = _chunkPZRWTLLBcjs.redo; exports.rejectSuggestion = _chunkPZRWTLLBcjs.rejectSuggestion; exports.removeVersion = _chunkPZRWTLLBcjs.removeVersion; exports.replaceAll = _chunkPZRWTLLBcjs.replaceAll; exports.replaceAt = _chunkHXABDVLZcjs.replaceAt; exports.replaceMatch = _chunkPZRWTLLBcjs.replaceMatch; exports.resolve = _chunkHXABDVLZcjs.resolve; exports.resolveTxAfter = _chunkBMPCVT3Bcjs.resolveTxAfter; exports.resolvedColWidths = _chunkOVHASRIDcjs.resolvedColWidths; exports.rewriteNode = _chunkOVHASRIDcjs.rewriteNode; exports.rowspanOf = _chunkOVHASRIDcjs.rowspanOf; exports.setAlign = _chunkOVHASRIDcjs.setAlign; exports.setCellStyle = _chunkOVHASRIDcjs.setCellStyle; exports.setColWidths = _chunkOVHASRIDcjs.setColWidths; exports.setFreeze = _chunkOVHASRIDcjs.setFreeze; exports.setHeaderCol = _chunkOVHASRIDcjs.setHeaderCol; exports.setMathSyntax = _chunkOVHASRIDcjs.setMathSyntax; exports.snapshotDoc = _chunkPZRWTLLBcjs.snapshotDoc; exports.spliceAt = _chunkHXABDVLZcjs.spliceAt; exports.splitCell = _chunkOVHASRIDcjs.splitCell; exports.stripCommentMarks = _chunkPZRWTLLBcjs.stripCommentMarks; exports.stripMarks = _chunkPZRWTLLBcjs.stripMarks; exports.stripSuggestMarks = _chunkPZRWTLLBcjs.stripSuggestMarks; exports.suggestIdsInDoc = _chunkPZRWTLLBcjs.suggestIdsInDoc; exports.suggestMark = _chunkPZRWTLLBcjs.suggestMark; exports.tableAt = _chunkOVHASRIDcjs.tableAt; exports.tableColWidths = _chunkOVHASRIDcjs.tableColWidths; exports.tableHasExtras = _chunkOVHASRIDcjs.tableHasExtras; exports.tableSchema = _chunkOVHASRIDcjs.tableSchema; exports.tableShape = _chunkOVHASRIDcjs.tableShape; exports.tableToHtml = _chunkOVHASRIDcjs.tableToHtml; exports.transformRemoteAgainstPending = _chunkBMPCVT3Bcjs.transformRemoteAgainstPending; exports.undo = _chunkPZRWTLLBcjs.undo; exports.validate = _chunkOVHASRIDcjs.validate; exports.validateAll = _chunkOVHASRIDcjs.validateAll; exports.wordCount = _chunkPZRWTLLBcjs.wordCount;