@supernova-studio/client 0.48.7 → 1.0.1

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