@supernova-studio/model 0.55.26 → 0.55.28

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
@@ -448,7 +448,8 @@ var Asset = z21.object({
448
448
  properties: AssetProperties.nullish(),
449
449
  state: AssetProcessStatus.optional(),
450
450
  origin: AssetOrigin.optional(),
451
- originKey: z21.string().optional()
451
+ originKey: z21.string().optional(),
452
+ createdByImportJobId: z21.string().optional()
452
453
  });
453
454
  var ResolvedAsset = Asset.extend({
454
455
  url: z21.string()
@@ -606,13 +607,19 @@ var FigmaComponentPropertyBase = z32.object({
606
607
  id: z32.string(),
607
608
  name: z32.string()
608
609
  });
610
+ var FigmaComponentInstancePreview = z32.object({
611
+ componentName: z32.string(),
612
+ componentSetName: z32.string().optional(),
613
+ isRemote: z32.boolean()
614
+ });
609
615
  var FigmaComponentBooleanProperty = FigmaComponentPropertyBase.extend({
610
616
  type: z32.literal(FigmaComponentPropertyType.enum.Boolean),
611
617
  defaultValue: z32.boolean()
612
618
  });
613
619
  var FigmaComponentInstanceSwapProperty = FigmaComponentPropertyBase.extend({
614
620
  type: z32.literal(FigmaComponentPropertyType.enum.InstanceSwap),
615
- defaultValue: z32.string()
621
+ defaultValue: z32.string(),
622
+ defaultValuePreview: FigmaComponentInstancePreview.optional()
616
623
  });
617
624
  var FigmaComponentVariantProperty = FigmaComponentPropertyBase.extend({
618
625
  type: z32.literal(FigmaComponentPropertyType.enum.Variant),
@@ -828,6 +835,12 @@ function areShallowObjectsEqual(lhs, rhs) {
828
835
  }
829
836
  return true;
830
837
  }
838
+ function isNotNullish(value) {
839
+ return !isNullish(value);
840
+ }
841
+ function isNullish(value) {
842
+ return value === null || value === void 0;
843
+ }
831
844
 
832
845
  // src/utils/content-loader-instruction.ts
833
846
  import { z as z34 } from "zod";
@@ -3440,7 +3453,8 @@ var DataSourceUploadRemote = z88.object({
3440
3453
  remoteId: z88.string(),
3441
3454
  remoteSourceType: DataSourceUploadRemoteSource,
3442
3455
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
3443
- warnings: nullishToOptional(ImportWarning.array())
3456
+ warnings: nullishToOptional(ImportWarning.array()),
3457
+ isTokenTypeSplitEnabled: z88.boolean()
3444
3458
  });
3445
3459
  var DataSourceRemote = z88.discriminatedUnion("type", [
3446
3460
  DataSourceFigmaRemote,
@@ -5505,6 +5519,7 @@ export {
5505
5519
  FigmaComponentBooleanProperty,
5506
5520
  FigmaComponentImportModel,
5507
5521
  FigmaComponentImportModelInput,
5522
+ FigmaComponentInstancePreview,
5508
5523
  FigmaComponentInstanceSwapProperty,
5509
5524
  FigmaComponentOrigin,
5510
5525
  FigmaComponentOriginPart,
@@ -5923,6 +5938,8 @@ export {
5923
5938
  isImportedAsset,
5924
5939
  isImportedDesignToken,
5925
5940
  isImportedFigmaComponent,
5941
+ isNotNullish,
5942
+ isNullish,
5926
5943
  isSlugReserved,
5927
5944
  isTokenType,
5928
5945
  joinRepeatingSpans,