@officedk/pptxdk 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.d.ts +14 -76
- package/dist/build.js +69 -97
- package/dist/cli.js +1 -1
- package/dist/core/dist/capabilities/audio/audio-declaration.js +7 -0
- package/dist/core/dist/capabilities/audio/audio-source.js +172 -0
- package/dist/core/dist/capabilities/audio/entry.js +122 -0
- package/dist/core/dist/capabilities/box/box-codegen.js +83 -0
- package/dist/core/dist/capabilities/box/box-declaration.js +32 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/box/box.js +32 -29
- package/dist/core/dist/capabilities/box/entry.js +2 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-codegen.js +17 -22
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-declaration.js +2 -2
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-import.js +1025 -471
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-labels.js +30 -3
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-model.js +3 -3
- package/dist/{capabilities/dist/chart/preview/number-format.js → core/dist/capabilities/chart/chart-number-format.js} +1 -1
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-schemas.js +216 -212
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-xml.js +41 -36
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart.js +228 -171
- package/dist/core/dist/capabilities/chart/entry.js +2 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/axes-and-grid.js +23 -10
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/bar-column.js +1 -1
- package/dist/core/dist/capabilities/chart/preview/data-labels.js +474 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/error-bars.js +3 -1
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/index.js +30 -9
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/layout.js +160 -89
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/legend.js +4 -4
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/line-area.js +4 -4
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/markers.js +1 -1
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/pie-doughnut.js +39 -60
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/scales.js +1 -1
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/scatter.js +3 -3
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/style.js +15 -3
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/text-render.js +34 -24
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/trendlines.js +5 -5
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/types.js +1 -1
- package/dist/core/dist/capabilities/comment/comment-codegen.js +25 -0
- package/dist/core/dist/capabilities/comment/comment-declaration.js +37 -0
- package/dist/core/dist/capabilities/comment/comment-import.js +176 -0
- package/dist/core/dist/capabilities/comment/comment.js +141 -0
- package/dist/core/dist/capabilities/comment/entry.js +1 -0
- package/dist/core/dist/capabilities/footer-placeholder/entry.js +2 -0
- package/dist/core/dist/capabilities/footer-placeholder/footer-placeholder-codegen.js +16 -0
- package/dist/{capabilities/dist/masters → core/dist/capabilities/footer-placeholder}/footer-placeholder.js +194 -133
- package/dist/core/dist/capabilities/footer-placeholder/print-header-footer-import.js +121 -0
- package/dist/core/dist/capabilities/footer-placeholder/print-header-footer.js +123 -0
- package/dist/core/dist/capabilities/group/entry.js +2 -0
- package/dist/core/dist/capabilities/group/group-codegen.js +73 -0
- package/dist/core/dist/capabilities/group/group-declaration.js +41 -0
- package/dist/core/dist/capabilities/group/group-import.js +608 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/group/group-xml.js +4 -3
- package/dist/core/dist/capabilities/group/group.js +260 -0
- package/dist/core/dist/capabilities/image/entry.js +4 -0
- package/dist/core/dist/capabilities/image/image-codegen.js +59 -0
- package/dist/core/dist/capabilities/image/image-declaration.js +8 -0
- package/dist/core/dist/capabilities/image/image-import.js +26 -0
- package/dist/core/dist/capabilities/image/image.js +57 -0
- package/dist/core/dist/capabilities/line/entry.js +3 -0
- package/dist/core/dist/capabilities/line/line-codegen.js +88 -0
- package/dist/core/dist/capabilities/line/line-declaration.js +78 -0
- package/dist/core/dist/capabilities/line/line-import.js +424 -0
- package/dist/core/dist/capabilities/line/line-xml.js +9 -0
- package/dist/core/dist/capabilities/line/line.js +329 -0
- package/dist/core/dist/capabilities/masters/entry.js +1 -0
- package/dist/core/dist/capabilities/masters/masters-codegen.js +50 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/masters/masters.js +35 -47
- package/dist/core/dist/capabilities/motion/entry.js +5 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-codegen.js +97 -51
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-import.js +653 -102
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-plan.js +317 -163
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-query.js +9 -6
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion.js +357 -108
- package/dist/core/dist/capabilities/notes/entry.js +2 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-codegen.js +5 -7
- package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-declaration.js +2 -2
- package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-import.js +16 -13
- package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-schemas.js +12 -9
- package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes.js +20 -42
- package/dist/{import/dist/sections.js → core/dist/capabilities/notes/sections-import.js} +5 -5
- package/dist/core/dist/capabilities/placeholder/entry.js +3 -0
- package/dist/core/dist/capabilities/placeholder/placeholder-codegen.js +44 -0
- package/dist/core/dist/capabilities/placeholder/placeholder-schemas.js +31 -0
- package/dist/core/dist/capabilities/placeholder/placeholder.js +394 -0
- package/dist/core/dist/capabilities/shape/entry.js +6 -0
- package/dist/core/dist/capabilities/shape/shape-codegen.js +112 -0
- package/dist/core/dist/capabilities/shape/shape-import.js +152 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/shape/shape-xml.js +1 -1
- package/dist/{capabilities/dist → core/dist/capabilities}/shape/shape.js +100 -103
- package/dist/core/dist/capabilities/shared/container-slots.js +59 -0
- package/dist/core/dist/capabilities/shared/date-time.js +98 -0
- package/dist/core/dist/capabilities/shared/font/font-embedding.js +118 -0
- package/dist/core/dist/capabilities/shared/font/font-engine.js +855 -0
- package/dist/core/dist/capabilities/shared/font/font-import.js +805 -0
- package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-subset.js +24 -9
- package/dist/core/dist/capabilities/shared/font/font.js +72 -0
- package/dist/{capabilities/dist/shape/shape-codegen.js → core/dist/capabilities/shared/geometry-codegen.js} +4 -69
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/geometry.js +384 -123
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/identity.js +56 -38
- package/dist/core/dist/capabilities/shared/image-codegen.js +94 -0
- package/dist/{capabilities/dist/image → core/dist/capabilities/shared}/image-decode.js +17 -56
- package/dist/{capabilities/dist/image → core/dist/capabilities/shared}/image-schemas.js +49 -61
- package/dist/core/dist/capabilities/shared/line-match.js +78 -0
- package/dist/core/dist/capabilities/shared/media-codegen.js +86 -0
- package/dist/core/dist/capabilities/shared/media-import.js +156 -0
- package/dist/core/dist/capabilities/shared/media-placement.js +20 -0
- package/dist/core/dist/capabilities/shared/media-poster.js +50 -0
- package/dist/core/dist/capabilities/shared/media-schemas.js +60 -0
- package/dist/core/dist/capabilities/shared/media-source.js +107 -0
- package/dist/core/dist/capabilities/shared/media-trim.js +102 -0
- package/dist/core/dist/capabilities/shared/media.js +134 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/morph-api.js +5 -5
- package/dist/core/dist/capabilities/shared/motion-api.js +770 -0
- package/dist/core/dist/capabilities/shared/motion-schemas.js +353 -0
- package/dist/{capabilities/dist/image/image-import.js → core/dist/capabilities/shared/picture-import.js} +313 -168
- package/dist/core/dist/capabilities/shared/picture-xml.js +13 -0
- package/dist/core/dist/capabilities/shared/picture.js +510 -0
- package/dist/core/dist/capabilities/shared/placeholder-import.js +268 -0
- package/dist/core/dist/capabilities/shared/placeholder-roles.js +42 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/preset-definitions.js +1221 -188
- package/dist/core/dist/capabilities/shared/print-xml.js +77 -0
- package/dist/core/dist/capabilities/shared/rich-text-codegen.js +119 -0
- package/dist/core/dist/capabilities/shared/rich-text-import.js +472 -0
- package/dist/core/dist/capabilities/shared/shape-declaration.js +45 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/style-inheritance.js +26 -24
- package/dist/core/dist/capabilities/shared/text-declaration.js +31 -0
- package/dist/core/dist/capabilities/shared/text-schemas.js +241 -0
- package/dist/core/dist/capabilities/shared/text-service.js +2563 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/visual.js +441 -137
- package/dist/core/dist/capabilities/slide-background/entry.js +1 -0
- package/dist/core/dist/capabilities/slide-background/slide-background-codegen.js +15 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background-import.js +12 -7
- package/dist/core/dist/capabilities/slide-background/slide-background-xml.js +33 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background.js +61 -50
- package/dist/core/dist/capabilities/table/entry.js +2 -0
- package/dist/core/dist/capabilities/table/table-codegen.js +118 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table-declaration.js +2 -2
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table-import.js +116 -84
- package/dist/core/dist/capabilities/table/table-schemas.js +337 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table-xml.js +13 -15
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table.js +284 -192
- package/dist/core/dist/capabilities/text/entry.js +3 -0
- package/dist/core/dist/capabilities/text/text-codegen.js +66 -0
- package/dist/core/dist/capabilities/text/text-import.js +468 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/text/text-xml.js +3 -4
- package/dist/{capabilities/dist → core/dist/capabilities}/text/text.js +103 -111
- package/dist/core/dist/capabilities/transition/entry.js +3 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-api.js +13 -16
- package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-codegen.js +2 -3
- package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-import.js +25 -27
- package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition.js +23 -23
- package/dist/core/dist/capabilities/video/entry.js +77 -0
- package/dist/core/dist/capabilities/video/video-declaration.js +7 -0
- package/dist/core/dist/capabilities/video/video-source.js +42 -0
- package/dist/{codegen/dist → core/dist/codegen}/assets.js +16 -10
- package/dist/{codegen/dist → core/dist/codegen}/codegen.js +152 -140
- package/dist/{codegen/dist → core/dist/codegen}/identifiers.js +27 -1
- package/dist/{codegen/dist → core/dist/codegen}/index.js +2 -2
- package/dist/{codegen/dist → core/dist/codegen}/printer.js +23 -4
- package/dist/core/dist/document/all.js +41 -0
- package/dist/core/dist/document/default.js +10 -0
- package/dist/core/dist/document/document.js +218 -0
- package/dist/core/dist/document/index.js +62 -0
- package/dist/core/dist/document/stages.js +54 -0
- package/dist/{emit/dist → core/dist/emit}/emit.js +173 -90
- package/dist/core/dist/emit/index.js +6 -0
- package/dist/core/dist/emit/ooxml.js +241 -0
- package/dist/core/dist/import/import.js +547 -0
- package/dist/core/dist/import/index.js +19 -0
- package/dist/{import/dist → core/dist/import}/masters.js +404 -328
- package/dist/core/dist/import/media-timing.js +233 -0
- package/dist/{import/dist → core/dist/import}/notes-masters.js +48 -45
- package/dist/core/dist/index.js +47 -15
- package/dist/core/dist/{author-ids.js → kernel/author-ids.js} +9 -6
- package/dist/core/dist/{author-schemas.js → kernel/author-schemas.js} +105 -127
- package/dist/core/dist/{block-flex-layout.js → kernel/block-flex-layout.js} +225 -142
- package/dist/core/dist/kernel/build.js +4 -0
- package/dist/core/dist/kernel/capability.js +17 -0
- package/dist/core/dist/kernel/codegen.js +97 -0
- package/dist/core/dist/kernel/container-slots.js +104 -0
- package/dist/core/dist/kernel/date-time-format.js +18 -0
- package/dist/core/dist/kernel/declaration-snapshot.js +68 -0
- package/dist/core/dist/{declaration.js → kernel/declaration.js} +3 -2
- package/dist/core/dist/kernel/diagnostics.js +370 -0
- package/dist/core/dist/kernel/document-internals.js +26 -0
- package/dist/core/dist/{document.js → kernel/document.js} +23 -13
- package/dist/core/dist/kernel/drawing-units.js +14 -0
- package/dist/core/dist/kernel/font-seal.js +204 -0
- package/dist/core/dist/{geometry-schemas.js → kernel/geometry-schemas.js} +21 -18
- package/dist/core/dist/{grid-layout.js → kernel/grid-layout.js} +177 -72
- package/dist/core/dist/{host.js → kernel/host.js} +1 -1
- package/dist/core/dist/kernel/index.js +24 -0
- package/dist/core/dist/kernel/input-values.js +62 -0
- package/dist/core/dist/kernel/layout-definition.js +7 -0
- package/dist/core/dist/{layout-protocol.js → kernel/layout-protocol.js} +5 -10
- package/dist/core/dist/{layout-schemas.js → kernel/layout-schemas.js} +33 -44
- package/dist/core/dist/kernel/layout.js +339 -0
- package/dist/core/dist/kernel/masters.js +171 -0
- package/dist/core/dist/{morph.js → kernel/morph.js} +1 -1
- package/dist/core/dist/kernel/placeholders.js +289 -0
- package/dist/{import/dist → core/dist/kernel/pptx-read}/alternate-content.js +1 -1
- package/dist/{import/dist → core/dist/kernel/pptx-read}/diagnostics.js +33 -29
- package/dist/core/dist/kernel/pptx-read/drawing-list-import.js +251 -0
- package/dist/{import/dist → core/dist/kernel/pptx-read}/fonts.js +71 -12
- package/dist/core/dist/kernel/pptx-read/index.js +15 -0
- package/dist/{import/dist → core/dist/kernel/pptx-read}/mechanism.js +1 -1
- package/dist/core/dist/kernel/pptx-read/media.js +26 -0
- package/dist/{import/dist → core/dist/kernel/pptx-read}/namespaces.js +6 -7
- package/dist/{import/dist → core/dist/kernel/pptx-read}/opc.js +62 -13
- package/dist/{import/dist → core/dist/kernel/pptx-read}/resources.js +1 -1
- package/dist/core/dist/kernel/pptx-read/shape-tree.js +57 -0
- package/dist/{import/dist → core/dist/kernel/pptx-read}/themes.js +182 -41
- package/dist/{import/dist → core/dist/kernel/pptx-read}/visual.js +175 -88
- package/dist/core/dist/kernel/pptx-read/xml-fragments.js +320 -0
- package/dist/{import/dist → core/dist/kernel/pptx-read}/xml-reader.js +8 -1
- package/dist/{emit/dist → core/dist/kernel/pptx-write}/shape-tree.js +1 -1
- package/dist/core/dist/kernel/pptx-write/timing.js +52 -0
- package/dist/{emit/dist/ooxml.js → core/dist/kernel/pptx-write/xml.js} +133 -290
- package/dist/core/dist/{query.js → kernel/query.js} +76 -37
- package/dist/core/dist/{resolution.js → kernel/resolution.js} +2 -1
- package/dist/core/dist/kernel/resolve-work.js +58 -0
- package/dist/core/dist/{resolve.js → kernel/resolve.js} +797 -409
- package/dist/core/dist/kernel/resource-source.js +11 -0
- package/dist/core/dist/kernel/stage-options.js +312 -0
- package/dist/core/dist/{theme.js → kernel/theme.js} +399 -289
- package/dist/core/dist/kernel/transform-geometry.js +72 -0
- package/dist/core/dist/kernel/xml-values.js +13 -0
- package/dist/document-C0lPlH-L.d.ts +1442 -0
- package/dist/index-B9_OUeA-.d.ts +2238 -0
- package/dist/index-BJEzQxWV.d.ts +75 -0
- package/dist/index-DA9flrlR.d.ts +146 -0
- package/dist/index-GSt0t9VO.d.ts +54 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +75 -61
- package/dist/node.d.ts +37 -35
- package/dist/node.js +125 -51
- package/dist/pptxdk/src/cli-commands.js +79 -81
- package/dist/pptxdk/src/compose.js +32 -24
- package/dist/pptxdk/src/preview-result.js +24 -0
- package/dist/{capabilities/dist/image → preview/dist}/gif-decoder.js +5 -5
- package/dist/preview/dist/index.js +229 -77
- package/dist/preview/dist/options.js +17 -26
- package/dist/preview/dist/raster.js +66 -0
- package/dist/preview/dist/svg-guard.js +1090 -0
- package/dist/preview.d.ts +6 -3
- package/dist/preview.js +8 -24
- package/dist/react/dist/append.js +3 -3
- package/dist/react/dist/author/audio-elements.js +14 -0
- package/dist/{capabilities/dist/box → react/dist/author}/box-elements.js +5 -3
- package/dist/react/dist/author/chart-elements.js +14 -0
- package/dist/react/dist/author/comment-elements.js +15 -0
- package/dist/react/dist/author/group-elements.js +14 -0
- package/dist/react/dist/author/image-elements.js +14 -0
- package/dist/react/dist/author/line-elements.js +14 -0
- package/dist/{capabilities/dist/motion → react/dist/author}/motion-elements.js +6 -4
- package/dist/react/dist/author/notes-elements.js +14 -0
- package/dist/react/dist/author/placeholder-elements.js +14 -0
- package/dist/react/dist/author/shape-elements.js +14 -0
- package/dist/{capabilities/dist/table → react/dist/author}/table-elements.js +6 -4
- package/dist/react/dist/author/text-elements.js +64 -0
- package/dist/react/dist/author/video-elements.js +14 -0
- package/dist/react/dist/document-adapter.js +376 -37
- package/dist/react/dist/elements.js +30 -4
- package/dist/react/dist/from-vanilla.js +57 -0
- package/dist/react/dist/index.js +47 -12
- package/dist/react/dist/mount.js +34 -0
- package/dist/react/dist/reconciler.js +26 -26
- package/dist/react.d.ts +174 -50
- package/dist/react.js +31 -27
- package/dist/stages-DYHSHKt4.d.ts +80 -0
- package/dist/vanilla.d.ts +4 -4
- package/dist/vanilla.js +14 -14
- package/package.json +6 -8
- package/README.md +0 -49
- package/dist/capabilities/dist/all.js +0 -32
- package/dist/capabilities/dist/box/box-codegen.js +0 -51
- package/dist/capabilities/dist/box/box-declaration.js +0 -31
- package/dist/capabilities/dist/chart/chart-elements.js +0 -12
- package/dist/capabilities/dist/chart/preview/data-labels.js +0 -334
- package/dist/capabilities/dist/document.js +0 -148
- package/dist/capabilities/dist/font/font-embedding.js +0 -289
- package/dist/capabilities/dist/font/font-family.js +0 -10
- package/dist/capabilities/dist/font/font-import.js +0 -302
- package/dist/capabilities/dist/font/font.js +0 -25
- package/dist/capabilities/dist/group/group-codegen.js +0 -51
- package/dist/capabilities/dist/group/group-declaration.js +0 -42
- package/dist/capabilities/dist/group/group-elements.js +0 -12
- package/dist/capabilities/dist/group/group-import.js +0 -319
- package/dist/capabilities/dist/group/group.js +0 -211
- package/dist/capabilities/dist/image/image-codegen.js +0 -94
- package/dist/capabilities/dist/image/image-declaration.js +0 -8
- package/dist/capabilities/dist/image/image-elements.js +0 -12
- package/dist/capabilities/dist/image/image-xml.js +0 -12
- package/dist/capabilities/dist/image/image.js +0 -472
- package/dist/capabilities/dist/masters/masters-codegen.js +0 -21
- package/dist/capabilities/dist/motion/motion-api.js +0 -527
- package/dist/capabilities/dist/motion/motion-schemas.js +0 -216
- package/dist/capabilities/dist/notes/notes-elements.js +0 -12
- package/dist/capabilities/dist/notes/notes-xml.js +0 -38
- package/dist/capabilities/dist/placeholder/placeholder-codegen.js +0 -23
- package/dist/capabilities/dist/placeholder/placeholder-elements.js +0 -12
- package/dist/capabilities/dist/placeholder/placeholder.js +0 -292
- package/dist/capabilities/dist/shape/shape-declaration.js +0 -57
- package/dist/capabilities/dist/shape/shape-elements.js +0 -12
- package/dist/capabilities/dist/shape/shape-import.js +0 -579
- package/dist/capabilities/dist/shared/placeholder-import.js +0 -113
- package/dist/capabilities/dist/shared/style-parse.js +0 -11
- package/dist/capabilities/dist/shared/text-schemas.js +0 -216
- package/dist/capabilities/dist/shared/text-service.js +0 -1883
- package/dist/capabilities/dist/slide-background/slide-background-codegen.js +0 -44
- package/dist/capabilities/dist/slide-background/slide-background-xml.js +0 -21
- package/dist/capabilities/dist/table/table-codegen.js +0 -81
- package/dist/capabilities/dist/table/table-schemas.js +0 -279
- package/dist/capabilities/dist/text/text-codegen.js +0 -129
- package/dist/capabilities/dist/text/text-declaration.js +0 -19
- package/dist/capabilities/dist/text/text-elements.js +0 -38
- package/dist/capabilities/dist/text/text-import.js +0 -1077
- package/dist/capability-D_xeNVIw.d.ts +0 -29496
- package/dist/codegen/dist/types.js +0 -49
- package/dist/core/dist/build.js +0 -4
- package/dist/core/dist/capability.js +0 -13
- package/dist/core/dist/diagnostics.js +0 -21
- package/dist/core/dist/document-internals.js +0 -13
- package/dist/core/dist/input-values.js +0 -45
- package/dist/core/dist/layout.js +0 -299
- package/dist/core/dist/masters.js +0 -169
- package/dist/core/dist/placeholders.js +0 -213
- package/dist/core/dist/stage-options.js +0 -67
- package/dist/document-BHPUODPP.d.ts +0 -27759
- package/dist/emit/dist/index.js +0 -5
- package/dist/import/dist/import.js +0 -504
- package/dist/import/dist/index.js +0 -16
- package/dist/import/dist/xml-fragments.js +0 -36
- package/dist/index-B5m3hqjC.d.ts +0 -7
- package/dist/index-CCy-Yo8G.d.ts +0 -1208
- package/dist/index-DpxcZ4Gs.d.ts +0 -725
- package/dist/pptxdk/src/slide.js +0 -9
- package/dist/preview-Cfw0QdMM.d.ts +0 -86
- package/dist/transition-Cips9wma.d.ts +0 -82
package/dist/vanilla.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { $ as
|
|
4
|
-
export { type ArrowType, type AuthorId, type AuthorNodeGuard, AuthorQuery, AuthorQueryError, type BoxAuthorProps, type BoxNode, type BreatheEffect, type BreatheOptions, 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
|
|
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,14 +1,14 @@
|
|
|
1
|
-
import { createMorphScope, isMorphKey } from "./core/dist/morph.js";
|
|
2
|
-
import { darker, defaultColorMap, defaultTheme, defineTheme, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isTheme, lighter, nativeColorSlots, schemeColorNames, schemeColorSlots } from "./core/dist/theme.js";
|
|
3
|
-
import {
|
|
4
|
-
import "./core/dist/
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import "./core/dist/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { box, cell, chart, deck, defineSlideLayout, group, image, motionScope, notes, paragraph, placeholder, row, section, shape, slide, slideLayout, slideMaster, slideNumber, span, step, table, text } from "./
|
|
14
|
-
export { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer, after, blockArc, box, breathe, cell, chart, createMorphScope, createMotionScopeHandle, darker, deck, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, fade, fillColor, floatDown, floatUp, fly, font, group, image, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, lighter, linearGradient, motionScope, nativeColorSlots, notes,
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@officedk/pptxdk",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "From TypeScript to PowerPoint and back.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
+
"@boringparts/cli-contract": "0.7.0",
|
|
30
31
|
"@resvg/resvg-js": "2.6.2",
|
|
31
32
|
"@types/fontkit": "^2.0.9",
|
|
32
33
|
"@types/node": "^26.0.0",
|
|
33
34
|
"@types/react": "19.3.0",
|
|
34
35
|
"@xmldom/xmldom": "^0.9.12",
|
|
35
|
-
"@ykdz/cli-contract": "0.7.0",
|
|
36
36
|
"esbuild": "^0.28.2",
|
|
37
37
|
"fflate": "^0.8.3",
|
|
38
38
|
"fontkit": "^2.0.4",
|
|
@@ -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",
|
|
@@ -76,6 +72,8 @@
|
|
|
76
72
|
"lint:fix": "oxlint --format=unix . --fix",
|
|
77
73
|
"typecheck": "tsc -p tsconfig.node.json --noEmit --pretty false",
|
|
78
74
|
"build": "rm -rf dist && tsc -p tsconfig.build.json --pretty false && rolldown -c && rm -rf dist/.declarations && chmod +x dist/cli.js",
|
|
79
|
-
"test": "vitest run"
|
|
75
|
+
"test": "vitest run",
|
|
76
|
+
"test:acceptance": "vitest run --config vitest.acceptance.config.ts",
|
|
77
|
+
"check:conditional": "node --conditions=source scripts/check-external-corpus.ts"
|
|
80
78
|
}
|
|
81
79
|
}
|
package/README.md
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# @officedk/pptxdk
|
|
2
|
-
|
|
3
|
-
Create editable PowerPoint presentations with JavaScript, TypeScript or React. The package includes the SDK and the `pptxdk` command for building, previewing and generating source from presentations.
|
|
4
|
-
|
|
5
|
-
## Build your first presentation
|
|
6
|
-
|
|
7
|
-
Install the package in a project running Node.js 26.13 or a later 26.x release.
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
npm install @officedk/pptxdk
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Save the following as `slides.mjs`.
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
import { deck, shape, slide } from "@officedk/pptxdk/vanilla";
|
|
17
|
-
|
|
18
|
-
export default deck({ width: 960, height: 540 }).append(
|
|
19
|
-
slide({ id: "intro" }).append(
|
|
20
|
-
shape({
|
|
21
|
-
id: "title",
|
|
22
|
-
x: 64,
|
|
23
|
-
y: 80,
|
|
24
|
-
width: 600,
|
|
25
|
-
height: 96,
|
|
26
|
-
text: "My first presentation",
|
|
27
|
-
}),
|
|
28
|
-
),
|
|
29
|
-
);
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Run the CLI from the project directory to write `slides.pptx`.
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
npx pptxdk build slides.mjs
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
To use the SDK from another ES module, pass the same document to `build`.
|
|
39
|
-
|
|
40
|
-
```js
|
|
41
|
-
import { writeFile } from "node:fs/promises";
|
|
42
|
-
|
|
43
|
-
import { build } from "@officedk/pptxdk";
|
|
44
|
-
|
|
45
|
-
import slides from "./slides.mjs";
|
|
46
|
-
|
|
47
|
-
const { pptx } = await build(slides);
|
|
48
|
-
await writeFile("slides.pptx", pptx);
|
|
49
|
-
```
|
|
@@ -1,32 +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 { footerPlaceholderCapability } from "./masters/footer-placeholder.js";
|
|
6
|
-
import { mastersCapability } from "./masters/masters.js";
|
|
7
|
-
import { motionCapability } from "./motion/motion.js";
|
|
8
|
-
import { notesCapability } from "./notes/notes.js";
|
|
9
|
-
import { placeholderCapability } from "./placeholder/placeholder.js";
|
|
10
|
-
import { shapeCapability } from "./shape/shape.js";
|
|
11
|
-
import { slideBackgroundCapability } from "./slide-background/slide-background.js";
|
|
12
|
-
import { tableCapability } from "./table/table.js";
|
|
13
|
-
import { textCapability } from "./text/text.js";
|
|
14
|
-
import { transitionCapability } from "./transition/transition.js";
|
|
15
|
-
/** Baseline capabilities enabled by the public document build; factories never register capabilities. */
|
|
16
|
-
const documentCapabilities = Object.freeze([
|
|
17
|
-
boxCapability,
|
|
18
|
-
chartCapability,
|
|
19
|
-
footerPlaceholderCapability,
|
|
20
|
-
groupCapability,
|
|
21
|
-
imageCapability,
|
|
22
|
-
mastersCapability,
|
|
23
|
-
motionCapability,
|
|
24
|
-
notesCapability,
|
|
25
|
-
placeholderCapability,
|
|
26
|
-
shapeCapability,
|
|
27
|
-
slideBackgroundCapability,
|
|
28
|
-
tableCapability,
|
|
29
|
-
textCapability,
|
|
30
|
-
transitionCapability
|
|
31
|
-
]);
|
|
32
|
-
export { documentCapabilities };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import "../../../codegen/dist/index.js";
|
|
2
|
-
import { defineObjectCodegen } from "../../../codegen/dist/types.js";
|
|
3
|
-
import { CommonNode } from "../../../core/dist/document.js";
|
|
4
|
-
// ../capabilities/dist/box/box-codegen.js
|
|
5
|
-
const objectMotionPropKeys = /* @__PURE__ */ new Set([
|
|
6
|
-
"enter",
|
|
7
|
-
"emphasis",
|
|
8
|
-
"motion"
|
|
9
|
-
]);
|
|
10
|
-
function collectBoxProps(node, ctx) {
|
|
11
|
-
const extra = ctx.emitObjectExtraProps(node.props);
|
|
12
|
-
const entries = [];
|
|
13
|
-
for (const [key, value] of Object.entries(node.props)) {
|
|
14
|
-
if (value === void 0) continue;
|
|
15
|
-
if (objectMotionPropKeys.has(key)) {
|
|
16
|
-
if (Object.hasOwn(extra, key)) entries.push([key, extra[key]]);
|
|
17
|
-
else ctx.fail("unexpressible-value", `Object property ${JSON.stringify(key)} requires motion codegen support`, `@${key}`);
|
|
18
|
-
continue;
|
|
19
|
-
}
|
|
20
|
-
entries.push([key, value]);
|
|
21
|
-
}
|
|
22
|
-
return entries;
|
|
23
|
-
}
|
|
24
|
-
function emitBoxChildren(node, ctx) {
|
|
25
|
-
const children = [];
|
|
26
|
-
let childIndex = 0;
|
|
27
|
-
for (const child of node.children) if (child instanceof CommonNode) {
|
|
28
|
-
children.push(ctx.emitChildNode(child, childIndex));
|
|
29
|
-
childIndex += 1;
|
|
30
|
-
} else if ("text" in child && typeof child.text === "string" && child.text.trim() !== "") ctx.fail("invalid-document", "Box cannot directly contain text content");
|
|
31
|
-
return children;
|
|
32
|
-
}
|
|
33
|
-
function emitBoxVanilla(node, ctx) {
|
|
34
|
-
const callee = ctx.useImport("box");
|
|
35
|
-
const propsEntries = collectBoxProps(node, ctx);
|
|
36
|
-
const args = propsEntries.length === 0 ? [] : [ctx.formatProps(propsEntries)];
|
|
37
|
-
const children = emitBoxChildren(node, ctx);
|
|
38
|
-
return ctx.formatVanillaCall(callee, args, children);
|
|
39
|
-
}
|
|
40
|
-
function emitBoxReact(node, ctx) {
|
|
41
|
-
const tag = ctx.useImport("Box");
|
|
42
|
-
const propsEntries = collectBoxProps(node, ctx);
|
|
43
|
-
const children = emitBoxChildren(node, ctx);
|
|
44
|
-
return ctx.formatJsxElement(tag, propsEntries, children);
|
|
45
|
-
}
|
|
46
|
-
/** Source codegen contribution for `box` layout container declarations. */
|
|
47
|
-
const boxCodegen = defineObjectCodegen({ declarations: { box: {
|
|
48
|
-
emitVanilla: emitBoxVanilla,
|
|
49
|
-
emitReact: emitBoxReact
|
|
50
|
-
} } });
|
|
51
|
-
export { boxCodegen };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { authorIdSchema } from "../../../core/dist/author-ids.js";
|
|
2
|
-
import { layoutStyleSchema } from "../../../core/dist/layout-schemas.js";
|
|
3
|
-
import { textStyleSchema, themeScopeSchema, visualStyleSchema } from "../../../core/dist/theme.js";
|
|
4
|
-
import { linkTargetSchema } from "../../../core/dist/author-schemas.js";
|
|
5
|
-
import "../../../core/dist/capability.js";
|
|
6
|
-
import { CommonContainer } from "../../../core/dist/document.js";
|
|
7
|
-
import { motionPropsSchema } from "../motion/motion-schemas.js";
|
|
8
|
-
import { morphKeySchema } from "../shared/morph-api.js";
|
|
9
|
-
import { z } from "zod";
|
|
10
|
-
const boxStyleSchema = z.strictObject({
|
|
11
|
-
...layoutStyleSchema.unwrap().shape,
|
|
12
|
-
...textStyleSchema.unwrap().shape,
|
|
13
|
-
...visualStyleSchema.unwrap().shape
|
|
14
|
-
}).readonly();
|
|
15
|
-
const motionPropsShape = motionPropsSchema.unwrap().shape;
|
|
16
|
-
const boxDeclarationPropsObjectSchema = z.strictObject({
|
|
17
|
-
id: authorIdSchema.optional(),
|
|
18
|
-
morphKey: morphKeySchema.optional(),
|
|
19
|
-
link: linkTargetSchema.optional(),
|
|
20
|
-
style: boxStyleSchema.optional(),
|
|
21
|
-
theme: themeScopeSchema.optional(),
|
|
22
|
-
enter: motionPropsShape.enter,
|
|
23
|
-
motion: motionPropsShape.motion
|
|
24
|
-
});
|
|
25
|
-
const boxDeclarationPropsKeys = Object.keys(boxDeclarationPropsObjectSchema.shape);
|
|
26
|
-
boxDeclarationPropsObjectSchema.readonly();
|
|
27
|
-
/** Creates the editable layout container shared by the command factory and the Box JSX element. */
|
|
28
|
-
function createBoxNode(props) {
|
|
29
|
-
return new CommonContainer("box", "box", props);
|
|
30
|
-
}
|
|
31
|
-
export { boxDeclarationPropsKeys, boxStyleSchema, createBoxNode };
|
|
@@ -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 };
|