@pixerate/editor 0.23.0 → 0.24.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 (155) hide show
  1. package/README.md +96 -1
  2. package/THIRD_PARTY_NOTICES.md +51 -0
  3. package/dist/agent/index.cjs +9 -8
  4. package/dist/agent/index.cjs.map +1 -1
  5. package/dist/agent/index.d.cts +4 -3
  6. package/dist/agent/index.d.ts +4 -3
  7. package/dist/agent/index.js +3 -2
  8. package/dist/agent/index.js.map +1 -1
  9. package/dist/canvas/index.cjs +1210 -17
  10. package/dist/canvas/index.cjs.map +1 -1
  11. package/dist/canvas/index.d.cts +318 -1
  12. package/dist/canvas/index.d.ts +318 -1
  13. package/dist/canvas/index.js +1199 -6
  14. package/dist/canvas/index.js.map +1 -1
  15. package/dist/{chunk-QBJ22YZR.js → chunk-3CN2WD3X.js} +1354 -206
  16. package/dist/chunk-3CN2WD3X.js.map +1 -0
  17. package/dist/{chunk-JJDLPEWL.js → chunk-3LV6RRPH.js} +2 -2
  18. package/dist/{chunk-MJZBNWG7.js → chunk-5S3Z4PPF.js} +78 -557
  19. package/dist/chunk-5S3Z4PPF.js.map +1 -0
  20. package/dist/chunk-664LQYFJ.js +115 -0
  21. package/dist/chunk-664LQYFJ.js.map +1 -0
  22. package/dist/{chunk-AA4ZEVCC.cjs → chunk-D27YFC46.cjs} +101 -580
  23. package/dist/chunk-D27YFC46.cjs.map +1 -0
  24. package/dist/chunk-D6FH2YAX.cjs +131 -0
  25. package/dist/chunk-D6FH2YAX.cjs.map +1 -0
  26. package/dist/{chunk-4SUNJZWB.cjs → chunk-FD4LPFAE.cjs} +48 -200
  27. package/dist/chunk-FD4LPFAE.cjs.map +1 -0
  28. package/dist/chunk-FODNLX5N.js +749 -0
  29. package/dist/chunk-FODNLX5N.js.map +1 -0
  30. package/dist/{chunk-OYXSKQFR.js → chunk-FPENXAEJ.js} +35 -187
  31. package/dist/chunk-FPENXAEJ.js.map +1 -0
  32. package/dist/chunk-HLIMTC6N.js +1 -0
  33. package/dist/chunk-HLIMTC6N.js.map +1 -0
  34. package/dist/{chunk-QGHGJ56O.js → chunk-ITBSKI26.js} +1483 -19
  35. package/dist/chunk-ITBSKI26.js.map +1 -0
  36. package/dist/{chunk-XDMXXC4Z.cjs → chunk-MA2F5KHF.cjs} +350 -227
  37. package/dist/chunk-MA2F5KHF.cjs.map +1 -0
  38. package/dist/{chunk-RIKBJLS2.cjs → chunk-MCSJFWAO.cjs} +1356 -208
  39. package/dist/chunk-MCSJFWAO.cjs.map +1 -0
  40. package/dist/chunk-MKA3AHLV.cjs +256 -0
  41. package/dist/chunk-MKA3AHLV.cjs.map +1 -0
  42. package/dist/chunk-OLZJXL4R.cjs +749 -0
  43. package/dist/chunk-OLZJXL4R.cjs.map +1 -0
  44. package/dist/chunk-OXSV64JX.js +689 -0
  45. package/dist/chunk-OXSV64JX.js.map +1 -0
  46. package/dist/chunk-P3RQ5UJE.cjs +689 -0
  47. package/dist/chunk-P3RQ5UJE.cjs.map +1 -0
  48. package/dist/chunk-P6ODPZ4W.js +256 -0
  49. package/dist/chunk-P6ODPZ4W.js.map +1 -0
  50. package/dist/chunk-PGNZKFQS.js +685 -0
  51. package/dist/chunk-PGNZKFQS.js.map +1 -0
  52. package/dist/chunk-PL4JB3BF.cjs +1 -0
  53. package/dist/chunk-PL4JB3BF.cjs.map +1 -0
  54. package/dist/{chunk-GVSMRPHB.cjs → chunk-SBCZ6RN5.cjs} +1568 -104
  55. package/dist/chunk-SBCZ6RN5.cjs.map +1 -0
  56. package/dist/{chunk-CL37JGFW.cjs → chunk-SML64VJG.cjs} +4 -4
  57. package/dist/{chunk-CL37JGFW.cjs.map → chunk-SML64VJG.cjs.map} +1 -1
  58. package/dist/chunk-TNNJXF46.cjs +115 -0
  59. package/dist/chunk-TNNJXF46.cjs.map +1 -0
  60. package/dist/chunk-U5HZSFCS.js +131 -0
  61. package/dist/chunk-U5HZSFCS.js.map +1 -0
  62. package/dist/{chunk-K3R5NG2D.js → chunk-U5KWZU4X.js} +251 -128
  63. package/dist/chunk-U5KWZU4X.js.map +1 -0
  64. package/dist/chunk-XNORY7M6.cjs +685 -0
  65. package/dist/chunk-XNORY7M6.cjs.map +1 -0
  66. package/dist/commands/index.d.cts +5 -353
  67. package/dist/commands/index.d.ts +5 -353
  68. package/dist/comment-store-BEMgVlAA.d.cts +135 -0
  69. package/dist/comment-store-BEMgVlAA.d.ts +135 -0
  70. package/dist/compare/index.cjs +15 -0
  71. package/dist/compare/index.cjs.map +1 -0
  72. package/dist/compare/index.d.cts +58 -0
  73. package/dist/compare/index.d.ts +58 -0
  74. package/dist/compare/index.js +15 -0
  75. package/dist/compare/index.js.map +1 -0
  76. package/dist/{controller-pePCJLT1.d.cts → controller-BhLLAoi8.d.cts} +45 -4
  77. package/dist/{controller-pePCJLT1.d.ts → controller-BhLLAoi8.d.ts} +45 -4
  78. package/dist/documents-BQjzJNe2.d.ts +76 -0
  79. package/dist/documents-KRTPhvst.d.cts +76 -0
  80. package/dist/extensions/index.cjs +53 -5
  81. package/dist/extensions/index.cjs.map +1 -1
  82. package/dist/extensions/index.d.cts +7 -3
  83. package/dist/extensions/index.d.ts +7 -3
  84. package/dist/extensions/index.js +52 -4
  85. package/dist/generation/index.cjs +1373 -0
  86. package/dist/generation/index.cjs.map +1 -0
  87. package/dist/generation/index.d.cts +554 -0
  88. package/dist/generation/index.d.ts +554 -0
  89. package/dist/generation/index.js +1373 -0
  90. package/dist/generation/index.js.map +1 -0
  91. package/dist/grammar/index.cjs +48 -3
  92. package/dist/grammar/index.cjs.map +1 -1
  93. package/dist/grammar/index.d.cts +322 -100
  94. package/dist/grammar/index.d.ts +322 -100
  95. package/dist/grammar/index.js +54 -9
  96. package/dist/image-editor/index.cjs +1831 -30
  97. package/dist/image-editor/index.cjs.map +1 -1
  98. package/dist/image-editor/index.d.cts +590 -3
  99. package/dist/image-editor/index.d.ts +590 -3
  100. package/dist/image-editor/index.js +1807 -6
  101. package/dist/image-editor/index.js.map +1 -1
  102. package/dist/{index-CCr_z9kF.d.cts → index-BhJBSm2d.d.cts} +370 -4
  103. package/dist/{index-Ck6ajwXh.d.ts → index-fJrlkJCd.d.ts} +370 -4
  104. package/dist/index.cjs +162 -25
  105. package/dist/index.cjs.map +1 -1
  106. package/dist/index.d.cts +14 -8
  107. package/dist/index.d.ts +14 -8
  108. package/dist/index.js +174 -37
  109. package/dist/index.js.map +1 -1
  110. package/dist/migrate-iTlm3a8h.d.cts +112 -0
  111. package/dist/migrate-iTlm3a8h.d.ts +112 -0
  112. package/dist/persistence/index.cjs +676 -0
  113. package/dist/persistence/index.cjs.map +1 -0
  114. package/dist/persistence/index.d.cts +347 -0
  115. package/dist/persistence/index.d.ts +347 -0
  116. package/dist/persistence/index.js +676 -0
  117. package/dist/persistence/index.js.map +1 -0
  118. package/dist/{registry-D5-R90p0.d.cts → registry-BDe-vlv3.d.ts} +2 -40
  119. package/dist/registry-D32LpIc4.d.cts +354 -0
  120. package/dist/{registry-D5-R90p0.d.ts → registry-DnzpgY27.d.cts} +2 -40
  121. package/dist/registry-evKTP4ls.d.ts +354 -0
  122. package/dist/schema-DYDGdYL9.d.cts +41 -0
  123. package/dist/schema-DYDGdYL9.d.ts +41 -0
  124. package/dist/serializers/index.cjs +4 -3
  125. package/dist/serializers/index.cjs.map +1 -1
  126. package/dist/serializers/index.d.cts +2 -1
  127. package/dist/serializers/index.d.ts +2 -1
  128. package/dist/serializers/index.js +3 -2
  129. package/dist/sourcemap-C8AH3MBQ.d.cts +91 -0
  130. package/dist/sourcemap-DA1Evhrv.d.ts +91 -0
  131. package/dist/spreadsheet/index.cjs +37 -3
  132. package/dist/spreadsheet/index.cjs.map +1 -1
  133. package/dist/spreadsheet/index.d.cts +188 -17
  134. package/dist/spreadsheet/index.d.ts +188 -17
  135. package/dist/spreadsheet/index.js +43 -9
  136. package/dist/{tokens-CyLZmIei.d.cts → tokens-D7yXvUU6.d.cts} +15 -2
  137. package/dist/{tokens-CyLZmIei.d.ts → tokens-D7yXvUU6.d.ts} +15 -2
  138. package/dist/{track-changes-BSF58RK0.d.ts → track-changes-BK5sVf4_.d.cts} +18 -136
  139. package/dist/{track-changes-BSF58RK0.d.cts → track-changes-CDjCrwKe.d.ts} +18 -136
  140. package/package.json +16 -1
  141. package/dist/chunk-4SUNJZWB.cjs.map +0 -1
  142. package/dist/chunk-AA4ZEVCC.cjs.map +0 -1
  143. package/dist/chunk-AXV2ZW34.cjs +0 -118
  144. package/dist/chunk-AXV2ZW34.cjs.map +0 -1
  145. package/dist/chunk-B2ZRLN4S.js +0 -118
  146. package/dist/chunk-B2ZRLN4S.js.map +0 -1
  147. package/dist/chunk-GVSMRPHB.cjs.map +0 -1
  148. package/dist/chunk-K3R5NG2D.js.map +0 -1
  149. package/dist/chunk-MJZBNWG7.js.map +0 -1
  150. package/dist/chunk-OYXSKQFR.js.map +0 -1
  151. package/dist/chunk-QBJ22YZR.js.map +0 -1
  152. package/dist/chunk-QGHGJ56O.js.map +0 -1
  153. package/dist/chunk-RIKBJLS2.cjs.map +0 -1
  154. package/dist/chunk-XDMXXC4Z.cjs.map +0 -1
  155. /package/dist/{chunk-JJDLPEWL.js.map → chunk-3LV6RRPH.js.map} +0 -0
@@ -0,0 +1,58 @@
1
+ export { C as CompareDocumentsOptions, a as CompareDocumentsResult, b as CompareSource, c as CompareSummary, d as compareDocuments, e as compareHtml } from '../documents-KRTPhvst.cjs';
2
+ import '@tiptap/pm/model';
3
+ import '../comment-store-BEMgVlAA.cjs';
4
+
5
+ /**
6
+ * Generic sequence diff: common prefix/suffix stripping, Myers' O((N+M)·D)
7
+ * algorithm for small segments and patience anchors (items unique on both
8
+ * sides, longest increasing subsequence) to split long ones. Dependency-free.
9
+ */
10
+ type DiffOpType = "equal" | "delete" | "insert";
11
+ /** A run of consecutive operations of one type. */
12
+ interface DiffRun {
13
+ type: DiffOpType;
14
+ /** Start index in `a` (for `insert`, where the items go in `a`). */
15
+ aIndex: number;
16
+ /** Start index in `b` (for `delete`, where the items were in `b`). */
17
+ bIndex: number;
18
+ length: number;
19
+ }
20
+ /** A change: a deleted range of `a`, an inserted range of `b`, or both (replaced). */
21
+ interface DiffChange {
22
+ kind: "inserted" | "deleted" | "replaced";
23
+ aStart: number;
24
+ aEnd: number;
25
+ bStart: number;
26
+ bEnd: number;
27
+ }
28
+ interface DiffSequencesOptions<T> {
29
+ /**
30
+ * Key of an item: items with the same key are equal. Defaults to the item
31
+ * itself for strings, numbers and booleans, and `JSON.stringify` otherwise.
32
+ * Keys enable patience anchors for long inputs.
33
+ */
34
+ hash?: (item: T) => string | number | boolean;
35
+ /**
36
+ * Custom equality. Without `hash`, segments longer than `direct` are only
37
+ * diffed while the edit distance stays below `direct`, otherwise replaced.
38
+ */
39
+ equals?: (a: T, b: T) => boolean;
40
+ /**
41
+ * Segments with more items (both sides together) are split at anchors
42
+ * first so Myers' saved frontiers (O(D²) memory) stay small. Default 3000.
43
+ */
44
+ direct?: number;
45
+ /** Maximum anchor recursion depth before a long segment is replaced whole. Default 8. */
46
+ maxDepth?: number;
47
+ }
48
+ /**
49
+ * Diffs two sequences and returns the edit script as runs of equal, deleted
50
+ * and inserted items, in order. Within a changed stretch deletions come
51
+ * before insertions. The script is minimal for segments up to `direct`
52
+ * items; longer inputs are split at patience anchors (bounded work).
53
+ */
54
+ declare function diffSequences<T>(a: readonly T[], b: readonly T[], options?: DiffSequencesOptions<T>): DiffRun[];
55
+ /** Groups an edit script into inserted, deleted and replaced ranges. */
56
+ declare function diffChanges<T>(a: readonly T[], b: readonly T[], options?: DiffSequencesOptions<T>): DiffChange[];
57
+
58
+ export { type DiffChange, type DiffOpType, type DiffRun, type DiffSequencesOptions, diffChanges, diffSequences };
@@ -0,0 +1,58 @@
1
+ export { C as CompareDocumentsOptions, a as CompareDocumentsResult, b as CompareSource, c as CompareSummary, d as compareDocuments, e as compareHtml } from '../documents-BQjzJNe2.js';
2
+ import '@tiptap/pm/model';
3
+ import '../comment-store-BEMgVlAA.js';
4
+
5
+ /**
6
+ * Generic sequence diff: common prefix/suffix stripping, Myers' O((N+M)·D)
7
+ * algorithm for small segments and patience anchors (items unique on both
8
+ * sides, longest increasing subsequence) to split long ones. Dependency-free.
9
+ */
10
+ type DiffOpType = "equal" | "delete" | "insert";
11
+ /** A run of consecutive operations of one type. */
12
+ interface DiffRun {
13
+ type: DiffOpType;
14
+ /** Start index in `a` (for `insert`, where the items go in `a`). */
15
+ aIndex: number;
16
+ /** Start index in `b` (for `delete`, where the items were in `b`). */
17
+ bIndex: number;
18
+ length: number;
19
+ }
20
+ /** A change: a deleted range of `a`, an inserted range of `b`, or both (replaced). */
21
+ interface DiffChange {
22
+ kind: "inserted" | "deleted" | "replaced";
23
+ aStart: number;
24
+ aEnd: number;
25
+ bStart: number;
26
+ bEnd: number;
27
+ }
28
+ interface DiffSequencesOptions<T> {
29
+ /**
30
+ * Key of an item: items with the same key are equal. Defaults to the item
31
+ * itself for strings, numbers and booleans, and `JSON.stringify` otherwise.
32
+ * Keys enable patience anchors for long inputs.
33
+ */
34
+ hash?: (item: T) => string | number | boolean;
35
+ /**
36
+ * Custom equality. Without `hash`, segments longer than `direct` are only
37
+ * diffed while the edit distance stays below `direct`, otherwise replaced.
38
+ */
39
+ equals?: (a: T, b: T) => boolean;
40
+ /**
41
+ * Segments with more items (both sides together) are split at anchors
42
+ * first so Myers' saved frontiers (O(D²) memory) stay small. Default 3000.
43
+ */
44
+ direct?: number;
45
+ /** Maximum anchor recursion depth before a long segment is replaced whole. Default 8. */
46
+ maxDepth?: number;
47
+ }
48
+ /**
49
+ * Diffs two sequences and returns the edit script as runs of equal, deleted
50
+ * and inserted items, in order. Within a changed stretch deletions come
51
+ * before insertions. The script is minimal for segments up to `direct`
52
+ * items; longer inputs are split at patience anchors (bounded work).
53
+ */
54
+ declare function diffSequences<T>(a: readonly T[], b: readonly T[], options?: DiffSequencesOptions<T>): DiffRun[];
55
+ /** Groups an edit script into inserted, deleted and replaced ranges. */
56
+ declare function diffChanges<T>(a: readonly T[], b: readonly T[], options?: DiffSequencesOptions<T>): DiffChange[];
57
+
58
+ export { type DiffChange, type DiffOpType, type DiffRun, type DiffSequencesOptions, diffChanges, diffSequences };
@@ -0,0 +1,15 @@
1
+ import "../chunk-HLIMTC6N.js";
2
+ import {
3
+ compareDocuments,
4
+ compareHtml,
5
+ diffChanges,
6
+ diffSequences
7
+ } from "../chunk-FODNLX5N.js";
8
+ import "../chunk-5S3Z4PPF.js";
9
+ export {
10
+ compareDocuments,
11
+ compareHtml,
12
+ diffChanges,
13
+ diffSequences
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -13,6 +13,13 @@ interface SpreadsheetColumn {
13
13
  binding?: ColumnBinding;
14
14
  formula?: string;
15
15
  format?: CellFormat;
16
+ /**
17
+ * Number format code for the column's cells (e.g. `#,##0.00`,
18
+ * `"$"#,##0.00;[Red]("$"#,##0.00)`, `m/d/yyyy`). Cells without an explicit
19
+ * code of their own use it instead of the automatic one chosen for typed
20
+ * input. See `SpreadsheetController.setColumnNumberFormat`.
21
+ */
22
+ numberFormat?: string;
16
23
  readOnly?: boolean;
17
24
  hidden?: boolean;
18
25
  }
@@ -51,12 +58,18 @@ interface CellData {
51
58
  errorMessage?: string;
52
59
  format?: CellFormat;
53
60
  /**
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.
61
+ * Excel number format code used to display the value (see
62
+ * `formatCellDisplay`). Set explicitly (`explicitNumberFormat`), inherited
63
+ * from the column's `numberFormat`, or chosen automatically for typed input,
64
+ * e.g. `"$"#,##0.00` for `$1,200.50`, `0%` for `10%`, `#,##0` for `1,234`,
65
+ * `m/d/yyyy` for `3/4/2026`, `h:mm` for `10:30`. Absent for General.
58
66
  */
59
67
  numberFormat?: string;
68
+ /**
69
+ * True when `numberFormat` was set explicitly (`setCellNumberFormat`):
70
+ * typing into the cell keeps it instead of choosing an automatic format.
71
+ */
72
+ explicitNumberFormat?: boolean;
60
73
  readOnly?: boolean;
61
74
  /**
62
75
  * Set (only) on cells showing a value spilled from a dynamic array: the
@@ -706,6 +719,13 @@ declare class SpreadsheetController {
706
719
  * number) when `format` is unset or `text` (the default of new columns).
707
720
  */
708
721
  private typedCell;
722
+ /**
723
+ * The number format a cell keeps whatever is typed into it: its explicit
724
+ * one, else its column's. Undefined lets typed input choose one.
725
+ */
726
+ private fixedNumberFormat;
727
+ /** `numberFormat` / `explicitNumberFormat` fields for a formula, bound or spilled cell. */
728
+ private fixedNumberFormatFields;
709
729
  /**
710
730
  * Typed input for a bound field, coerced by the field's declared type:
711
731
  * number, boolean and date fields get a number, boolean or ISO date when
@@ -886,6 +906,27 @@ declare class SpreadsheetController {
886
906
  /** Keeps the first `count` columns visible while scrolling. 0 unfreezes. */
887
907
  setFrozenColumnCount(count: number): void;
888
908
  private setTableCount;
909
+ /**
910
+ * Sets an explicit number format code (e.g. `0.00`, `"$"#,##0.00`,
911
+ * `m/d/yyyy`, `[Red]0;[Blue]-0`) on every cell in `range`, including blank
912
+ * cells, so values typed later keep it. `null` removes explicit formats: the
913
+ * cells go back to their column's format or the one chosen for typed input.
914
+ * Undoable as one step. Returns false when there is no range.
915
+ */
916
+ setCellNumberFormat(range: CellRange | null, code: string | null): boolean;
917
+ /**
918
+ * Sets the number format code of a column (`null` or `General` clears it).
919
+ * Its cells without an explicit format of their own use it, including
920
+ * values typed later; when cleared they go back to the format chosen for
921
+ * typed input. Undoable.
922
+ */
923
+ setColumnNumberFormat(colId: string, code: string | null): void;
924
+ /** The column's format, or the one typed input chose (typed cells only). */
925
+ private implicitNumberFormat;
926
+ /** A copy of `cell` with `numberFormat` set, or removed when undefined. */
927
+ private withNumberFormat;
928
+ /** Re-applies the stored cell's (or the column's) format to a spilled value shown there. */
929
+ private refreshSpilledNumberFormat;
889
930
  hideRows(indices: number[]): void;
890
931
  unhideRows(indices: number[]): void;
891
932
  hideColumns(indices: number[]): void;
@@ -13,6 +13,13 @@ interface SpreadsheetColumn {
13
13
  binding?: ColumnBinding;
14
14
  formula?: string;
15
15
  format?: CellFormat;
16
+ /**
17
+ * Number format code for the column's cells (e.g. `#,##0.00`,
18
+ * `"$"#,##0.00;[Red]("$"#,##0.00)`, `m/d/yyyy`). Cells without an explicit
19
+ * code of their own use it instead of the automatic one chosen for typed
20
+ * input. See `SpreadsheetController.setColumnNumberFormat`.
21
+ */
22
+ numberFormat?: string;
16
23
  readOnly?: boolean;
17
24
  hidden?: boolean;
18
25
  }
@@ -51,12 +58,18 @@ interface CellData {
51
58
  errorMessage?: string;
52
59
  format?: CellFormat;
53
60
  /**
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.
61
+ * Excel number format code used to display the value (see
62
+ * `formatCellDisplay`). Set explicitly (`explicitNumberFormat`), inherited
63
+ * from the column's `numberFormat`, or chosen automatically for typed input,
64
+ * e.g. `"$"#,##0.00` for `$1,200.50`, `0%` for `10%`, `#,##0` for `1,234`,
65
+ * `m/d/yyyy` for `3/4/2026`, `h:mm` for `10:30`. Absent for General.
58
66
  */
59
67
  numberFormat?: string;
68
+ /**
69
+ * True when `numberFormat` was set explicitly (`setCellNumberFormat`):
70
+ * typing into the cell keeps it instead of choosing an automatic format.
71
+ */
72
+ explicitNumberFormat?: boolean;
60
73
  readOnly?: boolean;
61
74
  /**
62
75
  * Set (only) on cells showing a value spilled from a dynamic array: the
@@ -706,6 +719,13 @@ declare class SpreadsheetController {
706
719
  * number) when `format` is unset or `text` (the default of new columns).
707
720
  */
708
721
  private typedCell;
722
+ /**
723
+ * The number format a cell keeps whatever is typed into it: its explicit
724
+ * one, else its column's. Undefined lets typed input choose one.
725
+ */
726
+ private fixedNumberFormat;
727
+ /** `numberFormat` / `explicitNumberFormat` fields for a formula, bound or spilled cell. */
728
+ private fixedNumberFormatFields;
709
729
  /**
710
730
  * Typed input for a bound field, coerced by the field's declared type:
711
731
  * number, boolean and date fields get a number, boolean or ISO date when
@@ -886,6 +906,27 @@ declare class SpreadsheetController {
886
906
  /** Keeps the first `count` columns visible while scrolling. 0 unfreezes. */
887
907
  setFrozenColumnCount(count: number): void;
888
908
  private setTableCount;
909
+ /**
910
+ * Sets an explicit number format code (e.g. `0.00`, `"$"#,##0.00`,
911
+ * `m/d/yyyy`, `[Red]0;[Blue]-0`) on every cell in `range`, including blank
912
+ * cells, so values typed later keep it. `null` removes explicit formats: the
913
+ * cells go back to their column's format or the one chosen for typed input.
914
+ * Undoable as one step. Returns false when there is no range.
915
+ */
916
+ setCellNumberFormat(range: CellRange | null, code: string | null): boolean;
917
+ /**
918
+ * Sets the number format code of a column (`null` or `General` clears it).
919
+ * Its cells without an explicit format of their own use it, including
920
+ * values typed later; when cleared they go back to the format chosen for
921
+ * typed input. Undoable.
922
+ */
923
+ setColumnNumberFormat(colId: string, code: string | null): void;
924
+ /** The column's format, or the one typed input chose (typed cells only). */
925
+ private implicitNumberFormat;
926
+ /** A copy of `cell` with `numberFormat` set, or removed when undefined. */
927
+ private withNumberFormat;
928
+ /** Re-applies the stored cell's (or the column's) format to a spilled value shown there. */
929
+ private refreshSpilledNumberFormat;
889
930
  hideRows(indices: number[]): void;
890
931
  unhideRows(indices: number[]): void;
891
932
  hideColumns(indices: number[]): void;
@@ -0,0 +1,76 @@
1
+ import { Node, Schema } from '@tiptap/pm/model';
2
+ import { R as ReviewAuthor } from './comment-store-BEMgVlAA.js';
3
+
4
+ /** A document to compare: a ProseMirror node, its JSON, or HTML (needs a DOM). */
5
+ type CompareSource = Node | Record<string, any> | string;
6
+ interface CompareDocumentsOptions {
7
+ /** Schema of the documents. Required unless both sources are ProseMirror nodes. */
8
+ schema?: Schema;
9
+ /** Author recorded on every change. Default `{ id: "compare", name: "Compare" }`. */
10
+ author?: ReviewAuthor;
11
+ /** Time recorded on every change (`createdAt`). Default now. */
12
+ date?: number | Date | string;
13
+ /** Compare changed paragraphs word by word (default) or character by character. */
14
+ granularity?: "word" | "char";
15
+ /** Treat text differing only in case as equal (the revised text is kept). */
16
+ ignoreCase?: boolean;
17
+ /** Treat runs of white space as equal (the revised text is kept). */
18
+ ignoreWhitespace?: boolean;
19
+ /** Record formatting differences of equal text as `formatChange` marks. Default `true`. */
20
+ formatting?: boolean;
21
+ /** Change id generator. */
22
+ generateId?: () => string;
23
+ /** Marks not compared as formatting (in addition to review marks, comments and bookmarks). */
24
+ ignoredMarks?: string[];
25
+ /** Node attributes ignored when comparing blocks. Default `["id"]`. */
26
+ ignoredBlockAttributes?: string[];
27
+ /**
28
+ * Paragraphs longer than this (in characters) are compared by words even
29
+ * at `granularity: "char"`. Default 2000.
30
+ */
31
+ maxCharDiff?: number;
32
+ }
33
+ interface CompareSummary {
34
+ /** Inserted text runs and inserted block runs. */
35
+ insertions: number;
36
+ /** Deleted text runs and deleted block runs. */
37
+ deletions: number;
38
+ /** Formatting changes of equal text. */
39
+ formatChanges: number;
40
+ /** Block type, attribute and wrapping changes. */
41
+ blockChanges: number;
42
+ /** Differences the result could not represent as tracked changes. */
43
+ notHonoured: string[];
44
+ }
45
+ interface CompareDocumentsResult {
46
+ /**
47
+ * The revised document with the differences as tracked changes: accepting
48
+ * all changes yields the revised document, rejecting all the original.
49
+ */
50
+ doc: Node;
51
+ summary: CompareSummary;
52
+ }
53
+ /**
54
+ * Compares two documents and returns the revised document with the
55
+ * differences as tracked changes (`insertion`/`deletion`/`formatChange`
56
+ * marks and `blockChange` records), plus a summary.
57
+ *
58
+ * Blocks are matched by their text (Myers diff with patience anchors); in a
59
+ * run of changed blocks the i-th deleted block is paired with the i-th
60
+ * inserted one and compared word by word (or by character), while unpaired
61
+ * blocks are recorded as whole-block insertions/deletions. Equal text is
62
+ * compared for formatting, and type/attribute/wrapping changes become
63
+ * `blockChange` records. Without ignore options, accepting all changes
64
+ * yields the revised document and rejecting all yields the original.
65
+ *
66
+ * The schema needs the `TrackChanges` extension (marks and the
67
+ * `blockChange` attribute). Existing tracked changes in either document are
68
+ * accepted first.
69
+ */
70
+ declare function compareDocuments(original: CompareSource, revised: CompareSource, options?: CompareDocumentsOptions): CompareDocumentsResult;
71
+ /** `compareDocuments` for two HTML strings (needs a DOM, like `setContent`). */
72
+ declare function compareHtml(originalHtml: string, revisedHtml: string, options: CompareDocumentsOptions & {
73
+ schema: Schema;
74
+ }): CompareDocumentsResult;
75
+
76
+ export { type CompareDocumentsOptions as C, type CompareDocumentsResult as a, type CompareSource as b, type CompareSummary as c, compareDocuments as d, compareHtml as e };
@@ -0,0 +1,76 @@
1
+ import { Node, Schema } from '@tiptap/pm/model';
2
+ import { R as ReviewAuthor } from './comment-store-BEMgVlAA.cjs';
3
+
4
+ /** A document to compare: a ProseMirror node, its JSON, or HTML (needs a DOM). */
5
+ type CompareSource = Node | Record<string, any> | string;
6
+ interface CompareDocumentsOptions {
7
+ /** Schema of the documents. Required unless both sources are ProseMirror nodes. */
8
+ schema?: Schema;
9
+ /** Author recorded on every change. Default `{ id: "compare", name: "Compare" }`. */
10
+ author?: ReviewAuthor;
11
+ /** Time recorded on every change (`createdAt`). Default now. */
12
+ date?: number | Date | string;
13
+ /** Compare changed paragraphs word by word (default) or character by character. */
14
+ granularity?: "word" | "char";
15
+ /** Treat text differing only in case as equal (the revised text is kept). */
16
+ ignoreCase?: boolean;
17
+ /** Treat runs of white space as equal (the revised text is kept). */
18
+ ignoreWhitespace?: boolean;
19
+ /** Record formatting differences of equal text as `formatChange` marks. Default `true`. */
20
+ formatting?: boolean;
21
+ /** Change id generator. */
22
+ generateId?: () => string;
23
+ /** Marks not compared as formatting (in addition to review marks, comments and bookmarks). */
24
+ ignoredMarks?: string[];
25
+ /** Node attributes ignored when comparing blocks. Default `["id"]`. */
26
+ ignoredBlockAttributes?: string[];
27
+ /**
28
+ * Paragraphs longer than this (in characters) are compared by words even
29
+ * at `granularity: "char"`. Default 2000.
30
+ */
31
+ maxCharDiff?: number;
32
+ }
33
+ interface CompareSummary {
34
+ /** Inserted text runs and inserted block runs. */
35
+ insertions: number;
36
+ /** Deleted text runs and deleted block runs. */
37
+ deletions: number;
38
+ /** Formatting changes of equal text. */
39
+ formatChanges: number;
40
+ /** Block type, attribute and wrapping changes. */
41
+ blockChanges: number;
42
+ /** Differences the result could not represent as tracked changes. */
43
+ notHonoured: string[];
44
+ }
45
+ interface CompareDocumentsResult {
46
+ /**
47
+ * The revised document with the differences as tracked changes: accepting
48
+ * all changes yields the revised document, rejecting all the original.
49
+ */
50
+ doc: Node;
51
+ summary: CompareSummary;
52
+ }
53
+ /**
54
+ * Compares two documents and returns the revised document with the
55
+ * differences as tracked changes (`insertion`/`deletion`/`formatChange`
56
+ * marks and `blockChange` records), plus a summary.
57
+ *
58
+ * Blocks are matched by their text (Myers diff with patience anchors); in a
59
+ * run of changed blocks the i-th deleted block is paired with the i-th
60
+ * inserted one and compared word by word (or by character), while unpaired
61
+ * blocks are recorded as whole-block insertions/deletions. Equal text is
62
+ * compared for formatting, and type/attribute/wrapping changes become
63
+ * `blockChange` records. Without ignore options, accepting all changes
64
+ * yields the revised document and rejecting all yields the original.
65
+ *
66
+ * The schema needs the `TrackChanges` extension (marks and the
67
+ * `blockChange` attribute). Existing tracked changes in either document are
68
+ * accepted first.
69
+ */
70
+ declare function compareDocuments(original: CompareSource, revised: CompareSource, options?: CompareDocumentsOptions): CompareDocumentsResult;
71
+ /** `compareDocuments` for two HTML strings (needs a DOM, like `setContent`). */
72
+ declare function compareHtml(originalHtml: string, revisedHtml: string, options: CompareDocumentsOptions & {
73
+ schema: Schema;
74
+ }): CompareDocumentsResult;
75
+
76
+ export { type CompareDocumentsOptions as C, type CompareDocumentsResult as a, type CompareSource as b, type CompareSummary as c, compareDocuments as d, compareHtml as e };
@@ -69,9 +69,6 @@
69
69
 
70
70
 
71
71
 
72
- var _chunkGVSMRPHBcjs = require('../chunk-GVSMRPHB.cjs');
73
- require('../chunk-AXV2ZW34.cjs');
74
- require('../chunk-CL37JGFW.cjs');
75
72
 
76
73
 
77
74
 
@@ -95,7 +92,11 @@ require('../chunk-CL37JGFW.cjs');
95
92
 
96
93
 
97
94
 
98
- var _chunkAA4ZEVCCcjs = require('../chunk-AA4ZEVCC.cjs');
95
+ var _chunkSBCZ6RN5cjs = require('../chunk-SBCZ6RN5.cjs');
96
+ require('../chunk-OLZJXL4R.cjs');
97
+ require('../chunk-MKA3AHLV.cjs');
98
+ require('../chunk-SML64VJG.cjs');
99
+ require('../chunk-XNORY7M6.cjs');
99
100
 
100
101
 
101
102
 
@@ -119,6 +120,7 @@ var _chunkAA4ZEVCCcjs = require('../chunk-AA4ZEVCC.cjs');
119
120
 
120
121
 
121
122
 
123
+ var _chunkD27YFC46cjs = require('../chunk-D27YFC46.cjs');
122
124
 
123
125
 
124
126
 
@@ -189,5 +191,51 @@ var _chunkAA4ZEVCCcjs = require('../chunk-AA4ZEVCC.cjs');
189
191
 
190
192
 
191
193
 
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;
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+ exports.Autocorrect = _chunkSBCZ6RN5cjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunkD27YFC46cjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkSBCZ6RN5cjs.Bookmark; exports.COMMENT_MARK_NAME = _chunkSBCZ6RN5cjs.COMMENT_MARK_NAME; exports.ColorHighlighter = _chunkSBCZ6RN5cjs.ColorHighlighter; exports.CommentStore = _chunkD27YFC46cjs.CommentStore; exports.Comments = _chunkSBCZ6RN5cjs.Comments; exports.CrossReference = _chunkSBCZ6RN5cjs.CrossReference; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkSBCZ6RN5cjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DELETION_MARK_NAME = _chunkD27YFC46cjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkSBCZ6RN5cjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkSBCZ6RN5cjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.FIND_OPTION_TOGGLES = _chunkSBCZ6RN5cjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkSBCZ6RN5cjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunkD27YFC46cjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkSBCZ6RN5cjs.FileImport; exports.FindReplace = _chunkSBCZ6RN5cjs.FindReplace; exports.FindReplaceStore = _chunkSBCZ6RN5cjs.FindReplaceStore; exports.FontSize = _chunkSBCZ6RN5cjs.FontSize; exports.Footnote = _chunkSBCZ6RN5cjs.Footnote; exports.FootnoteReference = _chunkSBCZ6RN5cjs.FootnoteReference; exports.Footnotes = _chunkSBCZ6RN5cjs.Footnotes; exports.GradientText = _chunkSBCZ6RN5cjs.GradientText; exports.INSERTION_MARK_NAME = _chunkD27YFC46cjs.INSERTION_MARK_NAME; exports.Image = _chunkSBCZ6RN5cjs.Image; exports.LoadingNode = _chunkSBCZ6RN5cjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkSBCZ6RN5cjs.MAX_FIND_PATTERN_LENGTH; exports.Markdown = _chunkSBCZ6RN5cjs.Markdown; exports.Mention = _chunkSBCZ6RN5cjs.Mention; exports.Outline = _chunkSBCZ6RN5cjs.Outline; exports.RichClipboard = _chunkSBCZ6RN5cjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkSBCZ6RN5cjs.SMILIE_REPLACEMENTS; exports.SlashCommands = _chunkSBCZ6RN5cjs.SlashCommands; exports.SmilieReplacer = _chunkSBCZ6RN5cjs.SmilieReplacer; exports.TRACK_CHANGES_SKIP_META = _chunkD27YFC46cjs.TRACK_CHANGES_SKIP_META; exports.TableOfContents = _chunkSBCZ6RN5cjs.TableOfContents; exports.TemplateSuggestions = _chunkSBCZ6RN5cjs.TemplateSuggestions; exports.TrackChanges = _chunkD27YFC46cjs.TrackChanges; exports.TrackChangesStore = _chunkD27YFC46cjs.TrackChangesStore; exports.TrackedDeletion = _chunkD27YFC46cjs.TrackedDeletion; exports.TrackedFormatChange = _chunkD27YFC46cjs.TrackedFormatChange; exports.TrackedInsertion = _chunkD27YFC46cjs.TrackedInsertion; exports.applyDocumentComparison = _chunkSBCZ6RN5cjs.applyDocumentComparison; exports.applyReplacements = _chunkSBCZ6RN5cjs.applyReplacements; exports.autocorrectPluginKey = _chunkSBCZ6RN5cjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkSBCZ6RN5cjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkSBCZ6RN5cjs.capitalizeSentenceRules; exports.commentsPluginKey = _chunkSBCZ6RN5cjs.commentsPluginKey; exports.compareInEditor = _chunkSBCZ6RN5cjs.compareInEditor; exports.compileFindPattern = _chunkSBCZ6RN5cjs.compileFindPattern; exports.computeOutline = _chunkSBCZ6RN5cjs.computeOutline; exports.createCommentStore = _chunkD27YFC46cjs.createCommentStore; exports.createFindReplaceCommands = _chunkSBCZ6RN5cjs.createFindReplaceCommands; exports.createMentionExtension = _chunkSBCZ6RN5cjs.createMentionExtension; exports.createOutlineStore = _chunkSBCZ6RN5cjs.createOutlineStore; exports.createReviewId = _chunkD27YFC46cjs.createReviewId; exports.createRichTextPreset = _chunkSBCZ6RN5cjs.createRichTextPreset; exports.createSearchBudget = _chunkSBCZ6RN5cjs.createSearchBudget; exports.crossReferencePluginKey = _chunkSBCZ6RN5cjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkSBCZ6RN5cjs.defaultAutocorrectRules; exports.describeBlockChange = _chunkD27YFC46cjs.describeBlockChange; exports.describeFormatChange = _chunkD27YFC46cjs.describeFormatChange; exports.documentStructureCommandItems = _chunkSBCZ6RN5cjs.documentStructureCommandItems; exports.expandReplacement = _chunkSBCZ6RN5cjs.expandReplacement; exports.fileImportPluginKey = _chunkSBCZ6RN5cjs.fileImportPluginKey; exports.findAllMatches = _chunkSBCZ6RN5cjs.findAllMatches; exports.findAutocorrection = _chunkSBCZ6RN5cjs.findAutocorrection; exports.findCommentRanges = _chunkSBCZ6RN5cjs.findCommentRanges; exports.findHexColors = _chunkSBCZ6RN5cjs.findHexColors; exports.findReplacePluginKey = _chunkSBCZ6RN5cjs.findReplacePluginKey; exports.foldCodePoint = _chunkSBCZ6RN5cjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkSBCZ6RN5cjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkSBCZ6RN5cjs.footnotesPluginKey; exports.formatFindStatus = _chunkSBCZ6RN5cjs.formatFindStatus; exports.formatReviewTime = _chunkD27YFC46cjs.formatReviewTime; exports.fractionRules = _chunkSBCZ6RN5cjs.fractionRules; exports.getActiveHeading = _chunkSBCZ6RN5cjs.getActiveHeading; exports.getBookmarks = _chunkSBCZ6RN5cjs.getBookmarks; exports.getCommentAnchors = _chunkSBCZ6RN5cjs.getCommentAnchors; exports.getCommentAuthor = _chunkSBCZ6RN5cjs.getCommentAuthor; exports.getCommentIdsAt = _chunkSBCZ6RN5cjs.getCommentIdsAt; exports.getCommentStore = _chunkSBCZ6RN5cjs.getCommentStore; exports.getCrossReferenceTargets = _chunkSBCZ6RN5cjs.getCrossReferenceTargets; exports.getDocumentStructureCommandItems = _chunkSBCZ6RN5cjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkSBCZ6RN5cjs.getFindReplaceState; exports.getFindReplaceStore = _chunkSBCZ6RN5cjs.getFindReplaceStore; exports.getFootnotes = _chunkSBCZ6RN5cjs.getFootnotes; exports.getOutline = _chunkSBCZ6RN5cjs.getOutline; exports.getTableOfContentsEntries = _chunkSBCZ6RN5cjs.getTableOfContentsEntries; exports.getTrackChangesStore = _chunkD27YFC46cjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunkD27YFC46cjs.getTrackedChangeAt; exports.getTrackedChanges = _chunkD27YFC46cjs.getTrackedChanges; exports.handleImageInsertion = _chunkSBCZ6RN5cjs.handleImageInsertion; exports.imagePastePluginKey = _chunkSBCZ6RN5cjs.imagePastePluginKey; exports.insertImageNode = _chunkSBCZ6RN5cjs.insertImageNode; exports.isInsidePromptToken = _chunkSBCZ6RN5cjs.isInsidePromptToken; exports.isTrackChangesEnabled = _chunkD27YFC46cjs.isTrackChangesEnabled; exports.navigateToHeading = _chunkSBCZ6RN5cjs.navigateToHeading; exports.outlinePluginKey = _chunkSBCZ6RN5cjs.outlinePluginKey; exports.parseReplacement = _chunkSBCZ6RN5cjs.parseReplacement; exports.removeImageNode = _chunkSBCZ6RN5cjs.removeImageNode; exports.resolveTrackedChanges = _chunkD27YFC46cjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkSBCZ6RN5cjs.richClipboardPluginKey; exports.searchDocument = _chunkSBCZ6RN5cjs.searchDocument; exports.smartQuoteRules = _chunkSBCZ6RN5cjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkSBCZ6RN5cjs.smilieAutocorrectRules; exports.symbolRules = _chunkSBCZ6RN5cjs.symbolRules; exports.syncFootnotes = _chunkSBCZ6RN5cjs.syncFootnotes; exports.tableOfContentsMarkdownIt = _chunkSBCZ6RN5cjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkSBCZ6RN5cjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunkD27YFC46cjs.trackChangesPluginKey; exports.twoInitialCapitalsRules = _chunkSBCZ6RN5cjs.twoInitialCapitalsRules; exports.updateImageSrc = _chunkSBCZ6RN5cjs.updateImageSrc; exports.validateFindPattern = _chunkSBCZ6RN5cjs.validateFindPattern; exports.writeRichClipboard = _chunkSBCZ6RN5cjs.writeRichClipboard;
193
241
  //# 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;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
+ {"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;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,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,szOAAC","file":"/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"}
@@ -1,12 +1,16 @@
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';
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, p as CompileFindPatternResult, q as CompiledFindPattern, s as CrossReference, t as CrossReferenceOptions, u as CrossReferenceTarget, v as CrossReferenceTargetType, w as DEFAULT_AUTOCORRECT_EXCEPTIONS, x as DocumentCompare, y as DocumentCompareOptions, z as DocumentCompareStorage, E as DocumentSearchOptions, F as DocumentSearchResult, G as DocumentStructureCommandArgs, H as DocumentStructureCommandItem, I as EMPTY_FIND_REPLACE_SNAPSHOT, J as EditorCompareOptions, K as FIND_OPTION_TOGGLES, L as FIND_PARAGRAPH_MARK, M as FileImport, N as FileImportOptions, O as FindAllOptions, P as FindAllResult, Q as FindMatch, R as FindOptionToggle, S as FindOptions, T as FindPatternError, U as FindPatternErrorCode, V as FindReplace, W as FindReplaceCommandOptions, X as FindReplaceMode, Y as FindReplaceOptions, Z as FindReplaceSnapshot, _ as FindReplaceStorage, $ as FindReplaceStore, a0 as FocusHeadingOptions, a1 as FontSize, a2 as Footnote, a3 as FootnoteInfo, a4 as FootnoteReference, a5 as Footnotes, a6 as FootnotesOptions, a7 as GradientText, a8 as GradientTextOptions, a9 as Image, aa as ImageOptions, ab as InsertFootnoteOptions, ac as InsertTableOfContentsOptions, ad as LoadingNode, ae as MAX_FIND_PATTERN_LENGTH, af as Markdown, ag as OpenFindReplaceParams, ah as Outline, ai as OutlineHeading, aj as OutlineOptions, ak as OutlineSnapshot, al as OutlineStorage, am as OutlineStore, an as OutlineTreeItem, ao as PatternMatch, ap as ReplacePiece, aq as RichClipboard, ar as RichClipboardOptions, as as RichClipboardStorage, at as RichTextPresetOptions, au as SMILIE_REPLACEMENTS, av as SearchBudget, aw as SearchBudgetOptions, ax as SetBookmarkOptions, ay as SetSearchParams, az as SlashCommandMatchData, aA as SlashCommands, aB as SlashCommandsOptions, aC as SmilieReplacer, aD as TableOfContents, aE as TableOfContentsEntry, aF as TableOfContentsOptions, aG as TemplateSuggestions, aH as TemplateSuggestionsOptions, aI as applyDocumentComparison, aJ as applyReplacements, aK as autocorrectPluginKey, aL as buildOutlineTree, aM as capitalizeSentenceRules, aN as commentsPluginKey, aO as compareInEditor, aP as compileFindPattern, aQ as computeOutline, aR as createFindReplaceCommands, aT as createOutlineStore, aU as createRichTextPreset, aV as createSearchBudget, aW as crossReferencePluginKey, aX as defaultAutocorrectRules, aZ as documentStructureCommandItems, a_ as expandReplacement, a$ as fileImportPluginKey, b0 as findAllMatches, b1 as findAutocorrection, b2 as findCommentRanges, b3 as findHexColors, b5 as findReplacePluginKey, b6 as foldCodePoint, b7 as footnotesMarkdownIt, b8 as footnotesPluginKey, b9 as formatFindStatus, ba as fractionRules, bb as getActiveHeading, bc as getBookmarks, bd as getCommentAnchors, be as getCommentAuthor, bf as getCommentIdsAt, bg as getCommentStore, bh as getCrossReferenceTargets, bi as getDocumentStructureCommandItems, bj as getFindReplaceState, bk as getFindReplaceStore, bl as getFootnotes, bn as getOutline, bo as getTableOfContentsEntries, bp as handleImageInsertion, br as imagePastePluginKey, bt as insertImageNode, bu as isInsidePromptToken, bw as navigateToHeading, bx as outlinePluginKey, by as parseReplacement, bB as removeImageNode, bC as richClipboardPluginKey, bE as searchDocument, bF as smartQuoteRules, bG as smilieAutocorrectRules, bH as symbolRules, bI as syncFootnotes, bJ as tableOfContentsMarkdownIt, bK as tableOfContentsPluginKey, bL as twoInitialCapitalsRules, bN as updateImageSrc, bO as validateFindPattern, bP as writeRichClipboard } from '../index-BhJBSm2d.cjs';
2
+ export { B as BLOCK_CHANGE_ATTRIBUTE, D as DELETION_MARK_NAME, F as FORMAT_CHANGE_MARK_NAME, I as INSERTION_MARK_NAME, M as Mention, a as MentionEntity, b as MentionOptions, T as TRACK_CHANGES_SKIP_META, c as TrackChanges, d as TrackChangesOptions, e as TrackChangesSnapshot, f as TrackChangesStorage, g as TrackChangesStore, h as TrackedBlockChangeAttributes, i as TrackedBlockOperation, j as TrackedBlockSnapshot, k as TrackedChange, l as TrackedChangeAttributes, m as TrackedChangeType, n as TrackedChangesView, o as TrackedDeletion, p as TrackedFormatChange, q as TrackedFormatChangeAttributes, r as TrackedFormatSummary, s as TrackedInsertion, t as TrackedMark, u as createMentionExtension, v as describeBlockChange, w as describeFormatChange, x as getTrackChangesStore, y as getTrackedChangeAt, z as getTrackedChanges, A as isTrackChangesEnabled, C as resolveTrackedChanges, E as trackChangesPluginKey } from '../track-changes-BK5sVf4_.cjs';
3
+ 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, R as ReviewAuthor, S as SerializedComments, h as createCommentStore, i as createReviewId, j as formatReviewTime } from '../comment-store-BEMgVlAA.cjs';
3
4
  export { MarkdownOptions } from 'tiptap-markdown';
4
5
  import '@tiptap/core';
5
- import '../tokens-CyLZmIei.cjs';
6
+ import '../tokens-D7yXvUU6.cjs';
6
7
  import '@tiptap/pm/state';
7
8
  import '@tiptap/pm/view';
8
9
  import '@tiptap/pm/model';
9
10
  import '@tiptap/extension-image';
10
11
  import '../registry-GJI4gToU.cjs';
12
+ import '../documents-KRTPhvst.cjs';
13
+ import '../registry-D32LpIc4.cjs';
14
+ import '../schema-DYDGdYL9.cjs';
11
15
  import '@tiptap/extension-mention';
12
16
  import '@tiptap/suggestion';