@supernova-studio/client 0.7.0 → 0.8.0
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 +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +1565 -418
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1558 -411
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/docs-editor/blocks-to-prosemirror.ts +5 -8
- package/src/docs-editor/mock.ts +2891 -384
- package/src/docs-editor/prosemirror-to-blocks.ts +4 -3
package/src/docs-editor/mock.ts
CHANGED
|
@@ -18,34 +18,44 @@ const blocks: PageBlockDefinition[] = [
|
|
|
18
18
|
id: "text",
|
|
19
19
|
name: "Text",
|
|
20
20
|
type: "RichText",
|
|
21
|
-
description: undefined,
|
|
22
21
|
options: {
|
|
23
22
|
placeholder: "Start writing with plain text",
|
|
24
23
|
richTextStyle: "Default",
|
|
25
24
|
},
|
|
26
|
-
variantOptions: undefined,
|
|
27
25
|
},
|
|
28
26
|
],
|
|
29
|
-
appearance: {
|
|
27
|
+
appearance: {
|
|
28
|
+
isBordered: false,
|
|
29
|
+
hasBackground: false,
|
|
30
|
+
},
|
|
30
31
|
variants: [
|
|
31
32
|
{
|
|
32
33
|
id: "default",
|
|
33
34
|
name: "Default",
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
layout: {
|
|
36
|
+
type: "Column",
|
|
37
|
+
children: ["text"],
|
|
38
|
+
columnAlign: "Start",
|
|
39
|
+
columnResizing: "Fill",
|
|
40
|
+
gap: "Medium",
|
|
41
|
+
},
|
|
38
42
|
maxColumns: 1,
|
|
39
43
|
defaultColumns: 1,
|
|
40
|
-
appearance: {
|
|
44
|
+
appearance: {
|
|
45
|
+
isBordered: false,
|
|
46
|
+
hasBackground: false,
|
|
47
|
+
isEditorPresentationDifferent: false,
|
|
48
|
+
},
|
|
41
49
|
},
|
|
42
50
|
],
|
|
43
51
|
defaultVariantKey: "default",
|
|
44
52
|
},
|
|
45
53
|
behavior: {
|
|
46
54
|
dataType: "Item",
|
|
47
|
-
items: {
|
|
48
|
-
|
|
55
|
+
items: {
|
|
56
|
+
numberOfItems: 1,
|
|
57
|
+
allowLinks: false,
|
|
58
|
+
},
|
|
49
59
|
},
|
|
50
60
|
editorOptions: {
|
|
51
61
|
onboarding: {
|
|
@@ -53,7 +63,10 @@ const blocks: PageBlockDefinition[] = [
|
|
|
53
63
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/text-HxZ9ssJR",
|
|
54
64
|
},
|
|
55
65
|
},
|
|
56
|
-
appearance: {
|
|
66
|
+
appearance: {
|
|
67
|
+
isBordered: false,
|
|
68
|
+
hasBackground: false,
|
|
69
|
+
},
|
|
57
70
|
},
|
|
58
71
|
{
|
|
59
72
|
id: "io.supernova.block.title1",
|
|
@@ -67,27 +80,44 @@ const blocks: PageBlockDefinition[] = [
|
|
|
67
80
|
id: "text",
|
|
68
81
|
name: "Text",
|
|
69
82
|
type: "RichText",
|
|
70
|
-
options: {
|
|
83
|
+
options: {
|
|
84
|
+
placeholder: "Title 1",
|
|
85
|
+
richTextStyle: "Title1",
|
|
86
|
+
},
|
|
71
87
|
},
|
|
72
88
|
],
|
|
73
|
-
appearance: {
|
|
89
|
+
appearance: {
|
|
90
|
+
isBordered: false,
|
|
91
|
+
hasBackground: false,
|
|
92
|
+
},
|
|
74
93
|
variants: [
|
|
75
94
|
{
|
|
76
95
|
id: "default",
|
|
77
96
|
name: "Default",
|
|
78
|
-
|
|
79
|
-
|
|
97
|
+
layout: {
|
|
98
|
+
type: "Column",
|
|
99
|
+
children: ["text"],
|
|
100
|
+
columnAlign: "Start",
|
|
101
|
+
columnResizing: "Fill",
|
|
102
|
+
gap: "Medium",
|
|
103
|
+
},
|
|
80
104
|
maxColumns: 1,
|
|
81
105
|
defaultColumns: 1,
|
|
82
|
-
appearance: {
|
|
106
|
+
appearance: {
|
|
107
|
+
isBordered: false,
|
|
108
|
+
hasBackground: false,
|
|
109
|
+
isEditorPresentationDifferent: false,
|
|
110
|
+
},
|
|
83
111
|
},
|
|
84
112
|
],
|
|
85
113
|
defaultVariantKey: "default",
|
|
86
114
|
},
|
|
87
115
|
behavior: {
|
|
88
116
|
dataType: "Item",
|
|
89
|
-
items: {
|
|
90
|
-
|
|
117
|
+
items: {
|
|
118
|
+
numberOfItems: 1,
|
|
119
|
+
allowLinks: false,
|
|
120
|
+
},
|
|
91
121
|
},
|
|
92
122
|
editorOptions: {
|
|
93
123
|
onboarding: {
|
|
@@ -95,15 +125,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
95
125
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
96
126
|
},
|
|
97
127
|
},
|
|
98
|
-
appearance: {
|
|
128
|
+
appearance: {
|
|
129
|
+
isBordered: false,
|
|
130
|
+
hasBackground: false,
|
|
131
|
+
},
|
|
99
132
|
},
|
|
100
133
|
{
|
|
101
134
|
id: "io.supernova.block.title2",
|
|
102
135
|
name: "Title 2",
|
|
103
136
|
description: "Section subheadings",
|
|
104
137
|
category: "Text",
|
|
105
|
-
icon: undefined,
|
|
106
|
-
documentationLink: undefined,
|
|
107
138
|
searchKeywords: ["heading"],
|
|
108
139
|
item: {
|
|
109
140
|
properties: [
|
|
@@ -111,31 +142,44 @@ const blocks: PageBlockDefinition[] = [
|
|
|
111
142
|
id: "text",
|
|
112
143
|
name: "Text",
|
|
113
144
|
type: "RichText",
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
145
|
+
options: {
|
|
146
|
+
placeholder: "Title 2",
|
|
147
|
+
richTextStyle: "Title2",
|
|
148
|
+
},
|
|
117
149
|
},
|
|
118
150
|
],
|
|
119
|
-
appearance: {
|
|
151
|
+
appearance: {
|
|
152
|
+
isBordered: false,
|
|
153
|
+
hasBackground: false,
|
|
154
|
+
},
|
|
120
155
|
variants: [
|
|
121
156
|
{
|
|
122
157
|
id: "default",
|
|
123
158
|
name: "Default",
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
159
|
+
layout: {
|
|
160
|
+
type: "Column",
|
|
161
|
+
children: ["text"],
|
|
162
|
+
columnAlign: "Start",
|
|
163
|
+
columnResizing: "Fill",
|
|
164
|
+
gap: "Medium",
|
|
165
|
+
},
|
|
128
166
|
maxColumns: 1,
|
|
129
167
|
defaultColumns: 1,
|
|
130
|
-
appearance: {
|
|
168
|
+
appearance: {
|
|
169
|
+
isBordered: false,
|
|
170
|
+
hasBackground: false,
|
|
171
|
+
isEditorPresentationDifferent: false,
|
|
172
|
+
},
|
|
131
173
|
},
|
|
132
174
|
],
|
|
133
175
|
defaultVariantKey: "default",
|
|
134
176
|
},
|
|
135
177
|
behavior: {
|
|
136
178
|
dataType: "Item",
|
|
137
|
-
items: {
|
|
138
|
-
|
|
179
|
+
items: {
|
|
180
|
+
numberOfItems: 1,
|
|
181
|
+
allowLinks: false,
|
|
182
|
+
},
|
|
139
183
|
},
|
|
140
184
|
editorOptions: {
|
|
141
185
|
onboarding: {
|
|
@@ -143,15 +187,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
143
187
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
144
188
|
},
|
|
145
189
|
},
|
|
146
|
-
appearance: {
|
|
190
|
+
appearance: {
|
|
191
|
+
isBordered: false,
|
|
192
|
+
hasBackground: false,
|
|
193
|
+
},
|
|
147
194
|
},
|
|
148
195
|
{
|
|
149
196
|
id: "io.supernova.block.title3",
|
|
150
197
|
name: "Title 3",
|
|
151
198
|
description: "Further subsections",
|
|
152
199
|
category: "Text",
|
|
153
|
-
icon: undefined,
|
|
154
|
-
documentationLink: undefined,
|
|
155
200
|
searchKeywords: ["heading"],
|
|
156
201
|
item: {
|
|
157
202
|
properties: [
|
|
@@ -159,31 +204,44 @@ const blocks: PageBlockDefinition[] = [
|
|
|
159
204
|
id: "text",
|
|
160
205
|
name: "Text",
|
|
161
206
|
type: "RichText",
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
207
|
+
options: {
|
|
208
|
+
placeholder: "Title 3",
|
|
209
|
+
richTextStyle: "Title3",
|
|
210
|
+
},
|
|
165
211
|
},
|
|
166
212
|
],
|
|
167
|
-
appearance: {
|
|
213
|
+
appearance: {
|
|
214
|
+
isBordered: false,
|
|
215
|
+
hasBackground: false,
|
|
216
|
+
},
|
|
168
217
|
variants: [
|
|
169
218
|
{
|
|
170
219
|
id: "default",
|
|
171
220
|
name: "Default",
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
221
|
+
layout: {
|
|
222
|
+
type: "Column",
|
|
223
|
+
children: ["text"],
|
|
224
|
+
columnAlign: "Start",
|
|
225
|
+
columnResizing: "Fill",
|
|
226
|
+
gap: "Medium",
|
|
227
|
+
},
|
|
176
228
|
maxColumns: 1,
|
|
177
229
|
defaultColumns: 1,
|
|
178
|
-
appearance: {
|
|
230
|
+
appearance: {
|
|
231
|
+
isBordered: false,
|
|
232
|
+
hasBackground: false,
|
|
233
|
+
isEditorPresentationDifferent: false,
|
|
234
|
+
},
|
|
179
235
|
},
|
|
180
236
|
],
|
|
181
237
|
defaultVariantKey: "default",
|
|
182
238
|
},
|
|
183
239
|
behavior: {
|
|
184
240
|
dataType: "Item",
|
|
185
|
-
items: {
|
|
186
|
-
|
|
241
|
+
items: {
|
|
242
|
+
numberOfItems: 1,
|
|
243
|
+
allowLinks: false,
|
|
244
|
+
},
|
|
187
245
|
},
|
|
188
246
|
editorOptions: {
|
|
189
247
|
onboarding: {
|
|
@@ -191,15 +249,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
191
249
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
192
250
|
},
|
|
193
251
|
},
|
|
194
|
-
appearance: {
|
|
252
|
+
appearance: {
|
|
253
|
+
isBordered: false,
|
|
254
|
+
hasBackground: false,
|
|
255
|
+
},
|
|
195
256
|
},
|
|
196
257
|
{
|
|
197
258
|
id: "io.supernova.block.title4",
|
|
198
259
|
name: "Title 4",
|
|
199
260
|
description: "Details in subsections",
|
|
200
261
|
category: "Text",
|
|
201
|
-
icon: undefined,
|
|
202
|
-
documentationLink: undefined,
|
|
203
262
|
searchKeywords: ["heading"],
|
|
204
263
|
item: {
|
|
205
264
|
properties: [
|
|
@@ -207,31 +266,44 @@ const blocks: PageBlockDefinition[] = [
|
|
|
207
266
|
id: "text",
|
|
208
267
|
name: "Text",
|
|
209
268
|
type: "RichText",
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
269
|
+
options: {
|
|
270
|
+
placeholder: "Title 4",
|
|
271
|
+
richTextStyle: "Title4",
|
|
272
|
+
},
|
|
213
273
|
},
|
|
214
274
|
],
|
|
215
|
-
appearance: {
|
|
275
|
+
appearance: {
|
|
276
|
+
isBordered: false,
|
|
277
|
+
hasBackground: false,
|
|
278
|
+
},
|
|
216
279
|
variants: [
|
|
217
280
|
{
|
|
218
281
|
id: "default",
|
|
219
282
|
name: "Default",
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
283
|
+
layout: {
|
|
284
|
+
type: "Column",
|
|
285
|
+
children: ["text"],
|
|
286
|
+
columnAlign: "Start",
|
|
287
|
+
columnResizing: "Fill",
|
|
288
|
+
gap: "Medium",
|
|
289
|
+
},
|
|
224
290
|
maxColumns: 1,
|
|
225
291
|
defaultColumns: 1,
|
|
226
|
-
appearance: {
|
|
292
|
+
appearance: {
|
|
293
|
+
isBordered: false,
|
|
294
|
+
hasBackground: false,
|
|
295
|
+
isEditorPresentationDifferent: false,
|
|
296
|
+
},
|
|
227
297
|
},
|
|
228
298
|
],
|
|
229
299
|
defaultVariantKey: "default",
|
|
230
300
|
},
|
|
231
301
|
behavior: {
|
|
232
302
|
dataType: "Item",
|
|
233
|
-
items: {
|
|
234
|
-
|
|
303
|
+
items: {
|
|
304
|
+
numberOfItems: 1,
|
|
305
|
+
allowLinks: false,
|
|
306
|
+
},
|
|
235
307
|
},
|
|
236
308
|
editorOptions: {
|
|
237
309
|
onboarding: {
|
|
@@ -239,15 +311,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
239
311
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
240
312
|
},
|
|
241
313
|
},
|
|
242
|
-
appearance: {
|
|
314
|
+
appearance: {
|
|
315
|
+
isBordered: false,
|
|
316
|
+
hasBackground: false,
|
|
317
|
+
},
|
|
243
318
|
},
|
|
244
319
|
{
|
|
245
320
|
id: "io.supernova.block.title5",
|
|
246
321
|
name: "Title 5",
|
|
247
322
|
description: "Nuanced details or sub-points",
|
|
248
323
|
category: "Text",
|
|
249
|
-
icon: undefined,
|
|
250
|
-
documentationLink: undefined,
|
|
251
324
|
searchKeywords: ["heading"],
|
|
252
325
|
item: {
|
|
253
326
|
properties: [
|
|
@@ -255,31 +328,44 @@ const blocks: PageBlockDefinition[] = [
|
|
|
255
328
|
id: "text",
|
|
256
329
|
name: "Text",
|
|
257
330
|
type: "RichText",
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
331
|
+
options: {
|
|
332
|
+
placeholder: "Title 5",
|
|
333
|
+
richTextStyle: "Title5",
|
|
334
|
+
},
|
|
261
335
|
},
|
|
262
336
|
],
|
|
263
|
-
appearance: {
|
|
337
|
+
appearance: {
|
|
338
|
+
isBordered: false,
|
|
339
|
+
hasBackground: false,
|
|
340
|
+
},
|
|
264
341
|
variants: [
|
|
265
342
|
{
|
|
266
343
|
id: "default",
|
|
267
344
|
name: "Default",
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
345
|
+
layout: {
|
|
346
|
+
type: "Column",
|
|
347
|
+
children: ["text"],
|
|
348
|
+
columnAlign: "Start",
|
|
349
|
+
columnResizing: "Fill",
|
|
350
|
+
gap: "Medium",
|
|
351
|
+
},
|
|
272
352
|
maxColumns: 1,
|
|
273
353
|
defaultColumns: 1,
|
|
274
|
-
appearance: {
|
|
354
|
+
appearance: {
|
|
355
|
+
isBordered: false,
|
|
356
|
+
hasBackground: false,
|
|
357
|
+
isEditorPresentationDifferent: false,
|
|
358
|
+
},
|
|
275
359
|
},
|
|
276
360
|
],
|
|
277
361
|
defaultVariantKey: "default",
|
|
278
362
|
},
|
|
279
363
|
behavior: {
|
|
280
364
|
dataType: "Item",
|
|
281
|
-
items: {
|
|
282
|
-
|
|
365
|
+
items: {
|
|
366
|
+
numberOfItems: 1,
|
|
367
|
+
allowLinks: false,
|
|
368
|
+
},
|
|
283
369
|
},
|
|
284
370
|
editorOptions: {
|
|
285
371
|
onboarding: {
|
|
@@ -287,47 +373,60 @@ const blocks: PageBlockDefinition[] = [
|
|
|
287
373
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
288
374
|
},
|
|
289
375
|
},
|
|
290
|
-
appearance: {
|
|
376
|
+
appearance: {
|
|
377
|
+
isBordered: false,
|
|
378
|
+
hasBackground: false,
|
|
379
|
+
},
|
|
291
380
|
},
|
|
292
381
|
{
|
|
293
382
|
id: "io.supernova.block.ordered-list",
|
|
294
383
|
name: "Ordered list",
|
|
295
384
|
description: "A list with numbers",
|
|
296
385
|
category: "Text",
|
|
297
|
-
icon: undefined,
|
|
298
|
-
documentationLink: undefined,
|
|
299
386
|
searchKeywords: ["ol"],
|
|
300
387
|
item: {
|
|
301
388
|
properties: [
|
|
302
389
|
{
|
|
303
390
|
id: "text",
|
|
304
391
|
name: "Text",
|
|
305
|
-
type: "
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
392
|
+
type: "RichText",
|
|
393
|
+
options: {
|
|
394
|
+
multiRichTextStyle: "OL",
|
|
395
|
+
},
|
|
309
396
|
},
|
|
310
397
|
],
|
|
311
|
-
appearance: {
|
|
398
|
+
appearance: {
|
|
399
|
+
isBordered: false,
|
|
400
|
+
hasBackground: false,
|
|
401
|
+
},
|
|
312
402
|
variants: [
|
|
313
403
|
{
|
|
314
404
|
id: "default",
|
|
315
405
|
name: "Default",
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
406
|
+
layout: {
|
|
407
|
+
type: "Column",
|
|
408
|
+
children: ["text"],
|
|
409
|
+
columnAlign: "Start",
|
|
410
|
+
columnResizing: "Fill",
|
|
411
|
+
gap: "Medium",
|
|
412
|
+
},
|
|
320
413
|
maxColumns: 1,
|
|
321
414
|
defaultColumns: 1,
|
|
322
|
-
appearance: {
|
|
415
|
+
appearance: {
|
|
416
|
+
isBordered: false,
|
|
417
|
+
hasBackground: false,
|
|
418
|
+
isEditorPresentationDifferent: false,
|
|
419
|
+
},
|
|
323
420
|
},
|
|
324
421
|
],
|
|
325
422
|
defaultVariantKey: "default",
|
|
326
423
|
},
|
|
327
424
|
behavior: {
|
|
328
425
|
dataType: "Item",
|
|
329
|
-
items: {
|
|
330
|
-
|
|
426
|
+
items: {
|
|
427
|
+
numberOfItems: 1,
|
|
428
|
+
allowLinks: false,
|
|
429
|
+
},
|
|
331
430
|
},
|
|
332
431
|
editorOptions: {
|
|
333
432
|
onboarding: {
|
|
@@ -335,47 +434,60 @@ const blocks: PageBlockDefinition[] = [
|
|
|
335
434
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
|
|
336
435
|
},
|
|
337
436
|
},
|
|
338
|
-
appearance: {
|
|
437
|
+
appearance: {
|
|
438
|
+
isBordered: false,
|
|
439
|
+
hasBackground: false,
|
|
440
|
+
},
|
|
339
441
|
},
|
|
340
442
|
{
|
|
341
443
|
id: "io.supernova.block.unordered-list",
|
|
342
444
|
name: "Unordered list",
|
|
343
445
|
description: "A list with bullet points",
|
|
344
446
|
category: "Text",
|
|
345
|
-
icon: undefined,
|
|
346
|
-
documentationLink: undefined,
|
|
347
447
|
searchKeywords: ["ul"],
|
|
348
448
|
item: {
|
|
349
449
|
properties: [
|
|
350
450
|
{
|
|
351
451
|
id: "text",
|
|
352
452
|
name: "Text",
|
|
353
|
-
type: "
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
453
|
+
type: "RichText",
|
|
454
|
+
options: {
|
|
455
|
+
multiRichTextStyle: "UL",
|
|
456
|
+
},
|
|
357
457
|
},
|
|
358
458
|
],
|
|
359
|
-
appearance: {
|
|
459
|
+
appearance: {
|
|
460
|
+
isBordered: false,
|
|
461
|
+
hasBackground: false,
|
|
462
|
+
},
|
|
360
463
|
variants: [
|
|
361
464
|
{
|
|
362
465
|
id: "default",
|
|
363
466
|
name: "Default",
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
467
|
+
layout: {
|
|
468
|
+
type: "Column",
|
|
469
|
+
children: ["text"],
|
|
470
|
+
columnAlign: "Start",
|
|
471
|
+
columnResizing: "Fill",
|
|
472
|
+
gap: "Medium",
|
|
473
|
+
},
|
|
368
474
|
maxColumns: 1,
|
|
369
475
|
defaultColumns: 1,
|
|
370
|
-
appearance: {
|
|
476
|
+
appearance: {
|
|
477
|
+
isBordered: false,
|
|
478
|
+
hasBackground: false,
|
|
479
|
+
isEditorPresentationDifferent: false,
|
|
480
|
+
},
|
|
371
481
|
},
|
|
372
482
|
],
|
|
373
483
|
defaultVariantKey: "default",
|
|
374
484
|
},
|
|
375
485
|
behavior: {
|
|
376
486
|
dataType: "Item",
|
|
377
|
-
items: {
|
|
378
|
-
|
|
487
|
+
items: {
|
|
488
|
+
numberOfItems: 1,
|
|
489
|
+
allowLinks: false,
|
|
490
|
+
},
|
|
379
491
|
},
|
|
380
492
|
editorOptions: {
|
|
381
493
|
onboarding: {
|
|
@@ -383,15 +495,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
383
495
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
|
|
384
496
|
},
|
|
385
497
|
},
|
|
386
|
-
appearance: {
|
|
498
|
+
appearance: {
|
|
499
|
+
isBordered: false,
|
|
500
|
+
hasBackground: false,
|
|
501
|
+
},
|
|
387
502
|
},
|
|
388
503
|
{
|
|
389
504
|
id: "io.supernova.block.divider",
|
|
390
505
|
name: "Divider",
|
|
391
506
|
description: "A section divider",
|
|
392
507
|
category: "Layout",
|
|
393
|
-
icon: undefined,
|
|
394
|
-
documentationLink: undefined,
|
|
395
508
|
searchKeywords: ["hr", "line", "rule", "separator"],
|
|
396
509
|
item: {
|
|
397
510
|
properties: [
|
|
@@ -399,31 +512,41 @@ const blocks: PageBlockDefinition[] = [
|
|
|
399
512
|
id: "divider",
|
|
400
513
|
name: "Divider",
|
|
401
514
|
type: "Divider",
|
|
402
|
-
description: undefined,
|
|
403
515
|
options: {},
|
|
404
|
-
variantOptions: undefined,
|
|
405
516
|
},
|
|
406
517
|
],
|
|
407
|
-
appearance: {
|
|
518
|
+
appearance: {
|
|
519
|
+
isBordered: false,
|
|
520
|
+
hasBackground: false,
|
|
521
|
+
},
|
|
408
522
|
variants: [
|
|
409
523
|
{
|
|
410
524
|
id: "default",
|
|
411
525
|
name: "Default",
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
526
|
+
layout: {
|
|
527
|
+
type: "Column",
|
|
528
|
+
children: ["divider"],
|
|
529
|
+
columnAlign: "Start",
|
|
530
|
+
columnResizing: "Fill",
|
|
531
|
+
gap: "Medium",
|
|
532
|
+
},
|
|
416
533
|
maxColumns: 1,
|
|
417
534
|
defaultColumns: 1,
|
|
418
|
-
appearance: {
|
|
535
|
+
appearance: {
|
|
536
|
+
isBordered: false,
|
|
537
|
+
hasBackground: false,
|
|
538
|
+
isEditorPresentationDifferent: false,
|
|
539
|
+
},
|
|
419
540
|
},
|
|
420
541
|
],
|
|
421
542
|
defaultVariantKey: "default",
|
|
422
543
|
},
|
|
423
544
|
behavior: {
|
|
424
545
|
dataType: "Item",
|
|
425
|
-
items: {
|
|
426
|
-
|
|
546
|
+
items: {
|
|
547
|
+
numberOfItems: 1,
|
|
548
|
+
allowLinks: false,
|
|
549
|
+
},
|
|
427
550
|
},
|
|
428
551
|
editorOptions: {
|
|
429
552
|
onboarding: {
|
|
@@ -431,15 +554,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
431
554
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/divider-tLuxooLH",
|
|
432
555
|
},
|
|
433
556
|
},
|
|
434
|
-
appearance: {
|
|
557
|
+
appearance: {
|
|
558
|
+
isBordered: false,
|
|
559
|
+
hasBackground: false,
|
|
560
|
+
},
|
|
435
561
|
},
|
|
436
562
|
{
|
|
437
563
|
id: "io.supernova.block.blockquote",
|
|
438
564
|
name: "Blockquote",
|
|
439
565
|
description: "Display a quotation",
|
|
440
566
|
category: "Text",
|
|
441
|
-
icon: undefined,
|
|
442
|
-
documentationLink: undefined,
|
|
443
567
|
searchKeywords: ["cite"],
|
|
444
568
|
item: {
|
|
445
569
|
properties: [
|
|
@@ -447,31 +571,44 @@ const blocks: PageBlockDefinition[] = [
|
|
|
447
571
|
id: "text",
|
|
448
572
|
name: "Text",
|
|
449
573
|
type: "RichText",
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
574
|
+
options: {
|
|
575
|
+
placeholder: "Empty quote",
|
|
576
|
+
richTextStyle: "Quote",
|
|
577
|
+
},
|
|
453
578
|
},
|
|
454
579
|
],
|
|
455
|
-
appearance: {
|
|
580
|
+
appearance: {
|
|
581
|
+
isBordered: false,
|
|
582
|
+
hasBackground: false,
|
|
583
|
+
},
|
|
456
584
|
variants: [
|
|
457
585
|
{
|
|
458
586
|
id: "default",
|
|
459
587
|
name: "Default",
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
588
|
+
layout: {
|
|
589
|
+
type: "Column",
|
|
590
|
+
children: ["text"],
|
|
591
|
+
columnAlign: "Start",
|
|
592
|
+
columnResizing: "Fill",
|
|
593
|
+
gap: "Medium",
|
|
594
|
+
},
|
|
464
595
|
maxColumns: 1,
|
|
465
596
|
defaultColumns: 1,
|
|
466
|
-
appearance: {
|
|
597
|
+
appearance: {
|
|
598
|
+
isBordered: false,
|
|
599
|
+
hasBackground: false,
|
|
600
|
+
isEditorPresentationDifferent: false,
|
|
601
|
+
},
|
|
467
602
|
},
|
|
468
603
|
],
|
|
469
604
|
defaultVariantKey: "default",
|
|
470
605
|
},
|
|
471
606
|
behavior: {
|
|
472
607
|
dataType: "Item",
|
|
473
|
-
items: {
|
|
474
|
-
|
|
608
|
+
items: {
|
|
609
|
+
numberOfItems: 1,
|
|
610
|
+
allowLinks: false,
|
|
611
|
+
},
|
|
475
612
|
},
|
|
476
613
|
editorOptions: {
|
|
477
614
|
onboarding: {
|
|
@@ -479,15 +616,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
479
616
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/blockquote-zYWAsb6X",
|
|
480
617
|
},
|
|
481
618
|
},
|
|
482
|
-
appearance: {
|
|
619
|
+
appearance: {
|
|
620
|
+
isBordered: false,
|
|
621
|
+
hasBackground: false,
|
|
622
|
+
},
|
|
483
623
|
},
|
|
484
624
|
{
|
|
485
625
|
id: "io.supernova.block.callout",
|
|
486
626
|
name: "Callout",
|
|
487
627
|
description: "Highlight a section of text",
|
|
488
628
|
category: "Text",
|
|
489
|
-
icon: undefined,
|
|
490
|
-
documentationLink: undefined,
|
|
491
629
|
searchKeywords: ["banner", "alert", "note", "tip", "warning"],
|
|
492
630
|
item: {
|
|
493
631
|
properties: [
|
|
@@ -495,31 +633,43 @@ const blocks: PageBlockDefinition[] = [
|
|
|
495
633
|
id: "text",
|
|
496
634
|
name: "Text",
|
|
497
635
|
type: "RichText",
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
636
|
+
options: {
|
|
637
|
+
richTextStyle: "Callout",
|
|
638
|
+
},
|
|
501
639
|
},
|
|
502
640
|
],
|
|
503
|
-
appearance: {
|
|
641
|
+
appearance: {
|
|
642
|
+
isBordered: false,
|
|
643
|
+
hasBackground: false,
|
|
644
|
+
},
|
|
504
645
|
variants: [
|
|
505
646
|
{
|
|
506
647
|
id: "default",
|
|
507
648
|
name: "Default",
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
649
|
+
layout: {
|
|
650
|
+
type: "Column",
|
|
651
|
+
children: ["text"],
|
|
652
|
+
columnAlign: "Start",
|
|
653
|
+
columnResizing: "Fill",
|
|
654
|
+
gap: "Medium",
|
|
655
|
+
},
|
|
512
656
|
maxColumns: 1,
|
|
513
657
|
defaultColumns: 1,
|
|
514
|
-
appearance: {
|
|
658
|
+
appearance: {
|
|
659
|
+
isBordered: false,
|
|
660
|
+
hasBackground: false,
|
|
661
|
+
isEditorPresentationDifferent: false,
|
|
662
|
+
},
|
|
515
663
|
},
|
|
516
664
|
],
|
|
517
665
|
defaultVariantKey: "default",
|
|
518
666
|
},
|
|
519
667
|
behavior: {
|
|
520
668
|
dataType: "Item",
|
|
521
|
-
items: {
|
|
522
|
-
|
|
669
|
+
items: {
|
|
670
|
+
numberOfItems: 1,
|
|
671
|
+
allowLinks: false,
|
|
672
|
+
},
|
|
523
673
|
},
|
|
524
674
|
editorOptions: {
|
|
525
675
|
onboarding: {
|
|
@@ -527,15 +677,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
527
677
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/callout-ZPlZObD1",
|
|
528
678
|
},
|
|
529
679
|
},
|
|
530
|
-
appearance: {
|
|
680
|
+
appearance: {
|
|
681
|
+
isBordered: false,
|
|
682
|
+
hasBackground: false,
|
|
683
|
+
},
|
|
531
684
|
},
|
|
532
685
|
{
|
|
533
686
|
id: "io.supernova.block.image",
|
|
534
687
|
name: "Image",
|
|
535
688
|
description: "Display an image or Figma frame",
|
|
536
689
|
category: "Media",
|
|
537
|
-
icon: undefined,
|
|
538
|
-
documentationLink: undefined,
|
|
539
690
|
searchKeywords: ["image", "figma", "frame", "picture", "photo"],
|
|
540
691
|
item: {
|
|
541
692
|
properties: [
|
|
@@ -543,31 +694,43 @@ const blocks: PageBlockDefinition[] = [
|
|
|
543
694
|
id: "image",
|
|
544
695
|
name: "Image",
|
|
545
696
|
type: "Image",
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
697
|
+
options: {
|
|
698
|
+
allowCaption: true,
|
|
699
|
+
},
|
|
549
700
|
},
|
|
550
701
|
],
|
|
551
|
-
appearance: {
|
|
702
|
+
appearance: {
|
|
703
|
+
isBordered: false,
|
|
704
|
+
hasBackground: false,
|
|
705
|
+
},
|
|
552
706
|
variants: [
|
|
553
707
|
{
|
|
554
708
|
id: "default",
|
|
555
709
|
name: "Default",
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
710
|
+
layout: {
|
|
711
|
+
type: "Column",
|
|
712
|
+
children: ["image"],
|
|
713
|
+
columnAlign: "Start",
|
|
714
|
+
columnResizing: "Fill",
|
|
715
|
+
gap: "Medium",
|
|
716
|
+
},
|
|
560
717
|
maxColumns: 1,
|
|
561
718
|
defaultColumns: 1,
|
|
562
|
-
appearance: {
|
|
719
|
+
appearance: {
|
|
720
|
+
isBordered: false,
|
|
721
|
+
hasBackground: false,
|
|
722
|
+
isEditorPresentationDifferent: false,
|
|
723
|
+
},
|
|
563
724
|
},
|
|
564
725
|
],
|
|
565
726
|
defaultVariantKey: "default",
|
|
566
727
|
},
|
|
567
728
|
behavior: {
|
|
568
729
|
dataType: "Item",
|
|
569
|
-
items: {
|
|
570
|
-
|
|
730
|
+
items: {
|
|
731
|
+
numberOfItems: 1,
|
|
732
|
+
allowLinks: false,
|
|
733
|
+
},
|
|
571
734
|
},
|
|
572
735
|
editorOptions: {
|
|
573
736
|
onboarding: {
|
|
@@ -576,15 +739,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
576
739
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/image-Ue8VdT8B",
|
|
577
740
|
},
|
|
578
741
|
},
|
|
579
|
-
appearance: {
|
|
742
|
+
appearance: {
|
|
743
|
+
isBordered: false,
|
|
744
|
+
hasBackground: false,
|
|
745
|
+
},
|
|
580
746
|
},
|
|
581
747
|
{
|
|
582
748
|
id: "io.supernova.block.shortcut-links",
|
|
583
749
|
name: "Shortcut links",
|
|
584
750
|
description: "Link to a page or external URL",
|
|
585
751
|
category: "Media",
|
|
586
|
-
icon: undefined,
|
|
587
|
-
documentationLink: undefined,
|
|
588
752
|
searchKeywords: [],
|
|
589
753
|
item: {
|
|
590
754
|
properties: [
|
|
@@ -592,117 +756,160 @@ const blocks: PageBlockDefinition[] = [
|
|
|
592
756
|
id: "block.links.property.title",
|
|
593
757
|
name: "Title",
|
|
594
758
|
type: "Text",
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
759
|
+
options: {
|
|
760
|
+
textStyle: "Title5",
|
|
761
|
+
},
|
|
598
762
|
},
|
|
599
763
|
{
|
|
600
764
|
id: "block.links.property.description",
|
|
601
765
|
name: "Short description",
|
|
602
766
|
type: "Text",
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
767
|
+
options: {
|
|
768
|
+
textStyle: "Default",
|
|
769
|
+
color: "NeutralFaded",
|
|
770
|
+
},
|
|
606
771
|
},
|
|
607
772
|
{
|
|
608
773
|
id: "block.links.property.image",
|
|
609
774
|
name: "Image",
|
|
610
775
|
type: "Image",
|
|
611
|
-
|
|
612
|
-
|
|
776
|
+
options: {
|
|
777
|
+
width: "Medium",
|
|
778
|
+
aspectRatio: "Landscape",
|
|
779
|
+
allowCaption: false,
|
|
780
|
+
},
|
|
613
781
|
variantOptions: {
|
|
614
|
-
iconOnTop: {
|
|
615
|
-
|
|
782
|
+
iconOnTop: {
|
|
783
|
+
width: "Icon",
|
|
784
|
+
aspectRatio: "Square",
|
|
785
|
+
},
|
|
786
|
+
iconOnLeft: {
|
|
787
|
+
width: "Icon",
|
|
788
|
+
aspectRatio: "Square",
|
|
789
|
+
},
|
|
616
790
|
},
|
|
617
791
|
},
|
|
618
792
|
],
|
|
619
|
-
appearance: {
|
|
793
|
+
appearance: {
|
|
794
|
+
isBordered: false,
|
|
795
|
+
hasBackground: false,
|
|
796
|
+
},
|
|
620
797
|
variants: [
|
|
621
798
|
{
|
|
622
799
|
id: "imageOnTop",
|
|
623
800
|
name: "Image on top",
|
|
624
801
|
image: "assets/variant-image-on-top.png",
|
|
625
|
-
description: undefined,
|
|
626
|
-
documentationLink: undefined,
|
|
627
802
|
layout: {
|
|
628
803
|
type: "Column",
|
|
629
804
|
children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"],
|
|
805
|
+
columnAlign: "Start",
|
|
806
|
+
columnResizing: "Fill",
|
|
807
|
+
gap: "Medium",
|
|
630
808
|
},
|
|
631
809
|
maxColumns: 4,
|
|
632
810
|
defaultColumns: 1,
|
|
633
|
-
appearance: {
|
|
811
|
+
appearance: {
|
|
812
|
+
isBordered: false,
|
|
813
|
+
hasBackground: false,
|
|
814
|
+
isEditorPresentationDifferent: false,
|
|
815
|
+
},
|
|
634
816
|
},
|
|
635
817
|
{
|
|
636
818
|
id: "imageOnLeft",
|
|
637
819
|
name: "Image on left",
|
|
638
820
|
image: "assets/variant-image-on-left.png",
|
|
639
|
-
description: undefined,
|
|
640
|
-
documentationLink: undefined,
|
|
641
821
|
layout: {
|
|
642
822
|
type: "Row",
|
|
643
823
|
children: [
|
|
644
824
|
{
|
|
645
825
|
type: "Column",
|
|
646
|
-
columnResizing: "Hug",
|
|
647
826
|
children: ["block.links.property.image"],
|
|
827
|
+
columnAlign: "Start",
|
|
828
|
+
columnResizing: "Hug",
|
|
829
|
+
gap: "Medium",
|
|
648
830
|
},
|
|
649
831
|
{
|
|
650
832
|
type: "Column",
|
|
651
|
-
gap: "Small",
|
|
652
833
|
children: ["block.links.property.title", "block.links.property.description"],
|
|
834
|
+
columnAlign: "Start",
|
|
835
|
+
columnResizing: "Fill",
|
|
836
|
+
gap: "Small",
|
|
653
837
|
},
|
|
654
838
|
],
|
|
839
|
+
columnAlign: "Start",
|
|
840
|
+
columnResizing: "Fill",
|
|
841
|
+
gap: "Medium",
|
|
655
842
|
},
|
|
656
843
|
maxColumns: 1,
|
|
657
844
|
defaultColumns: 1,
|
|
658
|
-
appearance: {
|
|
845
|
+
appearance: {
|
|
846
|
+
isBordered: false,
|
|
847
|
+
hasBackground: false,
|
|
848
|
+
isEditorPresentationDifferent: false,
|
|
849
|
+
},
|
|
659
850
|
},
|
|
660
851
|
{
|
|
661
852
|
id: "iconOnTop",
|
|
662
853
|
name: "Icon on top",
|
|
663
854
|
image: "assets/variant-icon-on-top.png",
|
|
664
|
-
description: undefined,
|
|
665
|
-
documentationLink: undefined,
|
|
666
855
|
layout: {
|
|
667
856
|
type: "Column",
|
|
668
857
|
children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"],
|
|
858
|
+
columnAlign: "Start",
|
|
859
|
+
columnResizing: "Fill",
|
|
860
|
+
gap: "Medium",
|
|
669
861
|
},
|
|
670
862
|
maxColumns: 4,
|
|
671
863
|
defaultColumns: 1,
|
|
672
|
-
appearance: {
|
|
864
|
+
appearance: {
|
|
865
|
+
isBordered: false,
|
|
866
|
+
hasBackground: false,
|
|
867
|
+
isEditorPresentationDifferent: false,
|
|
868
|
+
},
|
|
673
869
|
},
|
|
674
870
|
{
|
|
675
871
|
id: "iconOnLeft",
|
|
676
872
|
name: "Icon on left",
|
|
677
873
|
image: "assets/variant-icon-on-left.png",
|
|
678
|
-
description: undefined,
|
|
679
|
-
documentationLink: undefined,
|
|
680
874
|
layout: {
|
|
681
875
|
type: "Row",
|
|
682
876
|
children: [
|
|
683
877
|
{
|
|
684
878
|
type: "Column",
|
|
685
|
-
columnResizing: "Hug",
|
|
686
879
|
children: ["block.links.property.image"],
|
|
880
|
+
columnAlign: "Start",
|
|
881
|
+
columnResizing: "Hug",
|
|
882
|
+
gap: "Medium",
|
|
687
883
|
},
|
|
688
884
|
{
|
|
689
885
|
type: "Column",
|
|
690
|
-
gap: "Small",
|
|
691
886
|
children: ["block.links.property.title", "block.links.property.description"],
|
|
887
|
+
columnAlign: "Start",
|
|
888
|
+
columnResizing: "Fill",
|
|
889
|
+
gap: "Small",
|
|
692
890
|
},
|
|
693
891
|
],
|
|
892
|
+
columnAlign: "Start",
|
|
893
|
+
columnResizing: "Fill",
|
|
894
|
+
gap: "Medium",
|
|
694
895
|
},
|
|
695
896
|
maxColumns: 2,
|
|
696
897
|
defaultColumns: 1,
|
|
697
|
-
appearance: {
|
|
898
|
+
appearance: {
|
|
899
|
+
isBordered: false,
|
|
900
|
+
hasBackground: false,
|
|
901
|
+
isEditorPresentationDifferent: false,
|
|
902
|
+
},
|
|
698
903
|
},
|
|
699
904
|
],
|
|
700
905
|
defaultVariantKey: "imageOnTop",
|
|
701
906
|
},
|
|
702
907
|
behavior: {
|
|
703
908
|
dataType: "Item",
|
|
704
|
-
items: {
|
|
705
|
-
|
|
909
|
+
items: {
|
|
910
|
+
numberOfItems: -1,
|
|
911
|
+
allowLinks: true,
|
|
912
|
+
},
|
|
706
913
|
},
|
|
707
914
|
editorOptions: {
|
|
708
915
|
onboarding: {
|
|
@@ -711,15 +918,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
711
918
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4",
|
|
712
919
|
},
|
|
713
920
|
},
|
|
714
|
-
appearance: {
|
|
921
|
+
appearance: {
|
|
922
|
+
isBordered: false,
|
|
923
|
+
hasBackground: false,
|
|
924
|
+
},
|
|
715
925
|
},
|
|
716
926
|
{
|
|
717
927
|
id: "io.supernova.block.color-accessibility-grid",
|
|
718
928
|
name: "Accessibility Color Grid",
|
|
719
929
|
description: "Visualize accessibility of your color tokens.",
|
|
720
930
|
category: "Tokens",
|
|
721
|
-
icon: undefined,
|
|
722
|
-
documentationLink: undefined,
|
|
723
931
|
searchKeywords: ["color", "accessibility", "grid", "contrast", "blind", "impairment"],
|
|
724
932
|
item: {
|
|
725
933
|
properties: [
|
|
@@ -727,31 +935,45 @@ const blocks: PageBlockDefinition[] = [
|
|
|
727
935
|
id: "tokens",
|
|
728
936
|
name: "Tokens",
|
|
729
937
|
type: "Token",
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
938
|
+
options: {
|
|
939
|
+
allowedTypes: ["Color"],
|
|
940
|
+
allowPropertySelection: false,
|
|
941
|
+
allowThemeSelection: false,
|
|
942
|
+
},
|
|
733
943
|
},
|
|
734
944
|
],
|
|
735
|
-
appearance: {
|
|
945
|
+
appearance: {
|
|
946
|
+
isBordered: false,
|
|
947
|
+
hasBackground: false,
|
|
948
|
+
},
|
|
736
949
|
variants: [
|
|
737
950
|
{
|
|
738
951
|
id: "default",
|
|
739
952
|
name: "Default",
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
953
|
+
layout: {
|
|
954
|
+
type: "Column",
|
|
955
|
+
children: ["tokens"],
|
|
956
|
+
columnAlign: "Start",
|
|
957
|
+
columnResizing: "Fill",
|
|
958
|
+
gap: "Medium",
|
|
959
|
+
},
|
|
744
960
|
maxColumns: 1,
|
|
745
961
|
defaultColumns: 1,
|
|
746
|
-
appearance: {
|
|
962
|
+
appearance: {
|
|
963
|
+
isBordered: false,
|
|
964
|
+
hasBackground: false,
|
|
965
|
+
isEditorPresentationDifferent: false,
|
|
966
|
+
},
|
|
747
967
|
},
|
|
748
968
|
],
|
|
749
969
|
defaultVariantKey: "default",
|
|
750
970
|
},
|
|
751
971
|
behavior: {
|
|
752
972
|
dataType: "Token",
|
|
753
|
-
|
|
754
|
-
|
|
973
|
+
entities: {
|
|
974
|
+
selectionType: "Group",
|
|
975
|
+
maxSelected: 2,
|
|
976
|
+
},
|
|
755
977
|
},
|
|
756
978
|
editorOptions: {
|
|
757
979
|
onboarding: {
|
|
@@ -759,15 +981,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
759
981
|
documentationLink: "https://learn.supernova.io",
|
|
760
982
|
},
|
|
761
983
|
},
|
|
762
|
-
appearance: {
|
|
984
|
+
appearance: {
|
|
985
|
+
isBordered: false,
|
|
986
|
+
hasBackground: false,
|
|
987
|
+
},
|
|
763
988
|
},
|
|
764
989
|
{
|
|
765
990
|
id: "io.supernova.block.embed",
|
|
766
991
|
name: "Embed",
|
|
767
992
|
description: "Embed a generic URL",
|
|
768
993
|
category: "Media",
|
|
769
|
-
icon: undefined,
|
|
770
|
-
documentationLink: undefined,
|
|
771
994
|
searchKeywords: ["embed", "url", "iframe", "site", "import"],
|
|
772
995
|
item: {
|
|
773
996
|
properties: [
|
|
@@ -775,36 +998,46 @@ const blocks: PageBlockDefinition[] = [
|
|
|
775
998
|
id: "embedUrl",
|
|
776
999
|
name: "Embed URL",
|
|
777
1000
|
type: "EmbedURL",
|
|
778
|
-
description: undefined,
|
|
779
1001
|
options: {
|
|
780
1002
|
allowCaption: true,
|
|
781
1003
|
allowResize: true,
|
|
782
1004
|
defaultHeight: 400,
|
|
783
1005
|
urlValidationRegex: "^(https?://)?(www.)?.+$",
|
|
784
1006
|
},
|
|
785
|
-
variantOptions: undefined,
|
|
786
1007
|
},
|
|
787
1008
|
],
|
|
788
|
-
appearance: {
|
|
1009
|
+
appearance: {
|
|
1010
|
+
isBordered: false,
|
|
1011
|
+
hasBackground: false,
|
|
1012
|
+
},
|
|
789
1013
|
variants: [
|
|
790
1014
|
{
|
|
791
1015
|
id: "default",
|
|
792
1016
|
name: "Default",
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
1017
|
+
layout: {
|
|
1018
|
+
type: "Column",
|
|
1019
|
+
children: ["embedUrl"],
|
|
1020
|
+
columnAlign: "Start",
|
|
1021
|
+
columnResizing: "Fill",
|
|
1022
|
+
gap: "Medium",
|
|
1023
|
+
},
|
|
797
1024
|
maxColumns: 1,
|
|
798
1025
|
defaultColumns: 1,
|
|
799
|
-
appearance: {
|
|
1026
|
+
appearance: {
|
|
1027
|
+
isBordered: false,
|
|
1028
|
+
hasBackground: false,
|
|
1029
|
+
isEditorPresentationDifferent: false,
|
|
1030
|
+
},
|
|
800
1031
|
},
|
|
801
1032
|
],
|
|
802
1033
|
defaultVariantKey: "default",
|
|
803
1034
|
},
|
|
804
1035
|
behavior: {
|
|
805
1036
|
dataType: "Item",
|
|
806
|
-
items: {
|
|
807
|
-
|
|
1037
|
+
items: {
|
|
1038
|
+
numberOfItems: 1,
|
|
1039
|
+
allowLinks: false,
|
|
1040
|
+
},
|
|
808
1041
|
},
|
|
809
1042
|
editorOptions: {
|
|
810
1043
|
onboarding: {
|
|
@@ -813,15 +1046,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
813
1046
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/embed/public-url-2ZeRQ332",
|
|
814
1047
|
},
|
|
815
1048
|
},
|
|
816
|
-
appearance: {
|
|
1049
|
+
appearance: {
|
|
1050
|
+
isBordered: false,
|
|
1051
|
+
hasBackground: false,
|
|
1052
|
+
},
|
|
817
1053
|
},
|
|
818
1054
|
{
|
|
819
1055
|
id: "io.supernova.block.embed-youtube",
|
|
820
1056
|
name: "YouTube",
|
|
821
1057
|
description: "Embed a Youtube video",
|
|
822
1058
|
category: "Media",
|
|
823
|
-
icon: undefined,
|
|
824
|
-
documentationLink: undefined,
|
|
825
1059
|
searchKeywords: ["embed", "video", "player", "upload"],
|
|
826
1060
|
item: {
|
|
827
1061
|
properties: [
|
|
@@ -829,36 +1063,46 @@ const blocks: PageBlockDefinition[] = [
|
|
|
829
1063
|
id: "embed",
|
|
830
1064
|
name: "Youtube URL",
|
|
831
1065
|
type: "EmbedURL",
|
|
832
|
-
description: undefined,
|
|
833
1066
|
options: {
|
|
834
1067
|
allowCaption: false,
|
|
835
1068
|
allowResize: false,
|
|
836
1069
|
defaultHeight: 400,
|
|
837
1070
|
urlValidationRegex: "^(https?://)?(www.)?(youtube.com|youtu.?be)/.+$",
|
|
838
1071
|
},
|
|
839
|
-
variantOptions: undefined,
|
|
840
1072
|
},
|
|
841
1073
|
],
|
|
842
|
-
appearance: {
|
|
1074
|
+
appearance: {
|
|
1075
|
+
isBordered: false,
|
|
1076
|
+
hasBackground: false,
|
|
1077
|
+
},
|
|
843
1078
|
variants: [
|
|
844
1079
|
{
|
|
845
1080
|
id: "default",
|
|
846
1081
|
name: "Default",
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
1082
|
+
layout: {
|
|
1083
|
+
type: "Column",
|
|
1084
|
+
children: ["embed"],
|
|
1085
|
+
columnAlign: "Start",
|
|
1086
|
+
columnResizing: "Fill",
|
|
1087
|
+
gap: "Medium",
|
|
1088
|
+
},
|
|
851
1089
|
maxColumns: 1,
|
|
852
1090
|
defaultColumns: 1,
|
|
853
|
-
appearance: {
|
|
1091
|
+
appearance: {
|
|
1092
|
+
isBordered: false,
|
|
1093
|
+
hasBackground: false,
|
|
1094
|
+
isEditorPresentationDifferent: false,
|
|
1095
|
+
},
|
|
854
1096
|
},
|
|
855
1097
|
],
|
|
856
1098
|
defaultVariantKey: "default",
|
|
857
1099
|
},
|
|
858
1100
|
behavior: {
|
|
859
1101
|
dataType: "Item",
|
|
860
|
-
items: {
|
|
861
|
-
|
|
1102
|
+
items: {
|
|
1103
|
+
numberOfItems: 1,
|
|
1104
|
+
allowLinks: false,
|
|
1105
|
+
},
|
|
862
1106
|
},
|
|
863
1107
|
editorOptions: {
|
|
864
1108
|
onboarding: {
|
|
@@ -867,69 +1111,77 @@ const blocks: PageBlockDefinition[] = [
|
|
|
867
1111
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/youtube-Gh8VUrSF",
|
|
868
1112
|
},
|
|
869
1113
|
},
|
|
870
|
-
appearance: {
|
|
1114
|
+
appearance: {
|
|
1115
|
+
isBordered: false,
|
|
1116
|
+
hasBackground: false,
|
|
1117
|
+
},
|
|
871
1118
|
},
|
|
872
1119
|
{
|
|
873
1120
|
id: "io.supernova.block.embed-lottie",
|
|
874
1121
|
name: "Lottie animation",
|
|
875
1122
|
description: "Preview a Lottie animation",
|
|
876
1123
|
category: "Media",
|
|
877
|
-
icon: undefined,
|
|
878
|
-
documentationLink: undefined,
|
|
879
1124
|
searchKeywords: ["embed", "lottie", "animation", "rive", "json"],
|
|
880
1125
|
item: {
|
|
881
1126
|
properties: [
|
|
882
1127
|
{
|
|
883
|
-
id: "
|
|
1128
|
+
id: "url",
|
|
884
1129
|
name: "Lottie URL",
|
|
885
|
-
type: "
|
|
886
|
-
description: undefined,
|
|
1130
|
+
type: "URL",
|
|
887
1131
|
options: {
|
|
888
|
-
allowCaption: false,
|
|
889
|
-
allowResize: true,
|
|
890
|
-
defaultHeight: 400,
|
|
891
1132
|
urlValidationRegex:
|
|
892
1133
|
"^(https?:\\/\\/)?([\\w\\d\\-\\.]+)\\.([\\w]+)(\\/[\\w\\d_\\-\\.\\/]*)?(\\.json|\\.lottie)$\n",
|
|
893
1134
|
},
|
|
894
|
-
variantOptions: undefined,
|
|
895
1135
|
},
|
|
896
1136
|
{
|
|
897
1137
|
id: "autoplay",
|
|
898
1138
|
name: "Autoplay",
|
|
899
1139
|
type: "Boolean",
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
1140
|
+
options: {
|
|
1141
|
+
defaultValue: true,
|
|
1142
|
+
},
|
|
903
1143
|
},
|
|
904
1144
|
{
|
|
905
1145
|
id: "loop",
|
|
906
1146
|
name: "Loop",
|
|
907
1147
|
type: "Boolean",
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
1148
|
+
options: {
|
|
1149
|
+
defaultValue: true,
|
|
1150
|
+
},
|
|
911
1151
|
},
|
|
912
1152
|
],
|
|
913
|
-
appearance: {
|
|
1153
|
+
appearance: {
|
|
1154
|
+
isBordered: false,
|
|
1155
|
+
hasBackground: false,
|
|
1156
|
+
},
|
|
914
1157
|
variants: [
|
|
915
1158
|
{
|
|
916
1159
|
id: "default",
|
|
917
1160
|
name: "Default",
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1161
|
+
layout: {
|
|
1162
|
+
type: "Column",
|
|
1163
|
+
children: ["url", "autoplay", "loop"],
|
|
1164
|
+
columnAlign: "Start",
|
|
1165
|
+
columnResizing: "Fill",
|
|
1166
|
+
gap: "Medium",
|
|
1167
|
+
},
|
|
922
1168
|
maxColumns: 1,
|
|
923
1169
|
defaultColumns: 1,
|
|
924
|
-
appearance: {
|
|
1170
|
+
appearance: {
|
|
1171
|
+
isBordered: false,
|
|
1172
|
+
hasBackground: false,
|
|
1173
|
+
isEditorPresentationDifferent: false,
|
|
1174
|
+
},
|
|
925
1175
|
},
|
|
926
1176
|
],
|
|
927
1177
|
defaultVariantKey: "default",
|
|
928
1178
|
},
|
|
929
1179
|
behavior: {
|
|
930
1180
|
dataType: "Item",
|
|
931
|
-
items: {
|
|
932
|
-
|
|
1181
|
+
items: {
|
|
1182
|
+
numberOfItems: 1,
|
|
1183
|
+
allowLinks: false,
|
|
1184
|
+
},
|
|
933
1185
|
},
|
|
934
1186
|
editorOptions: {
|
|
935
1187
|
onboarding: {
|
|
@@ -938,15 +1190,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
938
1190
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/lottie-preview-7CqFdGv9",
|
|
939
1191
|
},
|
|
940
1192
|
},
|
|
941
|
-
appearance: {
|
|
1193
|
+
appearance: {
|
|
1194
|
+
isBordered: false,
|
|
1195
|
+
hasBackground: false,
|
|
1196
|
+
},
|
|
942
1197
|
},
|
|
943
1198
|
{
|
|
944
1199
|
id: "io.supernova.block.storybook",
|
|
945
1200
|
name: "Storybook",
|
|
946
1201
|
description: "Embed Storybook canvas",
|
|
947
1202
|
category: "Media",
|
|
948
|
-
icon: undefined,
|
|
949
|
-
documentationLink: undefined,
|
|
950
1203
|
searchKeywords: ["storybook", "story", "stories", "example", "preview", "code", "react"],
|
|
951
1204
|
item: {
|
|
952
1205
|
properties: [
|
|
@@ -954,31 +1207,45 @@ const blocks: PageBlockDefinition[] = [
|
|
|
954
1207
|
id: "embed",
|
|
955
1208
|
name: "Storybook URL",
|
|
956
1209
|
type: "Storybook",
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
1210
|
+
options: {
|
|
1211
|
+
allowCaption: true,
|
|
1212
|
+
allowResize: true,
|
|
1213
|
+
defaultHeight: 400,
|
|
1214
|
+
},
|
|
960
1215
|
},
|
|
961
1216
|
],
|
|
962
|
-
appearance: {
|
|
1217
|
+
appearance: {
|
|
1218
|
+
isBordered: false,
|
|
1219
|
+
hasBackground: false,
|
|
1220
|
+
},
|
|
963
1221
|
variants: [
|
|
964
1222
|
{
|
|
965
1223
|
id: "default",
|
|
966
1224
|
name: "Default",
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1225
|
+
layout: {
|
|
1226
|
+
type: "Column",
|
|
1227
|
+
children: ["embed"],
|
|
1228
|
+
columnAlign: "Start",
|
|
1229
|
+
columnResizing: "Fill",
|
|
1230
|
+
gap: "Medium",
|
|
1231
|
+
},
|
|
971
1232
|
maxColumns: 1,
|
|
972
1233
|
defaultColumns: 1,
|
|
973
|
-
appearance: {
|
|
1234
|
+
appearance: {
|
|
1235
|
+
isBordered: false,
|
|
1236
|
+
hasBackground: false,
|
|
1237
|
+
isEditorPresentationDifferent: false,
|
|
1238
|
+
},
|
|
974
1239
|
},
|
|
975
1240
|
],
|
|
976
1241
|
defaultVariantKey: "default",
|
|
977
1242
|
},
|
|
978
1243
|
behavior: {
|
|
979
1244
|
dataType: "Item",
|
|
980
|
-
items: {
|
|
981
|
-
|
|
1245
|
+
items: {
|
|
1246
|
+
numberOfItems: 1,
|
|
1247
|
+
allowLinks: false,
|
|
1248
|
+
},
|
|
982
1249
|
},
|
|
983
1250
|
editorOptions: {
|
|
984
1251
|
onboarding: {
|
|
@@ -986,52 +1253,63 @@ const blocks: PageBlockDefinition[] = [
|
|
|
986
1253
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/storybook-1EGPhwBl",
|
|
987
1254
|
},
|
|
988
1255
|
},
|
|
989
|
-
appearance: {
|
|
1256
|
+
appearance: {
|
|
1257
|
+
isBordered: false,
|
|
1258
|
+
hasBackground: false,
|
|
1259
|
+
},
|
|
990
1260
|
},
|
|
991
1261
|
{
|
|
992
1262
|
id: "io.supernova.block.embed-figma",
|
|
993
1263
|
name: "Figma embed",
|
|
994
1264
|
description: "Embed a Figma canvas or prototype",
|
|
995
1265
|
category: "Media",
|
|
996
|
-
icon: undefined,
|
|
997
|
-
documentationLink: undefined,
|
|
998
1266
|
searchKeywords: ["embed", "figma", "design", "prototype", "canvas"],
|
|
999
1267
|
item: {
|
|
1000
1268
|
properties: [
|
|
1001
1269
|
{
|
|
1002
1270
|
id: "embed",
|
|
1003
|
-
name: "Figma
|
|
1271
|
+
name: "Figma URL",
|
|
1004
1272
|
type: "EmbedURL",
|
|
1005
|
-
description: undefined,
|
|
1006
1273
|
options: {
|
|
1007
1274
|
allowCaption: false,
|
|
1008
1275
|
allowResize: true,
|
|
1009
1276
|
defaultHeight: 400,
|
|
1010
1277
|
urlValidationRegex: "^(https?://)?(www.)?(figma.com)/.+$",
|
|
1011
1278
|
},
|
|
1012
|
-
variantOptions: undefined,
|
|
1013
1279
|
},
|
|
1014
1280
|
],
|
|
1015
|
-
appearance: {
|
|
1281
|
+
appearance: {
|
|
1282
|
+
isBordered: false,
|
|
1283
|
+
hasBackground: false,
|
|
1284
|
+
},
|
|
1016
1285
|
variants: [
|
|
1017
1286
|
{
|
|
1018
1287
|
id: "default",
|
|
1019
1288
|
name: "Default",
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1289
|
+
layout: {
|
|
1290
|
+
type: "Column",
|
|
1291
|
+
children: ["embed"],
|
|
1292
|
+
columnAlign: "Start",
|
|
1293
|
+
columnResizing: "Fill",
|
|
1294
|
+
gap: "Medium",
|
|
1295
|
+
},
|
|
1024
1296
|
maxColumns: 1,
|
|
1025
1297
|
defaultColumns: 1,
|
|
1026
|
-
appearance: {
|
|
1298
|
+
appearance: {
|
|
1299
|
+
isBordered: false,
|
|
1300
|
+
hasBackground: false,
|
|
1301
|
+
isEditorPresentationDifferent: false,
|
|
1302
|
+
},
|
|
1027
1303
|
},
|
|
1028
1304
|
],
|
|
1029
1305
|
defaultVariantKey: "default",
|
|
1030
1306
|
},
|
|
1031
1307
|
behavior: {
|
|
1032
1308
|
dataType: "Item",
|
|
1033
|
-
items: {
|
|
1034
|
-
|
|
1309
|
+
items: {
|
|
1310
|
+
numberOfItems: 1,
|
|
1311
|
+
allowLinks: false,
|
|
1312
|
+
},
|
|
1035
1313
|
},
|
|
1036
1314
|
editorOptions: {
|
|
1037
1315
|
onboarding: {
|
|
@@ -1039,15 +1317,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1039
1317
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/embed-figma-GPNJsT8A",
|
|
1040
1318
|
},
|
|
1041
1319
|
},
|
|
1042
|
-
appearance: {
|
|
1320
|
+
appearance: {
|
|
1321
|
+
isBordered: false,
|
|
1322
|
+
hasBackground: false,
|
|
1323
|
+
},
|
|
1043
1324
|
},
|
|
1044
1325
|
{
|
|
1045
1326
|
id: "io.supernova.block.markdown",
|
|
1046
1327
|
name: "Markdown",
|
|
1047
1328
|
description: "Render Markdown URL",
|
|
1048
1329
|
category: "Other",
|
|
1049
|
-
icon: undefined,
|
|
1050
|
-
documentationLink: undefined,
|
|
1051
1330
|
searchKeywords: ["md", "embed", "api", "table", "mdx"],
|
|
1052
1331
|
item: {
|
|
1053
1332
|
properties: [
|
|
@@ -1055,31 +1334,80 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1055
1334
|
id: "markdownUrl",
|
|
1056
1335
|
name: "Markdown URL",
|
|
1057
1336
|
type: "Markdown",
|
|
1058
|
-
description: undefined,
|
|
1059
1337
|
options: {},
|
|
1060
|
-
variantOptions: undefined,
|
|
1061
1338
|
},
|
|
1062
1339
|
],
|
|
1063
|
-
appearance: {
|
|
1340
|
+
appearance: {
|
|
1341
|
+
isBordered: false,
|
|
1342
|
+
hasBackground: false,
|
|
1343
|
+
},
|
|
1064
1344
|
variants: [
|
|
1065
1345
|
{
|
|
1066
|
-
id: "
|
|
1067
|
-
name: "
|
|
1068
|
-
image:
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1346
|
+
id: "plain",
|
|
1347
|
+
name: "Plain",
|
|
1348
|
+
image: "assets/variant-plain.png",
|
|
1349
|
+
layout: {
|
|
1350
|
+
type: "Column",
|
|
1351
|
+
children: ["markdownUrl"],
|
|
1352
|
+
columnAlign: "Start",
|
|
1353
|
+
columnResizing: "Fill",
|
|
1354
|
+
gap: "Medium",
|
|
1355
|
+
},
|
|
1356
|
+
maxColumns: 1,
|
|
1357
|
+
defaultColumns: 1,
|
|
1358
|
+
appearance: {
|
|
1359
|
+
isBordered: false,
|
|
1360
|
+
hasBackground: false,
|
|
1361
|
+
isEditorPresentationDifferent: true,
|
|
1362
|
+
},
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
id: "bordered",
|
|
1366
|
+
name: "Bordered",
|
|
1367
|
+
image: "assets/variant-Bordered.png",
|
|
1368
|
+
layout: {
|
|
1369
|
+
type: "Column",
|
|
1370
|
+
children: ["markdownUrl"],
|
|
1371
|
+
columnAlign: "Start",
|
|
1372
|
+
columnResizing: "Fill",
|
|
1373
|
+
gap: "Medium",
|
|
1374
|
+
},
|
|
1375
|
+
maxColumns: 1,
|
|
1376
|
+
defaultColumns: 1,
|
|
1377
|
+
appearance: {
|
|
1378
|
+
isBordered: false,
|
|
1379
|
+
hasBackground: false,
|
|
1380
|
+
isEditorPresentationDifferent: true,
|
|
1381
|
+
},
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
id: "boxed",
|
|
1385
|
+
name: "Boxed",
|
|
1386
|
+
image: "assets/variant-boxed.png",
|
|
1387
|
+
layout: {
|
|
1388
|
+
type: "Column",
|
|
1389
|
+
children: ["markdownUrl"],
|
|
1390
|
+
columnAlign: "Start",
|
|
1391
|
+
columnResizing: "Fill",
|
|
1392
|
+
gap: "Medium",
|
|
1393
|
+
},
|
|
1072
1394
|
maxColumns: 1,
|
|
1073
1395
|
defaultColumns: 1,
|
|
1074
|
-
appearance: {
|
|
1396
|
+
appearance: {
|
|
1397
|
+
isBordered: false,
|
|
1398
|
+
hasBackground: false,
|
|
1399
|
+
isEditorPresentationDifferent: true,
|
|
1400
|
+
},
|
|
1075
1401
|
},
|
|
1076
1402
|
],
|
|
1077
|
-
defaultVariantKey: "
|
|
1403
|
+
defaultVariantKey: "plain",
|
|
1078
1404
|
},
|
|
1079
1405
|
behavior: {
|
|
1080
1406
|
dataType: "Item",
|
|
1081
|
-
items: {
|
|
1082
|
-
|
|
1407
|
+
items: {
|
|
1408
|
+
numberOfItems: 1,
|
|
1409
|
+
allowLinks: false,
|
|
1410
|
+
},
|
|
1083
1411
|
},
|
|
1084
1412
|
editorOptions: {
|
|
1085
1413
|
onboarding: {
|
|
@@ -1088,15 +1416,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1088
1416
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/code/markdown/general-B8wQVOem",
|
|
1089
1417
|
},
|
|
1090
1418
|
},
|
|
1091
|
-
appearance: {
|
|
1419
|
+
appearance: {
|
|
1420
|
+
isBordered: false,
|
|
1421
|
+
hasBackground: false,
|
|
1422
|
+
},
|
|
1092
1423
|
},
|
|
1093
1424
|
{
|
|
1094
1425
|
id: "io.supernova.block.table",
|
|
1095
1426
|
name: "Table",
|
|
1096
1427
|
description: "Display a simple table",
|
|
1097
1428
|
category: "Layout",
|
|
1098
|
-
icon: undefined,
|
|
1099
|
-
documentationLink: undefined,
|
|
1100
1429
|
searchKeywords: ["grid", "data", "spreadsheet", "api"],
|
|
1101
1430
|
item: {
|
|
1102
1431
|
properties: [
|
|
@@ -1104,31 +1433,41 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1104
1433
|
id: "table",
|
|
1105
1434
|
name: "Table",
|
|
1106
1435
|
type: "Table",
|
|
1107
|
-
description: undefined,
|
|
1108
1436
|
options: {},
|
|
1109
|
-
variantOptions: undefined,
|
|
1110
1437
|
},
|
|
1111
1438
|
],
|
|
1112
|
-
appearance: {
|
|
1439
|
+
appearance: {
|
|
1440
|
+
isBordered: false,
|
|
1441
|
+
hasBackground: false,
|
|
1442
|
+
},
|
|
1113
1443
|
variants: [
|
|
1114
1444
|
{
|
|
1115
1445
|
id: "default",
|
|
1116
1446
|
name: "Default",
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1447
|
+
layout: {
|
|
1448
|
+
type: "Column",
|
|
1449
|
+
children: ["table"],
|
|
1450
|
+
columnAlign: "Start",
|
|
1451
|
+
columnResizing: "Fill",
|
|
1452
|
+
gap: "Medium",
|
|
1453
|
+
},
|
|
1121
1454
|
maxColumns: 1,
|
|
1122
1455
|
defaultColumns: 1,
|
|
1123
|
-
appearance: {
|
|
1456
|
+
appearance: {
|
|
1457
|
+
isBordered: false,
|
|
1458
|
+
hasBackground: false,
|
|
1459
|
+
isEditorPresentationDifferent: false,
|
|
1460
|
+
},
|
|
1124
1461
|
},
|
|
1125
1462
|
],
|
|
1126
1463
|
defaultVariantKey: "default",
|
|
1127
1464
|
},
|
|
1128
1465
|
behavior: {
|
|
1129
1466
|
dataType: "Item",
|
|
1130
|
-
items: {
|
|
1131
|
-
|
|
1467
|
+
items: {
|
|
1468
|
+
numberOfItems: 1,
|
|
1469
|
+
allowLinks: false,
|
|
1470
|
+
},
|
|
1132
1471
|
},
|
|
1133
1472
|
editorOptions: {
|
|
1134
1473
|
onboarding: {
|
|
@@ -1136,15 +1475,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1136
1475
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/layout/table-R8KGnxej",
|
|
1137
1476
|
},
|
|
1138
1477
|
},
|
|
1139
|
-
appearance: {
|
|
1478
|
+
appearance: {
|
|
1479
|
+
isBordered: false,
|
|
1480
|
+
hasBackground: false,
|
|
1481
|
+
},
|
|
1140
1482
|
},
|
|
1141
1483
|
{
|
|
1142
1484
|
id: "io.supernova.block.token-detail",
|
|
1143
1485
|
name: "Token detail",
|
|
1144
1486
|
description: "Show a single design tokens",
|
|
1145
1487
|
category: "Tokens",
|
|
1146
|
-
icon: undefined,
|
|
1147
|
-
documentationLink: undefined,
|
|
1148
1488
|
searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
|
|
1149
1489
|
item: {
|
|
1150
1490
|
properties: [
|
|
@@ -1152,53 +1492,84 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1152
1492
|
id: "tokens",
|
|
1153
1493
|
name: "Tokens",
|
|
1154
1494
|
type: "Token",
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1495
|
+
options: {
|
|
1496
|
+
renderLayoutAs: "List",
|
|
1497
|
+
defaultTheme: "none",
|
|
1498
|
+
defaultValuePreview: "splitView",
|
|
1499
|
+
},
|
|
1158
1500
|
},
|
|
1159
1501
|
],
|
|
1160
|
-
appearance: {
|
|
1502
|
+
appearance: {
|
|
1503
|
+
isBordered: false,
|
|
1504
|
+
hasBackground: false,
|
|
1505
|
+
},
|
|
1161
1506
|
variants: [
|
|
1162
1507
|
{
|
|
1163
1508
|
id: "table",
|
|
1164
1509
|
name: "Table Row",
|
|
1165
1510
|
image: "assets/variant-table.png",
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1511
|
+
layout: {
|
|
1512
|
+
type: "Column",
|
|
1513
|
+
children: ["tokens"],
|
|
1514
|
+
columnAlign: "Start",
|
|
1515
|
+
columnResizing: "Fill",
|
|
1516
|
+
gap: "Medium",
|
|
1517
|
+
},
|
|
1169
1518
|
maxColumns: 1,
|
|
1170
1519
|
defaultColumns: 1,
|
|
1171
|
-
appearance: {
|
|
1520
|
+
appearance: {
|
|
1521
|
+
isBordered: false,
|
|
1522
|
+
hasBackground: false,
|
|
1523
|
+
isEditorPresentationDifferent: false,
|
|
1524
|
+
},
|
|
1172
1525
|
},
|
|
1173
1526
|
{
|
|
1174
1527
|
id: "grid",
|
|
1175
1528
|
name: "Grid Item",
|
|
1176
1529
|
image: "assets/variant-grid.png",
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1530
|
+
layout: {
|
|
1531
|
+
type: "Column",
|
|
1532
|
+
children: ["tokens"],
|
|
1533
|
+
columnAlign: "Start",
|
|
1534
|
+
columnResizing: "Fill",
|
|
1535
|
+
gap: "Medium",
|
|
1536
|
+
},
|
|
1180
1537
|
maxColumns: 1,
|
|
1181
1538
|
defaultColumns: 1,
|
|
1182
|
-
appearance: {
|
|
1539
|
+
appearance: {
|
|
1540
|
+
isBordered: false,
|
|
1541
|
+
hasBackground: false,
|
|
1542
|
+
isEditorPresentationDifferent: false,
|
|
1543
|
+
},
|
|
1183
1544
|
},
|
|
1184
1545
|
{
|
|
1185
1546
|
id: "color-stack",
|
|
1186
1547
|
name: "Color stack item",
|
|
1187
1548
|
image: "assets/variant-color-stack.png",
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1549
|
+
layout: {
|
|
1550
|
+
type: "Column",
|
|
1551
|
+
children: ["tokens"],
|
|
1552
|
+
columnAlign: "Start",
|
|
1553
|
+
columnResizing: "Fill",
|
|
1554
|
+
gap: "Medium",
|
|
1555
|
+
},
|
|
1191
1556
|
maxColumns: 1,
|
|
1192
1557
|
defaultColumns: 1,
|
|
1193
|
-
appearance: {
|
|
1558
|
+
appearance: {
|
|
1559
|
+
isBordered: false,
|
|
1560
|
+
hasBackground: false,
|
|
1561
|
+
isEditorPresentationDifferent: false,
|
|
1562
|
+
},
|
|
1194
1563
|
},
|
|
1195
1564
|
],
|
|
1196
1565
|
defaultVariantKey: "table",
|
|
1197
1566
|
},
|
|
1198
1567
|
behavior: {
|
|
1199
1568
|
dataType: "Token",
|
|
1200
|
-
|
|
1201
|
-
|
|
1569
|
+
entities: {
|
|
1570
|
+
selectionType: "Entity",
|
|
1571
|
+
maxSelected: 1,
|
|
1572
|
+
},
|
|
1202
1573
|
},
|
|
1203
1574
|
editorOptions: {
|
|
1204
1575
|
onboarding: {
|
|
@@ -1207,15 +1578,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1207
1578
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-detail-04",
|
|
1208
1579
|
},
|
|
1209
1580
|
},
|
|
1210
|
-
appearance: {
|
|
1581
|
+
appearance: {
|
|
1582
|
+
isBordered: false,
|
|
1583
|
+
hasBackground: false,
|
|
1584
|
+
},
|
|
1211
1585
|
},
|
|
1212
1586
|
{
|
|
1213
1587
|
id: "io.supernova.block.token-list",
|
|
1214
1588
|
name: "Token list",
|
|
1215
1589
|
description: "Show a list of design tokens",
|
|
1216
1590
|
category: "Tokens",
|
|
1217
|
-
icon: undefined,
|
|
1218
|
-
documentationLink: undefined,
|
|
1219
1591
|
searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme", "accessibility", "contrast"],
|
|
1220
1592
|
item: {
|
|
1221
1593
|
properties: [
|
|
@@ -1223,64 +1595,108 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1223
1595
|
id: "tokens",
|
|
1224
1596
|
name: "Tokens",
|
|
1225
1597
|
type: "Token",
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1598
|
+
options: {
|
|
1599
|
+
renderLayoutAs: "List",
|
|
1600
|
+
defaultTheme: "none",
|
|
1601
|
+
defaultValuePreview: "splitView",
|
|
1602
|
+
},
|
|
1603
|
+
variantOptions: {
|
|
1604
|
+
grid: {
|
|
1605
|
+
renderLayoutAs: "Grid",
|
|
1606
|
+
},
|
|
1607
|
+
},
|
|
1229
1608
|
},
|
|
1230
1609
|
],
|
|
1231
|
-
appearance: {
|
|
1610
|
+
appearance: {
|
|
1611
|
+
isBordered: false,
|
|
1612
|
+
hasBackground: false,
|
|
1613
|
+
},
|
|
1232
1614
|
variants: [
|
|
1233
1615
|
{
|
|
1234
1616
|
id: "table",
|
|
1235
1617
|
name: "Table",
|
|
1236
1618
|
image: "assets/variant-table.png",
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1619
|
+
layout: {
|
|
1620
|
+
type: "Column",
|
|
1621
|
+
children: ["tokens"],
|
|
1622
|
+
columnAlign: "Start",
|
|
1623
|
+
columnResizing: "Fill",
|
|
1624
|
+
gap: "Medium",
|
|
1625
|
+
},
|
|
1240
1626
|
maxColumns: 1,
|
|
1241
1627
|
defaultColumns: 1,
|
|
1242
|
-
appearance: {
|
|
1628
|
+
appearance: {
|
|
1629
|
+
isBordered: false,
|
|
1630
|
+
hasBackground: false,
|
|
1631
|
+
isEditorPresentationDifferent: false,
|
|
1632
|
+
},
|
|
1243
1633
|
},
|
|
1244
1634
|
{
|
|
1245
1635
|
id: "grid",
|
|
1246
1636
|
name: "Grid",
|
|
1247
1637
|
image: "assets/variant-grid.png",
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1638
|
+
layout: {
|
|
1639
|
+
type: "Column",
|
|
1640
|
+
children: ["tokens"],
|
|
1641
|
+
columnAlign: "Start",
|
|
1642
|
+
columnResizing: "Fill",
|
|
1643
|
+
gap: "Medium",
|
|
1644
|
+
},
|
|
1251
1645
|
maxColumns: 4,
|
|
1252
1646
|
defaultColumns: 1,
|
|
1253
|
-
appearance: {
|
|
1647
|
+
appearance: {
|
|
1648
|
+
isBordered: false,
|
|
1649
|
+
hasBackground: false,
|
|
1650
|
+
isEditorPresentationDifferent: false,
|
|
1651
|
+
},
|
|
1254
1652
|
},
|
|
1255
1653
|
{
|
|
1256
1654
|
id: "color-stack",
|
|
1257
1655
|
name: "Color stack",
|
|
1258
1656
|
image: "assets/variant-color-stack.png",
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1657
|
+
layout: {
|
|
1658
|
+
type: "Column",
|
|
1659
|
+
children: ["tokens"],
|
|
1660
|
+
columnAlign: "Start",
|
|
1661
|
+
columnResizing: "Fill",
|
|
1662
|
+
gap: "Medium",
|
|
1663
|
+
},
|
|
1262
1664
|
maxColumns: 1,
|
|
1263
1665
|
defaultColumns: 1,
|
|
1264
|
-
appearance: {
|
|
1666
|
+
appearance: {
|
|
1667
|
+
isBordered: false,
|
|
1668
|
+
hasBackground: false,
|
|
1669
|
+
isEditorPresentationDifferent: false,
|
|
1670
|
+
},
|
|
1265
1671
|
},
|
|
1266
1672
|
{
|
|
1267
1673
|
id: "color-contrast-grid",
|
|
1268
1674
|
name: "Color contrast grid",
|
|
1269
1675
|
image: "assets/variant-color-contrast-grid.png",
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1676
|
+
layout: {
|
|
1677
|
+
type: "Column",
|
|
1678
|
+
children: ["tokens"],
|
|
1679
|
+
columnAlign: "Start",
|
|
1680
|
+
columnResizing: "Fill",
|
|
1681
|
+
gap: "Medium",
|
|
1682
|
+
},
|
|
1273
1683
|
maxColumns: 1,
|
|
1274
1684
|
defaultColumns: 1,
|
|
1275
|
-
appearance: {
|
|
1685
|
+
appearance: {
|
|
1686
|
+
isBordered: false,
|
|
1687
|
+
hasBackground: false,
|
|
1688
|
+
isEditorPresentationDifferent: false,
|
|
1689
|
+
},
|
|
1276
1690
|
},
|
|
1277
1691
|
],
|
|
1278
1692
|
defaultVariantKey: "table",
|
|
1279
1693
|
},
|
|
1280
1694
|
behavior: {
|
|
1281
1695
|
dataType: "Token",
|
|
1282
|
-
|
|
1283
|
-
|
|
1696
|
+
entities: {
|
|
1697
|
+
selectionType: "Entity",
|
|
1698
|
+
maxSelected: 0,
|
|
1699
|
+
},
|
|
1284
1700
|
},
|
|
1285
1701
|
editorOptions: {
|
|
1286
1702
|
onboarding: {
|
|
@@ -1290,15 +1706,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1290
1706
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-list-06",
|
|
1291
1707
|
},
|
|
1292
1708
|
},
|
|
1293
|
-
appearance: {
|
|
1709
|
+
appearance: {
|
|
1710
|
+
isBordered: false,
|
|
1711
|
+
hasBackground: false,
|
|
1712
|
+
},
|
|
1294
1713
|
},
|
|
1295
1714
|
{
|
|
1296
1715
|
id: "io.supernova.block.token-group",
|
|
1297
1716
|
name: "Token group",
|
|
1298
1717
|
description: "Show a group of design tokens",
|
|
1299
1718
|
category: "Tokens",
|
|
1300
|
-
icon: undefined,
|
|
1301
|
-
documentationLink: undefined,
|
|
1302
1719
|
searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme", "accessibility", "contrast"],
|
|
1303
1720
|
item: {
|
|
1304
1721
|
properties: [
|
|
@@ -1306,64 +1723,108 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1306
1723
|
id: "tokens",
|
|
1307
1724
|
name: "Tokens",
|
|
1308
1725
|
type: "Token",
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1726
|
+
options: {
|
|
1727
|
+
renderLayoutAs: "List",
|
|
1728
|
+
defaultTheme: "none",
|
|
1729
|
+
defaultValuePreview: "splitView",
|
|
1730
|
+
},
|
|
1731
|
+
variantOptions: {
|
|
1732
|
+
grid: {
|
|
1733
|
+
renderLayoutAs: "Grid",
|
|
1734
|
+
},
|
|
1735
|
+
},
|
|
1312
1736
|
},
|
|
1313
1737
|
],
|
|
1314
|
-
appearance: {
|
|
1738
|
+
appearance: {
|
|
1739
|
+
isBordered: false,
|
|
1740
|
+
hasBackground: false,
|
|
1741
|
+
},
|
|
1315
1742
|
variants: [
|
|
1316
1743
|
{
|
|
1317
1744
|
id: "table",
|
|
1318
1745
|
name: "Table",
|
|
1319
1746
|
image: "assets/variant-table.png",
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1747
|
+
layout: {
|
|
1748
|
+
type: "Column",
|
|
1749
|
+
children: ["tokens"],
|
|
1750
|
+
columnAlign: "Start",
|
|
1751
|
+
columnResizing: "Fill",
|
|
1752
|
+
gap: "Medium",
|
|
1753
|
+
},
|
|
1323
1754
|
maxColumns: 1,
|
|
1324
1755
|
defaultColumns: 1,
|
|
1325
|
-
appearance: {
|
|
1756
|
+
appearance: {
|
|
1757
|
+
isBordered: false,
|
|
1758
|
+
hasBackground: false,
|
|
1759
|
+
isEditorPresentationDifferent: false,
|
|
1760
|
+
},
|
|
1326
1761
|
},
|
|
1327
1762
|
{
|
|
1328
1763
|
id: "grid",
|
|
1329
1764
|
name: "Grid",
|
|
1330
1765
|
image: "assets/variant-grid.png",
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1766
|
+
layout: {
|
|
1767
|
+
type: "Column",
|
|
1768
|
+
children: ["tokens"],
|
|
1769
|
+
columnAlign: "Start",
|
|
1770
|
+
columnResizing: "Fill",
|
|
1771
|
+
gap: "Medium",
|
|
1772
|
+
},
|
|
1334
1773
|
maxColumns: 4,
|
|
1335
1774
|
defaultColumns: 1,
|
|
1336
|
-
appearance: {
|
|
1775
|
+
appearance: {
|
|
1776
|
+
isBordered: false,
|
|
1777
|
+
hasBackground: false,
|
|
1778
|
+
isEditorPresentationDifferent: false,
|
|
1779
|
+
},
|
|
1337
1780
|
},
|
|
1338
1781
|
{
|
|
1339
1782
|
id: "color-stack",
|
|
1340
1783
|
name: "Color stack",
|
|
1341
1784
|
image: "assets/variant-color-stack.png",
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1785
|
+
layout: {
|
|
1786
|
+
type: "Column",
|
|
1787
|
+
children: ["tokens"],
|
|
1788
|
+
columnAlign: "Start",
|
|
1789
|
+
columnResizing: "Fill",
|
|
1790
|
+
gap: "Medium",
|
|
1791
|
+
},
|
|
1345
1792
|
maxColumns: 2,
|
|
1346
1793
|
defaultColumns: 1,
|
|
1347
|
-
appearance: {
|
|
1794
|
+
appearance: {
|
|
1795
|
+
isBordered: false,
|
|
1796
|
+
hasBackground: false,
|
|
1797
|
+
isEditorPresentationDifferent: false,
|
|
1798
|
+
},
|
|
1348
1799
|
},
|
|
1349
1800
|
{
|
|
1350
1801
|
id: "color-contrast-grid",
|
|
1351
1802
|
name: "Color contrast grid",
|
|
1352
1803
|
image: "assets/variant-color-contrast-grid.png",
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1804
|
+
layout: {
|
|
1805
|
+
type: "Column",
|
|
1806
|
+
children: ["tokens"],
|
|
1807
|
+
columnAlign: "Start",
|
|
1808
|
+
columnResizing: "Fill",
|
|
1809
|
+
gap: "Medium",
|
|
1810
|
+
},
|
|
1356
1811
|
maxColumns: 1,
|
|
1357
1812
|
defaultColumns: 1,
|
|
1358
|
-
appearance: {
|
|
1813
|
+
appearance: {
|
|
1814
|
+
isBordered: false,
|
|
1815
|
+
hasBackground: false,
|
|
1816
|
+
isEditorPresentationDifferent: false,
|
|
1817
|
+
},
|
|
1359
1818
|
},
|
|
1360
1819
|
],
|
|
1361
1820
|
defaultVariantKey: "table",
|
|
1362
1821
|
},
|
|
1363
1822
|
behavior: {
|
|
1364
1823
|
dataType: "Token",
|
|
1365
|
-
|
|
1366
|
-
|
|
1824
|
+
entities: {
|
|
1825
|
+
selectionType: "Group",
|
|
1826
|
+
maxSelected: 1,
|
|
1827
|
+
},
|
|
1367
1828
|
},
|
|
1368
1829
|
editorOptions: {
|
|
1369
1830
|
onboarding: {
|
|
@@ -1373,6 +1834,2052 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1373
1834
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09",
|
|
1374
1835
|
},
|
|
1375
1836
|
},
|
|
1376
|
-
appearance: {
|
|
1837
|
+
appearance: {
|
|
1838
|
+
isBordered: false,
|
|
1839
|
+
hasBackground: false,
|
|
1840
|
+
},
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
id: "io.supernova.block.code",
|
|
1844
|
+
name: "Code",
|
|
1845
|
+
description: "Code description",
|
|
1846
|
+
category: "Code",
|
|
1847
|
+
searchKeywords: ["code"],
|
|
1848
|
+
item: {
|
|
1849
|
+
properties: [
|
|
1850
|
+
{
|
|
1851
|
+
id: "code",
|
|
1852
|
+
name: "Code",
|
|
1853
|
+
type: "Code",
|
|
1854
|
+
options: {},
|
|
1855
|
+
},
|
|
1856
|
+
],
|
|
1857
|
+
appearance: {
|
|
1858
|
+
isBordered: false,
|
|
1859
|
+
hasBackground: false,
|
|
1860
|
+
},
|
|
1861
|
+
variants: [
|
|
1862
|
+
{
|
|
1863
|
+
id: "default",
|
|
1864
|
+
name: "Default",
|
|
1865
|
+
layout: {
|
|
1866
|
+
type: "Column",
|
|
1867
|
+
children: ["code"],
|
|
1868
|
+
columnAlign: "Start",
|
|
1869
|
+
columnResizing: "Fill",
|
|
1870
|
+
gap: "Medium",
|
|
1871
|
+
},
|
|
1872
|
+
maxColumns: 1,
|
|
1873
|
+
defaultColumns: 1,
|
|
1874
|
+
appearance: {
|
|
1875
|
+
isBordered: false,
|
|
1876
|
+
hasBackground: false,
|
|
1877
|
+
isEditorPresentationDifferent: false,
|
|
1878
|
+
},
|
|
1879
|
+
},
|
|
1880
|
+
],
|
|
1881
|
+
defaultVariantKey: "default",
|
|
1882
|
+
},
|
|
1883
|
+
behavior: {
|
|
1884
|
+
dataType: "Item",
|
|
1885
|
+
items: {
|
|
1886
|
+
numberOfItems: 1,
|
|
1887
|
+
allowLinks: false,
|
|
1888
|
+
},
|
|
1889
|
+
},
|
|
1890
|
+
editorOptions: {
|
|
1891
|
+
onboarding: {
|
|
1892
|
+
helpText: "Code descriptor.",
|
|
1893
|
+
},
|
|
1894
|
+
},
|
|
1895
|
+
appearance: {
|
|
1896
|
+
isBordered: false,
|
|
1897
|
+
hasBackground: false,
|
|
1898
|
+
},
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
id: "io.supernova.block.code-react",
|
|
1902
|
+
name: "React code",
|
|
1903
|
+
description: "Render React code",
|
|
1904
|
+
category: "Code",
|
|
1905
|
+
searchKeywords: ["code", "react", "snippet", "storybook", "editor", "example"],
|
|
1906
|
+
item: {
|
|
1907
|
+
properties: [
|
|
1908
|
+
{
|
|
1909
|
+
id: "code",
|
|
1910
|
+
name: "Code",
|
|
1911
|
+
type: "CodeSandbox",
|
|
1912
|
+
options: {
|
|
1913
|
+
renderLayoutAs: "PreviewOnTop",
|
|
1914
|
+
},
|
|
1915
|
+
variantOptions: {
|
|
1916
|
+
codeTop: {
|
|
1917
|
+
renderLayoutAs: "PreviewOnBottom",
|
|
1918
|
+
},
|
|
1919
|
+
codeLeft: {
|
|
1920
|
+
renderLayoutAs: "PreviewOnRight",
|
|
1921
|
+
},
|
|
1922
|
+
codeRight: {
|
|
1923
|
+
renderLayoutAs: "PreviewOnLeft",
|
|
1924
|
+
},
|
|
1925
|
+
},
|
|
1926
|
+
},
|
|
1927
|
+
],
|
|
1928
|
+
appearance: {
|
|
1929
|
+
isBordered: false,
|
|
1930
|
+
hasBackground: false,
|
|
1931
|
+
},
|
|
1932
|
+
variants: [
|
|
1933
|
+
{
|
|
1934
|
+
id: "codeBottom",
|
|
1935
|
+
name: "Full width, code bottom",
|
|
1936
|
+
image: "thumbnails/RenderCode_CodeBottom.png",
|
|
1937
|
+
description: "Full-width block of code, with a preview on top.",
|
|
1938
|
+
layout: {
|
|
1939
|
+
type: "Column",
|
|
1940
|
+
children: ["code"],
|
|
1941
|
+
columnAlign: "Start",
|
|
1942
|
+
columnResizing: "Fill",
|
|
1943
|
+
gap: "Medium",
|
|
1944
|
+
},
|
|
1945
|
+
maxColumns: 1,
|
|
1946
|
+
defaultColumns: 1,
|
|
1947
|
+
appearance: {
|
|
1948
|
+
isBordered: false,
|
|
1949
|
+
hasBackground: false,
|
|
1950
|
+
isEditorPresentationDifferent: false,
|
|
1951
|
+
},
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
id: "codeTop",
|
|
1955
|
+
name: "Full width, code top",
|
|
1956
|
+
image: "thumbnails/RenderCode_CodeTop.png",
|
|
1957
|
+
description: "Full-width block of code, with a preview on bottom.",
|
|
1958
|
+
layout: {
|
|
1959
|
+
type: "Column",
|
|
1960
|
+
children: ["code"],
|
|
1961
|
+
columnAlign: "Start",
|
|
1962
|
+
columnResizing: "Fill",
|
|
1963
|
+
gap: "Medium",
|
|
1964
|
+
},
|
|
1965
|
+
maxColumns: 1,
|
|
1966
|
+
defaultColumns: 1,
|
|
1967
|
+
appearance: {
|
|
1968
|
+
isBordered: false,
|
|
1969
|
+
hasBackground: false,
|
|
1970
|
+
isEditorPresentationDifferent: false,
|
|
1971
|
+
},
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
id: "codeLeft",
|
|
1975
|
+
name: "Side by side, code left",
|
|
1976
|
+
image: "thumbnails/RenderCode_CodeLeft.png",
|
|
1977
|
+
description: "Side-by-side preview and code, with code on the left.",
|
|
1978
|
+
layout: {
|
|
1979
|
+
type: "Column",
|
|
1980
|
+
children: ["code"],
|
|
1981
|
+
columnAlign: "Start",
|
|
1982
|
+
columnResizing: "Fill",
|
|
1983
|
+
gap: "Medium",
|
|
1984
|
+
},
|
|
1985
|
+
maxColumns: 1,
|
|
1986
|
+
defaultColumns: 1,
|
|
1987
|
+
appearance: {
|
|
1988
|
+
isBordered: false,
|
|
1989
|
+
hasBackground: false,
|
|
1990
|
+
isEditorPresentationDifferent: false,
|
|
1991
|
+
},
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
id: "codeRight",
|
|
1995
|
+
name: "Side by side, code right",
|
|
1996
|
+
image: "thumbnails/RenderCode_CodeRight.png",
|
|
1997
|
+
description: "Side-by-side preview and code, with code on the right.",
|
|
1998
|
+
layout: {
|
|
1999
|
+
type: "Column",
|
|
2000
|
+
children: ["code"],
|
|
2001
|
+
columnAlign: "Start",
|
|
2002
|
+
columnResizing: "Fill",
|
|
2003
|
+
gap: "Medium",
|
|
2004
|
+
},
|
|
2005
|
+
maxColumns: 1,
|
|
2006
|
+
defaultColumns: 1,
|
|
2007
|
+
appearance: {
|
|
2008
|
+
isBordered: false,
|
|
2009
|
+
hasBackground: false,
|
|
2010
|
+
isEditorPresentationDifferent: false,
|
|
2011
|
+
},
|
|
2012
|
+
},
|
|
2013
|
+
],
|
|
2014
|
+
defaultVariantKey: "codeBottom",
|
|
2015
|
+
},
|
|
2016
|
+
behavior: {
|
|
2017
|
+
dataType: "Item",
|
|
2018
|
+
items: {
|
|
2019
|
+
numberOfItems: 1,
|
|
2020
|
+
allowLinks: false,
|
|
2021
|
+
},
|
|
2022
|
+
},
|
|
2023
|
+
editorOptions: {
|
|
2024
|
+
onboarding: {
|
|
2025
|
+
helpText: "Display rendered code example",
|
|
2026
|
+
documentationLink:
|
|
2027
|
+
"https://learn.supernova.io/latest/documentation/types-of-blocks/code/render-react-code-vxufnkFm",
|
|
2028
|
+
},
|
|
2029
|
+
},
|
|
2030
|
+
appearance: {
|
|
2031
|
+
isBordered: false,
|
|
2032
|
+
hasBackground: false,
|
|
2033
|
+
},
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
id: "io.supernova.block.link",
|
|
2037
|
+
name: "Link",
|
|
2038
|
+
description: "Preview of a link",
|
|
2039
|
+
category: "Media",
|
|
2040
|
+
searchKeywords: [],
|
|
2041
|
+
item: {
|
|
2042
|
+
properties: [
|
|
2043
|
+
{
|
|
2044
|
+
id: "block.links.property.url",
|
|
2045
|
+
name: "URL",
|
|
2046
|
+
type: "EmbedURL",
|
|
2047
|
+
options: {
|
|
2048
|
+
defaultHeight: 120,
|
|
2049
|
+
allowResize: false,
|
|
2050
|
+
},
|
|
2051
|
+
},
|
|
2052
|
+
],
|
|
2053
|
+
appearance: {
|
|
2054
|
+
isBordered: false,
|
|
2055
|
+
hasBackground: false,
|
|
2056
|
+
},
|
|
2057
|
+
variants: [
|
|
2058
|
+
{
|
|
2059
|
+
id: "default",
|
|
2060
|
+
name: "Default",
|
|
2061
|
+
layout: {
|
|
2062
|
+
type: "Column",
|
|
2063
|
+
children: ["block.links.property.url"],
|
|
2064
|
+
columnAlign: "Start",
|
|
2065
|
+
columnResizing: "Fill",
|
|
2066
|
+
gap: "Medium",
|
|
2067
|
+
},
|
|
2068
|
+
maxColumns: 1,
|
|
2069
|
+
defaultColumns: 1,
|
|
2070
|
+
appearance: {
|
|
2071
|
+
isBordered: false,
|
|
2072
|
+
hasBackground: false,
|
|
2073
|
+
isEditorPresentationDifferent: false,
|
|
2074
|
+
},
|
|
2075
|
+
},
|
|
2076
|
+
],
|
|
2077
|
+
defaultVariantKey: "default",
|
|
2078
|
+
},
|
|
2079
|
+
behavior: {
|
|
2080
|
+
dataType: "Item",
|
|
2081
|
+
items: {
|
|
2082
|
+
numberOfItems: 1,
|
|
2083
|
+
allowLinks: false,
|
|
2084
|
+
},
|
|
2085
|
+
},
|
|
2086
|
+
editorOptions: {},
|
|
2087
|
+
appearance: {
|
|
2088
|
+
isBordered: false,
|
|
2089
|
+
hasBackground: false,
|
|
2090
|
+
},
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
id: "io.supernova.block.assets",
|
|
2094
|
+
name: "Assets",
|
|
2095
|
+
description: "Display icons or illustrations",
|
|
2096
|
+
category: "Assets",
|
|
2097
|
+
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "theme"],
|
|
2098
|
+
item: {
|
|
2099
|
+
properties: [
|
|
2100
|
+
{
|
|
2101
|
+
id: "assets",
|
|
2102
|
+
name: "Assets",
|
|
2103
|
+
type: "Asset",
|
|
2104
|
+
options: {},
|
|
2105
|
+
},
|
|
2106
|
+
],
|
|
2107
|
+
appearance: {
|
|
2108
|
+
isBordered: false,
|
|
2109
|
+
hasBackground: false,
|
|
2110
|
+
},
|
|
2111
|
+
variants: [
|
|
2112
|
+
{
|
|
2113
|
+
id: "default",
|
|
2114
|
+
name: "Simple grid",
|
|
2115
|
+
image: "assets/variant-default.png",
|
|
2116
|
+
description: "A simple grid of assets. Both the title and description are displayed below the preview.",
|
|
2117
|
+
layout: {
|
|
2118
|
+
type: "Column",
|
|
2119
|
+
children: ["assets"],
|
|
2120
|
+
columnAlign: "Start",
|
|
2121
|
+
columnResizing: "Fill",
|
|
2122
|
+
gap: "Medium",
|
|
2123
|
+
},
|
|
2124
|
+
maxColumns: 1,
|
|
2125
|
+
defaultColumns: 1,
|
|
2126
|
+
appearance: {
|
|
2127
|
+
isBordered: false,
|
|
2128
|
+
hasBackground: false,
|
|
2129
|
+
isEditorPresentationDifferent: false,
|
|
2130
|
+
},
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
id: "square-grid",
|
|
2134
|
+
name: "Square grid",
|
|
2135
|
+
image: "assets/variant-square-grid.png",
|
|
2136
|
+
description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
|
|
2137
|
+
layout: {
|
|
2138
|
+
type: "Column",
|
|
2139
|
+
children: ["assets"],
|
|
2140
|
+
columnAlign: "Start",
|
|
2141
|
+
columnResizing: "Fill",
|
|
2142
|
+
gap: "Medium",
|
|
2143
|
+
},
|
|
2144
|
+
maxColumns: 1,
|
|
2145
|
+
defaultColumns: 1,
|
|
2146
|
+
appearance: {
|
|
2147
|
+
isBordered: false,
|
|
2148
|
+
hasBackground: false,
|
|
2149
|
+
isEditorPresentationDifferent: false,
|
|
2150
|
+
},
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
id: "borderless-grid",
|
|
2154
|
+
name: "Borderless grid",
|
|
2155
|
+
image: "assets/variant-color-stack.png",
|
|
2156
|
+
description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
|
|
2157
|
+
layout: {
|
|
2158
|
+
type: "Column",
|
|
2159
|
+
children: ["assets"],
|
|
2160
|
+
columnAlign: "Start",
|
|
2161
|
+
columnResizing: "Fill",
|
|
2162
|
+
gap: "Medium",
|
|
2163
|
+
},
|
|
2164
|
+
maxColumns: 1,
|
|
2165
|
+
defaultColumns: 1,
|
|
2166
|
+
appearance: {
|
|
2167
|
+
isBordered: false,
|
|
2168
|
+
hasBackground: false,
|
|
2169
|
+
isEditorPresentationDifferent: false,
|
|
2170
|
+
},
|
|
2171
|
+
},
|
|
2172
|
+
],
|
|
2173
|
+
defaultVariantKey: "default",
|
|
2174
|
+
},
|
|
2175
|
+
behavior: {
|
|
2176
|
+
dataType: "Asset",
|
|
2177
|
+
entities: {
|
|
2178
|
+
selectionType: "Entity",
|
|
2179
|
+
maxSelected: 0,
|
|
2180
|
+
},
|
|
2181
|
+
},
|
|
2182
|
+
editorOptions: {
|
|
2183
|
+
onboarding: {
|
|
2184
|
+
helpText: "Display a grid of icons or illustrations.",
|
|
2185
|
+
documentationLink:
|
|
2186
|
+
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/asset/general-xa6EgXb2",
|
|
2187
|
+
},
|
|
2188
|
+
},
|
|
2189
|
+
appearance: {
|
|
2190
|
+
isBordered: false,
|
|
2191
|
+
hasBackground: false,
|
|
2192
|
+
},
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
id: "io.supernova.block.figma-frames",
|
|
2196
|
+
name: "Figma frames",
|
|
2197
|
+
description: "Display Figma frames as images",
|
|
2198
|
+
category: "Figma",
|
|
2199
|
+
searchKeywords: ["figma", "frames", "image"],
|
|
2200
|
+
item: {
|
|
2201
|
+
properties: [
|
|
2202
|
+
{
|
|
2203
|
+
id: "figmaFrames",
|
|
2204
|
+
name: "Figma Frames (tbd)",
|
|
2205
|
+
type: "Asset",
|
|
2206
|
+
options: {},
|
|
2207
|
+
},
|
|
2208
|
+
],
|
|
2209
|
+
appearance: {
|
|
2210
|
+
isBordered: false,
|
|
2211
|
+
hasBackground: false,
|
|
2212
|
+
},
|
|
2213
|
+
variants: [
|
|
2214
|
+
{
|
|
2215
|
+
id: "bordered",
|
|
2216
|
+
name: "Bordered",
|
|
2217
|
+
image: "assets/variant-default.png",
|
|
2218
|
+
description: "Tiles with background and border, great for larger sets of frames.",
|
|
2219
|
+
layout: {
|
|
2220
|
+
type: "Column",
|
|
2221
|
+
children: ["figmaFrames"],
|
|
2222
|
+
columnAlign: "Start",
|
|
2223
|
+
columnResizing: "Fill",
|
|
2224
|
+
gap: "Medium",
|
|
2225
|
+
},
|
|
2226
|
+
maxColumns: 1,
|
|
2227
|
+
defaultColumns: 1,
|
|
2228
|
+
appearance: {
|
|
2229
|
+
isBordered: false,
|
|
2230
|
+
hasBackground: false,
|
|
2231
|
+
isEditorPresentationDifferent: false,
|
|
2232
|
+
},
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
id: "plain",
|
|
2236
|
+
name: "Plain",
|
|
2237
|
+
image: "assets/variant-square-grid.png",
|
|
2238
|
+
description: "Frame as it is in Figma with no extra formatting, great for single images.",
|
|
2239
|
+
layout: {
|
|
2240
|
+
type: "Column",
|
|
2241
|
+
children: ["figmaFrames"],
|
|
2242
|
+
columnAlign: "Start",
|
|
2243
|
+
columnResizing: "Fill",
|
|
2244
|
+
gap: "Medium",
|
|
2245
|
+
},
|
|
2246
|
+
maxColumns: 1,
|
|
2247
|
+
defaultColumns: 1,
|
|
2248
|
+
appearance: {
|
|
2249
|
+
isBordered: false,
|
|
2250
|
+
hasBackground: false,
|
|
2251
|
+
isEditorPresentationDifferent: false,
|
|
2252
|
+
},
|
|
2253
|
+
},
|
|
2254
|
+
],
|
|
2255
|
+
defaultVariantKey: "bordered",
|
|
2256
|
+
},
|
|
2257
|
+
behavior: {
|
|
2258
|
+
dataType: "FigmaFrame",
|
|
2259
|
+
entities: {
|
|
2260
|
+
selectionType: "Entity",
|
|
2261
|
+
maxSelected: 0,
|
|
2262
|
+
},
|
|
2263
|
+
},
|
|
2264
|
+
editorOptions: {
|
|
2265
|
+
onboarding: {
|
|
2266
|
+
helpText: "Display Figma frames as images.",
|
|
2267
|
+
documentationLink:
|
|
2268
|
+
"https://learn.supernova.io/latest/documentation/types-of-blocks/figma/figma-frames/general-f3IYC5dg",
|
|
2269
|
+
},
|
|
2270
|
+
},
|
|
2271
|
+
appearance: {
|
|
2272
|
+
isBordered: false,
|
|
2273
|
+
hasBackground: false,
|
|
2274
|
+
},
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
id: "io.supernova.block.release-notes",
|
|
2278
|
+
name: "Release notes",
|
|
2279
|
+
description: "Show version release notes",
|
|
2280
|
+
category: "Other",
|
|
2281
|
+
searchKeywords: ["version", "changelog", "history"],
|
|
2282
|
+
item: {
|
|
2283
|
+
properties: [],
|
|
2284
|
+
appearance: {
|
|
2285
|
+
isBordered: false,
|
|
2286
|
+
hasBackground: false,
|
|
2287
|
+
},
|
|
2288
|
+
variants: [
|
|
2289
|
+
{
|
|
2290
|
+
id: "default",
|
|
2291
|
+
name: "Default",
|
|
2292
|
+
layout: {
|
|
2293
|
+
type: "Column",
|
|
2294
|
+
children: [],
|
|
2295
|
+
columnAlign: "Start",
|
|
2296
|
+
columnResizing: "Fill",
|
|
2297
|
+
gap: "Medium",
|
|
2298
|
+
},
|
|
2299
|
+
maxColumns: 1,
|
|
2300
|
+
defaultColumns: 1,
|
|
2301
|
+
appearance: {
|
|
2302
|
+
isBordered: false,
|
|
2303
|
+
hasBackground: false,
|
|
2304
|
+
isEditorPresentationDifferent: false,
|
|
2305
|
+
},
|
|
2306
|
+
},
|
|
2307
|
+
],
|
|
2308
|
+
defaultVariantKey: "default",
|
|
2309
|
+
},
|
|
2310
|
+
behavior: {
|
|
2311
|
+
dataType: "Item",
|
|
2312
|
+
items: {
|
|
2313
|
+
numberOfItems: 1,
|
|
2314
|
+
allowLinks: false,
|
|
2315
|
+
},
|
|
2316
|
+
},
|
|
2317
|
+
editorOptions: {
|
|
2318
|
+
onboarding: {
|
|
2319
|
+
helpText: "Show formatted release notes from all previous released versions",
|
|
2320
|
+
},
|
|
2321
|
+
},
|
|
2322
|
+
appearance: {
|
|
2323
|
+
isBordered: false,
|
|
2324
|
+
hasBackground: false,
|
|
2325
|
+
},
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
id: "io.supernova.block.component-checklist",
|
|
2329
|
+
name: "Component checklist",
|
|
2330
|
+
description: "Highlight specific features of your components",
|
|
2331
|
+
category: "Components",
|
|
2332
|
+
searchKeywords: ["components", "health", "properties", "overview", "status"],
|
|
2333
|
+
item: {
|
|
2334
|
+
properties: [
|
|
2335
|
+
{
|
|
2336
|
+
id: "components",
|
|
2337
|
+
name: "Components",
|
|
2338
|
+
type: "Component",
|
|
2339
|
+
options: {
|
|
2340
|
+
renderLayoutAs: "List",
|
|
2341
|
+
},
|
|
2342
|
+
},
|
|
2343
|
+
],
|
|
2344
|
+
appearance: {
|
|
2345
|
+
isBordered: false,
|
|
2346
|
+
hasBackground: false,
|
|
2347
|
+
},
|
|
2348
|
+
variants: [
|
|
2349
|
+
{
|
|
2350
|
+
id: "default",
|
|
2351
|
+
name: "Default",
|
|
2352
|
+
layout: {
|
|
2353
|
+
type: "Column",
|
|
2354
|
+
children: ["components"],
|
|
2355
|
+
columnAlign: "Start",
|
|
2356
|
+
columnResizing: "Fill",
|
|
2357
|
+
gap: "Medium",
|
|
2358
|
+
},
|
|
2359
|
+
maxColumns: 1,
|
|
2360
|
+
defaultColumns: 1,
|
|
2361
|
+
appearance: {
|
|
2362
|
+
isBordered: false,
|
|
2363
|
+
hasBackground: false,
|
|
2364
|
+
isEditorPresentationDifferent: false,
|
|
2365
|
+
},
|
|
2366
|
+
},
|
|
2367
|
+
],
|
|
2368
|
+
defaultVariantKey: "default",
|
|
2369
|
+
},
|
|
2370
|
+
behavior: {
|
|
2371
|
+
dataType: "Component",
|
|
2372
|
+
entities: {
|
|
2373
|
+
selectionType: "Entity",
|
|
2374
|
+
maxSelected: 1,
|
|
2375
|
+
},
|
|
2376
|
+
},
|
|
2377
|
+
editorOptions: {
|
|
2378
|
+
onboarding: {
|
|
2379
|
+
helpText: "Highlight specific features of your components.",
|
|
2380
|
+
documentationLink:
|
|
2381
|
+
"https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-checklist-NXepPIpZ",
|
|
2382
|
+
},
|
|
2383
|
+
},
|
|
2384
|
+
appearance: {
|
|
2385
|
+
isBordered: false,
|
|
2386
|
+
hasBackground: false,
|
|
2387
|
+
},
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
id: "io.supernova.block.component-checklist-all",
|
|
2391
|
+
name: "Component overview table",
|
|
2392
|
+
description: "Show the overview of all your components",
|
|
2393
|
+
category: "Components",
|
|
2394
|
+
searchKeywords: ["components", "health", "properties", "overview", "status"],
|
|
2395
|
+
item: {
|
|
2396
|
+
properties: [
|
|
2397
|
+
{
|
|
2398
|
+
id: "components",
|
|
2399
|
+
name: "Components",
|
|
2400
|
+
type: "Component",
|
|
2401
|
+
options: {
|
|
2402
|
+
renderLayoutAs: "List",
|
|
2403
|
+
},
|
|
2404
|
+
},
|
|
2405
|
+
],
|
|
2406
|
+
appearance: {
|
|
2407
|
+
isBordered: false,
|
|
2408
|
+
hasBackground: false,
|
|
2409
|
+
},
|
|
2410
|
+
variants: [
|
|
2411
|
+
{
|
|
2412
|
+
id: "default",
|
|
2413
|
+
name: "Default",
|
|
2414
|
+
layout: {
|
|
2415
|
+
type: "Column",
|
|
2416
|
+
children: ["components"],
|
|
2417
|
+
columnAlign: "Start",
|
|
2418
|
+
columnResizing: "Fill",
|
|
2419
|
+
gap: "Medium",
|
|
2420
|
+
},
|
|
2421
|
+
maxColumns: 1,
|
|
2422
|
+
defaultColumns: 1,
|
|
2423
|
+
appearance: {
|
|
2424
|
+
isBordered: false,
|
|
2425
|
+
hasBackground: false,
|
|
2426
|
+
isEditorPresentationDifferent: false,
|
|
2427
|
+
},
|
|
2428
|
+
},
|
|
2429
|
+
],
|
|
2430
|
+
defaultVariantKey: "default",
|
|
2431
|
+
},
|
|
2432
|
+
behavior: {
|
|
2433
|
+
dataType: "Component",
|
|
2434
|
+
entities: {
|
|
2435
|
+
selectionType: "Group",
|
|
2436
|
+
maxSelected: 1,
|
|
2437
|
+
},
|
|
2438
|
+
},
|
|
2439
|
+
editorOptions: {
|
|
2440
|
+
onboarding: {
|
|
2441
|
+
helpText: "Show the overview of all your components",
|
|
2442
|
+
documentationLink:
|
|
2443
|
+
"https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-overview-table-W8eOtJ5t",
|
|
2444
|
+
},
|
|
2445
|
+
},
|
|
2446
|
+
appearance: {
|
|
2447
|
+
isBordered: false,
|
|
2448
|
+
hasBackground: false,
|
|
2449
|
+
},
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
id: "io.supernova.block.component-health",
|
|
2453
|
+
name: "Component health",
|
|
2454
|
+
description: "Show component health and additional attributes",
|
|
2455
|
+
category: "Components",
|
|
2456
|
+
searchKeywords: ["components", "health", "properties", "overview", "status"],
|
|
2457
|
+
item: {
|
|
2458
|
+
properties: [
|
|
2459
|
+
{
|
|
2460
|
+
id: "components",
|
|
2461
|
+
name: "Components",
|
|
2462
|
+
type: "Component",
|
|
2463
|
+
options: {
|
|
2464
|
+
renderLayoutAs: "List",
|
|
2465
|
+
},
|
|
2466
|
+
},
|
|
2467
|
+
],
|
|
2468
|
+
appearance: {
|
|
2469
|
+
isBordered: false,
|
|
2470
|
+
hasBackground: false,
|
|
2471
|
+
},
|
|
2472
|
+
variants: [
|
|
2473
|
+
{
|
|
2474
|
+
id: "default",
|
|
2475
|
+
name: "Default",
|
|
2476
|
+
layout: {
|
|
2477
|
+
type: "Column",
|
|
2478
|
+
children: ["components"],
|
|
2479
|
+
columnAlign: "Start",
|
|
2480
|
+
columnResizing: "Fill",
|
|
2481
|
+
gap: "Medium",
|
|
2482
|
+
},
|
|
2483
|
+
maxColumns: 1,
|
|
2484
|
+
defaultColumns: 1,
|
|
2485
|
+
appearance: {
|
|
2486
|
+
isBordered: false,
|
|
2487
|
+
hasBackground: false,
|
|
2488
|
+
isEditorPresentationDifferent: false,
|
|
2489
|
+
},
|
|
2490
|
+
},
|
|
2491
|
+
],
|
|
2492
|
+
defaultVariantKey: "default",
|
|
2493
|
+
},
|
|
2494
|
+
behavior: {
|
|
2495
|
+
dataType: "Component",
|
|
2496
|
+
entities: {
|
|
2497
|
+
selectionType: "Entity",
|
|
2498
|
+
maxSelected: 1,
|
|
2499
|
+
},
|
|
2500
|
+
},
|
|
2501
|
+
editorOptions: {
|
|
2502
|
+
onboarding: {
|
|
2503
|
+
helpText: "Show component health and additional attributes",
|
|
2504
|
+
documentationLink:
|
|
2505
|
+
"https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-health-sezSxEED",
|
|
2506
|
+
},
|
|
2507
|
+
},
|
|
2508
|
+
appearance: {
|
|
2509
|
+
isBordered: false,
|
|
2510
|
+
hasBackground: false,
|
|
2511
|
+
},
|
|
1377
2512
|
},
|
|
1378
2513
|
];
|
|
2514
|
+
|
|
2515
|
+
// const blocks: PageBlockDefinition[] = [
|
|
2516
|
+
// {
|
|
2517
|
+
// id: "io.supernova.block.rich-text",
|
|
2518
|
+
// name: "Text",
|
|
2519
|
+
// description: "Plain text",
|
|
2520
|
+
// category: "Text",
|
|
2521
|
+
// searchKeywords: ["paragraph", "rich text"],
|
|
2522
|
+
// item: {
|
|
2523
|
+
// properties: [
|
|
2524
|
+
// {
|
|
2525
|
+
// id: "text",
|
|
2526
|
+
// name: "Text",
|
|
2527
|
+
// type: "RichText",
|
|
2528
|
+
// description: undefined,
|
|
2529
|
+
// options: {
|
|
2530
|
+
// placeholder: "Start writing with plain text",
|
|
2531
|
+
// richTextStyle: "Default",
|
|
2532
|
+
// },
|
|
2533
|
+
// variantOptions: undefined,
|
|
2534
|
+
// },
|
|
2535
|
+
// ],
|
|
2536
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2537
|
+
// variants: [
|
|
2538
|
+
// {
|
|
2539
|
+
// id: "default",
|
|
2540
|
+
// name: "Default",
|
|
2541
|
+
// image: undefined,
|
|
2542
|
+
// description: undefined,
|
|
2543
|
+
// documentationLink: undefined,
|
|
2544
|
+
// layout: { type: "Column", children: ["text"] },
|
|
2545
|
+
// maxColumns: 1,
|
|
2546
|
+
// defaultColumns: 1,
|
|
2547
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2548
|
+
// },
|
|
2549
|
+
// ],
|
|
2550
|
+
// defaultVariantKey: "default",
|
|
2551
|
+
// },
|
|
2552
|
+
// behavior: {
|
|
2553
|
+
// dataType: "Item",
|
|
2554
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2555
|
+
// entities: undefined,
|
|
2556
|
+
// },
|
|
2557
|
+
// editorOptions: {
|
|
2558
|
+
// onboarding: {
|
|
2559
|
+
// helpText: "Use rich text block to write text and add additional formatting to it.",
|
|
2560
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/text-HxZ9ssJR",
|
|
2561
|
+
// },
|
|
2562
|
+
// },
|
|
2563
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2564
|
+
// },
|
|
2565
|
+
// {
|
|
2566
|
+
// id: "io.supernova.block.title1",
|
|
2567
|
+
// name: "Title 1",
|
|
2568
|
+
// description: "Main sections within the page",
|
|
2569
|
+
// category: "Text",
|
|
2570
|
+
// searchKeywords: ["heading"],
|
|
2571
|
+
// item: {
|
|
2572
|
+
// properties: [
|
|
2573
|
+
// {
|
|
2574
|
+
// id: "text",
|
|
2575
|
+
// name: "Text",
|
|
2576
|
+
// type: "RichText",
|
|
2577
|
+
// options: { placeholder: "Title 1", richTextStyle: "Title1" },
|
|
2578
|
+
// },
|
|
2579
|
+
// ],
|
|
2580
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2581
|
+
// variants: [
|
|
2582
|
+
// {
|
|
2583
|
+
// id: "default",
|
|
2584
|
+
// name: "Default",
|
|
2585
|
+
// documentationLink: undefined,
|
|
2586
|
+
// layout: { type: "Column", children: ["text"] },
|
|
2587
|
+
// maxColumns: 1,
|
|
2588
|
+
// defaultColumns: 1,
|
|
2589
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2590
|
+
// },
|
|
2591
|
+
// ],
|
|
2592
|
+
// defaultVariantKey: "default",
|
|
2593
|
+
// },
|
|
2594
|
+
// behavior: {
|
|
2595
|
+
// dataType: "Item",
|
|
2596
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2597
|
+
// entities: undefined,
|
|
2598
|
+
// },
|
|
2599
|
+
// editorOptions: {
|
|
2600
|
+
// onboarding: {
|
|
2601
|
+
// helpText: "Use for main sections within the page, introducing broad topics or themes.",
|
|
2602
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
2603
|
+
// },
|
|
2604
|
+
// },
|
|
2605
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2606
|
+
// },
|
|
2607
|
+
// {
|
|
2608
|
+
// id: "io.supernova.block.title2",
|
|
2609
|
+
// name: "Title 2",
|
|
2610
|
+
// description: "Section subheadings",
|
|
2611
|
+
// category: "Text",
|
|
2612
|
+
// icon: undefined,
|
|
2613
|
+
// documentationLink: undefined,
|
|
2614
|
+
// searchKeywords: ["heading"],
|
|
2615
|
+
// item: {
|
|
2616
|
+
// properties: [
|
|
2617
|
+
// {
|
|
2618
|
+
// id: "text",
|
|
2619
|
+
// name: "Text",
|
|
2620
|
+
// type: "RichText",
|
|
2621
|
+
// description: undefined,
|
|
2622
|
+
// options: { placeholder: "Title 2", richTextStyle: "Title2" },
|
|
2623
|
+
// variantOptions: undefined,
|
|
2624
|
+
// },
|
|
2625
|
+
// ],
|
|
2626
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2627
|
+
// variants: [
|
|
2628
|
+
// {
|
|
2629
|
+
// id: "default",
|
|
2630
|
+
// name: "Default",
|
|
2631
|
+
// image: undefined,
|
|
2632
|
+
// description: undefined,
|
|
2633
|
+
// documentationLink: undefined,
|
|
2634
|
+
// layout: { type: "Column", children: ["text"] },
|
|
2635
|
+
// maxColumns: 1,
|
|
2636
|
+
// defaultColumns: 1,
|
|
2637
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2638
|
+
// },
|
|
2639
|
+
// ],
|
|
2640
|
+
// defaultVariantKey: "default",
|
|
2641
|
+
// },
|
|
2642
|
+
// behavior: {
|
|
2643
|
+
// dataType: "Item",
|
|
2644
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2645
|
+
// entities: undefined,
|
|
2646
|
+
// },
|
|
2647
|
+
// editorOptions: {
|
|
2648
|
+
// onboarding: {
|
|
2649
|
+
// helpText: "Use for subheadings, indicating major subsections under the main sections.",
|
|
2650
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
2651
|
+
// },
|
|
2652
|
+
// },
|
|
2653
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2654
|
+
// },
|
|
2655
|
+
// {
|
|
2656
|
+
// id: "io.supernova.block.title3",
|
|
2657
|
+
// name: "Title 3",
|
|
2658
|
+
// description: "Further subsections",
|
|
2659
|
+
// category: "Text",
|
|
2660
|
+
// icon: undefined,
|
|
2661
|
+
// documentationLink: undefined,
|
|
2662
|
+
// searchKeywords: ["heading"],
|
|
2663
|
+
// item: {
|
|
2664
|
+
// properties: [
|
|
2665
|
+
// {
|
|
2666
|
+
// id: "text",
|
|
2667
|
+
// name: "Text",
|
|
2668
|
+
// type: "RichText",
|
|
2669
|
+
// description: undefined,
|
|
2670
|
+
// options: { placeholder: "Title 3", richTextStyle: "Title3" },
|
|
2671
|
+
// variantOptions: undefined,
|
|
2672
|
+
// },
|
|
2673
|
+
// ],
|
|
2674
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2675
|
+
// variants: [
|
|
2676
|
+
// {
|
|
2677
|
+
// id: "default",
|
|
2678
|
+
// name: "Default",
|
|
2679
|
+
// image: undefined,
|
|
2680
|
+
// description: undefined,
|
|
2681
|
+
// documentationLink: undefined,
|
|
2682
|
+
// layout: { type: "Column", children: ["text"] },
|
|
2683
|
+
// maxColumns: 1,
|
|
2684
|
+
// defaultColumns: 1,
|
|
2685
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2686
|
+
// },
|
|
2687
|
+
// ],
|
|
2688
|
+
// defaultVariantKey: "default",
|
|
2689
|
+
// },
|
|
2690
|
+
// behavior: {
|
|
2691
|
+
// dataType: "Item",
|
|
2692
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2693
|
+
// entities: undefined,
|
|
2694
|
+
// },
|
|
2695
|
+
// editorOptions: {
|
|
2696
|
+
// onboarding: {
|
|
2697
|
+
// helpText: "Use for further subsections, detailing specific topics within the major subsections.",
|
|
2698
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
2699
|
+
// },
|
|
2700
|
+
// },
|
|
2701
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2702
|
+
// },
|
|
2703
|
+
// {
|
|
2704
|
+
// id: "io.supernova.block.title4",
|
|
2705
|
+
// name: "Title 4",
|
|
2706
|
+
// description: "Details in subsections",
|
|
2707
|
+
// category: "Text",
|
|
2708
|
+
// icon: undefined,
|
|
2709
|
+
// documentationLink: undefined,
|
|
2710
|
+
// searchKeywords: ["heading"],
|
|
2711
|
+
// item: {
|
|
2712
|
+
// properties: [
|
|
2713
|
+
// {
|
|
2714
|
+
// id: "text",
|
|
2715
|
+
// name: "Text",
|
|
2716
|
+
// type: "RichText",
|
|
2717
|
+
// description: undefined,
|
|
2718
|
+
// options: { placeholder: "Title 4", richTextStyle: "Title4" },
|
|
2719
|
+
// variantOptions: undefined,
|
|
2720
|
+
// },
|
|
2721
|
+
// ],
|
|
2722
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2723
|
+
// variants: [
|
|
2724
|
+
// {
|
|
2725
|
+
// id: "default",
|
|
2726
|
+
// name: "Default",
|
|
2727
|
+
// image: undefined,
|
|
2728
|
+
// description: undefined,
|
|
2729
|
+
// documentationLink: undefined,
|
|
2730
|
+
// layout: { type: "Column", children: ["text"] },
|
|
2731
|
+
// maxColumns: 1,
|
|
2732
|
+
// defaultColumns: 1,
|
|
2733
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2734
|
+
// },
|
|
2735
|
+
// ],
|
|
2736
|
+
// defaultVariantKey: "default",
|
|
2737
|
+
// },
|
|
2738
|
+
// behavior: {
|
|
2739
|
+
// dataType: "Item",
|
|
2740
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2741
|
+
// entities: undefined,
|
|
2742
|
+
// },
|
|
2743
|
+
// editorOptions: {
|
|
2744
|
+
// onboarding: {
|
|
2745
|
+
// helpText: "Use for sub-divisions, elaborating on details within the subsections.",
|
|
2746
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
2747
|
+
// },
|
|
2748
|
+
// },
|
|
2749
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2750
|
+
// },
|
|
2751
|
+
// {
|
|
2752
|
+
// id: "io.supernova.block.title5",
|
|
2753
|
+
// name: "Title 5",
|
|
2754
|
+
// description: "Nuanced details or sub-points",
|
|
2755
|
+
// category: "Text",
|
|
2756
|
+
// icon: undefined,
|
|
2757
|
+
// documentationLink: undefined,
|
|
2758
|
+
// searchKeywords: ["heading"],
|
|
2759
|
+
// item: {
|
|
2760
|
+
// properties: [
|
|
2761
|
+
// {
|
|
2762
|
+
// id: "text",
|
|
2763
|
+
// name: "Text",
|
|
2764
|
+
// type: "RichText",
|
|
2765
|
+
// description: undefined,
|
|
2766
|
+
// options: { placeholder: "Title 5", richTextStyle: "Title5" },
|
|
2767
|
+
// variantOptions: undefined,
|
|
2768
|
+
// },
|
|
2769
|
+
// ],
|
|
2770
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2771
|
+
// variants: [
|
|
2772
|
+
// {
|
|
2773
|
+
// id: "default",
|
|
2774
|
+
// name: "Default",
|
|
2775
|
+
// image: undefined,
|
|
2776
|
+
// description: undefined,
|
|
2777
|
+
// documentationLink: undefined,
|
|
2778
|
+
// layout: { type: "Column", children: ["text"] },
|
|
2779
|
+
// maxColumns: 1,
|
|
2780
|
+
// defaultColumns: 1,
|
|
2781
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2782
|
+
// },
|
|
2783
|
+
// ],
|
|
2784
|
+
// defaultVariantKey: "default",
|
|
2785
|
+
// },
|
|
2786
|
+
// behavior: {
|
|
2787
|
+
// dataType: "Item",
|
|
2788
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2789
|
+
// entities: undefined,
|
|
2790
|
+
// },
|
|
2791
|
+
// editorOptions: {
|
|
2792
|
+
// onboarding: {
|
|
2793
|
+
// helpText: "Use for nuanced details or specific sub-points within sub-divisions.",
|
|
2794
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
2795
|
+
// },
|
|
2796
|
+
// },
|
|
2797
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2798
|
+
// },
|
|
2799
|
+
// {
|
|
2800
|
+
// id: "io.supernova.block.ordered-list",
|
|
2801
|
+
// name: "Ordered list",
|
|
2802
|
+
// description: "A list with numbers",
|
|
2803
|
+
// category: "Text",
|
|
2804
|
+
// icon: undefined,
|
|
2805
|
+
// documentationLink: undefined,
|
|
2806
|
+
// searchKeywords: ["ol"],
|
|
2807
|
+
// item: {
|
|
2808
|
+
// properties: [
|
|
2809
|
+
// {
|
|
2810
|
+
// id: "text",
|
|
2811
|
+
// name: "Text",
|
|
2812
|
+
// type: "MultiRichText",
|
|
2813
|
+
// description: undefined,
|
|
2814
|
+
// options: { multiRichTextStyle: "OL" },
|
|
2815
|
+
// variantOptions: undefined,
|
|
2816
|
+
// },
|
|
2817
|
+
// ],
|
|
2818
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2819
|
+
// variants: [
|
|
2820
|
+
// {
|
|
2821
|
+
// id: "default",
|
|
2822
|
+
// name: "Default",
|
|
2823
|
+
// image: undefined,
|
|
2824
|
+
// description: undefined,
|
|
2825
|
+
// documentationLink: undefined,
|
|
2826
|
+
// layout: { type: "Column", children: ["text"] },
|
|
2827
|
+
// maxColumns: 1,
|
|
2828
|
+
// defaultColumns: 1,
|
|
2829
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2830
|
+
// },
|
|
2831
|
+
// ],
|
|
2832
|
+
// defaultVariantKey: "default",
|
|
2833
|
+
// },
|
|
2834
|
+
// behavior: {
|
|
2835
|
+
// dataType: "Item",
|
|
2836
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2837
|
+
// entities: undefined,
|
|
2838
|
+
// },
|
|
2839
|
+
// editorOptions: {
|
|
2840
|
+
// onboarding: {
|
|
2841
|
+
// helpText: "Display a sequence of numbers or letters to indicate order.",
|
|
2842
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
|
|
2843
|
+
// },
|
|
2844
|
+
// },
|
|
2845
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2846
|
+
// },
|
|
2847
|
+
// {
|
|
2848
|
+
// id: "io.supernova.block.unordered-list",
|
|
2849
|
+
// name: "Unordered list",
|
|
2850
|
+
// description: "A list with bullet points",
|
|
2851
|
+
// category: "Text",
|
|
2852
|
+
// icon: undefined,
|
|
2853
|
+
// documentationLink: undefined,
|
|
2854
|
+
// searchKeywords: ["ul"],
|
|
2855
|
+
// item: {
|
|
2856
|
+
// properties: [
|
|
2857
|
+
// {
|
|
2858
|
+
// id: "text",
|
|
2859
|
+
// name: "Text",
|
|
2860
|
+
// type: "MultiRichText",
|
|
2861
|
+
// description: undefined,
|
|
2862
|
+
// options: { multiRichTextStyle: "UL" },
|
|
2863
|
+
// variantOptions: undefined,
|
|
2864
|
+
// },
|
|
2865
|
+
// ],
|
|
2866
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2867
|
+
// variants: [
|
|
2868
|
+
// {
|
|
2869
|
+
// id: "default",
|
|
2870
|
+
// name: "Default",
|
|
2871
|
+
// image: undefined,
|
|
2872
|
+
// description: undefined,
|
|
2873
|
+
// documentationLink: undefined,
|
|
2874
|
+
// layout: { type: "Column", children: ["text"] },
|
|
2875
|
+
// maxColumns: 1,
|
|
2876
|
+
// defaultColumns: 1,
|
|
2877
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2878
|
+
// },
|
|
2879
|
+
// ],
|
|
2880
|
+
// defaultVariantKey: "default",
|
|
2881
|
+
// },
|
|
2882
|
+
// behavior: {
|
|
2883
|
+
// dataType: "Item",
|
|
2884
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2885
|
+
// entities: undefined,
|
|
2886
|
+
// },
|
|
2887
|
+
// editorOptions: {
|
|
2888
|
+
// onboarding: {
|
|
2889
|
+
// helpText: "A list of items displayed with bullet points without a specific sequence.",
|
|
2890
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
|
|
2891
|
+
// },
|
|
2892
|
+
// },
|
|
2893
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2894
|
+
// },
|
|
2895
|
+
// {
|
|
2896
|
+
// id: "io.supernova.block.divider",
|
|
2897
|
+
// name: "Divider",
|
|
2898
|
+
// description: "A section divider",
|
|
2899
|
+
// category: "Layout",
|
|
2900
|
+
// icon: undefined,
|
|
2901
|
+
// documentationLink: undefined,
|
|
2902
|
+
// searchKeywords: ["hr", "line", "rule", "separator"],
|
|
2903
|
+
// item: {
|
|
2904
|
+
// properties: [
|
|
2905
|
+
// {
|
|
2906
|
+
// id: "divider",
|
|
2907
|
+
// name: "Divider",
|
|
2908
|
+
// type: "Divider",
|
|
2909
|
+
// description: undefined,
|
|
2910
|
+
// options: {},
|
|
2911
|
+
// variantOptions: undefined,
|
|
2912
|
+
// },
|
|
2913
|
+
// ],
|
|
2914
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2915
|
+
// variants: [
|
|
2916
|
+
// {
|
|
2917
|
+
// id: "default",
|
|
2918
|
+
// name: "Default",
|
|
2919
|
+
// image: undefined,
|
|
2920
|
+
// description: undefined,
|
|
2921
|
+
// documentationLink: undefined,
|
|
2922
|
+
// layout: { type: "Column", children: ["divider"] },
|
|
2923
|
+
// maxColumns: 1,
|
|
2924
|
+
// defaultColumns: 1,
|
|
2925
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2926
|
+
// },
|
|
2927
|
+
// ],
|
|
2928
|
+
// defaultVariantKey: "default",
|
|
2929
|
+
// },
|
|
2930
|
+
// behavior: {
|
|
2931
|
+
// dataType: "Item",
|
|
2932
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2933
|
+
// entities: undefined,
|
|
2934
|
+
// },
|
|
2935
|
+
// editorOptions: {
|
|
2936
|
+
// onboarding: {
|
|
2937
|
+
// helpText: "A thematic break or horizontal rule, often used to separate content or define a change in topic.",
|
|
2938
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/divider-tLuxooLH",
|
|
2939
|
+
// },
|
|
2940
|
+
// },
|
|
2941
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2942
|
+
// },
|
|
2943
|
+
// {
|
|
2944
|
+
// id: "io.supernova.block.blockquote",
|
|
2945
|
+
// name: "Blockquote",
|
|
2946
|
+
// description: "Display a quotation",
|
|
2947
|
+
// category: "Text",
|
|
2948
|
+
// icon: undefined,
|
|
2949
|
+
// documentationLink: undefined,
|
|
2950
|
+
// searchKeywords: ["cite"],
|
|
2951
|
+
// item: {
|
|
2952
|
+
// properties: [
|
|
2953
|
+
// {
|
|
2954
|
+
// id: "text",
|
|
2955
|
+
// name: "Text",
|
|
2956
|
+
// type: "RichText",
|
|
2957
|
+
// description: undefined,
|
|
2958
|
+
// options: { placeholder: "Empty quote", richTextStyle: "Quote" },
|
|
2959
|
+
// variantOptions: undefined,
|
|
2960
|
+
// },
|
|
2961
|
+
// ],
|
|
2962
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2963
|
+
// variants: [
|
|
2964
|
+
// {
|
|
2965
|
+
// id: "default",
|
|
2966
|
+
// name: "Default",
|
|
2967
|
+
// image: undefined,
|
|
2968
|
+
// description: undefined,
|
|
2969
|
+
// documentationLink: undefined,
|
|
2970
|
+
// layout: { type: "Column", children: ["text"] },
|
|
2971
|
+
// maxColumns: 1,
|
|
2972
|
+
// defaultColumns: 1,
|
|
2973
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2974
|
+
// },
|
|
2975
|
+
// ],
|
|
2976
|
+
// defaultVariantKey: "default",
|
|
2977
|
+
// },
|
|
2978
|
+
// behavior: {
|
|
2979
|
+
// dataType: "Item",
|
|
2980
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
2981
|
+
// entities: undefined,
|
|
2982
|
+
// },
|
|
2983
|
+
// editorOptions: {
|
|
2984
|
+
// onboarding: {
|
|
2985
|
+
// helpText: "Use a blockquote to set off a quotation or cited content from the main text.",
|
|
2986
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/blockquote-zYWAsb6X",
|
|
2987
|
+
// },
|
|
2988
|
+
// },
|
|
2989
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
2990
|
+
// },
|
|
2991
|
+
// {
|
|
2992
|
+
// id: "io.supernova.block.callout",
|
|
2993
|
+
// name: "Callout",
|
|
2994
|
+
// description: "Highlight a section of text",
|
|
2995
|
+
// category: "Text",
|
|
2996
|
+
// icon: undefined,
|
|
2997
|
+
// documentationLink: undefined,
|
|
2998
|
+
// searchKeywords: ["banner", "alert", "note", "tip", "warning"],
|
|
2999
|
+
// item: {
|
|
3000
|
+
// properties: [
|
|
3001
|
+
// {
|
|
3002
|
+
// id: "text",
|
|
3003
|
+
// name: "Text",
|
|
3004
|
+
// type: "RichText",
|
|
3005
|
+
// description: undefined,
|
|
3006
|
+
// options: { richTextStyle: "Callout" },
|
|
3007
|
+
// variantOptions: undefined,
|
|
3008
|
+
// },
|
|
3009
|
+
// ],
|
|
3010
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3011
|
+
// variants: [
|
|
3012
|
+
// {
|
|
3013
|
+
// id: "default",
|
|
3014
|
+
// name: "Default",
|
|
3015
|
+
// image: undefined,
|
|
3016
|
+
// description: undefined,
|
|
3017
|
+
// documentationLink: undefined,
|
|
3018
|
+
// layout: { type: "Column", children: ["text"] },
|
|
3019
|
+
// maxColumns: 1,
|
|
3020
|
+
// defaultColumns: 1,
|
|
3021
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3022
|
+
// },
|
|
3023
|
+
// ],
|
|
3024
|
+
// defaultVariantKey: "default",
|
|
3025
|
+
// },
|
|
3026
|
+
// behavior: {
|
|
3027
|
+
// dataType: "Item",
|
|
3028
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
3029
|
+
// entities: undefined,
|
|
3030
|
+
// },
|
|
3031
|
+
// editorOptions: {
|
|
3032
|
+
// onboarding: {
|
|
3033
|
+
// helpText: "Use to highlight a section of text.",
|
|
3034
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/callout-ZPlZObD1",
|
|
3035
|
+
// },
|
|
3036
|
+
// },
|
|
3037
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3038
|
+
// },
|
|
3039
|
+
// {
|
|
3040
|
+
// id: "io.supernova.block.image",
|
|
3041
|
+
// name: "Image",
|
|
3042
|
+
// description: "Display an image or Figma frame",
|
|
3043
|
+
// category: "Media",
|
|
3044
|
+
// icon: undefined,
|
|
3045
|
+
// documentationLink: undefined,
|
|
3046
|
+
// searchKeywords: ["image", "figma", "frame", "picture", "photo"],
|
|
3047
|
+
// item: {
|
|
3048
|
+
// properties: [
|
|
3049
|
+
// {
|
|
3050
|
+
// id: "image",
|
|
3051
|
+
// name: "Image",
|
|
3052
|
+
// type: "Image",
|
|
3053
|
+
// description: undefined,
|
|
3054
|
+
// options: { allowCaption: true },
|
|
3055
|
+
// variantOptions: undefined,
|
|
3056
|
+
// },
|
|
3057
|
+
// ],
|
|
3058
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3059
|
+
// variants: [
|
|
3060
|
+
// {
|
|
3061
|
+
// id: "default",
|
|
3062
|
+
// name: "Default",
|
|
3063
|
+
// image: undefined,
|
|
3064
|
+
// description: undefined,
|
|
3065
|
+
// documentationLink: undefined,
|
|
3066
|
+
// layout: { type: "Column", children: ["image"] },
|
|
3067
|
+
// maxColumns: 1,
|
|
3068
|
+
// defaultColumns: 1,
|
|
3069
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3070
|
+
// },
|
|
3071
|
+
// ],
|
|
3072
|
+
// defaultVariantKey: "default",
|
|
3073
|
+
// },
|
|
3074
|
+
// behavior: {
|
|
3075
|
+
// dataType: "Item",
|
|
3076
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
3077
|
+
// entities: undefined,
|
|
3078
|
+
// },
|
|
3079
|
+
// editorOptions: {
|
|
3080
|
+
// onboarding: {
|
|
3081
|
+
// helpText: "Use to display an image or Figma frame.",
|
|
3082
|
+
// documentationLink:
|
|
3083
|
+
// "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/image-Ue8VdT8B",
|
|
3084
|
+
// },
|
|
3085
|
+
// },
|
|
3086
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3087
|
+
// },
|
|
3088
|
+
// {
|
|
3089
|
+
// id: "io.supernova.block.shortcut-links",
|
|
3090
|
+
// name: "Shortcut links",
|
|
3091
|
+
// description: "Link to a page or external URL",
|
|
3092
|
+
// category: "Media",
|
|
3093
|
+
// icon: undefined,
|
|
3094
|
+
// documentationLink: undefined,
|
|
3095
|
+
// searchKeywords: [],
|
|
3096
|
+
// item: {
|
|
3097
|
+
// properties: [
|
|
3098
|
+
// {
|
|
3099
|
+
// id: "block.links.property.title",
|
|
3100
|
+
// name: "Title",
|
|
3101
|
+
// type: "Text",
|
|
3102
|
+
// description: undefined,
|
|
3103
|
+
// options: { textStyle: "Title5" },
|
|
3104
|
+
// variantOptions: undefined,
|
|
3105
|
+
// },
|
|
3106
|
+
// {
|
|
3107
|
+
// id: "block.links.property.description",
|
|
3108
|
+
// name: "Short description",
|
|
3109
|
+
// type: "Text",
|
|
3110
|
+
// description: undefined,
|
|
3111
|
+
// options: { textStyle: "Default", color: "NeutralFaded" },
|
|
3112
|
+
// variantOptions: undefined,
|
|
3113
|
+
// },
|
|
3114
|
+
// {
|
|
3115
|
+
// id: "block.links.property.image",
|
|
3116
|
+
// name: "Image",
|
|
3117
|
+
// type: "Image",
|
|
3118
|
+
// description: undefined,
|
|
3119
|
+
// options: { width: "Medium", aspectRatio: "Landscape", allowCaption: false },
|
|
3120
|
+
// variantOptions: {
|
|
3121
|
+
// iconOnTop: { width: "Icon", aspectRatio: "Square" },
|
|
3122
|
+
// iconOnLeft: { width: "Icon", aspectRatio: "Square" },
|
|
3123
|
+
// },
|
|
3124
|
+
// },
|
|
3125
|
+
// ],
|
|
3126
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3127
|
+
// variants: [
|
|
3128
|
+
// {
|
|
3129
|
+
// id: "imageOnTop",
|
|
3130
|
+
// name: "Image on top",
|
|
3131
|
+
// image: "assets/variant-image-on-top.png",
|
|
3132
|
+
// description: undefined,
|
|
3133
|
+
// documentationLink: undefined,
|
|
3134
|
+
// layout: {
|
|
3135
|
+
// type: "Column",
|
|
3136
|
+
// children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"],
|
|
3137
|
+
// },
|
|
3138
|
+
// maxColumns: 4,
|
|
3139
|
+
// defaultColumns: 1,
|
|
3140
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3141
|
+
// },
|
|
3142
|
+
// {
|
|
3143
|
+
// id: "imageOnLeft",
|
|
3144
|
+
// name: "Image on left",
|
|
3145
|
+
// image: "assets/variant-image-on-left.png",
|
|
3146
|
+
// description: undefined,
|
|
3147
|
+
// documentationLink: undefined,
|
|
3148
|
+
// layout: {
|
|
3149
|
+
// type: "Row",
|
|
3150
|
+
// children: [
|
|
3151
|
+
// {
|
|
3152
|
+
// type: "Column",
|
|
3153
|
+
// columnResizing: "Hug",
|
|
3154
|
+
// children: ["block.links.property.image"],
|
|
3155
|
+
// },
|
|
3156
|
+
// {
|
|
3157
|
+
// type: "Column",
|
|
3158
|
+
// gap: "Small",
|
|
3159
|
+
// children: ["block.links.property.title", "block.links.property.description"],
|
|
3160
|
+
// },
|
|
3161
|
+
// ],
|
|
3162
|
+
// },
|
|
3163
|
+
// maxColumns: 1,
|
|
3164
|
+
// defaultColumns: 1,
|
|
3165
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3166
|
+
// },
|
|
3167
|
+
// {
|
|
3168
|
+
// id: "iconOnTop",
|
|
3169
|
+
// name: "Icon on top",
|
|
3170
|
+
// image: "assets/variant-icon-on-top.png",
|
|
3171
|
+
// description: undefined,
|
|
3172
|
+
// documentationLink: undefined,
|
|
3173
|
+
// layout: {
|
|
3174
|
+
// type: "Column",
|
|
3175
|
+
// children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"],
|
|
3176
|
+
// },
|
|
3177
|
+
// maxColumns: 4,
|
|
3178
|
+
// defaultColumns: 1,
|
|
3179
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3180
|
+
// },
|
|
3181
|
+
// {
|
|
3182
|
+
// id: "iconOnLeft",
|
|
3183
|
+
// name: "Icon on left",
|
|
3184
|
+
// image: "assets/variant-icon-on-left.png",
|
|
3185
|
+
// description: undefined,
|
|
3186
|
+
// documentationLink: undefined,
|
|
3187
|
+
// layout: {
|
|
3188
|
+
// type: "Row",
|
|
3189
|
+
// children: [
|
|
3190
|
+
// {
|
|
3191
|
+
// type: "Column",
|
|
3192
|
+
// columnResizing: "Hug",
|
|
3193
|
+
// children: ["block.links.property.image"],
|
|
3194
|
+
// },
|
|
3195
|
+
// {
|
|
3196
|
+
// type: "Column",
|
|
3197
|
+
// gap: "Small",
|
|
3198
|
+
// children: ["block.links.property.title", "block.links.property.description"],
|
|
3199
|
+
// },
|
|
3200
|
+
// ],
|
|
3201
|
+
// },
|
|
3202
|
+
// maxColumns: 2,
|
|
3203
|
+
// defaultColumns: 1,
|
|
3204
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3205
|
+
// },
|
|
3206
|
+
// ],
|
|
3207
|
+
// defaultVariantKey: "imageOnTop",
|
|
3208
|
+
// },
|
|
3209
|
+
// behavior: {
|
|
3210
|
+
// dataType: "Item",
|
|
3211
|
+
// items: { numberOfItems: -1, allowLinks: true },
|
|
3212
|
+
// entities: undefined,
|
|
3213
|
+
// },
|
|
3214
|
+
// editorOptions: {
|
|
3215
|
+
// onboarding: {
|
|
3216
|
+
// helpText: "Use link block to create single or multiple links to places in or out of your documentation.",
|
|
3217
|
+
// documentationLink:
|
|
3218
|
+
// "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4",
|
|
3219
|
+
// },
|
|
3220
|
+
// },
|
|
3221
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3222
|
+
// },
|
|
3223
|
+
// {
|
|
3224
|
+
// id: "io.supernova.block.color-accessibility-grid",
|
|
3225
|
+
// name: "Accessibility Color Grid",
|
|
3226
|
+
// description: "Visualize accessibility of your color tokens.",
|
|
3227
|
+
// category: "Tokens",
|
|
3228
|
+
// icon: undefined,
|
|
3229
|
+
// documentationLink: undefined,
|
|
3230
|
+
// searchKeywords: ["color", "accessibility", "grid", "contrast", "blind", "impairment"],
|
|
3231
|
+
// item: {
|
|
3232
|
+
// properties: [
|
|
3233
|
+
// {
|
|
3234
|
+
// id: "tokens",
|
|
3235
|
+
// name: "Tokens",
|
|
3236
|
+
// type: "Token",
|
|
3237
|
+
// description: undefined,
|
|
3238
|
+
// options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: false },
|
|
3239
|
+
// variantOptions: undefined,
|
|
3240
|
+
// },
|
|
3241
|
+
// ],
|
|
3242
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3243
|
+
// variants: [
|
|
3244
|
+
// {
|
|
3245
|
+
// id: "default",
|
|
3246
|
+
// name: "Default",
|
|
3247
|
+
// image: undefined,
|
|
3248
|
+
// description: undefined,
|
|
3249
|
+
// documentationLink: undefined,
|
|
3250
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3251
|
+
// maxColumns: 1,
|
|
3252
|
+
// defaultColumns: 1,
|
|
3253
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3254
|
+
// },
|
|
3255
|
+
// ],
|
|
3256
|
+
// defaultVariantKey: "default",
|
|
3257
|
+
// },
|
|
3258
|
+
// behavior: {
|
|
3259
|
+
// dataType: "Token",
|
|
3260
|
+
// items: undefined,
|
|
3261
|
+
// entities: { selectionType: "Group", maxSelected: 2 },
|
|
3262
|
+
// },
|
|
3263
|
+
// editorOptions: {
|
|
3264
|
+
// onboarding: {
|
|
3265
|
+
// helpText: "Visualize accessibility of your colors and compare token groups to one another.",
|
|
3266
|
+
// documentationLink: "https://learn.supernova.io",
|
|
3267
|
+
// },
|
|
3268
|
+
// },
|
|
3269
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3270
|
+
// },
|
|
3271
|
+
// {
|
|
3272
|
+
// id: "io.supernova.block.embed",
|
|
3273
|
+
// name: "Embed",
|
|
3274
|
+
// description: "Embed a generic URL",
|
|
3275
|
+
// category: "Media",
|
|
3276
|
+
// icon: undefined,
|
|
3277
|
+
// documentationLink: undefined,
|
|
3278
|
+
// searchKeywords: ["embed", "url", "iframe", "site", "import"],
|
|
3279
|
+
// item: {
|
|
3280
|
+
// properties: [
|
|
3281
|
+
// {
|
|
3282
|
+
// id: "embedUrl",
|
|
3283
|
+
// name: "Embed URL",
|
|
3284
|
+
// type: "EmbedURL",
|
|
3285
|
+
// description: undefined,
|
|
3286
|
+
// options: {
|
|
3287
|
+
// allowCaption: true,
|
|
3288
|
+
// allowResize: true,
|
|
3289
|
+
// defaultHeight: 400,
|
|
3290
|
+
// urlValidationRegex: "^(https?://)?(www.)?.+$",
|
|
3291
|
+
// },
|
|
3292
|
+
// variantOptions: undefined,
|
|
3293
|
+
// },
|
|
3294
|
+
// ],
|
|
3295
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3296
|
+
// variants: [
|
|
3297
|
+
// {
|
|
3298
|
+
// id: "default",
|
|
3299
|
+
// name: "Default",
|
|
3300
|
+
// image: undefined,
|
|
3301
|
+
// description: undefined,
|
|
3302
|
+
// documentationLink: undefined,
|
|
3303
|
+
// layout: { type: "Column", children: ["embedUrl"] },
|
|
3304
|
+
// maxColumns: 1,
|
|
3305
|
+
// defaultColumns: 1,
|
|
3306
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3307
|
+
// },
|
|
3308
|
+
// ],
|
|
3309
|
+
// defaultVariantKey: "default",
|
|
3310
|
+
// },
|
|
3311
|
+
// behavior: {
|
|
3312
|
+
// dataType: "Item",
|
|
3313
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
3314
|
+
// entities: undefined,
|
|
3315
|
+
// },
|
|
3316
|
+
// editorOptions: {
|
|
3317
|
+
// onboarding: {
|
|
3318
|
+
// helpText: "Embed any page to your documentation as an iframe.",
|
|
3319
|
+
// documentationLink:
|
|
3320
|
+
// "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/embed/public-url-2ZeRQ332",
|
|
3321
|
+
// },
|
|
3322
|
+
// },
|
|
3323
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3324
|
+
// },
|
|
3325
|
+
// {
|
|
3326
|
+
// id: "io.supernova.block.embed-youtube",
|
|
3327
|
+
// name: "YouTube",
|
|
3328
|
+
// description: "Embed a Youtube video",
|
|
3329
|
+
// category: "Media",
|
|
3330
|
+
// icon: undefined,
|
|
3331
|
+
// documentationLink: undefined,
|
|
3332
|
+
// searchKeywords: ["embed", "video", "player", "upload"],
|
|
3333
|
+
// item: {
|
|
3334
|
+
// properties: [
|
|
3335
|
+
// {
|
|
3336
|
+
// id: "embed",
|
|
3337
|
+
// name: "Youtube URL",
|
|
3338
|
+
// type: "EmbedURL",
|
|
3339
|
+
// description: undefined,
|
|
3340
|
+
// options: {
|
|
3341
|
+
// allowCaption: false,
|
|
3342
|
+
// allowResize: false,
|
|
3343
|
+
// defaultHeight: 400,
|
|
3344
|
+
// urlValidationRegex: "^(https?://)?(www.)?(youtube.com|youtu.?be)/.+$",
|
|
3345
|
+
// },
|
|
3346
|
+
// variantOptions: undefined,
|
|
3347
|
+
// },
|
|
3348
|
+
// ],
|
|
3349
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3350
|
+
// variants: [
|
|
3351
|
+
// {
|
|
3352
|
+
// id: "default",
|
|
3353
|
+
// name: "Default",
|
|
3354
|
+
// image: undefined,
|
|
3355
|
+
// description: undefined,
|
|
3356
|
+
// documentationLink: undefined,
|
|
3357
|
+
// layout: { type: "Column", children: ["embed"] },
|
|
3358
|
+
// maxColumns: 1,
|
|
3359
|
+
// defaultColumns: 1,
|
|
3360
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3361
|
+
// },
|
|
3362
|
+
// ],
|
|
3363
|
+
// defaultVariantKey: "default",
|
|
3364
|
+
// },
|
|
3365
|
+
// behavior: {
|
|
3366
|
+
// dataType: "Item",
|
|
3367
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
3368
|
+
// entities: undefined,
|
|
3369
|
+
// },
|
|
3370
|
+
// editorOptions: {
|
|
3371
|
+
// onboarding: {
|
|
3372
|
+
// helpText: "Embed a YouTube video to your documentation.",
|
|
3373
|
+
// documentationLink:
|
|
3374
|
+
// "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/youtube-Gh8VUrSF",
|
|
3375
|
+
// },
|
|
3376
|
+
// },
|
|
3377
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3378
|
+
// },
|
|
3379
|
+
// {
|
|
3380
|
+
// id: "io.supernova.block.embed-lottie",
|
|
3381
|
+
// name: "Lottie animation",
|
|
3382
|
+
// description: "Preview a Lottie animation",
|
|
3383
|
+
// category: "Media",
|
|
3384
|
+
// icon: undefined,
|
|
3385
|
+
// documentationLink: undefined,
|
|
3386
|
+
// searchKeywords: ["embed", "lottie", "animation", "rive", "json"],
|
|
3387
|
+
// item: {
|
|
3388
|
+
// properties: [
|
|
3389
|
+
// {
|
|
3390
|
+
// id: "embed",
|
|
3391
|
+
// name: "Lottie URL",
|
|
3392
|
+
// type: "EmbedURL",
|
|
3393
|
+
// description: undefined,
|
|
3394
|
+
// options: {
|
|
3395
|
+
// allowCaption: false,
|
|
3396
|
+
// allowResize: true,
|
|
3397
|
+
// defaultHeight: 400,
|
|
3398
|
+
// urlValidationRegex:
|
|
3399
|
+
// "^(https?:\\/\\/)?([\\w\\d\\-\\.]+)\\.([\\w]+)(\\/[\\w\\d_\\-\\.\\/]*)?(\\.json|\\.lottie)$\n",
|
|
3400
|
+
// },
|
|
3401
|
+
// variantOptions: undefined,
|
|
3402
|
+
// },
|
|
3403
|
+
// {
|
|
3404
|
+
// id: "autoplay",
|
|
3405
|
+
// name: "Autoplay",
|
|
3406
|
+
// type: "Boolean",
|
|
3407
|
+
// description: undefined,
|
|
3408
|
+
// options: { defaultValue: true },
|
|
3409
|
+
// variantOptions: undefined,
|
|
3410
|
+
// },
|
|
3411
|
+
// {
|
|
3412
|
+
// id: "loop",
|
|
3413
|
+
// name: "Loop",
|
|
3414
|
+
// type: "Boolean",
|
|
3415
|
+
// description: undefined,
|
|
3416
|
+
// options: { defaultValue: true },
|
|
3417
|
+
// variantOptions: undefined,
|
|
3418
|
+
// },
|
|
3419
|
+
// ],
|
|
3420
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3421
|
+
// variants: [
|
|
3422
|
+
// {
|
|
3423
|
+
// id: "default",
|
|
3424
|
+
// name: "Default",
|
|
3425
|
+
// image: undefined,
|
|
3426
|
+
// description: undefined,
|
|
3427
|
+
// documentationLink: undefined,
|
|
3428
|
+
// layout: { type: "Column", children: ["embed", "autoplay", "loop"] },
|
|
3429
|
+
// maxColumns: 1,
|
|
3430
|
+
// defaultColumns: 1,
|
|
3431
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3432
|
+
// },
|
|
3433
|
+
// ],
|
|
3434
|
+
// defaultVariantKey: "default",
|
|
3435
|
+
// },
|
|
3436
|
+
// behavior: {
|
|
3437
|
+
// dataType: "Item",
|
|
3438
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
3439
|
+
// entities: undefined,
|
|
3440
|
+
// },
|
|
3441
|
+
// editorOptions: {
|
|
3442
|
+
// onboarding: {
|
|
3443
|
+
// helpText: "Embed a Lottie animation to your documentation.",
|
|
3444
|
+
// documentationLink:
|
|
3445
|
+
// "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/lottie-preview-7CqFdGv9",
|
|
3446
|
+
// },
|
|
3447
|
+
// },
|
|
3448
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3449
|
+
// },
|
|
3450
|
+
// {
|
|
3451
|
+
// id: "io.supernova.block.storybook",
|
|
3452
|
+
// name: "Storybook",
|
|
3453
|
+
// description: "Embed Storybook canvas",
|
|
3454
|
+
// category: "Media",
|
|
3455
|
+
// icon: undefined,
|
|
3456
|
+
// documentationLink: undefined,
|
|
3457
|
+
// searchKeywords: ["storybook", "story", "stories", "example", "preview", "code", "react"],
|
|
3458
|
+
// item: {
|
|
3459
|
+
// properties: [
|
|
3460
|
+
// {
|
|
3461
|
+
// id: "embed",
|
|
3462
|
+
// name: "Storybook URL",
|
|
3463
|
+
// type: "Storybook",
|
|
3464
|
+
// description: undefined,
|
|
3465
|
+
// options: {},
|
|
3466
|
+
// variantOptions: undefined,
|
|
3467
|
+
// },
|
|
3468
|
+
// ],
|
|
3469
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3470
|
+
// variants: [
|
|
3471
|
+
// {
|
|
3472
|
+
// id: "default",
|
|
3473
|
+
// name: "Default",
|
|
3474
|
+
// image: undefined,
|
|
3475
|
+
// description: undefined,
|
|
3476
|
+
// documentationLink: undefined,
|
|
3477
|
+
// layout: { type: "Column", children: ["embed"] },
|
|
3478
|
+
// maxColumns: 1,
|
|
3479
|
+
// defaultColumns: 1,
|
|
3480
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3481
|
+
// },
|
|
3482
|
+
// ],
|
|
3483
|
+
// defaultVariantKey: "default",
|
|
3484
|
+
// },
|
|
3485
|
+
// behavior: {
|
|
3486
|
+
// dataType: "Item",
|
|
3487
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
3488
|
+
// entities: undefined,
|
|
3489
|
+
// },
|
|
3490
|
+
// editorOptions: {
|
|
3491
|
+
// onboarding: {
|
|
3492
|
+
// helpText: "Embed a Storybook story to your documentation.",
|
|
3493
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/storybook-1EGPhwBl",
|
|
3494
|
+
// },
|
|
3495
|
+
// },
|
|
3496
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3497
|
+
// },
|
|
3498
|
+
// {
|
|
3499
|
+
// id: "io.supernova.block.embed-figma",
|
|
3500
|
+
// name: "Figma embed",
|
|
3501
|
+
// description: "Embed a Figma canvas or prototype",
|
|
3502
|
+
// category: "Media",
|
|
3503
|
+
// icon: undefined,
|
|
3504
|
+
// documentationLink: undefined,
|
|
3505
|
+
// searchKeywords: ["embed", "figma", "design", "prototype", "canvas"],
|
|
3506
|
+
// item: {
|
|
3507
|
+
// properties: [
|
|
3508
|
+
// {
|
|
3509
|
+
// id: "embed",
|
|
3510
|
+
// name: "Figma URl",
|
|
3511
|
+
// type: "EmbedURL",
|
|
3512
|
+
// description: undefined,
|
|
3513
|
+
// options: {
|
|
3514
|
+
// allowCaption: false,
|
|
3515
|
+
// allowResize: true,
|
|
3516
|
+
// defaultHeight: 400,
|
|
3517
|
+
// urlValidationRegex: "^(https?://)?(www.)?(figma.com)/.+$",
|
|
3518
|
+
// },
|
|
3519
|
+
// variantOptions: undefined,
|
|
3520
|
+
// },
|
|
3521
|
+
// ],
|
|
3522
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3523
|
+
// variants: [
|
|
3524
|
+
// {
|
|
3525
|
+
// id: "default",
|
|
3526
|
+
// name: "Default",
|
|
3527
|
+
// image: undefined,
|
|
3528
|
+
// description: undefined,
|
|
3529
|
+
// documentationLink: undefined,
|
|
3530
|
+
// layout: { type: "Column", children: ["embed"] },
|
|
3531
|
+
// maxColumns: 1,
|
|
3532
|
+
// defaultColumns: 1,
|
|
3533
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3534
|
+
// },
|
|
3535
|
+
// ],
|
|
3536
|
+
// defaultVariantKey: "default",
|
|
3537
|
+
// },
|
|
3538
|
+
// behavior: {
|
|
3539
|
+
// dataType: "Item",
|
|
3540
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
3541
|
+
// entities: undefined,
|
|
3542
|
+
// },
|
|
3543
|
+
// editorOptions: {
|
|
3544
|
+
// onboarding: {
|
|
3545
|
+
// helpText: "Embed a Figma canvas or prototype to your documentation.",
|
|
3546
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/embed-figma-GPNJsT8A",
|
|
3547
|
+
// },
|
|
3548
|
+
// },
|
|
3549
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3550
|
+
// },
|
|
3551
|
+
// {
|
|
3552
|
+
// id: "io.supernova.block.markdown",
|
|
3553
|
+
// name: "Markdown",
|
|
3554
|
+
// description: "Render Markdown URL",
|
|
3555
|
+
// category: "Other",
|
|
3556
|
+
// icon: undefined,
|
|
3557
|
+
// documentationLink: undefined,
|
|
3558
|
+
// searchKeywords: ["md", "embed", "api", "table", "mdx"],
|
|
3559
|
+
// item: {
|
|
3560
|
+
// properties: [
|
|
3561
|
+
// {
|
|
3562
|
+
// id: "markdownUrl",
|
|
3563
|
+
// name: "Markdown URL",
|
|
3564
|
+
// type: "Markdown",
|
|
3565
|
+
// description: undefined,
|
|
3566
|
+
// options: {},
|
|
3567
|
+
// variantOptions: undefined,
|
|
3568
|
+
// },
|
|
3569
|
+
// ],
|
|
3570
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3571
|
+
// variants: [
|
|
3572
|
+
// {
|
|
3573
|
+
// id: "default",
|
|
3574
|
+
// name: "Default",
|
|
3575
|
+
// image: undefined,
|
|
3576
|
+
// description: undefined,
|
|
3577
|
+
// documentationLink: undefined,
|
|
3578
|
+
// layout: { type: "Column", children: ["markdownUrl"] },
|
|
3579
|
+
// maxColumns: 1,
|
|
3580
|
+
// defaultColumns: 1,
|
|
3581
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3582
|
+
// },
|
|
3583
|
+
// ],
|
|
3584
|
+
// defaultVariantKey: "default",
|
|
3585
|
+
// },
|
|
3586
|
+
// behavior: {
|
|
3587
|
+
// dataType: "Item",
|
|
3588
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
3589
|
+
// entities: undefined,
|
|
3590
|
+
// },
|
|
3591
|
+
// editorOptions: {
|
|
3592
|
+
// onboarding: {
|
|
3593
|
+
// helpText: "Embed and process markdown from URL.",
|
|
3594
|
+
// documentationLink:
|
|
3595
|
+
// "https://learn.supernova.io/latest/documentation/types-of-blocks/code/markdown/general-B8wQVOem",
|
|
3596
|
+
// },
|
|
3597
|
+
// },
|
|
3598
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3599
|
+
// },
|
|
3600
|
+
// {
|
|
3601
|
+
// id: "io.supernova.block.table",
|
|
3602
|
+
// name: "Table",
|
|
3603
|
+
// description: "Display a simple table",
|
|
3604
|
+
// category: "Layout",
|
|
3605
|
+
// icon: undefined,
|
|
3606
|
+
// documentationLink: undefined,
|
|
3607
|
+
// searchKeywords: ["grid", "data", "spreadsheet", "api"],
|
|
3608
|
+
// item: {
|
|
3609
|
+
// properties: [
|
|
3610
|
+
// {
|
|
3611
|
+
// id: "table",
|
|
3612
|
+
// name: "Table",
|
|
3613
|
+
// type: "Table",
|
|
3614
|
+
// description: undefined,
|
|
3615
|
+
// options: {},
|
|
3616
|
+
// variantOptions: undefined,
|
|
3617
|
+
// },
|
|
3618
|
+
// ],
|
|
3619
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3620
|
+
// variants: [
|
|
3621
|
+
// {
|
|
3622
|
+
// id: "default",
|
|
3623
|
+
// name: "Default",
|
|
3624
|
+
// image: undefined,
|
|
3625
|
+
// description: undefined,
|
|
3626
|
+
// documentationLink: undefined,
|
|
3627
|
+
// layout: { type: "Column", children: ["table"] },
|
|
3628
|
+
// maxColumns: 1,
|
|
3629
|
+
// defaultColumns: 1,
|
|
3630
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3631
|
+
// },
|
|
3632
|
+
// ],
|
|
3633
|
+
// defaultVariantKey: "default",
|
|
3634
|
+
// },
|
|
3635
|
+
// behavior: {
|
|
3636
|
+
// dataType: "Item",
|
|
3637
|
+
// items: { numberOfItems: 1, allowLinks: false },
|
|
3638
|
+
// entities: undefined,
|
|
3639
|
+
// },
|
|
3640
|
+
// editorOptions: {
|
|
3641
|
+
// onboarding: {
|
|
3642
|
+
// helpText: "Use for displaying data in a tabular format.",
|
|
3643
|
+
// documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/layout/table-R8KGnxej",
|
|
3644
|
+
// },
|
|
3645
|
+
// },
|
|
3646
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3647
|
+
// },
|
|
3648
|
+
// {
|
|
3649
|
+
// id: "io.supernova.block.token-detail",
|
|
3650
|
+
// name: "Token detail",
|
|
3651
|
+
// description: "Show a single design tokens",
|
|
3652
|
+
// category: "Tokens",
|
|
3653
|
+
// icon: undefined,
|
|
3654
|
+
// documentationLink: undefined,
|
|
3655
|
+
// searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
|
|
3656
|
+
// item: {
|
|
3657
|
+
// properties: [
|
|
3658
|
+
// {
|
|
3659
|
+
// id: "tokens",
|
|
3660
|
+
// name: "Tokens",
|
|
3661
|
+
// type: "Token",
|
|
3662
|
+
// description: undefined,
|
|
3663
|
+
// options: {},
|
|
3664
|
+
// variantOptions: undefined,
|
|
3665
|
+
// },
|
|
3666
|
+
// ],
|
|
3667
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3668
|
+
// variants: [
|
|
3669
|
+
// {
|
|
3670
|
+
// id: "table",
|
|
3671
|
+
// name: "Table Row",
|
|
3672
|
+
// image: "assets/variant-table.png",
|
|
3673
|
+
// description: undefined,
|
|
3674
|
+
// documentationLink: undefined,
|
|
3675
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3676
|
+
// maxColumns: 1,
|
|
3677
|
+
// defaultColumns: 1,
|
|
3678
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3679
|
+
// },
|
|
3680
|
+
// {
|
|
3681
|
+
// id: "grid",
|
|
3682
|
+
// name: "Grid Item",
|
|
3683
|
+
// image: "assets/variant-grid.png",
|
|
3684
|
+
// description: undefined,
|
|
3685
|
+
// documentationLink: undefined,
|
|
3686
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3687
|
+
// maxColumns: 1,
|
|
3688
|
+
// defaultColumns: 1,
|
|
3689
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3690
|
+
// },
|
|
3691
|
+
// {
|
|
3692
|
+
// id: "color-stack",
|
|
3693
|
+
// name: "Color stack item",
|
|
3694
|
+
// image: "assets/variant-color-stack.png",
|
|
3695
|
+
// description: undefined,
|
|
3696
|
+
// documentationLink: undefined,
|
|
3697
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3698
|
+
// maxColumns: 1,
|
|
3699
|
+
// defaultColumns: 1,
|
|
3700
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3701
|
+
// },
|
|
3702
|
+
// ],
|
|
3703
|
+
// defaultVariantKey: "table",
|
|
3704
|
+
// },
|
|
3705
|
+
// behavior: {
|
|
3706
|
+
// dataType: "Token",
|
|
3707
|
+
// items: undefined,
|
|
3708
|
+
// entities: { selectionType: "Entity", maxSelected: 1 },
|
|
3709
|
+
// },
|
|
3710
|
+
// editorOptions: {
|
|
3711
|
+
// onboarding: {
|
|
3712
|
+
// helpText: "Show a single design token.",
|
|
3713
|
+
// documentationLink:
|
|
3714
|
+
// "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-detail-04",
|
|
3715
|
+
// },
|
|
3716
|
+
// },
|
|
3717
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3718
|
+
// },
|
|
3719
|
+
// {
|
|
3720
|
+
// id: "io.supernova.block.token-list",
|
|
3721
|
+
// name: "Token list",
|
|
3722
|
+
// description: "Show a list of design tokens",
|
|
3723
|
+
// category: "Tokens",
|
|
3724
|
+
// icon: undefined,
|
|
3725
|
+
// documentationLink: undefined,
|
|
3726
|
+
// searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme", "accessibility", "contrast"],
|
|
3727
|
+
// item: {
|
|
3728
|
+
// properties: [
|
|
3729
|
+
// {
|
|
3730
|
+
// id: "tokens",
|
|
3731
|
+
// name: "Tokens",
|
|
3732
|
+
// type: "Token",
|
|
3733
|
+
// description: undefined,
|
|
3734
|
+
// options: {},
|
|
3735
|
+
// variantOptions: undefined,
|
|
3736
|
+
// },
|
|
3737
|
+
// ],
|
|
3738
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3739
|
+
// variants: [
|
|
3740
|
+
// {
|
|
3741
|
+
// id: "table",
|
|
3742
|
+
// name: "Table",
|
|
3743
|
+
// image: "assets/variant-table.png",
|
|
3744
|
+
// description: undefined,
|
|
3745
|
+
// documentationLink: undefined,
|
|
3746
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3747
|
+
// maxColumns: 1,
|
|
3748
|
+
// defaultColumns: 1,
|
|
3749
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3750
|
+
// },
|
|
3751
|
+
// {
|
|
3752
|
+
// id: "grid",
|
|
3753
|
+
// name: "Grid",
|
|
3754
|
+
// image: "assets/variant-grid.png",
|
|
3755
|
+
// description: undefined,
|
|
3756
|
+
// documentationLink: undefined,
|
|
3757
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3758
|
+
// maxColumns: 4,
|
|
3759
|
+
// defaultColumns: 1,
|
|
3760
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3761
|
+
// },
|
|
3762
|
+
// {
|
|
3763
|
+
// id: "color-stack",
|
|
3764
|
+
// name: "Color stack",
|
|
3765
|
+
// image: "assets/variant-color-stack.png",
|
|
3766
|
+
// description: undefined,
|
|
3767
|
+
// documentationLink: undefined,
|
|
3768
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3769
|
+
// maxColumns: 1,
|
|
3770
|
+
// defaultColumns: 1,
|
|
3771
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3772
|
+
// },
|
|
3773
|
+
// {
|
|
3774
|
+
// id: "color-contrast-grid",
|
|
3775
|
+
// name: "Color contrast grid",
|
|
3776
|
+
// image: "assets/variant-color-contrast-grid.png",
|
|
3777
|
+
// description: undefined,
|
|
3778
|
+
// documentationLink: undefined,
|
|
3779
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3780
|
+
// maxColumns: 1,
|
|
3781
|
+
// defaultColumns: 1,
|
|
3782
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3783
|
+
// },
|
|
3784
|
+
// ],
|
|
3785
|
+
// defaultVariantKey: "table",
|
|
3786
|
+
// },
|
|
3787
|
+
// behavior: {
|
|
3788
|
+
// dataType: "Token",
|
|
3789
|
+
// items: undefined,
|
|
3790
|
+
// entities: { selectionType: "Entity", maxSelected: 0 },
|
|
3791
|
+
// },
|
|
3792
|
+
// editorOptions: {
|
|
3793
|
+
// onboarding: {
|
|
3794
|
+
// helpText:
|
|
3795
|
+
// "Show a list of design tokens. You can use this block to create a list of colors, typography, spacing, grid, or any other token type.",
|
|
3796
|
+
// documentationLink:
|
|
3797
|
+
// "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-list-06",
|
|
3798
|
+
// },
|
|
3799
|
+
// },
|
|
3800
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3801
|
+
// },
|
|
3802
|
+
// {
|
|
3803
|
+
// id: "io.supernova.block.token-group",
|
|
3804
|
+
// name: "Token group",
|
|
3805
|
+
// description: "Show a group of design tokens",
|
|
3806
|
+
// category: "Tokens",
|
|
3807
|
+
// icon: undefined,
|
|
3808
|
+
// documentationLink: undefined,
|
|
3809
|
+
// searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme", "accessibility", "contrast"],
|
|
3810
|
+
// item: {
|
|
3811
|
+
// properties: [
|
|
3812
|
+
// {
|
|
3813
|
+
// id: "tokens",
|
|
3814
|
+
// name: "Tokens",
|
|
3815
|
+
// type: "Token",
|
|
3816
|
+
// description: undefined,
|
|
3817
|
+
// options: {},
|
|
3818
|
+
// variantOptions: undefined,
|
|
3819
|
+
// },
|
|
3820
|
+
// ],
|
|
3821
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3822
|
+
// variants: [
|
|
3823
|
+
// {
|
|
3824
|
+
// id: "table",
|
|
3825
|
+
// name: "Table",
|
|
3826
|
+
// image: "assets/variant-table.png",
|
|
3827
|
+
// description: undefined,
|
|
3828
|
+
// documentationLink: undefined,
|
|
3829
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3830
|
+
// maxColumns: 1,
|
|
3831
|
+
// defaultColumns: 1,
|
|
3832
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3833
|
+
// },
|
|
3834
|
+
// {
|
|
3835
|
+
// id: "grid",
|
|
3836
|
+
// name: "Grid",
|
|
3837
|
+
// image: "assets/variant-grid.png",
|
|
3838
|
+
// description: undefined,
|
|
3839
|
+
// documentationLink: undefined,
|
|
3840
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3841
|
+
// maxColumns: 4,
|
|
3842
|
+
// defaultColumns: 1,
|
|
3843
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3844
|
+
// },
|
|
3845
|
+
// {
|
|
3846
|
+
// id: "color-stack",
|
|
3847
|
+
// name: "Color stack",
|
|
3848
|
+
// image: "assets/variant-color-stack.png",
|
|
3849
|
+
// description: undefined,
|
|
3850
|
+
// documentationLink: undefined,
|
|
3851
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3852
|
+
// maxColumns: 2,
|
|
3853
|
+
// defaultColumns: 1,
|
|
3854
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3855
|
+
// },
|
|
3856
|
+
// {
|
|
3857
|
+
// id: "color-contrast-grid",
|
|
3858
|
+
// name: "Color contrast grid",
|
|
3859
|
+
// image: "assets/variant-color-contrast-grid.png",
|
|
3860
|
+
// description: undefined,
|
|
3861
|
+
// documentationLink: undefined,
|
|
3862
|
+
// layout: { type: "Column", children: ["tokens"] },
|
|
3863
|
+
// maxColumns: 1,
|
|
3864
|
+
// defaultColumns: 1,
|
|
3865
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3866
|
+
// },
|
|
3867
|
+
// ],
|
|
3868
|
+
// defaultVariantKey: "table",
|
|
3869
|
+
// },
|
|
3870
|
+
// behavior: {
|
|
3871
|
+
// dataType: "Token",
|
|
3872
|
+
// items: undefined,
|
|
3873
|
+
// entities: { selectionType: "Group", maxSelected: 1 },
|
|
3874
|
+
// },
|
|
3875
|
+
// editorOptions: {
|
|
3876
|
+
// onboarding: {
|
|
3877
|
+
// helpText:
|
|
3878
|
+
// "Show a group of design tokens. You can use this block to create a list of colors, typography, spacing, grid, or any other token type.",
|
|
3879
|
+
// documentationLink:
|
|
3880
|
+
// "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09",
|
|
3881
|
+
// },
|
|
3882
|
+
// },
|
|
3883
|
+
// appearance: { isBordered: false, hasBackground: false },
|
|
3884
|
+
// },
|
|
3885
|
+
// ];
|