@pixerate/editor 0.21.0 → 0.23.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 (114) hide show
  1. package/README.md +100 -13
  2. package/THIRD_PARTY_NOTICES.md +88 -0
  3. package/dist/agent/index.cjs +86 -111
  4. package/dist/agent/index.cjs.map +1 -1
  5. package/dist/agent/index.d.cts +69 -211
  6. package/dist/agent/index.d.ts +69 -211
  7. package/dist/agent/index.js +77 -102
  8. package/dist/agent/index.js.map +1 -1
  9. package/dist/arrangeShortcuts-B8O3f8-P.d.cts +184 -0
  10. package/dist/arrangeShortcuts-sLlD2rSX.d.ts +184 -0
  11. package/dist/canvas/index.cjs +2112 -60
  12. package/dist/canvas/index.cjs.map +1 -1
  13. package/dist/canvas/index.d.cts +712 -181
  14. package/dist/canvas/index.d.ts +712 -181
  15. package/dist/canvas/index.js +2105 -53
  16. package/dist/canvas/index.js.map +1 -1
  17. package/dist/chunk-26BVFKHU.cjs +453 -0
  18. package/dist/chunk-26BVFKHU.cjs.map +1 -0
  19. package/dist/chunk-2H7ZHPEJ.js +762 -0
  20. package/dist/chunk-2H7ZHPEJ.js.map +1 -0
  21. package/dist/chunk-7DWMJCAT.js +453 -0
  22. package/dist/chunk-7DWMJCAT.js.map +1 -0
  23. package/dist/{chunk-TVRC4KVT.cjs → chunk-AA4ZEVCC.cjs} +845 -90
  24. package/dist/chunk-AA4ZEVCC.cjs.map +1 -0
  25. package/dist/chunk-ARRTP33I.js +101 -0
  26. package/dist/chunk-ARRTP33I.js.map +1 -0
  27. package/dist/{chunk-LA7PEGU3.cjs → chunk-CL37JGFW.cjs} +4 -4
  28. package/dist/{chunk-LA7PEGU3.cjs.map → chunk-CL37JGFW.cjs.map} +1 -1
  29. package/dist/chunk-CPOKFNBG.cjs +101 -0
  30. package/dist/chunk-CPOKFNBG.cjs.map +1 -0
  31. package/dist/chunk-G2I4QJOT.cjs +762 -0
  32. package/dist/chunk-G2I4QJOT.cjs.map +1 -0
  33. package/dist/{chunk-4QPLEUL2.cjs → chunk-GVSMRPHB.cjs} +1046 -54
  34. package/dist/chunk-GVSMRPHB.cjs.map +1 -0
  35. package/dist/{chunk-KYRZDWM4.js → chunk-JJDLPEWL.js} +2 -2
  36. package/dist/{chunk-GVW4P7BG.js → chunk-K3R5NG2D.js} +448 -54
  37. package/dist/chunk-K3R5NG2D.js.map +1 -0
  38. package/dist/{chunk-3TYMNULT.js → chunk-MJZBNWG7.js} +807 -52
  39. package/dist/chunk-MJZBNWG7.js.map +1 -0
  40. package/dist/{chunk-A7DKIA72.js → chunk-QBJ22YZR.js} +1059 -93
  41. package/dist/chunk-QBJ22YZR.js.map +1 -0
  42. package/dist/{chunk-CYFJCKC4.js → chunk-QGHGJ56O.js} +997 -5
  43. package/dist/chunk-QGHGJ56O.js.map +1 -0
  44. package/dist/{chunk-JYRIOFEN.cjs → chunk-RIKBJLS2.cjs} +1064 -98
  45. package/dist/chunk-RIKBJLS2.cjs.map +1 -0
  46. package/dist/{chunk-U6NDQFOK.cjs → chunk-XDMXXC4Z.cjs} +569 -175
  47. package/dist/chunk-XDMXXC4Z.cjs.map +1 -0
  48. package/dist/commands/index.cjs +860 -0
  49. package/dist/commands/index.cjs.map +1 -0
  50. package/dist/commands/index.d.cts +592 -0
  51. package/dist/commands/index.d.ts +592 -0
  52. package/dist/commands/index.js +860 -0
  53. package/dist/commands/index.js.map +1 -0
  54. package/dist/{controller-OUdxPY-X.d.ts → controller-pePCJLT1.d.cts} +216 -11
  55. package/dist/{controller-OUdxPY-X.d.cts → controller-pePCJLT1.d.ts} +216 -11
  56. package/dist/extensions/index.cjs +14 -4
  57. package/dist/extensions/index.cjs.map +1 -1
  58. package/dist/extensions/index.d.cts +3 -3
  59. package/dist/extensions/index.d.ts +3 -3
  60. package/dist/extensions/index.js +13 -3
  61. package/dist/history/index.cjs +12 -2
  62. package/dist/history/index.cjs.map +1 -1
  63. package/dist/history/index.d.cts +211 -7
  64. package/dist/history/index.d.ts +211 -7
  65. package/dist/history/index.js +13 -3
  66. package/dist/image-editor/index.cjs +418 -13
  67. package/dist/image-editor/index.cjs.map +1 -1
  68. package/dist/image-editor/index.d.cts +154 -3
  69. package/dist/image-editor/index.d.ts +154 -3
  70. package/dist/image-editor/index.js +417 -12
  71. package/dist/image-editor/index.js.map +1 -1
  72. package/dist/{index-k3mFbPx_.d.cts → index-CCr_z9kF.d.cts} +3 -3
  73. package/dist/{index-Ng1pG7JE.d.ts → index-Ck6ajwXh.d.ts} +3 -3
  74. package/dist/index.cjs +275 -83
  75. package/dist/index.cjs.map +1 -1
  76. package/dist/index.d.cts +296 -47
  77. package/dist/index.d.ts +296 -47
  78. package/dist/index.js +266 -74
  79. package/dist/index.js.map +1 -1
  80. package/dist/registry-D5-R90p0.d.cts +209 -0
  81. package/dist/registry-D5-R90p0.d.ts +209 -0
  82. package/dist/{registry-iAHbqkYt.d.cts → registry-GJI4gToU.d.cts} +15 -4
  83. package/dist/{registry-iAHbqkYt.d.ts → registry-GJI4gToU.d.ts} +15 -4
  84. package/dist/serializers/index.cjs +3 -3
  85. package/dist/serializers/index.d.cts +1 -1
  86. package/dist/serializers/index.d.ts +1 -1
  87. package/dist/serializers/index.js +2 -2
  88. package/dist/spreadsheet/index.cjs +23 -3
  89. package/dist/spreadsheet/index.cjs.map +1 -1
  90. package/dist/spreadsheet/index.d.cts +97 -10
  91. package/dist/spreadsheet/index.d.ts +97 -10
  92. package/dist/spreadsheet/index.js +22 -2
  93. package/dist/{track-changes-G8JcWB8b.d.cts → track-changes-BSF58RK0.d.cts} +92 -9
  94. package/dist/{track-changes-G8JcWB8b.d.ts → track-changes-BSF58RK0.d.ts} +92 -9
  95. package/dist/{types-DMe0vFB1.d.cts → types-DX4Mh4SL.d.cts} +1 -1
  96. package/dist/{types-DMe0vFB1.d.ts → types-DX4Mh4SL.d.ts} +1 -1
  97. package/dist/types-GT5a5YAX.d.cts +86 -0
  98. package/dist/types-GT5a5YAX.d.ts +86 -0
  99. package/package.json +8 -2
  100. package/dist/chunk-2TWGLC5K.cjs +0 -262
  101. package/dist/chunk-2TWGLC5K.cjs.map +0 -1
  102. package/dist/chunk-3TYMNULT.js.map +0 -1
  103. package/dist/chunk-4QPLEUL2.cjs.map +0 -1
  104. package/dist/chunk-A7DKIA72.js.map +0 -1
  105. package/dist/chunk-CYFJCKC4.js.map +0 -1
  106. package/dist/chunk-GVW4P7BG.js.map +0 -1
  107. package/dist/chunk-JYRIOFEN.cjs.map +0 -1
  108. package/dist/chunk-KAADNAPF.js +0 -262
  109. package/dist/chunk-KAADNAPF.js.map +0 -1
  110. package/dist/chunk-TVRC4KVT.cjs.map +0 -1
  111. package/dist/chunk-U6NDQFOK.cjs.map +0 -1
  112. package/dist/types-BZgcDsC5.d.cts +0 -42
  113. package/dist/types-BZgcDsC5.d.ts +0 -42
  114. /package/dist/{chunk-KYRZDWM4.js.map → chunk-JJDLPEWL.js.map} +0 -0
@@ -39,12 +39,44 @@ interface CellRange {
39
39
  }
40
40
  interface CellData {
41
41
  raw: string;
42
+ /**
43
+ * Evaluated value. Typed (non-formula) input is parsed: `"120"` → 120,
44
+ * `"TRUE"` → true, `"3/4/2026"` → `"2026-03-04"` (dates are ISO text),
45
+ * `"10:30"` → 0.4375 (a time alone is a fraction of a day); `'120` forces
46
+ * the text `"120"`. Formulas store their result.
47
+ */
42
48
  value: any;
43
49
  error?: string;
44
50
  /** Why the formula failed, e.g. `Argument 2 of SUMIF must be a range.` Set alongside `error`. */
45
51
  errorMessage?: string;
46
52
  format?: CellFormat;
53
+ /**
54
+ * Number format code chosen automatically for typed input, e.g.
55
+ * `"$"#,##0.00` for `$1,200.50`, `0%` for `10%`, `#,##0` for `1,234`,
56
+ * `m/d/yyyy` for `3/4/2026`, `h:mm` for `10:30`. Used by
57
+ * `formatCellDisplay`; absent for formulas and General numbers.
58
+ */
59
+ numberFormat?: string;
47
60
  readOnly?: boolean;
61
+ /**
62
+ * Set (only) on cells showing a value spilled from a dynamic array: the
63
+ * anchor cell holding the formula, e.g. `A1`. Spilled cells keep an empty
64
+ * `raw` and are never stored in the document.
65
+ */
66
+ spillAnchor?: string;
67
+ }
68
+ /** A dynamic array spilled from its anchor cell (the cell holding the formula). */
69
+ interface SpreadsheetSpill {
70
+ /** Anchor cell key, e.g. `A1`. */
71
+ key: string;
72
+ anchor: {
73
+ row: number;
74
+ col: number;
75
+ };
76
+ /** Every cell the array covers, anchor included. */
77
+ range: CellRange;
78
+ /** The anchor's formula. */
79
+ formula: string;
48
80
  }
49
81
  interface SpreadsheetDocument {
50
82
  id: string;
@@ -115,7 +147,7 @@ interface SpreadsheetDataSource {
115
147
  updateRecord(recordId: string, field: string, value: any): Promise<void> | void;
116
148
  }
117
149
 
118
- type FormulaTokenType = 'NUMBER' | 'STRING' | 'BOOLEAN' | 'ERROR' | 'CELL_REF' | 'RANGE' | 'PROPERTY_REF' | 'IDENTIFIER' | 'OPERATOR' | 'LPAREN' | 'RPAREN' | 'COMMA' | 'EOF';
150
+ type FormulaTokenType = 'NUMBER' | 'STRING' | 'BOOLEAN' | 'ERROR' | 'CELL_REF' | 'RANGE' | 'SPILL_REF' | 'PROPERTY_REF' | 'IDENTIFIER' | 'OPERATOR' | 'LPAREN' | 'RPAREN' | 'COMMA' | 'EOF';
119
151
  interface FormulaToken {
120
152
  type: FormulaTokenType;
121
153
  value: string;
@@ -125,7 +157,7 @@ declare function tokenizeFormula(formula: string): FormulaToken[];
125
157
 
126
158
  /** Row number used for the open end of whole-column ranges such as `A:A`. */
127
159
  declare const WHOLE_COLUMN_END_ROW = 1048576;
128
- type ASTNode = LiteralNode | CellRefNode | RangeNode | PropertyRefNode | BinaryOpNode | UnaryOpNode | FunctionCallNode;
160
+ type ASTNode = LiteralNode | CellRefNode | RangeNode | SpillRefNode | NameNode | PropertyRefNode | BinaryOpNode | UnaryOpNode | FunctionCallNode;
129
161
  interface LiteralNode {
130
162
  type: 'Literal';
131
163
  value: number | string | boolean;
@@ -144,6 +176,19 @@ interface RangeNode {
144
176
  endCol: string;
145
177
  endRow: number;
146
178
  }
179
+ /** `A1#`: the whole spill range of the dynamic array anchored at A1. */
180
+ interface SpillRefNode {
181
+ type: 'SpillRef';
182
+ /** Anchor cell, e.g. `A1`. */
183
+ ref: string;
184
+ col: string;
185
+ row: number;
186
+ }
187
+ /** A bare name: a LET variable, or `#NAME?` when nothing defines it. */
188
+ interface NameNode {
189
+ type: 'Name';
190
+ name: string;
191
+ }
147
192
  interface PropertyRefNode {
148
193
  type: 'PropertyRef';
149
194
  property: string;
@@ -193,14 +238,34 @@ declare class FormulaParser {
193
238
  }
194
239
  declare function parseFormula(formula: string): ASTNode;
195
240
 
196
- /**
197
- * Value helpers shared by the formula evaluator and the built-in functions:
198
- * error values, spreadsheet coercion rules, comparisons, ranges and dates.
199
- */
200
241
  /** Spreadsheet error values. They propagate through operators and functions. */
201
242
  declare const FORMULA_ERRORS: Set<string>;
202
- type FormulaErrorCode = '#DIV/0!' | '#VALUE!' | '#REF!' | '#NAME?' | '#N/A' | '#NUM!' | '#CYCLE!' | '#ERROR!';
243
+ type FormulaErrorCode = '#DIV/0!' | '#VALUE!' | '#REF!' | '#NAME?' | '#N/A' | '#NUM!' | '#CYCLE!' | '#ERROR!' | '#SPILL!' | '#CALC!';
203
244
  declare function isFormulaError(value: unknown): value is string;
245
+ /**
246
+ * Number to text as Excel converts it in `&` and General display: up to 15
247
+ * significant digits, scientific for very large or very small magnitudes.
248
+ */
249
+ declare function numberToText(n: number): string;
250
+ /**
251
+ * Compares numbers the way Excel does: both are rounded to 15 significant
252
+ * digits first, so binary noise such as `0.1+0.2` versus `0.3` counts as equal.
253
+ */
254
+ declare function compareNumbers(a: number, b: number): number;
255
+ /**
256
+ * Excel's comparison for the `=`, `<>`, `<`… operators: numbers < text <
257
+ * booleans < errors, numbers compared at 15 significant digits, text
258
+ * case-insensitively. A blank acts as 0, "" or FALSE depending on the other
259
+ * side. Dates are ISO text: two ISO dates compare chronologically
260
+ * ("2026-1-5" is before "2026-01-10"), and an ISO date against a number
261
+ * compares as its serial number.
262
+ */
263
+ declare function compareValues(left: unknown, right: unknown): number;
264
+ /**
265
+ * Sort order (ascending): numbers, text, booleans, errors, then blanks last.
266
+ * Errors are equal to each other, so sorting keeps their order.
267
+ */
268
+ declare function sortCompareValues(left: unknown, right: unknown): number;
204
269
  declare function colNameToIndex(col: string): number;
205
270
  declare function indexToColName(index: number): string;
206
271
  /**
@@ -221,6 +286,20 @@ interface EvaluationContext {
221
286
  */
222
287
  resolveRange?: (startCol: string, startRow: number, endCol: string, endRow: number) => any[];
223
288
  resolveProperty?: (property: string) => any;
289
+ /**
290
+ * The spilled array anchored at a cell, for `A1#` references: its shape and
291
+ * values (column-major, like `resolveRange`), or an error code (e.g.
292
+ * `#REF!` when the cell holds no array).
293
+ */
294
+ resolveSpill?: (col: string, row: number) => FormulaRange | string;
295
+ /**
296
+ * The cell holding the formula being evaluated, used by the implicit
297
+ * intersection operator (`=@A:A` reads the cell in the formula's row).
298
+ */
299
+ getFormulaCell?: () => {
300
+ col: string;
301
+ row: number;
302
+ } | null;
224
303
  }
225
304
  /** A human-readable reason for an error value. */
226
305
  interface FormulaDiagnostic {
@@ -234,12 +313,21 @@ interface FormulaEvaluationResult {
234
313
  error?: FormulaErrorCode;
235
314
  /** Why the formula failed, e.g. `Argument 2 of SUMIF must be a range.` */
236
315
  message?: string;
316
+ /**
317
+ * Set when the formula returned an array of more than one value (a
318
+ * dynamic array). `value` is then its top-left value; a spreadsheet spills
319
+ * the whole array into the cells below and to the right.
320
+ */
321
+ array?: FormulaRange;
237
322
  }
238
323
  /** Generic explanation of an error code, used when no specific reason was recorded. */
239
324
  declare function describeFormulaError(code: string): string;
325
+ /** Largest array a formula may build (SEQUENCE, RANDARRAY, broadcasting). */
326
+ declare const MAX_FORMULA_ARRAY_SIZE = 1000000;
240
327
  declare class FormulaEvaluator {
241
328
  private context;
242
329
  private diagnostics;
330
+ private scopes;
243
331
  constructor(context?: EvaluationContext);
244
332
  /**
245
333
  * Evaluates a formula. Errors in the formula are returned as error values
@@ -248,15 +336,42 @@ declare class FormulaEvaluator {
248
336
  evaluate(astOrFormula: ASTNode | string): any;
249
337
  /**
250
338
  * Evaluates a formula and explains errors. Never throws: malformed formulas
251
- * return `#ERROR!` with the parser's message. A result that is a whole range
252
- * (no dynamic-array spilling) is reduced to its first value.
339
+ * return `#ERROR!` with the parser's message. A result with several values
340
+ * (a range or a dynamic array) is returned in `array`, with its top-left
341
+ * value as `value`; a one-value array is just that value.
253
342
  */
254
343
  evaluateWithDiagnostics(astOrFormula: ASTNode | string): FormulaEvaluationResult;
255
344
  /** Records why an error happened and returns the error code. */
256
345
  private fail;
257
346
  private evaluateNode;
347
+ private unary;
348
+ /** A binary operator on two single values. */
349
+ private binary;
350
+ /**
351
+ * Dates are ISO text: date +/- days is a date, date - date is a number of
352
+ * days (fractional when times are involved).
353
+ */
354
+ private dateArithmetic;
355
+ /**
356
+ * `@` (implicit intersection): a range reference reads the cell in the
357
+ * formula's row (one column) or column (one row); arrays give their
358
+ * top-left value.
359
+ */
360
+ private implicitIntersection;
361
+ private evaluateSpillRef;
258
362
  private evaluateRange;
259
363
  private callFunction;
364
+ private finishCall;
365
+ private lazyArguments;
366
+ /**
367
+ * Applies a scalar function element by element when it receives arrays
368
+ * (`=LEN(A1:A3)`, `=IF(A1:A3>1, "y", "n")`). Arguments typed `range` are
369
+ * passed whole. Returns undefined when no trigger argument is a
370
+ * multi-value array.
371
+ */
372
+ private liftOverArrays;
373
+ /** LET(name1, value1, [name2, value2, ...], calculation). */
374
+ private evaluateLet;
260
375
  private createContext;
261
376
  }
262
377
 
@@ -273,10 +388,25 @@ declare function extractCellDependencies(node: ASTNode): CellDep[];
273
388
  declare class DependencyGraph {
274
389
  private dependencies;
275
390
  private dependents;
391
+ private spillDependencies;
392
+ private spillDependents;
393
+ private spillEdges;
276
394
  setCellFormula(cellKey: string, formulaStr: string | null): void;
277
395
  /** Removes every registered formula and dependency. */
278
396
  clear(): void;
397
+ /**
398
+ * Records the dynamic-array edges of the anchor `anchorKey`, replacing its
399
+ * previous ones: every key in `spilledKeys` (cells holding its spilled
400
+ * values) depends on the anchor, and the anchor depends on every key in
401
+ * `blockingKeys` (cells that stop it spilling). Pass empty lists to remove
402
+ * the anchor's edges.
403
+ */
404
+ setSpillEdges(anchorKey: string, spilledKeys: Iterable<string>, blockingKeys?: Iterable<string>): void;
405
+ /** The spilled cells registered for `anchorKey` by `setSpillEdges`. */
406
+ getSpilledKeys(anchorKey: string): string[];
407
+ /** Formula dependencies plus dynamic-array (spill) dependencies of a cell. */
279
408
  getDependencies(cellKey: string): string[];
409
+ /** Cells depending on `cellKey`, through formulas or spills. */
280
410
  getDependents(cellKey: string): string[];
281
411
  /**
282
412
  * Detects if there is a cycle containing cellKey.
@@ -324,7 +454,8 @@ declare function shiftFormulaReferences(formula: string, change: StructuralChang
324
454
  /**
325
455
  * Calls `rewrite` with the source text of every cell or range reference in
326
456
  * `formula` (e.g. `"$A1"`, `"B2:C10"`, `"A:A"`) and splices in its result.
327
- * String literals, property references and function names (e.g. `LOG10(`)
457
+ * For a spill reference (`A1#`) it receives the anchor (`"A1"`) and the `#`
458
+ * is kept, unless the rewrite returns `#REF!`. String literals, property references and function names (e.g. `LOG10(`)
328
459
  * are skipped. Formulas that fail to tokenize are returned unchanged.
329
460
  */
330
461
  declare function mapFormulaReferences(formula: string, rewrite: (reference: string) => string): string;
@@ -385,6 +516,8 @@ declare const SPREADSHEET_CLIPBOARD_MIME = "application/x.pixerate.spreadsheet+j
385
516
  interface SpreadsheetClipboardCell {
386
517
  raw: string;
387
518
  value: unknown;
519
+ /** Display text for `text/plain` and `text/html` (e.g. `10%` for 0.1); defaults to the value as text. Not stored in the JSON payload. */
520
+ text?: string;
388
521
  }
389
522
  interface SpreadsheetClipboardPayload {
390
523
  type: 'pixerate-spreadsheet';
@@ -524,6 +657,12 @@ interface SpreadsheetControllerOptions {
524
657
  onDocumentChange?: (doc: SpreadsheetDocument) => void;
525
658
  onSelectionChange?: (activeCell: CellCoordinate | null, range: CellRange | null) => void;
526
659
  onCellCommit?: (rowId: string, colId: string, raw: string, value: any) => void;
660
+ /**
661
+ * Approximate memory budget for undo/redo snapshots, in bytes (UTF-16 size of
662
+ * the serialized documents). The oldest undo steps beyond it are dropped, but
663
+ * the most recent one is always kept. Defaults to 64 MiB; 0 = unlimited.
664
+ */
665
+ maxHistoryBytes?: number;
527
666
  }
528
667
  declare class SpreadsheetController {
529
668
  document: SpreadsheetDocument;
@@ -541,11 +680,39 @@ declare class SpreadsheetController {
541
680
  private undoStack;
542
681
  private redoStack;
543
682
  private isApplyingHistory;
683
+ private readonly maxHistoryBytes;
544
684
  private batching;
545
685
  private pendingCommits;
546
686
  private evaluatingRowIndex;
687
+ private evaluatingCell;
688
+ private spills;
689
+ private spilledBy;
690
+ private spillCells;
691
+ private spillChanges;
547
692
  constructor(options?: SpreadsheetControllerOptions);
548
693
  loadDocument(document: SpreadsheetDocument): void;
694
+ /**
695
+ * Re-parses the value of every stored typed (non-formula) cell from its
696
+ * `raw` input, so documents saved before typed input was parsed (whose
697
+ * values are text such as `"120"`) compare and sort as numbers. Cells of
698
+ * bound columns in record rows keep their value: it belongs to the data
699
+ * source.
700
+ */
701
+ private rederiveTypedValues;
702
+ /**
703
+ * Value of typed (non-formula) input: a number, boolean, ISO date, error
704
+ * or text (see `parseCellInput`), its automatic number format, and the
705
+ * `CellFormat` to use: the automatic one (currency, percentage, date,
706
+ * number) when `format` is unset or `text` (the default of new columns).
707
+ */
708
+ private typedCell;
709
+ /**
710
+ * Typed input for a bound field, coerced by the field's declared type:
711
+ * number, boolean and date fields get a number, boolean or ISO date when
712
+ * the input parses as one; string and enum fields (and unknown fields)
713
+ * keep the text exactly as typed.
714
+ */
715
+ private boundInputValue;
549
716
  registerDataSource(ds: SpreadsheetDataSource): void;
550
717
  setPrimaryDataSource(dataSourceId: string | undefined): void;
551
718
  syncWithDataSource(): void;
@@ -562,6 +729,14 @@ declare class SpreadsheetController {
562
729
  * order. Every cell in a reference cycle is marked `#CYCLE!`.
563
730
  */
564
731
  recalculateCell(rowId: string, colId: string): void;
732
+ /**
733
+ * Recalculates `keys` (and, with `includeDependents`, their dependents) in
734
+ * dependency order. Spill ranges are only known after evaluating their
735
+ * anchors, so when a pass changes which cells hold spilled values (and so
736
+ * the dependency graph), the dependents of those cells are recalculated in
737
+ * another pass, until nothing changes.
738
+ */
739
+ private recalculateKeys;
565
740
  /**
566
741
  * Rebuilds the dependency graph from scratch and recalculates every formula
567
742
  * in dependency order.
@@ -571,6 +746,26 @@ declare class SpreadsheetController {
571
746
  private locateCellKey;
572
747
  private markCycle;
573
748
  private evalSingleCellByKey;
749
+ /**
750
+ * Spills `array` from the anchor at (row, col) into the cells below and to
751
+ * the right. Returns why it can't (the anchor then shows `#SPILL!`), or
752
+ * null once placed. The grid never grows to fit an array, as in Excel.
753
+ */
754
+ private placeSpill;
755
+ /** Removes the array spilled from `anchor`. With `keepEdges`, its dependency edges stay. */
756
+ private clearSpill;
757
+ private forgetSpilledCell;
758
+ private resolveSpillByCoord;
759
+ private toSpill;
760
+ /**
761
+ * The dynamic array covering (row, col), whether it is the anchor (the cell
762
+ * holding the formula) or a spilled cell; null when there is none.
763
+ */
764
+ getSpillAt(row: number, col: number): SpreadsheetSpill | null;
765
+ /** Every dynamic array currently spilled. */
766
+ getSpills(): SpreadsheetSpill[];
767
+ /** Whether `range` overlaps a spilled array (its anchor or spilled cells). */
768
+ private intersectsSpill;
574
769
  private resolveCellByCoord;
575
770
  private resolveRangeByCoords;
576
771
  private resolveCurrentRowProperty;
@@ -643,6 +838,7 @@ declare class SpreadsheetController {
643
838
  * HTML table, then TSV. Returns false when there was nothing to paste.
644
839
  */
645
840
  pasteClipboardData(source: SpreadsheetClipboardSource, target?: CellPosition): boolean;
841
+ private spillAnchorInRange;
646
842
  private getSelectionTopLeft;
647
843
  /** The table settings object, created on first use. */
648
844
  private get table();
@@ -746,9 +942,18 @@ declare class SpreadsheetController {
746
942
  */
747
943
  getViewModel(): SpreadsheetViewModel;
748
944
  private recordSnapshot;
945
+ /** Drops the oldest snapshots beyond `maxHistoryBytes`, always keeping the newest. */
946
+ private trimHistory;
947
+ /** Approximate bytes held by the undo/redo snapshots (UTF-16 size). */
948
+ getHistoryByteSize(): number;
949
+ /** Number of undo / redo snapshots currently held. */
950
+ getHistoryDepth(): {
951
+ undo: number;
952
+ redo: number;
953
+ };
749
954
  undo(): void;
750
955
  redo(): void;
751
956
  private notifyChange;
752
957
  }
753
958
 
754
- export { type SpreadsheetFilterState as $, type ASTNode as A, type BinaryOpNode as B, type CellCoordinate as C, DEFAULT_COLUMN_WIDTH as D, type EvaluationContext as E, FORMULA_ERRORS as F, type GroupAggregate as G, type PropertyRefNode as H, type RowType as I, type SortDirection as J, type SortKey as K, type LiteralNode as L, type SpreadsheetCellSpan as M, type NewFilterRule as N, type SpreadsheetClipboardCell as O, type ParsedSpreadsheetClipboard as P, type SpreadsheetClipboardData as Q, type RangeNode as R, SPREADSHEET_CLIPBOARD_MIME as S, type SpreadsheetClipboardPayload as T, type SpreadsheetClipboardSource as U, type SpreadsheetColumn as V, SpreadsheetController as W, type SpreadsheetControllerOptions as X, type SpreadsheetDataSource as Y, type SpreadsheetDataSourceField as Z, type SpreadsheetDocument as _, type CellData as a, type SpreadsheetGrouping as a0, type SpreadsheetRow as a1, type SpreadsheetRowGroup as a2, type SpreadsheetRowSection as a3, type SpreadsheetTableSettings as a4, type SpreadsheetViewColumn as a5, type SpreadsheetViewModel as a6, type SpreadsheetViewRow as a7, type StructuralChange as a8, type UnaryOpNode as a9, WHOLE_COLUMN_END_ROW as aa, buildSpreadsheetView as ab, colNameToIndex as ac, columnDependencyKey as ad, computeRowGroups as ae, createSpreadsheetClipboardData as af, describeFormulaError as ag, extractCellDependencies as ah, getRowSection as ai, getTableSections as aj, indexToColName as ak, isFormulaError as al, mapFormulaReferences as am, offsetFormulaReferences as an, parseCellReference as ao, parseFormula as ap, parseHtmlTable as aq, parseRange as ar, readSpreadsheetClipboard as as, rebaseClipboardRows as at, remapFormulaReferences as au, rowPassesFilters as av, serializeHtmlTable as aw, shiftFormulaReferences as ax, tokenizeFormula as ay, type CellDep as b, type CellFormat as c, type CellPosition as d, type CellRange as e, type CellRefNode as f, type CellValueReader as g, type ColumnBinding as h, type ColumnType as i, type CsvExportOptions as j, type CsvImportOptions as k, DEFAULT_ROW_HEIGHT as l, DataSourceBinder as m, DependencyGraph as n, type FilterOperator as o, type FilterRule as p, type FormulaDiagnostic as q, type FormulaErrorCode as r, type FormulaEvaluationResult as s, FormulaEvaluator as t, FormulaParser as u, type FormulaRange as v, type FormulaToken as w, type FormulaTokenType as x, type FunctionCallNode as y, type GroupSummary as z };
959
+ export { type SpreadsheetDataSource as $, type ASTNode as A, type BinaryOpNode as B, type CellCoordinate as C, DEFAULT_COLUMN_WIDTH as D, type EvaluationContext as E, FORMULA_ERRORS as F, type GroupAggregate as G, type NewFilterRule as H, type PropertyRefNode as I, type RowType as J, SPREADSHEET_CLIPBOARD_MIME as K, type LiteralNode as L, MAX_FORMULA_ARRAY_SIZE as M, type NameNode as N, type SortDirection as O, type ParsedSpreadsheetClipboard as P, type SortKey as Q, type RangeNode as R, SpreadsheetController as S, type SpillRefNode as T, type SpreadsheetCellSpan as U, type SpreadsheetClipboardCell as V, type SpreadsheetClipboardData as W, type SpreadsheetClipboardPayload as X, type SpreadsheetClipboardSource as Y, type SpreadsheetColumn as Z, type SpreadsheetControllerOptions as _, type CellData as a, type SpreadsheetDataSourceField as a0, type SpreadsheetDocument as a1, type SpreadsheetFilterState as a2, type SpreadsheetGrouping as a3, type SpreadsheetRow as a4, type SpreadsheetRowGroup as a5, type SpreadsheetRowSection as a6, type SpreadsheetSpill as a7, type SpreadsheetTableSettings as a8, type SpreadsheetViewColumn as a9, rebaseClipboardRows as aA, remapFormulaReferences as aB, rowPassesFilters as aC, serializeHtmlTable as aD, shiftFormulaReferences as aE, sortCompareValues as aF, tokenizeFormula as aG, type SpreadsheetViewModel as aa, type SpreadsheetViewRow as ab, type StructuralChange as ac, type UnaryOpNode as ad, WHOLE_COLUMN_END_ROW as ae, buildSpreadsheetView as af, colNameToIndex as ag, columnDependencyKey as ah, compareNumbers as ai, compareValues as aj, computeRowGroups as ak, createSpreadsheetClipboardData as al, describeFormulaError as am, extractCellDependencies as an, getRowSection as ao, getTableSections as ap, indexToColName as aq, isFormulaError as ar, mapFormulaReferences as as, numberToText as at, offsetFormulaReferences as au, parseCellReference as av, parseFormula as aw, parseHtmlTable as ax, parseRange as ay, readSpreadsheetClipboard as az, type CellDep as b, type CellFormat as c, type CellPosition as d, type CellRange as e, type CellRefNode as f, type CellValueReader as g, type ColumnBinding as h, type ColumnType as i, type CsvExportOptions as j, type CsvImportOptions as k, DEFAULT_ROW_HEIGHT as l, DataSourceBinder as m, DependencyGraph as n, type FilterOperator as o, type FilterRule as p, type FormulaDiagnostic as q, type FormulaErrorCode as r, type FormulaEvaluationResult as s, FormulaEvaluator as t, FormulaParser as u, type FormulaRange as v, type FormulaToken as w, type FormulaTokenType as x, type FunctionCallNode as y, type GroupSummary as z };
@@ -69,9 +69,9 @@
69
69
 
70
70
 
71
71
 
72
- var _chunk4QPLEUL2cjs = require('../chunk-4QPLEUL2.cjs');
72
+ var _chunkGVSMRPHBcjs = require('../chunk-GVSMRPHB.cjs');
73
73
  require('../chunk-AXV2ZW34.cjs');
74
- require('../chunk-LA7PEGU3.cjs');
74
+ require('../chunk-CL37JGFW.cjs');
75
75
 
76
76
 
77
77
 
@@ -90,12 +90,12 @@ require('../chunk-LA7PEGU3.cjs');
90
90
 
91
91
 
92
92
 
93
- var _chunkTVRC4KVTcjs = require('../chunk-TVRC4KVT.cjs');
94
93
 
95
94
 
96
95
 
97
96
 
98
97
 
98
+ var _chunkAA4ZEVCCcjs = require('../chunk-AA4ZEVCC.cjs');
99
99
 
100
100
 
101
101
 
@@ -179,5 +179,15 @@ var _chunkTVRC4KVTcjs = require('../chunk-TVRC4KVT.cjs');
179
179
 
180
180
 
181
181
 
182
- exports.Autocorrect = _chunk4QPLEUL2cjs.Autocorrect; exports.Bookmark = _chunk4QPLEUL2cjs.Bookmark; exports.COMMENT_MARK_NAME = _chunk4QPLEUL2cjs.COMMENT_MARK_NAME; exports.ColorHighlighter = _chunk4QPLEUL2cjs.ColorHighlighter; exports.CommentStore = _chunkTVRC4KVTcjs.CommentStore; exports.Comments = _chunk4QPLEUL2cjs.Comments; exports.CrossReference = _chunk4QPLEUL2cjs.CrossReference; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunk4QPLEUL2cjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DELETION_MARK_NAME = _chunkTVRC4KVTcjs.DELETION_MARK_NAME; exports.FileImport = _chunk4QPLEUL2cjs.FileImport; exports.FontSize = _chunk4QPLEUL2cjs.FontSize; exports.Footnote = _chunk4QPLEUL2cjs.Footnote; exports.FootnoteReference = _chunk4QPLEUL2cjs.FootnoteReference; exports.Footnotes = _chunk4QPLEUL2cjs.Footnotes; exports.GradientText = _chunk4QPLEUL2cjs.GradientText; exports.INSERTION_MARK_NAME = _chunkTVRC4KVTcjs.INSERTION_MARK_NAME; exports.Image = _chunk4QPLEUL2cjs.Image; exports.LoadingNode = _chunk4QPLEUL2cjs.LoadingNode; exports.Markdown = _chunk4QPLEUL2cjs.Markdown; exports.Mention = _chunk4QPLEUL2cjs.Mention; exports.Outline = _chunk4QPLEUL2cjs.Outline; exports.RichClipboard = _chunk4QPLEUL2cjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunk4QPLEUL2cjs.SMILIE_REPLACEMENTS; exports.SlashCommands = _chunk4QPLEUL2cjs.SlashCommands; exports.SmilieReplacer = _chunk4QPLEUL2cjs.SmilieReplacer; exports.TRACK_CHANGES_SKIP_META = _chunkTVRC4KVTcjs.TRACK_CHANGES_SKIP_META; exports.TableOfContents = _chunk4QPLEUL2cjs.TableOfContents; exports.TemplateSuggestions = _chunk4QPLEUL2cjs.TemplateSuggestions; exports.TrackChanges = _chunkTVRC4KVTcjs.TrackChanges; exports.TrackChangesStore = _chunkTVRC4KVTcjs.TrackChangesStore; exports.TrackedDeletion = _chunkTVRC4KVTcjs.TrackedDeletion; exports.TrackedInsertion = _chunkTVRC4KVTcjs.TrackedInsertion; exports.autocorrectPluginKey = _chunk4QPLEUL2cjs.autocorrectPluginKey; exports.buildOutlineTree = _chunk4QPLEUL2cjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunk4QPLEUL2cjs.capitalizeSentenceRules; exports.commentsPluginKey = _chunk4QPLEUL2cjs.commentsPluginKey; exports.computeOutline = _chunk4QPLEUL2cjs.computeOutline; exports.createCommentStore = _chunkTVRC4KVTcjs.createCommentStore; exports.createMentionExtension = _chunk4QPLEUL2cjs.createMentionExtension; exports.createOutlineStore = _chunk4QPLEUL2cjs.createOutlineStore; exports.createReviewId = _chunkTVRC4KVTcjs.createReviewId; exports.createRichTextPreset = _chunk4QPLEUL2cjs.createRichTextPreset; exports.crossReferencePluginKey = _chunk4QPLEUL2cjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunk4QPLEUL2cjs.defaultAutocorrectRules; exports.documentStructureCommandItems = _chunk4QPLEUL2cjs.documentStructureCommandItems; exports.fileImportPluginKey = _chunk4QPLEUL2cjs.fileImportPluginKey; exports.findAutocorrection = _chunk4QPLEUL2cjs.findAutocorrection; exports.findCommentRanges = _chunk4QPLEUL2cjs.findCommentRanges; exports.findHexColors = _chunk4QPLEUL2cjs.findHexColors; exports.footnotesMarkdownIt = _chunk4QPLEUL2cjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunk4QPLEUL2cjs.footnotesPluginKey; exports.formatReviewTime = _chunkTVRC4KVTcjs.formatReviewTime; exports.fractionRules = _chunk4QPLEUL2cjs.fractionRules; exports.getActiveHeading = _chunk4QPLEUL2cjs.getActiveHeading; exports.getBookmarks = _chunk4QPLEUL2cjs.getBookmarks; exports.getCommentAnchors = _chunk4QPLEUL2cjs.getCommentAnchors; exports.getCommentAuthor = _chunk4QPLEUL2cjs.getCommentAuthor; exports.getCommentIdsAt = _chunk4QPLEUL2cjs.getCommentIdsAt; exports.getCommentStore = _chunk4QPLEUL2cjs.getCommentStore; exports.getCrossReferenceTargets = _chunk4QPLEUL2cjs.getCrossReferenceTargets; exports.getDocumentStructureCommandItems = _chunk4QPLEUL2cjs.getDocumentStructureCommandItems; exports.getFootnotes = _chunk4QPLEUL2cjs.getFootnotes; exports.getOutline = _chunk4QPLEUL2cjs.getOutline; exports.getTableOfContentsEntries = _chunk4QPLEUL2cjs.getTableOfContentsEntries; exports.getTrackChangesStore = _chunkTVRC4KVTcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunkTVRC4KVTcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunkTVRC4KVTcjs.getTrackedChanges; exports.handleImageInsertion = _chunk4QPLEUL2cjs.handleImageInsertion; exports.imagePastePluginKey = _chunk4QPLEUL2cjs.imagePastePluginKey; exports.insertImageNode = _chunk4QPLEUL2cjs.insertImageNode; exports.isInsidePromptToken = _chunk4QPLEUL2cjs.isInsidePromptToken; exports.isTrackChangesEnabled = _chunkTVRC4KVTcjs.isTrackChangesEnabled; exports.navigateToHeading = _chunk4QPLEUL2cjs.navigateToHeading; exports.outlinePluginKey = _chunk4QPLEUL2cjs.outlinePluginKey; exports.removeImageNode = _chunk4QPLEUL2cjs.removeImageNode; exports.resolveTrackedChanges = _chunkTVRC4KVTcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunk4QPLEUL2cjs.richClipboardPluginKey; exports.smartQuoteRules = _chunk4QPLEUL2cjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunk4QPLEUL2cjs.smilieAutocorrectRules; exports.symbolRules = _chunk4QPLEUL2cjs.symbolRules; exports.syncFootnotes = _chunk4QPLEUL2cjs.syncFootnotes; exports.tableOfContentsMarkdownIt = _chunk4QPLEUL2cjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunk4QPLEUL2cjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunkTVRC4KVTcjs.trackChangesPluginKey; exports.twoInitialCapitalsRules = _chunk4QPLEUL2cjs.twoInitialCapitalsRules; exports.updateImageSrc = _chunk4QPLEUL2cjs.updateImageSrc; exports.writeRichClipboard = _chunk4QPLEUL2cjs.writeRichClipboard;
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+ exports.Autocorrect = _chunkGVSMRPHBcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunkAA4ZEVCCcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkGVSMRPHBcjs.Bookmark; exports.COMMENT_MARK_NAME = _chunkGVSMRPHBcjs.COMMENT_MARK_NAME; exports.ColorHighlighter = _chunkGVSMRPHBcjs.ColorHighlighter; exports.CommentStore = _chunkAA4ZEVCCcjs.CommentStore; exports.Comments = _chunkGVSMRPHBcjs.Comments; exports.CrossReference = _chunkGVSMRPHBcjs.CrossReference; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkGVSMRPHBcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DELETION_MARK_NAME = _chunkAA4ZEVCCcjs.DELETION_MARK_NAME; exports.FORMAT_CHANGE_MARK_NAME = _chunkAA4ZEVCCcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkGVSMRPHBcjs.FileImport; exports.FontSize = _chunkGVSMRPHBcjs.FontSize; exports.Footnote = _chunkGVSMRPHBcjs.Footnote; exports.FootnoteReference = _chunkGVSMRPHBcjs.FootnoteReference; exports.Footnotes = _chunkGVSMRPHBcjs.Footnotes; exports.GradientText = _chunkGVSMRPHBcjs.GradientText; exports.INSERTION_MARK_NAME = _chunkAA4ZEVCCcjs.INSERTION_MARK_NAME; exports.Image = _chunkGVSMRPHBcjs.Image; exports.LoadingNode = _chunkGVSMRPHBcjs.LoadingNode; exports.Markdown = _chunkGVSMRPHBcjs.Markdown; exports.Mention = _chunkGVSMRPHBcjs.Mention; exports.Outline = _chunkGVSMRPHBcjs.Outline; exports.RichClipboard = _chunkGVSMRPHBcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkGVSMRPHBcjs.SMILIE_REPLACEMENTS; exports.SlashCommands = _chunkGVSMRPHBcjs.SlashCommands; exports.SmilieReplacer = _chunkGVSMRPHBcjs.SmilieReplacer; exports.TRACK_CHANGES_SKIP_META = _chunkAA4ZEVCCcjs.TRACK_CHANGES_SKIP_META; exports.TableOfContents = _chunkGVSMRPHBcjs.TableOfContents; exports.TemplateSuggestions = _chunkGVSMRPHBcjs.TemplateSuggestions; exports.TrackChanges = _chunkAA4ZEVCCcjs.TrackChanges; exports.TrackChangesStore = _chunkAA4ZEVCCcjs.TrackChangesStore; exports.TrackedDeletion = _chunkAA4ZEVCCcjs.TrackedDeletion; exports.TrackedFormatChange = _chunkAA4ZEVCCcjs.TrackedFormatChange; exports.TrackedInsertion = _chunkAA4ZEVCCcjs.TrackedInsertion; exports.autocorrectPluginKey = _chunkGVSMRPHBcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkGVSMRPHBcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkGVSMRPHBcjs.capitalizeSentenceRules; exports.commentsPluginKey = _chunkGVSMRPHBcjs.commentsPluginKey; exports.computeOutline = _chunkGVSMRPHBcjs.computeOutline; exports.createCommentStore = _chunkAA4ZEVCCcjs.createCommentStore; exports.createMentionExtension = _chunkGVSMRPHBcjs.createMentionExtension; exports.createOutlineStore = _chunkGVSMRPHBcjs.createOutlineStore; exports.createReviewId = _chunkAA4ZEVCCcjs.createReviewId; exports.createRichTextPreset = _chunkGVSMRPHBcjs.createRichTextPreset; exports.crossReferencePluginKey = _chunkGVSMRPHBcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkGVSMRPHBcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunkAA4ZEVCCcjs.describeBlockChange; exports.describeFormatChange = _chunkAA4ZEVCCcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkGVSMRPHBcjs.documentStructureCommandItems; exports.fileImportPluginKey = _chunkGVSMRPHBcjs.fileImportPluginKey; exports.findAutocorrection = _chunkGVSMRPHBcjs.findAutocorrection; exports.findCommentRanges = _chunkGVSMRPHBcjs.findCommentRanges; exports.findHexColors = _chunkGVSMRPHBcjs.findHexColors; exports.footnotesMarkdownIt = _chunkGVSMRPHBcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkGVSMRPHBcjs.footnotesPluginKey; exports.formatReviewTime = _chunkAA4ZEVCCcjs.formatReviewTime; exports.fractionRules = _chunkGVSMRPHBcjs.fractionRules; exports.getActiveHeading = _chunkGVSMRPHBcjs.getActiveHeading; exports.getBookmarks = _chunkGVSMRPHBcjs.getBookmarks; exports.getCommentAnchors = _chunkGVSMRPHBcjs.getCommentAnchors; exports.getCommentAuthor = _chunkGVSMRPHBcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkGVSMRPHBcjs.getCommentIdsAt; exports.getCommentStore = _chunkGVSMRPHBcjs.getCommentStore; exports.getCrossReferenceTargets = _chunkGVSMRPHBcjs.getCrossReferenceTargets; exports.getDocumentStructureCommandItems = _chunkGVSMRPHBcjs.getDocumentStructureCommandItems; exports.getFootnotes = _chunkGVSMRPHBcjs.getFootnotes; exports.getOutline = _chunkGVSMRPHBcjs.getOutline; exports.getTableOfContentsEntries = _chunkGVSMRPHBcjs.getTableOfContentsEntries; exports.getTrackChangesStore = _chunkAA4ZEVCCcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunkAA4ZEVCCcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunkAA4ZEVCCcjs.getTrackedChanges; exports.handleImageInsertion = _chunkGVSMRPHBcjs.handleImageInsertion; exports.imagePastePluginKey = _chunkGVSMRPHBcjs.imagePastePluginKey; exports.insertImageNode = _chunkGVSMRPHBcjs.insertImageNode; exports.isInsidePromptToken = _chunkGVSMRPHBcjs.isInsidePromptToken; exports.isTrackChangesEnabled = _chunkAA4ZEVCCcjs.isTrackChangesEnabled; exports.navigateToHeading = _chunkGVSMRPHBcjs.navigateToHeading; exports.outlinePluginKey = _chunkGVSMRPHBcjs.outlinePluginKey; exports.removeImageNode = _chunkGVSMRPHBcjs.removeImageNode; exports.resolveTrackedChanges = _chunkAA4ZEVCCcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkGVSMRPHBcjs.richClipboardPluginKey; exports.smartQuoteRules = _chunkGVSMRPHBcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkGVSMRPHBcjs.smilieAutocorrectRules; exports.symbolRules = _chunkGVSMRPHBcjs.symbolRules; exports.syncFootnotes = _chunkGVSMRPHBcjs.syncFootnotes; exports.tableOfContentsMarkdownIt = _chunkGVSMRPHBcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkGVSMRPHBcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunkAA4ZEVCCcjs.trackChangesPluginKey; exports.twoInitialCapitalsRules = _chunkGVSMRPHBcjs.twoInitialCapitalsRules; exports.updateImageSrc = _chunkGVSMRPHBcjs.updateImageSrc; exports.writeRichClipboard = _chunkGVSMRPHBcjs.writeRichClipboard;
183
193
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,08KAAC","file":"/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mzLAAC","file":"/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"}
@@ -1,5 +1,5 @@
1
- export { A as AddCommentOptions, a as Autocorrect, b as AutocorrectContext, c as AutocorrectCorrection, d as AutocorrectOptions, e as AutocorrectRule, f as AutocorrectStorage, g as Bookmark, h as BookmarkInfo, i as BookmarkOptions, C as COMMENT_MARK_NAME, j as ColorHighlighter, k as CommentRange, l as Comments, m as CommentsOptions, n as CommentsStorage, p as CrossReference, q as CrossReferenceOptions, r as CrossReferenceTarget, s as CrossReferenceTargetType, t as DEFAULT_AUTOCORRECT_EXCEPTIONS, v as DocumentStructureCommandArgs, w as DocumentStructureCommandItem, F as FileImport, x as FileImportOptions, y as FocusHeadingOptions, z as FontSize, E as Footnote, G as FootnoteInfo, H as FootnoteReference, I as Footnotes, J as FootnotesOptions, K as GradientText, L as GradientTextOptions, M as Image, N as ImageOptions, O as InsertFootnoteOptions, P as InsertTableOfContentsOptions, Q as LoadingNode, R as Markdown, S as Outline, T as OutlineHeading, U as OutlineOptions, V as OutlineSnapshot, W as OutlineStorage, X as OutlineStore, Y as OutlineTreeItem, Z as RichClipboard, _ as RichClipboardOptions, $ as RichClipboardStorage, a0 as RichTextPresetOptions, a1 as SMILIE_REPLACEMENTS, a2 as SetBookmarkOptions, a3 as SlashCommandMatchData, a4 as SlashCommands, a5 as SlashCommandsOptions, a6 as SmilieReplacer, a7 as TableOfContents, a8 as TableOfContentsEntry, a9 as TableOfContentsOptions, aa as TemplateSuggestions, ab as TemplateSuggestionsOptions, ac as autocorrectPluginKey, ad as buildOutlineTree, ae as capitalizeSentenceRules, af as commentsPluginKey, ag as computeOutline, ai as createOutlineStore, aj as createRichTextPreset, ak as crossReferencePluginKey, al as defaultAutocorrectRules, an as documentStructureCommandItems, ao as fileImportPluginKey, ap as findAutocorrection, aq as findCommentRanges, ar as findHexColors, at as footnotesMarkdownIt, au as footnotesPluginKey, av as fractionRules, aw as getActiveHeading, ax as getBookmarks, ay as getCommentAnchors, az as getCommentAuthor, aA as getCommentIdsAt, aB as getCommentStore, aC as getCrossReferenceTargets, aD as getDocumentStructureCommandItems, aE as getFootnotes, aG as getOutline, aH as getTableOfContentsEntries, aI as handleImageInsertion, aK as imagePastePluginKey, aM as insertImageNode, aN as isInsidePromptToken, aP as navigateToHeading, aQ as outlinePluginKey, aT as removeImageNode, aU as richClipboardPluginKey, aW as smartQuoteRules, aX as smilieAutocorrectRules, aY as symbolRules, aZ as syncFootnotes, a_ as tableOfContentsMarkdownIt, a$ as tableOfContentsPluginKey, b0 as twoInitialCapitalsRules, b2 as updateImageSrc, b3 as writeRichClipboard } from '../index-k3mFbPx_.cjs';
2
- export { C as CommentAnchor, a as CommentReply, b as CommentStore, c as CommentStoreListener, d as CommentStoreOptions, e as CommentStoreSnapshot, f as CommentThread, g as CreateThreadInput, D as DELETION_MARK_NAME, I as INSERTION_MARK_NAME, M as Mention, h as MentionEntity, i as MentionOptions, R as ReviewAuthor, S as SerializedComments, T as TRACK_CHANGES_SKIP_META, j as TrackChanges, k as TrackChangesOptions, l as TrackChangesSnapshot, m as TrackChangesStorage, n as TrackChangesStore, o as TrackedChange, p as TrackedChangeAttributes, q as TrackedChangeType, r as TrackedChangesView, s as TrackedDeletion, t as TrackedInsertion, u as createCommentStore, v as createMentionExtension, w as createReviewId, x as formatReviewTime, y as getTrackChangesStore, z as getTrackedChangeAt, A as getTrackedChanges, B as isTrackChangesEnabled, E as resolveTrackedChanges, F as trackChangesPluginKey } from '../track-changes-G8JcWB8b.cjs';
1
+ export { A as AddCommentOptions, b as Autocorrect, c as AutocorrectContext, d as AutocorrectCorrection, e as AutocorrectOptions, f as AutocorrectRule, g as AutocorrectStorage, h as Bookmark, i as BookmarkInfo, j as BookmarkOptions, C as COMMENT_MARK_NAME, k as ColorHighlighter, l as CommentRange, m as Comments, n as CommentsOptions, o as CommentsStorage, q as CrossReference, r as CrossReferenceOptions, s as CrossReferenceTarget, t as CrossReferenceTargetType, u as DEFAULT_AUTOCORRECT_EXCEPTIONS, v as DocumentStructureCommandArgs, w as DocumentStructureCommandItem, F as FileImport, x as FileImportOptions, y as FocusHeadingOptions, z as FontSize, E as Footnote, G as FootnoteInfo, H as FootnoteReference, I as Footnotes, J as FootnotesOptions, K as GradientText, L as GradientTextOptions, M as Image, N as ImageOptions, O as InsertFootnoteOptions, P as InsertTableOfContentsOptions, Q as LoadingNode, R as Markdown, S as Outline, T as OutlineHeading, U as OutlineOptions, V as OutlineSnapshot, W as OutlineStorage, X as OutlineStore, Y as OutlineTreeItem, Z as RichClipboard, _ as RichClipboardOptions, $ as RichClipboardStorage, a0 as RichTextPresetOptions, a1 as SMILIE_REPLACEMENTS, a2 as SetBookmarkOptions, a3 as SlashCommandMatchData, a4 as SlashCommands, a5 as SlashCommandsOptions, a6 as SmilieReplacer, a7 as TableOfContents, a8 as TableOfContentsEntry, a9 as TableOfContentsOptions, aa as TemplateSuggestions, ab as TemplateSuggestionsOptions, ac as autocorrectPluginKey, ad as buildOutlineTree, ae as capitalizeSentenceRules, af as commentsPluginKey, ag as computeOutline, ai as createOutlineStore, aj as createRichTextPreset, ak as crossReferencePluginKey, al as defaultAutocorrectRules, an as documentStructureCommandItems, ao as fileImportPluginKey, ap as findAutocorrection, aq as findCommentRanges, ar as findHexColors, at as footnotesMarkdownIt, au as footnotesPluginKey, av as fractionRules, aw as getActiveHeading, ax as getBookmarks, ay as getCommentAnchors, az as getCommentAuthor, aA as getCommentIdsAt, aB as getCommentStore, aC as getCrossReferenceTargets, aD as getDocumentStructureCommandItems, aE as getFootnotes, aG as getOutline, aH as getTableOfContentsEntries, aI as handleImageInsertion, aK as imagePastePluginKey, aM as insertImageNode, aN as isInsidePromptToken, aP as navigateToHeading, aQ as outlinePluginKey, aT as removeImageNode, aU as richClipboardPluginKey, aW as smartQuoteRules, aX as smilieAutocorrectRules, aY as symbolRules, aZ as syncFootnotes, a_ as tableOfContentsMarkdownIt, a$ as tableOfContentsPluginKey, b0 as twoInitialCapitalsRules, b2 as updateImageSrc, b3 as writeRichClipboard } from '../index-CCr_z9kF.cjs';
2
+ export { B as BLOCK_CHANGE_ATTRIBUTE, C as CommentAnchor, a as CommentReply, b as CommentStore, c as CommentStoreListener, d as CommentStoreOptions, e as CommentStoreSnapshot, f as CommentThread, g as CreateThreadInput, D as DELETION_MARK_NAME, F as FORMAT_CHANGE_MARK_NAME, I as INSERTION_MARK_NAME, M as Mention, h as MentionEntity, i as MentionOptions, R as ReviewAuthor, S as SerializedComments, T as TRACK_CHANGES_SKIP_META, j as TrackChanges, k as TrackChangesOptions, l as TrackChangesSnapshot, m as TrackChangesStorage, n as TrackChangesStore, o as TrackedBlockChangeAttributes, p as TrackedBlockSnapshot, q as TrackedChange, r as TrackedChangeAttributes, s as TrackedChangeType, t as TrackedChangesView, u as TrackedDeletion, v as TrackedFormatChange, w as TrackedFormatChangeAttributes, x as TrackedFormatSummary, y as TrackedInsertion, z as TrackedMark, A as createCommentStore, E as createMentionExtension, G as createReviewId, H as describeBlockChange, J as describeFormatChange, K as formatReviewTime, L as getTrackChangesStore, N as getTrackedChangeAt, O as getTrackedChanges, P as isTrackChangesEnabled, Q as resolveTrackedChanges, U as trackChangesPluginKey } from '../track-changes-BSF58RK0.cjs';
3
3
  export { MarkdownOptions } from 'tiptap-markdown';
4
4
  import '@tiptap/core';
5
5
  import '../tokens-CyLZmIei.cjs';
@@ -7,6 +7,6 @@ import '@tiptap/pm/state';
7
7
  import '@tiptap/pm/view';
8
8
  import '@tiptap/pm/model';
9
9
  import '@tiptap/extension-image';
10
- import '../registry-iAHbqkYt.cjs';
10
+ import '../registry-GJI4gToU.cjs';
11
11
  import '@tiptap/extension-mention';
12
12
  import '@tiptap/suggestion';
@@ -1,5 +1,5 @@
1
- export { A as AddCommentOptions, a as Autocorrect, b as AutocorrectContext, c as AutocorrectCorrection, d as AutocorrectOptions, e as AutocorrectRule, f as AutocorrectStorage, g as Bookmark, h as BookmarkInfo, i as BookmarkOptions, C as COMMENT_MARK_NAME, j as ColorHighlighter, k as CommentRange, l as Comments, m as CommentsOptions, n as CommentsStorage, p as CrossReference, q as CrossReferenceOptions, r as CrossReferenceTarget, s as CrossReferenceTargetType, t as DEFAULT_AUTOCORRECT_EXCEPTIONS, v as DocumentStructureCommandArgs, w as DocumentStructureCommandItem, F as FileImport, x as FileImportOptions, y as FocusHeadingOptions, z as FontSize, E as Footnote, G as FootnoteInfo, H as FootnoteReference, I as Footnotes, J as FootnotesOptions, K as GradientText, L as GradientTextOptions, M as Image, N as ImageOptions, O as InsertFootnoteOptions, P as InsertTableOfContentsOptions, Q as LoadingNode, R as Markdown, S as Outline, T as OutlineHeading, U as OutlineOptions, V as OutlineSnapshot, W as OutlineStorage, X as OutlineStore, Y as OutlineTreeItem, Z as RichClipboard, _ as RichClipboardOptions, $ as RichClipboardStorage, a0 as RichTextPresetOptions, a1 as SMILIE_REPLACEMENTS, a2 as SetBookmarkOptions, a3 as SlashCommandMatchData, a4 as SlashCommands, a5 as SlashCommandsOptions, a6 as SmilieReplacer, a7 as TableOfContents, a8 as TableOfContentsEntry, a9 as TableOfContentsOptions, aa as TemplateSuggestions, ab as TemplateSuggestionsOptions, ac as autocorrectPluginKey, ad as buildOutlineTree, ae as capitalizeSentenceRules, af as commentsPluginKey, ag as computeOutline, ai as createOutlineStore, aj as createRichTextPreset, ak as crossReferencePluginKey, al as defaultAutocorrectRules, an as documentStructureCommandItems, ao as fileImportPluginKey, ap as findAutocorrection, aq as findCommentRanges, ar as findHexColors, at as footnotesMarkdownIt, au as footnotesPluginKey, av as fractionRules, aw as getActiveHeading, ax as getBookmarks, ay as getCommentAnchors, az as getCommentAuthor, aA as getCommentIdsAt, aB as getCommentStore, aC as getCrossReferenceTargets, aD as getDocumentStructureCommandItems, aE as getFootnotes, aG as getOutline, aH as getTableOfContentsEntries, aI as handleImageInsertion, aK as imagePastePluginKey, aM as insertImageNode, aN as isInsidePromptToken, aP as navigateToHeading, aQ as outlinePluginKey, aT as removeImageNode, aU as richClipboardPluginKey, aW as smartQuoteRules, aX as smilieAutocorrectRules, aY as symbolRules, aZ as syncFootnotes, a_ as tableOfContentsMarkdownIt, a$ as tableOfContentsPluginKey, b0 as twoInitialCapitalsRules, b2 as updateImageSrc, b3 as writeRichClipboard } from '../index-Ng1pG7JE.js';
2
- export { C as CommentAnchor, a as CommentReply, b as CommentStore, c as CommentStoreListener, d as CommentStoreOptions, e as CommentStoreSnapshot, f as CommentThread, g as CreateThreadInput, D as DELETION_MARK_NAME, I as INSERTION_MARK_NAME, M as Mention, h as MentionEntity, i as MentionOptions, R as ReviewAuthor, S as SerializedComments, T as TRACK_CHANGES_SKIP_META, j as TrackChanges, k as TrackChangesOptions, l as TrackChangesSnapshot, m as TrackChangesStorage, n as TrackChangesStore, o as TrackedChange, p as TrackedChangeAttributes, q as TrackedChangeType, r as TrackedChangesView, s as TrackedDeletion, t as TrackedInsertion, u as createCommentStore, v as createMentionExtension, w as createReviewId, x as formatReviewTime, y as getTrackChangesStore, z as getTrackedChangeAt, A as getTrackedChanges, B as isTrackChangesEnabled, E as resolveTrackedChanges, F as trackChangesPluginKey } from '../track-changes-G8JcWB8b.js';
1
+ export { A as AddCommentOptions, b as Autocorrect, c as AutocorrectContext, d as AutocorrectCorrection, e as AutocorrectOptions, f as AutocorrectRule, g as AutocorrectStorage, h as Bookmark, i as BookmarkInfo, j as BookmarkOptions, C as COMMENT_MARK_NAME, k as ColorHighlighter, l as CommentRange, m as Comments, n as CommentsOptions, o as CommentsStorage, q as CrossReference, r as CrossReferenceOptions, s as CrossReferenceTarget, t as CrossReferenceTargetType, u as DEFAULT_AUTOCORRECT_EXCEPTIONS, v as DocumentStructureCommandArgs, w as DocumentStructureCommandItem, F as FileImport, x as FileImportOptions, y as FocusHeadingOptions, z as FontSize, E as Footnote, G as FootnoteInfo, H as FootnoteReference, I as Footnotes, J as FootnotesOptions, K as GradientText, L as GradientTextOptions, M as Image, N as ImageOptions, O as InsertFootnoteOptions, P as InsertTableOfContentsOptions, Q as LoadingNode, R as Markdown, S as Outline, T as OutlineHeading, U as OutlineOptions, V as OutlineSnapshot, W as OutlineStorage, X as OutlineStore, Y as OutlineTreeItem, Z as RichClipboard, _ as RichClipboardOptions, $ as RichClipboardStorage, a0 as RichTextPresetOptions, a1 as SMILIE_REPLACEMENTS, a2 as SetBookmarkOptions, a3 as SlashCommandMatchData, a4 as SlashCommands, a5 as SlashCommandsOptions, a6 as SmilieReplacer, a7 as TableOfContents, a8 as TableOfContentsEntry, a9 as TableOfContentsOptions, aa as TemplateSuggestions, ab as TemplateSuggestionsOptions, ac as autocorrectPluginKey, ad as buildOutlineTree, ae as capitalizeSentenceRules, af as commentsPluginKey, ag as computeOutline, ai as createOutlineStore, aj as createRichTextPreset, ak as crossReferencePluginKey, al as defaultAutocorrectRules, an as documentStructureCommandItems, ao as fileImportPluginKey, ap as findAutocorrection, aq as findCommentRanges, ar as findHexColors, at as footnotesMarkdownIt, au as footnotesPluginKey, av as fractionRules, aw as getActiveHeading, ax as getBookmarks, ay as getCommentAnchors, az as getCommentAuthor, aA as getCommentIdsAt, aB as getCommentStore, aC as getCrossReferenceTargets, aD as getDocumentStructureCommandItems, aE as getFootnotes, aG as getOutline, aH as getTableOfContentsEntries, aI as handleImageInsertion, aK as imagePastePluginKey, aM as insertImageNode, aN as isInsidePromptToken, aP as navigateToHeading, aQ as outlinePluginKey, aT as removeImageNode, aU as richClipboardPluginKey, aW as smartQuoteRules, aX as smilieAutocorrectRules, aY as symbolRules, aZ as syncFootnotes, a_ as tableOfContentsMarkdownIt, a$ as tableOfContentsPluginKey, b0 as twoInitialCapitalsRules, b2 as updateImageSrc, b3 as writeRichClipboard } from '../index-Ck6ajwXh.js';
2
+ export { B as BLOCK_CHANGE_ATTRIBUTE, C as CommentAnchor, a as CommentReply, b as CommentStore, c as CommentStoreListener, d as CommentStoreOptions, e as CommentStoreSnapshot, f as CommentThread, g as CreateThreadInput, D as DELETION_MARK_NAME, F as FORMAT_CHANGE_MARK_NAME, I as INSERTION_MARK_NAME, M as Mention, h as MentionEntity, i as MentionOptions, R as ReviewAuthor, S as SerializedComments, T as TRACK_CHANGES_SKIP_META, j as TrackChanges, k as TrackChangesOptions, l as TrackChangesSnapshot, m as TrackChangesStorage, n as TrackChangesStore, o as TrackedBlockChangeAttributes, p as TrackedBlockSnapshot, q as TrackedChange, r as TrackedChangeAttributes, s as TrackedChangeType, t as TrackedChangesView, u as TrackedDeletion, v as TrackedFormatChange, w as TrackedFormatChangeAttributes, x as TrackedFormatSummary, y as TrackedInsertion, z as TrackedMark, A as createCommentStore, E as createMentionExtension, G as createReviewId, H as describeBlockChange, J as describeFormatChange, K as formatReviewTime, L as getTrackChangesStore, N as getTrackedChangeAt, O as getTrackedChanges, P as isTrackChangesEnabled, Q as resolveTrackedChanges, U as trackChangesPluginKey } from '../track-changes-BSF58RK0.js';
3
3
  export { MarkdownOptions } from 'tiptap-markdown';
4
4
  import '@tiptap/core';
5
5
  import '../tokens-CyLZmIei.js';
@@ -7,6 +7,6 @@ import '@tiptap/pm/state';
7
7
  import '@tiptap/pm/view';
8
8
  import '@tiptap/pm/model';
9
9
  import '@tiptap/extension-image';
10
- import '../registry-iAHbqkYt.js';
10
+ import '../registry-GJI4gToU.js';
11
11
  import '@tiptap/extension-mention';
12
12
  import '@tiptap/suggestion';
@@ -69,20 +69,25 @@ import {
69
69
  twoInitialCapitalsRules,
70
70
  updateImageSrc,
71
71
  writeRichClipboard
72
- } from "../chunk-CYFJCKC4.js";
72
+ } from "../chunk-QGHGJ56O.js";
73
73
  import "../chunk-B2ZRLN4S.js";
74
- import "../chunk-KYRZDWM4.js";
74
+ import "../chunk-JJDLPEWL.js";
75
75
  import {
76
+ BLOCK_CHANGE_ATTRIBUTE,
76
77
  CommentStore,
77
78
  DELETION_MARK_NAME,
79
+ FORMAT_CHANGE_MARK_NAME,
78
80
  INSERTION_MARK_NAME,
79
81
  TRACK_CHANGES_SKIP_META,
80
82
  TrackChanges,
81
83
  TrackChangesStore,
82
84
  TrackedDeletion,
85
+ TrackedFormatChange,
83
86
  TrackedInsertion,
84
87
  createCommentStore,
85
88
  createReviewId,
89
+ describeBlockChange,
90
+ describeFormatChange,
86
91
  formatReviewTime,
87
92
  getTrackChangesStore,
88
93
  getTrackedChangeAt,
@@ -90,9 +95,10 @@ import {
90
95
  isTrackChangesEnabled,
91
96
  resolveTrackedChanges,
92
97
  trackChangesPluginKey
93
- } from "../chunk-3TYMNULT.js";
98
+ } from "../chunk-MJZBNWG7.js";
94
99
  export {
95
100
  Autocorrect,
101
+ BLOCK_CHANGE_ATTRIBUTE,
96
102
  Bookmark,
97
103
  COMMENT_MARK_NAME,
98
104
  ColorHighlighter,
@@ -101,6 +107,7 @@ export {
101
107
  CrossReference,
102
108
  DEFAULT_AUTOCORRECT_EXCEPTIONS,
103
109
  DELETION_MARK_NAME,
110
+ FORMAT_CHANGE_MARK_NAME,
104
111
  FileImport,
105
112
  FontSize,
106
113
  Footnote,
@@ -123,6 +130,7 @@ export {
123
130
  TrackChanges,
124
131
  TrackChangesStore,
125
132
  TrackedDeletion,
133
+ TrackedFormatChange,
126
134
  TrackedInsertion,
127
135
  autocorrectPluginKey,
128
136
  buildOutlineTree,
@@ -136,6 +144,8 @@ export {
136
144
  createRichTextPreset,
137
145
  crossReferencePluginKey,
138
146
  defaultAutocorrectRules,
147
+ describeBlockChange,
148
+ describeFormatChange,
139
149
  documentStructureCommandItems,
140
150
  fileImportPluginKey,
141
151
  findAutocorrection,
@@ -1,9 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk2TWGLC5Kcjs = require('../chunk-2TWGLC5K.cjs');
5
4
 
6
5
 
7
6
 
8
- exports.HistoryManager = _chunk2TWGLC5Kcjs.HistoryManager; exports.createHistoryManager = _chunk2TWGLC5Kcjs.createHistoryManager;
7
+
8
+
9
+ var _chunkG2I4QJOTcjs = require('../chunk-G2I4QJOT.cjs');
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+ exports.DirtyTracker = _chunkG2I4QJOTcjs.DirtyTracker; exports.HistoryManager = _chunkG2I4QJOTcjs.HistoryManager; exports.bindDirtyToHistory = _chunkG2I4QJOTcjs.bindDirtyToHistory; exports.createDirtyTracker = _chunkG2I4QJOTcjs.createDirtyTracker; exports.createHistoryManager = _chunkG2I4QJOTcjs.createHistoryManager; exports.defaultIsEqual = _chunkG2I4QJOTcjs.defaultIsEqual; exports.withoutDirty = _chunkG2I4QJOTcjs.withoutDirty;
9
19
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/history/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,iIAAC","file":"/home/runner/work/editor/editor/packages/core/dist/history/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/history/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gbAAC","file":"/home/runner/work/editor/editor/packages/core/dist/history/index.cjs"}