markloom 0.5.1 → 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.
- package/PACKAGES.md +26 -0
- package/README.md +20 -2
- package/collab.md +60 -13
- package/dist/ai/index.cjs +5 -4
- package/dist/ai/index.d.cts +5 -4
- package/dist/ai/index.d.ts +5 -4
- package/dist/ai/index.js +4 -3
- package/dist/ai/theme.css +66 -102
- package/dist/{chunk-ZMTLSFLO.js → chunk-4Q7PAR2T.js} +5746 -1341
- package/dist/chunk-75EJ4ARB.cjs +642 -0
- package/dist/{chunk-JS527FDV.cjs → chunk-BMPCVT3B.cjs} +47 -39
- package/dist/{chunk-RLTHVQNQ.js → chunk-EFYT2223.js} +47 -39
- package/dist/chunk-HXABDVLZ.cjs +297 -0
- package/dist/{chunk-YIFOGP2D.cjs → chunk-I2LDEVLA.cjs} +499 -102
- package/dist/chunk-MQLRZQZL.js +642 -0
- package/dist/chunk-OVHASRID.cjs +4279 -0
- package/dist/chunk-PCSVBPOR.cjs +40 -0
- package/dist/{chunk-FCH7LZFI.js → chunk-PSAXWBNM.js} +450 -53
- package/dist/chunk-PZRWTLLB.cjs +858 -0
- package/dist/chunk-QO7JEZDB.js +4279 -0
- package/dist/chunk-WSJUXPAG.js +40 -0
- package/dist/{chunk-VXM7Q6P5.cjs → chunk-Y4IXQFWL.cjs} +6026 -1621
- package/dist/chunk-YLVSMDIO.js +858 -0
- package/dist/chunk-ZL6WT6OY.js +297 -0
- package/dist/client-BvvyHjhh.d.ts +250 -0
- package/dist/client-Ciy7Fa_k.d.cts +250 -0
- package/dist/collab/index.cjs +17 -4
- package/dist/collab/index.d.cts +18 -7
- package/dist/collab/index.d.ts +18 -7
- package/dist/collab/index.js +19 -6
- package/dist/{controller-DQITsFhy.d.cts → controller-CHznEhAR.d.cts} +277 -26
- package/dist/{controller-BNuuUM3E.d.ts → controller-DLqI8_jm.d.ts} +277 -26
- package/dist/index.cjs +119 -7
- package/dist/index.d.cts +138 -6
- package/dist/index.d.ts +138 -6
- package/dist/index.js +130 -18
- package/dist/io/index.cjs +1412 -0
- package/dist/io/index.d.cts +33 -0
- package/dist/io/index.d.ts +33 -0
- package/dist/io/index.js +1412 -0
- package/dist/react/index.cjs +9 -8
- package/dist/react/index.d.cts +5 -4
- package/dist/react/index.d.ts +5 -4
- package/dist/react/index.js +8 -7
- package/dist/{rebase-batch-8rL_aXEE.d.ts → rebase-batch-CSnv8FKp.d.ts} +11 -9
- package/dist/{rebase-batch-bYnBJpRO.d.cts → rebase-batch-DO1ygkx9.d.cts} +11 -9
- package/dist/types-BkHlmUFL.d.cts +34 -0
- package/dist/types-BkHlmUFL.d.ts +34 -0
- package/dist/versions-DNFf8zVz.d.cts +51 -0
- package/dist/versions-DOkOyh2J.d.ts +51 -0
- package/dist/view/index.cjs +259 -17
- package/dist/view/index.d.cts +277 -12
- package/dist/view/index.d.ts +277 -12
- package/dist/view/index.js +256 -14
- package/dist/view/theme.css +2093 -1577
- package/dist/word-count-BPw9G2Bg.d.ts +130 -0
- package/dist/word-count-DNLn1h_t.d.cts +130 -0
- package/io.md +38 -0
- package/package.json +25 -4
- package/dist/chunk-4JSJAHTB.js +0 -255
- package/dist/chunk-4TMHVNL6.cjs +0 -2297
- package/dist/chunk-ALZ3A5CS.cjs +0 -255
- package/dist/chunk-GQ2HHRGI.cjs +0 -16
- package/dist/chunk-LA5SBCGQ.js +0 -16
- package/dist/chunk-LEYAQNJA.js +0 -220
- package/dist/chunk-MFYF2A6U.js +0 -2297
- package/dist/chunk-YXQDCW4Y.cjs +0 -220
- package/dist/client-6KiH4kGK.d.ts +0 -144
- package/dist/client-ZRZj2nkq.d.cts +0 -144
- package/dist/comments-DlExS6f-.d.cts +0 -43
- package/dist/comments-PhnR7Gkn.d.ts +0 -43
- package/dist/step-BrvHIK7O.d.cts +0 -65
- package/dist/step-BrvHIK7O.d.ts +0 -65
package/dist/view/index.cjs
CHANGED
|
@@ -79,8 +79,6 @@
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var _chunkVXM7Q6P5cjs = require('../chunk-VXM7Q6P5.cjs');
|
|
83
|
-
require('../chunk-YXQDCW4Y.cjs');
|
|
84
82
|
|
|
85
83
|
|
|
86
84
|
|
|
@@ -91,11 +89,84 @@ require('../chunk-YXQDCW4Y.cjs');
|
|
|
91
89
|
|
|
92
90
|
|
|
93
91
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
var _chunkY4IXQFWLcjs = require('../chunk-Y4IXQFWL.cjs');
|
|
130
|
+
require('../chunk-PZRWTLLB.cjs');
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
var _chunkI2LDEVLAcjs = require('../chunk-I2LDEVLA.cjs');
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
var _chunkOVHASRIDcjs = require('../chunk-OVHASRID.cjs');
|
|
162
|
+
require('../chunk-75EJ4ARB.cjs');
|
|
163
|
+
require('../chunk-BMPCVT3B.cjs');
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
var _chunkHXABDVLZcjs = require('../chunk-HXABDVLZ.cjs');
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
var _chunkPCSVBPORcjs = require('../chunk-PCSVBPOR.cjs');
|
|
99
170
|
|
|
100
171
|
// src/view/shiki-code-view.ts
|
|
101
172
|
var _preact = require('preact');
|
|
@@ -111,9 +182,9 @@ function shikiCodeView(highlight, langs) {
|
|
|
111
182
|
// 标记:此叶是多 text 节点拼接,selection 按全文 offset 走
|
|
112
183
|
"dangerouslySetInnerHTML": { __html: anchorEmptyLines(highlight(ctx.text, lang)) }
|
|
113
184
|
});
|
|
114
|
-
const copy = _preact.h.call(void 0, "button", { "key": "copy", "data-copy": "", "type": "button", "contentEditable": "false", "tabIndex": -1, "aria-label": "
|
|
115
|
-
const langBtn = _preact.h.call(void 0, "button", { "key": "lang", "data-code-lang": "", "type": "button", "contentEditable": "false", "tabIndex": -1 }, lang || "
|
|
116
|
-
return _preact.h.call(void 0, "div", { "key": ctx.key, "data-block-id": _nullishCoalesce(ctx.node.id, () => ( "")), "data-code-block": "" }, [langBtn, copy, leaf]);
|
|
185
|
+
const copy = _preact.h.call(void 0, "button", { "key": "copy", "data-copy": "", "type": "button", "contentEditable": "false", "tabIndex": -1, "aria-label": _chunkI2LDEVLAcjs.t.call(void 0, "copyCode") });
|
|
186
|
+
const langBtn = ctx.editable === false ? null : _preact.h.call(void 0, "button", { "key": "lang", "data-code-lang": "", "type": "button", "contentEditable": "false", "tabIndex": -1 }, lang || _chunkI2LDEVLAcjs.t.call(void 0, "plainText"));
|
|
187
|
+
return _preact.h.call(void 0, "div", { "key": ctx.key, "data-block-id": _nullishCoalesce(ctx.node.id, () => ( "")), "data-code-block": "", "spellcheck": "false" }, [langBtn, copy, leaf]);
|
|
117
188
|
}
|
|
118
189
|
};
|
|
119
190
|
}
|
|
@@ -133,6 +204,63 @@ function anchorEmptyLines(html) {
|
|
|
133
204
|
return pre.outerHTML;
|
|
134
205
|
}
|
|
135
206
|
|
|
207
|
+
// src/view/open-async.ts
|
|
208
|
+
var ASYNC_MIN_BYTES = 48 * 1024;
|
|
209
|
+
async function openEditorAsync(root, md, opts = {}) {
|
|
210
|
+
const { budgetMs = 8, layoutMs = 25, headBlocks = 200, signal, ...eopts } = opts;
|
|
211
|
+
const source = _nullishCoalesce(eopts.source, () => ( md));
|
|
212
|
+
if (md.length < ASYNC_MIN_BYTES) {
|
|
213
|
+
const editor2 = new (0, _chunkY4IXQFWLcjs.Editor)(root, _chunkOVHASRIDcjs.mdToDoc.call(void 0, md), { ...eopts, source });
|
|
214
|
+
return { editor: editor2, loaded: Promise.resolve(editor2.doc) };
|
|
215
|
+
}
|
|
216
|
+
let onHead;
|
|
217
|
+
const headP = new Promise((r) => {
|
|
218
|
+
onHead = r;
|
|
219
|
+
});
|
|
220
|
+
const fullP = _chunkOVHASRIDcjs.mdToDocAsync.call(void 0, md, { budgetMs, headBlocks, onHead, signal });
|
|
221
|
+
const first = await Promise.race([headP, fullP]);
|
|
222
|
+
const wantEditable = eopts.editable !== false;
|
|
223
|
+
const editor = new (0, _chunkY4IXQFWLcjs.Editor)(root, first, { ...eopts, source, editable: false });
|
|
224
|
+
const loaded = (async () => {
|
|
225
|
+
try {
|
|
226
|
+
const doc = await fullP;
|
|
227
|
+
const total = doc.children.length;
|
|
228
|
+
let n = first.children.length;
|
|
229
|
+
let step = 128;
|
|
230
|
+
let perBlock = 0.05;
|
|
231
|
+
while (n < total) {
|
|
232
|
+
if (_optionalChain([signal, 'optionalAccess', _6 => _6.aborted]))
|
|
233
|
+
throw Object.assign(new Error("openEditorAsync aborted"), { name: "AbortError" });
|
|
234
|
+
await _chunkOVHASRIDcjs.yieldToMain.call(void 0, );
|
|
235
|
+
const t0 = performance.now();
|
|
236
|
+
const take = Math.min(total - n, step);
|
|
237
|
+
n += take;
|
|
238
|
+
editor.replaceDoc({ ...doc, children: doc.children.slice(0, n) }, { notify: false, quiet: true });
|
|
239
|
+
const dt = performance.now() - t0;
|
|
240
|
+
perBlock = perBlock * 0.7 + dt / take * 0.3;
|
|
241
|
+
step = Math.max(128, Math.min(4096, Math.round(layoutMs / perBlock)));
|
|
242
|
+
}
|
|
243
|
+
editor.replaceDoc(doc, { notify: false });
|
|
244
|
+
if (wantEditable)
|
|
245
|
+
editor.setEditable(true);
|
|
246
|
+
if (eopts.autofocus != null && eopts.autofocus !== false && wantEditable) {
|
|
247
|
+
const sel = _chunkY4IXQFWLcjs.autofocusSelection.call(void 0, editor.doc, eopts.autofocus);
|
|
248
|
+
if (sel) {
|
|
249
|
+
root.focus({ preventScroll: true });
|
|
250
|
+
_chunkI2LDEVLAcjs.writeSelection.call(void 0, editor.root, editor.doc, sel);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return editor.doc;
|
|
254
|
+
} catch (e) {
|
|
255
|
+
editor.destroy();
|
|
256
|
+
throw e;
|
|
257
|
+
}
|
|
258
|
+
})();
|
|
259
|
+
loaded.catch(() => {
|
|
260
|
+
});
|
|
261
|
+
return { editor, loaded };
|
|
262
|
+
}
|
|
263
|
+
|
|
136
264
|
// src/view/extensions/typography.ts
|
|
137
265
|
var SUBS = [
|
|
138
266
|
{ trigger: "-", from: "--", to: "\u2014" },
|
|
@@ -149,10 +277,31 @@ var SUBS = [
|
|
|
149
277
|
{ trigger: "4", from: "1/4", to: "\xBC" },
|
|
150
278
|
{ trigger: "4", from: "3/4", to: "\xBE" }
|
|
151
279
|
];
|
|
280
|
+
function inLiteral(ctx) {
|
|
281
|
+
const leaf = _chunkHXABDVLZcjs.nodeAt.call(void 0, ctx.doc, ctx.leafPath);
|
|
282
|
+
if (_chunkPCSVBPORcjs.isText.call(void 0, leaf) && _optionalChain([leaf, 'access', _7 => _7.marks, 'optionalAccess', _8 => _8.some, 'call', _9 => _9((m) => m.name === "code" || m.name === "link")]))
|
|
283
|
+
return true;
|
|
284
|
+
let ticks = 0;
|
|
285
|
+
for (const ch of ctx.marker) {
|
|
286
|
+
if (ch === "`")
|
|
287
|
+
ticks++;
|
|
288
|
+
}
|
|
289
|
+
if (ticks % 2 === 1)
|
|
290
|
+
return true;
|
|
291
|
+
let start = ctx.marker.length;
|
|
292
|
+
while (start > 0 && !/\s/.test(ctx.marker[start - 1]))
|
|
293
|
+
start--;
|
|
294
|
+
const word = ctx.marker.slice(start);
|
|
295
|
+
return word.includes("://") || word.startsWith("www.");
|
|
296
|
+
}
|
|
297
|
+
function isCjk(ch) {
|
|
298
|
+
const c = _nullishCoalesce(ch.codePointAt(0), () => ( 0));
|
|
299
|
+
return c >= 11904 && c <= 40959 || c >= 44032 && c <= 55215 || c >= 63744 && c <= 64255 || c >= 65280 && c <= 65519 || c >= 131072 && c <= 195103;
|
|
300
|
+
}
|
|
152
301
|
function subRule() {
|
|
153
302
|
return {
|
|
154
303
|
match: (ctx) => {
|
|
155
|
-
if (ctx.block.type === "code")
|
|
304
|
+
if (ctx.block.type === "code" || inLiteral(ctx))
|
|
156
305
|
return null;
|
|
157
306
|
const combined = ctx.marker + ctx.trigger;
|
|
158
307
|
for (const s of SUBS) {
|
|
@@ -162,11 +311,13 @@ function subRule() {
|
|
|
162
311
|
const at = ctx.offset - eaten;
|
|
163
312
|
if (at < 0)
|
|
164
313
|
return null;
|
|
314
|
+
if (s.from === "--" && ctx.leafIdx === 0 && ctx.block.type === "paragraph" && [...combined].every((ch) => ch === "-"))
|
|
315
|
+
return null;
|
|
165
316
|
const steps = [
|
|
166
317
|
{ kind: "deleteText", path: ctx.leafPath, offset: at, length: eaten },
|
|
167
318
|
{ kind: "insertText", path: ctx.leafPath, offset: at, text: s.to }
|
|
168
319
|
];
|
|
169
|
-
return { steps, selection:
|
|
320
|
+
return { steps, selection: _chunkY4IXQFWLcjs.caret.call(void 0, ctx.leafPath.concat(at + s.to.length)) };
|
|
170
321
|
}
|
|
171
322
|
return null;
|
|
172
323
|
}
|
|
@@ -175,12 +326,24 @@ function subRule() {
|
|
|
175
326
|
function quoteRule(quote, open, close) {
|
|
176
327
|
return {
|
|
177
328
|
match: (ctx) => {
|
|
178
|
-
if (ctx.block.type === "code" || ctx.trigger !== quote)
|
|
329
|
+
if (ctx.block.type === "code" || ctx.trigger !== quote || inLiteral(ctx))
|
|
179
330
|
return null;
|
|
180
331
|
const prev = ctx.marker.slice(-1);
|
|
181
|
-
|
|
332
|
+
let to;
|
|
333
|
+
if (prev === "" || prev === " " || prev === "\n" || prev === " " || prev === "(" || prev === "[" || prev === "{") {
|
|
334
|
+
to = open;
|
|
335
|
+
} else {
|
|
336
|
+
let depth = 0;
|
|
337
|
+
for (const ch of ctx.marker) {
|
|
338
|
+
if (ch === open)
|
|
339
|
+
depth++;
|
|
340
|
+
else if (ch === close && depth > 0)
|
|
341
|
+
depth--;
|
|
342
|
+
}
|
|
343
|
+
to = depth > 0 ? close : isCjk(prev) ? open : close;
|
|
344
|
+
}
|
|
182
345
|
const steps = [{ kind: "insertText", path: ctx.leafPath, offset: ctx.offset, text: to }];
|
|
183
|
-
return { steps, selection:
|
|
346
|
+
return { steps, selection: _chunkY4IXQFWLcjs.caret.call(void 0, ctx.leafPath.concat(ctx.offset + to.length)) };
|
|
184
347
|
}
|
|
185
348
|
};
|
|
186
349
|
}
|
|
@@ -256,7 +419,7 @@ function emojiRule() {
|
|
|
256
419
|
{ kind: "deleteText", path: ctx.leafPath, offset: at, length: eaten },
|
|
257
420
|
{ kind: "insertText", path: ctx.leafPath, offset: at, text: glyph }
|
|
258
421
|
];
|
|
259
|
-
return { steps, selection:
|
|
422
|
+
return { steps, selection: _chunkY4IXQFWLcjs.caret.call(void 0, ctx.leafPath.concat(at + glyph.length)) };
|
|
260
423
|
}
|
|
261
424
|
};
|
|
262
425
|
}
|
|
@@ -274,6 +437,85 @@ var comments = {
|
|
|
274
437
|
marks: [{ name: "comment", tag: "span" }]
|
|
275
438
|
};
|
|
276
439
|
|
|
440
|
+
// src/view/extensions/typora-keys.ts
|
|
441
|
+
var level = (depth) => (ctx) => ctx.sel ? _chunkY4IXQFWLcjs.setHeadingDepth.call(void 0, ctx.doc, ctx.sel, depth) : null;
|
|
442
|
+
var typoraKeys = {
|
|
443
|
+
name: "typoraKeys",
|
|
444
|
+
keymap: {
|
|
445
|
+
"Mod-0": level(0),
|
|
446
|
+
"Mod-1": level(1),
|
|
447
|
+
"Mod-2": level(2),
|
|
448
|
+
"Mod-3": level(3),
|
|
449
|
+
"Mod-4": level(4),
|
|
450
|
+
"Mod-5": level(5),
|
|
451
|
+
"Mod-6": level(6)
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
277
519
|
|
|
278
520
|
|
|
279
521
|
|
|
@@ -368,4 +610,4 @@ var comments = {
|
|
|
368
610
|
|
|
369
611
|
|
|
370
612
|
|
|
371
|
-
exports.CALLOUT_VARIANTS =
|
|
613
|
+
exports.ASYNC_MIN_BYTES = ASYNC_MIN_BYTES; exports.CALLOUT_VARIANTS = _chunkY4IXQFWLcjs.CALLOUT_VARIANTS; exports.CommentPanel = _chunkY4IXQFWLcjs.CommentPanel; exports.Editor = _chunkY4IXQFWLcjs.Editor; exports.INLINE_PAIRS = _chunkY4IXQFWLcjs.INLINE_PAIRS; exports.MentionMenu = _chunkY4IXQFWLcjs.MentionMenu; exports.MentionPopovers = _chunkY4IXQFWLcjs.MentionPopovers; exports.SELECT_UNIT_TYPES = _chunkI2LDEVLAcjs.SELECT_UNIT_TYPES; exports.SearchBar = _chunkY4IXQFWLcjs.SearchBar; exports.SuggestBar = _chunkY4IXQFWLcjs.SuggestBar; exports.TocPanel = _chunkY4IXQFWLcjs.TocPanel; exports.VersionsPanel = _chunkY4IXQFWLcjs.VersionsPanel; exports.askInput = _chunkY4IXQFWLcjs.askInput; exports.askLinkPopover = _chunkY4IXQFWLcjs.askLinkPopover; exports.askPopover = _chunkY4IXQFWLcjs.askPopover; exports.atomIsSelected = _chunkY4IXQFWLcjs.atomIsSelected; exports.autofocusSelection = _chunkY4IXQFWLcjs.autofocusSelection; exports.blockExtensions = _chunkY4IXQFWLcjs.blockExtensions; exports.blockPlainText = _chunkI2LDEVLAcjs.blockPlainText; exports.blockTransform = _chunkY4IXQFWLcjs.blockTransform; exports.blockTransformRange = _chunkY4IXQFWLcjs.blockTransformRange; exports.boldMark = _chunkY4IXQFWLcjs.boldMark; exports.bubbleMenu = _chunkY4IXQFWLcjs.bubbleMenu; exports.calloutVariantFromQuery = _chunkY4IXQFWLcjs.calloutVariantFromQuery; exports.caret = _chunkY4IXQFWLcjs.caret; exports.chord = _chunkY4IXQFWLcjs.chord; exports.clearFormatting = _chunkY4IXQFWLcjs.clearFormatting; exports.clearMarks = _chunkY4IXQFWLcjs.clearMarks; exports.clipboardFromDataTransfer = _chunkY4IXQFWLcjs.clipboardFromDataTransfer; exports.closeAskInput = _chunkY4IXQFWLcjs.closeAskInput; exports.codeBlock = _chunkY4IXQFWLcjs.codeBlock; exports.codeControls = _chunkY4IXQFWLcjs.codeControls; exports.codeMark = _chunkY4IXQFWLcjs.codeMark; exports.comments = comments; exports.createDragHandle = _chunkY4IXQFWLcjs.createDragHandle; exports.cycleCalloutVariant = _chunkY4IXQFWLcjs.cycleCalloutVariant; exports.decorationExtensions = _chunkY4IXQFWLcjs.decorationExtensions; exports.defaultBlockRenderers = _chunkY4IXQFWLcjs.defaultBlockRenderers; exports.defaultBlockTag = _chunkY4IXQFWLcjs.defaultBlockTag; exports.defaultMarkTag = _chunkY4IXQFWLcjs.defaultMarkTag; exports.diffSpan = _chunkY4IXQFWLcjs.diffSpan; exports.docExtent = _chunkI2LDEVLAcjs.docExtent; exports.domToPoint = _chunkI2LDEVLAcjs.domToPoint; exports.dragHandle = _chunkY4IXQFWLcjs.dragHandle; exports.elementChildren = _chunkI2LDEVLAcjs.elementChildren; exports.embedBlock = _chunkY4IXQFWLcjs.embedBlock; exports.emoji = emoji; exports.emptyGapPara = _chunkY4IXQFWLcjs.emptyGapPara; exports.ensureGaps = _chunkY4IXQFWLcjs.ensureGaps; exports.expandSelectAll = _chunkI2LDEVLAcjs.expandSelectAll; exports.expandToLink = _chunkY4IXQFWLcjs.expandToLink; exports.focusBlockId = _chunkI2LDEVLAcjs.focusBlockId; exports.gapSteps = _chunkY4IXQFWLcjs.gapSteps; exports.getLocale = _chunkI2LDEVLAcjs.getLocale; exports.highlightMark = _chunkY4IXQFWLcjs.highlightMark; exports.history = _chunkY4IXQFWLcjs.history; exports.hrBlock = _chunkY4IXQFWLcjs.hrBlock; exports.htmlToPlainText = _chunkY4IXQFWLcjs.htmlToPlainText; exports.imageBlock = _chunkY4IXQFWLcjs.imageBlock; exports.imageFileFrom = _chunkY4IXQFWLcjs.imageFileFrom; exports.indentItem = _chunkY4IXQFWLcjs.indentItem; exports.inlinePairRule = _chunkY4IXQFWLcjs.inlinePairRule; exports.inputRules = _chunkY4IXQFWLcjs.inputRules; exports.invalidateStructure = _chunkI2LDEVLAcjs.invalidateStructure; exports.invisibleCharacters = invisibleCharacters; exports.isAtom = _chunkY4IXQFWLcjs.isAtom; exports.isBareUrl = _chunkY4IXQFWLcjs.isBareUrl; exports.isCellBlockKind = _chunkY4IXQFWLcjs.isCellBlockKind; exports.isOpaque = _chunkY4IXQFWLcjs.isOpaque; exports.isProgressiveSelectUnit = _chunkI2LDEVLAcjs.isProgressiveSelectUnit; exports.isSafeLinkUrl = _chunkY4IXQFWLcjs.isSafeLinkUrl; exports.isSelectUnit = _chunkI2LDEVLAcjs.isSelectUnit; exports.isSelectUnitType = _chunkI2LDEVLAcjs.isSelectUnitType; exports.italicMark = _chunkY4IXQFWLcjs.italicMark; exports.joinPrevList = _chunkY4IXQFWLcjs.joinPrevList; exports.keepsApart = _chunkY4IXQFWLcjs.keepsApart; exports.leafBlockPath = _chunkY4IXQFWLcjs.leafBlockPath; exports.leafText = _chunkY4IXQFWLcjs.leafText; exports.lineBoundaryBack = _chunkY4IXQFWLcjs.lineBoundaryBack; exports.lineBoundaryFwd = _chunkY4IXQFWLcjs.lineBoundaryFwd; exports.linkMark = _chunkY4IXQFWLcjs.linkMark; exports.linkTip = _chunkY4IXQFWLcjs.linkTip; exports.mapInput = _chunkY4IXQFWLcjs.mapInput; exports.mapPaste = _chunkY4IXQFWLcjs.mapPaste; exports.mapPasteBlocks = _chunkY4IXQFWLcjs.mapPasteBlocks; exports.markExtensions = _chunkY4IXQFWLcjs.markExtensions; exports.markdownLinkRule = _chunkY4IXQFWLcjs.markdownLinkRule; exports.markloomKit = _chunkY4IXQFWLcjs.markloomKit; exports.marksAtCaret = _chunkY4IXQFWLcjs.marksAtCaret; exports.matchInlinePair = _chunkY4IXQFWLcjs.matchInlinePair; exports.mentionMenu = _chunkY4IXQFWLcjs.mentionMenu; exports.mergeTextStyleAttrs = _chunkY4IXQFWLcjs.mergeTextStyleAttrs; exports.nearestListPath = _chunkY4IXQFWLcjs.nearestListPath; exports.nodeExtent = _chunkI2LDEVLAcjs.nodeExtent; exports.normalizeLinkUrl = _chunkY4IXQFWLcjs.normalizeLinkUrl; exports.openEditorAsync = openEditorAsync; exports.outdentItem = _chunkY4IXQFWLcjs.outdentItem; exports.parseTypedLink = _chunkY4IXQFWLcjs.parseTypedLink; exports.parseTypedUrl = _chunkY4IXQFWLcjs.parseTypedUrl; exports.pointToDom = _chunkI2LDEVLAcjs.pointToDom; exports.progressiveUnitPaths = _chunkI2LDEVLAcjs.progressiveUnitPaths; exports.projectDoc = _chunkY4IXQFWLcjs.projectDoc; exports.readSelection = _chunkI2LDEVLAcjs.readSelection; exports.renderCode = _chunkY4IXQFWLcjs.renderCode; exports.renderDoc = _chunkY4IXQFWLcjs.renderDoc; exports.renderEmbed = _chunkY4IXQFWLcjs.renderEmbed; exports.renderHr = _chunkY4IXQFWLcjs.renderHr; exports.renderImage = _chunkY4IXQFWLcjs.renderImage; exports.renderTable = _chunkY4IXQFWLcjs.renderTable; exports.renderToHtml = _chunkY4IXQFWLcjs.renderToHtml; exports.resolve = _chunkY4IXQFWLcjs.resolve; exports.resolvePaste = _chunkY4IXQFWLcjs.resolvePaste; exports.rootEl = _chunkI2LDEVLAcjs.rootEl; exports.safeCssValue = _chunkOVHASRIDcjs.safeCssValue; exports.selectUnitPath = _chunkI2LDEVLAcjs.selectUnitPath; exports.selectionCovers = _chunkI2LDEVLAcjs.selectionCovers; exports.serializeBlock = _chunkY4IXQFWLcjs.serializeBlock; exports.serializeSelection = _chunkY4IXQFWLcjs.serializeSelection; exports.setAlign = _chunkY4IXQFWLcjs.setAlign; exports.setCalloutVariant = _chunkY4IXQFWLcjs.setCalloutVariant; exports.setHeadingDepth = _chunkY4IXQFWLcjs.setHeadingDepth; exports.setListType = _chunkY4IXQFWLcjs.setListType; exports.setLocale = _chunkI2LDEVLAcjs.setLocale; exports.setTextStyle = _chunkY4IXQFWLcjs.setTextStyle; exports.shikiCodeView = shikiCodeView; exports.slashMenu = _chunkY4IXQFWLcjs.slashMenu; exports.soloImgFromHtml = _chunkY4IXQFWLcjs.soloImgFromHtml; exports.soloImgSrcFromHtml = _chunkY4IXQFWLcjs.soloImgSrcFromHtml; exports.startAiWrite = _chunkI2LDEVLAcjs.startAiWrite; exports.strikeMark = _chunkY4IXQFWLcjs.strikeMark; exports.subscriptMark = _chunkY4IXQFWLcjs.subscriptMark; exports.suggest = _chunkY4IXQFWLcjs.suggest; exports.superscriptMark = _chunkY4IXQFWLcjs.superscriptMark; exports.tableAbove = _chunkY4IXQFWLcjs.tableAbove; exports.tableBlock = _chunkY4IXQFWLcjs.tableBlock; exports.textAlign = _chunkY4IXQFWLcjs.textAlign; exports.textStyleCss = _chunkY4IXQFWLcjs.textStyleCss; exports.textStyleMark = _chunkY4IXQFWLcjs.textStyleMark; exports.toggleMark = _chunkY4IXQFWLcjs.toggleMark; exports.toggleMarkList = _chunkY4IXQFWLcjs.toggleMarkList; exports.tryEmbed = _chunkY4IXQFWLcjs.tryEmbed; exports.tryHtmlBlocks = _chunkY4IXQFWLcjs.tryHtmlBlocks; exports.tryImageFile = _chunkY4IXQFWLcjs.tryImageFile; exports.tryImageUrl = _chunkY4IXQFWLcjs.tryImageUrl; exports.tryLinkMark = _chunkY4IXQFWLcjs.tryLinkMark; exports.tryLiteral = _chunkY4IXQFWLcjs.tryLiteral; exports.tryMarkdown = _chunkY4IXQFWLcjs.tryMarkdown; exports.twitchChannel = _chunkY4IXQFWLcjs.twitchChannel; exports.typography = typography; exports.typoraKeys = typoraKeys; exports.underlineMark = _chunkY4IXQFWLcjs.underlineMark; exports.urlAutolink = _chunkY4IXQFWLcjs.urlAutolink; exports.urlAutolinkRule = _chunkY4IXQFWLcjs.urlAutolinkRule; exports.wordBoundaryBack = _chunkY4IXQFWLcjs.wordBoundaryBack; exports.wordBoundaryFwd = _chunkY4IXQFWLcjs.wordBoundaryFwd; exports.wrapList = _chunkY4IXQFWLcjs.wrapList; exports.writeSelection = _chunkI2LDEVLAcjs.writeSelection; exports.youtubeId = _chunkY4IXQFWLcjs.youtubeId;
|