deckjsx 0.4.1 → 0.6.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/README.md +21 -15
- package/dist/adapter-BbtteJ7s.mjs +11244 -0
- package/dist/adapter-C8xw46nz.d.mts +22 -0
- package/dist/adapter.d.mts +2 -0
- package/dist/adapter.mjs +2 -0
- package/dist/{jsx-runtime-BMKEs7aG.d.mts → index-C5l8PX5V.d.mts} +121 -134
- package/dist/index.d.mts +33 -296
- package/dist/index.mjs +7235 -15988
- package/dist/inspect.d.mts +3 -0
- package/dist/inspect.mjs +1 -0
- package/dist/{jsx-B9HB9_cS.mjs → jsx-C671yNZa.mjs} +103 -103
- package/dist/jsx-dev-runtime.d.mts +2 -1
- package/dist/jsx-dev-runtime.mjs +1 -1
- package/dist/jsx-runtime-DwfBuBkY.d.mts +57 -0
- package/dist/jsx-runtime.d.mts +2 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/pptx-PzEK54aA.d.mts +448 -0
- package/package.json +3 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Yt as Diagnostics } from "./index-C5l8PX5V.mjs";
|
|
2
|
+
import { F as OutputFormat, L as ProjectionFormat, s as PptxPackageModel, z as RenderedArtifact } from "./pptx-PzEK54aA.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/adapter.d.ts
|
|
5
|
+
type RenderOptions = {
|
|
6
|
+
readonly output?: string;
|
|
7
|
+
};
|
|
8
|
+
type WriterAdapterResult<TFormat extends OutputFormat = OutputFormat> = {
|
|
9
|
+
readonly diagnostics: Diagnostics;
|
|
10
|
+
readonly artifact?: RenderedArtifact<TFormat>;
|
|
11
|
+
};
|
|
12
|
+
type WriterAdapter<TProjection = unknown, TFormat extends OutputFormat = OutputFormat> = {
|
|
13
|
+
readonly kind: "deckjsx.writerAdapter";
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly projectionFormat: ProjectionFormat;
|
|
16
|
+
readonly format: TFormat;
|
|
17
|
+
readonly options: RenderOptions;
|
|
18
|
+
render(projection: TProjection): Promise<WriterAdapterResult<TFormat>>;
|
|
19
|
+
};
|
|
20
|
+
declare function pptxgenjs(options?: RenderOptions): WriterAdapter<PptxPackageModel, "pptx">;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { pptxgenjs as i, WriterAdapter as n, WriterAdapterResult as r, RenderOptions as t };
|
package/dist/adapter.mjs
ADDED
|
@@ -168,6 +168,7 @@ type SemanticImageNode = BaseSemanticNode & {
|
|
|
168
168
|
};
|
|
169
169
|
type SemanticShapeNode = BaseSemanticNode & {
|
|
170
170
|
readonly kind: "shape";
|
|
171
|
+
readonly shape: "rect" | "ellipse" | "line";
|
|
171
172
|
};
|
|
172
173
|
type SemanticNode = SemanticContainerNode | SemanticDocumentNode | SemanticImageNode | SemanticShapeNode | SemanticSlideNode | SemanticTextNode | SemanticTextRunNode;
|
|
173
174
|
type StyleClassRef = {
|
|
@@ -208,51 +209,7 @@ type SemanticAuthorGraph = {
|
|
|
208
209
|
readonly assets: ReadonlyMap<AssetEntityId, AssetEntity>;
|
|
209
210
|
};
|
|
210
211
|
//#endregion
|
|
211
|
-
//#region src/
|
|
212
|
-
declare const COMPOSITION_SOURCE: unique symbol;
|
|
213
|
-
type CompositionContext = {
|
|
214
|
-
readonly sourceKey?: string;
|
|
215
|
-
readonly slideIndex: number;
|
|
216
|
-
readonly totalSlides: number;
|
|
217
|
-
readonly deckSlideIndex: number;
|
|
218
|
-
readonly deckTotalSlides: number;
|
|
219
|
-
};
|
|
220
|
-
type SlideFactoryInput<TSourceContext = void> = [TSourceContext] extends [void] ? {
|
|
221
|
-
readonly composition: CompositionContext;
|
|
222
|
-
} : {
|
|
223
|
-
readonly context: TSourceContext;
|
|
224
|
-
readonly composition: CompositionContext;
|
|
225
|
-
};
|
|
226
|
-
type SlideFactory<TSourceContext = void> = (input: SlideFactoryInput<TSourceContext>) => JsxNode;
|
|
227
|
-
type SourceContextMapper<TParentContext, TChildContext> = [TParentContext] extends [void] ? () => TChildContext : (context: TParentContext) => TChildContext;
|
|
228
|
-
type SourceContextInput<TParentContext, TChildContext> = TChildContext | SourceContextMapper<TParentContext, TChildContext>;
|
|
229
|
-
type SourceContextBinding<TSourceContext = unknown> = {
|
|
230
|
-
readonly present: false;
|
|
231
|
-
} | {
|
|
232
|
-
readonly present: true;
|
|
233
|
-
readonly value: TSourceContext;
|
|
234
|
-
};
|
|
235
|
-
type CompositionEntry<TSourceContext = unknown> = {
|
|
236
|
-
readonly kind: "slide";
|
|
237
|
-
readonly factory: SlideFactory<TSourceContext>;
|
|
238
|
-
} | {
|
|
239
|
-
readonly kind: "mount";
|
|
240
|
-
readonly sourceKey: string;
|
|
241
|
-
readonly source: CompositionSource<unknown>;
|
|
242
|
-
readonly contextProvider?: SourceContextInput<TSourceContext, unknown>;
|
|
243
|
-
readonly invalidExtraContext?: boolean;
|
|
244
|
-
};
|
|
245
|
-
type CompositionSourceInternals<TSourceContext = unknown> = {
|
|
246
|
-
readonly entries: readonly CompositionEntry<TSourceContext>[];
|
|
247
|
-
readonly stylesheets: readonly StyleSheet[];
|
|
248
|
-
readonly cycleId: object;
|
|
249
|
-
readonly boundContext: SourceContextBinding<TSourceContext>;
|
|
250
|
-
};
|
|
251
|
-
type CompositionSource<TSourceContext = unknown> = {
|
|
252
|
-
readonly [COMPOSITION_SOURCE]: () => CompositionSourceInternals<TSourceContext>;
|
|
253
|
-
};
|
|
254
|
-
//#endregion
|
|
255
|
-
//#region src/authoring/index.d.ts
|
|
212
|
+
//#region src/style/types.d.ts
|
|
256
213
|
type DeckLength = number | `${number}${"in" | "pt" | "px" | "%" | "em" | "rem" | "vh" | "vw" | "ch"}`;
|
|
257
214
|
type DeckPointLength = number | `${number}${"pt" | "in" | "px" | "em" | "rem" | "vh" | "vw" | "ch"}`;
|
|
258
215
|
type CssAspectRatio = number | `${number}/${number}` | `${number} / ${number}`;
|
|
@@ -261,8 +218,6 @@ type Spacing = DeckLength | readonly [DeckLength, DeckLength, DeckLength, DeckLe
|
|
|
261
218
|
type StackAxis = "horizontal" | "vertical";
|
|
262
219
|
type StackAlignment = "start" | "center" | "end";
|
|
263
220
|
type LayoutMode = "absolute" | "stack" | "grid";
|
|
264
|
-
type BackendName = "pptxgenjs" | "ooxml";
|
|
265
|
-
type ImplementedBackendName = "pptxgenjs";
|
|
266
221
|
type BorderStyle = "none" | "solid" | "dash";
|
|
267
222
|
type StrokeDashType = "solid" | "dash" | "dashDot" | "lgDash" | "lgDashDot" | "lgDashDotDot" | "sysDash" | "sysDot";
|
|
268
223
|
type StrokeLineCap = "butt" | "round" | "square";
|
|
@@ -303,21 +258,6 @@ type ImageCropAuthoring = {
|
|
|
303
258
|
bottom?: ImageCropValue;
|
|
304
259
|
left?: ImageCropValue;
|
|
305
260
|
};
|
|
306
|
-
interface TextJsxChildArray extends ReadonlyArray<TextJsxChild> {}
|
|
307
|
-
type TextJsxChild = AuthorTreeNode | string | number | boolean | null | undefined | TextJsxChildArray;
|
|
308
|
-
type ContentAuthorNode = AuthorNode<"view" | "text" | "image" | "shape">;
|
|
309
|
-
interface ContentJsxChildArray extends ReadonlyArray<ContentJsxChild> {}
|
|
310
|
-
type ContentJsxChild = AuthorNode | AuthorTreeNode | boolean | null | undefined | ContentJsxChildArray;
|
|
311
|
-
interface ViewIntrinsicJsxChildArray extends ReadonlyArray<ViewIntrinsicJsxChild> {}
|
|
312
|
-
type ViewIntrinsicJsxChild = ContentJsxChild | string | number | ViewIntrinsicJsxChildArray;
|
|
313
|
-
interface JsxNodeArray extends ReadonlyArray<JsxNode> {}
|
|
314
|
-
type JsxNode = AuthorNode | AuthorTreeNode | string | number | boolean | null | undefined | JsxNodeArray;
|
|
315
|
-
interface ClassNameValueArray extends ReadonlyArray<ClassNameValue> {}
|
|
316
|
-
type ClassNameObject = Readonly<Record<string, boolean | null | undefined>>;
|
|
317
|
-
type ClassNameValue = string | false | null | undefined | ClassNameValueArray | ClassNameObject;
|
|
318
|
-
type ClassNameAuthorProps = {
|
|
319
|
-
className?: ClassNameValue;
|
|
320
|
-
};
|
|
321
261
|
type BaseAuthorProps = {
|
|
322
262
|
opacity?: number;
|
|
323
263
|
rotation?: number;
|
|
@@ -522,6 +462,9 @@ type ShapeStyle = FrameAuthorProps & Omit<BoxStyleAuthorProps, "backgroundColor"
|
|
|
522
462
|
radius?: DeckLength;
|
|
523
463
|
};
|
|
524
464
|
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">;
|
|
465
|
+
type StyleForAuthoredTag<TTag extends string> = TTag extends "span" ? TextRunStyle : TTag extends "img" ? ImageStyle : TTag extends "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" ? TextStyle : ViewStyle;
|
|
466
|
+
//#endregion
|
|
467
|
+
//#region src/style/stylesheet.d.ts
|
|
525
468
|
type StyleTargetSelector = string;
|
|
526
469
|
type StyleClassStyle = SlideStyle | ViewStyle | TextStyle | TextRunStyle | ImageStyle | ShapeStyle;
|
|
527
470
|
type TargetedStyleClassDefinition<TStyle extends StyleClassStyle = StyleClassStyle> = {
|
|
@@ -529,10 +472,116 @@ type TargetedStyleClassDefinition<TStyle extends StyleClassStyle = StyleClassSty
|
|
|
529
472
|
readonly style: TStyle;
|
|
530
473
|
};
|
|
531
474
|
type StyleClassDefinition<TStyle extends StyleClassStyle = StyleClassStyle> = TStyle | TargetedStyleClassDefinition<TStyle>;
|
|
532
|
-
type
|
|
533
|
-
readonly classes: TClasses
|
|
475
|
+
type StyleSheetInput<TClasses extends Readonly<Record<string, unknown>> = Readonly<Record<string, StyleClassDefinition>>> = {
|
|
476
|
+
readonly classes: StyleSheetClasses<TClasses>;
|
|
477
|
+
};
|
|
478
|
+
type RightmostSelectorPart<TSelector extends string> = TSelector extends `${string} ${infer TRight}` ? RightmostSelectorPart<TRight> : TSelector;
|
|
479
|
+
type SelectorTag<TSelector extends string> = RightmostSelectorPart<TSelector> extends `.${string}` ? never : RightmostSelectorPart<TSelector> extends `${infer TTag}.${string}` ? TTag : RightmostSelectorPart<TSelector>;
|
|
480
|
+
type StyleForSelectorTag<TTag extends string> = TTag extends AuthoredTag ? StyleForAuthoredTag<TTag> : StyleClassStyle;
|
|
481
|
+
type StyleForStyleTarget<TTarget> = TTarget extends readonly string[] ? [TTarget[number]] extends [never] ? StyleClassStyle : StyleForStyleTarget<TTarget[number]> : TTarget extends string ? [SelectorTag<TTarget>] extends [never] ? StyleClassStyle : StyleForSelectorTag<SelectorTag<TTarget>> : StyleClassStyle;
|
|
482
|
+
type StyleClassDefinitionFor<TDefinition> = TDefinition extends {
|
|
483
|
+
readonly target: infer TTarget;
|
|
484
|
+
readonly style: infer TStyle;
|
|
485
|
+
} ? TTarget extends StyleTargetSelector | readonly StyleTargetSelector[] ? TStyle extends StyleForStyleTarget<TTarget> ? TDefinition : never : never : TDefinition extends {
|
|
486
|
+
readonly style: infer TStyle;
|
|
487
|
+
} ? TStyle extends StyleClassStyle ? TDefinition : never : TDefinition extends StyleClassStyle ? TDefinition : never;
|
|
488
|
+
type StyleSheetClasses<TClasses extends Readonly<Record<string, unknown>>> = { readonly [ClassName in keyof TClasses]: StyleClassDefinitionFor<TClasses[ClassName]> };
|
|
489
|
+
declare class StyleSheetImpl<TClasses extends Readonly<Record<string, unknown>> = Readonly<Record<string, StyleClassDefinition>>> {
|
|
490
|
+
readonly classes: StyleSheetClasses<TClasses>;
|
|
491
|
+
constructor(input: StyleSheetInput<TClasses>);
|
|
492
|
+
}
|
|
493
|
+
type StyleSheet<TClasses extends Readonly<Record<string, unknown>> = Readonly<Record<string, StyleClassDefinition>>> = StyleSheetImpl<TClasses>;
|
|
494
|
+
declare const StyleSheet: {
|
|
495
|
+
new <const TClasses extends Readonly<Record<string, unknown>> = Readonly<Record<string, StyleClassDefinition>>>(input: StyleSheetInput<TClasses>): StyleSheet<TClasses>;
|
|
496
|
+
};
|
|
497
|
+
//#endregion
|
|
498
|
+
//#region src/style/defaults.d.ts
|
|
499
|
+
type ThemeDefaults = Partial<{ readonly [Tag in AuthoredTag]: StyleForAuthoredTag<Tag> }>;
|
|
500
|
+
//#endregion
|
|
501
|
+
//#region src/style/theme-values.d.ts
|
|
502
|
+
type Primitive = string | number | boolean | bigint | symbol | null | undefined;
|
|
503
|
+
type DeepMerge<TBase, TExtension> = TExtension extends readonly unknown[] ? TExtension : TBase extends readonly unknown[] ? TExtension : TBase extends Primitive ? TExtension : TExtension extends Primitive ? TExtension : TBase extends object ? TExtension extends object ? { readonly [Key in keyof TBase | keyof TExtension]: Key extends keyof TExtension ? Key extends keyof TBase ? DeepMerge<TBase[Key], TExtension[Key]> : TExtension[Key] : Key extends keyof TBase ? TBase[Key] : never } : TExtension : TExtension;
|
|
504
|
+
type MergedTheme<TBase extends object, TExtension extends object> = DeepMerge<TBase, TExtension> & object;
|
|
505
|
+
//#endregion
|
|
506
|
+
//#region src/style/theme.d.ts
|
|
507
|
+
declare const THEME_INPUT: unique symbol;
|
|
508
|
+
declare const THEME_DIAGNOSTICS: unique symbol;
|
|
509
|
+
type ThemeInput = Readonly<object> & {
|
|
510
|
+
readonly defaults?: ThemeDefaults;
|
|
511
|
+
};
|
|
512
|
+
type ThemeInstance<TTheme extends object = ThemeInput> = {
|
|
513
|
+
readonly [THEME_INPUT]: TTheme;
|
|
514
|
+
readonly [THEME_DIAGNOSTICS]: readonly Diagnostic[];
|
|
515
|
+
extend<const TExtension extends ThemeInput>(extension: TExtension): Theme<MergedTheme<TTheme, TExtension>>;
|
|
516
|
+
extend<const TExtension extends ThemeInput>(extension: Theme<TExtension>): Theme<MergedTheme<TTheme, TExtension>>;
|
|
517
|
+
extend<const TExtension extends ThemeInput>(extension: (theme: Theme<TTheme>) => TExtension): Theme<MergedTheme<TTheme, TExtension>>;
|
|
518
|
+
defineStyles<const TStyleSheet extends StyleSheetInput>(factory: (theme: Theme<TTheme>) => TStyleSheet): StyleSheet<TStyleSheet["classes"]>;
|
|
519
|
+
};
|
|
520
|
+
type Theme<TTheme extends object = ThemeInput> = ThemeInstance<TTheme> & Readonly<TTheme>;
|
|
521
|
+
declare const Theme: {
|
|
522
|
+
new <const TTheme extends object>(input: TTheme, ...invalid: TTheme extends ThemeInput ? [] : ["Theme defaults must use authored tag styles."]): Theme<TTheme>;
|
|
523
|
+
};
|
|
524
|
+
//#endregion
|
|
525
|
+
//#region src/composition/types.d.ts
|
|
526
|
+
declare const COMPOSITION_SOURCE: unique symbol;
|
|
527
|
+
type CompositionContext = {
|
|
528
|
+
readonly sourceKey?: string;
|
|
529
|
+
readonly slideIndex: number;
|
|
530
|
+
readonly totalSlides: number;
|
|
531
|
+
readonly deckSlideIndex: number;
|
|
532
|
+
readonly deckTotalSlides: number;
|
|
533
|
+
};
|
|
534
|
+
type SlideFactoryInput<TSourceContext = void> = [TSourceContext] extends [void] ? {
|
|
535
|
+
readonly composition: CompositionContext;
|
|
536
|
+
} : {
|
|
537
|
+
readonly context: TSourceContext;
|
|
538
|
+
readonly composition: CompositionContext;
|
|
539
|
+
};
|
|
540
|
+
type SlideFactory<TSourceContext = void> = (input: SlideFactoryInput<TSourceContext>) => JsxNode;
|
|
541
|
+
type SourceContextMapper<TParentContext, TChildContext> = [TParentContext] extends [void] ? () => TChildContext : (context: TParentContext) => TChildContext;
|
|
542
|
+
type SourceContextInput<TParentContext, TChildContext> = TChildContext | SourceContextMapper<TParentContext, TChildContext>;
|
|
543
|
+
type SourceContextBinding<TSourceContext = unknown> = {
|
|
544
|
+
readonly present: false;
|
|
545
|
+
} | {
|
|
546
|
+
readonly present: true;
|
|
547
|
+
readonly value: TSourceContext;
|
|
548
|
+
};
|
|
549
|
+
type CompositionEntry<TSourceContext = unknown> = {
|
|
550
|
+
readonly kind: "slide";
|
|
551
|
+
readonly factory: SlideFactory<TSourceContext>;
|
|
552
|
+
} | {
|
|
553
|
+
readonly kind: "mount";
|
|
554
|
+
readonly sourceKey: string;
|
|
555
|
+
readonly source: CompositionSource<unknown>;
|
|
556
|
+
readonly contextProvider?: SourceContextInput<TSourceContext, unknown>;
|
|
557
|
+
readonly invalidExtraContext?: boolean;
|
|
558
|
+
};
|
|
559
|
+
type CompositionSourceInternals<TSourceContext = unknown> = {
|
|
560
|
+
readonly entries: readonly CompositionEntry<TSourceContext>[];
|
|
561
|
+
readonly stylesheets: readonly StyleSheet[];
|
|
562
|
+
readonly theme?: Theme;
|
|
563
|
+
readonly cycleId: object;
|
|
564
|
+
readonly boundContext: SourceContextBinding<TSourceContext>;
|
|
565
|
+
};
|
|
566
|
+
type CompositionSource<TSourceContext = unknown> = {
|
|
567
|
+
readonly [COMPOSITION_SOURCE]: () => CompositionSourceInternals<TSourceContext>;
|
|
568
|
+
};
|
|
569
|
+
//#endregion
|
|
570
|
+
//#region src/authoring/index.d.ts
|
|
571
|
+
interface TextJsxChildArray extends ReadonlyArray<TextJsxChild> {}
|
|
572
|
+
type TextJsxChild = AuthorTreeNode | string | number | boolean | null | undefined | TextJsxChildArray;
|
|
573
|
+
interface ContentJsxChildArray extends ReadonlyArray<ContentJsxChild> {}
|
|
574
|
+
type ContentJsxChild = AuthorNode | AuthorTreeNode | boolean | null | undefined | ContentJsxChildArray;
|
|
575
|
+
interface ViewIntrinsicJsxChildArray extends ReadonlyArray<ViewIntrinsicJsxChild> {}
|
|
576
|
+
type ViewIntrinsicJsxChild = ContentJsxChild | string | number | ViewIntrinsicJsxChildArray;
|
|
577
|
+
interface JsxNodeArray extends ReadonlyArray<JsxNode> {}
|
|
578
|
+
type JsxNode = AuthorNode | AuthorTreeNode | string | number | boolean | null | undefined | JsxNodeArray;
|
|
579
|
+
interface ClassNameValueArray extends ReadonlyArray<ClassNameValue> {}
|
|
580
|
+
type ClassNameObject = Readonly<Record<string, boolean | null | undefined>>;
|
|
581
|
+
type ClassNameValue = string | false | null | undefined | ClassNameValueArray | ClassNameObject;
|
|
582
|
+
type ClassNameAuthorProps = {
|
|
583
|
+
className?: ClassNameValue;
|
|
534
584
|
};
|
|
535
|
-
declare function defineStyles<const TStyleSheet extends StyleSheet>(stylesheet: TStyleSheet): TStyleSheet;
|
|
536
585
|
type DeckOptions = {
|
|
537
586
|
layout: {
|
|
538
587
|
width: number;
|
|
@@ -544,10 +593,13 @@ type DeckOptions = {
|
|
|
544
593
|
author?: string;
|
|
545
594
|
subject?: string;
|
|
546
595
|
};
|
|
596
|
+
theme?: Theme;
|
|
597
|
+
output?: {
|
|
598
|
+
format?: "pptx";
|
|
599
|
+
};
|
|
547
600
|
};
|
|
548
|
-
type
|
|
549
|
-
|
|
550
|
-
output: string;
|
|
601
|
+
type SlideContext = {
|
|
602
|
+
composition: CompositionContext;
|
|
551
603
|
};
|
|
552
604
|
type SlideNodeProps = {
|
|
553
605
|
name?: string;
|
|
@@ -608,14 +660,6 @@ type AuthorNodeMap = {
|
|
|
608
660
|
shape: ShapeProps;
|
|
609
661
|
};
|
|
610
662
|
type AuthorNodeKind = keyof AuthorNodeMap;
|
|
611
|
-
type AuthorNodePropsMap = {
|
|
612
|
-
slide: SlideNodeProps;
|
|
613
|
-
view: ViewNodeProps;
|
|
614
|
-
text: TextNodeProps;
|
|
615
|
-
image: ImageNodeProps;
|
|
616
|
-
shape: ShapeNodeProps;
|
|
617
|
-
};
|
|
618
|
-
type AuthorNodeProps<K extends AuthorNodeKind> = AuthorNodePropsMap[K];
|
|
619
663
|
type BaseAuthorNode<K extends AuthorNodeKind, P, C> = {
|
|
620
664
|
readonly $$typeof: "deckjsx.author-node";
|
|
621
665
|
readonly kind: K;
|
|
@@ -652,61 +696,4 @@ type DeckJsxIntrinsicElements = {
|
|
|
652
696
|
span: IntrinsicSpanProps;
|
|
653
697
|
} & { [Tag in IntrinsicViewTag]: IntrinsicDivProps } & { [Tag in IntrinsicTextTag]: IntrinsicPProps };
|
|
654
698
|
//#endregion
|
|
655
|
-
|
|
656
|
-
declare function Slide(props: SlideProps): AuthorElementNode;
|
|
657
|
-
declare function View(props: ViewProps): AuthorElementNode;
|
|
658
|
-
declare function Text(props: TextProps): AuthorElementNode;
|
|
659
|
-
declare function Image(props: ImageProps): AuthorElementNode;
|
|
660
|
-
declare function Shape(props: ShapeProps): AuthorElementNode;
|
|
661
|
-
//#endregion
|
|
662
|
-
//#region src/jsx.d.ts
|
|
663
|
-
type ComponentProps = {
|
|
664
|
-
children?: AuthorTreeChild;
|
|
665
|
-
};
|
|
666
|
-
type ElementChildren<P> = P extends {
|
|
667
|
-
children?: infer Child;
|
|
668
|
-
} ? Child : never;
|
|
669
|
-
type ElementChildArgs<P> = P extends {
|
|
670
|
-
children?: never;
|
|
671
|
-
} ? [] : ElementChildren<P>[];
|
|
672
|
-
declare function createElement<P extends {
|
|
673
|
-
children?: unknown;
|
|
674
|
-
}, R extends AuthorTreeNode>(type: (props: P) => R, props: (Omit<P, "children"> & Partial<Pick<P, "children">>) | null, ...children: ElementChildArgs<P>): R;
|
|
675
|
-
declare function createElement(type: IntrinsicViewTag$1, props: (Omit<IntrinsicDivProps, "children"> & Partial<Pick<IntrinsicDivProps, "children">>) | null, ...children: ElementChildArgs<IntrinsicDivProps>): AuthorTreeNode;
|
|
676
|
-
declare function createElement(type: IntrinsicTextTag$1, props: (Omit<IntrinsicPProps, "children"> & Partial<Pick<IntrinsicPProps, "children">>) | null, ...children: ElementChildArgs<IntrinsicPProps>): AuthorTreeNode;
|
|
677
|
-
declare function createElement(type: "span", props: IntrinsicPProps | null): AuthorTreeNode;
|
|
678
|
-
declare function createElement(type: "img", props: IntrinsicImgProps): AuthorTreeNode;
|
|
679
|
-
declare function createElement(type: string, props: ComponentProps | null): never;
|
|
680
|
-
declare function Fragment(props: {
|
|
681
|
-
children?: AuthorTreeChild;
|
|
682
|
-
}): AuthorTreeNode;
|
|
683
|
-
declare function isAuthorNode(value: unknown): value is AuthorNode;
|
|
684
|
-
declare function isSlideNode(value: unknown): value is AuthorNode<"slide">;
|
|
685
|
-
declare function isContentNode(value: unknown): value is ContentAuthorNode;
|
|
686
|
-
//#endregion
|
|
687
|
-
//#region src/jsx-runtime.d.ts
|
|
688
|
-
type JsxComponent<P, R extends AuthorTreeNode> = (props: P) => R;
|
|
689
|
-
type JsxProps<P> = P extends {
|
|
690
|
-
children?: unknown;
|
|
691
|
-
} ? Omit<P, "children"> & Partial<Pick<P, "children">> : P;
|
|
692
|
-
declare function jsx<P, R extends AuthorTreeNode>(type: JsxComponent<P, R>, props: JsxProps<P> | null, key?: JsxKey): R;
|
|
693
|
-
declare function jsx(type: IntrinsicViewTag, props: JsxProps<IntrinsicDivProps> | null, key?: JsxKey): AuthorTreeNode;
|
|
694
|
-
declare function jsx(type: IntrinsicTextTag, props: JsxProps<IntrinsicPProps> | null, key?: JsxKey): AuthorTreeNode;
|
|
695
|
-
declare function jsx(type: "span", props: JsxProps<IntrinsicPProps> | null, key?: JsxKey): AuthorTreeNode;
|
|
696
|
-
declare function jsx(type: "img", props: IntrinsicImgProps, key?: JsxKey): AuthorTreeNode;
|
|
697
|
-
declare function jsx(type: string, props: Record<string, unknown> | null, key?: JsxKey): never;
|
|
698
|
-
declare const jsxs: typeof jsx;
|
|
699
|
-
declare namespace JSX {
|
|
700
|
-
type Element = AuthorTreeNode;
|
|
701
|
-
interface ElementChildrenAttribute {
|
|
702
|
-
children: {};
|
|
703
|
-
}
|
|
704
|
-
interface IntrinsicAttributes {
|
|
705
|
-
key?: JsxKey;
|
|
706
|
-
}
|
|
707
|
-
interface IntrinsicElements extends DeckJsxIntrinsicElements {
|
|
708
|
-
span: IntrinsicPProps;
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
//#endregion
|
|
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 };
|
|
699
|
+
export { CssOverflow as $, DeckDiagnosticError as $t, ThemeDefaults as A, SemanticContainerNode as At, CssFlexDirection as B, SemanticTextRunNode as Bt, CompositionSourceInternals as C, ViewStyle as Ct, SourceContextMapper as D, Brand as Dt, SourceContextInput as E, BaseSemanticNode as Et, CssAlignSelf as F, SemanticOrigin as Ft, CssGridShorthand as G, StyleEntityId as Gt, CssGridAutoFlow as H, SourceOrigin as Ht, CssAspectRatio as I, SemanticRole as It, CssGridTemplateShorthand as J, DiagnosticSeverity as Jt, CssGridTemplate as K, Diagnostic as Kt, CssBoxSizing as L, SemanticShapeNode as Lt, BorderStyle as M, SemanticImageNode as Mt, CssAlignContent as N, SemanticNode as Nt, Theme as O, GraphNodeId as Ot, CssAlignItems as P, SemanticNodeKind as Pt, CssObjectPosition as Q, CompositionDiagnosticError as Qt, CssDisplay as R, SemanticSlideNode as Rt, CompositionSource as S, VerticalAlign as St, SlideFactoryInput as T, AssetEntityId as Tt, CssGridLine as U, StyleClassRef as Ut, CssFlexWrap as V, SourceIdentity as Vt, CssGridPlacement as W, StyleEntity as Wt, CssJustifyContent as X, formatDiagnostic as Xt, CssGridTrack as Y, Diagnostics as Yt, CssJustifySelf as Z, formatDiagnostics as Zt, TextProps as _, TextRunStyle as _t, DeckJsxIntrinsicElements as a, JsxKey as an, ImageCropValue as at, COMPOSITION_SOURCE as b, TextTabStopAuthoring as bt, IntrinsicDivProps as c, IntrinsicViewTag$1 as cn, ShapeStyle as ct, IntrinsicTextTag as d, StackAlignment as dt, SemanticGraphDiagnosticError as en, CssPosition as et, IntrinsicViewTag as f, StackAxis as ft, TextJsxChild as g, TextFit as gt, SlideProps as h, StrokeLineJoin as ht, ContentJsxChild as i, AuthorTreeNode as in, ImageCropAuthoring as it, StyleSheet as j, SemanticDocumentNode as jt, ThemeInput as k, SemanticAuthorGraph as kt, IntrinsicImgProps as l, SlideStyle as lt, SlideContext as m, StrokeLineCap as mt, ClassNameValue as n, AuthorElementNode as nn, DeckLength as nt, DeckOptions as o, SourceSpan as on, ImageStyle as ot, ShapeProps as p, StrokeDashType as pt, CssGridTemplateAreas as q, DiagnosticLabel as qt, ClassNameValueArray as r, AuthorTreeChild as rn, DeckPointLength as rt, ImageProps as s, IntrinsicTextTag$1 as sn, LayoutMode as st, ClassNameObject as t, StyleDiagnosticError as tn, CssVisibility as tt, IntrinsicPProps as u, Spacing as ut, TextRunNodeProps as v, TextStyle as vt, SlideFactory as w, AssetEntity as wt, CompositionContext as x, TextTabStopLength as xt, ViewProps as y, TextTabStopAlignment as yt, CssFlexBasis as z, SemanticTextNode as zt };
|