@pixerate/editor 0.44.0 → 0.46.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 (88) hide show
  1. package/README.md +29 -3
  2. package/dist/agent/index.cjs +548 -45
  3. package/dist/agent/index.cjs.map +1 -1
  4. package/dist/agent/index.d.cts +47 -17
  5. package/dist/agent/index.d.ts +47 -17
  6. package/dist/agent/index.js +536 -33
  7. package/dist/agent/index.js.map +1 -1
  8. package/dist/{builtins-BLud97fC.d.cts → builtins-CZW-aYKS.d.cts} +1 -1
  9. package/dist/{builtins-D0BDyAgw.d.ts → builtins-DghNQbT-.d.ts} +1 -1
  10. package/dist/chart/index.cjs +1984 -0
  11. package/dist/chart/index.cjs.map +1 -0
  12. package/dist/chart/index.d.cts +646 -0
  13. package/dist/chart/index.d.ts +646 -0
  14. package/dist/chart/index.js +1984 -0
  15. package/dist/chart/index.js.map +1 -0
  16. package/dist/{chunk-I6BZB5ZH.cjs → chunk-EFDCLENW.cjs} +73 -6
  17. package/dist/chunk-EFDCLENW.cjs.map +1 -0
  18. package/dist/chunk-HHQ4XJWT.js +826 -0
  19. package/dist/chunk-HHQ4XJWT.js.map +1 -0
  20. package/dist/chunk-J3R2OWOE.cjs +1465 -0
  21. package/dist/chunk-J3R2OWOE.cjs.map +1 -0
  22. package/dist/chunk-K2LVZ4FA.cjs +826 -0
  23. package/dist/chunk-K2LVZ4FA.cjs.map +1 -0
  24. package/dist/{chunk-6MDQKHRH.cjs → chunk-N4MLNJPO.cjs} +21 -899
  25. package/dist/chunk-N4MLNJPO.cjs.map +1 -0
  26. package/dist/chunk-PQM5W7ZN.js +168 -0
  27. package/dist/chunk-PQM5W7ZN.js.map +1 -0
  28. package/dist/{chunk-DDADOHJW.js → chunk-Q25ZS4F7.js} +5 -883
  29. package/dist/chunk-Q25ZS4F7.js.map +1 -0
  30. package/dist/chunk-TK2XZK6Z.js +1465 -0
  31. package/dist/chunk-TK2XZK6Z.js.map +1 -0
  32. package/dist/commands/index.cjs +3 -2
  33. package/dist/commands/index.cjs.map +1 -1
  34. package/dist/commands/index.d.cts +5 -5
  35. package/dist/commands/index.d.ts +5 -5
  36. package/dist/commands/index.js +2 -1
  37. package/dist/commands/index.js.map +1 -1
  38. package/dist/extensions/index.cjs +4 -4
  39. package/dist/extensions/index.cjs.map +1 -1
  40. package/dist/extensions/index.d.cts +3 -3
  41. package/dist/extensions/index.d.ts +3 -3
  42. package/dist/extensions/index.js +12 -12
  43. package/dist/generation/index.cjs +2 -2
  44. package/dist/generation/index.d.cts +4 -4
  45. package/dist/generation/index.d.ts +4 -4
  46. package/dist/generation/index.js +1 -1
  47. package/dist/image-editor/index.cjs +24 -24
  48. package/dist/image-editor/index.cjs.map +1 -1
  49. package/dist/image-editor/index.d.cts +2 -2
  50. package/dist/image-editor/index.d.ts +2 -2
  51. package/dist/image-editor/index.js +24 -24
  52. package/dist/image-editor/index.js.map +1 -1
  53. package/dist/{index-C6gaQRH0.d.cts → index-CfOQf70b.d.cts} +1 -1
  54. package/dist/{index-DXAv_R08.d.ts → index-jwJ_onWf.d.ts} +1 -1
  55. package/dist/index.cjs +9 -9
  56. package/dist/index.cjs.map +1 -1
  57. package/dist/index.d.cts +4 -4
  58. package/dist/index.d.ts +4 -4
  59. package/dist/index.js +12 -12
  60. package/dist/parameters/index.d.cts +2 -2
  61. package/dist/parameters/index.d.ts +2 -2
  62. package/dist/{registry-DnzpgY27.d.cts → registry-B4l-lYts.d.cts} +1 -1
  63. package/dist/{registry-DhVUZioj.d.ts → registry-BfVD-vVg.d.ts} +1 -1
  64. package/dist/{registry-BDe-vlv3.d.ts → registry-CSlH4iUn.d.ts} +1 -1
  65. package/dist/{registry-D0GADKc7.d.cts → registry-vz6HOiiy.d.cts} +1 -1
  66. package/dist/{schema-DYDGdYL9.d.cts → schema-Di0CS6Pe.d.cts} +26 -2
  67. package/dist/{schema-DYDGdYL9.d.ts → schema-Di0CS6Pe.d.ts} +26 -2
  68. package/dist/tools/index.cjs +37 -3
  69. package/dist/tools/index.cjs.map +1 -1
  70. package/dist/tools/index.d.cts +871 -11
  71. package/dist/tools/index.d.ts +871 -11
  72. package/dist/tools/index.js +36 -2
  73. package/dist/vector/index.d.cts +2 -2
  74. package/dist/vector/index.d.ts +2 -2
  75. package/package.json +6 -1
  76. package/dist/chunk-36BLROHV.js +0 -438
  77. package/dist/chunk-36BLROHV.js.map +0 -1
  78. package/dist/chunk-5H2OPMXZ.js +0 -586
  79. package/dist/chunk-5H2OPMXZ.js.map +0 -1
  80. package/dist/chunk-6MDQKHRH.cjs.map +0 -1
  81. package/dist/chunk-D6S5M7HV.js +0 -101
  82. package/dist/chunk-D6S5M7HV.js.map +0 -1
  83. package/dist/chunk-DDADOHJW.js.map +0 -1
  84. package/dist/chunk-I6BZB5ZH.cjs.map +0 -1
  85. package/dist/chunk-MC2LQN5S.cjs +0 -586
  86. package/dist/chunk-MC2LQN5S.cjs.map +0 -1
  87. package/dist/chunk-V7CC7RZ6.cjs +0 -438
  88. package/dist/chunk-V7CC7RZ6.cjs.map +0 -1
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-C6gaQRH0.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 InsertFootnoteOptions, ap as InsertTableOfContentsOptions, aq as LoadingNode, ar as MAX_FIND_PATTERN_LENGTH, as as MAX_TABLE_COLUMNS, at as MAX_TABLE_ROWS, au as Markdown, av as OpenFindReplaceParams, aw as Outline, ax as OutlineHeading, ay as OutlineOptions, az as OutlineSnapshot, aA as OutlineStorage, aB as OutlineStore, aC as OutlineTreeItem, aD as ParagraphStyles, aE as ParagraphStylesOptions, aF as ParagraphStylesSnapshot, aG as ParagraphStylesStorage, aH as ParagraphStylesStore, aI as PatternMatch, aJ as PdfLayoutBlock, aK as PdfLayoutPage, aL as PdfLayoutResult, aM as PdfTableCell, aN as ReplacePiece, aO as RichClipboard, aP as RichClipboardOptions, aQ as RichClipboardStorage, aR as RichTextPresetCommandPackages, aS as RichTextPresetOptions, aT as RichTextTableOptions, aU as RunTableActionOptions, aV as SMILIE_REPLACEMENTS, aW as STYLE_ID_ATTRIBUTE, aX as SearchBudget, aY as SearchBudgetOptions, aZ as SetBookmarkOptions, a_ as SetSearchParams, a$ as SlashCommandMatchData, b0 as SlashCommands, b1 as SlashCommandsOptions, b2 as SmilieReplacer, b3 as TABLE_ACTIONS, b4 as Table, b5 as TableAction, b6 as TableActionInfo, b7 as TableActionParams, b8 as TableActionStatus, b9 as TableCell, ba as TableCellAlignment, bb as TableCommandOptions, bc as TableHeader, bd as TableOfContents, be as TableOfContentsEntry, bf as TableOfContentsOptions, bg as TableRow, bh as TableState, bi as TableStore, bj as TableToolbarItem, bk as TemplateSuggestions, bl as TemplateSuggestionsOptions, bm as analyzePdfLayout, bn as applyDocumentComparison, bo as applyReplacements, bp as autocorrectPluginKey, bq as buildOutlineTree, br as capitalizeSentenceRules, bs as captureSelectionFormat, bt as commentsPluginKey, bu as compareInEditor, bv as compileFindPattern, bw as computeOutline, bx as createFindReplaceCommands, by as createImportAdapterRegistry, bz as createOutlineStore, bA as createParagraphStylesStore, bB as createRichTextPreset, bC as createSearchBudget, bD as createTableCommands, bE as createTableExtensions, bF as createTableNestingPlugin, bG as createTableStore, bH as crossReferencePluginKey, bI as defaultAutocorrectRules, bJ as defaultImportRegistry, bK as documentStructureCommandItems, bL as expandReplacement, bM as fileImportPluginKey, bN as findAllMatches, bO as findAutocorrection, bP as findCommentRanges, bQ as findHexColors, bR as findImportAdapter, bS as findReplacePluginKey, bT as foldCodePoint, bU as footnotesMarkdownIt, bV as footnotesPluginKey, bW as formatFindStatus, bX as fractionRules, bY as getActiveHeading, bZ as getBookmarks, b_ as getCommentAnchors, b$ as getCommentAuthor, c0 as getCommentIdsAt, c1 as getCommentStore, c2 as getCrossReferenceTargets, c3 as getDocumentStructureCommandItems, c4 as getFindReplaceState, c5 as getFindReplaceStore, c6 as getFootnotes, c7 as getImportAccept, c8 as getOutline, c9 as getParagraphStyleAt, ca as getStyleRegistry, cb as getTableActionState, cc as getTableOfContentsEntries, cd as getTableState, ce as handleImageInsertion, cf as handleTablePasteWithoutNesting, cg as htmlImportAdapter, ch as imagePastePluginKey, ci as importFile, cj as insertImageNode, ck as insertSliceAfterTable, cl as isGfmTable, cm as isInTableCell, cn as isInsidePromptToken, co as isParagraphStyleAvailable, cp as isSelectionInTable, cq as isTableEnabled, cr as markdownImportAdapter, cs as navigateToHeading, ct as normalizeTableCellAlignment, cu as normalizeTableCellColor, cv as outermostTableDepth, cw as outlinePluginKey, cx as paragraphStylesPluginKey, cy as parseReplacement, cz as pdfLayoutBlocksToHtml, cA as plainTextImportAdapter, cB as registerImportAdapter, cC as removeImageNode, cD as richClipboardPluginKey, cE as rtfImportAdapter, cF as runTableAction, cG as searchDocument, cH as shouldShowTableBubbleMenu, cI as sliceContainsTable, cJ as smartQuoteRules, cK as smilieAutocorrectRules, cL as symbolRules, cM as syncFootnotes, cN as tableNestingPluginKey, cO as tableOfContentsMarkdownIt, cP as tableOfContentsPluginKey, cQ as twoInitialCapitalsRules, cR as unnestTables, cS as unregisterImportAdapter, cT as updateImageSrc, cU as validateFindPattern, cV as writeRichClipboard } from './index-C6gaQRH0.cjs';
5
+ import { D as DocumentImport, a as DocumentImportAdapter, P as PdfStructureReport, b as PdfLayoutOptions, c as PdfRuleLine, d as PdfTextRun } from './index-CfOQf70b.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 InsertFootnoteOptions, ap as InsertTableOfContentsOptions, aq as LoadingNode, ar as MAX_FIND_PATTERN_LENGTH, as as MAX_TABLE_COLUMNS, at as MAX_TABLE_ROWS, au as Markdown, av as OpenFindReplaceParams, aw as Outline, ax as OutlineHeading, ay as OutlineOptions, az as OutlineSnapshot, aA as OutlineStorage, aB as OutlineStore, aC as OutlineTreeItem, aD as ParagraphStyles, aE as ParagraphStylesOptions, aF as ParagraphStylesSnapshot, aG as ParagraphStylesStorage, aH as ParagraphStylesStore, aI as PatternMatch, aJ as PdfLayoutBlock, aK as PdfLayoutPage, aL as PdfLayoutResult, aM as PdfTableCell, aN as ReplacePiece, aO as RichClipboard, aP as RichClipboardOptions, aQ as RichClipboardStorage, aR as RichTextPresetCommandPackages, aS as RichTextPresetOptions, aT as RichTextTableOptions, aU as RunTableActionOptions, aV as SMILIE_REPLACEMENTS, aW as STYLE_ID_ATTRIBUTE, aX as SearchBudget, aY as SearchBudgetOptions, aZ as SetBookmarkOptions, a_ as SetSearchParams, a$ as SlashCommandMatchData, b0 as SlashCommands, b1 as SlashCommandsOptions, b2 as SmilieReplacer, b3 as TABLE_ACTIONS, b4 as Table, b5 as TableAction, b6 as TableActionInfo, b7 as TableActionParams, b8 as TableActionStatus, b9 as TableCell, ba as TableCellAlignment, bb as TableCommandOptions, bc as TableHeader, bd as TableOfContents, be as TableOfContentsEntry, bf as TableOfContentsOptions, bg as TableRow, bh as TableState, bi as TableStore, bj as TableToolbarItem, bk as TemplateSuggestions, bl as TemplateSuggestionsOptions, bm as analyzePdfLayout, bn as applyDocumentComparison, bo as applyReplacements, bp as autocorrectPluginKey, bq as buildOutlineTree, br as capitalizeSentenceRules, bs as captureSelectionFormat, bt as commentsPluginKey, bu as compareInEditor, bv as compileFindPattern, bw as computeOutline, bx as createFindReplaceCommands, by as createImportAdapterRegistry, bz as createOutlineStore, bA as createParagraphStylesStore, bB as createRichTextPreset, bC as createSearchBudget, bD as createTableCommands, bE as createTableExtensions, bF as createTableNestingPlugin, bG as createTableStore, bH as crossReferencePluginKey, bI as defaultAutocorrectRules, bJ as defaultImportRegistry, bK as documentStructureCommandItems, bL as expandReplacement, bM as fileImportPluginKey, bN as findAllMatches, bO as findAutocorrection, bP as findCommentRanges, bQ as findHexColors, bR as findImportAdapter, bS as findReplacePluginKey, bT as foldCodePoint, bU as footnotesMarkdownIt, bV as footnotesPluginKey, bW as formatFindStatus, bX as fractionRules, bY as getActiveHeading, bZ as getBookmarks, b_ as getCommentAnchors, b$ as getCommentAuthor, c0 as getCommentIdsAt, c1 as getCommentStore, c2 as getCrossReferenceTargets, c3 as getDocumentStructureCommandItems, c4 as getFindReplaceState, c5 as getFindReplaceStore, c6 as getFootnotes, c7 as getImportAccept, c8 as getOutline, c9 as getParagraphStyleAt, ca as getStyleRegistry, cb as getTableActionState, cc as getTableOfContentsEntries, cd as getTableState, ce as handleImageInsertion, cf as handleTablePasteWithoutNesting, cg as htmlImportAdapter, ch as imagePastePluginKey, ci as importFile, cj as insertImageNode, ck as insertSliceAfterTable, cl as isGfmTable, cm as isInTableCell, cn as isInsidePromptToken, co as isParagraphStyleAvailable, cp as isSelectionInTable, cq as isTableEnabled, cr as markdownImportAdapter, cs as navigateToHeading, ct as normalizeTableCellAlignment, cu as normalizeTableCellColor, cv as outermostTableDepth, cw as outlinePluginKey, cx as paragraphStylesPluginKey, cy as parseReplacement, cz as pdfLayoutBlocksToHtml, cA as plainTextImportAdapter, cB as registerImportAdapter, cC as removeImageNode, cD as richClipboardPluginKey, cE as rtfImportAdapter, cF as runTableAction, cG as searchDocument, cH as shouldShowTableBubbleMenu, cI as sliceContainsTable, cJ as smartQuoteRules, cK as smilieAutocorrectRules, cL as symbolRules, cM as syncFootnotes, cN as tableNestingPluginKey, cO as tableOfContentsMarkdownIt, cP as tableOfContentsPluginKey, cQ as twoInitialCapitalsRules, cR as unnestTables, cS as unregisterImportAdapter, cT as updateImageSrc, cU as validateFindPattern, cV as writeRichClipboard } from './index-CfOQf70b.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,8 +38,8 @@ import '@tiptap/extension-image';
38
38
  import '@tiptap/extension-highlight';
39
39
  import '@tiptap/extension-color';
40
40
  import '@tiptap/starter-kit';
41
- import './registry-D0GADKc7.cjs';
42
- import './schema-DYDGdYL9.cjs';
41
+ import './registry-vz6HOiiy.cjs';
42
+ import './schema-Di0CS6Pe.cjs';
43
43
  import '@tiptap/extension-mention';
44
44
  import '@tiptap/suggestion';
45
45
 
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-DXAv_R08.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 InsertFootnoteOptions, ap as InsertTableOfContentsOptions, aq as LoadingNode, ar as MAX_FIND_PATTERN_LENGTH, as as MAX_TABLE_COLUMNS, at as MAX_TABLE_ROWS, au as Markdown, av as OpenFindReplaceParams, aw as Outline, ax as OutlineHeading, ay as OutlineOptions, az as OutlineSnapshot, aA as OutlineStorage, aB as OutlineStore, aC as OutlineTreeItem, aD as ParagraphStyles, aE as ParagraphStylesOptions, aF as ParagraphStylesSnapshot, aG as ParagraphStylesStorage, aH as ParagraphStylesStore, aI as PatternMatch, aJ as PdfLayoutBlock, aK as PdfLayoutPage, aL as PdfLayoutResult, aM as PdfTableCell, aN as ReplacePiece, aO as RichClipboard, aP as RichClipboardOptions, aQ as RichClipboardStorage, aR as RichTextPresetCommandPackages, aS as RichTextPresetOptions, aT as RichTextTableOptions, aU as RunTableActionOptions, aV as SMILIE_REPLACEMENTS, aW as STYLE_ID_ATTRIBUTE, aX as SearchBudget, aY as SearchBudgetOptions, aZ as SetBookmarkOptions, a_ as SetSearchParams, a$ as SlashCommandMatchData, b0 as SlashCommands, b1 as SlashCommandsOptions, b2 as SmilieReplacer, b3 as TABLE_ACTIONS, b4 as Table, b5 as TableAction, b6 as TableActionInfo, b7 as TableActionParams, b8 as TableActionStatus, b9 as TableCell, ba as TableCellAlignment, bb as TableCommandOptions, bc as TableHeader, bd as TableOfContents, be as TableOfContentsEntry, bf as TableOfContentsOptions, bg as TableRow, bh as TableState, bi as TableStore, bj as TableToolbarItem, bk as TemplateSuggestions, bl as TemplateSuggestionsOptions, bm as analyzePdfLayout, bn as applyDocumentComparison, bo as applyReplacements, bp as autocorrectPluginKey, bq as buildOutlineTree, br as capitalizeSentenceRules, bs as captureSelectionFormat, bt as commentsPluginKey, bu as compareInEditor, bv as compileFindPattern, bw as computeOutline, bx as createFindReplaceCommands, by as createImportAdapterRegistry, bz as createOutlineStore, bA as createParagraphStylesStore, bB as createRichTextPreset, bC as createSearchBudget, bD as createTableCommands, bE as createTableExtensions, bF as createTableNestingPlugin, bG as createTableStore, bH as crossReferencePluginKey, bI as defaultAutocorrectRules, bJ as defaultImportRegistry, bK as documentStructureCommandItems, bL as expandReplacement, bM as fileImportPluginKey, bN as findAllMatches, bO as findAutocorrection, bP as findCommentRanges, bQ as findHexColors, bR as findImportAdapter, bS as findReplacePluginKey, bT as foldCodePoint, bU as footnotesMarkdownIt, bV as footnotesPluginKey, bW as formatFindStatus, bX as fractionRules, bY as getActiveHeading, bZ as getBookmarks, b_ as getCommentAnchors, b$ as getCommentAuthor, c0 as getCommentIdsAt, c1 as getCommentStore, c2 as getCrossReferenceTargets, c3 as getDocumentStructureCommandItems, c4 as getFindReplaceState, c5 as getFindReplaceStore, c6 as getFootnotes, c7 as getImportAccept, c8 as getOutline, c9 as getParagraphStyleAt, ca as getStyleRegistry, cb as getTableActionState, cc as getTableOfContentsEntries, cd as getTableState, ce as handleImageInsertion, cf as handleTablePasteWithoutNesting, cg as htmlImportAdapter, ch as imagePastePluginKey, ci as importFile, cj as insertImageNode, ck as insertSliceAfterTable, cl as isGfmTable, cm as isInTableCell, cn as isInsidePromptToken, co as isParagraphStyleAvailable, cp as isSelectionInTable, cq as isTableEnabled, cr as markdownImportAdapter, cs as navigateToHeading, ct as normalizeTableCellAlignment, cu as normalizeTableCellColor, cv as outermostTableDepth, cw as outlinePluginKey, cx as paragraphStylesPluginKey, cy as parseReplacement, cz as pdfLayoutBlocksToHtml, cA as plainTextImportAdapter, cB as registerImportAdapter, cC as removeImageNode, cD as richClipboardPluginKey, cE as rtfImportAdapter, cF as runTableAction, cG as searchDocument, cH as shouldShowTableBubbleMenu, cI as sliceContainsTable, cJ as smartQuoteRules, cK as smilieAutocorrectRules, cL as symbolRules, cM as syncFootnotes, cN as tableNestingPluginKey, cO as tableOfContentsMarkdownIt, cP as tableOfContentsPluginKey, cQ as twoInitialCapitalsRules, cR as unnestTables, cS as unregisterImportAdapter, cT as updateImageSrc, cU as validateFindPattern, cV as writeRichClipboard } from './index-DXAv_R08.js';
5
+ import { D as DocumentImport, a as DocumentImportAdapter, P as PdfStructureReport, b as PdfLayoutOptions, c as PdfRuleLine, d as PdfTextRun } from './index-jwJ_onWf.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 InsertFootnoteOptions, ap as InsertTableOfContentsOptions, aq as LoadingNode, ar as MAX_FIND_PATTERN_LENGTH, as as MAX_TABLE_COLUMNS, at as MAX_TABLE_ROWS, au as Markdown, av as OpenFindReplaceParams, aw as Outline, ax as OutlineHeading, ay as OutlineOptions, az as OutlineSnapshot, aA as OutlineStorage, aB as OutlineStore, aC as OutlineTreeItem, aD as ParagraphStyles, aE as ParagraphStylesOptions, aF as ParagraphStylesSnapshot, aG as ParagraphStylesStorage, aH as ParagraphStylesStore, aI as PatternMatch, aJ as PdfLayoutBlock, aK as PdfLayoutPage, aL as PdfLayoutResult, aM as PdfTableCell, aN as ReplacePiece, aO as RichClipboard, aP as RichClipboardOptions, aQ as RichClipboardStorage, aR as RichTextPresetCommandPackages, aS as RichTextPresetOptions, aT as RichTextTableOptions, aU as RunTableActionOptions, aV as SMILIE_REPLACEMENTS, aW as STYLE_ID_ATTRIBUTE, aX as SearchBudget, aY as SearchBudgetOptions, aZ as SetBookmarkOptions, a_ as SetSearchParams, a$ as SlashCommandMatchData, b0 as SlashCommands, b1 as SlashCommandsOptions, b2 as SmilieReplacer, b3 as TABLE_ACTIONS, b4 as Table, b5 as TableAction, b6 as TableActionInfo, b7 as TableActionParams, b8 as TableActionStatus, b9 as TableCell, ba as TableCellAlignment, bb as TableCommandOptions, bc as TableHeader, bd as TableOfContents, be as TableOfContentsEntry, bf as TableOfContentsOptions, bg as TableRow, bh as TableState, bi as TableStore, bj as TableToolbarItem, bk as TemplateSuggestions, bl as TemplateSuggestionsOptions, bm as analyzePdfLayout, bn as applyDocumentComparison, bo as applyReplacements, bp as autocorrectPluginKey, bq as buildOutlineTree, br as capitalizeSentenceRules, bs as captureSelectionFormat, bt as commentsPluginKey, bu as compareInEditor, bv as compileFindPattern, bw as computeOutline, bx as createFindReplaceCommands, by as createImportAdapterRegistry, bz as createOutlineStore, bA as createParagraphStylesStore, bB as createRichTextPreset, bC as createSearchBudget, bD as createTableCommands, bE as createTableExtensions, bF as createTableNestingPlugin, bG as createTableStore, bH as crossReferencePluginKey, bI as defaultAutocorrectRules, bJ as defaultImportRegistry, bK as documentStructureCommandItems, bL as expandReplacement, bM as fileImportPluginKey, bN as findAllMatches, bO as findAutocorrection, bP as findCommentRanges, bQ as findHexColors, bR as findImportAdapter, bS as findReplacePluginKey, bT as foldCodePoint, bU as footnotesMarkdownIt, bV as footnotesPluginKey, bW as formatFindStatus, bX as fractionRules, bY as getActiveHeading, bZ as getBookmarks, b_ as getCommentAnchors, b$ as getCommentAuthor, c0 as getCommentIdsAt, c1 as getCommentStore, c2 as getCrossReferenceTargets, c3 as getDocumentStructureCommandItems, c4 as getFindReplaceState, c5 as getFindReplaceStore, c6 as getFootnotes, c7 as getImportAccept, c8 as getOutline, c9 as getParagraphStyleAt, ca as getStyleRegistry, cb as getTableActionState, cc as getTableOfContentsEntries, cd as getTableState, ce as handleImageInsertion, cf as handleTablePasteWithoutNesting, cg as htmlImportAdapter, ch as imagePastePluginKey, ci as importFile, cj as insertImageNode, ck as insertSliceAfterTable, cl as isGfmTable, cm as isInTableCell, cn as isInsidePromptToken, co as isParagraphStyleAvailable, cp as isSelectionInTable, cq as isTableEnabled, cr as markdownImportAdapter, cs as navigateToHeading, ct as normalizeTableCellAlignment, cu as normalizeTableCellColor, cv as outermostTableDepth, cw as outlinePluginKey, cx as paragraphStylesPluginKey, cy as parseReplacement, cz as pdfLayoutBlocksToHtml, cA as plainTextImportAdapter, cB as registerImportAdapter, cC as removeImageNode, cD as richClipboardPluginKey, cE as rtfImportAdapter, cF as runTableAction, cG as searchDocument, cH as shouldShowTableBubbleMenu, cI as sliceContainsTable, cJ as smartQuoteRules, cK as smilieAutocorrectRules, cL as symbolRules, cM as syncFootnotes, cN as tableNestingPluginKey, cO as tableOfContentsMarkdownIt, cP as tableOfContentsPluginKey, cQ as twoInitialCapitalsRules, cR as unnestTables, cS as unregisterImportAdapter, cT as updateImageSrc, cU as validateFindPattern, cV as writeRichClipboard } from './index-jwJ_onWf.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,8 +38,8 @@ import '@tiptap/extension-image';
38
38
  import '@tiptap/extension-highlight';
39
39
  import '@tiptap/extension-color';
40
40
  import '@tiptap/starter-kit';
41
- import './registry-DhVUZioj.js';
42
- import './schema-DYDGdYL9.js';
41
+ import './registry-BfVD-vVg.js';
42
+ import './schema-Di0CS6Pe.js';
43
43
  import '@tiptap/extension-mention';
44
44
  import '@tiptap/suggestion';
45
45
 
package/dist/index.js CHANGED
@@ -69,7 +69,6 @@ import {
69
69
  DocumentCompare,
70
70
  EMPTY_FIND_REPLACE_SNAPSHOT,
71
71
  FIND_OPTION_TOGGLES,
72
- FIND_PARAGRAPH_MARK,
73
72
  FileImport,
74
73
  FindReplace,
75
74
  FindReplaceStore,
@@ -82,7 +81,6 @@ import {
82
81
  ImportAdapterRegistry,
83
82
  ImportError,
84
83
  LoadingNode,
85
- MAX_FIND_PATTERN_LENGTH,
86
84
  Markdown,
87
85
  Mention,
88
86
  Outline,
@@ -96,14 +94,12 @@ import {
96
94
  TemplateSuggestions,
97
95
  applyDocumentComparison,
98
96
  applyImportedReviewData,
99
- applyReplacements,
100
97
  autocorrectPluginKey,
101
98
  buildOutlineTree,
102
99
  capitalizeSentenceRules,
103
100
  captureSelectionFormat,
104
101
  commentsPluginKey,
105
102
  compareInEditor,
106
- compileFindPattern,
107
103
  computeOutline,
108
104
  createDocxImportAdapter,
109
105
  createFindReplaceCommands,
@@ -113,7 +109,6 @@ import {
113
109
  createOutlineStore,
114
110
  createParagraphStylesStore,
115
111
  createRichTextPreset,
116
- createSearchBudget,
117
112
  createTableCommands,
118
113
  crossReferencePluginKey,
119
114
  defaultAutocorrectRules,
@@ -121,15 +116,12 @@ import {
121
116
  documentStructureCommandItems,
122
117
  docxImportAdapter,
123
118
  docxToDocumentImport,
124
- expandReplacement,
125
119
  fileImportPluginKey,
126
- findAllMatches,
127
120
  findAutocorrection,
128
121
  findCommentRanges,
129
122
  findHexColors,
130
123
  findImportAdapter,
131
124
  findReplacePluginKey,
132
- foldCodePoint,
133
125
  footnotesMarkdownIt,
134
126
  footnotesPluginKey,
135
127
  formatFindStatus,
@@ -165,13 +157,11 @@ import {
165
157
  navigateToHeading,
166
158
  outlinePluginKey,
167
159
  paragraphStylesPluginKey,
168
- parseReplacement,
169
160
  plainTextImportAdapter,
170
161
  registerImportAdapter,
171
162
  removeImageNode,
172
163
  richClipboardPluginKey,
173
164
  rtfImportAdapter,
174
- searchDocument,
175
165
  setMentionRoleAt,
176
166
  smartQuoteRules,
177
167
  smilieAutocorrectRules,
@@ -184,7 +174,7 @@ import {
184
174
  updateImageSrc,
185
175
  validateFindPattern,
186
176
  writeRichClipboard
187
- } from "./chunk-DDADOHJW.js";
177
+ } from "./chunk-Q25ZS4F7.js";
188
178
  import {
189
179
  DEFAULT_STYLES,
190
180
  DEFAULT_ZIP_MAX_ENTRIES,
@@ -205,6 +195,8 @@ import {
205
195
  DEFAULT_TABLE_OPTIONS,
206
196
  DEFAULT_TABLE_TOOLBAR,
207
197
  EMPTY_TABLE_STATE,
198
+ FIND_PARAGRAPH_MARK,
199
+ MAX_FIND_PATTERN_LENGTH,
208
200
  MAX_TABLE_COLUMNS,
209
201
  MAX_TABLE_ROWS,
210
202
  TABLE_ACTIONS,
@@ -212,9 +204,15 @@ import {
212
204
  TableCell,
213
205
  TableHeader,
214
206
  TableRow,
207
+ applyReplacements,
208
+ compileFindPattern,
209
+ createSearchBudget,
215
210
  createTableExtensions,
216
211
  createTableNestingPlugin,
217
212
  createTableStore,
213
+ expandReplacement,
214
+ findAllMatches,
215
+ foldCodePoint,
218
216
  getTableActionState,
219
217
  getTableState,
220
218
  handleTablePasteWithoutNesting,
@@ -226,12 +224,14 @@ import {
226
224
  normalizeTableCellAlignment,
227
225
  normalizeTableCellColor,
228
226
  outermostTableDepth,
227
+ parseReplacement,
229
228
  runTableAction,
229
+ searchDocument,
230
230
  shouldShowTableBubbleMenu,
231
231
  sliceContainsTable,
232
232
  tableNestingPluginKey,
233
233
  unnestTables
234
- } from "./chunk-5H2OPMXZ.js";
234
+ } from "./chunk-TK2XZK6Z.js";
235
235
  import {
236
236
  compareDocuments,
237
237
  compareHtml,
@@ -1,7 +1,7 @@
1
1
  import { A as AnimationEasing } from '../easing-DTmX99QG.cjs';
2
- import { J as JsonSchema } from '../schema-DYDGdYL9.cjs';
2
+ import { J as JsonSchema } from '../schema-Di0CS6Pe.cjs';
3
3
  import { H as HistoryManager } from '../HistoryManager-DeQQMBCj.cjs';
4
- import { C as CommandSpec } from '../registry-D0GADKc7.cjs';
4
+ import { C as CommandSpec } from '../registry-vz6HOiiy.cjs';
5
5
  import '../types-DsiXGmjo.cjs';
6
6
 
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import { A as AnimationEasing } from '../easing-DTmX99QG.js';
2
- import { J as JsonSchema } from '../schema-DYDGdYL9.js';
2
+ import { J as JsonSchema } from '../schema-Di0CS6Pe.js';
3
3
  import { H as HistoryManager } from '../HistoryManager-DWSLd6Tf.js';
4
- import { C as CommandSpec } from '../registry-DhVUZioj.js';
4
+ import { C as CommandSpec } from '../registry-BfVD-vVg.js';
5
5
  import '../types-DsiXGmjo.js';
6
6
 
7
7
  /**
@@ -1,4 +1,4 @@
1
- import { J as JsonSchema, S as SchemaValidationError } from './schema-DYDGdYL9.cjs';
1
+ import { J as JsonSchema, S as SchemaValidationError } from './schema-Di0CS6Pe.cjs';
2
2
 
3
3
  /**
4
4
  * MCP-shaped tool definition, as returned by `tools/list`.
@@ -1,4 +1,4 @@
1
- import { J as JsonSchema, S as SchemaValidationError } from './schema-DYDGdYL9.js';
1
+ import { J as JsonSchema, S as SchemaValidationError } from './schema-Di0CS6Pe.js';
2
2
 
3
3
  /**
4
4
  * Keyboard chords in a platform-neutral notation.
@@ -1,4 +1,4 @@
1
- import { J as JsonSchema, S as SchemaValidationError } from './schema-DYDGdYL9.js';
1
+ import { J as JsonSchema, S as SchemaValidationError } from './schema-Di0CS6Pe.js';
2
2
 
3
3
  /**
4
4
  * MCP-shaped tool definition, as returned by `tools/list`.
@@ -1,4 +1,4 @@
1
- import { J as JsonSchema, S as SchemaValidationError } from './schema-DYDGdYL9.cjs';
1
+ import { J as JsonSchema, S as SchemaValidationError } from './schema-Di0CS6Pe.cjs';
2
2
 
3
3
  /**
4
4
  * Keyboard chords in a platform-neutral notation.
@@ -20,6 +20,22 @@ interface JsonSchema {
20
20
  maxItems?: number;
21
21
  minimum?: number;
22
22
  maximum?: number;
23
+ exclusiveMinimum?: number;
24
+ exclusiveMaximum?: number;
25
+ multipleOf?: number;
26
+ uniqueItems?: boolean;
27
+ anyOf?: readonly JsonSchema[];
28
+ oneOf?: readonly JsonSchema[];
29
+ allOf?: readonly JsonSchema[];
30
+ not?: JsonSchema;
31
+ /** Local reference only: `#`, `#/$defs/<name>` or `#/definitions/<name>`. */
32
+ $ref?: string;
33
+ $defs?: {
34
+ readonly [key: string]: JsonSchema;
35
+ };
36
+ definitions?: {
37
+ readonly [key: string]: JsonSchema;
38
+ };
23
39
  minLength?: number;
24
40
  maxLength?: number;
25
41
  pattern?: string;
@@ -34,8 +50,16 @@ interface SchemaValidationError {
34
50
  * Validates `value` against `schema` and returns every error found (an empty
35
51
  * array means valid). Supports `type` (incl. arrays of types), `enum`, `const`,
36
52
  * `properties`, `required`, `additionalProperties`, `items`, `minItems`,
37
- * `maxItems`, `minimum`, `maximum`, `minLength`, `maxLength` and `pattern`.
53
+ * `maxItems`, `uniqueItems`, `minimum`, `maximum`, `exclusiveMinimum`,
54
+ * `exclusiveMaximum`, `multipleOf`, `minLength`, `maxLength`, `pattern`,
55
+ * `anyOf`, `oneOf`, `allOf`, `not` and local `$ref`s (`#/$defs/...`).
56
+ * Other keywords (`format`, `if`/`then`, `patternProperties`, remote refs...)
57
+ * are ignored.
58
+ *
59
+ * When no `anyOf` / `oneOf` branch matches, the errors of the closest branch
60
+ * (the one with the fewest errors) are reported, so a caller sees what to fix
61
+ * rather than only "no branch matched".
38
62
  */
39
- declare function validateJsonSchema(value: unknown, schema: JsonSchema | undefined, path?: string): SchemaValidationError[];
63
+ declare function validateJsonSchema(value: unknown, schema: JsonSchema | undefined, path?: string, root?: JsonSchema | undefined, refDepth?: number): SchemaValidationError[];
40
64
 
41
65
  export { type JsonSchema as J, type SchemaValidationError as S, type JsonSchemaType as a, validateJsonSchema as v };
@@ -20,6 +20,22 @@ interface JsonSchema {
20
20
  maxItems?: number;
21
21
  minimum?: number;
22
22
  maximum?: number;
23
+ exclusiveMinimum?: number;
24
+ exclusiveMaximum?: number;
25
+ multipleOf?: number;
26
+ uniqueItems?: boolean;
27
+ anyOf?: readonly JsonSchema[];
28
+ oneOf?: readonly JsonSchema[];
29
+ allOf?: readonly JsonSchema[];
30
+ not?: JsonSchema;
31
+ /** Local reference only: `#`, `#/$defs/<name>` or `#/definitions/<name>`. */
32
+ $ref?: string;
33
+ $defs?: {
34
+ readonly [key: string]: JsonSchema;
35
+ };
36
+ definitions?: {
37
+ readonly [key: string]: JsonSchema;
38
+ };
23
39
  minLength?: number;
24
40
  maxLength?: number;
25
41
  pattern?: string;
@@ -34,8 +50,16 @@ interface SchemaValidationError {
34
50
  * Validates `value` against `schema` and returns every error found (an empty
35
51
  * array means valid). Supports `type` (incl. arrays of types), `enum`, `const`,
36
52
  * `properties`, `required`, `additionalProperties`, `items`, `minItems`,
37
- * `maxItems`, `minimum`, `maximum`, `minLength`, `maxLength` and `pattern`.
53
+ * `maxItems`, `uniqueItems`, `minimum`, `maximum`, `exclusiveMinimum`,
54
+ * `exclusiveMaximum`, `multipleOf`, `minLength`, `maxLength`, `pattern`,
55
+ * `anyOf`, `oneOf`, `allOf`, `not` and local `$ref`s (`#/$defs/...`).
56
+ * Other keywords (`format`, `if`/`then`, `patternProperties`, remote refs...)
57
+ * are ignored.
58
+ *
59
+ * When no `anyOf` / `oneOf` branch matches, the errors of the closest branch
60
+ * (the one with the fewest errors) are reported, so a caller sees what to fix
61
+ * rather than only "no branch matched".
38
62
  */
39
- declare function validateJsonSchema(value: unknown, schema: JsonSchema | undefined, path?: string): SchemaValidationError[];
63
+ declare function validateJsonSchema(value: unknown, schema: JsonSchema | undefined, path?: string, root?: JsonSchema | undefined, refDepth?: number): SchemaValidationError[];
40
64
 
41
65
  export { type JsonSchema as J, type SchemaValidationError as S, type JsonSchemaType as a, validateJsonSchema as v };
@@ -10,10 +10,8 @@
10
10
 
11
11
 
12
12
 
13
- var _chunkV7CC7RZ6cjs = require('../chunk-V7CC7RZ6.cjs');
14
13
 
15
14
 
16
- var _chunkI6BZB5ZHcjs = require('../chunk-I6BZB5ZH.cjs');
17
15
 
18
16
 
19
17
 
@@ -27,5 +25,41 @@ var _chunkI6BZB5ZHcjs = require('../chunk-I6BZB5ZH.cjs');
27
25
 
28
26
 
29
27
 
30
- exports.EDITOR_MCP_TOOLS = _chunkV7CC7RZ6cjs.EDITOR_MCP_TOOLS; exports.EXPORT_EXCLUDED_SELECTORS = _chunkV7CC7RZ6cjs.EXPORT_EXCLUDED_SELECTORS; exports.MCP_TOOL_EDIT_CANVAS = _chunkV7CC7RZ6cjs.MCP_TOOL_EDIT_CANVAS; exports.MCP_TOOL_EDIT_PROMPT = _chunkV7CC7RZ6cjs.MCP_TOOL_EDIT_PROMPT; exports.MCP_TOOL_GET_EDITOR_STATE = _chunkV7CC7RZ6cjs.MCP_TOOL_GET_EDITOR_STATE; exports.MCP_TOOL_VIEW_EDITOR = _chunkV7CC7RZ6cjs.MCP_TOOL_VIEW_EDITOR; exports.TOOL_NAMESPACE_SEPARATOR = _chunkV7CC7RZ6cjs.TOOL_NAMESPACE_SEPARATOR; exports.ToolRegistry = _chunkV7CC7RZ6cjs.ToolRegistry; exports.ToolRegistryError = _chunkV7CC7RZ6cjs.ToolRegistryError; exports.createToolRegistry = _chunkV7CC7RZ6cjs.createToolRegistry; exports.toToolResult = _chunkV7CC7RZ6cjs.toToolResult; exports.validateJsonSchema = _chunkI6BZB5ZHcjs.validateJsonSchema;
28
+
29
+
30
+ var _chunkK2LVZ4FAcjs = require('../chunk-K2LVZ4FA.cjs');
31
+
32
+
33
+ var _chunkEFDCLENWcjs = require('../chunk-EFDCLENW.cjs');
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+ exports.EDITOR_CANVAS_TOOLS = _chunkK2LVZ4FAcjs.EDITOR_CANVAS_TOOLS; exports.EDITOR_MCP_TOOLS = _chunkK2LVZ4FAcjs.EDITOR_MCP_TOOLS; exports.EDITOR_PROMPT_TOOLS = _chunkK2LVZ4FAcjs.EDITOR_PROMPT_TOOLS; exports.EDIT_OPERATION_REQUIRED_ARGUMENTS = _chunkK2LVZ4FAcjs.EDIT_OPERATION_REQUIRED_ARGUMENTS; exports.EXPORT_EXCLUDED_SELECTORS = _chunkK2LVZ4FAcjs.EXPORT_EXCLUDED_SELECTORS; exports.JSON_RPC_ERRORS = _chunkK2LVZ4FAcjs.JSON_RPC_ERRORS; exports.MCP_PROTOCOL_VERSIONS = _chunkK2LVZ4FAcjs.MCP_PROTOCOL_VERSIONS; exports.MCP_TOOL_CANVAS_ADD_NODE = _chunkK2LVZ4FAcjs.MCP_TOOL_CANVAS_ADD_NODE; exports.MCP_TOOL_CANVAS_CONNECT = _chunkK2LVZ4FAcjs.MCP_TOOL_CANVAS_CONNECT; exports.MCP_TOOL_CANVAS_HIGHLIGHT = _chunkK2LVZ4FAcjs.MCP_TOOL_CANVAS_HIGHLIGHT; exports.MCP_TOOL_CANVAS_LAYOUT = _chunkK2LVZ4FAcjs.MCP_TOOL_CANVAS_LAYOUT; exports.MCP_TOOL_CANVAS_REMOVE_NODES = _chunkK2LVZ4FAcjs.MCP_TOOL_CANVAS_REMOVE_NODES; exports.MCP_TOOL_CANVAS_SELECT = _chunkK2LVZ4FAcjs.MCP_TOOL_CANVAS_SELECT; exports.MCP_TOOL_CANVAS_UPDATE_NODE = _chunkK2LVZ4FAcjs.MCP_TOOL_CANVAS_UPDATE_NODE; exports.MCP_TOOL_EDIT_CANVAS = _chunkK2LVZ4FAcjs.MCP_TOOL_EDIT_CANVAS; exports.MCP_TOOL_EDIT_PROMPT = _chunkK2LVZ4FAcjs.MCP_TOOL_EDIT_PROMPT; exports.MCP_TOOL_GET_EDITOR_STATE = _chunkK2LVZ4FAcjs.MCP_TOOL_GET_EDITOR_STATE; exports.MCP_TOOL_PROMPT_INSERT_TEXT = _chunkK2LVZ4FAcjs.MCP_TOOL_PROMPT_INSERT_TEXT; exports.MCP_TOOL_PROMPT_REPLACE_RANGE = _chunkK2LVZ4FAcjs.MCP_TOOL_PROMPT_REPLACE_RANGE; exports.MCP_TOOL_PROMPT_SELECT = _chunkK2LVZ4FAcjs.MCP_TOOL_PROMPT_SELECT; exports.MCP_TOOL_PROMPT_SET_VARIABLE = _chunkK2LVZ4FAcjs.MCP_TOOL_PROMPT_SET_VARIABLE; exports.MCP_TOOL_VIEW_EDITOR = _chunkK2LVZ4FAcjs.MCP_TOOL_VIEW_EDITOR; exports.TOOL_NAMESPACE_SEPARATOR = _chunkK2LVZ4FAcjs.TOOL_NAMESPACE_SEPARATOR; exports.ToolRegistry = _chunkK2LVZ4FAcjs.ToolRegistry; exports.ToolRegistryError = _chunkK2LVZ4FAcjs.ToolRegistryError; exports.createMcpServer = _chunkK2LVZ4FAcjs.createMcpServer; exports.createToolRegistry = _chunkK2LVZ4FAcjs.createToolRegistry; exports.toToolResult = _chunkK2LVZ4FAcjs.toToolResult; exports.validateJsonSchema = _chunkEFDCLENWcjs.validateJsonSchema;
31
65
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/tools/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yzBAAC","file":"/home/runner/work/editor/editor/packages/core/dist/tools/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/tools/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,smEAAC","file":"/home/runner/work/editor/editor/packages/core/dist/tools/index.cjs"}