@pixerate/editor 0.21.0 → 0.22.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 (70) hide show
  1. package/README.md +20 -11
  2. package/dist/agent/index.cjs +8 -8
  3. package/dist/agent/index.d.cts +2 -2
  4. package/dist/agent/index.d.ts +2 -2
  5. package/dist/agent/index.js +2 -2
  6. package/dist/canvas/index.cjs +1269 -13
  7. package/dist/canvas/index.cjs.map +1 -1
  8. package/dist/canvas/index.d.cts +432 -6
  9. package/dist/canvas/index.d.ts +432 -6
  10. package/dist/canvas/index.js +1264 -8
  11. package/dist/canvas/index.js.map +1 -1
  12. package/dist/{chunk-U6NDQFOK.cjs → chunk-6M3BCTBD.cjs} +427 -138
  13. package/dist/chunk-6M3BCTBD.cjs.map +1 -0
  14. package/dist/{chunk-TVRC4KVT.cjs → chunk-AA4ZEVCC.cjs} +845 -90
  15. package/dist/chunk-AA4ZEVCC.cjs.map +1 -0
  16. package/dist/{chunk-LA7PEGU3.cjs → chunk-CL37JGFW.cjs} +4 -4
  17. package/dist/{chunk-LA7PEGU3.cjs.map → chunk-CL37JGFW.cjs.map} +1 -1
  18. package/dist/{chunk-A7DKIA72.js → chunk-DENSCKFC.js} +642 -69
  19. package/dist/chunk-DENSCKFC.js.map +1 -0
  20. package/dist/{chunk-4QPLEUL2.cjs → chunk-GVSMRPHB.cjs} +1046 -54
  21. package/dist/chunk-GVSMRPHB.cjs.map +1 -0
  22. package/dist/{chunk-KYRZDWM4.js → chunk-JJDLPEWL.js} +2 -2
  23. package/dist/{chunk-3TYMNULT.js → chunk-MJZBNWG7.js} +807 -52
  24. package/dist/chunk-MJZBNWG7.js.map +1 -0
  25. package/dist/{chunk-CYFJCKC4.js → chunk-QGHGJ56O.js} +997 -5
  26. package/dist/chunk-QGHGJ56O.js.map +1 -0
  27. package/dist/{chunk-GVW4P7BG.js → chunk-RU52I7QO.js} +305 -16
  28. package/dist/chunk-RU52I7QO.js.map +1 -0
  29. package/dist/{chunk-JYRIOFEN.cjs → chunk-SAZRENEZ.cjs} +647 -74
  30. package/dist/chunk-SAZRENEZ.cjs.map +1 -0
  31. package/dist/{controller-OUdxPY-X.d.ts → controller-B7GIybc4.d.cts} +139 -7
  32. package/dist/{controller-OUdxPY-X.d.cts → controller-B7GIybc4.d.ts} +139 -7
  33. package/dist/extensions/index.cjs +14 -4
  34. package/dist/extensions/index.cjs.map +1 -1
  35. package/dist/extensions/index.d.cts +3 -3
  36. package/dist/extensions/index.d.ts +3 -3
  37. package/dist/extensions/index.js +13 -3
  38. package/dist/{index-k3mFbPx_.d.cts → index-CCr_z9kF.d.cts} +3 -3
  39. package/dist/{index-Ng1pG7JE.d.ts → index-Ck6ajwXh.d.ts} +3 -3
  40. package/dist/index.cjs +250 -16
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.cts +294 -8
  43. package/dist/index.d.ts +294 -8
  44. package/dist/index.js +241 -7
  45. package/dist/index.js.map +1 -1
  46. package/dist/{registry-iAHbqkYt.d.cts → registry-GJI4gToU.d.cts} +15 -4
  47. package/dist/{registry-iAHbqkYt.d.ts → registry-GJI4gToU.d.ts} +15 -4
  48. package/dist/serializers/index.cjs +3 -3
  49. package/dist/serializers/index.d.cts +1 -1
  50. package/dist/serializers/index.d.ts +1 -1
  51. package/dist/serializers/index.js +2 -2
  52. package/dist/spreadsheet/index.cjs +7 -3
  53. package/dist/spreadsheet/index.cjs.map +1 -1
  54. package/dist/spreadsheet/index.d.cts +33 -4
  55. package/dist/spreadsheet/index.d.ts +33 -4
  56. package/dist/spreadsheet/index.js +6 -2
  57. package/dist/{track-changes-G8JcWB8b.d.cts → track-changes-BSF58RK0.d.cts} +92 -9
  58. package/dist/{track-changes-G8JcWB8b.d.ts → track-changes-BSF58RK0.d.ts} +92 -9
  59. package/dist/{types-DMe0vFB1.d.cts → types-CJ4U-HHI.d.cts} +1 -1
  60. package/dist/{types-DMe0vFB1.d.ts → types-CJ4U-HHI.d.ts} +1 -1
  61. package/package.json +1 -1
  62. package/dist/chunk-3TYMNULT.js.map +0 -1
  63. package/dist/chunk-4QPLEUL2.cjs.map +0 -1
  64. package/dist/chunk-A7DKIA72.js.map +0 -1
  65. package/dist/chunk-CYFJCKC4.js.map +0 -1
  66. package/dist/chunk-GVW4P7BG.js.map +0 -1
  67. package/dist/chunk-JYRIOFEN.cjs.map +0 -1
  68. package/dist/chunk-TVRC4KVT.cjs.map +0 -1
  69. package/dist/chunk-U6NDQFOK.cjs.map +0 -1
  70. /package/dist/{chunk-KYRZDWM4.js.map → chunk-JJDLPEWL.js.map} +0 -0
@@ -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,
@@ -3,10 +3,10 @@ import { C as ColorGradient, f as Template } from './tokens-CyLZmIei.cjs';
3
3
  import { EditorState, PluginKey, Transaction } from '@tiptap/pm/state';
4
4
  import { DecorationSet, EditorView } from '@tiptap/pm/view';
5
5
  import { Node as Node$1 } from '@tiptap/pm/model';
6
- import { R as ReviewAuthor, b as CommentStore, C as CommentAnchor, i as MentionOptions, k as TrackChangesOptions } from './track-changes-G8JcWB8b.cjs';
6
+ import { R as ReviewAuthor, b as CommentStore, C as CommentAnchor, i as MentionOptions, k as TrackChangesOptions } from './track-changes-BSF58RK0.cjs';
7
7
  import { MarkdownOptions } from 'tiptap-markdown';
8
8
  import { ImageOptions as ImageOptions$1 } from '@tiptap/extension-image';
9
- import { c as ImportAdapter, I as ImportAdapterRegistry, b as FindImportAdapterQuery, i as ImportTarget, h as ImportInput, g as ImportFileOptions, a as ImportOutcome, R as RegisterImportAdapterOptions, F as FileLike } from './registry-iAHbqkYt.cjs';
9
+ import { c as ImportAdapter, I as ImportAdapterRegistry, b as FindImportAdapterQuery, i as ImportTarget, h as ImportInput, g as ImportFileOptions, a as ImportOutcome, R as RegisterImportAdapterOptions, F as FileLike } from './registry-GJI4gToU.cjs';
10
10
 
11
11
  interface GradientTextOptions {
12
12
  templateColorMap: Map<string, ColorGradient>;
@@ -896,4 +896,4 @@ interface RichTextPresetOptions {
896
896
  */
897
897
  declare function createRichTextPreset(options?: RichTextPresetOptions): Extensions;
898
898
 
899
- export { type RichClipboardStorage as $, type AddCommentOptions as A, BUILT_IN_IMPORT_ADAPTERS as B, COMMENT_MARK_NAME as C, type DocumentImport as D, Footnote as E, FileImport as F, type FootnoteInfo as G, FootnoteReference as H, Footnotes as I, type FootnotesOptions as J, GradientText as K, type GradientTextOptions as L, Image as M, type ImageOptions as N, type InsertFootnoteOptions as O, type InsertTableOfContentsOptions as P, LoadingNode as Q, Markdown as R, Outline as S, type OutlineHeading as T, type OutlineOptions as U, type OutlineSnapshot as V, type OutlineStorage as W, type OutlineStore as X, type OutlineTreeItem as Y, RichClipboard as Z, type RichClipboardOptions as _, Autocorrect as a, tableOfContentsPluginKey as a$, type RichTextPresetOptions as a0, SMILIE_REPLACEMENTS as a1, type SetBookmarkOptions as a2, type SlashCommandMatchData as a3, SlashCommands as a4, type SlashCommandsOptions as a5, SmilieReplacer as a6, TableOfContents as a7, type TableOfContentsEntry as a8, type TableOfContentsOptions as a9, getCommentIdsAt as aA, getCommentStore as aB, getCrossReferenceTargets as aC, getDocumentStructureCommandItems as aD, getFootnotes as aE, getImportAccept as aF, getOutline as aG, getTableOfContentsEntries as aH, handleImageInsertion as aI, htmlImportAdapter as aJ, imagePastePluginKey as aK, importFile as aL, insertImageNode as aM, isInsidePromptToken as aN, markdownImportAdapter as aO, navigateToHeading as aP, outlinePluginKey as aQ, plainTextImportAdapter as aR, registerImportAdapter as aS, removeImageNode as aT, richClipboardPluginKey as aU, rtfImportAdapter as aV, smartQuoteRules as aW, smilieAutocorrectRules as aX, symbolRules as aY, syncFootnotes as aZ, tableOfContentsMarkdownIt as a_, TemplateSuggestions as aa, type TemplateSuggestionsOptions as ab, autocorrectPluginKey as ac, buildOutlineTree as ad, capitalizeSentenceRules as ae, commentsPluginKey as af, computeOutline as ag, createImportAdapterRegistry as ah, createOutlineStore as ai, createRichTextPreset as aj, crossReferencePluginKey as ak, defaultAutocorrectRules as al, defaultImportRegistry as am, documentStructureCommandItems as an, fileImportPluginKey as ao, findAutocorrection as ap, findCommentRanges as aq, findHexColors as ar, findImportAdapter as as, footnotesMarkdownIt as at, footnotesPluginKey as au, fractionRules as av, getActiveHeading as aw, getBookmarks as ax, getCommentAnchors as ay, getCommentAuthor as az, type AutocorrectContext as b, twoInitialCapitalsRules as b0, unregisterImportAdapter as b1, updateImageSrc as b2, writeRichClipboard as b3, type AutocorrectCorrection as c, type AutocorrectOptions as d, type AutocorrectRule as e, type AutocorrectStorage as f, Bookmark as g, type BookmarkInfo as h, type BookmarkOptions as i, ColorHighlighter as j, type CommentRange as k, Comments as l, type CommentsOptions as m, type CommentsStorage as n, type CreateImportAdapterRegistryOptions as o, CrossReference as p, type CrossReferenceOptions as q, type CrossReferenceTarget as r, type CrossReferenceTargetType as s, DEFAULT_AUTOCORRECT_EXCEPTIONS as t, type DocumentImportAdapter as u, type DocumentStructureCommandArgs as v, type DocumentStructureCommandItem as w, type FileImportOptions as x, type FocusHeadingOptions as y, FontSize as z };
899
+ export { type RichClipboardStorage as $, type AddCommentOptions as A, BUILT_IN_IMPORT_ADAPTERS as B, COMMENT_MARK_NAME as C, type DocumentImport as D, Footnote as E, FileImport as F, type FootnoteInfo as G, FootnoteReference as H, Footnotes as I, type FootnotesOptions as J, GradientText as K, type GradientTextOptions as L, Image as M, type ImageOptions as N, type InsertFootnoteOptions as O, type InsertTableOfContentsOptions as P, LoadingNode as Q, Markdown as R, Outline as S, type OutlineHeading as T, type OutlineOptions as U, type OutlineSnapshot as V, type OutlineStorage as W, type OutlineStore as X, type OutlineTreeItem as Y, RichClipboard as Z, type RichClipboardOptions as _, type DocumentImportAdapter as a, tableOfContentsPluginKey as a$, type RichTextPresetOptions as a0, SMILIE_REPLACEMENTS as a1, type SetBookmarkOptions as a2, type SlashCommandMatchData as a3, SlashCommands as a4, type SlashCommandsOptions as a5, SmilieReplacer as a6, TableOfContents as a7, type TableOfContentsEntry as a8, type TableOfContentsOptions as a9, getCommentIdsAt as aA, getCommentStore as aB, getCrossReferenceTargets as aC, getDocumentStructureCommandItems as aD, getFootnotes as aE, getImportAccept as aF, getOutline as aG, getTableOfContentsEntries as aH, handleImageInsertion as aI, htmlImportAdapter as aJ, imagePastePluginKey as aK, importFile as aL, insertImageNode as aM, isInsidePromptToken as aN, markdownImportAdapter as aO, navigateToHeading as aP, outlinePluginKey as aQ, plainTextImportAdapter as aR, registerImportAdapter as aS, removeImageNode as aT, richClipboardPluginKey as aU, rtfImportAdapter as aV, smartQuoteRules as aW, smilieAutocorrectRules as aX, symbolRules as aY, syncFootnotes as aZ, tableOfContentsMarkdownIt as a_, TemplateSuggestions as aa, type TemplateSuggestionsOptions as ab, autocorrectPluginKey as ac, buildOutlineTree as ad, capitalizeSentenceRules as ae, commentsPluginKey as af, computeOutline as ag, createImportAdapterRegistry as ah, createOutlineStore as ai, createRichTextPreset as aj, crossReferencePluginKey as ak, defaultAutocorrectRules as al, defaultImportRegistry as am, documentStructureCommandItems as an, fileImportPluginKey as ao, findAutocorrection as ap, findCommentRanges as aq, findHexColors as ar, findImportAdapter as as, footnotesMarkdownIt as at, footnotesPluginKey as au, fractionRules as av, getActiveHeading as aw, getBookmarks as ax, getCommentAnchors as ay, getCommentAuthor as az, Autocorrect as b, twoInitialCapitalsRules as b0, unregisterImportAdapter as b1, updateImageSrc as b2, writeRichClipboard as b3, type AutocorrectContext as c, type AutocorrectCorrection as d, type AutocorrectOptions as e, type AutocorrectRule as f, type AutocorrectStorage as g, Bookmark as h, type BookmarkInfo as i, type BookmarkOptions as j, ColorHighlighter as k, type CommentRange as l, Comments as m, type CommentsOptions as n, type CommentsStorage as o, type CreateImportAdapterRegistryOptions as p, CrossReference as q, type CrossReferenceOptions as r, type CrossReferenceTarget as s, type CrossReferenceTargetType as t, DEFAULT_AUTOCORRECT_EXCEPTIONS as u, type DocumentStructureCommandArgs as v, type DocumentStructureCommandItem as w, type FileImportOptions as x, type FocusHeadingOptions as y, FontSize as z };
@@ -3,10 +3,10 @@ import { C as ColorGradient, f as Template } from './tokens-CyLZmIei.js';
3
3
  import { EditorState, PluginKey, Transaction } from '@tiptap/pm/state';
4
4
  import { DecorationSet, EditorView } from '@tiptap/pm/view';
5
5
  import { Node as Node$1 } from '@tiptap/pm/model';
6
- import { R as ReviewAuthor, b as CommentStore, C as CommentAnchor, i as MentionOptions, k as TrackChangesOptions } from './track-changes-G8JcWB8b.js';
6
+ import { R as ReviewAuthor, b as CommentStore, C as CommentAnchor, i as MentionOptions, k as TrackChangesOptions } from './track-changes-BSF58RK0.js';
7
7
  import { MarkdownOptions } from 'tiptap-markdown';
8
8
  import { ImageOptions as ImageOptions$1 } from '@tiptap/extension-image';
9
- import { c as ImportAdapter, I as ImportAdapterRegistry, b as FindImportAdapterQuery, i as ImportTarget, h as ImportInput, g as ImportFileOptions, a as ImportOutcome, R as RegisterImportAdapterOptions, F as FileLike } from './registry-iAHbqkYt.js';
9
+ import { c as ImportAdapter, I as ImportAdapterRegistry, b as FindImportAdapterQuery, i as ImportTarget, h as ImportInput, g as ImportFileOptions, a as ImportOutcome, R as RegisterImportAdapterOptions, F as FileLike } from './registry-GJI4gToU.js';
10
10
 
11
11
  interface GradientTextOptions {
12
12
  templateColorMap: Map<string, ColorGradient>;
@@ -896,4 +896,4 @@ interface RichTextPresetOptions {
896
896
  */
897
897
  declare function createRichTextPreset(options?: RichTextPresetOptions): Extensions;
898
898
 
899
- export { type RichClipboardStorage as $, type AddCommentOptions as A, BUILT_IN_IMPORT_ADAPTERS as B, COMMENT_MARK_NAME as C, type DocumentImport as D, Footnote as E, FileImport as F, type FootnoteInfo as G, FootnoteReference as H, Footnotes as I, type FootnotesOptions as J, GradientText as K, type GradientTextOptions as L, Image as M, type ImageOptions as N, type InsertFootnoteOptions as O, type InsertTableOfContentsOptions as P, LoadingNode as Q, Markdown as R, Outline as S, type OutlineHeading as T, type OutlineOptions as U, type OutlineSnapshot as V, type OutlineStorage as W, type OutlineStore as X, type OutlineTreeItem as Y, RichClipboard as Z, type RichClipboardOptions as _, Autocorrect as a, tableOfContentsPluginKey as a$, type RichTextPresetOptions as a0, SMILIE_REPLACEMENTS as a1, type SetBookmarkOptions as a2, type SlashCommandMatchData as a3, SlashCommands as a4, type SlashCommandsOptions as a5, SmilieReplacer as a6, TableOfContents as a7, type TableOfContentsEntry as a8, type TableOfContentsOptions as a9, getCommentIdsAt as aA, getCommentStore as aB, getCrossReferenceTargets as aC, getDocumentStructureCommandItems as aD, getFootnotes as aE, getImportAccept as aF, getOutline as aG, getTableOfContentsEntries as aH, handleImageInsertion as aI, htmlImportAdapter as aJ, imagePastePluginKey as aK, importFile as aL, insertImageNode as aM, isInsidePromptToken as aN, markdownImportAdapter as aO, navigateToHeading as aP, outlinePluginKey as aQ, plainTextImportAdapter as aR, registerImportAdapter as aS, removeImageNode as aT, richClipboardPluginKey as aU, rtfImportAdapter as aV, smartQuoteRules as aW, smilieAutocorrectRules as aX, symbolRules as aY, syncFootnotes as aZ, tableOfContentsMarkdownIt as a_, TemplateSuggestions as aa, type TemplateSuggestionsOptions as ab, autocorrectPluginKey as ac, buildOutlineTree as ad, capitalizeSentenceRules as ae, commentsPluginKey as af, computeOutline as ag, createImportAdapterRegistry as ah, createOutlineStore as ai, createRichTextPreset as aj, crossReferencePluginKey as ak, defaultAutocorrectRules as al, defaultImportRegistry as am, documentStructureCommandItems as an, fileImportPluginKey as ao, findAutocorrection as ap, findCommentRanges as aq, findHexColors as ar, findImportAdapter as as, footnotesMarkdownIt as at, footnotesPluginKey as au, fractionRules as av, getActiveHeading as aw, getBookmarks as ax, getCommentAnchors as ay, getCommentAuthor as az, type AutocorrectContext as b, twoInitialCapitalsRules as b0, unregisterImportAdapter as b1, updateImageSrc as b2, writeRichClipboard as b3, type AutocorrectCorrection as c, type AutocorrectOptions as d, type AutocorrectRule as e, type AutocorrectStorage as f, Bookmark as g, type BookmarkInfo as h, type BookmarkOptions as i, ColorHighlighter as j, type CommentRange as k, Comments as l, type CommentsOptions as m, type CommentsStorage as n, type CreateImportAdapterRegistryOptions as o, CrossReference as p, type CrossReferenceOptions as q, type CrossReferenceTarget as r, type CrossReferenceTargetType as s, DEFAULT_AUTOCORRECT_EXCEPTIONS as t, type DocumentImportAdapter as u, type DocumentStructureCommandArgs as v, type DocumentStructureCommandItem as w, type FileImportOptions as x, type FocusHeadingOptions as y, FontSize as z };
899
+ export { type RichClipboardStorage as $, type AddCommentOptions as A, BUILT_IN_IMPORT_ADAPTERS as B, COMMENT_MARK_NAME as C, type DocumentImport as D, Footnote as E, FileImport as F, type FootnoteInfo as G, FootnoteReference as H, Footnotes as I, type FootnotesOptions as J, GradientText as K, type GradientTextOptions as L, Image as M, type ImageOptions as N, type InsertFootnoteOptions as O, type InsertTableOfContentsOptions as P, LoadingNode as Q, Markdown as R, Outline as S, type OutlineHeading as T, type OutlineOptions as U, type OutlineSnapshot as V, type OutlineStorage as W, type OutlineStore as X, type OutlineTreeItem as Y, RichClipboard as Z, type RichClipboardOptions as _, type DocumentImportAdapter as a, tableOfContentsPluginKey as a$, type RichTextPresetOptions as a0, SMILIE_REPLACEMENTS as a1, type SetBookmarkOptions as a2, type SlashCommandMatchData as a3, SlashCommands as a4, type SlashCommandsOptions as a5, SmilieReplacer as a6, TableOfContents as a7, type TableOfContentsEntry as a8, type TableOfContentsOptions as a9, getCommentIdsAt as aA, getCommentStore as aB, getCrossReferenceTargets as aC, getDocumentStructureCommandItems as aD, getFootnotes as aE, getImportAccept as aF, getOutline as aG, getTableOfContentsEntries as aH, handleImageInsertion as aI, htmlImportAdapter as aJ, imagePastePluginKey as aK, importFile as aL, insertImageNode as aM, isInsidePromptToken as aN, markdownImportAdapter as aO, navigateToHeading as aP, outlinePluginKey as aQ, plainTextImportAdapter as aR, registerImportAdapter as aS, removeImageNode as aT, richClipboardPluginKey as aU, rtfImportAdapter as aV, smartQuoteRules as aW, smilieAutocorrectRules as aX, symbolRules as aY, syncFootnotes as aZ, tableOfContentsMarkdownIt as a_, TemplateSuggestions as aa, type TemplateSuggestionsOptions as ab, autocorrectPluginKey as ac, buildOutlineTree as ad, capitalizeSentenceRules as ae, commentsPluginKey as af, computeOutline as ag, createImportAdapterRegistry as ah, createOutlineStore as ai, createRichTextPreset as aj, crossReferencePluginKey as ak, defaultAutocorrectRules as al, defaultImportRegistry as am, documentStructureCommandItems as an, fileImportPluginKey as ao, findAutocorrection as ap, findCommentRanges as aq, findHexColors as ar, findImportAdapter as as, footnotesMarkdownIt as at, footnotesPluginKey as au, fractionRules as av, getActiveHeading as aw, getBookmarks as ax, getCommentAnchors as ay, getCommentAuthor as az, Autocorrect as b, twoInitialCapitalsRules as b0, unregisterImportAdapter as b1, updateImageSrc as b2, writeRichClipboard as b3, type AutocorrectContext as c, type AutocorrectCorrection as d, type AutocorrectOptions as e, type AutocorrectRule as f, type AutocorrectStorage as g, Bookmark as h, type BookmarkInfo as i, type BookmarkOptions as j, ColorHighlighter as k, type CommentRange as l, Comments as m, type CommentsOptions as n, type CommentsStorage as o, type CreateImportAdapterRegistryOptions as p, CrossReference as q, type CrossReferenceOptions as r, type CrossReferenceTarget as s, type CrossReferenceTargetType as t, DEFAULT_AUTOCORRECT_EXCEPTIONS as u, type DocumentStructureCommandArgs as v, type DocumentStructureCommandItem as w, type FileImportOptions as x, type FocusHeadingOptions as y, FontSize as z };
package/dist/index.cjs CHANGED
@@ -109,7 +109,19 @@ var _chunk4SUNJZWBcjs = require('./chunk-4SUNJZWB.cjs');
109
109
 
110
110
 
111
111
 
112
- var _chunk4QPLEUL2cjs = require('./chunk-4QPLEUL2.cjs');
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+ var _chunkGVSMRPHBcjs = require('./chunk-GVSMRPHB.cjs');
113
125
 
114
126
 
115
127
 
@@ -136,7 +148,8 @@ require('./chunk-JACER6TE.cjs');
136
148
 
137
149
 
138
150
 
139
- var _chunkLA7PEGU3cjs = require('./chunk-LA7PEGU3.cjs');
151
+ var _chunkCL37JGFWcjs = require('./chunk-CL37JGFW.cjs');
152
+
140
153
 
141
154
 
142
155
 
@@ -190,7 +203,7 @@ var _chunkLA7PEGU3cjs = require('./chunk-LA7PEGU3.cjs');
190
203
 
191
204
 
192
205
 
193
- var _chunkU6NDQFOKcjs = require('./chunk-U6NDQFOK.cjs');
206
+ var _chunk6M3BCTBDcjs = require('./chunk-6M3BCTBD.cjs');
194
207
 
195
208
 
196
209
 
@@ -229,7 +242,13 @@ var _chunk2TWGLC5Kcjs = require('./chunk-2TWGLC5K.cjs');
229
242
 
230
243
 
231
244
 
232
- var _chunkTVRC4KVTcjs = require('./chunk-TVRC4KVT.cjs');
245
+
246
+
247
+
248
+
249
+
250
+ var _chunkAA4ZEVCCcjs = require('./chunk-AA4ZEVCC.cjs');
251
+
233
252
 
234
253
 
235
254
 
@@ -255,7 +274,7 @@ var _chunkTVRC4KVTcjs = require('./chunk-TVRC4KVT.cjs');
255
274
 
256
275
 
257
276
 
258
- var _chunkJYRIOFENcjs = require('./chunk-JYRIOFEN.cjs');
277
+ var _chunkSAZRENEZcjs = require('./chunk-SAZRENEZ.cjs');
259
278
 
260
279
  // src/controller.ts
261
280
  var _core = require('@tiptap/core');
@@ -288,7 +307,7 @@ var EditorController = class {
288
307
  this.onMarkdownChange = onMarkdownChange;
289
308
  this.onTokensChange = onTokensChange;
290
309
  this.onSelectionChange = onSelectionChange;
291
- const initialContent = plainTextMode && typeof content === "string" ? _chunkTVRC4KVTcjs.plainTextToTipTapHtml.call(void 0, content) : markdownMode && typeof content === "string" ? _chunkTVRC4KVTcjs.markdownToTipTapHtml.call(void 0, content) : content;
310
+ const initialContent = plainTextMode && typeof content === "string" ? _chunkAA4ZEVCCcjs.plainTextToTipTapHtml.call(void 0, content) : markdownMode && typeof content === "string" ? _chunkAA4ZEVCCcjs.markdownToTipTapHtml.call(void 0, content) : content;
292
311
  this.editor = new (0, _core.Editor)({
293
312
  element: element || void 0,
294
313
  content: initialContent,
@@ -321,7 +340,7 @@ var EditorController = class {
321
340
  clipboardTextParser: (text, context, _plain, view) => {
322
341
  const schema = _optionalChain([context, 'optionalAccess', _13 => _13.doc, 'optionalAccess', _14 => _14.type, 'optionalAccess', _15 => _15.schema]) || _optionalChain([context, 'optionalAccess', _16 => _16.schema]) || _optionalChain([view, 'optionalAccess', _17 => _17.state, 'optionalAccess', _18 => _18.schema]) || this.editor.schema;
323
342
  if (!schema) return _model.Slice.empty;
324
- return _chunkTVRC4KVTcjs.plainTextToSlice.call(void 0, text, schema);
343
+ return _chunkAA4ZEVCCcjs.plainTextToSlice.call(void 0, text, schema);
325
344
  }
326
345
  }
327
346
  });
@@ -347,20 +366,20 @@ var EditorController = class {
347
366
  }
348
367
  }
349
368
  getPlainText() {
350
- return _chunkTVRC4KVTcjs.getEditorText.call(void 0, this.editor);
369
+ return _chunkAA4ZEVCCcjs.getEditorText.call(void 0, this.editor);
351
370
  }
352
371
  setPlainText(text, emitUpdate = true) {
353
- const html = _chunkTVRC4KVTcjs.plainTextToTipTapHtml.call(void 0, text);
372
+ const html = _chunkAA4ZEVCCcjs.plainTextToTipTapHtml.call(void 0, text);
354
373
  this.editor.commands.setContent(html, emitUpdate);
355
374
  }
356
375
  getMarkdown() {
357
- return _chunkTVRC4KVTcjs.getEditorMarkdown.call(void 0, this.editor);
376
+ return _chunkAA4ZEVCCcjs.getEditorMarkdown.call(void 0, this.editor);
358
377
  }
359
378
  setMarkdown(markdown, emitUpdate = true) {
360
379
  if (_optionalChain([this, 'access', _23 => _23.editor, 'access', _24 => _24.storage, 'optionalAccess', _25 => _25.markdown, 'optionalAccess', _26 => _26.parser])) {
361
380
  this.editor.commands.setContent(markdown, emitUpdate);
362
381
  } else {
363
- const html = _chunkTVRC4KVTcjs.markdownToTipTapHtml.call(void 0, markdown);
382
+ const html = _chunkAA4ZEVCCcjs.markdownToTipTapHtml.call(void 0, markdown);
364
383
  this.editor.commands.setContent(html, emitUpdate);
365
384
  }
366
385
  }
@@ -370,7 +389,7 @@ var EditorController = class {
370
389
  */
371
390
  insertPlainText(from, to, text) {
372
391
  const { state, view } = this.editor;
373
- const tr = text.includes("\n") || text.includes("\r") ? state.tr.replace(from, to, _chunkTVRC4KVTcjs.plainTextToSlice.call(void 0, text, state.schema)) : text ? state.tr.insertText(text, from, to) : state.tr.delete(from, to);
392
+ const tr = text.includes("\n") || text.includes("\r") ? state.tr.replace(from, to, _chunkAA4ZEVCCcjs.plainTextToSlice.call(void 0, text, state.schema)) : text ? state.tr.insertText(text, from, to) : state.tr.delete(from, to);
374
393
  view.dispatch(tr.scrollIntoView());
375
394
  }
376
395
  /** Inserts text literally at the selection; HTML in `text` is not parsed. */
@@ -484,7 +503,7 @@ function pickImportFiles(options = {}) {
484
503
  return new Promise((resolve) => {
485
504
  const input = document.createElement("input");
486
505
  input.type = "file";
487
- input.accept = _nullishCoalesce(options.accept, () => ( _chunk4QPLEUL2cjs.defaultImportRegistry.accept("document")));
506
+ input.accept = _nullishCoalesce(options.accept, () => ( _chunkGVSMRPHBcjs.defaultImportRegistry.accept("document")));
488
507
  input.multiple = _nullishCoalesce(options.multiple, () => ( true));
489
508
  input.style.display = "none";
490
509
  const finish = (files) => {
@@ -512,7 +531,7 @@ var FileImportController = (_class = class {
512
531
  }
513
532
  /** `accept` attribute value for document imports. */
514
533
  get accept() {
515
- return (_nullishCoalesce(this.options.registry, () => ( _chunk4QPLEUL2cjs.defaultImportRegistry))).accept("document");
534
+ return (_nullishCoalesce(this.options.registry, () => ( _chunkGVSMRPHBcjs.defaultImportRegistry))).accept("document");
516
535
  }
517
536
  __init4() {this.getState = () => this.state}
518
537
  __init5() {this.subscribe = (listener) => {
@@ -534,7 +553,7 @@ var FileImportController = (_class = class {
534
553
  this.setState({ isImporting: true, error: null });
535
554
  let error = null;
536
555
  try {
537
- const outcomes = await _chunk4QPLEUL2cjs.importFilesIntoEditor.call(void 0, target, list, {
556
+ const outcomes = await _chunkGVSMRPHBcjs.importFilesIntoEditor.call(void 0, target, list, {
538
557
  ...this.options,
539
558
  at,
540
559
  onError: (err, file) => {
@@ -561,6 +580,221 @@ function createFileImportController(getTarget, options) {
561
580
  return new FileImportController(getTarget, options);
562
581
  }
563
582
 
583
+ // src/import/pdf.ts
584
+ var isTextItem = (item) => typeof item.str === "string";
585
+ function median(values) {
586
+ if (!values.length) return 0;
587
+ const sorted = [...values].sort((a, b) => a - b);
588
+ const mid = sorted.length >> 1;
589
+ return sorted.length % 2 ? sorted[mid] : (sorted[mid - 1] + sorted[mid]) / 2;
590
+ }
591
+ function groupLines(items) {
592
+ const lines = [];
593
+ let current = null;
594
+ let breakNext = false;
595
+ for (const item of items) {
596
+ if (!isTextItem(item)) continue;
597
+ const x = _nullishCoalesce(_optionalChain([item, 'access', _34 => _34.transform, 'optionalAccess', _35 => _35[4]]), () => ( 0));
598
+ const y = _nullishCoalesce(_optionalChain([item, 'access', _36 => _36.transform, 'optionalAccess', _37 => _37[5]]), () => ( (_nullishCoalesce(_optionalChain([current, 'optionalAccess', _38 => _38.y]), () => ( 0)))));
599
+ const height = item.height || Math.abs(_nullishCoalesce(_optionalChain([item, 'access', _39 => _39.transform, 'optionalAccess', _40 => _40[3]]), () => ( 0))) || _optionalChain([current, 'optionalAccess', _41 => _41.height]) || 10;
600
+ const tolerance = Math.max(1, height * 0.5);
601
+ if (!item.str) {
602
+ if (item.hasEOL) {
603
+ if (breakNext && current) current.blankAfter = true;
604
+ breakNext = true;
605
+ }
606
+ continue;
607
+ }
608
+ if (!current || breakNext || Math.abs(y - current.y) > tolerance) {
609
+ current = { text: "", y, height, blankAfter: false };
610
+ lines.push(current);
611
+ } else if (current.endX !== void 0 && x - current.endX > height * 0.15) {
612
+ if (!/\s$/.test(current.text) && !/^\s/.test(item.str)) current.text += " ";
613
+ }
614
+ current.text += item.str;
615
+ current.height = Math.max(current.height, height);
616
+ current.endX = item.width !== void 0 ? x + item.width : void 0;
617
+ breakNext = !!item.hasEOL;
618
+ }
619
+ return lines;
620
+ }
621
+ function pdfTextItemsToParagraphs(items, options = {}) {
622
+ const lines = groupLines(items).filter((line) => line.text.trim() || line.blankAfter);
623
+ const gaps = [];
624
+ for (let i = 1; i < lines.length; i++) {
625
+ const gap = lines[i - 1].y - lines[i].y;
626
+ if (gap > 0) gaps.push(gap);
627
+ }
628
+ const typical = median(gaps);
629
+ const factor = _nullishCoalesce(options.paragraphGap, () => ( 1.4));
630
+ const paragraphs = [];
631
+ let current = [];
632
+ const flush = () => {
633
+ const text = current.join(" ").replace(/\s+/g, " ").trim();
634
+ if (text) paragraphs.push(text);
635
+ current = [];
636
+ };
637
+ lines.forEach((line, i) => {
638
+ if (i > 0) {
639
+ const prev = lines[i - 1];
640
+ const gap = prev.y - line.y;
641
+ const bigGap = typical > 0 ? gap > typical * factor : gap > prev.height * 1.8;
642
+ if (prev.blankAfter || bigGap || gap < -prev.height * 0.5) flush();
643
+ }
644
+ const text = line.text.trim();
645
+ if (!text) return;
646
+ if (current.length && /\w-$/.test(current[current.length - 1]) && /^[a-z]/.test(text)) {
647
+ current[current.length - 1] = current[current.length - 1].slice(0, -1) + text;
648
+ } else {
649
+ current.push(text);
650
+ }
651
+ });
652
+ flush();
653
+ return paragraphs;
654
+ }
655
+ function createPdfImportAdapter(pdfjs, options = {}) {
656
+ return {
657
+ id: _nullishCoalesce(options.id, () => ( "pdf")),
658
+ label: "PDF",
659
+ mimeTypes: ["application/pdf"],
660
+ extensions: [".pdf"],
661
+ target: "document",
662
+ async import(_input, context) {
663
+ const data = new Uint8Array((await context.readArrayBuffer()).slice(0));
664
+ const doc = await pdfjs.getDocument({ ...options.documentParams, data }).promise;
665
+ const paragraphs = [];
666
+ try {
667
+ const pages = Math.min(doc.numPages, _nullishCoalesce(options.maxPages, () => ( Infinity)));
668
+ for (let n = 1; n <= pages; n++) {
669
+ const page = await doc.getPage(n);
670
+ const content = await page.getTextContent();
671
+ paragraphs.push(...pdfTextItemsToParagraphs(content.items, options));
672
+ _optionalChain([page, 'access', _42 => _42.cleanup, 'optionalCall', _43 => _43()]);
673
+ }
674
+ } finally {
675
+ await _optionalChain([doc, 'access', _44 => _44.destroy, 'optionalCall', _45 => _45()]);
676
+ }
677
+ const text = paragraphs.join("\n");
678
+ return { html: _chunkCL37JGFWcjs.plainTextToParagraphHtml.call(void 0, text), text };
679
+ }
680
+ };
681
+ }
682
+
683
+ // src/import/zip-export.ts
684
+ var INDEX_NAMES = /^(index|readme|home|_index|start)$/i;
685
+ var baseName = (path) => path.slice(path.lastIndexOf("/") + 1);
686
+ var stem = (name) => name.replace(/\.[^./]+$/, "");
687
+ function zipEntryTitle(path) {
688
+ const title = stem(baseName(path)).replace(/\s+[0-9a-f]{32}$/i, "").replace(/[_]+/g, " ").trim();
689
+ return title || baseName(path);
690
+ }
691
+ function sortZipEntryNames(names) {
692
+ const isIndex = (name) => INDEX_NAMES.test(stem(baseName(name)));
693
+ const depth = (name) => name.split("/").length;
694
+ return [...names].sort((a, b) => {
695
+ const ai = isIndex(a);
696
+ const bi = isIndex(b);
697
+ if (ai !== bi) return ai ? -1 : 1;
698
+ if (ai && bi && depth(a) !== depth(b)) return depth(a) - depth(b);
699
+ return a.localeCompare(b, void 0, { numeric: true, sensitivity: "base" });
700
+ });
701
+ }
702
+ var isJunk = (name) => name.startsWith("__MACOSX/") || name.split("/").some((segment) => segment.startsWith("."));
703
+ function createZipImportAdapter(options = {}) {
704
+ const id = _nullishCoalesce(options.id, () => ( "zip"));
705
+ return {
706
+ id,
707
+ label: "Zipped documents",
708
+ mimeTypes: ["application/zip", "application/x-zip-compressed"],
709
+ extensions: [".zip"],
710
+ target: "document",
711
+ async import(_input, context) {
712
+ const registry = _nullishCoalesce(_nullishCoalesce(options.registry, () => ( context.registry)), () => ( _chunkGVSMRPHBcjs.defaultImportRegistry));
713
+ const zip = await _chunkGVSMRPHBcjs.readZip.call(void 0, await context.readArrayBuffer(), {
714
+ maxTotalSize: 100 * 1024 * 1024,
715
+ maxEntries: 5e3,
716
+ ...options.zip
717
+ });
718
+ const maxFiles = _nullishCoalesce(options.maxFiles, () => ( 500));
719
+ const level = _nullishCoalesce(options.headingLevel, () => ( 2));
720
+ const files = [];
721
+ const skipped = [];
722
+ let html = "";
723
+ let text = "";
724
+ const names = zip.entries.filter((entry) => !entry.isDirectory).map((entry) => entry.name);
725
+ for (const name of sortZipEntryNames(names)) {
726
+ if (isJunk(name)) continue;
727
+ const adapter = registry.find({ fileName: name, target: "document" });
728
+ if (!adapter) {
729
+ skipped.push({ name, reason: "unsupported type" });
730
+ continue;
731
+ }
732
+ if (adapter.id === id || adapter.extensions.some((ext) => ext.toLowerCase() === ".zip")) {
733
+ skipped.push({ name, reason: "nested archive" });
734
+ continue;
735
+ }
736
+ if (files.length >= maxFiles) {
737
+ skipped.push({ name, reason: "file limit reached" });
738
+ continue;
739
+ }
740
+ try {
741
+ const outcome = await registry.importFile(await zip.read(name), {
742
+ fileName: name,
743
+ adapterId: adapter.id
744
+ });
745
+ const title = zipEntryTitle(name);
746
+ if (options.headings !== false) {
747
+ html += `<h${level}>${_chunkAA4ZEVCCcjs.escapeHtml.call(void 0, title)}</h${level}>`;
748
+ text += `${text ? "\n" : ""}${title}
749
+ `;
750
+ } else if (text) {
751
+ text += "\n";
752
+ }
753
+ html += outcome.result.html.trim();
754
+ text += outcome.result.text;
755
+ files.push({ name, adapterId: adapter.id });
756
+ } catch (error) {
757
+ const code = _optionalChain([error, 'optionalAccess', _46 => _46.code]);
758
+ if (code === "too_large") throw error;
759
+ skipped.push({ name, reason: error instanceof Error ? error.message : String(error) });
760
+ }
761
+ }
762
+ if (!files.length) {
763
+ throw new (0, _chunkGVSMRPHBcjs.ImportError)("invalid_file", "The archive contains no importable documents.", {
764
+ fileName: context.fileName
765
+ });
766
+ }
767
+ return { html, text, files, skipped };
768
+ }
769
+ };
770
+ }
771
+ var zipImportAdapter = createZipImportAdapter();
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
564
798
 
565
799
 
566
800
 
@@ -810,5 +1044,5 @@ function createFileImportController(getTarget, options) {
810
1044
 
811
1045
 
812
1046
 
813
- exports.Autocorrect = _chunk4QPLEUL2cjs.Autocorrect; exports.BUILT_IN_IMPORT_ADAPTERS = _chunk4QPLEUL2cjs.BUILT_IN_IMPORT_ADAPTERS; 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.DEFAULT_COLUMN_WIDTH = _chunkU6NDQFOKcjs.DEFAULT_COLUMN_WIDTH; exports.DEFAULT_ROW_HEIGHT = _chunkU6NDQFOKcjs.DEFAULT_ROW_HEIGHT; exports.DELETION_MARK_NAME = _chunkTVRC4KVTcjs.DELETION_MARK_NAME; exports.DataSourceBinder = _chunkU6NDQFOKcjs.DataSourceBinder; exports.DependencyGraph = _chunkU6NDQFOKcjs.DependencyGraph; exports.DirtyTracker = DirtyTracker; exports.EditorController = EditorController; exports.FORMULA_ERRORS = _chunkJYRIOFENcjs.FORMULA_ERRORS; exports.FileImport = _chunk4QPLEUL2cjs.FileImport; exports.FileImportController = FileImportController; exports.FontSize = _chunk4QPLEUL2cjs.FontSize; exports.Footnote = _chunk4QPLEUL2cjs.Footnote; exports.FootnoteReference = _chunk4QPLEUL2cjs.FootnoteReference; exports.Footnotes = _chunk4QPLEUL2cjs.Footnotes; exports.FormulaEvaluator = _chunkJYRIOFENcjs.FormulaEvaluator; exports.FormulaParser = _chunkJYRIOFENcjs.FormulaParser; exports.GradientText = _chunk4QPLEUL2cjs.GradientText; exports.HistoryManager = _chunk2TWGLC5Kcjs.HistoryManager; exports.INSERTION_MARK_NAME = _chunkTVRC4KVTcjs.INSERTION_MARK_NAME; exports.INSTRUCTION_REGEX = _chunkAXV2ZW34cjs.INSTRUCTION_REGEX; exports.Image = _chunk4QPLEUL2cjs.Image; exports.ImportAdapterRegistry = _chunk4QPLEUL2cjs.ImportAdapterRegistry; exports.ImportError = _chunk4QPLEUL2cjs.ImportError; exports.LoadingNode = _chunk4QPLEUL2cjs.LoadingNode; exports.MARKDOWN_MENTION_SPLIT_REGEX = _chunkTVRC4KVTcjs.MARKDOWN_MENTION_SPLIT_REGEX; exports.MENTION_REGEX = _chunkTVRC4KVTcjs.MENTION_REGEX; exports.Markdown = _chunk4QPLEUL2cjs.Markdown; exports.Mention = _chunk4QPLEUL2cjs.Mention; exports.Outline = _chunk4QPLEUL2cjs.Outline; exports.PIXERATE_DOCUMENT_MIME = _chunkLA7PEGU3cjs.PIXERATE_DOCUMENT_MIME; exports.RichClipboard = _chunk4QPLEUL2cjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunk4QPLEUL2cjs.SMILIE_REPLACEMENTS; exports.SPREADSHEET_CLIPBOARD_MIME = _chunkU6NDQFOKcjs.SPREADSHEET_CLIPBOARD_MIME; exports.SPREADSHEET_IMPORT_ADAPTERS = _chunkU6NDQFOKcjs.SPREADSHEET_IMPORT_ADAPTERS; exports.SPREADSHEET_TABLE_ACTIONS = _chunkU6NDQFOKcjs.SPREADSHEET_TABLE_ACTIONS; exports.SlashCommands = _chunk4QPLEUL2cjs.SlashCommands; exports.SmilieReplacer = _chunk4QPLEUL2cjs.SmilieReplacer; exports.SpreadsheetController = _chunkU6NDQFOKcjs.SpreadsheetController; exports.TEMPLATE_DEPTH_ERROR = _chunk4SUNJZWBcjs.TEMPLATE_DEPTH_ERROR; exports.TEMPLATE_LOOP_ERROR = _chunk4SUNJZWBcjs.TEMPLATE_LOOP_ERROR; exports.TEMPLATE_REGEX = _chunkAXV2ZW34cjs.TEMPLATE_REGEX; 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.VARIABLE_REGEX = _chunkAXV2ZW34cjs.VARIABLE_REGEX; exports.WHOLE_COLUMN_END_ROW = _chunkJYRIOFENcjs.WHOLE_COLUMN_END_ROW; exports.aggregateValues = _chunkU6NDQFOKcjs.aggregateValues; exports.applyFormulaSuggestion = _chunkU6NDQFOKcjs.applyFormulaSuggestion; exports.autocorrectPluginKey = _chunk4QPLEUL2cjs.autocorrectPluginKey; exports.bindSpreadsheetTableActions = _chunkU6NDQFOKcjs.bindSpreadsheetTableActions; exports.buildOutlineTree = _chunk4QPLEUL2cjs.buildOutlineTree; exports.buildSpreadsheetView = _chunkU6NDQFOKcjs.buildSpreadsheetView; exports.capitalizeSentenceRules = _chunk4QPLEUL2cjs.capitalizeSentenceRules; exports.checkFormulaArgumentCount = _chunkJYRIOFENcjs.checkFormulaArgumentCount; exports.colNameToIndex = _chunkJYRIOFENcjs.colNameToIndex; exports.columnDependencyKey = _chunkU6NDQFOKcjs.columnDependencyKey; exports.commentsPluginKey = _chunk4QPLEUL2cjs.commentsPluginKey; exports.compactVariableValues = _chunk4SUNJZWBcjs.compactVariableValues; exports.compareCellValues = _chunkU6NDQFOKcjs.compareCellValues; exports.computeFillTarget = _chunkU6NDQFOKcjs.computeFillTarget; exports.computeOutline = _chunk4QPLEUL2cjs.computeOutline; exports.computeRowGroups = _chunkU6NDQFOKcjs.computeRowGroups; exports.createCommentStore = _chunkTVRC4KVTcjs.createCommentStore; exports.createDirtyTracker = createDirtyTracker; exports.createEditor = createEditor; exports.createFileImportController = createFileImportController; exports.createHistoryManager = _chunk2TWGLC5Kcjs.createHistoryManager; exports.createImportAdapterRegistry = _chunk4QPLEUL2cjs.createImportAdapterRegistry; exports.createImportContext = _chunk4QPLEUL2cjs.createImportContext; exports.createMentionExtension = _chunk4QPLEUL2cjs.createMentionExtension; exports.createOutlineStore = _chunk4QPLEUL2cjs.createOutlineStore; exports.createReviewId = _chunkTVRC4KVTcjs.createReviewId; exports.createRichTextPreset = _chunk4QPLEUL2cjs.createRichTextPreset; exports.createSpreadsheetClipboardData = _chunkU6NDQFOKcjs.createSpreadsheetClipboardData; exports.crossReferencePluginKey = _chunk4QPLEUL2cjs.crossReferencePluginKey; exports.csvImportAdapter = _chunkU6NDQFOKcjs.csvImportAdapter; exports.defaultAutocorrectRules = _chunk4QPLEUL2cjs.defaultAutocorrectRules; exports.defaultImportRegistry = _chunk4QPLEUL2cjs.defaultImportRegistry; exports.defaultIsEqual = defaultIsEqual; exports.describeFormulaError = _chunkJYRIOFENcjs.describeFormulaError; exports.documentStructureCommandItems = _chunk4QPLEUL2cjs.documentStructureCommandItems; exports.escapeCsvField = _chunkU6NDQFOKcjs.escapeCsvField; exports.escapeHtml = _chunkTVRC4KVTcjs.escapeHtml; exports.escapeVariableText = _chunkAXV2ZW34cjs.escapeVariableText; exports.evaluateCondition = _chunkAXV2ZW34cjs.evaluateCondition; exports.evaluatePromptTokens = _chunk4SUNJZWBcjs.evaluatePromptTokens; exports.extractCellDependencies = _chunkU6NDQFOKcjs.extractCellDependencies; exports.extractInstructionNames = _chunk4SUNJZWBcjs.extractInstructionNames; exports.extractMentions = _chunkTVRC4KVTcjs.extractMentions; exports.extractMentionsFromDoc = _chunkTVRC4KVTcjs.extractMentionsFromDoc; exports.extractTemplateNames = _chunk4SUNJZWBcjs.extractTemplateNames; exports.extractVariableNames = _chunk4SUNJZWBcjs.extractVariableNames; exports.extractVariables = _chunk4SUNJZWBcjs.extractVariables; exports.fileImportPluginKey = _chunk4QPLEUL2cjs.fileImportPluginKey; exports.fillSeries = _chunkU6NDQFOKcjs.fillSeries; exports.findAutocorrection = _chunk4QPLEUL2cjs.findAutocorrection; exports.findCommentRanges = _chunk4QPLEUL2cjs.findCommentRanges; exports.findHexColors = _chunk4QPLEUL2cjs.findHexColors; exports.findImportAdapter = _chunk4QPLEUL2cjs.findImportAdapter; exports.footnotesMarkdownIt = _chunk4QPLEUL2cjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunk4QPLEUL2cjs.footnotesPluginKey; exports.formatReviewTime = _chunkTVRC4KVTcjs.formatReviewTime; exports.formatValueWithCode = _chunkJYRIOFENcjs.formatValueWithCode; exports.fractionRules = _chunk4QPLEUL2cjs.fractionRules; exports.getActiveHeading = _chunk4QPLEUL2cjs.getActiveHeading; exports.getBookmarks = _chunk4QPLEUL2cjs.getBookmarks; exports.getClipboardData = _chunkLA7PEGU3cjs.getClipboardData; 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.getEditorMarkdown = _chunkTVRC4KVTcjs.getEditorMarkdown; exports.getEditorText = _chunkTVRC4KVTcjs.getEditorText; exports.getFillDirection = _chunkU6NDQFOKcjs.getFillDirection; exports.getFootnotes = _chunk4QPLEUL2cjs.getFootnotes; exports.getFormulaArgumentSpecIndex = _chunkJYRIOFENcjs.getFormulaArgumentSpecIndex; exports.getFormulaCaretContext = _chunkU6NDQFOKcjs.getFormulaCaretContext; exports.getFormulaFunction = _chunkJYRIOFENcjs.getFormulaFunction; exports.getFormulaHints = _chunkU6NDQFOKcjs.getFormulaHints; exports.getFormulaSignature = _chunkJYRIOFENcjs.getFormulaSignature; exports.getFormulaSignatureParts = _chunkJYRIOFENcjs.getFormulaSignatureParts; exports.getImportAccept = _chunk4QPLEUL2cjs.getImportAccept; exports.getLatestVersion = _chunk4SUNJZWBcjs.getLatestVersion; exports.getOutline = _chunk4QPLEUL2cjs.getOutline; exports.getPromptDiagnostics = _chunk4SUNJZWBcjs.getPromptDiagnostics; exports.getRowSection = _chunkU6NDQFOKcjs.getRowSection; exports.getSchemaSignature = _chunkLA7PEGU3cjs.getSchemaSignature; exports.getSpreadsheetMenuItems = _chunkU6NDQFOKcjs.getSpreadsheetMenuItems; exports.getSuppliedValue = _chunkAXV2ZW34cjs.getSuppliedValue; exports.getTableOfContentsEntries = _chunk4QPLEUL2cjs.getTableOfContentsEntries; exports.getTableSections = _chunkU6NDQFOKcjs.getTableSections; exports.getTemplateBody = _chunk4SUNJZWBcjs.getTemplateBody; exports.getTrackChangesStore = _chunkTVRC4KVTcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunkTVRC4KVTcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunkTVRC4KVTcjs.getTrackedChanges; exports.getVariableFormFields = _chunk4SUNJZWBcjs.getVariableFormFields; exports.handleImageInsertion = _chunk4QPLEUL2cjs.handleImageInsertion; exports.htmlImportAdapter = _chunk4QPLEUL2cjs.htmlImportAdapter; exports.htmlToPlainText = _chunkTVRC4KVTcjs.htmlToPlainText; exports.htmlToSlice = _chunk4QPLEUL2cjs.htmlToSlice; exports.imagePastePluginKey = _chunk4QPLEUL2cjs.imagePastePluginKey; exports.importFile = _chunk4QPLEUL2cjs.importFile; exports.importFileIntoSpreadsheet = _chunkU6NDQFOKcjs.importFileIntoSpreadsheet; exports.importFilesIntoEditor = _chunk4QPLEUL2cjs.importFilesIntoEditor; exports.indexToColName = _chunkJYRIOFENcjs.indexToColName; exports.insertImageNode = _chunk4QPLEUL2cjs.insertImageNode; exports.insertImportedDocument = _chunk4QPLEUL2cjs.insertImportedDocument; exports.instructionRegex = _chunkAXV2ZW34cjs.instructionRegex; exports.isBlankValue = _chunkU6NDQFOKcjs.isBlankValue; exports.isFormulaError = _chunkJYRIOFENcjs.isFormulaError; exports.isInsidePromptToken = _chunk4QPLEUL2cjs.isInsidePromptToken; exports.isPromptValueSet = _chunkAXV2ZW34cjs.isPromptValueSet; exports.isSingleCellRange = _chunkU6NDQFOKcjs.isSingleCellRange; exports.isTrackChangesEnabled = _chunkTVRC4KVTcjs.isTrackChangesEnabled; exports.listFormulaFunctions = _chunkJYRIOFENcjs.listFormulaFunctions; exports.mapFormulaReferences = _chunkU6NDQFOKcjs.mapFormulaReferences; exports.mapRawOffsetToResolved = _chunk4SUNJZWBcjs.mapRawOffsetToResolved; exports.mapResolvedOffsetToRaw = _chunk4SUNJZWBcjs.mapResolvedOffsetToRaw; exports.markdownImportAdapter = _chunk4QPLEUL2cjs.markdownImportAdapter; exports.markdownToTipTapHtml = _chunkTVRC4KVTcjs.markdownToTipTapHtml; exports.matchConditionalTags = _chunkAXV2ZW34cjs.matchConditionalTags; exports.matchesFilterRule = _chunkU6NDQFOKcjs.matchesFilterRule; exports.navigateToHeading = _chunk4QPLEUL2cjs.navigateToHeading; exports.normalizeRange = _chunkU6NDQFOKcjs.normalizeRange; exports.offsetFormulaReferences = _chunkU6NDQFOKcjs.offsetFormulaReferences; exports.outlinePluginKey = _chunk4QPLEUL2cjs.outlinePluginKey; exports.parseCellReference = _chunkJYRIOFENcjs.parseCellReference; exports.parseCriteria = _chunkJYRIOFENcjs.parseCriteria; exports.parseCsv = _chunkU6NDQFOKcjs.parseCsv; exports.parseFormula = _chunkJYRIOFENcjs.parseFormula; exports.parseHtmlTable = _chunkU6NDQFOKcjs.parseHtmlTable; exports.parseMentionSegments = _chunkTVRC4KVTcjs.parseMentionSegments; exports.parseRange = _chunkJYRIOFENcjs.parseRange; exports.parseRichClipboardPayload = _chunkLA7PEGU3cjs.parseRichClipboardPayload; exports.parseTsv = _chunkU6NDQFOKcjs.parseTsv; exports.parseVariableBody = _chunkAXV2ZW34cjs.parseVariableBody; exports.pickImportFiles = pickImportFiles; exports.plainTextImportAdapter = _chunk4QPLEUL2cjs.plainTextImportAdapter; exports.plainTextToParagraphHtml = _chunkLA7PEGU3cjs.plainTextToParagraphHtml; exports.plainTextToSlice = _chunkTVRC4KVTcjs.plainTextToSlice; exports.plainTextToTipTapHtml = _chunkTVRC4KVTcjs.plainTextToTipTapHtml; exports.preprocessMarkdownFileLinks = _chunkTVRC4KVTcjs.preprocessMarkdownFileLinks; exports.preprocessMarkdownMentions = _chunkTVRC4KVTcjs.preprocessMarkdownMentions; exports.rangeContains = _chunkU6NDQFOKcjs.rangeContains; exports.rangeContainsRange = _chunkU6NDQFOKcjs.rangeContainsRange; exports.rangesIntersect = _chunkU6NDQFOKcjs.rangesIntersect; exports.readRichClipboard = _chunkLA7PEGU3cjs.readRichClipboard; exports.readSpreadsheetClipboard = _chunkU6NDQFOKcjs.readSpreadsheetClipboard; exports.rebaseClipboardRows = _chunkU6NDQFOKcjs.rebaseClipboardRows; exports.registerFormulaFunction = _chunkJYRIOFENcjs.registerFormulaFunction; exports.registerImportAdapter = _chunk4QPLEUL2cjs.registerImportAdapter; exports.registerSpreadsheetImportAdapters = _chunkU6NDQFOKcjs.registerSpreadsheetImportAdapters; exports.remapFormulaReferences = _chunkU6NDQFOKcjs.remapFormulaReferences; exports.removeImageNode = _chunk4QPLEUL2cjs.removeImageNode; exports.resolvePrompt = _chunk4SUNJZWBcjs.resolvePrompt; exports.resolveTemplates = _chunk4SUNJZWBcjs.resolveTemplates; exports.resolveTemplatesWithMapping = _chunk4SUNJZWBcjs.resolveTemplatesWithMapping; exports.resolveTrackedChanges = _chunkTVRC4KVTcjs.resolveTrackedChanges; exports.resolveVariables = _chunk4SUNJZWBcjs.resolveVariables; exports.richClipboardPluginKey = _chunk4QPLEUL2cjs.richClipboardPluginKey; exports.roundFloat = _chunkU6NDQFOKcjs.roundFloat; exports.rowPassesFilters = _chunkU6NDQFOKcjs.rowPassesFilters; exports.rtfImportAdapter = _chunk4QPLEUL2cjs.rtfImportAdapter; exports.rtfToPlainText = _chunkLA7PEGU3cjs.rtfToPlainText; exports.sanitizeHtml = _chunkTVRC4KVTcjs.sanitizeHtml; exports.sanitizeImportedHtml = _chunkLA7PEGU3cjs.sanitizeImportedHtml; exports.searchFormulaFunctions = _chunkJYRIOFENcjs.searchFormulaFunctions; exports.serializeCsv = _chunkU6NDQFOKcjs.serializeCsv; exports.serializeHtmlTable = _chunkU6NDQFOKcjs.serializeHtmlTable; exports.serializeRichClipboardPayload = _chunkLA7PEGU3cjs.serializeRichClipboardPayload; exports.serializeTsv = _chunkU6NDQFOKcjs.serializeTsv; exports.shiftFormulaReferences = _chunkU6NDQFOKcjs.shiftFormulaReferences; exports.smartQuoteRules = _chunk4QPLEUL2cjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunk4QPLEUL2cjs.smilieAutocorrectRules; exports.stripMarkdownCode = _chunkTVRC4KVTcjs.stripMarkdownCode; exports.symbolRules = _chunk4QPLEUL2cjs.symbolRules; exports.syncFootnotes = _chunk4QPLEUL2cjs.syncFootnotes; exports.tableOfContentsMarkdownIt = _chunk4QPLEUL2cjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunk4QPLEUL2cjs.tableOfContentsPluginKey; exports.templateRegex = _chunkAXV2ZW34cjs.templateRegex; exports.toNumber = _chunkU6NDQFOKcjs.toNumber; exports.tokenizeFormula = _chunkJYRIOFENcjs.tokenizeFormula; exports.tokenizePrompt = _chunk4SUNJZWBcjs.tokenizePrompt; exports.tokenizePromptWithDiagnostics = _chunk4SUNJZWBcjs.tokenizePromptWithDiagnostics; exports.trackChangesPluginKey = _chunkTVRC4KVTcjs.trackChangesPluginKey; exports.tsvImportAdapter = _chunkU6NDQFOKcjs.tsvImportAdapter; exports.twoInitialCapitalsRules = _chunk4QPLEUL2cjs.twoInitialCapitalsRules; exports.unescapeVariableText = _chunkAXV2ZW34cjs.unescapeVariableText; exports.unregisterFormulaFunction = _chunkJYRIOFENcjs.unregisterFormulaFunction; exports.unregisterImportAdapter = _chunk4QPLEUL2cjs.unregisterImportAdapter; exports.updateImageSrc = _chunk4QPLEUL2cjs.updateImageSrc; exports.variableRegex = _chunkAXV2ZW34cjs.variableRegex; exports.wildcardToRegExp = _chunkJYRIOFENcjs.wildcardToRegExp; exports.writeRichClipboard = _chunk4QPLEUL2cjs.writeRichClipboard;
1047
+ exports.Autocorrect = _chunkGVSMRPHBcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunkAA4ZEVCCcjs.BLOCK_CHANGE_ATTRIBUTE; exports.BUILT_IN_IMPORT_ADAPTERS = _chunkGVSMRPHBcjs.BUILT_IN_IMPORT_ADAPTERS; 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.DEFAULT_COLUMN_WIDTH = _chunk6M3BCTBDcjs.DEFAULT_COLUMN_WIDTH; exports.DEFAULT_DOCX_MAX_IMAGE_SIZE = _chunkGVSMRPHBcjs.DEFAULT_DOCX_MAX_IMAGE_SIZE; exports.DEFAULT_ROW_HEIGHT = _chunk6M3BCTBDcjs.DEFAULT_ROW_HEIGHT; exports.DEFAULT_ZIP_MAX_ENTRIES = _chunkGVSMRPHBcjs.DEFAULT_ZIP_MAX_ENTRIES; exports.DEFAULT_ZIP_MAX_TOTAL_SIZE = _chunkGVSMRPHBcjs.DEFAULT_ZIP_MAX_TOTAL_SIZE; exports.DELETION_MARK_NAME = _chunkAA4ZEVCCcjs.DELETION_MARK_NAME; exports.DOCX_MIME_TYPES = _chunkGVSMRPHBcjs.DOCX_MIME_TYPES; exports.DataSourceBinder = _chunk6M3BCTBDcjs.DataSourceBinder; exports.DependencyGraph = _chunk6M3BCTBDcjs.DependencyGraph; exports.DirtyTracker = DirtyTracker; exports.EditorController = EditorController; exports.FORMAT_CHANGE_MARK_NAME = _chunkAA4ZEVCCcjs.FORMAT_CHANGE_MARK_NAME; exports.FORMULA_ERRORS = _chunkSAZRENEZcjs.FORMULA_ERRORS; exports.FileImport = _chunkGVSMRPHBcjs.FileImport; exports.FileImportController = FileImportController; exports.FontSize = _chunkGVSMRPHBcjs.FontSize; exports.Footnote = _chunkGVSMRPHBcjs.Footnote; exports.FootnoteReference = _chunkGVSMRPHBcjs.FootnoteReference; exports.Footnotes = _chunkGVSMRPHBcjs.Footnotes; exports.FormulaEvaluator = _chunkSAZRENEZcjs.FormulaEvaluator; exports.FormulaParser = _chunkSAZRENEZcjs.FormulaParser; exports.GradientText = _chunkGVSMRPHBcjs.GradientText; exports.HistoryManager = _chunk2TWGLC5Kcjs.HistoryManager; exports.INSERTION_MARK_NAME = _chunkAA4ZEVCCcjs.INSERTION_MARK_NAME; exports.INSTRUCTION_REGEX = _chunkAXV2ZW34cjs.INSTRUCTION_REGEX; exports.Image = _chunkGVSMRPHBcjs.Image; exports.ImportAdapterRegistry = _chunkGVSMRPHBcjs.ImportAdapterRegistry; exports.ImportError = _chunkGVSMRPHBcjs.ImportError; exports.LoadingNode = _chunkGVSMRPHBcjs.LoadingNode; exports.MARKDOWN_MENTION_SPLIT_REGEX = _chunkAA4ZEVCCcjs.MARKDOWN_MENTION_SPLIT_REGEX; exports.MAX_FORMULA_ARRAY_SIZE = _chunkSAZRENEZcjs.MAX_FORMULA_ARRAY_SIZE; exports.MENTION_REGEX = _chunkAA4ZEVCCcjs.MENTION_REGEX; exports.Markdown = _chunkGVSMRPHBcjs.Markdown; exports.Mention = _chunkGVSMRPHBcjs.Mention; exports.Outline = _chunkGVSMRPHBcjs.Outline; exports.PIXERATE_DOCUMENT_MIME = _chunkCL37JGFWcjs.PIXERATE_DOCUMENT_MIME; exports.RichClipboard = _chunkGVSMRPHBcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkGVSMRPHBcjs.SMILIE_REPLACEMENTS; exports.SPREADSHEET_CLIPBOARD_MIME = _chunk6M3BCTBDcjs.SPREADSHEET_CLIPBOARD_MIME; exports.SPREADSHEET_IMPORT_ADAPTERS = _chunk6M3BCTBDcjs.SPREADSHEET_IMPORT_ADAPTERS; exports.SPREADSHEET_TABLE_ACTIONS = _chunk6M3BCTBDcjs.SPREADSHEET_TABLE_ACTIONS; exports.SlashCommands = _chunkGVSMRPHBcjs.SlashCommands; exports.SmilieReplacer = _chunkGVSMRPHBcjs.SmilieReplacer; exports.SpreadsheetController = _chunk6M3BCTBDcjs.SpreadsheetController; exports.TEMPLATE_DEPTH_ERROR = _chunk4SUNJZWBcjs.TEMPLATE_DEPTH_ERROR; exports.TEMPLATE_LOOP_ERROR = _chunk4SUNJZWBcjs.TEMPLATE_LOOP_ERROR; exports.TEMPLATE_REGEX = _chunkAXV2ZW34cjs.TEMPLATE_REGEX; 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.VARIABLE_REGEX = _chunkAXV2ZW34cjs.VARIABLE_REGEX; exports.WHOLE_COLUMN_END_ROW = _chunkSAZRENEZcjs.WHOLE_COLUMN_END_ROW; exports.ZipArchive = _chunkGVSMRPHBcjs.ZipArchive; exports.ZipError = _chunkGVSMRPHBcjs.ZipError; exports.aggregateValues = _chunk6M3BCTBDcjs.aggregateValues; exports.applyFormulaSuggestion = _chunk6M3BCTBDcjs.applyFormulaSuggestion; exports.autocorrectPluginKey = _chunkGVSMRPHBcjs.autocorrectPluginKey; exports.bindSpreadsheetTableActions = _chunk6M3BCTBDcjs.bindSpreadsheetTableActions; exports.buildOutlineTree = _chunkGVSMRPHBcjs.buildOutlineTree; exports.buildSpreadsheetView = _chunk6M3BCTBDcjs.buildSpreadsheetView; exports.capitalizeSentenceRules = _chunkGVSMRPHBcjs.capitalizeSentenceRules; exports.checkFormulaArgumentCount = _chunkSAZRENEZcjs.checkFormulaArgumentCount; exports.clampMenuPosition = _chunk6M3BCTBDcjs.clampMenuPosition; exports.colNameToIndex = _chunkSAZRENEZcjs.colNameToIndex; exports.columnDependencyKey = _chunk6M3BCTBDcjs.columnDependencyKey; exports.commentsPluginKey = _chunkGVSMRPHBcjs.commentsPluginKey; exports.compactVariableValues = _chunk4SUNJZWBcjs.compactVariableValues; exports.compareCellValues = _chunk6M3BCTBDcjs.compareCellValues; exports.computeFillTarget = _chunk6M3BCTBDcjs.computeFillTarget; exports.computeOutline = _chunkGVSMRPHBcjs.computeOutline; exports.computeRowGroups = _chunk6M3BCTBDcjs.computeRowGroups; exports.createCommentStore = _chunkAA4ZEVCCcjs.createCommentStore; exports.createDirtyTracker = createDirtyTracker; exports.createDocxImportAdapter = _chunkGVSMRPHBcjs.createDocxImportAdapter; exports.createEditor = createEditor; exports.createFileImportController = createFileImportController; exports.createHistoryManager = _chunk2TWGLC5Kcjs.createHistoryManager; exports.createImportAdapterRegistry = _chunkGVSMRPHBcjs.createImportAdapterRegistry; exports.createImportContext = _chunkGVSMRPHBcjs.createImportContext; exports.createMentionExtension = _chunkGVSMRPHBcjs.createMentionExtension; exports.createOutlineStore = _chunkGVSMRPHBcjs.createOutlineStore; exports.createPdfImportAdapter = createPdfImportAdapter; exports.createReviewId = _chunkAA4ZEVCCcjs.createReviewId; exports.createRichTextPreset = _chunkGVSMRPHBcjs.createRichTextPreset; exports.createSpreadsheetClipboardData = _chunk6M3BCTBDcjs.createSpreadsheetClipboardData; exports.createZipImportAdapter = createZipImportAdapter; exports.crossReferencePluginKey = _chunkGVSMRPHBcjs.crossReferencePluginKey; exports.csvImportAdapter = _chunk6M3BCTBDcjs.csvImportAdapter; exports.defaultAutocorrectRules = _chunkGVSMRPHBcjs.defaultAutocorrectRules; exports.defaultImportRegistry = _chunkGVSMRPHBcjs.defaultImportRegistry; exports.defaultIsEqual = defaultIsEqual; exports.describeBlockChange = _chunkAA4ZEVCCcjs.describeBlockChange; exports.describeFormatChange = _chunkAA4ZEVCCcjs.describeFormatChange; exports.describeFormulaError = _chunkSAZRENEZcjs.describeFormulaError; exports.documentStructureCommandItems = _chunkGVSMRPHBcjs.documentStructureCommandItems; exports.docxImportAdapter = _chunkGVSMRPHBcjs.docxImportAdapter; exports.docxToDocumentImport = _chunkGVSMRPHBcjs.docxToDocumentImport; exports.escapeCsvField = _chunk6M3BCTBDcjs.escapeCsvField; exports.escapeHtml = _chunkAA4ZEVCCcjs.escapeHtml; exports.escapeVariableText = _chunkAXV2ZW34cjs.escapeVariableText; exports.evaluateCondition = _chunkAXV2ZW34cjs.evaluateCondition; exports.evaluatePromptTokens = _chunk4SUNJZWBcjs.evaluatePromptTokens; exports.extractCellDependencies = _chunk6M3BCTBDcjs.extractCellDependencies; exports.extractInstructionNames = _chunk4SUNJZWBcjs.extractInstructionNames; exports.extractMentions = _chunkAA4ZEVCCcjs.extractMentions; exports.extractMentionsFromDoc = _chunkAA4ZEVCCcjs.extractMentionsFromDoc; exports.extractTemplateNames = _chunk4SUNJZWBcjs.extractTemplateNames; exports.extractVariableNames = _chunk4SUNJZWBcjs.extractVariableNames; exports.extractVariables = _chunk4SUNJZWBcjs.extractVariables; exports.fileImportPluginKey = _chunkGVSMRPHBcjs.fileImportPluginKey; exports.fillSeries = _chunk6M3BCTBDcjs.fillSeries; exports.findAutocorrection = _chunkGVSMRPHBcjs.findAutocorrection; exports.findCommentRanges = _chunkGVSMRPHBcjs.findCommentRanges; exports.findHexColors = _chunkGVSMRPHBcjs.findHexColors; exports.findImportAdapter = _chunkGVSMRPHBcjs.findImportAdapter; exports.footnotesMarkdownIt = _chunkGVSMRPHBcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkGVSMRPHBcjs.footnotesPluginKey; exports.formatReviewTime = _chunkAA4ZEVCCcjs.formatReviewTime; exports.formatValueWithCode = _chunkSAZRENEZcjs.formatValueWithCode; exports.fractionRules = _chunkGVSMRPHBcjs.fractionRules; exports.getActiveHeading = _chunkGVSMRPHBcjs.getActiveHeading; exports.getBookmarks = _chunkGVSMRPHBcjs.getBookmarks; exports.getClipboardData = _chunkCL37JGFWcjs.getClipboardData; 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.getEditorMarkdown = _chunkAA4ZEVCCcjs.getEditorMarkdown; exports.getEditorText = _chunkAA4ZEVCCcjs.getEditorText; exports.getFillDirection = _chunk6M3BCTBDcjs.getFillDirection; exports.getFootnotes = _chunkGVSMRPHBcjs.getFootnotes; exports.getFormulaArgumentSpecIndex = _chunkSAZRENEZcjs.getFormulaArgumentSpecIndex; exports.getFormulaCaretContext = _chunk6M3BCTBDcjs.getFormulaCaretContext; exports.getFormulaFunction = _chunkSAZRENEZcjs.getFormulaFunction; exports.getFormulaHints = _chunk6M3BCTBDcjs.getFormulaHints; exports.getFormulaSignature = _chunkSAZRENEZcjs.getFormulaSignature; exports.getFormulaSignatureParts = _chunkSAZRENEZcjs.getFormulaSignatureParts; exports.getImportAccept = _chunkGVSMRPHBcjs.getImportAccept; exports.getLatestVersion = _chunk4SUNJZWBcjs.getLatestVersion; exports.getOutline = _chunkGVSMRPHBcjs.getOutline; exports.getPromptDiagnostics = _chunk4SUNJZWBcjs.getPromptDiagnostics; exports.getRowSection = _chunk6M3BCTBDcjs.getRowSection; exports.getSchemaSignature = _chunkCL37JGFWcjs.getSchemaSignature; exports.getSpreadsheetMenuItems = _chunk6M3BCTBDcjs.getSpreadsheetMenuItems; exports.getSuppliedValue = _chunkAXV2ZW34cjs.getSuppliedValue; exports.getTableOfContentsEntries = _chunkGVSMRPHBcjs.getTableOfContentsEntries; exports.getTableSections = _chunk6M3BCTBDcjs.getTableSections; exports.getTemplateBody = _chunk4SUNJZWBcjs.getTemplateBody; exports.getTrackChangesStore = _chunkAA4ZEVCCcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunkAA4ZEVCCcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunkAA4ZEVCCcjs.getTrackedChanges; exports.getVariableFormFields = _chunk4SUNJZWBcjs.getVariableFormFields; exports.handleImageInsertion = _chunkGVSMRPHBcjs.handleImageInsertion; exports.htmlImportAdapter = _chunkGVSMRPHBcjs.htmlImportAdapter; exports.htmlToPlainText = _chunkAA4ZEVCCcjs.htmlToPlainText; exports.htmlToSlice = _chunkGVSMRPHBcjs.htmlToSlice; exports.imagePastePluginKey = _chunkGVSMRPHBcjs.imagePastePluginKey; exports.importFile = _chunkGVSMRPHBcjs.importFile; exports.importFileIntoSpreadsheet = _chunk6M3BCTBDcjs.importFileIntoSpreadsheet; exports.importFilesIntoEditor = _chunkGVSMRPHBcjs.importFilesIntoEditor; exports.indexToColName = _chunkSAZRENEZcjs.indexToColName; exports.insertImageNode = _chunkGVSMRPHBcjs.insertImageNode; exports.insertImportedDocument = _chunkGVSMRPHBcjs.insertImportedDocument; exports.instructionRegex = _chunkAXV2ZW34cjs.instructionRegex; exports.isBlankValue = _chunk6M3BCTBDcjs.isBlankValue; exports.isFormulaError = _chunkSAZRENEZcjs.isFormulaError; exports.isInsidePromptToken = _chunkGVSMRPHBcjs.isInsidePromptToken; exports.isPromptValueSet = _chunkAXV2ZW34cjs.isPromptValueSet; exports.isSingleCellRange = _chunk6M3BCTBDcjs.isSingleCellRange; exports.isTrackChangesEnabled = _chunkAA4ZEVCCcjs.isTrackChangesEnabled; exports.isUnsafeZipPath = _chunkGVSMRPHBcjs.isUnsafeZipPath; exports.listFormulaFunctions = _chunkSAZRENEZcjs.listFormulaFunctions; exports.mapFormulaReferences = _chunk6M3BCTBDcjs.mapFormulaReferences; exports.mapRawOffsetToResolved = _chunk4SUNJZWBcjs.mapRawOffsetToResolved; exports.mapResolvedOffsetToRaw = _chunk4SUNJZWBcjs.mapResolvedOffsetToRaw; exports.markdownImportAdapter = _chunkGVSMRPHBcjs.markdownImportAdapter; exports.markdownToTipTapHtml = _chunkAA4ZEVCCcjs.markdownToTipTapHtml; exports.matchConditionalTags = _chunkAXV2ZW34cjs.matchConditionalTags; exports.matchesFilterRule = _chunk6M3BCTBDcjs.matchesFilterRule; exports.navigateToHeading = _chunkGVSMRPHBcjs.navigateToHeading; exports.normalizeRange = _chunk6M3BCTBDcjs.normalizeRange; exports.offsetFormulaReferences = _chunk6M3BCTBDcjs.offsetFormulaReferences; exports.outlinePluginKey = _chunkGVSMRPHBcjs.outlinePluginKey; exports.parseCellReference = _chunkSAZRENEZcjs.parseCellReference; exports.parseCriteria = _chunkSAZRENEZcjs.parseCriteria; exports.parseCsv = _chunk6M3BCTBDcjs.parseCsv; exports.parseFormula = _chunkSAZRENEZcjs.parseFormula; exports.parseHtmlTable = _chunk6M3BCTBDcjs.parseHtmlTable; exports.parseMentionSegments = _chunkAA4ZEVCCcjs.parseMentionSegments; exports.parseRange = _chunkSAZRENEZcjs.parseRange; exports.parseRichClipboardPayload = _chunkCL37JGFWcjs.parseRichClipboardPayload; exports.parseTsv = _chunk6M3BCTBDcjs.parseTsv; exports.parseVariableBody = _chunkAXV2ZW34cjs.parseVariableBody; exports.pdfTextItemsToParagraphs = pdfTextItemsToParagraphs; exports.pickImportFiles = pickImportFiles; exports.plainTextImportAdapter = _chunkGVSMRPHBcjs.plainTextImportAdapter; exports.plainTextToParagraphHtml = _chunkCL37JGFWcjs.plainTextToParagraphHtml; exports.plainTextToSlice = _chunkAA4ZEVCCcjs.plainTextToSlice; exports.plainTextToTipTapHtml = _chunkAA4ZEVCCcjs.plainTextToTipTapHtml; exports.preprocessMarkdownFileLinks = _chunkAA4ZEVCCcjs.preprocessMarkdownFileLinks; exports.preprocessMarkdownMentions = _chunkAA4ZEVCCcjs.preprocessMarkdownMentions; exports.rangeContains = _chunk6M3BCTBDcjs.rangeContains; exports.rangeContainsRange = _chunk6M3BCTBDcjs.rangeContainsRange; exports.rangesIntersect = _chunk6M3BCTBDcjs.rangesIntersect; exports.readRichClipboard = _chunkCL37JGFWcjs.readRichClipboard; exports.readSpreadsheetClipboard = _chunk6M3BCTBDcjs.readSpreadsheetClipboard; exports.readZip = _chunkGVSMRPHBcjs.readZip; exports.rebaseClipboardRows = _chunk6M3BCTBDcjs.rebaseClipboardRows; exports.registerFormulaFunction = _chunkSAZRENEZcjs.registerFormulaFunction; exports.registerImportAdapter = _chunkGVSMRPHBcjs.registerImportAdapter; exports.registerSpreadsheetImportAdapters = _chunk6M3BCTBDcjs.registerSpreadsheetImportAdapters; exports.remapFormulaReferences = _chunk6M3BCTBDcjs.remapFormulaReferences; exports.removeImageNode = _chunkGVSMRPHBcjs.removeImageNode; exports.resolvePrompt = _chunk4SUNJZWBcjs.resolvePrompt; exports.resolveTemplates = _chunk4SUNJZWBcjs.resolveTemplates; exports.resolveTemplatesWithMapping = _chunk4SUNJZWBcjs.resolveTemplatesWithMapping; exports.resolveTrackedChanges = _chunkAA4ZEVCCcjs.resolveTrackedChanges; exports.resolveVariables = _chunk4SUNJZWBcjs.resolveVariables; exports.richClipboardPluginKey = _chunkGVSMRPHBcjs.richClipboardPluginKey; exports.roundFloat = _chunk6M3BCTBDcjs.roundFloat; exports.rowPassesFilters = _chunk6M3BCTBDcjs.rowPassesFilters; exports.rtfImportAdapter = _chunkGVSMRPHBcjs.rtfImportAdapter; exports.rtfToPlainText = _chunkCL37JGFWcjs.rtfToPlainText; exports.sanitizeHtml = _chunkAA4ZEVCCcjs.sanitizeHtml; exports.sanitizeImportedHtml = _chunkCL37JGFWcjs.sanitizeImportedHtml; exports.searchFormulaFunctions = _chunkSAZRENEZcjs.searchFormulaFunctions; exports.serializeCsv = _chunk6M3BCTBDcjs.serializeCsv; exports.serializeHtmlTable = _chunk6M3BCTBDcjs.serializeHtmlTable; exports.serializeRichClipboardPayload = _chunkCL37JGFWcjs.serializeRichClipboardPayload; exports.serializeTsv = _chunk6M3BCTBDcjs.serializeTsv; exports.shiftFormulaReferences = _chunk6M3BCTBDcjs.shiftFormulaReferences; exports.smartQuoteRules = _chunkGVSMRPHBcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkGVSMRPHBcjs.smilieAutocorrectRules; exports.sortZipEntryNames = sortZipEntryNames; exports.stripMarkdownCode = _chunkAA4ZEVCCcjs.stripMarkdownCode; exports.symbolRules = _chunkGVSMRPHBcjs.symbolRules; exports.syncFootnotes = _chunkGVSMRPHBcjs.syncFootnotes; exports.tableOfContentsMarkdownIt = _chunkGVSMRPHBcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkGVSMRPHBcjs.tableOfContentsPluginKey; exports.templateRegex = _chunkAXV2ZW34cjs.templateRegex; exports.toNumber = _chunk6M3BCTBDcjs.toNumber; exports.tokenizeFormula = _chunkSAZRENEZcjs.tokenizeFormula; exports.tokenizePrompt = _chunk4SUNJZWBcjs.tokenizePrompt; exports.tokenizePromptWithDiagnostics = _chunk4SUNJZWBcjs.tokenizePromptWithDiagnostics; exports.trackChangesPluginKey = _chunkAA4ZEVCCcjs.trackChangesPluginKey; exports.tsvImportAdapter = _chunk6M3BCTBDcjs.tsvImportAdapter; exports.twoInitialCapitalsRules = _chunkGVSMRPHBcjs.twoInitialCapitalsRules; exports.unescapeVariableText = _chunkAXV2ZW34cjs.unescapeVariableText; exports.unregisterFormulaFunction = _chunkSAZRENEZcjs.unregisterFormulaFunction; exports.unregisterImportAdapter = _chunkGVSMRPHBcjs.unregisterImportAdapter; exports.updateImageSrc = _chunkGVSMRPHBcjs.updateImageSrc; exports.variableRegex = _chunkAXV2ZW34cjs.variableRegex; exports.wildcardToRegExp = _chunkSAZRENEZcjs.wildcardToRegExp; exports.writeRichClipboard = _chunkGVSMRPHBcjs.writeRichClipboard; exports.zipCrc32 = _chunkGVSMRPHBcjs.zipCrc32; exports.zipEntryTitle = zipEntryTitle; exports.zipImportAdapter = zipImportAdapter;
814
1048
  //# sourceMappingURL=index.cjs.map