@supernova-studio/client 0.47.58 → 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.mjs CHANGED
@@ -640,7 +640,62 @@ var ComponentElementData = z32.object({
640
640
  }).optional()
641
641
  })
642
642
  });
643
- var DesignTokenType = z33.enum([
643
+ var ElementPropertyTypeSchema = z33.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
644
+ var ElementPropertyTargetType = z33.enum(["Token", "Component", "DocumentationPage"]);
645
+ var ElementPropertyLinkType = z33.enum(["FigmaComponent", "DocumentationPage"]);
646
+ var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
647
+ var ColorTokenInlineData = z33.object({
648
+ value: z33.string()
649
+ });
650
+ var ElementPropertyDefinitionOption = z33.object({
651
+ id: z33.string(),
652
+ name: z33.string(),
653
+ backgroundColor: ColorTokenInlineData.optional()
654
+ });
655
+ var ElementPropertyDefinition = z33.object({
656
+ id: z33.string(),
657
+ designSystemVersionId: z33.string(),
658
+ persistentId: z33.string(),
659
+ name: z33.string(),
660
+ codeName: z33.string().regex(CODE_NAME_REGEX),
661
+ description: z33.string(),
662
+ type: ElementPropertyTypeSchema,
663
+ targetElementType: ElementPropertyTargetType,
664
+ options: z33.array(ElementPropertyDefinitionOption).optional(),
665
+ linkElementType: ElementPropertyLinkType.optional()
666
+ });
667
+ var ElementPropertyType = ElementPropertyTypeSchema.enum;
668
+ var ElementPropertyValue = z34.object({
669
+ id: z34.string(),
670
+ designSystemVersionId: z34.string(),
671
+ targetElementPersistentId: z34.string(),
672
+ definitionPersistentId: z34.string(),
673
+ stringValue: z34.string().nullish(),
674
+ numberValue: z34.number().nullish(),
675
+ booleanValue: z34.boolean().nullish(),
676
+ referenceValue: z34.string().nullish(),
677
+ referenceValuePreview: z34.string().optional()
678
+ });
679
+ var Point2D = z35.object({
680
+ x: z35.number(),
681
+ y: z35.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 = z36.object({
688
+ width: z36.number().nullish().transform((v) => v ?? nullSize.width),
689
+ height: z36.number().nullish().transform((v) => 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
+ });
698
+ var DesignTokenType = z37.enum([
644
699
  "Color",
645
700
  "Border",
646
701
  "Gradient",
@@ -672,7 +727,7 @@ var DesignTokenType = z33.enum([
672
727
  ]);
673
728
  var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
674
729
  var DesignElementType = DesignTokenType.or(
675
- z33.enum([
730
+ z37.enum([
676
731
  "Component",
677
732
  "Theme",
678
733
  "Documentation",
@@ -684,7 +739,7 @@ var DesignElementType = DesignTokenType.or(
684
739
  "PageBlock"
685
740
  ])
686
741
  );
687
- var DesignElementCategory = z33.enum([
742
+ var DesignElementCategory = z37.enum([
688
743
  "Token",
689
744
  "Component",
690
745
  "DesignSystemComponent",
@@ -692,90 +747,35 @@ var DesignElementCategory = z33.enum([
692
747
  "Theme",
693
748
  "PageBlock"
694
749
  ]);
695
- var DesignSystemElementExportProps = z33.object({
696
- isAsset: z33.boolean().nullish().transform((v) => v ?? false),
697
- codeName: z33.string().nullish()
698
- });
699
- var ShallowDesignElement = z33.object({
700
- id: z33.string(),
701
- persistentId: z33.string(),
702
- designSystemVersionId: z33.string(),
750
+ var DesignSystemElementExportProps = z37.object({
751
+ isAsset: z37.boolean().nullish().transform((v) => v ?? false),
752
+ codeName: z37.string().nullish()
753
+ });
754
+ var ShallowDesignElement = z37.object({
755
+ id: z37.string(),
756
+ persistentId: z37.string(),
757
+ designSystemVersionId: z37.string(),
703
758
  type: DesignElementType,
704
- brandPersistentId: z33.string().optional(),
705
- parentPersistentId: z33.string().optional(),
706
- shortPersistentId: z33.string().optional(),
759
+ brandPersistentId: z37.string().optional(),
760
+ parentPersistentId: z37.string().optional(),
761
+ shortPersistentId: z37.string().optional(),
707
762
  childType: DesignElementType.optional(),
708
- sortOrder: z33.number(),
709
- origin: z33.record(z33.any()).optional(),
710
- createdAt: z33.coerce.date(),
711
- updatedAt: z33.coerce.date()
763
+ sortOrder: z37.number(),
764
+ origin: z37.record(z37.any()).optional(),
765
+ createdAt: z37.coerce.date(),
766
+ updatedAt: z37.coerce.date()
712
767
  });
713
768
  var DesignElement = ShallowDesignElement.extend({
714
769
  meta: ObjectMeta,
715
- slug: z33.string().optional(),
716
- userSlug: z33.string().optional(),
770
+ slug: z37.string().optional(),
771
+ userSlug: z37.string().optional(),
717
772
  exportProperties: DesignSystemElementExportProps.optional(),
718
- data: z33.record(z33.any()),
719
- origin: z33.record(z33.any()).optional()
773
+ data: z37.record(z37.any()),
774
+ origin: z37.record(z37.any()).optional()
720
775
  });
721
776
  var HierarchicalElements = DesignTokenType.or(
722
- z33.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
777
+ z37.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
723
778
  );
724
- var ElementPropertyTypeSchema = z34.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
725
- var ElementPropertyTargetType = z34.enum(["Token", "Component", "DocumentationPage"]);
726
- var ElementPropertyLinkType = z34.enum(["FigmaComponent", "DocumentationPage"]);
727
- var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
728
- var ColorTokenInlineData = z34.object({
729
- value: z34.string()
730
- });
731
- var ElementPropertyDefinitionOption = z34.object({
732
- id: z34.string(),
733
- name: z34.string(),
734
- backgroundColor: ColorTokenInlineData.optional()
735
- });
736
- var ElementPropertyDefinition = z34.object({
737
- id: z34.string(),
738
- designSystemVersionId: z34.string(),
739
- persistentId: z34.string(),
740
- name: z34.string(),
741
- codeName: z34.string().regex(CODE_NAME_REGEX),
742
- description: z34.string(),
743
- type: ElementPropertyTypeSchema,
744
- targetElementType: ElementPropertyTargetType,
745
- options: z34.array(ElementPropertyDefinitionOption).optional(),
746
- linkElementType: ElementPropertyLinkType.optional()
747
- });
748
- var ElementPropertyType = ElementPropertyTypeSchema.enum;
749
- var ElementPropertyValue = z35.object({
750
- id: z35.string(),
751
- designSystemVersionId: z35.string(),
752
- targetElementPersistentId: z35.string(),
753
- definitionPersistentId: z35.string(),
754
- stringValue: z35.string().nullish(),
755
- numberValue: z35.number().nullish(),
756
- booleanValue: z35.boolean().nullish(),
757
- referenceValue: z35.string().nullish(),
758
- referenceValuePreview: z35.string().optional()
759
- });
760
- var Point2D = z36.object({
761
- x: z36.number(),
762
- y: z36.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 = z37.object({
769
- width: z37.number().nullish().transform((v) => v ?? nullSize.width),
770
- height: z37.number().nullish().transform((v) => 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 = z38.enum(["Info", "Primary", "Success", "Warning", "Error"]);
780
780
  var PageBlockTypeV1 = z38.enum([
781
781
  "Text",
@@ -808,7 +808,8 @@ var PageBlockTypeV1 = z38.enum([
808
808
  "TabItem",
809
809
  "Table",
810
810
  "TableRow",
811
- "TableCell"
811
+ "TableCell",
812
+ "Guidelines"
812
813
  ]);
813
814
  var PageBlockCodeLanguage = z38.enum([
814
815
  "Angular",
@@ -966,9 +967,15 @@ var PageBlockTextSpan = z38.object({
966
967
  var PageBlockText = z38.object({
967
968
  spans: z38.array(PageBlockTextSpan)
968
969
  });
970
+ var PageBlockGuideline = z38.object({
971
+ description: nullishToOptional(z38.string()),
972
+ asset: nullishToOptional(PageBlockAsset),
973
+ type: z38.string()
974
+ });
969
975
  var PageBlockBaseV1 = z38.object({
970
976
  persistentId: z38.string(),
971
977
  type: PageBlockTypeV1,
978
+ numberOfColumns: nullishToOptional(z38.number()),
972
979
  // Element linking
973
980
  designObjectId: nullishToOptional(z38.string()),
974
981
  designObjectIds: nullishToOptional(z38.array(z38.string())),
@@ -989,6 +996,8 @@ var PageBlockBaseV1 = z38.object({
989
996
  alignment: nullishToOptional(PageBlockAlignment),
990
997
  // Shortcuts block
991
998
  shortcuts: nullishToOptional(z38.array(PageBlockShortcut)),
999
+ // Guidelines
1000
+ guidelines: nullishToOptional(PageBlockGuideline.array()),
992
1001
  // Custom blocks
993
1002
  customBlockKey: nullishToOptional(z38.string()),
994
1003
  customBlockProperties: nullishToOptional(z38.array(PageBlockCustomBlockPropertyValue)),
@@ -2370,7 +2379,8 @@ var PageBlockDefinition = z97.object({
2370
2379
  item: PageBlockDefinitionItem,
2371
2380
  behavior: PageBlockDefinitionBehavior,
2372
2381
  editorOptions: z97.object({
2373
- onboarding: PageBlockDefinitionOnboarding.optional()
2382
+ onboarding: PageBlockDefinitionOnboarding.optional(),
2383
+ newItemLabel: z97.string().optional()
2374
2384
  }),
2375
2385
  appearance: PageBlockDefinitionAppearance.optional()
2376
2386
  });
@@ -7595,23 +7605,42 @@ var blocks = [
7595
7605
  id: "text",
7596
7606
  name: "Text",
7597
7607
  type: "RichText",
7598
- options: { richTextStyle: "Default" }
7608
+ options: {
7609
+ richTextStyle: "Default"
7610
+ }
7599
7611
  }
7600
7612
  ],
7601
- appearance: { isBordered: true, hasBackground: false },
7613
+ appearance: {
7614
+ isBordered: true,
7615
+ hasBackground: false
7616
+ },
7602
7617
  variants: [
7603
7618
  {
7604
7619
  id: "default",
7605
7620
  name: "Default",
7606
- 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
+ },
7607
7628
  maxColumns: 1,
7608
7629
  defaultColumns: 1,
7609
- appearance: { isEditorPresentationDifferent: false }
7630
+ appearance: {
7631
+ isEditorPresentationDifferent: false
7632
+ }
7610
7633
  }
7611
7634
  ],
7612
7635
  defaultVariantKey: "default"
7613
7636
  },
7614
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7637
+ behavior: {
7638
+ dataType: "Item",
7639
+ items: {
7640
+ numberOfItems: 1,
7641
+ allowLinks: false
7642
+ }
7643
+ },
7615
7644
  editorOptions: {
7616
7645
  onboarding: {
7617
7646
  helpText: "Use rich text block to write text and add additional formatting to it.",
@@ -7638,15 +7667,27 @@ var blocks = [
7638
7667
  id: "text",
7639
7668
  name: "Text",
7640
7669
  type: "RichText",
7641
- options: { placeholder: "Heading 1", richTextStyle: "Title1" }
7670
+ options: {
7671
+ placeholder: "Heading 1",
7672
+ richTextStyle: "Title1"
7673
+ }
7642
7674
  }
7643
7675
  ],
7644
- appearance: { isBordered: true, hasBackground: false },
7676
+ appearance: {
7677
+ isBordered: true,
7678
+ hasBackground: false
7679
+ },
7645
7680
  variants: [
7646
7681
  {
7647
7682
  id: "default",
7648
7683
  name: "Default",
7649
- 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
+ },
7650
7691
  maxColumns: 1,
7651
7692
  defaultColumns: 1,
7652
7693
  appearance: {}
@@ -7654,7 +7695,13 @@ var blocks = [
7654
7695
  ],
7655
7696
  defaultVariantKey: "default"
7656
7697
  },
7657
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7698
+ behavior: {
7699
+ dataType: "Item",
7700
+ items: {
7701
+ numberOfItems: 1,
7702
+ allowLinks: false
7703
+ }
7704
+ },
7658
7705
  editorOptions: {
7659
7706
  onboarding: {
7660
7707
  helpText: "Use for main sections within the page, introducing broad topics or themes.",
@@ -7681,15 +7728,27 @@ var blocks = [
7681
7728
  id: "text",
7682
7729
  name: "Text",
7683
7730
  type: "RichText",
7684
- options: { placeholder: "Heading 2", richTextStyle: "Title2" }
7731
+ options: {
7732
+ placeholder: "Heading 2",
7733
+ richTextStyle: "Title2"
7734
+ }
7685
7735
  }
7686
7736
  ],
7687
- appearance: { isBordered: true, hasBackground: false },
7737
+ appearance: {
7738
+ isBordered: true,
7739
+ hasBackground: false
7740
+ },
7688
7741
  variants: [
7689
7742
  {
7690
7743
  id: "default",
7691
7744
  name: "Default",
7692
- 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
+ },
7693
7752
  maxColumns: 1,
7694
7753
  defaultColumns: 1,
7695
7754
  appearance: {}
@@ -7697,7 +7756,13 @@ var blocks = [
7697
7756
  ],
7698
7757
  defaultVariantKey: "default"
7699
7758
  },
7700
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7759
+ behavior: {
7760
+ dataType: "Item",
7761
+ items: {
7762
+ numberOfItems: 1,
7763
+ allowLinks: false
7764
+ }
7765
+ },
7701
7766
  editorOptions: {
7702
7767
  onboarding: {
7703
7768
  helpText: "Use for subheadings, indicating major subsections under the main sections.",
@@ -7724,15 +7789,27 @@ var blocks = [
7724
7789
  id: "text",
7725
7790
  name: "Text",
7726
7791
  type: "RichText",
7727
- options: { placeholder: "Heading 3", richTextStyle: "Title3" }
7792
+ options: {
7793
+ placeholder: "Heading 3",
7794
+ richTextStyle: "Title3"
7795
+ }
7728
7796
  }
7729
7797
  ],
7730
- appearance: { isBordered: true, hasBackground: false },
7798
+ appearance: {
7799
+ isBordered: true,
7800
+ hasBackground: false
7801
+ },
7731
7802
  variants: [
7732
7803
  {
7733
7804
  id: "default",
7734
7805
  name: "Default",
7735
- 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
+ },
7736
7813
  maxColumns: 1,
7737
7814
  defaultColumns: 1,
7738
7815
  appearance: {}
@@ -7740,7 +7817,13 @@ var blocks = [
7740
7817
  ],
7741
7818
  defaultVariantKey: "default"
7742
7819
  },
7743
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7820
+ behavior: {
7821
+ dataType: "Item",
7822
+ items: {
7823
+ numberOfItems: 1,
7824
+ allowLinks: false
7825
+ }
7826
+ },
7744
7827
  editorOptions: {
7745
7828
  onboarding: {
7746
7829
  helpText: "Use for further subsections, detailing specific topics within the major subsections.",
@@ -7767,15 +7850,27 @@ var blocks = [
7767
7850
  id: "text",
7768
7851
  name: "Text",
7769
7852
  type: "RichText",
7770
- options: { placeholder: "Heading 4", richTextStyle: "Title4" }
7853
+ options: {
7854
+ placeholder: "Heading 4",
7855
+ richTextStyle: "Title4"
7856
+ }
7771
7857
  }
7772
7858
  ],
7773
- appearance: { isBordered: true, hasBackground: false },
7859
+ appearance: {
7860
+ isBordered: true,
7861
+ hasBackground: false
7862
+ },
7774
7863
  variants: [
7775
7864
  {
7776
7865
  id: "default",
7777
7866
  name: "Default",
7778
- 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
+ },
7779
7874
  maxColumns: 1,
7780
7875
  defaultColumns: 1,
7781
7876
  appearance: {}
@@ -7783,7 +7878,13 @@ var blocks = [
7783
7878
  ],
7784
7879
  defaultVariantKey: "default"
7785
7880
  },
7786
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7881
+ behavior: {
7882
+ dataType: "Item",
7883
+ items: {
7884
+ numberOfItems: 1,
7885
+ allowLinks: false
7886
+ }
7887
+ },
7787
7888
  editorOptions: {
7788
7889
  onboarding: {
7789
7890
  helpText: "Use for sub-divisions, elaborating on details within the subsections.",
@@ -7810,15 +7911,27 @@ var blocks = [
7810
7911
  id: "text",
7811
7912
  name: "Text",
7812
7913
  type: "RichText",
7813
- options: { placeholder: "Heading 5", richTextStyle: "Title5" }
7914
+ options: {
7915
+ placeholder: "Heading 5",
7916
+ richTextStyle: "Title5"
7917
+ }
7814
7918
  }
7815
7919
  ],
7816
- appearance: { isBordered: true, hasBackground: false },
7920
+ appearance: {
7921
+ isBordered: true,
7922
+ hasBackground: false
7923
+ },
7817
7924
  variants: [
7818
7925
  {
7819
7926
  id: "default",
7820
7927
  name: "Default",
7821
- 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
+ },
7822
7935
  maxColumns: 1,
7823
7936
  defaultColumns: 1,
7824
7937
  appearance: {}
@@ -7826,7 +7939,13 @@ var blocks = [
7826
7939
  ],
7827
7940
  defaultVariantKey: "default"
7828
7941
  },
7829
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
7942
+ behavior: {
7943
+ dataType: "Item",
7944
+ items: {
7945
+ numberOfItems: 1,
7946
+ allowLinks: false
7947
+ }
7948
+ },
7830
7949
  editorOptions: {
7831
7950
  onboarding: {
7832
7951
  helpText: "Use for nuanced details or specific sub-points within sub-divisions.",
@@ -7853,15 +7972,26 @@ var blocks = [
7853
7972
  id: "text",
7854
7973
  name: "Text",
7855
7974
  type: "MultiRichText",
7856
- options: { multiRichTextStyle: "OL" }
7975
+ options: {
7976
+ multiRichTextStyle: "OL"
7977
+ }
7857
7978
  }
7858
7979
  ],
7859
- appearance: { isBordered: true, hasBackground: false },
7980
+ appearance: {
7981
+ isBordered: true,
7982
+ hasBackground: false
7983
+ },
7860
7984
  variants: [
7861
7985
  {
7862
7986
  id: "default",
7863
7987
  name: "Default",
7864
- 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
+ },
7865
7995
  maxColumns: 1,
7866
7996
  defaultColumns: 1,
7867
7997
  appearance: {}
@@ -7869,7 +7999,13 @@ var blocks = [
7869
7999
  ],
7870
8000
  defaultVariantKey: "default"
7871
8001
  },
7872
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8002
+ behavior: {
8003
+ dataType: "Item",
8004
+ items: {
8005
+ numberOfItems: 1,
8006
+ allowLinks: false
8007
+ }
8008
+ },
7873
8009
  editorOptions: {
7874
8010
  onboarding: {
7875
8011
  helpText: "Display a sequence of numbers or letters to indicate order.",
@@ -7896,15 +8032,26 @@ var blocks = [
7896
8032
  id: "text",
7897
8033
  name: "Text",
7898
8034
  type: "MultiRichText",
7899
- options: { multiRichTextStyle: "UL" }
8035
+ options: {
8036
+ multiRichTextStyle: "UL"
8037
+ }
7900
8038
  }
7901
8039
  ],
7902
- appearance: { isBordered: true, hasBackground: false },
8040
+ appearance: {
8041
+ isBordered: true,
8042
+ hasBackground: false
8043
+ },
7903
8044
  variants: [
7904
8045
  {
7905
8046
  id: "default",
7906
8047
  name: "Default",
7907
- 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
+ },
7908
8055
  maxColumns: 1,
7909
8056
  defaultColumns: 1,
7910
8057
  appearance: {}
@@ -7912,7 +8059,13 @@ var blocks = [
7912
8059
  ],
7913
8060
  defaultVariantKey: "default"
7914
8061
  },
7915
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8062
+ behavior: {
8063
+ dataType: "Item",
8064
+ items: {
8065
+ numberOfItems: 1,
8066
+ allowLinks: false
8067
+ }
8068
+ },
7916
8069
  editorOptions: {
7917
8070
  onboarding: {
7918
8071
  helpText: "A list of items displayed with bullet points without a specific sequence.",
@@ -7934,8 +8087,18 @@ var blocks = [
7934
8087
  icon: "https://cdn-assets.supernova.io/blocks/icons/divider.svg",
7935
8088
  searchKeywords: ["hr", "line", "rule", "separator"],
7936
8089
  item: {
7937
- properties: [{ id: "divider", name: "Divider", type: "Divider", options: {} }],
7938
- 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
+ },
7939
8102
  variants: [
7940
8103
  {
7941
8104
  id: "default",
@@ -7954,7 +8117,13 @@ var blocks = [
7954
8117
  ],
7955
8118
  defaultVariantKey: "default"
7956
8119
  },
7957
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8120
+ behavior: {
8121
+ dataType: "Item",
8122
+ items: {
8123
+ numberOfItems: 1,
8124
+ allowLinks: false
8125
+ }
8126
+ },
7958
8127
  editorOptions: {
7959
8128
  onboarding: {
7960
8129
  helpText: "A thematic break or horizontal rule, often used to separate content or define a change in topic.",
@@ -7981,15 +8150,27 @@ var blocks = [
7981
8150
  id: "text",
7982
8151
  name: "Text",
7983
8152
  type: "RichText",
7984
- options: { placeholder: "Write a quote...", richTextStyle: "Quote" }
8153
+ options: {
8154
+ placeholder: "Write a quote...",
8155
+ richTextStyle: "Quote"
8156
+ }
7985
8157
  }
7986
8158
  ],
7987
- appearance: { isBordered: true, hasBackground: false },
8159
+ appearance: {
8160
+ isBordered: true,
8161
+ hasBackground: false
8162
+ },
7988
8163
  variants: [
7989
8164
  {
7990
8165
  id: "default",
7991
8166
  name: "Default",
7992
- 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
+ },
7993
8174
  maxColumns: 1,
7994
8175
  defaultColumns: 1,
7995
8176
  appearance: {}
@@ -7997,7 +8178,13 @@ var blocks = [
7997
8178
  ],
7998
8179
  defaultVariantKey: "default"
7999
8180
  },
8000
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8181
+ behavior: {
8182
+ dataType: "Item",
8183
+ items: {
8184
+ numberOfItems: 1,
8185
+ allowLinks: false
8186
+ }
8187
+ },
8001
8188
  editorOptions: {
8002
8189
  onboarding: {
8003
8190
  helpText: "Use a blockquote to set off a quotation or cited content from the main text.",
@@ -8024,15 +8211,27 @@ var blocks = [
8024
8211
  id: "text",
8025
8212
  name: "Text",
8026
8213
  type: "RichText",
8027
- options: { placeholder: "Highlight some information...", richTextStyle: "Callout" }
8214
+ options: {
8215
+ placeholder: "Highlight some information...",
8216
+ richTextStyle: "Callout"
8217
+ }
8028
8218
  }
8029
8219
  ],
8030
- appearance: { isBordered: true, hasBackground: false },
8220
+ appearance: {
8221
+ isBordered: true,
8222
+ hasBackground: false
8223
+ },
8031
8224
  variants: [
8032
8225
  {
8033
8226
  id: "default",
8034
8227
  name: "Default",
8035
- 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
+ },
8036
8235
  maxColumns: 1,
8037
8236
  defaultColumns: 1,
8038
8237
  appearance: {}
@@ -8040,7 +8239,13 @@ var blocks = [
8040
8239
  ],
8041
8240
  defaultVariantKey: "default"
8042
8241
  },
8043
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8242
+ behavior: {
8243
+ dataType: "Item",
8244
+ items: {
8245
+ numberOfItems: 1,
8246
+ allowLinks: false
8247
+ }
8248
+ },
8044
8249
  editorOptions: {
8045
8250
  onboarding: {
8046
8251
  helpText: "Use to highlight a section of text.",
@@ -8067,15 +8272,26 @@ var blocks = [
8067
8272
  id: "image",
8068
8273
  name: "Image",
8069
8274
  type: "Image",
8070
- options: { allowCaption: true }
8275
+ options: {
8276
+ allowCaption: true
8277
+ }
8071
8278
  }
8072
8279
  ],
8073
- appearance: { isBordered: true, hasBackground: false },
8280
+ appearance: {
8281
+ isBordered: true,
8282
+ hasBackground: false
8283
+ },
8074
8284
  variants: [
8075
8285
  {
8076
8286
  id: "default",
8077
8287
  name: "Default",
8078
- 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
+ },
8079
8295
  maxColumns: 1,
8080
8296
  defaultColumns: 1,
8081
8297
  appearance: {}
@@ -8083,7 +8299,13 @@ var blocks = [
8083
8299
  ],
8084
8300
  defaultVariantKey: "default"
8085
8301
  },
8086
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8302
+ behavior: {
8303
+ dataType: "Item",
8304
+ items: {
8305
+ numberOfItems: 1,
8306
+ allowLinks: false
8307
+ }
8308
+ },
8087
8309
  editorOptions: {
8088
8310
  onboarding: {
8089
8311
  helpText: "Use to display an image or Figma image.",
@@ -8110,27 +8332,48 @@ var blocks = [
8110
8332
  id: "block.links.property.image",
8111
8333
  name: "Image",
8112
8334
  type: "Image",
8113
- options: { aspectRatio: "Landscape", allowCaption: false },
8335
+ options: {
8336
+ aspectRatio: "Landscape",
8337
+ allowCaption: false
8338
+ },
8114
8339
  variantOptions: {
8115
- iconOnTop: { width: "Icon", aspectRatio: "Square" },
8116
- imageOnLeft: { width: "Medium" },
8117
- 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
+ }
8118
8351
  }
8119
8352
  },
8120
8353
  {
8121
8354
  id: "block.links.property.title",
8122
8355
  name: "Title",
8123
8356
  type: "Text",
8124
- options: { textStyle: "Title5", placeholder: "Add title" }
8357
+ options: {
8358
+ textStyle: "Title5",
8359
+ placeholder: "Add title"
8360
+ }
8125
8361
  },
8126
8362
  {
8127
8363
  id: "block.links.property.description",
8128
8364
  name: "Short description",
8129
8365
  type: "Text",
8130
- options: { textStyle: "Default", color: "NeutralFaded", placeholder: "Add description" }
8366
+ options: {
8367
+ textStyle: "Default",
8368
+ color: "NeutralFaded",
8369
+ placeholder: "Add description"
8370
+ }
8131
8371
  }
8132
8372
  ],
8133
- appearance: { isBordered: true, hasBackground: false },
8373
+ appearance: {
8374
+ isBordered: true,
8375
+ hasBackground: false
8376
+ },
8134
8377
  variants: [
8135
8378
  {
8136
8379
  id: "imageOnTop",
@@ -8144,7 +8387,7 @@ var blocks = [
8144
8387
  gap: "Medium"
8145
8388
  },
8146
8389
  maxColumns: 4,
8147
- defaultColumns: 1,
8390
+ defaultColumns: 3,
8148
8391
  appearance: {}
8149
8392
  },
8150
8393
  {
@@ -8225,12 +8468,20 @@ var blocks = [
8225
8468
  ],
8226
8469
  defaultVariantKey: "imageOnTop"
8227
8470
  },
8228
- 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
+ },
8229
8479
  editorOptions: {
8230
8480
  onboarding: {
8231
8481
  helpText: "Use link block to create single or multiple links to places in or out of your documentation.",
8232
8482
  documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4"
8233
- }
8483
+ },
8484
+ newItemLabel: "Add shortcut"
8234
8485
  },
8235
8486
  appearance: {
8236
8487
  isBordered: true,
@@ -8260,12 +8511,21 @@ var blocks = [
8260
8511
  }
8261
8512
  }
8262
8513
  ],
8263
- appearance: { isBordered: true, hasBackground: false },
8514
+ appearance: {
8515
+ isBordered: true,
8516
+ hasBackground: false
8517
+ },
8264
8518
  variants: [
8265
8519
  {
8266
8520
  id: "default",
8267
8521
  name: "Default",
8268
- 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
+ },
8269
8529
  maxColumns: 1,
8270
8530
  defaultColumns: 1,
8271
8531
  appearance: {}
@@ -8273,7 +8533,13 @@ var blocks = [
8273
8533
  ],
8274
8534
  defaultVariantKey: "default"
8275
8535
  },
8276
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8536
+ behavior: {
8537
+ dataType: "Item",
8538
+ items: {
8539
+ numberOfItems: 1,
8540
+ allowLinks: false
8541
+ }
8542
+ },
8277
8543
  editorOptions: {
8278
8544
  onboarding: {
8279
8545
  helpText: "Embed a Figma canvas or prototype to your documentation.",
@@ -8300,15 +8566,28 @@ var blocks = [
8300
8566
  id: "embed",
8301
8567
  name: "Storybook URL",
8302
8568
  type: "Storybook",
8303
- options: { allowCaption: true, allowResize: true, defaultHeight: 400 }
8569
+ options: {
8570
+ allowCaption: true,
8571
+ allowResize: true,
8572
+ defaultHeight: 400
8573
+ }
8304
8574
  }
8305
8575
  ],
8306
- appearance: { isBordered: true, hasBackground: false },
8576
+ appearance: {
8577
+ isBordered: true,
8578
+ hasBackground: false
8579
+ },
8307
8580
  variants: [
8308
8581
  {
8309
8582
  id: "default",
8310
8583
  name: "Default",
8311
- 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
+ },
8312
8591
  maxColumns: 1,
8313
8592
  defaultColumns: 1,
8314
8593
  appearance: {}
@@ -8316,7 +8595,13 @@ var blocks = [
8316
8595
  ],
8317
8596
  defaultVariantKey: "default"
8318
8597
  },
8319
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8598
+ behavior: {
8599
+ dataType: "Item",
8600
+ items: {
8601
+ numberOfItems: 1,
8602
+ allowLinks: false
8603
+ }
8604
+ },
8320
8605
  editorOptions: {
8321
8606
  onboarding: {
8322
8607
  helpText: "Embed a Storybook story to your documentation.",
@@ -8351,12 +8636,21 @@ var blocks = [
8351
8636
  }
8352
8637
  }
8353
8638
  ],
8354
- appearance: { isBordered: true, hasBackground: false },
8639
+ appearance: {
8640
+ isBordered: true,
8641
+ hasBackground: false
8642
+ },
8355
8643
  variants: [
8356
8644
  {
8357
8645
  id: "default",
8358
8646
  name: "Default",
8359
- 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
+ },
8360
8654
  maxColumns: 1,
8361
8655
  defaultColumns: 1,
8362
8656
  appearance: {}
@@ -8364,7 +8658,13 @@ var blocks = [
8364
8658
  ],
8365
8659
  defaultVariantKey: "default"
8366
8660
  },
8367
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8661
+ behavior: {
8662
+ dataType: "Item",
8663
+ items: {
8664
+ numberOfItems: 1,
8665
+ allowLinks: false
8666
+ }
8667
+ },
8368
8668
  editorOptions: {
8369
8669
  onboarding: {
8370
8670
  helpText: "Embed a YouTube video to your documentation.",
@@ -8392,40 +8692,55 @@ var blocks = [
8392
8692
  name: "Lottie URL",
8393
8693
  type: "URL",
8394
8694
  description: "Add URL to your Lottie animation file. We support .json and .lottie file extensions.",
8395
- options: { urlValidationRegex: "^(http|https)://.*.(json|lottie)$" }
8695
+ options: {
8696
+ urlValidationRegex: "^(http|https)://.*.(json|lottie)$"
8697
+ }
8396
8698
  },
8397
8699
  {
8398
8700
  id: "height",
8399
8701
  name: "Height",
8400
8702
  type: "Number",
8401
- options: { defaultValue: 270 }
8703
+ options: {
8704
+ defaultValue: 270
8705
+ }
8402
8706
  },
8403
8707
  {
8404
8708
  id: "width",
8405
8709
  name: "Width",
8406
8710
  type: "Number",
8407
- options: { defaultValue: 400 }
8711
+ options: {
8712
+ defaultValue: 400
8713
+ }
8408
8714
  },
8409
8715
  {
8410
8716
  id: "autoplay",
8411
8717
  name: "Autoplay",
8412
8718
  type: "Boolean",
8413
- options: { defaultValue: true }
8719
+ options: {
8720
+ defaultValue: true
8721
+ }
8414
8722
  },
8415
8723
  {
8416
8724
  id: "loop",
8417
8725
  name: "Loop",
8418
8726
  type: "Boolean",
8419
- options: { defaultValue: true }
8727
+ options: {
8728
+ defaultValue: true
8729
+ }
8420
8730
  },
8421
8731
  {
8422
8732
  id: "playerControls",
8423
8733
  name: "Show player controls",
8424
8734
  type: "Boolean",
8425
- options: { defaultValue: true }
8735
+ options: {
8736
+ defaultValue: true
8737
+ }
8426
8738
  }
8427
8739
  ],
8428
- appearance: { isBordered: true, hasBackground: false },
8740
+ appearance: {
8741
+ isBordered: true,
8742
+ hasBackground: false
8743
+ },
8429
8744
  variants: [
8430
8745
  {
8431
8746
  id: "default",
@@ -8446,7 +8761,13 @@ var blocks = [
8446
8761
  ],
8447
8762
  defaultVariantKey: "default"
8448
8763
  },
8449
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8764
+ behavior: {
8765
+ dataType: "Item",
8766
+ items: {
8767
+ numberOfItems: 1,
8768
+ allowLinks: false
8769
+ }
8770
+ },
8450
8771
  editorOptions: {
8451
8772
  onboarding: {
8452
8773
  helpText: "Embed a Lottie animation to your documentation.",
@@ -8481,7 +8802,10 @@ var blocks = [
8481
8802
  }
8482
8803
  }
8483
8804
  ],
8484
- appearance: { isBordered: true, hasBackground: false },
8805
+ appearance: {
8806
+ isBordered: true,
8807
+ hasBackground: false
8808
+ },
8485
8809
  variants: [
8486
8810
  {
8487
8811
  id: "default",
@@ -8500,7 +8824,13 @@ var blocks = [
8500
8824
  ],
8501
8825
  defaultVariantKey: "default"
8502
8826
  },
8503
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8827
+ behavior: {
8828
+ dataType: "Item",
8829
+ items: {
8830
+ numberOfItems: 1,
8831
+ allowLinks: false
8832
+ }
8833
+ },
8504
8834
  editorOptions: {
8505
8835
  onboarding: {
8506
8836
  helpText: "Embed any page to your documentation as an iframe.",
@@ -8527,10 +8857,15 @@ var blocks = [
8527
8857
  id: "markdownUrl",
8528
8858
  name: "Markdown URL",
8529
8859
  type: "Markdown",
8530
- options: { urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$" }
8860
+ options: {
8861
+ urlValidationRegex: "^(https?://)?(www\\.)?.+\\.md(\\?.*)?$"
8862
+ }
8531
8863
  }
8532
8864
  ],
8533
- appearance: { isBordered: true, hasBackground: false },
8865
+ appearance: {
8866
+ isBordered: true,
8867
+ hasBackground: false
8868
+ },
8534
8869
  variants: [
8535
8870
  {
8536
8871
  id: "plain",
@@ -8580,7 +8915,13 @@ var blocks = [
8580
8915
  ],
8581
8916
  defaultVariantKey: "plain"
8582
8917
  },
8583
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8918
+ behavior: {
8919
+ dataType: "Item",
8920
+ items: {
8921
+ numberOfItems: 1,
8922
+ allowLinks: false
8923
+ }
8924
+ },
8584
8925
  editorOptions: {
8585
8926
  onboarding: {
8586
8927
  helpText: "Render any markdown file directly inside of your documentation.",
@@ -8602,13 +8943,29 @@ var blocks = [
8602
8943
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/table.svg",
8603
8944
  searchKeywords: ["grid", "data", "spreadsheet", "api"],
8604
8945
  item: {
8605
- properties: [{ id: "table", name: "Table", type: "Table", options: {} }],
8606
- 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
+ },
8607
8958
  variants: [
8608
8959
  {
8609
8960
  id: "default",
8610
8961
  name: "Default",
8611
- 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
+ },
8612
8969
  maxColumns: 1,
8613
8970
  defaultColumns: 1,
8614
8971
  appearance: {}
@@ -8616,7 +8973,13 @@ var blocks = [
8616
8973
  ],
8617
8974
  defaultVariantKey: "default"
8618
8975
  },
8619
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8976
+ behavior: {
8977
+ dataType: "Item",
8978
+ items: {
8979
+ numberOfItems: 1,
8980
+ allowLinks: false
8981
+ }
8982
+ },
8620
8983
  editorOptions: {
8621
8984
  onboarding: {
8622
8985
  helpText: "Use for displaying data in a tabular format.",
@@ -8653,17 +9016,34 @@ var blocks = [
8653
9016
  id: "tokens",
8654
9017
  name: "Tokens",
8655
9018
  type: "Token",
8656
- options: { renderLayoutAs: "List", defaultTheme: "none", defaultValuePreview: "Split" },
8657
- 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
+ }
8658
9029
  }
8659
9030
  ],
8660
- appearance: { isBordered: true, hasBackground: false },
9031
+ appearance: {
9032
+ isBordered: true,
9033
+ hasBackground: false
9034
+ },
8661
9035
  variants: [
8662
9036
  {
8663
9037
  id: "table",
8664
9038
  name: "Table",
8665
9039
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-table.svg",
8666
- 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
+ },
8667
9047
  maxColumns: 1,
8668
9048
  defaultColumns: 1,
8669
9049
  appearance: {}
@@ -8672,7 +9052,13 @@ var blocks = [
8672
9052
  id: "grid",
8673
9053
  name: "Grid",
8674
9054
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-grid.svg",
8675
- 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
+ },
8676
9062
  maxColumns: 4,
8677
9063
  defaultColumns: 1,
8678
9064
  appearance: {}
@@ -8680,7 +9066,13 @@ var blocks = [
8680
9066
  ],
8681
9067
  defaultVariantKey: "table"
8682
9068
  },
8683
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
9069
+ behavior: {
9070
+ dataType: "Token",
9071
+ entities: {
9072
+ selectionType: "EntityAndGroup",
9073
+ maxSelected: 0
9074
+ }
9075
+ },
8684
9076
  editorOptions: {
8685
9077
  onboarding: {
8686
9078
  helpText: "Show a group of design tokens. Automatically display all subgroups too.",
@@ -8707,26 +9099,50 @@ var blocks = [
8707
9099
  id: "tokens",
8708
9100
  name: "Tokens",
8709
9101
  type: "Token",
8710
- options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: true }
9102
+ options: {
9103
+ allowedTypes: ["Color"],
9104
+ allowPropertySelection: false,
9105
+ allowThemeSelection: true
9106
+ }
8711
9107
  }
8712
9108
  ],
8713
- appearance: { isBordered: true, hasBackground: false },
9109
+ appearance: {
9110
+ isBordered: true,
9111
+ hasBackground: false
9112
+ },
8714
9113
  variants: [
8715
9114
  {
8716
9115
  id: "default",
8717
9116
  name: "Default",
8718
9117
  image: "https://cdn-assets.supernova.io/blocks/variants/tokens-color-stack.svg",
8719
- 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
+ },
8720
9125
  maxColumns: 2,
8721
9126
  defaultColumns: 1,
8722
- appearance: { isEditorPresentationDifferent: true }
9127
+ appearance: {
9128
+ isEditorPresentationDifferent: true
9129
+ }
8723
9130
  }
8724
9131
  ],
8725
9132
  defaultVariantKey: "default"
8726
9133
  },
8727
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
9134
+ behavior: {
9135
+ dataType: "Token",
9136
+ entities: {
9137
+ selectionType: "EntityAndGroup",
9138
+ maxSelected: 0
9139
+ }
9140
+ },
8728
9141
  editorOptions: {
8729
- 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
+ }
8730
9146
  },
8731
9147
  appearance: {
8732
9148
  isBordered: true,
@@ -8748,25 +9164,46 @@ var blocks = [
8748
9164
  id: "tokens",
8749
9165
  name: "Tokens",
8750
9166
  type: "Token",
8751
- options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: false }
9167
+ options: {
9168
+ allowedTypes: ["Color"],
9169
+ allowPropertySelection: false,
9170
+ allowThemeSelection: false
9171
+ }
8752
9172
  }
8753
9173
  ],
8754
- appearance: { isBordered: true, hasBackground: false },
9174
+ appearance: {
9175
+ isBordered: true,
9176
+ hasBackground: false
9177
+ },
8755
9178
  variants: [
8756
9179
  {
8757
9180
  id: "default",
8758
9181
  name: "Default",
8759
9182
  image: "https://cdn-assets.supernova.io/blocks/variants/contrast-grid-large.svg",
8760
9183
  description: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
8761
- 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
+ },
8762
9191
  maxColumns: 1,
8763
9192
  defaultColumns: 1,
8764
- appearance: { isEditorPresentationDifferent: true }
9193
+ appearance: {
9194
+ isEditorPresentationDifferent: true
9195
+ }
8765
9196
  }
8766
9197
  ],
8767
9198
  defaultVariantKey: "default"
8768
9199
  },
8769
- behavior: { dataType: "Token", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
9200
+ behavior: {
9201
+ dataType: "Token",
9202
+ entities: {
9203
+ selectionType: "EntityAndGroup",
9204
+ maxSelected: 0
9205
+ }
9206
+ },
8770
9207
  editorOptions: {
8771
9208
  onboarding: {
8772
9209
  helpText: "Visualize accessibility of your colors by automatically calculating their color contrast ratio.",
@@ -8788,13 +9225,29 @@ var blocks = [
8788
9225
  icon: "https://cdn-assets.supernova.io/blocks/icons/code.svg",
8789
9226
  searchKeywords: ["code"],
8790
9227
  item: {
8791
- properties: [{ id: "code", name: "Code", type: "Code", options: {} }],
8792
- 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
+ },
8793
9240
  variants: [
8794
9241
  {
8795
9242
  id: "default",
8796
9243
  name: "Default",
8797
- 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
+ },
8798
9251
  maxColumns: 1,
8799
9252
  defaultColumns: 1,
8800
9253
  appearance: {}
@@ -8802,8 +9255,18 @@ var blocks = [
8802
9255
  ],
8803
9256
  defaultVariantKey: "default"
8804
9257
  },
8805
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
8806
- 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
+ },
8807
9270
  appearance: {
8808
9271
  isBordered: false,
8809
9272
  hasBackground: false,
@@ -8824,22 +9287,39 @@ var blocks = [
8824
9287
  id: "code",
8825
9288
  name: "Code",
8826
9289
  type: "CodeSandbox",
8827
- options: { renderLayoutAs: "PreviewOnTop" },
9290
+ options: {
9291
+ renderLayoutAs: "PreviewOnTop"
9292
+ },
8828
9293
  variantOptions: {
8829
- codeTop: { renderLayoutAs: "PreviewOnBottom" },
8830
- codeLeft: { renderLayoutAs: "PreviewOnRight" },
8831
- codeRight: { renderLayoutAs: "PreviewOnLeft" }
9294
+ codeTop: {
9295
+ renderLayoutAs: "PreviewOnBottom"
9296
+ },
9297
+ codeLeft: {
9298
+ renderLayoutAs: "PreviewOnRight"
9299
+ },
9300
+ codeRight: {
9301
+ renderLayoutAs: "PreviewOnLeft"
9302
+ }
8832
9303
  }
8833
9304
  }
8834
9305
  ],
8835
- appearance: { isBordered: true, hasBackground: false },
9306
+ appearance: {
9307
+ isBordered: true,
9308
+ hasBackground: false
9309
+ },
8836
9310
  variants: [
8837
9311
  {
8838
9312
  id: "codeBottom",
8839
9313
  name: "Full width, code bottom",
8840
9314
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-bottom.svg",
8841
9315
  description: "Full-width block of code, with a preview on top.",
8842
- 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
+ },
8843
9323
  maxColumns: 1,
8844
9324
  defaultColumns: 1,
8845
9325
  appearance: {}
@@ -8849,7 +9329,13 @@ var blocks = [
8849
9329
  name: "Full width, code top",
8850
9330
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-top.svg",
8851
9331
  description: "Full-width block of code, with a preview on bottom.",
8852
- 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
+ },
8853
9339
  maxColumns: 1,
8854
9340
  defaultColumns: 1,
8855
9341
  appearance: {}
@@ -8859,7 +9345,13 @@ var blocks = [
8859
9345
  name: "Side by side, code left",
8860
9346
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-left.svg",
8861
9347
  description: "Side-by-side preview and code, with code on the left.",
8862
- 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
+ },
8863
9355
  maxColumns: 1,
8864
9356
  defaultColumns: 1,
8865
9357
  appearance: {}
@@ -8869,7 +9361,13 @@ var blocks = [
8869
9361
  name: "Side by side, code right",
8870
9362
  image: "https://cdn-assets.supernova.io/blocks/variants/react-code-right.svg",
8871
9363
  description: "Side-by-side preview and code, with code on the right.",
8872
- 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
+ },
8873
9371
  maxColumns: 1,
8874
9372
  defaultColumns: 1,
8875
9373
  appearance: {}
@@ -8877,7 +9375,13 @@ var blocks = [
8877
9375
  ],
8878
9376
  defaultVariantKey: "codeBottom"
8879
9377
  },
8880
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9378
+ behavior: {
9379
+ dataType: "Item",
9380
+ items: {
9381
+ numberOfItems: 1,
9382
+ allowLinks: false
9383
+ }
9384
+ },
8881
9385
  editorOptions: {
8882
9386
  onboarding: {
8883
9387
  helpText: "Display rendered code example",
@@ -8899,15 +9403,31 @@ var blocks = [
8899
9403
  icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
8900
9404
  searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
8901
9405
  item: {
8902
- properties: [{ id: "assets", name: "Assets", type: "Asset", options: {} }],
8903
- 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
+ },
8904
9418
  variants: [
8905
9419
  {
8906
9420
  id: "default",
8907
9421
  name: "Simple grid",
8908
9422
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
8909
9423
  description: "A simple grid of assets. Both the title and description are displayed below the preview.",
8910
- 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
+ },
8911
9431
  maxColumns: 8,
8912
9432
  defaultColumns: 1,
8913
9433
  appearance: {}
@@ -8917,25 +9437,47 @@ var blocks = [
8917
9437
  name: "Square grid",
8918
9438
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
8919
9439
  description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
8920
- 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
+ },
8921
9447
  maxColumns: 8,
8922
9448
  defaultColumns: 1,
8923
- appearance: { isEditorPresentationDifferent: true }
9449
+ appearance: {
9450
+ isEditorPresentationDifferent: true
9451
+ }
8924
9452
  },
8925
9453
  {
8926
9454
  id: "borderless-grid",
8927
9455
  name: "Borderless grid",
8928
9456
  image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
8929
9457
  description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
8930
- 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
+ },
8931
9465
  maxColumns: 8,
8932
9466
  defaultColumns: 1,
8933
- appearance: { isEditorPresentationDifferent: true }
9467
+ appearance: {
9468
+ isEditorPresentationDifferent: true
9469
+ }
8934
9470
  }
8935
9471
  ],
8936
9472
  defaultVariantKey: "default"
8937
9473
  },
8938
- behavior: { dataType: "Asset", entities: { selectionType: "EntityAndGroup", maxSelected: 0 } },
9474
+ behavior: {
9475
+ dataType: "Asset",
9476
+ entities: {
9477
+ selectionType: "EntityAndGroup",
9478
+ maxSelected: 0
9479
+ }
9480
+ },
8939
9481
  editorOptions: {
8940
9482
  onboarding: {
8941
9483
  helpText: "Display a grid of icons or illustrations.",
@@ -8965,7 +9507,10 @@ var blocks = [
8965
9507
  options: {}
8966
9508
  }
8967
9509
  ],
8968
- appearance: { isBordered: true, hasBackground: false },
9510
+ appearance: {
9511
+ isBordered: true,
9512
+ hasBackground: false
9513
+ },
8969
9514
  variants: [
8970
9515
  {
8971
9516
  id: "bordered",
@@ -9002,7 +9547,13 @@ var blocks = [
9002
9547
  ],
9003
9548
  defaultVariantKey: "bordered"
9004
9549
  },
9005
- behavior: { dataType: "FigmaNode", entities: { selectionType: "Entity", maxSelected: 0 } },
9550
+ behavior: {
9551
+ dataType: "FigmaNode",
9552
+ entities: {
9553
+ selectionType: "Entity",
9554
+ maxSelected: 0
9555
+ }
9556
+ },
9006
9557
  editorOptions: {
9007
9558
  onboarding: {
9008
9559
  helpText: "Generate images from Figma layers",
@@ -9025,14 +9576,23 @@ var blocks = [
9025
9576
  searchKeywords: ["version", "changelog", "history"],
9026
9577
  item: {
9027
9578
  properties: [],
9028
- appearance: { isBordered: true, hasBackground: false },
9579
+ appearance: {
9580
+ isBordered: true,
9581
+ hasBackground: false
9582
+ },
9029
9583
  variants: [
9030
9584
  {
9031
9585
  id: "default",
9032
9586
  name: "Default",
9033
9587
  image: "https://cdn-assets.supernova.io/blocks/variants/release-notes-2.svg",
9034
9588
  description: "Show formatted release notes from all previously released versions.",
9035
- 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
+ },
9036
9596
  maxColumns: 1,
9037
9597
  defaultColumns: 1,
9038
9598
  appearance: {}
@@ -9040,7 +9600,13 @@ var blocks = [
9040
9600
  ],
9041
9601
  defaultVariantKey: "default"
9042
9602
  },
9043
- behavior: { dataType: "Item", items: { numberOfItems: 1, allowLinks: false } },
9603
+ behavior: {
9604
+ dataType: "Item",
9605
+ items: {
9606
+ numberOfItems: 1,
9607
+ allowLinks: false
9608
+ }
9609
+ },
9044
9610
  editorOptions: {
9045
9611
  onboarding: {
9046
9612
  helpText: "Show formatted release notes from all previously released versions."
@@ -9066,22 +9632,31 @@ var blocks = [
9066
9632
  id: "components",
9067
9633
  name: "Components",
9068
9634
  type: "Component",
9069
- options: { renderLayoutAs: "List" }
9635
+ options: {
9636
+ renderLayoutAs: "List"
9637
+ }
9070
9638
  },
9071
9639
  {
9072
9640
  id: "title",
9073
9641
  name: "Title",
9074
9642
  type: "Text",
9075
- options: { defaultValue: "Component checklist" }
9643
+ options: {
9644
+ defaultValue: "Component checklist"
9645
+ }
9076
9646
  },
9077
9647
  {
9078
9648
  id: "showDescription",
9079
9649
  name: "Show description",
9080
9650
  type: "Boolean",
9081
- options: { defaultValue: true }
9651
+ options: {
9652
+ defaultValue: true
9653
+ }
9082
9654
  }
9083
9655
  ],
9084
- appearance: { isBordered: true, hasBackground: false },
9656
+ appearance: {
9657
+ isBordered: true,
9658
+ hasBackground: false
9659
+ },
9085
9660
  variants: [
9086
9661
  {
9087
9662
  id: "default",
@@ -9096,12 +9671,20 @@ var blocks = [
9096
9671
  },
9097
9672
  maxColumns: 1,
9098
9673
  defaultColumns: 1,
9099
- appearance: { isEditorPresentationDifferent: true }
9674
+ appearance: {
9675
+ isEditorPresentationDifferent: true
9676
+ }
9100
9677
  }
9101
9678
  ],
9102
9679
  defaultVariantKey: "default"
9103
9680
  },
9104
- behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
9681
+ behavior: {
9682
+ dataType: "Component",
9683
+ entities: {
9684
+ selectionType: "Entity",
9685
+ maxSelected: 1
9686
+ }
9687
+ },
9105
9688
  editorOptions: {
9106
9689
  onboarding: {
9107
9690
  helpText: "Highlight specific component properties",
@@ -9128,16 +9711,23 @@ var blocks = [
9128
9711
  id: "components",
9129
9712
  name: "Components",
9130
9713
  type: "Component",
9131
- options: { renderLayoutAs: "Table" }
9714
+ options: {
9715
+ renderLayoutAs: "Table"
9716
+ }
9132
9717
  },
9133
9718
  {
9134
9719
  id: "showLastUpdatedColumn",
9135
9720
  name: "Show last updated column",
9136
9721
  type: "Boolean",
9137
- options: { defaultValue: true }
9722
+ options: {
9723
+ defaultValue: true
9724
+ }
9138
9725
  }
9139
9726
  ],
9140
- appearance: { isBordered: true, hasBackground: false },
9727
+ appearance: {
9728
+ isBordered: true,
9729
+ hasBackground: false
9730
+ },
9141
9731
  variants: [
9142
9732
  {
9143
9733
  id: "default",
@@ -9152,12 +9742,20 @@ var blocks = [
9152
9742
  },
9153
9743
  maxColumns: 1,
9154
9744
  defaultColumns: 1,
9155
- appearance: { isEditorPresentationDifferent: true }
9745
+ appearance: {
9746
+ isEditorPresentationDifferent: true
9747
+ }
9156
9748
  }
9157
9749
  ],
9158
9750
  defaultVariantKey: "default"
9159
9751
  },
9160
- behavior: { dataType: "Component", entities: { selectionType: "Group", maxSelected: 1 } },
9752
+ behavior: {
9753
+ dataType: "Component",
9754
+ entities: {
9755
+ selectionType: "Group",
9756
+ maxSelected: 1
9757
+ }
9758
+ },
9161
9759
  editorOptions: {
9162
9760
  onboarding: {
9163
9761
  helpText: "Show an overview of all your components",
@@ -9184,10 +9782,15 @@ var blocks = [
9184
9782
  id: "components",
9185
9783
  name: "Components",
9186
9784
  type: "Component",
9187
- options: { renderLayoutAs: "List" }
9785
+ options: {
9786
+ renderLayoutAs: "List"
9787
+ }
9188
9788
  }
9189
9789
  ],
9190
- appearance: { isBordered: true, hasBackground: false },
9790
+ appearance: {
9791
+ isBordered: true,
9792
+ hasBackground: false
9793
+ },
9191
9794
  variants: [
9192
9795
  {
9193
9796
  id: "default",
@@ -9202,12 +9805,20 @@ var blocks = [
9202
9805
  },
9203
9806
  maxColumns: 1,
9204
9807
  defaultColumns: 1,
9205
- appearance: { isEditorPresentationDifferent: true }
9808
+ appearance: {
9809
+ isEditorPresentationDifferent: true
9810
+ }
9206
9811
  }
9207
9812
  ],
9208
9813
  defaultVariantKey: "default"
9209
9814
  },
9210
- behavior: { dataType: "Component", entities: { selectionType: "Entity", maxSelected: 1 } },
9815
+ behavior: {
9816
+ dataType: "Component",
9817
+ entities: {
9818
+ selectionType: "Entity",
9819
+ maxSelected: 1
9820
+ }
9821
+ },
9211
9822
  editorOptions: {
9212
9823
  onboarding: {
9213
9824
  helpText: "Show component health and additional attributes",
@@ -9220,6 +9831,179 @@ var blocks = [
9220
9831
  isEditorPresentationDifferent: false,
9221
9832
  showBlockHeaderInEditor: false
9222
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
+ }
9223
10007
  }
9224
10008
  ];
9225
10009