ooxml-core 1.47.0 → 1.48.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 (240) hide show
  1. package/dist/PptxHandler-6UQWMUVU.cjs +14 -0
  2. package/dist/{PptxHandler-NXHZ6ITL.mjs → PptxHandler-PLSH2BAS.mjs} +2 -2
  3. package/dist/PptxHandler-QLKZVYCG.mjs +5 -0
  4. package/dist/{PresentationBuilder-URSPID7L.mjs → PresentationBuilder-3QXOJNRO.mjs} +2 -2
  5. package/dist/{PresentationBuilder-IK6NIK6T.cjs → PresentationBuilder-CRBFFHNW.cjs} +6 -6
  6. package/dist/{PresentationBuilder-LHQ333UL.mjs → PresentationBuilder-DQ3XFU4R.mjs} +3 -3
  7. package/dist/{chunk-QHR726W3.mjs → chunk-32K7JG2Z.mjs} +1 -1
  8. package/dist/{chunk-APCA7N6Q.cjs → chunk-7RCBSNXT.cjs} +3 -3
  9. package/dist/{chunk-6MU4WKHS.mjs → chunk-CXIDPUT6.mjs} +1 -1
  10. package/dist/{chunk-553WFEHD.mjs → chunk-EKEE6BTU.mjs} +638 -50
  11. package/dist/{chunk-XVEJS7HN.mjs → chunk-IKFTITJ7.mjs} +4 -4
  12. package/dist/{chunk-7L6ZAA5Y.mjs → chunk-K5G6MV37.mjs} +2 -2
  13. package/dist/{chunk-4GPLQEEC.cjs → chunk-RRA262A6.cjs} +1926 -1326
  14. package/dist/{chunk-5HNRZOBX.mjs → chunk-WAYEYX4G.mjs} +1 -1
  15. package/dist/{chunk-Z734BYYR.mjs → chunk-WLKOLTBH.mjs} +653 -53
  16. package/dist/pptx/automation/index.cjs +45094 -44442
  17. package/dist/pptx/automation/index.d.ts +5 -12
  18. package/dist/pptx/automation/index.d.ts.map +1 -1
  19. package/dist/pptx/automation/index.mjs +5 -5
  20. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts +1 -1
  21. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
  22. package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -1
  23. package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
  24. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -1
  25. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
  26. package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -1
  27. package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
  28. package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -1
  29. package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
  30. package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -1
  31. package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
  32. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -1
  33. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
  34. package/dist/pptx/automation/schemas/index.d.ts +8 -8
  35. package/dist/pptx/automation/schemas/index.d.ts.map +1 -1
  36. package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -1
  37. package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
  38. package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -1
  39. package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
  40. package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -1
  41. package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
  42. package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -1
  43. package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
  44. package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -1
  45. package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
  46. package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -1
  47. package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
  48. package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -1
  49. package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
  50. package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -1
  51. package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
  52. package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -1
  53. package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
  54. package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -1
  55. package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
  56. package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -1
  57. package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
  58. package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -1
  59. package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
  60. package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -1
  61. package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
  62. package/dist/pptx/chunks/color-primitives-DHyz14D9.d.ts +151 -0
  63. package/dist/pptx/chunks/color-primitives-DHyz14D9.d.ts.map +1 -0
  64. package/dist/pptx/chunks/{index--HBUyILF.d.ts → index-7tA9HqRL.d.ts} +10060 -1223
  65. package/dist/pptx/chunks/index-7tA9HqRL.d.ts.map +1 -0
  66. package/dist/pptx/chunks/{index-Dr3iIPt9.d.ts → index-CAzt1jbx.d.ts} +4 -5
  67. package/dist/pptx/chunks/index-CAzt1jbx.d.ts.map +1 -0
  68. package/dist/pptx/chunks/{schemas-LHsDbVOw.d.ts → index-CyAgQ2zG.d.ts} +6 -2
  69. package/dist/pptx/chunks/index-CyAgQ2zG.d.ts.map +1 -0
  70. package/dist/pptx/chunks/index-cJSPBkU1.d.ts +185 -0
  71. package/dist/pptx/chunks/index-cJSPBkU1.d.ts.map +1 -0
  72. package/dist/pptx/chunks/index-cr_sgz1w.d.ts +94 -0
  73. package/dist/pptx/chunks/index-cr_sgz1w.d.ts.map +1 -0
  74. package/dist/pptx/chunks/presentation-Be108jrz.d.ts +12521 -0
  75. package/dist/pptx/chunks/presentation-Be108jrz.d.ts.map +1 -0
  76. package/dist/pptx/chunks/{inspection-status-TKac7eqb.d.ts → signature-inspection-status-TKac7eqb.d.ts} +1 -1
  77. package/dist/pptx/chunks/signature-inspection-status-TKac7eqb.d.ts.map +1 -0
  78. package/dist/pptx/chunks/text-operations-a1cqBYk9.d.ts +111 -0
  79. package/dist/pptx/chunks/text-operations-a1cqBYk9.d.ts.map +1 -0
  80. package/dist/pptx/cli/index.cjs +746 -94
  81. package/dist/pptx/cli/index.d.ts +17 -1
  82. package/dist/pptx/cli/index.d.ts.map +1 -1
  83. package/dist/pptx/cli/index.mjs +4 -4
  84. package/dist/pptx/converter/index.d.ts +1 -1
  85. package/dist/pptx/converter/index.mjs +2 -2
  86. package/dist/pptx/editor/ai/table-merge.d.ts +16 -0
  87. package/dist/pptx/editor/ai/table-merge.d.ts.map +1 -1
  88. package/dist/pptx/editor/loader/element-patch-walker.d.ts +15 -0
  89. package/dist/pptx/editor/loader/element-patch-walker.d.ts.map +1 -1
  90. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts +15 -0
  91. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts.map +1 -1
  92. package/dist/pptx/editor/loader/load-content-helpers.d.ts +7 -0
  93. package/dist/pptx/editor/loader/load-content-helpers.d.ts.map +1 -1
  94. package/dist/pptx/editor/loader/table-style-image-paths.d.ts +20 -0
  95. package/dist/pptx/editor/loader/table-style-image-paths.d.ts.map +1 -1
  96. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts +19 -0
  97. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts.map +1 -1
  98. package/dist/pptx/editor/render/bullet-autonum.d.ts +14 -0
  99. package/dist/pptx/editor/render/bullet-list.d.ts +8 -0
  100. package/dist/pptx/editor/render/bullet-list.d.ts.map +1 -1
  101. package/dist/pptx/editor/render/bullet-toggle.d.ts +4 -0
  102. package/dist/pptx/editor/render/bullet-toggle.d.ts.map +1 -1
  103. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts +12 -0
  104. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts.map +1 -1
  105. package/dist/pptx/editor/render/clone.d.ts +20 -0
  106. package/dist/pptx/editor/render/clone.d.ts.map +1 -1
  107. package/dist/pptx/editor/render/collaboration-assets.d.ts +17 -0
  108. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts +9 -0
  109. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts.map +1 -1
  110. package/dist/pptx/editor/render/collaboration-reconcile.d.ts +21 -0
  111. package/dist/pptx/editor/render/collaboration-reconcile.d.ts.map +1 -1
  112. package/dist/pptx/editor/render/collaboration-sync.d.ts +32 -4
  113. package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
  114. package/dist/pptx/editor/render/collaboration-text-codec.d.ts +33 -2
  115. package/dist/pptx/editor/render/collaboration-text-codec.d.ts.map +1 -0
  116. package/dist/pptx/editor/render/collaboration-text-merge.d.ts +36 -2
  117. package/dist/pptx/editor/render/collaboration-text-merge.d.ts.map +1 -0
  118. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +2 -2
  119. package/dist/pptx/editor/render/collaboration-text-positions.d.ts +34 -2
  120. package/dist/pptx/editor/render/collaboration-text-positions.d.ts.map +1 -0
  121. package/dist/pptx/editor/render/collaboration-text-projection.d.ts +1 -1
  122. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts +3 -3
  123. package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts +36 -2
  124. package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts.map +1 -0
  125. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -1
  126. package/dist/pptx/editor/render/collaboration-text-session.d.ts +40 -2
  127. package/dist/pptx/editor/render/collaboration-text-session.d.ts.map +1 -0
  128. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts +2 -2
  129. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  130. package/dist/pptx/editor/render/custom-show-operations.d.ts +14 -0
  131. package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -1
  132. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  133. package/dist/pptx/editor/render/deck-save-encryption.d.ts +24 -0
  134. package/dist/pptx/editor/render/deck-save-encryption.d.ts.map +1 -1
  135. package/dist/pptx/editor/render/element-locks.d.ts +25 -0
  136. package/dist/pptx/editor/render/element-locks.d.ts.map +1 -1
  137. package/dist/pptx/editor/render/element-operations.d.ts +11 -0
  138. package/dist/pptx/editor/render/element-operations.d.ts.map +1 -1
  139. package/dist/pptx/editor/render/element.d.ts +12 -0
  140. package/dist/pptx/editor/render/element.d.ts.map +1 -1
  141. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  142. package/dist/pptx/editor/render/find-replace.d.ts +8 -2
  143. package/dist/pptx/editor/render/find-replace.d.ts.map +1 -1
  144. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  145. package/dist/pptx/editor/render/font-family-update.d.ts +32 -1
  146. package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -1
  147. package/dist/pptx/editor/render/group-drill.d.ts +26 -0
  148. package/dist/pptx/editor/render/group-drill.d.ts.map +1 -1
  149. package/dist/pptx/editor/render/group-ops.d.ts +24 -0
  150. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +21 -1
  151. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -1
  152. package/dist/pptx/editor/render/remap-text.d.ts +5 -0
  153. package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
  154. package/dist/pptx/editor/render/section-operations.d.ts +14 -0
  155. package/dist/pptx/editor/render/section-operations.d.ts.map +1 -1
  156. package/dist/pptx/editor/render/slide-background-patch.d.ts +15 -0
  157. package/dist/pptx/editor/render/slide-background-patch.d.ts.map +1 -1
  158. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  159. package/dist/pptx/editor/render/slide-operations.d.ts +12 -0
  160. package/dist/pptx/editor/render/slide-operations.d.ts.map +1 -1
  161. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  162. package/dist/pptx/editor/render/slide-search.d.ts +6 -0
  163. package/dist/pptx/editor/render/slide-search.d.ts.map +1 -1
  164. package/dist/pptx/editor/render/slide-size-rescale.d.ts +18 -0
  165. package/dist/pptx/editor/render/slide-size-rescale.d.ts.map +1 -1
  166. package/dist/pptx/editor/render/slide-transition-edits.d.ts +15 -0
  167. package/dist/pptx/editor/render/slide-transition-edits.d.ts.map +1 -1
  168. package/dist/pptx/editor/render/table-cell-edit.d.ts +8 -0
  169. package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
  170. package/dist/pptx/editor/render/table-cell-merge.d.ts +15 -0
  171. package/dist/pptx/editor/render/table-cell-merge.d.ts.map +1 -1
  172. package/dist/pptx/editor/render/table-data-grid-ops.d.ts +26 -0
  173. package/dist/pptx/editor/render/table-data-grid-ops.d.ts.map +1 -1
  174. package/dist/pptx/editor/render/table-layout.d.ts +3 -1
  175. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  176. package/dist/pptx/editor/render/table-merge.d.ts +16 -0
  177. package/dist/pptx/editor/render/table-merge.d.ts.map +1 -1
  178. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts +13 -0
  179. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts.map +1 -1
  180. package/dist/pptx/editor/render/table-style-editor-edit.d.ts +13 -0
  181. package/dist/pptx/editor/render/table-style-editor-edit.d.ts.map +1 -1
  182. package/dist/pptx/editor/render/table-style-editor-parts.d.ts +10 -0
  183. package/dist/pptx/editor/render/table-style-editor-parts.d.ts.map +1 -1
  184. package/dist/pptx/editor/render/table-style-map-edits.d.ts +20 -0
  185. package/dist/pptx/editor/render/table-style-map-edits.d.ts.map +1 -1
  186. package/dist/pptx/editor/render/text-content-style.d.ts +2 -1
  187. package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -1
  188. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
  189. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts +23 -0
  190. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts.map +1 -1
  191. package/dist/pptx/editor/render/text-style-scope.d.ts +20 -2
  192. package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -1
  193. package/dist/pptx/editor/render/text-theme.d.ts +11 -0
  194. package/dist/pptx/editor/render/text-theme.d.ts.map +1 -1
  195. package/dist/pptx/editor/render/theme-editor-presets.d.ts +9 -0
  196. package/dist/pptx/editor/render/theme-editor-presets.d.ts.map +1 -1
  197. package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -1
  198. package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -1
  199. package/dist/pptx/index.cjs +34610 -33974
  200. package/dist/pptx/index.d.ts +24 -10
  201. package/dist/pptx/index.mjs +5 -5
  202. package/dist/pptx/node/index.d.ts +17 -1
  203. package/dist/pptx/node/index.d.ts.map +1 -1
  204. package/dist/pptx/signature-node/index.d.ts +8 -1
  205. package/dist/pptx/signature-node/index.d.ts.map +1 -1
  206. package/dist/pptx/smartart-layouts/index.d.ts +8 -1
  207. package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
  208. package/dist/pptx/ui/index.d.ts +2 -0
  209. package/dist/pptx/ui/index.d.ts.map +1 -1
  210. package/package.json +8 -8
  211. package/dist/PptxHandler-JX62VKU4.cjs +0 -14
  212. package/dist/PptxHandler-SUGLNSZI.mjs +0 -5
  213. package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts +0 -34
  214. package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts.map +0 -1
  215. package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts +0 -19
  216. package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts.map +0 -1
  217. package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts +0 -34
  218. package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts.map +0 -1
  219. package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts +0 -41
  220. package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts.map +0 -1
  221. package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts +0 -37
  222. package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts.map +0 -1
  223. package/dist/pptx/chunks/elements-B4Z6N-Gz.d.ts +0 -3993
  224. package/dist/pptx/chunks/elements-B4Z6N-Gz.d.ts.map +0 -1
  225. package/dist/pptx/chunks/index--HBUyILF.d.ts.map +0 -1
  226. package/dist/pptx/chunks/index-BDVzSboe.d.ts +0 -9746
  227. package/dist/pptx/chunks/index-BDVzSboe.d.ts.map +0 -1
  228. package/dist/pptx/chunks/index-Dr3iIPt9.d.ts.map +0 -1
  229. package/dist/pptx/chunks/inspection-status-TKac7eqb.d.ts.map +0 -1
  230. package/dist/pptx/chunks/schemas-LHsDbVOw.d.ts.map +0 -1
  231. package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts +0 -1817
  232. package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts.map +0 -1
  233. package/dist/pptx/chunks/table-BfgZfw5R.d.ts +0 -1359
  234. package/dist/pptx/chunks/table-BfgZfw5R.d.ts.map +0 -1
  235. package/dist/pptx/chunks/text-operations-CVHXOSit.d.ts +0 -3363
  236. package/dist/pptx/chunks/text-operations-CVHXOSit.d.ts.map +0 -1
  237. package/dist/pptx/chunks/text-t_wJ2OwM.d.ts +0 -1452
  238. package/dist/pptx/chunks/text-t_wJ2OwM.d.ts.map +0 -1
  239. /package/dist/{chunk-WFN6ZU7N.cjs → chunk-HBQBS7PO.cjs} +0 -0
  240. /package/dist/{chunk-DEDK2J57.mjs → chunk-I5REMIZR.mjs} +0 -0
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- require('../../../chunk-4GPLQEEC.cjs');
4
- require('../../../chunk-APCA7N6Q.cjs');
5
- var chunkWFN6ZU7N_cjs = require('../../../chunk-WFN6ZU7N.cjs');
3
+ require('../../../chunk-RRA262A6.cjs');
4
+ require('../../../chunk-7RCBSNXT.cjs');
5
+ var chunkHBQBS7PO_cjs = require('../../../chunk-HBQBS7PO.cjs');
6
6
  require('../../../chunk-XZPZHXV4.cjs');
7
7
  require('../../../chunk-5W2QL4SB.cjs');
8
8
 
@@ -21,7 +21,7 @@ function reassignElementId(element) {
21
21
  return newElement;
22
22
  }
23
23
  function duplicateSlide(slide, newSlideNumber) {
24
- const cloned = chunkWFN6ZU7N_cjs.cloneSlide(slide);
24
+ const cloned = chunkHBQBS7PO_cjs.cloneSlide(slide);
25
25
  cloned.sourceSlideId = slide.id.startsWith("ppt/slides/") ? slide.id : slide.sourceSlideId ?? slide.id;
26
26
  cloned.id = `slide${newSlideNumber}`;
27
27
  cloned.rId = `rId${newSlideNumber + 1}`;
@@ -51,7 +51,7 @@ function duplicateSlide(slide, newSlideNumber) {
51
51
  function captureSlideClipboard(slides, ids) {
52
52
  return ids.flatMap((id) => {
53
53
  const slide = slides.find((candidate) => candidate.id === id);
54
- return slide ? [chunkWFN6ZU7N_cjs.cloneSlide(slide)] : [];
54
+ return slide ? [chunkHBQBS7PO_cjs.cloneSlide(slide)] : [];
55
55
  });
56
56
  }
57
57
  function createSlidePaste(clipboard, insertAt, templates = {}) {
@@ -62,14 +62,14 @@ function createSlidePaste(clipboard, insertAt, templates = {}) {
62
62
  })),
63
63
  sourceIds: clipboard.map((slide) => slide.id),
64
64
  insertAt,
65
- templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(chunkWFN6ZU7N_cjs.cloneElement))
65
+ templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(chunkHBQBS7PO_cjs.cloneElement))
66
66
  };
67
67
  }
68
68
  function insertSlidePaste(slides, request) {
69
69
  const index = Math.max(0, Math.min(slides.length, request.insertAt));
70
70
  const next = [
71
71
  ...slides.slice(0, index),
72
- ...request.copies.map(chunkWFN6ZU7N_cjs.cloneSlide),
72
+ ...request.copies.map(chunkHBQBS7PO_cjs.cloneSlide),
73
73
  ...slides.slice(index)
74
74
  ];
75
75
  return next.map(
@@ -79,12 +79,12 @@ function insertSlidePaste(slides, request) {
79
79
  function applySlidePasteTemplates(mapping, request) {
80
80
  const next = { ...mapping };
81
81
  request.copies.forEach((copy, index) => {
82
- next[copy.id] = (request.templateElements[index] ?? []).map(chunkWFN6ZU7N_cjs.cloneElement);
82
+ next[copy.id] = (request.templateElements[index] ?? []).map(chunkHBQBS7PO_cjs.cloneElement);
83
83
  });
84
84
  return next;
85
85
  }
86
86
  function captureSlideClipboardTemplates(mapping, ids) {
87
- return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(chunkWFN6ZU7N_cjs.cloneElement)]));
87
+ return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(chunkHBQBS7PO_cjs.cloneElement)]));
88
88
  }
89
89
  function makeSlideId(idGenerator) {
90
90
  if (idGenerator) {
@@ -1,3 +1,15 @@
1
+ /**
2
+ * slide-operations: Pure factory helpers for blank slides + slide ids.
3
+ *
4
+ * Framework-agnostic (no framework imports). The React `useSlideManagement`
5
+ * hook and the Vue `useSlideOperations` composable both call these so the
6
+ * blank-slide shape and id scheme live in one place.
7
+ *
8
+ * `makeSlideId` uses the `slide-${Date.now()}-${random}` pattern inside its
9
+ * function body (called at runtime, never at module-eval time) and accepts an
10
+ * optional `idGenerator` override, matching the neighbouring shared editor
11
+ * modules' id convention.
12
+ */
1
13
  import { PptxElement, PptxSlide } from "ooxml-core/pptx";
2
14
  export interface SlidePasteRequest {
3
15
  /** Independent slide copies with their new identities already assigned. */
@@ -1 +1 @@
1
- {"version":3,"file":"slide-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-operations.ts"],"mappings":";iBAgBiB;;WAEP,QAAQ;;WAER;;WAEA;;WAEA,kBAAkB;;wBAGZ,sBACf,iBAAiB,aACjB,yBACE;wBAOa,iBACf,oBAAoB,aACpB,kBACA,YAAW,eAAe,iBACxB;;wBAaa,iBACf,iBAAiB,aACjB,SAAS,oBACP;wBAYa,yBACf,SAAS,eAAe,gBACxB,SAAS,oBACP,eAAe;wBAQF,+BACf,SAAS,eAAe,gBACxB,yBACE,eAAe;;;;;;;;wBAWF,YAAY;;;;;;;;;wBAeZ,iBAAiB,qBAAqB,6BAA6B"}
1
+ {"version":3,"file":"slide-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-operations.ts"],"mappings":";;;;;;;;;;;;;iBAgBiB;;WAEP,QAAQ;;WAER;;WAEA;;WAEA,kBAAkB;;wBAGZ,sBACf,iBAAiB,aACjB,yBACE;wBAOa,iBACf,oBAAoB,aACpB,kBACA,YAAW,eAAe,iBACxB;;wBAaa,iBACf,iBAAiB,aACjB,SAAS,oBACP;wBAYa,yBACf,SAAS,eAAe,gBACxB,SAAS,oBACP,eAAe;wBAQF,+BACf,SAAS,eAAe,gBACxB,yBACE,eAAe;;;;;;;;wBAWF,YAAY;;;;;;;;;wBAeZ,iBAAiB,qBAAqB,6BAA6B"}
@@ -1,6 +1,6 @@
1
- import '../../../chunk-Z734BYYR.mjs';
2
- import '../../../chunk-6MU4WKHS.mjs';
3
- import { cloneSlide, cloneElement } from '../../../chunk-DEDK2J57.mjs';
1
+ import '../../../chunk-WLKOLTBH.mjs';
2
+ import '../../../chunk-CXIDPUT6.mjs';
3
+ import { cloneSlide, cloneElement } from '../../../chunk-I5REMIZR.mjs';
4
4
  import '../../../chunk-GXHKNSZX.mjs';
5
5
  import '../../../chunk-CA7KCNL3.mjs';
6
6
 
@@ -1,3 +1,9 @@
1
+ /**
2
+ * slide-search.ts: Pure text-search helpers for PPTX slides.
3
+ *
4
+ * No framework imports; safe to use in web workers or server-side code. Shared
5
+ * across the React, Vue, and Angular bindings.
6
+ */
1
7
  import { PptxElement, PptxSlide } from "ooxml-core/pptx";
2
8
  /**
3
9
  * A single slide that matched a text search query.
@@ -1 +1 @@
1
- {"version":3,"file":"slide-search.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-search.ts"],"mappings":";;;;iBAYiB;;EAEhB;;EAEA;;;;;EAKA;;;;;;;;;;;wBA4Be,mBAAmB,SAAS;;;;wBA4C5B,iBAAiB,OAAO;;;;;;wBAwDxB,aAAa,iBAAiB,aAAa,gBAAgB"}
1
+ {"version":3,"file":"slide-search.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-search.ts"],"mappings":";;;;;;;;;;iBAYiB;;EAEhB;;EAEA;;;;;EAKA;;;;;;;;;;;wBA4Be,mBAAmB,SAAS;;;;wBA4C5B,iBAAiB,OAAO;;;;;;wBAwDxB,aAAa,iBAAiB,aAAa,gBAAgB"}
@@ -1,3 +1,21 @@
1
+ /**
2
+ * slide-size-rescale.ts: what happens to a deck's content when Design > Slide
3
+ * Size changes the canvas dimensions.
4
+ *
5
+ * PowerPoint offers two responses when a slide-size change no longer matches
6
+ * the existing content's aspect ratio:
7
+ * - "Maximize": scale content up to fill the new size (by the LARGER of the
8
+ * two axis ratios), which can push content outside the new slide bounds.
9
+ * - "Ensure Fit": scale content down to fit inside the new size (by the
10
+ * SMALLER of the two axis ratios), which can leave margins.
11
+ *
12
+ * Both scale uniformly (one factor, not independent X/Y stretch) and both
13
+ * centre the scaled content in the new canvas, which is why every element's
14
+ * position is re-derived from the same `(scale, offsetX, offsetY)` triple
15
+ * rather than each axis being handled independently.
16
+ *
17
+ * Framework-agnostic: no React, Vue, Angular, Svelte or DOM imports.
18
+ */
1
19
  import { PptxSlide } from "ooxml-core/pptx";
2
20
  export type SlideSizeRescaleMode = 'maximize' | 'ensureFit';
3
21
  export interface RescaleSlideSize {
@@ -1 +1 @@
1
- {"version":3,"file":"slide-size-rescale.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-size-rescale.ts"],"mappings":";YAuBY;iBAEK;WACP;WACA;;;;;;;;;iBAUO;WACP;WACA;WACA;;;;;;wBAOM,iCACf,SAAS,kBACT,SAAS,kBACT,MAAM,uBACJ;;;;;;wBA0Fa,yBACf,iBAAiB,aACjB,SAAS,kBACT,SAAS,kBACT,MAAM,uBACJ"}
1
+ {"version":3,"file":"slide-size-rescale.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-size-rescale.ts"],"mappings":";;;;;;;;;;;;;;;;;;;YAuBY;iBAEK;WACP;WACA;;;;;;;;;iBAUO;WACP;WACA;WACA;;;;;;wBAOM,iCACf,SAAS,kBACT,SAAS,kBACT,MAAM,uBACJ;;;;;;wBA0Fa,yBACf,iBAAiB,aACjB,SAAS,kBACT,SAAS,kBACT,MAAM,uBACJ"}
@@ -1,3 +1,18 @@
1
+ /**
2
+ * slide-transition-edits: the write side of the inspector's slide-transition
3
+ * section (the read side, the option catalogue and direction grid, lives in
4
+ * `slide-transition-options`).
5
+ *
6
+ * WHY shared: a transition is a single OOXML element whose attributes are
7
+ * edited one control at a time, so every binding must MERGE each change onto
8
+ * the slide's existing transition. Replacing it wholesale is the bug this
9
+ * prevents: changing the duration would silently discard an authored sound,
10
+ * direction or spoke count the deck already carried. The numeric clamp is here
11
+ * for the same reason, so a duration typed into React and one typed into
12
+ * Angular round to the same stored value.
13
+ *
14
+ * @module render/slide-transition-edits
15
+ */
1
16
  import { PptxSlideTransition } from "ooxml-core/pptx";
2
17
  /**
3
18
  * Merge a partial change onto a slide's existing transition. Always yields a
@@ -1 +1 @@
1
- {"version":3,"file":"slide-transition-edits.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-transition-edits.ts"],"mappings":";;;;;;wBAsBgB,qBACf,SAAS,iCACT,SAAS,QAAQ,uBACf;;;;;;wBASa,sBAAsB,aAAa,aAAa"}
1
+ {"version":3,"file":"slide-transition-edits.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-transition-edits.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;wBAsBgB,qBACf,SAAS,iCACT,SAAS,QAAQ,uBACf;;;;;;wBASa,sBAAsB,aAAa,aAAa"}
@@ -1,3 +1,11 @@
1
+ /**
2
+ * table-cell-edit.ts: Pure, immutable table-cell editing helpers shared by
3
+ * every binding so inline cell editing is not reimplemented per framework.
4
+ *
5
+ * All functions return new objects and leave the input element unchanged.
6
+ *
7
+ * @module render/table-cell-edit
8
+ */
1
9
  import { PptxTableCell, PptxTableCellStyle, TablePptxElement } from "ooxml-core/pptx";
2
10
  /**
3
11
  * Replace one cell's plain text, DROPPING the per-run model that described the
@@ -1 +1 @@
1
- {"version":3,"file":"table-cell-edit.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-cell-edit.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoCgB,aAAa,MAAM,eAAe,eAAe;;;;;;;;;;;;;wBAqBjD,cACf,MAAM,eACN,OAAO,QAAQ,sBACb;;;;;;;;;;;;;;;;;;;wBA6Ba,YACf,SAAS,kBACT,kBACA,kBACA,eACE;;;;;wBAqBa,YACf,SAAS,kBACT,kBACA"}
1
+ {"version":3,"file":"table-cell-edit.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-cell-edit.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoCgB,aAAa,MAAM,eAAe,eAAe;;;;;;;;;;;;;wBAqBjD,cACf,MAAM,eACN,OAAO,QAAQ,sBACb;;;;;;;;;;;;;;;;;;;wBA6Ba,YACf,SAAS,kBACT,kBACA,kBACA,eACE;;;;;wBAqBa,YACf,SAAS,kBACT,kBACA"}
@@ -1,3 +1,18 @@
1
+ /**
2
+ * table-cell-merge.ts - framework-agnostic cursor-anchored cell merge helpers.
3
+ *
4
+ * These complement the selection-rectangle operations in `table-merge.ts`.
5
+ * Where `mergeCells` / `splitCell` operate on an arbitrary rectangular
6
+ * selection, the helpers here act relative to a single cursor cell:
7
+ * - merge the cell to its right (`computeMergeCellRight`),
8
+ * - merge the cell below it (`computeMergeCellDown`),
9
+ * - split the merged cell under the cursor (`computeSplitCell`).
10
+ *
11
+ * Each returns a new (immutable) `rows` array with the merge/split applied, or
12
+ * `null` when the operation is not valid at that position. Ported verbatim from
13
+ * the React viewer's `inspector/table-cell-merge-helpers.ts` so React, Vue, and
14
+ * Angular share one copy. No framework imports.
15
+ */
1
16
  import { PptxTableData } from "ooxml-core/pptx";
2
17
  /**
3
18
  * Merge the cell at `(rowIndex, columnIndex)` with the next cell to its right.
@@ -1 +1 @@
1
- {"version":3,"file":"table-cell-merge.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-cell-merge.ts"],"mappings":";;;;;wBAuBgB,sBACf,IAAI,eACJ,kBACA,sBACE;;;;;wBAkCa,qBACf,IAAI,eACJ,kBACA,sBACE;;;;;wBA6Ca,iBACf,IAAI,eACJ,kBACA,sBACE"}
1
+ {"version":3,"file":"table-cell-merge.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-cell-merge.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;wBAuBgB,sBACf,IAAI,eACJ,kBACA,sBACE;;;;;wBAkCa,qBACf,IAAI,eACJ,kBACA,sBACE;;;;;wBA6Ca,iBACf,IAAI,eACJ,kBACA,sBACE"}
@@ -1,3 +1,29 @@
1
+ /**
2
+ * table-data-grid-ops.ts: element-level, immutable row/column/cell operations
3
+ * behind the inspector's table data grid.
4
+ *
5
+ * Split out of `table-data-grid.ts` (which owns the render model and its types)
6
+ * to keep both files inside the repo's 300 LOC ceiling. Import either through
7
+ * the package barrel; they are one feature in two files.
8
+ *
9
+ * WHY these wrap the primitives in `table-layout` rather than calling them
10
+ * directly from a view:
11
+ *
12
+ * 1. **The "append / remove last" dance.** The grid's header buttons operate on
13
+ * the END of the table, but the primitives are positional
14
+ * (`insertTableRow(td, idx, 'below')`). Without these wrappers every binding
15
+ * re-writes the same `count - 1` clamp and gets it wrong for an empty table.
16
+ * 2. **rawXml synchronisation**, which is load-bearing: see {@link withTableData}.
17
+ *
18
+ * They take and return a whole `TablePptxElement` so an inspector can hand the
19
+ * result straight to the binding's `updateElement` edit path as a single history
20
+ * entry. The underlying transforms are the merge-AWARE ones in `table-layout`,
21
+ * so existing merge spans are adjusted rather than destroyed.
22
+ *
23
+ * Every function is pure: the input element is never mutated.
24
+ *
25
+ * @module render/table-data-grid-ops
26
+ */
1
27
  import { TablePptxElement } from "ooxml-core/pptx";
2
28
  /**
3
29
  * Set one cell's text, keeping `rawXml` in sync so the edit actually paints and
@@ -1 +1 @@
1
- {"version":3,"file":"table-data-grid-ops.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-data-grid-ops.ts"],"mappings":";;;;;;;;;;;;wBAsFgB,wBACf,SAAS,kBACT,kBACA,kBACA,eACE;;;;;;;;;wBAiBa,sBACf,SAAS,kBACT,gBACA,8BACE;;;;;;;;wBAea,sBAAsB,SAAS,kBAAkB,iBAAiB;;;;;;;;;wBAgBlE,yBACf,SAAS,kBACT,gBACA,6BACE;;;;;;;;wBAea,yBACf,SAAS,kBACT,iBACE;;;;;;;;;;wBAiBa,sBAAsB,SAAS,mBAAmB;;;;;;;wBAclD,0BAA0B,SAAS,mBAAmB;;;;;;;;;wBAgBtD,yBAAyB,SAAS,mBAAmB;;;;;;;wBAcrD,6BAA6B,SAAS,mBAAmB"}
1
+ {"version":3,"file":"table-data-grid-ops.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-data-grid-ops.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsFgB,wBACf,SAAS,kBACT,kBACA,kBACA,eACE;;;;;;;;;wBAiBa,sBACf,SAAS,kBACT,gBACA,8BACE;;;;;;;;wBAea,sBAAsB,SAAS,kBAAkB,iBAAiB;;;;;;;;;wBAgBlE,yBACf,SAAS,kBACT,gBACA,6BACE;;;;;;;;wBAea,yBACf,SAAS,kBACT,iBACE;;;;;;;;;;wBAiBa,sBAAsB,SAAS,mBAAmB;;;;;;;wBAclD,0BAA0B,SAAS,mBAAmB;;;;;;;;;wBAgBtD,yBAAyB,SAAS,mBAAmB;;;;;;;wBAcrD,6BAA6B,SAAS,mBAAmB"}
@@ -1,4 +1,6 @@
1
- import { v as PptxTableData } from "../../chunks/table-BfgZfw5R.js";
1
+ /** Shared logical table edits for the editor and the PPTX automation tools. */
2
+ import { jr as PptxTableData } from "../../chunks/presentation-Be108jrz.js";
3
+ import "../../chunks/index-cJSPBkU1.js";
2
4
  /** Default pixel height assigned to a freshly inserted row. */
3
5
  export declare const DEFAULT_INSERTED_ROW_HEIGHT = 40;
4
6
  /** Insert a row and extend each vertical merge crossing the insertion point. */
@@ -1 +1 @@
1
- {"version":3,"file":"table-layout.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-layout.ts"],"mappings":";;qBAKa;;wBAoFG,eACf,WAAW,eACX,gBACA,6BACA,gCACE;;wBAYa,eAAe,WAAW,eAAe,iBAAiB;;wBAW1D,kBACf,WAAW,eACX,gBACA,4BACA,gCACE;;wBAmBa,kBAAkB,WAAW,eAAe,iBAAiB"}
1
+ {"version":3,"file":"table-layout.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-layout.ts"],"mappings":";;;;qBAKa;;wBAoFG,eACf,WAAW,eACX,gBACA,6BACA,gCACE;;wBAYa,eAAe,WAAW,eAAe,iBAAiB;;wBAW1D,kBACf,WAAW,eACX,gBACA,4BACA,gCACE;;wBAmBa,kBAAkB,WAAW,eAAe,iBAAiB"}
@@ -1,3 +1,19 @@
1
+ /**
2
+ * table-merge.ts - framework-agnostic table cell merge / split / selection math.
3
+ *
4
+ * Pure operations over the structured {@link PptxTableData} model: compute the
5
+ * bounding rectangle of a cell selection, expand it to cover any merge groups
6
+ * it overlaps, validate whether a selection can be merged or a cell split, and
7
+ * produce new (immutable) `PptxTableData` copies with the merge/split applied.
8
+ *
9
+ * Consolidated from the React viewer's:
10
+ * - `viewer/utils/table-merge-core.ts` → merge / split + rect helpers
11
+ * - `viewer/utils/table-selection-utils.ts` → selection rect / enumeration
12
+ *
13
+ * No framework imports - consumed by every binding (each re-exports these
14
+ * symbols through its own thin shim so colocated consumers keep their import
15
+ * paths unchanged).
16
+ */
1
17
  import { PptxTableData } from "ooxml-core/pptx";
2
18
  /** A cell coordinate within a table (0-based). */
3
19
  export interface CellCoord {
@@ -1 +1 @@
1
- {"version":3,"file":"table-merge.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-merge.ts"],"mappings":";;iBAyBiB;EAChB;EACA;;;iBAIgB;EAChB;EACA;EACA;EACA;;;;;;wBAWe,oBAAoB,OAAO,cAAc;;;;;;;;wBAmCzC,4BAA4B,MAAM,UAAU,WAAW,gBAAgB;;;;;;;wBAwFvE,cAAc,OAAO,aAAa,WAAW;;;;wBAmC7C,aAAa,aAAa,aAAa,WAAW;;;;;;;;;wBAsBlD,WAAW,OAAO,aAAa,WAAW,gBAAgB;;;;;;;;;wBA+G1D,UAAU,aAAa,aAAa,WAAW,gBAAgB;;;;;;wBAyD/D,qBACf,mBACA,mBACA,mBACA,mBACA,WAAW,gBACT;;wBAWa,YAAY,MAAM,WAAW;;wBAW7B,aAAa,aAAa,aAAa,MAAM"}
1
+ {"version":3,"file":"table-merge.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-merge.ts"],"mappings":";;;;;;;;;;;;;;;;;;iBAyBiB;EAChB;EACA;;;iBAIgB;EAChB;EACA;EACA;EACA;;;;;;wBAWe,oBAAoB,OAAO,cAAc;;;;;;;;wBAmCzC,4BAA4B,MAAM,UAAU,WAAW,gBAAgB;;;;;;;wBAwFvE,cAAc,OAAO,aAAa,WAAW;;;;wBAmC7C,aAAa,aAAa,aAAa,WAAW;;;;;;;;;wBAsBlD,WAAW,OAAO,aAAa,WAAW,gBAAgB;;;;;;;;;wBA+G1D,UAAU,aAAa,aAAa,WAAW,gBAAgB;;;;;;wBAyD/D,qBACf,mBACA,mBACA,mBACA,mBACA,WAAW,gBACT;;wBAWa,YAAY,MAAM,WAAW;;wBAW7B,aAAa,aAAa,aAAa,MAAM"}
@@ -1,3 +1,16 @@
1
+ /**
2
+ * A pure decision function for the table-style DEFINITION editor: given a
3
+ * loaded `ParsedTableStyleEntry` and the part the user has selected (one of
4
+ * the 13 `CT_TableStyle` sections, or the synthetic `'background'` part for
5
+ * `a:tblBg`), {@link describeTableStyleEditor} returns a framework-neutral
6
+ * descriptor of that part's editable fields (fill colour/ref, text
7
+ * bold/italic/underline/colour, per-side borders including both diagonals,
8
+ * and the rarely-used cell3D bevel). Every binding (react/vue/angular/
9
+ * svelte/vanilla) maps this descriptor onto its own template; none of them
10
+ * re-derive which facet lives on which section.
11
+ *
12
+ * @module render/table-style-editor-descriptor
13
+ */
1
14
  import { TableStyleBorderSide, TableStyleEditorPartId } from "./table-style-editor-parts.js";
2
15
  import { ParsedTableStyleEntry, ParsedTableStyleFill, PptxThemeColorRef } from "ooxml-core/pptx";
3
16
  /** A colour shown/edited by the panel: always a paintable hex, plus the theme ref when one applies. */
@@ -1 +1 @@
1
- {"version":3,"file":"table-style-editor-descriptor.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-descriptor.ts"],"mappings":";;;iBA6BiB;WACP;WACA,KAAK;;;iBAIE;WACP,OAAO;WACP;;WAEA;;;iBAIO;WACP;WACA;WACA;WACA,OAAO;WACP;;;iBAIO;WACP,OAAO;WACP;WACA;WACA;WACA;;YAGE,+BAA+B,SAC1C,OAAO,sBAAsB;;iBAIb;WACP;WACA;WACA;WACA;;;iBAIO;WACP;WACA;WACA,cAAc;;WAEd;WACA,MAAM;WACN,MAAM;WACN,SAAS;WACT,QAAQ;;;wBA+BF,YAAY,aAAa,KAAK,gCAAgC;;;;;wBAiG9D,yBACf,OAAO,mCACP,cAAc,wBACd,eAAe,SAAS,sCACtB"}
1
+ {"version":3,"file":"table-style-editor-descriptor.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-descriptor.ts"],"mappings":";;;;;;;;;;;;;;;;iBA6BiB;WACP;WACA,KAAK;;;iBAIE;WACP,OAAO;WACP;;WAEA;;;iBAIO;WACP;WACA;WACA;WACA,OAAO;WACP;;;iBAIO;WACP,OAAO;WACP;WACA;WACA;WACA;;YAGE,+BAA+B,SAC1C,OAAO,sBAAsB;;iBAIb;WACP;WACA;WACA;WACA;;;iBAIO;WACP;WACA;WACA,cAAc;;WAEd;WACA,MAAM;WACN,MAAM;WACN,SAAS;WACT,QAAQ;;;wBA+BF,YAAY,aAAa,KAAK,gCAAgC;;;;;wBAiG9D,yBACf,OAAO,mCACP,cAAc,wBACd,eAAe,SAAS,sCACtB"}
@@ -1,3 +1,16 @@
1
+ /**
2
+ * The write side of the table-style DEFINITION editor: a discriminated union
3
+ * of field-level edits a binding's panel can make, and
4
+ * {@link applyTableStyleFieldEdit}, the pure function that turns one such edit
5
+ * into both an updated {@link ParsedTableStyleEntry} (for the binding to store
6
+ * locally, e.g. React's `setTableStyleMap`) and a payload shaped exactly like
7
+ * the `set_table_style_section` MCP tool's `SetTableStyleSectionParams`
8
+ * (`packages/tools/src/tools/table-style-tools.ts`), so a host that DOES have
9
+ * a `ToolContext` (the AI bridge) can run the identical mutation through that
10
+ * tool instead of duplicating its merge logic.
11
+ *
12
+ * @module render/table-style-editor-edit
13
+ */
1
14
  import { TableStyleBorderSide, TableStyleEditorPartId } from "./table-style-editor-parts.js";
2
15
  import { ParsedTableStyleBorders, ParsedTableStyleEntry, ParsedTableStyleFill, ParsedTableStyleText, PptxTableCell3D, PptxThemeColorRef, PptxThemeFormatScheme } from "ooxml-core/pptx";
3
16
  export type TableStyleEditorFieldEdit = {
@@ -1 +1 @@
1
- {"version":3,"file":"table-style-editor-edit.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-edit.ts"],"mappings":";;YA6BY;WAEA;WACA;WACA,KAAK;;WAEH;WAA2B;;WAC3B;WAA2B;;WAC3B;WAA6B;;WAC7B;WAAgC;;WAElC;WACA;WACA,KAAK;;WAGL;WACA,MAAM;WACN;WACA,KAAK;;WAEH;WAA8B,MAAM;WAA+B;;WACnE;WAA6B,MAAM;WAA+B;;WAClE;WAA6B,MAAM;WAA+B;;WAClE;WAAmC;;WACnC;WAAoC;;WACpC;WAAoC;;;iBAGjC;WACP;WACA;WACA,OAAO;WACP,OAAO;WACP,UAAU;WACV,SAAS;;iBAGF;;WAEP,OAAO;;WAEP,SAAS;;;iBAcF;;;;;;WAMP,eAAe;;;;;;;;;wBAwDT,yBACf,OAAO,uBACP,MAAM,wBACN,MAAM,2BACN,UAAS,wBACP"}
1
+ {"version":3,"file":"table-style-editor-edit.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-edit.ts"],"mappings":";;;;;;;;;;;;;;;YA6BY;WAEA;WACA;WACA,KAAK;;WAEH;WAA2B;;WAC3B;WAA2B;;WAC3B;WAA6B;;WAC7B;WAAgC;;WAElC;WACA;WACA,KAAK;;WAGL;WACA,MAAM;WACN;WACA,KAAK;;WAEH;WAA8B,MAAM;WAA+B;;WACnE;WAA6B,MAAM;WAA+B;;WAClE;WAA6B,MAAM;WAA+B;;WAClE;WAAmC;;WACnC;WAAoC;;WACpC;WAAoC;;;iBAGjC;WACP;WACA;WACA,OAAO;WACP,OAAO;WACP,UAAU;WACV,SAAS;;iBAGF;;WAEP,OAAO;;WAEP,SAAS;;;iBAcF;;;;;;WAMP,eAAe;;;;;;;;;wBAwDT,yBACf,OAAO,uBACP,MAAM,wBACN,MAAM,2BACN,UAAS,wBACP"}
@@ -1,3 +1,13 @@
1
+ /**
2
+ * The 14 named parts a table style DEFINITION can be edited section-by-section:
3
+ * the 13 `CT_TableStyle` regions (`TABLE_STYLE_PART_SEQUENCE`, from core) plus
4
+ * the table-level `a:tblBg` background, which core models as a distinct field
5
+ * (`ParsedTableStyleEntry.tableBackground`) rather than a 14th
6
+ * `TableStylePartName`. Every binding's table-style editor UI walks this one
7
+ * list so a part's label and picker position are fixed in a single place.
8
+ *
9
+ * @module render/table-style-editor-parts
10
+ */
1
11
  import { TableStylePartName } from "ooxml-core/pptx";
2
12
  /** A real `TableStylePartName`, plus the synthetic `'background'` part for `a:tblBg`. */
3
13
  export type TableStyleEditorPartId = TableStylePartName | 'background';
@@ -1 +1 @@
1
- {"version":3,"file":"table-style-editor-parts.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-parts.ts"],"mappings":";;YAcY,yBAAyB;;iBAGpB;WACP,IAAI;WACJ;;;;;;;;qBASG,mCAAmC;;wBAkBhC,qBAAqB,IAAI,yBAAyB,MAAM;;qBAK3D;YAWD,+BAA+B;;qBAG9B,oCAAoC,SAAS,OAAO;;qBAYpD"}
1
+ {"version":3,"file":"table-style-editor-parts.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-parts.ts"],"mappings":";;;;;;;;;;;;YAcY,yBAAyB;;iBAGpB;WACP,IAAI;WACJ;;;;;;;;qBASG,mCAAmC;;wBAkBhC,qBAAqB,IAAI,yBAAyB,MAAM;;qBAK3D;YAWD,+BAA+B;;qBAG9B,oCAAoC,SAAS,OAAO;;qBAYpD"}
@@ -1,3 +1,23 @@
1
+ /**
2
+ * Pure state-transition helpers for the table style DEFINITION editor's
3
+ * persistence plumbing: turning an editor "map changed" / "delete style"
4
+ * event into the next `{ tableStyleMap, tableStylesToDelete }` pair a
5
+ * binding's mutable viewer state should hold, and picking the three
6
+ * `ppt/tableStyles.xml` save option fields (`tableStyles`,
7
+ * `tableStylesDefaultId`, `tableStylesToDelete` on `PptxHandlerSaveOptions`)
8
+ * off that state for every `handler.save(...)` / `saveDeckWithPassword(...)`
9
+ * call.
10
+ *
11
+ * Deleting a style adds its id to `tableStylesToDelete` because core needs a
12
+ * separate opt-in list: a style id merely absent from `tableStyles` is
13
+ * "untouched", not "delete" (see `PptxHandlerSaveOptions.tableStyles`'s own
14
+ * doc comment in `ooxml-core/src/pptx/core/core/types.ts`). Adding a style
15
+ * back under the same id (e.g. re-creating one with the same GUID) drops it
16
+ * back out of `tableStylesToDelete`, since at that point it is no longer
17
+ * meant to be removed on save.
18
+ *
19
+ * @module render/table-style-map-edits
20
+ */
1
21
  import { DeckSaveOptions } from "./deck-save-encryption.js";
2
22
  import { ParsedTableStyleMap } from "ooxml-core/pptx";
3
23
  export interface TableStyleMapEditState {
@@ -1 +1 @@
1
- {"version":3,"file":"table-style-map-edits.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-map-edits.ts"],"mappings":";;iBAwBiB;WACP,eAAe;WACf;;iBAGO;WACP,eAAe;WACf;;;;;;;;wBASM,yBACf,OAAO,wBACP,SAAS,sBACP;;;;;;wBAYa,sBACf,OAAO,wBACP,kBACE;iBAWc;WACP,eAAe;WACf;WACA;;YAGE,wBAAwB,KACnC;;;;;;;;;wBAYe,sBAAsB,OAAO,6BAA6B;;;;;;;;;wBAkB1D,2BAA2B;EAAoB"}
1
+ {"version":3,"file":"table-style-map-edits.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-map-edits.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAwBiB;WACP,eAAe;WACf;;iBAGO;WACP,eAAe;WACf;;;;;;;;wBASM,yBACf,OAAO,wBACP,SAAS,sBACP;;;;;;wBAYa,sBACf,OAAO,wBACP,kBACE;iBAWc;WACP,eAAe;WACf;WACA;;YAGE,wBAAwB,KACnC;;;;;;;;;wBAYe,sBAAsB,OAAO,6BAA6B;;;;;;;;;wBAkB1D,2BAA2B;EAAoB"}
@@ -1,4 +1,5 @@
1
- import { r as TextSegment } from "../../chunks/text-t_wJ2OwM.js";
1
+ import { wc as TextSegment } from "../../chunks/presentation-Be108jrz.js";
2
+ import "../../chunks/index-cJSPBkU1.js";
2
3
  /** The boolean run decorations the ribbon toggles. */
3
4
  export type TextDecorationFlag = 'bold' | 'italic' | 'underline' | 'strikethrough';
4
5
  export declare const TEXT_DECORATION_FLAGS: readonly TextDecorationFlag[];
@@ -1 +1 @@
1
- {"version":3,"file":"text-content-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-content-style.ts"],"mappings":";;YAIY;qBAEC,gCAAgC;;wBAQ7B,iBAAiB,SAAS"}
1
+ {"version":3,"file":"text-content-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-content-style.ts"],"mappings":";;;YAIY;qBAEC,gCAAgC;;wBAQ7B,iBAAiB,SAAS"}
@@ -1,5 +1,5 @@
1
- import { i as TextStyle } from "../../chunks/text-t_wJ2OwM.js";
2
- import { _ as PptxElementWithText, m as PptxElement } from "../../chunks/elements-B4Z6N-Gz.js";
1
+ import { At as PptxElementWithText, Dt as PptxElement, Tc as TextStyle } from "../../chunks/presentation-Be108jrz.js";
2
+ import "../../chunks/index-cJSPBkU1.js";
3
3
  /** Immutable whole-text edit, using the pre-edit body style for run inheritance. */
4
4
  export declare function textRunsStylePatch(element: PptxElement, updates: Partial<TextStyle>): Pick<Partial<PptxElementWithText>, 'textStyle' | 'textSegments'>;
5
5
  //# sourceMappingURL=text-runs-style-patch.d.ts.map
@@ -1,3 +1,26 @@
1
+ /**
2
+ * THE shared predicate for "is this text segment a paragraph SEPARATOR",
3
+ * i.e. not renderable content of either paragraph it sits between.
4
+ *
5
+ * A segment produced by a post-edit remap is tagged `isParagraphBreak: true`
6
+ * explicitly. A segment produced by the initial slide-load parser
7
+ * (`PptxHandlerRuntimeShapeParagraphContentParsing` in `ooxml-core/pptx`)
8
+ * instead carries a bare `text: '\n'` with NO flag at all: the parser only
9
+ * tags a soft `<a:br/>` line break within a paragraph (`isLineBreak: true`,
10
+ * ALSO `text: '\n'`), never the terminator between two `<a:p>` paragraphs.
11
+ * Both shapes have to be recognised as "this is a break, not a glyph":
12
+ * checking `isParagraphBreak` alone misses the (far more common) slide-load
13
+ * case entirely.
14
+ *
15
+ * Every caller that groups a segment list into paragraphs must use this, not
16
+ * a local `isParagraphBreak` check: `text-warp.ts`'s `groupIntoParagraphs`
17
+ * used to check only `isParagraphBreak`, so a freshly-loaded (never
18
+ * edit-remapped) multi-paragraph WordArt block never split at all - its
19
+ * bare `'\n'` separator fell into the first paragraph's own run list and was
20
+ * measured and rendered as its own glyph, which also flipped the vertical
21
+ * ordering of a multi-line envelope (`buildGlyphEnvelope`'s `lineIndex`/
22
+ * `lineCount` slicing assumes ONE paragraph per line).
23
+ */
1
24
  import { TextSegment } from "ooxml-core/pptx";
2
25
  export declare function isParagraphSeparatorSegment(segment: TextSegment): boolean;
3
26
  //# sourceMappingURL=text-segment-paragraph-break.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-segment-paragraph-break.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-segment-paragraph-break.ts"],"mappings":";wBAyBgB,4BAA4B,SAAS"}
1
+ {"version":3,"file":"text-segment-paragraph-break.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-segment-paragraph-break.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;wBAyBgB,4BAA4B,SAAS"}
@@ -1,5 +1,23 @@
1
- import { i as TextStyle, r as TextSegment } from "../../chunks/text-t_wJ2OwM.js";
2
- import { m as PptxElement } from "../../chunks/elements-B4Z6N-Gz.js";
1
+ /**
2
+ * Which `TextStyle` keys belong to the text BODY and which to a RUN.
3
+ *
4
+ * `TextStyle` is one bag for three OOXML levels (`a:bodyPr`, `a:pPr`, `a:rPr`).
5
+ * The block builder (`text-block-style.ts`, `text-body-layout.ts`) reads the
6
+ * body-level keys from `element.textStyle` only; a run's style never carries
7
+ * them anywhere the renderer looks. So when an inline selection is active and
8
+ * a binding routes the WHOLE update through the selected runs, an Increase
9
+ * Indent (`paragraphMarginLeft`) or a vertical-alignment change lands on run
10
+ * styles nobody reads and nothing happens on screen.
11
+ *
12
+ * `splitTextStyleUpdate` partitions an update so a binding can merge the body
13
+ * half into `element.textStyle` regardless of selection and scope only the
14
+ * run half to the selected characters. `reconcileDecorationFlags` keeps the
15
+ * body-level decoration honest after a run-scoped edit, so the block's CSS
16
+ * `text-decoration` cannot keep painting underline over a run that was just
17
+ * un-underlined.
18
+ */
19
+ import { Dt as PptxElement, Tc as TextStyle, wc as TextSegment } from "../../chunks/presentation-Be108jrz.js";
20
+ import "../../chunks/index-cJSPBkU1.js";
3
21
  import { TextDecorationFlag } from "./text-content-style.js";
4
22
  /**
5
23
  * Keys read from `element.textStyle` only: `a:bodyPr` attributes, the text
@@ -1 +1 @@
1
- {"version":3,"file":"text-style-scope.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-style-scope.ts"],"mappings":";;;;;;;;qBA8Ba,sBAAsB,kBAAkB;;wBAuDrC,mBAAmB;;iBAKlB;;EAEhB,MAAM,QAAQ;;EAEd,KAAK,QAAQ;;;wBAIE,qBAAqB,SAAS,QAAQ,aAAa;;;;;;;wBAenD,yBACf,mBAAmB,eACnB,WAAW,uBACX,gBAAgB;EACZ,WAAW;EAAW,cAAc;;;;;;;wBAqCzB,yBAAyB,SAAS,QAAQ,aAAa,QAAQ;;;;;;;;;;;;;;;wBAyB/D,4BACf,mBAAmB,eACnB,SAAS,QAAQ,YACjB,mBAAmB,yCACjB;;iBA6Cc;EAChB,eAAe;EACf;IAAqB;IAAqB;;;;;;;;;wBAS3B,yBACf,SAAS,aACT,SAAS,QAAQ,aACf,KAAK;;;;;;;wBAwBQ,uBACf,SAAS,aACT,SAAS,QAAQ,aACf"}
1
+ {"version":3,"file":"text-style-scope.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-style-scope.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;qBA8Ba,sBAAsB,kBAAkB;;wBAuDrC,mBAAmB;;iBAKlB;;EAEhB,MAAM,QAAQ;;EAEd,KAAK,QAAQ;;;wBAIE,qBAAqB,SAAS,QAAQ,aAAa;;;;;;;wBAenD,yBACf,mBAAmB,eACnB,WAAW,uBACX,gBAAgB;EACZ,WAAW;EAAW,cAAc;;;;;;;wBAqCzB,yBAAyB,SAAS,QAAQ,aAAa,QAAQ;;;;;;;;;;;;;;;wBAyB/D,4BACf,mBAAmB,eACnB,SAAS,QAAQ,YACjB,mBAAmB,yCACjB;;iBA6Cc;EAChB,eAAe;EACf;IAAqB;IAAqB;;;;;;;;;wBAS3B,yBACf,SAAS,aACT,SAAS,QAAQ,aACf,KAAK;;;;;;;wBAwBQ,uBACf,SAAS,aACT,SAAS,QAAQ,aACf"}
@@ -1,3 +1,14 @@
1
+ /**
2
+ * PPTX document-theme font + colour resolution helpers.
3
+ *
4
+ * Resolves OOXML theme font tokens (`+mj-lt`, `+mn-lt`, etc.) to actual font
5
+ * families via the theme font scheme, and computes the PowerPoint-style theme
6
+ * colour picker grid (tint/shade variants of the 12 scheme colours).
7
+ *
8
+ * Distinct from the viewer-UI `ViewerTheme` (see `pptx-viewer-shared/theme`):
9
+ * that drives the UI chrome's CSS variables; this resolves the *document's*
10
+ * theme as parsed from `ppt/theme/themeN.xml`.
11
+ */
1
12
  import { PptxTheme, PptxThemeColorScheme, PptxThemeFontScheme } from "ooxml-core/pptx";
2
13
  /**
3
14
  * Resolve OOXML theme font tokens (`+mj-lt`, `+mn-lt`, etc.) to actual font
@@ -1 +1 @@
1
- {"version":3,"file":"text-theme.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-theme.ts"],"mappings":";;;;;;;wBAuBgB,iBACf,gCACA,YAAY;;;;;;;wBAqDG,UAAU,aAAa;;;;;;;wBAevB,WAAW,aAAa;;iBAMvB;;EAEhB;;EAEA;;EAEA,YAAY;;;;;;;;;;;qBAYA,uBAAuB,cAAc;;;;;;;;qBAoCrC,oBAAoB,aAAa;;;;;;;;;;wBAwB9B,oBACf,aAAa,sBACb,aAAa,yBACX,MACF;EACC;EACA,iBAAiB;EACjB;EACA;;;;;;wBAmBc,gBACf,WAAW,sBACX,aAAa;;;;;wBAWE,2BAA2B,OAAO"}
1
+ {"version":3,"file":"text-theme.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-theme.ts"],"mappings":";;;;;;;;;;;;;;;;;;wBAuBgB,iBACf,gCACA,YAAY;;;;;;;wBAqDG,UAAU,aAAa;;;;;;;wBAevB,WAAW,aAAa;;iBAMvB;;EAEhB;;EAEA;;EAEA,YAAY;;;;;;;;;;;qBAYA,uBAAuB,cAAc;;;;;;;;qBAoCrC,oBAAoB,aAAa;;;;;;;;;;wBAwB9B,oBACf,aAAa,sBACb,aAAa,yBACX,MACF;EACC;EACA,iBAAiB;EACjB;EACA;;;;;;wBAmBc,gBACf,WAAW,sBACX,aAAa;;;;;wBAWE,2BAA2B,OAAO"}
@@ -1,3 +1,12 @@
1
+ /**
2
+ * Theme-editor option data: the built-in Office preset palettes, the font
3
+ * dropdown list and the fallback scheme used to seed missing slots.
4
+ *
5
+ * This is pure data every binding's "Edit theme" panel needs (React, Vue,
6
+ * Angular, Svelte, Vanilla all render the same 12 colour slots and the same
7
+ * preset gallery), so it lives here rather than being copy-pasted per binding:
8
+ * a palette fixed in one binding must not silently differ in another.
9
+ */
1
10
  import { PptxThemeColorScheme } from "ooxml-core/pptx";
2
11
  export interface PresetTheme {
3
12
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"theme-editor-presets.d.ts","names":[],"sources":["../../../../pptx/editor/render/theme-editor-presets.ts"],"mappings":";iBAeiB;EAChB;EACA,aAAa;EACb;EACA;;qBAGY,eAAe;;;;;qBAqMf,4BAA4B;qBAM5B"}
1
+ {"version":3,"file":"theme-editor-presets.d.ts","names":[],"sources":["../../../../pptx/editor/render/theme-editor-presets.ts"],"mappings":";;;;;;;;;;iBAeiB;EAChB;EACA,aAAa;EACb;EACA;;qBAGY,eAAe;;;;;qBAqMf,4BAA4B;qBAM5B"}
@@ -1,4 +1,5 @@
1
- import { i as TextStyle, r as TextSegment } from "../../chunks/text-t_wJ2OwM.js";
1
+ import { Tc as TextStyle, wc as TextSegment } from "../../chunks/presentation-Be108jrz.js";
2
+ import "../../chunks/index-cJSPBkU1.js";
2
3
  /**
3
4
  * Keep a runless paragraph's future body formatting in the same style edit.
4
5
  * `options.inherited` is the text box style the run inherits unset fields
@@ -1 +1 @@
1
- {"version":3,"file":"update-text-segment-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/update-text-segment-style.ts"],"mappings":";;;;;;;wBAUgB,uBACf,SAAS,aACT,SAAS,QAAQ,YACjB;EAAW;EAA2B,YAAY;IAChD"}
1
+ {"version":3,"file":"update-text-segment-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/update-text-segment-style.ts"],"mappings":";;;;;;;;wBAUgB,uBACf,SAAS,aACT,SAAS,QAAQ,YACjB;EAAW;EAA2B,YAAY;IAChD"}