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