@supernova-studio/model 0.54.7 → 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.7",
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