@supernova-studio/model 0.54.6 → 0.54.8

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.6",
3
+ "version": "0.54.8",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -100,6 +100,11 @@ export const PageBlockTheme = z.object({
100
100
  type: PageBlockThemeType,
101
101
  });
102
102
 
103
+ export const PageBlockSwatch = z.object({
104
+ id: z.string(),
105
+ selectedThemeIds: z.string().array(),
106
+ });
107
+
103
108
  export const PageBlockUrlPreview = z.object({
104
109
  title: nullishToOptional(z.string()),
105
110
  description: nullishToOptional(z.string()),
@@ -265,6 +270,7 @@ export type PageBlockFrameOrigin = z.infer<typeof PageBlockFrameOrigin>;
265
270
  export type PageBlockAsset = z.infer<typeof PageBlockAsset>;
266
271
  export type PageBlockTableColumn = z.infer<typeof PageBlockTableColumn>;
267
272
  export type PageBlockTheme = z.infer<typeof PageBlockTheme>;
273
+ export type PageBlockSwatch = z.infer<typeof PageBlockSwatch>;
268
274
  export type PageBlockShortcut = z.infer<typeof PageBlockShortcut>;
269
275
  export type PageBlockCustomBlockPropertyValue = z.infer<typeof PageBlockCustomBlockPropertyValue>;
270
276
  export type PageBlockCustomBlockPropertyImageValue = z.infer<typeof PageBlockCustomBlockPropertyImageValue>;
@@ -332,6 +338,7 @@ export const PageBlockBaseV1 = z.object({
332
338
 
333
339
  // Token spreadsheet
334
340
  theme: nullishToOptional(PageBlockTheme),
341
+ swatches: nullishToOptional(PageBlockSwatch.array()),
335
342
  blacklistedElementProperties: nullishToOptional(z.array(z.string())),
336
343
 
337
344
  // Arbitrary
@@ -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>;