@supernova-studio/client 0.54.15 → 0.54.17

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.d.mts CHANGED
@@ -9472,6 +9472,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9472
9472
  nodeId?: string | undefined;
9473
9473
  }>>;
9474
9474
  parentComponentPersistentId: z.ZodOptional<z.ZodString>;
9475
+ childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9475
9476
  componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
9476
9477
  id: z.ZodString;
9477
9478
  name: z.ZodString;
@@ -9541,7 +9542,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9541
9542
  name: string;
9542
9543
  defaultValue: string;
9543
9544
  }>]>>>;
9544
- childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9545
+ variantPropertyValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9545
9546
  }, "strip", z.ZodTypeAny, {
9546
9547
  id: string;
9547
9548
  persistentId: string;
@@ -9567,6 +9568,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9567
9568
  nodeId?: string | undefined;
9568
9569
  } | undefined;
9569
9570
  parentComponentPersistentId?: string | undefined;
9571
+ childrenPersistentIds?: string[] | undefined;
9570
9572
  componentPropertyDefinitions?: Record<string, {
9571
9573
  id: string;
9572
9574
  type: "Boolean";
@@ -9589,7 +9591,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9589
9591
  name: string;
9590
9592
  defaultValue: string;
9591
9593
  }> | undefined;
9592
- childrenPersistentIds?: string[] | undefined;
9594
+ variantPropertyValues?: Record<string, string> | undefined;
9593
9595
  }, {
9594
9596
  id: string;
9595
9597
  persistentId: string;
@@ -9615,6 +9617,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9615
9617
  nodeId?: string | undefined;
9616
9618
  } | undefined;
9617
9619
  parentComponentPersistentId?: string | undefined;
9620
+ childrenPersistentIds?: string[] | undefined;
9618
9621
  componentPropertyDefinitions?: Record<string, {
9619
9622
  id: string;
9620
9623
  type: "Boolean";
@@ -9637,7 +9640,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9637
9640
  name: string;
9638
9641
  defaultValue: string;
9639
9642
  }> | undefined;
9640
- childrenPersistentIds?: string[] | undefined;
9643
+ variantPropertyValues?: Record<string, string> | undefined;
9641
9644
  }>;
9642
9645
  type DTOFigmaComponent = z.infer<typeof DTOFigmaComponent>;
9643
9646
  declare const DTOFigmaComponentListResponse: z.ZodObject<{
@@ -9691,6 +9694,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9691
9694
  nodeId?: string | undefined;
9692
9695
  }>>;
9693
9696
  parentComponentPersistentId: z.ZodOptional<z.ZodString>;
9697
+ childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9694
9698
  componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
9695
9699
  id: z.ZodString;
9696
9700
  name: z.ZodString;
@@ -9760,7 +9764,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9760
9764
  name: string;
9761
9765
  defaultValue: string;
9762
9766
  }>]>>>;
9763
- childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9767
+ variantPropertyValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9764
9768
  }, "strip", z.ZodTypeAny, {
9765
9769
  id: string;
9766
9770
  persistentId: string;
@@ -9786,6 +9790,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9786
9790
  nodeId?: string | undefined;
9787
9791
  } | undefined;
9788
9792
  parentComponentPersistentId?: string | undefined;
9793
+ childrenPersistentIds?: string[] | undefined;
9789
9794
  componentPropertyDefinitions?: Record<string, {
9790
9795
  id: string;
9791
9796
  type: "Boolean";
@@ -9808,7 +9813,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9808
9813
  name: string;
9809
9814
  defaultValue: string;
9810
9815
  }> | undefined;
9811
- childrenPersistentIds?: string[] | undefined;
9816
+ variantPropertyValues?: Record<string, string> | undefined;
9812
9817
  }, {
9813
9818
  id: string;
9814
9819
  persistentId: string;
@@ -9834,6 +9839,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9834
9839
  nodeId?: string | undefined;
9835
9840
  } | undefined;
9836
9841
  parentComponentPersistentId?: string | undefined;
9842
+ childrenPersistentIds?: string[] | undefined;
9837
9843
  componentPropertyDefinitions?: Record<string, {
9838
9844
  id: string;
9839
9845
  type: "Boolean";
@@ -9856,7 +9862,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9856
9862
  name: string;
9857
9863
  defaultValue: string;
9858
9864
  }> | undefined;
9859
- childrenPersistentIds?: string[] | undefined;
9865
+ variantPropertyValues?: Record<string, string> | undefined;
9860
9866
  }>, "many">;
9861
9867
  }, "strip", z.ZodTypeAny, {
9862
9868
  components: {
@@ -9884,6 +9890,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9884
9890
  nodeId?: string | undefined;
9885
9891
  } | undefined;
9886
9892
  parentComponentPersistentId?: string | undefined;
9893
+ childrenPersistentIds?: string[] | undefined;
9887
9894
  componentPropertyDefinitions?: Record<string, {
9888
9895
  id: string;
9889
9896
  type: "Boolean";
@@ -9906,7 +9913,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9906
9913
  name: string;
9907
9914
  defaultValue: string;
9908
9915
  }> | undefined;
9909
- childrenPersistentIds?: string[] | undefined;
9916
+ variantPropertyValues?: Record<string, string> | undefined;
9910
9917
  }[];
9911
9918
  }, {
9912
9919
  components: {
@@ -9934,6 +9941,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9934
9941
  nodeId?: string | undefined;
9935
9942
  } | undefined;
9936
9943
  parentComponentPersistentId?: string | undefined;
9944
+ childrenPersistentIds?: string[] | undefined;
9937
9945
  componentPropertyDefinitions?: Record<string, {
9938
9946
  id: string;
9939
9947
  type: "Boolean";
@@ -9956,7 +9964,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9956
9964
  name: string;
9957
9965
  defaultValue: string;
9958
9966
  }> | undefined;
9959
- childrenPersistentIds?: string[] | undefined;
9967
+ variantPropertyValues?: Record<string, string> | undefined;
9960
9968
  }[];
9961
9969
  }>;
9962
9970
  type DTOFigmaComponentListResponse = z.infer<typeof DTOFigmaComponentListResponse>;
package/dist/index.d.ts CHANGED
@@ -9472,6 +9472,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9472
9472
  nodeId?: string | undefined;
9473
9473
  }>>;
9474
9474
  parentComponentPersistentId: z.ZodOptional<z.ZodString>;
9475
+ childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9475
9476
  componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
9476
9477
  id: z.ZodString;
9477
9478
  name: z.ZodString;
@@ -9541,7 +9542,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9541
9542
  name: string;
9542
9543
  defaultValue: string;
9543
9544
  }>]>>>;
9544
- childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9545
+ variantPropertyValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9545
9546
  }, "strip", z.ZodTypeAny, {
9546
9547
  id: string;
9547
9548
  persistentId: string;
@@ -9567,6 +9568,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9567
9568
  nodeId?: string | undefined;
9568
9569
  } | undefined;
9569
9570
  parentComponentPersistentId?: string | undefined;
9571
+ childrenPersistentIds?: string[] | undefined;
9570
9572
  componentPropertyDefinitions?: Record<string, {
9571
9573
  id: string;
9572
9574
  type: "Boolean";
@@ -9589,7 +9591,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9589
9591
  name: string;
9590
9592
  defaultValue: string;
9591
9593
  }> | undefined;
9592
- childrenPersistentIds?: string[] | undefined;
9594
+ variantPropertyValues?: Record<string, string> | undefined;
9593
9595
  }, {
9594
9596
  id: string;
9595
9597
  persistentId: string;
@@ -9615,6 +9617,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9615
9617
  nodeId?: string | undefined;
9616
9618
  } | undefined;
9617
9619
  parentComponentPersistentId?: string | undefined;
9620
+ childrenPersistentIds?: string[] | undefined;
9618
9621
  componentPropertyDefinitions?: Record<string, {
9619
9622
  id: string;
9620
9623
  type: "Boolean";
@@ -9637,7 +9640,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9637
9640
  name: string;
9638
9641
  defaultValue: string;
9639
9642
  }> | undefined;
9640
- childrenPersistentIds?: string[] | undefined;
9643
+ variantPropertyValues?: Record<string, string> | undefined;
9641
9644
  }>;
9642
9645
  type DTOFigmaComponent = z.infer<typeof DTOFigmaComponent>;
9643
9646
  declare const DTOFigmaComponentListResponse: z.ZodObject<{
@@ -9691,6 +9694,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9691
9694
  nodeId?: string | undefined;
9692
9695
  }>>;
9693
9696
  parentComponentPersistentId: z.ZodOptional<z.ZodString>;
9697
+ childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9694
9698
  componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
9695
9699
  id: z.ZodString;
9696
9700
  name: z.ZodString;
@@ -9760,7 +9764,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9760
9764
  name: string;
9761
9765
  defaultValue: string;
9762
9766
  }>]>>>;
9763
- childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9767
+ variantPropertyValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9764
9768
  }, "strip", z.ZodTypeAny, {
9765
9769
  id: string;
9766
9770
  persistentId: string;
@@ -9786,6 +9790,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9786
9790
  nodeId?: string | undefined;
9787
9791
  } | undefined;
9788
9792
  parentComponentPersistentId?: string | undefined;
9793
+ childrenPersistentIds?: string[] | undefined;
9789
9794
  componentPropertyDefinitions?: Record<string, {
9790
9795
  id: string;
9791
9796
  type: "Boolean";
@@ -9808,7 +9813,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9808
9813
  name: string;
9809
9814
  defaultValue: string;
9810
9815
  }> | undefined;
9811
- childrenPersistentIds?: string[] | undefined;
9816
+ variantPropertyValues?: Record<string, string> | undefined;
9812
9817
  }, {
9813
9818
  id: string;
9814
9819
  persistentId: string;
@@ -9834,6 +9839,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9834
9839
  nodeId?: string | undefined;
9835
9840
  } | undefined;
9836
9841
  parentComponentPersistentId?: string | undefined;
9842
+ childrenPersistentIds?: string[] | undefined;
9837
9843
  componentPropertyDefinitions?: Record<string, {
9838
9844
  id: string;
9839
9845
  type: "Boolean";
@@ -9856,7 +9862,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9856
9862
  name: string;
9857
9863
  defaultValue: string;
9858
9864
  }> | undefined;
9859
- childrenPersistentIds?: string[] | undefined;
9865
+ variantPropertyValues?: Record<string, string> | undefined;
9860
9866
  }>, "many">;
9861
9867
  }, "strip", z.ZodTypeAny, {
9862
9868
  components: {
@@ -9884,6 +9890,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9884
9890
  nodeId?: string | undefined;
9885
9891
  } | undefined;
9886
9892
  parentComponentPersistentId?: string | undefined;
9893
+ childrenPersistentIds?: string[] | undefined;
9887
9894
  componentPropertyDefinitions?: Record<string, {
9888
9895
  id: string;
9889
9896
  type: "Boolean";
@@ -9906,7 +9913,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9906
9913
  name: string;
9907
9914
  defaultValue: string;
9908
9915
  }> | undefined;
9909
- childrenPersistentIds?: string[] | undefined;
9916
+ variantPropertyValues?: Record<string, string> | undefined;
9910
9917
  }[];
9911
9918
  }, {
9912
9919
  components: {
@@ -9934,6 +9941,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9934
9941
  nodeId?: string | undefined;
9935
9942
  } | undefined;
9936
9943
  parentComponentPersistentId?: string | undefined;
9944
+ childrenPersistentIds?: string[] | undefined;
9937
9945
  componentPropertyDefinitions?: Record<string, {
9938
9946
  id: string;
9939
9947
  type: "Boolean";
@@ -9956,7 +9964,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9956
9964
  name: string;
9957
9965
  defaultValue: string;
9958
9966
  }> | undefined;
9959
- childrenPersistentIds?: string[] | undefined;
9967
+ variantPropertyValues?: Record<string, string> | undefined;
9960
9968
  }[];
9961
9969
  }>;
9962
9970
  type DTOFigmaComponentListResponse = z.infer<typeof DTOFigmaComponentListResponse>;
package/dist/index.js CHANGED
@@ -689,7 +689,8 @@ var ComponentElementData = _zod.z.object({
689
689
  })
690
690
  }).optional(),
691
691
  parentComponentPersistentId: nullishToOptional(_zod.z.string()),
692
- componentPropertyDefinitions: nullishToOptional(FigmaComponentPropertyMap)
692
+ componentPropertyDefinitions: nullishToOptional(FigmaComponentPropertyMap),
693
+ variantPropertyValues: nullishToOptional(_zod.z.record(_zod.z.string()))
693
694
  })
694
695
  });
695
696
  var SupernovaException = class _SupernovaException extends Error {
@@ -2740,6 +2741,7 @@ var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart
2740
2741
  origin: FigmaComponentOrigin.optional(),
2741
2742
  thumbnail: FigmaComponentAsset,
2742
2743
  componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
2744
+ variantPropertyValues: _zod.z.record(_zod.z.string()).optional(),
2743
2745
  svg: FigmaComponentAsset.optional(),
2744
2746
  isAsset: _zod.z.boolean(),
2745
2747
  parentComponentPersistentId: nullishToOptional(_zod.z.string())
@@ -3245,7 +3247,8 @@ var ImageImportModel = _zod.z.union([UrlImageImportModel, FigmaRenderImportModel
3245
3247
  var FigmaComponentImportModelPart = _zod.z.object({
3246
3248
  thumbnail: ImageImportModel,
3247
3249
  parentComponentId: _zod.z.string().optional(),
3248
- componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
3250
+ componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
3251
+ variantPropertyValues: _zod.z.record(_zod.z.string()).optional()
3249
3252
  });
3250
3253
  var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
3251
3254
  isAsset: _zod.z.boolean(),
@@ -5702,8 +5705,9 @@ var DTOFigmaComponent = _zod.z.object({
5702
5705
  meta: ObjectMeta,
5703
5706
  originComponent: FigmaComponentOrigin.optional(),
5704
5707
  parentComponentPersistentId: _zod.z.string().optional(),
5708
+ childrenPersistentIds: _zod.z.string().array().optional(),
5705
5709
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
5706
- childrenPersistentIds: _zod.z.string().array().optional()
5710
+ variantPropertyValues: _zod.z.record(_zod.z.string()).optional()
5707
5711
  });
5708
5712
  var DTOFigmaComponentListResponse = _zod.z.object({
5709
5713
  components: DTOFigmaComponent.array()