@officedk/pptxdk 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +2 -5
  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
@@ -1,34 +0,0 @@
1
- import { boxCapability } from "./box/box.js";
2
- import { chartCapability } from "./chart/chart.js";
3
- import { groupCapability } from "./group/group.js";
4
- import { imageCapability } from "./image/image.js";
5
- import { lineCapability } from "./line/line.js";
6
- import { footerPlaceholderCapability } from "./masters/footer-placeholder.js";
7
- import { mastersCapability } from "./masters/masters.js";
8
- import { motionCapability } from "./motion/motion.js";
9
- import { notesCapability } from "./notes/notes.js";
10
- import { placeholderCapability } from "./placeholder/placeholder.js";
11
- import { shapeCapability } from "./shape/shape.js";
12
- import { slideBackgroundCapability } from "./slide-background/slide-background.js";
13
- import { tableCapability } from "./table/table.js";
14
- import { textCapability } from "./text/text.js";
15
- import { transitionCapability } from "./transition/transition.js";
16
- /** Baseline capabilities enabled by the public document build; factories never register capabilities. */
17
- const documentCapabilities = Object.freeze([
18
- boxCapability,
19
- chartCapability,
20
- footerPlaceholderCapability,
21
- groupCapability,
22
- imageCapability,
23
- lineCapability,
24
- mastersCapability,
25
- motionCapability,
26
- notesCapability,
27
- placeholderCapability,
28
- shapeCapability,
29
- slideBackgroundCapability,
30
- tableCapability,
31
- textCapability,
32
- transitionCapability
33
- ]);
34
- export { documentCapabilities };
@@ -1,12 +0,0 @@
1
- import { hostNodeCreator } from "../../../core/dist/host.js";
2
- import { motionElement } from "../motion/motion-elements.js";
3
- import { createChartNode } from "./chart-declaration.js";
4
- // ../capabilities/dist/chart/chart-elements.js
5
- /** Declares an object compiled into a native chart by the official capability module. */
6
- function Chart(props) {
7
- return motionElement("chart", {
8
- ...props,
9
- [hostNodeCreator]: createChartNode
10
- });
11
- }
12
- export { Chart };
@@ -1,334 +0,0 @@
1
- import { mergeDataLabels } from "../chart-labels.js";
2
- import { formatChartNumber } from "./number-format.js";
3
- import { resolveChartLineStroke, strokeAttrs } from "./style.js";
4
- import { measureChartText, mergeChartTextStyle, renderChartTextSvg, resolveChartFontSizePixels } from "./text-render.js";
5
- // ../capabilities/dist/chart/preview/data-labels.js
6
- function barLabelBox(anchor, position, textWidth, textHeight) {
7
- const pad = 3;
8
- const labelH = Math.max(textHeight, 10);
9
- if (!anchor.horizontal) {
10
- const colW = Math.max(anchor.width, textWidth + 2);
11
- const colX = anchor.x + (anchor.width - colW) / 2;
12
- if (position === "center") return {
13
- box: {
14
- x: colX,
15
- y: anchor.y,
16
- width: colW,
17
- height: Math.max(anchor.height, labelH)
18
- },
19
- align: "center",
20
- verticalAlign: "middle"
21
- };
22
- const endIsTop = anchor.valueEndSide === "top";
23
- if (position === "insideEnd") return {
24
- box: {
25
- x: colX,
26
- y: endIsTop ? anchor.y + pad : anchor.y + anchor.height - labelH - pad,
27
- width: colW,
28
- height: labelH
29
- },
30
- align: "center",
31
- verticalAlign: endIsTop ? "top" : "bottom"
32
- };
33
- if (position === "insideBase") return {
34
- box: {
35
- x: colX,
36
- y: endIsTop ? anchor.y + anchor.height - labelH - pad : anchor.y + pad,
37
- width: colW,
38
- height: labelH
39
- },
40
- align: "center",
41
- verticalAlign: endIsTop ? "bottom" : "top"
42
- };
43
- return {
44
- box: {
45
- x: colX,
46
- y: endIsTop ? anchor.y - labelH - pad : anchor.y + anchor.height + pad,
47
- width: colW,
48
- height: labelH
49
- },
50
- align: "center",
51
- verticalAlign: endIsTop ? "bottom" : "top"
52
- };
53
- }
54
- const barW = Math.max(textWidth + 6, 12);
55
- const barY = anchor.y + (anchor.height - labelH) / 2;
56
- if (position === "center") return {
57
- box: {
58
- x: anchor.x,
59
- y: barY,
60
- width: Math.max(anchor.width, barW),
61
- height: labelH
62
- },
63
- align: "center",
64
- verticalAlign: "middle"
65
- };
66
- const endIsRight = anchor.valueEndSide === "right";
67
- if (position === "insideEnd") return {
68
- box: {
69
- x: endIsRight ? anchor.x + anchor.width - barW - pad : anchor.x + pad,
70
- y: barY,
71
- width: barW,
72
- height: labelH
73
- },
74
- align: endIsRight ? "right" : "left",
75
- verticalAlign: "middle"
76
- };
77
- if (position === "insideBase") return {
78
- box: {
79
- x: endIsRight ? anchor.x + pad : anchor.x + anchor.width - barW - pad,
80
- y: barY,
81
- width: barW,
82
- height: labelH
83
- },
84
- align: endIsRight ? "left" : "right",
85
- verticalAlign: "middle"
86
- };
87
- return {
88
- box: {
89
- x: endIsRight ? anchor.x + anchor.width + pad : anchor.x - barW - pad,
90
- y: barY,
91
- width: barW,
92
- height: labelH
93
- },
94
- align: endIsRight ? "left" : "right",
95
- verticalAlign: "middle"
96
- };
97
- }
98
- function pointLabelBox(anchor, position, textWidth, textHeight) {
99
- const offset = (anchor.markerRadius ?? 1.5) + 4;
100
- const w = Math.max(textWidth + 4, 12);
101
- const h = Math.max(textHeight, 10);
102
- switch (position) {
103
- case "center": return {
104
- box: {
105
- x: anchor.x - w / 2,
106
- y: anchor.y - h / 2,
107
- width: w,
108
- height: h
109
- },
110
- align: "center",
111
- verticalAlign: "middle"
112
- };
113
- case "bottom": return {
114
- box: {
115
- x: anchor.x - w / 2,
116
- y: anchor.y + offset,
117
- width: w,
118
- height: h
119
- },
120
- align: "center",
121
- verticalAlign: "top"
122
- };
123
- case "left": return {
124
- box: {
125
- x: anchor.x - offset - w,
126
- y: anchor.y - h / 2,
127
- width: w,
128
- height: h
129
- },
130
- align: "right",
131
- verticalAlign: "middle"
132
- };
133
- case "right": return {
134
- box: {
135
- x: anchor.x + offset,
136
- y: anchor.y - h / 2,
137
- width: w,
138
- height: h
139
- },
140
- align: "left",
141
- verticalAlign: "middle"
142
- };
143
- default: return {
144
- box: {
145
- x: anchor.x - w / 2,
146
- y: anchor.y - offset - h,
147
- width: w,
148
- height: h
149
- },
150
- align: "center",
151
- verticalAlign: "bottom"
152
- };
153
- }
154
- }
155
- function sliceLabelBox(options) {
156
- const { anchor, isDoughnut, requestedPosition, hasLeaderLines, textWidth, textHeight, leaderSpec, theme } = options;
157
- const w = Math.max(textWidth + 4, 12);
158
- const h = Math.max(textHeight, 10);
159
- if (isDoughnut) {
160
- const r = (anchor.innerR + anchor.outerR) / 2;
161
- const lx = anchor.cx + r * Math.cos(anchor.midAngleRad);
162
- const ly = anchor.cy + r * Math.sin(anchor.midAngleRad);
163
- return {
164
- placement: {
165
- box: {
166
- x: lx - w / 2,
167
- y: ly - h / 2,
168
- width: w,
169
- height: h
170
- },
171
- align: "center",
172
- verticalAlign: "middle"
173
- },
174
- leaderSvg: ""
175
- };
176
- }
177
- let resolvedPos = requestedPosition ?? (hasLeaderLines ? "outsideEnd" : "bestFit");
178
- if (resolvedPos === "bestFit") {
179
- const midR = anchor.outerR * .62;
180
- const spanRad = anchor.spanDeg * Math.PI / 180;
181
- const chord = 2 * midR * Math.sin(Math.min(Math.PI / 2, spanRad / 2));
182
- const radial = (anchor.outerR - anchor.innerR) * .7;
183
- resolvedPos = !hasLeaderLines && spanRad >= .45 && w <= chord && h <= radial ? "center" : "outsideEnd";
184
- }
185
- if (resolvedPos === "center") {
186
- const r = (anchor.innerR + anchor.outerR) * .56;
187
- const lx = anchor.cx + r * Math.cos(anchor.midAngleRad);
188
- const ly = anchor.cy + r * Math.sin(anchor.midAngleRad);
189
- return {
190
- placement: {
191
- box: {
192
- x: lx - w / 2,
193
- y: ly - h / 2,
194
- width: w,
195
- height: h
196
- },
197
- align: "center",
198
- verticalAlign: "middle"
199
- },
200
- leaderSvg: ""
201
- };
202
- }
203
- if (resolvedPos === "insideEnd") {
204
- const r = Math.max(anchor.innerR + 2, anchor.outerR - Math.max(10, (anchor.outerR - anchor.innerR) * .25));
205
- const lx = anchor.cx + r * Math.cos(anchor.midAngleRad);
206
- const ly = anchor.cy + r * Math.sin(anchor.midAngleRad);
207
- return {
208
- placement: {
209
- box: {
210
- x: lx - w / 2,
211
- y: ly - h / 2,
212
- width: w,
213
- height: h
214
- },
215
- align: "center",
216
- verticalAlign: "middle"
217
- },
218
- leaderSvg: ""
219
- };
220
- }
221
- const cosM = Math.cos(anchor.midAngleRad);
222
- const sinM = Math.sin(anchor.midAngleRad);
223
- const ax = anchor.cx + anchor.outerR * cosM;
224
- const ay = anchor.cy + anchor.outerR * sinM;
225
- const elbowR = anchor.outerR + 10;
226
- const ex = anchor.cx + elbowR * cosM;
227
- const ey = anchor.cy + elbowR * sinM;
228
- const isRight = cosM >= 0;
229
- const armLen = 8;
230
- const lx = isRight ? ex + armLen : ex - armLen;
231
- const ly = ey;
232
- let leaderSvg = "";
233
- if (hasLeaderLines && leaderSpec !== void 0 && leaderSpec !== false) {
234
- const leaderStroke = resolveChartLineStroke(leaderSpec, theme, {
235
- color: "dk2",
236
- width: 1
237
- });
238
- if (leaderStroke !== void 0) leaderSvg = `<polyline points="${ax},${ay} ${ex},${ey} ${lx},${ly}" fill="none" ${strokeAttrs(leaderStroke)}/>`;
239
- }
240
- return {
241
- placement: {
242
- box: isRight ? {
243
- x: lx + 2,
244
- y: ly - h / 2,
245
- width: w,
246
- height: h
247
- } : {
248
- x: lx - 2 - w,
249
- y: ly - h / 2,
250
- width: w,
251
- height: h
252
- },
253
- align: isRight ? "left" : "right",
254
- verticalAlign: "middle"
255
- },
256
- leaderSvg
257
- };
258
- }
259
- function renderDataLabelsSvg(options) {
260
- const { parsed, anchors, chartBox, baseChartTextStyle, theme, slideNumber, clipAllocator } = options;
261
- const parts = [];
262
- for (const anchor of anchors) {
263
- const group = parsed.groups[anchor.groupIndex];
264
- if (group === void 0) continue;
265
- let series;
266
- if (anchor.kind === "bar") {
267
- if (group.kind !== "column" && group.kind !== "bar") continue;
268
- series = group.series[anchor.groupSeriesIndex];
269
- } else if (anchor.kind === "slice") {
270
- if (group.kind !== "pie" && group.kind !== "doughnut") continue;
271
- series = group.series[anchor.groupSeriesIndex];
272
- } else {
273
- if (group.kind !== "line" && group.kind !== "area" && group.kind !== "scatter") continue;
274
- series = group.series[anchor.groupSeriesIndex];
275
- }
276
- if (series === void 0) continue;
277
- const seriesMerged = mergeDataLabels(group.dataLabels, series.dataLabels);
278
- const pointMerged = mergeDataLabels(seriesMerged, series.points?.[anchor.pointIndex]?.dataLabels);
279
- if (pointMerged === void 0 || pointMerged === false) continue;
280
- const labelSegments = [];
281
- if (pointMerged.seriesName === true) labelSegments.push(anchor.seriesName);
282
- if (group.kind === "scatter") {
283
- if (pointMerged.xValue === true && anchor.kind === "point" && anchor.xValue !== void 0) labelSegments.push(formatChartNumber(anchor.xValue, pointMerged.numberFormat));
284
- } else if (pointMerged.category === true && anchor.category !== void 0) labelSegments.push(anchor.category);
285
- if (pointMerged.value === true) labelSegments.push(formatChartNumber(anchor.value, pointMerged.numberFormat));
286
- if (pointMerged.percent === true && anchor.percent !== void 0) labelSegments.push(formatChartNumber(anchor.percent, pointMerged.numberFormat ?? "0%"));
287
- if (labelSegments.length === 0) continue;
288
- const text = labelSegments.join(pointMerged.separator ?? ", ");
289
- const groupStyle = group.dataLabels !== void 0 && group.dataLabels !== false ? group.dataLabels.style : void 0;
290
- const pointColor = series.points?.[anchor.pointIndex]?.labelColor;
291
- const style = mergeChartTextStyle(mergeChartTextStyle(baseChartTextStyle, groupStyle), pointColor === void 0 ? void 0 : { color: pointColor });
292
- const measured = measureChartText({
293
- text,
294
- style,
295
- theme,
296
- slideNumber,
297
- labelPath: `Chart.groups[${anchor.groupIndex}].dataLabels`
298
- });
299
- const fontPx = resolveChartFontSizePixels(style?.fontSize);
300
- const textH = Math.max(measured.height, fontPx * 1.15);
301
- let placement;
302
- if (anchor.kind === "bar") placement = barLabelBox(anchor, pointMerged.position ?? (group.kind === "column" || group.kind === "bar" ? group.stacking === "clustered" ? "outsideEnd" : "center" : "center"), measured.width, textH);
303
- else if (anchor.kind === "slice") {
304
- const leaderSpec = seriesMerged !== void 0 && seriesMerged !== false ? seriesMerged.leaderLines : pointMerged.leaderLines;
305
- const slicePlacement = sliceLabelBox({
306
- anchor,
307
- isDoughnut: group.kind === "doughnut",
308
- requestedPosition: pointMerged.position,
309
- hasLeaderLines: leaderSpec !== void 0 && leaderSpec !== false,
310
- textWidth: measured.width,
311
- textHeight: textH,
312
- leaderSpec,
313
- theme
314
- });
315
- if (slicePlacement.leaderSvg !== "") parts.push(slicePlacement.leaderSvg);
316
- placement = slicePlacement.placement;
317
- } else placement = pointLabelBox(anchor, pointMerged.position ?? (group.kind === "scatter" ? "right" : group.kind === "area" ? "center" : "top"), measured.width, textH);
318
- parts.push(renderChartTextSvg({
319
- text,
320
- box: placement.box,
321
- style,
322
- theme,
323
- slideNumber,
324
- labelPath: `Chart.groups[${anchor.groupIndex}].dataLabels`,
325
- align: placement.align,
326
- verticalAlign: placement.verticalAlign,
327
- wrap: false,
328
- clipBox: chartBox,
329
- clipAllocator
330
- }));
331
- }
332
- return parts.join("");
333
- }
334
- export { renderDataLabelsSvg };
@@ -1,168 +0,0 @@
1
- import { defineSlideLayout as defineSlideLayout$1 } from "../../core/dist/masters.js";
2
- import "../../core/dist/index.js";
3
- import { CommonNode, createDeckNode, createSectionNode, createSlideLayoutNode, createSlideMasterNode, createSlideNode } from "../../core/dist/document.js";
4
- import { createBoxNode } from "./box/box-declaration.js";
5
- import { createChartNode } from "./chart/chart-declaration.js";
6
- import { font, fromFontCollection } from "./font/font.js";
7
- import { createGroupNode } from "./group/group-declaration.js";
8
- import { createImageNode } from "./image/image-declaration.js";
9
- import { createLineNode } from "./line/line-declaration.js";
10
- import { after, appear, breathe, collapse, createMotionScopeHandle, createMotionScopeNode, createMotionStepIdentity, createMotionStepNode, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, onStep, repeat, spin, spinIn, spinOut, stretch, wipe, wipeOut, zoom, zoomOut } from "./motion/motion-api.js";
11
- import { createNotesNode } from "./notes/notes-declaration.js";
12
- import "./placeholder/placeholder.js";
13
- import { createShapeNode } from "./shape/shape-declaration.js";
14
- import { motionSchedule } from "./motion/motion-query.js";
15
- import { createCellNode, createRowNode, createTableNode } from "./table/table-declaration.js";
16
- import { createPlaceholderNode } from "./placeholder/placeholder-schemas.js";
17
- import { createParagraphNode, createSlideNumberNode, createSpanNode, createSubNode, createSupNode, createTextNode } from "./text/text-declaration.js";
18
- import { transitions } from "./transition/transition-api.js";
19
- import { blockArc, path, preset } from "./shared/geometry.js";
20
- import { linearGradient, radialGradient } from "./shared/visual.js";
21
- // ../capabilities/dist/document.js
22
- /** Narrowed `defineSlideLayout` wrapper enforcing capability-typed `transition` declarations. */
23
- function defineSlideLayout(spec) {
24
- return defineSlideLayout$1(spec);
25
- }
26
- function isPropsRecord(value) {
27
- if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
28
- if (value instanceof CommonNode) return false;
29
- return Object.prototype.toString.call(value) === "[object Object]";
30
- }
31
- function splitContent(args) {
32
- const last = args.at(-1);
33
- const hasProps = isPropsRecord(last);
34
- return {
35
- content: (hasProps ? args.slice(0, -1) : args).flatMap((value) => value === void 0 ? [] : Array.isArray(value) ? value : [value]),
36
- props: hasProps ? last : void 0
37
- };
38
- }
39
- function deck(props = {}) {
40
- return createDeckNode(props);
41
- }
42
- /** Creates an editable native SlideMaster container owning SlideLayouts. */
43
- function slideMaster(props = {}) {
44
- return createSlideMasterNode(props);
45
- }
46
- /** Creates an editable native SlideLayout node from inline props or a `defineSlideLayout` spec. */
47
- function slideLayout(propsOrDefinition = {}) {
48
- return createSlideLayoutNode(propsOrDefinition);
49
- }
50
- function slide(props) {
51
- const { placeholders, ...rest } = props;
52
- const entries = placeholders === void 0 ? [] : Object.entries(placeholders).filter(([, value]) => value !== void 0);
53
- const keepEmptyPlaceholders = placeholders !== void 0 && props.layout === void 0 && entries.length === 0;
54
- const node = createSlideNode(keepEmptyPlaceholders ? {
55
- ...rest,
56
- placeholders
57
- } : rest);
58
- for (const [key, value] of entries) if (typeof value === "string" || Array.isArray(value)) node.append(text(value, { placeholder: key }));
59
- else if (value instanceof CommonNode) {
60
- if (value.type === "paragraph" || value.type === "span" || value.type === "sup" || value.type === "sub" || value.type === "slide-number") node.append(text(value, { placeholder: key }));
61
- else {
62
- value.set({ placeholder: key });
63
- node.append(value);
64
- }
65
- }
66
- return node;
67
- }
68
- function section(props) {
69
- return createSectionNode(props);
70
- }
71
- function box(props = {}) {
72
- return createBoxNode(props);
73
- }
74
- function shape(...args) {
75
- const { content, props } = splitContent(args);
76
- const node = createShapeNode(props ?? {});
77
- node.content(...content);
78
- return node;
79
- }
80
- /** Creates an unpopulated native content placeholder bound to a layout placeholder slot. */
81
- function placeholder(props = {}) {
82
- return createPlaceholderNode(props);
83
- }
84
- /** Creates a native image whose source bytes, crop, fit, and visuals remain editable after attachment. */
85
- function image(props) {
86
- return createImageNode(props);
87
- }
88
- /** Creates a 1D line or connector (`<p:cxnSp>`) with box-layout or anchored `from`/`to` positioning. */
89
- function line(props = {}) {
90
- return createLineNode(props);
91
- }
92
- /** Creates a native group preserving member identity and layout children. */
93
- function group(props = {}) {
94
- return createGroupNode(props);
95
- }
96
- /** Creates a native table whose rows and cells remain editable after attachment. */
97
- function table(props) {
98
- return createTableNode(props);
99
- }
100
- /** Creates a native table row; attach it to a table and add cells through its content operations. */
101
- function row(props = {}) {
102
- return createRowNode(props);
103
- }
104
- function cell(...args) {
105
- const { content, props } = splitContent(args);
106
- const node = createCellNode(props ?? {});
107
- node.content(...content);
108
- return node;
109
- }
110
- /** Creates a native chart whose data, options, and styles remain editable after attachment. */
111
- function chart(props) {
112
- return createChartNode(props);
113
- }
114
- function text(...args) {
115
- const { content, props } = splitContent(args);
116
- const node = createTextNode(props ?? {});
117
- node.content(...content);
118
- return node;
119
- }
120
- function notes(...args) {
121
- const { content, props } = splitContent(args);
122
- const node = createNotesNode(props ?? {});
123
- node.content(...content);
124
- return node;
125
- }
126
- function paragraph(...args) {
127
- const { content, props } = splitContent(args);
128
- const node = createParagraphNode(props ?? {});
129
- node.content(...content);
130
- return node;
131
- }
132
- function span(...args) {
133
- const { content, props } = splitContent(args);
134
- const node = createSpanNode(props ?? {});
135
- node.content(...content);
136
- return node;
137
- }
138
- function sup(...args) {
139
- const { content, props } = splitContent(args);
140
- const node = createSupNode(props ?? {});
141
- node.content(...content);
142
- return node;
143
- }
144
- function sub(...args) {
145
- const { content, props } = splitContent(args);
146
- const node = createSubNode(props ?? {});
147
- node.content(...content);
148
- return node;
149
- }
150
- /** Emits the native slide number field, resolved by the presentation application. */
151
- function slideNumber(props = {}) {
152
- return createSlideNumberNode(props);
153
- }
154
- /** Creates an orchestration scope whose parent chain and click step are derived by each build. */
155
- function motionScope(scope, props = {}) {
156
- return createMotionScopeNode({
157
- ...props,
158
- scope
159
- });
160
- }
161
- /** Creates a click-step container; omitted n gives this Step its own independent trigger. */
162
- function step(props = {}) {
163
- return createMotionStepNode({
164
- ...props,
165
- stepIdentity: createMotionStepIdentity()
166
- });
167
- }
168
- export { after, appear, blockArc, box, breathe, cell, chart, collapse, createMotionScopeHandle, deck, defineSlideLayout, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, group, image, line, linearGradient, motionSchedule, motionScope, notes, onStep, paragraph, path, placeholder, preset, radialGradient, repeat, row, section, shape, slide, slideLayout, slideMaster, slideNumber, span, spin, spinIn, spinOut, step, stretch, sub, sup, table, text, transitions, wipe, wipeOut, zoom, zoomOut };
@@ -1,12 +0,0 @@
1
- import { hostNodeCreator } from "../../../core/dist/host.js";
2
- import { motionElement } from "../motion/motion-elements.js";
3
- import { createGroupNode } from "./group-declaration.js";
4
- // ../capabilities/dist/group/group-elements.js
5
- /** Declares an editable group preserving native member structure within the React tree. */
6
- function Group(props) {
7
- return motionElement("group", {
8
- ...props,
9
- [hostNodeCreator]: createGroupNode
10
- });
11
- }
12
- export { Group };