@supernova-studio/client 0.47.58 → 0.47.60

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.
@@ -28,23 +28,42 @@ const blocks: PageBlockDefinition[] = [
28
28
  id: "text",
29
29
  name: "Text",
30
30
  type: "RichText",
31
- options: { richTextStyle: "Default" },
31
+ options: {
32
+ richTextStyle: "Default",
33
+ },
32
34
  },
33
35
  ],
34
- appearance: { isBordered: true, hasBackground: false },
36
+ appearance: {
37
+ isBordered: true,
38
+ hasBackground: false,
39
+ },
35
40
  variants: [
36
41
  {
37
42
  id: "default",
38
43
  name: "Default",
39
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
44
+ layout: {
45
+ type: "Column",
46
+ children: ["text"],
47
+ columnAlign: "Start",
48
+ columnResizing: "Fill",
49
+ gap: "Medium",
50
+ },
40
51
  maxColumns: 1,
41
52
  defaultColumns: 1,
42
- appearance: { isEditorPresentationDifferent: false },
53
+ appearance: {
54
+ isEditorPresentationDifferent: false,
55
+ },
43
56
  },
44
57
  ],
45
58
  defaultVariantKey: "default",
46
59
  },
47
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
60
+ behavior: {
61
+ dataType: "Item",
62
+ items: {
63
+ numberOfItems: 1,
64
+ allowLinks: false,
65
+ },
66
+ },
48
67
  editorOptions: {
49
68
  onboarding: {
50
69
  helpText: "Use rich text block to write text and add additional formatting to it.",
@@ -71,15 +90,27 @@ const blocks: PageBlockDefinition[] = [
71
90
  id: "text",
72
91
  name: "Text",
73
92
  type: "RichText",
74
- options: { placeholder: "Heading 1", richTextStyle: "Title1" },
93
+ options: {
94
+ placeholder: "Heading 1",
95
+ richTextStyle: "Title1",
96
+ },
75
97
  },
76
98
  ],
77
- appearance: { isBordered: true, hasBackground: false },
99
+ appearance: {
100
+ isBordered: true,
101
+ hasBackground: false,
102
+ },
78
103
  variants: [
79
104
  {
80
105
  id: "default",
81
106
  name: "Default",
82
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
107
+ layout: {
108
+ type: "Column",
109
+ children: ["text"],
110
+ columnAlign: "Start",
111
+ columnResizing: "Fill",
112
+ gap: "Medium",
113
+ },
83
114
  maxColumns: 1,
84
115
  defaultColumns: 1,
85
116
  appearance: {},
@@ -87,7 +118,13 @@ const blocks: PageBlockDefinition[] = [
87
118
  ],
88
119
  defaultVariantKey: "default",
89
120
  },
90
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
121
+ behavior: {
122
+ dataType: "Item",
123
+ items: {
124
+ numberOfItems: 1,
125
+ allowLinks: false,
126
+ },
127
+ },
91
128
  editorOptions: {
92
129
  onboarding: {
93
130
  helpText: "Use for main sections within the page, introducing broad topics or themes.",
@@ -114,15 +151,27 @@ const blocks: PageBlockDefinition[] = [
114
151
  id: "text",
115
152
  name: "Text",
116
153
  type: "RichText",
117
- options: { placeholder: "Heading 2", richTextStyle: "Title2" },
154
+ options: {
155
+ placeholder: "Heading 2",
156
+ richTextStyle: "Title2",
157
+ },
118
158
  },
119
159
  ],
120
- appearance: { isBordered: true, hasBackground: false },
160
+ appearance: {
161
+ isBordered: true,
162
+ hasBackground: false,
163
+ },
121
164
  variants: [
122
165
  {
123
166
  id: "default",
124
167
  name: "Default",
125
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
168
+ layout: {
169
+ type: "Column",
170
+ children: ["text"],
171
+ columnAlign: "Start",
172
+ columnResizing: "Fill",
173
+ gap: "Medium",
174
+ },
126
175
  maxColumns: 1,
127
176
  defaultColumns: 1,
128
177
  appearance: {},
@@ -130,7 +179,13 @@ const blocks: PageBlockDefinition[] = [
130
179
  ],
131
180
  defaultVariantKey: "default",
132
181
  },
133
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
182
+ behavior: {
183
+ dataType: "Item",
184
+ items: {
185
+ numberOfItems: 1,
186
+ allowLinks: false,
187
+ },
188
+ },
134
189
  editorOptions: {
135
190
  onboarding: {
136
191
  helpText: "Use for subheadings, indicating major subsections under the main sections.",
@@ -157,15 +212,27 @@ const blocks: PageBlockDefinition[] = [
157
212
  id: "text",
158
213
  name: "Text",
159
214
  type: "RichText",
160
- options: { placeholder: "Heading 3", richTextStyle: "Title3" },
215
+ options: {
216
+ placeholder: "Heading 3",
217
+ richTextStyle: "Title3",
218
+ },
161
219
  },
162
220
  ],
163
- appearance: { isBordered: true, hasBackground: false },
221
+ appearance: {
222
+ isBordered: true,
223
+ hasBackground: false,
224
+ },
164
225
  variants: [
165
226
  {
166
227
  id: "default",
167
228
  name: "Default",
168
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
229
+ layout: {
230
+ type: "Column",
231
+ children: ["text"],
232
+ columnAlign: "Start",
233
+ columnResizing: "Fill",
234
+ gap: "Medium",
235
+ },
169
236
  maxColumns: 1,
170
237
  defaultColumns: 1,
171
238
  appearance: {},
@@ -173,7 +240,13 @@ const blocks: PageBlockDefinition[] = [
173
240
  ],
174
241
  defaultVariantKey: "default",
175
242
  },
176
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
243
+ behavior: {
244
+ dataType: "Item",
245
+ items: {
246
+ numberOfItems: 1,
247
+ allowLinks: false,
248
+ },
249
+ },
177
250
  editorOptions: {
178
251
  onboarding: {
179
252
  helpText: "Use for further subsections, detailing specific topics within the major subsections.",
@@ -200,15 +273,27 @@ const blocks: PageBlockDefinition[] = [
200
273
  id: "text",
201
274
  name: "Text",
202
275
  type: "RichText",
203
- options: { placeholder: "Heading 4", richTextStyle: "Title4" },
276
+ options: {
277
+ placeholder: "Heading 4",
278
+ richTextStyle: "Title4",
279
+ },
204
280
  },
205
281
  ],
206
- appearance: { isBordered: true, hasBackground: false },
282
+ appearance: {
283
+ isBordered: true,
284
+ hasBackground: false,
285
+ },
207
286
  variants: [
208
287
  {
209
288
  id: "default",
210
289
  name: "Default",
211
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
290
+ layout: {
291
+ type: "Column",
292
+ children: ["text"],
293
+ columnAlign: "Start",
294
+ columnResizing: "Fill",
295
+ gap: "Medium",
296
+ },
212
297
  maxColumns: 1,
213
298
  defaultColumns: 1,
214
299
  appearance: {},
@@ -216,7 +301,13 @@ const blocks: PageBlockDefinition[] = [
216
301
  ],
217
302
  defaultVariantKey: "default",
218
303
  },
219
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
304
+ behavior: {
305
+ dataType: "Item",
306
+ items: {
307
+ numberOfItems: 1,
308
+ allowLinks: false,
309
+ },
310
+ },
220
311
  editorOptions: {
221
312
  onboarding: {
222
313
  helpText: "Use for sub-divisions, elaborating on details within the subsections.",
@@ -243,15 +334,27 @@ const blocks: PageBlockDefinition[] = [
243
334
  id: "text",
244
335
  name: "Text",
245
336
  type: "RichText",
246
- options: { placeholder: "Heading 5", richTextStyle: "Title5" },
337
+ options: {
338
+ placeholder: "Heading 5",
339
+ richTextStyle: "Title5",
340
+ },
247
341
  },
248
342
  ],
249
- appearance: { isBordered: true, hasBackground: false },
343
+ appearance: {
344
+ isBordered: true,
345
+ hasBackground: false,
346
+ },
250
347
  variants: [
251
348
  {
252
349
  id: "default",
253
350
  name: "Default",
254
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
351
+ layout: {
352
+ type: "Column",
353
+ children: ["text"],
354
+ columnAlign: "Start",
355
+ columnResizing: "Fill",
356
+ gap: "Medium",
357
+ },
255
358
  maxColumns: 1,
256
359
  defaultColumns: 1,
257
360
  appearance: {},
@@ -259,7 +362,13 @@ const blocks: PageBlockDefinition[] = [
259
362
  ],
260
363
  defaultVariantKey: "default",
261
364
  },
262
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
365
+ behavior: {
366
+ dataType: "Item",
367
+ items: {
368
+ numberOfItems: 1,
369
+ allowLinks: false,
370
+ },
371
+ },
263
372
  editorOptions: {
264
373
  onboarding: {
265
374
  helpText: "Use for nuanced details or specific sub-points within sub-divisions.",
@@ -286,15 +395,26 @@ const blocks: PageBlockDefinition[] = [
286
395
  id: "text",
287
396
  name: "Text",
288
397
  type: "MultiRichText",
289
- options: { multiRichTextStyle: "OL" },
398
+ options: {
399
+ multiRichTextStyle: "OL",
400
+ },
290
401
  },
291
402
  ],
292
- appearance: { isBordered: true, hasBackground: false },
403
+ appearance: {
404
+ isBordered: true,
405
+ hasBackground: false,
406
+ },
293
407
  variants: [
294
408
  {
295
409
  id: "default",
296
410
  name: "Default",
297
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
411
+ layout: {
412
+ type: "Column",
413
+ children: ["text"],
414
+ columnAlign: "Start",
415
+ columnResizing: "Fill",
416
+ gap: "Medium",
417
+ },
298
418
  maxColumns: 1,
299
419
  defaultColumns: 1,
300
420
  appearance: {},
@@ -302,7 +422,13 @@ const blocks: PageBlockDefinition[] = [
302
422
  ],
303
423
  defaultVariantKey: "default",
304
424
  },
305
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
425
+ behavior: {
426
+ dataType: "Item",
427
+ items: {
428
+ numberOfItems: 1,
429
+ allowLinks: false,
430
+ },
431
+ },
306
432
  editorOptions: {
307
433
  onboarding: {
308
434
  helpText: "Display a sequence of numbers or letters to indicate order.",
@@ -329,15 +455,26 @@ const blocks: PageBlockDefinition[] = [
329
455
  id: "text",
330
456
  name: "Text",
331
457
  type: "MultiRichText",
332
- options: { multiRichTextStyle: "UL" },
458
+ options: {
459
+ multiRichTextStyle: "UL",
460
+ },
333
461
  },
334
462
  ],
335
- appearance: { isBordered: true, hasBackground: false },
463
+ appearance: {
464
+ isBordered: true,
465
+ hasBackground: false,
466
+ },
336
467
  variants: [
337
468
  {
338
469
  id: "default",
339
470
  name: "Default",
340
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
471
+ layout: {
472
+ type: "Column",
473
+ children: ["text"],
474
+ columnAlign: "Start",
475
+ columnResizing: "Fill",
476
+ gap: "Medium",
477
+ },
341
478
  maxColumns: 1,
342
479
  defaultColumns: 1,
343
480
  appearance: {},
@@ -345,7 +482,13 @@ const blocks: PageBlockDefinition[] = [
345
482
  ],
346
483
  defaultVariantKey: "default",
347
484
  },
348
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
485
+ behavior: {
486
+ dataType: "Item",
487
+ items: {
488
+ numberOfItems: 1,
489
+ allowLinks: false,
490
+ },
491
+ },
349
492
  editorOptions: {
350
493
  onboarding: {
351
494
  helpText: "A list of items displayed with bullet points without a specific sequence.",
@@ -359,6 +502,7 @@ const blocks: PageBlockDefinition[] = [
359
502
  showBlockHeaderInEditor: false,
360
503
  },
361
504
  },
505
+
362
506
  {
363
507
  id: "io.supernova.block.divider",
364
508
  name: "Divider",
@@ -367,8 +511,18 @@ const blocks: PageBlockDefinition[] = [
367
511
  icon: "https://cdn-assets.supernova.io/blocks/icons/divider.svg",
368
512
  searchKeywords: ["hr", "line", "rule", "separator"],
369
513
  item: {
370
- properties: [{ id: "divider", name: "Divider", type: "Divider", options: {} }],
371
- appearance: { isBordered: true, hasBackground: false },
514
+ properties: [
515
+ {
516
+ id: "divider",
517
+ name: "Divider",
518
+ type: "Divider",
519
+ options: {},
520
+ },
521
+ ],
522
+ appearance: {
523
+ isBordered: true,
524
+ hasBackground: false,
525
+ },
372
526
  variants: [
373
527
  {
374
528
  id: "default",
@@ -387,7 +541,13 @@ const blocks: PageBlockDefinition[] = [
387
541
  ],
388
542
  defaultVariantKey: "default",
389
543
  },
390
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
544
+ behavior: {
545
+ dataType: "Item",
546
+ items: {
547
+ numberOfItems: 1,
548
+ allowLinks: false,
549
+ },
550
+ },
391
551
  editorOptions: {
392
552
  onboarding: {
393
553
  helpText: "A thematic break or horizontal rule, often used to separate content or define a change in topic.",
@@ -414,15 +574,27 @@ const blocks: PageBlockDefinition[] = [
414
574
  id: "text",
415
575
  name: "Text",
416
576
  type: "RichText",
417
- options: { placeholder: "Write a quote...", richTextStyle: "Quote" },
577
+ options: {
578
+ placeholder: "Write a quote...",
579
+ richTextStyle: "Quote",
580
+ },
418
581
  },
419
582
  ],
420
- appearance: { isBordered: true, hasBackground: false },
583
+ appearance: {
584
+ isBordered: true,
585
+ hasBackground: false,
586
+ },
421
587
  variants: [
422
588
  {
423
589
  id: "default",
424
590
  name: "Default",
425
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
591
+ layout: {
592
+ type: "Column",
593
+ children: ["text"],
594
+ columnAlign: "Start",
595
+ columnResizing: "Fill",
596
+ gap: "Medium",
597
+ },
426
598
  maxColumns: 1,
427
599
  defaultColumns: 1,
428
600
  appearance: {},
@@ -430,7 +602,13 @@ const blocks: PageBlockDefinition[] = [
430
602
  ],
431
603
  defaultVariantKey: "default",
432
604
  },
433
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
605
+ behavior: {
606
+ dataType: "Item",
607
+ items: {
608
+ numberOfItems: 1,
609
+ allowLinks: false,
610
+ },
611
+ },
434
612
  editorOptions: {
435
613
  onboarding: {
436
614
  helpText: "Use a blockquote to set off a quotation or cited content from the main text.",
@@ -457,15 +635,27 @@ const blocks: PageBlockDefinition[] = [
457
635
  id: "text",
458
636
  name: "Text",
459
637
  type: "RichText",
460
- options: { placeholder: "Highlight some information...", richTextStyle: "Callout" },
638
+ options: {
639
+ placeholder: "Highlight some information...",
640
+ richTextStyle: "Callout",
641
+ },
461
642
  },
462
643
  ],
463
- appearance: { isBordered: true, hasBackground: false },
644
+ appearance: {
645
+ isBordered: true,
646
+ hasBackground: false,
647
+ },
464
648
  variants: [
465
649
  {
466
650
  id: "default",
467
651
  name: "Default",
468
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
652
+ layout: {
653
+ type: "Column",
654
+ children: ["text"],
655
+ columnAlign: "Start",
656
+ columnResizing: "Fill",
657
+ gap: "Medium",
658
+ },
469
659
  maxColumns: 1,
470
660
  defaultColumns: 1,
471
661
  appearance: {},
@@ -473,7 +663,13 @@ const blocks: PageBlockDefinition[] = [
473
663
  ],
474
664
  defaultVariantKey: "default",
475
665
  },
476
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
666
+ behavior: {
667
+ dataType: "Item",
668
+ items: {
669
+ numberOfItems: 1,
670
+ allowLinks: false,
671
+ },
672
+ },
477
673
  editorOptions: {
478
674
  onboarding: {
479
675
  helpText: "Use to highlight a section of text.",
@@ -500,15 +696,26 @@ const blocks: PageBlockDefinition[] = [
500
696
  id: "image",
501
697
  name: "Image",
502
698
  type: "Image",
503
- options: { allowCaption: true },
699
+ options: {
700
+ allowCaption: true,
701
+ },
504
702
  },
505
703
  ],
506
- appearance: { isBordered: true, hasBackground: false },
704
+ appearance: {
705
+ isBordered: true,
706
+ hasBackground: false,
707
+ },
507
708
  variants: [
508
709
  {
509
710
  id: "default",
510
711
  name: "Default",
511
- layout: { type: "Column", children: ["image"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
712
+ layout: {
713
+ type: "Column",
714
+ children: ["image"],
715
+ columnAlign: "Start",
716
+ columnResizing: "Fill",
717
+ gap: "Medium",
718
+ },
512
719
  maxColumns: 1,
513
720
  defaultColumns: 1,
514
721
  appearance: {},
@@ -516,7 +723,13 @@ const blocks: PageBlockDefinition[] = [
516
723
  ],
517
724
  defaultVariantKey: "default",
518
725
  },
519
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
726
+ behavior: {
727
+ dataType: "Item",
728
+ items: {
729
+ numberOfItems: 1,
730
+ allowLinks: false,
731
+ },
732
+ },
520
733
  editorOptions: {
521
734
  onboarding: {
522
735
  helpText: "Use to display an image or Figma image.",
@@ -544,27 +757,48 @@ const blocks: PageBlockDefinition[] = [
544
757
  id: "block.links.property.image",
545
758
  name: "Image",
546
759
  type: "Image",
547
- options: { aspectRatio: "Landscape", allowCaption: false },
760
+ options: {
761
+ aspectRatio: "Landscape",
762
+ allowCaption: false,
763
+ },
548
764
  variantOptions: {
549
- iconOnTop: { width: "Icon", aspectRatio: "Square" },
550
- imageOnLeft: { width: "Medium" },
551
- iconOnLeft: { width: "Icon", aspectRatio: "Square" },
765
+ iconOnTop: {
766
+ width: "Icon",
767
+ aspectRatio: "Square",
768
+ },
769
+ imageOnLeft: {
770
+ width: "Medium",
771
+ },
772
+ iconOnLeft: {
773
+ width: "Icon",
774
+ aspectRatio: "Square",
775
+ },
552
776
  },
553
777
  },
554
778
  {
555
779
  id: "block.links.property.title",
556
780
  name: "Title",
557
781
  type: "Text",
558
- options: { textStyle: "Title5", placeholder: "Add title" },
782
+ options: {
783
+ textStyle: "Title5",
784
+ placeholder: "Add title",
785
+ },
559
786
  },
560
787
  {
561
788
  id: "block.links.property.description",
562
789
  name: "Short description",
563
790
  type: "Text",
564
- options: { textStyle: "Default", color: "NeutralFaded", placeholder: "Add description" },
791
+ options: {
792
+ textStyle: "Default",
793
+ color: "NeutralFaded",
794
+ placeholder: "Add description",
795
+ },
565
796
  },
566
797
  ],
567
- appearance: { isBordered: true, hasBackground: false },
798
+ appearance: {
799
+ isBordered: true,
800
+ hasBackground: false,
801
+ },
568
802
  variants: [
569
803
  {
570
804
  id: "imageOnTop",
@@ -578,7 +812,7 @@ const blocks: PageBlockDefinition[] = [
578
812
  gap: "Medium",
579
813
  },
580
814
  maxColumns: 4,
581
- defaultColumns: 1,
815
+ defaultColumns: 3,
582
816
  appearance: {},
583
817
  },
584
818
  {
@@ -659,13 +893,21 @@ const blocks: PageBlockDefinition[] = [
659
893
  ],
660
894
  defaultVariantKey: "imageOnTop",
661
895
  },
662
- behavior: { dataType: "Item", items: { numberOfItems: -1, allowLinks: true } },
896
+ behavior: {
897
+ dataType: "Item",
898
+ items: {
899
+ numberOfItems: -1,
900
+ allowLinks: true,
901
+ newItemLabel: "Add shortcut",
902
+ },
903
+ },
663
904
  editorOptions: {
664
905
  onboarding: {
665
906
  helpText: "Use link block to create single or multiple links to places in or out of your documentation.",
666
907
  documentationLink:
667
908
  "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4",
668
909
  },
910
+ newItemLabel: "Add shortcut",
669
911
  },
670
912
  appearance: {
671
913
  isBordered: true,
@@ -695,12 +937,21 @@ const blocks: PageBlockDefinition[] = [
695
937
  },
696
938
  },
697
939
  ],
698
- appearance: { isBordered: true, hasBackground: false },
940
+ appearance: {
941
+ isBordered: true,
942
+ hasBackground: false,
943
+ },
699
944
  variants: [
700
945
  {
701
946
  id: "default",
702
947
  name: "Default",
703
- layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
948
+ layout: {
949
+ type: "Column",
950
+ children: ["embed"],
951
+ columnAlign: "Start",
952
+ columnResizing: "Fill",
953
+ gap: "Medium",
954
+ },
704
955
  maxColumns: 1,
705
956
  defaultColumns: 1,
706
957
  appearance: {},
@@ -708,7 +959,13 @@ const blocks: PageBlockDefinition[] = [
708
959
  ],
709
960
  defaultVariantKey: "default",
710
961
  },
711
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
962
+ behavior: {
963
+ dataType: "Item",
964
+ items: {
965
+ numberOfItems: 1,
966
+ allowLinks: false,
967
+ },
968
+ },
712
969
  editorOptions: {
713
970
  onboarding: {
714
971
  helpText: "Embed a Figma canvas or prototype to your documentation.",
@@ -735,15 +992,28 @@ const blocks: PageBlockDefinition[] = [
735
992
  id: "embed",
736
993
  name: "Storybook URL",
737
994
  type: "Storybook",
738
- options: { allowCaption: true, allowResize: true, defaultHeight: 400 },
995
+ options: {
996
+ allowCaption: true,
997
+ allowResize: true,
998
+ defaultHeight: 400,
999
+ },
739
1000
  },
740
1001
  ],
741
- appearance: { isBordered: true, hasBackground: false },
1002
+ appearance: {
1003
+ isBordered: true,
1004
+ hasBackground: false,
1005
+ },
742
1006
  variants: [
743
1007
  {
744
1008
  id: "default",
745
1009
  name: "Default",
746
- layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1010
+ layout: {
1011
+ type: "Column",
1012
+ children: ["embed"],
1013
+ columnAlign: "Start",
1014
+ columnResizing: "Fill",
1015
+ gap: "Medium",
1016
+ },
747
1017
  maxColumns: 1,
748
1018
  defaultColumns: 1,
749
1019
  appearance: {},
@@ -751,7 +1021,13 @@ const blocks: PageBlockDefinition[] = [
751
1021
  ],
752
1022
  defaultVariantKey: "default",
753
1023
  },
754
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1024
+ behavior: {
1025
+ dataType: "Item",
1026
+ items: {
1027
+ numberOfItems: 1,
1028
+ allowLinks: false,
1029
+ },
1030
+ },
755
1031
  editorOptions: {
756
1032
  onboarding: {
757
1033
  helpText: "Embed a Storybook story to your documentation.",
@@ -786,12 +1062,21 @@ const blocks: PageBlockDefinition[] = [
786
1062
  },
787
1063
  },
788
1064
  ],
789
- appearance: { isBordered: true, hasBackground: false },
1065
+ appearance: {
1066
+ isBordered: true,
1067
+ hasBackground: false,
1068
+ },
790
1069
  variants: [
791
1070
  {
792
1071
  id: "default",
793
1072
  name: "Default",
794
- layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1073
+ layout: {
1074
+ type: "Column",
1075
+ children: ["embed"],
1076
+ columnAlign: "Start",
1077
+ columnResizing: "Fill",
1078
+ gap: "Medium",
1079
+ },
795
1080
  maxColumns: 1,
796
1081
  defaultColumns: 1,
797
1082
  appearance: {},
@@ -799,7 +1084,13 @@ const blocks: PageBlockDefinition[] = [
799
1084
  ],
800
1085
  defaultVariantKey: "default",
801
1086
  },
802
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1087
+ behavior: {
1088
+ dataType: "Item",
1089
+ items: {
1090
+ numberOfItems: 1,
1091
+ allowLinks: false,
1092
+ },
1093
+ },
803
1094
  editorOptions: {
804
1095
  onboarding: {
805
1096
  helpText: "Embed a YouTube video to your documentation.",
@@ -828,40 +1119,55 @@ const blocks: PageBlockDefinition[] = [
828
1119
  name: "Lottie URL",
829
1120
  type: "URL",
830
1121
  description: "Add URL to your Lottie animation file. We support .json and .lottie file extensions.",
831
- options: { urlValidationRegex: "^(http|https)://.*.(json|lottie)$" },
1122
+ options: {
1123
+ urlValidationRegex: "^(http|https)://.*.(json|lottie)$",
1124
+ },
832
1125
  },
833
1126
  {
834
1127
  id: "height",
835
1128
  name: "Height",
836
1129
  type: "Number",
837
- options: { defaultValue: 270 },
1130
+ options: {
1131
+ defaultValue: 270,
1132
+ },
838
1133
  },
839
1134
  {
840
1135
  id: "width",
841
1136
  name: "Width",
842
1137
  type: "Number",
843
- options: { defaultValue: 400 },
1138
+ options: {
1139
+ defaultValue: 400,
1140
+ },
844
1141
  },
845
1142
  {
846
1143
  id: "autoplay",
847
1144
  name: "Autoplay",
848
1145
  type: "Boolean",
849
- options: { defaultValue: true },
1146
+ options: {
1147
+ defaultValue: true,
1148
+ },
850
1149
  },
851
1150
  {
852
1151
  id: "loop",
853
1152
  name: "Loop",
854
1153
  type: "Boolean",
855
- options: { defaultValue: true },
1154
+ options: {
1155
+ defaultValue: true,
1156
+ },
856
1157
  },
857
1158
  {
858
1159
  id: "playerControls",
859
1160
  name: "Show player controls",
860
1161
  type: "Boolean",
861
- options: { defaultValue: true },
1162
+ options: {
1163
+ defaultValue: true,
1164
+ },
862
1165
  },
863
1166
  ],
864
- appearance: { isBordered: true, hasBackground: false },
1167
+ appearance: {
1168
+ isBordered: true,
1169
+ hasBackground: false,
1170
+ },
865
1171
  variants: [
866
1172
  {
867
1173
  id: "default",
@@ -882,7 +1188,13 @@ const blocks: PageBlockDefinition[] = [
882
1188
  ],
883
1189
  defaultVariantKey: "default",
884
1190
  },
885
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1191
+ behavior: {
1192
+ dataType: "Item",
1193
+ items: {
1194
+ numberOfItems: 1,
1195
+ allowLinks: false,
1196
+ },
1197
+ },
886
1198
  editorOptions: {
887
1199
  onboarding: {
888
1200
  helpText: "Embed a Lottie animation to your documentation.",
@@ -918,7 +1230,10 @@ const blocks: PageBlockDefinition[] = [
918
1230
  },
919
1231
  },
920
1232
  ],
921
- appearance: { isBordered: true, hasBackground: false },
1233
+ appearance: {
1234
+ isBordered: true,
1235
+ hasBackground: false,
1236
+ },
922
1237
  variants: [
923
1238
  {
924
1239
  id: "default",
@@ -937,7 +1252,13 @@ const blocks: PageBlockDefinition[] = [
937
1252
  ],
938
1253
  defaultVariantKey: "default",
939
1254
  },
940
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1255
+ behavior: {
1256
+ dataType: "Item",
1257
+ items: {
1258
+ numberOfItems: 1,
1259
+ allowLinks: false,
1260
+ },
1261
+ },
941
1262
  editorOptions: {
942
1263
  onboarding: {
943
1264
  helpText: "Embed any page to your documentation as an iframe.",
@@ -965,10 +1286,15 @@ const blocks: PageBlockDefinition[] = [
965
1286
  id: "markdownUrl",
966
1287
  name: "Markdown URL",
967
1288
  type: "Markdown",
968
- options: { urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$" },
1289
+ options: {
1290
+ urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$",
1291
+ },
969
1292
  },
970
1293
  ],
971
- appearance: { isBordered: true, hasBackground: false },
1294
+ appearance: {
1295
+ isBordered: true,
1296
+ hasBackground: false,
1297
+ },
972
1298
  variants: [
973
1299
  {
974
1300
  id: "plain",
@@ -1018,7 +1344,13 @@ const blocks: PageBlockDefinition[] = [
1018
1344
  ],
1019
1345
  defaultVariantKey: "plain",
1020
1346
  },
1021
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1347
+ behavior: {
1348
+ dataType: "Item",
1349
+ items: {
1350
+ numberOfItems: 1,
1351
+ allowLinks: false,
1352
+ },
1353
+ },
1022
1354
  editorOptions: {
1023
1355
  onboarding: {
1024
1356
  helpText: "Render any markdown file directly inside of your documentation.",
@@ -1041,13 +1373,29 @@ const blocks: PageBlockDefinition[] = [
1041
1373
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/table.svg",
1042
1374
  searchKeywords: ["grid", "data", "spreadsheet", "api"],
1043
1375
  item: {
1044
- properties: [{ id: "table", name: "Table", type: "Table", options: {} }],
1045
- appearance: { isBordered: true, hasBackground: false },
1376
+ properties: [
1377
+ {
1378
+ id: "table",
1379
+ name: "Table",
1380
+ type: "Table",
1381
+ options: {},
1382
+ },
1383
+ ],
1384
+ appearance: {
1385
+ isBordered: true,
1386
+ hasBackground: false,
1387
+ },
1046
1388
  variants: [
1047
1389
  {
1048
1390
  id: "default",
1049
1391
  name: "Default",
1050
- layout: { type: "Column", children: ["table"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1392
+ layout: {
1393
+ type: "Column",
1394
+ children: ["table"],
1395
+ columnAlign: "Start",
1396
+ columnResizing: "Fill",
1397
+ gap: "Medium",
1398
+ },
1051
1399
  maxColumns: 1,
1052
1400
  defaultColumns: 1,
1053
1401
  appearance: {},
@@ -1055,7 +1403,13 @@ const blocks: PageBlockDefinition[] = [
1055
1403
  ],
1056
1404
  defaultVariantKey: "default",
1057
1405
  },
1058
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1406
+ behavior: {
1407
+ dataType: "Item",
1408
+ items: {
1409
+ numberOfItems: 1,
1410
+ allowLinks: false,
1411
+ },
1412
+ },
1059
1413
  editorOptions: {
1060
1414
  onboarding: {
1061
1415
  helpText: "Use for displaying data in a tabular format.",
@@ -1092,17 +1446,34 @@ const blocks: PageBlockDefinition[] = [
1092
1446
  id: "tokens",
1093
1447
  name: "Tokens",
1094
1448
  type: "Token",
1095
- options: { renderLayoutAs: "List", defaultTheme: "none", defaultValuePreview: "Split" },
1096
- variantOptions: { grid: { renderLayoutAs: "Grid" } },
1449
+ options: {
1450
+ renderLayoutAs: "List",
1451
+ defaultTheme: "none",
1452
+ defaultValuePreview: "Split",
1453
+ },
1454
+ variantOptions: {
1455
+ grid: {
1456
+ renderLayoutAs: "Grid",
1457
+ },
1458
+ },
1097
1459
  },
1098
1460
  ],
1099
- appearance: { isBordered: true, hasBackground: false },
1461
+ appearance: {
1462
+ isBordered: true,
1463
+ hasBackground: false,
1464
+ },
1100
1465
  variants: [
1101
1466
  {
1102
1467
  id: "table",
1103
1468
  name: "Table",
1104
1469
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
1105
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1470
+ layout: {
1471
+ type: "Column",
1472
+ children: ["tokens"],
1473
+ columnAlign: "Start",
1474
+ columnResizing: "Fill",
1475
+ gap: "Medium",
1476
+ },
1106
1477
  maxColumns: 1,
1107
1478
  defaultColumns: 1,
1108
1479
  appearance: {},
@@ -1111,7 +1482,13 @@ const blocks: PageBlockDefinition[] = [
1111
1482
  id: "grid",
1112
1483
  name: "Grid",
1113
1484
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
1114
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1485
+ layout: {
1486
+ type: "Column",
1487
+ children: ["tokens"],
1488
+ columnAlign: "Start",
1489
+ columnResizing: "Fill",
1490
+ gap: "Medium",
1491
+ },
1115
1492
  maxColumns: 4,
1116
1493
  defaultColumns: 1,
1117
1494
  appearance: {},
@@ -1119,7 +1496,13 @@ const blocks: PageBlockDefinition[] = [
1119
1496
  ],
1120
1497
  defaultVariantKey: "table",
1121
1498
  },
1122
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1499
+ behavior: {
1500
+ dataType: "Token",
1501
+ entities: {
1502
+ selectionType: "EntityAndGroup",
1503
+ maxSelected: 0,
1504
+ },
1505
+ },
1123
1506
  editorOptions: {
1124
1507
  onboarding: {
1125
1508
  helpText: "Show a group of design tokens. Automatically display all subgroups too.",
@@ -1147,26 +1530,50 @@ const blocks: PageBlockDefinition[] = [
1147
1530
  id: "tokens",
1148
1531
  name: "Tokens",
1149
1532
  type: "Token",
1150
- options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: true },
1533
+ options: {
1534
+ allowedTypes: ["Color"],
1535
+ allowPropertySelection: false,
1536
+ allowThemeSelection: true,
1537
+ },
1151
1538
  },
1152
1539
  ],
1153
- appearance: { isBordered: true, hasBackground: false },
1540
+ appearance: {
1541
+ isBordered: true,
1542
+ hasBackground: false,
1543
+ },
1154
1544
  variants: [
1155
1545
  {
1156
1546
  id: "default",
1157
1547
  name: "Default",
1158
1548
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
1159
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1549
+ layout: {
1550
+ type: "Column",
1551
+ children: ["tokens"],
1552
+ columnAlign: "Start",
1553
+ columnResizing: "Fill",
1554
+ gap: "Medium",
1555
+ },
1160
1556
  maxColumns: 2,
1161
1557
  defaultColumns: 1,
1162
- appearance: { isEditorPresentationDifferent: true },
1558
+ appearance: {
1559
+ isEditorPresentationDifferent: true,
1560
+ },
1163
1561
  },
1164
1562
  ],
1165
1563
  defaultVariantKey: "default",
1166
1564
  },
1167
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1565
+ behavior: {
1566
+ dataType: "Token",
1567
+ entities: {
1568
+ selectionType: "EntityAndGroup",
1569
+ maxSelected: 0,
1570
+ },
1571
+ },
1168
1572
  editorOptions: {
1169
- onboarding: { helpText: "The best way to display colors", documentationLink: "https://learn.supernova.io" },
1573
+ onboarding: {
1574
+ helpText: "The best way to display colors",
1575
+ documentationLink: "https://learn.supernova.io",
1576
+ },
1170
1577
  },
1171
1578
  appearance: {
1172
1579
  isBordered: true,
@@ -1188,10 +1595,17 @@ const blocks: PageBlockDefinition[] = [
1188
1595
  id: "tokens",
1189
1596
  name: "Tokens",
1190
1597
  type: "Token",
1191
- options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: false },
1598
+ options: {
1599
+ allowedTypes: ["Color"],
1600
+ allowPropertySelection: false,
1601
+ allowThemeSelection: false,
1602
+ },
1192
1603
  },
1193
1604
  ],
1194
- appearance: { isBordered: true, hasBackground: false },
1605
+ appearance: {
1606
+ isBordered: true,
1607
+ hasBackground: false,
1608
+ },
1195
1609
  variants: [
1196
1610
  {
1197
1611
  id: "default",
@@ -1199,15 +1613,29 @@ const blocks: PageBlockDefinition[] = [
1199
1613
  image: "https://cdn-assets.supernova.io/blocks/variants/contrast-grid-large.svg",
1200
1614
  description:
1201
1615
  "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
1202
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1616
+ layout: {
1617
+ type: "Column",
1618
+ children: ["tokens"],
1619
+ columnAlign: "Start",
1620
+ columnResizing: "Fill",
1621
+ gap: "Medium",
1622
+ },
1203
1623
  maxColumns: 1,
1204
1624
  defaultColumns: 1,
1205
- appearance: { isEditorPresentationDifferent: true },
1625
+ appearance: {
1626
+ isEditorPresentationDifferent: true,
1627
+ },
1206
1628
  },
1207
1629
  ],
1208
1630
  defaultVariantKey: "default",
1209
1631
  },
1210
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1632
+ behavior: {
1633
+ dataType: "Token",
1634
+ entities: {
1635
+ selectionType: "EntityAndGroup",
1636
+ maxSelected: 0,
1637
+ },
1638
+ },
1211
1639
  editorOptions: {
1212
1640
  onboarding: {
1213
1641
  helpText: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
@@ -1229,13 +1657,29 @@ const blocks: PageBlockDefinition[] = [
1229
1657
  icon: "https://cdn-assets.supernova.io/blocks/icons/code.svg",
1230
1658
  searchKeywords: ["code"],
1231
1659
  item: {
1232
- properties: [{ id: "code", name: "Code", type: "Code", options: {} }],
1233
- appearance: { isBordered: true, hasBackground: false },
1660
+ properties: [
1661
+ {
1662
+ id: "code",
1663
+ name: "Code",
1664
+ type: "Code",
1665
+ options: {},
1666
+ },
1667
+ ],
1668
+ appearance: {
1669
+ isBordered: true,
1670
+ hasBackground: false,
1671
+ },
1234
1672
  variants: [
1235
1673
  {
1236
1674
  id: "default",
1237
1675
  name: "Default",
1238
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1676
+ layout: {
1677
+ type: "Column",
1678
+ children: ["code"],
1679
+ columnAlign: "Start",
1680
+ columnResizing: "Fill",
1681
+ gap: "Medium",
1682
+ },
1239
1683
  maxColumns: 1,
1240
1684
  defaultColumns: 1,
1241
1685
  appearance: {},
@@ -1243,8 +1687,18 @@ const blocks: PageBlockDefinition[] = [
1243
1687
  ],
1244
1688
  defaultVariantKey: "default",
1245
1689
  },
1246
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1247
- editorOptions: { onboarding: { helpText: "Code descriptor." } },
1690
+ behavior: {
1691
+ dataType: "Item",
1692
+ items: {
1693
+ numberOfItems: 1,
1694
+ allowLinks: false,
1695
+ },
1696
+ },
1697
+ editorOptions: {
1698
+ onboarding: {
1699
+ helpText: "Code descriptor.",
1700
+ },
1701
+ },
1248
1702
  appearance: {
1249
1703
  isBordered: false,
1250
1704
  hasBackground: false,
@@ -1265,22 +1719,39 @@ const blocks: PageBlockDefinition[] = [
1265
1719
  id: "code",
1266
1720
  name: "Code",
1267
1721
  type: "CodeSandbox",
1268
- options: { renderLayoutAs: "PreviewOnTop" },
1722
+ options: {
1723
+ renderLayoutAs: "PreviewOnTop",
1724
+ },
1269
1725
  variantOptions: {
1270
- codeTop: { renderLayoutAs: "PreviewOnBottom" },
1271
- codeLeft: { renderLayoutAs: "PreviewOnRight" },
1272
- codeRight: { renderLayoutAs: "PreviewOnLeft" },
1726
+ codeTop: {
1727
+ renderLayoutAs: "PreviewOnBottom",
1728
+ },
1729
+ codeLeft: {
1730
+ renderLayoutAs: "PreviewOnRight",
1731
+ },
1732
+ codeRight: {
1733
+ renderLayoutAs: "PreviewOnLeft",
1734
+ },
1273
1735
  },
1274
1736
  },
1275
1737
  ],
1276
- appearance: { isBordered: true, hasBackground: false },
1738
+ appearance: {
1739
+ isBordered: true,
1740
+ hasBackground: false,
1741
+ },
1277
1742
  variants: [
1278
1743
  {
1279
1744
  id: "codeBottom",
1280
1745
  name: "Full width, code bottom",
1281
1746
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-bottom.svg",
1282
1747
  description: "Full-width block of code, with a preview on top.",
1283
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1748
+ layout: {
1749
+ type: "Column",
1750
+ children: ["code"],
1751
+ columnAlign: "Start",
1752
+ columnResizing: "Fill",
1753
+ gap: "Medium",
1754
+ },
1284
1755
  maxColumns: 1,
1285
1756
  defaultColumns: 1,
1286
1757
  appearance: {},
@@ -1290,7 +1761,13 @@ const blocks: PageBlockDefinition[] = [
1290
1761
  name: "Full width, code top",
1291
1762
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-top.svg",
1292
1763
  description: "Full-width block of code, with a preview on bottom.",
1293
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1764
+ layout: {
1765
+ type: "Column",
1766
+ children: ["code"],
1767
+ columnAlign: "Start",
1768
+ columnResizing: "Fill",
1769
+ gap: "Medium",
1770
+ },
1294
1771
  maxColumns: 1,
1295
1772
  defaultColumns: 1,
1296
1773
  appearance: {},
@@ -1300,7 +1777,13 @@ const blocks: PageBlockDefinition[] = [
1300
1777
  name: "Side by side, code left",
1301
1778
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-left.svg",
1302
1779
  description: "Side-by-side preview and code, with code on the left.",
1303
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1780
+ layout: {
1781
+ type: "Column",
1782
+ children: ["code"],
1783
+ columnAlign: "Start",
1784
+ columnResizing: "Fill",
1785
+ gap: "Medium",
1786
+ },
1304
1787
  maxColumns: 1,
1305
1788
  defaultColumns: 1,
1306
1789
  appearance: {},
@@ -1310,7 +1793,13 @@ const blocks: PageBlockDefinition[] = [
1310
1793
  name: "Side by side, code right",
1311
1794
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-right.svg",
1312
1795
  description: "Side-by-side preview and code, with code on the right.",
1313
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1796
+ layout: {
1797
+ type: "Column",
1798
+ children: ["code"],
1799
+ columnAlign: "Start",
1800
+ columnResizing: "Fill",
1801
+ gap: "Medium",
1802
+ },
1314
1803
  maxColumns: 1,
1315
1804
  defaultColumns: 1,
1316
1805
  appearance: {},
@@ -1318,7 +1807,13 @@ const blocks: PageBlockDefinition[] = [
1318
1807
  ],
1319
1808
  defaultVariantKey: "codeBottom",
1320
1809
  },
1321
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
1810
+ behavior: {
1811
+ dataType: "Item",
1812
+ items: {
1813
+ numberOfItems: 1,
1814
+ allowLinks: false,
1815
+ },
1816
+ },
1322
1817
  editorOptions: {
1323
1818
  onboarding: {
1324
1819
  helpText: "Display rendered code example",
@@ -1341,15 +1836,31 @@ const blocks: PageBlockDefinition[] = [
1341
1836
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
1342
1837
  searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
1343
1838
  item: {
1344
- properties: [{ id: "assets", name: "Assets", type: "Asset", options: {} }],
1345
- appearance: { isBordered: true, hasBackground: false },
1839
+ properties: [
1840
+ {
1841
+ id: "assets",
1842
+ name: "Assets",
1843
+ type: "Asset",
1844
+ options: {},
1845
+ },
1846
+ ],
1847
+ appearance: {
1848
+ isBordered: true,
1849
+ hasBackground: false,
1850
+ },
1346
1851
  variants: [
1347
1852
  {
1348
1853
  id: "default",
1349
1854
  name: "Simple grid",
1350
1855
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
1351
1856
  description: "A simple grid of assets. Both the title and description are displayed below the preview.",
1352
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1857
+ layout: {
1858
+ type: "Column",
1859
+ children: ["assets"],
1860
+ columnAlign: "Start",
1861
+ columnResizing: "Fill",
1862
+ gap: "Medium",
1863
+ },
1353
1864
  maxColumns: 8,
1354
1865
  defaultColumns: 1,
1355
1866
  appearance: {},
@@ -1359,25 +1870,47 @@ const blocks: PageBlockDefinition[] = [
1359
1870
  name: "Square grid",
1360
1871
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
1361
1872
  description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
1362
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1873
+ layout: {
1874
+ type: "Column",
1875
+ children: ["assets"],
1876
+ columnAlign: "Start",
1877
+ columnResizing: "Fill",
1878
+ gap: "Medium",
1879
+ },
1363
1880
  maxColumns: 8,
1364
1881
  defaultColumns: 1,
1365
- appearance: { isEditorPresentationDifferent: true },
1882
+ appearance: {
1883
+ isEditorPresentationDifferent: true,
1884
+ },
1366
1885
  },
1367
1886
  {
1368
1887
  id: "borderless-grid",
1369
1888
  name: "Borderless grid",
1370
1889
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
1371
1890
  description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
1372
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
1891
+ layout: {
1892
+ type: "Column",
1893
+ children: ["assets"],
1894
+ columnAlign: "Start",
1895
+ columnResizing: "Fill",
1896
+ gap: "Medium",
1897
+ },
1373
1898
  maxColumns: 8,
1374
1899
  defaultColumns: 1,
1375
- appearance: { isEditorPresentationDifferent: true },
1900
+ appearance: {
1901
+ isEditorPresentationDifferent: true,
1902
+ },
1376
1903
  },
1377
1904
  ],
1378
1905
  defaultVariantKey: "default",
1379
1906
  },
1380
- behavior: { dataType: "Asset", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
1907
+ behavior: {
1908
+ dataType: "Asset",
1909
+ entities: {
1910
+ selectionType: "EntityAndGroup",
1911
+ maxSelected: 0,
1912
+ },
1913
+ },
1381
1914
  editorOptions: {
1382
1915
  onboarding: {
1383
1916
  helpText: "Display a grid of icons or illustrations.",
@@ -1408,7 +1941,10 @@ const blocks: PageBlockDefinition[] = [
1408
1941
  options: {},
1409
1942
  },
1410
1943
  ],
1411
- appearance: { isBordered: true, hasBackground: false },
1944
+ appearance: {
1945
+ isBordered: true,
1946
+ hasBackground: false,
1947
+ },
1412
1948
  variants: [
1413
1949
  {
1414
1950
  id: "bordered",
@@ -1445,7 +1981,13 @@ const blocks: PageBlockDefinition[] = [
1445
1981
  ],
1446
1982
  defaultVariantKey: "bordered",
1447
1983
  },
1448
- behavior: { dataType: "FigmaNode", entities: { selectionType: "Entity", maxSelected: 0 } },
1984
+ behavior: {
1985
+ dataType: "FigmaNode",
1986
+ entities: {
1987
+ selectionType: "Entity",
1988
+ maxSelected: 0,
1989
+ },
1990
+ },
1449
1991
  editorOptions: {
1450
1992
  onboarding: {
1451
1993
  helpText: "Generate images from Figma layers",
@@ -1469,14 +2011,23 @@ const blocks: PageBlockDefinition[] = [
1469
2011
  searchKeywords: ["version", "changelog", "history"],
1470
2012
  item: {
1471
2013
  properties: [],
1472
- appearance: { isBordered: true, hasBackground: false },
2014
+ appearance: {
2015
+ isBordered: true,
2016
+ hasBackground: false,
2017
+ },
1473
2018
  variants: [
1474
2019
  {
1475
2020
  id: "default",
1476
2021
  name: "Default",
1477
2022
  image: "https://cdn-assets.supernova.io/blocks/variants/release-notes-2.svg",
1478
2023
  description: "Show formatted release notes from all previously released versions.",
1479
- layout: { type: "Column", children: [], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
2024
+ layout: {
2025
+ type: "Column",
2026
+ children: [],
2027
+ columnAlign: "Start",
2028
+ columnResizing: "Fill",
2029
+ gap: "Medium",
2030
+ },
1480
2031
  maxColumns: 1,
1481
2032
  defaultColumns: 1,
1482
2033
  appearance: {},
@@ -1484,7 +2035,13 @@ const blocks: PageBlockDefinition[] = [
1484
2035
  ],
1485
2036
  defaultVariantKey: "default",
1486
2037
  },
1487
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
2038
+ behavior: {
2039
+ dataType: "Item",
2040
+ items: {
2041
+ numberOfItems: 1,
2042
+ allowLinks: false,
2043
+ },
2044
+ },
1488
2045
  editorOptions: {
1489
2046
  onboarding: {
1490
2047
  helpText: "Show formatted release notes from all previously released versions.",
@@ -1510,22 +2067,31 @@ const blocks: PageBlockDefinition[] = [
1510
2067
  id: "components",
1511
2068
  name: "Components",
1512
2069
  type: "Component",
1513
- options: { renderLayoutAs: "List" },
2070
+ options: {
2071
+ renderLayoutAs: "List",
2072
+ },
1514
2073
  },
1515
2074
  {
1516
2075
  id: "title",
1517
2076
  name: "Title",
1518
2077
  type: "Text",
1519
- options: { defaultValue: "Component checklist" },
2078
+ options: {
2079
+ defaultValue: "Component checklist",
2080
+ },
1520
2081
  },
1521
2082
  {
1522
2083
  id: "showDescription",
1523
2084
  name: "Show description",
1524
2085
  type: "Boolean",
1525
- options: { defaultValue: true },
2086
+ options: {
2087
+ defaultValue: true,
2088
+ },
1526
2089
  },
1527
2090
  ],
1528
- appearance: { isBordered: true, hasBackground: false },
2091
+ appearance: {
2092
+ isBordered: true,
2093
+ hasBackground: false,
2094
+ },
1529
2095
  variants: [
1530
2096
  {
1531
2097
  id: "default",
@@ -1540,12 +2106,20 @@ const blocks: PageBlockDefinition[] = [
1540
2106
  },
1541
2107
  maxColumns: 1,
1542
2108
  defaultColumns: 1,
1543
- appearance: { isEditorPresentationDifferent: true },
2109
+ appearance: {
2110
+ isEditorPresentationDifferent: true,
2111
+ },
1544
2112
  },
1545
2113
  ],
1546
2114
  defaultVariantKey: "default",
1547
2115
  },
1548
- behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
2116
+ behavior: {
2117
+ dataType: "Component",
2118
+ entities: {
2119
+ selectionType: "Entity",
2120
+ maxSelected: 1,
2121
+ },
2122
+ },
1549
2123
  editorOptions: {
1550
2124
  onboarding: {
1551
2125
  helpText: "Highlight specific component properties",
@@ -1573,16 +2147,23 @@ const blocks: PageBlockDefinition[] = [
1573
2147
  id: "components",
1574
2148
  name: "Components",
1575
2149
  type: "Component",
1576
- options: { renderLayoutAs: "Table" },
2150
+ options: {
2151
+ renderLayoutAs: "Table",
2152
+ },
1577
2153
  },
1578
2154
  {
1579
2155
  id: "showLastUpdatedColumn",
1580
2156
  name: "Show last updated column",
1581
2157
  type: "Boolean",
1582
- options: { defaultValue: true },
2158
+ options: {
2159
+ defaultValue: true,
2160
+ },
1583
2161
  },
1584
2162
  ],
1585
- appearance: { isBordered: true, hasBackground: false },
2163
+ appearance: {
2164
+ isBordered: true,
2165
+ hasBackground: false,
2166
+ },
1586
2167
  variants: [
1587
2168
  {
1588
2169
  id: "default",
@@ -1597,12 +2178,20 @@ const blocks: PageBlockDefinition[] = [
1597
2178
  },
1598
2179
  maxColumns: 1,
1599
2180
  defaultColumns: 1,
1600
- appearance: { isEditorPresentationDifferent: true },
2181
+ appearance: {
2182
+ isEditorPresentationDifferent: true,
2183
+ },
1601
2184
  },
1602
2185
  ],
1603
2186
  defaultVariantKey: "default",
1604
2187
  },
1605
- behavior: { dataType: "Component", entities: { selectionType: "Group", maxSelected: 1 } },
2188
+ behavior: {
2189
+ dataType: "Component",
2190
+ entities: {
2191
+ selectionType: "Group",
2192
+ maxSelected: 1,
2193
+ },
2194
+ },
1606
2195
  editorOptions: {
1607
2196
  onboarding: {
1608
2197
  helpText: "Show an overview of all your components",
@@ -1630,10 +2219,15 @@ const blocks: PageBlockDefinition[] = [
1630
2219
  id: "components",
1631
2220
  name: "Components",
1632
2221
  type: "Component",
1633
- options: { renderLayoutAs: "List" },
2222
+ options: {
2223
+ renderLayoutAs: "List",
2224
+ },
1634
2225
  },
1635
2226
  ],
1636
- appearance: { isBordered: true, hasBackground: false },
2227
+ appearance: {
2228
+ isBordered: true,
2229
+ hasBackground: false,
2230
+ },
1637
2231
  variants: [
1638
2232
  {
1639
2233
  id: "default",
@@ -1648,12 +2242,20 @@ const blocks: PageBlockDefinition[] = [
1648
2242
  },
1649
2243
  maxColumns: 1,
1650
2244
  defaultColumns: 1,
1651
- appearance: { isEditorPresentationDifferent: true },
2245
+ appearance: {
2246
+ isEditorPresentationDifferent: true,
2247
+ },
1652
2248
  },
1653
2249
  ],
1654
2250
  defaultVariantKey: "default",
1655
2251
  },
1656
- behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
2252
+ behavior: {
2253
+ dataType: "Component",
2254
+ entities: {
2255
+ selectionType: "Entity",
2256
+ maxSelected: 1,
2257
+ },
2258
+ },
1657
2259
  editorOptions: {
1658
2260
  onboarding: {
1659
2261
  helpText: "Show component health and additional attributes",
@@ -1668,4 +2270,178 @@ const blocks: PageBlockDefinition[] = [
1668
2270
  showBlockHeaderInEditor: false,
1669
2271
  },
1670
2272
  },
2273
+ {
2274
+ id: "io.supernova.block.do-dont-guidelines",
2275
+ name: "Guidelines",
2276
+ description: "Do/Don’t rules and best practices.",
2277
+ category: "Guidelines",
2278
+ icon: "https://cdn-assets.supernova.io/blocks/icons/guidelines.svg",
2279
+ searchKeywords: ["dont", "caution", "rules"],
2280
+ item: {
2281
+ properties: [
2282
+ {
2283
+ id: "block.do-dont-guidelines.property.image",
2284
+ name: "Image",
2285
+ type: "Image",
2286
+ options: {
2287
+ allowCaption: false,
2288
+ },
2289
+ },
2290
+ {
2291
+ id: "block.do-dont-guidelines.property.type",
2292
+ name: "Type",
2293
+ type: "SingleSelect",
2294
+ options: {
2295
+ defaultChoice: "do",
2296
+ choices: [
2297
+ {
2298
+ value: "do",
2299
+ name: "Do",
2300
+ color: "Green",
2301
+ icon: "CheckCircle",
2302
+ },
2303
+ {
2304
+ value: "dont",
2305
+ name: "Don't",
2306
+ color: "Red",
2307
+ icon: "CrossCircle",
2308
+ },
2309
+ {
2310
+ value: "caution",
2311
+ name: "Caution",
2312
+ color: "Orange",
2313
+ icon: "Alert",
2314
+ },
2315
+ ],
2316
+ singleSelectStyle: "SegmentedControl",
2317
+ },
2318
+ },
2319
+ {
2320
+ id: "block.do-dont-guidelines.property.description",
2321
+ name: "Description",
2322
+ type: "Text",
2323
+ options: {
2324
+ textStyle: "Default",
2325
+ color: "Neutral",
2326
+ placeholder: "Add description",
2327
+ },
2328
+ },
2329
+ ],
2330
+ appearance: {
2331
+ isBordered: true,
2332
+ hasBackground: false,
2333
+ },
2334
+ variants: [
2335
+ {
2336
+ id: "simple",
2337
+ name: "Simple",
2338
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-simple.svg",
2339
+ description: "With a minimalist badge at the top, this design is great for content guidelines.",
2340
+ layout: {
2341
+ type: "Column",
2342
+ children: [
2343
+ "block.do-dont-guidelines.property.type",
2344
+ "block.do-dont-guidelines.property.image",
2345
+ "block.do-dont-guidelines.property.description",
2346
+ ],
2347
+ columnAlign: "Start",
2348
+ columnResizing: "Fill",
2349
+ gap: "Medium",
2350
+ },
2351
+ maxColumns: 3,
2352
+ defaultColumns: 2,
2353
+ appearance: {},
2354
+ },
2355
+ {
2356
+ id: "prominent",
2357
+ name: "Prominent",
2358
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-prominent.svg",
2359
+ description: "Recommended when you need guidelines that need to stand out.",
2360
+ layout: {
2361
+ type: "Column",
2362
+ children: [
2363
+ "block.do-dont-guidelines.property.type",
2364
+ "block.do-dont-guidelines.property.image",
2365
+ "block.do-dont-guidelines.property.description",
2366
+ ],
2367
+ columnAlign: "Start",
2368
+ columnResizing: "Fill",
2369
+ gap: "Medium",
2370
+ },
2371
+ maxColumns: 3,
2372
+ defaultColumns: 1,
2373
+ appearance: {
2374
+ isEditorPresentationDifferent: true,
2375
+ },
2376
+ },
2377
+ {
2378
+ id: "contained",
2379
+ name: "Contained",
2380
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-contained.svg",
2381
+ description: "Perfect for component guidelines with spacious images.",
2382
+ layout: {
2383
+ type: "Column",
2384
+ children: [
2385
+ "block.do-dont-guidelines.property.type",
2386
+ "block.do-dont-guidelines.property.image",
2387
+ "block.do-dont-guidelines.property.description",
2388
+ ],
2389
+ columnAlign: "Start",
2390
+ columnResizing: "Fill",
2391
+ gap: "Medium",
2392
+ },
2393
+ maxColumns: 3,
2394
+ defaultColumns: 1,
2395
+ appearance: {
2396
+ isEditorPresentationDifferent: true,
2397
+ },
2398
+ },
2399
+ {
2400
+ id: "side-border",
2401
+ name: "Side border",
2402
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-side-border.svg",
2403
+ description: "The side border makes this variant well-suited for longer text guidelines.",
2404
+ layout: {
2405
+ type: "Column",
2406
+ children: [
2407
+ "block.do-dont-guidelines.property.type",
2408
+ "block.do-dont-guidelines.property.image",
2409
+ "block.do-dont-guidelines.property.description",
2410
+ ],
2411
+ columnAlign: "Start",
2412
+ columnResizing: "Fill",
2413
+ gap: "Medium",
2414
+ },
2415
+ maxColumns: 3,
2416
+ defaultColumns: 1,
2417
+ appearance: {
2418
+ isEditorPresentationDifferent: true,
2419
+ },
2420
+ },
2421
+ ],
2422
+ defaultVariantKey: "simple",
2423
+ },
2424
+ behavior: {
2425
+ dataType: "Item",
2426
+ items: {
2427
+ numberOfItems: -1,
2428
+ allowLinks: false,
2429
+ newItemLabel: "Add guideline",
2430
+ },
2431
+ },
2432
+ editorOptions: {
2433
+ onboarding: {
2434
+ helpText: "Use link block to document your Do/Don't guidelines for your components and patterns.",
2435
+ documentationLink:
2436
+ "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4",
2437
+ },
2438
+ newItemLabel: "Add guideline",
2439
+ },
2440
+ appearance: {
2441
+ isBordered: true,
2442
+ hasBackground: false,
2443
+ isEditorPresentationDifferent: false,
2444
+ showBlockHeaderInEditor: false,
2445
+ },
2446
+ },
1671
2447
  ];