@supernova-studio/model 0.55.6 → 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 +1663 -162
- package/dist/index.d.ts +1663 -162
- package/dist/index.js +22 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- 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
|
});
|
|
@@ -2359,7 +2367,7 @@ var PageBlockItemFigmaComponentValue = z44.object({
|
|
|
2359
2367
|
z44.object({
|
|
2360
2368
|
entityId: z44.string(),
|
|
2361
2369
|
entityType: z44.enum(["FigmaComponent"]),
|
|
2362
|
-
|
|
2370
|
+
selectedComponentProperties: z44.string().array().optional()
|
|
2363
2371
|
})
|
|
2364
2372
|
).default([])
|
|
2365
2373
|
});
|
|
@@ -5609,6 +5617,7 @@ export {
|
|
|
5609
5617
|
PageBlockDefinitionVariant,
|
|
5610
5618
|
PageBlockDefinitionsMap,
|
|
5611
5619
|
PageBlockEditorModelV2,
|
|
5620
|
+
PageBlockFigmaComponentBlockConfig,
|
|
5612
5621
|
PageBlockFigmaComponentEntityMeta,
|
|
5613
5622
|
PageBlockFigmaFrameProperties,
|
|
5614
5623
|
PageBlockFigmaNodeEntityMeta,
|
|
@@ -5663,6 +5672,7 @@ export {
|
|
|
5663
5672
|
PageBlockPreviewContainerSize,
|
|
5664
5673
|
PageBlockRenderCodeProperties,
|
|
5665
5674
|
PageBlockResourceFrameNodeReference,
|
|
5675
|
+
PageBlockSelectedFigmaComponent,
|
|
5666
5676
|
PageBlockShortcut,
|
|
5667
5677
|
PageBlockSwatch,
|
|
5668
5678
|
PageBlockTableCellAlignment,
|