@supernova-studio/client 0.30.1 → 0.32.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.
@@ -20,7 +20,7 @@ const blocks: PageBlockDefinition[] = [
20
20
  name: "Text",
21
21
  description: "Plain text",
22
22
  category: "Text",
23
- icon: "https://cdn-assets.supernova.io/blocks/icons/text.svg",
23
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/text.svg",
24
24
  searchKeywords: ["paragraph", "rich text"],
25
25
  item: {
26
26
  properties: [
@@ -28,369 +28,220 @@ const blocks: PageBlockDefinition[] = [
28
28
  id: "text",
29
29
  name: "Text",
30
30
  type: "RichText",
31
- options: {
32
- richTextStyle: "Default",
33
- },
31
+ options: { richTextStyle: "Default" },
34
32
  },
35
33
  ],
36
- appearance: {
37
- isBordered: false,
38
- hasBackground: false,
39
- },
34
+ appearance: { isBordered: true, hasBackground: false },
40
35
  variants: [
41
36
  {
42
37
  id: "default",
43
38
  name: "Default",
44
- layout: {
45
- type: "Column",
46
- children: ["text"],
47
- columnAlign: "Start",
48
- columnResizing: "Fill",
49
- gap: "Medium",
50
- },
39
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
51
40
  maxColumns: 1,
52
41
  defaultColumns: 1,
53
- appearance: {
54
- isBordered: false,
55
- hasBackground: false,
56
- isEditorPresentationDifferent: false,
57
- },
42
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
58
43
  },
59
44
  ],
60
45
  defaultVariantKey: "default",
61
46
  },
62
- behavior: {
63
- dataType: "Item",
64
- items: {
65
- numberOfItems: 1,
66
- allowLinks: false,
67
- },
68
- },
47
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
69
48
  editorOptions: {
70
49
  onboarding: {
71
50
  helpText: "Use rich text block to write text and add additional formatting to it.",
72
51
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/text-HxZ9ssJR",
73
52
  },
74
53
  },
75
- appearance: {
76
- isBordered: false,
77
- hasBackground: false,
78
- },
54
+ appearance: { isBordered: true, hasBackground: false },
79
55
  },
80
56
  {
81
57
  id: "io.supernova.block.title1",
82
- name: "Title 1",
58
+ name: "Heading 1",
83
59
  description: "Main sections within the page",
84
60
  category: "Text",
85
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-1.svg",
86
- searchKeywords: ["heading", "h1"],
61
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-1.svg",
62
+ searchKeywords: ["title", "h1"],
87
63
  item: {
88
64
  properties: [
89
65
  {
90
66
  id: "text",
91
67
  name: "Text",
92
68
  type: "RichText",
93
- options: {
94
- placeholder: "Title 1",
95
- richTextStyle: "Title1",
96
- },
69
+ options: { placeholder: "Heading 1", richTextStyle: "Title1" },
97
70
  },
98
71
  ],
99
- appearance: {
100
- isBordered: false,
101
- hasBackground: false,
102
- },
72
+ appearance: { isBordered: true, hasBackground: false },
103
73
  variants: [
104
74
  {
105
75
  id: "default",
106
76
  name: "Default",
107
- layout: {
108
- type: "Column",
109
- children: ["text"],
110
- columnAlign: "Start",
111
- columnResizing: "Fill",
112
- gap: "Medium",
113
- },
77
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
114
78
  maxColumns: 1,
115
79
  defaultColumns: 1,
116
- appearance: {
117
- isBordered: false,
118
- hasBackground: false,
119
- isEditorPresentationDifferent: false,
120
- },
80
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
121
81
  },
122
82
  ],
123
83
  defaultVariantKey: "default",
124
84
  },
125
- behavior: {
126
- dataType: "Item",
127
- items: {
128
- numberOfItems: 1,
129
- allowLinks: false,
130
- },
131
- },
85
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
132
86
  editorOptions: {
133
87
  onboarding: {
134
88
  helpText: "Use for main sections within the page, introducing broad topics or themes.",
135
89
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
136
90
  },
137
91
  },
138
- appearance: {
139
- isBordered: false,
140
- hasBackground: false,
141
- },
92
+ appearance: { isBordered: true, hasBackground: false },
142
93
  },
143
94
  {
144
95
  id: "io.supernova.block.title2",
145
- name: "Title 2",
96
+ name: "Heading 2",
146
97
  description: "Section subheadings",
147
98
  category: "Text",
148
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-2.svg",
149
- searchKeywords: ["heading", "h2"],
99
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-2.svg",
100
+ searchKeywords: ["title", "h2"],
150
101
  item: {
151
102
  properties: [
152
103
  {
153
104
  id: "text",
154
105
  name: "Text",
155
106
  type: "RichText",
156
- options: {
157
- placeholder: "Title 2",
158
- richTextStyle: "Title2",
159
- },
107
+ options: { placeholder: "Heading 2", richTextStyle: "Title2" },
160
108
  },
161
109
  ],
162
- appearance: {
163
- isBordered: false,
164
- hasBackground: false,
165
- },
110
+ appearance: { isBordered: true, hasBackground: false },
166
111
  variants: [
167
112
  {
168
113
  id: "default",
169
114
  name: "Default",
170
- layout: {
171
- type: "Column",
172
- children: ["text"],
173
- columnAlign: "Start",
174
- columnResizing: "Fill",
175
- gap: "Medium",
176
- },
115
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
177
116
  maxColumns: 1,
178
117
  defaultColumns: 1,
179
- appearance: {
180
- isBordered: false,
181
- hasBackground: false,
182
- isEditorPresentationDifferent: false,
183
- },
118
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
184
119
  },
185
120
  ],
186
121
  defaultVariantKey: "default",
187
122
  },
188
- behavior: {
189
- dataType: "Item",
190
- items: {
191
- numberOfItems: 1,
192
- allowLinks: false,
193
- },
194
- },
123
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
195
124
  editorOptions: {
196
125
  onboarding: {
197
126
  helpText: "Use for subheadings, indicating major subsections under the main sections.",
198
127
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
199
128
  },
200
129
  },
201
- appearance: {
202
- isBordered: false,
203
- hasBackground: false,
204
- },
130
+ appearance: { isBordered: true, hasBackground: false },
205
131
  },
206
132
  {
207
133
  id: "io.supernova.block.title3",
208
- name: "Title 3",
134
+ name: "Heading 3",
209
135
  description: "Further subsections",
210
136
  category: "Text",
211
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-3.svg",
212
- searchKeywords: ["heading", "h3"],
137
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-3.svg",
138
+ searchKeywords: ["title", "h3"],
213
139
  item: {
214
140
  properties: [
215
141
  {
216
142
  id: "text",
217
143
  name: "Text",
218
144
  type: "RichText",
219
- options: {
220
- placeholder: "Title 3",
221
- richTextStyle: "Title3",
222
- },
145
+ options: { placeholder: "Heading 3", richTextStyle: "Title3" },
223
146
  },
224
147
  ],
225
- appearance: {
226
- isBordered: false,
227
- hasBackground: false,
228
- },
148
+ appearance: { isBordered: true, hasBackground: false },
229
149
  variants: [
230
150
  {
231
151
  id: "default",
232
152
  name: "Default",
233
- layout: {
234
- type: "Column",
235
- children: ["text"],
236
- columnAlign: "Start",
237
- columnResizing: "Fill",
238
- gap: "Medium",
239
- },
153
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
240
154
  maxColumns: 1,
241
155
  defaultColumns: 1,
242
- appearance: {
243
- isBordered: false,
244
- hasBackground: false,
245
- isEditorPresentationDifferent: false,
246
- },
156
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
247
157
  },
248
158
  ],
249
159
  defaultVariantKey: "default",
250
160
  },
251
- behavior: {
252
- dataType: "Item",
253
- items: {
254
- numberOfItems: 1,
255
- allowLinks: false,
256
- },
257
- },
161
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
258
162
  editorOptions: {
259
163
  onboarding: {
260
164
  helpText: "Use for further subsections, detailing specific topics within the major subsections.",
261
165
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
262
166
  },
263
167
  },
264
- appearance: {
265
- isBordered: false,
266
- hasBackground: false,
267
- },
168
+ appearance: { isBordered: true, hasBackground: false },
268
169
  },
269
170
  {
270
171
  id: "io.supernova.block.title4",
271
- name: "Title 4",
172
+ name: "Heading 4",
272
173
  description: "Details in subsections",
273
174
  category: "Text",
274
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-4.svg",
275
- searchKeywords: ["heading", "h4"],
175
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-4.svg",
176
+ searchKeywords: ["title", "h4"],
276
177
  item: {
277
178
  properties: [
278
179
  {
279
180
  id: "text",
280
181
  name: "Text",
281
182
  type: "RichText",
282
- options: {
283
- placeholder: "Title 4",
284
- richTextStyle: "Title4",
285
- },
183
+ options: { placeholder: "Heading 4", richTextStyle: "Title4" },
286
184
  },
287
185
  ],
288
- appearance: {
289
- isBordered: false,
290
- hasBackground: false,
291
- },
186
+ appearance: { isBordered: true, hasBackground: false },
292
187
  variants: [
293
188
  {
294
189
  id: "default",
295
190
  name: "Default",
296
- layout: {
297
- type: "Column",
298
- children: ["text"],
299
- columnAlign: "Start",
300
- columnResizing: "Fill",
301
- gap: "Medium",
302
- },
191
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
303
192
  maxColumns: 1,
304
193
  defaultColumns: 1,
305
- appearance: {
306
- isBordered: false,
307
- hasBackground: false,
308
- isEditorPresentationDifferent: false,
309
- },
194
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
310
195
  },
311
196
  ],
312
197
  defaultVariantKey: "default",
313
198
  },
314
- behavior: {
315
- dataType: "Item",
316
- items: {
317
- numberOfItems: 1,
318
- allowLinks: false,
319
- },
320
- },
199
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
321
200
  editorOptions: {
322
201
  onboarding: {
323
202
  helpText: "Use for sub-divisions, elaborating on details within the subsections.",
324
203
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
325
204
  },
326
205
  },
327
- appearance: {
328
- isBordered: false,
329
- hasBackground: false,
330
- },
206
+ appearance: { isBordered: true, hasBackground: false },
331
207
  },
332
208
  {
333
209
  id: "io.supernova.block.title5",
334
- name: "Title 5",
210
+ name: "Heading 5",
335
211
  description: "Nuanced details or sub-points",
336
212
  category: "Text",
337
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-5.svg",
338
- searchKeywords: ["heading", "h5"],
213
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-5.svg",
214
+ searchKeywords: ["title", "h5"],
339
215
  item: {
340
216
  properties: [
341
217
  {
342
218
  id: "text",
343
219
  name: "Text",
344
220
  type: "RichText",
345
- options: {
346
- placeholder: "Title 5",
347
- richTextStyle: "Title5",
348
- },
221
+ options: { placeholder: "Heading 5", richTextStyle: "Title5" },
349
222
  },
350
223
  ],
351
- appearance: {
352
- isBordered: false,
353
- hasBackground: false,
354
- },
224
+ appearance: { isBordered: true, hasBackground: false },
355
225
  variants: [
356
226
  {
357
227
  id: "default",
358
228
  name: "Default",
359
- layout: {
360
- type: "Column",
361
- children: ["text"],
362
- columnAlign: "Start",
363
- columnResizing: "Fill",
364
- gap: "Medium",
365
- },
229
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
366
230
  maxColumns: 1,
367
231
  defaultColumns: 1,
368
- appearance: {
369
- isBordered: false,
370
- hasBackground: false,
371
- isEditorPresentationDifferent: false,
372
- },
232
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
373
233
  },
374
234
  ],
375
235
  defaultVariantKey: "default",
376
236
  },
377
- behavior: {
378
- dataType: "Item",
379
- items: {
380
- numberOfItems: 1,
381
- allowLinks: false,
382
- },
383
- },
237
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
384
238
  editorOptions: {
385
239
  onboarding: {
386
240
  helpText: "Use for nuanced details or specific sub-points within sub-divisions.",
387
241
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
388
242
  },
389
243
  },
390
- appearance: {
391
- isBordered: false,
392
- hasBackground: false,
393
- },
244
+ appearance: { isBordered: true, hasBackground: false },
394
245
  },
395
246
  {
396
247
  id: "io.supernova.block.ordered-list",
@@ -405,58 +256,34 @@ const blocks: PageBlockDefinition[] = [
405
256
  id: "text",
406
257
  name: "Text",
407
258
  type: "MultiRichText",
408
- options: {
409
- multiRichTextStyle: "OL",
410
- },
259
+ options: { multiRichTextStyle: "OL" },
411
260
  },
412
261
  ],
413
- appearance: {
414
- isBordered: false,
415
- hasBackground: false,
416
- },
262
+ appearance: { isBordered: true, hasBackground: false },
417
263
  variants: [
418
264
  {
419
265
  id: "default",
420
266
  name: "Default",
421
- layout: {
422
- type: "Column",
423
- children: ["text"],
424
- columnAlign: "Start",
425
- columnResizing: "Fill",
426
- gap: "Medium",
427
- },
267
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
428
268
  maxColumns: 1,
429
269
  defaultColumns: 1,
430
- appearance: {
431
- isBordered: false,
432
- hasBackground: false,
433
- isEditorPresentationDifferent: false,
434
- },
270
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
435
271
  },
436
272
  ],
437
273
  defaultVariantKey: "default",
438
274
  },
439
- behavior: {
440
- dataType: "Item",
441
- items: {
442
- numberOfItems: 1,
443
- allowLinks: false,
444
- },
445
- },
275
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
446
276
  editorOptions: {
447
277
  onboarding: {
448
278
  helpText: "Display a sequence of numbers or letters to indicate order.",
449
279
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
450
280
  },
451
281
  },
452
- appearance: {
453
- isBordered: false,
454
- hasBackground: false,
455
- },
282
+ appearance: { isBordered: true, hasBackground: false },
456
283
  },
457
284
  {
458
285
  id: "io.supernova.block.unordered-list",
459
- name: "Unordered list",
286
+ name: "Bullet list",
460
287
  description: "A list with bullet points",
461
288
  category: "Text",
462
289
  icon: "https://cdn-assets.supernova.io/blocks/icons/list-unordered.svg",
@@ -467,54 +294,30 @@ const blocks: PageBlockDefinition[] = [
467
294
  id: "text",
468
295
  name: "Text",
469
296
  type: "MultiRichText",
470
- options: {
471
- multiRichTextStyle: "UL",
472
- },
297
+ options: { multiRichTextStyle: "UL" },
473
298
  },
474
299
  ],
475
- appearance: {
476
- isBordered: false,
477
- hasBackground: false,
478
- },
300
+ appearance: { isBordered: true, hasBackground: false },
479
301
  variants: [
480
302
  {
481
303
  id: "default",
482
304
  name: "Default",
483
- layout: {
484
- type: "Column",
485
- children: ["text"],
486
- columnAlign: "Start",
487
- columnResizing: "Fill",
488
- gap: "Medium",
489
- },
305
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
490
306
  maxColumns: 1,
491
307
  defaultColumns: 1,
492
- appearance: {
493
- isBordered: false,
494
- hasBackground: false,
495
- isEditorPresentationDifferent: false,
496
- },
308
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
497
309
  },
498
310
  ],
499
311
  defaultVariantKey: "default",
500
312
  },
501
- behavior: {
502
- dataType: "Item",
503
- items: {
504
- numberOfItems: 1,
505
- allowLinks: false,
506
- },
507
- },
313
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
508
314
  editorOptions: {
509
315
  onboarding: {
510
316
  helpText: "A list of items displayed with bullet points without a specific sequence.",
511
317
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
512
318
  },
513
319
  },
514
- appearance: {
515
- isBordered: false,
516
- hasBackground: false,
517
- },
320
+ appearance: { isBordered: true, hasBackground: false },
518
321
  },
519
322
  {
520
323
  id: "io.supernova.block.divider",
@@ -524,18 +327,8 @@ const blocks: PageBlockDefinition[] = [
524
327
  icon: "https://cdn-assets.supernova.io/blocks/icons/divider.svg",
525
328
  searchKeywords: ["hr", "line", "rule", "separator"],
526
329
  item: {
527
- properties: [
528
- {
529
- id: "divider",
530
- name: "Divider",
531
- type: "Divider",
532
- options: {},
533
- },
534
- ],
535
- appearance: {
536
- isBordered: false,
537
- hasBackground: false,
538
- },
330
+ properties: [{ id: "divider", name: "Divider", type: "Divider", options: {} }],
331
+ appearance: { isBordered: true, hasBackground: false },
539
332
  variants: [
540
333
  {
541
334
  id: "default",
@@ -549,102 +342,64 @@ const blocks: PageBlockDefinition[] = [
549
342
  },
550
343
  maxColumns: 1,
551
344
  defaultColumns: 1,
552
- appearance: {
553
- isBordered: false,
554
- hasBackground: false,
555
- isEditorPresentationDifferent: false,
556
- },
345
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
557
346
  },
558
347
  ],
559
348
  defaultVariantKey: "default",
560
349
  },
561
- behavior: {
562
- dataType: "Item",
563
- items: {
564
- numberOfItems: 1,
565
- allowLinks: false,
566
- },
567
- },
350
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
568
351
  editorOptions: {
569
352
  onboarding: {
570
353
  helpText: "A thematic break or horizontal rule, often used to separate content or define a change in topic.",
571
354
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/divider-tLuxooLH",
572
355
  },
573
356
  },
574
- appearance: {
575
- isBordered: false,
576
- hasBackground: false,
577
- },
357
+ appearance: { isBordered: true, hasBackground: false },
578
358
  },
579
359
  {
580
360
  id: "io.supernova.block.blockquote",
581
- name: "Blockquote",
361
+ name: "Quote",
582
362
  description: "Display a quotation",
583
363
  category: "Text",
584
364
  icon: "https://cdn-assets.supernova.io/blocks/icons/blockquote.svg",
585
- searchKeywords: ["cite"],
365
+ searchKeywords: ["cite", "blockquote"],
586
366
  item: {
587
367
  properties: [
588
368
  {
589
369
  id: "text",
590
370
  name: "Text",
591
371
  type: "RichText",
592
- options: {
593
- placeholder: "Write a quote...",
594
- richTextStyle: "Quote",
595
- },
372
+ options: { placeholder: "Write a quote...", richTextStyle: "Quote" },
596
373
  },
597
374
  ],
598
- appearance: {
599
- isBordered: false,
600
- hasBackground: false,
601
- },
375
+ appearance: { isBordered: true, hasBackground: false },
602
376
  variants: [
603
377
  {
604
378
  id: "default",
605
379
  name: "Default",
606
- layout: {
607
- type: "Column",
608
- children: ["text"],
609
- columnAlign: "Start",
610
- columnResizing: "Fill",
611
- gap: "Medium",
612
- },
380
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
613
381
  maxColumns: 1,
614
382
  defaultColumns: 1,
615
- appearance: {
616
- isBordered: false,
617
- hasBackground: false,
618
- isEditorPresentationDifferent: false,
619
- },
383
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
620
384
  },
621
385
  ],
622
386
  defaultVariantKey: "default",
623
387
  },
624
- behavior: {
625
- dataType: "Item",
626
- items: {
627
- numberOfItems: 1,
628
- allowLinks: false,
629
- },
630
- },
388
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
631
389
  editorOptions: {
632
390
  onboarding: {
633
391
  helpText: "Use a blockquote to set off a quotation or cited content from the main text.",
634
392
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/blockquote-zYWAsb6X",
635
393
  },
636
394
  },
637
- appearance: {
638
- isBordered: false,
639
- hasBackground: false,
640
- },
395
+ appearance: { isBordered: true, hasBackground: false },
641
396
  },
642
397
  {
643
398
  id: "io.supernova.block.callout",
644
399
  name: "Callout",
645
400
  description: "Highlight a section of text",
646
401
  category: "Text",
647
- icon: "https://cdn-assets.supernova.io/blocks/icons/callout.svg",
402
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/callout.svg",
648
403
  searchKeywords: ["banner", "alert", "note", "tip", "warning"],
649
404
  item: {
650
405
  properties: [
@@ -652,62 +407,37 @@ const blocks: PageBlockDefinition[] = [
652
407
  id: "text",
653
408
  name: "Text",
654
409
  type: "RichText",
655
- options: {
656
- placeholder: "Highlight some information...",
657
- richTextStyle: "Callout",
658
- },
410
+ options: { placeholder: "Highlight some information...", richTextStyle: "Callout" },
659
411
  },
660
412
  ],
661
- appearance: {
662
- isBordered: false,
663
- hasBackground: false,
664
- },
413
+ appearance: { isBordered: true, hasBackground: false },
665
414
  variants: [
666
415
  {
667
416
  id: "default",
668
417
  name: "Default",
669
- layout: {
670
- type: "Column",
671
- children: ["text"],
672
- columnAlign: "Start",
673
- columnResizing: "Fill",
674
- gap: "Medium",
675
- },
418
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
676
419
  maxColumns: 1,
677
420
  defaultColumns: 1,
678
- appearance: {
679
- isBordered: false,
680
- hasBackground: false,
681
- isEditorPresentationDifferent: false,
682
- },
421
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
683
422
  },
684
423
  ],
685
424
  defaultVariantKey: "default",
686
425
  },
687
- behavior: {
688
- dataType: "Item",
689
- items: {
690
- numberOfItems: 1,
691
- allowLinks: false,
692
- },
693
- },
426
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
694
427
  editorOptions: {
695
428
  onboarding: {
696
429
  helpText: "Use to highlight a section of text.",
697
430
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/callout-ZPlZObD1",
698
431
  },
699
432
  },
700
- appearance: {
701
- isBordered: false,
702
- hasBackground: false,
703
- },
433
+ appearance: { isBordered: true, hasBackground: false },
704
434
  },
705
435
  {
706
436
  id: "io.supernova.block.image",
707
437
  name: "Image",
708
438
  description: "Display an image or Figma frame",
709
439
  category: "Media",
710
- icon: "https://cdn-assets.supernova.io/blocks/icons/image.svg",
440
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/image.svg",
711
441
  searchKeywords: ["image", "figma", "frame", "picture", "photo"],
712
442
  item: {
713
443
  properties: [
@@ -715,44 +445,23 @@ const blocks: PageBlockDefinition[] = [
715
445
  id: "image",
716
446
  name: "Image",
717
447
  type: "Image",
718
- options: {
719
- allowCaption: true,
720
- },
448
+ options: { allowCaption: true },
721
449
  },
722
450
  ],
723
- appearance: {
724
- isBordered: false,
725
- hasBackground: false,
726
- },
451
+ appearance: { isBordered: true, hasBackground: false },
727
452
  variants: [
728
453
  {
729
454
  id: "default",
730
455
  name: "Default",
731
- layout: {
732
- type: "Column",
733
- children: ["image"],
734
- columnAlign: "Start",
735
- columnResizing: "Fill",
736
- gap: "Medium",
737
- },
456
+ layout: { type: "Column", children: ["image"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
738
457
  maxColumns: 1,
739
458
  defaultColumns: 1,
740
- appearance: {
741
- isBordered: false,
742
- hasBackground: false,
743
- isEditorPresentationDifferent: false,
744
- },
459
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
745
460
  },
746
461
  ],
747
462
  defaultVariantKey: "default",
748
463
  },
749
- behavior: {
750
- dataType: "Item",
751
- items: {
752
- numberOfItems: 1,
753
- allowLinks: false,
754
- },
755
- },
464
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
756
465
  editorOptions: {
757
466
  onboarding: {
758
467
  helpText: "Use to display an image or Figma frame.",
@@ -760,66 +469,42 @@ const blocks: PageBlockDefinition[] = [
760
469
  "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/image-Ue8VdT8B",
761
470
  },
762
471
  },
763
- appearance: {
764
- isBordered: false,
765
- hasBackground: false,
766
- },
472
+ appearance: { isBordered: false, hasBackground: false },
767
473
  },
768
474
  {
769
475
  id: "io.supernova.block.shortcut-links",
770
476
  name: "Shortcut links",
771
477
  description: "Link to a page or external URL",
772
478
  category: "Media",
773
- icon: "https://cdn-assets.supernova.io/blocks/icons/shortcuts.svg",
774
- searchKeywords: [],
479
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/shortcuts.svg",
480
+ searchKeywords: ["url", "page", "card"],
775
481
  item: {
776
482
  properties: [
777
483
  {
778
484
  id: "block.links.property.image",
779
485
  name: "Image",
780
486
  type: "Image",
781
- options: {
782
- aspectRatio: "Landscape",
783
- allowCaption: false,
784
- },
487
+ options: { aspectRatio: "Landscape", allowCaption: false },
785
488
  variantOptions: {
786
- iconOnTop: {
787
- width: "Icon",
788
- aspectRatio: "Square",
789
- },
790
- imageOnLeft: {
791
- width: "Medium",
792
- },
793
- iconOnLeft: {
794
- width: "Icon",
795
- aspectRatio: "Square",
796
- },
489
+ iconOnTop: { width: "Icon", aspectRatio: "Square" },
490
+ imageOnLeft: { width: "Medium" },
491
+ iconOnLeft: { width: "Icon", aspectRatio: "Square" },
797
492
  },
798
493
  },
799
494
  {
800
495
  id: "block.links.property.title",
801
496
  name: "Title",
802
497
  type: "Text",
803
- options: {
804
- textStyle: "Title5",
805
- placeholder: "Add title",
806
- },
498
+ options: { textStyle: "Title5", placeholder: "Add title" },
807
499
  },
808
500
  {
809
501
  id: "block.links.property.description",
810
502
  name: "Short description",
811
503
  type: "Text",
812
- options: {
813
- textStyle: "Default",
814
- color: "NeutralFaded",
815
- placeholder: "Add description",
816
- },
504
+ options: { textStyle: "Default", color: "NeutralFaded", placeholder: "Add description" },
817
505
  },
818
506
  ],
819
- appearance: {
820
- isBordered: false,
821
- hasBackground: false,
822
- },
507
+ appearance: { isBordered: true, hasBackground: false },
823
508
  variants: [
824
509
  {
825
510
  id: "imageOnTop",
@@ -834,11 +519,7 @@ const blocks: PageBlockDefinition[] = [
834
519
  },
835
520
  maxColumns: 4,
836
521
  defaultColumns: 1,
837
- appearance: {
838
- isBordered: false,
839
- hasBackground: false,
840
- isEditorPresentationDifferent: false,
841
- },
522
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
842
523
  },
843
524
  {
844
525
  id: "imageOnLeft",
@@ -868,11 +549,7 @@ const blocks: PageBlockDefinition[] = [
868
549
  },
869
550
  maxColumns: 1,
870
551
  defaultColumns: 1,
871
- appearance: {
872
- isBordered: false,
873
- hasBackground: false,
874
- isEditorPresentationDifferent: false,
875
- },
552
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
876
553
  },
877
554
  {
878
555
  id: "iconOnTop",
@@ -887,11 +564,7 @@ const blocks: PageBlockDefinition[] = [
887
564
  },
888
565
  maxColumns: 4,
889
566
  defaultColumns: 1,
890
- appearance: {
891
- isBordered: false,
892
- hasBackground: false,
893
- isEditorPresentationDifferent: false,
894
- },
567
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
895
568
  },
896
569
  {
897
570
  id: "iconOnLeft",
@@ -921,22 +594,12 @@ const blocks: PageBlockDefinition[] = [
921
594
  },
922
595
  maxColumns: 2,
923
596
  defaultColumns: 1,
924
- appearance: {
925
- isBordered: false,
926
- hasBackground: false,
927
- isEditorPresentationDifferent: false,
928
- },
597
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
929
598
  },
930
599
  ],
931
600
  defaultVariantKey: "imageOnTop",
932
601
  },
933
- behavior: {
934
- dataType: "Item",
935
- items: {
936
- numberOfItems: -1,
937
- allowLinks: true,
938
- },
939
- },
602
+ behavior: { dataType: "Item", items: { numberOfItems: -1, allowLinks: true } },
940
603
  editorOptions: {
941
604
  onboarding: {
942
605
  helpText: "Use link block to create single or multiple links to places in or out of your documentation.",
@@ -944,74 +607,7 @@ const blocks: PageBlockDefinition[] = [
944
607
  "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4",
945
608
  },
946
609
  },
947
- appearance: {
948
- isBordered: false,
949
- hasBackground: false,
950
- },
951
- },
952
- {
953
- id: "io.supernova.block.color-accessibility-grid",
954
- name: "Accessibility Color Grid",
955
- description: "Visualize accessibility of your color tokens.",
956
- category: "Tokens",
957
- icon: "https://cdn-assets.supernova.io/blocks/icons/token-a11y-contrast-grid.svg",
958
- searchKeywords: ["color", "accessibility", "grid", "contrast", "blind", "impairment"],
959
- item: {
960
- properties: [
961
- {
962
- id: "tokens",
963
- name: "Tokens",
964
- type: "Token",
965
- options: {
966
- allowedTypes: ["Color"],
967
- allowPropertySelection: false,
968
- allowThemeSelection: false,
969
- },
970
- },
971
- ],
972
- appearance: {
973
- isBordered: false,
974
- hasBackground: false,
975
- },
976
- variants: [
977
- {
978
- id: "default",
979
- name: "Default",
980
- layout: {
981
- type: "Column",
982
- children: ["tokens"],
983
- columnAlign: "Start",
984
- columnResizing: "Fill",
985
- gap: "Medium",
986
- },
987
- maxColumns: 1,
988
- defaultColumns: 1,
989
- appearance: {
990
- isBordered: false,
991
- hasBackground: false,
992
- isEditorPresentationDifferent: false,
993
- },
994
- },
995
- ],
996
- defaultVariantKey: "default",
997
- },
998
- behavior: {
999
- dataType: "Token",
1000
- entities: {
1001
- selectionType: "EntityAndGroup",
1002
- maxSelected: 0,
1003
- },
1004
- },
1005
- editorOptions: {
1006
- onboarding: {
1007
- helpText: "Visualize accessibility of your colors and compare token groups to one another.",
1008
- documentationLink: "https://learn.supernova.io",
1009
- },
1010
- },
1011
- appearance: {
1012
- isBordered: false,
1013
- hasBackground: false,
1014
- },
610
+ appearance: { isBordered: true, hasBackground: false },
1015
611
  },
1016
612
  {
1017
613
  id: "io.supernova.block.embed",
@@ -1034,10 +630,7 @@ const blocks: PageBlockDefinition[] = [
1034
630
  },
1035
631
  },
1036
632
  ],
1037
- appearance: {
1038
- isBordered: false,
1039
- hasBackground: false,
1040
- },
633
+ appearance: { isBordered: true, hasBackground: false },
1041
634
  variants: [
1042
635
  {
1043
636
  id: "default",
@@ -1051,22 +644,12 @@ const blocks: PageBlockDefinition[] = [
1051
644
  },
1052
645
  maxColumns: 1,
1053
646
  defaultColumns: 1,
1054
- appearance: {
1055
- isBordered: false,
1056
- hasBackground: false,
1057
- isEditorPresentationDifferent: false,
1058
- },
647
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1059
648
  },
1060
649
  ],
1061
650
  defaultVariantKey: "default",
1062
651
  },
1063
- behavior: {
1064
- dataType: "Item",
1065
- items: {
1066
- numberOfItems: 1,
1067
- allowLinks: false,
1068
- },
1069
- },
652
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1070
653
  editorOptions: {
1071
654
  onboarding: {
1072
655
  helpText: "Embed any page to your documentation as an iframe.",
@@ -1074,10 +657,7 @@ const blocks: PageBlockDefinition[] = [
1074
657
  "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/embed/public-url-2ZeRQ332",
1075
658
  },
1076
659
  },
1077
- appearance: {
1078
- isBordered: false,
1079
- hasBackground: false,
1080
- },
660
+ appearance: { isBordered: true, hasBackground: false },
1081
661
  },
1082
662
  {
1083
663
  id: "io.supernova.block.embed-youtube",
@@ -1100,39 +680,20 @@ const blocks: PageBlockDefinition[] = [
1100
680
  },
1101
681
  },
1102
682
  ],
1103
- appearance: {
1104
- isBordered: false,
1105
- hasBackground: false,
1106
- },
683
+ appearance: { isBordered: true, hasBackground: false },
1107
684
  variants: [
1108
685
  {
1109
686
  id: "default",
1110
687
  name: "Default",
1111
- layout: {
1112
- type: "Column",
1113
- children: ["embed"],
1114
- columnAlign: "Start",
1115
- columnResizing: "Fill",
1116
- gap: "Medium",
1117
- },
688
+ layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1118
689
  maxColumns: 1,
1119
690
  defaultColumns: 1,
1120
- appearance: {
1121
- isBordered: false,
1122
- hasBackground: false,
1123
- isEditorPresentationDifferent: false,
1124
- },
691
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1125
692
  },
1126
693
  ],
1127
694
  defaultVariantKey: "default",
1128
695
  },
1129
- behavior: {
1130
- dataType: "Item",
1131
- items: {
1132
- numberOfItems: 1,
1133
- allowLinks: false,
1134
- },
1135
- },
696
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1136
697
  editorOptions: {
1137
698
  onboarding: {
1138
699
  helpText: "Embed a YouTube video to your documentation.",
@@ -1140,10 +701,7 @@ const blocks: PageBlockDefinition[] = [
1140
701
  "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/youtube-Gh8VUrSF",
1141
702
  },
1142
703
  },
1143
- appearance: {
1144
- isBordered: false,
1145
- hasBackground: false,
1146
- },
704
+ appearance: { isBordered: true, hasBackground: false },
1147
705
  },
1148
706
  {
1149
707
  id: "io.supernova.block.embed-lottie",
@@ -1158,55 +716,41 @@ const blocks: PageBlockDefinition[] = [
1158
716
  id: "url",
1159
717
  name: "Lottie URL",
1160
718
  type: "URL",
1161
- options: {
1162
- urlValidationRegex: "^(http|https)://.*.(json|lottie)$",
1163
- },
719
+ description: "Add URL to your Lottie animation file. We support .json and .lottie file extensions.",
720
+ options: { urlValidationRegex: "^(http|https)://.*.(json|lottie)$" },
1164
721
  },
1165
722
  {
1166
723
  id: "height",
1167
724
  name: "Height",
1168
725
  type: "Number",
1169
- options: {
1170
- defaultValue: 270,
1171
- },
726
+ options: { defaultValue: 270 },
1172
727
  },
1173
728
  {
1174
729
  id: "width",
1175
730
  name: "Width",
1176
731
  type: "Number",
1177
- options: {
1178
- defaultValue: 400,
1179
- },
732
+ options: { defaultValue: 400 },
1180
733
  },
1181
734
  {
1182
735
  id: "autoplay",
1183
736
  name: "Autoplay",
1184
737
  type: "Boolean",
1185
- options: {
1186
- defaultValue: true,
1187
- },
738
+ options: { defaultValue: true },
1188
739
  },
1189
740
  {
1190
741
  id: "loop",
1191
742
  name: "Loop",
1192
743
  type: "Boolean",
1193
- options: {
1194
- defaultValue: true,
1195
- },
744
+ options: { defaultValue: true },
1196
745
  },
1197
746
  {
1198
747
  id: "playerControls",
1199
748
  name: "Show player controls",
1200
749
  type: "Boolean",
1201
- options: {
1202
- defaultValue: true,
1203
- },
750
+ options: { defaultValue: true },
1204
751
  },
1205
752
  ],
1206
- appearance: {
1207
- isBordered: false,
1208
- hasBackground: false,
1209
- },
753
+ appearance: { isBordered: true, hasBackground: false },
1210
754
  variants: [
1211
755
  {
1212
756
  id: "default",
@@ -1221,22 +765,12 @@ const blocks: PageBlockDefinition[] = [
1221
765
  },
1222
766
  maxColumns: 1,
1223
767
  defaultColumns: 1,
1224
- appearance: {
1225
- isBordered: false,
1226
- hasBackground: false,
1227
- isEditorPresentationDifferent: true,
1228
- },
768
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
1229
769
  },
1230
770
  ],
1231
771
  defaultVariantKey: "default",
1232
772
  },
1233
- behavior: {
1234
- dataType: "Item",
1235
- items: {
1236
- numberOfItems: 1,
1237
- allowLinks: false,
1238
- },
1239
- },
773
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1240
774
  editorOptions: {
1241
775
  onboarding: {
1242
776
  helpText: "Embed a Lottie animation to your documentation.",
@@ -1244,10 +778,7 @@ const blocks: PageBlockDefinition[] = [
1244
778
  "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/lottie-preview-7CqFdGv9",
1245
779
  },
1246
780
  },
1247
- appearance: {
1248
- isBordered: false,
1249
- hasBackground: false,
1250
- },
781
+ appearance: { isBordered: true, hasBackground: false },
1251
782
  },
1252
783
  {
1253
784
  id: "io.supernova.block.storybook",
@@ -1262,56 +793,30 @@ const blocks: PageBlockDefinition[] = [
1262
793
  id: "embed",
1263
794
  name: "Storybook URL",
1264
795
  type: "Storybook",
1265
- options: {
1266
- allowCaption: true,
1267
- allowResize: true,
1268
- defaultHeight: 400,
1269
- },
796
+ options: { allowCaption: true, allowResize: true, defaultHeight: 400 },
1270
797
  },
1271
798
  ],
1272
- appearance: {
1273
- isBordered: false,
1274
- hasBackground: false,
1275
- },
799
+ appearance: { isBordered: true, hasBackground: false },
1276
800
  variants: [
1277
801
  {
1278
802
  id: "default",
1279
803
  name: "Default",
1280
- layout: {
1281
- type: "Column",
1282
- children: ["embed"],
1283
- columnAlign: "Start",
1284
- columnResizing: "Fill",
1285
- gap: "Medium",
1286
- },
804
+ layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1287
805
  maxColumns: 1,
1288
806
  defaultColumns: 1,
1289
- appearance: {
1290
- isBordered: false,
1291
- hasBackground: false,
1292
- isEditorPresentationDifferent: false,
1293
- },
807
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1294
808
  },
1295
809
  ],
1296
810
  defaultVariantKey: "default",
1297
811
  },
1298
- behavior: {
1299
- dataType: "Item",
1300
- items: {
1301
- numberOfItems: 1,
1302
- allowLinks: false,
1303
- },
1304
- },
812
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1305
813
  editorOptions: {
1306
814
  onboarding: {
1307
815
  helpText: "Embed a Storybook story to your documentation.",
1308
816
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/storybook-1EGPhwBl",
1309
817
  },
1310
818
  },
1311
- appearance: {
1312
- isBordered: false,
1313
- hasBackground: false,
1314
- },
819
+ appearance: { isBordered: true, hasBackground: false },
1315
820
  },
1316
821
  {
1317
822
  id: "io.supernova.block.embed-figma",
@@ -1334,49 +839,27 @@ const blocks: PageBlockDefinition[] = [
1334
839
  },
1335
840
  },
1336
841
  ],
1337
- appearance: {
1338
- isBordered: false,
1339
- hasBackground: false,
1340
- },
842
+ appearance: { isBordered: true, hasBackground: false },
1341
843
  variants: [
1342
844
  {
1343
845
  id: "default",
1344
846
  name: "Default",
1345
- layout: {
1346
- type: "Column",
1347
- children: ["embed"],
1348
- columnAlign: "Start",
1349
- columnResizing: "Fill",
1350
- gap: "Medium",
1351
- },
847
+ layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1352
848
  maxColumns: 1,
1353
849
  defaultColumns: 1,
1354
- appearance: {
1355
- isBordered: false,
1356
- hasBackground: false,
1357
- isEditorPresentationDifferent: false,
1358
- },
850
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1359
851
  },
1360
852
  ],
1361
853
  defaultVariantKey: "default",
1362
854
  },
1363
- behavior: {
1364
- dataType: "Item",
1365
- items: {
1366
- numberOfItems: 1,
1367
- allowLinks: false,
1368
- },
1369
- },
855
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1370
856
  editorOptions: {
1371
857
  onboarding: {
1372
858
  helpText: "Embed a Figma canvas or prototype to your documentation.",
1373
859
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/embed-figma-GPNJsT8A",
1374
860
  },
1375
861
  },
1376
- appearance: {
1377
- isBordered: false,
1378
- hasBackground: false,
1379
- },
862
+ appearance: { isBordered: true, hasBackground: false },
1380
863
  },
1381
864
  {
1382
865
  id: "io.supernova.block.markdown",
@@ -1384,22 +867,17 @@ const blocks: PageBlockDefinition[] = [
1384
867
  description: "Render Markdown URL",
1385
868
  category: "Other",
1386
869
  icon: "https://cdn-assets.supernova.io/blocks/icons/markdown.svg",
1387
- searchKeywords: ["md", "embed", "api", "table", "mdx"],
870
+ searchKeywords: ["md", "embed", "api", "props", "mdx"],
1388
871
  item: {
1389
872
  properties: [
1390
873
  {
1391
874
  id: "markdownUrl",
1392
875
  name: "Markdown URL",
1393
876
  type: "Markdown",
1394
- options: {
1395
- urlValidationRegex: "^(https?://)?(www.)?.+.md$",
1396
- },
877
+ options: { urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$" },
1397
878
  },
1398
879
  ],
1399
- appearance: {
1400
- isBordered: false,
1401
- hasBackground: false,
1402
- },
880
+ appearance: { isBordered: true, hasBackground: false },
1403
881
  variants: [
1404
882
  {
1405
883
  id: "plain",
@@ -1414,11 +892,7 @@ const blocks: PageBlockDefinition[] = [
1414
892
  },
1415
893
  maxColumns: 1,
1416
894
  defaultColumns: 1,
1417
- appearance: {
1418
- isBordered: false,
1419
- hasBackground: false,
1420
- isEditorPresentationDifferent: true,
1421
- },
895
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
1422
896
  },
1423
897
  {
1424
898
  id: "bordered",
@@ -1433,11 +907,7 @@ const blocks: PageBlockDefinition[] = [
1433
907
  },
1434
908
  maxColumns: 1,
1435
909
  defaultColumns: 1,
1436
- appearance: {
1437
- isBordered: false,
1438
- hasBackground: false,
1439
- isEditorPresentationDifferent: true,
1440
- },
910
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
1441
911
  },
1442
912
  {
1443
913
  id: "boxed",
@@ -1452,416 +922,188 @@ const blocks: PageBlockDefinition[] = [
1452
922
  },
1453
923
  maxColumns: 1,
1454
924
  defaultColumns: 1,
1455
- appearance: {
1456
- isBordered: false,
1457
- hasBackground: false,
1458
- isEditorPresentationDifferent: true,
1459
- },
925
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
1460
926
  },
1461
927
  ],
1462
928
  defaultVariantKey: "plain",
1463
929
  },
1464
- behavior: {
1465
- dataType: "Item",
1466
- items: {
1467
- numberOfItems: 1,
1468
- allowLinks: false,
1469
- },
1470
- },
930
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1471
931
  editorOptions: {
1472
932
  onboarding: {
1473
- helpText: "Embed and process markdown from URL.",
933
+ helpText: "Render any markdown file directly inside of your documentation.",
1474
934
  documentationLink:
1475
935
  "https://learn.supernova.io/latest/documentation/types-of-blocks/code/markdown/general-B8wQVOem",
1476
936
  },
1477
937
  },
1478
- appearance: {
1479
- isBordered: false,
1480
- hasBackground: false,
1481
- },
938
+ appearance: { isBordered: true, hasBackground: false },
1482
939
  },
1483
940
  {
1484
941
  id: "io.supernova.block.table",
1485
942
  name: "Table",
1486
943
  description: "Display a simple table",
1487
944
  category: "Layout",
1488
- icon: "https://cdn-assets.supernova.io/blocks/icons/table.svg",
945
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/table.svg",
1489
946
  searchKeywords: ["grid", "data", "spreadsheet", "api"],
1490
947
  item: {
1491
- properties: [
1492
- {
1493
- id: "table",
1494
- name: "Table",
1495
- type: "Table",
1496
- options: {},
1497
- },
1498
- ],
1499
- appearance: {
1500
- isBordered: false,
1501
- hasBackground: false,
1502
- },
948
+ properties: [{ id: "table", name: "Table", type: "Table", options: {} }],
949
+ appearance: { isBordered: true, hasBackground: false },
1503
950
  variants: [
1504
951
  {
1505
952
  id: "default",
1506
953
  name: "Default",
1507
- layout: {
1508
- type: "Column",
1509
- children: ["table"],
1510
- columnAlign: "Start",
1511
- columnResizing: "Fill",
1512
- gap: "Medium",
1513
- },
954
+ layout: { type: "Column", children: ["table"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1514
955
  maxColumns: 1,
1515
956
  defaultColumns: 1,
1516
- appearance: {
1517
- isBordered: false,
1518
- hasBackground: false,
1519
- isEditorPresentationDifferent: false,
1520
- },
957
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1521
958
  },
1522
959
  ],
1523
960
  defaultVariantKey: "default",
1524
961
  },
1525
- behavior: {
1526
- dataType: "Item",
1527
- items: {
1528
- numberOfItems: 1,
1529
- allowLinks: false,
1530
- },
1531
- },
962
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1532
963
  editorOptions: {
1533
964
  onboarding: {
1534
965
  helpText: "Use for displaying data in a tabular format.",
1535
966
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/layout/table-R8KGnxej",
1536
967
  },
1537
968
  },
1538
- appearance: {
1539
- isBordered: false,
1540
- hasBackground: false,
1541
- },
969
+ appearance: { isBordered: true, hasBackground: false },
1542
970
  },
1543
971
  {
1544
- id: "io.supernova.block.token-detail",
1545
- name: "Token detail",
1546
- description: "Show a single design tokens",
972
+ id: "io.supernova.block.design-tokens",
973
+ name: "Design tokens",
974
+ description: "A list of design tokens",
1547
975
  category: "Tokens",
1548
- icon: "https://cdn-assets.supernova.io/blocks/icons/token-detail.svg",
1549
- searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
976
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/design-tokens.svg",
977
+ searchKeywords: [
978
+ "tokens",
979
+ "color",
980
+ "typography",
981
+ "spacing",
982
+ "grid",
983
+ "material",
984
+ "theme",
985
+ "token list",
986
+ "token group",
987
+ ],
1550
988
  item: {
1551
989
  properties: [
1552
990
  {
1553
991
  id: "tokens",
1554
992
  name: "Tokens",
1555
993
  type: "Token",
1556
- options: {
1557
- renderLayoutAs: "List",
1558
- defaultTheme: "none",
1559
- defaultValuePreview: "Split",
1560
- },
994
+ options: { renderLayoutAs: "List", defaultTheme: "none", defaultValuePreview: "Split" },
995
+ variantOptions: { grid: { renderLayoutAs: "Grid" } },
1561
996
  },
1562
997
  ],
1563
- appearance: {
1564
- isBordered: false,
1565
- hasBackground: false,
1566
- },
998
+ appearance: { isBordered: true, hasBackground: false },
1567
999
  variants: [
1568
1000
  {
1569
1001
  id: "table",
1570
- name: "Table row",
1002
+ name: "Table",
1571
1003
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
1572
- layout: {
1573
- type: "Column",
1574
- children: ["tokens"],
1575
- columnAlign: "Start",
1576
- columnResizing: "Fill",
1577
- gap: "Medium",
1578
- },
1004
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1579
1005
  maxColumns: 1,
1580
1006
  defaultColumns: 1,
1581
- appearance: {
1582
- isBordered: false,
1583
- hasBackground: false,
1584
- isEditorPresentationDifferent: false,
1585
- },
1007
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1586
1008
  },
1587
1009
  {
1588
1010
  id: "grid",
1589
- name: "Grid item",
1011
+ name: "Grid",
1590
1012
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
1591
- layout: {
1592
- type: "Column",
1593
- children: ["tokens"],
1594
- columnAlign: "Start",
1595
- columnResizing: "Fill",
1596
- gap: "Medium",
1597
- },
1598
- maxColumns: 1,
1599
- defaultColumns: 1,
1600
- appearance: {
1601
- isBordered: false,
1602
- hasBackground: false,
1603
- isEditorPresentationDifferent: false,
1604
- },
1605
- },
1606
- {
1607
- id: "color-stack",
1608
- name: "Color stack item",
1609
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
1610
- layout: {
1611
- type: "Column",
1612
- children: ["tokens"],
1613
- columnAlign: "Start",
1614
- columnResizing: "Fill",
1615
- gap: "Medium",
1616
- },
1617
- maxColumns: 1,
1013
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1014
+ maxColumns: 4,
1618
1015
  defaultColumns: 1,
1619
- appearance: {
1620
- isBordered: false,
1621
- hasBackground: false,
1622
- isEditorPresentationDifferent: false,
1623
- },
1016
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1624
1017
  },
1625
1018
  ],
1626
1019
  defaultVariantKey: "table",
1627
1020
  },
1628
- behavior: {
1629
- dataType: "Token",
1630
- entities: {
1631
- selectionType: "Entity",
1632
- maxSelected: 1,
1633
- },
1634
- },
1021
+ behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1635
1022
  editorOptions: {
1636
1023
  onboarding: {
1637
- helpText: "Show a single design token.",
1024
+ helpText: "Show a group of design tokens. Automatically display all subgroups too.",
1638
1025
  documentationLink:
1639
- "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-detail-04",
1026
+ "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09",
1640
1027
  },
1641
1028
  },
1642
- appearance: {
1643
- isBordered: false,
1644
- hasBackground: false,
1645
- },
1029
+ appearance: { isBordered: true, hasBackground: false },
1646
1030
  },
1647
1031
  {
1648
- id: "io.supernova.block.token-list",
1649
- name: "Token list",
1650
- description: "Show a list of design tokens",
1032
+ id: "io.supernova.block.token-color-ramps",
1033
+ name: "Color ramps",
1034
+ description: "The best way to display colors",
1651
1035
  category: "Tokens",
1652
1036
  icon: "https://cdn-assets.supernova.io/blocks/icons/token-list.svg",
1653
- searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
1037
+ searchKeywords: ["tokens", "ramp", "shades", "palette", "spectrum", "stack", "range", "swatch"],
1654
1038
  item: {
1655
1039
  properties: [
1656
1040
  {
1657
1041
  id: "tokens",
1658
1042
  name: "Tokens",
1659
1043
  type: "Token",
1660
- options: {
1661
- renderLayoutAs: "List",
1662
- defaultTheme: "none",
1663
- defaultValuePreview: "Split",
1664
- },
1665
- variantOptions: {
1666
- grid: {
1667
- renderLayoutAs: "Grid",
1668
- },
1669
- },
1044
+ options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: true },
1670
1045
  },
1671
1046
  ],
1672
- appearance: {
1673
- isBordered: false,
1674
- hasBackground: false,
1675
- },
1047
+ appearance: { isBordered: true, hasBackground: false },
1676
1048
  variants: [
1677
1049
  {
1678
- id: "table",
1679
- name: "Table",
1680
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
1681
- layout: {
1682
- type: "Column",
1683
- children: ["tokens"],
1684
- columnAlign: "Start",
1685
- columnResizing: "Fill",
1686
- gap: "Medium",
1687
- },
1688
- maxColumns: 1,
1689
- defaultColumns: 1,
1690
- appearance: {
1691
- isBordered: false,
1692
- hasBackground: false,
1693
- isEditorPresentationDifferent: false,
1694
- },
1695
- },
1696
- {
1697
- id: "grid",
1698
- name: "Grid",
1699
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
1700
- layout: {
1701
- type: "Column",
1702
- children: ["tokens"],
1703
- columnAlign: "Start",
1704
- columnResizing: "Fill",
1705
- gap: "Medium",
1706
- },
1707
- maxColumns: 4,
1708
- defaultColumns: 1,
1709
- appearance: {
1710
- isBordered: false,
1711
- hasBackground: false,
1712
- isEditorPresentationDifferent: false,
1713
- },
1714
- },
1715
- {
1716
- id: "color-stack",
1717
- name: "Color stack",
1050
+ id: "default",
1051
+ name: "Default",
1718
1052
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
1719
- layout: {
1720
- type: "Column",
1721
- children: ["tokens"],
1722
- columnAlign: "Start",
1723
- columnResizing: "Fill",
1724
- gap: "Medium",
1725
- },
1726
- maxColumns: 1,
1053
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1054
+ maxColumns: 2,
1727
1055
  defaultColumns: 1,
1728
- appearance: {
1729
- isBordered: false,
1730
- hasBackground: false,
1731
- isEditorPresentationDifferent: false,
1732
- },
1056
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
1733
1057
  },
1734
1058
  ],
1735
- defaultVariantKey: "table",
1736
- },
1737
- behavior: {
1738
- dataType: "Token",
1739
- entities: {
1740
- selectionType: "Entity",
1741
- maxSelected: 0,
1742
- },
1059
+ defaultVariantKey: "default",
1743
1060
  },
1061
+ behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1744
1062
  editorOptions: {
1745
- onboarding: {
1746
- helpText:
1747
- "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.",
1748
- documentationLink:
1749
- "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-list-06",
1750
- },
1751
- },
1752
- appearance: {
1753
- isBordered: false,
1754
- hasBackground: false,
1063
+ onboarding: { helpText: "The best way to display colors", documentationLink: "https://learn.supernova.io" },
1755
1064
  },
1065
+ appearance: { isBordered: true, hasBackground: false },
1756
1066
  },
1757
1067
  {
1758
- id: "io.supernova.block.token-group",
1759
- name: "Token group",
1760
- description: "Show a group of design tokens",
1068
+ id: "io.supernova.block.color-accessibility-grid",
1069
+ name: "Accessibility color grid",
1070
+ description: "Visualize accessibility of your color tokens",
1761
1071
  category: "Tokens",
1762
- icon: "https://cdn-assets.supernova.io/blocks/icons/token-list.svg",
1763
- searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
1072
+ icon: "https://cdn-assets.supernova.io/blocks/icons/token-accessibility-grid.svg",
1073
+ searchKeywords: ["tokens", "color", "accessibility", "grid", "contrast"],
1764
1074
  item: {
1765
1075
  properties: [
1766
1076
  {
1767
1077
  id: "tokens",
1768
1078
  name: "Tokens",
1769
1079
  type: "Token",
1770
- options: {
1771
- renderLayoutAs: "List",
1772
- defaultTheme: "none",
1773
- defaultValuePreview: "Split",
1774
- },
1775
- variantOptions: {
1776
- grid: {
1777
- renderLayoutAs: "Grid",
1778
- },
1779
- },
1080
+ options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: false },
1780
1081
  },
1781
1082
  ],
1782
- appearance: {
1783
- isBordered: false,
1784
- hasBackground: false,
1785
- },
1083
+ appearance: { isBordered: true, hasBackground: false },
1786
1084
  variants: [
1787
1085
  {
1788
- id: "table",
1789
- name: "Table",
1790
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
1791
- layout: {
1792
- type: "Column",
1793
- children: ["tokens"],
1794
- columnAlign: "Start",
1795
- columnResizing: "Fill",
1796
- gap: "Medium",
1797
- },
1086
+ id: "default",
1087
+ name: "Default",
1088
+ image: "https://cdn-assets.supernova.io/blocks/variants/contrast-grid-large.svg",
1089
+ description:
1090
+ "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
1091
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1798
1092
  maxColumns: 1,
1799
1093
  defaultColumns: 1,
1800
- appearance: {
1801
- isBordered: false,
1802
- hasBackground: false,
1803
- isEditorPresentationDifferent: false,
1804
- },
1805
- },
1806
- {
1807
- id: "grid",
1808
- name: "Grid",
1809
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
1810
- layout: {
1811
- type: "Column",
1812
- children: ["tokens"],
1813
- columnAlign: "Start",
1814
- columnResizing: "Fill",
1815
- gap: "Medium",
1816
- },
1817
- maxColumns: 4,
1818
- defaultColumns: 1,
1819
- appearance: {
1820
- isBordered: false,
1821
- hasBackground: false,
1822
- isEditorPresentationDifferent: false,
1823
- },
1824
- },
1825
- {
1826
- id: "color-stack",
1827
- name: "Color stack",
1828
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
1829
- layout: {
1830
- type: "Column",
1831
- children: ["tokens"],
1832
- columnAlign: "Start",
1833
- columnResizing: "Fill",
1834
- gap: "Medium",
1835
- },
1836
- maxColumns: 2,
1837
- defaultColumns: 1,
1838
- appearance: {
1839
- isBordered: false,
1840
- hasBackground: false,
1841
- isEditorPresentationDifferent: false,
1842
- },
1094
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
1843
1095
  },
1844
1096
  ],
1845
- defaultVariantKey: "table",
1846
- },
1847
- behavior: {
1848
- dataType: "Token",
1849
- entities: {
1850
- selectionType: "Group",
1851
- maxSelected: 1,
1852
- },
1097
+ defaultVariantKey: "default",
1853
1098
  },
1099
+ behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1854
1100
  editorOptions: {
1855
1101
  onboarding: {
1856
- helpText: "Show a group of design tokens. Automatically display all subgroups too.",
1857
- documentationLink:
1858
- "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09",
1102
+ helpText: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
1103
+ documentationLink: "https://learn.supernova.io",
1859
1104
  },
1860
1105
  },
1861
- appearance: {
1862
- isBordered: false,
1863
- hasBackground: false,
1864
- },
1106
+ appearance: { isBordered: true, hasBackground: false },
1865
1107
  },
1866
1108
  {
1867
1109
  id: "io.supernova.block.code",
@@ -1871,181 +1113,91 @@ const blocks: PageBlockDefinition[] = [
1871
1113
  icon: "https://cdn-assets.supernova.io/blocks/icons/code.svg",
1872
1114
  searchKeywords: ["code"],
1873
1115
  item: {
1874
- properties: [
1875
- {
1876
- id: "code",
1877
- name: "Code",
1878
- type: "Code",
1879
- options: {},
1880
- },
1881
- ],
1882
- appearance: {
1883
- isBordered: false,
1884
- hasBackground: false,
1885
- },
1116
+ properties: [{ id: "code", name: "Code", type: "Code", options: {} }],
1117
+ appearance: { isBordered: true, hasBackground: false },
1886
1118
  variants: [
1887
1119
  {
1888
1120
  id: "default",
1889
1121
  name: "Default",
1890
- layout: {
1891
- type: "Column",
1892
- children: ["code"],
1893
- columnAlign: "Start",
1894
- columnResizing: "Fill",
1895
- gap: "Medium",
1896
- },
1122
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1897
1123
  maxColumns: 1,
1898
1124
  defaultColumns: 1,
1899
- appearance: {
1900
- isBordered: false,
1901
- hasBackground: false,
1902
- isEditorPresentationDifferent: false,
1903
- },
1125
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1904
1126
  },
1905
1127
  ],
1906
1128
  defaultVariantKey: "default",
1907
1129
  },
1908
- behavior: {
1909
- dataType: "Item",
1910
- items: {
1911
- numberOfItems: 1,
1912
- allowLinks: false,
1913
- },
1914
- },
1915
- editorOptions: {
1916
- onboarding: {
1917
- helpText: "Code descriptor.",
1918
- },
1919
- },
1920
- appearance: {
1921
- isBordered: false,
1922
- hasBackground: false,
1923
- },
1130
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1131
+ editorOptions: { onboarding: { helpText: "Code descriptor." } },
1132
+ appearance: { isBordered: true, hasBackground: false },
1924
1133
  },
1925
1134
  {
1926
1135
  id: "io.supernova.block.code-react",
1927
1136
  name: "React code",
1928
- description: "Render React code",
1137
+ description: "Render a code snippet",
1929
1138
  category: "Code",
1930
- icon: "https://cdn-assets.supernova.io/blocks/icons/code-react.svg",
1931
- searchKeywords: ["code", "react", "snippet", "storybook", "editor", "example"],
1139
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/code-react.svg",
1140
+ searchKeywords: ["code", "react", "snippet", "storybook", "editor", "example", "sandbox"],
1932
1141
  item: {
1933
1142
  properties: [
1934
1143
  {
1935
1144
  id: "code",
1936
1145
  name: "Code",
1937
1146
  type: "CodeSandbox",
1938
- options: {
1939
- renderLayoutAs: "PreviewOnTop",
1940
- },
1147
+ options: { renderLayoutAs: "PreviewOnTop" },
1941
1148
  variantOptions: {
1942
- codeTop: {
1943
- renderLayoutAs: "PreviewOnBottom",
1944
- },
1945
- codeLeft: {
1946
- renderLayoutAs: "PreviewOnRight",
1947
- },
1948
- codeRight: {
1949
- renderLayoutAs: "PreviewOnLeft",
1950
- },
1149
+ codeTop: { renderLayoutAs: "PreviewOnBottom" },
1150
+ codeLeft: { renderLayoutAs: "PreviewOnRight" },
1151
+ codeRight: { renderLayoutAs: "PreviewOnLeft" },
1951
1152
  },
1952
1153
  },
1953
1154
  ],
1954
- appearance: {
1955
- isBordered: false,
1956
- hasBackground: false,
1957
- },
1155
+ appearance: { isBordered: true, hasBackground: false },
1958
1156
  variants: [
1959
1157
  {
1960
1158
  id: "codeBottom",
1961
1159
  name: "Full width, code bottom",
1962
1160
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-bottom.svg",
1963
1161
  description: "Full-width block of code, with a preview on top.",
1964
- layout: {
1965
- type: "Column",
1966
- children: ["code"],
1967
- columnAlign: "Start",
1968
- columnResizing: "Fill",
1969
- gap: "Medium",
1970
- },
1162
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1971
1163
  maxColumns: 1,
1972
1164
  defaultColumns: 1,
1973
- appearance: {
1974
- isBordered: false,
1975
- hasBackground: false,
1976
- isEditorPresentationDifferent: false,
1977
- },
1165
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1978
1166
  },
1979
1167
  {
1980
1168
  id: "codeTop",
1981
1169
  name: "Full width, code top",
1982
1170
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-top.svg",
1983
1171
  description: "Full-width block of code, with a preview on bottom.",
1984
- layout: {
1985
- type: "Column",
1986
- children: ["code"],
1987
- columnAlign: "Start",
1988
- columnResizing: "Fill",
1989
- gap: "Medium",
1990
- },
1172
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1991
1173
  maxColumns: 1,
1992
1174
  defaultColumns: 1,
1993
- appearance: {
1994
- isBordered: false,
1995
- hasBackground: false,
1996
- isEditorPresentationDifferent: false,
1997
- },
1175
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
1998
1176
  },
1999
1177
  {
2000
1178
  id: "codeLeft",
2001
1179
  name: "Side by side, code left",
2002
1180
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-left.svg",
2003
1181
  description: "Side-by-side preview and code, with code on the left.",
2004
- layout: {
2005
- type: "Column",
2006
- children: ["code"],
2007
- columnAlign: "Start",
2008
- columnResizing: "Fill",
2009
- gap: "Medium",
2010
- },
1182
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
2011
1183
  maxColumns: 1,
2012
1184
  defaultColumns: 1,
2013
- appearance: {
2014
- isBordered: false,
2015
- hasBackground: false,
2016
- isEditorPresentationDifferent: false,
2017
- },
1185
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
2018
1186
  },
2019
1187
  {
2020
1188
  id: "codeRight",
2021
1189
  name: "Side by side, code right",
2022
1190
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-right.svg",
2023
1191
  description: "Side-by-side preview and code, with code on the right.",
2024
- layout: {
2025
- type: "Column",
2026
- children: ["code"],
2027
- columnAlign: "Start",
2028
- columnResizing: "Fill",
2029
- gap: "Medium",
2030
- },
1192
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
2031
1193
  maxColumns: 1,
2032
1194
  defaultColumns: 1,
2033
- appearance: {
2034
- isBordered: false,
2035
- hasBackground: false,
2036
- isEditorPresentationDifferent: false,
2037
- },
1195
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
2038
1196
  },
2039
1197
  ],
2040
1198
  defaultVariantKey: "codeBottom",
2041
1199
  },
2042
- behavior: {
2043
- dataType: "Item",
2044
- items: {
2045
- numberOfItems: 1,
2046
- allowLinks: false,
2047
- },
2048
- },
1200
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
2049
1201
  editorOptions: {
2050
1202
  onboarding: {
2051
1203
  helpText: "Display rendered code example",
@@ -2053,160 +1205,53 @@ const blocks: PageBlockDefinition[] = [
2053
1205
  "https://learn.supernova.io/latest/documentation/types-of-blocks/code/render-react-code-vxufnkFm",
2054
1206
  },
2055
1207
  },
2056
- appearance: {
2057
- isBordered: false,
2058
- hasBackground: false,
2059
- },
2060
- },
2061
- {
2062
- id: "io.supernova.block.link",
2063
- name: "Link",
2064
- description: "Preview of a link",
2065
- category: "Media",
2066
- icon: "https://cdn-assets.supernova.io/blocks/icons/shortcut-link.svg",
2067
- searchKeywords: [],
2068
- item: {
2069
- properties: [
2070
- {
2071
- id: "block.links.property.url",
2072
- name: "URL",
2073
- type: "EmbedURL",
2074
- options: {
2075
- defaultHeight: 120,
2076
- allowResize: false,
2077
- },
2078
- },
2079
- ],
2080
- appearance: {
2081
- isBordered: false,
2082
- hasBackground: false,
2083
- },
2084
- variants: [
2085
- {
2086
- id: "default",
2087
- name: "Default",
2088
- layout: {
2089
- type: "Column",
2090
- children: ["block.links.property.url"],
2091
- columnAlign: "Start",
2092
- columnResizing: "Fill",
2093
- gap: "Medium",
2094
- },
2095
- maxColumns: 1,
2096
- defaultColumns: 1,
2097
- appearance: {
2098
- isBordered: false,
2099
- hasBackground: false,
2100
- isEditorPresentationDifferent: false,
2101
- },
2102
- },
2103
- ],
2104
- defaultVariantKey: "default",
2105
- },
2106
- behavior: {
2107
- dataType: "Item",
2108
- items: {
2109
- numberOfItems: 1,
2110
- allowLinks: false,
2111
- },
2112
- },
2113
- editorOptions: {},
2114
- appearance: {
2115
- isBordered: false,
2116
- hasBackground: false,
2117
- },
1208
+ appearance: { isBordered: false, hasBackground: false },
2118
1209
  },
2119
1210
  {
2120
1211
  id: "io.supernova.block.assets",
2121
1212
  name: "Assets",
2122
1213
  description: "Display icons or illustrations",
2123
1214
  category: "Assets",
2124
- icon: "https://cdn-assets.supernova.io/blocks/icons/assets.svg",
2125
- searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "theme"],
1215
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
1216
+ searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
2126
1217
  item: {
2127
- properties: [
2128
- {
2129
- id: "assets",
2130
- name: "Assets",
2131
- type: "Asset",
2132
- options: {},
2133
- },
2134
- ],
2135
- appearance: {
2136
- isBordered: false,
2137
- hasBackground: false,
2138
- },
1218
+ properties: [{ id: "assets", name: "Assets", type: "Asset", options: {} }],
1219
+ appearance: { isBordered: true, hasBackground: false },
2139
1220
  variants: [
2140
1221
  {
2141
1222
  id: "default",
2142
1223
  name: "Simple grid",
2143
1224
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
2144
1225
  description: "A simple grid of assets. Both the title and description are displayed below the preview.",
2145
- layout: {
2146
- type: "Column",
2147
- children: ["assets"],
2148
- columnAlign: "Start",
2149
- columnResizing: "Fill",
2150
- gap: "Medium",
2151
- },
2152
- maxColumns: 1,
1226
+ layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1227
+ maxColumns: 8,
2153
1228
  defaultColumns: 1,
2154
- appearance: {
2155
- isBordered: false,
2156
- hasBackground: false,
2157
- isEditorPresentationDifferent: false,
2158
- },
1229
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
2159
1230
  },
2160
1231
  {
2161
1232
  id: "square-grid",
2162
1233
  name: "Square grid",
2163
1234
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
2164
1235
  description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
2165
- layout: {
2166
- type: "Column",
2167
- children: ["assets"],
2168
- columnAlign: "Start",
2169
- columnResizing: "Fill",
2170
- gap: "Medium",
2171
- },
2172
- maxColumns: 1,
1236
+ layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1237
+ maxColumns: 8,
2173
1238
  defaultColumns: 1,
2174
- appearance: {
2175
- isBordered: false,
2176
- hasBackground: false,
2177
- isEditorPresentationDifferent: false,
2178
- },
1239
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
2179
1240
  },
2180
1241
  {
2181
1242
  id: "borderless-grid",
2182
1243
  name: "Borderless grid",
2183
1244
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
2184
1245
  description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
2185
- layout: {
2186
- type: "Column",
2187
- children: ["assets"],
2188
- columnAlign: "Start",
2189
- columnResizing: "Fill",
2190
- gap: "Medium",
2191
- },
2192
- maxColumns: 1,
1246
+ layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1247
+ maxColumns: 8,
2193
1248
  defaultColumns: 1,
2194
- appearance: {
2195
- isBordered: false,
2196
- hasBackground: false,
2197
- isEditorPresentationDifferent: false,
2198
- },
1249
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
2199
1250
  },
2200
1251
  ],
2201
1252
  defaultVariantKey: "default",
2202
1253
  },
2203
- behavior: {
2204
- dataType: "Asset",
2205
- entities: {
2206
- selectionType: "EntityAndGroup",
2207
- maxSelected: 0,
2208
- },
2209
- },
1254
+ behavior: { dataType: "Asset", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
2210
1255
  editorOptions: {
2211
1256
  onboarding: {
2212
1257
  helpText: "Display a grid of icons or illustrations.",
@@ -2214,17 +1259,14 @@ const blocks: PageBlockDefinition[] = [
2214
1259
  "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/asset/general-xa6EgXb2",
2215
1260
  },
2216
1261
  },
2217
- appearance: {
2218
- isBordered: false,
2219
- hasBackground: false,
2220
- },
1262
+ appearance: { isBordered: true, hasBackground: false },
2221
1263
  },
2222
1264
  {
2223
1265
  id: "io.supernova.block.figma-frames",
2224
1266
  name: "Figma frames",
2225
1267
  description: "Display Figma frames as images",
2226
1268
  category: "Figma",
2227
- icon: "https://cdn-assets.supernova.io/blocks/icons/figma-frames.svg",
1269
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/figma-frames.svg",
2228
1270
  searchKeywords: ["figma", "frames", "image"],
2229
1271
  item: {
2230
1272
  properties: [
@@ -2235,10 +1277,7 @@ const blocks: PageBlockDefinition[] = [
2235
1277
  options: {},
2236
1278
  },
2237
1279
  ],
2238
- appearance: {
2239
- isBordered: false,
2240
- hasBackground: false,
2241
- },
1280
+ appearance: { isBordered: true, hasBackground: false },
2242
1281
  variants: [
2243
1282
  {
2244
1283
  id: "bordered",
@@ -2254,11 +1293,7 @@ const blocks: PageBlockDefinition[] = [
2254
1293
  },
2255
1294
  maxColumns: 1,
2256
1295
  defaultColumns: 1,
2257
- appearance: {
2258
- isBordered: false,
2259
- hasBackground: false,
2260
- isEditorPresentationDifferent: false,
2261
- },
1296
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
2262
1297
  },
2263
1298
  {
2264
1299
  id: "plain",
@@ -2274,22 +1309,12 @@ const blocks: PageBlockDefinition[] = [
2274
1309
  },
2275
1310
  maxColumns: 1,
2276
1311
  defaultColumns: 1,
2277
- appearance: {
2278
- isBordered: false,
2279
- hasBackground: false,
2280
- isEditorPresentationDifferent: false,
2281
- },
1312
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
2282
1313
  },
2283
1314
  ],
2284
1315
  defaultVariantKey: "bordered",
2285
1316
  },
2286
- behavior: {
2287
- dataType: "FigmaNode",
2288
- entities: {
2289
- selectionType: "Entity",
2290
- maxSelected: 0,
2291
- },
2292
- },
1317
+ behavior: { dataType: "FigmaNode", entities: { selectionType: "Entity", maxSelected: 0 } },
2293
1318
  editorOptions: {
2294
1319
  onboarding: {
2295
1320
  helpText: "Display Figma frames as images.",
@@ -2297,10 +1322,7 @@ const blocks: PageBlockDefinition[] = [
2297
1322
  "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/figma-frames/general-f3IYC5dg",
2298
1323
  },
2299
1324
  },
2300
- appearance: {
2301
- isBordered: false,
2302
- hasBackground: false,
2303
- },
1325
+ appearance: { isBordered: true, hasBackground: false },
2304
1326
  },
2305
1327
  {
2306
1328
  id: "io.supernova.block.release-notes",
@@ -2311,54 +1333,32 @@ const blocks: PageBlockDefinition[] = [
2311
1333
  searchKeywords: ["version", "changelog", "history"],
2312
1334
  item: {
2313
1335
  properties: [],
2314
- appearance: {
2315
- isBordered: false,
2316
- hasBackground: false,
2317
- },
1336
+ appearance: { isBordered: true, hasBackground: false },
2318
1337
  variants: [
2319
1338
  {
2320
1339
  id: "default",
2321
1340
  name: "Default",
2322
1341
  image: "https://cdn-assets.supernova.io/blocks/variants/release-notes.svg",
2323
- layout: {
2324
- type: "Column",
2325
- children: [],
2326
- columnAlign: "Start",
2327
- columnResizing: "Fill",
2328
- gap: "Medium",
2329
- },
1342
+ layout: { type: "Column", children: [], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
2330
1343
  maxColumns: 1,
2331
1344
  defaultColumns: 1,
2332
- appearance: {
2333
- isBordered: false,
2334
- hasBackground: false,
2335
- isEditorPresentationDifferent: true,
2336
- },
1345
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
2337
1346
  },
2338
1347
  ],
2339
1348
  defaultVariantKey: "default",
2340
1349
  },
2341
- behavior: {
2342
- dataType: "Item",
2343
- items: {
2344
- numberOfItems: 1,
2345
- allowLinks: false,
2346
- },
2347
- },
1350
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
2348
1351
  editorOptions: {
2349
1352
  onboarding: {
2350
- helpText: "Show formatted release notes from all previous released versions",
1353
+ helpText: "Show formatted release notes from all previous released versions.",
2351
1354
  },
2352
1355
  },
2353
- appearance: {
2354
- isBordered: false,
2355
- hasBackground: false,
2356
- },
1356
+ appearance: { isBordered: true, hasBackground: false },
2357
1357
  },
2358
1358
  {
2359
1359
  id: "io.supernova.block.component-checklist",
2360
1360
  name: "Component checklist",
2361
- description: "Highlight specific features of your components",
1361
+ description: "Highlight specific component properties",
2362
1362
  category: "Components",
2363
1363
  icon: "https://cdn-assets.supernova.io/blocks/icons/component-checklist.svg",
2364
1364
  searchKeywords: ["components", "health", "properties", "overview", "status"],
@@ -2368,31 +1368,22 @@ const blocks: PageBlockDefinition[] = [
2368
1368
  id: "components",
2369
1369
  name: "Components",
2370
1370
  type: "Component",
2371
- options: {
2372
- renderLayoutAs: "List",
2373
- },
2374
- },
2375
- {
2376
- id: "showDescription",
2377
- name: "Show description",
2378
- type: "Boolean",
2379
- options: {
2380
- defaultValue: true,
2381
- },
1371
+ options: { renderLayoutAs: "List" },
2382
1372
  },
2383
1373
  {
2384
1374
  id: "title",
2385
1375
  name: "Title",
2386
1376
  type: "Text",
2387
- options: {
2388
- defaultValue: "Component checklist",
2389
- },
1377
+ options: { defaultValue: "Component checklist" },
1378
+ },
1379
+ {
1380
+ id: "showDescription",
1381
+ name: "Show description",
1382
+ type: "Boolean",
1383
+ options: { defaultValue: true },
2390
1384
  },
2391
1385
  ],
2392
- appearance: {
2393
- isBordered: false,
2394
- hasBackground: false,
2395
- },
1386
+ appearance: { isBordered: true, hasBackground: false },
2396
1387
  variants: [
2397
1388
  {
2398
1389
  id: "default",
@@ -2400,71 +1391,51 @@ const blocks: PageBlockDefinition[] = [
2400
1391
  image: "https://cdn-assets.supernova.io/blocks/variants/component-checklist.svg",
2401
1392
  layout: {
2402
1393
  type: "Column",
2403
- children: ["components", "showDescription", "title"],
1394
+ children: ["components", "showDescription"],
2404
1395
  columnAlign: "Start",
2405
1396
  columnResizing: "Fill",
2406
1397
  gap: "Medium",
2407
1398
  },
2408
1399
  maxColumns: 1,
2409
1400
  defaultColumns: 1,
2410
- appearance: {
2411
- isBordered: false,
2412
- hasBackground: false,
2413
- isEditorPresentationDifferent: true,
2414
- },
1401
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
2415
1402
  },
2416
1403
  ],
2417
1404
  defaultVariantKey: "default",
2418
1405
  },
2419
- behavior: {
2420
- dataType: "Component",
2421
- entities: {
2422
- selectionType: "Entity",
2423
- maxSelected: 1,
2424
- },
2425
- },
1406
+ behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
2426
1407
  editorOptions: {
2427
1408
  onboarding: {
2428
- helpText: "Highlight specific features of your components.",
1409
+ helpText: "Highlight specific component properties",
2429
1410
  documentationLink:
2430
1411
  "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-checklist-NXepPIpZ",
2431
1412
  },
2432
1413
  },
2433
- appearance: {
2434
- isBordered: false,
2435
- hasBackground: false,
2436
- },
1414
+ appearance: { isBordered: true, hasBackground: false },
2437
1415
  },
2438
1416
  {
2439
1417
  id: "io.supernova.block.component-checklist-all",
2440
1418
  name: "Component overview table",
2441
- description: "Show the overview of all your components",
1419
+ description: "Show an overview of all components",
2442
1420
  category: "Components",
2443
- icon: "https://cdn-assets.supernova.io/blocks/icons/component-overview-table.svg",
2444
- searchKeywords: ["components", "health", "properties", "overview", "status"],
1421
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/component-checklist-all.svg",
1422
+ searchKeywords: ["components", "health", "overview", "status"],
2445
1423
  item: {
2446
1424
  properties: [
2447
1425
  {
2448
1426
  id: "components",
2449
1427
  name: "Components",
2450
1428
  type: "Component",
2451
- options: {
2452
- renderLayoutAs: "Table",
2453
- },
1429
+ options: { renderLayoutAs: "Table" },
2454
1430
  },
2455
1431
  {
2456
1432
  id: "showLastUpdatedColumn",
2457
1433
  name: "Show last updated column",
2458
1434
  type: "Boolean",
2459
- options: {
2460
- defaultValue: true,
2461
- },
1435
+ options: { defaultValue: true },
2462
1436
  },
2463
1437
  ],
2464
- appearance: {
2465
- isBordered: false,
2466
- hasBackground: false,
2467
- },
1438
+ appearance: { isBordered: true, hasBackground: false },
2468
1439
  variants: [
2469
1440
  {
2470
1441
  id: "default",
@@ -2479,40 +1450,27 @@ const blocks: PageBlockDefinition[] = [
2479
1450
  },
2480
1451
  maxColumns: 1,
2481
1452
  defaultColumns: 1,
2482
- appearance: {
2483
- isBordered: false,
2484
- hasBackground: false,
2485
- isEditorPresentationDifferent: true,
2486
- },
1453
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
2487
1454
  },
2488
1455
  ],
2489
1456
  defaultVariantKey: "default",
2490
1457
  },
2491
- behavior: {
2492
- dataType: "Component",
2493
- entities: {
2494
- selectionType: "Group",
2495
- maxSelected: 1,
2496
- },
2497
- },
1458
+ behavior: { dataType: "Component", entities: { selectionType: "Group", maxSelected: 1 } },
2498
1459
  editorOptions: {
2499
1460
  onboarding: {
2500
- helpText: "Show the overview of all your components",
1461
+ helpText: "Show an overview of all your components",
2501
1462
  documentationLink:
2502
1463
  "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-overview-table-W8eOtJ5t",
2503
1464
  },
2504
1465
  },
2505
- appearance: {
2506
- isBordered: false,
2507
- hasBackground: false,
2508
- },
1466
+ appearance: { isBordered: true, hasBackground: false },
2509
1467
  },
2510
1468
  {
2511
1469
  id: "io.supernova.block.component-health",
2512
1470
  name: "Component health",
2513
- description: "Show component health and additional attributes",
1471
+ description: "Show component health and other attributes",
2514
1472
  category: "Components",
2515
- icon: "https://cdn-assets.supernova.io/blocks/icons/component-health.svg",
1473
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/component-health.svg",
2516
1474
  searchKeywords: ["components", "health", "properties", "overview", "status"],
2517
1475
  item: {
2518
1476
  properties: [
@@ -2520,15 +1478,10 @@ const blocks: PageBlockDefinition[] = [
2520
1478
  id: "components",
2521
1479
  name: "Components",
2522
1480
  type: "Component",
2523
- options: {
2524
- renderLayoutAs: "List",
2525
- },
1481
+ options: { renderLayoutAs: "List" },
2526
1482
  },
2527
1483
  ],
2528
- appearance: {
2529
- isBordered: false,
2530
- hasBackground: false,
2531
- },
1484
+ appearance: { isBordered: true, hasBackground: false },
2532
1485
  variants: [
2533
1486
  {
2534
1487
  id: "default",
@@ -2543,22 +1496,12 @@ const blocks: PageBlockDefinition[] = [
2543
1496
  },
2544
1497
  maxColumns: 1,
2545
1498
  defaultColumns: 1,
2546
- appearance: {
2547
- isBordered: false,
2548
- hasBackground: false,
2549
- isEditorPresentationDifferent: true,
2550
- },
1499
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true },
2551
1500
  },
2552
1501
  ],
2553
1502
  defaultVariantKey: "default",
2554
1503
  },
2555
- behavior: {
2556
- dataType: "Component",
2557
- entities: {
2558
- selectionType: "Entity",
2559
- maxSelected: 1,
2560
- },
2561
- },
1504
+ behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
2562
1505
  editorOptions: {
2563
1506
  onboarding: {
2564
1507
  helpText: "Show component health and additional attributes",
@@ -2566,9 +1509,6 @@ const blocks: PageBlockDefinition[] = [
2566
1509
  "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-health-sezSxEED",
2567
1510
  },
2568
1511
  },
2569
- appearance: {
2570
- isBordered: false,
2571
- hasBackground: false,
2572
- },
1512
+ appearance: { isBordered: true, hasBackground: false },
2573
1513
  },
2574
1514
  ];