@supernova-studio/model 0.54.7 → 0.54.9

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.9",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -38,6 +38,7 @@ export const PageBlockTypeV1 = z.enum([
38
38
  "Custom",
39
39
  "FigmaFrames",
40
40
  "ComponentAssets",
41
+ "ComponentAssetGroup",
41
42
  "RenderCode",
42
43
  "Tabs",
43
44
  "TabItem",
@@ -100,6 +101,11 @@ export const PageBlockTheme = z.object({
100
101
  type: PageBlockThemeType,
101
102
  });
102
103
 
104
+ export const PageBlockSwatch = z.object({
105
+ id: z.string(),
106
+ selectedThemeIds: z.string().array(),
107
+ });
108
+
103
109
  export const PageBlockUrlPreview = z.object({
104
110
  title: nullishToOptional(z.string()),
105
111
  description: nullishToOptional(z.string()),
@@ -265,6 +271,7 @@ export type PageBlockFrameOrigin = z.infer<typeof PageBlockFrameOrigin>;
265
271
  export type PageBlockAsset = z.infer<typeof PageBlockAsset>;
266
272
  export type PageBlockTableColumn = z.infer<typeof PageBlockTableColumn>;
267
273
  export type PageBlockTheme = z.infer<typeof PageBlockTheme>;
274
+ export type PageBlockSwatch = z.infer<typeof PageBlockSwatch>;
268
275
  export type PageBlockShortcut = z.infer<typeof PageBlockShortcut>;
269
276
  export type PageBlockCustomBlockPropertyValue = z.infer<typeof PageBlockCustomBlockPropertyValue>;
270
277
  export type PageBlockCustomBlockPropertyImageValue = z.infer<typeof PageBlockCustomBlockPropertyImageValue>;
@@ -332,6 +339,7 @@ export const PageBlockBaseV1 = z.object({
332
339
 
333
340
  // Token spreadsheet
334
341
  theme: nullishToOptional(PageBlockTheme),
342
+ swatches: nullishToOptional(PageBlockSwatch.array()),
335
343
  blacklistedElementProperties: nullishToOptional(z.array(z.string())),
336
344
 
337
345
  // Arbitrary
@@ -51,6 +51,7 @@ export const PageBlockAssetEntityMeta = z.object({
51
51
  title: z.string().optional(),
52
52
  description: z.string().optional(),
53
53
  backgroundColor: PageBlockColorV2.optional(),
54
+ showNestedGroups: z.boolean().optional(),
54
55
  });
55
56
 
56
57
  export const PageBlockFigmaComponentEntityMeta = z.object({