@officedk/pptxdk 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/LICENSE +21 -0
  2. package/dist/build-zrZuX4fK.d.ts +3 -0
  3. package/dist/build.d.ts +35 -0
  4. package/dist/build.js +128 -0
  5. package/dist/capabilities/dist/all.js +34 -0
  6. package/dist/capabilities/dist/box/box-codegen.js +84 -0
  7. package/dist/capabilities/dist/box/box-declaration.js +32 -0
  8. package/dist/capabilities/dist/box/box-elements.js +17 -0
  9. package/dist/capabilities/dist/box/box.js +142 -0
  10. package/dist/capabilities/dist/chart/chart-codegen.js +79 -0
  11. package/dist/capabilities/dist/chart/chart-declaration.js +7 -0
  12. package/dist/capabilities/dist/chart/chart-elements.js +12 -0
  13. package/dist/capabilities/dist/chart/chart-import.js +2403 -0
  14. package/dist/capabilities/dist/chart/chart-labels.js +86 -0
  15. package/dist/capabilities/dist/chart/chart-model.js +9 -0
  16. package/dist/capabilities/dist/chart/chart-schemas.js +1088 -0
  17. package/dist/capabilities/dist/chart/chart-xml.js +788 -0
  18. package/dist/capabilities/dist/chart/chart.js +1119 -0
  19. package/dist/capabilities/dist/chart/preview/axes-and-grid.js +311 -0
  20. package/dist/capabilities/dist/chart/preview/bar-column.js +143 -0
  21. package/dist/capabilities/dist/chart/preview/data-labels.js +334 -0
  22. package/dist/capabilities/dist/chart/preview/error-bars.js +213 -0
  23. package/dist/capabilities/dist/chart/preview/index.js +192 -0
  24. package/dist/capabilities/dist/chart/preview/layout.js +592 -0
  25. package/dist/capabilities/dist/chart/preview/legend.js +273 -0
  26. package/dist/capabilities/dist/chart/preview/line-area.js +404 -0
  27. package/dist/capabilities/dist/chart/preview/markers.js +100 -0
  28. package/dist/capabilities/dist/chart/preview/number-format.js +247 -0
  29. package/dist/capabilities/dist/chart/preview/pie-doughnut.js +159 -0
  30. package/dist/capabilities/dist/chart/preview/scales.js +365 -0
  31. package/dist/capabilities/dist/chart/preview/scatter.js +131 -0
  32. package/dist/capabilities/dist/chart/preview/style.js +60 -0
  33. package/dist/capabilities/dist/chart/preview/text-render.js +116 -0
  34. package/dist/capabilities/dist/chart/preview/trendlines.js +537 -0
  35. package/dist/capabilities/dist/chart/preview/types.js +5 -0
  36. package/dist/capabilities/dist/document.js +168 -0
  37. package/dist/capabilities/dist/font/font-embedding.js +119 -0
  38. package/dist/capabilities/dist/font/font-engine.js +834 -0
  39. package/dist/capabilities/dist/font/font-import.js +766 -0
  40. package/dist/capabilities/dist/font/font-subset.js +55 -0
  41. package/dist/capabilities/dist/font/font.js +72 -0
  42. package/dist/capabilities/dist/group/group-codegen.js +74 -0
  43. package/dist/capabilities/dist/group/group-declaration.js +41 -0
  44. package/dist/capabilities/dist/group/group-elements.js +12 -0
  45. package/dist/capabilities/dist/group/group-import.js +649 -0
  46. package/dist/capabilities/dist/group/group-xml.js +8 -0
  47. package/dist/capabilities/dist/group/group.js +260 -0
  48. package/dist/capabilities/dist/image/gif-decoder.js +244 -0
  49. package/dist/capabilities/dist/image/image-codegen.js +164 -0
  50. package/dist/capabilities/dist/image/image-declaration.js +8 -0
  51. package/dist/capabilities/dist/image/image-decode.js +244 -0
  52. package/dist/capabilities/dist/image/image-elements.js +12 -0
  53. package/dist/capabilities/dist/image/image-import.js +984 -0
  54. package/dist/capabilities/dist/image/image-schemas.js +147 -0
  55. package/dist/capabilities/dist/image/image-xml.js +12 -0
  56. package/dist/capabilities/dist/image/image.js +552 -0
  57. package/dist/capabilities/dist/line/line-codegen.js +89 -0
  58. package/dist/capabilities/dist/line/line-declaration.js +72 -0
  59. package/dist/capabilities/dist/line/line-elements.js +12 -0
  60. package/dist/capabilities/dist/line/line-import.js +504 -0
  61. package/dist/capabilities/dist/line/line-xml.js +9 -0
  62. package/dist/capabilities/dist/line/line.js +331 -0
  63. package/dist/capabilities/dist/masters/footer-placeholder.js +683 -0
  64. package/dist/capabilities/dist/masters/masters-codegen.js +69 -0
  65. package/dist/capabilities/dist/masters/masters.js +250 -0
  66. package/dist/capabilities/dist/motion/motion-api.js +757 -0
  67. package/dist/capabilities/dist/motion/motion-codegen.js +406 -0
  68. package/dist/capabilities/dist/motion/motion-elements.js +43 -0
  69. package/dist/capabilities/dist/motion/motion-import.js +1568 -0
  70. package/dist/capabilities/dist/motion/motion-plan.js +2340 -0
  71. package/dist/capabilities/dist/motion/motion-query.js +423 -0
  72. package/dist/capabilities/dist/motion/motion-schemas.js +339 -0
  73. package/dist/capabilities/dist/motion/motion.js +1617 -0
  74. package/dist/capabilities/dist/notes/notes-codegen.js +19 -0
  75. package/dist/capabilities/dist/notes/notes-declaration.js +8 -0
  76. package/dist/capabilities/dist/notes/notes-elements.js +12 -0
  77. package/dist/capabilities/dist/notes/notes-import.js +292 -0
  78. package/dist/capabilities/dist/notes/notes-schemas.js +38 -0
  79. package/dist/capabilities/dist/notes/notes-xml.js +38 -0
  80. package/dist/capabilities/dist/notes/notes.js +194 -0
  81. package/dist/capabilities/dist/placeholder/placeholder-codegen.js +54 -0
  82. package/dist/capabilities/dist/placeholder/placeholder-elements.js +13 -0
  83. package/dist/capabilities/dist/placeholder/placeholder-schemas.js +33 -0
  84. package/dist/capabilities/dist/placeholder/placeholder.js +451 -0
  85. package/dist/capabilities/dist/shape/shape-codegen.js +236 -0
  86. package/dist/capabilities/dist/shape/shape-declaration.js +45 -0
  87. package/dist/capabilities/dist/shape/shape-elements.js +12 -0
  88. package/dist/capabilities/dist/shape/shape-import.js +628 -0
  89. package/dist/capabilities/dist/shape/shape-xml.js +6 -0
  90. package/dist/capabilities/dist/shape/shape.js +320 -0
  91. package/dist/capabilities/dist/shared/geometry.js +1681 -0
  92. package/dist/capabilities/dist/shared/identity.js +205 -0
  93. package/dist/capabilities/dist/shared/morph-api.js +11 -0
  94. package/dist/capabilities/dist/shared/placeholder-import.js +238 -0
  95. package/dist/capabilities/dist/shared/preset-definitions.js +22423 -0
  96. package/dist/capabilities/dist/shared/style-inheritance.js +161 -0
  97. package/dist/capabilities/dist/shared/text-schemas.js +241 -0
  98. package/dist/capabilities/dist/shared/text-service.js +2252 -0
  99. package/dist/capabilities/dist/shared/visual.js +1197 -0
  100. package/dist/capabilities/dist/slide-background/slide-background-codegen.js +44 -0
  101. package/dist/capabilities/dist/slide-background/slide-background-import.js +166 -0
  102. package/dist/capabilities/dist/slide-background/slide-background-xml.js +34 -0
  103. package/dist/capabilities/dist/slide-background/slide-background.js +238 -0
  104. package/dist/capabilities/dist/table/table-codegen.js +125 -0
  105. package/dist/capabilities/dist/table/table-declaration.js +15 -0
  106. package/dist/capabilities/dist/table/table-elements.js +27 -0
  107. package/dist/capabilities/dist/table/table-import.js +606 -0
  108. package/dist/capabilities/dist/table/table-schemas.js +334 -0
  109. package/dist/capabilities/dist/table/table-xml.js +30 -0
  110. package/dist/capabilities/dist/table/table.js +739 -0
  111. package/dist/capabilities/dist/text/text-codegen.js +198 -0
  112. package/dist/capabilities/dist/text/text-declaration.js +27 -0
  113. package/dist/capabilities/dist/text/text-elements.js +54 -0
  114. package/dist/capabilities/dist/text/text-import.js +1224 -0
  115. package/dist/capabilities/dist/text/text-xml.js +9 -0
  116. package/dist/capabilities/dist/text/text.js +320 -0
  117. package/dist/capabilities/dist/transition/transition-api.js +136 -0
  118. package/dist/capabilities/dist/transition/transition-codegen.js +45 -0
  119. package/dist/capabilities/dist/transition/transition-import.js +477 -0
  120. package/dist/capabilities/dist/transition/transition.js +260 -0
  121. package/dist/capability-BbKW9w4O.d.ts +2131 -0
  122. package/dist/cli.js +20 -0
  123. package/dist/codegen/dist/assets.js +79 -0
  124. package/dist/codegen/dist/codegen.js +691 -0
  125. package/dist/codegen/dist/identifiers.js +203 -0
  126. package/dist/codegen/dist/index.js +3 -0
  127. package/dist/codegen/dist/printer.js +143 -0
  128. package/dist/codegen/dist/types.js +77 -0
  129. package/dist/core/dist/author-ids.js +51 -0
  130. package/dist/core/dist/author-schemas.js +330 -0
  131. package/dist/core/dist/block-flex-layout.js +801 -0
  132. package/dist/core/dist/build.js +4 -0
  133. package/dist/core/dist/capability.js +15 -0
  134. package/dist/core/dist/declaration.js +16 -0
  135. package/dist/core/dist/diagnostics.js +353 -0
  136. package/dist/core/dist/document-internals.js +26 -0
  137. package/dist/core/dist/document.js +417 -0
  138. package/dist/core/dist/font-seal.js +204 -0
  139. package/dist/core/dist/geometry-schemas.js +256 -0
  140. package/dist/core/dist/grid-layout.js +449 -0
  141. package/dist/core/dist/host.js +40 -0
  142. package/dist/core/dist/index.js +15 -0
  143. package/dist/core/dist/input-values.js +61 -0
  144. package/dist/core/dist/layout-protocol.js +61 -0
  145. package/dist/core/dist/layout-schemas.js +201 -0
  146. package/dist/core/dist/layout.js +340 -0
  147. package/dist/core/dist/masters.js +194 -0
  148. package/dist/core/dist/morph.js +30 -0
  149. package/dist/core/dist/placeholders.js +275 -0
  150. package/dist/core/dist/query.js +190 -0
  151. package/dist/core/dist/resolution.js +12 -0
  152. package/dist/core/dist/resolve.js +2246 -0
  153. package/dist/core/dist/stage-options.js +300 -0
  154. package/dist/core/dist/theme.js +1023 -0
  155. package/dist/core/dist/transform-geometry.js +72 -0
  156. package/dist/document-41spD7bq.d.ts +1350 -0
  157. package/dist/emit/dist/emit.js +957 -0
  158. package/dist/emit/dist/index.js +5 -0
  159. package/dist/emit/dist/ooxml.js +661 -0
  160. package/dist/emit/dist/shape-tree.js +12 -0
  161. package/dist/import/dist/alternate-content.js +54 -0
  162. package/dist/import/dist/diagnostics.js +157 -0
  163. package/dist/import/dist/fonts.js +309 -0
  164. package/dist/import/dist/import.js +513 -0
  165. package/dist/import/dist/index.js +16 -0
  166. package/dist/import/dist/masters.js +1293 -0
  167. package/dist/import/dist/mechanism.js +10 -0
  168. package/dist/import/dist/namespaces.js +61 -0
  169. package/dist/import/dist/notes-masters.js +300 -0
  170. package/dist/import/dist/opc.js +233 -0
  171. package/dist/import/dist/resources.js +166 -0
  172. package/dist/import/dist/sections.js +139 -0
  173. package/dist/import/dist/themes.js +777 -0
  174. package/dist/import/dist/visual.js +821 -0
  175. package/dist/import/dist/xml-fragments.js +277 -0
  176. package/dist/import/dist/xml-reader.js +267 -0
  177. package/dist/index-1ag7U9Jt.d.ts +63 -0
  178. package/dist/index-BEwhk7c8.d.ts +72 -0
  179. package/dist/index-cK2KtukZ.d.ts +161 -0
  180. package/dist/index-v77CTJev.d.ts +55 -0
  181. package/dist/index.d.ts +8 -0
  182. package/dist/index.js +82 -0
  183. package/dist/node.d.ts +53 -0
  184. package/dist/node.js +225 -0
  185. package/dist/pptxdk/src/cli-commands.js +907 -0
  186. package/dist/pptxdk/src/compose.js +53 -0
  187. package/dist/pptxdk/src/slide.js +9 -0
  188. package/dist/preview/dist/index.js +342 -0
  189. package/dist/preview/dist/options.js +40 -0
  190. package/dist/preview/dist/svg-guard.js +1089 -0
  191. package/dist/preview.d.ts +12 -0
  192. package/dist/preview.js +29 -0
  193. package/dist/react/dist/append.js +66 -0
  194. package/dist/react/dist/document-adapter.js +404 -0
  195. package/dist/react/dist/elements.js +82 -0
  196. package/dist/react/dist/from-vanilla.js +57 -0
  197. package/dist/react/dist/index.js +89 -0
  198. package/dist/react/dist/mount.js +34 -0
  199. package/dist/react/dist/reconciler.js +290 -0
  200. package/dist/react.d.ts +235 -0
  201. package/dist/react.js +31 -0
  202. package/dist/transition-6n8GZxSg.d.ts +9 -0
  203. package/dist/vanilla.d.ts +4 -0
  204. package/dist/vanilla.js +15 -0
  205. package/package.json +79 -3
  206. package/README.md +0 -3
@@ -0,0 +1,89 @@
1
+ import { BuildError, toBuildDiagnostic } from "../../core/dist/diagnostics.js";
2
+ import "../../core/dist/index.js";
3
+ import { assertAppendableAuthorIds } from "./append.js";
4
+ import { expandReactDocument, expandReactFragment } from "./reconciler.js";
5
+ import { Deck, Section, Slide, SlideLayout, SlideMaster } from "./elements.js";
6
+ import { Mount } from "./mount.js";
7
+ import { fromVanilla } from "./from-vanilla.js";
8
+ // ../react/dist/index.js
9
+ function diagnostic(path, code, message) {
10
+ return toBuildDiagnostic(path, code, message);
11
+ }
12
+ function reactFailure(error, path = "deck") {
13
+ return new BuildError([diagnostic(path, "react-render", error instanceof Error ? error.message : String(error))]);
14
+ }
15
+ /**
16
+ * Public React handoff entry: runs author components to completion, waits for declared content,
17
+ * cleans up the React root, and returns the completed editable document.
18
+ *
19
+ * The returned nodes no longer synchronize with the finished root. Repeat expansion creates a new
20
+ * document instance and does not merge edits made to a previous result. Unhandled render errors,
21
+ * cancellation, and cleanup failures reject; no partial document is returned.
22
+ */
23
+ async function expandDocument(element, options = {}) {
24
+ const signal = options.signal;
25
+ try {
26
+ return await expandReactDocument(element, signal);
27
+ } catch (error) {
28
+ if (signal?.aborted && error === signal.reason) throw error;
29
+ if (error instanceof BuildError) throw error;
30
+ throw reactFailure(error);
31
+ }
32
+ }
33
+ function appendFailure(error) {
34
+ return new BuildError([diagnostic("fragment", "append", error instanceof Error ? error.message : String(error))]);
35
+ }
36
+ /**
37
+ * Public React fragment handoff entry: runs a standalone JSX fragment to completion, waits for
38
+ * declared async content and root cleanup, and returns frozen ownerless top-level editable nodes.
39
+ *
40
+ * The returned nodes no longer synchronize with the finished root and have `parent === undefined`.
41
+ * Top-level non-whitespace text, unhandled render errors, cleanup failures, and cancellation reject
42
+ * without returning partial results.
43
+ */
44
+ async function expandFragment(element, options = {}) {
45
+ const signal = options.signal;
46
+ try {
47
+ return await expandReactFragment(element, signal);
48
+ } catch (error) {
49
+ if (signal?.aborted && error === signal.reason) throw error;
50
+ if (error instanceof BuildError) throw error;
51
+ throw reactFailure(error, "fragment");
52
+ }
53
+ }
54
+ /**
55
+ * Public React append entry: expands one standalone JSX fragment, waits for final content and
56
+ * cleanup, then appends its top-level editable nodes to `target` as one batch.
57
+ *
58
+ * The fragment runs in its own root, so React context comes from the fragment or an explicit
59
+ * Provider inside it; the target's finished root is not revived. Expansion, unhandled errors,
60
+ * cancellation, cleanup failures, and id conflicts leave the target unchanged. Id conflicts are
61
+ * checked against the target's current structure at commit time, so edits made while the fragment
62
+ * expands are respected. The returned nodes are the exact instances now owned by the target.
63
+ */
64
+ async function appendJSX(target, element, options = {}) {
65
+ const signal = options.signal;
66
+ let nodes;
67
+ try {
68
+ nodes = await expandFragment(element, options);
69
+ } catch (error) {
70
+ if (signal?.aborted && error === signal.reason) throw error;
71
+ if (error instanceof BuildError) {
72
+ if (!error.diagnostics.some((item) => item.code === "render-failed" && item.phase === "expand")) throw error;
73
+ throw new BuildError(error.diagnostics.map((item) => item.code === "render-failed" && item.phase === "expand" ? {
74
+ ...item,
75
+ phase: "append"
76
+ } : item));
77
+ }
78
+ throw appendFailure(error);
79
+ }
80
+ try {
81
+ assertAppendableAuthorIds(target, nodes);
82
+ target.append(...nodes);
83
+ return nodes;
84
+ } catch (error) {
85
+ if (error instanceof BuildError) throw error;
86
+ throw appendFailure(error);
87
+ }
88
+ }
89
+ export { Deck, Mount, Section, Slide, SlideLayout, SlideMaster, appendJSX, expandDocument, expandFragment, fromVanilla };
@@ -0,0 +1,34 @@
1
+ import { createElement } from "react";
2
+ // ../react/dist/mount.js
3
+ const hostMountMarker = "__pptxdkMount";
4
+ const hostMountPlaceholder = "__pptxdkMountPlaceholder";
5
+ const mountHostType = "__pptxdk-mount";
6
+ /**
7
+ * Adopts pre-constructed {@link CommonNode} instances directly into the React tree without
8
+ * creating a wrapper node.
9
+ *
10
+ * Adopted nodes retain their own props, identity, and imperative subtree, participate in layout
11
+ * and motion, and enforce strict single-parent ownership. When `slot` is provided,
12
+ * JSX `children` are reconciled inside `slot` after any imperative preset children.
13
+ */
14
+ function Mount(props) {
15
+ return createElement(mountHostType, {
16
+ [hostMountMarker]: true,
17
+ node: props.node,
18
+ slot: props.slot
19
+ }, props.children);
20
+ }
21
+ /**
22
+ * Internal helper used by `<Slide placeholders={{ ... }} />` so object-node placeholder bindings
23
+ * are carried into the commit phase instead of mutating external nodes during React render.
24
+ */
25
+ function createPlaceholderMount(placeholder, node) {
26
+ return createElement(mountHostType, {
27
+ key: `__ph_${placeholder}`,
28
+ [hostMountMarker]: true,
29
+ [hostMountPlaceholder]: placeholder,
30
+ node,
31
+ slot: void 0
32
+ });
33
+ }
34
+ export { Mount, createPlaceholderMount, hostMountMarker, hostMountPlaceholder, mountHostType };
@@ -0,0 +1,290 @@
1
+ import { BuildError, toBuildDiagnostic } from "../../core/dist/diagnostics.js";
2
+ import "../../core/dist/index.js";
3
+ import { CommonContainer, CommonNode } from "../../core/dist/document.js";
4
+ import { appendInitialHostChild, commitMountHostInstance, createHostContainer, createHostInstance, createHostText, insertHostChild, isMountHostRecord, lockHandoffTree, releaseContainerMounts, removeHostChild, updateHostInstance, updateHostText } from "./document-adapter.js";
5
+ import { createContext } from "react";
6
+ import Reconciler from "react-reconciler";
7
+ import { ConcurrentRoot, DefaultEventPriority } from "react-reconciler/constants.js";
8
+ // ../react/dist/reconciler.js
9
+ let currentUpdatePriority = 0;
10
+ const suspenseComponentTag = 13;
11
+ const hostTransitionContext = createContext(null);
12
+ const reconciler = Reconciler({
13
+ supportsMutation: true,
14
+ supportsPersistence: false,
15
+ supportsHydration: false,
16
+ isPrimaryRenderer: false,
17
+ rendererVersion: "0.0.0",
18
+ rendererPackageName: "@pptxdk/react",
19
+ extraDevToolsConfig: null,
20
+ noTimeout: -1,
21
+ scheduleTimeout: setTimeout,
22
+ cancelTimeout: clearTimeout,
23
+ NotPendingTransition: null,
24
+ HostTransitionContext: hostTransitionContext,
25
+ createInstance(type, props, rootContainer) {
26
+ return createHostInstance(type, props, rootContainer);
27
+ },
28
+ createTextInstance(text, rootContainer) {
29
+ return createHostText(text, rootContainer);
30
+ },
31
+ appendInitialChild(parent, child) {
32
+ appendInitialHostChild(parent, child);
33
+ },
34
+ appendChild(parent, child) {
35
+ insertHostChild(parent, child);
36
+ },
37
+ appendChildToContainer(container, child) {
38
+ insertHostChild(container, child);
39
+ },
40
+ insertBefore(parent, child, before) {
41
+ insertHostChild(parent, child, before);
42
+ },
43
+ insertInContainerBefore(container, child, before) {
44
+ insertHostChild(container, child, before);
45
+ },
46
+ removeChild(parent, child) {
47
+ removeHostChild(parent, child);
48
+ },
49
+ removeChildFromContainer(container, child) {
50
+ removeHostChild(container, child);
51
+ },
52
+ commitUpdate(instance, _type, _previous, next) {
53
+ updateHostInstance(instance, next);
54
+ },
55
+ commitTextUpdate(textInstance, _previous, next) {
56
+ updateHostText(textInstance, next);
57
+ },
58
+ hideInstance() {},
59
+ hideTextInstance() {},
60
+ unhideInstance() {},
61
+ unhideTextInstance() {},
62
+ resetTextContent() {},
63
+ clearContainer(container) {
64
+ container.children.length = 0;
65
+ container.hostOrder.length = 0;
66
+ },
67
+ finalizeInitialChildren: (instance) => isMountHostRecord(instance),
68
+ commitMount(instance) {
69
+ commitMountHostInstance(instance);
70
+ },
71
+ shouldSetTextContent: () => false,
72
+ getRootHostContext: () => ({}),
73
+ getChildHostContext: (parent) => parent,
74
+ getPublicInstance: () => null,
75
+ prepareForCommit: () => null,
76
+ resetAfterCommit() {},
77
+ preparePortalMount() {},
78
+ getInstanceFromNode: () => null,
79
+ beforeActiveInstanceBlur() {},
80
+ afterActiveInstanceBlur() {},
81
+ prepareScopeUpdate() {},
82
+ getInstanceFromScope: () => null,
83
+ detachDeletedInstance() {},
84
+ bindToConsole: (methodName, args) => Function.prototype.bind.call(console[methodName], console, ...args),
85
+ setCurrentUpdatePriority(priority) {
86
+ currentUpdatePriority = priority;
87
+ },
88
+ getCurrentUpdatePriority: () => currentUpdatePriority,
89
+ resolveUpdatePriority: () => currentUpdatePriority === 0 ? DefaultEventPriority : currentUpdatePriority,
90
+ resetFormInstance() {},
91
+ requestPostPaintCallback() {},
92
+ shouldAttemptEagerTransition: () => false,
93
+ trackSchedulerEvent() {},
94
+ resolveEventType: () => null,
95
+ resolveEventTimeStamp: () => -1.1,
96
+ maySuspendCommit: () => false,
97
+ maySuspendCommitOnUpdate: () => false,
98
+ maySuspendCommitInSyncRender: () => false,
99
+ preloadInstance: () => true,
100
+ startSuspendingCommit: () => null,
101
+ suspendInstance() {},
102
+ suspendOnActiveViewTransition() {},
103
+ waitForCommitToBeReady: () => null,
104
+ getSuspendedCommitReason: () => null
105
+ });
106
+ function containsSuspendedBoundary(fiber) {
107
+ for (let current = fiber; current !== null; current = current.sibling) {
108
+ if (current.tag === suspenseComponentTag && current.memoizedState !== null) return true;
109
+ if (containsSuspendedBoundary(current.child)) return true;
110
+ }
111
+ return false;
112
+ }
113
+ function diagnostic(path, code, message) {
114
+ return toBuildDiagnostic(path, code, message);
115
+ }
116
+ function isDeckNode(node) {
117
+ return node instanceof CommonContainer && node.type === "deck";
118
+ }
119
+ /**
120
+ * Selects the single completed Deck root before renderer teardown.
121
+ *
122
+ * Root-level checks mirror the formal declaration contract so an invalid React tree fails expansion
123
+ * with the same diagnostics instead of silently handing off a partial document.
124
+ */
125
+ function completedDocument(container) {
126
+ const nodes = container.children.filter((child) => child instanceof CommonNode);
127
+ if (nodes.length !== 1 || !isDeckNode(nodes[0])) throw new BuildError([diagnostic("deck", "document-root", "Build content must have exactly one Deck root component")]);
128
+ if (container.children.some((child) => !("props" in child) && child.text.trim() !== "")) throw new BuildError([diagnostic("deck", "unexpected-text", "No text allowed outside the Deck root component")]);
129
+ return nodes[0];
130
+ }
131
+ /**
132
+ * Runs one dedicated React root to completion and hands off content selected from its final commit.
133
+ *
134
+ * React creates and updates the same `CommonNode` instances the caller receives. On completion the
135
+ * candidate is closed to further adapter edits before renderer teardown, then the root is unmounted
136
+ * and its listeners/adapter state are cleaned up. The candidate is returned only when both expansion
137
+ * and cleanup succeed; unhandled errors, cancellation, and cleanup failures reject the expansion.
138
+ */
139
+ async function expandReactRoot(element, signal, select) {
140
+ if (signal?.aborted) throw signal.reason;
141
+ const container = createHostContainer();
142
+ let outcome = "running";
143
+ let outcomeError;
144
+ let cleanupError;
145
+ let cleaning = false;
146
+ let resolveCompletion = () => {};
147
+ let rejectCompletion = (_error) => {};
148
+ const completion = new Promise((resolve, reject) => {
149
+ resolveCompletion = resolve;
150
+ rejectCompletion = reject;
151
+ });
152
+ const finish = (next, error) => {
153
+ if (outcome !== "running") return;
154
+ outcome = next;
155
+ outcomeError = error;
156
+ if (next === "completed") resolveCompletion();
157
+ else rejectCompletion(error);
158
+ };
159
+ let queueCompletionCheck = () => {};
160
+ const root = reconciler.createContainer(container, ConcurrentRoot, null, false, null, "pptxdk", (error) => {
161
+ if (cleaning) cleanupError ??= { error };
162
+ else if (outcome === "running") finish("failed", error);
163
+ }, () => {}, () => {}, () => {}, null);
164
+ const fiberRoot = root;
165
+ const currentDescriptor = Object.getOwnPropertyDescriptor(root, "current");
166
+ let current = fiberRoot.current;
167
+ let currentAdapterInstalled = false;
168
+ let abortListenerInstalled = false;
169
+ let revision = 0;
170
+ let operationError;
171
+ let operationFailed = false;
172
+ let candidate;
173
+ let rootError;
174
+ const currentOutcome = () => outcome;
175
+ const onAbort = () => finish("cancelled", signal?.reason);
176
+ try {
177
+ if (currentDescriptor?.configurable !== true || currentDescriptor.writable !== true) throw new Error("Current React root does not support verified commit observation adaptation");
178
+ queueCompletionCheck = () => {
179
+ if (outcome !== "running") return;
180
+ try {
181
+ const observedRevision = ++revision;
182
+ queueMicrotask(() => {
183
+ if (outcome !== "running" || observedRevision !== revision) return;
184
+ try {
185
+ reconciler.flushPassiveEffects();
186
+ if (outcome !== "running" || observedRevision !== revision) return;
187
+ if (!containsSuspendedBoundary(fiberRoot.current) && fiberRoot.pendingLanes === 0) finish("completed");
188
+ } catch (error) {
189
+ finish("failed", error);
190
+ }
191
+ });
192
+ } catch (error) {
193
+ finish("failed", error);
194
+ }
195
+ };
196
+ Object.defineProperty(root, "current", {
197
+ enumerable: currentDescriptor.enumerable === true,
198
+ configurable: true,
199
+ get: () => current,
200
+ set(next) {
201
+ current = next;
202
+ queueCompletionCheck();
203
+ }
204
+ });
205
+ currentAdapterInstalled = true;
206
+ if (signal !== void 0) {
207
+ signal.addEventListener("abort", onAbort, { once: true });
208
+ abortListenerInstalled = true;
209
+ if (signal.aborted) onAbort();
210
+ }
211
+ if (outcome === "running") reconciler.updateContainer(element, root, null, null);
212
+ try {
213
+ await completion;
214
+ if (currentOutcome() === "completed") try {
215
+ candidate = select(container);
216
+ } catch (error) {
217
+ if (error instanceof BuildError) rootError = error;
218
+ else throw error;
219
+ }
220
+ } catch (error) {
221
+ operationFailed = true;
222
+ operationError = error;
223
+ }
224
+ } catch (error) {
225
+ operationFailed = true;
226
+ operationError = error;
227
+ } finally {
228
+ cleaning = true;
229
+ const attemptCleanup = (cleanup) => {
230
+ try {
231
+ cleanup();
232
+ } catch (error) {
233
+ cleanupError ??= { error };
234
+ }
235
+ };
236
+ try {
237
+ attemptCleanup(() => {
238
+ reconciler.updateContainerSync(null, root, null, null);
239
+ });
240
+ attemptCleanup(() => reconciler.flushSyncWork());
241
+ attemptCleanup(() => reconciler.flushPassiveEffects());
242
+ attemptCleanup(() => releaseContainerMounts(container));
243
+ } finally {
244
+ if (currentAdapterInstalled && currentDescriptor !== void 0) attemptCleanup(() => {
245
+ Object.defineProperty(root, "current", {
246
+ ...currentDescriptor,
247
+ value: current
248
+ });
249
+ });
250
+ if (abortListenerInstalled && signal !== void 0) attemptCleanup(() => signal.removeEventListener("abort", onAbort));
251
+ }
252
+ }
253
+ const finalOutcome = currentOutcome();
254
+ if (operationFailed) throw operationError;
255
+ if (finalOutcome === "failed" || finalOutcome === "cancelled") throw outcomeError;
256
+ if (cleanupError !== void 0) throw cleanupError.error;
257
+ if (rootError !== void 0) throw rootError;
258
+ if (finalOutcome !== "completed" || candidate === void 0) throw new Error("React expansion did not produce handoff content");
259
+ return candidate;
260
+ }
261
+ /**
262
+ * Runs a dedicated React root to completion and hands off the completed common document.
263
+ *
264
+ * The document is returned only when both expansion and cleanup succeed; unhandled errors,
265
+ * cancellation, and cleanup failures reject the expansion.
266
+ */
267
+ async function expandReactDocument(element, signal) {
268
+ return expandReactRoot(element, signal, (container) => {
269
+ const candidate = completedDocument(container);
270
+ lockHandoffTree(container);
271
+ return candidate;
272
+ });
273
+ }
274
+ function completedFragment(container) {
275
+ const nodes = container.children.filter((child) => child instanceof CommonNode);
276
+ if (container.children.some((child) => "text" in child && child.text.trim() !== "")) throw new BuildError([diagnostic("fragment", "unexpected-text", "No text allowed outside an editable node in a JSX fragment")]);
277
+ const frozen = Object.freeze(nodes);
278
+ lockHandoffTree(container);
279
+ return frozen;
280
+ }
281
+ /**
282
+ * Runs a dedicated React root to completion and hands off top-level editable nodes from a fragment.
283
+ *
284
+ * The same renderer, completion wait, cleanup, and handoff lock as `expandReactDocument` apply; the
285
+ * fragment does not need a Deck root because it is staged ownerless until the caller appends it.
286
+ */
287
+ async function expandReactFragment(element, signal) {
288
+ return expandReactRoot(element, signal, completedFragment);
289
+ }
290
+ export { expandReactDocument, expandReactFragment };
@@ -0,0 +1,235 @@
1
+ import { $r as lighter, $t as DeckProps$1, A as isSlideLayoutDefinition, An as CustomGeometry, Bn as PaddingStyle, Br as defineTheme, C as SlideLayoutDefinition, Cn as PlaceholderMap, Cr as ThemeColor, Dn as TextList, Dr as ThemeOverride, En as PlaceholderStyle, Er as ThemeInput, Et as BuildDiagnostic, Fn as PresetGeometryName, G as FontUsage, In as LayoutLength, Jr as isNativeColorSlot, Ln as LayoutSpacing, Lr as darker, Mn as GeometryPath, Nn as PathCommand, On as TextPlaceholderRole, Or as ThemeShade, Pn as PresetGeometry, Q as Rect, Qn as ColorValue, Qr as isThemeFontSlot, Rn as LayoutStyle, Rr as defaultColorMap, Sn as PlaceholderListStyles, Sr as Theme, T as SlideLayoutType, Tn as PlaceholderSize, Tr as ThemeFontSlot, W as FontStyleDescriptor, X as ObjectTransform, Xn as ColorMap, Xr as isSchemeColorSlot, Yr as isSchemeColorName, Zn as ColorMapOverride, Zr as isTheme, _ as FooterPlaceholders, _n as MasterPlaceholderMap, _r as SchemeColorName, _t as UnmeasuredFontIssue, a as CommonNode, an as SlideProps$2, ar as FontSize, b as ResolvedPlaceholder, bn as NativePlaceholderRef, br as TextAlignment, bt as createMorphScope, c as DocumentStyle, cr as HexColor, d as RichTextItem, dt as ResolvedTableCell, ei as nativeColorSlots, en as LinkTarget, er as Font, f as SlideContainer, ft as ResolvedTableRow, g as FooterPlaceholderSpec, gn as LayoutPlaceholderSpec, gr as RadialGradient, gt as TextMetrics, h as StyleUpdate, hn as EmptyPlaceholderMap, hr as NativeColorSlot, ht as SlideLocator, i as CommonContainer, in as SlideNumberValue, ir as FontReference, it as ResolvedFooterSlot, jn as Geometry, kr as VisualStyle, l as DocumentUpdate, lt as ResolvedSlide, m as SlideMasterContainer, mn as ContentPlaceholderRole, mr as LinearGradient, n as AuthorQuery, ni as schemeColorSlots, nn as SlideBackground, nr as FontFaceStyle, o as DeckContainer, oi as themeFontSlots, or as FormatScheme, ot as ResolvedLayout, p as SlideLayoutContainer, pr as LineHeight, pt as ScreenPoint, r as AuthorQueryError, rn as SlideFooterValue, rr as FontOptions, rt as ResolvedFooter, s as DocumentProps, sr as GradientStop, st as ResolvedObject, t as AuthorNodeGuard, ti as schemeColorNames, tn as SectionProps$1, tr as FontFace, u as RichTextContainer, ui as AuthorId, ut as ResolvedTable, v as HeaderFooter, vn as MasterPlaceholderSpec, vr as SchemeColorSlot, vt as MorphKey, wn as PlaceholderOrient, wr as ThemeData, x as ResolvedSlideLayout, xn as PlaceholderLevelStyle, xr as TextStyle, xt as isMorphKey, y as ResolvedMaster, yn as MasterTextStyles, yr as Shadow, yt as MorphScope, zr as defaultTheme, zt as buildDiagnosticSchema } from "./capability-BbKW9w4O.js";
2
+ import { r as ArrowType } from "./index-cK2KtukZ.js";
3
+ import { $ as defineSlideLayout, $n as ChartTitle, $r as floatUp, $t as MotionDependency, A as SlideLayoutAuthorProps, Ai as InstantEffectOptions, An as ChartAxisReferences, Ar as SlideNumberDeclarationProps, At as ShapeTextStyle, Bn as ChartGroup, Br as ResolvedMotionStep, Bt as TableSpacing, Ci as EmphasisEffectDeclaration, Cn as ImageSource, Cr as PathOptions, Ct as StandardTransition, Di as ExitEffectDeclaration, Dn as ChartAxis, Dr as ParagraphDeclarationProps, Dt as TransitionDuration, Ei as ExitEffect, Er as preset, Et as TransitionDirection, Fi as MotionMomentOffset, Fn as ChartDataLabels, Fr as MotionNativeProjection, Ft as RowDeclarationProps, Gi as OwnerMotionStep, Gn as ChartMarker, Gr as collapse, Hi as MotionTiming, Hn as ChartKind, Hr as after, Ht as TableTextStyle, Ii as MotionProps, In as ChartDisplayBlanksAs, Ir as MotionScopeProps, It as TableCellStyle, Ji as RepeatedEffect, Jn as ChartProps, Jr as fade, Jt as NotesDeclarationProps, Ki as OwnerMotionTarget, Kn as ChartMarkerSymbol, Kr as createMotionScopeHandle, Kt as PlaceholderDeclarationProps, Ln as ChartErrorBarInclude, Lr as MotionStartDependency, Lt as TableColumn, M as SlideLayoutSource, Mi as MotionDirection, Mn as ChartCategoryAxisReferences, Mr as SubDeclarationProps, N as SlideMasterAuthorProps, Ni as MotionGranularity, Nn as ChartCustomErrorBars, Nr as SupDeclarationProps, Oi as ExitPreset, On as ChartAxisCrossing, Or as ParagraphStyle, Ot as TransitionSpeed, Pi as MotionMoment, Pn as ChartDataLabelOverride, Pr as TextDeclarationProps, Pt as CellDeclarationProps, Qn as ChartTickMark, Qr as floatOut, Qt as MotionDecision, Ri as MotionScopeHandle, Rn as ChartErrorBarValues, Rr as ResolvedMotionEffect, Rt as TableDeclarationProps, Si as EmphasisEffect, Sn as ImageDeclarationProps, Sr as radialGradient, St as MorphTransition, Ti as EntranceEffectDeclaration, Tn as GroupDeclarationProps, Tr as path, Tt as Transition, Ui as OwnerMotion, Un as ChartLine, Ur as appear, Ut as TableVerticalAlign, Vi as MotionTargetRange, Vn as ChartGroupData, Vr as StepProps, Vt as TableStyle, Wi as OwnerMotionEffect, Wn as ChartLineDash, Wr as breathe, Wt as ShapeDeclarationProps, Xi as SteppedEffect, Xn as ChartSeriesDataLabelOverride, Xr as fillColor, Xt as MotionCue, Yi as SpinOptions, Yn as ChartSeries, Yr as fadeOut, Yt as EffectInstance, Zn as ChartTickLabelPosition, Zr as floatDown, Zt as MotionCueRef, _i as BreatheOptions, _n as LineLayoutStyle, _r as ScatterLine, ai as spinIn, an as MotionSchedule, ar as DoughnutChartGroup, bi as EffectOptions, bn as LineStyle, br as LineStrokeValue, bt as TypedElement, ci as wipe, cn as MotionScopeSchedule, cr as LineOrAreaChartGroup, di as zoomOut, dn as MotionTime, dr as ScatterChartPoint, ei as fly, en as MotionDifference, er as ChartTrendline, f as InferPlaceholderMap, fi as font, fn as ResolvedMotionMoment, fr as ScatterChartSeries, gi as BreatheEffect, gn as LineEndpoint, gr as ScatterErrorBars, hi as MorphProps, hn as LineDeclarationProps, hr as ScatterDataLabels, ii as spin, in as MotionMomentRef, ir as ColumnOrBarChartGroup, ji as MotionCompletionState, jn as ChartCategoryAxis, jr as SpanDeclarationProps, ki as FillColorOptions, kn as ChartAxisPosition, kr as RunTextStyle, kt as transitions, li as wipeOut, ln as MotionStepQuery, lr as PieChartGroup, mi as BoxDeclarationProps, mn as LineAdjust, mr as ScatterDataLabelOverride, ni as onStep, nn as MotionIntervalRef, nr as ChartValueAxis, oi as spinOut, on as MotionScopeQueryMember, or as IndependentCategoryData, p as JsxPlaceholders, pi as fromFontCollection, pn as motionSchedule, pr as ScatterData, qi as RepeatCount, qn as ChartPoint, qr as disappear, ri as repeat, rn as MotionMembership, rr as ChartXYAxisReferences, si as stretch, sn as MotionScopeRef, sr as IndependentCategorySeries, ti as flyOut, tn as MotionEffectRef, tr as ChartTrendlineType, ui as zoom, un as MotionStepRef, ur as ScatterChartGroup, vi as Easing, vn as LinePort, vr as SharedCategoryData, wi as EntranceEffect, wn as ImageVisualStyle, wr as blockArc, wt as StripsDirection, xi as EffectPreset, xn as LineVisualStyle, xr as linearGradient, xt as FlipTransition, yi as Effect, yn as LineRouting, yr as LineStroke, zi as MotionScopeMode, zn as ChartErrorBars, zr as ResolvedMotionScope, zt as TableRowStyle } from "./document-41spD7bq.js";
4
+ import "./transition-6n8GZxSg.js";
5
+ import { Key, ReactNode } from "react";
6
+ type ElementProps = {
7
+ readonly children?: ReactNode;
8
+ };
9
+ /** Props for the root `<Deck>` component; canvas `width` and `height` are in CSS pixels (`1280 × 720` default). */
10
+ type DeckProps = DeckProps$1 & ElementProps;
11
+ type SlideProps$1 = SlideProps$2 & ElementProps & {
12
+ readonly placeholders?: Readonly<Record<string, unknown>> | undefined;
13
+ };
14
+ /** Props for `<Section>`, grouping contiguous child `<Slide>` elements into a native `p14:sectionLst` section. */
15
+ type SectionProps = SectionProps$1 & ElementProps;
16
+ export declare const Deck: (props: DeckProps) => ReactNode;
17
+ export declare const Section: (props: SectionProps) => ReactNode;
18
+ /**
19
+ * Props for {@link Mount}, adopting pre-constructed editable nodes into a React tree without
20
+ * introducing a wrapper node.
21
+ */
22
+ type MountProps = {
23
+ /**
24
+ * Pre-constructed editable node, read-only node list, or empty value to attach directly into
25
+ * the enclosing container.
26
+ */
27
+ readonly node: CommonNode | readonly CommonNode[] | null | undefined;
28
+ readonly slot?: undefined;
29
+ readonly children?: undefined;
30
+ } | {
31
+ /** Single pre-constructed editable root node attached to the enclosing container. */
32
+ readonly node: CommonNode;
33
+ /**
34
+ * Target container inside `node` (or `node` itself) where JSX `children` are reconciled
35
+ * after any pre-existing imperative children.
36
+ */
37
+ readonly slot: CommonContainer;
38
+ /** JSX children reconciled inside `slot`. */
39
+ readonly children?: ReactNode;
40
+ };
41
+ /**
42
+ * Adopts pre-constructed {@link CommonNode} instances directly into the React tree without
43
+ * creating a wrapper node.
44
+ *
45
+ * Adopted nodes retain their own props, identity, and imperative subtree, participate in layout
46
+ * and motion, and enforce strict single-parent ownership. When `slot` is provided,
47
+ * JSX `children` are reconciled inside `slot` after any imperative preset children.
48
+ */
49
+ export declare function Mount(props: MountProps): ReactNode;
50
+ /**
51
+ * Result returned by a container vanilla factory to bridge both an outer node and an inner slot
52
+ * container into React via {@link fromVanilla}.
53
+ */
54
+ type VanillaSlotResult<Node extends CommonNode = CommonNode, Slot extends CommonContainer = CommonContainer> = {
55
+ /** Outer editable node mounted into the enclosing React container. */
56
+ readonly node: Node;
57
+ /** Descendant container (or `node` itself) where React reconciles JSX `children`. */
58
+ readonly slot: Slot;
59
+ };
60
+ /**
61
+ * Maps a vanilla factory function onto its React component props, preserving optional and default
62
+ * parameter objects while allowing `children` only when the factory returns {@link VanillaSlotResult}.
63
+ */
64
+ type VanillaFactoryProps<F extends (props: never) => CommonNode | VanillaSlotResult> = Parameters<F> extends readonly [] ? {
65
+ readonly children?: ReturnType<F> extends VanillaSlotResult ? ReactNode : never;
66
+ } : Parameters<F> extends readonly [props?: infer P] ? NonNullable<P> & {
67
+ readonly children?: ReturnType<F> extends VanillaSlotResult ? ReactNode : never;
68
+ } : never;
69
+ /**
70
+ * Wraps a framework-free `@officedk/pptxdk/vanilla` factory function as a first-class React
71
+ * component backed by {@link Mount}.
72
+ *
73
+ * Factories returning a single {@link CommonNode} produce closed components that statically reject
74
+ * `children`, while factories returning `{ node, slot }` produce container components whose JSX
75
+ * `children` are reconciled into `slot`. The factory output is memoized across re-renders and
76
+ * `<Suspense>` retries while non-`children` props remain shallow-equal.
77
+ */
78
+ export declare function fromVanilla<F extends (props: never) => CommonNode | VanillaSlotResult>(factory: F): (props: VanillaFactoryProps<F>) => ReactNode;
79
+ type ExpandDocumentOptions = {
80
+ /**
81
+ * Cooperative cancellation for one React expansion; no default timeout when unspecified.
82
+ * Cancellation before or during expansion rejects with the original reason.
83
+ */
84
+ readonly signal?: AbortSignal | undefined;
85
+ };
86
+ /** Options for one standalone JSX fragment expansion; cancellation covers expansion and cleanup only. */
87
+ type ExpandFragmentOptions = ExpandDocumentOptions;
88
+ /** Options for one JSX fragment append; cancellation covers expansion and cleanup only. */
89
+ type AppendJSXOptions = ExpandFragmentOptions;
90
+ /** Completed editable document handed off by React expansion. */
91
+ type ExpandedDocument = CommonContainer<"deck">;
92
+ /**
93
+ * Public React handoff entry: runs author components to completion, waits for declared content,
94
+ * cleans up the React root, and returns the completed editable document.
95
+ *
96
+ * The returned nodes no longer synchronize with the finished root. Repeat expansion creates a new
97
+ * document instance and does not merge edits made to a previous result. Unhandled render errors,
98
+ * cancellation, and cleanup failures reject; no partial document is returned.
99
+ */
100
+ export declare function expandDocument(element: ReactNode, options?: ExpandDocumentOptions): Promise<ExpandedDocument>;
101
+ /**
102
+ * Public React fragment handoff entry: runs a standalone JSX fragment to completion, waits for
103
+ * declared async content and root cleanup, and returns frozen ownerless top-level editable nodes.
104
+ *
105
+ * The returned nodes no longer synchronize with the finished root and have `parent === undefined`.
106
+ * Top-level non-whitespace text, unhandled render errors, cleanup failures, and cancellation reject
107
+ * without returning partial results.
108
+ */
109
+ export declare function expandFragment(element: ReactNode, options?: ExpandFragmentOptions): Promise<readonly CommonNode[]>;
110
+ /**
111
+ * Public React append entry: expands one standalone JSX fragment, waits for final content and
112
+ * cleanup, then appends its top-level editable nodes to `target` as one batch.
113
+ *
114
+ * The fragment runs in its own root, so React context comes from the fragment or an explicit
115
+ * Provider inside it; the target's finished root is not revived. Expansion, unhandled errors,
116
+ * cancellation, cleanup failures, and id conflicts leave the target unchanged. Id conflicts are
117
+ * checked against the target's current structure at commit time, so edits made while the fragment
118
+ * expands are respected. The returned nodes are the exact instances now owned by the target.
119
+ */
120
+ export declare function appendJSX(target: CommonContainer, element: ReactNode, options?: AppendJSXOptions): Promise<readonly CommonNode[]>;
121
+ type BaseSlideProps = Omit<SlideProps$1, "transition" | "layout" | "placeholders"> & {
122
+ readonly transition?: Transition;
123
+ };
124
+ type BoundSlideProps<L extends SlideLayoutSource = SlideLayoutSource> = BaseSlideProps & {
125
+ readonly layout: L;
126
+ readonly placeholders?: JsxPlaceholders<InferPlaceholderMap<L>>;
127
+ };
128
+ type FreeSlideProps = BaseSlideProps & {
129
+ readonly layout?: undefined;
130
+ readonly placeholders?: never;
131
+ };
132
+ type SlideProps<L extends SlideLayoutSource | undefined = SlideLayoutSource | undefined> = [L] extends [undefined] ? FreeSlideProps : [L] extends [SlideLayoutSource] ? BoundSlideProps<L> : BoundSlideProps | FreeSlideProps;
133
+ type SlideMasterProps = SlideMasterAuthorProps & ElementProps;
134
+ type SlideLayoutProps = SlideLayoutAuthorProps & ElementProps;
135
+ export declare function Slide<const L extends SlideLayoutSource | undefined = undefined>(props: SlideProps<L>): ReactNode;
136
+ export declare const SlideMaster: (props: SlideMasterProps) => ReactNode;
137
+ export declare const SlideLayout: (props: SlideLayoutProps) => ReactNode;
138
+ type BoxProps = BoxDeclarationProps & {
139
+ readonly key?: Key | null;
140
+ readonly children?: ReactNode;
141
+ };
142
+ /**
143
+ * Visible Box backgrounds and descendants inherit its entrance only when they do not declare one.
144
+ *
145
+ * The local `enter` and `motion` values stay on the editable node. Inheritance is derived by the next
146
+ * formal build from the current document, so a moved Box does not leave a stale provider context.
147
+ */
148
+ export declare function Box({ children, ...props }: BoxProps): ReactNode;
149
+ /** Declares an object compiled into a native chart by the official capability module. */
150
+ export declare function Chart(props: ChartProps): TypedElement<"chart">;
151
+ type GroupProps = GroupDeclarationProps & {
152
+ readonly children?: ReactNode;
153
+ };
154
+ /** Declares an editable group preserving native member structure within the React tree. */
155
+ export declare function Group(props: GroupProps): ReactNode;
156
+ type ImageProps = ImageDeclarationProps & {
157
+ readonly children?: ReactNode;
158
+ };
159
+ /** Declares a native image handled by the image module within the React tree. */
160
+ export declare function Image(props: ImageProps): TypedElement<"image">;
161
+ type LineProps = LineDeclarationProps & {
162
+ /** Lines are 1D primitives and do not support nested children or text. */
163
+ readonly children?: never;
164
+ };
165
+ /** Declares a native `<p:cxnSp>` line or connector within the React tree. */
166
+ export declare function Line(props: LineProps): TypedElement<"line">;
167
+ /**
168
+ * Keeps one pure scope identity for the lifetime of this component instance.
169
+ *
170
+ * The React hook only stores the plain handle; scope parent chains, click steps, and inheritance are
171
+ * derived by the build from the document structure, so moving content does not carry React state.
172
+ */
173
+ export declare function useMotionScope(): MotionScopeHandle;
174
+ /** Explicit orchestration scope only declares timing relationships without creating layout or native objects. */
175
+ export declare function MotionScope(props: MotionScopeProps): ReactNode;
176
+ /** A single click triggers a group of objects; declarations with the same number share a click step. */
177
+ export declare function Step(props: StepProps): ReactNode;
178
+ type NotesProps = NotesDeclarationProps & {
179
+ readonly children?: ReactNode;
180
+ };
181
+ /** Declares one page's rich-text speaker notes; repeated declarations on a page are a build error. */
182
+ export declare function Notes(props: NotesProps): ReactNode;
183
+ type PlaceholderProps = PlaceholderDeclarationProps;
184
+ /** Declares an unpopulated native content placeholder bound to a layout placeholder slot. */
185
+ export declare function Placeholder(props: PlaceholderProps): ReactNode;
186
+ type ShapeProps = ShapeDeclarationProps & {
187
+ /** Native text nodes shared with Text; may contain P, Span, and SlideNumber. */
188
+ readonly children?: ReactNode;
189
+ };
190
+ /** Declares a native object handled by the shape module within the React tree. */
191
+ export declare function Shape(props: ShapeProps): ReactNode;
192
+ type TableProps = TableDeclarationProps & {
193
+ readonly children?: ReactNode;
194
+ };
195
+ type RowProps = RowDeclarationProps & {
196
+ readonly children?: ReactNode;
197
+ };
198
+ type CellProps = CellDeclarationProps & {
199
+ readonly children?: ReactNode;
200
+ };
201
+ /** Declares an editable native table in the React root handled by the table module. */
202
+ export declare function Table(props: TableProps): TypedElement<"table">;
203
+ /** Declares a row of a native table; calculated from actual measurement of row content when height is omitted. */
204
+ export declare function Row(props: RowProps): ReactNode;
205
+ /** Declares table cell content and horizontal / vertical merge spans. */
206
+ export declare function Cell(props: CellProps): ReactNode;
207
+ type TextProps = TextDeclarationProps & {
208
+ readonly children?: ReactNode;
209
+ };
210
+ type ParagraphProps = ParagraphDeclarationProps & {
211
+ readonly children?: ReactNode;
212
+ };
213
+ type SpanProps = SpanDeclarationProps & {
214
+ readonly children?: ReactNode;
215
+ };
216
+ type SupProps = SupDeclarationProps & {
217
+ readonly children?: ReactNode;
218
+ };
219
+ type SubProps = SubDeclarationProps & {
220
+ readonly children?: ReactNode;
221
+ };
222
+ type SlideNumberProps = SlideNumberDeclarationProps;
223
+ /** Native text box; numeric height preserves a fixed region, while auto height uses explicit font measurement. */
224
+ export declare function Text(props: TextProps): TypedElement<"text">;
225
+ /** Declares a native paragraph within a text box, with line spacing and paragraph list semantics. */
226
+ declare function P$1(props: ParagraphProps): TypedElement<"paragraph">;
227
+ /** Declares an individually styled text run within a paragraph. */
228
+ export declare function Span(props: SpanProps): TypedElement<"span">;
229
+ /** Declares an inline superscript run (`baseline="30000"`). */
230
+ export declare function Sup(props: SupProps): TypedElement<"sup">;
231
+ /** Declares an inline subscript run (`baseline="-25000"`). */
232
+ export declare function Sub(props: SubProps): TypedElement<"sub">;
233
+ /** Emits a native slide number field resolved by presentation applications. */
234
+ export declare function SlideNumber(props: SlideNumberProps): TypedElement<"slide-number">;
235
+ export { type AppendJSXOptions, type ArrowType, type AuthorId, type AuthorNodeGuard, AuthorQuery, AuthorQueryError, type BoxProps, type BreatheEffect, type BreatheOptions, type BuildDiagnostic, type CellProps, type ChartAxis, type ChartAxisCrossing, type ChartAxisPosition, type ChartAxisReferences, type ChartCategoryAxis, type ChartCategoryAxisReferences, type ChartCustomErrorBars, type ChartDataLabelOverride, type ChartDataLabels, type ChartDisplayBlanksAs, type ChartErrorBarInclude, type ChartErrorBarValues, type ChartErrorBars, type ChartGroup, type ChartGroupData, type ChartKind, type ChartLine, type ChartLineDash, type ChartMarker, type ChartMarkerSymbol, type ChartPoint, type ChartProps, type ChartSeries, type ChartSeriesDataLabelOverride, type ChartTickLabelPosition, type ChartTickMark, type ChartTitle, type ChartTrendline, type ChartTrendlineType, type ChartValueAxis, type ChartXYAxisReferences, type ColorMap, type ColorMapOverride, type ColorValue, type ColumnOrBarChartGroup, CommonContainer, CommonNode, type ContentPlaceholderRole, type CustomGeometry, DeckContainer, type DeckProps, type DocumentProps, type DocumentStyle, type DocumentUpdate, type DoughnutChartGroup, type Easing, type Effect, type EffectInstance, type EffectOptions, type EffectPreset, type ElementProps, type EmphasisEffect, type EmphasisEffectDeclaration, type EmptyPlaceholderMap, type EntranceEffect, type EntranceEffectDeclaration, type ExitEffect, type ExitEffectDeclaration, type ExitPreset, type ExpandDocumentOptions, type ExpandFragmentOptions, type ExpandedDocument, type FillColorOptions, type FlipTransition, type Font, type FontFace, type FontFaceStyle, type FontOptions, type FontReference, type FontSize, type FontStyleDescriptor, type FontUsage, type FooterPlaceholderSpec, type FooterPlaceholders, type FormatScheme, type Geometry, type GeometryPath, type GradientStop, type GroupProps, type HeaderFooter, type HexColor, type ImageProps, type ImageSource, type ImageVisualStyle, type IndependentCategoryData, type IndependentCategorySeries, type InferPlaceholderMap, type InstantEffectOptions, type JsxPlaceholders, type LayoutLength, type LayoutPlaceholderSpec, type LayoutSpacing, type LayoutStyle, type LineAdjust, type LineEndpoint, type LineHeight, type LineLayoutStyle, type LineOrAreaChartGroup, type LinePort, type LineProps, type LineRouting, type LineStroke, type LineStrokeValue, type LineStyle, type LineVisualStyle, type LinearGradient, type LinkTarget, type MasterPlaceholderMap, type MasterPlaceholderSpec, type MasterTextStyles, type MorphKey, type MorphProps, type MorphScope, type MorphTransition, type MotionCompletionState, type MotionCue, type MotionCueRef, type MotionDecision, type MotionDependency, type MotionDifference, type MotionDirection, type MotionEffectRef, type MotionGranularity, type MotionIntervalRef, type MotionMembership, type MotionMoment, type MotionMomentOffset, type MotionMomentRef, type MotionNativeProjection, type MotionProps, type MotionSchedule, type MotionScopeHandle, type MotionScopeMode, type MotionScopeProps, type MotionScopeQueryMember, type MotionScopeRef, type MotionScopeSchedule, type MotionStartDependency, type MotionStepQuery, type MotionStepRef, type MotionTargetRange, type MotionTime, type MotionTiming, type MountProps, type NativeColorSlot, type NativePlaceholderRef, type NotesDeclarationProps, type NotesProps, type ObjectTransform, type OwnerMotion, type OwnerMotionEffect, type OwnerMotionStep, type OwnerMotionTarget, P$1 as P, type PaddingStyle, type ParagraphProps, type ParagraphStyle, type PathCommand, type PathOptions, type PieChartGroup, type PlaceholderLevelStyle, type PlaceholderListStyles, type PlaceholderMap, type PlaceholderOrient, type PlaceholderProps, type PlaceholderSize, type PlaceholderStyle, type PresetGeometry, type PresetGeometryName, type RadialGradient, type Rect, type RepeatCount, type RepeatedEffect, type ResolvedFooter, type ResolvedFooterSlot, type ResolvedLayout, type ResolvedMaster, type ResolvedMotionEffect, type ResolvedMotionMoment, type ResolvedMotionScope, type ResolvedMotionStep, type ResolvedObject, type ResolvedPlaceholder, type ResolvedSlide, type ResolvedSlideLayout, type ResolvedTable, type ResolvedTableCell, type ResolvedTableRow, RichTextContainer, type RichTextItem, type RowProps, type RunTextStyle, type ScatterChartGroup, type ScatterChartPoint, type ScatterChartSeries, type ScatterData, type ScatterDataLabelOverride, type ScatterDataLabels, type ScatterErrorBars, type ScatterLine, type SchemeColorName, type SchemeColorSlot, type ScreenPoint, type SectionProps, type Shadow, type ShapeProps, type ShapeTextStyle, type SharedCategoryData, type SlideBackground, SlideContainer, type SlideFooterValue, SlideLayoutContainer, type SlideLayoutDefinition, type SlideLayoutProps, type SlideLayoutSource, type SlideLayoutType, type SlideLocator, SlideMasterContainer, type SlideMasterProps, type SlideNumberProps, type SlideNumberValue, type SlideProps, type SpanProps, type SpinOptions, type StandardTransition, type StepProps, type SteppedEffect, type StripsDirection, type StyleUpdate, type SubProps, type SupProps, type TableCellStyle, type TableColumn, type TableProps, type TableRowStyle, type TableSpacing, type TableStyle, type TableTextStyle, type TableVerticalAlign, type TextAlignment, type TextList, type TextMetrics, type TextPlaceholderRole, type TextProps, type TextStyle, type Theme, type ThemeColor, type ThemeData, type ThemeFontSlot, type ThemeInput, type ThemeOverride, type ThemeShade, type Transition, type TransitionDirection, type TransitionDuration, type TransitionSpeed, type TypedElement, type UnmeasuredFontIssue, type VanillaFactoryProps, type VanillaSlotResult, type VisualStyle, after, appear, blockArc, breathe, buildDiagnosticSchema, collapse, createMorphScope, createMotionScopeHandle, darker, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, linearGradient, motionSchedule, nativeColorSlots, onStep, path, preset, radialGradient, repeat, schemeColorNames, schemeColorSlots, spin, spinIn, spinOut, stretch, themeFontSlots, transitions, wipe, wipeOut, zoom, zoomOut };