@supernova-studio/client 0.47.57 → 0.47.59

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
@@ -640,6 +640,61 @@ var ComponentElementData = _zod.z.object({
640
640
  }).optional()
641
641
  })
642
642
  });
643
+ var ElementPropertyTypeSchema = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
644
+ var ElementPropertyTargetType = _zod.z.enum(["Token", "Component", "DocumentationPage"]);
645
+ var ElementPropertyLinkType = _zod.z.enum(["FigmaComponent", "DocumentationPage"]);
646
+ var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
647
+ var ColorTokenInlineData = _zod.z.object({
648
+ value: _zod.z.string()
649
+ });
650
+ var ElementPropertyDefinitionOption = _zod.z.object({
651
+ id: _zod.z.string(),
652
+ name: _zod.z.string(),
653
+ backgroundColor: ColorTokenInlineData.optional()
654
+ });
655
+ var ElementPropertyDefinition = _zod.z.object({
656
+ id: _zod.z.string(),
657
+ designSystemVersionId: _zod.z.string(),
658
+ persistentId: _zod.z.string(),
659
+ name: _zod.z.string(),
660
+ codeName: _zod.z.string().regex(CODE_NAME_REGEX),
661
+ description: _zod.z.string(),
662
+ type: ElementPropertyTypeSchema,
663
+ targetElementType: ElementPropertyTargetType,
664
+ options: _zod.z.array(ElementPropertyDefinitionOption).optional(),
665
+ linkElementType: ElementPropertyLinkType.optional()
666
+ });
667
+ var ElementPropertyType = ElementPropertyTypeSchema.enum;
668
+ var ElementPropertyValue = _zod.z.object({
669
+ id: _zod.z.string(),
670
+ designSystemVersionId: _zod.z.string(),
671
+ targetElementPersistentId: _zod.z.string(),
672
+ definitionPersistentId: _zod.z.string(),
673
+ stringValue: _zod.z.string().nullish(),
674
+ numberValue: _zod.z.number().nullish(),
675
+ booleanValue: _zod.z.boolean().nullish(),
676
+ referenceValue: _zod.z.string().nullish(),
677
+ referenceValuePreview: _zod.z.string().optional()
678
+ });
679
+ var Point2D = _zod.z.object({
680
+ x: _zod.z.number(),
681
+ y: _zod.z.number()
682
+ });
683
+ var nullSize = { height: -1, width: -1 };
684
+ function isNullSize(size) {
685
+ return size.height === nullSize.height && size.width === nullSize.width;
686
+ }
687
+ var Size = _zod.z.object({
688
+ width: _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( nullSize.width))),
689
+ height: _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( nullSize.height)))
690
+ });
691
+ var SizeOrUndefined = Size.optional().transform((v) => {
692
+ if (!v)
693
+ return void 0;
694
+ if (isNullSize(v))
695
+ return void 0;
696
+ return v;
697
+ });
643
698
  var DesignTokenType = _zod.z.enum([
644
699
  "Color",
645
700
  "Border",
@@ -721,61 +776,6 @@ var DesignElement = ShallowDesignElement.extend({
721
776
  var HierarchicalElements = DesignTokenType.or(
722
777
  _zod.z.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
723
778
  );
724
- var ElementPropertyTypeSchema = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
725
- var ElementPropertyTargetType = _zod.z.enum(["Token", "Component", "DocumentationPage"]);
726
- var ElementPropertyLinkType = _zod.z.enum(["FigmaComponent", "DocumentationPage"]);
727
- var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
728
- var ColorTokenInlineData = _zod.z.object({
729
- value: _zod.z.string()
730
- });
731
- var ElementPropertyDefinitionOption = _zod.z.object({
732
- id: _zod.z.string(),
733
- name: _zod.z.string(),
734
- backgroundColor: ColorTokenInlineData.optional()
735
- });
736
- var ElementPropertyDefinition = _zod.z.object({
737
- id: _zod.z.string(),
738
- designSystemVersionId: _zod.z.string(),
739
- persistentId: _zod.z.string(),
740
- name: _zod.z.string(),
741
- codeName: _zod.z.string().regex(CODE_NAME_REGEX),
742
- description: _zod.z.string(),
743
- type: ElementPropertyTypeSchema,
744
- targetElementType: ElementPropertyTargetType,
745
- options: _zod.z.array(ElementPropertyDefinitionOption).optional(),
746
- linkElementType: ElementPropertyLinkType.optional()
747
- });
748
- var ElementPropertyType = ElementPropertyTypeSchema.enum;
749
- var ElementPropertyValue = _zod.z.object({
750
- id: _zod.z.string(),
751
- designSystemVersionId: _zod.z.string(),
752
- targetElementPersistentId: _zod.z.string(),
753
- definitionPersistentId: _zod.z.string(),
754
- stringValue: _zod.z.string().nullish(),
755
- numberValue: _zod.z.number().nullish(),
756
- booleanValue: _zod.z.boolean().nullish(),
757
- referenceValue: _zod.z.string().nullish(),
758
- referenceValuePreview: _zod.z.string().optional()
759
- });
760
- var Point2D = _zod.z.object({
761
- x: _zod.z.number(),
762
- y: _zod.z.number()
763
- });
764
- var nullSize = { height: -1, width: -1 };
765
- function isNullSize(size) {
766
- return size.height === nullSize.height && size.width === nullSize.width;
767
- }
768
- var Size = _zod.z.object({
769
- width: _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( nullSize.width))),
770
- height: _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( nullSize.height)))
771
- });
772
- var SizeOrUndefined = Size.optional().transform((v) => {
773
- if (!v)
774
- return void 0;
775
- if (isNullSize(v))
776
- return void 0;
777
- return v;
778
- });
779
779
  var PageBlockCalloutType = _zod.z.enum(["Info", "Primary", "Success", "Warning", "Error"]);
780
780
  var PageBlockTypeV1 = _zod.z.enum([
781
781
  "Text",
@@ -808,7 +808,8 @@ var PageBlockTypeV1 = _zod.z.enum([
808
808
  "TabItem",
809
809
  "Table",
810
810
  "TableRow",
811
- "TableCell"
811
+ "TableCell",
812
+ "Guidelines"
812
813
  ]);
813
814
  var PageBlockCodeLanguage = _zod.z.enum([
814
815
  "Angular",
@@ -966,9 +967,15 @@ var PageBlockTextSpan = _zod.z.object({
966
967
  var PageBlockText = _zod.z.object({
967
968
  spans: _zod.z.array(PageBlockTextSpan)
968
969
  });
970
+ var PageBlockGuideline = _zod.z.object({
971
+ description: nullishToOptional(_zod.z.string()),
972
+ asset: nullishToOptional(PageBlockAsset),
973
+ type: _zod.z.string()
974
+ });
969
975
  var PageBlockBaseV1 = _zod.z.object({
970
976
  persistentId: _zod.z.string(),
971
977
  type: PageBlockTypeV1,
978
+ numberOfColumns: nullishToOptional(_zod.z.number()),
972
979
  // Element linking
973
980
  designObjectId: nullishToOptional(_zod.z.string()),
974
981
  designObjectIds: nullishToOptional(_zod.z.array(_zod.z.string())),
@@ -989,6 +996,8 @@ var PageBlockBaseV1 = _zod.z.object({
989
996
  alignment: nullishToOptional(PageBlockAlignment),
990
997
  // Shortcuts block
991
998
  shortcuts: nullishToOptional(_zod.z.array(PageBlockShortcut)),
999
+ // Guidelines
1000
+ guidelines: nullishToOptional(PageBlockGuideline.array()),
992
1001
  // Custom blocks
993
1002
  customBlockKey: nullishToOptional(_zod.z.string()),
994
1003
  customBlockProperties: nullishToOptional(_zod.z.array(PageBlockCustomBlockPropertyValue)),
@@ -2370,7 +2379,8 @@ var PageBlockDefinition = _zod.z.object({
2370
2379
  item: PageBlockDefinitionItem,
2371
2380
  behavior: PageBlockDefinitionBehavior,
2372
2381
  editorOptions: _zod.z.object({
2373
- onboarding: PageBlockDefinitionOnboarding.optional()
2382
+ onboarding: PageBlockDefinitionOnboarding.optional(),
2383
+ newItemLabel: _zod.z.string().optional()
2374
2384
  }),
2375
2385
  appearance: PageBlockDefinitionAppearance.optional()
2376
2386
  });
@@ -2462,6 +2472,7 @@ var DocumentationCommentThread = _zod.z.object({
2462
2472
  var DesignElementSnapshotReason = _zod.z.enum(["Publish", "Deletion"]);
2463
2473
  var DesignElementSnapshotBase = _zod.z.object({
2464
2474
  id: _zod.z.string(),
2475
+ persistentId: _zod.z.string(),
2465
2476
  designSystemVersionId: _zod.z.string(),
2466
2477
  createdAt: _zod.z.coerce.date(),
2467
2478
  updatedAt: _zod.z.coerce.date(),
@@ -2848,12 +2859,12 @@ var DesignSystemVersionRoomInitialState = _zod.z.object({
2848
2859
  var DesignSystemVersionRoomUpdate = _zod.z.object({
2849
2860
  pages: _zod.z.array(DocumentationPageV2),
2850
2861
  groups: _zod.z.array(ElementGroup),
2851
- deletedPageIds: _zod.z.array(_zod.z.string()),
2852
- deletedGroupIds: _zod.z.array(_zod.z.string()),
2853
- publishedPageSnapshots: _zod.z.array(DocumentationPageSnapshot),
2854
- publishedGroupSnapshots: _zod.z.array(ElementGroupSnapshot),
2855
- deletedPageSnapshots: _zod.z.array(DocumentationPageSnapshot),
2856
- deletedGroupSnapshots: _zod.z.array(ElementGroupSnapshot)
2862
+ pageIdsToDelete: _zod.z.array(_zod.z.string()),
2863
+ groupIdsToDelete: _zod.z.array(_zod.z.string()),
2864
+ pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
2865
+ groupSnapshots: _zod.z.array(ElementGroupSnapshot),
2866
+ pageSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
2867
+ groupSnapshotIdsToDelete: _zod.z.array(_zod.z.string())
2857
2868
  });
2858
2869
  var DocumentationPageRoom = Entity.extend({
2859
2870
  designSystemVersionId: _zod.z.string(),
@@ -5209,7 +5220,11 @@ var DTOPipeline = _zod.z.object({
5209
5220
 
5210
5221
  // src/api/dto/documentation/publish.ts
5211
5222
  var DTOPublishDocumentationRequest = _zod.z.object({
5212
- environment: PublishedDocEnvironment
5223
+ environment: PublishedDocEnvironment,
5224
+ changes: _zod.z.object({
5225
+ pagePersistentIds: _zod.z.string().array(),
5226
+ groupPersistentIds: _zod.z.string().array()
5227
+ })
5213
5228
  });
5214
5229
  var DTOPublishDocumentationResponse = _zod.z.object({
5215
5230
  job: DTOExportJob
@@ -5935,64 +5950,34 @@ var VersionRoomBaseYDoc = class {
5935
5950
  return this.yDoc.getMap("documentationInternalSettings");
5936
5951
  }
5937
5952
  //
5938
- // Documentation page published snapshot
5953
+ // Documentation page snapshot
5939
5954
  //
5940
- getPagePublishedSnapshots() {
5955
+ getPageSnapshots() {
5941
5956
  return this.getObjects(this.documentationPagePublishedStatesYMap, DocumentationPageSnapshot);
5942
5957
  }
5943
- updatePagePublishedSnapshots(snapshots) {
5958
+ updatePageSnapshots(snapshots) {
5944
5959
  this.setObjects(this.documentationPagePublishedStatesYMap, snapshots);
5945
5960
  }
5946
- deletePagePublishedSnapshots(ids) {
5961
+ deletePageSnapshots(ids) {
5947
5962
  this.deleteObjects(this.documentationPagePublishedStatesYMap, ids);
5948
5963
  }
5949
5964
  get documentationPagePublishedStatesYMap() {
5950
- return this.yDoc.getMap("documentationPagePublishedSnapshots");
5965
+ return this.yDoc.getMap("documentationPageSnapshots");
5951
5966
  }
5952
5967
  //
5953
- // Documentation page deleted snapshot
5968
+ // Documentation group snapshots
5954
5969
  //
5955
- getPageDeletedSnapshots() {
5956
- return this.getObjects(this.documentationPageDeletedStatesYMap, DocumentationPageSnapshot);
5957
- }
5958
- updatePageDeletedSnapshots(snapshots) {
5959
- this.setObjects(this.documentationPageDeletedStatesYMap, snapshots);
5960
- }
5961
- deletePageDeletedSnapshots(ids) {
5962
- this.deleteObjects(this.documentationPageDeletedStatesYMap, ids);
5963
- }
5964
- get documentationPageDeletedStatesYMap() {
5965
- return this.yDoc.getMap("documentationPageDeletedSnapshots");
5966
- }
5967
- //
5968
- // Documentation group published snapshots
5969
- //
5970
- getGroupPublishedSnapshots() {
5970
+ getGroupSnapshots() {
5971
5971
  return this.getObjects(this.documentationGroupPublishedStatesYMap, ElementGroupSnapshot);
5972
5972
  }
5973
- updateGroupPublishedSnapshots(snapshots) {
5973
+ updateGroupSnapshots(snapshots) {
5974
5974
  this.setObjects(this.documentationGroupPublishedStatesYMap, snapshots);
5975
5975
  }
5976
- deleteGroupPublishedSnapshots(ids) {
5976
+ deleteGroupSnapshots(ids) {
5977
5977
  this.deleteObjects(this.documentationGroupPublishedStatesYMap, ids);
5978
5978
  }
5979
5979
  get documentationGroupPublishedStatesYMap() {
5980
- return this.yDoc.getMap("documentationGroupPublishedSnapshots");
5981
- }
5982
- //
5983
- // Documentation group deleted snapshots
5984
- //
5985
- getGroupDeletedSnapshots() {
5986
- return this.getObjects(this.documentationGroupDeletedStatesYMap, ElementGroupSnapshot);
5987
- }
5988
- updateGroupDeletedSnapshots(snapshots) {
5989
- this.setObjects(this.documentationGroupDeletedStatesYMap, snapshots);
5990
- }
5991
- deleteGroupDeletedSnapshots(ids) {
5992
- this.deleteObjects(this.documentationGroupDeletedStatesYMap, ids);
5993
- }
5994
- get documentationGroupDeletedStatesYMap() {
5995
- return this.yDoc.getMap("documentationGroupDeletedSnapshots");
5980
+ return this.yDoc.getMap("documentationGroupSnapshots");
5996
5981
  }
5997
5982
  //
5998
5983
  // Utils
@@ -6041,21 +6026,33 @@ var FrontendVersionRoomYDoc = class {
6041
6026
  const doc = new VersionRoomBaseYDoc(this.yDoc);
6042
6027
  const pages = doc.getPages();
6043
6028
  const groups = doc.getGroups();
6029
+ const pageSnapshots = doc.getPageSnapshots();
6030
+ const groupSnapshots = doc.getGroupSnapshots();
6044
6031
  const settings = doc.getDocumentationInternalSettings();
6045
6032
  const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion);
6046
- const pageDraftStates = this.buildPageDraftStates(pages);
6033
+ const pageDraftStates = this.buildPageDraftStates(pages, pageSnapshots);
6047
6034
  pageDTOs.forEach((p) => {
6048
6035
  const draftState = pageDraftStates.get(p.id);
6049
6036
  draftState && (p.draftState = draftState);
6050
6037
  });
6051
6038
  const groupDTOs = elementGroupsToDocumentationGroupDTOV2(groups, pages);
6052
- const groupDraftStates = this.buildGroupDraftStates(groups);
6039
+ const groupDraftStates = this.buildGroupDraftStates(groups, groupSnapshots);
6053
6040
  groupDTOs.forEach((g) => {
6054
6041
  const draftState = groupDraftStates.get(g.id);
6055
6042
  draftState && (g.draftState = draftState);
6056
6043
  });
6057
- const deletedGroups = doc.getGroupDeletedSnapshots().map((s) => s.group);
6058
- const deletedPages = doc.getPageDeletedSnapshots().map((s) => s.page);
6044
+ const pageIds = new Set(pages.map((p) => p.id));
6045
+ const deletedPagesMap = mapByUnique(
6046
+ pageSnapshots.filter((s) => !pageIds.has(s.page.id)).map((s) => s.page),
6047
+ (p) => p.id
6048
+ );
6049
+ const deletedPages = Array.from(deletedPagesMap.values());
6050
+ const groupIds = new Set(groups.map((p) => p.id));
6051
+ const deletedGroupsMap = mapByUnique(
6052
+ groupSnapshots.filter((s) => !groupIds.has(s.group.id)).map((s) => s.group),
6053
+ (g) => g.id
6054
+ );
6055
+ const deletedGroups = Array.from(deletedGroupsMap.values());
6059
6056
  const deletedPageDTOs = documentationPagesToDTOV2(
6060
6057
  deletedPages,
6061
6058
  [...groups, ...deletedGroups],
@@ -6076,10 +6073,10 @@ var FrontendVersionRoomYDoc = class {
6076
6073
  //
6077
6074
  // Drafts - Pages
6078
6075
  //
6079
- buildPageDraftStates(pages) {
6076
+ buildPageDraftStates(pages, pageSnapshots) {
6080
6077
  const doc = new VersionRoomBaseYDoc(this.yDoc);
6081
6078
  const pageHashes = doc.getDocumentationPageContentHashes();
6082
- const publishedSnapshots = doc.getPagePublishedSnapshots();
6079
+ const publishedSnapshots = pageSnapshots.filter((s) => s.reason === "Publish");
6083
6080
  const publishedSnapshotsByPageId = mapByUnique(publishedSnapshots, (s) => s.page.id);
6084
6081
  const publishedPagesById = mapByUnique(
6085
6082
  publishedSnapshots.map((s) => s.page),
@@ -6111,9 +6108,9 @@ var FrontendVersionRoomYDoc = class {
6111
6108
  //
6112
6109
  // Drafts - Groups
6113
6110
  //
6114
- buildGroupDraftStates(groups) {
6111
+ buildGroupDraftStates(groups, groupSnapshots) {
6115
6112
  const doc = new VersionRoomBaseYDoc(this.yDoc);
6116
- const publishedSnapshots = doc.getGroupPublishedSnapshots();
6113
+ const publishedSnapshots = groupSnapshots.filter((s) => s.reason === "Publish");
6117
6114
  const publishedSnapshotsByGroupId = mapByUnique(publishedSnapshots, (s) => s.group.id);
6118
6115
  const publishedGroupsById = mapByUnique(
6119
6116
  publishedSnapshots.map((s) => s.group),
@@ -7608,23 +7605,42 @@ var blocks = [
7608
7605
  id: "text",
7609
7606
  name: "Text",
7610
7607
  type: "RichText",
7611
- options: { richTextStyle: "Default" }
7608
+ options: {
7609
+ richTextStyle: "Default"
7610
+ }
7612
7611
  }
7613
7612
  ],
7614
- appearance: { isBordered: true, hasBackground: false },
7613
+ appearance: {
7614
+ isBordered: true,
7615
+ hasBackground: false
7616
+ },
7615
7617
  variants: [
7616
7618
  {
7617
7619
  id: "default",
7618
7620
  name: "Default",
7619
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7621
+ layout: {
7622
+ type: "Column",
7623
+ children: ["text"],
7624
+ columnAlign: "Start",
7625
+ columnResizing: "Fill",
7626
+ gap: "Medium"
7627
+ },
7620
7628
  maxColumns: 1,
7621
7629
  defaultColumns: 1,
7622
- appearance: { isEditorPresentationDifferent: false }
7630
+ appearance: {
7631
+ isEditorPresentationDifferent: false
7632
+ }
7623
7633
  }
7624
7634
  ],
7625
7635
  defaultVariantKey: "default"
7626
7636
  },
7627
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7637
+ behavior: {
7638
+ dataType: "Item",
7639
+ items: {
7640
+ numberOfItems: 1,
7641
+ allowLinks: false
7642
+ }
7643
+ },
7628
7644
  editorOptions: {
7629
7645
  onboarding: {
7630
7646
  helpText: "Use rich text block to write text and add additional formatting to it.",
@@ -7651,15 +7667,27 @@ var blocks = [
7651
7667
  id: "text",
7652
7668
  name: "Text",
7653
7669
  type: "RichText",
7654
- options: { placeholder: "Heading 1", richTextStyle: "Title1" }
7670
+ options: {
7671
+ placeholder: "Heading 1",
7672
+ richTextStyle: "Title1"
7673
+ }
7655
7674
  }
7656
7675
  ],
7657
- appearance: { isBordered: true, hasBackground: false },
7676
+ appearance: {
7677
+ isBordered: true,
7678
+ hasBackground: false
7679
+ },
7658
7680
  variants: [
7659
7681
  {
7660
7682
  id: "default",
7661
7683
  name: "Default",
7662
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7684
+ layout: {
7685
+ type: "Column",
7686
+ children: ["text"],
7687
+ columnAlign: "Start",
7688
+ columnResizing: "Fill",
7689
+ gap: "Medium"
7690
+ },
7663
7691
  maxColumns: 1,
7664
7692
  defaultColumns: 1,
7665
7693
  appearance: {}
@@ -7667,7 +7695,13 @@ var blocks = [
7667
7695
  ],
7668
7696
  defaultVariantKey: "default"
7669
7697
  },
7670
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7698
+ behavior: {
7699
+ dataType: "Item",
7700
+ items: {
7701
+ numberOfItems: 1,
7702
+ allowLinks: false
7703
+ }
7704
+ },
7671
7705
  editorOptions: {
7672
7706
  onboarding: {
7673
7707
  helpText: "Use for main sections within the page, introducing broad topics or themes.",
@@ -7694,15 +7728,27 @@ var blocks = [
7694
7728
  id: "text",
7695
7729
  name: "Text",
7696
7730
  type: "RichText",
7697
- options: { placeholder: "Heading 2", richTextStyle: "Title2" }
7731
+ options: {
7732
+ placeholder: "Heading 2",
7733
+ richTextStyle: "Title2"
7734
+ }
7698
7735
  }
7699
7736
  ],
7700
- appearance: { isBordered: true, hasBackground: false },
7737
+ appearance: {
7738
+ isBordered: true,
7739
+ hasBackground: false
7740
+ },
7701
7741
  variants: [
7702
7742
  {
7703
7743
  id: "default",
7704
7744
  name: "Default",
7705
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7745
+ layout: {
7746
+ type: "Column",
7747
+ children: ["text"],
7748
+ columnAlign: "Start",
7749
+ columnResizing: "Fill",
7750
+ gap: "Medium"
7751
+ },
7706
7752
  maxColumns: 1,
7707
7753
  defaultColumns: 1,
7708
7754
  appearance: {}
@@ -7710,7 +7756,13 @@ var blocks = [
7710
7756
  ],
7711
7757
  defaultVariantKey: "default"
7712
7758
  },
7713
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7759
+ behavior: {
7760
+ dataType: "Item",
7761
+ items: {
7762
+ numberOfItems: 1,
7763
+ allowLinks: false
7764
+ }
7765
+ },
7714
7766
  editorOptions: {
7715
7767
  onboarding: {
7716
7768
  helpText: "Use for subheadings, indicating major subsections under the main sections.",
@@ -7737,15 +7789,27 @@ var blocks = [
7737
7789
  id: "text",
7738
7790
  name: "Text",
7739
7791
  type: "RichText",
7740
- options: { placeholder: "Heading 3", richTextStyle: "Title3" }
7792
+ options: {
7793
+ placeholder: "Heading 3",
7794
+ richTextStyle: "Title3"
7795
+ }
7741
7796
  }
7742
7797
  ],
7743
- appearance: { isBordered: true, hasBackground: false },
7798
+ appearance: {
7799
+ isBordered: true,
7800
+ hasBackground: false
7801
+ },
7744
7802
  variants: [
7745
7803
  {
7746
7804
  id: "default",
7747
7805
  name: "Default",
7748
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7806
+ layout: {
7807
+ type: "Column",
7808
+ children: ["text"],
7809
+ columnAlign: "Start",
7810
+ columnResizing: "Fill",
7811
+ gap: "Medium"
7812
+ },
7749
7813
  maxColumns: 1,
7750
7814
  defaultColumns: 1,
7751
7815
  appearance: {}
@@ -7753,7 +7817,13 @@ var blocks = [
7753
7817
  ],
7754
7818
  defaultVariantKey: "default"
7755
7819
  },
7756
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7820
+ behavior: {
7821
+ dataType: "Item",
7822
+ items: {
7823
+ numberOfItems: 1,
7824
+ allowLinks: false
7825
+ }
7826
+ },
7757
7827
  editorOptions: {
7758
7828
  onboarding: {
7759
7829
  helpText: "Use for further subsections, detailing specific topics within the major subsections.",
@@ -7780,15 +7850,27 @@ var blocks = [
7780
7850
  id: "text",
7781
7851
  name: "Text",
7782
7852
  type: "RichText",
7783
- options: { placeholder: "Heading 4", richTextStyle: "Title4" }
7853
+ options: {
7854
+ placeholder: "Heading 4",
7855
+ richTextStyle: "Title4"
7856
+ }
7784
7857
  }
7785
7858
  ],
7786
- appearance: { isBordered: true, hasBackground: false },
7859
+ appearance: {
7860
+ isBordered: true,
7861
+ hasBackground: false
7862
+ },
7787
7863
  variants: [
7788
7864
  {
7789
7865
  id: "default",
7790
7866
  name: "Default",
7791
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7867
+ layout: {
7868
+ type: "Column",
7869
+ children: ["text"],
7870
+ columnAlign: "Start",
7871
+ columnResizing: "Fill",
7872
+ gap: "Medium"
7873
+ },
7792
7874
  maxColumns: 1,
7793
7875
  defaultColumns: 1,
7794
7876
  appearance: {}
@@ -7796,7 +7878,13 @@ var blocks = [
7796
7878
  ],
7797
7879
  defaultVariantKey: "default"
7798
7880
  },
7799
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7881
+ behavior: {
7882
+ dataType: "Item",
7883
+ items: {
7884
+ numberOfItems: 1,
7885
+ allowLinks: false
7886
+ }
7887
+ },
7800
7888
  editorOptions: {
7801
7889
  onboarding: {
7802
7890
  helpText: "Use for sub-divisions, elaborating on details within the subsections.",
@@ -7823,15 +7911,27 @@ var blocks = [
7823
7911
  id: "text",
7824
7912
  name: "Text",
7825
7913
  type: "RichText",
7826
- options: { placeholder: "Heading 5", richTextStyle: "Title5" }
7914
+ options: {
7915
+ placeholder: "Heading 5",
7916
+ richTextStyle: "Title5"
7917
+ }
7827
7918
  }
7828
7919
  ],
7829
- appearance: { isBordered: true, hasBackground: false },
7920
+ appearance: {
7921
+ isBordered: true,
7922
+ hasBackground: false
7923
+ },
7830
7924
  variants: [
7831
7925
  {
7832
7926
  id: "default",
7833
7927
  name: "Default",
7834
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7928
+ layout: {
7929
+ type: "Column",
7930
+ children: ["text"],
7931
+ columnAlign: "Start",
7932
+ columnResizing: "Fill",
7933
+ gap: "Medium"
7934
+ },
7835
7935
  maxColumns: 1,
7836
7936
  defaultColumns: 1,
7837
7937
  appearance: {}
@@ -7839,7 +7939,13 @@ var blocks = [
7839
7939
  ],
7840
7940
  defaultVariantKey: "default"
7841
7941
  },
7842
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7942
+ behavior: {
7943
+ dataType: "Item",
7944
+ items: {
7945
+ numberOfItems: 1,
7946
+ allowLinks: false
7947
+ }
7948
+ },
7843
7949
  editorOptions: {
7844
7950
  onboarding: {
7845
7951
  helpText: "Use for nuanced details or specific sub-points within sub-divisions.",
@@ -7866,15 +7972,26 @@ var blocks = [
7866
7972
  id: "text",
7867
7973
  name: "Text",
7868
7974
  type: "MultiRichText",
7869
- options: { multiRichTextStyle: "OL" }
7975
+ options: {
7976
+ multiRichTextStyle: "OL"
7977
+ }
7870
7978
  }
7871
7979
  ],
7872
- appearance: { isBordered: true, hasBackground: false },
7980
+ appearance: {
7981
+ isBordered: true,
7982
+ hasBackground: false
7983
+ },
7873
7984
  variants: [
7874
7985
  {
7875
7986
  id: "default",
7876
7987
  name: "Default",
7877
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
7988
+ layout: {
7989
+ type: "Column",
7990
+ children: ["text"],
7991
+ columnAlign: "Start",
7992
+ columnResizing: "Fill",
7993
+ gap: "Medium"
7994
+ },
7878
7995
  maxColumns: 1,
7879
7996
  defaultColumns: 1,
7880
7997
  appearance: {}
@@ -7882,7 +7999,13 @@ var blocks = [
7882
7999
  ],
7883
8000
  defaultVariantKey: "default"
7884
8001
  },
7885
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8002
+ behavior: {
8003
+ dataType: "Item",
8004
+ items: {
8005
+ numberOfItems: 1,
8006
+ allowLinks: false
8007
+ }
8008
+ },
7886
8009
  editorOptions: {
7887
8010
  onboarding: {
7888
8011
  helpText: "Display a sequence of numbers or letters to indicate order.",
@@ -7909,15 +8032,26 @@ var blocks = [
7909
8032
  id: "text",
7910
8033
  name: "Text",
7911
8034
  type: "MultiRichText",
7912
- options: { multiRichTextStyle: "UL" }
8035
+ options: {
8036
+ multiRichTextStyle: "UL"
8037
+ }
7913
8038
  }
7914
8039
  ],
7915
- appearance: { isBordered: true, hasBackground: false },
8040
+ appearance: {
8041
+ isBordered: true,
8042
+ hasBackground: false
8043
+ },
7916
8044
  variants: [
7917
8045
  {
7918
8046
  id: "default",
7919
8047
  name: "Default",
7920
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
8048
+ layout: {
8049
+ type: "Column",
8050
+ children: ["text"],
8051
+ columnAlign: "Start",
8052
+ columnResizing: "Fill",
8053
+ gap: "Medium"
8054
+ },
7921
8055
  maxColumns: 1,
7922
8056
  defaultColumns: 1,
7923
8057
  appearance: {}
@@ -7925,7 +8059,13 @@ var blocks = [
7925
8059
  ],
7926
8060
  defaultVariantKey: "default"
7927
8061
  },
7928
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8062
+ behavior: {
8063
+ dataType: "Item",
8064
+ items: {
8065
+ numberOfItems: 1,
8066
+ allowLinks: false
8067
+ }
8068
+ },
7929
8069
  editorOptions: {
7930
8070
  onboarding: {
7931
8071
  helpText: "A list of items displayed with bullet points without a specific sequence.",
@@ -7947,8 +8087,18 @@ var blocks = [
7947
8087
  icon: "https://cdn-assets.supernova.io/blocks/icons/divider.svg",
7948
8088
  searchKeywords: ["hr", "line", "rule", "separator"],
7949
8089
  item: {
7950
- properties: [{ id: "divider", name: "Divider", type: "Divider", options: {} }],
7951
- appearance: { isBordered: true, hasBackground: false },
8090
+ properties: [
8091
+ {
8092
+ id: "divider",
8093
+ name: "Divider",
8094
+ type: "Divider",
8095
+ options: {}
8096
+ }
8097
+ ],
8098
+ appearance: {
8099
+ isBordered: true,
8100
+ hasBackground: false
8101
+ },
7952
8102
  variants: [
7953
8103
  {
7954
8104
  id: "default",
@@ -7967,7 +8117,13 @@ var blocks = [
7967
8117
  ],
7968
8118
  defaultVariantKey: "default"
7969
8119
  },
7970
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8120
+ behavior: {
8121
+ dataType: "Item",
8122
+ items: {
8123
+ numberOfItems: 1,
8124
+ allowLinks: false
8125
+ }
8126
+ },
7971
8127
  editorOptions: {
7972
8128
  onboarding: {
7973
8129
  helpText: "A thematic break or horizontal rule, often used to separate content or define a change in topic.",
@@ -7994,15 +8150,27 @@ var blocks = [
7994
8150
  id: "text",
7995
8151
  name: "Text",
7996
8152
  type: "RichText",
7997
- options: { placeholder: "Write a quote...", richTextStyle: "Quote" }
8153
+ options: {
8154
+ placeholder: "Write a quote...",
8155
+ richTextStyle: "Quote"
8156
+ }
7998
8157
  }
7999
8158
  ],
8000
- appearance: { isBordered: true, hasBackground: false },
8159
+ appearance: {
8160
+ isBordered: true,
8161
+ hasBackground: false
8162
+ },
8001
8163
  variants: [
8002
8164
  {
8003
8165
  id: "default",
8004
8166
  name: "Default",
8005
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
8167
+ layout: {
8168
+ type: "Column",
8169
+ children: ["text"],
8170
+ columnAlign: "Start",
8171
+ columnResizing: "Fill",
8172
+ gap: "Medium"
8173
+ },
8006
8174
  maxColumns: 1,
8007
8175
  defaultColumns: 1,
8008
8176
  appearance: {}
@@ -8010,7 +8178,13 @@ var blocks = [
8010
8178
  ],
8011
8179
  defaultVariantKey: "default"
8012
8180
  },
8013
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8181
+ behavior: {
8182
+ dataType: "Item",
8183
+ items: {
8184
+ numberOfItems: 1,
8185
+ allowLinks: false
8186
+ }
8187
+ },
8014
8188
  editorOptions: {
8015
8189
  onboarding: {
8016
8190
  helpText: "Use a blockquote to set off a quotation or cited content from the main text.",
@@ -8037,15 +8211,27 @@ var blocks = [
8037
8211
  id: "text",
8038
8212
  name: "Text",
8039
8213
  type: "RichText",
8040
- options: { placeholder: "Highlight some information...", richTextStyle: "Callout" }
8214
+ options: {
8215
+ placeholder: "Highlight some information...",
8216
+ richTextStyle: "Callout"
8217
+ }
8041
8218
  }
8042
8219
  ],
8043
- appearance: { isBordered: true, hasBackground: false },
8220
+ appearance: {
8221
+ isBordered: true,
8222
+ hasBackground: false
8223
+ },
8044
8224
  variants: [
8045
8225
  {
8046
8226
  id: "default",
8047
8227
  name: "Default",
8048
- layout: { type: "Column", children: ["text"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
8228
+ layout: {
8229
+ type: "Column",
8230
+ children: ["text"],
8231
+ columnAlign: "Start",
8232
+ columnResizing: "Fill",
8233
+ gap: "Medium"
8234
+ },
8049
8235
  maxColumns: 1,
8050
8236
  defaultColumns: 1,
8051
8237
  appearance: {}
@@ -8053,7 +8239,13 @@ var blocks = [
8053
8239
  ],
8054
8240
  defaultVariantKey: "default"
8055
8241
  },
8056
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8242
+ behavior: {
8243
+ dataType: "Item",
8244
+ items: {
8245
+ numberOfItems: 1,
8246
+ allowLinks: false
8247
+ }
8248
+ },
8057
8249
  editorOptions: {
8058
8250
  onboarding: {
8059
8251
  helpText: "Use to highlight a section of text.",
@@ -8080,15 +8272,26 @@ var blocks = [
8080
8272
  id: "image",
8081
8273
  name: "Image",
8082
8274
  type: "Image",
8083
- options: { allowCaption: true }
8084
- }
8275
+ options: {
8276
+ allowCaption: true
8277
+ }
8278
+ }
8085
8279
  ],
8086
- appearance: { isBordered: true, hasBackground: false },
8280
+ appearance: {
8281
+ isBordered: true,
8282
+ hasBackground: false
8283
+ },
8087
8284
  variants: [
8088
8285
  {
8089
8286
  id: "default",
8090
8287
  name: "Default",
8091
- layout: { type: "Column", children: ["image"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
8288
+ layout: {
8289
+ type: "Column",
8290
+ children: ["image"],
8291
+ columnAlign: "Start",
8292
+ columnResizing: "Fill",
8293
+ gap: "Medium"
8294
+ },
8092
8295
  maxColumns: 1,
8093
8296
  defaultColumns: 1,
8094
8297
  appearance: {}
@@ -8096,7 +8299,13 @@ var blocks = [
8096
8299
  ],
8097
8300
  defaultVariantKey: "default"
8098
8301
  },
8099
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8302
+ behavior: {
8303
+ dataType: "Item",
8304
+ items: {
8305
+ numberOfItems: 1,
8306
+ allowLinks: false
8307
+ }
8308
+ },
8100
8309
  editorOptions: {
8101
8310
  onboarding: {
8102
8311
  helpText: "Use to display an image or Figma image.",
@@ -8123,27 +8332,48 @@ var blocks = [
8123
8332
  id: "block.links.property.image",
8124
8333
  name: "Image",
8125
8334
  type: "Image",
8126
- options: { aspectRatio: "Landscape", allowCaption: false },
8335
+ options: {
8336
+ aspectRatio: "Landscape",
8337
+ allowCaption: false
8338
+ },
8127
8339
  variantOptions: {
8128
- iconOnTop: { width: "Icon", aspectRatio: "Square" },
8129
- imageOnLeft: { width: "Medium" },
8130
- iconOnLeft: { width: "Icon", aspectRatio: "Square" }
8340
+ iconOnTop: {
8341
+ width: "Icon",
8342
+ aspectRatio: "Square"
8343
+ },
8344
+ imageOnLeft: {
8345
+ width: "Medium"
8346
+ },
8347
+ iconOnLeft: {
8348
+ width: "Icon",
8349
+ aspectRatio: "Square"
8350
+ }
8131
8351
  }
8132
8352
  },
8133
8353
  {
8134
8354
  id: "block.links.property.title",
8135
8355
  name: "Title",
8136
8356
  type: "Text",
8137
- options: { textStyle: "Title5", placeholder: "Add title" }
8357
+ options: {
8358
+ textStyle: "Title5",
8359
+ placeholder: "Add title"
8360
+ }
8138
8361
  },
8139
8362
  {
8140
8363
  id: "block.links.property.description",
8141
8364
  name: "Short description",
8142
8365
  type: "Text",
8143
- options: { textStyle: "Default", color: "NeutralFaded", placeholder: "Add description" }
8366
+ options: {
8367
+ textStyle: "Default",
8368
+ color: "NeutralFaded",
8369
+ placeholder: "Add description"
8370
+ }
8144
8371
  }
8145
8372
  ],
8146
- appearance: { isBordered: true, hasBackground: false },
8373
+ appearance: {
8374
+ isBordered: true,
8375
+ hasBackground: false
8376
+ },
8147
8377
  variants: [
8148
8378
  {
8149
8379
  id: "imageOnTop",
@@ -8157,7 +8387,7 @@ var blocks = [
8157
8387
  gap: "Medium"
8158
8388
  },
8159
8389
  maxColumns: 4,
8160
- defaultColumns: 1,
8390
+ defaultColumns: 3,
8161
8391
  appearance: {}
8162
8392
  },
8163
8393
  {
@@ -8238,12 +8468,20 @@ var blocks = [
8238
8468
  ],
8239
8469
  defaultVariantKey: "imageOnTop"
8240
8470
  },
8241
- behavior: { dataType: "Item", items: { numberOfItems: -1, allowLinks: true } },
8471
+ behavior: {
8472
+ dataType: "Item",
8473
+ items: {
8474
+ numberOfItems: -1,
8475
+ allowLinks: true,
8476
+ newItemLabel: "Add shortcut"
8477
+ }
8478
+ },
8242
8479
  editorOptions: {
8243
8480
  onboarding: {
8244
8481
  helpText: "Use link block to create single or multiple links to places in or out of your documentation.",
8245
8482
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4"
8246
- }
8483
+ },
8484
+ newItemLabel: "Add shortcut"
8247
8485
  },
8248
8486
  appearance: {
8249
8487
  isBordered: true,
@@ -8273,12 +8511,21 @@ var blocks = [
8273
8511
  }
8274
8512
  }
8275
8513
  ],
8276
- appearance: { isBordered: true, hasBackground: false },
8514
+ appearance: {
8515
+ isBordered: true,
8516
+ hasBackground: false
8517
+ },
8277
8518
  variants: [
8278
8519
  {
8279
8520
  id: "default",
8280
8521
  name: "Default",
8281
- layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
8522
+ layout: {
8523
+ type: "Column",
8524
+ children: ["embed"],
8525
+ columnAlign: "Start",
8526
+ columnResizing: "Fill",
8527
+ gap: "Medium"
8528
+ },
8282
8529
  maxColumns: 1,
8283
8530
  defaultColumns: 1,
8284
8531
  appearance: {}
@@ -8286,7 +8533,13 @@ var blocks = [
8286
8533
  ],
8287
8534
  defaultVariantKey: "default"
8288
8535
  },
8289
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8536
+ behavior: {
8537
+ dataType: "Item",
8538
+ items: {
8539
+ numberOfItems: 1,
8540
+ allowLinks: false
8541
+ }
8542
+ },
8290
8543
  editorOptions: {
8291
8544
  onboarding: {
8292
8545
  helpText: "Embed a Figma canvas or prototype to your documentation.",
@@ -8313,15 +8566,28 @@ var blocks = [
8313
8566
  id: "embed",
8314
8567
  name: "Storybook URL",
8315
8568
  type: "Storybook",
8316
- options: { allowCaption: true, allowResize: true, defaultHeight: 400 }
8569
+ options: {
8570
+ allowCaption: true,
8571
+ allowResize: true,
8572
+ defaultHeight: 400
8573
+ }
8317
8574
  }
8318
8575
  ],
8319
- appearance: { isBordered: true, hasBackground: false },
8576
+ appearance: {
8577
+ isBordered: true,
8578
+ hasBackground: false
8579
+ },
8320
8580
  variants: [
8321
8581
  {
8322
8582
  id: "default",
8323
8583
  name: "Default",
8324
- layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
8584
+ layout: {
8585
+ type: "Column",
8586
+ children: ["embed"],
8587
+ columnAlign: "Start",
8588
+ columnResizing: "Fill",
8589
+ gap: "Medium"
8590
+ },
8325
8591
  maxColumns: 1,
8326
8592
  defaultColumns: 1,
8327
8593
  appearance: {}
@@ -8329,7 +8595,13 @@ var blocks = [
8329
8595
  ],
8330
8596
  defaultVariantKey: "default"
8331
8597
  },
8332
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8598
+ behavior: {
8599
+ dataType: "Item",
8600
+ items: {
8601
+ numberOfItems: 1,
8602
+ allowLinks: false
8603
+ }
8604
+ },
8333
8605
  editorOptions: {
8334
8606
  onboarding: {
8335
8607
  helpText: "Embed a Storybook story to your documentation.",
@@ -8364,12 +8636,21 @@ var blocks = [
8364
8636
  }
8365
8637
  }
8366
8638
  ],
8367
- appearance: { isBordered: true, hasBackground: false },
8639
+ appearance: {
8640
+ isBordered: true,
8641
+ hasBackground: false
8642
+ },
8368
8643
  variants: [
8369
8644
  {
8370
8645
  id: "default",
8371
8646
  name: "Default",
8372
- layout: { type: "Column", children: ["embed"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
8647
+ layout: {
8648
+ type: "Column",
8649
+ children: ["embed"],
8650
+ columnAlign: "Start",
8651
+ columnResizing: "Fill",
8652
+ gap: "Medium"
8653
+ },
8373
8654
  maxColumns: 1,
8374
8655
  defaultColumns: 1,
8375
8656
  appearance: {}
@@ -8377,7 +8658,13 @@ var blocks = [
8377
8658
  ],
8378
8659
  defaultVariantKey: "default"
8379
8660
  },
8380
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8661
+ behavior: {
8662
+ dataType: "Item",
8663
+ items: {
8664
+ numberOfItems: 1,
8665
+ allowLinks: false
8666
+ }
8667
+ },
8381
8668
  editorOptions: {
8382
8669
  onboarding: {
8383
8670
  helpText: "Embed a YouTube video to your documentation.",
@@ -8405,40 +8692,55 @@ var blocks = [
8405
8692
  name: "Lottie URL",
8406
8693
  type: "URL",
8407
8694
  description: "Add URL to your Lottie animation file. We support .json and .lottie file extensions.",
8408
- options: { urlValidationRegex: "^(http|https)://.*.(json|lottie)$" }
8695
+ options: {
8696
+ urlValidationRegex: "^(http|https)://.*.(json|lottie)$"
8697
+ }
8409
8698
  },
8410
8699
  {
8411
8700
  id: "height",
8412
8701
  name: "Height",
8413
8702
  type: "Number",
8414
- options: { defaultValue: 270 }
8703
+ options: {
8704
+ defaultValue: 270
8705
+ }
8415
8706
  },
8416
8707
  {
8417
8708
  id: "width",
8418
8709
  name: "Width",
8419
8710
  type: "Number",
8420
- options: { defaultValue: 400 }
8711
+ options: {
8712
+ defaultValue: 400
8713
+ }
8421
8714
  },
8422
8715
  {
8423
8716
  id: "autoplay",
8424
8717
  name: "Autoplay",
8425
8718
  type: "Boolean",
8426
- options: { defaultValue: true }
8719
+ options: {
8720
+ defaultValue: true
8721
+ }
8427
8722
  },
8428
8723
  {
8429
8724
  id: "loop",
8430
8725
  name: "Loop",
8431
8726
  type: "Boolean",
8432
- options: { defaultValue: true }
8727
+ options: {
8728
+ defaultValue: true
8729
+ }
8433
8730
  },
8434
8731
  {
8435
8732
  id: "playerControls",
8436
8733
  name: "Show player controls",
8437
8734
  type: "Boolean",
8438
- options: { defaultValue: true }
8735
+ options: {
8736
+ defaultValue: true
8737
+ }
8439
8738
  }
8440
8739
  ],
8441
- appearance: { isBordered: true, hasBackground: false },
8740
+ appearance: {
8741
+ isBordered: true,
8742
+ hasBackground: false
8743
+ },
8442
8744
  variants: [
8443
8745
  {
8444
8746
  id: "default",
@@ -8459,7 +8761,13 @@ var blocks = [
8459
8761
  ],
8460
8762
  defaultVariantKey: "default"
8461
8763
  },
8462
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8764
+ behavior: {
8765
+ dataType: "Item",
8766
+ items: {
8767
+ numberOfItems: 1,
8768
+ allowLinks: false
8769
+ }
8770
+ },
8463
8771
  editorOptions: {
8464
8772
  onboarding: {
8465
8773
  helpText: "Embed a Lottie animation to your documentation.",
@@ -8494,7 +8802,10 @@ var blocks = [
8494
8802
  }
8495
8803
  }
8496
8804
  ],
8497
- appearance: { isBordered: true, hasBackground: false },
8805
+ appearance: {
8806
+ isBordered: true,
8807
+ hasBackground: false
8808
+ },
8498
8809
  variants: [
8499
8810
  {
8500
8811
  id: "default",
@@ -8513,7 +8824,13 @@ var blocks = [
8513
8824
  ],
8514
8825
  defaultVariantKey: "default"
8515
8826
  },
8516
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8827
+ behavior: {
8828
+ dataType: "Item",
8829
+ items: {
8830
+ numberOfItems: 1,
8831
+ allowLinks: false
8832
+ }
8833
+ },
8517
8834
  editorOptions: {
8518
8835
  onboarding: {
8519
8836
  helpText: "Embed any page to your documentation as an iframe.",
@@ -8540,10 +8857,15 @@ var blocks = [
8540
8857
  id: "markdownUrl",
8541
8858
  name: "Markdown URL",
8542
8859
  type: "Markdown",
8543
- options: { urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$" }
8860
+ options: {
8861
+ urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$"
8862
+ }
8544
8863
  }
8545
8864
  ],
8546
- appearance: { isBordered: true, hasBackground: false },
8865
+ appearance: {
8866
+ isBordered: true,
8867
+ hasBackground: false
8868
+ },
8547
8869
  variants: [
8548
8870
  {
8549
8871
  id: "plain",
@@ -8593,7 +8915,13 @@ var blocks = [
8593
8915
  ],
8594
8916
  defaultVariantKey: "plain"
8595
8917
  },
8596
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8918
+ behavior: {
8919
+ dataType: "Item",
8920
+ items: {
8921
+ numberOfItems: 1,
8922
+ allowLinks: false
8923
+ }
8924
+ },
8597
8925
  editorOptions: {
8598
8926
  onboarding: {
8599
8927
  helpText: "Render any markdown file directly inside of your documentation.",
@@ -8615,13 +8943,29 @@ var blocks = [
8615
8943
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/table.svg",
8616
8944
  searchKeywords: ["grid", "data", "spreadsheet", "api"],
8617
8945
  item: {
8618
- properties: [{ id: "table", name: "Table", type: "Table", options: {} }],
8619
- appearance: { isBordered: true, hasBackground: false },
8946
+ properties: [
8947
+ {
8948
+ id: "table",
8949
+ name: "Table",
8950
+ type: "Table",
8951
+ options: {}
8952
+ }
8953
+ ],
8954
+ appearance: {
8955
+ isBordered: true,
8956
+ hasBackground: false
8957
+ },
8620
8958
  variants: [
8621
8959
  {
8622
8960
  id: "default",
8623
8961
  name: "Default",
8624
- layout: { type: "Column", children: ["table"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
8962
+ layout: {
8963
+ type: "Column",
8964
+ children: ["table"],
8965
+ columnAlign: "Start",
8966
+ columnResizing: "Fill",
8967
+ gap: "Medium"
8968
+ },
8625
8969
  maxColumns: 1,
8626
8970
  defaultColumns: 1,
8627
8971
  appearance: {}
@@ -8629,7 +8973,13 @@ var blocks = [
8629
8973
  ],
8630
8974
  defaultVariantKey: "default"
8631
8975
  },
8632
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8976
+ behavior: {
8977
+ dataType: "Item",
8978
+ items: {
8979
+ numberOfItems: 1,
8980
+ allowLinks: false
8981
+ }
8982
+ },
8633
8983
  editorOptions: {
8634
8984
  onboarding: {
8635
8985
  helpText: "Use for displaying data in a tabular format.",
@@ -8666,17 +9016,34 @@ var blocks = [
8666
9016
  id: "tokens",
8667
9017
  name: "Tokens",
8668
9018
  type: "Token",
8669
- options: { renderLayoutAs: "List", defaultTheme: "none", defaultValuePreview: "Split" },
8670
- variantOptions: { grid: { renderLayoutAs: "Grid" } }
9019
+ options: {
9020
+ renderLayoutAs: "List",
9021
+ defaultTheme: "none",
9022
+ defaultValuePreview: "Split"
9023
+ },
9024
+ variantOptions: {
9025
+ grid: {
9026
+ renderLayoutAs: "Grid"
9027
+ }
9028
+ }
8671
9029
  }
8672
9030
  ],
8673
- appearance: { isBordered: true, hasBackground: false },
9031
+ appearance: {
9032
+ isBordered: true,
9033
+ hasBackground: false
9034
+ },
8674
9035
  variants: [
8675
9036
  {
8676
9037
  id: "table",
8677
9038
  name: "Table",
8678
9039
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
8679
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9040
+ layout: {
9041
+ type: "Column",
9042
+ children: ["tokens"],
9043
+ columnAlign: "Start",
9044
+ columnResizing: "Fill",
9045
+ gap: "Medium"
9046
+ },
8680
9047
  maxColumns: 1,
8681
9048
  defaultColumns: 1,
8682
9049
  appearance: {}
@@ -8685,7 +9052,13 @@ var blocks = [
8685
9052
  id: "grid",
8686
9053
  name: "Grid",
8687
9054
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
8688
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9055
+ layout: {
9056
+ type: "Column",
9057
+ children: ["tokens"],
9058
+ columnAlign: "Start",
9059
+ columnResizing: "Fill",
9060
+ gap: "Medium"
9061
+ },
8689
9062
  maxColumns: 4,
8690
9063
  defaultColumns: 1,
8691
9064
  appearance: {}
@@ -8693,7 +9066,13 @@ var blocks = [
8693
9066
  ],
8694
9067
  defaultVariantKey: "table"
8695
9068
  },
8696
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
9069
+ behavior: {
9070
+ dataType: "Token",
9071
+ entities: {
9072
+ selectionType: "EntityAndGroup",
9073
+ maxSelected: 0
9074
+ }
9075
+ },
8697
9076
  editorOptions: {
8698
9077
  onboarding: {
8699
9078
  helpText: "Show a group of design tokens. Automatically display all subgroups too.",
@@ -8720,26 +9099,50 @@ var blocks = [
8720
9099
  id: "tokens",
8721
9100
  name: "Tokens",
8722
9101
  type: "Token",
8723
- options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: true }
9102
+ options: {
9103
+ allowedTypes: ["Color"],
9104
+ allowPropertySelection: false,
9105
+ allowThemeSelection: true
9106
+ }
8724
9107
  }
8725
9108
  ],
8726
- appearance: { isBordered: true, hasBackground: false },
9109
+ appearance: {
9110
+ isBordered: true,
9111
+ hasBackground: false
9112
+ },
8727
9113
  variants: [
8728
9114
  {
8729
9115
  id: "default",
8730
9116
  name: "Default",
8731
9117
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
8732
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9118
+ layout: {
9119
+ type: "Column",
9120
+ children: ["tokens"],
9121
+ columnAlign: "Start",
9122
+ columnResizing: "Fill",
9123
+ gap: "Medium"
9124
+ },
8733
9125
  maxColumns: 2,
8734
9126
  defaultColumns: 1,
8735
- appearance: { isEditorPresentationDifferent: true }
9127
+ appearance: {
9128
+ isEditorPresentationDifferent: true
9129
+ }
8736
9130
  }
8737
9131
  ],
8738
9132
  defaultVariantKey: "default"
8739
9133
  },
8740
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
9134
+ behavior: {
9135
+ dataType: "Token",
9136
+ entities: {
9137
+ selectionType: "EntityAndGroup",
9138
+ maxSelected: 0
9139
+ }
9140
+ },
8741
9141
  editorOptions: {
8742
- onboarding: { helpText: "The best way to display colors", documentationLink: "https://learn.supernova.io" }
9142
+ onboarding: {
9143
+ helpText: "The best way to display colors",
9144
+ documentationLink: "https://learn.supernova.io"
9145
+ }
8743
9146
  },
8744
9147
  appearance: {
8745
9148
  isBordered: true,
@@ -8761,25 +9164,46 @@ var blocks = [
8761
9164
  id: "tokens",
8762
9165
  name: "Tokens",
8763
9166
  type: "Token",
8764
- options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: false }
9167
+ options: {
9168
+ allowedTypes: ["Color"],
9169
+ allowPropertySelection: false,
9170
+ allowThemeSelection: false
9171
+ }
8765
9172
  }
8766
9173
  ],
8767
- appearance: { isBordered: true, hasBackground: false },
9174
+ appearance: {
9175
+ isBordered: true,
9176
+ hasBackground: false
9177
+ },
8768
9178
  variants: [
8769
9179
  {
8770
9180
  id: "default",
8771
9181
  name: "Default",
8772
9182
  image: "https://cdn-assets.supernova.io/blocks/variants/contrast-grid-large.svg",
8773
9183
  description: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
8774
- layout: { type: "Column", children: ["tokens"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9184
+ layout: {
9185
+ type: "Column",
9186
+ children: ["tokens"],
9187
+ columnAlign: "Start",
9188
+ columnResizing: "Fill",
9189
+ gap: "Medium"
9190
+ },
8775
9191
  maxColumns: 1,
8776
9192
  defaultColumns: 1,
8777
- appearance: { isEditorPresentationDifferent: true }
9193
+ appearance: {
9194
+ isEditorPresentationDifferent: true
9195
+ }
8778
9196
  }
8779
9197
  ],
8780
9198
  defaultVariantKey: "default"
8781
9199
  },
8782
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
9200
+ behavior: {
9201
+ dataType: "Token",
9202
+ entities: {
9203
+ selectionType: "EntityAndGroup",
9204
+ maxSelected: 0
9205
+ }
9206
+ },
8783
9207
  editorOptions: {
8784
9208
  onboarding: {
8785
9209
  helpText: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
@@ -8801,13 +9225,29 @@ var blocks = [
8801
9225
  icon: "https://cdn-assets.supernova.io/blocks/icons/code.svg",
8802
9226
  searchKeywords: ["code"],
8803
9227
  item: {
8804
- properties: [{ id: "code", name: "Code", type: "Code", options: {} }],
8805
- appearance: { isBordered: true, hasBackground: false },
9228
+ properties: [
9229
+ {
9230
+ id: "code",
9231
+ name: "Code",
9232
+ type: "Code",
9233
+ options: {}
9234
+ }
9235
+ ],
9236
+ appearance: {
9237
+ isBordered: true,
9238
+ hasBackground: false
9239
+ },
8806
9240
  variants: [
8807
9241
  {
8808
9242
  id: "default",
8809
9243
  name: "Default",
8810
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9244
+ layout: {
9245
+ type: "Column",
9246
+ children: ["code"],
9247
+ columnAlign: "Start",
9248
+ columnResizing: "Fill",
9249
+ gap: "Medium"
9250
+ },
8811
9251
  maxColumns: 1,
8812
9252
  defaultColumns: 1,
8813
9253
  appearance: {}
@@ -8815,8 +9255,18 @@ var blocks = [
8815
9255
  ],
8816
9256
  defaultVariantKey: "default"
8817
9257
  },
8818
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8819
- editorOptions: { onboarding: { helpText: "Code descriptor." } },
9258
+ behavior: {
9259
+ dataType: "Item",
9260
+ items: {
9261
+ numberOfItems: 1,
9262
+ allowLinks: false
9263
+ }
9264
+ },
9265
+ editorOptions: {
9266
+ onboarding: {
9267
+ helpText: "Code descriptor."
9268
+ }
9269
+ },
8820
9270
  appearance: {
8821
9271
  isBordered: false,
8822
9272
  hasBackground: false,
@@ -8837,22 +9287,39 @@ var blocks = [
8837
9287
  id: "code",
8838
9288
  name: "Code",
8839
9289
  type: "CodeSandbox",
8840
- options: { renderLayoutAs: "PreviewOnTop" },
9290
+ options: {
9291
+ renderLayoutAs: "PreviewOnTop"
9292
+ },
8841
9293
  variantOptions: {
8842
- codeTop: { renderLayoutAs: "PreviewOnBottom" },
8843
- codeLeft: { renderLayoutAs: "PreviewOnRight" },
8844
- codeRight: { renderLayoutAs: "PreviewOnLeft" }
9294
+ codeTop: {
9295
+ renderLayoutAs: "PreviewOnBottom"
9296
+ },
9297
+ codeLeft: {
9298
+ renderLayoutAs: "PreviewOnRight"
9299
+ },
9300
+ codeRight: {
9301
+ renderLayoutAs: "PreviewOnLeft"
9302
+ }
8845
9303
  }
8846
9304
  }
8847
9305
  ],
8848
- appearance: { isBordered: true, hasBackground: false },
9306
+ appearance: {
9307
+ isBordered: true,
9308
+ hasBackground: false
9309
+ },
8849
9310
  variants: [
8850
9311
  {
8851
9312
  id: "codeBottom",
8852
9313
  name: "Full width, code bottom",
8853
9314
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-bottom.svg",
8854
9315
  description: "Full-width block of code, with a preview on top.",
8855
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9316
+ layout: {
9317
+ type: "Column",
9318
+ children: ["code"],
9319
+ columnAlign: "Start",
9320
+ columnResizing: "Fill",
9321
+ gap: "Medium"
9322
+ },
8856
9323
  maxColumns: 1,
8857
9324
  defaultColumns: 1,
8858
9325
  appearance: {}
@@ -8862,7 +9329,13 @@ var blocks = [
8862
9329
  name: "Full width, code top",
8863
9330
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-top.svg",
8864
9331
  description: "Full-width block of code, with a preview on bottom.",
8865
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9332
+ layout: {
9333
+ type: "Column",
9334
+ children: ["code"],
9335
+ columnAlign: "Start",
9336
+ columnResizing: "Fill",
9337
+ gap: "Medium"
9338
+ },
8866
9339
  maxColumns: 1,
8867
9340
  defaultColumns: 1,
8868
9341
  appearance: {}
@@ -8872,7 +9345,13 @@ var blocks = [
8872
9345
  name: "Side by side, code left",
8873
9346
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-left.svg",
8874
9347
  description: "Side-by-side preview and code, with code on the left.",
8875
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9348
+ layout: {
9349
+ type: "Column",
9350
+ children: ["code"],
9351
+ columnAlign: "Start",
9352
+ columnResizing: "Fill",
9353
+ gap: "Medium"
9354
+ },
8876
9355
  maxColumns: 1,
8877
9356
  defaultColumns: 1,
8878
9357
  appearance: {}
@@ -8882,7 +9361,13 @@ var blocks = [
8882
9361
  name: "Side by side, code right",
8883
9362
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-right.svg",
8884
9363
  description: "Side-by-side preview and code, with code on the right.",
8885
- layout: { type: "Column", children: ["code"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9364
+ layout: {
9365
+ type: "Column",
9366
+ children: ["code"],
9367
+ columnAlign: "Start",
9368
+ columnResizing: "Fill",
9369
+ gap: "Medium"
9370
+ },
8886
9371
  maxColumns: 1,
8887
9372
  defaultColumns: 1,
8888
9373
  appearance: {}
@@ -8890,7 +9375,13 @@ var blocks = [
8890
9375
  ],
8891
9376
  defaultVariantKey: "codeBottom"
8892
9377
  },
8893
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9378
+ behavior: {
9379
+ dataType: "Item",
9380
+ items: {
9381
+ numberOfItems: 1,
9382
+ allowLinks: false
9383
+ }
9384
+ },
8894
9385
  editorOptions: {
8895
9386
  onboarding: {
8896
9387
  helpText: "Display rendered code example",
@@ -8912,15 +9403,31 @@ var blocks = [
8912
9403
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
8913
9404
  searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
8914
9405
  item: {
8915
- properties: [{ id: "assets", name: "Assets", type: "Asset", options: {} }],
8916
- appearance: { isBordered: true, hasBackground: false },
9406
+ properties: [
9407
+ {
9408
+ id: "assets",
9409
+ name: "Assets",
9410
+ type: "Asset",
9411
+ options: {}
9412
+ }
9413
+ ],
9414
+ appearance: {
9415
+ isBordered: true,
9416
+ hasBackground: false
9417
+ },
8917
9418
  variants: [
8918
9419
  {
8919
9420
  id: "default",
8920
9421
  name: "Simple grid",
8921
9422
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
8922
9423
  description: "A simple grid of assets. Both the title and description are displayed below the preview.",
8923
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9424
+ layout: {
9425
+ type: "Column",
9426
+ children: ["assets"],
9427
+ columnAlign: "Start",
9428
+ columnResizing: "Fill",
9429
+ gap: "Medium"
9430
+ },
8924
9431
  maxColumns: 8,
8925
9432
  defaultColumns: 1,
8926
9433
  appearance: {}
@@ -8930,25 +9437,47 @@ var blocks = [
8930
9437
  name: "Square grid",
8931
9438
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
8932
9439
  description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
8933
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9440
+ layout: {
9441
+ type: "Column",
9442
+ children: ["assets"],
9443
+ columnAlign: "Start",
9444
+ columnResizing: "Fill",
9445
+ gap: "Medium"
9446
+ },
8934
9447
  maxColumns: 8,
8935
9448
  defaultColumns: 1,
8936
- appearance: { isEditorPresentationDifferent: true }
9449
+ appearance: {
9450
+ isEditorPresentationDifferent: true
9451
+ }
8937
9452
  },
8938
9453
  {
8939
9454
  id: "borderless-grid",
8940
9455
  name: "Borderless grid",
8941
9456
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
8942
9457
  description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
8943
- layout: { type: "Column", children: ["assets"], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9458
+ layout: {
9459
+ type: "Column",
9460
+ children: ["assets"],
9461
+ columnAlign: "Start",
9462
+ columnResizing: "Fill",
9463
+ gap: "Medium"
9464
+ },
8944
9465
  maxColumns: 8,
8945
9466
  defaultColumns: 1,
8946
- appearance: { isEditorPresentationDifferent: true }
9467
+ appearance: {
9468
+ isEditorPresentationDifferent: true
9469
+ }
8947
9470
  }
8948
9471
  ],
8949
9472
  defaultVariantKey: "default"
8950
9473
  },
8951
- behavior: { dataType: "Asset", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
9474
+ behavior: {
9475
+ dataType: "Asset",
9476
+ entities: {
9477
+ selectionType: "EntityAndGroup",
9478
+ maxSelected: 0
9479
+ }
9480
+ },
8952
9481
  editorOptions: {
8953
9482
  onboarding: {
8954
9483
  helpText: "Display a grid of icons or illustrations.",
@@ -8978,7 +9507,10 @@ var blocks = [
8978
9507
  options: {}
8979
9508
  }
8980
9509
  ],
8981
- appearance: { isBordered: true, hasBackground: false },
9510
+ appearance: {
9511
+ isBordered: true,
9512
+ hasBackground: false
9513
+ },
8982
9514
  variants: [
8983
9515
  {
8984
9516
  id: "bordered",
@@ -9015,7 +9547,13 @@ var blocks = [
9015
9547
  ],
9016
9548
  defaultVariantKey: "bordered"
9017
9549
  },
9018
- behavior: { dataType: "FigmaNode", entities: { selectionType: "Entity", maxSelected: 0 } },
9550
+ behavior: {
9551
+ dataType: "FigmaNode",
9552
+ entities: {
9553
+ selectionType: "Entity",
9554
+ maxSelected: 0
9555
+ }
9556
+ },
9019
9557
  editorOptions: {
9020
9558
  onboarding: {
9021
9559
  helpText: "Generate images from Figma layers",
@@ -9038,14 +9576,23 @@ var blocks = [
9038
9576
  searchKeywords: ["version", "changelog", "history"],
9039
9577
  item: {
9040
9578
  properties: [],
9041
- appearance: { isBordered: true, hasBackground: false },
9579
+ appearance: {
9580
+ isBordered: true,
9581
+ hasBackground: false
9582
+ },
9042
9583
  variants: [
9043
9584
  {
9044
9585
  id: "default",
9045
9586
  name: "Default",
9046
9587
  image: "https://cdn-assets.supernova.io/blocks/variants/release-notes-2.svg",
9047
9588
  description: "Show formatted release notes from all previously released versions.",
9048
- layout: { type: "Column", children: [], columnAlign: "Start", columnResizing: "Fill", gap: "Medium" },
9589
+ layout: {
9590
+ type: "Column",
9591
+ children: [],
9592
+ columnAlign: "Start",
9593
+ columnResizing: "Fill",
9594
+ gap: "Medium"
9595
+ },
9049
9596
  maxColumns: 1,
9050
9597
  defaultColumns: 1,
9051
9598
  appearance: {}
@@ -9053,7 +9600,13 @@ var blocks = [
9053
9600
  ],
9054
9601
  defaultVariantKey: "default"
9055
9602
  },
9056
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9603
+ behavior: {
9604
+ dataType: "Item",
9605
+ items: {
9606
+ numberOfItems: 1,
9607
+ allowLinks: false
9608
+ }
9609
+ },
9057
9610
  editorOptions: {
9058
9611
  onboarding: {
9059
9612
  helpText: "Show formatted release notes from all previously released versions."
@@ -9079,22 +9632,31 @@ var blocks = [
9079
9632
  id: "components",
9080
9633
  name: "Components",
9081
9634
  type: "Component",
9082
- options: { renderLayoutAs: "List" }
9635
+ options: {
9636
+ renderLayoutAs: "List"
9637
+ }
9083
9638
  },
9084
9639
  {
9085
9640
  id: "title",
9086
9641
  name: "Title",
9087
9642
  type: "Text",
9088
- options: { defaultValue: "Component checklist" }
9643
+ options: {
9644
+ defaultValue: "Component checklist"
9645
+ }
9089
9646
  },
9090
9647
  {
9091
9648
  id: "showDescription",
9092
9649
  name: "Show description",
9093
9650
  type: "Boolean",
9094
- options: { defaultValue: true }
9651
+ options: {
9652
+ defaultValue: true
9653
+ }
9095
9654
  }
9096
9655
  ],
9097
- appearance: { isBordered: true, hasBackground: false },
9656
+ appearance: {
9657
+ isBordered: true,
9658
+ hasBackground: false
9659
+ },
9098
9660
  variants: [
9099
9661
  {
9100
9662
  id: "default",
@@ -9109,12 +9671,20 @@ var blocks = [
9109
9671
  },
9110
9672
  maxColumns: 1,
9111
9673
  defaultColumns: 1,
9112
- appearance: { isEditorPresentationDifferent: true }
9674
+ appearance: {
9675
+ isEditorPresentationDifferent: true
9676
+ }
9113
9677
  }
9114
9678
  ],
9115
9679
  defaultVariantKey: "default"
9116
9680
  },
9117
- behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
9681
+ behavior: {
9682
+ dataType: "Component",
9683
+ entities: {
9684
+ selectionType: "Entity",
9685
+ maxSelected: 1
9686
+ }
9687
+ },
9118
9688
  editorOptions: {
9119
9689
  onboarding: {
9120
9690
  helpText: "Highlight specific component properties",
@@ -9141,16 +9711,23 @@ var blocks = [
9141
9711
  id: "components",
9142
9712
  name: "Components",
9143
9713
  type: "Component",
9144
- options: { renderLayoutAs: "Table" }
9714
+ options: {
9715
+ renderLayoutAs: "Table"
9716
+ }
9145
9717
  },
9146
9718
  {
9147
9719
  id: "showLastUpdatedColumn",
9148
9720
  name: "Show last updated column",
9149
9721
  type: "Boolean",
9150
- options: { defaultValue: true }
9722
+ options: {
9723
+ defaultValue: true
9724
+ }
9151
9725
  }
9152
9726
  ],
9153
- appearance: { isBordered: true, hasBackground: false },
9727
+ appearance: {
9728
+ isBordered: true,
9729
+ hasBackground: false
9730
+ },
9154
9731
  variants: [
9155
9732
  {
9156
9733
  id: "default",
@@ -9165,12 +9742,20 @@ var blocks = [
9165
9742
  },
9166
9743
  maxColumns: 1,
9167
9744
  defaultColumns: 1,
9168
- appearance: { isEditorPresentationDifferent: true }
9745
+ appearance: {
9746
+ isEditorPresentationDifferent: true
9747
+ }
9169
9748
  }
9170
9749
  ],
9171
9750
  defaultVariantKey: "default"
9172
9751
  },
9173
- behavior: { dataType: "Component", entities: { selectionType: "Group", maxSelected: 1 } },
9752
+ behavior: {
9753
+ dataType: "Component",
9754
+ entities: {
9755
+ selectionType: "Group",
9756
+ maxSelected: 1
9757
+ }
9758
+ },
9174
9759
  editorOptions: {
9175
9760
  onboarding: {
9176
9761
  helpText: "Show an overview of all your components",
@@ -9197,10 +9782,15 @@ var blocks = [
9197
9782
  id: "components",
9198
9783
  name: "Components",
9199
9784
  type: "Component",
9200
- options: { renderLayoutAs: "List" }
9785
+ options: {
9786
+ renderLayoutAs: "List"
9787
+ }
9201
9788
  }
9202
9789
  ],
9203
- appearance: { isBordered: true, hasBackground: false },
9790
+ appearance: {
9791
+ isBordered: true,
9792
+ hasBackground: false
9793
+ },
9204
9794
  variants: [
9205
9795
  {
9206
9796
  id: "default",
@@ -9215,12 +9805,20 @@ var blocks = [
9215
9805
  },
9216
9806
  maxColumns: 1,
9217
9807
  defaultColumns: 1,
9218
- appearance: { isEditorPresentationDifferent: true }
9808
+ appearance: {
9809
+ isEditorPresentationDifferent: true
9810
+ }
9219
9811
  }
9220
9812
  ],
9221
9813
  defaultVariantKey: "default"
9222
9814
  },
9223
- behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
9815
+ behavior: {
9816
+ dataType: "Component",
9817
+ entities: {
9818
+ selectionType: "Entity",
9819
+ maxSelected: 1
9820
+ }
9821
+ },
9224
9822
  editorOptions: {
9225
9823
  onboarding: {
9226
9824
  helpText: "Show component health and additional attributes",
@@ -9233,6 +9831,179 @@ var blocks = [
9233
9831
  isEditorPresentationDifferent: false,
9234
9832
  showBlockHeaderInEditor: false
9235
9833
  }
9834
+ },
9835
+ {
9836
+ id: "io.supernova.block.do-dont-guidelines",
9837
+ name: "Guidelines",
9838
+ description: "Do/Don\u2019t rules and best practices.",
9839
+ category: "Guidelines",
9840
+ icon: "https://cdn-assets.supernova.io/blocks/icons/guidelines.svg",
9841
+ searchKeywords: ["dont", "caution", "rules"],
9842
+ item: {
9843
+ properties: [
9844
+ {
9845
+ id: "block.do-dont-guidelines.property.image",
9846
+ name: "Image",
9847
+ type: "Image",
9848
+ options: {
9849
+ allowCaption: false
9850
+ }
9851
+ },
9852
+ {
9853
+ id: "block.do-dont-guidelines.property.type",
9854
+ name: "Type",
9855
+ type: "SingleSelect",
9856
+ options: {
9857
+ defaultChoice: "do",
9858
+ choices: [
9859
+ {
9860
+ value: "do",
9861
+ name: "Do",
9862
+ color: "Green",
9863
+ icon: "CheckCircle"
9864
+ },
9865
+ {
9866
+ value: "dont",
9867
+ name: "Don't",
9868
+ color: "Red",
9869
+ icon: "CrossCircle"
9870
+ },
9871
+ {
9872
+ value: "caution",
9873
+ name: "Caution",
9874
+ color: "Orange",
9875
+ icon: "Alert"
9876
+ }
9877
+ ],
9878
+ singleSelectStyle: "SegmentedControl"
9879
+ }
9880
+ },
9881
+ {
9882
+ id: "block.do-dont-guidelines.property.description",
9883
+ name: "Description",
9884
+ type: "Text",
9885
+ options: {
9886
+ textStyle: "Default",
9887
+ color: "Neutral",
9888
+ placeholder: "Add description"
9889
+ }
9890
+ }
9891
+ ],
9892
+ appearance: {
9893
+ isBordered: true,
9894
+ hasBackground: false
9895
+ },
9896
+ variants: [
9897
+ {
9898
+ id: "simple",
9899
+ name: "Simple",
9900
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-simple.svg",
9901
+ description: "With a minimalist badge at the top, this design is great for content guidelines.",
9902
+ layout: {
9903
+ type: "Column",
9904
+ children: [
9905
+ "block.do-dont-guidelines.property.type",
9906
+ "block.do-dont-guidelines.property.image",
9907
+ "block.do-dont-guidelines.property.description"
9908
+ ],
9909
+ columnAlign: "Start",
9910
+ columnResizing: "Fill",
9911
+ gap: "Medium"
9912
+ },
9913
+ maxColumns: 3,
9914
+ defaultColumns: 2,
9915
+ appearance: {}
9916
+ },
9917
+ {
9918
+ id: "prominent",
9919
+ name: "Prominent",
9920
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-prominent.svg",
9921
+ description: "Recommended when you need guidelines that need to stand out.",
9922
+ layout: {
9923
+ type: "Column",
9924
+ children: [
9925
+ "block.do-dont-guidelines.property.type",
9926
+ "block.do-dont-guidelines.property.image",
9927
+ "block.do-dont-guidelines.property.description"
9928
+ ],
9929
+ columnAlign: "Start",
9930
+ columnResizing: "Fill",
9931
+ gap: "Medium"
9932
+ },
9933
+ maxColumns: 3,
9934
+ defaultColumns: 1,
9935
+ appearance: {
9936
+ isEditorPresentationDifferent: true
9937
+ }
9938
+ },
9939
+ {
9940
+ id: "contained",
9941
+ name: "Contained",
9942
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-contained.svg",
9943
+ description: "Perfect for component guidelines with spacious images.",
9944
+ layout: {
9945
+ type: "Column",
9946
+ children: [
9947
+ "block.do-dont-guidelines.property.type",
9948
+ "block.do-dont-guidelines.property.image",
9949
+ "block.do-dont-guidelines.property.description"
9950
+ ],
9951
+ columnAlign: "Start",
9952
+ columnResizing: "Fill",
9953
+ gap: "Medium"
9954
+ },
9955
+ maxColumns: 3,
9956
+ defaultColumns: 1,
9957
+ appearance: {
9958
+ isEditorPresentationDifferent: true
9959
+ }
9960
+ },
9961
+ {
9962
+ id: "side-border",
9963
+ name: "Side border",
9964
+ image: "https://cdn-assets.supernova.io/blocks/variants/guidelines-side-border.svg",
9965
+ description: "The side border makes this variant well-suited for longer text guidelines.",
9966
+ layout: {
9967
+ type: "Column",
9968
+ children: [
9969
+ "block.do-dont-guidelines.property.type",
9970
+ "block.do-dont-guidelines.property.image",
9971
+ "block.do-dont-guidelines.property.description"
9972
+ ],
9973
+ columnAlign: "Start",
9974
+ columnResizing: "Fill",
9975
+ gap: "Medium"
9976
+ },
9977
+ maxColumns: 3,
9978
+ defaultColumns: 1,
9979
+ appearance: {
9980
+ isEditorPresentationDifferent: true
9981
+ }
9982
+ }
9983
+ ],
9984
+ defaultVariantKey: "simple"
9985
+ },
9986
+ behavior: {
9987
+ dataType: "Item",
9988
+ items: {
9989
+ numberOfItems: -1,
9990
+ allowLinks: false,
9991
+ newItemLabel: "Add guideline"
9992
+ }
9993
+ },
9994
+ editorOptions: {
9995
+ onboarding: {
9996
+ helpText: "Use link block to document your Do/Don't guidelines for your components and patterns.",
9997
+ documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4"
9998
+ },
9999
+ newItemLabel: "Add guideline"
10000
+ },
10001
+ appearance: {
10002
+ isBordered: true,
10003
+ hasBackground: false,
10004
+ isEditorPresentationDifferent: false,
10005
+ showBlockHeaderInEditor: false
10006
+ }
9236
10007
  }
9237
10008
  ];
9238
10009
 
@@ -9872,14 +10643,10 @@ var BackendVersionRoomYDoc = class {
9872
10643
  transaction.pages && yDoc.updatePages(transaction.pages);
9873
10644
  transaction.groupIdsToDelete && yDoc.deleteGroups(transaction.groupIdsToDelete);
9874
10645
  transaction.groups && yDoc.updateGroups(transaction.groups);
9875
- transaction.publishedPageSnapshotIdsToDelete && yDoc.deletePagePublishedSnapshots(transaction.publishedPageSnapshotIdsToDelete);
9876
- transaction.publishedPageSnapshots && yDoc.updatePagePublishedSnapshots(transaction.publishedPageSnapshots);
9877
- transaction.publishedGroupSnapshotIdsToDelete && yDoc.deleteGroupPublishedSnapshots(transaction.publishedGroupSnapshotIdsToDelete);
9878
- transaction.publishedGroupSnapshots && yDoc.updateGroupPublishedSnapshots(transaction.publishedGroupSnapshots);
9879
- transaction.deletedPageSnapshotIdsToDelete && yDoc.deletePageDeletedSnapshots(transaction.deletedPageSnapshotIdsToDelete);
9880
- transaction.deletedPageSnapshots && yDoc.updatePageDeletedSnapshots(transaction.deletedPageSnapshots);
9881
- transaction.deletedGroupSnapshotIdsToDelete && yDoc.deleteGroupDeletedSnapshots(transaction.deletedGroupSnapshotIdsToDelete);
9882
- transaction.deletedGroupSnapshots && yDoc.updateGroupDeletedSnapshots(transaction.deletedGroupSnapshots);
10646
+ transaction.pageSnapshotIdsToDelete && yDoc.deletePageSnapshots(transaction.pageSnapshotIdsToDelete);
10647
+ transaction.pageSnapshots && yDoc.updatePageSnapshots(transaction.pageSnapshots);
10648
+ transaction.groupSnapshotIdsToDelete && yDoc.deleteGroupSnapshots(transaction.groupSnapshotIdsToDelete);
10649
+ transaction.groupSnapshots && yDoc.updateGroupSnapshots(transaction.groupSnapshots);
9883
10650
  transaction.internalSettings && yDoc.updateDocumentationInternalSettings(transaction.internalSettings);
9884
10651
  });
9885
10652
  }