ooxml-core 1.36.0 → 1.37.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 (474) hide show
  1. package/dist/PptxHandler-2JSQ22VD.cjs +14 -0
  2. package/dist/{PptxHandler-XCYX5DVX.mjs → PptxHandler-3T5DTNKA.mjs} +2 -2
  3. package/dist/PptxHandler-7T7ZS7IK.mjs +5 -0
  4. package/dist/{PresentationBuilder-JBTNOIL7.mjs → PresentationBuilder-D6ZICJWN.mjs} +3 -3
  5. package/dist/{PresentationBuilder-HA56ZY23.cjs → PresentationBuilder-HCMXZQDK.cjs} +6 -6
  6. package/dist/{PresentationBuilder-IVLUEB4K.mjs → PresentationBuilder-XHKNDJMD.mjs} +2 -2
  7. package/dist/automation/index.cjs +21750 -19661
  8. package/dist/automation/index.mjs +21731 -19661
  9. package/dist/chart/index.cjs +1 -1
  10. package/dist/chart/index.mjs +1 -1
  11. package/dist/chart/region-map/index.cjs +1 -1
  12. package/dist/chart/region-map/index.mjs +1 -1
  13. package/dist/{chunk-UQMAPY6D.mjs → chunk-2TQJHNVU.mjs} +1 -1
  14. package/dist/{chunk-RI56PFGL.mjs → chunk-4YBSHQ76.mjs} +5 -5
  15. package/dist/{chunk-XF6ZRA2D.cjs → chunk-AFALJ5TA.cjs} +3 -3
  16. package/dist/{chunk-MK2IBZU6.mjs → chunk-CNIKTXAV.mjs} +1 -1
  17. package/dist/{chunk-PA5ADSTX.cjs → chunk-GZOYXHDF.cjs} +1269 -1269
  18. package/dist/{chunk-LSO5SSFX.mjs → chunk-H2Q42P6P.mjs} +1 -1
  19. package/dist/{chunk-EGBNPVBA.mjs → chunk-J43V3QOA.mjs} +2 -2
  20. package/dist/{chunk-TJXK4D4U.mjs → chunk-M2DFN3SP.mjs} +4 -4
  21. package/dist/{chunk-RPJHMPEL.mjs → chunk-OEM2ECAJ.mjs} +1 -1
  22. package/dist/{chunk-GNGL4BO7.mjs → chunk-RHQQS6LJ.mjs} +4 -4
  23. package/dist/{chunk-A27O7M5X.cjs → chunk-SNID2FDY.cjs} +1 -1
  24. package/dist/{chunk-EDRS3OSM.mjs → chunk-WNAPUUAT.mjs} +1 -0
  25. package/dist/color/theme-palette.d.ts +1 -1
  26. package/dist/color/theme-palette.d.ts.map +1 -1
  27. package/dist/crypto/index.cjs +1 -1
  28. package/dist/crypto/index.mjs +1 -1
  29. package/dist/diagram/index.cjs +1 -1
  30. package/dist/diagram/index.mjs +1 -1
  31. package/dist/docx/block-parser.d.ts.map +1 -1
  32. package/dist/docx/comment-parts.d.ts +33 -0
  33. package/dist/docx/comment-parts.d.ts.map +1 -0
  34. package/dist/docx/comments.d.ts +5 -2
  35. package/dist/docx/comments.d.ts.map +1 -1
  36. package/dist/docx/embedded.cjs +15231 -14731
  37. package/dist/docx/embedded.mjs +15231 -14731
  38. package/dist/docx/glossary.d.ts.map +1 -1
  39. package/dist/docx/index.cjs +10771 -10329
  40. package/dist/docx/index.mjs +10771 -10329
  41. package/dist/docx/layout/index.cjs +81 -73
  42. package/dist/docx/layout/index.mjs +81 -73
  43. package/dist/docx/load/index.cjs +16891 -16391
  44. package/dist/docx/load/index.mjs +16891 -16391
  45. package/dist/docx/page-background.d.ts +4 -3
  46. package/dist/docx/page-background.d.ts.map +1 -1
  47. package/dist/docx/paragraph-text.d.ts +5 -0
  48. package/dist/docx/paragraph-text.d.ts.map +1 -0
  49. package/dist/docx/parse.d.ts.map +1 -1
  50. package/dist/docx/save.d.ts.map +1 -1
  51. package/dist/docx/special-characters.d.ts +2 -0
  52. package/dist/docx/special-characters.d.ts.map +1 -1
  53. package/dist/docx/theme-color.d.ts.map +1 -1
  54. package/dist/docx/ui/index.cjs +135 -135
  55. package/dist/docx/ui/index.mjs +135 -135
  56. package/dist/docx/write-comment-identities.d.ts +8 -0
  57. package/dist/docx/write-comment-identities.d.ts.map +1 -0
  58. package/dist/docx/write-comment-metadata.d.ts +12 -0
  59. package/dist/docx/write-comment-metadata.d.ts.map +1 -0
  60. package/dist/docx/write-comment-text.d.ts +3 -0
  61. package/dist/docx/write-comment-text.d.ts.map +1 -0
  62. package/dist/docx/write-comments.d.ts +1 -4
  63. package/dist/docx/write-comments.d.ts.map +1 -1
  64. package/dist/drawingml/index.cjs +1 -1
  65. package/dist/drawingml/index.mjs +1 -1
  66. package/dist/index.cjs +110 -6
  67. package/dist/index.mjs +91 -6
  68. package/dist/math/index.cjs +1 -1
  69. package/dist/math/index.mjs +1 -1
  70. package/dist/opc/index.cjs +78 -3
  71. package/dist/opc/index.mjs +78 -3
  72. package/dist/opc/signature/index.d.ts +1 -0
  73. package/dist/opc/signature/index.d.ts.map +1 -1
  74. package/dist/opc/signature/package.d.ts +12 -0
  75. package/dist/opc/signature/package.d.ts.map +1 -0
  76. package/dist/pptx/automation/index.cjs +21 -4
  77. package/dist/pptx/automation/index.d.ts +9 -17
  78. package/dist/pptx/automation/index.d.ts.map +1 -1
  79. package/dist/pptx/automation/index.mjs +16 -6
  80. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts +1 -3
  81. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
  82. package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -3
  83. package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
  84. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -3
  85. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
  86. package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -3
  87. package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
  88. package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -3
  89. package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
  90. package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -3
  91. package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
  92. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -3
  93. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
  94. package/dist/pptx/automation/schemas/index.cjs +1 -0
  95. package/dist/pptx/automation/schemas/index.d.ts +1 -3
  96. package/dist/pptx/automation/schemas/index.d.ts.map +1 -1
  97. package/dist/pptx/automation/schemas/index.mjs +1 -1
  98. package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -3
  99. package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
  100. package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -3
  101. package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
  102. package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -3
  103. package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
  104. package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -3
  105. package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
  106. package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -3
  107. package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
  108. package/dist/pptx/automation/schemas/presentation-schemas.cjs +1 -0
  109. package/dist/pptx/automation/schemas/presentation-schemas.d.ts +2 -3
  110. package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
  111. package/dist/pptx/automation/schemas/presentation-schemas.mjs +1 -1
  112. package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -3
  113. package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
  114. package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -3
  115. package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
  116. package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -3
  117. package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
  118. package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -3
  119. package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
  120. package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -3
  121. package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
  122. package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -3
  123. package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
  124. package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -3
  125. package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
  126. package/dist/pptx/chunks/{collaboration-text-codec-Du_XeE_i.d.ts → collaboration-text-codec-1VmwD3yq.d.ts} +1 -3
  127. package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts.map +1 -0
  128. package/dist/pptx/chunks/{collaboration-text-merge-DWWWdT_t.d.ts → collaboration-text-merge-B-tth-0W.d.ts} +2 -4
  129. package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts.map +1 -0
  130. package/dist/pptx/chunks/{collaboration-text-positions-MMT3GkZi.d.ts → collaboration-text-positions-D-1Jo1Fz.d.ts} +1 -3
  131. package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts.map +1 -0
  132. package/dist/pptx/chunks/{collaboration-text-session-D0NOLQk7.d.ts → collaboration-text-session-CWHTaWF4.d.ts} +4 -6
  133. package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts.map +1 -0
  134. package/dist/pptx/chunks/{collaboration-text-session-delta-CzJGrTKJ.d.ts → collaboration-text-session-delta-Dxzybssp.d.ts} +2 -4
  135. package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts.map +1 -0
  136. package/dist/pptx/chunks/{color-ref-DT599vEx.d.ts → color-ref-CwUQoKPJ.d.ts} +1 -3
  137. package/dist/pptx/chunks/color-ref-CwUQoKPJ.d.ts.map +1 -0
  138. package/dist/pptx/chunks/{elements-f3UbFph-.d.ts → elements-DheCTwi0.d.ts} +4 -54
  139. package/dist/pptx/chunks/elements-DheCTwi0.d.ts.map +1 -0
  140. package/dist/pptx/chunks/{index-Bp-1pGo1.d.ts → index-B4ofjG6_.d.ts} +6 -384
  141. package/dist/pptx/chunks/index-B4ofjG6_.d.ts.map +1 -0
  142. package/dist/pptx/chunks/{index-pLLN4OTz.d.ts → index-DC5m1m_8.d.ts} +8 -542
  143. package/dist/pptx/chunks/index-DC5m1m_8.d.ts.map +1 -0
  144. package/dist/pptx/chunks/{index-BnH2QjYm.d.ts → index-Jcce8TlI.d.ts} +5 -37
  145. package/dist/pptx/chunks/index-Jcce8TlI.d.ts.map +1 -0
  146. package/dist/pptx/chunks/{inspection-status-DjiWd_Aa.d.ts → inspection-status-TKac7eqb.d.ts} +1 -13
  147. package/dist/pptx/chunks/inspection-status-TKac7eqb.d.ts.map +1 -0
  148. package/dist/pptx/chunks/{schemas-fuDGetRe.d.ts → schemas-LHsDbVOw.d.ts} +1 -29
  149. package/dist/pptx/chunks/schemas-LHsDbVOw.d.ts.map +1 -0
  150. package/dist/pptx/chunks/{smart-art-CmOrPLLQ.d.ts → smart-art-DB37AsFP.d.ts} +2 -46
  151. package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts.map +1 -0
  152. package/dist/pptx/chunks/{text-operations-D5sgspO6.d.ts → text-operations-CdgEnFuK.d.ts} +4 -32
  153. package/dist/pptx/chunks/text-operations-CdgEnFuK.d.ts.map +1 -0
  154. package/dist/pptx/chunks/{text-P9xVnXXf.d.ts → text-t_wJ2OwM.d.ts} +2 -12
  155. package/dist/pptx/chunks/text-t_wJ2OwM.d.ts.map +1 -0
  156. package/dist/pptx/cli/index.cjs +10 -4
  157. package/dist/pptx/cli/index.d.ts +1 -3
  158. package/dist/pptx/cli/index.d.ts.map +1 -1
  159. package/dist/pptx/cli/index.mjs +4 -4
  160. package/dist/pptx/converter/index.cjs +7 -1
  161. package/dist/pptx/converter/index.d.ts +1 -1
  162. package/dist/pptx/converter/index.mjs +2 -2
  163. package/dist/pptx/editor/ai/table-merge.d.ts +0 -2
  164. package/dist/pptx/editor/ai/table-merge.d.ts.map +1 -1
  165. package/dist/pptx/editor/loader/element-patch-walker.d.ts +0 -2
  166. package/dist/pptx/editor/loader/element-patch-walker.d.ts.map +1 -1
  167. package/dist/pptx/editor/loader/is-external-url.d.ts +0 -2
  168. package/dist/pptx/editor/loader/is-external-url.d.ts.map +1 -1
  169. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts +0 -2
  170. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts.map +1 -1
  171. package/dist/pptx/editor/loader/load-content-helpers.d.ts +0 -2
  172. package/dist/pptx/editor/loader/load-content-helpers.d.ts.map +1 -1
  173. package/dist/pptx/editor/loader/table-style-image-paths.d.ts +0 -2
  174. package/dist/pptx/editor/loader/table-style-image-paths.d.ts.map +1 -1
  175. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts +0 -2
  176. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts.map +1 -1
  177. package/dist/pptx/editor/render/bullet-list.d.ts +0 -2
  178. package/dist/pptx/editor/render/bullet-list.d.ts.map +1 -1
  179. package/dist/pptx/editor/render/bullet-toggle.d.ts +0 -2
  180. package/dist/pptx/editor/render/bullet-toggle.d.ts.map +1 -1
  181. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts +0 -2
  182. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts.map +1 -1
  183. package/dist/pptx/editor/render/clone.d.ts +0 -2
  184. package/dist/pptx/editor/render/clone.d.ts.map +1 -1
  185. package/dist/pptx/editor/render/collaboration-active-session.d.ts +0 -2
  186. package/dist/pptx/editor/render/collaboration-active-session.d.ts.map +1 -1
  187. package/dist/pptx/editor/render/collaboration-departure.d.ts +0 -2
  188. package/dist/pptx/editor/render/collaboration-departure.d.ts.map +1 -1
  189. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts +0 -2
  190. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts.map +1 -1
  191. package/dist/pptx/editor/render/collaboration-load-origin.d.ts +0 -2
  192. package/dist/pptx/editor/render/collaboration-load-origin.d.ts.map +1 -1
  193. package/dist/pptx/editor/render/collaboration-reconcile.d.ts +0 -2
  194. package/dist/pptx/editor/render/collaboration-reconcile.d.ts.map +1 -1
  195. package/dist/pptx/editor/render/collaboration-sync.d.ts +4 -8
  196. package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
  197. package/dist/pptx/editor/render/collaboration-text-codec.d.ts +1 -1
  198. package/dist/pptx/editor/render/collaboration-text-lease.d.ts +0 -2
  199. package/dist/pptx/editor/render/collaboration-text-lease.d.ts.map +1 -1
  200. package/dist/pptx/editor/render/collaboration-text-merge.d.ts +1 -1
  201. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +2 -4
  202. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts.map +1 -1
  203. package/dist/pptx/editor/render/collaboration-text-positions.d.ts +1 -1
  204. package/dist/pptx/editor/render/collaboration-text-projection.d.ts +1 -3
  205. package/dist/pptx/editor/render/collaboration-text-projection.d.ts.map +1 -1
  206. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts +3 -5
  207. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts.map +1 -1
  208. package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts +1 -1
  209. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -3
  210. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts.map +1 -1
  211. package/dist/pptx/editor/render/collaboration-text-session.d.ts +1 -1
  212. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts +2 -4
  213. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts.map +1 -1
  214. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  215. package/dist/pptx/editor/render/custom-show-operations.d.ts +0 -2
  216. package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -1
  217. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  218. package/dist/pptx/editor/render/deck-save-encryption.d.ts +0 -2
  219. package/dist/pptx/editor/render/deck-save-encryption.d.ts.map +1 -1
  220. package/dist/pptx/editor/render/editor-history.d.ts +0 -2
  221. package/dist/pptx/editor/render/editor-history.d.ts.map +1 -1
  222. package/dist/pptx/editor/render/editor-mutations.d.ts +0 -2
  223. package/dist/pptx/editor/render/editor-mutations.d.ts.map +1 -1
  224. package/dist/pptx/editor/render/element-locks.d.ts +0 -2
  225. package/dist/pptx/editor/render/element-locks.d.ts.map +1 -1
  226. package/dist/pptx/editor/render/element-operations.d.ts +0 -2
  227. package/dist/pptx/editor/render/element-operations.d.ts.map +1 -1
  228. package/dist/pptx/editor/render/element.d.ts +0 -2
  229. package/dist/pptx/editor/render/element.d.ts.map +1 -1
  230. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  231. package/dist/pptx/editor/render/find-replace.d.ts +2 -4
  232. package/dist/pptx/editor/render/find-replace.d.ts.map +1 -1
  233. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  234. package/dist/pptx/editor/render/font-family-update.d.ts +1 -3
  235. package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -1
  236. package/dist/pptx/editor/render/group-drill.d.ts +0 -2
  237. package/dist/pptx/editor/render/group-drill.d.ts.map +1 -1
  238. package/dist/pptx/editor/render/inline-list-body.d.ts +0 -2
  239. package/dist/pptx/editor/render/inline-list-body.d.ts.map +1 -1
  240. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +1 -3
  241. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -1
  242. package/dist/pptx/editor/render/remap-empty-paragraph.d.ts +0 -2
  243. package/dist/pptx/editor/render/remap-empty-paragraph.d.ts.map +1 -1
  244. package/dist/pptx/editor/render/remap-paragraph-sources.d.ts +0 -2
  245. package/dist/pptx/editor/render/remap-paragraph-sources.d.ts.map +1 -1
  246. package/dist/pptx/editor/render/remap-text-bullets.d.ts +0 -2
  247. package/dist/pptx/editor/render/remap-text-bullets.d.ts.map +1 -1
  248. package/dist/pptx/editor/render/remap-text.d.ts +0 -2
  249. package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
  250. package/dist/pptx/editor/render/schema-label-keys.d.ts +0 -2
  251. package/dist/pptx/editor/render/schema-label-keys.d.ts.map +1 -1
  252. package/dist/pptx/editor/render/section-operations.d.ts +0 -2
  253. package/dist/pptx/editor/render/section-operations.d.ts.map +1 -1
  254. package/dist/pptx/editor/render/slide-background-patch.d.ts +0 -2
  255. package/dist/pptx/editor/render/slide-background-patch.d.ts.map +1 -1
  256. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  257. package/dist/pptx/editor/render/slide-operations.d.ts +0 -2
  258. package/dist/pptx/editor/render/slide-operations.d.ts.map +1 -1
  259. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  260. package/dist/pptx/editor/render/slide-search.d.ts +0 -2
  261. package/dist/pptx/editor/render/slide-search.d.ts.map +1 -1
  262. package/dist/pptx/editor/render/slide-size-rescale.d.ts +0 -2
  263. package/dist/pptx/editor/render/slide-size-rescale.d.ts.map +1 -1
  264. package/dist/pptx/editor/render/slide-transition-edits.d.ts +0 -2
  265. package/dist/pptx/editor/render/slide-transition-edits.d.ts.map +1 -1
  266. package/dist/pptx/editor/render/table-cell-edit.d.ts +0 -2
  267. package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
  268. package/dist/pptx/editor/render/table-cell-merge.d.ts +0 -2
  269. package/dist/pptx/editor/render/table-cell-merge.d.ts.map +1 -1
  270. package/dist/pptx/editor/render/table-data-grid-ops.d.ts +0 -2
  271. package/dist/pptx/editor/render/table-data-grid-ops.d.ts.map +1 -1
  272. package/dist/pptx/editor/render/table-layout.d.ts +0 -2
  273. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  274. package/dist/pptx/editor/render/table-merge.d.ts +0 -2
  275. package/dist/pptx/editor/render/table-merge.d.ts.map +1 -1
  276. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts +0 -2
  277. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts.map +1 -1
  278. package/dist/pptx/editor/render/table-style-editor-edit.d.ts +0 -2
  279. package/dist/pptx/editor/render/table-style-editor-edit.d.ts.map +1 -1
  280. package/dist/pptx/editor/render/table-style-editor-parts.d.ts +0 -2
  281. package/dist/pptx/editor/render/table-style-editor-parts.d.ts.map +1 -1
  282. package/dist/pptx/editor/render/table-style-map-edits.d.ts +0 -2
  283. package/dist/pptx/editor/render/table-style-map-edits.d.ts.map +1 -1
  284. package/dist/pptx/editor/render/template-editing.d.ts +0 -2
  285. package/dist/pptx/editor/render/template-editing.d.ts.map +1 -1
  286. package/dist/pptx/editor/render/text-content-style.d.ts +1 -3
  287. package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -1
  288. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -4
  289. package/dist/pptx/editor/render/text-runs-style-patch.d.ts.map +1 -1
  290. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts +0 -2
  291. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts.map +1 -1
  292. package/dist/pptx/editor/render/text-style-scope.d.ts +2 -4
  293. package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -1
  294. package/dist/pptx/editor/render/text-theme.d.ts +0 -2
  295. package/dist/pptx/editor/render/text-theme.d.ts.map +1 -1
  296. package/dist/pptx/editor/render/theme-editor-model.d.ts +0 -2
  297. package/dist/pptx/editor/render/theme-editor-model.d.ts.map +1 -1
  298. package/dist/pptx/editor/render/theme-editor-presets.d.ts +0 -2
  299. package/dist/pptx/editor/render/theme-editor-presets.d.ts.map +1 -1
  300. package/dist/pptx/editor/render/update-text-segment-style.d.ts +1 -3
  301. package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -1
  302. package/dist/pptx/index.cjs +10 -4
  303. package/dist/pptx/index.d.ts +9 -9
  304. package/dist/pptx/index.mjs +5 -5
  305. package/dist/pptx/node/index.d.ts +1 -3
  306. package/dist/pptx/node/index.d.ts.map +1 -1
  307. package/dist/pptx/signature-node/index.d.ts +1 -21
  308. package/dist/pptx/signature-node/index.d.ts.map +1 -1
  309. package/dist/pptx/smartart-layouts/index.d.ts +1 -7
  310. package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
  311. package/dist/pptx/ui/index.d.ts +2 -10
  312. package/dist/pptx/ui/index.d.ts.map +1 -1
  313. package/dist/teams/index.cjs +812 -95
  314. package/dist/teams/index.mjs +811 -95
  315. package/dist/visio/bevel-3d.d.ts +6 -10
  316. package/dist/visio/bevel-3d.d.ts.map +1 -1
  317. package/dist/visio/bevel-shading.d.ts +72 -0
  318. package/dist/visio/bevel-shading.d.ts.map +1 -0
  319. package/dist/visio/cff-recalc.d.ts.map +1 -1
  320. package/dist/visio/collab/index.cjs +1 -1
  321. package/dist/visio/collab/index.mjs +1 -1
  322. package/dist/visio/data-graphic-instance.d.ts +44 -0
  323. package/dist/visio/data-graphic-instance.d.ts.map +1 -0
  324. package/dist/visio/data-graphic-masters.d.ts +38 -0
  325. package/dist/visio/data-graphic-masters.d.ts.map +1 -0
  326. package/dist/visio/data-graphic-place.d.ts +34 -0
  327. package/dist/visio/data-graphic-place.d.ts.map +1 -0
  328. package/dist/visio/edit-commands.d.ts +3 -1
  329. package/dist/visio/edit-commands.d.ts.map +1 -1
  330. package/dist/visio/edit-data-graphic-guard.d.ts +13 -0
  331. package/dist/visio/edit-data-graphic-guard.d.ts.map +1 -0
  332. package/dist/visio/edit-data-graphic-owner.d.ts +9 -0
  333. package/dist/visio/edit-data-graphic-owner.d.ts.map +1 -0
  334. package/dist/visio/edit-data-graphic-refresh.d.ts +14 -0
  335. package/dist/visio/edit-data-graphic-refresh.d.ts.map +1 -0
  336. package/dist/visio/edit-data-graphic.d.ts +33 -0
  337. package/dist/visio/edit-data-graphic.d.ts.map +1 -0
  338. package/dist/visio/edit-formatting-text-commands.d.ts +8 -0
  339. package/dist/visio/edit-formatting-text-commands.d.ts.map +1 -1
  340. package/dist/visio/edit-formatting-text-extra.d.ts +14 -0
  341. package/dist/visio/edit-formatting-text-extra.d.ts.map +1 -1
  342. package/dist/visio/edit-formatting-text.d.ts.map +1 -1
  343. package/dist/visio/edit-formatting.d.ts.map +1 -1
  344. package/dist/visio/edit-shape-data.d.ts.map +1 -1
  345. package/dist/visio/edit-swimlane-cff.d.ts +28 -0
  346. package/dist/visio/edit-swimlane-cff.d.ts.map +1 -0
  347. package/dist/visio/edit-swimlane-clone.d.ts +8 -4
  348. package/dist/visio/edit-swimlane-clone.d.ts.map +1 -1
  349. package/dist/visio/edit-swimlane-layout.d.ts +6 -1
  350. package/dist/visio/edit-swimlane-layout.d.ts.map +1 -1
  351. package/dist/visio/edit-swimlane-ops.d.ts.map +1 -1
  352. package/dist/visio/edit.d.ts.map +1 -1
  353. package/dist/visio/formula-analyze.d.ts.map +1 -1
  354. package/dist/visio/formula-evaluate.d.ts.map +1 -1
  355. package/dist/visio/formula.d.ts.map +1 -1
  356. package/dist/visio/index.cjs +2980 -1707
  357. package/dist/visio/index.d.ts +2 -1
  358. package/dist/visio/index.d.ts.map +1 -1
  359. package/dist/visio/index.mjs +2971 -1708
  360. package/dist/visio/master-list.d.ts +3 -3
  361. package/dist/visio/master-list.d.ts.map +1 -1
  362. package/dist/visio/model.d.ts +6 -1
  363. package/dist/visio/model.d.ts.map +1 -1
  364. package/dist/visio/rotation-presets.d.ts +25 -0
  365. package/dist/visio/rotation-presets.d.ts.map +1 -0
  366. package/dist/visio/shape-structure.d.ts.map +1 -1
  367. package/dist/visio/shapes.d.ts +2 -0
  368. package/dist/visio/shapes.d.ts.map +1 -1
  369. package/dist/visio/solid-3d.d.ts +9 -0
  370. package/dist/visio/solid-3d.d.ts.map +1 -1
  371. package/dist/visio/style.d.ts.map +1 -1
  372. package/dist/visio/ui/data-graphic-config.d.ts +4 -19
  373. package/dist/visio/ui/data-graphic-config.d.ts.map +1 -1
  374. package/dist/visio/ui/data-graphic-items.d.ts.map +1 -1
  375. package/dist/visio/ui/data-graphic-native.d.ts +20 -0
  376. package/dist/visio/ui/data-graphic-native.d.ts.map +1 -0
  377. package/dist/visio/ui/data-graphics.d.ts.map +1 -1
  378. package/dist/visio/ui/edit-commands.d.ts.map +1 -1
  379. package/dist/visio/ui/index.cjs +3130 -1821
  380. package/dist/visio/ui/index.mjs +3128 -1822
  381. package/dist/visio/ui/org-chart-belt.d.ts.map +1 -1
  382. package/dist/visio/ui/scene-validation.d.ts.map +1 -1
  383. package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
  384. package/dist/visio/ui/swimlane.d.ts.map +1 -1
  385. package/dist/visio/ui/text-dialog.d.ts +12 -0
  386. package/dist/visio/ui/text-dialog.d.ts.map +1 -1
  387. package/dist/xlsx/collab/index.cjs +45 -2
  388. package/dist/xlsx/collab/index.mjs +45 -2
  389. package/dist/xlsx/collab/part-specs.d.ts.map +1 -1
  390. package/dist/xlsx/collab/sheets.d.ts +1 -0
  391. package/dist/xlsx/collab/sheets.d.ts.map +1 -1
  392. package/dist/xlsx/edit/annotations.d.ts +4 -0
  393. package/dist/xlsx/edit/annotations.d.ts.map +1 -1
  394. package/dist/xlsx/edit/clipboard-annotations.d.ts.map +1 -1
  395. package/dist/xlsx/edit/comment-identities.d.ts +4 -0
  396. package/dist/xlsx/edit/comment-identities.d.ts.map +1 -0
  397. package/dist/xlsx/edit/session.d.ts.map +1 -1
  398. package/dist/xlsx/edit/sheets.d.ts.map +1 -1
  399. package/dist/xlsx/edit/types.d.ts +3 -0
  400. package/dist/xlsx/edit/types.d.ts.map +1 -1
  401. package/dist/xlsx/formula/functions/filterxml.d.ts +2 -0
  402. package/dist/xlsx/formula/functions/filterxml.d.ts.map +1 -0
  403. package/dist/xlsx/formula/functions/registry.d.ts.map +1 -1
  404. package/dist/xlsx/index.cjs +1007 -285
  405. package/dist/xlsx/index.mjs +988 -285
  406. package/dist/xlsx/layout/split.d.ts +3 -1
  407. package/dist/xlsx/layout/split.d.ts.map +1 -1
  408. package/dist/xlsx/load/index.cjs +809 -126
  409. package/dist/xlsx/load/index.mjs +790 -126
  410. package/dist/xlsx/model.d.ts +19 -7
  411. package/dist/xlsx/model.d.ts.map +1 -1
  412. package/dist/xlsx/read/comments.d.ts +3 -1
  413. package/dist/xlsx/read/comments.d.ts.map +1 -1
  414. package/dist/xlsx/read/conditional.d.ts +2 -2
  415. package/dist/xlsx/read/conditional.d.ts.map +1 -1
  416. package/dist/xlsx/read/data-validations.d.ts +7 -0
  417. package/dist/xlsx/read/data-validations.d.ts.map +1 -0
  418. package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
  419. package/dist/xlsx/read/worksheet.d.ts.map +1 -1
  420. package/dist/xlsx/ui/commands/i18n/messages.d.ts.map +1 -1
  421. package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
  422. package/dist/xlsx/ui/grid/geometry.d.ts +3 -0
  423. package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
  424. package/dist/xlsx/ui/index.cjs +952 -168
  425. package/dist/xlsx/ui/index.mjs +933 -169
  426. package/dist/xlsx/ui/selection.d.ts +3 -0
  427. package/dist/xlsx/ui/selection.d.ts.map +1 -1
  428. package/dist/xlsx/validation-extensions.d.ts +6 -0
  429. package/dist/xlsx/validation-extensions.d.ts.map +1 -0
  430. package/dist/xlsx/write/comment-ids.d.ts +14 -0
  431. package/dist/xlsx/write/comment-ids.d.ts.map +1 -0
  432. package/dist/xlsx/write/comment-mentions.d.ts +6 -0
  433. package/dist/xlsx/write/comment-mentions.d.ts.map +1 -0
  434. package/dist/xlsx/write/comment-persons.d.ts +16 -0
  435. package/dist/xlsx/write/comment-persons.d.ts.map +1 -0
  436. package/dist/xlsx/write/comments.d.ts +5 -11
  437. package/dist/xlsx/write/comments.d.ts.map +1 -1
  438. package/dist/xlsx/write/conditional.d.ts +2 -2
  439. package/dist/xlsx/write/conditional.d.ts.map +1 -1
  440. package/dist/xlsx/write/data-validations.d.ts +6 -0
  441. package/dist/xlsx/write/data-validations.d.ts.map +1 -0
  442. package/dist/xlsx/write/save.d.ts.map +1 -1
  443. package/dist/xlsx/write/sheet-parts.d.ts +4 -0
  444. package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
  445. package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
  446. package/dist/xlsx/write/threaded-comments.d.ts +19 -0
  447. package/dist/xlsx/write/threaded-comments.d.ts.map +1 -0
  448. package/dist/xlsx/write/worksheet.d.ts.map +1 -1
  449. package/dist/xml/index.cjs +31 -1
  450. package/dist/xml/index.d.ts +1 -0
  451. package/dist/xml/index.d.ts.map +1 -1
  452. package/dist/xml/index.mjs +11 -2
  453. package/dist/xml/xml.d.ts +2 -0
  454. package/dist/xml/xml.d.ts.map +1 -1
  455. package/dist/xml/xpath.d.ts +9 -0
  456. package/dist/xml/xpath.d.ts.map +1 -0
  457. package/package.json +8 -7
  458. package/dist/PptxHandler-5UDSMCBG.cjs +0 -14
  459. package/dist/PptxHandler-TTRTAQAR.mjs +0 -5
  460. package/dist/pptx/chunks/collaboration-text-codec-Du_XeE_i.d.ts.map +0 -1
  461. package/dist/pptx/chunks/collaboration-text-merge-DWWWdT_t.d.ts.map +0 -1
  462. package/dist/pptx/chunks/collaboration-text-positions-MMT3GkZi.d.ts.map +0 -1
  463. package/dist/pptx/chunks/collaboration-text-session-D0NOLQk7.d.ts.map +0 -1
  464. package/dist/pptx/chunks/collaboration-text-session-delta-CzJGrTKJ.d.ts.map +0 -1
  465. package/dist/pptx/chunks/color-ref-DT599vEx.d.ts.map +0 -1
  466. package/dist/pptx/chunks/elements-f3UbFph-.d.ts.map +0 -1
  467. package/dist/pptx/chunks/index-BnH2QjYm.d.ts.map +0 -1
  468. package/dist/pptx/chunks/index-Bp-1pGo1.d.ts.map +0 -1
  469. package/dist/pptx/chunks/index-pLLN4OTz.d.ts.map +0 -1
  470. package/dist/pptx/chunks/inspection-status-DjiWd_Aa.d.ts.map +0 -1
  471. package/dist/pptx/chunks/schemas-fuDGetRe.d.ts.map +0 -1
  472. package/dist/pptx/chunks/smart-art-CmOrPLLQ.d.ts.map +0 -1
  473. package/dist/pptx/chunks/text-P9xVnXXf.d.ts.map +0 -1
  474. package/dist/pptx/chunks/text-operations-D5sgspO6.d.ts.map +0 -1
@@ -89,7 +89,7 @@ function parseXml(xml, options2 = {}) {
89
89
  try {
90
90
  parsed = new xmldom.DOMParser({
91
91
  onError: (level2, message) => {
92
- if (level2 !== "warning") parseError = message;
92
+ if (level2 !== "warning" || options2.warningsAsErrors) parseError = message;
93
93
  }
94
94
  }).parseFromString(xml, "application/xml");
95
95
  } catch (error) {
@@ -1187,6 +1187,21 @@ function parseArgbHex(hex) {
1187
1187
  return [0, 2, 4].map((i) => parseInt(rgb.slice(i, i + 2), 16));
1188
1188
  }
1189
1189
 
1190
+ // color/theme-palette.ts
1191
+ function themePaletteVariantLuminance(variant) {
1192
+ const fraction2 = variant.percent / 100;
1193
+ const lumMod = Math.round((1 - fraction2) * 1e5) / 1e5;
1194
+ return variant.kind === "lighter" ? { lumMod, lumOff: fraction2 } : { lumMod };
1195
+ }
1196
+ function applyThemePaletteVariant(hex, variant) {
1197
+ const rgb = hexToRgbChannels(hex);
1198
+ if (!rgb) return hex;
1199
+ const { h, s, l } = rgbToHsl(rgb.r, rgb.g, rgb.b);
1200
+ const { lumMod, lumOff } = themePaletteVariantLuminance(variant);
1201
+ const next = hslToRgb(h, s, l * lumMod + (lumOff ?? 0), (value) => Math.floor(value + 1e-6));
1202
+ return `#${toHex(next.r)}${toHex(next.g)}${toHex(next.b)}`.toLowerCase();
1203
+ }
1204
+
1190
1205
  // drawingml/dom.ts
1191
1206
  function attributeReader(element) {
1192
1207
  return (name) => {
@@ -1938,33 +1953,26 @@ function resolveThemeColorToken(token, theme) {
1938
1953
  const slot = TOKEN_TO_SLOT[token];
1939
1954
  return slot ? theme.colors[slot] : void 0;
1940
1955
  }
1941
- function hexToRgb(hex) {
1942
- const normalized = hex.replace(/^#/, "");
1943
- if (!/^[0-9a-fA-F]{6}$/.test(normalized)) return null;
1944
- return {
1945
- r: Number.parseInt(normalized.slice(0, 2), 16),
1946
- g: Number.parseInt(normalized.slice(2, 4), 16),
1947
- b: Number.parseInt(normalized.slice(4, 6), 16)
1948
- };
1949
- }
1950
1956
  function applyThemeShade(hex, fraction2) {
1951
- const rgb = hexToRgb(hex);
1952
- if (!rgb) return hex;
1953
- const mix = (channel) => linearToSrgb255(srgb255ToLinear(channel) * fraction2);
1954
- return `#${toHex(mix(rgb.r))}${toHex(mix(rgb.g))}${toHex(mix(rgb.b))}`;
1957
+ if (!/^#?[0-9a-fA-F]{6}$/.test(hex)) return hex;
1958
+ return applyThemePaletteVariant(hex, {
1959
+ kind: "darker",
1960
+ percent: (1 - fraction2) * 100
1961
+ }).toUpperCase();
1955
1962
  }
1956
1963
  function applyThemeTint(hex, fraction2) {
1957
- const rgb = hexToRgb(hex);
1958
- if (!rgb) return hex;
1959
- const mix = (channel) => linearToSrgb255(1 - (1 - srgb255ToLinear(channel)) * fraction2);
1960
- return `#${toHex(mix(rgb.r))}${toHex(mix(rgb.g))}${toHex(mix(rgb.b))}`;
1964
+ if (!/^#?[0-9a-fA-F]{6}$/.test(hex)) return hex;
1965
+ return applyThemePaletteVariant(hex, {
1966
+ kind: "lighter",
1967
+ percent: (1 - fraction2) * 100
1968
+ }).toUpperCase();
1961
1969
  }
1962
1970
  function resolveThemeColorReference(ref, theme) {
1963
1971
  const base = resolveThemeColorToken(ref.token, theme);
1964
1972
  if (!base) return void 0;
1965
1973
  let hex = `#${base.replace(/^#/, "")}`;
1966
- if (ref.shade !== void 0) hex = applyThemeShade(hex, ref.shade);
1967
1974
  if (ref.tint !== void 0) hex = applyThemeTint(hex, ref.tint);
1975
+ else if (ref.shade !== void 0) hex = applyThemeShade(hex, ref.shade);
1968
1976
  return hex;
1969
1977
  }
1970
1978
 
@@ -2050,47 +2058,6 @@ function expectDefined(value, context) {
2050
2058
  return value;
2051
2059
  }
2052
2060
 
2053
- // docx/table-grid.ts
2054
- var spanOf = (cell) => Math.max(1, cell.gridSpan ?? 1);
2055
- function tableGrid(table) {
2056
- const columns = table.grid?.length ?? sumSpans(table.rows[0]);
2057
- if (!columns || !table.rows.length) return void 0;
2058
- const rows2 = [];
2059
- const cover = [];
2060
- for (let row2 = 0; row2 < table.rows.length; row2++) {
2061
- const cells = table.rows[row2] ?? [];
2062
- if (!cells.length || sumSpans(cells) !== columns) return void 0;
2063
- const placed2 = [];
2064
- const line4 = new Array(columns);
2065
- let col = 0;
2066
- cells.forEach((cell, index) => {
2067
- const entry = { cell, row: row2, index, col, span: spanOf(cell) };
2068
- for (let k = 0; k < entry.span; k++) line4[col + k] = entry;
2069
- col += entry.span;
2070
- placed2.push(entry);
2071
- });
2072
- rows2.push(placed2);
2073
- cover.push(line4);
2074
- }
2075
- const grid = { columns, rows: rows2, cover };
2076
- for (const entry of rows2.flat())
2077
- if (entry.cell.verticalMerge === "continue") {
2078
- const above2 = entry.row > 0 ? cover[entry.row - 1]?.[entry.col] : void 0;
2079
- if (!above2 || above2.col !== entry.col || above2.span !== entry.span) return void 0;
2080
- if (!above2.cell.verticalMerge) return void 0;
2081
- }
2082
- return grid;
2083
- }
2084
- function sumSpans(cells) {
2085
- return (cells ?? []).reduce((sum, cell) => sum + spanOf(cell), 0);
2086
- }
2087
- function rowSpanOf(grid, entry) {
2088
- if (entry.cell.verticalMerge !== "restart") return 1;
2089
- let height = 1;
2090
- while (grid.cover[entry.row + height]?.[entry.col]?.cell.verticalMerge === "continue") height++;
2091
- return height;
2092
- }
2093
-
2094
2061
  // docx/special-characters.ts
2095
2062
  function symbolCharacter(char) {
2096
2063
  const code = /^[0-9a-f]{1,6}$/i.test(char) ? Number.parseInt(char, 16) : Number.NaN;
@@ -2120,14 +2087,6 @@ function symbolSegments(run) {
2120
2087
  return segments;
2121
2088
  }
2122
2089
 
2123
- // docx/revision-properties.ts
2124
- function parsePropertiesSnapshot(xml, local) {
2125
- const element = parseXml2(xml).documentElement;
2126
- if (!named2(element, local))
2127
- throw new Error(`A formatting revision snapshot must contain Word ${local} properties.`);
2128
- return element;
2129
- }
2130
-
2131
2090
  // docx/defined-props.ts
2132
2091
  function definedProps(source) {
2133
2092
  return Object.fromEntries(Object.entries(source).filter(([, value]) => value !== void 0));
@@ -2471,7 +2430,7 @@ function svgDropShadowElement(s, format) {
2471
2430
  const num = format.number;
2472
2431
  return `<feDropShadow dx="${num(s.dx)}" dy="${num(s.dy)}" stdDeviation="${num(s.blur / 2)}" flood-color="${format.color(s.color, "#000000")}" flood-opacity="${num(s.opacity)}" result="shadow"/>`;
2473
2432
  }
2474
- function hexToRgb2(color) {
2433
+ function hexToRgb(color) {
2475
2434
  const parsed = hexToRgbChannels(color);
2476
2435
  if (parsed) return parsed;
2477
2436
  const hex = color.replace("#", "");
@@ -2485,8 +2444,8 @@ function toHexChannel(value) {
2485
2444
  return toHex(value).toLowerCase();
2486
2445
  }
2487
2446
  function lerpStops(a, b, t) {
2488
- const ca = hexToRgb2(a.color);
2489
- const cb = hexToRgb2(b.color);
2447
+ const ca = hexToRgb(a.color);
2448
+ const cb = hexToRgb(b.color);
2490
2449
  const oa = a.opacity ?? 1;
2491
2450
  const ob = b.opacity ?? 1;
2492
2451
  return {
@@ -12591,7 +12550,7 @@ function computeHierarchicalSunburstArcs(categoryLevels, values, cx, cy, maxR) {
12591
12550
  }
12592
12551
 
12593
12552
  // chart/style-palette.ts
12594
- function hexToRgb3(hex) {
12553
+ function hexToRgb2(hex) {
12595
12554
  const h = hex.replace("#", "");
12596
12555
  return [
12597
12556
  parseInt(h.substring(0, 2), 16),
@@ -12604,7 +12563,7 @@ function rgbToHex(r, g, b) {
12604
12563
  return `#${clamp3(r).toString(16).padStart(2, "0")}${clamp3(g).toString(16).padStart(2, "0")}${clamp3(b).toString(16).padStart(2, "0")}`;
12605
12564
  }
12606
12565
  function shade(hex, amount) {
12607
- const [r, g, b] = hexToRgb3(hex);
12566
+ const [r, g, b] = hexToRgb2(hex);
12608
12567
  return rgbToHex(r * (1 - amount), g * (1 - amount), b * (1 - amount));
12609
12568
  }
12610
12569
 
@@ -18557,6 +18516,14 @@ function renderChartSummarySvg(summary, options2) {
18557
18516
  return renderChartSvg(view, width, height, svg);
18558
18517
  }
18559
18518
 
18519
+ // docx/revision-properties.ts
18520
+ function parsePropertiesSnapshot(xml, local) {
18521
+ const element = parseXml2(xml).documentElement;
18522
+ if (!named2(element, local))
18523
+ throw new Error(`A formatting revision snapshot must contain Word ${local} properties.`);
18524
+ return element;
18525
+ }
18526
+
18560
18527
  // docx/write-run-validation.ts
18561
18528
  var modeledRunProperties = /* @__PURE__ */ new Set([
18562
18529
  "b",
@@ -18733,6 +18700,47 @@ function formFieldDisplayText(run) {
18733
18700
  return void 0;
18734
18701
  }
18735
18702
 
18703
+ // docx/table-grid.ts
18704
+ var spanOf = (cell) => Math.max(1, cell.gridSpan ?? 1);
18705
+ function tableGrid(table) {
18706
+ const columns = table.grid?.length ?? sumSpans(table.rows[0]);
18707
+ if (!columns || !table.rows.length) return void 0;
18708
+ const rows2 = [];
18709
+ const cover = [];
18710
+ for (let row2 = 0; row2 < table.rows.length; row2++) {
18711
+ const cells = table.rows[row2] ?? [];
18712
+ if (!cells.length || sumSpans(cells) !== columns) return void 0;
18713
+ const placed2 = [];
18714
+ const line4 = new Array(columns);
18715
+ let col = 0;
18716
+ cells.forEach((cell, index) => {
18717
+ const entry = { cell, row: row2, index, col, span: spanOf(cell) };
18718
+ for (let k = 0; k < entry.span; k++) line4[col + k] = entry;
18719
+ col += entry.span;
18720
+ placed2.push(entry);
18721
+ });
18722
+ rows2.push(placed2);
18723
+ cover.push(line4);
18724
+ }
18725
+ const grid = { columns, rows: rows2, cover };
18726
+ for (const entry of rows2.flat())
18727
+ if (entry.cell.verticalMerge === "continue") {
18728
+ const above2 = entry.row > 0 ? cover[entry.row - 1]?.[entry.col] : void 0;
18729
+ if (!above2 || above2.col !== entry.col || above2.span !== entry.span) return void 0;
18730
+ if (!above2.cell.verticalMerge) return void 0;
18731
+ }
18732
+ return grid;
18733
+ }
18734
+ function sumSpans(cells) {
18735
+ return (cells ?? []).reduce((sum, cell) => sum + spanOf(cell), 0);
18736
+ }
18737
+ function rowSpanOf(grid, entry) {
18738
+ if (entry.cell.verticalMerge !== "restart") return 1;
18739
+ let height = 1;
18740
+ while (grid.cover[entry.row + height]?.[entry.col]?.cell.verticalMerge === "continue") height++;
18741
+ return height;
18742
+ }
18743
+
18736
18744
  // docx/field-lock.ts
18737
18745
  function isFieldLocked(run) {
18738
18746
  return run?.fieldFlags?.locked === true;
@@ -87,7 +87,7 @@ function parseXml(xml, options2 = {}) {
87
87
  try {
88
88
  parsed = new DOMParser({
89
89
  onError: (level2, message) => {
90
- if (level2 !== "warning") parseError = message;
90
+ if (level2 !== "warning" || options2.warningsAsErrors) parseError = message;
91
91
  }
92
92
  }).parseFromString(xml, "application/xml");
93
93
  } catch (error) {
@@ -1185,6 +1185,21 @@ function parseArgbHex(hex) {
1185
1185
  return [0, 2, 4].map((i) => parseInt(rgb.slice(i, i + 2), 16));
1186
1186
  }
1187
1187
 
1188
+ // color/theme-palette.ts
1189
+ function themePaletteVariantLuminance(variant) {
1190
+ const fraction2 = variant.percent / 100;
1191
+ const lumMod = Math.round((1 - fraction2) * 1e5) / 1e5;
1192
+ return variant.kind === "lighter" ? { lumMod, lumOff: fraction2 } : { lumMod };
1193
+ }
1194
+ function applyThemePaletteVariant(hex, variant) {
1195
+ const rgb = hexToRgbChannels(hex);
1196
+ if (!rgb) return hex;
1197
+ const { h, s, l } = rgbToHsl(rgb.r, rgb.g, rgb.b);
1198
+ const { lumMod, lumOff } = themePaletteVariantLuminance(variant);
1199
+ const next = hslToRgb(h, s, l * lumMod + (lumOff ?? 0), (value) => Math.floor(value + 1e-6));
1200
+ return `#${toHex(next.r)}${toHex(next.g)}${toHex(next.b)}`.toLowerCase();
1201
+ }
1202
+
1188
1203
  // drawingml/dom.ts
1189
1204
  function attributeReader(element) {
1190
1205
  return (name) => {
@@ -1936,33 +1951,26 @@ function resolveThemeColorToken(token, theme) {
1936
1951
  const slot = TOKEN_TO_SLOT[token];
1937
1952
  return slot ? theme.colors[slot] : void 0;
1938
1953
  }
1939
- function hexToRgb(hex) {
1940
- const normalized = hex.replace(/^#/, "");
1941
- if (!/^[0-9a-fA-F]{6}$/.test(normalized)) return null;
1942
- return {
1943
- r: Number.parseInt(normalized.slice(0, 2), 16),
1944
- g: Number.parseInt(normalized.slice(2, 4), 16),
1945
- b: Number.parseInt(normalized.slice(4, 6), 16)
1946
- };
1947
- }
1948
1954
  function applyThemeShade(hex, fraction2) {
1949
- const rgb = hexToRgb(hex);
1950
- if (!rgb) return hex;
1951
- const mix = (channel) => linearToSrgb255(srgb255ToLinear(channel) * fraction2);
1952
- return `#${toHex(mix(rgb.r))}${toHex(mix(rgb.g))}${toHex(mix(rgb.b))}`;
1955
+ if (!/^#?[0-9a-fA-F]{6}$/.test(hex)) return hex;
1956
+ return applyThemePaletteVariant(hex, {
1957
+ kind: "darker",
1958
+ percent: (1 - fraction2) * 100
1959
+ }).toUpperCase();
1953
1960
  }
1954
1961
  function applyThemeTint(hex, fraction2) {
1955
- const rgb = hexToRgb(hex);
1956
- if (!rgb) return hex;
1957
- const mix = (channel) => linearToSrgb255(1 - (1 - srgb255ToLinear(channel)) * fraction2);
1958
- return `#${toHex(mix(rgb.r))}${toHex(mix(rgb.g))}${toHex(mix(rgb.b))}`;
1962
+ if (!/^#?[0-9a-fA-F]{6}$/.test(hex)) return hex;
1963
+ return applyThemePaletteVariant(hex, {
1964
+ kind: "lighter",
1965
+ percent: (1 - fraction2) * 100
1966
+ }).toUpperCase();
1959
1967
  }
1960
1968
  function resolveThemeColorReference(ref, theme) {
1961
1969
  const base = resolveThemeColorToken(ref.token, theme);
1962
1970
  if (!base) return void 0;
1963
1971
  let hex = `#${base.replace(/^#/, "")}`;
1964
- if (ref.shade !== void 0) hex = applyThemeShade(hex, ref.shade);
1965
1972
  if (ref.tint !== void 0) hex = applyThemeTint(hex, ref.tint);
1973
+ else if (ref.shade !== void 0) hex = applyThemeShade(hex, ref.shade);
1966
1974
  return hex;
1967
1975
  }
1968
1976
 
@@ -2048,47 +2056,6 @@ function expectDefined(value, context) {
2048
2056
  return value;
2049
2057
  }
2050
2058
 
2051
- // docx/table-grid.ts
2052
- var spanOf = (cell) => Math.max(1, cell.gridSpan ?? 1);
2053
- function tableGrid(table) {
2054
- const columns = table.grid?.length ?? sumSpans(table.rows[0]);
2055
- if (!columns || !table.rows.length) return void 0;
2056
- const rows2 = [];
2057
- const cover = [];
2058
- for (let row2 = 0; row2 < table.rows.length; row2++) {
2059
- const cells = table.rows[row2] ?? [];
2060
- if (!cells.length || sumSpans(cells) !== columns) return void 0;
2061
- const placed2 = [];
2062
- const line4 = new Array(columns);
2063
- let col = 0;
2064
- cells.forEach((cell, index) => {
2065
- const entry = { cell, row: row2, index, col, span: spanOf(cell) };
2066
- for (let k = 0; k < entry.span; k++) line4[col + k] = entry;
2067
- col += entry.span;
2068
- placed2.push(entry);
2069
- });
2070
- rows2.push(placed2);
2071
- cover.push(line4);
2072
- }
2073
- const grid = { columns, rows: rows2, cover };
2074
- for (const entry of rows2.flat())
2075
- if (entry.cell.verticalMerge === "continue") {
2076
- const above2 = entry.row > 0 ? cover[entry.row - 1]?.[entry.col] : void 0;
2077
- if (!above2 || above2.col !== entry.col || above2.span !== entry.span) return void 0;
2078
- if (!above2.cell.verticalMerge) return void 0;
2079
- }
2080
- return grid;
2081
- }
2082
- function sumSpans(cells) {
2083
- return (cells ?? []).reduce((sum, cell) => sum + spanOf(cell), 0);
2084
- }
2085
- function rowSpanOf(grid, entry) {
2086
- if (entry.cell.verticalMerge !== "restart") return 1;
2087
- let height = 1;
2088
- while (grid.cover[entry.row + height]?.[entry.col]?.cell.verticalMerge === "continue") height++;
2089
- return height;
2090
- }
2091
-
2092
2059
  // docx/special-characters.ts
2093
2060
  function symbolCharacter(char) {
2094
2061
  const code = /^[0-9a-f]{1,6}$/i.test(char) ? Number.parseInt(char, 16) : Number.NaN;
@@ -2118,14 +2085,6 @@ function symbolSegments(run) {
2118
2085
  return segments;
2119
2086
  }
2120
2087
 
2121
- // docx/revision-properties.ts
2122
- function parsePropertiesSnapshot(xml, local) {
2123
- const element = parseXml2(xml).documentElement;
2124
- if (!named2(element, local))
2125
- throw new Error(`A formatting revision snapshot must contain Word ${local} properties.`);
2126
- return element;
2127
- }
2128
-
2129
2088
  // docx/defined-props.ts
2130
2089
  function definedProps(source) {
2131
2090
  return Object.fromEntries(Object.entries(source).filter(([, value]) => value !== void 0));
@@ -2469,7 +2428,7 @@ function svgDropShadowElement(s, format) {
2469
2428
  const num = format.number;
2470
2429
  return `<feDropShadow dx="${num(s.dx)}" dy="${num(s.dy)}" stdDeviation="${num(s.blur / 2)}" flood-color="${format.color(s.color, "#000000")}" flood-opacity="${num(s.opacity)}" result="shadow"/>`;
2471
2430
  }
2472
- function hexToRgb2(color) {
2431
+ function hexToRgb(color) {
2473
2432
  const parsed = hexToRgbChannels(color);
2474
2433
  if (parsed) return parsed;
2475
2434
  const hex = color.replace("#", "");
@@ -2483,8 +2442,8 @@ function toHexChannel(value) {
2483
2442
  return toHex(value).toLowerCase();
2484
2443
  }
2485
2444
  function lerpStops(a, b, t) {
2486
- const ca = hexToRgb2(a.color);
2487
- const cb = hexToRgb2(b.color);
2445
+ const ca = hexToRgb(a.color);
2446
+ const cb = hexToRgb(b.color);
2488
2447
  const oa = a.opacity ?? 1;
2489
2448
  const ob = b.opacity ?? 1;
2490
2449
  return {
@@ -12589,7 +12548,7 @@ function computeHierarchicalSunburstArcs(categoryLevels, values, cx, cy, maxR) {
12589
12548
  }
12590
12549
 
12591
12550
  // chart/style-palette.ts
12592
- function hexToRgb3(hex) {
12551
+ function hexToRgb2(hex) {
12593
12552
  const h = hex.replace("#", "");
12594
12553
  return [
12595
12554
  parseInt(h.substring(0, 2), 16),
@@ -12602,7 +12561,7 @@ function rgbToHex(r, g, b) {
12602
12561
  return `#${clamp3(r).toString(16).padStart(2, "0")}${clamp3(g).toString(16).padStart(2, "0")}${clamp3(b).toString(16).padStart(2, "0")}`;
12603
12562
  }
12604
12563
  function shade(hex, amount) {
12605
- const [r, g, b] = hexToRgb3(hex);
12564
+ const [r, g, b] = hexToRgb2(hex);
12606
12565
  return rgbToHex(r * (1 - amount), g * (1 - amount), b * (1 - amount));
12607
12566
  }
12608
12567
 
@@ -18555,6 +18514,14 @@ function renderChartSummarySvg(summary, options2) {
18555
18514
  return renderChartSvg(view, width, height, svg);
18556
18515
  }
18557
18516
 
18517
+ // docx/revision-properties.ts
18518
+ function parsePropertiesSnapshot(xml, local) {
18519
+ const element = parseXml2(xml).documentElement;
18520
+ if (!named2(element, local))
18521
+ throw new Error(`A formatting revision snapshot must contain Word ${local} properties.`);
18522
+ return element;
18523
+ }
18524
+
18558
18525
  // docx/write-run-validation.ts
18559
18526
  var modeledRunProperties = /* @__PURE__ */ new Set([
18560
18527
  "b",
@@ -18731,6 +18698,47 @@ function formFieldDisplayText(run) {
18731
18698
  return void 0;
18732
18699
  }
18733
18700
 
18701
+ // docx/table-grid.ts
18702
+ var spanOf = (cell) => Math.max(1, cell.gridSpan ?? 1);
18703
+ function tableGrid(table) {
18704
+ const columns = table.grid?.length ?? sumSpans(table.rows[0]);
18705
+ if (!columns || !table.rows.length) return void 0;
18706
+ const rows2 = [];
18707
+ const cover = [];
18708
+ for (let row2 = 0; row2 < table.rows.length; row2++) {
18709
+ const cells = table.rows[row2] ?? [];
18710
+ if (!cells.length || sumSpans(cells) !== columns) return void 0;
18711
+ const placed2 = [];
18712
+ const line4 = new Array(columns);
18713
+ let col = 0;
18714
+ cells.forEach((cell, index) => {
18715
+ const entry = { cell, row: row2, index, col, span: spanOf(cell) };
18716
+ for (let k = 0; k < entry.span; k++) line4[col + k] = entry;
18717
+ col += entry.span;
18718
+ placed2.push(entry);
18719
+ });
18720
+ rows2.push(placed2);
18721
+ cover.push(line4);
18722
+ }
18723
+ const grid = { columns, rows: rows2, cover };
18724
+ for (const entry of rows2.flat())
18725
+ if (entry.cell.verticalMerge === "continue") {
18726
+ const above2 = entry.row > 0 ? cover[entry.row - 1]?.[entry.col] : void 0;
18727
+ if (!above2 || above2.col !== entry.col || above2.span !== entry.span) return void 0;
18728
+ if (!above2.cell.verticalMerge) return void 0;
18729
+ }
18730
+ return grid;
18731
+ }
18732
+ function sumSpans(cells) {
18733
+ return (cells ?? []).reduce((sum, cell) => sum + spanOf(cell), 0);
18734
+ }
18735
+ function rowSpanOf(grid, entry) {
18736
+ if (entry.cell.verticalMerge !== "restart") return 1;
18737
+ let height = 1;
18738
+ while (grid.cover[entry.row + height]?.[entry.col]?.cell.verticalMerge === "continue") height++;
18739
+ return height;
18740
+ }
18741
+
18734
18742
  // docx/field-lock.ts
18735
18743
  function isFieldLocked(run) {
18736
18744
  return run?.fieldFlags?.locked === true;