@json-to-office/shared-pptx 0.12.0 → 0.16.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/{chunk-QSFWNIU4.js → chunk-7S4C6RDX.js} +14 -3
- package/dist/chunk-7S4C6RDX.js.map +1 -0
- package/dist/{chunk-QGJWZIH4.js → chunk-RBKJSWQN.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/schemas/component-union.d.ts +11 -1
- package/dist/schemas/component-union.js +3 -1
- package/dist/schemas/components.d.ts +1 -1
- package/dist/schemas/components.js +3 -1
- package/dist/schemas/document.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-QSFWNIU4.js.map +0 -1
- /package/dist/{chunk-QGJWZIH4.js.map → chunk-RBKJSWQN.js.map} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAllPptxComponentSchemas,
|
|
3
|
-
createAllPptxComponentSchemasNarrowed
|
|
3
|
+
createAllPptxComponentSchemasNarrowed,
|
|
4
|
+
createPptxComponentSchemaObject,
|
|
5
|
+
getPptxContentComponents
|
|
4
6
|
} from "./chunk-WPYC73KC.js";
|
|
5
7
|
|
|
6
8
|
// src/schemas/component-union.ts
|
|
@@ -18,9 +20,18 @@ var PptxComponentDefinitionSchema = Type.Recursive(
|
|
|
18
20
|
description: "PPTX component definition with discriminated union"
|
|
19
21
|
})
|
|
20
22
|
);
|
|
23
|
+
var PptxSlideContentSchema = Type.Union(
|
|
24
|
+
getPptxContentComponents().map((c) => createPptxComponentSchemaObject(c)),
|
|
25
|
+
{
|
|
26
|
+
$id: "PptxSlideContent",
|
|
27
|
+
discriminator: { propertyName: "name" },
|
|
28
|
+
description: "A single PPTX slide content element (text, image, shape, table, highcharts, or chart)."
|
|
29
|
+
}
|
|
30
|
+
);
|
|
21
31
|
|
|
22
32
|
export {
|
|
23
33
|
PptxStandardComponentDefinitionSchema,
|
|
24
|
-
PptxComponentDefinitionSchema
|
|
34
|
+
PptxComponentDefinitionSchema,
|
|
35
|
+
PptxSlideContentSchema
|
|
25
36
|
};
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-7S4C6RDX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schemas/component-union.ts"],"sourcesContent":["/**\n * PPTX Component Definition Schemas (discriminated union)\n *\n * Extracted to its own file to break circular imports:\n * slide.ts → component-union.ts → component-registry.ts → slide.ts\n * ESM resolves this safely because SlidePropsSchema is a top-level declaration.\n */\n\nimport { Type, Static } from '@sinclair/typebox';\nimport {\n createAllPptxComponentSchemas,\n createAllPptxComponentSchemasNarrowed,\n createPptxComponentSchemaObject,\n getPptxContentComponents,\n} from './component-registry';\n\nexport const PptxStandardComponentDefinitionSchema = Type.Union(\n [...createAllPptxComponentSchemas(Type.Any())],\n {\n discriminator: { propertyName: 'name' },\n description: 'Standard PPTX component definition with discriminated union',\n }\n);\n\nexport const PptxComponentDefinitionSchema = Type.Recursive((This) =>\n Type.Union([...createAllPptxComponentSchemasNarrowed(This)], {\n discriminator: { propertyName: 'name' },\n description: 'PPTX component definition with discriminated union',\n })\n);\n\nexport type PptxComponentDefinition = Static<\n typeof PptxComponentDefinitionSchema\n>;\n\n/**\n * A single PPTX slide content element — the discriminated union of the\n * leaf content components a slide can hold (text, image, shape, table,\n * highcharts, chart). Non-recursive (these components have no children), so it\n * embeds cleanly into other schemas (e.g. the docx `visual` component's\n * `elements`). The explicit `$id` lets JSON-Schema export hoist it into a\n * single shared `definitions` entry instead of inlining it at every use site.\n */\nexport const PptxSlideContentSchema = Type.Union(\n getPptxContentComponents().map((c) => createPptxComponentSchemaObject(c)),\n {\n $id: 'PptxSlideContent',\n discriminator: { propertyName: 'name' },\n description:\n 'A single PPTX slide content element (text, image, shape, table, highcharts, or chart).',\n }\n);\n\nexport type PptxSlideContent = Static<typeof PptxSlideContentSchema>;\n"],"mappings":";;;;;;;;AAQA,SAAS,YAAoB;AAQtB,IAAM,wCAAwC,KAAK;AAAA,EACxD,CAAC,GAAG,8BAA8B,KAAK,IAAI,CAAC,CAAC;AAAA,EAC7C;AAAA,IACE,eAAe,EAAE,cAAc,OAAO;AAAA,IACtC,aAAa;AAAA,EACf;AACF;AAEO,IAAM,gCAAgC,KAAK;AAAA,EAAU,CAAC,SAC3D,KAAK,MAAM,CAAC,GAAG,sCAAsC,IAAI,CAAC,GAAG;AAAA,IAC3D,eAAe,EAAE,cAAc,OAAO;AAAA,IACtC,aAAa;AAAA,EACf,CAAC;AACH;AAcO,IAAM,yBAAyB,KAAK;AAAA,EACzC,yBAAyB,EAAE,IAAI,CAAC,MAAM,gCAAgC,CAAC,CAAC;AAAA,EACxE;AAAA,IACE,KAAK;AAAA,IACL,eAAe,EAAE,cAAc,OAAO;AAAA,IACtC,aACE;AAAA,EACJ;AACF;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PptxComponentDefinitionSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7S4C6RDX.js";
|
|
4
4
|
|
|
5
5
|
// src/schemas/document.ts
|
|
6
6
|
var PptxJsonComponentDefinitionSchema = PptxComponentDefinitionSchema;
|
|
@@ -18,4 +18,4 @@ export {
|
|
|
18
18
|
PptxJsonComponentDefinitionSchema,
|
|
19
19
|
PPTX_JSON_SCHEMA_URLS
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-RBKJSWQN.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Position, PositionSchema, PptxHighchartsProps, PptxHighchartsPropsSchema, PptxImageProps, PptxImagePropsSchema, PptxTableProps, PptxTablePropsSchema, PresentationProps, PresentationPropsSchema, Shadow, ShadowSchema, ShapeProps, ShapePropsSchema, ShapeType, ShapeTypeSchema, SlideBackground, SlideBackgroundSchema, SlideProps, SlidePropsSchema, TextProps, TextPropsSchema, TextSegment, Transition, TransitionSchema, VerticalAlignment, VerticalAlignmentSchema } from './schemas/components.js';
|
|
2
|
-
export { PptxComponentDefinition, PptxComponentDefinitionSchema, PptxStandardComponentDefinitionSchema } from './schemas/component-union.js';
|
|
2
|
+
export { PptxComponentDefinition, PptxComponentDefinitionSchema, PptxSlideContent, PptxSlideContentSchema, PptxStandardComponentDefinitionSchema } from './schemas/component-union.js';
|
|
3
3
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
4
4
|
import { Static } from '@sinclair/typebox';
|
|
5
5
|
export { PPTX_STANDARD_COMPONENTS_REGISTRY, PptxStandardComponentDefinition, createAllPptxComponentSchemas, createPptxComponentSchemaObject, getAllPptxComponentNames, getPptxComponentsByCategory, getPptxContainerComponents, getPptxContentComponents, getPptxStandardComponent, isPptxStandardComponent } from './schemas/component-registry.js';
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PPTX_JSON_SCHEMA_URLS,
|
|
3
3
|
PptxJsonComponentDefinitionSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RBKJSWQN.js";
|
|
5
5
|
import "./chunk-J4OT5Y5B.js";
|
|
6
6
|
import {
|
|
7
7
|
PptxComponentDefinitionSchema,
|
|
8
|
+
PptxSlideContentSchema,
|
|
8
9
|
PptxStandardComponentDefinitionSchema
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7S4C6RDX.js";
|
|
10
11
|
import {
|
|
11
12
|
PPTX_BASE_SCHEMA_METADATA,
|
|
12
13
|
PPTX_COMPONENT_METADATA
|
|
@@ -95,6 +96,7 @@ export {
|
|
|
95
96
|
PptxHighchartsPropsSchema,
|
|
96
97
|
PptxImagePropsSchema,
|
|
97
98
|
PptxJsonComponentDefinitionSchema,
|
|
99
|
+
PptxSlideContentSchema,
|
|
98
100
|
PptxStandardComponentDefinitionSchema,
|
|
99
101
|
PptxTablePropsSchema,
|
|
100
102
|
PresentationPropsSchema,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export const PPTX_SHARED_VERSION = '1.0.0';\n\n// Component Schemas\nexport {\n PositionSchema,\n SlideBackgroundSchema,\n TransitionSchema,\n VerticalAlignmentSchema,\n ShadowSchema,\n PresentationPropsSchema,\n SlidePropsSchema,\n TextPropsSchema,\n PptxImagePropsSchema,\n ShapePropsSchema,\n ShapeTypeSchema,\n PptxTablePropsSchema,\n PptxHighchartsPropsSchema,\n PptxStandardComponentDefinitionSchema,\n PptxComponentDefinitionSchema,\n} from './schemas/components';\n\nexport type {\n Position,\n SlideBackground,\n Transition,\n VerticalAlignment,\n Shadow,\n PresentationProps,\n SlideProps,\n TextProps,\n PptxImageProps,\n ShapeType,\n ShapeProps,\n TextSegment,\n PptxTableProps,\n PptxHighchartsProps,\n PptxComponentDefinition,\n} from './schemas/components';\n\n// Chart (not re-exported from components barrel)\nexport { PptxChartPropsSchema } from './schemas/components/chart';\nexport type { PptxChartProps } from './schemas/components/chart';\n\n// Component Registry\nexport {\n PPTX_STANDARD_COMPONENTS_REGISTRY,\n getPptxStandardComponent,\n getAllPptxComponentNames,\n getPptxComponentsByCategory,\n getPptxContainerComponents,\n getPptxContentComponents,\n isPptxStandardComponent,\n createPptxComponentSchemaObject,\n createAllPptxComponentSchemas,\n} from './schemas/component-registry';\n\nexport type { PptxStandardComponentDefinition } from './schemas/component-registry';\n\n// Document Schema\nexport {\n PptxJsonComponentDefinitionSchema,\n PPTX_JSON_SCHEMA_URLS,\n} from './schemas/document';\n\nexport type { PptxJsonComponentDefinition } from './schemas/document';\n\n// Schema Export Metadata\nexport {\n PPTX_COMPONENT_METADATA,\n PPTX_BASE_SCHEMA_METADATA,\n} from './schemas/export';\n\n// Component Defaults\nexport {\n PptxComponentDefaultsSchema,\n TextComponentDefaultsSchema,\n ImageComponentDefaultsSchema,\n ShapeComponentDefaultsSchema,\n TableComponentDefaultsSchema,\n HighchartsComponentDefaultsSchema,\n ChartComponentDefaultsSchema,\n} from './schemas/component-defaults';\nexport type {\n PptxComponentDefaults,\n TextComponentDefaults,\n ImageComponentDefaults,\n ShapeComponentDefaults,\n TableComponentDefaults,\n HighchartsComponentDefaults,\n ChartComponentDefaults,\n} from './schemas/component-defaults';\n\n// Theme\nexport {\n ThemeConfigSchema,\n ColorValueSchema,\n SEMANTIC_COLOR_NAMES,\n SEMANTIC_COLOR_ALIASES,\n STYLE_NAMES,\n StyleNameSchema,\n TextStyleSchema,\n isValidThemeConfig,\n} from './schemas/theme';\nexport type { ThemeConfigJson, StyleName, TextStyle } from './schemas/theme';\n\n// Schema Generator\nexport { generateUnifiedDocumentSchema } from './schemas/generator';\nexport type {\n VersionedPropsEntry,\n CustomComponentInfo,\n GenerateSchemaOptions,\n} from './schemas/generator';\n\n// Types\nexport type { ReportComponent } from './types/components';\n\n// Re-export shared validation utilities for convenience\nexport {\n transformValueError,\n transformValueErrors,\n DEFAULT_ERROR_CONFIG,\n createErrorConfig,\n} from '@json-to-office/shared';\n\nexport type {\n ErrorFormatterConfig,\n ValidationError,\n} from '@json-to-office/shared';\n\n// Re-export shared utilities\nexport {\n latestVersion,\n isValidSemver,\n parseSemver,\n compareSemver,\n} from '@json-to-office/shared';\nexport type { ParsedSemver } from '@json-to-office/shared';\n\n// Re-export schema utils\nexport {\n fixSchemaReferences,\n convertToJsonSchema,\n createComponentSchema,\n exportSchemaToFile,\n} from '@json-to-office/shared';\nexport type { ComponentSchemaConfig } from '@json-to-office/shared';\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export const PPTX_SHARED_VERSION = '1.0.0';\n\n// Component Schemas\nexport {\n PositionSchema,\n SlideBackgroundSchema,\n TransitionSchema,\n VerticalAlignmentSchema,\n ShadowSchema,\n PresentationPropsSchema,\n SlidePropsSchema,\n TextPropsSchema,\n PptxImagePropsSchema,\n ShapePropsSchema,\n ShapeTypeSchema,\n PptxTablePropsSchema,\n PptxHighchartsPropsSchema,\n PptxStandardComponentDefinitionSchema,\n PptxComponentDefinitionSchema,\n PptxSlideContentSchema,\n} from './schemas/components';\n\nexport type {\n Position,\n SlideBackground,\n Transition,\n VerticalAlignment,\n Shadow,\n PresentationProps,\n SlideProps,\n TextProps,\n PptxImageProps,\n ShapeType,\n ShapeProps,\n TextSegment,\n PptxTableProps,\n PptxHighchartsProps,\n PptxComponentDefinition,\n PptxSlideContent,\n} from './schemas/components';\n\n// Chart (not re-exported from components barrel)\nexport { PptxChartPropsSchema } from './schemas/components/chart';\nexport type { PptxChartProps } from './schemas/components/chart';\n\n// Component Registry\nexport {\n PPTX_STANDARD_COMPONENTS_REGISTRY,\n getPptxStandardComponent,\n getAllPptxComponentNames,\n getPptxComponentsByCategory,\n getPptxContainerComponents,\n getPptxContentComponents,\n isPptxStandardComponent,\n createPptxComponentSchemaObject,\n createAllPptxComponentSchemas,\n} from './schemas/component-registry';\n\nexport type { PptxStandardComponentDefinition } from './schemas/component-registry';\n\n// Document Schema\nexport {\n PptxJsonComponentDefinitionSchema,\n PPTX_JSON_SCHEMA_URLS,\n} from './schemas/document';\n\nexport type { PptxJsonComponentDefinition } from './schemas/document';\n\n// Schema Export Metadata\nexport {\n PPTX_COMPONENT_METADATA,\n PPTX_BASE_SCHEMA_METADATA,\n} from './schemas/export';\n\n// Component Defaults\nexport {\n PptxComponentDefaultsSchema,\n TextComponentDefaultsSchema,\n ImageComponentDefaultsSchema,\n ShapeComponentDefaultsSchema,\n TableComponentDefaultsSchema,\n HighchartsComponentDefaultsSchema,\n ChartComponentDefaultsSchema,\n} from './schemas/component-defaults';\nexport type {\n PptxComponentDefaults,\n TextComponentDefaults,\n ImageComponentDefaults,\n ShapeComponentDefaults,\n TableComponentDefaults,\n HighchartsComponentDefaults,\n ChartComponentDefaults,\n} from './schemas/component-defaults';\n\n// Theme\nexport {\n ThemeConfigSchema,\n ColorValueSchema,\n SEMANTIC_COLOR_NAMES,\n SEMANTIC_COLOR_ALIASES,\n STYLE_NAMES,\n StyleNameSchema,\n TextStyleSchema,\n isValidThemeConfig,\n} from './schemas/theme';\nexport type { ThemeConfigJson, StyleName, TextStyle } from './schemas/theme';\n\n// Schema Generator\nexport { generateUnifiedDocumentSchema } from './schemas/generator';\nexport type {\n VersionedPropsEntry,\n CustomComponentInfo,\n GenerateSchemaOptions,\n} from './schemas/generator';\n\n// Types\nexport type { ReportComponent } from './types/components';\n\n// Re-export shared validation utilities for convenience\nexport {\n transformValueError,\n transformValueErrors,\n DEFAULT_ERROR_CONFIG,\n createErrorConfig,\n} from '@json-to-office/shared';\n\nexport type {\n ErrorFormatterConfig,\n ValidationError,\n} from '@json-to-office/shared';\n\n// Re-export shared utilities\nexport {\n latestVersion,\n isValidSemver,\n parseSemver,\n compareSemver,\n} from '@json-to-office/shared';\nexport type { ParsedSemver } from '@json-to-office/shared';\n\n// Re-export schema utils\nexport {\n fixSchemaReferences,\n convertToJsonSchema,\n createComponentSchema,\n exportSchemaToFile,\n} from '@json-to-office/shared';\nexport type { ComponentSchemaConfig } from '@json-to-office/shared';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuHA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAIP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAlJA,IAAM,sBAAsB;","names":[]}
|
|
@@ -4,5 +4,15 @@ import { Static } from '@sinclair/typebox';
|
|
|
4
4
|
declare const PptxStandardComponentDefinitionSchema: _sinclair_typebox.TUnion<_sinclair_typebox.TSchema[]>;
|
|
5
5
|
declare const PptxComponentDefinitionSchema: _sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<_sinclair_typebox.TSchema[]>>;
|
|
6
6
|
type PptxComponentDefinition = Static<typeof PptxComponentDefinitionSchema>;
|
|
7
|
+
/**
|
|
8
|
+
* A single PPTX slide content element — the discriminated union of the
|
|
9
|
+
* leaf content components a slide can hold (text, image, shape, table,
|
|
10
|
+
* highcharts, chart). Non-recursive (these components have no children), so it
|
|
11
|
+
* embeds cleanly into other schemas (e.g. the docx `visual` component's
|
|
12
|
+
* `elements`). The explicit `$id` lets JSON-Schema export hoist it into a
|
|
13
|
+
* single shared `definitions` entry instead of inlining it at every use site.
|
|
14
|
+
*/
|
|
15
|
+
declare const PptxSlideContentSchema: _sinclair_typebox.TUnion<_sinclair_typebox.TSchema[]>;
|
|
16
|
+
type PptxSlideContent = Static<typeof PptxSlideContentSchema>;
|
|
7
17
|
|
|
8
|
-
export { type PptxComponentDefinition, PptxComponentDefinitionSchema, PptxStandardComponentDefinitionSchema };
|
|
18
|
+
export { type PptxComponentDefinition, PptxComponentDefinitionSchema, type PptxSlideContent, PptxSlideContentSchema, PptxStandardComponentDefinitionSchema };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PptxComponentDefinitionSchema,
|
|
3
|
+
PptxSlideContentSchema,
|
|
3
4
|
PptxStandardComponentDefinitionSchema
|
|
4
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-7S4C6RDX.js";
|
|
5
6
|
import "../chunk-WPYC73KC.js";
|
|
6
7
|
import "../chunk-SN34KUZS.js";
|
|
7
8
|
export {
|
|
8
9
|
PptxComponentDefinitionSchema,
|
|
10
|
+
PptxSlideContentSchema,
|
|
9
11
|
PptxStandardComponentDefinitionSchema
|
|
10
12
|
};
|
|
11
13
|
//# sourceMappingURL=component-union.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
2
2
|
import { Static } from '@sinclair/typebox';
|
|
3
|
-
export { PptxComponentDefinition, PptxComponentDefinitionSchema, PptxStandardComponentDefinitionSchema } from './component-union.js';
|
|
3
|
+
export { PptxComponentDefinition, PptxComponentDefinitionSchema, PptxSlideContent, PptxSlideContentSchema, PptxStandardComponentDefinitionSchema } from './component-union.js';
|
|
4
4
|
|
|
5
5
|
declare const PositionSchema: _sinclair_typebox.TObject<{
|
|
6
6
|
x: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "../chunk-J4OT5Y5B.js";
|
|
2
2
|
import {
|
|
3
3
|
PptxComponentDefinitionSchema,
|
|
4
|
+
PptxSlideContentSchema,
|
|
4
5
|
PptxStandardComponentDefinitionSchema
|
|
5
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-7S4C6RDX.js";
|
|
6
7
|
import {
|
|
7
8
|
PresentationPropsSchema,
|
|
8
9
|
SlidePropsSchema
|
|
@@ -30,6 +31,7 @@ export {
|
|
|
30
31
|
PptxComponentDefinitionSchema,
|
|
31
32
|
PptxHighchartsPropsSchema,
|
|
32
33
|
PptxImagePropsSchema,
|
|
34
|
+
PptxSlideContentSchema,
|
|
33
35
|
PptxStandardComponentDefinitionSchema,
|
|
34
36
|
PptxTablePropsSchema,
|
|
35
37
|
PresentationPropsSchema,
|
package/dist/schemas/document.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PPTX_JSON_SCHEMA_URLS,
|
|
3
3
|
PptxJsonComponentDefinitionSchema
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RBKJSWQN.js";
|
|
5
5
|
import "../chunk-J4OT5Y5B.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-7S4C6RDX.js";
|
|
7
7
|
import "../chunk-WPYC73KC.js";
|
|
8
8
|
import "../chunk-SN34KUZS.js";
|
|
9
9
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@json-to-office/shared-pptx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "PPTX-specific schemas, component registry and validation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@sinclair/typebox": "0.34.38",
|
|
27
|
-
"@json-to-office/shared": "^0.
|
|
27
|
+
"@json-to-office/shared": "^0.16.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "20.11.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schemas/component-union.ts"],"sourcesContent":["/**\n * PPTX Component Definition Schemas (discriminated union)\n *\n * Extracted to its own file to break circular imports:\n * slide.ts → component-union.ts → component-registry.ts → slide.ts\n * ESM resolves this safely because SlidePropsSchema is a top-level declaration.\n */\n\nimport { Type, Static } from '@sinclair/typebox';\nimport {\n createAllPptxComponentSchemas,\n createAllPptxComponentSchemasNarrowed,\n} from './component-registry';\n\nexport const PptxStandardComponentDefinitionSchema = Type.Union(\n [...createAllPptxComponentSchemas(Type.Any())],\n {\n discriminator: { propertyName: 'name' },\n description: 'Standard PPTX component definition with discriminated union',\n }\n);\n\nexport const PptxComponentDefinitionSchema = Type.Recursive((This) =>\n Type.Union([...createAllPptxComponentSchemasNarrowed(This)], {\n discriminator: { propertyName: 'name' },\n description: 'PPTX component definition with discriminated union',\n })\n);\n\nexport type PptxComponentDefinition = Static<\n typeof PptxComponentDefinitionSchema\n>;\n"],"mappings":";;;;;;AAQA,SAAS,YAAoB;AAMtB,IAAM,wCAAwC,KAAK;AAAA,EACxD,CAAC,GAAG,8BAA8B,KAAK,IAAI,CAAC,CAAC;AAAA,EAC7C;AAAA,IACE,eAAe,EAAE,cAAc,OAAO;AAAA,IACtC,aAAa;AAAA,EACf;AACF;AAEO,IAAM,gCAAgC,KAAK;AAAA,EAAU,CAAC,SAC3D,KAAK,MAAM,CAAC,GAAG,sCAAsC,IAAI,CAAC,GAAG;AAAA,IAC3D,eAAe,EAAE,cAAc,OAAO;AAAA,IACtC,aAAa;AAAA,EACf,CAAC;AACH;","names":[]}
|
|
File without changes
|