@zeke-02/docx-editor 0.0.34 → 0.0.35
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.
- package/dist/{chunk-DLNS7XC2.js → chunk-6YRWZ32V.js} +9 -9
- package/dist/{chunk-Z7ZLARCQ.mjs → chunk-S67UBZDL.mjs} +9 -9
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{react-D6tMLo0R.d.ts → react-1OO-DXvx.d.ts} +17 -0
- package/dist/{react-8budV7xv.d.mts → react-B1dSZ_w1.d.mts} +17 -0
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ReactEditorPlugin } from './react-
|
|
2
|
-
export { D as DEFAULT_SELECTION_STYLE, a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, E as EditorMode, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, H as HIGH_CONTRAST_SELECTION_STYLE, j as HighlightRect, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, q as ReactSidebarItem, r as RenderAsyncOptions, S as SELECTION_CSS_VARS, s as SelectionHighlightConfig, t as SelectionOverlayProps, u as SelectionRange, v as SidebarItemRenderProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, K as areSelectionStylesInjected, L as clampZoom, M as clearSelection, N as createSelectionChangeHandler, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, W as generateSelectionCSS, X as getHighlightRectStyle, Y as getMergedSelectionRects, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a0 as getSelectedText, a1 as getSelectionBoundingRect, a2 as getSelectionRects, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a5 as hasActiveSelection, a6 as highlightTextRange, a7 as injectSelectionStyles, a8 as isParseError, a9 as isSelectionBackwards, aa as isSelectionWithin, ab as isZoomPreset, ac as mergeAdjacentRects, ad as normalizeSelectionDirection, ae as parseZoom, af as removeSelectionStyles, ag as renderAsync, ah as selectRange, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-
|
|
1
|
+
import { R as ReactEditorPlugin } from './react-B1dSZ_w1.mjs';
|
|
2
|
+
export { D as DEFAULT_SELECTION_STYLE, a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, E as EditorMode, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, H as HIGH_CONTRAST_SELECTION_STYLE, j as HighlightRect, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, q as ReactSidebarItem, r as RenderAsyncOptions, S as SELECTION_CSS_VARS, s as SelectionHighlightConfig, t as SelectionOverlayProps, u as SelectionRange, v as SidebarItemRenderProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, K as areSelectionStylesInjected, L as clampZoom, M as clearSelection, N as createSelectionChangeHandler, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, W as generateSelectionCSS, X as getHighlightRectStyle, Y as getMergedSelectionRects, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a0 as getSelectedText, a1 as getSelectionBoundingRect, a2 as getSelectionRects, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a5 as hasActiveSelection, a6 as highlightTextRange, a7 as injectSelectionStyles, a8 as isParseError, a9 as isSelectionBackwards, aa as isSelectionWithin, ab as isZoomPreset, ac as mergeAdjacentRects, ad as normalizeSelectionDirection, ae as parseZoom, af as removeSelectionStyles, ag as renderAsync, ah as selectRange, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-B1dSZ_w1.mjs';
|
|
3
3
|
export { D as DocumentAgent, g as DocxInput, t as toArrayBuffer } from './DocumentAgent-E8OX_8j0.mjs';
|
|
4
4
|
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-C5fQ4fxP.mjs';
|
|
5
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 './fontLoader-0G00frKD.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ReactEditorPlugin } from './react-
|
|
2
|
-
export { D as DEFAULT_SELECTION_STYLE, a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, E as EditorMode, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, H as HIGH_CONTRAST_SELECTION_STYLE, j as HighlightRect, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, q as ReactSidebarItem, r as RenderAsyncOptions, S as SELECTION_CSS_VARS, s as SelectionHighlightConfig, t as SelectionOverlayProps, u as SelectionRange, v as SidebarItemRenderProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, K as areSelectionStylesInjected, L as clampZoom, M as clearSelection, N as createSelectionChangeHandler, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, W as generateSelectionCSS, X as getHighlightRectStyle, Y as getMergedSelectionRects, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a0 as getSelectedText, a1 as getSelectionBoundingRect, a2 as getSelectionRects, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a5 as hasActiveSelection, a6 as highlightTextRange, a7 as injectSelectionStyles, a8 as isParseError, a9 as isSelectionBackwards, aa as isSelectionWithin, ab as isZoomPreset, ac as mergeAdjacentRects, ad as normalizeSelectionDirection, ae as parseZoom, af as removeSelectionStyles, ag as renderAsync, ah as selectRange, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-
|
|
1
|
+
import { R as ReactEditorPlugin } from './react-1OO-DXvx.js';
|
|
2
|
+
export { D as DEFAULT_SELECTION_STYLE, a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, E as EditorMode, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, H as HIGH_CONTRAST_SELECTION_STYLE, j as HighlightRect, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, q as ReactSidebarItem, r as RenderAsyncOptions, S as SELECTION_CSS_VARS, s as SelectionHighlightConfig, t as SelectionOverlayProps, u as SelectionRange, v as SidebarItemRenderProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, K as areSelectionStylesInjected, L as clampZoom, M as clearSelection, N as createSelectionChangeHandler, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, W as generateSelectionCSS, X as getHighlightRectStyle, Y as getMergedSelectionRects, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a0 as getSelectedText, a1 as getSelectionBoundingRect, a2 as getSelectionRects, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a5 as hasActiveSelection, a6 as highlightTextRange, a7 as injectSelectionStyles, a8 as isParseError, a9 as isSelectionBackwards, aa as isSelectionWithin, ab as isZoomPreset, ac as mergeAdjacentRects, ad as normalizeSelectionDirection, ae as parseZoom, af as removeSelectionStyles, ag as renderAsync, ah as selectRange, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-1OO-DXvx.js';
|
|
3
3
|
export { D as DocumentAgent, g as DocxInput, t as toArrayBuffer } from './DocumentAgent-iedmc_8s.js';
|
|
4
4
|
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-Bp9flT3l.js';
|
|
5
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 './fontLoader-DPdt4JvW.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var chunkDLNS7XC2_js=require('./chunk-DLNS7XC2.js');require('./chunk-EV3CM6TU.js');var chunk3OKYQQQ5_js=require('./chunk-3OKYQQQ5.js'),chunkDC65PJYE_js=require('./chunk-DC65PJYE.js'),chunkAU5NVRHP_js=require('./chunk-AU5NVRHP.js'),chunk377ZVTSE_js=require('./chunk-377ZVTSE.js'),chunkQSUPYUOP_js=require('./chunk-QSUPYUOP.js'),chunkFVUGBRDD_js=require('./chunk-FVUGBRDD.js');require('./chunk-QVPR2W5S.js');var chunkP7WEP4JU_js=require('./chunk-P7WEP4JU.js'),chunk4VUZBV2S_js=require('./chunk-4VUZBV2S.js'),chunkKCOGY3V2_js=require('./chunk-KCOGY3V2.js'),chunkPB7VMDDP_js=require('./chunk-PB7VMDDP.js'),chunkZJNGMDRE_js=require('./chunk-ZJNGMDRE.js'),chunkAARNCPWR_js=require('./chunk-AARNCPWR.js'),chunkKUL2SDYC_js=require('./chunk-KUL2SDYC.js'),chunkBUEMG4NW_js=require('./chunk-BUEMG4NW.js'),chunkSE5EN2QL_js=require('./chunk-SE5EN2QL.js');require('./chunk-IFPN3NT3.js'),require('./chunk-H5NTJZO4.js');var X=require('react'),prosemirrorState=require('prosemirror-state'),prosemirrorView=require('prosemirror-view'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var X__default=/*#__PURE__*/_interopDefault(X);function f(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function w(e){return e?/\s/.test(e):false}function Si(e){return e?/[\p{P}]/u.test(e):false}function bi(e,o){if(o<=0)return 0;o>e.length&&(o=e.length);let t=o;for(;t>0&&w(e[t-1]);)t--;if(t===0)return 0;for(;t>0&&f(e[t-1]);)t--;return t}function xi(e,o){if(o>=e.length)return e.length;o<0&&(o=0);let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&w(e[t]);)t++;return t}function L(e,o){if(o>=e.length)return e.length;let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&!f(e[t]);)t++;return t}function O(e,o){if(o<=0)return 0;let t=o;for(;t>0&&!f(e[t-1]);)t--;for(;t>0&&f(e[t-1]);)t--;return t}function N(e,o){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(o,e.textContent?.length||0)),r.collapse(true);let n=r.getBoundingClientRect().top,a=0,p=o;for(;a<p;){let s=Math.floor((a+p)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-n)<2?p=s:a=s+1;}return {node:e,offset:a}}return null}function k(e,o){if(!window.getSelection())return null;let r=e.textContent?.length||0,i=document.createRange();if(e.nodeType===Node.TEXT_NODE){i.setStart(e,Math.min(o,r)),i.collapse(true);let a=i.getBoundingClientRect().top,p=o,s=r;for(;p<s;){let c=Math.ceil((p+s)/2);i.setStart(e,c),i.collapse(true);let l=i.getBoundingClientRect();Math.abs(l.top-a)<2?p=c:s=c-1;}return {node:e,offset:p}}return null}function Pi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.getRangeAt(0);return {node:o.startContainer,offset:o.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function C(e,o){let t=window.getSelection();if(!t)return;let r=document.createRange(),i=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(o,i)),r.collapse(true),t.removeAllRanges(),t.addRange(r);}function E(e,o){let t=window.getSelection();if(!(!t||!t.anchorNode))try{t.extend(e,Math.min(o,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;t.setBaseAndExtent(t.anchorNode,t.anchorOffset,e,Math.min(o,r));}}function M(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let i=r.textContent||"",n=t.focusOffset,a;return e==="left"?a=O(i,n):a=L(i,n),o?E(r,a):C(r,a),true}function H(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?N(r,t.focusOffset):k(r,t.focusOffset);if(a)return o?E(a.node,a.offset):C(a.node,a.offset),true}let i=r.textContent||"",n=e==="start"?0:i.length;return o?E(r,n):C(r,n),true}function K(e){let{key:o,ctrlKey:t,metaKey:r,shiftKey:i,altKey:n}=e,a=t||r;switch(o){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:i};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:i};break;case "Home":return a?{direction:"left",unit:"document",extend:i}:{direction:"left",unit:"line",extend:i};case "End":return a?{direction:"right",unit:"document",extend:i}:{direction:"right",unit:"line",extend:i}}return null}function Ci(e,o){let t=K(e);if(!t)return false;switch(t.unit){case "word":if((t.direction==="left"||t.direction==="right")&&M(t.direction,t.extend))return e.preventDefault(),true;break;case "line":let r=t.direction==="left"?"start":"end";if(H(r,t.extend))return e.preventDefault(),true;break;case "document":if(t.direction==="left"&&o?.onDocumentStart)return e.preventDefault(),o.onDocumentStart(),true;if(t.direction==="right"&&o?.onDocumentEnd)return e.preventDefault(),o.onDocumentEnd(),true;break}return false}function Ei(e){let{key:o,ctrlKey:t,metaKey:r}=e;return !!((t||r)&&(o==="ArrowLeft"||o==="ArrowRight")||o==="Home"||o==="End")}function Ri(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return false;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;if(i===n)return false;let a=document.createRange();return a.setStart(o,i),a.setEnd(o,n),e.removeAllRanges(),e.addRange(a),true}function vi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return null;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;return i===n?null:t.slice(i,n)}function Ii(e,o){let t=e.ctrlKey||e.metaKey,r=o.ctrlKey||o.metaKey;return e.key.toLowerCase()===o.key.toLowerCase()&&t===!!r&&e.shiftKey===!!o.shiftKey&&e.altKey===!!o.altKey}var u={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let o=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);o.push(r?"\u2318":"Ctrl");}e.shiftKey&&o.push("Shift"),e.altKey&&o.push("Alt");let t=e.key;return t==="ArrowLeft"?t="\u2190":t==="ArrowRight"?t="\u2192":t==="ArrowUp"?t="\u2191":t==="ArrowDown"&&(t="\u2193"),o.push(t),o.join("+")}function wi(){return [{action:"Move by word (left)",shortcut:m(u.wordLeft)},{action:"Move by word (right)",shortcut:m(u.wordRight)},{action:"Select word (left)",shortcut:m(u.selectWordLeft)},{action:"Select word (right)",shortcut:m(u.selectWordRight)},{action:"Go to line start",shortcut:m(u.lineStart)},{action:"Go to line end",shortcut:m(u.lineEnd)},{action:"Select to line start",shortcut:m(u.selectToLineStart)},{action:"Select to line end",shortcut:m(u.selectToLineEnd)},{action:"Go to document start",shortcut:m(u.documentStart)},{action:"Go to document end",shortcut:m(u.documentEnd)},{action:"Select to document start",shortcut:m(u.selectToDocumentStart)},{action:"Select to document end",shortcut:m(u.selectToDocumentEnd)}]}var B=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,d=new prosemirrorState.PluginKey("template");function Oi(e,o,t){return `${e}:${o}:${t}`}function F(e){let o=[];e.descendants((s,c)=>(s.isText&&s.text&&o.push({text:s.text,pos:c}),true));let t="",r=[];for(let s of o){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);t+=s.text;}let i=[],n=[],a=new Map,p;for(B.lastIndex=0;(p=B.exec(t))!==null;){let[s,c,l]=p,y=r[p.index],h=r[p.index+s.length-1]+1,g;c==="#"?g="sectionStart":c==="/"?g="sectionEnd":c==="^"?g="invertedStart":c==="@"?g="raw":g="variable";let T=`${g}:${l}`,D=a.get(T)??0;a.set(T,D+1);let P={id:Oi(g,l,D),type:g,name:l,rawTag:s,from:y,to:h};if(g==="sectionStart"||g==="invertedStart")P.nestedVars=[],n.push(P);else if(g==="sectionEnd"){for(let b=n.length-1;b>=0;b--)if(n[b].name===l){n.splice(b,1);break}}else g==="variable"&&n.length>0&&(n[n.length-1].nestedVars?.push(l),P.insideSection=true);i.push(P);}return i}function Ni(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function A(e,o,t,r){let i=[];for(let n of o){let a=n.id===t,p=n.id===r,s=Ni(n.type),c=["docx-template-tag"];a&&c.push("hovered"),p&&c.push("selected"),i.push(prosemirrorView.Decoration.inline(n.from,n.to,{class:c.join(" "),"data-tag-id":n.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return prosemirrorView.DecorationSet.create(e,i)}function ki(e,o){if(e.length!==o.length)return false;for(let t=0;t<e.length;t++)if(e[t].id!==o[t].id)return false;return true}function R(){return new prosemirrorState.Plugin({key:d,state:{init(e,o){let t=F(o.doc);return {tags:t,decorations:A(o.doc,t)}},apply(e,o,t,r){if(e.docChanged){let n=F(r.doc),a=ki(o.tags,n);return {tags:n,decorations:a?o.decorations.map(e.mapping,e.doc):A(r.doc,n,o.hoveredId,o.selectedId),hoveredId:o.hoveredId,selectedId:o.selectedId}}let i=e.getMeta(d);if(i){let n=i.hoveredId??o.hoveredId,a=i.selectedId??o.selectedId;return {...o,hoveredId:n,selectedId:a,decorations:A(r.doc,o.tags,n,a)}}return {...o,decorations:o.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return d.getState(e)?.decorations??prosemirrorView.DecorationSet.empty},handleClick(e,o){let r=(d.getState(e.state)?.tags??[]).find(n=>o>=n.from&&o<=n.to);return r?(e.dispatch(e.state.tr.setMeta(d,{selectedId:r.id})),true):(d.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(d,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,o){let r=o.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,i=d.getState(e.state)?.hoveredId;return r!==i&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:r})),false},mouseout(e,o){return o.relatedTarget?.closest?.("[data-tag-id]")||d.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:void 0})),false}}}})}function W(e){return d.getState(e)?.tags??[]}function x(e,o){e.dispatch(e.state.tr.setMeta(d,{hoveredId:o}));}function v(e,o){e.dispatch(e.state.tr.setMeta(d,{selectedId:o}));}var I=`
|
|
1
|
+
'use strict';var chunk6YRWZ32V_js=require('./chunk-6YRWZ32V.js');require('./chunk-EV3CM6TU.js');var chunk3OKYQQQ5_js=require('./chunk-3OKYQQQ5.js'),chunkDC65PJYE_js=require('./chunk-DC65PJYE.js'),chunkAU5NVRHP_js=require('./chunk-AU5NVRHP.js'),chunk377ZVTSE_js=require('./chunk-377ZVTSE.js'),chunkQSUPYUOP_js=require('./chunk-QSUPYUOP.js'),chunkFVUGBRDD_js=require('./chunk-FVUGBRDD.js');require('./chunk-QVPR2W5S.js');var chunkP7WEP4JU_js=require('./chunk-P7WEP4JU.js'),chunk4VUZBV2S_js=require('./chunk-4VUZBV2S.js'),chunkKCOGY3V2_js=require('./chunk-KCOGY3V2.js'),chunkPB7VMDDP_js=require('./chunk-PB7VMDDP.js'),chunkZJNGMDRE_js=require('./chunk-ZJNGMDRE.js'),chunkAARNCPWR_js=require('./chunk-AARNCPWR.js'),chunkKUL2SDYC_js=require('./chunk-KUL2SDYC.js'),chunkBUEMG4NW_js=require('./chunk-BUEMG4NW.js'),chunkSE5EN2QL_js=require('./chunk-SE5EN2QL.js');require('./chunk-IFPN3NT3.js'),require('./chunk-H5NTJZO4.js');var X=require('react'),prosemirrorState=require('prosemirror-state'),prosemirrorView=require('prosemirror-view'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var X__default=/*#__PURE__*/_interopDefault(X);function f(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function w(e){return e?/\s/.test(e):false}function Si(e){return e?/[\p{P}]/u.test(e):false}function bi(e,o){if(o<=0)return 0;o>e.length&&(o=e.length);let t=o;for(;t>0&&w(e[t-1]);)t--;if(t===0)return 0;for(;t>0&&f(e[t-1]);)t--;return t}function xi(e,o){if(o>=e.length)return e.length;o<0&&(o=0);let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&w(e[t]);)t++;return t}function L(e,o){if(o>=e.length)return e.length;let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&!f(e[t]);)t++;return t}function O(e,o){if(o<=0)return 0;let t=o;for(;t>0&&!f(e[t-1]);)t--;for(;t>0&&f(e[t-1]);)t--;return t}function N(e,o){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(o,e.textContent?.length||0)),r.collapse(true);let n=r.getBoundingClientRect().top,a=0,p=o;for(;a<p;){let s=Math.floor((a+p)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-n)<2?p=s:a=s+1;}return {node:e,offset:a}}return null}function k(e,o){if(!window.getSelection())return null;let r=e.textContent?.length||0,i=document.createRange();if(e.nodeType===Node.TEXT_NODE){i.setStart(e,Math.min(o,r)),i.collapse(true);let a=i.getBoundingClientRect().top,p=o,s=r;for(;p<s;){let c=Math.ceil((p+s)/2);i.setStart(e,c),i.collapse(true);let l=i.getBoundingClientRect();Math.abs(l.top-a)<2?p=c:s=c-1;}return {node:e,offset:p}}return null}function Pi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.getRangeAt(0);return {node:o.startContainer,offset:o.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function C(e,o){let t=window.getSelection();if(!t)return;let r=document.createRange(),i=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(o,i)),r.collapse(true),t.removeAllRanges(),t.addRange(r);}function E(e,o){let t=window.getSelection();if(!(!t||!t.anchorNode))try{t.extend(e,Math.min(o,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;t.setBaseAndExtent(t.anchorNode,t.anchorOffset,e,Math.min(o,r));}}function M(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let i=r.textContent||"",n=t.focusOffset,a;return e==="left"?a=O(i,n):a=L(i,n),o?E(r,a):C(r,a),true}function H(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?N(r,t.focusOffset):k(r,t.focusOffset);if(a)return o?E(a.node,a.offset):C(a.node,a.offset),true}let i=r.textContent||"",n=e==="start"?0:i.length;return o?E(r,n):C(r,n),true}function K(e){let{key:o,ctrlKey:t,metaKey:r,shiftKey:i,altKey:n}=e,a=t||r;switch(o){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:i};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:i};break;case "Home":return a?{direction:"left",unit:"document",extend:i}:{direction:"left",unit:"line",extend:i};case "End":return a?{direction:"right",unit:"document",extend:i}:{direction:"right",unit:"line",extend:i}}return null}function Ci(e,o){let t=K(e);if(!t)return false;switch(t.unit){case "word":if((t.direction==="left"||t.direction==="right")&&M(t.direction,t.extend))return e.preventDefault(),true;break;case "line":let r=t.direction==="left"?"start":"end";if(H(r,t.extend))return e.preventDefault(),true;break;case "document":if(t.direction==="left"&&o?.onDocumentStart)return e.preventDefault(),o.onDocumentStart(),true;if(t.direction==="right"&&o?.onDocumentEnd)return e.preventDefault(),o.onDocumentEnd(),true;break}return false}function Ei(e){let{key:o,ctrlKey:t,metaKey:r}=e;return !!((t||r)&&(o==="ArrowLeft"||o==="ArrowRight")||o==="Home"||o==="End")}function Ri(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return false;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;if(i===n)return false;let a=document.createRange();return a.setStart(o,i),a.setEnd(o,n),e.removeAllRanges(),e.addRange(a),true}function vi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return null;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;return i===n?null:t.slice(i,n)}function Ii(e,o){let t=e.ctrlKey||e.metaKey,r=o.ctrlKey||o.metaKey;return e.key.toLowerCase()===o.key.toLowerCase()&&t===!!r&&e.shiftKey===!!o.shiftKey&&e.altKey===!!o.altKey}var u={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let o=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);o.push(r?"\u2318":"Ctrl");}e.shiftKey&&o.push("Shift"),e.altKey&&o.push("Alt");let t=e.key;return t==="ArrowLeft"?t="\u2190":t==="ArrowRight"?t="\u2192":t==="ArrowUp"?t="\u2191":t==="ArrowDown"&&(t="\u2193"),o.push(t),o.join("+")}function wi(){return [{action:"Move by word (left)",shortcut:m(u.wordLeft)},{action:"Move by word (right)",shortcut:m(u.wordRight)},{action:"Select word (left)",shortcut:m(u.selectWordLeft)},{action:"Select word (right)",shortcut:m(u.selectWordRight)},{action:"Go to line start",shortcut:m(u.lineStart)},{action:"Go to line end",shortcut:m(u.lineEnd)},{action:"Select to line start",shortcut:m(u.selectToLineStart)},{action:"Select to line end",shortcut:m(u.selectToLineEnd)},{action:"Go to document start",shortcut:m(u.documentStart)},{action:"Go to document end",shortcut:m(u.documentEnd)},{action:"Select to document start",shortcut:m(u.selectToDocumentStart)},{action:"Select to document end",shortcut:m(u.selectToDocumentEnd)}]}var B=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,d=new prosemirrorState.PluginKey("template");function Oi(e,o,t){return `${e}:${o}:${t}`}function F(e){let o=[];e.descendants((s,c)=>(s.isText&&s.text&&o.push({text:s.text,pos:c}),true));let t="",r=[];for(let s of o){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);t+=s.text;}let i=[],n=[],a=new Map,p;for(B.lastIndex=0;(p=B.exec(t))!==null;){let[s,c,l]=p,y=r[p.index],h=r[p.index+s.length-1]+1,g;c==="#"?g="sectionStart":c==="/"?g="sectionEnd":c==="^"?g="invertedStart":c==="@"?g="raw":g="variable";let T=`${g}:${l}`,D=a.get(T)??0;a.set(T,D+1);let P={id:Oi(g,l,D),type:g,name:l,rawTag:s,from:y,to:h};if(g==="sectionStart"||g==="invertedStart")P.nestedVars=[],n.push(P);else if(g==="sectionEnd"){for(let b=n.length-1;b>=0;b--)if(n[b].name===l){n.splice(b,1);break}}else g==="variable"&&n.length>0&&(n[n.length-1].nestedVars?.push(l),P.insideSection=true);i.push(P);}return i}function Ni(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function A(e,o,t,r){let i=[];for(let n of o){let a=n.id===t,p=n.id===r,s=Ni(n.type),c=["docx-template-tag"];a&&c.push("hovered"),p&&c.push("selected"),i.push(prosemirrorView.Decoration.inline(n.from,n.to,{class:c.join(" "),"data-tag-id":n.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return prosemirrorView.DecorationSet.create(e,i)}function ki(e,o){if(e.length!==o.length)return false;for(let t=0;t<e.length;t++)if(e[t].id!==o[t].id)return false;return true}function R(){return new prosemirrorState.Plugin({key:d,state:{init(e,o){let t=F(o.doc);return {tags:t,decorations:A(o.doc,t)}},apply(e,o,t,r){if(e.docChanged){let n=F(r.doc),a=ki(o.tags,n);return {tags:n,decorations:a?o.decorations.map(e.mapping,e.doc):A(r.doc,n,o.hoveredId,o.selectedId),hoveredId:o.hoveredId,selectedId:o.selectedId}}let i=e.getMeta(d);if(i){let n=i.hoveredId??o.hoveredId,a=i.selectedId??o.selectedId;return {...o,hoveredId:n,selectedId:a,decorations:A(r.doc,o.tags,n,a)}}return {...o,decorations:o.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return d.getState(e)?.decorations??prosemirrorView.DecorationSet.empty},handleClick(e,o){let r=(d.getState(e.state)?.tags??[]).find(n=>o>=n.from&&o<=n.to);return r?(e.dispatch(e.state.tr.setMeta(d,{selectedId:r.id})),true):(d.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(d,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,o){let r=o.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,i=d.getState(e.state)?.hoveredId;return r!==i&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:r})),false},mouseout(e,o){return o.relatedTarget?.closest?.("[data-tag-id]")||d.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:void 0})),false}}}})}function W(e){return d.getState(e)?.tags??[]}function x(e,o){e.dispatch(e.state.tr.setMeta(d,{hoveredId:o}));}function v(e,o){e.dispatch(e.state.tr.setMeta(d,{selectedId:o}));}var I=`
|
|
2
2
|
.docx-template-tag {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
transition: background-color 0.1s;
|
|
@@ -109,4 +109,4 @@ Iterates over ${e.name}[]. Access nested properties via ${e.name}.property`:e.ra
|
|
|
109
109
|
${I}
|
|
110
110
|
${Z}
|
|
111
111
|
${G}
|
|
112
|
-
`}}var Vi=j();var aa="0.0.2";Object.defineProperty(exports,"DEFAULT_SELECTION_STYLE",{enumerable:true,get:function(){return chunkDLNS7XC2_js.I}});Object.defineProperty(exports,"DocxEditor",{enumerable:true,get:function(){return chunkDLNS7XC2_js.v}});Object.defineProperty(exports,"EditorToolbar",{enumerable:true,get:function(){return chunkDLNS7XC2_js.a}});Object.defineProperty(exports,"ErrorBoundary",{enumerable:true,get:function(){return chunkDLNS7XC2_js.d}});Object.defineProperty(exports,"ErrorProvider",{enumerable:true,get:function(){return chunkDLNS7XC2_js.c}});Object.defineProperty(exports,"HIGH_CONTRAST_SELECTION_STYLE",{enumerable:true,get:function(){return chunkDLNS7XC2_js.J}});Object.defineProperty(exports,"PLUGIN_HOST_STYLES",{enumerable:true,get:function(){return chunkDLNS7XC2_js.ea}});Object.defineProperty(exports,"ParseErrorDisplay",{enumerable:true,get:function(){return chunkDLNS7XC2_js.e}});Object.defineProperty(exports,"PluginHost",{enumerable:true,get:function(){return chunkDLNS7XC2_js.fa}});Object.defineProperty(exports,"SELECTION_CSS_VARS",{enumerable:true,get:function(){return chunkDLNS7XC2_js.K}});Object.defineProperty(exports,"UnsupportedFeatureWarning",{enumerable:true,get:function(){return chunkDLNS7XC2_js.f}});Object.defineProperty(exports,"ZOOM_PRESETS",{enumerable:true,get:function(){return chunkDLNS7XC2_js.y}});Object.defineProperty(exports,"areSelectionStylesInjected",{enumerable:true,get:function(){return chunkDLNS7XC2_js.$}});Object.defineProperty(exports,"clampZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.H}});Object.defineProperty(exports,"clearSelection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.W}});Object.defineProperty(exports,"createDoubleClickWordSelector",{enumerable:true,get:function(){return chunkDLNS7XC2_js.t}});Object.defineProperty(exports,"createSelectionChangeHandler",{enumerable:true,get:function(){return chunkDLNS7XC2_js.aa}});Object.defineProperty(exports,"createTripleClickParagraphSelector",{enumerable:true,get:function(){return chunkDLNS7XC2_js.u}});Object.defineProperty(exports,"expandSelectionToWordBoundaries",{enumerable:true,get:function(){return chunkDLNS7XC2_js.q}});Object.defineProperty(exports,"findNearestZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.B}});Object.defineProperty(exports,"findWordAt",{enumerable:true,get:function(){return chunkDLNS7XC2_js.n}});Object.defineProperty(exports,"findWordBoundaries",{enumerable:true,get:function(){return chunkDLNS7XC2_js.l}});Object.defineProperty(exports,"formatZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.E}});Object.defineProperty(exports,"generateOverlayElements",{enumerable:true,get:function(){return chunkDLNS7XC2_js.ca}});Object.defineProperty(exports,"generateSelectionCSS",{enumerable:true,get:function(){return chunkDLNS7XC2_js.P}});Object.defineProperty(exports,"getHighlightRectStyle",{enumerable:true,get:function(){return chunkDLNS7XC2_js.O}});Object.defineProperty(exports,"getMergedSelectionRects",{enumerable:true,get:function(){return chunkDLNS7XC2_js.N}});Object.defineProperty(exports,"getNextZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.C}});Object.defineProperty(exports,"getPreviousZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.D}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkDLNS7XC2_js.R}});Object.defineProperty(exports,"getSelectionBoundingRect",{enumerable:true,get:function(){return chunkDLNS7XC2_js.T}});Object.defineProperty(exports,"getSelectionRects",{enumerable:true,get:function(){return chunkDLNS7XC2_js.L}});Object.defineProperty(exports,"getUserFriendlyMessage",{enumerable:true,get:function(){return chunkDLNS7XC2_js.h}});Object.defineProperty(exports,"getWordAt",{enumerable:true,get:function(){return chunkDLNS7XC2_js.m}});Object.defineProperty(exports,"getZoomPresets",{enumerable:true,get:function(){return chunkDLNS7XC2_js.A}});Object.defineProperty(exports,"handleClickForMultiClick",{enumerable:true,get:function(){return chunkDLNS7XC2_js.s}});Object.defineProperty(exports,"hasActiveSelection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.Q}});Object.defineProperty(exports,"highlightTextRange",{enumerable:true,get:function(){return chunkDLNS7XC2_js.U}});Object.defineProperty(exports,"injectSelectionStyles",{enumerable:true,get:function(){return chunkDLNS7XC2_js.Z}});Object.defineProperty(exports,"isParseError",{enumerable:true,get:function(){return chunkDLNS7XC2_js.g}});Object.defineProperty(exports,"isSelectionBackwards",{enumerable:true,get:function(){return chunkDLNS7XC2_js.X}});Object.defineProperty(exports,"isSelectionWithin",{enumerable:true,get:function(){return chunkDLNS7XC2_js.S}});Object.defineProperty(exports,"isWhitespace",{enumerable:true,get:function(){return chunkDLNS7XC2_js.k}});Object.defineProperty(exports,"isWordCharacter",{enumerable:true,get:function(){return chunkDLNS7XC2_js.j}});Object.defineProperty(exports,"isZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.G}});Object.defineProperty(exports,"mergeAdjacentRects",{enumerable:true,get:function(){return chunkDLNS7XC2_js.M}});Object.defineProperty(exports,"normalizeSelectionDirection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.Y}});Object.defineProperty(exports,"parseZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.F}});Object.defineProperty(exports,"removeSelectionStyles",{enumerable:true,get:function(){return chunkDLNS7XC2_js._}});Object.defineProperty(exports,"renderAsync",{enumerable:true,get:function(){return chunkDLNS7XC2_js.w}});Object.defineProperty(exports,"selectParagraphAtCursor",{enumerable:true,get:function(){return chunkDLNS7XC2_js.r}});Object.defineProperty(exports,"selectRange",{enumerable:true,get:function(){return chunkDLNS7XC2_js.V}});Object.defineProperty(exports,"selectWordAtCursor",{enumerable:true,get:function(){return chunkDLNS7XC2_js.o}});Object.defineProperty(exports,"selectWordInTextNode",{enumerable:true,get:function(){return chunkDLNS7XC2_js.p}});Object.defineProperty(exports,"useAutoSave",{enumerable:true,get:function(){return chunkDLNS7XC2_js.x}});Object.defineProperty(exports,"useClipboard",{enumerable:true,get:function(){return chunkDLNS7XC2_js.da}});Object.defineProperty(exports,"useErrorNotifications",{enumerable:true,get:function(){return chunkDLNS7XC2_js.b}});Object.defineProperty(exports,"useSelectionHighlight",{enumerable:true,get:function(){return chunkDLNS7XC2_js.ba}});Object.defineProperty(exports,"useTableSelection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.i}});Object.defineProperty(exports,"useWheelZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.z}});Object.defineProperty(exports,"ColorPicker",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.k}});Object.defineProperty(exports,"ContextMenu",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.a}});Object.defineProperty(exports,"InsertImageDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.V}});Object.defineProperty(exports,"InsertSymbolDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.da}});Object.defineProperty(exports,"InsertTableDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.O}});Object.defineProperty(exports,"KeyboardShortcutsDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.qa}});Object.defineProperty(exports,"LoadingIndicator",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.B}});Object.defineProperty(exports,"PasteSpecialDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ka}});Object.defineProperty(exports,"PrintButton",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.l}});Object.defineProperty(exports,"PrintStyles",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.m}});Object.defineProperty(exports,"ResponsePreview",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.g}});Object.defineProperty(exports,"ResponsiveToolbar",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.J}});Object.defineProperty(exports,"ResponsiveToolbarGroup",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.K}});Object.defineProperty(exports,"SYMBOL_CATEGORIES",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ca}});Object.defineProperty(exports,"TableInsertButtons",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.u}});Object.defineProperty(exports,"TableMergeButton",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.t}});Object.defineProperty(exports,"UnsavedIndicator",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.v}});Object.defineProperty(exports,"calculateFitDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js._}});Object.defineProperty(exports,"clampTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.S}});Object.defineProperty(exports,"createChangeTracker",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.A}});Object.defineProperty(exports,"createDefaultTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Q}});Object.defineProperty(exports,"createErrorResponse",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.j}});Object.defineProperty(exports,"createMockResponse",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.i}});Object.defineProperty(exports,"createToolbarItem",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.L}});Object.defineProperty(exports,"createToolbarItems",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.M}});Object.defineProperty(exports,"dataUrlToBlob",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.$}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.H}});Object.defineProperty(exports,"formatFileSize",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ba}});Object.defineProperty(exports,"formatPrintPageRange",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.r}});Object.defineProperty(exports,"formatShortcutKeys",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.xa}});Object.defineProperty(exports,"formatTableDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.T}});Object.defineProperty(exports,"getActionShortcut",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.c}});Object.defineProperty(exports,"getAllActions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.f}});Object.defineProperty(exports,"getAllCategories",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.wa}});Object.defineProperty(exports,"getAllIndicatorPositions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.z}});Object.defineProperty(exports,"getAllIndicatorVariants",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.y}});Object.defineProperty(exports,"getAllLoadingSizes",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.G}});Object.defineProperty(exports,"getAllLoadingVariants",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.F}});Object.defineProperty(exports,"getAllPasteOptions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.na}});Object.defineProperty(exports,"getCategoryLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.va}});Object.defineProperty(exports,"getCommonShortcuts",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ua}});Object.defineProperty(exports,"getDefaultActions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.e}});Object.defineProperty(exports,"getDefaultPasteOption",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.oa}});Object.defineProperty(exports,"getDefaultPrintOptions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.p}});Object.defineProperty(exports,"getDefaultShortcuts",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.sa}});Object.defineProperty(exports,"getImageAcceptString",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Z}});Object.defineProperty(exports,"getImageDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.aa}});Object.defineProperty(exports,"getLoadingVariantLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.E}});Object.defineProperty(exports,"getPasteOption",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ma}});Object.defineProperty(exports,"getRecommendedPriority",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.N}});Object.defineProperty(exports,"getShortcutsByCategory",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ta}});Object.defineProperty(exports,"getSupportedImageExtensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Y}});Object.defineProperty(exports,"getSymbolCategories",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.fa}});Object.defineProperty(exports,"getSymbolUnicodeInfo",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ha}});Object.defineProperty(exports,"getSymbolsByCategory",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ga}});Object.defineProperty(exports,"getTablePresets",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.U}});Object.defineProperty(exports,"getVariantLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.x}});Object.defineProperty(exports,"isActionAvailable",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.d}});Object.defineProperty(exports,"isPasteSpecialShortcut",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.pa}});Object.defineProperty(exports,"isPrintSupported",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.s}});Object.defineProperty(exports,"isValidImageFile",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.X}});Object.defineProperty(exports,"isValidTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.R}});Object.defineProperty(exports,"openPrintWindow",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.o}});Object.defineProperty(exports,"parsePageRange",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.q}});Object.defineProperty(exports,"searchSymbols",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ia}});Object.defineProperty(exports,"symbolFromCodePoint",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ja}});Object.defineProperty(exports,"triggerPrint",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.n}});Object.defineProperty(exports,"useContextMenu",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.b}});Object.defineProperty(exports,"useInsertImageDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.W}});Object.defineProperty(exports,"useInsertSymbolDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ea}});Object.defineProperty(exports,"useInsertTableDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.P}});Object.defineProperty(exports,"useKeyboardShortcutsDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ra}});Object.defineProperty(exports,"useLoading",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.C}});Object.defineProperty(exports,"useLoadingOperations",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.D}});Object.defineProperty(exports,"usePasteSpecial",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.la}});Object.defineProperty(exports,"useResponsePreview",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.h}});Object.defineProperty(exports,"useResponsiveToolbar",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.I}});Object.defineProperty(exports,"useUnsavedChanges",{enumerable:true,get:function(){return chunk3OKYQQQ5_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,"CLIPBOARD_TYPES",{enumerable:true,get:function(){return chunkDC65PJYE_js.K}});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,"FormattingBar",{enumerable:true,get:function(){return chunkDC65PJYE_js.y}});Object.defineProperty(exports,"HorizontalRuler",{enumerable:true,get:function(){return chunkDC65PJYE_js.E}});Object.defineProperty(exports,"INTERNAL_CLIPBOARD_TYPE",{enumerable:true,get:function(){return chunkDC65PJYE_js.J}});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,"cleanWordHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.W}});Object.defineProperty(exports,"copyParagraphs",{enumerable:true,get:function(){return chunkDC65PJYE_js.N}});Object.defineProperty(exports,"copyRuns",{enumerable:true,get:function(){return chunkDC65PJYE_js.M}});Object.defineProperty(exports,"createClipboardHandlers",{enumerable:true,get:function(){return chunkDC65PJYE_js.Y}});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,"handlePasteEvent",{enumerable:true,get:function(){return chunkDC65PJYE_js.S}});Object.defineProperty(exports,"htmlToRuns",{enumerable:true,get:function(){return chunkDC65PJYE_js.X}});Object.defineProperty(exports,"isEditorHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.V}});Object.defineProperty(exports,"isTextActionAvailable",{enumerable:true,get:function(){return chunkDC65PJYE_js.ca}});Object.defineProperty(exports,"isWordHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.U}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkDC65PJYE_js.la}});Object.defineProperty(exports,"paragraphsToClipboardContent",{enumerable:true,get:function(){return chunkDC65PJYE_js.P}});Object.defineProperty(exports,"parseClipboardHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.T}});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,"readFromClipboard",{enumerable:true,get:function(){return chunkDC65PJYE_js.R}});Object.defineProperty(exports,"runsToClipboardContent",{enumerable:true,get:function(){return chunkDC65PJYE_js.O}});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,"writeToClipboard",{enumerable:true,get:function(){return chunkDC65PJYE_js.Q}});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}});Object.defineProperty(exports,"LocaleProvider",{enumerable:true,get:function(){return chunkQSUPYUOP_js.a}});Object.defineProperty(exports,"useTranslation",{enumerable:true,get:function(){return chunkQSUPYUOP_js.b}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkFVUGBRDD_js.x}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunkFVUGBRDD_js.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunkFVUGBRDD_js.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkFVUGBRDD_js.F}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.o}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkFVUGBRDD_js.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkFVUGBRDD_js.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkFVUGBRDD_js.E}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkFVUGBRDD_js.m}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkFVUGBRDD_js.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunkFVUGBRDD_js.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.p}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkP7WEP4JU_js.f}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.m}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkP7WEP4JU_js.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkP7WEP4JU_js.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkP7WEP4JU_js.k}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunk4VUZBV2S_js.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunk4VUZBV2S_js.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.j}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.f}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunk4VUZBV2S_js.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunk4VUZBV2S_js.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunk4VUZBV2S_js.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.c}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkKCOGY3V2_js.o}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkPB7VMDDP_js.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkPB7VMDDP_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkPB7VMDDP_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkZJNGMDRE_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkZJNGMDRE_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkZJNGMDRE_js.a}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkAARNCPWR_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkAARNCPWR_js.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.i}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.g}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.e}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkKUL2SDYC_js.f}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.c}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.d}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.h}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkKUL2SDYC_js.n}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.k}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.m}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkBUEMG4NW_js.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkSE5EN2QL_js.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.a}});exports.NAVIGATION_SHORTCUTS=u;exports.TEMPLATE_DECORATION_STYLES=I;exports.VERSION=aa;exports.createTemplatePlugin=j;exports.createTemplateProseMirrorPlugin=R;exports.describeShortcut=m;exports.expandSelectionToWord=Ri;exports.extendSelectionTo=E;exports.findNextWordStart=L;exports.findPreviousWordStart=O;exports.findVisualLineEnd=k;exports.findVisualLineStart=N;exports.findWordEnd=xi;exports.findWordStart=bi;exports.getNavigationShortcutDescriptions=wi;exports.getSelectionInfo=Pi;exports.getTemplatePluginTags=W;exports.getWordAtCursor=vi;exports.handleNavigationKey=Ci;exports.isNavigationKey=Ei;exports.isPunctuation=Si;exports.isWhitespaceChar=w;exports.isWordChar=f;exports.matchesShortcut=Ii;exports.moveByWord=M;exports.moveToLineEdge=H;exports.parseNavigationAction=K;exports.setHoveredElement=x;exports.setSelectedElement=v;exports.setSelectionPosition=C;exports.templatePlugin=Vi;exports.templatePluginKey=d;
|
|
112
|
+
`}}var Vi=j();var aa="0.0.2";Object.defineProperty(exports,"DEFAULT_SELECTION_STYLE",{enumerable:true,get:function(){return chunk6YRWZ32V_js.I}});Object.defineProperty(exports,"DocxEditor",{enumerable:true,get:function(){return chunk6YRWZ32V_js.v}});Object.defineProperty(exports,"EditorToolbar",{enumerable:true,get:function(){return chunk6YRWZ32V_js.a}});Object.defineProperty(exports,"ErrorBoundary",{enumerable:true,get:function(){return chunk6YRWZ32V_js.d}});Object.defineProperty(exports,"ErrorProvider",{enumerable:true,get:function(){return chunk6YRWZ32V_js.c}});Object.defineProperty(exports,"HIGH_CONTRAST_SELECTION_STYLE",{enumerable:true,get:function(){return chunk6YRWZ32V_js.J}});Object.defineProperty(exports,"PLUGIN_HOST_STYLES",{enumerable:true,get:function(){return chunk6YRWZ32V_js.ea}});Object.defineProperty(exports,"ParseErrorDisplay",{enumerable:true,get:function(){return chunk6YRWZ32V_js.e}});Object.defineProperty(exports,"PluginHost",{enumerable:true,get:function(){return chunk6YRWZ32V_js.fa}});Object.defineProperty(exports,"SELECTION_CSS_VARS",{enumerable:true,get:function(){return chunk6YRWZ32V_js.K}});Object.defineProperty(exports,"UnsupportedFeatureWarning",{enumerable:true,get:function(){return chunk6YRWZ32V_js.f}});Object.defineProperty(exports,"ZOOM_PRESETS",{enumerable:true,get:function(){return chunk6YRWZ32V_js.y}});Object.defineProperty(exports,"areSelectionStylesInjected",{enumerable:true,get:function(){return chunk6YRWZ32V_js.$}});Object.defineProperty(exports,"clampZoom",{enumerable:true,get:function(){return chunk6YRWZ32V_js.H}});Object.defineProperty(exports,"clearSelection",{enumerable:true,get:function(){return chunk6YRWZ32V_js.W}});Object.defineProperty(exports,"createDoubleClickWordSelector",{enumerable:true,get:function(){return chunk6YRWZ32V_js.t}});Object.defineProperty(exports,"createSelectionChangeHandler",{enumerable:true,get:function(){return chunk6YRWZ32V_js.aa}});Object.defineProperty(exports,"createTripleClickParagraphSelector",{enumerable:true,get:function(){return chunk6YRWZ32V_js.u}});Object.defineProperty(exports,"expandSelectionToWordBoundaries",{enumerable:true,get:function(){return chunk6YRWZ32V_js.q}});Object.defineProperty(exports,"findNearestZoomPreset",{enumerable:true,get:function(){return chunk6YRWZ32V_js.B}});Object.defineProperty(exports,"findWordAt",{enumerable:true,get:function(){return chunk6YRWZ32V_js.n}});Object.defineProperty(exports,"findWordBoundaries",{enumerable:true,get:function(){return chunk6YRWZ32V_js.l}});Object.defineProperty(exports,"formatZoom",{enumerable:true,get:function(){return chunk6YRWZ32V_js.E}});Object.defineProperty(exports,"generateOverlayElements",{enumerable:true,get:function(){return chunk6YRWZ32V_js.ca}});Object.defineProperty(exports,"generateSelectionCSS",{enumerable:true,get:function(){return chunk6YRWZ32V_js.P}});Object.defineProperty(exports,"getHighlightRectStyle",{enumerable:true,get:function(){return chunk6YRWZ32V_js.O}});Object.defineProperty(exports,"getMergedSelectionRects",{enumerable:true,get:function(){return chunk6YRWZ32V_js.N}});Object.defineProperty(exports,"getNextZoomPreset",{enumerable:true,get:function(){return chunk6YRWZ32V_js.C}});Object.defineProperty(exports,"getPreviousZoomPreset",{enumerable:true,get:function(){return chunk6YRWZ32V_js.D}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunk6YRWZ32V_js.R}});Object.defineProperty(exports,"getSelectionBoundingRect",{enumerable:true,get:function(){return chunk6YRWZ32V_js.T}});Object.defineProperty(exports,"getSelectionRects",{enumerable:true,get:function(){return chunk6YRWZ32V_js.L}});Object.defineProperty(exports,"getUserFriendlyMessage",{enumerable:true,get:function(){return chunk6YRWZ32V_js.h}});Object.defineProperty(exports,"getWordAt",{enumerable:true,get:function(){return chunk6YRWZ32V_js.m}});Object.defineProperty(exports,"getZoomPresets",{enumerable:true,get:function(){return chunk6YRWZ32V_js.A}});Object.defineProperty(exports,"handleClickForMultiClick",{enumerable:true,get:function(){return chunk6YRWZ32V_js.s}});Object.defineProperty(exports,"hasActiveSelection",{enumerable:true,get:function(){return chunk6YRWZ32V_js.Q}});Object.defineProperty(exports,"highlightTextRange",{enumerable:true,get:function(){return chunk6YRWZ32V_js.U}});Object.defineProperty(exports,"injectSelectionStyles",{enumerable:true,get:function(){return chunk6YRWZ32V_js.Z}});Object.defineProperty(exports,"isParseError",{enumerable:true,get:function(){return chunk6YRWZ32V_js.g}});Object.defineProperty(exports,"isSelectionBackwards",{enumerable:true,get:function(){return chunk6YRWZ32V_js.X}});Object.defineProperty(exports,"isSelectionWithin",{enumerable:true,get:function(){return chunk6YRWZ32V_js.S}});Object.defineProperty(exports,"isWhitespace",{enumerable:true,get:function(){return chunk6YRWZ32V_js.k}});Object.defineProperty(exports,"isWordCharacter",{enumerable:true,get:function(){return chunk6YRWZ32V_js.j}});Object.defineProperty(exports,"isZoomPreset",{enumerable:true,get:function(){return chunk6YRWZ32V_js.G}});Object.defineProperty(exports,"mergeAdjacentRects",{enumerable:true,get:function(){return chunk6YRWZ32V_js.M}});Object.defineProperty(exports,"normalizeSelectionDirection",{enumerable:true,get:function(){return chunk6YRWZ32V_js.Y}});Object.defineProperty(exports,"parseZoom",{enumerable:true,get:function(){return chunk6YRWZ32V_js.F}});Object.defineProperty(exports,"removeSelectionStyles",{enumerable:true,get:function(){return chunk6YRWZ32V_js._}});Object.defineProperty(exports,"renderAsync",{enumerable:true,get:function(){return chunk6YRWZ32V_js.w}});Object.defineProperty(exports,"selectParagraphAtCursor",{enumerable:true,get:function(){return chunk6YRWZ32V_js.r}});Object.defineProperty(exports,"selectRange",{enumerable:true,get:function(){return chunk6YRWZ32V_js.V}});Object.defineProperty(exports,"selectWordAtCursor",{enumerable:true,get:function(){return chunk6YRWZ32V_js.o}});Object.defineProperty(exports,"selectWordInTextNode",{enumerable:true,get:function(){return chunk6YRWZ32V_js.p}});Object.defineProperty(exports,"useAutoSave",{enumerable:true,get:function(){return chunk6YRWZ32V_js.x}});Object.defineProperty(exports,"useClipboard",{enumerable:true,get:function(){return chunk6YRWZ32V_js.da}});Object.defineProperty(exports,"useErrorNotifications",{enumerable:true,get:function(){return chunk6YRWZ32V_js.b}});Object.defineProperty(exports,"useSelectionHighlight",{enumerable:true,get:function(){return chunk6YRWZ32V_js.ba}});Object.defineProperty(exports,"useTableSelection",{enumerable:true,get:function(){return chunk6YRWZ32V_js.i}});Object.defineProperty(exports,"useWheelZoom",{enumerable:true,get:function(){return chunk6YRWZ32V_js.z}});Object.defineProperty(exports,"ColorPicker",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.k}});Object.defineProperty(exports,"ContextMenu",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.a}});Object.defineProperty(exports,"InsertImageDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.V}});Object.defineProperty(exports,"InsertSymbolDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.da}});Object.defineProperty(exports,"InsertTableDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.O}});Object.defineProperty(exports,"KeyboardShortcutsDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.qa}});Object.defineProperty(exports,"LoadingIndicator",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.B}});Object.defineProperty(exports,"PasteSpecialDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ka}});Object.defineProperty(exports,"PrintButton",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.l}});Object.defineProperty(exports,"PrintStyles",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.m}});Object.defineProperty(exports,"ResponsePreview",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.g}});Object.defineProperty(exports,"ResponsiveToolbar",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.J}});Object.defineProperty(exports,"ResponsiveToolbarGroup",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.K}});Object.defineProperty(exports,"SYMBOL_CATEGORIES",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ca}});Object.defineProperty(exports,"TableInsertButtons",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.u}});Object.defineProperty(exports,"TableMergeButton",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.t}});Object.defineProperty(exports,"UnsavedIndicator",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.v}});Object.defineProperty(exports,"calculateFitDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js._}});Object.defineProperty(exports,"clampTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.S}});Object.defineProperty(exports,"createChangeTracker",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.A}});Object.defineProperty(exports,"createDefaultTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Q}});Object.defineProperty(exports,"createErrorResponse",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.j}});Object.defineProperty(exports,"createMockResponse",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.i}});Object.defineProperty(exports,"createToolbarItem",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.L}});Object.defineProperty(exports,"createToolbarItems",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.M}});Object.defineProperty(exports,"dataUrlToBlob",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.$}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.H}});Object.defineProperty(exports,"formatFileSize",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ba}});Object.defineProperty(exports,"formatPrintPageRange",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.r}});Object.defineProperty(exports,"formatShortcutKeys",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.xa}});Object.defineProperty(exports,"formatTableDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.T}});Object.defineProperty(exports,"getActionShortcut",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.c}});Object.defineProperty(exports,"getAllActions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.f}});Object.defineProperty(exports,"getAllCategories",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.wa}});Object.defineProperty(exports,"getAllIndicatorPositions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.z}});Object.defineProperty(exports,"getAllIndicatorVariants",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.y}});Object.defineProperty(exports,"getAllLoadingSizes",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.G}});Object.defineProperty(exports,"getAllLoadingVariants",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.F}});Object.defineProperty(exports,"getAllPasteOptions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.na}});Object.defineProperty(exports,"getCategoryLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.va}});Object.defineProperty(exports,"getCommonShortcuts",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ua}});Object.defineProperty(exports,"getDefaultActions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.e}});Object.defineProperty(exports,"getDefaultPasteOption",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.oa}});Object.defineProperty(exports,"getDefaultPrintOptions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.p}});Object.defineProperty(exports,"getDefaultShortcuts",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.sa}});Object.defineProperty(exports,"getImageAcceptString",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Z}});Object.defineProperty(exports,"getImageDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.aa}});Object.defineProperty(exports,"getLoadingVariantLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.E}});Object.defineProperty(exports,"getPasteOption",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ma}});Object.defineProperty(exports,"getRecommendedPriority",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.N}});Object.defineProperty(exports,"getShortcutsByCategory",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ta}});Object.defineProperty(exports,"getSupportedImageExtensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Y}});Object.defineProperty(exports,"getSymbolCategories",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.fa}});Object.defineProperty(exports,"getSymbolUnicodeInfo",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ha}});Object.defineProperty(exports,"getSymbolsByCategory",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ga}});Object.defineProperty(exports,"getTablePresets",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.U}});Object.defineProperty(exports,"getVariantLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.x}});Object.defineProperty(exports,"isActionAvailable",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.d}});Object.defineProperty(exports,"isPasteSpecialShortcut",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.pa}});Object.defineProperty(exports,"isPrintSupported",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.s}});Object.defineProperty(exports,"isValidImageFile",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.X}});Object.defineProperty(exports,"isValidTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.R}});Object.defineProperty(exports,"openPrintWindow",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.o}});Object.defineProperty(exports,"parsePageRange",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.q}});Object.defineProperty(exports,"searchSymbols",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ia}});Object.defineProperty(exports,"symbolFromCodePoint",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ja}});Object.defineProperty(exports,"triggerPrint",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.n}});Object.defineProperty(exports,"useContextMenu",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.b}});Object.defineProperty(exports,"useInsertImageDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.W}});Object.defineProperty(exports,"useInsertSymbolDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ea}});Object.defineProperty(exports,"useInsertTableDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.P}});Object.defineProperty(exports,"useKeyboardShortcutsDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ra}});Object.defineProperty(exports,"useLoading",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.C}});Object.defineProperty(exports,"useLoadingOperations",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.D}});Object.defineProperty(exports,"usePasteSpecial",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.la}});Object.defineProperty(exports,"useResponsePreview",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.h}});Object.defineProperty(exports,"useResponsiveToolbar",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.I}});Object.defineProperty(exports,"useUnsavedChanges",{enumerable:true,get:function(){return chunk3OKYQQQ5_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,"CLIPBOARD_TYPES",{enumerable:true,get:function(){return chunkDC65PJYE_js.K}});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,"FormattingBar",{enumerable:true,get:function(){return chunkDC65PJYE_js.y}});Object.defineProperty(exports,"HorizontalRuler",{enumerable:true,get:function(){return chunkDC65PJYE_js.E}});Object.defineProperty(exports,"INTERNAL_CLIPBOARD_TYPE",{enumerable:true,get:function(){return chunkDC65PJYE_js.J}});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,"cleanWordHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.W}});Object.defineProperty(exports,"copyParagraphs",{enumerable:true,get:function(){return chunkDC65PJYE_js.N}});Object.defineProperty(exports,"copyRuns",{enumerable:true,get:function(){return chunkDC65PJYE_js.M}});Object.defineProperty(exports,"createClipboardHandlers",{enumerable:true,get:function(){return chunkDC65PJYE_js.Y}});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,"handlePasteEvent",{enumerable:true,get:function(){return chunkDC65PJYE_js.S}});Object.defineProperty(exports,"htmlToRuns",{enumerable:true,get:function(){return chunkDC65PJYE_js.X}});Object.defineProperty(exports,"isEditorHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.V}});Object.defineProperty(exports,"isTextActionAvailable",{enumerable:true,get:function(){return chunkDC65PJYE_js.ca}});Object.defineProperty(exports,"isWordHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.U}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkDC65PJYE_js.la}});Object.defineProperty(exports,"paragraphsToClipboardContent",{enumerable:true,get:function(){return chunkDC65PJYE_js.P}});Object.defineProperty(exports,"parseClipboardHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.T}});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,"readFromClipboard",{enumerable:true,get:function(){return chunkDC65PJYE_js.R}});Object.defineProperty(exports,"runsToClipboardContent",{enumerable:true,get:function(){return chunkDC65PJYE_js.O}});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,"writeToClipboard",{enumerable:true,get:function(){return chunkDC65PJYE_js.Q}});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}});Object.defineProperty(exports,"LocaleProvider",{enumerable:true,get:function(){return chunkQSUPYUOP_js.a}});Object.defineProperty(exports,"useTranslation",{enumerable:true,get:function(){return chunkQSUPYUOP_js.b}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkFVUGBRDD_js.x}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunkFVUGBRDD_js.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunkFVUGBRDD_js.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkFVUGBRDD_js.F}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.o}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkFVUGBRDD_js.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkFVUGBRDD_js.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkFVUGBRDD_js.E}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkFVUGBRDD_js.m}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkFVUGBRDD_js.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunkFVUGBRDD_js.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.p}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkP7WEP4JU_js.f}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.m}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkP7WEP4JU_js.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkP7WEP4JU_js.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkP7WEP4JU_js.k}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunk4VUZBV2S_js.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunk4VUZBV2S_js.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.j}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.f}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunk4VUZBV2S_js.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunk4VUZBV2S_js.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunk4VUZBV2S_js.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.c}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkKCOGY3V2_js.o}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkPB7VMDDP_js.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkPB7VMDDP_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkPB7VMDDP_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkZJNGMDRE_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkZJNGMDRE_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkZJNGMDRE_js.a}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkAARNCPWR_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkAARNCPWR_js.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.i}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.g}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.e}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkKUL2SDYC_js.f}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.c}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.d}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.h}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkKUL2SDYC_js.n}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.k}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.m}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkBUEMG4NW_js.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkSE5EN2QL_js.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.a}});exports.NAVIGATION_SHORTCUTS=u;exports.TEMPLATE_DECORATION_STYLES=I;exports.VERSION=aa;exports.createTemplatePlugin=j;exports.createTemplateProseMirrorPlugin=R;exports.describeShortcut=m;exports.expandSelectionToWord=Ri;exports.extendSelectionTo=E;exports.findNextWordStart=L;exports.findPreviousWordStart=O;exports.findVisualLineEnd=k;exports.findVisualLineStart=N;exports.findWordEnd=xi;exports.findWordStart=bi;exports.getNavigationShortcutDescriptions=wi;exports.getSelectionInfo=Pi;exports.getTemplatePluginTags=W;exports.getWordAtCursor=vi;exports.handleNavigationKey=Ci;exports.isNavigationKey=Ei;exports.isPunctuation=Si;exports.isWhitespaceChar=w;exports.isWordChar=f;exports.matchesShortcut=Ii;exports.moveByWord=M;exports.moveToLineEdge=H;exports.parseNavigationAction=K;exports.setHoveredElement=x;exports.setSelectedElement=v;exports.setSelectionPosition=C;exports.templatePlugin=Vi;exports.templatePluginKey=d;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export{I as DEFAULT_SELECTION_STYLE,v as DocxEditor,a as EditorToolbar,d as ErrorBoundary,c as ErrorProvider,J as HIGH_CONTRAST_SELECTION_STYLE,ea as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,fa as PluginHost,K as SELECTION_CSS_VARS,f as UnsupportedFeatureWarning,y as ZOOM_PRESETS,$ as areSelectionStylesInjected,H as clampZoom,W as clearSelection,t as createDoubleClickWordSelector,aa as createSelectionChangeHandler,u as createTripleClickParagraphSelector,q as expandSelectionToWordBoundaries,B as findNearestZoomPreset,n as findWordAt,l as findWordBoundaries,E as formatZoom,ca as generateOverlayElements,P as generateSelectionCSS,O as getHighlightRectStyle,N as getMergedSelectionRects,C as getNextZoomPreset,D as getPreviousZoomPreset,R as getSelectedText,T as getSelectionBoundingRect,L as getSelectionRects,h as getUserFriendlyMessage,m as getWordAt,A as getZoomPresets,s as handleClickForMultiClick,Q as hasActiveSelection,U as highlightTextRange,Z as injectSelectionStyles,g as isParseError,X as isSelectionBackwards,S as isSelectionWithin,k as isWhitespace,j as isWordCharacter,G as isZoomPreset,M as mergeAdjacentRects,Y as normalizeSelectionDirection,F as parseZoom,_ as removeSelectionStyles,w as renderAsync,r as selectParagraphAtCursor,V as selectRange,o as selectWordAtCursor,p as selectWordInTextNode,x as useAutoSave,da as useClipboard,b as useErrorNotifications,ba as useSelectionHighlight,i as useTableSelection,z as useWheelZoom}from'./chunk-Z7ZLARCQ.mjs';import'./chunk-2HDYCD2Q.mjs';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-FW5LYOOZ.mjs';export{k as AdvancedColorPicker,l as AlignmentButtons,K as CLIPBOARD_TYPES,g as FontPicker,j as FontSizePicker,y as FormattingBar,E as HorizontalRuler,J as INTERNAL_CLIPBOARD_TYPE,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,W as cleanWordHtml,N as copyParagraphs,M as copyRuns,Y as createClipboardHandlers,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,S as handlePasteEvent,X as htmlToRuns,V as isEditorHtml,ca as isTextActionAvailable,U as isWordHtml,la as mergeCells,P as paragraphsToClipboardContent,T as parseClipboardHtml,I as parseMarginFromUnits,F as positionToMargin,R as readFromClipboard,O as runsToClipboardContent,ma as splitCell,_ as useTextContextMenu,Q as writeToClipboard}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';export{a as LocaleProvider,b as useTranslation}from'./chunk-GZOCOWWB.mjs';export{x as TABLE_DATA_ATTRIBUTES,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,o as findPageBreaks,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,m as hasPageBreakBefore,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak}from'./chunk-QTSXJRP6.mjs';import'./chunk-6WPRCJ5A.mjs';export{f as DocumentAgent,m as buildExtendedSelectionContext,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary}from'./chunk-7QTNB64A.mjs';export{l as blendColors,q as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,f as getContrastingColor,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,a as resolveColor,b as resolveHighlightColor,c as resolveShadingColor}from'./chunk-QAZ4233N.mjs';export{o as docxtemplaterPlugin}from'./chunk-RTFUE3KK.mjs';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-DLVLK5FT.mjs';export{b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties}from'./chunk-37SLIJPH.mjs';export{a as executeCommand,b as executeCommands}from'./chunk-M5F4SK3W.mjs';export{i as canRenderFont,g as getLoadedFonts,e as isFontLoaded,f as isFontsLoading,c as loadFont,j as loadFontFromBuffer,d as loadFonts,h as onFontsLoaded,n as parseDocx,k as preloadCommonFonts,m as toArrayBuffer}from'./chunk-7MGFEP2R.mjs';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-W53SI3XW.mjs';export{c as emuToPixels,e as emuToTwips,k as formatPx,h as halfPointsToPixels,d as pixelsToEmu,b as pixelsToTwips,g as pointsToPixels,f as twipsToEmu,a as twipsToPixels}from'./chunk-LYBG4YI7.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-TAUMSKRE.mjs';import X,{useState,useCallback,useMemo,useEffect}from'react';import {PluginKey,TextSelection,Plugin}from'prosemirror-state';import {DecorationSet,Decoration}from'prosemirror-view';import {jsx,jsxs}from'react/jsx-runtime';function f(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function w(e){return e?/\s/.test(e):false}function Si(e){return e?/[\p{P}]/u.test(e):false}function bi(e,o){if(o<=0)return 0;o>e.length&&(o=e.length);let t=o;for(;t>0&&w(e[t-1]);)t--;if(t===0)return 0;for(;t>0&&f(e[t-1]);)t--;return t}function xi(e,o){if(o>=e.length)return e.length;o<0&&(o=0);let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&w(e[t]);)t++;return t}function L(e,o){if(o>=e.length)return e.length;let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&!f(e[t]);)t++;return t}function O(e,o){if(o<=0)return 0;let t=o;for(;t>0&&!f(e[t-1]);)t--;for(;t>0&&f(e[t-1]);)t--;return t}function N(e,o){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(o,e.textContent?.length||0)),r.collapse(true);let n=r.getBoundingClientRect().top,a=0,p=o;for(;a<p;){let s=Math.floor((a+p)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-n)<2?p=s:a=s+1;}return {node:e,offset:a}}return null}function k(e,o){if(!window.getSelection())return null;let r=e.textContent?.length||0,i=document.createRange();if(e.nodeType===Node.TEXT_NODE){i.setStart(e,Math.min(o,r)),i.collapse(true);let a=i.getBoundingClientRect().top,p=o,s=r;for(;p<s;){let c=Math.ceil((p+s)/2);i.setStart(e,c),i.collapse(true);let l=i.getBoundingClientRect();Math.abs(l.top-a)<2?p=c:s=c-1;}return {node:e,offset:p}}return null}function Pi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.getRangeAt(0);return {node:o.startContainer,offset:o.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function C(e,o){let t=window.getSelection();if(!t)return;let r=document.createRange(),i=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(o,i)),r.collapse(true),t.removeAllRanges(),t.addRange(r);}function E(e,o){let t=window.getSelection();if(!(!t||!t.anchorNode))try{t.extend(e,Math.min(o,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;t.setBaseAndExtent(t.anchorNode,t.anchorOffset,e,Math.min(o,r));}}function M(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let i=r.textContent||"",n=t.focusOffset,a;return e==="left"?a=O(i,n):a=L(i,n),o?E(r,a):C(r,a),true}function H(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?N(r,t.focusOffset):k(r,t.focusOffset);if(a)return o?E(a.node,a.offset):C(a.node,a.offset),true}let i=r.textContent||"",n=e==="start"?0:i.length;return o?E(r,n):C(r,n),true}function K(e){let{key:o,ctrlKey:t,metaKey:r,shiftKey:i,altKey:n}=e,a=t||r;switch(o){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:i};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:i};break;case "Home":return a?{direction:"left",unit:"document",extend:i}:{direction:"left",unit:"line",extend:i};case "End":return a?{direction:"right",unit:"document",extend:i}:{direction:"right",unit:"line",extend:i}}return null}function Ci(e,o){let t=K(e);if(!t)return false;switch(t.unit){case "word":if((t.direction==="left"||t.direction==="right")&&M(t.direction,t.extend))return e.preventDefault(),true;break;case "line":let r=t.direction==="left"?"start":"end";if(H(r,t.extend))return e.preventDefault(),true;break;case "document":if(t.direction==="left"&&o?.onDocumentStart)return e.preventDefault(),o.onDocumentStart(),true;if(t.direction==="right"&&o?.onDocumentEnd)return e.preventDefault(),o.onDocumentEnd(),true;break}return false}function Ei(e){let{key:o,ctrlKey:t,metaKey:r}=e;return !!((t||r)&&(o==="ArrowLeft"||o==="ArrowRight")||o==="Home"||o==="End")}function Ri(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return false;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;if(i===n)return false;let a=document.createRange();return a.setStart(o,i),a.setEnd(o,n),e.removeAllRanges(),e.addRange(a),true}function vi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return null;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;return i===n?null:t.slice(i,n)}function Ii(e,o){let t=e.ctrlKey||e.metaKey,r=o.ctrlKey||o.metaKey;return e.key.toLowerCase()===o.key.toLowerCase()&&t===!!r&&e.shiftKey===!!o.shiftKey&&e.altKey===!!o.altKey}var u={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let o=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);o.push(r?"\u2318":"Ctrl");}e.shiftKey&&o.push("Shift"),e.altKey&&o.push("Alt");let t=e.key;return t==="ArrowLeft"?t="\u2190":t==="ArrowRight"?t="\u2192":t==="ArrowUp"?t="\u2191":t==="ArrowDown"&&(t="\u2193"),o.push(t),o.join("+")}function wi(){return [{action:"Move by word (left)",shortcut:m(u.wordLeft)},{action:"Move by word (right)",shortcut:m(u.wordRight)},{action:"Select word (left)",shortcut:m(u.selectWordLeft)},{action:"Select word (right)",shortcut:m(u.selectWordRight)},{action:"Go to line start",shortcut:m(u.lineStart)},{action:"Go to line end",shortcut:m(u.lineEnd)},{action:"Select to line start",shortcut:m(u.selectToLineStart)},{action:"Select to line end",shortcut:m(u.selectToLineEnd)},{action:"Go to document start",shortcut:m(u.documentStart)},{action:"Go to document end",shortcut:m(u.documentEnd)},{action:"Select to document start",shortcut:m(u.selectToDocumentStart)},{action:"Select to document end",shortcut:m(u.selectToDocumentEnd)}]}var B=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,d=new PluginKey("template");function Oi(e,o,t){return `${e}:${o}:${t}`}function F(e){let o=[];e.descendants((s,c)=>(s.isText&&s.text&&o.push({text:s.text,pos:c}),true));let t="",r=[];for(let s of o){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);t+=s.text;}let i=[],n=[],a=new Map,p;for(B.lastIndex=0;(p=B.exec(t))!==null;){let[s,c,l]=p,y=r[p.index],h=r[p.index+s.length-1]+1,g;c==="#"?g="sectionStart":c==="/"?g="sectionEnd":c==="^"?g="invertedStart":c==="@"?g="raw":g="variable";let T=`${g}:${l}`,D=a.get(T)??0;a.set(T,D+1);let P={id:Oi(g,l,D),type:g,name:l,rawTag:s,from:y,to:h};if(g==="sectionStart"||g==="invertedStart")P.nestedVars=[],n.push(P);else if(g==="sectionEnd"){for(let b=n.length-1;b>=0;b--)if(n[b].name===l){n.splice(b,1);break}}else g==="variable"&&n.length>0&&(n[n.length-1].nestedVars?.push(l),P.insideSection=true);i.push(P);}return i}function Ni(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function A(e,o,t,r){let i=[];for(let n of o){let a=n.id===t,p=n.id===r,s=Ni(n.type),c=["docx-template-tag"];a&&c.push("hovered"),p&&c.push("selected"),i.push(Decoration.inline(n.from,n.to,{class:c.join(" "),"data-tag-id":n.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return DecorationSet.create(e,i)}function ki(e,o){if(e.length!==o.length)return false;for(let t=0;t<e.length;t++)if(e[t].id!==o[t].id)return false;return true}function R(){return new Plugin({key:d,state:{init(e,o){let t=F(o.doc);return {tags:t,decorations:A(o.doc,t)}},apply(e,o,t,r){if(e.docChanged){let n=F(r.doc),a=ki(o.tags,n);return {tags:n,decorations:a?o.decorations.map(e.mapping,e.doc):A(r.doc,n,o.hoveredId,o.selectedId),hoveredId:o.hoveredId,selectedId:o.selectedId}}let i=e.getMeta(d);if(i){let n=i.hoveredId??o.hoveredId,a=i.selectedId??o.selectedId;return {...o,hoveredId:n,selectedId:a,decorations:A(r.doc,o.tags,n,a)}}return {...o,decorations:o.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return d.getState(e)?.decorations??DecorationSet.empty},handleClick(e,o){let r=(d.getState(e.state)?.tags??[]).find(n=>o>=n.from&&o<=n.to);return r?(e.dispatch(e.state.tr.setMeta(d,{selectedId:r.id})),true):(d.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(d,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,o){let r=o.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,i=d.getState(e.state)?.hoveredId;return r!==i&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:r})),false},mouseout(e,o){return o.relatedTarget?.closest?.("[data-tag-id]")||d.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:void 0})),false}}}})}function W(e){return d.getState(e)?.tags??[]}function x(e,o){e.dispatch(e.state.tr.setMeta(d,{hoveredId:o}));}function v(e,o){e.dispatch(e.state.tr.setMeta(d,{selectedId:o}));}var I=`
|
|
1
|
+
export{I as DEFAULT_SELECTION_STYLE,v as DocxEditor,a as EditorToolbar,d as ErrorBoundary,c as ErrorProvider,J as HIGH_CONTRAST_SELECTION_STYLE,ea as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,fa as PluginHost,K as SELECTION_CSS_VARS,f as UnsupportedFeatureWarning,y as ZOOM_PRESETS,$ as areSelectionStylesInjected,H as clampZoom,W as clearSelection,t as createDoubleClickWordSelector,aa as createSelectionChangeHandler,u as createTripleClickParagraphSelector,q as expandSelectionToWordBoundaries,B as findNearestZoomPreset,n as findWordAt,l as findWordBoundaries,E as formatZoom,ca as generateOverlayElements,P as generateSelectionCSS,O as getHighlightRectStyle,N as getMergedSelectionRects,C as getNextZoomPreset,D as getPreviousZoomPreset,R as getSelectedText,T as getSelectionBoundingRect,L as getSelectionRects,h as getUserFriendlyMessage,m as getWordAt,A as getZoomPresets,s as handleClickForMultiClick,Q as hasActiveSelection,U as highlightTextRange,Z as injectSelectionStyles,g as isParseError,X as isSelectionBackwards,S as isSelectionWithin,k as isWhitespace,j as isWordCharacter,G as isZoomPreset,M as mergeAdjacentRects,Y as normalizeSelectionDirection,F as parseZoom,_ as removeSelectionStyles,w as renderAsync,r as selectParagraphAtCursor,V as selectRange,o as selectWordAtCursor,p as selectWordInTextNode,x as useAutoSave,da as useClipboard,b as useErrorNotifications,ba as useSelectionHighlight,i as useTableSelection,z as useWheelZoom}from'./chunk-S67UBZDL.mjs';import'./chunk-2HDYCD2Q.mjs';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-FW5LYOOZ.mjs';export{k as AdvancedColorPicker,l as AlignmentButtons,K as CLIPBOARD_TYPES,g as FontPicker,j as FontSizePicker,y as FormattingBar,E as HorizontalRuler,J as INTERNAL_CLIPBOARD_TYPE,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,W as cleanWordHtml,N as copyParagraphs,M as copyRuns,Y as createClipboardHandlers,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,S as handlePasteEvent,X as htmlToRuns,V as isEditorHtml,ca as isTextActionAvailable,U as isWordHtml,la as mergeCells,P as paragraphsToClipboardContent,T as parseClipboardHtml,I as parseMarginFromUnits,F as positionToMargin,R as readFromClipboard,O as runsToClipboardContent,ma as splitCell,_ as useTextContextMenu,Q as writeToClipboard}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';export{a as LocaleProvider,b as useTranslation}from'./chunk-GZOCOWWB.mjs';export{x as TABLE_DATA_ATTRIBUTES,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,o as findPageBreaks,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,m as hasPageBreakBefore,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak}from'./chunk-QTSXJRP6.mjs';import'./chunk-6WPRCJ5A.mjs';export{f as DocumentAgent,m as buildExtendedSelectionContext,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary}from'./chunk-7QTNB64A.mjs';export{l as blendColors,q as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,f as getContrastingColor,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,a as resolveColor,b as resolveHighlightColor,c as resolveShadingColor}from'./chunk-QAZ4233N.mjs';export{o as docxtemplaterPlugin}from'./chunk-RTFUE3KK.mjs';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-DLVLK5FT.mjs';export{b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties}from'./chunk-37SLIJPH.mjs';export{a as executeCommand,b as executeCommands}from'./chunk-M5F4SK3W.mjs';export{i as canRenderFont,g as getLoadedFonts,e as isFontLoaded,f as isFontsLoading,c as loadFont,j as loadFontFromBuffer,d as loadFonts,h as onFontsLoaded,n as parseDocx,k as preloadCommonFonts,m as toArrayBuffer}from'./chunk-7MGFEP2R.mjs';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-W53SI3XW.mjs';export{c as emuToPixels,e as emuToTwips,k as formatPx,h as halfPointsToPixels,d as pixelsToEmu,b as pixelsToTwips,g as pointsToPixels,f as twipsToEmu,a as twipsToPixels}from'./chunk-LYBG4YI7.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-TAUMSKRE.mjs';import X,{useState,useCallback,useMemo,useEffect}from'react';import {PluginKey,TextSelection,Plugin}from'prosemirror-state';import {DecorationSet,Decoration}from'prosemirror-view';import {jsx,jsxs}from'react/jsx-runtime';function f(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function w(e){return e?/\s/.test(e):false}function Si(e){return e?/[\p{P}]/u.test(e):false}function bi(e,o){if(o<=0)return 0;o>e.length&&(o=e.length);let t=o;for(;t>0&&w(e[t-1]);)t--;if(t===0)return 0;for(;t>0&&f(e[t-1]);)t--;return t}function xi(e,o){if(o>=e.length)return e.length;o<0&&(o=0);let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&w(e[t]);)t++;return t}function L(e,o){if(o>=e.length)return e.length;let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&!f(e[t]);)t++;return t}function O(e,o){if(o<=0)return 0;let t=o;for(;t>0&&!f(e[t-1]);)t--;for(;t>0&&f(e[t-1]);)t--;return t}function N(e,o){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(o,e.textContent?.length||0)),r.collapse(true);let n=r.getBoundingClientRect().top,a=0,p=o;for(;a<p;){let s=Math.floor((a+p)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-n)<2?p=s:a=s+1;}return {node:e,offset:a}}return null}function k(e,o){if(!window.getSelection())return null;let r=e.textContent?.length||0,i=document.createRange();if(e.nodeType===Node.TEXT_NODE){i.setStart(e,Math.min(o,r)),i.collapse(true);let a=i.getBoundingClientRect().top,p=o,s=r;for(;p<s;){let c=Math.ceil((p+s)/2);i.setStart(e,c),i.collapse(true);let l=i.getBoundingClientRect();Math.abs(l.top-a)<2?p=c:s=c-1;}return {node:e,offset:p}}return null}function Pi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.getRangeAt(0);return {node:o.startContainer,offset:o.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function C(e,o){let t=window.getSelection();if(!t)return;let r=document.createRange(),i=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(o,i)),r.collapse(true),t.removeAllRanges(),t.addRange(r);}function E(e,o){let t=window.getSelection();if(!(!t||!t.anchorNode))try{t.extend(e,Math.min(o,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;t.setBaseAndExtent(t.anchorNode,t.anchorOffset,e,Math.min(o,r));}}function M(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let i=r.textContent||"",n=t.focusOffset,a;return e==="left"?a=O(i,n):a=L(i,n),o?E(r,a):C(r,a),true}function H(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?N(r,t.focusOffset):k(r,t.focusOffset);if(a)return o?E(a.node,a.offset):C(a.node,a.offset),true}let i=r.textContent||"",n=e==="start"?0:i.length;return o?E(r,n):C(r,n),true}function K(e){let{key:o,ctrlKey:t,metaKey:r,shiftKey:i,altKey:n}=e,a=t||r;switch(o){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:i};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:i};break;case "Home":return a?{direction:"left",unit:"document",extend:i}:{direction:"left",unit:"line",extend:i};case "End":return a?{direction:"right",unit:"document",extend:i}:{direction:"right",unit:"line",extend:i}}return null}function Ci(e,o){let t=K(e);if(!t)return false;switch(t.unit){case "word":if((t.direction==="left"||t.direction==="right")&&M(t.direction,t.extend))return e.preventDefault(),true;break;case "line":let r=t.direction==="left"?"start":"end";if(H(r,t.extend))return e.preventDefault(),true;break;case "document":if(t.direction==="left"&&o?.onDocumentStart)return e.preventDefault(),o.onDocumentStart(),true;if(t.direction==="right"&&o?.onDocumentEnd)return e.preventDefault(),o.onDocumentEnd(),true;break}return false}function Ei(e){let{key:o,ctrlKey:t,metaKey:r}=e;return !!((t||r)&&(o==="ArrowLeft"||o==="ArrowRight")||o==="Home"||o==="End")}function Ri(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return false;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;if(i===n)return false;let a=document.createRange();return a.setStart(o,i),a.setEnd(o,n),e.removeAllRanges(),e.addRange(a),true}function vi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return null;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;return i===n?null:t.slice(i,n)}function Ii(e,o){let t=e.ctrlKey||e.metaKey,r=o.ctrlKey||o.metaKey;return e.key.toLowerCase()===o.key.toLowerCase()&&t===!!r&&e.shiftKey===!!o.shiftKey&&e.altKey===!!o.altKey}var u={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let o=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);o.push(r?"\u2318":"Ctrl");}e.shiftKey&&o.push("Shift"),e.altKey&&o.push("Alt");let t=e.key;return t==="ArrowLeft"?t="\u2190":t==="ArrowRight"?t="\u2192":t==="ArrowUp"?t="\u2191":t==="ArrowDown"&&(t="\u2193"),o.push(t),o.join("+")}function wi(){return [{action:"Move by word (left)",shortcut:m(u.wordLeft)},{action:"Move by word (right)",shortcut:m(u.wordRight)},{action:"Select word (left)",shortcut:m(u.selectWordLeft)},{action:"Select word (right)",shortcut:m(u.selectWordRight)},{action:"Go to line start",shortcut:m(u.lineStart)},{action:"Go to line end",shortcut:m(u.lineEnd)},{action:"Select to line start",shortcut:m(u.selectToLineStart)},{action:"Select to line end",shortcut:m(u.selectToLineEnd)},{action:"Go to document start",shortcut:m(u.documentStart)},{action:"Go to document end",shortcut:m(u.documentEnd)},{action:"Select to document start",shortcut:m(u.selectToDocumentStart)},{action:"Select to document end",shortcut:m(u.selectToDocumentEnd)}]}var B=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,d=new PluginKey("template");function Oi(e,o,t){return `${e}:${o}:${t}`}function F(e){let o=[];e.descendants((s,c)=>(s.isText&&s.text&&o.push({text:s.text,pos:c}),true));let t="",r=[];for(let s of o){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);t+=s.text;}let i=[],n=[],a=new Map,p;for(B.lastIndex=0;(p=B.exec(t))!==null;){let[s,c,l]=p,y=r[p.index],h=r[p.index+s.length-1]+1,g;c==="#"?g="sectionStart":c==="/"?g="sectionEnd":c==="^"?g="invertedStart":c==="@"?g="raw":g="variable";let T=`${g}:${l}`,D=a.get(T)??0;a.set(T,D+1);let P={id:Oi(g,l,D),type:g,name:l,rawTag:s,from:y,to:h};if(g==="sectionStart"||g==="invertedStart")P.nestedVars=[],n.push(P);else if(g==="sectionEnd"){for(let b=n.length-1;b>=0;b--)if(n[b].name===l){n.splice(b,1);break}}else g==="variable"&&n.length>0&&(n[n.length-1].nestedVars?.push(l),P.insideSection=true);i.push(P);}return i}function Ni(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function A(e,o,t,r){let i=[];for(let n of o){let a=n.id===t,p=n.id===r,s=Ni(n.type),c=["docx-template-tag"];a&&c.push("hovered"),p&&c.push("selected"),i.push(Decoration.inline(n.from,n.to,{class:c.join(" "),"data-tag-id":n.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return DecorationSet.create(e,i)}function ki(e,o){if(e.length!==o.length)return false;for(let t=0;t<e.length;t++)if(e[t].id!==o[t].id)return false;return true}function R(){return new Plugin({key:d,state:{init(e,o){let t=F(o.doc);return {tags:t,decorations:A(o.doc,t)}},apply(e,o,t,r){if(e.docChanged){let n=F(r.doc),a=ki(o.tags,n);return {tags:n,decorations:a?o.decorations.map(e.mapping,e.doc):A(r.doc,n,o.hoveredId,o.selectedId),hoveredId:o.hoveredId,selectedId:o.selectedId}}let i=e.getMeta(d);if(i){let n=i.hoveredId??o.hoveredId,a=i.selectedId??o.selectedId;return {...o,hoveredId:n,selectedId:a,decorations:A(r.doc,o.tags,n,a)}}return {...o,decorations:o.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return d.getState(e)?.decorations??DecorationSet.empty},handleClick(e,o){let r=(d.getState(e.state)?.tags??[]).find(n=>o>=n.from&&o<=n.to);return r?(e.dispatch(e.state.tr.setMeta(d,{selectedId:r.id})),true):(d.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(d,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,o){let r=o.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,i=d.getState(e.state)?.hoveredId;return r!==i&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:r})),false},mouseout(e,o){return o.relatedTarget?.closest?.("[data-tag-id]")||d.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:void 0})),false}}}})}function W(e){return d.getState(e)?.tags??[]}function x(e,o){e.dispatch(e.state.tr.setMeta(d,{hoveredId:o}));}function v(e,o){e.dispatch(e.state.tr.setMeta(d,{selectedId:o}));}var I=`
|
|
2
2
|
.docx-template-tag {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
transition: background-color 0.1s;
|
|
@@ -487,6 +487,23 @@ interface DocxEditorRef {
|
|
|
487
487
|
loadDocument: (doc: Document) => void;
|
|
488
488
|
/** Load a DOCX buffer programmatically (ArrayBuffer, Uint8Array, Blob, or File) */
|
|
489
489
|
loadDocumentBuffer: (buffer: DocxInput) => Promise<void>;
|
|
490
|
+
/**
|
|
491
|
+
* Apply document changes from a DocumentAgent while preserving undo history.
|
|
492
|
+
* This dispatches a PM transaction that replaces the document content,
|
|
493
|
+
* allowing undo/redo to work with agent-made changes.
|
|
494
|
+
*
|
|
495
|
+
* @param doc - The modified Document from an agent
|
|
496
|
+
* @returns true if the changes were applied, false if the editor is not ready
|
|
497
|
+
*
|
|
498
|
+
* @example
|
|
499
|
+
* ```ts
|
|
500
|
+
* const agent = EnhancedDocumentAgent.fromDocument(editorRef.current.getDocument());
|
|
501
|
+
* const updated = agent.toggleBulletList([0, 1, 2]).getDocument();
|
|
502
|
+
* editorRef.current.applyDocumentChanges(updated);
|
|
503
|
+
* // Ctrl+Z will undo the bullet list changes
|
|
504
|
+
* ```
|
|
505
|
+
*/
|
|
506
|
+
applyDocumentChanges: (doc: Document) => boolean;
|
|
490
507
|
}
|
|
491
508
|
type EditorMode = 'editing' | 'suggesting' | 'viewing';
|
|
492
509
|
/**
|
|
@@ -487,6 +487,23 @@ interface DocxEditorRef {
|
|
|
487
487
|
loadDocument: (doc: Document) => void;
|
|
488
488
|
/** Load a DOCX buffer programmatically (ArrayBuffer, Uint8Array, Blob, or File) */
|
|
489
489
|
loadDocumentBuffer: (buffer: DocxInput) => Promise<void>;
|
|
490
|
+
/**
|
|
491
|
+
* Apply document changes from a DocumentAgent while preserving undo history.
|
|
492
|
+
* This dispatches a PM transaction that replaces the document content,
|
|
493
|
+
* allowing undo/redo to work with agent-made changes.
|
|
494
|
+
*
|
|
495
|
+
* @param doc - The modified Document from an agent
|
|
496
|
+
* @returns true if the changes were applied, false if the editor is not ready
|
|
497
|
+
*
|
|
498
|
+
* @example
|
|
499
|
+
* ```ts
|
|
500
|
+
* const agent = EnhancedDocumentAgent.fromDocument(editorRef.current.getDocument());
|
|
501
|
+
* const updated = agent.toggleBulletList([0, 1, 2]).getDocument();
|
|
502
|
+
* editorRef.current.applyDocumentChanges(updated);
|
|
503
|
+
* // Ctrl+Z will undo the bullet list changes
|
|
504
|
+
* ```
|
|
505
|
+
*/
|
|
506
|
+
applyDocumentChanges: (doc: Document) => boolean;
|
|
490
507
|
}
|
|
491
508
|
type EditorMode = 'editing' | 'suggesting' | 'viewing';
|
|
492
509
|
/**
|
package/dist/react.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-
|
|
1
|
+
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-B1dSZ_w1.mjs';
|
|
2
2
|
export { g as DocxInput, t as toArrayBuffer } from './DocumentAgent-E8OX_8j0.mjs';
|
|
3
3
|
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-Cjb_v74d.mjs';
|
|
4
4
|
import 'react';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-
|
|
1
|
+
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-1OO-DXvx.js';
|
|
2
2
|
export { g as DocxInput, t as toArrayBuffer } from './DocumentAgent-iedmc_8s.js';
|
|
3
3
|
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-C1l58nzE.js';
|
|
4
4
|
import 'react';
|
package/dist/react.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk6YRWZ32V_js=require('./chunk-6YRWZ32V.js');require('./chunk-EV3CM6TU.js'),require('./chunk-DC65PJYE.js'),require('./chunk-AU5NVRHP.js'),require('./chunk-377ZVTSE.js'),require('./chunk-QSUPYUOP.js');var chunkFVUGBRDD_js=require('./chunk-FVUGBRDD.js');require('./chunk-P7WEP4JU.js'),require('./chunk-4VUZBV2S.js'),require('./chunk-KCOGY3V2.js'),require('./chunk-PB7VMDDP.js'),require('./chunk-ZJNGMDRE.js'),require('./chunk-AARNCPWR.js');var chunkKUL2SDYC_js=require('./chunk-KUL2SDYC.js');require('./chunk-BUEMG4NW.js'),require('./chunk-SE5EN2QL.js'),require('./chunk-IFPN3NT3.js'),require('./chunk-H5NTJZO4.js');Object.defineProperty(exports,"DocxEditor",{enumerable:true,get:function(){return chunk6YRWZ32V_js.v}});Object.defineProperty(exports,"ErrorBoundary",{enumerable:true,get:function(){return chunk6YRWZ32V_js.d}});Object.defineProperty(exports,"ErrorProvider",{enumerable:true,get:function(){return chunk6YRWZ32V_js.c}});Object.defineProperty(exports,"PLUGIN_HOST_STYLES",{enumerable:true,get:function(){return chunk6YRWZ32V_js.ea}});Object.defineProperty(exports,"ParseErrorDisplay",{enumerable:true,get:function(){return chunk6YRWZ32V_js.e}});Object.defineProperty(exports,"PluginHost",{enumerable:true,get:function(){return chunk6YRWZ32V_js.fa}});Object.defineProperty(exports,"UnsupportedFeatureWarning",{enumerable:true,get:function(){return chunk6YRWZ32V_js.f}});Object.defineProperty(exports,"ZOOM_PRESETS",{enumerable:true,get:function(){return chunk6YRWZ32V_js.y}});Object.defineProperty(exports,"clampZoom",{enumerable:true,get:function(){return chunk6YRWZ32V_js.H}});Object.defineProperty(exports,"findNearestZoomPreset",{enumerable:true,get:function(){return chunk6YRWZ32V_js.B}});Object.defineProperty(exports,"formatZoom",{enumerable:true,get:function(){return chunk6YRWZ32V_js.E}});Object.defineProperty(exports,"generateOverlayElements",{enumerable:true,get:function(){return chunk6YRWZ32V_js.ca}});Object.defineProperty(exports,"getNextZoomPreset",{enumerable:true,get:function(){return chunk6YRWZ32V_js.C}});Object.defineProperty(exports,"getPreviousZoomPreset",{enumerable:true,get:function(){return chunk6YRWZ32V_js.D}});Object.defineProperty(exports,"getUserFriendlyMessage",{enumerable:true,get:function(){return chunk6YRWZ32V_js.h}});Object.defineProperty(exports,"getZoomPresets",{enumerable:true,get:function(){return chunk6YRWZ32V_js.A}});Object.defineProperty(exports,"isParseError",{enumerable:true,get:function(){return chunk6YRWZ32V_js.g}});Object.defineProperty(exports,"isZoomPreset",{enumerable:true,get:function(){return chunk6YRWZ32V_js.G}});Object.defineProperty(exports,"parseZoom",{enumerable:true,get:function(){return chunk6YRWZ32V_js.F}});Object.defineProperty(exports,"renderAsync",{enumerable:true,get:function(){return chunk6YRWZ32V_js.w}});Object.defineProperty(exports,"useAutoSave",{enumerable:true,get:function(){return chunk6YRWZ32V_js.x}});Object.defineProperty(exports,"useClipboard",{enumerable:true,get:function(){return chunk6YRWZ32V_js.da}});Object.defineProperty(exports,"useErrorNotifications",{enumerable:true,get:function(){return chunk6YRWZ32V_js.b}});Object.defineProperty(exports,"useSelectionHighlight",{enumerable:true,get:function(){return chunk6YRWZ32V_js.ba}});Object.defineProperty(exports,"useTableSelection",{enumerable:true,get:function(){return chunk6YRWZ32V_js.i}});Object.defineProperty(exports,"useWheelZoom",{enumerable:true,get:function(){return chunk6YRWZ32V_js.z}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkFVUGBRDD_js.x}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkFVUGBRDD_js.F}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkFVUGBRDD_js.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkFVUGBRDD_js.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkFVUGBRDD_js.E}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkFVUGBRDD_js.w}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.m}});
|
package/dist/react.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{v as DocxEditor,d as ErrorBoundary,c as ErrorProvider,ea as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,fa as PluginHost,f as UnsupportedFeatureWarning,y as ZOOM_PRESETS,H as clampZoom,B as findNearestZoomPreset,E as formatZoom,ca as generateOverlayElements,C as getNextZoomPreset,D as getPreviousZoomPreset,h as getUserFriendlyMessage,A as getZoomPresets,g as isParseError,G as isZoomPreset,F as parseZoom,w as renderAsync,x as useAutoSave,da as useClipboard,b as useErrorNotifications,ba as useSelectionHighlight,i as useTableSelection,z as useWheelZoom}from'./chunk-
|
|
1
|
+
export{v as DocxEditor,d as ErrorBoundary,c as ErrorProvider,ea as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,fa as PluginHost,f as UnsupportedFeatureWarning,y as ZOOM_PRESETS,H as clampZoom,B as findNearestZoomPreset,E as formatZoom,ca as generateOverlayElements,C as getNextZoomPreset,D as getPreviousZoomPreset,h as getUserFriendlyMessage,A as getZoomPresets,g as isParseError,G as isZoomPreset,F as parseZoom,w as renderAsync,x as useAutoSave,da as useClipboard,b as useErrorNotifications,ba as useSelectionHighlight,i as useTableSelection,z as useWheelZoom}from'./chunk-S67UBZDL.mjs';import'./chunk-2HDYCD2Q.mjs';import'./chunk-X5A54T6S.mjs';import'./chunk-Z26WOH6R.mjs';import'./chunk-YKBSKEBS.mjs';import'./chunk-GZOCOWWB.mjs';export{x as TABLE_DATA_ATTRIBUTES,F as createSelectionFromDOM,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,w as isAutoSaveSupported}from'./chunk-QTSXJRP6.mjs';import'./chunk-7QTNB64A.mjs';import'./chunk-QAZ4233N.mjs';import'./chunk-RTFUE3KK.mjs';import'./chunk-DLVLK5FT.mjs';import'./chunk-37SLIJPH.mjs';import'./chunk-M5F4SK3W.mjs';export{m as toArrayBuffer}from'./chunk-7MGFEP2R.mjs';import'./chunk-W53SI3XW.mjs';import'./chunk-LYBG4YI7.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-TAUMSKRE.mjs';
|