deckjsx 0.3.1 → 0.4.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.
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
|
-
import { $ as ImageCropAuthoring, $t as
|
|
1
|
+
import { $ as ImageCropAuthoring, $t as SemanticDocumentNode, A as CssBoxSizing, At as TextRunStyle, B as CssGridTemplateAreas, Bt as CompositionContext, C as ClassNameValueArray, Cn as StyleDiagnosticError, Ct as StyleClassStyle, D as CssAlignItems, Dt as TextJsxChild, E as CssAlignContent, En as SourceSpan, Et as TextFit, F as CssGridAutoFlow, Ft as VerticalAlign, G as CssObjectPosition, Gt as SourceContextInput, H as CssGridTrack, Ht as CompositionSourceInternals, I as CssGridLine, It as ViewProps, J as CssVisibility, Jt as AssetEntityId, K as CssOverflow, Kt as SourceContextMapper, L as CssGridPlacement, Lt as ViewStyle, M as CssFlexBasis, Mt as TextTabStopAlignment, N as CssFlexDirection, Nt as TextTabStopAuthoring, O as CssAlignSelf, Ot as TextProps, P as CssFlexWrap, Pt as TextTabStopLength, Q as DeckPointLength, Qt as SemanticContainerNode, R as CssGridShorthand, Rt as defineStyles, S as ClassNameValue, Sn as SemanticGraphDiagnosticError, St as StyleClassDefinition, T as ContentJsxChild, Tn as JsxKey, Tt as StyleTargetSelector, U as CssJustifyContent, Ut as SlideFactory, V as CssGridTemplateShorthand, Vt as CompositionSource, W as CssJustifySelf, Wt as SlideFactoryInput, X as DeckLength, Xt as GraphNodeId, Y as DeckJsxIntrinsicElements, Yt as BaseSemanticNode, Z as DeckOptions, Zt as SemanticAuthorGraph, _ as AuthorNodeProps, _n as Diagnostics, _t as StackAlignment, a as createElement, an as SemanticShapeNode, at as IntrinsicImgProps, b as BorderStyle, bn as CompositionDiagnosticError, bt as StrokeLineCap, c as isSlideNode, cn as SemanticTextRunNode, ct as IntrinsicViewTag, d as Slide, dn as StyleClassRef, dt as OutputConfig, en as SemanticImageNode, et as ImageCropValue, f as Text, fn as StyleEntity, ft as ShapeProps, g as AuthorNodeMap, gn as DiagnosticSeverity, gt as Spacing, h as AuthorNodeKind, hn as DiagnosticLabel, ht as SlideStyle, i as Fragment, in as SemanticRole, it as IntrinsicDivProps, j as CssDisplay, jt as TextStyle, k as CssAspectRatio, kt as TextRunNodeProps, l as Image, ln as SourceIdentity, lt as JsxNode, m as AuthorNode, mn as Diagnostic, mt as SlideProps, nn as SemanticNodeKind, nt as ImageStyle, o as isAuthorNode, on as SemanticSlideNode, ot as IntrinsicPProps, p as View, pn as StyleEntityId, pt as ShapeStyle, q as CssPosition, qt as AssetEntity, rn as SemanticOrigin, rt as ImplementedBackendName, s as isContentNode, sn as SemanticTextNode, st as IntrinsicTextTag, tn as SemanticNode, tt as ImageProps, u as Shape, un as SourceOrigin, ut as LayoutMode, v as AuthorNodePropsMap, vn as formatDiagnostic, vt as StackAxis, w as ContentAuthorNode, wt as StyleSheet, x as ClassNameObject, xn as DeckDiagnosticError, xt as StrokeLineJoin, y as BackendName, yn as formatDiagnostics, yt as StrokeDashType, z as CssGridTemplate, zt as COMPOSITION_SOURCE } from "./jsx-runtime-BMKEs7aG.mjs";
|
|
2
2
|
|
|
3
|
+
//#region src/style/resolve.d.ts
|
|
4
|
+
type ResolvedStyleLayer = "default" | "theme" | "class" | "style";
|
|
5
|
+
type ResolvedStyleSource = {
|
|
6
|
+
readonly layer: "default";
|
|
7
|
+
} | {
|
|
8
|
+
readonly layer: "theme";
|
|
9
|
+
} | {
|
|
10
|
+
readonly layer: "class";
|
|
11
|
+
readonly className: string;
|
|
12
|
+
readonly stylesheetIndex: number;
|
|
13
|
+
readonly ruleIndex: number;
|
|
14
|
+
readonly selector: string;
|
|
15
|
+
} | {
|
|
16
|
+
readonly layer: "style";
|
|
17
|
+
};
|
|
18
|
+
type ResolvedStyleProperty = {
|
|
19
|
+
readonly value: unknown;
|
|
20
|
+
readonly source: ResolvedStyleSource;
|
|
21
|
+
};
|
|
22
|
+
type ResolvedStyle = {
|
|
23
|
+
readonly style: Readonly<Record<string, unknown>>;
|
|
24
|
+
readonly properties: Readonly<Record<string, ResolvedStyleProperty>>;
|
|
25
|
+
readonly appliedClasses: readonly ResolvedStyleSource[];
|
|
26
|
+
};
|
|
27
|
+
type ResolvedStyleMap = ReadonlyMap<StyleEntityId, ResolvedStyle>;
|
|
28
|
+
type StyleResolutionResult = {
|
|
29
|
+
readonly resolvedStyles: ResolvedStyleMap;
|
|
30
|
+
readonly diagnostics: Diagnostics;
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
3
33
|
//#region src/ir/index.d.ts
|
|
4
34
|
type PresentationIR = {
|
|
5
35
|
version: "0.1";
|
|
@@ -247,6 +277,7 @@ type CompileMode = "inspect" | "strict";
|
|
|
247
277
|
type CompileInspectResult = {
|
|
248
278
|
readonly graph?: SemanticAuthorGraph;
|
|
249
279
|
readonly diagnostics: Diagnostics;
|
|
280
|
+
readonly resolvedStyles?: ResolvedStyleMap;
|
|
250
281
|
};
|
|
251
282
|
type WithSource<TSourceContext> = [TSourceContext] extends [void] ? never : (sourceContext: TSourceContext) => BoundSource<TSourceContext>;
|
|
252
283
|
declare class BoundSource<TSourceContext = void> implements CompositionSource<TSourceContext> {
|
|
@@ -269,6 +300,7 @@ declare class Deck<TSourceContext = void> implements CompositionSource<TSourceCo
|
|
|
269
300
|
constructor(options: DeckOptions);
|
|
270
301
|
get options(): DeckOptions;
|
|
271
302
|
[COMPOSITION_SOURCE](): CompositionSourceInternals<TSourceContext>;
|
|
303
|
+
useStyles(stylesheet: StyleSheet): this;
|
|
272
304
|
add(slide: SlideFactory<TSourceContext>): this;
|
|
273
305
|
mount<TChildContext>(sourceKey: string, child: Deck<TChildContext>, ...context: [TChildContext] extends [void] ? [] : [sourceContext: SourceContextInput<TSourceContext, TChildContext>]): this;
|
|
274
306
|
mount<TChildContext>(sourceKey: string, child: BoundSource<TChildContext>): this;
|
|
@@ -304,4 +336,4 @@ declare global {
|
|
|
304
336
|
}
|
|
305
337
|
}
|
|
306
338
|
//#endregion
|
|
307
|
-
export { type AssetEntity, type AssetEntityId, type AuthorNode, type AuthorNodeKind, type AuthorNodeMap, type AuthorNodeProps, type AuthorNodePropsMap, type BackendArtifact, type BackendName, type BackgroundImageLayerIR, type BackgroundLayerIR, type BaseNodeIR, type BaseSemanticNode, type BorderStyle, type BoundSource, type ClassNameObject, type ClassNameValue, type ClassNameValueArray, type CompileBackend, type CompileInspectResult, type CompileMode, type CompositionContext, CompositionDiagnosticError, type ContentAuthorNode, type ContentJsxChild, type CssAlignContent, type CssAlignItems, type CssAlignSelf, type CssAspectRatio, type CssBoxSizing, type CssDisplay, type CssFlexBasis, type CssFlexDirection, type CssFlexWrap, type CssGridAutoFlow, type CssGridLine, type CssGridPlacement, type CssGridShorthand, type CssGridTemplate, type CssGridTemplateAreas, type CssGridTemplateShorthand, type CssGridTrack, type CssJustifyContent, type CssJustifySelf, type CssObjectPosition, type CssOverflow, type CssPosition, type CssVisibility, Deck, DeckDiagnosticError, type DeckJsxIntrinsicElements, type DeckLength, type DeckOptions, type DeckPointLength, type Diagnostic, type DiagnosticLabel, type DiagnosticSeverity, type Diagnostics, EMU_PER_INCH, type EdgeStrokeIR, type FillIR, Fragment, type FrameIR, type GraphNodeId, type GroupIR, type HyperlinkIR, Image, type ImageCropAuthoring, type ImageCropIR, type ImageCropValue, type ImageIR, type ImageProps, type ImageSourceIR, type ImageStyle, type ImplementedBackendName, type IntrinsicDivProps, type IntrinsicImgProps, type IntrinsicPProps, type IntrinsicTextTag, type IntrinsicViewTag, type JsxKey, type JsxNode, type LayoutMode, type LinearGradientFillIR, type LinearGradientStopIR, type NodeIR, type ObjectPositionIR, type OutputConfig, POINTS_PER_INCH, type PresentationIR, type RadialGradientFillIR, type SemanticAuthorGraph, type SemanticContainerNode, type SemanticDocumentNode, SemanticGraphDiagnosticError, type SemanticImageNode, type SemanticNode, type SemanticNodeKind, type SemanticOrigin, type SemanticRole, type SemanticShapeNode, type SemanticSlideNode, type SemanticTextNode, type SemanticTextRunNode, type ShadowIR, Shape, type ShapeIR, type ShapeProps, type ShapeStyle, type SizeIR, Slide, type SlideFactory, type SlideFactoryInput, type SlideIR, type SlideProps, type SlideStyle, type SolidFillIR, type SourceContextMapper, type SourceIdentity, type SourceOrigin, type SourceSpan, type Spacing, type StackAlignment, type StackAxis, type StrokeDashType, type StrokeIR, type StrokeLineCap, type StrokeLineJoin, type StyleClassRef, type StyleEntity, type StyleEntityId, Text, type TextBulletListIR, type TextContentIR, type TextFit, type TextIR, type TextJsxChild, type TextListIR, type TextNoListIR, type TextNumberListIR, type TextProps, type TextRunIR, type TextStyle, type TextStyleIR, type TextTabStopAlignment, type TextTabStopAuthoring, type TextTabStopIR, type TextTabStopLength, type VerticalAlign, View, type ViewProps, type ViewStyle, createElement, formatDiagnostic, formatDiagnostics, isAuthorNode, isContentNode, isSlideNode, pptxgenjsBackend };
|
|
339
|
+
export { type AssetEntity, type AssetEntityId, type AuthorNode, type AuthorNodeKind, type AuthorNodeMap, type AuthorNodeProps, type AuthorNodePropsMap, type BackendArtifact, type BackendName, type BackgroundImageLayerIR, type BackgroundLayerIR, type BaseNodeIR, type BaseSemanticNode, type BorderStyle, type BoundSource, type ClassNameObject, type ClassNameValue, type ClassNameValueArray, type CompileBackend, type CompileInspectResult, type CompileMode, type CompositionContext, CompositionDiagnosticError, type ContentAuthorNode, type ContentJsxChild, type CssAlignContent, type CssAlignItems, type CssAlignSelf, type CssAspectRatio, type CssBoxSizing, type CssDisplay, type CssFlexBasis, type CssFlexDirection, type CssFlexWrap, type CssGridAutoFlow, type CssGridLine, type CssGridPlacement, type CssGridShorthand, type CssGridTemplate, type CssGridTemplateAreas, type CssGridTemplateShorthand, type CssGridTrack, type CssJustifyContent, type CssJustifySelf, type CssObjectPosition, type CssOverflow, type CssPosition, type CssVisibility, Deck, DeckDiagnosticError, type DeckJsxIntrinsicElements, type DeckLength, type DeckOptions, type DeckPointLength, type Diagnostic, type DiagnosticLabel, type DiagnosticSeverity, type Diagnostics, EMU_PER_INCH, type EdgeStrokeIR, type FillIR, Fragment, type FrameIR, type GraphNodeId, type GroupIR, type HyperlinkIR, Image, type ImageCropAuthoring, type ImageCropIR, type ImageCropValue, type ImageIR, type ImageProps, type ImageSourceIR, type ImageStyle, type ImplementedBackendName, type IntrinsicDivProps, type IntrinsicImgProps, type IntrinsicPProps, type IntrinsicTextTag, type IntrinsicViewTag, type JsxKey, type JsxNode, type LayoutMode, type LinearGradientFillIR, type LinearGradientStopIR, type NodeIR, type ObjectPositionIR, type OutputConfig, POINTS_PER_INCH, type PresentationIR, type RadialGradientFillIR, type ResolvedStyle, type ResolvedStyleLayer, type ResolvedStyleMap, type ResolvedStyleProperty, type ResolvedStyleSource, type SemanticAuthorGraph, type SemanticContainerNode, type SemanticDocumentNode, SemanticGraphDiagnosticError, type SemanticImageNode, type SemanticNode, type SemanticNodeKind, type SemanticOrigin, type SemanticRole, type SemanticShapeNode, type SemanticSlideNode, type SemanticTextNode, type SemanticTextRunNode, type ShadowIR, Shape, type ShapeIR, type ShapeProps, type ShapeStyle, type SizeIR, Slide, type SlideFactory, type SlideFactoryInput, type SlideIR, type SlideProps, type SlideStyle, type SolidFillIR, type SourceContextMapper, type SourceIdentity, type SourceOrigin, type SourceSpan, type Spacing, type StackAlignment, type StackAxis, type StrokeDashType, type StrokeIR, type StrokeLineCap, type StrokeLineJoin, type StyleClassDefinition, type StyleClassRef, type StyleClassStyle, StyleDiagnosticError, type StyleEntity, type StyleEntityId, type StyleResolutionResult, type StyleSheet, type StyleTargetSelector, Text, type TextBulletListIR, type TextContentIR, type TextFit, type TextIR, type TextJsxChild, type TextListIR, type TextNoListIR, type TextNumberListIR, type TextProps, type TextRunIR, type TextRunNodeProps, type TextRunStyle, type TextStyle, type TextStyleIR, type TextTabStopAlignment, type TextTabStopAuthoring, type TextTabStopIR, type TextTabStopLength, type VerticalAlign, View, type ViewProps, type ViewStyle, createElement, defineStyles, formatDiagnostic, formatDiagnostics, isAuthorNode, isContentNode, isSlideNode, pptxgenjsBackend };
|
package/dist/index.mjs
CHANGED
|
@@ -28,6 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
}) : target, mod));
|
|
29
29
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
30
|
//#endregion
|
|
31
|
+
//#region src/authoring/index.ts
|
|
32
|
+
function defineStyles(stylesheet) {
|
|
33
|
+
return stylesheet;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
31
36
|
//#region src/types.ts
|
|
32
37
|
const EMU_PER_INCH = 914400;
|
|
33
38
|
const POINTS_PER_INCH = 72;
|
|
@@ -4189,6 +4194,12 @@ var CompositionDiagnosticError = class extends DeckDiagnosticError {
|
|
|
4189
4194
|
this.name = "CompositionDiagnosticError";
|
|
4190
4195
|
}
|
|
4191
4196
|
};
|
|
4197
|
+
var StyleDiagnosticError = class extends DeckDiagnosticError {
|
|
4198
|
+
constructor(diagnostics) {
|
|
4199
|
+
super(formatDiagnostics(diagnostics), diagnostics);
|
|
4200
|
+
this.name = "StyleDiagnosticError";
|
|
4201
|
+
}
|
|
4202
|
+
};
|
|
4192
4203
|
//#endregion
|
|
4193
4204
|
//#region src/diagnostics/index.ts
|
|
4194
4205
|
function createDiagnostics(items = []) {
|
|
@@ -4402,6 +4413,7 @@ function resolveSource(source, context) {
|
|
|
4402
4413
|
return {
|
|
4403
4414
|
source: context.source,
|
|
4404
4415
|
sourceIdentityMaterial: context.sourceIdentityMaterial,
|
|
4416
|
+
stylesheets: sourceState.stylesheets,
|
|
4405
4417
|
context: effectiveContext,
|
|
4406
4418
|
entries,
|
|
4407
4419
|
slideCount,
|
|
@@ -4440,6 +4452,7 @@ function flattenPlan(plan, deckTotalSlides, deckSlideIndex, roots, diagnostics)
|
|
|
4440
4452
|
root,
|
|
4441
4453
|
source: plan.source,
|
|
4442
4454
|
sourceIdentityMaterial: plan.sourceIdentityMaterial,
|
|
4455
|
+
stylesheets: plan.stylesheets,
|
|
4443
4456
|
path: entry.path,
|
|
4444
4457
|
composition,
|
|
4445
4458
|
slotOrigins: plan.slotOrigins
|
|
@@ -4581,10 +4594,6 @@ function textOriginFor(node, path, context) {
|
|
|
4581
4594
|
...node.sourceSpan ? { sourceSpan: node.sourceSpan } : {}
|
|
4582
4595
|
};
|
|
4583
4596
|
}
|
|
4584
|
-
function propsWithoutStyle(props) {
|
|
4585
|
-
const { style: _style, children: _children, className: _className, ...direct } = props;
|
|
4586
|
-
return Object.keys(direct).length === 0 ? void 0 : direct;
|
|
4587
|
-
}
|
|
4588
4597
|
function collectClassNames(value, names) {
|
|
4589
4598
|
if (value === false || value === null || value === void 0) return;
|
|
4590
4599
|
if (typeof value === "string") {
|
|
@@ -4607,18 +4616,30 @@ function classRefsFor(value) {
|
|
|
4607
4616
|
index
|
|
4608
4617
|
}));
|
|
4609
4618
|
}
|
|
4619
|
+
function directStyleProps(props) {
|
|
4620
|
+
const { children: _children, className: _className, data: _data, name: _name, shape: _shape, src: _src, style: _style, ...directStyle } = props;
|
|
4621
|
+
return Object.keys(directStyle).length === 0 ? void 0 : directStyle;
|
|
4622
|
+
}
|
|
4623
|
+
function mergedAuthoredStyle(props) {
|
|
4624
|
+
const directStyle = directStyleProps(props);
|
|
4625
|
+
const inlineStyle = props.style;
|
|
4626
|
+
if (directStyle === void 0) return inlineStyle;
|
|
4627
|
+
if (inlineStyle !== void 0 && (typeof inlineStyle !== "object" || inlineStyle === null || Array.isArray(inlineStyle))) return inlineStyle;
|
|
4628
|
+
return {
|
|
4629
|
+
...directStyle,
|
|
4630
|
+
...inlineStyle
|
|
4631
|
+
};
|
|
4632
|
+
}
|
|
4610
4633
|
function styleRefFor(state, idMaterial, target, props) {
|
|
4611
|
-
const style = props
|
|
4612
|
-
const direct = propsWithoutStyle(props);
|
|
4634
|
+
const style = mergedAuthoredStyle(props);
|
|
4613
4635
|
const classRefs = classRefsFor(props.className);
|
|
4614
|
-
if (style === void 0 &&
|
|
4636
|
+
if (style === void 0 && classRefs === void 0) return;
|
|
4615
4637
|
const id = styleEntityId(idMaterial);
|
|
4616
4638
|
state.styles.set(id, {
|
|
4617
4639
|
id,
|
|
4618
4640
|
target,
|
|
4619
4641
|
authored: {
|
|
4620
4642
|
...style !== void 0 ? { style } : {},
|
|
4621
|
-
...direct !== void 0 ? { direct } : {},
|
|
4622
4643
|
...classRefs !== void 0 ? { classRefs } : {}
|
|
4623
4644
|
}
|
|
4624
4645
|
});
|
|
@@ -4875,6 +4896,7 @@ function asComposedRoot(root, index) {
|
|
|
4875
4896
|
root,
|
|
4876
4897
|
source: rootSource(),
|
|
4877
4898
|
sourceIdentityMaterial: ["source", "root"],
|
|
4899
|
+
stylesheets: [],
|
|
4878
4900
|
path: `document > slideFactory[${index}]`,
|
|
4879
4901
|
composition: {
|
|
4880
4902
|
slideIndex: index,
|
|
@@ -4934,6 +4956,237 @@ function buildSemanticAuthorGraph(roots) {
|
|
|
4934
4956
|
};
|
|
4935
4957
|
}
|
|
4936
4958
|
//#endregion
|
|
4959
|
+
//#region src/style/resolve.ts
|
|
4960
|
+
function sourceKeyFor(source) {
|
|
4961
|
+
return !source || source.kind === "root" ? "root" : source.sourceIdentity;
|
|
4962
|
+
}
|
|
4963
|
+
function classesBySource(roots) {
|
|
4964
|
+
const stylesheets = /* @__PURE__ */ new Map();
|
|
4965
|
+
roots.forEach((root) => {
|
|
4966
|
+
const key = sourceKeyFor(root.source);
|
|
4967
|
+
if (!stylesheets.has(key)) stylesheets.set(key, root.stylesheets);
|
|
4968
|
+
});
|
|
4969
|
+
return stylesheets;
|
|
4970
|
+
}
|
|
4971
|
+
function isTargetedDefinition(definition) {
|
|
4972
|
+
return typeof definition === "object" && definition !== null && "style" in definition && typeof definition.style === "object" && definition.style !== null;
|
|
4973
|
+
}
|
|
4974
|
+
function styleObjectFor(definition) {
|
|
4975
|
+
return isTargetedDefinition(definition) ? definition.style : definition;
|
|
4976
|
+
}
|
|
4977
|
+
function targetsFor(definition) {
|
|
4978
|
+
if (!isTargetedDefinition(definition) || definition.target === void 0) return;
|
|
4979
|
+
return typeof definition.target === "string" ? [definition.target] : definition.target;
|
|
4980
|
+
}
|
|
4981
|
+
function invalidClassNameReason(name) {
|
|
4982
|
+
if (name.trim().length === 0) return "Style Class names must not be empty.";
|
|
4983
|
+
if (/\s/.test(name)) return "Style Class names must not contain whitespace.";
|
|
4984
|
+
if (name.includes("/")) return "Style Class names must not contain /.";
|
|
4985
|
+
}
|
|
4986
|
+
function styleDiagnostic(input) {
|
|
4987
|
+
return diagnostic({
|
|
4988
|
+
severity: "error",
|
|
4989
|
+
code: input.code,
|
|
4990
|
+
title: input.title,
|
|
4991
|
+
message: input.message,
|
|
4992
|
+
labels: [{
|
|
4993
|
+
path: input.path,
|
|
4994
|
+
message: input.message
|
|
4995
|
+
}],
|
|
4996
|
+
...input.help ? { help: input.help } : {}
|
|
4997
|
+
});
|
|
4998
|
+
}
|
|
4999
|
+
function compareSpecificity(left, right) {
|
|
5000
|
+
return left[0] - right[0] || left[1] - right[1] || left[2] - right[2];
|
|
5001
|
+
}
|
|
5002
|
+
function parseSelector(selector) {
|
|
5003
|
+
const value = selector.trim();
|
|
5004
|
+
if (value.length === 0 || /[\s>+~#:[\],*]/.test(value)) return;
|
|
5005
|
+
const tag = value.match(/^[a-z][a-z0-9-]*/)?.[0];
|
|
5006
|
+
const rest = tag ? value.slice(tag.length) : value;
|
|
5007
|
+
if (rest.length === 0) return {
|
|
5008
|
+
...tag ? { tag } : {},
|
|
5009
|
+
classes: [],
|
|
5010
|
+
specificity: [
|
|
5011
|
+
0,
|
|
5012
|
+
0,
|
|
5013
|
+
tag ? 1 : 0
|
|
5014
|
+
]
|
|
5015
|
+
};
|
|
5016
|
+
const classMatches = [...rest.matchAll(/\.([_a-zA-Z-][_a-zA-Z0-9-]*)/g)];
|
|
5017
|
+
if (classMatches.map((match) => match[0]).join("") !== rest || classMatches.length === 0) return;
|
|
5018
|
+
return {
|
|
5019
|
+
...tag ? { tag } : {},
|
|
5020
|
+
classes: classMatches.map((match) => match[1]),
|
|
5021
|
+
specificity: [
|
|
5022
|
+
0,
|
|
5023
|
+
classMatches.length,
|
|
5024
|
+
tag ? 1 : 0
|
|
5025
|
+
]
|
|
5026
|
+
};
|
|
5027
|
+
}
|
|
5028
|
+
function selectorFor(className, target) {
|
|
5029
|
+
if (target === void 0) return `.${className}`;
|
|
5030
|
+
return target;
|
|
5031
|
+
}
|
|
5032
|
+
function effectiveSpecificity(className, selector) {
|
|
5033
|
+
const includesClassName = selector.classes.includes(className);
|
|
5034
|
+
return [
|
|
5035
|
+
selector.specificity[0],
|
|
5036
|
+
selector.specificity[1] + (includesClassName ? 0 : 1),
|
|
5037
|
+
selector.specificity[2]
|
|
5038
|
+
];
|
|
5039
|
+
}
|
|
5040
|
+
function selectorMatches(className, selector, node, activeClassNames) {
|
|
5041
|
+
if (!activeClassNames.has(className)) return false;
|
|
5042
|
+
if (selector.tag !== void 0 && node.authoredTag !== selector.tag) return false;
|
|
5043
|
+
return selector.classes.every((name) => activeClassNames.has(name));
|
|
5044
|
+
}
|
|
5045
|
+
function registerStylesheets(sourceKey, stylesheets, diagnostics) {
|
|
5046
|
+
const classes = /* @__PURE__ */ new Map();
|
|
5047
|
+
let ruleIndex = 0;
|
|
5048
|
+
stylesheets?.forEach((stylesheet, stylesheetIndex) => {
|
|
5049
|
+
Object.entries(stylesheet.classes).forEach(([className, definition]) => {
|
|
5050
|
+
const path = `source:${sourceKey} > stylesheet[${stylesheetIndex}].classes.${className}`;
|
|
5051
|
+
const invalidReason = invalidClassNameReason(className);
|
|
5052
|
+
if (invalidReason) {
|
|
5053
|
+
diagnostics.push(styleDiagnostic({
|
|
5054
|
+
code: "E_STYLE_INVALID_CLASS_NAME",
|
|
5055
|
+
title: "invalid style class name",
|
|
5056
|
+
path,
|
|
5057
|
+
message: invalidReason
|
|
5058
|
+
}));
|
|
5059
|
+
return;
|
|
5060
|
+
}
|
|
5061
|
+
const list = classes.get(className) ?? [];
|
|
5062
|
+
classes.set(className, [...list, {
|
|
5063
|
+
className,
|
|
5064
|
+
definition,
|
|
5065
|
+
stylesheetIndex,
|
|
5066
|
+
ruleIndex: ruleIndex++,
|
|
5067
|
+
path
|
|
5068
|
+
}]);
|
|
5069
|
+
});
|
|
5070
|
+
});
|
|
5071
|
+
return classes;
|
|
5072
|
+
}
|
|
5073
|
+
function resolveClassMatches(node, entity, registry, diagnostics) {
|
|
5074
|
+
const classRefs = entity.authored.classRefs ?? [];
|
|
5075
|
+
const activeClassNames = new Set(classRefs.map((ref) => ref.name));
|
|
5076
|
+
const matched = [];
|
|
5077
|
+
[...activeClassNames].forEach((className) => {
|
|
5078
|
+
const registrations = registry.get(className);
|
|
5079
|
+
if (!registrations || registrations.length === 0) {
|
|
5080
|
+
diagnostics.push(styleDiagnostic({
|
|
5081
|
+
code: "E_STYLE_UNKNOWN_CLASS",
|
|
5082
|
+
title: "unknown style class",
|
|
5083
|
+
path: node.origin.path,
|
|
5084
|
+
message: `Style Class "${className}" is referenced but is not defined in this source.`,
|
|
5085
|
+
help: ["Register a stylesheet with deck.useStyles() on the same Deck source."]
|
|
5086
|
+
}));
|
|
5087
|
+
return;
|
|
5088
|
+
}
|
|
5089
|
+
const before = matched.length;
|
|
5090
|
+
let hasSelectorDiagnostic = false;
|
|
5091
|
+
registrations.forEach((registration) => {
|
|
5092
|
+
const targets = targetsFor(registration.definition);
|
|
5093
|
+
(targets === void 0 ? [void 0] : targets).forEach((target) => {
|
|
5094
|
+
const selectorText = selectorFor(className, target);
|
|
5095
|
+
const selector = parseSelector(selectorText);
|
|
5096
|
+
if (!selector) {
|
|
5097
|
+
hasSelectorDiagnostic = true;
|
|
5098
|
+
diagnostics.push(styleDiagnostic({
|
|
5099
|
+
code: "E_STYLE_UNSUPPORTED_SELECTOR",
|
|
5100
|
+
title: "unsupported stylesheet selector",
|
|
5101
|
+
path: registration.path,
|
|
5102
|
+
message: `Selector "${selectorText}" is not supported in v0.4.0.`,
|
|
5103
|
+
help: ["Use a simple class selector such as .title or a compound selector such as p.title."]
|
|
5104
|
+
}));
|
|
5105
|
+
return;
|
|
5106
|
+
}
|
|
5107
|
+
if (!selectorMatches(className, selector, node, activeClassNames)) return;
|
|
5108
|
+
matched.push({
|
|
5109
|
+
registration,
|
|
5110
|
+
selector: selectorText,
|
|
5111
|
+
specificity: effectiveSpecificity(className, selector),
|
|
5112
|
+
style: styleObjectFor(registration.definition)
|
|
5113
|
+
});
|
|
5114
|
+
});
|
|
5115
|
+
});
|
|
5116
|
+
if (matched.length === before && !hasSelectorDiagnostic) diagnostics.push(styleDiagnostic({
|
|
5117
|
+
code: "E_STYLE_TARGET_MISMATCH",
|
|
5118
|
+
title: "style class target does not match element",
|
|
5119
|
+
path: node.origin.path,
|
|
5120
|
+
message: `Style Class "${className}" is defined but no target matches this element.`,
|
|
5121
|
+
help: ["Adjust the class target selector or move the className to a matching element."]
|
|
5122
|
+
}));
|
|
5123
|
+
});
|
|
5124
|
+
return matched.sort((left, right) => {
|
|
5125
|
+
return compareSpecificity(left.specificity, right.specificity) || left.registration.ruleIndex - right.registration.ruleIndex;
|
|
5126
|
+
});
|
|
5127
|
+
}
|
|
5128
|
+
function applyProperties(style, source, properties) {
|
|
5129
|
+
Object.entries(style).forEach(([key, value]) => {
|
|
5130
|
+
properties[key] = {
|
|
5131
|
+
value,
|
|
5132
|
+
source
|
|
5133
|
+
};
|
|
5134
|
+
});
|
|
5135
|
+
}
|
|
5136
|
+
function resolvedStyleFor(node, entity, registry, diagnostics) {
|
|
5137
|
+
const properties = {};
|
|
5138
|
+
const appliedClasses = [];
|
|
5139
|
+
resolveClassMatches(node, entity, registry, diagnostics).forEach((match) => {
|
|
5140
|
+
const source = {
|
|
5141
|
+
layer: "class",
|
|
5142
|
+
className: match.registration.className,
|
|
5143
|
+
stylesheetIndex: match.registration.stylesheetIndex,
|
|
5144
|
+
ruleIndex: match.registration.ruleIndex,
|
|
5145
|
+
selector: match.selector
|
|
5146
|
+
};
|
|
5147
|
+
appliedClasses.push(source);
|
|
5148
|
+
applyProperties(match.style, source, properties);
|
|
5149
|
+
});
|
|
5150
|
+
if (typeof entity.authored.style === "object" && entity.authored.style !== null) applyProperties(entity.authored.style, { layer: "style" }, properties);
|
|
5151
|
+
return {
|
|
5152
|
+
style: Object.fromEntries(Object.entries(properties).map(([key, property]) => [key, property.value])),
|
|
5153
|
+
properties,
|
|
5154
|
+
appliedClasses
|
|
5155
|
+
};
|
|
5156
|
+
}
|
|
5157
|
+
function nodeByStyleRef(graph) {
|
|
5158
|
+
const nodes = /* @__PURE__ */ new Map();
|
|
5159
|
+
graph.nodes.forEach((node) => {
|
|
5160
|
+
if (node.styleRef) nodes.set(node.styleRef, node);
|
|
5161
|
+
});
|
|
5162
|
+
return nodes;
|
|
5163
|
+
}
|
|
5164
|
+
function resolveStyles(graph, roots) {
|
|
5165
|
+
const diagnostics = [];
|
|
5166
|
+
const stylesheets = classesBySource(roots);
|
|
5167
|
+
const registries = /* @__PURE__ */ new Map();
|
|
5168
|
+
const nodes = nodeByStyleRef(graph);
|
|
5169
|
+
const resolvedStyles = /* @__PURE__ */ new Map();
|
|
5170
|
+
stylesheets.forEach((sourceStylesheets, sourceKey) => {
|
|
5171
|
+
registries.set(sourceKey, registerStylesheets(sourceKey, sourceStylesheets, diagnostics));
|
|
5172
|
+
});
|
|
5173
|
+
graph.styles.forEach((entity, id) => {
|
|
5174
|
+
const node = nodes.get(id);
|
|
5175
|
+
if (!node) return;
|
|
5176
|
+
const sourceKey = sourceKeyFor(node.origin.source);
|
|
5177
|
+
let registry = registries.get(sourceKey);
|
|
5178
|
+
if (!registry) {
|
|
5179
|
+
registry = registerStylesheets(sourceKey, stylesheets.get(sourceKey), diagnostics);
|
|
5180
|
+
registries.set(sourceKey, registry);
|
|
5181
|
+
}
|
|
5182
|
+
resolvedStyles.set(id, resolvedStyleFor(node, entity, registry, diagnostics));
|
|
5183
|
+
});
|
|
5184
|
+
return {
|
|
5185
|
+
resolvedStyles,
|
|
5186
|
+
diagnostics: createDiagnostics(diagnostics)
|
|
5187
|
+
};
|
|
5188
|
+
}
|
|
5189
|
+
//#endregion
|
|
4937
5190
|
//#region node_modules/inherits/inherits_browser.js
|
|
4938
5191
|
var require_inherits_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4939
5192
|
if (typeof Object.create === "function") module.exports = function inherits(ctor, superCtor) {
|
|
@@ -16068,6 +16321,9 @@ function directSlideFactories(entries) {
|
|
|
16068
16321
|
function mountedSourceError() {
|
|
16069
16322
|
return /* @__PURE__ */ new Error("Mounted sources are supported by compile() only until the output pipeline supports graph composition.");
|
|
16070
16323
|
}
|
|
16324
|
+
function combineDiagnostics(...diagnostics) {
|
|
16325
|
+
return createDiagnostics(diagnostics.flatMap((item) => item.items));
|
|
16326
|
+
}
|
|
16071
16327
|
function compileSource(source, config = {}) {
|
|
16072
16328
|
const composition = resolveComposition(source);
|
|
16073
16329
|
if (composition.diagnostics.hasErrors) {
|
|
@@ -16075,8 +16331,15 @@ function compileSource(source, config = {}) {
|
|
|
16075
16331
|
throw new CompositionDiagnosticError(composition.diagnostics);
|
|
16076
16332
|
}
|
|
16077
16333
|
const result = buildSemanticAuthorGraph(composition.roots ?? []);
|
|
16078
|
-
|
|
16334
|
+
const styleResult = result.graph ? resolveStyles(result.graph, composition.roots ?? []) : void 0;
|
|
16335
|
+
const diagnostics = styleResult ? combineDiagnostics(result.diagnostics, styleResult.diagnostics) : result.diagnostics;
|
|
16336
|
+
if (config.mode === "inspect") return {
|
|
16337
|
+
...result.graph ? { graph: result.graph } : {},
|
|
16338
|
+
diagnostics,
|
|
16339
|
+
...styleResult ? { resolvedStyles: styleResult.resolvedStyles } : {}
|
|
16340
|
+
};
|
|
16079
16341
|
if (result.diagnostics.hasErrors) throw new SemanticGraphDiagnosticError(result.diagnostics);
|
|
16342
|
+
if (styleResult?.diagnostics.hasErrors) throw new StyleDiagnosticError(styleResult.diagnostics);
|
|
16080
16343
|
if (!result.graph) throw new SemanticGraphDiagnosticError(result.diagnostics);
|
|
16081
16344
|
return result.graph;
|
|
16082
16345
|
}
|
|
@@ -16091,6 +16354,7 @@ var BoundSource = class {
|
|
|
16091
16354
|
const source = this.#source[COMPOSITION_SOURCE]();
|
|
16092
16355
|
return {
|
|
16093
16356
|
entries: source.entries,
|
|
16357
|
+
stylesheets: source.stylesheets,
|
|
16094
16358
|
cycleId: source.cycleId,
|
|
16095
16359
|
boundContext: {
|
|
16096
16360
|
present: true,
|
|
@@ -16116,6 +16380,7 @@ var BoundSource = class {
|
|
|
16116
16380
|
var Deck = class {
|
|
16117
16381
|
#options;
|
|
16118
16382
|
#entries = [];
|
|
16383
|
+
#stylesheets = [];
|
|
16119
16384
|
withSource;
|
|
16120
16385
|
constructor(options) {
|
|
16121
16386
|
this.#options = options;
|
|
@@ -16127,10 +16392,15 @@ var Deck = class {
|
|
|
16127
16392
|
[COMPOSITION_SOURCE]() {
|
|
16128
16393
|
return {
|
|
16129
16394
|
entries: this.#entries,
|
|
16395
|
+
stylesheets: this.#stylesheets,
|
|
16130
16396
|
cycleId: this,
|
|
16131
16397
|
boundContext: { present: false }
|
|
16132
16398
|
};
|
|
16133
16399
|
}
|
|
16400
|
+
useStyles(stylesheet) {
|
|
16401
|
+
this.#stylesheets.push(stylesheet);
|
|
16402
|
+
return this;
|
|
16403
|
+
}
|
|
16134
16404
|
add(slide) {
|
|
16135
16405
|
this.#entries.push({
|
|
16136
16406
|
kind: "slide",
|
|
@@ -16160,4 +16430,4 @@ var Deck = class {
|
|
|
16160
16430
|
}
|
|
16161
16431
|
};
|
|
16162
16432
|
//#endregion
|
|
16163
|
-
export { CompositionDiagnosticError, Deck, DeckDiagnosticError, EMU_PER_INCH, Fragment, Image, POINTS_PER_INCH, SemanticGraphDiagnosticError, Shape, Slide, Text, View, createElement, formatDiagnostic, formatDiagnostics, isAuthorNode, isContentNode, isSlideNode, pptxgenjsBackend };
|
|
16433
|
+
export { CompositionDiagnosticError, Deck, DeckDiagnosticError, EMU_PER_INCH, Fragment, Image, POINTS_PER_INCH, SemanticGraphDiagnosticError, Shape, Slide, StyleDiagnosticError, Text, View, createElement, defineStyles, formatDiagnostic, formatDiagnostics, isAuthorNode, isContentNode, isSlideNode, pptxgenjsBackend };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tn as JsxKey, i as Fragment, n as jsx, r as jsxs, t as JSX, wn as AuthorTreeNode } from "./jsx-runtime-BMKEs7aG.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/jsx-dev-runtime.d.ts
|
|
4
4
|
declare function jsxDEV(type: unknown, props: unknown, key?: JsxKey, _isStaticChildren?: boolean, source?: unknown): AuthorTreeNode;
|
|
@@ -55,6 +55,9 @@ declare class SemanticGraphDiagnosticError extends DeckDiagnosticError {
|
|
|
55
55
|
declare class CompositionDiagnosticError extends DeckDiagnosticError {
|
|
56
56
|
constructor(diagnostics: Diagnostics);
|
|
57
57
|
}
|
|
58
|
+
declare class StyleDiagnosticError extends DeckDiagnosticError {
|
|
59
|
+
constructor(diagnostics: Diagnostics);
|
|
60
|
+
}
|
|
58
61
|
//#endregion
|
|
59
62
|
//#region src/diagnostics/format.d.ts
|
|
60
63
|
declare function formatDiagnostic(diagnostic: Diagnostic): string;
|
|
@@ -176,7 +179,6 @@ type StyleEntity = {
|
|
|
176
179
|
readonly target: SemanticNodeKind;
|
|
177
180
|
readonly authored: {
|
|
178
181
|
readonly style?: unknown;
|
|
179
|
-
readonly direct?: unknown;
|
|
180
182
|
readonly classRefs?: readonly StyleClassRef[];
|
|
181
183
|
};
|
|
182
184
|
};
|
|
@@ -242,6 +244,7 @@ type CompositionEntry<TSourceContext = unknown> = {
|
|
|
242
244
|
};
|
|
243
245
|
type CompositionSourceInternals<TSourceContext = unknown> = {
|
|
244
246
|
readonly entries: readonly CompositionEntry<TSourceContext>[];
|
|
247
|
+
readonly stylesheets: readonly StyleSheet[];
|
|
245
248
|
readonly cycleId: object;
|
|
246
249
|
readonly boundContext: SourceContextBinding<TSourceContext>;
|
|
247
250
|
};
|
|
@@ -518,6 +521,18 @@ type ShapeStyle = FrameAuthorProps & Omit<BoxStyleAuthorProps, "backgroundColor"
|
|
|
518
521
|
borderRadius?: DeckLength;
|
|
519
522
|
radius?: DeckLength;
|
|
520
523
|
};
|
|
524
|
+
type TextRunStyle = Pick<TextStyle, "fontFamily" | "fontSize" | "fontWeight" | "italic" | "fontStyle" | "underline" | "strike" | "textDecoration" | "textDecorationLine" | "textDecorationStyle" | "textDecorationColor" | "textTransform" | "direction" | "writingMode" | "color" | "verticalAlign" | "charSpacing" | "letterSpacing" | "href" | "tooltip" | "superscript" | "subscript" | "textShadow">;
|
|
525
|
+
type StyleTargetSelector = string;
|
|
526
|
+
type StyleClassStyle = SlideStyle | ViewStyle | TextStyle | TextRunStyle | ImageStyle | ShapeStyle;
|
|
527
|
+
type TargetedStyleClassDefinition<TStyle extends StyleClassStyle = StyleClassStyle> = {
|
|
528
|
+
readonly target?: StyleTargetSelector | readonly StyleTargetSelector[];
|
|
529
|
+
readonly style: TStyle;
|
|
530
|
+
};
|
|
531
|
+
type StyleClassDefinition<TStyle extends StyleClassStyle = StyleClassStyle> = TStyle | TargetedStyleClassDefinition<TStyle>;
|
|
532
|
+
type StyleSheet<TClasses extends Readonly<Record<string, StyleClassDefinition>> = Readonly<Record<string, StyleClassDefinition>>> = {
|
|
533
|
+
readonly classes: TClasses;
|
|
534
|
+
};
|
|
535
|
+
declare function defineStyles<const TStyleSheet extends StyleSheet>(stylesheet: TStyleSheet): TStyleSheet;
|
|
521
536
|
type DeckOptions = {
|
|
522
537
|
layout: {
|
|
523
538
|
width: number;
|
|
@@ -563,6 +578,9 @@ type TextNodeProps = {
|
|
|
563
578
|
type TextProps = TextNodeProps & {
|
|
564
579
|
children?: TextJsxChild;
|
|
565
580
|
};
|
|
581
|
+
type TextRunNodeProps = {
|
|
582
|
+
style?: TextRunStyle;
|
|
583
|
+
} & ClassNameAuthorProps & TextRunStyle;
|
|
566
584
|
type ImageNodeProps = {
|
|
567
585
|
style?: ImageStyle;
|
|
568
586
|
} & ClassNameAuthorProps & ImageStyle & ({
|
|
@@ -623,12 +641,15 @@ type IntrinsicDivProps = ViewNodeProps & {
|
|
|
623
641
|
type IntrinsicPProps = TextNodeProps & {
|
|
624
642
|
children?: TextJsxChild;
|
|
625
643
|
};
|
|
644
|
+
type IntrinsicSpanProps = TextRunNodeProps & {
|
|
645
|
+
children?: TextJsxChild;
|
|
646
|
+
};
|
|
626
647
|
type IntrinsicImgProps = ImageProps;
|
|
627
648
|
type IntrinsicViewTag = "article" | "aside" | "div" | "figure" | "footer" | "header" | "main" | "nav" | "section";
|
|
628
649
|
type IntrinsicTextTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p";
|
|
629
650
|
type DeckJsxIntrinsicElements = {
|
|
630
651
|
img: IntrinsicImgProps;
|
|
631
|
-
span:
|
|
652
|
+
span: IntrinsicSpanProps;
|
|
632
653
|
} & { [Tag in IntrinsicViewTag]: IntrinsicDivProps } & { [Tag in IntrinsicTextTag]: IntrinsicPProps };
|
|
633
654
|
//#endregion
|
|
634
655
|
//#region src/authoring/components.d.ts
|
|
@@ -688,4 +709,4 @@ declare namespace JSX {
|
|
|
688
709
|
}
|
|
689
710
|
}
|
|
690
711
|
//#endregion
|
|
691
|
-
export { ImageCropAuthoring as $,
|
|
712
|
+
export { ImageCropAuthoring as $, SemanticDocumentNode as $t, CssBoxSizing as A, TextRunStyle as At, CssGridTemplateAreas as B, CompositionContext as Bt, ClassNameValueArray as C, StyleDiagnosticError as Cn, StyleClassStyle as Ct, CssAlignItems as D, TextJsxChild as Dt, CssAlignContent as E, SourceSpan as En, TextFit as Et, CssGridAutoFlow as F, VerticalAlign as Ft, CssObjectPosition as G, SourceContextInput as Gt, CssGridTrack as H, CompositionSourceInternals as Ht, CssGridLine as I, ViewProps as It, CssVisibility as J, AssetEntityId as Jt, CssOverflow as K, SourceContextMapper as Kt, CssGridPlacement as L, ViewStyle as Lt, CssFlexBasis as M, TextTabStopAlignment as Mt, CssFlexDirection as N, TextTabStopAuthoring as Nt, CssAlignSelf as O, TextProps as Ot, CssFlexWrap as P, TextTabStopLength as Pt, DeckPointLength as Q, SemanticContainerNode as Qt, CssGridShorthand as R, defineStyles as Rt, ClassNameValue as S, SemanticGraphDiagnosticError as Sn, StyleClassDefinition as St, ContentJsxChild as T, JsxKey as Tn, StyleTargetSelector as Tt, CssJustifyContent as U, SlideFactory as Ut, CssGridTemplateShorthand as V, CompositionSource as Vt, CssJustifySelf as W, SlideFactoryInput as Wt, DeckLength as X, GraphNodeId as Xt, DeckJsxIntrinsicElements as Y, BaseSemanticNode as Yt, DeckOptions as Z, SemanticAuthorGraph as Zt, AuthorNodeProps as _, Diagnostics as _n, StackAlignment as _t, createElement as a, SemanticShapeNode as an, IntrinsicImgProps as at, BorderStyle as b, CompositionDiagnosticError as bn, StrokeLineCap as bt, isSlideNode as c, SemanticTextRunNode as cn, IntrinsicViewTag as ct, Slide as d, StyleClassRef as dn, OutputConfig as dt, SemanticImageNode as en, ImageCropValue as et, Text as f, StyleEntity as fn, ShapeProps as ft, AuthorNodeMap as g, DiagnosticSeverity as gn, Spacing as gt, AuthorNodeKind as h, DiagnosticLabel as hn, SlideStyle as ht, Fragment as i, SemanticRole as in, IntrinsicDivProps as it, CssDisplay as j, TextStyle as jt, CssAspectRatio as k, TextRunNodeProps as kt, Image as l, SourceIdentity as ln, JsxNode as lt, AuthorNode as m, Diagnostic as mn, SlideProps as mt, jsx as n, SemanticNodeKind as nn, ImageStyle as nt, isAuthorNode as o, SemanticSlideNode as on, IntrinsicPProps as ot, View as p, StyleEntityId as pn, ShapeStyle as pt, CssPosition as q, AssetEntity as qt, jsxs as r, SemanticOrigin as rn, ImplementedBackendName as rt, isContentNode as s, SemanticTextNode as sn, IntrinsicTextTag as st, JSX as t, SemanticNode as tn, ImageProps as tt, Shape as u, SourceOrigin as un, LayoutMode as ut, AuthorNodePropsMap as v, formatDiagnostic as vn, StackAxis as vt, ContentAuthorNode as w, AuthorTreeNode as wn, StyleSheet as wt, ClassNameObject as x, DeckDiagnosticError as xn, StrokeLineJoin as xt, BackendName as y, formatDiagnostics as yn, StrokeDashType as yt, CssGridTemplate as z, COMPOSITION_SOURCE as zt };
|
package/dist/jsx-runtime.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tn as JsxKey, i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-BMKEs7aG.mjs";
|
|
2
2
|
export { Fragment, JSX, JsxKey, jsx, jsxs };
|