@pixerate/editor 0.47.0 → 0.49.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 (91) hide show
  1. package/dist/agent/index.cjs +248 -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 +228 -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 +216 -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 +155 -3480
  14. package/dist/chart/index.js.map +1 -1
  15. package/dist/{chunk-5VXI5GED.js → chunk-2CJ3LPYQ.js} +3 -3
  16. package/dist/{chunk-TXXNBDQX.cjs → chunk-2Q46FKZK.cjs} +113 -34
  17. package/dist/chunk-2Q46FKZK.cjs.map +1 -0
  18. package/dist/chunk-3JNRQVTS.cjs +521 -0
  19. package/dist/chunk-3JNRQVTS.cjs.map +1 -0
  20. package/dist/chunk-5TWIN7ZJ.js +113 -0
  21. package/dist/chunk-5TWIN7ZJ.js.map +1 -0
  22. package/dist/{chunk-PQFAHT5O.js → chunk-DQPBQXKG.js} +27 -94
  23. package/dist/chunk-DQPBQXKG.js.map +1 -0
  24. package/dist/{chunk-ZFBBVGCI.js → chunk-EKYHKQPG.js} +243 -243
  25. package/dist/{chunk-ZFBBVGCI.js.map → chunk-EKYHKQPG.js.map} +1 -1
  26. package/dist/{chunk-J3R2OWOE.cjs → chunk-FEMIVHN3.cjs} +610 -15
  27. package/dist/chunk-FEMIVHN3.cjs.map +1 -0
  28. package/dist/{chunk-C3NWJE3K.js → chunk-GJBIVWB2.js} +11 -672
  29. package/dist/chunk-GJBIVWB2.js.map +1 -0
  30. package/dist/chunk-GTZXF4BI.cjs +3424 -0
  31. package/dist/chunk-GTZXF4BI.cjs.map +1 -0
  32. package/dist/chunk-JOX6MJW4.cjs +674 -0
  33. package/dist/chunk-JOX6MJW4.cjs.map +1 -0
  34. package/dist/{chunk-REAGGLXS.js → chunk-JQ3BB3E6.js} +2 -2
  35. package/dist/{chunk-H4PICYNL.cjs → chunk-LNKZPIQD.cjs} +113 -180
  36. package/dist/chunk-LNKZPIQD.cjs.map +1 -0
  37. package/dist/chunk-OV7UAKIY.js +674 -0
  38. package/dist/chunk-OV7UAKIY.js.map +1 -0
  39. package/dist/{chunk-TK2XZK6Z.js → chunk-QFTVLEVN.js} +596 -1
  40. package/dist/chunk-QFTVLEVN.js.map +1 -0
  41. package/dist/{chunk-KRGXUQ2Y.js → chunk-T6XU4B54.js} +82 -3
  42. package/dist/chunk-T6XU4B54.js.map +1 -0
  43. package/dist/chunk-TGBCBQFV.cjs +113 -0
  44. package/dist/chunk-TGBCBQFV.cjs.map +1 -0
  45. package/dist/{chunk-SQC26VQV.cjs → chunk-UN33YOXW.cjs} +191 -191
  46. package/dist/{chunk-SQC26VQV.cjs.map → chunk-UN33YOXW.cjs.map} +1 -1
  47. package/dist/chunk-WBOAXDKD.js +3424 -0
  48. package/dist/chunk-WBOAXDKD.js.map +1 -0
  49. package/dist/{chunk-LYGEEDNR.cjs → chunk-XP5IUZUO.cjs} +242 -242
  50. package/dist/chunk-XP5IUZUO.cjs.map +1 -0
  51. package/dist/{chunk-BBRK6MOI.cjs → chunk-YU4WQE5M.cjs} +100 -100
  52. package/dist/{chunk-BBRK6MOI.cjs.map → chunk-YU4WQE5M.cjs.map} +1 -1
  53. package/dist/commands/index.d.cts +1 -1
  54. package/dist/commands/index.d.ts +1 -1
  55. package/dist/controller-ChjCCMLl.d.cts +822 -0
  56. package/dist/controller-DtbEo3om.d.ts +822 -0
  57. package/dist/export/index.cjs +4 -2
  58. package/dist/export/index.cjs.map +1 -1
  59. package/dist/export/index.d.cts +5 -1
  60. package/dist/export/index.d.ts +5 -1
  61. package/dist/export/index.js +3 -1
  62. package/dist/extensions/index.cjs +33 -4
  63. package/dist/extensions/index.cjs.map +1 -1
  64. package/dist/extensions/index.d.cts +4 -2
  65. package/dist/extensions/index.d.ts +4 -2
  66. package/dist/extensions/index.js +32 -3
  67. package/dist/{index-QrqMmZ75.d.cts → index-DoHqT1mq.d.cts} +203 -7
  68. package/dist/{index-CSUCQYAH.d.ts → index-YLZ0fKqE.d.ts} +203 -7
  69. package/dist/index.cjs +39 -13
  70. package/dist/index.cjs.map +1 -1
  71. package/dist/index.d.cts +9 -7
  72. package/dist/index.d.ts +9 -7
  73. package/dist/index.js +33 -7
  74. package/dist/index.js.map +1 -1
  75. package/dist/spreadsheet/index.cjs +4 -4
  76. package/dist/spreadsheet/index.js +3 -3
  77. package/package.json +1 -1
  78. package/dist/chunk-C3NWJE3K.js.map +0 -1
  79. package/dist/chunk-H4PICYNL.cjs.map +0 -1
  80. package/dist/chunk-J3R2OWOE.cjs.map +0 -1
  81. package/dist/chunk-KRGXUQ2Y.js.map +0 -1
  82. package/dist/chunk-LYGEEDNR.cjs.map +0 -1
  83. package/dist/chunk-NEOO6QJD.cjs +0 -1182
  84. package/dist/chunk-NEOO6QJD.cjs.map +0 -1
  85. package/dist/chunk-PQFAHT5O.js.map +0 -1
  86. package/dist/chunk-TK2XZK6Z.js.map +0 -1
  87. package/dist/chunk-TXXNBDQX.cjs.map +0 -1
  88. package/dist/types-BVqWm3d1.d.cts +0 -320
  89. package/dist/types-BVqWm3d1.d.ts +0 -320
  90. /package/dist/{chunk-5VXI5GED.js.map → chunk-2CJ3LPYQ.js.map} +0 -0
  91. /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
@@ -14,7 +14,7 @@ import {
14
14
  exportDocxBlob,
15
15
  stripInvalidXmlChars,
16
16
  writeZip
17
- } from "./chunk-KRGXUQ2Y.js";
17
+ } from "./chunk-T6XU4B54.js";
18
18
  import "./chunk-HLIMTC6N.js";
19
19
  import {
20
20
  FIELD_ALIASES,
@@ -174,7 +174,7 @@ import {
174
174
  updateImageSrc,
175
175
  validateFindPattern,
176
176
  writeRichClipboard
177
- } from "./chunk-PQFAHT5O.js";
177
+ } from "./chunk-DQPBQXKG.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-GJBIVWB2.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,13 @@ 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-QFTVLEVN.js";
248
+ import "./chunk-WBOAXDKD.js";
249
+ import "./chunk-OV7UAKIY.js";
236
250
  import {
237
251
  compareDocuments,
238
252
  compareHtml,
@@ -468,7 +482,7 @@ import {
468
482
  validateCellInput,
469
483
  validateDefinedName,
470
484
  validateSheetName
471
- } from "./chunk-5VXI5GED.js";
485
+ } from "./chunk-2CJ3LPYQ.js";
472
486
  import {
473
487
  FormulaEvaluator,
474
488
  FormulaLambda,
@@ -493,7 +507,7 @@ import {
493
507
  tokenizeFormula,
494
508
  unregisterFormulaFunction,
495
509
  wildcardToRegExp
496
- } from "./chunk-REAGGLXS.js";
510
+ } from "./chunk-JQ3BB3E6.js";
497
511
  import {
498
512
  FORMULA_ERRORS,
499
513
  MAX_NUMBER_FORMAT_CODE_CHARS,
@@ -516,7 +530,7 @@ import {
516
530
  parseNumberText,
517
531
  serialFromYmd,
518
532
  sortCompareValues
519
- } from "./chunk-ZFBBVGCI.js";
533
+ } from "./chunk-EKYHKQPG.js";
520
534
  import {
521
535
  escapeCsvField,
522
536
  parseCsv,
@@ -2240,6 +2254,8 @@ export {
2240
2254
  CONDITIONAL_FORMAT_STYLE_PRESETS,
2241
2255
  CONDITIONAL_FORMAT_TIME_PERIODS,
2242
2256
  CharacterStyle,
2257
+ Chart,
2258
+ ChartNodeView,
2243
2259
  ColorHighlighter,
2244
2260
  CommentStore,
2245
2261
  Comments,
@@ -2309,6 +2325,7 @@ export {
2309
2325
  MAX_MERGE_OUTPUTS,
2310
2326
  MAX_NUMBER_FORMAT_CODE_CHARS,
2311
2327
  MAX_SHEET_NAME_LENGTH,
2328
+ MAX_SPARKLINE_VALUES,
2312
2329
  MAX_TABLE_COLUMNS,
2313
2330
  MAX_TABLE_ROWS,
2314
2331
  MENTION_REGEX,
@@ -2325,6 +2342,7 @@ export {
2325
2342
  ParagraphStyles,
2326
2343
  RichClipboard,
2327
2344
  SMILIE_REPLACEMENTS,
2345
+ SPARKLINE_KINDS,
2328
2346
  SPREADSHEET_CLIPBOARD_MIME,
2329
2347
  SPREADSHEET_COLUMN_HEADER_HEIGHT,
2330
2348
  SPREADSHEET_DEFAULT_VIEWPORT,
@@ -2337,6 +2355,7 @@ export {
2337
2355
  STYLE_ID_ATTRIBUTE,
2338
2356
  SlashCommands,
2339
2357
  SmilieReplacer,
2358
+ Sparkline,
2340
2359
  SpreadsheetController,
2341
2360
  StyleRegistry,
2342
2361
  TABLE_ACTIONS,
@@ -2379,6 +2398,7 @@ export {
2379
2398
  capitalizeSentenceRules,
2380
2399
  captureSelectionFormat,
2381
2400
  cellFormatForNumberFormat,
2401
+ chartPluginKey,
2382
2402
  checkFormulaArgumentCount,
2383
2403
  clampMenuPosition,
2384
2404
  clearNumberFormatCache,
@@ -2403,6 +2423,7 @@ export {
2403
2423
  conditionalFormatNumber,
2404
2424
  conditionalFormatStyleString,
2405
2425
  copySheetName,
2426
+ createChartNodeView,
2406
2427
  createCommentStore,
2407
2428
  createConditionalFormatRule,
2408
2429
  createDirtyTracker,
@@ -2515,6 +2536,7 @@ export {
2515
2536
  getConditionalFormatIcon,
2516
2537
  getCrossReferenceTargets,
2517
2538
  getDataBarCss,
2539
+ getDocumentCharts,
2518
2540
  getDocumentStructureCommandItems,
2519
2541
  getEditorMarkdown,
2520
2542
  getEditorText,
@@ -2568,6 +2590,7 @@ export {
2568
2590
  insertSliceAfterTable,
2569
2591
  instructionRegex,
2570
2592
  isBlankValue,
2593
+ isChartEnabled,
2571
2594
  isFormulaError,
2572
2595
  isFormulaLambda,
2573
2596
  isGeneralNumberFormat,
@@ -2604,6 +2627,7 @@ export {
2604
2627
  normalizeFieldKey,
2605
2628
  normalizeFieldNames,
2606
2629
  normalizeRange,
2630
+ normalizeSparklineValues,
2607
2631
  normalizeTableCellAlignment,
2608
2632
  normalizeTableCellColor,
2609
2633
  numberFormatColorToCss,
@@ -2701,7 +2725,9 @@ export {
2701
2725
  sortRuleRanges,
2702
2726
  sortRules,
2703
2727
  sortZipEntryNames,
2728
+ sparklineLabel,
2704
2729
  splitMarkdownMentionParts,
2730
+ staticChartSvg,
2705
2731
  stripInvalidXmlChars,
2706
2732
  stripMarkdownCode,
2707
2733
  subtractRange,