@eigenpal/docx-editor-core 1.0.1 → 1.0.3

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 (217) hide show
  1. package/README.md +1 -1
  2. package/dist/agent/index.d.mts +4 -4
  3. package/dist/agent/index.d.ts +4 -4
  4. package/dist/agent/index.js +1 -1
  5. package/dist/agent/index.mjs +1 -1
  6. package/dist/chunk-2IE6UDHJ.mjs +2 -0
  7. package/dist/chunk-3AZWLVLC.js +1 -0
  8. package/dist/chunk-3JXR6YU4.mjs +1 -0
  9. package/dist/{chunk-WNTT4MGC.js → chunk-3NLVHZMT.js} +3 -3
  10. package/dist/chunk-5SU4HPQS.mjs +1 -0
  11. package/dist/{chunk-LDAOONXZ.mjs → chunk-7PX32GLB.mjs} +1 -1
  12. package/dist/{chunk-AFMMYLPX.js → chunk-ABBG4WD2.js} +2 -2
  13. package/dist/chunk-AHXPHBMT.js +1 -0
  14. package/dist/chunk-B6LYBJ4H.mjs +1 -0
  15. package/dist/chunk-BFB4PRS4.mjs +1 -0
  16. package/dist/chunk-BRHHK4MG.mjs +2 -0
  17. package/dist/chunk-C2BAPYGJ.js +1 -0
  18. package/dist/chunk-CUXXRGPQ.mjs +1 -0
  19. package/dist/chunk-D536HC5M.js +2 -0
  20. package/dist/{chunk-GH5N36F7.js → chunk-D5E5TA74.js} +1 -1
  21. package/dist/chunk-EPX7BBJD.js +2 -0
  22. package/dist/chunk-EQVNAHL7.mjs +1 -0
  23. package/dist/{chunk-N3GIC2UI.mjs → chunk-EV6W6KXG.mjs} +1 -1
  24. package/dist/chunk-FCJWLEKT.mjs +1 -0
  25. package/dist/{chunk-DWFWYHM5.mjs → chunk-G7AKYAKU.mjs} +1 -1
  26. package/dist/{chunk-AGNZEOVL.mjs → chunk-GHQS3I2W.mjs} +1 -1
  27. package/dist/chunk-HAAMO2Z2.mjs +1 -0
  28. package/dist/chunk-HL5PQT3A.mjs +2 -0
  29. package/dist/chunk-IMKU4O3P.js +1 -0
  30. package/dist/chunk-IN6IYQ2X.js +1 -0
  31. package/dist/chunk-IO6HZ7KR.js +2 -0
  32. package/dist/{chunk-ZYESB4KC.mjs → chunk-LDKESXXK.mjs} +1 -1
  33. package/dist/chunk-LE67NTCN.mjs +1 -0
  34. package/dist/{chunk-WLQEPVDR.js → chunk-N3EIZN65.js} +1 -1
  35. package/dist/chunk-NO5LW2DQ.mjs +1 -0
  36. package/dist/chunk-OTDF6PZK.js +1 -0
  37. package/dist/chunk-QMLIXLZJ.mjs +4 -0
  38. package/dist/chunk-QVEAQOMR.mjs +2 -0
  39. package/dist/{chunk-GXW7YSFL.mjs → chunk-QXHL67FG.mjs} +1 -1
  40. package/dist/{chunk-UDPROEUK.js → chunk-SAFW7UQZ.js} +1 -1
  41. package/dist/chunk-TGPS3SRR.mjs +1 -0
  42. package/dist/chunk-TMISJEGL.js +1 -0
  43. package/dist/chunk-TRQN2SFW.mjs +59 -0
  44. package/dist/chunk-UGXSKZVM.js +1 -0
  45. package/dist/{chunk-CCWOLPZE.js → chunk-V435QKZB.js} +2 -2
  46. package/dist/chunk-V6SWUCTS.js +2 -0
  47. package/dist/chunk-X3NB7STJ.js +1 -0
  48. package/dist/{chunk-62NPHRTF.js → chunk-XBHF5Q2F.js} +1 -1
  49. package/dist/chunk-XBIKSAH6.js +1 -0
  50. package/dist/{chunk-SYJAAHUK.js → chunk-XOH7YAYL.js} +1 -1
  51. package/dist/{chunk-YUKBAAB5.mjs → chunk-XWQB6APW.mjs} +1 -1
  52. package/dist/chunk-Y7I5QDCN.mjs +1 -0
  53. package/dist/chunk-YCDB5TA6.js +4 -0
  54. package/dist/chunk-YVYB4YCI.js +1 -0
  55. package/dist/{chunk-KSYEBTYE.js → chunk-Z4SJCSTS.js} +1 -1
  56. package/dist/{colorResolver-CVsPLsw1.d.ts → colorResolver-BZ_yScf4.d.ts} +1 -1
  57. package/dist/{colorResolver-C3q7MLLD.d.mts → colorResolver-C6DtsoFI.d.mts} +1 -1
  58. package/dist/core-plugins.d.mts +3 -3
  59. package/dist/core-plugins.d.ts +3 -3
  60. package/dist/core-plugins.js +1 -1
  61. package/dist/core-plugins.mjs +1 -1
  62. package/dist/core.d.mts +6 -6
  63. package/dist/core.d.ts +6 -6
  64. package/dist/core.js +1 -1
  65. package/dist/core.mjs +1 -1
  66. package/dist/docx/index.d.mts +3 -3
  67. package/dist/docx/index.d.ts +3 -3
  68. package/dist/docx/index.js +1 -1
  69. package/dist/docx/index.mjs +1 -1
  70. package/dist/docx/parser.d.mts +3 -3
  71. package/dist/docx/parser.d.ts +3 -3
  72. package/dist/docx/parser.js +1 -1
  73. package/dist/docx/parser.mjs +1 -1
  74. package/dist/docx/rezip.d.mts +3 -3
  75. package/dist/docx/rezip.d.ts +3 -3
  76. package/dist/docx/rezip.js +1 -1
  77. package/dist/docx/rezip.mjs +1 -1
  78. package/dist/docx/serializer/index.d.mts +3 -3
  79. package/dist/docx/serializer/index.d.ts +3 -3
  80. package/dist/docx/serializer/index.js +1 -1
  81. package/dist/docx/serializer/index.mjs +1 -1
  82. package/dist/{formatting-D9I-lFS4.d.mts → formatting-BH4hcZiq.d.mts} +1 -1
  83. package/dist/{formatting-BwpZWdGi.d.ts → formatting-_OXU8gLB.d.ts} +1 -1
  84. package/dist/{headerFooterLayout-B3QVg556.d.ts → headerFooterLayout-B5LyDpSM.d.ts} +20 -1
  85. package/dist/{headerFooterLayout-DkclHZ0Z.d.mts → headerFooterLayout-DVFcJ832.d.mts} +20 -1
  86. package/dist/headless.d.mts +5 -5
  87. package/dist/headless.d.ts +5 -5
  88. package/dist/headless.js +1 -1
  89. package/dist/headless.mjs +1 -1
  90. package/dist/layout-bridge/index.d.mts +5 -5
  91. package/dist/layout-bridge/index.d.ts +5 -5
  92. package/dist/layout-bridge/index.js +1 -1
  93. package/dist/layout-bridge/index.mjs +1 -1
  94. package/dist/layout-bridge/measuring/index.d.mts +39 -2
  95. package/dist/layout-bridge/measuring/index.d.ts +39 -2
  96. package/dist/layout-bridge/measuring/index.js +1 -1
  97. package/dist/layout-bridge/measuring/index.mjs +1 -1
  98. package/dist/layout-bridge/tableInsertHover.js +1 -1
  99. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  100. package/dist/layout-bridge/toFlowBlocks.d.mts +10 -3
  101. package/dist/layout-bridge/toFlowBlocks.d.ts +10 -3
  102. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  103. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  104. package/dist/layout-engine/index.d.mts +30 -3
  105. package/dist/layout-engine/index.d.ts +30 -3
  106. package/dist/layout-engine/index.js +1 -1
  107. package/dist/layout-engine/index.mjs +1 -1
  108. package/dist/layout-engine/types.d.mts +9 -0
  109. package/dist/layout-engine/types.d.ts +9 -0
  110. package/dist/layout-painter/index.d.mts +4 -4
  111. package/dist/layout-painter/index.d.ts +4 -4
  112. package/dist/layout-painter/index.js +1 -1
  113. package/dist/layout-painter/index.mjs +1 -1
  114. package/dist/layout-painter/renderPage.d.mts +4 -4
  115. package/dist/layout-painter/renderPage.d.ts +4 -4
  116. package/dist/layout-painter/renderPage.js +1 -1
  117. package/dist/layout-painter/renderPage.mjs +1 -1
  118. package/dist/{lists-JDB80qyP.d.mts → lists-CvG_iVK3.d.mts} +8 -2
  119. package/dist/{lists-CdiIk_c1.d.ts → lists-UTp_tk7B.d.ts} +8 -2
  120. package/dist/managers/AutoSaveManager.d.mts +3 -3
  121. package/dist/managers/AutoSaveManager.d.ts +3 -3
  122. package/dist/managers/TableSelectionManager.d.mts +3 -3
  123. package/dist/managers/TableSelectionManager.d.ts +3 -3
  124. package/dist/managers/types.d.mts +3 -3
  125. package/dist/managers/types.d.ts +3 -3
  126. package/dist/{marks-CCPVlQzL.d.mts → marks-BY573yZn.d.mts} +1 -1
  127. package/dist/{marks-BujVxYP4.d.ts → marks-CjC9tF5k.d.ts} +1 -1
  128. package/dist/mcp-cli.mjs +23 -23
  129. package/dist/mcp.d.mts +3 -3
  130. package/dist/mcp.d.ts +3 -3
  131. package/dist/mcp.js +3 -3
  132. package/dist/mcp.mjs +1 -1
  133. package/dist/{nodes-BXi1Uu3e.d.mts → nodes-CL8M0L-a.d.mts} +4 -2
  134. package/dist/{nodes-DfKj9kUA.d.ts → nodes-D7PTUJ2N.d.ts} +4 -2
  135. package/dist/prosemirror/commands/formatting.d.mts +2 -2
  136. package/dist/prosemirror/commands/formatting.d.ts +2 -2
  137. package/dist/prosemirror/commands/formatting.js +1 -1
  138. package/dist/prosemirror/commands/formatting.mjs +1 -1
  139. package/dist/prosemirror/commands/index.d.mts +2 -2
  140. package/dist/prosemirror/commands/index.d.ts +2 -2
  141. package/dist/prosemirror/commands/index.js +1 -1
  142. package/dist/prosemirror/commands/index.mjs +1 -1
  143. package/dist/prosemirror/commands/paragraph.d.mts +1 -1
  144. package/dist/prosemirror/commands/paragraph.d.ts +1 -1
  145. package/dist/prosemirror/commands/paragraph.js +1 -1
  146. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  147. package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -3
  148. package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -3
  149. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  150. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  151. package/dist/prosemirror/conversion/index.d.mts +11 -3
  152. package/dist/prosemirror/conversion/index.d.ts +11 -3
  153. package/dist/prosemirror/conversion/index.js +1 -1
  154. package/dist/prosemirror/conversion/index.mjs +1 -1
  155. package/dist/prosemirror/extensions/index.d.mts +1 -1
  156. package/dist/prosemirror/extensions/index.d.ts +1 -1
  157. package/dist/prosemirror/extensions/index.js +1 -1
  158. package/dist/prosemirror/extensions/index.mjs +1 -1
  159. package/dist/prosemirror/index.d.mts +5 -5
  160. package/dist/prosemirror/index.d.ts +5 -5
  161. package/dist/prosemirror/index.js +1 -1
  162. package/dist/prosemirror/index.mjs +1 -1
  163. package/dist/prosemirror/plugins/index.d.mts +1 -1
  164. package/dist/prosemirror/plugins/index.d.ts +1 -1
  165. package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
  166. package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
  167. package/dist/prosemirror/schema/index.d.mts +4 -4
  168. package/dist/prosemirror/schema/index.d.ts +4 -4
  169. package/dist/prosemirror/schema/index.js +1 -1
  170. package/dist/prosemirror/schema/index.mjs +1 -1
  171. package/dist/prosemirror/styles/index.d.mts +2 -2
  172. package/dist/prosemirror/styles/index.d.ts +2 -2
  173. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -2
  174. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -2
  175. package/dist/{selectionContext-85CE0f7a.d.ts → selectionContext-BPAqgNgk.d.ts} +1 -1
  176. package/dist/{selectionContext-Xq3AY7pn.d.mts → selectionContext-CoZat7QZ.d.mts} +1 -1
  177. package/dist/{styles-jqO45PSq.d.ts → styles-BBv7doYK.d.ts} +1 -1
  178. package/dist/{styles-BBoqh07F.d.mts → styles-EI2lxeEN.d.mts} +1 -1
  179. package/dist/types/agentApi.d.mts +1 -1
  180. package/dist/types/agentApi.d.ts +1 -1
  181. package/dist/types/content.d.mts +2 -2
  182. package/dist/types/content.d.ts +2 -2
  183. package/dist/types/document.d.mts +25 -6
  184. package/dist/types/document.d.ts +25 -6
  185. package/dist/utils/comments.d.mts +2 -2
  186. package/dist/utils/comments.d.ts +2 -2
  187. package/dist/utils/index.d.mts +4 -4
  188. package/dist/utils/index.d.ts +4 -4
  189. package/package.json +1 -1
  190. package/dist/chunk-3GNIP6IX.mjs +0 -4
  191. package/dist/chunk-44RUAQA2.js +0 -1
  192. package/dist/chunk-4EHBV73E.mjs +0 -59
  193. package/dist/chunk-5N5DBQJV.mjs +0 -1
  194. package/dist/chunk-6LOYA7G5.mjs +0 -2
  195. package/dist/chunk-6VUYFDHY.mjs +0 -1
  196. package/dist/chunk-7UTXBQKF.mjs +0 -1
  197. package/dist/chunk-7VCMJCBY.js +0 -2
  198. package/dist/chunk-BD4CYYFB.js +0 -1
  199. package/dist/chunk-C6GSFUV2.js +0 -2
  200. package/dist/chunk-DFZTUQ7O.js +0 -2
  201. package/dist/chunk-DN36K5JU.mjs +0 -1
  202. package/dist/chunk-DV6IEOP5.js +0 -4
  203. package/dist/chunk-GNPLUGUG.mjs +0 -1
  204. package/dist/chunk-HVZMO3BU.js +0 -1
  205. package/dist/chunk-IBNUQL57.mjs +0 -2
  206. package/dist/chunk-ITVXBQGR.mjs +0 -1
  207. package/dist/chunk-JKVXID22.mjs +0 -1
  208. package/dist/chunk-LVD6HXRF.mjs +0 -2
  209. package/dist/chunk-NFYCMDM5.js +0 -1
  210. package/dist/chunk-O5X22KZ6.mjs +0 -1
  211. package/dist/chunk-PK4PDRTA.js +0 -1
  212. package/dist/chunk-R7RR6M4A.mjs +0 -2
  213. package/dist/chunk-RSMS6OTE.mjs +0 -1
  214. package/dist/chunk-SUXJX72X.js +0 -1
  215. package/dist/chunk-T4CPTPRP.js +0 -1
  216. package/dist/chunk-TZJUO3NW.js +0 -1
  217. package/dist/chunk-YGHHSCPR.js +0 -2
@@ -1 +1 @@
1
- 'use strict';var chunkGH5N36F7_js=require('../chunk-GH5N36F7.js');require('../chunk-PK4PDRTA.js'),require('../chunk-BD4CYYFB.js'),require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js'),require('../chunk-TZJUO3NW.js'),require('../chunk-DV6IEOP5.js'),require('../chunk-HVZMO3BU.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-SUXJX72X.js'),require('../chunk-DFZTUQ7O.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"TABLE_INSERT_EDGE_PROXIMITY",{enumerable:true,get:function(){return chunkGH5N36F7_js.a}});Object.defineProperty(exports,"TABLE_INSERT_HIDE_DELAY_MS",{enumerable:true,get:function(){return chunkGH5N36F7_js.b}});Object.defineProperty(exports,"detectTableInsertHover",{enumerable:true,get:function(){return chunkGH5N36F7_js.c}});
1
+ 'use strict';var chunkD5E5TA74_js=require('../chunk-D5E5TA74.js');require('../chunk-OTDF6PZK.js'),require('../chunk-3AZWLVLC.js'),require('../chunk-UGXSKZVM.js'),require('../chunk-XBIKSAH6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-YCDB5TA6.js'),require('../chunk-IN6IYQ2X.js'),require('../chunk-X3NB7STJ.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-EPX7BBJD.js'),require('../chunk-D536HC5M.js'),require('../chunk-TMISJEGL.js'),require('../chunk-YVYB4YCI.js'),require('../chunk-IO6HZ7KR.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"TABLE_INSERT_EDGE_PROXIMITY",{enumerable:true,get:function(){return chunkD5E5TA74_js.a}});Object.defineProperty(exports,"TABLE_INSERT_HIDE_DELAY_MS",{enumerable:true,get:function(){return chunkD5E5TA74_js.b}});Object.defineProperty(exports,"detectTableInsertHover",{enumerable:true,get:function(){return chunkD5E5TA74_js.c}});
@@ -1 +1 @@
1
- export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-LDAOONXZ.mjs';import'../chunk-ITVXBQGR.mjs';import'../chunk-DN36K5JU.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-7UTXBQKF.mjs';import'../chunk-3GNIP6IX.mjs';import'../chunk-GNPLUGUG.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-JKVXID22.mjs';import'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-7PX32GLB.mjs';import'../chunk-BFB4PRS4.mjs';import'../chunk-5SU4HPQS.mjs';import'../chunk-HAAMO2Z2.mjs';import'../chunk-EQVNAHL7.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-QMLIXLZJ.mjs';import'../chunk-3JXR6YU4.mjs';import'../chunk-NO5LW2DQ.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-QVEAQOMR.mjs';import'../chunk-HL5PQT3A.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-TGPS3SRR.mjs';import'../chunk-BRHHK4MG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -12,9 +12,9 @@
12
12
  */
13
13
  import { Node } from 'prosemirror-model';
14
14
  import { BorderStyle, FlowBlock } from '../layout-engine/types.mjs';
15
- import { T as Theme } from '../styles-BBoqh07F.mjs';
16
- import { c as NumberFormat } from '../lists-JDB80qyP.mjs';
17
- import '../formatting-D9I-lFS4.mjs';
15
+ import { T as Theme } from '../styles-EI2lxeEN.mjs';
16
+ import { a as NumberFormat } from '../lists-CvG_iVK3.mjs';
17
+ import '../formatting-BH4hcZiq.mjs';
18
18
  import '../colors-C3vA7HUU.mjs';
19
19
 
20
20
  /**
@@ -33,6 +33,13 @@ type ToFlowBlocksOptions = {
33
33
  theme?: Theme | null;
34
34
  /** Page content height in pixels (pageHeight - marginTop - marginBottom). Images taller than this are scaled down to fit. */
35
35
  pageContentHeight?: number;
36
+ /**
37
+ * Document-wide `w:defaultTabStop` (§17.6.13) in twips. Stamped onto each
38
+ * paragraph's attrs so the layout-time list-marker helper can snap body
39
+ * text to the default tab grid when no custom `w:tabs` are defined.
40
+ * Default 720 twips (Word's spec default).
41
+ */
42
+ defaultTabStopTwips?: number;
36
43
  /**
37
44
  * @internal Allocated by toFlowBlocks() and threaded through table /
38
45
  * text-box conversion so list numbering stays continuous across containers.
@@ -12,9 +12,9 @@
12
12
  */
13
13
  import { Node } from 'prosemirror-model';
14
14
  import { BorderStyle, FlowBlock } from '../layout-engine/types.js';
15
- import { T as Theme } from '../styles-jqO45PSq.js';
16
- import { c as NumberFormat } from '../lists-CdiIk_c1.js';
17
- import '../formatting-BwpZWdGi.js';
15
+ import { T as Theme } from '../styles-BBv7doYK.js';
16
+ import { a as NumberFormat } from '../lists-UTp_tk7B.js';
17
+ import '../formatting-_OXU8gLB.js';
18
18
  import '../colors-C3vA7HUU.js';
19
19
 
20
20
  /**
@@ -33,6 +33,13 @@ type ToFlowBlocksOptions = {
33
33
  theme?: Theme | null;
34
34
  /** Page content height in pixels (pageHeight - marginTop - marginBottom). Images taller than this are scaled down to fit. */
35
35
  pageContentHeight?: number;
36
+ /**
37
+ * Document-wide `w:defaultTabStop` (§17.6.13) in twips. Stamped onto each
38
+ * paragraph's attrs so the layout-time list-marker helper can snap body
39
+ * text to the default tab grid when no custom `w:tabs` are defined.
40
+ * Default 720 twips (Word's spec default).
41
+ */
42
+ defaultTabStopTwips?: number;
36
43
  /**
37
44
  * @internal Allocated by toFlowBlocks() and threaded through table /
38
45
  * text-box conversion so list numbering stays continuous across containers.
@@ -1 +1 @@
1
- 'use strict';var chunkBD4CYYFB_js=require('../chunk-BD4CYYFB.js');require('../chunk-DROCYKAR.js'),require('../chunk-DV6IEOP5.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunkBD4CYYFB_js.b}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkBD4CYYFB_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunkBD4CYYFB_js.c}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunkBD4CYYFB_js.d}});
1
+ 'use strict';var chunk3AZWLVLC_js=require('../chunk-3AZWLVLC.js'),chunkIMKU4O3P_js=require('../chunk-IMKU4O3P.js');require('../chunk-DROCYKAR.js'),require('../chunk-YCDB5TA6.js'),require('../chunk-EPX7BBJD.js'),require('../chunk-D536HC5M.js'),require('../chunk-TMISJEGL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunk3AZWLVLC_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunk3AZWLVLC_js.b}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunk3AZWLVLC_js.c}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkIMKU4O3P_js.d}});
@@ -1 +1 @@
1
- export{b as convertBorderSpecToLayout,a as resetBlockIdCounter,c as resolveListTemplate,d as toFlowBlocks}from'../chunk-DN36K5JU.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3GNIP6IX.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{a as convertBorderSpecToLayout,b as resolveListTemplate,c as toFlowBlocks}from'../chunk-5SU4HPQS.mjs';export{d as resetBlockIdCounter}from'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-QMLIXLZJ.mjs';import'../chunk-QVEAQOMR.mjs';import'../chunk-HL5PQT3A.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -9,8 +9,9 @@
9
9
  * @packageDocumentation
10
10
  * @public
11
11
  */
12
- import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TableMeasure, LayoutOptions } from './types.mjs';
13
- export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure, TextBoxBlock, TextBoxFragment, TextBoxMeasure, TextRun, WrapTextDirection, assertExhaustiveFlowBlock } from './types.mjs';
12
+ import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TextBoxBlock, TableMeasure, LayoutOptions } from './types.mjs';
13
+ export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure, TextBoxFragment, TextBoxMeasure, TextRun, WrapTextDirection, assertExhaustiveFlowBlock } from './types.mjs';
14
+ export { isFloatingWrapType, isWrapNone, wrapsAroundText } from '../docx/wrapTypes.mjs';
14
15
 
15
16
  /**
16
17
  * Paginator - manages page state during layout
@@ -264,6 +265,32 @@ declare function getEffectiveColumns(state: SectionState): ColumnLayout;
264
265
  */
265
266
  declare function findPageIndexContainingPmPos(layout: Layout, pmPos: number): number | null;
266
267
 
268
+ /**
269
+ * Subset of {@link TextBoxBlock} needed to classify how a text box flows
270
+ * relative to surrounding content. Kept narrow so callers (measure, layout,
271
+ * paint) can pass partial views without rebuilding the full block.
272
+ *
273
+ * @public
274
+ */
275
+ type TextBoxFlowAttrs = Pick<TextBoxBlock, 'displayMode' | 'wrapType'>;
276
+ /**
277
+ * True when a text box participates in float layout — either via the
278
+ * `float` display mode (CSS-style) or via an OOXML `wrapType` that
279
+ * positions the box outside paragraph flow (`square`, `tight`, `through`,
280
+ * `behind`, `inFront`).
281
+ *
282
+ * @public
283
+ */
284
+ declare function isFloatingTextBoxBlock(block: TextBoxFlowAttrs): boolean;
285
+ /**
286
+ * True when a floating text box reserves an exclusion zone that narrows
287
+ * surrounding text lines. `wrapNone` (`behind` / `inFront`) and
288
+ * `topAndBottom` are floats that don't wrap text on their sides.
289
+ *
290
+ * @public
291
+ */
292
+ declare function floatingTextBoxWrapsText(block: TextBoxFlowAttrs): boolean;
293
+
267
294
  /**
268
295
  * Layout Engine - Main Entry Point
269
296
  *
@@ -319,4 +346,4 @@ declare function layoutDocument(blocks: FlowBlock[], measures: Measure[], option
319
346
  */
320
347
  declare function getHeaderRowsHeight(measure: TableMeasure, headerRowCount: number): number;
321
348
 
322
- export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, layoutDocument, scheduleSectionBreak };
349
+ export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, TextBoxBlock, type TextBoxFlowAttrs, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, floatingTextBoxWrapsText, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, isFloatingTextBoxBlock, layoutDocument, scheduleSectionBreak };
@@ -9,8 +9,9 @@
9
9
  * @packageDocumentation
10
10
  * @public
11
11
  */
12
- import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TableMeasure, LayoutOptions } from './types.js';
13
- export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure, TextBoxBlock, TextBoxFragment, TextBoxMeasure, TextRun, WrapTextDirection, assertExhaustiveFlowBlock } from './types.js';
12
+ import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TextBoxBlock, TableMeasure, LayoutOptions } from './types.js';
13
+ export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure, TextBoxFragment, TextBoxMeasure, TextRun, WrapTextDirection, assertExhaustiveFlowBlock } from './types.js';
14
+ export { isFloatingWrapType, isWrapNone, wrapsAroundText } from '../docx/wrapTypes.js';
14
15
 
15
16
  /**
16
17
  * Paginator - manages page state during layout
@@ -264,6 +265,32 @@ declare function getEffectiveColumns(state: SectionState): ColumnLayout;
264
265
  */
265
266
  declare function findPageIndexContainingPmPos(layout: Layout, pmPos: number): number | null;
266
267
 
268
+ /**
269
+ * Subset of {@link TextBoxBlock} needed to classify how a text box flows
270
+ * relative to surrounding content. Kept narrow so callers (measure, layout,
271
+ * paint) can pass partial views without rebuilding the full block.
272
+ *
273
+ * @public
274
+ */
275
+ type TextBoxFlowAttrs = Pick<TextBoxBlock, 'displayMode' | 'wrapType'>;
276
+ /**
277
+ * True when a text box participates in float layout — either via the
278
+ * `float` display mode (CSS-style) or via an OOXML `wrapType` that
279
+ * positions the box outside paragraph flow (`square`, `tight`, `through`,
280
+ * `behind`, `inFront`).
281
+ *
282
+ * @public
283
+ */
284
+ declare function isFloatingTextBoxBlock(block: TextBoxFlowAttrs): boolean;
285
+ /**
286
+ * True when a floating text box reserves an exclusion zone that narrows
287
+ * surrounding text lines. `wrapNone` (`behind` / `inFront`) and
288
+ * `topAndBottom` are floats that don't wrap text on their sides.
289
+ *
290
+ * @public
291
+ */
292
+ declare function floatingTextBoxWrapsText(block: TextBoxFlowAttrs): boolean;
293
+
267
294
  /**
268
295
  * Layout Engine - Main Entry Point
269
296
  *
@@ -319,4 +346,4 @@ declare function layoutDocument(blocks: FlowBlock[], measures: Measure[], option
319
346
  */
320
347
  declare function getHeaderRowsHeight(measure: TableMeasure, headerRowCount: number): number;
321
348
 
322
- export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, layoutDocument, scheduleSectionBreak };
349
+ export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, TextBoxBlock, type TextBoxFlowAttrs, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, floatingTextBoxWrapsText, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, isFloatingTextBoxBlock, layoutDocument, scheduleSectionBreak };
@@ -1 +1 @@
1
- 'use strict';var chunk44RUAQA2_js=require('../chunk-44RUAQA2.js'),chunkDROCYKAR_js=require('../chunk-DROCYKAR.js');require('../chunk-JFZIXFRC.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"applyPendingToActive",{enumerable:true,get:function(){return chunk44RUAQA2_js.k}});Object.defineProperty(exports,"calculateChainHeight",{enumerable:true,get:function(){return chunk44RUAQA2_js.c}});Object.defineProperty(exports,"collectSectionConfigs",{enumerable:true,get:function(){return chunk44RUAQA2_js.p}});Object.defineProperty(exports,"computeKeepNextChains",{enumerable:true,get:function(){return chunk44RUAQA2_js.b}});Object.defineProperty(exports,"createInitialSectionState",{enumerable:true,get:function(){return chunk44RUAQA2_js.i}});Object.defineProperty(exports,"createPaginator",{enumerable:true,get:function(){return chunk44RUAQA2_js.a}});Object.defineProperty(exports,"findPageIndexContainingPmPos",{enumerable:true,get:function(){return chunk44RUAQA2_js.o}});Object.defineProperty(exports,"getEffectiveColumns",{enumerable:true,get:function(){return chunk44RUAQA2_js.n}});Object.defineProperty(exports,"getEffectiveMargins",{enumerable:true,get:function(){return chunk44RUAQA2_js.l}});Object.defineProperty(exports,"getEffectivePageSize",{enumerable:true,get:function(){return chunk44RUAQA2_js.m}});Object.defineProperty(exports,"getHeaderRowsHeight",{enumerable:true,get:function(){return chunk44RUAQA2_js.r}});Object.defineProperty(exports,"getMidChainIndices",{enumerable:true,get:function(){return chunk44RUAQA2_js.d}});Object.defineProperty(exports,"hasKeepLines",{enumerable:true,get:function(){return chunk44RUAQA2_js.e}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunk44RUAQA2_js.f}});Object.defineProperty(exports,"layoutDocument",{enumerable:true,get:function(){return chunk44RUAQA2_js.q}});Object.defineProperty(exports,"scheduleSectionBreak",{enumerable:true,get:function(){return chunk44RUAQA2_js.j}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_MARGINS",{enumerable:true,get:function(){return chunkDROCYKAR_js.a}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_WIDTH",{enumerable:true,get:function(){return chunkDROCYKAR_js.b}});Object.defineProperty(exports,"assertExhaustiveFlowBlock",{enumerable:true,get:function(){return chunkDROCYKAR_js.c}});
1
+ 'use strict';var chunkXBIKSAH6_js=require('../chunk-XBIKSAH6.js');require('../chunk-IMKU4O3P.js');var chunkDROCYKAR_js=require('../chunk-DROCYKAR.js');require('../chunk-IN6IYQ2X.js');var chunkJFZIXFRC_js=require('../chunk-JFZIXFRC.js');require('../chunk-TMISJEGL.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"applyPendingToActive",{enumerable:true,get:function(){return chunkXBIKSAH6_js.I}});Object.defineProperty(exports,"calculateChainHeight",{enumerable:true,get:function(){return chunkXBIKSAH6_js.A}});Object.defineProperty(exports,"collectSectionConfigs",{enumerable:true,get:function(){return chunkXBIKSAH6_js.N}});Object.defineProperty(exports,"computeKeepNextChains",{enumerable:true,get:function(){return chunkXBIKSAH6_js.z}});Object.defineProperty(exports,"createInitialSectionState",{enumerable:true,get:function(){return chunkXBIKSAH6_js.G}});Object.defineProperty(exports,"createPaginator",{enumerable:true,get:function(){return chunkXBIKSAH6_js.y}});Object.defineProperty(exports,"findPageIndexContainingPmPos",{enumerable:true,get:function(){return chunkXBIKSAH6_js.M}});Object.defineProperty(exports,"floatingTextBoxWrapsText",{enumerable:true,get:function(){return chunkXBIKSAH6_js.F}});Object.defineProperty(exports,"getEffectiveColumns",{enumerable:true,get:function(){return chunkXBIKSAH6_js.L}});Object.defineProperty(exports,"getEffectiveMargins",{enumerable:true,get:function(){return chunkXBIKSAH6_js.J}});Object.defineProperty(exports,"getEffectivePageSize",{enumerable:true,get:function(){return chunkXBIKSAH6_js.K}});Object.defineProperty(exports,"getHeaderRowsHeight",{enumerable:true,get:function(){return chunkXBIKSAH6_js.P}});Object.defineProperty(exports,"getMidChainIndices",{enumerable:true,get:function(){return chunkXBIKSAH6_js.B}});Object.defineProperty(exports,"hasKeepLines",{enumerable:true,get:function(){return chunkXBIKSAH6_js.C}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkXBIKSAH6_js.D}});Object.defineProperty(exports,"isFloatingTextBoxBlock",{enumerable:true,get:function(){return chunkXBIKSAH6_js.E}});Object.defineProperty(exports,"layoutDocument",{enumerable:true,get:function(){return chunkXBIKSAH6_js.O}});Object.defineProperty(exports,"scheduleSectionBreak",{enumerable:true,get:function(){return chunkXBIKSAH6_js.H}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_MARGINS",{enumerable:true,get:function(){return chunkDROCYKAR_js.a}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_WIDTH",{enumerable:true,get:function(){return chunkDROCYKAR_js.b}});Object.defineProperty(exports,"assertExhaustiveFlowBlock",{enumerable:true,get:function(){return chunkDROCYKAR_js.c}});Object.defineProperty(exports,"isFloatingWrapType",{enumerable:true,get:function(){return chunkJFZIXFRC_js.a}});Object.defineProperty(exports,"isWrapNone",{enumerable:true,get:function(){return chunkJFZIXFRC_js.b}});Object.defineProperty(exports,"wrapsAroundText",{enumerable:true,get:function(){return chunkJFZIXFRC_js.c}});
@@ -1 +1 @@
1
- export{k as applyPendingToActive,c as calculateChainHeight,p as collectSectionConfigs,b as computeKeepNextChains,i as createInitialSectionState,a as createPaginator,o as findPageIndexContainingPmPos,n as getEffectiveColumns,l as getEffectiveMargins,m as getEffectivePageSize,r as getHeaderRowsHeight,d as getMidChainIndices,e as hasKeepLines,f as hasPageBreakBefore,q as layoutDocument,j as scheduleSectionBreak}from'../chunk-5N5DBQJV.mjs';export{a as DEFAULT_TEXTBOX_MARGINS,b as DEFAULT_TEXTBOX_WIDTH,c as assertExhaustiveFlowBlock}from'../chunk-7E5VBRDL.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{I as applyPendingToActive,A as calculateChainHeight,N as collectSectionConfigs,z as computeKeepNextChains,G as createInitialSectionState,y as createPaginator,M as findPageIndexContainingPmPos,F as floatingTextBoxWrapsText,L as getEffectiveColumns,J as getEffectiveMargins,K as getEffectivePageSize,P as getHeaderRowsHeight,B as getMidChainIndices,C as hasKeepLines,D as hasPageBreakBefore,E as isFloatingTextBoxBlock,O as layoutDocument,H as scheduleSectionBreak}from'../chunk-EQVNAHL7.mjs';import'../chunk-FCJWLEKT.mjs';export{a as DEFAULT_TEXTBOX_MARGINS,b as DEFAULT_TEXTBOX_WIDTH,c as assertExhaustiveFlowBlock}from'../chunk-7E5VBRDL.mjs';import'../chunk-3JXR6YU4.mjs';export{a as isFloatingWrapType,b as isWrapNone,c as wrapsAroundText}from'../chunk-QPFJJPIC.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -293,6 +293,9 @@ type ParagraphAttrs = {
293
293
  listMarkerHidden?: boolean;
294
294
  listMarkerFontFamily?: string;
295
295
  listMarkerFontSize?: number;
296
+ listMarkerSuffix?: 'tab' | 'space' | 'nothing';
297
+ /** Document-wide `w:defaultTabStop` in twips (§17.6.13). Default 720. */
298
+ defaultTabStopTwips?: number;
296
299
  defaultFontSize?: number;
297
300
  defaultFontFamily?: string;
298
301
  /**
@@ -568,6 +571,12 @@ type MeasuredLine = {
568
571
  rightOffset?: number;
569
572
  /** Optional split segments for centered floating exclusions. */
570
573
  segments?: MeasuredLineSegment[];
574
+ /**
575
+ * Vertical space inserted before this line to skip past floats that leave
576
+ * no usable horizontal width at the natural line Y. Painters render this
577
+ * as marginTop on the line element; measurement adds it to totalHeight.
578
+ */
579
+ floatSkipBefore?: number;
571
580
  };
572
581
  type MeasuredLineSegment = {
573
582
  fromRun: number;
@@ -293,6 +293,9 @@ type ParagraphAttrs = {
293
293
  listMarkerHidden?: boolean;
294
294
  listMarkerFontFamily?: string;
295
295
  listMarkerFontSize?: number;
296
+ listMarkerSuffix?: 'tab' | 'space' | 'nothing';
297
+ /** Document-wide `w:defaultTabStop` in twips (§17.6.13). Default 720. */
298
+ defaultTabStopTwips?: number;
296
299
  defaultFontSize?: number;
297
300
  defaultFontFamily?: string;
298
301
  /**
@@ -568,6 +571,12 @@ type MeasuredLine = {
568
571
  rightOffset?: number;
569
572
  /** Optional split segments for centered floating exclusions. */
570
573
  segments?: MeasuredLineSegment[];
574
+ /**
575
+ * Vertical space inserted before this line to skip past floats that leave
576
+ * no usable horizontal width at the natural line Y. Painters render this
577
+ * as marginTop on the line element; measurement adds it to totalHeight.
578
+ */
579
+ floatSkipBefore?: number;
571
580
  };
572
581
  type MeasuredLineSegment = {
573
582
  fromRun: number;
@@ -13,11 +13,11 @@
13
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 captureInlinePositionEmu, i as createPainter, j as deriveLayoutChoice, k as findImageElement, l as hitTestImage, isFloatingImageRun, m as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, r as renderFragment, n as renderImageFragment, o as renderLine, renderPage, renderPages, p as renderParagraphFragment, q as renderTableFragment, s as renderTextBoxFragment, t as sliceRunsForLine, u as toolbarValueToLayoutTarget } from './renderPage.mjs';
15
15
  export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-lCH_P3N3.mjs';
16
- import '../nodes-BXi1Uu3e.mjs';
17
- import '../formatting-D9I-lFS4.mjs';
16
+ import '../nodes-CL8M0L-a.mjs';
17
+ import '../formatting-BH4hcZiq.mjs';
18
18
  import '../colors-C3vA7HUU.mjs';
19
- import '../lists-JDB80qyP.mjs';
19
+ import '../lists-CvG_iVK3.mjs';
20
20
  import '../docx/wrapTypes.mjs';
21
21
  import '../types/content.mjs';
22
22
  import '../ImageExtension-BN327PNe.mjs';
23
- import '../styles-BBoqh07F.mjs';
23
+ import '../styles-EI2lxeEN.mjs';
@@ -13,11 +13,11 @@
13
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 captureInlinePositionEmu, i as createPainter, j as deriveLayoutChoice, k as findImageElement, l as hitTestImage, isFloatingImageRun, m as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, r as renderFragment, n as renderImageFragment, o as renderLine, renderPage, renderPages, p as renderParagraphFragment, q as renderTableFragment, s as renderTextBoxFragment, t as sliceRunsForLine, u as toolbarValueToLayoutTarget } from './renderPage.js';
15
15
  export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-skVvEHvZ.js';
16
- import '../nodes-DfKj9kUA.js';
17
- import '../formatting-BwpZWdGi.js';
16
+ import '../nodes-D7PTUJ2N.js';
17
+ import '../formatting-_OXU8gLB.js';
18
18
  import '../colors-C3vA7HUU.js';
19
- import '../lists-CdiIk_c1.js';
19
+ import '../lists-UTp_tk7B.js';
20
20
  import '../docx/wrapTypes.js';
21
21
  import '../types/content.js';
22
22
  import '../ImageExtension-BlI5afZD.js';
23
- import '../styles-jqO45PSq.js';
23
+ import '../styles-BBv7doYK.js';
@@ -1 +1 @@
1
- 'use strict';var chunkPK4PDRTA_js=require('../chunk-PK4PDRTA.js');require('../chunk-BD4CYYFB.js'),require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js'),require('../chunk-TZJUO3NW.js'),require('../chunk-DV6IEOP5.js'),require('../chunk-HVZMO3BU.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-SUXJX72X.js'),require('../chunk-DFZTUQ7O.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js');var chunk4Q2IP5FW_js=require('../chunk-4Q2IP5FW.js'),chunkDC7S76ZX_js=require('../chunk-DC7S76ZX.js');var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(chunk4Q2IP5FW_js.f((a.left-r.left)/p)),verticalEmu:Math.round(chunk4Q2IP5FW_js.f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){chunkDC7S76ZX_js.a(this,"container",null);chunkDC7S76ZX_js.a(this,"blockLookup",new Map);chunkDC7S76ZX_js.a(this,"pageStates",[]);chunkDC7S76ZX_js.a(this,"totalPages",0);chunkDC7S76ZX_js.a(this,"options");chunkDC7S76ZX_js.a(this,"doc");chunkDC7S76ZX_js.a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r=t.measure;return chunkPK4PDRTA_js.v(e,a,r,o,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return chunkPK4PDRTA_js.y(e,a,r,o,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return chunkPK4PDRTA_js.s(e,a,r,o,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return chunkPK4PDRTA_js.A(e,a,r,o,{document:this.doc})}return chunkPK4PDRTA_js.m(e,o,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}Object.defineProperty(exports,"FRAGMENT_CLASS_NAMES",{enumerable:true,get:function(){return chunkPK4PDRTA_js.l}});Object.defineProperty(exports,"IMAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkPK4PDRTA_js.r}});Object.defineProperty(exports,"TABLE_CLASS_NAMES",{enumerable:true,get:function(){return chunkPK4PDRTA_js.x}});Object.defineProperty(exports,"TEXTBOX_CLASS_NAMES",{enumerable:true,get:function(){return chunkPK4PDRTA_js.z}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkPK4PDRTA_js.p}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkPK4PDRTA_js.q}});Object.defineProperty(exports,"renderFragment",{enumerable:true,get:function(){return chunkPK4PDRTA_js.m}});Object.defineProperty(exports,"renderImageFragment",{enumerable:true,get:function(){return chunkPK4PDRTA_js.s}});Object.defineProperty(exports,"renderLine",{enumerable:true,get:function(){return chunkPK4PDRTA_js.u}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkPK4PDRTA_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkPK4PDRTA_js.C}});Object.defineProperty(exports,"renderParagraphFragment",{enumerable:true,get:function(){return chunkPK4PDRTA_js.v}});Object.defineProperty(exports,"renderTableFragment",{enumerable:true,get:function(){return chunkPK4PDRTA_js.y}});Object.defineProperty(exports,"renderTextBoxFragment",{enumerable:true,get:function(){return chunkPK4PDRTA_js.A}});Object.defineProperty(exports,"sliceRunsForLine",{enumerable:true,get:function(){return chunkPK4PDRTA_js.t}});exports.IMAGE_LAYOUT_OPTIONS=H;exports.LAYOUT_IMAGE_CLASSES=i;exports.LayoutPainter=c;exports.captureInlinePositionEmu=B;exports.createPainter=W;exports.deriveLayoutChoice=C;exports.findImageElement=v;exports.hitTestImage=P;exports.isImageLayoutOptionEnabled=R;exports.toolbarValueToLayoutTarget=A;
1
+ 'use strict';var chunkOTDF6PZK_js=require('../chunk-OTDF6PZK.js');require('../chunk-3AZWLVLC.js');var chunkUGXSKZVM_js=require('../chunk-UGXSKZVM.js');require('../chunk-XBIKSAH6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-YCDB5TA6.js'),require('../chunk-IN6IYQ2X.js'),require('../chunk-X3NB7STJ.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-EPX7BBJD.js'),require('../chunk-D536HC5M.js'),require('../chunk-TMISJEGL.js'),require('../chunk-YVYB4YCI.js'),require('../chunk-IO6HZ7KR.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-Q4CKLXWA.js');var chunk4Q2IP5FW_js=require('../chunk-4Q2IP5FW.js'),chunkDC7S76ZX_js=require('../chunk-DC7S76ZX.js');var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(chunk4Q2IP5FW_js.f((a.left-r.left)/p)),verticalEmu:Math.round(chunk4Q2IP5FW_js.f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){chunkDC7S76ZX_js.a(this,"container",null);chunkDC7S76ZX_js.a(this,"blockLookup",new Map);chunkDC7S76ZX_js.a(this,"pageStates",[]);chunkDC7S76ZX_js.a(this,"totalPages",0);chunkDC7S76ZX_js.a(this,"options");chunkDC7S76ZX_js.a(this,"doc");chunkDC7S76ZX_js.a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r=t.measure;return chunkOTDF6PZK_js.r(e,a,r,o,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return chunkOTDF6PZK_js.u(e,a,r,o,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return chunkOTDF6PZK_js.o(e,a,r,o,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return chunkOTDF6PZK_js.w(e,a,r,o,{document:this.doc})}return chunkOTDF6PZK_js.m(e,o,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}Object.defineProperty(exports,"FRAGMENT_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.l}});Object.defineProperty(exports,"IMAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.n}});Object.defineProperty(exports,"TABLE_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.t}});Object.defineProperty(exports,"TEXTBOX_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.v}});Object.defineProperty(exports,"renderFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.m}});Object.defineProperty(exports,"renderImageFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.o}});Object.defineProperty(exports,"renderLine",{enumerable:true,get:function(){return chunkOTDF6PZK_js.q}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkOTDF6PZK_js.B}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkOTDF6PZK_js.y}});Object.defineProperty(exports,"renderParagraphFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.r}});Object.defineProperty(exports,"renderTableFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.u}});Object.defineProperty(exports,"renderTextBoxFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.w}});Object.defineProperty(exports,"sliceRunsForLine",{enumerable:true,get:function(){return chunkOTDF6PZK_js.p}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkUGXSKZVM_js.f}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkUGXSKZVM_js.g}});exports.IMAGE_LAYOUT_OPTIONS=H;exports.LAYOUT_IMAGE_CLASSES=i;exports.LayoutPainter=c;exports.captureInlinePositionEmu=B;exports.createPainter=W;exports.deriveLayoutChoice=C;exports.findImageElement=v;exports.hitTestImage=P;exports.isImageLayoutOptionEnabled=R;exports.toolbarValueToLayoutTarget=A;
@@ -1 +1 @@
1
- import {v as v$1,y as y$1,s,A as A$1,m}from'../chunk-ITVXBQGR.mjs';export{l as FRAGMENT_CLASS_NAMES,r as IMAGE_CLASS_NAMES,x as TABLE_CLASS_NAMES,z as TEXTBOX_CLASS_NAMES,p as isFloatingImageRun,q as isTextWrappingFloatingImageRun,m as renderFragment,s as renderImageFragment,u as renderLine,F as renderPage,C as renderPages,v as renderParagraphFragment,y as renderTableFragment,A as renderTextBoxFragment,t as sliceRunsForLine}from'../chunk-ITVXBQGR.mjs';import'../chunk-DN36K5JU.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-7UTXBQKF.mjs';import'../chunk-3GNIP6IX.mjs';import'../chunk-GNPLUGUG.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-JKVXID22.mjs';import'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import {f}from'../chunk-VW22RZ6C.mjs';import {a}from'../chunk-QYUPLKLP.mjs';var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(f((a.left-r.left)/p)),verticalEmu:Math.round(f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){a(this,"container",null);a(this,"blockLookup",new Map);a(this,"pageStates",[]);a(this,"totalPages",0);a(this,"options");a(this,"doc");a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r=t.measure;return v$1(e,a,r,o,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return y$1(e,a,r,o,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return s(e,a,r,o,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return A$1(e,a,r,o,{document:this.doc})}return m(e,o,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}export{H as IMAGE_LAYOUT_OPTIONS,i as LAYOUT_IMAGE_CLASSES,c as LayoutPainter,B as captureInlinePositionEmu,W as createPainter,C as deriveLayoutChoice,v as findImageElement,P as hitTestImage,R as isImageLayoutOptionEnabled,A as toolbarValueToLayoutTarget};
1
+ import {r,u,o,w,m}from'../chunk-BFB4PRS4.mjs';export{l as FRAGMENT_CLASS_NAMES,n as IMAGE_CLASS_NAMES,t as TABLE_CLASS_NAMES,v as TEXTBOX_CLASS_NAMES,m as renderFragment,o as renderImageFragment,q as renderLine,B as renderPage,y as renderPages,r as renderParagraphFragment,u as renderTableFragment,w as renderTextBoxFragment,p as sliceRunsForLine}from'../chunk-BFB4PRS4.mjs';import'../chunk-5SU4HPQS.mjs';export{f as isFloatingImageRun,g as isTextWrappingFloatingImageRun}from'../chunk-HAAMO2Z2.mjs';import'../chunk-EQVNAHL7.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-QMLIXLZJ.mjs';import'../chunk-3JXR6YU4.mjs';import'../chunk-NO5LW2DQ.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-QVEAQOMR.mjs';import'../chunk-HL5PQT3A.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-TGPS3SRR.mjs';import'../chunk-BRHHK4MG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import {f}from'../chunk-VW22RZ6C.mjs';import {a}from'../chunk-QYUPLKLP.mjs';var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(f((a.left-r.left)/p)),verticalEmu:Math.round(f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){a(this,"container",null);a(this,"blockLookup",new Map);a(this,"pageStates",[]);a(this,"totalPages",0);a(this,"options");a(this,"doc");a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o$1){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r$1=t.measure;return r(e,a,r$1,o$1,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return u(e,a,r,o$1,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return o(e,a,r,o$1,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return w(e,a,r,o$1,{document:this.doc})}return m(e,o$1,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}export{H as IMAGE_LAYOUT_OPTIONS,i as LAYOUT_IMAGE_CLASSES,c as LayoutPainter,B as captureInlinePositionEmu,W as createPainter,C as deriveLayoutChoice,v as findImageElement,P as hitTestImage,R as isImageLayoutOptionEnabled,A as toolbarValueToLayoutTarget};
@@ -13,15 +13,15 @@
13
13
  * @public
14
14
  */
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
- import { I as ImageAttrs } from '../nodes-BXi1Uu3e.mjs';
16
+ import { I as ImageAttrs } from '../nodes-CL8M0L-a.mjs';
17
17
  import { I as ImageLayoutTarget } from '../ImageExtension-BN327PNe.mjs';
18
18
  import { WrapType } from '../docx/wrapTypes.mjs';
19
19
  import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-lCH_P3N3.mjs';
20
20
  export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatingTablePosition } from '../footnotes-lCH_P3N3.mjs';
21
21
  import { B as BorderSpec } from '../colors-C3vA7HUU.mjs';
22
- import { T as Theme } from '../styles-BBoqh07F.mjs';
23
- import '../formatting-D9I-lFS4.mjs';
24
- import '../lists-JDB80qyP.mjs';
22
+ import { T as Theme } from '../styles-EI2lxeEN.mjs';
23
+ import '../formatting-BH4hcZiq.mjs';
24
+ import '../lists-CvG_iVK3.mjs';
25
25
  import '../types/content.mjs';
26
26
 
27
27
  /**
@@ -13,15 +13,15 @@
13
13
  * @public
14
14
  */
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
- import { I as ImageAttrs } from '../nodes-DfKj9kUA.js';
16
+ import { I as ImageAttrs } from '../nodes-D7PTUJ2N.js';
17
17
  import { I as ImageLayoutTarget } from '../ImageExtension-BlI5afZD.js';
18
18
  import { WrapType } from '../docx/wrapTypes.js';
19
19
  import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-skVvEHvZ.js';
20
20
  export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatingTablePosition } from '../footnotes-skVvEHvZ.js';
21
21
  import { B as BorderSpec } from '../colors-C3vA7HUU.js';
22
- import { T as Theme } from '../styles-jqO45PSq.js';
23
- import '../formatting-BwpZWdGi.js';
24
- import '../lists-CdiIk_c1.js';
22
+ import { T as Theme } from '../styles-BBv7doYK.js';
23
+ import '../formatting-_OXU8gLB.js';
24
+ import '../lists-UTp_tk7B.js';
25
25
  import '../types/content.js';
26
26
 
27
27
  /**
@@ -1 +1 @@
1
- 'use strict';var chunkPK4PDRTA_js=require('../chunk-PK4PDRTA.js');require('../chunk-BD4CYYFB.js'),require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js'),require('../chunk-TZJUO3NW.js'),require('../chunk-DV6IEOP5.js'),require('../chunk-HVZMO3BU.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-SUXJX72X.js'),require('../chunk-DFZTUQ7O.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkPK4PDRTA_js.D}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunkPK4PDRTA_js.E}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunkPK4PDRTA_js.o}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunkPK4PDRTA_js.n}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkPK4PDRTA_js.p}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkPK4PDRTA_js.q}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunkPK4PDRTA_js.w}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkPK4PDRTA_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkPK4PDRTA_js.C}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunkPK4PDRTA_js.B}});
1
+ 'use strict';var chunkOTDF6PZK_js=require('../chunk-OTDF6PZK.js');require('../chunk-3AZWLVLC.js');var chunkUGXSKZVM_js=require('../chunk-UGXSKZVM.js');require('../chunk-XBIKSAH6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-YCDB5TA6.js'),require('../chunk-IN6IYQ2X.js'),require('../chunk-X3NB7STJ.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-EPX7BBJD.js'),require('../chunk-D536HC5M.js'),require('../chunk-TMISJEGL.js'),require('../chunk-YVYB4YCI.js'),require('../chunk-IO6HZ7KR.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.z}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunkOTDF6PZK_js.A}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunkOTDF6PZK_js.s}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkOTDF6PZK_js.B}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkOTDF6PZK_js.y}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunkOTDF6PZK_js.x}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunkUGXSKZVM_js.e}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunkUGXSKZVM_js.d}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkUGXSKZVM_js.f}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkUGXSKZVM_js.g}});
@@ -1 +1 @@
1
- export{D as PAGE_CLASS_NAMES,E as applyPageStyles,o as floatingImageIsBehindDoc,n as floatingImageWrapsText,p as isFloatingImageRun,q as isTextWrappingFloatingImageRun,w as renderFloatingImagesLayer,F as renderPage,C as renderPages,B as resolveHeaderFooterFloatingTablePosition}from'../chunk-ITVXBQGR.mjs';import'../chunk-DN36K5JU.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-7UTXBQKF.mjs';import'../chunk-3GNIP6IX.mjs';import'../chunk-GNPLUGUG.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-JKVXID22.mjs';import'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{z as PAGE_CLASS_NAMES,A as applyPageStyles,s as renderFloatingImagesLayer,B as renderPage,y as renderPages,x as resolveHeaderFooterFloatingTablePosition}from'../chunk-BFB4PRS4.mjs';import'../chunk-5SU4HPQS.mjs';export{e as floatingImageIsBehindDoc,d as floatingImageWrapsText,f as isFloatingImageRun,g as isTextWrappingFloatingImageRun}from'../chunk-HAAMO2Z2.mjs';import'../chunk-EQVNAHL7.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-QMLIXLZJ.mjs';import'../chunk-3JXR6YU4.mjs';import'../chunk-NO5LW2DQ.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-QVEAQOMR.mjs';import'../chunk-HL5PQT3A.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-TGPS3SRR.mjs';import'../chunk-BRHHK4MG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -1,4 +1,4 @@
1
- import { P as ParagraphFormatting, T as TextFormatting } from './formatting-D9I-lFS4.mjs';
1
+ import { P as ParagraphFormatting, T as TextFormatting } from './formatting-BH4hcZiq.mjs';
2
2
 
3
3
  /**
4
4
  * Lists & Numbering Types
@@ -111,6 +111,12 @@ interface ListRendering {
111
111
  markerFontFamily?: string;
112
112
  /** Marker font size from numbering level rPr, in points */
113
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;
114
120
  /**
115
121
  * NumberFormat for each level from 0..ilvl (inclusive).
116
122
  * Used to resolve multi-level templates like "%1.%2." where each %N
@@ -139,4 +145,4 @@ interface NumberingDefinitions {
139
145
  nums: NumberingInstance[];
140
146
  }
141
147
 
142
- export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, LevelSuffix as a, ListRendering as b, NumberFormat as c, NumberingInstance as d };
148
+ export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, NumberFormat as a, LevelSuffix as b, ListRendering as c, NumberingInstance as d };
@@ -1,4 +1,4 @@
1
- import { P as ParagraphFormatting, T as TextFormatting } from './formatting-BwpZWdGi.js';
1
+ import { P as ParagraphFormatting, T as TextFormatting } from './formatting-_OXU8gLB.js';
2
2
 
3
3
  /**
4
4
  * Lists & Numbering Types
@@ -111,6 +111,12 @@ interface ListRendering {
111
111
  markerFontFamily?: string;
112
112
  /** Marker font size from numbering level rPr, in points */
113
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;
114
120
  /**
115
121
  * NumberFormat for each level from 0..ilvl (inclusive).
116
122
  * Used to resolve multi-level templates like "%1.%2." where each %N
@@ -139,4 +145,4 @@ interface NumberingDefinitions {
139
145
  nums: NumberingInstance[];
140
146
  }
141
147
 
142
- export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, LevelSuffix as a, ListRendering as b, NumberFormat as c, NumberingInstance as d };
148
+ export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, NumberFormat as a, LevelSuffix as b, ListRendering as c, NumberingInstance as d };
@@ -16,11 +16,11 @@ 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-D9I-lFS4.mjs';
20
- import '../lists-JDB80qyP.mjs';
19
+ import '../formatting-BH4hcZiq.mjs';
20
+ import '../lists-CvG_iVK3.mjs';
21
21
  import '../types/content.mjs';
22
22
  import '../docx/wrapTypes.mjs';
23
- import '../styles-BBoqh07F.mjs';
23
+ import '../styles-EI2lxeEN.mjs';
24
24
 
25
25
  /**
26
26
  * AutoSaveManager
@@ -16,11 +16,11 @@ 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-BwpZWdGi.js';
20
- import '../lists-CdiIk_c1.js';
19
+ import '../formatting-_OXU8gLB.js';
20
+ import '../lists-UTp_tk7B.js';
21
21
  import '../types/content.js';
22
22
  import '../docx/wrapTypes.js';
23
- import '../styles-jqO45PSq.js';
23
+ import '../styles-BBv7doYK.js';
24
24
 
25
25
  /**
26
26
  * AutoSaveManager
@@ -23,10 +23,10 @@ import { Document } from '../types/document.mjs';
23
23
  import { Table } from '../types/content.mjs';
24
24
  import 'prosemirror-view';
25
25
  import '../colors-C3vA7HUU.mjs';
26
- import '../formatting-D9I-lFS4.mjs';
27
- import '../lists-JDB80qyP.mjs';
26
+ import '../formatting-BH4hcZiq.mjs';
27
+ import '../lists-CvG_iVK3.mjs';
28
28
  import '../docx/wrapTypes.mjs';
29
- import '../styles-BBoqh07F.mjs';
29
+ import '../styles-EI2lxeEN.mjs';
30
30
 
31
31
  /**
32
32
  * TableSelectionManager
@@ -23,10 +23,10 @@ import { Document } from '../types/document.js';
23
23
  import { Table } from '../types/content.js';
24
24
  import 'prosemirror-view';
25
25
  import '../colors-C3vA7HUU.js';
26
- import '../formatting-BwpZWdGi.js';
27
- import '../lists-CdiIk_c1.js';
26
+ import '../formatting-_OXU8gLB.js';
27
+ import '../lists-UTp_tk7B.js';
28
28
  import '../docx/wrapTypes.js';
29
- import '../styles-jqO45PSq.js';
29
+ import '../styles-BBv7doYK.js';
30
30
 
31
31
  /**
32
32
  * TableSelectionManager
@@ -8,11 +8,11 @@
8
8
  import { EditorView } from 'prosemirror-view';
9
9
  import { Document } from '../types/document.mjs';
10
10
  import '../colors-C3vA7HUU.mjs';
11
- import '../formatting-D9I-lFS4.mjs';
12
- import '../lists-JDB80qyP.mjs';
11
+ import '../formatting-BH4hcZiq.mjs';
12
+ import '../lists-CvG_iVK3.mjs';
13
13
  import '../types/content.mjs';
14
14
  import '../docx/wrapTypes.mjs';
15
- import '../styles-BBoqh07F.mjs';
15
+ import '../styles-EI2lxeEN.mjs';
16
16
 
17
17
  /**
18
18
  * Manager Types