markloom 0.5.1 → 0.6.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 +42 -7
- package/dist/ai/index.cjs +4 -4
- package/dist/ai/index.d.cts +5 -4
- package/dist/ai/index.d.ts +5 -4
- package/dist/ai/index.js +3 -3
- package/dist/ai/theme.css +66 -102
- package/dist/{chunk-VXM7Q6P5.cjs → chunk-ACFYBYZJ.cjs} +2604 -966
- package/dist/chunk-CGYCJORO.js +759 -0
- package/dist/chunk-EADZKEU4.cjs +498 -0
- package/dist/chunk-EJSFZHGT.js +24 -0
- package/dist/{chunk-YIFOGP2D.cjs → chunk-I5VK4U7J.cjs} +103 -60
- package/dist/{chunk-ZMTLSFLO.js → chunk-KYZJIOOL.js} +2138 -500
- package/dist/chunk-QEVME6ZU.cjs +759 -0
- package/dist/{chunk-MFYF2A6U.js → chunk-SNFF6X45.js} +51 -1
- package/dist/{chunk-FCH7LZFI.js → chunk-TB2OY3D4.js} +50 -7
- package/dist/{chunk-4TMHVNL6.cjs → chunk-TWD5T4YC.cjs} +155 -105
- package/dist/{chunk-JS527FDV.cjs → chunk-U3JZDFL4.cjs} +49 -9
- package/dist/{chunk-RLTHVQNQ.js → chunk-VSBIMMI7.js} +45 -5
- package/dist/chunk-YBAT343I.js +498 -0
- package/dist/chunk-ZKQSQSSM.cjs +24 -0
- package/dist/{client-ZRZj2nkq.d.cts → client-CLYq17SW.d.ts} +63 -7
- package/dist/{client-6KiH4kGK.d.ts → client-DAth8pPq.d.cts} +63 -7
- package/dist/collab/index.cjs +16 -4
- package/dist/collab/index.d.cts +19 -6
- package/dist/collab/index.d.ts +19 -6
- package/dist/collab/index.js +18 -6
- package/dist/{controller-BNuuUM3E.d.ts → controller-6AJ36G52.d.ts} +99 -7
- package/dist/{controller-DQITsFhy.d.cts → controller-BIOO_XKJ.d.cts} +99 -7
- package/dist/index.cjs +57 -7
- package/dist/index.d.cts +18 -5
- package/dist/index.d.ts +18 -5
- package/dist/index.js +54 -4
- package/dist/io/index.cjs +1413 -0
- package/dist/io/index.d.cts +33 -0
- package/dist/io/index.d.ts +33 -0
- package/dist/io/index.js +1413 -0
- package/dist/react/index.cjs +8 -8
- package/dist/react/index.d.cts +5 -4
- package/dist/react/index.d.ts +5 -4
- package/dist/react/index.js +7 -7
- package/dist/{rebase-batch-8rL_aXEE.d.ts → rebase-batch-DlerAcFN.d.ts} +11 -9
- package/dist/{rebase-batch-bYnBJpRO.d.cts → rebase-batch-PjENQ742.d.cts} +11 -9
- package/dist/suggest-Bk4zLzuv.d.ts +120 -0
- package/dist/suggest-BkGGiPKA.d.cts +120 -0
- package/dist/types-COUweEav.d.cts +30 -0
- package/dist/types-COUweEav.d.ts +30 -0
- package/dist/versions-9mG1epfB.d.cts +51 -0
- package/dist/versions-Bubyo4pt.d.ts +51 -0
- package/dist/view/index.cjs +56 -12
- package/dist/view/index.d.cts +203 -11
- package/dist/view/index.d.ts +203 -11
- package/dist/view/index.js +52 -8
- package/dist/view/theme.css +1829 -1587
- package/io.md +38 -0
- package/package.json +21 -5
- package/dist/chunk-4JSJAHTB.js +0 -255
- 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-YXQDCW4Y.cjs +0 -220
- 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,15 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
+
acceptSuggestion,
|
|
2
3
|
amend,
|
|
4
|
+
applyForeign,
|
|
5
|
+
applyReplaceAll,
|
|
3
6
|
commentIdsInDoc,
|
|
4
7
|
commit,
|
|
8
|
+
dropSuggestText,
|
|
9
|
+
findText,
|
|
5
10
|
firstViolation,
|
|
11
|
+
getVersion,
|
|
6
12
|
init,
|
|
7
13
|
invariants,
|
|
14
|
+
isSuggestMark,
|
|
15
|
+
listSuggestions,
|
|
16
|
+
markSuggestRange,
|
|
8
17
|
outline,
|
|
18
|
+
pushVersion,
|
|
19
|
+
rangeForDelete,
|
|
20
|
+
rangeIsSuggestInsert,
|
|
9
21
|
redo,
|
|
22
|
+
rejectSuggestion,
|
|
23
|
+
removeVersion,
|
|
24
|
+
replaceAll,
|
|
25
|
+
replaceMatch,
|
|
26
|
+
snapshotDoc,
|
|
10
27
|
stripCommentMarks,
|
|
28
|
+
stripSuggestMarks,
|
|
29
|
+
suggestIdsInDoc,
|
|
30
|
+
suggestMark,
|
|
11
31
|
undo
|
|
12
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CGYCJORO.js";
|
|
13
33
|
import {
|
|
14
34
|
appendText,
|
|
15
35
|
apply,
|
|
@@ -40,9 +60,11 @@ import {
|
|
|
40
60
|
insertRow,
|
|
41
61
|
invert,
|
|
42
62
|
invertAll,
|
|
63
|
+
isPlainTransportHtml,
|
|
43
64
|
isRichHtmlBlocks,
|
|
44
65
|
lastLeafEnd,
|
|
45
66
|
makeTable,
|
|
67
|
+
mdStructureBeatsTransport,
|
|
46
68
|
mdToDoc,
|
|
47
69
|
mergeCells,
|
|
48
70
|
moveBlock,
|
|
@@ -52,6 +74,7 @@ import {
|
|
|
52
74
|
nodeAt,
|
|
53
75
|
normalizeToLeaf,
|
|
54
76
|
pathOfId,
|
|
77
|
+
preferMarkdownPaste,
|
|
55
78
|
replaceAt,
|
|
56
79
|
resolve,
|
|
57
80
|
rewriteNode,
|
|
@@ -70,23 +93,25 @@ import {
|
|
|
70
93
|
tableToHtml,
|
|
71
94
|
validate,
|
|
72
95
|
validateAll
|
|
73
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-SNFF6X45.js";
|
|
74
97
|
import {
|
|
75
98
|
makeBias,
|
|
76
99
|
mapPosition,
|
|
77
100
|
mapSelection,
|
|
101
|
+
mapSelectionThrough,
|
|
78
102
|
normalizePosition,
|
|
79
103
|
rebase,
|
|
80
104
|
rebaseBatchOver,
|
|
81
105
|
rebaseOne,
|
|
82
106
|
rebaseStepsThrough,
|
|
107
|
+
resolveTxAfter,
|
|
83
108
|
transformRemoteAgainstPending
|
|
84
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-VSBIMMI7.js";
|
|
85
110
|
import {
|
|
86
111
|
isElement,
|
|
87
112
|
isInlineAtom,
|
|
88
113
|
isText
|
|
89
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-EJSFZHGT.js";
|
|
90
115
|
|
|
91
116
|
// src/tree/stats.ts
|
|
92
117
|
function rawText(node) {
|
|
@@ -117,10 +142,13 @@ function docStats(doc) {
|
|
|
117
142
|
return { chars: [...rawText(doc)].length, words: countWords(spacedText(doc)), blocks: doc.children.length };
|
|
118
143
|
}
|
|
119
144
|
export {
|
|
145
|
+
acceptSuggestion,
|
|
120
146
|
amend,
|
|
121
147
|
appendText,
|
|
122
148
|
apply,
|
|
123
149
|
applyAll,
|
|
150
|
+
applyForeign,
|
|
151
|
+
applyReplaceAll,
|
|
124
152
|
arrowCell,
|
|
125
153
|
basicSchema,
|
|
126
154
|
buildGrid,
|
|
@@ -141,9 +169,12 @@ export {
|
|
|
141
169
|
diffById,
|
|
142
170
|
docStats,
|
|
143
171
|
docToMd,
|
|
172
|
+
dropSuggestText,
|
|
144
173
|
embedHtml,
|
|
174
|
+
findText,
|
|
145
175
|
firstLeafPath,
|
|
146
176
|
firstViolation,
|
|
177
|
+
getVersion,
|
|
147
178
|
hasSpan,
|
|
148
179
|
htmlToBlocks,
|
|
149
180
|
init,
|
|
@@ -155,13 +186,19 @@ export {
|
|
|
155
186
|
invertAll,
|
|
156
187
|
isElement,
|
|
157
188
|
isInlineAtom,
|
|
189
|
+
isPlainTransportHtml,
|
|
158
190
|
isRichHtmlBlocks,
|
|
191
|
+
isSuggestMark,
|
|
159
192
|
isText,
|
|
160
193
|
lastLeafEnd,
|
|
194
|
+
listSuggestions,
|
|
161
195
|
makeBias,
|
|
162
196
|
makeTable,
|
|
163
197
|
mapPosition,
|
|
164
198
|
mapSelection,
|
|
199
|
+
mapSelectionThrough,
|
|
200
|
+
markSuggestRange,
|
|
201
|
+
mdStructureBeatsTransport,
|
|
165
202
|
mdToDoc,
|
|
166
203
|
mergeCells,
|
|
167
204
|
moveBlock,
|
|
@@ -173,22 +210,35 @@ export {
|
|
|
173
210
|
normalizeToLeaf,
|
|
174
211
|
outline,
|
|
175
212
|
pathOfId,
|
|
213
|
+
preferMarkdownPaste,
|
|
214
|
+
pushVersion,
|
|
215
|
+
rangeForDelete,
|
|
216
|
+
rangeIsSuggestInsert,
|
|
176
217
|
rebase,
|
|
177
218
|
rebaseBatchOver,
|
|
178
219
|
rebaseOne,
|
|
179
220
|
rebaseStepsThrough,
|
|
180
221
|
redo,
|
|
222
|
+
rejectSuggestion,
|
|
223
|
+
removeVersion,
|
|
224
|
+
replaceAll,
|
|
181
225
|
replaceAt,
|
|
226
|
+
replaceMatch,
|
|
182
227
|
resolve,
|
|
228
|
+
resolveTxAfter,
|
|
183
229
|
rewriteNode,
|
|
184
230
|
rowspanOf,
|
|
185
231
|
setAlign,
|
|
186
232
|
setCellStyle,
|
|
187
233
|
setColWidths,
|
|
188
234
|
setFreeze,
|
|
235
|
+
snapshotDoc,
|
|
189
236
|
spliceAt,
|
|
190
237
|
splitCell,
|
|
191
238
|
stripCommentMarks,
|
|
239
|
+
stripSuggestMarks,
|
|
240
|
+
suggestIdsInDoc,
|
|
241
|
+
suggestMark,
|
|
192
242
|
tableAt,
|
|
193
243
|
tableColWidths,
|
|
194
244
|
tableHasExtras,
|