@supernova-studio/model 0.54.3 → 0.54.4

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.mjs CHANGED
@@ -598,27 +598,36 @@ import { z as z33 } from "zod";
598
598
  // src/dsm/elements/component-properties.ts
599
599
  import { z as z32 } from "zod";
600
600
  var FigmaComponentPropertyType = z32.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
601
- var FigmaComponentBooleanProperty = z32.object({
601
+ var FigmaComponentPropertyOrigin = z32.object({
602
+ id: z32.string()
603
+ });
604
+ var FigmaComponentPropertyBase = z32.object({
605
+ id: z32.string(),
606
+ name: z32.string()
607
+ });
608
+ var FigmaComponentBooleanProperty = FigmaComponentPropertyBase.extend({
602
609
  type: z32.literal(FigmaComponentPropertyType.enum.Boolean),
603
610
  defaultValue: z32.boolean()
604
611
  });
605
- var FigmaComponentInstanceSwapProperty = z32.object({
612
+ var FigmaComponentInstanceSwapProperty = FigmaComponentPropertyBase.extend({
606
613
  type: z32.literal(FigmaComponentPropertyType.enum.InstanceSwap),
607
614
  defaultValue: z32.string()
608
615
  });
609
- var FigmaComponentVariantProperty = z32.object({
616
+ var FigmaComponentVariantProperty = FigmaComponentPropertyBase.extend({
610
617
  type: z32.literal(FigmaComponentPropertyType.enum.Variant),
611
618
  defaultValue: z32.string(),
612
619
  options: z32.array(z32.string())
613
620
  });
614
- var FigmaComponentTextProperty = z32.object({
621
+ var FigmaComponentTextProperty = FigmaComponentPropertyBase.extend({
615
622
  type: z32.literal(FigmaComponentPropertyType.enum.Text),
623
+ id: z32.string(),
616
624
  defaultValue: z32.string()
617
625
  });
618
626
  var FigmaComponentProperty = z32.discriminatedUnion("type", [
619
627
  FigmaComponentBooleanProperty,
620
628
  FigmaComponentInstanceSwapProperty,
621
- FigmaComponentTextProperty
629
+ FigmaComponentTextProperty,
630
+ FigmaComponentVariantProperty
622
631
  ]);
623
632
  var FigmaComponentPropertyMap = z32.record(z32.string(), FigmaComponentProperty);
624
633
 
@@ -5402,6 +5411,7 @@ export {
5402
5411
  FigmaComponentOriginPart,
5403
5412
  FigmaComponentProperty,
5404
5413
  FigmaComponentPropertyMap,
5414
+ FigmaComponentPropertyOrigin,
5405
5415
  FigmaComponentPropertyType,
5406
5416
  FigmaComponentTextProperty,
5407
5417
  FigmaComponentVariantProperty,