@supernova-studio/model 0.57.20 → 0.58.1

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.57.20",
3
+ "version": "0.58.1",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,6 +13,8 @@ export const PageBlockImageAlignment = z.enum(["Left", "Center", "Stretch"]);
13
13
  export const PageBlockTableCellAlignment = z.enum(["Left", "Center", "Right"]);
14
14
  export const PageBlockPreviewContainerSize = z.enum(["Centered", "NaturalHeight"]);
15
15
  export const PageBlockThemeDisplayMode = z.enum(["Split", "Override"]);
16
+ export const PageBlockTokenNameFormat = z.enum(["Name", "GroupAndName", "FullPath", "CustomProperty"]);
17
+ export const PageBlockTokenValueFormat = z.enum(["ResolvedValue", "ReferenceName", "NoValue"]);
16
18
 
17
19
  export type PageBlockLinkType = z.infer<typeof PageBlockLinkType>;
18
20
  export type PageBlockImageType = z.infer<typeof PageBlockImageType>;
@@ -20,6 +22,8 @@ export type PageBlockImageAlignment = z.infer<typeof PageBlockImageAlignment>;
20
22
  export type PageBlockTableCellAlignment = z.infer<typeof PageBlockTableCellAlignment>;
21
23
  export type PageBlockPreviewContainerSize = z.infer<typeof PageBlockPreviewContainerSize>;
22
24
  export type PageBlockThemeDisplayMode = z.infer<typeof PageBlockThemeDisplayMode>;
25
+ export type PageBlockTokenNameFormat = z.infer<typeof PageBlockTokenNameFormat>;
26
+ export type PageBlockTokenValueFormat = z.infer<typeof PageBlockTokenValueFormat>;
23
27
 
24
28
  //
25
29
  // Definitions - Block
@@ -120,7 +124,9 @@ export type PageBlockDataV2 = z.infer<typeof PageBlockDataV2>;
120
124
  export const PageBlockItemAssetValue = z.object({
121
125
  selectedPropertyIds: z.array(z.string()).optional(),
122
126
  showSearch: z.boolean().optional(),
127
+ showAssetDescription: z.boolean().optional(),
123
128
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
129
+ previewContainerHeight: z.number().optional(),
124
130
  backgroundColor: PageBlockColorV2.optional(),
125
131
  value: z
126
132
  .array(
@@ -143,6 +149,7 @@ export const PageBlockItemFigmaComponentValue = z.object({
143
149
  showPropertyList: z.boolean().optional(),
144
150
  previewOrderIds: z.array(z.string()).optional(),
145
151
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
152
+ previewContainerHeight: z.number().optional(),
146
153
  backgroundColor: PageBlockColorV2.optional(),
147
154
  value: z
148
155
  .array(
@@ -216,6 +223,7 @@ export const PageBlockItemEmbedValue = z.object({
216
223
  export const PageBlockItemFigmaNodeValue = z.object({
217
224
  showSearch: z.boolean().optional(),
218
225
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
226
+ previewContainerHeight: z.number().optional(),
219
227
  backgroundColor: PageBlockColorV2.optional(),
220
228
  showFrameDetails: z.boolean().optional(),
221
229
  value: z
@@ -232,6 +240,8 @@ export const PageBlockItemImageValue = z.object({
232
240
  alt: z.string().optional(),
233
241
  caption: z.string().optional(),
234
242
  alignment: PageBlockImageAlignment.optional(),
243
+ openLightbox: z.boolean().optional(),
244
+ isBordered: z.boolean().optional(),
235
245
  value: PageBlockImageReference.optional(),
236
246
  });
237
247
 
@@ -281,6 +291,9 @@ export const PageBlockItemTokenValue = z.object({
281
291
  selectedThemeIds: z.array(z.string()).optional(),
282
292
  swatches: z.array(PageBlockItemSwatch).optional(),
283
293
  themeDisplayMode: PageBlockThemeDisplayMode.optional(),
294
+ tokenNameFormat: PageBlockTokenNameFormat.optional(),
295
+ tokenNameCustomPropertyId: z.string().optional(),
296
+ tokenValueFormat: PageBlockTokenValueFormat.optional(),
284
297
  value: z
285
298
  .array(
286
299
  z.object({
@@ -40,10 +40,13 @@ export type ColorTokenInlineData = z.infer<typeof ColorTokenInlineData>;
40
40
  export type ElementPropertyDefinitionOption = z.infer<typeof ElementPropertyDefinitionOption>;
41
41
  export type ElementPropertyDefinition = z.infer<typeof ElementPropertyDefinition>;
42
42
 
43
- export type CreateElementPropertyDefinition = DbCreateInputOmit<ElementPropertyDefinition>;
43
+ export type CreateElementPropertyDefinition = DbCreateInputOmit<ElementPropertyDefinition> & {
44
+ columnWidth?: number;
45
+ };
46
+
44
47
  export type UpdateElementPropertyDefinition = OmitStrict<
45
48
  DbUpdate<ElementPropertyDefinition>,
46
- "designSystemVersionId" | "targetElementType" | "type"
49
+ "designSystemVersionId" | "targetElementType" | "type" | "linkElementType"
47
50
  >;
48
51
 
49
52
  export type ElementPropertyDefinitionDiff = {