@eigenpal/docx-editor-core 1.5.0 → 1.6.1
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/agent/index.d.mts +4 -4
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-3HLRRK6N.mjs +2 -0
- package/dist/{chunk-COV4LHQ7.js → chunk-4272FQ2E.js} +1 -1
- package/dist/chunk-47SKD7QB.mjs +4 -0
- package/dist/chunk-4DCTKHS5.js +1 -0
- package/dist/{chunk-3SJQRYO7.js → chunk-4HNEXEGS.js} +1 -1
- package/dist/chunk-4U2S3WV2.js +1 -0
- package/dist/{chunk-3HENAL6V.mjs → chunk-5EP47PMQ.mjs} +1 -1
- package/dist/{chunk-T4O4PFJD.mjs → chunk-6ENZQGYR.mjs} +1 -1
- package/dist/chunk-7EU6E64E.mjs +1 -0
- package/dist/chunk-A7C3DGQA.mjs +1 -0
- package/dist/chunk-B6FA4MJ5.mjs +1 -0
- package/dist/chunk-BJSG6TEG.js +1 -0
- package/dist/chunk-BMP2OSXE.js +1 -0
- package/dist/{chunk-NPFFCPZ6.js → chunk-DEQFU56O.js} +1 -1
- package/dist/chunk-DFDL337G.js +4 -0
- package/dist/chunk-DKUHG27E.js +1 -0
- package/dist/{chunk-WWVIVYX6.mjs → chunk-DU5TWD2W.mjs} +1 -1
- package/dist/chunk-DUVSDFRG.js +2 -0
- package/dist/{chunk-TV6JLFY5.js → chunk-DUXHJ6QP.js} +1 -1
- package/dist/{chunk-TE2AF7FM.js → chunk-FETIBXTH.js} +1 -1
- package/dist/chunk-GLPOVLZD.mjs +1 -0
- package/dist/{chunk-M7KTKPGO.mjs → chunk-HEJJXAXN.mjs} +1 -1
- package/dist/chunk-HQ76VZAN.mjs +1 -0
- package/dist/{chunk-WYFK4QOF.mjs → chunk-ICNIAAH7.mjs} +1 -1
- package/dist/{chunk-5WINQXA3.js → chunk-ILPNMG7Q.js} +1 -1
- package/dist/{chunk-TDYWEVAE.js → chunk-K7NSOCSY.js} +1 -1
- package/dist/{chunk-6KM4VW4L.js → chunk-KEDY4GFG.js} +3 -3
- package/dist/chunk-KNY7SXPJ.mjs +1 -0
- package/dist/{chunk-SKBHY5MK.mjs → chunk-KPWWI5UW.mjs} +1 -1
- package/dist/chunk-LVUL7O27.js +1 -0
- package/dist/{chunk-O2643IUW.js → chunk-LW5OFHSW.js} +2 -2
- package/dist/chunk-MWOHCSZE.js +1 -0
- package/dist/chunk-NKIDBERV.js +1 -0
- package/dist/chunk-NN2EJIO7.mjs +1 -0
- package/dist/{chunk-QUM4DFRE.mjs → chunk-O4RCQNUW.mjs} +1 -1
- package/dist/chunk-O5L4BZCZ.mjs +1 -0
- package/dist/chunk-OSTMAXZZ.mjs +1 -0
- package/dist/{chunk-PYDX4MOT.mjs → chunk-OWGY46IW.mjs} +1 -1
- package/dist/chunk-PGWY6UFK.js +1 -0
- package/dist/chunk-PJEB3ZWG.mjs +3 -0
- package/dist/{chunk-GB7RICH6.js → chunk-PM4KDJJ2.js} +1 -1
- package/dist/chunk-Q2VALXEU.js +3 -0
- package/dist/chunk-QCPISGPW.mjs +1 -0
- package/dist/{chunk-CBKJOPOW.mjs → chunk-QRBFMR7Z.mjs} +1 -1
- package/dist/chunk-RRJKF2XI.mjs +1 -0
- package/dist/chunk-SHZOAUHB.mjs +1 -0
- package/dist/chunk-TT3ILFZC.js +1 -0
- package/dist/chunk-TXAB4I4M.mjs +2 -0
- package/dist/chunk-UC7JW66O.mjs +1 -0
- package/dist/chunk-VMBCUUZM.mjs +1 -0
- package/dist/chunk-WTIN6QHX.js +1 -0
- package/dist/{chunk-P7HWOJC5.js → chunk-WVY2UXAK.js} +1 -1
- package/dist/chunk-XCTYXYEU.js +1 -0
- package/dist/{chunk-WXSGCEBZ.js → chunk-XCXQWCV2.js} +1 -1
- package/dist/{chunk-M3UL6EUU.mjs → chunk-YSBX4LFA.mjs} +2 -2
- package/dist/chunk-YUHOVME2.js +1 -0
- package/dist/{content-BlWiORm-.d.mts → content-BEFz1zcs.d.mts} +2 -2
- package/dist/{content-eG_Rtl0l.d.ts → content-DNcMlHU0.d.ts} +2 -2
- package/dist/{contentControlValues-CO7pUqOf.d.ts → contentControlValues-2pV4M4kG.d.ts} +1 -1
- package/dist/{contentControlValues-DfYN9BZ8.d.mts → contentControlValues-CKWIIkkr.d.mts} +1 -1
- package/dist/core-plugins.d.mts +2 -2
- package/dist/core-plugins.d.ts +2 -2
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +7 -7
- package/dist/core.d.ts +7 -7
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/docx/index.d.mts +2 -2
- package/dist/docx/index.d.ts +2 -2
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +2 -2
- package/dist/docx/parser.d.ts +2 -2
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +2 -2
- package/dist/docx/rezip.d.ts +2 -2
- package/dist/docx/serializer/index.d.mts +3 -3
- package/dist/docx/serializer/index.d.ts +3 -3
- package/dist/editor/index.d.mts +2 -2
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/index.js +1 -1
- package/dist/editor/index.mjs +1 -1
- package/dist/executor-FHL5D4CB.js +1 -0
- package/dist/executor-FL6XGVP3.mjs +1 -0
- package/dist/{fontLoader-C6VvBUVB.d.ts → fontLoader-CH12AtFF.d.ts} +1 -1
- package/dist/{fontLoader-3MFD_Hj2.d.mts → fontLoader-D3X2Qgb_.d.mts} +1 -1
- package/dist/{headerFooterLayout-bdHWlU6g.d.ts → headerFooterLayout-BdGTU0IA.d.ts} +31 -16
- package/dist/{headerFooterLayout-DJb-dV7X.d.mts → headerFooterLayout-D5-u-IsD.d.mts} +31 -16
- package/dist/headless.d.mts +5 -5
- package/dist/headless.d.ts +5 -5
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/clickToPositionDom.js +1 -1
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +67 -5
- package/dist/layout-bridge/index.d.ts +67 -5
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +2 -2
- package/dist/layout-bridge/measuring/index.d.ts +2 -2
- 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 -2
- package/dist/layout-bridge/toFlowBlocks.d.ts +2 -2
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +2 -2
- package/dist/layout-engine/index.d.ts +2 -2
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +2 -2
- package/dist/layout-engine/types.d.ts +2 -2
- package/dist/layout-painter/index.d.mts +3 -3
- package/dist/layout-painter/index.d.ts +3 -3
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +3 -3
- package/dist/layout-painter/renderPage.d.ts +3 -3
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/managers/AutoSaveManager.d.mts +2 -2
- package/dist/managers/AutoSaveManager.d.ts +2 -2
- package/dist/managers/TableSelectionManager.d.mts +2 -2
- package/dist/managers/TableSelectionManager.d.ts +2 -2
- package/dist/managers/types.d.mts +2 -2
- package/dist/managers/types.d.ts +2 -2
- package/dist/mcp-cli.mjs +22 -22
- package/dist/mcp.d.mts +2 -2
- package/dist/mcp.d.ts +2 -2
- package/dist/mcp.js +7 -7
- package/dist/mcp.mjs +1 -1
- package/dist/{nodes-RfTS-NSv.d.mts → nodes-5w_QaI3g.d.mts} +13 -1
- package/dist/{nodes-BJef4KFW.d.ts → nodes-qQdZtu3Z.d.ts} +13 -1
- package/dist/prosemirror/applyFormatting.d.mts +34 -4
- package/dist/prosemirror/applyFormatting.d.ts +34 -4
- package/dist/prosemirror/applyFormatting.js +1 -1
- package/dist/prosemirror/applyFormatting.mjs +1 -1
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +2 -1
- package/dist/prosemirror/commands/index.d.ts +2 -1
- 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/commands/sectionBreak.d.mts +25 -0
- package/dist/prosemirror/commands/sectionBreak.d.ts +25 -0
- package/dist/prosemirror/commands/sectionBreak.js +1 -0
- package/dist/prosemirror/commands/sectionBreak.mjs +1 -0
- package/dist/prosemirror/commentIdAllocator.d.mts +2 -2
- package/dist/prosemirror/commentIdAllocator.d.ts +2 -2
- package/dist/prosemirror/commentOps.d.mts +2 -2
- package/dist/prosemirror/commentOps.d.ts +2 -2
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +2 -2
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +2 -2
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +2 -2
- package/dist/prosemirror/conversion/index.d.ts +2 -2
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/index.d.mts +4 -4
- package/dist/prosemirror/index.d.ts +4 -4
- package/dist/prosemirror/index.js +2 -2
- package/dist/prosemirror/index.mjs +2 -2
- package/dist/prosemirror/plugins/index.d.mts +2 -2
- package/dist/prosemirror/plugins/index.d.ts +2 -2
- package/dist/prosemirror/plugins/index.js +1 -1
- package/dist/prosemirror/plugins/index.mjs +1 -1
- package/dist/prosemirror/queries.d.mts +2 -2
- package/dist/prosemirror/queries.d.ts +2 -2
- package/dist/prosemirror/schema/index.d.mts +3 -3
- package/dist/prosemirror/schema/index.d.ts +3 -3
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -2
- package/dist/{sectionPropertiesSerializer-S8J1V9mb.d.ts → sectionPropertiesSerializer-BJSNK-Wl.d.ts} +1 -1
- package/dist/{sectionPropertiesSerializer-C8XCmzE4.d.mts → sectionPropertiesSerializer-DI3OIQ1j.d.mts} +1 -1
- package/dist/types/content.d.mts +2 -2
- package/dist/types/content.d.ts +2 -2
- package/dist/types/content.js +1 -1
- package/dist/types/content.mjs +1 -1
- package/dist/types/document.d.mts +3 -3
- package/dist/types/document.d.ts +3 -3
- package/dist/types/document.js +1 -1
- package/dist/types/document.mjs +1 -1
- package/dist/utils/cardStyles.js +1 -1
- package/dist/utils/cardStyles.mjs +1 -1
- package/dist/utils/comments.d.mts +2 -2
- package/dist/utils/comments.d.ts +2 -2
- package/dist/utils/index.d.mts +37 -4
- package/dist/utils/index.d.ts +37 -4
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.mjs +3 -3
- package/dist/utils/stylePreview.d.mts +83 -0
- package/dist/utils/stylePreview.d.ts +83 -0
- package/dist/utils/stylePreview.js +1 -0
- package/dist/utils/stylePreview.mjs +1 -0
- package/dist/utils/units.d.mts +7 -1
- package/dist/utils/units.d.ts +7 -1
- package/dist/utils/units.js +1 -1
- package/dist/utils/units.mjs +1 -1
- package/dist/{variableDetector-CN9_pUR_.d.mts → variableDetector-7xBsshP0.d.mts} +1 -1
- package/dist/{variableDetector-o4Rb2Csy.d.ts → variableDetector-Bv5Tm0D-.d.ts} +1 -1
- package/dist/{watermark-DAcnAs_J.d.mts → watermark-D90356ZM.d.mts} +7 -1
- package/dist/{watermark-DAcnAs_J.d.ts → watermark-D90356ZM.d.ts} +7 -1
- package/package.json +17 -1
- package/dist/chunk-4Q2IP5FW.js +0 -1
- package/dist/chunk-4RQAAKQI.mjs +0 -1
- package/dist/chunk-5HA66FH4.mjs +0 -1
- package/dist/chunk-7OW3VCZE.mjs +0 -1
- package/dist/chunk-AA6D2C6R.js +0 -4
- package/dist/chunk-AMJNIGO2.mjs +0 -2
- package/dist/chunk-BHBOAP6Z.js +0 -3
- package/dist/chunk-BTSL4AYY.js +0 -1
- package/dist/chunk-C45EFOVP.js +0 -1
- package/dist/chunk-CUY2THAO.mjs +0 -1
- package/dist/chunk-DKKTY56Q.js +0 -1
- package/dist/chunk-DZ3FN3JI.js +0 -2
- package/dist/chunk-ENIWJBS7.mjs +0 -2
- package/dist/chunk-EZNVVB63.mjs +0 -1
- package/dist/chunk-GKAXYZCE.mjs +0 -1
- package/dist/chunk-IGYHDSM7.mjs +0 -1
- package/dist/chunk-L6ZRNW7Y.mjs +0 -1
- package/dist/chunk-LJ2TB6CY.js +0 -1
- package/dist/chunk-MOKKS75W.mjs +0 -3
- package/dist/chunk-ND33YQGU.js +0 -1
- package/dist/chunk-QXSDGNJ4.js +0 -1
- package/dist/chunk-RT52EYG3.mjs +0 -4
- package/dist/chunk-SHYNWAW6.mjs +0 -1
- package/dist/chunk-SNTAAXXA.mjs +0 -1
- package/dist/chunk-TAQTZAVZ.js +0 -1
- package/dist/chunk-UKMKGIME.js +0 -1
- package/dist/chunk-UXPY65AC.js +0 -1
- package/dist/chunk-VOCHZNOF.mjs +0 -1
- package/dist/chunk-VW22RZ6C.mjs +0 -1
- package/dist/chunk-WQRWRWSK.js +0 -1
- package/dist/chunk-YHXVNJK5.mjs +0 -1
- package/dist/chunk-ZETEPB7I.js +0 -1
- package/dist/executor-DZAMMQ35.js +0 -1
- package/dist/executor-ZCJRLT3Z.mjs +0 -1
package/dist/docx/parser.d.ts
CHANGED
|
@@ -24,9 +24,9 @@ import { D as DocxInput } from '../docxInput-DTbCa48g.js';
|
|
|
24
24
|
import '../colors-C3vA7HUU.js';
|
|
25
25
|
import '../formatting-JhqWT_XM.js';
|
|
26
26
|
import '../lists-Bn29SzeS.js';
|
|
27
|
-
import '../content-
|
|
27
|
+
import '../content-DNcMlHU0.js';
|
|
28
28
|
import './wrapTypes.js';
|
|
29
|
-
import '../watermark-
|
|
29
|
+
import '../watermark-D90356ZM.js';
|
|
30
30
|
import '../styles-gEujs7j6.js';
|
|
31
31
|
|
|
32
32
|
/**
|
package/dist/docx/parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkWVY2UXAK_js=require('../chunk-WVY2UXAK.js');require('../chunk-DFDL337G.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-QVRMX2AC.js'),require('../chunk-LW5OFHSW.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-BJSG6TEG.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-H57LNDBH.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"fullParseDocx",{enumerable:true,get:function(){return chunkWVY2UXAK_js.c}});Object.defineProperty(exports,"getDocxSummary",{enumerable:true,get:function(){return chunkWVY2UXAK_js.e}});Object.defineProperty(exports,"getDocxVariables",{enumerable:true,get:function(){return chunkWVY2UXAK_js.d}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkWVY2UXAK_js.a}});Object.defineProperty(exports,"quickParseDocx",{enumerable:true,get:function(){return chunkWVY2UXAK_js.b}});
|
package/dist/docx/parser.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as fullParseDocx,e as getDocxSummary,d as getDocxVariables,a as parseDocx,b as quickParseDocx}from'../chunk-
|
|
1
|
+
export{c as fullParseDocx,e as getDocxSummary,d as getDocxVariables,a as parseDocx,b as quickParseDocx}from'../chunk-5EP47PMQ.mjs';import'../chunk-47SKD7QB.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-CDBKFBC2.mjs';import'../chunk-3HLRRK6N.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-KNY7SXPJ.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-VJFIAFZ5.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';
|
package/dist/docx/rezip.d.mts
CHANGED
|
@@ -40,9 +40,9 @@ import { Document } from '../types/document.mjs';
|
|
|
40
40
|
import '../colors-C3vA7HUU.mjs';
|
|
41
41
|
import '../formatting-DFtuRFQY.mjs';
|
|
42
42
|
import '../lists-CyGxd5Y2.mjs';
|
|
43
|
-
import '../content-
|
|
43
|
+
import '../content-BEFz1zcs.mjs';
|
|
44
44
|
import './wrapTypes.mjs';
|
|
45
|
-
import '../watermark-
|
|
45
|
+
import '../watermark-D90356ZM.mjs';
|
|
46
46
|
import '../styles-Dqec8Aw6.mjs';
|
|
47
47
|
|
|
48
48
|
/**
|
package/dist/docx/rezip.d.ts
CHANGED
|
@@ -40,9 +40,9 @@ import { Document } from '../types/document.js';
|
|
|
40
40
|
import '../colors-C3vA7HUU.js';
|
|
41
41
|
import '../formatting-JhqWT_XM.js';
|
|
42
42
|
import '../lists-Bn29SzeS.js';
|
|
43
|
-
import '../content-
|
|
43
|
+
import '../content-DNcMlHU0.js';
|
|
44
44
|
import './wrapTypes.js';
|
|
45
|
-
import '../watermark-
|
|
45
|
+
import '../watermark-D90356ZM.js';
|
|
46
46
|
import '../styles-gEujs7j6.js';
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-
|
|
10
|
-
import { P as Paragraph,
|
|
9
|
+
export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-DI3OIQ1j.mjs';
|
|
10
|
+
import { P as Paragraph, l as Run, T as Table, x as HeaderFooter, C as Comment, E as Endnote, F as Footnote } from '../../content-BEFz1zcs.mjs';
|
|
11
11
|
import '../../types/document.mjs';
|
|
12
12
|
import '../../colors-C3vA7HUU.mjs';
|
|
13
13
|
import '../../formatting-DFtuRFQY.mjs';
|
|
14
14
|
import '../../lists-CyGxd5Y2.mjs';
|
|
15
|
-
import '../../watermark-
|
|
15
|
+
import '../../watermark-D90356ZM.mjs';
|
|
16
16
|
import '../../styles-Dqec8Aw6.mjs';
|
|
17
17
|
import '../wrapTypes.mjs';
|
|
18
18
|
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-
|
|
10
|
-
import { P as Paragraph,
|
|
9
|
+
export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-BJSNK-Wl.js';
|
|
10
|
+
import { P as Paragraph, l as Run, T as Table, x as HeaderFooter, C as Comment, E as Endnote, F as Footnote } from '../../content-DNcMlHU0.js';
|
|
11
11
|
import '../../types/document.js';
|
|
12
12
|
import '../../colors-C3vA7HUU.js';
|
|
13
13
|
import '../../formatting-JhqWT_XM.js';
|
|
14
14
|
import '../../lists-Bn29SzeS.js';
|
|
15
|
-
import '../../watermark-
|
|
15
|
+
import '../../watermark-D90356ZM.js';
|
|
16
16
|
import '../../styles-gEujs7j6.js';
|
|
17
17
|
import '../wrapTypes.js';
|
|
18
18
|
|
package/dist/editor/index.d.mts
CHANGED
|
@@ -2,10 +2,10 @@ import { EditorState, Transaction } from 'prosemirror-state';
|
|
|
2
2
|
import { Node } from 'prosemirror-model';
|
|
3
3
|
import { PageMargins, ColumnLayout, FlowBlock, Measure, Layout } from '../layout-engine/types.mjs';
|
|
4
4
|
import { Document } from '../types/document.mjs';
|
|
5
|
-
import { S as SectionProperties,
|
|
5
|
+
import { S as SectionProperties, x as HeaderFooter } from '../content-BEFz1zcs.mjs';
|
|
6
6
|
import { F as FloatPageGeometry } from '../measureBlocksPipeline-BMqbRFQB.mjs';
|
|
7
7
|
import { H as HeaderFooterContent, F as FootnoteRenderItem } from '../footnotes-BZ24OTAT.mjs';
|
|
8
|
-
import { W as Watermark } from '../watermark-
|
|
8
|
+
import { W as Watermark } from '../watermark-D90356ZM.mjs';
|
|
9
9
|
import { T as Theme, S as StyleDefinitions } from '../styles-Dqec8Aw6.mjs';
|
|
10
10
|
import '../formatting-DFtuRFQY.mjs';
|
|
11
11
|
import '../colors-C3vA7HUU.mjs';
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { EditorState, Transaction } from 'prosemirror-state';
|
|
|
2
2
|
import { Node } from 'prosemirror-model';
|
|
3
3
|
import { PageMargins, ColumnLayout, FlowBlock, Measure, Layout } from '../layout-engine/types.js';
|
|
4
4
|
import { Document } from '../types/document.js';
|
|
5
|
-
import { S as SectionProperties,
|
|
5
|
+
import { S as SectionProperties, x as HeaderFooter } from '../content-DNcMlHU0.js';
|
|
6
6
|
import { F as FloatPageGeometry } from '../measureBlocksPipeline-iYNzAH-o.js';
|
|
7
7
|
import { H as HeaderFooterContent, F as FootnoteRenderItem } from '../footnotes-DMsicPGd.js';
|
|
8
|
-
import { W as Watermark } from '../watermark-
|
|
8
|
+
import { W as Watermark } from '../watermark-D90356ZM.js';
|
|
9
9
|
import { T as Theme, S as StyleDefinitions } from '../styles-gEujs7j6.js';
|
|
10
10
|
import '../formatting-JhqWT_XM.js';
|
|
11
11
|
import '../colors-C3vA7HUU.js';
|
package/dist/editor/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../chunk-
|
|
1
|
+
'use strict';require('../chunk-PM4KDJJ2.js');var chunkWTIN6QHX_js=require('../chunk-WTIN6QHX.js');require('../chunk-DUXHJ6QP.js');var chunkTT3ILFZC_js=require('../chunk-TT3ILFZC.js'),chunkNKIDBERV_js=require('../chunk-NKIDBERV.js');require('../chunk-MWOHCSZE.js');var chunkYUHOVME2_js=require('../chunk-YUHOVME2.js'),chunkXCTYXYEU_js=require('../chunk-XCTYXYEU.js');require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-DFDL337G.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-DKUHG27E.js'),require('../chunk-PGWY6UFK.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-LW5OFHSW.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-4U2S3WV2.js'),require('../chunk-DUVSDFRG.js'),require('../chunk-Q2VALXEU.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-ILPNMG7Q.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-X6AICTHN.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-BJSG6TEG.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-H57LNDBH.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-DC7S76ZX.js');function ue(a){let{state:t,document:r,pageSize:e,margins:o,columns:f,finalPageSize:d,finalMargins:L,finalColumns:M,pageGap:X,contentWidth:l,theme:m,styles:k,sectionProperties:s,finalSectionProperties:Y,headerContent:Z,footerContent:ee,firstPageHeaderContent:te,firstPageFooterContent:oe,measureBlocks:g,getHfPmDoc:ne}=a,re=e.h-o.top-o.bottom,n=chunkNKIDBERV_js.c(t.doc,{theme:m,pageContentHeight:re}),D=chunkWTIN6QHX_js.Q(n,{pageSize:e,margins:o,columns:f},{pageSize:d,margins:L,columns:M});chunkWTIN6QHX_js.b(n,D,l);let c=g(n,D,chunkYUHOVME2_js.f({size:e,margins:o})),y=chunkTT3ILFZC_js.d(n),H=y.length>0&&!!r?.package?.footnotes,x={section:"header",pageSize:e,margins:o},T={section:"footer",pageSize:e,margins:o},B=t.doc.attrs?.defaultTabStopTwips,w={styles:k,theme:m,measureBlocks:g,defaultTabStopTwips:B},p=(i,u)=>{if(!i)return;let A=ne(i);return A?chunkWTIN6QHX_js.B(A,l,u,w):chunkWTIN6QHX_js.A(i,l,u,w)},R=p(Z,x),v=p(ee,T),F=s?.titlePg===true,z=F?p(te,x):void 0,E=F?p(oe,T):void 0,ae=t.doc.attrs?.watermark??void 0,{margins:ie,finalMargins:se}=chunkWTIN6QHX_js.F({pageSize:e,margins:o,finalMargins:L,bodyBlocks:n,headers:[R,z],footers:[v,E],warn:i=>console.warn(`[computeLayout] ${i}`)}),de=Y?.sectionStart,P={pageSize:e,margins:ie,finalPageSize:d,finalMargins:se,columns:M,bodyBreakType:de,pageGap:X},h,W=new Map,S=new Map;if(H){let i=chunkXCTYXYEU_js.X(n,c,P);S=chunkTT3ILFZC_js.h(r.package.footnotes,y,l,{styles:k??void 0,theme:m??null,measureBlocks:g,defaultTabStopTwips:B});let u=chunkTT3ILFZC_js.j({blocks:n,measures:c,layoutOpts:P,footnoteRefs:y,footnoteContentMap:S,initialLayout:i});h=u.layout,W=u.pageFootnoteMap;}else h=chunkXCTYXYEU_js.X(n,c,P);let _=H?chunkTT3ILFZC_js.k(W,S,r):void 0;return {blocks:n,measures:c,layout:h,headerContentForRender:R,footerContentForRender:v,firstPageHeaderForRender:z,firstPageFooterForRender:E,hasTitlePg:F,watermark:ae,headerDistancePx:s?.headerDistance!=null?chunkWTIN6QHX_js.K(s.headerDistance):void 0,footerDistancePx:s?.footerDistance!=null?chunkWTIN6QHX_js.K(s.footerDistance):void 0,pageBorders:s?.pageBorders,footnotesByPage:_?.size?_:void 0}}function le(a,t=e=>requestAnimationFrame(e),r=e=>cancelAnimationFrame(e)){let e=null;return {schedule(o){if(e){e.state=o;return}e={handle:0,state:o};let f=t(()=>{let d=e;e=null,d&&a(d.state);});e&&(e.handle=f);},cancel(){e&&(r(e.handle),e=null);}}}var Q=false;function ce(a){if(!Q){Q=true;try{let t=a.scrollIntoView();(typeof t.updated!="number"||(t.updated&4)===0)&&console.warn("[docx-editor] prosemirror-state UPDATED_SCROLL bit shape changed; paginated scroll suppression may be stale. Update PM_UPDATED_SCROLL.");}catch{}}}function pe(a,t){ce(t);let r=a;typeof r.updated=="number"&&(r.updated&=-5);}exports.computeLayout=ue;exports.createLayoutScheduler=le;exports.stripScrollFlag=pe;
|
package/dist/editor/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../chunk-
|
|
1
|
+
import'../chunk-QRBFMR7Z.mjs';import {Q as Q$1,b,F,K,B,A}from'../chunk-A7C3DGQA.mjs';import'../chunk-ICNIAAH7.mjs';import {d,h,j,k}from'../chunk-HQ76VZAN.mjs';import {c}from'../chunk-7EU6E64E.mjs';import'../chunk-RRJKF2XI.mjs';import {f}from'../chunk-QCPISGPW.mjs';import {X}from'../chunk-VMBCUUZM.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-47SKD7QB.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-NN2EJIO7.mjs';import'../chunk-O5L4BZCZ.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-3HLRRK6N.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-SHZOAUHB.mjs';import'../chunk-TXAB4I4M.mjs';import'../chunk-PJEB3ZWG.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-HEJJXAXN.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-NTBZRITU.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-KNY7SXPJ.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-VJFIAFZ5.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';function ue(a){let{state:t,document:r,pageSize:e,margins:o,columns:f$1,finalPageSize:d$1,finalMargins:L,finalColumns:M,pageGap:X$1,contentWidth:l,theme:m,styles:k$1,sectionProperties:s,finalSectionProperties:Y,headerContent:Z,footerContent:ee,firstPageHeaderContent:te,firstPageFooterContent:oe,measureBlocks:g,getHfPmDoc:ne}=a,re=e.h-o.top-o.bottom,n=c(t.doc,{theme:m,pageContentHeight:re}),D=Q$1(n,{pageSize:e,margins:o,columns:f$1},{pageSize:d$1,margins:L,columns:M});b(n,D,l);let c$1=g(n,D,f({size:e,margins:o})),y=d(n),H=y.length>0&&!!r?.package?.footnotes,x={section:"header",pageSize:e,margins:o},T={section:"footer",pageSize:e,margins:o},B$1=t.doc.attrs?.defaultTabStopTwips,w={styles:k$1,theme:m,measureBlocks:g,defaultTabStopTwips:B$1},p=(i,u)=>{if(!i)return;let A$1=ne(i);return A$1?B(A$1,l,u,w):A(i,l,u,w)},R=p(Z,x),v=p(ee,T),F$1=s?.titlePg===true,z=F$1?p(te,x):void 0,E=F$1?p(oe,T):void 0,ae=t.doc.attrs?.watermark??void 0,{margins:ie,finalMargins:se}=F({pageSize:e,margins:o,finalMargins:L,bodyBlocks:n,headers:[R,z],footers:[v,E],warn:i=>console.warn(`[computeLayout] ${i}`)}),de=Y?.sectionStart,P={pageSize:e,margins:ie,finalPageSize:d$1,finalMargins:se,columns:M,bodyBreakType:de,pageGap:X$1},h$1,W=new Map,S=new Map;if(H){let i=X(n,c$1,P);S=h(r.package.footnotes,y,l,{styles:k$1??void 0,theme:m??null,measureBlocks:g,defaultTabStopTwips:B$1});let u=j({blocks:n,measures:c$1,layoutOpts:P,footnoteRefs:y,footnoteContentMap:S,initialLayout:i});h$1=u.layout,W=u.pageFootnoteMap;}else h$1=X(n,c$1,P);let _=H?k(W,S,r):void 0;return {blocks:n,measures:c$1,layout:h$1,headerContentForRender:R,footerContentForRender:v,firstPageHeaderForRender:z,firstPageFooterForRender:E,hasTitlePg:F$1,watermark:ae,headerDistancePx:s?.headerDistance!=null?K(s.headerDistance):void 0,footerDistancePx:s?.footerDistance!=null?K(s.footerDistance):void 0,pageBorders:s?.pageBorders,footnotesByPage:_?.size?_:void 0}}function le(a,t=e=>requestAnimationFrame(e),r=e=>cancelAnimationFrame(e)){let e=null;return {schedule(o){if(e){e.state=o;return}e={handle:0,state:o};let f=t(()=>{let d=e;e=null,d&&a(d.state);});e&&(e.handle=f);},cancel(){e&&(r(e.handle),e=null);}}}var Q=false;function ce(a){if(!Q){Q=true;try{let t=a.scrollIntoView();(typeof t.updated!="number"||(t.updated&4)===0)&&console.warn("[docx-editor] prosemirror-state UPDATED_SCROLL bit shape changed; paginated scroll suppression may be stale. Update PM_UPDATED_SCROLL.");}catch{}}}function pe(a,t){ce(t);let r=a;typeof r.updated=="number"&&(r.updated&=-5);}export{ue as computeLayout,le as createLayoutScheduler,pe as stripScrollFlag};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkFETIBXTH_js=require('./chunk-FETIBXTH.js');require('./chunk-4BFNWPKW.js'),require('./chunk-BJSG6TEG.js'),require('./chunk-DC7S76ZX.js');Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkFETIBXTH_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkFETIBXTH_js.b}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as executeCommand,b as executeCommands}from'./chunk-B6FA4MJ5.mjs';import'./chunk-3NRMSZX2.mjs';import'./chunk-KNY7SXPJ.mjs';import'./chunk-QYUPLKLP.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document } from './types/document.js';
|
|
2
|
-
import {
|
|
2
|
+
import { w as BreakContent, P as Paragraph, l as Run, m as RunContent } from './content-DNcMlHU0.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Insert Operations Utility
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document } from './types/document.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { w as BreakContent, P as Paragraph, l as Run, m as RunContent } from './content-BEFz1zcs.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Insert Operations Utility
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
import { FlowBlock, Measure, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.js';
|
|
4
|
-
import { F as Footnote,
|
|
3
|
+
import { FlowBlock, Measure, BlockId, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.js';
|
|
4
|
+
import { F as Footnote, x as HeaderFooter } from './content-DNcMlHU0.js';
|
|
5
5
|
import { S as StyleDefinitions, T as Theme } from './styles-gEujs7j6.js';
|
|
6
6
|
import { F as FootnoteRenderItem, H as HeaderFooterContent } from './footnotes-DMsicPGd.js';
|
|
7
7
|
import { Document } from './types/document.js';
|
|
@@ -36,9 +36,29 @@ declare const MAX_FOOTNOTE_LAYOUT_PASSES = 6;
|
|
|
36
36
|
* Vue adapters to detect when the multi-pass loop has converged.
|
|
37
37
|
*/
|
|
38
38
|
declare function footnoteReservedHeightsEqual(a: Map<number, number>, b: Map<number, number>): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Where a footnote reference lives, as found by {@link collectFootnoteRefs}.
|
|
41
|
+
*
|
|
42
|
+
* `pmPos` alone is enough to attribute a reference to a page for ordinary
|
|
43
|
+
* (paragraph) content, whose fragments carry a per-page pm sub-range. A table
|
|
44
|
+
* is different: it splits across pages by ROW, but every `TableFragment` keeps
|
|
45
|
+
* the whole table's `pmStart`/`pmEnd` (those drive selection mapping and must
|
|
46
|
+
* not be narrowed). So for a reference authored inside a table cell we also
|
|
47
|
+
* record the OUTERMOST table's id and the index of the row that contains it,
|
|
48
|
+
* letting {@link mapFootnotesToPages} attribute the reference to the page that
|
|
49
|
+
* actually laid out that row.
|
|
50
|
+
*/
|
|
51
|
+
type FootnoteRefLocation = {
|
|
52
|
+
footnoteId: number;
|
|
53
|
+
pmPos: number;
|
|
54
|
+
/** Id of the outermost enclosing table block, when the ref is in a table cell. */
|
|
55
|
+
tableBlockId?: BlockId;
|
|
56
|
+
/** Index (into the outermost table's `rows`) of the row holding the ref. */
|
|
57
|
+
rowIndex?: number;
|
|
58
|
+
};
|
|
39
59
|
/**
|
|
40
60
|
* Scan FlowBlocks for runs with footnoteRefId set.
|
|
41
|
-
* Returns a list of {
|
|
61
|
+
* Returns a list of {@link FootnoteRefLocation} in document order.
|
|
42
62
|
*
|
|
43
63
|
* Recurses into container blocks (table cells, text boxes) so footnote
|
|
44
64
|
* references authored anywhere in the body reach the page-reservation
|
|
@@ -46,21 +66,19 @@ declare function footnoteReservedHeightsEqual(a: Map<number, number>, b: Map<num
|
|
|
46
66
|
* gets mapped to a page and the per-page `.layout-footnote-area` silently
|
|
47
67
|
* drops that entry even though the body still renders the in-line ref
|
|
48
68
|
* marker.
|
|
69
|
+
*
|
|
70
|
+
* For refs inside a table, the OUTERMOST table's id and row index are
|
|
71
|
+
* recorded (a nested table keeps the outer context, since the outer row is
|
|
72
|
+
* what the paginator splits into per-page fragments).
|
|
49
73
|
*/
|
|
50
|
-
declare function collectFootnoteRefs(blocks: FlowBlock[]):
|
|
51
|
-
footnoteId: number;
|
|
52
|
-
pmPos: number;
|
|
53
|
-
}>;
|
|
74
|
+
declare function collectFootnoteRefs(blocks: FlowBlock[]): FootnoteRefLocation[];
|
|
54
75
|
/**
|
|
55
76
|
* After layout, determine which footnotes appear on which pages.
|
|
56
77
|
* Checks each page's fragments to see if any footnoteRef PM positions fall within.
|
|
57
78
|
*
|
|
58
79
|
* Returns Map<pageNumber, footnoteId[]> in document order.
|
|
59
80
|
*/
|
|
60
|
-
declare function mapFootnotesToPages(pages: Page[], footnoteRefs:
|
|
61
|
-
footnoteId: number;
|
|
62
|
-
pmPos: number;
|
|
63
|
-
}>): Map<number, number[]>;
|
|
81
|
+
declare function mapFootnotesToPages(pages: Page[], footnoteRefs: FootnoteRefLocation[]): Map<number, number[]>;
|
|
64
82
|
/**
|
|
65
83
|
* Footnote-specific block normalization. Mirrors the spirit of
|
|
66
84
|
* `normalizeHeaderFooterMeasureBlocks`: post-process the body-pipeline
|
|
@@ -127,10 +145,7 @@ interface StabilizeFootnoteLayoutArgs {
|
|
|
127
145
|
blocks: FlowBlock[];
|
|
128
146
|
measures: Measure[];
|
|
129
147
|
layoutOpts: LayoutOptions;
|
|
130
|
-
footnoteRefs:
|
|
131
|
-
footnoteId: number;
|
|
132
|
-
pmPos: number;
|
|
133
|
-
}>;
|
|
148
|
+
footnoteRefs: FootnoteRefLocation[];
|
|
134
149
|
footnoteContentMap: Map<number, FootnoteContent>;
|
|
135
150
|
/** First-pass layout already computed by the caller without reserved heights. */
|
|
136
151
|
initialLayout: Layout;
|
|
@@ -305,4 +320,4 @@ declare function computeHfSelectionRectsFromView(view: EditorView, section: 'hea
|
|
|
305
320
|
height: number;
|
|
306
321
|
}>;
|
|
307
322
|
|
|
308
|
-
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
|
|
323
|
+
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 FootnoteRefLocation as b, type MeasureBlocksFn as c, type StabilizeFootnoteLayoutResult as d, buildFootnoteContentMap as e, buildFootnoteRenderItems as f, calculateFootnoteReservedHeights as g, collectFootnoteRefs as h, convertHeaderFooterToContent as i, footnoteReservedHeightsEqual as j, applyFootnotePresentation as k, calculateHeaderFooterVisualBounds as l, mapFootnotesToPages as m, computeHfCaretRectFromView as n, computeHfSelectionRectsFromView as o, contributesToHeaderFooterFlowHeight as p, convertFootnoteToContent as q, convertHeaderFooterPmDocToContent as r, stabilizeFootnoteLayout as s, invalidateHfDomCache as t, normalizeHeaderFooterMeasureBlocks as u, resolveHeaderFooterVisualTop as v };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
import { FlowBlock, Measure, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.mjs';
|
|
4
|
-
import { F as Footnote,
|
|
3
|
+
import { FlowBlock, Measure, BlockId, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.mjs';
|
|
4
|
+
import { F as Footnote, x as HeaderFooter } from './content-BEFz1zcs.mjs';
|
|
5
5
|
import { S as StyleDefinitions, T as Theme } from './styles-Dqec8Aw6.mjs';
|
|
6
6
|
import { F as FootnoteRenderItem, H as HeaderFooterContent } from './footnotes-BZ24OTAT.mjs';
|
|
7
7
|
import { Document } from './types/document.mjs';
|
|
@@ -36,9 +36,29 @@ declare const MAX_FOOTNOTE_LAYOUT_PASSES = 6;
|
|
|
36
36
|
* Vue adapters to detect when the multi-pass loop has converged.
|
|
37
37
|
*/
|
|
38
38
|
declare function footnoteReservedHeightsEqual(a: Map<number, number>, b: Map<number, number>): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Where a footnote reference lives, as found by {@link collectFootnoteRefs}.
|
|
41
|
+
*
|
|
42
|
+
* `pmPos` alone is enough to attribute a reference to a page for ordinary
|
|
43
|
+
* (paragraph) content, whose fragments carry a per-page pm sub-range. A table
|
|
44
|
+
* is different: it splits across pages by ROW, but every `TableFragment` keeps
|
|
45
|
+
* the whole table's `pmStart`/`pmEnd` (those drive selection mapping and must
|
|
46
|
+
* not be narrowed). So for a reference authored inside a table cell we also
|
|
47
|
+
* record the OUTERMOST table's id and the index of the row that contains it,
|
|
48
|
+
* letting {@link mapFootnotesToPages} attribute the reference to the page that
|
|
49
|
+
* actually laid out that row.
|
|
50
|
+
*/
|
|
51
|
+
type FootnoteRefLocation = {
|
|
52
|
+
footnoteId: number;
|
|
53
|
+
pmPos: number;
|
|
54
|
+
/** Id of the outermost enclosing table block, when the ref is in a table cell. */
|
|
55
|
+
tableBlockId?: BlockId;
|
|
56
|
+
/** Index (into the outermost table's `rows`) of the row holding the ref. */
|
|
57
|
+
rowIndex?: number;
|
|
58
|
+
};
|
|
39
59
|
/**
|
|
40
60
|
* Scan FlowBlocks for runs with footnoteRefId set.
|
|
41
|
-
* Returns a list of {
|
|
61
|
+
* Returns a list of {@link FootnoteRefLocation} in document order.
|
|
42
62
|
*
|
|
43
63
|
* Recurses into container blocks (table cells, text boxes) so footnote
|
|
44
64
|
* references authored anywhere in the body reach the page-reservation
|
|
@@ -46,21 +66,19 @@ declare function footnoteReservedHeightsEqual(a: Map<number, number>, b: Map<num
|
|
|
46
66
|
* gets mapped to a page and the per-page `.layout-footnote-area` silently
|
|
47
67
|
* drops that entry even though the body still renders the in-line ref
|
|
48
68
|
* marker.
|
|
69
|
+
*
|
|
70
|
+
* For refs inside a table, the OUTERMOST table's id and row index are
|
|
71
|
+
* recorded (a nested table keeps the outer context, since the outer row is
|
|
72
|
+
* what the paginator splits into per-page fragments).
|
|
49
73
|
*/
|
|
50
|
-
declare function collectFootnoteRefs(blocks: FlowBlock[]):
|
|
51
|
-
footnoteId: number;
|
|
52
|
-
pmPos: number;
|
|
53
|
-
}>;
|
|
74
|
+
declare function collectFootnoteRefs(blocks: FlowBlock[]): FootnoteRefLocation[];
|
|
54
75
|
/**
|
|
55
76
|
* After layout, determine which footnotes appear on which pages.
|
|
56
77
|
* Checks each page's fragments to see if any footnoteRef PM positions fall within.
|
|
57
78
|
*
|
|
58
79
|
* Returns Map<pageNumber, footnoteId[]> in document order.
|
|
59
80
|
*/
|
|
60
|
-
declare function mapFootnotesToPages(pages: Page[], footnoteRefs:
|
|
61
|
-
footnoteId: number;
|
|
62
|
-
pmPos: number;
|
|
63
|
-
}>): Map<number, number[]>;
|
|
81
|
+
declare function mapFootnotesToPages(pages: Page[], footnoteRefs: FootnoteRefLocation[]): Map<number, number[]>;
|
|
64
82
|
/**
|
|
65
83
|
* Footnote-specific block normalization. Mirrors the spirit of
|
|
66
84
|
* `normalizeHeaderFooterMeasureBlocks`: post-process the body-pipeline
|
|
@@ -127,10 +145,7 @@ interface StabilizeFootnoteLayoutArgs {
|
|
|
127
145
|
blocks: FlowBlock[];
|
|
128
146
|
measures: Measure[];
|
|
129
147
|
layoutOpts: LayoutOptions;
|
|
130
|
-
footnoteRefs:
|
|
131
|
-
footnoteId: number;
|
|
132
|
-
pmPos: number;
|
|
133
|
-
}>;
|
|
148
|
+
footnoteRefs: FootnoteRefLocation[];
|
|
134
149
|
footnoteContentMap: Map<number, FootnoteContent>;
|
|
135
150
|
/** First-pass layout already computed by the caller without reserved heights. */
|
|
136
151
|
initialLayout: Layout;
|
|
@@ -305,4 +320,4 @@ declare function computeHfSelectionRectsFromView(view: EditorView, section: 'hea
|
|
|
305
320
|
height: number;
|
|
306
321
|
}>;
|
|
307
322
|
|
|
308
|
-
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
|
|
323
|
+
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 FootnoteRefLocation as b, type MeasureBlocksFn as c, type StabilizeFootnoteLayoutResult as d, buildFootnoteContentMap as e, buildFootnoteRenderItems as f, calculateFootnoteReservedHeights as g, collectFootnoteRefs as h, convertHeaderFooterToContent as i, footnoteReservedHeightsEqual as j, applyFootnotePresentation as k, calculateHeaderFooterVisualBounds as l, mapFootnotesToPages as m, computeHfCaretRectFromView as n, computeHfSelectionRectsFromView as o, contributesToHeaderFooterFlowHeight as p, convertFootnoteToContent as q, convertHeaderFooterPmDocToContent as r, stabilizeFootnoteLayout as s, invalidateHfDomCache as t, normalizeHeaderFooterMeasureBlocks as u, resolveHeaderFooterVisualTop as v };
|
package/dist/headless.d.mts
CHANGED
|
@@ -42,23 +42,23 @@
|
|
|
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-BjMyVQZO.mjs';
|
|
44
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-
|
|
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-CKWIIkkr.mjs';
|
|
46
46
|
export { parseDocx } from './docx/parser.mjs';
|
|
47
|
-
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './sectionPropertiesSerializer-
|
|
47
|
+
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './sectionPropertiesSerializer-DI3OIQ1j.mjs';
|
|
48
48
|
export { createDocx, default as repackDocx, updateMultipleFiles } from './docx/rezip.mjs';
|
|
49
49
|
import { Document } from './types/document.mjs';
|
|
50
50
|
export { DocxPackage } from './types/document.mjs';
|
|
51
|
-
import { W as Watermark } from './watermark-
|
|
51
|
+
import { W as Watermark } from './watermark-D90356ZM.mjs';
|
|
52
52
|
export { a as attemptSelectiveSave } from './selectiveSave-jinP_4xa.mjs';
|
|
53
53
|
export { b as buildPatchedDocumentXml, v as validatePatchSafety } from './selectiveXmlPatch-ypkxlTD_.mjs';
|
|
54
54
|
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-DCBfI4ld.mjs';
|
|
55
|
-
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-
|
|
55
|
+
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-7xBsshP0.mjs';
|
|
56
56
|
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToHalfPoints, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.mjs';
|
|
57
57
|
export { mapHexToHighlightName } from './utils/highlightColors.mjs';
|
|
58
58
|
export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-DTF0N7UE.mjs';
|
|
59
59
|
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-NLnxX7pq.mjs';
|
|
60
60
|
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';
|
|
61
|
-
export { B as BlockContent, C as Comment,
|
|
61
|
+
export { B as BlockContent, C as Comment, f as CommentRangeEnd, g as CommentRangeStart, h as Deletion, D as DocumentBody, E as Endnote, F as Footnote, H as Hyperlink, I as Image, i as Insertion, M as MoveFrom, j as MoveTo, P as Paragraph, k as ParagraphContent, l as Run, m as RunContent, S as SectionProperties, T as Table, n as TableCell, o as TableRow, p as TextContent, q as TrackedChangeInfo, r as TrackedRunChange } from './content-BEFz1zcs.mjs';
|
|
62
62
|
export { L as ListLevel, a as NumberingDefinitions } from './lists-CyGxd5Y2.mjs';
|
|
63
63
|
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-DFtuRFQY.mjs';
|
|
64
64
|
export { R as Relationship, a as Style, S as StyleDefinitions, T as Theme } from './styles-Dqec8Aw6.mjs';
|
package/dist/headless.d.ts
CHANGED
|
@@ -42,23 +42,23 @@
|
|
|
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-BJZZW1JA.js';
|
|
44
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-
|
|
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-2pV4M4kG.js';
|
|
46
46
|
export { parseDocx } from './docx/parser.js';
|
|
47
|
-
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './sectionPropertiesSerializer-
|
|
47
|
+
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './sectionPropertiesSerializer-BJSNK-Wl.js';
|
|
48
48
|
export { createDocx, default as repackDocx, updateMultipleFiles } from './docx/rezip.js';
|
|
49
49
|
import { Document } from './types/document.js';
|
|
50
50
|
export { DocxPackage } from './types/document.js';
|
|
51
|
-
import { W as Watermark } from './watermark-
|
|
51
|
+
import { W as Watermark } from './watermark-D90356ZM.js';
|
|
52
52
|
export { a as attemptSelectiveSave } from './selectiveSave-CWaPEv0B.js';
|
|
53
53
|
export { b as buildPatchedDocumentXml, v as validatePatchSafety } from './selectiveXmlPatch-ypkxlTD_.js';
|
|
54
54
|
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-C696sd9x.js';
|
|
55
|
-
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-
|
|
55
|
+
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-Bv5Tm0D-.js';
|
|
56
56
|
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToHalfPoints, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.js';
|
|
57
57
|
export { mapHexToHighlightName } from './utils/highlightColors.js';
|
|
58
58
|
export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-DDQWU7-j.js';
|
|
59
59
|
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-egK81C_z.js';
|
|
60
60
|
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';
|
|
61
|
-
export { B as BlockContent, C as Comment,
|
|
61
|
+
export { B as BlockContent, C as Comment, f as CommentRangeEnd, g as CommentRangeStart, h as Deletion, D as DocumentBody, E as Endnote, F as Footnote, H as Hyperlink, I as Image, i as Insertion, M as MoveFrom, j as MoveTo, P as Paragraph, k as ParagraphContent, l as Run, m as RunContent, S as SectionProperties, T as Table, n as TableCell, o as TableRow, p as TextContent, q as TrackedChangeInfo, r as TrackedRunChange } from './content-DNcMlHU0.js';
|
|
62
62
|
export { L as ListLevel, a as NumberingDefinitions } from './lists-Bn29SzeS.js';
|
|
63
63
|
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-JhqWT_XM.js';
|
|
64
64
|
export { R as Relationship, a as Style, S as StyleDefinitions, T as Theme } from './styles-gEujs7j6.js';
|
package/dist/headless.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkQEACB5VG_js=require('./chunk-QEACB5VG.js'),chunkXXU7YQVV_js=require('./chunk-XXU7YQVV.js'),chunkTDYWEVAE_js=require('./chunk-TDYWEVAE.js'),chunkGFM6PERG_js=require('./chunk-GFM6PERG.js'),chunkNXLJVVVE_js=require('./chunk-NXLJVVVE.js'),chunk6KM4VW4L_js=require('./chunk-6KM4VW4L.js'),chunkU4UCHBZ7_js=require('./chunk-U4UCHBZ7.js'),chunkESI4BSBF_js=require('./chunk-ESI4BSBF.js'),chunkTE2AF7FM_js=require('./chunk-TE2AF7FM.js'),chunkJQUIUKRO_js=require('./chunk-JQUIUKRO.js'),chunk4JPHW7ZI_js=require('./chunk-4JPHW7ZI.js'),chunk4BFNWPKW_js=require('./chunk-4BFNWPKW.js'),chunkP7HWOJC5_js=require('./chunk-P7HWOJC5.js');require('./chunk-AA6D2C6R.js'),require('./chunk-FIGLFSNR.js'),require('./chunk-QVRMX2AC.js');var chunkFO6IX2DB_js=require('./chunk-FO6IX2DB.js'),chunkRQVHKDXK_js=require('./chunk-RQVHKDXK.js');require('./chunk-O2643IUW.js'),require('./chunk-Z3LGMBJC.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-H57LNDBH.js'),require('./chunk-3R7QHNI5.js'),require('./chunk-DC7S76ZX.js');var xt="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 chunkTDYWEVAE_js.a}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkTDYWEVAE_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkTDYWEVAE_js.g}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkTDYWEVAE_js.e}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkTDYWEVAE_js.b}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkTDYWEVAE_js.c}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkTDYWEVAE_js.d}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkTDYWEVAE_js.f}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkTDYWEVAE_js.i}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkGFM6PERG_js.c}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkGFM6PERG_js.b}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkGFM6PERG_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 chunk6KM4VW4L_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 chunkJQUIUKRO_js.t}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkJQUIUKRO_js.i}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkJQUIUKRO_js.m}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.g}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.h}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.c}});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 chunkP7HWOJC5_js.a}});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,"getDocumentWatermark",{enumerable:true,get:function(){return chunkRQVHKDXK_js.a}});Object.defineProperty(exports,"setDocumentWatermark",{enumerable:true,get:function(){return chunkRQVHKDXK_js.b}});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=xt;
|
|
1
|
+
'use strict';var chunkQEACB5VG_js=require('./chunk-QEACB5VG.js'),chunkXXU7YQVV_js=require('./chunk-XXU7YQVV.js'),chunkK7NSOCSY_js=require('./chunk-K7NSOCSY.js'),chunkGFM6PERG_js=require('./chunk-GFM6PERG.js'),chunkNXLJVVVE_js=require('./chunk-NXLJVVVE.js'),chunkKEDY4GFG_js=require('./chunk-KEDY4GFG.js'),chunkU4UCHBZ7_js=require('./chunk-U4UCHBZ7.js'),chunkESI4BSBF_js=require('./chunk-ESI4BSBF.js'),chunkFETIBXTH_js=require('./chunk-FETIBXTH.js'),chunkJQUIUKRO_js=require('./chunk-JQUIUKRO.js'),chunk4JPHW7ZI_js=require('./chunk-4JPHW7ZI.js'),chunk4BFNWPKW_js=require('./chunk-4BFNWPKW.js'),chunkWVY2UXAK_js=require('./chunk-WVY2UXAK.js');require('./chunk-DFDL337G.js'),require('./chunk-FIGLFSNR.js'),require('./chunk-QVRMX2AC.js');var chunkFO6IX2DB_js=require('./chunk-FO6IX2DB.js'),chunkRQVHKDXK_js=require('./chunk-RQVHKDXK.js');require('./chunk-LW5OFHSW.js'),require('./chunk-Z3LGMBJC.js');var chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js');require('./chunk-C2BAPYGJ.js');var chunkBJSG6TEG_js=require('./chunk-BJSG6TEG.js');require('./chunk-GSKMHXHG.js'),require('./chunk-H57LNDBH.js'),require('./chunk-3R7QHNI5.js'),require('./chunk-DC7S76ZX.js');var xt="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 chunkK7NSOCSY_js.a}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkK7NSOCSY_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkK7NSOCSY_js.g}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkK7NSOCSY_js.e}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkK7NSOCSY_js.b}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkK7NSOCSY_js.c}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkK7NSOCSY_js.d}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkK7NSOCSY_js.f}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkK7NSOCSY_js.i}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkGFM6PERG_js.c}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkGFM6PERG_js.b}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkGFM6PERG_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 chunkKEDY4GFG_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 chunkFETIBXTH_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkFETIBXTH_js.b}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkJQUIUKRO_js.t}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkJQUIUKRO_js.i}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkJQUIUKRO_js.m}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.g}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.h}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunk4JPHW7ZI_js.c}});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 chunkWVY2UXAK_js.a}});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,"getDocumentWatermark",{enumerable:true,get:function(){return chunkRQVHKDXK_js.a}});Object.defineProperty(exports,"setDocumentWatermark",{enumerable:true,get:function(){return chunkRQVHKDXK_js.b}});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 chunkBJSG6TEG_js.f}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkBJSG6TEG_js.h}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkBJSG6TEG_js.q}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkBJSG6TEG_js.k}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkBJSG6TEG_js.g}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkBJSG6TEG_js.e}});Object.defineProperty(exports,"pointsToHalfPoints",{enumerable:true,get:function(){return chunkBJSG6TEG_js.m}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkBJSG6TEG_js.j}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkBJSG6TEG_js.i}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkBJSG6TEG_js.d}});exports.VERSION=xt;
|
package/dist/headless.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-OWGY46IW.mjs';export{c as attemptSelectiveSave,b as buildPatchedDocumentXml,a as validatePatchSafety}from'./chunk-QZPVZY6S.mjs';export{b as createDocumentWithText,a as createEmptyDocument}from'./chunk-CKKO4JWE.mjs';export{a as isZodSchema}from'./chunk-YSBX4LFA.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-B6FA4MJ5.mjs';export{t as createDocx,i as repackDocx,m as updateMultipleFiles}from'./chunk-F24WZXN4.mjs';export{g as serializeDocumentBody,h as serializeDocx,c as serializeSectionProperties}from'./chunk-2LVK7EF5.mjs';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-3NRMSZX2.mjs';export{a as parseDocx}from'./chunk-5EP47PMQ.mjs';import'./chunk-47SKD7QB.mjs';import'./chunk-MOCGHQ4A.mjs';import'./chunk-CDBKFBC2.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';export{a as getDocumentWatermark,b as setDocumentWatermark}from'./chunk-GYWTUUXX.mjs';import'./chunk-3HLRRK6N.mjs';import'./chunk-W77JXDEV.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{f as emuToPixels,h as emuToTwips,q as formatPx,k as halfPointsToPixels,g as pixelsToEmu,e as pixelsToTwips,m as pointsToHalfPoints,j as pointsToPixels,i as twipsToEmu,d as twipsToPixels}from'./chunk-KNY7SXPJ.mjs';import'./chunk-DI6CRWSW.mjs';import'./chunk-VJFIAFZ5.mjs';import'./chunk-3ANZ3252.mjs';import'./chunk-QYUPLKLP.mjs';var xt="0.0.2";export{xt as VERSION};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkMWOHCSZE_js=require('../chunk-MWOHCSZE.js');require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"clickToPositionDom",{enumerable:true,get:function(){return chunkMWOHCSZE_js.e}});Object.defineProperty(exports,"clipRectToTableWindow",{enumerable:true,get:function(){return chunkMWOHCSZE_js.f}});Object.defineProperty(exports,"getCaretPositionFromDom",{enumerable:true,get:function(){return chunkMWOHCSZE_js.h}});Object.defineProperty(exports,"getSelectionRectsFromDom",{enumerable:true,get:function(){return chunkMWOHCSZE_js.g}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{e as clickToPositionDom,f as clipRectToTableWindow,h as getCaretPositionFromDom,g as getSelectionRectsFromDom}from'../chunk-
|
|
1
|
+
export{e as clickToPositionDom,f as clipRectToTableWindow,h as getCaretPositionFromDom,g as getSelectionRectsFromDom}from'../chunk-RRJKF2XI.mjs';import'../chunk-QYUPLKLP.mjs';
|