@supernova-studio/model 1.9.11 → 1.9.13

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
@@ -4672,6 +4672,7 @@ var FigmaExporterProcessedStylesSchema = _zod.z.object({
4672
4672
  ]).optional(),
4673
4673
  transform: _zod.z.string().optional(),
4674
4674
  transformOrigin: _zod.z.string().optional(),
4675
+ rotate: _zod.z.string().optional(),
4675
4676
  clipPath: _zod.z.string().optional(),
4676
4677
  color: _zod.z.string().optional(),
4677
4678
  fontFamily: _zod.z.string().optional(),
@@ -4748,7 +4749,12 @@ var FigmaExporterProcessedStylesSchema = _zod.z.object({
4748
4749
  ]).optional(),
4749
4750
  visibility: _zod.z.union([_zod.z.literal("visible"), _zod.z.literal("hidden"), _zod.z.literal("collapse")]).optional()
4750
4751
  });
4751
- var FigmaExporterDesignNodeTypeSchema = _zod.z.union([_zod.z.literal("FRAME"), _zod.z.literal("TEXT"), _zod.z.literal("SVG")]);
4752
+ var FigmaExporterDesignNodeTypeSchema = _zod.z.union([
4753
+ _zod.z.literal("FRAME"),
4754
+ _zod.z.literal("TEXT"),
4755
+ _zod.z.literal("SVG"),
4756
+ _zod.z.literal("COMPONENT_INSTANCE")
4757
+ ]);
4752
4758
  var baseDesignNodeObjectSchema = _zod.z.object({
4753
4759
  id: _zod.z.string(),
4754
4760
  type: FigmaExporterDesignNodeTypeSchema,
@@ -4766,6 +4772,15 @@ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4766
4772
  type: _zod.z.literal("SVG"),
4767
4773
  svgString: _zod.z.string()
4768
4774
  });
4775
+ var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
4776
+ type: _zod.z.literal("COMPONENT_INSTANCE"),
4777
+ supernovaId: _zod.z.string(),
4778
+ componentSetName: _zod.z.string(),
4779
+ componentSetDescription: _zod.z.string(),
4780
+ componentName: _zod.z.string(),
4781
+ componentDescription: _zod.z.string(),
4782
+ props: _zod.z.record(_zod.z.string(), _zod.z.union([_zod.z.string(), _zod.z.boolean()]))
4783
+ });
4769
4784
  var frameNodeSchema = _zod.z.lazy(
4770
4785
  () => frameNodeObjectSchema.extend({
4771
4786
  children: FigmaExporterAnyDesignNodeSchema.array()
@@ -4777,7 +4792,17 @@ var svgNodeSchema = _zod.z.lazy(
4777
4792
  children: FigmaExporterAnyDesignNodeSchema.array()
4778
4793
  })
4779
4794
  );
4780
- var FigmaExporterAnyDesignNodeSchema = _zod.z.union([frameNodeSchema, textNodeSchema, svgNodeSchema]);
4795
+ var componentInstanceNodeSchema = _zod.z.lazy(
4796
+ () => componentInstanceObjectSchema.extend({
4797
+ children: FigmaExporterAnyDesignNodeSchema.array()
4798
+ })
4799
+ );
4800
+ var FigmaExporterAnyDesignNodeSchema = _zod.z.union([
4801
+ frameNodeSchema,
4802
+ textNodeSchema,
4803
+ svgNodeSchema,
4804
+ componentInstanceNodeSchema
4805
+ ]);
4781
4806
 
4782
4807
  // src/dsm/figma-node-renderer/renderer-payload.ts
4783
4808