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
@@ -0,0 +1,185 @@
1
+ import { At as PptxElementWithText, Dt as PptxElement, Ft as ShapePptxElement, Mt as PptxImageLikeElement, Vt as ZoomPptxElement, _ as PptxSlide, bt as InkPptxElement, ht as ConnectorPptxElement, kt as PptxElementWithShapeStyle, rt as PptxThemeColorScheme, st as PptxThemeFontScheme, zt as TextPptxElement } from "./presentation-Be108jrz.js";
2
+ import "./color-ref-CwUQoKPJ.js";
3
+ /**
4
+ * Narrows a {@link PptxElement} to {@link TextPptxElement}.
5
+ *
6
+ * @param element - Any PPTX element.
7
+ * @returns `true` when `element.type === "text"`.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * if (isTextElement(el)) {
12
+ * // => true when el.type === "text"
13
+ * console.log(el.text, el.textSegments);
14
+ * }
15
+ * ```
16
+ */
17
+ declare function isTextElement(element: PptxElement): element is TextPptxElement;
18
+ /**
19
+ * Narrows a {@link PptxElement} to {@link ShapePptxElement}.
20
+ *
21
+ * @param element - Any PPTX element.
22
+ * @returns `true` when `element.type === "shape"`.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * if (isShapeElement(el)) {
27
+ * // => true when el.type === "shape"
28
+ * console.log(el.shapeType, el.shapeStyle);
29
+ * }
30
+ * ```
31
+ */
32
+ declare function isShapeElement(element: PptxElement): element is ShapePptxElement;
33
+ /**
34
+ * Narrows a {@link PptxElement} to {@link ConnectorPptxElement}.
35
+ *
36
+ * @param element - Any PPTX element.
37
+ * @returns `true` when `element.type === "connector"`.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * if (isConnectorElement(el)) {
42
+ * // => true when el.type === "connector"
43
+ * console.log(el.connectionStart, el.connectionEnd);
44
+ * }
45
+ * ```
46
+ */
47
+ declare function isConnectorElement(element: PptxElement): element is ConnectorPptxElement;
48
+ /**
49
+ * Narrows a {@link PptxElement} to {@link PptxImageLikeElement}
50
+ * (image or picture).
51
+ *
52
+ * @param element - Any PPTX element.
53
+ * @returns `true` when `element.type` is `"image"` or `"picture"`.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * if (isImageLikeElement(el)) {
58
+ * // => true when el.type === "image" or "picture"
59
+ * console.log(el.imagePath, el.altText);
60
+ * }
61
+ * ```
62
+ */
63
+ declare function isImageLikeElement(element: PptxElement): element is PptxImageLikeElement;
64
+ /**
65
+ * Narrows a {@link PptxElement} to {@link InkPptxElement}.
66
+ *
67
+ * @param element - Any PPTX element.
68
+ * @returns `true` when `element.type === "ink"`.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * if (isInkElement(el)) {
73
+ * // => true when el.type === "ink"
74
+ * console.log(el.inkSvg);
75
+ * }
76
+ * ```
77
+ */
78
+ declare function isInkElement(element: PptxElement): element is InkPptxElement;
79
+ /**
80
+ * Narrows a {@link PptxElement} to {@link ZoomPptxElement}.
81
+ *
82
+ * @param element - Any PPTX element.
83
+ * @returns `true` when `element.type === "zoom"`.
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * if (isZoomElement(el)) {
88
+ * // => true when el.type === "zoom"
89
+ * console.log(el.zoomType, el.targetSlideIndex);
90
+ * }
91
+ * ```
92
+ */
93
+ declare function isZoomElement(element: PptxElement): element is ZoomPptxElement;
94
+ /**
95
+ * Narrows to elements that have `text`, `textStyle`, and `textSegments`
96
+ * properties (text, shape, or connector elements).
97
+ *
98
+ * @param element - Any PPTX element.
99
+ * @returns `true` when the element carries text properties.
100
+ *
101
+ * @example
102
+ * ```ts
103
+ * if (hasTextProperties(el)) {
104
+ * // => true for text, shape, or connector elements
105
+ * console.log(el.text, el.textStyle, el.textSegments);
106
+ * }
107
+ * ```
108
+ */
109
+ declare function hasTextProperties(element: PptxElement): element is PptxElementWithText;
110
+ /**
111
+ * Narrows to elements that have `shapeStyle`, `shapeType`, and
112
+ * `shapeAdjustments` properties (text, shape, connector, image, or picture).
113
+ *
114
+ * @param element - Any PPTX element.
115
+ * @returns `true` when the element carries shape-style properties.
116
+ *
117
+ * @example
118
+ * ```ts
119
+ * if (hasShapeProperties(el)) {
120
+ * // => true for text, shape, connector, image, or picture elements
121
+ * console.log(el.shapeStyle, el.shapeType);
122
+ * }
123
+ * ```
124
+ */
125
+ declare function hasShapeProperties(element: PptxElement): element is PptxElementWithShapeStyle;
126
+ /**
127
+ * A complete theme preset that can be applied to a presentation.
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * import { THEME_PRESETS } from "pptx-viewer-core";
132
+ *
133
+ * const office = THEME_PRESETS.find(p => p.id === "office");
134
+ * await handler.switchTheme(office.colorScheme, office.fontScheme, office.name);
135
+ * ```
136
+ */
137
+ interface PptxThemePreset {
138
+ /** Unique identifier for the preset. */
139
+ id: string;
140
+ /** Human-readable display name. */
141
+ name: string;
142
+ /** The 12-colour scheme. */
143
+ colorScheme: PptxThemeColorScheme;
144
+ /** Heading and body font families. */
145
+ fontScheme: PptxThemeFontScheme;
146
+ }
147
+ /**
148
+ * All built-in theme presets.
149
+ *
150
+ * @example
151
+ * ```ts
152
+ * import { THEME_PRESETS } from "pptx-viewer-core";
153
+ *
154
+ * // List available theme names
155
+ * console.log(THEME_PRESETS.map(p => p.name));
156
+ * // => ["Office", "Facet", "Integral", "Ion", "Organic", "Retrospect", "Slate", "Metropolitan"]
157
+ *
158
+ * // Apply a preset
159
+ * const preset = THEME_PRESETS.find(p => p.id === "ion");
160
+ * if (preset) {
161
+ * await handler.switchTheme(preset.colorScheme, preset.fontScheme, preset.name);
162
+ * }
163
+ * ```
164
+ */
165
+ declare const THEME_PRESETS: readonly PptxThemePreset[];
166
+ /** Union of every key present on any `PptxElement` variant (not just the common base). */
167
+ type AnyElementKey = PptxElement extends (infer E) ? (E extends object ? keyof E : never) : never;
168
+ /**
169
+ * How a codec should carry a field across the wire:
170
+ * - `scalar`: primitive-ish value written/read as-is (`ymap.set(key, value)`).
171
+ * - `complex`: structured value serialized as a JSON-string blob.
172
+ * - `asset`: binary/base64 payload that a live-collaboration transport
173
+ * should route through a separate asset map instead of embedding inline
174
+ * (see `pptx-viewer-shared`'s `collaboration-assets.ts`); a full-file
175
+ * codec like `pptx-codec.ts` may still embed it as a JSON blob.
176
+ * - `text`: rich text handled via a dedicated `Y.Text`/delta codec, not the
177
+ * scalar/complex JSON path.
178
+ * - `nested`: a nested collection (e.g. a slide's `elements`) built as its
179
+ * own Y.Array of Y.Maps via the same codec, not a JSON blob.
180
+ */
181
+ type CollabFieldKind = 'scalar' | 'complex' | 'asset' | 'text' | 'nested';
182
+ declare const ELEMENT_FIELD_KIND: Record<AnyElementKey, CollabFieldKind>;
183
+ declare const SLIDE_FIELD_KIND: Record<keyof PptxSlide, CollabFieldKind>;
184
+ export { THEME_PRESETS as a, isConnectorElement as c, isShapeElement as d, isTextElement as f, PptxThemePreset as i, isImageLikeElement as l, ELEMENT_FIELD_KIND as n, hasShapeProperties as o, isZoomElement as p, SLIDE_FIELD_KIND as r, hasTextProperties as s, CollabFieldKind as t, isInkElement as u };
185
+ //# sourceMappingURL=index-cJSPBkU1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-cJSPBkU1.d.ts","names":[],"sources":["../../../pptx/core/types/type-guards.ts","../../../pptx/core/types/theme-presets.ts","../../../pptx/core/types/collaboration-field-schema.ts"],"mappings":";;;;;;;;;;;;;;;;iBAoCgB,cAAc,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;iBAkBhD,eAAe,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;iBAkBjD,mBAAmB,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;;iBAmBrD,mBAAmB,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;iBAkBrD,aAAa,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;iBAkB/C,cAAc,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;;iBAmBhD,kBAAkB,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;;iBAmBpD,mBAAmB,SAAS,cAAc,WAAW;;;;;;;;;;;;UCrIpD;;EAEhB;;EAEA;;EAEA,aAAa;;EAEb,YAAY;;;;;;;;;;;;;;;;;;;;cAyOA,wBAAwB;;KC1PhC,gBAAgB,2BAA0B,MAAK,yBAAyB;;;;;;;;;;;;;;KAejE;cAEC,oBAAoB,OAAO,eAAe;cAuL1C,kBAAkB,aAAa,WAAW"}
@@ -0,0 +1,94 @@
1
+ import "./index-7tA9HqRL.js";
2
+ import "./index-CAzt1jbx.js";
3
+ import "./index-cJSPBkU1.js";
4
+ type SnapshotMergeResult = {
5
+ status: 'merged';
6
+ bytes: Uint8Array;
7
+ } | {
8
+ status: 'unresolved';
9
+ issues: readonly string[];
10
+ };
11
+ /**
12
+ * Merge independent edits to source-backed PPTX snapshots sharing a common base. Stable cNvPr
13
+ * shape IDs align text and geometry/property edits without replacing unrelated slide content.
14
+ * Repeated unkeyed text structures require unchanged alignment; ambiguous edits stay unresolved.
15
+ * This is snapshot reconciliation, not a replacement for a live collaboration operation log.
16
+ */
17
+ declare function mergePptxSnapshots(base: Uint8Array, local: Uint8Array, remote: Uint8Array): Promise<SnapshotMergeResult>;
18
+ /** Bounded text-only inspection for hosts; binary media never enters the AI context. */
19
+ declare function inspectPresentationText(bytes: Uint8Array): Promise<{
20
+ slides: {
21
+ index: number;
22
+ elements: {
23
+ id: string;
24
+ type: "connector" | "shape" | "text";
25
+ text: string;
26
+ runs: {
27
+ runIndex: number;
28
+ text: string;
29
+ }[] | undefined;
30
+ }[];
31
+ }[];
32
+ }>;
33
+ /** Change one existing run and preserve all other runs, styles and document parts. */
34
+ declare function setPresentationRunText(bytes: Uint8Array, slideIndex: number, elementId: string, runIndex: number, text: string): Promise<Uint8Array<ArrayBufferLike>>;
35
+ interface PresentationOutlineSlide {
36
+ title: string;
37
+ /** Body paragraphs, drawn as a bulleted list under the title. */
38
+ bullets?: readonly string[];
39
+ notes?: string;
40
+ }
41
+ /**
42
+ * A new 16:9 deck from slide titles and bullet points: a title slide when the first entry has no
43
+ * bullets, then one title-and-content slide per entry. Text boxes stay ordinary editable text.
44
+ */
45
+ declare function createPresentationFromOutline(slides: readonly PresentationOutlineSlide[], options?: {
46
+ title?: string;
47
+ }): Promise<Uint8Array>;
48
+ /**
49
+ * Route the ELEMENT-scope paragraph geometry to the slot OOXML actually
50
+ * provides for it: `p:txBody > a:lstStyle > a:lvl1pPr`.
51
+ *
52
+ * ## The problem this solves
53
+ *
54
+ * `element.textStyle` carries one alignment, one `marL`/`indent`, one line
55
+ * spacing and one space-before/after for the whole text body. That is a
56
+ * *shape-level* statement, but the writer had nowhere to put it except each
57
+ * paragraph's own `a:pPr`, so it stamped all of them. Two things went wrong:
58
+ *
59
+ * 1. Values the loader had merely RESOLVED (from the shape's `a:lstStyle`, the
60
+ * layout placeholder, the master `p:txStyles`) came back as explicitly
61
+ * authored per-paragraph values, so re-theming or re-laying-out the deck in
62
+ * PowerPoint no longer moved the text.
63
+ * 2. Stamping beat per-paragraph inheritance: a level-3 bullet was re-indented
64
+ * to whatever `marL` the shape had resolved for level 1.
65
+ *
66
+ * A sibling closed most of (2) by only writing a key the paragraph itself
67
+ * authored, but could not close the last case: a level-0 paragraph with no
68
+ * `a:pPr` at all is indistinguishable, at the `a:pPr` writer, from SDK-built
69
+ * text where the element style is the ONLY description of the paragraph. One
70
+ * needs the value dropped, the other needs it written.
71
+ *
72
+ * ## Why `a:lstStyle` resolves it
73
+ *
74
+ * The dilemma is an artefact of writing shape-scope state into paragraph
75
+ * scope. `a:lstStyle/a:lvl1pPr` IS shape scope: it sits above the
76
+ * layout/master cascade and below any paragraph's own `a:pPr`
77
+ * (ECMA-376 §21.1.2.4.12), so writing it once
78
+ *
79
+ * - keeps an element-level edit (the shared `textAdvancedPatch` / `alignPatch`
80
+ * panels write ONLY `element.textStyle`, never `segment.paragraphProperties`,
81
+ * so dropping it would silently discard the user's change),
82
+ * - leaves every level above 1 to inherit exactly as authored,
83
+ * - leaves each paragraph's own `a:pPr` to override it, and
84
+ * - stops repeating the same statement on every paragraph of the body.
85
+ */
86
+ /**
87
+ * Paragraph-scope keys that describe the WHOLE body rather than one paragraph,
88
+ * i.e. everything `buildParagraphPropertiesXml` can emit from an element-level
89
+ * style. `a:defRPr` and `a:extLst` are deliberately absent: they are opaque
90
+ * subtrees captured per paragraph and are left on the paragraph writer.
91
+ */
92
+ declare const ELEMENT_PARAGRAPH_GEOMETRY_KEYS: readonly ["align", "rtl", "paragraphMarginLeft", "paragraphMarginRight", "paragraphIndent", "defaultTabSize", "eaLineBreak", "latinLineBreak", "fontAlignment", "hangingPunctuation", "lineSpacing", "lineSpacingExactPt", "paragraphSpacingBefore", "paragraphSpacingAfter", "tabStops"];
93
+ export { setPresentationRunText as a, inspectPresentationText as i, PresentationOutlineSlide as n, mergePptxSnapshots as o, createPresentationFromOutline as r, ELEMENT_PARAGRAPH_GEOMETRY_KEYS as t };
94
+ //# sourceMappingURL=index-cr_sgz1w.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-cr_sgz1w.d.ts","names":[],"sources":["../../../opc/merge-snapshots.ts","../../../pptx/merge-snapshots.ts","../../../pptx/core/utils/suite-text.ts","../../../pptx/core/core/runtime/element-paragraph-geometry.ts"],"mappings":";;;KAIY;EACP;EAAkB,OAAO;;EACzB;EAAsB;;;;;;;;iBCqBX,mBACf,MAAM,YACN,OAAO,YACP,QAAQ,aACN,QAAQ;;iBC5BW,wBAAwB,OAAO,aAAU;;;;;;;;;;;;;;;iBA4BzC,uBACrB,OAAO,YACP,oBACA,mBACA,kBACA,eAAY,QAAA,WAAA;UAqBI;EAChB;;EAEA;EACA;;;;;;iBAOqB,8BACrB,iBAAiB,4BACjB;EAAW;IACT,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCxBE"}