@supernova-studio/model 0.55.5 → 0.55.7
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 +1671 -162
- package/dist/index.d.ts +1671 -162
- package/dist/index.js +26 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/documentation/block-definitions/item.ts +5 -0
- package/src/dsm/elements/data/documentation-block-v1.ts +25 -11
- package/src/dsm/elements/data/documentation-block-v2.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1737,7 +1737,9 @@ var PageBlockTypeV1 = z40.enum([
|
|
|
1737
1737
|
"TableRow",
|
|
1738
1738
|
"TableCell",
|
|
1739
1739
|
"Guidelines",
|
|
1740
|
-
"Guideline"
|
|
1740
|
+
"Guideline",
|
|
1741
|
+
"FigmaComponents",
|
|
1742
|
+
"FigmaComponentPropsTable"
|
|
1741
1743
|
]);
|
|
1742
1744
|
var PageBlockCodeLanguage = z40.enum([
|
|
1743
1745
|
"Angular",
|
|
@@ -1841,15 +1843,6 @@ var PageBlockCustomBlockPropertyImageValue = z40.object({
|
|
|
1841
1843
|
var PageBlockCustomBlockPropertyValue = z40.object({
|
|
1842
1844
|
key: z40.string(),
|
|
1843
1845
|
value: z40.any()
|
|
1844
|
-
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
1845
|
-
// e.g. element id 67451 in the dev db
|
|
1846
|
-
// value: z
|
|
1847
|
-
// .boolean()
|
|
1848
|
-
// .or(z.number())
|
|
1849
|
-
// .or(z.string())
|
|
1850
|
-
// .or(ColorTokenData)
|
|
1851
|
-
// .or(TypographyTokenData)
|
|
1852
|
-
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
1853
1846
|
});
|
|
1854
1847
|
var PageBlockFigmaFrameProperties = z40.object({
|
|
1855
1848
|
color: nullishToOptional(
|
|
@@ -1883,6 +1876,17 @@ var PageBlockTableProperties = z40.object({
|
|
|
1883
1876
|
showHeaderColumn: z40.boolean(),
|
|
1884
1877
|
columns: z40.array(PageBlockTableColumn)
|
|
1885
1878
|
});
|
|
1879
|
+
var PageBlockFigmaComponentBlockConfig = z40.object({
|
|
1880
|
+
showComponentName: nullishToOptional(z40.boolean()),
|
|
1881
|
+
showComponentDescription: nullishToOptional(z40.boolean()),
|
|
1882
|
+
showPropertyList: nullishToOptional(z40.boolean()),
|
|
1883
|
+
previewContainerSize: nullishToOptional(z40.enum(["Centered", "NaturalHeight"])),
|
|
1884
|
+
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
1885
|
+
});
|
|
1886
|
+
var PageBlockSelectedFigmaComponent = z40.object({
|
|
1887
|
+
figmaComponentId: z40.string(),
|
|
1888
|
+
selectedComponentProperties: z40.string().array()
|
|
1889
|
+
});
|
|
1886
1890
|
var PageBlockTextSpanAttributeType = z40.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
|
|
1887
1891
|
var PageBlockTextSpanAttribute = z40.object({
|
|
1888
1892
|
type: PageBlockTextSpanAttributeType,
|
|
@@ -1959,6 +1963,10 @@ var PageBlockBaseV1 = z40.object({
|
|
|
1959
1963
|
theme: nullishToOptional(PageBlockTheme),
|
|
1960
1964
|
swatches: nullishToOptional(PageBlockSwatch.array()),
|
|
1961
1965
|
blacklistedElementProperties: nullishToOptional(z40.array(z40.string())),
|
|
1966
|
+
// Figma components
|
|
1967
|
+
figmaComponentsBlockConfig: nullishToOptional(PageBlockFigmaComponentBlockConfig),
|
|
1968
|
+
selectedFigmaComponent: nullishToOptional(PageBlockSelectedFigmaComponent),
|
|
1969
|
+
selectedFigmaComponents: nullishToOptional(PageBlockSelectedFigmaComponent.array()),
|
|
1962
1970
|
// Arbitrary
|
|
1963
1971
|
userMetadata: nullishToOptional(z40.string())
|
|
1964
1972
|
});
|
|
@@ -2248,6 +2256,9 @@ var PageBlockDefinitionComponentOptions = z43.object({
|
|
|
2248
2256
|
renderLayoutAs: z43.enum(["List", "Table"]).optional(),
|
|
2249
2257
|
allowPropertySelection: z43.boolean().optional()
|
|
2250
2258
|
});
|
|
2259
|
+
var PageBlockDefinitionFigmaComponentOptions = z43.object({
|
|
2260
|
+
renderLayoutAs: z43.enum(["Grid", "PropsTable", "Canvas", "Playground"])
|
|
2261
|
+
});
|
|
2251
2262
|
var PageBlockDefinitionProperty = z43.object({
|
|
2252
2263
|
id: z43.string(),
|
|
2253
2264
|
name: z43.string(),
|
|
@@ -2356,7 +2367,7 @@ var PageBlockItemFigmaComponentValue = z44.object({
|
|
|
2356
2367
|
z44.object({
|
|
2357
2368
|
entityId: z44.string(),
|
|
2358
2369
|
entityType: z44.enum(["FigmaComponent"]),
|
|
2359
|
-
|
|
2370
|
+
selectedComponentProperties: z44.string().array().optional()
|
|
2360
2371
|
})
|
|
2361
2372
|
).default([])
|
|
2362
2373
|
});
|
|
@@ -5573,6 +5584,7 @@ export {
|
|
|
5573
5584
|
PageBlockDefinitionBooleanOptions,
|
|
5574
5585
|
PageBlockDefinitionBooleanPropertyStyle,
|
|
5575
5586
|
PageBlockDefinitionComponentOptions,
|
|
5587
|
+
PageBlockDefinitionFigmaComponentOptions,
|
|
5576
5588
|
PageBlockDefinitionImageAspectRatio,
|
|
5577
5589
|
PageBlockDefinitionImageOptions,
|
|
5578
5590
|
PageBlockDefinitionImageWidth,
|
|
@@ -5605,6 +5617,7 @@ export {
|
|
|
5605
5617
|
PageBlockDefinitionVariant,
|
|
5606
5618
|
PageBlockDefinitionsMap,
|
|
5607
5619
|
PageBlockEditorModelV2,
|
|
5620
|
+
PageBlockFigmaComponentBlockConfig,
|
|
5608
5621
|
PageBlockFigmaComponentEntityMeta,
|
|
5609
5622
|
PageBlockFigmaFrameProperties,
|
|
5610
5623
|
PageBlockFigmaNodeEntityMeta,
|
|
@@ -5659,6 +5672,7 @@ export {
|
|
|
5659
5672
|
PageBlockPreviewContainerSize,
|
|
5660
5673
|
PageBlockRenderCodeProperties,
|
|
5661
5674
|
PageBlockResourceFrameNodeReference,
|
|
5675
|
+
PageBlockSelectedFigmaComponent,
|
|
5662
5676
|
PageBlockShortcut,
|
|
5663
5677
|
PageBlockSwatch,
|
|
5664
5678
|
PageBlockTableCellAlignment,
|