@supernova-studio/client 0.55.4 → 0.55.6
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.js +146 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +146 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/docs-editor/mock.ts +144 -0
package/dist/index.js
CHANGED
|
@@ -2127,6 +2127,9 @@ var PageBlockDefinitionComponentOptions = _zod.z.object({
|
|
|
2127
2127
|
renderLayoutAs: _zod.z.enum(["List", "Table"]).optional(),
|
|
2128
2128
|
allowPropertySelection: _zod.z.boolean().optional()
|
|
2129
2129
|
});
|
|
2130
|
+
var PageBlockDefinitionFigmaComponentOptions = _zod.z.object({
|
|
2131
|
+
renderLayoutAs: _zod.z.enum(["Grid", "PropsTable", "Canvas", "Playground"])
|
|
2132
|
+
});
|
|
2130
2133
|
var PageBlockDefinitionProperty = _zod.z.object({
|
|
2131
2134
|
id: _zod.z.string(),
|
|
2132
2135
|
name: _zod.z.string(),
|
|
@@ -10760,6 +10763,149 @@ var blocks = [
|
|
|
10760
10763
|
isEditorPresentationDifferent: false,
|
|
10761
10764
|
showBlockHeaderInEditor: false
|
|
10762
10765
|
}
|
|
10766
|
+
},
|
|
10767
|
+
{
|
|
10768
|
+
id: "io.supernova.block.figma-components",
|
|
10769
|
+
name: "Figma component",
|
|
10770
|
+
description: "Display Figma component variants or group of components.",
|
|
10771
|
+
category: "Components",
|
|
10772
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/component-checklist.svg",
|
|
10773
|
+
searchKeywords: ["variants", "properties"],
|
|
10774
|
+
item: {
|
|
10775
|
+
properties: [
|
|
10776
|
+
{
|
|
10777
|
+
id: "figmaComponent",
|
|
10778
|
+
name: "Figma component",
|
|
10779
|
+
type: "FigmaComponent",
|
|
10780
|
+
options: {
|
|
10781
|
+
renderLayoutAs: "Grid"
|
|
10782
|
+
},
|
|
10783
|
+
variantOptions: {
|
|
10784
|
+
canvas: {
|
|
10785
|
+
renderLayoutAs: "Canvas"
|
|
10786
|
+
}
|
|
10787
|
+
}
|
|
10788
|
+
}
|
|
10789
|
+
],
|
|
10790
|
+
appearance: {
|
|
10791
|
+
isBordered: true,
|
|
10792
|
+
hasBackground: false
|
|
10793
|
+
},
|
|
10794
|
+
variants: [
|
|
10795
|
+
{
|
|
10796
|
+
id: "grid",
|
|
10797
|
+
name: "Grid",
|
|
10798
|
+
image: "tbd",
|
|
10799
|
+
description: "Components or variants will be rendered individually in a grid layout",
|
|
10800
|
+
layout: {
|
|
10801
|
+
type: "Column",
|
|
10802
|
+
children: ["figmaComponent"],
|
|
10803
|
+
columnAlign: "Start",
|
|
10804
|
+
columnResizing: "Fill",
|
|
10805
|
+
gap: "Medium"
|
|
10806
|
+
},
|
|
10807
|
+
maxColumns: 4,
|
|
10808
|
+
defaultColumns: 1,
|
|
10809
|
+
appearance: {}
|
|
10810
|
+
},
|
|
10811
|
+
{
|
|
10812
|
+
id: "canvas",
|
|
10813
|
+
name: "Canvas",
|
|
10814
|
+
image: "tbd",
|
|
10815
|
+
description: "Components or variants will be rendered on a single canvas",
|
|
10816
|
+
layout: {
|
|
10817
|
+
type: "Column",
|
|
10818
|
+
children: ["figmaComponent"],
|
|
10819
|
+
columnAlign: "Start",
|
|
10820
|
+
columnResizing: "Fill",
|
|
10821
|
+
gap: "Medium"
|
|
10822
|
+
},
|
|
10823
|
+
maxColumns: 4,
|
|
10824
|
+
defaultColumns: 1,
|
|
10825
|
+
appearance: {}
|
|
10826
|
+
}
|
|
10827
|
+
],
|
|
10828
|
+
defaultVariantKey: "grid"
|
|
10829
|
+
},
|
|
10830
|
+
behavior: {
|
|
10831
|
+
dataType: "FigmaComponent",
|
|
10832
|
+
entities: {
|
|
10833
|
+
selectionType: "Entity",
|
|
10834
|
+
maxSelected: 0
|
|
10835
|
+
}
|
|
10836
|
+
},
|
|
10837
|
+
editorOptions: {
|
|
10838
|
+
onboarding: {
|
|
10839
|
+
helpText: "Display Figma component variants or group of components.",
|
|
10840
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09"
|
|
10841
|
+
}
|
|
10842
|
+
},
|
|
10843
|
+
appearance: {
|
|
10844
|
+
isBordered: true,
|
|
10845
|
+
hasBackground: false,
|
|
10846
|
+
isEditorPresentationDifferent: false,
|
|
10847
|
+
showBlockHeaderInEditor: false
|
|
10848
|
+
}
|
|
10849
|
+
},
|
|
10850
|
+
{
|
|
10851
|
+
id: "io.supernova.block.figma-components-propstable",
|
|
10852
|
+
name: "Figma component properties",
|
|
10853
|
+
description: "Display properties based on Figma component data.",
|
|
10854
|
+
category: "Components",
|
|
10855
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/component-checklist.svg",
|
|
10856
|
+
searchKeywords: ["variants", "properties", "props", "table"],
|
|
10857
|
+
item: {
|
|
10858
|
+
properties: [
|
|
10859
|
+
{
|
|
10860
|
+
id: "figmaComponent",
|
|
10861
|
+
name: "Figma component",
|
|
10862
|
+
type: "FigmaComponent",
|
|
10863
|
+
options: {
|
|
10864
|
+
renderLayoutAs: "PropsTable"
|
|
10865
|
+
}
|
|
10866
|
+
}
|
|
10867
|
+
],
|
|
10868
|
+
appearance: {
|
|
10869
|
+
isBordered: true,
|
|
10870
|
+
hasBackground: false
|
|
10871
|
+
},
|
|
10872
|
+
variants: [
|
|
10873
|
+
{
|
|
10874
|
+
id: "default",
|
|
10875
|
+
name: "Default",
|
|
10876
|
+
layout: {
|
|
10877
|
+
type: "Column",
|
|
10878
|
+
children: ["figmaComponent"],
|
|
10879
|
+
columnAlign: "Start",
|
|
10880
|
+
columnResizing: "Fill",
|
|
10881
|
+
gap: "Medium"
|
|
10882
|
+
},
|
|
10883
|
+
maxColumns: 1,
|
|
10884
|
+
defaultColumns: 1,
|
|
10885
|
+
appearance: {}
|
|
10886
|
+
}
|
|
10887
|
+
],
|
|
10888
|
+
defaultVariantKey: "default"
|
|
10889
|
+
},
|
|
10890
|
+
behavior: {
|
|
10891
|
+
dataType: "FigmaComponent",
|
|
10892
|
+
entities: {
|
|
10893
|
+
selectionType: "Entity",
|
|
10894
|
+
maxSelected: 1
|
|
10895
|
+
}
|
|
10896
|
+
},
|
|
10897
|
+
editorOptions: {
|
|
10898
|
+
onboarding: {
|
|
10899
|
+
helpText: "Display properties based on Figma component data.",
|
|
10900
|
+
documentationLink: ""
|
|
10901
|
+
}
|
|
10902
|
+
},
|
|
10903
|
+
appearance: {
|
|
10904
|
+
isBordered: true,
|
|
10905
|
+
hasBackground: false,
|
|
10906
|
+
isEditorPresentationDifferent: false,
|
|
10907
|
+
showBlockHeaderInEditor: false
|
|
10908
|
+
}
|
|
10763
10909
|
}
|
|
10764
10910
|
];
|
|
10765
10911
|
|