@eigenpal/docx-editor-core 1.3.3 → 1.5.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 +7 -6
- package/dist/agent/index.d.ts +7 -6
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-2LVK7EF5.mjs +2 -0
- package/dist/chunk-3HENAL6V.mjs +2 -0
- package/dist/{chunk-BUEMXRXH.js → chunk-3SJQRYO7.js} +1 -1
- package/dist/chunk-4JPHW7ZI.js +2 -0
- package/dist/chunk-4RQAAKQI.mjs +1 -0
- package/dist/{chunk-OF373DBR.mjs → chunk-5HA66FH4.mjs} +1 -1
- package/dist/chunk-5WINQXA3.js +1 -0
- package/dist/{chunk-3QPKTG2Y.js → chunk-6KM4VW4L.js} +2 -2
- package/dist/chunk-AA6D2C6R.js +4 -0
- package/dist/{chunk-7CZEZ3UL.mjs → chunk-AMJNIGO2.mjs} +1 -1
- package/dist/chunk-BTSL4AYY.js +1 -0
- package/dist/{chunk-GE2GV2AX.mjs → chunk-CBKJOPOW.mjs} +1 -1
- package/dist/chunk-CDBKFBC2.mjs +15 -0
- package/dist/chunk-COV4LHQ7.js +1 -0
- package/dist/chunk-DZ3FN3JI.js +2 -0
- package/dist/chunk-ENIWJBS7.mjs +2 -0
- package/dist/{chunk-55XWETY4.mjs → chunk-EZNVVB63.mjs} +1 -1
- package/dist/{chunk-CHN26LLL.mjs → chunk-F24WZXN4.mjs} +1 -1
- package/dist/{chunk-LIW3H4WB.js → chunk-GB7RICH6.js} +1 -1
- package/dist/{chunk-CZSAC65M.js → chunk-GFM6PERG.js} +1 -1
- package/dist/chunk-GKAXYZCE.mjs +1 -0
- package/dist/chunk-H57LNDBH.js +1 -0
- package/dist/chunk-IGYHDSM7.mjs +1 -0
- package/dist/{chunk-BH3ACQ3M.js → chunk-JQUIUKRO.js} +3 -3
- package/dist/chunk-L6ZRNW7Y.mjs +1 -0
- package/dist/{chunk-Q4IEATDJ.js → chunk-LJ2TB6CY.js} +1 -1
- package/dist/{chunk-DFUWJHKF.mjs → chunk-M3UL6EUU.mjs} +3 -3
- package/dist/chunk-M7KTKPGO.mjs +1 -0
- package/dist/chunk-MA3HLGFO.js +1 -0
- package/dist/chunk-ND33YQGU.js +1 -0
- package/dist/{chunk-KXVCCT2A.js → chunk-NPFFCPZ6.js} +1 -1
- package/dist/chunk-NTBZRITU.mjs +1 -0
- package/dist/{chunk-SCK6ZM5V.js → chunk-O2643IUW.js} +1 -1
- package/dist/chunk-P7HWOJC5.js +2 -0
- package/dist/{chunk-YNUPP7UG.mjs → chunk-PYDX4MOT.mjs} +2 -2
- package/dist/{chunk-CHTIWTHQ.mjs → chunk-QUM4DFRE.mjs} +1 -1
- package/dist/chunk-QVRMX2AC.js +15 -0
- package/dist/chunk-QXSDGNJ4.js +1 -0
- package/dist/{chunk-FYRJTDC4.mjs → chunk-QZPVZY6S.mjs} +1 -1
- package/dist/chunk-RT52EYG3.mjs +4 -0
- package/dist/chunk-SHYNWAW6.mjs +1 -0
- package/dist/chunk-SKBHY5MK.mjs +1 -0
- package/dist/chunk-SNTAAXXA.mjs +1 -0
- package/dist/chunk-T4O4PFJD.mjs +1 -0
- package/dist/chunk-TAQTZAVZ.js +1 -0
- package/dist/{chunk-2SGJZYQF.js → chunk-TDYWEVAE.js} +1 -1
- package/dist/{chunk-OPSOGVSU.js → chunk-TV6JLFY5.js} +1 -1
- package/dist/chunk-UKMKGIME.js +1 -0
- package/dist/chunk-UXPY65AC.js +1 -0
- package/dist/chunk-VDKSZ5BQ.mjs +1 -0
- package/dist/chunk-VJFIAFZ5.mjs +1 -0
- package/dist/chunk-WQRWRWSK.js +1 -0
- package/dist/chunk-WWVIVYX6.mjs +1 -0
- package/dist/chunk-WXSGCEBZ.js +1 -0
- package/dist/{chunk-C52D36FA.mjs → chunk-WYFK4QOF.mjs} +1 -1
- package/dist/chunk-X6AICTHN.js +1 -0
- package/dist/chunk-YHXVNJK5.mjs +1 -0
- package/dist/{chunk-J3YFJDZD.js → chunk-ZETEPB7I.js} +1 -1
- package/dist/{colorResolver-8A-qj-LP.d.ts → colorResolver-C696sd9x.d.ts} +1 -1
- package/dist/{colorResolver-BCvxTlLF.d.mts → colorResolver-DCBfI4ld.d.mts} +1 -1
- package/dist/{content-3xF4WDE8.d.mts → content-BlWiORm-.d.mts} +3 -147
- package/dist/{content-C8fc_tL6.d.ts → content-eG_Rtl0l.d.ts} +3 -147
- package/dist/{contentControlValues-DGDKD589.d.ts → contentControlValues-CO7pUqOf.d.ts} +1 -1
- package/dist/{contentControlValues-DjWvoJQ-.d.mts → contentControlValues-DfYN9BZ8.d.mts} +1 -1
- package/dist/core-plugins.d.mts +4 -3
- package/dist/core-plugins.d.ts +4 -3
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +11 -10
- package/dist/core.d.ts +11 -10
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentStyles-qR0VR2s0.d.mts → documentStyles-1G0xTl1v.d.mts} +1 -1
- package/dist/{documentStyles-C7k_8Sye.d.ts → documentStyles-Bw98BwEy.d.ts} +1 -1
- package/dist/docx/index.d.mts +7 -67
- package/dist/docx/index.d.ts +7 -67
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +4 -3
- package/dist/docx/parser.d.ts +4 -3
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +4 -3
- package/dist/docx/rezip.d.ts +4 -3
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +5 -4
- package/dist/docx/serializer/index.d.ts +5 -4
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/editor/index.d.mts +4 -3
- package/dist/editor/index.d.ts +4 -3
- package/dist/editor/index.js +1 -1
- package/dist/editor/index.mjs +1 -1
- package/dist/{fontLoader-CUS1BPv7.d.mts → fontLoader-3MFD_Hj2.d.mts} +48 -5
- package/dist/{fontLoader-Dl9SEKex.d.ts → fontLoader-C6VvBUVB.d.ts} +48 -5
- package/dist/{formatting-BH4hcZiq.d.mts → formatting-DFtuRFQY.d.mts} +13 -0
- package/dist/{formatting-_OXU8gLB.d.ts → formatting-JhqWT_XM.d.ts} +13 -0
- package/dist/{headerFooterLayout-CU6hvszp.d.mts → headerFooterLayout-DJb-dV7X.d.mts} +2 -2
- package/dist/{headerFooterLayout-AtAOhM8E.d.ts → headerFooterLayout-bdHWlU6g.d.ts} +2 -2
- package/dist/headless.d.mts +9 -8
- package/dist/headless.d.ts +9 -8
- 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 +5 -4
- package/dist/layout-bridge/index.d.ts +5 -4
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +3 -2
- package/dist/layout-bridge/measuring/index.d.ts +3 -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 +4 -3
- package/dist/layout-bridge/toFlowBlocks.d.ts +4 -3
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +4 -3
- package/dist/layout-engine/index.d.ts +4 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +21 -9
- package/dist/layout-engine/types.d.ts +21 -9
- package/dist/layout-painter/index.d.mts +5 -4
- package/dist/layout-painter/index.d.ts +5 -4
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +5 -4
- package/dist/layout-painter/renderPage.d.ts +5 -4
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/lists-Bn29SzeS.d.ts +148 -0
- package/dist/lists-CyGxd5Y2.d.mts +148 -0
- package/dist/managers/AutoSaveManager.d.mts +4 -3
- package/dist/managers/AutoSaveManager.d.ts +4 -3
- package/dist/managers/TableSelectionManager.d.mts +4 -3
- package/dist/managers/TableSelectionManager.d.ts +4 -3
- package/dist/managers/types.d.mts +4 -3
- package/dist/managers/types.d.ts +4 -3
- package/dist/{marks-BY573yZn.d.mts → marks-CzrbFi4o.d.mts} +1 -1
- package/dist/{marks-CjC9tF5k.d.ts → marks-Dq1QsxKA.d.ts} +1 -1
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.d.mts +4 -3
- package/dist/mcp.d.ts +4 -3
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +7 -7
- package/dist/{nodes-75Q9GBxV.d.ts → nodes-BJef4KFW.d.ts} +17 -2
- package/dist/{nodes-cEI7hVY2.d.mts → nodes-RfTS-NSv.d.mts} +17 -2
- package/dist/numberingParser-ZSQ3SDCV.d.ts +81 -0
- package/dist/numberingParser-nSPZlzKr.d.mts +81 -0
- package/dist/prosemirror/applyFormatting.d.mts +5 -2
- package/dist/prosemirror/applyFormatting.d.ts +5 -2
- package/dist/prosemirror/applyFormatting.js +1 -1
- package/dist/prosemirror/applyFormatting.mjs +1 -1
- package/dist/prosemirror/cellDragSelection.d.mts +46 -0
- package/dist/prosemirror/cellDragSelection.d.ts +46 -0
- package/dist/prosemirror/cellDragSelection.js +1 -0
- package/dist/prosemirror/cellDragSelection.mjs +1 -0
- package/dist/prosemirror/commands/formatting.d.mts +2 -2
- package/dist/prosemirror/commands/formatting.d.ts +2 -2
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +32 -3
- package/dist/prosemirror/commands/index.d.ts +32 -3
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.d.mts +11 -1
- package/dist/prosemirror/commands/paragraph.d.ts +11 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/commentIdAllocator.d.mts +3 -2
- package/dist/prosemirror/commentIdAllocator.d.ts +3 -2
- package/dist/prosemirror/commentOps.d.mts +3 -2
- package/dist/prosemirror/commentOps.d.ts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +4 -3
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +4 -3
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +4 -3
- package/dist/prosemirror/conversion/index.d.ts +4 -3
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +13 -0
- package/dist/prosemirror/extensions/index.d.mts +1 -1
- package/dist/prosemirror/extensions/index.d.ts +1 -1
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -1
- package/dist/prosemirror/imageCommit.d.mts +18 -1
- package/dist/prosemirror/imageCommit.d.ts +18 -1
- package/dist/prosemirror/imageCommit.js +1 -1
- package/dist/prosemirror/imageCommit.mjs +1 -1
- package/dist/prosemirror/index.d.mts +20 -10
- package/dist/prosemirror/index.d.ts +20 -10
- package/dist/prosemirror/index.js +3 -3
- package/dist/prosemirror/index.mjs +3 -3
- package/dist/prosemirror/plugins/index.d.mts +5 -4
- package/dist/prosemirror/plugins/index.d.ts +5 -4
- package/dist/prosemirror/plugins/index.js +1 -1
- package/dist/prosemirror/plugins/index.mjs +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
- package/dist/prosemirror/queries.d.mts +45 -3
- package/dist/prosemirror/queries.d.ts +45 -3
- package/dist/prosemirror/queries.js +2 -2
- package/dist/prosemirror/queries.mjs +2 -2
- package/dist/prosemirror/schema/index.d.mts +5 -4
- package/dist/prosemirror/schema/index.d.ts +5 -4
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +2 -2
- package/dist/prosemirror/styles/index.d.ts +2 -2
- package/dist/prosemirror/tableResize.js +1 -1
- package/dist/prosemirror/tableResize.mjs +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +3 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +3 -2
- package/dist/prosemirror/utils/extractTrackedChanges.js +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -1
- package/dist/{sectionPropertiesSerializer-D86QlzlT.d.mts → sectionPropertiesSerializer-C8XCmzE4.d.mts} +1 -1
- package/dist/{sectionPropertiesSerializer-uXyGONxu.d.ts → sectionPropertiesSerializer-S8J1V9mb.d.ts} +1 -1
- package/dist/{selectionContext-BPAqgNgk.d.ts → selectionContext-BJZZW1JA.d.ts} +1 -1
- package/dist/{selectionContext-CoZat7QZ.d.mts → selectionContext-BjMyVQZO.d.mts} +1 -1
- package/dist/{styles-BOJ93SAm.d.mts → styles-Dqec8Aw6.d.mts} +1 -1
- package/dist/{styles-BWqX2AS-.d.ts → styles-gEujs7j6.d.ts} +1 -1
- package/dist/types/agentApi.d.mts +1 -1
- package/dist/types/agentApi.d.ts +1 -1
- package/dist/types/content.d.mts +3 -2
- package/dist/types/content.d.ts +3 -2
- package/dist/types/document.d.mts +7 -5
- package/dist/types/document.d.ts +7 -5
- package/dist/utils/comments.d.mts +3 -2
- package/dist/utils/comments.d.ts +3 -2
- package/dist/utils/index.d.mts +6 -5
- package/dist/utils/index.d.ts +6 -5
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.mjs +3 -3
- package/dist/{variableDetector-CaY-sDau.d.mts → variableDetector-CN9_pUR_.d.mts} +1 -1
- package/dist/{variableDetector-1mxzPfs2.d.ts → variableDetector-o4Rb2Csy.d.ts} +1 -1
- package/package.json +9 -1
- package/dist/chunk-2WGTGBBS.js +0 -2
- package/dist/chunk-3G44SFHX.mjs +0 -4
- package/dist/chunk-4MYKVWNF.js +0 -1
- package/dist/chunk-7KMTWDPE.mjs +0 -1
- package/dist/chunk-7LRR7RKE.mjs +0 -15
- package/dist/chunk-CRMZH7U7.mjs +0 -2
- package/dist/chunk-D3PRIF3Y.mjs +0 -1
- package/dist/chunk-ESCPS4AO.mjs +0 -1
- package/dist/chunk-EUZLYQRB.mjs +0 -1
- package/dist/chunk-EV4LVK4X.js +0 -1
- package/dist/chunk-FW23IMBF.mjs +0 -1
- package/dist/chunk-HKN2NKOG.mjs +0 -1
- package/dist/chunk-INDYZOOS.js +0 -1
- package/dist/chunk-IUJCUITW.mjs +0 -1
- package/dist/chunk-IYKBX24M.js +0 -1
- package/dist/chunk-JHTURDPX.mjs +0 -1
- package/dist/chunk-L5NPEM7C.js +0 -1
- package/dist/chunk-LERLET2D.js +0 -4
- package/dist/chunk-LX35TFGF.mjs +0 -1
- package/dist/chunk-MNOHUTKE.js +0 -15
- package/dist/chunk-NAFMAKLK.js +0 -2
- package/dist/chunk-OTHV7YV2.js +0 -2
- package/dist/chunk-QAJSNLJR.mjs +0 -1
- package/dist/chunk-RSU4HTC6.js +0 -1
- package/dist/chunk-TUIEV7Q7.js +0 -1
- package/dist/chunk-U67MWOPZ.mjs +0 -1
- package/dist/chunk-UE2ZKRYB.mjs +0 -2
- package/dist/chunk-WVERBZZU.js +0 -1
- package/dist/chunk-WWNOXNEX.mjs +0 -2
- package/dist/chunk-XLB6AC5Q.js +0 -1
- package/dist/chunk-YPQACU4A.js +0 -1
- package/dist/chunk-YWM2QH36.js +0 -1
- package/dist/chunk-ZX26QZJ5.mjs +0 -1
|
@@ -1,153 +1,9 @@
|
|
|
1
|
-
import { P as ParagraphFormatting, T as TextFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-
|
|
1
|
+
import { P as ParagraphFormatting, T as TextFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-DFtuRFQY.mjs';
|
|
2
2
|
import { WrapType } from './docx/wrapTypes.mjs';
|
|
3
3
|
import { B as BorderSpec, C as ColorValue, T as ThemeColorSlot } from './colors-C3vA7HUU.mjs';
|
|
4
|
+
import { N as NumberFormat, c as ListRendering } from './lists-CyGxd5Y2.mjs';
|
|
4
5
|
import { W as Watermark } from './watermark-DAcnAs_J.mjs';
|
|
5
6
|
|
|
6
|
-
/**
|
|
7
|
-
* Lists & Numbering Types
|
|
8
|
-
*
|
|
9
|
-
* Types for bullet lists, numbered lists, and numbering definitions.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Number format type
|
|
14
|
-
*/
|
|
15
|
-
type NumberFormat = 'decimal' | 'upperRoman' | 'lowerRoman' | 'upperLetter' | 'lowerLetter' | 'ordinal' | 'cardinalText' | 'ordinalText' | 'hex' | 'chicago' | 'ideographDigital' | 'japaneseCounting' | 'aiueo' | 'iroha' | 'decimalFullWidth' | 'decimalHalfWidth' | 'japaneseLegal' | 'japaneseDigitalTenThousand' | 'decimalEnclosedCircle' | 'decimalFullWidth2' | 'aiueoFullWidth' | 'irohaFullWidth' | 'decimalZero' | 'bullet' | 'ganada' | 'chosung' | 'decimalEnclosedFullstop' | 'decimalEnclosedParen' | 'decimalEnclosedCircleChinese' | 'ideographEnclosedCircle' | 'ideographTraditional' | 'ideographZodiac' | 'ideographZodiacTraditional' | 'taiwaneseCounting' | 'ideographLegalTraditional' | 'taiwaneseCountingThousand' | 'taiwaneseDigital' | 'chineseCounting' | 'chineseLegalSimplified' | 'chineseCountingThousand' | 'koreanDigital' | 'koreanCounting' | 'koreanLegal' | 'koreanDigital2' | 'vietnameseCounting' | 'russianLower' | 'russianUpper' | 'none' | 'numberInDash' | 'hebrew1' | 'hebrew2' | 'arabicAlpha' | 'arabicAbjad' | 'hindiVowels' | 'hindiConsonants' | 'hindiNumbers' | 'hindiCounting' | 'thaiLetters' | 'thaiNumbers' | 'thaiCounting';
|
|
16
|
-
/**
|
|
17
|
-
* Multi-level suffix (what follows the number)
|
|
18
|
-
*/
|
|
19
|
-
type LevelSuffix = 'tab' | 'space' | 'nothing';
|
|
20
|
-
/**
|
|
21
|
-
* One indentation level of an abstract numbering definition (`w:lvl`).
|
|
22
|
-
* Carries the number format, the marker template (`lvlText` — e.g.
|
|
23
|
-
* `"%1.%2."`), the level's paragraph properties (indent, hanging) and
|
|
24
|
-
* character properties (font, size, color for the marker itself).
|
|
25
|
-
*
|
|
26
|
-
* `ilvl` ranges 0-8 in standard Word documents.
|
|
27
|
-
*/
|
|
28
|
-
interface ListLevel {
|
|
29
|
-
/** Level index (0-8) */
|
|
30
|
-
ilvl: number;
|
|
31
|
-
/** Starting number */
|
|
32
|
-
start?: number;
|
|
33
|
-
/** Number format */
|
|
34
|
-
numFmt: NumberFormat;
|
|
35
|
-
/** Level text (e.g., "%1." or "•") */
|
|
36
|
-
lvlText: string;
|
|
37
|
-
/** Justification */
|
|
38
|
-
lvlJc?: 'left' | 'center' | 'right';
|
|
39
|
-
/** Suffix after number */
|
|
40
|
-
suffix?: LevelSuffix;
|
|
41
|
-
/** Paragraph properties for this level */
|
|
42
|
-
pPr?: ParagraphFormatting;
|
|
43
|
-
/** Run properties for the number/bullet */
|
|
44
|
-
rPr?: TextFormatting;
|
|
45
|
-
/** Restart numbering from higher level */
|
|
46
|
-
lvlRestart?: number;
|
|
47
|
-
/** Is legal numbering style */
|
|
48
|
-
isLgl?: boolean;
|
|
49
|
-
/** Legacy settings */
|
|
50
|
-
legacy?: {
|
|
51
|
-
legacy?: boolean;
|
|
52
|
-
legacySpace?: number;
|
|
53
|
-
legacyIndent?: number;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Abstract numbering definition (`w:abstractNum`) — the reusable template
|
|
58
|
-
* for a list: which `NumberFormat` at each indentation level, what
|
|
59
|
-
* marker text, what paragraph/character formatting. Multiple
|
|
60
|
-
* `NumberingInstance`s (`w:num`) can reference one abstract numbering
|
|
61
|
-
* to share the template while keeping independent counters.
|
|
62
|
-
*
|
|
63
|
-
* See ECMA-376 §17.9.
|
|
64
|
-
*/
|
|
65
|
-
interface AbstractNumbering {
|
|
66
|
-
/** Abstract numbering ID */
|
|
67
|
-
abstractNumId: number;
|
|
68
|
-
/** Multi-level type */
|
|
69
|
-
multiLevelType?: 'hybridMultilevel' | 'multilevel' | 'singleLevel';
|
|
70
|
-
/** Numbering style link */
|
|
71
|
-
numStyleLink?: string;
|
|
72
|
-
/** Style link */
|
|
73
|
-
styleLink?: string;
|
|
74
|
-
/** Level definitions */
|
|
75
|
-
levels: ListLevel[];
|
|
76
|
-
/** Name */
|
|
77
|
-
name?: string;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Numbering instance (w:num)
|
|
81
|
-
*/
|
|
82
|
-
interface NumberingInstance {
|
|
83
|
-
/** Numbering ID (referenced by paragraphs) */
|
|
84
|
-
numId: number;
|
|
85
|
-
/** Reference to abstract numbering */
|
|
86
|
-
abstractNumId: number;
|
|
87
|
-
/** Level overrides */
|
|
88
|
-
levelOverrides?: Array<{
|
|
89
|
-
ilvl: number;
|
|
90
|
-
startOverride?: number;
|
|
91
|
-
lvl?: ListLevel;
|
|
92
|
-
}>;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Computed list marker for one paragraph — what the layout engine and
|
|
96
|
-
* painter need to render the "1.", "a)", "•" prefix. Not part of the
|
|
97
|
-
* wire format; the parser fills this from the `numbering.xml` chain plus
|
|
98
|
-
* the paragraph's `numPr`. Paragraphs without list rendering omit it.
|
|
99
|
-
*/
|
|
100
|
-
interface ListRendering {
|
|
101
|
-
/** Computed marker text (e.g., "1.", "a)", "•") */
|
|
102
|
-
marker: string;
|
|
103
|
-
/** List level (0-8) */
|
|
104
|
-
level: number;
|
|
105
|
-
/** Numbering ID */
|
|
106
|
-
numId: number;
|
|
107
|
-
/** Whether this is a bullet or numbered list */
|
|
108
|
-
isBullet: boolean;
|
|
109
|
-
/** Number format type (decimal, lowerRoman, upperRoman, etc.) */
|
|
110
|
-
numFmt?: NumberFormat;
|
|
111
|
-
/** Whether the list marker is hidden (w:vanish on level rPr) */
|
|
112
|
-
markerHidden?: boolean;
|
|
113
|
-
/** Marker font family from numbering level rPr (ascii name) */
|
|
114
|
-
markerFontFamily?: string;
|
|
115
|
-
/** Marker font size from numbering level rPr, in points */
|
|
116
|
-
markerFontSize?: number;
|
|
117
|
-
/**
|
|
118
|
-
* Suffix character placed after the marker before body text (§17.9.25).
|
|
119
|
-
* Default is `tab`; `space` inserts a single space; `nothing` no gap.
|
|
120
|
-
* Drives marker-slot sizing in `getListMarkerInlineWidth`.
|
|
121
|
-
*/
|
|
122
|
-
markerSuffix?: LevelSuffix;
|
|
123
|
-
/**
|
|
124
|
-
* NumberFormat for each level from 0..ilvl (inclusive).
|
|
125
|
-
* Used to resolve multi-level templates like "%1.%2." where each %N
|
|
126
|
-
* may need a different format (e.g., upperRoman parent + decimal child).
|
|
127
|
-
*/
|
|
128
|
-
levelNumFmts?: NumberFormat[];
|
|
129
|
-
/** abstractNumId the paragraph's numId points to (counters key on this). */
|
|
130
|
-
abstractNumId?: number;
|
|
131
|
-
/**
|
|
132
|
-
* Start value from the numId's lvlOverride for the paragraph's ilvl, if any.
|
|
133
|
-
* Per ECMA-376 §17.9.18, this resets the shared abstractNum counter the
|
|
134
|
-
* first time the numId appears.
|
|
135
|
-
*/
|
|
136
|
-
startOverride?: number;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Top-level numbering data from `numbering.xml` — the set of abstract
|
|
140
|
-
* templates and the per-document `NumberingInstance`s that reference
|
|
141
|
-
* them. Paragraphs reference a `numId` (instance), not an
|
|
142
|
-
* `abstractNumId` directly.
|
|
143
|
-
*/
|
|
144
|
-
interface NumberingDefinitions {
|
|
145
|
-
/** Abstract numbering definitions */
|
|
146
|
-
abstractNums: AbstractNumbering[];
|
|
147
|
-
/** Numbering instances */
|
|
148
|
-
nums: NumberingInstance[];
|
|
149
|
-
}
|
|
150
|
-
|
|
151
7
|
/**
|
|
152
8
|
* Hyperlinks (`w:hyperlink`), bookmark markers (`w:bookmarkStart`/`End`),
|
|
153
9
|
* and field types (`w:fldSimple`, complex `w:fldChar` runs).
|
|
@@ -1459,4 +1315,4 @@ interface Run {
|
|
|
1459
1315
|
content: RunContent[];
|
|
1460
1316
|
}
|
|
1461
1317
|
|
|
1462
|
-
export type {
|
|
1318
|
+
export type { ImageSize as $, ComplexField as A, BlockContent as B, Comment as C, DocumentBody as D, Endnote as E, Footnote as F, DrawingContent as G, Hyperlink as H, Image as I, EndnotePosition as J, EndnoteProperties as K, Field as L, MoveFrom as M, FieldCharContent as N, FieldType as O, Paragraph as P, FooterReference as Q, RevisionInfo as R, SectionProperties as S, Table as T, FootnotePosition as U, FootnoteProperties as V, HeaderFooterType as W, HeaderReference as X, ImageCrop as Y, ImagePadding as Z, ImagePosition as _, ParagraphPropertyChange as a, ImageTransform as a0, ImageWrap as a1, InlineSdt as a2, InstrTextContent as a3, LineNumberRestart as a4, MathEquation as a5, MoveFromRangeEnd as a6, MoveFromRangeStart as a7, MoveToRangeEnd as a8, MoveToRangeStart as a9, NoBreakHyphenContent as aa, NoteNumberRestart as ab, NoteRefMarkContent as ac, NoteReferenceContent as ad, PageOrientation as ae, PropertyChangeInfo as af, RunPropertyChange as ag, Section as ah, SectionStart as ai, SeparatorContent as aj, Shape as ak, ShapeContent as al, ShapeFill as am, ShapeOutline as an, ShapeTextBody as ao, ShapeType as ap, SimpleField as aq, SoftHyphenContent as ar, SymbolContent as as, TabContent as at, TableStructuralChangeInfo as au, TextBox as av, VerticalAlign as aw, CellMarker as ax, TablePropertyChange as b, TableCellPropertyChange as c, TableRowPropertyChange as d, CommentRangeEnd as e, CommentRangeStart as f, Deletion as g, Insertion as h, MoveTo as i, ParagraphContent as j, Run as k, RunContent as l, TableCell as m, TableRow as n, TextContent as o, TrackedChangeInfo as p, TrackedRunChange as q, SdtType as r, SdtProperties as s, SdtDataBinding as t, BlockSdt as u, BreakContent as v, HeaderFooter as w, BookmarkEnd as x, BookmarkStart as y, Column as z };
|
|
@@ -1,153 +1,9 @@
|
|
|
1
|
-
import { P as ParagraphFormatting, T as TextFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-
|
|
1
|
+
import { P as ParagraphFormatting, T as TextFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-JhqWT_XM.js';
|
|
2
2
|
import { WrapType } from './docx/wrapTypes.js';
|
|
3
3
|
import { B as BorderSpec, C as ColorValue, T as ThemeColorSlot } from './colors-C3vA7HUU.js';
|
|
4
|
+
import { N as NumberFormat, c as ListRendering } from './lists-Bn29SzeS.js';
|
|
4
5
|
import { W as Watermark } from './watermark-DAcnAs_J.js';
|
|
5
6
|
|
|
6
|
-
/**
|
|
7
|
-
* Lists & Numbering Types
|
|
8
|
-
*
|
|
9
|
-
* Types for bullet lists, numbered lists, and numbering definitions.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Number format type
|
|
14
|
-
*/
|
|
15
|
-
type NumberFormat = 'decimal' | 'upperRoman' | 'lowerRoman' | 'upperLetter' | 'lowerLetter' | 'ordinal' | 'cardinalText' | 'ordinalText' | 'hex' | 'chicago' | 'ideographDigital' | 'japaneseCounting' | 'aiueo' | 'iroha' | 'decimalFullWidth' | 'decimalHalfWidth' | 'japaneseLegal' | 'japaneseDigitalTenThousand' | 'decimalEnclosedCircle' | 'decimalFullWidth2' | 'aiueoFullWidth' | 'irohaFullWidth' | 'decimalZero' | 'bullet' | 'ganada' | 'chosung' | 'decimalEnclosedFullstop' | 'decimalEnclosedParen' | 'decimalEnclosedCircleChinese' | 'ideographEnclosedCircle' | 'ideographTraditional' | 'ideographZodiac' | 'ideographZodiacTraditional' | 'taiwaneseCounting' | 'ideographLegalTraditional' | 'taiwaneseCountingThousand' | 'taiwaneseDigital' | 'chineseCounting' | 'chineseLegalSimplified' | 'chineseCountingThousand' | 'koreanDigital' | 'koreanCounting' | 'koreanLegal' | 'koreanDigital2' | 'vietnameseCounting' | 'russianLower' | 'russianUpper' | 'none' | 'numberInDash' | 'hebrew1' | 'hebrew2' | 'arabicAlpha' | 'arabicAbjad' | 'hindiVowels' | 'hindiConsonants' | 'hindiNumbers' | 'hindiCounting' | 'thaiLetters' | 'thaiNumbers' | 'thaiCounting';
|
|
16
|
-
/**
|
|
17
|
-
* Multi-level suffix (what follows the number)
|
|
18
|
-
*/
|
|
19
|
-
type LevelSuffix = 'tab' | 'space' | 'nothing';
|
|
20
|
-
/**
|
|
21
|
-
* One indentation level of an abstract numbering definition (`w:lvl`).
|
|
22
|
-
* Carries the number format, the marker template (`lvlText` — e.g.
|
|
23
|
-
* `"%1.%2."`), the level's paragraph properties (indent, hanging) and
|
|
24
|
-
* character properties (font, size, color for the marker itself).
|
|
25
|
-
*
|
|
26
|
-
* `ilvl` ranges 0-8 in standard Word documents.
|
|
27
|
-
*/
|
|
28
|
-
interface ListLevel {
|
|
29
|
-
/** Level index (0-8) */
|
|
30
|
-
ilvl: number;
|
|
31
|
-
/** Starting number */
|
|
32
|
-
start?: number;
|
|
33
|
-
/** Number format */
|
|
34
|
-
numFmt: NumberFormat;
|
|
35
|
-
/** Level text (e.g., "%1." or "•") */
|
|
36
|
-
lvlText: string;
|
|
37
|
-
/** Justification */
|
|
38
|
-
lvlJc?: 'left' | 'center' | 'right';
|
|
39
|
-
/** Suffix after number */
|
|
40
|
-
suffix?: LevelSuffix;
|
|
41
|
-
/** Paragraph properties for this level */
|
|
42
|
-
pPr?: ParagraphFormatting;
|
|
43
|
-
/** Run properties for the number/bullet */
|
|
44
|
-
rPr?: TextFormatting;
|
|
45
|
-
/** Restart numbering from higher level */
|
|
46
|
-
lvlRestart?: number;
|
|
47
|
-
/** Is legal numbering style */
|
|
48
|
-
isLgl?: boolean;
|
|
49
|
-
/** Legacy settings */
|
|
50
|
-
legacy?: {
|
|
51
|
-
legacy?: boolean;
|
|
52
|
-
legacySpace?: number;
|
|
53
|
-
legacyIndent?: number;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Abstract numbering definition (`w:abstractNum`) — the reusable template
|
|
58
|
-
* for a list: which `NumberFormat` at each indentation level, what
|
|
59
|
-
* marker text, what paragraph/character formatting. Multiple
|
|
60
|
-
* `NumberingInstance`s (`w:num`) can reference one abstract numbering
|
|
61
|
-
* to share the template while keeping independent counters.
|
|
62
|
-
*
|
|
63
|
-
* See ECMA-376 §17.9.
|
|
64
|
-
*/
|
|
65
|
-
interface AbstractNumbering {
|
|
66
|
-
/** Abstract numbering ID */
|
|
67
|
-
abstractNumId: number;
|
|
68
|
-
/** Multi-level type */
|
|
69
|
-
multiLevelType?: 'hybridMultilevel' | 'multilevel' | 'singleLevel';
|
|
70
|
-
/** Numbering style link */
|
|
71
|
-
numStyleLink?: string;
|
|
72
|
-
/** Style link */
|
|
73
|
-
styleLink?: string;
|
|
74
|
-
/** Level definitions */
|
|
75
|
-
levels: ListLevel[];
|
|
76
|
-
/** Name */
|
|
77
|
-
name?: string;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Numbering instance (w:num)
|
|
81
|
-
*/
|
|
82
|
-
interface NumberingInstance {
|
|
83
|
-
/** Numbering ID (referenced by paragraphs) */
|
|
84
|
-
numId: number;
|
|
85
|
-
/** Reference to abstract numbering */
|
|
86
|
-
abstractNumId: number;
|
|
87
|
-
/** Level overrides */
|
|
88
|
-
levelOverrides?: Array<{
|
|
89
|
-
ilvl: number;
|
|
90
|
-
startOverride?: number;
|
|
91
|
-
lvl?: ListLevel;
|
|
92
|
-
}>;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Computed list marker for one paragraph — what the layout engine and
|
|
96
|
-
* painter need to render the "1.", "a)", "•" prefix. Not part of the
|
|
97
|
-
* wire format; the parser fills this from the `numbering.xml` chain plus
|
|
98
|
-
* the paragraph's `numPr`. Paragraphs without list rendering omit it.
|
|
99
|
-
*/
|
|
100
|
-
interface ListRendering {
|
|
101
|
-
/** Computed marker text (e.g., "1.", "a)", "•") */
|
|
102
|
-
marker: string;
|
|
103
|
-
/** List level (0-8) */
|
|
104
|
-
level: number;
|
|
105
|
-
/** Numbering ID */
|
|
106
|
-
numId: number;
|
|
107
|
-
/** Whether this is a bullet or numbered list */
|
|
108
|
-
isBullet: boolean;
|
|
109
|
-
/** Number format type (decimal, lowerRoman, upperRoman, etc.) */
|
|
110
|
-
numFmt?: NumberFormat;
|
|
111
|
-
/** Whether the list marker is hidden (w:vanish on level rPr) */
|
|
112
|
-
markerHidden?: boolean;
|
|
113
|
-
/** Marker font family from numbering level rPr (ascii name) */
|
|
114
|
-
markerFontFamily?: string;
|
|
115
|
-
/** Marker font size from numbering level rPr, in points */
|
|
116
|
-
markerFontSize?: number;
|
|
117
|
-
/**
|
|
118
|
-
* Suffix character placed after the marker before body text (§17.9.25).
|
|
119
|
-
* Default is `tab`; `space` inserts a single space; `nothing` no gap.
|
|
120
|
-
* Drives marker-slot sizing in `getListMarkerInlineWidth`.
|
|
121
|
-
*/
|
|
122
|
-
markerSuffix?: LevelSuffix;
|
|
123
|
-
/**
|
|
124
|
-
* NumberFormat for each level from 0..ilvl (inclusive).
|
|
125
|
-
* Used to resolve multi-level templates like "%1.%2." where each %N
|
|
126
|
-
* may need a different format (e.g., upperRoman parent + decimal child).
|
|
127
|
-
*/
|
|
128
|
-
levelNumFmts?: NumberFormat[];
|
|
129
|
-
/** abstractNumId the paragraph's numId points to (counters key on this). */
|
|
130
|
-
abstractNumId?: number;
|
|
131
|
-
/**
|
|
132
|
-
* Start value from the numId's lvlOverride for the paragraph's ilvl, if any.
|
|
133
|
-
* Per ECMA-376 §17.9.18, this resets the shared abstractNum counter the
|
|
134
|
-
* first time the numId appears.
|
|
135
|
-
*/
|
|
136
|
-
startOverride?: number;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Top-level numbering data from `numbering.xml` — the set of abstract
|
|
140
|
-
* templates and the per-document `NumberingInstance`s that reference
|
|
141
|
-
* them. Paragraphs reference a `numId` (instance), not an
|
|
142
|
-
* `abstractNumId` directly.
|
|
143
|
-
*/
|
|
144
|
-
interface NumberingDefinitions {
|
|
145
|
-
/** Abstract numbering definitions */
|
|
146
|
-
abstractNums: AbstractNumbering[];
|
|
147
|
-
/** Numbering instances */
|
|
148
|
-
nums: NumberingInstance[];
|
|
149
|
-
}
|
|
150
|
-
|
|
151
7
|
/**
|
|
152
8
|
* Hyperlinks (`w:hyperlink`), bookmark markers (`w:bookmarkStart`/`End`),
|
|
153
9
|
* and field types (`w:fldSimple`, complex `w:fldChar` runs).
|
|
@@ -1459,4 +1315,4 @@ interface Run {
|
|
|
1459
1315
|
content: RunContent[];
|
|
1460
1316
|
}
|
|
1461
1317
|
|
|
1462
|
-
export type {
|
|
1318
|
+
export type { ImageSize as $, ComplexField as A, BlockContent as B, Comment as C, DocumentBody as D, Endnote as E, Footnote as F, DrawingContent as G, Hyperlink as H, Image as I, EndnotePosition as J, EndnoteProperties as K, Field as L, MoveFrom as M, FieldCharContent as N, FieldType as O, Paragraph as P, FooterReference as Q, RevisionInfo as R, SectionProperties as S, Table as T, FootnotePosition as U, FootnoteProperties as V, HeaderFooterType as W, HeaderReference as X, ImageCrop as Y, ImagePadding as Z, ImagePosition as _, ParagraphPropertyChange as a, ImageTransform as a0, ImageWrap as a1, InlineSdt as a2, InstrTextContent as a3, LineNumberRestart as a4, MathEquation as a5, MoveFromRangeEnd as a6, MoveFromRangeStart as a7, MoveToRangeEnd as a8, MoveToRangeStart as a9, NoBreakHyphenContent as aa, NoteNumberRestart as ab, NoteRefMarkContent as ac, NoteReferenceContent as ad, PageOrientation as ae, PropertyChangeInfo as af, RunPropertyChange as ag, Section as ah, SectionStart as ai, SeparatorContent as aj, Shape as ak, ShapeContent as al, ShapeFill as am, ShapeOutline as an, ShapeTextBody as ao, ShapeType as ap, SimpleField as aq, SoftHyphenContent as ar, SymbolContent as as, TabContent as at, TableStructuralChangeInfo as au, TextBox as av, VerticalAlign as aw, CellMarker as ax, TablePropertyChange as b, TableCellPropertyChange as c, TableRowPropertyChange as d, CommentRangeEnd as e, CommentRangeStart as f, Deletion as g, Insertion as h, MoveTo as i, ParagraphContent as j, Run as k, RunContent as l, TableCell as m, TableRow as n, TextContent as o, TrackedChangeInfo as p, TrackedRunChange as q, SdtType as r, SdtProperties as s, SdtDataBinding as t, BlockSdt as u, BreakContent as v, HeaderFooter as w, BookmarkEnd as x, BookmarkStart as y, Column as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document } from './types/document.js';
|
|
2
|
-
import {
|
|
2
|
+
import { r as SdtType, s as SdtProperties, t as SdtDataBinding, D as DocumentBody, u as BlockSdt, B as BlockContent } from './content-eG_Rtl0l.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Content-control (SDT) addressing for the document model.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document } from './types/document.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { r as SdtType, s as SdtProperties, t as SdtDataBinding, D as DocumentBody, u as BlockSdt, B as BlockContent } from './content-BlWiORm-.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Content-control (SDT) addressing for the document model.
|
package/dist/core-plugins.d.mts
CHANGED
|
@@ -29,11 +29,12 @@ export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as Json
|
|
|
29
29
|
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-NLnxX7pq.mjs';
|
|
30
30
|
import './types/document.mjs';
|
|
31
31
|
import './colors-C3vA7HUU.mjs';
|
|
32
|
-
import './formatting-
|
|
33
|
-
import './
|
|
32
|
+
import './formatting-DFtuRFQY.mjs';
|
|
33
|
+
import './lists-CyGxd5Y2.mjs';
|
|
34
|
+
import './content-BlWiORm-.mjs';
|
|
34
35
|
import './docx/wrapTypes.mjs';
|
|
35
36
|
import './watermark-DAcnAs_J.mjs';
|
|
36
|
-
import './styles-
|
|
37
|
+
import './styles-Dqec8Aw6.mjs';
|
|
37
38
|
import './types/agentApi.mjs';
|
|
38
39
|
|
|
39
40
|
/**
|
package/dist/core-plugins.d.ts
CHANGED
|
@@ -29,11 +29,12 @@ export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as Json
|
|
|
29
29
|
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-egK81C_z.js';
|
|
30
30
|
import './types/document.js';
|
|
31
31
|
import './colors-C3vA7HUU.js';
|
|
32
|
-
import './formatting-
|
|
33
|
-
import './
|
|
32
|
+
import './formatting-JhqWT_XM.js';
|
|
33
|
+
import './lists-Bn29SzeS.js';
|
|
34
|
+
import './content-eG_Rtl0l.js';
|
|
34
35
|
import './docx/wrapTypes.js';
|
|
35
36
|
import './watermark-DAcnAs_J.js';
|
|
36
|
-
import './styles-
|
|
37
|
+
import './styles-gEujs7j6.js';
|
|
37
38
|
import './types/agentApi.js';
|
|
38
39
|
|
|
39
40
|
/**
|
package/dist/core-plugins.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk6KM4VW4L_js=require('./chunk-6KM4VW4L.js');require('./chunk-U4UCHBZ7.js'),require('./chunk-ESI4BSBF.js');var chunk4BFNWPKW_js=require('./chunk-4BFNWPKW.js');require('./chunk-P7HWOJC5.js'),require('./chunk-AA6D2C6R.js'),require('./chunk-FIGLFSNR.js'),require('./chunk-QVRMX2AC.js'),require('./chunk-O2643IUW.js'),require('./chunk-Z3LGMBJC.js'),require('./chunk-4Q2IP5FW.js'),require('./chunk-GSKMHXHG.js'),require('./chunk-H57LNDBH.js'),require('./chunk-3R7QHNI5.js'),require('./chunk-DC7S76ZX.js');Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunk6KM4VW4L_js.b}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunk6KM4VW4L_js.a}});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}});
|
package/dist/core-plugins.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as docxtemplaterPlugin,a as isZodSchema}from'./chunk-
|
|
1
|
+
export{b as docxtemplaterPlugin,a as isZodSchema}from'./chunk-M3UL6EUU.mjs';import'./chunk-ARHPXIBJ.mjs';import'./chunk-CGJ6S3AH.mjs';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-3NRMSZX2.mjs';import'./chunk-3HENAL6V.mjs';import'./chunk-RT52EYG3.mjs';import'./chunk-MOCGHQ4A.mjs';import'./chunk-CDBKFBC2.mjs';import'./chunk-AMJNIGO2.mjs';import'./chunk-W77JXDEV.mjs';import'./chunk-VW22RZ6C.mjs';import'./chunk-DI6CRWSW.mjs';import'./chunk-VJFIAFZ5.mjs';import'./chunk-3ANZ3252.mjs';import'./chunk-QYUPLKLP.mjs';
|
package/dist/core.d.mts
CHANGED
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
20
|
export { parseDocx } from './docx/parser.mjs';
|
|
21
|
-
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './sectionPropertiesSerializer-
|
|
21
|
+
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './sectionPropertiesSerializer-C8XCmzE4.mjs';
|
|
22
22
|
export { createDocx, default as repackDocx, updateMultipleFiles } from './docx/rezip.mjs';
|
|
23
23
|
export { a as attemptSelectiveSave } from './selectiveSave-jinP_4xa.mjs';
|
|
24
24
|
export { b as buildPatchedDocumentXml, v as validatePatchSafety } from './selectiveXmlPatch-ypkxlTD_.mjs';
|
|
25
|
-
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, r as processTemplate, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from './colorResolver-
|
|
26
|
-
export { A as AgentContextOptions, D as DocumentAgent, E as ExtendedSelectionContext, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary } from './selectionContext-
|
|
25
|
+
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, r as processTemplate, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from './colorResolver-DCBfI4ld.mjs';
|
|
26
|
+
export { A as AgentContextOptions, D as DocumentAgent, E as ExtendedSelectionContext, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary } from './selectionContext-BjMyVQZO.mjs';
|
|
27
27
|
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.mjs';
|
|
28
|
-
export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as
|
|
28
|
+
export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isGoogleFontsEnabled, s as isLineBreak, t as isPageBreak, u as loadFont, v as loadFontFromBuffer, w as loadFonts, x as onFontsLoaded, y as preloadCommonFonts, z as removePageBreak, A as setGoogleFontsEnabled } from './fontLoader-3MFD_Hj2.mjs';
|
|
29
29
|
export { D as DocxInput, t as toArrayBuffer } from './docxInput-DTbCa48g.mjs';
|
|
30
30
|
export { f as findParagraphByParaId, a as findStartPosForParaId } from './findParagraphByParaId-Maw_8M5D.mjs';
|
|
31
|
-
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-
|
|
31
|
+
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-CN9_pUR_.mjs';
|
|
32
32
|
import { Document } from './types/document.mjs';
|
|
33
33
|
export { DocxPackage } from './types/document.mjs';
|
|
34
34
|
export { AIAction, AIActionRequest, AgentCommand, AgentContext, AgentResponse, ApplyStyleCommand, DeleteTextCommand, FormatTextCommand, InsertHyperlinkCommand, InsertImageCommand, InsertTableCommand, InsertTextCommand, ParagraphContext, Position, Range, ReplaceTextCommand, SelectionContext, SetVariableCommand, SuggestedAction } from './types/agentApi.mjs';
|
|
@@ -41,13 +41,14 @@ import { ErrorManagerSnapshot, PluginLifecycleSnapshot, PluginLifecycleConfig }
|
|
|
41
41
|
export { AutoSaveManagerOptions, AutoSaveSnapshot, AutoSaveStatus, CellCoordinates, EditorHandle, ErrorNotification, ErrorSeverity, SavedDocumentData, TableSelectionSnapshot } from './managers/types.mjs';
|
|
42
42
|
export { AutoSaveManager, formatLastSaveTime, formatStorageSize, getAutoSaveStatusLabel, getAutoSaveStorageSize, isAutoSaveSupported } from './managers/AutoSaveManager.mjs';
|
|
43
43
|
export { TABLE_DATA_ATTRIBUTES, TableSelectionManager, deleteTableFromDocument, findTableFromClick, getTableFromDocument, updateTableInDocument } from './managers/TableSelectionManager.mjs';
|
|
44
|
-
import {
|
|
45
|
-
export { B as BlockContent,
|
|
44
|
+
import { k as Run } from './content-BlWiORm-.mjs';
|
|
45
|
+
export { B as BlockContent, x as BookmarkEnd, y as BookmarkStart, C as Comment, e as CommentRangeEnd, f as CommentRangeStart, g as Deletion, D as DocumentBody, E as Endnote, L as Field, Q as FooterReference, F as Footnote, w as HeaderFooter, X as HeaderReference, H as Hyperlink, I as Image, h as Insertion, M as MoveFrom, i as MoveTo, P as Paragraph, j as ParagraphContent, l as RunContent, S as SectionProperties, ak as Shape, T as Table, m as TableCell, n as TableRow, av as TextBox, o as TextContent, p as TrackedChangeInfo, q as TrackedRunChange } from './content-BlWiORm-.mjs';
|
|
46
46
|
import { EditorView } from 'prosemirror-view';
|
|
47
47
|
export { FlowBlock, FootnoteContent, Layout, Measure, Page } from './layout-engine/types.mjs';
|
|
48
|
-
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-
|
|
49
|
-
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, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, g as collectFootnoteRefs, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, m as mapFootnotesToPages, s as stabilizeFootnoteLayout } from './headerFooterLayout-
|
|
50
|
-
export {
|
|
48
|
+
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-DFtuRFQY.mjs';
|
|
49
|
+
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, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, g as collectFootnoteRefs, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, m as mapFootnotesToPages, s as stabilizeFootnoteLayout } from './headerFooterLayout-DJb-dV7X.mjs';
|
|
50
|
+
export { L as ListLevel, a as NumberingDefinitions } from './lists-CyGxd5Y2.mjs';
|
|
51
|
+
export { R as Relationship, a as Style, S as StyleDefinitions, T as Theme, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from './styles-Dqec8Aw6.mjs';
|
|
51
52
|
import './colors-C3vA7HUU.mjs';
|
|
52
53
|
import './docx/wrapTypes.mjs';
|
|
53
54
|
import './watermark-DAcnAs_J.mjs';
|
package/dist/core.d.ts
CHANGED
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
20
|
export { parseDocx } from './docx/parser.js';
|
|
21
|
-
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './sectionPropertiesSerializer-
|
|
21
|
+
export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './sectionPropertiesSerializer-S8J1V9mb.js';
|
|
22
22
|
export { createDocx, default as repackDocx, updateMultipleFiles } from './docx/rezip.js';
|
|
23
23
|
export { a as attemptSelectiveSave } from './selectiveSave-CWaPEv0B.js';
|
|
24
24
|
export { b as buildPatchedDocumentXml, v as validatePatchSafety } from './selectiveXmlPatch-ypkxlTD_.js';
|
|
25
|
-
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, r as processTemplate, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from './colorResolver-
|
|
26
|
-
export { A as AgentContextOptions, D as DocumentAgent, E as ExtendedSelectionContext, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary } from './selectionContext-
|
|
25
|
+
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, r as processTemplate, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from './colorResolver-C696sd9x.js';
|
|
26
|
+
export { A as AgentContextOptions, D as DocumentAgent, E as ExtendedSelectionContext, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary } from './selectionContext-BJZZW1JA.js';
|
|
27
27
|
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.js';
|
|
28
|
-
export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as
|
|
28
|
+
export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isGoogleFontsEnabled, s as isLineBreak, t as isPageBreak, u as loadFont, v as loadFontFromBuffer, w as loadFonts, x as onFontsLoaded, y as preloadCommonFonts, z as removePageBreak, A as setGoogleFontsEnabled } from './fontLoader-C6VvBUVB.js';
|
|
29
29
|
export { D as DocxInput, t as toArrayBuffer } from './docxInput-DTbCa48g.js';
|
|
30
30
|
export { f as findParagraphByParaId, a as findStartPosForParaId } from './findParagraphByParaId-Maw_8M5D.js';
|
|
31
|
-
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-
|
|
31
|
+
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-o4Rb2Csy.js';
|
|
32
32
|
import { Document } from './types/document.js';
|
|
33
33
|
export { DocxPackage } from './types/document.js';
|
|
34
34
|
export { AIAction, AIActionRequest, AgentCommand, AgentContext, AgentResponse, ApplyStyleCommand, DeleteTextCommand, FormatTextCommand, InsertHyperlinkCommand, InsertImageCommand, InsertTableCommand, InsertTextCommand, ParagraphContext, Position, Range, ReplaceTextCommand, SelectionContext, SetVariableCommand, SuggestedAction } from './types/agentApi.js';
|
|
@@ -41,13 +41,14 @@ import { ErrorManagerSnapshot, PluginLifecycleSnapshot, PluginLifecycleConfig }
|
|
|
41
41
|
export { AutoSaveManagerOptions, AutoSaveSnapshot, AutoSaveStatus, CellCoordinates, EditorHandle, ErrorNotification, ErrorSeverity, SavedDocumentData, TableSelectionSnapshot } from './managers/types.js';
|
|
42
42
|
export { AutoSaveManager, formatLastSaveTime, formatStorageSize, getAutoSaveStatusLabel, getAutoSaveStorageSize, isAutoSaveSupported } from './managers/AutoSaveManager.js';
|
|
43
43
|
export { TABLE_DATA_ATTRIBUTES, TableSelectionManager, deleteTableFromDocument, findTableFromClick, getTableFromDocument, updateTableInDocument } from './managers/TableSelectionManager.js';
|
|
44
|
-
import {
|
|
45
|
-
export { B as BlockContent,
|
|
44
|
+
import { k as Run } from './content-eG_Rtl0l.js';
|
|
45
|
+
export { B as BlockContent, x as BookmarkEnd, y as BookmarkStart, C as Comment, e as CommentRangeEnd, f as CommentRangeStart, g as Deletion, D as DocumentBody, E as Endnote, L as Field, Q as FooterReference, F as Footnote, w as HeaderFooter, X as HeaderReference, H as Hyperlink, I as Image, h as Insertion, M as MoveFrom, i as MoveTo, P as Paragraph, j as ParagraphContent, l as RunContent, S as SectionProperties, ak as Shape, T as Table, m as TableCell, n as TableRow, av as TextBox, o as TextContent, p as TrackedChangeInfo, q as TrackedRunChange } from './content-eG_Rtl0l.js';
|
|
46
46
|
import { EditorView } from 'prosemirror-view';
|
|
47
47
|
export { FlowBlock, FootnoteContent, Layout, Measure, Page } from './layout-engine/types.js';
|
|
48
|
-
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-
|
|
49
|
-
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, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, g as collectFootnoteRefs, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, m as mapFootnotesToPages, s as stabilizeFootnoteLayout } from './headerFooterLayout-
|
|
50
|
-
export {
|
|
48
|
+
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-JhqWT_XM.js';
|
|
49
|
+
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, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, g as collectFootnoteRefs, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, m as mapFootnotesToPages, s as stabilizeFootnoteLayout } from './headerFooterLayout-bdHWlU6g.js';
|
|
50
|
+
export { L as ListLevel, a as NumberingDefinitions } from './lists-Bn29SzeS.js';
|
|
51
|
+
export { R as Relationship, a as Style, S as StyleDefinitions, T as Theme, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from './styles-gEujs7j6.js';
|
|
51
52
|
import './colors-C3vA7HUU.js';
|
|
52
53
|
import './docx/wrapTypes.js';
|
|
53
54
|
import './watermark-DAcnAs_J.js';
|