@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.js CHANGED
@@ -365,6 +365,25 @@ var GenerateHarnessOptionsSchema = z.object({
365
365
  componentName: z.string(),
366
366
  docsProps: z.array(ComponentPropDocSchema).optional()
367
367
  });
368
+ var InternalComponentDependencySchema = z.object({
369
+ type: z.literal("surreal"),
370
+ componentTypeId: z.string().describe("Slug of target component type (e.g. 'button')"),
371
+ aestheticId: z.string().optional().describe("Aesthetic style ID (e.g. 'glassmorphism')"),
372
+ variantId: z.string().optional().describe("Variant ID (e.g. 'glass-action-button')"),
373
+ versionRange: z.string().default("^1.0.0").describe("Semver range required"),
374
+ importedAs: z.string().describe("Local identifier name (e.g. 'Button')")
375
+ });
376
+ var ExternalPackageDependencySchema = z.object({
377
+ type: z.literal("npm"),
378
+ packageName: z.string().describe("NPM package name (e.g. 'bits-ui', '@radix-ui/react-dialog')"),
379
+ versionRange: z.string().default("^1.0.0").describe("Semver range (e.g. '^1.0.0', '^1.1.2')"),
380
+ isPeerDependency: z.boolean().default(false),
381
+ importSpecifiers: z.array(z.string()).optional()
382
+ });
383
+ var ComponentDependencySchema = z.discriminatedUnion("type", [
384
+ InternalComponentDependencySchema,
385
+ ExternalPackageDependencySchema
386
+ ]);
368
387
  var ComponentSynthesisSchema = z.object({
369
388
  title: z.string().describe("Title of the synthesized component"),
370
389
  description: z.string().describe("Detailed description of the component"),
@@ -379,6 +398,11 @@ var ComponentSynthesisSchema = z.object({
379
398
  react: PreviewHarnessSchema,
380
399
  webcomponent: PreviewHarnessSchema
381
400
  }).optional(),
401
+ dependencies: z.object({
402
+ svelte: z.array(ComponentDependencySchema).default([]),
403
+ react: z.array(ComponentDependencySchema).default([]),
404
+ webcomponent: z.array(ComponentDependencySchema).default([])
405
+ }).optional(),
382
406
  docs: ComponentDocsSchema
383
407
  });
384
408
  var ComponentTransformationResultSchema = z.object({
@@ -387,6 +411,11 @@ var ComponentTransformationResultSchema = z.object({
387
411
  tags: z.array(z.string()),
388
412
  platforms: z.record(PlatformLanguageSchema, z.string()),
389
413
  harnesses: z.record(PlatformLanguageSchema, PreviewHarnessSchema),
414
+ dependencies: z.object({
415
+ svelte: z.array(ComponentDependencySchema).default([]),
416
+ react: z.array(ComponentDependencySchema).default([]),
417
+ webcomponent: z.array(ComponentDependencySchema).default([])
418
+ }).optional(),
390
419
  docs: ComponentDocsSchema,
391
420
  detectedLanguage: PlatformLanguageSchema,
392
421
  themeSupport: ThemeSupportSchema
@@ -398,6 +427,7 @@ var ComponentPackageSchema = z.object({
398
427
  screenshot: z.string().describe("Data URI or URL of actual rendered component"),
399
428
  themeSupport: ThemeSupportSchema,
400
429
  tags: z.array(z.string()),
430
+ dependencies: z.array(ComponentDependencySchema).default([]),
401
431
  previewHarness: PreviewHarnessSchema.optional()
402
432
  });
403
433
  var UIComponentTypeSchema = z.object({
@@ -1453,6 +1483,7 @@ export {
1453
1483
  AutoFitCaptionSchema,
1454
1484
  CRDTSnapshotSchema,
1455
1485
  CodeGenerationSchema,
1486
+ ComponentDependencySchema,
1456
1487
  ComponentDocsSchema,
1457
1488
  ComponentPackageSchema,
1458
1489
  ComponentPropDefinitionSchema,
@@ -1471,6 +1502,7 @@ export {
1471
1502
  DisplacementMapSchema,
1472
1503
  DocumentGenerationOptionsSchema,
1473
1504
  DropShadowSchema,
1505
+ ExternalPackageDependencySchema,
1474
1506
  FORM_SCHEMA_JSON_SCHEMA,
1475
1507
  FidelitySchema,
1476
1508
  FieldPresenceSchema,
@@ -1492,6 +1524,7 @@ export {
1492
1524
  ImageTransformationSchema,
1493
1525
  ImageWatermarkSchema,
1494
1526
  IngestionInputSchema,
1527
+ InternalComponentDependencySchema,
1495
1528
  JsonGenerationSchema,
1496
1529
  KenBurnsOptionsSchema,
1497
1530
  LockClaimRequestSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/schemas",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",