@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
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { C as CommonNode, Kt as SealedCanvasMechanism, Lt as SlideCapabilityModule, Vt as ResolveWork, Wr as BuildOptions, Zr as ResolveOptions, at as CapabilityInput, bt as Resolution, ht as ObjectCapabilityModule, it as BuildResult, nt as BoundSlideCapability, qt as SealedShowMechanism, st as CapabilityParseContext, tt as BoundObjectCapability } from "./index-B9_OUeA-.js";
|
|
2
|
+
import "./document-C0lPlH-L.js";
|
|
3
|
+
import { c as ImportOptions } from "./index-DA9flrlR.js";
|
|
4
|
+
import { d as CodegenTarget, g as ImportResult, l as CodegenOptions, u as CodegenResult } from "./stages-DYHSHKt4.js";
|
|
5
|
+
import { i as PreviewResult, s as PreviewOptions } from "./index-GSt0t9VO.js";
|
|
6
|
+
import { ReactNode } from "react";
|
|
7
|
+
declare const audioCapability: ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"audio">]>;
|
|
8
|
+
/** Visible Box backgrounds use the same shape property writer; boxes without fill, stroke, or shadow retain layout semantics only. */
|
|
9
|
+
declare const boxCapability: ObjectCapabilityModule;
|
|
10
|
+
/** Chart module validates input and resolves chart data/configuration for native emit and static paint. */
|
|
11
|
+
declare const chartCapability: ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"chart-column">, SealedCanvasMechanism<"chart-bar">, SealedCanvasMechanism<"chart-line">, SealedCanvasMechanism<"chart-area">, SealedCanvasMechanism<"chart-pie">, SealedCanvasMechanism<"chart-doughnut">, SealedCanvasMechanism<"chart-scatter">, SealedCanvasMechanism<"chart-placeholder">, SealedCanvasMechanism<"chart-data-labels">, SealedCanvasMechanism<"chart-trendline">, SealedCanvasMechanism<"chart-error-bars">, SealedCanvasMechanism<"chart-markers-and-points">]>;
|
|
12
|
+
/** Page-affiliated plain-text review comments with no layout or paint participation. */
|
|
13
|
+
declare const commentCapability: SlideCapabilityModule<BoundSlideCapability, readonly [SealedShowMechanism<"legacy-comments">]>;
|
|
14
|
+
/** Slide capability resolving, painting, emitting, and importing `dateTime`, `footer`, `slideNumber`, and master/layout `footerPlaceholders`. */
|
|
15
|
+
declare const footerPlaceholderCapability: SlideCapabilityModule<BoundSlideCapability, readonly [SealedCanvasMechanism<"footer-placeholder">, SealedShowMechanism<"print-header-footer">]>;
|
|
16
|
+
/** Preserves members as native objects and writes group bounds according to final member geometry; layout participation uses generic container collaboration. */
|
|
17
|
+
declare const groupCapability: ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"group">]>;
|
|
18
|
+
/** Image module reads and validates formal resources, encapsulates bound state, and emits native picture objects. */
|
|
19
|
+
declare const imageCapability: ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"image">, SealedCanvasMechanism<"picture-placeholder">]>;
|
|
20
|
+
/** Line module independently validates 1D geometry, endpoint anchors, strokes, and emits native `<p:cxnSp>`. */
|
|
21
|
+
declare const lineCapability: ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"connector-line">, SealedCanvasMechanism<"line-normalized-shape">]>;
|
|
22
|
+
/** Capability declaration wiring native slide master, layout, theme, color-map, theme-override, and shared-canvas mechanisms into builds. */
|
|
23
|
+
declare const mastersCapability: SlideCapabilityModule<BoundSlideCapability, readonly [SealedCanvasMechanism<"slide-master">, SealedCanvasMechanism<"slide-layout">, SealedCanvasMechanism<"native-theme">, SealedCanvasMechanism<"color-map">, SealedCanvasMechanism<"theme-override">, SealedCanvasMechanism<"master-shared-canvas">]>;
|
|
24
|
+
/** Slide-level motion module binds choreography, writes object timing, and leaves preview on the static edit canvas. */
|
|
25
|
+
declare const motionCapability: SlideCapabilityModule<BoundSlideCapability, readonly [SealedShowMechanism<"motion-appear">, SealedShowMechanism<"motion-fade">, SealedShowMechanism<"motion-wipe">, SealedShowMechanism<"motion-zoom">, SealedShowMechanism<"motion-fly">, SealedShowMechanism<"motion-float">, SealedShowMechanism<"motion-spin-in">, SealedShowMechanism<"motion-stretch">, SealedShowMechanism<"motion-spin">, SealedShowMechanism<"motion-breathe">, SealedShowMechanism<"motion-fill-color">, SealedShowMechanism<"motion-exit">, SealedShowMechanism<"motion-choreography">]>;
|
|
26
|
+
/**
|
|
27
|
+
* Page-affiliated rich-text notes capability.
|
|
28
|
+
*
|
|
29
|
+
* The visible slide tree never contains the notes body: core treats the declaration subtree as
|
|
30
|
+
* owned by this module, while this module parses the shared P/Span content once into an opaque
|
|
31
|
+
* per-build binding, resolves text metrics and resource claims during resolve, and emits the notes
|
|
32
|
+
* part, body placeholder, notes master, relationships, and font resources during emit. Notes has
|
|
33
|
+
* no canvas geometry or static slide preview layer.
|
|
34
|
+
*/
|
|
35
|
+
declare const notesCapability: SlideCapabilityModule<BoundSlideCapability, readonly [SealedShowMechanism<"speaker-notes">, SealedShowMechanism<"presentation-sections">]>;
|
|
36
|
+
/** Capability preserving unpopulated non-text content placeholder slots across import/emit without synthesizing empty text bodies. */
|
|
37
|
+
declare const placeholderCapability: ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"content-placeholder">]>;
|
|
38
|
+
/** Shape module independently validates input, encapsulates bound state, and emits native PresentationML objects. */
|
|
39
|
+
declare const shapeCapability: Omit<ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"preset-shape">, SealedCanvasMechanism<"custom-geometry-shape">, SealedCanvasMechanism<"solid-fill">, SealedCanvasMechanism<"gradient-fill">, SealedCanvasMechanism<"image-fill">]>, "bind"> & {
|
|
40
|
+
bind(input: CapabilityInput, context: CapabilityParseContext): ResolveWork<BoundObjectCapability>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Bound slide-background module: validates and resolves background declarations once per build
|
|
44
|
+
* and owns both PresentationML `<p:bg>` emission and static preview canvas painting.
|
|
45
|
+
*/
|
|
46
|
+
declare const slideBackgroundCapability: SlideCapabilityModule<BoundSlideCapability, readonly [SealedCanvasMechanism<"slide-background-solid">, SealedCanvasMechanism<"slide-background-gradient">, SealedCanvasMechanism<"slide-background-image">, SealedCanvasMechanism<"slide-background-ref">]>;
|
|
47
|
+
/** Table module independently validates row and column structure, resolving layout/cells once for emit and paint. */
|
|
48
|
+
declare const tableCapability: ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"table">, SealedCanvasMechanism<"table-placeholder">]>;
|
|
49
|
+
/** Fixed-region and content-sized text box capability bound per formal build. */
|
|
50
|
+
declare const textCapability: ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"text-box">, SealedCanvasMechanism<"text-placeholder">, SealedCanvasMechanism<"text-field-slidenum">, SealedCanvasMechanism<"text-field-datetime">, SealedShowMechanism<"embedded-font">]>;
|
|
51
|
+
/**
|
|
52
|
+
* Bound transition module: validates transition & advanceAfter once per slide, layout, or master
|
|
53
|
+
* during bind, submits generic continuity matching collaboration for Morph, and leaves static preview untouched.
|
|
54
|
+
*/
|
|
55
|
+
declare const transitionCapability: SlideCapabilityModule<BoundSlideCapability, readonly [SealedShowMechanism<"transition-fade">, SealedShowMechanism<"transition-strips">, SealedShowMechanism<"transition-push">, SealedShowMechanism<"transition-flip">, SealedShowMechanism<"transition-morph">]>;
|
|
56
|
+
declare const videoCapability: ObjectCapabilityModule<BoundObjectCapability, readonly [SealedCanvasMechanism<"video">, SealedCanvasMechanism<"video-placeholder">]>;
|
|
57
|
+
/** Baseline capabilities enabled by the public document build; factories never register capabilities. */
|
|
58
|
+
declare const documentCapabilities: readonly [typeof audioCapability, typeof boxCapability, typeof chartCapability, typeof commentCapability, typeof footerPlaceholderCapability, typeof groupCapability, typeof imageCapability, typeof lineCapability, typeof mastersCapability, typeof motionCapability, typeof notesCapability, typeof placeholderCapability, typeof shapeCapability, typeof slideBackgroundCapability, typeof tableCapability, typeof textCapability, typeof transitionCapability, typeof videoCapability];
|
|
59
|
+
declare const importPptx: (input: Uint8Array, options?: ImportOptions) => Promise<ImportResult>;
|
|
60
|
+
declare const codegen: <T extends CodegenTarget>(document: CommonNode, options: CodegenOptions<T>) => CodegenResult<T>;
|
|
61
|
+
/**
|
|
62
|
+
* Resolves an editable document or JSX into an immutable Resolution.
|
|
63
|
+
*/
|
|
64
|
+
declare const resolve: (input: ReactNode | CommonNode, options?: ResolveOptions) => Promise<Resolution>;
|
|
65
|
+
/**
|
|
66
|
+
* Default one-call build supporting both JSX elements and plain CommonNode documents.
|
|
67
|
+
*/
|
|
68
|
+
declare const build: (input: ReactNode | CommonNode, options?: BuildOptions) => Promise<BuildResult>;
|
|
69
|
+
/**
|
|
70
|
+
* Default static preview supporting both JSX elements and plain CommonNode documents.
|
|
71
|
+
*
|
|
72
|
+
* Defers loading the rasterizer and React reconciler until `preview()` is actually called.
|
|
73
|
+
*/
|
|
74
|
+
declare function preview(input: ReactNode | CommonNode, options?: PreviewOptions): Promise<PreviewResult>;
|
|
75
|
+
export { boxCapability as C, chartCapability as S, lineCapability as _, importPptx as a, footerPlaceholderCapability as b, transitionCapability as c, slideBackgroundCapability as d, shapeCapability as f, mastersCapability as g, motionCapability as h, codegen as i, textCapability as l, notesCapability as m, preview as n, documentCapabilities as o, placeholderCapability as p, resolve as r, videoCapability as s, build as t, tableCapability as u, imageCapability as v, audioCapability as w, commentCapability as x, groupCapability as y };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import "./index-B9_OUeA-.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/** Source package location attached to import diagnostics and fatal errors. */
|
|
4
|
+
type ImportLocation = {
|
|
5
|
+
part: string;
|
|
6
|
+
xpath?: string | undefined;
|
|
7
|
+
slideIndex?: number | undefined;
|
|
8
|
+
objectId?: number | undefined;
|
|
9
|
+
objectName?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
/** Source package location attached to import diagnostics and fatal errors. */
|
|
12
|
+
declare const importLocationSchema: z.ZodType<ImportLocation>;
|
|
13
|
+
/** Native editing capability lost when a fallback representation is selected. */
|
|
14
|
+
type EditabilityLoss = {
|
|
15
|
+
lost: "native-mechanism" | "master-layout-inheritance" | "preferred-compatibility-branch" | "custom-print-layout";
|
|
16
|
+
retainedAs: string;
|
|
17
|
+
};
|
|
18
|
+
/** Native editing capability lost when a fallback representation is selected. */
|
|
19
|
+
declare const editabilityLossSchema: z.ZodType<EditabilityLoss>;
|
|
20
|
+
/** Dependent item omitted because an ancestor or target part could not be imported. */
|
|
21
|
+
type CascadedOmission = {
|
|
22
|
+
location: ImportLocation;
|
|
23
|
+
role: string;
|
|
24
|
+
};
|
|
25
|
+
/** Dependent item omitted because an ancestor or target part could not be imported. */
|
|
26
|
+
declare const cascadedOmissionSchema: z.ZodType<CascadedOmission>;
|
|
27
|
+
/** Fatal package/entry failure reason carried by `ImportError`. */
|
|
28
|
+
type FatalImportIssue = {
|
|
29
|
+
code: "corrupt-archive";
|
|
30
|
+
category: "corrupt-input";
|
|
31
|
+
disposition: "aborted";
|
|
32
|
+
} | {
|
|
33
|
+
code: "missing-entry";
|
|
34
|
+
category: "corrupt-input";
|
|
35
|
+
disposition: "aborted";
|
|
36
|
+
location: ImportLocation;
|
|
37
|
+
expectedRelationshipType?: string | undefined;
|
|
38
|
+
} | {
|
|
39
|
+
code: "malformed-xml";
|
|
40
|
+
category: "corrupt-input";
|
|
41
|
+
disposition: "aborted";
|
|
42
|
+
location: ImportLocation;
|
|
43
|
+
detail?: string | undefined;
|
|
44
|
+
} | {
|
|
45
|
+
code: "broken-entry-relationship";
|
|
46
|
+
category: "corrupt-input";
|
|
47
|
+
disposition: "aborted";
|
|
48
|
+
location: ImportLocation;
|
|
49
|
+
relationshipId?: string | undefined;
|
|
50
|
+
target?: string | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
code: "invalid-presentation-root";
|
|
53
|
+
category: "corrupt-input";
|
|
54
|
+
disposition: "aborted";
|
|
55
|
+
location: ImportLocation;
|
|
56
|
+
namespaceUri?: string | undefined;
|
|
57
|
+
localName?: string | undefined;
|
|
58
|
+
} | {
|
|
59
|
+
code: "unsupported-format-baseline";
|
|
60
|
+
category: "unsupported";
|
|
61
|
+
disposition: "aborted";
|
|
62
|
+
baseline: "ISO/IEC 29500 Strict" | "unknown";
|
|
63
|
+
detectedNamespace: string;
|
|
64
|
+
location: ImportLocation;
|
|
65
|
+
};
|
|
66
|
+
/** Fatal package/entry failure reason carried by `ImportError`. */
|
|
67
|
+
declare const fatalImportIssueSchema: z.ZodType<FatalImportIssue>;
|
|
68
|
+
/** Recoverable or isolatable diagnostic event emitted in `ImportReport.diagnostics`. */
|
|
69
|
+
type ImportDiagnostic = {
|
|
70
|
+
code: "corrupt-part";
|
|
71
|
+
category: "corrupt-input";
|
|
72
|
+
disposition: "omitted";
|
|
73
|
+
location: ImportLocation;
|
|
74
|
+
cascaded?: readonly CascadedOmission[] | undefined;
|
|
75
|
+
} | {
|
|
76
|
+
code: "missing-target-part";
|
|
77
|
+
category: "corrupt-input";
|
|
78
|
+
disposition: "omitted";
|
|
79
|
+
location: ImportLocation;
|
|
80
|
+
relationshipId: string;
|
|
81
|
+
targetPart: string;
|
|
82
|
+
cascaded?: readonly CascadedOmission[] | undefined;
|
|
83
|
+
} | {
|
|
84
|
+
code: "broken-relationship";
|
|
85
|
+
category: "corrupt-input";
|
|
86
|
+
disposition: "omitted";
|
|
87
|
+
location: ImportLocation;
|
|
88
|
+
relationshipId: string;
|
|
89
|
+
cascaded?: readonly CascadedOmission[] | undefined;
|
|
90
|
+
} | {
|
|
91
|
+
code: "invalid-xml-value";
|
|
92
|
+
category: "corrupt-input";
|
|
93
|
+
disposition: "omitted" | "recovered";
|
|
94
|
+
location: ImportLocation;
|
|
95
|
+
attributeOrElement: string;
|
|
96
|
+
rawValue?: string | undefined;
|
|
97
|
+
} | {
|
|
98
|
+
code: "unsupported-mechanism";
|
|
99
|
+
category: "unsupported";
|
|
100
|
+
disposition: "omitted";
|
|
101
|
+
location: ImportLocation;
|
|
102
|
+
namespaceUri: string;
|
|
103
|
+
localName: string;
|
|
104
|
+
mechanismHint?: string | undefined;
|
|
105
|
+
loss?: EditabilityLoss | undefined;
|
|
106
|
+
cascaded?: readonly CascadedOmission[] | undefined;
|
|
107
|
+
} | {
|
|
108
|
+
code: "compatibility-fallback";
|
|
109
|
+
category: "unsupported";
|
|
110
|
+
disposition: "fallback";
|
|
111
|
+
location: ImportLocation;
|
|
112
|
+
preferredMechanism: string;
|
|
113
|
+
selectedFallback: string;
|
|
114
|
+
loss: EditabilityLoss;
|
|
115
|
+
} | {
|
|
116
|
+
code: "unconsumed-xml";
|
|
117
|
+
category: "unsupported";
|
|
118
|
+
disposition: "omitted";
|
|
119
|
+
kind: "attribute" | "element";
|
|
120
|
+
location: ImportLocation;
|
|
121
|
+
namespaceUri: string;
|
|
122
|
+
localName: string;
|
|
123
|
+
};
|
|
124
|
+
/** Recoverable or isolatable diagnostic event emitted in `ImportReport.diagnostics`. */
|
|
125
|
+
declare const importDiagnosticSchema: z.ZodType<ImportDiagnostic>;
|
|
126
|
+
/** Structured summary and per-item diagnostics produced by `createImporter`. */
|
|
127
|
+
type ImportReport = {
|
|
128
|
+
evidence: "import";
|
|
129
|
+
sourceFormat: "ECMA-376 5th edition Transitional";
|
|
130
|
+
slideCount: number;
|
|
131
|
+
diagnostics: readonly ImportDiagnostic[];
|
|
132
|
+
};
|
|
133
|
+
/** Structured summary and per-item diagnostics produced by `createImporter`. */
|
|
134
|
+
declare const importReportSchema: z.ZodType<ImportReport>;
|
|
135
|
+
type ImportOptions = {
|
|
136
|
+
readonly signal?: AbortSignal | undefined;
|
|
137
|
+
};
|
|
138
|
+
declare const importOptionsSchema: z.ZodType<ImportOptions>;
|
|
139
|
+
/** Error thrown when PPTX entry points cannot be opened or use an unsupported baseline. */
|
|
140
|
+
declare class ImportError extends Error {
|
|
141
|
+
readonly issue: FatalImportIssue;
|
|
142
|
+
constructor(issue: FatalImportIssue, message?: string);
|
|
143
|
+
}
|
|
144
|
+
declare const arrowTypes: readonly ["none", "triangle", "stealth", "arrow", "diamond", "oval"];
|
|
145
|
+
type ArrowType = (typeof arrowTypes)[number];
|
|
146
|
+
export { ImportDiagnostic as a, ImportOptions as c, editabilityLossSchema as d, fatalImportIssueSchema as f, importReportSchema as g, importOptionsSchema as h, FatalImportIssue as i, ImportReport as l, importLocationSchema as m, CascadedOmission as n, ImportError as o, importDiagnosticSchema as p, EditabilityLoss as r, ImportLocation as s, ArrowType as t, cascadedOmissionSchema as u };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Jr as PreviewError, Ot as ResolvedLayout, Rt as SlideLocator, St as ResolutionReport, Xr as PreviewPlaceholder, Zr as ResolveOptions, bt as Resolution, kt as ResolvedObject, vt as Rect } from "./index-B9_OUeA-.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
type PaintOptions = {
|
|
4
|
+
/** 1-based page numbers to paint. Omit to draw all pages; an empty list draws none. */
|
|
5
|
+
readonly pages?: readonly number[] | undefined;
|
|
6
|
+
readonly signal?: AbortSignal | undefined;
|
|
7
|
+
};
|
|
8
|
+
type PreviewOptions = PaintOptions & Pick<ResolveOptions, "referenceDate">;
|
|
9
|
+
type ScreenPoint = {
|
|
10
|
+
readonly x: number;
|
|
11
|
+
readonly y: number;
|
|
12
|
+
};
|
|
13
|
+
type ScreenGeometry = {
|
|
14
|
+
readonly corners: readonly ScreenPoint[];
|
|
15
|
+
readonly screenBox: {
|
|
16
|
+
readonly x: number;
|
|
17
|
+
readonly y: number;
|
|
18
|
+
readonly width: number;
|
|
19
|
+
readonly height: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare const previewPageNumberSchema: z.ZodType<number>;
|
|
23
|
+
declare const previewPagesSchema: z.ZodType<readonly number[]>;
|
|
24
|
+
declare const paintOptionsSchema: z.ZodType<PaintOptions>;
|
|
25
|
+
declare const previewOptionsSchema: z.ZodType<PreviewOptions>;
|
|
26
|
+
declare const screenPointSchema: z.ZodType<ScreenPoint>;
|
|
27
|
+
declare const screenGeometrySchema: z.ZodType<ScreenGeometry>;
|
|
28
|
+
type PreviewNode = Omit<ResolvedObject, "corners"> & {
|
|
29
|
+
readonly path: string;
|
|
30
|
+
readonly bounds?: Rect;
|
|
31
|
+
readonly corners?: readonly ScreenPoint[];
|
|
32
|
+
};
|
|
33
|
+
type PreviewPageResult = {
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly page: number;
|
|
36
|
+
readonly svg?: string;
|
|
37
|
+
readonly png?: Uint8Array;
|
|
38
|
+
readonly nodes: readonly PreviewNode[];
|
|
39
|
+
readonly layouts: readonly ResolvedLayout[];
|
|
40
|
+
readonly errors: readonly PreviewError[];
|
|
41
|
+
readonly placeholders: readonly PreviewPlaceholder[];
|
|
42
|
+
};
|
|
43
|
+
type PaintResult = {
|
|
44
|
+
readonly pages: readonly PreviewPageResult[];
|
|
45
|
+
};
|
|
46
|
+
type PreviewResult = {
|
|
47
|
+
readonly report: ResolutionReport;
|
|
48
|
+
readonly pages: readonly PreviewPageResult[];
|
|
49
|
+
readonly slides: readonly SlideLocator[];
|
|
50
|
+
slide(id: string): SlideLocator;
|
|
51
|
+
};
|
|
52
|
+
/** Paints static preview pages directly from a Resolution without running emit(). */
|
|
53
|
+
declare function paint(resolution: Resolution, options?: PaintOptions): Promise<PaintResult>;
|
|
54
|
+
export { paint as a, ScreenGeometry as c, previewOptionsSchema as d, previewPageNumberSchema as f, screenPointSchema as h, PreviewResult as i, ScreenPoint as l, screenGeometrySchema as m, PreviewNode as n, PaintOptions as o, previewPagesSchema as p, PreviewPageResult as r, PreviewOptions as s, PaintResult as t, paintOptionsSchema as u };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
export { type
|
|
1
|
+
import { $ as slideLayoutTypeSchema, $n as TextStyle, $r as TargetName, $t as MasterTextStyles, A as SlideContainer, An as ColorMapOverride, Ar as nativeColorSlots, At as ResolvedResource, B as ResolvedSlideLayout, Bn as HexColor, Br as BuildError, Bt as UnmeasuredFontIssue, C as CommonNode, Ci as resourceSourceSchema, Cn as PresetGeometryName, Cr as imageBackgroundSchema, Ct as ResolvedAudio, D as DocumentUpdate, Dn as BorderValue, Dr as isTheme, Dt as ResolvedImage, E as DocumentStyle, En as BorderStyle, Er as isSchemeColorSlot, Et as ResolvedFooterSlot, F as FooterPlaceholderSpec, Fn as FontOptions, Fr as themeFontSlotSchema, Ft as ResolvedVideo, Gn as LinearGradient, Gr as EmitOptions, Gt as isMorphKey, Hn as ImageBackgroundFit, Hr as BuildDiagnostic, Ht as MorphKey, I as FooterPlaceholders, In as FontReference, Ir as themeFontSlots, It as ScreenPoint, J as footerPlaceholdersSchema, Jn as SchemeColorName, Jr as PreviewError, Jt as ContentPlaceholderRole, K as dateTimeFooterPlaceholderSpecSchema, Kn as NativeColorSlot, Kr as Extension, L as HeaderFooter, Ln as FontSize, Lr as themeInputSchema, M as SlideMasterContainer, Mn as Font, Mr as schemeColorSlots, Mt as ResolvedTable, N as StyleUpdate, Nn as FontFace, Nr as textStyleSchema, Nt as ResolvedTableCell, O as RichTextContainer, On as BoxShadowValue, Or as isThemeFontSlot, Ot as ResolvedLayout, P as DateTimeFooterPlaceholderSpec, Pn as FontFaceStyle, Pr as themeDataSchema, Pt as ResolvedTableRow, Q as resolvedSlideLayoutSchema, Qn as TextFillValue, Qr as Target, Qt as MasterPlaceholderSpec, R as ResolvedMaster, Rn as FormatScheme, Rr as themeOverrideSchema, Rt as SlideLocator, S as CommonContainer, Si as externalResourceSourceSchema, Sn as PresetGeometry, Sr as imageBackgroundPositionSchema, St as ResolutionReport, T as DocumentProps, Tn as BorderObject, Tr as isSchemeColorName, Tt as ResolvedFooter, U as SlideLayoutType, Un as ImageBackgroundPosition, Ur as BuildDiagnosticFontUnavailableReason, Ut as MorphScope, Vn as ImageBackground, Vr as CapabilityError, Wn as LineHeight, Wr as BuildOptions, Wt as createMorphScope, X as resolvedMasterSchema, Xn as Shadow, Xr as PreviewPlaceholder, Xt as LayoutPlaceholderSpec, Y as headerFooterSchema, Yn as SchemeColorSlot, Yr as PreviewPageRangeError, Yt as EmptyPlaceholderMap, Z as resolvedPlaceholderSchema, Zn as TextAlignment, Zr as ResolveOptions, Zt as MasterPlaceholderMap, _ as slideFooterValueSchema, _i as DeclarationContainer, _n as paddingStyleSchema, _r as defaultTheme, _t as PreviewTransform, a as SectionProps, ai as fontEmbeddingModeSchema, an as PlaceholderStyle, ar as ThemeOverride, b as AuthorQuery, bi as ExternalResourceSource, bn as GeometryPath, br as imageBackgroundFitSchema, bt as Resolution, c as SlideDateTimeValue, ci as previewErrorSchema, cn as placeholderSizeSchema, cr as backgroundValueSchema, ct as EmitResult, di as targetNameSchema, dn as LayoutStyle, dr as borderValueSchema, dt as LayoutChildReference, ei as buildDiagnosticFontUnavailableReasonSchema, en as PlaceholderLevelStyle, er as Theme, et as slideLayoutTypeValues, f as backgroundRefSchema, fi as targetSchema, fr as boxShadowValueSchema, ft as Locator, g as slideDateTimeValueSchema, gi as DeclarationChild, gn as layoutStyleSchema, gr as defaultColorMap, gt as ObjectTransform, h as slideBackgroundSchema, hi as authorIdSchema, hn as layoutSpacingSchema, hr as darker, i as LinkTarget, ii as extensionSchema, in as PlaceholderSize, ir as ThemeInput, it as BuildResult, 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, li as previewPlaceholderSchema, ln as LayoutLength, lr as borderObjectSchema, lt as FontStyleDescriptor, m as sectionPropsSchema, mi as AuthorId, mn as layoutLengthSchema, mr as colorMapSchema, mt as MediaTrim, n as BackgroundRef, ni as buildOptionsSchema, nn as PlaceholderMap, nr as ThemeData, o as SlideBackground, oi as formatBaseline, on as TextList, or as ThemeShade, ot as CapabilityModule, p as linkTargetSchema, pi as targets, pn as PaddingStyle, pr as colorMapOverrideSchema, pt as LocatorResource, q as footerPlaceholderSpecSchema, qn as RadialGradient, qr as FontEmbeddingMode, ri as emitOptionsSchema, rn as PlaceholderOrient, rr as ThemeFontSlot, rt as BuildReport, si as formatBaselineSchema, sn as TextPlaceholderRole, sr as VisualStyle, t as BuildQueryError, ti as buildDiagnosticSchema, tn as PlaceholderListStyles, tr as ThemeColor, u as SlideNumberValue, ui as resolveOptionsSchema, un as LayoutSpacing, ur as borderStyleSchema, ut as FontUsage, v as slideNumberValueSchema, vi as DeclarationNode, vn as CustomGeometry, vr as defineTheme, vt as Rect, w as DeckContainer, wi as DateTimeFormat, wn as BackgroundValue, wr as isNativeColorSlot, wt as ResolvedComment, x as AuthorQueryError, xi as ResourceSource, xn as PathCommand, xr as imageBackgroundPositionKeywordSchema, xt as ResolutionDimensionsSummary, y as AuthorNodeGuard, yi as DeclarationText, yn as Geometry, yr as formatSchemeSchema, z as ResolvedPlaceholder, zn as GradientStop, zr as themeSchema, zt as TextMetrics } from "./index-B9_OUeA-.js";
|
|
2
|
+
import { a as ImportDiagnostic, c as ImportOptions, d as editabilityLossSchema, f as fatalImportIssueSchema, g as importReportSchema, h as importOptionsSchema, i as FatalImportIssue, l as ImportReport, m as importLocationSchema, n as CascadedOmission, o as ImportError, p as importDiagnosticSchema, r as EditabilityLoss, s as ImportLocation, u as cascadedOmissionSchema } from "./index-DA9flrlR.js";
|
|
3
|
+
import { $i as MotionCompletionState, $n as createMotionScopeHandle, $r as ChartLine, $t as MotionScopeSchedule, Ar as LineStrokeValue, Bi as Easing, Br as ChartAxisReferences, Bt as EffectInstance, Ca as path, Ci as ScatterData, Cr as LineEndpoint, Di as ScatterLine, Dn as TableTextStyle, Dr as LineStyle, Dt as slideMasterDataPropsSchema, Ei as ScatterErrorBars, En as TableStyle, Er as LineRouting, F as SlideLayoutDefinition, Fr as PrintHeaderFooter, G as SlideProps, Gi as EmphasisEffectDeclaration, Gn as MotionStartDependency, Gr as ChartDataLabels, Gt as MotionDifference, Hi as EffectOptions, Hr as ChartCategoryAxisReferences, Ht as MotionCueRef, Ii as ImageSource, 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, Mn as PlaceholderDeclarationProps, Mr as radialGradient, Ni as MediaPlaybackProps, Nn as PlaceholderNode, Oi as SharedCategoryData, On as TableVerticalAlign, Or as LineVisualStyle, Pn as NotesDeclarationProps, Pr as PrintDateTimeValue, Qi as InstantEffectOptions, Qn as collapse, Qr as ChartKind, Qt as MotionScopeRef, Ri as BreatheEffect, Rn as RunTextStyle, Rr as ChartAxisCrossing, Sa as blockArc, Si as ScatterChartSeries, Sn as TableColumn, Ti as ScatterDataLabels, Tn as TableSpacing, Tr as LinePort, Tt as slideLayoutDataPropsSchema, Ui as EffectPreset, Ur as ChartCustomErrorBars, Ut as MotionDecision, V as SlideMasterProps, Vi as Effect, Vr as ChartCategoryAxis, Vt as MotionCue, Wi as EmphasisEffect, Wn as MotionNativeProjection, Wr as ChartDataLabelOverride, Wt as MotionDependency, Xi as ExitPreset, Xn as appear, Xr as ChartGroup, Xt as MotionSchedule, Yi as ExitEffectDeclaration, Yn as after, Yr as ChartErrorBars, Yt as MotionMomentRef, Zi as FillColorOptions, Zn as breathe, Zr as ChartGroupData, Zt as MotionScopeQueryMember, _a as SpinOptions, _i as IndependentCategorySeries, _r as zoom, ai as ChartSeries, ar as floatOut, bi as ScatterChartGroup, br as fromFontCollection, ci as ChartTickMark, cn as MorphTransition, cr as flyOut, di as ChartTrendlineType, dn as Transition, dr as spin, dt as defineSlideLayout, ea as MotionDirection, ei as ChartLineDash, en as MotionStepQuery, er as disappear, fi as ChartValueAxis, fn as TransitionDirection, fr as spinIn, ga as RepeatedEffect, gi as IndependentCategoryData, gr as wipeOut, ha as RepeatCount, hi as DoughnutChartGroup, hn as transitions, hr as wipe, in as motionSchedule, ir as floatDown, ji as AudioSource, jr as linearGradient, kn as ShapeTextStyle, kr as LineStroke, kt as slidePropsSchema, l as DeckProps, la as MotionTargetRange, li as ChartTitle, ln as StandardTransition, lr as onStep, mi as ColumnOrBarChartGroup, mn as TransitionSpeed, mr as stretch, mt as isSlideLayoutDefinition, na as MotionMoment, ni as ChartMarkerSymbol, nn as MotionTime, nr as fadeOut, oa as MotionScopeHandle, oi as ChartSeriesDataLabelOverride, on as VideoSource, or as floatUp, pi as ChartXYAxisReferences, pn as TransitionDuration, pr as spinOut, qi as EntranceEffectDeclaration, qn as ResolvedMotionScope, qr as ChartErrorBarInclude, qt as MotionIntervalRef, ra as MotionMomentOffset, ri as ChartPoint, rn as ResolvedMotionMoment, rr as fillColor, sa as MotionScopeMode, si as ChartTickLabelPosition, sn as FlipTransition, sr as fly, ta as MotionGranularity, ti as ChartMarker, tn as MotionStepRef, tr as fade, ua as MotionTiming, ui as ChartTrendline, un as StripsDirection, ur as repeat, ut as deckPropsSchema, va as SteppedEffect, vi as LineOrAreaChartGroup, vr as zoomOut, wa as preset, wi as ScatterDataLabelOverride, wn as TableRowStyle, wr as LineLayoutStyle, xa as PathOptions, xi as ScatterChartPoint, xn as TableCellStyle, xr as LineAdjust, ya as spinOptionsSchema, yi as PieChartGroup, yr as font, zi as BreatheOptions, zr as ChartAxisPosition } from "./document-C0lPlH-L.js";
|
|
4
|
+
import { C as boxCapability, S as chartCapability, _ as lineCapability, a as importPptx, b as footerPlaceholderCapability, c as transitionCapability, d as slideBackgroundCapability, f as shapeCapability, g as mastersCapability, h as motionCapability, i as codegen, l as textCapability, m as notesCapability, n as preview, o as documentCapabilities, p as placeholderCapability, r as resolve, s as videoCapability, t as build, u as tableCapability, v as imageCapability, w as audioCapability, x as commentCapability, y as groupCapability } from "./index-BJEzQxWV.js";
|
|
5
|
+
import { a as CodegenDiagnosticCode, c as CodegenFileContent, d as CodegenTarget, f as codegenDiagnosticCodeSchema, g as ImportResult, h as codegenTargetSchema, i as CodegenDiagnostic, l as CodegenOptions, m as codegenOptionsSchema, o as CodegenEntryName, p as codegenDiagnosticSchema, s as CodegenError, u as CodegenResult, v as emit } from "./stages-DYHSHKt4.js";
|
|
6
|
+
import { i as PreviewResult, n as PreviewNode, r as PreviewPageResult, s as PreviewOptions } from "./index-GSt0t9VO.js";
|
|
7
|
+
export { type AudioSource, type AuthorId, type AuthorNodeGuard, AuthorQuery, AuthorQueryError, type BackgroundRef, type BackgroundValue, type BorderObject, type BorderStyle, type BorderValue, type BoxShadowValue, type BreatheEffect, type BreatheOptions, type BuildDiagnostic, type BuildDiagnosticFontUnavailableReason, BuildError, type BuildOptions, BuildQueryError, type BuildReport, type BuildResult, CapabilityError, type CapabilityModule, type CascadedOmission, type ChartAxis, type ChartAxisCrossing, type ChartAxisPosition, type ChartAxisReferences, type ChartCategoryAxis, type ChartCategoryAxisReferences, type ChartCustomErrorBars, type ChartDataLabelOverride, type ChartDataLabels, type ChartDisplayBlanksAs, type ChartErrorBarInclude, type ChartErrorBarValues, type ChartErrorBars, type ChartGroup, type ChartGroupData, type ChartKind, type ChartLine, type ChartLineDash, type ChartMarker, type ChartMarkerSymbol, type ChartPoint, type ChartSeries, type ChartSeriesDataLabelOverride, type ChartTickLabelPosition, type ChartTickMark, type ChartTitle, type ChartTrendline, type ChartTrendlineType, type ChartValueAxis, type ChartXYAxisReferences, type CodegenDiagnostic, type CodegenDiagnosticCode, type CodegenEntryName, CodegenError, type CodegenFileContent, type CodegenOptions, type CodegenResult, type CodegenTarget, type ColorMap, type ColorMapOverride, type ColorValue, type ColumnOrBarChartGroup, type CommentAuthorProps, CommonContainer, CommonNode, type ContentPlaceholderRole, type CustomGeometry, type DateTimeFooterPlaceholderSpec, type DateTimeFormat, DeckContainer, type DeckProps, type DeclarationChild, type DeclarationContainer, type DeclarationNode, type DeclarationText, type DocumentProps, type DocumentStyle, type DocumentUpdate, type DoughnutChartGroup, type Easing, type EditabilityLoss, type Effect, type EffectInstance, type EffectOptions, type EffectPreset, type EmitOptions, type EmitResult, type EmphasisEffect, type EmphasisEffectDeclaration, type EmptyPlaceholderMap, type EntranceEffect, type EntranceEffectDeclaration, type ExitEffect, type ExitEffectDeclaration, type ExitPreset, type Extension, type ExternalResourceSource, type FatalImportIssue, type FillColorOptions, type FlipTransition, type Font, type FontEmbeddingMode, 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 HeaderFooter, type HexColor, type ImageBackground, type ImageBackgroundFit, type ImageBackgroundPosition, type ImageSource, type ImageVisualStyle, type ImportDiagnostic, ImportError, type ImportLocation, type ImportOptions, type ImportReport, type ImportResult, type IndependentCategoryData, type IndependentCategorySeries, type InstantEffectOptions, type LayoutChildReference, type LayoutLength, type LayoutPlaceholderSpec, type LayoutSpacing, type LayoutStyle, type LineAdjust, type LineEndpoint, type LineHeight, type LineLayoutStyle, type LineOrAreaChartGroup, type LinePort, type LineRouting, type LineStroke, type LineStrokeValue, type LineStyle, type LineVisualStyle, type LinearGradient, type LinkTarget, type Locator, type LocatorResource, type MasterPlaceholderMap, type MasterPlaceholderSpec, type MasterTextStyles, type MediaPlaybackProps, type MediaTrim, type MorphKey, 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 MotionSchedule, type MotionScopeHandle, type MotionScopeMode, type MotionScopeQueryMember, type MotionScopeRef, type MotionScopeSchedule, type MotionStartDependency, type MotionStepQuery, type MotionStepRef, type MotionTargetRange, type MotionTime, type MotionTiming, type NativeColorSlot, type NotesDeclarationProps, type ObjectTransform, type PaddingStyle, type ParagraphStyle, type PathCommand, type PathOptions, type PieChartGroup, type PlaceholderDeclarationProps, type PlaceholderLevelStyle, type PlaceholderListStyles, type PlaceholderMap, type PlaceholderNode, type PlaceholderOrient, type PlaceholderSize, type PlaceholderStyle, type PresetGeometry, type PresetGeometryName, type PreviewError, type PreviewNode, type PreviewOptions, PreviewPageRangeError, type PreviewPageResult, type PreviewPlaceholder, type PreviewResult, type PreviewTransform, type PrintDateTimeValue, type PrintHeaderFooter, type RadialGradient, type Rect, type RepeatCount, type RepeatedEffect, type Resolution, type ResolutionDimensionsSummary, type ResolutionReport, type ResolveOptions, type ResolvedAudio, type ResolvedComment, type ResolvedFooter, type ResolvedFooterSlot, type ResolvedImage, type ResolvedLayout, type ResolvedMaster, type ResolvedMotionEffect, type ResolvedMotionMoment, type ResolvedMotionScope, type ResolvedMotionStep, type ResolvedObject, type ResolvedPlaceholder, type ResolvedResource, type ResolvedSlide, type ResolvedSlideLayout, type ResolvedTable, type ResolvedTableCell, type ResolvedTableRow, type ResolvedVideo, type ResourceSource, RichTextContainer, type RichTextItem, type RunTextStyle, type ScatterChartGroup, type ScatterChartPoint, type ScatterChartSeries, type ScatterData, type ScatterDataLabelOverride, type ScatterDataLabels, type ScatterErrorBars, type ScatterLine, type SchemeColorName, type SchemeColorSlot, type ScreenPoint, type SectionProps, type Shadow, type ShapeTextStyle, type SharedCategoryData, type SlideBackground, SlideContainer, type SlideDateTimeValue, type SlideFooterValue, SlideLayoutContainer, type SlideLayoutDefinition, type SlideLayoutProps, type SlideLayoutType, type SlideLocator, SlideMasterContainer, type SlideMasterProps, type SlideNumberValue, type SlideProps, type SpinOptions, type StandardTransition, type SteppedEffect, type StripsDirection, type StyleUpdate, type TableCellStyle, type TableColumn, type TableRowStyle, type TableSpacing, type TableStyle, type TableTextStyle, type TableVerticalAlign, type Target, type TargetName, type TextAlignment, type TextFillValue, type TextList, type TextMetrics, 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 VideoSource, type VisualStyle, after, appear, audioCapability, authorIdSchema, backgroundRefSchema, backgroundValueSchema, blockArc, borderObjectSchema, borderStyleSchema, borderValueSchema, boxCapability, boxShadowValueSchema, breathe, build, buildDiagnosticFontUnavailableReasonSchema, buildDiagnosticSchema, buildOptionsSchema, cascadedOmissionSchema, chartCapability, codegen, codegenDiagnosticCodeSchema, codegenDiagnosticSchema, codegenOptionsSchema, codegenTargetSchema, collapse, colorMapOverrideSchema, colorMapSchema, commentCapability, createMorphScope, createMotionScopeHandle, darker, dateTimeFooterPlaceholderSpecSchema, deckPropsSchema, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, documentCapabilities, editabilityLossSchema, emit, emitOptionsSchema, extensionSchema, externalResourceSourceSchema, fade, fadeOut, fatalImportIssueSchema, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fontEmbeddingModeSchema, footerPlaceholderCapability, footerPlaceholderSpecSchema, footerPlaceholdersSchema, formatBaseline, formatBaselineSchema, formatSchemeSchema, fromFontCollection, groupCapability, headerFooterSchema, imageBackgroundFitSchema, imageBackgroundPositionKeywordSchema, imageBackgroundPositionSchema, imageBackgroundSchema, imageCapability, importDiagnosticSchema, importLocationSchema, importOptionsSchema, importPptx, importReportSchema, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, layoutLengthSchema, layoutSpacingSchema, layoutStyleSchema, lighter, lineCapability, linearGradient, linkTargetSchema, mastersCapability, motionCapability, motionSchedule, nativeColorSlots, notesCapability, onStep, paddingStyleSchema, path, placeholderCapability, placeholderSizeSchema, preset, preview, previewErrorSchema, previewPlaceholderSchema, radialGradient, repeat, resolve, resolveOptionsSchema, resolvedMasterSchema, resolvedPlaceholderSchema, resolvedSlideLayoutSchema, resourceSourceSchema, schemeColorNames, schemeColorSlots, sectionPropsSchema, shapeCapability, slideBackgroundCapability, slideBackgroundSchema, slideDateTimeValueSchema, slideFooterValueSchema, slideLayoutDataPropsSchema, slideLayoutTypeSchema, slideLayoutTypeValues, slideMasterDataPropsSchema, slideNumberValueSchema, slidePropsSchema, spin, spinIn, spinOptionsSchema, spinOut, stretch, tableCapability, targetNameSchema, targetSchema, targets, textCapability, textStyleSchema, themeDataSchema, themeFontSlotSchema, themeFontSlots, themeInputSchema, themeOverrideSchema, themeSchema, transitionCapability, transitions, videoCapability, wipe, wipeOut, zoom, zoomOut };
|
package/dist/index.js
CHANGED
|
@@ -1,70 +1,84 @@
|
|
|
1
|
-
import { BuildError, CapabilityError } from "./core/dist/diagnostics.js";
|
|
2
|
-
import { authorIdSchema } from "./core/dist/author-ids.js";
|
|
3
|
-
import { layoutLengthSchema, layoutSpacingSchema, layoutStyleSchema, paddingStyleSchema } from "./core/dist/layout-schemas.js";
|
|
4
|
-
import { createMorphScope, isMorphKey } from "./core/dist/morph.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer } from "./core/dist/document.js";
|
|
14
|
-
import { after, breathe, createMotionScopeHandle, fade, fillColor, floatDown, floatUp, fly, repeat, spin, spinIn, stretch, wipe, zoom } from "./capabilities/dist/motion/motion-api.js";
|
|
15
|
-
import { ImportError, cascadedOmissionSchema, editabilityLossSchema, fatalImportIssueSchema, importDiagnosticSchema, importLocationSchema, importOptionsSchema, importReportSchema } from "./import/dist/diagnostics.js";
|
|
16
|
-
import "./codegen/dist/index.js";
|
|
17
|
-
import { createImporter } from "./import/dist/import.js";
|
|
18
|
-
import "./emit/dist/index.js";
|
|
19
|
-
import { blockArc, path, preset } from "./capabilities/dist/shared/geometry.js";
|
|
20
|
-
import { linearGradient, radialGradient } from "./capabilities/dist/shared/visual.js";
|
|
21
|
-
import { CodegenError, codegenDiagnosticCodeSchema, codegenDiagnosticSchema, codegenOptionsSchema, codegenTargetSchema } from "./codegen/dist/types.js";
|
|
22
|
-
import { createCodegen } from "./codegen/dist/codegen.js";
|
|
23
|
-
import "./import/dist/index.js";
|
|
24
|
-
import { createStagePipeline } from "./pptxdk/src/compose.js";
|
|
1
|
+
import { BuildError, CapabilityError } from "./core/dist/kernel/diagnostics.js";
|
|
2
|
+
import { authorIdSchema } from "./core/dist/kernel/author-ids.js";
|
|
3
|
+
import { layoutLengthSchema, layoutSpacingSchema, layoutStyleSchema, paddingStyleSchema } from "./core/dist/kernel/layout-schemas.js";
|
|
4
|
+
import { createMorphScope, isMorphKey } from "./core/dist/kernel/morph.js";
|
|
5
|
+
import { externalResourceSourceSchema, resourceSourceSchema } from "./core/dist/kernel/resource-source.js";
|
|
6
|
+
import { backgroundValueSchema, borderObjectSchema, borderStyleSchema, borderValueSchema, boxShadowValueSchema, colorMapOverrideSchema, colorMapSchema, darker, defaultColorMap, defaultTheme, defineTheme, formatSchemeSchema, imageBackgroundFitSchema, imageBackgroundPositionKeywordSchema, imageBackgroundPositionSchema, imageBackgroundSchema, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isTheme, isThemeFontSlot, lighter, nativeColorSlots, schemeColorNames, schemeColorSlots, textStyleSchema, themeDataSchema, themeFontSlotSchema, themeFontSlots, themeInputSchema, themeOverrideSchema, themeSchema } from "./core/dist/kernel/theme.js";
|
|
7
|
+
import { placeholderSizeSchema } from "./core/dist/kernel/placeholders.js";
|
|
8
|
+
import { backgroundRefSchema, linkTargetSchema, sectionPropsSchema, slideBackgroundSchema, slideDateTimeValueSchema, slideFooterValueSchema, slideNumberValueSchema } from "./core/dist/kernel/author-schemas.js";
|
|
9
|
+
import { dateTimeFooterPlaceholderSpecSchema, footerPlaceholderSpecSchema, footerPlaceholdersSchema, headerFooterSchema, resolvedMasterSchema, resolvedPlaceholderSchema, resolvedSlideLayoutSchema, slideLayoutTypeSchema, slideLayoutTypeValues } from "./core/dist/kernel/masters.js";
|
|
10
|
+
import { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer } from "./core/dist/kernel/document.js";
|
|
11
|
+
import { PreviewPageRangeError, buildDiagnosticFontUnavailableReasonSchema, buildDiagnosticSchema, buildOptionsSchema, emitOptionsSchema, extensionSchema, fontEmbeddingModeSchema, formatBaseline, formatBaselineSchema, previewErrorSchema, previewPlaceholderSchema, resolveOptionsSchema, targetNameSchema, targetSchema, targets } from "./core/dist/kernel/stage-options.js";
|
|
12
|
+
import { BuildQueryError } from "./core/dist/kernel/query.js";
|
|
25
13
|
import "./core/dist/index.js";
|
|
26
|
-
import "./core/dist/
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
14
|
+
import { spinOptionsSchema } from "./core/dist/capabilities/shared/motion-schemas.js";
|
|
15
|
+
import { ImportError, cascadedOmissionSchema, editabilityLossSchema, fatalImportIssueSchema, importDiagnosticSchema, importLocationSchema, importOptionsSchema, importReportSchema } from "./core/dist/kernel/pptx-read/diagnostics.js";
|
|
16
|
+
import { blockArc, path, preset } from "./core/dist/capabilities/shared/geometry.js";
|
|
17
|
+
import { linearGradient, radialGradient } from "./core/dist/capabilities/shared/visual.js";
|
|
18
|
+
import { font, fromFontCollection } from "./core/dist/capabilities/shared/font/font.js";
|
|
19
|
+
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";
|
|
20
|
+
import { transitions } from "./core/dist/capabilities/transition/transition-api.js";
|
|
21
|
+
import { motionSchedule } from "./core/dist/capabilities/motion/motion-query.js";
|
|
22
|
+
import "./core/dist/capabilities/slide-background/entry.js";
|
|
23
|
+
import { CodegenError, codegenDiagnosticCodeSchema, codegenDiagnosticSchema, codegenOptionsSchema, codegenTargetSchema } from "./core/dist/kernel/codegen.js";
|
|
24
|
+
import "./core/dist/document/stages.js";
|
|
25
|
+
import { boxCapability } from "./core/dist/capabilities/box/box.js";
|
|
26
|
+
import { chartCapability } from "./core/dist/capabilities/chart/chart.js";
|
|
27
|
+
import { commentCapability } from "./core/dist/capabilities/comment/comment.js";
|
|
28
|
+
import { createStagePipeline, prepareDocumentInput } from "./pptxdk/src/compose.js";
|
|
29
|
+
import { footerPlaceholderCapability } from "./core/dist/capabilities/footer-placeholder/footer-placeholder.js";
|
|
30
|
+
import { groupCapability } from "./core/dist/capabilities/group/group.js";
|
|
31
|
+
import { imageCapability } from "./core/dist/capabilities/image/image.js";
|
|
32
|
+
import { lineCapability } from "./core/dist/capabilities/line/line.js";
|
|
33
|
+
import { mastersCapability } from "./core/dist/capabilities/masters/masters.js";
|
|
34
|
+
import { motionCapability } from "./core/dist/capabilities/motion/motion.js";
|
|
35
|
+
import { notesCapability } from "./core/dist/capabilities/notes/notes.js";
|
|
36
|
+
import { placeholderCapability } from "./core/dist/capabilities/placeholder/placeholder.js";
|
|
37
|
+
import { shapeCapability } from "./core/dist/capabilities/shape/shape.js";
|
|
38
|
+
import { slideBackgroundCapability } from "./core/dist/capabilities/slide-background/slide-background.js";
|
|
39
|
+
import { tableCapability } from "./core/dist/capabilities/table/table.js";
|
|
40
|
+
import { textCapability } from "./core/dist/capabilities/text/text.js";
|
|
41
|
+
import { transitionCapability } from "./core/dist/capabilities/transition/transition.js";
|
|
42
|
+
import "./core/dist/kernel/index.js";
|
|
43
|
+
import { documentCapabilities } from "./core/dist/document/all.js";
|
|
44
|
+
import { emit } from "./core/dist/emit/emit.js";
|
|
45
|
+
import { deckPropsSchema, defineSlideLayout, isSlideLayoutDefinition, slideLayoutDataPropsSchema, slideMasterDataPropsSchema, slidePropsSchema } from "./core/dist/document/document.js";
|
|
46
|
+
import { codegen, importPptx, resolve as resolve$1 } from "./core/dist/document/default.js";
|
|
47
|
+
import "./core/dist/capabilities/box/entry.js";
|
|
48
|
+
import "./core/dist/capabilities/chart/entry.js";
|
|
49
|
+
import "./core/dist/capabilities/footer-placeholder/entry.js";
|
|
50
|
+
import "./core/dist/capabilities/group/entry.js";
|
|
51
|
+
import "./core/dist/capabilities/image/entry.js";
|
|
52
|
+
import "./core/dist/capabilities/line/entry.js";
|
|
53
|
+
import "./core/dist/capabilities/masters/entry.js";
|
|
54
|
+
import "./core/dist/capabilities/placeholder/entry.js";
|
|
55
|
+
import "./core/dist/capabilities/motion/entry.js";
|
|
56
|
+
import "./core/dist/capabilities/comment/entry.js";
|
|
57
|
+
import "./core/dist/capabilities/notes/entry.js";
|
|
58
|
+
import "./core/dist/capabilities/shape/entry.js";
|
|
59
|
+
import "./core/dist/capabilities/table/entry.js";
|
|
60
|
+
import "./core/dist/capabilities/text/entry.js";
|
|
61
|
+
import "./core/dist/capabilities/transition/entry.js";
|
|
62
|
+
import { videoCapability } from "./core/dist/capabilities/video/entry.js";
|
|
63
|
+
import { audioCapability } from "./core/dist/capabilities/audio/entry.js";
|
|
44
64
|
// src/index.ts
|
|
45
|
-
const pipeline = createStagePipeline(
|
|
46
|
-
const importDocument = createImporter(documentCapabilities);
|
|
47
|
-
const generateSource = createCodegen(documentCapabilities);
|
|
65
|
+
const pipeline = createStagePipeline(resolve$1);
|
|
48
66
|
/**
|
|
49
|
-
*
|
|
50
|
-
* editable CommonNode document.
|
|
51
|
-
*/
|
|
52
|
-
function codegen(document, options) {
|
|
53
|
-
return generateSource(document, options);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Synchronously imports a Transitional PPTX archive into an editable CommonNode document
|
|
57
|
-
* and a structured `ImportReport`, detaching completely from caller-owned input bytes.
|
|
58
|
-
*/
|
|
59
|
-
function importPptx(input, options) {
|
|
60
|
-
return importDocument(input, options);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Synchronously resolves an editable CommonNode document into an immutable Resolution snapshot.
|
|
67
|
+
* Resolves an editable document or JSX into an immutable Resolution.
|
|
64
68
|
*/
|
|
65
69
|
const resolve = pipeline.resolve;
|
|
66
70
|
/**
|
|
67
71
|
* Default one-call build supporting both JSX elements and plain CommonNode documents.
|
|
68
72
|
*/
|
|
69
73
|
const build = pipeline.build;
|
|
70
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Default static preview supporting both JSX elements and plain CommonNode documents.
|
|
76
|
+
*
|
|
77
|
+
* Defers loading the rasterizer and React reconciler until `preview()` is actually called.
|
|
78
|
+
*/
|
|
79
|
+
async function preview(input, options = {}) {
|
|
80
|
+
const prepared = prepareDocumentInput(input);
|
|
81
|
+
const { runPreview } = await import("./pptxdk/src/preview-result.js");
|
|
82
|
+
return runPreview(prepared, options);
|
|
83
|
+
}
|
|
84
|
+
export { AuthorQuery, AuthorQueryError, BuildError, BuildQueryError, CapabilityError, CodegenError, CommonContainer, CommonNode, DeckContainer, ImportError, PreviewPageRangeError, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer, after, appear, audioCapability, authorIdSchema, backgroundRefSchema, backgroundValueSchema, blockArc, borderObjectSchema, borderStyleSchema, borderValueSchema, boxCapability, boxShadowValueSchema, breathe, build, buildDiagnosticFontUnavailableReasonSchema, buildDiagnosticSchema, buildOptionsSchema, cascadedOmissionSchema, chartCapability, codegen, codegenDiagnosticCodeSchema, codegenDiagnosticSchema, codegenOptionsSchema, codegenTargetSchema, collapse, colorMapOverrideSchema, colorMapSchema, commentCapability, createMorphScope, createMotionScopeHandle, darker, dateTimeFooterPlaceholderSpecSchema, deckPropsSchema, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, documentCapabilities, editabilityLossSchema, emit, emitOptionsSchema, extensionSchema, externalResourceSourceSchema, fade, fadeOut, fatalImportIssueSchema, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fontEmbeddingModeSchema, footerPlaceholderCapability, footerPlaceholderSpecSchema, footerPlaceholdersSchema, formatBaseline, formatBaselineSchema, formatSchemeSchema, fromFontCollection, groupCapability, headerFooterSchema, imageBackgroundFitSchema, imageBackgroundPositionKeywordSchema, imageBackgroundPositionSchema, imageBackgroundSchema, imageCapability, importDiagnosticSchema, importLocationSchema, importOptionsSchema, importPptx, importReportSchema, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, layoutLengthSchema, layoutSpacingSchema, layoutStyleSchema, lighter, lineCapability, linearGradient, linkTargetSchema, mastersCapability, motionCapability, motionSchedule, nativeColorSlots, notesCapability, onStep, paddingStyleSchema, path, placeholderCapability, placeholderSizeSchema, preset, preview, previewErrorSchema, previewPlaceholderSchema, radialGradient, repeat, resolve, resolveOptionsSchema, resolvedMasterSchema, resolvedPlaceholderSchema, resolvedSlideLayoutSchema, resourceSourceSchema, schemeColorNames, schemeColorSlots, sectionPropsSchema, shapeCapability, slideBackgroundCapability, slideBackgroundSchema, slideDateTimeValueSchema, slideFooterValueSchema, slideLayoutDataPropsSchema, slideLayoutTypeSchema, slideLayoutTypeValues, slideMasterDataPropsSchema, slideNumberValueSchema, slidePropsSchema, spin, spinIn, spinOptionsSchema, spinOut, stretch, tableCapability, targetNameSchema, targetSchema, targets, textCapability, textStyleSchema, themeDataSchema, themeFontSlotSchema, themeFontSlots, themeInputSchema, themeOverrideSchema, themeSchema, transitionCapability, transitions, videoCapability, wipe, wipeOut, zoom, zoomOut };
|