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/index.js
CHANGED
|
@@ -1,26 +1,59 @@
|
|
|
1
1
|
import {
|
|
2
|
+
acceptSuggestion,
|
|
2
3
|
amend,
|
|
4
|
+
applyForeign,
|
|
5
|
+
applyReplaceAll,
|
|
3
6
|
commentIdsInDoc,
|
|
4
7
|
commit,
|
|
8
|
+
dropMarkedLeaves,
|
|
9
|
+
dropSuggestText,
|
|
10
|
+
findText,
|
|
5
11
|
firstViolation,
|
|
12
|
+
footnoteIndex,
|
|
13
|
+
footnoteText,
|
|
14
|
+
getVersion,
|
|
15
|
+
hasFootnotes,
|
|
6
16
|
init,
|
|
7
17
|
invariants,
|
|
18
|
+
isSuggestMark,
|
|
19
|
+
listSuggestions,
|
|
20
|
+
mapLeafBlocks,
|
|
21
|
+
markIdsInDoc,
|
|
22
|
+
markSuggestRange,
|
|
8
23
|
outline,
|
|
24
|
+
pushVersion,
|
|
25
|
+
rangeForDelete,
|
|
26
|
+
rangeIsSuggestInsert,
|
|
9
27
|
redo,
|
|
28
|
+
rejectSuggestion,
|
|
29
|
+
removeVersion,
|
|
30
|
+
replaceAll,
|
|
31
|
+
replaceMatch,
|
|
32
|
+
snapshotDoc,
|
|
10
33
|
stripCommentMarks,
|
|
11
|
-
|
|
12
|
-
|
|
34
|
+
stripMarks,
|
|
35
|
+
stripSuggestMarks,
|
|
36
|
+
suggestIdsInDoc,
|
|
37
|
+
suggestMark,
|
|
38
|
+
undo,
|
|
39
|
+
wordCount
|
|
40
|
+
} from "./chunk-YLVSMDIO.js";
|
|
13
41
|
import {
|
|
42
|
+
CELL_BLOCK_TYPES,
|
|
43
|
+
CELL_EXCLUDED_FROM_BODY,
|
|
44
|
+
DEFAULT_COL_WIDTH,
|
|
45
|
+
FRONT_MATTER,
|
|
14
46
|
appendText,
|
|
15
|
-
apply,
|
|
16
|
-
applyAll,
|
|
17
47
|
arrowCell,
|
|
18
48
|
basicSchema,
|
|
49
|
+
bodyBlockTypes,
|
|
19
50
|
buildGrid,
|
|
20
51
|
buildIdIndex,
|
|
21
52
|
calloutToHtml,
|
|
22
53
|
caretCell,
|
|
54
|
+
cellBlockTypes,
|
|
23
55
|
cellCaret,
|
|
56
|
+
cellRectTable,
|
|
24
57
|
cellText,
|
|
25
58
|
checkSchema,
|
|
26
59
|
checkTable,
|
|
@@ -32,35 +65,38 @@ import {
|
|
|
32
65
|
diffById,
|
|
33
66
|
docToMd,
|
|
34
67
|
embedHtml,
|
|
35
|
-
|
|
68
|
+
frontMatterEnd,
|
|
36
69
|
hasSpan,
|
|
37
70
|
htmlToBlocks,
|
|
38
71
|
insertAfter,
|
|
39
72
|
insertCol,
|
|
40
73
|
insertRow,
|
|
41
|
-
|
|
42
|
-
|
|
74
|
+
isBodyBlockType,
|
|
75
|
+
isCellBlockType,
|
|
76
|
+
isCellBlockTypeInSpace,
|
|
77
|
+
isFrontMatter,
|
|
78
|
+
isLastCell,
|
|
79
|
+
isPlainTransportHtml,
|
|
43
80
|
isRichHtmlBlocks,
|
|
44
|
-
lastLeafEnd,
|
|
45
81
|
makeTable,
|
|
82
|
+
mdStructureBeatsTransport,
|
|
46
83
|
mdToDoc,
|
|
84
|
+
mdToDocAsync,
|
|
47
85
|
mergeCells,
|
|
48
|
-
moveBlock,
|
|
49
86
|
moveCol,
|
|
50
87
|
moveRow,
|
|
51
88
|
nextCell,
|
|
52
|
-
nodeAt,
|
|
53
|
-
normalizeToLeaf,
|
|
54
89
|
pathOfId,
|
|
55
|
-
|
|
56
|
-
|
|
90
|
+
preferMarkdownPaste,
|
|
91
|
+
resolvedColWidths,
|
|
57
92
|
rewriteNode,
|
|
58
93
|
rowspanOf,
|
|
59
94
|
setAlign,
|
|
60
95
|
setCellStyle,
|
|
61
96
|
setColWidths,
|
|
62
97
|
setFreeze,
|
|
63
|
-
|
|
98
|
+
setHeaderCol,
|
|
99
|
+
setMathSyntax,
|
|
64
100
|
splitCell,
|
|
65
101
|
tableAt,
|
|
66
102
|
tableColWidths,
|
|
@@ -70,23 +106,44 @@ import {
|
|
|
70
106
|
tableToHtml,
|
|
71
107
|
validate,
|
|
72
108
|
validateAll
|
|
73
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-QO7JEZDB.js";
|
|
74
110
|
import {
|
|
75
111
|
makeBias,
|
|
76
112
|
mapPosition,
|
|
77
113
|
mapSelection,
|
|
114
|
+
mapSelectionThrough,
|
|
78
115
|
normalizePosition,
|
|
79
116
|
rebase,
|
|
80
117
|
rebaseBatchOver,
|
|
81
118
|
rebaseOne,
|
|
82
119
|
rebaseStepsThrough,
|
|
120
|
+
resolveTxAfter,
|
|
83
121
|
transformRemoteAgainstPending
|
|
84
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-EFYT2223.js";
|
|
85
123
|
import {
|
|
124
|
+
apply,
|
|
125
|
+
applyAll,
|
|
126
|
+
firstLeafPath,
|
|
127
|
+
gapToTextPath,
|
|
128
|
+
invert,
|
|
129
|
+
invertAll,
|
|
130
|
+
lastLeafEnd,
|
|
131
|
+
moveBlock,
|
|
132
|
+
nodeAt,
|
|
133
|
+
normalizeToLeaf,
|
|
134
|
+
replaceAt,
|
|
135
|
+
resolve,
|
|
136
|
+
spliceAt
|
|
137
|
+
} from "./chunk-ZL6WT6OY.js";
|
|
138
|
+
import {
|
|
139
|
+
footnoteKey,
|
|
140
|
+
isAiCompose,
|
|
141
|
+
isCallout,
|
|
86
142
|
isElement,
|
|
143
|
+
isFootnoteDef,
|
|
87
144
|
isInlineAtom,
|
|
88
145
|
isText
|
|
89
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-WSJUXPAG.js";
|
|
90
147
|
|
|
91
148
|
// src/tree/stats.ts
|
|
92
149
|
function rawText(node) {
|
|
@@ -117,17 +174,27 @@ function docStats(doc) {
|
|
|
117
174
|
return { chars: [...rawText(doc)].length, words: countWords(spacedText(doc)), blocks: doc.children.length };
|
|
118
175
|
}
|
|
119
176
|
export {
|
|
177
|
+
CELL_BLOCK_TYPES,
|
|
178
|
+
CELL_EXCLUDED_FROM_BODY,
|
|
179
|
+
DEFAULT_COL_WIDTH,
|
|
180
|
+
FRONT_MATTER,
|
|
181
|
+
acceptSuggestion,
|
|
120
182
|
amend,
|
|
121
183
|
appendText,
|
|
122
184
|
apply,
|
|
123
185
|
applyAll,
|
|
186
|
+
applyForeign,
|
|
187
|
+
applyReplaceAll,
|
|
124
188
|
arrowCell,
|
|
125
189
|
basicSchema,
|
|
190
|
+
bodyBlockTypes,
|
|
126
191
|
buildGrid,
|
|
127
192
|
buildIdIndex,
|
|
128
193
|
calloutToHtml,
|
|
129
194
|
caretCell,
|
|
195
|
+
cellBlockTypes,
|
|
130
196
|
cellCaret,
|
|
197
|
+
cellRectTable,
|
|
131
198
|
cellText,
|
|
132
199
|
checkSchema,
|
|
133
200
|
checkTable,
|
|
@@ -141,9 +208,19 @@ export {
|
|
|
141
208
|
diffById,
|
|
142
209
|
docStats,
|
|
143
210
|
docToMd,
|
|
211
|
+
dropMarkedLeaves,
|
|
212
|
+
dropSuggestText,
|
|
144
213
|
embedHtml,
|
|
214
|
+
findText,
|
|
145
215
|
firstLeafPath,
|
|
146
216
|
firstViolation,
|
|
217
|
+
footnoteIndex,
|
|
218
|
+
footnoteKey,
|
|
219
|
+
footnoteText,
|
|
220
|
+
frontMatterEnd,
|
|
221
|
+
gapToTextPath,
|
|
222
|
+
getVersion,
|
|
223
|
+
hasFootnotes,
|
|
147
224
|
hasSpan,
|
|
148
225
|
htmlToBlocks,
|
|
149
226
|
init,
|
|
@@ -153,16 +230,33 @@ export {
|
|
|
153
230
|
invariants,
|
|
154
231
|
invert,
|
|
155
232
|
invertAll,
|
|
233
|
+
isAiCompose,
|
|
234
|
+
isBodyBlockType,
|
|
235
|
+
isCallout,
|
|
236
|
+
isCellBlockType,
|
|
237
|
+
isCellBlockTypeInSpace,
|
|
156
238
|
isElement,
|
|
239
|
+
isFootnoteDef,
|
|
240
|
+
isFrontMatter,
|
|
157
241
|
isInlineAtom,
|
|
242
|
+
isLastCell,
|
|
243
|
+
isPlainTransportHtml,
|
|
158
244
|
isRichHtmlBlocks,
|
|
245
|
+
isSuggestMark,
|
|
159
246
|
isText,
|
|
160
247
|
lastLeafEnd,
|
|
248
|
+
listSuggestions,
|
|
161
249
|
makeBias,
|
|
162
250
|
makeTable,
|
|
251
|
+
mapLeafBlocks,
|
|
163
252
|
mapPosition,
|
|
164
253
|
mapSelection,
|
|
254
|
+
mapSelectionThrough,
|
|
255
|
+
markIdsInDoc,
|
|
256
|
+
markSuggestRange,
|
|
257
|
+
mdStructureBeatsTransport,
|
|
165
258
|
mdToDoc,
|
|
259
|
+
mdToDocAsync,
|
|
166
260
|
mergeCells,
|
|
167
261
|
moveBlock,
|
|
168
262
|
moveCol,
|
|
@@ -173,22 +267,39 @@ export {
|
|
|
173
267
|
normalizeToLeaf,
|
|
174
268
|
outline,
|
|
175
269
|
pathOfId,
|
|
270
|
+
preferMarkdownPaste,
|
|
271
|
+
pushVersion,
|
|
272
|
+
rangeForDelete,
|
|
273
|
+
rangeIsSuggestInsert,
|
|
176
274
|
rebase,
|
|
177
275
|
rebaseBatchOver,
|
|
178
276
|
rebaseOne,
|
|
179
277
|
rebaseStepsThrough,
|
|
180
278
|
redo,
|
|
279
|
+
rejectSuggestion,
|
|
280
|
+
removeVersion,
|
|
281
|
+
replaceAll,
|
|
181
282
|
replaceAt,
|
|
283
|
+
replaceMatch,
|
|
182
284
|
resolve,
|
|
285
|
+
resolveTxAfter,
|
|
286
|
+
resolvedColWidths,
|
|
183
287
|
rewriteNode,
|
|
184
288
|
rowspanOf,
|
|
185
289
|
setAlign,
|
|
186
290
|
setCellStyle,
|
|
187
291
|
setColWidths,
|
|
188
292
|
setFreeze,
|
|
293
|
+
setHeaderCol,
|
|
294
|
+
setMathSyntax,
|
|
295
|
+
snapshotDoc,
|
|
189
296
|
spliceAt,
|
|
190
297
|
splitCell,
|
|
191
298
|
stripCommentMarks,
|
|
299
|
+
stripMarks,
|
|
300
|
+
stripSuggestMarks,
|
|
301
|
+
suggestIdsInDoc,
|
|
302
|
+
suggestMark,
|
|
192
303
|
tableAt,
|
|
193
304
|
tableColWidths,
|
|
194
305
|
tableHasExtras,
|
|
@@ -198,5 +309,6 @@ export {
|
|
|
198
309
|
transformRemoteAgainstPending,
|
|
199
310
|
undo,
|
|
200
311
|
validate,
|
|
201
|
-
validateAll
|
|
312
|
+
validateAll,
|
|
313
|
+
wordCount
|
|
202
314
|
};
|