@postnzt/docx-js-editor 0.0.33

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 (117) hide show
  1. package/dist/ClipboardManager-C0rTRkVQ.d.ts +464 -0
  2. package/dist/ClipboardManager-CgpKW2At.d.mts +464 -0
  3. package/dist/DocumentAgent-BqA9EJ3F.d.mts +442 -0
  4. package/dist/DocumentAgent-CRCXiBT7.d.ts +442 -0
  5. package/dist/FindReplaceDialog-KNJETYJX.js +1 -0
  6. package/dist/FindReplaceDialog-YW3R4FHM.mjs +1 -0
  7. package/dist/FootnotePropertiesDialog-452A4UT5.js +1 -0
  8. package/dist/FootnotePropertiesDialog-H24AC5XK.mjs +1 -0
  9. package/dist/HyperlinkDialog-GBAYMTUE.js +1 -0
  10. package/dist/HyperlinkDialog-HNYTXDCB.mjs +1 -0
  11. package/dist/ImagePositionDialog-B4RLP2W5.mjs +1 -0
  12. package/dist/ImagePositionDialog-M65BYQQE.js +1 -0
  13. package/dist/ImagePropertiesDialog-JOGW3WDU.mjs +1 -0
  14. package/dist/ImagePropertiesDialog-O4WQSF5M.js +1 -0
  15. package/dist/PageSetupDialog-2GIBTKMJ.js +1 -0
  16. package/dist/PageSetupDialog-Q7SHEZIJ.mjs +1 -0
  17. package/dist/TablePropertiesDialog-LMXWX3FI.mjs +1 -0
  18. package/dist/TablePropertiesDialog-WOZ4ES3H.js +1 -0
  19. package/dist/agentApi-BVHzyk2l.d.mts +2239 -0
  20. package/dist/agentApi-BVHzyk2l.d.ts +2239 -0
  21. package/dist/chunk-2HDYCD2Q.mjs +1 -0
  22. package/dist/chunk-377ZVTSE.js +2 -0
  23. package/dist/chunk-37SLIJPH.mjs +58 -0
  24. package/dist/chunk-4VUZBV2S.js +1 -0
  25. package/dist/chunk-6WPRCJ5A.mjs +1 -0
  26. package/dist/chunk-7MGFEP2R.mjs +26 -0
  27. package/dist/chunk-7QTNB64A.mjs +9 -0
  28. package/dist/chunk-AARNCPWR.js +1 -0
  29. package/dist/chunk-AU5NVRHP.js +2 -0
  30. package/dist/chunk-BP3V2HDD.js +261 -0
  31. package/dist/chunk-BUEMG4NW.js +1 -0
  32. package/dist/chunk-DC65PJYE.js +4 -0
  33. package/dist/chunk-DLVLK5FT.mjs +24 -0
  34. package/dist/chunk-EV3CM6TU.js +1 -0
  35. package/dist/chunk-FVUGBRDD.js +1 -0
  36. package/dist/chunk-GZOCOWWB.mjs +2 -0
  37. package/dist/chunk-H5NTJZO4.js +1 -0
  38. package/dist/chunk-IFPN3NT3.js +3 -0
  39. package/dist/chunk-KCOGY3V2.js +10 -0
  40. package/dist/chunk-KUL2SDYC.js +26 -0
  41. package/dist/chunk-LFZXSNOF.mjs +261 -0
  42. package/dist/chunk-LYBG4YI7.mjs +1 -0
  43. package/dist/chunk-M5F4SK3W.mjs +1 -0
  44. package/dist/chunk-P7WEP4JU.js +9 -0
  45. package/dist/chunk-PB7VMDDP.js +24 -0
  46. package/dist/chunk-QAZ4233N.mjs +1 -0
  47. package/dist/chunk-QSUPYUOP.js +2 -0
  48. package/dist/chunk-QTSXJRP6.mjs +1 -0
  49. package/dist/chunk-QVPR2W5S.js +1 -0
  50. package/dist/chunk-RTFUE3KK.mjs +10 -0
  51. package/dist/chunk-SCYTWBF5.mjs +111 -0
  52. package/dist/chunk-SE5EN2QL.js +1 -0
  53. package/dist/chunk-T6X4C2QO.js +111 -0
  54. package/dist/chunk-TAUMSKRE.mjs +1 -0
  55. package/dist/chunk-W53SI3XW.mjs +1 -0
  56. package/dist/chunk-WOHFANC5.mjs +3 -0
  57. package/dist/chunk-X5A54T6S.mjs +4 -0
  58. package/dist/chunk-YKBSKEBS.mjs +2 -0
  59. package/dist/chunk-Z26WOH6R.mjs +2 -0
  60. package/dist/chunk-ZJNGMDRE.js +58 -0
  61. package/dist/clipboard-Cu80iVDh.d.ts +1181 -0
  62. package/dist/clipboard-dFROLI95.d.mts +1181 -0
  63. package/dist/colorResolver-BwI_Uxp3.d.mts +662 -0
  64. package/dist/colorResolver-Dlmk3itT.d.ts +662 -0
  65. package/dist/core-plugins-reexport.d.mts +31 -0
  66. package/dist/core-plugins-reexport.d.ts +31 -0
  67. package/dist/core-plugins-reexport.js +1 -0
  68. package/dist/core-plugins-reexport.mjs +1 -0
  69. package/dist/core-reexport.d.mts +309 -0
  70. package/dist/core-reexport.d.ts +309 -0
  71. package/dist/core-reexport.js +1 -0
  72. package/dist/core-reexport.mjs +1 -0
  73. package/dist/executor-L2MVKMXO.js +1 -0
  74. package/dist/executor-XKBCCVNY.mjs +1 -0
  75. package/dist/fontLoader-BI9ZoACv.d.ts +176 -0
  76. package/dist/fontLoader-DicgJidU.d.mts +176 -0
  77. package/dist/headless-reexport.d.mts +195 -0
  78. package/dist/headless-reexport.d.ts +195 -0
  79. package/dist/headless-reexport.js +4 -0
  80. package/dist/headless-reexport.mjs +4 -0
  81. package/dist/index.css +1 -0
  82. package/dist/index.d.mts +480 -0
  83. package/dist/index.d.ts +480 -0
  84. package/dist/index.js +112 -0
  85. package/dist/index.mjs +112 -0
  86. package/dist/lib-BCT2DRYI.mjs +1 -0
  87. package/dist/lib-U35UU4OU.js +1 -0
  88. package/dist/mcp-reexport.d.mts +156 -0
  89. package/dist/mcp-reexport.d.ts +156 -0
  90. package/dist/mcp-reexport.js +16 -0
  91. package/dist/mcp-reexport.mjs +16 -0
  92. package/dist/processTemplate-5ZST2Q5L.js +1 -0
  93. package/dist/processTemplate-LRHXOWMZ.mjs +1 -0
  94. package/dist/react-Cl2n0F5S.d.ts +1091 -0
  95. package/dist/react-DZlAKNXg.d.mts +1091 -0
  96. package/dist/react.css +1 -0
  97. package/dist/react.d.mts +10 -0
  98. package/dist/react.d.ts +10 -0
  99. package/dist/react.js +1 -0
  100. package/dist/react.mjs +1 -0
  101. package/dist/registry-D4FQ9aKX.d.mts +165 -0
  102. package/dist/registry-DrYyUXQr.d.ts +165 -0
  103. package/dist/selectionRects-DEX5THEG.js +1 -0
  104. package/dist/selectionRects-SQTAHMCH.mjs +1 -0
  105. package/dist/styles.css +1 -0
  106. package/dist/types-B3LkfO0u.d.mts +310 -0
  107. package/dist/types-igZ1x_e4.d.ts +310 -0
  108. package/dist/ui.d.mts +2005 -0
  109. package/dist/ui.d.ts +2005 -0
  110. package/dist/ui.js +1 -0
  111. package/dist/ui.mjs +1 -0
  112. package/dist/variableDetector-CIqTek7A.d.mts +204 -0
  113. package/dist/variableDetector-CkYvLv62.d.ts +204 -0
  114. package/i18n/de.json +745 -0
  115. package/i18n/en.json +745 -0
  116. package/i18n/pl.json +745 -0
  117. package/package.json +127 -0
package/dist/ui.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';var chunkT6X4C2QO_js=require('./chunk-T6X4C2QO.js'),chunkDC65PJYE_js=require('./chunk-DC65PJYE.js'),chunkAU5NVRHP_js=require('./chunk-AU5NVRHP.js'),chunk377ZVTSE_js=require('./chunk-377ZVTSE.js');require('./chunk-QSUPYUOP.js'),require('./chunk-QVPR2W5S.js'),require('./chunk-4VUZBV2S.js'),require('./chunk-SE5EN2QL.js'),require('./chunk-H5NTJZO4.js');Object.defineProperty(exports,"ColorPicker",{enumerable:true,get:function(){return chunkT6X4C2QO_js.k}});Object.defineProperty(exports,"ContextMenu",{enumerable:true,get:function(){return chunkT6X4C2QO_js.a}});Object.defineProperty(exports,"InsertImageDialog",{enumerable:true,get:function(){return chunkT6X4C2QO_js.V}});Object.defineProperty(exports,"InsertSymbolDialog",{enumerable:true,get:function(){return chunkT6X4C2QO_js.da}});Object.defineProperty(exports,"InsertTableDialog",{enumerable:true,get:function(){return chunkT6X4C2QO_js.O}});Object.defineProperty(exports,"KeyboardShortcutsDialog",{enumerable:true,get:function(){return chunkT6X4C2QO_js.qa}});Object.defineProperty(exports,"LoadingIndicator",{enumerable:true,get:function(){return chunkT6X4C2QO_js.B}});Object.defineProperty(exports,"PasteSpecialDialog",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ka}});Object.defineProperty(exports,"PrintButton",{enumerable:true,get:function(){return chunkT6X4C2QO_js.l}});Object.defineProperty(exports,"PrintStyles",{enumerable:true,get:function(){return chunkT6X4C2QO_js.m}});Object.defineProperty(exports,"ResponsePreview",{enumerable:true,get:function(){return chunkT6X4C2QO_js.g}});Object.defineProperty(exports,"ResponsiveToolbar",{enumerable:true,get:function(){return chunkT6X4C2QO_js.J}});Object.defineProperty(exports,"ResponsiveToolbarGroup",{enumerable:true,get:function(){return chunkT6X4C2QO_js.K}});Object.defineProperty(exports,"SYMBOL_CATEGORIES",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ca}});Object.defineProperty(exports,"TableInsertButtons",{enumerable:true,get:function(){return chunkT6X4C2QO_js.u}});Object.defineProperty(exports,"TableMergeButton",{enumerable:true,get:function(){return chunkT6X4C2QO_js.t}});Object.defineProperty(exports,"UnsavedIndicator",{enumerable:true,get:function(){return chunkT6X4C2QO_js.v}});Object.defineProperty(exports,"calculateFitDimensions",{enumerable:true,get:function(){return chunkT6X4C2QO_js._}});Object.defineProperty(exports,"clampTableConfig",{enumerable:true,get:function(){return chunkT6X4C2QO_js.S}});Object.defineProperty(exports,"createChangeTracker",{enumerable:true,get:function(){return chunkT6X4C2QO_js.A}});Object.defineProperty(exports,"createDefaultTableConfig",{enumerable:true,get:function(){return chunkT6X4C2QO_js.Q}});Object.defineProperty(exports,"createErrorResponse",{enumerable:true,get:function(){return chunkT6X4C2QO_js.j}});Object.defineProperty(exports,"createMockResponse",{enumerable:true,get:function(){return chunkT6X4C2QO_js.i}});Object.defineProperty(exports,"createToolbarItem",{enumerable:true,get:function(){return chunkT6X4C2QO_js.L}});Object.defineProperty(exports,"createToolbarItems",{enumerable:true,get:function(){return chunkT6X4C2QO_js.M}});Object.defineProperty(exports,"dataUrlToBlob",{enumerable:true,get:function(){return chunkT6X4C2QO_js.$}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunkT6X4C2QO_js.H}});Object.defineProperty(exports,"formatFileSize",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ba}});Object.defineProperty(exports,"formatPrintPageRange",{enumerable:true,get:function(){return chunkT6X4C2QO_js.r}});Object.defineProperty(exports,"formatShortcutKeys",{enumerable:true,get:function(){return chunkT6X4C2QO_js.xa}});Object.defineProperty(exports,"formatTableDimensions",{enumerable:true,get:function(){return chunkT6X4C2QO_js.T}});Object.defineProperty(exports,"getActionShortcut",{enumerable:true,get:function(){return chunkT6X4C2QO_js.c}});Object.defineProperty(exports,"getAllActions",{enumerable:true,get:function(){return chunkT6X4C2QO_js.f}});Object.defineProperty(exports,"getAllCategories",{enumerable:true,get:function(){return chunkT6X4C2QO_js.wa}});Object.defineProperty(exports,"getAllIndicatorPositions",{enumerable:true,get:function(){return chunkT6X4C2QO_js.z}});Object.defineProperty(exports,"getAllIndicatorVariants",{enumerable:true,get:function(){return chunkT6X4C2QO_js.y}});Object.defineProperty(exports,"getAllLoadingSizes",{enumerable:true,get:function(){return chunkT6X4C2QO_js.G}});Object.defineProperty(exports,"getAllLoadingVariants",{enumerable:true,get:function(){return chunkT6X4C2QO_js.F}});Object.defineProperty(exports,"getAllPasteOptions",{enumerable:true,get:function(){return chunkT6X4C2QO_js.na}});Object.defineProperty(exports,"getCategoryLabel",{enumerable:true,get:function(){return chunkT6X4C2QO_js.va}});Object.defineProperty(exports,"getCommonShortcuts",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ua}});Object.defineProperty(exports,"getDefaultActions",{enumerable:true,get:function(){return chunkT6X4C2QO_js.e}});Object.defineProperty(exports,"getDefaultPasteOption",{enumerable:true,get:function(){return chunkT6X4C2QO_js.oa}});Object.defineProperty(exports,"getDefaultPrintOptions",{enumerable:true,get:function(){return chunkT6X4C2QO_js.p}});Object.defineProperty(exports,"getDefaultShortcuts",{enumerable:true,get:function(){return chunkT6X4C2QO_js.sa}});Object.defineProperty(exports,"getImageAcceptString",{enumerable:true,get:function(){return chunkT6X4C2QO_js.Z}});Object.defineProperty(exports,"getImageDimensions",{enumerable:true,get:function(){return chunkT6X4C2QO_js.aa}});Object.defineProperty(exports,"getLoadingVariantLabel",{enumerable:true,get:function(){return chunkT6X4C2QO_js.E}});Object.defineProperty(exports,"getPasteOption",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ma}});Object.defineProperty(exports,"getRecommendedPriority",{enumerable:true,get:function(){return chunkT6X4C2QO_js.N}});Object.defineProperty(exports,"getShortcutsByCategory",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ta}});Object.defineProperty(exports,"getSupportedImageExtensions",{enumerable:true,get:function(){return chunkT6X4C2QO_js.Y}});Object.defineProperty(exports,"getSymbolCategories",{enumerable:true,get:function(){return chunkT6X4C2QO_js.fa}});Object.defineProperty(exports,"getSymbolUnicodeInfo",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ha}});Object.defineProperty(exports,"getSymbolsByCategory",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ga}});Object.defineProperty(exports,"getTablePresets",{enumerable:true,get:function(){return chunkT6X4C2QO_js.U}});Object.defineProperty(exports,"getVariantLabel",{enumerable:true,get:function(){return chunkT6X4C2QO_js.x}});Object.defineProperty(exports,"isActionAvailable",{enumerable:true,get:function(){return chunkT6X4C2QO_js.d}});Object.defineProperty(exports,"isPasteSpecialShortcut",{enumerable:true,get:function(){return chunkT6X4C2QO_js.pa}});Object.defineProperty(exports,"isPrintSupported",{enumerable:true,get:function(){return chunkT6X4C2QO_js.s}});Object.defineProperty(exports,"isValidImageFile",{enumerable:true,get:function(){return chunkT6X4C2QO_js.X}});Object.defineProperty(exports,"isValidTableConfig",{enumerable:true,get:function(){return chunkT6X4C2QO_js.R}});Object.defineProperty(exports,"openPrintWindow",{enumerable:true,get:function(){return chunkT6X4C2QO_js.o}});Object.defineProperty(exports,"parsePageRange",{enumerable:true,get:function(){return chunkT6X4C2QO_js.q}});Object.defineProperty(exports,"searchSymbols",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ia}});Object.defineProperty(exports,"symbolFromCodePoint",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ja}});Object.defineProperty(exports,"triggerPrint",{enumerable:true,get:function(){return chunkT6X4C2QO_js.n}});Object.defineProperty(exports,"useContextMenu",{enumerable:true,get:function(){return chunkT6X4C2QO_js.b}});Object.defineProperty(exports,"useInsertImageDialog",{enumerable:true,get:function(){return chunkT6X4C2QO_js.W}});Object.defineProperty(exports,"useInsertSymbolDialog",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ea}});Object.defineProperty(exports,"useInsertTableDialog",{enumerable:true,get:function(){return chunkT6X4C2QO_js.P}});Object.defineProperty(exports,"useKeyboardShortcutsDialog",{enumerable:true,get:function(){return chunkT6X4C2QO_js.ra}});Object.defineProperty(exports,"useLoading",{enumerable:true,get:function(){return chunkT6X4C2QO_js.C}});Object.defineProperty(exports,"useLoadingOperations",{enumerable:true,get:function(){return chunkT6X4C2QO_js.D}});Object.defineProperty(exports,"usePasteSpecial",{enumerable:true,get:function(){return chunkT6X4C2QO_js.la}});Object.defineProperty(exports,"useResponsePreview",{enumerable:true,get:function(){return chunkT6X4C2QO_js.h}});Object.defineProperty(exports,"useResponsiveToolbar",{enumerable:true,get:function(){return chunkT6X4C2QO_js.I}});Object.defineProperty(exports,"useUnsavedChanges",{enumerable:true,get:function(){return chunkT6X4C2QO_js.w}});Object.defineProperty(exports,"AdvancedColorPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.k}});Object.defineProperty(exports,"AlignmentButtons",{enumerable:true,get:function(){return chunkDC65PJYE_js.l}});Object.defineProperty(exports,"FontPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.g}});Object.defineProperty(exports,"FontSizePicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.j}});Object.defineProperty(exports,"HorizontalRuler",{enumerable:true,get:function(){return chunkDC65PJYE_js.E}});Object.defineProperty(exports,"LineSpacingPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.o}});Object.defineProperty(exports,"ListButtons",{enumerable:true,get:function(){return chunkDC65PJYE_js.m}});Object.defineProperty(exports,"StylePicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.p}});Object.defineProperty(exports,"TableBorderColorPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.s}});Object.defineProperty(exports,"TableBorderPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.r}});Object.defineProperty(exports,"TableBorderWidthPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.t}});Object.defineProperty(exports,"TableCellFillPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.u}});Object.defineProperty(exports,"TableMoreDropdown",{enumerable:true,get:function(){return chunkDC65PJYE_js.v}});Object.defineProperty(exports,"TableToolbar",{enumerable:true,get:function(){return chunkDC65PJYE_js.da}});Object.defineProperty(exports,"TextContextMenu",{enumerable:true,get:function(){return chunkDC65PJYE_js.Z}});Object.defineProperty(exports,"Toolbar",{enumerable:true,get:function(){return chunkDC65PJYE_js.D}});Object.defineProperty(exports,"ToolbarButton",{enumerable:true,get:function(){return chunkDC65PJYE_js.A}});Object.defineProperty(exports,"ToolbarGroup",{enumerable:true,get:function(){return chunkDC65PJYE_js.B}});Object.defineProperty(exports,"ToolbarSeparator",{enumerable:true,get:function(){return chunkDC65PJYE_js.C}});Object.defineProperty(exports,"ZoomControl",{enumerable:true,get:function(){return chunkDC65PJYE_js.q}});Object.defineProperty(exports,"addColumn",{enumerable:true,get:function(){return chunkDC65PJYE_js.ja}});Object.defineProperty(exports,"addRow",{enumerable:true,get:function(){return chunkDC65PJYE_js.ha}});Object.defineProperty(exports,"createDefaultListState",{enumerable:true,get:function(){return chunkDC65PJYE_js.n}});Object.defineProperty(exports,"createTableContext",{enumerable:true,get:function(){return chunkDC65PJYE_js.ea}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkDC65PJYE_js.ka}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkDC65PJYE_js.ia}});Object.defineProperty(exports,"getCellAt",{enumerable:true,get:function(){return chunkDC65PJYE_js.ga}});Object.defineProperty(exports,"getColumnCount",{enumerable:true,get:function(){return chunkDC65PJYE_js.fa}});Object.defineProperty(exports,"getDefaultTextContextMenuItems",{enumerable:true,get:function(){return chunkDC65PJYE_js.ba}});Object.defineProperty(exports,"getMarginInUnits",{enumerable:true,get:function(){return chunkDC65PJYE_js.H}});Object.defineProperty(exports,"getRulerDimensions",{enumerable:true,get:function(){return chunkDC65PJYE_js.G}});Object.defineProperty(exports,"getTextActionLabel",{enumerable:true,get:function(){return chunkDC65PJYE_js.$}});Object.defineProperty(exports,"getTextActionShortcut",{enumerable:true,get:function(){return chunkDC65PJYE_js.aa}});Object.defineProperty(exports,"isTextActionAvailable",{enumerable:true,get:function(){return chunkDC65PJYE_js.ca}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkDC65PJYE_js.la}});Object.defineProperty(exports,"parseMarginFromUnits",{enumerable:true,get:function(){return chunkDC65PJYE_js.I}});Object.defineProperty(exports,"positionToMargin",{enumerable:true,get:function(){return chunkDC65PJYE_js.F}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkDC65PJYE_js.ma}});Object.defineProperty(exports,"useTextContextMenu",{enumerable:true,get:function(){return chunkDC65PJYE_js._}});Object.defineProperty(exports,"FindReplaceDialog",{enumerable:true,get:function(){return chunkAU5NVRHP_js.n}});Object.defineProperty(exports,"createDefaultFindOptions",{enumerable:true,get:function(){return chunkAU5NVRHP_js.a}});Object.defineProperty(exports,"createSearchPattern",{enumerable:true,get:function(){return chunkAU5NVRHP_js.c}});Object.defineProperty(exports,"escapeRegexString",{enumerable:true,get:function(){return chunkAU5NVRHP_js.b}});Object.defineProperty(exports,"findAllMatches",{enumerable:true,get:function(){return chunkAU5NVRHP_js.d}});Object.defineProperty(exports,"findInDocument",{enumerable:true,get:function(){return chunkAU5NVRHP_js.j}});Object.defineProperty(exports,"findInParagraph",{enumerable:true,get:function(){return chunkAU5NVRHP_js.k}});Object.defineProperty(exports,"getDefaultHighlightOptions",{enumerable:true,get:function(){return chunkAU5NVRHP_js.i}});Object.defineProperty(exports,"getMatchCountText",{enumerable:true,get:function(){return chunkAU5NVRHP_js.g}});Object.defineProperty(exports,"isEmptySearch",{enumerable:true,get:function(){return chunkAU5NVRHP_js.h}});Object.defineProperty(exports,"replaceAllInContent",{enumerable:true,get:function(){return chunkAU5NVRHP_js.e}});Object.defineProperty(exports,"replaceFirstInContent",{enumerable:true,get:function(){return chunkAU5NVRHP_js.f}});Object.defineProperty(exports,"scrollToMatch",{enumerable:true,get:function(){return chunkAU5NVRHP_js.l}});Object.defineProperty(exports,"useFindReplace",{enumerable:true,get:function(){return chunkAU5NVRHP_js.m}});Object.defineProperty(exports,"HyperlinkDialog",{enumerable:true,get:function(){return chunk377ZVTSE_js.d}});Object.defineProperty(exports,"useHyperlinkDialog",{enumerable:true,get:function(){return chunk377ZVTSE_js.m}});
package/dist/ui.mjs ADDED
@@ -0,0 +1 @@
1
+ export{k as ColorPicker,a as ContextMenu,V as InsertImageDialog,da as InsertSymbolDialog,O as InsertTableDialog,qa as KeyboardShortcutsDialog,B as LoadingIndicator,ka as PasteSpecialDialog,l as PrintButton,m as PrintStyles,g as ResponsePreview,J as ResponsiveToolbar,K as ResponsiveToolbarGroup,ca as SYMBOL_CATEGORIES,u as TableInsertButtons,t as TableMergeButton,v as UnsavedIndicator,_ as calculateFitDimensions,S as clampTableConfig,A as createChangeTracker,Q as createDefaultTableConfig,j as createErrorResponse,i as createMockResponse,L as createToolbarItem,M as createToolbarItems,$ as dataUrlToBlob,H as delay,ba as formatFileSize,r as formatPrintPageRange,xa as formatShortcutKeys,T as formatTableDimensions,c as getActionShortcut,f as getAllActions,wa as getAllCategories,z as getAllIndicatorPositions,y as getAllIndicatorVariants,G as getAllLoadingSizes,F as getAllLoadingVariants,na as getAllPasteOptions,va as getCategoryLabel,ua as getCommonShortcuts,e as getDefaultActions,oa as getDefaultPasteOption,p as getDefaultPrintOptions,sa as getDefaultShortcuts,Z as getImageAcceptString,aa as getImageDimensions,E as getLoadingVariantLabel,ma as getPasteOption,N as getRecommendedPriority,ta as getShortcutsByCategory,Y as getSupportedImageExtensions,fa as getSymbolCategories,ha as getSymbolUnicodeInfo,ga as getSymbolsByCategory,U as getTablePresets,x as getVariantLabel,d as isActionAvailable,pa as isPasteSpecialShortcut,s as isPrintSupported,X as isValidImageFile,R as isValidTableConfig,o as openPrintWindow,q as parsePageRange,ia as searchSymbols,ja as symbolFromCodePoint,n as triggerPrint,b as useContextMenu,W as useInsertImageDialog,ea as useInsertSymbolDialog,P as useInsertTableDialog,ra as useKeyboardShortcutsDialog,C as useLoading,D as useLoadingOperations,la as usePasteSpecial,h as useResponsePreview,I as useResponsiveToolbar,w as useUnsavedChanges}from'./chunk-SCYTWBF5.mjs';export{k as AdvancedColorPicker,l as AlignmentButtons,g as FontPicker,j as FontSizePicker,E as HorizontalRuler,o as LineSpacingPicker,m as ListButtons,p as StylePicker,s as TableBorderColorPicker,r as TableBorderPicker,t as TableBorderWidthPicker,u as TableCellFillPicker,v as TableMoreDropdown,da as TableToolbar,Z as TextContextMenu,D as Toolbar,A as ToolbarButton,B as ToolbarGroup,C as ToolbarSeparator,q as ZoomControl,ja as addColumn,ha as addRow,n as createDefaultListState,ea as createTableContext,ka as deleteColumn,ia as deleteRow,ga as getCellAt,fa as getColumnCount,ba as getDefaultTextContextMenuItems,H as getMarginInUnits,G as getRulerDimensions,$ as getTextActionLabel,aa as getTextActionShortcut,ca as isTextActionAvailable,la as mergeCells,I as parseMarginFromUnits,F as positionToMargin,ma as splitCell,_ as useTextContextMenu}from'./chunk-X5A54T6S.mjs';export{n as FindReplaceDialog,a as createDefaultFindOptions,c as createSearchPattern,b as escapeRegexString,d as findAllMatches,j as findInDocument,k as findInParagraph,i as getDefaultHighlightOptions,g as getMatchCountText,h as isEmptySearch,e as replaceAllInContent,f as replaceFirstInContent,l as scrollToMatch,m as useFindReplace}from'./chunk-Z26WOH6R.mjs';export{d as HyperlinkDialog,m as useHyperlinkDialog}from'./chunk-YKBSKEBS.mjs';import'./chunk-GZOCOWWB.mjs';import'./chunk-6WPRCJ5A.mjs';import'./chunk-QAZ4233N.mjs';import'./chunk-LYBG4YI7.mjs';import'./chunk-TAUMSKRE.mjs';
@@ -0,0 +1,204 @@
1
+ import { D as Document, d as DocumentBody, a as Paragraph } from './agentApi-BVHzyk2l.mjs';
2
+
3
+ /**
4
+ * DOCX Repacker - Repack modified document into valid DOCX
5
+ *
6
+ * Takes a Document with modified content and creates a new DOCX file
7
+ * by updating document.xml while preserving all other files from
8
+ * the original ZIP archive.
9
+ *
10
+ * This ensures round-trip fidelity:
11
+ * - styles.xml, theme1.xml, fontTable.xml remain untouched
12
+ * - Media files preserved
13
+ * - Relationships preserved
14
+ * - Only document.xml is updated with new content
15
+ *
16
+ * OOXML Package Structure:
17
+ * - [Content_Types].xml - Content type declarations
18
+ * - _rels/.rels - Package relationships
19
+ * - word/document.xml - Main document (modified)
20
+ * - word/styles.xml - Styles (preserved)
21
+ * - word/theme/theme1.xml - Theme (preserved)
22
+ * - word/numbering.xml - Numbering (preserved)
23
+ * - word/fontTable.xml - Font table (preserved)
24
+ * - word/settings.xml - Settings (preserved)
25
+ * - word/header*.xml - Headers (preserved)
26
+ * - word/footer*.xml - Footers (preserved)
27
+ * - word/footnotes.xml - Footnotes (preserved)
28
+ * - word/endnotes.xml - Endnotes (preserved)
29
+ * - word/media/* - Media files (preserved)
30
+ * - word/_rels/document.xml.rels - Document relationships (preserved)
31
+ * - docProps/* - Document properties (preserved)
32
+ */
33
+
34
+ /**
35
+ * Options for repacking DOCX
36
+ */
37
+ interface RepackOptions {
38
+ /** Compression level (0-9, default: 6) */
39
+ compressionLevel?: number;
40
+ /** Whether to update modification date in docProps/core.xml */
41
+ updateModifiedDate?: boolean;
42
+ /** Custom modifier name for lastModifiedBy */
43
+ modifiedBy?: string;
44
+ }
45
+ /**
46
+ * Repack a Document into a valid DOCX file
47
+ *
48
+ * @param doc - Document with modified content
49
+ * @param options - Optional repack options
50
+ * @returns Promise resolving to DOCX as ArrayBuffer
51
+ * @throws Error if document has no original buffer for round-trip
52
+ */
53
+ declare function repackDocx(doc: Document, options?: RepackOptions): Promise<ArrayBuffer>;
54
+ /**
55
+ * Update multiple files in a DOCX buffer
56
+ *
57
+ * @param originalBuffer - Original DOCX as ArrayBuffer
58
+ * @param updates - Map of path -> content for files to update
59
+ * @param options - Optional repack options
60
+ * @returns Promise resolving to DOCX as ArrayBuffer
61
+ */
62
+ declare function updateMultipleFiles(originalBuffer: ArrayBuffer, updates: Map<string, string | ArrayBuffer>, options?: RepackOptions): Promise<ArrayBuffer>;
63
+ /**
64
+ * Create a new DOCX from a Document (without requiring original buffer)
65
+ *
66
+ * @param doc - Document to serialize
67
+ * @returns Promise resolving to DOCX as ArrayBuffer
68
+ */
69
+ declare function createDocx(doc: Document): Promise<ArrayBuffer>;
70
+
71
+ interface PatchValidationResult {
72
+ safe: boolean;
73
+ reason?: string;
74
+ }
75
+ /**
76
+ * Validate that a selective patch can be safely applied.
77
+ *
78
+ * Checks:
79
+ * - All changed paraIds exist in original XML (exactly once)
80
+ * - All changed paraIds exist in serialized XML (exactly once)
81
+ * - Paragraph count matches between original and serialized
82
+ */
83
+ declare function validatePatchSafety(originalXml: string, serializedXml: string, changedIds: Set<string>): PatchValidationResult;
84
+ /**
85
+ * Build a patched document.xml by splicing new paragraph XML into
86
+ * the original at the correct offsets. Only changed paragraphs
87
+ * are replaced; everything else is preserved byte-for-byte.
88
+ *
89
+ * Returns null if any step fails.
90
+ */
91
+ declare function buildPatchedDocumentXml(originalXml: string, serializedXml: string, changedIds: Set<string>): string | null;
92
+
93
+ /**
94
+ * Variable Detector Utility
95
+ *
96
+ * Scans a DOCX document for template variables in the format {variable_name}
97
+ * (standard docxtemplater syntax).
98
+ * Returns a unique, sorted list of variable names found in the document.
99
+ */
100
+
101
+ /**
102
+ * Result of variable detection
103
+ */
104
+ interface VariableDetectionResult {
105
+ /** Unique variable names sorted alphabetically */
106
+ variables: string[];
107
+ /** Total count of variable occurrences */
108
+ totalOccurrences: number;
109
+ /** Variables by location */
110
+ byLocation: {
111
+ body: string[];
112
+ headers: string[];
113
+ footers: string[];
114
+ footnotes: string[];
115
+ endnotes: string[];
116
+ textBoxes: string[];
117
+ };
118
+ /** Variable occurrences with positions */
119
+ occurrences: VariableOccurrence[];
120
+ }
121
+ /**
122
+ * A single variable occurrence with location info
123
+ */
124
+ interface VariableOccurrence {
125
+ /** Variable name (without braces) */
126
+ name: string;
127
+ /** Location type */
128
+ location: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textBox';
129
+ /** Paragraph index within location */
130
+ paragraphIndex?: number;
131
+ /** Section index (for headers/footers) */
132
+ sectionIndex?: number;
133
+ }
134
+ /**
135
+ * Detect all template variables in a document
136
+ *
137
+ * @param doc - The parsed document
138
+ * @returns Array of unique variable names sorted alphabetically
139
+ */
140
+ declare function detectVariables(doc: Document): string[];
141
+ /**
142
+ * Detect variables with detailed information
143
+ *
144
+ * @param doc - The parsed document
145
+ * @returns Detailed detection result
146
+ */
147
+ declare function detectVariablesDetailed(doc: Document): VariableDetectionResult;
148
+ /**
149
+ * Detect variables in document body
150
+ */
151
+ declare function detectVariablesInBody(body: DocumentBody): string[];
152
+ /**
153
+ * Detect variables in a paragraph
154
+ */
155
+ declare function detectVariablesInParagraph(paragraph: Paragraph): string[];
156
+ /**
157
+ * Extract variable names from text
158
+ *
159
+ * @param text - The text to search
160
+ * @returns Array of variable names (without braces)
161
+ */
162
+ declare function extractVariablesFromText(text: string): string[];
163
+ /**
164
+ * Check if text contains template variables
165
+ */
166
+ declare function hasTemplateVariables(text: string): boolean;
167
+ /**
168
+ * Check if a variable name is valid
169
+ */
170
+ declare function isValidVariableName(name: string): boolean;
171
+ /**
172
+ * Sanitize a variable name
173
+ */
174
+ declare function sanitizeVariableName(name: string): string;
175
+ /**
176
+ * Format a variable name with braces (standard docxtemplater syntax)
177
+ */
178
+ declare function formatVariable(name: string): string;
179
+ /**
180
+ * Parse a variable string to get the name
181
+ */
182
+ declare function parseVariable(variable: string): string | null;
183
+ /**
184
+ * Replace variables in text with values
185
+ *
186
+ * @param text - The text containing variables
187
+ * @param values - Map of variable name to replacement value
188
+ * @returns Text with variables replaced
189
+ */
190
+ declare function replaceVariables(text: string, values: Record<string, string>): string;
191
+ /**
192
+ * Replace all variables in text with a placeholder
193
+ *
194
+ * @param text - The text containing variables
195
+ * @param placeholder - Placeholder to use (default: empty string)
196
+ * @returns Text with variables replaced
197
+ */
198
+ declare function removeVariables(text: string, placeholder?: string): string;
199
+ /**
200
+ * Check if document has any template variables
201
+ */
202
+ declare function documentHasVariables(doc: Document): boolean;
203
+
204
+ export { type VariableDetectionResult as V, type VariableOccurrence as a, buildPatchedDocumentXml as b, createDocx as c, detectVariables as d, detectVariablesDetailed as e, detectVariablesInBody as f, detectVariablesInParagraph as g, documentHasVariables as h, extractVariablesFromText as i, formatVariable as j, hasTemplateVariables as k, isValidVariableName as l, repackDocx as m, replaceVariables as n, parseVariable as p, removeVariables as r, sanitizeVariableName as s, updateMultipleFiles as u, validatePatchSafety as v };
@@ -0,0 +1,204 @@
1
+ import { D as Document, d as DocumentBody, a as Paragraph } from './agentApi-BVHzyk2l.js';
2
+
3
+ /**
4
+ * DOCX Repacker - Repack modified document into valid DOCX
5
+ *
6
+ * Takes a Document with modified content and creates a new DOCX file
7
+ * by updating document.xml while preserving all other files from
8
+ * the original ZIP archive.
9
+ *
10
+ * This ensures round-trip fidelity:
11
+ * - styles.xml, theme1.xml, fontTable.xml remain untouched
12
+ * - Media files preserved
13
+ * - Relationships preserved
14
+ * - Only document.xml is updated with new content
15
+ *
16
+ * OOXML Package Structure:
17
+ * - [Content_Types].xml - Content type declarations
18
+ * - _rels/.rels - Package relationships
19
+ * - word/document.xml - Main document (modified)
20
+ * - word/styles.xml - Styles (preserved)
21
+ * - word/theme/theme1.xml - Theme (preserved)
22
+ * - word/numbering.xml - Numbering (preserved)
23
+ * - word/fontTable.xml - Font table (preserved)
24
+ * - word/settings.xml - Settings (preserved)
25
+ * - word/header*.xml - Headers (preserved)
26
+ * - word/footer*.xml - Footers (preserved)
27
+ * - word/footnotes.xml - Footnotes (preserved)
28
+ * - word/endnotes.xml - Endnotes (preserved)
29
+ * - word/media/* - Media files (preserved)
30
+ * - word/_rels/document.xml.rels - Document relationships (preserved)
31
+ * - docProps/* - Document properties (preserved)
32
+ */
33
+
34
+ /**
35
+ * Options for repacking DOCX
36
+ */
37
+ interface RepackOptions {
38
+ /** Compression level (0-9, default: 6) */
39
+ compressionLevel?: number;
40
+ /** Whether to update modification date in docProps/core.xml */
41
+ updateModifiedDate?: boolean;
42
+ /** Custom modifier name for lastModifiedBy */
43
+ modifiedBy?: string;
44
+ }
45
+ /**
46
+ * Repack a Document into a valid DOCX file
47
+ *
48
+ * @param doc - Document with modified content
49
+ * @param options - Optional repack options
50
+ * @returns Promise resolving to DOCX as ArrayBuffer
51
+ * @throws Error if document has no original buffer for round-trip
52
+ */
53
+ declare function repackDocx(doc: Document, options?: RepackOptions): Promise<ArrayBuffer>;
54
+ /**
55
+ * Update multiple files in a DOCX buffer
56
+ *
57
+ * @param originalBuffer - Original DOCX as ArrayBuffer
58
+ * @param updates - Map of path -> content for files to update
59
+ * @param options - Optional repack options
60
+ * @returns Promise resolving to DOCX as ArrayBuffer
61
+ */
62
+ declare function updateMultipleFiles(originalBuffer: ArrayBuffer, updates: Map<string, string | ArrayBuffer>, options?: RepackOptions): Promise<ArrayBuffer>;
63
+ /**
64
+ * Create a new DOCX from a Document (without requiring original buffer)
65
+ *
66
+ * @param doc - Document to serialize
67
+ * @returns Promise resolving to DOCX as ArrayBuffer
68
+ */
69
+ declare function createDocx(doc: Document): Promise<ArrayBuffer>;
70
+
71
+ interface PatchValidationResult {
72
+ safe: boolean;
73
+ reason?: string;
74
+ }
75
+ /**
76
+ * Validate that a selective patch can be safely applied.
77
+ *
78
+ * Checks:
79
+ * - All changed paraIds exist in original XML (exactly once)
80
+ * - All changed paraIds exist in serialized XML (exactly once)
81
+ * - Paragraph count matches between original and serialized
82
+ */
83
+ declare function validatePatchSafety(originalXml: string, serializedXml: string, changedIds: Set<string>): PatchValidationResult;
84
+ /**
85
+ * Build a patched document.xml by splicing new paragraph XML into
86
+ * the original at the correct offsets. Only changed paragraphs
87
+ * are replaced; everything else is preserved byte-for-byte.
88
+ *
89
+ * Returns null if any step fails.
90
+ */
91
+ declare function buildPatchedDocumentXml(originalXml: string, serializedXml: string, changedIds: Set<string>): string | null;
92
+
93
+ /**
94
+ * Variable Detector Utility
95
+ *
96
+ * Scans a DOCX document for template variables in the format {variable_name}
97
+ * (standard docxtemplater syntax).
98
+ * Returns a unique, sorted list of variable names found in the document.
99
+ */
100
+
101
+ /**
102
+ * Result of variable detection
103
+ */
104
+ interface VariableDetectionResult {
105
+ /** Unique variable names sorted alphabetically */
106
+ variables: string[];
107
+ /** Total count of variable occurrences */
108
+ totalOccurrences: number;
109
+ /** Variables by location */
110
+ byLocation: {
111
+ body: string[];
112
+ headers: string[];
113
+ footers: string[];
114
+ footnotes: string[];
115
+ endnotes: string[];
116
+ textBoxes: string[];
117
+ };
118
+ /** Variable occurrences with positions */
119
+ occurrences: VariableOccurrence[];
120
+ }
121
+ /**
122
+ * A single variable occurrence with location info
123
+ */
124
+ interface VariableOccurrence {
125
+ /** Variable name (without braces) */
126
+ name: string;
127
+ /** Location type */
128
+ location: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textBox';
129
+ /** Paragraph index within location */
130
+ paragraphIndex?: number;
131
+ /** Section index (for headers/footers) */
132
+ sectionIndex?: number;
133
+ }
134
+ /**
135
+ * Detect all template variables in a document
136
+ *
137
+ * @param doc - The parsed document
138
+ * @returns Array of unique variable names sorted alphabetically
139
+ */
140
+ declare function detectVariables(doc: Document): string[];
141
+ /**
142
+ * Detect variables with detailed information
143
+ *
144
+ * @param doc - The parsed document
145
+ * @returns Detailed detection result
146
+ */
147
+ declare function detectVariablesDetailed(doc: Document): VariableDetectionResult;
148
+ /**
149
+ * Detect variables in document body
150
+ */
151
+ declare function detectVariablesInBody(body: DocumentBody): string[];
152
+ /**
153
+ * Detect variables in a paragraph
154
+ */
155
+ declare function detectVariablesInParagraph(paragraph: Paragraph): string[];
156
+ /**
157
+ * Extract variable names from text
158
+ *
159
+ * @param text - The text to search
160
+ * @returns Array of variable names (without braces)
161
+ */
162
+ declare function extractVariablesFromText(text: string): string[];
163
+ /**
164
+ * Check if text contains template variables
165
+ */
166
+ declare function hasTemplateVariables(text: string): boolean;
167
+ /**
168
+ * Check if a variable name is valid
169
+ */
170
+ declare function isValidVariableName(name: string): boolean;
171
+ /**
172
+ * Sanitize a variable name
173
+ */
174
+ declare function sanitizeVariableName(name: string): string;
175
+ /**
176
+ * Format a variable name with braces (standard docxtemplater syntax)
177
+ */
178
+ declare function formatVariable(name: string): string;
179
+ /**
180
+ * Parse a variable string to get the name
181
+ */
182
+ declare function parseVariable(variable: string): string | null;
183
+ /**
184
+ * Replace variables in text with values
185
+ *
186
+ * @param text - The text containing variables
187
+ * @param values - Map of variable name to replacement value
188
+ * @returns Text with variables replaced
189
+ */
190
+ declare function replaceVariables(text: string, values: Record<string, string>): string;
191
+ /**
192
+ * Replace all variables in text with a placeholder
193
+ *
194
+ * @param text - The text containing variables
195
+ * @param placeholder - Placeholder to use (default: empty string)
196
+ * @returns Text with variables replaced
197
+ */
198
+ declare function removeVariables(text: string, placeholder?: string): string;
199
+ /**
200
+ * Check if document has any template variables
201
+ */
202
+ declare function documentHasVariables(doc: Document): boolean;
203
+
204
+ export { type VariableDetectionResult as V, type VariableOccurrence as a, buildPatchedDocumentXml as b, createDocx as c, detectVariables as d, detectVariablesDetailed as e, detectVariablesInBody as f, detectVariablesInParagraph as g, documentHasVariables as h, extractVariablesFromText as i, formatVariable as j, hasTemplateVariables as k, isValidVariableName as l, repackDocx as m, replaceVariables as n, parseVariable as p, removeVariables as r, sanitizeVariableName as s, updateMultipleFiles as u, validatePatchSafety as v };