@pixerate/schemas 1.12.0 → 1.13.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/index.cjs +36 -0
- package/dist/index.d.cts +859 -19
- package/dist/index.d.ts +859 -19
- package/dist/index.js +33 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,6 +52,7 @@ __export(index_exports, {
|
|
|
52
52
|
AutoFitCaptionSchema: () => AutoFitCaptionSchema,
|
|
53
53
|
CRDTSnapshotSchema: () => CRDTSnapshotSchema,
|
|
54
54
|
CodeGenerationSchema: () => CodeGenerationSchema,
|
|
55
|
+
ComponentDependencySchema: () => ComponentDependencySchema,
|
|
55
56
|
ComponentDocsSchema: () => ComponentDocsSchema,
|
|
56
57
|
ComponentPackageSchema: () => ComponentPackageSchema,
|
|
57
58
|
ComponentPropDefinitionSchema: () => ComponentPropDefinitionSchema,
|
|
@@ -70,6 +71,7 @@ __export(index_exports, {
|
|
|
70
71
|
DisplacementMapSchema: () => DisplacementMapSchema,
|
|
71
72
|
DocumentGenerationOptionsSchema: () => DocumentGenerationOptionsSchema,
|
|
72
73
|
DropShadowSchema: () => DropShadowSchema,
|
|
74
|
+
ExternalPackageDependencySchema: () => ExternalPackageDependencySchema,
|
|
73
75
|
FORM_SCHEMA_JSON_SCHEMA: () => FORM_SCHEMA_JSON_SCHEMA,
|
|
74
76
|
FidelitySchema: () => FidelitySchema,
|
|
75
77
|
FieldPresenceSchema: () => FieldPresenceSchema,
|
|
@@ -91,6 +93,7 @@ __export(index_exports, {
|
|
|
91
93
|
ImageTransformationSchema: () => ImageTransformationSchema,
|
|
92
94
|
ImageWatermarkSchema: () => ImageWatermarkSchema,
|
|
93
95
|
IngestionInputSchema: () => IngestionInputSchema,
|
|
96
|
+
InternalComponentDependencySchema: () => InternalComponentDependencySchema,
|
|
94
97
|
JsonGenerationSchema: () => JsonGenerationSchema,
|
|
95
98
|
KenBurnsOptionsSchema: () => KenBurnsOptionsSchema,
|
|
96
99
|
LockClaimRequestSchema: () => LockClaimRequestSchema,
|
|
@@ -541,6 +544,25 @@ var GenerateHarnessOptionsSchema = import_zod.z.object({
|
|
|
541
544
|
componentName: import_zod.z.string(),
|
|
542
545
|
docsProps: import_zod.z.array(ComponentPropDocSchema).optional()
|
|
543
546
|
});
|
|
547
|
+
var InternalComponentDependencySchema = import_zod.z.object({
|
|
548
|
+
type: import_zod.z.literal("surreal"),
|
|
549
|
+
componentTypeId: import_zod.z.string().describe("Slug of target component type (e.g. 'button')"),
|
|
550
|
+
aestheticId: import_zod.z.string().optional().describe("Aesthetic style ID (e.g. 'glassmorphism')"),
|
|
551
|
+
variantId: import_zod.z.string().optional().describe("Variant ID (e.g. 'glass-action-button')"),
|
|
552
|
+
versionRange: import_zod.z.string().default("^1.0.0").describe("Semver range required"),
|
|
553
|
+
importedAs: import_zod.z.string().describe("Local identifier name (e.g. 'Button')")
|
|
554
|
+
});
|
|
555
|
+
var ExternalPackageDependencySchema = import_zod.z.object({
|
|
556
|
+
type: import_zod.z.literal("npm"),
|
|
557
|
+
packageName: import_zod.z.string().describe("NPM package name (e.g. 'bits-ui', '@radix-ui/react-dialog')"),
|
|
558
|
+
versionRange: import_zod.z.string().default("^1.0.0").describe("Semver range (e.g. '^1.0.0', '^1.1.2')"),
|
|
559
|
+
isPeerDependency: import_zod.z.boolean().default(false),
|
|
560
|
+
importSpecifiers: import_zod.z.array(import_zod.z.string()).optional()
|
|
561
|
+
});
|
|
562
|
+
var ComponentDependencySchema = import_zod.z.discriminatedUnion("type", [
|
|
563
|
+
InternalComponentDependencySchema,
|
|
564
|
+
ExternalPackageDependencySchema
|
|
565
|
+
]);
|
|
544
566
|
var ComponentSynthesisSchema = import_zod.z.object({
|
|
545
567
|
title: import_zod.z.string().describe("Title of the synthesized component"),
|
|
546
568
|
description: import_zod.z.string().describe("Detailed description of the component"),
|
|
@@ -555,6 +577,11 @@ var ComponentSynthesisSchema = import_zod.z.object({
|
|
|
555
577
|
react: PreviewHarnessSchema,
|
|
556
578
|
webcomponent: PreviewHarnessSchema
|
|
557
579
|
}).optional(),
|
|
580
|
+
dependencies: import_zod.z.object({
|
|
581
|
+
svelte: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
582
|
+
react: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
583
|
+
webcomponent: import_zod.z.array(ComponentDependencySchema).default([])
|
|
584
|
+
}).optional(),
|
|
558
585
|
docs: ComponentDocsSchema
|
|
559
586
|
});
|
|
560
587
|
var ComponentTransformationResultSchema = import_zod.z.object({
|
|
@@ -563,6 +590,11 @@ var ComponentTransformationResultSchema = import_zod.z.object({
|
|
|
563
590
|
tags: import_zod.z.array(import_zod.z.string()),
|
|
564
591
|
platforms: import_zod.z.record(PlatformLanguageSchema, import_zod.z.string()),
|
|
565
592
|
harnesses: import_zod.z.record(PlatformLanguageSchema, PreviewHarnessSchema),
|
|
593
|
+
dependencies: import_zod.z.object({
|
|
594
|
+
svelte: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
595
|
+
react: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
596
|
+
webcomponent: import_zod.z.array(ComponentDependencySchema).default([])
|
|
597
|
+
}).optional(),
|
|
566
598
|
docs: ComponentDocsSchema,
|
|
567
599
|
detectedLanguage: PlatformLanguageSchema,
|
|
568
600
|
themeSupport: ThemeSupportSchema
|
|
@@ -574,6 +606,7 @@ var ComponentPackageSchema = import_zod.z.object({
|
|
|
574
606
|
screenshot: import_zod.z.string().describe("Data URI or URL of actual rendered component"),
|
|
575
607
|
themeSupport: ThemeSupportSchema,
|
|
576
608
|
tags: import_zod.z.array(import_zod.z.string()),
|
|
609
|
+
dependencies: import_zod.z.array(ComponentDependencySchema).default([]),
|
|
577
610
|
previewHarness: PreviewHarnessSchema.optional()
|
|
578
611
|
});
|
|
579
612
|
var UIComponentTypeSchema = import_zod.z.object({
|
|
@@ -1630,6 +1663,7 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1630
1663
|
AutoFitCaptionSchema,
|
|
1631
1664
|
CRDTSnapshotSchema,
|
|
1632
1665
|
CodeGenerationSchema,
|
|
1666
|
+
ComponentDependencySchema,
|
|
1633
1667
|
ComponentDocsSchema,
|
|
1634
1668
|
ComponentPackageSchema,
|
|
1635
1669
|
ComponentPropDefinitionSchema,
|
|
@@ -1648,6 +1682,7 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1648
1682
|
DisplacementMapSchema,
|
|
1649
1683
|
DocumentGenerationOptionsSchema,
|
|
1650
1684
|
DropShadowSchema,
|
|
1685
|
+
ExternalPackageDependencySchema,
|
|
1651
1686
|
FORM_SCHEMA_JSON_SCHEMA,
|
|
1652
1687
|
FidelitySchema,
|
|
1653
1688
|
FieldPresenceSchema,
|
|
@@ -1669,6 +1704,7 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1669
1704
|
ImageTransformationSchema,
|
|
1670
1705
|
ImageWatermarkSchema,
|
|
1671
1706
|
IngestionInputSchema,
|
|
1707
|
+
InternalComponentDependencySchema,
|
|
1672
1708
|
JsonGenerationSchema,
|
|
1673
1709
|
KenBurnsOptionsSchema,
|
|
1674
1710
|
LockClaimRequestSchema,
|