@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,7 +1,7 @@
1
- import { BuildError } from "../../core/dist/diagnostics.js";
2
- import "../../core/dist/index.js";
3
- import { CommonContainer, CommonNode } from "../../core/dist/document.js";
4
- import { attachHostChild, createHostInstance, createHostText, detachHostChild, insertRootChild, lockHandoffTree, removeRootChild, updateHostInstance, updateHostText } from "./document-adapter.js";
1
+ import { BuildError, toBuildDiagnostic } from "../../core/dist/kernel/diagnostics.js";
2
+ import { CommonContainer, CommonNode } from "../../core/dist/kernel/document.js";
3
+ import "../../core/dist/kernel/index.js";
4
+ import { appendInitialHostChild, commitMountHostInstance, createHostContainer, createHostInstance, createHostText, insertHostChild, isMountHostRecord, lockHandoffTree, releaseContainerMounts, removeHostChild, updateHostInstance, updateHostText } from "./document-adapter.js";
5
5
  import { createContext } from "react";
6
6
  import Reconciler from "react-reconciler";
7
7
  import { ConcurrentRoot, DefaultEventPriority } from "react-reconciler/constants.js";
@@ -22,32 +22,32 @@ const reconciler = Reconciler({
22
22
  cancelTimeout: clearTimeout,
23
23
  NotPendingTransition: null,
24
24
  HostTransitionContext: hostTransitionContext,
25
- createInstance(type, props) {
26
- return createHostInstance(type, props);
25
+ createInstance(type, props, rootContainer) {
26
+ return createHostInstance(type, props, rootContainer);
27
27
  },
28
- createTextInstance(text) {
29
- return createHostText(text);
28
+ createTextInstance(text, rootContainer) {
29
+ return createHostText(text, rootContainer);
30
30
  },
31
31
  appendInitialChild(parent, child) {
32
- attachHostChild(parent, child);
32
+ appendInitialHostChild(parent, child);
33
33
  },
34
34
  appendChild(parent, child) {
35
- attachHostChild(parent, child);
35
+ insertHostChild(parent, child);
36
36
  },
37
37
  appendChildToContainer(container, child) {
38
- insertRootChild(container, child);
38
+ insertHostChild(container, child);
39
39
  },
40
40
  insertBefore(parent, child, before) {
41
- attachHostChild(parent, child, before);
41
+ insertHostChild(parent, child, before);
42
42
  },
43
43
  insertInContainerBefore(container, child, before) {
44
- insertRootChild(container, child, before);
44
+ insertHostChild(container, child, before);
45
45
  },
46
46
  removeChild(parent, child) {
47
- detachHostChild(parent, child);
47
+ removeHostChild(parent, child);
48
48
  },
49
49
  removeChildFromContainer(container, child) {
50
- removeRootChild(container, child);
50
+ removeHostChild(container, child);
51
51
  },
52
52
  commitUpdate(instance, _type, _previous, next) {
53
53
  updateHostInstance(instance, next);
@@ -62,8 +62,12 @@ const reconciler = Reconciler({
62
62
  resetTextContent() {},
63
63
  clearContainer(container) {
64
64
  container.children.length = 0;
65
+ container.hostOrder.length = 0;
66
+ },
67
+ finalizeInitialChildren: (instance) => isMountHostRecord(instance),
68
+ commitMount(instance) {
69
+ commitMountHostInstance(instance);
65
70
  },
66
- finalizeInitialChildren: () => false,
67
71
  shouldSetTextContent: () => false,
68
72
  getRootHostContext: () => ({}),
69
73
  getChildHostContext: (parent) => parent,
@@ -107,12 +111,7 @@ function containsSuspendedBoundary(fiber) {
107
111
  return false;
108
112
  }
109
113
  function diagnostic(path, code, message) {
110
- return {
111
- severity: "error",
112
- path,
113
- code,
114
- message
115
- };
114
+ return toBuildDiagnostic(path, code, message);
116
115
  }
117
116
  function isDeckNode(node) {
118
117
  return node instanceof CommonContainer && node.type === "deck";
@@ -139,7 +138,7 @@ function completedDocument(container) {
139
138
  */
140
139
  async function expandReactRoot(element, signal, select) {
141
140
  if (signal?.aborted) throw signal.reason;
142
- const container = { children: [] };
141
+ const container = createHostContainer();
143
142
  let outcome = "running";
144
143
  let outcomeError;
145
144
  let cleanupError;
@@ -240,6 +239,7 @@ async function expandReactRoot(element, signal, select) {
240
239
  });
241
240
  attemptCleanup(() => reconciler.flushSyncWork());
242
241
  attemptCleanup(() => reconciler.flushPassiveEffects());
242
+ attemptCleanup(() => releaseContainerMounts(container));
243
243
  } finally {
244
244
  if (currentAdapterInstalled && currentDescriptor !== void 0) attemptCleanup(() => {
245
245
  Object.defineProperty(root, "current", {
@@ -267,15 +267,15 @@ async function expandReactRoot(element, signal, select) {
267
267
  async function expandReactDocument(element, signal) {
268
268
  return expandReactRoot(element, signal, (container) => {
269
269
  const candidate = completedDocument(container);
270
- lockHandoffTree(candidate);
270
+ lockHandoffTree(container);
271
271
  return candidate;
272
272
  });
273
273
  }
274
274
  function completedFragment(container) {
275
275
  const nodes = container.children.filter((child) => child instanceof CommonNode);
276
- if (container.children.some((child) => "text" in child && child.text.trim() !== "")) throw new BuildError([diagnostic("fragment", "unexpected-text", "No text allowed outside an editable node in an appended JSX fragment")]);
276
+ if (container.children.some((child) => "text" in child && child.text.trim() !== "")) throw new BuildError([diagnostic("fragment", "unexpected-text", "No text allowed outside an editable node in a JSX fragment")]);
277
277
  const frozen = Object.freeze(nodes);
278
- for (const node of frozen) lockHandoffTree(node);
278
+ lockHandoffTree(container);
279
279
  return frozen;
280
280
  }
281
281
  /**
package/dist/react.d.ts CHANGED
@@ -1,66 +1,112 @@
1
- import { $n as FontFace, Cn as LayoutLength, Cr as VisualStyle, Dr as defaultColorMap, En as PaddingStyle, Er as darker, Fn as SectionProps$1, Fr as lighter, Ft as MorphKey, Gr as AuthorId, Gt as SlideLayoutDefinition, Ht as FooterPlaceholders, In as SlideBackground, Ir as nativeColorSlots, It as MorphScope, Jt as SlideLayoutType, Ln as SlideFooterValue, Lr as schemeColorNames, Lt as createMorphScope, Mn as DeckProps$1, Mr as isSchemeColorName, Nn as LinkTarget, Nr as isSchemeColorSlot, Or as defaultTheme, Pn as PlaceholderSize, Pr as isTheme, Qn as Font, Rn as SlideNumberValue, Rr as schemeColorSlots, Rt as isMorphKey, S as PresetGeometryName, Sn as TextPlaceholderRole, Sr as ThemeShade, Tn as LayoutStyle, Ut as HeaderFooter, Vt as FooterPlaceholderSpec, Xn as ColorMapOverride, Yn as ColorMap, Zn as ColorValue, _ as CustomGeometry, _n as PlaceholderOrient, a as CommonContainer, ar as GradientStop, b as PathCommand, bn as PlaceholderSz, br as ThemeOverride, c as DocumentProps, cn as EmptyPlaceholderMap, cr as RadialGradient, d as RichTextContainer, dn as MasterPlaceholderSpec, dr as SchemeColorSlot, en as isSlideLayoutDefinition, er as FontFaceStyle, f as RichTextItem, fn as MasterTextStyles, fr as Shadow, g as StyleUpdate, gn as PlaceholderMap, gr as ThemeColor, h as SlideMasterContainer, hn as PlaceholderListStyles, hr as Theme, i as AuthorQueryError, ir as FormatScheme, jr as isNativeColorSlot, kr as defineTheme, l as DocumentStyle, ln as LayoutPlaceholderSpec, m as SlideLayoutContainer, mn as PlaceholderLevelStyle, mr as TextStyle, n as AuthorNodeGuard, nr as FontReference, o as CommonNode, or as LinearGradient, p as SlideContainer, pn as NativePlaceholderRef, pr as TextAlignment, r as AuthorQuery, rr as FontSize, s as DeckContainer, sn as ContentPlaceholderRole, sr as NativeColorSlot, tr as FontOptions, u as DocumentUpdate, un as MasterPlaceholderMap, ur as SchemeColorName, v as Geometry, vr as ThemeData, wn as LayoutSpacing, x as PresetGeometry, xn as TextList, xr as ThemeScope, y as GeometryPath, yn as PlaceholderStyle, yr as ThemeInput, zn as SlideProps$2 } from "./capability-D_xeNVIw.js";
2
- import { r as ArrowType } from "./index-DpxcZ4Gs.js";
3
- import { $n as MotionDirection, $r as LineOrAreaChartGroup, $t as NotesDeclarationProps, A as SlideLayoutSource, Ai as ParagraphStyle, An as fade, Ar as ChartErrorBars, At as ShapeDeclarationProps, Bn as zoom, Br as ChartSeries, Bt as CellDeclarationProps, Ci as PathOptions, Cn as MotionScopeProps, Cr as ChartCustomErrorBars, Ct as SlideNumberDeclarationProps, Dn as after, Dr as ChartDisplayBlanksAs, Ei as preset, En as StepProps, Er as ChartDataLabels, Fn as repeat, Fr as ChartLineDash, Ft as ImageSource, Gn as EffectOptions, Gr as ChartTrendline, Gt as TableRowStyle, Hn as BreatheOptions, Hr as ChartTickLabelPosition, Ht as TableCellStyle, In as spin, Ir as ChartMarker, It as ImageVisualStyle, Jn as EmphasisEffectDeclaration, Jr as ChartXYAxisReferences, Jt as TableTextStyle, Kn as EffectPreset, Kr as ChartTrendlineType, Kt as TableSpacing, Ln as spinIn, Lr as ChartMarkerSymbol, Lt as GroupDeclarationProps, Mi as font, Mn as floatDown, Mr as ChartGroupData, Nn as floatUp, Nr as ChartKind, O as SlideLayoutAuthorProps, On as breathe, Or as ChartErrorBarInclude, Pn as fly, Pr as ChartLine, Pt as ImageDeclarationProps, Qn as MotionCompletionState, Qr as IndependentCategorySeries, Rn as stretch, Rr as ChartPoint, Si as radialGradient, Sn as MotionScopeObservation, Sr as ChartCategoryAxisReferences, St as ShapeTextStyle, Ti as path, Tn as MotionStepObservation, Tt as TextDeclarationProps, Un as Easing, Ur as ChartTickMark, Ut as TableColumn, Vn as BreatheEffect, Vr as ChartSeriesDataLabelOverride, Vt as RowDeclarationProps, Wn as Effect, Wr as ChartTitle, Wt as TableDeclarationProps, Xn as EntranceEffectDeclaration, Xr as DoughnutChartGroup, Xt as TableVerticalAlign, Yn as EntranceEffect, Yr as ColumnOrBarChartGroup, Zn as FillColorOptions, Zr as IndependentCategoryData, _n as MotionTime, _r as ChartAxis, _t as TransitionDirection, ai as ScatterDataLabelOverride, an as MotionDifference, ar as MotionScopeHandle, bi as ShapeVisualStyle, bn as MotionNativeProjection, br as ChartAxisReferences, bt as transitions, ci as ScatterLine, cn as MotionMembership, cr as MotionTargetRange, dn as MotionQuery, dr as OwnerMotionEffect, dt as MorphProps, ei as PieChartGroup, en as EffectInstanceObservation, er as MotionGranularity, f as InferPlaceholderMap, fn as MotionScopeQueryMember, fr as OwnerMotionStep, ft as FlipTransition, gn as MotionStepRef, gr as SpinOptions, gt as Transition, hi as LineEndStyle, hn as MotionStepQuery, hr as RepeatedEffect, ht as StripsDirection, ii as ScatterData, in as MotionDependencyObservation, j as SlideMasterAuthorProps, jn as fillColor, jr as ChartGroup, jt as PlaceholderDeclarationProps, kn as createMotionScopeHandle, kr as ChartErrorBarValues, kt as TypedElement, li as SharedCategoryData, ln as MotionMomentObservation, lr as MotionTiming, mn as MotionScopeRef, mr as RepeatCount, mt as StandardTransition, ni as ScatterChartPoint, nn as MotionCueRef, nr as MotionMomentOffset, oi as ScatterDataLabels, on as MotionEffectRef, or as MotionScopeMode, p as JsxPlaceholders, pn as MotionScopeQueryObservation, pr as OwnerMotionTarget, pt as MorphTransition, q as defineSlideLayout, qn as EmphasisEffect, qr as ChartValueAxis, qt as TableStyle, ri as ScatterChartSeries, rn as MotionDecision, rr as MotionProps, si as ScatterErrorBars, sn as MotionIntervalRef, ti as ScatterChartGroup, tn as MotionCueObservation, tr as MotionMoment, un as MotionMomentRef, ur as OwnerMotion, vn as observeMotion, vr as ChartAxisCrossing, vt as TransitionDuration, wi as blockArc, wn as MotionStartDependency, wr as ChartDataLabelOverride, wt as SpanDeclarationProps, xi as linearGradient, xn as MotionObservation, xr as ChartCategoryAxis, xt as ParagraphDeclarationProps, yn as MotionEffectObservation, yr as ChartAxisPosition, yt as TransitionSpeed, zn as wipe, zr as ChartProps, zt as BoxDeclarationProps } from "./document-BHPUODPP.js";
4
- import "./transition-Cips9wma.js";
5
- import { Key, ReactNode } from "react";
1
+ import { $n as TextStyle, $t as MasterTextStyles, A as SlideContainer, An as ColorMapOverride, Ar as nativeColorSlots, B as ResolvedSlideLayout, Bn as HexColor, Bt as UnmeasuredFontIssue, C as CommonNode, Cn as PresetGeometryName, Ct as ResolvedAudio, D as DocumentUpdate, Dr as isTheme, E as DocumentStyle, Er as isSchemeColorSlot, Et as ResolvedFooterSlot, F as FooterPlaceholderSpec, Fn as FontOptions, Ft as ResolvedVideo, Gn as LinearGradient, Gt as isMorphKey, Hr as BuildDiagnostic, Ht as MorphKey, I as FooterPlaceholders, In as FontReference, Ir as themeFontSlots, It as ScreenPoint, Jn as SchemeColorName, Jt as ContentPlaceholderRole, Kn as NativeColorSlot, L as HeaderFooter, Ln as FontSize, M as SlideMasterContainer, Mn as Font, Mr as schemeColorSlots, Mt as ResolvedTable, N as StyleUpdate, Nn as FontFace, Nt as ResolvedTableCell, O as RichTextContainer, Or as isThemeFontSlot, Ot as ResolvedLayout, P as DateTimeFooterPlaceholderSpec, Pn as FontFaceStyle, Pt as ResolvedTableRow, Qn as TextFillValue, Qt as MasterPlaceholderSpec, R as ResolvedMaster, Rn as FormatScheme, Rt as SlideLocator, S as CommonContainer, Sn as PresetGeometry, T as DocumentProps, Tr as isSchemeColorName, Tt as ResolvedFooter, U as SlideLayoutType, Ut as MorphScope, Wn as LineHeight, Wt as createMorphScope, Xn as Shadow, Xt as LayoutPlaceholderSpec, Yn as SchemeColorSlot, Yt as EmptyPlaceholderMap, Zn as TextAlignment, Zt as MasterPlaceholderMap, _r as defaultTheme, a as SectionProps$1, an as PlaceholderStyle, ar as ThemeOverride, b as AuthorQuery, bn as GeometryPath, c as SlideDateTimeValue, dn as LayoutStyle, en as PlaceholderLevelStyle, er as Theme, gr as defaultColorMap, gt as ObjectTransform, hr as darker, i as LinkTarget, in as PlaceholderSize, ir as ThemeInput, j as SlideLayoutContainer, jn as ColorValue, jr as schemeColorNames, jt as ResolvedSlide, k as RichTextItem, kn as ColorMap, kr as lighter, kt as ResolvedObject, l as SlideFooterValue, ln as LayoutLength, lt as FontStyleDescriptor, mi as AuthorId, mt as MediaTrim, nn as PlaceholderMap, nr as ThemeData, o as SlideBackground, on as TextList, or as ThemeShade, pn as PaddingStyle, qn as RadialGradient, rn as PlaceholderOrient, rr as ThemeFontSlot, sn as TextPlaceholderRole, sr as VisualStyle, ti as buildDiagnosticSchema, tn as PlaceholderListStyles, tr as ThemeColor, u as SlideNumberValue, un as LayoutSpacing, ut as FontUsage, vn as CustomGeometry, vr as defineTheme, vt as Rect, w as DeckContainer, wi as DateTimeFormat, wr as isNativeColorSlot, wt as ResolvedComment, x as AuthorQueryError, xn as PathCommand, y as AuthorNodeGuard, yn as Geometry, z as ResolvedPlaceholder, zn as GradientStop, zt as TextMetrics } from "./index-B9_OUeA-.js";
2
+ import { t as ArrowType } from "./index-DA9flrlR.js";
3
+ import { $ as SupNode, $i as MotionCompletionState, $n as createMotionScopeHandle, $r as ChartLine, $t as MotionScopeSchedule, An as ShapeDeclarationProps, Ar as LineStrokeValue, Bi as Easing, Bn as SpanDeclarationProps, Br as ChartAxisReferences, Bt as EffectInstance, Ca as path, Ci as ScatterData, Cn as TableDeclarationProps, Cr as LineEndpoint, Di as ScatterLine, Dn as TableTextStyle, Dr as LineStyle, Ei as ScatterErrorBars, En as TableStyle, Er as LineRouting, F as SlideLayoutDefinition, Fi as ImageDeclarationProps, Fn as DateTimeDeclarationProps, Fr as PrintHeaderFooter, Gi as EmphasisEffectDeclaration, Gn as MotionStartDependency, Gr as ChartDataLabels, Gt as MotionDifference, Hi as EffectOptions, Hn as SupDeclarationProps, Hr as ChartCategoryAxisReferences, Ht as MotionCueRef, Ii as ImageSource, In as ParagraphDeclarationProps, Ir as ChartNode, Ji as ExitEffect, Jn as ResolvedMotionStep, Jr as ChartErrorBarValues, Jt as MotionMembership, K as SlidePropsBase, Ki as EntranceEffect, Kn as ResolvedMotionEffect, Kr as ChartDisplayBlanksAs, Kt as MotionEffectRef, L as SlideLayoutProps$1, Li as ImageVisualStyle, Ln as ParagraphStyle, Lr as ChartAxis, Lt as CommentAuthorProps, Mi as AudioDeclarationProps, Mn as PlaceholderDeclarationProps, Mr as radialGradient, N as SlideLayoutBinding, Ni as MediaPlaybackProps, Nn as PlaceholderNode, Nr as GroupDeclarationProps, Oi as SharedCategoryData, On as TableVerticalAlign, Or as LineVisualStyle, Pi as VideoDeclarationProps, Pn as NotesDeclarationProps, Pr as PrintDateTimeValue, Qi as InstantEffectOptions, Qn as collapse, Qr as ChartKind, Qt as MotionScopeRef, R as SlideLayoutSource, Ri as BreatheEffect, Rn as RunTextStyle, Rr as ChartAxisCrossing, Sa as blockArc, Si as ScatterChartSeries, Sn as TableColumn, Sr as LineDeclarationProps, Ti as ScatterDataLabels, Tn as TableSpacing, Tr as LinePort, Ui as EffectPreset, Un as TextDeclarationProps, Ur as ChartCustomErrorBars, Ut as MotionDecision, V as SlideMasterProps$1, Vi as Effect, Vn as SubDeclarationProps, Vr as ChartCategoryAxis, Vt as MotionCue, W as SlideNumberNode, Wi as EmphasisEffect, Wn as MotionNativeProjection, Wr as ChartDataLabelOverride, Wt as MotionDependency, Xi as ExitPreset, Xn as appear, Xr as ChartGroup, Xt as MotionSchedule, Y as SpanNode, Yi as ExitEffectDeclaration, Yn as after, Yr as ChartErrorBars, Yt as MotionMomentRef, Z as SubNode, Zi as FillColorOptions, Zn as breathe, Zr as ChartGroupData, Zt as MotionScopeQueryMember, _a as SpinOptions, _i as IndependentCategorySeries, _r as zoom, aa as MotionScopeAuthorProps, ai as ChartSeries, an as VideoNode, ar as floatOut, ba as MorphProps, bi as ScatterChartGroup, bn as RowDeclarationProps, br as fromFontCollection, ca as MotionStepAuthorProps, ci as ChartTickMark, cn as MorphTransition, cr as flyOut, da as OwnerMotion, di as ChartTrendlineType, dn as Transition, dr as spin, dt as defineSlideLayout, ea as MotionDirection, ei as ChartLineDash, en as MotionStepQuery, er as disappear, fa as OwnerMotionEffect, fi as ChartValueAxis, fn as TransitionDirection, fr as spinIn, ga as RepeatedEffect, gi as IndependentCategoryData, gr as wipeOut, h as InferPlaceholderMap, ha as RepeatCount, hi as DoughnutChartGroup, hn as transitions, hr as wipe, ia as MotionProps, ii as ChartProps, in as motionSchedule, ir as floatDown, ji as AudioSource, jn as PlaceholderFillKindForRole, jr as linearGradient, ki as BoxDeclarationProps, kn as ShapeTextStyle, kr as LineStroke, l as DeckProps$1, la as MotionTargetRange, li as ChartTitle, ln as StandardTransition, lr as onStep, ma as OwnerMotionTarget, mi as ColumnOrBarChartGroup, mn as TransitionSpeed, mr as stretch, mt as isSlideLayoutDefinition, na as MotionMoment, ni as ChartMarkerSymbol, nn as MotionTime, nr as fadeOut, o as DateTimeNode, oa as MotionScopeHandle, oi as ChartSeriesDataLabelOverride, on as VideoSource, or as floatUp, p as ImageNode, pa as OwnerMotionStep, pi as ChartXYAxisReferences, pn as TransitionDuration, pr as spinOut, qi as EntranceEffectDeclaration, qn as ResolvedMotionScope, qr as ChartErrorBarInclude, qt as MotionIntervalRef, ra as MotionMomentOffset, ri as ChartPoint, rn as ResolvedMotionMoment, rr as fillColor, rt as TextNode, sa as MotionScopeMode, si as ChartTickLabelPosition, sn as FlipTransition, sr as fly, ta as MotionGranularity, ti as ChartMarker, tn as MotionStepRef, tr as fade, ua as MotionTiming, ui as ChartTrendline, un as StripsDirection, ur as repeat, va as SteppedEffect, vi as LineOrAreaChartGroup, vn as TableNode, vr as zoomOut, w as ParagraphNode, wa as preset, wi as ScatterDataLabelOverride, wn as TableRowStyle, wr as LineLayoutStyle, xa as PathOptions, xi as ScatterChartPoint, xn as TableCellStyle, xr as LineAdjust, yi as PieChartGroup, yn as CellDeclarationProps, yr as font, zi as BreatheOptions, zn as SlideNumberDeclarationProps, zr as ChartAxisPosition } from "./document-C0lPlH-L.js";
4
+ import { Key, ReactElement, ReactNode } from "react";
5
+ declare const elementKindBrand: unique symbol;
6
+ /**
7
+ * Distinguishes native capability categories when an element retains its component return type.
8
+ * The resolver checks placeholder roles for JSX expressions, whose types lose this brand.
9
+ */
10
+ interface TypedElement<Kind extends string> extends ReactElement {
11
+ readonly [elementKindBrand]: (kind: Kind) => Kind;
12
+ }
13
+ /** React JSX expressions lose their component's declared return brand. */
14
+ type UnbrandedElement = ReactElement & {
15
+ readonly [elementKindBrand]?: never;
16
+ };
17
+ type JsxTextPlaceholderValue = string | UnbrandedElement | TypedElement<"text"> | TypedElement<"paragraph"> | TypedElement<"span"> | TypedElement<"sup"> | TypedElement<"sub"> | TypedElement<"slide-number"> | TypedElement<"date-time"> | TextNode | ParagraphNode | SpanNode | SupNode | SubNode | SlideNumberNode | DateTimeNode | readonly (string | UnbrandedElement | TypedElement<"paragraph"> | TypedElement<"span"> | TypedElement<"sup"> | TypedElement<"sub"> | TypedElement<"slide-number"> | TypedElement<"date-time"> | ParagraphNode | SpanNode | SupNode | SubNode | SlideNumberNode | DateTimeNode)[];
18
+ type JsxPlaceholderFillByKind = {
19
+ readonly text: JsxTextPlaceholderValue;
20
+ readonly "slide-number": string | UnbrandedElement | TypedElement<"slide-number"> | TypedElement<"text"> | SlideNumberNode | TextNode;
21
+ readonly video: UnbrandedElement | TypedElement<"video"> | VideoNode;
22
+ readonly image: UnbrandedElement | TypedElement<"image"> | ImageNode;
23
+ readonly table: UnbrandedElement | TypedElement<"table"> | TableNode;
24
+ readonly chart: UnbrandedElement | TypedElement<"chart"> | ChartNode;
25
+ readonly placeholder: TypedElement<"placeholder"> | PlaceholderNode;
26
+ };
27
+ type JsxPlaceholderFillByRole = { readonly [Role in ContentPlaceholderRole]: JsxPlaceholderFillByKind[PlaceholderFillKindForRole<Role>]; };
28
+ type JsxPlaceholderFillForRole<Role extends ContentPlaceholderRole> = JsxPlaceholderFillByRole[Role];
29
+ /**
30
+ * Slot values for a slide. Use `Placeholder({})` or `placeholder()` for an
31
+ * unpopulated diagram or media slot, or bind a `<Placeholder>` child by name.
32
+ */
33
+ type JsxPlaceholders<P extends PlaceholderMap> = { readonly [K in keyof P]?: JsxPlaceholderFillForRole<P[K]["type"]>; };
6
34
  type ElementProps = {
7
35
  readonly children?: ReactNode;
8
36
  };
37
+ /** Props for the root `<Deck>` component; canvas `width` and `height` are in CSS pixels (`1280 × 720` default). */
9
38
  type DeckProps = DeckProps$1 & ElementProps;
10
- type SlideProps$1 = SlideProps$2 & ElementProps & {
11
- readonly placeholders?: Readonly<Record<string, unknown>> | undefined;
12
- };
39
+ type SlideMasterProps = SlideMasterProps$1 & ElementProps;
40
+ type SlideLayoutProps<P extends PlaceholderMap = PlaceholderMap> = SlideLayoutProps$1<P> & ElementProps;
41
+ type SlideProps<L extends SlideLayoutSource | undefined = SlideLayoutSource | undefined> = SlidePropsBase & ElementProps & SlideLayoutBinding<L, JsxPlaceholders<InferPlaceholderMap<Exclude<L, undefined>>>>;
42
+ /** Props for `<Section>`, grouping contiguous child `<Slide>` elements into a native `p14:sectionLst` section. */
13
43
  type SectionProps = SectionProps$1 & ElementProps;
14
44
  export declare const Deck: (props: DeckProps) => ReactNode;
45
+ export declare const SlideMaster: (props: SlideMasterProps) => ReactNode;
46
+ export declare const SlideLayout: (props: SlideLayoutProps<Readonly<Record<string, LayoutPlaceholderSpec<"body" | "chart" | "clipArt" | "content" | "ctrTitle" | "dgm" | "dt" | "ftr" | "hdr" | "media" | "obj" | "pic" | "sldNum" | "subTitle" | "tbl" | "title">>>>) => ReactNode;
47
+ export declare function Slide<const L extends SlideLayoutSource | undefined = undefined>(props: SlideProps<L>): ReactNode;
15
48
  export declare const Section: (props: SectionProps) => ReactNode;
16
- type ExpandDocumentOptions = {
49
+ /**
50
+ * Props for {@link Mount}, adopting pre-constructed editable nodes into a React tree without
51
+ * introducing a wrapper node.
52
+ */
53
+ type MountProps = {
17
54
  /**
18
- * Cooperative cancellation for one React expansion; no default timeout when unspecified.
19
- * Cancellation before or during expansion rejects with the original reason.
55
+ * Pre-constructed editable node, read-only node list, or empty value to attach directly into
56
+ * the enclosing container.
20
57
  */
21
- readonly signal?: AbortSignal | undefined;
58
+ readonly node: CommonNode | readonly CommonNode[] | null | undefined;
59
+ readonly slot?: undefined;
60
+ readonly children?: undefined;
61
+ } | {
62
+ /** Single pre-constructed editable root node attached to the enclosing container. */
63
+ readonly node: CommonNode;
64
+ /**
65
+ * Target container inside `node` (or `node` itself) where JSX `children` are reconciled
66
+ * after any pre-existing imperative children.
67
+ */
68
+ readonly slot: CommonContainer;
69
+ /** JSX children reconciled inside `slot`. */
70
+ readonly children?: ReactNode;
22
71
  };
23
- /** Options for one JSX fragment append; cancellation covers expansion and cleanup only. */
24
- type AppendJSXOptions = ExpandDocumentOptions;
25
- /** Completed editable document handed off by React expansion. */
26
- type ExpandedDocument = CommonContainer<"deck">;
27
72
  /**
28
- * Public React handoff entry: runs author components to completion, waits for declared content,
29
- * cleans up the React root, and returns the completed editable document.
73
+ * Adopts pre-constructed {@link CommonNode} instances directly into the React tree without
74
+ * creating a wrapper node.
30
75
  *
31
- * The returned nodes no longer synchronize with the finished root. Repeat expansion creates a new
32
- * document instance and does not merge edits made to a previous result. Unhandled render errors,
33
- * cancellation, and cleanup failures reject; no partial document is returned.
76
+ * Adopted nodes retain their own props, identity, and imperative subtree, participate in layout
77
+ * and motion, and enforce strict single-parent ownership. When `slot` is provided,
78
+ * JSX `children` are reconciled inside `slot` after any imperative preset children.
34
79
  */
35
- export declare function expandDocument(element: ReactNode, options?: ExpandDocumentOptions): Promise<ExpandedDocument>;
80
+ export declare function Mount(props: MountProps): ReactNode;
36
81
  /**
37
- * Public React append entry: expands one standalone JSX fragment, waits for final content and
38
- * cleanup, then appends its top-level editable nodes to `target` as one batch.
39
- *
40
- * The fragment runs in its own root, so React context comes from the fragment or an explicit
41
- * Provider inside it; the target's finished root is not revived. Expansion, unhandled errors,
42
- * cancellation, cleanup failures, and id conflicts leave the target unchanged. Id conflicts are
43
- * checked against the target's current structure at commit time, so edits made while the fragment
44
- * expands are respected. The returned nodes are the exact instances now owned by the target.
82
+ * Result returned by a container vanilla factory to bridge both an outer node and an inner slot
83
+ * container into React via {@link fromVanilla}.
45
84
  */
46
- export declare function appendJSX(target: CommonContainer, element: ReactNode, options?: AppendJSXOptions): Promise<readonly CommonNode[]>;
47
- type BaseSlideProps = Omit<SlideProps$1, "transition" | "layout" | "placeholders"> & {
48
- readonly transition?: Transition;
85
+ type VanillaSlotResult<Node extends CommonNode = CommonNode, Slot extends CommonContainer = CommonContainer> = {
86
+ /** Outer editable node mounted into the enclosing React container. */
87
+ readonly node: Node;
88
+ /** Descendant container (or `node` itself) where React reconciles JSX `children`. */
89
+ readonly slot: Slot;
49
90
  };
50
- type BoundSlideProps<L extends SlideLayoutSource = SlideLayoutSource> = BaseSlideProps & {
51
- readonly layout: L;
52
- readonly placeholders?: JsxPlaceholders<InferPlaceholderMap<L>>;
53
- };
54
- type FreeSlideProps = BaseSlideProps & {
55
- readonly layout?: undefined;
56
- readonly placeholders?: never;
57
- };
58
- type SlideProps<L extends SlideLayoutSource | undefined = SlideLayoutSource | undefined> = [L] extends [undefined] ? FreeSlideProps : [L] extends [SlideLayoutSource] ? BoundSlideProps<L> : BoundSlideProps | FreeSlideProps;
59
- type SlideMasterProps = SlideMasterAuthorProps & ElementProps;
60
- type SlideLayoutProps = SlideLayoutAuthorProps & ElementProps;
61
- export declare function Slide<const L extends SlideLayoutSource | undefined = undefined>(props: SlideProps<L>): ReactNode;
62
- export declare const SlideMaster: (props: SlideMasterProps) => ReactNode;
63
- export declare const SlideLayout: (props: SlideLayoutProps) => ReactNode;
91
+ /**
92
+ * Maps a vanilla factory function onto its React component props, preserving optional and default
93
+ * parameter objects while allowing `children` only when the factory returns {@link VanillaSlotResult}.
94
+ */
95
+ type VanillaFactoryProps<F extends (props: never) => CommonNode | VanillaSlotResult> = Parameters<F> extends readonly [] ? {
96
+ readonly children?: ReturnType<F> extends VanillaSlotResult ? ReactNode : never;
97
+ } : Parameters<F> extends readonly [props?: infer P] ? NonNullable<P> & {
98
+ readonly children?: ReturnType<F> extends VanillaSlotResult ? ReactNode : never;
99
+ } : never;
100
+ /**
101
+ * Wraps a framework-free `@officedk/pptxdk/vanilla` factory function as a first-class React
102
+ * component backed by {@link Mount}.
103
+ *
104
+ * Factories returning a single {@link CommonNode} produce closed components that statically reject
105
+ * `children`, while factories returning `{ node, slot }` produce container components whose JSX
106
+ * `children` are reconciled into `slot`. The factory output is memoized across re-renders and
107
+ * `<Suspense>` retries while non-`children` props remain shallow-equal.
108
+ */
109
+ export declare function fromVanilla<F extends (props: never) => CommonNode | VanillaSlotResult>(factory: F): (props: VanillaFactoryProps<F>) => ReactNode;
64
110
  type BoxProps = BoxDeclarationProps & {
65
111
  readonly key?: Key | null;
66
112
  readonly children?: ReactNode;
@@ -84,6 +130,18 @@ type ImageProps = ImageDeclarationProps & {
84
130
  };
85
131
  /** Declares a native image handled by the image module within the React tree. */
86
132
  export declare function Image(props: ImageProps): TypedElement<"image">;
133
+ type LineProps = LineDeclarationProps & {
134
+ /** Lines are 1D primitives and do not support nested children or text. */
135
+ readonly children?: never;
136
+ };
137
+ /** Declares a native `<p:cxnSp>` line or connector within the React tree. */
138
+ export declare function Line(props: LineProps): TypedElement<"line">;
139
+ type MotionScopeProps = MotionScopeAuthorProps & {
140
+ readonly children?: ReactNode;
141
+ };
142
+ type StepProps = MotionStepAuthorProps & {
143
+ readonly children?: ReactNode;
144
+ };
87
145
  /**
88
146
  * Keeps one pure scope identity for the lifetime of this component instance.
89
147
  *
@@ -95,6 +153,11 @@ export declare function useMotionScope(): MotionScopeHandle;
95
153
  export declare function MotionScope(props: MotionScopeProps): ReactNode;
96
154
  /** A single click triggers a group of objects; declarations with the same number share a click step. */
97
155
  export declare function Step(props: StepProps): ReactNode;
156
+ type CommentProps = CommentAuthorProps & {
157
+ readonly children: string;
158
+ };
159
+ /** Declares a plain-text review comment as a direct child of Slide. */
160
+ export declare function Comment({ children, ...props }: CommentProps): ReactNode;
98
161
  type NotesProps = NotesDeclarationProps & {
99
162
  readonly children?: ReactNode;
100
163
  };
@@ -102,7 +165,7 @@ type NotesProps = NotesDeclarationProps & {
102
165
  export declare function Notes(props: NotesProps): ReactNode;
103
166
  type PlaceholderProps = PlaceholderDeclarationProps;
104
167
  /** Declares an unpopulated native content placeholder bound to a layout placeholder slot. */
105
- export declare function Placeholder(props: PlaceholderProps): ReactNode;
168
+ export declare function Placeholder(props: PlaceholderProps): TypedElement<"placeholder">;
106
169
  type ShapeProps = ShapeDeclarationProps & {
107
170
  /** Native text nodes shared with Text; may contain P, Span, and SlideNumber. */
108
171
  readonly children?: ReactNode;
@@ -133,13 +196,74 @@ type ParagraphProps = ParagraphDeclarationProps & {
133
196
  type SpanProps = SpanDeclarationProps & {
134
197
  readonly children?: ReactNode;
135
198
  };
199
+ type SupProps = SupDeclarationProps & {
200
+ readonly children?: ReactNode;
201
+ };
202
+ type SubProps = SubDeclarationProps & {
203
+ readonly children?: ReactNode;
204
+ };
136
205
  type SlideNumberProps = SlideNumberDeclarationProps;
206
+ type DateTimeProps = DateTimeDeclarationProps;
137
207
  /** Native text box; numeric height preserves a fixed region, while auto height uses explicit font measurement. */
138
208
  export declare function Text(props: TextProps): TypedElement<"text">;
139
209
  /** Declares a native paragraph within a text box, with line spacing and paragraph list semantics. */
140
- export declare function P(props: ParagraphProps): TypedElement<"paragraph">;
210
+ declare function P$1(props: ParagraphProps): TypedElement<"paragraph">;
141
211
  /** Declares an individually styled text run within a paragraph. */
142
212
  export declare function Span(props: SpanProps): TypedElement<"span">;
213
+ /** Declares an inline superscript run (`baseline="30000"`). */
214
+ export declare function Sup(props: SupProps): TypedElement<"sup">;
215
+ /** Declares an inline subscript run (`baseline="-25000"`). */
216
+ export declare function Sub(props: SubProps): TypedElement<"sub">;
143
217
  /** Emits a native slide number field resolved by presentation applications. */
144
218
  export declare function SlideNumber(props: SlideNumberProps): TypedElement<"slide-number">;
145
- export { type AppendJSXOptions, type ArrowType, type AuthorId, type AuthorNodeGuard, AuthorQuery, AuthorQueryError, type BoxProps, type BreatheEffect, type BreatheOptions, type CellProps, type ChartAxis, type ChartAxisCrossing, type ChartAxisPosition, type ChartAxisReferences, type ChartCategoryAxis, type ChartCategoryAxisReferences, type ChartCustomErrorBars, type ChartDataLabelOverride, type ChartDataLabels, type ChartDisplayBlanksAs, type ChartErrorBarInclude, type ChartErrorBarValues, type ChartErrorBars, type ChartGroup, type ChartGroupData, type ChartKind, type ChartLine, type ChartLineDash, type ChartMarker, type ChartMarkerSymbol, type ChartPoint, type ChartProps, type ChartSeries, type ChartSeriesDataLabelOverride, type ChartTickLabelPosition, type ChartTickMark, type ChartTitle, type ChartTrendline, type ChartTrendlineType, type ChartValueAxis, type ChartXYAxisReferences, type ColorMap, type ColorMapOverride, type ColorValue, type ColumnOrBarChartGroup, CommonContainer, CommonNode, type ContentPlaceholderRole, type CustomGeometry, DeckContainer, type DeckProps, type DocumentProps, type DocumentStyle, type DocumentUpdate, type DoughnutChartGroup, type Easing, type Effect, type EffectInstanceObservation, type EffectOptions, type EffectPreset, type ElementProps, type EmphasisEffect, type EmphasisEffectDeclaration, type EmptyPlaceholderMap, type EntranceEffect, type EntranceEffectDeclaration, type ExpandDocumentOptions, type ExpandedDocument, type FillColorOptions, type FlipTransition, type Font, type FontFace, type FontFaceStyle, type FontOptions, type FontReference, type FontSize, type FooterPlaceholderSpec, type FooterPlaceholders, type FormatScheme, type Geometry, type GeometryPath, type GradientStop, type GroupProps, type HeaderFooter, type ImageProps, type ImageSource, type ImageVisualStyle, type IndependentCategoryData, type IndependentCategorySeries, type InferPlaceholderMap, type JsxPlaceholders, type LayoutLength, type LayoutPlaceholderSpec, type LayoutSpacing, type LayoutStyle, type LineEndStyle, type LineOrAreaChartGroup, type LinearGradient, type LinkTarget, type MasterPlaceholderMap, type MasterPlaceholderSpec, type MasterTextStyles, type MorphKey, type MorphProps, type MorphScope, type MorphTransition, type MotionCompletionState, type MotionCueObservation, type MotionCueRef, type MotionDecision, type MotionDependencyObservation, type MotionDifference, type MotionDirection, type MotionEffectObservation, type MotionEffectRef, type MotionGranularity, type MotionIntervalRef, type MotionMembership, type MotionMoment, type MotionMomentObservation, type MotionMomentOffset, type MotionMomentRef, type MotionNativeProjection, type MotionObservation, type MotionProps, type MotionQuery, type MotionScopeHandle, type MotionScopeMode, type MotionScopeObservation, type MotionScopeProps, type MotionScopeQueryMember, type MotionScopeQueryObservation, type MotionScopeRef, type MotionStartDependency, type MotionStepObservation, type MotionStepQuery, type MotionStepRef, type MotionTargetRange, type MotionTime, type MotionTiming, type NativeColorSlot, type NativePlaceholderRef, type NotesDeclarationProps, type NotesProps, type OwnerMotion, type OwnerMotionEffect, type OwnerMotionStep, type OwnerMotionTarget, type PaddingStyle, type ParagraphProps, type ParagraphStyle, type PathCommand, type PathOptions, type PieChartGroup, type PlaceholderLevelStyle, type PlaceholderListStyles, type PlaceholderMap, type PlaceholderOrient, type PlaceholderProps, type PlaceholderSize, type PlaceholderStyle, type PlaceholderSz, type PresetGeometry, type PresetGeometryName, type RadialGradient, type RepeatCount, type RepeatedEffect, RichTextContainer, type RichTextItem, type RowProps, type ScatterChartGroup, type ScatterChartPoint, type ScatterChartSeries, type ScatterData, type ScatterDataLabelOverride, type ScatterDataLabels, type ScatterErrorBars, type ScatterLine, type SchemeColorName, type SchemeColorSlot, type SectionProps, type Shadow, type ShapeProps, type ShapeTextStyle, type ShapeVisualStyle, type SharedCategoryData, type SlideBackground, SlideContainer, type SlideFooterValue, SlideLayoutContainer, type SlideLayoutDefinition, type SlideLayoutProps, type SlideLayoutSource, type SlideLayoutType, SlideMasterContainer, type SlideMasterProps, type SlideNumberProps, type SlideNumberValue, type SlideProps, type SpanProps, type SpinOptions, type StandardTransition, type StepProps, type StripsDirection, type StyleUpdate, type TableCellStyle, type TableColumn, type TableProps, type TableRowStyle, type TableSpacing, type TableStyle, type TableTextStyle, type TableVerticalAlign, type TextAlignment, type TextList, type TextPlaceholderRole, type TextProps, type TextStyle, type Theme, type ThemeColor, type ThemeData, type ThemeInput, type ThemeOverride, type ThemeScope, type ThemeShade, type Transition, type TransitionDirection, type TransitionDuration, type TransitionSpeed, type TypedElement, type VisualStyle, after, blockArc, breathe, createMorphScope, createMotionScopeHandle, darker, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, fade, fillColor, floatDown, floatUp, fly, font, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, lighter, linearGradient, nativeColorSlots, observeMotion, path, preset, radialGradient, repeat, schemeColorNames, schemeColorSlots, spin, spinIn, stretch, transitions, wipe, zoom };
219
+ /** Declares a native inline date/time field with no children. */
220
+ export declare function DateTime(props: DateTimeProps): TypedElement<"date-time">;
221
+ type VideoProps = VideoDeclarationProps;
222
+ /** Declares a native video and its static poster. */
223
+ export declare function Video(props: VideoProps): TypedElement<"video">;
224
+ type AudioProps = AudioDeclarationProps;
225
+ /** Declares a native audio and its static poster. */
226
+ export declare function Audio(props: AudioProps): TypedElement<"audio">;
227
+ type ExpandDocumentOptions = {
228
+ /**
229
+ * Cooperative cancellation for one React expansion; no default timeout when unspecified.
230
+ * Cancellation before or during expansion rejects with the original reason.
231
+ */
232
+ readonly signal?: AbortSignal | undefined;
233
+ };
234
+ /** Options for one standalone JSX fragment expansion; cancellation covers expansion and cleanup only. */
235
+ type ExpandFragmentOptions = ExpandDocumentOptions;
236
+ /** Options for one JSX fragment append; cancellation covers expansion and cleanup only. */
237
+ type AppendJSXOptions = ExpandFragmentOptions;
238
+ /** Completed editable document handed off by React expansion. */
239
+ type ExpandedDocument = CommonContainer<"deck">;
240
+ /**
241
+ * Public React handoff entry: runs author components to completion, waits for declared content,
242
+ * cleans up the React root, and returns the completed editable document.
243
+ *
244
+ * The returned nodes no longer synchronize with the finished root. Repeat expansion creates a new
245
+ * document instance and does not merge edits made to a previous result. Unhandled render errors,
246
+ * cancellation, and cleanup failures reject; no partial document is returned.
247
+ */
248
+ export declare function expandDocument(element: ReactNode, options?: ExpandDocumentOptions): Promise<ExpandedDocument>;
249
+ /**
250
+ * Public React fragment handoff entry: runs a standalone JSX fragment to completion, waits for
251
+ * declared async content and root cleanup, and returns frozen ownerless top-level editable nodes.
252
+ *
253
+ * The returned nodes no longer synchronize with the finished root and have `parent === undefined`.
254
+ * Top-level non-whitespace text, unhandled render errors, cleanup failures, and cancellation reject
255
+ * without returning partial results.
256
+ */
257
+ export declare function expandFragment(element: ReactNode, options?: ExpandFragmentOptions): Promise<readonly CommonNode[]>;
258
+ /**
259
+ * Public React append entry: expands one standalone JSX fragment, waits for final content and
260
+ * cleanup, then appends its top-level editable nodes to `target` as one batch.
261
+ *
262
+ * The fragment runs in its own root, so React context comes from the fragment or an explicit
263
+ * Provider inside it; the target's finished root is not revived. Expansion, unhandled errors,
264
+ * cancellation, cleanup failures, and id conflicts leave the target unchanged. Id conflicts are
265
+ * checked against the target's current structure at commit time, so edits made while the fragment
266
+ * expands are respected. The returned nodes are the exact instances now owned by the target.
267
+ */
268
+ export declare function appendJSX(target: CommonContainer, element: ReactNode, options?: AppendJSXOptions): Promise<readonly CommonNode[]>;
269
+ export { type AppendJSXOptions, type ArrowType, type AudioProps, type AudioSource, type AuthorId, type AuthorNodeGuard, AuthorQuery, AuthorQueryError, type BoxProps, type BreatheEffect, type BreatheOptions, type BuildDiagnostic, type CellProps, type ChartAxis, type ChartAxisCrossing, type ChartAxisPosition, type ChartAxisReferences, type ChartCategoryAxis, type ChartCategoryAxisReferences, type ChartCustomErrorBars, type ChartDataLabelOverride, type ChartDataLabels, type ChartDisplayBlanksAs, type ChartErrorBarInclude, type ChartErrorBarValues, type ChartErrorBars, type ChartGroup, type ChartGroupData, type ChartKind, type ChartLine, type ChartLineDash, type ChartMarker, type ChartMarkerSymbol, type ChartPoint, type ChartProps, type ChartSeries, type ChartSeriesDataLabelOverride, type ChartTickLabelPosition, type ChartTickMark, type ChartTitle, type ChartTrendline, type ChartTrendlineType, type ChartValueAxis, type ChartXYAxisReferences, type ColorMap, type ColorMapOverride, type ColorValue, type ColumnOrBarChartGroup, type CommentProps, CommonContainer, CommonNode, type ContentPlaceholderRole, type CustomGeometry, type DateTimeFooterPlaceholderSpec, type DateTimeFormat, type DateTimeProps, DeckContainer, type DeckProps, type DocumentProps, type DocumentStyle, type DocumentUpdate, type DoughnutChartGroup, type Easing, type Effect, type EffectInstance, type EffectOptions, type EffectPreset, type ElementProps, type EmphasisEffect, type EmphasisEffectDeclaration, type EmptyPlaceholderMap, type EntranceEffect, type EntranceEffectDeclaration, type ExitEffect, type ExitEffectDeclaration, type ExitPreset, type ExpandDocumentOptions, type ExpandFragmentOptions, type ExpandedDocument, type FillColorOptions, type FlipTransition, type Font, type FontFace, type FontFaceStyle, type FontOptions, type FontReference, type FontSize, type FontStyleDescriptor, type FontUsage, type FooterPlaceholderSpec, type FooterPlaceholders, type FormatScheme, type Geometry, type GeometryPath, type GradientStop, type GroupProps, type HeaderFooter, type HexColor, type ImageProps, type ImageSource, type ImageVisualStyle, type IndependentCategoryData, type IndependentCategorySeries, type InferPlaceholderMap, type InstantEffectOptions, type JsxPlaceholders, type LayoutLength, type LayoutPlaceholderSpec, type LayoutSpacing, type LayoutStyle, type LineAdjust, type LineEndpoint, type LineHeight, type LineLayoutStyle, type LineOrAreaChartGroup, type LinePort, type LineProps, type LineRouting, type LineStroke, type LineStrokeValue, type LineStyle, type LineVisualStyle, type LinearGradient, type LinkTarget, type MasterPlaceholderMap, type MasterPlaceholderSpec, type MasterTextStyles, type MediaPlaybackProps, type MediaTrim, type MorphKey, type MorphProps, type MorphScope, type MorphTransition, type MotionCompletionState, type MotionCue, type MotionCueRef, type MotionDecision, type MotionDependency, type MotionDifference, type MotionDirection, type MotionEffectRef, type MotionGranularity, type MotionIntervalRef, type MotionMembership, type MotionMoment, type MotionMomentOffset, type MotionMomentRef, type MotionNativeProjection, type MotionProps, type MotionSchedule, type MotionScopeHandle, type MotionScopeMode, type MotionScopeProps, type MotionScopeQueryMember, type MotionScopeRef, type MotionScopeSchedule, type MotionStartDependency, type MotionStepQuery, type MotionStepRef, type MotionTargetRange, type MotionTime, type MotionTiming, type MountProps, type NativeColorSlot, type NotesDeclarationProps, type NotesProps, type ObjectTransform, type OwnerMotion, type OwnerMotionEffect, type OwnerMotionStep, type OwnerMotionTarget, P$1 as P, type PaddingStyle, type ParagraphProps, type ParagraphStyle, type PathCommand, type PathOptions, type PieChartGroup, type PlaceholderLevelStyle, type PlaceholderListStyles, type PlaceholderMap, type PlaceholderOrient, type PlaceholderProps, type PlaceholderSize, type PlaceholderStyle, type PresetGeometry, type PresetGeometryName, type PrintDateTimeValue, type PrintHeaderFooter, type RadialGradient, type Rect, type RepeatCount, type RepeatedEffect, type ResolvedAudio, type ResolvedComment, type ResolvedFooter, type ResolvedFooterSlot, type ResolvedLayout, type ResolvedMaster, type ResolvedMotionEffect, type ResolvedMotionMoment, type ResolvedMotionScope, type ResolvedMotionStep, type ResolvedObject, type ResolvedPlaceholder, type ResolvedSlide, type ResolvedSlideLayout, type ResolvedTable, type ResolvedTableCell, type ResolvedTableRow, type ResolvedVideo, RichTextContainer, type RichTextItem, type RowProps, type RunTextStyle, type ScatterChartGroup, type ScatterChartPoint, type ScatterChartSeries, type ScatterData, type ScatterDataLabelOverride, type ScatterDataLabels, type ScatterErrorBars, type ScatterLine, type SchemeColorName, type SchemeColorSlot, type ScreenPoint, type SectionProps, type Shadow, type ShapeProps, type ShapeTextStyle, type SharedCategoryData, type SlideBackground, SlideContainer, type SlideDateTimeValue, type SlideFooterValue, SlideLayoutContainer, type SlideLayoutDefinition, type SlideLayoutProps, type SlideLayoutSource, type SlideLayoutType, type SlideLocator, SlideMasterContainer, type SlideMasterProps, type SlideNumberProps, type SlideNumberValue, type SlideProps, type SpanProps, type SpinOptions, type StandardTransition, type StepProps, type SteppedEffect, type StripsDirection, type StyleUpdate, type SubProps, type SupProps, type TableCellStyle, type TableColumn, type TableProps, type TableRowStyle, type TableSpacing, type TableStyle, type TableTextStyle, type TableVerticalAlign, type TextAlignment, type TextFillValue, type TextList, type TextMetrics, type TextPlaceholderRole, type TextProps, type TextStyle, type Theme, type ThemeColor, type ThemeData, type ThemeFontSlot, type ThemeInput, type ThemeOverride, type ThemeShade, type Transition, type TransitionDirection, type TransitionDuration, type TransitionSpeed, type TypedElement, type UnmeasuredFontIssue, type VanillaFactoryProps, type VanillaSlotResult, type VideoProps, type VideoSource, type VisualStyle, after, appear, blockArc, breathe, buildDiagnosticSchema, collapse, createMorphScope, createMotionScopeHandle, darker, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, linearGradient, motionSchedule, nativeColorSlots, onStep, path, preset, radialGradient, repeat, schemeColorNames, schemeColorSlots, spin, spinIn, spinOut, stretch, themeFontSlots, transitions, wipe, wipeOut, zoom, zoomOut };
package/dist/react.js CHANGED
@@ -1,27 +1,31 @@
1
- import { createMorphScope, isMorphKey } from "./core/dist/morph.js";
2
- import { darker, defaultColorMap, defaultTheme, defineTheme, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isTheme, lighter, nativeColorSlots, schemeColorNames, schemeColorSlots } from "./core/dist/theme.js";
3
- import { isSlideLayoutDefinition } from "./core/dist/masters.js";
4
- import { appendJSX, expandDocument } from "./react/dist/index.js";
5
- import { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer } from "./core/dist/document.js";
6
- import { after, breathe, createMotionScopeHandle, fade, fillColor, floatDown, floatUp, fly, repeat, spin, spinIn, stretch, wipe, zoom } from "./capabilities/dist/motion/motion-api.js";
7
- import { Slide, SlideLayout, SlideMaster } from "./pptxdk/src/slide.js";
8
- import { blockArc, path, preset } from "./capabilities/dist/shared/geometry.js";
9
- import { linearGradient, radialGradient } from "./capabilities/dist/shared/visual.js";
10
- import { observeMotion } from "./capabilities/dist/motion/motion-query.js";
11
- import { font } from "./capabilities/dist/font/font.js";
12
- import { transitions } from "./capabilities/dist/transition/transition-api.js";
13
- import { Box } from "./capabilities/dist/box/box-elements.js";
14
- import { Deck, Section } from "./react/dist/elements.js";
15
- import { Chart } from "./capabilities/dist/chart/chart-elements.js";
16
- import { Group } from "./capabilities/dist/group/group-elements.js";
17
- import { Image } from "./capabilities/dist/image/image-elements.js";
18
- import { MotionScope, Step, useMotionScope } from "./capabilities/dist/motion/motion-elements.js";
19
- import { Notes } from "./capabilities/dist/notes/notes-elements.js";
20
- import { Placeholder } from "./capabilities/dist/placeholder/placeholder-elements.js";
21
- import { Shape } from "./capabilities/dist/shape/shape-elements.js";
22
- import { Cell, Row, Table } from "./capabilities/dist/table/table-elements.js";
23
- import { P, SlideNumber, Span, Text } from "./capabilities/dist/text/text-elements.js";
24
- import "./core/dist/index.js";
25
- import "./core/dist/capability.js";
26
- import { defineSlideLayout } from "./capabilities/dist/document.js";
27
- export { AuthorQuery, AuthorQueryError, Box, Cell, Chart, CommonContainer, CommonNode, Deck, DeckContainer, Group, Image, MotionScope, Notes, P, Placeholder, RichTextContainer, Row, Section, Shape, Slide, SlideContainer, SlideLayout, SlideLayoutContainer, SlideMaster, SlideMasterContainer, SlideNumber, Span, Step, Table, Text, after, appendJSX, blockArc, breathe, createMorphScope, createMotionScopeHandle, darker, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, expandDocument, fade, fillColor, floatDown, floatUp, fly, font, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, lighter, linearGradient, nativeColorSlots, observeMotion, path, preset, radialGradient, repeat, schemeColorNames, schemeColorSlots, spin, spinIn, stretch, transitions, useMotionScope, wipe, zoom };
1
+ import { createMorphScope, isMorphKey } from "./core/dist/kernel/morph.js";
2
+ import { darker, defaultColorMap, defaultTheme, defineTheme, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isTheme, isThemeFontSlot, lighter, nativeColorSlots, schemeColorNames, schemeColorSlots, themeFontSlots } from "./core/dist/kernel/theme.js";
3
+ import { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer } from "./core/dist/kernel/document.js";
4
+ import { buildDiagnosticSchema } from "./core/dist/kernel/stage-options.js";
5
+ import { appendJSX, expandDocument, expandFragment } from "./react/dist/index.js";
6
+ import { blockArc, path, preset } from "./core/dist/capabilities/shared/geometry.js";
7
+ import { linearGradient, radialGradient } from "./core/dist/capabilities/shared/visual.js";
8
+ import { font, fromFontCollection } from "./core/dist/capabilities/shared/font/font.js";
9
+ import { after, appear, breathe, collapse, createMotionScopeHandle, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, onStep, repeat, spin, spinIn, spinOut, stretch, wipe, wipeOut, zoom, zoomOut } from "./core/dist/capabilities/shared/motion-api.js";
10
+ import { transitions } from "./core/dist/capabilities/transition/transition-api.js";
11
+ import { motionSchedule } from "./core/dist/capabilities/motion/motion-query.js";
12
+ import "./core/dist/kernel/index.js";
13
+ import { Mount } from "./react/dist/mount.js";
14
+ import { Deck, Section, Slide, SlideLayout, SlideMaster } from "./react/dist/elements.js";
15
+ import { fromVanilla } from "./react/dist/from-vanilla.js";
16
+ import { Box } from "./react/dist/author/box-elements.js";
17
+ import { MotionScope, Step, useMotionScope } from "./react/dist/author/motion-elements.js";
18
+ import { Chart } from "./react/dist/author/chart-elements.js";
19
+ import { Group } from "./react/dist/author/group-elements.js";
20
+ import { Image } from "./react/dist/author/image-elements.js";
21
+ import { Line } from "./react/dist/author/line-elements.js";
22
+ import { Comment } from "./react/dist/author/comment-elements.js";
23
+ import { Notes } from "./react/dist/author/notes-elements.js";
24
+ import { Placeholder } from "./react/dist/author/placeholder-elements.js";
25
+ import { Shape } from "./react/dist/author/shape-elements.js";
26
+ import { Cell, Row, Table } from "./react/dist/author/table-elements.js";
27
+ import { DateTime, P, SlideNumber, Span, Sub, Sup, Text } from "./react/dist/author/text-elements.js";
28
+ import { Video } from "./react/dist/author/video-elements.js";
29
+ import { Audio } from "./react/dist/author/audio-elements.js";
30
+ import { defineSlideLayout, isSlideLayoutDefinition } from "./core/dist/document/document.js";
31
+ export { Audio, AuthorQuery, AuthorQueryError, Box, Cell, Chart, Comment, CommonContainer, CommonNode, DateTime, Deck, DeckContainer, Group, Image, Line, MotionScope, Mount, Notes, P, Placeholder, RichTextContainer, Row, Section, Shape, Slide, SlideContainer, SlideLayout, SlideLayoutContainer, SlideMaster, SlideMasterContainer, SlideNumber, Span, Step, Sub, Sup, Table, Text, Video, after, appear, appendJSX, blockArc, breathe, buildDiagnosticSchema, collapse, createMorphScope, createMotionScopeHandle, darker, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, expandDocument, expandFragment, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, fromVanilla, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, linearGradient, motionSchedule, nativeColorSlots, onStep, path, preset, radialGradient, repeat, schemeColorNames, schemeColorSlots, spin, spinIn, spinOut, stretch, themeFontSlots, transitions, useMotionScope, wipe, wipeOut, zoom, zoomOut };
@@ -0,0 +1,80 @@
1
+ import { C as CommonNode, Gr as EmitOptions, Zr as ResolveOptions, _i as DeclarationContainer, bt as Resolution, ct as EmitResult, ot as CapabilityModule, vi as DeclarationNode, yt as RegisteredCapabilityModule } from "./index-B9_OUeA-.js";
2
+ import { c as ImportOptions, l as ImportReport } from "./index-DA9flrlR.js";
3
+ import { z } from "zod";
4
+ /**
5
+ * Emits a PPTX archive and BuildReport from an existing Resolution without re-resolving the document.
6
+ */
7
+ declare function emit(resolution: Resolution, options?: EmitOptions): Promise<EmitResult>;
8
+ type ImportResult = {
9
+ readonly document: CommonNode;
10
+ readonly report: ImportReport;
11
+ };
12
+ /**
13
+ * Creates a Transitional PPTX importer bound to the caller's registered capability modules.
14
+ *
15
+ * The returned function owns OPC package traversal, XML cursor tracking, and structured diagnostics,
16
+ * while delegating native object/slide parsing to mechanisms declared by `capabilities`.
17
+ */
18
+ declare function createImporter(capabilities: readonly RegisteredCapabilityModule[]): (input: Uint8Array, options?: ImportOptions) => Promise<ImportResult>;
19
+ type CodegenTarget = "vanilla" | "react";
20
+ /** Supported author source generation syntax targets. */
21
+ declare const codegenTargetSchema: z.ZodType<CodegenTarget>;
22
+ declare const codegenEntryNames: {
23
+ readonly vanilla: "deck.ts";
24
+ readonly react: "deck.tsx";
25
+ };
26
+ type CodegenEntryName<T extends CodegenTarget = CodegenTarget> = (typeof codegenEntryNames)[T];
27
+ type CodegenOptions<T extends CodegenTarget = CodegenTarget> = {
28
+ readonly target: T;
29
+ };
30
+ /** Options controlling `codegen` target syntax output. */
31
+ declare const codegenOptionsSchema: z.ZodType<CodegenOptions>;
32
+ type CodegenFileContent = string | Uint8Array;
33
+ type CodegenResult<T extends CodegenTarget = CodegenTarget> = {
34
+ readonly target: T;
35
+ readonly entry: CodegenEntryName<T>;
36
+ readonly files: Readonly<Record<string, CodegenFileContent>>;
37
+ };
38
+ type CodegenDiagnosticCode = "invalid-document" | "invalid-options" | "unsupported-declaration" | "unsupported-slide-property" | "unexpressible-value";
39
+ declare const codegenDiagnosticCodeSchema: z.ZodType<CodegenDiagnosticCode>;
40
+ type CodegenDiagnostic = {
41
+ readonly code: "invalid-document";
42
+ readonly path: string;
43
+ readonly message: string;
44
+ readonly field?: string | undefined;
45
+ } | {
46
+ readonly code: "invalid-options";
47
+ readonly path: string;
48
+ readonly message: string;
49
+ readonly field?: string | undefined;
50
+ } | {
51
+ readonly code: "unsupported-declaration";
52
+ readonly path: string;
53
+ readonly message: string;
54
+ readonly field?: string | undefined;
55
+ readonly declaration: string;
56
+ } | {
57
+ readonly code: "unsupported-slide-property";
58
+ readonly path: string;
59
+ readonly message: string;
60
+ readonly field: string;
61
+ } | {
62
+ readonly code: "unexpressible-value";
63
+ readonly path: string;
64
+ readonly message: string;
65
+ readonly field?: string | undefined;
66
+ };
67
+ declare const codegenDiagnosticSchema: z.ZodType<CodegenDiagnostic>;
68
+ /** Structured error thrown when an editable document cannot be expressed in generated source. */
69
+ declare class CodegenError extends Error {
70
+ readonly diagnostics: readonly CodegenDiagnostic[];
71
+ constructor(diagnostics: readonly CodegenDiagnostic[]);
72
+ }
73
+ /**
74
+ * Creates a synchronous source code generator wired with the provided capability modules.
75
+ */
76
+ declare function createCodegen(capabilities: readonly RegisteredCapabilityModule[]): <T extends CodegenTarget>(document: CommonNode, options: CodegenOptions<T>) => CodegenResult<T>;
77
+ declare function createResolver(modules: readonly CapabilityModule[]): (declaration: DeclarationContainer | DeclarationNode, options?: ResolveOptions) => Promise<Resolution>;
78
+ /** Complete list of official capability names in canonical order. */
79
+ declare const officialCapabilityNames: readonly ["audio", "box", "chart", "comment", "footer-placeholder", "group", "image", "line", "masters", "motion", "notes", "placeholder", "shape", "slide-background", "table", "text", "transition", "video"];
80
+ export { createImporter as _, CodegenDiagnosticCode as a, CodegenFileContent as c, CodegenTarget as d, codegenDiagnosticCodeSchema as f, ImportResult as g, codegenTargetSchema as h, CodegenDiagnostic as i, CodegenOptions as l, codegenOptionsSchema as m, officialCapabilityNames as n, CodegenEntryName as o, codegenDiagnosticSchema as p, createCodegen as r, CodegenError as s, createResolver as t, CodegenResult as u, emit as v };