@supernova-studio/client 0.33.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +220 -170
- package/dist/index.d.ts +220 -170
- package/dist/index.js +411 -282
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +403 -274
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +17 -7
- package/src/yjs/docs-editor/index.ts +1 -0
- package/src/yjs/docs-editor/list-tree-builder.ts +23 -82
- package/src/yjs/docs-editor/mock.ts +304 -147
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +109 -66
|
@@ -39,7 +39,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
39
39
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
40
40
|
maxColumns: 1,
|
|
41
41
|
defaultColumns: 1,
|
|
42
|
-
appearance: {
|
|
42
|
+
appearance: { isEditorPresentationDifferent: false },
|
|
43
43
|
},
|
|
44
44
|
],
|
|
45
45
|
defaultVariantKey: "default",
|
|
@@ -51,7 +51,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
51
51
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/text-HxZ9ssJR",
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
|
-
appearance: {
|
|
54
|
+
appearance: {
|
|
55
|
+
isBordered: true,
|
|
56
|
+
hasBackground: false,
|
|
57
|
+
isEditorPresentationDifferent: false,
|
|
58
|
+
showBlockHeaderInEditor: false,
|
|
59
|
+
},
|
|
55
60
|
},
|
|
56
61
|
{
|
|
57
62
|
id: "io.supernova.block.title1",
|
|
@@ -77,7 +82,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
77
82
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
78
83
|
maxColumns: 1,
|
|
79
84
|
defaultColumns: 1,
|
|
80
|
-
appearance: {
|
|
85
|
+
appearance: {},
|
|
81
86
|
},
|
|
82
87
|
],
|
|
83
88
|
defaultVariantKey: "default",
|
|
@@ -89,7 +94,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
89
94
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
90
95
|
},
|
|
91
96
|
},
|
|
92
|
-
appearance: {
|
|
97
|
+
appearance: {
|
|
98
|
+
isBordered: true,
|
|
99
|
+
hasBackground: false,
|
|
100
|
+
isEditorPresentationDifferent: false,
|
|
101
|
+
showBlockHeaderInEditor: false,
|
|
102
|
+
},
|
|
93
103
|
},
|
|
94
104
|
{
|
|
95
105
|
id: "io.supernova.block.title2",
|
|
@@ -115,7 +125,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
115
125
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
116
126
|
maxColumns: 1,
|
|
117
127
|
defaultColumns: 1,
|
|
118
|
-
appearance: {
|
|
128
|
+
appearance: {},
|
|
119
129
|
},
|
|
120
130
|
],
|
|
121
131
|
defaultVariantKey: "default",
|
|
@@ -127,7 +137,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
127
137
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
128
138
|
},
|
|
129
139
|
},
|
|
130
|
-
appearance: {
|
|
140
|
+
appearance: {
|
|
141
|
+
isBordered: true,
|
|
142
|
+
hasBackground: false,
|
|
143
|
+
isEditorPresentationDifferent: false,
|
|
144
|
+
showBlockHeaderInEditor: false,
|
|
145
|
+
},
|
|
131
146
|
},
|
|
132
147
|
{
|
|
133
148
|
id: "io.supernova.block.title3",
|
|
@@ -153,7 +168,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
153
168
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
154
169
|
maxColumns: 1,
|
|
155
170
|
defaultColumns: 1,
|
|
156
|
-
appearance: {
|
|
171
|
+
appearance: {},
|
|
157
172
|
},
|
|
158
173
|
],
|
|
159
174
|
defaultVariantKey: "default",
|
|
@@ -165,7 +180,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
165
180
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
166
181
|
},
|
|
167
182
|
},
|
|
168
|
-
appearance: {
|
|
183
|
+
appearance: {
|
|
184
|
+
isBordered: true,
|
|
185
|
+
hasBackground: false,
|
|
186
|
+
isEditorPresentationDifferent: false,
|
|
187
|
+
showBlockHeaderInEditor: false,
|
|
188
|
+
},
|
|
169
189
|
},
|
|
170
190
|
{
|
|
171
191
|
id: "io.supernova.block.title4",
|
|
@@ -191,7 +211,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
191
211
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
192
212
|
maxColumns: 1,
|
|
193
213
|
defaultColumns: 1,
|
|
194
|
-
appearance: {
|
|
214
|
+
appearance: {},
|
|
195
215
|
},
|
|
196
216
|
],
|
|
197
217
|
defaultVariantKey: "default",
|
|
@@ -203,7 +223,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
203
223
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
204
224
|
},
|
|
205
225
|
},
|
|
206
|
-
appearance: {
|
|
226
|
+
appearance: {
|
|
227
|
+
isBordered: true,
|
|
228
|
+
hasBackground: false,
|
|
229
|
+
isEditorPresentationDifferent: false,
|
|
230
|
+
showBlockHeaderInEditor: false,
|
|
231
|
+
},
|
|
207
232
|
},
|
|
208
233
|
{
|
|
209
234
|
id: "io.supernova.block.title5",
|
|
@@ -229,7 +254,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
229
254
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
230
255
|
maxColumns: 1,
|
|
231
256
|
defaultColumns: 1,
|
|
232
|
-
appearance: {
|
|
257
|
+
appearance: {},
|
|
233
258
|
},
|
|
234
259
|
],
|
|
235
260
|
defaultVariantKey: "default",
|
|
@@ -241,7 +266,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
241
266
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY",
|
|
242
267
|
},
|
|
243
268
|
},
|
|
244
|
-
appearance: {
|
|
269
|
+
appearance: {
|
|
270
|
+
isBordered: true,
|
|
271
|
+
hasBackground: false,
|
|
272
|
+
isEditorPresentationDifferent: false,
|
|
273
|
+
showBlockHeaderInEditor: false,
|
|
274
|
+
},
|
|
245
275
|
},
|
|
246
276
|
{
|
|
247
277
|
id: "io.supernova.block.ordered-list",
|
|
@@ -267,7 +297,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
267
297
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
268
298
|
maxColumns: 1,
|
|
269
299
|
defaultColumns: 1,
|
|
270
|
-
appearance: {
|
|
300
|
+
appearance: {},
|
|
271
301
|
},
|
|
272
302
|
],
|
|
273
303
|
defaultVariantKey: "default",
|
|
@@ -279,7 +309,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
279
309
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
|
|
280
310
|
},
|
|
281
311
|
},
|
|
282
|
-
appearance: {
|
|
312
|
+
appearance: {
|
|
313
|
+
isBordered: true,
|
|
314
|
+
hasBackground: false,
|
|
315
|
+
isEditorPresentationDifferent: false,
|
|
316
|
+
showBlockHeaderInEditor: false,
|
|
317
|
+
},
|
|
283
318
|
},
|
|
284
319
|
{
|
|
285
320
|
id: "io.supernova.block.unordered-list",
|
|
@@ -305,7 +340,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
305
340
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
306
341
|
maxColumns: 1,
|
|
307
342
|
defaultColumns: 1,
|
|
308
|
-
appearance: {
|
|
343
|
+
appearance: {},
|
|
309
344
|
},
|
|
310
345
|
],
|
|
311
346
|
defaultVariantKey: "default",
|
|
@@ -317,7 +352,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
317
352
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK",
|
|
318
353
|
},
|
|
319
354
|
},
|
|
320
|
-
appearance: {
|
|
355
|
+
appearance: {
|
|
356
|
+
isBordered: true,
|
|
357
|
+
hasBackground: false,
|
|
358
|
+
isEditorPresentationDifferent: false,
|
|
359
|
+
showBlockHeaderInEditor: false,
|
|
360
|
+
},
|
|
321
361
|
},
|
|
322
362
|
{
|
|
323
363
|
id: "io.supernova.block.divider",
|
|
@@ -342,7 +382,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
342
382
|
},
|
|
343
383
|
maxColumns: 1,
|
|
344
384
|
defaultColumns: 1,
|
|
345
|
-
appearance: {
|
|
385
|
+
appearance: {},
|
|
346
386
|
},
|
|
347
387
|
],
|
|
348
388
|
defaultVariantKey: "default",
|
|
@@ -354,7 +394,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
354
394
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/divider-tLuxooLH",
|
|
355
395
|
},
|
|
356
396
|
},
|
|
357
|
-
appearance: {
|
|
397
|
+
appearance: {
|
|
398
|
+
isBordered: true,
|
|
399
|
+
hasBackground: false,
|
|
400
|
+
isEditorPresentationDifferent: false,
|
|
401
|
+
showBlockHeaderInEditor: false,
|
|
402
|
+
},
|
|
358
403
|
},
|
|
359
404
|
{
|
|
360
405
|
id: "io.supernova.block.blockquote",
|
|
@@ -380,7 +425,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
380
425
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
381
426
|
maxColumns: 1,
|
|
382
427
|
defaultColumns: 1,
|
|
383
|
-
appearance: {
|
|
428
|
+
appearance: {},
|
|
384
429
|
},
|
|
385
430
|
],
|
|
386
431
|
defaultVariantKey: "default",
|
|
@@ -392,14 +437,19 @@ const blocks: PageBlockDefinition[] = [
|
|
|
392
437
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/blockquote-zYWAsb6X",
|
|
393
438
|
},
|
|
394
439
|
},
|
|
395
|
-
appearance: {
|
|
440
|
+
appearance: {
|
|
441
|
+
isBordered: true,
|
|
442
|
+
hasBackground: false,
|
|
443
|
+
isEditorPresentationDifferent: false,
|
|
444
|
+
showBlockHeaderInEditor: false,
|
|
445
|
+
},
|
|
396
446
|
},
|
|
397
447
|
{
|
|
398
448
|
id: "io.supernova.block.callout",
|
|
399
449
|
name: "Callout",
|
|
400
450
|
description: "Highlight a section of text",
|
|
401
451
|
category: "Text",
|
|
402
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/
|
|
452
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/v3/callout.svg",
|
|
403
453
|
searchKeywords: ["banner", "alert", "note", "tip", "warning"],
|
|
404
454
|
item: {
|
|
405
455
|
properties: [
|
|
@@ -418,7 +468,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
418
468
|
layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
419
469
|
maxColumns: 1,
|
|
420
470
|
defaultColumns: 1,
|
|
421
|
-
appearance: {
|
|
471
|
+
appearance: {},
|
|
422
472
|
},
|
|
423
473
|
],
|
|
424
474
|
defaultVariantKey: "default",
|
|
@@ -430,7 +480,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
430
480
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/callout-ZPlZObD1",
|
|
431
481
|
},
|
|
432
482
|
},
|
|
433
|
-
appearance: {
|
|
483
|
+
appearance: {
|
|
484
|
+
isBordered: true,
|
|
485
|
+
hasBackground: false,
|
|
486
|
+
isEditorPresentationDifferent: false,
|
|
487
|
+
showBlockHeaderInEditor: false,
|
|
488
|
+
},
|
|
434
489
|
},
|
|
435
490
|
{
|
|
436
491
|
id: "io.supernova.block.image",
|
|
@@ -456,7 +511,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
456
511
|
layout: { type: "Column", children: ["image"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
457
512
|
maxColumns: 1,
|
|
458
513
|
defaultColumns: 1,
|
|
459
|
-
appearance: {
|
|
514
|
+
appearance: {},
|
|
460
515
|
},
|
|
461
516
|
],
|
|
462
517
|
defaultVariantKey: "default",
|
|
@@ -469,7 +524,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
469
524
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/image-Ue8VdT8B",
|
|
470
525
|
},
|
|
471
526
|
},
|
|
472
|
-
appearance: {
|
|
527
|
+
appearance: {
|
|
528
|
+
isBordered: false,
|
|
529
|
+
hasBackground: false,
|
|
530
|
+
isEditorPresentationDifferent: false,
|
|
531
|
+
showBlockHeaderInEditor: false,
|
|
532
|
+
},
|
|
473
533
|
},
|
|
474
534
|
{
|
|
475
535
|
id: "io.supernova.block.shortcut-links",
|
|
@@ -519,7 +579,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
519
579
|
},
|
|
520
580
|
maxColumns: 4,
|
|
521
581
|
defaultColumns: 1,
|
|
522
|
-
appearance: {
|
|
582
|
+
appearance: {},
|
|
523
583
|
},
|
|
524
584
|
{
|
|
525
585
|
id: "imageOnLeft",
|
|
@@ -549,7 +609,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
549
609
|
},
|
|
550
610
|
maxColumns: 1,
|
|
551
611
|
defaultColumns: 1,
|
|
552
|
-
appearance: {
|
|
612
|
+
appearance: {},
|
|
553
613
|
},
|
|
554
614
|
{
|
|
555
615
|
id: "iconOnTop",
|
|
@@ -564,7 +624,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
564
624
|
},
|
|
565
625
|
maxColumns: 4,
|
|
566
626
|
defaultColumns: 1,
|
|
567
|
-
appearance: {
|
|
627
|
+
appearance: {},
|
|
568
628
|
},
|
|
569
629
|
{
|
|
570
630
|
id: "iconOnLeft",
|
|
@@ -594,7 +654,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
594
654
|
},
|
|
595
655
|
maxColumns: 2,
|
|
596
656
|
defaultColumns: 1,
|
|
597
|
-
appearance: {
|
|
657
|
+
appearance: {},
|
|
598
658
|
},
|
|
599
659
|
],
|
|
600
660
|
defaultVariantKey: "imageOnTop",
|
|
@@ -607,26 +667,31 @@ const blocks: PageBlockDefinition[] = [
|
|
|
607
667
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4",
|
|
608
668
|
},
|
|
609
669
|
},
|
|
610
|
-
appearance: {
|
|
670
|
+
appearance: {
|
|
671
|
+
isBordered: true,
|
|
672
|
+
hasBackground: false,
|
|
673
|
+
isEditorPresentationDifferent: false,
|
|
674
|
+
showBlockHeaderInEditor: false,
|
|
675
|
+
},
|
|
611
676
|
},
|
|
612
677
|
{
|
|
613
|
-
id: "io.supernova.block.embed",
|
|
614
|
-
name: "
|
|
615
|
-
description: "Embed a
|
|
678
|
+
id: "io.supernova.block.embed-figma",
|
|
679
|
+
name: "Figma embed",
|
|
680
|
+
description: "Embed a Figma canvas or prototype",
|
|
616
681
|
category: "Media",
|
|
617
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/embed.svg",
|
|
618
|
-
searchKeywords: ["embed", "
|
|
682
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/embed-figma.svg",
|
|
683
|
+
searchKeywords: ["embed", "figma", "design", "prototype", "canvas"],
|
|
619
684
|
item: {
|
|
620
685
|
properties: [
|
|
621
686
|
{
|
|
622
|
-
id: "
|
|
623
|
-
name: "
|
|
687
|
+
id: "embed",
|
|
688
|
+
name: "Figma URL",
|
|
624
689
|
type: "EmbedURL",
|
|
625
690
|
options: {
|
|
626
|
-
allowCaption:
|
|
691
|
+
allowCaption: false,
|
|
627
692
|
allowResize: true,
|
|
628
693
|
defaultHeight: 400,
|
|
629
|
-
urlValidationRegex: "^(https?://)?(www.)
|
|
694
|
+
urlValidationRegex: "^(https?://)?(www.)?(figma.com)/.+$",
|
|
630
695
|
},
|
|
631
696
|
},
|
|
632
697
|
],
|
|
@@ -635,16 +700,10 @@ const blocks: PageBlockDefinition[] = [
|
|
|
635
700
|
{
|
|
636
701
|
id: "default",
|
|
637
702
|
name: "Default",
|
|
638
|
-
layout: {
|
|
639
|
-
type: "Column",
|
|
640
|
-
children: ["embedUrl"],
|
|
641
|
-
columnAlign: "Start",
|
|
642
|
-
columnResizing: "Fill",
|
|
643
|
-
gap: "Medium",
|
|
644
|
-
},
|
|
703
|
+
layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
645
704
|
maxColumns: 1,
|
|
646
705
|
defaultColumns: 1,
|
|
647
|
-
appearance: {
|
|
706
|
+
appearance: {},
|
|
648
707
|
},
|
|
649
708
|
],
|
|
650
709
|
defaultVariantKey: "default",
|
|
@@ -652,12 +711,59 @@ const blocks: PageBlockDefinition[] = [
|
|
|
652
711
|
behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
|
|
653
712
|
editorOptions: {
|
|
654
713
|
onboarding: {
|
|
655
|
-
helpText: "Embed
|
|
656
|
-
documentationLink:
|
|
657
|
-
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/embed/public-url-2ZeRQ332",
|
|
714
|
+
helpText: "Embed a Figma canvas or prototype to your documentation.",
|
|
715
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/embed-figma-GPNJsT8A",
|
|
658
716
|
},
|
|
659
717
|
},
|
|
660
|
-
appearance: {
|
|
718
|
+
appearance: {
|
|
719
|
+
isBordered: true,
|
|
720
|
+
hasBackground: false,
|
|
721
|
+
isEditorPresentationDifferent: false,
|
|
722
|
+
showBlockHeaderInEditor: false,
|
|
723
|
+
},
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
id: "io.supernova.block.storybook",
|
|
727
|
+
name: "Storybook",
|
|
728
|
+
description: "Embed Storybook canvas",
|
|
729
|
+
category: "Media",
|
|
730
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/storybook.svg",
|
|
731
|
+
searchKeywords: ["storybook", "story", "stories", "example", "preview", "code", "react"],
|
|
732
|
+
item: {
|
|
733
|
+
properties: [
|
|
734
|
+
{
|
|
735
|
+
id: "embed",
|
|
736
|
+
name: "Storybook URL",
|
|
737
|
+
type: "Storybook",
|
|
738
|
+
options: { allowCaption: true, allowResize: true, defaultHeight: 400 },
|
|
739
|
+
},
|
|
740
|
+
],
|
|
741
|
+
appearance: { isBordered: true, hasBackground: false },
|
|
742
|
+
variants: [
|
|
743
|
+
{
|
|
744
|
+
id: "default",
|
|
745
|
+
name: "Default",
|
|
746
|
+
layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
747
|
+
maxColumns: 1,
|
|
748
|
+
defaultColumns: 1,
|
|
749
|
+
appearance: {},
|
|
750
|
+
},
|
|
751
|
+
],
|
|
752
|
+
defaultVariantKey: "default",
|
|
753
|
+
},
|
|
754
|
+
behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
|
|
755
|
+
editorOptions: {
|
|
756
|
+
onboarding: {
|
|
757
|
+
helpText: "Embed a Storybook story to your documentation.",
|
|
758
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/storybook-1EGPhwBl",
|
|
759
|
+
},
|
|
760
|
+
},
|
|
761
|
+
appearance: {
|
|
762
|
+
isBordered: true,
|
|
763
|
+
hasBackground: false,
|
|
764
|
+
isEditorPresentationDifferent: false,
|
|
765
|
+
showBlockHeaderInEditor: false,
|
|
766
|
+
},
|
|
661
767
|
},
|
|
662
768
|
{
|
|
663
769
|
id: "io.supernova.block.embed-youtube",
|
|
@@ -688,7 +794,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
688
794
|
layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
689
795
|
maxColumns: 1,
|
|
690
796
|
defaultColumns: 1,
|
|
691
|
-
appearance: {
|
|
797
|
+
appearance: {},
|
|
692
798
|
},
|
|
693
799
|
],
|
|
694
800
|
defaultVariantKey: "default",
|
|
@@ -701,7 +807,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
701
807
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/youtube-Gh8VUrSF",
|
|
702
808
|
},
|
|
703
809
|
},
|
|
704
|
-
appearance: {
|
|
810
|
+
appearance: {
|
|
811
|
+
isBordered: true,
|
|
812
|
+
hasBackground: false,
|
|
813
|
+
isEditorPresentationDifferent: false,
|
|
814
|
+
showBlockHeaderInEditor: false,
|
|
815
|
+
},
|
|
705
816
|
},
|
|
706
817
|
{
|
|
707
818
|
id: "io.supernova.block.embed-lottie",
|
|
@@ -755,7 +866,8 @@ const blocks: PageBlockDefinition[] = [
|
|
|
755
866
|
{
|
|
756
867
|
id: "default",
|
|
757
868
|
name: "Default",
|
|
758
|
-
image: "https://cdn-assets.supernova.io/blocks/variants/lottie.svg",
|
|
869
|
+
image: "https://cdn-assets.supernova.io/blocks/variants/lottie-player.svg",
|
|
870
|
+
description: "Embed a Lottie animation to your documentation.",
|
|
759
871
|
layout: {
|
|
760
872
|
type: "Column",
|
|
761
873
|
children: ["url", "height", "width", "autoplay", "loop", "playerControls"],
|
|
@@ -765,7 +877,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
765
877
|
},
|
|
766
878
|
maxColumns: 1,
|
|
767
879
|
defaultColumns: 1,
|
|
768
|
-
appearance: {
|
|
880
|
+
appearance: {},
|
|
769
881
|
},
|
|
770
882
|
],
|
|
771
883
|
defaultVariantKey: "default",
|
|
@@ -778,64 +890,31 @@ const blocks: PageBlockDefinition[] = [
|
|
|
778
890
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/lottie-preview-7CqFdGv9",
|
|
779
891
|
},
|
|
780
892
|
},
|
|
781
|
-
appearance: {
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
description: "Embed Storybook canvas",
|
|
787
|
-
category: "Media",
|
|
788
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/storybook.svg",
|
|
789
|
-
searchKeywords: ["storybook", "story", "stories", "example", "preview", "code", "react"],
|
|
790
|
-
item: {
|
|
791
|
-
properties: [
|
|
792
|
-
{
|
|
793
|
-
id: "embed",
|
|
794
|
-
name: "Storybook URL",
|
|
795
|
-
type: "Storybook",
|
|
796
|
-
options: { allowCaption: true, allowResize: true, defaultHeight: 400 },
|
|
797
|
-
},
|
|
798
|
-
],
|
|
799
|
-
appearance: { isBordered: true, hasBackground: false },
|
|
800
|
-
variants: [
|
|
801
|
-
{
|
|
802
|
-
id: "default",
|
|
803
|
-
name: "Default",
|
|
804
|
-
layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
805
|
-
maxColumns: 1,
|
|
806
|
-
defaultColumns: 1,
|
|
807
|
-
appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false },
|
|
808
|
-
},
|
|
809
|
-
],
|
|
810
|
-
defaultVariantKey: "default",
|
|
811
|
-
},
|
|
812
|
-
behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
|
|
813
|
-
editorOptions: {
|
|
814
|
-
onboarding: {
|
|
815
|
-
helpText: "Embed a Storybook story to your documentation.",
|
|
816
|
-
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/storybook-1EGPhwBl",
|
|
817
|
-
},
|
|
893
|
+
appearance: {
|
|
894
|
+
isBordered: true,
|
|
895
|
+
hasBackground: false,
|
|
896
|
+
isEditorPresentationDifferent: true,
|
|
897
|
+
showBlockHeaderInEditor: true,
|
|
818
898
|
},
|
|
819
|
-
appearance: { isBordered: true, hasBackground: false },
|
|
820
899
|
},
|
|
821
900
|
{
|
|
822
|
-
id: "io.supernova.block.embed
|
|
823
|
-
name: "
|
|
824
|
-
description: "Embed a
|
|
901
|
+
id: "io.supernova.block.embed",
|
|
902
|
+
name: "Embed",
|
|
903
|
+
description: "Embed a generic URL",
|
|
825
904
|
category: "Media",
|
|
826
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/embed
|
|
827
|
-
searchKeywords: ["embed", "
|
|
905
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/embed.svg",
|
|
906
|
+
searchKeywords: ["embed", "url", "iframe", "site", "import"],
|
|
828
907
|
item: {
|
|
829
908
|
properties: [
|
|
830
909
|
{
|
|
831
|
-
id: "
|
|
832
|
-
name: "
|
|
910
|
+
id: "embedUrl",
|
|
911
|
+
name: "Embed URL",
|
|
833
912
|
type: "EmbedURL",
|
|
834
913
|
options: {
|
|
835
|
-
allowCaption:
|
|
914
|
+
allowCaption: true,
|
|
836
915
|
allowResize: true,
|
|
837
916
|
defaultHeight: 400,
|
|
838
|
-
urlValidationRegex: "^(https?://)?(www.)
|
|
917
|
+
urlValidationRegex: "^(https?://)?(www.)?.+$",
|
|
839
918
|
},
|
|
840
919
|
},
|
|
841
920
|
],
|
|
@@ -844,10 +923,16 @@ const blocks: PageBlockDefinition[] = [
|
|
|
844
923
|
{
|
|
845
924
|
id: "default",
|
|
846
925
|
name: "Default",
|
|
847
|
-
layout: {
|
|
926
|
+
layout: {
|
|
927
|
+
type: "Column",
|
|
928
|
+
children: ["embedUrl"],
|
|
929
|
+
columnAlign: "Start",
|
|
930
|
+
columnResizing: "Fill",
|
|
931
|
+
gap: "Medium",
|
|
932
|
+
},
|
|
848
933
|
maxColumns: 1,
|
|
849
934
|
defaultColumns: 1,
|
|
850
|
-
appearance: {
|
|
935
|
+
appearance: {},
|
|
851
936
|
},
|
|
852
937
|
],
|
|
853
938
|
defaultVariantKey: "default",
|
|
@@ -855,11 +940,17 @@ const blocks: PageBlockDefinition[] = [
|
|
|
855
940
|
behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
|
|
856
941
|
editorOptions: {
|
|
857
942
|
onboarding: {
|
|
858
|
-
helpText: "Embed
|
|
859
|
-
documentationLink:
|
|
943
|
+
helpText: "Embed any page to your documentation as an iframe.",
|
|
944
|
+
documentationLink:
|
|
945
|
+
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/embed/public-url-2ZeRQ332",
|
|
860
946
|
},
|
|
861
947
|
},
|
|
862
|
-
appearance: {
|
|
948
|
+
appearance: {
|
|
949
|
+
isBordered: true,
|
|
950
|
+
hasBackground: false,
|
|
951
|
+
isEditorPresentationDifferent: false,
|
|
952
|
+
showBlockHeaderInEditor: false,
|
|
953
|
+
},
|
|
863
954
|
},
|
|
864
955
|
{
|
|
865
956
|
id: "io.supernova.block.markdown",
|
|
@@ -892,7 +983,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
892
983
|
},
|
|
893
984
|
maxColumns: 1,
|
|
894
985
|
defaultColumns: 1,
|
|
895
|
-
appearance: {
|
|
986
|
+
appearance: {},
|
|
896
987
|
},
|
|
897
988
|
{
|
|
898
989
|
id: "bordered",
|
|
@@ -907,7 +998,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
907
998
|
},
|
|
908
999
|
maxColumns: 1,
|
|
909
1000
|
defaultColumns: 1,
|
|
910
|
-
appearance: {
|
|
1001
|
+
appearance: {},
|
|
911
1002
|
},
|
|
912
1003
|
{
|
|
913
1004
|
id: "boxed",
|
|
@@ -922,7 +1013,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
922
1013
|
},
|
|
923
1014
|
maxColumns: 1,
|
|
924
1015
|
defaultColumns: 1,
|
|
925
|
-
appearance: {
|
|
1016
|
+
appearance: {},
|
|
926
1017
|
},
|
|
927
1018
|
],
|
|
928
1019
|
defaultVariantKey: "plain",
|
|
@@ -935,7 +1026,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
935
1026
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/code/markdown/general-B8wQVOem",
|
|
936
1027
|
},
|
|
937
1028
|
},
|
|
938
|
-
appearance: {
|
|
1029
|
+
appearance: {
|
|
1030
|
+
isBordered: true,
|
|
1031
|
+
hasBackground: false,
|
|
1032
|
+
isEditorPresentationDifferent: true,
|
|
1033
|
+
showBlockHeaderInEditor: false,
|
|
1034
|
+
},
|
|
939
1035
|
},
|
|
940
1036
|
{
|
|
941
1037
|
id: "io.supernova.block.table",
|
|
@@ -954,7 +1050,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
954
1050
|
layout: { type: "Column", children: ["table"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
955
1051
|
maxColumns: 1,
|
|
956
1052
|
defaultColumns: 1,
|
|
957
|
-
appearance: {
|
|
1053
|
+
appearance: {},
|
|
958
1054
|
},
|
|
959
1055
|
],
|
|
960
1056
|
defaultVariantKey: "default",
|
|
@@ -966,7 +1062,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
966
1062
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/layout/table-R8KGnxej",
|
|
967
1063
|
},
|
|
968
1064
|
},
|
|
969
|
-
appearance: {
|
|
1065
|
+
appearance: {
|
|
1066
|
+
isBordered: true,
|
|
1067
|
+
hasBackground: false,
|
|
1068
|
+
isEditorPresentationDifferent: false,
|
|
1069
|
+
showBlockHeaderInEditor: false,
|
|
1070
|
+
},
|
|
970
1071
|
},
|
|
971
1072
|
{
|
|
972
1073
|
id: "io.supernova.block.design-tokens",
|
|
@@ -1004,7 +1105,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1004
1105
|
layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1005
1106
|
maxColumns: 1,
|
|
1006
1107
|
defaultColumns: 1,
|
|
1007
|
-
appearance: {
|
|
1108
|
+
appearance: {},
|
|
1008
1109
|
},
|
|
1009
1110
|
{
|
|
1010
1111
|
id: "grid",
|
|
@@ -1013,7 +1114,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1013
1114
|
layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1014
1115
|
maxColumns: 4,
|
|
1015
1116
|
defaultColumns: 1,
|
|
1016
|
-
appearance: {
|
|
1117
|
+
appearance: {},
|
|
1017
1118
|
},
|
|
1018
1119
|
],
|
|
1019
1120
|
defaultVariantKey: "table",
|
|
@@ -1026,14 +1127,19 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1026
1127
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09",
|
|
1027
1128
|
},
|
|
1028
1129
|
},
|
|
1029
|
-
appearance: {
|
|
1130
|
+
appearance: {
|
|
1131
|
+
isBordered: true,
|
|
1132
|
+
hasBackground: false,
|
|
1133
|
+
isEditorPresentationDifferent: false,
|
|
1134
|
+
showBlockHeaderInEditor: false,
|
|
1135
|
+
},
|
|
1030
1136
|
},
|
|
1031
1137
|
{
|
|
1032
1138
|
id: "io.supernova.block.token-color-ramps",
|
|
1033
1139
|
name: "Color ramps",
|
|
1034
1140
|
description: "The best way to display colors",
|
|
1035
1141
|
category: "Tokens",
|
|
1036
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/
|
|
1142
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/color-ramp.svg",
|
|
1037
1143
|
searchKeywords: ["tokens", "ramp", "shades", "palette", "spectrum", "stack", "range", "swatch"],
|
|
1038
1144
|
item: {
|
|
1039
1145
|
properties: [
|
|
@@ -1053,7 +1159,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1053
1159
|
layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1054
1160
|
maxColumns: 2,
|
|
1055
1161
|
defaultColumns: 1,
|
|
1056
|
-
appearance: {
|
|
1162
|
+
appearance: { isEditorPresentationDifferent: true },
|
|
1057
1163
|
},
|
|
1058
1164
|
],
|
|
1059
1165
|
defaultVariantKey: "default",
|
|
@@ -1062,14 +1168,19 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1062
1168
|
editorOptions: {
|
|
1063
1169
|
onboarding: { helpText: "The best way to display colors", documentationLink: "https://learn.supernova.io" },
|
|
1064
1170
|
},
|
|
1065
|
-
appearance: {
|
|
1171
|
+
appearance: {
|
|
1172
|
+
isBordered: true,
|
|
1173
|
+
hasBackground: false,
|
|
1174
|
+
isEditorPresentationDifferent: false,
|
|
1175
|
+
showBlockHeaderInEditor: false,
|
|
1176
|
+
},
|
|
1066
1177
|
},
|
|
1067
1178
|
{
|
|
1068
1179
|
id: "io.supernova.block.color-accessibility-grid",
|
|
1069
1180
|
name: "Accessibility color grid",
|
|
1070
1181
|
description: "Visualize accessibility of your color tokens",
|
|
1071
1182
|
category: "Tokens",
|
|
1072
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/token-accessibility-grid.svg",
|
|
1183
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/v3/token-accessibility-grid.svg",
|
|
1073
1184
|
searchKeywords: ["tokens", "color", "accessibility", "grid", "contrast"],
|
|
1074
1185
|
item: {
|
|
1075
1186
|
properties: [
|
|
@@ -1091,7 +1202,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1091
1202
|
layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1092
1203
|
maxColumns: 1,
|
|
1093
1204
|
defaultColumns: 1,
|
|
1094
|
-
appearance: {
|
|
1205
|
+
appearance: { isEditorPresentationDifferent: true },
|
|
1095
1206
|
},
|
|
1096
1207
|
],
|
|
1097
1208
|
defaultVariantKey: "default",
|
|
@@ -1103,7 +1214,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1103
1214
|
documentationLink: "https://learn.supernova.io",
|
|
1104
1215
|
},
|
|
1105
1216
|
},
|
|
1106
|
-
appearance: {
|
|
1217
|
+
appearance: {
|
|
1218
|
+
isBordered: true,
|
|
1219
|
+
hasBackground: false,
|
|
1220
|
+
isEditorPresentationDifferent: false,
|
|
1221
|
+
showBlockHeaderInEditor: false,
|
|
1222
|
+
},
|
|
1107
1223
|
},
|
|
1108
1224
|
{
|
|
1109
1225
|
id: "io.supernova.block.code",
|
|
@@ -1122,21 +1238,26 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1122
1238
|
layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1123
1239
|
maxColumns: 1,
|
|
1124
1240
|
defaultColumns: 1,
|
|
1125
|
-
appearance: {
|
|
1241
|
+
appearance: {},
|
|
1126
1242
|
},
|
|
1127
1243
|
],
|
|
1128
1244
|
defaultVariantKey: "default",
|
|
1129
1245
|
},
|
|
1130
1246
|
behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
|
|
1131
1247
|
editorOptions: { onboarding: { helpText: "Code descriptor." } },
|
|
1132
|
-
appearance: {
|
|
1248
|
+
appearance: {
|
|
1249
|
+
isBordered: true,
|
|
1250
|
+
hasBackground: false,
|
|
1251
|
+
isEditorPresentationDifferent: false,
|
|
1252
|
+
showBlockHeaderInEditor: false,
|
|
1253
|
+
},
|
|
1133
1254
|
},
|
|
1134
1255
|
{
|
|
1135
1256
|
id: "io.supernova.block.code-react",
|
|
1136
1257
|
name: "React code",
|
|
1137
1258
|
description: "Render a code snippet",
|
|
1138
1259
|
category: "Code",
|
|
1139
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/
|
|
1260
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/v3/code-react.svg",
|
|
1140
1261
|
searchKeywords: ["code", "react", "snippet", "storybook", "editor", "example", "sandbox"],
|
|
1141
1262
|
item: {
|
|
1142
1263
|
properties: [
|
|
@@ -1162,7 +1283,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1162
1283
|
layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1163
1284
|
maxColumns: 1,
|
|
1164
1285
|
defaultColumns: 1,
|
|
1165
|
-
appearance: {
|
|
1286
|
+
appearance: {},
|
|
1166
1287
|
},
|
|
1167
1288
|
{
|
|
1168
1289
|
id: "codeTop",
|
|
@@ -1172,7 +1293,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1172
1293
|
layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1173
1294
|
maxColumns: 1,
|
|
1174
1295
|
defaultColumns: 1,
|
|
1175
|
-
appearance: {
|
|
1296
|
+
appearance: {},
|
|
1176
1297
|
},
|
|
1177
1298
|
{
|
|
1178
1299
|
id: "codeLeft",
|
|
@@ -1182,7 +1303,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1182
1303
|
layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1183
1304
|
maxColumns: 1,
|
|
1184
1305
|
defaultColumns: 1,
|
|
1185
|
-
appearance: {
|
|
1306
|
+
appearance: {},
|
|
1186
1307
|
},
|
|
1187
1308
|
{
|
|
1188
1309
|
id: "codeRight",
|
|
@@ -1192,7 +1313,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1192
1313
|
layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1193
1314
|
maxColumns: 1,
|
|
1194
1315
|
defaultColumns: 1,
|
|
1195
|
-
appearance: {
|
|
1316
|
+
appearance: {},
|
|
1196
1317
|
},
|
|
1197
1318
|
],
|
|
1198
1319
|
defaultVariantKey: "codeBottom",
|
|
@@ -1205,7 +1326,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1205
1326
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/code/render-react-code-vxufnkFm",
|
|
1206
1327
|
},
|
|
1207
1328
|
},
|
|
1208
|
-
appearance: {
|
|
1329
|
+
appearance: {
|
|
1330
|
+
isBordered: false,
|
|
1331
|
+
hasBackground: false,
|
|
1332
|
+
isEditorPresentationDifferent: false,
|
|
1333
|
+
showBlockHeaderInEditor: false,
|
|
1334
|
+
},
|
|
1209
1335
|
},
|
|
1210
1336
|
{
|
|
1211
1337
|
id: "io.supernova.block.assets",
|
|
@@ -1226,7 +1352,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1226
1352
|
layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1227
1353
|
maxColumns: 8,
|
|
1228
1354
|
defaultColumns: 1,
|
|
1229
|
-
appearance: {
|
|
1355
|
+
appearance: { isEditorPresentationDifferent: false },
|
|
1230
1356
|
},
|
|
1231
1357
|
{
|
|
1232
1358
|
id: "square-grid",
|
|
@@ -1236,7 +1362,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1236
1362
|
layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1237
1363
|
maxColumns: 8,
|
|
1238
1364
|
defaultColumns: 1,
|
|
1239
|
-
appearance: {
|
|
1365
|
+
appearance: { isEditorPresentationDifferent: false },
|
|
1240
1366
|
},
|
|
1241
1367
|
{
|
|
1242
1368
|
id: "borderless-grid",
|
|
@@ -1246,7 +1372,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1246
1372
|
layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1247
1373
|
maxColumns: 8,
|
|
1248
1374
|
defaultColumns: 1,
|
|
1249
|
-
appearance: {
|
|
1375
|
+
appearance: { isEditorPresentationDifferent: false },
|
|
1250
1376
|
},
|
|
1251
1377
|
],
|
|
1252
1378
|
defaultVariantKey: "default",
|
|
@@ -1259,7 +1385,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1259
1385
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/asset/general-xa6EgXb2",
|
|
1260
1386
|
},
|
|
1261
1387
|
},
|
|
1262
|
-
appearance: {
|
|
1388
|
+
appearance: {
|
|
1389
|
+
isBordered: true,
|
|
1390
|
+
hasBackground: false,
|
|
1391
|
+
isEditorPresentationDifferent: false,
|
|
1392
|
+
showBlockHeaderInEditor: false,
|
|
1393
|
+
},
|
|
1263
1394
|
},
|
|
1264
1395
|
{
|
|
1265
1396
|
id: "io.supernova.block.figma-frames",
|
|
@@ -1293,7 +1424,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1293
1424
|
},
|
|
1294
1425
|
maxColumns: 1,
|
|
1295
1426
|
defaultColumns: 1,
|
|
1296
|
-
appearance: {
|
|
1427
|
+
appearance: {},
|
|
1297
1428
|
},
|
|
1298
1429
|
{
|
|
1299
1430
|
id: "plain",
|
|
@@ -1309,7 +1440,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1309
1440
|
},
|
|
1310
1441
|
maxColumns: 1,
|
|
1311
1442
|
defaultColumns: 1,
|
|
1312
|
-
appearance: {
|
|
1443
|
+
appearance: {},
|
|
1313
1444
|
},
|
|
1314
1445
|
],
|
|
1315
1446
|
defaultVariantKey: "bordered",
|
|
@@ -1322,7 +1453,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1322
1453
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/figma/figma-frames/general-f3IYC5dg",
|
|
1323
1454
|
},
|
|
1324
1455
|
},
|
|
1325
|
-
appearance: {
|
|
1456
|
+
appearance: {
|
|
1457
|
+
isBordered: true,
|
|
1458
|
+
hasBackground: false,
|
|
1459
|
+
isEditorPresentationDifferent: false,
|
|
1460
|
+
showBlockHeaderInEditor: false,
|
|
1461
|
+
},
|
|
1326
1462
|
},
|
|
1327
1463
|
{
|
|
1328
1464
|
id: "io.supernova.block.release-notes",
|
|
@@ -1338,11 +1474,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1338
1474
|
{
|
|
1339
1475
|
id: "default",
|
|
1340
1476
|
name: "Default",
|
|
1341
|
-
image: "https://cdn-assets.supernova.io/blocks/variants/release-notes.svg",
|
|
1477
|
+
image: "https://cdn-assets.supernova.io/blocks/variants/release-notes-2.svg",
|
|
1478
|
+
description: "Show formatted release notes from all previously released versions.",
|
|
1342
1479
|
layout: { type: "Column", children: [], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
|
|
1343
1480
|
maxColumns: 1,
|
|
1344
1481
|
defaultColumns: 1,
|
|
1345
|
-
appearance: {
|
|
1482
|
+
appearance: {},
|
|
1346
1483
|
},
|
|
1347
1484
|
],
|
|
1348
1485
|
defaultVariantKey: "default",
|
|
@@ -1350,10 +1487,15 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1350
1487
|
behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
|
|
1351
1488
|
editorOptions: {
|
|
1352
1489
|
onboarding: {
|
|
1353
|
-
helpText: "Show formatted release notes from all
|
|
1490
|
+
helpText: "Show formatted release notes from all previously released versions.",
|
|
1354
1491
|
},
|
|
1355
1492
|
},
|
|
1356
|
-
appearance: {
|
|
1493
|
+
appearance: {
|
|
1494
|
+
isBordered: true,
|
|
1495
|
+
hasBackground: false,
|
|
1496
|
+
isEditorPresentationDifferent: true,
|
|
1497
|
+
showBlockHeaderInEditor: true,
|
|
1498
|
+
},
|
|
1357
1499
|
},
|
|
1358
1500
|
{
|
|
1359
1501
|
id: "io.supernova.block.component-checklist",
|
|
@@ -1398,7 +1540,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1398
1540
|
},
|
|
1399
1541
|
maxColumns: 1,
|
|
1400
1542
|
defaultColumns: 1,
|
|
1401
|
-
appearance: {
|
|
1543
|
+
appearance: { isEditorPresentationDifferent: true },
|
|
1402
1544
|
},
|
|
1403
1545
|
],
|
|
1404
1546
|
defaultVariantKey: "default",
|
|
@@ -1411,7 +1553,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1411
1553
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-checklist-NXepPIpZ",
|
|
1412
1554
|
},
|
|
1413
1555
|
},
|
|
1414
|
-
appearance: {
|
|
1556
|
+
appearance: {
|
|
1557
|
+
isBordered: true,
|
|
1558
|
+
hasBackground: false,
|
|
1559
|
+
isEditorPresentationDifferent: false,
|
|
1560
|
+
showBlockHeaderInEditor: false,
|
|
1561
|
+
},
|
|
1415
1562
|
},
|
|
1416
1563
|
{
|
|
1417
1564
|
id: "io.supernova.block.component-checklist-all",
|
|
@@ -1450,7 +1597,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1450
1597
|
},
|
|
1451
1598
|
maxColumns: 1,
|
|
1452
1599
|
defaultColumns: 1,
|
|
1453
|
-
appearance: {
|
|
1600
|
+
appearance: { isEditorPresentationDifferent: true },
|
|
1454
1601
|
},
|
|
1455
1602
|
],
|
|
1456
1603
|
defaultVariantKey: "default",
|
|
@@ -1463,7 +1610,12 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1463
1610
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-overview-table-W8eOtJ5t",
|
|
1464
1611
|
},
|
|
1465
1612
|
},
|
|
1466
|
-
appearance: {
|
|
1613
|
+
appearance: {
|
|
1614
|
+
isBordered: true,
|
|
1615
|
+
hasBackground: false,
|
|
1616
|
+
isEditorPresentationDifferent: false,
|
|
1617
|
+
showBlockHeaderInEditor: false,
|
|
1618
|
+
},
|
|
1467
1619
|
},
|
|
1468
1620
|
{
|
|
1469
1621
|
id: "io.supernova.block.component-health",
|
|
@@ -1496,7 +1648,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1496
1648
|
},
|
|
1497
1649
|
maxColumns: 1,
|
|
1498
1650
|
defaultColumns: 1,
|
|
1499
|
-
appearance: {
|
|
1651
|
+
appearance: { isEditorPresentationDifferent: true },
|
|
1500
1652
|
},
|
|
1501
1653
|
],
|
|
1502
1654
|
defaultVariantKey: "default",
|
|
@@ -1509,6 +1661,11 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1509
1661
|
"https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-health-sezSxEED",
|
|
1510
1662
|
},
|
|
1511
1663
|
},
|
|
1512
|
-
appearance: {
|
|
1664
|
+
appearance: {
|
|
1665
|
+
isBordered: true,
|
|
1666
|
+
hasBackground: false,
|
|
1667
|
+
isEditorPresentationDifferent: false,
|
|
1668
|
+
showBlockHeaderInEditor: false,
|
|
1669
|
+
},
|
|
1513
1670
|
},
|
|
1514
1671
|
];
|