deckjsx 0.7.0 → 0.8.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.
@@ -1,3 +1,4 @@
1
- import { $ as StyleEntityId, B as SemanticImageNode, G as SemanticShapeNode, H as SemanticNodeKind, I as GraphNodeId, J as SemanticTextRunNode, K as SemanticSlideNode, L as SemanticAuthorGraph, M as AssetEntity, N as AssetEntityId, P as BaseSemanticNode, Q as StyleEntity, R as SemanticContainerNode, U as SemanticOrigin, V as SemanticNode, W as SemanticRole, X as SourceOrigin, Y as SourceIdentity, Z as StyleClassRef, q as SemanticTextNode, z as SemanticDocumentNode } from "./index-C-LDA3Lj.mjs";
2
- import { A as PptxContentTypeDefault, C as ProjectInspectionSummary, D as ResolvedStyleProperty, E as ResolvedStyleMap, M as PptxContentTypesPayload, N as PptxRelationshipsPayload, O as ResolvedStyleSource, S as ProjectInspectionResolvedValues, T as ResolvedStyleLayer, _ as ProjectInspectionAdapterLimitation, a as PptxElementKind, b as ProjectInspectionMediaSummary, c as PptxPackagePart, d as PptxRelationship, f as PptxRelationshipsPart, g as PptxSupportPartPayload, h as PptxSlidePart, i as PptxElementId, j as PptxContentTypeOverride, k as StyleResolutionResult, l as PptxPackagePartCategory, m as PptxSerializedIdentity, n as PptxContentTypesPart, o as PptxElementOrigin, p as PptxSerializedIdentities, r as PptxElement, s as PptxPackageModel, t as PackagePartId, u as PptxPackagePartKind, v as ProjectInspectionDiagnosticSummary, w as ResolvedStyle, x as ProjectInspectionPartSummary, y as ProjectInspectionElementSummary } from "./pptx-DaSXvESd.mjs";
3
- export { type AssetEntity, type AssetEntityId, type BaseSemanticNode, type GraphNodeId, type PackagePartId, type PptxContentTypeDefault, type PptxContentTypeOverride, type PptxContentTypesPart, type PptxContentTypesPayload, type PptxElement, type PptxElementId, type PptxElementKind, type PptxElementOrigin, type PptxPackageModel, type PptxPackagePart, type PptxPackagePartCategory, type PptxPackagePartKind, type PptxRelationship, type PptxRelationshipsPart, type PptxRelationshipsPayload, type PptxSerializedIdentities, type PptxSerializedIdentity, type PptxSlidePart, type PptxSupportPartPayload, type ProjectInspectionAdapterLimitation, type ProjectInspectionDiagnosticSummary, type ProjectInspectionElementSummary, type ProjectInspectionMediaSummary, type ProjectInspectionPartSummary, type ProjectInspectionResolvedValues, type ProjectInspectionSummary, type ResolvedStyle, type ResolvedStyleLayer, type ResolvedStyleMap, type ResolvedStyleProperty, type ResolvedStyleSource, type SemanticAuthorGraph, type SemanticContainerNode, type SemanticDocumentNode, type SemanticImageNode, type SemanticNode, type SemanticNodeKind, type SemanticOrigin, type SemanticRole, type SemanticShapeNode, type SemanticSlideNode, type SemanticTextNode, type SemanticTextRunNode, type SourceIdentity, type SourceOrigin, type StyleClassRef, type StyleEntity, type StyleEntityId, type StyleResolutionResult };
1
+ import { A as BaseSemanticNode, B as SemanticRole, F as SemanticDocumentNode, G as SourceIdentity, H as SemanticSlideNode, I as SemanticImageNode, J as StyleEntity, K as SourceOrigin, L as SemanticNode, M as GraphNodeId, N as SemanticAuthorGraph, O as AssetEntity, P as SemanticContainerNode, R as SemanticNodeKind, U as SemanticTextNode, V as SemanticShapeNode, W as SemanticTextRunNode, Y as StyleEntityId, k as AssetEntityId, q as StyleClassRef, z as SemanticOrigin } from "./index-BlOsGMTm.mjs";
2
+ import { $ as PptxSupportPartPayload, $t as isPptxRelationshipsPart, A as PptxPackagePartKind, At as ProjectInspectionEffectiveProjectedStyleEntry, B as PptxRelationshipsPart, Bt as ProjectInspectionPaintFallbackAggregationEntry, C as PptxNotesPlaceholderPayload, Ct as PptxVisibility, D as PptxPackagePartCandidate, Dt as ProjectInspectionComposedPaintOrderSlideView, E as PptxPackagePart, Et as ProjectInspectionComposedPaintOrderEntry, F as PptxPackagePartRequirementStatus, Ft as ProjectInspectionMediaSummary, G as PptxShapeElement, Gt as ProjectInspectionSummary, H as PptxSerializedIdentities, Ht as ProjectInspectionPartSummary, I as PptxPaintOrderInput, It as ProjectInspectionPackageDependencyInvalidationEntry, J as PptxSlideLayoutPartPayload, Jt as ProjectInspectionUnsupportedSemanticRecord, K as PptxSlideDrawing, Kt as ProjectInspectionThemeProjectionEntry, L as PptxPictureElement, Lt as ProjectInspectionPackageDependencyInvalidationView, M as PptxPackagePartOrderKey, Mt as ProjectInspectionElementSummary, N as PptxPackagePartRequirement, Nt as ProjectInspectionFilteredReason, O as PptxPackagePartCategory, Ot as ProjectInspectionDetails, P as PptxPackagePartRequirementCondition, Pt as ProjectInspectionFilteredRecord, Q as PptxSupportPart, Qt as isPptxPackagePart, R as PptxPresentationSlideMasterId, Rt as ProjectInspectionPackageDependencyReason, S as PptxMediaPartPayload, St as PptxUnsupportedSemanticFeature, T as PptxPackageModelCandidate, Tt as ProjectInspectionBackgroundLayerSummary, U as PptxSerializedIdentity, Ut as ProjectInspectionRelationshipSummary, V as PptxRelationshipsPayload, Vt as ProjectInspectionPaintFallbackAggregationView, W as PptxShadow, Wt as ProjectInspectionResolvedValues, X as PptxSlideMasterPartPayload, Xt as isPptxMediaPart, Y as PptxSlideMasterLayoutId, Yt as isPptxContentTypesPart, Z as PptxSlidePart, Zt as isPptxPackageModel, _ as PptxKnownPackagePart, _t as PptxThemeValueGroupFingerprint, a as PptxContentTypeOverride, at as PptxThemeEffectiveInheritanceStep, b as PptxMediaMetadata, bt as PptxUnsupportedFallbackStrategy, c as PptxDrawingNode, ct as PptxThemeProjectionPayload, d as PptxElementKind, dt as PptxThemeReferenceSerializationChoice, en as isPptxSlidePart, et as PptxTextElement, f as PptxElementOrigin, ft as PptxThemeReferenceSerializationDecision, g as PptxGroupElement, gt as PptxThemeValueGroup, h as PptxGeneratedStrokeLayer, ht as PptxThemeUnprojectedMapping, i as PptxContentTypeDefault, it as PptxThemeDefaultStyleProjectionTarget, j as PptxPackagePartOrderGroup, jt as ProjectInspectionEffectiveProjectedStyleSlideView, k as PptxPackagePartDependencyFingerprint, kt as ProjectInspectionDiagnosticSummary, l as PptxElement, lt as PptxThemeProjectionTrace, m as PptxEmptySupportPartPayload, mt as PptxThemeSupportMapping, n as PptxBackgroundLayer, nt as PptxThemeDefaultStyleDecision, o as PptxContentTypesPart, ot as PptxThemeEffectiveInheritanceTrace, p as PptxEmissionTarget, pt as PptxThemeReferenceSerializationKind, q as PptxSlideLayoutAnchor, qt as ProjectInspectionThemeProjectionView, r as PptxClip, rt as PptxThemeDefaultStyleDecisionKind, s as PptxContentTypesPayload, st as PptxThemePartPayload, t as PackagePartId, tn as isPptxSupportPart, tt as PptxThemeConcreteDrawingPropertyMapping, u as PptxElementId, ut as PptxThemeReferenceCandidate, v as PptxLayoutAnchor, vt as PptxThemeWholeThemeMapping, w as PptxPackageModel, wt as ProjectInspectionAdapterLimitation, x as PptxMediaPart, xt as PptxUnsupportedSemantic, y as PptxMeasurement, yt as PptxUnsupportedFallback, z as PptxRelationship, zt as ProjectInspectionPackageDependencySummary } from "./model-oqG9gKTq.mjs";
3
+ import { a as ResolvedStyleSource, i as ResolvedStyleProperty, n as ResolvedStyleLayer, o as StyleResolutionResult, r as ResolvedStyleMap, t as ResolvedStyle } from "./resolve-CfjiMtv5.mjs";
4
+ export { type AssetEntity, type AssetEntityId, type BaseSemanticNode, type GraphNodeId, type PackagePartId, type PptxBackgroundLayer, type PptxClip, type PptxContentTypeDefault, type PptxContentTypeOverride, type PptxContentTypesPart, type PptxContentTypesPayload, type PptxDrawingNode, type PptxElement, type PptxElementId, type PptxElementKind, type PptxElementOrigin, type PptxEmissionTarget, type PptxEmptySupportPartPayload, type PptxGeneratedStrokeLayer, type PptxGroupElement, type PptxKnownPackagePart, type PptxLayoutAnchor, type PptxMeasurement, type PptxMediaMetadata, type PptxMediaPart, type PptxMediaPartPayload, type PptxNotesPlaceholderPayload, type PptxPackageModel, type PptxPackageModelCandidate, type PptxPackagePart, type PptxPackagePartCandidate, type PptxPackagePartCategory, type PptxPackagePartDependencyFingerprint, type PptxPackagePartKind, type PptxPackagePartOrderGroup, type PptxPackagePartOrderKey, type PptxPackagePartRequirement, type PptxPackagePartRequirementCondition, type PptxPackagePartRequirementStatus, type PptxPaintOrderInput, type PptxPictureElement, type PptxPresentationSlideMasterId, type PptxRelationship, type PptxRelationshipsPart, type PptxRelationshipsPayload, type PptxSerializedIdentities, type PptxSerializedIdentity, type PptxShadow, type PptxShapeElement, type PptxSlideDrawing, type PptxSlideLayoutAnchor, type PptxSlideLayoutPartPayload, type PptxSlideMasterLayoutId, type PptxSlideMasterPartPayload, type PptxSlidePart, type PptxSupportPart, type PptxSupportPartPayload, type PptxTextElement, type PptxThemeConcreteDrawingPropertyMapping, type PptxThemeDefaultStyleDecision, type PptxThemeDefaultStyleDecisionKind, type PptxThemeDefaultStyleProjectionTarget, type PptxThemeEffectiveInheritanceStep, type PptxThemeEffectiveInheritanceTrace, type PptxThemePartPayload, type PptxThemeProjectionPayload, type PptxThemeProjectionTrace, type PptxThemeReferenceCandidate, type PptxThemeReferenceSerializationChoice, type PptxThemeReferenceSerializationDecision, type PptxThemeReferenceSerializationKind, type PptxThemeSupportMapping, type PptxThemeUnprojectedMapping, type PptxThemeValueGroup, type PptxThemeValueGroupFingerprint, type PptxThemeWholeThemeMapping, type PptxUnsupportedFallback, type PptxUnsupportedFallbackStrategy, type PptxUnsupportedSemantic, type PptxUnsupportedSemanticFeature, type PptxVisibility, type ProjectInspectionAdapterLimitation, type ProjectInspectionBackgroundLayerSummary, type ProjectInspectionComposedPaintOrderEntry, type ProjectInspectionComposedPaintOrderSlideView, type ProjectInspectionDetails, type ProjectInspectionDiagnosticSummary, type ProjectInspectionEffectiveProjectedStyleEntry, type ProjectInspectionEffectiveProjectedStyleSlideView, type ProjectInspectionElementSummary, type ProjectInspectionFilteredReason, type ProjectInspectionFilteredRecord, type ProjectInspectionMediaSummary, type ProjectInspectionPackageDependencyInvalidationEntry, type ProjectInspectionPackageDependencyInvalidationView, type ProjectInspectionPackageDependencyReason, type ProjectInspectionPackageDependencySummary, type ProjectInspectionPaintFallbackAggregationEntry, type ProjectInspectionPaintFallbackAggregationView, type ProjectInspectionPartSummary, type ProjectInspectionRelationshipSummary, type ProjectInspectionResolvedValues, type ProjectInspectionSummary, type ProjectInspectionThemeProjectionEntry, type ProjectInspectionThemeProjectionView, type ProjectInspectionUnsupportedSemanticRecord, type ResolvedStyle, type ResolvedStyleLayer, type ResolvedStyleMap, type ResolvedStyleProperty, type ResolvedStyleSource, type SemanticAuthorGraph, type SemanticContainerNode, type SemanticDocumentNode, type SemanticImageNode, type SemanticNode, type SemanticNodeKind, type SemanticOrigin, type SemanticRole, type SemanticShapeNode, type SemanticSlideNode, type SemanticTextNode, type SemanticTextRunNode, type SourceIdentity, type SourceOrigin, type StyleClassRef, type StyleEntity, type StyleEntityId, type StyleResolutionResult, isPptxContentTypesPart, isPptxMediaPart, isPptxPackageModel, isPptxPackagePart, isPptxRelationshipsPart, isPptxSlidePart, isPptxSupportPart };
package/dist/inspect.mjs CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ import { a as isPptxRelationshipsPart, i as isPptxPackagePart, n as isPptxMediaPart, o as isPptxSlidePart, r as isPptxPackageModel, s as isPptxSupportPart, t as isPptxContentTypesPart } from "./model-DIuh51qh.mjs";
2
+ export { isPptxContentTypesPart, isPptxMediaPart, isPptxPackageModel, isPptxPackagePart, isPptxRelationshipsPart, isPptxSlidePart, isPptxSupportPart };
@@ -1,7 +1,29 @@
1
- import { fn as AuthorTreeNode, pn as JsxKey } from "./index-C-LDA3Lj.mjs";
2
- import { i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-Dz8WBHpq.mjs";
1
+ import { a as IntrinsicDivProps, c as IntrinsicShapeProps, d as JsxNode, l as IntrinsicTextTag, n as DeckJsxElement, o as IntrinsicImgProps, ot as JsxKey, r as DeckJsxIntrinsicElements, s as IntrinsicPProps, u as IntrinsicViewTag } from "./index-BlOsGMTm.mjs";
2
+ import { a as jsxs, i as jsx, n as JsxComponentProps, o as Fragment, r as JsxDevSource } from "./jsx-runtime-Dd6G09P7.mjs";
3
3
 
4
4
  //#region src/jsx-dev-runtime.d.ts
5
- declare function jsxDEV(type: unknown, props: unknown, key?: JsxKey, _isStaticChildren?: boolean, source?: unknown): AuthorTreeNode;
5
+ type JsxComponent<P, R extends DeckJsxElement> = (props: P) => R;
6
+ type JsxProps<P> = P extends {
7
+ children?: JsxNode;
8
+ } ? Omit<P, "children"> & Partial<Pick<P, "children">> : P;
9
+ declare function jsxDEV<P extends JsxComponentProps, R extends DeckJsxElement>(type: JsxComponent<P, R>, props: JsxProps<P> | null, key?: JsxKey, _isStaticChildren?: boolean, source?: JsxDevSource): R;
10
+ declare function jsxDEV(type: IntrinsicViewTag, props: JsxProps<IntrinsicDivProps> | null, key?: JsxKey, _isStaticChildren?: boolean, source?: JsxDevSource): DeckJsxElement;
11
+ declare function jsxDEV(type: IntrinsicTextTag, props: JsxProps<IntrinsicPProps> | null, key?: JsxKey, _isStaticChildren?: boolean, source?: JsxDevSource): DeckJsxElement;
12
+ declare function jsxDEV(type: "span", props: JsxProps<IntrinsicPProps> | null, key?: JsxKey, _isStaticChildren?: boolean, source?: JsxDevSource): DeckJsxElement;
13
+ declare function jsxDEV(type: "img", props: IntrinsicImgProps, key?: JsxKey, _isStaticChildren?: boolean, source?: JsxDevSource): DeckJsxElement;
14
+ declare function jsxDEV(type: "shape", props: IntrinsicShapeProps, key?: JsxKey, _isStaticChildren?: boolean, source?: JsxDevSource): DeckJsxElement;
15
+ declare function jsxDEV(type: string, props: JsxComponentProps | null, key?: JsxKey, _isStaticChildren?: boolean, source?: JsxDevSource): never;
16
+ declare namespace JSX {
17
+ type Element = DeckJsxElement;
18
+ interface ElementChildrenAttribute {
19
+ children: {};
20
+ }
21
+ interface IntrinsicAttributes {
22
+ key?: JsxKey;
23
+ }
24
+ interface IntrinsicElements extends DeckJsxIntrinsicElements {
25
+ span: IntrinsicPProps;
26
+ }
27
+ }
6
28
  //#endregion
7
- export { Fragment, type JSX, jsx, jsxDEV, jsxs };
29
+ export { Fragment, JSX, jsx, jsxDEV, jsxs };
@@ -1,14 +1,12 @@
1
- import { r as createElementWithMetadata, t as Fragment } from "./jsx-DetoUfLm.mjs";
2
- import { jsx, jsxs } from "./jsx-runtime.mjs";
1
+ import { i as createElementWithMetadata, n as jsxs, r as Fragment, t as jsx } from "./jsx-runtime-DzJLgS1w.mjs";
3
2
  //#region src/jsx-dev-runtime.ts
4
3
  function sourceSpanFromDevSource(source) {
5
- if (typeof source !== "object" || source === null) return;
6
- const devSource = source;
7
- if (devSource.fileName === void 0 && devSource.lineNumber === void 0 && devSource.columnNumber === void 0) return;
4
+ if (!source) return;
5
+ if (source.fileName === void 0 && source.lineNumber === void 0 && source.columnNumber === void 0) return;
8
6
  return {
9
- file: devSource.fileName,
10
- line: devSource.lineNumber,
11
- column: devSource.columnNumber
7
+ file: source.fileName,
8
+ line: source.lineNumber,
9
+ column: source.columnNumber
12
10
  };
13
11
  }
14
12
  function jsxDEV(type, props, key, _isStaticChildren, source) {
@@ -0,0 +1,42 @@
1
+ import { a as IntrinsicDivProps, c as IntrinsicShapeProps, d as JsxNode, l as IntrinsicTextTag, n as DeckJsxElement, o as IntrinsicImgProps, ot as JsxKey, r as DeckJsxIntrinsicElements, s as IntrinsicPProps, u as IntrinsicViewTag } from "./index-BlOsGMTm.mjs";
2
+
3
+ //#region src/jsx.d.ts
4
+ declare function Fragment(props: {
5
+ children?: JsxNode;
6
+ }): DeckJsxElement;
7
+ //#endregion
8
+ //#region src/jsx-runtime.d.ts
9
+ type JsxComponent<P, R extends DeckJsxElement> = (props: P) => R;
10
+ type JsxProps<P> = P extends {
11
+ children?: JsxNode;
12
+ } ? Omit<P, "children"> & Partial<Pick<P, "children">> : P;
13
+ type JsxComponentProps = {
14
+ readonly children?: JsxNode;
15
+ };
16
+ type JsxDevSource = {
17
+ readonly fileName?: string;
18
+ readonly lineNumber?: number;
19
+ readonly columnNumber?: number;
20
+ };
21
+ declare function jsx<P extends JsxComponentProps, R extends DeckJsxElement>(type: JsxComponent<P, R>, props: JsxProps<P> | null, key?: JsxKey): R;
22
+ declare function jsx(type: IntrinsicViewTag, props: JsxProps<IntrinsicDivProps> | null, key?: JsxKey): DeckJsxElement;
23
+ declare function jsx(type: IntrinsicTextTag, props: JsxProps<IntrinsicPProps> | null, key?: JsxKey): DeckJsxElement;
24
+ declare function jsx(type: "span", props: JsxProps<IntrinsicPProps> | null, key?: JsxKey): DeckJsxElement;
25
+ declare function jsx(type: "img", props: IntrinsicImgProps, key?: JsxKey): DeckJsxElement;
26
+ declare function jsx(type: "shape", props: IntrinsicShapeProps, key?: JsxKey): DeckJsxElement;
27
+ declare function jsx(type: string, props: JsxComponentProps | null, key?: JsxKey): never;
28
+ declare const jsxs: typeof jsx;
29
+ declare namespace JSX {
30
+ type Element = DeckJsxElement;
31
+ interface ElementChildrenAttribute {
32
+ children: {};
33
+ }
34
+ interface IntrinsicAttributes {
35
+ key?: JsxKey;
36
+ }
37
+ interface IntrinsicElements extends DeckJsxIntrinsicElements {
38
+ span: IntrinsicPProps;
39
+ }
40
+ }
41
+ //#endregion
42
+ export { jsxs as a, jsx as i, JsxComponentProps as n, Fragment as o, JsxDevSource as r, JSX as t };
@@ -0,0 +1,120 @@
1
+ import { a as createAuthorFragment, c as isAuthoredTag, i as createAuthorElement, l as isIntrinsicTextTag, n as authorTreeChildrenFromUnknown, r as collectChildren, s as isAuthorTreeNode, t as authorElementPropsFromEntries, u as isIntrinsicViewTag } from "./tree-DNsco0U3.mjs";
2
+ //#region src/jsx.ts
3
+ function isRecord(value) {
4
+ return typeof value === "object" && value !== null;
5
+ }
6
+ function propsRecordWithoutChildren(props) {
7
+ return authorElementPropsFromEntries(Object.entries(props).filter(([key]) => key !== "children"));
8
+ }
9
+ function splitProps(props, children) {
10
+ const rawChildren = collectChildren(props, children);
11
+ return {
12
+ props: propsRecordWithoutChildren(props),
13
+ children: rawChildren === void 0 ? [] : [rawChildren]
14
+ };
15
+ }
16
+ function intrinsicElement(type, propsObject, children, key, sourceSpan) {
17
+ if (isIntrinsicViewTag(type)) {
18
+ const authored = splitProps(propsObject, children);
19
+ return createAuthorElement({
20
+ source: {
21
+ kind: "tag",
22
+ tag: type
23
+ },
24
+ props: authored.props,
25
+ children: authored.children,
26
+ ...key !== void 0 ? { key } : {},
27
+ ...sourceSpan ? { sourceSpan } : {}
28
+ });
29
+ }
30
+ if (isIntrinsicTextTag(type)) {
31
+ const authored = splitProps(propsObject, children);
32
+ return createAuthorElement({
33
+ source: {
34
+ kind: "tag",
35
+ tag: type
36
+ },
37
+ props: authored.props,
38
+ children: authored.children,
39
+ ...key !== void 0 ? { key } : {},
40
+ ...sourceSpan ? { sourceSpan } : {}
41
+ });
42
+ }
43
+ if (type === "span") {
44
+ const authored = splitProps(propsObject, children);
45
+ return createAuthorElement({
46
+ source: {
47
+ kind: "tag",
48
+ tag: type
49
+ },
50
+ props: authored.props,
51
+ children: authored.children,
52
+ ...key !== void 0 ? { key } : {},
53
+ ...sourceSpan ? { sourceSpan } : {}
54
+ });
55
+ }
56
+ if (type === "img") {
57
+ const authored = splitProps(propsObject, children);
58
+ return createAuthorElement({
59
+ source: {
60
+ kind: "tag",
61
+ tag: type
62
+ },
63
+ props: authored.props,
64
+ children: authored.children,
65
+ ...key !== void 0 ? { key } : {},
66
+ ...sourceSpan ? { sourceSpan } : {}
67
+ });
68
+ }
69
+ const authored = splitProps(propsObject, children);
70
+ return createAuthorElement({
71
+ source: {
72
+ kind: "tag",
73
+ tag: type
74
+ },
75
+ props: authored.props,
76
+ children: authored.children,
77
+ ...key !== void 0 ? { key } : {},
78
+ ...sourceSpan ? { sourceSpan } : {}
79
+ });
80
+ }
81
+ function createElementWithMetadata(type, props, key, sourceSpan, children = []) {
82
+ if (typeof type === "string") {
83
+ if (isIntrinsicViewTag(type) || isIntrinsicTextTag(type) || type === "img" || type === "shape" || type === "span") return intrinsicElement(type, isRecord(props) ? props : {}, children, key, sourceSpan);
84
+ if (!isAuthoredTag(type)) throw new Error(`Intrinsic element is not supported: <${type}>.`);
85
+ }
86
+ if (typeof type !== "function") throw new Error("JSX element type must be a function component.");
87
+ if (type === Fragment) {
88
+ const rawChildren = collectChildren(isRecord(props) ? props : {}, children);
89
+ return createAuthorFragment({
90
+ children: rawChildren === void 0 ? [] : [rawChildren],
91
+ ...key !== void 0 ? { key } : {},
92
+ ...sourceSpan ? { sourceSpan } : {}
93
+ });
94
+ }
95
+ const propsObject = isRecord(props) ? props : {};
96
+ const rawChildren = collectChildren(propsObject, children);
97
+ const result = type({
98
+ ...propsObject,
99
+ children: rawChildren
100
+ });
101
+ if (!isAuthorTreeNode(result)) throw new Error("Function components must return a deckjsx author tree node.");
102
+ if (key === void 0 && sourceSpan === void 0) return result;
103
+ if (result.kind === "element") return {
104
+ ...result,
105
+ ...key !== void 0 ? { key } : {},
106
+ ...sourceSpan ? { sourceSpan } : {}
107
+ };
108
+ return result;
109
+ }
110
+ function Fragment(props) {
111
+ return createAuthorFragment({ children: props.children === void 0 ? [] : authorTreeChildrenFromUnknown([props.children]) });
112
+ }
113
+ //#endregion
114
+ //#region src/jsx-runtime.ts
115
+ function jsx(type, props, key) {
116
+ return createElementWithMetadata(type, props, key);
117
+ }
118
+ const jsxs = jsx;
119
+ //#endregion
120
+ export { createElementWithMetadata as i, jsxs as n, Fragment as r, jsx as t };
@@ -1,3 +1,3 @@
1
- import { pn as JsxKey } from "./index-C-LDA3Lj.mjs";
2
- import { i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-Dz8WBHpq.mjs";
3
- export { Fragment, JSX, JsxKey, jsx, jsxs };
1
+ import { ot as JsxKey } from "./index-BlOsGMTm.mjs";
2
+ import { a as jsxs, i as jsx, n as JsxComponentProps, o as Fragment, r as JsxDevSource, t as JSX } from "./jsx-runtime-Dd6G09P7.mjs";
3
+ export { Fragment, JSX, JsxComponentProps, JsxDevSource, JsxKey, jsx, jsxs };
@@ -1,8 +1,2 @@
1
- import { r as createElementWithMetadata, t as Fragment } from "./jsx-DetoUfLm.mjs";
2
- //#region src/jsx-runtime.ts
3
- function jsx(type, props, key) {
4
- return createElementWithMetadata(type, props, key);
5
- }
6
- const jsxs = jsx;
7
- //#endregion
1
+ import { n as jsxs, r as Fragment, t as jsx } from "./jsx-runtime-DzJLgS1w.mjs";
8
2
  export { Fragment, jsx, jsxs };
@@ -0,0 +1,32 @@
1
+ //#region src/projection/pptx/model.ts
2
+ function isPptxPackagePart(part) {
3
+ return part.payload !== void 0;
4
+ }
5
+ function isPptxContentTypesPart(part) {
6
+ return part.kind === "content-types" && Array.isArray(part.payload?.defaults) && Array.isArray(part.payload?.overrides);
7
+ }
8
+ function isPptxMediaPart(part) {
9
+ return part.kind === "media" && isImageSourceCandidate(part.payload?.source) && Array.isArray(part.payload?.sources) && part.payload.sources.length > 0 && part.payload.sources.every(isImageSourceCandidate);
10
+ }
11
+ function isPptxRelationshipsPart(part) {
12
+ return part.kind === "relationships" && Array.isArray(part.payload?.relationships);
13
+ }
14
+ function isPptxSlidePart(part) {
15
+ return part.kind === "slide" && typeof part.payload?.slideId === "string" && part.payload.drawing !== void 0;
16
+ }
17
+ function isPptxSupportPart(part) {
18
+ return part.category === "support" && part.payload?.kind === part.kind;
19
+ }
20
+ function isImageSourceCandidate(value) {
21
+ if (typeof value !== "object" || value === null) return false;
22
+ switch (value.kind) {
23
+ case "data": return typeof value.data === "string";
24
+ case "path": return typeof value.path === "string";
25
+ case "url": return typeof value.url === "string";
26
+ }
27
+ }
28
+ function isPptxPackageModel(projection) {
29
+ return projection.format === "pptx" && Array.isArray(projection.parts) && Array.isArray(projection.slides) && projection.parts.every(isPptxPackagePart) && projection.slides.every(isPptxSlidePart);
30
+ }
31
+ //#endregion
32
+ export { isPptxRelationshipsPart as a, isPptxPackagePart as i, isPptxMediaPart as n, isPptxSlidePart as o, isPptxPackageModel as r, isPptxSupportPart as s, isPptxContentTypesPart as t };