@eigenpal/docx-editor-core 1.4.0 → 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.
Files changed (276) hide show
  1. package/dist/agent/index.d.mts +7 -6
  2. package/dist/agent/index.d.ts +7 -6
  3. package/dist/agent/index.js +1 -1
  4. package/dist/agent/index.mjs +1 -1
  5. package/dist/chunk-2LVK7EF5.mjs +2 -0
  6. package/dist/chunk-3HENAL6V.mjs +2 -0
  7. package/dist/{chunk-BUEMXRXH.js → chunk-3SJQRYO7.js} +1 -1
  8. package/dist/chunk-4JPHW7ZI.js +2 -0
  9. package/dist/chunk-4RQAAKQI.mjs +1 -0
  10. package/dist/{chunk-OF373DBR.mjs → chunk-5HA66FH4.mjs} +1 -1
  11. package/dist/chunk-5WINQXA3.js +1 -0
  12. package/dist/{chunk-3QPKTG2Y.js → chunk-6KM4VW4L.js} +2 -2
  13. package/dist/chunk-AA6D2C6R.js +4 -0
  14. package/dist/{chunk-7CZEZ3UL.mjs → chunk-AMJNIGO2.mjs} +1 -1
  15. package/dist/chunk-BTSL4AYY.js +1 -0
  16. package/dist/{chunk-HPAUUQAX.mjs → chunk-CBKJOPOW.mjs} +1 -1
  17. package/dist/chunk-CDBKFBC2.mjs +15 -0
  18. package/dist/chunk-COV4LHQ7.js +1 -0
  19. package/dist/chunk-DZ3FN3JI.js +2 -0
  20. package/dist/chunk-ENIWJBS7.mjs +2 -0
  21. package/dist/{chunk-55XWETY4.mjs → chunk-EZNVVB63.mjs} +1 -1
  22. package/dist/{chunk-CHN26LLL.mjs → chunk-F24WZXN4.mjs} +1 -1
  23. package/dist/{chunk-ZBCFIW2V.js → chunk-GB7RICH6.js} +1 -1
  24. package/dist/{chunk-CZSAC65M.js → chunk-GFM6PERG.js} +1 -1
  25. package/dist/chunk-GKAXYZCE.mjs +1 -0
  26. package/dist/chunk-H57LNDBH.js +1 -0
  27. package/dist/chunk-IGYHDSM7.mjs +1 -0
  28. package/dist/{chunk-BH3ACQ3M.js → chunk-JQUIUKRO.js} +3 -3
  29. package/dist/chunk-L6ZRNW7Y.mjs +1 -0
  30. package/dist/{chunk-Q4IEATDJ.js → chunk-LJ2TB6CY.js} +1 -1
  31. package/dist/{chunk-DFUWJHKF.mjs → chunk-M3UL6EUU.mjs} +3 -3
  32. package/dist/chunk-M7KTKPGO.mjs +1 -0
  33. package/dist/chunk-MA3HLGFO.js +1 -0
  34. package/dist/chunk-ND33YQGU.js +1 -0
  35. package/dist/{chunk-KXVCCT2A.js → chunk-NPFFCPZ6.js} +1 -1
  36. package/dist/chunk-NTBZRITU.mjs +1 -0
  37. package/dist/{chunk-SCK6ZM5V.js → chunk-O2643IUW.js} +1 -1
  38. package/dist/chunk-P7HWOJC5.js +2 -0
  39. package/dist/{chunk-YNUPP7UG.mjs → chunk-PYDX4MOT.mjs} +2 -2
  40. package/dist/{chunk-CHTIWTHQ.mjs → chunk-QUM4DFRE.mjs} +1 -1
  41. package/dist/chunk-QVRMX2AC.js +15 -0
  42. package/dist/chunk-QXSDGNJ4.js +1 -0
  43. package/dist/{chunk-FYRJTDC4.mjs → chunk-QZPVZY6S.mjs} +1 -1
  44. package/dist/chunk-RT52EYG3.mjs +4 -0
  45. package/dist/chunk-SHYNWAW6.mjs +1 -0
  46. package/dist/chunk-SKBHY5MK.mjs +1 -0
  47. package/dist/chunk-SNTAAXXA.mjs +1 -0
  48. package/dist/chunk-T4O4PFJD.mjs +1 -0
  49. package/dist/chunk-TAQTZAVZ.js +1 -0
  50. package/dist/{chunk-2SGJZYQF.js → chunk-TDYWEVAE.js} +1 -1
  51. package/dist/{chunk-6IZOFIQH.js → chunk-TV6JLFY5.js} +1 -1
  52. package/dist/chunk-UKMKGIME.js +1 -0
  53. package/dist/chunk-UXPY65AC.js +1 -0
  54. package/dist/chunk-VDKSZ5BQ.mjs +1 -0
  55. package/dist/chunk-VJFIAFZ5.mjs +1 -0
  56. package/dist/chunk-WQRWRWSK.js +1 -0
  57. package/dist/chunk-WWVIVYX6.mjs +1 -0
  58. package/dist/chunk-WXSGCEBZ.js +1 -0
  59. package/dist/{chunk-GGUHM74A.mjs → chunk-WYFK4QOF.mjs} +1 -1
  60. package/dist/chunk-X6AICTHN.js +1 -0
  61. package/dist/chunk-YHXVNJK5.mjs +1 -0
  62. package/dist/{chunk-J3YFJDZD.js → chunk-ZETEPB7I.js} +1 -1
  63. package/dist/{colorResolver-8A-qj-LP.d.ts → colorResolver-C696sd9x.d.ts} +1 -1
  64. package/dist/{colorResolver-BCvxTlLF.d.mts → colorResolver-DCBfI4ld.d.mts} +1 -1
  65. package/dist/{content-3xF4WDE8.d.mts → content-BlWiORm-.d.mts} +3 -147
  66. package/dist/{content-C8fc_tL6.d.ts → content-eG_Rtl0l.d.ts} +3 -147
  67. package/dist/{contentControlValues-DGDKD589.d.ts → contentControlValues-CO7pUqOf.d.ts} +1 -1
  68. package/dist/{contentControlValues-DjWvoJQ-.d.mts → contentControlValues-DfYN9BZ8.d.mts} +1 -1
  69. package/dist/core-plugins.d.mts +4 -3
  70. package/dist/core-plugins.d.ts +4 -3
  71. package/dist/core-plugins.js +1 -1
  72. package/dist/core-plugins.mjs +1 -1
  73. package/dist/core.d.mts +11 -10
  74. package/dist/core.d.ts +11 -10
  75. package/dist/core.js +1 -1
  76. package/dist/core.mjs +1 -1
  77. package/dist/{documentStyles-qR0VR2s0.d.mts → documentStyles-1G0xTl1v.d.mts} +1 -1
  78. package/dist/{documentStyles-C7k_8Sye.d.ts → documentStyles-Bw98BwEy.d.ts} +1 -1
  79. package/dist/docx/index.d.mts +7 -67
  80. package/dist/docx/index.d.ts +7 -67
  81. package/dist/docx/index.js +1 -1
  82. package/dist/docx/index.mjs +1 -1
  83. package/dist/docx/parser.d.mts +4 -3
  84. package/dist/docx/parser.d.ts +4 -3
  85. package/dist/docx/parser.js +1 -1
  86. package/dist/docx/parser.mjs +1 -1
  87. package/dist/docx/rezip.d.mts +4 -3
  88. package/dist/docx/rezip.d.ts +4 -3
  89. package/dist/docx/rezip.js +1 -1
  90. package/dist/docx/rezip.mjs +1 -1
  91. package/dist/docx/serializer/index.d.mts +5 -4
  92. package/dist/docx/serializer/index.d.ts +5 -4
  93. package/dist/docx/serializer/index.js +1 -1
  94. package/dist/docx/serializer/index.mjs +1 -1
  95. package/dist/editor/index.d.mts +4 -3
  96. package/dist/editor/index.d.ts +4 -3
  97. package/dist/editor/index.js +1 -1
  98. package/dist/editor/index.mjs +1 -1
  99. package/dist/{fontLoader-CUS1BPv7.d.mts → fontLoader-3MFD_Hj2.d.mts} +48 -5
  100. package/dist/{fontLoader-Dl9SEKex.d.ts → fontLoader-C6VvBUVB.d.ts} +48 -5
  101. package/dist/{formatting-BH4hcZiq.d.mts → formatting-DFtuRFQY.d.mts} +13 -0
  102. package/dist/{formatting-_OXU8gLB.d.ts → formatting-JhqWT_XM.d.ts} +13 -0
  103. package/dist/{headerFooterLayout-CU6hvszp.d.mts → headerFooterLayout-DJb-dV7X.d.mts} +2 -2
  104. package/dist/{headerFooterLayout-AtAOhM8E.d.ts → headerFooterLayout-bdHWlU6g.d.ts} +2 -2
  105. package/dist/headless.d.mts +9 -8
  106. package/dist/headless.d.ts +9 -8
  107. package/dist/headless.js +1 -1
  108. package/dist/headless.mjs +1 -1
  109. package/dist/layout-bridge/clickToPositionDom.js +1 -1
  110. package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
  111. package/dist/layout-bridge/index.d.mts +5 -4
  112. package/dist/layout-bridge/index.d.ts +5 -4
  113. package/dist/layout-bridge/index.js +1 -1
  114. package/dist/layout-bridge/index.mjs +1 -1
  115. package/dist/layout-bridge/measuring/index.d.mts +3 -2
  116. package/dist/layout-bridge/measuring/index.d.ts +3 -2
  117. package/dist/layout-bridge/measuring/index.js +1 -1
  118. package/dist/layout-bridge/measuring/index.mjs +1 -1
  119. package/dist/layout-bridge/tableInsertHover.js +1 -1
  120. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  121. package/dist/layout-bridge/toFlowBlocks.d.mts +4 -3
  122. package/dist/layout-bridge/toFlowBlocks.d.ts +4 -3
  123. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  124. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  125. package/dist/layout-engine/index.d.mts +4 -3
  126. package/dist/layout-engine/index.d.ts +4 -3
  127. package/dist/layout-engine/index.js +1 -1
  128. package/dist/layout-engine/index.mjs +1 -1
  129. package/dist/layout-engine/types.d.mts +21 -9
  130. package/dist/layout-engine/types.d.ts +21 -9
  131. package/dist/layout-painter/index.d.mts +5 -4
  132. package/dist/layout-painter/index.d.ts +5 -4
  133. package/dist/layout-painter/index.js +1 -1
  134. package/dist/layout-painter/index.mjs +1 -1
  135. package/dist/layout-painter/renderPage.d.mts +5 -4
  136. package/dist/layout-painter/renderPage.d.ts +5 -4
  137. package/dist/layout-painter/renderPage.js +1 -1
  138. package/dist/layout-painter/renderPage.mjs +1 -1
  139. package/dist/lists-Bn29SzeS.d.ts +148 -0
  140. package/dist/lists-CyGxd5Y2.d.mts +148 -0
  141. package/dist/managers/AutoSaveManager.d.mts +4 -3
  142. package/dist/managers/AutoSaveManager.d.ts +4 -3
  143. package/dist/managers/TableSelectionManager.d.mts +4 -3
  144. package/dist/managers/TableSelectionManager.d.ts +4 -3
  145. package/dist/managers/types.d.mts +4 -3
  146. package/dist/managers/types.d.ts +4 -3
  147. package/dist/{marks-BY573yZn.d.mts → marks-CzrbFi4o.d.mts} +1 -1
  148. package/dist/{marks-CjC9tF5k.d.ts → marks-Dq1QsxKA.d.ts} +1 -1
  149. package/dist/mcp-cli.mjs +23 -23
  150. package/dist/mcp.d.mts +4 -3
  151. package/dist/mcp.d.ts +4 -3
  152. package/dist/mcp.js +3 -3
  153. package/dist/mcp.mjs +7 -7
  154. package/dist/{nodes-75Q9GBxV.d.ts → nodes-BJef4KFW.d.ts} +17 -2
  155. package/dist/{nodes-cEI7hVY2.d.mts → nodes-RfTS-NSv.d.mts} +17 -2
  156. package/dist/numberingParser-ZSQ3SDCV.d.ts +81 -0
  157. package/dist/numberingParser-nSPZlzKr.d.mts +81 -0
  158. package/dist/prosemirror/applyFormatting.d.mts +5 -2
  159. package/dist/prosemirror/applyFormatting.d.ts +5 -2
  160. package/dist/prosemirror/applyFormatting.js +1 -1
  161. package/dist/prosemirror/applyFormatting.mjs +1 -1
  162. package/dist/prosemirror/cellDragSelection.d.mts +46 -0
  163. package/dist/prosemirror/cellDragSelection.d.ts +46 -0
  164. package/dist/prosemirror/cellDragSelection.js +1 -0
  165. package/dist/prosemirror/cellDragSelection.mjs +1 -0
  166. package/dist/prosemirror/commands/formatting.d.mts +2 -2
  167. package/dist/prosemirror/commands/formatting.d.ts +2 -2
  168. package/dist/prosemirror/commands/formatting.js +1 -1
  169. package/dist/prosemirror/commands/formatting.mjs +1 -1
  170. package/dist/prosemirror/commands/index.d.mts +32 -3
  171. package/dist/prosemirror/commands/index.d.ts +32 -3
  172. package/dist/prosemirror/commands/index.js +1 -1
  173. package/dist/prosemirror/commands/index.mjs +1 -1
  174. package/dist/prosemirror/commands/paragraph.d.mts +11 -1
  175. package/dist/prosemirror/commands/paragraph.d.ts +11 -1
  176. package/dist/prosemirror/commands/paragraph.js +1 -1
  177. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  178. package/dist/prosemirror/commentIdAllocator.d.mts +3 -2
  179. package/dist/prosemirror/commentIdAllocator.d.ts +3 -2
  180. package/dist/prosemirror/commentOps.d.mts +3 -2
  181. package/dist/prosemirror/commentOps.d.ts +3 -2
  182. package/dist/prosemirror/conversion/fromProseDoc.d.mts +4 -3
  183. package/dist/prosemirror/conversion/fromProseDoc.d.ts +4 -3
  184. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  185. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  186. package/dist/prosemirror/conversion/index.d.mts +4 -3
  187. package/dist/prosemirror/conversion/index.d.ts +4 -3
  188. package/dist/prosemirror/conversion/index.js +1 -1
  189. package/dist/prosemirror/conversion/index.mjs +1 -1
  190. package/dist/prosemirror/editor.css +13 -0
  191. package/dist/prosemirror/extensions/index.d.mts +1 -1
  192. package/dist/prosemirror/extensions/index.d.ts +1 -1
  193. package/dist/prosemirror/extensions/index.js +1 -1
  194. package/dist/prosemirror/extensions/index.mjs +1 -1
  195. package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -1
  196. package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -1
  197. package/dist/prosemirror/index.d.mts +20 -10
  198. package/dist/prosemirror/index.d.ts +20 -10
  199. package/dist/prosemirror/index.js +3 -3
  200. package/dist/prosemirror/index.mjs +3 -3
  201. package/dist/prosemirror/plugins/index.d.mts +5 -4
  202. package/dist/prosemirror/plugins/index.d.ts +5 -4
  203. package/dist/prosemirror/plugins/index.js +1 -1
  204. package/dist/prosemirror/plugins/index.mjs +1 -1
  205. package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
  206. package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
  207. package/dist/prosemirror/queries.d.mts +45 -3
  208. package/dist/prosemirror/queries.d.ts +45 -3
  209. package/dist/prosemirror/queries.js +2 -2
  210. package/dist/prosemirror/queries.mjs +2 -2
  211. package/dist/prosemirror/schema/index.d.mts +5 -4
  212. package/dist/prosemirror/schema/index.d.ts +5 -4
  213. package/dist/prosemirror/schema/index.js +1 -1
  214. package/dist/prosemirror/schema/index.mjs +1 -1
  215. package/dist/prosemirror/styles/index.d.mts +2 -2
  216. package/dist/prosemirror/styles/index.d.ts +2 -2
  217. package/dist/prosemirror/tableResize.js +1 -1
  218. package/dist/prosemirror/tableResize.mjs +1 -1
  219. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +3 -2
  220. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +3 -2
  221. package/dist/prosemirror/utils/extractTrackedChanges.js +1 -1
  222. package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -1
  223. package/dist/{sectionPropertiesSerializer-D86QlzlT.d.mts → sectionPropertiesSerializer-C8XCmzE4.d.mts} +1 -1
  224. package/dist/{sectionPropertiesSerializer-uXyGONxu.d.ts → sectionPropertiesSerializer-S8J1V9mb.d.ts} +1 -1
  225. package/dist/{selectionContext-BPAqgNgk.d.ts → selectionContext-BJZZW1JA.d.ts} +1 -1
  226. package/dist/{selectionContext-CoZat7QZ.d.mts → selectionContext-BjMyVQZO.d.mts} +1 -1
  227. package/dist/{styles-BOJ93SAm.d.mts → styles-Dqec8Aw6.d.mts} +1 -1
  228. package/dist/{styles-BWqX2AS-.d.ts → styles-gEujs7j6.d.ts} +1 -1
  229. package/dist/types/agentApi.d.mts +1 -1
  230. package/dist/types/agentApi.d.ts +1 -1
  231. package/dist/types/content.d.mts +3 -2
  232. package/dist/types/content.d.ts +3 -2
  233. package/dist/types/document.d.mts +7 -5
  234. package/dist/types/document.d.ts +7 -5
  235. package/dist/utils/comments.d.mts +3 -2
  236. package/dist/utils/comments.d.ts +3 -2
  237. package/dist/utils/index.d.mts +6 -5
  238. package/dist/utils/index.d.ts +6 -5
  239. package/dist/utils/index.js +3 -3
  240. package/dist/utils/index.mjs +3 -3
  241. package/dist/{variableDetector-CaY-sDau.d.mts → variableDetector-CN9_pUR_.d.mts} +1 -1
  242. package/dist/{variableDetector-1mxzPfs2.d.ts → variableDetector-o4Rb2Csy.d.ts} +1 -1
  243. package/package.json +9 -1
  244. package/dist/chunk-2WGTGBBS.js +0 -2
  245. package/dist/chunk-3G44SFHX.mjs +0 -4
  246. package/dist/chunk-77GRQUSK.js +0 -1
  247. package/dist/chunk-7LRR7RKE.mjs +0 -15
  248. package/dist/chunk-CRMZH7U7.mjs +0 -2
  249. package/dist/chunk-D3PRIF3Y.mjs +0 -1
  250. package/dist/chunk-EM33RGHT.mjs +0 -1
  251. package/dist/chunk-ESCPS4AO.mjs +0 -1
  252. package/dist/chunk-EUZLYQRB.mjs +0 -1
  253. package/dist/chunk-EV4LVK4X.js +0 -1
  254. package/dist/chunk-FW23IMBF.mjs +0 -1
  255. package/dist/chunk-HKN2NKOG.mjs +0 -1
  256. package/dist/chunk-INDYZOOS.js +0 -1
  257. package/dist/chunk-IUJCUITW.mjs +0 -1
  258. package/dist/chunk-IYKBX24M.js +0 -1
  259. package/dist/chunk-JHTURDPX.mjs +0 -1
  260. package/dist/chunk-KAOLVBLH.js +0 -1
  261. package/dist/chunk-L5NPEM7C.js +0 -1
  262. package/dist/chunk-LERLET2D.js +0 -4
  263. package/dist/chunk-MNOHUTKE.js +0 -15
  264. package/dist/chunk-NAFMAKLK.js +0 -2
  265. package/dist/chunk-OEC6SBDV.mjs +0 -1
  266. package/dist/chunk-OTHV7YV2.js +0 -2
  267. package/dist/chunk-QAJSNLJR.mjs +0 -1
  268. package/dist/chunk-RSU4HTC6.js +0 -1
  269. package/dist/chunk-TUIEV7Q7.js +0 -1
  270. package/dist/chunk-U67MWOPZ.mjs +0 -1
  271. package/dist/chunk-UE2ZKRYB.mjs +0 -2
  272. package/dist/chunk-WVERBZZU.js +0 -1
  273. package/dist/chunk-WWNOXNEX.mjs +0 -2
  274. package/dist/chunk-XLB6AC5Q.js +0 -1
  275. package/dist/chunk-YPQACU4A.js +0 -1
  276. package/dist/chunk-ZX26QZJ5.mjs +0 -1
@@ -6,20 +6,30 @@
6
6
  * @packageDocumentation
7
7
  * @public
8
8
  */
9
- import { R as RevisionInfo, C as CellMarker } from '../content-3xF4WDE8.mjs';
10
- import '../formatting-BH4hcZiq.mjs';
9
+ import { R as RevisionInfo, ax as CellMarker } from '../content-BlWiORm-.mjs';
10
+ import '../formatting-DFtuRFQY.mjs';
11
11
  import '../colors-C3vA7HUU.mjs';
12
12
  import '../docx/wrapTypes.mjs';
13
+ import '../lists-CyGxd5Y2.mjs';
13
14
  import '../watermark-DAcnAs_J.mjs';
14
15
 
15
16
  /**
16
- * Layout Engine Types
17
- *
18
- * Core types for the paginated layout engine.
19
- * Converts document blocks + measurements into positioned fragments on pages.
20
- * @packageDocumentation
21
- * @public
17
+ * Inline SDT widget metadata carried by a painted text run.
22
18
  */
19
+ interface InlineSdtWidget {
20
+ kind: 'checkbox';
21
+ /** Stable per-document id derived from the ProseMirror node position. */
22
+ groupId: string;
23
+ /** ProseMirror position of the inline SDT node. */
24
+ pos: number;
25
+ /** Word tag value (`w:tag`). */
26
+ tag?: string;
27
+ /** Word alias value (`w:alias`). */
28
+ alias?: string;
29
+ /** Live checkbox glyph state. */
30
+ checked?: boolean;
31
+ }
32
+
23
33
  /**
24
34
  * Unique identifier for a block in the document.
25
35
  * Format: typically `${index}-${type}` or just the block index.
@@ -135,6 +145,8 @@ type TextRun = RunFormatting & {
135
145
  pmStart?: number;
136
146
  /** Absolute ProseMirror position (exclusive) after last character. */
137
147
  pmEnd?: number;
148
+ /** Inline content-control widget metadata when this run is the visible glyph. */
149
+ inlineSdtWidget?: InlineSdtWidget;
138
150
  };
139
151
  /**
140
152
  * A tab character run.
@@ -1007,4 +1019,4 @@ type DocumentPosition = {
1007
1019
  pmPos?: number;
1008
1020
  };
1009
1021
 
1010
- export { type BlockId, type BorderStyle, type CellBorderSpec, type CellBorders, type ColumnBreakBlock, type ColumnBreakMeasure, type ColumnLayout, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, type DocumentPosition, type FieldRun, type FloatingTablePosition, type FlowBlock, type FootnoteContent, type Fragment, type FragmentBase, type HeaderFooterContentHeights, type HeaderFooterLayout, type HitTestResult, type HyperlinkInfo, type ImageBlock, type ImageFragment, type ImageMeasure, type ImageRun, type ImageRunPosition, type Layout, type LayoutOptions, type LineBreakRun, type ListNumPr, type Measure, type MeasuredLine, type MeasuredLineSegment, type Page, type PageBreakBlock, type PageBreakMeasure, type PageMargins, type ParagraphAttrs, type ParagraphBlock, type ParagraphBorders, type ParagraphFragment, type ParagraphIndent, type ParagraphMeasure, type ParagraphSpacing, type Run, type RunFormatting, type SdtGroup, type SectionBreakBlock, type SectionBreakMeasure, type TabAlignment, type TabRun, type TabStop, type TableBlock, type TableCell, type TableCellMeasure, type TableFragment, type TableMeasure, type TableRow, type TableRowMeasure, type TextBoxBlock, type TextBoxFragment, type TextBoxMeasure, type TextRun, type WrapTextDirection, assertExhaustiveFlowBlock };
1022
+ export { type BlockId, type BorderStyle, type CellBorderSpec, type CellBorders, type ColumnBreakBlock, type ColumnBreakMeasure, type ColumnLayout, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, type DocumentPosition, type FieldRun, type FloatingTablePosition, type FlowBlock, type FootnoteContent, type Fragment, type FragmentBase, type HeaderFooterContentHeights, type HeaderFooterLayout, type HitTestResult, type HyperlinkInfo, type ImageBlock, type ImageFragment, type ImageMeasure, type ImageRun, type ImageRunPosition, type InlineSdtWidget, type Layout, type LayoutOptions, type LineBreakRun, type ListNumPr, type Measure, type MeasuredLine, type MeasuredLineSegment, type Page, type PageBreakBlock, type PageBreakMeasure, type PageMargins, type ParagraphAttrs, type ParagraphBlock, type ParagraphBorders, type ParagraphFragment, type ParagraphIndent, type ParagraphMeasure, type ParagraphSpacing, type Run, type RunFormatting, type SdtGroup, type SectionBreakBlock, type SectionBreakMeasure, type TabAlignment, type TabRun, type TabStop, type TableBlock, type TableCell, type TableCellMeasure, type TableFragment, type TableMeasure, type TableRow, type TableRowMeasure, type TextBoxBlock, type TextBoxFragment, type TextBoxMeasure, type TextRun, type WrapTextDirection, assertExhaustiveFlowBlock };
@@ -6,20 +6,30 @@
6
6
  * @packageDocumentation
7
7
  * @public
8
8
  */
9
- import { R as RevisionInfo, C as CellMarker } from '../content-C8fc_tL6.js';
10
- import '../formatting-_OXU8gLB.js';
9
+ import { R as RevisionInfo, ax as CellMarker } from '../content-eG_Rtl0l.js';
10
+ import '../formatting-JhqWT_XM.js';
11
11
  import '../colors-C3vA7HUU.js';
12
12
  import '../docx/wrapTypes.js';
13
+ import '../lists-Bn29SzeS.js';
13
14
  import '../watermark-DAcnAs_J.js';
14
15
 
15
16
  /**
16
- * Layout Engine Types
17
- *
18
- * Core types for the paginated layout engine.
19
- * Converts document blocks + measurements into positioned fragments on pages.
20
- * @packageDocumentation
21
- * @public
17
+ * Inline SDT widget metadata carried by a painted text run.
22
18
  */
19
+ interface InlineSdtWidget {
20
+ kind: 'checkbox';
21
+ /** Stable per-document id derived from the ProseMirror node position. */
22
+ groupId: string;
23
+ /** ProseMirror position of the inline SDT node. */
24
+ pos: number;
25
+ /** Word tag value (`w:tag`). */
26
+ tag?: string;
27
+ /** Word alias value (`w:alias`). */
28
+ alias?: string;
29
+ /** Live checkbox glyph state. */
30
+ checked?: boolean;
31
+ }
32
+
23
33
  /**
24
34
  * Unique identifier for a block in the document.
25
35
  * Format: typically `${index}-${type}` or just the block index.
@@ -135,6 +145,8 @@ type TextRun = RunFormatting & {
135
145
  pmStart?: number;
136
146
  /** Absolute ProseMirror position (exclusive) after last character. */
137
147
  pmEnd?: number;
148
+ /** Inline content-control widget metadata when this run is the visible glyph. */
149
+ inlineSdtWidget?: InlineSdtWidget;
138
150
  };
139
151
  /**
140
152
  * A tab character run.
@@ -1007,4 +1019,4 @@ type DocumentPosition = {
1007
1019
  pmPos?: number;
1008
1020
  };
1009
1021
 
1010
- export { type BlockId, type BorderStyle, type CellBorderSpec, type CellBorders, type ColumnBreakBlock, type ColumnBreakMeasure, type ColumnLayout, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, type DocumentPosition, type FieldRun, type FloatingTablePosition, type FlowBlock, type FootnoteContent, type Fragment, type FragmentBase, type HeaderFooterContentHeights, type HeaderFooterLayout, type HitTestResult, type HyperlinkInfo, type ImageBlock, type ImageFragment, type ImageMeasure, type ImageRun, type ImageRunPosition, type Layout, type LayoutOptions, type LineBreakRun, type ListNumPr, type Measure, type MeasuredLine, type MeasuredLineSegment, type Page, type PageBreakBlock, type PageBreakMeasure, type PageMargins, type ParagraphAttrs, type ParagraphBlock, type ParagraphBorders, type ParagraphFragment, type ParagraphIndent, type ParagraphMeasure, type ParagraphSpacing, type Run, type RunFormatting, type SdtGroup, type SectionBreakBlock, type SectionBreakMeasure, type TabAlignment, type TabRun, type TabStop, type TableBlock, type TableCell, type TableCellMeasure, type TableFragment, type TableMeasure, type TableRow, type TableRowMeasure, type TextBoxBlock, type TextBoxFragment, type TextBoxMeasure, type TextRun, type WrapTextDirection, assertExhaustiveFlowBlock };
1022
+ export { type BlockId, type BorderStyle, type CellBorderSpec, type CellBorders, type ColumnBreakBlock, type ColumnBreakMeasure, type ColumnLayout, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, type DocumentPosition, type FieldRun, type FloatingTablePosition, type FlowBlock, type FootnoteContent, type Fragment, type FragmentBase, type HeaderFooterContentHeights, type HeaderFooterLayout, type HitTestResult, type HyperlinkInfo, type ImageBlock, type ImageFragment, type ImageMeasure, type ImageRun, type ImageRunPosition, type InlineSdtWidget, type Layout, type LayoutOptions, type LineBreakRun, type ListNumPr, type Measure, type MeasuredLine, type MeasuredLineSegment, type Page, type PageBreakBlock, type PageBreakMeasure, type PageMargins, type ParagraphAttrs, type ParagraphBlock, type ParagraphBorders, type ParagraphFragment, type ParagraphIndent, type ParagraphMeasure, type ParagraphSpacing, type Run, type RunFormatting, type SdtGroup, type SectionBreakBlock, type SectionBreakMeasure, type TabAlignment, type TabRun, type TabStop, type TableBlock, type TableCell, type TableCellMeasure, type TableFragment, type TableMeasure, type TableRow, type TableRowMeasure, type TextBoxBlock, type TextBoxFragment, type TextBoxMeasure, type TextRun, type WrapTextDirection, assertExhaustiveFlowBlock };
@@ -14,12 +14,13 @@ import '../layout-engine/types.mjs';
14
14
  export { B as BlockLookup, a as BlockLookupEntry, F as FRAGMENT_CLASS_NAMES, I as IMAGE_CLASS_NAMES, b as IMAGE_LAYOUT_OPTIONS, c as ImageHitTestResult, d as ImageLayoutIconHint, e as ImageLayoutOptionDef, L as LAYOUT_IMAGE_CLASSES, f as LayoutPainter, P as PainterOptions, RenderContext, RenderPageOptions, RenderPagesUpdateKind, T as TABLE_CLASS_NAMES, g as TEXTBOX_CLASS_NAMES, h as applySdtFocus, i as buildBlockLookup, j as captureInlinePositionEmu, k as createPainter, l as deriveLayoutChoice, m as enclosingSdtGroupIds, n as findImageElement, o as hitTestImage, isFloatingImageRun, p as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, renderAllPagesNow, r as renderFragment, q as renderImageFragment, s as renderLine, renderPage, renderPages, t as renderParagraphFragment, u as renderTableFragment, v as renderTextBoxFragment, w as sliceRunsForLine, x as toolbarValueToLayoutTarget } from './renderPage.mjs';
15
15
  export { P as PageGeometry, p as pageGeometryFromPage, r as resolveAnchoredObjectPosition, a as resolveAnchoredObjectVerticalTop } from '../anchoredObjectPosition-KJEyF-wr.mjs';
16
16
  export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-BZ24OTAT.mjs';
17
- import '../content-3xF4WDE8.mjs';
18
- import '../formatting-BH4hcZiq.mjs';
17
+ import '../content-BlWiORm-.mjs';
18
+ import '../formatting-DFtuRFQY.mjs';
19
19
  import '../colors-C3vA7HUU.mjs';
20
20
  import '../docx/wrapTypes.mjs';
21
+ import '../lists-CyGxd5Y2.mjs';
21
22
  import '../watermark-DAcnAs_J.mjs';
22
23
  import 'prosemirror-model';
23
- import '../nodes-cEI7hVY2.mjs';
24
+ import '../nodes-RfTS-NSv.mjs';
24
25
  import '../ImageExtension-BN327PNe.mjs';
25
- import '../styles-BOJ93SAm.mjs';
26
+ import '../styles-Dqec8Aw6.mjs';
@@ -14,12 +14,13 @@ import '../layout-engine/types.js';
14
14
  export { B as BlockLookup, a as BlockLookupEntry, F as FRAGMENT_CLASS_NAMES, I as IMAGE_CLASS_NAMES, b as IMAGE_LAYOUT_OPTIONS, c as ImageHitTestResult, d as ImageLayoutIconHint, e as ImageLayoutOptionDef, L as LAYOUT_IMAGE_CLASSES, f as LayoutPainter, P as PainterOptions, RenderContext, RenderPageOptions, RenderPagesUpdateKind, T as TABLE_CLASS_NAMES, g as TEXTBOX_CLASS_NAMES, h as applySdtFocus, i as buildBlockLookup, j as captureInlinePositionEmu, k as createPainter, l as deriveLayoutChoice, m as enclosingSdtGroupIds, n as findImageElement, o as hitTestImage, isFloatingImageRun, p as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, renderAllPagesNow, r as renderFragment, q as renderImageFragment, s as renderLine, renderPage, renderPages, t as renderParagraphFragment, u as renderTableFragment, v as renderTextBoxFragment, w as sliceRunsForLine, x as toolbarValueToLayoutTarget } from './renderPage.js';
15
15
  export { P as PageGeometry, p as pageGeometryFromPage, r as resolveAnchoredObjectPosition, a as resolveAnchoredObjectVerticalTop } from '../anchoredObjectPosition-CS-8BfhO.js';
16
16
  export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-DMsicPGd.js';
17
- import '../content-C8fc_tL6.js';
18
- import '../formatting-_OXU8gLB.js';
17
+ import '../content-eG_Rtl0l.js';
18
+ import '../formatting-JhqWT_XM.js';
19
19
  import '../colors-C3vA7HUU.js';
20
20
  import '../docx/wrapTypes.js';
21
+ import '../lists-Bn29SzeS.js';
21
22
  import '../watermark-DAcnAs_J.js';
22
23
  import 'prosemirror-model';
23
- import '../nodes-75Q9GBxV.js';
24
+ import '../nodes-BJef4KFW.js';
24
25
  import '../ImageExtension-BlI5afZD.js';
25
- import '../styles-BWqX2AS-.js';
26
+ import '../styles-gEujs7j6.js';
@@ -1 +1 @@
1
- 'use strict';var chunkZBCFIW2V_js=require('../chunk-ZBCFIW2V.js'),chunkKAOLVBLH_js=require('../chunk-KAOLVBLH.js');require('../chunk-YPQACU4A.js');var chunkJ3YFJDZD_js=require('../chunk-J3YFJDZD.js');require('../chunk-RSU4HTC6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-XLB6AC5Q.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-L5NPEM7C.js'),require('../chunk-2WGTGBBS.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"IMAGE_LAYOUT_OPTIONS",{enumerable:true,get:function(){return chunkZBCFIW2V_js.f}});Object.defineProperty(exports,"LAYOUT_IMAGE_CLASSES",{enumerable:true,get:function(){return chunkZBCFIW2V_js.a}});Object.defineProperty(exports,"LayoutPainter",{enumerable:true,get:function(){return chunkZBCFIW2V_js.j}});Object.defineProperty(exports,"buildBlockLookup",{enumerable:true,get:function(){return chunkZBCFIW2V_js.i}});Object.defineProperty(exports,"captureInlinePositionEmu",{enumerable:true,get:function(){return chunkZBCFIW2V_js.d}});Object.defineProperty(exports,"createPainter",{enumerable:true,get:function(){return chunkZBCFIW2V_js.k}});Object.defineProperty(exports,"deriveLayoutChoice",{enumerable:true,get:function(){return chunkZBCFIW2V_js.e}});Object.defineProperty(exports,"findImageElement",{enumerable:true,get:function(){return chunkZBCFIW2V_js.c}});Object.defineProperty(exports,"hitTestImage",{enumerable:true,get:function(){return chunkZBCFIW2V_js.b}});Object.defineProperty(exports,"isImageLayoutOptionEnabled",{enumerable:true,get:function(){return chunkZBCFIW2V_js.g}});Object.defineProperty(exports,"toolbarValueToLayoutTarget",{enumerable:true,get:function(){return chunkZBCFIW2V_js.h}});Object.defineProperty(exports,"FRAGMENT_CLASS_NAMES",{enumerable:true,get:function(){return chunkKAOLVBLH_js.n}});Object.defineProperty(exports,"IMAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkKAOLVBLH_js.p}});Object.defineProperty(exports,"TABLE_CLASS_NAMES",{enumerable:true,get:function(){return chunkKAOLVBLH_js.v}});Object.defineProperty(exports,"TEXTBOX_CLASS_NAMES",{enumerable:true,get:function(){return chunkKAOLVBLH_js.x}});Object.defineProperty(exports,"applySdtFocus",{enumerable:true,get:function(){return chunkKAOLVBLH_js.m}});Object.defineProperty(exports,"enclosingSdtGroupIds",{enumerable:true,get:function(){return chunkKAOLVBLH_js.l}});Object.defineProperty(exports,"renderAllPagesNow",{enumerable:true,get:function(){return chunkKAOLVBLH_js.C}});Object.defineProperty(exports,"renderFragment",{enumerable:true,get:function(){return chunkKAOLVBLH_js.o}});Object.defineProperty(exports,"renderImageFragment",{enumerable:true,get:function(){return chunkKAOLVBLH_js.q}});Object.defineProperty(exports,"renderLine",{enumerable:true,get:function(){return chunkKAOLVBLH_js.s}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkKAOLVBLH_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkKAOLVBLH_js.B}});Object.defineProperty(exports,"renderParagraphFragment",{enumerable:true,get:function(){return chunkKAOLVBLH_js.t}});Object.defineProperty(exports,"renderTableFragment",{enumerable:true,get:function(){return chunkKAOLVBLH_js.w}});Object.defineProperty(exports,"renderTextBoxFragment",{enumerable:true,get:function(){return chunkKAOLVBLH_js.y}});Object.defineProperty(exports,"sliceRunsForLine",{enumerable:true,get:function(){return chunkKAOLVBLH_js.r}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.c}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.d}});Object.defineProperty(exports,"pageGeometryFromPage",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.f}});Object.defineProperty(exports,"resolveAnchoredObjectPosition",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.g}});Object.defineProperty(exports,"resolveAnchoredObjectVerticalTop",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.h}});
1
+ 'use strict';var chunkGB7RICH6_js=require('../chunk-GB7RICH6.js'),chunkQXSDGNJ4_js=require('../chunk-QXSDGNJ4.js');require('../chunk-BTSL4AYY.js');var chunkZETEPB7I_js=require('../chunk-ZETEPB7I.js');require('../chunk-TAQTZAVZ.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-AA6D2C6R.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-UXPY65AC.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-O2643IUW.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-ND33YQGU.js'),require('../chunk-DZ3FN3JI.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-5WINQXA3.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-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-H57LNDBH.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"IMAGE_LAYOUT_OPTIONS",{enumerable:true,get:function(){return chunkGB7RICH6_js.f}});Object.defineProperty(exports,"LAYOUT_IMAGE_CLASSES",{enumerable:true,get:function(){return chunkGB7RICH6_js.a}});Object.defineProperty(exports,"LayoutPainter",{enumerable:true,get:function(){return chunkGB7RICH6_js.j}});Object.defineProperty(exports,"buildBlockLookup",{enumerable:true,get:function(){return chunkGB7RICH6_js.i}});Object.defineProperty(exports,"captureInlinePositionEmu",{enumerable:true,get:function(){return chunkGB7RICH6_js.d}});Object.defineProperty(exports,"createPainter",{enumerable:true,get:function(){return chunkGB7RICH6_js.k}});Object.defineProperty(exports,"deriveLayoutChoice",{enumerable:true,get:function(){return chunkGB7RICH6_js.e}});Object.defineProperty(exports,"findImageElement",{enumerable:true,get:function(){return chunkGB7RICH6_js.c}});Object.defineProperty(exports,"hitTestImage",{enumerable:true,get:function(){return chunkGB7RICH6_js.b}});Object.defineProperty(exports,"isImageLayoutOptionEnabled",{enumerable:true,get:function(){return chunkGB7RICH6_js.g}});Object.defineProperty(exports,"toolbarValueToLayoutTarget",{enumerable:true,get:function(){return chunkGB7RICH6_js.h}});Object.defineProperty(exports,"FRAGMENT_CLASS_NAMES",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.n}});Object.defineProperty(exports,"IMAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.p}});Object.defineProperty(exports,"TABLE_CLASS_NAMES",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.v}});Object.defineProperty(exports,"TEXTBOX_CLASS_NAMES",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.x}});Object.defineProperty(exports,"applySdtFocus",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.m}});Object.defineProperty(exports,"enclosingSdtGroupIds",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.l}});Object.defineProperty(exports,"renderAllPagesNow",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.C}});Object.defineProperty(exports,"renderFragment",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.o}});Object.defineProperty(exports,"renderImageFragment",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.q}});Object.defineProperty(exports,"renderLine",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.s}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.B}});Object.defineProperty(exports,"renderParagraphFragment",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.t}});Object.defineProperty(exports,"renderTableFragment",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.w}});Object.defineProperty(exports,"renderTextBoxFragment",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.y}});Object.defineProperty(exports,"sliceRunsForLine",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.r}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkZETEPB7I_js.c}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkZETEPB7I_js.d}});Object.defineProperty(exports,"pageGeometryFromPage",{enumerable:true,get:function(){return chunkZETEPB7I_js.f}});Object.defineProperty(exports,"resolveAnchoredObjectPosition",{enumerable:true,get:function(){return chunkZETEPB7I_js.g}});Object.defineProperty(exports,"resolveAnchoredObjectVerticalTop",{enumerable:true,get:function(){return chunkZETEPB7I_js.h}});
@@ -1 +1 @@
1
- export{f as IMAGE_LAYOUT_OPTIONS,a as LAYOUT_IMAGE_CLASSES,j as LayoutPainter,i as buildBlockLookup,d as captureInlinePositionEmu,k as createPainter,e as deriveLayoutChoice,c as findImageElement,b as hitTestImage,g as isImageLayoutOptionEnabled,h as toolbarValueToLayoutTarget}from'../chunk-HPAUUQAX.mjs';export{n as FRAGMENT_CLASS_NAMES,p as IMAGE_CLASS_NAMES,v as TABLE_CLASS_NAMES,x as TEXTBOX_CLASS_NAMES,m as applySdtFocus,l as enclosingSdtGroupIds,C as renderAllPagesNow,o as renderFragment,q as renderImageFragment,s as renderLine,F as renderPage,B as renderPages,t as renderParagraphFragment,w as renderTableFragment,y as renderTextBoxFragment,r as sliceRunsForLine}from'../chunk-OEC6SBDV.mjs';import'../chunk-HKN2NKOG.mjs';export{c as isFloatingImageRun,d as isTextWrappingFloatingImageRun,f as pageGeometryFromPage,g as resolveAnchoredObjectPosition,h as resolveAnchoredObjectVerticalTop}from'../chunk-55XWETY4.mjs';import'../chunk-JHTURDPX.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-IUJCUITW.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QAJSNLJR.mjs';import'../chunk-CRMZH7U7.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{f as IMAGE_LAYOUT_OPTIONS,a as LAYOUT_IMAGE_CLASSES,j as LayoutPainter,i as buildBlockLookup,d as captureInlinePositionEmu,k as createPainter,e as deriveLayoutChoice,c as findImageElement,b as hitTestImage,g as isImageLayoutOptionEnabled,h as toolbarValueToLayoutTarget}from'../chunk-CBKJOPOW.mjs';export{n as FRAGMENT_CLASS_NAMES,p as IMAGE_CLASS_NAMES,v as TABLE_CLASS_NAMES,x as TEXTBOX_CLASS_NAMES,m as applySdtFocus,l as enclosingSdtGroupIds,C as renderAllPagesNow,o as renderFragment,q as renderImageFragment,s as renderLine,F as renderPage,B as renderPages,t as renderParagraphFragment,w as renderTableFragment,y as renderTextBoxFragment,r as sliceRunsForLine}from'../chunk-YHXVNJK5.mjs';import'../chunk-L6ZRNW7Y.mjs';export{c as isFloatingImageRun,d as isTextWrappingFloatingImageRun,f as pageGeometryFromPage,g as resolveAnchoredObjectPosition,h as resolveAnchoredObjectVerticalTop}from'../chunk-EZNVVB63.mjs';import'../chunk-4RQAAKQI.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-RT52EYG3.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-SHYNWAW6.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-AMJNIGO2.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-SNTAAXXA.mjs';import'../chunk-ENIWJBS7.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-M7KTKPGO.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-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-VJFIAFZ5.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -15,16 +15,17 @@
15
15
  import { ImageRun, Page, ParagraphBlock, MeasuredLine, TabStop, Run, ParagraphFragment, ParagraphMeasure, ParagraphBorders, Fragment, TableFragment, TableBlock, TableMeasure, ImageFragment, ImageBlock, ImageMeasure, TextBoxFragment, TextBoxBlock, TextBoxMeasure, FlowBlock, Measure, Layout } from '../layout-engine/types.mjs';
16
16
  import '../anchoredObjectPosition-KJEyF-wr.mjs';
17
17
  import { Node } from 'prosemirror-model';
18
- import { I as ImageAttrs } from '../nodes-cEI7hVY2.mjs';
18
+ import { I as ImageAttrs } from '../nodes-RfTS-NSv.mjs';
19
19
  import { I as ImageLayoutTarget } from '../ImageExtension-BN327PNe.mjs';
20
20
  import { WrapType } from '../docx/wrapTypes.mjs';
21
21
  import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-BZ24OTAT.mjs';
22
22
  export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-BZ24OTAT.mjs';
23
23
  import { B as BorderSpec } from '../colors-C3vA7HUU.mjs';
24
24
  import { W as Watermark } from '../watermark-DAcnAs_J.mjs';
25
- import { T as Theme } from '../styles-BOJ93SAm.mjs';
26
- import '../content-3xF4WDE8.mjs';
27
- import '../formatting-BH4hcZiq.mjs';
25
+ import { T as Theme } from '../styles-Dqec8Aw6.mjs';
26
+ import '../content-BlWiORm-.mjs';
27
+ import '../formatting-DFtuRFQY.mjs';
28
+ import '../lists-CyGxd5Y2.mjs';
28
29
 
29
30
  /**
30
31
  * Whether a floating image record reserves space in the text-wrap calculation.
@@ -15,16 +15,17 @@
15
15
  import { ImageRun, Page, ParagraphBlock, MeasuredLine, TabStop, Run, ParagraphFragment, ParagraphMeasure, ParagraphBorders, Fragment, TableFragment, TableBlock, TableMeasure, ImageFragment, ImageBlock, ImageMeasure, TextBoxFragment, TextBoxBlock, TextBoxMeasure, FlowBlock, Measure, Layout } from '../layout-engine/types.js';
16
16
  import '../anchoredObjectPosition-CS-8BfhO.js';
17
17
  import { Node } from 'prosemirror-model';
18
- import { I as ImageAttrs } from '../nodes-75Q9GBxV.js';
18
+ import { I as ImageAttrs } from '../nodes-BJef4KFW.js';
19
19
  import { I as ImageLayoutTarget } from '../ImageExtension-BlI5afZD.js';
20
20
  import { WrapType } from '../docx/wrapTypes.js';
21
21
  import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-DMsicPGd.js';
22
22
  export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-DMsicPGd.js';
23
23
  import { B as BorderSpec } from '../colors-C3vA7HUU.js';
24
24
  import { W as Watermark } from '../watermark-DAcnAs_J.js';
25
- import { T as Theme } from '../styles-BWqX2AS-.js';
26
- import '../content-C8fc_tL6.js';
27
- import '../formatting-_OXU8gLB.js';
25
+ import { T as Theme } from '../styles-gEujs7j6.js';
26
+ import '../content-eG_Rtl0l.js';
27
+ import '../formatting-JhqWT_XM.js';
28
+ import '../lists-Bn29SzeS.js';
28
29
 
29
30
  /**
30
31
  * Whether a floating image record reserves space in the text-wrap calculation.
@@ -1 +1 @@
1
- 'use strict';var chunkKAOLVBLH_js=require('../chunk-KAOLVBLH.js');require('../chunk-YPQACU4A.js');var chunkJ3YFJDZD_js=require('../chunk-J3YFJDZD.js');require('../chunk-RSU4HTC6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-XLB6AC5Q.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-L5NPEM7C.js'),require('../chunk-2WGTGBBS.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkKAOLVBLH_js.D}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunkKAOLVBLH_js.E}});Object.defineProperty(exports,"renderAllPagesNow",{enumerable:true,get:function(){return chunkKAOLVBLH_js.C}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunkKAOLVBLH_js.u}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkKAOLVBLH_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkKAOLVBLH_js.B}});Object.defineProperty(exports,"resolveHeaderFooterFloatLeft",{enumerable:true,get:function(){return chunkKAOLVBLH_js.z}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunkKAOLVBLH_js.A}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.b}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.a}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.c}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.d}});
1
+ 'use strict';var chunkQXSDGNJ4_js=require('../chunk-QXSDGNJ4.js');require('../chunk-BTSL4AYY.js');var chunkZETEPB7I_js=require('../chunk-ZETEPB7I.js');require('../chunk-TAQTZAVZ.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-AA6D2C6R.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-UXPY65AC.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-O2643IUW.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-ND33YQGU.js'),require('../chunk-DZ3FN3JI.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-5WINQXA3.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-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-H57LNDBH.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.D}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.E}});Object.defineProperty(exports,"renderAllPagesNow",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.C}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.u}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.B}});Object.defineProperty(exports,"resolveHeaderFooterFloatLeft",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.z}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunkQXSDGNJ4_js.A}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunkZETEPB7I_js.b}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunkZETEPB7I_js.a}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkZETEPB7I_js.c}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkZETEPB7I_js.d}});
@@ -1 +1 @@
1
- export{D as PAGE_CLASS_NAMES,E as applyPageStyles,C as renderAllPagesNow,u as renderFloatingImagesLayer,F as renderPage,B as renderPages,z as resolveHeaderFooterFloatLeft,A as resolveHeaderFooterFloatingTablePosition}from'../chunk-OEC6SBDV.mjs';import'../chunk-HKN2NKOG.mjs';export{b as floatingImageIsBehindDoc,a as floatingImageWrapsText,c as isFloatingImageRun,d as isTextWrappingFloatingImageRun}from'../chunk-55XWETY4.mjs';import'../chunk-JHTURDPX.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-IUJCUITW.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QAJSNLJR.mjs';import'../chunk-CRMZH7U7.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{D as PAGE_CLASS_NAMES,E as applyPageStyles,C as renderAllPagesNow,u as renderFloatingImagesLayer,F as renderPage,B as renderPages,z as resolveHeaderFooterFloatLeft,A as resolveHeaderFooterFloatingTablePosition}from'../chunk-YHXVNJK5.mjs';import'../chunk-L6ZRNW7Y.mjs';export{b as floatingImageIsBehindDoc,a as floatingImageWrapsText,c as isFloatingImageRun,d as isTextWrappingFloatingImageRun}from'../chunk-EZNVVB63.mjs';import'../chunk-4RQAAKQI.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-RT52EYG3.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-SHYNWAW6.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-AMJNIGO2.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-SNTAAXXA.mjs';import'../chunk-ENIWJBS7.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-M7KTKPGO.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-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-VJFIAFZ5.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -0,0 +1,148 @@
1
+ import { P as ParagraphFormatting, T as TextFormatting } from './formatting-JhqWT_XM.js';
2
+
3
+ /**
4
+ * Lists & Numbering Types
5
+ *
6
+ * Types for bullet lists, numbered lists, and numbering definitions.
7
+ */
8
+
9
+ /**
10
+ * Number format type
11
+ */
12
+ 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' | 'decimalZero3' | 'decimalZero4' | 'decimalZero5' | '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';
13
+ /**
14
+ * Multi-level suffix (what follows the number)
15
+ */
16
+ type LevelSuffix = 'tab' | 'space' | 'nothing';
17
+ /**
18
+ * One indentation level of an abstract numbering definition (`w:lvl`).
19
+ * Carries the number format, the marker template (`lvlText` — e.g.
20
+ * `"%1.%2."`), the level's paragraph properties (indent, hanging) and
21
+ * character properties (font, size, color for the marker itself).
22
+ *
23
+ * `ilvl` ranges 0-8 in standard Word documents.
24
+ */
25
+ interface ListLevel {
26
+ /** Level index (0-8) */
27
+ ilvl: number;
28
+ /** Starting number */
29
+ start?: number;
30
+ /** Number format */
31
+ numFmt: NumberFormat;
32
+ /** Level text (e.g., "%1." or "•") */
33
+ lvlText: string;
34
+ /** Justification */
35
+ lvlJc?: 'left' | 'center' | 'right';
36
+ /** Suffix after number */
37
+ suffix?: LevelSuffix;
38
+ /** Paragraph properties for this level */
39
+ pPr?: ParagraphFormatting;
40
+ /** Run properties for the number/bullet */
41
+ rPr?: TextFormatting;
42
+ /** Restart numbering from higher level */
43
+ lvlRestart?: number;
44
+ /** Is legal numbering style */
45
+ isLgl?: boolean;
46
+ /** Legacy settings */
47
+ legacy?: {
48
+ legacy?: boolean;
49
+ legacySpace?: number;
50
+ legacyIndent?: number;
51
+ };
52
+ }
53
+ /**
54
+ * Abstract numbering definition (`w:abstractNum`) — the reusable template
55
+ * for a list: which `NumberFormat` at each indentation level, what
56
+ * marker text, what paragraph/character formatting. Multiple
57
+ * `NumberingInstance`s (`w:num`) can reference one abstract numbering
58
+ * to share the template while keeping independent counters.
59
+ *
60
+ * See ECMA-376 §17.9.
61
+ */
62
+ interface AbstractNumbering {
63
+ /** Abstract numbering ID */
64
+ abstractNumId: number;
65
+ /** Multi-level type */
66
+ multiLevelType?: 'hybridMultilevel' | 'multilevel' | 'singleLevel';
67
+ /** Numbering style link */
68
+ numStyleLink?: string;
69
+ /** Style link */
70
+ styleLink?: string;
71
+ /** Level definitions */
72
+ levels: ListLevel[];
73
+ /** Name */
74
+ name?: string;
75
+ }
76
+ /**
77
+ * Numbering instance (w:num)
78
+ */
79
+ interface NumberingInstance {
80
+ /** Numbering ID (referenced by paragraphs) */
81
+ numId: number;
82
+ /** Reference to abstract numbering */
83
+ abstractNumId: number;
84
+ /** Level overrides */
85
+ levelOverrides?: Array<{
86
+ ilvl: number;
87
+ startOverride?: number;
88
+ lvl?: ListLevel;
89
+ }>;
90
+ }
91
+ /**
92
+ * Computed list marker for one paragraph — what the layout engine and
93
+ * painter need to render the "1.", "a)", "•" prefix. Not part of the
94
+ * wire format; the parser fills this from the `numbering.xml` chain plus
95
+ * the paragraph's `numPr`. Paragraphs without list rendering omit it.
96
+ */
97
+ interface ListRendering {
98
+ /** Computed marker text (e.g., "1.", "a)", "•") */
99
+ marker: string;
100
+ /** List level (0-8) */
101
+ level: number;
102
+ /** Numbering ID */
103
+ numId: number;
104
+ /** Whether this is a bullet or numbered list */
105
+ isBullet: boolean;
106
+ /** Number format type (decimal, lowerRoman, upperRoman, etc.) */
107
+ numFmt?: NumberFormat;
108
+ /** Whether the list marker is hidden (w:vanish on level rPr) */
109
+ markerHidden?: boolean;
110
+ /** Marker font family from numbering level rPr (ascii name) */
111
+ markerFontFamily?: string;
112
+ /** Marker font size from numbering level rPr, in points */
113
+ markerFontSize?: number;
114
+ /**
115
+ * Suffix character placed after the marker before body text (§17.9.25).
116
+ * Default is `tab`; `space` inserts a single space; `nothing` no gap.
117
+ * Drives marker-slot sizing in `getListMarkerInlineWidth`.
118
+ */
119
+ markerSuffix?: LevelSuffix;
120
+ /**
121
+ * NumberFormat for each level from 0..ilvl (inclusive).
122
+ * Used to resolve multi-level templates like "%1.%2." where each %N
123
+ * may need a different format (e.g., upperRoman parent + decimal child).
124
+ */
125
+ levelNumFmts?: NumberFormat[];
126
+ /** abstractNumId the paragraph's numId points to (counters key on this). */
127
+ abstractNumId?: number;
128
+ /**
129
+ * Start value from the numId's lvlOverride for the paragraph's ilvl, if any.
130
+ * Per ECMA-376 §17.9.18, this resets the shared abstractNum counter the
131
+ * first time the numId appears.
132
+ */
133
+ startOverride?: number;
134
+ }
135
+ /**
136
+ * Top-level numbering data from `numbering.xml` — the set of abstract
137
+ * templates and the per-document `NumberingInstance`s that reference
138
+ * them. Paragraphs reference a `numId` (instance), not an
139
+ * `abstractNumId` directly.
140
+ */
141
+ interface NumberingDefinitions {
142
+ /** Abstract numbering definitions */
143
+ abstractNums: AbstractNumbering[];
144
+ /** Numbering instances */
145
+ nums: NumberingInstance[];
146
+ }
147
+
148
+ export type { AbstractNumbering as A, ListLevel as L, NumberFormat as N, NumberingDefinitions as a, NumberingInstance as b, ListRendering as c, LevelSuffix as d };
@@ -0,0 +1,148 @@
1
+ import { P as ParagraphFormatting, T as TextFormatting } from './formatting-DFtuRFQY.mjs';
2
+
3
+ /**
4
+ * Lists & Numbering Types
5
+ *
6
+ * Types for bullet lists, numbered lists, and numbering definitions.
7
+ */
8
+
9
+ /**
10
+ * Number format type
11
+ */
12
+ 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' | 'decimalZero3' | 'decimalZero4' | 'decimalZero5' | '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';
13
+ /**
14
+ * Multi-level suffix (what follows the number)
15
+ */
16
+ type LevelSuffix = 'tab' | 'space' | 'nothing';
17
+ /**
18
+ * One indentation level of an abstract numbering definition (`w:lvl`).
19
+ * Carries the number format, the marker template (`lvlText` — e.g.
20
+ * `"%1.%2."`), the level's paragraph properties (indent, hanging) and
21
+ * character properties (font, size, color for the marker itself).
22
+ *
23
+ * `ilvl` ranges 0-8 in standard Word documents.
24
+ */
25
+ interface ListLevel {
26
+ /** Level index (0-8) */
27
+ ilvl: number;
28
+ /** Starting number */
29
+ start?: number;
30
+ /** Number format */
31
+ numFmt: NumberFormat;
32
+ /** Level text (e.g., "%1." or "•") */
33
+ lvlText: string;
34
+ /** Justification */
35
+ lvlJc?: 'left' | 'center' | 'right';
36
+ /** Suffix after number */
37
+ suffix?: LevelSuffix;
38
+ /** Paragraph properties for this level */
39
+ pPr?: ParagraphFormatting;
40
+ /** Run properties for the number/bullet */
41
+ rPr?: TextFormatting;
42
+ /** Restart numbering from higher level */
43
+ lvlRestart?: number;
44
+ /** Is legal numbering style */
45
+ isLgl?: boolean;
46
+ /** Legacy settings */
47
+ legacy?: {
48
+ legacy?: boolean;
49
+ legacySpace?: number;
50
+ legacyIndent?: number;
51
+ };
52
+ }
53
+ /**
54
+ * Abstract numbering definition (`w:abstractNum`) — the reusable template
55
+ * for a list: which `NumberFormat` at each indentation level, what
56
+ * marker text, what paragraph/character formatting. Multiple
57
+ * `NumberingInstance`s (`w:num`) can reference one abstract numbering
58
+ * to share the template while keeping independent counters.
59
+ *
60
+ * See ECMA-376 §17.9.
61
+ */
62
+ interface AbstractNumbering {
63
+ /** Abstract numbering ID */
64
+ abstractNumId: number;
65
+ /** Multi-level type */
66
+ multiLevelType?: 'hybridMultilevel' | 'multilevel' | 'singleLevel';
67
+ /** Numbering style link */
68
+ numStyleLink?: string;
69
+ /** Style link */
70
+ styleLink?: string;
71
+ /** Level definitions */
72
+ levels: ListLevel[];
73
+ /** Name */
74
+ name?: string;
75
+ }
76
+ /**
77
+ * Numbering instance (w:num)
78
+ */
79
+ interface NumberingInstance {
80
+ /** Numbering ID (referenced by paragraphs) */
81
+ numId: number;
82
+ /** Reference to abstract numbering */
83
+ abstractNumId: number;
84
+ /** Level overrides */
85
+ levelOverrides?: Array<{
86
+ ilvl: number;
87
+ startOverride?: number;
88
+ lvl?: ListLevel;
89
+ }>;
90
+ }
91
+ /**
92
+ * Computed list marker for one paragraph — what the layout engine and
93
+ * painter need to render the "1.", "a)", "•" prefix. Not part of the
94
+ * wire format; the parser fills this from the `numbering.xml` chain plus
95
+ * the paragraph's `numPr`. Paragraphs without list rendering omit it.
96
+ */
97
+ interface ListRendering {
98
+ /** Computed marker text (e.g., "1.", "a)", "•") */
99
+ marker: string;
100
+ /** List level (0-8) */
101
+ level: number;
102
+ /** Numbering ID */
103
+ numId: number;
104
+ /** Whether this is a bullet or numbered list */
105
+ isBullet: boolean;
106
+ /** Number format type (decimal, lowerRoman, upperRoman, etc.) */
107
+ numFmt?: NumberFormat;
108
+ /** Whether the list marker is hidden (w:vanish on level rPr) */
109
+ markerHidden?: boolean;
110
+ /** Marker font family from numbering level rPr (ascii name) */
111
+ markerFontFamily?: string;
112
+ /** Marker font size from numbering level rPr, in points */
113
+ markerFontSize?: number;
114
+ /**
115
+ * Suffix character placed after the marker before body text (§17.9.25).
116
+ * Default is `tab`; `space` inserts a single space; `nothing` no gap.
117
+ * Drives marker-slot sizing in `getListMarkerInlineWidth`.
118
+ */
119
+ markerSuffix?: LevelSuffix;
120
+ /**
121
+ * NumberFormat for each level from 0..ilvl (inclusive).
122
+ * Used to resolve multi-level templates like "%1.%2." where each %N
123
+ * may need a different format (e.g., upperRoman parent + decimal child).
124
+ */
125
+ levelNumFmts?: NumberFormat[];
126
+ /** abstractNumId the paragraph's numId points to (counters key on this). */
127
+ abstractNumId?: number;
128
+ /**
129
+ * Start value from the numId's lvlOverride for the paragraph's ilvl, if any.
130
+ * Per ECMA-376 §17.9.18, this resets the shared abstractNum counter the
131
+ * first time the numId appears.
132
+ */
133
+ startOverride?: number;
134
+ }
135
+ /**
136
+ * Top-level numbering data from `numbering.xml` — the set of abstract
137
+ * templates and the per-document `NumberingInstance`s that reference
138
+ * them. Paragraphs reference a `numId` (instance), not an
139
+ * `abstractNumId` directly.
140
+ */
141
+ interface NumberingDefinitions {
142
+ /** Abstract numbering definitions */
143
+ abstractNums: AbstractNumbering[];
144
+ /** Numbering instances */
145
+ nums: NumberingInstance[];
146
+ }
147
+
148
+ export type { AbstractNumbering as A, ListLevel as L, NumberFormat as N, NumberingDefinitions as a, NumberingInstance as b, ListRendering as c, LevelSuffix as d };
@@ -16,11 +16,12 @@ import { AutoSaveSnapshot, AutoSaveManagerOptions, SavedDocumentData, AutoSaveSt
16
16
  import { Document } from '../types/document.mjs';
17
17
  import 'prosemirror-view';
18
18
  import '../colors-C3vA7HUU.mjs';
19
- import '../formatting-BH4hcZiq.mjs';
20
- import '../content-3xF4WDE8.mjs';
19
+ import '../formatting-DFtuRFQY.mjs';
20
+ import '../lists-CyGxd5Y2.mjs';
21
+ import '../content-BlWiORm-.mjs';
21
22
  import '../docx/wrapTypes.mjs';
22
23
  import '../watermark-DAcnAs_J.mjs';
23
- import '../styles-BOJ93SAm.mjs';
24
+ import '../styles-Dqec8Aw6.mjs';
24
25
 
25
26
  /**
26
27
  * AutoSaveManager
@@ -16,11 +16,12 @@ import { AutoSaveSnapshot, AutoSaveManagerOptions, SavedDocumentData, AutoSaveSt
16
16
  import { Document } from '../types/document.js';
17
17
  import 'prosemirror-view';
18
18
  import '../colors-C3vA7HUU.js';
19
- import '../formatting-_OXU8gLB.js';
20
- import '../content-C8fc_tL6.js';
19
+ import '../formatting-JhqWT_XM.js';
20
+ import '../lists-Bn29SzeS.js';
21
+ import '../content-eG_Rtl0l.js';
21
22
  import '../docx/wrapTypes.js';
22
23
  import '../watermark-DAcnAs_J.js';
23
- import '../styles-BWqX2AS-.js';
24
+ import '../styles-gEujs7j6.js';
24
25
 
25
26
  /**
26
27
  * AutoSaveManager
@@ -20,13 +20,14 @@
20
20
  import { S as Subscribable } from '../Subscribable-DOz6Ohoo.mjs';
21
21
  import { TableSelectionSnapshot, CellCoordinates } from './types.mjs';
22
22
  import { Document } from '../types/document.mjs';
23
- import { T as Table } from '../content-3xF4WDE8.mjs';
23
+ import { T as Table } from '../content-BlWiORm-.mjs';
24
24
  import 'prosemirror-view';
25
25
  import '../colors-C3vA7HUU.mjs';
26
- import '../formatting-BH4hcZiq.mjs';
26
+ import '../formatting-DFtuRFQY.mjs';
27
+ import '../lists-CyGxd5Y2.mjs';
27
28
  import '../docx/wrapTypes.mjs';
28
29
  import '../watermark-DAcnAs_J.mjs';
29
- import '../styles-BOJ93SAm.mjs';
30
+ import '../styles-Dqec8Aw6.mjs';
30
31
 
31
32
  /**
32
33
  * TableSelectionManager