@officedk/pptxdk 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.d.ts +5 -8
- package/dist/build.js +44 -52
- 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/{capabilities/dist → core/dist/capabilities}/box/box-codegen.js +7 -8
- package/dist/{capabilities/dist → core/dist/capabilities}/box/box-declaration.js +8 -8
- package/dist/{capabilities/dist → core/dist/capabilities}/box/box.js +14 -15
- package/dist/core/dist/capabilities/box/entry.js +2 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-codegen.js +11 -18
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-declaration.js +2 -2
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-import.js +891 -468
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-labels.js +30 -3
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-model.js +1 -1
- 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 +73 -79
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart-xml.js +41 -36
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/chart.js +175 -113
- package/dist/core/dist/capabilities/chart/entry.js +2 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/axes-and-grid.js +2 -2
- 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 +28 -9
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/layout.js +7 -9
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/legend.js +1 -1
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/line-area.js +1 -1
- 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 +1 -1
- package/dist/{capabilities/dist → core/dist/capabilities}/chart/preview/style.js +1 -1
- 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 +3 -3
- 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 +113 -50
- 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/{capabilities/dist → core/dist/capabilities}/group/group-codegen.js +6 -7
- package/dist/{capabilities/dist → core/dist/capabilities}/group/group-declaration.js +8 -8
- package/dist/{capabilities/dist → core/dist/capabilities}/group/group-import.js +36 -77
- package/dist/{capabilities/dist → core/dist/capabilities}/group/group-xml.js +1 -1
- package/dist/{capabilities/dist → core/dist/capabilities}/group/group.js +17 -17
- 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/{capabilities/dist → core/dist/capabilities}/line/line-codegen.js +6 -7
- package/dist/{capabilities/dist → core/dist/capabilities}/line/line-declaration.js +15 -9
- package/dist/{capabilities/dist → core/dist/capabilities}/line/line-import.js +15 -95
- package/dist/{capabilities/dist → core/dist/capabilities}/line/line-xml.js +1 -1
- package/dist/{capabilities/dist → core/dist/capabilities}/line/line.js +41 -43
- package/dist/core/dist/capabilities/masters/entry.js +1 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/masters/masters-codegen.js +7 -26
- package/dist/{capabilities/dist → core/dist/capabilities}/masters/masters.js +23 -35
- package/dist/core/dist/capabilities/motion/entry.js +5 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-codegen.js +15 -35
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-import.js +25 -9
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-plan.js +17 -14
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion-query.js +2 -2
- package/dist/{capabilities/dist → core/dist/capabilities}/motion/motion.js +79 -75
- package/dist/core/dist/capabilities/notes/entry.js +2 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes-codegen.js +4 -5
- 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 +6 -6
- package/dist/{capabilities/dist → core/dist/capabilities}/notes/notes.js +16 -41
- 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/{capabilities/dist → core/dist/capabilities}/placeholder/placeholder-codegen.js +5 -15
- package/dist/{capabilities/dist → core/dist/capabilities}/placeholder/placeholder-schemas.js +7 -9
- package/dist/{capabilities/dist → core/dist/capabilities}/placeholder/placeholder.js +50 -107
- 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 +44 -30
- package/dist/core/dist/capabilities/shared/container-slots.js +59 -0
- package/dist/core/dist/capabilities/shared/date-time.js +98 -0
- package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-embedding.js +5 -6
- package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-engine.js +34 -13
- package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-import.js +62 -23
- package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font-subset.js +24 -9
- package/dist/{capabilities/dist → core/dist/capabilities/shared}/font/font.js +4 -4
- package/dist/core/dist/capabilities/shared/geometry-codegen.js +101 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/geometry.js +47 -44
- 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 -79
- package/dist/{capabilities/dist/image → core/dist/capabilities/shared}/image-schemas.js +16 -26
- 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/{capabilities/dist/motion → core/dist/capabilities/shared}/motion-api.js +112 -99
- package/dist/{capabilities/dist/motion → core/dist/capabilities/shared}/motion-schemas.js +19 -5
- package/dist/{capabilities/dist/image/image-import.js → core/dist/capabilities/shared/picture-import.js} +97 -158
- package/dist/core/dist/capabilities/shared/picture-xml.js +13 -0
- package/dist/core/dist/capabilities/shared/picture.js +510 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/placeholder-import.js +50 -20
- package/dist/core/dist/capabilities/shared/placeholder-roles.js +42 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/preset-definitions.js +1 -1
- package/dist/core/dist/capabilities/shared/print-xml.js +77 -0
- package/dist/{capabilities/dist/text/text-codegen.js → core/dist/capabilities/shared/rich-text-codegen.js} +23 -102
- package/dist/core/dist/capabilities/shared/rich-text-import.js +472 -0
- package/dist/{capabilities/dist/shape → core/dist/capabilities/shared}/shape-declaration.js +14 -14
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/style-inheritance.js +12 -5
- package/dist/{capabilities/dist/text → core/dist/capabilities/shared}/text-declaration.js +7 -3
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/text-schemas.js +77 -77
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/text-service.js +571 -260
- package/dist/{capabilities/dist → core/dist/capabilities}/shared/visual.js +137 -112
- 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 +5 -5
- package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background-xml.js +2 -3
- package/dist/{capabilities/dist → core/dist/capabilities}/slide-background/slide-background.js +27 -33
- package/dist/core/dist/capabilities/table/entry.js +2 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table-codegen.js +6 -13
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table-declaration.js +2 -2
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table-import.js +22 -57
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table-schemas.js +40 -37
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table-xml.js +9 -4
- package/dist/{capabilities/dist → core/dist/capabilities}/table/table.js +60 -45
- 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 +61 -54
- package/dist/core/dist/capabilities/transition/entry.js +3 -0
- package/dist/{capabilities/dist → core/dist/capabilities}/transition/transition-api.js +1 -1
- 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 +13 -8
- package/dist/{codegen/dist → core/dist/codegen}/codegen.js +54 -122
- package/dist/{codegen/dist → core/dist/codegen}/identifiers.js +17 -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 +122 -60
- package/dist/core/dist/emit/index.js +6 -0
- package/dist/core/dist/emit/ooxml.js +241 -0
- package/dist/{import/dist → core/dist/import}/import.js +221 -187
- package/dist/core/dist/import/index.js +19 -0
- package/dist/{import/dist → core/dist/import}/masters.js +253 -317
- 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} +1 -1
- package/dist/core/dist/{author-schemas.js → kernel/author-schemas.js} +59 -98
- package/dist/core/dist/{block-flex-layout.js → kernel/block-flex-layout.js} +109 -78
- package/dist/core/dist/kernel/build.js +4 -0
- package/dist/core/dist/kernel/capability.js +17 -0
- package/dist/{codegen/dist/types.js → core/dist/kernel/codegen.js} +22 -2
- 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} +1 -1
- package/dist/core/dist/{diagnostics.js → kernel/diagnostics.js} +22 -5
- package/dist/core/dist/{document-internals.js → kernel/document-internals.js} +1 -1
- package/dist/core/dist/{document.js → kernel/document.js} +6 -5
- package/dist/core/dist/kernel/drawing-units.js +14 -0
- package/dist/core/dist/{font-seal.js → kernel/font-seal.js} +2 -2
- package/dist/core/dist/{geometry-schemas.js → kernel/geometry-schemas.js} +2 -6
- package/dist/core/dist/{grid-layout.js → kernel/grid-layout.js} +156 -55
- package/dist/core/dist/{host.js → kernel/host.js} +1 -1
- package/dist/core/dist/kernel/index.js +24 -0
- package/dist/core/dist/{input-values.js → kernel/input-values.js} +4 -3
- package/dist/core/dist/kernel/layout-definition.js +7 -0
- package/dist/core/dist/{layout-protocol.js → kernel/layout-protocol.js} +1 -1
- package/dist/core/dist/{layout-schemas.js → kernel/layout-schemas.js} +2 -6
- package/dist/core/dist/{layout.js → kernel/layout.js} +37 -38
- package/dist/core/dist/{masters.js → kernel/masters.js} +32 -55
- package/dist/core/dist/{morph.js → kernel/morph.js} +1 -1
- package/dist/core/dist/{placeholders.js → kernel/placeholders.js} +23 -9
- 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 +1 -1
- package/dist/core/dist/kernel/pptx-read/drawing-list-import.js +251 -0
- package/dist/{import/dist → core/dist/kernel/pptx-read}/fonts.js +1 -1
- 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 +5 -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 +40 -5
- package/dist/{import/dist → core/dist/kernel/pptx-read}/visual.js +94 -67
- package/dist/{import/dist → core/dist/kernel/pptx-read}/xml-fragments.js +56 -13
- 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} +62 -274
- package/dist/core/dist/{query.js → kernel/query.js} +5 -1
- package/dist/core/dist/{resolution.js → kernel/resolution.js} +1 -1
- package/dist/core/dist/kernel/resolve-work.js +58 -0
- package/dist/core/dist/{resolve.js → kernel/resolve.js} +226 -257
- package/dist/core/dist/kernel/resource-source.js +11 -0
- package/dist/core/dist/{stage-options.js → kernel/stage-options.js} +23 -11
- package/dist/core/dist/{theme.js → kernel/theme.js} +54 -36
- package/dist/core/dist/{transform-geometry.js → kernel/transform-geometry.js} +1 -1
- package/dist/core/dist/kernel/xml-values.js +13 -0
- package/dist/{document-41spD7bq.d.ts → document-C0lPlH-L.d.ts} +614 -522
- package/dist/{capability-BbKW9w4O.d.ts → index-B9_OUeA-.d.ts} +660 -553
- package/dist/{index-BEwhk7c8.d.ts → index-BJEzQxWV.d.ts} +27 -24
- package/dist/{index-cK2KtukZ.d.ts → index-DA9flrlR.d.ts} +2 -17
- package/dist/{index-v77CTJev.d.ts → index-GSt0t9VO.d.ts} +3 -4
- package/dist/index.d.ts +7 -8
- package/dist/index.js +68 -66
- package/dist/node.d.ts +16 -14
- package/dist/node.js +86 -43
- package/dist/pptxdk/src/cli-commands.js +9 -5
- package/dist/pptxdk/src/compose.js +28 -29
- 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 +84 -34
- package/dist/preview/dist/options.js +8 -4
- package/dist/preview/dist/raster.js +66 -0
- package/dist/preview/dist/svg-guard.js +8 -7
- package/dist/preview.d.ts +3 -9
- package/dist/preview.js +7 -25
- 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/{capabilities/dist/text → react/dist/author}/text-elements.js +15 -5
- package/dist/react/dist/author/video-elements.js +14 -0
- package/dist/react/dist/document-adapter.js +4 -4
- package/dist/react/dist/elements.js +7 -4
- package/dist/react/dist/from-vanilla.js +3 -3
- package/dist/react/dist/index.js +17 -3
- package/dist/react/dist/reconciler.js +3 -3
- package/dist/react.d.ts +103 -69
- package/dist/react.js +28 -28
- package/dist/{index-1ag7U9Jt.d.ts → stages-DYHSHKt4.d.ts} +23 -6
- package/dist/vanilla.d.ts +4 -4
- package/dist/vanilla.js +14 -15
- package/package.json +2 -5
- package/dist/build-zrZuX4fK.d.ts +0 -3
- package/dist/capabilities/dist/all.js +0 -34
- 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 -168
- package/dist/capabilities/dist/group/group-elements.js +0 -12
- package/dist/capabilities/dist/image/image-codegen.js +0 -164
- 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 -552
- package/dist/capabilities/dist/line/line-elements.js +0 -12
- 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-elements.js +0 -13
- package/dist/capabilities/dist/shape/shape-codegen.js +0 -236
- package/dist/capabilities/dist/shape/shape-elements.js +0 -12
- package/dist/capabilities/dist/shape/shape-import.js +0 -628
- package/dist/capabilities/dist/slide-background/slide-background-codegen.js +0 -44
- package/dist/capabilities/dist/text/text-import.js +0 -1224
- package/dist/core/dist/build.js +0 -4
- package/dist/core/dist/capability.js +0 -15
- package/dist/emit/dist/index.js +0 -5
- package/dist/import/dist/index.js +0 -16
- package/dist/pptxdk/src/slide.js +0 -9
- package/dist/transition-6n8GZxSg.d.ts +0 -9
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
declare const dateTimeFormats: readonly ["datetimeFigureOut", "datetime1", "datetime2", "datetime3", "datetime4", "datetime5", "datetime6", "datetime7", "datetime8", "datetime9", "datetime10", "datetime11", "datetime12", "datetime13"];
|
|
3
|
+
/** Native DrawingML date and time field formats. */
|
|
4
|
+
type DateTimeFormat = (typeof dateTimeFormats)[number];
|
|
5
|
+
/** A date slot can hold fixed text or a native date field. A style-only override inherits content. */
|
|
6
|
+
type DateTimeContent = {
|
|
7
|
+
readonly text?: string | undefined;
|
|
8
|
+
readonly format?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
readonly format: DateTimeFormat;
|
|
11
|
+
readonly text?: undefined;
|
|
12
|
+
};
|
|
13
|
+
/** Reference to a resource linked from the presentation. */
|
|
14
|
+
type ExternalResourceSource = {
|
|
15
|
+
readonly externalUrl: string;
|
|
16
|
+
};
|
|
17
|
+
/** Local path, file URL, embedded bytes, or a linked external resource. */
|
|
18
|
+
type ResourceSource = string | URL | Uint8Array | ExternalResourceSource;
|
|
19
|
+
declare const externalResourceSourceSchema: z.ZodType<ExternalResourceSource>;
|
|
20
|
+
declare const resourceSourceSchema: z.ZodType<ResourceSource>;
|
|
2
21
|
/**
|
|
3
22
|
* Plain authoring declaration tree consumed by the formal build.
|
|
4
23
|
*
|
|
@@ -16,11 +35,8 @@ type DeclarationNode = {
|
|
|
16
35
|
readonly props: Readonly<Record<string, unknown>>;
|
|
17
36
|
readonly children: readonly DeclarationChild[];
|
|
18
37
|
/**
|
|
19
|
-
* Declaration belongs to
|
|
20
|
-
*
|
|
21
|
-
* The formal build still reaches page-affiliated declarations below hidden canvas parents, so a
|
|
22
|
-
* trimmed owning capability is diagnosed instead of being pruned with the hidden subtree.
|
|
23
|
-
* Capability registration still decides whether the declaration is consumed and generated.
|
|
38
|
+
* Declaration belongs directly to a slide. Placement is checked before layout can prune hidden
|
|
39
|
+
* canvas ancestors, and capability registration decides whether the declaration can be built.
|
|
24
40
|
*/
|
|
25
41
|
readonly pageAffiliated?: boolean;
|
|
26
42
|
};
|
|
@@ -31,6 +47,228 @@ type DeclarationContainer = {
|
|
|
31
47
|
type AuthorId = string;
|
|
32
48
|
/** Non-empty trimmed author identifier unique within its naming scope. */
|
|
33
49
|
declare const authorIdSchema: z.ZodType<AuthorId>;
|
|
50
|
+
declare const formatBaseline: "ECMA-376 5th edition Transitional";
|
|
51
|
+
declare const formatBaselineSchema: z.ZodType<typeof formatBaseline>;
|
|
52
|
+
type Extension = "p14" | "p159" | "c15";
|
|
53
|
+
declare const extensionSchema: z.ZodType<Extension>;
|
|
54
|
+
type FontEmbeddingMode = "full" | "subset";
|
|
55
|
+
declare const fontEmbeddingModeSchema: z.ZodType<FontEmbeddingMode>;
|
|
56
|
+
declare const targets: Readonly<{
|
|
57
|
+
transitional: Readonly<{
|
|
58
|
+
name: "transitional";
|
|
59
|
+
format: "ECMA-376 5th edition Transitional";
|
|
60
|
+
extensions: readonly ["p14", "p159", "c15"];
|
|
61
|
+
}>;
|
|
62
|
+
baselineOnly: Readonly<{
|
|
63
|
+
name: "baseline-only";
|
|
64
|
+
format: "ECMA-376 5th edition Transitional";
|
|
65
|
+
extensions: readonly [];
|
|
66
|
+
}>;
|
|
67
|
+
}>;
|
|
68
|
+
type TargetName = "transitional" | "baseline-only";
|
|
69
|
+
declare const targetNameSchema: z.ZodType<TargetName>;
|
|
70
|
+
type Target = {
|
|
71
|
+
readonly name: string;
|
|
72
|
+
readonly format: typeof formatBaseline;
|
|
73
|
+
readonly extensions: readonly Extension[];
|
|
74
|
+
};
|
|
75
|
+
declare const targetSchema: z.ZodType<Target>;
|
|
76
|
+
type ResolveOptions = {
|
|
77
|
+
/** UTC instant used for dynamic date text. ISO strings without a zone are interpreted as UTC. */
|
|
78
|
+
readonly referenceDate?: Date | string | undefined;
|
|
79
|
+
readonly signal?: AbortSignal | undefined;
|
|
80
|
+
};
|
|
81
|
+
declare const resolveOptionsSchema: z.ZodType<ResolveOptions>;
|
|
82
|
+
type EmitOptions = {
|
|
83
|
+
/** Explicitly request embedding full files or character subsets of fonts actually used by the deck; no embedding by default. */
|
|
84
|
+
readonly embedFonts?: FontEmbeddingMode | undefined;
|
|
85
|
+
readonly target?: Target | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Cooperative cancellation signal for a single build; no default timeout when unspecified.
|
|
88
|
+
* Completion, unhandled errors, and cancellation follow the first established terminal state; cancelling after completion does not alter the result.
|
|
89
|
+
*/
|
|
90
|
+
readonly signal?: AbortSignal | undefined;
|
|
91
|
+
};
|
|
92
|
+
type BuildOptions = EmitOptions & Pick<ResolveOptions, "referenceDate">;
|
|
93
|
+
declare const buildOptionsSchema: z.ZodType<BuildOptions>;
|
|
94
|
+
declare const emitOptionsSchema: z.ZodType<EmitOptions>;
|
|
95
|
+
type BuildDiagnosticFontUnavailableReason = "missing-resource" | "missing-face" | "family-mismatch" | "style-mismatch" | "substitute-required" | "unsupported-format" | "invalid-metrics" | "not-embeddable" | "license-restricted" | "subsetting-forbidden" | "subsetting-failed";
|
|
96
|
+
declare const buildDiagnosticFontUnavailableReasonSchema: z.ZodType<BuildDiagnosticFontUnavailableReason>;
|
|
97
|
+
type BuildDiagnostic = {
|
|
98
|
+
code: "invalid-options";
|
|
99
|
+
path: string;
|
|
100
|
+
message: string;
|
|
101
|
+
field?: string | undefined;
|
|
102
|
+
expected?: string | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
code: "unknown-prop";
|
|
105
|
+
path: string;
|
|
106
|
+
message: string;
|
|
107
|
+
field?: string | undefined;
|
|
108
|
+
prop: string;
|
|
109
|
+
scope?: "props" | "style" | "options" | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
code: "invalid-prop";
|
|
112
|
+
path: string;
|
|
113
|
+
message: string;
|
|
114
|
+
field?: string | undefined;
|
|
115
|
+
expected?: string | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
code: "invalid-style";
|
|
118
|
+
path: string;
|
|
119
|
+
message: string;
|
|
120
|
+
field?: string | undefined;
|
|
121
|
+
expected?: string | undefined;
|
|
122
|
+
} | {
|
|
123
|
+
code: "invalid-structure";
|
|
124
|
+
path: string;
|
|
125
|
+
message: string;
|
|
126
|
+
field?: string | undefined;
|
|
127
|
+
expected?: string | undefined;
|
|
128
|
+
conflictPath?: string | undefined;
|
|
129
|
+
} | {
|
|
130
|
+
code: "duplicate-id";
|
|
131
|
+
path: string;
|
|
132
|
+
message: string;
|
|
133
|
+
field?: string | undefined;
|
|
134
|
+
identifier?: string | undefined;
|
|
135
|
+
conflictPath?: string | undefined;
|
|
136
|
+
} | {
|
|
137
|
+
code: "broken-reference";
|
|
138
|
+
path: string;
|
|
139
|
+
message: string;
|
|
140
|
+
field?: string | undefined;
|
|
141
|
+
reference?: string | undefined;
|
|
142
|
+
targetKind?: "slide" | "layout" | "placeholder" | "object" | "cue" | "scope" | "part" | "resource" | "axis" | undefined;
|
|
143
|
+
} | {
|
|
144
|
+
code: "invalid-continuity";
|
|
145
|
+
path: string;
|
|
146
|
+
message: string;
|
|
147
|
+
field?: string | undefined;
|
|
148
|
+
reason?: "inside-group" | "on-master" | "needs-object" | "unsupported-object" | "kind-mismatch" | "name-conflict" | undefined;
|
|
149
|
+
conflictPath?: string | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
code: "missing-capability";
|
|
152
|
+
path: string;
|
|
153
|
+
message: string;
|
|
154
|
+
field?: string | undefined;
|
|
155
|
+
capability: string;
|
|
156
|
+
} | {
|
|
157
|
+
code: "font-unavailable";
|
|
158
|
+
path: string;
|
|
159
|
+
message: string;
|
|
160
|
+
field?: string | undefined;
|
|
161
|
+
font: {
|
|
162
|
+
family: string;
|
|
163
|
+
weight?: number | undefined;
|
|
164
|
+
style?: "normal" | "italic" | undefined;
|
|
165
|
+
};
|
|
166
|
+
reason: BuildDiagnosticFontUnavailableReason;
|
|
167
|
+
} | {
|
|
168
|
+
code: "font-missing-glyph";
|
|
169
|
+
path: string;
|
|
170
|
+
message: string;
|
|
171
|
+
field?: string | undefined;
|
|
172
|
+
font: {
|
|
173
|
+
family: string;
|
|
174
|
+
weight: number;
|
|
175
|
+
style: "normal" | "italic";
|
|
176
|
+
};
|
|
177
|
+
characters: readonly string[];
|
|
178
|
+
} | {
|
|
179
|
+
code: "invalid-resource";
|
|
180
|
+
path: string;
|
|
181
|
+
message: string;
|
|
182
|
+
field?: string | undefined;
|
|
183
|
+
resourceKind: "image" | "media" | "part" | "capability";
|
|
184
|
+
} | {
|
|
185
|
+
code: "target-violation";
|
|
186
|
+
path: string;
|
|
187
|
+
message: string;
|
|
188
|
+
field?: string | undefined;
|
|
189
|
+
target: string;
|
|
190
|
+
extension?: string | undefined;
|
|
191
|
+
mechanism?: string | undefined;
|
|
192
|
+
} | {
|
|
193
|
+
code: "render-failed";
|
|
194
|
+
path: string;
|
|
195
|
+
message: string;
|
|
196
|
+
field?: string | undefined;
|
|
197
|
+
phase: "expand" | "append";
|
|
198
|
+
};
|
|
199
|
+
/** Typed resolve/emit/expand failure diagnostic discriminated by `code`. */
|
|
200
|
+
declare const buildDiagnosticSchema: z.ZodType<BuildDiagnostic>;
|
|
201
|
+
type PreviewError = {
|
|
202
|
+
code: "preview-missing-font";
|
|
203
|
+
path: string;
|
|
204
|
+
field?: string | undefined;
|
|
205
|
+
message: string;
|
|
206
|
+
font: {
|
|
207
|
+
family: string;
|
|
208
|
+
weight: number;
|
|
209
|
+
style: "normal" | "italic";
|
|
210
|
+
};
|
|
211
|
+
} | {
|
|
212
|
+
code: "preview-unsupported-font";
|
|
213
|
+
path: string;
|
|
214
|
+
field?: string | undefined;
|
|
215
|
+
message: string;
|
|
216
|
+
font: {
|
|
217
|
+
family: string;
|
|
218
|
+
weight?: number | undefined;
|
|
219
|
+
style?: "normal" | "italic" | undefined;
|
|
220
|
+
};
|
|
221
|
+
reason?: string | undefined;
|
|
222
|
+
} | {
|
|
223
|
+
code: "preview-missing-glyph";
|
|
224
|
+
path: string;
|
|
225
|
+
field?: string | undefined;
|
|
226
|
+
message: string;
|
|
227
|
+
font: {
|
|
228
|
+
family: string;
|
|
229
|
+
weight: number;
|
|
230
|
+
style: "normal" | "italic";
|
|
231
|
+
};
|
|
232
|
+
characters: readonly string[];
|
|
233
|
+
} | {
|
|
234
|
+
code: "preview-corrupt-image";
|
|
235
|
+
path: string;
|
|
236
|
+
field?: string | undefined;
|
|
237
|
+
message: string;
|
|
238
|
+
format?: "png" | "jpeg" | "gif" | undefined;
|
|
239
|
+
} | {
|
|
240
|
+
code: "preview-unsupported-capability";
|
|
241
|
+
path: string;
|
|
242
|
+
field?: string | undefined;
|
|
243
|
+
message: string;
|
|
244
|
+
capability: string;
|
|
245
|
+
};
|
|
246
|
+
/** Typed per-page static preview failure discriminated by `code`. */
|
|
247
|
+
declare const previewErrorSchema: z.ZodType<PreviewError>;
|
|
248
|
+
type PreviewPlaceholder = {
|
|
249
|
+
id?: string | undefined;
|
|
250
|
+
path: string;
|
|
251
|
+
url: string;
|
|
252
|
+
};
|
|
253
|
+
/** Offline external image placeholder rendered deterministically during static preview. */
|
|
254
|
+
declare const previewPlaceholderSchema: z.ZodType<PreviewPlaceholder>;
|
|
255
|
+
/** Error thrown when requested preview page numbers exceed the resolved deck slide count. */
|
|
256
|
+
declare class PreviewPageRangeError extends RangeError {
|
|
257
|
+
readonly requestedPages: readonly number[];
|
|
258
|
+
readonly totalSlides: number;
|
|
259
|
+
constructor(requestedPages: readonly number[], totalSlides: number);
|
|
260
|
+
}
|
|
261
|
+
declare class BuildError extends Error {
|
|
262
|
+
readonly diagnostics: readonly BuildDiagnostic[];
|
|
263
|
+
constructor(diagnostics: readonly BuildDiagnostic[]);
|
|
264
|
+
}
|
|
265
|
+
declare class CapabilityError extends Error {
|
|
266
|
+
readonly code: string;
|
|
267
|
+
readonly path: string | undefined;
|
|
268
|
+
readonly details: Readonly<Record<string, unknown>> | undefined;
|
|
269
|
+
/** Subpath relative to the native object triggering the capability, facilitating localization of cell declarations inside the object. */
|
|
270
|
+
constructor(code: string, message: string, path?: string, details?: Readonly<Record<string, unknown>>);
|
|
271
|
+
}
|
|
34
272
|
type FontFaceStyle = "normal" | "italic";
|
|
35
273
|
/**
|
|
36
274
|
* Single font face resource declaration paired with a {@link Font}.
|
|
@@ -39,7 +277,8 @@ type FontFaceStyle = "normal" | "italic";
|
|
|
39
277
|
* the SDK infers the effective value from `OS/2.usWeightClass` and italic metadata
|
|
40
278
|
* (`OS/2.fsSelection.italic`, `OS/2.fsSelection.oblique`, or non-zero `post.italicAngle`).
|
|
41
279
|
* Explicit values that disagree with file metadata fail validation during build.
|
|
42
|
-
* When `embedFonts` is enabled,
|
|
280
|
+
* When `embedFonts` is enabled, only static TrueType (`glyf`) faces are supported
|
|
281
|
+
* and the owning `Font.family` must match the file's
|
|
43
282
|
* native Unicode legacy family name (`Name ID 1`).
|
|
44
283
|
*/
|
|
45
284
|
type FontFace = {
|
|
@@ -47,7 +286,15 @@ type FontFace = {
|
|
|
47
286
|
readonly weight?: number | undefined;
|
|
48
287
|
/** Glyph style (`"normal"` or `"italic"`); defaults to `"normal"` when `data` is omitted. */
|
|
49
288
|
readonly style?: FontFaceStyle | undefined;
|
|
50
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* Static single-font bytes.
|
|
291
|
+
*
|
|
292
|
+
* Content measurement and static preview accept static `TTF`, `OTF`, `WOFF`,
|
|
293
|
+
* and `WOFF2` binaries (variable fonts containing an `fvar` table are rejected).
|
|
294
|
+
* Enabling `embedFonts` (`"subset"` or `"full"`) supports only static TrueType
|
|
295
|
+
* (`glyf`) outlines and rejects other container or outline formats at emit time
|
|
296
|
+
* with a typed `BuildError`.
|
|
297
|
+
*/
|
|
51
298
|
readonly data?: Uint8Array | undefined;
|
|
52
299
|
};
|
|
53
300
|
/** Font family and explicit measurement resources referenceable across deck themes and components. */
|
|
@@ -154,14 +401,8 @@ type ImageBackgroundPosition = ImageBackgroundPositionKeyword | {
|
|
|
154
401
|
readonly y?: number | `${number}%` | undefined;
|
|
155
402
|
};
|
|
156
403
|
declare const imageBackgroundPositionSchema: z.ZodType<ImageBackgroundPosition>;
|
|
157
|
-
type ExternalImageFillSource = {
|
|
158
|
-
readonly externalUrl: string;
|
|
159
|
-
};
|
|
160
|
-
declare const externalImageFillSourceSchema: z.ZodType<ExternalImageFillSource>;
|
|
161
|
-
type ImageFillSource = string | URL | Uint8Array | ExternalImageFillSource;
|
|
162
|
-
declare const imageFillSourceSchema: z.ZodType<ImageFillSource>;
|
|
163
404
|
type ImageBackground = {
|
|
164
|
-
readonly image:
|
|
405
|
+
readonly image: ResourceSource;
|
|
165
406
|
readonly fit?: ImageBackgroundFit | undefined;
|
|
166
407
|
readonly position?: ImageBackgroundPosition | undefined;
|
|
167
408
|
readonly opacity?: number | undefined;
|
|
@@ -200,6 +441,8 @@ type VisualStyle = {
|
|
|
200
441
|
readonly flipH?: boolean | undefined;
|
|
201
442
|
readonly flipV?: boolean | undefined;
|
|
202
443
|
};
|
|
444
|
+
/** A solid or gradient fill applied to the glyphs of a text run. */
|
|
445
|
+
type TextFillValue = ColorValue | LinearGradient | RadialGradient;
|
|
203
446
|
/** Inheritable text style fields shared across text objects and containers. */
|
|
204
447
|
type TextStyle = {
|
|
205
448
|
readonly fontFamily?: FontReference | undefined;
|
|
@@ -207,7 +450,7 @@ type TextStyle = {
|
|
|
207
450
|
readonly fontSize?: FontSize | undefined;
|
|
208
451
|
readonly fontWeight?: "normal" | "bold" | number | undefined;
|
|
209
452
|
readonly fontStyle?: FontFaceStyle | undefined;
|
|
210
|
-
readonly color?:
|
|
453
|
+
readonly color?: TextFillValue | undefined;
|
|
211
454
|
readonly lineHeight?: LineHeight | undefined;
|
|
212
455
|
readonly verticalAlign?: "top" | "middle" | "bottom" | undefined;
|
|
213
456
|
/** Paragraph alignment when not explicitly overridden. */
|
|
@@ -218,6 +461,8 @@ type TextStyle = {
|
|
|
218
461
|
readonly letterSpacing?: number | undefined;
|
|
219
462
|
readonly textTransform?: "none" | "uppercase" | undefined;
|
|
220
463
|
readonly textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
464
|
+
/** Glyph outline. Use "none" or a zero width to clear an inherited outline. */
|
|
465
|
+
readonly textStroke?: BorderValue | undefined;
|
|
221
466
|
readonly textShadow?: Shadow | "none" | undefined;
|
|
222
467
|
/** Whether the text box wraps normally or keeps each line on a single line. */
|
|
223
468
|
readonly textWrap?: "normal" | "nowrap" | undefined;
|
|
@@ -310,7 +555,7 @@ type ThemeInput = {
|
|
|
310
555
|
};
|
|
311
556
|
/** Deck-level or master-level theme input; major/minor fonts and 12 native color slots are written to native PPTX theme. */
|
|
312
557
|
declare const themeInputSchema: z.ZodType<ThemeInput>;
|
|
313
|
-
/** Native `<a:themeOverride>` partial override for a
|
|
558
|
+
/** Native `<a:themeOverride>` partial override for a layout, slide, or chart. */
|
|
314
559
|
type ThemeOverride = {
|
|
315
560
|
readonly colors?: {
|
|
316
561
|
readonly dk1?: HexColor | undefined;
|
|
@@ -334,7 +579,7 @@ type ThemeOverride = {
|
|
|
334
579
|
} | undefined;
|
|
335
580
|
readonly formatScheme?: FormatScheme | undefined;
|
|
336
581
|
};
|
|
337
|
-
/** Native `<a:themeOverride>` partial override for a
|
|
582
|
+
/** Native `<a:themeOverride>` partial override for a layout, slide, or chart. */
|
|
338
583
|
declare const themeOverrideSchema: z.ZodType<ThemeOverride>;
|
|
339
584
|
type ThemeData = {
|
|
340
585
|
readonly name: string;
|
|
@@ -380,7 +625,7 @@ type ThemeContext = {
|
|
|
380
625
|
with(style?: TextStyle): ThemeContext;
|
|
381
626
|
/** Replaces the accumulated container text defaults while retaining the same theme and overrides. */
|
|
382
627
|
withTextStyle(style: TextStyle): ThemeContext;
|
|
383
|
-
/** Derives a child context applying native
|
|
628
|
+
/** Derives a child context applying native theme and color map overrides without mutating `theme`. */
|
|
384
629
|
withNativeOverrides(themeOverride?: ThemeOverride, colorMapOverride?: ColorMapOverride): ThemeContext;
|
|
385
630
|
resolveColor(value: ColorValue): ResolvedColor;
|
|
386
631
|
resolveFont(value: FontReference): ResolvedThemeFont;
|
|
@@ -398,85 +643,14 @@ declare function darker(slot: SchemeColorName, amount: number): ThemeShade;
|
|
|
398
643
|
/** Generate lighter variant in PowerPoint native palette. */
|
|
399
644
|
declare function lighter(slot: SchemeColorName, amount: number): ThemeShade;
|
|
400
645
|
declare function isNativeColorSlot(value: string): value is NativeColorSlot;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
type
|
|
404
|
-
type
|
|
405
|
-
readonly
|
|
406
|
-
readonly
|
|
407
|
-
|
|
408
|
-
readonly
|
|
409
|
-
readonly paddingLeft?: number | undefined;
|
|
410
|
-
};
|
|
411
|
-
/** Fixed canvas CSS layout subset; numeric lengths are interpreted in pixels. */
|
|
412
|
-
type LayoutStyle = {
|
|
413
|
-
readonly display?: "block" | "flex" | "grid" | "none" | undefined;
|
|
414
|
-
readonly position?: "static" | "relative" | "absolute" | undefined;
|
|
415
|
-
readonly inset?: LayoutLength | undefined;
|
|
416
|
-
readonly left?: LayoutLength | undefined;
|
|
417
|
-
readonly top?: LayoutLength | undefined;
|
|
418
|
-
readonly right?: LayoutLength | undefined;
|
|
419
|
-
readonly bottom?: LayoutLength | undefined;
|
|
420
|
-
readonly width?: LayoutLength | undefined;
|
|
421
|
-
readonly height?: LayoutLength | undefined;
|
|
422
|
-
readonly minWidth?: LayoutLength | undefined;
|
|
423
|
-
readonly minHeight?: LayoutLength | undefined;
|
|
424
|
-
readonly maxWidth?: LayoutLength | undefined;
|
|
425
|
-
readonly maxHeight?: LayoutLength | undefined;
|
|
426
|
-
readonly margin?: LayoutSpacing | undefined;
|
|
427
|
-
readonly marginTop?: number | undefined;
|
|
428
|
-
readonly marginRight?: number | undefined;
|
|
429
|
-
readonly marginBottom?: number | undefined;
|
|
430
|
-
readonly marginLeft?: number | undefined;
|
|
431
|
-
readonly padding?: NonNegativeLayoutSpacing | undefined;
|
|
432
|
-
readonly paddingTop?: number | undefined;
|
|
433
|
-
readonly paddingRight?: number | undefined;
|
|
434
|
-
readonly paddingBottom?: number | undefined;
|
|
435
|
-
readonly paddingLeft?: number | undefined;
|
|
436
|
-
readonly gap?: number | undefined;
|
|
437
|
-
readonly rowGap?: number | undefined;
|
|
438
|
-
readonly columnGap?: number | undefined;
|
|
439
|
-
readonly flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
440
|
-
readonly flexWrap?: "nowrap" | "wrap" | undefined;
|
|
441
|
-
readonly justifyContent?: "start" | "end" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
442
|
-
readonly alignItems?: "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | "baseline" | undefined;
|
|
443
|
-
readonly alignSelf?: "auto" | "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | "baseline" | undefined;
|
|
444
|
-
readonly alignContent?: "start" | "end" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
445
|
-
/**
|
|
446
|
-
* Non-negative flex shorthand (equivalent to `flexGrow: value, flexShrink: 1, flexBasis: 0`).
|
|
447
|
-
*
|
|
448
|
-
* Flex items default to automatic minimum content size (`minWidth: "auto"` / `minHeight: "auto"`).
|
|
449
|
-
* For equal-width columns regardless of inner content size, also set `minWidth: 0` or use CSS Grid
|
|
450
|
-
* (`gridTemplateColumns: "1fr 1fr"`).
|
|
451
|
-
*/
|
|
452
|
-
readonly flex?: number | undefined;
|
|
453
|
-
readonly flexGrow?: number | undefined;
|
|
454
|
-
readonly flexShrink?: number | undefined;
|
|
455
|
-
readonly flexBasis?: LayoutLength | undefined;
|
|
456
|
-
readonly aspectRatio?: number | undefined;
|
|
457
|
-
readonly gridTemplateColumns?: string | undefined;
|
|
458
|
-
readonly gridTemplateRows?: string | undefined;
|
|
459
|
-
/** Track sizes for implicit Grid rows, cycling in order like CSS `grid-auto-rows`; defaults to `auto`. */
|
|
460
|
-
readonly gridAutoRows?: string | undefined;
|
|
461
|
-
readonly gridColumn?: string | number | undefined;
|
|
462
|
-
readonly gridRow?: string | number | undefined;
|
|
463
|
-
readonly justifyItems?: "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | undefined;
|
|
464
|
-
readonly justifySelf?: "auto" | "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | undefined;
|
|
465
|
-
readonly zIndex?: number | undefined;
|
|
466
|
-
};
|
|
467
|
-
/** Fixed canvas length; numeric values are interpreted in pixels, percentages are evaluated against the parent layout region. */
|
|
468
|
-
declare const layoutLengthSchema: z.ZodType<LayoutLength>;
|
|
469
|
-
declare const layoutSpacingSchema: z.ZodType<LayoutSpacing>;
|
|
470
|
-
declare const paddingStyleSchema: z.ZodType<PaddingStyle>;
|
|
471
|
-
declare const layoutStyleSchema: z.ZodType<LayoutStyle>;
|
|
472
|
-
/** Complete DrawingML preset geometry list from ECMA-376 ST_ShapeType (187 shapes). */
|
|
473
|
-
declare const presetGeometryTuple: readonly ["line", "lineInv", "triangle", "rtTriangle", "rect", "diamond", "parallelogram", "trapezoid", "nonIsoscelesTrapezoid", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32", "roundRect", "round1Rect", "round2SameRect", "round2DiagRect", "snipRoundRect", "snip1Rect", "snip2SameRect", "snip2DiagRect", "plaque", "ellipse", "teardrop", "homePlate", "chevron", "pieWedge", "pie", "blockArc", "donut", "noSmoking", "rightArrow", "leftArrow", "upArrow", "downArrow", "stripedRightArrow", "notchedRightArrow", "bentUpArrow", "leftRightArrow", "upDownArrow", "leftUpArrow", "leftRightUpArrow", "quadArrow", "leftArrowCallout", "rightArrowCallout", "upArrowCallout", "downArrowCallout", "leftRightArrowCallout", "upDownArrowCallout", "quadArrowCallout", "bentArrow", "uturnArrow", "circularArrow", "leftCircularArrow", "leftRightCircularArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "swooshArrow", "cube", "can", "lightningBolt", "heart", "sun", "moon", "smileyFace", "irregularSeal1", "irregularSeal2", "foldedCorner", "bevel", "frame", "halfFrame", "corner", "diagStripe", "chord", "arc", "leftBracket", "rightBracket", "leftBrace", "rightBrace", "bracketPair", "bracePair", "straightConnector1", "bentConnector2", "bentConnector3", "bentConnector4", "bentConnector5", "curvedConnector2", "curvedConnector3", "curvedConnector4", "curvedConnector5", "callout1", "callout2", "callout3", "accentCallout1", "accentCallout2", "accentCallout3", "borderCallout1", "borderCallout2", "borderCallout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3", "wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "cloud", "ribbon", "ribbon2", "ellipseRibbon", "ellipseRibbon2", "leftRightRibbon", "verticalScroll", "horizontalScroll", "wave", "doubleWave", "plus", "flowChartProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOfflineStorage", "flowChartOnlineStorage", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay", "flowChartDelay", "flowChartAlternateProcess", "flowChartOffpageConnector", "actionButtonBlank", "actionButtonHome", "actionButtonHelp", "actionButtonInformation", "actionButtonForwardNext", "actionButtonBackPrevious", "actionButtonEnd", "actionButtonBeginning", "actionButtonReturn", "actionButtonDocument", "actionButtonSound", "actionButtonMovie", "gear6", "gear9", "funnel", "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "cornerTabs", "squareTabs", "plaqueTabs", "chartX", "chartStar", "chartPlus"];
|
|
474
|
-
type PresetGeometryName = (typeof presetGeometryTuple)[number];
|
|
475
|
-
type PresetGeometry = {
|
|
476
|
-
readonly type: "preset";
|
|
477
|
-
readonly name: PresetGeometryName;
|
|
478
|
-
/** Raw DrawingML adjust values indexed by guide name (adj, adj1, adj2, etc.). */
|
|
479
|
-
readonly adjust?: Readonly<Record<string, number>> | undefined;
|
|
646
|
+
/** Complete DrawingML preset geometry list from ECMA-376 ST_ShapeType (187 shapes). */
|
|
647
|
+
declare const presetGeometryTuple: readonly ["line", "lineInv", "triangle", "rtTriangle", "rect", "diamond", "parallelogram", "trapezoid", "nonIsoscelesTrapezoid", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32", "roundRect", "round1Rect", "round2SameRect", "round2DiagRect", "snipRoundRect", "snip1Rect", "snip2SameRect", "snip2DiagRect", "plaque", "ellipse", "teardrop", "homePlate", "chevron", "pieWedge", "pie", "blockArc", "donut", "noSmoking", "rightArrow", "leftArrow", "upArrow", "downArrow", "stripedRightArrow", "notchedRightArrow", "bentUpArrow", "leftRightArrow", "upDownArrow", "leftUpArrow", "leftRightUpArrow", "quadArrow", "leftArrowCallout", "rightArrowCallout", "upArrowCallout", "downArrowCallout", "leftRightArrowCallout", "upDownArrowCallout", "quadArrowCallout", "bentArrow", "uturnArrow", "circularArrow", "leftCircularArrow", "leftRightCircularArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "swooshArrow", "cube", "can", "lightningBolt", "heart", "sun", "moon", "smileyFace", "irregularSeal1", "irregularSeal2", "foldedCorner", "bevel", "frame", "halfFrame", "corner", "diagStripe", "chord", "arc", "leftBracket", "rightBracket", "leftBrace", "rightBrace", "bracketPair", "bracePair", "straightConnector1", "bentConnector2", "bentConnector3", "bentConnector4", "bentConnector5", "curvedConnector2", "curvedConnector3", "curvedConnector4", "curvedConnector5", "callout1", "callout2", "callout3", "accentCallout1", "accentCallout2", "accentCallout3", "borderCallout1", "borderCallout2", "borderCallout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3", "wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "cloud", "ribbon", "ribbon2", "ellipseRibbon", "ellipseRibbon2", "leftRightRibbon", "verticalScroll", "horizontalScroll", "wave", "doubleWave", "plus", "flowChartProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOfflineStorage", "flowChartOnlineStorage", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay", "flowChartDelay", "flowChartAlternateProcess", "flowChartOffpageConnector", "actionButtonBlank", "actionButtonHome", "actionButtonHelp", "actionButtonInformation", "actionButtonForwardNext", "actionButtonBackPrevious", "actionButtonEnd", "actionButtonBeginning", "actionButtonReturn", "actionButtonDocument", "actionButtonSound", "actionButtonMovie", "gear6", "gear9", "funnel", "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "cornerTabs", "squareTabs", "plaqueTabs", "chartX", "chartStar", "chartPlus"];
|
|
648
|
+
type PresetGeometryName = (typeof presetGeometryTuple)[number];
|
|
649
|
+
type PresetGeometry = {
|
|
650
|
+
readonly type: "preset";
|
|
651
|
+
readonly name: PresetGeometryName;
|
|
652
|
+
/** Raw DrawingML adjust values indexed by guide name (adj, adj1, adj2, etc.). */
|
|
653
|
+
readonly adjust?: Readonly<Record<string, number>> | undefined;
|
|
480
654
|
};
|
|
481
655
|
type PathCommand = {
|
|
482
656
|
readonly op: "M";
|
|
@@ -520,395 +694,158 @@ type CustomGeometry = {
|
|
|
520
694
|
}[] | undefined;
|
|
521
695
|
};
|
|
522
696
|
type Geometry = PresetGeometryName | PresetGeometry | CustomGeometry;
|
|
523
|
-
type
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
readonly
|
|
529
|
-
readonly
|
|
530
|
-
readonly
|
|
531
|
-
readonly
|
|
697
|
+
type LayoutLength = number | `${number}%` | "auto";
|
|
698
|
+
type LayoutSpacing = number | readonly [number, number] | readonly [number, number, number, number];
|
|
699
|
+
type NonNegativeLayoutSpacing = number | readonly [number, number] | readonly [number, number, number, number];
|
|
700
|
+
type PaddingStyle = {
|
|
701
|
+
readonly padding?: NonNegativeLayoutSpacing | undefined;
|
|
702
|
+
readonly paddingTop?: number | undefined;
|
|
703
|
+
readonly paddingRight?: number | undefined;
|
|
704
|
+
readonly paddingBottom?: number | undefined;
|
|
705
|
+
readonly paddingLeft?: number | undefined;
|
|
532
706
|
};
|
|
533
|
-
|
|
534
|
-
type
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
readonly
|
|
707
|
+
/** Fixed canvas CSS layout subset; numeric lengths are interpreted in pixels. */
|
|
708
|
+
type LayoutStyle = {
|
|
709
|
+
readonly display?: "block" | "flex" | "grid" | "none" | undefined;
|
|
710
|
+
readonly position?: "static" | "relative" | "absolute" | undefined;
|
|
711
|
+
readonly inset?: LayoutLength | undefined;
|
|
712
|
+
readonly left?: LayoutLength | undefined;
|
|
713
|
+
readonly top?: LayoutLength | undefined;
|
|
714
|
+
readonly right?: LayoutLength | undefined;
|
|
715
|
+
readonly bottom?: LayoutLength | undefined;
|
|
716
|
+
readonly width?: LayoutLength | undefined;
|
|
717
|
+
readonly height?: LayoutLength | undefined;
|
|
718
|
+
readonly minWidth?: LayoutLength | undefined;
|
|
719
|
+
readonly minHeight?: LayoutLength | undefined;
|
|
720
|
+
readonly maxWidth?: LayoutLength | undefined;
|
|
721
|
+
readonly maxHeight?: LayoutLength | undefined;
|
|
722
|
+
readonly margin?: LayoutSpacing | undefined;
|
|
723
|
+
readonly marginTop?: number | undefined;
|
|
724
|
+
readonly marginRight?: number | undefined;
|
|
725
|
+
readonly marginBottom?: number | undefined;
|
|
543
726
|
readonly marginLeft?: number | undefined;
|
|
544
|
-
readonly
|
|
545
|
-
readonly
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
readonly
|
|
549
|
-
readonly
|
|
550
|
-
readonly
|
|
551
|
-
readonly
|
|
552
|
-
readonly
|
|
553
|
-
readonly
|
|
554
|
-
readonly
|
|
555
|
-
readonly
|
|
556
|
-
readonly
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
readonly
|
|
566
|
-
readonly
|
|
567
|
-
readonly
|
|
568
|
-
readonly
|
|
569
|
-
readonly
|
|
570
|
-
readonly
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
readonly
|
|
578
|
-
readonly
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
readonly
|
|
587
|
-
readonly
|
|
588
|
-
|
|
589
|
-
type PlaceholderResolutionContext = {
|
|
590
|
-
readonly key?: string;
|
|
591
|
-
readonly nativeRef: NativePlaceholderRef;
|
|
592
|
-
readonly masterTheme: ThemeContext;
|
|
593
|
-
readonly masterTextStyles?: MasterTextStyles;
|
|
594
|
-
readonly masterPlaceholder?: MasterPlaceholderSpec;
|
|
595
|
-
readonly layoutPlaceholder?: LayoutPlaceholderSpec;
|
|
596
|
-
readonly slideDimensions?: {
|
|
597
|
-
readonly width: number;
|
|
598
|
-
readonly height: number;
|
|
599
|
-
};
|
|
600
|
-
};
|
|
601
|
-
/** DrawingML `<p:bgRef idx="1001..1003">` reference resolved against `Theme.formatScheme.bgFillStyles`. */
|
|
602
|
-
type BackgroundRef = {
|
|
603
|
-
readonly ref: 1001 | 1002 | 1003;
|
|
604
|
-
readonly color?: ColorValue | undefined;
|
|
605
|
-
};
|
|
606
|
-
/** DrawingML `<p:bgRef idx="1001..1003">` reference resolved against `Theme.formatScheme.bgFillStyles`. */
|
|
607
|
-
declare const backgroundRefSchema: z.ZodType<BackgroundRef>;
|
|
608
|
-
/** Slide background can use theme colors, gradients supported by the shared visual writer, formal image resource inputs, `"none"`, or theme background fill references (`p:bgRef`). */
|
|
609
|
-
type SlideBackground = BackgroundValue | BackgroundRef;
|
|
610
|
-
/** Slide background can use theme colors, gradients supported by the shared visual writer, formal image resource inputs, `"none"`, or theme background fill references (`p:bgRef`). */
|
|
611
|
-
declare const slideBackgroundSchema: z.ZodType<SlideBackground>;
|
|
612
|
-
/** Root deck properties defining slide canvas dimensions in pixels (`1280 × 720` default), theme, default text style, and presentation title. */
|
|
613
|
-
type DeckProps = {
|
|
614
|
-
/** Slide canvas width in CSS pixels (`px`); defaults to `1280` (16:9 widescreen) when omitted. */
|
|
615
|
-
readonly width?: number | undefined;
|
|
616
|
-
/** Slide canvas height in CSS pixels (`px`); defaults to `720` (16:9 widescreen) when omitted. */
|
|
617
|
-
readonly height?: number | undefined;
|
|
618
|
-
/** Deck-level theme definition or inline theme input inherited by slides unless overridden. */
|
|
619
|
-
readonly theme?: ThemeInput | Theme | undefined;
|
|
620
|
-
/** Inherited root text style applied across slides unless overridden. */
|
|
621
|
-
readonly style?: TextStyle | undefined;
|
|
622
|
-
/** Presentation metadata title written to core document properties. */
|
|
623
|
-
readonly title?: string | undefined;
|
|
624
|
-
};
|
|
625
|
-
declare const deckPropsSchema: z.ZodType<DeckProps>;
|
|
626
|
-
type SlideStyle = TextStyle & Omit<LayoutStyle, "zIndex"> & {
|
|
627
|
-
readonly background?: SlideBackground | undefined;
|
|
628
|
-
};
|
|
629
|
-
/** Footer placeholder slot style combining inherited text styles and LayoutStyle placement. */
|
|
630
|
-
type FooterPlaceholderStyle = TextStyle & LayoutStyle;
|
|
631
|
-
/** Per-slide dateTime/footer override declaration (`false` hides; string sets text; object overrides text/style/slot). */
|
|
632
|
-
type SlideFooterValue = boolean | string | {
|
|
633
|
-
readonly text?: string | undefined;
|
|
634
|
-
readonly style?: FooterPlaceholderStyle | undefined;
|
|
635
|
-
readonly idx?: number | undefined;
|
|
636
|
-
readonly size?: PlaceholderSize | undefined;
|
|
637
|
-
readonly visible?: boolean | undefined;
|
|
638
|
-
};
|
|
639
|
-
/** Per-slide dateTime/footer override declaration (`false` hides; string sets text; object overrides text/style/slot). */
|
|
640
|
-
declare const slideFooterValueSchema: z.ZodType<SlideFooterValue>;
|
|
641
|
-
/** Per-slide slide-number override declaration (`false` hides; `true` enables; object overrides style/slot). */
|
|
642
|
-
type SlideNumberValue = boolean | {
|
|
643
|
-
readonly style?: FooterPlaceholderStyle | undefined;
|
|
644
|
-
readonly idx?: number | undefined;
|
|
645
|
-
readonly size?: PlaceholderSize | undefined;
|
|
646
|
-
readonly visible?: boolean | undefined;
|
|
647
|
-
};
|
|
648
|
-
/** Per-slide slide-number override declaration (`false` hides; `true` enables; object overrides style/slot). */
|
|
649
|
-
declare const slideNumberValueSchema: z.ZodType<SlideNumberValue>;
|
|
650
|
-
type SlideProps = {
|
|
651
|
-
/** Page author id; unique within the deck and written as the stable slide identifier. */
|
|
652
|
-
readonly id: AuthorId;
|
|
653
|
-
/** Optional PowerPoint display name written to `<p:cSld name="...">` without altering the stable `id`. */
|
|
654
|
-
readonly name?: string | undefined;
|
|
655
|
-
readonly layout?: unknown;
|
|
656
|
-
readonly colorMapOverride?: ColorMapOverride | undefined;
|
|
657
|
-
readonly themeOverride?: ThemeOverride | undefined;
|
|
658
|
-
readonly style?: SlideStyle | undefined;
|
|
659
|
-
readonly hidden?: boolean | undefined;
|
|
660
|
-
readonly showMasterPlaceholderAnimations?: boolean | undefined;
|
|
661
|
-
readonly showMasterShapes?: boolean | undefined;
|
|
662
|
-
readonly transition?: unknown;
|
|
663
|
-
readonly advanceAfter?: number | undefined;
|
|
664
|
-
readonly background?: SlideBackground | undefined;
|
|
665
|
-
readonly dateTime?: SlideFooterValue | undefined;
|
|
666
|
-
readonly footer?: SlideFooterValue | undefined;
|
|
667
|
-
readonly slideNumber?: SlideNumberValue | undefined;
|
|
668
|
-
};
|
|
669
|
-
declare const slidePropsSchema: z.ZodType<SlideProps>;
|
|
670
|
-
/**
|
|
671
|
-
* Organizes contiguous child slides into a named native PowerPoint section.
|
|
672
|
-
*
|
|
673
|
-
* Emitted via the Office 2010 `p14:sectionLst` presentation extension
|
|
674
|
-
* (subject to target extension policy under Strict OOXML).
|
|
675
|
-
*/
|
|
676
|
-
type SectionProps = {
|
|
677
|
-
/** Non-empty section title shown in PowerPoint's slide sorter and outline. */
|
|
678
|
-
readonly name: string;
|
|
679
|
-
};
|
|
680
|
-
/** Organizes slides into collapsible flat sections in PowerPoint. */
|
|
681
|
-
declare const sectionPropsSchema: z.ZodType<SectionProps>;
|
|
682
|
-
/** Target declaration interpreted by PowerPoint upon clicking an object; internal targets are resolved by page author id. */
|
|
683
|
-
type LinkTarget = {
|
|
684
|
-
readonly id: string;
|
|
685
|
-
} | {
|
|
686
|
-
readonly url: string;
|
|
687
|
-
} | {
|
|
688
|
-
readonly action: "home";
|
|
689
|
-
};
|
|
690
|
-
/** Target declaration interpreted by PowerPoint upon clicking an object; internal targets are resolved by page author id. */
|
|
691
|
-
declare const linkTargetSchema: z.ZodType<LinkTarget>;
|
|
692
|
-
declare const formatBaseline: "ECMA-376 5th edition Transitional";
|
|
693
|
-
declare const formatBaselineSchema: z.ZodType<typeof formatBaseline>;
|
|
694
|
-
type Extension = "p14" | "p159" | "c15";
|
|
695
|
-
declare const extensionSchema: z.ZodType<Extension>;
|
|
696
|
-
type FontEmbeddingMode = "full" | "subset";
|
|
697
|
-
declare const fontEmbeddingModeSchema: z.ZodType<FontEmbeddingMode>;
|
|
698
|
-
declare const targets: Readonly<{
|
|
699
|
-
transitional: Readonly<{
|
|
700
|
-
name: "transitional";
|
|
701
|
-
format: "ECMA-376 5th edition Transitional";
|
|
702
|
-
extensions: readonly ["p14", "p159", "c15"];
|
|
703
|
-
}>;
|
|
704
|
-
baselineOnly: Readonly<{
|
|
705
|
-
name: "baseline-only";
|
|
706
|
-
format: "ECMA-376 5th edition Transitional";
|
|
707
|
-
extensions: readonly [];
|
|
708
|
-
}>;
|
|
709
|
-
}>;
|
|
710
|
-
type TargetName = "transitional" | "baseline-only";
|
|
711
|
-
declare const targetNameSchema: z.ZodType<TargetName>;
|
|
712
|
-
type Target = {
|
|
713
|
-
readonly name: string;
|
|
714
|
-
readonly format: typeof formatBaseline;
|
|
715
|
-
readonly extensions: readonly Extension[];
|
|
716
|
-
};
|
|
717
|
-
declare const targetSchema: z.ZodType<Target>;
|
|
718
|
-
type ResolveOptions = {
|
|
719
|
-
readonly signal?: AbortSignal | undefined;
|
|
720
|
-
};
|
|
721
|
-
declare const resolveOptionsSchema: z.ZodType<ResolveOptions>;
|
|
722
|
-
type BuildOptions = {
|
|
723
|
-
/** Explicitly request embedding full files or character subsets of fonts actually used by the deck; no embedding by default. */
|
|
724
|
-
readonly embedFonts?: FontEmbeddingMode | undefined;
|
|
725
|
-
readonly target?: Target | undefined;
|
|
726
|
-
/**
|
|
727
|
-
* Cooperative cancellation signal for a single build; no default timeout when unspecified.
|
|
728
|
-
* Completion, unhandled errors, and cancellation follow the first established terminal state; cancelling after completion does not alter the result.
|
|
729
|
-
*/
|
|
730
|
-
readonly signal?: AbortSignal | undefined;
|
|
731
|
-
};
|
|
732
|
-
type EmitOptions = BuildOptions;
|
|
733
|
-
declare const buildOptionsSchema: z.ZodType<BuildOptions>;
|
|
734
|
-
declare const emitOptionsSchema: z.ZodType<EmitOptions>;
|
|
735
|
-
type BuildDiagnosticFontUnavailableReason = "missing-resource" | "missing-face" | "family-mismatch" | "style-mismatch" | "substitute-required" | "unsupported-format" | "invalid-metrics" | "not-embeddable" | "license-restricted" | "subsetting-forbidden" | "subsetting-failed";
|
|
736
|
-
declare const buildDiagnosticFontUnavailableReasonSchema: z.ZodType<BuildDiagnosticFontUnavailableReason>;
|
|
737
|
-
type BuildDiagnostic = {
|
|
738
|
-
code: "invalid-options";
|
|
739
|
-
path: string;
|
|
740
|
-
message: string;
|
|
741
|
-
field?: string | undefined;
|
|
742
|
-
expected?: string | undefined;
|
|
743
|
-
} | {
|
|
744
|
-
code: "unknown-prop";
|
|
745
|
-
path: string;
|
|
746
|
-
message: string;
|
|
747
|
-
field?: string | undefined;
|
|
748
|
-
prop: string;
|
|
749
|
-
scope?: "props" | "style" | "options" | undefined;
|
|
750
|
-
} | {
|
|
751
|
-
code: "invalid-prop";
|
|
752
|
-
path: string;
|
|
753
|
-
message: string;
|
|
754
|
-
field?: string | undefined;
|
|
755
|
-
expected?: string | undefined;
|
|
756
|
-
} | {
|
|
757
|
-
code: "invalid-style";
|
|
758
|
-
path: string;
|
|
759
|
-
message: string;
|
|
760
|
-
field?: string | undefined;
|
|
761
|
-
expected?: string | undefined;
|
|
762
|
-
} | {
|
|
763
|
-
code: "invalid-structure";
|
|
764
|
-
path: string;
|
|
765
|
-
message: string;
|
|
766
|
-
field?: string | undefined;
|
|
767
|
-
expected?: string | undefined;
|
|
768
|
-
conflictPath?: string | undefined;
|
|
769
|
-
} | {
|
|
770
|
-
code: "duplicate-id";
|
|
771
|
-
path: string;
|
|
772
|
-
message: string;
|
|
773
|
-
field?: string | undefined;
|
|
774
|
-
identifier?: string | undefined;
|
|
775
|
-
conflictPath?: string | undefined;
|
|
776
|
-
} | {
|
|
777
|
-
code: "broken-reference";
|
|
778
|
-
path: string;
|
|
779
|
-
message: string;
|
|
780
|
-
field?: string | undefined;
|
|
781
|
-
reference?: string | undefined;
|
|
782
|
-
targetKind?: "slide" | "layout" | "placeholder" | "object" | "cue" | "scope" | "part" | "resource" | "axis" | undefined;
|
|
783
|
-
} | {
|
|
784
|
-
code: "invalid-continuity";
|
|
785
|
-
path: string;
|
|
786
|
-
message: string;
|
|
787
|
-
field?: string | undefined;
|
|
788
|
-
reason?: "inside-group" | "on-master" | "needs-object" | "unsupported-object" | "kind-mismatch" | "name-conflict" | undefined;
|
|
789
|
-
conflictPath?: string | undefined;
|
|
790
|
-
} | {
|
|
791
|
-
code: "missing-capability";
|
|
792
|
-
path: string;
|
|
793
|
-
message: string;
|
|
794
|
-
field?: string | undefined;
|
|
795
|
-
capability: string;
|
|
796
|
-
} | {
|
|
797
|
-
code: "font-unavailable";
|
|
798
|
-
path: string;
|
|
799
|
-
message: string;
|
|
800
|
-
field?: string | undefined;
|
|
801
|
-
font: {
|
|
802
|
-
family: string;
|
|
803
|
-
weight?: number | undefined;
|
|
804
|
-
style?: "normal" | "italic" | undefined;
|
|
805
|
-
};
|
|
806
|
-
reason: BuildDiagnosticFontUnavailableReason;
|
|
807
|
-
} | {
|
|
808
|
-
code: "font-missing-glyph";
|
|
809
|
-
path: string;
|
|
810
|
-
message: string;
|
|
811
|
-
field?: string | undefined;
|
|
812
|
-
font: {
|
|
813
|
-
family: string;
|
|
814
|
-
weight: number;
|
|
815
|
-
style: "normal" | "italic";
|
|
816
|
-
};
|
|
817
|
-
characters: readonly string[];
|
|
818
|
-
} | {
|
|
819
|
-
code: "invalid-resource";
|
|
820
|
-
path: string;
|
|
821
|
-
message: string;
|
|
822
|
-
field?: string | undefined;
|
|
823
|
-
resourceKind: "image" | "part" | "capability";
|
|
824
|
-
} | {
|
|
825
|
-
code: "target-violation";
|
|
826
|
-
path: string;
|
|
827
|
-
message: string;
|
|
828
|
-
field?: string | undefined;
|
|
829
|
-
target: string;
|
|
830
|
-
extension?: string | undefined;
|
|
831
|
-
mechanism?: string | undefined;
|
|
832
|
-
} | {
|
|
833
|
-
code: "render-failed";
|
|
834
|
-
path: string;
|
|
835
|
-
message: string;
|
|
836
|
-
field?: string | undefined;
|
|
837
|
-
phase: "expand" | "append";
|
|
838
|
-
};
|
|
839
|
-
/** Typed resolve/emit/expand failure diagnostic discriminated by `code`. */
|
|
840
|
-
declare const buildDiagnosticSchema: z.ZodType<BuildDiagnostic>;
|
|
841
|
-
type PreviewError = {
|
|
842
|
-
code: "preview-missing-font";
|
|
843
|
-
path: string;
|
|
844
|
-
field?: string | undefined;
|
|
845
|
-
message: string;
|
|
846
|
-
font: {
|
|
847
|
-
family: string;
|
|
848
|
-
weight: number;
|
|
849
|
-
style: "normal" | "italic";
|
|
850
|
-
};
|
|
851
|
-
} | {
|
|
852
|
-
code: "preview-unsupported-font";
|
|
853
|
-
path: string;
|
|
854
|
-
field?: string | undefined;
|
|
855
|
-
message: string;
|
|
856
|
-
font: {
|
|
857
|
-
family: string;
|
|
858
|
-
weight?: number | undefined;
|
|
859
|
-
style?: "normal" | "italic" | undefined;
|
|
860
|
-
};
|
|
861
|
-
reason?: string | undefined;
|
|
862
|
-
} | {
|
|
863
|
-
code: "preview-missing-glyph";
|
|
864
|
-
path: string;
|
|
865
|
-
field?: string | undefined;
|
|
866
|
-
message: string;
|
|
867
|
-
font: {
|
|
868
|
-
family: string;
|
|
869
|
-
weight: number;
|
|
870
|
-
style: "normal" | "italic";
|
|
871
|
-
};
|
|
872
|
-
characters: readonly string[];
|
|
873
|
-
} | {
|
|
874
|
-
code: "preview-corrupt-image";
|
|
875
|
-
path: string;
|
|
876
|
-
field?: string | undefined;
|
|
877
|
-
message: string;
|
|
878
|
-
format?: "png" | "jpeg" | "gif" | undefined;
|
|
727
|
+
readonly padding?: NonNegativeLayoutSpacing | undefined;
|
|
728
|
+
readonly paddingTop?: number | undefined;
|
|
729
|
+
readonly paddingRight?: number | undefined;
|
|
730
|
+
readonly paddingBottom?: number | undefined;
|
|
731
|
+
readonly paddingLeft?: number | undefined;
|
|
732
|
+
readonly gap?: number | undefined;
|
|
733
|
+
readonly rowGap?: number | undefined;
|
|
734
|
+
readonly columnGap?: number | undefined;
|
|
735
|
+
readonly flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
736
|
+
readonly flexWrap?: "nowrap" | "wrap" | undefined;
|
|
737
|
+
readonly justifyContent?: "start" | "end" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
738
|
+
readonly alignItems?: "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | "baseline" | undefined;
|
|
739
|
+
readonly alignSelf?: "auto" | "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | "baseline" | undefined;
|
|
740
|
+
readonly alignContent?: "start" | "end" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
741
|
+
/**
|
|
742
|
+
* Non-negative flex shorthand (equivalent to `flexGrow: value, flexShrink: 1, flexBasis: 0`).
|
|
743
|
+
*
|
|
744
|
+
* Flex items default to automatic minimum content size (`minWidth: "auto"` / `minHeight: "auto"`).
|
|
745
|
+
* For equal-width columns regardless of inner content size, also set `minWidth: 0` or use CSS Grid
|
|
746
|
+
* (`gridTemplateColumns: "1fr 1fr"`).
|
|
747
|
+
*/
|
|
748
|
+
readonly flex?: number | undefined;
|
|
749
|
+
readonly flexGrow?: number | undefined;
|
|
750
|
+
readonly flexShrink?: number | undefined;
|
|
751
|
+
readonly flexBasis?: LayoutLength | undefined;
|
|
752
|
+
readonly aspectRatio?: number | undefined;
|
|
753
|
+
readonly gridTemplateColumns?: string | undefined;
|
|
754
|
+
readonly gridTemplateRows?: string | undefined;
|
|
755
|
+
/** Track sizes for implicit Grid rows, cycling in order like CSS `grid-auto-rows`; defaults to `auto`. */
|
|
756
|
+
readonly gridAutoRows?: string | undefined;
|
|
757
|
+
readonly gridColumn?: string | number | undefined;
|
|
758
|
+
readonly gridRow?: string | number | undefined;
|
|
759
|
+
readonly justifyItems?: "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | undefined;
|
|
760
|
+
readonly justifySelf?: "auto" | "start" | "end" | "center" | "stretch" | "flex-start" | "flex-end" | undefined;
|
|
761
|
+
readonly zIndex?: number | undefined;
|
|
762
|
+
};
|
|
763
|
+
/** Fixed canvas length; numeric values are interpreted in pixels, percentages are evaluated against the parent layout region. */
|
|
764
|
+
declare const layoutLengthSchema: z.ZodType<LayoutLength>;
|
|
765
|
+
declare const layoutSpacingSchema: z.ZodType<LayoutSpacing>;
|
|
766
|
+
declare const paddingStyleSchema: z.ZodType<PaddingStyle>;
|
|
767
|
+
declare const layoutStyleSchema: z.ZodType<LayoutStyle>;
|
|
768
|
+
type TextList = {
|
|
769
|
+
readonly type: "bullet";
|
|
770
|
+
readonly character?: string | undefined;
|
|
771
|
+
readonly level?: number | undefined;
|
|
879
772
|
} | {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
capability: string;
|
|
773
|
+
readonly type: "number";
|
|
774
|
+
readonly style?: "arabicPeriod" | undefined;
|
|
775
|
+
readonly startAt?: number | undefined;
|
|
776
|
+
readonly level?: number | undefined;
|
|
885
777
|
};
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
778
|
+
declare const textPlaceholderRoles: readonly ["title", "ctrTitle", "subTitle", "body", "dt", "ftr", "hdr"];
|
|
779
|
+
type TextPlaceholderRole = (typeof textPlaceholderRoles)[number];
|
|
780
|
+
declare const contentPlaceholderRoles: readonly ["title", "ctrTitle", "subTitle", "body", "dt", "ftr", "hdr", "pic", "clipArt", "tbl", "chart", "content", "obj", "sldNum", "dgm", "media"];
|
|
781
|
+
/** Placeholder roles. `content` leaves the OOXML `type` attribute absent and `obj` writes it explicitly. */
|
|
782
|
+
type ContentPlaceholderRole = (typeof contentPlaceholderRoles)[number];
|
|
783
|
+
type PlaceholderSize = "full" | "half" | "quarter";
|
|
784
|
+
/** Official OOXML ST_PlaceholderSize values for placeholder slots. */
|
|
785
|
+
declare const placeholderSizeSchema: z.ZodType<PlaceholderSize>;
|
|
786
|
+
type PlaceholderOrient = "horz" | "vert";
|
|
787
|
+
type PlaceholderLevelStyle = TextStyle & {
|
|
788
|
+
readonly list?: TextList | undefined;
|
|
789
|
+
readonly marginLeft?: number | undefined;
|
|
790
|
+
readonly indent?: number | undefined;
|
|
791
|
+
readonly spacingBefore?: number | undefined;
|
|
892
792
|
};
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
readonly
|
|
898
|
-
readonly
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
readonly
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
readonly
|
|
907
|
-
readonly
|
|
908
|
-
readonly
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
793
|
+
type PlaceholderListStyles = {
|
|
794
|
+
readonly 1?: PlaceholderLevelStyle | undefined;
|
|
795
|
+
readonly 2?: PlaceholderLevelStyle | undefined;
|
|
796
|
+
readonly 3?: PlaceholderLevelStyle | undefined;
|
|
797
|
+
readonly 4?: PlaceholderLevelStyle | undefined;
|
|
798
|
+
readonly 5?: PlaceholderLevelStyle | undefined;
|
|
799
|
+
readonly 6?: PlaceholderLevelStyle | undefined;
|
|
800
|
+
readonly 7?: PlaceholderLevelStyle | undefined;
|
|
801
|
+
readonly 8?: PlaceholderLevelStyle | undefined;
|
|
802
|
+
readonly 9?: PlaceholderLevelStyle | undefined;
|
|
803
|
+
};
|
|
804
|
+
type PlaceholderStyle = LayoutStyle & PaddingStyle & TextStyle & VisualStyle;
|
|
805
|
+
type LayoutPlaceholderSpec<Role extends ContentPlaceholderRole = ContentPlaceholderRole> = {
|
|
806
|
+
readonly type: Role;
|
|
807
|
+
readonly idx?: number | undefined;
|
|
808
|
+
readonly size?: PlaceholderSize | undefined;
|
|
809
|
+
readonly orient?: PlaceholderOrient | undefined;
|
|
810
|
+
readonly hasCustomPrompt?: boolean | undefined;
|
|
811
|
+
readonly name?: string | undefined;
|
|
812
|
+
readonly geometry?: Geometry | undefined;
|
|
813
|
+
readonly style?: PlaceholderStyle | undefined;
|
|
814
|
+
readonly listStyles?: PlaceholderListStyles | undefined;
|
|
815
|
+
readonly promptText?: string | undefined;
|
|
816
|
+
};
|
|
817
|
+
type MasterPlaceholderSpec = LayoutPlaceholderSpec;
|
|
818
|
+
type PlaceholderMap = Readonly<Record<string, LayoutPlaceholderSpec>>;
|
|
819
|
+
type EmptyPlaceholderMap = Readonly<Record<never, LayoutPlaceholderSpec>>;
|
|
820
|
+
type MasterPlaceholderMap = Readonly<Record<string, MasterPlaceholderSpec>>;
|
|
821
|
+
type MasterTextStyles = {
|
|
822
|
+
readonly titleStyle?: PlaceholderListStyles | undefined;
|
|
823
|
+
readonly bodyStyle?: PlaceholderListStyles | undefined;
|
|
824
|
+
readonly otherStyle?: PlaceholderListStyles | undefined;
|
|
825
|
+
};
|
|
826
|
+
type NativePlaceholderRef = {
|
|
827
|
+
readonly type: ContentPlaceholderRole;
|
|
828
|
+
readonly idx?: number | undefined;
|
|
829
|
+
readonly size?: PlaceholderSize | undefined;
|
|
830
|
+
readonly orient?: PlaceholderOrient | undefined;
|
|
831
|
+
readonly hasCustomPrompt?: boolean | undefined;
|
|
832
|
+
};
|
|
833
|
+
type PlaceholderResolutionContext = {
|
|
834
|
+
readonly key?: string;
|
|
835
|
+
readonly nativeRef: NativePlaceholderRef;
|
|
836
|
+
readonly masterTheme: ThemeContext;
|
|
837
|
+
readonly masterTextStyles?: MasterTextStyles;
|
|
838
|
+
readonly masterPlaceholder?: MasterPlaceholderSpec;
|
|
839
|
+
readonly layoutPlaceholder?: LayoutPlaceholderSpec;
|
|
840
|
+
readonly slideDimensions?: {
|
|
841
|
+
readonly width: number;
|
|
842
|
+
readonly height: number;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
declare const slideLayoutDefinitionSymbol: unique symbol;
|
|
846
|
+
type ContainerScope = "deck" | "master" | "layout" | "slide";
|
|
847
|
+
/** Author property paths provided by a capability at each container level. */
|
|
848
|
+
type ContainerSlots = Readonly<Partial<Record<ContainerScope, readonly string[]>>>;
|
|
912
849
|
/**
|
|
913
850
|
* Directional contract for a native PresentationML canvas mechanism.
|
|
914
851
|
* Every canvas mechanism must declare production emit, paint, and import directions.
|
|
@@ -961,6 +898,25 @@ type MorphScope = {
|
|
|
961
898
|
*/
|
|
962
899
|
declare function createMorphScope(): MorphScope;
|
|
963
900
|
declare function isMorphKey(value: unknown): value is MorphKey;
|
|
901
|
+
type TimingIds = {
|
|
902
|
+
take(): number;
|
|
903
|
+
/** Allocated only when a contributor needs to reference the main sequence. */
|
|
904
|
+
readonly mainSequenceId: number;
|
|
905
|
+
};
|
|
906
|
+
type TimingBranches = {
|
|
907
|
+
readonly rootChildren?: readonly string[];
|
|
908
|
+
/** Requests a main sequence even when there are no authored click steps. */
|
|
909
|
+
readonly requiresMainSequence?: boolean;
|
|
910
|
+
readonly mainSequenceSteps?: readonly string[];
|
|
911
|
+
/** Standalone effects to run at slide entry, before the first user click. */
|
|
912
|
+
readonly startupEffects?: readonly string[];
|
|
913
|
+
readonly buildList?: readonly string[];
|
|
914
|
+
};
|
|
915
|
+
/** A capability supplies branches of the part's timing root and allocates every cTn ID from ids. */
|
|
916
|
+
type TimingContribution = (ids: TimingIds) => TimingBranches;
|
|
917
|
+
type LocalFile = string | URL;
|
|
918
|
+
/** Suspends a binding only at points where it needs local resource bytes. */
|
|
919
|
+
type ResolveWork<T> = Generator<LocalFile, T, Uint8Array>;
|
|
964
920
|
type Rect = {
|
|
965
921
|
readonly x: number;
|
|
966
922
|
readonly y: number;
|
|
@@ -1006,6 +962,7 @@ type FontUsage = {
|
|
|
1006
962
|
readonly paths: readonly string[];
|
|
1007
963
|
};
|
|
1008
964
|
type ResolvedFooterSlot = {
|
|
965
|
+
readonly format?: DateTimeFormat;
|
|
1009
966
|
readonly box: Rect;
|
|
1010
967
|
readonly text: string;
|
|
1011
968
|
readonly textMetrics: TextMetrics;
|
|
@@ -1029,6 +986,48 @@ type ObjectTransform = {
|
|
|
1029
986
|
readonly flipH: boolean;
|
|
1030
987
|
readonly flipV: boolean;
|
|
1031
988
|
};
|
|
989
|
+
/** Media playback interval in milliseconds. */
|
|
990
|
+
type MediaTrim = {
|
|
991
|
+
/** Start position measured from the beginning of the source. */
|
|
992
|
+
readonly start?: number | undefined;
|
|
993
|
+
/**
|
|
994
|
+
* End position from the beginning, or the amount to remove from the end.
|
|
995
|
+
* An absolute position requires a known source duration when looping.
|
|
996
|
+
*/
|
|
997
|
+
readonly end?: number | {
|
|
998
|
+
readonly fromEnd: number;
|
|
999
|
+
} | undefined;
|
|
1000
|
+
};
|
|
1001
|
+
type ResolvedVideo = Readonly<{
|
|
1002
|
+
readonly contentType: "video/mp4";
|
|
1003
|
+
readonly autoPlay: boolean;
|
|
1004
|
+
readonly loop: boolean;
|
|
1005
|
+
readonly muted: boolean;
|
|
1006
|
+
readonly volume: number;
|
|
1007
|
+
readonly trim?: MediaTrim;
|
|
1008
|
+
} & ({
|
|
1009
|
+
readonly kind: "embedded";
|
|
1010
|
+
} | {
|
|
1011
|
+
readonly kind: "external";
|
|
1012
|
+
readonly url: string;
|
|
1013
|
+
})>;
|
|
1014
|
+
type AudioContentType = "audio/mpeg" | "audio/wav" | "audio/mp4";
|
|
1015
|
+
type ResolvedAudio = Readonly<{
|
|
1016
|
+
readonly autoPlay: boolean;
|
|
1017
|
+
readonly loop: boolean;
|
|
1018
|
+
readonly muted: boolean;
|
|
1019
|
+
readonly volume: number;
|
|
1020
|
+
readonly trim?: MediaTrim;
|
|
1021
|
+
readonly hideDuringShow: boolean;
|
|
1022
|
+
} & ({
|
|
1023
|
+
readonly kind: "embedded";
|
|
1024
|
+
readonly contentType: AudioContentType;
|
|
1025
|
+
} | {
|
|
1026
|
+
readonly kind: "external";
|
|
1027
|
+
readonly url: string;
|
|
1028
|
+
/** Content type inferred from a recognized URL suffix when available. */
|
|
1029
|
+
readonly contentType?: AudioContentType;
|
|
1030
|
+
})>;
|
|
1032
1031
|
type ResolvedImage = {
|
|
1033
1032
|
readonly kind: "embedded";
|
|
1034
1033
|
readonly contentType: string;
|
|
@@ -1058,6 +1057,8 @@ type ResolvedObject = {
|
|
|
1058
1057
|
readonly text?: string;
|
|
1059
1058
|
readonly textMetrics?: TextMetrics;
|
|
1060
1059
|
readonly image?: ResolvedImage;
|
|
1060
|
+
readonly video?: ResolvedVideo;
|
|
1061
|
+
readonly audio?: ResolvedAudio;
|
|
1061
1062
|
readonly link?: string;
|
|
1062
1063
|
readonly table?: ResolvedTable;
|
|
1063
1064
|
readonly members?: readonly ResolvedObject[];
|
|
@@ -1108,6 +1109,17 @@ type ResolvedTable = {
|
|
|
1108
1109
|
readonly colSpan: number;
|
|
1109
1110
|
}[];
|
|
1110
1111
|
};
|
|
1112
|
+
/** Read-only review metadata in slide pixels, independent of the slide canvas. */
|
|
1113
|
+
type ResolvedComment = {
|
|
1114
|
+
readonly id?: string;
|
|
1115
|
+
readonly path: string;
|
|
1116
|
+
readonly author: string;
|
|
1117
|
+
readonly initials: string;
|
|
1118
|
+
readonly position: ScreenPoint;
|
|
1119
|
+
/** XML date-time as written, including the timezone if one was supplied. */
|
|
1120
|
+
readonly createdAt?: string;
|
|
1121
|
+
readonly text: string;
|
|
1122
|
+
};
|
|
1111
1123
|
type ResolvedSlide = {
|
|
1112
1124
|
/** Page author id; also the stable identifier written to the slide part. */
|
|
1113
1125
|
readonly id: string;
|
|
@@ -1121,6 +1133,7 @@ type ResolvedSlide = {
|
|
|
1121
1133
|
readonly showMasterPlaceholderAnimations?: boolean;
|
|
1122
1134
|
readonly objects: readonly ResolvedObject[];
|
|
1123
1135
|
readonly layouts?: readonly ResolvedLayout[];
|
|
1136
|
+
readonly comments?: readonly ResolvedComment[];
|
|
1124
1137
|
readonly footer?: ResolvedFooter;
|
|
1125
1138
|
readonly capabilities?: Readonly<Record<string, unknown>>;
|
|
1126
1139
|
};
|
|
@@ -1186,6 +1199,8 @@ type Locator = {
|
|
|
1186
1199
|
readonly text?: string;
|
|
1187
1200
|
readonly textMetrics?: TextMetrics;
|
|
1188
1201
|
readonly image?: ResolvedImage;
|
|
1202
|
+
readonly video?: ResolvedVideo;
|
|
1203
|
+
readonly audio?: ResolvedAudio;
|
|
1189
1204
|
readonly gridArea?: Rect;
|
|
1190
1205
|
readonly objects: readonly ResolvedObject[];
|
|
1191
1206
|
readonly resources?: readonly LocatorResource[];
|
|
@@ -1208,7 +1223,7 @@ type CapabilityElement = {
|
|
|
1208
1223
|
readonly type: string;
|
|
1209
1224
|
readonly props: Readonly<Record<string, unknown>>;
|
|
1210
1225
|
readonly children: readonly CapabilityChild[];
|
|
1211
|
-
/**
|
|
1226
|
+
/** Identifies a declaration that must be a direct child of a slide. */
|
|
1212
1227
|
readonly pageAffiliated?: boolean;
|
|
1213
1228
|
};
|
|
1214
1229
|
type CapabilityChild = CapabilityElement | {
|
|
@@ -1269,7 +1284,7 @@ type CapabilityResource = {
|
|
|
1269
1284
|
/** A slide native part and binary resources it references via part relationships. */
|
|
1270
1285
|
type CapabilityPackagePart = {
|
|
1271
1286
|
readonly part: {
|
|
1272
|
-
/**
|
|
1287
|
+
/** Fixed package-relative path or a template with one `{n}` sequence placeholder. */
|
|
1273
1288
|
readonly pathTemplate: string;
|
|
1274
1289
|
readonly contentType: string;
|
|
1275
1290
|
};
|
|
@@ -1281,6 +1296,8 @@ type CapabilityPackagePart = {
|
|
|
1281
1296
|
readonly contentType: string;
|
|
1282
1297
|
readonly relationshipType: string;
|
|
1283
1298
|
readonly bytes: Uint8Array;
|
|
1299
|
+
/** Allocate through the package-wide sequence for this path template. */
|
|
1300
|
+
readonly independentSequence?: boolean;
|
|
1284
1301
|
}[];
|
|
1285
1302
|
};
|
|
1286
1303
|
/** A package relationship target resolved by core while packaging a capability-provided part. */
|
|
@@ -1300,7 +1317,7 @@ type CapabilityPartRelationship = {
|
|
|
1300
1317
|
/** A slide-owned part whose content, content type, and relationship declarations stay with the capability. */
|
|
1301
1318
|
type CapabilitySlidePackagePart = {
|
|
1302
1319
|
readonly part: {
|
|
1303
|
-
/**
|
|
1320
|
+
/** Fixed package-relative path or a template with one `{n}` sequence placeholder. */
|
|
1304
1321
|
readonly pathTemplate: string;
|
|
1305
1322
|
readonly contentType: string;
|
|
1306
1323
|
};
|
|
@@ -1318,6 +1335,7 @@ type CapabilitySlidePackagePart = {
|
|
|
1318
1335
|
*/
|
|
1319
1336
|
type CapabilitySharedPackagePart = {
|
|
1320
1337
|
readonly part: {
|
|
1338
|
+
/** Fixed package-relative path or a template with one `{n}` sequence placeholder. */
|
|
1321
1339
|
readonly pathTemplate: string;
|
|
1322
1340
|
readonly contentType: string;
|
|
1323
1341
|
};
|
|
@@ -1331,9 +1349,11 @@ type CapabilitySharedPackagePart = {
|
|
|
1331
1349
|
readonly presentationRelationshipType?: string;
|
|
1332
1350
|
readonly relationships?: readonly CapabilityPartRelationship[];
|
|
1333
1351
|
readonly presentationElement?: {
|
|
1334
|
-
readonly position: "before-slides" | "after-notes-size";
|
|
1352
|
+
readonly position: "before-slides" | "after-notes-master" | "after-notes-size";
|
|
1335
1353
|
readonly content: (relationshipId: string) => string;
|
|
1336
1354
|
};
|
|
1355
|
+
/** Optional markup for dependent slide parts referencing this shared part. */
|
|
1356
|
+
readonly renderSlideFragment?: ((context: Pick<SlideEmitContext, "slideNumber" | "createTextFieldId">) => string) | undefined;
|
|
1337
1357
|
readonly content: (relationshipIds: readonly string[]) => string | Uint8Array;
|
|
1338
1358
|
};
|
|
1339
1359
|
/** A resource item within a presentation-level XML record, with part and relationship IDs assigned uniformly by core. */
|
|
@@ -1361,7 +1381,9 @@ type CapabilityPresentationContribution = {
|
|
|
1361
1381
|
readonly key: string;
|
|
1362
1382
|
};
|
|
1363
1383
|
/** Called once after core aggregates characters for this resource claim, returning final part bytes to write. */
|
|
1364
|
-
readonly resolveBytes?: (characters: string
|
|
1384
|
+
readonly resolveBytes?: (characters: string, options: {
|
|
1385
|
+
readonly signal?: AbortSignal | undefined;
|
|
1386
|
+
}) => Uint8Array | Promise<Uint8Array>;
|
|
1365
1387
|
readonly content: (relationshipId: string) => string;
|
|
1366
1388
|
/** Optional domain-specific diagnostic emitted instead of the generic presentation-item conflict error when this item conflicts with an existing item under the same record. */
|
|
1367
1389
|
readonly onConflict?: {
|
|
@@ -1560,6 +1582,7 @@ type EmitContext = {
|
|
|
1560
1582
|
};
|
|
1561
1583
|
type EmitOutput = {
|
|
1562
1584
|
readonly xml: string;
|
|
1585
|
+
readonly timing?: TimingContribution;
|
|
1563
1586
|
readonly presentationContributions?: readonly CapabilityPresentationContribution[];
|
|
1564
1587
|
};
|
|
1565
1588
|
/** Raster image payload submitted by a capability during static preview painting. */
|
|
@@ -1576,14 +1599,22 @@ type PaintContext = {
|
|
|
1576
1599
|
readonly childrenSvg?: string;
|
|
1577
1600
|
/**
|
|
1578
1601
|
* Registers raster image bytes for the current preview page and returns an SVG `href` token
|
|
1579
|
-
* for `<image href="..."/>`.
|
|
1602
|
+
* for `<image href="..."/>`. Set `normalizeToPng` to decode PNG, JPEG, or the first
|
|
1603
|
+
* GIF frame and register the resulting PNG. The preview stage reports corrupt image data
|
|
1604
|
+
* at the supplied diagnostic location.
|
|
1580
1605
|
*
|
|
1581
1606
|
* When provided by `@pptxdk/preview`, identical raster payloads on the same page are encoded
|
|
1582
1607
|
* to Base64 at most once after offscreen/clip sanitization: a single surviving `<image>`
|
|
1583
1608
|
* receives an inline `data:` URI, while two or more surviving `<image>` elements share a
|
|
1584
1609
|
* page-level `<defs>` entry and `<use>` references.
|
|
1585
1610
|
*/
|
|
1586
|
-
readonly registerRasterResource
|
|
1611
|
+
readonly registerRasterResource: (resource: PaintRasterResource, options?: {
|
|
1612
|
+
readonly normalizeToPng?: boolean;
|
|
1613
|
+
readonly diagnostic?: {
|
|
1614
|
+
readonly path?: string;
|
|
1615
|
+
readonly field: string;
|
|
1616
|
+
};
|
|
1617
|
+
}) => string;
|
|
1587
1618
|
};
|
|
1588
1619
|
type PaintPlaceholderRecord = {
|
|
1589
1620
|
readonly id?: string;
|
|
@@ -1619,6 +1650,12 @@ type BoundObjectCapability = {
|
|
|
1619
1650
|
measureLayout?(request: CapabilityLayoutRequest): CapabilityLayoutMeasurement | undefined;
|
|
1620
1651
|
resolve(context: ObjectResolveContext): ObjectResolution;
|
|
1621
1652
|
};
|
|
1653
|
+
/** Structural placement checked against the author tree before layout can remove hidden objects. */
|
|
1654
|
+
type CapabilityPlacementContext = {
|
|
1655
|
+
readonly insideSlide: boolean;
|
|
1656
|
+
/** Outer to inner ancestor declarations within the canvas. */
|
|
1657
|
+
readonly ancestors: readonly CapabilityElement[];
|
|
1658
|
+
};
|
|
1622
1659
|
/**
|
|
1623
1660
|
* Object capability module that binds per-build declaration state into a closed handle without exposing private parsed state.
|
|
1624
1661
|
*/
|
|
@@ -1626,7 +1663,8 @@ type ObjectCapabilityModule<Bound extends BoundObjectCapability = BoundObjectCap
|
|
|
1626
1663
|
readonly declaration: string;
|
|
1627
1664
|
readonly mechanisms?: Mechanisms;
|
|
1628
1665
|
readonly codegen?: unknown;
|
|
1629
|
-
|
|
1666
|
+
validatePlacement?(input: CapabilityInput, context: CapabilityPlacementContext): void;
|
|
1667
|
+
bind(input: CapabilityInput, context: CapabilityParseContext): Bound | ResolveWork<Bound>;
|
|
1630
1668
|
};
|
|
1631
1669
|
/** Transparent host node that does not generate native objects, submitting declarations only to its parent slide capability. */
|
|
1632
1670
|
type TransparentCapabilityModule = {
|
|
@@ -1644,6 +1682,7 @@ type TransparentCapabilityModule = {
|
|
|
1644
1682
|
readonly path: string;
|
|
1645
1683
|
readonly theme?: ThemeContext;
|
|
1646
1684
|
readonly slideNumber?: number;
|
|
1685
|
+
readonly options?: ResolveOptions;
|
|
1647
1686
|
}): readonly CapabilityAnnotation[];
|
|
1648
1687
|
};
|
|
1649
1688
|
type SlideCapabilitySlot = "background" | "shape-tree" | "transition" | "timing";
|
|
@@ -1694,6 +1733,8 @@ type SlideResolveContext = {
|
|
|
1694
1733
|
};
|
|
1695
1734
|
type SlideEmitContext = {
|
|
1696
1735
|
readonly path: string;
|
|
1736
|
+
/** Complete resolved page list for slide parts with document-wide metadata. */
|
|
1737
|
+
readonly slides?: readonly ResolvedSlide[];
|
|
1697
1738
|
readonly dimensions: {
|
|
1698
1739
|
readonly width: number;
|
|
1699
1740
|
readonly height: number;
|
|
@@ -1708,10 +1749,14 @@ type SlideEmitContext = {
|
|
|
1708
1749
|
readonly registerSharedPart: (key: string, part: CapabilitySharedPackagePart) => {
|
|
1709
1750
|
readonly path: string;
|
|
1710
1751
|
readonly relationshipId?: string;
|
|
1752
|
+
readonly renderSlideFragment?: CapabilitySharedPackagePart["renderSlideFragment"];
|
|
1711
1753
|
};
|
|
1712
1754
|
};
|
|
1755
|
+
type DeckEmitContext = Pick<SlideEmitContext, "createTextFieldId" | "registerSharedPart">;
|
|
1756
|
+
type DeckCapabilityBinding = (context: DeckEmitContext) => void;
|
|
1713
1757
|
type SlideEmitOutput = {
|
|
1714
1758
|
readonly xml: string;
|
|
1759
|
+
readonly timing?: TimingContribution;
|
|
1715
1760
|
readonly placeholderSpPrByKey?: Readonly<Record<string, string>>;
|
|
1716
1761
|
readonly presentationContributions?: readonly CapabilityPresentationContribution[];
|
|
1717
1762
|
};
|
|
@@ -1727,7 +1772,7 @@ type SlidePaintContext = {
|
|
|
1727
1772
|
* Registers raster image bytes for the current preview page and returns an SVG `href` token
|
|
1728
1773
|
* for `<image href="..."/>`. See {@link PaintContext.registerRasterResource}.
|
|
1729
1774
|
*/
|
|
1730
|
-
readonly registerRasterResource
|
|
1775
|
+
readonly registerRasterResource: PaintContext["registerRasterResource"];
|
|
1731
1776
|
};
|
|
1732
1777
|
type SlidePaintOutput = {
|
|
1733
1778
|
readonly svg: string;
|
|
@@ -1736,6 +1781,7 @@ type SlidePaintOutput = {
|
|
|
1736
1781
|
/** Internal capability protocol result returned by `BoundSlideCapability.resolveSlide()`. */
|
|
1737
1782
|
type SlideResolution = {
|
|
1738
1783
|
readonly observation?: unknown;
|
|
1784
|
+
readonly comments?: readonly ResolvedComment[];
|
|
1739
1785
|
readonly footer?: ResolvedFooter;
|
|
1740
1786
|
readonly extensions: readonly Extension[];
|
|
1741
1787
|
readonly resourceClaims?: readonly CapabilityResourceClaim[];
|
|
@@ -1807,12 +1853,8 @@ type MastersEmitDriver = {
|
|
|
1807
1853
|
};
|
|
1808
1854
|
/** Slide capability module that binds per-build slide declaration state into a closed handle. */
|
|
1809
1855
|
type SlideCapabilityModule<Bound extends BoundSlideCapability = BoundSlideCapability, Mechanisms extends readonly NativeMechanismDefinition[] = readonly NativeMechanismDefinition[]> = {
|
|
1810
|
-
/**
|
|
1811
|
-
readonly
|
|
1812
|
-
/** Slide properties jointly consumed by the same module, such as transition and advance timing. */
|
|
1813
|
-
readonly slideProps?: readonly string[];
|
|
1814
|
-
/** True when this slide capability also consumes `style.background` on Slide, SlideMaster, and SlideLayout declarations. */
|
|
1815
|
-
readonly consumesOwnerBackgroundStyle?: boolean;
|
|
1856
|
+
/** Container properties owned by this capability, including supported nested style paths. */
|
|
1857
|
+
readonly containerSlots?: ContainerSlots;
|
|
1816
1858
|
/** Written to the slide following PresentationML fixed child element order. */
|
|
1817
1859
|
readonly slot: SlideCapabilitySlot;
|
|
1818
1860
|
/** Runs once regardless of whether Slide provides the corresponding property. */
|
|
@@ -1835,6 +1877,11 @@ type SlideCapabilityModule<Bound extends BoundSlideCapability = BoundSlideCapabi
|
|
|
1835
1877
|
paintSharedObject(svg: string): PaintOutput;
|
|
1836
1878
|
};
|
|
1837
1879
|
readonly mastersEmitDriver?: MastersEmitDriver;
|
|
1880
|
+
/** Binds owned Deck properties before the per-slide emitters run. */
|
|
1881
|
+
bindDeck?(props: Readonly<Record<string, unknown>>, context: {
|
|
1882
|
+
readonly theme: ThemeContext;
|
|
1883
|
+
readonly options: ResolveOptions;
|
|
1884
|
+
}): DeckCapabilityBinding;
|
|
1838
1885
|
bindSections?(sections: readonly {
|
|
1839
1886
|
readonly name: string;
|
|
1840
1887
|
readonly slideIndexes: readonly number[];
|
|
@@ -1842,7 +1889,7 @@ type SlideCapabilityModule<Bound extends BoundSlideCapability = BoundSlideCapabi
|
|
|
1842
1889
|
readonly extensions: readonly Extension[];
|
|
1843
1890
|
emit(): SlideEmitOutput;
|
|
1844
1891
|
};
|
|
1845
|
-
bindSlide(input: CapabilityInput, context: SlideCapabilityParseContext): Bound
|
|
1892
|
+
bindSlide(input: CapabilityInput, context: SlideCapabilityParseContext): Bound | ResolveWork<Bound>;
|
|
1846
1893
|
};
|
|
1847
1894
|
type CapabilityModule = ObjectCapabilityModule | SlideCapabilityModule;
|
|
1848
1895
|
/** Modules registered inside a resolver; transparent declarations can only be owned by slide capability modules. */
|
|
@@ -1866,9 +1913,12 @@ type FooterPlaceholderSpec = {
|
|
|
1866
1913
|
};
|
|
1867
1914
|
/** Geometry, placeholder metadata, and default text/style for a `dt`, `ftr`, or `sldNum` slot. */
|
|
1868
1915
|
declare const footerPlaceholderSpecSchema: z.ZodType<FooterPlaceholderSpec>;
|
|
1916
|
+
/** Date placeholder defaults on a master or layout. */
|
|
1917
|
+
type DateTimeFooterPlaceholderSpec = Omit<FooterPlaceholderSpec, "text"> & DateTimeContent;
|
|
1918
|
+
declare const dateTimeFooterPlaceholderSpecSchema: z.ZodType<DateTimeFooterPlaceholderSpec>;
|
|
1869
1919
|
/** Collection of date, footer, and slide-number metadata placeholder definitions on a master or layout. */
|
|
1870
1920
|
type FooterPlaceholders = {
|
|
1871
|
-
readonly dateTime?:
|
|
1921
|
+
readonly dateTime?: DateTimeFooterPlaceholderSpec | undefined;
|
|
1872
1922
|
readonly footer?: FooterPlaceholderSpec | undefined;
|
|
1873
1923
|
readonly slideNumber?: FooterPlaceholderSpec | undefined;
|
|
1874
1924
|
};
|
|
@@ -1878,29 +1928,19 @@ declare const footerPlaceholdersSchema: z.ZodType<FooterPlaceholders>;
|
|
|
1878
1928
|
declare const slideLayoutTypeValues: readonly ["title", "tx", "twoColTx", "tbl", "txAndChart", "chartAndTx", "dgm", "chart", "txAndClipArt", "clipArtAndTx", "titleOnly", "blank", "txAndObj", "objAndTx", "objOnly", "obj", "txAndMedia", "mediaAndTx", "objOverTx", "txOverObj", "txAndTwoObj", "twoObjAndTx", "twoObjOverTx", "fourObj", "vertTx", "clipArtAndVertTx", "vertTitleAndTx", "vertTitleAndTxOverChart", "twoObj", "objAndTwoObj", "twoObjAndObj", "cust", "secHead", "twoTxTwoObj", "objTx", "picTx"];
|
|
1879
1929
|
type SlideLayoutType = (typeof slideLayoutTypeValues)[number];
|
|
1880
1930
|
declare const slideLayoutTypeSchema: z.ZodType<SlideLayoutType>;
|
|
1881
|
-
type
|
|
1931
|
+
type SlideMasterCoreDataProps = {
|
|
1882
1932
|
readonly id?: string | undefined;
|
|
1883
1933
|
readonly name?: string | undefined;
|
|
1884
1934
|
readonly preserve?: boolean | undefined;
|
|
1885
1935
|
readonly placeholders?: MasterPlaceholderMap | undefined;
|
|
1886
1936
|
readonly textStyles?: MasterTextStyles | undefined;
|
|
1887
1937
|
readonly colorMap?: ColorMap | undefined;
|
|
1888
|
-
readonly style?:
|
|
1889
|
-
readonly background?: SlideBackground | undefined;
|
|
1890
|
-
readonly headerFooter?: HeaderFooter | undefined;
|
|
1891
|
-
readonly footerPlaceholders?: FooterPlaceholders | undefined;
|
|
1892
|
-
readonly transition?: unknown;
|
|
1893
|
-
readonly advanceAfter?: number | undefined;
|
|
1894
|
-
readonly motion?: unknown;
|
|
1938
|
+
readonly style?: SlideCoreStyle | undefined;
|
|
1895
1939
|
};
|
|
1896
|
-
|
|
1897
|
-
type SlideMasterProps = SlideMasterDataProps & {
|
|
1940
|
+
type SlideMasterCoreProps = SlideMasterCoreDataProps & {
|
|
1898
1941
|
readonly theme?: ThemeInput | Theme | undefined;
|
|
1899
|
-
readonly style?: SlideStyle | undefined;
|
|
1900
|
-
readonly placeholders?: MasterPlaceholderMap | undefined;
|
|
1901
|
-
readonly textStyles?: MasterTextStyles | undefined;
|
|
1902
1942
|
};
|
|
1903
|
-
type
|
|
1943
|
+
type SlideLayoutCoreDataProps<P extends PlaceholderMap = EmptyPlaceholderMap> = {
|
|
1904
1944
|
readonly id?: string | undefined;
|
|
1905
1945
|
readonly name?: string | undefined;
|
|
1906
1946
|
readonly type?: SlideLayoutType | undefined;
|
|
@@ -1912,15 +1952,8 @@ type SlideLayoutDataProps<P extends PlaceholderMap = EmptyPlaceholderMap> = {
|
|
|
1912
1952
|
readonly placeholders?: P | undefined;
|
|
1913
1953
|
readonly colorMapOverride?: ColorMapOverride | undefined;
|
|
1914
1954
|
readonly themeOverride?: ThemeOverride | undefined;
|
|
1915
|
-
readonly style?:
|
|
1916
|
-
readonly background?: SlideBackground | undefined;
|
|
1917
|
-
readonly headerFooter?: HeaderFooter | undefined;
|
|
1918
|
-
readonly footerPlaceholders?: FooterPlaceholders | undefined;
|
|
1919
|
-
readonly transition?: unknown;
|
|
1920
|
-
readonly advanceAfter?: number | undefined;
|
|
1921
|
-
readonly motion?: unknown;
|
|
1955
|
+
readonly style?: SlideCoreStyle | undefined;
|
|
1922
1956
|
};
|
|
1923
|
-
declare const slideLayoutDataPropsSchema: z.ZodType<SlideLayoutDataProps<PlaceholderMap>>;
|
|
1924
1957
|
type ResolvedPlaceholder = {
|
|
1925
1958
|
readonly key: string;
|
|
1926
1959
|
readonly type: ContentPlaceholderRole;
|
|
@@ -1961,35 +1994,14 @@ type ResolvedMaster = {
|
|
|
1961
1994
|
readonly layouts: readonly ResolvedSlideLayout[];
|
|
1962
1995
|
};
|
|
1963
1996
|
declare const resolvedMasterSchema: z.ZodType<ResolvedMaster>;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
type SlideLayoutDefinition<P extends PlaceholderMap = PlaceholderMap> = {
|
|
1997
|
+
/** Stateless, schema-validated slide layout specification shareable across authoring entries. */
|
|
1998
|
+
type SlideLayoutDefinition<P extends PlaceholderMap = PlaceholderMap, Props extends SlideLayoutCoreDataProps<P> = SlideLayoutCoreDataProps<P>> = Props & {
|
|
1967
1999
|
readonly [slideLayoutDefinitionSymbol]: true;
|
|
1968
|
-
readonly props:
|
|
1969
|
-
readonly id?: string | undefined;
|
|
1970
|
-
readonly name?: string | undefined;
|
|
1971
|
-
readonly type?: SlideLayoutType | undefined;
|
|
1972
|
-
readonly preserve?: boolean | undefined;
|
|
1973
|
-
readonly matchingName?: string | undefined;
|
|
1974
|
-
readonly userDrawn?: boolean | undefined;
|
|
1975
|
-
readonly showMasterShapes?: boolean | undefined;
|
|
1976
|
-
readonly showMasterPlaceholderAnimations?: boolean | undefined;
|
|
1977
|
-
readonly placeholders?: P | undefined;
|
|
1978
|
-
readonly colorMapOverride?: ColorMapOverride | undefined;
|
|
1979
|
-
readonly themeOverride?: ThemeOverride | undefined;
|
|
1980
|
-
readonly style?: SlideStyle | undefined;
|
|
1981
|
-
readonly background?: SlideBackground | undefined;
|
|
1982
|
-
readonly headerFooter?: HeaderFooter | undefined;
|
|
1983
|
-
readonly footerPlaceholders?: FooterPlaceholders | undefined;
|
|
1984
|
-
readonly transition?: unknown;
|
|
1985
|
-
readonly advanceAfter?: number | undefined;
|
|
1986
|
-
readonly motion?: unknown;
|
|
2000
|
+
readonly props: Props;
|
|
1987
2001
|
};
|
|
1988
|
-
type
|
|
2002
|
+
type SlideLayoutCoreProps<P extends PlaceholderMap = PlaceholderMap> = SlideLayoutCoreDataProps<P> & {
|
|
1989
2003
|
readonly layout?: SlideLayoutDefinition<P> | undefined;
|
|
1990
2004
|
};
|
|
1991
|
-
/** Checks whether a runtime value was produced by `defineSlideLayout`. */
|
|
1992
|
-
declare function isSlideLayoutDefinition(value: unknown): value is SlideLayoutDefinition;
|
|
1993
2005
|
/**
|
|
1994
2006
|
* Operation keys shared by the editable document and the React host adapter.
|
|
1995
2007
|
*
|
|
@@ -2016,7 +2028,7 @@ declare class CommonNode<Kind extends string = string, Props extends object = Do
|
|
|
2016
2028
|
#private;
|
|
2017
2029
|
readonly type: string;
|
|
2018
2030
|
readonly kind: Kind;
|
|
2019
|
-
/** Page-affiliated declarations
|
|
2031
|
+
/** Page-affiliated declarations must be direct children of a slide. */
|
|
2020
2032
|
readonly pageAffiliated: boolean;
|
|
2021
2033
|
constructor(kind: Kind, type: string, props?: Props, options?: {
|
|
2022
2034
|
readonly pageAffiliated?: boolean;
|
|
@@ -2108,24 +2120,119 @@ declare class AuthorQuery<Node extends CommonNode = CommonNode> {
|
|
|
2108
2120
|
getAs<Selected extends CommonNode>(id: string, guard: AuthorNodeGuard<Selected>): Selected;
|
|
2109
2121
|
}
|
|
2110
2122
|
/** Editable SlideLayout node owned by a SlideMaster. */
|
|
2111
|
-
declare class SlideLayoutContainer<P extends PlaceholderMap = PlaceholderMap, Props extends object =
|
|
2123
|
+
declare class SlideLayoutContainer<P extends PlaceholderMap = PlaceholderMap, Props extends object = SlideLayoutCoreProps<P>> extends CommonContainer<"slide-layout", Props, SlideStyle> {
|
|
2112
2124
|
readonly "~placeholderMap"?: P;
|
|
2113
2125
|
}
|
|
2114
2126
|
/** Editable Slide node exposing named placeholder lookup alongside slide styling. */
|
|
2115
|
-
declare class SlideContainer<Props extends object =
|
|
2127
|
+
declare class SlideContainer<Props extends object = SlideCoreProps, Style extends object = SlideCoreStyle> extends CommonContainer<"slide", Props, Style> {
|
|
2116
2128
|
/** Finds a bound placeholder node on this slide by its layout placeholder key. */
|
|
2117
2129
|
placeholder(key: string): CommonNode | undefined;
|
|
2118
2130
|
}
|
|
2119
2131
|
/** Editable SlideMaster node owning its SlideLayouts in declaration order. */
|
|
2120
|
-
declare class SlideMasterContainer<Props extends object =
|
|
2132
|
+
declare class SlideMasterContainer<Props extends object = SlideMasterCoreProps, Layout extends CommonNode = SlideLayoutContainer> extends CommonContainer<"slide-master", Props, SlideStyle> {
|
|
2121
2133
|
/** Native theme bound to this master (shared by object identity across masters when reused). */
|
|
2122
2134
|
get theme(): Theme | ThemeInput | undefined;
|
|
2123
2135
|
/** Direct SlideLayout children owned by this master in `<p:sldLayoutIdLst>` order. */
|
|
2124
|
-
get layouts(): readonly
|
|
2136
|
+
get layouts(): readonly Layout[];
|
|
2125
2137
|
}
|
|
2126
2138
|
/** Editable Deck root node exposing its explicit SlideMasters. */
|
|
2127
|
-
declare class DeckContainer<Props extends object =
|
|
2139
|
+
declare class DeckContainer<Props extends object = DeckCoreProps, Master extends CommonNode = SlideMasterContainer> extends CommonContainer<"deck", Props, TextStyle> {
|
|
2128
2140
|
/** Direct SlideMaster children owned by this deck in `<p:sldMasterIdLst>` order. */
|
|
2129
|
-
get masters(): readonly
|
|
2141
|
+
get masters(): readonly Master[];
|
|
2142
|
+
}
|
|
2143
|
+
/** DrawingML `<p:bgRef idx="1001..1003">` reference resolved against `Theme.formatScheme.bgFillStyles`. */
|
|
2144
|
+
type BackgroundRef = {
|
|
2145
|
+
readonly ref: 1001 | 1002 | 1003;
|
|
2146
|
+
readonly color?: ColorValue | undefined;
|
|
2147
|
+
};
|
|
2148
|
+
/** DrawingML `<p:bgRef idx="1001..1003">` reference resolved against `Theme.formatScheme.bgFillStyles`. */
|
|
2149
|
+
declare const backgroundRefSchema: z.ZodType<BackgroundRef>;
|
|
2150
|
+
/** Slide background can use theme colors, gradients supported by the shared visual writer, formal image resource inputs, `"none"`, or theme background fill references (`p:bgRef`). */
|
|
2151
|
+
type SlideBackground = BackgroundValue | BackgroundRef;
|
|
2152
|
+
/** Slide background can use theme colors, gradients supported by the shared visual writer, formal image resource inputs, `"none"`, or theme background fill references (`p:bgRef`). */
|
|
2153
|
+
declare const slideBackgroundSchema: z.ZodType<SlideBackground>;
|
|
2154
|
+
/** Core deck properties defining slide canvas dimensions in pixels (`1280 × 720` default), theme, default text style, and presentation title. */
|
|
2155
|
+
type DeckCoreProps = {
|
|
2156
|
+
/** Slide canvas width in CSS pixels (`px`); defaults to `1280` (16:9 widescreen) when omitted. */
|
|
2157
|
+
readonly width?: number | undefined;
|
|
2158
|
+
/** Slide canvas height in CSS pixels (`px`); defaults to `720` (16:9 widescreen) when omitted. */
|
|
2159
|
+
readonly height?: number | undefined;
|
|
2160
|
+
/** Deck-level theme definition or inline theme input inherited by slides unless overridden. */
|
|
2161
|
+
readonly theme?: ThemeInput | Theme | undefined;
|
|
2162
|
+
/** Inherited root text style applied across slides unless overridden. */
|
|
2163
|
+
readonly style?: TextStyle | undefined;
|
|
2164
|
+
/** Presentation metadata title written to core document properties. */
|
|
2165
|
+
readonly title?: string | undefined;
|
|
2166
|
+
};
|
|
2167
|
+
type SlideCoreStyle = TextStyle & Omit<LayoutStyle, "zIndex">;
|
|
2168
|
+
/** Footer placeholder slot style combining inherited text styles and LayoutStyle placement. */
|
|
2169
|
+
type FooterPlaceholderStyle = TextStyle & LayoutStyle;
|
|
2170
|
+
/** Per-slide footer override declaration (`false` hides; string sets text; object overrides text/style/slot). */
|
|
2171
|
+
type SlideFooterValue = boolean | string | {
|
|
2172
|
+
readonly text?: string | undefined;
|
|
2173
|
+
readonly style?: FooterPlaceholderStyle | undefined;
|
|
2174
|
+
readonly idx?: number | undefined;
|
|
2175
|
+
readonly size?: PlaceholderSize | undefined;
|
|
2176
|
+
readonly visible?: boolean | undefined;
|
|
2177
|
+
};
|
|
2178
|
+
/** Per-slide footer override declaration (`false` hides; string sets text; object overrides text/style/slot). */
|
|
2179
|
+
declare const slideFooterValueSchema: z.ZodType<SlideFooterValue>;
|
|
2180
|
+
/** Per-slide date override, with inherited content when only style or slot metadata is specified. */
|
|
2181
|
+
type SlideDateTimeValue = boolean | string | (Omit<Exclude<SlideFooterValue, boolean | string>, "text"> & DateTimeContent);
|
|
2182
|
+
declare const slideDateTimeValueSchema: z.ZodType<SlideDateTimeValue>;
|
|
2183
|
+
/** Per-slide slide-number override declaration (`false` hides; `true` enables; object overrides style/slot). */
|
|
2184
|
+
type SlideNumberValue = boolean | {
|
|
2185
|
+
readonly style?: FooterPlaceholderStyle | undefined;
|
|
2186
|
+
readonly idx?: number | undefined;
|
|
2187
|
+
readonly size?: PlaceholderSize | undefined;
|
|
2188
|
+
readonly visible?: boolean | undefined;
|
|
2189
|
+
};
|
|
2190
|
+
/** Per-slide slide-number override declaration (`false` hides; `true` enables; object overrides style/slot). */
|
|
2191
|
+
declare const slideNumberValueSchema: z.ZodType<SlideNumberValue>;
|
|
2192
|
+
type SlideCoreDataProps = {
|
|
2193
|
+
/** Page author id; unique within the deck and written as the stable slide identifier. */
|
|
2194
|
+
readonly id: AuthorId;
|
|
2195
|
+
/** Optional PowerPoint display name written to `<p:cSld name="...">` without altering the stable `id`. */
|
|
2196
|
+
readonly name?: string | undefined;
|
|
2197
|
+
readonly colorMapOverride?: ColorMapOverride | undefined;
|
|
2198
|
+
readonly themeOverride?: ThemeOverride | undefined;
|
|
2199
|
+
readonly style?: SlideCoreStyle | undefined;
|
|
2200
|
+
readonly hidden?: boolean | undefined;
|
|
2201
|
+
readonly showMasterPlaceholderAnimations?: boolean | undefined;
|
|
2202
|
+
readonly showMasterShapes?: boolean | undefined;
|
|
2203
|
+
};
|
|
2204
|
+
/**
|
|
2205
|
+
* Organizes contiguous child slides into a named native PowerPoint section.
|
|
2206
|
+
*
|
|
2207
|
+
* Emitted via the Office 2010 `p14:sectionLst` presentation extension
|
|
2208
|
+
* (subject to target extension policy under Strict OOXML).
|
|
2209
|
+
*/
|
|
2210
|
+
type SectionProps = {
|
|
2211
|
+
/** Non-empty section title shown in PowerPoint's slide sorter and outline. */
|
|
2212
|
+
readonly name: string;
|
|
2213
|
+
};
|
|
2214
|
+
/** Organizes slides into collapsible flat sections in PowerPoint. */
|
|
2215
|
+
declare const sectionPropsSchema: z.ZodType<SectionProps>;
|
|
2216
|
+
/** Target declaration interpreted by PowerPoint upon clicking an object; internal targets are resolved by page author id. */
|
|
2217
|
+
type LinkTarget = {
|
|
2218
|
+
readonly id: string;
|
|
2219
|
+
} | {
|
|
2220
|
+
readonly url: string;
|
|
2221
|
+
} | {
|
|
2222
|
+
readonly action: "home";
|
|
2223
|
+
};
|
|
2224
|
+
/** Target declaration interpreted by PowerPoint upon clicking an object; internal targets are resolved by page author id. */
|
|
2225
|
+
declare const linkTargetSchema: z.ZodType<LinkTarget>;
|
|
2226
|
+
type SlideCoreProps = SlideCoreDataProps & {
|
|
2227
|
+
readonly layout?: SlideLayoutSource | undefined;
|
|
2228
|
+
readonly placeholders?: Readonly<Record<string, unknown>> | undefined;
|
|
2229
|
+
};
|
|
2230
|
+
type SlideLayoutSource = SlideLayoutDefinition | SlideLayoutContainer;
|
|
2231
|
+
type SlideStyle = SlideCoreStyle & {
|
|
2232
|
+
readonly background?: SlideBackground | undefined;
|
|
2233
|
+
};
|
|
2234
|
+
declare class BuildQueryError extends Error {
|
|
2235
|
+
readonly code: "missing-slide" | "missing-match" | "ambiguous-match" | "invalid-query" | "invalid-reference" | "foreign-reference" | "unbound-observation";
|
|
2236
|
+
constructor(code: BuildQueryError["code"], message: string);
|
|
2130
2237
|
}
|
|
2131
|
-
export {
|
|
2238
|
+
export { slideLayoutTypeSchema as $, TextStyle as $n, TargetName as $r, MasterTextStyles as $t, SlideContainer as A, ColorMapOverride as An, nativeColorSlots as Ar, ResolvedResource as At, ResolvedSlideLayout as B, HexColor as Bn, BuildError as Br, UnmeasuredFontIssue as Bt, CommonNode as C, resourceSourceSchema as Ci, PresetGeometryName as Cn, imageBackgroundSchema as Cr, ResolvedAudio as Ct, DocumentUpdate as D, BorderValue as Dn, isTheme as Dr, ResolvedImage as Dt, DocumentStyle as E, BorderStyle as En, isSchemeColorSlot as Er, ResolvedFooterSlot as Et, FooterPlaceholderSpec as F, FontOptions as Fn, themeFontSlotSchema as Fr, ResolvedVideo as Ft, SlideMasterCoreProps as G, LinearGradient as Gn, EmitOptions as Gr, isMorphKey as Gt, SlideLayoutDefinition as H, ImageBackgroundFit as Hn, BuildDiagnostic as Hr, MorphKey as Ht, FooterPlaceholders as I, FontReference as In, themeFontSlots as Ir, ScreenPoint as It, footerPlaceholdersSchema as J, SchemeColorName as Jn, PreviewError as Jr, ContentPlaceholderRole as Jt, dateTimeFooterPlaceholderSpecSchema as K, NativeColorSlot as Kn, Extension as Kr, SealedCanvasMechanism as Kt, HeaderFooter as L, FontSize as Ln, themeInputSchema as Lr, SlideCapabilityModule as Lt, SlideMasterContainer as M, Font as Mn, schemeColorSlots as Mr, ResolvedTable as Mt, StyleUpdate as N, FontFace as Nn, textStyleSchema as Nr, ResolvedTableCell as Nt, RichTextContainer as O, BoxShadowValue as On, isThemeFontSlot as Or, ResolvedLayout as Ot, DateTimeFooterPlaceholderSpec as P, FontFaceStyle as Pn, themeDataSchema as Pr, ResolvedTableRow as Pt, resolvedSlideLayoutSchema as Q, TextFillValue as Qn, Target as Qr, MasterPlaceholderSpec as Qt, ResolvedMaster as R, FormatScheme as Rn, themeOverrideSchema as Rr, SlideLocator as Rt, CommonContainer as S, externalResourceSourceSchema as Si, PresetGeometry as Sn, imageBackgroundPositionSchema as Sr, ResolutionReport as St, DocumentProps as T, BorderObject as Tn, isSchemeColorName as Tr, ResolvedFooter as Tt, SlideLayoutType as U, ImageBackgroundPosition as Un, BuildDiagnosticFontUnavailableReason as Ur, MorphScope as Ut, SlideLayoutCoreDataProps as V, ImageBackground as Vn, CapabilityError as Vr, ResolveWork as Vt, SlideMasterCoreDataProps as W, LineHeight as Wn, BuildOptions as Wr, createMorphScope as Wt, resolvedMasterSchema as X, Shadow as Xn, PreviewPlaceholder as Xr, LayoutPlaceholderSpec as Xt, headerFooterSchema as Y, SchemeColorSlot as Yn, PreviewPageRangeError as Yr, EmptyPlaceholderMap as Yt, resolvedPlaceholderSchema as Z, TextAlignment as Zn, ResolveOptions as Zr, MasterPlaceholderMap as Zt, slideFooterValueSchema as _, DeclarationContainer as _i, paddingStyleSchema as _n, defaultTheme as _r, PreviewTransform as _t, SectionProps as a, fontEmbeddingModeSchema as ai, PlaceholderStyle as an, ThemeOverride as ar, CapabilityInput as at, AuthorQuery as b, ExternalResourceSource as bi, GeometryPath as bn, imageBackgroundFitSchema as br, Resolution as bt, SlideDateTimeValue as c, previewErrorSchema as ci, placeholderSizeSchema as cn, backgroundValueSchema as cr, EmitResult as ct, SlideStyle as d, targetNameSchema as di, LayoutStyle as dn, borderValueSchema as dr, LayoutChildReference as dt, buildDiagnosticFontUnavailableReasonSchema as ei, PlaceholderLevelStyle as en, Theme as er, slideLayoutTypeValues as et, backgroundRefSchema as f, targetSchema as fi, NonNegativeLayoutSpacing as fn, boxShadowValueSchema as fr, Locator as ft, slideDateTimeValueSchema as g, DeclarationChild as gi, layoutStyleSchema as gn, defaultColorMap as gr, ObjectTransform as gt, slideBackgroundSchema as h, authorIdSchema as hi, layoutSpacingSchema as hn, darker as hr, ObjectCapabilityModule as ht, LinkTarget as i, extensionSchema as ii, PlaceholderSize as in, ThemeInput as ir, BuildResult as it, SlideLayoutContainer as j, ColorValue as jn, schemeColorNames as jr, ResolvedSlide as jt, RichTextItem as k, ColorMap as kn, lighter as kr, ResolvedObject as kt, SlideFooterValue as l, previewPlaceholderSchema as li, LayoutLength as ln, borderObjectSchema as lr, FontStyleDescriptor as lt, sectionPropsSchema as m, AuthorId as mi, layoutLengthSchema as mn, colorMapSchema as mr, MediaTrim as mt, BackgroundRef as n, buildOptionsSchema as ni, PlaceholderMap as nn, ThemeData as nr, BoundSlideCapability as nt, SlideBackground as o, formatBaseline as oi, TextList as on, ThemeShade as or, CapabilityModule as ot, linkTargetSchema as p, targets as pi, PaddingStyle as pn, colorMapOverrideSchema as pr, LocatorResource as pt, footerPlaceholderSpecSchema as q, RadialGradient as qn, FontEmbeddingMode as qr, SealedShowMechanism as qt, DeckCoreProps as r, emitOptionsSchema as ri, PlaceholderOrient as rn, ThemeFontSlot as rr, BuildReport as rt, SlideCoreDataProps as s, formatBaselineSchema as si, TextPlaceholderRole as sn, VisualStyle as sr, CapabilityParseContext as st, BuildQueryError as t, buildDiagnosticSchema as ti, PlaceholderListStyles as tn, ThemeColor as tr, BoundObjectCapability as tt, SlideNumberValue as u, resolveOptionsSchema as ui, LayoutSpacing as un, borderStyleSchema as ur, FontUsage as ut, slideNumberValueSchema as v, DeclarationNode as vi, CustomGeometry as vn, defineTheme as vr, Rect as vt, DeckContainer as w, DateTimeFormat as wi, BackgroundValue as wn, isNativeColorSlot as wr, ResolvedComment as wt, AuthorQueryError as x, ResourceSource as xi, PathCommand as xn, imageBackgroundPositionKeywordSchema as xr, ResolutionDimensionsSummary as xt, AuthorNodeGuard as y, DeclarationText as yi, Geometry as yn, formatSchemeSchema as yr, RegisteredCapabilityModule as yt, ResolvedPlaceholder as z, GradientStop as zn, themeSchema as zr, TextMetrics as zt };
|