@supernova-studio/model 0.57.19 → 0.58.0
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 +70 -1
- package/dist/index.d.ts +70 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/data-sources/data-source.ts +1 -0
- package/src/dsm/elements/data/documentation-block-v2.ts +13 -0
package/package.json
CHANGED
|
@@ -107,6 +107,7 @@ export const DataSourceUploadRemote = z.object({
|
|
|
107
107
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
108
108
|
warnings: nullishToOptional(ImportWarning.array()),
|
|
109
109
|
isTokenTypeSplitEnabled: z.boolean(),
|
|
110
|
+
isCollectionsMigrationCompleted: z.boolean(),
|
|
110
111
|
});
|
|
111
112
|
|
|
112
113
|
export type DataSourceUploadImportMetadata = z.infer<typeof DataSourceUploadImportMetadata>;
|
|
@@ -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({
|