@pixerate/editor 0.19.0 → 0.20.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 +91 -2
- package/dist/agent/index.cjs +625 -2
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +286 -2
- package/dist/agent/index.d.ts +286 -2
- package/dist/agent/index.js +624 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/canvas/index.cjs +1240 -22
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +515 -3
- package/dist/canvas/index.d.ts +515 -3
- package/dist/canvas/index.js +1219 -1
- package/dist/canvas/index.js.map +1 -1
- package/dist/chunk-3TYMNULT.js +1367 -0
- package/dist/chunk-3TYMNULT.js.map +1 -0
- package/dist/chunk-4QPLEUL2.cjs +4480 -0
- package/dist/chunk-4QPLEUL2.cjs.map +1 -0
- package/dist/chunk-4SUNJZWB.cjs +553 -0
- package/dist/chunk-4SUNJZWB.cjs.map +1 -0
- package/dist/chunk-A7DKIA72.js +2657 -0
- package/dist/chunk-A7DKIA72.js.map +1 -0
- package/dist/chunk-AXV2ZW34.cjs +118 -0
- package/dist/chunk-AXV2ZW34.cjs.map +1 -0
- package/dist/chunk-B2ZRLN4S.js +118 -0
- package/dist/chunk-B2ZRLN4S.js.map +1 -0
- package/dist/chunk-CYFJCKC4.js +4480 -0
- package/dist/chunk-CYFJCKC4.js.map +1 -0
- package/dist/chunk-GVW4P7BG.js +2706 -0
- package/dist/chunk-GVW4P7BG.js.map +1 -0
- package/dist/chunk-JACER6TE.cjs +1 -0
- package/dist/chunk-JACER6TE.cjs.map +1 -0
- package/dist/chunk-JYRIOFEN.cjs +2657 -0
- package/dist/chunk-JYRIOFEN.cjs.map +1 -0
- package/dist/chunk-KYRZDWM4.js +299 -0
- package/dist/chunk-KYRZDWM4.js.map +1 -0
- package/dist/chunk-LA7PEGU3.cjs +299 -0
- package/dist/chunk-LA7PEGU3.cjs.map +1 -0
- package/dist/chunk-N7FG6CBO.js +1 -0
- package/dist/chunk-N7FG6CBO.js.map +1 -0
- package/dist/chunk-OYXSKQFR.js +553 -0
- package/dist/chunk-OYXSKQFR.js.map +1 -0
- package/dist/chunk-TVRC4KVT.cjs +1367 -0
- package/dist/chunk-TVRC4KVT.cjs.map +1 -0
- package/dist/chunk-U6NDQFOK.cjs +2706 -0
- package/dist/chunk-U6NDQFOK.cjs.map +1 -0
- package/dist/controller-OUdxPY-X.d.cts +754 -0
- package/dist/controller-OUdxPY-X.d.ts +754 -0
- package/dist/extensions/index.cjs +144 -3
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +9 -144
- package/dist/extensions/index.d.ts +9 -144
- package/dist/extensions/index.js +145 -4
- package/dist/grammar/index.cjs +31 -3
- package/dist/grammar/index.cjs.map +1 -1
- package/dist/grammar/index.d.cts +239 -19
- package/dist/grammar/index.d.ts +239 -19
- package/dist/grammar/index.js +31 -3
- package/dist/history/index.d.cts +2 -41
- package/dist/history/index.d.ts +2 -41
- package/dist/index-Ng1pG7JE.d.ts +899 -0
- package/dist/index-k3mFbPx_.d.cts +899 -0
- package/dist/index.cjs +457 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +99 -12
- package/dist/index.d.ts +99 -12
- package/dist/index.js +457 -20
- package/dist/index.js.map +1 -1
- package/dist/registry-iAHbqkYt.d.cts +128 -0
- package/dist/registry-iAHbqkYt.d.ts +128 -0
- package/dist/serializers/index.cjs +26 -3
- package/dist/serializers/index.cjs.map +1 -1
- package/dist/serializers/index.d.cts +119 -6
- package/dist/serializers/index.d.ts +119 -6
- package/dist/serializers/index.js +24 -1
- package/dist/spreadsheet/index.cjs +122 -2
- package/dist/spreadsheet/index.cjs.map +1 -1
- package/dist/spreadsheet/index.d.cts +371 -313
- package/dist/spreadsheet/index.d.ts +371 -313
- package/dist/spreadsheet/index.js +127 -7
- package/dist/tokens-CyLZmIei.d.cts +76 -0
- package/dist/tokens-CyLZmIei.d.ts +76 -0
- package/dist/track-changes-G8JcWB8b.d.cts +306 -0
- package/dist/track-changes-G8JcWB8b.d.ts +306 -0
- package/dist/types-BZgcDsC5.d.cts +42 -0
- package/dist/types-BZgcDsC5.d.ts +42 -0
- package/dist/{types-JV3S8VeR.d.cts → types-DMe0vFB1.d.cts} +1 -1
- package/dist/{types-JV3S8VeR.d.ts → types-DMe0vFB1.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-7FWEWE6T.js +0 -1888
- package/dist/chunk-7FWEWE6T.js.map +0 -1
- package/dist/chunk-AIZUKWTL.js +0 -1715
- package/dist/chunk-AIZUKWTL.js.map +0 -1
- package/dist/chunk-GLSIZKOX.js +0 -17
- package/dist/chunk-GLSIZKOX.js.map +0 -1
- package/dist/chunk-LDES3EOS.cjs +0 -1888
- package/dist/chunk-LDES3EOS.cjs.map +0 -1
- package/dist/chunk-LLUAKTLW.cjs +0 -532
- package/dist/chunk-LLUAKTLW.cjs.map +0 -1
- package/dist/chunk-MPPXH7U5.cjs +0 -336
- package/dist/chunk-MPPXH7U5.cjs.map +0 -1
- package/dist/chunk-O7LOPQMH.js +0 -336
- package/dist/chunk-O7LOPQMH.js.map +0 -1
- package/dist/chunk-QGVMBCT5.js +0 -532
- package/dist/chunk-QGVMBCT5.js.map +0 -1
- package/dist/chunk-SEDR75VH.cjs +0 -17
- package/dist/chunk-SEDR75VH.cjs.map +0 -1
- package/dist/chunk-YQCI4CCN.cjs +0 -1715
- package/dist/chunk-YQCI4CCN.cjs.map +0 -1
- package/dist/mention-Dcevh3ff.d.cts +0 -32
- package/dist/mention-Dcevh3ff.d.ts +0 -32
- package/dist/tokens-7kRTEtPb.d.cts +0 -39
- package/dist/tokens-7kRTEtPb.d.ts +0 -39
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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; }
|
|
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; } var _class;
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var _chunkMPPXH7U5cjs = require('./chunk-MPPXH7U5.cjs');
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
|
|
@@ -20,6 +19,7 @@ var _chunkMPPXH7U5cjs = require('./chunk-MPPXH7U5.cjs');
|
|
|
20
19
|
|
|
21
20
|
|
|
22
21
|
|
|
22
|
+
var _chunk4SUNJZWBcjs = require('./chunk-4SUNJZWB.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -32,7 +32,6 @@ var _chunkMPPXH7U5cjs = require('./chunk-MPPXH7U5.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var _chunkLDES3EOScjs = require('./chunk-LDES3EOS.cjs');
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
|
|
@@ -40,7 +39,6 @@ var _chunkLDES3EOScjs = require('./chunk-LDES3EOS.cjs');
|
|
|
40
39
|
|
|
41
40
|
|
|
42
41
|
|
|
43
|
-
var _chunkSEDR75VHcjs = require('./chunk-SEDR75VH.cjs');
|
|
44
42
|
|
|
45
43
|
|
|
46
44
|
|
|
@@ -57,7 +55,6 @@ var _chunkSEDR75VHcjs = require('./chunk-SEDR75VH.cjs');
|
|
|
57
55
|
|
|
58
56
|
|
|
59
57
|
|
|
60
|
-
var _chunkLLUAKTLWcjs = require('./chunk-LLUAKTLW.cjs');
|
|
61
58
|
|
|
62
59
|
|
|
63
60
|
|
|
@@ -76,12 +73,190 @@ var _chunkLLUAKTLWcjs = require('./chunk-LLUAKTLW.cjs');
|
|
|
76
73
|
|
|
77
74
|
|
|
78
75
|
|
|
79
|
-
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
var _chunk4QPLEUL2cjs = require('./chunk-4QPLEUL2.cjs');
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
var _chunkAXV2ZW34cjs = require('./chunk-AXV2ZW34.cjs');
|
|
128
|
+
require('./chunk-JACER6TE.cjs');
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
var _chunkLA7PEGU3cjs = require('./chunk-LA7PEGU3.cjs');
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
var _chunkU6NDQFOKcjs = require('./chunk-U6NDQFOK.cjs');
|
|
80
194
|
|
|
81
195
|
|
|
82
196
|
|
|
83
197
|
var _chunk2TWGLC5Kcjs = require('./chunk-2TWGLC5K.cjs');
|
|
84
198
|
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
var _chunkTVRC4KVTcjs = require('./chunk-TVRC4KVT.cjs');
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
var _chunkJYRIOFENcjs = require('./chunk-JYRIOFEN.cjs');
|
|
259
|
+
|
|
85
260
|
// src/controller.ts
|
|
86
261
|
var _core = require('@tiptap/core');
|
|
87
262
|
var _model = require('@tiptap/pm/model');
|
|
@@ -113,7 +288,7 @@ var EditorController = class {
|
|
|
113
288
|
this.onMarkdownChange = onMarkdownChange;
|
|
114
289
|
this.onTokensChange = onTokensChange;
|
|
115
290
|
this.onSelectionChange = onSelectionChange;
|
|
116
|
-
const initialContent = plainTextMode && typeof content === "string" ?
|
|
291
|
+
const initialContent = plainTextMode && typeof content === "string" ? _chunkTVRC4KVTcjs.plainTextToTipTapHtml.call(void 0, content) : markdownMode && typeof content === "string" ? _chunkTVRC4KVTcjs.markdownToTipTapHtml.call(void 0, content) : content;
|
|
117
292
|
this.editor = new (0, _core.Editor)({
|
|
118
293
|
element: element || void 0,
|
|
119
294
|
content: initialContent,
|
|
@@ -134,13 +309,19 @@ var EditorController = class {
|
|
|
134
309
|
this.baselineContent = this.getCurrentContentString();
|
|
135
310
|
}
|
|
136
311
|
enforcePlainTextClipboard() {
|
|
312
|
+
const richClipboard = _optionalChain([this, 'access', _5 => _5.editor, 'access', _6 => _6.storage, 'optionalAccess', _7 => _7.richClipboard]);
|
|
313
|
+
if (richClipboard) richClipboard.plainTextMode = true;
|
|
314
|
+
const fileImport = _optionalChain([this, 'access', _8 => _8.editor, 'access', _9 => _9.extensionManager, 'optionalAccess', _10 => _10.extensions, 'access', _11 => _11.find, 'call', _12 => _12(
|
|
315
|
+
(ext) => ext.name === "fileImport"
|
|
316
|
+
)]);
|
|
317
|
+
if (fileImport) fileImport.options.asPlainText = true;
|
|
137
318
|
this.editor.setOptions({
|
|
138
319
|
editorProps: {
|
|
139
320
|
...this.editor.options.editorProps,
|
|
140
321
|
clipboardTextParser: (text, context, _plain, view) => {
|
|
141
|
-
const schema = _optionalChain([context, 'optionalAccess',
|
|
322
|
+
const schema = _optionalChain([context, 'optionalAccess', _13 => _13.doc, 'optionalAccess', _14 => _14.type, 'optionalAccess', _15 => _15.schema]) || _optionalChain([context, 'optionalAccess', _16 => _16.schema]) || _optionalChain([view, 'optionalAccess', _17 => _17.state, 'optionalAccess', _18 => _18.schema]) || this.editor.schema;
|
|
142
323
|
if (!schema) return _model.Slice.empty;
|
|
143
|
-
return
|
|
324
|
+
return _chunkTVRC4KVTcjs.plainTextToSlice.call(void 0, text, schema);
|
|
144
325
|
}
|
|
145
326
|
}
|
|
146
327
|
});
|
|
@@ -148,15 +329,15 @@ var EditorController = class {
|
|
|
148
329
|
handleUpdate() {
|
|
149
330
|
if (this.plainTextMode || this.onPlainTextChange || this.onTokensChange) {
|
|
150
331
|
const text = this.getPlainText();
|
|
151
|
-
_optionalChain([this, 'access',
|
|
332
|
+
_optionalChain([this, 'access', _19 => _19.onPlainTextChange, 'optionalCall', _20 => _20(text)]);
|
|
152
333
|
if (this.onTokensChange) {
|
|
153
|
-
const tokens =
|
|
334
|
+
const tokens = _chunk4SUNJZWBcjs.tokenizePrompt.call(void 0, text);
|
|
154
335
|
this.onTokensChange(tokens);
|
|
155
336
|
}
|
|
156
337
|
}
|
|
157
338
|
if (this.markdownMode || this.onMarkdownChange) {
|
|
158
339
|
const markdown = this.getMarkdown();
|
|
159
|
-
_optionalChain([this, 'access',
|
|
340
|
+
_optionalChain([this, 'access', _21 => _21.onMarkdownChange, 'optionalCall', _22 => _22(markdown)]);
|
|
160
341
|
}
|
|
161
342
|
}
|
|
162
343
|
handleSelectionUpdate() {
|
|
@@ -166,20 +347,20 @@ var EditorController = class {
|
|
|
166
347
|
}
|
|
167
348
|
}
|
|
168
349
|
getPlainText() {
|
|
169
|
-
return
|
|
350
|
+
return _chunkTVRC4KVTcjs.getEditorText.call(void 0, this.editor);
|
|
170
351
|
}
|
|
171
352
|
setPlainText(text, emitUpdate = true) {
|
|
172
|
-
const html =
|
|
353
|
+
const html = _chunkTVRC4KVTcjs.plainTextToTipTapHtml.call(void 0, text);
|
|
173
354
|
this.editor.commands.setContent(html, emitUpdate);
|
|
174
355
|
}
|
|
175
356
|
getMarkdown() {
|
|
176
|
-
return
|
|
357
|
+
return _chunkTVRC4KVTcjs.getEditorMarkdown.call(void 0, this.editor);
|
|
177
358
|
}
|
|
178
359
|
setMarkdown(markdown, emitUpdate = true) {
|
|
179
|
-
if (_optionalChain([this, 'access',
|
|
360
|
+
if (_optionalChain([this, 'access', _23 => _23.editor, 'access', _24 => _24.storage, 'optionalAccess', _25 => _25.markdown, 'optionalAccess', _26 => _26.parser])) {
|
|
180
361
|
this.editor.commands.setContent(markdown, emitUpdate);
|
|
181
362
|
} else {
|
|
182
|
-
const html =
|
|
363
|
+
const html = _chunkTVRC4KVTcjs.markdownToTipTapHtml.call(void 0, markdown);
|
|
183
364
|
this.editor.commands.setContent(html, emitUpdate);
|
|
184
365
|
}
|
|
185
366
|
}
|
|
@@ -189,7 +370,7 @@ var EditorController = class {
|
|
|
189
370
|
*/
|
|
190
371
|
insertPlainText(from, to, text) {
|
|
191
372
|
const { state, view } = this.editor;
|
|
192
|
-
const tr = text.includes("\n") || text.includes("\r") ? state.tr.replace(from, to,
|
|
373
|
+
const tr = text.includes("\n") || text.includes("\r") ? state.tr.replace(from, to, _chunkTVRC4KVTcjs.plainTextToSlice.call(void 0, text, state.schema)) : text ? state.tr.insertText(text, from, to) : state.tr.delete(from, to);
|
|
193
374
|
view.dispatch(tr.scrollIntoView());
|
|
194
375
|
}
|
|
195
376
|
/** Inserts text literally at the selection; HTML in `text` is not parsed. */
|
|
@@ -265,7 +446,7 @@ var DirtyTracker = class {
|
|
|
265
446
|
if (typeof options === "function") {
|
|
266
447
|
this.isEqual = options;
|
|
267
448
|
} else {
|
|
268
|
-
this.isEqual = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
449
|
+
this.isEqual = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _27 => _27.isEqual]), () => ( defaultIsEqual));
|
|
269
450
|
}
|
|
270
451
|
}
|
|
271
452
|
/**
|
|
@@ -297,6 +478,262 @@ function createDirtyTracker(initialBaseline, options) {
|
|
|
297
478
|
return new DirtyTracker(initialBaseline, options);
|
|
298
479
|
}
|
|
299
480
|
|
|
481
|
+
// src/import/controller.ts
|
|
482
|
+
function pickImportFiles(options = {}) {
|
|
483
|
+
if (typeof document === "undefined") return Promise.resolve([]);
|
|
484
|
+
return new Promise((resolve) => {
|
|
485
|
+
const input = document.createElement("input");
|
|
486
|
+
input.type = "file";
|
|
487
|
+
input.accept = _nullishCoalesce(options.accept, () => ( _chunk4QPLEUL2cjs.defaultImportRegistry.accept("document")));
|
|
488
|
+
input.multiple = _nullishCoalesce(options.multiple, () => ( true));
|
|
489
|
+
input.style.display = "none";
|
|
490
|
+
const finish = (files) => {
|
|
491
|
+
input.remove();
|
|
492
|
+
resolve(files);
|
|
493
|
+
};
|
|
494
|
+
input.addEventListener("change", () => finish(Array.from(_nullishCoalesce(input.files, () => ( [])))), { once: true });
|
|
495
|
+
input.addEventListener("cancel", () => finish([]), { once: true });
|
|
496
|
+
document.body.appendChild(input);
|
|
497
|
+
input.click();
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
var FileImportController = (_class = class {
|
|
501
|
+
constructor(getTarget, options = {}) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);
|
|
502
|
+
this.getTarget = getTarget;
|
|
503
|
+
this.options = options;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
__init() {this.state = { isImporting: false, error: null, lastOutcomes: [] }}
|
|
508
|
+
__init2() {this.listeners = /* @__PURE__ */ new Set()}
|
|
509
|
+
__init3() {this.pending = 0}
|
|
510
|
+
setOptions(options) {
|
|
511
|
+
this.options = options;
|
|
512
|
+
}
|
|
513
|
+
/** `accept` attribute value for document imports. */
|
|
514
|
+
get accept() {
|
|
515
|
+
return (_nullishCoalesce(this.options.registry, () => ( _chunk4QPLEUL2cjs.defaultImportRegistry))).accept("document");
|
|
516
|
+
}
|
|
517
|
+
__init4() {this.getState = () => this.state}
|
|
518
|
+
__init5() {this.subscribe = (listener) => {
|
|
519
|
+
this.listeners.add(listener);
|
|
520
|
+
return () => {
|
|
521
|
+
this.listeners.delete(listener);
|
|
522
|
+
};
|
|
523
|
+
}}
|
|
524
|
+
setState(patch) {
|
|
525
|
+
this.state = { ...this.state, ...patch };
|
|
526
|
+
this.listeners.forEach((listener) => listener(this.state));
|
|
527
|
+
}
|
|
528
|
+
/** Imports files into the editor at `at` (default: the selection). */
|
|
529
|
+
__init6() {this.importFiles = async (files, at) => {
|
|
530
|
+
const target = this.getTarget();
|
|
531
|
+
const list = Array.from(files);
|
|
532
|
+
if (!target || list.length === 0) return [];
|
|
533
|
+
this.pending++;
|
|
534
|
+
this.setState({ isImporting: true, error: null });
|
|
535
|
+
let error = null;
|
|
536
|
+
try {
|
|
537
|
+
const outcomes = await _chunk4QPLEUL2cjs.importFilesIntoEditor.call(void 0, target, list, {
|
|
538
|
+
...this.options,
|
|
539
|
+
at,
|
|
540
|
+
onError: (err, file) => {
|
|
541
|
+
error = err;
|
|
542
|
+
_optionalChain([this, 'access', _31 => _31.options, 'access', _32 => _32.onError, 'optionalCall', _33 => _33(err, file)]);
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
this.pending--;
|
|
546
|
+
this.setState({ isImporting: this.pending > 0, error, lastOutcomes: outcomes });
|
|
547
|
+
return outcomes;
|
|
548
|
+
} catch (err) {
|
|
549
|
+
this.pending--;
|
|
550
|
+
this.setState({ isImporting: this.pending > 0, error: err instanceof Error ? err : new Error(String(err)) });
|
|
551
|
+
return [];
|
|
552
|
+
}
|
|
553
|
+
}}
|
|
554
|
+
/** Opens the file picker and imports the chosen files at the selection. */
|
|
555
|
+
__init7() {this.openFilePicker = async () => {
|
|
556
|
+
const files = await pickImportFiles({ accept: this.accept, multiple: this.options.multiple });
|
|
557
|
+
return this.importFiles(files);
|
|
558
|
+
}}
|
|
559
|
+
}, _class);
|
|
560
|
+
function createFileImportController(getTarget, options) {
|
|
561
|
+
return new FileImportController(getTarget, options);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
300
737
|
|
|
301
738
|
|
|
302
739
|
|
|
@@ -373,5 +810,5 @@ function createDirtyTracker(initialBaseline, options) {
|
|
|
373
810
|
|
|
374
811
|
|
|
375
812
|
|
|
376
|
-
exports.ColorHighlighter = _chunkLDES3EOScjs.ColorHighlighter; exports.DataSourceBinder = _chunkYQCI4CCNcjs.DataSourceBinder; exports.DependencyGraph = _chunkYQCI4CCNcjs.DependencyGraph; exports.DirtyTracker = DirtyTracker; exports.EditorController = EditorController; exports.FORMULA_ERRORS = _chunkYQCI4CCNcjs.FORMULA_ERRORS; exports.FontSize = _chunkLDES3EOScjs.FontSize; exports.FormulaEvaluator = _chunkYQCI4CCNcjs.FormulaEvaluator; exports.FormulaParser = _chunkYQCI4CCNcjs.FormulaParser; exports.GradientText = _chunkLDES3EOScjs.GradientText; exports.HistoryManager = _chunk2TWGLC5Kcjs.HistoryManager; exports.INSTRUCTION_REGEX = _chunkSEDR75VHcjs.INSTRUCTION_REGEX; exports.Image = _chunkLDES3EOScjs.Image; exports.LoadingNode = _chunkLDES3EOScjs.LoadingNode; exports.MARKDOWN_MENTION_SPLIT_REGEX = _chunkLLUAKTLWcjs.MARKDOWN_MENTION_SPLIT_REGEX; exports.MENTION_REGEX = _chunkLLUAKTLWcjs.MENTION_REGEX; exports.Markdown = _chunkLDES3EOScjs.Markdown; exports.Mention = _chunkLDES3EOScjs.Mention; exports.SlashCommands = _chunkLDES3EOScjs.SlashCommands; exports.SmilieReplacer = _chunkLDES3EOScjs.SmilieReplacer; exports.SpreadsheetController = _chunkYQCI4CCNcjs.SpreadsheetController; exports.TEMPLATE_DEPTH_ERROR = _chunkMPPXH7U5cjs.TEMPLATE_DEPTH_ERROR; exports.TEMPLATE_LOOP_ERROR = _chunkMPPXH7U5cjs.TEMPLATE_LOOP_ERROR; exports.TEMPLATE_REGEX = _chunkSEDR75VHcjs.TEMPLATE_REGEX; exports.TemplateSuggestions = _chunkLDES3EOScjs.TemplateSuggestions; exports.VARIABLE_REGEX = _chunkSEDR75VHcjs.VARIABLE_REGEX; exports.WHOLE_COLUMN_END_ROW = _chunkYQCI4CCNcjs.WHOLE_COLUMN_END_ROW; exports.colNameToIndex = _chunkYQCI4CCNcjs.colNameToIndex; exports.columnDependencyKey = _chunkYQCI4CCNcjs.columnDependencyKey; exports.createDirtyTracker = createDirtyTracker; exports.createEditor = createEditor; exports.createHistoryManager = _chunk2TWGLC5Kcjs.createHistoryManager; exports.createMentionExtension = _chunkLDES3EOScjs.createMentionExtension; exports.createRichTextPreset = _chunkLDES3EOScjs.createRichTextPreset; exports.defaultIsEqual = defaultIsEqual; exports.escapeHtml = _chunkLLUAKTLWcjs.escapeHtml; exports.extractCellDependencies = _chunkYQCI4CCNcjs.extractCellDependencies; exports.extractInstructionNames = _chunkMPPXH7U5cjs.extractInstructionNames; exports.extractMentions = _chunkLLUAKTLWcjs.extractMentions; exports.extractMentionsFromDoc = _chunkLLUAKTLWcjs.extractMentionsFromDoc; exports.extractTemplateNames = _chunkMPPXH7U5cjs.extractTemplateNames; exports.extractVariableNames = _chunkMPPXH7U5cjs.extractVariableNames; exports.findHexColors = _chunkLDES3EOScjs.findHexColors; exports.getEditorMarkdown = _chunkLLUAKTLWcjs.getEditorMarkdown; exports.getEditorText = _chunkLLUAKTLWcjs.getEditorText; exports.getLatestVersion = _chunkMPPXH7U5cjs.getLatestVersion; exports.getTemplateBody = _chunkMPPXH7U5cjs.getTemplateBody; exports.handleImageInsertion = _chunkLDES3EOScjs.handleImageInsertion; exports.htmlToPlainText = _chunkLLUAKTLWcjs.htmlToPlainText; exports.imagePastePluginKey = _chunkLDES3EOScjs.imagePastePluginKey; exports.indexToColName = _chunkYQCI4CCNcjs.indexToColName; exports.insertImageNode = _chunkLDES3EOScjs.insertImageNode; exports.instructionRegex = _chunkSEDR75VHcjs.instructionRegex; exports.isFormulaError = _chunkYQCI4CCNcjs.isFormulaError; exports.mapRawOffsetToResolved = _chunkMPPXH7U5cjs.mapRawOffsetToResolved; exports.mapResolvedOffsetToRaw = _chunkMPPXH7U5cjs.mapResolvedOffsetToRaw; exports.markdownToTipTapHtml = _chunkLLUAKTLWcjs.markdownToTipTapHtml; exports.parseCellReference = _chunkYQCI4CCNcjs.parseCellReference; exports.parseFormula = _chunkYQCI4CCNcjs.parseFormula; exports.parseMentionSegments = _chunkLLUAKTLWcjs.parseMentionSegments; exports.parseRange = _chunkYQCI4CCNcjs.parseRange; exports.plainTextToSlice = _chunkLLUAKTLWcjs.plainTextToSlice; exports.plainTextToTipTapHtml = _chunkLLUAKTLWcjs.plainTextToTipTapHtml; exports.preprocessMarkdownFileLinks = _chunkLLUAKTLWcjs.preprocessMarkdownFileLinks; exports.preprocessMarkdownMentions = _chunkLLUAKTLWcjs.preprocessMarkdownMentions; exports.removeImageNode = _chunkLDES3EOScjs.removeImageNode; exports.resolveTemplates = _chunkMPPXH7U5cjs.resolveTemplates; exports.resolveTemplatesWithMapping = _chunkMPPXH7U5cjs.resolveTemplatesWithMapping; exports.resolveVariables = _chunkMPPXH7U5cjs.resolveVariables; exports.shiftFormulaReferences = _chunkYQCI4CCNcjs.shiftFormulaReferences; exports.stripMarkdownCode = _chunkLLUAKTLWcjs.stripMarkdownCode; exports.templateRegex = _chunkSEDR75VHcjs.templateRegex; exports.tokenizeFormula = _chunkYQCI4CCNcjs.tokenizeFormula; exports.tokenizePrompt = _chunkMPPXH7U5cjs.tokenizePrompt; exports.updateImageSrc = _chunkLDES3EOScjs.updateImageSrc; exports.variableRegex = _chunkSEDR75VHcjs.variableRegex;
|
|
813
|
+
exports.Autocorrect = _chunk4QPLEUL2cjs.Autocorrect; exports.BUILT_IN_IMPORT_ADAPTERS = _chunk4QPLEUL2cjs.BUILT_IN_IMPORT_ADAPTERS; exports.Bookmark = _chunk4QPLEUL2cjs.Bookmark; exports.COMMENT_MARK_NAME = _chunk4QPLEUL2cjs.COMMENT_MARK_NAME; exports.ColorHighlighter = _chunk4QPLEUL2cjs.ColorHighlighter; exports.CommentStore = _chunkTVRC4KVTcjs.CommentStore; exports.Comments = _chunk4QPLEUL2cjs.Comments; exports.CrossReference = _chunk4QPLEUL2cjs.CrossReference; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunk4QPLEUL2cjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_COLUMN_WIDTH = _chunkU6NDQFOKcjs.DEFAULT_COLUMN_WIDTH; exports.DEFAULT_ROW_HEIGHT = _chunkU6NDQFOKcjs.DEFAULT_ROW_HEIGHT; exports.DELETION_MARK_NAME = _chunkTVRC4KVTcjs.DELETION_MARK_NAME; exports.DataSourceBinder = _chunkU6NDQFOKcjs.DataSourceBinder; exports.DependencyGraph = _chunkU6NDQFOKcjs.DependencyGraph; exports.DirtyTracker = DirtyTracker; exports.EditorController = EditorController; exports.FORMULA_ERRORS = _chunkJYRIOFENcjs.FORMULA_ERRORS; exports.FileImport = _chunk4QPLEUL2cjs.FileImport; exports.FileImportController = FileImportController; exports.FontSize = _chunk4QPLEUL2cjs.FontSize; exports.Footnote = _chunk4QPLEUL2cjs.Footnote; exports.FootnoteReference = _chunk4QPLEUL2cjs.FootnoteReference; exports.Footnotes = _chunk4QPLEUL2cjs.Footnotes; exports.FormulaEvaluator = _chunkJYRIOFENcjs.FormulaEvaluator; exports.FormulaParser = _chunkJYRIOFENcjs.FormulaParser; exports.GradientText = _chunk4QPLEUL2cjs.GradientText; exports.HistoryManager = _chunk2TWGLC5Kcjs.HistoryManager; exports.INSERTION_MARK_NAME = _chunkTVRC4KVTcjs.INSERTION_MARK_NAME; exports.INSTRUCTION_REGEX = _chunkAXV2ZW34cjs.INSTRUCTION_REGEX; exports.Image = _chunk4QPLEUL2cjs.Image; exports.ImportAdapterRegistry = _chunk4QPLEUL2cjs.ImportAdapterRegistry; exports.ImportError = _chunk4QPLEUL2cjs.ImportError; exports.LoadingNode = _chunk4QPLEUL2cjs.LoadingNode; exports.MARKDOWN_MENTION_SPLIT_REGEX = _chunkTVRC4KVTcjs.MARKDOWN_MENTION_SPLIT_REGEX; exports.MENTION_REGEX = _chunkTVRC4KVTcjs.MENTION_REGEX; exports.Markdown = _chunk4QPLEUL2cjs.Markdown; exports.Mention = _chunk4QPLEUL2cjs.Mention; exports.Outline = _chunk4QPLEUL2cjs.Outline; exports.PIXERATE_DOCUMENT_MIME = _chunkLA7PEGU3cjs.PIXERATE_DOCUMENT_MIME; exports.RichClipboard = _chunk4QPLEUL2cjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunk4QPLEUL2cjs.SMILIE_REPLACEMENTS; exports.SPREADSHEET_CLIPBOARD_MIME = _chunkU6NDQFOKcjs.SPREADSHEET_CLIPBOARD_MIME; exports.SPREADSHEET_IMPORT_ADAPTERS = _chunkU6NDQFOKcjs.SPREADSHEET_IMPORT_ADAPTERS; exports.SPREADSHEET_TABLE_ACTIONS = _chunkU6NDQFOKcjs.SPREADSHEET_TABLE_ACTIONS; exports.SlashCommands = _chunk4QPLEUL2cjs.SlashCommands; exports.SmilieReplacer = _chunk4QPLEUL2cjs.SmilieReplacer; exports.SpreadsheetController = _chunkU6NDQFOKcjs.SpreadsheetController; exports.TEMPLATE_DEPTH_ERROR = _chunk4SUNJZWBcjs.TEMPLATE_DEPTH_ERROR; exports.TEMPLATE_LOOP_ERROR = _chunk4SUNJZWBcjs.TEMPLATE_LOOP_ERROR; exports.TEMPLATE_REGEX = _chunkAXV2ZW34cjs.TEMPLATE_REGEX; exports.TRACK_CHANGES_SKIP_META = _chunkTVRC4KVTcjs.TRACK_CHANGES_SKIP_META; exports.TableOfContents = _chunk4QPLEUL2cjs.TableOfContents; exports.TemplateSuggestions = _chunk4QPLEUL2cjs.TemplateSuggestions; exports.TrackChanges = _chunkTVRC4KVTcjs.TrackChanges; exports.TrackChangesStore = _chunkTVRC4KVTcjs.TrackChangesStore; exports.TrackedDeletion = _chunkTVRC4KVTcjs.TrackedDeletion; exports.TrackedInsertion = _chunkTVRC4KVTcjs.TrackedInsertion; exports.VARIABLE_REGEX = _chunkAXV2ZW34cjs.VARIABLE_REGEX; exports.WHOLE_COLUMN_END_ROW = _chunkJYRIOFENcjs.WHOLE_COLUMN_END_ROW; exports.aggregateValues = _chunkU6NDQFOKcjs.aggregateValues; exports.applyFormulaSuggestion = _chunkU6NDQFOKcjs.applyFormulaSuggestion; exports.autocorrectPluginKey = _chunk4QPLEUL2cjs.autocorrectPluginKey; exports.bindSpreadsheetTableActions = _chunkU6NDQFOKcjs.bindSpreadsheetTableActions; exports.buildOutlineTree = _chunk4QPLEUL2cjs.buildOutlineTree; exports.buildSpreadsheetView = _chunkU6NDQFOKcjs.buildSpreadsheetView; exports.capitalizeSentenceRules = _chunk4QPLEUL2cjs.capitalizeSentenceRules; exports.checkFormulaArgumentCount = _chunkJYRIOFENcjs.checkFormulaArgumentCount; exports.colNameToIndex = _chunkJYRIOFENcjs.colNameToIndex; exports.columnDependencyKey = _chunkU6NDQFOKcjs.columnDependencyKey; exports.commentsPluginKey = _chunk4QPLEUL2cjs.commentsPluginKey; exports.compactVariableValues = _chunk4SUNJZWBcjs.compactVariableValues; exports.compareCellValues = _chunkU6NDQFOKcjs.compareCellValues; exports.computeFillTarget = _chunkU6NDQFOKcjs.computeFillTarget; exports.computeOutline = _chunk4QPLEUL2cjs.computeOutline; exports.computeRowGroups = _chunkU6NDQFOKcjs.computeRowGroups; exports.createCommentStore = _chunkTVRC4KVTcjs.createCommentStore; exports.createDirtyTracker = createDirtyTracker; exports.createEditor = createEditor; exports.createFileImportController = createFileImportController; exports.createHistoryManager = _chunk2TWGLC5Kcjs.createHistoryManager; exports.createImportAdapterRegistry = _chunk4QPLEUL2cjs.createImportAdapterRegistry; exports.createImportContext = _chunk4QPLEUL2cjs.createImportContext; exports.createMentionExtension = _chunk4QPLEUL2cjs.createMentionExtension; exports.createOutlineStore = _chunk4QPLEUL2cjs.createOutlineStore; exports.createReviewId = _chunkTVRC4KVTcjs.createReviewId; exports.createRichTextPreset = _chunk4QPLEUL2cjs.createRichTextPreset; exports.createSpreadsheetClipboardData = _chunkU6NDQFOKcjs.createSpreadsheetClipboardData; exports.crossReferencePluginKey = _chunk4QPLEUL2cjs.crossReferencePluginKey; exports.csvImportAdapter = _chunkU6NDQFOKcjs.csvImportAdapter; exports.defaultAutocorrectRules = _chunk4QPLEUL2cjs.defaultAutocorrectRules; exports.defaultImportRegistry = _chunk4QPLEUL2cjs.defaultImportRegistry; exports.defaultIsEqual = defaultIsEqual; exports.describeFormulaError = _chunkJYRIOFENcjs.describeFormulaError; exports.documentStructureCommandItems = _chunk4QPLEUL2cjs.documentStructureCommandItems; exports.escapeCsvField = _chunkU6NDQFOKcjs.escapeCsvField; exports.escapeHtml = _chunkTVRC4KVTcjs.escapeHtml; exports.escapeVariableText = _chunkAXV2ZW34cjs.escapeVariableText; exports.evaluateCondition = _chunkAXV2ZW34cjs.evaluateCondition; exports.evaluatePromptTokens = _chunk4SUNJZWBcjs.evaluatePromptTokens; exports.extractCellDependencies = _chunkU6NDQFOKcjs.extractCellDependencies; exports.extractInstructionNames = _chunk4SUNJZWBcjs.extractInstructionNames; exports.extractMentions = _chunkTVRC4KVTcjs.extractMentions; exports.extractMentionsFromDoc = _chunkTVRC4KVTcjs.extractMentionsFromDoc; exports.extractTemplateNames = _chunk4SUNJZWBcjs.extractTemplateNames; exports.extractVariableNames = _chunk4SUNJZWBcjs.extractVariableNames; exports.extractVariables = _chunk4SUNJZWBcjs.extractVariables; exports.fileImportPluginKey = _chunk4QPLEUL2cjs.fileImportPluginKey; exports.fillSeries = _chunkU6NDQFOKcjs.fillSeries; exports.findAutocorrection = _chunk4QPLEUL2cjs.findAutocorrection; exports.findCommentRanges = _chunk4QPLEUL2cjs.findCommentRanges; exports.findHexColors = _chunk4QPLEUL2cjs.findHexColors; exports.findImportAdapter = _chunk4QPLEUL2cjs.findImportAdapter; exports.footnotesMarkdownIt = _chunk4QPLEUL2cjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunk4QPLEUL2cjs.footnotesPluginKey; exports.formatReviewTime = _chunkTVRC4KVTcjs.formatReviewTime; exports.formatValueWithCode = _chunkJYRIOFENcjs.formatValueWithCode; exports.fractionRules = _chunk4QPLEUL2cjs.fractionRules; exports.getActiveHeading = _chunk4QPLEUL2cjs.getActiveHeading; exports.getBookmarks = _chunk4QPLEUL2cjs.getBookmarks; exports.getClipboardData = _chunkLA7PEGU3cjs.getClipboardData; exports.getCommentAnchors = _chunk4QPLEUL2cjs.getCommentAnchors; exports.getCommentAuthor = _chunk4QPLEUL2cjs.getCommentAuthor; exports.getCommentIdsAt = _chunk4QPLEUL2cjs.getCommentIdsAt; exports.getCommentStore = _chunk4QPLEUL2cjs.getCommentStore; exports.getCrossReferenceTargets = _chunk4QPLEUL2cjs.getCrossReferenceTargets; exports.getDocumentStructureCommandItems = _chunk4QPLEUL2cjs.getDocumentStructureCommandItems; exports.getEditorMarkdown = _chunkTVRC4KVTcjs.getEditorMarkdown; exports.getEditorText = _chunkTVRC4KVTcjs.getEditorText; exports.getFillDirection = _chunkU6NDQFOKcjs.getFillDirection; exports.getFootnotes = _chunk4QPLEUL2cjs.getFootnotes; exports.getFormulaArgumentSpecIndex = _chunkJYRIOFENcjs.getFormulaArgumentSpecIndex; exports.getFormulaCaretContext = _chunkU6NDQFOKcjs.getFormulaCaretContext; exports.getFormulaFunction = _chunkJYRIOFENcjs.getFormulaFunction; exports.getFormulaHints = _chunkU6NDQFOKcjs.getFormulaHints; exports.getFormulaSignature = _chunkJYRIOFENcjs.getFormulaSignature; exports.getFormulaSignatureParts = _chunkJYRIOFENcjs.getFormulaSignatureParts; exports.getImportAccept = _chunk4QPLEUL2cjs.getImportAccept; exports.getLatestVersion = _chunk4SUNJZWBcjs.getLatestVersion; exports.getOutline = _chunk4QPLEUL2cjs.getOutline; exports.getPromptDiagnostics = _chunk4SUNJZWBcjs.getPromptDiagnostics; exports.getRowSection = _chunkU6NDQFOKcjs.getRowSection; exports.getSchemaSignature = _chunkLA7PEGU3cjs.getSchemaSignature; exports.getSpreadsheetMenuItems = _chunkU6NDQFOKcjs.getSpreadsheetMenuItems; exports.getSuppliedValue = _chunkAXV2ZW34cjs.getSuppliedValue; exports.getTableOfContentsEntries = _chunk4QPLEUL2cjs.getTableOfContentsEntries; exports.getTableSections = _chunkU6NDQFOKcjs.getTableSections; exports.getTemplateBody = _chunk4SUNJZWBcjs.getTemplateBody; exports.getTrackChangesStore = _chunkTVRC4KVTcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunkTVRC4KVTcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunkTVRC4KVTcjs.getTrackedChanges; exports.getVariableFormFields = _chunk4SUNJZWBcjs.getVariableFormFields; exports.handleImageInsertion = _chunk4QPLEUL2cjs.handleImageInsertion; exports.htmlImportAdapter = _chunk4QPLEUL2cjs.htmlImportAdapter; exports.htmlToPlainText = _chunkTVRC4KVTcjs.htmlToPlainText; exports.htmlToSlice = _chunk4QPLEUL2cjs.htmlToSlice; exports.imagePastePluginKey = _chunk4QPLEUL2cjs.imagePastePluginKey; exports.importFile = _chunk4QPLEUL2cjs.importFile; exports.importFileIntoSpreadsheet = _chunkU6NDQFOKcjs.importFileIntoSpreadsheet; exports.importFilesIntoEditor = _chunk4QPLEUL2cjs.importFilesIntoEditor; exports.indexToColName = _chunkJYRIOFENcjs.indexToColName; exports.insertImageNode = _chunk4QPLEUL2cjs.insertImageNode; exports.insertImportedDocument = _chunk4QPLEUL2cjs.insertImportedDocument; exports.instructionRegex = _chunkAXV2ZW34cjs.instructionRegex; exports.isBlankValue = _chunkU6NDQFOKcjs.isBlankValue; exports.isFormulaError = _chunkJYRIOFENcjs.isFormulaError; exports.isInsidePromptToken = _chunk4QPLEUL2cjs.isInsidePromptToken; exports.isPromptValueSet = _chunkAXV2ZW34cjs.isPromptValueSet; exports.isSingleCellRange = _chunkU6NDQFOKcjs.isSingleCellRange; exports.isTrackChangesEnabled = _chunkTVRC4KVTcjs.isTrackChangesEnabled; exports.listFormulaFunctions = _chunkJYRIOFENcjs.listFormulaFunctions; exports.mapFormulaReferences = _chunkU6NDQFOKcjs.mapFormulaReferences; exports.mapRawOffsetToResolved = _chunk4SUNJZWBcjs.mapRawOffsetToResolved; exports.mapResolvedOffsetToRaw = _chunk4SUNJZWBcjs.mapResolvedOffsetToRaw; exports.markdownImportAdapter = _chunk4QPLEUL2cjs.markdownImportAdapter; exports.markdownToTipTapHtml = _chunkTVRC4KVTcjs.markdownToTipTapHtml; exports.matchConditionalTags = _chunkAXV2ZW34cjs.matchConditionalTags; exports.matchesFilterRule = _chunkU6NDQFOKcjs.matchesFilterRule; exports.navigateToHeading = _chunk4QPLEUL2cjs.navigateToHeading; exports.normalizeRange = _chunkU6NDQFOKcjs.normalizeRange; exports.offsetFormulaReferences = _chunkU6NDQFOKcjs.offsetFormulaReferences; exports.outlinePluginKey = _chunk4QPLEUL2cjs.outlinePluginKey; exports.parseCellReference = _chunkJYRIOFENcjs.parseCellReference; exports.parseCriteria = _chunkJYRIOFENcjs.parseCriteria; exports.parseCsv = _chunkU6NDQFOKcjs.parseCsv; exports.parseFormula = _chunkJYRIOFENcjs.parseFormula; exports.parseHtmlTable = _chunkU6NDQFOKcjs.parseHtmlTable; exports.parseMentionSegments = _chunkTVRC4KVTcjs.parseMentionSegments; exports.parseRange = _chunkJYRIOFENcjs.parseRange; exports.parseRichClipboardPayload = _chunkLA7PEGU3cjs.parseRichClipboardPayload; exports.parseTsv = _chunkU6NDQFOKcjs.parseTsv; exports.parseVariableBody = _chunkAXV2ZW34cjs.parseVariableBody; exports.pickImportFiles = pickImportFiles; exports.plainTextImportAdapter = _chunk4QPLEUL2cjs.plainTextImportAdapter; exports.plainTextToParagraphHtml = _chunkLA7PEGU3cjs.plainTextToParagraphHtml; exports.plainTextToSlice = _chunkTVRC4KVTcjs.plainTextToSlice; exports.plainTextToTipTapHtml = _chunkTVRC4KVTcjs.plainTextToTipTapHtml; exports.preprocessMarkdownFileLinks = _chunkTVRC4KVTcjs.preprocessMarkdownFileLinks; exports.preprocessMarkdownMentions = _chunkTVRC4KVTcjs.preprocessMarkdownMentions; exports.rangeContains = _chunkU6NDQFOKcjs.rangeContains; exports.rangeContainsRange = _chunkU6NDQFOKcjs.rangeContainsRange; exports.rangesIntersect = _chunkU6NDQFOKcjs.rangesIntersect; exports.readRichClipboard = _chunkLA7PEGU3cjs.readRichClipboard; exports.readSpreadsheetClipboard = _chunkU6NDQFOKcjs.readSpreadsheetClipboard; exports.rebaseClipboardRows = _chunkU6NDQFOKcjs.rebaseClipboardRows; exports.registerFormulaFunction = _chunkJYRIOFENcjs.registerFormulaFunction; exports.registerImportAdapter = _chunk4QPLEUL2cjs.registerImportAdapter; exports.registerSpreadsheetImportAdapters = _chunkU6NDQFOKcjs.registerSpreadsheetImportAdapters; exports.remapFormulaReferences = _chunkU6NDQFOKcjs.remapFormulaReferences; exports.removeImageNode = _chunk4QPLEUL2cjs.removeImageNode; exports.resolvePrompt = _chunk4SUNJZWBcjs.resolvePrompt; exports.resolveTemplates = _chunk4SUNJZWBcjs.resolveTemplates; exports.resolveTemplatesWithMapping = _chunk4SUNJZWBcjs.resolveTemplatesWithMapping; exports.resolveTrackedChanges = _chunkTVRC4KVTcjs.resolveTrackedChanges; exports.resolveVariables = _chunk4SUNJZWBcjs.resolveVariables; exports.richClipboardPluginKey = _chunk4QPLEUL2cjs.richClipboardPluginKey; exports.roundFloat = _chunkU6NDQFOKcjs.roundFloat; exports.rowPassesFilters = _chunkU6NDQFOKcjs.rowPassesFilters; exports.rtfImportAdapter = _chunk4QPLEUL2cjs.rtfImportAdapter; exports.rtfToPlainText = _chunkLA7PEGU3cjs.rtfToPlainText; exports.sanitizeHtml = _chunkTVRC4KVTcjs.sanitizeHtml; exports.sanitizeImportedHtml = _chunkLA7PEGU3cjs.sanitizeImportedHtml; exports.searchFormulaFunctions = _chunkJYRIOFENcjs.searchFormulaFunctions; exports.serializeCsv = _chunkU6NDQFOKcjs.serializeCsv; exports.serializeHtmlTable = _chunkU6NDQFOKcjs.serializeHtmlTable; exports.serializeRichClipboardPayload = _chunkLA7PEGU3cjs.serializeRichClipboardPayload; exports.serializeTsv = _chunkU6NDQFOKcjs.serializeTsv; exports.shiftFormulaReferences = _chunkU6NDQFOKcjs.shiftFormulaReferences; exports.smartQuoteRules = _chunk4QPLEUL2cjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunk4QPLEUL2cjs.smilieAutocorrectRules; exports.stripMarkdownCode = _chunkTVRC4KVTcjs.stripMarkdownCode; exports.symbolRules = _chunk4QPLEUL2cjs.symbolRules; exports.syncFootnotes = _chunk4QPLEUL2cjs.syncFootnotes; exports.tableOfContentsMarkdownIt = _chunk4QPLEUL2cjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunk4QPLEUL2cjs.tableOfContentsPluginKey; exports.templateRegex = _chunkAXV2ZW34cjs.templateRegex; exports.toNumber = _chunkU6NDQFOKcjs.toNumber; exports.tokenizeFormula = _chunkJYRIOFENcjs.tokenizeFormula; exports.tokenizePrompt = _chunk4SUNJZWBcjs.tokenizePrompt; exports.tokenizePromptWithDiagnostics = _chunk4SUNJZWBcjs.tokenizePromptWithDiagnostics; exports.trackChangesPluginKey = _chunkTVRC4KVTcjs.trackChangesPluginKey; exports.tsvImportAdapter = _chunkU6NDQFOKcjs.tsvImportAdapter; exports.twoInitialCapitalsRules = _chunk4QPLEUL2cjs.twoInitialCapitalsRules; exports.unescapeVariableText = _chunkAXV2ZW34cjs.unescapeVariableText; exports.unregisterFormulaFunction = _chunkJYRIOFENcjs.unregisterFormulaFunction; exports.unregisterImportAdapter = _chunk4QPLEUL2cjs.unregisterImportAdapter; exports.updateImageSrc = _chunk4QPLEUL2cjs.updateImageSrc; exports.variableRegex = _chunkAXV2ZW34cjs.variableRegex; exports.wildcardToRegExp = _chunkJYRIOFENcjs.wildcardToRegExp; exports.writeRichClipboard = _chunk4QPLEUL2cjs.writeRichClipboard;
|
|
377
814
|
//# sourceMappingURL=index.cjs.map
|