@supernova-studio/client 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.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
  });
@@ -2127,6 +2135,9 @@ var PageBlockDefinitionComponentOptions = z43.object({
2127
2135
  renderLayoutAs: z43.enum(["List", "Table"]).optional(),
2128
2136
  allowPropertySelection: z43.boolean().optional()
2129
2137
  });
2138
+ var PageBlockDefinitionFigmaComponentOptions = z43.object({
2139
+ renderLayoutAs: z43.enum(["Grid", "PropsTable", "Canvas", "Playground"])
2140
+ });
2130
2141
  var PageBlockDefinitionProperty = z43.object({
2131
2142
  id: z43.string(),
2132
2143
  name: z43.string(),
@@ -2233,7 +2244,7 @@ var PageBlockItemFigmaComponentValue = z44.object({
2233
2244
  z44.object({
2234
2245
  entityId: z44.string(),
2235
2246
  entityType: z44.enum(["FigmaComponent"]),
2236
- entityMeta: PageBlockFigmaComponentEntityMeta.optional()
2247
+ selectedComponentProperties: z44.string().array().optional()
2237
2248
  })
2238
2249
  ).default([])
2239
2250
  });