@supernova-studio/model 0.7.0 → 0.8.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.mjs CHANGED
@@ -528,11 +528,11 @@ var ShallowDesignElement = z27.object({
528
528
  brandPersistentId: z27.string().optional(),
529
529
  parentPersistentId: z27.string().optional(),
530
530
  shortPersistentId: z27.string().optional(),
531
+ childType: DesignElementType.optional(),
531
532
  sortOrder: z27.number()
532
533
  });
533
534
  var DesignElement = ShallowDesignElement.extend({
534
535
  meta: ObjectMeta,
535
- childType: DesignElementType.optional(),
536
536
  slug: z27.string().optional(),
537
537
  userSlug: z27.string().optional(),
538
538
  createdAt: z27.date(),
@@ -541,6 +541,9 @@ var DesignElement = ShallowDesignElement.extend({
541
541
  data: z27.record(z27.any()),
542
542
  origin: z27.record(z27.any()).optional()
543
543
  });
544
+ var HierarchicalElements = DesignTokenType.or(
545
+ z27.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
546
+ );
544
547
 
545
548
  // src/dsm/properties/property-definition.ts
546
549
  import { z as z28 } from "zod";
@@ -771,6 +774,11 @@ var PageBlockCustomBlockPropertyValue = z32.object({
771
774
  // .or(PageBlockCustomBlockPropertyImageValue),
772
775
  });
773
776
  var PageBlockFigmaFrameProperties = z32.object({
777
+ color: nullishToOptional(
778
+ z32.object({
779
+ value: z32.string()
780
+ })
781
+ ),
774
782
  alignment: PageBlockTilesAlignment,
775
783
  layout: PageBlockTilesLayout,
776
784
  backgroundColor: nullishToOptional(ColorTokenInlineData),
@@ -874,6 +882,7 @@ var PageBlockLinkType = z33.enum(["DocumentationItem", "PageHeading", "Url"]);
874
882
  var PageBlockImageType = z33.enum(["Upload", "Asset", "FigmaFrame"]);
875
883
  var PageBlockImageAlignment = z33.enum(["Left", "Center", "Stretch"]);
876
884
  var PageBlockTableCellAlignment = z33.enum(["Left", "Center", "Right"]);
885
+ var PageBlockPreviewContainerSize = z33.enum(["Centered", "NaturalHeight"]);
877
886
  var PageBlockAppearanceV2 = z33.object({
878
887
  itemBackgroundColor: ColorValue.optional(),
879
888
  numberOfColumns: z33.number().optional()
@@ -907,18 +916,27 @@ var PageBlockItemImageReference = z33.object({
907
916
  size: Size.optional(),
908
917
  figmaFile: z33.object({
909
918
  sourceId: z33.string(),
910
- frameId: z33.string()
919
+ frameId: z33.string(),
920
+ frameReferenceId: z33.string(),
921
+ origin: z33.object({
922
+ title: z33.string().optional(),
923
+ sourceFileName: z33.string().optional()
924
+ })
911
925
  }).optional()
912
926
  });
913
927
  var PageBlockItemAssetValue = z33.object({
914
928
  selectedPropertyIds: z33.array(z33.string()).optional(),
915
929
  showSearch: z33.boolean().optional(),
916
- previewContainerSize: z33.enum(["Centered", "NaturalHeight"]).optional(),
930
+ previewContainerSize: PageBlockPreviewContainerSize.optional(),
917
931
  backgroundColor: z33.string().optional(),
918
932
  value: z33.array(
919
933
  z33.object({
920
934
  entityId: z33.string(),
921
- entityType: z33.enum(["Asset", "AssetGroup"])
935
+ entityType: z33.enum(["Asset", "AssetGroup"]),
936
+ entityMeta: z33.object({
937
+ title: z33.string().optional(),
938
+ description: z33.string().optional()
939
+ }).optional()
922
940
  })
923
941
  )
924
942
  });
@@ -1024,11 +1042,12 @@ var PageBlockItemTableMultiRichTextNode = z33.object({
1024
1042
  });
1025
1043
  var PageBlockItemTableImageNode = z33.object({
1026
1044
  type: z33.literal("Image"),
1045
+ caption: PageBlockItemImageValue.shape.caption,
1027
1046
  value: PageBlockItemImageValue.shape.value
1028
1047
  });
1029
1048
  var PageBlockItemTableNode = z33.discriminatedUnion("type", [
1030
1049
  PageBlockItemTableRichTextNode,
1031
- PageBlockItemTableMultiRichTextNode,
1050
+ // PageBlockItemTableMultiRichTextNode,
1032
1051
  PageBlockItemTableImageNode
1033
1052
  ]);
1034
1053
  var PageBlockItemTableCell = z33.object({
@@ -3052,6 +3071,7 @@ export {
3052
3071
  GradientType,
3053
3072
  HANDLE_MAX_LENGTH,
3054
3073
  HANDLE_MIN_LENGTH,
3074
+ HierarchicalElements,
3055
3075
  ImageImportModel,
3056
3076
  ImageImportModelType,
3057
3077
  ImportFunctionInput,
@@ -3174,6 +3194,7 @@ export {
3174
3194
  PageBlockLinkPreview,
3175
3195
  PageBlockLinkType,
3176
3196
  PageBlockLinkV2,
3197
+ PageBlockPreviewContainerSize,
3177
3198
  PageBlockRenderCodeProperties,
3178
3199
  PageBlockShortcut,
3179
3200
  PageBlockTableCellAlignment,