@eigenpal/docx-editor-core 1.5.0 → 1.6.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/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-2KPOGFFR.js +1 -0
- package/dist/{chunk-NPFFCPZ6.js → chunk-2KUOYHXX.js} +1 -1
- package/dist/{chunk-WXSGCEBZ.js → chunk-2ZTKTE7P.js} +1 -1
- package/dist/{chunk-C45EFOVP.js → chunk-34DJT72K.js} +1 -1
- package/dist/chunk-3HLRRK6N.mjs +2 -0
- package/dist/{chunk-COV4LHQ7.js → chunk-4272FQ2E.js} +1 -1
- package/dist/chunk-4DCTKHS5.js +1 -0
- package/dist/chunk-4QJEMD23.mjs +4 -0
- package/dist/chunk-4QSFBX26.mjs +1 -0
- package/dist/chunk-4SZAFWLV.mjs +1 -0
- package/dist/{chunk-WYFK4QOF.mjs → chunk-5JULVEYK.mjs} +1 -1
- package/dist/chunk-6AGU57TL.mjs +1 -0
- package/dist/{chunk-T4O4PFJD.mjs → chunk-6ENZQGYR.mjs} +1 -1
- package/dist/chunk-6KYOT4E7.js +4 -0
- package/dist/chunk-77X765ZO.js +1 -0
- package/dist/chunk-7UMOUKSF.js +1 -0
- package/dist/chunk-AXVWVIIN.js +1 -0
- package/dist/chunk-B6FA4MJ5.mjs +1 -0
- package/dist/chunk-BBJMUBTD.mjs +1 -0
- package/dist/chunk-BJSG6TEG.js +1 -0
- package/dist/chunk-BKP5QMTS.js +1 -0
- package/dist/{chunk-3HENAL6V.mjs → chunk-C57BOE7B.mjs} +1 -1
- package/dist/{chunk-3SJQRYO7.js → chunk-CDGV7CLS.js} +1 -1
- package/dist/{chunk-TV6JLFY5.js → chunk-CWPIXUU2.js} +1 -1
- package/dist/chunk-DX5XU6JN.js +1 -0
- package/dist/chunk-E7UN3PVC.mjs +1 -0
- package/dist/chunk-EJ2JAYRI.js +1 -0
- package/dist/{chunk-TDYWEVAE.js → chunk-F44XU6G5.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-5WINQXA3.js → chunk-ILPNMG7Q.js} +1 -1
- package/dist/chunk-IM56AITE.mjs +1 -0
- package/dist/chunk-KK673XRZ.mjs +1 -0
- package/dist/chunk-KNY7SXPJ.mjs +1 -0
- package/dist/{chunk-M3UL6EUU.mjs → chunk-KSW6W2EK.mjs} +2 -2
- package/dist/chunk-LVUL7O27.js +1 -0
- package/dist/{chunk-O2643IUW.js → chunk-LW5OFHSW.js} +2 -2
- package/dist/chunk-M65C4SQJ.mjs +2 -0
- package/dist/chunk-MWOHCSZE.js +1 -0
- package/dist/chunk-NO6PIL32.mjs +1 -0
- package/dist/chunk-NTYJIOUE.js +2 -0
- package/dist/{chunk-WWVIVYX6.mjs → chunk-NY36MZ55.mjs} +1 -1
- package/dist/chunk-PJEB3ZWG.mjs +3 -0
- package/dist/chunk-Q2VALXEU.js +3 -0
- package/dist/{chunk-6KM4VW4L.js → chunk-RGHRXIIZ.js} +3 -3
- package/dist/chunk-RRJKF2XI.mjs +1 -0
- package/dist/{chunk-GB7RICH6.js → chunk-T3UP6LF5.js} +1 -1
- package/dist/chunk-UC7JW66O.mjs +1 -0
- package/dist/{chunk-P7HWOJC5.js → chunk-V3NE7Q22.js} +1 -1
- package/dist/chunk-WCB25ESG.mjs +1 -0
- package/dist/{chunk-SKBHY5MK.mjs → chunk-WEQA5PPW.mjs} +1 -1
- package/dist/{chunk-CBKJOPOW.mjs → chunk-WQJWT4RB.mjs} +1 -1
- package/dist/chunk-WWG6PUWU.js +1 -0
- package/dist/{chunk-PYDX4MOT.mjs → chunk-XTPT4TNP.mjs} +1 -1
- package/dist/{chunk-QUM4DFRE.mjs → chunk-YMXWLXVF.mjs} +1 -1
- package/dist/{content-eG_Rtl0l.d.ts → content-BebvPfXc.d.ts} +1 -1
- package/dist/{content-BlWiORm-.d.mts → content-CbBCrsr0.d.mts} +1 -1
- package/dist/{contentControlValues-CO7pUqOf.d.ts → contentControlValues-Com1GnZS.d.ts} +1 -1
- package/dist/{contentControlValues-DfYN9BZ8.d.mts → contentControlValues-DVJyudKU.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-3MFD_Hj2.d.mts → fontLoader-B4uFKpAy.d.mts} +1 -1
- package/dist/{fontLoader-C6VvBUVB.d.ts → fontLoader-D9SBYuZZ.d.ts} +1 -1
- package/dist/{headerFooterLayout-bdHWlU6g.d.ts → headerFooterLayout-CtVsfqxQ.d.ts} +1 -1
- package/dist/{headerFooterLayout-DJb-dV7X.d.mts → headerFooterLayout-D2LZLkDC.d.mts} +1 -1
- 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 +23 -23
- 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-BJef4KFW.d.ts → nodes-Bd6tTkp0.d.ts} +1 -1
- package/dist/{nodes-RfTS-NSv.d.mts → nodes-BvO8GGD4.d.mts} +1 -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 +1 -1
- 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-CzgskSoA.d.ts} +1 -1
- package/dist/{sectionPropertiesSerializer-C8XCmzE4.d.mts → sectionPropertiesSerializer-D3yI82iZ.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-D2-xDa2O.d.mts} +1 -1
- package/dist/{variableDetector-o4Rb2Csy.d.ts → variableDetector-d-PpDlNV.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-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.mts
CHANGED
|
@@ -24,9 +24,9 @@ import { D as DocxInput } from '../docxInput-DTbCa48g.mjs';
|
|
|
24
24
|
import '../colors-C3vA7HUU.mjs';
|
|
25
25
|
import '../formatting-DFtuRFQY.mjs';
|
|
26
26
|
import '../lists-CyGxd5Y2.mjs';
|
|
27
|
-
import '../content-
|
|
27
|
+
import '../content-CbBCrsr0.mjs';
|
|
28
28
|
import './wrapTypes.mjs';
|
|
29
|
-
import '../watermark-
|
|
29
|
+
import '../watermark-D90356ZM.mjs';
|
|
30
30
|
import '../styles-Dqec8Aw6.mjs';
|
|
31
31
|
|
|
32
32
|
/**
|
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-BebvPfXc.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 chunkV3NE7Q22_js=require('../chunk-V3NE7Q22.js');require('../chunk-6KYOT4E7.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 chunkV3NE7Q22_js.c}});Object.defineProperty(exports,"getDocxSummary",{enumerable:true,get:function(){return chunkV3NE7Q22_js.e}});Object.defineProperty(exports,"getDocxVariables",{enumerable:true,get:function(){return chunkV3NE7Q22_js.d}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkV3NE7Q22_js.a}});Object.defineProperty(exports,"quickParseDocx",{enumerable:true,get:function(){return chunkV3NE7Q22_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-C57BOE7B.mjs';import'../chunk-4QJEMD23.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-CbBCrsr0.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-BebvPfXc.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, k as Run, T as Table, w as HeaderFooter, C as Comment, E as Endnote, F as Footnote } from '../../content-
|
|
9
|
+
export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-D3yI82iZ.mjs';
|
|
10
|
+
import { P as Paragraph, k as Run, T as Table, w as HeaderFooter, C as Comment, E as Endnote, F as Footnote } from '../../content-CbBCrsr0.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, k as Run, T as Table, w as HeaderFooter, C as Comment, E as Endnote, F as Footnote } from '../../content-
|
|
9
|
+
export { c as serializeBlockContent, a as serializeDocument, s as serializeDocumentBody, b as serializeSectionProperties } from '../../sectionPropertiesSerializer-CzgskSoA.js';
|
|
10
|
+
import { P as Paragraph, k as Run, T as Table, w as HeaderFooter, C as Comment, E as Endnote, F as Footnote } from '../../content-BebvPfXc.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, w as HeaderFooter } from '../content-
|
|
5
|
+
import { S as SectionProperties, w as HeaderFooter } from '../content-CbBCrsr0.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, w as HeaderFooter } from '../content-
|
|
5
|
+
import { S as SectionProperties, w as HeaderFooter } from '../content-BebvPfXc.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-T3UP6LF5.js');var chunk7UMOUKSF_js=require('../chunk-7UMOUKSF.js');require('../chunk-CWPIXUU2.js');var chunk77X765ZO_js=require('../chunk-77X765ZO.js'),chunk2KPOGFFR_js=require('../chunk-2KPOGFFR.js');require('../chunk-MWOHCSZE.js');var chunkDX5XU6JN_js=require('../chunk-DX5XU6JN.js'),chunkEJ2JAYRI_js=require('../chunk-EJ2JAYRI.js');require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-6KYOT4E7.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-BKP5QMTS.js'),require('../chunk-34DJT72K.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-LW5OFHSW.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-AXVWVIIN.js'),require('../chunk-NTYJIOUE.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=chunk2KPOGFFR_js.c(t.doc,{theme:m,pageContentHeight:re}),D=chunk7UMOUKSF_js.Q(n,{pageSize:e,margins:o,columns:f},{pageSize:d,margins:L,columns:M});chunk7UMOUKSF_js.b(n,D,l);let c=g(n,D,chunkDX5XU6JN_js.f({size:e,margins:o})),y=chunk77X765ZO_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?chunk7UMOUKSF_js.B(A,l,u,w):chunk7UMOUKSF_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}=chunk7UMOUKSF_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=chunkEJ2JAYRI_js.X(n,c,P);S=chunk77X765ZO_js.h(r.package.footnotes,y,l,{styles:k??void 0,theme:m??null,measureBlocks:g,defaultTabStopTwips:B});let u=chunk77X765ZO_js.j({blocks:n,measures:c,layoutOpts:P,footnoteRefs:y,footnoteContentMap:S,initialLayout:i});h=u.layout,W=u.pageFootnoteMap;}else h=chunkEJ2JAYRI_js.X(n,c,P);let _=H?chunk77X765ZO_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?chunk7UMOUKSF_js.K(s.headerDistance):void 0,footerDistancePx:s?.footerDistance!=null?chunk7UMOUKSF_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-WQJWT4RB.mjs';import {Q as Q$1,b,F,K,B,A}from'../chunk-E7UN3PVC.mjs';import'../chunk-5JULVEYK.mjs';import {d,h,j,k}from'../chunk-4QSFBX26.mjs';import {c}from'../chunk-4SZAFWLV.mjs';import'../chunk-RRJKF2XI.mjs';import {f}from'../chunk-6AGU57TL.mjs';import {X}from'../chunk-BBJMUBTD.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-4QJEMD23.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-KK673XRZ.mjs';import'../chunk-WCB25ESG.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-3HLRRK6N.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-NO6PIL32.mjs';import'../chunk-M65C4SQJ.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.mjs';
|
|
2
|
-
import { v as BreakContent, P as Paragraph, k as Run, l as RunContent } from './content-
|
|
2
|
+
import { v as BreakContent, P as Paragraph, k as Run, l as RunContent } from './content-CbBCrsr0.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Insert Operations Utility
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document } from './types/document.js';
|
|
2
|
-
import { v as BreakContent, P as Paragraph, k as Run, l as RunContent } from './content-
|
|
2
|
+
import { v as BreakContent, P as Paragraph, k as Run, l as RunContent } from './content-BebvPfXc.js';
|
|
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
3
|
import { FlowBlock, Measure, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.js';
|
|
4
|
-
import { F as Footnote, w as HeaderFooter } from './content-
|
|
4
|
+
import { F as Footnote, w as HeaderFooter } from './content-BebvPfXc.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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { FlowBlock, Measure, LayoutOptions, FootnoteContent, Layout, Page, PageMargins, ImageRun } from './layout-engine/types.mjs';
|
|
4
|
-
import { F as Footnote, w as HeaderFooter } from './content-
|
|
4
|
+
import { F as Footnote, w as HeaderFooter } from './content-CbBCrsr0.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';
|
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-DVJyudKU.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-D3yI82iZ.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-D2-xDa2O.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, e as CommentRangeEnd, f as CommentRangeStart, g as Deletion, D as DocumentBody, E as Endnote, F as Footnote, H as Hyperlink, I as Image, h as Insertion, M as MoveFrom, i as MoveTo, P as Paragraph, j as ParagraphContent, k as Run, l as RunContent, S as SectionProperties, T as Table, m as TableCell, n as TableRow, o as TextContent, p as TrackedChangeInfo, q as TrackedRunChange } from './content-
|
|
61
|
+
export { B as BlockContent, C as Comment, e as CommentRangeEnd, f as CommentRangeStart, g as Deletion, D as DocumentBody, E as Endnote, F as Footnote, H as Hyperlink, I as Image, h as Insertion, M as MoveFrom, i as MoveTo, P as Paragraph, j as ParagraphContent, k as Run, l as RunContent, S as SectionProperties, T as Table, m as TableCell, n as TableRow, o as TextContent, p as TrackedChangeInfo, q as TrackedRunChange } from './content-CbBCrsr0.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-Com1GnZS.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-CzgskSoA.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-d-PpDlNV.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, e as CommentRangeEnd, f as CommentRangeStart, g as Deletion, D as DocumentBody, E as Endnote, F as Footnote, H as Hyperlink, I as Image, h as Insertion, M as MoveFrom, i as MoveTo, P as Paragraph, j as ParagraphContent, k as Run, l as RunContent, S as SectionProperties, T as Table, m as TableCell, n as TableRow, o as TextContent, p as TrackedChangeInfo, q as TrackedRunChange } from './content-
|
|
61
|
+
export { B as BlockContent, C as Comment, e as CommentRangeEnd, f as CommentRangeStart, g as Deletion, D as DocumentBody, E as Endnote, F as Footnote, H as Hyperlink, I as Image, h as Insertion, M as MoveFrom, i as MoveTo, P as Paragraph, j as ParagraphContent, k as Run, l as RunContent, S as SectionProperties, T as Table, m as TableCell, n as TableRow, o as TextContent, p as TrackedChangeInfo, q as TrackedRunChange } from './content-BebvPfXc.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'),chunkF44XU6G5_js=require('./chunk-F44XU6G5.js'),chunkGFM6PERG_js=require('./chunk-GFM6PERG.js'),chunkNXLJVVVE_js=require('./chunk-NXLJVVVE.js'),chunkRGHRXIIZ_js=require('./chunk-RGHRXIIZ.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'),chunkV3NE7Q22_js=require('./chunk-V3NE7Q22.js');require('./chunk-6KYOT4E7.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 chunkF44XU6G5_js.a}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkF44XU6G5_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkF44XU6G5_js.g}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkF44XU6G5_js.e}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkF44XU6G5_js.b}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkF44XU6G5_js.c}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkF44XU6G5_js.d}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkF44XU6G5_js.f}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkF44XU6G5_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 chunkRGHRXIIZ_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 chunkV3NE7Q22_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-XTPT4TNP.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-KSW6W2EK.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-C57BOE7B.mjs';import'./chunk-4QJEMD23.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';
|
|
@@ -9,24 +9,24 @@
|
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
export { ToFlowBlocksOptions, convertBorderSpecToLayout, resetBlockIdCounter, resolveListTemplate, toFlowBlocks } from './toFlowBlocks.mjs';
|
|
12
|
-
import { TableBlock,
|
|
12
|
+
import { TableBlock, FlowBlock, Fragment, Measure, Page, TableFragment, TableMeasure, ParagraphBlock, ParagraphMeasure, Layout, PageMargins, ColumnLayout } from '../layout-engine/types.mjs';
|
|
13
13
|
export { FontMetrics, FontStyle, MeasureParagraphOptions, RunMeasurement, TextMeasurement, buildFontString, clampFloatingWrapMargins, clearAllCaches, clearFontMetricsCache, clearParagraphMeasureCache, clearTextWidthCache, findCharacterAtX, getCachedFontMetrics, getCachedParagraphMeasure, getCachedTextWidth, getCanvasContext, getFontCacheSize, getFontMetrics, getParagraphCacheSize, getRunCharWidths, getTextCacheSize, getTotalCacheSize, getXForCharacter, halfPtToPx, hashParagraphBlock, measureParagraph, measureParagraphs, measureRun, measureText, measureTextWidth, ptToPx, pxToHalfPt, pxToPt, pxToTwips, resetCanvasContext, setCachedFontMetrics, setCachedParagraphMeasure, setCachedTextWidth, setFontCacheSize, setParagraphCacheSize, setTextCacheSize, twipsToPx } from './measuring/index.mjs';
|
|
14
14
|
export { F as FloatPageGeometry, a as FloatingExclusionRect, b as FloatingImageZone, c as FloatingLineSegmentZone, M as MeasureBlockFn, g as getFloatingMargins, m as measureBlocksWithFloats, r as rectsToFloatingZones } from '../measureBlocksPipeline-BMqbRFQB.mjs';
|
|
15
15
|
export { DomCaretPosition, DomSelectionRect, clickToPositionDom, clipRectToTableWindow, getCaretPositionFromDom, getSelectionRectsFromDom, clickToPositionDom as mouseToPosition } from './clickToPositionDom.mjs';
|
|
16
16
|
import { EditorState } from 'prosemirror-state';
|
|
17
|
-
export { C as ConvertFootnoteOptions, a as ConvertHeaderFooterOptions, F as FOOTNOTE_SEPARATOR_HEIGHT, H as HeaderFooterMetrics, M as MAX_FOOTNOTE_LAYOUT_PASSES, b as MeasureBlocksFn, S as StabilizeFootnoteLayoutArgs, c as StabilizeFootnoteLayoutResult, j as applyFootnotePresentation, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, k as calculateHeaderFooterVisualBounds, g as collectFootnoteRefs, l as computeHfCaretRectFromView, n as computeHfSelectionRectsFromView, o as contributesToHeaderFooterFlowHeight, p as convertFootnoteToContent, q as convertHeaderFooterPmDocToContent, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, r as invalidateHfDomCache, m as mapFootnotesToPages, t as normalizeHeaderFooterMeasureBlocks, u as resolveHeaderFooterVisualTop, s as stabilizeFootnoteLayout } from '../headerFooterLayout-
|
|
17
|
+
export { C as ConvertFootnoteOptions, a as ConvertHeaderFooterOptions, F as FOOTNOTE_SEPARATOR_HEIGHT, H as HeaderFooterMetrics, M as MAX_FOOTNOTE_LAYOUT_PASSES, b as MeasureBlocksFn, S as StabilizeFootnoteLayoutArgs, c as StabilizeFootnoteLayoutResult, j as applyFootnotePresentation, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, k as calculateHeaderFooterVisualBounds, g as collectFootnoteRefs, l as computeHfCaretRectFromView, n as computeHfSelectionRectsFromView, o as contributesToHeaderFooterFlowHeight, p as convertFootnoteToContent, q as convertHeaderFooterPmDocToContent, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, r as invalidateHfDomCache, m as mapFootnotesToPages, t as normalizeHeaderFooterMeasureBlocks, u as resolveHeaderFooterVisualTop, s as stabilizeFootnoteLayout } from '../headerFooterLayout-D2LZLkDC.mjs';
|
|
18
18
|
import { H as HeaderFooterContent } from '../footnotes-BZ24OTAT.mjs';
|
|
19
19
|
export { TABLE_INSERT_EDGE_PROXIMITY, TABLE_INSERT_HIDE_DELAY_MS, TableInsertHoverHit, TableInsertHoverInput, detectTableInsertHover } from './tableInsertHover.mjs';
|
|
20
20
|
import { SectionLayoutConfig } from '../layout-engine/index.mjs';
|
|
21
21
|
import { Document } from '../types/document.mjs';
|
|
22
|
-
import { S as SectionProperties, w as HeaderFooter } from '../content-
|
|
22
|
+
import { S as SectionProperties, w as HeaderFooter } from '../content-CbBCrsr0.mjs';
|
|
23
23
|
import 'prosemirror-model';
|
|
24
24
|
import '../styles-Dqec8Aw6.mjs';
|
|
25
25
|
import '../formatting-DFtuRFQY.mjs';
|
|
26
26
|
import '../colors-C3vA7HUU.mjs';
|
|
27
27
|
import '../lists-CyGxd5Y2.mjs';
|
|
28
28
|
import '../docx/wrapTypes.mjs';
|
|
29
|
-
import '../watermark-
|
|
29
|
+
import '../watermark-D90356ZM.mjs';
|
|
30
30
|
import '../anchoredObjectPosition-KJEyF-wr.mjs';
|
|
31
31
|
import 'prosemirror-view';
|
|
32
32
|
|
|
@@ -70,6 +70,68 @@ declare function countTableColumns(tableBlock: TableBlock): number;
|
|
|
70
70
|
* scale down totals that exceed the target — this helper only fills gaps.
|
|
71
71
|
*/
|
|
72
72
|
declare function normalizeTableColumnWidths(columnWidths: number[], colCount: number, targetWidth: number): number[];
|
|
73
|
+
/**
|
|
74
|
+
* Resolve a table's per-column pixel widths from its grid metadata and width
|
|
75
|
+
* budget — the width half of `measureTableBlock`, with NO cell-content
|
|
76
|
+
* measurement. Factored out so a caller that only needs widths (e.g. deciding
|
|
77
|
+
* whether a floating table is effectively full-width, before the main measure
|
|
78
|
+
* pass) doesn't have to measure every cell.
|
|
79
|
+
*
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
declare function resolveTableColumnWidths(tableBlock: TableBlock, contentWidth: number): number[];
|
|
83
|
+
/**
|
|
84
|
+
* Total pixel width of a table — sum of its resolved column widths, falling
|
|
85
|
+
* back to the explicit table width or the content-width budget. No cell-content
|
|
86
|
+
* measurement, so it is safe to call before the main measure pass. Mirrors the
|
|
87
|
+
* `totalWidth` that `measureTableBlock` produces.
|
|
88
|
+
*
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
declare function resolveTableTotalWidthPx(tableBlock: TableBlock, contentWidth: number): number;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Detect "block-like" floating tables.
|
|
95
|
+
*
|
|
96
|
+
* A DOCX table with `w:tblpPr` is a positioned ("floating") table — text wraps
|
|
97
|
+
* around it. But contract templates routinely make a full-width form table
|
|
98
|
+
* floating (often a paste artifact), leaving NO horizontal room for text on
|
|
99
|
+
* either side. Word and Google Docs treat such a table as a normal in-flow
|
|
100
|
+
* block: it paginates across pages and following content flows beneath it.
|
|
101
|
+
*
|
|
102
|
+
* Our floating path instead places the whole table as one fragment (no
|
|
103
|
+
* pagination — it overflows past the page) AND registers a text-wrap zone the
|
|
104
|
+
* height of the table, so the next paragraph's first line is pushed past the
|
|
105
|
+
* entire table and lands off-page. Demoting these tables to inline (see
|
|
106
|
+
* `computeLayout`) fixes both: they paginate via `layoutTable` and create no
|
|
107
|
+
* wrap zone.
|
|
108
|
+
*
|
|
109
|
+
* The predicate mirrors the geometry in `layoutFloatingTable` (the existing
|
|
110
|
+
* block-like cursor-advance) and `extractFloatingTableZone`; keep the three in
|
|
111
|
+
* sync. Narrow floating tables — where text genuinely wraps beside them — fall
|
|
112
|
+
* below the threshold and stay floating.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* True when a floating table is effectively full-width — it leaves less than
|
|
117
|
+
* {@link MIN_WRAP_SEGMENT_WIDTH} of usable text room on BOTH sides, so no text
|
|
118
|
+
* can wrap beside it. Returns false for non-floating tables and for narrow
|
|
119
|
+
* floats that leave real wrap room.
|
|
120
|
+
*
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
declare function isBlockLikeFloatingTable(block: TableBlock, contentWidth: number): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* In place, clear `floating` on every block-like floating table so the rest of
|
|
126
|
+
* the pipeline treats it as a normal inline table — it then paginates via
|
|
127
|
+
* `layoutTable` and registers no text-wrap zone. `blockWidths[i]` is the
|
|
128
|
+
* block's section content width (from `computePerBlockWidths`); `fallbackWidth`
|
|
129
|
+
* covers a missing entry. Demoted entries are replaced with shallow copies, so
|
|
130
|
+
* any cached source block the caller holds is left untouched.
|
|
131
|
+
*
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
declare function demoteBlockLikeFloatingTables(blocks: FlowBlock[], blockWidths: number[], fallbackWidth: number): void;
|
|
73
135
|
|
|
74
136
|
/**
|
|
75
137
|
* Hit Testing Utilities
|
|
@@ -595,4 +657,4 @@ declare function columnWidthForSection(config: SectionLayoutConfig): number;
|
|
|
595
657
|
*/
|
|
596
658
|
declare function computePerBlockWidths(blocks: FlowBlock[], initialConfig: SectionLayoutConfig, finalConfig: SectionLayoutConfig): number[];
|
|
597
659
|
|
|
598
|
-
export { type CaretPosition, DEFAULT_BODY_MARGIN_PX, DEFAULT_HF_DISTANCE_PX, DEFAULT_PAGE_HEIGHT_PX, DEFAULT_PAGE_WIDTH_PX, type ExtendMarginsForHeaderFooterInput, type ExtendMarginsForHeaderFooterResult, type FragmentHit, type HitTestResult, type PageHit, type Point, type PositionResult, type ResolvedGridCell, type SelectionRect, type TableCellHit, applyCellSelectionHighlight, clickToPosition, clickToPositionInParagraph, clickToPositionInTableCell, columnWidthForSection, computePerBlockWidths, countTableColumns, extendMarginsForHeaderFooter, findBodyEmptyRuns, findBodyPmAnchor, findBodyPmAnchors, findBodyPmSpans, getCaretPosition, getColumns, getMargins, getPageBounds, getPageIndexAtY, getPageSize, getPageTop, getPositionRect, getScrollYForPage, getTotalDocumentHeight, groupRectsByPage, hitTest, hitTestFragment, hitTestImageFragment, hitTestPage, hitTestTableCell, isMultiPageSelection, measureTableBlock, measureTableCellBlockVisualHeight, normalizeTableColumnWidths, positionToX, resolveCellGrid, resolveHeaderFooter, resolveTableWidthPx, selectionToRects, twipsToPixels };
|
|
660
|
+
export { type CaretPosition, DEFAULT_BODY_MARGIN_PX, DEFAULT_HF_DISTANCE_PX, DEFAULT_PAGE_HEIGHT_PX, DEFAULT_PAGE_WIDTH_PX, type ExtendMarginsForHeaderFooterInput, type ExtendMarginsForHeaderFooterResult, type FragmentHit, type HitTestResult, type PageHit, type Point, type PositionResult, type ResolvedGridCell, type SelectionRect, type TableCellHit, applyCellSelectionHighlight, clickToPosition, clickToPositionInParagraph, clickToPositionInTableCell, columnWidthForSection, computePerBlockWidths, countTableColumns, demoteBlockLikeFloatingTables, extendMarginsForHeaderFooter, findBodyEmptyRuns, findBodyPmAnchor, findBodyPmAnchors, findBodyPmSpans, getCaretPosition, getColumns, getMargins, getPageBounds, getPageIndexAtY, getPageSize, getPageTop, getPositionRect, getScrollYForPage, getTotalDocumentHeight, groupRectsByPage, hitTest, hitTestFragment, hitTestImageFragment, hitTestPage, hitTestTableCell, isBlockLikeFloatingTable, isMultiPageSelection, measureTableBlock, measureTableCellBlockVisualHeight, normalizeTableColumnWidths, positionToX, resolveCellGrid, resolveHeaderFooter, resolveTableColumnWidths, resolveTableTotalWidthPx, resolveTableWidthPx, selectionToRects, twipsToPixels };
|