deckjsx 0.6.0 → 0.7.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.
@@ -1,3 +1,3 @@
1
- import { At as SemanticContainerNode, Bt as SemanticTextRunNode, Et as BaseSemanticNode, Ft as SemanticOrigin, Gt as StyleEntityId, Ht as SourceOrigin, It as SemanticRole, Lt as SemanticShapeNode, Mt as SemanticImageNode, Nt as SemanticNode, Ot as GraphNodeId, Pt as SemanticNodeKind, Rt as SemanticSlideNode, Tt as AssetEntityId, Ut as StyleClassRef, Vt as SourceIdentity, Wt as StyleEntity, jt as SemanticDocumentNode, kt as SemanticAuthorGraph, wt as AssetEntity, zt as SemanticTextNode } from "./index-C5l8PX5V.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-PzEK54aA.mjs";
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
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 };
@@ -161,17 +161,6 @@ function leafProps(props) {
161
161
  const { children: _children, ...nodeProps } = props;
162
162
  return nodeProps;
163
163
  }
164
- function Slide(props) {
165
- const authored = splitChildren(props);
166
- return createAuthorElement({
167
- source: {
168
- kind: "component",
169
- component: "Slide"
170
- },
171
- props: authored.props,
172
- children: authored.children
173
- });
174
- }
175
164
  function View(props) {
176
165
  const authored = splitChildren(props);
177
166
  return createAuthorElement({
@@ -287,4 +276,4 @@ function isContentNode(value) {
287
276
  return isAuthorNode(value) && value.kind !== "slide";
288
277
  }
289
278
  //#endregion
290
- export { isContentNode as a, Shape as c, View as d, isAuthorNodeValue as f, isAuthoredTag as h, isAuthorNode as i, Slide as l, isAuthorTreeNode as m, createElement as n, isSlideNode as o, toAuthorJsxNode as p, createElementWithMetadata as r, Image as s, Fragment as t, Text as u };
279
+ export { isContentNode as a, Shape as c, isAuthorNodeValue as d, toAuthorJsxNode as f, isAuthoredTag as h, isAuthorNode as i, Text as l, isAuthorTreeNode as m, createElement as n, isSlideNode as o, createAuthorElement as p, createElementWithMetadata as r, Image as s, Fragment as t, View as u };
@@ -1,5 +1,5 @@
1
- import { an as JsxKey, in as AuthorTreeNode } from "./index-C5l8PX5V.mjs";
2
- import { i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-DwfBuBkY.mjs";
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";
3
3
 
4
4
  //#region src/jsx-dev-runtime.d.ts
5
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-C671yNZa.mjs";
1
+ import { r as createElementWithMetadata, t as Fragment } from "./jsx-DetoUfLm.mjs";
2
2
  import { jsx, jsxs } from "./jsx-runtime.mjs";
3
3
  //#region src/jsx-dev-runtime.ts
4
4
  function sourceSpanFromDevSource(source) {
@@ -1,7 +1,6 @@
1
- import { _ as TextProps, a as DeckJsxIntrinsicElements, an as JsxKey, c as IntrinsicDivProps, cn as IntrinsicViewTag, d as IntrinsicTextTag$1, f as IntrinsicViewTag$1, h as SlideProps, in as AuthorTreeNode, l as IntrinsicImgProps, nn as AuthorElementNode, p as ShapeProps, rn as AuthorTreeChild, s as ImageProps, sn as IntrinsicTextTag, u as IntrinsicPProps, y as ViewProps } from "./index-C5l8PX5V.mjs";
1
+ import { _ as ViewProps, a as DeckJsxIntrinsicElements, c as IntrinsicDivProps, d as IntrinsicTextTag$1, dn as AuthorTreeChild, f as IntrinsicViewTag$1, fn as AuthorTreeNode, gn as IntrinsicViewTag, h as TextProps, hn as IntrinsicTextTag, l as IntrinsicImgProps, p as ShapeProps, pn as JsxKey, s as ImageProps, u as IntrinsicPProps, un as AuthorElementNode } from "./index-C-LDA3Lj.mjs";
2
2
 
3
3
  //#region src/authoring/components.d.ts
4
- declare function Slide(props: SlideProps): AuthorElementNode;
5
4
  declare function View(props: ViewProps): AuthorElementNode;
6
5
  declare function Text(props: TextProps): AuthorElementNode;
7
6
  declare function Image(props: ImageProps): AuthorElementNode;
@@ -54,4 +53,4 @@ declare namespace JSX {
54
53
  }
55
54
  }
56
55
  //#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 };
56
+ export { createElement as a, Text as c, Fragment as i, View as l, jsx as n, Image as o, jsxs as r, Shape as s, JSX as t };
@@ -1,3 +1,3 @@
1
- import { an as JsxKey } from "./index-C5l8PX5V.mjs";
2
- import { i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-DwfBuBkY.mjs";
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
3
  export { Fragment, JSX, JsxKey, jsx, jsxs };
@@ -1,4 +1,4 @@
1
- import { r as createElementWithMetadata, t as Fragment } from "./jsx-C671yNZa.mjs";
1
+ import { r as createElementWithMetadata, t as Fragment } from "./jsx-DetoUfLm.mjs";
2
2
  //#region src/jsx-runtime.ts
3
3
  function jsx(type, props, key) {
4
4
  return createElementWithMetadata(type, props, key);
@@ -1,4 +1,4 @@
1
- import { Dt as Brand, Gt as StyleEntityId, Ht as SourceOrigin, M as BorderStyle, Ot as GraphNodeId, St as VerticalAlign, Yt as Diagnostics, gt as TextFit, ht as StrokeLineJoin, mt as StrokeLineCap, o as DeckOptions, pt as StrokeDashType, wt as AssetEntity } from "./index-C5l8PX5V.mjs";
1
+ import { $ as StyleEntityId, F as Brand, Gt as StrokeLineJoin, I as GraphNodeId, Kt as TextFit, M as AssetEntity, Qt as VerticalAlign, Ut as StrokeDashType, Wt as StrokeLineCap, X as SourceOrigin, ct as BorderStyle, o as DeckOptions, rn as Diagnostics } from "./index-C-LDA3Lj.mjs";
2
2
 
3
3
  //#region src/layout/projected.d.ts
4
4
  type SizeIR = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deckjsx",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Generate PowerPoint presentations from TSX/JSX through a compiler pipeline.",
5
5
  "license": "MIT",
6
6
  "author": "deckjsx contributors",
@@ -84,6 +84,10 @@ function diagnostic(input) {
84
84
  return input;
85
85
  }
86
86
  //#endregion
87
+ //#region src/types.ts
88
+ const EMU_PER_INCH = 914400;
89
+ const POINTS_PER_INCH = 72;
90
+ //#endregion
87
91
  //#region node_modules/inherits/inherits_browser.js
88
92
  var require_inherits_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89
93
  if (typeof Object.create === "function") module.exports = function inherits(ctor, superCtor) {
@@ -10369,13 +10373,9 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10369
10373
  module.exports = JSZip;
10370
10374
  }));
10371
10375
  //#endregion
10372
- //#region src/types.ts
10376
+ //#region src/writers/pptxgenjs-xml-patches.ts
10373
10377
  var import_dist = require_dist();
10374
10378
  var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
10375
- const EMU_PER_INCH = 914400;
10376
- const POINTS_PER_INCH = 72;
10377
- //#endregion
10378
- //#region src/writers/pptxgenjs-xml-patches.ts
10379
10379
  function emuToInches$1(value) {
10380
10380
  return value / EMU_PER_INCH;
10381
10381
  }