markloom 0.4.0 → 0.5.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/README.md +29 -16
- package/ai.md +160 -0
- package/collab.md +68 -0
- package/dist/ai/index.cjs +4 -3
- package/dist/ai/index.d.cts +4 -2
- package/dist/ai/index.d.ts +4 -2
- package/dist/ai/index.js +3 -2
- package/dist/{chunk-VVFIQLVR.cjs → chunk-4TMHVNL6.cjs} +71 -79
- package/dist/chunk-6DCI7AL3.js +208 -0
- package/dist/chunk-AC5E42NH.cjs +208 -0
- package/dist/chunk-GQ2HHRGI.cjs +16 -0
- package/dist/{chunk-QXJHFQLJ.js → chunk-JMOJU5EU.js} +4 -2
- package/dist/chunk-JS527FDV.cjs +294 -0
- package/dist/chunk-LA5SBCGQ.js +16 -0
- package/dist/{chunk-ITVAR2UM.js → chunk-LEYAQNJA.js} +5 -3
- package/dist/{chunk-J3QWW6CN.js → chunk-MFYF2A6U.js} +5 -13
- package/dist/chunk-RLTHVQNQ.js +294 -0
- package/dist/{chunk-LNSKDJMF.cjs → chunk-SLRD6FMP.cjs} +27 -25
- package/dist/{chunk-VMUJM52A.js → chunk-WUHTCCAE.js} +65 -6
- package/dist/{chunk-VSTOMEU2.cjs → chunk-YJAWPRJW.cjs} +400 -341
- package/dist/{chunk-HA6XHJUD.cjs → chunk-YXQDCW4Y.cjs} +22 -20
- package/dist/client-A0ZQJnyR.d.ts +137 -0
- package/dist/client-BNams4wv.d.cts +137 -0
- package/dist/collab/index.cjs +19 -0
- package/dist/collab/index.d.cts +3 -0
- package/dist/collab/index.d.ts +3 -0
- package/dist/collab/index.js +19 -0
- package/dist/comments-DlExS6f-.d.cts +43 -0
- package/dist/comments-PhnR7Gkn.d.ts +43 -0
- package/dist/{controller-B_wG2Wh-.d.ts → controller-BkY1VPzc.d.ts} +17 -1
- package/dist/{controller-Cd1Dprrk.d.cts → controller-CVIZI--A.d.cts} +17 -1
- package/dist/index.cjs +21 -243
- package/dist/index.d.cts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +22 -244
- package/dist/react/index.cjs +8 -5
- package/dist/react/index.d.cts +4 -2
- package/dist/react/index.d.ts +4 -2
- package/dist/react/index.js +7 -4
- package/dist/rebase-batch-8rL_aXEE.d.ts +38 -0
- package/dist/rebase-batch-bYnBJpRO.d.cts +38 -0
- package/dist/step-BrvHIK7O.d.cts +65 -0
- package/dist/step-BrvHIK7O.d.ts +65 -0
- package/dist/view/index.cjs +11 -8
- package/dist/view/index.d.cts +5 -3
- package/dist/view/index.d.ts +5 -3
- package/dist/view/index.js +7 -4
- package/package.json +10 -3
- package/dist/comments-USjT1wYN.d.cts +0 -105
- package/dist/comments-USjT1wYN.d.ts +0 -105
package/dist/react/index.cjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var _chunkYJAWPRJWcjs = require('../chunk-YJAWPRJW.cjs');
|
|
4
|
+
require('../chunk-YXQDCW4Y.cjs');
|
|
5
|
+
require('../chunk-SLRD6FMP.cjs');
|
|
6
|
+
require('../chunk-4TMHVNL6.cjs');
|
|
7
|
+
require('../chunk-AC5E42NH.cjs');
|
|
8
|
+
require('../chunk-JS527FDV.cjs');
|
|
9
|
+
require('../chunk-GQ2HHRGI.cjs');
|
|
7
10
|
|
|
8
11
|
// src/react/index.ts
|
|
9
12
|
var _react = require('react');
|
|
@@ -17,7 +20,7 @@ function useMarkloom(initialDoc, opts = {}) {
|
|
|
17
20
|
const host = ref.current;
|
|
18
21
|
if (!host)
|
|
19
22
|
return;
|
|
20
|
-
const ed = new (0,
|
|
23
|
+
const ed = new (0, _chunkYJAWPRJWcjs.Editor)(host, initialDoc, {
|
|
21
24
|
...optsRef.current,
|
|
22
25
|
onChange: (d) => {
|
|
23
26
|
setDoc(d);
|
package/dist/react/index.d.cts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { MutableRefObject } from 'react';
|
|
3
|
-
import { E as ElementNode } from '../
|
|
4
|
-
import { E as EditorOptions, k as Editor } from '../controller-
|
|
3
|
+
import { E as ElementNode } from '../step-BrvHIK7O.cjs';
|
|
4
|
+
import { E as EditorOptions, k as Editor } from '../controller-CVIZI--A.cjs';
|
|
5
5
|
import 'preact';
|
|
6
|
+
import '../comments-DlExS6f-.cjs';
|
|
7
|
+
import '../client-BNams4wv.cjs';
|
|
6
8
|
|
|
7
9
|
declare function useMarkloom(initialDoc: ElementNode, opts?: EditorOptions): {
|
|
8
10
|
ref: react.RefObject<HTMLDivElement | null>;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { MutableRefObject } from 'react';
|
|
3
|
-
import { E as ElementNode } from '../
|
|
4
|
-
import { E as EditorOptions, k as Editor } from '../controller-
|
|
3
|
+
import { E as ElementNode } from '../step-BrvHIK7O.js';
|
|
4
|
+
import { E as EditorOptions, k as Editor } from '../controller-BkY1VPzc.js';
|
|
5
5
|
import 'preact';
|
|
6
|
+
import '../comments-PhnR7Gkn.js';
|
|
7
|
+
import '../client-A0ZQJnyR.js';
|
|
6
8
|
|
|
7
9
|
declare function useMarkloom(initialDoc: ElementNode, opts?: EditorOptions): {
|
|
8
10
|
ref: react.RefObject<HTMLDivElement | null>;
|
package/dist/react/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Editor
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-WUHTCCAE.js";
|
|
4
|
+
import "../chunk-LEYAQNJA.js";
|
|
5
|
+
import "../chunk-JMOJU5EU.js";
|
|
6
|
+
import "../chunk-MFYF2A6U.js";
|
|
7
|
+
import "../chunk-6DCI7AL3.js";
|
|
8
|
+
import "../chunk-RLTHVQNQ.js";
|
|
9
|
+
import "../chunk-LA5SBCGQ.js";
|
|
7
10
|
|
|
8
11
|
// src/react/index.ts
|
|
9
12
|
import { createElement, useEffect, useRef, useState } from "react";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { S as Step } from './step-BrvHIK7O.js';
|
|
2
|
+
|
|
3
|
+
type Bias = -1 | 1;
|
|
4
|
+
declare function makeBias(thisSite: number, overSite: number): Bias;
|
|
5
|
+
declare function rebase(over: Step, step: Step, bias: Bias): Step | Step[] | null;
|
|
6
|
+
|
|
7
|
+
/** 把单步 step 穿过 over,产出 0..n 步(裂步)或空(作废) */
|
|
8
|
+
declare function rebaseOne(over: Step, step: Step, bias: Bias): Step[];
|
|
9
|
+
/** 一批 steps 依次穿过一条 over(批内顺序保留,裂步就地展开) */
|
|
10
|
+
declare function rebaseBatchOver(over: Step, steps: Step[], bias: Bias): Step[];
|
|
11
|
+
/**
|
|
12
|
+
* 本站 steps 穿过一系列并发 op(每条带 siteId)。
|
|
13
|
+
* 对 concurrent[i] 用 makeBias(thisSite, concurrent[i].siteId)。
|
|
14
|
+
*/
|
|
15
|
+
declare function rebaseStepsThrough(steps: Step[], concurrent: {
|
|
16
|
+
siteId: number;
|
|
17
|
+
steps: Step[];
|
|
18
|
+
}[], thisSite: number): Step[];
|
|
19
|
+
/**
|
|
20
|
+
* 远端一批 remote 穿过本地 pending 队列 → remote';
|
|
21
|
+
* pending 同步被 remote 搬坐标 → pending'。
|
|
22
|
+
*
|
|
23
|
+
* 对每个 pending 项 p:
|
|
24
|
+
* remote 穿过 p: bias = makeBias(remoteSite, localSite)
|
|
25
|
+
* p 穿过「进入 p 前」的 remote: bias = makeBias(localSite, remoteSite)
|
|
26
|
+
*/
|
|
27
|
+
declare function transformRemoteAgainstPending(remote: Step[], remoteSite: number, pending: {
|
|
28
|
+
siteId: number;
|
|
29
|
+
steps: Step[];
|
|
30
|
+
}[], localSite: number): {
|
|
31
|
+
remote: Step[];
|
|
32
|
+
pending: {
|
|
33
|
+
siteId: number;
|
|
34
|
+
steps: Step[];
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export { type Bias as B, rebaseOne as a, rebaseStepsThrough as b, rebase as c, makeBias as m, rebaseBatchOver as r, transformRemoteAgainstPending as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { S as Step } from './step-BrvHIK7O.cjs';
|
|
2
|
+
|
|
3
|
+
type Bias = -1 | 1;
|
|
4
|
+
declare function makeBias(thisSite: number, overSite: number): Bias;
|
|
5
|
+
declare function rebase(over: Step, step: Step, bias: Bias): Step | Step[] | null;
|
|
6
|
+
|
|
7
|
+
/** 把单步 step 穿过 over,产出 0..n 步(裂步)或空(作废) */
|
|
8
|
+
declare function rebaseOne(over: Step, step: Step, bias: Bias): Step[];
|
|
9
|
+
/** 一批 steps 依次穿过一条 over(批内顺序保留,裂步就地展开) */
|
|
10
|
+
declare function rebaseBatchOver(over: Step, steps: Step[], bias: Bias): Step[];
|
|
11
|
+
/**
|
|
12
|
+
* 本站 steps 穿过一系列并发 op(每条带 siteId)。
|
|
13
|
+
* 对 concurrent[i] 用 makeBias(thisSite, concurrent[i].siteId)。
|
|
14
|
+
*/
|
|
15
|
+
declare function rebaseStepsThrough(steps: Step[], concurrent: {
|
|
16
|
+
siteId: number;
|
|
17
|
+
steps: Step[];
|
|
18
|
+
}[], thisSite: number): Step[];
|
|
19
|
+
/**
|
|
20
|
+
* 远端一批 remote 穿过本地 pending 队列 → remote';
|
|
21
|
+
* pending 同步被 remote 搬坐标 → pending'。
|
|
22
|
+
*
|
|
23
|
+
* 对每个 pending 项 p:
|
|
24
|
+
* remote 穿过 p: bias = makeBias(remoteSite, localSite)
|
|
25
|
+
* p 穿过「进入 p 前」的 remote: bias = makeBias(localSite, remoteSite)
|
|
26
|
+
*/
|
|
27
|
+
declare function transformRemoteAgainstPending(remote: Step[], remoteSite: number, pending: {
|
|
28
|
+
siteId: number;
|
|
29
|
+
steps: Step[];
|
|
30
|
+
}[], localSite: number): {
|
|
31
|
+
remote: Step[];
|
|
32
|
+
pending: {
|
|
33
|
+
siteId: number;
|
|
34
|
+
steps: Step[];
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export { type Bias as B, rebaseOne as a, rebaseStepsThrough as b, rebase as c, makeBias as m, rebaseBatchOver as r, transformRemoteAgainstPending as t };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
interface TextNode {
|
|
2
|
+
text: string;
|
|
3
|
+
marks?: Mark[];
|
|
4
|
+
}
|
|
5
|
+
interface ElementNode {
|
|
6
|
+
type: string;
|
|
7
|
+
attrs?: Record<string, unknown>;
|
|
8
|
+
children: Node[];
|
|
9
|
+
id?: string;
|
|
10
|
+
}
|
|
11
|
+
type Node = TextNode | ElementNode;
|
|
12
|
+
interface Mark {
|
|
13
|
+
name: string;
|
|
14
|
+
attrs?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
declare function isText(n: Node): n is TextNode;
|
|
17
|
+
declare function isElement(n: Node): n is ElementNode;
|
|
18
|
+
declare function isInlineAtom(n: Node): boolean;
|
|
19
|
+
type Path = number[];
|
|
20
|
+
interface Position {
|
|
21
|
+
path: Path;
|
|
22
|
+
assoc?: -1 | 1;
|
|
23
|
+
}
|
|
24
|
+
interface Selection {
|
|
25
|
+
anchor: Position;
|
|
26
|
+
head: Position;
|
|
27
|
+
}
|
|
28
|
+
type Doc = ElementNode;
|
|
29
|
+
|
|
30
|
+
interface InsertText {
|
|
31
|
+
kind: 'insertText';
|
|
32
|
+
path: Path;
|
|
33
|
+
offset: number;
|
|
34
|
+
text: string;
|
|
35
|
+
marks?: {
|
|
36
|
+
name: string;
|
|
37
|
+
attrs?: Record<string, unknown>;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
|
40
|
+
interface DeleteText {
|
|
41
|
+
kind: 'deleteText';
|
|
42
|
+
path: Path;
|
|
43
|
+
offset: number;
|
|
44
|
+
length: number;
|
|
45
|
+
}
|
|
46
|
+
interface ReplaceNode {
|
|
47
|
+
kind: 'replaceNode';
|
|
48
|
+
path: Path;
|
|
49
|
+
node: Node;
|
|
50
|
+
}
|
|
51
|
+
interface SpliceChildren {
|
|
52
|
+
kind: 'spliceChildren';
|
|
53
|
+
path: Path;
|
|
54
|
+
at: number;
|
|
55
|
+
remove: number;
|
|
56
|
+
insert: Node[];
|
|
57
|
+
}
|
|
58
|
+
type Step = InsertText | DeleteText | ReplaceNode | SpliceChildren;
|
|
59
|
+
declare function apply(doc: ElementNode, step: Step): ElementNode;
|
|
60
|
+
declare function invert(doc: ElementNode, step: Step): Step;
|
|
61
|
+
declare function applyAll(doc: ElementNode, steps: Step[]): ElementNode;
|
|
62
|
+
declare function moveBlock(doc: ElementNode, fromIdx: number, toGap: number): Step[];
|
|
63
|
+
declare function invertAll(doc: ElementNode, steps: Step[]): Step[];
|
|
64
|
+
|
|
65
|
+
export { type DeleteText as D, type ElementNode as E, type InsertText as I, type Mark as M, type Node as N, type Path as P, type ReplaceNode as R, type Step as S, type TextNode as T, type Position as a, type Doc as b, type Selection as c, type SpliceChildren as d, apply as e, applyAll as f, invertAll as g, isElement as h, invert as i, isInlineAtom as j, isText as k, moveBlock as m };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
interface TextNode {
|
|
2
|
+
text: string;
|
|
3
|
+
marks?: Mark[];
|
|
4
|
+
}
|
|
5
|
+
interface ElementNode {
|
|
6
|
+
type: string;
|
|
7
|
+
attrs?: Record<string, unknown>;
|
|
8
|
+
children: Node[];
|
|
9
|
+
id?: string;
|
|
10
|
+
}
|
|
11
|
+
type Node = TextNode | ElementNode;
|
|
12
|
+
interface Mark {
|
|
13
|
+
name: string;
|
|
14
|
+
attrs?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
declare function isText(n: Node): n is TextNode;
|
|
17
|
+
declare function isElement(n: Node): n is ElementNode;
|
|
18
|
+
declare function isInlineAtom(n: Node): boolean;
|
|
19
|
+
type Path = number[];
|
|
20
|
+
interface Position {
|
|
21
|
+
path: Path;
|
|
22
|
+
assoc?: -1 | 1;
|
|
23
|
+
}
|
|
24
|
+
interface Selection {
|
|
25
|
+
anchor: Position;
|
|
26
|
+
head: Position;
|
|
27
|
+
}
|
|
28
|
+
type Doc = ElementNode;
|
|
29
|
+
|
|
30
|
+
interface InsertText {
|
|
31
|
+
kind: 'insertText';
|
|
32
|
+
path: Path;
|
|
33
|
+
offset: number;
|
|
34
|
+
text: string;
|
|
35
|
+
marks?: {
|
|
36
|
+
name: string;
|
|
37
|
+
attrs?: Record<string, unknown>;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
|
40
|
+
interface DeleteText {
|
|
41
|
+
kind: 'deleteText';
|
|
42
|
+
path: Path;
|
|
43
|
+
offset: number;
|
|
44
|
+
length: number;
|
|
45
|
+
}
|
|
46
|
+
interface ReplaceNode {
|
|
47
|
+
kind: 'replaceNode';
|
|
48
|
+
path: Path;
|
|
49
|
+
node: Node;
|
|
50
|
+
}
|
|
51
|
+
interface SpliceChildren {
|
|
52
|
+
kind: 'spliceChildren';
|
|
53
|
+
path: Path;
|
|
54
|
+
at: number;
|
|
55
|
+
remove: number;
|
|
56
|
+
insert: Node[];
|
|
57
|
+
}
|
|
58
|
+
type Step = InsertText | DeleteText | ReplaceNode | SpliceChildren;
|
|
59
|
+
declare function apply(doc: ElementNode, step: Step): ElementNode;
|
|
60
|
+
declare function invert(doc: ElementNode, step: Step): Step;
|
|
61
|
+
declare function applyAll(doc: ElementNode, steps: Step[]): ElementNode;
|
|
62
|
+
declare function moveBlock(doc: ElementNode, fromIdx: number, toGap: number): Step[];
|
|
63
|
+
declare function invertAll(doc: ElementNode, steps: Step[]): Step[];
|
|
64
|
+
|
|
65
|
+
export { type DeleteText as D, type ElementNode as E, type InsertText as I, type Mark as M, type Node as N, type Path as P, type ReplaceNode as R, type Step as S, type TextNode as T, type Position as a, type Doc as b, type Selection as c, type SpliceChildren as d, apply as e, applyAll as f, invertAll as g, isElement as h, invert as i, isInlineAtom as j, isText as k, moveBlock as m };
|
package/dist/view/index.cjs
CHANGED
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
83
|
-
require('../chunk-
|
|
82
|
+
var _chunkYJAWPRJWcjs = require('../chunk-YJAWPRJW.cjs');
|
|
83
|
+
require('../chunk-YXQDCW4Y.cjs');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
@@ -91,8 +91,11 @@ require('../chunk-HA6XHJUD.cjs');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
95
|
-
require('../chunk-
|
|
94
|
+
var _chunkSLRD6FMPcjs = require('../chunk-SLRD6FMP.cjs');
|
|
95
|
+
require('../chunk-4TMHVNL6.cjs');
|
|
96
|
+
require('../chunk-AC5E42NH.cjs');
|
|
97
|
+
require('../chunk-JS527FDV.cjs');
|
|
98
|
+
require('../chunk-GQ2HHRGI.cjs');
|
|
96
99
|
|
|
97
100
|
// src/view/shiki-code-view.ts
|
|
98
101
|
var _preact = require('preact');
|
|
@@ -163,7 +166,7 @@ function subRule() {
|
|
|
163
166
|
{ kind: "deleteText", path: ctx.leafPath, offset: at, length: eaten },
|
|
164
167
|
{ kind: "insertText", path: ctx.leafPath, offset: at, text: s.to }
|
|
165
168
|
];
|
|
166
|
-
return { steps, selection:
|
|
169
|
+
return { steps, selection: _chunkYJAWPRJWcjs.caret.call(void 0, ctx.leafPath.concat(at + s.to.length)) };
|
|
167
170
|
}
|
|
168
171
|
return null;
|
|
169
172
|
}
|
|
@@ -177,7 +180,7 @@ function quoteRule(quote, open, close) {
|
|
|
177
180
|
const prev = ctx.marker.slice(-1);
|
|
178
181
|
const to = prev === "" || prev === " " || prev === "\n" || prev === " " || prev === "(" || prev === "[" || prev === "{" ? open : close;
|
|
179
182
|
const steps = [{ kind: "insertText", path: ctx.leafPath, offset: ctx.offset, text: to }];
|
|
180
|
-
return { steps, selection:
|
|
183
|
+
return { steps, selection: _chunkYJAWPRJWcjs.caret.call(void 0, ctx.leafPath.concat(ctx.offset + to.length)) };
|
|
181
184
|
}
|
|
182
185
|
};
|
|
183
186
|
}
|
|
@@ -253,7 +256,7 @@ function emojiRule() {
|
|
|
253
256
|
{ kind: "deleteText", path: ctx.leafPath, offset: at, length: eaten },
|
|
254
257
|
{ kind: "insertText", path: ctx.leafPath, offset: at, text: glyph }
|
|
255
258
|
];
|
|
256
|
-
return { steps, selection:
|
|
259
|
+
return { steps, selection: _chunkYJAWPRJWcjs.caret.call(void 0, ctx.leafPath.concat(at + glyph.length)) };
|
|
257
260
|
}
|
|
258
261
|
};
|
|
259
262
|
}
|
|
@@ -365,4 +368,4 @@ var comments = {
|
|
|
365
368
|
|
|
366
369
|
|
|
367
370
|
|
|
368
|
-
exports.CALLOUT_VARIANTS =
|
|
371
|
+
exports.CALLOUT_VARIANTS = _chunkYJAWPRJWcjs.CALLOUT_VARIANTS; exports.CommentPanel = _chunkYJAWPRJWcjs.CommentPanel; exports.Editor = _chunkYJAWPRJWcjs.Editor; exports.MentionMenu = _chunkYJAWPRJWcjs.MentionMenu; exports.MentionPopovers = _chunkYJAWPRJWcjs.MentionPopovers; exports.TocPanel = _chunkYJAWPRJWcjs.TocPanel; exports.askInput = _chunkYJAWPRJWcjs.askInput; exports.askLinkPopover = _chunkYJAWPRJWcjs.askLinkPopover; exports.atomIsSelected = _chunkYJAWPRJWcjs.atomIsSelected; exports.blockExtensions = _chunkYJAWPRJWcjs.blockExtensions; exports.blockPlainText = _chunkSLRD6FMPcjs.blockPlainText; exports.blockTransform = _chunkYJAWPRJWcjs.blockTransform; exports.boldMark = _chunkYJAWPRJWcjs.boldMark; exports.bubbleMenu = _chunkYJAWPRJWcjs.bubbleMenu; exports.calloutVariantFromQuery = _chunkYJAWPRJWcjs.calloutVariantFromQuery; exports.caret = _chunkYJAWPRJWcjs.caret; exports.chord = _chunkYJAWPRJWcjs.chord; exports.closeAskInput = _chunkYJAWPRJWcjs.closeAskInput; exports.codeBlock = _chunkYJAWPRJWcjs.codeBlock; exports.codeControls = _chunkYJAWPRJWcjs.codeControls; exports.codeMark = _chunkYJAWPRJWcjs.codeMark; exports.comments = comments; exports.cycleCalloutVariant = _chunkYJAWPRJWcjs.cycleCalloutVariant; exports.decorationExtensions = _chunkYJAWPRJWcjs.decorationExtensions; exports.defaultBlockRenderers = _chunkYJAWPRJWcjs.defaultBlockRenderers; exports.defaultBlockTag = _chunkYJAWPRJWcjs.defaultBlockTag; exports.defaultMarkTag = _chunkYJAWPRJWcjs.defaultMarkTag; exports.diffSpan = _chunkYJAWPRJWcjs.diffSpan; exports.domToPoint = _chunkSLRD6FMPcjs.domToPoint; exports.dragHandle = _chunkYJAWPRJWcjs.dragHandle; exports.elementChildren = _chunkSLRD6FMPcjs.elementChildren; exports.embedBlock = _chunkYJAWPRJWcjs.embedBlock; exports.emoji = emoji; exports.focusBlockId = _chunkSLRD6FMPcjs.focusBlockId; exports.highlightMark = _chunkYJAWPRJWcjs.highlightMark; exports.history = _chunkYJAWPRJWcjs.history; exports.hrBlock = _chunkYJAWPRJWcjs.hrBlock; exports.imageBlock = _chunkYJAWPRJWcjs.imageBlock; exports.indentItem = _chunkYJAWPRJWcjs.indentItem; exports.inputRules = _chunkYJAWPRJWcjs.inputRules; exports.invisibleCharacters = invisibleCharacters; exports.isAtom = _chunkYJAWPRJWcjs.isAtom; exports.isOpaque = _chunkYJAWPRJWcjs.isOpaque; exports.italicMark = _chunkYJAWPRJWcjs.italicMark; exports.leafText = _chunkYJAWPRJWcjs.leafText; exports.lineBoundaryBack = _chunkYJAWPRJWcjs.lineBoundaryBack; exports.lineBoundaryFwd = _chunkYJAWPRJWcjs.lineBoundaryFwd; exports.linkMark = _chunkYJAWPRJWcjs.linkMark; exports.mapInput = _chunkYJAWPRJWcjs.mapInput; exports.mapPaste = _chunkYJAWPRJWcjs.mapPaste; exports.mapPasteBlocks = _chunkYJAWPRJWcjs.mapPasteBlocks; exports.markExtensions = _chunkYJAWPRJWcjs.markExtensions; exports.markloomKit = _chunkYJAWPRJWcjs.markloomKit; exports.marksAtCaret = _chunkYJAWPRJWcjs.marksAtCaret; exports.mentionMenu = _chunkYJAWPRJWcjs.mentionMenu; exports.mergeTextStyleAttrs = _chunkYJAWPRJWcjs.mergeTextStyleAttrs; exports.normalizeLinkUrl = _chunkYJAWPRJWcjs.normalizeLinkUrl; exports.outdentItem = _chunkYJAWPRJWcjs.outdentItem; exports.pointToDom = _chunkSLRD6FMPcjs.pointToDom; exports.readSelection = _chunkSLRD6FMPcjs.readSelection; exports.renderCode = _chunkYJAWPRJWcjs.renderCode; exports.renderDoc = _chunkYJAWPRJWcjs.renderDoc; exports.renderEmbed = _chunkYJAWPRJWcjs.renderEmbed; exports.renderHr = _chunkYJAWPRJWcjs.renderHr; exports.renderImage = _chunkYJAWPRJWcjs.renderImage; exports.renderTable = _chunkYJAWPRJWcjs.renderTable; exports.renderToHtml = _chunkYJAWPRJWcjs.renderToHtml; exports.resolve = _chunkYJAWPRJWcjs.resolve; exports.rootEl = _chunkSLRD6FMPcjs.rootEl; exports.safeCssValue = _chunkYJAWPRJWcjs.safeCssValue; exports.serializeSelection = _chunkYJAWPRJWcjs.serializeSelection; exports.setAlign = _chunkYJAWPRJWcjs.setAlign; exports.setCalloutVariant = _chunkYJAWPRJWcjs.setCalloutVariant; exports.setTextStyle = _chunkYJAWPRJWcjs.setTextStyle; exports.shikiCodeView = shikiCodeView; exports.slashMenu = _chunkYJAWPRJWcjs.slashMenu; exports.startAiWrite = _chunkSLRD6FMPcjs.startAiWrite; exports.strikeMark = _chunkYJAWPRJWcjs.strikeMark; exports.subscriptMark = _chunkYJAWPRJWcjs.subscriptMark; exports.superscriptMark = _chunkYJAWPRJWcjs.superscriptMark; exports.tableBlock = _chunkYJAWPRJWcjs.tableBlock; exports.textAlign = _chunkYJAWPRJWcjs.textAlign; exports.textStyleCss = _chunkYJAWPRJWcjs.textStyleCss; exports.textStyleMark = _chunkYJAWPRJWcjs.textStyleMark; exports.toggleMark = _chunkYJAWPRJWcjs.toggleMark; exports.toggleMarkList = _chunkYJAWPRJWcjs.toggleMarkList; exports.twitchChannel = _chunkYJAWPRJWcjs.twitchChannel; exports.typography = typography; exports.underlineMark = _chunkYJAWPRJWcjs.underlineMark; exports.wordBoundaryBack = _chunkYJAWPRJWcjs.wordBoundaryBack; exports.wordBoundaryFwd = _chunkYJAWPRJWcjs.wordBoundaryFwd; exports.wrapList = _chunkYJAWPRJWcjs.wrapList; exports.writeSelection = _chunkSLRD6FMPcjs.writeSelection; exports.youtubeId = _chunkYJAWPRJWcjs.youtubeId;
|
package/dist/view/index.d.cts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { N as NodeView, l as Extension } from '../controller-
|
|
2
|
-
export { e as AiWriteMode, f as AiWriteSession, m as AtomSelectCtx, B as BlockInputRule, n as BlockKind, o as BlockRenderCtx, p as BlockRenderer, C as CALLOUT_VARIANTS, q as CalloutVariant, D as DecorationFactory, r as DecorationHost, k as Editor, E as EditorOptions, I as InputResult, t as InputRuleCtx, u as Intent, K as KeymapCommand, v as KeymapCtx, w as KeymapResult, x as MentionCandidate, y as MentionHost, z as MentionMenu, F as MentionPopovers, G as MentionPopoversHost, H as MentionProfile, J as NodeViewCtx, P as PasteRule, R as RenderOpts, L as Resolved, S as SlashCommand, T as TextStylePatch, O as atomIsSelected, h as blockPlainText, Q as blockTransform, U as calloutVariantFromQuery, V as caret, W as chord, X as cycleCalloutVariant, Y as defaultBlockRenderers, Z as defaultBlockTag, _ as defaultMarkTag, $ as diffSpan, j as focusBlockId, a0 as indentItem, a1 as isAtom, a2 as isOpaque, a3 as leafText, a4 as lineBoundaryBack, a5 as lineBoundaryFwd, a6 as mapInput, a7 as mapPaste, a8 as mapPasteBlocks, a9 as marksAtCaret, aa as mergeTextStyleAttrs, ab as outdentItem, ac as renderCode, ad as renderDoc, ae as renderEmbed, af as renderHr, ag as renderImage, ah as renderTable, ai as renderToHtml, aj as resolve, ak as safeCssValue, al as serializeSelection, am as setAlign, an as setCalloutVariant, ao as setTextStyle, s as startAiWrite, ap as textStyleCss, aq as toggleMark, ar as toggleMarkList, as as twitchChannel, at as wordBoundaryBack, au as wordBoundaryFwd, av as wrapList, aw as youtubeId } from '../controller-
|
|
3
|
-
import { E as ElementNode, a as Position, N as Node,
|
|
1
|
+
import { N as NodeView, l as Extension } from '../controller-CVIZI--A.cjs';
|
|
2
|
+
export { e as AiWriteMode, f as AiWriteSession, m as AtomSelectCtx, B as BlockInputRule, n as BlockKind, o as BlockRenderCtx, p as BlockRenderer, C as CALLOUT_VARIANTS, q as CalloutVariant, D as DecorationFactory, r as DecorationHost, k as Editor, E as EditorOptions, I as InputResult, t as InputRuleCtx, u as Intent, K as KeymapCommand, v as KeymapCtx, w as KeymapResult, x as MentionCandidate, y as MentionHost, z as MentionMenu, F as MentionPopovers, G as MentionPopoversHost, H as MentionProfile, J as NodeViewCtx, P as PasteRule, R as RenderOpts, L as Resolved, S as SlashCommand, T as TextStylePatch, O as atomIsSelected, h as blockPlainText, Q as blockTransform, U as calloutVariantFromQuery, V as caret, W as chord, X as cycleCalloutVariant, Y as defaultBlockRenderers, Z as defaultBlockTag, _ as defaultMarkTag, $ as diffSpan, j as focusBlockId, a0 as indentItem, a1 as isAtom, a2 as isOpaque, a3 as leafText, a4 as lineBoundaryBack, a5 as lineBoundaryFwd, a6 as mapInput, a7 as mapPaste, a8 as mapPasteBlocks, a9 as marksAtCaret, aa as mergeTextStyleAttrs, ab as outdentItem, ac as renderCode, ad as renderDoc, ae as renderEmbed, af as renderHr, ag as renderImage, ah as renderTable, ai as renderToHtml, aj as resolve, ak as safeCssValue, al as serializeSelection, am as setAlign, an as setCalloutVariant, ao as setTextStyle, s as startAiWrite, ap as textStyleCss, aq as toggleMark, ar as toggleMarkList, as as twitchChannel, at as wordBoundaryBack, au as wordBoundaryFwd, av as wrapList, aw as youtubeId } from '../controller-CVIZI--A.cjs';
|
|
3
|
+
import { E as ElementNode, a as Position, N as Node, c as Selection, S as Step } from '../step-BrvHIK7O.cjs';
|
|
4
|
+
import { C as CommentAuthor, c as CommentThread, b as CommentRenderState } from '../comments-DlExS6f-.cjs';
|
|
4
5
|
import 'preact';
|
|
6
|
+
import '../client-BNams4wv.cjs';
|
|
5
7
|
|
|
6
8
|
declare function shikiCodeView(highlight: (code: string, lang?: string) => string, langs?: () => string[]): NodeView;
|
|
7
9
|
|
package/dist/view/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { N as NodeView, l as Extension } from '../controller-
|
|
2
|
-
export { e as AiWriteMode, f as AiWriteSession, m as AtomSelectCtx, B as BlockInputRule, n as BlockKind, o as BlockRenderCtx, p as BlockRenderer, C as CALLOUT_VARIANTS, q as CalloutVariant, D as DecorationFactory, r as DecorationHost, k as Editor, E as EditorOptions, I as InputResult, t as InputRuleCtx, u as Intent, K as KeymapCommand, v as KeymapCtx, w as KeymapResult, x as MentionCandidate, y as MentionHost, z as MentionMenu, F as MentionPopovers, G as MentionPopoversHost, H as MentionProfile, J as NodeViewCtx, P as PasteRule, R as RenderOpts, L as Resolved, S as SlashCommand, T as TextStylePatch, O as atomIsSelected, h as blockPlainText, Q as blockTransform, U as calloutVariantFromQuery, V as caret, W as chord, X as cycleCalloutVariant, Y as defaultBlockRenderers, Z as defaultBlockTag, _ as defaultMarkTag, $ as diffSpan, j as focusBlockId, a0 as indentItem, a1 as isAtom, a2 as isOpaque, a3 as leafText, a4 as lineBoundaryBack, a5 as lineBoundaryFwd, a6 as mapInput, a7 as mapPaste, a8 as mapPasteBlocks, a9 as marksAtCaret, aa as mergeTextStyleAttrs, ab as outdentItem, ac as renderCode, ad as renderDoc, ae as renderEmbed, af as renderHr, ag as renderImage, ah as renderTable, ai as renderToHtml, aj as resolve, ak as safeCssValue, al as serializeSelection, am as setAlign, an as setCalloutVariant, ao as setTextStyle, s as startAiWrite, ap as textStyleCss, aq as toggleMark, ar as toggleMarkList, as as twitchChannel, at as wordBoundaryBack, au as wordBoundaryFwd, av as wrapList, aw as youtubeId } from '../controller-
|
|
3
|
-
import { E as ElementNode, a as Position, N as Node,
|
|
1
|
+
import { N as NodeView, l as Extension } from '../controller-BkY1VPzc.js';
|
|
2
|
+
export { e as AiWriteMode, f as AiWriteSession, m as AtomSelectCtx, B as BlockInputRule, n as BlockKind, o as BlockRenderCtx, p as BlockRenderer, C as CALLOUT_VARIANTS, q as CalloutVariant, D as DecorationFactory, r as DecorationHost, k as Editor, E as EditorOptions, I as InputResult, t as InputRuleCtx, u as Intent, K as KeymapCommand, v as KeymapCtx, w as KeymapResult, x as MentionCandidate, y as MentionHost, z as MentionMenu, F as MentionPopovers, G as MentionPopoversHost, H as MentionProfile, J as NodeViewCtx, P as PasteRule, R as RenderOpts, L as Resolved, S as SlashCommand, T as TextStylePatch, O as atomIsSelected, h as blockPlainText, Q as blockTransform, U as calloutVariantFromQuery, V as caret, W as chord, X as cycleCalloutVariant, Y as defaultBlockRenderers, Z as defaultBlockTag, _ as defaultMarkTag, $ as diffSpan, j as focusBlockId, a0 as indentItem, a1 as isAtom, a2 as isOpaque, a3 as leafText, a4 as lineBoundaryBack, a5 as lineBoundaryFwd, a6 as mapInput, a7 as mapPaste, a8 as mapPasteBlocks, a9 as marksAtCaret, aa as mergeTextStyleAttrs, ab as outdentItem, ac as renderCode, ad as renderDoc, ae as renderEmbed, af as renderHr, ag as renderImage, ah as renderTable, ai as renderToHtml, aj as resolve, ak as safeCssValue, al as serializeSelection, am as setAlign, an as setCalloutVariant, ao as setTextStyle, s as startAiWrite, ap as textStyleCss, aq as toggleMark, ar as toggleMarkList, as as twitchChannel, at as wordBoundaryBack, au as wordBoundaryFwd, av as wrapList, aw as youtubeId } from '../controller-BkY1VPzc.js';
|
|
3
|
+
import { E as ElementNode, a as Position, N as Node, c as Selection, S as Step } from '../step-BrvHIK7O.js';
|
|
4
|
+
import { C as CommentAuthor, c as CommentThread, b as CommentRenderState } from '../comments-PhnR7Gkn.js';
|
|
4
5
|
import 'preact';
|
|
6
|
+
import '../client-A0ZQJnyR.js';
|
|
5
7
|
|
|
6
8
|
declare function shikiCodeView(highlight: (code: string, lang?: string) => string, langs?: () => string[]): NodeView;
|
|
7
9
|
|
package/dist/view/index.js
CHANGED
|
@@ -79,8 +79,8 @@ import {
|
|
|
79
79
|
wordBoundaryFwd,
|
|
80
80
|
wrapList,
|
|
81
81
|
youtubeId
|
|
82
|
-
} from "../chunk-
|
|
83
|
-
import "../chunk-
|
|
82
|
+
} from "../chunk-WUHTCCAE.js";
|
|
83
|
+
import "../chunk-LEYAQNJA.js";
|
|
84
84
|
import {
|
|
85
85
|
blockPlainText,
|
|
86
86
|
domToPoint,
|
|
@@ -91,8 +91,11 @@ import {
|
|
|
91
91
|
rootEl,
|
|
92
92
|
startAiWrite,
|
|
93
93
|
writeSelection
|
|
94
|
-
} from "../chunk-
|
|
95
|
-
import "../chunk-
|
|
94
|
+
} from "../chunk-JMOJU5EU.js";
|
|
95
|
+
import "../chunk-MFYF2A6U.js";
|
|
96
|
+
import "../chunk-6DCI7AL3.js";
|
|
97
|
+
import "../chunk-RLTHVQNQ.js";
|
|
98
|
+
import "../chunk-LA5SBCGQ.js";
|
|
96
99
|
|
|
97
100
|
// src/view/shiki-code-view.ts
|
|
98
101
|
import { h } from "preact";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markloom",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "The loom for Markdown — rich text with MD isomorphism, reversible Steps, controlled editor, optional AI write
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "The loom for Markdown — rich text with MD isomorphism, reversible Steps, controlled editor, optional AI write + realtime collab",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"import": "./dist/ai/index.js",
|
|
28
28
|
"require": "./dist/ai/index.cjs"
|
|
29
29
|
},
|
|
30
|
+
"./collab": {
|
|
31
|
+
"types": "./dist/collab/index.d.ts",
|
|
32
|
+
"import": "./dist/collab/index.js",
|
|
33
|
+
"require": "./dist/collab/index.cjs"
|
|
34
|
+
},
|
|
30
35
|
"./view/theme.css": "./dist/view/theme.css",
|
|
31
36
|
"./ai/theme.css": "./dist/ai/theme.css"
|
|
32
37
|
},
|
|
@@ -35,7 +40,9 @@
|
|
|
35
40
|
},
|
|
36
41
|
"files": [
|
|
37
42
|
"dist",
|
|
38
|
-
"README.md"
|
|
43
|
+
"README.md",
|
|
44
|
+
"ai.md",
|
|
45
|
+
"collab.md"
|
|
39
46
|
],
|
|
40
47
|
"scripts": {
|
|
41
48
|
"typecheck": "tsc --noEmit",
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
interface TextNode {
|
|
2
|
-
text: string;
|
|
3
|
-
marks?: Mark[];
|
|
4
|
-
}
|
|
5
|
-
interface ElementNode {
|
|
6
|
-
type: string;
|
|
7
|
-
attrs?: Record<string, unknown>;
|
|
8
|
-
children: Node[];
|
|
9
|
-
id?: string;
|
|
10
|
-
}
|
|
11
|
-
type Node = TextNode | ElementNode;
|
|
12
|
-
interface Mark {
|
|
13
|
-
name: string;
|
|
14
|
-
attrs?: Record<string, unknown>;
|
|
15
|
-
}
|
|
16
|
-
declare function isText(n: Node): n is TextNode;
|
|
17
|
-
declare function isElement(n: Node): n is ElementNode;
|
|
18
|
-
declare function isInlineAtom(n: Node): boolean;
|
|
19
|
-
type Path = number[];
|
|
20
|
-
interface Position {
|
|
21
|
-
path: Path;
|
|
22
|
-
assoc?: -1 | 1;
|
|
23
|
-
}
|
|
24
|
-
interface Selection {
|
|
25
|
-
anchor: Position;
|
|
26
|
-
head: Position;
|
|
27
|
-
}
|
|
28
|
-
type Doc = ElementNode;
|
|
29
|
-
|
|
30
|
-
interface InsertText {
|
|
31
|
-
kind: 'insertText';
|
|
32
|
-
path: Path;
|
|
33
|
-
offset: number;
|
|
34
|
-
text: string;
|
|
35
|
-
marks?: {
|
|
36
|
-
name: string;
|
|
37
|
-
attrs?: Record<string, unknown>;
|
|
38
|
-
}[];
|
|
39
|
-
}
|
|
40
|
-
interface DeleteText {
|
|
41
|
-
kind: 'deleteText';
|
|
42
|
-
path: Path;
|
|
43
|
-
offset: number;
|
|
44
|
-
length: number;
|
|
45
|
-
}
|
|
46
|
-
interface ReplaceNode {
|
|
47
|
-
kind: 'replaceNode';
|
|
48
|
-
path: Path;
|
|
49
|
-
node: Node;
|
|
50
|
-
}
|
|
51
|
-
interface SpliceChildren {
|
|
52
|
-
kind: 'spliceChildren';
|
|
53
|
-
path: Path;
|
|
54
|
-
at: number;
|
|
55
|
-
remove: number;
|
|
56
|
-
insert: Node[];
|
|
57
|
-
}
|
|
58
|
-
type Step = InsertText | DeleteText | ReplaceNode | SpliceChildren;
|
|
59
|
-
declare function apply(doc: ElementNode, step: Step): ElementNode;
|
|
60
|
-
declare function invert(doc: ElementNode, step: Step): Step;
|
|
61
|
-
declare function applyAll(doc: ElementNode, steps: Step[]): ElementNode;
|
|
62
|
-
declare function moveBlock(doc: ElementNode, fromIdx: number, toGap: number): Step[];
|
|
63
|
-
declare function invertAll(doc: ElementNode, steps: Step[]): Step[];
|
|
64
|
-
|
|
65
|
-
interface Commit {
|
|
66
|
-
steps: Step[];
|
|
67
|
-
inverse: Step[];
|
|
68
|
-
}
|
|
69
|
-
interface History {
|
|
70
|
-
doc: ElementNode;
|
|
71
|
-
past: Commit[];
|
|
72
|
-
future: Commit[];
|
|
73
|
-
validate?: (doc: ElementNode) => string | null;
|
|
74
|
-
}
|
|
75
|
-
declare function init(doc: ElementNode, validate?: (doc: ElementNode) => string | null): History;
|
|
76
|
-
declare function commit(h: History, steps: Step[]): History;
|
|
77
|
-
declare function amend(h: History, more: Step[]): History;
|
|
78
|
-
declare function undo(h: History): History;
|
|
79
|
-
declare function redo(h: History): History;
|
|
80
|
-
|
|
81
|
-
interface CommentAuthor {
|
|
82
|
-
id: string;
|
|
83
|
-
name: string;
|
|
84
|
-
avatar?: string;
|
|
85
|
-
}
|
|
86
|
-
interface CommentMessage {
|
|
87
|
-
id: string;
|
|
88
|
-
author: CommentAuthor;
|
|
89
|
-
body: string;
|
|
90
|
-
createdAt: number;
|
|
91
|
-
}
|
|
92
|
-
interface CommentThread {
|
|
93
|
-
id: string;
|
|
94
|
-
resolved: boolean;
|
|
95
|
-
quote?: string;
|
|
96
|
-
messages: CommentMessage[];
|
|
97
|
-
}
|
|
98
|
-
interface CommentRenderState {
|
|
99
|
-
resolved: Set<string>;
|
|
100
|
-
activeId: string | null;
|
|
101
|
-
}
|
|
102
|
-
declare function commentIdsInDoc(doc: ElementNode): Set<string>;
|
|
103
|
-
declare function stripCommentMarks(doc: ElementNode, id: string): Step[];
|
|
104
|
-
|
|
105
|
-
export { type CommentAuthor as C, type DeleteText as D, type ElementNode as E, type History as H, type InsertText as I, type Mark as M, type Node as N, type Path as P, type ReplaceNode as R, type Step as S, type TextNode as T, type Position as a, type CommentMessage as b, type CommentRenderState as c, type CommentThread as d, type Commit as e, type Doc as f, type Selection as g, type SpliceChildren as h, amend as i, apply as j, applyAll as k, commentIdsInDoc as l, commit as m, init as n, invert as o, invertAll as p, isElement as q, isInlineAtom as r, isText as s, moveBlock as t, redo as u, stripCommentMarks as v, undo as w };
|