@supernova-studio/client 0.30.0 → 0.31.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.js CHANGED
@@ -1022,10 +1022,10 @@ var PageBlockItemEmbedValue = _zod.z.object({
1022
1022
  }).optional()
1023
1023
  });
1024
1024
  var PageBlockItemFigmaNodeValue = _zod.z.object({
1025
- selectedPropertyIds: _zod.z.array(_zod.z.string()).optional(),
1026
1025
  showSearch: _zod.z.boolean().optional(),
1027
1026
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
1028
1027
  backgroundColor: PageBlockColorV2.optional(),
1028
+ showFrameDetails: _zod.z.boolean().optional(),
1029
1029
  value: _zod.z.array(
1030
1030
  _zod.z.object({
1031
1031
  entityId: _zod.z.string(),
@@ -1157,10 +1157,6 @@ var DocumentationPageDataV1 = _zod.z.object({
1157
1157
  blocks: _zod.z.array(PageBlockV1),
1158
1158
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
1159
1159
  });
1160
- var DocumentationPageElementDataV1 = _zod.z.object({
1161
- dataVersion: _zod.z.literal(1).optional().default(1),
1162
- value: DocumentationPageDataV1
1163
- });
1164
1160
  var DocumentationItemHeaderV2 = _zod.z.object({
1165
1161
  description: _zod.z.string(),
1166
1162
  alignment: DocumentationItemHeaderAlignmentSchema,
@@ -1186,10 +1182,6 @@ var DocumentationItemConfigurationV2 = _zod.z.object({
1186
1182
  var DocumentationPageDataV2 = _zod.z.object({
1187
1183
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1188
1184
  });
1189
- var DocumentationPageElementDataV2 = _zod.z.object({
1190
- value: DocumentationPageDataV1,
1191
- valueV2: DocumentationPageDataV2.optional()
1192
- });
1193
1185
  var DesignElementOrigin = _zod.z.object({
1194
1186
  id: _zod.z.string(),
1195
1187
  sourceId: _zod.z.string(),
@@ -1331,18 +1323,10 @@ var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
1331
1323
  var GradientTokenValue = _zod.z.array(GradientLayerData);
1332
1324
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
1333
1325
  var DocumentationGroupBehavior = _zod.z.enum(["Group", "Tabs"]);
1334
- var ElementGroupDataDeprecated = _zod.z.object({
1335
- behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1336
- configuration: nullishToOptional(DocumentationItemConfigurationV1)
1337
- });
1338
1326
  var ElementGroupDataV2 = _zod.z.object({
1339
1327
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1340
1328
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1341
1329
  });
1342
- var ElementGroupElementData = _zod.z.object({
1343
- value: ElementGroupDataDeprecated.optional(),
1344
- valueV2: ElementGroupDataV2.optional()
1345
- });
1346
1330
  var LetterSpacingUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
1347
1331
  var LetterSpacingValue = _zod.z.object({
1348
1332
  unit: LetterSpacingUnit,
@@ -1936,7 +1920,8 @@ function zeroNumberByDefault2() {
1936
1920
  var PageBlockDefinitionAppearance = _zod.z.object({
1937
1921
  isBordered: _zod.z.boolean().optional(),
1938
1922
  hasBackground: _zod.z.boolean().optional(),
1939
- isEditorPresentationDifferent: _zod.z.boolean().optional()
1923
+ isEditorPresentationDifferent: _zod.z.boolean().optional(),
1924
+ showBlockHeaderInEditor: _zod.z.boolean().optional()
1940
1925
  });
1941
1926
  var PageBlockDefinitionLayoutType = _zod.z.enum(["Column", "Row"]);
1942
1927
  var PageBlockDefinitionLayoutGap = _zod.z.enum(["Small", "Medium", "Large", "None"]);
@@ -2011,7 +1996,8 @@ var PageBlockDefinitionTextPropertyStyle = _zod.z.enum([
2011
1996
  "DefaultSemibold",
2012
1997
  "Small",
2013
1998
  "SmallBold",
2014
- "SmallSemibold"
1999
+ "SmallSemibold",
2000
+ "Custom"
2015
2001
  ]);
2016
2002
  var PageBlockDefinitionTextPropertyColor = _zod.z.enum(["Neutral", "NeutralFaded"]);
2017
2003
  var PageBlockDefinitionBooleanPropertyStyle = _zod.z.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
@@ -4183,7 +4169,9 @@ function documentationHierarchyToYjs(doc, transaction) {
4183
4169
  transaction.groups.forEach((group) => {
4184
4170
  const sanitizedGroup = {
4185
4171
  ...group,
4186
- data: {}
4172
+ data: {
4173
+ behavior: _optionalChain([group, 'access', _8 => _8.data, 'optionalAccess', _9 => _9.behavior])
4174
+ }
4187
4175
  };
4188
4176
  groupsMap.set(group.id, JSON.parse(JSON.stringify(sanitizedGroup)));
4189
4177
  });
@@ -4224,7 +4212,7 @@ var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
4224
4212
  function itemConfigurationToYjs(yDoc, item) {
4225
4213
  yDoc.transact((trx) => {
4226
4214
  const { title, configuration } = item;
4227
- const header = _optionalChain([configuration, 'optionalAccess', _8 => _8.header]);
4215
+ const header = _optionalChain([configuration, 'optionalAccess', _10 => _10.header]);
4228
4216
  if (title !== void 0) {
4229
4217
  const headerYMap = trx.doc.getMap("itemTitle");
4230
4218
  headerYMap.set("title", title);
@@ -4241,7 +4229,7 @@ function itemConfigurationToYjs(yDoc, item) {
4241
4229
  header.showCoverText !== void 0 && headerYMap.set("showCoverText", header.showCoverText);
4242
4230
  header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
4243
4231
  }
4244
- if (_optionalChain([configuration, 'optionalAccess', _9 => _9.showSidebar]) !== void 0) {
4232
+ if (_optionalChain([configuration, 'optionalAccess', _11 => _11.showSidebar]) !== void 0) {
4245
4233
  const configYMap = trx.doc.getMap("itemConfiguration");
4246
4234
  configYMap.set("showSidebar", configuration.showSidebar);
4247
4235
  }
@@ -5139,7 +5127,7 @@ function serializeAsRichTextBlock(input) {
5139
5127
  const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
5140
5128
  const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
5141
5129
  const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
5142
- const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _10 => _10.richTextStyle]), () => ( "Default"));
5130
+ const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _12 => _12.richTextStyle]), () => ( "Default"));
5143
5131
  switch (style) {
5144
5132
  case "Callout":
5145
5133
  return serializeAsCallout(enrichedInput);
@@ -5196,7 +5184,7 @@ function serializeAsMultiRichTextBlock(input) {
5196
5184
  const textPropertyValue = BlockParsingUtils.multiRichTextPropertyValue(blockItem, multiRichTextProperty.id);
5197
5185
  const enrichedInput = { ...input, multiRichTextPropertyValue: textPropertyValue };
5198
5186
  const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
5199
- const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _11 => _11.multiRichTextStyle]), () => ( "Default"));
5187
+ const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _13 => _13.multiRichTextStyle]), () => ( "Default"));
5200
5188
  switch (style) {
5201
5189
  case "Default":
5202
5190
  return serializeAsMultiParagraph(enrichedInput);
@@ -5353,7 +5341,7 @@ function serializeBlockNodeAttributes(input) {
5353
5341
  };
5354
5342
  }
5355
5343
  function richTextHeadingLevel(property) {
5356
- const style = _optionalChain([property, 'access', _12 => _12.options, 'optionalAccess', _13 => _13.richTextStyle]);
5344
+ const style = _optionalChain([property, 'access', _14 => _14.options, 'optionalAccess', _15 => _15.richTextStyle]);
5357
5345
  if (!style)
5358
5346
  return void 0;
5359
5347
  switch (style) {
@@ -5459,7 +5447,7 @@ function serializeAsCustomBlock(block, definition) {
5459
5447
  linksTo: i.linksTo
5460
5448
  };
5461
5449
  });
5462
- const columns = _optionalChain([block, 'access', _14 => _14.data, 'access', _15 => _15.appearance, 'optionalAccess', _16 => _16.numberOfColumns]);
5450
+ const columns = _optionalChain([block, 'access', _16 => _16.data, 'access', _17 => _17.appearance, 'optionalAccess', _18 => _18.numberOfColumns]);
5463
5451
  return {
5464
5452
  type: serializeCustomBlockNodeType(block, definition),
5465
5453
  attrs: {
@@ -5503,7 +5491,7 @@ var blocks = [
5503
5491
  name: "Text",
5504
5492
  description: "Plain text",
5505
5493
  category: "Text",
5506
- icon: "https://cdn-assets.supernova.io/blocks/icons/text.svg",
5494
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/text.svg",
5507
5495
  searchKeywords: ["paragraph", "rich text"],
5508
5496
  item: {
5509
5497
  properties: [
@@ -5511,369 +5499,220 @@ var blocks = [
5511
5499
  id: "text",
5512
5500
  name: "Text",
5513
5501
  type: "RichText",
5514
- options: {
5515
- richTextStyle: "Default"
5516
- }
5502
+ options: { richTextStyle: "Default" }
5517
5503
  }
5518
5504
  ],
5519
- appearance: {
5520
- isBordered: false,
5521
- hasBackground: false
5522
- },
5505
+ appearance: { isBordered: true, hasBackground: false },
5523
5506
  variants: [
5524
5507
  {
5525
5508
  id: "default",
5526
5509
  name: "Default",
5527
- layout: {
5528
- type: "Column",
5529
- children: ["text"],
5530
- columnAlign: "Start",
5531
- columnResizing: "Fill",
5532
- gap: "Medium"
5533
- },
5510
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
5534
5511
  maxColumns: 1,
5535
5512
  defaultColumns: 1,
5536
- appearance: {
5537
- isBordered: false,
5538
- hasBackground: false,
5539
- isEditorPresentationDifferent: false
5540
- }
5513
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
5541
5514
  }
5542
5515
  ],
5543
5516
  defaultVariantKey: "default"
5544
5517
  },
5545
- behavior: {
5546
- dataType: "Item",
5547
- items: {
5548
- numberOfItems: 1,
5549
- allowLinks: false
5550
- }
5551
- },
5518
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
5552
5519
  editorOptions: {
5553
5520
  onboarding: {
5554
5521
  helpText: "Use rich text block to write text and add additional formatting to it.",
5555
5522
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/text-HxZ9ssJR"
5556
5523
  }
5557
5524
  },
5558
- appearance: {
5559
- isBordered: false,
5560
- hasBackground: false
5561
- }
5525
+ appearance: { isBordered: true, hasBackground: false }
5562
5526
  },
5563
5527
  {
5564
5528
  id: "io.supernova.block.title1",
5565
- name: "Title 1",
5529
+ name: "Heading 1",
5566
5530
  description: "Main sections within the page",
5567
5531
  category: "Text",
5568
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-1.svg",
5569
- searchKeywords: ["heading", "h1"],
5532
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-1.svg",
5533
+ searchKeywords: ["title", "h1"],
5570
5534
  item: {
5571
5535
  properties: [
5572
5536
  {
5573
5537
  id: "text",
5574
5538
  name: "Text",
5575
5539
  type: "RichText",
5576
- options: {
5577
- placeholder: "Title 1",
5578
- richTextStyle: "Title1"
5579
- }
5540
+ options: { placeholder: "Heading 1", richTextStyle: "Title1" }
5580
5541
  }
5581
5542
  ],
5582
- appearance: {
5583
- isBordered: false,
5584
- hasBackground: false
5585
- },
5543
+ appearance: { isBordered: true, hasBackground: false },
5586
5544
  variants: [
5587
5545
  {
5588
5546
  id: "default",
5589
5547
  name: "Default",
5590
- layout: {
5591
- type: "Column",
5592
- children: ["text"],
5593
- columnAlign: "Start",
5594
- columnResizing: "Fill",
5595
- gap: "Medium"
5596
- },
5548
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
5597
5549
  maxColumns: 1,
5598
5550
  defaultColumns: 1,
5599
- appearance: {
5600
- isBordered: false,
5601
- hasBackground: false,
5602
- isEditorPresentationDifferent: false
5603
- }
5551
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
5604
5552
  }
5605
5553
  ],
5606
5554
  defaultVariantKey: "default"
5607
5555
  },
5608
- behavior: {
5609
- dataType: "Item",
5610
- items: {
5611
- numberOfItems: 1,
5612
- allowLinks: false
5613
- }
5614
- },
5556
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
5615
5557
  editorOptions: {
5616
5558
  onboarding: {
5617
5559
  helpText: "Use for main sections within the page, introducing broad topics or themes.",
5618
5560
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
5619
5561
  }
5620
5562
  },
5621
- appearance: {
5622
- isBordered: false,
5623
- hasBackground: false
5624
- }
5563
+ appearance: { isBordered: true, hasBackground: false }
5625
5564
  },
5626
5565
  {
5627
5566
  id: "io.supernova.block.title2",
5628
- name: "Title 2",
5567
+ name: "Heading 2",
5629
5568
  description: "Section subheadings",
5630
5569
  category: "Text",
5631
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-2.svg",
5632
- searchKeywords: ["heading", "h2"],
5570
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-2.svg",
5571
+ searchKeywords: ["title", "h2"],
5633
5572
  item: {
5634
5573
  properties: [
5635
5574
  {
5636
5575
  id: "text",
5637
5576
  name: "Text",
5638
5577
  type: "RichText",
5639
- options: {
5640
- placeholder: "Title 2",
5641
- richTextStyle: "Title2"
5642
- }
5578
+ options: { placeholder: "Heading 2", richTextStyle: "Title2" }
5643
5579
  }
5644
5580
  ],
5645
- appearance: {
5646
- isBordered: false,
5647
- hasBackground: false
5648
- },
5581
+ appearance: { isBordered: true, hasBackground: false },
5649
5582
  variants: [
5650
5583
  {
5651
5584
  id: "default",
5652
5585
  name: "Default",
5653
- layout: {
5654
- type: "Column",
5655
- children: ["text"],
5656
- columnAlign: "Start",
5657
- columnResizing: "Fill",
5658
- gap: "Medium"
5659
- },
5586
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
5660
5587
  maxColumns: 1,
5661
5588
  defaultColumns: 1,
5662
- appearance: {
5663
- isBordered: false,
5664
- hasBackground: false,
5665
- isEditorPresentationDifferent: false
5666
- }
5589
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
5667
5590
  }
5668
5591
  ],
5669
5592
  defaultVariantKey: "default"
5670
5593
  },
5671
- behavior: {
5672
- dataType: "Item",
5673
- items: {
5674
- numberOfItems: 1,
5675
- allowLinks: false
5676
- }
5677
- },
5594
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
5678
5595
  editorOptions: {
5679
5596
  onboarding: {
5680
5597
  helpText: "Use for subheadings, indicating major subsections under the main sections.",
5681
5598
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
5682
5599
  }
5683
5600
  },
5684
- appearance: {
5685
- isBordered: false,
5686
- hasBackground: false
5687
- }
5601
+ appearance: { isBordered: true, hasBackground: false }
5688
5602
  },
5689
5603
  {
5690
5604
  id: "io.supernova.block.title3",
5691
- name: "Title 3",
5605
+ name: "Heading 3",
5692
5606
  description: "Further subsections",
5693
5607
  category: "Text",
5694
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-3.svg",
5695
- searchKeywords: ["heading", "h3"],
5608
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-3.svg",
5609
+ searchKeywords: ["title", "h3"],
5696
5610
  item: {
5697
5611
  properties: [
5698
5612
  {
5699
5613
  id: "text",
5700
5614
  name: "Text",
5701
5615
  type: "RichText",
5702
- options: {
5703
- placeholder: "Title 3",
5704
- richTextStyle: "Title3"
5705
- }
5616
+ options: { placeholder: "Heading 3", richTextStyle: "Title3" }
5706
5617
  }
5707
5618
  ],
5708
- appearance: {
5709
- isBordered: false,
5710
- hasBackground: false
5711
- },
5619
+ appearance: { isBordered: true, hasBackground: false },
5712
5620
  variants: [
5713
5621
  {
5714
5622
  id: "default",
5715
5623
  name: "Default",
5716
- layout: {
5717
- type: "Column",
5718
- children: ["text"],
5719
- columnAlign: "Start",
5720
- columnResizing: "Fill",
5721
- gap: "Medium"
5722
- },
5624
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
5723
5625
  maxColumns: 1,
5724
5626
  defaultColumns: 1,
5725
- appearance: {
5726
- isBordered: false,
5727
- hasBackground: false,
5728
- isEditorPresentationDifferent: false
5729
- }
5627
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
5730
5628
  }
5731
5629
  ],
5732
5630
  defaultVariantKey: "default"
5733
5631
  },
5734
- behavior: {
5735
- dataType: "Item",
5736
- items: {
5737
- numberOfItems: 1,
5738
- allowLinks: false
5739
- }
5740
- },
5632
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
5741
5633
  editorOptions: {
5742
5634
  onboarding: {
5743
5635
  helpText: "Use for further subsections, detailing specific topics within the major subsections.",
5744
5636
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
5745
5637
  }
5746
5638
  },
5747
- appearance: {
5748
- isBordered: false,
5749
- hasBackground: false
5750
- }
5639
+ appearance: { isBordered: true, hasBackground: false }
5751
5640
  },
5752
5641
  {
5753
5642
  id: "io.supernova.block.title4",
5754
- name: "Title 4",
5643
+ name: "Heading 4",
5755
5644
  description: "Details in subsections",
5756
5645
  category: "Text",
5757
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-4.svg",
5758
- searchKeywords: ["heading", "h4"],
5646
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-4.svg",
5647
+ searchKeywords: ["title", "h4"],
5759
5648
  item: {
5760
5649
  properties: [
5761
5650
  {
5762
5651
  id: "text",
5763
5652
  name: "Text",
5764
5653
  type: "RichText",
5765
- options: {
5766
- placeholder: "Title 4",
5767
- richTextStyle: "Title4"
5768
- }
5654
+ options: { placeholder: "Heading 4", richTextStyle: "Title4" }
5769
5655
  }
5770
5656
  ],
5771
- appearance: {
5772
- isBordered: false,
5773
- hasBackground: false
5774
- },
5657
+ appearance: { isBordered: true, hasBackground: false },
5775
5658
  variants: [
5776
5659
  {
5777
5660
  id: "default",
5778
5661
  name: "Default",
5779
- layout: {
5780
- type: "Column",
5781
- children: ["text"],
5782
- columnAlign: "Start",
5783
- columnResizing: "Fill",
5784
- gap: "Medium"
5785
- },
5662
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
5786
5663
  maxColumns: 1,
5787
5664
  defaultColumns: 1,
5788
- appearance: {
5789
- isBordered: false,
5790
- hasBackground: false,
5791
- isEditorPresentationDifferent: false
5792
- }
5665
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
5793
5666
  }
5794
5667
  ],
5795
5668
  defaultVariantKey: "default"
5796
5669
  },
5797
- behavior: {
5798
- dataType: "Item",
5799
- items: {
5800
- numberOfItems: 1,
5801
- allowLinks: false
5802
- }
5803
- },
5670
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
5804
5671
  editorOptions: {
5805
5672
  onboarding: {
5806
5673
  helpText: "Use for sub-divisions, elaborating on details within the subsections.",
5807
5674
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
5808
5675
  }
5809
5676
  },
5810
- appearance: {
5811
- isBordered: false,
5812
- hasBackground: false
5813
- }
5677
+ appearance: { isBordered: true, hasBackground: false }
5814
5678
  },
5815
5679
  {
5816
5680
  id: "io.supernova.block.title5",
5817
- name: "Title 5",
5681
+ name: "Heading 5",
5818
5682
  description: "Nuanced details or sub-points",
5819
5683
  category: "Text",
5820
- icon: "https://cdn-assets.supernova.io/blocks/icons/title-5.svg",
5821
- searchKeywords: ["heading", "h5"],
5684
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/title-5.svg",
5685
+ searchKeywords: ["title", "h5"],
5822
5686
  item: {
5823
5687
  properties: [
5824
5688
  {
5825
5689
  id: "text",
5826
5690
  name: "Text",
5827
5691
  type: "RichText",
5828
- options: {
5829
- placeholder: "Title 5",
5830
- richTextStyle: "Title5"
5831
- }
5692
+ options: { placeholder: "Heading 5", richTextStyle: "Title5" }
5832
5693
  }
5833
5694
  ],
5834
- appearance: {
5835
- isBordered: false,
5836
- hasBackground: false
5837
- },
5695
+ appearance: { isBordered: true, hasBackground: false },
5838
5696
  variants: [
5839
5697
  {
5840
5698
  id: "default",
5841
5699
  name: "Default",
5842
- layout: {
5843
- type: "Column",
5844
- children: ["text"],
5845
- columnAlign: "Start",
5846
- columnResizing: "Fill",
5847
- gap: "Medium"
5848
- },
5700
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
5849
5701
  maxColumns: 1,
5850
5702
  defaultColumns: 1,
5851
- appearance: {
5852
- isBordered: false,
5853
- hasBackground: false,
5854
- isEditorPresentationDifferent: false
5855
- }
5703
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
5856
5704
  }
5857
5705
  ],
5858
5706
  defaultVariantKey: "default"
5859
5707
  },
5860
- behavior: {
5861
- dataType: "Item",
5862
- items: {
5863
- numberOfItems: 1,
5864
- allowLinks: false
5865
- }
5866
- },
5708
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
5867
5709
  editorOptions: {
5868
5710
  onboarding: {
5869
5711
  helpText: "Use for nuanced details or specific sub-points within sub-divisions.",
5870
5712
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
5871
5713
  }
5872
5714
  },
5873
- appearance: {
5874
- isBordered: false,
5875
- hasBackground: false
5876
- }
5715
+ appearance: { isBordered: true, hasBackground: false }
5877
5716
  },
5878
5717
  {
5879
5718
  id: "io.supernova.block.ordered-list",
@@ -5888,58 +5727,34 @@ var blocks = [
5888
5727
  id: "text",
5889
5728
  name: "Text",
5890
5729
  type: "MultiRichText",
5891
- options: {
5892
- multiRichTextStyle: "OL"
5893
- }
5730
+ options: { multiRichTextStyle: "OL" }
5894
5731
  }
5895
5732
  ],
5896
- appearance: {
5897
- isBordered: false,
5898
- hasBackground: false
5899
- },
5733
+ appearance: { isBordered: true, hasBackground: false },
5900
5734
  variants: [
5901
5735
  {
5902
5736
  id: "default",
5903
5737
  name: "Default",
5904
- layout: {
5905
- type: "Column",
5906
- children: ["text"],
5907
- columnAlign: "Start",
5908
- columnResizing: "Fill",
5909
- gap: "Medium"
5910
- },
5738
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
5911
5739
  maxColumns: 1,
5912
5740
  defaultColumns: 1,
5913
- appearance: {
5914
- isBordered: false,
5915
- hasBackground: false,
5916
- isEditorPresentationDifferent: false
5917
- }
5741
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
5918
5742
  }
5919
5743
  ],
5920
5744
  defaultVariantKey: "default"
5921
5745
  },
5922
- behavior: {
5923
- dataType: "Item",
5924
- items: {
5925
- numberOfItems: 1,
5926
- allowLinks: false
5927
- }
5928
- },
5746
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
5929
5747
  editorOptions: {
5930
5748
  onboarding: {
5931
5749
  helpText: "Display a sequence of numbers or letters to indicate order.",
5932
5750
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK"
5933
5751
  }
5934
5752
  },
5935
- appearance: {
5936
- isBordered: false,
5937
- hasBackground: false
5938
- }
5753
+ appearance: { isBordered: true, hasBackground: false }
5939
5754
  },
5940
5755
  {
5941
5756
  id: "io.supernova.block.unordered-list",
5942
- name: "Unordered list",
5757
+ name: "Bullet list",
5943
5758
  description: "A list with bullet points",
5944
5759
  category: "Text",
5945
5760
  icon: "https://cdn-assets.supernova.io/blocks/icons/list-unordered.svg",
@@ -5950,54 +5765,30 @@ var blocks = [
5950
5765
  id: "text",
5951
5766
  name: "Text",
5952
5767
  type: "MultiRichText",
5953
- options: {
5954
- multiRichTextStyle: "UL"
5955
- }
5768
+ options: { multiRichTextStyle: "UL" }
5956
5769
  }
5957
5770
  ],
5958
- appearance: {
5959
- isBordered: false,
5960
- hasBackground: false
5961
- },
5771
+ appearance: { isBordered: true, hasBackground: false },
5962
5772
  variants: [
5963
5773
  {
5964
5774
  id: "default",
5965
5775
  name: "Default",
5966
- layout: {
5967
- type: "Column",
5968
- children: ["text"],
5969
- columnAlign: "Start",
5970
- columnResizing: "Fill",
5971
- gap: "Medium"
5972
- },
5776
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
5973
5777
  maxColumns: 1,
5974
5778
  defaultColumns: 1,
5975
- appearance: {
5976
- isBordered: false,
5977
- hasBackground: false,
5978
- isEditorPresentationDifferent: false
5979
- }
5779
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
5980
5780
  }
5981
5781
  ],
5982
5782
  defaultVariantKey: "default"
5983
5783
  },
5984
- behavior: {
5985
- dataType: "Item",
5986
- items: {
5987
- numberOfItems: 1,
5988
- allowLinks: false
5989
- }
5990
- },
5784
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
5991
5785
  editorOptions: {
5992
5786
  onboarding: {
5993
5787
  helpText: "A list of items displayed with bullet points without a specific sequence.",
5994
5788
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK"
5995
5789
  }
5996
5790
  },
5997
- appearance: {
5998
- isBordered: false,
5999
- hasBackground: false
6000
- }
5791
+ appearance: { isBordered: true, hasBackground: false }
6001
5792
  },
6002
5793
  {
6003
5794
  id: "io.supernova.block.divider",
@@ -6007,18 +5798,8 @@ var blocks = [
6007
5798
  icon: "https://cdn-assets.supernova.io/blocks/icons/divider.svg",
6008
5799
  searchKeywords: ["hr", "line", "rule", "separator"],
6009
5800
  item: {
6010
- properties: [
6011
- {
6012
- id: "divider",
6013
- name: "Divider",
6014
- type: "Divider",
6015
- options: {}
6016
- }
6017
- ],
6018
- appearance: {
6019
- isBordered: false,
6020
- hasBackground: false
6021
- },
5801
+ properties: [{ id: "divider", name: "Divider", type: "Divider", options: {} }],
5802
+ appearance: { isBordered: true, hasBackground: false },
6022
5803
  variants: [
6023
5804
  {
6024
5805
  id: "default",
@@ -6032,102 +5813,64 @@ var blocks = [
6032
5813
  },
6033
5814
  maxColumns: 1,
6034
5815
  defaultColumns: 1,
6035
- appearance: {
6036
- isBordered: false,
6037
- hasBackground: false,
6038
- isEditorPresentationDifferent: false
6039
- }
5816
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6040
5817
  }
6041
5818
  ],
6042
5819
  defaultVariantKey: "default"
6043
5820
  },
6044
- behavior: {
6045
- dataType: "Item",
6046
- items: {
6047
- numberOfItems: 1,
6048
- allowLinks: false
6049
- }
6050
- },
5821
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6051
5822
  editorOptions: {
6052
5823
  onboarding: {
6053
5824
  helpText: "A thematic break or horizontal rule, often used to separate content or define a change in topic.",
6054
5825
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/divider-tLuxooLH"
6055
5826
  }
6056
5827
  },
6057
- appearance: {
6058
- isBordered: false,
6059
- hasBackground: false
6060
- }
5828
+ appearance: { isBordered: true, hasBackground: false }
6061
5829
  },
6062
5830
  {
6063
5831
  id: "io.supernova.block.blockquote",
6064
- name: "Blockquote",
5832
+ name: "Quote",
6065
5833
  description: "Display a quotation",
6066
5834
  category: "Text",
6067
5835
  icon: "https://cdn-assets.supernova.io/blocks/icons/blockquote.svg",
6068
- searchKeywords: ["cite"],
5836
+ searchKeywords: ["cite", "blockquote"],
6069
5837
  item: {
6070
5838
  properties: [
6071
5839
  {
6072
5840
  id: "text",
6073
5841
  name: "Text",
6074
5842
  type: "RichText",
6075
- options: {
6076
- placeholder: "Write a quote...",
6077
- richTextStyle: "Quote"
6078
- }
5843
+ options: { placeholder: "Write a quote...", richTextStyle: "Quote" }
6079
5844
  }
6080
5845
  ],
6081
- appearance: {
6082
- isBordered: false,
6083
- hasBackground: false
6084
- },
5846
+ appearance: { isBordered: true, hasBackground: false },
6085
5847
  variants: [
6086
5848
  {
6087
5849
  id: "default",
6088
5850
  name: "Default",
6089
- layout: {
6090
- type: "Column",
6091
- children: ["text"],
6092
- columnAlign: "Start",
6093
- columnResizing: "Fill",
6094
- gap: "Medium"
6095
- },
5851
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6096
5852
  maxColumns: 1,
6097
5853
  defaultColumns: 1,
6098
- appearance: {
6099
- isBordered: false,
6100
- hasBackground: false,
6101
- isEditorPresentationDifferent: false
6102
- }
5854
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6103
5855
  }
6104
5856
  ],
6105
5857
  defaultVariantKey: "default"
6106
5858
  },
6107
- behavior: {
6108
- dataType: "Item",
6109
- items: {
6110
- numberOfItems: 1,
6111
- allowLinks: false
6112
- }
6113
- },
5859
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6114
5860
  editorOptions: {
6115
5861
  onboarding: {
6116
5862
  helpText: "Use a blockquote to set off a quotation or cited content from the main text.",
6117
5863
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/blockquote-zYWAsb6X"
6118
5864
  }
6119
5865
  },
6120
- appearance: {
6121
- isBordered: false,
6122
- hasBackground: false
6123
- }
5866
+ appearance: { isBordered: true, hasBackground: false }
6124
5867
  },
6125
5868
  {
6126
5869
  id: "io.supernova.block.callout",
6127
5870
  name: "Callout",
6128
5871
  description: "Highlight a section of text",
6129
5872
  category: "Text",
6130
- icon: "https://cdn-assets.supernova.io/blocks/icons/callout.svg",
5873
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/callout.svg",
6131
5874
  searchKeywords: ["banner", "alert", "note", "tip", "warning"],
6132
5875
  item: {
6133
5876
  properties: [
@@ -6135,62 +5878,37 @@ var blocks = [
6135
5878
  id: "text",
6136
5879
  name: "Text",
6137
5880
  type: "RichText",
6138
- options: {
6139
- placeholder: "Highlight some information...",
6140
- richTextStyle: "Callout"
6141
- }
5881
+ options: { placeholder: "Highlight some information...", richTextStyle: "Callout" }
6142
5882
  }
6143
5883
  ],
6144
- appearance: {
6145
- isBordered: false,
6146
- hasBackground: false
6147
- },
5884
+ appearance: { isBordered: true, hasBackground: false },
6148
5885
  variants: [
6149
5886
  {
6150
5887
  id: "default",
6151
5888
  name: "Default",
6152
- layout: {
6153
- type: "Column",
6154
- children: ["text"],
6155
- columnAlign: "Start",
6156
- columnResizing: "Fill",
6157
- gap: "Medium"
6158
- },
5889
+ layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6159
5890
  maxColumns: 1,
6160
5891
  defaultColumns: 1,
6161
- appearance: {
6162
- isBordered: false,
6163
- hasBackground: false,
6164
- isEditorPresentationDifferent: false
6165
- }
5892
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6166
5893
  }
6167
5894
  ],
6168
5895
  defaultVariantKey: "default"
6169
5896
  },
6170
- behavior: {
6171
- dataType: "Item",
6172
- items: {
6173
- numberOfItems: 1,
6174
- allowLinks: false
6175
- }
6176
- },
5897
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6177
5898
  editorOptions: {
6178
5899
  onboarding: {
6179
5900
  helpText: "Use to highlight a section of text.",
6180
5901
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/callout-ZPlZObD1"
6181
5902
  }
6182
5903
  },
6183
- appearance: {
6184
- isBordered: false,
6185
- hasBackground: false
6186
- }
5904
+ appearance: { isBordered: true, hasBackground: false }
6187
5905
  },
6188
5906
  {
6189
5907
  id: "io.supernova.block.image",
6190
5908
  name: "Image",
6191
5909
  description: "Display an image or Figma frame",
6192
5910
  category: "Media",
6193
- icon: "https://cdn-assets.supernova.io/blocks/icons/image.svg",
5911
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/image.svg",
6194
5912
  searchKeywords: ["image", "figma", "frame", "picture", "photo"],
6195
5913
  item: {
6196
5914
  properties: [
@@ -6198,110 +5916,65 @@ var blocks = [
6198
5916
  id: "image",
6199
5917
  name: "Image",
6200
5918
  type: "Image",
6201
- options: {
6202
- allowCaption: true
6203
- }
5919
+ options: { allowCaption: true }
6204
5920
  }
6205
5921
  ],
6206
- appearance: {
6207
- isBordered: false,
6208
- hasBackground: false
6209
- },
5922
+ appearance: { isBordered: true, hasBackground: false },
6210
5923
  variants: [
6211
5924
  {
6212
5925
  id: "default",
6213
5926
  name: "Default",
6214
- layout: {
6215
- type: "Column",
6216
- children: ["image"],
6217
- columnAlign: "Start",
6218
- columnResizing: "Fill",
6219
- gap: "Medium"
6220
- },
5927
+ layout: { type: "Column", children: ["image"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6221
5928
  maxColumns: 1,
6222
5929
  defaultColumns: 1,
6223
- appearance: {
6224
- isBordered: false,
6225
- hasBackground: false,
6226
- isEditorPresentationDifferent: false
6227
- }
5930
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6228
5931
  }
6229
5932
  ],
6230
5933
  defaultVariantKey: "default"
6231
5934
  },
6232
- behavior: {
6233
- dataType: "Item",
6234
- items: {
6235
- numberOfItems: 1,
6236
- allowLinks: false
6237
- }
6238
- },
5935
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6239
5936
  editorOptions: {
6240
5937
  onboarding: {
6241
5938
  helpText: "Use to display an image or Figma frame.",
6242
5939
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/image-Ue8VdT8B"
6243
5940
  }
6244
5941
  },
6245
- appearance: {
6246
- isBordered: false,
6247
- hasBackground: false
6248
- }
5942
+ appearance: { isBordered: false, hasBackground: false }
6249
5943
  },
6250
5944
  {
6251
5945
  id: "io.supernova.block.shortcut-links",
6252
5946
  name: "Shortcut links",
6253
5947
  description: "Link to a page or external URL",
6254
5948
  category: "Media",
6255
- icon: "https://cdn-assets.supernova.io/blocks/icons/shortcuts.svg",
6256
- searchKeywords: [],
5949
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/shortcuts.svg",
5950
+ searchKeywords: ["url", "page", "card"],
6257
5951
  item: {
6258
5952
  properties: [
6259
5953
  {
6260
5954
  id: "block.links.property.image",
6261
5955
  name: "Image",
6262
5956
  type: "Image",
6263
- options: {
6264
- aspectRatio: "Landscape",
6265
- allowCaption: false
6266
- },
5957
+ options: { aspectRatio: "Landscape", allowCaption: false },
6267
5958
  variantOptions: {
6268
- iconOnTop: {
6269
- width: "Icon",
6270
- aspectRatio: "Square"
6271
- },
6272
- imageOnLeft: {
6273
- width: "Medium"
6274
- },
6275
- iconOnLeft: {
6276
- width: "Icon",
6277
- aspectRatio: "Square"
6278
- }
5959
+ iconOnTop: { width: "Icon", aspectRatio: "Square" },
5960
+ imageOnLeft: { width: "Medium" },
5961
+ iconOnLeft: { width: "Icon", aspectRatio: "Square" }
6279
5962
  }
6280
5963
  },
6281
5964
  {
6282
5965
  id: "block.links.property.title",
6283
5966
  name: "Title",
6284
5967
  type: "Text",
6285
- options: {
6286
- textStyle: "Title5",
6287
- placeholder: "Add title"
6288
- }
5968
+ options: { textStyle: "Title5", placeholder: "Add title" }
6289
5969
  },
6290
5970
  {
6291
5971
  id: "block.links.property.description",
6292
5972
  name: "Short description",
6293
5973
  type: "Text",
6294
- options: {
6295
- textStyle: "Default",
6296
- color: "NeutralFaded",
6297
- placeholder: "Add description"
6298
- }
5974
+ options: { textStyle: "Default", color: "NeutralFaded", placeholder: "Add description" }
6299
5975
  }
6300
5976
  ],
6301
- appearance: {
6302
- isBordered: false,
6303
- hasBackground: false
6304
- },
5977
+ appearance: { isBordered: true, hasBackground: false },
6305
5978
  variants: [
6306
5979
  {
6307
5980
  id: "imageOnTop",
@@ -6316,11 +5989,7 @@ var blocks = [
6316
5989
  },
6317
5990
  maxColumns: 4,
6318
5991
  defaultColumns: 1,
6319
- appearance: {
6320
- isBordered: false,
6321
- hasBackground: false,
6322
- isEditorPresentationDifferent: false
6323
- }
5992
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6324
5993
  },
6325
5994
  {
6326
5995
  id: "imageOnLeft",
@@ -6350,11 +6019,7 @@ var blocks = [
6350
6019
  },
6351
6020
  maxColumns: 1,
6352
6021
  defaultColumns: 1,
6353
- appearance: {
6354
- isBordered: false,
6355
- hasBackground: false,
6356
- isEditorPresentationDifferent: false
6357
- }
6022
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6358
6023
  },
6359
6024
  {
6360
6025
  id: "iconOnTop",
@@ -6369,11 +6034,7 @@ var blocks = [
6369
6034
  },
6370
6035
  maxColumns: 4,
6371
6036
  defaultColumns: 1,
6372
- appearance: {
6373
- isBordered: false,
6374
- hasBackground: false,
6375
- isEditorPresentationDifferent: false
6376
- }
6037
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6377
6038
  },
6378
6039
  {
6379
6040
  id: "iconOnLeft",
@@ -6403,96 +6064,19 @@ var blocks = [
6403
6064
  },
6404
6065
  maxColumns: 2,
6405
6066
  defaultColumns: 1,
6406
- appearance: {
6407
- isBordered: false,
6408
- hasBackground: false,
6409
- isEditorPresentationDifferent: false
6410
- }
6067
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6411
6068
  }
6412
6069
  ],
6413
6070
  defaultVariantKey: "imageOnTop"
6414
6071
  },
6415
- behavior: {
6416
- dataType: "Item",
6417
- items: {
6418
- numberOfItems: -1,
6419
- allowLinks: true
6420
- }
6421
- },
6072
+ behavior: { dataType: "Item", items: { numberOfItems: -1, allowLinks: true } },
6422
6073
  editorOptions: {
6423
6074
  onboarding: {
6424
6075
  helpText: "Use link block to create single or multiple links to places in or out of your documentation.",
6425
6076
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4"
6426
6077
  }
6427
6078
  },
6428
- appearance: {
6429
- isBordered: false,
6430
- hasBackground: false
6431
- }
6432
- },
6433
- {
6434
- id: "io.supernova.block.color-accessibility-grid",
6435
- name: "Accessibility Color Grid",
6436
- description: "Visualize accessibility of your color tokens.",
6437
- category: "Tokens",
6438
- icon: "https://cdn-assets.supernova.io/blocks/icons/token-a11y-contrast-grid.svg",
6439
- searchKeywords: ["color", "accessibility", "grid", "contrast", "blind", "impairment"],
6440
- item: {
6441
- properties: [
6442
- {
6443
- id: "tokens",
6444
- name: "Tokens",
6445
- type: "Token",
6446
- options: {
6447
- allowedTypes: ["Color"],
6448
- allowPropertySelection: false,
6449
- allowThemeSelection: false
6450
- }
6451
- }
6452
- ],
6453
- appearance: {
6454
- isBordered: false,
6455
- hasBackground: false
6456
- },
6457
- variants: [
6458
- {
6459
- id: "default",
6460
- name: "Default",
6461
- layout: {
6462
- type: "Column",
6463
- children: ["tokens"],
6464
- columnAlign: "Start",
6465
- columnResizing: "Fill",
6466
- gap: "Medium"
6467
- },
6468
- maxColumns: 1,
6469
- defaultColumns: 1,
6470
- appearance: {
6471
- isBordered: false,
6472
- hasBackground: false,
6473
- isEditorPresentationDifferent: false
6474
- }
6475
- }
6476
- ],
6477
- defaultVariantKey: "default"
6478
- },
6479
- behavior: {
6480
- dataType: "Token",
6481
- entities: {
6482
- selectionType: "EntityAndGroup",
6483
- maxSelected: 0
6484
- }
6485
- },
6486
- editorOptions: {
6487
- onboarding: {
6488
- helpText: "Visualize accessibility of your colors and compare token groups to one another.",
6489
- documentationLink: "https://learn.supernova.io"
6490
- }
6491
- },
6492
- appearance: {
6493
- isBordered: false,
6494
- hasBackground: false
6495
- }
6079
+ appearance: { isBordered: true, hasBackground: false }
6496
6080
  },
6497
6081
  {
6498
6082
  id: "io.supernova.block.embed",
@@ -6515,10 +6099,7 @@ var blocks = [
6515
6099
  }
6516
6100
  }
6517
6101
  ],
6518
- appearance: {
6519
- isBordered: false,
6520
- hasBackground: false
6521
- },
6102
+ appearance: { isBordered: true, hasBackground: false },
6522
6103
  variants: [
6523
6104
  {
6524
6105
  id: "default",
@@ -6532,32 +6113,19 @@ var blocks = [
6532
6113
  },
6533
6114
  maxColumns: 1,
6534
6115
  defaultColumns: 1,
6535
- appearance: {
6536
- isBordered: false,
6537
- hasBackground: false,
6538
- isEditorPresentationDifferent: false
6539
- }
6116
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6540
6117
  }
6541
6118
  ],
6542
6119
  defaultVariantKey: "default"
6543
6120
  },
6544
- behavior: {
6545
- dataType: "Item",
6546
- items: {
6547
- numberOfItems: 1,
6548
- allowLinks: false
6549
- }
6550
- },
6121
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6551
6122
  editorOptions: {
6552
6123
  onboarding: {
6553
6124
  helpText: "Embed any page to your documentation as an iframe.",
6554
6125
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/embed/public-url-2ZeRQ332"
6555
6126
  }
6556
6127
  },
6557
- appearance: {
6558
- isBordered: false,
6559
- hasBackground: false
6560
- }
6128
+ appearance: { isBordered: true, hasBackground: false }
6561
6129
  },
6562
6130
  {
6563
6131
  id: "io.supernova.block.embed-youtube",
@@ -6580,49 +6148,27 @@ var blocks = [
6580
6148
  }
6581
6149
  }
6582
6150
  ],
6583
- appearance: {
6584
- isBordered: false,
6585
- hasBackground: false
6586
- },
6151
+ appearance: { isBordered: true, hasBackground: false },
6587
6152
  variants: [
6588
6153
  {
6589
6154
  id: "default",
6590
6155
  name: "Default",
6591
- layout: {
6592
- type: "Column",
6593
- children: ["embed"],
6594
- columnAlign: "Start",
6595
- columnResizing: "Fill",
6596
- gap: "Medium"
6597
- },
6156
+ layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6598
6157
  maxColumns: 1,
6599
6158
  defaultColumns: 1,
6600
- appearance: {
6601
- isBordered: false,
6602
- hasBackground: false,
6603
- isEditorPresentationDifferent: false
6604
- }
6159
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6605
6160
  }
6606
6161
  ],
6607
6162
  defaultVariantKey: "default"
6608
6163
  },
6609
- behavior: {
6610
- dataType: "Item",
6611
- items: {
6612
- numberOfItems: 1,
6613
- allowLinks: false
6614
- }
6615
- },
6164
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6616
6165
  editorOptions: {
6617
6166
  onboarding: {
6618
6167
  helpText: "Embed a YouTube video to your documentation.",
6619
6168
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/youtube-Gh8VUrSF"
6620
6169
  }
6621
6170
  },
6622
- appearance: {
6623
- isBordered: false,
6624
- hasBackground: false
6625
- }
6171
+ appearance: { isBordered: true, hasBackground: false }
6626
6172
  },
6627
6173
  {
6628
6174
  id: "io.supernova.block.embed-lottie",
@@ -6637,55 +6183,41 @@ var blocks = [
6637
6183
  id: "url",
6638
6184
  name: "Lottie URL",
6639
6185
  type: "URL",
6640
- options: {
6641
- urlValidationRegex: "^(http|https)://.*.(json|lottie)$"
6642
- }
6186
+ description: "Add URL to your Lottie animation file. We support .json and .lottie file extensions.",
6187
+ options: { urlValidationRegex: "^(http|https)://.*.(json|lottie)$" }
6643
6188
  },
6644
6189
  {
6645
6190
  id: "height",
6646
6191
  name: "Height",
6647
6192
  type: "Number",
6648
- options: {
6649
- defaultValue: 270
6650
- }
6193
+ options: { defaultValue: 270 }
6651
6194
  },
6652
6195
  {
6653
6196
  id: "width",
6654
6197
  name: "Width",
6655
6198
  type: "Number",
6656
- options: {
6657
- defaultValue: 400
6658
- }
6199
+ options: { defaultValue: 400 }
6659
6200
  },
6660
6201
  {
6661
6202
  id: "autoplay",
6662
6203
  name: "Autoplay",
6663
6204
  type: "Boolean",
6664
- options: {
6665
- defaultValue: true
6666
- }
6205
+ options: { defaultValue: true }
6667
6206
  },
6668
6207
  {
6669
6208
  id: "loop",
6670
6209
  name: "Loop",
6671
6210
  type: "Boolean",
6672
- options: {
6673
- defaultValue: true
6674
- }
6211
+ options: { defaultValue: true }
6675
6212
  },
6676
6213
  {
6677
6214
  id: "playerControls",
6678
6215
  name: "Show player controls",
6679
6216
  type: "Boolean",
6680
- options: {
6681
- defaultValue: true
6682
- }
6217
+ options: { defaultValue: true }
6683
6218
  }
6684
6219
  ],
6685
- appearance: {
6686
- isBordered: false,
6687
- hasBackground: false
6688
- },
6220
+ appearance: { isBordered: true, hasBackground: false },
6689
6221
  variants: [
6690
6222
  {
6691
6223
  id: "default",
@@ -6700,32 +6232,19 @@ var blocks = [
6700
6232
  },
6701
6233
  maxColumns: 1,
6702
6234
  defaultColumns: 1,
6703
- appearance: {
6704
- isBordered: false,
6705
- hasBackground: false,
6706
- isEditorPresentationDifferent: true
6707
- }
6235
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
6708
6236
  }
6709
6237
  ],
6710
6238
  defaultVariantKey: "default"
6711
6239
  },
6712
- behavior: {
6713
- dataType: "Item",
6714
- items: {
6715
- numberOfItems: 1,
6716
- allowLinks: false
6717
- }
6718
- },
6240
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6719
6241
  editorOptions: {
6720
6242
  onboarding: {
6721
6243
  helpText: "Embed a Lottie animation to your documentation.",
6722
6244
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/lottie-preview-7CqFdGv9"
6723
6245
  }
6724
6246
  },
6725
- appearance: {
6726
- isBordered: false,
6727
- hasBackground: false
6728
- }
6247
+ appearance: { isBordered: true, hasBackground: false }
6729
6248
  },
6730
6249
  {
6731
6250
  id: "io.supernova.block.storybook",
@@ -6740,56 +6259,30 @@ var blocks = [
6740
6259
  id: "embed",
6741
6260
  name: "Storybook URL",
6742
6261
  type: "Storybook",
6743
- options: {
6744
- allowCaption: true,
6745
- allowResize: true,
6746
- defaultHeight: 400
6747
- }
6262
+ options: { allowCaption: true, allowResize: true, defaultHeight: 400 }
6748
6263
  }
6749
6264
  ],
6750
- appearance: {
6751
- isBordered: false,
6752
- hasBackground: false
6753
- },
6265
+ appearance: { isBordered: true, hasBackground: false },
6754
6266
  variants: [
6755
6267
  {
6756
6268
  id: "default",
6757
6269
  name: "Default",
6758
- layout: {
6759
- type: "Column",
6760
- children: ["embed"],
6761
- columnAlign: "Start",
6762
- columnResizing: "Fill",
6763
- gap: "Medium"
6764
- },
6270
+ layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6765
6271
  maxColumns: 1,
6766
6272
  defaultColumns: 1,
6767
- appearance: {
6768
- isBordered: false,
6769
- hasBackground: false,
6770
- isEditorPresentationDifferent: false
6771
- }
6273
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6772
6274
  }
6773
6275
  ],
6774
6276
  defaultVariantKey: "default"
6775
6277
  },
6776
- behavior: {
6777
- dataType: "Item",
6778
- items: {
6779
- numberOfItems: 1,
6780
- allowLinks: false
6781
- }
6782
- },
6278
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6783
6279
  editorOptions: {
6784
6280
  onboarding: {
6785
6281
  helpText: "Embed a Storybook story to your documentation.",
6786
6282
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/storybook-1EGPhwBl"
6787
6283
  }
6788
6284
  },
6789
- appearance: {
6790
- isBordered: false,
6791
- hasBackground: false
6792
- }
6285
+ appearance: { isBordered: true, hasBackground: false }
6793
6286
  },
6794
6287
  {
6795
6288
  id: "io.supernova.block.embed-figma",
@@ -6812,49 +6305,27 @@ var blocks = [
6812
6305
  }
6813
6306
  }
6814
6307
  ],
6815
- appearance: {
6816
- isBordered: false,
6817
- hasBackground: false
6818
- },
6308
+ appearance: { isBordered: true, hasBackground: false },
6819
6309
  variants: [
6820
6310
  {
6821
6311
  id: "default",
6822
6312
  name: "Default",
6823
- layout: {
6824
- type: "Column",
6825
- children: ["embed"],
6826
- columnAlign: "Start",
6827
- columnResizing: "Fill",
6828
- gap: "Medium"
6829
- },
6313
+ layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6830
6314
  maxColumns: 1,
6831
6315
  defaultColumns: 1,
6832
- appearance: {
6833
- isBordered: false,
6834
- hasBackground: false,
6835
- isEditorPresentationDifferent: false
6836
- }
6316
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6837
6317
  }
6838
6318
  ],
6839
6319
  defaultVariantKey: "default"
6840
6320
  },
6841
- behavior: {
6842
- dataType: "Item",
6843
- items: {
6844
- numberOfItems: 1,
6845
- allowLinks: false
6846
- }
6847
- },
6321
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6848
6322
  editorOptions: {
6849
6323
  onboarding: {
6850
6324
  helpText: "Embed a Figma canvas or prototype to your documentation.",
6851
6325
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/embed-figma-GPNJsT8A"
6852
6326
  }
6853
6327
  },
6854
- appearance: {
6855
- isBordered: false,
6856
- hasBackground: false
6857
- }
6328
+ appearance: { isBordered: true, hasBackground: false }
6858
6329
  },
6859
6330
  {
6860
6331
  id: "io.supernova.block.markdown",
@@ -6862,22 +6333,17 @@ var blocks = [
6862
6333
  description: "Render Markdown URL",
6863
6334
  category: "Other",
6864
6335
  icon: "https://cdn-assets.supernova.io/blocks/icons/markdown.svg",
6865
- searchKeywords: ["md", "embed", "api", "table", "mdx"],
6336
+ searchKeywords: ["md", "embed", "api", "props", "mdx"],
6866
6337
  item: {
6867
6338
  properties: [
6868
6339
  {
6869
6340
  id: "markdownUrl",
6870
6341
  name: "Markdown URL",
6871
6342
  type: "Markdown",
6872
- options: {
6873
- urlValidationRegex: "^(https?://)?(www.)?.+.md$"
6874
- }
6343
+ options: { urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$" }
6875
6344
  }
6876
6345
  ],
6877
- appearance: {
6878
- isBordered: false,
6879
- hasBackground: false
6880
- },
6346
+ appearance: { isBordered: true, hasBackground: false },
6881
6347
  variants: [
6882
6348
  {
6883
6349
  id: "plain",
@@ -6892,11 +6358,7 @@ var blocks = [
6892
6358
  },
6893
6359
  maxColumns: 1,
6894
6360
  defaultColumns: 1,
6895
- appearance: {
6896
- isBordered: false,
6897
- hasBackground: false,
6898
- isEditorPresentationDifferent: true
6899
- }
6361
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
6900
6362
  },
6901
6363
  {
6902
6364
  id: "bordered",
@@ -6911,11 +6373,7 @@ var blocks = [
6911
6373
  },
6912
6374
  maxColumns: 1,
6913
6375
  defaultColumns: 1,
6914
- appearance: {
6915
- isBordered: false,
6916
- hasBackground: false,
6917
- isEditorPresentationDifferent: true
6918
- }
6376
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
6919
6377
  },
6920
6378
  {
6921
6379
  id: "boxed",
@@ -6930,411 +6388,185 @@ var blocks = [
6930
6388
  },
6931
6389
  maxColumns: 1,
6932
6390
  defaultColumns: 1,
6933
- appearance: {
6934
- isBordered: false,
6935
- hasBackground: false,
6936
- isEditorPresentationDifferent: true
6937
- }
6391
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
6938
6392
  }
6939
6393
  ],
6940
6394
  defaultVariantKey: "plain"
6941
6395
  },
6942
- behavior: {
6943
- dataType: "Item",
6944
- items: {
6945
- numberOfItems: 1,
6946
- allowLinks: false
6947
- }
6948
- },
6396
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6949
6397
  editorOptions: {
6950
6398
  onboarding: {
6951
- helpText: "Embed and process markdown from URL.",
6399
+ helpText: "Render any markdown file directly inside of your documentation.",
6952
6400
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/markdown/general-B8wQVOem"
6953
6401
  }
6954
6402
  },
6955
- appearance: {
6956
- isBordered: false,
6957
- hasBackground: false
6958
- }
6403
+ appearance: { isBordered: true, hasBackground: false }
6959
6404
  },
6960
6405
  {
6961
6406
  id: "io.supernova.block.table",
6962
6407
  name: "Table",
6963
6408
  description: "Display a simple table",
6964
6409
  category: "Layout",
6965
- icon: "https://cdn-assets.supernova.io/blocks/icons/table.svg",
6410
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/table.svg",
6966
6411
  searchKeywords: ["grid", "data", "spreadsheet", "api"],
6967
6412
  item: {
6968
- properties: [
6969
- {
6970
- id: "table",
6971
- name: "Table",
6972
- type: "Table",
6973
- options: {}
6974
- }
6975
- ],
6976
- appearance: {
6977
- isBordered: false,
6978
- hasBackground: false
6979
- },
6413
+ properties: [{ id: "table", name: "Table", type: "Table", options: {} }],
6414
+ appearance: { isBordered: true, hasBackground: false },
6980
6415
  variants: [
6981
6416
  {
6982
6417
  id: "default",
6983
6418
  name: "Default",
6984
- layout: {
6985
- type: "Column",
6986
- children: ["table"],
6987
- columnAlign: "Start",
6988
- columnResizing: "Fill",
6989
- gap: "Medium"
6990
- },
6419
+ layout: { type: "Column", children: ["table"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6991
6420
  maxColumns: 1,
6992
6421
  defaultColumns: 1,
6993
- appearance: {
6994
- isBordered: false,
6995
- hasBackground: false,
6996
- isEditorPresentationDifferent: false
6997
- }
6422
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
6998
6423
  }
6999
6424
  ],
7000
6425
  defaultVariantKey: "default"
7001
6426
  },
7002
- behavior: {
7003
- dataType: "Item",
7004
- items: {
7005
- numberOfItems: 1,
7006
- allowLinks: false
7007
- }
7008
- },
6427
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7009
6428
  editorOptions: {
7010
6429
  onboarding: {
7011
6430
  helpText: "Use for displaying data in a tabular format.",
7012
6431
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/layout/table-R8KGnxej"
7013
6432
  }
7014
6433
  },
7015
- appearance: {
7016
- isBordered: false,
7017
- hasBackground: false
7018
- }
6434
+ appearance: { isBordered: true, hasBackground: false }
7019
6435
  },
7020
6436
  {
7021
- id: "io.supernova.block.token-detail",
7022
- name: "Token detail",
7023
- description: "Show a single design tokens",
6437
+ id: "io.supernova.block.design-tokens",
6438
+ name: "Design tokens",
6439
+ description: "A list of design tokens",
7024
6440
  category: "Tokens",
7025
- icon: "https://cdn-assets.supernova.io/blocks/icons/token-detail.svg",
7026
- searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
6441
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/design-tokens.svg",
6442
+ searchKeywords: [
6443
+ "tokens",
6444
+ "color",
6445
+ "typography",
6446
+ "spacing",
6447
+ "grid",
6448
+ "material",
6449
+ "theme",
6450
+ "token list",
6451
+ "token group"
6452
+ ],
7027
6453
  item: {
7028
6454
  properties: [
7029
6455
  {
7030
6456
  id: "tokens",
7031
6457
  name: "Tokens",
7032
6458
  type: "Token",
7033
- options: {
7034
- renderLayoutAs: "List",
7035
- defaultTheme: "none",
7036
- defaultValuePreview: "Split"
7037
- }
6459
+ options: { renderLayoutAs: "List", defaultTheme: "none", defaultValuePreview: "Split" },
6460
+ variantOptions: { grid: { renderLayoutAs: "Grid" } }
7038
6461
  }
7039
6462
  ],
7040
- appearance: {
7041
- isBordered: false,
7042
- hasBackground: false
7043
- },
6463
+ appearance: { isBordered: true, hasBackground: false },
7044
6464
  variants: [
7045
6465
  {
7046
6466
  id: "table",
7047
- name: "Table row",
6467
+ name: "Table",
7048
6468
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
7049
- layout: {
7050
- type: "Column",
7051
- children: ["tokens"],
7052
- columnAlign: "Start",
7053
- columnResizing: "Fill",
7054
- gap: "Medium"
7055
- },
6469
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7056
6470
  maxColumns: 1,
7057
6471
  defaultColumns: 1,
7058
- appearance: {
7059
- isBordered: false,
7060
- hasBackground: false,
7061
- isEditorPresentationDifferent: false
7062
- }
6472
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7063
6473
  },
7064
6474
  {
7065
6475
  id: "grid",
7066
- name: "Grid item",
6476
+ name: "Grid",
7067
6477
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
7068
- layout: {
7069
- type: "Column",
7070
- children: ["tokens"],
7071
- columnAlign: "Start",
7072
- columnResizing: "Fill",
7073
- gap: "Medium"
7074
- },
7075
- maxColumns: 1,
7076
- defaultColumns: 1,
7077
- appearance: {
7078
- isBordered: false,
7079
- hasBackground: false,
7080
- isEditorPresentationDifferent: false
7081
- }
7082
- },
7083
- {
7084
- id: "color-stack",
7085
- name: "Color stack item",
7086
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
7087
- layout: {
7088
- type: "Column",
7089
- children: ["tokens"],
7090
- columnAlign: "Start",
7091
- columnResizing: "Fill",
7092
- gap: "Medium"
7093
- },
7094
- maxColumns: 1,
6478
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6479
+ maxColumns: 4,
7095
6480
  defaultColumns: 1,
7096
- appearance: {
7097
- isBordered: false,
7098
- hasBackground: false,
7099
- isEditorPresentationDifferent: false
7100
- }
6481
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7101
6482
  }
7102
6483
  ],
7103
6484
  defaultVariantKey: "table"
7104
6485
  },
7105
- behavior: {
7106
- dataType: "Token",
7107
- entities: {
7108
- selectionType: "Entity",
7109
- maxSelected: 1
7110
- }
7111
- },
6486
+ behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
7112
6487
  editorOptions: {
7113
6488
  onboarding: {
7114
- helpText: "Show a single design token.",
7115
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-detail-04"
6489
+ helpText: "Show a group of design tokens. Automatically display all subgroups too.",
6490
+ documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09"
7116
6491
  }
7117
6492
  },
7118
- appearance: {
7119
- isBordered: false,
7120
- hasBackground: false
7121
- }
6493
+ appearance: { isBordered: true, hasBackground: false }
7122
6494
  },
7123
6495
  {
7124
- id: "io.supernova.block.token-list",
7125
- name: "Token list",
7126
- description: "Show a list of design tokens",
6496
+ id: "io.supernova.block.token-color-ramps",
6497
+ name: "Color ramps",
6498
+ description: "The best way to display colors",
7127
6499
  category: "Tokens",
7128
6500
  icon: "https://cdn-assets.supernova.io/blocks/icons/token-list.svg",
7129
- searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
6501
+ searchKeywords: ["tokens", "ramp", "shades", "palette", "spectrum", "stack", "range", "swatch"],
7130
6502
  item: {
7131
6503
  properties: [
7132
6504
  {
7133
6505
  id: "tokens",
7134
6506
  name: "Tokens",
7135
6507
  type: "Token",
7136
- options: {
7137
- renderLayoutAs: "List",
7138
- defaultTheme: "none",
7139
- defaultValuePreview: "Split"
7140
- },
7141
- variantOptions: {
7142
- grid: {
7143
- renderLayoutAs: "Grid"
7144
- }
7145
- }
6508
+ options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: true }
7146
6509
  }
7147
6510
  ],
7148
- appearance: {
7149
- isBordered: false,
7150
- hasBackground: false
7151
- },
6511
+ appearance: { isBordered: true, hasBackground: false },
7152
6512
  variants: [
7153
6513
  {
7154
- id: "table",
7155
- name: "Table",
7156
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
7157
- layout: {
7158
- type: "Column",
7159
- children: ["tokens"],
7160
- columnAlign: "Start",
7161
- columnResizing: "Fill",
7162
- gap: "Medium"
7163
- },
7164
- maxColumns: 1,
7165
- defaultColumns: 1,
7166
- appearance: {
7167
- isBordered: false,
7168
- hasBackground: false,
7169
- isEditorPresentationDifferent: false
7170
- }
7171
- },
7172
- {
7173
- id: "grid",
7174
- name: "Grid",
7175
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
7176
- layout: {
7177
- type: "Column",
7178
- children: ["tokens"],
7179
- columnAlign: "Start",
7180
- columnResizing: "Fill",
7181
- gap: "Medium"
7182
- },
7183
- maxColumns: 4,
7184
- defaultColumns: 1,
7185
- appearance: {
7186
- isBordered: false,
7187
- hasBackground: false,
7188
- isEditorPresentationDifferent: false
7189
- }
7190
- },
7191
- {
7192
- id: "color-stack",
7193
- name: "Color stack",
6514
+ id: "default",
6515
+ name: "Default",
7194
6516
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
7195
- layout: {
7196
- type: "Column",
7197
- children: ["tokens"],
7198
- columnAlign: "Start",
7199
- columnResizing: "Fill",
7200
- gap: "Medium"
7201
- },
7202
- maxColumns: 1,
6517
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6518
+ maxColumns: 2,
7203
6519
  defaultColumns: 1,
7204
- appearance: {
7205
- isBordered: false,
7206
- hasBackground: false,
7207
- isEditorPresentationDifferent: false
7208
- }
6520
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
7209
6521
  }
7210
6522
  ],
7211
- defaultVariantKey: "table"
7212
- },
7213
- behavior: {
7214
- dataType: "Token",
7215
- entities: {
7216
- selectionType: "Entity",
7217
- maxSelected: 0
7218
- }
6523
+ defaultVariantKey: "default"
7219
6524
  },
6525
+ behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
7220
6526
  editorOptions: {
7221
- onboarding: {
7222
- helpText: "Show a list of design tokens. You can use this block to create a list of colors, typography, spacing, grid, or any other token type.",
7223
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-list-06"
7224
- }
6527
+ onboarding: { helpText: "The best way to display colors", documentationLink: "https://learn.supernova.io" }
7225
6528
  },
7226
- appearance: {
7227
- isBordered: false,
7228
- hasBackground: false
7229
- }
6529
+ appearance: { isBordered: true, hasBackground: false }
7230
6530
  },
7231
6531
  {
7232
- id: "io.supernova.block.token-group",
7233
- name: "Token group",
7234
- description: "Show a group of design tokens",
6532
+ id: "io.supernova.block.color-accessibility-grid",
6533
+ name: "Accessibility color grid",
6534
+ description: "Visualize accessibility of your color tokens",
7235
6535
  category: "Tokens",
7236
- icon: "https://cdn-assets.supernova.io/blocks/icons/token-list.svg",
7237
- searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
6536
+ icon: "https://cdn-assets.supernova.io/blocks/icons/token-accessibility-grid.svg",
6537
+ searchKeywords: ["tokens", "color", "accessibility", "grid", "contrast"],
7238
6538
  item: {
7239
6539
  properties: [
7240
6540
  {
7241
6541
  id: "tokens",
7242
6542
  name: "Tokens",
7243
6543
  type: "Token",
7244
- options: {
7245
- renderLayoutAs: "List",
7246
- defaultTheme: "none",
7247
- defaultValuePreview: "Split"
7248
- },
7249
- variantOptions: {
7250
- grid: {
7251
- renderLayoutAs: "Grid"
7252
- }
7253
- }
6544
+ options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: false }
7254
6545
  }
7255
6546
  ],
7256
- appearance: {
7257
- isBordered: false,
7258
- hasBackground: false
7259
- },
6547
+ appearance: { isBordered: true, hasBackground: false },
7260
6548
  variants: [
7261
6549
  {
7262
- id: "table",
7263
- name: "Table",
7264
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
7265
- layout: {
7266
- type: "Column",
7267
- children: ["tokens"],
7268
- columnAlign: "Start",
7269
- columnResizing: "Fill",
7270
- gap: "Medium"
7271
- },
6550
+ id: "default",
6551
+ name: "Default",
6552
+ image: "https://cdn-assets.supernova.io/blocks/variants/contrast-grid-large.svg",
6553
+ description: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
6554
+ layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7272
6555
  maxColumns: 1,
7273
6556
  defaultColumns: 1,
7274
- appearance: {
7275
- isBordered: false,
7276
- hasBackground: false,
7277
- isEditorPresentationDifferent: false
7278
- }
7279
- },
7280
- {
7281
- id: "grid",
7282
- name: "Grid",
7283
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
7284
- layout: {
7285
- type: "Column",
7286
- children: ["tokens"],
7287
- columnAlign: "Start",
7288
- columnResizing: "Fill",
7289
- gap: "Medium"
7290
- },
7291
- maxColumns: 4,
7292
- defaultColumns: 1,
7293
- appearance: {
7294
- isBordered: false,
7295
- hasBackground: false,
7296
- isEditorPresentationDifferent: false
7297
- }
7298
- },
7299
- {
7300
- id: "color-stack",
7301
- name: "Color stack",
7302
- image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
7303
- layout: {
7304
- type: "Column",
7305
- children: ["tokens"],
7306
- columnAlign: "Start",
7307
- columnResizing: "Fill",
7308
- gap: "Medium"
7309
- },
7310
- maxColumns: 2,
7311
- defaultColumns: 1,
7312
- appearance: {
7313
- isBordered: false,
7314
- hasBackground: false,
7315
- isEditorPresentationDifferent: false
7316
- }
6557
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
7317
6558
  }
7318
6559
  ],
7319
- defaultVariantKey: "table"
7320
- },
7321
- behavior: {
7322
- dataType: "Token",
7323
- entities: {
7324
- selectionType: "Group",
7325
- maxSelected: 1
7326
- }
6560
+ defaultVariantKey: "default"
7327
6561
  },
6562
+ behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
7328
6563
  editorOptions: {
7329
6564
  onboarding: {
7330
- helpText: "Show a group of design tokens. Automatically display all subgroups too.",
7331
- documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09"
6565
+ helpText: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
6566
+ documentationLink: "https://learn.supernova.io"
7332
6567
  }
7333
6568
  },
7334
- appearance: {
7335
- isBordered: false,
7336
- hasBackground: false
7337
- }
6569
+ appearance: { isBordered: true, hasBackground: false }
7338
6570
  },
7339
6571
  {
7340
6572
  id: "io.supernova.block.code",
@@ -7344,358 +6576,158 @@ var blocks = [
7344
6576
  icon: "https://cdn-assets.supernova.io/blocks/icons/code.svg",
7345
6577
  searchKeywords: ["code"],
7346
6578
  item: {
7347
- properties: [
7348
- {
7349
- id: "code",
7350
- name: "Code",
7351
- type: "Code",
7352
- options: {}
7353
- }
7354
- ],
7355
- appearance: {
7356
- isBordered: false,
7357
- hasBackground: false
7358
- },
6579
+ properties: [{ id: "code", name: "Code", type: "Code", options: {} }],
6580
+ appearance: { isBordered: true, hasBackground: false },
7359
6581
  variants: [
7360
6582
  {
7361
6583
  id: "default",
7362
6584
  name: "Default",
7363
- layout: {
7364
- type: "Column",
7365
- children: ["code"],
7366
- columnAlign: "Start",
7367
- columnResizing: "Fill",
7368
- gap: "Medium"
7369
- },
6585
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7370
6586
  maxColumns: 1,
7371
6587
  defaultColumns: 1,
7372
- appearance: {
7373
- isBordered: false,
7374
- hasBackground: false,
7375
- isEditorPresentationDifferent: false
7376
- }
6588
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7377
6589
  }
7378
6590
  ],
7379
6591
  defaultVariantKey: "default"
7380
6592
  },
7381
- behavior: {
7382
- dataType: "Item",
7383
- items: {
7384
- numberOfItems: 1,
7385
- allowLinks: false
7386
- }
7387
- },
7388
- editorOptions: {
7389
- onboarding: {
7390
- helpText: "Code descriptor."
7391
- }
7392
- },
7393
- appearance: {
7394
- isBordered: false,
7395
- hasBackground: false
7396
- }
6593
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
6594
+ editorOptions: { onboarding: { helpText: "Code descriptor." } },
6595
+ appearance: { isBordered: true, hasBackground: false }
7397
6596
  },
7398
6597
  {
7399
6598
  id: "io.supernova.block.code-react",
7400
6599
  name: "React code",
7401
- description: "Render React code",
6600
+ description: "Render a code snippet",
7402
6601
  category: "Code",
7403
- icon: "https://cdn-assets.supernova.io/blocks/icons/code-react.svg",
7404
- searchKeywords: ["code", "react", "snippet", "storybook", "editor", "example"],
6602
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/code-react.svg",
6603
+ searchKeywords: ["code", "react", "snippet", "storybook", "editor", "example", "sandbox"],
7405
6604
  item: {
7406
6605
  properties: [
7407
6606
  {
7408
6607
  id: "code",
7409
6608
  name: "Code",
7410
6609
  type: "CodeSandbox",
7411
- options: {
7412
- renderLayoutAs: "PreviewOnTop"
7413
- },
6610
+ options: { renderLayoutAs: "PreviewOnTop" },
7414
6611
  variantOptions: {
7415
- codeTop: {
7416
- renderLayoutAs: "PreviewOnBottom"
7417
- },
7418
- codeLeft: {
7419
- renderLayoutAs: "PreviewOnRight"
7420
- },
7421
- codeRight: {
7422
- renderLayoutAs: "PreviewOnLeft"
7423
- }
6612
+ codeTop: { renderLayoutAs: "PreviewOnBottom" },
6613
+ codeLeft: { renderLayoutAs: "PreviewOnRight" },
6614
+ codeRight: { renderLayoutAs: "PreviewOnLeft" }
7424
6615
  }
7425
6616
  }
7426
6617
  ],
7427
- appearance: {
7428
- isBordered: false,
7429
- hasBackground: false
7430
- },
6618
+ appearance: { isBordered: true, hasBackground: false },
7431
6619
  variants: [
7432
6620
  {
7433
6621
  id: "codeBottom",
7434
6622
  name: "Full width, code bottom",
7435
6623
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-bottom.svg",
7436
6624
  description: "Full-width block of code, with a preview on top.",
7437
- layout: {
7438
- type: "Column",
7439
- children: ["code"],
7440
- columnAlign: "Start",
7441
- columnResizing: "Fill",
7442
- gap: "Medium"
7443
- },
6625
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7444
6626
  maxColumns: 1,
7445
6627
  defaultColumns: 1,
7446
- appearance: {
7447
- isBordered: false,
7448
- hasBackground: false,
7449
- isEditorPresentationDifferent: false
7450
- }
6628
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7451
6629
  },
7452
6630
  {
7453
6631
  id: "codeTop",
7454
6632
  name: "Full width, code top",
7455
6633
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-top.svg",
7456
6634
  description: "Full-width block of code, with a preview on bottom.",
7457
- layout: {
7458
- type: "Column",
7459
- children: ["code"],
7460
- columnAlign: "Start",
7461
- columnResizing: "Fill",
7462
- gap: "Medium"
7463
- },
6635
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7464
6636
  maxColumns: 1,
7465
6637
  defaultColumns: 1,
7466
- appearance: {
7467
- isBordered: false,
7468
- hasBackground: false,
7469
- isEditorPresentationDifferent: false
7470
- }
6638
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7471
6639
  },
7472
6640
  {
7473
6641
  id: "codeLeft",
7474
6642
  name: "Side by side, code left",
7475
6643
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-left.svg",
7476
6644
  description: "Side-by-side preview and code, with code on the left.",
7477
- layout: {
7478
- type: "Column",
7479
- children: ["code"],
7480
- columnAlign: "Start",
7481
- columnResizing: "Fill",
7482
- gap: "Medium"
7483
- },
6645
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7484
6646
  maxColumns: 1,
7485
6647
  defaultColumns: 1,
7486
- appearance: {
7487
- isBordered: false,
7488
- hasBackground: false,
7489
- isEditorPresentationDifferent: false
7490
- }
6648
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7491
6649
  },
7492
6650
  {
7493
6651
  id: "codeRight",
7494
6652
  name: "Side by side, code right",
7495
6653
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-right.svg",
7496
6654
  description: "Side-by-side preview and code, with code on the right.",
7497
- layout: {
7498
- type: "Column",
7499
- children: ["code"],
7500
- columnAlign: "Start",
7501
- columnResizing: "Fill",
7502
- gap: "Medium"
7503
- },
6655
+ layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7504
6656
  maxColumns: 1,
7505
6657
  defaultColumns: 1,
7506
- appearance: {
7507
- isBordered: false,
7508
- hasBackground: false,
7509
- isEditorPresentationDifferent: false
7510
- }
6658
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7511
6659
  }
7512
6660
  ],
7513
6661
  defaultVariantKey: "codeBottom"
7514
6662
  },
7515
- behavior: {
7516
- dataType: "Item",
7517
- items: {
7518
- numberOfItems: 1,
7519
- allowLinks: false
7520
- }
7521
- },
6663
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7522
6664
  editorOptions: {
7523
6665
  onboarding: {
7524
6666
  helpText: "Display rendered code example",
7525
6667
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/render-react-code-vxufnkFm"
7526
6668
  }
7527
6669
  },
7528
- appearance: {
7529
- isBordered: false,
7530
- hasBackground: false
7531
- }
7532
- },
7533
- {
7534
- id: "io.supernova.block.link",
7535
- name: "Link",
7536
- description: "Preview of a link",
7537
- category: "Media",
7538
- icon: "https://cdn-assets.supernova.io/blocks/icons/shortcut-link.svg",
7539
- searchKeywords: [],
7540
- item: {
7541
- properties: [
7542
- {
7543
- id: "block.links.property.url",
7544
- name: "URL",
7545
- type: "EmbedURL",
7546
- options: {
7547
- defaultHeight: 120,
7548
- allowResize: false
7549
- }
7550
- }
7551
- ],
7552
- appearance: {
7553
- isBordered: false,
7554
- hasBackground: false
7555
- },
7556
- variants: [
7557
- {
7558
- id: "default",
7559
- name: "Default",
7560
- layout: {
7561
- type: "Column",
7562
- children: ["block.links.property.url"],
7563
- columnAlign: "Start",
7564
- columnResizing: "Fill",
7565
- gap: "Medium"
7566
- },
7567
- maxColumns: 1,
7568
- defaultColumns: 1,
7569
- appearance: {
7570
- isBordered: false,
7571
- hasBackground: false,
7572
- isEditorPresentationDifferent: false
7573
- }
7574
- }
7575
- ],
7576
- defaultVariantKey: "default"
7577
- },
7578
- behavior: {
7579
- dataType: "Item",
7580
- items: {
7581
- numberOfItems: 1,
7582
- allowLinks: false
7583
- }
7584
- },
7585
- editorOptions: {},
7586
- appearance: {
7587
- isBordered: false,
7588
- hasBackground: false
7589
- }
6670
+ appearance: { isBordered: false, hasBackground: false }
7590
6671
  },
7591
6672
  {
7592
6673
  id: "io.supernova.block.assets",
7593
6674
  name: "Assets",
7594
6675
  description: "Display icons or illustrations",
7595
6676
  category: "Assets",
7596
- icon: "https://cdn-assets.supernova.io/blocks/icons/assets.svg",
7597
- searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "theme"],
6677
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
6678
+ searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
7598
6679
  item: {
7599
- properties: [
7600
- {
7601
- id: "assets",
7602
- name: "Assets",
7603
- type: "Asset",
7604
- options: {}
7605
- }
7606
- ],
7607
- appearance: {
7608
- isBordered: false,
7609
- hasBackground: false
7610
- },
6680
+ properties: [{ id: "assets", name: "Assets", type: "Asset", options: {} }],
6681
+ appearance: { isBordered: true, hasBackground: false },
7611
6682
  variants: [
7612
6683
  {
7613
6684
  id: "default",
7614
6685
  name: "Simple grid",
7615
6686
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
7616
6687
  description: "A simple grid of assets. Both the title and description are displayed below the preview.",
7617
- layout: {
7618
- type: "Column",
7619
- children: ["assets"],
7620
- columnAlign: "Start",
7621
- columnResizing: "Fill",
7622
- gap: "Medium"
7623
- },
7624
- maxColumns: 1,
6688
+ layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6689
+ maxColumns: 8,
7625
6690
  defaultColumns: 1,
7626
- appearance: {
7627
- isBordered: false,
7628
- hasBackground: false,
7629
- isEditorPresentationDifferent: false
7630
- }
6691
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7631
6692
  },
7632
6693
  {
7633
6694
  id: "square-grid",
7634
6695
  name: "Square grid",
7635
6696
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
7636
6697
  description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
7637
- layout: {
7638
- type: "Column",
7639
- children: ["assets"],
7640
- columnAlign: "Start",
7641
- columnResizing: "Fill",
7642
- gap: "Medium"
7643
- },
7644
- maxColumns: 1,
6698
+ layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6699
+ maxColumns: 8,
7645
6700
  defaultColumns: 1,
7646
- appearance: {
7647
- isBordered: false,
7648
- hasBackground: false,
7649
- isEditorPresentationDifferent: false
7650
- }
6701
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7651
6702
  },
7652
6703
  {
7653
6704
  id: "borderless-grid",
7654
6705
  name: "Borderless grid",
7655
6706
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
7656
6707
  description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
7657
- layout: {
7658
- type: "Column",
7659
- children: ["assets"],
7660
- columnAlign: "Start",
7661
- columnResizing: "Fill",
7662
- gap: "Medium"
7663
- },
7664
- maxColumns: 1,
6708
+ layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
6709
+ maxColumns: 8,
7665
6710
  defaultColumns: 1,
7666
- appearance: {
7667
- isBordered: false,
7668
- hasBackground: false,
7669
- isEditorPresentationDifferent: false
7670
- }
6711
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7671
6712
  }
7672
6713
  ],
7673
6714
  defaultVariantKey: "default"
7674
6715
  },
7675
- behavior: {
7676
- dataType: "Asset",
7677
- entities: {
7678
- selectionType: "EntityAndGroup",
7679
- maxSelected: 0
7680
- }
7681
- },
6716
+ behavior: { dataType: "Asset", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
7682
6717
  editorOptions: {
7683
6718
  onboarding: {
7684
6719
  helpText: "Display a grid of icons or illustrations.",
7685
6720
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/asset/general-xa6EgXb2"
7686
6721
  }
7687
6722
  },
7688
- appearance: {
7689
- isBordered: false,
7690
- hasBackground: false
7691
- }
6723
+ appearance: { isBordered: true, hasBackground: false }
7692
6724
  },
7693
6725
  {
7694
6726
  id: "io.supernova.block.figma-frames",
7695
6727
  name: "Figma frames",
7696
6728
  description: "Display Figma frames as images",
7697
6729
  category: "Figma",
7698
- icon: "https://cdn-assets.supernova.io/blocks/icons/figma-frames.svg",
6730
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/figma-frames.svg",
7699
6731
  searchKeywords: ["figma", "frames", "image"],
7700
6732
  item: {
7701
6733
  properties: [
@@ -7706,10 +6738,7 @@ var blocks = [
7706
6738
  options: {}
7707
6739
  }
7708
6740
  ],
7709
- appearance: {
7710
- isBordered: false,
7711
- hasBackground: false
7712
- },
6741
+ appearance: { isBordered: true, hasBackground: false },
7713
6742
  variants: [
7714
6743
  {
7715
6744
  id: "bordered",
@@ -7725,11 +6754,7 @@ var blocks = [
7725
6754
  },
7726
6755
  maxColumns: 1,
7727
6756
  defaultColumns: 1,
7728
- appearance: {
7729
- isBordered: false,
7730
- hasBackground: false,
7731
- isEditorPresentationDifferent: false
7732
- }
6757
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7733
6758
  },
7734
6759
  {
7735
6760
  id: "plain",
@@ -7745,32 +6770,19 @@ var blocks = [
7745
6770
  },
7746
6771
  maxColumns: 1,
7747
6772
  defaultColumns: 1,
7748
- appearance: {
7749
- isBordered: false,
7750
- hasBackground: false,
7751
- isEditorPresentationDifferent: false
7752
- }
6773
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: false }
7753
6774
  }
7754
6775
  ],
7755
6776
  defaultVariantKey: "bordered"
7756
6777
  },
7757
- behavior: {
7758
- dataType: "FigmaNode",
7759
- entities: {
7760
- selectionType: "Entity",
7761
- maxSelected: 0
7762
- }
7763
- },
6778
+ behavior: { dataType: "FigmaNode", entities: { selectionType: "Entity", maxSelected: 0 } },
7764
6779
  editorOptions: {
7765
6780
  onboarding: {
7766
6781
  helpText: "Display Figma frames as images.",
7767
6782
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/figma-frames/general-f3IYC5dg"
7768
6783
  }
7769
6784
  },
7770
- appearance: {
7771
- isBordered: false,
7772
- hasBackground: false
7773
- }
6785
+ appearance: { isBordered: true, hasBackground: false }
7774
6786
  },
7775
6787
  {
7776
6788
  id: "io.supernova.block.release-notes",
@@ -7781,54 +6793,32 @@ var blocks = [
7781
6793
  searchKeywords: ["version", "changelog", "history"],
7782
6794
  item: {
7783
6795
  properties: [],
7784
- appearance: {
7785
- isBordered: false,
7786
- hasBackground: false
7787
- },
6796
+ appearance: { isBordered: true, hasBackground: false },
7788
6797
  variants: [
7789
6798
  {
7790
6799
  id: "default",
7791
6800
  name: "Default",
7792
6801
  image: "https://cdn-assets.supernova.io/blocks/variants/release-notes.svg",
7793
- layout: {
7794
- type: "Column",
7795
- children: [],
7796
- columnAlign: "Start",
7797
- columnResizing: "Fill",
7798
- gap: "Medium"
7799
- },
6802
+ layout: { type: "Column", children: [], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7800
6803
  maxColumns: 1,
7801
6804
  defaultColumns: 1,
7802
- appearance: {
7803
- isBordered: false,
7804
- hasBackground: false,
7805
- isEditorPresentationDifferent: true
7806
- }
6805
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
7807
6806
  }
7808
6807
  ],
7809
6808
  defaultVariantKey: "default"
7810
6809
  },
7811
- behavior: {
7812
- dataType: "Item",
7813
- items: {
7814
- numberOfItems: 1,
7815
- allowLinks: false
7816
- }
7817
- },
6810
+ behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7818
6811
  editorOptions: {
7819
6812
  onboarding: {
7820
- helpText: "Show formatted release notes from all previous released versions"
6813
+ helpText: "Show formatted release notes from all previous released versions."
7821
6814
  }
7822
6815
  },
7823
- appearance: {
7824
- isBordered: false,
7825
- hasBackground: false
7826
- }
6816
+ appearance: { isBordered: true, hasBackground: false }
7827
6817
  },
7828
6818
  {
7829
6819
  id: "io.supernova.block.component-checklist",
7830
6820
  name: "Component checklist",
7831
- description: "Highlight specific features of your components",
6821
+ description: "Highlight specific component properties",
7832
6822
  category: "Components",
7833
6823
  icon: "https://cdn-assets.supernova.io/blocks/icons/component-checklist.svg",
7834
6824
  searchKeywords: ["components", "health", "properties", "overview", "status"],
@@ -7838,31 +6828,22 @@ var blocks = [
7838
6828
  id: "components",
7839
6829
  name: "Components",
7840
6830
  type: "Component",
7841
- options: {
7842
- renderLayoutAs: "List"
7843
- }
7844
- },
7845
- {
7846
- id: "showDescription",
7847
- name: "Show description",
7848
- type: "Boolean",
7849
- options: {
7850
- defaultValue: true
7851
- }
6831
+ options: { renderLayoutAs: "List" }
7852
6832
  },
7853
6833
  {
7854
6834
  id: "title",
7855
6835
  name: "Title",
7856
6836
  type: "Text",
7857
- options: {
7858
- defaultValue: "Component checklist"
7859
- }
6837
+ options: { defaultValue: "Component checklist" }
6838
+ },
6839
+ {
6840
+ id: "showDescription",
6841
+ name: "Show description",
6842
+ type: "Boolean",
6843
+ options: { defaultValue: true }
7860
6844
  }
7861
6845
  ],
7862
- appearance: {
7863
- isBordered: false,
7864
- hasBackground: false
7865
- },
6846
+ appearance: { isBordered: true, hasBackground: false },
7866
6847
  variants: [
7867
6848
  {
7868
6849
  id: "default",
@@ -7870,70 +6851,50 @@ var blocks = [
7870
6851
  image: "https://cdn-assets.supernova.io/blocks/variants/component-checklist.svg",
7871
6852
  layout: {
7872
6853
  type: "Column",
7873
- children: ["components", "showDescription", "title"],
6854
+ children: ["components", "showDescription"],
7874
6855
  columnAlign: "Start",
7875
6856
  columnResizing: "Fill",
7876
6857
  gap: "Medium"
7877
6858
  },
7878
6859
  maxColumns: 1,
7879
6860
  defaultColumns: 1,
7880
- appearance: {
7881
- isBordered: false,
7882
- hasBackground: false,
7883
- isEditorPresentationDifferent: true
7884
- }
6861
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
7885
6862
  }
7886
6863
  ],
7887
6864
  defaultVariantKey: "default"
7888
6865
  },
7889
- behavior: {
7890
- dataType: "Component",
7891
- entities: {
7892
- selectionType: "Entity",
7893
- maxSelected: 1
7894
- }
7895
- },
6866
+ behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
7896
6867
  editorOptions: {
7897
6868
  onboarding: {
7898
- helpText: "Highlight specific features of your components.",
6869
+ helpText: "Highlight specific component properties",
7899
6870
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-checklist-NXepPIpZ"
7900
6871
  }
7901
6872
  },
7902
- appearance: {
7903
- isBordered: false,
7904
- hasBackground: false
7905
- }
6873
+ appearance: { isBordered: true, hasBackground: false }
7906
6874
  },
7907
6875
  {
7908
6876
  id: "io.supernova.block.component-checklist-all",
7909
6877
  name: "Component overview table",
7910
- description: "Show the overview of all your components",
6878
+ description: "Show an overview of all components",
7911
6879
  category: "Components",
7912
- icon: "https://cdn-assets.supernova.io/blocks/icons/component-overview-table.svg",
7913
- searchKeywords: ["components", "health", "properties", "overview", "status"],
6880
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/component-checklist-all.svg",
6881
+ searchKeywords: ["components", "health", "overview", "status"],
7914
6882
  item: {
7915
6883
  properties: [
7916
6884
  {
7917
6885
  id: "components",
7918
6886
  name: "Components",
7919
6887
  type: "Component",
7920
- options: {
7921
- renderLayoutAs: "Table"
7922
- }
6888
+ options: { renderLayoutAs: "Table" }
7923
6889
  },
7924
6890
  {
7925
6891
  id: "showLastUpdatedColumn",
7926
6892
  name: "Show last updated column",
7927
6893
  type: "Boolean",
7928
- options: {
7929
- defaultValue: true
7930
- }
6894
+ options: { defaultValue: true }
7931
6895
  }
7932
6896
  ],
7933
- appearance: {
7934
- isBordered: false,
7935
- hasBackground: false
7936
- },
6897
+ appearance: { isBordered: true, hasBackground: false },
7937
6898
  variants: [
7938
6899
  {
7939
6900
  id: "default",
@@ -7948,39 +6909,26 @@ var blocks = [
7948
6909
  },
7949
6910
  maxColumns: 1,
7950
6911
  defaultColumns: 1,
7951
- appearance: {
7952
- isBordered: false,
7953
- hasBackground: false,
7954
- isEditorPresentationDifferent: true
7955
- }
6912
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
7956
6913
  }
7957
6914
  ],
7958
6915
  defaultVariantKey: "default"
7959
6916
  },
7960
- behavior: {
7961
- dataType: "Component",
7962
- entities: {
7963
- selectionType: "Group",
7964
- maxSelected: 1
7965
- }
7966
- },
6917
+ behavior: { dataType: "Component", entities: { selectionType: "Group", maxSelected: 1 } },
7967
6918
  editorOptions: {
7968
6919
  onboarding: {
7969
- helpText: "Show the overview of all your components",
6920
+ helpText: "Show an overview of all your components",
7970
6921
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-overview-table-W8eOtJ5t"
7971
6922
  }
7972
6923
  },
7973
- appearance: {
7974
- isBordered: false,
7975
- hasBackground: false
7976
- }
6924
+ appearance: { isBordered: true, hasBackground: false }
7977
6925
  },
7978
6926
  {
7979
6927
  id: "io.supernova.block.component-health",
7980
6928
  name: "Component health",
7981
- description: "Show component health and additional attributes",
6929
+ description: "Show component health and other attributes",
7982
6930
  category: "Components",
7983
- icon: "https://cdn-assets.supernova.io/blocks/icons/component-health.svg",
6931
+ icon: "https://cdn-assets.supernova.io/blocks/icons/v2/component-health.svg",
7984
6932
  searchKeywords: ["components", "health", "properties", "overview", "status"],
7985
6933
  item: {
7986
6934
  properties: [
@@ -7988,15 +6936,10 @@ var blocks = [
7988
6936
  id: "components",
7989
6937
  name: "Components",
7990
6938
  type: "Component",
7991
- options: {
7992
- renderLayoutAs: "List"
7993
- }
6939
+ options: { renderLayoutAs: "List" }
7994
6940
  }
7995
6941
  ],
7996
- appearance: {
7997
- isBordered: false,
7998
- hasBackground: false
7999
- },
6942
+ appearance: { isBordered: true, hasBackground: false },
8000
6943
  variants: [
8001
6944
  {
8002
6945
  id: "default",
@@ -8011,32 +6954,19 @@ var blocks = [
8011
6954
  },
8012
6955
  maxColumns: 1,
8013
6956
  defaultColumns: 1,
8014
- appearance: {
8015
- isBordered: false,
8016
- hasBackground: false,
8017
- isEditorPresentationDifferent: true
8018
- }
6957
+ appearance: { isBordered: true, hasBackground: false, isEditorPresentationDifferent: true }
8019
6958
  }
8020
6959
  ],
8021
6960
  defaultVariantKey: "default"
8022
6961
  },
8023
- behavior: {
8024
- dataType: "Component",
8025
- entities: {
8026
- selectionType: "Entity",
8027
- maxSelected: 1
8028
- }
8029
- },
6962
+ behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
8030
6963
  editorOptions: {
8031
6964
  onboarding: {
8032
6965
  helpText: "Show component health and additional attributes",
8033
6966
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-health-sezSxEED"
8034
6967
  }
8035
6968
  },
8036
- appearance: {
8037
- isBordered: false,
8038
- hasBackground: false
8039
- }
6969
+ appearance: { isBordered: true, hasBackground: false }
8040
6970
  }
8041
6971
  ];
8042
6972
 
@@ -8218,7 +7148,7 @@ function parseAsMultiRichText(prosemirrorNode, definition, property) {
8218
7148
  value: (_nullishCoalesce(prosemirrorNode.content, () => ( []))).map((listItem) => {
8219
7149
  if (listItem.type !== "listItem")
8220
7150
  return null;
8221
- if (!_optionalChain([listItem, 'access', _17 => _17.content, 'optionalAccess', _18 => _18.length]))
7151
+ if (!_optionalChain([listItem, 'access', _19 => _19.content, 'optionalAccess', _20 => _20.length]))
8222
7152
  return parseRichText([]);
8223
7153
  const paragraph = listItem.content[0];
8224
7154
  if (paragraph.type !== "paragraph")
@@ -8287,17 +7217,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
8287
7217
  return null;
8288
7218
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8289
7219
  const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
8290
- const tableChild = _optionalChain([prosemirrorNode, 'access', _19 => _19.content, 'optionalAccess', _20 => _20.find, 'call', _21 => _21((c) => c.type === "table")]);
7220
+ const tableChild = _optionalChain([prosemirrorNode, 'access', _21 => _21.content, 'optionalAccess', _22 => _22.find, 'call', _23 => _23((c) => c.type === "table")]);
8291
7221
  if (!tableChild) {
8292
7222
  return emptyTable(id, variantId, 0);
8293
7223
  }
8294
- const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _22 => _22.content, 'optionalAccess', _23 => _23.filter, 'call', _24 => _24((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _25 => _25.content, 'optionalAccess', _26 => _26.length]))]), () => ( []));
7224
+ const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _24 => _24.content, 'optionalAccess', _25 => _25.filter, 'call', _26 => _26((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _27 => _27.content, 'optionalAccess', _28 => _28.length]))]), () => ( []));
8295
7225
  if (!rows.length) {
8296
7226
  return emptyTable(id, variantId, 0);
8297
7227
  }
8298
- const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _27 => _27[0], 'access', _28 => _28.content, 'optionalAccess', _29 => _29.filter, 'call', _30 => _30((c) => c.type === "tableHeader"), 'access', _31 => _31.length]), () => ( 0));
8299
- const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _32 => _32.content, 'optionalAccess', _33 => _33[0], 'optionalAccess', _34 => _34.type]) === "tableHeader").length;
8300
- const hasHeaderRow = _optionalChain([rows, 'access', _35 => _35[0], 'access', _36 => _36.content, 'optionalAccess', _37 => _37.length]) === rowHeaderCells;
7228
+ const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _29 => _29[0], 'access', _30 => _30.content, 'optionalAccess', _31 => _31.filter, 'call', _32 => _32((c) => c.type === "tableHeader"), 'access', _33 => _33.length]), () => ( 0));
7229
+ const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _34 => _34.content, 'optionalAccess', _35 => _35[0], 'optionalAccess', _36 => _36.type]) === "tableHeader").length;
7230
+ const hasHeaderRow = _optionalChain([rows, 'access', _37 => _37[0], 'access', _38 => _38.content, 'optionalAccess', _39 => _39.length]) === rowHeaderCells;
8301
7231
  const hasHeaderColumn = rows.length === columnHeaderCells;
8302
7232
  const tableValue = {
8303
7233
  showBorder: hasBorder,
@@ -8379,7 +7309,7 @@ function parseAsTableNode(prosemirrorNode) {
8379
7309
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
8380
7310
  if (!parsedItems.success)
8381
7311
  return null;
8382
- const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _38 => _38.data, 'access', _39 => _39[0], 'optionalAccess', _40 => _40.props, 'access', _41 => _41.image]);
7312
+ const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _40 => _40.data, 'access', _41 => _41[0], 'optionalAccess', _42 => _42.props, 'access', _43 => _43.image]);
8383
7313
  if (!rawImagePropertyValue)
8384
7314
  return null;
8385
7315
  const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
@@ -8601,7 +7531,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
8601
7531
  return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
8602
7532
  }
8603
7533
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
8604
- const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _42 => _42.attrs, 'optionalAccess', _43 => _43[attributeName]]));
7534
+ const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _44 => _44.attrs, 'optionalAccess', _45 => _45[attributeName]]));
8605
7535
  if (parsedAttr.success) {
8606
7536
  return parsedAttr.data;
8607
7537
  } else {