@supernova-studio/model 0.2.2 → 0.3.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
@@ -877,24 +877,27 @@ var PageBlockImageAlignment = z33.enum(["Left", "Center", "Stretch"]);
877
877
  var PageBlockAppearanceV2 = z33.object({
878
878
  itemBackgroundColor: ColorValue
879
879
  });
880
- var PageBlockItemUntypedPropertyValue = z33.object({
880
+ var PageBlockItemUntypedValue = z33.object({
881
881
  value: z33.any()
882
882
  }).and(z33.record(z33.any()));
883
- var PageBlockItemRichTextPropertyValue = z33.object({
884
- value: PageBlockText,
885
- calloutType: PageBlockCalloutType.optional()
886
- });
887
- var PageBlockItemEmbedPropertyValue = z33.object({
888
- value: z33.string().optional(),
889
- caption: z33.string().optional(),
890
- height: z33.number().optional()
883
+ var PageBlockLinkV2 = z33.object({
884
+ type: PageBlockLinkType,
885
+ documentationItemId: z33.string().optional(),
886
+ pageHeadingId: z33.string().optional(),
887
+ url: z33.string().optional(),
888
+ openInNewTab: z33.boolean().optional()
891
889
  });
892
- var PageBlockItemMultiRichTextPropertyValue = z33.object({
893
- value: PageBlockText.array()
890
+ var PageBlockItemV2 = z33.object({
891
+ id: z33.string(),
892
+ linksTo: PageBlockLinkV2.optional(),
893
+ props: z33.record(PageBlockItemUntypedValue)
894
894
  });
895
- var PageBlockItemTextPropertyValue = z33.object({
896
- value: z33.string(),
897
- calloutType: PageBlockCalloutType.optional()
895
+ var PageBlockDataV2 = z33.object({
896
+ packageId: z33.string(),
897
+ variantId: z33.string().optional(),
898
+ indentLevel: z33.number(),
899
+ appearance: PageBlockAppearanceV2.optional(),
900
+ items: z33.array(PageBlockItemV2)
898
901
  });
899
902
  var PageBlockItemImageReference = z33.object({
900
903
  type: PageBlockImageType,
@@ -906,30 +909,111 @@ var PageBlockItemImageReference = z33.object({
906
909
  frameId: z33.string()
907
910
  }).optional()
908
911
  });
912
+ var PageBlockItemAssetValue = z33.object({
913
+ selectedPropertyIds: z33.array(z33.string()).optional(),
914
+ showSearch: z33.boolean().optional(),
915
+ previewContainerSize: z33.enum(["Centered", "NaturalHeight"]).optional(),
916
+ backgroundColor: z33.string().optional(),
917
+ value: z33.array(
918
+ z33.object({
919
+ entityId: z33.string(),
920
+ entityType: z33.enum(["Asset", "AssetGroup"])
921
+ })
922
+ )
923
+ });
924
+ var PageBlockItemAssetPropertyValue = z33.object({
925
+ value: z33.array(z33.string())
926
+ });
927
+ var PageBlockItemBooleanValue = z33.object({
928
+ value: z33.boolean()
929
+ });
930
+ var PageBlockItemCodeValue = z33.object({
931
+ format: PageBlockCodeLanguage.optional(),
932
+ caption: z33.string().optional(),
933
+ value: z33.string()
934
+ });
935
+ var PageBlockItemSandboxValue = z33.object({
936
+ showCode: z33.boolean().optional(),
937
+ backgroundColor: z33.string().optional(),
938
+ alignPreview: z33.enum(["Left", "Center"]).optional(),
939
+ value: z33.string()
940
+ });
941
+ var PageBlockItemColorValue = z33.record(z33.any());
942
+ var PageBlockItemComponentValue = z33.object({
943
+ selectedPropertyIds: z33.array(z33.string()).optional(),
944
+ value: z33.array(
945
+ z33.object({
946
+ entityId: z33.string(),
947
+ entityType: z33.enum(["Component", "ComponentGroup"])
948
+ })
949
+ )
950
+ });
951
+ var PageBlockItemComponentPropertyValue = z33.object({
952
+ value: z33.string()
953
+ });
954
+ var PageBlockItemDividerValue = z33.object({});
955
+ var PageBlockItemEmbedValue = z33.object({
956
+ value: z33.string().optional(),
957
+ caption: z33.string().optional(),
958
+ height: z33.number().optional()
959
+ });
909
960
  var PageBlockItemImageValue = z33.object({
910
961
  alt: z33.string().optional(),
911
962
  caption: z33.string().optional(),
912
963
  alignment: PageBlockImageAlignment.optional(),
913
964
  value: PageBlockItemImageReference.optional()
914
965
  });
915
- var PageBlockLinkV2 = z33.object({
916
- type: PageBlockLinkType,
917
- documentationItemId: z33.string().optional(),
918
- pageHeadingId: z33.string().optional(),
919
- url: z33.string().optional(),
920
- openInNewTab: z33.boolean().optional()
966
+ var PageBlockItemMarkdownValue = z33.object({
967
+ value: z33.string()
921
968
  });
922
- var PageBlockItemV2 = z33.object({
923
- id: z33.string(),
924
- linksTo: PageBlockLinkV2.optional(),
925
- props: z33.record(PageBlockItemUntypedPropertyValue)
969
+ var PageBlockItemMultiRichTextValue = z33.object({
970
+ value: PageBlockText.array()
926
971
  });
927
- var PageBlockDataV2 = z33.object({
928
- packageId: z33.string(),
929
- variantId: z33.string().optional(),
930
- indentLevel: z33.number(),
931
- appearance: PageBlockAppearanceV2.optional(),
932
- items: z33.array(PageBlockItemV2)
972
+ var PageBlockItemMultiSelectValue = z33.object({
973
+ value: z33.array(z33.string())
974
+ });
975
+ var PageBlockItemNumberValue = z33.object({
976
+ value: z33.number()
977
+ });
978
+ var PageBlockItemRichTextValue = z33.object({
979
+ value: PageBlockText,
980
+ calloutType: PageBlockCalloutType.optional()
981
+ });
982
+ var PageBlockItemSingleSelectValue = z33.object({
983
+ value: z33.string()
984
+ });
985
+ var PageBlockItemStorybookValue = z33.object({
986
+ caption: z33.string().optional(),
987
+ height: z33.number().optional(),
988
+ showAddons: z33.boolean().optional(),
989
+ value: z33.string()
990
+ });
991
+ var PageBlockItemTableValue = z33.object({
992
+ value: z33.any()
993
+ });
994
+ var PageBlockItemTextValue = z33.object({
995
+ value: z33.string()
996
+ });
997
+ var PageBlockItemTokenValue = z33.object({
998
+ selectedPropertyIds: z33.array(z33.string()).optional(),
999
+ selectedThemeIds: z33.array(z33.string()).optional(),
1000
+ value: z33.array(
1001
+ z33.object({
1002
+ entityId: z33.string(),
1003
+ entityType: z33.enum(["Token", "TokenGroup"])
1004
+ })
1005
+ )
1006
+ });
1007
+ var PageBlockItemTokenPropertyValue = z33.object({
1008
+ selectedPropertyIds: z33.array(z33.string()).optional(),
1009
+ selectedThemeIds: z33.array(z33.string()).optional(),
1010
+ value: z33.array(z33.string())
1011
+ });
1012
+ var PageBlockItemTokenTypeValue = z33.object({
1013
+ value: z33.array(DesignTokenType)
1014
+ });
1015
+ var PageBlockItemUrlValue = z33.object({
1016
+ value: z33.string()
933
1017
  });
934
1018
 
935
1019
  // src/dsm/elements/data/documentation-page-v1.ts
@@ -2950,13 +3034,32 @@ export {
2950
3034
  PageBlockFrameOrigin,
2951
3035
  PageBlockImageAlignment,
2952
3036
  PageBlockImageType,
2953
- PageBlockItemEmbedPropertyValue,
3037
+ PageBlockItemAssetPropertyValue,
3038
+ PageBlockItemAssetValue,
3039
+ PageBlockItemBooleanValue,
3040
+ PageBlockItemCodeValue,
3041
+ PageBlockItemColorValue,
3042
+ PageBlockItemComponentPropertyValue,
3043
+ PageBlockItemComponentValue,
3044
+ PageBlockItemDividerValue,
3045
+ PageBlockItemEmbedValue,
2954
3046
  PageBlockItemImageReference,
2955
3047
  PageBlockItemImageValue,
2956
- PageBlockItemMultiRichTextPropertyValue,
2957
- PageBlockItemRichTextPropertyValue,
2958
- PageBlockItemTextPropertyValue,
2959
- PageBlockItemUntypedPropertyValue,
3048
+ PageBlockItemMarkdownValue,
3049
+ PageBlockItemMultiRichTextValue,
3050
+ PageBlockItemMultiSelectValue,
3051
+ PageBlockItemNumberValue,
3052
+ PageBlockItemRichTextValue,
3053
+ PageBlockItemSandboxValue,
3054
+ PageBlockItemSingleSelectValue,
3055
+ PageBlockItemStorybookValue,
3056
+ PageBlockItemTableValue,
3057
+ PageBlockItemTextValue,
3058
+ PageBlockItemTokenPropertyValue,
3059
+ PageBlockItemTokenTypeValue,
3060
+ PageBlockItemTokenValue,
3061
+ PageBlockItemUntypedValue,
3062
+ PageBlockItemUrlValue,
2960
3063
  PageBlockItemV2,
2961
3064
  PageBlockLinkPreview,
2962
3065
  PageBlockLinkType,