@supernova-studio/client 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 +108 -6
- package/dist/index.d.ts +108 -6
- package/dist/index.js +19 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1636,7 +1636,9 @@ var PageBlockTypeV1 = z40.enum([
|
|
|
1636
1636
|
"TableRow",
|
|
1637
1637
|
"TableCell",
|
|
1638
1638
|
"Guidelines",
|
|
1639
|
-
"Guideline"
|
|
1639
|
+
"Guideline",
|
|
1640
|
+
"FigmaComponents",
|
|
1641
|
+
"FigmaComponentPropsTable"
|
|
1640
1642
|
]);
|
|
1641
1643
|
var PageBlockCodeLanguage = z40.enum([
|
|
1642
1644
|
"Angular",
|
|
@@ -1740,15 +1742,6 @@ var PageBlockCustomBlockPropertyImageValue = z40.object({
|
|
|
1740
1742
|
var PageBlockCustomBlockPropertyValue = z40.object({
|
|
1741
1743
|
key: z40.string(),
|
|
1742
1744
|
value: z40.any()
|
|
1743
|
-
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
1744
|
-
// e.g. element id 67451 in the dev db
|
|
1745
|
-
// value: z
|
|
1746
|
-
// .boolean()
|
|
1747
|
-
// .or(z.number())
|
|
1748
|
-
// .or(z.string())
|
|
1749
|
-
// .or(ColorTokenData)
|
|
1750
|
-
// .or(TypographyTokenData)
|
|
1751
|
-
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
1752
1745
|
});
|
|
1753
1746
|
var PageBlockFigmaFrameProperties = z40.object({
|
|
1754
1747
|
color: nullishToOptional(
|
|
@@ -1782,6 +1775,17 @@ var PageBlockTableProperties = z40.object({
|
|
|
1782
1775
|
showHeaderColumn: z40.boolean(),
|
|
1783
1776
|
columns: z40.array(PageBlockTableColumn)
|
|
1784
1777
|
});
|
|
1778
|
+
var PageBlockFigmaComponentBlockConfig = z40.object({
|
|
1779
|
+
showComponentName: nullishToOptional(z40.boolean()),
|
|
1780
|
+
showComponentDescription: nullishToOptional(z40.boolean()),
|
|
1781
|
+
showPropertyList: nullishToOptional(z40.boolean()),
|
|
1782
|
+
previewContainerSize: nullishToOptional(z40.enum(["Centered", "NaturalHeight"])),
|
|
1783
|
+
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
1784
|
+
});
|
|
1785
|
+
var PageBlockSelectedFigmaComponent = z40.object({
|
|
1786
|
+
figmaComponentId: z40.string(),
|
|
1787
|
+
selectedComponentProperties: z40.string().array()
|
|
1788
|
+
});
|
|
1785
1789
|
var PageBlockTextSpanAttributeType = z40.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
|
|
1786
1790
|
var PageBlockTextSpanAttribute = z40.object({
|
|
1787
1791
|
type: PageBlockTextSpanAttributeType,
|
|
@@ -1858,6 +1862,10 @@ var PageBlockBaseV1 = z40.object({
|
|
|
1858
1862
|
theme: nullishToOptional(PageBlockTheme),
|
|
1859
1863
|
swatches: nullishToOptional(PageBlockSwatch.array()),
|
|
1860
1864
|
blacklistedElementProperties: nullishToOptional(z40.array(z40.string())),
|
|
1865
|
+
// Figma components
|
|
1866
|
+
figmaComponentsBlockConfig: nullishToOptional(PageBlockFigmaComponentBlockConfig),
|
|
1867
|
+
selectedFigmaComponent: nullishToOptional(PageBlockSelectedFigmaComponent),
|
|
1868
|
+
selectedFigmaComponents: nullishToOptional(PageBlockSelectedFigmaComponent.array()),
|
|
1861
1869
|
// Arbitrary
|
|
1862
1870
|
userMetadata: nullishToOptional(z40.string())
|
|
1863
1871
|
});
|
|
@@ -2236,7 +2244,7 @@ var PageBlockItemFigmaComponentValue = z44.object({
|
|
|
2236
2244
|
z44.object({
|
|
2237
2245
|
entityId: z44.string(),
|
|
2238
2246
|
entityType: z44.enum(["FigmaComponent"]),
|
|
2239
|
-
|
|
2247
|
+
selectedComponentProperties: z44.string().array().optional()
|
|
2240
2248
|
})
|
|
2241
2249
|
).default([])
|
|
2242
2250
|
});
|