@eigenpal/docx-js-editor 0.0.15 → 0.0.17

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 (171) hide show
  1. package/dist/FindReplaceDialog-K4GRE4JB.cjs +2 -0
  2. package/dist/FindReplaceDialog-K4GRE4JB.cjs.map +1 -0
  3. package/dist/{FindReplaceDialog-UMXCBBST.js → FindReplaceDialog-MMDEJORP.js} +2 -1
  4. package/dist/FindReplaceDialog-MMDEJORP.js.map +1 -0
  5. package/dist/{FootnotePropertiesDialog-TYQGPWPX.js → FootnotePropertiesDialog-HG4267LR.js} +2 -1
  6. package/dist/FootnotePropertiesDialog-HG4267LR.js.map +1 -0
  7. package/dist/{FootnotePropertiesDialog-OBQXOBJE.cjs → FootnotePropertiesDialog-V3YOIJCV.cjs} +2 -1
  8. package/dist/FootnotePropertiesDialog-V3YOIJCV.cjs.map +1 -0
  9. package/dist/{HyperlinkDialog-UOERZIBM.js → HyperlinkDialog-SCSX4RP7.js} +2 -1
  10. package/dist/HyperlinkDialog-SCSX4RP7.js.map +1 -0
  11. package/dist/HyperlinkDialog-YPKURBZK.cjs +2 -0
  12. package/dist/HyperlinkDialog-YPKURBZK.cjs.map +1 -0
  13. package/dist/{ImagePositionDialog-52FDANUK.js → ImagePositionDialog-CJYJ35PI.js} +2 -1
  14. package/dist/ImagePositionDialog-CJYJ35PI.js.map +1 -0
  15. package/dist/{ImagePositionDialog-ZK5WFBRC.cjs → ImagePositionDialog-IMVI7EXA.cjs} +2 -1
  16. package/dist/ImagePositionDialog-IMVI7EXA.cjs.map +1 -0
  17. package/dist/{ImagePropertiesDialog-YPSLPSF6.js → ImagePropertiesDialog-P7WN2ALR.js} +2 -1
  18. package/dist/ImagePropertiesDialog-P7WN2ALR.js.map +1 -0
  19. package/dist/{ImagePropertiesDialog-LU44RDIY.cjs → ImagePropertiesDialog-YS4KJRN7.cjs} +2 -1
  20. package/dist/ImagePropertiesDialog-YS4KJRN7.cjs.map +1 -0
  21. package/dist/{TablePropertiesDialog-KMOYHPGF.cjs → TablePropertiesDialog-CUQXUBQN.cjs} +2 -1
  22. package/dist/TablePropertiesDialog-CUQXUBQN.cjs.map +1 -0
  23. package/dist/{TablePropertiesDialog-OUUJAA7D.js → TablePropertiesDialog-ZHAYVHPZ.js} +2 -1
  24. package/dist/TablePropertiesDialog-ZHAYVHPZ.js.map +1 -0
  25. package/dist/{clipboard-BOocwmAM.d.ts → TableToolbar-RHX9L4h9.d.cts} +2 -125
  26. package/dist/{clipboard-Cx7cb3kX.d.cts → TableToolbar-RHX9L4h9.d.ts} +2 -125
  27. package/dist/chunk-7FEY3YWC.cjs +3 -0
  28. package/dist/chunk-7FEY3YWC.cjs.map +1 -0
  29. package/dist/chunk-AL62KQYJ.js +2 -0
  30. package/dist/chunk-AL62KQYJ.js.map +1 -0
  31. package/dist/{chunk-VTAS7VZ6.cjs → chunk-DJAEBZ33.cjs} +2 -1
  32. package/dist/chunk-DJAEBZ33.cjs.map +1 -0
  33. package/dist/{chunk-CTYOM6BE.js → chunk-M2T6XKT5.js} +2 -1
  34. package/dist/chunk-M2T6XKT5.js.map +1 -0
  35. package/dist/chunk-MXGYESPA.cjs +178 -0
  36. package/dist/chunk-MXGYESPA.cjs.map +1 -0
  37. package/dist/chunk-NMYD4OJZ.js +3 -0
  38. package/dist/chunk-NMYD4OJZ.js.map +1 -0
  39. package/dist/chunk-OD33FUTO.js +178 -0
  40. package/dist/chunk-OD33FUTO.js.map +1 -0
  41. package/dist/{chunk-PJVI53AH.js → chunk-Q6HUGWO6.js} +2 -1
  42. package/dist/chunk-Q6HUGWO6.js.map +1 -0
  43. package/dist/{chunk-XS2AQFMF.cjs → chunk-S26DZVRQ.cjs} +2 -1
  44. package/dist/chunk-S26DZVRQ.cjs.map +1 -0
  45. package/dist/chunk-V3MCDVZE.cjs +2 -0
  46. package/dist/chunk-V3MCDVZE.cjs.map +1 -0
  47. package/dist/{chunk-MLSHZVL7.js → chunk-VIEW4NAF.js} +6 -5
  48. package/dist/chunk-VIEW4NAF.js.map +1 -0
  49. package/dist/{chunk-OEOUMSWH.cjs → chunk-ZX4CSEL3.cjs} +6 -5
  50. package/dist/chunk-ZX4CSEL3.cjs.map +1 -0
  51. package/dist/core-plugins-reexport.cjs +2 -0
  52. package/dist/core-plugins-reexport.cjs.map +1 -0
  53. package/dist/core-plugins-reexport.d.cts +1 -0
  54. package/dist/core-plugins-reexport.d.ts +1 -0
  55. package/dist/core-plugins-reexport.js +2 -0
  56. package/dist/core-plugins-reexport.js.map +1 -0
  57. package/dist/core-reexport.cjs +2 -0
  58. package/dist/core-reexport.cjs.map +1 -0
  59. package/dist/core-reexport.d.cts +4 -0
  60. package/dist/core-reexport.d.ts +4 -0
  61. package/dist/core-reexport.js +2 -0
  62. package/dist/core-reexport.js.map +1 -0
  63. package/dist/headless-reexport.cjs +2 -0
  64. package/dist/headless-reexport.cjs.map +1 -0
  65. package/dist/headless-reexport.d.cts +1 -0
  66. package/dist/headless-reexport.d.ts +1 -0
  67. package/dist/headless-reexport.js +2 -0
  68. package/dist/headless-reexport.js.map +1 -0
  69. package/dist/index.cjs +10 -9
  70. package/dist/index.cjs.map +1 -0
  71. package/dist/index.d.cts +28 -257
  72. package/dist/index.d.ts +28 -257
  73. package/dist/index.js +10 -9
  74. package/dist/index.js.map +1 -0
  75. package/dist/mcp-reexport.cjs +2 -0
  76. package/dist/mcp-reexport.cjs.map +1 -0
  77. package/dist/mcp-reexport.d.cts +1 -0
  78. package/dist/mcp-reexport.d.ts +1 -0
  79. package/dist/mcp-reexport.js +2 -0
  80. package/dist/mcp-reexport.js.map +1 -0
  81. package/dist/react.cjs +2 -1
  82. package/dist/react.cjs.map +1 -0
  83. package/dist/react.d.cts +860 -9
  84. package/dist/react.d.ts +860 -9
  85. package/dist/react.js +2 -1
  86. package/dist/react.js.map +1 -0
  87. package/dist/styles.css +1 -1
  88. package/dist/ui.cjs +2 -1
  89. package/dist/ui.cjs.map +1 -0
  90. package/dist/ui.d.cts +5 -3
  91. package/dist/ui.d.ts +5 -3
  92. package/dist/ui.js +2 -1
  93. package/dist/ui.js.map +1 -0
  94. package/package.json +28 -120
  95. package/LICENSE +0 -21
  96. package/README.md +0 -171
  97. package/dist/DocumentAgent-Ci6_T-XM.d.ts +0 -412
  98. package/dist/DocumentAgent-DEGFgYEN.d.cts +0 -412
  99. package/dist/FindReplaceDialog-46BE7Q2G.cjs +0 -1
  100. package/dist/HyperlinkDialog-22NH7ZLP.cjs +0 -1
  101. package/dist/agentApi-CbVUCZRu.d.cts +0 -2086
  102. package/dist/agentApi-CbVUCZRu.d.ts +0 -2086
  103. package/dist/chunk-24N3L4IL.cjs +0 -258
  104. package/dist/chunk-2ASOEN3V.js +0 -1
  105. package/dist/chunk-46OFHSPJ.cjs +0 -2
  106. package/dist/chunk-65OFYOHF.cjs +0 -58
  107. package/dist/chunk-6YFGCUHU.js +0 -4
  108. package/dist/chunk-DYQUXFE5.cjs +0 -1
  109. package/dist/chunk-EMKABJPH.js +0 -1
  110. package/dist/chunk-ESI4BSBF.js +0 -1
  111. package/dist/chunk-FYAWM7MP.cjs +0 -1
  112. package/dist/chunk-GLFFXY2X.js +0 -258
  113. package/dist/chunk-ITWEFKGQ.cjs +0 -1
  114. package/dist/chunk-JKN7TNPA.js +0 -12
  115. package/dist/chunk-KESNGXGO.js +0 -1
  116. package/dist/chunk-L34XFLQZ.cjs +0 -1
  117. package/dist/chunk-NO7WUK5E.cjs +0 -12
  118. package/dist/chunk-NT2REEAA.cjs +0 -1
  119. package/dist/chunk-O7QVCJN6.cjs +0 -4
  120. package/dist/chunk-OW5H5DNE.cjs +0 -1
  121. package/dist/chunk-OWMXCVKB.js +0 -1
  122. package/dist/chunk-PXC7ARQB.cjs +0 -1
  123. package/dist/chunk-R5SKERM2.js +0 -1
  124. package/dist/chunk-RM3ITJ2H.cjs +0 -10
  125. package/dist/chunk-SF53KLDZ.cjs +0 -1
  126. package/dist/chunk-TOI5W3HK.js +0 -8
  127. package/dist/chunk-UAVOWAIF.cjs +0 -8
  128. package/dist/chunk-ULNHBTYA.js +0 -2
  129. package/dist/chunk-UXXV4GT6.js +0 -10
  130. package/dist/chunk-VOWKSURW.cjs +0 -1
  131. package/dist/chunk-WFWLPKQA.js +0 -1
  132. package/dist/chunk-WFYRA2TH.js +0 -1
  133. package/dist/chunk-YMXKVLTU.js +0 -58
  134. package/dist/chunk-ZDYHAYN6.js +0 -1
  135. package/dist/colorResolver-CIDiSPWd.d.cts +0 -618
  136. package/dist/colorResolver-KXbUgzWC.d.ts +0 -618
  137. package/dist/core-plugins.cjs +0 -1
  138. package/dist/core-plugins.d.cts +0 -31
  139. package/dist/core-plugins.d.ts +0 -31
  140. package/dist/core-plugins.js +0 -1
  141. package/dist/core.cjs +0 -1
  142. package/dist/core.d.cts +0 -23
  143. package/dist/core.d.ts +0 -23
  144. package/dist/core.js +0 -1
  145. package/dist/executor-ITYZTNSH.cjs +0 -1
  146. package/dist/executor-TC7CLATE.js +0 -1
  147. package/dist/headless.cjs +0 -4
  148. package/dist/headless.d.cts +0 -195
  149. package/dist/headless.d.ts +0 -195
  150. package/dist/headless.js +0 -4
  151. package/dist/index.css +0 -1
  152. package/dist/insertOperations-CzB5b-Of.d.ts +0 -176
  153. package/dist/insertOperations-DKVmCV32.d.cts +0 -176
  154. package/dist/mcp-cli.js +0 -136
  155. package/dist/mcp.cjs +0 -16
  156. package/dist/mcp.d.cts +0 -156
  157. package/dist/mcp.d.ts +0 -156
  158. package/dist/mcp.js +0 -16
  159. package/dist/processTemplate-525HZL4S.cjs +0 -1
  160. package/dist/processTemplate-RJN6452W.js +0 -1
  161. package/dist/react-BZxD04XV.d.ts +0 -1350
  162. package/dist/react-D8eAYckC.d.cts +0 -1350
  163. package/dist/react.css +0 -1
  164. package/dist/registry-D4tvj9f3.d.ts +0 -165
  165. package/dist/registry-ngv6Bumt.d.cts +0 -165
  166. package/dist/selectionRects-PQEUEW35.cjs +0 -1
  167. package/dist/selectionRects-QAG5RSHD.js +0 -1
  168. package/dist/types-D96elyJF.d.cts +0 -310
  169. package/dist/types-xMzSPT4i.d.ts +0 -310
  170. package/dist/variableDetector-CPxKo9jP.d.cts +0 -173
  171. package/dist/variableDetector-DeM1N-_L.d.ts +0 -173
package/dist/index.d.cts CHANGED
@@ -1,265 +1,36 @@
1
- import { P as PluginPanelProps, E as EditorPlugin } from './react-D8eAYckC.cjs';
2
- export { A as AutoSaveStatus, C as ClipboardSelection, D as DEFAULT_SELECTION_STYLE, a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as ErrorBoundary, f as ErrorBoundaryProps, g as ErrorContextValue, h as ErrorNotification, i as ErrorProvider, j as ErrorSeverity, H as HIGH_CONTRAST_SELECTION_STYLE, k as HighlightRect, l as PLUGIN_HOST_STYLES, m as PanelConfig, n as ParseErrorDisplay, o as ParseErrorDisplayProps, p as PluginContext, q as PluginHost, r as PluginHostProps, s as PluginHostRef, t as PositionCoordinates, R as RenderAsyncOptions, u as RenderedDomContext, S as SELECTION_CSS_VARS, v as SavedDocumentData, w as SelectionHighlightConfig, x as SelectionOverlayProps, y as SelectionRange, T as TABLE_DATA_ATTRIBUTES, z as TableSelectionState, U as UnsupportedFeatureWarning, B as UnsupportedFeatureWarningProps, F as UseAutoSaveOptions, G as UseAutoSaveReturn, I as UseClipboardOptions, J as UseClipboardReturn, K as UseSelectionHighlightOptions, L as UseSelectionHighlightReturn, M as UseTableSelectionOptions, N as UseTableSelectionReturn, O as UseWheelZoomOptions, Q as UseWheelZoomReturn, Z as ZOOM_PRESETS, V as areSelectionStylesInjected, W as clampZoom, X as clearSelection, Y as createSelectionChangeHandler, _ as createSelectionFromDOM, $ as findNearestZoomPreset, a0 as formatLastSaveTime, a1 as formatStorageSize, a2 as formatZoom, a3 as generateOverlayElements, a4 as generateSelectionCSS, a5 as getAutoSaveStatusLabel, a6 as getAutoSaveStorageSize, a7 as getHighlightRectStyle, a8 as getMergedSelectionRects, a9 as getNextZoomPreset, aa as getPreviousZoomPreset, ab as getSelectedText, ac as getSelectionBoundingRect, ad as getSelectionRects, ae as getSelectionRuns, af as getUserFriendlyMessage, ag as getZoomPresets, ah as hasActiveSelection, ai as highlightTextRange, aj as injectSelectionStyles, ak as isAutoSaveSupported, al as isParseError, am as isSelectionBackwards, an as isSelectionWithin, ao as isZoomPreset, ap as mergeAdjacentRects, aq as normalizeSelectionDirection, ar as parseZoom, as as removeSelectionStyles, at as renderAsync, au as selectRange, av as useAutoSave, aw as useClipboard, ax as useErrorNotifications, ay as useSelectionHighlight, az as useTableSelection, aA as useWheelZoom } from './react-D8eAYckC.cjs';
3
- export { D as DocumentAgent, a as DocxInput, t as toArrayBuffer } from './DocumentAgent-DEGFgYEN.cjs';
4
- export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, S as SelectionContextOptions, b as blendColors, c as buildExtendedSelectionContext, d as buildSelectionContext, e as colorsEqual, f as createDocumentWithText, g as createEmptyDocument, h as createRgbColor, i as createThemeColor, j as darkenColor, k as emuToPixels, l as emuToTwips, m as executeCommand, n as executeCommands, o as formatPx, p as getAgentContext, q as getContrastingColor, r as getDocumentSummary, s as getTemplateTags, t as halfPointsToPixels, u as isBlack, v as isWhite, w as lightenColor, x as parseColorString, y as parseDocx, z as pixelsToEmu, B as pixelsToTwips, D as pointsToPixels, F as processTemplate, G as processTemplateAsBlob, H as processTemplateDetailed, I as resolveColor, J as resolveHighlightColor, K as resolveShadingColor, L as serializeDocumentBody, M as serializeDocx, N as serializeSectionProperties, O as twipsToEmu, Q as twipsToPixels, R as validateTemplate } from './colorResolver-CIDiSPWd.cjs';
5
- export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './insertOperations-DKVmCV32.cjs';
1
+ import { EditorPlugin } from './react.cjs';
2
+ export { AutoSaveStatus, ClipboardSelection, DocxEditor, DocxEditorHandle, DocxEditorProps, DocxEditorRef, ErrorBoundary, ErrorBoundaryProps, ErrorContextValue, ErrorNotification, ErrorProvider, ErrorSeverity, PLUGIN_HOST_STYLES, ParseErrorDisplay, ParseErrorDisplayProps, PluginContext, PluginHost, PluginHostProps, PluginHostRef, RenderAsyncOptions, SavedDocumentData, SelectionOverlayProps, TABLE_DATA_ATTRIBUTES, TableSelectionState, UnsupportedFeatureWarning, UnsupportedFeatureWarningProps, UseAutoSaveOptions, UseAutoSaveReturn, UseClipboardOptions, UseClipboardReturn, UseSelectionHighlightOptions, UseSelectionHighlightReturn, UseTableSelectionOptions, UseTableSelectionReturn, UseWheelZoomOptions, UseWheelZoomReturn, ZOOM_PRESETS, clampZoom, createSelectionFromDOM, findNearestZoomPreset, formatLastSaveTime, formatStorageSize, formatZoom, generateOverlayElements, getAutoSaveStatusLabel, getAutoSaveStorageSize, getNextZoomPreset, getPreviousZoomPreset, getSelectionRuns, getUserFriendlyMessage, getZoomPresets, isAutoSaveSupported, isParseError, isZoomPreset, parseZoom, renderAsync, useAutoSave, useClipboard, useErrorNotifications, useSelectionHighlight, useTableSelection, useWheelZoom } from './react.cjs';
3
+ export { DocxInput, toArrayBuffer } from '@eigenpal/docx-core/utils/docxInput';
4
+ export { DocumentAgent } from '@eigenpal/docx-core/agent/DocumentAgent';
5
+ export { executeCommand, executeCommands } from '@eigenpal/docx-core/agent/executor';
6
+ export { AgentContextOptions, getAgentContext, getDocumentSummary } from '@eigenpal/docx-core/agent/context';
7
+ export { ExtendedSelectionContext, SelectionContextOptions, buildExtendedSelectionContext, buildSelectionContext } from '@eigenpal/docx-core/agent/selectionContext';
8
+ export { parseDocx } from '@eigenpal/docx-core/docx/parser';
9
+ export { serializeDocumentBody, serializeDocument as serializeDocx, serializeSectionProperties } from '@eigenpal/docx-core/docx/serializer/documentSerializer';
10
+ export { ProcessTemplateOptions, ProcessTemplateResult, getTemplateTags, processTemplate, processTemplateAsBlob, processTemplateDetailed, validateTemplate } from '@eigenpal/docx-core/utils/processTemplate';
11
+ export { CreateEmptyDocumentOptions, createDocumentWithText, createEmptyDocument } from '@eigenpal/docx-core/utils/createDocument';
12
+ export { canRenderFont, getLoadedFonts, isFontLoaded, isLoading as isFontsLoading, loadFont, loadFontFromBuffer, loadFonts, onFontsLoaded, preloadCommonFonts } from '@eigenpal/docx-core/utils/fontLoader';
6
13
  export { AlignmentButtons, AlignmentButtonsProps, CellBackgroundPicker, CellBackgroundPickerProps, CellColorOption, ColorOption, ColorPicker, ColorPickerProps, ContextMenu, ContextMenuProps, DEFAULT_CELL_COLORS, DialogKeyboardShortcut, FindMatch, FindOptions, FindReplaceDialog, FindReplaceDialogProps, FindReplaceOptions, FindReplaceState, FindResult, FontOption, FontPicker, FontPickerProps, FontSizePicker, FontSizePickerProps, HighlightOptions, HorizontalRuler, HorizontalRulerProps, HyperlinkData, HyperlinkDialog, HyperlinkDialogProps, ImageData, IndicatorPosition, IndicatorVariant, InsertImageDialog, InsertImageDialogProps, InsertSymbolDialog, InsertSymbolDialogProps, InsertTableDialog, InsertTableDialogProps, KeyboardShortcutsDialog, KeyboardShortcutsDialogProps, LineSpacingOption, LineSpacingPicker, LineSpacingPickerProps, ListButtons, ListButtonsProps, ListState, LoadingIndicator, LoadingIndicatorProps, LoadingOperation, LoadingSize, LoadingVariant, PasteOption, PasteSpecialDialog, PasteSpecialDialogProps, ResponsePreview, ResponsePreviewProps, ResponsePreviewState, ResponsiveToolbar, ResponsiveToolbarGroup, ResponsiveToolbarGroupProps, ResponsiveToolbarProps, SYMBOL_CATEGORIES, ShortcutCategory, StyleOption, StylePicker, StylePickerProps, SymbolCategory, TableBorderColorPicker, TableBorderColorPickerProps, TableBorderPicker, TableBorderPickerProps, TableBorderWidthPicker, TableBorderWidthPickerProps, TableCellFillPicker, TableCellFillPickerProps, TableConfig, TableInsertButtons, TableInsertButtonsProps, TableMergeButton, TableMergeButtonProps, TableMoreDropdown, TableMoreDropdownProps, TextContextAction, TextContextMenu, TextContextMenuItem, TextContextMenuProps, Toolbar, ToolbarButton, ToolbarGroup, ToolbarItem, ToolbarItemPriority, ToolbarProps, ToolbarSeparator, UnsavedIndicator, UnsavedIndicatorProps, UseFindReplaceReturn, UseKeyboardShortcutsDialogOptions, UseKeyboardShortcutsDialogReturn, UseLoadingOptions, UseLoadingReturn, UsePasteSpecialOptions, UsePasteSpecialReturn, UseResponsiveToolbarOptions, UseResponsiveToolbarReturn, UseTextContextMenuOptions, UseTextContextMenuReturn, UseUnsavedChangesOptions, UseUnsavedChangesReturn, ZoomControl, ZoomControlProps, calculateFitDimensions, clampTableConfig, createCellColorOption, createChangeTracker, createDefaultFindOptions, createDefaultListState, createDefaultTableConfig, createErrorResponse, createMockResponse, createSearchPattern, createShadingFromColor, createToolbarItem, createToolbarItems, dataUrlToBlob, delay, escapeRegexString, findAllMatches, findInDocument, findInParagraph, formatFileSize, formatShortcutKeys, formatTableDimensions, getActionShortcut, getAllActions, getAllCategories, getAllIndicatorPositions, getAllIndicatorVariants, getAllLoadingSizes, getAllLoadingVariants, getAllPasteOptions, getCategoryLabel, getCellColorName, getColorFromShading, getCommonShortcuts, getContrastingTextColor, getDefaultActions, getDefaultCellColors, getDefaultHighlightOptions, getDefaultPasteOption, getDefaultShortcuts, getDefaultTextContextMenuItems, getImageAcceptString, getImageDimensions, getLoadingVariantLabel, getMarginInUnits, getMatchCountText, getPasteOption, getRecommendedPriority, getRulerDimensions, getShortcutsByCategory, getSupportedImageExtensions, getSymbolCategories, getSymbolUnicodeInfo, getSymbolsByCategory, getTablePresets, getTextActionLabel, getTextActionShortcut, getVariantLabel, isActionAvailable, isDefaultCellColor, isEmptySearch, isPasteSpecialShortcut, isTextActionAvailable, isValidImageFile, isValidTableConfig, parseMarginFromUnits, positionToMargin, replaceAllInContent, replaceFirstInContent, scrollToMatch, searchSymbols, symbolFromCodePoint, useContextMenu, useFindReplace, useHyperlinkDialog, useInsertImageDialog, useInsertSymbolDialog, useInsertTableDialog, useKeyboardShortcutsDialog, useLoading, useLoadingOperations, usePasteSpecial, useResponsePreview, useResponsiveToolbar, useTextContextMenu, useUnsavedChanges } from './ui.cjs';
7
- export { C as CLIPBOARD_TYPES, a as ClipboardContent, b as ClipboardOptions, I as INTERNAL_CLIPBOARD_TYPE, P as PageIndicatorPosition, c as PageIndicatorVariant, d as PageNavigator, e as PageNavigatorPosition, f as PageNavigatorProps, g as PageNavigatorVariant, h as PageNumberIndicator, i as PageNumberIndicatorProps, j as ParsedClipboardContent, k as PrintButton, l as PrintButtonProps, m as PrintOptions, n as PrintStyles, T as TableAction, o as TableContext, p as TableSelection, q as TableToolbar, r as TableToolbarProps, s as addColumn, t as addRow, u as calculateProgress, v as calculateScrollToPage, w as calculateVisiblePage, x as clampPageNumber, y as cleanWordHtml, z as copyParagraphs, A as copyRuns, B as createClipboardHandlers, D as createPageFormat, E as createTableContext, F as deleteColumn, G as deleteRow, H as formatPageOrdinal, J as formatPageRange, K as formatPrintPageRange, L as getCellAt, M as getColumnCount, N as getDefaultPrintOptions, O as getNavigationShortcuts, Q as getPageProgress, R as handlePasteEvent, S as htmlToRuns, U as isEditorHtml, V as isFirstPage, W as isLastPage, X as isPrintSupported, Y as isValidPageNumber, Z as isWordHtml, _ as mergeCells, $ as openPrintWindow, a0 as paragraphsToClipboardContent, a1 as parseClipboardHtml, a2 as parsePageInput, a3 as parsePageRange, a4 as readFromClipboard, a5 as runsToClipboardContent, a6 as splitCell, a7 as triggerPrint, a8 as writeToClipboard } from './clipboard-Cx7cb3kX.cjs';
8
- export { A as AIAction, a as AIActionRequest, b as AgentCommand, c as AgentContext, d as AgentResponse, e as ApplyStyleCommand, B as BlockContent, f as BookmarkEnd, g as BookmarkStart, D as DeleteTextCommand, h as Document, i as DocumentBody, j as DocxPackage, E as Endnote, F as Field, k as FooterReference, l as Footnote, m as FormatTextCommand, H as HeaderFooter, n as HeaderReference, o as Hyperlink, I as Image, p as InsertHyperlinkCommand, q as InsertImageCommand, r as InsertTableCommand, s as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, P as Paragraph, t as ParagraphContext, u as ParagraphFormatting, v as Position, R as Range, w as Relationship, x as ReplaceTextCommand, y as Run, z as RunContent, S as SectionProperties, C as SelectionContext, G as SetVariableCommand, J as Shape, K as Style, M as StyleDefinitions, O as SuggestedAction, T as Table, Q as TableCell, U as TableRow, V as TextBox, W as TextContent, X as TextFormatting, Y as Theme, Z as ThemeColorScheme, _ as ThemeFont, $ as ThemeFontScheme } from './agentApi-CbVUCZRu.cjs';
14
+ export { P as PageIndicatorPosition, a as PageIndicatorVariant, b as PageNavigator, c as PageNavigatorPosition, d as PageNavigatorProps, e as PageNavigatorVariant, f as PageNumberIndicator, g as PageNumberIndicatorProps, h as PrintButton, i as PrintButtonProps, j as PrintOptions, k as PrintStyles, T as TableAction, l as TableContext, m as TableSelection, n as TableToolbar, o as TableToolbarProps, p as addColumn, q as addRow, r as calculateProgress, s as calculateScrollToPage, t as calculateVisiblePage, u as clampPageNumber, v as createPageFormat, w as createTableContext, x as deleteColumn, y as deleteRow, z as formatPageOrdinal, A as formatPageRange, B as formatPrintPageRange, C as getCellAt, D as getColumnCount, E as getDefaultPrintOptions, F as getNavigationShortcuts, G as getPageProgress, H as isFirstPage, I as isLastPage, J as isPrintSupported, K as isValidPageNumber, L as mergeCells, M as openPrintWindow, N as parsePageInput, O as parsePageRange, Q as splitCell, R as triggerPrint } from './TableToolbar-RHX9L4h9.cjs';
15
+ export { BlockContent, BookmarkEnd, BookmarkStart, Document, DocumentBody, DocxPackage, Endnote, Field, FooterReference, Footnote, HeaderFooter, HeaderReference, Hyperlink, Image, ListLevel, NumberingDefinitions, Paragraph, ParagraphFormatting, Relationship, Run, RunContent, SectionProperties, Shape, Style, StyleDefinitions, Table, TableCell, TableRow, TextBox, TextContent, TextFormatting, Theme, ThemeColorScheme, ThemeFont, ThemeFontScheme } from '@eigenpal/docx-core/types/document';
16
+ export { AIAction, AIActionRequest, AgentCommand, AgentContext, AgentResponse, ApplyStyleCommand, DeleteTextCommand, FormatTextCommand, InsertHyperlinkCommand, InsertImageCommand, InsertTableCommand, InsertTextCommand, ParagraphContext, Position, Range, ReplaceTextCommand, SelectionContext, SetVariableCommand, SuggestedAction } from '@eigenpal/docx-core/types/agentApi';
17
+ export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToPixels, twipsToEmu, twipsToPixels } from '@eigenpal/docx-core/utils/units';
18
+ export { blendColors, colorsEqual, createRgbColor, createThemeColor, darkenColor, getContrastingColor, isBlack, isWhite, lightenColor, parseColorString, resolveColor, resolveHighlightColor, resolveShadingColor } from '@eigenpal/docx-core/utils/colorResolver';
19
+ export { InsertPosition, countPageBreaks, createColumnBreak, createHorizontalRule, createLineBreak, createPageBreak, createPageBreakParagraph, createPageBreakRun, findPageBreaks, hasPageBreakBefore, insertHorizontalRule, insertPageBreak, isBreakContent, isColumnBreak, isLineBreak, isPageBreak, removePageBreak } from '@eigenpal/docx-core/utils/insertOperations';
20
+ export { DEFAULT_SELECTION_STYLE, HIGH_CONTRAST_SELECTION_STYLE, HighlightRect, SELECTION_CSS_VARS, SelectionHighlightConfig, SelectionRange, areSelectionStylesInjected, clearSelection, createSelectionChangeHandler, generateSelectionCSS, getHighlightRectStyle, getMergedSelectionRects, getSelectedText, getSelectionBoundingRect, getSelectionRects, hasActiveSelection, highlightTextRange, injectSelectionStyles, isSelectionBackwards, isSelectionWithin, mergeAdjacentRects, normalizeSelectionDirection, removeSelectionStyles, selectRange } from '@eigenpal/docx-core/utils/selectionHighlight';
21
+ export { WordSelectionResult, createDoubleClickWordSelector, createTripleClickParagraphSelector, expandSelectionToWordBoundaries, findWordAt, findWordBoundaries, getWordAt, handleClickForMultiClick, isWhitespace, isWordCharacter, selectParagraphAtCursor, selectWordAtCursor, selectWordInTextNode } from '@eigenpal/docx-core/utils/textSelection';
22
+ export { KeyboardShortcut, NAVIGATION_SHORTCUTS, NavigationAction, NavigationDirection, NavigationUnit, describeShortcut, expandSelectionToWord, extendSelectionTo, findNextWordStart, findPreviousWordStart, findVisualLineEnd, findVisualLineStart, findWordEnd, findWordStart, getNavigationShortcutDescriptions, getSelectionInfo, getWordAtCursor, handleNavigationKey, isNavigationKey, isPunctuation, isWhitespace as isWhitespaceChar, isWordCharacter as isWordChar, matchesShortcut, moveByWord, moveToLineEdge, parseNavigationAction, setSelectionPosition } from '@eigenpal/docx-core/utils/keyboardNavigation';
23
+ export { CLIPBOARD_TYPES, ClipboardContent, ClipboardOptions, INTERNAL_CLIPBOARD_TYPE, ParsedClipboardContent, cleanWordHtml, copyParagraphs, copyRuns, createClipboardHandlers, handlePasteEvent, htmlToRuns, isEditorHtml, isWordHtml, paragraphsToClipboardContent, parseClipboardHtml, readFromClipboard, runsToClipboardContent, writeToClipboard } from '@eigenpal/docx-core/utils/clipboard';
9
24
  import * as prosemirror_state from 'prosemirror-state';
10
25
  import { Plugin, PluginKey } from 'prosemirror-state';
11
26
  import { DecorationSet, EditorView } from 'prosemirror-view';
12
- export { C as CorePlugin, M as McpSession, a as McpToolDefinition, b as McpToolHandler, c as McpToolResult } from './types-D96elyJF.cjs';
13
- export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-ngv6Bumt.cjs';
14
- export { docxtemplaterPlugin } from './core-plugins.cjs';
27
+ export { CorePlugin, McpSession, McpToolDefinition, McpToolHandler, McpToolResult, PluginRegistry, docxtemplaterPlugin, pluginRegistry, registerPlugins } from '@eigenpal/docx-core/core-plugins';
15
28
  import * as react_jsx_runtime from 'react/jsx-runtime';
29
+ import { PluginPanelProps } from '@eigenpal/docx-core/plugin-api/types';
30
+ export { PanelConfig, PluginPanelProps, PositionCoordinates, RenderedDomContext } from '@eigenpal/docx-core/plugin-api/types';
16
31
  import 'react';
17
- import 'prosemirror-model';
18
-
19
- /**
20
- * Text Selection Utilities
21
- *
22
- * Utilities for word-level and paragraph-level text selection.
23
- * Used for double-click (word) and triple-click (paragraph) selection.
24
- */
25
- /**
26
- * Check if a character is a word character
27
- */
28
- declare function isWordCharacter$1(char: string): boolean;
29
- /**
30
- * Check if a character is whitespace
31
- */
32
- declare function isWhitespace$1(char: string): boolean;
33
- /**
34
- * Find word boundaries around a position in text
35
- * Returns [startIndex, endIndex] inclusive start, exclusive end
36
- */
37
- declare function findWordBoundaries(text: string, position: number): [number, number];
38
- /**
39
- * Get the word at a position in text
40
- */
41
- declare function getWordAt(text: string, position: number): string;
42
- /**
43
- * Word selection result
44
- */
45
- interface WordSelectionResult {
46
- /** The selected word */
47
- word: string;
48
- /** Start index in the text (inclusive) */
49
- startIndex: number;
50
- /** End index in the text (exclusive) */
51
- endIndex: number;
52
- }
53
- /**
54
- * Find the word at a position and return detailed info
55
- */
56
- declare function findWordAt(text: string, position: number): WordSelectionResult;
57
- /**
58
- * Select a word at the current cursor position using the browser's native APIs.
59
- * This works reliably across different browsers and handles contentEditable well.
60
- */
61
- declare function selectWordAtCursor(): boolean;
62
- /**
63
- * Select a word in a specific text node at the given offset
64
- */
65
- declare function selectWordInTextNode(textNode: Text, offset: number): boolean;
66
- /**
67
- * Expand the current selection to word boundaries.
68
- * If there's a collapsed selection (cursor), selects the word at cursor.
69
- * If there's an existing selection, expands to include complete words.
70
- */
71
- declare function expandSelectionToWordBoundaries(): boolean;
72
- /**
73
- * Select the entire paragraph containing the current selection.
74
- * Looks for the nearest element with [data-paragraph-index] attribute.
75
- */
76
- declare function selectParagraphAtCursor(): boolean;
77
- /**
78
- * Handle click event for multi-click detection.
79
- * Call this in your click handler.
80
- * Returns the click count (1 = single, 2 = double, 3 = triple).
81
- */
82
- declare function handleClickForMultiClick(event: MouseEvent): number;
83
- /**
84
- * Create a double-click handler that selects words.
85
- * Returns a function that should be called on dblclick events.
86
- */
87
- declare function createDoubleClickWordSelector(): (event: MouseEvent) => void;
88
- /**
89
- * Create a triple-click handler that selects paragraphs.
90
- * This uses our custom click counting since browsers have inconsistent triple-click.
91
- */
92
- declare function createTripleClickParagraphSelector(): (event: MouseEvent) => void;
93
-
94
- /**
95
- * Keyboard Navigation Utilities
96
- *
97
- * Provides enhanced keyboard navigation for the editor:
98
- * - Ctrl+Left/Right: Move by word
99
- * - Home/End: Move to start/end of line
100
- * - Ctrl+Home/End: Move to start/end of document
101
- * - Ctrl+Shift+Left/Right: Select by word
102
- * - Shift+Home/End: Select to start/end of line
103
- */
104
- /**
105
- * Navigation direction
106
- */
107
- type NavigationDirection = 'left' | 'right' | 'up' | 'down';
108
- /**
109
- * Navigation unit
110
- */
111
- type NavigationUnit = 'character' | 'word' | 'line' | 'paragraph' | 'document';
112
- /**
113
- * Keyboard navigation action
114
- */
115
- interface NavigationAction {
116
- /** Direction to navigate */
117
- direction: NavigationDirection;
118
- /** Unit of movement */
119
- unit: NavigationUnit;
120
- /** Whether to extend selection */
121
- extend: boolean;
122
- }
123
- /**
124
- * Keyboard shortcut definition
125
- */
126
- interface KeyboardShortcut {
127
- key: string;
128
- ctrlKey?: boolean;
129
- metaKey?: boolean;
130
- shiftKey?: boolean;
131
- altKey?: boolean;
132
- }
133
- /**
134
- * Check if a character is a word character (letter, digit, or underscore)
135
- */
136
- declare function isWordCharacter(char: string): boolean;
137
- /**
138
- * Check if a character is whitespace
139
- */
140
- declare function isWhitespace(char: string): boolean;
141
- /**
142
- * Check if a character is a punctuation character
143
- */
144
- declare function isPunctuation(char: string): boolean;
145
- /**
146
- * Find the start of the current or previous word
147
- */
148
- declare function findWordStart(text: string, position: number): number;
149
- /**
150
- * Find the end of the current or next word
151
- */
152
- declare function findWordEnd(text: string, position: number): number;
153
- /**
154
- * Find the next word start (for Ctrl+Right navigation)
155
- */
156
- declare function findNextWordStart(text: string, position: number): number;
157
- /**
158
- * Find the previous word start (for Ctrl+Left navigation)
159
- */
160
- declare function findPreviousWordStart(text: string, position: number): number;
161
- /**
162
- * Find the start of the current line in a text node
163
- * Uses visual line detection based on bounding rectangles
164
- */
165
- declare function findVisualLineStart(container: Node, offset: number): {
166
- node: Node;
167
- offset: number;
168
- } | null;
169
- /**
170
- * Find the end of the current line in a text node
171
- * Uses visual line detection based on bounding rectangles
172
- */
173
- declare function findVisualLineEnd(container: Node, offset: number): {
174
- node: Node;
175
- offset: number;
176
- } | null;
177
- /**
178
- * Get the current selection info
179
- */
180
- declare function getSelectionInfo(): {
181
- node: Node;
182
- offset: number;
183
- anchorNode: Node | null;
184
- anchorOffset: number;
185
- focusNode: Node | null;
186
- focusOffset: number;
187
- isCollapsed: boolean;
188
- text: string;
189
- } | null;
190
- /**
191
- * Set the selection to a specific position
192
- */
193
- declare function setSelectionPosition(node: Node, offset: number): void;
194
- /**
195
- * Extend selection to a specific position
196
- */
197
- declare function extendSelectionTo(node: Node, offset: number): void;
198
- /**
199
- * Move selection by word in a text node
200
- */
201
- declare function moveByWord(direction: 'left' | 'right', extend?: boolean): boolean;
202
- /**
203
- * Move to start/end of line
204
- */
205
- declare function moveToLineEdge(edge: 'start' | 'end', extend?: boolean): boolean;
206
- /**
207
- * Parse a keyboard event into a navigation action
208
- */
209
- declare function parseNavigationAction(event: KeyboardEvent): NavigationAction | null;
210
- /**
211
- * Handle a keyboard navigation event
212
- * Returns true if the event was handled
213
- */
214
- declare function handleNavigationKey(event: KeyboardEvent, options?: {
215
- onDocumentStart?: () => void;
216
- onDocumentEnd?: () => void;
217
- }): boolean;
218
- /**
219
- * Check if an event is a navigation key event
220
- */
221
- declare function isNavigationKey(event: KeyboardEvent): boolean;
222
- /**
223
- * Expand selection to word boundaries
224
- * Used for double-click word selection
225
- */
226
- declare function expandSelectionToWord(): boolean;
227
- /**
228
- * Get the word at the current cursor position
229
- */
230
- declare function getWordAtCursor(): string | null;
231
- /**
232
- * Check if a keyboard event matches a shortcut definition
233
- */
234
- declare function matchesShortcut(event: KeyboardEvent, shortcut: KeyboardShortcut): boolean;
235
- /**
236
- * Common navigation shortcuts
237
- */
238
- declare const NAVIGATION_SHORTCUTS: {
239
- readonly wordLeft: KeyboardShortcut;
240
- readonly wordRight: KeyboardShortcut;
241
- readonly selectWordLeft: KeyboardShortcut;
242
- readonly selectWordRight: KeyboardShortcut;
243
- readonly lineStart: KeyboardShortcut;
244
- readonly lineEnd: KeyboardShortcut;
245
- readonly selectToLineStart: KeyboardShortcut;
246
- readonly selectToLineEnd: KeyboardShortcut;
247
- readonly documentStart: KeyboardShortcut;
248
- readonly documentEnd: KeyboardShortcut;
249
- readonly selectToDocumentStart: KeyboardShortcut;
250
- readonly selectToDocumentEnd: KeyboardShortcut;
251
- };
252
- /**
253
- * Get a human-readable description of a shortcut
254
- */
255
- declare function describeShortcut(shortcut: KeyboardShortcut): string;
256
- /**
257
- * Get all navigation shortcuts with descriptions
258
- */
259
- declare function getNavigationShortcutDescriptions(): Array<{
260
- action: string;
261
- shortcut: string;
262
- }>;
32
+ import '@eigenpal/docx-core/prosemirror';
33
+ import '@eigenpal/docx-core/layout-engine/types';
263
34
 
264
35
  /**
265
36
  * Template tag types
@@ -399,4 +170,4 @@ declare const templatePlugin: EditorPlugin<TemplatePluginState>;
399
170
  */
400
171
  declare const VERSION = "0.0.2";
401
172
 
402
- export { ANNOTATION_PANEL_STYLES, AnnotationPanel, EditorPlugin, type KeyboardShortcut, NAVIGATION_SHORTCUTS, type NavigationAction, type NavigationDirection, type NavigationUnit, PluginPanelProps, TEMPLATE_DECORATION_STYLES, type TagType, type TemplateTag, VERSION, type WordSelectionResult, createDoubleClickWordSelector, createPlugin as createTemplatePlugin, createTemplatePlugin as createTemplateProseMirrorPlugin, createTripleClickParagraphSelector, describeShortcut, expandSelectionToWord, expandSelectionToWordBoundaries, extendSelectionTo, findNextWordStart, findPreviousWordStart, findVisualLineEnd, findVisualLineStart, findWordAt, findWordBoundaries, findWordEnd, findWordStart, getNavigationShortcutDescriptions, getSelectionInfo, getTemplateTags as getTemplatePluginTags, getWordAt, getWordAtCursor, handleClickForMultiClick, handleNavigationKey, isNavigationKey, isPunctuation, isWhitespace$1 as isWhitespace, isWhitespace as isWhitespaceChar, isWordCharacter as isWordChar, isWordCharacter$1 as isWordCharacter, matchesShortcut, moveByWord, moveToLineEdge, parseNavigationAction, selectParagraphAtCursor, selectWordAtCursor, selectWordInTextNode, setHoveredElement, setSelectedElement, setSelectionPosition, templatePlugin, templatePluginKey };
173
+ export { ANNOTATION_PANEL_STYLES, AnnotationPanel, EditorPlugin, TEMPLATE_DECORATION_STYLES, type TagType, type TemplateTag, VERSION, createPlugin as createTemplatePlugin, createTemplatePlugin as createTemplateProseMirrorPlugin, getTemplateTags as getTemplatePluginTags, setHoveredElement, setSelectedElement, templatePlugin, templatePluginKey };