@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.mjs CHANGED
@@ -95,8 +95,8 @@ import { z as z89 } from "zod";
95
95
  import { z as z90 } from "zod";
96
96
  import { z as z92 } from "zod";
97
97
  import { z as z91 } from "zod";
98
- import { z as z93 } from "zod";
99
98
  import { z as z94 } from "zod";
99
+ import { z as z93 } from "zod";
100
100
  import { z as z95 } from "zod";
101
101
  import { z as z96 } from "zod";
102
102
  import { z as z97 } from "zod";
@@ -884,6 +884,7 @@ var PageBlockImageType = z33.enum(["Upload", "Asset", "FigmaFrame"]);
884
884
  var PageBlockImageAlignment = z33.enum(["Left", "Center", "Stretch"]);
885
885
  var PageBlockTableCellAlignment = z33.enum(["Left", "Center", "Right"]);
886
886
  var PageBlockPreviewContainerSize = z33.enum(["Centered", "NaturalHeight"]);
887
+ var PageBlockThemeDisplayMode = z33.enum(["Split", "Override"]);
887
888
  var PageBlockAppearanceV2 = z33.object({
888
889
  itemBackgroundColor: ColorValue.optional(),
889
890
  numberOfColumns: z33.number().optional()
@@ -956,6 +957,7 @@ var PageBlockItemSandboxValue = z33.object({
956
957
  showCode: z33.boolean().optional(),
957
958
  backgroundColor: z33.string().optional(),
958
959
  alignPreview: z33.enum(["Left", "Center"]).optional(),
960
+ previewHeight: z33.number().optional(),
959
961
  value: z33.string()
960
962
  });
961
963
  var PageBlockItemColorValue = z33.record(z33.any());
@@ -1014,11 +1016,14 @@ var PageBlockItemTextValue = z33.object({
1014
1016
  var PageBlockItemTokenValue = z33.object({
1015
1017
  selectedPropertyIds: z33.array(z33.string()).optional(),
1016
1018
  selectedThemeIds: z33.array(z33.string()).optional(),
1017
- themeDisplayMode: z33.enum(["Split", "Override"]).optional(),
1019
+ themeDisplayMode: PageBlockThemeDisplayMode.optional(),
1018
1020
  value: z33.array(
1019
1021
  z33.object({
1020
1022
  entityId: z33.string(),
1021
- entityType: z33.enum(["Token", "TokenGroup"])
1023
+ entityType: z33.enum(["Token", "TokenGroup"]),
1024
+ entityMeta: z33.object({
1025
+ showNestedGroups: z33.boolean().optional()
1026
+ }).optional()
1022
1027
  })
1023
1028
  )
1024
1029
  });
@@ -2054,78 +2059,79 @@ var UserInvite = z92.object({
2054
2059
  role: WorkspaceRoleSchema
2055
2060
  });
2056
2061
  var UserInvites = z92.array(UserInvite).max(MAX_MEMBERS_COUNT);
2057
- var WorkspaceContext = z93.object({
2058
- workspaceId: z93.string(),
2062
+ var WorkspaceIpWhitelistEntry = z93.object({
2063
+ isEnabled: z93.boolean(),
2064
+ name: z93.string(),
2065
+ range: z93.string()
2066
+ });
2067
+ var WorkspaceIpSettings = z93.object({
2068
+ isEnabledForCloud: z93.boolean(),
2069
+ isEnabledForDocs: z93.boolean(),
2070
+ entries: z93.array(WorkspaceIpWhitelistEntry)
2071
+ }).nullish();
2072
+ var WorkspaceProfile = z93.object({
2073
+ name: z93.string(),
2074
+ handle: z93.string(),
2075
+ color: z93.string(),
2076
+ avatar: z93.string().optional(),
2077
+ billingDetails: BillingDetails.optional()
2078
+ });
2079
+ var Workspace = z93.object({
2080
+ id: z93.string(),
2081
+ profile: WorkspaceProfile,
2082
+ subscription: Subscription,
2083
+ ipWhitelist: WorkspaceIpSettings,
2084
+ sso: SsoProvider.nullish(),
2085
+ npmRegistrySettings: z93.unknown().optional(),
2086
+ designSystems: z93.array(DesignSystem).nullish()
2087
+ });
2088
+ var WorkspaceWithDesignSystems = z93.object({
2089
+ workspace: Workspace,
2090
+ designSystems: z93.array(DesignSystem)
2091
+ });
2092
+ var WorkspaceContext = z94.object({
2093
+ workspaceId: z94.string(),
2059
2094
  product: ProductCodeSchema,
2060
- publicDesignSystem: z93.boolean().optional()
2095
+ ipWhitelist: WorkspaceIpSettings,
2096
+ publicDesignSystem: z94.boolean().optional()
2061
2097
  });
2062
2098
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
2063
2099
  var WORKSPACE_NAME_MIN_LENGTH = 2;
2064
2100
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2065
2101
  var HANDLE_MIN_LENGTH = 2;
2066
2102
  var HANDLE_MAX_LENGTH = 64;
2067
- var CreateWorkspaceInput = z94.object({
2068
- name: z94.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2103
+ var CreateWorkspaceInput = z95.object({
2104
+ name: z95.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2069
2105
  product: ProductCodeSchema,
2070
- priceId: z94.string(),
2071
- billingEmail: z94.string().email().optional(),
2072
- handle: z94.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2106
+ priceId: z95.string(),
2107
+ billingEmail: z95.string().email().optional(),
2108
+ handle: z95.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2073
2109
  invites: UserInvites.optional(),
2074
- promoCode: z94.string().optional()
2075
- });
2076
- var WorkspaceInvitation = z95.object({
2077
- id: z95.string(),
2078
- email: z95.string().email(),
2079
- createdAt: z95.date(),
2080
- resentAt: z95.date().nullish(),
2081
- role: z95.nativeEnum(WorkspaceRole),
2082
- workspaceId: z95.string(),
2083
- invitedBy: z95.string()
2084
- });
2085
- var WorkspaceMembership = z96.object({
2110
+ promoCode: z95.string().optional()
2111
+ });
2112
+ var WorkspaceInvitation = z96.object({
2086
2113
  id: z96.string(),
2087
- userId: z96.string(),
2114
+ email: z96.string().email(),
2115
+ createdAt: z96.date(),
2116
+ resentAt: z96.date().nullish(),
2117
+ role: z96.nativeEnum(WorkspaceRole),
2088
2118
  workspaceId: z96.string(),
2089
- workspaceRole: z96.nativeEnum(WorkspaceRole)
2119
+ invitedBy: z96.string()
2090
2120
  });
2091
- var UpdateMembershipRolesInput = z96.object({
2092
- members: z96.array(
2093
- z96.object({
2094
- userId: z96.string(),
2095
- role: z96.nativeEnum(WorkspaceRole)
2121
+ var WorkspaceMembership = z97.object({
2122
+ id: z97.string(),
2123
+ userId: z97.string(),
2124
+ workspaceId: z97.string(),
2125
+ workspaceRole: z97.nativeEnum(WorkspaceRole)
2126
+ });
2127
+ var UpdateMembershipRolesInput = z97.object({
2128
+ members: z97.array(
2129
+ z97.object({
2130
+ userId: z97.string(),
2131
+ role: z97.nativeEnum(WorkspaceRole)
2096
2132
  })
2097
2133
  )
2098
2134
  });
2099
- var WorkspaceIpWhitelistEntry = z97.object({
2100
- isEnabled: z97.boolean(),
2101
- name: z97.string(),
2102
- range: z97.string()
2103
- });
2104
- var WorkspaceIpSettings = z97.object({
2105
- isEnabledForCloud: z97.boolean(),
2106
- isEnabledForDocs: z97.boolean(),
2107
- entries: z97.array(WorkspaceIpWhitelistEntry)
2108
- }).nullish();
2109
- var WorkspaceProfile = z97.object({
2110
- name: z97.string(),
2111
- handle: z97.string(),
2112
- color: z97.string(),
2113
- avatar: z97.string().optional(),
2114
- billingDetails: BillingDetails.optional()
2115
- });
2116
- var Workspace = z97.object({
2117
- id: z97.string(),
2118
- profile: WorkspaceProfile,
2119
- subscription: Subscription,
2120
- ipWhitelist: WorkspaceIpSettings,
2121
- sso: SsoProvider.nullish(),
2122
- npmRegistrySettings: z97.unknown().optional(),
2123
- designSystems: z97.array(DesignSystem).nullish()
2124
- });
2125
- var WorkspaceWithDesignSystems = z97.object({
2126
- workspace: Workspace,
2127
- designSystems: z97.array(DesignSystem)
2128
- });
2129
2135
  var DesignSystemSwitcher = z98.object({
2130
2136
  isEnabled: z98.boolean(),
2131
2137
  designSystemIds: z98.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
  }