@officedk/pptxdk 0.1.0 → 0.2.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 (338) hide show
  1. package/dist/build.d.ts +14 -76
  2. package/dist/build.js +69 -97
  3. package/dist/cli.js +1 -1
  4. package/dist/core/dist/capabilities/audio/audio-declaration.js +7 -0
  5. package/dist/core/dist/capabilities/audio/audio-source.js +172 -0
  6. package/dist/core/dist/capabilities/audio/entry.js +122 -0
  7. package/dist/core/dist/capabilities/box/box-codegen.js +83 -0
  8. package/dist/core/dist/capabilities/box/box-declaration.js +32 -0
  9. package/dist/{capabilities/dist → core/dist/capabilities}/box/box.js +32 -29
  10. package/dist/core/dist/capabilities/box/entry.js +2 -0
  11. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-codegen.js +17 -22
  12. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-declaration.js +2 -2
  13. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-import.js +1025 -471
  14. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-labels.js +30 -3
  15. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-model.js +3 -3
  16. package/dist/{capabilities/dist/chart/preview/number-format.js → core/dist/capabilities/chart/chart-number-format.js} +1 -1
  17. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-schemas.js +216 -212
  18. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-xml.js +41 -36
  19. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart.js +228 -171
  20. package/dist/core/dist/capabilities/chart/entry.js +2 -0
  21. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/axes-and-grid.js +23 -10
  22. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/bar-column.js +1 -1
  23. package/dist/core/dist/capabilities/chart/preview/data-labels.js +474 -0
  24. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/error-bars.js +3 -1
  25. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/index.js +30 -9
  26. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/layout.js +160 -89
  27. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/legend.js +4 -4
  28. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/line-area.js +4 -4
  29. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/markers.js +1 -1
  30. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/pie-doughnut.js +39 -60
  31. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/scales.js +1 -1
  32. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/scatter.js +3 -3
  33. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/style.js +15 -3
  34. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/text-render.js +34 -24
  35. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/trendlines.js +5 -5
  36. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/types.js +1 -1
  37. package/dist/core/dist/capabilities/comment/comment-codegen.js +25 -0
  38. package/dist/core/dist/capabilities/comment/comment-declaration.js +37 -0
  39. package/dist/core/dist/capabilities/comment/comment-import.js +176 -0
  40. package/dist/core/dist/capabilities/comment/comment.js +141 -0
  41. package/dist/core/dist/capabilities/comment/entry.js +1 -0
  42. package/dist/core/dist/capabilities/footer-placeholder/entry.js +2 -0
  43. package/dist/core/dist/capabilities/footer-placeholder/footer-placeholder-codegen.js +16 -0
  44. package/dist/{capabilities/dist/masters → core/dist/capabilities/footer-placeholder}/footer-placeholder.js +194 -133
  45. package/dist/core/dist/capabilities/footer-placeholder/print-header-footer-import.js +121 -0
  46. package/dist/core/dist/capabilities/footer-placeholder/print-header-footer.js +123 -0
  47. package/dist/core/dist/capabilities/group/entry.js +2 -0
  48. package/dist/core/dist/capabilities/group/group-codegen.js +73 -0
  49. package/dist/core/dist/capabilities/group/group-declaration.js +41 -0
  50. package/dist/core/dist/capabilities/group/group-import.js +608 -0
  51. package/dist/{capabilities/dist → core/dist/capabilities}/group/group-xml.js +4 -3
  52. package/dist/core/dist/capabilities/group/group.js +260 -0
  53. package/dist/core/dist/capabilities/image/entry.js +4 -0
  54. package/dist/core/dist/capabilities/image/image-codegen.js +59 -0
  55. package/dist/core/dist/capabilities/image/image-declaration.js +8 -0
  56. package/dist/core/dist/capabilities/image/image-import.js +26 -0
  57. package/dist/core/dist/capabilities/image/image.js +57 -0
  58. package/dist/core/dist/capabilities/line/entry.js +3 -0
  59. package/dist/core/dist/capabilities/line/line-codegen.js +88 -0
  60. package/dist/core/dist/capabilities/line/line-declaration.js +78 -0
  61. package/dist/core/dist/capabilities/line/line-import.js +424 -0
  62. package/dist/core/dist/capabilities/line/line-xml.js +9 -0
  63. package/dist/core/dist/capabilities/line/line.js +329 -0
  64. package/dist/core/dist/capabilities/masters/entry.js +1 -0
  65. package/dist/core/dist/capabilities/masters/masters-codegen.js +50 -0
  66. package/dist/{capabilities/dist → core/dist/capabilities}/masters/masters.js +35 -47
  67. package/dist/core/dist/capabilities/motion/entry.js +5 -0
  68. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-codegen.js +97 -51
  69. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-import.js +653 -102
  70. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-plan.js +317 -163
  71. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-query.js +9 -6
  72. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion.js +357 -108
  73. package/dist/core/dist/capabilities/notes/entry.js +2 -0
  74. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-codegen.js +5 -7
  75. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-declaration.js +2 -2
  76. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-import.js +16 -13
  77. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-schemas.js +12 -9
  78. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes.js +20 -42
  79. package/dist/{import/dist/sections.js → core/dist/capabilities/notes/sections-import.js} +5 -5
  80. package/dist/core/dist/capabilities/placeholder/entry.js +3 -0
  81. package/dist/core/dist/capabilities/placeholder/placeholder-codegen.js +44 -0
  82. package/dist/core/dist/capabilities/placeholder/placeholder-schemas.js +31 -0
  83. package/dist/core/dist/capabilities/placeholder/placeholder.js +394 -0
  84. package/dist/core/dist/capabilities/shape/entry.js +6 -0
  85. package/dist/core/dist/capabilities/shape/shape-codegen.js +112 -0
  86. package/dist/core/dist/capabilities/shape/shape-import.js +152 -0
  87. package/dist/{capabilities/dist → core/dist/capabilities}/shape/shape-xml.js +1 -1
  88. package/dist/{capabilities/dist → core/dist/capabilities}/shape/shape.js +100 -103
  89. package/dist/core/dist/capabilities/shared/container-slots.js +59 -0
  90. package/dist/core/dist/capabilities/shared/date-time.js +98 -0
  91. package/dist/core/dist/capabilities/shared/font/font-embedding.js +118 -0
  92. package/dist/core/dist/capabilities/shared/font/font-engine.js +855 -0
  93. package/dist/core/dist/capabilities/shared/font/font-import.js +805 -0
  94. package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-subset.js +24 -9
  95. package/dist/core/dist/capabilities/shared/font/font.js +72 -0
  96. package/dist/{capabilities/dist/shape/shape-codegen.js → core/dist/capabilities/shared/geometry-codegen.js} +4 -69
  97. package/dist/{capabilities/dist → core/dist/capabilities}/shared/geometry.js +384 -123
  98. package/dist/{capabilities/dist → core/dist/capabilities}/shared/identity.js +56 -38
  99. package/dist/core/dist/capabilities/shared/image-codegen.js +94 -0
  100. package/dist/{capabilities/dist/image → core/dist/capabilities/shared}/image-decode.js +17 -56
  101. package/dist/{capabilities/dist/image → core/dist/capabilities/shared}/image-schemas.js +49 -61
  102. package/dist/core/dist/capabilities/shared/line-match.js +78 -0
  103. package/dist/core/dist/capabilities/shared/media-codegen.js +86 -0
  104. package/dist/core/dist/capabilities/shared/media-import.js +156 -0
  105. package/dist/core/dist/capabilities/shared/media-placement.js +20 -0
  106. package/dist/core/dist/capabilities/shared/media-poster.js +50 -0
  107. package/dist/core/dist/capabilities/shared/media-schemas.js +60 -0
  108. package/dist/core/dist/capabilities/shared/media-source.js +107 -0
  109. package/dist/core/dist/capabilities/shared/media-trim.js +102 -0
  110. package/dist/core/dist/capabilities/shared/media.js +134 -0
  111. package/dist/{capabilities/dist → core/dist/capabilities}/shared/morph-api.js +5 -5
  112. package/dist/core/dist/capabilities/shared/motion-api.js +770 -0
  113. package/dist/core/dist/capabilities/shared/motion-schemas.js +353 -0
  114. package/dist/{capabilities/dist/image/image-import.js → core/dist/capabilities/shared/picture-import.js} +313 -168
  115. package/dist/core/dist/capabilities/shared/picture-xml.js +13 -0
  116. package/dist/core/dist/capabilities/shared/picture.js +510 -0
  117. package/dist/core/dist/capabilities/shared/placeholder-import.js +268 -0
  118. package/dist/core/dist/capabilities/shared/placeholder-roles.js +42 -0
  119. package/dist/{capabilities/dist → core/dist/capabilities}/shared/preset-definitions.js +1221 -188
  120. package/dist/core/dist/capabilities/shared/print-xml.js +77 -0
  121. package/dist/core/dist/capabilities/shared/rich-text-codegen.js +119 -0
  122. package/dist/core/dist/capabilities/shared/rich-text-import.js +472 -0
  123. package/dist/core/dist/capabilities/shared/shape-declaration.js +45 -0
  124. package/dist/{capabilities/dist → core/dist/capabilities}/shared/style-inheritance.js +26 -24
  125. package/dist/core/dist/capabilities/shared/text-declaration.js +31 -0
  126. package/dist/core/dist/capabilities/shared/text-schemas.js +241 -0
  127. package/dist/core/dist/capabilities/shared/text-service.js +2563 -0
  128. package/dist/{capabilities/dist → core/dist/capabilities}/shared/visual.js +441 -137
  129. package/dist/core/dist/capabilities/slide-background/entry.js +1 -0
  130. package/dist/core/dist/capabilities/slide-background/slide-background-codegen.js +15 -0
  131. package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background-import.js +12 -7
  132. package/dist/core/dist/capabilities/slide-background/slide-background-xml.js +33 -0
  133. package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background.js +61 -50
  134. package/dist/core/dist/capabilities/table/entry.js +2 -0
  135. package/dist/core/dist/capabilities/table/table-codegen.js +118 -0
  136. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-declaration.js +2 -2
  137. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-import.js +116 -84
  138. package/dist/core/dist/capabilities/table/table-schemas.js +337 -0
  139. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-xml.js +13 -15
  140. package/dist/{capabilities/dist → core/dist/capabilities}/table/table.js +284 -192
  141. package/dist/core/dist/capabilities/text/entry.js +3 -0
  142. package/dist/core/dist/capabilities/text/text-codegen.js +66 -0
  143. package/dist/core/dist/capabilities/text/text-import.js +468 -0
  144. package/dist/{capabilities/dist → core/dist/capabilities}/text/text-xml.js +3 -4
  145. package/dist/{capabilities/dist → core/dist/capabilities}/text/text.js +103 -111
  146. package/dist/core/dist/capabilities/transition/entry.js +3 -0
  147. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-api.js +13 -16
  148. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-codegen.js +2 -3
  149. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-import.js +25 -27
  150. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition.js +23 -23
  151. package/dist/core/dist/capabilities/video/entry.js +77 -0
  152. package/dist/core/dist/capabilities/video/video-declaration.js +7 -0
  153. package/dist/core/dist/capabilities/video/video-source.js +42 -0
  154. package/dist/{codegen/dist → core/dist/codegen}/assets.js +16 -10
  155. package/dist/{codegen/dist → core/dist/codegen}/codegen.js +152 -140
  156. package/dist/{codegen/dist → core/dist/codegen}/identifiers.js +27 -1
  157. package/dist/{codegen/dist → core/dist/codegen}/index.js +2 -2
  158. package/dist/{codegen/dist → core/dist/codegen}/printer.js +23 -4
  159. package/dist/core/dist/document/all.js +41 -0
  160. package/dist/core/dist/document/default.js +10 -0
  161. package/dist/core/dist/document/document.js +218 -0
  162. package/dist/core/dist/document/index.js +62 -0
  163. package/dist/core/dist/document/stages.js +54 -0
  164. package/dist/{emit/dist → core/dist/emit}/emit.js +173 -90
  165. package/dist/core/dist/emit/index.js +6 -0
  166. package/dist/core/dist/emit/ooxml.js +241 -0
  167. package/dist/core/dist/import/import.js +547 -0
  168. package/dist/core/dist/import/index.js +19 -0
  169. package/dist/{import/dist → core/dist/import}/masters.js +404 -328
  170. package/dist/core/dist/import/media-timing.js +233 -0
  171. package/dist/{import/dist → core/dist/import}/notes-masters.js +48 -45
  172. package/dist/core/dist/index.js +47 -15
  173. package/dist/core/dist/{author-ids.js → kernel/author-ids.js} +9 -6
  174. package/dist/core/dist/{author-schemas.js → kernel/author-schemas.js} +105 -127
  175. package/dist/core/dist/{block-flex-layout.js → kernel/block-flex-layout.js} +225 -142
  176. package/dist/core/dist/kernel/build.js +4 -0
  177. package/dist/core/dist/kernel/capability.js +17 -0
  178. package/dist/core/dist/kernel/codegen.js +97 -0
  179. package/dist/core/dist/kernel/container-slots.js +104 -0
  180. package/dist/core/dist/kernel/date-time-format.js +18 -0
  181. package/dist/core/dist/kernel/declaration-snapshot.js +68 -0
  182. package/dist/core/dist/{declaration.js → kernel/declaration.js} +3 -2
  183. package/dist/core/dist/kernel/diagnostics.js +370 -0
  184. package/dist/core/dist/kernel/document-internals.js +26 -0
  185. package/dist/core/dist/{document.js → kernel/document.js} +23 -13
  186. package/dist/core/dist/kernel/drawing-units.js +14 -0
  187. package/dist/core/dist/kernel/font-seal.js +204 -0
  188. package/dist/core/dist/{geometry-schemas.js → kernel/geometry-schemas.js} +21 -18
  189. package/dist/core/dist/{grid-layout.js → kernel/grid-layout.js} +177 -72
  190. package/dist/core/dist/{host.js → kernel/host.js} +1 -1
  191. package/dist/core/dist/kernel/index.js +24 -0
  192. package/dist/core/dist/kernel/input-values.js +62 -0
  193. package/dist/core/dist/kernel/layout-definition.js +7 -0
  194. package/dist/core/dist/{layout-protocol.js → kernel/layout-protocol.js} +5 -10
  195. package/dist/core/dist/{layout-schemas.js → kernel/layout-schemas.js} +33 -44
  196. package/dist/core/dist/kernel/layout.js +339 -0
  197. package/dist/core/dist/kernel/masters.js +171 -0
  198. package/dist/core/dist/{morph.js → kernel/morph.js} +1 -1
  199. package/dist/core/dist/kernel/placeholders.js +289 -0
  200. package/dist/{import/dist → core/dist/kernel/pptx-read}/alternate-content.js +1 -1
  201. package/dist/{import/dist → core/dist/kernel/pptx-read}/diagnostics.js +33 -29
  202. package/dist/core/dist/kernel/pptx-read/drawing-list-import.js +251 -0
  203. package/dist/{import/dist → core/dist/kernel/pptx-read}/fonts.js +71 -12
  204. package/dist/core/dist/kernel/pptx-read/index.js +15 -0
  205. package/dist/{import/dist → core/dist/kernel/pptx-read}/mechanism.js +1 -1
  206. package/dist/core/dist/kernel/pptx-read/media.js +26 -0
  207. package/dist/{import/dist → core/dist/kernel/pptx-read}/namespaces.js +6 -7
  208. package/dist/{import/dist → core/dist/kernel/pptx-read}/opc.js +62 -13
  209. package/dist/{import/dist → core/dist/kernel/pptx-read}/resources.js +1 -1
  210. package/dist/core/dist/kernel/pptx-read/shape-tree.js +57 -0
  211. package/dist/{import/dist → core/dist/kernel/pptx-read}/themes.js +182 -41
  212. package/dist/{import/dist → core/dist/kernel/pptx-read}/visual.js +175 -88
  213. package/dist/core/dist/kernel/pptx-read/xml-fragments.js +320 -0
  214. package/dist/{import/dist → core/dist/kernel/pptx-read}/xml-reader.js +8 -1
  215. package/dist/{emit/dist → core/dist/kernel/pptx-write}/shape-tree.js +1 -1
  216. package/dist/core/dist/kernel/pptx-write/timing.js +52 -0
  217. package/dist/{emit/dist/ooxml.js → core/dist/kernel/pptx-write/xml.js} +133 -290
  218. package/dist/core/dist/{query.js → kernel/query.js} +76 -37
  219. package/dist/core/dist/{resolution.js → kernel/resolution.js} +2 -1
  220. package/dist/core/dist/kernel/resolve-work.js +58 -0
  221. package/dist/core/dist/{resolve.js → kernel/resolve.js} +797 -409
  222. package/dist/core/dist/kernel/resource-source.js +11 -0
  223. package/dist/core/dist/kernel/stage-options.js +312 -0
  224. package/dist/core/dist/{theme.js → kernel/theme.js} +399 -289
  225. package/dist/core/dist/kernel/transform-geometry.js +72 -0
  226. package/dist/core/dist/kernel/xml-values.js +13 -0
  227. package/dist/document-C0lPlH-L.d.ts +1442 -0
  228. package/dist/index-B9_OUeA-.d.ts +2238 -0
  229. package/dist/index-BJEzQxWV.d.ts +75 -0
  230. package/dist/index-DA9flrlR.d.ts +146 -0
  231. package/dist/index-GSt0t9VO.d.ts +54 -0
  232. package/dist/index.d.ts +7 -7
  233. package/dist/index.js +75 -61
  234. package/dist/node.d.ts +37 -35
  235. package/dist/node.js +125 -51
  236. package/dist/pptxdk/src/cli-commands.js +79 -81
  237. package/dist/pptxdk/src/compose.js +32 -24
  238. package/dist/pptxdk/src/preview-result.js +24 -0
  239. package/dist/{capabilities/dist/image → preview/dist}/gif-decoder.js +5 -5
  240. package/dist/preview/dist/index.js +229 -77
  241. package/dist/preview/dist/options.js +17 -26
  242. package/dist/preview/dist/raster.js +66 -0
  243. package/dist/preview/dist/svg-guard.js +1090 -0
  244. package/dist/preview.d.ts +6 -3
  245. package/dist/preview.js +8 -24
  246. package/dist/react/dist/append.js +3 -3
  247. package/dist/react/dist/author/audio-elements.js +14 -0
  248. package/dist/{capabilities/dist/box → react/dist/author}/box-elements.js +5 -3
  249. package/dist/react/dist/author/chart-elements.js +14 -0
  250. package/dist/react/dist/author/comment-elements.js +15 -0
  251. package/dist/react/dist/author/group-elements.js +14 -0
  252. package/dist/react/dist/author/image-elements.js +14 -0
  253. package/dist/react/dist/author/line-elements.js +14 -0
  254. package/dist/{capabilities/dist/motion → react/dist/author}/motion-elements.js +6 -4
  255. package/dist/react/dist/author/notes-elements.js +14 -0
  256. package/dist/react/dist/author/placeholder-elements.js +14 -0
  257. package/dist/react/dist/author/shape-elements.js +14 -0
  258. package/dist/{capabilities/dist/table → react/dist/author}/table-elements.js +6 -4
  259. package/dist/react/dist/author/text-elements.js +64 -0
  260. package/dist/react/dist/author/video-elements.js +14 -0
  261. package/dist/react/dist/document-adapter.js +376 -37
  262. package/dist/react/dist/elements.js +30 -4
  263. package/dist/react/dist/from-vanilla.js +57 -0
  264. package/dist/react/dist/index.js +47 -12
  265. package/dist/react/dist/mount.js +34 -0
  266. package/dist/react/dist/reconciler.js +26 -26
  267. package/dist/react.d.ts +174 -50
  268. package/dist/react.js +31 -27
  269. package/dist/stages-DYHSHKt4.d.ts +80 -0
  270. package/dist/vanilla.d.ts +4 -4
  271. package/dist/vanilla.js +14 -14
  272. package/package.json +6 -8
  273. package/README.md +0 -49
  274. package/dist/capabilities/dist/all.js +0 -32
  275. package/dist/capabilities/dist/box/box-codegen.js +0 -51
  276. package/dist/capabilities/dist/box/box-declaration.js +0 -31
  277. package/dist/capabilities/dist/chart/chart-elements.js +0 -12
  278. package/dist/capabilities/dist/chart/preview/data-labels.js +0 -334
  279. package/dist/capabilities/dist/document.js +0 -148
  280. package/dist/capabilities/dist/font/font-embedding.js +0 -289
  281. package/dist/capabilities/dist/font/font-family.js +0 -10
  282. package/dist/capabilities/dist/font/font-import.js +0 -302
  283. package/dist/capabilities/dist/font/font.js +0 -25
  284. package/dist/capabilities/dist/group/group-codegen.js +0 -51
  285. package/dist/capabilities/dist/group/group-declaration.js +0 -42
  286. package/dist/capabilities/dist/group/group-elements.js +0 -12
  287. package/dist/capabilities/dist/group/group-import.js +0 -319
  288. package/dist/capabilities/dist/group/group.js +0 -211
  289. package/dist/capabilities/dist/image/image-codegen.js +0 -94
  290. package/dist/capabilities/dist/image/image-declaration.js +0 -8
  291. package/dist/capabilities/dist/image/image-elements.js +0 -12
  292. package/dist/capabilities/dist/image/image-xml.js +0 -12
  293. package/dist/capabilities/dist/image/image.js +0 -472
  294. package/dist/capabilities/dist/masters/masters-codegen.js +0 -21
  295. package/dist/capabilities/dist/motion/motion-api.js +0 -527
  296. package/dist/capabilities/dist/motion/motion-schemas.js +0 -216
  297. package/dist/capabilities/dist/notes/notes-elements.js +0 -12
  298. package/dist/capabilities/dist/notes/notes-xml.js +0 -38
  299. package/dist/capabilities/dist/placeholder/placeholder-codegen.js +0 -23
  300. package/dist/capabilities/dist/placeholder/placeholder-elements.js +0 -12
  301. package/dist/capabilities/dist/placeholder/placeholder.js +0 -292
  302. package/dist/capabilities/dist/shape/shape-declaration.js +0 -57
  303. package/dist/capabilities/dist/shape/shape-elements.js +0 -12
  304. package/dist/capabilities/dist/shape/shape-import.js +0 -579
  305. package/dist/capabilities/dist/shared/placeholder-import.js +0 -113
  306. package/dist/capabilities/dist/shared/style-parse.js +0 -11
  307. package/dist/capabilities/dist/shared/text-schemas.js +0 -216
  308. package/dist/capabilities/dist/shared/text-service.js +0 -1883
  309. package/dist/capabilities/dist/slide-background/slide-background-codegen.js +0 -44
  310. package/dist/capabilities/dist/slide-background/slide-background-xml.js +0 -21
  311. package/dist/capabilities/dist/table/table-codegen.js +0 -81
  312. package/dist/capabilities/dist/table/table-schemas.js +0 -279
  313. package/dist/capabilities/dist/text/text-codegen.js +0 -129
  314. package/dist/capabilities/dist/text/text-declaration.js +0 -19
  315. package/dist/capabilities/dist/text/text-elements.js +0 -38
  316. package/dist/capabilities/dist/text/text-import.js +0 -1077
  317. package/dist/capability-D_xeNVIw.d.ts +0 -29496
  318. package/dist/codegen/dist/types.js +0 -49
  319. package/dist/core/dist/build.js +0 -4
  320. package/dist/core/dist/capability.js +0 -13
  321. package/dist/core/dist/diagnostics.js +0 -21
  322. package/dist/core/dist/document-internals.js +0 -13
  323. package/dist/core/dist/input-values.js +0 -45
  324. package/dist/core/dist/layout.js +0 -299
  325. package/dist/core/dist/masters.js +0 -169
  326. package/dist/core/dist/placeholders.js +0 -213
  327. package/dist/core/dist/stage-options.js +0 -67
  328. package/dist/document-BHPUODPP.d.ts +0 -27759
  329. package/dist/emit/dist/index.js +0 -5
  330. package/dist/import/dist/import.js +0 -504
  331. package/dist/import/dist/index.js +0 -16
  332. package/dist/import/dist/xml-fragments.js +0 -36
  333. package/dist/index-B5m3hqjC.d.ts +0 -7
  334. package/dist/index-CCy-Yo8G.d.ts +0 -1208
  335. package/dist/index-DpxcZ4Gs.d.ts +0 -725
  336. package/dist/pptxdk/src/slide.js +0 -9
  337. package/dist/preview-Cfw0QdMM.d.ts +0 -86
  338. package/dist/transition-Cips9wma.d.ts +0 -82
@@ -1,725 +0,0 @@
1
- import { et as RegisteredCapabilityModule, gn as PlaceholderMap, m as SlideLayoutContainer, o as CommonNode, qr as DeclarationChild, s as DeckContainer, sr as NativeColorSlot, un as MasterPlaceholderMap } from "./capability-D_xeNVIw.js";
2
- import { z } from "zod";
3
- import { Element } from "@xmldom/xmldom";
4
- declare class BuildQueryError extends Error {
5
- readonly code: "missing-slide" | "missing-match" | "ambiguous-match" | "invalid-query" | "invalid-reference" | "foreign-reference" | "unbound-observation";
6
- constructor(code: BuildQueryError["code"], message: string);
7
- }
8
- /** Supported author source generation syntax targets. */
9
- declare const codegenTargetSchema: z.ZodEnum<{
10
- react: "react";
11
- vanilla: "vanilla";
12
- }>;
13
- type CodegenTarget = z.infer<typeof codegenTargetSchema>;
14
- type CodegenEntryName<T extends CodegenTarget = CodegenTarget> = T extends "vanilla" ? "deck.ts" : T extends "react" ? "deck.tsx" : "deck.ts" | "deck.tsx";
15
- /** Options controlling `codegen` target syntax output. */
16
- declare const codegenOptionsSchema: z.ZodReadonly<z.ZodObject<{
17
- target: z.ZodEnum<{
18
- react: "react";
19
- vanilla: "vanilla";
20
- }>;
21
- }, z.core.$strip>>;
22
- type CodegenOptions<T extends CodegenTarget = CodegenTarget> = {
23
- readonly target: T;
24
- };
25
- type CodegenFileContent = string | Uint8Array;
26
- type CodegenResult<T extends CodegenTarget = CodegenTarget> = {
27
- readonly target: T;
28
- readonly entry: CodegenEntryName<T>;
29
- readonly files: Readonly<Record<string, CodegenFileContent>>;
30
- };
31
- declare const codegenDiagnosticCodeSchema: z.ZodEnum<{
32
- "invalid-document": "invalid-document";
33
- "invalid-options": "invalid-options";
34
- "unexpressible-value": "unexpressible-value";
35
- "unsupported-declaration": "unsupported-declaration";
36
- "unsupported-slide-property": "unsupported-slide-property";
37
- }>;
38
- type CodegenDiagnosticCode = z.infer<typeof codegenDiagnosticCodeSchema>;
39
- declare const codegenDiagnosticSchema: z.ZodReadonly<z.ZodObject<{
40
- severity: z.ZodLiteral<"error">;
41
- path: z.ZodString;
42
- code: z.ZodEnum<{
43
- "invalid-document": "invalid-document";
44
- "invalid-options": "invalid-options";
45
- "unexpressible-value": "unexpressible-value";
46
- "unsupported-declaration": "unsupported-declaration";
47
- "unsupported-slide-property": "unsupported-slide-property";
48
- }>;
49
- message: z.ZodString;
50
- }, z.core.$strip>>;
51
- type CodegenDiagnostic = z.infer<typeof codegenDiagnosticSchema>;
52
- /** Structured error thrown when an editable document cannot be expressed in generated source. */
53
- declare class CodegenError extends Error {
54
- readonly diagnostics: readonly CodegenDiagnostic[];
55
- constructor(diagnostics: readonly CodegenDiagnostic[]);
56
- }
57
- declare const codegenExprBrand: unique symbol;
58
- type CodegenExpr = {
59
- readonly [codegenExprBrand]: true;
60
- readonly code: string;
61
- };
62
- /**
63
- * Capability-facing context exposed to `ObjectCodegenContribution` and `SlideCodegenContribution`
64
- * handlers while emitting a single deck file.
65
- */
66
- type CodegenContext = {
67
- readonly target: CodegenTarget;
68
- readonly path: string;
69
- useImport(symbol: string, from?: "sdk" | "node:fs"): string;
70
- registerImageAsset(bytes: Uint8Array, ext: string): string;
71
- registerFontAsset(bytes: Uint8Array, family: string, ext?: "ttf" | "otf"): string;
72
- allocateMotionScope(identity: string): string;
73
- emitValueExpr(value: unknown, propPath?: string): string;
74
- emitChildNode(node: CommonNode, index: number): string;
75
- emitRichTextChildren(children: readonly DeclarationChild[]): readonly string[];
76
- emitObjectExtraProps(props: Readonly<Record<string, unknown>>): Readonly<Record<string, CodegenExpr>>;
77
- formatProps(entries: readonly (readonly [string, unknown])[]): string;
78
- formatJsxElement(tag: string, entries: readonly (readonly [string, unknown])[], children?: readonly string[]): string;
79
- formatVanillaCall(callee: string, args: readonly string[], children?: readonly string[]): string;
80
- fail(code: CodegenDiagnosticCode, message: string, subPath?: string): never;
81
- };
82
- type DeclarationCodegenHandler = {
83
- readonly emitVanilla: (node: CommonNode, ctx: CodegenContext) => string;
84
- readonly emitReact: (node: CommonNode, ctx: CodegenContext) => string;
85
- };
86
- type CodegenPropSerializer = (value: unknown, ctx: CodegenContext) => CodegenExpr;
87
- type CodegenValueSerializer = (value: unknown, ctx: CodegenContext) => CodegenExpr | undefined;
88
- type ObjectCodegenContribution = {
89
- readonly declarations: Readonly<Record<string, DeclarationCodegenHandler>>;
90
- readonly objectProps?: Readonly<Record<string, CodegenPropSerializer>>;
91
- readonly ownerProps?: Readonly<Record<string, CodegenPropSerializer>>;
92
- readonly valueSerializers?: readonly CodegenValueSerializer[];
93
- };
94
- type SlideCodegenContribution = {
95
- readonly slideProps: Readonly<Record<string, CodegenPropSerializer>>;
96
- readonly valueSerializers?: readonly CodegenValueSerializer[];
97
- };
98
- /**
99
- * Creates a synchronous source code generator wired with the provided capability modules.
100
- */
101
- declare function createCodegen(capabilities: readonly RegisteredCapabilityModule[]): <T extends CodegenTarget>(document: CommonNode, options: CodegenOptions<T>) => CodegenResult<T>;
102
- /** Source package location attached to import diagnostics and fatal errors. */
103
- declare const importLocationSchema: z.ZodObject<{
104
- part: z.ZodString;
105
- xpath: z.ZodOptional<z.ZodString>;
106
- slideIndex: z.ZodOptional<z.ZodNumber>;
107
- objectId: z.ZodOptional<z.ZodNumber>;
108
- objectName: z.ZodOptional<z.ZodString>;
109
- }, z.core.$strip>;
110
- type ImportLocation = z.infer<typeof importLocationSchema>;
111
- /** Native editing capability lost when a fallback representation is selected. */
112
- declare const editabilityLossSchema: z.ZodObject<{
113
- lost: z.ZodEnum<{
114
- "custom-print-layout": "custom-print-layout";
115
- "master-layout-inheritance": "master-layout-inheritance";
116
- "native-mechanism": "native-mechanism";
117
- "preferred-compatibility-branch": "preferred-compatibility-branch";
118
- }>;
119
- retainedAs: z.ZodString;
120
- }, z.core.$strip>;
121
- type EditabilityLoss = z.infer<typeof editabilityLossSchema>;
122
- /** Dependent item omitted because an ancestor or target part could not be imported. */
123
- declare const cascadedOmissionSchema: z.ZodObject<{
124
- location: z.ZodObject<{
125
- part: z.ZodString;
126
- xpath: z.ZodOptional<z.ZodString>;
127
- slideIndex: z.ZodOptional<z.ZodNumber>;
128
- objectId: z.ZodOptional<z.ZodNumber>;
129
- objectName: z.ZodOptional<z.ZodString>;
130
- }, z.core.$strip>;
131
- role: z.ZodString;
132
- }, z.core.$strip>;
133
- type CascadedOmission = z.infer<typeof cascadedOmissionSchema>;
134
- /** Fatal package/entry failure reason carried by `ImportError`. */
135
- declare const fatalImportIssueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
136
- code: z.ZodLiteral<"corrupt-archive">;
137
- category: z.ZodLiteral<"corrupt-input">;
138
- disposition: z.ZodLiteral<"aborted">;
139
- }, z.core.$strip>, z.ZodObject<{
140
- code: z.ZodLiteral<"missing-entry">;
141
- category: z.ZodLiteral<"corrupt-input">;
142
- disposition: z.ZodLiteral<"aborted">;
143
- location: z.ZodObject<{
144
- part: z.ZodString;
145
- xpath: z.ZodOptional<z.ZodString>;
146
- slideIndex: z.ZodOptional<z.ZodNumber>;
147
- objectId: z.ZodOptional<z.ZodNumber>;
148
- objectName: z.ZodOptional<z.ZodString>;
149
- }, z.core.$strip>;
150
- expectedRelationshipType: z.ZodOptional<z.ZodString>;
151
- }, z.core.$strip>, z.ZodObject<{
152
- code: z.ZodLiteral<"malformed-xml">;
153
- category: z.ZodLiteral<"corrupt-input">;
154
- disposition: z.ZodLiteral<"aborted">;
155
- location: z.ZodObject<{
156
- part: z.ZodString;
157
- xpath: z.ZodOptional<z.ZodString>;
158
- slideIndex: z.ZodOptional<z.ZodNumber>;
159
- objectId: z.ZodOptional<z.ZodNumber>;
160
- objectName: z.ZodOptional<z.ZodString>;
161
- }, z.core.$strip>;
162
- detail: z.ZodOptional<z.ZodString>;
163
- }, z.core.$strip>, z.ZodObject<{
164
- code: z.ZodLiteral<"broken-entry-relationship">;
165
- category: z.ZodLiteral<"corrupt-input">;
166
- disposition: z.ZodLiteral<"aborted">;
167
- location: z.ZodObject<{
168
- part: z.ZodString;
169
- xpath: z.ZodOptional<z.ZodString>;
170
- slideIndex: z.ZodOptional<z.ZodNumber>;
171
- objectId: z.ZodOptional<z.ZodNumber>;
172
- objectName: z.ZodOptional<z.ZodString>;
173
- }, z.core.$strip>;
174
- relationshipId: z.ZodOptional<z.ZodString>;
175
- target: z.ZodOptional<z.ZodString>;
176
- }, z.core.$strip>, z.ZodObject<{
177
- code: z.ZodLiteral<"invalid-presentation-root">;
178
- category: z.ZodLiteral<"corrupt-input">;
179
- disposition: z.ZodLiteral<"aborted">;
180
- location: z.ZodObject<{
181
- part: z.ZodString;
182
- xpath: z.ZodOptional<z.ZodString>;
183
- slideIndex: z.ZodOptional<z.ZodNumber>;
184
- objectId: z.ZodOptional<z.ZodNumber>;
185
- objectName: z.ZodOptional<z.ZodString>;
186
- }, z.core.$strip>;
187
- namespaceUri: z.ZodOptional<z.ZodString>;
188
- localName: z.ZodOptional<z.ZodString>;
189
- }, z.core.$strip>, z.ZodObject<{
190
- code: z.ZodLiteral<"unsupported-format-baseline">;
191
- category: z.ZodLiteral<"unsupported">;
192
- disposition: z.ZodLiteral<"aborted">;
193
- baseline: z.ZodEnum<{
194
- "ISO/IEC 29500 Strict": "ISO/IEC 29500 Strict";
195
- unknown: "unknown";
196
- }>;
197
- detectedNamespace: z.ZodString;
198
- location: z.ZodObject<{
199
- part: z.ZodString;
200
- xpath: z.ZodOptional<z.ZodString>;
201
- slideIndex: z.ZodOptional<z.ZodNumber>;
202
- objectId: z.ZodOptional<z.ZodNumber>;
203
- objectName: z.ZodOptional<z.ZodString>;
204
- }, z.core.$strip>;
205
- }, z.core.$strip>], "code">;
206
- type FatalImportIssue = z.infer<typeof fatalImportIssueSchema>;
207
- /** Recoverable or isolatable diagnostic event emitted in `ImportReport.diagnostics`. */
208
- declare const importDiagnosticSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
209
- code: z.ZodLiteral<"corrupt-part">;
210
- category: z.ZodLiteral<"corrupt-input">;
211
- disposition: z.ZodLiteral<"omitted">;
212
- location: z.ZodObject<{
213
- part: z.ZodString;
214
- xpath: z.ZodOptional<z.ZodString>;
215
- slideIndex: z.ZodOptional<z.ZodNumber>;
216
- objectId: z.ZodOptional<z.ZodNumber>;
217
- objectName: z.ZodOptional<z.ZodString>;
218
- }, z.core.$strip>;
219
- cascaded: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
220
- location: z.ZodObject<{
221
- part: z.ZodString;
222
- xpath: z.ZodOptional<z.ZodString>;
223
- slideIndex: z.ZodOptional<z.ZodNumber>;
224
- objectId: z.ZodOptional<z.ZodNumber>;
225
- objectName: z.ZodOptional<z.ZodString>;
226
- }, z.core.$strip>;
227
- role: z.ZodString;
228
- }, z.core.$strip>>>>;
229
- }, z.core.$strip>, z.ZodObject<{
230
- code: z.ZodLiteral<"missing-target-part">;
231
- category: z.ZodLiteral<"corrupt-input">;
232
- disposition: z.ZodLiteral<"omitted">;
233
- location: z.ZodObject<{
234
- part: z.ZodString;
235
- xpath: z.ZodOptional<z.ZodString>;
236
- slideIndex: z.ZodOptional<z.ZodNumber>;
237
- objectId: z.ZodOptional<z.ZodNumber>;
238
- objectName: z.ZodOptional<z.ZodString>;
239
- }, z.core.$strip>;
240
- relationshipId: z.ZodString;
241
- targetPart: z.ZodString;
242
- cascaded: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
243
- location: z.ZodObject<{
244
- part: z.ZodString;
245
- xpath: z.ZodOptional<z.ZodString>;
246
- slideIndex: z.ZodOptional<z.ZodNumber>;
247
- objectId: z.ZodOptional<z.ZodNumber>;
248
- objectName: z.ZodOptional<z.ZodString>;
249
- }, z.core.$strip>;
250
- role: z.ZodString;
251
- }, z.core.$strip>>>>;
252
- }, z.core.$strip>, z.ZodObject<{
253
- code: z.ZodLiteral<"broken-relationship">;
254
- category: z.ZodLiteral<"corrupt-input">;
255
- disposition: z.ZodLiteral<"omitted">;
256
- location: z.ZodObject<{
257
- part: z.ZodString;
258
- xpath: z.ZodOptional<z.ZodString>;
259
- slideIndex: z.ZodOptional<z.ZodNumber>;
260
- objectId: z.ZodOptional<z.ZodNumber>;
261
- objectName: z.ZodOptional<z.ZodString>;
262
- }, z.core.$strip>;
263
- relationshipId: z.ZodString;
264
- cascaded: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
265
- location: z.ZodObject<{
266
- part: z.ZodString;
267
- xpath: z.ZodOptional<z.ZodString>;
268
- slideIndex: z.ZodOptional<z.ZodNumber>;
269
- objectId: z.ZodOptional<z.ZodNumber>;
270
- objectName: z.ZodOptional<z.ZodString>;
271
- }, z.core.$strip>;
272
- role: z.ZodString;
273
- }, z.core.$strip>>>>;
274
- }, z.core.$strip>, z.ZodObject<{
275
- code: z.ZodLiteral<"invalid-xml-value">;
276
- category: z.ZodLiteral<"corrupt-input">;
277
- disposition: z.ZodEnum<{
278
- omitted: "omitted";
279
- recovered: "recovered";
280
- }>;
281
- location: z.ZodObject<{
282
- part: z.ZodString;
283
- xpath: z.ZodOptional<z.ZodString>;
284
- slideIndex: z.ZodOptional<z.ZodNumber>;
285
- objectId: z.ZodOptional<z.ZodNumber>;
286
- objectName: z.ZodOptional<z.ZodString>;
287
- }, z.core.$strip>;
288
- attributeOrElement: z.ZodString;
289
- rawValue: z.ZodOptional<z.ZodString>;
290
- }, z.core.$strip>, z.ZodObject<{
291
- code: z.ZodLiteral<"unsupported-mechanism">;
292
- category: z.ZodLiteral<"unsupported">;
293
- disposition: z.ZodLiteral<"omitted">;
294
- location: z.ZodObject<{
295
- part: z.ZodString;
296
- xpath: z.ZodOptional<z.ZodString>;
297
- slideIndex: z.ZodOptional<z.ZodNumber>;
298
- objectId: z.ZodOptional<z.ZodNumber>;
299
- objectName: z.ZodOptional<z.ZodString>;
300
- }, z.core.$strip>;
301
- namespaceUri: z.ZodString;
302
- localName: z.ZodString;
303
- mechanismHint: z.ZodOptional<z.ZodString>;
304
- loss: z.ZodOptional<z.ZodObject<{
305
- lost: z.ZodEnum<{
306
- "custom-print-layout": "custom-print-layout";
307
- "master-layout-inheritance": "master-layout-inheritance";
308
- "native-mechanism": "native-mechanism";
309
- "preferred-compatibility-branch": "preferred-compatibility-branch";
310
- }>;
311
- retainedAs: z.ZodString;
312
- }, z.core.$strip>>;
313
- cascaded: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
314
- location: z.ZodObject<{
315
- part: z.ZodString;
316
- xpath: z.ZodOptional<z.ZodString>;
317
- slideIndex: z.ZodOptional<z.ZodNumber>;
318
- objectId: z.ZodOptional<z.ZodNumber>;
319
- objectName: z.ZodOptional<z.ZodString>;
320
- }, z.core.$strip>;
321
- role: z.ZodString;
322
- }, z.core.$strip>>>>;
323
- }, z.core.$strip>, z.ZodObject<{
324
- code: z.ZodLiteral<"compatibility-fallback">;
325
- category: z.ZodLiteral<"unsupported">;
326
- disposition: z.ZodLiteral<"fallback">;
327
- location: z.ZodObject<{
328
- part: z.ZodString;
329
- xpath: z.ZodOptional<z.ZodString>;
330
- slideIndex: z.ZodOptional<z.ZodNumber>;
331
- objectId: z.ZodOptional<z.ZodNumber>;
332
- objectName: z.ZodOptional<z.ZodString>;
333
- }, z.core.$strip>;
334
- preferredMechanism: z.ZodString;
335
- selectedFallback: z.ZodString;
336
- loss: z.ZodObject<{
337
- lost: z.ZodEnum<{
338
- "custom-print-layout": "custom-print-layout";
339
- "master-layout-inheritance": "master-layout-inheritance";
340
- "native-mechanism": "native-mechanism";
341
- "preferred-compatibility-branch": "preferred-compatibility-branch";
342
- }>;
343
- retainedAs: z.ZodString;
344
- }, z.core.$strip>;
345
- }, z.core.$strip>, z.ZodObject<{
346
- code: z.ZodLiteral<"unconsumed-xml">;
347
- category: z.ZodLiteral<"unsupported">;
348
- disposition: z.ZodLiteral<"omitted">;
349
- kind: z.ZodEnum<{
350
- attribute: "attribute";
351
- element: "element";
352
- }>;
353
- location: z.ZodObject<{
354
- part: z.ZodString;
355
- xpath: z.ZodOptional<z.ZodString>;
356
- slideIndex: z.ZodOptional<z.ZodNumber>;
357
- objectId: z.ZodOptional<z.ZodNumber>;
358
- objectName: z.ZodOptional<z.ZodString>;
359
- }, z.core.$strip>;
360
- namespaceUri: z.ZodString;
361
- localName: z.ZodString;
362
- }, z.core.$strip>], "code">;
363
- type ImportDiagnostic = z.infer<typeof importDiagnosticSchema>;
364
- /** Structured summary and per-item diagnostics produced by `createImporter`. */
365
- declare const importReportSchema: z.ZodObject<{
366
- evidence: z.ZodLiteral<"import">;
367
- sourceFormat: z.ZodLiteral<"ECMA-376 5th edition Transitional">;
368
- slideCount: z.ZodNumber;
369
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
370
- code: z.ZodLiteral<"corrupt-part">;
371
- category: z.ZodLiteral<"corrupt-input">;
372
- disposition: z.ZodLiteral<"omitted">;
373
- location: z.ZodObject<{
374
- part: z.ZodString;
375
- xpath: z.ZodOptional<z.ZodString>;
376
- slideIndex: z.ZodOptional<z.ZodNumber>;
377
- objectId: z.ZodOptional<z.ZodNumber>;
378
- objectName: z.ZodOptional<z.ZodString>;
379
- }, z.core.$strip>;
380
- cascaded: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
381
- location: z.ZodObject<{
382
- part: z.ZodString;
383
- xpath: z.ZodOptional<z.ZodString>;
384
- slideIndex: z.ZodOptional<z.ZodNumber>;
385
- objectId: z.ZodOptional<z.ZodNumber>;
386
- objectName: z.ZodOptional<z.ZodString>;
387
- }, z.core.$strip>;
388
- role: z.ZodString;
389
- }, z.core.$strip>>>>;
390
- }, z.core.$strip>, z.ZodObject<{
391
- code: z.ZodLiteral<"missing-target-part">;
392
- category: z.ZodLiteral<"corrupt-input">;
393
- disposition: z.ZodLiteral<"omitted">;
394
- location: z.ZodObject<{
395
- part: z.ZodString;
396
- xpath: z.ZodOptional<z.ZodString>;
397
- slideIndex: z.ZodOptional<z.ZodNumber>;
398
- objectId: z.ZodOptional<z.ZodNumber>;
399
- objectName: z.ZodOptional<z.ZodString>;
400
- }, z.core.$strip>;
401
- relationshipId: z.ZodString;
402
- targetPart: z.ZodString;
403
- cascaded: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
404
- location: z.ZodObject<{
405
- part: z.ZodString;
406
- xpath: z.ZodOptional<z.ZodString>;
407
- slideIndex: z.ZodOptional<z.ZodNumber>;
408
- objectId: z.ZodOptional<z.ZodNumber>;
409
- objectName: z.ZodOptional<z.ZodString>;
410
- }, z.core.$strip>;
411
- role: z.ZodString;
412
- }, z.core.$strip>>>>;
413
- }, z.core.$strip>, z.ZodObject<{
414
- code: z.ZodLiteral<"broken-relationship">;
415
- category: z.ZodLiteral<"corrupt-input">;
416
- disposition: z.ZodLiteral<"omitted">;
417
- location: z.ZodObject<{
418
- part: z.ZodString;
419
- xpath: z.ZodOptional<z.ZodString>;
420
- slideIndex: z.ZodOptional<z.ZodNumber>;
421
- objectId: z.ZodOptional<z.ZodNumber>;
422
- objectName: z.ZodOptional<z.ZodString>;
423
- }, z.core.$strip>;
424
- relationshipId: z.ZodString;
425
- cascaded: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
426
- location: z.ZodObject<{
427
- part: z.ZodString;
428
- xpath: z.ZodOptional<z.ZodString>;
429
- slideIndex: z.ZodOptional<z.ZodNumber>;
430
- objectId: z.ZodOptional<z.ZodNumber>;
431
- objectName: z.ZodOptional<z.ZodString>;
432
- }, z.core.$strip>;
433
- role: z.ZodString;
434
- }, z.core.$strip>>>>;
435
- }, z.core.$strip>, z.ZodObject<{
436
- code: z.ZodLiteral<"invalid-xml-value">;
437
- category: z.ZodLiteral<"corrupt-input">;
438
- disposition: z.ZodEnum<{
439
- omitted: "omitted";
440
- recovered: "recovered";
441
- }>;
442
- location: z.ZodObject<{
443
- part: z.ZodString;
444
- xpath: z.ZodOptional<z.ZodString>;
445
- slideIndex: z.ZodOptional<z.ZodNumber>;
446
- objectId: z.ZodOptional<z.ZodNumber>;
447
- objectName: z.ZodOptional<z.ZodString>;
448
- }, z.core.$strip>;
449
- attributeOrElement: z.ZodString;
450
- rawValue: z.ZodOptional<z.ZodString>;
451
- }, z.core.$strip>, z.ZodObject<{
452
- code: z.ZodLiteral<"unsupported-mechanism">;
453
- category: z.ZodLiteral<"unsupported">;
454
- disposition: z.ZodLiteral<"omitted">;
455
- location: z.ZodObject<{
456
- part: z.ZodString;
457
- xpath: z.ZodOptional<z.ZodString>;
458
- slideIndex: z.ZodOptional<z.ZodNumber>;
459
- objectId: z.ZodOptional<z.ZodNumber>;
460
- objectName: z.ZodOptional<z.ZodString>;
461
- }, z.core.$strip>;
462
- namespaceUri: z.ZodString;
463
- localName: z.ZodString;
464
- mechanismHint: z.ZodOptional<z.ZodString>;
465
- loss: z.ZodOptional<z.ZodObject<{
466
- lost: z.ZodEnum<{
467
- "custom-print-layout": "custom-print-layout";
468
- "master-layout-inheritance": "master-layout-inheritance";
469
- "native-mechanism": "native-mechanism";
470
- "preferred-compatibility-branch": "preferred-compatibility-branch";
471
- }>;
472
- retainedAs: z.ZodString;
473
- }, z.core.$strip>>;
474
- cascaded: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
475
- location: z.ZodObject<{
476
- part: z.ZodString;
477
- xpath: z.ZodOptional<z.ZodString>;
478
- slideIndex: z.ZodOptional<z.ZodNumber>;
479
- objectId: z.ZodOptional<z.ZodNumber>;
480
- objectName: z.ZodOptional<z.ZodString>;
481
- }, z.core.$strip>;
482
- role: z.ZodString;
483
- }, z.core.$strip>>>>;
484
- }, z.core.$strip>, z.ZodObject<{
485
- code: z.ZodLiteral<"compatibility-fallback">;
486
- category: z.ZodLiteral<"unsupported">;
487
- disposition: z.ZodLiteral<"fallback">;
488
- location: z.ZodObject<{
489
- part: z.ZodString;
490
- xpath: z.ZodOptional<z.ZodString>;
491
- slideIndex: z.ZodOptional<z.ZodNumber>;
492
- objectId: z.ZodOptional<z.ZodNumber>;
493
- objectName: z.ZodOptional<z.ZodString>;
494
- }, z.core.$strip>;
495
- preferredMechanism: z.ZodString;
496
- selectedFallback: z.ZodString;
497
- loss: z.ZodObject<{
498
- lost: z.ZodEnum<{
499
- "custom-print-layout": "custom-print-layout";
500
- "master-layout-inheritance": "master-layout-inheritance";
501
- "native-mechanism": "native-mechanism";
502
- "preferred-compatibility-branch": "preferred-compatibility-branch";
503
- }>;
504
- retainedAs: z.ZodString;
505
- }, z.core.$strip>;
506
- }, z.core.$strip>, z.ZodObject<{
507
- code: z.ZodLiteral<"unconsumed-xml">;
508
- category: z.ZodLiteral<"unsupported">;
509
- disposition: z.ZodLiteral<"omitted">;
510
- kind: z.ZodEnum<{
511
- attribute: "attribute";
512
- element: "element";
513
- }>;
514
- location: z.ZodObject<{
515
- part: z.ZodString;
516
- xpath: z.ZodOptional<z.ZodString>;
517
- slideIndex: z.ZodOptional<z.ZodNumber>;
518
- objectId: z.ZodOptional<z.ZodNumber>;
519
- objectName: z.ZodOptional<z.ZodString>;
520
- }, z.core.$strip>;
521
- namespaceUri: z.ZodString;
522
- localName: z.ZodString;
523
- }, z.core.$strip>], "code">>>;
524
- }, z.core.$strip>;
525
- type ImportReport = z.infer<typeof importReportSchema>;
526
- declare const importOptionsSchema: z.ZodObject<{
527
- signal: z.ZodOptional<z.ZodCustom<AbortSignal, AbortSignal>>;
528
- }, z.core.$strict>;
529
- type ImportOptions = {
530
- readonly signal?: AbortSignal;
531
- };
532
- /** Error thrown when PPTX entry points cannot be opened or use an unsupported baseline. */
533
- declare class ImportError extends Error {
534
- readonly issue: FatalImportIssue;
535
- constructor(issue: FatalImportIssue, message?: string);
536
- }
537
- type UnconsumedXmlItem = {
538
- readonly kind: "attribute" | "element";
539
- readonly location: ImportLocation;
540
- readonly namespaceUri: string;
541
- readonly localName: string;
542
- };
543
- /**
544
- * Namespace-aware XML cursor that tracks consumed attributes and child elements so
545
- * unconsumed OOXML constructs are surfaced with exact package part and XPath locations.
546
- */
547
- declare class XmlElementCursor {
548
- #private;
549
- readonly element: Element;
550
- readonly part: string;
551
- readonly xpath: string;
552
- readonly namespaceUri: string;
553
- readonly localName: string;
554
- private constructor();
555
- static createRoot(element: Element, part: string, rootXpath?: string): XmlElementCursor;
556
- get textContent(): string;
557
- /** Reads an attribute by `(namespaceUri, localName)` and marks it consumed if present. */
558
- attr(localName: string, namespaceUri?: string): string | undefined;
559
- /** Reads a set of allowed attributes into a plain record for Zod fragment parsing. */
560
- attrsObject(allowed: readonly string[], namespaceUri?: string): Record<string, string>;
561
- /** Marks an attribute consumed even if its value is not retained. */
562
- consumeAttr(localName: string, namespaceUri?: string): boolean;
563
- /** Returns the first matching child cursor and marks that child element consumed. */
564
- child(namespaceUri: string, localName: string): XmlElementCursor | undefined;
565
- /** Returns all matching child cursors in document order and marks them consumed. */
566
- children(namespaceUri: string, localName: string): readonly XmlElementCursor[];
567
- /** Returns matching direct element children without marking non-matching siblings consumed. */
568
- matchingChildren(predicate: (element: Element) => boolean): readonly XmlElementCursor[];
569
- /** Returns all direct element children as cursors and marks them consumed by the caller. */
570
- allElementChildren(): readonly XmlElementCursor[];
571
- /** Returns direct element children not yet consumed in document order and marks them consumed. */
572
- remainingElementChildren(): readonly XmlElementCursor[];
573
- /** Marks a specific child cursor consumed (useful after inspecting an element child). */
574
- markChildConsumed(child: XmlElementCursor): void;
575
- /** Marks all direct element children consumed without descending into them. */
576
- consumeChildrenWithoutVisiting(): void;
577
- /** Suppresses unconsumed-xml diagnostics for this cursor and its remaining children (used when the subtree is already reported as omitted). */
578
- suppressUnconsumed(): void;
579
- /** Marks an empty schema-boilerplate child element consumed only when it has no attributes or element children. */
580
- ignoreEmptyChild(namespaceUri: string, localName: string): boolean;
581
- /** Collects unconsumed attributes and direct unconsumed child elements across all visited cursors. */
582
- collectUnconsumed(): readonly UnconsumedXmlItem[];
583
- }
584
- /** Zod schema for an OPC `<Relationship>` element attributes. */
585
- declare const opcRelationshipSchema: z.ZodObject<{
586
- Id: z.ZodString;
587
- Type: z.ZodString;
588
- Target: z.ZodString;
589
- TargetMode: z.ZodDefault<z.ZodEnum<{
590
- External: "External";
591
- Internal: "Internal";
592
- }>>;
593
- }, z.core.$strip>;
594
- type OpcRelationship = z.infer<typeof opcRelationshipSchema>;
595
- type ParsedRelationshipEntry = OpcRelationship & {
596
- readonly xpath: string;
597
- };
598
- type PptxPackage = {
599
- readonly presentationPath: string;
600
- readonly presentationRoot: XmlElementCursor;
601
- readonly presentationRels: readonly ParsedRelationshipEntry[];
602
- readonly relDiagnostics: readonly ImportDiagnostic[];
603
- hasPart(partPath: string): boolean;
604
- readTextPart(partPath: string): string | undefined;
605
- readDetachedBytes(partPath: string): Uint8Array | undefined;
606
- readRelationships(partPath: string): {
607
- readonly entries: readonly ParsedRelationshipEntry[];
608
- readonly diagnostics: readonly ImportDiagnostic[];
609
- };
610
- };
611
- type DeferredSlideLink = {
612
- readonly targetPart: string;
613
- readonly relationshipId: string;
614
- readonly location: ImportLocation;
615
- apply(targetSlideId: string): void;
616
- };
617
- type ShapeTreeImportContext = {
618
- readonly cursor: XmlElementCursor;
619
- readonly part: string;
620
- readonly slideIndex: number;
621
- readonly package: PptxPackage;
622
- readonly containerNode?: CommonNode;
623
- readonly relationships?: ReadonlyMap<string, ParsedRelationshipEntry>;
624
- readonly registerDeferredSlideLink?: (link: DeferredSlideLink) => void;
625
- readonly registerImportedObject?: (spid: number, node: CommonNode) => void;
626
- readonly layoutPlaceholders?: PlaceholderMap;
627
- readonly masterPlaceholders?: MasterPlaceholderMap;
628
- readonly clrMap?: Readonly<Record<string, NativeColorSlot>>;
629
- };
630
- type ShapeTreeImportOutcome = {
631
- readonly node?: CommonNode;
632
- readonly diagnostics?: readonly ImportDiagnostic[];
633
- };
634
- type ShapeTreeImportHandler = {
635
- readonly target: "shape-tree";
636
- readonly localName: "sp" | "pic" | "grpSp" | "graphicFrame" | "cxnSp";
637
- /** Refines matching when multiple mechanisms share an element localName (such as `p:sp`). */
638
- matches?(cursor: XmlElementCursor): boolean;
639
- read(context: ShapeTreeImportContext): ShapeTreeImportOutcome;
640
- };
641
- type OmittedSlideObjectInfo = {
642
- readonly objectName?: string;
643
- readonly reason: "unsupported" | "corrupt";
644
- };
645
- type SlideImportContext = {
646
- readonly slideCursor: XmlElementCursor;
647
- readonly slideNode: CommonNode;
648
- readonly part: string;
649
- readonly slideIndex?: number;
650
- readonly package: PptxPackage;
651
- readonly objectBySpid?: ReadonlyMap<number, CommonNode>;
652
- readonly omittedSpids?: ReadonlyMap<number, OmittedSlideObjectInfo>;
653
- readonly placeholderKeyBySpid?: ReadonlyMap<number, string>;
654
- };
655
- type SlideImportOutcome = {
656
- readonly diagnostics?: readonly ImportDiagnostic[];
657
- };
658
- type SlideImportHandler = {
659
- readonly target: "slide";
660
- readonly slot: "background" | "header-footer" | "transition" | "timing" | "notes";
661
- /** Refines matching when multiple mechanisms share a slide slot. */
662
- matches?(cursor: XmlElementCursor): boolean;
663
- read(context: SlideImportContext): SlideImportOutcome;
664
- };
665
- type DeckImportContext = {
666
- readonly presentationCursor: XmlElementCursor;
667
- readonly deckNode: DeckContainer;
668
- readonly package: PptxPackage;
669
- readonly relById?: ReadonlyMap<string, ParsedRelationshipEntry>;
670
- readonly usedDeckIds?: Set<string>;
671
- readonly slideHandlers?: readonly SlideImportHandler[];
672
- readonly shapeTreeHandlers?: readonly ShapeTreeImportHandler[];
673
- readonly registerDeferredSlideLink?: (link: DeferredSlideLink) => void;
674
- readonly layoutNodeByPartPath?: Map<string, SlideLayoutContainer>;
675
- readonly clrMapByLayoutPartPath?: Map<string, Readonly<Record<string, NativeColorSlot>>>;
676
- readonly slideNodeByPresentationSldId?: ReadonlyMap<number, CommonNode>;
677
- };
678
- type DeckImportOutcome = {
679
- readonly diagnostics?: readonly ImportDiagnostic[];
680
- };
681
- type DeckImportHandler = {
682
- readonly target: "deck";
683
- readonly stage?: "pre-slides" | "post-slides";
684
- readonly read: (context: DeckImportContext) => DeckImportOutcome;
685
- };
686
- type TextInlineImportContext = {
687
- readonly cursor: XmlElementCursor;
688
- readonly part: string;
689
- readonly slideIndex: number;
690
- };
691
- type TextInlineImportHandler = {
692
- readonly target: "text-inline";
693
- readonly localName: "fld";
694
- matches?(cursor: XmlElementCursor): boolean;
695
- read(context: TextInlineImportContext): {
696
- readonly kind: "slide-number" | "unsupported";
697
- readonly fieldType: string;
698
- readonly rPrCursor?: XmlElementCursor;
699
- readonly fallbackText: string;
700
- readonly diagnostics: readonly ImportDiagnostic[];
701
- };
702
- };
703
- /** Concrete import-direction handler bound onto production mechanism definitions. */
704
- type ImportMechanismHandler = ShapeTreeImportHandler | SlideImportHandler | DeckImportHandler | TextInlineImportHandler;
705
- declare const arrowTypeSchema: z.ZodEnum<{
706
- arrow: "arrow";
707
- diamond: "diamond";
708
- none: "none";
709
- oval: "oval";
710
- stealth: "stealth";
711
- triangle: "triangle";
712
- }>;
713
- type ArrowType = z.infer<typeof arrowTypeSchema>;
714
- type ImportResult = {
715
- readonly document: CommonNode;
716
- readonly report: ImportReport;
717
- };
718
- /**
719
- * Creates a Transitional PPTX importer bound to the caller's registered capability modules.
720
- *
721
- * The returned function owns OPC package traversal, XML cursor tracking, and structured diagnostics,
722
- * while delegating native object/slide parsing to mechanisms declared by `capabilities`.
723
- */
724
- declare function createImporter(capabilities: readonly RegisteredCapabilityModule[]): (input: Uint8Array, options?: ImportOptions) => ImportResult;
725
- export { SlideCodegenContribution as A, CodegenEntryName as C, CodegenResult as D, CodegenOptions as E, BuildQueryError as F, codegenDiagnosticSchema as M, codegenOptionsSchema as N, CodegenTarget as O, codegenTargetSchema as P, CodegenDiagnosticCode as S, CodegenFileContent as T, importLocationSchema as _, CascadedOmission as a, createCodegen as b, ImportDiagnostic as c, ImportOptions as d, ImportReport as f, importDiagnosticSchema as g, fatalImportIssueSchema as h, ImportMechanismHandler as i, codegenDiagnosticCodeSchema as j, ObjectCodegenContribution as k, ImportError as l, editabilityLossSchema as m, createImporter as n, EditabilityLoss as o, cascadedOmissionSchema as p, ArrowType as r, FatalImportIssue as s, ImportResult as t, ImportLocation as u, importOptionsSchema as v, CodegenError as w, CodegenDiagnostic as x, importReportSchema as y };