@pixerate/editor 0.151.0 → 0.153.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.
Files changed (45) hide show
  1. package/dist/animation-editor/index.cjs +4 -4
  2. package/dist/animation-editor/index.js +4 -4
  3. package/dist/canvas/index.cjs +16 -13
  4. package/dist/canvas/index.js +4 -1
  5. package/dist/chart/index.cjs +3 -3
  6. package/dist/chart/index.js +3 -3
  7. package/dist/{chunk-VGJTUCWM.js → chunk-4J4MC3F5.js} +72 -5
  8. package/dist/{chunk-LFKLA7RC.js → chunk-BCY22GBH.js} +39 -1
  9. package/dist/{chunk-2ZO4RSDS.cjs → chunk-HVX35M2I.cjs} +39 -1
  10. package/dist/{chunk-QSM3MDDJ.cjs → chunk-XFDQEAOS.cjs} +92 -25
  11. package/dist/image-editor/index.cjs +3 -3
  12. package/dist/image-editor/index.js +3 -3
  13. package/dist/index.cjs +41 -2
  14. package/dist/index.d.cts +1 -0
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.js +40 -1
  17. package/dist/paint-editor/controller.d.cts +8 -2
  18. package/dist/paint-editor/controller.d.ts +8 -2
  19. package/dist/paint-editor/index.cjs +8 -4
  20. package/dist/paint-editor/index.js +8 -4
  21. package/dist/richTextDocument.d.cts +10 -0
  22. package/dist/richTextDocument.d.ts +10 -0
  23. package/dist/spreadsheet/controller.d.cts +17 -4
  24. package/dist/spreadsheet/controller.d.ts +17 -4
  25. package/dist/spreadsheet/editorDocument.d.cts +9 -0
  26. package/dist/spreadsheet/editorDocument.d.ts +9 -0
  27. package/dist/spreadsheet/index.cjs +7 -2
  28. package/dist/spreadsheet/index.d.cts +1 -0
  29. package/dist/spreadsheet/index.d.ts +1 -0
  30. package/dist/spreadsheet/index.js +6 -1
  31. package/dist/tokens/editorDocument.d.cts +10 -0
  32. package/dist/tokens/editorDocument.d.ts +10 -0
  33. package/dist/tokens/index.cjs +7 -2
  34. package/dist/tokens/index.d.cts +1 -0
  35. package/dist/tokens/index.d.ts +1 -0
  36. package/dist/tokens/index.js +6 -1
  37. package/dist/vector/index.cjs +4 -4
  38. package/dist/vector/index.js +4 -4
  39. package/dist/video-editor/index.cjs +4 -4
  40. package/dist/video-editor/index.js +4 -4
  41. package/package.json +1 -1
  42. package/skills/README.md +1 -0
  43. package/skills/pixerate-rich-text/SKILL.md +14 -0
  44. package/skills/pixerate-spreadsheet/SKILL.md +14 -0
  45. package/skills/pixerate-tokens/SKILL.md +56 -0
@@ -43,6 +43,9 @@ var _chunk55AKPTLMcjs = require('./chunk-55AKPTLM.cjs');
43
43
 
44
44
  var _chunkN3KJFGXTcjs = require('./chunk-N3KJFGXT.cjs');
45
45
 
46
+
47
+ var _chunk5H2C3QSFcjs = require('./chunk-5H2C3QSF.cjs');
48
+
46
49
  // src/spreadsheet/formula/dependency-graph.ts
47
50
  function extractNameDependencies(node) {
48
51
  const names = [];
@@ -2829,27 +2832,28 @@ var SpreadsheetController = (_class6 = class {
2829
2832
  __init31() {this.boundSheetId = null}
2830
2833
  __init32() {this.names = []}
2831
2834
 
2835
+ __init33() {this.changeListeners = /* @__PURE__ */ new Set()}
2832
2836
 
2833
2837
  // History stack for undo/redo
2834
- __init33() {this.undoStack = []}
2835
- __init34() {this.redoStack = []}
2836
- __init35() {this.isApplyingHistory = false}
2838
+ __init34() {this.undoStack = []}
2839
+ __init35() {this.redoStack = []}
2840
+ __init36() {this.isApplyingHistory = false}
2837
2841
 
2838
2842
  // Set while importing TSV: history and recalculation are done once at the end.
2839
- __init36() {this.batching = false}
2840
- __init37() {this.pendingCommits = []}
2843
+ __init37() {this.batching = false}
2844
+ __init38() {this.pendingCommits = []}
2841
2845
  // Row being evaluated, so [property] references resolve per row.
2842
- __init38() {this.evaluatingRowIndex = null}
2846
+ __init39() {this.evaluatingRowIndex = null}
2843
2847
  // Cell being evaluated, for implicit intersection (`=@A:A`).
2844
- __init39() {this.evaluatingCell = null}
2848
+ __init40() {this.evaluatingCell = null}
2845
2849
  // Dynamic arrays. Spilled values are derived state: they live in the sheet
2846
2850
  // runtimes, not in the documents, and every recalculation rebuilds them.
2847
2851
  // Cells (sheet-qualified keys) whose spill ownership changed during the current pass.
2848
- __init40() {this.spillChanges = null}
2849
- __init41() {this.recalcStats = { evaluated: 0, planned: 0, passes: 0 }}
2852
+ __init41() {this.spillChanges = null}
2853
+ __init42() {this.recalcStats = { evaluated: 0, planned: 0, passes: 0 }}
2850
2854
  // Values of large ranges read while running an evaluation plan (see runEvaluationPlan).
2851
- __init42() {this.astCache = /* @__PURE__ */ new Map()}
2852
- __init43() {this.rangeCache = null}
2855
+ __init43() {this.astCache = /* @__PURE__ */ new Map()}
2856
+ __init44() {this.rangeCache = null}
2853
2857
  /** The active sheet's document (the sheet the editor shows). */
2854
2858
  get document() {
2855
2859
  return this.ctx.doc;
@@ -2868,18 +2872,18 @@ var SpreadsheetController = (_class6 = class {
2868
2872
  }
2869
2873
  // Conditional formatting is evaluated lazily (getConditionalFormatOverlay).
2870
2874
  // Cell keys whose values changed since, or 'all' to evaluate from scratch.
2871
- __init44() {this.cfEngine = null}
2872
- __init45() {this.cfDirty = "all"}
2875
+ __init45() {this.cfEngine = null}
2876
+ __init46() {this.cfDirty = "all"}
2873
2877
  // Set while a single cell edit notifies, so the change stays incremental.
2874
- __init46() {this.cfIncremental = false}
2878
+ __init47() {this.cfIncremental = false}
2875
2879
  // Value being entered, seen by validation formulas instead of the cell's value.
2876
- __init47() {this.valueOverride = null}
2880
+ __init48() {this.valueOverride = null}
2877
2881
  // "Circle invalid data": on/off and the cached cells.
2878
- __init48() {this.circlesShown = false}
2879
- __init49() {this.invalidCircles = null}
2882
+ __init49() {this.circlesShown = false}
2883
+ __init50() {this.invalidCircles = null}
2880
2884
  /** Invalid input waiting for the user's answer (see `resolveValidationPrompt`). */
2881
- __init50() {this.validationPrompt = null}
2882
- constructor(options = {}) {;_class6.prototype.__init24.call(this);_class6.prototype.__init25.call(this);_class6.prototype.__init26.call(this);_class6.prototype.__init27.call(this);_class6.prototype.__init28.call(this);_class6.prototype.__init29.call(this);_class6.prototype.__init30.call(this);_class6.prototype.__init31.call(this);_class6.prototype.__init32.call(this);_class6.prototype.__init33.call(this);_class6.prototype.__init34.call(this);_class6.prototype.__init35.call(this);_class6.prototype.__init36.call(this);_class6.prototype.__init37.call(this);_class6.prototype.__init38.call(this);_class6.prototype.__init39.call(this);_class6.prototype.__init40.call(this);_class6.prototype.__init41.call(this);_class6.prototype.__init42.call(this);_class6.prototype.__init43.call(this);_class6.prototype.__init44.call(this);_class6.prototype.__init45.call(this);_class6.prototype.__init46.call(this);_class6.prototype.__init47.call(this);_class6.prototype.__init48.call(this);_class6.prototype.__init49.call(this);_class6.prototype.__init50.call(this);_class6.prototype.__init51.call(this);
2885
+ __init51() {this.validationPrompt = null}
2886
+ constructor(options = {}) {;_class6.prototype.__init24.call(this);_class6.prototype.__init25.call(this);_class6.prototype.__init26.call(this);_class6.prototype.__init27.call(this);_class6.prototype.__init28.call(this);_class6.prototype.__init29.call(this);_class6.prototype.__init30.call(this);_class6.prototype.__init31.call(this);_class6.prototype.__init32.call(this);_class6.prototype.__init33.call(this);_class6.prototype.__init34.call(this);_class6.prototype.__init35.call(this);_class6.prototype.__init36.call(this);_class6.prototype.__init37.call(this);_class6.prototype.__init38.call(this);_class6.prototype.__init39.call(this);_class6.prototype.__init40.call(this);_class6.prototype.__init41.call(this);_class6.prototype.__init42.call(this);_class6.prototype.__init43.call(this);_class6.prototype.__init44.call(this);_class6.prototype.__init45.call(this);_class6.prototype.__init46.call(this);_class6.prototype.__init47.call(this);_class6.prototype.__init48.call(this);_class6.prototype.__init49.call(this);_class6.prototype.__init50.call(this);_class6.prototype.__init51.call(this);_class6.prototype.__init52.call(this);
2883
2887
  const defaultCols = [
2884
2888
  { id: "col_a", key: "A", title: "A", width: 120, type: "freeform" },
2885
2889
  { id: "col_b", key: "B", title: "B", width: 120, type: "freeform" },
@@ -3069,15 +3073,21 @@ var SpreadsheetController = (_class6 = class {
3069
3073
  const snapshot = this.workbookSnapshot();
3070
3074
  return JSON.parse(JSON.stringify({ ...snapshot, sheets: snapshot.sheets.map(withoutNames) }));
3071
3075
  }
3072
- /** Replaces the whole workbook (sheets, names, active sheet). Clears undo history. */
3073
- loadWorkbook(workbook) {
3076
+ /**
3077
+ * Replaces the whole workbook (sheets, names, active sheet). Clears undo
3078
+ * history, or with `undoable: true` records the replacement as one undo step.
3079
+ */
3080
+ loadWorkbook(workbook, options = {}) {
3074
3081
  if (!workbook.sheets.length) return;
3082
+ if (options.undoable) this.recordWorkbookSnapshot();
3075
3083
  this.setWorkbookState(JSON.parse(JSON.stringify(workbook)), true);
3076
3084
  this.boundSheetId = this.runtimes[0].doc.id;
3077
3085
  this.editingCell = null;
3078
3086
  this.draftValue = "";
3079
- this.undoStack = [];
3080
- this.redoStack = [];
3087
+ if (!options.undoable) {
3088
+ this.undoStack = [];
3089
+ this.redoStack = [];
3090
+ }
3081
3091
  this.syncWithDataSource();
3082
3092
  for (const rt of this.runtimes) this.withSheet(rt, () => this.rederiveTypedValues());
3083
3093
  this.recalculateAll();
@@ -4375,7 +4385,7 @@ var SpreadsheetController = (_class6 = class {
4375
4385
  const { headerRows, footerRows } = getTableSections(this.document);
4376
4386
  return { start: headerRows, end: this.document.rows.length - footerRows - 1 };
4377
4387
  }
4378
- __init51() {this.getCellValueAt = (rowIndex, colIndex) => {
4388
+ __init52() {this.getCellValueAt = (rowIndex, colIndex) => {
4379
4389
  const row = this.document.rows[rowIndex];
4380
4390
  const col = this.document.columns[colIndex];
4381
4391
  if (!row || !col) return "";
@@ -5322,11 +5332,17 @@ var SpreadsheetController = (_class6 = class {
5322
5332
  getHistoryDepth() {
5323
5333
  return { undo: this.undoStack.length, redo: this.redoStack.length };
5324
5334
  }
5335
+ /** Returns `false` when there was nothing to undo. */
5325
5336
  undo() {
5337
+ if (!this.undoStack.length) return false;
5326
5338
  this.applyHistory(this.undoStack, this.redoStack);
5339
+ return true;
5327
5340
  }
5341
+ /** Returns `false` when there was nothing to redo. */
5328
5342
  redo() {
5343
+ if (!this.redoStack.length) return false;
5329
5344
  this.applyHistory(this.redoStack, this.undoStack);
5345
+ return true;
5330
5346
  }
5331
5347
  /** Restores the newest entry of `from`, saving the current state of the same scope on `to`. */
5332
5348
  applyHistory(from, to) {
@@ -5412,6 +5428,23 @@ var SpreadsheetController = (_class6 = class {
5412
5428
  const snapshot = this.workbookSnapshot();
5413
5429
  this.onWorkbookChange({ sheets: snapshot.sheets, activeSheetId: snapshot.activeSheetId, names: snapshot.names });
5414
5430
  }
5431
+ for (const listener of [...this.changeListeners]) {
5432
+ try {
5433
+ listener();
5434
+ } catch (error) {
5435
+ console.error("[SpreadsheetController] Error in change listener:", error);
5436
+ }
5437
+ }
5438
+ }
5439
+ /**
5440
+ * Calls `listener` after every change to the workbook's data (the moments
5441
+ * `onDocumentChange` fires; not selection). Returns an unsubscribe function.
5442
+ */
5443
+ subscribe(listener) {
5444
+ this.changeListeners.add(listener);
5445
+ return () => {
5446
+ this.changeListeners.delete(listener);
5447
+ };
5415
5448
  }
5416
5449
  // --- Conditional formatting and data validation ---
5417
5450
  /** The sheet as rule evaluation sees it. */
@@ -6393,6 +6426,40 @@ function sameSpreadsheetViewWindow(a, b) {
6393
6426
  return a.virtual === b.virtual && a.rowStart === b.rowStart && a.rowEnd === b.rowEnd && a.colStart === b.colStart && a.colEnd === b.colEnd && a.topSpace === b.topSpace && a.bottomSpace === b.bottomSpace && a.leftSpace === b.leftSpace && a.rightSpace === b.rightSpace;
6394
6427
  }
6395
6428
 
6429
+ // src/spreadsheet/editorDocument.ts
6430
+ var isRecord = (value) => !!value && typeof value === "object" && !Array.isArray(value);
6431
+ function checkWorkbook(document) {
6432
+ const hint = "A spreadsheet document is a workbook { sheets: [{ columns, rows, cells }], activeSheetId?, names? } as get_spreadsheet_document returns it.";
6433
+ if (!isRecord(document) || !Array.isArray(document.sheets) || document.sheets.length === 0) throw new Error(`sheets must be a non-empty array. ${hint}`);
6434
+ document.sheets.forEach((sheet, i) => {
6435
+ if (!isRecord(sheet)) throw new Error(`sheets[${i}] must be an object. ${hint}`);
6436
+ if (!Array.isArray(sheet.columns)) throw new Error(`sheets[${i}].columns must be an array. ${hint}`);
6437
+ if (!Array.isArray(sheet.rows)) throw new Error(`sheets[${i}].rows must be an array. ${hint}`);
6438
+ if (!isRecord(sheet.cells)) throw new Error(`sheets[${i}].cells must be an object of rows. ${hint}`);
6439
+ });
6440
+ if (document.names !== void 0 && !Array.isArray(document.names)) throw new Error(`names must be an array. ${hint}`);
6441
+ }
6442
+ function createSpreadsheetEditorDocument(controller) {
6443
+ return _chunk5H2C3QSFcjs.defineEditorDocument.call(void 0, {
6444
+ kind: "spreadsheet",
6445
+ get: () => controller.getWorkbook(),
6446
+ load: (document, { history }) => {
6447
+ checkWorkbook(document);
6448
+ controller.loadWorkbook(document, { undoable: history === "record" });
6449
+ },
6450
+ subscribe: (listener) => controller.subscribe(listener),
6451
+ history: {
6452
+ undo: () => controller.undo(),
6453
+ redo: () => controller.redo(),
6454
+ getState: () => {
6455
+ const depth = controller.getHistoryDepth();
6456
+ return { canUndo: depth.undo > 0, canRedo: depth.redo > 0 };
6457
+ }
6458
+ }
6459
+ });
6460
+ }
6461
+
6462
+
6396
6463
 
6397
6464
 
6398
6465
 
@@ -6520,4 +6587,4 @@ function sameSpreadsheetViewWindow(a, b) {
6520
6587
 
6521
6588
 
6522
6589
 
6523
- exports.extractNameDependencies = extractNameDependencies; exports.columnDependencyKey = columnDependencyKey; exports.extractCellDependencies = extractCellDependencies; exports.extractReferenceDependencies = extractReferenceDependencies; exports.rangeDependencyKey = rangeDependencyKey; exports.IntervalIndex = IntervalIndex; exports.DependencyGraph = DependencyGraph; exports.shiftFormulaReferences = shiftFormulaReferences; exports.mapFormulaReferences = mapFormulaReferences; exports.offsetFormulaReferences = offsetFormulaReferences; exports.remapFormulaReferences = remapFormulaReferences; exports.transposeFormulaReferences = transposeFormulaReferences; exports.sheetNameNeedsQuotes = sheetNameNeedsQuotes; exports.quoteSheetName = quoteSheetName; exports.formatSheetPrefix = formatSheetPrefix; exports.renameSheetInFormula = renameSheetInFormula; exports.deleteSheetInFormula = deleteSheetInFormula; exports.renameNameInFormula = renameNameInFormula; exports.formulaIdentifiers = formulaIdentifiers; exports.getFormulaCaretContext = getFormulaCaretContext; exports.getFormulaHints = getFormulaHints; exports.applyFormulaSuggestion = applyFormulaSuggestion; exports.NUMBER_FORMAT_PRESETS = NUMBER_FORMAT_PRESETS; exports.numberFormatForCellFormat = numberFormatForCellFormat; exports.cellFormatForNumberFormat = cellFormatForNumberFormat; exports.isGeneralNumberFormat = isGeneralNumberFormat; exports.formatCellForDisplay = formatCellForDisplay; exports.formatCellDisplay = formatCellDisplay; exports.formatValueWithCode = formatValueWithCode; exports.DataSourceBinder = DataSourceBinder; exports.MAX_SHEET_NAME_LENGTH = MAX_SHEET_NAME_LENGTH; exports.MAX_DEFINED_NAME_LENGTH = MAX_DEFINED_NAME_LENGTH; exports.validateSheetName = validateSheetName; exports.nextSheetName = nextSheetName; exports.copySheetName = copySheetName; exports.validateDefinedName = validateDefinedName; exports.isLambdaDefinition = isLambdaDefinition; exports.SPREADSHEET_CLIPBOARD_MIME = SPREADSHEET_CLIPBOARD_MIME; exports.serializeHtmlTable = serializeHtmlTable; exports.parseHtmlTable = parseHtmlTable; exports.createSpreadsheetClipboardData = createSpreadsheetClipboardData; exports.readSpreadsheetClipboard = readSpreadsheetClipboard; exports.rebaseClipboardRows = rebaseClipboardRows; exports.adjustRangeForStructuralChange = adjustRangeForStructuralChange; exports.adjustRangesForStructuralChange = adjustRangesForStructuralChange; exports.subtractRange = subtractRange; exports.subtractRangeFromRanges = subtractRangeFromRanges; exports.rangesContain = rangesContain; exports.ruleAnchor = ruleAnchor; exports.ruleFormulaAt = ruleFormulaAt; exports.shiftRuleFormula = shiftRuleFormula; exports.forEachRangeCell = forEachRangeCell; exports.formatRuleRanges = formatRuleRanges; exports.parseRuleRanges = parseRuleRanges; exports.mergeRuleRanges = mergeRuleRanges; exports.sortRuleRanges = sortRuleRanges; exports.transposeRuleRanges = transposeRuleRanges; exports.reanchorRuleFormula = reanchorRuleFormula; exports.transposeRuleFormula = transposeRuleFormula; exports.mapConditionalFormatFormulas = mapConditionalFormatFormulas; exports.mapDataValidationFormulas = mapDataValidationFormulas; exports.sortRules = sortRules; exports.transposeRules = transposeRules; exports.CONDITIONAL_FORMAT_ICON_SETS = CONDITIONAL_FORMAT_ICON_SETS; exports.conditionalFormatIconCount = conditionalFormatIconCount; exports.getConditionalFormatIcon = getConditionalFormatIcon; exports.conditionalFormatNumber = conditionalFormatNumber; exports.blendConditionalFormatColors = blendConditionalFormatColors; exports.defaultIconThresholds = defaultIconThresholds; exports.EMPTY_CONDITIONAL_FORMAT_OVERLAY = EMPTY_CONDITIONAL_FORMAT_OVERLAY; exports.ConditionalFormatEngine = ConditionalFormatEngine; exports.matchesTimePeriod = matchesTimePeriod; exports.evaluateConditionalFormats = evaluateConditionalFormats; exports.describeConditionalFormat = describeConditionalFormat; exports.describeDataValidation = describeDataValidation; exports.CONDITIONAL_FORMAT_STYLE_PRESETS = CONDITIONAL_FORMAT_STYLE_PRESETS; exports.DEFAULT_CONDITIONAL_FORMAT_STYLE = DEFAULT_CONDITIONAL_FORMAT_STYLE; exports.CONDITIONAL_FORMAT_PRESETS = CONDITIONAL_FORMAT_PRESETS; exports.CONDITIONAL_FORMAT_TIME_PERIODS = CONDITIONAL_FORMAT_TIME_PERIODS; exports.createConditionalFormatRule = createConditionalFormatRule; exports.DATA_VALIDATION_TYPE_OPTIONS = DATA_VALIDATION_TYPE_OPTIONS; exports.DATA_VALIDATION_OPERATOR_OPTIONS = DATA_VALIDATION_OPERATOR_OPTIONS; exports.DATA_VALIDATION_ERROR_STYLE_OPTIONS = DATA_VALIDATION_ERROR_STYLE_OPTIONS; exports.conditionalFormatContrastColor = conditionalFormatContrastColor; exports.getConditionalFormatCss = getConditionalFormatCss; exports.getDataBarCss = getDataBarCss; exports.conditionalFormatStyleString = conditionalFormatStyleString; exports.DEFAULT_DATA_VALIDATION_MESSAGE = DEFAULT_DATA_VALIDATION_MESSAGE; exports.DEFAULT_DATA_VALIDATION_TITLE = DEFAULT_DATA_VALIDATION_TITLE; exports.findDataValidation = findDataValidation; exports.getValidationListValues = getValidationListValues; exports.validateCellInput = validateCellInput; exports.findInvalidCells = findInvalidCells; exports.DEFAULT_ROW_HEIGHT = DEFAULT_ROW_HEIGHT; exports.DEFAULT_COLUMN_WIDTH = DEFAULT_COLUMN_WIDTH; exports.getTableSections = getTableSections; exports.getRowSection = getRowSection; exports.rowPassesFilters = rowPassesFilters; exports.computeRowGroups = computeRowGroups; exports.buildSpreadsheetView = buildSpreadsheetView; exports.SpreadsheetController = SpreadsheetController; exports.runSpreadsheetMenuItem = runSpreadsheetMenuItem; exports.clampMenuPosition = clampMenuPosition; exports.getSpreadsheetMenuItems = getSpreadsheetMenuItems; exports.SPREADSHEET_TABLE_ACTIONS = SPREADSHEET_TABLE_ACTIONS; exports.bindSpreadsheetTableActions = bindSpreadsheetTableActions; exports.csvImportAdapter = csvImportAdapter; exports.tsvImportAdapter = tsvImportAdapter; exports.SPREADSHEET_IMPORT_ADAPTERS = SPREADSHEET_IMPORT_ADAPTERS; exports.registerSpreadsheetImportAdapters = registerSpreadsheetImportAdapters; exports.importFileIntoSpreadsheet = importFileIntoSpreadsheet; exports.getSheetTabMenuItems = getSheetTabMenuItems; exports.sheetDropIndex = sheetDropIndex; exports.getNameManagerRows = getNameManagerRows; exports.SPREADSHEET_COLUMN_HEADER_HEIGHT = SPREADSHEET_COLUMN_HEADER_HEIGHT; exports.SPREADSHEET_ROW_HEADER_WIDTH = SPREADSHEET_ROW_HEADER_WIDTH; exports.SPREADSHEET_GROUP_ROW_HEIGHT = SPREADSHEET_GROUP_ROW_HEIGHT; exports.SPREADSHEET_VIRTUAL_ROW_THRESHOLD = SPREADSHEET_VIRTUAL_ROW_THRESHOLD; exports.SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD = SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD; exports.SPREADSHEET_DEFAULT_VIEWPORT = SPREADSHEET_DEFAULT_VIEWPORT; exports.measureSpreadsheetView = measureSpreadsheetView; exports.shouldVirtualizeSpreadsheet = shouldVirtualizeSpreadsheet; exports.fullSpreadsheetViewWindow = fullSpreadsheetViewWindow; exports.getSpreadsheetViewWindow = getSpreadsheetViewWindow; exports.getSpreadsheetScrollToCell = getSpreadsheetScrollToCell; exports.sameSpreadsheetViewWindow = sameSpreadsheetViewWindow;
6590
+ exports.extractNameDependencies = extractNameDependencies; exports.columnDependencyKey = columnDependencyKey; exports.extractCellDependencies = extractCellDependencies; exports.extractReferenceDependencies = extractReferenceDependencies; exports.rangeDependencyKey = rangeDependencyKey; exports.IntervalIndex = IntervalIndex; exports.DependencyGraph = DependencyGraph; exports.shiftFormulaReferences = shiftFormulaReferences; exports.mapFormulaReferences = mapFormulaReferences; exports.offsetFormulaReferences = offsetFormulaReferences; exports.remapFormulaReferences = remapFormulaReferences; exports.transposeFormulaReferences = transposeFormulaReferences; exports.sheetNameNeedsQuotes = sheetNameNeedsQuotes; exports.quoteSheetName = quoteSheetName; exports.formatSheetPrefix = formatSheetPrefix; exports.renameSheetInFormula = renameSheetInFormula; exports.deleteSheetInFormula = deleteSheetInFormula; exports.renameNameInFormula = renameNameInFormula; exports.formulaIdentifiers = formulaIdentifiers; exports.getFormulaCaretContext = getFormulaCaretContext; exports.getFormulaHints = getFormulaHints; exports.applyFormulaSuggestion = applyFormulaSuggestion; exports.NUMBER_FORMAT_PRESETS = NUMBER_FORMAT_PRESETS; exports.numberFormatForCellFormat = numberFormatForCellFormat; exports.cellFormatForNumberFormat = cellFormatForNumberFormat; exports.isGeneralNumberFormat = isGeneralNumberFormat; exports.formatCellForDisplay = formatCellForDisplay; exports.formatCellDisplay = formatCellDisplay; exports.formatValueWithCode = formatValueWithCode; exports.DataSourceBinder = DataSourceBinder; exports.MAX_SHEET_NAME_LENGTH = MAX_SHEET_NAME_LENGTH; exports.MAX_DEFINED_NAME_LENGTH = MAX_DEFINED_NAME_LENGTH; exports.validateSheetName = validateSheetName; exports.nextSheetName = nextSheetName; exports.copySheetName = copySheetName; exports.validateDefinedName = validateDefinedName; exports.isLambdaDefinition = isLambdaDefinition; exports.SPREADSHEET_CLIPBOARD_MIME = SPREADSHEET_CLIPBOARD_MIME; exports.serializeHtmlTable = serializeHtmlTable; exports.parseHtmlTable = parseHtmlTable; exports.createSpreadsheetClipboardData = createSpreadsheetClipboardData; exports.readSpreadsheetClipboard = readSpreadsheetClipboard; exports.rebaseClipboardRows = rebaseClipboardRows; exports.adjustRangeForStructuralChange = adjustRangeForStructuralChange; exports.adjustRangesForStructuralChange = adjustRangesForStructuralChange; exports.subtractRange = subtractRange; exports.subtractRangeFromRanges = subtractRangeFromRanges; exports.rangesContain = rangesContain; exports.ruleAnchor = ruleAnchor; exports.ruleFormulaAt = ruleFormulaAt; exports.shiftRuleFormula = shiftRuleFormula; exports.forEachRangeCell = forEachRangeCell; exports.formatRuleRanges = formatRuleRanges; exports.parseRuleRanges = parseRuleRanges; exports.mergeRuleRanges = mergeRuleRanges; exports.sortRuleRanges = sortRuleRanges; exports.transposeRuleRanges = transposeRuleRanges; exports.reanchorRuleFormula = reanchorRuleFormula; exports.transposeRuleFormula = transposeRuleFormula; exports.mapConditionalFormatFormulas = mapConditionalFormatFormulas; exports.mapDataValidationFormulas = mapDataValidationFormulas; exports.sortRules = sortRules; exports.transposeRules = transposeRules; exports.CONDITIONAL_FORMAT_ICON_SETS = CONDITIONAL_FORMAT_ICON_SETS; exports.conditionalFormatIconCount = conditionalFormatIconCount; exports.getConditionalFormatIcon = getConditionalFormatIcon; exports.conditionalFormatNumber = conditionalFormatNumber; exports.blendConditionalFormatColors = blendConditionalFormatColors; exports.defaultIconThresholds = defaultIconThresholds; exports.EMPTY_CONDITIONAL_FORMAT_OVERLAY = EMPTY_CONDITIONAL_FORMAT_OVERLAY; exports.ConditionalFormatEngine = ConditionalFormatEngine; exports.matchesTimePeriod = matchesTimePeriod; exports.evaluateConditionalFormats = evaluateConditionalFormats; exports.describeConditionalFormat = describeConditionalFormat; exports.describeDataValidation = describeDataValidation; exports.CONDITIONAL_FORMAT_STYLE_PRESETS = CONDITIONAL_FORMAT_STYLE_PRESETS; exports.DEFAULT_CONDITIONAL_FORMAT_STYLE = DEFAULT_CONDITIONAL_FORMAT_STYLE; exports.CONDITIONAL_FORMAT_PRESETS = CONDITIONAL_FORMAT_PRESETS; exports.CONDITIONAL_FORMAT_TIME_PERIODS = CONDITIONAL_FORMAT_TIME_PERIODS; exports.createConditionalFormatRule = createConditionalFormatRule; exports.DATA_VALIDATION_TYPE_OPTIONS = DATA_VALIDATION_TYPE_OPTIONS; exports.DATA_VALIDATION_OPERATOR_OPTIONS = DATA_VALIDATION_OPERATOR_OPTIONS; exports.DATA_VALIDATION_ERROR_STYLE_OPTIONS = DATA_VALIDATION_ERROR_STYLE_OPTIONS; exports.conditionalFormatContrastColor = conditionalFormatContrastColor; exports.getConditionalFormatCss = getConditionalFormatCss; exports.getDataBarCss = getDataBarCss; exports.conditionalFormatStyleString = conditionalFormatStyleString; exports.DEFAULT_DATA_VALIDATION_MESSAGE = DEFAULT_DATA_VALIDATION_MESSAGE; exports.DEFAULT_DATA_VALIDATION_TITLE = DEFAULT_DATA_VALIDATION_TITLE; exports.findDataValidation = findDataValidation; exports.getValidationListValues = getValidationListValues; exports.validateCellInput = validateCellInput; exports.findInvalidCells = findInvalidCells; exports.DEFAULT_ROW_HEIGHT = DEFAULT_ROW_HEIGHT; exports.DEFAULT_COLUMN_WIDTH = DEFAULT_COLUMN_WIDTH; exports.getTableSections = getTableSections; exports.getRowSection = getRowSection; exports.rowPassesFilters = rowPassesFilters; exports.computeRowGroups = computeRowGroups; exports.buildSpreadsheetView = buildSpreadsheetView; exports.SpreadsheetController = SpreadsheetController; exports.runSpreadsheetMenuItem = runSpreadsheetMenuItem; exports.clampMenuPosition = clampMenuPosition; exports.getSpreadsheetMenuItems = getSpreadsheetMenuItems; exports.SPREADSHEET_TABLE_ACTIONS = SPREADSHEET_TABLE_ACTIONS; exports.bindSpreadsheetTableActions = bindSpreadsheetTableActions; exports.csvImportAdapter = csvImportAdapter; exports.tsvImportAdapter = tsvImportAdapter; exports.SPREADSHEET_IMPORT_ADAPTERS = SPREADSHEET_IMPORT_ADAPTERS; exports.registerSpreadsheetImportAdapters = registerSpreadsheetImportAdapters; exports.importFileIntoSpreadsheet = importFileIntoSpreadsheet; exports.getSheetTabMenuItems = getSheetTabMenuItems; exports.sheetDropIndex = sheetDropIndex; exports.getNameManagerRows = getNameManagerRows; exports.SPREADSHEET_COLUMN_HEADER_HEIGHT = SPREADSHEET_COLUMN_HEADER_HEIGHT; exports.SPREADSHEET_ROW_HEADER_WIDTH = SPREADSHEET_ROW_HEADER_WIDTH; exports.SPREADSHEET_GROUP_ROW_HEIGHT = SPREADSHEET_GROUP_ROW_HEIGHT; exports.SPREADSHEET_VIRTUAL_ROW_THRESHOLD = SPREADSHEET_VIRTUAL_ROW_THRESHOLD; exports.SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD = SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD; exports.SPREADSHEET_DEFAULT_VIEWPORT = SPREADSHEET_DEFAULT_VIEWPORT; exports.measureSpreadsheetView = measureSpreadsheetView; exports.shouldVirtualizeSpreadsheet = shouldVirtualizeSpreadsheet; exports.fullSpreadsheetViewWindow = fullSpreadsheetViewWindow; exports.getSpreadsheetViewWindow = getSpreadsheetViewWindow; exports.getSpreadsheetScrollToCell = getSpreadsheetScrollToCell; exports.sameSpreadsheetViewWindow = sameSpreadsheetViewWindow; exports.createSpreadsheetEditorDocument = createSpreadsheetEditorDocument;
@@ -625,9 +625,6 @@ var _chunkBROJYMWUcjs = require('../chunk-BROJYMWU.cjs');
625
625
  var _chunkRHXW4TA5cjs = require('../chunk-RHXW4TA5.cjs');
626
626
  require('../chunk-BXMIBMVG.cjs');
627
627
  require('../chunk-CVFAAZXE.cjs');
628
-
629
-
630
- var _chunkL5OWG2NAcjs = require('../chunk-L5OWG2NA.cjs');
631
628
  require('../chunk-GF2RBSDM.cjs');
632
629
  require('../chunk-NM3G4VQT.cjs');
633
630
 
@@ -835,6 +832,9 @@ var _chunkCWM3CUUXcjs = require('../chunk-CWM3CUUX.cjs');
835
832
  var _chunkXFM3OCHUcjs = require('../chunk-XFM3OCHU.cjs');
836
833
  require('../chunk-NIBFDFYW.cjs');
837
834
  require('../chunk-UWEQ55MY.cjs');
835
+
836
+
837
+ var _chunkL5OWG2NAcjs = require('../chunk-L5OWG2NA.cjs');
838
838
  require('../chunk-2BSBFBOA.cjs');
839
839
  require('../chunk-LEUZ4FRC.cjs');
840
840
  require('../chunk-A6QWKBJP.cjs');
@@ -625,9 +625,6 @@ import {
625
625
  } from "../chunk-FLOGD3QB.js";
626
626
  import "../chunk-ORDXMBD4.js";
627
627
  import "../chunk-M6DNZNVY.js";
628
- import {
629
- loadDocument
630
- } from "../chunk-WHKNYFM2.js";
631
628
  import "../chunk-WEIK3UYB.js";
632
629
  import "../chunk-PWBZH3FK.js";
633
630
  import {
@@ -835,6 +832,9 @@ import {
835
832
  } from "../chunk-QGHEDC7B.js";
836
833
  import "../chunk-SIFAIGB3.js";
837
834
  import "../chunk-VDGBHYC7.js";
835
+ import {
836
+ loadDocument
837
+ } from "../chunk-WHKNYFM2.js";
838
838
  import "../chunk-HF5QZS7Z.js";
839
839
  import "../chunk-KY3FYKP3.js";
840
840
  import "../chunk-2WPNAGHI.js";
package/dist/index.cjs CHANGED
@@ -443,7 +443,8 @@ var _chunk34RQAGWIcjs = require('./chunk-34RQAGWI.cjs');
443
443
 
444
444
 
445
445
 
446
- var _chunkQSM3MDDJcjs = require('./chunk-QSM3MDDJ.cjs');
446
+
447
+ var _chunkXFDQEAOScjs = require('./chunk-XFDQEAOS.cjs');
447
448
 
448
449
 
449
450
 
@@ -567,6 +568,10 @@ var _chunkALNIFK5Gcjs = require('./chunk-ALNIFK5G.cjs');
567
568
  var _chunkUWEQ55MYcjs = require('./chunk-UWEQ55MY.cjs');
568
569
 
569
570
 
571
+ var _chunk5H2C3QSFcjs = require('./chunk-5H2C3QSF.cjs');
572
+ require('./chunk-L5OWG2NA.cjs');
573
+
574
+
570
575
 
571
576
 
572
577
  var _chunk2BSBFBOAcjs = require('./chunk-2BSBFBOA.cjs');
@@ -2279,6 +2284,40 @@ function createZipImportAdapter(options = {}) {
2279
2284
  }
2280
2285
  var zipImportAdapter = createZipImportAdapter();
2281
2286
 
2287
+ // src/richTextDocument.ts
2288
+ var _state = require('@tiptap/pm/state');
2289
+ function createRichTextEditorDocument(editor) {
2290
+ const commands = () => editor.commands;
2291
+ const can = () => editor.can();
2292
+ return _chunk5H2C3QSFcjs.defineEditorDocument.call(void 0, {
2293
+ kind: "rich_text",
2294
+ get: () => editor.getJSON(),
2295
+ load: (document2, { history }) => {
2296
+ try {
2297
+ editor.schema.nodeFromJSON(document2).check();
2298
+ } catch (error) {
2299
+ throw new Error(`A rich text document is ProseMirror JSON ({ "type": "doc", "content": [...] }) as get_rich_text_document returns it: ${error instanceof Error ? error.message : String(error)}`);
2300
+ }
2301
+ editor.commands.setContent(document2, true);
2302
+ if (history === "reset") editor.view.updateState(_state.EditorState.create({ doc: editor.state.doc, plugins: editor.state.plugins }));
2303
+ },
2304
+ subscribe: (listener) => {
2305
+ editor.on("update", listener);
2306
+ return () => {
2307
+ editor.off("update", listener);
2308
+ };
2309
+ },
2310
+ history: {
2311
+ undo: () => _nullishCoalesce(_optionalChain([commands, 'call', _71 => _71(), 'access', _72 => _72.undo, 'optionalCall', _73 => _73()]), () => ( false)),
2312
+ redo: () => _nullishCoalesce(_optionalChain([commands, 'call', _74 => _74(), 'access', _75 => _75.redo, 'optionalCall', _76 => _76()]), () => ( false)),
2313
+ getState: () => ({ canUndo: _nullishCoalesce(_optionalChain([can, 'call', _77 => _77(), 'access', _78 => _78.undo, 'optionalCall', _79 => _79()]), () => ( false)), canRedo: _nullishCoalesce(_optionalChain([can, 'call', _80 => _80(), 'access', _81 => _81.redo, 'optionalCall', _82 => _82()]), () => ( false)) })
2314
+ },
2315
+ readOnly: () => editor.isEditable ? false : "The document is read-only."
2316
+ });
2317
+ }
2318
+
2319
+
2320
+
2282
2321
 
2283
2322
 
2284
2323
 
@@ -2823,4 +2862,4 @@ var zipImportAdapter = createZipImportAdapter();
2823
2862
 
2824
2863
 
2825
2864
 
2826
- exports.ALLOW_NESTED_TABLES_META = _chunkRZJCYJWOcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkRZJCYJWOcjs.AgentCaret; exports.Autocorrect = _chunkR3PECGTQcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.BUILT_IN_IMPORT_ADAPTERS = _chunkR3PECGTQcjs.BUILT_IN_IMPORT_ADAPTERS; exports.Bookmark = _chunkR3PECGTQcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkR3PECGTQcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkR3PECGTQcjs.COMMENT_MARK_NAME; exports.CONDITIONAL_FORMAT_ICON_SETS = _chunkQSM3MDDJcjs.CONDITIONAL_FORMAT_ICON_SETS; exports.CONDITIONAL_FORMAT_PRESETS = _chunkQSM3MDDJcjs.CONDITIONAL_FORMAT_PRESETS; exports.CONDITIONAL_FORMAT_STYLE_PRESETS = _chunkQSM3MDDJcjs.CONDITIONAL_FORMAT_STYLE_PRESETS; exports.CONDITIONAL_FORMAT_TIME_PERIODS = _chunkQSM3MDDJcjs.CONDITIONAL_FORMAT_TIME_PERIODS; exports.CharacterStyle = _chunkR3PECGTQcjs.CharacterStyle; exports.Chart = _chunkRZJCYJWOcjs.Chart; exports.ChartNodeView = _chunkRZJCYJWOcjs.ChartNodeView; exports.ColorHighlighter = _chunkR3PECGTQcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkR3PECGTQcjs.Comments; exports.ConditionalFormatEngine = _chunkQSM3MDDJcjs.ConditionalFormatEngine; exports.CrossReference = _chunkR3PECGTQcjs.CrossReference; exports.DATA_VALIDATION_ERROR_STYLE_OPTIONS = _chunkQSM3MDDJcjs.DATA_VALIDATION_ERROR_STYLE_OPTIONS; exports.DATA_VALIDATION_OPERATOR_OPTIONS = _chunkQSM3MDDJcjs.DATA_VALIDATION_OPERATOR_OPTIONS; exports.DATA_VALIDATION_TYPE_OPTIONS = _chunkQSM3MDDJcjs.DATA_VALIDATION_TYPE_OPTIONS; exports.DEFAULT_AGENT_CARET_COLOR = _chunkRZJCYJWOcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkRZJCYJWOcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkR3PECGTQcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_COLUMN_WIDTH = _chunkQSM3MDDJcjs.DEFAULT_COLUMN_WIDTH; exports.DEFAULT_CONDITIONAL_FORMAT_STYLE = _chunkQSM3MDDJcjs.DEFAULT_CONDITIONAL_FORMAT_STYLE; exports.DEFAULT_DATA_VALIDATION_MESSAGE = _chunkQSM3MDDJcjs.DEFAULT_DATA_VALIDATION_MESSAGE; exports.DEFAULT_DATA_VALIDATION_TITLE = _chunkQSM3MDDJcjs.DEFAULT_DATA_VALIDATION_TITLE; exports.DEFAULT_DOCX_MAX_IMAGE_SIZE = _chunkR3PECGTQcjs.DEFAULT_DOCX_MAX_IMAGE_SIZE; exports.DEFAULT_ROW_HEIGHT = _chunkQSM3MDDJcjs.DEFAULT_ROW_HEIGHT; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkRZJCYJWOcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkRZJCYJWOcjs.DEFAULT_TABLE_TOOLBAR; exports.DEFAULT_ZIP_MAX_ENTRIES = _chunkALNIFK5Gcjs.DEFAULT_ZIP_MAX_ENTRIES; exports.DEFAULT_ZIP_MAX_TOTAL_SIZE = _chunkALNIFK5Gcjs.DEFAULT_ZIP_MAX_TOTAL_SIZE; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DOCX_ANONYMOUS_AUTHOR = _chunk4YQKRHMIcjs.DOCX_ANONYMOUS_AUTHOR; exports.DOCX_EXPORT_MIME_TYPE = _chunk4YQKRHMIcjs.DOCX_EXPORT_MIME_TYPE; exports.DOCX_MIME_TYPES = _chunkR3PECGTQcjs.DOCX_MIME_TYPES; exports.DataSourceBinder = _chunkQSM3MDDJcjs.DataSourceBinder; exports.DependencyGraph = _chunkQSM3MDDJcjs.DependencyGraph; exports.DirtyTracker = _chunkWWMWFSXMcjs.DirtyTracker; exports.DocumentCompare = _chunkR3PECGTQcjs.DocumentCompare; exports.DocxExportController = _chunk4YQKRHMIcjs.DocxExportController; exports.EMPTY_CONDITIONAL_FORMAT_OVERLAY = _chunkQSM3MDDJcjs.EMPTY_CONDITIONAL_FORMAT_OVERLAY; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkR3PECGTQcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkRZJCYJWOcjs.EMPTY_TABLE_STATE; exports.EditorController = EditorController; exports.FIELD_ALIASES = _chunkWIC7TG73cjs.FIELD_ALIASES; exports.FIND_OPTION_TOGGLES = _chunkR3PECGTQcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkRZJCYJWOcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FORMULA_ERRORS = _chunk55AKPTLMcjs.FORMULA_ERRORS; exports.FileImport = _chunkR3PECGTQcjs.FileImport; exports.FileImportController = FileImportController; exports.FindReplace = _chunkR3PECGTQcjs.FindReplace; exports.FindReplaceStore = _chunkR3PECGTQcjs.FindReplaceStore; exports.FontSize = _chunkR3PECGTQcjs.FontSize; exports.Footnote = _chunkR3PECGTQcjs.Footnote; exports.FootnoteReference = _chunkR3PECGTQcjs.FootnoteReference; exports.Footnotes = _chunkR3PECGTQcjs.Footnotes; exports.FormulaEvaluator = _chunkQZFEX2N4cjs.FormulaEvaluator; exports.FormulaLambda = _chunkQZFEX2N4cjs.FormulaLambda; exports.FormulaParser = _chunkQZFEX2N4cjs.FormulaParser; exports.GradientText = _chunkR3PECGTQcjs.GradientText; exports.HistoryManager = _chunkFJ2MSI43cjs.HistoryManager; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.INSTRUCTION_REGEX = _chunkUWEQ55MYcjs.INSTRUCTION_REGEX; exports.Image = _chunkR3PECGTQcjs.Image; exports.ImportAdapterRegistry = _chunkR3PECGTQcjs.ImportAdapterRegistry; exports.ImportError = _chunkR3PECGTQcjs.ImportError; exports.IntervalIndex = _chunkQSM3MDDJcjs.IntervalIndex; exports.LoadingNode = _chunkR3PECGTQcjs.LoadingNode; exports.MARKDOWN_MENTION_SPLIT_REGEX = _chunkG43MNQ4Ccjs.MARKDOWN_MENTION_SPLIT_REGEX; exports.MAX_DATA_SOURCE_FIELDS = _chunkWIC7TG73cjs.MAX_DATA_SOURCE_FIELDS; exports.MAX_DATA_SOURCE_RECORDS = _chunkWIC7TG73cjs.MAX_DATA_SOURCE_RECORDS; exports.MAX_DEFINED_NAME_LENGTH = _chunkQSM3MDDJcjs.MAX_DEFINED_NAME_LENGTH; exports.MAX_FIND_PATTERN_LENGTH = _chunkRZJCYJWOcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_FORMULA_ARRAY_SIZE = _chunkQZFEX2N4cjs.MAX_FORMULA_ARRAY_SIZE; exports.MAX_LAMBDA_DEPTH = _chunkQZFEX2N4cjs.MAX_LAMBDA_DEPTH; exports.MAX_MERGE_LENGTH = _chunkWIC7TG73cjs.MAX_MERGE_LENGTH; exports.MAX_MERGE_OUTPUTS = _chunkWIC7TG73cjs.MAX_MERGE_OUTPUTS; exports.MAX_NUMBER_FORMAT_CODE_CHARS = _chunk55AKPTLMcjs.MAX_NUMBER_FORMAT_CODE_CHARS; exports.MAX_SHEET_NAME_LENGTH = _chunkQSM3MDDJcjs.MAX_SHEET_NAME_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkRZJCYJWOcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkRZJCYJWOcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkRZJCYJWOcjs.MAX_TABLE_ROWS; exports.MENTION_REGEX = _chunkJG5VGCKPcjs.MENTION_REGEX; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunkR3PECGTQcjs.Markdown; exports.Mention = _chunkR3PECGTQcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.NUMBER_FORMAT_PRESETS = _chunkQSM3MDDJcjs.NUMBER_FORMAT_PRESETS; exports.NumberFormat = _chunk55AKPTLMcjs.NumberFormat; exports.Outline = _chunkR3PECGTQcjs.Outline; exports.PIXERATE_DOCUMENT_MIME = _chunk3AJMR7EGcjs.PIXERATE_DOCUMENT_MIME; exports.ParagraphStyles = _chunkR3PECGTQcjs.ParagraphStyles; exports.RichClipboard = _chunkR3PECGTQcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkR3PECGTQcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkRZJCYJWOcjs.SPARKLINE_KINDS; exports.SPREADSHEET_CLIPBOARD_MIME = _chunkQSM3MDDJcjs.SPREADSHEET_CLIPBOARD_MIME; exports.SPREADSHEET_COLUMN_HEADER_HEIGHT = _chunkQSM3MDDJcjs.SPREADSHEET_COLUMN_HEADER_HEIGHT; exports.SPREADSHEET_DEFAULT_VIEWPORT = _chunkQSM3MDDJcjs.SPREADSHEET_DEFAULT_VIEWPORT; exports.SPREADSHEET_GROUP_ROW_HEIGHT = _chunkQSM3MDDJcjs.SPREADSHEET_GROUP_ROW_HEIGHT; exports.SPREADSHEET_IMPORT_ADAPTERS = _chunkQSM3MDDJcjs.SPREADSHEET_IMPORT_ADAPTERS; exports.SPREADSHEET_ROW_HEADER_WIDTH = _chunkQSM3MDDJcjs.SPREADSHEET_ROW_HEADER_WIDTH; exports.SPREADSHEET_TABLE_ACTIONS = _chunkQSM3MDDJcjs.SPREADSHEET_TABLE_ACTIONS; exports.SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD = _chunkQSM3MDDJcjs.SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD; exports.SPREADSHEET_VIRTUAL_ROW_THRESHOLD = _chunkQSM3MDDJcjs.SPREADSHEET_VIRTUAL_ROW_THRESHOLD; exports.STYLE_ID_ATTRIBUTE = _chunkR3PECGTQcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkR3PECGTQcjs.SlashCommands; exports.SmilieReplacer = _chunkR3PECGTQcjs.SmilieReplacer; exports.Sparkline = _chunkRZJCYJWOcjs.Sparkline; exports.SpreadsheetController = _chunkQSM3MDDJcjs.SpreadsheetController; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkRZJCYJWOcjs.TABLE_ACTIONS; exports.TEMPLATE_DEPTH_ERROR = _chunkNIBFDFYWcjs.TEMPLATE_DEPTH_ERROR; exports.TEMPLATE_LOOP_ERROR = _chunkNIBFDFYWcjs.TEMPLATE_LOOP_ERROR; exports.TEMPLATE_REGEX = _chunkUWEQ55MYcjs.TEMPLATE_REGEX; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkRZJCYJWOcjs.Table; exports.TableCell = _chunkRZJCYJWOcjs.TableCell; exports.TableHeader = _chunkRZJCYJWOcjs.TableHeader; exports.TableOfContents = _chunkR3PECGTQcjs.TableOfContents; exports.TableRow = _chunkRZJCYJWOcjs.TableRow; exports.TemplateSuggestions = _chunkR3PECGTQcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.UNSAFE_JSON_KEYS = _chunk2BSBFBOAcjs.UNSAFE_JSON_KEYS; exports.VARIABLE_REGEX = _chunkUWEQ55MYcjs.VARIABLE_REGEX; exports.WHOLE_COLUMN_END_ROW = _chunkQZFEX2N4cjs.WHOLE_COLUMN_END_ROW; exports.XmlWriter = _chunk4YQKRHMIcjs.XmlWriter; exports.ZipArchive = _chunkALNIFK5Gcjs.ZipArchive; exports.ZipError = _chunkALNIFK5Gcjs.ZipError; exports.adjustRangeForStructuralChange = _chunkQSM3MDDJcjs.adjustRangeForStructuralChange; exports.adjustRangesForStructuralChange = _chunkQSM3MDDJcjs.adjustRangesForStructuralChange; exports.agentCaretPluginKey = _chunkRZJCYJWOcjs.agentCaretPluginKey; exports.aggregateValues = _chunkQZFEX2N4cjs.aggregateValues; exports.analyzePdfLayout = analyzePdfLayout; exports.applyDocumentComparison = _chunkR3PECGTQcjs.applyDocumentComparison; exports.applyFormulaSuggestion = _chunkQSM3MDDJcjs.applyFormulaSuggestion; exports.applyImportedReviewData = _chunkR3PECGTQcjs.applyImportedReviewData; exports.applyReplacements = _chunkRZJCYJWOcjs.applyReplacements; exports.autocorrectPluginKey = _chunkR3PECGTQcjs.autocorrectPluginKey; exports.bindDirtyToHistory = _chunkWWMWFSXMcjs.bindDirtyToHistory; exports.bindSpreadsheetTableActions = _chunkQSM3MDDJcjs.bindSpreadsheetTableActions; exports.blendConditionalFormatColors = _chunkQSM3MDDJcjs.blendConditionalFormatColors; exports.buildOutlineTree = _chunkR3PECGTQcjs.buildOutlineTree; exports.buildSpreadsheetView = _chunkQSM3MDDJcjs.buildSpreadsheetView; exports.builtinNumberFormat = _chunk55AKPTLMcjs.builtinNumberFormat; exports.builtinNumberFormatId = _chunk55AKPTLMcjs.builtinNumberFormatId; exports.capitalizeSentenceRules = _chunkR3PECGTQcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkR3PECGTQcjs.captureSelectionFormat; exports.cellFormatForNumberFormat = _chunkQSM3MDDJcjs.cellFormatForNumberFormat; exports.chartPluginKey = _chunkRZJCYJWOcjs.chartPluginKey; exports.checkFormulaArgumentCount = _chunkQZFEX2N4cjs.checkFormulaArgumentCount; exports.clampMenuPosition = _chunkQSM3MDDJcjs.clampMenuPosition; exports.clearAgentCaret = _chunkRZJCYJWOcjs.clearAgentCaret; exports.clearNumberFormatCache = _chunk55AKPTLMcjs.clearNumberFormatCache; exports.colNameToIndex = _chunk55AKPTLMcjs.colNameToIndex; exports.columnDependencyKey = _chunkQSM3MDDJcjs.columnDependencyKey; exports.commentsPluginKey = _chunkR3PECGTQcjs.commentsPluginKey; exports.compactVariableValues = _chunkWIC7TG73cjs.compactVariableValues; exports.compareCellValues = _chunkQZFEX2N4cjs.compareCellValues; exports.compareConditionValues = _chunkUWEQ55MYcjs.compareConditionValues; exports.compareDocuments = _chunkHMGWFXECcjs.compareDocuments; exports.compareHtml = _chunkHMGWFXECcjs.compareHtml; exports.compareInEditor = _chunkR3PECGTQcjs.compareInEditor; exports.compareNumbers = _chunk55AKPTLMcjs.compareNumbers; exports.compareValues = _chunk55AKPTLMcjs.compareValues; exports.compileFindPattern = _chunkRZJCYJWOcjs.compileFindPattern; exports.computeFillTarget = _chunkQZFEX2N4cjs.computeFillTarget; exports.computeOutline = _chunkR3PECGTQcjs.computeOutline; exports.computeRowGroups = _chunkQSM3MDDJcjs.computeRowGroups; exports.conditionSubject = _chunkUWEQ55MYcjs.conditionSubject; exports.conditionalFormatContrastColor = _chunkQSM3MDDJcjs.conditionalFormatContrastColor; exports.conditionalFormatIconCount = _chunkQSM3MDDJcjs.conditionalFormatIconCount; exports.conditionalFormatNumber = _chunkQSM3MDDJcjs.conditionalFormatNumber; exports.conditionalFormatStyleString = _chunkQSM3MDDJcjs.conditionalFormatStyleString; exports.copySheetName = _chunkQSM3MDDJcjs.copySheetName; exports.createAgentCaretPlugin = _chunkRZJCYJWOcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkRZJCYJWOcjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createConditionalFormatRule = _chunkQSM3MDDJcjs.createConditionalFormatRule; exports.createDirtyTracker = _chunkWWMWFSXMcjs.createDirtyTracker; exports.createDocxExportController = _chunk4YQKRHMIcjs.createDocxExportController; exports.createDocxImportAdapter = _chunkR3PECGTQcjs.createDocxImportAdapter; exports.createDocxParts = _chunk4YQKRHMIcjs.createDocxParts; exports.createEditor = createEditor; exports.createFileImportController = createFileImportController; exports.createFindReplaceCommands = _chunkR3PECGTQcjs.createFindReplaceCommands; exports.createHistoryManager = _chunkFJ2MSI43cjs.createHistoryManager; exports.createImportAdapterRegistry = _chunkR3PECGTQcjs.createImportAdapterRegistry; exports.createImportContext = _chunkR3PECGTQcjs.createImportContext; exports.createMentionExtension = _chunkR3PECGTQcjs.createMentionExtension; exports.createOutlineStore = _chunkR3PECGTQcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkR3PECGTQcjs.createParagraphStylesStore; exports.createPdfImportAdapter = createPdfImportAdapter; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkR3PECGTQcjs.createRichTextPreset; exports.createSearchBudget = _chunkRZJCYJWOcjs.createSearchBudget; exports.createSpreadsheetClipboardData = _chunkQSM3MDDJcjs.createSpreadsheetClipboardData; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkR3PECGTQcjs.createTableCommands; exports.createTableExtensions = _chunkRZJCYJWOcjs.createTableExtensions; exports.createTableNestingPlugin = _chunkRZJCYJWOcjs.createTableNestingPlugin; exports.createTableStore = _chunkRZJCYJWOcjs.createTableStore; exports.createZipImportAdapter = createZipImportAdapter; exports.crossReferencePluginKey = _chunkR3PECGTQcjs.crossReferencePluginKey; exports.csvImportAdapter = _chunkQSM3MDDJcjs.csvImportAdapter; exports.dateValueToSerial = _chunk55AKPTLMcjs.dateValueToSerial; exports.defaultAutocorrectRules = _chunkR3PECGTQcjs.defaultAutocorrectRules; exports.defaultIconThresholds = _chunkQSM3MDDJcjs.defaultIconThresholds; exports.defaultImportRegistry = _chunkR3PECGTQcjs.defaultImportRegistry; exports.defaultIsEqual = _chunkWWMWFSXMcjs.defaultIsEqual; exports.deflateRaw = _chunkJLWLX52Lcjs.deflateRaw; exports.deleteSheetInFormula = _chunkQSM3MDDJcjs.deleteSheetInFormula; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeConditionalFormat = _chunkQSM3MDDJcjs.describeConditionalFormat; exports.describeConditionalTag = _chunkUWEQ55MYcjs.describeConditionalTag; exports.describeDataValidation = _chunkQSM3MDDJcjs.describeDataValidation; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.describeFormulaError = _chunkQZFEX2N4cjs.describeFormulaError; exports.detectDelimiter = _chunkWIC7TG73cjs.detectDelimiter; exports.diffChanges = _chunkHMGWFXECcjs.diffChanges; exports.diffSequences = _chunkHMGWFXECcjs.diffSequences; exports.documentStructureCommandItems = _chunkR3PECGTQcjs.documentStructureCommandItems; exports.docxFileName = _chunk4YQKRHMIcjs.docxFileName; exports.docxImportAdapter = _chunkR3PECGTQcjs.docxImportAdapter; exports.docxToDocumentImport = _chunkR3PECGTQcjs.docxToDocumentImport; exports.downloadBlob = _chunk4YQKRHMIcjs.downloadBlob; exports.ensureAgentCaret = _chunkRZJCYJWOcjs.ensureAgentCaret; exports.escapeCsvField = _chunkN3KJFGXTcjs.escapeCsvField; exports.escapeHtml = _chunkG43MNQ4Ccjs.escapeHtml; exports.escapeVariableText = _chunkUWEQ55MYcjs.escapeVariableText; exports.escapeXmlAttr = _chunk4YQKRHMIcjs.escapeXmlAttr; exports.escapeXmlText = _chunk4YQKRHMIcjs.escapeXmlText; exports.evaluateCondition = _chunkUWEQ55MYcjs.evaluateCondition; exports.evaluateConditionExpression = _chunkUWEQ55MYcjs.evaluateConditionExpression; exports.evaluateConditionalFormats = _chunkQSM3MDDJcjs.evaluateConditionalFormats; exports.evaluatePromptTokens = _chunkNIBFDFYWcjs.evaluatePromptTokens; exports.expandReplacement = _chunkRZJCYJWOcjs.expandReplacement; exports.exportDocx = _chunk4YQKRHMIcjs.exportDocx; exports.exportDocxBlob = _chunk4YQKRHMIcjs.exportDocxBlob; exports.extractCellDependencies = _chunkQSM3MDDJcjs.extractCellDependencies; exports.extractInstructionNames = _chunkWIC7TG73cjs.extractInstructionNames; exports.extractMentions = _chunkG43MNQ4Ccjs.extractMentions; exports.extractMentionsFromDoc = _chunkG43MNQ4Ccjs.extractMentionsFromDoc; exports.extractNameDependencies = _chunkQSM3MDDJcjs.extractNameDependencies; exports.extractReferenceDependencies = _chunkQSM3MDDJcjs.extractReferenceDependencies; exports.extractTemplateNames = _chunkWIC7TG73cjs.extractTemplateNames; exports.extractVariableNames = _chunkWIC7TG73cjs.extractVariableNames; exports.extractVariables = _chunkWIC7TG73cjs.extractVariables; exports.fileImportPluginKey = _chunkR3PECGTQcjs.fileImportPluginKey; exports.fillSeries = _chunkQZFEX2N4cjs.fillSeries; exports.findAllMatches = _chunkRZJCYJWOcjs.findAllMatches; exports.findAutocorrection = _chunkR3PECGTQcjs.findAutocorrection; exports.findCommentRanges = _chunkR3PECGTQcjs.findCommentRanges; exports.findDataValidation = _chunkQSM3MDDJcjs.findDataValidation; exports.findHexColors = _chunkR3PECGTQcjs.findHexColors; exports.findImportAdapter = _chunkR3PECGTQcjs.findImportAdapter; exports.findInvalidCells = _chunkQSM3MDDJcjs.findInvalidCells; exports.findReplacePluginKey = _chunkR3PECGTQcjs.findReplacePluginKey; exports.findTextMentions = _chunkJG5VGCKPcjs.findTextMentions; exports.foldCodePoint = _chunkRZJCYJWOcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkR3PECGTQcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkR3PECGTQcjs.footnotesPluginKey; exports.forEachRangeCell = _chunkQSM3MDDJcjs.forEachRangeCell; exports.formatCellDisplay = _chunkQSM3MDDJcjs.formatCellDisplay; exports.formatCellForDisplay = _chunkQSM3MDDJcjs.formatCellForDisplay; exports.formatComparisonOperand = _chunkUWEQ55MYcjs.formatComparisonOperand; exports.formatConditionalTag = _chunkUWEQ55MYcjs.formatConditionalTag; exports.formatFindStatus = _chunkR3PECGTQcjs.formatFindStatus; exports.formatGeneralFit = _chunk55AKPTLMcjs.formatGeneralFit; exports.formatMentionText = _chunkJG5VGCKPcjs.formatMentionText; exports.formatNumberFormatValue = _chunk55AKPTLMcjs.formatNumberFormatValue; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.formatRuleRanges = _chunkQSM3MDDJcjs.formatRuleRanges; exports.formatSheetPrefix = _chunkQSM3MDDJcjs.formatSheetPrefix; exports.formatTextFunction = _chunk55AKPTLMcjs.formatTextFunction; exports.formatValueWithCode = _chunkQSM3MDDJcjs.formatValueWithCode; exports.formulaIdentifiers = _chunkQSM3MDDJcjs.formulaIdentifiers; exports.fractionRules = _chunkR3PECGTQcjs.fractionRules; exports.fullSpreadsheetViewWindow = _chunkQSM3MDDJcjs.fullSpreadsheetViewWindow; exports.getActiveHeading = _chunkR3PECGTQcjs.getActiveHeading; exports.getAgentCarets = _chunkRZJCYJWOcjs.getAgentCarets; exports.getBookmarks = _chunkR3PECGTQcjs.getBookmarks; exports.getClipboardData = _chunk3AJMR7EGcjs.getClipboardData; exports.getCommentAnchors = _chunkR3PECGTQcjs.getCommentAnchors; exports.getCommentAuthor = _chunkR3PECGTQcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkR3PECGTQcjs.getCommentIdsAt; exports.getCommentStore = _chunkR3PECGTQcjs.getCommentStore; exports.getConditionalFormatCss = _chunkQSM3MDDJcjs.getConditionalFormatCss; exports.getConditionalFormatIcon = _chunkQSM3MDDJcjs.getConditionalFormatIcon; exports.getCrossReferenceTargets = _chunkR3PECGTQcjs.getCrossReferenceTargets; exports.getDataBarCss = _chunkQSM3MDDJcjs.getDataBarCss; exports.getDocumentCharts = _chunkRZJCYJWOcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkR3PECGTQcjs.getDocumentStructureCommandItems; exports.getEditorMarkdown = _chunkG43MNQ4Ccjs.getEditorMarkdown; exports.getEditorText = _chunkG43MNQ4Ccjs.getEditorText; exports.getFillDirection = _chunkQZFEX2N4cjs.getFillDirection; exports.getFindReplaceState = _chunkR3PECGTQcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkR3PECGTQcjs.getFindReplaceStore; exports.getFootnotes = _chunkR3PECGTQcjs.getFootnotes; exports.getFormulaArgumentSpecIndex = _chunkQZFEX2N4cjs.getFormulaArgumentSpecIndex; exports.getFormulaCaretContext = _chunkQSM3MDDJcjs.getFormulaCaretContext; exports.getFormulaFunction = _chunkQZFEX2N4cjs.getFormulaFunction; exports.getFormulaHints = _chunkQSM3MDDJcjs.getFormulaHints; exports.getFormulaSignature = _chunkQZFEX2N4cjs.getFormulaSignature; exports.getFormulaSignatureParts = _chunkQZFEX2N4cjs.getFormulaSignatureParts; exports.getImportAccept = _chunkR3PECGTQcjs.getImportAccept; exports.getLatestVersion = _chunkNIBFDFYWcjs.getLatestVersion; exports.getMentionNodes = _chunkR3PECGTQcjs.getMentionNodes; exports.getNameManagerRows = _chunkQSM3MDDJcjs.getNameManagerRows; exports.getOutline = _chunkR3PECGTQcjs.getOutline; exports.getParagraphStyleAt = _chunkR3PECGTQcjs.getParagraphStyleAt; exports.getPromptDiagnostics = _chunkNIBFDFYWcjs.getPromptDiagnostics; exports.getRowSection = _chunkQSM3MDDJcjs.getRowSection; exports.getSchemaSignature = _chunk3AJMR7EGcjs.getSchemaSignature; exports.getSheetTabMenuItems = _chunkQSM3MDDJcjs.getSheetTabMenuItems; exports.getSpreadsheetMenuItems = _chunkQSM3MDDJcjs.getSpreadsheetMenuItems; exports.getSpreadsheetScrollToCell = _chunkQSM3MDDJcjs.getSpreadsheetScrollToCell; exports.getSpreadsheetViewWindow = _chunkQSM3MDDJcjs.getSpreadsheetViewWindow; exports.getStyleRegistry = _chunkR3PECGTQcjs.getStyleRegistry; exports.getSuppliedValue = _chunkUWEQ55MYcjs.getSuppliedValue; exports.getTableActionState = _chunkRZJCYJWOcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkR3PECGTQcjs.getTableOfContentsEntries; exports.getTableSections = _chunkQSM3MDDJcjs.getTableSections; exports.getTableState = _chunkRZJCYJWOcjs.getTableState; exports.getTemplateBody = _chunkNIBFDFYWcjs.getTemplateBody; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.getValidationListValues = _chunkQSM3MDDJcjs.getValidationListValues; exports.getVariableFormFields = _chunkWIC7TG73cjs.getVariableFormFields; exports.handleImageInsertion = _chunkR3PECGTQcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkRZJCYJWOcjs.handleTablePasteWithoutNesting; exports.htmlImportAdapter = _chunkR3PECGTQcjs.htmlImportAdapter; exports.htmlToPlainText = _chunkG43MNQ4Ccjs.htmlToPlainText; exports.htmlToSlice = _chunkR3PECGTQcjs.htmlToSlice; exports.imagePastePluginKey = _chunkR3PECGTQcjs.imagePastePluginKey; exports.importFile = _chunkR3PECGTQcjs.importFile; exports.importFileIntoSpreadsheet = _chunkQSM3MDDJcjs.importFileIntoSpreadsheet; exports.importFilesIntoEditor = _chunkR3PECGTQcjs.importFilesIntoEditor; exports.indexToColName = _chunk55AKPTLMcjs.indexToColName; exports.insertImageNode = _chunkR3PECGTQcjs.insertImageNode; exports.insertImportedDocument = _chunkR3PECGTQcjs.insertImportedDocument; exports.insertSliceAfterTable = _chunkRZJCYJWOcjs.insertSliceAfterTable; exports.instructionRegex = _chunkUWEQ55MYcjs.instructionRegex; exports.isBlankValue = _chunkQZFEX2N4cjs.isBlankValue; exports.isChartEnabled = _chunkRZJCYJWOcjs.isChartEnabled; exports.isFormulaError = _chunk55AKPTLMcjs.isFormulaError; exports.isFormulaLambda = _chunkQZFEX2N4cjs.isFormulaLambda; exports.isGeneralNumberFormat = _chunkQSM3MDDJcjs.isGeneralNumberFormat; exports.isGfmTable = _chunkRZJCYJWOcjs.isGfmTable; exports.isInTableCell = _chunkRZJCYJWOcjs.isInTableCell; exports.isInsidePromptToken = _chunkR3PECGTQcjs.isInsidePromptToken; exports.isLambdaDefinition = _chunkQSM3MDDJcjs.isLambdaDefinition; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkR3PECGTQcjs.isParagraphStyleAvailable; exports.isPromptValueSet = _chunkUWEQ55MYcjs.isPromptValueSet; exports.isSelectionInTable = _chunkRZJCYJWOcjs.isSelectionInTable; exports.isSingleCellRange = _chunkQZFEX2N4cjs.isSingleCellRange; exports.isTableEnabled = _chunkRZJCYJWOcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isUnsafeJsonKey = _chunk2BSBFBOAcjs.isUnsafeJsonKey; exports.isUnsafeZipPath = _chunkALNIFK5Gcjs.isUnsafeZipPath; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.listFormulaFunctions = _chunkQZFEX2N4cjs.listFormulaFunctions; exports.mapConditionalFormatFormulas = _chunkQSM3MDDJcjs.mapConditionalFormatFormulas; exports.mapDataValidationFormulas = _chunkQSM3MDDJcjs.mapDataValidationFormulas; exports.mapFormulaReferences = _chunkQSM3MDDJcjs.mapFormulaReferences; exports.mapRawOffsetToResolved = _chunkWIC7TG73cjs.mapRawOffsetToResolved; exports.mapResolvedOffsetToRaw = _chunkWIC7TG73cjs.mapResolvedOffsetToRaw; exports.markAgentChanges = _chunkRZJCYJWOcjs.markAgentChanges; exports.markdownImportAdapter = _chunkR3PECGTQcjs.markdownImportAdapter; exports.markdownToTipTapHtml = _chunkG43MNQ4Ccjs.markdownToTipTapHtml; exports.matchConditionalTags = _chunkUWEQ55MYcjs.matchConditionalTags; exports.matchFields = _chunkWIC7TG73cjs.matchFields; exports.matchesFilterRule = _chunkQZFEX2N4cjs.matchesFilterRule; exports.matchesTimePeriod = _chunkQSM3MDDJcjs.matchesTimePeriod; exports.measureSpreadsheetView = _chunkQSM3MDDJcjs.measureSpreadsheetView; exports.mergeRecords = _chunkWIC7TG73cjs.mergeRecords; exports.mergeRuleRanges = _chunkQSM3MDDJcjs.mergeRuleRanges; exports.navigateToHeading = _chunkR3PECGTQcjs.navigateToHeading; exports.nextSheetName = _chunkQSM3MDDJcjs.nextSheetName; exports.normalizeFieldKey = _chunkWIC7TG73cjs.normalizeFieldKey; exports.normalizeFieldNames = _chunkWIC7TG73cjs.normalizeFieldNames; exports.normalizeRange = _chunkQZFEX2N4cjs.normalizeRange; exports.normalizeSparklineValues = _chunkRZJCYJWOcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkRZJCYJWOcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkRZJCYJWOcjs.normalizeTableCellColor; exports.numberFormatColorToCss = _chunk55AKPTLMcjs.numberFormatColorToCss; exports.numberFormatForCellFormat = _chunkQSM3MDDJcjs.numberFormatForCellFormat; exports.numberToText = _chunk55AKPTLMcjs.numberToText; exports.offsetFormulaReferences = _chunkQSM3MDDJcjs.offsetFormulaReferences; exports.outermostTableDepth = _chunkRZJCYJWOcjs.outermostTableDepth; exports.outlinePluginKey = _chunkR3PECGTQcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkR3PECGTQcjs.paragraphStylesPluginKey; exports.parseCellInput = _chunk55AKPTLMcjs.parseCellInput; exports.parseCellReference = _chunkQZFEX2N4cjs.parseCellReference; exports.parseComparison = _chunkUWEQ55MYcjs.parseComparison; exports.parseConditionExpression = _chunkUWEQ55MYcjs.parseConditionExpression; exports.parseCriteria = _chunkQZFEX2N4cjs.parseCriteria; exports.parseCsv = _chunkN3KJFGXTcjs.parseCsv; exports.parseDataSource = _chunkWIC7TG73cjs.parseDataSource; exports.parseFormula = _chunkQZFEX2N4cjs.parseFormula; exports.parseHtmlTable = _chunkQSM3MDDJcjs.parseHtmlTable; exports.parseMentionSegments = _chunkG43MNQ4Ccjs.parseMentionSegments; exports.parseNumberText = _chunk55AKPTLMcjs.parseNumberText; exports.parseRange = _chunkQZFEX2N4cjs.parseRange; exports.parseReplacement = _chunkRZJCYJWOcjs.parseReplacement; exports.parseRichClipboardPayload = _chunk3AJMR7EGcjs.parseRichClipboardPayload; exports.parseRuleRanges = _chunkQSM3MDDJcjs.parseRuleRanges; exports.parseSpreadsheetPlaybackRef = _chunkQZFEX2N4cjs.parseSpreadsheetPlaybackRef; exports.parseTsv = _chunkN3KJFGXTcjs.parseTsv; exports.parseVariableBody = _chunkUWEQ55MYcjs.parseVariableBody; exports.pdfLayoutBlocksToHtml = pdfLayoutBlocksToHtml; exports.pdfOperatorListToRules = pdfOperatorListToRules; exports.pdfTextItemsToParagraphs = pdfTextItemsToParagraphs; exports.pdfTextItemsToRuns = pdfTextItemsToRuns; exports.pickImportFiles = pickImportFiles; exports.plainTextImportAdapter = _chunkR3PECGTQcjs.plainTextImportAdapter; exports.plainTextToParagraphHtml = _chunk3AJMR7EGcjs.plainTextToParagraphHtml; exports.plainTextToSlice = _chunkG43MNQ4Ccjs.plainTextToSlice; exports.plainTextToTipTapHtml = _chunkG43MNQ4Ccjs.plainTextToTipTapHtml; exports.planSpreadsheetToolPlayback = _chunkQZFEX2N4cjs.planSpreadsheetToolPlayback; exports.preprocessMarkdownFileLinks = _chunkG43MNQ4Ccjs.preprocessMarkdownFileLinks; exports.preprocessMarkdownMentions = _chunkG43MNQ4Ccjs.preprocessMarkdownMentions; exports.quoteSheetName = _chunkQSM3MDDJcjs.quoteSheetName; exports.rangeContains = _chunkQZFEX2N4cjs.rangeContains; exports.rangeContainsRange = _chunkQZFEX2N4cjs.rangeContainsRange; exports.rangeDependencyKey = _chunkQSM3MDDJcjs.rangeDependencyKey; exports.rangesContain = _chunkQSM3MDDJcjs.rangesContain; exports.rangesIntersect = _chunkQZFEX2N4cjs.rangesIntersect; exports.readRichClipboard = _chunk3AJMR7EGcjs.readRichClipboard; exports.readSpreadsheetClipboard = _chunkQSM3MDDJcjs.readSpreadsheetClipboard; exports.readZip = _chunkALNIFK5Gcjs.readZip; exports.reanchorRuleFormula = _chunkQSM3MDDJcjs.reanchorRuleFormula; exports.rebaseClipboardRows = _chunkQSM3MDDJcjs.rebaseClipboardRows; exports.recordToValues = _chunkWIC7TG73cjs.recordToValues; exports.registerFormulaFunction = _chunkQZFEX2N4cjs.registerFormulaFunction; exports.registerImportAdapter = _chunkR3PECGTQcjs.registerImportAdapter; exports.registerSpreadsheetImportAdapters = _chunkQSM3MDDJcjs.registerSpreadsheetImportAdapters; exports.remapFormulaReferences = _chunkQSM3MDDJcjs.remapFormulaReferences; exports.removeImageNode = _chunkR3PECGTQcjs.removeImageNode; exports.renameNameInFormula = _chunkQSM3MDDJcjs.renameNameInFormula; exports.renameSheetInFormula = _chunkQSM3MDDJcjs.renameSheetInFormula; exports.replaceWithTextTransaction = _chunkRZJCYJWOcjs.replaceWithTextTransaction; exports.resolvePrompt = _chunkNIBFDFYWcjs.resolvePrompt; exports.resolveTemplates = _chunkWIC7TG73cjs.resolveTemplates; exports.resolveTemplatesWithMapping = _chunkWIC7TG73cjs.resolveTemplatesWithMapping; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.resolveVariables = _chunkWIC7TG73cjs.resolveVariables; exports.richClipboardPluginKey = _chunkR3PECGTQcjs.richClipboardPluginKey; exports.roundFloat = _chunkQZFEX2N4cjs.roundFloat; exports.rowPassesFilters = _chunkQSM3MDDJcjs.rowPassesFilters; exports.rtfImportAdapter = _chunkR3PECGTQcjs.rtfImportAdapter; exports.rtfToPlainText = _chunk3AJMR7EGcjs.rtfToPlainText; exports.ruleAnchor = _chunkQSM3MDDJcjs.ruleAnchor; exports.ruleFormulaAt = _chunkQSM3MDDJcjs.ruleFormulaAt; exports.runSpreadsheetMenuItem = _chunkQSM3MDDJcjs.runSpreadsheetMenuItem; exports.runTableAction = _chunkRZJCYJWOcjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.sameSpreadsheetViewWindow = _chunkQSM3MDDJcjs.sameSpreadsheetViewWindow; exports.sanitizeHtml = _chunkG43MNQ4Ccjs.sanitizeHtml; exports.sanitizeImportedHtml = _chunk3AJMR7EGcjs.sanitizeImportedHtml; exports.searchDocument = _chunkRZJCYJWOcjs.searchDocument; exports.searchFormulaFunctions = _chunkQZFEX2N4cjs.searchFormulaFunctions; exports.serialFromYmd = _chunk55AKPTLMcjs.serialFromYmd; exports.serializeCsv = _chunkN3KJFGXTcjs.serializeCsv; exports.serializeHtmlTable = _chunkQSM3MDDJcjs.serializeHtmlTable; exports.serializeMergeOutputs = _chunkWIC7TG73cjs.serializeMergeOutputs; exports.serializeRichClipboardPayload = _chunk3AJMR7EGcjs.serializeRichClipboardPayload; exports.serializeTsv = _chunkN3KJFGXTcjs.serializeTsv; exports.setAgentCaret = _chunkRZJCYJWOcjs.setAgentCaret; exports.setMentionRoleAt = _chunkR3PECGTQcjs.setMentionRoleAt; exports.setMentionRoleInText = _chunkJG5VGCKPcjs.setMentionRoleInText; exports.sheetDropIndex = _chunkQSM3MDDJcjs.sheetDropIndex; exports.sheetNameNeedsQuotes = _chunkQSM3MDDJcjs.sheetNameNeedsQuotes; exports.shiftFormulaReferences = _chunkQSM3MDDJcjs.shiftFormulaReferences; exports.shiftRuleFormula = _chunkQSM3MDDJcjs.shiftRuleFormula; exports.shouldShowTableBubbleMenu = _chunkRZJCYJWOcjs.shouldShowTableBubbleMenu; exports.shouldVirtualizeSpreadsheet = _chunkQSM3MDDJcjs.shouldVirtualizeSpreadsheet; exports.sliceContainsTable = _chunkRZJCYJWOcjs.sliceContainsTable; exports.smartQuoteRules = _chunkR3PECGTQcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkR3PECGTQcjs.smilieAutocorrectRules; exports.sortCompareValues = _chunk55AKPTLMcjs.sortCompareValues; exports.sortRuleRanges = _chunkQSM3MDDJcjs.sortRuleRanges; exports.sortRules = _chunkQSM3MDDJcjs.sortRules; exports.sortZipEntryNames = sortZipEntryNames; exports.sparklineLabel = _chunkRZJCYJWOcjs.sparklineLabel; exports.splitMarkdownMentionParts = _chunkG43MNQ4Ccjs.splitMarkdownMentionParts; exports.staticChartSvg = _chunkRZJCYJWOcjs.staticChartSvg; exports.stripInvalidXmlChars = _chunk4YQKRHMIcjs.stripInvalidXmlChars; exports.stripMarkdownCode = _chunkG43MNQ4Ccjs.stripMarkdownCode; exports.stripPrototypeKeys = _chunk2BSBFBOAcjs.stripPrototypeKeys; exports.subtractRange = _chunkQSM3MDDJcjs.subtractRange; exports.subtractRangeFromRanges = _chunkQSM3MDDJcjs.subtractRangeFromRanges; exports.summarizeImportStructure = summarizeImportStructure; exports.symbolRules = _chunkR3PECGTQcjs.symbolRules; exports.syncFootnotes = _chunkR3PECGTQcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkRZJCYJWOcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkR3PECGTQcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkR3PECGTQcjs.tableOfContentsPluginKey; exports.templateRegex = _chunkUWEQ55MYcjs.templateRegex; exports.toNumber = _chunkQZFEX2N4cjs.toNumber; exports.tokenizeFormula = _chunkQZFEX2N4cjs.tokenizeFormula; exports.tokenizePrompt = _chunkNIBFDFYWcjs.tokenizePrompt; exports.tokenizePromptWithDiagnostics = _chunkNIBFDFYWcjs.tokenizePromptWithDiagnostics; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.transposeFormulaReferences = _chunkQSM3MDDJcjs.transposeFormulaReferences; exports.transposeRuleFormula = _chunkQSM3MDDJcjs.transposeRuleFormula; exports.transposeRuleRanges = _chunkQSM3MDDJcjs.transposeRuleRanges; exports.transposeRules = _chunkQSM3MDDJcjs.transposeRules; exports.tsvImportAdapter = _chunkQSM3MDDJcjs.tsvImportAdapter; exports.twoInitialCapitalsRules = _chunkR3PECGTQcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkRZJCYJWOcjs.typeAgentText; exports.unescapeVariableText = _chunkUWEQ55MYcjs.unescapeVariableText; exports.unnestTables = _chunkRZJCYJWOcjs.unnestTables; exports.unregisterFormulaFunction = _chunkQZFEX2N4cjs.unregisterFormulaFunction; exports.unregisterImportAdapter = _chunkR3PECGTQcjs.unregisterImportAdapter; exports.updateImageSrc = _chunkR3PECGTQcjs.updateImageSrc; exports.validateCellInput = _chunkQSM3MDDJcjs.validateCellInput; exports.validateDefinedName = _chunkQSM3MDDJcjs.validateDefinedName; exports.validateFindPattern = _chunkR3PECGTQcjs.validateFindPattern; exports.validateSheetName = _chunkQSM3MDDJcjs.validateSheetName; exports.variableRegex = _chunkUWEQ55MYcjs.variableRegex; exports.wildcardToRegExp = _chunkQZFEX2N4cjs.wildcardToRegExp; exports.withoutDirty = _chunkWWMWFSXMcjs.withoutDirty; exports.writeRichClipboard = _chunkR3PECGTQcjs.writeRichClipboard; exports.writeZip = _chunkJLWLX52Lcjs.writeZip; exports.zipCrc32 = _chunkALNIFK5Gcjs.zipCrc32; exports.zipEntryTitle = zipEntryTitle; exports.zipImportAdapter = zipImportAdapter;
2865
+ exports.ALLOW_NESTED_TABLES_META = _chunkRZJCYJWOcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkRZJCYJWOcjs.AgentCaret; exports.Autocorrect = _chunkR3PECGTQcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.BUILT_IN_IMPORT_ADAPTERS = _chunkR3PECGTQcjs.BUILT_IN_IMPORT_ADAPTERS; exports.Bookmark = _chunkR3PECGTQcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkR3PECGTQcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkR3PECGTQcjs.COMMENT_MARK_NAME; exports.CONDITIONAL_FORMAT_ICON_SETS = _chunkXFDQEAOScjs.CONDITIONAL_FORMAT_ICON_SETS; exports.CONDITIONAL_FORMAT_PRESETS = _chunkXFDQEAOScjs.CONDITIONAL_FORMAT_PRESETS; exports.CONDITIONAL_FORMAT_STYLE_PRESETS = _chunkXFDQEAOScjs.CONDITIONAL_FORMAT_STYLE_PRESETS; exports.CONDITIONAL_FORMAT_TIME_PERIODS = _chunkXFDQEAOScjs.CONDITIONAL_FORMAT_TIME_PERIODS; exports.CharacterStyle = _chunkR3PECGTQcjs.CharacterStyle; exports.Chart = _chunkRZJCYJWOcjs.Chart; exports.ChartNodeView = _chunkRZJCYJWOcjs.ChartNodeView; exports.ColorHighlighter = _chunkR3PECGTQcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkR3PECGTQcjs.Comments; exports.ConditionalFormatEngine = _chunkXFDQEAOScjs.ConditionalFormatEngine; exports.CrossReference = _chunkR3PECGTQcjs.CrossReference; exports.DATA_VALIDATION_ERROR_STYLE_OPTIONS = _chunkXFDQEAOScjs.DATA_VALIDATION_ERROR_STYLE_OPTIONS; exports.DATA_VALIDATION_OPERATOR_OPTIONS = _chunkXFDQEAOScjs.DATA_VALIDATION_OPERATOR_OPTIONS; exports.DATA_VALIDATION_TYPE_OPTIONS = _chunkXFDQEAOScjs.DATA_VALIDATION_TYPE_OPTIONS; exports.DEFAULT_AGENT_CARET_COLOR = _chunkRZJCYJWOcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkRZJCYJWOcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkR3PECGTQcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_COLUMN_WIDTH = _chunkXFDQEAOScjs.DEFAULT_COLUMN_WIDTH; exports.DEFAULT_CONDITIONAL_FORMAT_STYLE = _chunkXFDQEAOScjs.DEFAULT_CONDITIONAL_FORMAT_STYLE; exports.DEFAULT_DATA_VALIDATION_MESSAGE = _chunkXFDQEAOScjs.DEFAULT_DATA_VALIDATION_MESSAGE; exports.DEFAULT_DATA_VALIDATION_TITLE = _chunkXFDQEAOScjs.DEFAULT_DATA_VALIDATION_TITLE; exports.DEFAULT_DOCX_MAX_IMAGE_SIZE = _chunkR3PECGTQcjs.DEFAULT_DOCX_MAX_IMAGE_SIZE; exports.DEFAULT_ROW_HEIGHT = _chunkXFDQEAOScjs.DEFAULT_ROW_HEIGHT; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkRZJCYJWOcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkRZJCYJWOcjs.DEFAULT_TABLE_TOOLBAR; exports.DEFAULT_ZIP_MAX_ENTRIES = _chunkALNIFK5Gcjs.DEFAULT_ZIP_MAX_ENTRIES; exports.DEFAULT_ZIP_MAX_TOTAL_SIZE = _chunkALNIFK5Gcjs.DEFAULT_ZIP_MAX_TOTAL_SIZE; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DOCX_ANONYMOUS_AUTHOR = _chunk4YQKRHMIcjs.DOCX_ANONYMOUS_AUTHOR; exports.DOCX_EXPORT_MIME_TYPE = _chunk4YQKRHMIcjs.DOCX_EXPORT_MIME_TYPE; exports.DOCX_MIME_TYPES = _chunkR3PECGTQcjs.DOCX_MIME_TYPES; exports.DataSourceBinder = _chunkXFDQEAOScjs.DataSourceBinder; exports.DependencyGraph = _chunkXFDQEAOScjs.DependencyGraph; exports.DirtyTracker = _chunkWWMWFSXMcjs.DirtyTracker; exports.DocumentCompare = _chunkR3PECGTQcjs.DocumentCompare; exports.DocxExportController = _chunk4YQKRHMIcjs.DocxExportController; exports.EMPTY_CONDITIONAL_FORMAT_OVERLAY = _chunkXFDQEAOScjs.EMPTY_CONDITIONAL_FORMAT_OVERLAY; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkR3PECGTQcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkRZJCYJWOcjs.EMPTY_TABLE_STATE; exports.EditorController = EditorController; exports.FIELD_ALIASES = _chunkWIC7TG73cjs.FIELD_ALIASES; exports.FIND_OPTION_TOGGLES = _chunkR3PECGTQcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkRZJCYJWOcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FORMULA_ERRORS = _chunk55AKPTLMcjs.FORMULA_ERRORS; exports.FileImport = _chunkR3PECGTQcjs.FileImport; exports.FileImportController = FileImportController; exports.FindReplace = _chunkR3PECGTQcjs.FindReplace; exports.FindReplaceStore = _chunkR3PECGTQcjs.FindReplaceStore; exports.FontSize = _chunkR3PECGTQcjs.FontSize; exports.Footnote = _chunkR3PECGTQcjs.Footnote; exports.FootnoteReference = _chunkR3PECGTQcjs.FootnoteReference; exports.Footnotes = _chunkR3PECGTQcjs.Footnotes; exports.FormulaEvaluator = _chunkQZFEX2N4cjs.FormulaEvaluator; exports.FormulaLambda = _chunkQZFEX2N4cjs.FormulaLambda; exports.FormulaParser = _chunkQZFEX2N4cjs.FormulaParser; exports.GradientText = _chunkR3PECGTQcjs.GradientText; exports.HistoryManager = _chunkFJ2MSI43cjs.HistoryManager; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.INSTRUCTION_REGEX = _chunkUWEQ55MYcjs.INSTRUCTION_REGEX; exports.Image = _chunkR3PECGTQcjs.Image; exports.ImportAdapterRegistry = _chunkR3PECGTQcjs.ImportAdapterRegistry; exports.ImportError = _chunkR3PECGTQcjs.ImportError; exports.IntervalIndex = _chunkXFDQEAOScjs.IntervalIndex; exports.LoadingNode = _chunkR3PECGTQcjs.LoadingNode; exports.MARKDOWN_MENTION_SPLIT_REGEX = _chunkG43MNQ4Ccjs.MARKDOWN_MENTION_SPLIT_REGEX; exports.MAX_DATA_SOURCE_FIELDS = _chunkWIC7TG73cjs.MAX_DATA_SOURCE_FIELDS; exports.MAX_DATA_SOURCE_RECORDS = _chunkWIC7TG73cjs.MAX_DATA_SOURCE_RECORDS; exports.MAX_DEFINED_NAME_LENGTH = _chunkXFDQEAOScjs.MAX_DEFINED_NAME_LENGTH; exports.MAX_FIND_PATTERN_LENGTH = _chunkRZJCYJWOcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_FORMULA_ARRAY_SIZE = _chunkQZFEX2N4cjs.MAX_FORMULA_ARRAY_SIZE; exports.MAX_LAMBDA_DEPTH = _chunkQZFEX2N4cjs.MAX_LAMBDA_DEPTH; exports.MAX_MERGE_LENGTH = _chunkWIC7TG73cjs.MAX_MERGE_LENGTH; exports.MAX_MERGE_OUTPUTS = _chunkWIC7TG73cjs.MAX_MERGE_OUTPUTS; exports.MAX_NUMBER_FORMAT_CODE_CHARS = _chunk55AKPTLMcjs.MAX_NUMBER_FORMAT_CODE_CHARS; exports.MAX_SHEET_NAME_LENGTH = _chunkXFDQEAOScjs.MAX_SHEET_NAME_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkRZJCYJWOcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkRZJCYJWOcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkRZJCYJWOcjs.MAX_TABLE_ROWS; exports.MENTION_REGEX = _chunkJG5VGCKPcjs.MENTION_REGEX; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunkR3PECGTQcjs.Markdown; exports.Mention = _chunkR3PECGTQcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.NUMBER_FORMAT_PRESETS = _chunkXFDQEAOScjs.NUMBER_FORMAT_PRESETS; exports.NumberFormat = _chunk55AKPTLMcjs.NumberFormat; exports.Outline = _chunkR3PECGTQcjs.Outline; exports.PIXERATE_DOCUMENT_MIME = _chunk3AJMR7EGcjs.PIXERATE_DOCUMENT_MIME; exports.ParagraphStyles = _chunkR3PECGTQcjs.ParagraphStyles; exports.RichClipboard = _chunkR3PECGTQcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkR3PECGTQcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkRZJCYJWOcjs.SPARKLINE_KINDS; exports.SPREADSHEET_CLIPBOARD_MIME = _chunkXFDQEAOScjs.SPREADSHEET_CLIPBOARD_MIME; exports.SPREADSHEET_COLUMN_HEADER_HEIGHT = _chunkXFDQEAOScjs.SPREADSHEET_COLUMN_HEADER_HEIGHT; exports.SPREADSHEET_DEFAULT_VIEWPORT = _chunkXFDQEAOScjs.SPREADSHEET_DEFAULT_VIEWPORT; exports.SPREADSHEET_GROUP_ROW_HEIGHT = _chunkXFDQEAOScjs.SPREADSHEET_GROUP_ROW_HEIGHT; exports.SPREADSHEET_IMPORT_ADAPTERS = _chunkXFDQEAOScjs.SPREADSHEET_IMPORT_ADAPTERS; exports.SPREADSHEET_ROW_HEADER_WIDTH = _chunkXFDQEAOScjs.SPREADSHEET_ROW_HEADER_WIDTH; exports.SPREADSHEET_TABLE_ACTIONS = _chunkXFDQEAOScjs.SPREADSHEET_TABLE_ACTIONS; exports.SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD = _chunkXFDQEAOScjs.SPREADSHEET_VIRTUAL_COLUMN_THRESHOLD; exports.SPREADSHEET_VIRTUAL_ROW_THRESHOLD = _chunkXFDQEAOScjs.SPREADSHEET_VIRTUAL_ROW_THRESHOLD; exports.STYLE_ID_ATTRIBUTE = _chunkR3PECGTQcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkR3PECGTQcjs.SlashCommands; exports.SmilieReplacer = _chunkR3PECGTQcjs.SmilieReplacer; exports.Sparkline = _chunkRZJCYJWOcjs.Sparkline; exports.SpreadsheetController = _chunkXFDQEAOScjs.SpreadsheetController; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkRZJCYJWOcjs.TABLE_ACTIONS; exports.TEMPLATE_DEPTH_ERROR = _chunkNIBFDFYWcjs.TEMPLATE_DEPTH_ERROR; exports.TEMPLATE_LOOP_ERROR = _chunkNIBFDFYWcjs.TEMPLATE_LOOP_ERROR; exports.TEMPLATE_REGEX = _chunkUWEQ55MYcjs.TEMPLATE_REGEX; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkRZJCYJWOcjs.Table; exports.TableCell = _chunkRZJCYJWOcjs.TableCell; exports.TableHeader = _chunkRZJCYJWOcjs.TableHeader; exports.TableOfContents = _chunkR3PECGTQcjs.TableOfContents; exports.TableRow = _chunkRZJCYJWOcjs.TableRow; exports.TemplateSuggestions = _chunkR3PECGTQcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.UNSAFE_JSON_KEYS = _chunk2BSBFBOAcjs.UNSAFE_JSON_KEYS; exports.VARIABLE_REGEX = _chunkUWEQ55MYcjs.VARIABLE_REGEX; exports.WHOLE_COLUMN_END_ROW = _chunkQZFEX2N4cjs.WHOLE_COLUMN_END_ROW; exports.XmlWriter = _chunk4YQKRHMIcjs.XmlWriter; exports.ZipArchive = _chunkALNIFK5Gcjs.ZipArchive; exports.ZipError = _chunkALNIFK5Gcjs.ZipError; exports.adjustRangeForStructuralChange = _chunkXFDQEAOScjs.adjustRangeForStructuralChange; exports.adjustRangesForStructuralChange = _chunkXFDQEAOScjs.adjustRangesForStructuralChange; exports.agentCaretPluginKey = _chunkRZJCYJWOcjs.agentCaretPluginKey; exports.aggregateValues = _chunkQZFEX2N4cjs.aggregateValues; exports.analyzePdfLayout = analyzePdfLayout; exports.applyDocumentComparison = _chunkR3PECGTQcjs.applyDocumentComparison; exports.applyFormulaSuggestion = _chunkXFDQEAOScjs.applyFormulaSuggestion; exports.applyImportedReviewData = _chunkR3PECGTQcjs.applyImportedReviewData; exports.applyReplacements = _chunkRZJCYJWOcjs.applyReplacements; exports.autocorrectPluginKey = _chunkR3PECGTQcjs.autocorrectPluginKey; exports.bindDirtyToHistory = _chunkWWMWFSXMcjs.bindDirtyToHistory; exports.bindSpreadsheetTableActions = _chunkXFDQEAOScjs.bindSpreadsheetTableActions; exports.blendConditionalFormatColors = _chunkXFDQEAOScjs.blendConditionalFormatColors; exports.buildOutlineTree = _chunkR3PECGTQcjs.buildOutlineTree; exports.buildSpreadsheetView = _chunkXFDQEAOScjs.buildSpreadsheetView; exports.builtinNumberFormat = _chunk55AKPTLMcjs.builtinNumberFormat; exports.builtinNumberFormatId = _chunk55AKPTLMcjs.builtinNumberFormatId; exports.capitalizeSentenceRules = _chunkR3PECGTQcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkR3PECGTQcjs.captureSelectionFormat; exports.cellFormatForNumberFormat = _chunkXFDQEAOScjs.cellFormatForNumberFormat; exports.chartPluginKey = _chunkRZJCYJWOcjs.chartPluginKey; exports.checkFormulaArgumentCount = _chunkQZFEX2N4cjs.checkFormulaArgumentCount; exports.clampMenuPosition = _chunkXFDQEAOScjs.clampMenuPosition; exports.clearAgentCaret = _chunkRZJCYJWOcjs.clearAgentCaret; exports.clearNumberFormatCache = _chunk55AKPTLMcjs.clearNumberFormatCache; exports.colNameToIndex = _chunk55AKPTLMcjs.colNameToIndex; exports.columnDependencyKey = _chunkXFDQEAOScjs.columnDependencyKey; exports.commentsPluginKey = _chunkR3PECGTQcjs.commentsPluginKey; exports.compactVariableValues = _chunkWIC7TG73cjs.compactVariableValues; exports.compareCellValues = _chunkQZFEX2N4cjs.compareCellValues; exports.compareConditionValues = _chunkUWEQ55MYcjs.compareConditionValues; exports.compareDocuments = _chunkHMGWFXECcjs.compareDocuments; exports.compareHtml = _chunkHMGWFXECcjs.compareHtml; exports.compareInEditor = _chunkR3PECGTQcjs.compareInEditor; exports.compareNumbers = _chunk55AKPTLMcjs.compareNumbers; exports.compareValues = _chunk55AKPTLMcjs.compareValues; exports.compileFindPattern = _chunkRZJCYJWOcjs.compileFindPattern; exports.computeFillTarget = _chunkQZFEX2N4cjs.computeFillTarget; exports.computeOutline = _chunkR3PECGTQcjs.computeOutline; exports.computeRowGroups = _chunkXFDQEAOScjs.computeRowGroups; exports.conditionSubject = _chunkUWEQ55MYcjs.conditionSubject; exports.conditionalFormatContrastColor = _chunkXFDQEAOScjs.conditionalFormatContrastColor; exports.conditionalFormatIconCount = _chunkXFDQEAOScjs.conditionalFormatIconCount; exports.conditionalFormatNumber = _chunkXFDQEAOScjs.conditionalFormatNumber; exports.conditionalFormatStyleString = _chunkXFDQEAOScjs.conditionalFormatStyleString; exports.copySheetName = _chunkXFDQEAOScjs.copySheetName; exports.createAgentCaretPlugin = _chunkRZJCYJWOcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkRZJCYJWOcjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createConditionalFormatRule = _chunkXFDQEAOScjs.createConditionalFormatRule; exports.createDirtyTracker = _chunkWWMWFSXMcjs.createDirtyTracker; exports.createDocxExportController = _chunk4YQKRHMIcjs.createDocxExportController; exports.createDocxImportAdapter = _chunkR3PECGTQcjs.createDocxImportAdapter; exports.createDocxParts = _chunk4YQKRHMIcjs.createDocxParts; exports.createEditor = createEditor; exports.createFileImportController = createFileImportController; exports.createFindReplaceCommands = _chunkR3PECGTQcjs.createFindReplaceCommands; exports.createHistoryManager = _chunkFJ2MSI43cjs.createHistoryManager; exports.createImportAdapterRegistry = _chunkR3PECGTQcjs.createImportAdapterRegistry; exports.createImportContext = _chunkR3PECGTQcjs.createImportContext; exports.createMentionExtension = _chunkR3PECGTQcjs.createMentionExtension; exports.createOutlineStore = _chunkR3PECGTQcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkR3PECGTQcjs.createParagraphStylesStore; exports.createPdfImportAdapter = createPdfImportAdapter; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextEditorDocument = createRichTextEditorDocument; exports.createRichTextPreset = _chunkR3PECGTQcjs.createRichTextPreset; exports.createSearchBudget = _chunkRZJCYJWOcjs.createSearchBudget; exports.createSpreadsheetClipboardData = _chunkXFDQEAOScjs.createSpreadsheetClipboardData; exports.createSpreadsheetEditorDocument = _chunkXFDQEAOScjs.createSpreadsheetEditorDocument; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkR3PECGTQcjs.createTableCommands; exports.createTableExtensions = _chunkRZJCYJWOcjs.createTableExtensions; exports.createTableNestingPlugin = _chunkRZJCYJWOcjs.createTableNestingPlugin; exports.createTableStore = _chunkRZJCYJWOcjs.createTableStore; exports.createZipImportAdapter = createZipImportAdapter; exports.crossReferencePluginKey = _chunkR3PECGTQcjs.crossReferencePluginKey; exports.csvImportAdapter = _chunkXFDQEAOScjs.csvImportAdapter; exports.dateValueToSerial = _chunk55AKPTLMcjs.dateValueToSerial; exports.defaultAutocorrectRules = _chunkR3PECGTQcjs.defaultAutocorrectRules; exports.defaultIconThresholds = _chunkXFDQEAOScjs.defaultIconThresholds; exports.defaultImportRegistry = _chunkR3PECGTQcjs.defaultImportRegistry; exports.defaultIsEqual = _chunkWWMWFSXMcjs.defaultIsEqual; exports.deflateRaw = _chunkJLWLX52Lcjs.deflateRaw; exports.deleteSheetInFormula = _chunkXFDQEAOScjs.deleteSheetInFormula; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeConditionalFormat = _chunkXFDQEAOScjs.describeConditionalFormat; exports.describeConditionalTag = _chunkUWEQ55MYcjs.describeConditionalTag; exports.describeDataValidation = _chunkXFDQEAOScjs.describeDataValidation; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.describeFormulaError = _chunkQZFEX2N4cjs.describeFormulaError; exports.detectDelimiter = _chunkWIC7TG73cjs.detectDelimiter; exports.diffChanges = _chunkHMGWFXECcjs.diffChanges; exports.diffSequences = _chunkHMGWFXECcjs.diffSequences; exports.documentStructureCommandItems = _chunkR3PECGTQcjs.documentStructureCommandItems; exports.docxFileName = _chunk4YQKRHMIcjs.docxFileName; exports.docxImportAdapter = _chunkR3PECGTQcjs.docxImportAdapter; exports.docxToDocumentImport = _chunkR3PECGTQcjs.docxToDocumentImport; exports.downloadBlob = _chunk4YQKRHMIcjs.downloadBlob; exports.ensureAgentCaret = _chunkRZJCYJWOcjs.ensureAgentCaret; exports.escapeCsvField = _chunkN3KJFGXTcjs.escapeCsvField; exports.escapeHtml = _chunkG43MNQ4Ccjs.escapeHtml; exports.escapeVariableText = _chunkUWEQ55MYcjs.escapeVariableText; exports.escapeXmlAttr = _chunk4YQKRHMIcjs.escapeXmlAttr; exports.escapeXmlText = _chunk4YQKRHMIcjs.escapeXmlText; exports.evaluateCondition = _chunkUWEQ55MYcjs.evaluateCondition; exports.evaluateConditionExpression = _chunkUWEQ55MYcjs.evaluateConditionExpression; exports.evaluateConditionalFormats = _chunkXFDQEAOScjs.evaluateConditionalFormats; exports.evaluatePromptTokens = _chunkNIBFDFYWcjs.evaluatePromptTokens; exports.expandReplacement = _chunkRZJCYJWOcjs.expandReplacement; exports.exportDocx = _chunk4YQKRHMIcjs.exportDocx; exports.exportDocxBlob = _chunk4YQKRHMIcjs.exportDocxBlob; exports.extractCellDependencies = _chunkXFDQEAOScjs.extractCellDependencies; exports.extractInstructionNames = _chunkWIC7TG73cjs.extractInstructionNames; exports.extractMentions = _chunkG43MNQ4Ccjs.extractMentions; exports.extractMentionsFromDoc = _chunkG43MNQ4Ccjs.extractMentionsFromDoc; exports.extractNameDependencies = _chunkXFDQEAOScjs.extractNameDependencies; exports.extractReferenceDependencies = _chunkXFDQEAOScjs.extractReferenceDependencies; exports.extractTemplateNames = _chunkWIC7TG73cjs.extractTemplateNames; exports.extractVariableNames = _chunkWIC7TG73cjs.extractVariableNames; exports.extractVariables = _chunkWIC7TG73cjs.extractVariables; exports.fileImportPluginKey = _chunkR3PECGTQcjs.fileImportPluginKey; exports.fillSeries = _chunkQZFEX2N4cjs.fillSeries; exports.findAllMatches = _chunkRZJCYJWOcjs.findAllMatches; exports.findAutocorrection = _chunkR3PECGTQcjs.findAutocorrection; exports.findCommentRanges = _chunkR3PECGTQcjs.findCommentRanges; exports.findDataValidation = _chunkXFDQEAOScjs.findDataValidation; exports.findHexColors = _chunkR3PECGTQcjs.findHexColors; exports.findImportAdapter = _chunkR3PECGTQcjs.findImportAdapter; exports.findInvalidCells = _chunkXFDQEAOScjs.findInvalidCells; exports.findReplacePluginKey = _chunkR3PECGTQcjs.findReplacePluginKey; exports.findTextMentions = _chunkJG5VGCKPcjs.findTextMentions; exports.foldCodePoint = _chunkRZJCYJWOcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkR3PECGTQcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkR3PECGTQcjs.footnotesPluginKey; exports.forEachRangeCell = _chunkXFDQEAOScjs.forEachRangeCell; exports.formatCellDisplay = _chunkXFDQEAOScjs.formatCellDisplay; exports.formatCellForDisplay = _chunkXFDQEAOScjs.formatCellForDisplay; exports.formatComparisonOperand = _chunkUWEQ55MYcjs.formatComparisonOperand; exports.formatConditionalTag = _chunkUWEQ55MYcjs.formatConditionalTag; exports.formatFindStatus = _chunkR3PECGTQcjs.formatFindStatus; exports.formatGeneralFit = _chunk55AKPTLMcjs.formatGeneralFit; exports.formatMentionText = _chunkJG5VGCKPcjs.formatMentionText; exports.formatNumberFormatValue = _chunk55AKPTLMcjs.formatNumberFormatValue; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.formatRuleRanges = _chunkXFDQEAOScjs.formatRuleRanges; exports.formatSheetPrefix = _chunkXFDQEAOScjs.formatSheetPrefix; exports.formatTextFunction = _chunk55AKPTLMcjs.formatTextFunction; exports.formatValueWithCode = _chunkXFDQEAOScjs.formatValueWithCode; exports.formulaIdentifiers = _chunkXFDQEAOScjs.formulaIdentifiers; exports.fractionRules = _chunkR3PECGTQcjs.fractionRules; exports.fullSpreadsheetViewWindow = _chunkXFDQEAOScjs.fullSpreadsheetViewWindow; exports.getActiveHeading = _chunkR3PECGTQcjs.getActiveHeading; exports.getAgentCarets = _chunkRZJCYJWOcjs.getAgentCarets; exports.getBookmarks = _chunkR3PECGTQcjs.getBookmarks; exports.getClipboardData = _chunk3AJMR7EGcjs.getClipboardData; exports.getCommentAnchors = _chunkR3PECGTQcjs.getCommentAnchors; exports.getCommentAuthor = _chunkR3PECGTQcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkR3PECGTQcjs.getCommentIdsAt; exports.getCommentStore = _chunkR3PECGTQcjs.getCommentStore; exports.getConditionalFormatCss = _chunkXFDQEAOScjs.getConditionalFormatCss; exports.getConditionalFormatIcon = _chunkXFDQEAOScjs.getConditionalFormatIcon; exports.getCrossReferenceTargets = _chunkR3PECGTQcjs.getCrossReferenceTargets; exports.getDataBarCss = _chunkXFDQEAOScjs.getDataBarCss; exports.getDocumentCharts = _chunkRZJCYJWOcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkR3PECGTQcjs.getDocumentStructureCommandItems; exports.getEditorMarkdown = _chunkG43MNQ4Ccjs.getEditorMarkdown; exports.getEditorText = _chunkG43MNQ4Ccjs.getEditorText; exports.getFillDirection = _chunkQZFEX2N4cjs.getFillDirection; exports.getFindReplaceState = _chunkR3PECGTQcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkR3PECGTQcjs.getFindReplaceStore; exports.getFootnotes = _chunkR3PECGTQcjs.getFootnotes; exports.getFormulaArgumentSpecIndex = _chunkQZFEX2N4cjs.getFormulaArgumentSpecIndex; exports.getFormulaCaretContext = _chunkXFDQEAOScjs.getFormulaCaretContext; exports.getFormulaFunction = _chunkQZFEX2N4cjs.getFormulaFunction; exports.getFormulaHints = _chunkXFDQEAOScjs.getFormulaHints; exports.getFormulaSignature = _chunkQZFEX2N4cjs.getFormulaSignature; exports.getFormulaSignatureParts = _chunkQZFEX2N4cjs.getFormulaSignatureParts; exports.getImportAccept = _chunkR3PECGTQcjs.getImportAccept; exports.getLatestVersion = _chunkNIBFDFYWcjs.getLatestVersion; exports.getMentionNodes = _chunkR3PECGTQcjs.getMentionNodes; exports.getNameManagerRows = _chunkXFDQEAOScjs.getNameManagerRows; exports.getOutline = _chunkR3PECGTQcjs.getOutline; exports.getParagraphStyleAt = _chunkR3PECGTQcjs.getParagraphStyleAt; exports.getPromptDiagnostics = _chunkNIBFDFYWcjs.getPromptDiagnostics; exports.getRowSection = _chunkXFDQEAOScjs.getRowSection; exports.getSchemaSignature = _chunk3AJMR7EGcjs.getSchemaSignature; exports.getSheetTabMenuItems = _chunkXFDQEAOScjs.getSheetTabMenuItems; exports.getSpreadsheetMenuItems = _chunkXFDQEAOScjs.getSpreadsheetMenuItems; exports.getSpreadsheetScrollToCell = _chunkXFDQEAOScjs.getSpreadsheetScrollToCell; exports.getSpreadsheetViewWindow = _chunkXFDQEAOScjs.getSpreadsheetViewWindow; exports.getStyleRegistry = _chunkR3PECGTQcjs.getStyleRegistry; exports.getSuppliedValue = _chunkUWEQ55MYcjs.getSuppliedValue; exports.getTableActionState = _chunkRZJCYJWOcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkR3PECGTQcjs.getTableOfContentsEntries; exports.getTableSections = _chunkXFDQEAOScjs.getTableSections; exports.getTableState = _chunkRZJCYJWOcjs.getTableState; exports.getTemplateBody = _chunkNIBFDFYWcjs.getTemplateBody; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.getValidationListValues = _chunkXFDQEAOScjs.getValidationListValues; exports.getVariableFormFields = _chunkWIC7TG73cjs.getVariableFormFields; exports.handleImageInsertion = _chunkR3PECGTQcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkRZJCYJWOcjs.handleTablePasteWithoutNesting; exports.htmlImportAdapter = _chunkR3PECGTQcjs.htmlImportAdapter; exports.htmlToPlainText = _chunkG43MNQ4Ccjs.htmlToPlainText; exports.htmlToSlice = _chunkR3PECGTQcjs.htmlToSlice; exports.imagePastePluginKey = _chunkR3PECGTQcjs.imagePastePluginKey; exports.importFile = _chunkR3PECGTQcjs.importFile; exports.importFileIntoSpreadsheet = _chunkXFDQEAOScjs.importFileIntoSpreadsheet; exports.importFilesIntoEditor = _chunkR3PECGTQcjs.importFilesIntoEditor; exports.indexToColName = _chunk55AKPTLMcjs.indexToColName; exports.insertImageNode = _chunkR3PECGTQcjs.insertImageNode; exports.insertImportedDocument = _chunkR3PECGTQcjs.insertImportedDocument; exports.insertSliceAfterTable = _chunkRZJCYJWOcjs.insertSliceAfterTable; exports.instructionRegex = _chunkUWEQ55MYcjs.instructionRegex; exports.isBlankValue = _chunkQZFEX2N4cjs.isBlankValue; exports.isChartEnabled = _chunkRZJCYJWOcjs.isChartEnabled; exports.isFormulaError = _chunk55AKPTLMcjs.isFormulaError; exports.isFormulaLambda = _chunkQZFEX2N4cjs.isFormulaLambda; exports.isGeneralNumberFormat = _chunkXFDQEAOScjs.isGeneralNumberFormat; exports.isGfmTable = _chunkRZJCYJWOcjs.isGfmTable; exports.isInTableCell = _chunkRZJCYJWOcjs.isInTableCell; exports.isInsidePromptToken = _chunkR3PECGTQcjs.isInsidePromptToken; exports.isLambdaDefinition = _chunkXFDQEAOScjs.isLambdaDefinition; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkR3PECGTQcjs.isParagraphStyleAvailable; exports.isPromptValueSet = _chunkUWEQ55MYcjs.isPromptValueSet; exports.isSelectionInTable = _chunkRZJCYJWOcjs.isSelectionInTable; exports.isSingleCellRange = _chunkQZFEX2N4cjs.isSingleCellRange; exports.isTableEnabled = _chunkRZJCYJWOcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isUnsafeJsonKey = _chunk2BSBFBOAcjs.isUnsafeJsonKey; exports.isUnsafeZipPath = _chunkALNIFK5Gcjs.isUnsafeZipPath; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.listFormulaFunctions = _chunkQZFEX2N4cjs.listFormulaFunctions; exports.mapConditionalFormatFormulas = _chunkXFDQEAOScjs.mapConditionalFormatFormulas; exports.mapDataValidationFormulas = _chunkXFDQEAOScjs.mapDataValidationFormulas; exports.mapFormulaReferences = _chunkXFDQEAOScjs.mapFormulaReferences; exports.mapRawOffsetToResolved = _chunkWIC7TG73cjs.mapRawOffsetToResolved; exports.mapResolvedOffsetToRaw = _chunkWIC7TG73cjs.mapResolvedOffsetToRaw; exports.markAgentChanges = _chunkRZJCYJWOcjs.markAgentChanges; exports.markdownImportAdapter = _chunkR3PECGTQcjs.markdownImportAdapter; exports.markdownToTipTapHtml = _chunkG43MNQ4Ccjs.markdownToTipTapHtml; exports.matchConditionalTags = _chunkUWEQ55MYcjs.matchConditionalTags; exports.matchFields = _chunkWIC7TG73cjs.matchFields; exports.matchesFilterRule = _chunkQZFEX2N4cjs.matchesFilterRule; exports.matchesTimePeriod = _chunkXFDQEAOScjs.matchesTimePeriod; exports.measureSpreadsheetView = _chunkXFDQEAOScjs.measureSpreadsheetView; exports.mergeRecords = _chunkWIC7TG73cjs.mergeRecords; exports.mergeRuleRanges = _chunkXFDQEAOScjs.mergeRuleRanges; exports.navigateToHeading = _chunkR3PECGTQcjs.navigateToHeading; exports.nextSheetName = _chunkXFDQEAOScjs.nextSheetName; exports.normalizeFieldKey = _chunkWIC7TG73cjs.normalizeFieldKey; exports.normalizeFieldNames = _chunkWIC7TG73cjs.normalizeFieldNames; exports.normalizeRange = _chunkQZFEX2N4cjs.normalizeRange; exports.normalizeSparklineValues = _chunkRZJCYJWOcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkRZJCYJWOcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkRZJCYJWOcjs.normalizeTableCellColor; exports.numberFormatColorToCss = _chunk55AKPTLMcjs.numberFormatColorToCss; exports.numberFormatForCellFormat = _chunkXFDQEAOScjs.numberFormatForCellFormat; exports.numberToText = _chunk55AKPTLMcjs.numberToText; exports.offsetFormulaReferences = _chunkXFDQEAOScjs.offsetFormulaReferences; exports.outermostTableDepth = _chunkRZJCYJWOcjs.outermostTableDepth; exports.outlinePluginKey = _chunkR3PECGTQcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkR3PECGTQcjs.paragraphStylesPluginKey; exports.parseCellInput = _chunk55AKPTLMcjs.parseCellInput; exports.parseCellReference = _chunkQZFEX2N4cjs.parseCellReference; exports.parseComparison = _chunkUWEQ55MYcjs.parseComparison; exports.parseConditionExpression = _chunkUWEQ55MYcjs.parseConditionExpression; exports.parseCriteria = _chunkQZFEX2N4cjs.parseCriteria; exports.parseCsv = _chunkN3KJFGXTcjs.parseCsv; exports.parseDataSource = _chunkWIC7TG73cjs.parseDataSource; exports.parseFormula = _chunkQZFEX2N4cjs.parseFormula; exports.parseHtmlTable = _chunkXFDQEAOScjs.parseHtmlTable; exports.parseMentionSegments = _chunkG43MNQ4Ccjs.parseMentionSegments; exports.parseNumberText = _chunk55AKPTLMcjs.parseNumberText; exports.parseRange = _chunkQZFEX2N4cjs.parseRange; exports.parseReplacement = _chunkRZJCYJWOcjs.parseReplacement; exports.parseRichClipboardPayload = _chunk3AJMR7EGcjs.parseRichClipboardPayload; exports.parseRuleRanges = _chunkXFDQEAOScjs.parseRuleRanges; exports.parseSpreadsheetPlaybackRef = _chunkQZFEX2N4cjs.parseSpreadsheetPlaybackRef; exports.parseTsv = _chunkN3KJFGXTcjs.parseTsv; exports.parseVariableBody = _chunkUWEQ55MYcjs.parseVariableBody; exports.pdfLayoutBlocksToHtml = pdfLayoutBlocksToHtml; exports.pdfOperatorListToRules = pdfOperatorListToRules; exports.pdfTextItemsToParagraphs = pdfTextItemsToParagraphs; exports.pdfTextItemsToRuns = pdfTextItemsToRuns; exports.pickImportFiles = pickImportFiles; exports.plainTextImportAdapter = _chunkR3PECGTQcjs.plainTextImportAdapter; exports.plainTextToParagraphHtml = _chunk3AJMR7EGcjs.plainTextToParagraphHtml; exports.plainTextToSlice = _chunkG43MNQ4Ccjs.plainTextToSlice; exports.plainTextToTipTapHtml = _chunkG43MNQ4Ccjs.plainTextToTipTapHtml; exports.planSpreadsheetToolPlayback = _chunkQZFEX2N4cjs.planSpreadsheetToolPlayback; exports.preprocessMarkdownFileLinks = _chunkG43MNQ4Ccjs.preprocessMarkdownFileLinks; exports.preprocessMarkdownMentions = _chunkG43MNQ4Ccjs.preprocessMarkdownMentions; exports.quoteSheetName = _chunkXFDQEAOScjs.quoteSheetName; exports.rangeContains = _chunkQZFEX2N4cjs.rangeContains; exports.rangeContainsRange = _chunkQZFEX2N4cjs.rangeContainsRange; exports.rangeDependencyKey = _chunkXFDQEAOScjs.rangeDependencyKey; exports.rangesContain = _chunkXFDQEAOScjs.rangesContain; exports.rangesIntersect = _chunkQZFEX2N4cjs.rangesIntersect; exports.readRichClipboard = _chunk3AJMR7EGcjs.readRichClipboard; exports.readSpreadsheetClipboard = _chunkXFDQEAOScjs.readSpreadsheetClipboard; exports.readZip = _chunkALNIFK5Gcjs.readZip; exports.reanchorRuleFormula = _chunkXFDQEAOScjs.reanchorRuleFormula; exports.rebaseClipboardRows = _chunkXFDQEAOScjs.rebaseClipboardRows; exports.recordToValues = _chunkWIC7TG73cjs.recordToValues; exports.registerFormulaFunction = _chunkQZFEX2N4cjs.registerFormulaFunction; exports.registerImportAdapter = _chunkR3PECGTQcjs.registerImportAdapter; exports.registerSpreadsheetImportAdapters = _chunkXFDQEAOScjs.registerSpreadsheetImportAdapters; exports.remapFormulaReferences = _chunkXFDQEAOScjs.remapFormulaReferences; exports.removeImageNode = _chunkR3PECGTQcjs.removeImageNode; exports.renameNameInFormula = _chunkXFDQEAOScjs.renameNameInFormula; exports.renameSheetInFormula = _chunkXFDQEAOScjs.renameSheetInFormula; exports.replaceWithTextTransaction = _chunkRZJCYJWOcjs.replaceWithTextTransaction; exports.resolvePrompt = _chunkNIBFDFYWcjs.resolvePrompt; exports.resolveTemplates = _chunkWIC7TG73cjs.resolveTemplates; exports.resolveTemplatesWithMapping = _chunkWIC7TG73cjs.resolveTemplatesWithMapping; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.resolveVariables = _chunkWIC7TG73cjs.resolveVariables; exports.richClipboardPluginKey = _chunkR3PECGTQcjs.richClipboardPluginKey; exports.roundFloat = _chunkQZFEX2N4cjs.roundFloat; exports.rowPassesFilters = _chunkXFDQEAOScjs.rowPassesFilters; exports.rtfImportAdapter = _chunkR3PECGTQcjs.rtfImportAdapter; exports.rtfToPlainText = _chunk3AJMR7EGcjs.rtfToPlainText; exports.ruleAnchor = _chunkXFDQEAOScjs.ruleAnchor; exports.ruleFormulaAt = _chunkXFDQEAOScjs.ruleFormulaAt; exports.runSpreadsheetMenuItem = _chunkXFDQEAOScjs.runSpreadsheetMenuItem; exports.runTableAction = _chunkRZJCYJWOcjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.sameSpreadsheetViewWindow = _chunkXFDQEAOScjs.sameSpreadsheetViewWindow; exports.sanitizeHtml = _chunkG43MNQ4Ccjs.sanitizeHtml; exports.sanitizeImportedHtml = _chunk3AJMR7EGcjs.sanitizeImportedHtml; exports.searchDocument = _chunkRZJCYJWOcjs.searchDocument; exports.searchFormulaFunctions = _chunkQZFEX2N4cjs.searchFormulaFunctions; exports.serialFromYmd = _chunk55AKPTLMcjs.serialFromYmd; exports.serializeCsv = _chunkN3KJFGXTcjs.serializeCsv; exports.serializeHtmlTable = _chunkXFDQEAOScjs.serializeHtmlTable; exports.serializeMergeOutputs = _chunkWIC7TG73cjs.serializeMergeOutputs; exports.serializeRichClipboardPayload = _chunk3AJMR7EGcjs.serializeRichClipboardPayload; exports.serializeTsv = _chunkN3KJFGXTcjs.serializeTsv; exports.setAgentCaret = _chunkRZJCYJWOcjs.setAgentCaret; exports.setMentionRoleAt = _chunkR3PECGTQcjs.setMentionRoleAt; exports.setMentionRoleInText = _chunkJG5VGCKPcjs.setMentionRoleInText; exports.sheetDropIndex = _chunkXFDQEAOScjs.sheetDropIndex; exports.sheetNameNeedsQuotes = _chunkXFDQEAOScjs.sheetNameNeedsQuotes; exports.shiftFormulaReferences = _chunkXFDQEAOScjs.shiftFormulaReferences; exports.shiftRuleFormula = _chunkXFDQEAOScjs.shiftRuleFormula; exports.shouldShowTableBubbleMenu = _chunkRZJCYJWOcjs.shouldShowTableBubbleMenu; exports.shouldVirtualizeSpreadsheet = _chunkXFDQEAOScjs.shouldVirtualizeSpreadsheet; exports.sliceContainsTable = _chunkRZJCYJWOcjs.sliceContainsTable; exports.smartQuoteRules = _chunkR3PECGTQcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkR3PECGTQcjs.smilieAutocorrectRules; exports.sortCompareValues = _chunk55AKPTLMcjs.sortCompareValues; exports.sortRuleRanges = _chunkXFDQEAOScjs.sortRuleRanges; exports.sortRules = _chunkXFDQEAOScjs.sortRules; exports.sortZipEntryNames = sortZipEntryNames; exports.sparklineLabel = _chunkRZJCYJWOcjs.sparklineLabel; exports.splitMarkdownMentionParts = _chunkG43MNQ4Ccjs.splitMarkdownMentionParts; exports.staticChartSvg = _chunkRZJCYJWOcjs.staticChartSvg; exports.stripInvalidXmlChars = _chunk4YQKRHMIcjs.stripInvalidXmlChars; exports.stripMarkdownCode = _chunkG43MNQ4Ccjs.stripMarkdownCode; exports.stripPrototypeKeys = _chunk2BSBFBOAcjs.stripPrototypeKeys; exports.subtractRange = _chunkXFDQEAOScjs.subtractRange; exports.subtractRangeFromRanges = _chunkXFDQEAOScjs.subtractRangeFromRanges; exports.summarizeImportStructure = summarizeImportStructure; exports.symbolRules = _chunkR3PECGTQcjs.symbolRules; exports.syncFootnotes = _chunkR3PECGTQcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkRZJCYJWOcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkR3PECGTQcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkR3PECGTQcjs.tableOfContentsPluginKey; exports.templateRegex = _chunkUWEQ55MYcjs.templateRegex; exports.toNumber = _chunkQZFEX2N4cjs.toNumber; exports.tokenizeFormula = _chunkQZFEX2N4cjs.tokenizeFormula; exports.tokenizePrompt = _chunkNIBFDFYWcjs.tokenizePrompt; exports.tokenizePromptWithDiagnostics = _chunkNIBFDFYWcjs.tokenizePromptWithDiagnostics; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.transposeFormulaReferences = _chunkXFDQEAOScjs.transposeFormulaReferences; exports.transposeRuleFormula = _chunkXFDQEAOScjs.transposeRuleFormula; exports.transposeRuleRanges = _chunkXFDQEAOScjs.transposeRuleRanges; exports.transposeRules = _chunkXFDQEAOScjs.transposeRules; exports.tsvImportAdapter = _chunkXFDQEAOScjs.tsvImportAdapter; exports.twoInitialCapitalsRules = _chunkR3PECGTQcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkRZJCYJWOcjs.typeAgentText; exports.unescapeVariableText = _chunkUWEQ55MYcjs.unescapeVariableText; exports.unnestTables = _chunkRZJCYJWOcjs.unnestTables; exports.unregisterFormulaFunction = _chunkQZFEX2N4cjs.unregisterFormulaFunction; exports.unregisterImportAdapter = _chunkR3PECGTQcjs.unregisterImportAdapter; exports.updateImageSrc = _chunkR3PECGTQcjs.updateImageSrc; exports.validateCellInput = _chunkXFDQEAOScjs.validateCellInput; exports.validateDefinedName = _chunkXFDQEAOScjs.validateDefinedName; exports.validateFindPattern = _chunkR3PECGTQcjs.validateFindPattern; exports.validateSheetName = _chunkXFDQEAOScjs.validateSheetName; exports.variableRegex = _chunkUWEQ55MYcjs.variableRegex; exports.wildcardToRegExp = _chunkQZFEX2N4cjs.wildcardToRegExp; exports.withoutDirty = _chunkWWMWFSXMcjs.withoutDirty; exports.writeRichClipboard = _chunkR3PECGTQcjs.writeRichClipboard; exports.writeZip = _chunkJLWLX52Lcjs.writeZip; exports.zipCrc32 = _chunkALNIFK5Gcjs.zipCrc32; exports.zipEntryTitle = zipEntryTitle; exports.zipImportAdapter = zipImportAdapter;
package/dist/index.d.cts CHANGED
@@ -9,5 +9,6 @@ export * from "./slots.cjs";
9
9
  export * from "./import/index.cjs";
10
10
  export * from "./compare/index.cjs";
11
11
  export * from "./export/index.cjs";
12
+ export * from "./richTextDocument.cjs";
12
13
  export { stripPrototypeKeys, isUnsafeJsonKey, UNSAFE_JSON_KEYS } from "./tools/safe-json.cjs";
13
14
  export type { Editor, Content, Extensions, EditorOptions } from "@tiptap/core";
package/dist/index.d.ts CHANGED
@@ -9,5 +9,6 @@ export * from "./slots.js";
9
9
  export * from "./import/index.js";
10
10
  export * from "./compare/index.js";
11
11
  export * from "./export/index.js";
12
+ export * from "./richTextDocument.js";
12
13
  export { stripPrototypeKeys, isUnsafeJsonKey, UNSAFE_JSON_KEYS } from "./tools/safe-json.js";
13
14
  export type { Editor, Content, Extensions, EditorOptions } from "@tiptap/core";
package/dist/index.js CHANGED
@@ -364,6 +364,7 @@ import {
364
364
  copySheetName,
365
365
  createConditionalFormatRule,
366
366
  createSpreadsheetClipboardData,
367
+ createSpreadsheetEditorDocument,
367
368
  csvImportAdapter,
368
369
  defaultIconThresholds,
369
370
  deleteSheetInFormula,
@@ -443,7 +444,7 @@ import {
443
444
  validateCellInput,
444
445
  validateDefinedName,
445
446
  validateSheetName
446
- } from "./chunk-VGJTUCWM.js";
447
+ } from "./chunk-4J4MC3F5.js";
447
448
  import {
448
449
  FormulaEvaluator,
449
450
  FormulaLambda,
@@ -565,6 +566,10 @@ import {
565
566
  unescapeVariableText,
566
567
  variableRegex
567
568
  } from "./chunk-VDGBHYC7.js";
569
+ import {
570
+ defineEditorDocument
571
+ } from "./chunk-GNV54DLO.js";
572
+ import "./chunk-WHKNYFM2.js";
568
573
  import {
569
574
  UNSAFE_JSON_KEYS,
570
575
  isUnsafeJsonKey,
@@ -2278,6 +2283,38 @@ function createZipImportAdapter(options = {}) {
2278
2283
  };
2279
2284
  }
2280
2285
  var zipImportAdapter = createZipImportAdapter();
2286
+
2287
+ // src/richTextDocument.ts
2288
+ import { EditorState } from "@tiptap/pm/state";
2289
+ function createRichTextEditorDocument(editor) {
2290
+ const commands = () => editor.commands;
2291
+ const can = () => editor.can();
2292
+ return defineEditorDocument({
2293
+ kind: "rich_text",
2294
+ get: () => editor.getJSON(),
2295
+ load: (document2, { history }) => {
2296
+ try {
2297
+ editor.schema.nodeFromJSON(document2).check();
2298
+ } catch (error) {
2299
+ throw new Error(`A rich text document is ProseMirror JSON ({ "type": "doc", "content": [...] }) as get_rich_text_document returns it: ${error instanceof Error ? error.message : String(error)}`);
2300
+ }
2301
+ editor.commands.setContent(document2, true);
2302
+ if (history === "reset") editor.view.updateState(EditorState.create({ doc: editor.state.doc, plugins: editor.state.plugins }));
2303
+ },
2304
+ subscribe: (listener) => {
2305
+ editor.on("update", listener);
2306
+ return () => {
2307
+ editor.off("update", listener);
2308
+ };
2309
+ },
2310
+ history: {
2311
+ undo: () => commands().undo?.() ?? false,
2312
+ redo: () => commands().redo?.() ?? false,
2313
+ getState: () => ({ canUndo: can().undo?.() ?? false, canRedo: can().redo?.() ?? false })
2314
+ },
2315
+ readOnly: () => editor.isEditable ? false : "The document is read-only."
2316
+ });
2317
+ }
2281
2318
  export {
2282
2319
  ALLOW_NESTED_TABLES_META,
2283
2320
  AgentCaret,
@@ -2485,9 +2522,11 @@ export {
2485
2522
  createParagraphStylesStore,
2486
2523
  createPdfImportAdapter,
2487
2524
  createReviewId,
2525
+ createRichTextEditorDocument,
2488
2526
  createRichTextPreset,
2489
2527
  createSearchBudget,
2490
2528
  createSpreadsheetClipboardData,
2529
+ createSpreadsheetEditorDocument,
2491
2530
  createStyleRegistry,
2492
2531
  createTableCommands,
2493
2532
  createTableExtensions,
@@ -540,9 +540,13 @@ export declare class PaintEditorController {
540
540
  private readStrokePaint;
541
541
  setSecondaryColor(color: string): string;
542
542
  swapColors(): void;
543
- /** The colour at a document pixel: of the composite (paper included) or of one layer. */
543
+ /**
544
+ * The colour at a document pixel: of the composite or of one layer. The composite includes the
545
+ * paper unless `paper` is false, so a pick where nothing is painted comes back with alpha 0.
546
+ */
544
547
  pickColor(x: number, y: number, options?: {
545
548
  layerId?: string;
549
+ paper?: boolean;
546
550
  }): {
547
551
  color: string;
548
552
  alpha: number;
@@ -753,10 +757,12 @@ export declare class PaintEditorController {
753
757
  /**
754
758
  * Composites the viewport stack (paper, view-only underlays, layers with the live stroke) tile by
755
759
  * tile over `rect`, calling `onTile` with each 256 px tile's RGBA (cached: unchanged tiles come back
756
- * as the same buffer). Pass `takeDirty()` as `dirty`.
760
+ * as the same buffer). Pass `takeDirty()` as `dirty`. With `paper: false` the paper is left out and
761
+ * unpainted pixels stay transparent, for a host that draws the paint over its own surface.
757
762
  */
758
763
  compositeTiles(rect: RasterRect, onTile: (tx: number, ty: number, data: Uint8ClampedArray, changed: boolean) => void, options?: {
759
764
  dirty?: RasterRect[] | 'all';
765
+ paper?: boolean;
760
766
  }): void;
761
767
  /** The canvas as canvas-sized RGBA (paper included by default). */
762
768
  compositePixels(options?: RenderOptions): PixelImage;