@json-to-office/shared-docx 0.13.1 → 0.14.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-ZQNAWKEI.js → chunk-52PV5JQK.js} +2 -2
- package/dist/chunk-52PV5JQK.js.map +1 -0
- package/dist/{chunk-UTOSZI5Q.js → chunk-5BKZFYJL.js} +3 -3
- package/dist/{chunk-CIBMJ7QA.js → chunk-6IXK54YE.js} +2 -2
- package/dist/{chunk-YUV5CJMG.js → chunk-CGMJ665Z.js} +488 -436
- package/dist/chunk-CGMJ665Z.js.map +1 -0
- package/dist/{chunk-BFJJ5HYD.js → chunk-CY6IVMEZ.js} +7 -2
- package/dist/chunk-CY6IVMEZ.js.map +1 -0
- package/dist/{chunk-VBZC5WT6.js → chunk-FA6FKO3L.js} +2 -2
- package/dist/{chunk-TPA2QVQD.js → chunk-HJIS6RRQ.js} +6 -6
- package/dist/{chunk-25SAKHVN.js → chunk-PQGT7BU5.js} +2 -2
- package/dist/{chunk-IHZIO72A.js → chunk-QUA2GDH7.js} +2 -2
- package/dist/{chunk-YK2UUG65.js → chunk-X2B5OVWA.js} +2 -2
- package/dist/index.d.ts +144 -19
- package/dist/index.js +688 -10
- package/dist/index.js.map +1 -1
- package/dist/schemas/api.js +4 -4
- package/dist/schemas/component-defaults.d.ts +48 -32
- package/dist/schemas/component-defaults.js +1 -1
- package/dist/schemas/component-registry.js +2 -2
- package/dist/schemas/components.d.ts +90 -33
- package/dist/schemas/components.js +7 -3
- package/dist/schemas/document.js +5 -5
- package/dist/schemas/export.js +3 -3
- package/dist/schemas/generator.js +3 -3
- package/dist/schemas/theme.d.ts +24 -16
- package/dist/schemas/theme.js +2 -2
- package/dist/validation/unified/index.d.ts +51 -18
- package/dist/validation/unified/index.js +6 -6
- package/package.json +2 -2
- package/dist/chunk-BFJJ5HYD.js.map +0 -1
- package/dist/chunk-YUV5CJMG.js.map +0 -1
- package/dist/chunk-ZQNAWKEI.js.map +0 -1
- /package/dist/{chunk-UTOSZI5Q.js.map → chunk-5BKZFYJL.js.map} +0 -0
- /package/dist/{chunk-CIBMJ7QA.js.map → chunk-6IXK54YE.js.map} +0 -0
- /package/dist/{chunk-VBZC5WT6.js.map → chunk-FA6FKO3L.js.map} +0 -0
- /package/dist/{chunk-TPA2QVQD.js.map → chunk-HJIS6RRQ.js.map} +0 -0
- /package/dist/{chunk-25SAKHVN.js.map → chunk-PQGT7BU5.js.map} +0 -0
- /package/dist/{chunk-IHZIO72A.js.map → chunk-QUA2GDH7.js.map} +0 -0
- /package/dist/{chunk-YK2UUG65.js.map → chunk-X2B5OVWA.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAllComponentSchemas,
|
|
3
3
|
createAllComponentSchemasNarrowed
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CY6IVMEZ.js";
|
|
5
5
|
|
|
6
6
|
// src/schemas/components.ts
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
@@ -31,4 +31,4 @@ export {
|
|
|
31
31
|
StandardComponentDefinitionSchema,
|
|
32
32
|
ComponentDefinitionSchema
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-52PV5JQK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schemas/components.ts"],"sourcesContent":["/**\n * TypeBox Component Schemas\n *\n * Complete component definitions with discriminated unions for perfect\n * JSON schema autocompletion and validation.\n *\n * IMPORTANT: Standard components are defined in component-registry.ts (SINGLE SOURCE OF TRUTH).\n * This file uses that registry to generate TypeBox schemas.\n */\n\nimport { Type, Static } from '@sinclair/typebox';\nimport {\n createAllComponentSchemas,\n createAllComponentSchemasNarrowed,\n} from './component-registry';\n\n// Re-export all schemas from individual component files\nexport * from './components/common';\nexport * from './components/revision';\nexport * from './components/report';\nexport * from './components/section';\nexport * from './components/columns';\nexport * from './components/heading';\nexport * from './components/paragraph';\nexport * from './components/image';\nexport * from './components/highcharts';\nexport * from './components/statistic';\nexport * from './components/table';\nexport * from './components/list';\nexport * from './components/toc';\nexport * from './components/text-box';\n\n// ============================================================================\n// Component Definitions with Discriminated Union\n// ============================================================================\n\n// StandardComponentDefinitionSchema - Union of all standard component types\n// Generated from the component registry (SINGLE SOURCE OF TRUTH)\nexport const StandardComponentDefinitionSchema = Type.Union(\n // Use Type.Any() for non-recursive standard components\n // Convert readonly array to mutable array for Type.Union\n [...createAllComponentSchemas(Type.Any())],\n {\n discriminator: { propertyName: 'name' },\n description: 'Standard component definition with discriminated union',\n }\n);\n\nexport const ComponentDefinitionSchema = Type.Recursive((This) =>\n Type.Union(\n [\n // Standard components from registry with per-container narrowed children\n ...createAllComponentSchemasNarrowed(This).schemas,\n ],\n {\n discriminator: { propertyName: 'name' },\n description: 'Component definition with discriminated union',\n }\n )\n);\n\n// ============================================================================\n// TypeScript Types\n// ============================================================================\n\nexport type ComponentDefinition = Static<typeof ComponentDefinitionSchema>;\n"],"mappings":";;;;;;AAUA,SAAS,YAAoB;AA4BtB,IAAM,oCAAoC,KAAK;AAAA;AAAA;AAAA,EAGpD,CAAC,GAAG,0BAA0B,KAAK,IAAI,CAAC,CAAC;AAAA,EACzC;AAAA,IACE,eAAe,EAAE,cAAc,OAAO;AAAA,IACtC,aAAa;AAAA,EACf;AACF;AAEO,IAAM,4BAA4B,KAAK;AAAA,EAAU,CAAC,SACvD,KAAK;AAAA,IACH;AAAA;AAAA,MAEE,GAAG,kCAAkC,IAAI,EAAE;AAAA,IAC7C;AAAA,IACA;AAAA,MACE,eAAe,EAAE,cAAc,OAAO;AAAA,MACtC,aAAa;AAAA,IACf;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComponentDefinitionSchema,
|
|
3
3
|
StandardComponentDefinitionSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-52PV5JQK.js";
|
|
5
5
|
import {
|
|
6
6
|
CustomComponentDefinitionSchema
|
|
7
7
|
} from "./chunk-7GGTZ4TA.js";
|
|
8
8
|
import {
|
|
9
9
|
ReportPropsSchema,
|
|
10
10
|
STANDARD_COMPONENTS_REGISTRY
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CY6IVMEZ.js";
|
|
12
12
|
|
|
13
13
|
// src/validation/unified/error-transformer.ts
|
|
14
14
|
import {
|
|
@@ -755,4 +755,4 @@ export {
|
|
|
755
755
|
validateJsonComponent,
|
|
756
756
|
validateDocumentWithSchema
|
|
757
757
|
};
|
|
758
|
-
//# sourceMappingURL=chunk-
|
|
758
|
+
//# sourceMappingURL=chunk-5BKZFYJL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getContainerComponents
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CY6IVMEZ.js";
|
|
4
4
|
|
|
5
5
|
// src/schemas/export.ts
|
|
6
6
|
function fixSchemaReferences(schema, rootDefinitionName = "ComponentDefinition") {
|
|
@@ -268,4 +268,4 @@ export {
|
|
|
268
268
|
BASE_SCHEMA_METADATA,
|
|
269
269
|
THEME_SCHEMA_METADATA
|
|
270
270
|
};
|
|
271
|
-
//# sourceMappingURL=chunk-
|
|
271
|
+
//# sourceMappingURL=chunk-6IXK54YE.js.map
|