@pixerate/editor 0.25.0 → 0.26.1
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 +30 -0
- package/THIRD_PARTY_NOTICES.md +11 -0
- package/dist/agent/index.cjs +174 -11
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +18 -4
- package/dist/agent/index.d.ts +18 -4
- package/dist/agent/index.js +167 -4
- package/dist/agent/index.js.map +1 -1
- package/dist/{arrangeShortcuts-B8O3f8-P.d.cts → arrange-BICutYPk.d.cts} +243 -29
- package/dist/{arrangeShortcuts-sLlD2rSX.d.ts → arrange-BICutYPk.d.ts} +243 -29
- package/dist/builtins-CdPcLwwF.d.cts +176 -0
- package/dist/builtins-Chj6zv_O.d.ts +176 -0
- package/dist/canvas/index.cjs +3917 -19
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +1232 -7
- package/dist/canvas/index.d.ts +1232 -7
- package/dist/canvas/index.js +3916 -18
- package/dist/canvas/index.js.map +1 -1
- package/dist/chunk-3CC7OPUQ.cjs +831 -0
- package/dist/chunk-3CC7OPUQ.cjs.map +1 -0
- package/dist/{chunk-7WISYZFO.cjs → chunk-66IMF6OD.cjs} +174 -67
- package/dist/chunk-66IMF6OD.cjs.map +1 -0
- package/dist/{chunk-AL6JMGWW.cjs → chunk-CS6NZWWA.cjs} +24 -24
- package/dist/{chunk-AL6JMGWW.cjs.map → chunk-CS6NZWWA.cjs.map} +1 -1
- package/dist/{chunk-C7P22VIP.cjs → chunk-EWCOFSCQ.cjs} +17 -6
- package/dist/chunk-EWCOFSCQ.cjs.map +1 -0
- package/dist/chunk-HDYMLS3X.cjs +409 -0
- package/dist/chunk-HDYMLS3X.cjs.map +1 -0
- package/dist/{chunk-V3CHHWOE.cjs → chunk-HNDSPZ5T.cjs} +4 -4
- package/dist/{chunk-V3CHHWOE.cjs.map → chunk-HNDSPZ5T.cjs.map} +1 -1
- package/dist/{chunk-X4N4WUKB.cjs → chunk-IFHKKVXH.cjs} +150 -38
- package/dist/chunk-IFHKKVXH.cjs.map +1 -0
- package/dist/chunk-KRGXUQ2Y.js +1696 -0
- package/dist/chunk-KRGXUQ2Y.js.map +1 -0
- package/dist/{chunk-PO6A6QQH.cjs → chunk-LN2POBHT.cjs} +742 -970
- package/dist/chunk-LN2POBHT.cjs.map +1 -0
- package/dist/chunk-MR2764X2.js +831 -0
- package/dist/chunk-MR2764X2.js.map +1 -0
- package/dist/{chunk-WSQKHXW7.cjs → chunk-NQF32I6Z.cjs} +1209 -457
- package/dist/chunk-NQF32I6Z.cjs.map +1 -0
- package/dist/{chunk-NAXVVS5I.js → chunk-QJSOZFCZ.js} +2 -2
- package/dist/{chunk-UAKDG62Z.js → chunk-SWE3NPOU.js} +116 -4
- package/dist/chunk-SWE3NPOU.js.map +1 -0
- package/dist/chunk-TXXNBDQX.cjs +1696 -0
- package/dist/chunk-TXXNBDQX.cjs.map +1 -0
- package/dist/chunk-UBCFIABU.js +409 -0
- package/dist/chunk-UBCFIABU.js.map +1 -0
- package/dist/{chunk-ECCCYKGL.js → chunk-UKI64KUD.js} +147 -40
- package/dist/chunk-UKI64KUD.js.map +1 -0
- package/dist/{chunk-QGYDWPRM.js → chunk-WON34HKM.js} +2 -2
- package/dist/{chunk-RR7F5GUM.js → chunk-X7HXL2SB.js} +941 -189
- package/dist/chunk-X7HXL2SB.js.map +1 -0
- package/dist/{chunk-IXHSYOVY.js → chunk-XQFHLT53.js} +638 -866
- package/dist/chunk-XQFHLT53.js.map +1 -0
- package/dist/{chunk-FH6F67DN.js → chunk-ZRNHGAQT.js} +17 -6
- package/dist/{chunk-FH6F67DN.js.map → chunk-ZRNHGAQT.js.map} +1 -1
- package/dist/commands/index.cjs +352 -4
- package/dist/commands/index.cjs.map +1 -1
- package/dist/commands/index.d.cts +37 -108
- package/dist/commands/index.d.ts +37 -108
- package/dist/commands/index.js +351 -3
- package/dist/commands/index.js.map +1 -1
- package/dist/compare/index.cjs +3 -3
- package/dist/compare/index.js +2 -2
- package/dist/{controller-BIJiNoVs.d.cts → controller-CxXGOEmy.d.cts} +209 -13
- package/dist/{controller-BIJiNoVs.d.ts → controller-CxXGOEmy.d.ts} +209 -13
- package/dist/export/index.cjs +36 -0
- package/dist/export/index.cjs.map +1 -0
- package/dist/export/index.d.cts +243 -0
- package/dist/export/index.d.ts +243 -0
- package/dist/export/index.js +36 -0
- package/dist/export/index.js.map +1 -0
- package/dist/extensions/index.cjs +54 -6
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +7 -2
- package/dist/extensions/index.d.ts +7 -2
- package/dist/extensions/index.js +59 -11
- package/dist/{index-7a6bHTLy.d.ts → index-B273Zllk.d.ts} +211 -207
- package/dist/{index-Csd5qI8u.d.cts → index-jcJwmBYt.d.cts} +211 -207
- package/dist/index.cjs +146 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -14
- package/dist/index.d.ts +50 -14
- package/dist/index.js +138 -24
- package/dist/index.js.map +1 -1
- package/dist/registry-CED5C0lA.d.cts +204 -0
- package/dist/registry-CED5C0lA.d.ts +204 -0
- package/dist/{registry-D32LpIc4.d.cts → registry-D0GADKc7.d.cts} +1 -1
- package/dist/{registry-evKTP4ls.d.ts → registry-DhVUZioj.d.ts} +1 -1
- package/dist/serializers/index.cjs +6 -4
- package/dist/serializers/index.cjs.map +1 -1
- package/dist/serializers/index.d.cts +15 -4
- package/dist/serializers/index.d.ts +15 -4
- package/dist/serializers/index.js +5 -3
- package/dist/spreadsheet/index.cjs +33 -3
- package/dist/spreadsheet/index.cjs.map +1 -1
- package/dist/spreadsheet/index.d.cts +106 -3
- package/dist/spreadsheet/index.d.ts +106 -3
- package/dist/spreadsheet/index.js +32 -2
- package/package.json +10 -1
- package/dist/chunk-7WISYZFO.cjs.map +0 -1
- package/dist/chunk-C7P22VIP.cjs.map +0 -1
- package/dist/chunk-ECCCYKGL.js.map +0 -1
- package/dist/chunk-IXHSYOVY.js.map +0 -1
- package/dist/chunk-PO6A6QQH.cjs.map +0 -1
- package/dist/chunk-RR7F5GUM.js.map +0 -1
- package/dist/chunk-UAKDG62Z.js.map +0 -1
- package/dist/chunk-WSQKHXW7.cjs.map +0 -1
- package/dist/chunk-X4N4WUKB.cjs.map +0 -1
- package/dist/types-DX4Mh4SL.d.cts +0 -217
- package/dist/types-DX4Mh4SL.d.ts +0 -217
- /package/dist/{chunk-NAXVVS5I.js.map → chunk-QJSOZFCZ.js.map} +0 -0
- /package/dist/{chunk-QGYDWPRM.js.map → chunk-WON34HKM.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import "./chunk-HLIMTC6N.js";
|
|
2
|
+
import {
|
|
3
|
+
DOCX_ANONYMOUS_AUTHOR,
|
|
4
|
+
DOCX_EXPORT_MIME_TYPE,
|
|
5
|
+
DocxExportController,
|
|
6
|
+
XmlWriter,
|
|
7
|
+
createDocxExportController,
|
|
8
|
+
createDocxParts,
|
|
9
|
+
deflateRaw,
|
|
10
|
+
docxFileName,
|
|
11
|
+
downloadBlob,
|
|
12
|
+
escapeXmlAttr,
|
|
13
|
+
escapeXmlText,
|
|
14
|
+
exportDocx,
|
|
15
|
+
exportDocxBlob,
|
|
16
|
+
stripInvalidXmlChars,
|
|
17
|
+
writeZip
|
|
18
|
+
} from "./chunk-KRGXUQ2Y.js";
|
|
2
19
|
import {
|
|
3
20
|
FIELD_ALIASES,
|
|
4
21
|
MAX_DATA_SOURCE_FIELDS,
|
|
@@ -48,9 +65,6 @@ import {
|
|
|
48
65
|
CrossReference,
|
|
49
66
|
DEFAULT_AUTOCORRECT_EXCEPTIONS,
|
|
50
67
|
DEFAULT_DOCX_MAX_IMAGE_SIZE,
|
|
51
|
-
DEFAULT_STYLES,
|
|
52
|
-
DEFAULT_ZIP_MAX_ENTRIES,
|
|
53
|
-
DEFAULT_ZIP_MAX_TOTAL_SIZE,
|
|
54
68
|
DOCX_MIME_TYPES,
|
|
55
69
|
DocumentCompare,
|
|
56
70
|
EMPTY_FIND_REPLACE_SNAPSHOT,
|
|
@@ -71,7 +85,6 @@ import {
|
|
|
71
85
|
MAX_FIND_PATTERN_LENGTH,
|
|
72
86
|
Markdown,
|
|
73
87
|
Mention,
|
|
74
|
-
NORMAL_STYLE_ID,
|
|
75
88
|
Outline,
|
|
76
89
|
ParagraphStyles,
|
|
77
90
|
RichClipboard,
|
|
@@ -79,12 +92,10 @@ import {
|
|
|
79
92
|
STYLE_ID_ATTRIBUTE,
|
|
80
93
|
SlashCommands,
|
|
81
94
|
SmilieReplacer,
|
|
82
|
-
StyleRegistry,
|
|
83
95
|
TableOfContents,
|
|
84
96
|
TemplateSuggestions,
|
|
85
|
-
ZipArchive,
|
|
86
|
-
ZipError,
|
|
87
97
|
applyDocumentComparison,
|
|
98
|
+
applyImportedReviewData,
|
|
88
99
|
applyReplacements,
|
|
89
100
|
autocorrectPluginKey,
|
|
90
101
|
buildOutlineTree,
|
|
@@ -103,7 +114,7 @@ import {
|
|
|
103
114
|
createParagraphStylesStore,
|
|
104
115
|
createRichTextPreset,
|
|
105
116
|
createSearchBudget,
|
|
106
|
-
|
|
117
|
+
createTableCommands,
|
|
107
118
|
crossReferencePluginKey,
|
|
108
119
|
defaultAutocorrectRules,
|
|
109
120
|
defaultImportRegistry,
|
|
@@ -150,20 +161,16 @@ import {
|
|
|
150
161
|
insertImportedDocument,
|
|
151
162
|
isInsidePromptToken,
|
|
152
163
|
isParagraphStyleAvailable,
|
|
153
|
-
isUnsafeZipPath,
|
|
154
|
-
isValidStyleId,
|
|
155
164
|
markdownImportAdapter,
|
|
156
165
|
navigateToHeading,
|
|
157
166
|
outlinePluginKey,
|
|
158
167
|
paragraphStylesPluginKey,
|
|
159
168
|
parseReplacement,
|
|
160
169
|
plainTextImportAdapter,
|
|
161
|
-
readZip,
|
|
162
170
|
registerImportAdapter,
|
|
163
171
|
removeImageNode,
|
|
164
172
|
richClipboardPluginKey,
|
|
165
173
|
rtfImportAdapter,
|
|
166
|
-
safeCSSValue,
|
|
167
174
|
searchDocument,
|
|
168
175
|
setMentionRoleAt,
|
|
169
176
|
smartQuoteRules,
|
|
@@ -176,15 +183,29 @@ import {
|
|
|
176
183
|
unregisterImportAdapter,
|
|
177
184
|
updateImageSrc,
|
|
178
185
|
validateFindPattern,
|
|
179
|
-
writeRichClipboard
|
|
180
|
-
|
|
181
|
-
} from "./chunk-IXHSYOVY.js";
|
|
186
|
+
writeRichClipboard
|
|
187
|
+
} from "./chunk-XQFHLT53.js";
|
|
182
188
|
import {
|
|
183
189
|
compareDocuments,
|
|
184
190
|
compareHtml,
|
|
185
191
|
diffChanges,
|
|
186
192
|
diffSequences
|
|
187
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-QJSOZFCZ.js";
|
|
194
|
+
import {
|
|
195
|
+
DEFAULT_STYLES,
|
|
196
|
+
DEFAULT_ZIP_MAX_ENTRIES,
|
|
197
|
+
DEFAULT_ZIP_MAX_TOTAL_SIZE,
|
|
198
|
+
NORMAL_STYLE_ID,
|
|
199
|
+
StyleRegistry,
|
|
200
|
+
ZipArchive,
|
|
201
|
+
ZipError,
|
|
202
|
+
createStyleRegistry,
|
|
203
|
+
isUnsafeZipPath,
|
|
204
|
+
isValidStyleId,
|
|
205
|
+
readZip,
|
|
206
|
+
safeCSSValue,
|
|
207
|
+
zipCrc32
|
|
208
|
+
} from "./chunk-MR2764X2.js";
|
|
188
209
|
import {
|
|
189
210
|
INSTRUCTION_REGEX,
|
|
190
211
|
TEMPLATE_REGEX,
|
|
@@ -219,7 +240,7 @@ import {
|
|
|
219
240
|
rtfToPlainText,
|
|
220
241
|
sanitizeImportedHtml,
|
|
221
242
|
serializeRichClipboardPayload
|
|
222
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-WON34HKM.js";
|
|
223
244
|
import {
|
|
224
245
|
CONDITIONAL_FORMAT_ICON_SETS,
|
|
225
246
|
CONDITIONAL_FORMAT_PRESETS,
|
|
@@ -237,12 +258,19 @@ import {
|
|
|
237
258
|
DataSourceBinder,
|
|
238
259
|
DependencyGraph,
|
|
239
260
|
EMPTY_CONDITIONAL_FORMAT_OVERLAY,
|
|
261
|
+
IntervalIndex,
|
|
240
262
|
MAX_DEFINED_NAME_LENGTH,
|
|
241
263
|
MAX_SHEET_NAME_LENGTH,
|
|
242
264
|
NUMBER_FORMAT_PRESETS,
|
|
243
265
|
SPREADSHEET_CLIPBOARD_MIME,
|
|
266
|
+
SPREADSHEET_COLUMN_HEADER_HEIGHT,
|
|
267
|
+
SPREADSHEET_DEFAULT_VIEWPORT,
|
|
268
|
+
SPREADSHEET_GROUP_ROW_HEIGHT,
|
|
244
269
|
SPREADSHEET_IMPORT_ADAPTERS,
|
|
270
|
+
SPREADSHEET_ROW_HEADER_WIDTH,
|
|
245
271
|
SPREADSHEET_TABLE_ACTIONS,
|
|
272
|
+
SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD,
|
|
273
|
+
SPREADSHEET_VIRTUAL_ROW_THRESHOLD,
|
|
246
274
|
SpreadsheetController,
|
|
247
275
|
adjustRangeForStructuralChange,
|
|
248
276
|
adjustRangesForStructuralChange,
|
|
@@ -272,6 +300,7 @@ import {
|
|
|
272
300
|
evaluateConditionalFormats,
|
|
273
301
|
extractCellDependencies,
|
|
274
302
|
extractNameDependencies,
|
|
303
|
+
extractReferenceDependencies,
|
|
275
304
|
fillSeries,
|
|
276
305
|
findDataValidation,
|
|
277
306
|
findInvalidCells,
|
|
@@ -282,6 +311,7 @@ import {
|
|
|
282
311
|
formatSheetPrefix,
|
|
283
312
|
formatValueWithCode,
|
|
284
313
|
formulaIdentifiers,
|
|
314
|
+
fullSpreadsheetViewWindow,
|
|
285
315
|
getConditionalFormatCss,
|
|
286
316
|
getConditionalFormatIcon,
|
|
287
317
|
getDataBarCss,
|
|
@@ -292,6 +322,8 @@ import {
|
|
|
292
322
|
getRowSection,
|
|
293
323
|
getSheetTabMenuItems,
|
|
294
324
|
getSpreadsheetMenuItems,
|
|
325
|
+
getSpreadsheetScrollToCell,
|
|
326
|
+
getSpreadsheetViewWindow,
|
|
295
327
|
getTableSections,
|
|
296
328
|
getValidationListValues,
|
|
297
329
|
importFileIntoSpreadsheet,
|
|
@@ -302,6 +334,7 @@ import {
|
|
|
302
334
|
mapFormulaReferences,
|
|
303
335
|
matchesFilterRule,
|
|
304
336
|
matchesTimePeriod,
|
|
337
|
+
measureSpreadsheetView,
|
|
305
338
|
nextSheetName,
|
|
306
339
|
normalizeRange,
|
|
307
340
|
numberFormatForCellFormat,
|
|
@@ -311,6 +344,7 @@ import {
|
|
|
311
344
|
quoteSheetName,
|
|
312
345
|
rangeContains,
|
|
313
346
|
rangeContainsRange,
|
|
347
|
+
rangeDependencyKey,
|
|
314
348
|
rangesContain,
|
|
315
349
|
rangesIntersect,
|
|
316
350
|
readSpreadsheetClipboard,
|
|
@@ -324,11 +358,13 @@ import {
|
|
|
324
358
|
ruleAnchor,
|
|
325
359
|
ruleFormulaAt,
|
|
326
360
|
runSpreadsheetMenuItem,
|
|
361
|
+
sameSpreadsheetViewWindow,
|
|
327
362
|
serializeHtmlTable,
|
|
328
363
|
sheetDropIndex,
|
|
329
364
|
sheetNameNeedsQuotes,
|
|
330
365
|
shiftFormulaReferences,
|
|
331
366
|
shiftRuleFormula,
|
|
367
|
+
shouldVirtualizeSpreadsheet,
|
|
332
368
|
subtractRange,
|
|
333
369
|
subtractRangeFromRanges,
|
|
334
370
|
toNumber,
|
|
@@ -336,7 +372,7 @@ import {
|
|
|
336
372
|
validateCellInput,
|
|
337
373
|
validateDefinedName,
|
|
338
374
|
validateSheetName
|
|
339
|
-
} from "./chunk-
|
|
375
|
+
} from "./chunk-X7HXL2SB.js";
|
|
340
376
|
import {
|
|
341
377
|
escapeCsvField,
|
|
342
378
|
parseCsv,
|
|
@@ -353,6 +389,29 @@ import {
|
|
|
353
389
|
defaultIsEqual,
|
|
354
390
|
withoutDirty
|
|
355
391
|
} from "./chunk-2H7ZHPEJ.js";
|
|
392
|
+
import {
|
|
393
|
+
DEFAULT_TABLE_OPTIONS,
|
|
394
|
+
DEFAULT_TABLE_TOOLBAR,
|
|
395
|
+
EMPTY_TABLE_STATE,
|
|
396
|
+
MAX_TABLE_COLUMNS,
|
|
397
|
+
MAX_TABLE_ROWS,
|
|
398
|
+
TABLE_ACTIONS,
|
|
399
|
+
Table,
|
|
400
|
+
TableCell,
|
|
401
|
+
TableHeader,
|
|
402
|
+
TableRow,
|
|
403
|
+
createTableExtensions,
|
|
404
|
+
createTableStore,
|
|
405
|
+
getTableActionState,
|
|
406
|
+
getTableState,
|
|
407
|
+
isGfmTable,
|
|
408
|
+
isSelectionInTable,
|
|
409
|
+
isTableEnabled,
|
|
410
|
+
normalizeTableCellAlignment,
|
|
411
|
+
normalizeTableCellColor,
|
|
412
|
+
runTableAction,
|
|
413
|
+
shouldShowTableBubbleMenu
|
|
414
|
+
} from "./chunk-UBCFIABU.js";
|
|
356
415
|
import {
|
|
357
416
|
MARKDOWN_MENTION_SPLIT_REGEX,
|
|
358
417
|
escapeHtml,
|
|
@@ -368,8 +427,9 @@ import {
|
|
|
368
427
|
preprocessMarkdownFileLinks,
|
|
369
428
|
preprocessMarkdownMentions,
|
|
370
429
|
sanitizeHtml,
|
|
430
|
+
splitMarkdownMentionParts,
|
|
371
431
|
stripMarkdownCode
|
|
372
|
-
} from "./chunk-
|
|
432
|
+
} from "./chunk-UKI64KUD.js";
|
|
373
433
|
import {
|
|
374
434
|
MENTION_REGEX,
|
|
375
435
|
findTextMentions,
|
|
@@ -404,7 +464,7 @@ import {
|
|
|
404
464
|
resolveTrackedChanges,
|
|
405
465
|
trackChangesPluginKey,
|
|
406
466
|
trackedChangeLabel
|
|
407
|
-
} from "./chunk-
|
|
467
|
+
} from "./chunk-SWE3NPOU.js";
|
|
408
468
|
import {
|
|
409
469
|
FORMULA_ERRORS,
|
|
410
470
|
FormulaEvaluator,
|
|
@@ -450,7 +510,7 @@ import {
|
|
|
450
510
|
tokenizeFormula,
|
|
451
511
|
unregisterFormulaFunction,
|
|
452
512
|
wildcardToRegExp
|
|
453
|
-
} from "./chunk-
|
|
513
|
+
} from "./chunk-ZRNHGAQT.js";
|
|
454
514
|
|
|
455
515
|
// src/controller.ts
|
|
456
516
|
import { Editor } from "@tiptap/core";
|
|
@@ -709,7 +769,7 @@ function summarizeImportStructure(outcomes) {
|
|
|
709
769
|
|
|
710
770
|
// src/import/pdf-layout.ts
|
|
711
771
|
var MAX_COLS = 63;
|
|
712
|
-
var
|
|
772
|
+
var MAX_TABLE_ROWS2 = 2e3;
|
|
713
773
|
var MAX_RULES = 2e3;
|
|
714
774
|
var MAX_DEPTH = 4;
|
|
715
775
|
var BULLET_GLYPH_RE = /^[•◦▪▫●○■□‣⁃∙·➢►▶✓✔❖]\s*/;
|
|
@@ -1069,7 +1129,7 @@ function gridTable(inside, group, hys, vxsIn, x0, x1, top, bottom, page, dehyphe
|
|
|
1069
1129
|
if (rowsY[rowsY.length - 1] > bottom + 4) rowsY.push(bottom);
|
|
1070
1130
|
const cols = xs.length - 1;
|
|
1071
1131
|
const rows = rowsY.length - 1;
|
|
1072
|
-
if (cols < 2 || rows < 1 || cols > MAX_COLS || rows >
|
|
1132
|
+
if (cols < 2 || rows < 1 || cols > MAX_COLS || rows > MAX_TABLE_ROWS2) return null;
|
|
1073
1133
|
const grid = Array.from({ length: rows }, () => Array.from({ length: cols }, () => []));
|
|
1074
1134
|
const ascRows = [...rowsY].reverse();
|
|
1075
1135
|
for (const frag of inside) {
|
|
@@ -1156,7 +1216,7 @@ function alignedTable(frags, page, minRows, dehyphenate, stats, headerRuleY) {
|
|
|
1156
1216
|
rows.slice(0, first).forEach((row) => before.push(...row));
|
|
1157
1217
|
rows.slice(end).forEach((row) => leftover.push(...row));
|
|
1158
1218
|
rows = rows.slice(first, end);
|
|
1159
|
-
if (rows.length < minRows || rows.length >
|
|
1219
|
+
if (rows.length < minRows || rows.length > MAX_TABLE_ROWS2) return null;
|
|
1160
1220
|
const grid = [];
|
|
1161
1221
|
const spansGrid = [];
|
|
1162
1222
|
let prevRow = null;
|
|
@@ -2171,16 +2231,22 @@ export {
|
|
|
2171
2231
|
DEFAULT_DOCX_MAX_IMAGE_SIZE,
|
|
2172
2232
|
DEFAULT_ROW_HEIGHT,
|
|
2173
2233
|
DEFAULT_STYLES,
|
|
2234
|
+
DEFAULT_TABLE_OPTIONS,
|
|
2235
|
+
DEFAULT_TABLE_TOOLBAR,
|
|
2174
2236
|
DEFAULT_ZIP_MAX_ENTRIES,
|
|
2175
2237
|
DEFAULT_ZIP_MAX_TOTAL_SIZE,
|
|
2176
2238
|
DELETION_MARK_NAME,
|
|
2239
|
+
DOCX_ANONYMOUS_AUTHOR,
|
|
2240
|
+
DOCX_EXPORT_MIME_TYPE,
|
|
2177
2241
|
DOCX_MIME_TYPES,
|
|
2178
2242
|
DataSourceBinder,
|
|
2179
2243
|
DependencyGraph,
|
|
2180
2244
|
DirtyTracker,
|
|
2181
2245
|
DocumentCompare,
|
|
2246
|
+
DocxExportController,
|
|
2182
2247
|
EMPTY_CONDITIONAL_FORMAT_OVERLAY,
|
|
2183
2248
|
EMPTY_FIND_REPLACE_SNAPSHOT,
|
|
2249
|
+
EMPTY_TABLE_STATE,
|
|
2184
2250
|
EditorController,
|
|
2185
2251
|
FIELD_ALIASES,
|
|
2186
2252
|
FIND_OPTION_TOGGLES,
|
|
@@ -2205,6 +2271,7 @@ export {
|
|
|
2205
2271
|
Image,
|
|
2206
2272
|
ImportAdapterRegistry,
|
|
2207
2273
|
ImportError,
|
|
2274
|
+
IntervalIndex,
|
|
2208
2275
|
LoadingNode,
|
|
2209
2276
|
MARKDOWN_MENTION_SPLIT_REGEX,
|
|
2210
2277
|
MAX_DATA_SOURCE_FIELDS,
|
|
@@ -2217,6 +2284,8 @@ export {
|
|
|
2217
2284
|
MAX_MERGE_OUTPUTS,
|
|
2218
2285
|
MAX_NUMBER_FORMAT_CODE_CHARS,
|
|
2219
2286
|
MAX_SHEET_NAME_LENGTH,
|
|
2287
|
+
MAX_TABLE_COLUMNS,
|
|
2288
|
+
MAX_TABLE_ROWS,
|
|
2220
2289
|
MENTION_REGEX,
|
|
2221
2290
|
MOVE_FROM_CLASS,
|
|
2222
2291
|
MOVE_ID_ATTRIBUTE,
|
|
@@ -2232,18 +2301,29 @@ export {
|
|
|
2232
2301
|
RichClipboard,
|
|
2233
2302
|
SMILIE_REPLACEMENTS,
|
|
2234
2303
|
SPREADSHEET_CLIPBOARD_MIME,
|
|
2304
|
+
SPREADSHEET_COLUMN_HEADER_HEIGHT,
|
|
2305
|
+
SPREADSHEET_DEFAULT_VIEWPORT,
|
|
2306
|
+
SPREADSHEET_GROUP_ROW_HEIGHT,
|
|
2235
2307
|
SPREADSHEET_IMPORT_ADAPTERS,
|
|
2308
|
+
SPREADSHEET_ROW_HEADER_WIDTH,
|
|
2236
2309
|
SPREADSHEET_TABLE_ACTIONS,
|
|
2310
|
+
SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD,
|
|
2311
|
+
SPREADSHEET_VIRTUAL_ROW_THRESHOLD,
|
|
2237
2312
|
STYLE_ID_ATTRIBUTE,
|
|
2238
2313
|
SlashCommands,
|
|
2239
2314
|
SmilieReplacer,
|
|
2240
2315
|
SpreadsheetController,
|
|
2241
2316
|
StyleRegistry,
|
|
2317
|
+
TABLE_ACTIONS,
|
|
2242
2318
|
TEMPLATE_DEPTH_ERROR,
|
|
2243
2319
|
TEMPLATE_LOOP_ERROR,
|
|
2244
2320
|
TEMPLATE_REGEX,
|
|
2245
2321
|
TRACK_CHANGES_SKIP_META,
|
|
2322
|
+
Table,
|
|
2323
|
+
TableCell,
|
|
2324
|
+
TableHeader,
|
|
2246
2325
|
TableOfContents,
|
|
2326
|
+
TableRow,
|
|
2247
2327
|
TemplateSuggestions,
|
|
2248
2328
|
TrackChanges,
|
|
2249
2329
|
TrackChangesStore,
|
|
@@ -2252,6 +2332,7 @@ export {
|
|
|
2252
2332
|
TrackedInsertion,
|
|
2253
2333
|
VARIABLE_REGEX,
|
|
2254
2334
|
WHOLE_COLUMN_END_ROW,
|
|
2335
|
+
XmlWriter,
|
|
2255
2336
|
ZipArchive,
|
|
2256
2337
|
ZipError,
|
|
2257
2338
|
adjustRangeForStructuralChange,
|
|
@@ -2260,6 +2341,7 @@ export {
|
|
|
2260
2341
|
analyzePdfLayout,
|
|
2261
2342
|
applyDocumentComparison,
|
|
2262
2343
|
applyFormulaSuggestion,
|
|
2344
|
+
applyImportedReviewData,
|
|
2263
2345
|
applyReplacements,
|
|
2264
2346
|
autocorrectPluginKey,
|
|
2265
2347
|
bindDirtyToHistory,
|
|
@@ -2299,7 +2381,9 @@ export {
|
|
|
2299
2381
|
createCommentStore,
|
|
2300
2382
|
createConditionalFormatRule,
|
|
2301
2383
|
createDirtyTracker,
|
|
2384
|
+
createDocxExportController,
|
|
2302
2385
|
createDocxImportAdapter,
|
|
2386
|
+
createDocxParts,
|
|
2303
2387
|
createEditor,
|
|
2304
2388
|
createFileImportController,
|
|
2305
2389
|
createFindReplaceCommands,
|
|
@@ -2315,6 +2399,9 @@ export {
|
|
|
2315
2399
|
createSearchBudget,
|
|
2316
2400
|
createSpreadsheetClipboardData,
|
|
2317
2401
|
createStyleRegistry,
|
|
2402
|
+
createTableCommands,
|
|
2403
|
+
createTableExtensions,
|
|
2404
|
+
createTableStore,
|
|
2318
2405
|
createZipImportAdapter,
|
|
2319
2406
|
crossReferencePluginKey,
|
|
2320
2407
|
csvImportAdapter,
|
|
@@ -2323,6 +2410,7 @@ export {
|
|
|
2323
2410
|
defaultIconThresholds,
|
|
2324
2411
|
defaultImportRegistry,
|
|
2325
2412
|
defaultIsEqual,
|
|
2413
|
+
deflateRaw,
|
|
2326
2414
|
deleteSheetInFormula,
|
|
2327
2415
|
describeBlockChange,
|
|
2328
2416
|
describeConditionalFormat,
|
|
@@ -2334,21 +2422,28 @@ export {
|
|
|
2334
2422
|
diffChanges,
|
|
2335
2423
|
diffSequences,
|
|
2336
2424
|
documentStructureCommandItems,
|
|
2425
|
+
docxFileName,
|
|
2337
2426
|
docxImportAdapter,
|
|
2338
2427
|
docxToDocumentImport,
|
|
2428
|
+
downloadBlob,
|
|
2339
2429
|
escapeCsvField,
|
|
2340
2430
|
escapeHtml,
|
|
2341
2431
|
escapeVariableText,
|
|
2432
|
+
escapeXmlAttr,
|
|
2433
|
+
escapeXmlText,
|
|
2342
2434
|
evaluateCondition,
|
|
2343
2435
|
evaluateConditionExpression,
|
|
2344
2436
|
evaluateConditionalFormats,
|
|
2345
2437
|
evaluatePromptTokens,
|
|
2346
2438
|
expandReplacement,
|
|
2439
|
+
exportDocx,
|
|
2440
|
+
exportDocxBlob,
|
|
2347
2441
|
extractCellDependencies,
|
|
2348
2442
|
extractInstructionNames,
|
|
2349
2443
|
extractMentions,
|
|
2350
2444
|
extractMentionsFromDoc,
|
|
2351
2445
|
extractNameDependencies,
|
|
2446
|
+
extractReferenceDependencies,
|
|
2352
2447
|
extractTemplateNames,
|
|
2353
2448
|
extractVariableNames,
|
|
2354
2449
|
extractVariables,
|
|
@@ -2382,6 +2477,7 @@ export {
|
|
|
2382
2477
|
formatValueWithCode,
|
|
2383
2478
|
formulaIdentifiers,
|
|
2384
2479
|
fractionRules,
|
|
2480
|
+
fullSpreadsheetViewWindow,
|
|
2385
2481
|
getActiveHeading,
|
|
2386
2482
|
getBookmarks,
|
|
2387
2483
|
getClipboardData,
|
|
@@ -2417,10 +2513,14 @@ export {
|
|
|
2417
2513
|
getSchemaSignature,
|
|
2418
2514
|
getSheetTabMenuItems,
|
|
2419
2515
|
getSpreadsheetMenuItems,
|
|
2516
|
+
getSpreadsheetScrollToCell,
|
|
2517
|
+
getSpreadsheetViewWindow,
|
|
2420
2518
|
getStyleRegistry,
|
|
2421
2519
|
getSuppliedValue,
|
|
2520
|
+
getTableActionState,
|
|
2422
2521
|
getTableOfContentsEntries,
|
|
2423
2522
|
getTableSections,
|
|
2523
|
+
getTableState,
|
|
2424
2524
|
getTemplateBody,
|
|
2425
2525
|
getTrackChangesStore,
|
|
2426
2526
|
getTrackedChangeAt,
|
|
@@ -2443,12 +2543,15 @@ export {
|
|
|
2443
2543
|
isFormulaError,
|
|
2444
2544
|
isFormulaLambda,
|
|
2445
2545
|
isGeneralNumberFormat,
|
|
2546
|
+
isGfmTable,
|
|
2446
2547
|
isInsidePromptToken,
|
|
2447
2548
|
isLambdaDefinition,
|
|
2448
2549
|
isMoveSized,
|
|
2449
2550
|
isParagraphStyleAvailable,
|
|
2450
2551
|
isPromptValueSet,
|
|
2552
|
+
isSelectionInTable,
|
|
2451
2553
|
isSingleCellRange,
|
|
2554
|
+
isTableEnabled,
|
|
2452
2555
|
isTrackChangesEnabled,
|
|
2453
2556
|
isUnsafeZipPath,
|
|
2454
2557
|
isValidStyleId,
|
|
@@ -2462,12 +2565,15 @@ export {
|
|
|
2462
2565
|
matchFields,
|
|
2463
2566
|
matchesFilterRule,
|
|
2464
2567
|
matchesTimePeriod,
|
|
2568
|
+
measureSpreadsheetView,
|
|
2465
2569
|
mergeRecords,
|
|
2466
2570
|
navigateToHeading,
|
|
2467
2571
|
nextSheetName,
|
|
2468
2572
|
normalizeFieldKey,
|
|
2469
2573
|
normalizeFieldNames,
|
|
2470
2574
|
normalizeRange,
|
|
2575
|
+
normalizeTableCellAlignment,
|
|
2576
|
+
normalizeTableCellColor,
|
|
2471
2577
|
numberFormatColorToCss,
|
|
2472
2578
|
numberFormatForCellFormat,
|
|
2473
2579
|
numberToText,
|
|
@@ -2505,6 +2611,7 @@ export {
|
|
|
2505
2611
|
quoteSheetName,
|
|
2506
2612
|
rangeContains,
|
|
2507
2613
|
rangeContainsRange,
|
|
2614
|
+
rangeDependencyKey,
|
|
2508
2615
|
rangesContain,
|
|
2509
2616
|
rangesIntersect,
|
|
2510
2617
|
readRichClipboard,
|
|
@@ -2532,7 +2639,9 @@ export {
|
|
|
2532
2639
|
ruleAnchor,
|
|
2533
2640
|
ruleFormulaAt,
|
|
2534
2641
|
runSpreadsheetMenuItem,
|
|
2642
|
+
runTableAction,
|
|
2535
2643
|
safeCSSValue,
|
|
2644
|
+
sameSpreadsheetViewWindow,
|
|
2536
2645
|
sanitizeHtml,
|
|
2537
2646
|
sanitizeImportedHtml,
|
|
2538
2647
|
searchDocument,
|
|
@@ -2549,10 +2658,14 @@ export {
|
|
|
2549
2658
|
sheetNameNeedsQuotes,
|
|
2550
2659
|
shiftFormulaReferences,
|
|
2551
2660
|
shiftRuleFormula,
|
|
2661
|
+
shouldShowTableBubbleMenu,
|
|
2662
|
+
shouldVirtualizeSpreadsheet,
|
|
2552
2663
|
smartQuoteRules,
|
|
2553
2664
|
smilieAutocorrectRules,
|
|
2554
2665
|
sortCompareValues,
|
|
2555
2666
|
sortZipEntryNames,
|
|
2667
|
+
splitMarkdownMentionParts,
|
|
2668
|
+
stripInvalidXmlChars,
|
|
2556
2669
|
stripMarkdownCode,
|
|
2557
2670
|
subtractRange,
|
|
2558
2671
|
subtractRangeFromRanges,
|
|
@@ -2582,6 +2695,7 @@ export {
|
|
|
2582
2695
|
wildcardToRegExp,
|
|
2583
2696
|
withoutDirty,
|
|
2584
2697
|
writeRichClipboard,
|
|
2698
|
+
writeZip,
|
|
2585
2699
|
zipCrc32,
|
|
2586
2700
|
zipEntryTitle,
|
|
2587
2701
|
zipImportAdapter
|