deckjsx 0.4.1 → 0.5.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.
@@ -0,0 +1,3 @@
1
+ import { At as GraphNodeId, Bt as SemanticSlideNode, Dt as AssetEntity, Ft as SemanticNode, Gt as StyleClassRef, Ht as SemanticTextRunNode, It as SemanticNodeKind, Kt as StyleEntity, Lt as SemanticOrigin, Mt as SemanticContainerNode, Nt as SemanticDocumentNode, Ot as AssetEntityId, Pt as SemanticImageNode, Rt as SemanticRole, Ut as SourceIdentity, Vt as SemanticTextNode, Wt as SourceOrigin, jt as SemanticAuthorGraph, kt as BaseSemanticNode, qt as StyleEntityId, zt as SemanticShapeNode } from "./index-sb451NVh.mjs";
2
+ import { a as ResolvedStyle, c as ResolvedStyleProperty, l as ResolvedStyleSource, n as CompileInspectResult, o as ResolvedStyleLayer, r as CompileMode, s as ResolvedStyleMap, u as StyleResolutionResult } from "./deck-CvTHG5ik.mjs";
3
+ export { type AssetEntity, type AssetEntityId, type BaseSemanticNode, type CompileInspectResult, type CompileMode, type GraphNodeId, 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 };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
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";
1
+ import { on as AuthorTreeNode, sn as JsxKey } from "./index-sb451NVh.mjs";
2
+ import { i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-Bk7Wx3AL.mjs";
2
3
 
3
4
  //#region src/jsx-dev-runtime.d.ts
4
5
  declare function jsxDEV(type: unknown, props: unknown, key?: JsxKey, _isStaticChildren?: boolean, source?: unknown): AuthorTreeNode;
@@ -1,4 +1,4 @@
1
- import { r as createElementWithMetadata, t as Fragment } from "./jsx-B9HB9_cS.mjs";
1
+ import { r as createElementWithMetadata, t as Fragment } from "./jsx-CK-x7PLd.mjs";
2
2
  import { jsx, jsxs } from "./jsx-runtime.mjs";
3
3
  //#region src/jsx-dev-runtime.ts
4
4
  function sourceSpanFromDevSource(source) {
@@ -0,0 +1,57 @@
1
+ import { S as ViewProps, an as AuthorTreeChild, b as TextProps, c as ImageProps, d as IntrinsicImgProps, f as IntrinsicPProps, g as ShapeProps, in as AuthorElementNode, ln as IntrinsicTextTag, m as IntrinsicViewTag$1, o as DeckJsxIntrinsicElements, on as AuthorTreeNode, p as IntrinsicTextTag$1, sn as JsxKey, u as IntrinsicDivProps, un as IntrinsicViewTag, v as SlideProps } from "./index-sb451NVh.mjs";
2
+
3
+ //#region src/authoring/components.d.ts
4
+ declare function Slide(props: SlideProps): AuthorElementNode;
5
+ declare function View(props: ViewProps): AuthorElementNode;
6
+ declare function Text(props: TextProps): AuthorElementNode;
7
+ declare function Image(props: ImageProps): AuthorElementNode;
8
+ declare function Shape(props: ShapeProps): AuthorElementNode;
9
+ //#endregion
10
+ //#region src/jsx.d.ts
11
+ type ComponentProps = {
12
+ children?: AuthorTreeChild;
13
+ };
14
+ type ElementChildren<P> = P extends {
15
+ children?: infer Child;
16
+ } ? Child : never;
17
+ type ElementChildArgs<P> = P extends {
18
+ children?: never;
19
+ } ? [] : ElementChildren<P>[];
20
+ declare function createElement<P extends {
21
+ children?: unknown;
22
+ }, R extends AuthorTreeNode>(type: (props: P) => R, props: (Omit<P, "children"> & Partial<Pick<P, "children">>) | null, ...children: ElementChildArgs<P>): R;
23
+ declare function createElement(type: IntrinsicViewTag, props: (Omit<IntrinsicDivProps, "children"> & Partial<Pick<IntrinsicDivProps, "children">>) | null, ...children: ElementChildArgs<IntrinsicDivProps>): AuthorTreeNode;
24
+ declare function createElement(type: IntrinsicTextTag, props: (Omit<IntrinsicPProps, "children"> & Partial<Pick<IntrinsicPProps, "children">>) | null, ...children: ElementChildArgs<IntrinsicPProps>): AuthorTreeNode;
25
+ declare function createElement(type: "span", props: IntrinsicPProps | null): AuthorTreeNode;
26
+ declare function createElement(type: "img", props: IntrinsicImgProps): AuthorTreeNode;
27
+ declare function createElement(type: string, props: ComponentProps | null): never;
28
+ declare function Fragment(props: {
29
+ children?: AuthorTreeChild;
30
+ }): AuthorTreeNode;
31
+ //#endregion
32
+ //#region src/jsx-runtime.d.ts
33
+ type JsxComponent<P, R extends AuthorTreeNode> = (props: P) => R;
34
+ type JsxProps<P> = P extends {
35
+ children?: unknown;
36
+ } ? Omit<P, "children"> & Partial<Pick<P, "children">> : P;
37
+ declare function jsx<P, R extends AuthorTreeNode>(type: JsxComponent<P, R>, props: JsxProps<P> | null, key?: JsxKey): R;
38
+ declare function jsx(type: IntrinsicViewTag$1, props: JsxProps<IntrinsicDivProps> | null, key?: JsxKey): AuthorTreeNode;
39
+ declare function jsx(type: IntrinsicTextTag$1, props: JsxProps<IntrinsicPProps> | null, key?: JsxKey): AuthorTreeNode;
40
+ declare function jsx(type: "span", props: JsxProps<IntrinsicPProps> | null, key?: JsxKey): AuthorTreeNode;
41
+ declare function jsx(type: "img", props: IntrinsicImgProps, key?: JsxKey): AuthorTreeNode;
42
+ declare function jsx(type: string, props: Record<string, unknown> | null, key?: JsxKey): never;
43
+ declare const jsxs: typeof jsx;
44
+ declare namespace JSX {
45
+ type Element = AuthorTreeNode;
46
+ interface ElementChildrenAttribute {
47
+ children: {};
48
+ }
49
+ interface IntrinsicAttributes {
50
+ key?: JsxKey;
51
+ }
52
+ interface IntrinsicElements extends DeckJsxIntrinsicElements {
53
+ span: IntrinsicPProps;
54
+ }
55
+ }
56
+ //#endregion
57
+ export { createElement as a, Slide as c, Fragment as i, Text as l, jsx as n, Image as o, jsxs as r, Shape as s, JSX as t, View as u };
@@ -1,2 +1,3 @@
1
- import { Tn as JsxKey, i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-BMKEs7aG.mjs";
1
+ import { sn as JsxKey } from "./index-sb451NVh.mjs";
2
+ import { i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-Bk7Wx3AL.mjs";
2
3
  export { Fragment, JSX, JsxKey, jsx, jsxs };
@@ -1,4 +1,4 @@
1
- import { r as createElementWithMetadata, t as Fragment } from "./jsx-B9HB9_cS.mjs";
1
+ import { r as createElementWithMetadata, t as Fragment } from "./jsx-CK-x7PLd.mjs";
2
2
  //#region src/jsx-runtime.ts
3
3
  function jsx(type, props, key) {
4
4
  return createElementWithMetadata(type, props, key);
@@ -0,0 +1,6 @@
1
+ import { A as TextNoListIR, C as SlideIR, D as TextContentIR, E as TextBulletListIR, M as TextRunIR, N as TextStyleIR, O as TextIR, P as TextTabStopIR, S as SizeIR, T as StrokeIR, _ as ObjectPositionIR, a as CompileBackend, b as ShadowIR, c as FrameIR, d as ImageCropIR, f as ImageIR, g as NodeIR, h as LinearGradientStopIR, i as BaseNodeIR, j as TextNumberListIR, k as TextListIR, l as GroupIR, m as LinearGradientFillIR, n as BackgroundImageLayerIR, o as EdgeStrokeIR, p as ImageSourceIR, r as BackgroundLayerIR, s as FillIR, t as BackendArtifact, u as HyperlinkIR, v as PresentationIR, w as SolidFillIR, x as ShapeIR, y as RadialGradientFillIR } from "./index-_eBM2cs3.mjs";
2
+
3
+ //#region src/backends/pptxgenjs.d.ts
4
+ declare function pptxgenjsBackend(): CompileBackend;
5
+ //#endregion
6
+ export { type BackendArtifact, type BackgroundImageLayerIR, type BackgroundLayerIR, type BaseNodeIR, type CompileBackend, type EdgeStrokeIR, type FillIR, type FrameIR, type GroupIR, type HyperlinkIR, type ImageCropIR, type ImageIR, type ImageSourceIR, type LinearGradientFillIR, type LinearGradientStopIR, type NodeIR, type ObjectPositionIR, type PresentationIR, type RadialGradientFillIR, type ShadowIR, type ShapeIR, type SizeIR, type SlideIR, type SolidFillIR, type StrokeIR, type TextBulletListIR, type TextContentIR, type TextIR, type TextListIR, type TextNoListIR, type TextNumberListIR, type TextRunIR, type TextStyleIR, type TextTabStopIR, pptxgenjsBackend };
@@ -0,0 +1,2 @@
1
+ import { t as pptxgenjsBackend } from "./pptxgenjs-BTMKb1WX.mjs";
2
+ export { pptxgenjsBackend };