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.
- package/README.md +52 -40
- package/dist/{adapter-C8xw46nz.d.mts → adapter-NxGlM8_c.d.mts} +2 -2
- package/dist/adapter.d.mts +1 -1
- package/dist/adapter.mjs +1 -1
- package/dist/{index-C5l8PX5V.d.mts → index-C-LDA3Lj.d.mts} +257 -134
- package/dist/index.d.mts +144 -18
- package/dist/index.mjs +484 -138
- package/dist/inspect.d.mts +2 -2
- package/dist/{jsx-C671yNZa.mjs → jsx-DetoUfLm.mjs} +1 -12
- package/dist/jsx-dev-runtime.d.mts +2 -2
- package/dist/jsx-dev-runtime.mjs +1 -1
- package/dist/{jsx-runtime-DwfBuBkY.d.mts → jsx-runtime-Dz8WBHpq.d.mts} +2 -3
- package/dist/jsx-runtime.d.mts +2 -2
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{pptx-PzEK54aA.d.mts → pptx-DaSXvESd.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/{adapter-BbtteJ7s.mjs → adapter-rS3mWdi0.mjs} +5 -5
package/dist/inspect.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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,
|
|
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 {
|
|
2
|
-
import { i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-
|
|
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;
|
package/dist/jsx-dev-runtime.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as createElementWithMetadata, t as Fragment } from "./jsx-
|
|
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
|
|
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,
|
|
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 };
|
package/dist/jsx-runtime.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as Fragment, n as jsx, r as jsxs, t as JSX } from "./jsx-runtime-
|
|
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 };
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as createElementWithMetadata, t as Fragment } from "./jsx-
|
|
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 {
|
|
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
|
@@ -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/
|
|
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
|
}
|