@eigenpal/docx-editor-core 1.0.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -16
- package/dist/agent/index.d.mts +42 -7
- package/dist/agent/index.d.ts +42 -7
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-2EQGBVPV.js +2 -0
- package/dist/chunk-2XP6GLA4.mjs +1 -0
- package/dist/chunk-44FHVKSI.js +1 -0
- package/dist/{chunk-2IE6UDHJ.mjs → chunk-44JKHPGF.mjs} +1 -1
- package/dist/{chunk-ABBG4WD2.js → chunk-4QEETB7U.js} +2 -2
- package/dist/chunk-53VKL6CG.js +1 -0
- package/dist/chunk-5BLQHXWK.mjs +1 -0
- package/dist/chunk-5M7TI6TV.js +1 -0
- package/dist/chunk-6JKM7TWJ.mjs +1 -0
- package/dist/{chunk-EQVNAHL7.mjs → chunk-6Y6LON6Y.mjs} +1 -1
- package/dist/{chunk-QVEAQOMR.mjs → chunk-6ZXL3EIP.mjs} +1 -1
- package/dist/{chunk-GHQS3I2W.mjs → chunk-7BVHKWEW.mjs} +1 -1
- package/dist/chunk-7HANRHHL.js +1 -0
- package/dist/chunk-7LRR7RKE.mjs +15 -0
- package/dist/chunk-7OW3VCZE.mjs +1 -0
- package/dist/chunk-7ZN4WI5N.mjs +4 -0
- package/dist/chunk-AMB6Y77B.js +1 -0
- package/dist/{chunk-3JXR6YU4.mjs → chunk-BOOHU5EW.mjs} +1 -1
- package/dist/{chunk-XBHF5Q2F.js → chunk-BXWOLARZ.js} +1 -1
- package/dist/chunk-C45EFOVP.js +1 -0
- package/dist/chunk-CCPBNE2F.mjs +2 -0
- package/dist/{chunk-XWQB6APW.mjs → chunk-D62KS7QG.mjs} +1 -1
- package/dist/chunk-DI6CRWSW.mjs +1 -0
- package/dist/chunk-DTTWBKGN.mjs +0 -0
- package/dist/chunk-DV6GWBUJ.js +2 -0
- package/dist/{chunk-EPX7BBJD.js → chunk-E4JMCA5X.js} +2 -2
- package/dist/chunk-EQAORQC3.mjs +1 -0
- package/dist/chunk-FO6IX2DB.js +6 -0
- package/dist/chunk-FW23IMBF.mjs +1 -0
- package/dist/chunk-FYKRDDKG.js +1 -0
- package/dist/chunk-GSKMHXHG.js +1 -0
- package/dist/chunk-GUQFNJHE.mjs +1 -0
- package/dist/{chunk-D536HC5M.js → chunk-HQPWFUP5.js} +1 -1
- package/dist/chunk-ICE6NC3S.mjs +1 -0
- package/dist/chunk-IFUED5ZS.mjs +1 -0
- package/dist/chunk-ISKTBM4L.js +1 -0
- package/dist/chunk-IYKBX24M.js +1 -0
- package/dist/chunk-KOEWROYV.mjs +6 -0
- package/dist/chunk-KRN6YSR2.mjs +1 -0
- package/dist/chunk-KZXZWGFX.mjs +1 -0
- package/dist/chunk-L24C5TEX.mjs +1 -0
- package/dist/chunk-L72YAV5N.js +3 -0
- package/dist/chunk-LK6I3HMH.mjs +0 -0
- package/dist/{chunk-XBIKSAH6.js → chunk-LTHT4A4S.js} +1 -1
- package/dist/chunk-LWH66Q7Q.js +1 -0
- package/dist/chunk-MERJFGEP.mjs +59 -0
- package/dist/chunk-MJ6XZFVD.mjs +1 -0
- package/dist/chunk-MNOHUTKE.js +15 -0
- package/dist/chunk-MP4QSEO2.mjs +1 -0
- package/dist/{chunk-HL5PQT3A.mjs → chunk-OEXVWIHW.mjs} +1 -1
- package/dist/chunk-PVAVS3IU.js +1 -0
- package/dist/chunk-QEACB5VG.js +1 -0
- package/dist/{chunk-EV6W6KXG.mjs → chunk-QKLY4F2J.mjs} +1 -1
- package/dist/chunk-QYF7BRG3.js +2 -0
- package/dist/chunk-ROG4MNOR.js +4 -0
- package/dist/{chunk-D5E5TA74.js → chunk-RORPREG3.js} +1 -1
- package/dist/chunk-SORYYVJ7.js +1 -0
- package/dist/chunk-SZIOF5SG.js +59 -0
- package/dist/{chunk-SAFW7UQZ.js → chunk-THLJYXFB.js} +1 -1
- package/dist/chunk-TUIEV7Q7.js +1 -0
- package/dist/{chunk-Z4SJCSTS.js → chunk-U4WUDHDK.js} +1 -1
- package/dist/chunk-U4XMGWF7.js +1 -0
- package/dist/chunk-U67MWOPZ.mjs +1 -0
- package/dist/chunk-VMRUBLPI.js +1 -0
- package/dist/chunk-WLDI6N3B.mjs +3 -0
- package/dist/chunk-WLHNIXWC.mjs +2 -0
- package/dist/chunk-WVERBZZU.js +1 -0
- package/dist/chunk-XCKTBNKN.js +1 -0
- package/dist/chunk-XPV6VILW.mjs +1 -0
- package/dist/chunk-Z5MJYQSD.mjs +1 -0
- package/dist/chunk-ZBFNOJGY.js +1 -0
- package/dist/chunk-ZX26QZJ5.mjs +1 -0
- package/dist/content-CE-ZdMwG.d.mts +1418 -0
- package/dist/content-CYXJ2tfQ.d.ts +1418 -0
- package/dist/contentControlValues-DAwTWfgR.d.mts +187 -0
- package/dist/contentControlValues-gyVPsi6m.d.ts +187 -0
- package/dist/core-plugins.d.mts +1 -2
- package/dist/core-plugins.d.ts +1 -2
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +6 -7
- package/dist/core.d.ts +6 -7
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentSerializer-C1ueey5d.d.mts → documentSerializer-Bghq9rFI.d.mts} +1 -1
- package/dist/{documentSerializer-Chn7J1WG.d.ts → documentSerializer-C4lFC60P.d.ts} +1 -1
- package/dist/documentStyles-D87dxl18.d.mts +34 -0
- package/dist/documentStyles-DToJv9co.d.ts +34 -0
- package/dist/docx/index.d.mts +1 -2
- package/dist/docx/index.d.ts +1 -2
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +1 -2
- package/dist/docx/parser.d.ts +1 -2
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +1 -2
- package/dist/docx/rezip.d.ts +1 -2
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +2 -3
- package/dist/docx/serializer/index.d.ts +2 -3
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/{fontLoader-QPwbcX5j.d.ts → fontLoader-Cm02v7PO.d.ts} +63 -3
- package/dist/{fontLoader-BOt95Jtf.d.mts → fontLoader-Z7pqeNvZ.d.mts} +63 -3
- package/dist/{headerFooterLayout-B5LyDpSM.d.ts → headerFooterLayout-Bd58Tum3.d.ts} +74 -2
- package/dist/{headerFooterLayout-DVFcJ832.d.mts → headerFooterLayout-CuIJiIzi.d.mts} +74 -2
- package/dist/headless.d.mts +7 -6
- package/dist/headless.d.ts +7 -6
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +4 -4
- package/dist/layout-bridge/index.d.ts +4 -4
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +4 -0
- package/dist/layout-bridge/measuring/index.d.ts +4 -0
- package/dist/layout-bridge/measuring/index.js +1 -1
- package/dist/layout-bridge/measuring/index.mjs +1 -1
- package/dist/layout-bridge/tableInsertHover.js +1 -1
- package/dist/layout-bridge/tableInsertHover.mjs +1 -1
- package/dist/layout-bridge/toFlowBlocks.d.mts +2 -1
- package/dist/layout-bridge/toFlowBlocks.d.ts +2 -1
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +4 -1
- package/dist/layout-engine/index.d.ts +4 -1
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +74 -1
- package/dist/layout-engine/types.d.ts +74 -1
- package/dist/layout-painter/index.d.mts +4 -4
- package/dist/layout-painter/index.d.ts +4 -4
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +27 -4
- package/dist/layout-painter/renderPage.d.ts +27 -4
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/managers/AutoSaveManager.d.mts +1 -2
- package/dist/managers/AutoSaveManager.d.ts +1 -2
- package/dist/managers/TableSelectionManager.d.mts +1 -2
- package/dist/managers/TableSelectionManager.d.ts +1 -2
- package/dist/managers/types.d.mts +1 -2
- package/dist/managers/types.d.ts +1 -2
- package/dist/mcp-cli.mjs +23 -22
- package/dist/mcp.d.mts +1 -2
- package/dist/mcp.d.ts +1 -2
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +1 -1
- package/dist/{nodes-D7PTUJ2N.d.ts → nodes-BNkRKBBX.d.ts} +64 -3
- package/dist/{nodes-CL8M0L-a.d.mts → nodes-Bz-UHhLE.d.mts} +64 -3
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +80 -6
- package/dist/prosemirror/commands/index.d.ts +80 -6
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +2 -3
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +2 -3
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +3 -4
- package/dist/prosemirror/conversion/index.d.ts +3 -4
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +302 -95
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -1
- package/dist/prosemirror/index.d.mts +94 -7
- package/dist/prosemirror/index.d.ts +94 -7
- package/dist/prosemirror/index.js +3 -1
- package/dist/prosemirror/index.mjs +3 -1
- package/dist/prosemirror/plugins/index.d.mts +124 -17
- package/dist/prosemirror/plugins/index.d.ts +124 -17
- package/dist/prosemirror/plugins/index.js +1 -1
- package/dist/prosemirror/plugins/index.mjs +1 -1
- package/dist/prosemirror/schema/index.d.mts +3 -4
- package/dist/prosemirror/schema/index.d.ts +3 -4
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +9 -0
- package/dist/prosemirror/styles/index.d.ts +9 -0
- package/dist/prosemirror/styles/index.js +1 -1
- package/dist/prosemirror/styles/index.mjs +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +44 -22
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +44 -22
- package/dist/prosemirror/utils/extractTrackedChanges.js +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -1
- package/dist/types/content.d.mts +4 -1167
- package/dist/types/content.d.ts +4 -1167
- package/dist/types/document.d.mts +2 -4
- package/dist/types/document.d.ts +2 -4
- package/dist/utils/comments.d.mts +78 -5
- package/dist/utils/comments.d.ts +78 -5
- package/dist/utils/comments.js +1 -1
- package/dist/utils/comments.mjs +1 -1
- package/dist/utils/highlightColors.js +1 -1
- package/dist/utils/highlightColors.mjs +1 -1
- package/dist/utils/index.d.mts +2 -3
- package/dist/utils/index.d.ts +2 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.mjs +3 -3
- package/dist/{variableDetector-CAdt8yOr.d.mts → variableDetector-C7BLz9sJ.d.mts} +1 -1
- package/dist/{variableDetector-W4XEN9YC.d.ts → variableDetector-HPZbJ_gw.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-3AZWLVLC.js +0 -1
- package/dist/chunk-3NLVHZMT.js +0 -59
- package/dist/chunk-5SU4HPQS.mjs +0 -1
- package/dist/chunk-7PX32GLB.mjs +0 -1
- package/dist/chunk-AHXPHBMT.js +0 -1
- package/dist/chunk-B6LYBJ4H.mjs +0 -1
- package/dist/chunk-BFB4PRS4.mjs +0 -1
- package/dist/chunk-BRHHK4MG.mjs +0 -2
- package/dist/chunk-CP5OSG5Z.mjs +0 -1
- package/dist/chunk-CUXXRGPQ.mjs +0 -1
- package/dist/chunk-D4RPOJC7.js +0 -1
- package/dist/chunk-FWTP7BN7.mjs +0 -4
- package/dist/chunk-G7AKYAKU.mjs +0 -1
- package/dist/chunk-HAAMO2Z2.mjs +0 -1
- package/dist/chunk-ILJUDEZ5.mjs +0 -1
- package/dist/chunk-IN6IYQ2X.js +0 -1
- package/dist/chunk-IO6HZ7KR.js +0 -2
- package/dist/chunk-IP2VXNWG.js +0 -1
- package/dist/chunk-KBU6QQFU.js +0 -9
- package/dist/chunk-LBKMYD3M.mjs +0 -1
- package/dist/chunk-LDKESXXK.mjs +0 -3
- package/dist/chunk-MZOVDLYL.js +0 -1
- package/dist/chunk-N3EIZN65.js +0 -1
- package/dist/chunk-NBLJPT54.mjs +0 -1
- package/dist/chunk-NERY274X.js +0 -1
- package/dist/chunk-NNQWQOC5.mjs +0 -1
- package/dist/chunk-NO5LW2DQ.mjs +0 -1
- package/dist/chunk-OCAX2KJQ.js +0 -4
- package/dist/chunk-OTDF6PZK.js +0 -1
- package/dist/chunk-P3AXSRLG.mjs +0 -1
- package/dist/chunk-Q4CKLXWA.js +0 -1
- package/dist/chunk-QMLIXLZJ.mjs +0 -4
- package/dist/chunk-QXHL67FG.mjs +0 -1
- package/dist/chunk-TGPS3SRR.mjs +0 -1
- package/dist/chunk-TMISJEGL.js +0 -1
- package/dist/chunk-TRJWRZZD.js +0 -1
- package/dist/chunk-TRQN2SFW.mjs +0 -59
- package/dist/chunk-UGXSKZVM.js +0 -1
- package/dist/chunk-V435QKZB.js +0 -3
- package/dist/chunk-V6SWUCTS.js +0 -2
- package/dist/chunk-VQWZHPWI.mjs +0 -1
- package/dist/chunk-X3NB7STJ.js +0 -1
- package/dist/chunk-XOH7YAYL.js +0 -1
- package/dist/chunk-Y5HZAMND.mjs +0 -9
- package/dist/chunk-Y7I5QDCN.mjs +0 -1
- package/dist/chunk-YCDB5TA6.js +0 -4
- package/dist/chunk-YE357WVA.js +0 -1
- package/dist/chunk-YVYB4YCI.js +0 -1
- package/dist/lists-CvG_iVK3.d.mts +0 -148
- package/dist/lists-UTp_tk7B.d.ts +0 -148
package/dist/docx/rezip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkSZIOF5SG_js=require('../chunk-SZIOF5SG.js');require('../chunk-L72YAV5N.js'),require('../chunk-HQPWFUP5.js'),require('../chunk-DV6GWBUJ.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"COMMENTS_CONTENT_TYPE",{enumerable:true,get:function(){return chunkSZIOF5SG_js.b}});Object.defineProperty(exports,"COMMENTS_EXTENDED_CONTENT_TYPE",{enumerable:true,get:function(){return chunkSZIOF5SG_js.c}});Object.defineProperty(exports,"COMMENTS_EXTENSIBLE_CONTENT_TYPE",{enumerable:true,get:function(){return chunkSZIOF5SG_js.e}});Object.defineProperty(exports,"COMMENTS_IDS_CONTENT_TYPE",{enumerable:true,get:function(){return chunkSZIOF5SG_js.d}});Object.defineProperty(exports,"addMedia",{enumerable:true,get:function(){return chunkSZIOF5SG_js.o}});Object.defineProperty(exports,"addRelationship",{enumerable:true,get:function(){return chunkSZIOF5SG_js.n}});Object.defineProperty(exports,"applyUpdatesToZip",{enumerable:true,get:function(){return chunkSZIOF5SG_js.m}});Object.defineProperty(exports,"collectHeaderFooterUpdates",{enumerable:true,get:function(){return chunkSZIOF5SG_js.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkSZIOF5SG_js.s}});Object.defineProperty(exports,"createEmptyDocx",{enumerable:true,get:function(){return chunkSZIOF5SG_js.g}});Object.defineProperty(exports,"default",{enumerable:true,get:function(){return chunkSZIOF5SG_js.t}});Object.defineProperty(exports,"findMaxRId",{enumerable:true,get:function(){return chunkSZIOF5SG_js.a}});Object.defineProperty(exports,"isDocxBuffer",{enumerable:true,get:function(){return chunkSZIOF5SG_js.r}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkSZIOF5SG_js.h}});Object.defineProperty(exports,"repackDocxFromRaw",{enumerable:true,get:function(){return chunkSZIOF5SG_js.i}});Object.defineProperty(exports,"updateCoreProperties",{enumerable:true,get:function(){return chunkSZIOF5SG_js.p}});Object.defineProperty(exports,"updateDocumentXml",{enumerable:true,get:function(){return chunkSZIOF5SG_js.j}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkSZIOF5SG_js.l}});Object.defineProperty(exports,"updateXmlFile",{enumerable:true,get:function(){return chunkSZIOF5SG_js.k}});Object.defineProperty(exports,"validateDocx",{enumerable:true,get:function(){return chunkSZIOF5SG_js.q}});
|
package/dist/docx/rezip.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as COMMENTS_CONTENT_TYPE,c as COMMENTS_EXTENDED_CONTENT_TYPE,e as COMMENTS_EXTENSIBLE_CONTENT_TYPE,d as COMMENTS_IDS_CONTENT_TYPE,o as addMedia,n as addRelationship,m as applyUpdatesToZip,f as collectHeaderFooterUpdates,s as createDocx,g as createEmptyDocx,t as default,a as findMaxRId,r as isDocxBuffer,h as repackDocx,i as repackDocxFromRaw,p as updateCoreProperties,j as updateDocumentXml,l as updateMultipleFiles,k as updateXmlFile,q as validateDocx}from'../chunk-
|
|
1
|
+
export{b as COMMENTS_CONTENT_TYPE,c as COMMENTS_EXTENDED_CONTENT_TYPE,e as COMMENTS_EXTENSIBLE_CONTENT_TYPE,d as COMMENTS_IDS_CONTENT_TYPE,o as addMedia,n as addRelationship,m as applyUpdatesToZip,f as collectHeaderFooterUpdates,s as createDocx,g as createEmptyDocx,t as default,a as findMaxRId,r as isDocxBuffer,h as repackDocx,i as repackDocxFromRaw,p as updateCoreProperties,j as updateDocumentXml,l as updateMultipleFiles,k as updateXmlFile,q as validateDocx}from'../chunk-MERJFGEP.mjs';import'../chunk-WLDI6N3B.mjs';import'../chunk-OEXVWIHW.mjs';import'../chunk-WLHNIXWC.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -6,12 +6,11 @@
|
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
export { a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../documentSerializer-
|
|
10
|
-
import { Paragraph, Run, Table, HeaderFooter, Comment } from '../../
|
|
9
|
+
export { a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../documentSerializer-Bghq9rFI.mjs';
|
|
10
|
+
import { P as Paragraph, R as Run, T as Table, y as HeaderFooter, C as Comment } from '../../content-CE-ZdMwG.mjs';
|
|
11
11
|
import '../../types/document.mjs';
|
|
12
12
|
import '../../colors-C3vA7HUU.mjs';
|
|
13
13
|
import '../../formatting-BH4hcZiq.mjs';
|
|
14
|
-
import '../../lists-CvG_iVK3.mjs';
|
|
15
14
|
import '../../styles-EI2lxeEN.mjs';
|
|
16
15
|
import '../wrapTypes.mjs';
|
|
17
16
|
|
|
@@ -6,12 +6,11 @@
|
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
export { a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../documentSerializer-
|
|
10
|
-
import { Paragraph, Run, Table, HeaderFooter, Comment } from '../../
|
|
9
|
+
export { a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../documentSerializer-C4lFC60P.js';
|
|
10
|
+
import { P as Paragraph, R as Run, T as Table, y as HeaderFooter, C as Comment } from '../../content-CYXJ2tfQ.js';
|
|
11
11
|
import '../../types/document.js';
|
|
12
12
|
import '../../colors-C3vA7HUU.js';
|
|
13
13
|
import '../../formatting-_OXU8gLB.js';
|
|
14
|
-
import '../../lists-UTp_tk7B.js';
|
|
15
14
|
import '../../styles-BBv7doYK.js';
|
|
16
15
|
import '../wrapTypes.js';
|
|
17
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkL72YAV5N_js=require('../../chunk-L72YAV5N.js');require('../../chunk-C2BAPYGJ.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"serializeComments",{enumerable:true,get:function(){return chunkL72YAV5N_js.j}});Object.defineProperty(exports,"serializeDocument",{enumerable:true,get:function(){return chunkL72YAV5N_js.g}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkL72YAV5N_js.f}});Object.defineProperty(exports,"serializeHeaderFooter",{enumerable:true,get:function(){return chunkL72YAV5N_js.h}});Object.defineProperty(exports,"serializeParagraph",{enumerable:true,get:function(){return chunkL72YAV5N_js.c}});Object.defineProperty(exports,"serializeRun",{enumerable:true,get:function(){return chunkL72YAV5N_js.b}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkL72YAV5N_js.e}});Object.defineProperty(exports,"serializeTable",{enumerable:true,get:function(){return chunkL72YAV5N_js.d}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{j as serializeComments,g as serializeDocument,f as serializeDocumentBody,h as serializeHeaderFooter,c as serializeParagraph,b as serializeRun,e as serializeSectionProperties,d as serializeTable}from'../../chunk-
|
|
1
|
+
export{j as serializeComments,g as serializeDocument,f as serializeDocumentBody,h as serializeHeaderFooter,c as serializeParagraph,b as serializeRun,e as serializeSectionProperties,d as serializeTable}from'../../chunk-WLDI6N3B.mjs';import'../../chunk-LE67NTCN.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document } from './types/document.js';
|
|
2
|
-
import { BreakContent, Paragraph, Run, RunContent } from './
|
|
2
|
+
import { x as BreakContent, P as Paragraph, R as Run, g as RunContent } from './content-CYXJ2tfQ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Insert Operations Utility
|
|
@@ -143,6 +143,14 @@ declare function getLoadedFonts(): string[];
|
|
|
143
143
|
* @returns Cleanup function to remove the callback
|
|
144
144
|
*/
|
|
145
145
|
declare function onFontsLoaded(callback: (fonts: string[]) => void): () => void;
|
|
146
|
+
/**
|
|
147
|
+
* Register a callback to be notified when a font fails to load.
|
|
148
|
+
*
|
|
149
|
+
* Adapters subscribe and forward to their `onError` prop. Returns the unsub.
|
|
150
|
+
*
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
declare function onFontError(callback: (error: Error) => void): () => void;
|
|
146
154
|
/**
|
|
147
155
|
* Check if a font is available on the system using canvas measurement
|
|
148
156
|
*
|
|
@@ -164,8 +172,60 @@ declare function canRenderFont(fontFamily: string, fallbackFont?: string): boole
|
|
|
164
172
|
*/
|
|
165
173
|
declare function loadFontFromBuffer(fontFamily: string, buffer: ArrayBuffer, options?: {
|
|
166
174
|
weight?: number | string;
|
|
167
|
-
style?: 'normal' | 'italic';
|
|
168
175
|
}): Promise<boolean>;
|
|
176
|
+
/**
|
|
177
|
+
* Load a font face from a URL (woff2, woff, ttf, otf).
|
|
178
|
+
*
|
|
179
|
+
* Injects an `@font-face` rule pointing at the URL. Multiple weights of the
|
|
180
|
+
* same family can be registered independently.
|
|
181
|
+
*
|
|
182
|
+
* @param fontFamily - CSS font-family name to expose
|
|
183
|
+
* @param src - URL to the font file
|
|
184
|
+
* @param options - Optional weight
|
|
185
|
+
* @returns Promise resolving to true if the face became available
|
|
186
|
+
*
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
declare function loadFontFromUrl(fontFamily: string, src: string, options?: {
|
|
190
|
+
weight?: number | string;
|
|
191
|
+
}): Promise<boolean>;
|
|
192
|
+
/**
|
|
193
|
+
* Declarative description of a single font face to register with the editor.
|
|
194
|
+
*
|
|
195
|
+
* Each entry injects one `@font-face` rule pointing at a URL. Multiple
|
|
196
|
+
* entries can share `family` to register distinct weights as separate faces.
|
|
197
|
+
*
|
|
198
|
+
* For Google Fonts, call `loadFont(family)` directly — the `fonts` prop is
|
|
199
|
+
* for fonts the consumer hosts themselves. For raw bytes already in memory
|
|
200
|
+
* (DOCX-embedded fonts, user uploads), call `loadFontFromBuffer(family, buf)`.
|
|
201
|
+
*
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
interface FontDefinition {
|
|
205
|
+
/**
|
|
206
|
+
* CSS `font-family` name to expose. Match the family name your documents
|
|
207
|
+
* reference; the browser uses this to look up glyphs when text is rendered.
|
|
208
|
+
*/
|
|
209
|
+
family: string;
|
|
210
|
+
/**
|
|
211
|
+
* URL to the font file (woff2, woff, ttf, or otf). The loader injects an
|
|
212
|
+
* `@font-face` rule and lets the browser fetch on demand.
|
|
213
|
+
*/
|
|
214
|
+
src: string;
|
|
215
|
+
/**
|
|
216
|
+
* CSS `font-weight` for this face. Defaults to `'normal'` (≈400). Pass a
|
|
217
|
+
* number (`400`, `700`) or a CSS keyword (`'bold'`). Required when one
|
|
218
|
+
* `family` registers multiple weights as separate entries.
|
|
219
|
+
*/
|
|
220
|
+
weight?: number | string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Register a list of custom font faces. Used by the `fonts` prop on
|
|
224
|
+
* `<DocxEditor>` (React + Vue). Idempotent — safe to call on every render.
|
|
225
|
+
*
|
|
226
|
+
* @public
|
|
227
|
+
*/
|
|
228
|
+
declare function loadFontDefinitions(defs: ReadonlyArray<FontDefinition> | undefined): Promise<void>;
|
|
169
229
|
/**
|
|
170
230
|
* Mapping from common Office/system fonts to Google Fonts equivalents
|
|
171
231
|
*
|
|
@@ -220,4 +280,4 @@ declare function extractFontsFromDocument(document: unknown): Set<string>;
|
|
|
220
280
|
*/
|
|
221
281
|
declare function loadDocumentFonts(document: unknown): Promise<void>;
|
|
222
282
|
|
|
223
|
-
export {
|
|
283
|
+
export { extractFontsFromDocument as A, getGoogleFontEquivalent as B, loadDocumentFonts as C, loadFontDefinitions as D, loadFontFromUrl as E, FONT_MAPPING as F, loadFontWithMapping as G, loadFontsWithMapping as H, type InsertPosition as I, onFontError as J, countPageBreaks as a, createColumnBreak as b, canRenderFont as c, createHorizontalRule as d, createLineBreak as e, createPageBreak as f, createPageBreakParagraph as g, createPageBreakRun as h, findPageBreaks as i, getLoadedFonts as j, hasPageBreakBefore as k, insertHorizontalRule as l, insertPageBreak as m, isBreakContent as n, isColumnBreak as o, isFontLoaded as p, isLoading as q, isLineBreak as r, isPageBreak as s, loadFont as t, loadFontFromBuffer as u, loadFonts as v, onFontsLoaded as w, preloadCommonFonts as x, removePageBreak as y, type FontDefinition as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document } from './types/document.mjs';
|
|
2
|
-
import { BreakContent, Paragraph, Run, RunContent } from './
|
|
2
|
+
import { x as BreakContent, P as Paragraph, R as Run, g as RunContent } from './content-CE-ZdMwG.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Insert Operations Utility
|
|
@@ -143,6 +143,14 @@ declare function getLoadedFonts(): string[];
|
|
|
143
143
|
* @returns Cleanup function to remove the callback
|
|
144
144
|
*/
|
|
145
145
|
declare function onFontsLoaded(callback: (fonts: string[]) => void): () => void;
|
|
146
|
+
/**
|
|
147
|
+
* Register a callback to be notified when a font fails to load.
|
|
148
|
+
*
|
|
149
|
+
* Adapters subscribe and forward to their `onError` prop. Returns the unsub.
|
|
150
|
+
*
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
declare function onFontError(callback: (error: Error) => void): () => void;
|
|
146
154
|
/**
|
|
147
155
|
* Check if a font is available on the system using canvas measurement
|
|
148
156
|
*
|
|
@@ -164,8 +172,60 @@ declare function canRenderFont(fontFamily: string, fallbackFont?: string): boole
|
|
|
164
172
|
*/
|
|
165
173
|
declare function loadFontFromBuffer(fontFamily: string, buffer: ArrayBuffer, options?: {
|
|
166
174
|
weight?: number | string;
|
|
167
|
-
style?: 'normal' | 'italic';
|
|
168
175
|
}): Promise<boolean>;
|
|
176
|
+
/**
|
|
177
|
+
* Load a font face from a URL (woff2, woff, ttf, otf).
|
|
178
|
+
*
|
|
179
|
+
* Injects an `@font-face` rule pointing at the URL. Multiple weights of the
|
|
180
|
+
* same family can be registered independently.
|
|
181
|
+
*
|
|
182
|
+
* @param fontFamily - CSS font-family name to expose
|
|
183
|
+
* @param src - URL to the font file
|
|
184
|
+
* @param options - Optional weight
|
|
185
|
+
* @returns Promise resolving to true if the face became available
|
|
186
|
+
*
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
declare function loadFontFromUrl(fontFamily: string, src: string, options?: {
|
|
190
|
+
weight?: number | string;
|
|
191
|
+
}): Promise<boolean>;
|
|
192
|
+
/**
|
|
193
|
+
* Declarative description of a single font face to register with the editor.
|
|
194
|
+
*
|
|
195
|
+
* Each entry injects one `@font-face` rule pointing at a URL. Multiple
|
|
196
|
+
* entries can share `family` to register distinct weights as separate faces.
|
|
197
|
+
*
|
|
198
|
+
* For Google Fonts, call `loadFont(family)` directly — the `fonts` prop is
|
|
199
|
+
* for fonts the consumer hosts themselves. For raw bytes already in memory
|
|
200
|
+
* (DOCX-embedded fonts, user uploads), call `loadFontFromBuffer(family, buf)`.
|
|
201
|
+
*
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
interface FontDefinition {
|
|
205
|
+
/**
|
|
206
|
+
* CSS `font-family` name to expose. Match the family name your documents
|
|
207
|
+
* reference; the browser uses this to look up glyphs when text is rendered.
|
|
208
|
+
*/
|
|
209
|
+
family: string;
|
|
210
|
+
/**
|
|
211
|
+
* URL to the font file (woff2, woff, ttf, or otf). The loader injects an
|
|
212
|
+
* `@font-face` rule and lets the browser fetch on demand.
|
|
213
|
+
*/
|
|
214
|
+
src: string;
|
|
215
|
+
/**
|
|
216
|
+
* CSS `font-weight` for this face. Defaults to `'normal'` (≈400). Pass a
|
|
217
|
+
* number (`400`, `700`) or a CSS keyword (`'bold'`). Required when one
|
|
218
|
+
* `family` registers multiple weights as separate entries.
|
|
219
|
+
*/
|
|
220
|
+
weight?: number | string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Register a list of custom font faces. Used by the `fonts` prop on
|
|
224
|
+
* `<DocxEditor>` (React + Vue). Idempotent — safe to call on every render.
|
|
225
|
+
*
|
|
226
|
+
* @public
|
|
227
|
+
*/
|
|
228
|
+
declare function loadFontDefinitions(defs: ReadonlyArray<FontDefinition> | undefined): Promise<void>;
|
|
169
229
|
/**
|
|
170
230
|
* Mapping from common Office/system fonts to Google Fonts equivalents
|
|
171
231
|
*
|
|
@@ -220,4 +280,4 @@ declare function extractFontsFromDocument(document: unknown): Set<string>;
|
|
|
220
280
|
*/
|
|
221
281
|
declare function loadDocumentFonts(document: unknown): Promise<void>;
|
|
222
282
|
|
|
223
|
-
export {
|
|
283
|
+
export { extractFontsFromDocument as A, getGoogleFontEquivalent as B, loadDocumentFonts as C, loadFontDefinitions as D, loadFontFromUrl as E, FONT_MAPPING as F, loadFontWithMapping as G, loadFontsWithMapping as H, type InsertPosition as I, onFontError as J, countPageBreaks as a, createColumnBreak as b, canRenderFont as c, createHorizontalRule as d, createLineBreak as e, createPageBreak as f, createPageBreakParagraph as g, createPageBreakRun as h, findPageBreaks as i, getLoadedFonts as j, hasPageBreakBefore as k, insertHorizontalRule as l, insertPageBreak as m, isBreakContent as n, isColumnBreak as o, isFontLoaded as p, isLoading as q, isLineBreak as r, isPageBreak as s, loadFont as t, loadFontFromBuffer as u, loadFonts as v, onFontsLoaded as w, preloadCommonFonts as x, removePageBreak as y, type FontDefinition as z };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Node } from 'prosemirror-model';
|
|
2
|
+
import { EditorView } from 'prosemirror-view';
|
|
1
3
|
import { FlowBlock, Measure, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.js';
|
|
2
|
-
import { Footnote, HeaderFooter } from './
|
|
4
|
+
import { F as Footnote, y as HeaderFooter } from './content-CYXJ2tfQ.js';
|
|
3
5
|
import { a as StyleDefinitions, T as Theme } from './styles-BBv7doYK.js';
|
|
4
6
|
import { F as FootnoteRenderItem, H as HeaderFooterContent } from './footnotes-skVvEHvZ.js';
|
|
5
7
|
import { Document } from './types/document.js';
|
|
@@ -216,5 +218,75 @@ type ConvertHeaderFooterOptions = {
|
|
|
216
218
|
* textBox, fields) and the inline editor's content stay in lockstep.
|
|
217
219
|
*/
|
|
218
220
|
declare function convertHeaderFooterToContent(headerFooter: HeaderFooter | null | undefined, contentWidth: number, metrics: HeaderFooterMetrics, options: ConvertHeaderFooterOptions): HeaderFooterContent | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* Same pipeline as {@link convertHeaderFooterToContent}, but starts from an
|
|
223
|
+
* already-built ProseMirror document instead of `HeaderFooter.content`.
|
|
224
|
+
*
|
|
225
|
+
* The unified HF editing model (see `openspec/changes/unify-hf-editing/`)
|
|
226
|
+
* maintains one persistent hidden PM EditorView per HF `rId`. The painter
|
|
227
|
+
* reads from that EditorView's current `state.doc` rather than re-parsing
|
|
228
|
+
* the Document-model `HeaderFooter` every layout pass — this is what
|
|
229
|
+
* actually makes the painter and the editor stay in lockstep.
|
|
230
|
+
*
|
|
231
|
+
* `headerFooterToProseDoc` is still the right entry point when there is no
|
|
232
|
+
* mounted PM for the slot (cold load, or rId not yet projected).
|
|
233
|
+
*
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
declare function convertHeaderFooterPmDocToContent(pmDoc: Node, contentWidth: number, metrics: HeaderFooterMetrics, options: ConvertHeaderFooterOptions): HeaderFooterContent | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* Drop the cached HF host + span lists. Hosts/painters call this after
|
|
239
|
+
* a repaint (or HF mode toggle) so the next caret / selection compute
|
|
240
|
+
* re-walks the DOM. Public so adapters can call it from their painter
|
|
241
|
+
* commit signal.
|
|
242
|
+
*
|
|
243
|
+
* @public
|
|
244
|
+
*/
|
|
245
|
+
declare function invalidateHfDomCache(): void;
|
|
246
|
+
/**
|
|
247
|
+
* TODO(unify-hf-editing follow-up): this function duplicates the
|
|
248
|
+
* span-walking + Range/TreeWalker logic in
|
|
249
|
+
* `packages/react/src/components/DocxEditor/internals/domSelection.ts:getCaretFromDom`
|
|
250
|
+
* (body). The body's helper is scoped to `.layout-page-content` via
|
|
251
|
+
* `findBodyPmSpans`; we walk the same shape scoped to `.layout-page-header /
|
|
252
|
+
* .layout-page-footer` here. Unification path:
|
|
253
|
+
* 1. Add `findHfPmSpans` / `findHfEmptyRuns` mirrors next to the body
|
|
254
|
+
* ones in `packages/core/src/layout-bridge/findBodyPmSpans.ts`.
|
|
255
|
+
* 2. Add `scope: 'body' | 'hf'` param to `getCaretFromDom` +
|
|
256
|
+
* `computeSelectionRectsFromDom`; switch the helper internally.
|
|
257
|
+
* 3. Move the (now scope-aware) helpers into core so React + Vue both
|
|
258
|
+
* call them.
|
|
259
|
+
* 4. Delete this function and `computeHfSelectionRectsFromView` —
|
|
260
|
+
* `DocxEditorPagedArea` calls `getCaretFromDom(scope: 'hf', ...)`.
|
|
261
|
+
* Reviewer estimate: ~30 LOC net deletion + body↔HF parity for free
|
|
262
|
+
* (lineHeight from `.layout-line` ancestor, empty-paragraph fallback
|
|
263
|
+
* via `findBodyEmptyRuns`, etc.). Deferred because it's a multi-file
|
|
264
|
+
* shape change that doesn't affect observable behavior.
|
|
265
|
+
*
|
|
266
|
+
* @public
|
|
267
|
+
*/
|
|
268
|
+
declare function computeHfCaretRectFromView(view: EditorView, doc?: globalThis.Document): {
|
|
269
|
+
top: number;
|
|
270
|
+
left: number;
|
|
271
|
+
height: number;
|
|
272
|
+
} | null;
|
|
273
|
+
/**
|
|
274
|
+
* Selection-rect set for a non-empty HF selection, projected against the
|
|
275
|
+
* painted HF spans. Mirror of `computeSelectionRectsFromDom` but scoped to
|
|
276
|
+
* `.layout-page-header` / `.layout-page-footer` instead of the body. Used
|
|
277
|
+
* so the painter draws a visible highlight when the user drag-selects
|
|
278
|
+
* inside a header/footer in edit mode.
|
|
279
|
+
*
|
|
280
|
+
* Returns viewport-relative `{top, left, width, height}` rects. Empty
|
|
281
|
+
* array when selection is collapsed or no painted spans overlap the range.
|
|
282
|
+
*
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
declare function computeHfSelectionRectsFromView(view: EditorView, doc?: globalThis.Document): Array<{
|
|
286
|
+
top: number;
|
|
287
|
+
left: number;
|
|
288
|
+
width: number;
|
|
289
|
+
height: number;
|
|
290
|
+
}>;
|
|
219
291
|
|
|
220
|
-
export { type ConvertFootnoteOptions as C, FOOTNOTE_SEPARATOR_HEIGHT as F, type HeaderFooterMetrics as H, MAX_FOOTNOTE_LAYOUT_PASSES as M, type StabilizeFootnoteLayoutArgs as S, type ConvertHeaderFooterOptions as a, type MeasureBlocksFn as b, type StabilizeFootnoteLayoutResult as c, buildFootnoteContentMap as d, buildFootnoteRenderItems as e, calculateFootnoteReservedHeights as f, collectFootnoteRefs as g, convertHeaderFooterToContent as h, footnoteReservedHeightsEqual as i, applyFootnotePresentation as j, calculateHeaderFooterVisualBounds as k,
|
|
292
|
+
export { type ConvertFootnoteOptions as C, FOOTNOTE_SEPARATOR_HEIGHT as F, type HeaderFooterMetrics as H, MAX_FOOTNOTE_LAYOUT_PASSES as M, type StabilizeFootnoteLayoutArgs as S, type ConvertHeaderFooterOptions as a, type MeasureBlocksFn as b, type StabilizeFootnoteLayoutResult as c, buildFootnoteContentMap as d, buildFootnoteRenderItems as e, calculateFootnoteReservedHeights as f, collectFootnoteRefs as g, convertHeaderFooterToContent as h, footnoteReservedHeightsEqual as i, applyFootnotePresentation as j, calculateHeaderFooterVisualBounds as k, computeHfCaretRectFromView as l, mapFootnotesToPages as m, computeHfSelectionRectsFromView as n, convertFootnoteToContent as o, convertHeaderFooterPmDocToContent as p, invalidateHfDomCache as q, normalizeHeaderFooterMeasureBlocks as r, stabilizeFootnoteLayout as s, resolveHeaderFooterVisualTop as t };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Node } from 'prosemirror-model';
|
|
2
|
+
import { EditorView } from 'prosemirror-view';
|
|
1
3
|
import { FlowBlock, Measure, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.mjs';
|
|
2
|
-
import { Footnote, HeaderFooter } from './
|
|
4
|
+
import { F as Footnote, y as HeaderFooter } from './content-CE-ZdMwG.mjs';
|
|
3
5
|
import { a as StyleDefinitions, T as Theme } from './styles-EI2lxeEN.mjs';
|
|
4
6
|
import { F as FootnoteRenderItem, H as HeaderFooterContent } from './footnotes-lCH_P3N3.mjs';
|
|
5
7
|
import { Document } from './types/document.mjs';
|
|
@@ -216,5 +218,75 @@ type ConvertHeaderFooterOptions = {
|
|
|
216
218
|
* textBox, fields) and the inline editor's content stay in lockstep.
|
|
217
219
|
*/
|
|
218
220
|
declare function convertHeaderFooterToContent(headerFooter: HeaderFooter | null | undefined, contentWidth: number, metrics: HeaderFooterMetrics, options: ConvertHeaderFooterOptions): HeaderFooterContent | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* Same pipeline as {@link convertHeaderFooterToContent}, but starts from an
|
|
223
|
+
* already-built ProseMirror document instead of `HeaderFooter.content`.
|
|
224
|
+
*
|
|
225
|
+
* The unified HF editing model (see `openspec/changes/unify-hf-editing/`)
|
|
226
|
+
* maintains one persistent hidden PM EditorView per HF `rId`. The painter
|
|
227
|
+
* reads from that EditorView's current `state.doc` rather than re-parsing
|
|
228
|
+
* the Document-model `HeaderFooter` every layout pass — this is what
|
|
229
|
+
* actually makes the painter and the editor stay in lockstep.
|
|
230
|
+
*
|
|
231
|
+
* `headerFooterToProseDoc` is still the right entry point when there is no
|
|
232
|
+
* mounted PM for the slot (cold load, or rId not yet projected).
|
|
233
|
+
*
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
declare function convertHeaderFooterPmDocToContent(pmDoc: Node, contentWidth: number, metrics: HeaderFooterMetrics, options: ConvertHeaderFooterOptions): HeaderFooterContent | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* Drop the cached HF host + span lists. Hosts/painters call this after
|
|
239
|
+
* a repaint (or HF mode toggle) so the next caret / selection compute
|
|
240
|
+
* re-walks the DOM. Public so adapters can call it from their painter
|
|
241
|
+
* commit signal.
|
|
242
|
+
*
|
|
243
|
+
* @public
|
|
244
|
+
*/
|
|
245
|
+
declare function invalidateHfDomCache(): void;
|
|
246
|
+
/**
|
|
247
|
+
* TODO(unify-hf-editing follow-up): this function duplicates the
|
|
248
|
+
* span-walking + Range/TreeWalker logic in
|
|
249
|
+
* `packages/react/src/components/DocxEditor/internals/domSelection.ts:getCaretFromDom`
|
|
250
|
+
* (body). The body's helper is scoped to `.layout-page-content` via
|
|
251
|
+
* `findBodyPmSpans`; we walk the same shape scoped to `.layout-page-header /
|
|
252
|
+
* .layout-page-footer` here. Unification path:
|
|
253
|
+
* 1. Add `findHfPmSpans` / `findHfEmptyRuns` mirrors next to the body
|
|
254
|
+
* ones in `packages/core/src/layout-bridge/findBodyPmSpans.ts`.
|
|
255
|
+
* 2. Add `scope: 'body' | 'hf'` param to `getCaretFromDom` +
|
|
256
|
+
* `computeSelectionRectsFromDom`; switch the helper internally.
|
|
257
|
+
* 3. Move the (now scope-aware) helpers into core so React + Vue both
|
|
258
|
+
* call them.
|
|
259
|
+
* 4. Delete this function and `computeHfSelectionRectsFromView` —
|
|
260
|
+
* `DocxEditorPagedArea` calls `getCaretFromDom(scope: 'hf', ...)`.
|
|
261
|
+
* Reviewer estimate: ~30 LOC net deletion + body↔HF parity for free
|
|
262
|
+
* (lineHeight from `.layout-line` ancestor, empty-paragraph fallback
|
|
263
|
+
* via `findBodyEmptyRuns`, etc.). Deferred because it's a multi-file
|
|
264
|
+
* shape change that doesn't affect observable behavior.
|
|
265
|
+
*
|
|
266
|
+
* @public
|
|
267
|
+
*/
|
|
268
|
+
declare function computeHfCaretRectFromView(view: EditorView, doc?: globalThis.Document): {
|
|
269
|
+
top: number;
|
|
270
|
+
left: number;
|
|
271
|
+
height: number;
|
|
272
|
+
} | null;
|
|
273
|
+
/**
|
|
274
|
+
* Selection-rect set for a non-empty HF selection, projected against the
|
|
275
|
+
* painted HF spans. Mirror of `computeSelectionRectsFromDom` but scoped to
|
|
276
|
+
* `.layout-page-header` / `.layout-page-footer` instead of the body. Used
|
|
277
|
+
* so the painter draws a visible highlight when the user drag-selects
|
|
278
|
+
* inside a header/footer in edit mode.
|
|
279
|
+
*
|
|
280
|
+
* Returns viewport-relative `{top, left, width, height}` rects. Empty
|
|
281
|
+
* array when selection is collapsed or no painted spans overlap the range.
|
|
282
|
+
*
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
declare function computeHfSelectionRectsFromView(view: EditorView, doc?: globalThis.Document): Array<{
|
|
286
|
+
top: number;
|
|
287
|
+
left: number;
|
|
288
|
+
width: number;
|
|
289
|
+
height: number;
|
|
290
|
+
}>;
|
|
219
291
|
|
|
220
|
-
export { type ConvertFootnoteOptions as C, FOOTNOTE_SEPARATOR_HEIGHT as F, type HeaderFooterMetrics as H, MAX_FOOTNOTE_LAYOUT_PASSES as M, type StabilizeFootnoteLayoutArgs as S, type ConvertHeaderFooterOptions as a, type MeasureBlocksFn as b, type StabilizeFootnoteLayoutResult as c, buildFootnoteContentMap as d, buildFootnoteRenderItems as e, calculateFootnoteReservedHeights as f, collectFootnoteRefs as g, convertHeaderFooterToContent as h, footnoteReservedHeightsEqual as i, applyFootnotePresentation as j, calculateHeaderFooterVisualBounds as k,
|
|
292
|
+
export { type ConvertFootnoteOptions as C, FOOTNOTE_SEPARATOR_HEIGHT as F, type HeaderFooterMetrics as H, MAX_FOOTNOTE_LAYOUT_PASSES as M, type StabilizeFootnoteLayoutArgs as S, type ConvertHeaderFooterOptions as a, type MeasureBlocksFn as b, type StabilizeFootnoteLayoutResult as c, buildFootnoteContentMap as d, buildFootnoteRenderItems as e, calculateFootnoteReservedHeights as f, collectFootnoteRefs as g, convertHeaderFooterToContent as h, footnoteReservedHeightsEqual as i, applyFootnotePresentation as j, calculateHeaderFooterVisualBounds as k, computeHfCaretRectFromView as l, mapFootnotesToPages as m, computeHfSelectionRectsFromView as n, convertFootnoteToContent as o, convertHeaderFooterPmDocToContent as p, invalidateHfDomCache as q, normalizeHeaderFooterMeasureBlocks as r, stabilizeFootnoteLayout as s, resolveHeaderFooterVisualTop as t };
|
package/dist/headless.d.mts
CHANGED
|
@@ -41,21 +41,22 @@
|
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
43
|
export { A as AgentContextOptions, S as ContextSelectionOptions, D as DocumentAgent, E as ExtendedSelectionContext, F as FormattedTextSegment, a as FormattingSummary, I as InsertHyperlinkOptions, b as InsertImageOptions, c as InsertTableOptions, d as InsertTextOptions, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, h as buildSelectionContextFromContext, i as createAgent, j as createAgentFromDocument, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary, o as getSelectionFormattingSummary } from './selectionContext-CoZat7QZ.mjs';
|
|
44
|
-
export { countCharacters, countWords, getBlockIndexForParagraph, getBodyCharacterCount, getBodyText, getBodyWordCount, getFormattingAtPosition, getHyperlinkAtPosition, getHyperlinkText, getParagraphAtIndex, getParagraphText, getParagraphs, getRunText, getTableText, getTextAfter, getTextBefore, hasHyperlinks, hasImages, hasTables, isHeadingStyle, isPositionInHyperlink, parseHeadingLevel } from './agent/index.mjs';
|
|
44
|
+
export { RepeatingSectionError, addRepeatingSectionItem, countCharacters, countWords, getBlockIndexForParagraph, getBodyCharacterCount, getBodyText, getBodyWordCount, getFormattingAtPosition, getHyperlinkAtPosition, getHyperlinkText, getParagraphAtIndex, getParagraphText, getParagraphs, getRunText, getTableText, getTextAfter, getTextBefore, hasHyperlinks, hasImages, hasTables, isHeadingStyle, isPositionInHyperlink, isRepeatingSection, isRepeatingSectionItem, parseHeadingLevel, removeRepeatingSectionItem } from './agent/index.mjs';
|
|
45
|
+
export { C as ContentControlBoundError, a as ContentControlFilter, b as ContentControlInfo, c as ContentControlLockedError, d as ContentControlNotFoundError, e as ContentControlTypeError, f as ContentControlValue, g as ContentControlValueError, h as findContentControl, i as findContentControls, j as formatSdtDate, k as getContentControlText, r as removeContentControl, s as setContentControlContent, l as setContentControlValue } from './contentControlValues-DAwTWfgR.mjs';
|
|
45
46
|
export { parseDocx } from './docx/parser.mjs';
|
|
46
|
-
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './documentSerializer-
|
|
47
|
+
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './documentSerializer-Bghq9rFI.mjs';
|
|
47
48
|
export { createDocx, default as repackDocx, updateMultipleFiles } from './docx/rezip.mjs';
|
|
48
49
|
export { a as attemptSelectiveSave } from './selectiveSave-jinP_4xa.mjs';
|
|
49
50
|
export { b as buildPatchedDocumentXml, v as validatePatchSafety } from './selectiveXmlPatch-ypkxlTD_.mjs';
|
|
50
51
|
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, T as TemplateError, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, g as createTemplateProcessor, h as createThemeColor, i as darkenColor, j as getContrastingColor, k as getMissingVariables, l as getTemplateTags, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, q as previewTemplate, r as processTemplate, s as processTemplateAdvanced, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, x as resolveShadingColor, y as validateTemplate } from './colorResolver-C6DtsoFI.mjs';
|
|
51
|
-
export { V as VariableDetectionResult, a as VariableOccurrence, d as detectVariables, b as detectVariablesDetailed, c as detectVariablesInBody, e as detectVariablesInParagraph, f as documentHasVariables, g as extractVariablesFromText, h as formatVariable, i as hasTemplateVariables, j as isValidVariableName, p as parseVariable, r as removeVariables, k as replaceVariables, s as sanitizeVariableName } from './variableDetector-
|
|
52
|
-
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.mjs';
|
|
52
|
+
export { V as VariableDetectionResult, a as VariableOccurrence, d as detectVariables, b as detectVariablesDetailed, c as detectVariablesInBody, e as detectVariablesInParagraph, f as documentHasVariables, g as extractVariablesFromText, h as formatVariable, i as hasTemplateVariables, j as isValidVariableName, p as parseVariable, r as removeVariables, k as replaceVariables, s as sanitizeVariableName } from './variableDetector-C7BLz9sJ.mjs';
|
|
53
|
+
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToHalfPoints, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.mjs';
|
|
54
|
+
export { mapHexToHighlightName } from './utils/highlightColors.mjs';
|
|
53
55
|
export { C as CommandHandler, a as CommandResult, b as CorePlugin, J as JsonSchema, L as LoadedDocument, M as McpSession, c as McpToolAnnotations, d as McpToolContent, e as McpToolContext, f as McpToolDefinition, g as McpToolHandler, h as McpToolResult, b as Plugin, P as PluginCommand, C as PluginCommandHandler, i as PluginEvent, j as PluginEventListener, k as PluginOptions, l as PluginRegistrationResult, f as ToolDefinition, g as ToolHandler, h as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-dYdjUZMo.mjs';
|
|
54
56
|
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-Cpyybgij.mjs';
|
|
55
57
|
export { Document, DocxPackage } from './types/document.mjs';
|
|
56
58
|
export { AIAction, AIActionRequest, AgentCommand, AgentContext, AgentResponse, ApplyStyleCommand, ApplyVariablesCommand, DEFAULT_AI_ACTIONS, DeleteTextCommand, FormatParagraphCommand, FormatTextCommand, InsertHyperlinkCommand, InsertImageCommand, InsertTableCommand, InsertTextCommand, ParagraphContext, ParagraphOutline, Position, Range, ReplaceTextCommand, SectionInfo, SelectionContext, SetVariableCommand, StyleInfo, SuggestedAction, comparePositions, createCollapsedRange, createCommand, createRange, getActionDescription, getActionLabel, isPositionInRange } from './types/agentApi.mjs';
|
|
57
|
-
export { BlockContent, Comment, CommentRangeEnd, CommentRangeStart, Deletion, DocumentBody, Endnote, Footnote, Hyperlink, Image, Insertion, MoveFrom, MoveTo, Paragraph, ParagraphContent, Run, RunContent, SectionProperties, Table, TableCell, TableRow, TextContent, TrackedChangeInfo, TrackedRunChange } from './
|
|
58
|
-
export { L as ListLevel, N as NumberingDefinitions } from './lists-CvG_iVK3.mjs';
|
|
59
|
+
export { B as BlockContent, C as Comment, a as CommentRangeEnd, b as CommentRangeStart, D as Deletion, c as DocumentBody, E as Endnote, F as Footnote, H as Hyperlink, I as Image, d as Insertion, L as ListLevel, M as MoveFrom, e as MoveTo, N as NumberingDefinitions, P as Paragraph, f as ParagraphContent, R as Run, g as RunContent, S as SectionProperties, T as Table, h as TableCell, i as TableRow, j as TextContent, k as TrackedChangeInfo, l as TrackedRunChange } from './content-CE-ZdMwG.mjs';
|
|
59
60
|
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-BH4hcZiq.mjs';
|
|
60
61
|
export { R as Relationship, S as Style, a as StyleDefinitions, T as Theme } from './styles-EI2lxeEN.mjs';
|
|
61
62
|
import './docxInput-DTbCa48g.mjs';
|
package/dist/headless.d.ts
CHANGED
|
@@ -41,21 +41,22 @@
|
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
43
|
export { A as AgentContextOptions, S as ContextSelectionOptions, D as DocumentAgent, E as ExtendedSelectionContext, F as FormattedTextSegment, a as FormattingSummary, I as InsertHyperlinkOptions, b as InsertImageOptions, c as InsertTableOptions, d as InsertTextOptions, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, h as buildSelectionContextFromContext, i as createAgent, j as createAgentFromDocument, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary, o as getSelectionFormattingSummary } from './selectionContext-BPAqgNgk.js';
|
|
44
|
-
export { countCharacters, countWords, getBlockIndexForParagraph, getBodyCharacterCount, getBodyText, getBodyWordCount, getFormattingAtPosition, getHyperlinkAtPosition, getHyperlinkText, getParagraphAtIndex, getParagraphText, getParagraphs, getRunText, getTableText, getTextAfter, getTextBefore, hasHyperlinks, hasImages, hasTables, isHeadingStyle, isPositionInHyperlink, parseHeadingLevel } from './agent/index.js';
|
|
44
|
+
export { RepeatingSectionError, addRepeatingSectionItem, countCharacters, countWords, getBlockIndexForParagraph, getBodyCharacterCount, getBodyText, getBodyWordCount, getFormattingAtPosition, getHyperlinkAtPosition, getHyperlinkText, getParagraphAtIndex, getParagraphText, getParagraphs, getRunText, getTableText, getTextAfter, getTextBefore, hasHyperlinks, hasImages, hasTables, isHeadingStyle, isPositionInHyperlink, isRepeatingSection, isRepeatingSectionItem, parseHeadingLevel, removeRepeatingSectionItem } from './agent/index.js';
|
|
45
|
+
export { C as ContentControlBoundError, a as ContentControlFilter, b as ContentControlInfo, c as ContentControlLockedError, d as ContentControlNotFoundError, e as ContentControlTypeError, f as ContentControlValue, g as ContentControlValueError, h as findContentControl, i as findContentControls, j as formatSdtDate, k as getContentControlText, r as removeContentControl, s as setContentControlContent, l as setContentControlValue } from './contentControlValues-gyVPsi6m.js';
|
|
45
46
|
export { parseDocx } from './docx/parser.js';
|
|
46
|
-
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './documentSerializer-
|
|
47
|
+
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './documentSerializer-C4lFC60P.js';
|
|
47
48
|
export { createDocx, default as repackDocx, updateMultipleFiles } from './docx/rezip.js';
|
|
48
49
|
export { a as attemptSelectiveSave } from './selectiveSave-CWaPEv0B.js';
|
|
49
50
|
export { b as buildPatchedDocumentXml, v as validatePatchSafety } from './selectiveXmlPatch-ypkxlTD_.js';
|
|
50
51
|
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, T as TemplateError, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, g as createTemplateProcessor, h as createThemeColor, i as darkenColor, j as getContrastingColor, k as getMissingVariables, l as getTemplateTags, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, q as previewTemplate, r as processTemplate, s as processTemplateAdvanced, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, x as resolveShadingColor, y as validateTemplate } from './colorResolver-BZ_yScf4.js';
|
|
51
|
-
export { V as VariableDetectionResult, a as VariableOccurrence, d as detectVariables, b as detectVariablesDetailed, c as detectVariablesInBody, e as detectVariablesInParagraph, f as documentHasVariables, g as extractVariablesFromText, h as formatVariable, i as hasTemplateVariables, j as isValidVariableName, p as parseVariable, r as removeVariables, k as replaceVariables, s as sanitizeVariableName } from './variableDetector-
|
|
52
|
-
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.js';
|
|
52
|
+
export { V as VariableDetectionResult, a as VariableOccurrence, d as detectVariables, b as detectVariablesDetailed, c as detectVariablesInBody, e as detectVariablesInParagraph, f as documentHasVariables, g as extractVariablesFromText, h as formatVariable, i as hasTemplateVariables, j as isValidVariableName, p as parseVariable, r as removeVariables, k as replaceVariables, s as sanitizeVariableName } from './variableDetector-HPZbJ_gw.js';
|
|
53
|
+
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToHalfPoints, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.js';
|
|
54
|
+
export { mapHexToHighlightName } from './utils/highlightColors.js';
|
|
53
55
|
export { C as CommandHandler, a as CommandResult, b as CorePlugin, J as JsonSchema, L as LoadedDocument, M as McpSession, c as McpToolAnnotations, d as McpToolContent, e as McpToolContext, f as McpToolDefinition, g as McpToolHandler, h as McpToolResult, b as Plugin, P as PluginCommand, C as PluginCommandHandler, i as PluginEvent, j as PluginEventListener, k as PluginOptions, l as PluginRegistrationResult, f as ToolDefinition, g as ToolHandler, h as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-DXG7vqe9.js';
|
|
54
56
|
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-E5pahPKL.js';
|
|
55
57
|
export { Document, DocxPackage } from './types/document.js';
|
|
56
58
|
export { AIAction, AIActionRequest, AgentCommand, AgentContext, AgentResponse, ApplyStyleCommand, ApplyVariablesCommand, DEFAULT_AI_ACTIONS, DeleteTextCommand, FormatParagraphCommand, FormatTextCommand, InsertHyperlinkCommand, InsertImageCommand, InsertTableCommand, InsertTextCommand, ParagraphContext, ParagraphOutline, Position, Range, ReplaceTextCommand, SectionInfo, SelectionContext, SetVariableCommand, StyleInfo, SuggestedAction, comparePositions, createCollapsedRange, createCommand, createRange, getActionDescription, getActionLabel, isPositionInRange } from './types/agentApi.js';
|
|
57
|
-
export { BlockContent, Comment, CommentRangeEnd, CommentRangeStart, Deletion, DocumentBody, Endnote, Footnote, Hyperlink, Image, Insertion, MoveFrom, MoveTo, Paragraph, ParagraphContent, Run, RunContent, SectionProperties, Table, TableCell, TableRow, TextContent, TrackedChangeInfo, TrackedRunChange } from './
|
|
58
|
-
export { L as ListLevel, N as NumberingDefinitions } from './lists-UTp_tk7B.js';
|
|
59
|
+
export { B as BlockContent, C as Comment, a as CommentRangeEnd, b as CommentRangeStart, D as Deletion, c as DocumentBody, E as Endnote, F as Footnote, H as Hyperlink, I as Image, d as Insertion, L as ListLevel, M as MoveFrom, e as MoveTo, N as NumberingDefinitions, P as Paragraph, f as ParagraphContent, R as Run, g as RunContent, S as SectionProperties, T as Table, h as TableCell, i as TableRow, j as TextContent, k as TrackedChangeInfo, l as TrackedRunChange } from './content-CYXJ2tfQ.js';
|
|
59
60
|
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-_OXU8gLB.js';
|
|
60
61
|
export { R as Relationship, S as Style, a as StyleDefinitions, T as Theme } from './styles-BBv7doYK.js';
|
|
61
62
|
import './docxInput-DTbCa48g.js';
|
package/dist/headless.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkOCAX2KJQ_js=require('./chunk-OCAX2KJQ.js'),chunkXXU7YQVV_js=require('./chunk-XXU7YQVV.js'),chunkZ4SJCSTS_js=require('./chunk-Z4SJCSTS.js'),chunkN3EIZN65_js=require('./chunk-N3EIZN65.js'),chunkNXLJVVVE_js=require('./chunk-NXLJVVVE.js'),chunkABBG4WD2_js=require('./chunk-ABBG4WD2.js'),chunkU4UCHBZ7_js=require('./chunk-U4UCHBZ7.js'),chunkESI4BSBF_js=require('./chunk-ESI4BSBF.js'),chunkTE2AF7FM_js=require('./chunk-TE2AF7FM.js'),chunk3NLVHZMT_js=require('./chunk-3NLVHZMT.js'),chunkV435QKZB_js=require('./chunk-V435QKZB.js'),chunk4BFNWPKW_js=require('./chunk-4BFNWPKW.js'),chunkV6SWUCTS_js=require('./chunk-V6SWUCTS.js');require('./chunk-YCDB5TA6.js'),require('./chunk-IN6IYQ2X.js'),require('./chunk-KBU6QQFU.js'),require('./chunk-MZOVDLYL.js'),require('./chunk-EPX7BBJD.js'),require('./chunk-D536HC5M.js'),require('./chunk-TMISJEGL.js');var chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js');require('./chunk-C2BAPYGJ.js'),require('./chunk-Q4CKLXWA.js');var chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');require('./chunk-DC7S76ZX.js');var je="0.0.2";Object.defineProperty(exports,"countCharacters",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.g}});Object.defineProperty(exports,"countWords",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.f}});Object.defineProperty(exports,"getBlockIndexForParagraph",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.v}});Object.defineProperty(exports,"getBodyCharacterCount",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.i}});Object.defineProperty(exports,"getBodyText",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.e}});Object.defineProperty(exports,"getBodyWordCount",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.h}});Object.defineProperty(exports,"getFormattingAtPosition",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.l}});Object.defineProperty(exports,"getHyperlinkAtPosition",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.n}});Object.defineProperty(exports,"getHyperlinkText",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.c}});Object.defineProperty(exports,"getParagraphAtIndex",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.u}});Object.defineProperty(exports,"getParagraphText",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.a}});Object.defineProperty(exports,"getParagraphs",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.t}});Object.defineProperty(exports,"getRunText",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.b}});Object.defineProperty(exports,"getTableText",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.d}});Object.defineProperty(exports,"getTextAfter",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.k}});Object.defineProperty(exports,"getTextBefore",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.j}});Object.defineProperty(exports,"hasHyperlinks",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.r}});Object.defineProperty(exports,"hasImages",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.q}});Object.defineProperty(exports,"hasTables",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.s}});Object.defineProperty(exports,"isHeadingStyle",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.o}});Object.defineProperty(exports,"isPositionInHyperlink",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.m}});Object.defineProperty(exports,"parseHeadingLevel",{enumerable:true,get:function(){return chunkOCAX2KJQ_js.p}});Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkXXU7YQVV_js.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkXXU7YQVV_js.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkXXU7YQVV_js.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkXXU7YQVV_js.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkXXU7YQVV_js.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkZ4SJCSTS_js.a}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkZ4SJCSTS_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkZ4SJCSTS_js.g}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkZ4SJCSTS_js.e}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkZ4SJCSTS_js.b}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkZ4SJCSTS_js.c}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkZ4SJCSTS_js.d}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkZ4SJCSTS_js.f}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkZ4SJCSTS_js.i}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkN3EIZN65_js.c}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkN3EIZN65_js.b}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkN3EIZN65_js.a}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkNXLJVVVE_js.b}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkNXLJVVVE_js.a}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkABBG4WD2_js.a}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.m}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.g}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.h}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunkESI4BSBF_js.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunkESI4BSBF_js.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkESI4BSBF_js.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunkESI4BSBF_js.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkESI4BSBF_js.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunkESI4BSBF_js.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkESI4BSBF_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkESI4BSBF_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkESI4BSBF_js.f}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkTE2AF7FM_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkTE2AF7FM_js.b}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunk3NLVHZMT_js.s}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunk3NLVHZMT_js.h}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunk3NLVHZMT_js.l}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkV435QKZB_js.f}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkV435QKZB_js.g}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkV435QKZB_js.e}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunk4BFNWPKW_js.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunk4BFNWPKW_js.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunk4BFNWPKW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunk4BFNWPKW_js.c}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkV6SWUCTS_js.f}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.m}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.r}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.j}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.i}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.k}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.g}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.e}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.f}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.l}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.h}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.c}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.d}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.e}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.g}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.p}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.j}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.f}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.d}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.i}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.h}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.c}});exports.VERSION=je;
|
|
1
|
+
'use strict';var chunkQEACB5VG_js=require('./chunk-QEACB5VG.js'),chunkXXU7YQVV_js=require('./chunk-XXU7YQVV.js'),chunkU4WUDHDK_js=require('./chunk-U4WUDHDK.js'),chunk5M7TI6TV_js=require('./chunk-5M7TI6TV.js'),chunkNXLJVVVE_js=require('./chunk-NXLJVVVE.js'),chunk4QEETB7U_js=require('./chunk-4QEETB7U.js'),chunkU4UCHBZ7_js=require('./chunk-U4UCHBZ7.js'),chunkESI4BSBF_js=require('./chunk-ESI4BSBF.js'),chunkTE2AF7FM_js=require('./chunk-TE2AF7FM.js'),chunkSZIOF5SG_js=require('./chunk-SZIOF5SG.js'),chunkL72YAV5N_js=require('./chunk-L72YAV5N.js'),chunk4BFNWPKW_js=require('./chunk-4BFNWPKW.js'),chunkQYF7BRG3_js=require('./chunk-QYF7BRG3.js');require('./chunk-ROG4MNOR.js'),require('./chunk-44FHVKSI.js'),require('./chunk-MNOHUTKE.js');var chunkFO6IX2DB_js=require('./chunk-FO6IX2DB.js');require('./chunk-E4JMCA5X.js'),require('./chunk-HQPWFUP5.js'),require('./chunk-DV6GWBUJ.js');var chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js');require('./chunk-C2BAPYGJ.js');var chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');require('./chunk-GSKMHXHG.js'),require('./chunk-DC7S76ZX.js');var Ct="0.0.2";Object.defineProperty(exports,"mapHexToHighlightName",{enumerable:true,get:function(){return chunkQEACB5VG_js.b}});Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkXXU7YQVV_js.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkXXU7YQVV_js.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkXXU7YQVV_js.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkXXU7YQVV_js.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkXXU7YQVV_js.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkXXU7YQVV_js.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkU4WUDHDK_js.a}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkU4WUDHDK_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkU4WUDHDK_js.g}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkU4WUDHDK_js.e}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkU4WUDHDK_js.b}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkU4WUDHDK_js.c}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkU4WUDHDK_js.d}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkU4WUDHDK_js.f}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkU4WUDHDK_js.i}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunk5M7TI6TV_js.c}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunk5M7TI6TV_js.b}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunk5M7TI6TV_js.a}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkNXLJVVVE_js.b}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkNXLJVVVE_js.a}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunk4QEETB7U_js.a}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.m}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.g}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkU4UCHBZ7_js.h}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunkESI4BSBF_js.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunkESI4BSBF_js.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkESI4BSBF_js.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunkESI4BSBF_js.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkESI4BSBF_js.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunkESI4BSBF_js.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkESI4BSBF_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkESI4BSBF_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkESI4BSBF_js.f}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkTE2AF7FM_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkTE2AF7FM_js.b}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkSZIOF5SG_js.s}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkSZIOF5SG_js.h}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkSZIOF5SG_js.l}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkL72YAV5N_js.f}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkL72YAV5N_js.g}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkL72YAV5N_js.e}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunk4BFNWPKW_js.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunk4BFNWPKW_js.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunk4BFNWPKW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunk4BFNWPKW_js.c}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkQYF7BRG3_js.f}});Object.defineProperty(exports,"ContentControlBoundError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.C}});Object.defineProperty(exports,"ContentControlLockedError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.A}});Object.defineProperty(exports,"ContentControlNotFoundError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.z}});Object.defineProperty(exports,"ContentControlTypeError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.B}});Object.defineProperty(exports,"ContentControlValueError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.K}});Object.defineProperty(exports,"RepeatingSectionError",{enumerable:true,get:function(){return chunkFO6IX2DB_js.R}});Object.defineProperty(exports,"addRepeatingSectionItem",{enumerable:true,get:function(){return chunkFO6IX2DB_js.T}});Object.defineProperty(exports,"countCharacters",{enumerable:true,get:function(){return chunkFO6IX2DB_js.g}});Object.defineProperty(exports,"countWords",{enumerable:true,get:function(){return chunkFO6IX2DB_js.f}});Object.defineProperty(exports,"findContentControl",{enumerable:true,get:function(){return chunkFO6IX2DB_js.y}});Object.defineProperty(exports,"findContentControls",{enumerable:true,get:function(){return chunkFO6IX2DB_js.x}});Object.defineProperty(exports,"formatSdtDate",{enumerable:true,get:function(){return chunkFO6IX2DB_js.L}});Object.defineProperty(exports,"getBlockIndexForParagraph",{enumerable:true,get:function(){return chunkFO6IX2DB_js.v}});Object.defineProperty(exports,"getBodyCharacterCount",{enumerable:true,get:function(){return chunkFO6IX2DB_js.i}});Object.defineProperty(exports,"getBodyText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.e}});Object.defineProperty(exports,"getBodyWordCount",{enumerable:true,get:function(){return chunkFO6IX2DB_js.h}});Object.defineProperty(exports,"getContentControlText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.w}});Object.defineProperty(exports,"getFormattingAtPosition",{enumerable:true,get:function(){return chunkFO6IX2DB_js.l}});Object.defineProperty(exports,"getHyperlinkAtPosition",{enumerable:true,get:function(){return chunkFO6IX2DB_js.n}});Object.defineProperty(exports,"getHyperlinkText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.c}});Object.defineProperty(exports,"getParagraphAtIndex",{enumerable:true,get:function(){return chunkFO6IX2DB_js.u}});Object.defineProperty(exports,"getParagraphText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.a}});Object.defineProperty(exports,"getParagraphs",{enumerable:true,get:function(){return chunkFO6IX2DB_js.t}});Object.defineProperty(exports,"getRunText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.b}});Object.defineProperty(exports,"getTableText",{enumerable:true,get:function(){return chunkFO6IX2DB_js.d}});Object.defineProperty(exports,"getTextAfter",{enumerable:true,get:function(){return chunkFO6IX2DB_js.k}});Object.defineProperty(exports,"getTextBefore",{enumerable:true,get:function(){return chunkFO6IX2DB_js.j}});Object.defineProperty(exports,"hasHyperlinks",{enumerable:true,get:function(){return chunkFO6IX2DB_js.r}});Object.defineProperty(exports,"hasImages",{enumerable:true,get:function(){return chunkFO6IX2DB_js.q}});Object.defineProperty(exports,"hasTables",{enumerable:true,get:function(){return chunkFO6IX2DB_js.s}});Object.defineProperty(exports,"isHeadingStyle",{enumerable:true,get:function(){return chunkFO6IX2DB_js.o}});Object.defineProperty(exports,"isPositionInHyperlink",{enumerable:true,get:function(){return chunkFO6IX2DB_js.m}});Object.defineProperty(exports,"isRepeatingSection",{enumerable:true,get:function(){return chunkFO6IX2DB_js.P}});Object.defineProperty(exports,"isRepeatingSectionItem",{enumerable:true,get:function(){return chunkFO6IX2DB_js.Q}});Object.defineProperty(exports,"parseHeadingLevel",{enumerable:true,get:function(){return chunkFO6IX2DB_js.p}});Object.defineProperty(exports,"removeContentControl",{enumerable:true,get:function(){return chunkFO6IX2DB_js.J}});Object.defineProperty(exports,"removeRepeatingSectionItem",{enumerable:true,get:function(){return chunkFO6IX2DB_js.U}});Object.defineProperty(exports,"setContentControlContent",{enumerable:true,get:function(){return chunkFO6IX2DB_js.I}});Object.defineProperty(exports,"setContentControlValue",{enumerable:true,get:function(){return chunkFO6IX2DB_js.N}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.m}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.r}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.j}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.i}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.k}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.g}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.e}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.f}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.l}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.h}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.c}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkMJ5FQX7Q_js.d}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.e}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.g}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.p}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.j}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.f}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.d}});Object.defineProperty(exports,"pointsToHalfPoints",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.l}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.i}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.h}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunk4Q2IP5FW_js.c}});exports.VERSION=Ct;
|
package/dist/headless.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{b as mapHexToHighlightName}from'./chunk-XPV6VILW.mjs';export{g as DEFAULT_AI_ACTIONS,d as comparePositions,a as createCollapsedRange,h as createCommand,b as createRange,f as getActionDescription,e as getActionLabel,c as isPositionInRange}from'./chunk-MVZOTKNL.mjs';export{a as DocumentAgent,h as buildExtendedSelectionContext,g as buildSelectionContext,e as buildSelectionContextFromContext,b as createAgent,c as createAgentFromDocument,d as getAgentContext,f as getDocumentSummary,i as getSelectionFormattingSummary}from'./chunk-QKLY4F2J.mjs';export{c as attemptSelectiveSave,b as buildPatchedDocumentXml,a as validatePatchSafety}from'./chunk-KRN6YSR2.mjs';export{b as createDocumentWithText,a as createEmptyDocument}from'./chunk-CKKO4JWE.mjs';export{a as isZodSchema}from'./chunk-7BVHKWEW.mjs';export{a as detectVariables,b as detectVariablesDetailed,c as detectVariablesInBody,d as detectVariablesInParagraph,m as documentHasVariables,e as extractVariablesFromText,i as formatVariable,f as hasTemplateVariables,g as isValidVariableName,j as parseVariable,l as removeVariables,k as replaceVariables,h as sanitizeVariableName}from'./chunk-ARHPXIBJ.mjs';export{j as createTemplateProcessor,g as getMissingVariables,e as getTemplateTags,h as previewTemplate,a as processTemplate,i as processTemplateAdvanced,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-CGJ6S3AH.mjs';export{a as executeCommand,b as executeCommands}from'./chunk-CUY2THAO.mjs';export{s as createDocx,h as repackDocx,l as updateMultipleFiles}from'./chunk-MERJFGEP.mjs';export{f as serializeDocumentBody,g as serializeDocx,e as serializeSectionProperties}from'./chunk-WLDI6N3B.mjs';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-3NRMSZX2.mjs';export{f as parseDocx}from'./chunk-44JKHPGF.mjs';import'./chunk-7ZN4WI5N.mjs';import'./chunk-BOOHU5EW.mjs';import'./chunk-7LRR7RKE.mjs';export{C as ContentControlBoundError,A as ContentControlLockedError,z as ContentControlNotFoundError,B as ContentControlTypeError,K as ContentControlValueError,R as RepeatingSectionError,T as addRepeatingSectionItem,g as countCharacters,f as countWords,y as findContentControl,x as findContentControls,L as formatSdtDate,v as getBlockIndexForParagraph,i as getBodyCharacterCount,e as getBodyText,h as getBodyWordCount,w as getContentControlText,l as getFormattingAtPosition,n as getHyperlinkAtPosition,c as getHyperlinkText,u as getParagraphAtIndex,a as getParagraphText,t as getParagraphs,b as getRunText,d as getTableText,k as getTextAfter,j as getTextBefore,r as hasHyperlinks,q as hasImages,s as hasTables,o as isHeadingStyle,m as isPositionInHyperlink,P as isRepeatingSection,Q as isRepeatingSectionItem,p as parseHeadingLevel,J as removeContentControl,U as removeRepeatingSectionItem,I as setContentControlContent,N as setContentControlValue}from'./chunk-KOEWROYV.mjs';import'./chunk-6ZXL3EIP.mjs';import'./chunk-OEXVWIHW.mjs';import'./chunk-WLHNIXWC.mjs';export{m as blendColors,r as colorsEqual,j as createRgbColor,i as createThemeColor,k as darkenColor,g as getContrastingColor,e as isBlack,f as isWhite,l as lightenColor,h as parseColorString,a as resolveColor,c as resolveHighlightColor,d as resolveShadingColor}from'./chunk-67LVRQIR.mjs';import'./chunk-LE67NTCN.mjs';export{e as emuToPixels,g as emuToTwips,p as formatPx,j as halfPointsToPixels,f as pixelsToEmu,d as pixelsToTwips,l as pointsToHalfPoints,i as pointsToPixels,h as twipsToEmu,c as twipsToPixels}from'./chunk-VW22RZ6C.mjs';import'./chunk-DI6CRWSW.mjs';import'./chunk-QYUPLKLP.mjs';var Ct="0.0.2";export{Ct as VERSION};
|