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/step-BrvHIK7O.d.ts
DELETED
|
@@ -1,65 +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
|
-
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 };
|