@supernova-studio/model 0.54.5 → 0.54.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.54.5",
3
+ "version": "0.54.7",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -264,9 +264,15 @@ export const PageBlockItemTextValue = z.object({
264
264
  value: z.string(),
265
265
  });
266
266
 
267
+ export const PageBlockItemSwatch = z.object({
268
+ id: z.string(),
269
+ selectedThemeIds: z.string().array(),
270
+ });
271
+
267
272
  export const PageBlockItemTokenValue = z.object({
268
273
  selectedPropertyIds: z.array(z.string()).optional(),
269
274
  selectedThemeIds: z.array(z.string()).optional(),
275
+ swatches: z.array(PageBlockItemSwatch).optional(),
270
276
  themeDisplayMode: PageBlockThemeDisplayMode.optional(),
271
277
  value: z
272
278
  .array(
@@ -299,6 +305,7 @@ export const PageBlockItemUrlValue = z.object({
299
305
 
300
306
  export type PageBlockItemAssetValue = z.infer<typeof PageBlockItemAssetValue>;
301
307
  export type PageBlockItemAssetPropertyValue = z.infer<typeof PageBlockItemAssetPropertyValue>;
308
+ export type PageBlockItemFigmaComponentValue = z.infer<typeof PageBlockItemFigmaComponentValue>;
302
309
  export type PageBlockItemBooleanValue = z.infer<typeof PageBlockItemBooleanValue>;
303
310
  export type PageBlockItemCodeValue = z.infer<typeof PageBlockItemCodeValue>;
304
311
  export type PageBlockItemSandboxValue = z.infer<typeof PageBlockItemSandboxValue>;
@@ -317,6 +324,7 @@ export type PageBlockItemRichTextValue = z.infer<typeof PageBlockItemRichTextVal
317
324
  export type PageBlockItemSingleSelectValue = z.infer<typeof PageBlockItemSingleSelectValue>;
318
325
  export type PageBlockItemStorybookValue = z.infer<typeof PageBlockItemStorybookValue>;
319
326
  export type PageBlockItemTextValue = z.infer<typeof PageBlockItemTextValue>;
327
+ export type PageBlockItemSwatch = z.infer<typeof PageBlockItemSwatch>;
320
328
  export type PageBlockItemTokenValue = z.infer<typeof PageBlockItemTokenValue>;
321
329
  export type PageBlockItemTokenPropertyValue = z.infer<typeof PageBlockItemTokenPropertyValue>;
322
330
  export type PageBlockItemTokenTypeValue = z.infer<typeof PageBlockItemTokenTypeValue>;
package/src/dsm/index.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./documentation";
5
5
  export * from "./element-snapshots";
6
6
  export * from "./elements";
7
7
  export * from "./import";
8
+ export * from "./membership";
8
9
  export * from "./properties";
9
10
  export * from "./views";
10
11
  export * from "./brand";
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+
3
+ export const DesignSystemMembership = z.object({
4
+ id: z.string(),
5
+ userId: z.string(),
6
+ designSystemId: z.string(),
7
+ workspaceMembershipId: z.string(),
8
+ });
9
+
10
+ export type DesignSystemMembership = z.infer<typeof DesignSystemMembership>;
@@ -0,0 +1 @@
1
+ export * from "./design-system-membership";