@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
package/dist/index.js CHANGED
@@ -1,25 +1,41 @@
1
+ import "./chunk-HLIMTC6N.js";
1
2
  import {
2
- TEMPLATE_DEPTH_ERROR,
3
- TEMPLATE_LOOP_ERROR,
3
+ FIELD_ALIASES,
4
+ MAX_DATA_SOURCE_FIELDS,
5
+ MAX_DATA_SOURCE_RECORDS,
6
+ MAX_MERGE_LENGTH,
7
+ MAX_MERGE_OUTPUTS,
4
8
  compactVariableValues,
5
- evaluatePromptTokens,
9
+ detectDelimiter,
6
10
  extractInstructionNames,
7
11
  extractTemplateNames,
8
12
  extractVariableNames,
9
13
  extractVariables,
10
- getLatestVersion,
11
- getPromptDiagnostics,
12
- getTemplateBody,
13
14
  getVariableFormFields,
14
15
  mapRawOffsetToResolved,
15
16
  mapResolvedOffsetToRaw,
16
- resolvePrompt,
17
+ matchFields,
18
+ mergeRecords,
19
+ normalizeFieldKey,
20
+ normalizeFieldNames,
21
+ parseDataSource,
22
+ recordToValues,
17
23
  resolveTemplates,
18
24
  resolveTemplatesWithMapping,
19
25
  resolveVariables,
26
+ serializeMergeOutputs
27
+ } from "./chunk-OXSV64JX.js";
28
+ import {
29
+ TEMPLATE_DEPTH_ERROR,
30
+ TEMPLATE_LOOP_ERROR,
31
+ evaluatePromptTokens,
32
+ getLatestVersion,
33
+ getPromptDiagnostics,
34
+ getTemplateBody,
35
+ resolvePrompt,
20
36
  tokenizePrompt,
21
37
  tokenizePromptWithDiagnostics
22
- } from "./chunk-OYXSKQFR.js";
38
+ } from "./chunk-FPENXAEJ.js";
23
39
  import {
24
40
  Autocorrect,
25
41
  BUILT_IN_IMPORT_ADAPTERS,
@@ -33,7 +49,13 @@ import {
33
49
  DEFAULT_ZIP_MAX_ENTRIES,
34
50
  DEFAULT_ZIP_MAX_TOTAL_SIZE,
35
51
  DOCX_MIME_TYPES,
52
+ DocumentCompare,
53
+ EMPTY_FIND_REPLACE_SNAPSHOT,
54
+ FIND_OPTION_TOGGLES,
55
+ FIND_PARAGRAPH_MARK,
36
56
  FileImport,
57
+ FindReplace,
58
+ FindReplaceStore,
37
59
  FontSize,
38
60
  Footnote,
39
61
  FootnoteReference,
@@ -43,6 +65,7 @@ import {
43
65
  ImportAdapterRegistry,
44
66
  ImportError,
45
67
  LoadingNode,
68
+ MAX_FIND_PATTERN_LENGTH,
46
69
  Markdown,
47
70
  Mention,
48
71
  Outline,
@@ -54,30 +77,41 @@ import {
54
77
  TemplateSuggestions,
55
78
  ZipArchive,
56
79
  ZipError,
80
+ applyDocumentComparison,
81
+ applyReplacements,
57
82
  autocorrectPluginKey,
58
83
  buildOutlineTree,
59
84
  capitalizeSentenceRules,
60
85
  commentsPluginKey,
86
+ compareInEditor,
87
+ compileFindPattern,
61
88
  computeOutline,
62
89
  createDocxImportAdapter,
90
+ createFindReplaceCommands,
63
91
  createImportAdapterRegistry,
64
92
  createImportContext,
65
93
  createMentionExtension,
66
94
  createOutlineStore,
67
95
  createRichTextPreset,
96
+ createSearchBudget,
68
97
  crossReferencePluginKey,
69
98
  defaultAutocorrectRules,
70
99
  defaultImportRegistry,
71
100
  documentStructureCommandItems,
72
101
  docxImportAdapter,
73
102
  docxToDocumentImport,
103
+ expandReplacement,
74
104
  fileImportPluginKey,
105
+ findAllMatches,
75
106
  findAutocorrection,
76
107
  findCommentRanges,
77
108
  findHexColors,
78
109
  findImportAdapter,
110
+ findReplacePluginKey,
111
+ foldCodePoint,
79
112
  footnotesMarkdownIt,
80
113
  footnotesPluginKey,
114
+ formatFindStatus,
81
115
  fractionRules,
82
116
  getActiveHeading,
83
117
  getBookmarks,
@@ -87,6 +121,8 @@ import {
87
121
  getCommentStore,
88
122
  getCrossReferenceTargets,
89
123
  getDocumentStructureCommandItems,
124
+ getFindReplaceState,
125
+ getFindReplaceStore,
90
126
  getFootnotes,
91
127
  getImportAccept,
92
128
  getOutline,
@@ -104,12 +140,14 @@ import {
104
140
  markdownImportAdapter,
105
141
  navigateToHeading,
106
142
  outlinePluginKey,
143
+ parseReplacement,
107
144
  plainTextImportAdapter,
108
145
  readZip,
109
146
  registerImportAdapter,
110
147
  removeImageNode,
111
148
  richClipboardPluginKey,
112
149
  rtfImportAdapter,
150
+ searchDocument,
113
151
  smartQuoteRules,
114
152
  smilieAutocorrectRules,
115
153
  symbolRules,
@@ -119,24 +157,39 @@ import {
119
157
  twoInitialCapitalsRules,
120
158
  unregisterImportAdapter,
121
159
  updateImageSrc,
160
+ validateFindPattern,
122
161
  writeRichClipboard,
123
162
  zipCrc32
124
- } from "./chunk-QGHGJ56O.js";
163
+ } from "./chunk-ITBSKI26.js";
164
+ import {
165
+ compareDocuments,
166
+ compareHtml,
167
+ diffChanges,
168
+ diffSequences
169
+ } from "./chunk-FODNLX5N.js";
125
170
  import {
126
171
  INSTRUCTION_REGEX,
127
172
  TEMPLATE_REGEX,
128
173
  VARIABLE_REGEX,
174
+ compareConditionValues,
175
+ conditionSubject,
176
+ describeConditionalTag,
129
177
  escapeVariableText,
130
178
  evaluateCondition,
179
+ evaluateConditionExpression,
180
+ formatComparisonOperand,
181
+ formatConditionalTag,
131
182
  getSuppliedValue,
132
183
  instructionRegex,
133
184
  isPromptValueSet,
134
185
  matchConditionalTags,
186
+ parseComparison,
187
+ parseConditionExpression,
135
188
  parseVariableBody,
136
189
  templateRegex,
137
190
  unescapeVariableText,
138
191
  variableRegex
139
- } from "./chunk-B2ZRLN4S.js";
192
+ } from "./chunk-P6ODPZ4W.js";
140
193
  import "./chunk-N7FG6CBO.js";
141
194
  import {
142
195
  PIXERATE_DOCUMENT_MIME,
@@ -148,12 +201,13 @@ import {
148
201
  rtfToPlainText,
149
202
  sanitizeImportedHtml,
150
203
  serializeRichClipboardPayload
151
- } from "./chunk-JJDLPEWL.js";
204
+ } from "./chunk-3LV6RRPH.js";
152
205
  import {
153
206
  DEFAULT_COLUMN_WIDTH,
154
207
  DEFAULT_ROW_HEIGHT,
155
208
  DataSourceBinder,
156
209
  DependencyGraph,
210
+ NUMBER_FORMAT_PRESETS,
157
211
  SPREADSHEET_CLIPBOARD_MIME,
158
212
  SPREADSHEET_IMPORT_ADAPTERS,
159
213
  SPREADSHEET_TABLE_ACTIONS,
@@ -162,6 +216,7 @@ import {
162
216
  applyFormulaSuggestion,
163
217
  bindSpreadsheetTableActions,
164
218
  buildSpreadsheetView,
219
+ cellFormatForNumberFormat,
165
220
  clampMenuPosition,
166
221
  columnDependencyKey,
167
222
  compareCellValues,
@@ -169,9 +224,11 @@ import {
169
224
  computeRowGroups,
170
225
  createSpreadsheetClipboardData,
171
226
  csvImportAdapter,
172
- escapeCsvField,
173
227
  extractCellDependencies,
174
228
  fillSeries,
229
+ formatCellDisplay,
230
+ formatCellForDisplay,
231
+ formatValueWithCode,
175
232
  getFillDirection,
176
233
  getFormulaCaretContext,
177
234
  getFormulaHints,
@@ -180,14 +237,14 @@ import {
180
237
  getTableSections,
181
238
  importFileIntoSpreadsheet,
182
239
  isBlankValue,
240
+ isGeneralNumberFormat,
183
241
  isSingleCellRange,
184
242
  mapFormulaReferences,
185
243
  matchesFilterRule,
186
244
  normalizeRange,
245
+ numberFormatForCellFormat,
187
246
  offsetFormulaReferences,
188
- parseCsv,
189
247
  parseHtmlTable,
190
- parseTsv,
191
248
  rangeContains,
192
249
  rangeContainsRange,
193
250
  rangesIntersect,
@@ -197,13 +254,19 @@ import {
197
254
  remapFormulaReferences,
198
255
  roundFloat,
199
256
  rowPassesFilters,
200
- serializeCsv,
257
+ runSpreadsheetMenuItem,
201
258
  serializeHtmlTable,
202
- serializeTsv,
203
259
  shiftFormulaReferences,
204
260
  toNumber,
205
261
  tsvImportAdapter
206
- } from "./chunk-K3R5NG2D.js";
262
+ } from "./chunk-U5KWZU4X.js";
263
+ import {
264
+ escapeCsvField,
265
+ parseCsv,
266
+ parseTsv,
267
+ serializeCsv,
268
+ serializeTsv
269
+ } from "./chunk-664LQYFJ.js";
207
270
  import {
208
271
  DirtyTracker,
209
272
  HistoryManager,
@@ -213,14 +276,30 @@ import {
213
276
  defaultIsEqual,
214
277
  withoutDirty
215
278
  } from "./chunk-2H7ZHPEJ.js";
279
+ import {
280
+ MARKDOWN_MENTION_SPLIT_REGEX,
281
+ MENTION_REGEX,
282
+ escapeHtml,
283
+ extractMentions,
284
+ extractMentionsFromDoc,
285
+ getEditorMarkdown,
286
+ getEditorText,
287
+ htmlToPlainText,
288
+ markdownToTipTapHtml,
289
+ parseMentionSegments,
290
+ plainTextToSlice,
291
+ plainTextToTipTapHtml,
292
+ preprocessMarkdownFileLinks,
293
+ preprocessMarkdownMentions,
294
+ sanitizeHtml,
295
+ stripMarkdownCode
296
+ } from "./chunk-PGNZKFQS.js";
216
297
  import {
217
298
  BLOCK_CHANGE_ATTRIBUTE,
218
299
  CommentStore,
219
300
  DELETION_MARK_NAME,
220
301
  FORMAT_CHANGE_MARK_NAME,
221
302
  INSERTION_MARK_NAME,
222
- MARKDOWN_MENTION_SPLIT_REGEX,
223
- MENTION_REGEX,
224
303
  TRACK_CHANGES_SKIP_META,
225
304
  TrackChanges,
226
305
  TrackChangesStore,
@@ -231,41 +310,34 @@ import {
231
310
  createReviewId,
232
311
  describeBlockChange,
233
312
  describeFormatChange,
234
- escapeHtml,
235
- extractMentions,
236
- extractMentionsFromDoc,
237
313
  formatReviewTime,
238
- getEditorMarkdown,
239
- getEditorText,
240
314
  getTrackChangesStore,
241
315
  getTrackedChangeAt,
242
316
  getTrackedChanges,
243
- htmlToPlainText,
244
317
  isTrackChangesEnabled,
245
- markdownToTipTapHtml,
246
- parseMentionSegments,
247
- plainTextToSlice,
248
- plainTextToTipTapHtml,
249
- preprocessMarkdownFileLinks,
250
- preprocessMarkdownMentions,
251
318
  resolveTrackedChanges,
252
- sanitizeHtml,
253
- stripMarkdownCode,
254
319
  trackChangesPluginKey
255
- } from "./chunk-MJZBNWG7.js";
320
+ } from "./chunk-5S3Z4PPF.js";
256
321
  import {
257
322
  FORMULA_ERRORS,
258
323
  FormulaEvaluator,
259
324
  FormulaParser,
260
325
  MAX_FORMULA_ARRAY_SIZE,
326
+ MAX_NUMBER_FORMAT_CODE_CHARS,
327
+ NumberFormat,
261
328
  WHOLE_COLUMN_END_ROW,
329
+ builtinNumberFormat,
330
+ builtinNumberFormatId,
262
331
  checkFormulaArgumentCount,
332
+ clearNumberFormatCache,
263
333
  colNameToIndex,
264
334
  compareNumbers,
265
335
  compareValues,
336
+ dateValueToSerial,
266
337
  describeFormulaError,
267
- formatCellDisplay,
268
- formatValueWithCode,
338
+ formatGeneralFit,
339
+ formatNumberFormatValue,
340
+ formatTextFunction,
269
341
  getFormulaArgumentSpecIndex,
270
342
  getFormulaFunction,
271
343
  getFormulaSignature,
@@ -273,6 +345,7 @@ import {
273
345
  indexToColName,
274
346
  isFormulaError,
275
347
  listFormulaFunctions,
348
+ numberFormatColorToCss,
276
349
  numberToText,
277
350
  parseCellInput,
278
351
  parseCellReference,
@@ -287,7 +360,7 @@ import {
287
360
  tokenizeFormula,
288
361
  unregisterFormulaFunction,
289
362
  wildcardToRegExp
290
- } from "./chunk-QBJ22YZR.js";
363
+ } from "./chunk-3CN2WD3X.js";
291
364
 
292
365
  // src/controller.ts
293
366
  import { Editor } from "@tiptap/core";
@@ -738,11 +811,18 @@ export {
738
811
  DataSourceBinder,
739
812
  DependencyGraph,
740
813
  DirtyTracker,
814
+ DocumentCompare,
815
+ EMPTY_FIND_REPLACE_SNAPSHOT,
741
816
  EditorController,
817
+ FIELD_ALIASES,
818
+ FIND_OPTION_TOGGLES,
819
+ FIND_PARAGRAPH_MARK,
742
820
  FORMAT_CHANGE_MARK_NAME,
743
821
  FORMULA_ERRORS,
744
822
  FileImport,
745
823
  FileImportController,
824
+ FindReplace,
825
+ FindReplaceStore,
746
826
  FontSize,
747
827
  Footnote,
748
828
  FootnoteReference,
@@ -758,10 +838,18 @@ export {
758
838
  ImportError,
759
839
  LoadingNode,
760
840
  MARKDOWN_MENTION_SPLIT_REGEX,
841
+ MAX_DATA_SOURCE_FIELDS,
842
+ MAX_DATA_SOURCE_RECORDS,
843
+ MAX_FIND_PATTERN_LENGTH,
761
844
  MAX_FORMULA_ARRAY_SIZE,
845
+ MAX_MERGE_LENGTH,
846
+ MAX_MERGE_OUTPUTS,
847
+ MAX_NUMBER_FORMAT_CODE_CHARS,
762
848
  MENTION_REGEX,
763
849
  Markdown,
764
850
  Mention,
851
+ NUMBER_FORMAT_PRESETS,
852
+ NumberFormat,
765
853
  Outline,
766
854
  PIXERATE_DOCUMENT_MIME,
767
855
  RichClipboard,
@@ -788,30 +876,43 @@ export {
788
876
  ZipArchive,
789
877
  ZipError,
790
878
  aggregateValues,
879
+ applyDocumentComparison,
791
880
  applyFormulaSuggestion,
881
+ applyReplacements,
792
882
  autocorrectPluginKey,
793
883
  bindDirtyToHistory,
794
884
  bindSpreadsheetTableActions,
795
885
  buildOutlineTree,
796
886
  buildSpreadsheetView,
887
+ builtinNumberFormat,
888
+ builtinNumberFormatId,
797
889
  capitalizeSentenceRules,
890
+ cellFormatForNumberFormat,
798
891
  checkFormulaArgumentCount,
799
892
  clampMenuPosition,
893
+ clearNumberFormatCache,
800
894
  colNameToIndex,
801
895
  columnDependencyKey,
802
896
  commentsPluginKey,
803
897
  compactVariableValues,
804
898
  compareCellValues,
899
+ compareConditionValues,
900
+ compareDocuments,
901
+ compareHtml,
902
+ compareInEditor,
805
903
  compareNumbers,
806
904
  compareValues,
905
+ compileFindPattern,
807
906
  computeFillTarget,
808
907
  computeOutline,
809
908
  computeRowGroups,
909
+ conditionSubject,
810
910
  createCommentStore,
811
911
  createDirtyTracker,
812
912
  createDocxImportAdapter,
813
913
  createEditor,
814
914
  createFileImportController,
915
+ createFindReplaceCommands,
815
916
  createHistoryManager,
816
917
  createImportAdapterRegistry,
817
918
  createImportContext,
@@ -820,16 +921,22 @@ export {
820
921
  createPdfImportAdapter,
821
922
  createReviewId,
822
923
  createRichTextPreset,
924
+ createSearchBudget,
823
925
  createSpreadsheetClipboardData,
824
926
  createZipImportAdapter,
825
927
  crossReferencePluginKey,
826
928
  csvImportAdapter,
929
+ dateValueToSerial,
827
930
  defaultAutocorrectRules,
828
931
  defaultImportRegistry,
829
932
  defaultIsEqual,
830
933
  describeBlockChange,
934
+ describeConditionalTag,
831
935
  describeFormatChange,
832
936
  describeFormulaError,
937
+ detectDelimiter,
938
+ diffChanges,
939
+ diffSequences,
833
940
  documentStructureCommandItems,
834
941
  docxImportAdapter,
835
942
  docxToDocumentImport,
@@ -837,7 +944,9 @@ export {
837
944
  escapeHtml,
838
945
  escapeVariableText,
839
946
  evaluateCondition,
947
+ evaluateConditionExpression,
840
948
  evaluatePromptTokens,
949
+ expandReplacement,
841
950
  extractCellDependencies,
842
951
  extractInstructionNames,
843
952
  extractMentions,
@@ -847,14 +956,24 @@ export {
847
956
  extractVariables,
848
957
  fileImportPluginKey,
849
958
  fillSeries,
959
+ findAllMatches,
850
960
  findAutocorrection,
851
961
  findCommentRanges,
852
962
  findHexColors,
853
963
  findImportAdapter,
964
+ findReplacePluginKey,
965
+ foldCodePoint,
854
966
  footnotesMarkdownIt,
855
967
  footnotesPluginKey,
856
968
  formatCellDisplay,
969
+ formatCellForDisplay,
970
+ formatComparisonOperand,
971
+ formatConditionalTag,
972
+ formatFindStatus,
973
+ formatGeneralFit,
974
+ formatNumberFormatValue,
857
975
  formatReviewTime,
976
+ formatTextFunction,
858
977
  formatValueWithCode,
859
978
  fractionRules,
860
979
  getActiveHeading,
@@ -869,6 +988,8 @@ export {
869
988
  getEditorMarkdown,
870
989
  getEditorText,
871
990
  getFillDirection,
991
+ getFindReplaceState,
992
+ getFindReplaceStore,
872
993
  getFootnotes,
873
994
  getFormulaArgumentSpecIndex,
874
995
  getFormulaCaretContext,
@@ -905,6 +1026,7 @@ export {
905
1026
  instructionRegex,
906
1027
  isBlankValue,
907
1028
  isFormulaError,
1029
+ isGeneralNumberFormat,
908
1030
  isInsidePromptToken,
909
1031
  isPromptValueSet,
910
1032
  isSingleCellRange,
@@ -917,21 +1039,31 @@ export {
917
1039
  markdownImportAdapter,
918
1040
  markdownToTipTapHtml,
919
1041
  matchConditionalTags,
1042
+ matchFields,
920
1043
  matchesFilterRule,
1044
+ mergeRecords,
921
1045
  navigateToHeading,
1046
+ normalizeFieldKey,
1047
+ normalizeFieldNames,
922
1048
  normalizeRange,
1049
+ numberFormatColorToCss,
1050
+ numberFormatForCellFormat,
923
1051
  numberToText,
924
1052
  offsetFormulaReferences,
925
1053
  outlinePluginKey,
926
1054
  parseCellInput,
927
1055
  parseCellReference,
1056
+ parseComparison,
1057
+ parseConditionExpression,
928
1058
  parseCriteria,
929
1059
  parseCsv,
1060
+ parseDataSource,
930
1061
  parseFormula,
931
1062
  parseHtmlTable,
932
1063
  parseMentionSegments,
933
1064
  parseNumberText,
934
1065
  parseRange,
1066
+ parseReplacement,
935
1067
  parseRichClipboardPayload,
936
1068
  parseTsv,
937
1069
  parseVariableBody,
@@ -950,6 +1082,7 @@ export {
950
1082
  readSpreadsheetClipboard,
951
1083
  readZip,
952
1084
  rebaseClipboardRows,
1085
+ recordToValues,
953
1086
  registerFormulaFunction,
954
1087
  registerImportAdapter,
955
1088
  registerSpreadsheetImportAdapters,
@@ -965,12 +1098,15 @@ export {
965
1098
  rowPassesFilters,
966
1099
  rtfImportAdapter,
967
1100
  rtfToPlainText,
1101
+ runSpreadsheetMenuItem,
968
1102
  sanitizeHtml,
969
1103
  sanitizeImportedHtml,
1104
+ searchDocument,
970
1105
  searchFormulaFunctions,
971
1106
  serialFromYmd,
972
1107
  serializeCsv,
973
1108
  serializeHtmlTable,
1109
+ serializeMergeOutputs,
974
1110
  serializeRichClipboardPayload,
975
1111
  serializeTsv,
976
1112
  shiftFormulaReferences,
@@ -995,6 +1131,7 @@ export {
995
1131
  unregisterFormulaFunction,
996
1132
  unregisterImportAdapter,
997
1133
  updateImageSrc,
1134
+ validateFindPattern,
998
1135
  variableRegex,
999
1136
  wildcardToRegExp,
1000
1137
  withoutDirty,