@pixerate/editor 0.47.0 → 0.48.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 (76) hide show
  1. package/dist/agent/index.cjs +246 -29
  2. package/dist/agent/index.cjs.map +1 -1
  3. package/dist/agent/index.d.cts +18 -6
  4. package/dist/agent/index.d.ts +18 -6
  5. package/dist/agent/index.js +226 -9
  6. package/dist/agent/index.js.map +1 -1
  7. package/dist/{builtins-xs7rK6ys.d.cts → builtins-1kqwLUnb.d.cts} +1 -1
  8. package/dist/{builtins-D2nMtw2W.d.ts → builtins-BKYlHH1s.d.ts} +1 -1
  9. package/dist/chart/index.cjs +214 -3541
  10. package/dist/chart/index.cjs.map +1 -1
  11. package/dist/chart/index.d.cts +4 -494
  12. package/dist/chart/index.d.ts +4 -494
  13. package/dist/chart/index.js +135 -3462
  14. package/dist/chart/index.js.map +1 -1
  15. package/dist/{chunk-5VXI5GED.js → chunk-2CJ3LPYQ.js} +3 -3
  16. package/dist/{chunk-ZFBBVGCI.js → chunk-EKYHKQPG.js} +243 -243
  17. package/dist/{chunk-ZFBBVGCI.js.map → chunk-EKYHKQPG.js.map} +1 -1
  18. package/dist/chunk-HXUL3LS7.js +113 -0
  19. package/dist/chunk-HXUL3LS7.js.map +1 -0
  20. package/dist/{chunk-REAGGLXS.js → chunk-JQ3BB3E6.js} +2 -2
  21. package/dist/chunk-LTUM52X6.js +4074 -0
  22. package/dist/chunk-LTUM52X6.js.map +1 -0
  23. package/dist/{chunk-J3R2OWOE.cjs → chunk-MUCYWI6W.cjs} +608 -15
  24. package/dist/chunk-MUCYWI6W.cjs.map +1 -0
  25. package/dist/chunk-PIMCHMZE.cjs +521 -0
  26. package/dist/chunk-PIMCHMZE.cjs.map +1 -0
  27. package/dist/{chunk-TK2XZK6Z.js → chunk-PKBWLEL7.js} +594 -1
  28. package/dist/chunk-PKBWLEL7.js.map +1 -0
  29. package/dist/chunk-PRSJJZBS.cjs +4074 -0
  30. package/dist/chunk-PRSJJZBS.cjs.map +1 -0
  31. package/dist/chunk-U6IZKC7B.cjs +113 -0
  32. package/dist/chunk-U6IZKC7B.cjs.map +1 -0
  33. package/dist/{chunk-SQC26VQV.cjs → chunk-UN33YOXW.cjs} +191 -191
  34. package/dist/{chunk-SQC26VQV.cjs.map → chunk-UN33YOXW.cjs.map} +1 -1
  35. package/dist/{chunk-PQFAHT5O.js → chunk-VKPEPWKZ.js} +27 -94
  36. package/dist/chunk-VKPEPWKZ.js.map +1 -0
  37. package/dist/{chunk-H4PICYNL.cjs → chunk-WXEHCVJQ.cjs} +113 -180
  38. package/dist/chunk-WXEHCVJQ.cjs.map +1 -0
  39. package/dist/{chunk-LYGEEDNR.cjs → chunk-XP5IUZUO.cjs} +242 -242
  40. package/dist/chunk-XP5IUZUO.cjs.map +1 -0
  41. package/dist/{chunk-C3NWJE3K.js → chunk-XUUD43OV.js} +11 -672
  42. package/dist/chunk-XUUD43OV.js.map +1 -0
  43. package/dist/{chunk-BBRK6MOI.cjs → chunk-YU4WQE5M.cjs} +100 -100
  44. package/dist/{chunk-BBRK6MOI.cjs.map → chunk-YU4WQE5M.cjs.map} +1 -1
  45. package/dist/commands/index.d.cts +1 -1
  46. package/dist/commands/index.d.ts +1 -1
  47. package/dist/controller-ChjCCMLl.d.cts +822 -0
  48. package/dist/controller-DtbEo3om.d.ts +822 -0
  49. package/dist/extensions/index.cjs +32 -4
  50. package/dist/extensions/index.cjs.map +1 -1
  51. package/dist/extensions/index.d.cts +4 -2
  52. package/dist/extensions/index.d.ts +4 -2
  53. package/dist/extensions/index.js +31 -3
  54. package/dist/{index-QrqMmZ75.d.cts → index-DoHqT1mq.d.cts} +203 -7
  55. package/dist/{index-CSUCQYAH.d.ts → index-YLZ0fKqE.d.ts} +203 -7
  56. package/dist/index.cjs +37 -12
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/index.d.cts +9 -7
  59. package/dist/index.d.ts +9 -7
  60. package/dist/index.js +31 -6
  61. package/dist/index.js.map +1 -1
  62. package/dist/spreadsheet/index.cjs +4 -4
  63. package/dist/spreadsheet/index.js +3 -3
  64. package/package.json +1 -1
  65. package/dist/chunk-C3NWJE3K.js.map +0 -1
  66. package/dist/chunk-H4PICYNL.cjs.map +0 -1
  67. package/dist/chunk-J3R2OWOE.cjs.map +0 -1
  68. package/dist/chunk-LYGEEDNR.cjs.map +0 -1
  69. package/dist/chunk-NEOO6QJD.cjs +0 -1182
  70. package/dist/chunk-NEOO6QJD.cjs.map +0 -1
  71. package/dist/chunk-PQFAHT5O.js.map +0 -1
  72. package/dist/chunk-TK2XZK6Z.js.map +0 -1
  73. package/dist/types-BVqWm3d1.d.cts +0 -320
  74. package/dist/types-BVqWm3d1.d.ts +0 -320
  75. /package/dist/{chunk-5VXI5GED.js.map → chunk-2CJ3LPYQ.js.map} +0 -0
  76. /package/dist/{chunk-REAGGLXS.js.map → chunk-JQ3BB3E6.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -2,8 +2,8 @@ import { b as Token } from './tokens-D7yXvUU6.cjs';
2
2
  export { C as ColorGradient, c as ComparisonOperator, d as ConditionComparison, e as ConditionalKind, I as INSTRUCTION_REGEX, a as PromptDiagnostic, f as PromptDiagnosticCode, g as PromptValue, P as PromptValues, h as TEMPLATE_REGEX, T as Template, i as TemplateVersion, j as TokenType, V as VARIABLE_REGEX, k as instructionRegex, t as templateRegex, v as variableRegex } from './tokens-D7yXvUU6.cjs';
3
3
  export { ConditionExpression, ConditionalTagLike, ConditionalTagMatch, DataSourceInput, DataSourceWarning, DataSourceWarningCode, EvaluatedToken, ExtractVariablesOptions, FIELD_ALIASES, FieldMapping, FieldMatch, FieldMatchKind, MAX_DATA_SOURCE_FIELDS, MAX_DATA_SOURCE_RECORDS, MAX_MERGE_LENGTH, MAX_MERGE_OUTPUTS, MatchFieldsOptions, MergeDataSource, MergeDiagnostic, MergeDiagnosticCode, MergeOutput, MergeRecord, MergeRecordsOptions, MergeRecordsResult, MergeSkip, ParseDataSourceOptions, ParsedComparison, ParsedVariableBody, RecordToValuesOptions, ResolvePromptOptions, ResolvePromptResult, TEMPLATE_DEPTH_ERROR, TEMPLATE_LOOP_ERROR, TokenizeResult, VariableDescriptor, VariableFormField, compactVariableValues, compareConditionValues, conditionSubject, describeConditionalTag, detectDelimiter, escapeVariableText, evaluateCondition, evaluateConditionExpression, evaluatePromptTokens, extractVariables, formatComparisonOperand, formatConditionalTag, getLatestVersion, getPromptDiagnostics, getSuppliedValue, getTemplateBody, getVariableFormFields, isPromptValueSet, matchConditionalTags, matchFields, mergeRecords, normalizeFieldKey, normalizeFieldNames, parseComparison, parseConditionExpression, parseDataSource, parseVariableBody, recordToValues, resolvePrompt, serializeMergeOutputs, tokenizePrompt, tokenizePromptWithDiagnostics, unescapeVariableText } from './grammar/index.cjs';
4
4
  export { R as ResolveTemplatesOptions, S as SourceMapSegment, e as extractInstructionNames, a as extractTemplateNames, b as extractVariableNames, m as mapRawOffsetToResolved, c as mapResolvedOffsetToRaw, r as resolveTemplates, d as resolveTemplatesWithMapping, f as resolveVariables } from './sourcemap-C8AH3MBQ.cjs';
5
- import { D as DocumentImport, a as DocumentImportAdapter, P as PdfStructureReport, b as PdfLayoutOptions, c as PdfRuleLine, d as PdfTextRun } from './index-QrqMmZ75.cjs';
6
- export { A as ALLOW_NESTED_TABLES_META, e as AddCommentOptions, f as Autocorrect, g as AutocorrectContext, h as AutocorrectCorrection, i as AutocorrectOptions, j as AutocorrectRule, k as AutocorrectStorage, B as BUILT_IN_IMPORT_ADAPTERS, l as Bookmark, m as BookmarkInfo, n as BookmarkOptions, C as CHARACTER_STYLE_MARK_NAME, o as COMMENT_MARK_NAME, p as CharacterStyle, q as ColorHighlighter, r as CommentRange, s as Comments, t as CommentsOptions, u as CommentsStorage, v as CompileFindPatternResult, w as CompiledFindPattern, x as CreateImportAdapterRegistryOptions, y as CreateStyleFromSelectionOptions, z as CrossReference, E as CrossReferenceOptions, F as CrossReferenceTarget, G as CrossReferenceTargetType, H as DEFAULT_AUTOCORRECT_EXCEPTIONS, I as DEFAULT_TABLE_OPTIONS, J as DEFAULT_TABLE_TOOLBAR, K as DocumentCompare, L as DocumentCompareOptions, M as DocumentCompareStorage, N as DocumentSearchOptions, O as DocumentSearchResult, Q as DocumentStructureCommandArgs, R as DocumentStructureCommandItem, S as EMPTY_FIND_REPLACE_SNAPSHOT, T as EMPTY_TABLE_STATE, U as EditorCompareOptions, V as FIND_OPTION_TOGGLES, W as FIND_PARAGRAPH_MARK, X as FileImport, Y as FileImportOptions, Z as FindAllOptions, _ as FindAllResult, $ as FindMatch, a0 as FindOptionToggle, a1 as FindOptions, a2 as FindPatternError, a3 as FindPatternErrorCode, a4 as FindReplace, a5 as FindReplaceCommandOptions, a6 as FindReplaceMode, a7 as FindReplaceOptions, a8 as FindReplaceSnapshot, a9 as FindReplaceStorage, aa as FindReplaceStore, ab as FocusHeadingOptions, ac as FontSize, ad as Footnote, ae as FootnoteInfo, af as FootnoteReference, ag as Footnotes, ah as FootnotesOptions, ai as GradientText, aj as GradientTextOptions, ak as Image, al as ImageOptions, am as ImportStructureItem, an as ImportStructureReport, ao as ImportedChart, ap as InsertFootnoteOptions, aq as InsertTableOfContentsOptions, ar as LoadingNode, as as MAX_FIND_PATTERN_LENGTH, at as MAX_TABLE_COLUMNS, au as MAX_TABLE_ROWS, av as Markdown, aw as OpenFindReplaceParams, ax as Outline, ay as OutlineHeading, az as OutlineOptions, aA as OutlineSnapshot, aB as OutlineStorage, aC as OutlineStore, aD as OutlineTreeItem, aE as ParagraphStyles, aF as ParagraphStylesOptions, aG as ParagraphStylesSnapshot, aH as ParagraphStylesStorage, aI as ParagraphStylesStore, aJ as PatternMatch, aK as PdfLayoutBlock, aL as PdfLayoutPage, aM as PdfLayoutResult, aN as PdfTableCell, aO as ReplacePiece, aP as RichClipboard, aQ as RichClipboardOptions, aR as RichClipboardStorage, aS as RichTextPresetCommandPackages, aT as RichTextPresetOptions, aU as RichTextTableOptions, aV as RunTableActionOptions, aW as SMILIE_REPLACEMENTS, aX as STYLE_ID_ATTRIBUTE, aY as SearchBudget, aZ as SearchBudgetOptions, a_ as SetBookmarkOptions, a$ as SetSearchParams, b0 as SlashCommandMatchData, b1 as SlashCommands, b2 as SlashCommandsOptions, b3 as SmilieReplacer, b4 as TABLE_ACTIONS, b5 as Table, b6 as TableAction, b7 as TableActionInfo, b8 as TableActionParams, b9 as TableActionStatus, ba as TableCell, bb as TableCellAlignment, bc as TableCommandOptions, bd as TableHeader, be as TableOfContents, bf as TableOfContentsEntry, bg as TableOfContentsOptions, bh as TableRow, bi as TableState, bj as TableStore, bk as TableToolbarItem, bl as TemplateSuggestions, bm as TemplateSuggestionsOptions, bn as analyzePdfLayout, bo as applyDocumentComparison, bp as applyReplacements, bq as autocorrectPluginKey, br as buildOutlineTree, bs as capitalizeSentenceRules, bt as captureSelectionFormat, bu as commentsPluginKey, bv as compareInEditor, bw as compileFindPattern, bx as computeOutline, by as createFindReplaceCommands, bz as createImportAdapterRegistry, bA as createOutlineStore, bB as createParagraphStylesStore, bC as createRichTextPreset, bD as createSearchBudget, bE as createTableCommands, bF as createTableExtensions, bG as createTableNestingPlugin, bH as createTableStore, bI as crossReferencePluginKey, bJ as defaultAutocorrectRules, bK as defaultImportRegistry, bL as documentStructureCommandItems, bM as expandReplacement, bN as fileImportPluginKey, bO as findAllMatches, bP as findAutocorrection, bQ as findCommentRanges, bR as findHexColors, bS as findImportAdapter, bT as findReplacePluginKey, bU as foldCodePoint, bV as footnotesMarkdownIt, bW as footnotesPluginKey, bX as formatFindStatus, bY as fractionRules, bZ as getActiveHeading, b_ as getBookmarks, b$ as getCommentAnchors, c0 as getCommentAuthor, c1 as getCommentIdsAt, c2 as getCommentStore, c3 as getCrossReferenceTargets, c4 as getDocumentStructureCommandItems, c5 as getFindReplaceState, c6 as getFindReplaceStore, c7 as getFootnotes, c8 as getImportAccept, c9 as getOutline, ca as getParagraphStyleAt, cb as getStyleRegistry, cc as getTableActionState, cd as getTableOfContentsEntries, ce as getTableState, cf as handleImageInsertion, cg as handleTablePasteWithoutNesting, ch as htmlImportAdapter, ci as imagePastePluginKey, cj as importFile, ck as insertImageNode, cl as insertSliceAfterTable, cm as isGfmTable, cn as isInTableCell, co as isInsidePromptToken, cp as isParagraphStyleAvailable, cq as isSelectionInTable, cr as isTableEnabled, cs as markdownImportAdapter, ct as navigateToHeading, cu as normalizeTableCellAlignment, cv as normalizeTableCellColor, cw as outermostTableDepth, cx as outlinePluginKey, cy as paragraphStylesPluginKey, cz as parseReplacement, cA as pdfLayoutBlocksToHtml, cB as plainTextImportAdapter, cC as registerImportAdapter, cD as removeImageNode, cE as richClipboardPluginKey, cF as rtfImportAdapter, cG as runTableAction, cH as searchDocument, cI as shouldShowTableBubbleMenu, cJ as sliceContainsTable, cK as smartQuoteRules, cL as smilieAutocorrectRules, cM as symbolRules, cN as syncFootnotes, cO as tableNestingPluginKey, cP as tableOfContentsMarkdownIt, cQ as tableOfContentsPluginKey, cR as twoInitialCapitalsRules, cS as unnestTables, cT as unregisterImportAdapter, cU as updateImageSrc, cV as validateFindPattern, cW as writeRichClipboard } from './index-QrqMmZ75.cjs';
5
+ import { D as DocumentImport, a as DocumentImportAdapter, P as PdfStructureReport, b as PdfLayoutOptions, c as PdfRuleLine, d as PdfTextRun } from './index-DoHqT1mq.cjs';
6
+ export { A as ALLOW_NESTED_TABLES_META, e as AddCommentOptions, f as Autocorrect, g as AutocorrectContext, h as AutocorrectCorrection, i as AutocorrectOptions, j as AutocorrectRule, k as AutocorrectStorage, B as BUILT_IN_IMPORT_ADAPTERS, l as Bookmark, m as BookmarkInfo, n as BookmarkOptions, C as CHARACTER_STYLE_MARK_NAME, o as COMMENT_MARK_NAME, p as CharacterStyle, q as Chart, r as ChartNodeOptions, s as ChartNodeView, t as ChartNodeViewMount, u as ChartNodeViewRenderer, v as ChartNodeViewState, w as ColorHighlighter, x as CommentRange, y as Comments, z as CommentsOptions, E as CommentsStorage, F as CompileFindPatternResult, G as CompiledFindPattern, H as CreateImportAdapterRegistryOptions, I as CreateStyleFromSelectionOptions, J as CrossReference, K as CrossReferenceOptions, L as CrossReferenceTarget, M as CrossReferenceTargetType, N as DEFAULT_AUTOCORRECT_EXCEPTIONS, O as DEFAULT_TABLE_OPTIONS, Q as DEFAULT_TABLE_TOOLBAR, R as DocumentChart, S as DocumentCompare, T as DocumentCompareOptions, U as DocumentCompareStorage, V as DocumentSearchOptions, W as DocumentSearchResult, X as DocumentStructureCommandArgs, Y as DocumentStructureCommandItem, Z as EMPTY_FIND_REPLACE_SNAPSHOT, _ as EMPTY_TABLE_STATE, $ as EditorCompareOptions, a0 as FIND_OPTION_TOGGLES, a1 as FIND_PARAGRAPH_MARK, a2 as FileImport, a3 as FileImportOptions, a4 as FindAllOptions, a5 as FindAllResult, a6 as FindMatch, a7 as FindOptionToggle, a8 as FindOptions, a9 as FindPatternError, aa as FindPatternErrorCode, ab as FindReplace, ac as FindReplaceCommandOptions, ad as FindReplaceMode, ae as FindReplaceOptions, af as FindReplaceSnapshot, ag as FindReplaceStorage, ah as FindReplaceStore, ai as FocusHeadingOptions, aj as FontSize, ak as Footnote, al as FootnoteInfo, am as FootnoteReference, an as Footnotes, ao as FootnotesOptions, ap as GradientText, aq as GradientTextOptions, ar as Image, as as ImageOptions, at as ImportStructureItem, au as ImportStructureReport, av as ImportedChart, aw as InsertChartOptions, ax as InsertFootnoteOptions, ay as InsertSparklineOptions, az as InsertTableOfContentsOptions, aA as LoadingNode, aB as MAX_FIND_PATTERN_LENGTH, aC as MAX_SPARKLINE_VALUES, aD as MAX_TABLE_COLUMNS, aE as MAX_TABLE_ROWS, aF as Markdown, aG as OpenFindReplaceParams, aH as Outline, aI as OutlineHeading, aJ as OutlineOptions, aK as OutlineSnapshot, aL as OutlineStorage, aM as OutlineStore, aN as OutlineTreeItem, aO as ParagraphStyles, aP as ParagraphStylesOptions, aQ as ParagraphStylesSnapshot, aR as ParagraphStylesStorage, aS as ParagraphStylesStore, aT as PatternMatch, aU as PdfLayoutBlock, aV as PdfLayoutPage, aW as PdfLayoutResult, aX as PdfTableCell, aY as ReplacePiece, aZ as RichClipboard, a_ as RichClipboardOptions, a$ as RichClipboardStorage, b0 as RichTextPresetCommandPackages, b1 as RichTextPresetOptions, b2 as RichTextTableOptions, b3 as RunTableActionOptions, b4 as SMILIE_REPLACEMENTS, b5 as SPARKLINE_KINDS, b6 as STYLE_ID_ATTRIBUTE, b7 as SearchBudget, b8 as SearchBudgetOptions, b9 as SetBookmarkOptions, ba as SetSearchParams, bb as SlashCommandMatchData, bc as SlashCommands, bd as SlashCommandsOptions, be as SmilieReplacer, bf as Sparkline, bg as SparklineNodeOptions, bh as TABLE_ACTIONS, bi as Table, bj as TableAction, bk as TableActionInfo, bl as TableActionParams, bm as TableActionStatus, bn as TableCell, bo as TableCellAlignment, bp as TableCommandOptions, bq as TableHeader, br as TableOfContents, bs as TableOfContentsEntry, bt as TableOfContentsOptions, bu as TableRow, bv as TableState, bw as TableStore, bx as TableToolbarItem, by as TemplateSuggestions, bz as TemplateSuggestionsOptions, bA as analyzePdfLayout, bB as applyDocumentComparison, bC as applyReplacements, bD as autocorrectPluginKey, bE as buildOutlineTree, bF as capitalizeSentenceRules, bG as captureSelectionFormat, bH as chartPluginKey, bI as commentsPluginKey, bJ as compareInEditor, bK as compileFindPattern, bL as computeOutline, bM as createChartNodeView, bN as createFindReplaceCommands, bO as createImportAdapterRegistry, bP as createOutlineStore, bQ as createParagraphStylesStore, bR as createRichTextPreset, bS as createSearchBudget, bT as createTableCommands, bU as createTableExtensions, bV as createTableNestingPlugin, bW as createTableStore, bX as crossReferencePluginKey, bY as defaultAutocorrectRules, bZ as defaultImportRegistry, b_ as documentStructureCommandItems, b$ as expandReplacement, c0 as fileImportPluginKey, c1 as findAllMatches, c2 as findAutocorrection, c3 as findCommentRanges, c4 as findHexColors, c5 as findImportAdapter, c6 as findReplacePluginKey, c7 as foldCodePoint, c8 as footnotesMarkdownIt, c9 as footnotesPluginKey, ca as formatFindStatus, cb as fractionRules, cc as getActiveHeading, cd as getBookmarks, ce as getCommentAnchors, cf as getCommentAuthor, cg as getCommentIdsAt, ch as getCommentStore, ci as getCrossReferenceTargets, cj as getDocumentCharts, ck as getDocumentStructureCommandItems, cl as getFindReplaceState, cm as getFindReplaceStore, cn as getFootnotes, co as getImportAccept, cp as getOutline, cq as getParagraphStyleAt, cr as getStyleRegistry, cs as getTableActionState, ct as getTableOfContentsEntries, cu as getTableState, cv as handleImageInsertion, cw as handleTablePasteWithoutNesting, cx as htmlImportAdapter, cy as imagePastePluginKey, cz as importFile, cA as insertImageNode, cB as insertSliceAfterTable, cC as isChartEnabled, cD as isGfmTable, cE as isInTableCell, cF as isInsidePromptToken, cG as isParagraphStyleAvailable, cH as isSelectionInTable, cI as isTableEnabled, cJ as markdownImportAdapter, cK as navigateToHeading, cL as normalizeSparklineValues, cM as normalizeTableCellAlignment, cN as normalizeTableCellColor, cO as outermostTableDepth, cP as outlinePluginKey, cQ as paragraphStylesPluginKey, cR as parseReplacement, cS as pdfLayoutBlocksToHtml, cT as plainTextImportAdapter, cU as registerImportAdapter, cV as removeImageNode, cW as richClipboardPluginKey, cX as rtfImportAdapter, cY as runTableAction, cZ as searchDocument, c_ as shouldShowTableBubbleMenu, c$ as sliceContainsTable, d0 as smartQuoteRules, d1 as smilieAutocorrectRules, d2 as sparklineLabel, d3 as staticChartSvg, d4 as symbolRules, d5 as syncFootnotes, d6 as tableNestingPluginKey, d7 as tableOfContentsMarkdownIt, d8 as tableOfContentsPluginKey, d9 as twoInitialCapitalsRules, da as unnestTables, db as unregisterImportAdapter, dc as updateImageSrc, dd as validateFindPattern, de as writeRichClipboard } from './index-DoHqT1mq.cjs';
7
7
  export { B as BLOCK_CHANGE_ATTRIBUTE, D as DELETION_MARK_NAME, F as FORMAT_CHANGE_MARK_NAME, I as INSERTION_MARK_NAME, M as MOVE_FROM_CLASS, a as MOVE_ID_ATTRIBUTE, b as MOVE_TO_CLASS, c as Mention, d as MentionEntity, e as MentionNodeInfo, f as MentionOptions, T as TRACK_CHANGES_SKIP_META, g as TrackChanges, h as TrackChangesOptions, i as TrackChangesSnapshot, j as TrackChangesStorage, k as TrackChangesStore, l as TrackedBlockChangeAttributes, m as TrackedBlockOperation, n as TrackedBlockSnapshot, o as TrackedChange, p as TrackedChangeAttributes, q as TrackedChangeType, r as TrackedChangesView, s as TrackedDeletion, t as TrackedFormatChange, u as TrackedFormatChangeAttributes, v as TrackedFormatSummary, w as TrackedInsertion, x as TrackedMark, y as createMentionExtension, z as describeBlockChange, A as describeFormatChange, C as getMentionNodes, E as getTrackChangesStore, G as getTrackedChangeAt, H as getTrackedChanges, J as isMoveSized, K as isTrackChangesEnabled, L as resolveTrackedChanges, N as setMentionRoleAt, O as trackChangesPluginKey, P as trackedChangeLabel } from './track-changes-D_VAPELi.cjs';
8
8
  export { C as CommentAnchor, a as CommentReply, b as CommentStore, c as CommentStoreListener, d as CommentStoreOptions, e as CommentStoreSnapshot, f as CommentThread, g as CreateThreadInput, R as ReviewAuthor, S as SerializedComments, h as createCommentStore, i as createReviewId, j as formatReviewTime } from './comment-store-BEMgVlAA.cjs';
9
9
  export { C as CharacterFormat, D as DEFAULT_STYLES, N as NORMAL_STYLE_ID, P as ParagraphFormat, R as ResolvedStyle, S as StyleBlock, a as StyleCSSOptions, b as StyleDefaults, c as StyleDefinition, d as StyleKind, e as StyleRegistry, f as StyleRegistryJSON, g as StyleRegistryOptions, h as StyleRegistrySnapshot, i as createStyleRegistry, j as isValidStyleId, s as safeCSSValue } from './registry-CED5C0lA.cjs';
@@ -38,7 +38,7 @@ import '@tiptap/extension-image';
38
38
  import '@tiptap/extension-highlight';
39
39
  import '@tiptap/extension-color';
40
40
  import '@tiptap/starter-kit';
41
- import './types-BVqWm3d1.cjs';
41
+ import './controller-ChjCCMLl.cjs';
42
42
  import './registry-CaR7LC6W.cjs';
43
43
  import './schema-Di0CS6Pe.cjs';
44
44
  import '@tiptap/extension-mention';
@@ -388,8 +388,8 @@ declare function readZip(data: ArrayBuffer | ArrayBufferView, options?: ZipReadO
388
388
  * paragraph and character styles of `styles.xml` are returned as a style
389
389
  * registry (`styles`), and body paragraphs with a custom style get
390
390
  * `data-style`. Paragraphs in the `Block Text` style become block quotes, and
391
- * paragraphs in the `Code` style code blocks. Text boxes, charts, shapes,
392
- * equations and page layout are not imported.
391
+ * paragraphs in the `Code` style code blocks. Charts become `chart` nodes (see
392
+ * the `charts` option). Text boxes, shapes, equations and page layout are not imported.
393
393
  */
394
394
  declare const DOCX_MIME_TYPES: readonly ["application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.template", "application/vnd.ms-word.document.macroenabled.12"];
395
395
  interface DocxImportOptions {
@@ -415,8 +415,10 @@ interface DocxImportOptions {
415
415
  /** Embed images from `word/media` as data URLs (default `true`). */
416
416
  images?: boolean;
417
417
  /**
418
- * Read embedded charts (`word/charts/chartN.xml`, default `true`). Each becomes a caption
419
- * and a table of its data in the HTML, and its full spec is returned in `charts`.
418
+ * Read embedded charts (`word/charts/chartN.xml`, default `true`). Each becomes a
419
+ * `<div data-type="chart">` holding its spec: a live chart in editors with the `chart` node
420
+ * (`createRichTextPreset({ chart: true })`), otherwise a caption and a table of its data.
421
+ * The full specs are also returned in `charts`.
420
422
  */
421
423
  charts?: boolean;
422
424
  /** Images larger than this many bytes are skipped (default 10 MiB). */
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import { b as Token } from './tokens-D7yXvUU6.js';
2
2
  export { C as ColorGradient, c as ComparisonOperator, d as ConditionComparison, e as ConditionalKind, I as INSTRUCTION_REGEX, a as PromptDiagnostic, f as PromptDiagnosticCode, g as PromptValue, P as PromptValues, h as TEMPLATE_REGEX, T as Template, i as TemplateVersion, j as TokenType, V as VARIABLE_REGEX, k as instructionRegex, t as templateRegex, v as variableRegex } from './tokens-D7yXvUU6.js';
3
3
  export { ConditionExpression, ConditionalTagLike, ConditionalTagMatch, DataSourceInput, DataSourceWarning, DataSourceWarningCode, EvaluatedToken, ExtractVariablesOptions, FIELD_ALIASES, FieldMapping, FieldMatch, FieldMatchKind, MAX_DATA_SOURCE_FIELDS, MAX_DATA_SOURCE_RECORDS, MAX_MERGE_LENGTH, MAX_MERGE_OUTPUTS, MatchFieldsOptions, MergeDataSource, MergeDiagnostic, MergeDiagnosticCode, MergeOutput, MergeRecord, MergeRecordsOptions, MergeRecordsResult, MergeSkip, ParseDataSourceOptions, ParsedComparison, ParsedVariableBody, RecordToValuesOptions, ResolvePromptOptions, ResolvePromptResult, TEMPLATE_DEPTH_ERROR, TEMPLATE_LOOP_ERROR, TokenizeResult, VariableDescriptor, VariableFormField, compactVariableValues, compareConditionValues, conditionSubject, describeConditionalTag, detectDelimiter, escapeVariableText, evaluateCondition, evaluateConditionExpression, evaluatePromptTokens, extractVariables, formatComparisonOperand, formatConditionalTag, getLatestVersion, getPromptDiagnostics, getSuppliedValue, getTemplateBody, getVariableFormFields, isPromptValueSet, matchConditionalTags, matchFields, mergeRecords, normalizeFieldKey, normalizeFieldNames, parseComparison, parseConditionExpression, parseDataSource, parseVariableBody, recordToValues, resolvePrompt, serializeMergeOutputs, tokenizePrompt, tokenizePromptWithDiagnostics, unescapeVariableText } from './grammar/index.js';
4
4
  export { R as ResolveTemplatesOptions, S as SourceMapSegment, e as extractInstructionNames, a as extractTemplateNames, b as extractVariableNames, m as mapRawOffsetToResolved, c as mapResolvedOffsetToRaw, r as resolveTemplates, d as resolveTemplatesWithMapping, f as resolveVariables } from './sourcemap-DA1Evhrv.js';
5
- import { D as DocumentImport, a as DocumentImportAdapter, P as PdfStructureReport, b as PdfLayoutOptions, c as PdfRuleLine, d as PdfTextRun } from './index-CSUCQYAH.js';
6
- export { A as ALLOW_NESTED_TABLES_META, e as AddCommentOptions, f as Autocorrect, g as AutocorrectContext, h as AutocorrectCorrection, i as AutocorrectOptions, j as AutocorrectRule, k as AutocorrectStorage, B as BUILT_IN_IMPORT_ADAPTERS, l as Bookmark, m as BookmarkInfo, n as BookmarkOptions, C as CHARACTER_STYLE_MARK_NAME, o as COMMENT_MARK_NAME, p as CharacterStyle, q as ColorHighlighter, r as CommentRange, s as Comments, t as CommentsOptions, u as CommentsStorage, v as CompileFindPatternResult, w as CompiledFindPattern, x as CreateImportAdapterRegistryOptions, y as CreateStyleFromSelectionOptions, z as CrossReference, E as CrossReferenceOptions, F as CrossReferenceTarget, G as CrossReferenceTargetType, H as DEFAULT_AUTOCORRECT_EXCEPTIONS, I as DEFAULT_TABLE_OPTIONS, J as DEFAULT_TABLE_TOOLBAR, K as DocumentCompare, L as DocumentCompareOptions, M as DocumentCompareStorage, N as DocumentSearchOptions, O as DocumentSearchResult, Q as DocumentStructureCommandArgs, R as DocumentStructureCommandItem, S as EMPTY_FIND_REPLACE_SNAPSHOT, T as EMPTY_TABLE_STATE, U as EditorCompareOptions, V as FIND_OPTION_TOGGLES, W as FIND_PARAGRAPH_MARK, X as FileImport, Y as FileImportOptions, Z as FindAllOptions, _ as FindAllResult, $ as FindMatch, a0 as FindOptionToggle, a1 as FindOptions, a2 as FindPatternError, a3 as FindPatternErrorCode, a4 as FindReplace, a5 as FindReplaceCommandOptions, a6 as FindReplaceMode, a7 as FindReplaceOptions, a8 as FindReplaceSnapshot, a9 as FindReplaceStorage, aa as FindReplaceStore, ab as FocusHeadingOptions, ac as FontSize, ad as Footnote, ae as FootnoteInfo, af as FootnoteReference, ag as Footnotes, ah as FootnotesOptions, ai as GradientText, aj as GradientTextOptions, ak as Image, al as ImageOptions, am as ImportStructureItem, an as ImportStructureReport, ao as ImportedChart, ap as InsertFootnoteOptions, aq as InsertTableOfContentsOptions, ar as LoadingNode, as as MAX_FIND_PATTERN_LENGTH, at as MAX_TABLE_COLUMNS, au as MAX_TABLE_ROWS, av as Markdown, aw as OpenFindReplaceParams, ax as Outline, ay as OutlineHeading, az as OutlineOptions, aA as OutlineSnapshot, aB as OutlineStorage, aC as OutlineStore, aD as OutlineTreeItem, aE as ParagraphStyles, aF as ParagraphStylesOptions, aG as ParagraphStylesSnapshot, aH as ParagraphStylesStorage, aI as ParagraphStylesStore, aJ as PatternMatch, aK as PdfLayoutBlock, aL as PdfLayoutPage, aM as PdfLayoutResult, aN as PdfTableCell, aO as ReplacePiece, aP as RichClipboard, aQ as RichClipboardOptions, aR as RichClipboardStorage, aS as RichTextPresetCommandPackages, aT as RichTextPresetOptions, aU as RichTextTableOptions, aV as RunTableActionOptions, aW as SMILIE_REPLACEMENTS, aX as STYLE_ID_ATTRIBUTE, aY as SearchBudget, aZ as SearchBudgetOptions, a_ as SetBookmarkOptions, a$ as SetSearchParams, b0 as SlashCommandMatchData, b1 as SlashCommands, b2 as SlashCommandsOptions, b3 as SmilieReplacer, b4 as TABLE_ACTIONS, b5 as Table, b6 as TableAction, b7 as TableActionInfo, b8 as TableActionParams, b9 as TableActionStatus, ba as TableCell, bb as TableCellAlignment, bc as TableCommandOptions, bd as TableHeader, be as TableOfContents, bf as TableOfContentsEntry, bg as TableOfContentsOptions, bh as TableRow, bi as TableState, bj as TableStore, bk as TableToolbarItem, bl as TemplateSuggestions, bm as TemplateSuggestionsOptions, bn as analyzePdfLayout, bo as applyDocumentComparison, bp as applyReplacements, bq as autocorrectPluginKey, br as buildOutlineTree, bs as capitalizeSentenceRules, bt as captureSelectionFormat, bu as commentsPluginKey, bv as compareInEditor, bw as compileFindPattern, bx as computeOutline, by as createFindReplaceCommands, bz as createImportAdapterRegistry, bA as createOutlineStore, bB as createParagraphStylesStore, bC as createRichTextPreset, bD as createSearchBudget, bE as createTableCommands, bF as createTableExtensions, bG as createTableNestingPlugin, bH as createTableStore, bI as crossReferencePluginKey, bJ as defaultAutocorrectRules, bK as defaultImportRegistry, bL as documentStructureCommandItems, bM as expandReplacement, bN as fileImportPluginKey, bO as findAllMatches, bP as findAutocorrection, bQ as findCommentRanges, bR as findHexColors, bS as findImportAdapter, bT as findReplacePluginKey, bU as foldCodePoint, bV as footnotesMarkdownIt, bW as footnotesPluginKey, bX as formatFindStatus, bY as fractionRules, bZ as getActiveHeading, b_ as getBookmarks, b$ as getCommentAnchors, c0 as getCommentAuthor, c1 as getCommentIdsAt, c2 as getCommentStore, c3 as getCrossReferenceTargets, c4 as getDocumentStructureCommandItems, c5 as getFindReplaceState, c6 as getFindReplaceStore, c7 as getFootnotes, c8 as getImportAccept, c9 as getOutline, ca as getParagraphStyleAt, cb as getStyleRegistry, cc as getTableActionState, cd as getTableOfContentsEntries, ce as getTableState, cf as handleImageInsertion, cg as handleTablePasteWithoutNesting, ch as htmlImportAdapter, ci as imagePastePluginKey, cj as importFile, ck as insertImageNode, cl as insertSliceAfterTable, cm as isGfmTable, cn as isInTableCell, co as isInsidePromptToken, cp as isParagraphStyleAvailable, cq as isSelectionInTable, cr as isTableEnabled, cs as markdownImportAdapter, ct as navigateToHeading, cu as normalizeTableCellAlignment, cv as normalizeTableCellColor, cw as outermostTableDepth, cx as outlinePluginKey, cy as paragraphStylesPluginKey, cz as parseReplacement, cA as pdfLayoutBlocksToHtml, cB as plainTextImportAdapter, cC as registerImportAdapter, cD as removeImageNode, cE as richClipboardPluginKey, cF as rtfImportAdapter, cG as runTableAction, cH as searchDocument, cI as shouldShowTableBubbleMenu, cJ as sliceContainsTable, cK as smartQuoteRules, cL as smilieAutocorrectRules, cM as symbolRules, cN as syncFootnotes, cO as tableNestingPluginKey, cP as tableOfContentsMarkdownIt, cQ as tableOfContentsPluginKey, cR as twoInitialCapitalsRules, cS as unnestTables, cT as unregisterImportAdapter, cU as updateImageSrc, cV as validateFindPattern, cW as writeRichClipboard } from './index-CSUCQYAH.js';
5
+ import { D as DocumentImport, a as DocumentImportAdapter, P as PdfStructureReport, b as PdfLayoutOptions, c as PdfRuleLine, d as PdfTextRun } from './index-YLZ0fKqE.js';
6
+ export { A as ALLOW_NESTED_TABLES_META, e as AddCommentOptions, f as Autocorrect, g as AutocorrectContext, h as AutocorrectCorrection, i as AutocorrectOptions, j as AutocorrectRule, k as AutocorrectStorage, B as BUILT_IN_IMPORT_ADAPTERS, l as Bookmark, m as BookmarkInfo, n as BookmarkOptions, C as CHARACTER_STYLE_MARK_NAME, o as COMMENT_MARK_NAME, p as CharacterStyle, q as Chart, r as ChartNodeOptions, s as ChartNodeView, t as ChartNodeViewMount, u as ChartNodeViewRenderer, v as ChartNodeViewState, w as ColorHighlighter, x as CommentRange, y as Comments, z as CommentsOptions, E as CommentsStorage, F as CompileFindPatternResult, G as CompiledFindPattern, H as CreateImportAdapterRegistryOptions, I as CreateStyleFromSelectionOptions, J as CrossReference, K as CrossReferenceOptions, L as CrossReferenceTarget, M as CrossReferenceTargetType, N as DEFAULT_AUTOCORRECT_EXCEPTIONS, O as DEFAULT_TABLE_OPTIONS, Q as DEFAULT_TABLE_TOOLBAR, R as DocumentChart, S as DocumentCompare, T as DocumentCompareOptions, U as DocumentCompareStorage, V as DocumentSearchOptions, W as DocumentSearchResult, X as DocumentStructureCommandArgs, Y as DocumentStructureCommandItem, Z as EMPTY_FIND_REPLACE_SNAPSHOT, _ as EMPTY_TABLE_STATE, $ as EditorCompareOptions, a0 as FIND_OPTION_TOGGLES, a1 as FIND_PARAGRAPH_MARK, a2 as FileImport, a3 as FileImportOptions, a4 as FindAllOptions, a5 as FindAllResult, a6 as FindMatch, a7 as FindOptionToggle, a8 as FindOptions, a9 as FindPatternError, aa as FindPatternErrorCode, ab as FindReplace, ac as FindReplaceCommandOptions, ad as FindReplaceMode, ae as FindReplaceOptions, af as FindReplaceSnapshot, ag as FindReplaceStorage, ah as FindReplaceStore, ai as FocusHeadingOptions, aj as FontSize, ak as Footnote, al as FootnoteInfo, am as FootnoteReference, an as Footnotes, ao as FootnotesOptions, ap as GradientText, aq as GradientTextOptions, ar as Image, as as ImageOptions, at as ImportStructureItem, au as ImportStructureReport, av as ImportedChart, aw as InsertChartOptions, ax as InsertFootnoteOptions, ay as InsertSparklineOptions, az as InsertTableOfContentsOptions, aA as LoadingNode, aB as MAX_FIND_PATTERN_LENGTH, aC as MAX_SPARKLINE_VALUES, aD as MAX_TABLE_COLUMNS, aE as MAX_TABLE_ROWS, aF as Markdown, aG as OpenFindReplaceParams, aH as Outline, aI as OutlineHeading, aJ as OutlineOptions, aK as OutlineSnapshot, aL as OutlineStorage, aM as OutlineStore, aN as OutlineTreeItem, aO as ParagraphStyles, aP as ParagraphStylesOptions, aQ as ParagraphStylesSnapshot, aR as ParagraphStylesStorage, aS as ParagraphStylesStore, aT as PatternMatch, aU as PdfLayoutBlock, aV as PdfLayoutPage, aW as PdfLayoutResult, aX as PdfTableCell, aY as ReplacePiece, aZ as RichClipboard, a_ as RichClipboardOptions, a$ as RichClipboardStorage, b0 as RichTextPresetCommandPackages, b1 as RichTextPresetOptions, b2 as RichTextTableOptions, b3 as RunTableActionOptions, b4 as SMILIE_REPLACEMENTS, b5 as SPARKLINE_KINDS, b6 as STYLE_ID_ATTRIBUTE, b7 as SearchBudget, b8 as SearchBudgetOptions, b9 as SetBookmarkOptions, ba as SetSearchParams, bb as SlashCommandMatchData, bc as SlashCommands, bd as SlashCommandsOptions, be as SmilieReplacer, bf as Sparkline, bg as SparklineNodeOptions, bh as TABLE_ACTIONS, bi as Table, bj as TableAction, bk as TableActionInfo, bl as TableActionParams, bm as TableActionStatus, bn as TableCell, bo as TableCellAlignment, bp as TableCommandOptions, bq as TableHeader, br as TableOfContents, bs as TableOfContentsEntry, bt as TableOfContentsOptions, bu as TableRow, bv as TableState, bw as TableStore, bx as TableToolbarItem, by as TemplateSuggestions, bz as TemplateSuggestionsOptions, bA as analyzePdfLayout, bB as applyDocumentComparison, bC as applyReplacements, bD as autocorrectPluginKey, bE as buildOutlineTree, bF as capitalizeSentenceRules, bG as captureSelectionFormat, bH as chartPluginKey, bI as commentsPluginKey, bJ as compareInEditor, bK as compileFindPattern, bL as computeOutline, bM as createChartNodeView, bN as createFindReplaceCommands, bO as createImportAdapterRegistry, bP as createOutlineStore, bQ as createParagraphStylesStore, bR as createRichTextPreset, bS as createSearchBudget, bT as createTableCommands, bU as createTableExtensions, bV as createTableNestingPlugin, bW as createTableStore, bX as crossReferencePluginKey, bY as defaultAutocorrectRules, bZ as defaultImportRegistry, b_ as documentStructureCommandItems, b$ as expandReplacement, c0 as fileImportPluginKey, c1 as findAllMatches, c2 as findAutocorrection, c3 as findCommentRanges, c4 as findHexColors, c5 as findImportAdapter, c6 as findReplacePluginKey, c7 as foldCodePoint, c8 as footnotesMarkdownIt, c9 as footnotesPluginKey, ca as formatFindStatus, cb as fractionRules, cc as getActiveHeading, cd as getBookmarks, ce as getCommentAnchors, cf as getCommentAuthor, cg as getCommentIdsAt, ch as getCommentStore, ci as getCrossReferenceTargets, cj as getDocumentCharts, ck as getDocumentStructureCommandItems, cl as getFindReplaceState, cm as getFindReplaceStore, cn as getFootnotes, co as getImportAccept, cp as getOutline, cq as getParagraphStyleAt, cr as getStyleRegistry, cs as getTableActionState, ct as getTableOfContentsEntries, cu as getTableState, cv as handleImageInsertion, cw as handleTablePasteWithoutNesting, cx as htmlImportAdapter, cy as imagePastePluginKey, cz as importFile, cA as insertImageNode, cB as insertSliceAfterTable, cC as isChartEnabled, cD as isGfmTable, cE as isInTableCell, cF as isInsidePromptToken, cG as isParagraphStyleAvailable, cH as isSelectionInTable, cI as isTableEnabled, cJ as markdownImportAdapter, cK as navigateToHeading, cL as normalizeSparklineValues, cM as normalizeTableCellAlignment, cN as normalizeTableCellColor, cO as outermostTableDepth, cP as outlinePluginKey, cQ as paragraphStylesPluginKey, cR as parseReplacement, cS as pdfLayoutBlocksToHtml, cT as plainTextImportAdapter, cU as registerImportAdapter, cV as removeImageNode, cW as richClipboardPluginKey, cX as rtfImportAdapter, cY as runTableAction, cZ as searchDocument, c_ as shouldShowTableBubbleMenu, c$ as sliceContainsTable, d0 as smartQuoteRules, d1 as smilieAutocorrectRules, d2 as sparklineLabel, d3 as staticChartSvg, d4 as symbolRules, d5 as syncFootnotes, d6 as tableNestingPluginKey, d7 as tableOfContentsMarkdownIt, d8 as tableOfContentsPluginKey, d9 as twoInitialCapitalsRules, da as unnestTables, db as unregisterImportAdapter, dc as updateImageSrc, dd as validateFindPattern, de as writeRichClipboard } from './index-YLZ0fKqE.js';
7
7
  export { B as BLOCK_CHANGE_ATTRIBUTE, D as DELETION_MARK_NAME, F as FORMAT_CHANGE_MARK_NAME, I as INSERTION_MARK_NAME, M as MOVE_FROM_CLASS, a as MOVE_ID_ATTRIBUTE, b as MOVE_TO_CLASS, c as Mention, d as MentionEntity, e as MentionNodeInfo, f as MentionOptions, T as TRACK_CHANGES_SKIP_META, g as TrackChanges, h as TrackChangesOptions, i as TrackChangesSnapshot, j as TrackChangesStorage, k as TrackChangesStore, l as TrackedBlockChangeAttributes, m as TrackedBlockOperation, n as TrackedBlockSnapshot, o as TrackedChange, p as TrackedChangeAttributes, q as TrackedChangeType, r as TrackedChangesView, s as TrackedDeletion, t as TrackedFormatChange, u as TrackedFormatChangeAttributes, v as TrackedFormatSummary, w as TrackedInsertion, x as TrackedMark, y as createMentionExtension, z as describeBlockChange, A as describeFormatChange, C as getMentionNodes, E as getTrackChangesStore, G as getTrackedChangeAt, H as getTrackedChanges, J as isMoveSized, K as isTrackChangesEnabled, L as resolveTrackedChanges, N as setMentionRoleAt, O as trackChangesPluginKey, P as trackedChangeLabel } from './track-changes-Db_fGEvx.js';
8
8
  export { C as CommentAnchor, a as CommentReply, b as CommentStore, c as CommentStoreListener, d as CommentStoreOptions, e as CommentStoreSnapshot, f as CommentThread, g as CreateThreadInput, R as ReviewAuthor, S as SerializedComments, h as createCommentStore, i as createReviewId, j as formatReviewTime } from './comment-store-BEMgVlAA.js';
9
9
  export { C as CharacterFormat, D as DEFAULT_STYLES, N as NORMAL_STYLE_ID, P as ParagraphFormat, R as ResolvedStyle, S as StyleBlock, a as StyleCSSOptions, b as StyleDefaults, c as StyleDefinition, d as StyleKind, e as StyleRegistry, f as StyleRegistryJSON, g as StyleRegistryOptions, h as StyleRegistrySnapshot, i as createStyleRegistry, j as isValidStyleId, s as safeCSSValue } from './registry-CED5C0lA.js';
@@ -38,7 +38,7 @@ import '@tiptap/extension-image';
38
38
  import '@tiptap/extension-highlight';
39
39
  import '@tiptap/extension-color';
40
40
  import '@tiptap/starter-kit';
41
- import './types-BVqWm3d1.js';
41
+ import './controller-DtbEo3om.js';
42
42
  import './registry-rVtFJjRM.js';
43
43
  import './schema-Di0CS6Pe.js';
44
44
  import '@tiptap/extension-mention';
@@ -388,8 +388,8 @@ declare function readZip(data: ArrayBuffer | ArrayBufferView, options?: ZipReadO
388
388
  * paragraph and character styles of `styles.xml` are returned as a style
389
389
  * registry (`styles`), and body paragraphs with a custom style get
390
390
  * `data-style`. Paragraphs in the `Block Text` style become block quotes, and
391
- * paragraphs in the `Code` style code blocks. Text boxes, charts, shapes,
392
- * equations and page layout are not imported.
391
+ * paragraphs in the `Code` style code blocks. Charts become `chart` nodes (see
392
+ * the `charts` option). Text boxes, shapes, equations and page layout are not imported.
393
393
  */
394
394
  declare const DOCX_MIME_TYPES: readonly ["application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.template", "application/vnd.ms-word.document.macroenabled.12"];
395
395
  interface DocxImportOptions {
@@ -415,8 +415,10 @@ interface DocxImportOptions {
415
415
  /** Embed images from `word/media` as data URLs (default `true`). */
416
416
  images?: boolean;
417
417
  /**
418
- * Read embedded charts (`word/charts/chartN.xml`, default `true`). Each becomes a caption
419
- * and a table of its data in the HTML, and its full spec is returned in `charts`.
418
+ * Read embedded charts (`word/charts/chartN.xml`, default `true`). Each becomes a
419
+ * `<div data-type="chart">` holding its spec: a live chart in editors with the `chart` node
420
+ * (`createRichTextPreset({ chart: true })`), otherwise a caption and a table of its data.
421
+ * The full specs are also returned in `charts`.
420
422
  */
421
423
  charts?: boolean;
422
424
  /** Images larger than this many bytes are skipped (default 10 MiB). */
package/dist/index.js CHANGED
@@ -174,7 +174,7 @@ import {
174
174
  updateImageSrc,
175
175
  validateFindPattern,
176
176
  writeRichClipboard
177
- } from "./chunk-PQFAHT5O.js";
177
+ } from "./chunk-VKPEPWKZ.js";
178
178
  import {
179
179
  DEFAULT_STYLES,
180
180
  DEFAULT_ZIP_MAX_ENTRIES,
@@ -190,23 +190,30 @@ import {
190
190
  safeCSSValue,
191
191
  zipCrc32
192
192
  } from "./chunk-MR2764X2.js";
193
- import "./chunk-C3NWJE3K.js";
193
+ import "./chunk-XUUD43OV.js";
194
194
  import {
195
195
  ALLOW_NESTED_TABLES_META,
196
+ Chart,
197
+ ChartNodeView,
196
198
  DEFAULT_TABLE_OPTIONS,
197
199
  DEFAULT_TABLE_TOOLBAR,
198
200
  EMPTY_TABLE_STATE,
199
201
  FIND_PARAGRAPH_MARK,
200
202
  MAX_FIND_PATTERN_LENGTH,
203
+ MAX_SPARKLINE_VALUES,
201
204
  MAX_TABLE_COLUMNS,
202
205
  MAX_TABLE_ROWS,
206
+ SPARKLINE_KINDS,
207
+ Sparkline,
203
208
  TABLE_ACTIONS,
204
209
  Table,
205
210
  TableCell,
206
211
  TableHeader,
207
212
  TableRow,
208
213
  applyReplacements,
214
+ chartPluginKey,
209
215
  compileFindPattern,
216
+ createChartNodeView,
210
217
  createSearchBudget,
211
218
  createTableExtensions,
212
219
  createTableNestingPlugin,
@@ -214,14 +221,17 @@ import {
214
221
  expandReplacement,
215
222
  findAllMatches,
216
223
  foldCodePoint,
224
+ getDocumentCharts,
217
225
  getTableActionState,
218
226
  getTableState,
219
227
  handleTablePasteWithoutNesting,
220
228
  insertSliceAfterTable,
229
+ isChartEnabled,
221
230
  isGfmTable,
222
231
  isInTableCell,
223
232
  isSelectionInTable,
224
233
  isTableEnabled,
234
+ normalizeSparklineValues,
225
235
  normalizeTableCellAlignment,
226
236
  normalizeTableCellColor,
227
237
  outermostTableDepth,
@@ -230,9 +240,12 @@ import {
230
240
  searchDocument,
231
241
  shouldShowTableBubbleMenu,
232
242
  sliceContainsTable,
243
+ sparklineLabel,
244
+ staticChartSvg,
233
245
  tableNestingPluginKey,
234
246
  unnestTables
235
- } from "./chunk-TK2XZK6Z.js";
247
+ } from "./chunk-PKBWLEL7.js";
248
+ import "./chunk-LTUM52X6.js";
236
249
  import {
237
250
  compareDocuments,
238
251
  compareHtml,
@@ -468,7 +481,7 @@ import {
468
481
  validateCellInput,
469
482
  validateDefinedName,
470
483
  validateSheetName
471
- } from "./chunk-5VXI5GED.js";
484
+ } from "./chunk-2CJ3LPYQ.js";
472
485
  import {
473
486
  FormulaEvaluator,
474
487
  FormulaLambda,
@@ -493,7 +506,7 @@ import {
493
506
  tokenizeFormula,
494
507
  unregisterFormulaFunction,
495
508
  wildcardToRegExp
496
- } from "./chunk-REAGGLXS.js";
509
+ } from "./chunk-JQ3BB3E6.js";
497
510
  import {
498
511
  FORMULA_ERRORS,
499
512
  MAX_NUMBER_FORMAT_CODE_CHARS,
@@ -516,7 +529,7 @@ import {
516
529
  parseNumberText,
517
530
  serialFromYmd,
518
531
  sortCompareValues
519
- } from "./chunk-ZFBBVGCI.js";
532
+ } from "./chunk-EKYHKQPG.js";
520
533
  import {
521
534
  escapeCsvField,
522
535
  parseCsv,
@@ -2240,6 +2253,8 @@ export {
2240
2253
  CONDITIONAL_FORMAT_STYLE_PRESETS,
2241
2254
  CONDITIONAL_FORMAT_TIME_PERIODS,
2242
2255
  CharacterStyle,
2256
+ Chart,
2257
+ ChartNodeView,
2243
2258
  ColorHighlighter,
2244
2259
  CommentStore,
2245
2260
  Comments,
@@ -2309,6 +2324,7 @@ export {
2309
2324
  MAX_MERGE_OUTPUTS,
2310
2325
  MAX_NUMBER_FORMAT_CODE_CHARS,
2311
2326
  MAX_SHEET_NAME_LENGTH,
2327
+ MAX_SPARKLINE_VALUES,
2312
2328
  MAX_TABLE_COLUMNS,
2313
2329
  MAX_TABLE_ROWS,
2314
2330
  MENTION_REGEX,
@@ -2325,6 +2341,7 @@ export {
2325
2341
  ParagraphStyles,
2326
2342
  RichClipboard,
2327
2343
  SMILIE_REPLACEMENTS,
2344
+ SPARKLINE_KINDS,
2328
2345
  SPREADSHEET_CLIPBOARD_MIME,
2329
2346
  SPREADSHEET_COLUMN_HEADER_HEIGHT,
2330
2347
  SPREADSHEET_DEFAULT_VIEWPORT,
@@ -2337,6 +2354,7 @@ export {
2337
2354
  STYLE_ID_ATTRIBUTE,
2338
2355
  SlashCommands,
2339
2356
  SmilieReplacer,
2357
+ Sparkline,
2340
2358
  SpreadsheetController,
2341
2359
  StyleRegistry,
2342
2360
  TABLE_ACTIONS,
@@ -2379,6 +2397,7 @@ export {
2379
2397
  capitalizeSentenceRules,
2380
2398
  captureSelectionFormat,
2381
2399
  cellFormatForNumberFormat,
2400
+ chartPluginKey,
2382
2401
  checkFormulaArgumentCount,
2383
2402
  clampMenuPosition,
2384
2403
  clearNumberFormatCache,
@@ -2403,6 +2422,7 @@ export {
2403
2422
  conditionalFormatNumber,
2404
2423
  conditionalFormatStyleString,
2405
2424
  copySheetName,
2425
+ createChartNodeView,
2406
2426
  createCommentStore,
2407
2427
  createConditionalFormatRule,
2408
2428
  createDirtyTracker,
@@ -2515,6 +2535,7 @@ export {
2515
2535
  getConditionalFormatIcon,
2516
2536
  getCrossReferenceTargets,
2517
2537
  getDataBarCss,
2538
+ getDocumentCharts,
2518
2539
  getDocumentStructureCommandItems,
2519
2540
  getEditorMarkdown,
2520
2541
  getEditorText,
@@ -2568,6 +2589,7 @@ export {
2568
2589
  insertSliceAfterTable,
2569
2590
  instructionRegex,
2570
2591
  isBlankValue,
2592
+ isChartEnabled,
2571
2593
  isFormulaError,
2572
2594
  isFormulaLambda,
2573
2595
  isGeneralNumberFormat,
@@ -2604,6 +2626,7 @@ export {
2604
2626
  normalizeFieldKey,
2605
2627
  normalizeFieldNames,
2606
2628
  normalizeRange,
2629
+ normalizeSparklineValues,
2607
2630
  normalizeTableCellAlignment,
2608
2631
  normalizeTableCellColor,
2609
2632
  numberFormatColorToCss,
@@ -2701,7 +2724,9 @@ export {
2701
2724
  sortRuleRanges,
2702
2725
  sortRules,
2703
2726
  sortZipEntryNames,
2727
+ sparklineLabel,
2704
2728
  splitMarkdownMentionParts,
2729
+ staticChartSvg,
2705
2730
  stripInvalidXmlChars,
2706
2731
  stripMarkdownCode,
2707
2732
  subtractRange,