@supernova-studio/client 0.8.0 → 0.9.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.js CHANGED
@@ -884,6 +884,7 @@ var PageBlockImageType = _zod.z.enum(["Upload", "Asset", "FigmaFrame"]);
884
884
  var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
885
885
  var PageBlockTableCellAlignment = _zod.z.enum(["Left", "Center", "Right"]);
886
886
  var PageBlockPreviewContainerSize = _zod.z.enum(["Centered", "NaturalHeight"]);
887
+ var PageBlockThemeDisplayMode = _zod.z.enum(["Split", "Override"]);
887
888
  var PageBlockAppearanceV2 = _zod.z.object({
888
889
  itemBackgroundColor: ColorValue.optional(),
889
890
  numberOfColumns: _zod.z.number().optional()
@@ -956,6 +957,7 @@ var PageBlockItemSandboxValue = _zod.z.object({
956
957
  showCode: _zod.z.boolean().optional(),
957
958
  backgroundColor: _zod.z.string().optional(),
958
959
  alignPreview: _zod.z.enum(["Left", "Center"]).optional(),
960
+ previewHeight: _zod.z.number().optional(),
959
961
  value: _zod.z.string()
960
962
  });
961
963
  var PageBlockItemColorValue = _zod.z.record(_zod.z.any());
@@ -1014,11 +1016,14 @@ var PageBlockItemTextValue = _zod.z.object({
1014
1016
  var PageBlockItemTokenValue = _zod.z.object({
1015
1017
  selectedPropertyIds: _zod.z.array(_zod.z.string()).optional(),
1016
1018
  selectedThemeIds: _zod.z.array(_zod.z.string()).optional(),
1017
- themeDisplayMode: _zod.z.enum(["Split", "Override"]).optional(),
1019
+ themeDisplayMode: PageBlockThemeDisplayMode.optional(),
1018
1020
  value: _zod.z.array(
1019
1021
  _zod.z.object({
1020
1022
  entityId: _zod.z.string(),
1021
- entityType: _zod.z.enum(["Token", "TokenGroup"])
1023
+ entityType: _zod.z.enum(["Token", "TokenGroup"]),
1024
+ entityMeta: _zod.z.object({
1025
+ showNestedGroups: _zod.z.boolean().optional()
1026
+ }).optional()
1022
1027
  })
1023
1028
  )
1024
1029
  });
@@ -2054,9 +2059,40 @@ var UserInvite = _zod.z.object({
2054
2059
  role: WorkspaceRoleSchema
2055
2060
  });
2056
2061
  var UserInvites = _zod.z.array(UserInvite).max(MAX_MEMBERS_COUNT);
2062
+ var WorkspaceIpWhitelistEntry = _zod.z.object({
2063
+ isEnabled: _zod.z.boolean(),
2064
+ name: _zod.z.string(),
2065
+ range: _zod.z.string()
2066
+ });
2067
+ var WorkspaceIpSettings = _zod.z.object({
2068
+ isEnabledForCloud: _zod.z.boolean(),
2069
+ isEnabledForDocs: _zod.z.boolean(),
2070
+ entries: _zod.z.array(WorkspaceIpWhitelistEntry)
2071
+ }).nullish();
2072
+ var WorkspaceProfile = _zod.z.object({
2073
+ name: _zod.z.string(),
2074
+ handle: _zod.z.string(),
2075
+ color: _zod.z.string(),
2076
+ avatar: _zod.z.string().optional(),
2077
+ billingDetails: BillingDetails.optional()
2078
+ });
2079
+ var Workspace = _zod.z.object({
2080
+ id: _zod.z.string(),
2081
+ profile: WorkspaceProfile,
2082
+ subscription: Subscription,
2083
+ ipWhitelist: WorkspaceIpSettings,
2084
+ sso: SsoProvider.nullish(),
2085
+ npmRegistrySettings: _zod.z.unknown().optional(),
2086
+ designSystems: _zod.z.array(DesignSystem).nullish()
2087
+ });
2088
+ var WorkspaceWithDesignSystems = _zod.z.object({
2089
+ workspace: Workspace,
2090
+ designSystems: _zod.z.array(DesignSystem)
2091
+ });
2057
2092
  var WorkspaceContext = _zod.z.object({
2058
2093
  workspaceId: _zod.z.string(),
2059
2094
  product: ProductCodeSchema,
2095
+ ipWhitelist: WorkspaceIpSettings,
2060
2096
  publicDesignSystem: _zod.z.boolean().optional()
2061
2097
  });
2062
2098
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2096,36 +2132,6 @@ var UpdateMembershipRolesInput = _zod.z.object({
2096
2132
  })
2097
2133
  )
2098
2134
  });
2099
- var WorkspaceIpWhitelistEntry = _zod.z.object({
2100
- isEnabled: _zod.z.boolean(),
2101
- name: _zod.z.string(),
2102
- range: _zod.z.string()
2103
- });
2104
- var WorkspaceIpSettings = _zod.z.object({
2105
- isEnabledForCloud: _zod.z.boolean(),
2106
- isEnabledForDocs: _zod.z.boolean(),
2107
- entries: _zod.z.array(WorkspaceIpWhitelistEntry)
2108
- }).nullish();
2109
- var WorkspaceProfile = _zod.z.object({
2110
- name: _zod.z.string(),
2111
- handle: _zod.z.string(),
2112
- color: _zod.z.string(),
2113
- avatar: _zod.z.string().optional(),
2114
- billingDetails: BillingDetails.optional()
2115
- });
2116
- var Workspace = _zod.z.object({
2117
- id: _zod.z.string(),
2118
- profile: WorkspaceProfile,
2119
- subscription: Subscription,
2120
- ipWhitelist: WorkspaceIpSettings,
2121
- sso: SsoProvider.nullish(),
2122
- npmRegistrySettings: _zod.z.unknown().optional(),
2123
- designSystems: _zod.z.array(DesignSystem).nullish()
2124
- });
2125
- var WorkspaceWithDesignSystems = _zod.z.object({
2126
- workspace: Workspace,
2127
- designSystems: _zod.z.array(DesignSystem)
2128
- });
2129
2135
  var DesignSystemSwitcher = _zod.z.object({
2130
2136
  isEnabled: _zod.z.boolean(),
2131
2137
  designSystemIds: _zod.z.string()
@@ -4848,7 +4854,7 @@ var blocks = [
4848
4854
  {
4849
4855
  id: "text",
4850
4856
  name: "Text",
4851
- type: "RichText",
4857
+ type: "MultiRichText",
4852
4858
  options: {
4853
4859
  multiRichTextStyle: "OL"
4854
4860
  }
@@ -4909,7 +4915,7 @@ var blocks = [
4909
4915
  {
4910
4916
  id: "text",
4911
4917
  name: "Text",
4912
- type: "RichText",
4918
+ type: "MultiRichText",
4913
4919
  options: {
4914
4920
  multiRichTextStyle: "UL"
4915
4921
  }