@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/dist/index.d.mts +373 -5
- package/dist/index.d.ts +373 -5
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v1.ts +7 -0
package/package.json
CHANGED
|
@@ -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
|