ooxml-core 1.50.2 → 1.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/README.md +11 -0
  2. package/dist/{PptxHandler-PVQW47CY.mjs → PptxHandler-6GRVJRHP.mjs} +2 -2
  3. package/dist/PptxHandler-E6QYPF7X.mjs +8 -0
  4. package/dist/PptxHandler-UNQVCIGM.cjs +17 -0
  5. package/dist/PresentationBuilder-DVDJSV5R.mjs +8 -0
  6. package/dist/PresentationBuilder-F5UWRF6H.cjs +25 -0
  7. package/dist/{PresentationBuilder-ZOOVSBPR.mjs → PresentationBuilder-T6YKWPF7.mjs} +2 -2
  8. package/dist/automation/index.cjs +5806 -4494
  9. package/dist/automation/index.mjs +5806 -4494
  10. package/dist/chunk-25IJEN7R.cjs +36 -0
  11. package/dist/chunk-25JN3ZQM.mjs +58 -0
  12. package/dist/{chunk-7XYVFUB3.cjs → chunk-2IO523MM.cjs} +1 -0
  13. package/dist/{chunk-53KMIHYN.mjs → chunk-4LUZHBTT.mjs} +83 -31
  14. package/dist/chunk-554UZLPS.mjs +237 -0
  15. package/dist/{chunk-VLKUMQGT.mjs → chunk-63RAF3TS.mjs} +1 -1
  16. package/dist/{chunk-7UM5IFPR.mjs → chunk-6IUYKP77.mjs} +1 -1
  17. package/dist/{chunk-VK2G4BGX.mjs → chunk-BIMV5FVL.mjs} +481 -193
  18. package/dist/{chunk-CODMW5KF.cjs → chunk-CVUMILG3.cjs} +1 -0
  19. package/dist/{chunk-NBMXEVHL.mjs → chunk-FX6WL42B.mjs} +1 -0
  20. package/dist/chunk-GI4Y6BBX.mjs +21 -0
  21. package/dist/{chunk-MX2GFMZS.mjs → chunk-GZL4ERW3.mjs} +1 -1
  22. package/dist/chunk-HWL2AGLD.cjs +98 -0
  23. package/dist/chunk-HZAB3YDO.cjs +234 -0
  24. package/dist/chunk-IDATIFCG.mjs +226 -0
  25. package/dist/chunk-LO55N7VL.cjs +247 -0
  26. package/dist/{chunk-FFLU4LUQ.cjs → chunk-LUBPW5NP.cjs} +1629 -1609
  27. package/dist/chunk-MUNEIE2J.cjs +62 -0
  28. package/dist/{chunk-ZCKEKP7N.mjs → chunk-RYUADJV6.mjs} +4 -4
  29. package/dist/chunk-TOBK5FC4.mjs +88 -0
  30. package/dist/chunk-UV4LMGVZ.mjs +31 -0
  31. package/dist/{chunk-O3YGBYGZ.mjs → chunk-VRVHM6TJ.mjs} +1 -0
  32. package/dist/chunk-W7LVJC32.cjs +25 -0
  33. package/dist/chunk-WAZ7T2BL.cjs +169 -0
  34. package/dist/{chunk-3OKY56UM.mjs → chunk-YX33WEKS.mjs} +411 -391
  35. package/dist/docx/auto-number-fields.d.ts +22 -0
  36. package/dist/docx/auto-number-fields.d.ts.map +1 -0
  37. package/dist/docx/block-parser.d.ts.map +1 -1
  38. package/dist/docx/character-styles.d.ts.map +1 -1
  39. package/dist/docx/clipboard/css.d.ts +21 -0
  40. package/dist/docx/clipboard/css.d.ts.map +1 -0
  41. package/dist/docx/clipboard/html-tokens.d.ts +38 -0
  42. package/dist/docx/clipboard/html-tokens.d.ts.map +1 -0
  43. package/dist/docx/clipboard/index.d.ts +6 -0
  44. package/dist/docx/clipboard/index.d.ts.map +1 -0
  45. package/dist/docx/clipboard/word-fields.d.ts +13 -0
  46. package/dist/docx/clipboard/word-fields.d.ts.map +1 -0
  47. package/dist/docx/clipboard/word-fragment.d.ts +14 -0
  48. package/dist/docx/clipboard/word-fragment.d.ts.map +1 -0
  49. package/dist/docx/clipboard/word-html.d.ts +22 -0
  50. package/dist/docx/clipboard/word-html.d.ts.map +1 -0
  51. package/dist/docx/clipboard/word-list-scan.d.ts +25 -0
  52. package/dist/docx/clipboard/word-list-scan.d.ts.map +1 -0
  53. package/dist/docx/clipboard/word-lists.d.ts +13 -0
  54. package/dist/docx/clipboard/word-lists.d.ts.map +1 -0
  55. package/dist/docx/clipboard/word-runs.d.ts +18 -0
  56. package/dist/docx/clipboard/word-runs.d.ts.map +1 -0
  57. package/dist/docx/clipboard/word-styles.d.ts +35 -0
  58. package/dist/docx/clipboard/word-styles.d.ts.map +1 -0
  59. package/dist/docx/compare/build.d.ts +48 -0
  60. package/dist/docx/compare/build.d.ts.map +1 -0
  61. package/dist/docx/compare/compare.d.ts +18 -0
  62. package/dist/docx/compare/compare.d.ts.map +1 -0
  63. package/dist/docx/compare/context.d.ts +42 -0
  64. package/dist/docx/compare/context.d.ts.map +1 -0
  65. package/dist/docx/compare/diff.d.ts +20 -0
  66. package/dist/docx/compare/diff.d.ts.map +1 -0
  67. package/dist/docx/compare/index.d.ts +4 -0
  68. package/dist/docx/compare/index.d.ts.map +1 -0
  69. package/dist/docx/compare/slide.d.ts +9 -0
  70. package/dist/docx/compare/slide.d.ts.map +1 -0
  71. package/dist/docx/compare/spans.d.ts +13 -0
  72. package/dist/docx/compare/spans.d.ts.map +1 -0
  73. package/dist/docx/compare/story.d.ts +7 -0
  74. package/dist/docx/compare/story.d.ts.map +1 -0
  75. package/dist/docx/compare/table.d.ts +23 -0
  76. package/dist/docx/compare/table.d.ts.map +1 -0
  77. package/dist/docx/compare/tokens.d.ts +50 -0
  78. package/dist/docx/compare/tokens.d.ts.map +1 -0
  79. package/dist/docx/compare/types.d.ts +51 -0
  80. package/dist/docx/compare/types.d.ts.map +1 -0
  81. package/dist/docx/compatibility.d.ts +46 -0
  82. package/dist/docx/compatibility.d.ts.map +1 -0
  83. package/dist/docx/computed-fields.d.ts +39 -0
  84. package/dist/docx/computed-fields.d.ts.map +1 -0
  85. package/dist/docx/doc-property-field.d.ts +17 -0
  86. package/dist/docx/doc-property-field.d.ts.map +1 -0
  87. package/dist/docx/document-parts.d.ts +2 -0
  88. package/dist/docx/document-parts.d.ts.map +1 -1
  89. package/dist/docx/drawing-wrap.d.ts +21 -0
  90. package/dist/docx/drawing-wrap.d.ts.map +1 -0
  91. package/dist/docx/drawing.d.ts.map +1 -1
  92. package/dist/docx/embedded.cjs +3965 -2313
  93. package/dist/docx/embedded.mjs +3965 -2313
  94. package/dist/docx/field-format.d.ts +45 -0
  95. package/dist/docx/field-format.d.ts.map +1 -0
  96. package/dist/docx/field-result-spans.d.ts +62 -0
  97. package/dist/docx/field-result-spans.d.ts.map +1 -0
  98. package/dist/docx/field-runs.d.ts.map +1 -1
  99. package/dist/docx/field-stories.d.ts +9 -0
  100. package/dist/docx/field-stories.d.ts.map +1 -0
  101. package/dist/docx/find-stories.d.ts +27 -0
  102. package/dist/docx/find-stories.d.ts.map +1 -0
  103. package/dist/docx/highlight.d.ts +19 -0
  104. package/dist/docx/highlight.d.ts.map +1 -1
  105. package/dist/docx/hyperlink.d.ts +7 -0
  106. package/dist/docx/hyperlink.d.ts.map +1 -1
  107. package/dist/docx/index.cjs +7359 -3476
  108. package/dist/docx/index.d.ts +13 -1
  109. package/dist/docx/index.d.ts.map +1 -1
  110. package/dist/docx/index.mjs +7327 -3476
  111. package/dist/docx/inline-model.d.ts +21 -0
  112. package/dist/docx/inline-model.d.ts.map +1 -1
  113. package/dist/docx/inline-slots.d.ts.map +1 -1
  114. package/dist/docx/inspect-document.d.ts +21 -0
  115. package/dist/docx/inspect-document.d.ts.map +1 -0
  116. package/dist/docx/kinsoku-settings.d.ts +9 -0
  117. package/dist/docx/kinsoku-settings.d.ts.map +1 -0
  118. package/dist/docx/layout/adapt-table-floating.d.ts +11 -0
  119. package/dist/docx/layout/adapt-table-floating.d.ts.map +1 -0
  120. package/dist/docx/layout/adapt-table.d.ts.map +1 -1
  121. package/dist/docx/layout/adapter.d.ts.map +1 -1
  122. package/dist/docx/layout/computed-field-runs.d.ts +8 -0
  123. package/dist/docx/layout/computed-field-runs.d.ts.map +1 -0
  124. package/dist/docx/layout/floats.d.ts +3 -1
  125. package/dist/docx/layout/floats.d.ts.map +1 -1
  126. package/dist/docx/layout/flow-floating-table.d.ts +13 -0
  127. package/dist/docx/layout/flow-floating-table.d.ts.map +1 -0
  128. package/dist/docx/layout/flow-table.d.ts +1 -1
  129. package/dist/docx/layout/flow-table.d.ts.map +1 -1
  130. package/dist/docx/layout/index.cjs +2280 -941
  131. package/dist/docx/layout/index.mjs +2276 -942
  132. package/dist/docx/layout/input.d.ts +50 -0
  133. package/dist/docx/layout/input.d.ts.map +1 -1
  134. package/dist/docx/layout/layout.d.ts.map +1 -1
  135. package/dist/docx/layout/page-cursor.d.ts.map +1 -1
  136. package/dist/docx/layout/page-flow.d.ts.map +1 -1
  137. package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
  138. package/dist/docx/layout/paragraph-tokens.d.ts +6 -0
  139. package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -1
  140. package/dist/docx/layout/result.d.ts +12 -0
  141. package/dist/docx/layout/result.d.ts.map +1 -1
  142. package/dist/docx/layout/section-flow.d.ts.map +1 -1
  143. package/dist/docx/layout/table-autofit-distribute.d.ts +18 -0
  144. package/dist/docx/layout/table-autofit-distribute.d.ts.map +1 -0
  145. package/dist/docx/layout/table-autofit-measure.d.ts +15 -0
  146. package/dist/docx/layout/table-autofit-measure.d.ts.map +1 -0
  147. package/dist/docx/layout/table-autofit.d.ts +10 -0
  148. package/dist/docx/layout/table-autofit.d.ts.map +1 -0
  149. package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
  150. package/dist/docx/layout/text-breaks.d.ts +38 -13
  151. package/dist/docx/layout/text-breaks.d.ts.map +1 -1
  152. package/dist/docx/layout/wrap.d.ts +1 -1
  153. package/dist/docx/layout/wrap.d.ts.map +1 -1
  154. package/dist/docx/list-number-fields.d.ts +25 -0
  155. package/dist/docx/list-number-fields.d.ts.map +1 -0
  156. package/dist/docx/load/index.cjs +4355 -2703
  157. package/dist/docx/load/index.mjs +4355 -2703
  158. package/dist/docx/model-paragraph.d.ts +12 -1
  159. package/dist/docx/model-paragraph.d.ts.map +1 -1
  160. package/dist/docx/model.d.ts +26 -1
  161. package/dist/docx/model.d.ts.map +1 -1
  162. package/dist/docx/note-convert.d.ts +45 -0
  163. package/dist/docx/note-convert.d.ts.map +1 -0
  164. package/dist/docx/numbering-counters.d.ts +17 -0
  165. package/dist/docx/numbering-counters.d.ts.map +1 -0
  166. package/dist/docx/numbering-format.d.ts +11 -2
  167. package/dist/docx/numbering-format.d.ts.map +1 -1
  168. package/dist/docx/outline-numbering.d.ts +6 -0
  169. package/dist/docx/outline-numbering.d.ts.map +1 -0
  170. package/dist/docx/package-information-save.d.ts +9 -0
  171. package/dist/docx/package-information-save.d.ts.map +1 -0
  172. package/dist/docx/package-information.d.ts +43 -0
  173. package/dist/docx/package-information.d.ts.map +1 -0
  174. package/dist/docx/package-properties.d.ts +5 -0
  175. package/dist/docx/package-properties.d.ts.map +1 -0
  176. package/dist/docx/paragraph-styles.d.ts +2 -0
  177. package/dist/docx/paragraph-styles.d.ts.map +1 -1
  178. package/dist/docx/parse-revisions.d.ts +2 -0
  179. package/dist/docx/parse-revisions.d.ts.map +1 -1
  180. package/dist/docx/parse-table-floating.d.ts +5 -0
  181. package/dist/docx/parse-table-floating.d.ts.map +1 -0
  182. package/dist/docx/parse-table.d.ts.map +1 -1
  183. package/dist/docx/parse.d.ts.map +1 -1
  184. package/dist/docx/part-relationships.d.ts.map +1 -1
  185. package/dist/docx/personal-information.d.ts +18 -0
  186. package/dist/docx/personal-information.d.ts.map +1 -0
  187. package/dist/docx/picture-crop-edit.d.ts +18 -0
  188. package/dist/docx/picture-crop-edit.d.ts.map +1 -0
  189. package/dist/docx/picture-watermark.d.ts +29 -0
  190. package/dist/docx/picture-watermark.d.ts.map +1 -0
  191. package/dist/docx/relationship-allocator.d.ts.map +1 -1
  192. package/dist/docx/remove-document-information.d.ts +8 -0
  193. package/dist/docx/remove-document-information.d.ts.map +1 -0
  194. package/dist/docx/revision-commands.d.ts +6 -1
  195. package/dist/docx/revision-commands.d.ts.map +1 -1
  196. package/dist/docx/revision-ids.d.ts.map +1 -1
  197. package/dist/docx/run-language.d.ts +9 -0
  198. package/dist/docx/run-language.d.ts.map +1 -0
  199. package/dist/docx/run-properties-snapshot.d.ts +9 -0
  200. package/dist/docx/run-properties-snapshot.d.ts.map +1 -0
  201. package/dist/docx/run-style-model.d.ts +4 -0
  202. package/dist/docx/run-style-model.d.ts.map +1 -1
  203. package/dist/docx/save-modified.d.ts +2 -1
  204. package/dist/docx/save-modified.d.ts.map +1 -1
  205. package/dist/docx/save.d.ts.map +1 -1
  206. package/dist/docx/style-ref-fields.d.ts +1 -8
  207. package/dist/docx/style-ref-fields.d.ts.map +1 -1
  208. package/dist/docx/symbol-field.d.ts +21 -0
  209. package/dist/docx/symbol-field.d.ts.map +1 -0
  210. package/dist/docx/table-cell-write.d.ts.map +1 -1
  211. package/dist/docx/table-defaults.d.ts +2 -0
  212. package/dist/docx/table-defaults.d.ts.map +1 -1
  213. package/dist/docx/table-margins.d.ts +18 -0
  214. package/dist/docx/table-margins.d.ts.map +1 -0
  215. package/dist/docx/table-model.d.ts +23 -0
  216. package/dist/docx/table-model.d.ts.map +1 -1
  217. package/dist/docx/table-structure-check.d.ts.map +1 -1
  218. package/dist/docx/table-styles.d.ts.map +1 -1
  219. package/dist/docx/ui/index.cjs +787 -435
  220. package/dist/docx/ui/index.d.ts +1 -0
  221. package/dist/docx/ui/index.d.ts.map +1 -1
  222. package/dist/docx/ui/index.mjs +784 -436
  223. package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
  224. package/dist/docx/ui/paragraph-attributes.d.ts +6 -0
  225. package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
  226. package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
  227. package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
  228. package/dist/docx/ui/ribbon-legacy-labels.d.ts +1 -1
  229. package/dist/docx/ui/ribbon-legacy-labels.d.ts.map +1 -1
  230. package/dist/docx/ui/run-adapter.d.ts.map +1 -1
  231. package/dist/docx/ui/schema-marks.d.ts +2 -19
  232. package/dist/docx/ui/schema-marks.d.ts.map +1 -1
  233. package/dist/docx/ui/track-run-formatting.d.ts.map +1 -1
  234. package/dist/docx/ui/yjs-document-attributes.d.ts +5 -0
  235. package/dist/docx/ui/yjs-document-attributes.d.ts.map +1 -1
  236. package/dist/docx/write-drawing-wrap.d.ts +22 -0
  237. package/dist/docx/write-drawing-wrap.d.ts.map +1 -0
  238. package/dist/docx/write-drawing.d.ts.map +1 -1
  239. package/dist/docx/write-revisions.d.ts +3 -1
  240. package/dist/docx/write-revisions.d.ts.map +1 -1
  241. package/dist/docx/write-shape.d.ts.map +1 -1
  242. package/dist/docx/write-table-properties.d.ts.map +1 -1
  243. package/dist/docx/write.d.ts.map +1 -1
  244. package/dist/drawingml/html-text-paste.d.ts +28 -0
  245. package/dist/drawingml/html-text-paste.d.ts.map +1 -0
  246. package/dist/drawingml/html-text-style.d.ts +18 -0
  247. package/dist/drawingml/html-text-style.d.ts.map +1 -0
  248. package/dist/drawingml/index.cjs +762 -0
  249. package/dist/drawingml/index.d.ts +1 -0
  250. package/dist/drawingml/index.d.ts.map +1 -1
  251. package/dist/drawingml/index.mjs +760 -1
  252. package/dist/index.cjs +1237 -285
  253. package/dist/index.mjs +1237 -285
  254. package/dist/pptx/automation/index.cjs +561 -180
  255. package/dist/pptx/automation/index.d.ts +4 -4
  256. package/dist/pptx/automation/index.mjs +6 -5
  257. package/dist/pptx/chunks/{index-BCy58n13.d.ts → index-8ZfPndYR.d.ts} +2 -2
  258. package/dist/pptx/chunks/{index-BCy58n13.d.ts.map → index-8ZfPndYR.d.ts.map} +1 -1
  259. package/dist/pptx/chunks/{index-OwiX5IVw.d.ts → index-DVhD9Kd5.d.ts} +4 -4
  260. package/dist/pptx/chunks/{index-OwiX5IVw.d.ts.map → index-DVhD9Kd5.d.ts.map} +1 -1
  261. package/dist/pptx/chunks/{index-oQHWAO7M.d.ts → index-DsUnUj-V.d.ts} +5 -5
  262. package/dist/pptx/chunks/{index-oQHWAO7M.d.ts.map → index-DsUnUj-V.d.ts.map} +1 -1
  263. package/dist/pptx/chunks/{index-AZN38e6S.d.ts → index-xB7MDLI7.d.ts} +4 -4
  264. package/dist/pptx/chunks/{index-AZN38e6S.d.ts.map → index-xB7MDLI7.d.ts.map} +1 -1
  265. package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts → presentation-BvnVkFPJ.d.ts} +26 -2
  266. package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts.map → presentation-BvnVkFPJ.d.ts.map} +1 -1
  267. package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts → text-operations-D7TCPhlv.d.ts} +2 -2
  268. package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts.map → text-operations-D7TCPhlv.d.ts.map} +1 -1
  269. package/dist/pptx/cli/index.cjs +504 -124
  270. package/dist/pptx/cli/index.d.ts +1 -1
  271. package/dist/pptx/cli/index.mjs +4 -4
  272. package/dist/pptx/converter/index.d.ts +1 -1
  273. package/dist/pptx/converter/index.mjs +2 -2
  274. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  275. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  276. package/dist/pptx/editor/render/find-replace.cjs +16 -15
  277. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  278. package/dist/pptx/editor/render/find-replace.mjs +3 -2
  279. package/dist/pptx/editor/render/font-family-update.d.ts +2 -2
  280. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +2 -2
  281. package/dist/pptx/editor/render/segments-text-edit.cjs +159 -0
  282. package/dist/pptx/editor/render/segments-text-edit.d.ts +26 -0
  283. package/dist/pptx/editor/render/segments-text-edit.d.ts.map +1 -0
  284. package/dist/pptx/editor/render/segments-text-edit.mjs +156 -0
  285. package/dist/pptx/editor/render/slide-operations.cjs +12 -9
  286. package/dist/pptx/editor/render/slide-operations.mjs +6 -3
  287. package/dist/pptx/editor/render/table-cell-edit.cjs +5 -5
  288. package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
  289. package/dist/pptx/editor/render/table-cell-edit.mjs +1 -1
  290. package/dist/pptx/editor/render/table-cell-merge.cjs +3 -3
  291. package/dist/pptx/editor/render/table-cell-merge.mjs +1 -1
  292. package/dist/pptx/editor/render/table-cell-rich-text.cjs +41 -0
  293. package/dist/pptx/editor/render/table-cell-rich-text.d.ts +50 -0
  294. package/dist/pptx/editor/render/table-cell-rich-text.d.ts.map +1 -0
  295. package/dist/pptx/editor/render/table-cell-rich-text.mjs +8 -0
  296. package/dist/pptx/editor/render/table-cell-source.cjs +23 -0
  297. package/dist/pptx/editor/render/table-cell-source.d.ts +31 -0
  298. package/dist/pptx/editor/render/table-cell-source.d.ts.map +1 -0
  299. package/dist/pptx/editor/render/table-cell-source.mjs +6 -0
  300. package/dist/pptx/editor/render/table-cells-text-style.cjs +116 -0
  301. package/dist/pptx/editor/render/table-cells-text-style.d.ts +37 -0
  302. package/dist/pptx/editor/render/table-cells-text-style.d.ts.map +1 -0
  303. package/dist/pptx/editor/render/table-cells-text-style.mjs +113 -0
  304. package/dist/pptx/editor/render/table-data-grid-ops.cjs +40 -94
  305. package/dist/pptx/editor/render/table-data-grid-ops.mjs +3 -88
  306. package/dist/pptx/editor/render/table-grid-fill.cjs +30 -0
  307. package/dist/pptx/editor/render/table-grid-fill.d.ts +34 -0
  308. package/dist/pptx/editor/render/table-grid-fill.d.ts.map +1 -0
  309. package/dist/pptx/editor/render/table-grid-fill.mjs +28 -0
  310. package/dist/pptx/editor/render/table-layout.cjs +6 -6
  311. package/dist/pptx/editor/render/table-layout.d.ts +2 -2
  312. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  313. package/dist/pptx/editor/render/table-layout.mjs +1 -1
  314. package/dist/pptx/editor/render/table-merge.cjs +5 -5
  315. package/dist/pptx/editor/render/table-merge.mjs +1 -1
  316. package/dist/pptx/editor/render/text-content-style.d.ts +2 -2
  317. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
  318. package/dist/pptx/editor/render/text-style-scope.d.ts +2 -2
  319. package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -2
  320. package/dist/pptx/index.cjs +519 -201
  321. package/dist/pptx/index.d.ts +7 -7
  322. package/dist/pptx/index.mjs +5 -5
  323. package/dist/pptx/node/index.d.ts +1 -1
  324. package/dist/pptx/smartart-layouts/index.d.ts +2 -2
  325. package/dist/teams/index.cjs +35 -25
  326. package/dist/teams/index.mjs +35 -25
  327. package/dist/text/complex-breaks.d.ts +24 -0
  328. package/dist/text/complex-breaks.d.ts.map +1 -0
  329. package/dist/text/east-asian.d.ts +32 -0
  330. package/dist/text/east-asian.d.ts.map +1 -0
  331. package/dist/text/html-tokens.d.ts +45 -0
  332. package/dist/text/html-tokens.d.ts.map +1 -0
  333. package/dist/text/index.cjs +567 -96
  334. package/dist/text/index.d.ts +6 -0
  335. package/dist/text/index.d.ts.map +1 -1
  336. package/dist/text/index.mjs +544 -97
  337. package/dist/text/kinsoku.d.ts +55 -0
  338. package/dist/text/kinsoku.d.ts.map +1 -0
  339. package/dist/text/truetype/embedding.d.ts +42 -0
  340. package/dist/text/truetype/embedding.d.ts.map +1 -0
  341. package/dist/text/truetype/glyphless.d.ts +5 -0
  342. package/dist/text/truetype/glyphless.d.ts.map +1 -0
  343. package/dist/text/truetype/sfnt-write.d.ts +10 -0
  344. package/dist/text/truetype/sfnt-write.d.ts.map +1 -0
  345. package/dist/text/truetype/subset.d.ts.map +1 -1
  346. package/dist/text/windows-1252.d.ts +10 -0
  347. package/dist/text/windows-1252.d.ts.map +1 -0
  348. package/dist/xlsx/collab/index.cjs +10 -6
  349. package/dist/xlsx/collab/index.mjs +10 -6
  350. package/dist/xlsx/edit/clipboard-html-parse.d.ts +1 -0
  351. package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -1
  352. package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -1
  353. package/dist/xlsx/index.cjs +96 -51
  354. package/dist/xlsx/index.mjs +96 -51
  355. package/dist/xlsx/load/index.cjs +10 -6
  356. package/dist/xlsx/load/index.mjs +10 -6
  357. package/dist/xlsx/ui/index.cjs +97 -52
  358. package/dist/xlsx/ui/index.mjs +97 -52
  359. package/package.json +1 -1
  360. package/dist/PptxHandler-72NTA5ZY.cjs +0 -14
  361. package/dist/PptxHandler-O4IJ3TKZ.mjs +0 -5
  362. package/dist/PresentationBuilder-ORM22QGC.mjs +0 -5
  363. package/dist/PresentationBuilder-T2ETYT3L.cjs +0 -22
  364. package/dist/chunk-X4RL5AZ7.cjs +0 -120
  365. package/dist/{chunk-PRGXRAAU.mjs → chunk-4Y76EAKK.mjs} +131 -131
  366. package/dist/{chunk-EN3KSEW5.cjs → chunk-MMULWQOM.cjs} +131 -131
@@ -0,0 +1,51 @@
1
+ import type { DocumentModel } from '../model.js';
2
+ /** How finely changed text is marked, as in Word's Compare Documents "Show changes at". */
3
+ export type CompareGranularity = 'word' | 'character';
4
+ export interface CompareDocumentsOptions {
5
+ /** The author of every revision the comparison records (Word's "Label changes with"). */
6
+ author: string;
7
+ /** The revision date; an ISO 8601 string or a `Date`. Default: now. */
8
+ date?: string | Date;
9
+ /** Default `word`. */
10
+ granularity?: CompareGranularity;
11
+ /** Record formatting differences of unchanged text as `w:rPrChange`; default true. */
12
+ compareFormatting?: boolean;
13
+ }
14
+ /** Parts of a document the comparison does not look at; listed in every result. */
15
+ export declare const UNCOMPARED_DOCUMENT_PARTS: readonly [
16
+ /** Headers and footers keep the revised document's. */
17
+ 'headersAndFooters',
18
+ /** Footnotes and endnotes keep the revised document's; deleted note references are dropped. */
19
+ 'notes',
20
+ /** Comments keep the revised document's; comment anchors in deleted text are dropped. */
21
+ 'comments',
22
+ /** Text boxes, shapes and drawings are compared as whole objects, never inside. */
23
+ 'textBoxes',
24
+ /** Moved text is shown as a deletion and an insertion, never as `w:moveFrom`/`w:moveTo`. */
25
+ 'moves',
26
+ /** Paragraph formatting keeps the revised document's; no `w:pPrChange` is recorded. */
27
+ 'paragraphFormatting',
28
+ /** Table, row and cell properties keep the revised document's; no `w:tblPrChange`/`w:tcPrChange`. */
29
+ 'tableFormatting',
30
+ /** Section and page setup keeps the revised document's. */
31
+ 'sections'];
32
+ export type UncomparedDocumentPart = (typeof UNCOMPARED_DOCUMENT_PARTS)[number];
33
+ export interface CompareSummary {
34
+ /** Spans of inserted text, paragraph marks and table rows. */
35
+ insertions: number;
36
+ /** Spans of deleted text, paragraph marks and table rows. */
37
+ deletions: number;
38
+ /** Spans of unchanged text whose run formatting changed. */
39
+ formatChanges: number;
40
+ }
41
+ export interface CompareDocumentsResult {
42
+ /** The new package: the revised document with the differences as tracked changes. */
43
+ bytes: Uint8Array;
44
+ /** `bytes` loaded again, so the model and the package agree. */
45
+ model: DocumentModel;
46
+ summary: CompareSummary;
47
+ /** Content the comparison could not carry over or represent, in plain words. */
48
+ warnings: string[];
49
+ notCompared: readonly UncomparedDocumentPart[];
50
+ }
51
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../docx/compare/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,2FAA2F;AAC3F,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,WAAW,CAAC;AAEtD,MAAM,WAAW,uBAAuB;IACvC,yFAAyF;IACzF,MAAM,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,sBAAsB;IACtB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,mFAAmF;AACnF,eAAO,MAAM,yBAAyB;AACrC,uDAAuD;AACvD,mBAAmB;AACnB,+FAA+F;AAC/F,OAAO;AACP,yFAAyF;AACzF,UAAU;AACV,mFAAmF;AACnF,WAAW;AACX,4FAA4F;AAC5F,OAAO;AACP,uFAAuF;AACvF,qBAAqB;AACrB,qGAAqG;AACrG,iBAAiB;AACjB,2DAA2D;AAC3D,UAAU,CACD,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhF,MAAM,WAAW,cAAc;IAC9B,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACtC,qFAAqF;IACrF,KAAK,EAAE,UAAU,CAAC;IAClB,gEAAgE;IAChE,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,cAAc,CAAC;IACxB,gFAAgF;IAChF,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,SAAS,sBAAsB,EAAE,CAAC;CAC/C"}
@@ -0,0 +1,46 @@
1
+ import { type XmlElement } from './xml.js';
2
+ /** The `w:compat` values the document model keeps. */
3
+ export interface CompatibilitySettings {
4
+ /** `w:compatSetting[@w:name="compatibilityMode"]`, a positive integer. */
5
+ compatibilityMode?: number;
6
+ /** `w:compat/w:doNotUseHTMLParagraphAutoSpacing`. */
7
+ doNotUseHtmlParagraphAutoSpacing?: boolean;
8
+ }
9
+ /** `modern` is compatibility mode 15 and later; `legacy` is 11 to 14 and an absent mode. */
10
+ export type CompatibilityGeneration = 'modern' | 'legacy';
11
+ export interface CompatibilityProfile {
12
+ generation: CompatibilityGeneration;
13
+ /** The saved mode number, when the document has one. */
14
+ mode?: number;
15
+ /** Legacy `w:compat` child options. */
16
+ doNotUseHtmlParagraphAutoSpacing: boolean;
17
+ }
18
+ /** Reads the compatibility mode and legacy options from `w:settings/w:compat`. */
19
+ export declare function readCompatibilitySettings(compat: XmlElement | undefined): CompatibilitySettings;
20
+ /** The layout profile of a document model (or of the settings read from its package). */
21
+ export declare function compatibilityProfile(settings: CompatibilitySettings): CompatibilityProfile;
22
+ /**
23
+ * `doNotUseHTMLParagraphAutoSpacing`: adjacent paragraph spacing adds the space after and before
24
+ * instead of keeping the larger, and auto spacing reads the twips. Measured in modes 12, 14 and 15.
25
+ */
26
+ export declare function addsParagraphSpacing(profile: CompatibilityProfile): boolean;
27
+ /**
28
+ * A `pageBreakBefore` paragraph at the top of a page keeps its space before. Measured: kept in
29
+ * modes 12 and 14, dropped in 15; other modes (including later numbers) keep the legacy rule
30
+ * until they are measured.
31
+ */
32
+ export declare function keepsSpaceBeforePageBreak(profile: CompatibilityProfile): boolean;
33
+ /**
34
+ * Native mode 15 footnote layout: the separator repeats the normal story on continued pages and
35
+ * `w:footnotePr/w:numCols` gives the notes their own columns. Only mode 15 has been measured.
36
+ */
37
+ export declare function usesModernFootnoteLayout(profile: CompatibilityProfile): boolean;
38
+ /** Modes 12 and 14 (measured) ignore the footnote column count and attach notes to body columns. */
39
+ export declare function attachesFootnotesToBodyColumns(profile: CompatibilityProfile): boolean;
40
+ /**
41
+ * AutoFit tables size against the text column plus the first cell's left margin, and a percentage
42
+ * width against the column plus both outer cell margins. Measured in modes 12, 14 and with no
43
+ * mode (table-autofit fixtures); mode 15 sizes against the column itself.
44
+ */
45
+ export declare function autofitOverhangsCellMargins(profile: CompatibilityProfile): boolean;
46
+ //# sourceMappingURL=compatibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compatibility.d.ts","sourceRoot":"","sources":["../../docx/compatibility.ts"],"names":[],"mappings":"AAKA,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAK/D,sDAAsD;AACtD,MAAM,WAAW,qBAAqB;IACrC,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qDAAqD;IACrD,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC3C;AAED,4FAA4F;AAC5F,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACpC,UAAU,EAAE,uBAAuB,CAAC;IACpC,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,gCAAgC,EAAE,OAAO,CAAC;CAC1C;AAED,kFAAkF;AAClF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,qBAAqB,CAc/F;AAED,yFAAyF;AACzF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,oBAAoB,CAO1F;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAE3E;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAEhF;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAE/E;AAED,oGAAoG;AACpG,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAErF;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAElF"}
@@ -0,0 +1,39 @@
1
+ import { type FieldResultSpan } from './field-result-spans.js';
2
+ import type { DocumentModel, Paragraph } from './model.js';
3
+ /** What a computed field shows, and the font it draws in when that is not the run's own. */
4
+ export interface ComputedFieldResult {
5
+ text: string;
6
+ /** `\* CHARFORMAT`: formatted like the first letter of the field name. */
7
+ charFormat?: boolean;
8
+ fontFamily?: string;
9
+ fontSizePt?: number;
10
+ }
11
+ /** The computed results of one document's fields. */
12
+ export interface ComputedFields {
13
+ /**
14
+ * What `field` of `paragraph` shows; undefined for a field this package does not compute, or
15
+ * one whose switches it does not evaluate: such a field keeps its saved result.
16
+ */
17
+ result(field: Pick<FieldResultSpan, 'from' | 'instr'>, paragraph: Paragraph): ComputedFieldResult | undefined;
18
+ }
19
+ /** The names of the fields `computedFields` evaluates. */
20
+ export declare const COMPUTED_FIELD_NAMES: ReadonlySet<string>;
21
+ /**
22
+ * Reads `model`'s computed fields; what each needs is worked out once, when first asked for. A
23
+ * DOCPROPERTY that names no property keeps its result unless `errors` asks for Word's error text,
24
+ * as an explicit Update Fields shows it: the layout and a save never turn a result into an error.
25
+ */
26
+ export declare function computedFields(model: DocumentModel, options?: {
27
+ errors?: boolean;
28
+ }): ComputedFields;
29
+ /**
30
+ * `model` with the cached result of every unlocked computed field brought up to date, in the
31
+ * headers and footers and, with `body`, the main document. A field saved without a result
32
+ * (Word saves AUTONUM, LISTNUM and SYMBOL so, and draws what they show) is left without one.
33
+ * The counted fields (AUTONUM, LISTNUM) count the main document only, so a header or footer
34
+ * keeps theirs. Returns `model` itself when nothing changed.
35
+ */
36
+ export declare function refreshComputedFields(model: DocumentModel, options?: {
37
+ body?: boolean;
38
+ }): DocumentModel;
39
+ //# sourceMappingURL=computed-fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computed-fields.d.ts","sourceRoot":"","sources":["../../docx/computed-fields.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG9E,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAExD,4FAA4F;AAC5F,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qDAAqD;AACrD,MAAM,WAAW,cAAc;IAC9B;;;OAGG;IACH,MAAM,CACL,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,EAC9C,SAAS,EAAE,SAAS,GAClB,mBAAmB,GAAG,SAAS,CAAC;CACnC;AAID,0DAA0D;AAC1D,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAKnD,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,aAAa,EACpB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GAChC,cAAc,CAmChB;AAKD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,aAAa,EACpB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAC9B,aAAa,CAaf"}
@@ -0,0 +1,17 @@
1
+ import type { DocumentPropertySet } from '../opc/properties/types.js';
2
+ import type { DocumentModel } from './model.js';
3
+ /** Word's results when a DOCPROPERTY names nothing it knows (English Word's wording). */
4
+ export declare const UNKNOWN_PROPERTY = "Error! Unknown document property name.";
5
+ export declare const NO_PROPERTY_NAME = "Error! No property name supplied.";
6
+ /**
7
+ * A DOCPROPERTY result, with its `\*` formats and, for a date, its `\@` picture. Undefined when
8
+ * the field keeps its saved result: another field, an unevaluated switch, a statistic or a date
9
+ * without a picture (Word draws those in the system's regional format).
10
+ */
11
+ export declare function docPropertyResult(instr: string, properties: DocumentPropertySet): string | undefined;
12
+ /**
13
+ * The properties a DOCPROPERTY reads: those the package was loaded with, with the core fields
14
+ * edited in the document (`model.properties`) taking their place.
15
+ */
16
+ export declare function fieldProperties(model: DocumentModel): DocumentPropertySet;
17
+ //# sourceMappingURL=doc-property-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doc-property-field.d.ts","sourceRoot":"","sources":["../../docx/doc-property-field.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIX,mBAAmB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,yFAAyF;AACzF,eAAO,MAAM,gBAAgB,2CAA2C,CAAC;AACzE,eAAO,MAAM,gBAAgB,sCAAsC,CAAC;AA6FpE;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,mBAAmB,GAC7B,MAAM,GAAG,SAAS,CAgBpB;AAYD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,GAAG,mBAAmB,CAUzE"}
@@ -1,6 +1,7 @@
1
1
  import type JSZip from 'jszip';
2
2
  import type { Block, Note, SectionProperties } from './model.js';
3
3
  import { type XmlElement } from './xml.js';
4
+ import type { KinsokuSettings } from '../text/kinsoku.js';
4
5
  import { type StNumberFormat } from './generated/wml-simple-types.js';
5
6
  import type { DrawingContext } from './drawing.js';
6
7
  export interface DocumentPartsResult {
@@ -10,6 +11,7 @@ export interface DocumentPartsResult {
10
11
  endnotes?: Note[];
11
12
  compatibilityMode?: number;
12
13
  doNotUseHtmlParagraphAutoSpacing?: boolean;
14
+ kinsoku?: KinsokuSettings;
13
15
  footnoteNumFmt?: StNumberFormat;
14
16
  endnoteNumFmt?: StNumberFormat;
15
17
  evenAndOddHeaders?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"document-parts.d.ts","sourceRoot":"","sources":["../../docx/document-parts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAqB,IAAI,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjF,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAMrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAkGhD,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,SAAS,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC3E,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,kGAAkG;AAClG,wBAAsB,kBAAkB,CACvC,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,KAAK,EAAE,EACf,QAAQ,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,mBAAmB,CAAC,CAwE9B"}
1
+ {"version":3,"file":"document-parts.d.ts","sourceRoot":"","sources":["../../docx/document-parts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAqB,IAAI,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjF,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAMrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAsFhD,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,SAAS,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC3E,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,kGAAkG;AAClG,wBAAsB,kBAAkB,CACvC,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,KAAK,EAAE,EACf,QAAQ,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,mBAAmB,CAAC,CAyE9B"}
@@ -0,0 +1,21 @@
1
+ import type { InlineImage, PicturePlacement } from './inline-model.js';
2
+ /** Word's Wrap Text menu: In Line with Text, the five wrapping styles, Behind and In Front of Text. */
3
+ export type DrawingWrap = 'inline' | 'square' | 'tight' | 'through' | 'topAndBottom' | 'behind' | 'front';
4
+ /** Every Wrap Text choice, in Word's menu order. */
5
+ export declare const DRAWING_WRAPS: readonly DrawingWrap[];
6
+ /** Where a picture lands when it starts floating: offsets from the column and the paragraph. */
7
+ export interface FloatOrigin {
8
+ offsetXPx?: number;
9
+ offsetYPx?: number;
10
+ }
11
+ /** The Wrap Text choice that describes a drawing. */
12
+ export declare function drawingWrapOf(anchored: boolean | undefined, placement: PicturePlacement | undefined): DrawingWrap;
13
+ /**
14
+ * The floating placement for a wrap choice. An existing placement keeps its position and the
15
+ * sides text may use; a drawing that starts floating sits at `origin` from the column and the
16
+ * paragraph, as Word places a picture converted from In Line with Text.
17
+ */
18
+ export declare function placementForWrap(placement: PicturePlacement | undefined, wrap: Exclude<DrawingWrap, 'inline'>, origin?: FloatOrigin): PicturePlacement;
19
+ /** A copy of `image` with the Wrap Text choice applied (`anchored` and `placement`). */
20
+ export declare function setDrawingWrap(image: InlineImage, wrap: DrawingWrap, origin?: FloatOrigin): InlineImage;
21
+ //# sourceMappingURL=drawing-wrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawing-wrap.d.ts","sourceRoot":"","sources":["../../docx/drawing-wrap.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEpE,uGAAuG;AACvG,MAAM,MAAM,WAAW,GACpB,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,cAAc,GACd,QAAQ,GACR,OAAO,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAQ/C,CAAC;AAEF,gGAAgG;AAChG,MAAM,WAAW,WAAW;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qDAAqD;AACrD,wBAAgB,aAAa,CAC5B,QAAQ,EAAE,OAAO,GAAG,SAAS,EAC7B,SAAS,EAAE,gBAAgB,GAAG,SAAS,GACrC,WAAW,CAIb;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,gBAAgB,GAAG,SAAS,EACvC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,EACpC,MAAM,GAAE,WAAgB,GACtB,gBAAgB,CAalB;AAED,wFAAwF;AACxF,wBAAgB,cAAc,CAC7B,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,WAAW,EACjB,MAAM,CAAC,EAAE,WAAW,GAClB,WAAW,CAQb"}
@@ -1 +1 @@
1
- {"version":3,"file":"drawing.d.ts","sourceRoot":"","sources":["../../docx/drawing.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,SAAS,CAAC;AAC7D,OAAO,EAGN,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAYzD,+CAA+C;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACxC,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAChC;AAoOD,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,GAAG,WAAW,CAInF"}
1
+ {"version":3,"file":"drawing.d.ts","sourceRoot":"","sources":["../../docx/drawing.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,SAAS,CAAC;AAC7D,OAAO,EAGN,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAYzD,+CAA+C;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACxC,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAChC;AAwOD,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,GAAG,WAAW,CAInF"}