@supernova-studio/client 0.58.19 → 1.0.0-alpha.3

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.
Files changed (196) hide show
  1. package/dist/index.d.mts +1363 -1321
  2. package/dist/index.d.ts +1363 -1321
  3. package/dist/index.js +536 -339
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +839 -642
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +4 -3
  8. package/src/api/client.ts +0 -31
  9. package/src/api/conversion/documentation/documentation-group-v1-to-dto.ts +0 -114
  10. package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +0 -92
  11. package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +0 -52
  12. package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +0 -34
  13. package/src/api/conversion/documentation/documentation-page-to-dto-utils.ts +0 -131
  14. package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +0 -69
  15. package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +0 -72
  16. package/src/api/conversion/documentation/index.ts +0 -7
  17. package/src/api/conversion/export/index.ts +0 -1
  18. package/src/api/conversion/export/pipeline.ts +0 -25
  19. package/src/api/conversion/index.ts +0 -3
  20. package/src/api/conversion/integrations/git.ts +0 -37
  21. package/src/api/conversion/integrations/index.ts +0 -2
  22. package/src/api/conversion/integrations/integration.ts +0 -37
  23. package/src/api/dto/aux/color.ts +0 -7
  24. package/src/api/dto/aux/index.ts +0 -3
  25. package/src/api/dto/aux/meta.ts +0 -8
  26. package/src/api/dto/aux/pagination.ts +0 -8
  27. package/src/api/dto/bff/app-bootstrap-data.ts +0 -20
  28. package/src/api/dto/bff/index.ts +0 -1
  29. package/src/api/dto/collections/index.ts +0 -1
  30. package/src/api/dto/collections/token-collection.ts +0 -24
  31. package/src/api/dto/design-systems/brand.ts +0 -44
  32. package/src/api/dto/design-systems/component.ts +0 -40
  33. package/src/api/dto/design-systems/contact.ts +0 -11
  34. package/src/api/dto/design-systems/data-source.ts +0 -141
  35. package/src/api/dto/design-systems/design-system.ts +0 -68
  36. package/src/api/dto/design-systems/elements-diff.ts +0 -14
  37. package/src/api/dto/design-systems/figma-variables.ts +0 -108
  38. package/src/api/dto/design-systems/import-job.ts +0 -61
  39. package/src/api/dto/design-systems/index.ts +0 -13
  40. package/src/api/dto/design-systems/members.ts +0 -50
  41. package/src/api/dto/design-systems/role.ts +0 -11
  42. package/src/api/dto/design-systems/stats.ts +0 -19
  43. package/src/api/dto/design-systems/version.ts +0 -56
  44. package/src/api/dto/design-systems/view.ts +0 -45
  45. package/src/api/dto/design-tokens/design-token.ts +0 -78
  46. package/src/api/dto/design-tokens/index.ts +0 -1
  47. package/src/api/dto/documentation/anchor.ts +0 -15
  48. package/src/api/dto/documentation/approvals.ts +0 -15
  49. package/src/api/dto/documentation/block-definition.ts +0 -28
  50. package/src/api/dto/documentation/block.ts +0 -6
  51. package/src/api/dto/documentation/documentation-page-snapshot.ts +0 -18
  52. package/src/api/dto/documentation/index.ts +0 -8
  53. package/src/api/dto/documentation/link-preview.ts +0 -23
  54. package/src/api/dto/documentation/publish.ts +0 -23
  55. package/src/api/dto/documentation/room.ts +0 -12
  56. package/src/api/dto/elements/components/figma-component-group.ts +0 -19
  57. package/src/api/dto/elements/components/figma-component.ts +0 -56
  58. package/src/api/dto/elements/components/index.ts +0 -2
  59. package/src/api/dto/elements/documentation/draft-state.ts +0 -37
  60. package/src/api/dto/elements/documentation/group-action.ts +0 -108
  61. package/src/api/dto/elements/documentation/group-v1.ts +0 -35
  62. package/src/api/dto/elements/documentation/group-v2.ts +0 -117
  63. package/src/api/dto/elements/documentation/hierarchy.ts +0 -22
  64. package/src/api/dto/elements/documentation/index.ts +0 -13
  65. package/src/api/dto/elements/documentation/item-configuration-v1.ts +0 -24
  66. package/src/api/dto/elements/documentation/item-configuration-v2.ts +0 -14
  67. package/src/api/dto/elements/documentation/metadata.ts +0 -8
  68. package/src/api/dto/elements/documentation/page-actions-v2.ts +0 -121
  69. package/src/api/dto/elements/documentation/page-content.ts +0 -15
  70. package/src/api/dto/elements/documentation/page-v1.ts +0 -21
  71. package/src/api/dto/elements/documentation/page-v2.ts +0 -120
  72. package/src/api/dto/elements/documentation/structure.ts +0 -37
  73. package/src/api/dto/elements/elements-action-v2.ts +0 -104
  74. package/src/api/dto/elements/figma-nodes/figma-node.ts +0 -106
  75. package/src/api/dto/elements/figma-nodes/index.ts +0 -2
  76. package/src/api/dto/elements/figma-nodes/node-actions-v2.ts +0 -24
  77. package/src/api/dto/elements/frame-node-structures/frame-node-structure.ts +0 -17
  78. package/src/api/dto/elements/frame-node-structures/index.ts +0 -1
  79. package/src/api/dto/elements/get-elements-v2.ts +0 -21
  80. package/src/api/dto/elements/index.ts +0 -7
  81. package/src/api/dto/elements/properties/index.ts +0 -2
  82. package/src/api/dto/elements/properties/property-definitions.ts +0 -75
  83. package/src/api/dto/elements/properties/property-values.ts +0 -38
  84. package/src/api/dto/export/exporter-property.ts +0 -95
  85. package/src/api/dto/export/exporter.ts +0 -87
  86. package/src/api/dto/export/filter.ts +0 -6
  87. package/src/api/dto/export/index.ts +0 -5
  88. package/src/api/dto/export/job.ts +0 -87
  89. package/src/api/dto/export/pipeline.ts +0 -43
  90. package/src/api/dto/figma-components/assets/download.ts +0 -30
  91. package/src/api/dto/figma-components/assets/index.ts +0 -1
  92. package/src/api/dto/figma-components/index.ts +0 -1
  93. package/src/api/dto/index.ts +0 -13
  94. package/src/api/dto/liveblocks/auth-response.ts +0 -7
  95. package/src/api/dto/liveblocks/index.ts +0 -1
  96. package/src/api/dto/themes/index.ts +0 -2
  97. package/src/api/dto/themes/override.ts +0 -27
  98. package/src/api/dto/themes/theme.ts +0 -45
  99. package/src/api/dto/users/authenticated-user.ts +0 -43
  100. package/src/api/dto/users/index.ts +0 -3
  101. package/src/api/dto/users/update.ts +0 -8
  102. package/src/api/dto/users/user.ts +0 -31
  103. package/src/api/dto/workspaces/git.ts +0 -32
  104. package/src/api/dto/workspaces/index.ts +0 -6
  105. package/src/api/dto/workspaces/integrations.ts +0 -34
  106. package/src/api/dto/workspaces/invitations.ts +0 -30
  107. package/src/api/dto/workspaces/membership.ts +0 -41
  108. package/src/api/dto/workspaces/npm-registry.ts +0 -35
  109. package/src/api/dto/workspaces/workspace.ts +0 -34
  110. package/src/api/endpoints/codegen/codegen.ts +0 -13
  111. package/src/api/endpoints/codegen/exporters.ts +0 -13
  112. package/src/api/endpoints/codegen/index.ts +0 -3
  113. package/src/api/endpoints/codegen/pipelines.ts +0 -37
  114. package/src/api/endpoints/design-system/bff.ts +0 -13
  115. package/src/api/endpoints/design-system/contact.ts +0 -12
  116. package/src/api/endpoints/design-system/design-systems.ts +0 -55
  117. package/src/api/endpoints/design-system/index.ts +0 -6
  118. package/src/api/endpoints/design-system/members.ts +0 -24
  119. package/src/api/endpoints/design-system/sources.ts +0 -35
  120. package/src/api/endpoints/design-system/versions/brands.ts +0 -45
  121. package/src/api/endpoints/design-system/versions/documentation.ts +0 -27
  122. package/src/api/endpoints/design-system/versions/ds-components.ts +0 -28
  123. package/src/api/endpoints/design-system/versions/elements-action.ts +0 -55
  124. package/src/api/endpoints/design-system/versions/elements.ts +0 -13
  125. package/src/api/endpoints/design-system/versions/figma-component-groups.ts +0 -13
  126. package/src/api/endpoints/design-system/versions/figma-components.ts +0 -13
  127. package/src/api/endpoints/design-system/versions/figma-frame-structures.ts +0 -13
  128. package/src/api/endpoints/design-system/versions/import-jobs.ts +0 -13
  129. package/src/api/endpoints/design-system/versions/index.ts +0 -18
  130. package/src/api/endpoints/design-system/versions/overrides.ts +0 -17
  131. package/src/api/endpoints/design-system/versions/property-definitions.ts +0 -43
  132. package/src/api/endpoints/design-system/versions/property-values.ts +0 -25
  133. package/src/api/endpoints/design-system/versions/stats.ts +0 -12
  134. package/src/api/endpoints/design-system/versions/themes.ts +0 -35
  135. package/src/api/endpoints/design-system/versions/token-collections.ts +0 -13
  136. package/src/api/endpoints/design-system/versions/token-groups.ts +0 -28
  137. package/src/api/endpoints/design-system/versions/tokens.ts +0 -27
  138. package/src/api/endpoints/design-system/versions/versions.ts +0 -79
  139. package/src/api/endpoints/index.ts +0 -5
  140. package/src/api/endpoints/liveblocks.ts +0 -14
  141. package/src/api/endpoints/users.ts +0 -26
  142. package/src/api/endpoints/workspaces/index.ts +0 -3
  143. package/src/api/endpoints/workspaces/workspace-invites.ts +0 -34
  144. package/src/api/endpoints/workspaces/workspace-members.ts +0 -31
  145. package/src/api/endpoints/workspaces/workspaces.ts +0 -47
  146. package/src/api/index.ts +0 -6
  147. package/src/api/payloads/design-systems/index.ts +0 -2
  148. package/src/api/payloads/design-systems/update-design-system.ts +0 -29
  149. package/src/api/payloads/design-systems/version.ts +0 -29
  150. package/src/api/payloads/documentation/block-definitions.ts +0 -12
  151. package/src/api/payloads/documentation/design-data-doc-diff.ts +0 -7
  152. package/src/api/payloads/documentation/index.ts +0 -2
  153. package/src/api/payloads/export/index.ts +0 -1
  154. package/src/api/payloads/export/pipeline.ts +0 -50
  155. package/src/api/payloads/index.ts +0 -6
  156. package/src/api/payloads/liveblocks/auth.ts +0 -7
  157. package/src/api/payloads/liveblocks/index.ts +0 -1
  158. package/src/api/payloads/users/index.ts +0 -2
  159. package/src/api/payloads/users/notifications/index.ts +0 -1
  160. package/src/api/payloads/users/notifications/notification-settings.ts +0 -17
  161. package/src/api/payloads/users/profile/index.ts +0 -1
  162. package/src/api/payloads/users/profile/update.ts +0 -4
  163. package/src/api/payloads/workspaces/index.ts +0 -3
  164. package/src/api/payloads/workspaces/transfer-ownership.ts +0 -7
  165. package/src/api/payloads/workspaces/workspace-configuration.ts +0 -50
  166. package/src/api/payloads/workspaces/workspace-integrations.ts +0 -26
  167. package/src/api/transport/index.ts +0 -2
  168. package/src/api/transport/request-executor-error.ts +0 -66
  169. package/src/api/transport/request-executor.ts +0 -87
  170. package/src/index.ts +0 -3
  171. package/src/utils/figma.ts +0 -53
  172. package/src/utils/hash.ts +0 -62
  173. package/src/utils/index.ts +0 -3
  174. package/src/utils/query.ts +0 -18
  175. package/src/yjs/design-system-content/documentation-hierarchy.ts +0 -35
  176. package/src/yjs/design-system-content/index.ts +0 -2
  177. package/src/yjs/design-system-content/item-configuration.ts +0 -93
  178. package/src/yjs/docs-editor/blocks-to-prosemirror.ts +0 -764
  179. package/src/yjs/docs-editor/index.ts +0 -7
  180. package/src/yjs/docs-editor/list-tree-builder.ts +0 -127
  181. package/src/yjs/docs-editor/mock.ts +0 -2104
  182. package/src/yjs/docs-editor/model/block.ts +0 -8
  183. package/src/yjs/docs-editor/model/index.ts +0 -2
  184. package/src/yjs/docs-editor/model/page.ts +0 -8
  185. package/src/yjs/docs-editor/prosemirror/index.ts +0 -3
  186. package/src/yjs/docs-editor/prosemirror/inner-editor-schema.ts +0 -145
  187. package/src/yjs/docs-editor/prosemirror/main-editor-schema.ts +0 -577
  188. package/src/yjs/docs-editor/prosemirror/types.ts +0 -19
  189. package/src/yjs/docs-editor/prosemirror-to-blocks.ts +0 -975
  190. package/src/yjs/docs-editor/utils.ts +0 -115
  191. package/src/yjs/index.ts +0 -3
  192. package/src/yjs/version-room/backend.ts +0 -78
  193. package/src/yjs/version-room/base.ts +0 -211
  194. package/src/yjs/version-room/frontend.ts +0 -461
  195. package/src/yjs/version-room/index.ts +0 -4
  196. package/src/yjs/version-room/utils.ts +0 -109
@@ -1,2104 +0,0 @@
1
- import { PageBlockDefinition } from "@supernova-studio/model";
2
-
3
- export function getMockPageBlockDefinitions(): PageBlockDefinition[] {
4
- return blocks.map(block => {
5
- return {
6
- ...block,
7
- item: {
8
- ...block.item,
9
-
10
- // Make sure variatns array is copied
11
- variants: [...block.item.variants],
12
- },
13
- };
14
- });
15
- }
16
-
17
- const blocks: PageBlockDefinition[] = [
18
- {
19
- id: "io.supernova.block.rich-text",
20
- name: "Text",
21
- description: "Plain text",
22
- category: "Text",
23
- icon: "https://cdn-assets.supernova.io/blocks/icons/v3/text.svg",
24
- searchKeywords: ["paragraph", "rich text"],
25
- item: {
26
- properties: [
27
- {
28
- id: "text",
29
- name: "Text",
30
- type: "RichText",
31
- options: {
32
- richTextStyle: "Default",
33
- },
34
- },
35
- ],
36
- appearance: {
37
- isBordered: true,
38
- hasBackground: false,
39
- },
40
- variants: [
41
- {
42
- id: "default",
43
- name: "Default",
44
- layout: {
45
- type: "Column",
46
- children: ["text"],
47
- columnAlign: "Start",
48
- columnResizing: "Fill",
49
- gap: "Medium",
50
- },
51
- maxColumns: 1,
52
- defaultColumns: 1,
53
- appearance: {
54
- isEditorPresentationDifferent: false,
55
- },
56
- },
57
- ],
58
- defaultVariantKey: "default",
59
- },
60
- behavior: {
61
- dataType: "Item",
62
- items: {
63
- numberOfItems: 1,
64
- allowLinks: false,
65
- },
66
- },
67
- editorOptions: {
68
- onboarding: {
69
- helpText: "Use rich text block to write text and add additional formatting to it.",
70
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/text-HxZ9ssJR",
71
- },
72
- },
73
- appearance: {
74
- isBordered: true,
75
- hasBackground: false,
76
- isEditorPresentationDifferent: false,
77
- showBlockHeaderInEditor: false,
78
- },
79
- },
80
- {
81
- id: "io.supernova.block.title1",
82
- name: "Heading 1",
83
- description: "Main sections within the page",
84
- category: "Text",
85
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-1.svg",
86
- searchKeywords: ["title", "h1"],
87
- item: {
88
- properties: [
89
- {
90
- id: "text",
91
- name: "Text",
92
- type: "RichText",
93
- options: {
94
- placeholder: "Heading 1",
95
- richTextStyle: "Title1",
96
- },
97
- },
98
- ],
99
- appearance: {
100
- isBordered: true,
101
- hasBackground: false,
102
- },
103
- variants: [
104
- {
105
- id: "default",
106
- name: "Default",
107
- layout: {
108
- type: "Column",
109
- children: ["text"],
110
- columnAlign: "Start",
111
- columnResizing: "Fill",
112
- gap: "Medium",
113
- },
114
- maxColumns: 1,
115
- defaultColumns: 1,
116
- appearance: {},
117
- },
118
- ],
119
- defaultVariantKey: "default",
120
- },
121
- behavior: {
122
- dataType: "Item",
123
- items: {
124
- numberOfItems: 1,
125
- allowLinks: false,
126
- },
127
- },
128
- editorOptions: {
129
- onboarding: {
130
- helpText: "Use for main sections within the page, introducing broad topics or themes.",
131
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
132
- },
133
- },
134
- appearance: {
135
- isBordered: true,
136
- hasBackground: false,
137
- isEditorPresentationDifferent: false,
138
- showBlockHeaderInEditor: false,
139
- },
140
- },
141
- {
142
- id: "io.supernova.block.title2",
143
- name: "Heading 2",
144
- description: "Section subheadings",
145
- category: "Text",
146
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-2.svg",
147
- searchKeywords: ["title", "h2"],
148
- item: {
149
- properties: [
150
- {
151
- id: "text",
152
- name: "Text",
153
- type: "RichText",
154
- options: {
155
- placeholder: "Heading 2",
156
- richTextStyle: "Title2",
157
- },
158
- },
159
- ],
160
- appearance: {
161
- isBordered: true,
162
- hasBackground: false,
163
- },
164
- variants: [
165
- {
166
- id: "default",
167
- name: "Default",
168
- layout: {
169
- type: "Column",
170
- children: ["text"],
171
- columnAlign: "Start",
172
- columnResizing: "Fill",
173
- gap: "Medium",
174
- },
175
- maxColumns: 1,
176
- defaultColumns: 1,
177
- appearance: {},
178
- },
179
- ],
180
- defaultVariantKey: "default",
181
- },
182
- behavior: {
183
- dataType: "Item",
184
- items: {
185
- numberOfItems: 1,
186
- allowLinks: false,
187
- },
188
- },
189
- editorOptions: {
190
- onboarding: {
191
- helpText: "Use for subheadings, indicating major subsections under the main sections.",
192
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
193
- },
194
- },
195
- appearance: {
196
- isBordered: true,
197
- hasBackground: false,
198
- isEditorPresentationDifferent: false,
199
- showBlockHeaderInEditor: false,
200
- },
201
- },
202
- {
203
- id: "io.supernova.block.title3",
204
- name: "Heading 3",
205
- description: "Further subsections",
206
- category: "Text",
207
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-3.svg",
208
- searchKeywords: ["title", "h3"],
209
- item: {
210
- properties: [
211
- {
212
- id: "text",
213
- name: "Text",
214
- type: "RichText",
215
- options: {
216
- placeholder: "Heading 3",
217
- richTextStyle: "Title3",
218
- },
219
- },
220
- ],
221
- appearance: {
222
- isBordered: true,
223
- hasBackground: false,
224
- },
225
- variants: [
226
- {
227
- id: "default",
228
- name: "Default",
229
- layout: {
230
- type: "Column",
231
- children: ["text"],
232
- columnAlign: "Start",
233
- columnResizing: "Fill",
234
- gap: "Medium",
235
- },
236
- maxColumns: 1,
237
- defaultColumns: 1,
238
- appearance: {},
239
- },
240
- ],
241
- defaultVariantKey: "default",
242
- },
243
- behavior: {
244
- dataType: "Item",
245
- items: {
246
- numberOfItems: 1,
247
- allowLinks: false,
248
- },
249
- },
250
- editorOptions: {
251
- onboarding: {
252
- helpText: "Use for further subsections, detailing specific topics within the major subsections.",
253
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
254
- },
255
- },
256
- appearance: {
257
- isBordered: true,
258
- hasBackground: false,
259
- isEditorPresentationDifferent: false,
260
- showBlockHeaderInEditor: false,
261
- },
262
- },
263
- {
264
- id: "io.supernova.block.title4",
265
- name: "Heading 4",
266
- description: "Details in subsections",
267
- category: "Text",
268
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-4.svg",
269
- searchKeywords: ["title", "h4"],
270
- item: {
271
- properties: [
272
- {
273
- id: "text",
274
- name: "Text",
275
- type: "RichText",
276
- options: {
277
- placeholder: "Heading 4",
278
- richTextStyle: "Title4",
279
- },
280
- },
281
- ],
282
- appearance: {
283
- isBordered: true,
284
- hasBackground: false,
285
- },
286
- variants: [
287
- {
288
- id: "default",
289
- name: "Default",
290
- layout: {
291
- type: "Column",
292
- children: ["text"],
293
- columnAlign: "Start",
294
- columnResizing: "Fill",
295
- gap: "Medium",
296
- },
297
- maxColumns: 1,
298
- defaultColumns: 1,
299
- appearance: {},
300
- },
301
- ],
302
- defaultVariantKey: "default",
303
- },
304
- behavior: {
305
- dataType: "Item",
306
- items: { numberOfItems: 1, allowLinks: false },
307
- },
308
- editorOptions: {
309
- onboarding: {
310
- helpText: "Use for sub-divisions, elaborating on details within the subsections.",
311
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
312
- },
313
- },
314
- appearance: {
315
- isBordered: true,
316
- hasBackground: false,
317
- isEditorPresentationDifferent: false,
318
- showBlockHeaderInEditor: false,
319
- },
320
- },
321
- {
322
- id: "io.supernova.block.title5",
323
- name: "Heading 5",
324
- description: "Nuanced details or sub-points",
325
- category: "Text",
326
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-5.svg",
327
- searchKeywords: ["title", "h5"],
328
- item: {
329
- properties: [
330
- {
331
- id: "text",
332
- name: "Text",
333
- type: "RichText",
334
- options: {
335
- placeholder: "Heading 5",
336
- richTextStyle: "Title5",
337
- },
338
- },
339
- ],
340
- appearance: {
341
- isBordered: true,
342
- hasBackground: false,
343
- },
344
- variants: [
345
- {
346
- id: "default",
347
- name: "Default",
348
- layout: {
349
- type: "Column",
350
- children: ["text"],
351
- columnAlign: "Start",
352
- columnResizing: "Fill",
353
- gap: "Medium",
354
- },
355
- maxColumns: 1,
356
- defaultColumns: 1,
357
- appearance: {},
358
- },
359
- ],
360
- defaultVariantKey: "default",
361
- },
362
- behavior: {
363
- dataType: "Item",
364
- items: { numberOfItems: 1, allowLinks: false },
365
- },
366
- editorOptions: {
367
- onboarding: {
368
- helpText: "Use for nuanced details or specific sub-points within sub-divisions.",
369
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
370
- },
371
- },
372
- appearance: {
373
- isBordered: true,
374
- hasBackground: false,
375
- isEditorPresentationDifferent: false,
376
- showBlockHeaderInEditor: false,
377
- },
378
- },
379
- {
380
- id: "io.supernova.block.ordered-list",
381
- name: "Numbered list",
382
- description: "An ordered list with numbers",
383
- category: "Text",
384
- icon: "https://cdn-assets.supernova.io/blocks/icons/list-ordered.svg",
385
- searchKeywords: ["ol", "ordered"],
386
- item: {
387
- properties: [
388
- {
389
- id: "text",
390
- name: "Text",
391
- type: "MultiRichText",
392
- options: { multiRichTextStyle: "OL" },
393
- },
394
- ],
395
- appearance: { isBordered: true, hasBackground: false },
396
- variants: [
397
- {
398
- id: "default",
399
- name: "Default",
400
- layout: {
401
- type: "Column",
402
- children: ["text"],
403
- columnAlign: "Start",
404
- columnResizing: "Fill",
405
- gap: "Medium",
406
- },
407
- maxColumns: 1,
408
- defaultColumns: 1,
409
- appearance: {},
410
- },
411
- ],
412
- defaultVariantKey: "default",
413
- },
414
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
415
- editorOptions: {
416
- onboarding: {
417
- helpText: "Display a sequence of numbers or letters to indicate order.",
418
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
419
- },
420
- },
421
- appearance: {
422
- isBordered: true,
423
- hasBackground: false,
424
- isEditorPresentationDifferent: false,
425
- showBlockHeaderInEditor: false,
426
- },
427
- },
428
- {
429
- id: "io.supernova.block.unordered-list",
430
- name: "Bulleted list",
431
- description: "A list with bullet points",
432
- category: "Text",
433
- icon: "https://cdn-assets.supernova.io/blocks/icons/list-unordered.svg",
434
- searchKeywords: ["ul", "bullet points"],
435
- item: {
436
- properties: [
437
- {
438
- id: "text",
439
- name: "Text",
440
- type: "MultiRichText",
441
- options: { multiRichTextStyle: "UL" },
442
- },
443
- ],
444
- appearance: { isBordered: true, hasBackground: false },
445
- variants: [
446
- {
447
- id: "default",
448
- name: "Default",
449
- layout: {
450
- type: "Column",
451
- children: ["text"],
452
- columnAlign: "Start",
453
- columnResizing: "Fill",
454
- gap: "Medium",
455
- },
456
- maxColumns: 1,
457
- defaultColumns: 1,
458
- appearance: {},
459
- },
460
- ],
461
- defaultVariantKey: "default",
462
- },
463
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
464
- editorOptions: {
465
- onboarding: {
466
- helpText: "A list of items displayed with bullet points without a specific sequence.",
467
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
468
- },
469
- },
470
- appearance: {
471
- isBordered: true,
472
- hasBackground: false,
473
- isEditorPresentationDifferent: false,
474
- showBlockHeaderInEditor: false,
475
- },
476
- },
477
- {
478
- id: "io.supernova.block.do-dont-guidelines",
479
- name: "Guidelines",
480
- description: "Document your Do's and Don'ts.",
481
- category: "Guidelines",
482
- icon: "https://cdn-assets.supernova.io/blocks/icons/guidelines.svg",
483
- searchKeywords: ["do", "dont", "caution", "rules"],
484
- item: {
485
- properties: [
486
- {
487
- id: "block.do-dont-guidelines.property.image",
488
- name: "Image",
489
- type: "Image",
490
- options: { allowCaption: true },
491
- },
492
- {
493
- id: "block.do-dont-guidelines.property.type",
494
- name: "Type",
495
- type: "SingleSelect",
496
- options: {
497
- defaultChoice: "do",
498
- choices: [
499
- { value: "do", name: "Do", color: "Green", icon: "CheckCircle" },
500
- { value: "dont", name: "Don't", color: "Red", icon: "CrossCircle" },
501
- { value: "caution", name: "Caution", color: "Orange", icon: "Alert" },
502
- ],
503
- singleSelectStyle: "ToggleButton",
504
- },
505
- },
506
- {
507
- id: "block.do-dont-guidelines.property.description",
508
- name: "Description",
509
- type: "RichTextEditor",
510
- options: {
511
- allowedInlineStyles: ["Bold", "Italic", "Strikethrough", "UL", "OL", "Link", "InlineCode"],
512
- placeholder: "Add description",
513
- },
514
- },
515
- ],
516
- appearance: { isBordered: true, hasBackground: false },
517
- variants: [
518
- {
519
- id: "simple",
520
- name: "Simple",
521
- image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-simple.svg",
522
- description: "With a minimalist badge at the top, this design is great for content guidelines.",
523
- layout: {
524
- type: "Column",
525
- children: [
526
- "block.do-dont-guidelines.property.type",
527
- "block.do-dont-guidelines.property.image",
528
- "block.do-dont-guidelines.property.description",
529
- ],
530
- columnAlign: "Start",
531
- columnResizing: "Fill",
532
- gap: "Medium",
533
- },
534
- maxColumns: 3,
535
- defaultColumns: 2,
536
- appearance: {},
537
- },
538
- {
539
- id: "prominent",
540
- name: "Prominent",
541
- image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-prominent.svg",
542
- description: "Recommended when you need guidelines that need to stand out.",
543
- layout: {
544
- type: "Column",
545
- children: [
546
- "block.do-dont-guidelines.property.type",
547
- "block.do-dont-guidelines.property.image",
548
- "block.do-dont-guidelines.property.description",
549
- ],
550
- columnAlign: "Start",
551
- columnResizing: "Fill",
552
- gap: "Medium",
553
- },
554
- maxColumns: 3,
555
- defaultColumns: 1,
556
- appearance: { isEditorPresentationDifferent: true },
557
- },
558
- {
559
- id: "contained",
560
- name: "Contained",
561
- image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-contained.svg",
562
- description: "Perfect for component guidelines with spacious images.",
563
- layout: {
564
- type: "Column",
565
- children: [
566
- "block.do-dont-guidelines.property.type",
567
- "block.do-dont-guidelines.property.image",
568
- "block.do-dont-guidelines.property.description",
569
- ],
570
- columnAlign: "Start",
571
- columnResizing: "Fill",
572
- gap: "Medium",
573
- },
574
- maxColumns: 3,
575
- defaultColumns: 1,
576
- appearance: { isEditorPresentationDifferent: true },
577
- },
578
- {
579
- id: "side-border",
580
- name: "Side border",
581
- image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-side-border.svg",
582
- description: "The side border makes this variant well-suited for longer text guidelines.",
583
- layout: {
584
- type: "Column",
585
- children: [
586
- "block.do-dont-guidelines.property.type",
587
- "block.do-dont-guidelines.property.image",
588
- "block.do-dont-guidelines.property.description",
589
- ],
590
- columnAlign: "Start",
591
- columnResizing: "Fill",
592
- gap: "Medium",
593
- },
594
- maxColumns: 3,
595
- defaultColumns: 1,
596
- appearance: { isEditorPresentationDifferent: true },
597
- },
598
- ],
599
- defaultVariantKey: "simple",
600
- },
601
- behavior: {
602
- dataType: "Item",
603
- items: { numberOfItems: -1, allowLinks: false, newItemLabel: "Add guideline" },
604
- },
605
- editorOptions: {
606
- onboarding: {
607
- helpText: "Use link block to document your Do/Don't guidelines for your components and patterns.",
608
- documentationLink:
609
- "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4",
610
- },
611
- newItemLabel: "Add guideline",
612
- },
613
- appearance: {
614
- isBordered: true,
615
- hasBackground: false,
616
- isEditorPresentationDifferent: false,
617
- showBlockHeaderInEditor: false,
618
- },
619
- },
620
- {
621
- id: "io.supernova.block.divider",
622
- name: "Divider",
623
- description: "A section divider",
624
- category: "Layout",
625
- icon: "https://cdn-assets.supernova.io/blocks/icons/divider.svg",
626
- searchKeywords: ["hr", "line", "rule", "separator"],
627
- item: {
628
- properties: [{ id: "divider", name: "Divider", type: "Divider", options: {} }],
629
- appearance: { isBordered: true, hasBackground: false },
630
- variants: [
631
- {
632
- id: "default",
633
- name: "Default",
634
- layout: {
635
- type: "Column",
636
- children: ["divider"],
637
- columnAlign: "Start",
638
- columnResizing: "Fill",
639
- gap: "Medium",
640
- },
641
- maxColumns: 1,
642
- defaultColumns: 1,
643
- appearance: {},
644
- },
645
- ],
646
- defaultVariantKey: "default",
647
- },
648
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
649
- editorOptions: {
650
- onboarding: {
651
- helpText: "A thematic break or horizontal rule, often used to separate content or define a change in topic.",
652
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/divider-tLuxooLH",
653
- },
654
- },
655
- appearance: {
656
- isBordered: true,
657
- hasBackground: false,
658
- isEditorPresentationDifferent: false,
659
- showBlockHeaderInEditor: false,
660
- },
661
- },
662
- {
663
- id: "io.supernova.block.blockquote",
664
- name: "Quote",
665
- description: "Display a quotation",
666
- category: "Text",
667
- icon: "https://cdn-assets.supernova.io/blocks/icons/blockquote.svg",
668
- searchKeywords: ["cite", "blockquote"],
669
- item: {
670
- properties: [
671
- {
672
- id: "text",
673
- name: "Text",
674
- type: "RichText",
675
- options: { placeholder: "Write a quote...", richTextStyle: "Quote" },
676
- },
677
- ],
678
- appearance: { isBordered: true, hasBackground: false },
679
- variants: [
680
- {
681
- id: "default",
682
- name: "Default",
683
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
684
- maxColumns: 1,
685
- defaultColumns: 1,
686
- appearance: {},
687
- },
688
- ],
689
- defaultVariantKey: "default",
690
- },
691
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
692
- editorOptions: {
693
- onboarding: {
694
- helpText: "Use a blockquote to set off a quotation or cited content from the main text.",
695
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/blockquote-zYWAsb6X",
696
- },
697
- },
698
- appearance: {
699
- isBordered: true,
700
- hasBackground: false,
701
- isEditorPresentationDifferent: false,
702
- showBlockHeaderInEditor: false,
703
- },
704
- },
705
- {
706
- id: "io.supernova.block.callout",
707
- name: "Callout",
708
- description: "Highlight a section of text",
709
- category: "Text",
710
- icon: "https://cdn-assets.supernova.io/blocks/icons/v3/callout.svg",
711
- searchKeywords: ["banner", "alert", "note", "tip", "warning"],
712
- item: {
713
- properties: [
714
- {
715
- id: "text",
716
- name: "Text",
717
- type: "RichText",
718
- options: { placeholder: "Highlight some information...", richTextStyle: "Callout" },
719
- },
720
- ],
721
- appearance: { isBordered: true, hasBackground: false },
722
- variants: [
723
- {
724
- id: "default",
725
- name: "Default",
726
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
727
- maxColumns: 1,
728
- defaultColumns: 1,
729
- appearance: {},
730
- },
731
- ],
732
- defaultVariantKey: "default",
733
- },
734
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
735
- editorOptions: {
736
- onboarding: {
737
- helpText: "Use to highlight a section of text.",
738
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/callout-ZPlZObD1",
739
- },
740
- },
741
- appearance: {
742
- isBordered: true,
743
- hasBackground: false,
744
- isEditorPresentationDifferent: false,
745
- showBlockHeaderInEditor: false,
746
- },
747
- },
748
- {
749
- id: "io.supernova.block.image",
750
- name: "Image",
751
- description: "Display an image or Figma image",
752
- category: "Media",
753
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/image.svg",
754
- searchKeywords: ["image", "figma", "frame", "picture", "photo"],
755
- item: {
756
- properties: [
757
- {
758
- id: "image",
759
- name: "Image",
760
- type: "Image",
761
- options: { allowCaption: true },
762
- },
763
- ],
764
- appearance: { isBordered: true, hasBackground: false },
765
- variants: [
766
- {
767
- id: "default",
768
- name: "Default",
769
- layout: { type: "Column", children: ["image"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
770
- maxColumns: 1,
771
- defaultColumns: 1,
772
- appearance: {},
773
- },
774
- ],
775
- defaultVariantKey: "default",
776
- },
777
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
778
- editorOptions: {
779
- onboarding: {
780
- helpText: "Use to display an image or Figma image.",
781
- documentationLink:
782
- "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/image-Ue8VdT8B",
783
- },
784
- },
785
- appearance: {
786
- isBordered: false,
787
- hasBackground: false,
788
- isEditorPresentationDifferent: false,
789
- showBlockHeaderInEditor: false,
790
- },
791
- },
792
- {
793
- id: "io.supernova.block.shortcut-links",
794
- name: "Shortcut links",
795
- description: "Link to a page or external URL",
796
- category: "Media",
797
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/shortcuts.svg",
798
- searchKeywords: ["url", "page", "card"],
799
- item: {
800
- properties: [
801
- {
802
- id: "block.links.property.image",
803
- name: "Image",
804
- type: "Image",
805
- options: { aspectRatio: "Landscape", allowCaption: false },
806
- variantOptions: {
807
- iconOnTop: { width: "Icon", aspectRatio: "Square" },
808
- imageOnLeft: { width: "Medium" },
809
- iconOnLeft: { width: "Icon", aspectRatio: "Square" },
810
- },
811
- },
812
- {
813
- id: "block.links.property.title",
814
- name: "Title",
815
- type: "Text",
816
- options: { textStyle: "Title5", placeholder: "Add title", allowLineBreaks: false },
817
- },
818
- {
819
- id: "block.links.property.description",
820
- name: "Short description",
821
- type: "Text",
822
- options: { textStyle: "Default", color: "NeutralFaded", placeholder: "Add description" },
823
- },
824
- ],
825
- appearance: { isBordered: true, hasBackground: false },
826
- variants: [
827
- {
828
- id: "imageOnTop",
829
- name: "Image on top",
830
- image: "https://cdn-assets.supernova.io/blocks/variants/shortcuts-image-on-top.svg",
831
- layout: {
832
- type: "Column",
833
- children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"],
834
- columnAlign: "Start",
835
- columnResizing: "Fill",
836
- gap: "Medium",
837
- },
838
- maxColumns: 4,
839
- defaultColumns: 3,
840
- appearance: {},
841
- },
842
- {
843
- id: "imageOnLeft",
844
- name: "Image on left",
845
- image: "https://cdn-assets.supernova.io/blocks/variants/shortcuts-leading-image.svg",
846
- layout: {
847
- type: "Row",
848
- children: [
849
- {
850
- type: "Column",
851
- children: ["block.links.property.image"],
852
- columnAlign: "Start",
853
- columnResizing: "Hug",
854
- gap: "Medium",
855
- },
856
- {
857
- type: "Column",
858
- children: ["block.links.property.title", "block.links.property.description"],
859
- columnAlign: "Start",
860
- columnResizing: "Fill",
861
- gap: "Small",
862
- },
863
- ],
864
- columnAlign: "Start",
865
- columnResizing: "Fill",
866
- gap: "Medium",
867
- },
868
- maxColumns: 1,
869
- defaultColumns: 1,
870
- appearance: {},
871
- },
872
- {
873
- id: "iconOnTop",
874
- name: "Icon on top",
875
- image: "https://cdn-assets.supernova.io/blocks/variants/shortcuts-icon-on-top.svg",
876
- layout: {
877
- type: "Column",
878
- children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"],
879
- columnAlign: "Start",
880
- columnResizing: "Fill",
881
- gap: "Medium",
882
- },
883
- maxColumns: 4,
884
- defaultColumns: 1,
885
- appearance: {},
886
- },
887
- {
888
- id: "iconOnLeft",
889
- name: "Icon on left",
890
- image: "https://cdn-assets.supernova.io/blocks/variants/shortcuts-leading-icon.svg",
891
- layout: {
892
- type: "Row",
893
- children: [
894
- {
895
- type: "Column",
896
- children: ["block.links.property.image"],
897
- columnAlign: "Start",
898
- columnResizing: "Hug",
899
- gap: "Medium",
900
- },
901
- {
902
- type: "Column",
903
- children: ["block.links.property.title", "block.links.property.description"],
904
- columnAlign: "Start",
905
- columnResizing: "Fill",
906
- gap: "Small",
907
- },
908
- ],
909
- columnAlign: "Start",
910
- columnResizing: "Fill",
911
- gap: "Medium",
912
- },
913
- maxColumns: 2,
914
- defaultColumns: 1,
915
- appearance: {},
916
- },
917
- ],
918
- defaultVariantKey: "imageOnTop",
919
- },
920
- behavior: {
921
- dataType: "Item",
922
- items: { numberOfItems: -1, allowLinks: true, newItemLabel: "Add shortcut" },
923
- },
924
- editorOptions: {
925
- onboarding: {
926
- helpText: "Use link block to create single or multiple links to places in or out of your documentation.",
927
- documentationLink:
928
- "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4",
929
- },
930
- newItemLabel: "Add shortcut",
931
- },
932
- appearance: {
933
- isBordered: true,
934
- hasBackground: false,
935
- isEditorPresentationDifferent: false,
936
- showBlockHeaderInEditor: false,
937
- },
938
- },
939
- {
940
- id: "io.supernova.block.embed-figma",
941
- name: "Figma embed",
942
- description: "Embed a Figma canvas or prototype",
943
- category: "Media",
944
- icon: "https://cdn-assets.supernova.io/blocks/icons/embed-figma.svg",
945
- searchKeywords: ["embed", "figma", "design", "prototype", "canvas"],
946
- item: {
947
- properties: [
948
- {
949
- id: "embed",
950
- name: "Figma URL",
951
- type: "EmbedURL",
952
- options: {
953
- allowCaption: false,
954
- allowResize: true,
955
- defaultHeight: 400,
956
- urlValidationRegex: "^(https?://)?(www.)?(figma.com)/.+$",
957
- },
958
- },
959
- ],
960
- appearance: { isBordered: true, hasBackground: false },
961
- variants: [
962
- {
963
- id: "default",
964
- name: "Default",
965
- layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
966
- maxColumns: 1,
967
- defaultColumns: 1,
968
- appearance: {},
969
- },
970
- ],
971
- defaultVariantKey: "default",
972
- },
973
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
974
- editorOptions: {
975
- onboarding: {
976
- helpText: "Embed a Figma canvas or prototype to your documentation.",
977
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/embed-figma-GPNJsT8A",
978
- },
979
- },
980
- appearance: {
981
- isBordered: true,
982
- hasBackground: false,
983
- isEditorPresentationDifferent: false,
984
- showBlockHeaderInEditor: false,
985
- },
986
- },
987
- {
988
- id: "io.supernova.block.storybook",
989
- name: "Storybook",
990
- description: "Embed Storybook canvas",
991
- category: "Media",
992
- icon: "https://cdn-assets.supernova.io/blocks/icons/storybook.svg",
993
- searchKeywords: ["storybook", "story", "stories", "example", "preview", "code", "react"],
994
- item: {
995
- properties: [
996
- {
997
- id: "embed",
998
- name: "Storybook URL",
999
- type: "Storybook",
1000
- options: { allowCaption: true, allowResize: true, defaultHeight: 400 },
1001
- },
1002
- ],
1003
- appearance: { isBordered: true, hasBackground: false },
1004
- variants: [
1005
- {
1006
- id: "default",
1007
- name: "Default",
1008
- layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1009
- maxColumns: 1,
1010
- defaultColumns: 1,
1011
- appearance: {},
1012
- },
1013
- ],
1014
- defaultVariantKey: "default",
1015
- },
1016
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1017
- editorOptions: {
1018
- onboarding: {
1019
- helpText: "Embed a Storybook story to your documentation.",
1020
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/storybook-1EGPhwBl",
1021
- },
1022
- },
1023
- appearance: {
1024
- isBordered: true,
1025
- hasBackground: false,
1026
- isEditorPresentationDifferent: false,
1027
- showBlockHeaderInEditor: false,
1028
- },
1029
- },
1030
- {
1031
- id: "io.supernova.block.embed-youtube",
1032
- name: "YouTube",
1033
- description: "Embed a Youtube video",
1034
- category: "Media",
1035
- icon: "https://cdn-assets.supernova.io/blocks/icons/embed-youtube.svg",
1036
- searchKeywords: ["embed", "video", "player", "upload"],
1037
- item: {
1038
- properties: [
1039
- {
1040
- id: "embed",
1041
- name: "Youtube URL",
1042
- type: "EmbedURL",
1043
- options: {
1044
- allowCaption: false,
1045
- allowResize: false,
1046
- defaultHeight: 400,
1047
- urlValidationRegex: "^(https?://)?(www.)?(youtube.com|youtu.?be)/.+$",
1048
- },
1049
- },
1050
- ],
1051
- appearance: { isBordered: true, hasBackground: false },
1052
- variants: [
1053
- {
1054
- id: "default",
1055
- name: "Default",
1056
- layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1057
- maxColumns: 1,
1058
- defaultColumns: 1,
1059
- appearance: {},
1060
- },
1061
- ],
1062
- defaultVariantKey: "default",
1063
- },
1064
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1065
- editorOptions: {
1066
- onboarding: {
1067
- helpText: "Embed a YouTube video to your documentation.",
1068
- documentationLink:
1069
- "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/youtube-Gh8VUrSF",
1070
- },
1071
- },
1072
- appearance: {
1073
- isBordered: true,
1074
- hasBackground: false,
1075
- isEditorPresentationDifferent: false,
1076
- showBlockHeaderInEditor: false,
1077
- },
1078
- },
1079
- {
1080
- id: "io.supernova.block.embed-lottie",
1081
- name: "Lottie animation",
1082
- description: "Preview a Lottie animation",
1083
- category: "Media",
1084
- icon: "https://cdn-assets.supernova.io/blocks/icons/lottie.svg",
1085
- searchKeywords: ["embed", "lottie", "animation", "rive", "json"],
1086
- item: {
1087
- properties: [
1088
- {
1089
- id: "url",
1090
- name: "Lottie URL",
1091
- type: "URL",
1092
- description: "Add URL to your Lottie animation file. We support .json and .lottie file extensions.",
1093
- options: { urlValidationRegex: "^(http|https)://.*.(json|lottie)$" },
1094
- },
1095
- {
1096
- id: "height",
1097
- name: "Height",
1098
- type: "Number",
1099
- options: { defaultValue: 270 },
1100
- },
1101
- {
1102
- id: "width",
1103
- name: "Width",
1104
- type: "Number",
1105
- options: { defaultValue: 400 },
1106
- },
1107
- {
1108
- id: "autoplay",
1109
- name: "Autoplay",
1110
- type: "Boolean",
1111
- options: { defaultValue: true },
1112
- },
1113
- {
1114
- id: "loop",
1115
- name: "Loop",
1116
- type: "Boolean",
1117
- options: { defaultValue: true },
1118
- },
1119
- {
1120
- id: "playerControls",
1121
- name: "Show player controls",
1122
- type: "Boolean",
1123
- options: { defaultValue: true },
1124
- },
1125
- ],
1126
- appearance: { isBordered: true, hasBackground: false },
1127
- variants: [
1128
- {
1129
- id: "default",
1130
- name: "Default",
1131
- image: "https://cdn-assets.supernova.io/blocks/variants/lottie-player.svg",
1132
- description: "Embed a Lottie animation to your documentation.",
1133
- layout: {
1134
- type: "Column",
1135
- children: ["url", "height", "width", "autoplay", "loop", "playerControls"],
1136
- columnAlign: "Start",
1137
- columnResizing: "Fill",
1138
- gap: "Medium",
1139
- },
1140
- maxColumns: 1,
1141
- defaultColumns: 1,
1142
- appearance: {},
1143
- },
1144
- ],
1145
- defaultVariantKey: "default",
1146
- },
1147
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1148
- editorOptions: {
1149
- onboarding: {
1150
- helpText: "Embed a Lottie animation to your documentation.",
1151
- documentationLink:
1152
- "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/lottie-preview-7CqFdGv9",
1153
- },
1154
- },
1155
- appearance: {
1156
- isBordered: true,
1157
- hasBackground: false,
1158
- isEditorPresentationDifferent: true,
1159
- showBlockHeaderInEditor: true,
1160
- },
1161
- },
1162
- {
1163
- id: "io.supernova.block.embed",
1164
- name: "Embed",
1165
- description: "Embed a generic URL",
1166
- category: "Media",
1167
- icon: "https://cdn-assets.supernova.io/blocks/icons/embed.svg",
1168
- searchKeywords: ["embed", "url", "iframe", "site", "import"],
1169
- item: {
1170
- properties: [
1171
- {
1172
- id: "embedUrl",
1173
- name: "Embed URL",
1174
- type: "EmbedURL",
1175
- options: {
1176
- allowCaption: true,
1177
- allowResize: true,
1178
- defaultHeight: 400,
1179
- urlValidationRegex: "^(https?://)?(www.)?.+$",
1180
- },
1181
- },
1182
- ],
1183
- appearance: { isBordered: true, hasBackground: false },
1184
- variants: [
1185
- {
1186
- id: "default",
1187
- name: "Default",
1188
- layout: {
1189
- type: "Column",
1190
- children: ["embedUrl"],
1191
- columnAlign: "Start",
1192
- columnResizing: "Fill",
1193
- gap: "Medium",
1194
- },
1195
- maxColumns: 1,
1196
- defaultColumns: 1,
1197
- appearance: {},
1198
- },
1199
- ],
1200
- defaultVariantKey: "default",
1201
- },
1202
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1203
- editorOptions: {
1204
- onboarding: {
1205
- helpText: "Embed any page to your documentation as an iframe.",
1206
- documentationLink:
1207
- "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/embed/public-url-2ZeRQ332",
1208
- },
1209
- },
1210
- appearance: {
1211
- isBordered: true,
1212
- hasBackground: false,
1213
- isEditorPresentationDifferent: false,
1214
- showBlockHeaderInEditor: false,
1215
- },
1216
- },
1217
- {
1218
- id: "io.supernova.block.markdown",
1219
- name: "Markdown",
1220
- description: "Render Markdown URL",
1221
- category: "Other",
1222
- icon: "https://cdn-assets.supernova.io/blocks/icons/markdown.svg",
1223
- searchKeywords: ["md", "embed", "api", "props", "mdx"],
1224
- item: {
1225
- properties: [
1226
- {
1227
- id: "markdownUrl",
1228
- name: "Markdown URL",
1229
- type: "Markdown",
1230
- options: { urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$" },
1231
- },
1232
- ],
1233
- appearance: { isBordered: true, hasBackground: false },
1234
- variants: [
1235
- {
1236
- id: "plain",
1237
- name: "Plain",
1238
- image: "https://cdn-assets.supernova.io/blocks/variants/markdown-plain.svg",
1239
- layout: {
1240
- type: "Column",
1241
- children: ["markdownUrl"],
1242
- columnAlign: "Start",
1243
- columnResizing: "Fill",
1244
- gap: "Medium",
1245
- },
1246
- maxColumns: 1,
1247
- defaultColumns: 1,
1248
- appearance: {},
1249
- },
1250
- {
1251
- id: "bordered",
1252
- name: "Bordered",
1253
- image: "https://cdn-assets.supernova.io/blocks/variants/markdown-bordered.svg",
1254
- layout: {
1255
- type: "Column",
1256
- children: ["markdownUrl"],
1257
- columnAlign: "Start",
1258
- columnResizing: "Fill",
1259
- gap: "Medium",
1260
- },
1261
- maxColumns: 1,
1262
- defaultColumns: 1,
1263
- appearance: {},
1264
- },
1265
- {
1266
- id: "boxed",
1267
- name: "Boxed",
1268
- image: "https://cdn-assets.supernova.io/blocks/variants/markdown-boxed.svg",
1269
- layout: {
1270
- type: "Column",
1271
- children: ["markdownUrl"],
1272
- columnAlign: "Start",
1273
- columnResizing: "Fill",
1274
- gap: "Medium",
1275
- },
1276
- maxColumns: 1,
1277
- defaultColumns: 1,
1278
- appearance: {},
1279
- },
1280
- ],
1281
- defaultVariantKey: "plain",
1282
- },
1283
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1284
- editorOptions: {
1285
- onboarding: {
1286
- helpText: "Render any markdown file directly inside of your documentation.",
1287
- documentationLink:
1288
- "https://learn.supernova.io/latest/documentation/types-of-blocks/code/markdown/general-B8wQVOem",
1289
- },
1290
- },
1291
- appearance: {
1292
- isBordered: true,
1293
- hasBackground: false,
1294
- isEditorPresentationDifferent: true,
1295
- showBlockHeaderInEditor: false,
1296
- },
1297
- },
1298
- {
1299
- id: "io.supernova.block.table",
1300
- name: "Table",
1301
- description: "Display a simple table",
1302
- category: "Layout",
1303
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/table.svg",
1304
- searchKeywords: ["grid", "data", "spreadsheet", "api"],
1305
- item: {
1306
- properties: [{ id: "table", name: "Table", type: "Table", options: {} }],
1307
- appearance: { isBordered: true, hasBackground: false },
1308
- variants: [
1309
- {
1310
- id: "default",
1311
- name: "Default",
1312
- layout: { type: "Column", children: ["table"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1313
- maxColumns: 1,
1314
- defaultColumns: 1,
1315
- appearance: {},
1316
- },
1317
- ],
1318
- defaultVariantKey: "default",
1319
- },
1320
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1321
- editorOptions: {
1322
- onboarding: {
1323
- helpText: "Use for displaying data in a tabular format.",
1324
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/layout/table-R8KGnxej",
1325
- },
1326
- },
1327
- appearance: {
1328
- isBordered: true,
1329
- hasBackground: false,
1330
- isEditorPresentationDifferent: false,
1331
- showBlockHeaderInEditor: false,
1332
- },
1333
- },
1334
- {
1335
- id: "io.supernova.block.design-tokens",
1336
- name: "Design tokens",
1337
- description: "A list of design tokens",
1338
- category: "Tokens",
1339
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/design-tokens.svg",
1340
- searchKeywords: [
1341
- "tokens",
1342
- "color",
1343
- "typography",
1344
- "spacing",
1345
- "grid",
1346
- "material",
1347
- "theme",
1348
- "token list",
1349
- "token group",
1350
- ],
1351
- item: {
1352
- properties: [
1353
- {
1354
- id: "tokens",
1355
- name: "Tokens",
1356
- type: "Token",
1357
- options: { renderLayoutAs: "List", defaultTheme: "none", defaultValuePreview: "Split" },
1358
- variantOptions: { grid: { renderLayoutAs: "Grid" } },
1359
- },
1360
- ],
1361
- appearance: { isBordered: true, hasBackground: false },
1362
- variants: [
1363
- {
1364
- id: "table",
1365
- name: "Table",
1366
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
1367
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1368
- maxColumns: 1,
1369
- defaultColumns: 1,
1370
- appearance: {},
1371
- },
1372
- {
1373
- id: "grid",
1374
- name: "Grid",
1375
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
1376
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1377
- maxColumns: 4,
1378
- defaultColumns: 1,
1379
- appearance: {},
1380
- },
1381
- ],
1382
- defaultVariantKey: "table",
1383
- },
1384
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1385
- editorOptions: {
1386
- onboarding: {
1387
- helpText: "Show a group of design tokens. Automatically display all subgroups too.",
1388
- documentationLink:
1389
- "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09",
1390
- },
1391
- },
1392
- appearance: {
1393
- isBordered: true,
1394
- hasBackground: false,
1395
- isEditorPresentationDifferent: false,
1396
- showBlockHeaderInEditor: false,
1397
- },
1398
- },
1399
- {
1400
- id: "io.supernova.block.token-color-ramps",
1401
- name: "Color ramps",
1402
- description: "The best way to display colors",
1403
- category: "Tokens",
1404
- icon: "https://cdn-assets.supernova.io/blocks/icons/color-ramp.svg",
1405
- searchKeywords: ["tokens", "ramp", "shades", "palette", "spectrum", "stack", "range", "swatch"],
1406
- item: {
1407
- properties: [
1408
- {
1409
- id: "tokens",
1410
- name: "Tokens",
1411
- type: "Token",
1412
- options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: true },
1413
- },
1414
- ],
1415
- appearance: { isBordered: true, hasBackground: false },
1416
- variants: [
1417
- {
1418
- id: "default",
1419
- name: "Default",
1420
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
1421
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1422
- maxColumns: 2,
1423
- defaultColumns: 1,
1424
- appearance: { isEditorPresentationDifferent: true },
1425
- },
1426
- ],
1427
- defaultVariantKey: "default",
1428
- },
1429
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1430
- editorOptions: {
1431
- onboarding: { helpText: "The best way to display colors", documentationLink: "https://learn.supernova.io" },
1432
- },
1433
- appearance: {
1434
- isBordered: true,
1435
- hasBackground: false,
1436
- isEditorPresentationDifferent: false,
1437
- showBlockHeaderInEditor: false,
1438
- },
1439
- },
1440
- {
1441
- id: "io.supernova.block.color-accessibility-grid",
1442
- name: "Accessibility color grid",
1443
- description: "Visualize accessibility of your color tokens",
1444
- category: "Tokens",
1445
- icon: "https://cdn-assets.supernova.io/blocks/icons/v3/token-accessibility-grid.svg",
1446
- searchKeywords: ["tokens", "color", "accessibility", "grid", "contrast"],
1447
- item: {
1448
- properties: [
1449
- {
1450
- id: "tokens",
1451
- name: "Tokens",
1452
- type: "Token",
1453
- options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: false },
1454
- },
1455
- ],
1456
- appearance: { isBordered: true, hasBackground: false },
1457
- variants: [
1458
- {
1459
- id: "default",
1460
- name: "Default",
1461
- image: "https://cdn-assets.supernova.io/blocks/variants/contrast-grid-large.svg",
1462
- description:
1463
- "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
1464
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1465
- maxColumns: 1,
1466
- defaultColumns: 1,
1467
- appearance: { isEditorPresentationDifferent: true },
1468
- },
1469
- ],
1470
- defaultVariantKey: "default",
1471
- },
1472
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1473
- editorOptions: {
1474
- onboarding: {
1475
- helpText: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
1476
- documentationLink: "https://learn.supernova.io",
1477
- },
1478
- },
1479
- appearance: {
1480
- isBordered: true,
1481
- hasBackground: false,
1482
- isEditorPresentationDifferent: false,
1483
- showBlockHeaderInEditor: false,
1484
- },
1485
- },
1486
- {
1487
- id: "io.supernova.block.code",
1488
- name: "Code",
1489
- description: "Display simple code examples",
1490
- category: "Code",
1491
- icon: "https://cdn-assets.supernova.io/blocks/icons/code.svg",
1492
- searchKeywords: ["code"],
1493
- item: {
1494
- properties: [
1495
- {
1496
- id: "code",
1497
- name: "Code",
1498
- type: "Code",
1499
- options: {},
1500
- },
1501
- ],
1502
- appearance: {
1503
- isBordered: true,
1504
- hasBackground: false,
1505
- },
1506
- variants: [
1507
- {
1508
- id: "default",
1509
- name: "Default",
1510
- layout: {
1511
- type: "Column",
1512
- children: ["code"],
1513
- columnAlign: "Start",
1514
- columnResizing: "Fill",
1515
- gap: "Medium",
1516
- },
1517
- maxColumns: 1,
1518
- defaultColumns: 1,
1519
- appearance: {},
1520
- },
1521
- ],
1522
- defaultVariantKey: "default",
1523
- },
1524
- behavior: {
1525
- dataType: "Item",
1526
- items: {
1527
- numberOfItems: 1,
1528
- allowLinks: false,
1529
- },
1530
- },
1531
- editorOptions: {
1532
- onboarding: {
1533
- helpText: "Display simple code examples",
1534
- },
1535
- },
1536
- appearance: {
1537
- isBordered: false,
1538
- hasBackground: false,
1539
- isEditorPresentationDifferent: false,
1540
- showBlockHeaderInEditor: false,
1541
- },
1542
- },
1543
- {
1544
- id: "io.supernova.block.code-react",
1545
- name: "React code",
1546
- description: "Render a code snippet",
1547
- category: "Code",
1548
- icon: "https://cdn-assets.supernova.io/blocks/icons/v3/code-react.svg",
1549
- searchKeywords: ["code", "react", "snippet", "storybook", "editor", "example", "sandbox"],
1550
- item: {
1551
- properties: [
1552
- {
1553
- id: "code",
1554
- name: "Code",
1555
- type: "CodeSandbox",
1556
- options: { renderLayoutAs: "PreviewOnTop" },
1557
- variantOptions: {
1558
- codeTop: { renderLayoutAs: "PreviewOnBottom" },
1559
- codeLeft: { renderLayoutAs: "PreviewOnRight" },
1560
- codeRight: { renderLayoutAs: "PreviewOnLeft" },
1561
- },
1562
- },
1563
- ],
1564
- appearance: { isBordered: true, hasBackground: false },
1565
- variants: [
1566
- {
1567
- id: "codeBottom",
1568
- name: "Full width, code bottom",
1569
- image: "https://cdn-assets.supernova.io/blocks/variants/react-code-bottom.svg",
1570
- description: "Full-width block of code, with a preview on top.",
1571
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1572
- maxColumns: 1,
1573
- defaultColumns: 1,
1574
- appearance: {},
1575
- },
1576
- {
1577
- id: "codeTop",
1578
- name: "Full width, code top",
1579
- image: "https://cdn-assets.supernova.io/blocks/variants/react-code-top.svg",
1580
- description: "Full-width block of code, with a preview on bottom.",
1581
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1582
- maxColumns: 1,
1583
- defaultColumns: 1,
1584
- appearance: {},
1585
- },
1586
- {
1587
- id: "codeLeft",
1588
- name: "Side by side, code left",
1589
- image: "https://cdn-assets.supernova.io/blocks/variants/react-code-left.svg",
1590
- description: "Side-by-side preview and code, with code on the left.",
1591
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1592
- maxColumns: 1,
1593
- defaultColumns: 1,
1594
- appearance: {},
1595
- },
1596
- {
1597
- id: "codeRight",
1598
- name: "Side by side, code right",
1599
- image: "https://cdn-assets.supernova.io/blocks/variants/react-code-right.svg",
1600
- description: "Side-by-side preview and code, with code on the right.",
1601
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1602
- maxColumns: 1,
1603
- defaultColumns: 1,
1604
- appearance: {},
1605
- },
1606
- ],
1607
- defaultVariantKey: "codeBottom",
1608
- },
1609
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1610
- editorOptions: {
1611
- onboarding: {
1612
- helpText: "Display rendered code example",
1613
- documentationLink:
1614
- "https://learn.supernova.io/latest/documentation/types-of-blocks/code/render-react-code-vxufnkFm",
1615
- },
1616
- },
1617
- appearance: {
1618
- isBordered: false,
1619
- hasBackground: false,
1620
- isEditorPresentationDifferent: false,
1621
- showBlockHeaderInEditor: false,
1622
- },
1623
- },
1624
- {
1625
- id: "io.supernova.block.assets",
1626
- name: "Assets",
1627
- description: "Display icons or illustrations",
1628
- category: "Assets",
1629
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
1630
- searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
1631
- item: {
1632
- properties: [{ id: "assets", name: "Assets", type: "Asset", options: {} }],
1633
- appearance: { isBordered: true, hasBackground: false },
1634
- variants: [
1635
- {
1636
- id: "default",
1637
- name: "Simple grid",
1638
- image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
1639
- description: "A simple grid of assets. Both the title and description are displayed below the preview.",
1640
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1641
- maxColumns: 8,
1642
- defaultColumns: 1,
1643
- appearance: {},
1644
- },
1645
- {
1646
- id: "square-grid",
1647
- name: "Square grid",
1648
- image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
1649
- description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
1650
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1651
- maxColumns: 8,
1652
- defaultColumns: 1,
1653
- appearance: { isEditorPresentationDifferent: true },
1654
- },
1655
- {
1656
- id: "borderless-grid",
1657
- name: "Borderless grid",
1658
- image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
1659
- description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
1660
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1661
- maxColumns: 8,
1662
- defaultColumns: 1,
1663
- appearance: { isEditorPresentationDifferent: true },
1664
- },
1665
- ],
1666
- defaultVariantKey: "default",
1667
- },
1668
- behavior: { dataType: "Asset", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1669
- editorOptions: {
1670
- onboarding: {
1671
- helpText: "Display a grid of icons or illustrations.",
1672
- documentationLink:
1673
- "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/asset/general-xa6EgXb2",
1674
- },
1675
- },
1676
- appearance: {
1677
- isBordered: true,
1678
- hasBackground: false,
1679
- isEditorPresentationDifferent: false,
1680
- showBlockHeaderInEditor: false,
1681
- },
1682
- },
1683
- {
1684
- id: "io.supernova.block.figma-frames",
1685
- name: "Figma images",
1686
- description: "Generate images from Figma layers",
1687
- category: "Figma",
1688
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/figma-frames.svg",
1689
- searchKeywords: ["figma", "frames", "image", "layer"],
1690
- item: {
1691
- properties: [
1692
- {
1693
- id: "figmaNodes",
1694
- name: "Figma Frames",
1695
- type: "FigmaNode",
1696
- options: {},
1697
- },
1698
- ],
1699
- appearance: { isBordered: true, hasBackground: false },
1700
- variants: [
1701
- {
1702
- id: "bordered",
1703
- name: "Bordered",
1704
- image: "https://cdn-assets.supernova.io/blocks/variants/figma-nodes-boxed.svg",
1705
- description: "Tiles with background and border, great for larger sets of frames.",
1706
- layout: {
1707
- type: "Column",
1708
- children: ["figmaNodes"],
1709
- columnAlign: "Start",
1710
- columnResizing: "Fill",
1711
- gap: "Medium",
1712
- },
1713
- maxColumns: 8,
1714
- defaultColumns: 1,
1715
- appearance: {},
1716
- },
1717
- {
1718
- id: "plain",
1719
- name: "Plain",
1720
- image: "https://cdn-assets.supernova.io/blocks/variants/figma-nodes-plain.svg",
1721
- description: "Frame as it is in Figma with no extra formatting, great for single images.",
1722
- layout: {
1723
- type: "Column",
1724
- children: ["figmaNodes"],
1725
- columnAlign: "Start",
1726
- columnResizing: "Fill",
1727
- gap: "Medium",
1728
- },
1729
- maxColumns: 8,
1730
- defaultColumns: 1,
1731
- appearance: {},
1732
- },
1733
- ],
1734
- defaultVariantKey: "bordered",
1735
- },
1736
- behavior: { dataType: "FigmaNode", entities: { selectionType: "Entity", maxSelected: 0 } },
1737
- editorOptions: {
1738
- onboarding: {
1739
- helpText: "Generate images from Figma layers",
1740
- documentationLink:
1741
- "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/figma-frames/general-f3IYC5dg",
1742
- },
1743
- },
1744
- appearance: {
1745
- isBordered: true,
1746
- hasBackground: false,
1747
- isEditorPresentationDifferent: false,
1748
- showBlockHeaderInEditor: false,
1749
- },
1750
- },
1751
- {
1752
- id: "io.supernova.block.release-notes",
1753
- name: "Release notes",
1754
- description: "Show version release notes",
1755
- category: "Other",
1756
- icon: "https://cdn-assets.supernova.io/blocks/icons/release-notes.svg",
1757
- searchKeywords: ["version", "changelog", "history"],
1758
- item: {
1759
- properties: [],
1760
- appearance: { isBordered: true, hasBackground: false },
1761
- variants: [
1762
- {
1763
- id: "default",
1764
- name: "Default",
1765
- image: "https://cdn-assets.supernova.io/blocks/variants/release-notes-2.svg",
1766
- description: "Show formatted release notes from all previously released versions.",
1767
- layout: { type: "Column", children: [], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1768
- maxColumns: 1,
1769
- defaultColumns: 1,
1770
- appearance: {},
1771
- },
1772
- ],
1773
- defaultVariantKey: "default",
1774
- },
1775
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1776
- editorOptions: {
1777
- onboarding: {
1778
- helpText: "Show formatted release notes from all previously released versions.",
1779
- },
1780
- },
1781
- appearance: {
1782
- isBordered: true,
1783
- hasBackground: false,
1784
- isEditorPresentationDifferent: true,
1785
- showBlockHeaderInEditor: true,
1786
- },
1787
- },
1788
- {
1789
- id: "io.supernova.block.component-checklist",
1790
- name: "Component checklist",
1791
- description: "Highlight specific component properties",
1792
- category: "Components",
1793
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/component-checklist.svg",
1794
- searchKeywords: ["components", "health", "properties", "overview", "status"],
1795
- item: {
1796
- properties: [
1797
- {
1798
- id: "components",
1799
- name: "Components",
1800
- type: "Component",
1801
- options: { renderLayoutAs: "List" },
1802
- },
1803
- {
1804
- id: "title",
1805
- name: "Title",
1806
- type: "Text",
1807
- options: { defaultValue: "Component checklist" },
1808
- },
1809
- {
1810
- id: "showDescription",
1811
- name: "Show description",
1812
- type: "Boolean",
1813
- options: { defaultValue: true },
1814
- },
1815
- ],
1816
- appearance: { isBordered: true, hasBackground: false },
1817
- variants: [
1818
- {
1819
- id: "default",
1820
- name: "Default",
1821
- image: "https://cdn-assets.supernova.io/blocks/variants/component-checklist.svg",
1822
- layout: {
1823
- type: "Column",
1824
- children: ["components", "showDescription"],
1825
- columnAlign: "Start",
1826
- columnResizing: "Fill",
1827
- gap: "Medium",
1828
- },
1829
- maxColumns: 1,
1830
- defaultColumns: 1,
1831
- appearance: { isEditorPresentationDifferent: true },
1832
- },
1833
- ],
1834
- defaultVariantKey: "default",
1835
- },
1836
- behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
1837
- editorOptions: {
1838
- onboarding: {
1839
- helpText: "Highlight specific component properties",
1840
- documentationLink:
1841
- "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-checklist-NXepPIpZ",
1842
- },
1843
- },
1844
- appearance: {
1845
- isBordered: true,
1846
- hasBackground: false,
1847
- isEditorPresentationDifferent: false,
1848
- showBlockHeaderInEditor: false,
1849
- },
1850
- },
1851
- {
1852
- id: "io.supernova.block.component-checklist-all",
1853
- name: "Component overview table",
1854
- description: "Show an overview of all components",
1855
- category: "Components",
1856
- icon: "https://cdn-assets.supernova.io/blocks/icons/component-overview-table.svg",
1857
- searchKeywords: ["components", "health", "overview", "status"],
1858
- item: {
1859
- properties: [
1860
- {
1861
- id: "components",
1862
- name: "Components",
1863
- type: "Component",
1864
- options: { renderLayoutAs: "Table" },
1865
- },
1866
- {
1867
- id: "showLastUpdatedColumn",
1868
- name: "Show last updated column",
1869
- type: "Boolean",
1870
- options: { defaultValue: true },
1871
- },
1872
- ],
1873
- appearance: { isBordered: true, hasBackground: false },
1874
- variants: [
1875
- {
1876
- id: "default",
1877
- name: "Default",
1878
- image: "https://cdn-assets.supernova.io/blocks/variants/component-overview-table.svg",
1879
- layout: {
1880
- type: "Column",
1881
- children: ["components", "showLastUpdatedColumn"],
1882
- columnAlign: "Start",
1883
- columnResizing: "Fill",
1884
- gap: "Medium",
1885
- },
1886
- maxColumns: 1,
1887
- defaultColumns: 1,
1888
- appearance: { isEditorPresentationDifferent: true },
1889
- },
1890
- ],
1891
- defaultVariantKey: "default",
1892
- },
1893
- behavior: { dataType: "Component", entities: { selectionType: "Group", maxSelected: 1 } },
1894
- editorOptions: {
1895
- onboarding: {
1896
- helpText: "Show an overview of all your components",
1897
- documentationLink:
1898
- "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-overview-table-W8eOtJ5t",
1899
- },
1900
- },
1901
- appearance: {
1902
- isBordered: true,
1903
- hasBackground: false,
1904
- isEditorPresentationDifferent: false,
1905
- showBlockHeaderInEditor: false,
1906
- },
1907
- },
1908
- {
1909
- id: "io.supernova.block.component-health",
1910
- name: "Component health",
1911
- description: "Show component health and other attributes",
1912
- category: "Components",
1913
- icon: "https://cdn-assets.supernova.io/blocks/icons/v2/component-health.svg",
1914
- searchKeywords: ["components", "health", "properties", "overview", "status"],
1915
- item: {
1916
- properties: [
1917
- {
1918
- id: "components",
1919
- name: "Components",
1920
- type: "Component",
1921
- options: { renderLayoutAs: "List" },
1922
- },
1923
- ],
1924
- appearance: { isBordered: true, hasBackground: false },
1925
- variants: [
1926
- {
1927
- id: "default",
1928
- name: "Default",
1929
- image: "https://cdn-assets.supernova.io/blocks/variants/component-health.svg",
1930
- layout: {
1931
- type: "Column",
1932
- children: ["components"],
1933
- columnAlign: "Start",
1934
- columnResizing: "Fill",
1935
- gap: "Medium",
1936
- },
1937
- maxColumns: 1,
1938
- defaultColumns: 1,
1939
- appearance: { isEditorPresentationDifferent: true },
1940
- },
1941
- ],
1942
- defaultVariantKey: "default",
1943
- },
1944
- behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
1945
- editorOptions: {
1946
- onboarding: {
1947
- helpText: "Show component health and additional attributes",
1948
- documentationLink:
1949
- "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-health-sezSxEED",
1950
- },
1951
- },
1952
- appearance: {
1953
- isBordered: true,
1954
- hasBackground: false,
1955
- isEditorPresentationDifferent: false,
1956
- showBlockHeaderInEditor: false,
1957
- },
1958
- },
1959
- {
1960
- id: "io.supernova.block.figma-components",
1961
- name: "Figma component",
1962
- description: "Display components and variants from Figma",
1963
- category: "Figma",
1964
- icon: "https://cdn-assets.supernova.io/blocks/icons/figma-component.svg",
1965
- searchKeywords: ["variants", "properties"],
1966
- item: {
1967
- properties: [
1968
- {
1969
- id: "figmaComponent",
1970
- name: "Figma component",
1971
- type: "FigmaComponent",
1972
- options: {
1973
- renderLayoutAs: "Grid",
1974
- },
1975
- variantOptions: {
1976
- canvas: {
1977
- renderLayoutAs: "Canvas",
1978
- },
1979
- },
1980
- },
1981
- ],
1982
- appearance: {
1983
- isBordered: true,
1984
- hasBackground: false,
1985
- },
1986
- variants: [
1987
- {
1988
- id: "grid",
1989
- name: "Grid",
1990
- image: "https://cdn-assets.supernova.io/blocks/variants/figma-component-grid.svg",
1991
- description: "Components or variants will be rendered individually in a grid layout",
1992
- layout: {
1993
- type: "Column",
1994
- children: ["figmaComponent"],
1995
- columnAlign: "Start",
1996
- columnResizing: "Fill",
1997
- gap: "Medium",
1998
- },
1999
- maxColumns: 4,
2000
- defaultColumns: 1,
2001
- appearance: {},
2002
- },
2003
- {
2004
- id: "canvas",
2005
- name: "Canvas",
2006
- image: "https://cdn-assets.supernova.io/blocks/variants/figma-component-canvas.svg",
2007
- description: "Components or variants will be rendered on a single canvas",
2008
- layout: {
2009
- type: "Column",
2010
- children: ["figmaComponent"],
2011
- columnAlign: "Start",
2012
- columnResizing: "Fill",
2013
- gap: "Medium",
2014
- },
2015
- maxColumns: 4,
2016
- defaultColumns: 1,
2017
- appearance: {},
2018
- },
2019
- ],
2020
- defaultVariantKey: "grid",
2021
- },
2022
- behavior: {
2023
- dataType: "FigmaComponent",
2024
- entities: {
2025
- selectionType: "Entity",
2026
- maxSelected: 0,
2027
- },
2028
- },
2029
- editorOptions: {
2030
- onboarding: {
2031
- helpText: "Display Figma component variants or group of components.",
2032
- documentationLink:
2033
- "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09",
2034
- },
2035
- },
2036
- appearance: {
2037
- isBordered: true,
2038
- hasBackground: false,
2039
- isEditorPresentationDifferent: false,
2040
- showBlockHeaderInEditor: false,
2041
- },
2042
- },
2043
- {
2044
- id: "io.supernova.block.figma-components-propstable",
2045
- name: "Figma component properties",
2046
- description: "Display list of Figma component properties",
2047
- category: "Figma",
2048
- icon: "https://cdn-assets.supernova.io/blocks/icons/figma-component-properties.svg",
2049
- searchKeywords: ["variants", "properties", "props", "table"],
2050
- item: {
2051
- properties: [
2052
- {
2053
- id: "figmaComponent",
2054
- name: "Figma component",
2055
- type: "FigmaComponent",
2056
- options: {
2057
- renderLayoutAs: "PropsTable",
2058
- invertPropertySelection: true,
2059
- },
2060
- },
2061
- ],
2062
- appearance: {
2063
- isBordered: true,
2064
- hasBackground: false,
2065
- },
2066
- variants: [
2067
- {
2068
- id: "default",
2069
- name: "Default",
2070
- layout: {
2071
- type: "Column",
2072
- children: ["figmaComponent"],
2073
- columnAlign: "Start",
2074
- columnResizing: "Fill",
2075
- gap: "Medium",
2076
- },
2077
- maxColumns: 1,
2078
- defaultColumns: 1,
2079
- appearance: {},
2080
- },
2081
- ],
2082
- defaultVariantKey: "default",
2083
- },
2084
- behavior: {
2085
- dataType: "FigmaComponent",
2086
- entities: {
2087
- selectionType: "Entity",
2088
- maxSelected: 1,
2089
- },
2090
- },
2091
- editorOptions: {
2092
- onboarding: {
2093
- helpText: "Display properties based on Figma component data.",
2094
- documentationLink: "",
2095
- },
2096
- },
2097
- appearance: {
2098
- isBordered: true,
2099
- hasBackground: false,
2100
- isEditorPresentationDifferent: false,
2101
- showBlockHeaderInEditor: false,
2102
- },
2103
- },
2104
- ];