@officedk/pptxdk 0.2.0 → 0.2.2

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 (296) hide show
  1. package/dist/build.d.ts +5 -8
  2. package/dist/build.js +44 -52
  3. package/dist/core/dist/capabilities/audio/audio-declaration.js +7 -0
  4. package/dist/core/dist/capabilities/audio/audio-source.js +172 -0
  5. package/dist/core/dist/capabilities/audio/entry.js +122 -0
  6. package/dist/{capabilities/dist → core/dist/capabilities}/box/box-codegen.js +7 -8
  7. package/dist/{capabilities/dist → core/dist/capabilities}/box/box-declaration.js +8 -8
  8. package/dist/{capabilities/dist → core/dist/capabilities}/box/box.js +14 -15
  9. package/dist/core/dist/capabilities/box/entry.js +2 -0
  10. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-codegen.js +11 -18
  11. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-declaration.js +2 -2
  12. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-import.js +891 -468
  13. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-labels.js +30 -3
  14. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-model.js +1 -1
  15. package/dist/{capabilities/dist/chart/preview/number-format.js → core/dist/capabilities/chart/chart-number-format.js} +1 -1
  16. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-schemas.js +73 -79
  17. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-xml.js +41 -36
  18. package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart.js +175 -113
  19. package/dist/core/dist/capabilities/chart/entry.js +2 -0
  20. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/axes-and-grid.js +2 -2
  21. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/bar-column.js +1 -1
  22. package/dist/core/dist/capabilities/chart/preview/data-labels.js +474 -0
  23. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/error-bars.js +3 -1
  24. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/index.js +28 -9
  25. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/layout.js +7 -9
  26. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/legend.js +1 -1
  27. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/line-area.js +1 -1
  28. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/markers.js +1 -1
  29. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/pie-doughnut.js +39 -60
  30. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/scales.js +1 -1
  31. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/scatter.js +1 -1
  32. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/style.js +1 -1
  33. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/text-render.js +34 -24
  34. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/trendlines.js +3 -3
  35. package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/types.js +1 -1
  36. package/dist/core/dist/capabilities/comment/comment-codegen.js +25 -0
  37. package/dist/core/dist/capabilities/comment/comment-declaration.js +37 -0
  38. package/dist/core/dist/capabilities/comment/comment-import.js +176 -0
  39. package/dist/core/dist/capabilities/comment/comment.js +141 -0
  40. package/dist/core/dist/capabilities/comment/entry.js +1 -0
  41. package/dist/core/dist/capabilities/footer-placeholder/entry.js +2 -0
  42. package/dist/core/dist/capabilities/footer-placeholder/footer-placeholder-codegen.js +16 -0
  43. package/dist/{capabilities/dist/masters → core/dist/capabilities/footer-placeholder}/footer-placeholder.js +113 -50
  44. package/dist/core/dist/capabilities/footer-placeholder/print-header-footer-import.js +121 -0
  45. package/dist/core/dist/capabilities/footer-placeholder/print-header-footer.js +123 -0
  46. package/dist/core/dist/capabilities/group/entry.js +2 -0
  47. package/dist/{capabilities/dist → core/dist/capabilities}/group/group-codegen.js +6 -7
  48. package/dist/{capabilities/dist → core/dist/capabilities}/group/group-declaration.js +8 -8
  49. package/dist/{capabilities/dist → core/dist/capabilities}/group/group-import.js +36 -77
  50. package/dist/{capabilities/dist → core/dist/capabilities}/group/group-xml.js +1 -1
  51. package/dist/{capabilities/dist → core/dist/capabilities}/group/group.js +17 -17
  52. package/dist/core/dist/capabilities/image/entry.js +4 -0
  53. package/dist/core/dist/capabilities/image/image-codegen.js +59 -0
  54. package/dist/core/dist/capabilities/image/image-declaration.js +8 -0
  55. package/dist/core/dist/capabilities/image/image-import.js +26 -0
  56. package/dist/core/dist/capabilities/image/image.js +57 -0
  57. package/dist/core/dist/capabilities/line/entry.js +3 -0
  58. package/dist/{capabilities/dist → core/dist/capabilities}/line/line-codegen.js +6 -7
  59. package/dist/{capabilities/dist → core/dist/capabilities}/line/line-declaration.js +15 -9
  60. package/dist/{capabilities/dist → core/dist/capabilities}/line/line-import.js +15 -95
  61. package/dist/{capabilities/dist → core/dist/capabilities}/line/line-xml.js +1 -1
  62. package/dist/{capabilities/dist → core/dist/capabilities}/line/line.js +41 -43
  63. package/dist/core/dist/capabilities/masters/entry.js +1 -0
  64. package/dist/{capabilities/dist → core/dist/capabilities}/masters/masters-codegen.js +7 -26
  65. package/dist/{capabilities/dist → core/dist/capabilities}/masters/masters.js +23 -35
  66. package/dist/core/dist/capabilities/motion/entry.js +5 -0
  67. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-codegen.js +15 -35
  68. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-import.js +25 -9
  69. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-plan.js +17 -14
  70. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-query.js +2 -2
  71. package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion.js +79 -75
  72. package/dist/core/dist/capabilities/notes/entry.js +2 -0
  73. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-codegen.js +4 -5
  74. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-declaration.js +2 -2
  75. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-import.js +16 -13
  76. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-schemas.js +6 -6
  77. package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes.js +16 -41
  78. package/dist/{import/dist/sections.js → core/dist/capabilities/notes/sections-import.js} +5 -5
  79. package/dist/core/dist/capabilities/placeholder/entry.js +3 -0
  80. package/dist/{capabilities/dist → core/dist/capabilities}/placeholder/placeholder-codegen.js +5 -15
  81. package/dist/{capabilities/dist → core/dist/capabilities}/placeholder/placeholder-schemas.js +7 -9
  82. package/dist/{capabilities/dist → core/dist/capabilities}/placeholder/placeholder.js +50 -107
  83. package/dist/core/dist/capabilities/shape/entry.js +6 -0
  84. package/dist/core/dist/capabilities/shape/shape-codegen.js +112 -0
  85. package/dist/core/dist/capabilities/shape/shape-import.js +152 -0
  86. package/dist/{capabilities/dist → core/dist/capabilities}/shape/shape-xml.js +1 -1
  87. package/dist/{capabilities/dist → core/dist/capabilities}/shape/shape.js +44 -30
  88. package/dist/core/dist/capabilities/shared/container-slots.js +59 -0
  89. package/dist/core/dist/capabilities/shared/date-time.js +98 -0
  90. package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-embedding.js +5 -6
  91. package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-engine.js +34 -13
  92. package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-import.js +62 -23
  93. package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-subset.js +24 -9
  94. package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font.js +4 -4
  95. package/dist/core/dist/capabilities/shared/geometry-codegen.js +101 -0
  96. package/dist/{capabilities/dist → core/dist/capabilities}/shared/geometry.js +47 -44
  97. package/dist/{capabilities/dist → core/dist/capabilities}/shared/identity.js +56 -38
  98. package/dist/core/dist/capabilities/shared/image-codegen.js +94 -0
  99. package/dist/{capabilities/dist/image → core/dist/capabilities/shared}/image-decode.js +17 -79
  100. package/dist/{capabilities/dist/image → core/dist/capabilities/shared}/image-schemas.js +16 -26
  101. package/dist/core/dist/capabilities/shared/line-match.js +78 -0
  102. package/dist/core/dist/capabilities/shared/media-codegen.js +86 -0
  103. package/dist/core/dist/capabilities/shared/media-import.js +156 -0
  104. package/dist/core/dist/capabilities/shared/media-placement.js +20 -0
  105. package/dist/core/dist/capabilities/shared/media-poster.js +50 -0
  106. package/dist/core/dist/capabilities/shared/media-schemas.js +60 -0
  107. package/dist/core/dist/capabilities/shared/media-source.js +107 -0
  108. package/dist/core/dist/capabilities/shared/media-trim.js +102 -0
  109. package/dist/core/dist/capabilities/shared/media.js +134 -0
  110. package/dist/{capabilities/dist → core/dist/capabilities}/shared/morph-api.js +5 -5
  111. package/dist/{capabilities/dist/motion → core/dist/capabilities/shared}/motion-api.js +112 -99
  112. package/dist/{capabilities/dist/motion → core/dist/capabilities/shared}/motion-schemas.js +19 -5
  113. package/dist/{capabilities/dist/image/image-import.js → core/dist/capabilities/shared/picture-import.js} +97 -158
  114. package/dist/core/dist/capabilities/shared/picture-xml.js +13 -0
  115. package/dist/core/dist/capabilities/shared/picture.js +510 -0
  116. package/dist/{capabilities/dist → core/dist/capabilities}/shared/placeholder-import.js +50 -20
  117. package/dist/core/dist/capabilities/shared/placeholder-roles.js +42 -0
  118. package/dist/{capabilities/dist → core/dist/capabilities}/shared/preset-definitions.js +1 -1
  119. package/dist/core/dist/capabilities/shared/print-xml.js +77 -0
  120. package/dist/{capabilities/dist/text/text-codegen.js → core/dist/capabilities/shared/rich-text-codegen.js} +23 -102
  121. package/dist/core/dist/capabilities/shared/rich-text-import.js +472 -0
  122. package/dist/{capabilities/dist/shape → core/dist/capabilities/shared}/shape-declaration.js +14 -14
  123. package/dist/{capabilities/dist → core/dist/capabilities}/shared/style-inheritance.js +12 -5
  124. package/dist/{capabilities/dist/text → core/dist/capabilities/shared}/text-declaration.js +7 -3
  125. package/dist/{capabilities/dist → core/dist/capabilities}/shared/text-schemas.js +77 -77
  126. package/dist/{capabilities/dist → core/dist/capabilities}/shared/text-service.js +571 -260
  127. package/dist/{capabilities/dist → core/dist/capabilities}/shared/visual.js +137 -112
  128. package/dist/core/dist/capabilities/slide-background/entry.js +1 -0
  129. package/dist/core/dist/capabilities/slide-background/slide-background-codegen.js +15 -0
  130. package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background-import.js +5 -5
  131. package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background-xml.js +2 -3
  132. package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background.js +27 -33
  133. package/dist/core/dist/capabilities/table/entry.js +2 -0
  134. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-codegen.js +6 -13
  135. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-declaration.js +2 -2
  136. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-import.js +22 -57
  137. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-schemas.js +40 -37
  138. package/dist/{capabilities/dist → core/dist/capabilities}/table/table-xml.js +9 -4
  139. package/dist/{capabilities/dist → core/dist/capabilities}/table/table.js +60 -45
  140. package/dist/core/dist/capabilities/text/entry.js +3 -0
  141. package/dist/core/dist/capabilities/text/text-codegen.js +66 -0
  142. package/dist/core/dist/capabilities/text/text-import.js +468 -0
  143. package/dist/{capabilities/dist → core/dist/capabilities}/text/text-xml.js +3 -4
  144. package/dist/{capabilities/dist → core/dist/capabilities}/text/text.js +61 -54
  145. package/dist/core/dist/capabilities/transition/entry.js +3 -0
  146. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-api.js +1 -1
  147. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-codegen.js +2 -3
  148. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-import.js +25 -27
  149. package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition.js +23 -23
  150. package/dist/core/dist/capabilities/video/entry.js +77 -0
  151. package/dist/core/dist/capabilities/video/video-declaration.js +7 -0
  152. package/dist/core/dist/capabilities/video/video-source.js +42 -0
  153. package/dist/{codegen/dist → core/dist/codegen}/assets.js +13 -8
  154. package/dist/{codegen/dist → core/dist/codegen}/codegen.js +54 -122
  155. package/dist/{codegen/dist → core/dist/codegen}/identifiers.js +17 -1
  156. package/dist/{codegen/dist → core/dist/codegen}/index.js +2 -2
  157. package/dist/{codegen/dist → core/dist/codegen}/printer.js +23 -4
  158. package/dist/core/dist/document/all.js +41 -0
  159. package/dist/core/dist/document/default.js +10 -0
  160. package/dist/core/dist/document/document.js +218 -0
  161. package/dist/core/dist/document/index.js +62 -0
  162. package/dist/core/dist/document/stages.js +54 -0
  163. package/dist/{emit/dist → core/dist/emit}/emit.js +122 -60
  164. package/dist/core/dist/emit/index.js +6 -0
  165. package/dist/core/dist/emit/ooxml.js +241 -0
  166. package/dist/{import/dist → core/dist/import}/import.js +221 -187
  167. package/dist/core/dist/import/index.js +19 -0
  168. package/dist/{import/dist → core/dist/import}/masters.js +253 -317
  169. package/dist/core/dist/import/media-timing.js +233 -0
  170. package/dist/{import/dist → core/dist/import}/notes-masters.js +48 -45
  171. package/dist/core/dist/index.js +47 -15
  172. package/dist/core/dist/{author-ids.js → kernel/author-ids.js} +1 -1
  173. package/dist/core/dist/{author-schemas.js → kernel/author-schemas.js} +59 -98
  174. package/dist/core/dist/{block-flex-layout.js → kernel/block-flex-layout.js} +109 -78
  175. package/dist/core/dist/kernel/build.js +4 -0
  176. package/dist/core/dist/kernel/capability.js +17 -0
  177. package/dist/{codegen/dist/types.js → core/dist/kernel/codegen.js} +22 -2
  178. package/dist/core/dist/kernel/container-slots.js +104 -0
  179. package/dist/core/dist/kernel/date-time-format.js +18 -0
  180. package/dist/core/dist/kernel/declaration-snapshot.js +68 -0
  181. package/dist/core/dist/{declaration.js → kernel/declaration.js} +1 -1
  182. package/dist/core/dist/{diagnostics.js → kernel/diagnostics.js} +22 -5
  183. package/dist/core/dist/{document-internals.js → kernel/document-internals.js} +1 -1
  184. package/dist/core/dist/{document.js → kernel/document.js} +6 -5
  185. package/dist/core/dist/kernel/drawing-units.js +14 -0
  186. package/dist/core/dist/{font-seal.js → kernel/font-seal.js} +2 -2
  187. package/dist/core/dist/{geometry-schemas.js → kernel/geometry-schemas.js} +2 -6
  188. package/dist/core/dist/{grid-layout.js → kernel/grid-layout.js} +156 -55
  189. package/dist/core/dist/{host.js → kernel/host.js} +1 -1
  190. package/dist/core/dist/kernel/index.js +24 -0
  191. package/dist/core/dist/{input-values.js → kernel/input-values.js} +4 -3
  192. package/dist/core/dist/kernel/layout-definition.js +7 -0
  193. package/dist/core/dist/{layout-protocol.js → kernel/layout-protocol.js} +1 -1
  194. package/dist/core/dist/{layout-schemas.js → kernel/layout-schemas.js} +2 -6
  195. package/dist/core/dist/{layout.js → kernel/layout.js} +37 -38
  196. package/dist/core/dist/{masters.js → kernel/masters.js} +32 -55
  197. package/dist/core/dist/{morph.js → kernel/morph.js} +1 -1
  198. package/dist/core/dist/{placeholders.js → kernel/placeholders.js} +23 -9
  199. package/dist/{import/dist → core/dist/kernel/pptx-read}/alternate-content.js +1 -1
  200. package/dist/{import/dist → core/dist/kernel/pptx-read}/diagnostics.js +1 -1
  201. package/dist/core/dist/kernel/pptx-read/drawing-list-import.js +251 -0
  202. package/dist/{import/dist → core/dist/kernel/pptx-read}/fonts.js +1 -1
  203. package/dist/core/dist/kernel/pptx-read/index.js +15 -0
  204. package/dist/{import/dist → core/dist/kernel/pptx-read}/mechanism.js +1 -1
  205. package/dist/core/dist/kernel/pptx-read/media.js +26 -0
  206. package/dist/{import/dist → core/dist/kernel/pptx-read}/namespaces.js +5 -7
  207. package/dist/{import/dist → core/dist/kernel/pptx-read}/opc.js +62 -13
  208. package/dist/{import/dist → core/dist/kernel/pptx-read}/resources.js +1 -1
  209. package/dist/core/dist/kernel/pptx-read/shape-tree.js +57 -0
  210. package/dist/{import/dist → core/dist/kernel/pptx-read}/themes.js +40 -5
  211. package/dist/{import/dist → core/dist/kernel/pptx-read}/visual.js +94 -67
  212. package/dist/{import/dist → core/dist/kernel/pptx-read}/xml-fragments.js +56 -13
  213. package/dist/{import/dist → core/dist/kernel/pptx-read}/xml-reader.js +8 -1
  214. package/dist/{emit/dist → core/dist/kernel/pptx-write}/shape-tree.js +1 -1
  215. package/dist/core/dist/kernel/pptx-write/timing.js +52 -0
  216. package/dist/{emit/dist/ooxml.js → core/dist/kernel/pptx-write/xml.js} +62 -274
  217. package/dist/core/dist/{query.js → kernel/query.js} +5 -1
  218. package/dist/core/dist/{resolution.js → kernel/resolution.js} +1 -1
  219. package/dist/core/dist/kernel/resolve-work.js +58 -0
  220. package/dist/core/dist/{resolve.js → kernel/resolve.js} +226 -257
  221. package/dist/core/dist/kernel/resource-source.js +11 -0
  222. package/dist/core/dist/{stage-options.js → kernel/stage-options.js} +23 -11
  223. package/dist/core/dist/{theme.js → kernel/theme.js} +54 -36
  224. package/dist/core/dist/{transform-geometry.js → kernel/transform-geometry.js} +1 -1
  225. package/dist/core/dist/kernel/xml-values.js +13 -0
  226. package/dist/{document-41spD7bq.d.ts → document-C0lPlH-L.d.ts} +614 -522
  227. package/dist/{capability-BbKW9w4O.d.ts → index-B9_OUeA-.d.ts} +660 -553
  228. package/dist/{index-BEwhk7c8.d.ts → index-BJEzQxWV.d.ts} +27 -24
  229. package/dist/{index-cK2KtukZ.d.ts → index-DA9flrlR.d.ts} +2 -17
  230. package/dist/{index-v77CTJev.d.ts → index-GSt0t9VO.d.ts} +3 -4
  231. package/dist/index.d.ts +7 -8
  232. package/dist/index.js +68 -66
  233. package/dist/node.d.ts +16 -14
  234. package/dist/node.js +86 -43
  235. package/dist/pptxdk/src/cli-commands.js +9 -5
  236. package/dist/pptxdk/src/compose.js +28 -29
  237. package/dist/pptxdk/src/preview-result.js +24 -0
  238. package/dist/{capabilities/dist/image → preview/dist}/gif-decoder.js +5 -5
  239. package/dist/preview/dist/index.js +84 -34
  240. package/dist/preview/dist/options.js +8 -4
  241. package/dist/preview/dist/raster.js +66 -0
  242. package/dist/preview/dist/svg-guard.js +8 -7
  243. package/dist/preview.d.ts +3 -9
  244. package/dist/preview.js +7 -25
  245. package/dist/react/dist/append.js +3 -3
  246. package/dist/react/dist/author/audio-elements.js +14 -0
  247. package/dist/{capabilities/dist/box → react/dist/author}/box-elements.js +5 -3
  248. package/dist/react/dist/author/chart-elements.js +14 -0
  249. package/dist/react/dist/author/comment-elements.js +15 -0
  250. package/dist/react/dist/author/group-elements.js +14 -0
  251. package/dist/react/dist/author/image-elements.js +14 -0
  252. package/dist/react/dist/author/line-elements.js +14 -0
  253. package/dist/{capabilities/dist/motion → react/dist/author}/motion-elements.js +6 -4
  254. package/dist/react/dist/author/notes-elements.js +14 -0
  255. package/dist/react/dist/author/placeholder-elements.js +14 -0
  256. package/dist/react/dist/author/shape-elements.js +14 -0
  257. package/dist/{capabilities/dist/table → react/dist/author}/table-elements.js +6 -4
  258. package/dist/{capabilities/dist/text → react/dist/author}/text-elements.js +15 -5
  259. package/dist/react/dist/author/video-elements.js +14 -0
  260. package/dist/react/dist/document-adapter.js +4 -4
  261. package/dist/react/dist/elements.js +7 -4
  262. package/dist/react/dist/from-vanilla.js +3 -3
  263. package/dist/react/dist/index.js +17 -3
  264. package/dist/react/dist/reconciler.js +3 -3
  265. package/dist/react.d.ts +103 -69
  266. package/dist/react.js +28 -28
  267. package/dist/{index-1ag7U9Jt.d.ts → stages-DYHSHKt4.d.ts} +23 -6
  268. package/dist/vanilla.d.ts +4 -4
  269. package/dist/vanilla.js +14 -15
  270. package/package.json +8 -7
  271. package/dist/build-zrZuX4fK.d.ts +0 -3
  272. package/dist/capabilities/dist/all.js +0 -34
  273. package/dist/capabilities/dist/chart/chart-elements.js +0 -12
  274. package/dist/capabilities/dist/chart/preview/data-labels.js +0 -334
  275. package/dist/capabilities/dist/document.js +0 -168
  276. package/dist/capabilities/dist/group/group-elements.js +0 -12
  277. package/dist/capabilities/dist/image/image-codegen.js +0 -164
  278. package/dist/capabilities/dist/image/image-declaration.js +0 -8
  279. package/dist/capabilities/dist/image/image-elements.js +0 -12
  280. package/dist/capabilities/dist/image/image-xml.js +0 -12
  281. package/dist/capabilities/dist/image/image.js +0 -552
  282. package/dist/capabilities/dist/line/line-elements.js +0 -12
  283. package/dist/capabilities/dist/notes/notes-elements.js +0 -12
  284. package/dist/capabilities/dist/notes/notes-xml.js +0 -38
  285. package/dist/capabilities/dist/placeholder/placeholder-elements.js +0 -13
  286. package/dist/capabilities/dist/shape/shape-codegen.js +0 -236
  287. package/dist/capabilities/dist/shape/shape-elements.js +0 -12
  288. package/dist/capabilities/dist/shape/shape-import.js +0 -628
  289. package/dist/capabilities/dist/slide-background/slide-background-codegen.js +0 -44
  290. package/dist/capabilities/dist/text/text-import.js +0 -1224
  291. package/dist/core/dist/build.js +0 -4
  292. package/dist/core/dist/capability.js +0 -15
  293. package/dist/emit/dist/index.js +0 -5
  294. package/dist/import/dist/index.js +0 -16
  295. package/dist/pptxdk/src/slide.js +0 -9
  296. package/dist/transition-6n8GZxSg.d.ts +0 -9
package/dist/react.d.ts CHANGED
@@ -1,19 +1,50 @@
1
- import { $r as lighter, $t as DeckProps$1, A as isSlideLayoutDefinition, An as CustomGeometry, Bn as PaddingStyle, Br as defineTheme, C as SlideLayoutDefinition, Cn as PlaceholderMap, Cr as ThemeColor, Dn as TextList, Dr as ThemeOverride, En as PlaceholderStyle, Er as ThemeInput, Et as BuildDiagnostic, Fn as PresetGeometryName, G as FontUsage, In as LayoutLength, Jr as isNativeColorSlot, Ln as LayoutSpacing, Lr as darker, Mn as GeometryPath, Nn as PathCommand, On as TextPlaceholderRole, Or as ThemeShade, Pn as PresetGeometry, Q as Rect, Qn as ColorValue, Qr as isThemeFontSlot, Rn as LayoutStyle, Rr as defaultColorMap, Sn as PlaceholderListStyles, Sr as Theme, T as SlideLayoutType, Tn as PlaceholderSize, Tr as ThemeFontSlot, W as FontStyleDescriptor, X as ObjectTransform, Xn as ColorMap, Xr as isSchemeColorSlot, Yr as isSchemeColorName, Zn as ColorMapOverride, Zr as isTheme, _ as FooterPlaceholders, _n as MasterPlaceholderMap, _r as SchemeColorName, _t as UnmeasuredFontIssue, a as CommonNode, an as SlideProps$2, ar as FontSize, b as ResolvedPlaceholder, bn as NativePlaceholderRef, br as TextAlignment, bt as createMorphScope, c as DocumentStyle, cr as HexColor, d as RichTextItem, dt as ResolvedTableCell, ei as nativeColorSlots, en as LinkTarget, er as Font, f as SlideContainer, ft as ResolvedTableRow, g as FooterPlaceholderSpec, gn as LayoutPlaceholderSpec, gr as RadialGradient, gt as TextMetrics, h as StyleUpdate, hn as EmptyPlaceholderMap, hr as NativeColorSlot, ht as SlideLocator, i as CommonContainer, in as SlideNumberValue, ir as FontReference, it as ResolvedFooterSlot, jn as Geometry, kr as VisualStyle, l as DocumentUpdate, lt as ResolvedSlide, m as SlideMasterContainer, mn as ContentPlaceholderRole, mr as LinearGradient, n as AuthorQuery, ni as schemeColorSlots, nn as SlideBackground, nr as FontFaceStyle, o as DeckContainer, oi as themeFontSlots, or as FormatScheme, ot as ResolvedLayout, p as SlideLayoutContainer, pr as LineHeight, pt as ScreenPoint, r as AuthorQueryError, rn as SlideFooterValue, rr as FontOptions, rt as ResolvedFooter, s as DocumentProps, sr as GradientStop, st as ResolvedObject, t as AuthorNodeGuard, ti as schemeColorNames, tn as SectionProps$1, tr as FontFace, u as RichTextContainer, ui as AuthorId, ut as ResolvedTable, v as HeaderFooter, vn as MasterPlaceholderSpec, vr as SchemeColorSlot, vt as MorphKey, wn as PlaceholderOrient, wr as ThemeData, x as ResolvedSlideLayout, xn as PlaceholderLevelStyle, xr as TextStyle, xt as isMorphKey, y as ResolvedMaster, yn as MasterTextStyles, yr as Shadow, yt as MorphScope, zr as defaultTheme, zt as buildDiagnosticSchema } from "./capability-BbKW9w4O.js";
2
- import { r as ArrowType } from "./index-cK2KtukZ.js";
3
- import { $ as defineSlideLayout, $n as ChartTitle, $r as floatUp, $t as MotionDependency, A as SlideLayoutAuthorProps, Ai as InstantEffectOptions, An as ChartAxisReferences, Ar as SlideNumberDeclarationProps, At as ShapeTextStyle, Bn as ChartGroup, Br as ResolvedMotionStep, Bt as TableSpacing, Ci as EmphasisEffectDeclaration, Cn as ImageSource, Cr as PathOptions, Ct as StandardTransition, Di as ExitEffectDeclaration, Dn as ChartAxis, Dr as ParagraphDeclarationProps, Dt as TransitionDuration, Ei as ExitEffect, Er as preset, Et as TransitionDirection, Fi as MotionMomentOffset, Fn as ChartDataLabels, Fr as MotionNativeProjection, Ft as RowDeclarationProps, Gi as OwnerMotionStep, Gn as ChartMarker, Gr as collapse, Hi as MotionTiming, Hn as ChartKind, Hr as after, Ht as TableTextStyle, Ii as MotionProps, In as ChartDisplayBlanksAs, Ir as MotionScopeProps, It as TableCellStyle, Ji as RepeatedEffect, Jn as ChartProps, Jr as fade, Jt as NotesDeclarationProps, Ki as OwnerMotionTarget, Kn as ChartMarkerSymbol, Kr as createMotionScopeHandle, Kt as PlaceholderDeclarationProps, Ln as ChartErrorBarInclude, Lr as MotionStartDependency, Lt as TableColumn, M as SlideLayoutSource, Mi as MotionDirection, Mn as ChartCategoryAxisReferences, Mr as SubDeclarationProps, N as SlideMasterAuthorProps, Ni as MotionGranularity, Nn as ChartCustomErrorBars, Nr as SupDeclarationProps, Oi as ExitPreset, On as ChartAxisCrossing, Or as ParagraphStyle, Ot as TransitionSpeed, Pi as MotionMoment, Pn as ChartDataLabelOverride, Pr as TextDeclarationProps, Pt as CellDeclarationProps, Qn as ChartTickMark, Qr as floatOut, Qt as MotionDecision, Ri as MotionScopeHandle, Rn as ChartErrorBarValues, Rr as ResolvedMotionEffect, Rt as TableDeclarationProps, Si as EmphasisEffect, Sn as ImageDeclarationProps, Sr as radialGradient, St as MorphTransition, Ti as EntranceEffectDeclaration, Tn as GroupDeclarationProps, Tr as path, Tt as Transition, Ui as OwnerMotion, Un as ChartLine, Ur as appear, Ut as TableVerticalAlign, Vi as MotionTargetRange, Vn as ChartGroupData, Vr as StepProps, Vt as TableStyle, Wi as OwnerMotionEffect, Wn as ChartLineDash, Wr as breathe, Wt as ShapeDeclarationProps, Xi as SteppedEffect, Xn as ChartSeriesDataLabelOverride, Xr as fillColor, Xt as MotionCue, Yi as SpinOptions, Yn as ChartSeries, Yr as fadeOut, Yt as EffectInstance, Zn as ChartTickLabelPosition, Zr as floatDown, Zt as MotionCueRef, _i as BreatheOptions, _n as LineLayoutStyle, _r as ScatterLine, ai as spinIn, an as MotionSchedule, ar as DoughnutChartGroup, bi as EffectOptions, bn as LineStyle, br as LineStrokeValue, bt as TypedElement, ci as wipe, cn as MotionScopeSchedule, cr as LineOrAreaChartGroup, di as zoomOut, dn as MotionTime, dr as ScatterChartPoint, ei as fly, en as MotionDifference, er as ChartTrendline, f as InferPlaceholderMap, fi as font, fn as ResolvedMotionMoment, fr as ScatterChartSeries, gi as BreatheEffect, gn as LineEndpoint, gr as ScatterErrorBars, hi as MorphProps, hn as LineDeclarationProps, hr as ScatterDataLabels, ii as spin, in as MotionMomentRef, ir as ColumnOrBarChartGroup, ji as MotionCompletionState, jn as ChartCategoryAxis, jr as SpanDeclarationProps, ki as FillColorOptions, kn as ChartAxisPosition, kr as RunTextStyle, kt as transitions, li as wipeOut, ln as MotionStepQuery, lr as PieChartGroup, mi as BoxDeclarationProps, mn as LineAdjust, mr as ScatterDataLabelOverride, ni as onStep, nn as MotionIntervalRef, nr as ChartValueAxis, oi as spinOut, on as MotionScopeQueryMember, or as IndependentCategoryData, p as JsxPlaceholders, pi as fromFontCollection, pn as motionSchedule, pr as ScatterData, qi as RepeatCount, qn as ChartPoint, qr as disappear, ri as repeat, rn as MotionMembership, rr as ChartXYAxisReferences, si as stretch, sn as MotionScopeRef, sr as IndependentCategorySeries, ti as flyOut, tn as MotionEffectRef, tr as ChartTrendlineType, ui as zoom, un as MotionStepRef, ur as ScatterChartGroup, vi as Easing, vn as LinePort, vr as SharedCategoryData, wi as EntranceEffect, wn as ImageVisualStyle, wr as blockArc, wt as StripsDirection, xi as EffectPreset, xn as LineVisualStyle, xr as linearGradient, xt as FlipTransition, yi as Effect, yn as LineRouting, yr as LineStroke, zi as MotionScopeMode, zn as ChartErrorBars, zr as ResolvedMotionScope, zt as TableRowStyle } from "./document-41spD7bq.js";
4
- import "./transition-6n8GZxSg.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
  };
9
37
  /** Props for the root `<Deck>` component; canvas `width` and `height` are in CSS pixels (`1280 × 720` default). */
10
38
  type DeckProps = DeckProps$1 & ElementProps;
11
- type SlideProps$1 = SlideProps$2 & ElementProps & {
12
- readonly placeholders?: Readonly<Record<string, unknown>> | undefined;
13
- };
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>>>>;
14
42
  /** Props for `<Section>`, grouping contiguous child `<Slide>` elements into a native `p14:sectionLst` section. */
15
43
  type SectionProps = SectionProps$1 & ElementProps;
16
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;
17
48
  export declare const Section: (props: SectionProps) => ReactNode;
18
49
  /**
19
50
  * Props for {@link Mount}, adopting pre-constructed editable nodes into a React tree without
@@ -76,65 +107,6 @@ type VanillaFactoryProps<F extends (props: never) => CommonNode | VanillaSlotRes
76
107
  * `<Suspense>` retries while non-`children` props remain shallow-equal.
77
108
  */
78
109
  export declare function fromVanilla<F extends (props: never) => CommonNode | VanillaSlotResult>(factory: F): (props: VanillaFactoryProps<F>) => ReactNode;
79
- type ExpandDocumentOptions = {
80
- /**
81
- * Cooperative cancellation for one React expansion; no default timeout when unspecified.
82
- * Cancellation before or during expansion rejects with the original reason.
83
- */
84
- readonly signal?: AbortSignal | undefined;
85
- };
86
- /** Options for one standalone JSX fragment expansion; cancellation covers expansion and cleanup only. */
87
- type ExpandFragmentOptions = ExpandDocumentOptions;
88
- /** Options for one JSX fragment append; cancellation covers expansion and cleanup only. */
89
- type AppendJSXOptions = ExpandFragmentOptions;
90
- /** Completed editable document handed off by React expansion. */
91
- type ExpandedDocument = CommonContainer<"deck">;
92
- /**
93
- * Public React handoff entry: runs author components to completion, waits for declared content,
94
- * cleans up the React root, and returns the completed editable document.
95
- *
96
- * The returned nodes no longer synchronize with the finished root. Repeat expansion creates a new
97
- * document instance and does not merge edits made to a previous result. Unhandled render errors,
98
- * cancellation, and cleanup failures reject; no partial document is returned.
99
- */
100
- export declare function expandDocument(element: ReactNode, options?: ExpandDocumentOptions): Promise<ExpandedDocument>;
101
- /**
102
- * Public React fragment handoff entry: runs a standalone JSX fragment to completion, waits for
103
- * declared async content and root cleanup, and returns frozen ownerless top-level editable nodes.
104
- *
105
- * The returned nodes no longer synchronize with the finished root and have `parent === undefined`.
106
- * Top-level non-whitespace text, unhandled render errors, cleanup failures, and cancellation reject
107
- * without returning partial results.
108
- */
109
- export declare function expandFragment(element: ReactNode, options?: ExpandFragmentOptions): Promise<readonly CommonNode[]>;
110
- /**
111
- * Public React append entry: expands one standalone JSX fragment, waits for final content and
112
- * cleanup, then appends its top-level editable nodes to `target` as one batch.
113
- *
114
- * The fragment runs in its own root, so React context comes from the fragment or an explicit
115
- * Provider inside it; the target's finished root is not revived. Expansion, unhandled errors,
116
- * cancellation, cleanup failures, and id conflicts leave the target unchanged. Id conflicts are
117
- * checked against the target's current structure at commit time, so edits made while the fragment
118
- * expands are respected. The returned nodes are the exact instances now owned by the target.
119
- */
120
- export declare function appendJSX(target: CommonContainer, element: ReactNode, options?: AppendJSXOptions): Promise<readonly CommonNode[]>;
121
- type BaseSlideProps = Omit<SlideProps$1, "transition" | "layout" | "placeholders"> & {
122
- readonly transition?: Transition;
123
- };
124
- type BoundSlideProps<L extends SlideLayoutSource = SlideLayoutSource> = BaseSlideProps & {
125
- readonly layout: L;
126
- readonly placeholders?: JsxPlaceholders<InferPlaceholderMap<L>>;
127
- };
128
- type FreeSlideProps = BaseSlideProps & {
129
- readonly layout?: undefined;
130
- readonly placeholders?: never;
131
- };
132
- type SlideProps<L extends SlideLayoutSource | undefined = SlideLayoutSource | undefined> = [L] extends [undefined] ? FreeSlideProps : [L] extends [SlideLayoutSource] ? BoundSlideProps<L> : BoundSlideProps | FreeSlideProps;
133
- type SlideMasterProps = SlideMasterAuthorProps & ElementProps;
134
- type SlideLayoutProps = SlideLayoutAuthorProps & ElementProps;
135
- export declare function Slide<const L extends SlideLayoutSource | undefined = undefined>(props: SlideProps<L>): ReactNode;
136
- export declare const SlideMaster: (props: SlideMasterProps) => ReactNode;
137
- export declare const SlideLayout: (props: SlideLayoutProps) => ReactNode;
138
110
  type BoxProps = BoxDeclarationProps & {
139
111
  readonly key?: Key | null;
140
112
  readonly children?: ReactNode;
@@ -164,6 +136,12 @@ type LineProps = LineDeclarationProps & {
164
136
  };
165
137
  /** Declares a native `<p:cxnSp>` line or connector within the React tree. */
166
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
+ };
167
145
  /**
168
146
  * Keeps one pure scope identity for the lifetime of this component instance.
169
147
  *
@@ -175,6 +153,11 @@ export declare function useMotionScope(): MotionScopeHandle;
175
153
  export declare function MotionScope(props: MotionScopeProps): ReactNode;
176
154
  /** A single click triggers a group of objects; declarations with the same number share a click step. */
177
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;
178
161
  type NotesProps = NotesDeclarationProps & {
179
162
  readonly children?: ReactNode;
180
163
  };
@@ -182,7 +165,7 @@ type NotesProps = NotesDeclarationProps & {
182
165
  export declare function Notes(props: NotesProps): ReactNode;
183
166
  type PlaceholderProps = PlaceholderDeclarationProps;
184
167
  /** Declares an unpopulated native content placeholder bound to a layout placeholder slot. */
185
- export declare function Placeholder(props: PlaceholderProps): ReactNode;
168
+ export declare function Placeholder(props: PlaceholderProps): TypedElement<"placeholder">;
186
169
  type ShapeProps = ShapeDeclarationProps & {
187
170
  /** Native text nodes shared with Text; may contain P, Span, and SlideNumber. */
188
171
  readonly children?: ReactNode;
@@ -220,6 +203,7 @@ type SubProps = SubDeclarationProps & {
220
203
  readonly children?: ReactNode;
221
204
  };
222
205
  type SlideNumberProps = SlideNumberDeclarationProps;
206
+ type DateTimeProps = DateTimeDeclarationProps;
223
207
  /** Native text box; numeric height preserves a fixed region, while auto height uses explicit font measurement. */
224
208
  export declare function Text(props: TextProps): TypedElement<"text">;
225
209
  /** Declares a native paragraph within a text box, with line spacing and paragraph list semantics. */
@@ -232,4 +216,54 @@ export declare function Sup(props: SupProps): TypedElement<"sup">;
232
216
  export declare function Sub(props: SubProps): TypedElement<"sub">;
233
217
  /** Emits a native slide number field resolved by presentation applications. */
234
218
  export declare function SlideNumber(props: SlideNumberProps): TypedElement<"slide-number">;
235
- export { type AppendJSXOptions, type ArrowType, 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, CommonContainer, CommonNode, type ContentPlaceholderRole, type CustomGeometry, 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 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 NativePlaceholderRef, 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 RadialGradient, type Rect, type RepeatCount, type RepeatedEffect, 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, 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 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 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 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 };
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,31 +1,31 @@
1
- import { createMorphScope, isMorphKey } from "./core/dist/morph.js";
2
- import { darker, defaultColorMap, defaultTheme, defineTheme, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isTheme, isThemeFontSlot, lighter, nativeColorSlots, schemeColorNames, schemeColorSlots, themeFontSlots } from "./core/dist/theme.js";
3
- import { isSlideLayoutDefinition } from "./core/dist/masters.js";
4
- import { buildDiagnosticSchema } from "./core/dist/stage-options.js";
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
5
  import { appendJSX, expandDocument, expandFragment } from "./react/dist/index.js";
6
- import { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer } from "./core/dist/document.js";
7
- 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 "./capabilities/dist/motion/motion-api.js";
8
- import { Slide, SlideLayout, SlideMaster } from "./pptxdk/src/slide.js";
9
- import { blockArc, path, preset } from "./capabilities/dist/shared/geometry.js";
10
- import { linearGradient, radialGradient } from "./capabilities/dist/shared/visual.js";
11
- import { motionSchedule } from "./capabilities/dist/motion/motion-query.js";
12
- import { font, fromFontCollection } from "./capabilities/dist/font/font.js";
13
- import { transitions } from "./capabilities/dist/transition/transition-api.js";
14
- import { Box } from "./capabilities/dist/box/box-elements.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";
15
13
  import { Mount } from "./react/dist/mount.js";
16
- import { Deck, Section } from "./react/dist/elements.js";
14
+ import { Deck, Section, Slide, SlideLayout, SlideMaster } from "./react/dist/elements.js";
17
15
  import { fromVanilla } from "./react/dist/from-vanilla.js";
18
- import { Chart } from "./capabilities/dist/chart/chart-elements.js";
19
- import { Group } from "./capabilities/dist/group/group-elements.js";
20
- import { Image } from "./capabilities/dist/image/image-elements.js";
21
- import { Line } from "./capabilities/dist/line/line-elements.js";
22
- import { MotionScope, Step, useMotionScope } from "./capabilities/dist/motion/motion-elements.js";
23
- import { Notes } from "./capabilities/dist/notes/notes-elements.js";
24
- import { Placeholder } from "./capabilities/dist/placeholder/placeholder-elements.js";
25
- import { Shape } from "./capabilities/dist/shape/shape-elements.js";
26
- import { Cell, Row, Table } from "./capabilities/dist/table/table-elements.js";
27
- import { P, SlideNumber, Span, Sub, Sup, Text } from "./capabilities/dist/text/text-elements.js";
28
- import "./core/dist/index.js";
29
- import "./core/dist/capability.js";
30
- import { defineSlideLayout } from "./capabilities/dist/document.js";
31
- export { AuthorQuery, AuthorQueryError, Box, Cell, Chart, CommonContainer, CommonNode, 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, 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 };
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 };
@@ -1,15 +1,29 @@
1
- import { $ as RegisteredCapabilityModule, U as EmitResult, a as CommonNode, et as Resolution, kt as EmitOptions } from "./capability-BbKW9w4O.js";
2
- import "./index-cK2KtukZ.js";
3
- import "./build-zrZuX4fK.js";
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";
4
3
  import { z } from "zod";
5
4
  /**
6
5
  * Emits a PPTX archive and BuildReport from an existing Resolution without re-resolving the document.
7
6
  */
8
- declare function emit(resolution: Resolution, options?: EmitOptions): EmitResult;
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>;
9
19
  type CodegenTarget = "vanilla" | "react";
10
20
  /** Supported author source generation syntax targets. */
11
21
  declare const codegenTargetSchema: z.ZodType<CodegenTarget>;
12
- type CodegenEntryName<T extends CodegenTarget = CodegenTarget> = T extends "vanilla" ? "deck.ts" : T extends "react" ? "deck.tsx" : "deck.ts" | "deck.tsx";
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];
13
27
  type CodegenOptions<T extends CodegenTarget = CodegenTarget> = {
14
28
  readonly target: T;
15
29
  };
@@ -60,4 +74,7 @@ declare class CodegenError extends Error {
60
74
  * Creates a synchronous source code generator wired with the provided capability modules.
61
75
  */
62
76
  declare function createCodegen(capabilities: readonly RegisteredCapabilityModule[]): <T extends CodegenTarget>(document: CommonNode, options: CodegenOptions<T>) => CodegenResult<T>;
63
- export { CodegenError as a, CodegenResult as c, codegenDiagnosticSchema as d, codegenOptionsSchema as f, CodegenEntryName as i, CodegenTarget as l, emit as m, CodegenDiagnostic as n, CodegenFileContent as o, codegenTargetSchema as p, CodegenDiagnosticCode as r, CodegenOptions as s, createCodegen as t, codegenDiagnosticCodeSchema as u };
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 };
package/dist/vanilla.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as ArrowType } from "./index-cK2KtukZ.js";
2
- import { $r as lighter, A as isSlideLayoutDefinition, An as CustomGeometry, Bn as PaddingStyle, Br as defineTheme, C as SlideLayoutDefinition, Cn as PlaceholderMap, Cr as ThemeColor, Dn as TextList, Dr as ThemeOverride, En as PlaceholderStyle, Er as ThemeInput, Et as BuildDiagnostic, Fn as PresetGeometryName, G as FontUsage, In as LayoutLength, Jr as isNativeColorSlot, Ln as LayoutSpacing, Lr as darker, Mn as GeometryPath, Nn as PathCommand, On as TextPlaceholderRole, Or as ThemeShade, Pn as PresetGeometry, Q as Rect, Qn as ColorValue, Qr as isThemeFontSlot, Rn as LayoutStyle, Rr as defaultColorMap, S as SlideLayoutDataProps, Sn as PlaceholderListStyles, Sr as Theme, T as SlideLayoutType, Tn as PlaceholderSize, Tr as ThemeFontSlot, W as FontStyleDescriptor, X as ObjectTransform, Xn as ColorMap, Xr as isSchemeColorSlot, Yr as isSchemeColorName, Zn as ColorMapOverride, Zr as isTheme, _ as FooterPlaceholders, _n as MasterPlaceholderMap, _r as SchemeColorName, _t as UnmeasuredFontIssue, a as CommonNode, ar as FontSize, b as ResolvedPlaceholder, bn as NativePlaceholderRef, br as TextAlignment, bt as createMorphScope, c as DocumentStyle, cr as HexColor, d as RichTextItem, dt as ResolvedTableCell, ei as nativeColorSlots, en as LinkTarget, er as Font, f as SlideContainer, ft as ResolvedTableRow, g as FooterPlaceholderSpec, gn as LayoutPlaceholderSpec, gr as RadialGradient, gt as TextMetrics, h as StyleUpdate, hn as EmptyPlaceholderMap, hr as NativeColorSlot, ht as SlideLocator, i as CommonContainer, in as SlideNumberValue, ir as FontReference, it as ResolvedFooterSlot, jn as Geometry, kr as VisualStyle, l as DocumentUpdate, lt as ResolvedSlide, m as SlideMasterContainer, mn as ContentPlaceholderRole, mr as LinearGradient, n as AuthorQuery, ni as schemeColorSlots, nn as SlideBackground, nr as FontFaceStyle, o as DeckContainer, oi as themeFontSlots, or as FormatScheme, ot as ResolvedLayout, p as SlideLayoutContainer, pr as LineHeight, pt as ScreenPoint, r as AuthorQueryError, rn as SlideFooterValue, rr as FontOptions, rt as ResolvedFooter, s as DocumentProps, sr as GradientStop, st as ResolvedObject, t as AuthorNodeGuard, ti as schemeColorNames, tr as FontFace, u as RichTextContainer, ui as AuthorId, ut as ResolvedTable, v as HeaderFooter, vn as MasterPlaceholderSpec, vr as SchemeColorSlot, vt as MorphKey, wn as PlaceholderOrient, wr as ThemeData, x as ResolvedSlideLayout, xn as PlaceholderLevelStyle, xr as TextStyle, xt as isMorphKey, y as ResolvedMaster, yn as MasterTextStyles, yr as Shadow, yt as MorphScope, zr as defaultTheme, zt as buildDiagnosticSchema } from "./capability-BbKW9w4O.js";
3
- import { $ as defineSlideLayout, $n as ChartTitle, $r as floatUp, $t as MotionDependency, A as SlideLayoutAuthorProps, Ai as InstantEffectOptions, An as ChartAxisReferences, At as ShapeTextStyle, B as SpanNode, Bi as MotionStepAuthorProps, Bn as ChartGroup, Br as ResolvedMotionStep, Bt as TableSpacing, C as PlaceholderAuthorProps, Ci as EmphasisEffectDeclaration, Cn as ImageSource, Cr as PathOptions, Ct as StandardTransition, D as ShapeAuthorProps, Di as ExitEffectDeclaration, Dn as ChartAxis, Dt as TransitionDuration, E as SectionNode, Ei as ExitEffect, En as ChartNode, Er as preset, Et as TransitionDirection, F as SlideNode, Fi as MotionMomentOffset, Fn as ChartDataLabels, Fr as MotionNativeProjection, G as TableAuthorProps, Gi as OwnerMotionStep, Gn as ChartMarker, Gr as collapse, H as SubNode, Hi as MotionTiming, Hn as ChartKind, Hr as after, Ht as TableTextStyle, I as SlideNumberAuthorProps, Ii as MotionProps, In as ChartDisplayBlanksAs, It as TableCellStyle, J as TextNode, Ji as RepeatedEffect, Jr as fade, Jt as NotesDeclarationProps, K as TextAuthorProps, Ki as OwnerMotionTarget, Kn as ChartMarkerSymbol, Kr as createMotionScopeHandle, L as SlideNumberNode, Li as MotionScopeAuthorProps, Ln as ChartErrorBarInclude, Lr as MotionStartDependency, Lt as TableColumn, M as SlideLayoutSource, Mi as MotionDirection, Mn as ChartCategoryAxisReferences, Mt as RowNode, N as SlideMasterAuthorProps, Ni as MotionGranularity, Nn as ChartCustomErrorBars, Nt as TableNode, O as ShapeNode, Oi as ExitPreset, On as ChartAxisCrossing, Or as ParagraphStyle, Ot as TransitionSpeed, P as SlideMasterNode, Pi as MotionMoment, Pn as ChartDataLabelOverride, Q as deck, Qn as ChartTickMark, Qr as floatOut, Qt as MotionDecision, R as SpanAuthorProps, Ri as MotionScopeHandle, Rn as ChartErrorBarValues, Rr as ResolvedMotionEffect, S as ParagraphNode, Si as EmphasisEffect, Sr as radialGradient, St as MorphTransition, T as SectionAuthorProps, Ti as EntranceEffectDeclaration, Tr as path, Tt as Transition, U as SupAuthorProps, Ui as OwnerMotion, Un as ChartLine, Ur as appear, Ut as TableVerticalAlign, V as SubAuthorProps, Vi as MotionTargetRange, Vn as ChartGroupData, Vt as TableStyle, W as SupNode, Wi as OwnerMotionEffect, Wn as ChartLineDash, Wr as breathe, X as cell, Xi as SteppedEffect, Xn as ChartSeriesDataLabelOverride, Xr as fillColor, Xt as MotionCue, Y as box, Yi as SpinOptions, Yn as ChartSeries, Yr as fadeOut, Yt as EffectInstance, Z as chart, Zn as ChartTickLabelPosition, Zr as floatDown, Zt as MotionCueRef, _ as MotionStepNode, _i as BreatheOptions, _n as LineLayoutStyle, _r as ScatterLine, _t as sup, a as DeckAuthorProps, ai as spinIn, an as MotionSchedule, ar as DoughnutChartGroup, at as paragraph, b as ParagraphAuthorProps, bi as EffectOptions, bn as LineStyle, br as LineStrokeValue, c as GroupNode, ci as wipe, cn as MotionScopeSchedule, cr as LineOrAreaChartGroup, ct as section, d as ImperativePlaceholders, di as zoomOut, dn as MotionTime, dr as ScatterChartPoint, dt as slideLayout, ei as fly, en as MotionDifference, er as ChartTrendline, et as group, f as InferPlaceholderMap, fi as font, fn as ResolvedMotionMoment, fr as ScatterChartSeries, ft as slideMaster, g as MotionScopeNode, gi as BreatheEffect, gn as LineEndpoint, gr as ScatterErrorBars, gt as sub, h as LineNode, hi as MorphProps, hr as ScatterDataLabels, ht as step, i as ChartAuthorProps, ii as spin, in as MotionMomentRef, ir as ColumnOrBarChartGroup, it as notes, j as SlideLayoutNode, ji as MotionCompletionState, jn as ChartCategoryAxis, jt as CellNode, k as SlideAuthorProps, ki as FillColorOptions, kn as ChartAxisPosition, kr as RunTextStyle, kt as transitions, l as ImageAuthorProps, li as wipeOut, ln as MotionStepQuery, lr as PieChartGroup, lt as shape, m as LineAuthorProps, mn as LineAdjust, mr as ScatterDataLabelOverride, mt as span, n as BoxNode, ni as onStep, nn as MotionIntervalRef, nr as ChartValueAxis, nt as line, o as DeckNode, oi as spinOut, on as MotionScopeQueryMember, or as IndependentCategoryData, ot as placeholder, pi as fromFontCollection, pn as motionSchedule, pr as ScatterData, pt as slideNumber, q as TextContent, qi as RepeatCount, qn as ChartPoint, qr as disappear, qt as PlaceholderNode, r as CellAuthorProps, ri as repeat, rn as MotionMembership, rr as ChartXYAxisReferences, rt as motionScope, s as GroupAuthorProps, si as stretch, sn as MotionScopeRef, sr as IndependentCategorySeries, st as row, t as BoxAuthorProps, ti as flyOut, tn as MotionEffectRef, tr as ChartTrendlineType, tt as image, u as ImageNode, ui as zoom, un as MotionStepRef, ur as ScatterChartGroup, ut as slide, v as NotesAuthorProps, vi as Easing, vn as LinePort, vr as SharedCategoryData, vt as table, w as RowAuthorProps, wi as EntranceEffect, wn as ImageVisualStyle, wr as blockArc, wt as StripsDirection, x as ParagraphContent, xi as EffectPreset, xn as LineVisualStyle, xr as linearGradient, xt as FlipTransition, y as NotesNode, yi as Effect, yn as LineRouting, yr as LineStroke, yt as text, z as SpanContent, zi as MotionScopeMode, zn as ChartErrorBars, zr as ResolvedMotionScope, zt as TableRowStyle } from "./document-41spD7bq.js";
4
- export { type ArrowType, type AuthorId, type AuthorNodeGuard, AuthorQuery, AuthorQueryError, type BoxAuthorProps, type BoxNode, type BreatheEffect, type BreatheOptions, type BuildDiagnostic, type CellAuthorProps, type CellNode, type ChartAuthorProps, 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 ChartNode, type ChartPoint, 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, type DeckAuthorProps, DeckContainer, type DeckNode, type DocumentProps, type DocumentStyle, type DocumentUpdate, type DoughnutChartGroup, type Easing, type Effect, type EffectInstance, type EffectOptions, type EffectPreset, type EmphasisEffect, type EmphasisEffectDeclaration, type EmptyPlaceholderMap, type EntranceEffect, type EntranceEffectDeclaration, type ExitEffect, type ExitEffectDeclaration, type ExitPreset, 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 GroupAuthorProps, type GroupNode, type HeaderFooter, type HexColor, type ImageAuthorProps, type ImageNode, type ImageSource, type ImageVisualStyle, type ImperativePlaceholders, type IndependentCategoryData, type IndependentCategorySeries, type InferPlaceholderMap, type InstantEffectOptions, type LayoutLength, type LayoutPlaceholderSpec, type LayoutSpacing, type LayoutStyle, type LineAdjust, type LineAuthorProps, type LineEndpoint, type LineHeight, type LineLayoutStyle, type LineNode, type LineOrAreaChartGroup, type LinePort, type LineRouting, type LineStroke, type LineStrokeValue, type LineStyle, type LineVisualStyle, type LinearGradient, type LinkTarget, type MasterPlaceholderMap, type MasterPlaceholderSpec, type MasterTextStyles, 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 MotionScopeAuthorProps, type MotionScopeHandle, type MotionScopeMode, type MotionScopeNode, type MotionScopeQueryMember, type MotionScopeRef, type MotionScopeSchedule, type MotionStartDependency, type MotionStepAuthorProps, type MotionStepNode, type MotionStepQuery, type MotionStepRef, type MotionTargetRange, type MotionTime, type MotionTiming, type NativeColorSlot, type NativePlaceholderRef, type NotesAuthorProps, type NotesDeclarationProps, type NotesNode, type ObjectTransform, type OwnerMotion, type OwnerMotionEffect, type OwnerMotionStep, type OwnerMotionTarget, type PaddingStyle, type ParagraphAuthorProps, type ParagraphContent, type ParagraphNode, type ParagraphStyle, type PathCommand, type PathOptions, type PieChartGroup, type PlaceholderAuthorProps, type PlaceholderLevelStyle, type PlaceholderListStyles, type PlaceholderMap, type PlaceholderNode, type PlaceholderOrient, type PlaceholderSize, type PlaceholderStyle, type PresetGeometry, type PresetGeometryName, type RadialGradient, type Rect, type RepeatCount, type RepeatedEffect, 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, RichTextContainer, type RichTextItem, type RowAuthorProps, type RowNode, 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 SectionAuthorProps, type SectionNode, type Shadow, type ShapeAuthorProps, type ShapeNode, type ShapeTextStyle, type SharedCategoryData, type SlideAuthorProps, type SlideBackground, SlideContainer, type SlideFooterValue, type SlideLayoutAuthorProps, SlideLayoutContainer, type SlideLayoutDataProps, type SlideLayoutDefinition, type SlideLayoutNode, type SlideLayoutSource, type SlideLayoutType, type SlideLocator, type SlideMasterAuthorProps, SlideMasterContainer, type SlideMasterNode, type SlideNode, type SlideNumberAuthorProps, type SlideNumberNode, type SlideNumberValue, type SpanAuthorProps, type SpanContent, type SpanNode, type SpinOptions, type StandardTransition, type SteppedEffect, type StripsDirection, type StyleUpdate, type SubAuthorProps, type SubNode, type SupAuthorProps, type SupNode, type TableAuthorProps, type TableCellStyle, type TableColumn, type TableNode, type TableRowStyle, type TableSpacing, type TableStyle, type TableTextStyle, type TableVerticalAlign, type TextAlignment, type TextAuthorProps, type TextContent, type TextList, type TextMetrics, type TextNode, type TextPlaceholderRole, 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 UnmeasuredFontIssue, type VisualStyle, after, appear, blockArc, box, breathe, buildDiagnosticSchema, cell, chart, collapse, createMorphScope, createMotionScopeHandle, darker, deck, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, group, image, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, line, linearGradient, motionSchedule, motionScope, nativeColorSlots, notes, onStep, paragraph, path, placeholder, preset, radialGradient, repeat, row, schemeColorNames, schemeColorSlots, section, shape, slide, slideLayout, slideMaster, slideNumber, span, spin, spinIn, spinOut, step, stretch, sub, sup, table, text, themeFontSlots, transitions, wipe, wipeOut, zoom, zoomOut };
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, 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, A as ShapeNode, Ai as AudioNode, Ar as LineStrokeValue, At as span, B as SlideMasterNode, Bi as Easing, Br as ChartAxisReferences, Bt as EffectInstance, C as ParagraphContent, Ca as path, Ci as ScatterData, Cr as LineEndpoint, Ct as slide, D as SectionAuthorProps, Di as ScatterLine, Dn as TableTextStyle, Dr as LineStyle, E as RowAuthorProps, Ei as ScatterErrorBars, En as TableStyle, Er as LineRouting, Et as slideMaster, F as SlideLayoutDefinition, Fr as PrintHeaderFooter, Ft as text, G as SlideProps, Gi as EmphasisEffectDeclaration, Gn as MotionStartDependency, Gr as ChartDataLabels, Gt as MotionDifference, H as SlideNode, Hi as EffectOptions, Hr as ChartCategoryAxisReferences, Ht as MotionCueRef, I as SlideLayoutNode, Ii as ImageSource, Ir as ChartNode, It as video, J as SpanContent, Ji as ExitEffect, Jn as ResolvedMotionStep, Jr as ChartErrorBarValues, Jt as MotionMembership, Ki as EntranceEffect, Kn as ResolvedMotionEffect, Kr as ChartDisplayBlanksAs, Kt as MotionEffectRef, L as SlideLayoutProps, Li as ImageVisualStyle, Ln as ParagraphStyle, Lr as ChartAxis, Lt as CommentAuthorProps, M as SlideLayoutAuthorProps, Mi as AudioDeclarationProps, Mr as radialGradient, Mt as sub, Ni as MediaPlaybackProps, Nn as PlaceholderNode, Nt as sup, O as SectionNode, Oi as SharedCategoryData, On as TableVerticalAlign, Or as LineVisualStyle, Ot as slideNumber, P as SlideLayoutDataProps, Pi as VideoDeclarationProps, Pn as NotesDeclarationProps, Pr as PrintDateTimeValue, Pt as table, Q as SupAuthorProps, Qi as InstantEffectOptions, Qn as collapse, Qr as ChartKind, Qt as MotionScopeRef, R as SlideLayoutSource, Ri as BreatheEffect, Rn as RunTextStyle, Rr as ChartAxisCrossing, Rt as CommentNode, S as ParagraphAuthorProps, Sa as blockArc, Si as ScatterChartSeries, Sn as TableColumn, St as shape, T as PlaceholderAuthorProps, Ti as ScatterDataLabels, Tn as TableSpacing, Tr as LinePort, U as SlideNumberAuthorProps, Ui as EffectPreset, Ur as ChartCustomErrorBars, Ut as MotionDecision, V as SlideMasterProps, Vi as Effect, Vr as ChartCategoryAxis, Vt as MotionCue, W as SlideNumberNode, Wi as EmphasisEffect, Wn as MotionNativeProjection, Wr as ChartDataLabelOverride, Wt as MotionDependency, X as SubAuthorProps, 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, _ as LineNode, _a as SpinOptions, _i as IndependentCategorySeries, _n as RowNode, _r as zoom, _t as notes, a as DateTimeAuthorProps, aa as MotionScopeAuthorProps, ai as ChartSeries, an as VideoNode, ar as floatOut, at as box, b as NotesAuthorProps, ba as MorphProps, bi as ScatterChartGroup, br as fromFontCollection, bt as row, c as DeckNode, ca as MotionStepAuthorProps, ci as ChartTickMark, cn as MorphTransition, cr as flyOut, ct as dateTime, d as GroupNode, 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, et as TableAuthorProps, f as ImageAuthorProps, fa as OwnerMotionEffect, fi as ChartValueAxis, fn as TransitionDirection, fr as spinIn, ft as group, g as LineAuthorProps, ga as RepeatedEffect, gi as IndependentCategoryData, gn as CellNode, gr as wipeOut, gt as motionScope, h as InferPlaceholderMap, ha as RepeatCount, hi as DoughnutChartGroup, hn as transitions, hr as wipe, ht as line, i as ChartAuthorProps, ia as MotionProps, in as motionSchedule, ir as floatDown, it as audio, j as SlideAuthorProps, ji as AudioSource, jr as linearGradient, jt as step, k as ShapeAuthorProps, kn as ShapeTextStyle, kr as LineStroke, l as DeckProps, la as MotionTargetRange, li as ChartTitle, ln as StandardTransition, lr as onStep, lt as deck, m as ImperativePlaceholders, ma as OwnerMotionTarget, mi as ColumnOrBarChartGroup, mn as TransitionSpeed, mr as stretch, mt as isSlideLayoutDefinition, n as BoxNode, na as MotionMoment, ni as ChartMarkerSymbol, nn as MotionTime, nr as fadeOut, nt as TextContent, o as DateTimeNode, oa as MotionScopeHandle, oi as ChartSeriesDataLabelOverride, on as VideoSource, or as floatUp, ot as cell, p as ImageNode, pa as OwnerMotionStep, pi as ChartXYAxisReferences, pn as TransitionDuration, pr as spinOut, pt as image, q as SpanAuthorProps, qi as EntranceEffectDeclaration, qn as ResolvedMotionScope, qr as ChartErrorBarInclude, qt as MotionIntervalRef, r as CellAuthorProps, ra as MotionMomentOffset, ri as ChartPoint, rn as ResolvedMotionMoment, rr as fillColor, rt as TextNode, s as DeckAuthorProps, sa as MotionScopeMode, si as ChartTickLabelPosition, sn as FlipTransition, sr as fly, st as chart, t as BoxAuthorProps, ta as MotionGranularity, ti as ChartMarker, tn as MotionStepRef, tr as fade, tt as TextAuthorProps, u as GroupAuthorProps, ua as MotionTiming, ui as ChartTrendline, un as StripsDirection, ur as repeat, v as MotionScopeNode, va as SteppedEffect, vi as LineOrAreaChartGroup, vn as TableNode, vr as zoomOut, vt as paragraph, w as ParagraphNode, wa as preset, wi as ScatterDataLabelOverride, wn as TableRowStyle, wr as LineLayoutStyle, wt as slideLayout, x as NotesNode, xa as PathOptions, xi as ScatterChartPoint, xn as TableCellStyle, xr as LineAdjust, xt as section, y as MotionStepNode, yi as PieChartGroup, yr as font, yt as placeholder, z as SlideMasterAuthorProps, zi as BreatheOptions, zr as ChartAxisPosition, zt as comment } from "./document-C0lPlH-L.js";
4
+ export { type ArrowType, type AudioDeclarationProps, type AudioNode, type AudioSource, type AuthorId, type AuthorNodeGuard, AuthorQuery, AuthorQueryError, type BoxAuthorProps, type BoxNode, type BreatheEffect, type BreatheOptions, type BuildDiagnostic, type CellAuthorProps, type CellNode, type ChartAuthorProps, 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 ChartNode, type ChartPoint, 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 CommentAuthorProps, type CommentNode, CommonContainer, CommonNode, type ContentPlaceholderRole, type CustomGeometry, type DateTimeAuthorProps, type DateTimeFooterPlaceholderSpec, type DateTimeFormat, type DateTimeNode, type DeckAuthorProps, DeckContainer, type DeckNode, type DeckProps, type DocumentProps, type DocumentStyle, type DocumentUpdate, type DoughnutChartGroup, type Easing, type Effect, type EffectInstance, type EffectOptions, type EffectPreset, type EmphasisEffect, type EmphasisEffectDeclaration, type EmptyPlaceholderMap, type EntranceEffect, type EntranceEffectDeclaration, type ExitEffect, type ExitEffectDeclaration, type ExitPreset, 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 GroupAuthorProps, type GroupNode, type HeaderFooter, type HexColor, type ImageAuthorProps, type ImageNode, type ImageSource, type ImageVisualStyle, type ImperativePlaceholders, type IndependentCategoryData, type IndependentCategorySeries, type InferPlaceholderMap, type InstantEffectOptions, type LayoutLength, type LayoutPlaceholderSpec, type LayoutSpacing, type LayoutStyle, type LineAdjust, type LineAuthorProps, type LineEndpoint, type LineHeight, type LineLayoutStyle, type LineNode, type LineOrAreaChartGroup, type LinePort, 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 MotionScopeAuthorProps, type MotionScopeHandle, type MotionScopeMode, type MotionScopeNode, type MotionScopeQueryMember, type MotionScopeRef, type MotionScopeSchedule, type MotionStartDependency, type MotionStepAuthorProps, type MotionStepNode, type MotionStepQuery, type MotionStepRef, type MotionTargetRange, type MotionTime, type MotionTiming, type NativeColorSlot, type NotesAuthorProps, type NotesDeclarationProps, type NotesNode, type ObjectTransform, type OwnerMotion, type OwnerMotionEffect, type OwnerMotionStep, type OwnerMotionTarget, type PaddingStyle, type ParagraphAuthorProps, type ParagraphContent, type ParagraphNode, type ParagraphStyle, type PathCommand, type PathOptions, type PieChartGroup, type PlaceholderAuthorProps, type PlaceholderLevelStyle, type PlaceholderListStyles, type PlaceholderMap, type PlaceholderNode, type PlaceholderOrient, 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 RowAuthorProps, type RowNode, 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 SectionAuthorProps, type SectionNode, type Shadow, type ShapeAuthorProps, type ShapeNode, type ShapeTextStyle, type SharedCategoryData, type SlideAuthorProps, type SlideBackground, SlideContainer, type SlideDateTimeValue, type SlideFooterValue, type SlideLayoutAuthorProps, SlideLayoutContainer, type SlideLayoutDataProps, type SlideLayoutDefinition, type SlideLayoutNode, type SlideLayoutProps, type SlideLayoutSource, type SlideLayoutType, type SlideLocator, type SlideMasterAuthorProps, SlideMasterContainer, type SlideMasterNode, type SlideMasterProps, type SlideNode, type SlideNumberAuthorProps, type SlideNumberNode, type SlideNumberValue, type SlideProps, type SpanAuthorProps, type SpanContent, type SpanNode, type SpinOptions, type StandardTransition, type SteppedEffect, type StripsDirection, type StyleUpdate, type SubAuthorProps, type SubNode, type SupAuthorProps, type SupNode, type TableAuthorProps, type TableCellStyle, type TableColumn, type TableNode, type TableRowStyle, type TableSpacing, type TableStyle, type TableTextStyle, type TableVerticalAlign, type TextAlignment, type TextAuthorProps, type TextContent, type TextFillValue, type TextList, type TextMetrics, type TextNode, type TextPlaceholderRole, 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 UnmeasuredFontIssue, type VideoDeclarationProps, type VideoNode, type VideoSource, type VisualStyle, after, appear, audio, blockArc, box, breathe, buildDiagnosticSchema, cell, chart, collapse, comment, createMorphScope, createMotionScopeHandle, darker, dateTime, deck, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, group, image, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, line, linearGradient, motionSchedule, motionScope, nativeColorSlots, notes, onStep, paragraph, path, placeholder, preset, radialGradient, repeat, row, schemeColorNames, schemeColorSlots, section, shape, slide, slideLayout, slideMaster, slideNumber, span, spin, spinIn, spinOut, step, stretch, sub, sup, table, text, themeFontSlots, transitions, video, wipe, wipeOut, zoom, zoomOut };
package/dist/vanilla.js CHANGED
@@ -1,15 +1,14 @@
1
- import { createMorphScope, isMorphKey } from "./core/dist/morph.js";
2
- import { darker, defaultColorMap, defaultTheme, defineTheme, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isTheme, isThemeFontSlot, lighter, nativeColorSlots, schemeColorNames, schemeColorSlots, themeFontSlots } from "./core/dist/theme.js";
3
- import { isSlideLayoutDefinition } from "./core/dist/masters.js";
4
- import { buildDiagnosticSchema } from "./core/dist/stage-options.js";
5
- import "./core/dist/index.js";
6
- import { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer } from "./core/dist/document.js";
7
- 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 "./capabilities/dist/motion/motion-api.js";
8
- import "./core/dist/capability.js";
9
- import { blockArc, path, preset } from "./capabilities/dist/shared/geometry.js";
10
- import { linearGradient, radialGradient } from "./capabilities/dist/shared/visual.js";
11
- import { motionSchedule } from "./capabilities/dist/motion/motion-query.js";
12
- import { font, fromFontCollection } from "./capabilities/dist/font/font.js";
13
- import { transitions } from "./capabilities/dist/transition/transition-api.js";
14
- import { box, cell, chart, deck, defineSlideLayout, group, image, line, motionScope, notes, paragraph, placeholder, row, section, shape, slide, slideLayout, slideMaster, slideNumber, span, step, sub, sup, table, text } from "./capabilities/dist/document.js";
15
- export { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer, after, appear, blockArc, box, breathe, buildDiagnosticSchema, cell, chart, collapse, createMorphScope, createMotionScopeHandle, darker, deck, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, group, image, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, line, linearGradient, motionSchedule, motionScope, nativeColorSlots, notes, onStep, paragraph, path, placeholder, preset, radialGradient, repeat, row, schemeColorNames, schemeColorSlots, section, shape, slide, slideLayout, slideMaster, slideNumber, span, spin, spinIn, spinOut, step, stretch, sub, sup, table, text, themeFontSlots, transitions, wipe, wipeOut, zoom, zoomOut };
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 "./core/dist/kernel/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 { comment } from "./core/dist/capabilities/comment/comment-declaration.js";
13
+ import { audio, box, cell, chart, dateTime, deck, defineSlideLayout, group, image, isSlideLayoutDefinition, line, motionScope, notes, paragraph, placeholder, row, section, shape, slide, slideLayout, slideMaster, slideNumber, span, step, sub, sup, table, text, video } from "./core/dist/document/document.js";
14
+ export { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer, after, appear, audio, blockArc, box, breathe, buildDiagnosticSchema, cell, chart, collapse, comment, createMorphScope, createMotionScopeHandle, darker, dateTime, deck, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, group, image, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, line, linearGradient, motionSchedule, motionScope, nativeColorSlots, notes, onStep, paragraph, path, placeholder, preset, radialGradient, repeat, row, schemeColorNames, schemeColorSlots, section, shape, slide, slideLayout, slideMaster, slideNumber, span, spin, spinIn, spinOut, step, stretch, sub, sup, table, text, themeFontSlots, transitions, video, wipe, wipeOut, zoom, zoomOut };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@officedk/pptxdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "From TypeScript to PowerPoint and back.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -46,11 +46,7 @@
46
46
  "zod": "^4.6.7"
47
47
  },
48
48
  "devDependencies": {
49
- "@pptxdk/capabilities": "0.0.0",
50
- "@pptxdk/codegen": "0.0.0",
51
49
  "@pptxdk/core": "0.0.0",
52
- "@pptxdk/emit": "0.0.0",
53
- "@pptxdk/import": "0.0.0",
54
50
  "@pptxdk/preview": "0.0.0",
55
51
  "@pptxdk/react": "0.0.0",
56
52
  "@pptxdk/tooling-config": "0.0.0",
@@ -64,7 +60,9 @@
64
60
  "rolldown-plugin-dts": "0.30.2",
65
61
  "typescript-7": "npm:typescript@^7.0.2",
66
62
  "vite": "8.3.5",
67
- "vitest": "5.0.5"
63
+ "vitepress": "1.6.4",
64
+ "vitest": "5.0.5",
65
+ "yaml": "2.9.1"
68
66
  },
69
67
  "engines": {
70
68
  "node": "^26.13.0"
@@ -74,9 +72,12 @@
74
72
  "format:write": "oxfmt --write .",
75
73
  "lint": "oxlint --quiet --format=unix --ignore-pattern node_modules .",
76
74
  "lint:fix": "oxlint --format=unix . --fix",
77
- "typecheck": "tsc -p tsconfig.node.json --noEmit --pretty false",
75
+ "typecheck": "tsc -p tsconfig.node.json --noEmit --pretty false && tsc -p tsconfig.handbook.json --noEmit --pretty false",
78
76
  "build": "rm -rf dist && tsc -p tsconfig.build.json --pretty false && rolldown -c && rm -rf dist/.declarations && chmod +x dist/cli.js",
79
77
  "test": "vitest run",
78
+ "test:acceptance": "vitest run --config vitest.acceptance.config.ts",
79
+ "handbook:dev": "node --conditions=source scripts/dev-handbook.ts",
80
+ "check:handbook": "node --conditions=source scripts/check-handbook.ts",
80
81
  "check:conditional": "node --conditions=source scripts/check-external-corpus.ts"
81
82
  }
82
83
  }
@@ -1,3 +0,0 @@
1
- import { Ft as ResolveOptions, H as CapabilityModule, et as Resolution, mi as DeclarationNode, pi as DeclarationContainer } from "./capability-BbKW9w4O.js";
2
- declare function createResolver(modules: readonly CapabilityModule[]): (declaration: DeclarationContainer | DeclarationNode, options?: ResolveOptions) => Resolution;
3
- export { createResolver as t };