@supernova-studio/client 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +1565 -418
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1558 -411
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/docs-editor/blocks-to-prosemirror.ts +5 -8
- package/src/docs-editor/mock.ts +2891 -384
- package/src/docs-editor/prosemirror-to-blocks.ts +4 -3
package/dist/index.js
CHANGED
|
@@ -556,11 +556,11 @@ var ShallowDesignElement = _zod.z.object({
|
|
|
556
556
|
brandPersistentId: _zod.z.string().optional(),
|
|
557
557
|
parentPersistentId: _zod.z.string().optional(),
|
|
558
558
|
shortPersistentId: _zod.z.string().optional(),
|
|
559
|
+
childType: DesignElementType.optional(),
|
|
559
560
|
sortOrder: _zod.z.number()
|
|
560
561
|
});
|
|
561
562
|
var DesignElement = ShallowDesignElement.extend({
|
|
562
563
|
meta: ObjectMeta,
|
|
563
|
-
childType: DesignElementType.optional(),
|
|
564
564
|
slug: _zod.z.string().optional(),
|
|
565
565
|
userSlug: _zod.z.string().optional(),
|
|
566
566
|
createdAt: _zod.z.date(),
|
|
@@ -569,6 +569,9 @@ var DesignElement = ShallowDesignElement.extend({
|
|
|
569
569
|
data: _zod.z.record(_zod.z.any()),
|
|
570
570
|
origin: _zod.z.record(_zod.z.any()).optional()
|
|
571
571
|
});
|
|
572
|
+
var HierarchicalElements = DesignTokenType.or(
|
|
573
|
+
_zod.z.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
|
|
574
|
+
);
|
|
572
575
|
var ElementPropertyType = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
573
576
|
var ElementPropertyTargetType = _zod.z.enum(["Token", "Component", "DocumentationPage"]);
|
|
574
577
|
var ElementPropertyLinkType = _zod.z.enum(["FigmaComponent", "DocumentationPage"]);
|
|
@@ -781,6 +784,11 @@ var PageBlockCustomBlockPropertyValue = _zod.z.object({
|
|
|
781
784
|
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
782
785
|
});
|
|
783
786
|
var PageBlockFigmaFrameProperties = _zod.z.object({
|
|
787
|
+
color: nullishToOptional(
|
|
788
|
+
_zod.z.object({
|
|
789
|
+
value: _zod.z.string()
|
|
790
|
+
})
|
|
791
|
+
),
|
|
784
792
|
alignment: PageBlockTilesAlignment,
|
|
785
793
|
layout: PageBlockTilesLayout,
|
|
786
794
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
@@ -875,6 +883,7 @@ var PageBlockLinkType = _zod.z.enum(["DocumentationItem", "PageHeading", "Url"])
|
|
|
875
883
|
var PageBlockImageType = _zod.z.enum(["Upload", "Asset", "FigmaFrame"]);
|
|
876
884
|
var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
|
|
877
885
|
var PageBlockTableCellAlignment = _zod.z.enum(["Left", "Center", "Right"]);
|
|
886
|
+
var PageBlockPreviewContainerSize = _zod.z.enum(["Centered", "NaturalHeight"]);
|
|
878
887
|
var PageBlockAppearanceV2 = _zod.z.object({
|
|
879
888
|
itemBackgroundColor: ColorValue.optional(),
|
|
880
889
|
numberOfColumns: _zod.z.number().optional()
|
|
@@ -908,18 +917,27 @@ var PageBlockItemImageReference = _zod.z.object({
|
|
|
908
917
|
size: Size.optional(),
|
|
909
918
|
figmaFile: _zod.z.object({
|
|
910
919
|
sourceId: _zod.z.string(),
|
|
911
|
-
frameId: _zod.z.string()
|
|
920
|
+
frameId: _zod.z.string(),
|
|
921
|
+
frameReferenceId: _zod.z.string(),
|
|
922
|
+
origin: _zod.z.object({
|
|
923
|
+
title: _zod.z.string().optional(),
|
|
924
|
+
sourceFileName: _zod.z.string().optional()
|
|
925
|
+
})
|
|
912
926
|
}).optional()
|
|
913
927
|
});
|
|
914
928
|
var PageBlockItemAssetValue = _zod.z.object({
|
|
915
929
|
selectedPropertyIds: _zod.z.array(_zod.z.string()).optional(),
|
|
916
930
|
showSearch: _zod.z.boolean().optional(),
|
|
917
|
-
previewContainerSize:
|
|
931
|
+
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
918
932
|
backgroundColor: _zod.z.string().optional(),
|
|
919
933
|
value: _zod.z.array(
|
|
920
934
|
_zod.z.object({
|
|
921
935
|
entityId: _zod.z.string(),
|
|
922
|
-
entityType: _zod.z.enum(["Asset", "AssetGroup"])
|
|
936
|
+
entityType: _zod.z.enum(["Asset", "AssetGroup"]),
|
|
937
|
+
entityMeta: _zod.z.object({
|
|
938
|
+
title: _zod.z.string().optional(),
|
|
939
|
+
description: _zod.z.string().optional()
|
|
940
|
+
}).optional()
|
|
923
941
|
})
|
|
924
942
|
)
|
|
925
943
|
});
|
|
@@ -1025,11 +1043,12 @@ var PageBlockItemTableMultiRichTextNode = _zod.z.object({
|
|
|
1025
1043
|
});
|
|
1026
1044
|
var PageBlockItemTableImageNode = _zod.z.object({
|
|
1027
1045
|
type: _zod.z.literal("Image"),
|
|
1046
|
+
caption: PageBlockItemImageValue.shape.caption,
|
|
1028
1047
|
value: PageBlockItemImageValue.shape.value
|
|
1029
1048
|
});
|
|
1030
1049
|
var PageBlockItemTableNode = _zod.z.discriminatedUnion("type", [
|
|
1031
1050
|
PageBlockItemTableRichTextNode,
|
|
1032
|
-
PageBlockItemTableMultiRichTextNode,
|
|
1051
|
+
// PageBlockItemTableMultiRichTextNode,
|
|
1033
1052
|
PageBlockItemTableImageNode
|
|
1034
1053
|
]);
|
|
1035
1054
|
var PageBlockItemTableCell = _zod.z.object({
|
|
@@ -4286,10 +4305,6 @@ function serializeTableNode(node) {
|
|
|
4286
4305
|
src: _optionalChain([node, 'access', _6 => _6.value, 'optionalAccess', _7 => _7.url])
|
|
4287
4306
|
}
|
|
4288
4307
|
};
|
|
4289
|
-
case "MultiRichText":
|
|
4290
|
-
return {
|
|
4291
|
-
type: "paragraph"
|
|
4292
|
-
};
|
|
4293
4308
|
}
|
|
4294
4309
|
}
|
|
4295
4310
|
function serializeAsEmbed(input, embedType) {
|
|
@@ -4320,7 +4335,7 @@ function serializeEmbedType(blockDefinitionId) {
|
|
|
4320
4335
|
}
|
|
4321
4336
|
function serializeAsDivider(input) {
|
|
4322
4337
|
return {
|
|
4323
|
-
type: "
|
|
4338
|
+
type: "horizontalRule",
|
|
4324
4339
|
attrs: serializeBlockNodeAttributes(input)
|
|
4325
4340
|
};
|
|
4326
4341
|
}
|
|
@@ -4429,6 +4444,7 @@ function serializeAsCustomBlock(block, definition) {
|
|
|
4429
4444
|
linksTo: i.linksTo
|
|
4430
4445
|
};
|
|
4431
4446
|
});
|
|
4447
|
+
const columns = _optionalChain([block, 'access', _10 => _10.data, 'access', _11 => _11.appearance, 'optionalAccess', _12 => _12.numberOfColumns]);
|
|
4432
4448
|
return {
|
|
4433
4449
|
type: "blockNode",
|
|
4434
4450
|
attrs: {
|
|
@@ -4436,7 +4452,7 @@ function serializeAsCustomBlock(block, definition) {
|
|
|
4436
4452
|
definitionId: block.data.packageId,
|
|
4437
4453
|
variantId: block.data.variantId,
|
|
4438
4454
|
items: JSON.stringify(items),
|
|
4439
|
-
|
|
4455
|
+
...columns && { columns }
|
|
4440
4456
|
}
|
|
4441
4457
|
};
|
|
4442
4458
|
}
|
|
@@ -4461,34 +4477,44 @@ var blocks = [
|
|
|
4461
4477
|
id: "text",
|
|
4462
4478
|
name: "Text",
|
|
4463
4479
|
type: "RichText",
|
|
4464
|
-
description: void 0,
|
|
4465
4480
|
options: {
|
|
4466
4481
|
placeholder: "Start writing with plain text",
|
|
4467
4482
|
richTextStyle: "Default"
|
|
4468
|
-
}
|
|
4469
|
-
variantOptions: void 0
|
|
4483
|
+
}
|
|
4470
4484
|
}
|
|
4471
4485
|
],
|
|
4472
|
-
appearance: {
|
|
4486
|
+
appearance: {
|
|
4487
|
+
isBordered: false,
|
|
4488
|
+
hasBackground: false
|
|
4489
|
+
},
|
|
4473
4490
|
variants: [
|
|
4474
4491
|
{
|
|
4475
4492
|
id: "default",
|
|
4476
4493
|
name: "Default",
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4494
|
+
layout: {
|
|
4495
|
+
type: "Column",
|
|
4496
|
+
children: ["text"],
|
|
4497
|
+
columnAlign: "Start",
|
|
4498
|
+
columnResizing: "Fill",
|
|
4499
|
+
gap: "Medium"
|
|
4500
|
+
},
|
|
4481
4501
|
maxColumns: 1,
|
|
4482
4502
|
defaultColumns: 1,
|
|
4483
|
-
appearance: {
|
|
4503
|
+
appearance: {
|
|
4504
|
+
isBordered: false,
|
|
4505
|
+
hasBackground: false,
|
|
4506
|
+
isEditorPresentationDifferent: false
|
|
4507
|
+
}
|
|
4484
4508
|
}
|
|
4485
4509
|
],
|
|
4486
4510
|
defaultVariantKey: "default"
|
|
4487
4511
|
},
|
|
4488
4512
|
behavior: {
|
|
4489
4513
|
dataType: "Item",
|
|
4490
|
-
items: {
|
|
4491
|
-
|
|
4514
|
+
items: {
|
|
4515
|
+
numberOfItems: 1,
|
|
4516
|
+
allowLinks: false
|
|
4517
|
+
}
|
|
4492
4518
|
},
|
|
4493
4519
|
editorOptions: {
|
|
4494
4520
|
onboarding: {
|
|
@@ -4496,7 +4522,10 @@ var blocks = [
|
|
|
4496
4522
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/text-HxZ9ssJR"
|
|
4497
4523
|
}
|
|
4498
4524
|
},
|
|
4499
|
-
appearance: {
|
|
4525
|
+
appearance: {
|
|
4526
|
+
isBordered: false,
|
|
4527
|
+
hasBackground: false
|
|
4528
|
+
}
|
|
4500
4529
|
},
|
|
4501
4530
|
{
|
|
4502
4531
|
id: "io.supernova.block.title1",
|
|
@@ -4510,27 +4539,44 @@ var blocks = [
|
|
|
4510
4539
|
id: "text",
|
|
4511
4540
|
name: "Text",
|
|
4512
4541
|
type: "RichText",
|
|
4513
|
-
options: {
|
|
4542
|
+
options: {
|
|
4543
|
+
placeholder: "Title 1",
|
|
4544
|
+
richTextStyle: "Title1"
|
|
4545
|
+
}
|
|
4514
4546
|
}
|
|
4515
4547
|
],
|
|
4516
|
-
appearance: {
|
|
4548
|
+
appearance: {
|
|
4549
|
+
isBordered: false,
|
|
4550
|
+
hasBackground: false
|
|
4551
|
+
},
|
|
4517
4552
|
variants: [
|
|
4518
4553
|
{
|
|
4519
4554
|
id: "default",
|
|
4520
4555
|
name: "Default",
|
|
4521
|
-
|
|
4522
|
-
|
|
4556
|
+
layout: {
|
|
4557
|
+
type: "Column",
|
|
4558
|
+
children: ["text"],
|
|
4559
|
+
columnAlign: "Start",
|
|
4560
|
+
columnResizing: "Fill",
|
|
4561
|
+
gap: "Medium"
|
|
4562
|
+
},
|
|
4523
4563
|
maxColumns: 1,
|
|
4524
4564
|
defaultColumns: 1,
|
|
4525
|
-
appearance: {
|
|
4565
|
+
appearance: {
|
|
4566
|
+
isBordered: false,
|
|
4567
|
+
hasBackground: false,
|
|
4568
|
+
isEditorPresentationDifferent: false
|
|
4569
|
+
}
|
|
4526
4570
|
}
|
|
4527
4571
|
],
|
|
4528
4572
|
defaultVariantKey: "default"
|
|
4529
4573
|
},
|
|
4530
4574
|
behavior: {
|
|
4531
4575
|
dataType: "Item",
|
|
4532
|
-
items: {
|
|
4533
|
-
|
|
4576
|
+
items: {
|
|
4577
|
+
numberOfItems: 1,
|
|
4578
|
+
allowLinks: false
|
|
4579
|
+
}
|
|
4534
4580
|
},
|
|
4535
4581
|
editorOptions: {
|
|
4536
4582
|
onboarding: {
|
|
@@ -4538,15 +4584,16 @@ var blocks = [
|
|
|
4538
4584
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4539
4585
|
}
|
|
4540
4586
|
},
|
|
4541
|
-
appearance: {
|
|
4587
|
+
appearance: {
|
|
4588
|
+
isBordered: false,
|
|
4589
|
+
hasBackground: false
|
|
4590
|
+
}
|
|
4542
4591
|
},
|
|
4543
4592
|
{
|
|
4544
4593
|
id: "io.supernova.block.title2",
|
|
4545
4594
|
name: "Title 2",
|
|
4546
4595
|
description: "Section subheadings",
|
|
4547
4596
|
category: "Text",
|
|
4548
|
-
icon: void 0,
|
|
4549
|
-
documentationLink: void 0,
|
|
4550
4597
|
searchKeywords: ["heading"],
|
|
4551
4598
|
item: {
|
|
4552
4599
|
properties: [
|
|
@@ -4554,31 +4601,44 @@ var blocks = [
|
|
|
4554
4601
|
id: "text",
|
|
4555
4602
|
name: "Text",
|
|
4556
4603
|
type: "RichText",
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4604
|
+
options: {
|
|
4605
|
+
placeholder: "Title 2",
|
|
4606
|
+
richTextStyle: "Title2"
|
|
4607
|
+
}
|
|
4560
4608
|
}
|
|
4561
4609
|
],
|
|
4562
|
-
appearance: {
|
|
4610
|
+
appearance: {
|
|
4611
|
+
isBordered: false,
|
|
4612
|
+
hasBackground: false
|
|
4613
|
+
},
|
|
4563
4614
|
variants: [
|
|
4564
4615
|
{
|
|
4565
4616
|
id: "default",
|
|
4566
4617
|
name: "Default",
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4618
|
+
layout: {
|
|
4619
|
+
type: "Column",
|
|
4620
|
+
children: ["text"],
|
|
4621
|
+
columnAlign: "Start",
|
|
4622
|
+
columnResizing: "Fill",
|
|
4623
|
+
gap: "Medium"
|
|
4624
|
+
},
|
|
4571
4625
|
maxColumns: 1,
|
|
4572
4626
|
defaultColumns: 1,
|
|
4573
|
-
appearance: {
|
|
4627
|
+
appearance: {
|
|
4628
|
+
isBordered: false,
|
|
4629
|
+
hasBackground: false,
|
|
4630
|
+
isEditorPresentationDifferent: false
|
|
4631
|
+
}
|
|
4574
4632
|
}
|
|
4575
4633
|
],
|
|
4576
4634
|
defaultVariantKey: "default"
|
|
4577
4635
|
},
|
|
4578
4636
|
behavior: {
|
|
4579
4637
|
dataType: "Item",
|
|
4580
|
-
items: {
|
|
4581
|
-
|
|
4638
|
+
items: {
|
|
4639
|
+
numberOfItems: 1,
|
|
4640
|
+
allowLinks: false
|
|
4641
|
+
}
|
|
4582
4642
|
},
|
|
4583
4643
|
editorOptions: {
|
|
4584
4644
|
onboarding: {
|
|
@@ -4586,15 +4646,16 @@ var blocks = [
|
|
|
4586
4646
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4587
4647
|
}
|
|
4588
4648
|
},
|
|
4589
|
-
appearance: {
|
|
4649
|
+
appearance: {
|
|
4650
|
+
isBordered: false,
|
|
4651
|
+
hasBackground: false
|
|
4652
|
+
}
|
|
4590
4653
|
},
|
|
4591
4654
|
{
|
|
4592
4655
|
id: "io.supernova.block.title3",
|
|
4593
4656
|
name: "Title 3",
|
|
4594
4657
|
description: "Further subsections",
|
|
4595
4658
|
category: "Text",
|
|
4596
|
-
icon: void 0,
|
|
4597
|
-
documentationLink: void 0,
|
|
4598
4659
|
searchKeywords: ["heading"],
|
|
4599
4660
|
item: {
|
|
4600
4661
|
properties: [
|
|
@@ -4602,31 +4663,44 @@ var blocks = [
|
|
|
4602
4663
|
id: "text",
|
|
4603
4664
|
name: "Text",
|
|
4604
4665
|
type: "RichText",
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4666
|
+
options: {
|
|
4667
|
+
placeholder: "Title 3",
|
|
4668
|
+
richTextStyle: "Title3"
|
|
4669
|
+
}
|
|
4608
4670
|
}
|
|
4609
4671
|
],
|
|
4610
|
-
appearance: {
|
|
4672
|
+
appearance: {
|
|
4673
|
+
isBordered: false,
|
|
4674
|
+
hasBackground: false
|
|
4675
|
+
},
|
|
4611
4676
|
variants: [
|
|
4612
4677
|
{
|
|
4613
4678
|
id: "default",
|
|
4614
4679
|
name: "Default",
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4680
|
+
layout: {
|
|
4681
|
+
type: "Column",
|
|
4682
|
+
children: ["text"],
|
|
4683
|
+
columnAlign: "Start",
|
|
4684
|
+
columnResizing: "Fill",
|
|
4685
|
+
gap: "Medium"
|
|
4686
|
+
},
|
|
4619
4687
|
maxColumns: 1,
|
|
4620
4688
|
defaultColumns: 1,
|
|
4621
|
-
appearance: {
|
|
4689
|
+
appearance: {
|
|
4690
|
+
isBordered: false,
|
|
4691
|
+
hasBackground: false,
|
|
4692
|
+
isEditorPresentationDifferent: false
|
|
4693
|
+
}
|
|
4622
4694
|
}
|
|
4623
4695
|
],
|
|
4624
4696
|
defaultVariantKey: "default"
|
|
4625
4697
|
},
|
|
4626
4698
|
behavior: {
|
|
4627
4699
|
dataType: "Item",
|
|
4628
|
-
items: {
|
|
4629
|
-
|
|
4700
|
+
items: {
|
|
4701
|
+
numberOfItems: 1,
|
|
4702
|
+
allowLinks: false
|
|
4703
|
+
}
|
|
4630
4704
|
},
|
|
4631
4705
|
editorOptions: {
|
|
4632
4706
|
onboarding: {
|
|
@@ -4634,15 +4708,16 @@ var blocks = [
|
|
|
4634
4708
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4635
4709
|
}
|
|
4636
4710
|
},
|
|
4637
|
-
appearance: {
|
|
4711
|
+
appearance: {
|
|
4712
|
+
isBordered: false,
|
|
4713
|
+
hasBackground: false
|
|
4714
|
+
}
|
|
4638
4715
|
},
|
|
4639
4716
|
{
|
|
4640
4717
|
id: "io.supernova.block.title4",
|
|
4641
4718
|
name: "Title 4",
|
|
4642
4719
|
description: "Details in subsections",
|
|
4643
4720
|
category: "Text",
|
|
4644
|
-
icon: void 0,
|
|
4645
|
-
documentationLink: void 0,
|
|
4646
4721
|
searchKeywords: ["heading"],
|
|
4647
4722
|
item: {
|
|
4648
4723
|
properties: [
|
|
@@ -4650,31 +4725,44 @@ var blocks = [
|
|
|
4650
4725
|
id: "text",
|
|
4651
4726
|
name: "Text",
|
|
4652
4727
|
type: "RichText",
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4728
|
+
options: {
|
|
4729
|
+
placeholder: "Title 4",
|
|
4730
|
+
richTextStyle: "Title4"
|
|
4731
|
+
}
|
|
4656
4732
|
}
|
|
4657
4733
|
],
|
|
4658
|
-
appearance: {
|
|
4734
|
+
appearance: {
|
|
4735
|
+
isBordered: false,
|
|
4736
|
+
hasBackground: false
|
|
4737
|
+
},
|
|
4659
4738
|
variants: [
|
|
4660
4739
|
{
|
|
4661
4740
|
id: "default",
|
|
4662
4741
|
name: "Default",
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4742
|
+
layout: {
|
|
4743
|
+
type: "Column",
|
|
4744
|
+
children: ["text"],
|
|
4745
|
+
columnAlign: "Start",
|
|
4746
|
+
columnResizing: "Fill",
|
|
4747
|
+
gap: "Medium"
|
|
4748
|
+
},
|
|
4667
4749
|
maxColumns: 1,
|
|
4668
4750
|
defaultColumns: 1,
|
|
4669
|
-
appearance: {
|
|
4751
|
+
appearance: {
|
|
4752
|
+
isBordered: false,
|
|
4753
|
+
hasBackground: false,
|
|
4754
|
+
isEditorPresentationDifferent: false
|
|
4755
|
+
}
|
|
4670
4756
|
}
|
|
4671
4757
|
],
|
|
4672
4758
|
defaultVariantKey: "default"
|
|
4673
4759
|
},
|
|
4674
4760
|
behavior: {
|
|
4675
4761
|
dataType: "Item",
|
|
4676
|
-
items: {
|
|
4677
|
-
|
|
4762
|
+
items: {
|
|
4763
|
+
numberOfItems: 1,
|
|
4764
|
+
allowLinks: false
|
|
4765
|
+
}
|
|
4678
4766
|
},
|
|
4679
4767
|
editorOptions: {
|
|
4680
4768
|
onboarding: {
|
|
@@ -4682,15 +4770,16 @@ var blocks = [
|
|
|
4682
4770
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4683
4771
|
}
|
|
4684
4772
|
},
|
|
4685
|
-
appearance: {
|
|
4773
|
+
appearance: {
|
|
4774
|
+
isBordered: false,
|
|
4775
|
+
hasBackground: false
|
|
4776
|
+
}
|
|
4686
4777
|
},
|
|
4687
4778
|
{
|
|
4688
4779
|
id: "io.supernova.block.title5",
|
|
4689
4780
|
name: "Title 5",
|
|
4690
4781
|
description: "Nuanced details or sub-points",
|
|
4691
4782
|
category: "Text",
|
|
4692
|
-
icon: void 0,
|
|
4693
|
-
documentationLink: void 0,
|
|
4694
4783
|
searchKeywords: ["heading"],
|
|
4695
4784
|
item: {
|
|
4696
4785
|
properties: [
|
|
@@ -4698,31 +4787,44 @@ var blocks = [
|
|
|
4698
4787
|
id: "text",
|
|
4699
4788
|
name: "Text",
|
|
4700
4789
|
type: "RichText",
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4790
|
+
options: {
|
|
4791
|
+
placeholder: "Title 5",
|
|
4792
|
+
richTextStyle: "Title5"
|
|
4793
|
+
}
|
|
4704
4794
|
}
|
|
4705
4795
|
],
|
|
4706
|
-
appearance: {
|
|
4796
|
+
appearance: {
|
|
4797
|
+
isBordered: false,
|
|
4798
|
+
hasBackground: false
|
|
4799
|
+
},
|
|
4707
4800
|
variants: [
|
|
4708
4801
|
{
|
|
4709
4802
|
id: "default",
|
|
4710
4803
|
name: "Default",
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4804
|
+
layout: {
|
|
4805
|
+
type: "Column",
|
|
4806
|
+
children: ["text"],
|
|
4807
|
+
columnAlign: "Start",
|
|
4808
|
+
columnResizing: "Fill",
|
|
4809
|
+
gap: "Medium"
|
|
4810
|
+
},
|
|
4715
4811
|
maxColumns: 1,
|
|
4716
4812
|
defaultColumns: 1,
|
|
4717
|
-
appearance: {
|
|
4813
|
+
appearance: {
|
|
4814
|
+
isBordered: false,
|
|
4815
|
+
hasBackground: false,
|
|
4816
|
+
isEditorPresentationDifferent: false
|
|
4817
|
+
}
|
|
4718
4818
|
}
|
|
4719
4819
|
],
|
|
4720
4820
|
defaultVariantKey: "default"
|
|
4721
4821
|
},
|
|
4722
4822
|
behavior: {
|
|
4723
4823
|
dataType: "Item",
|
|
4724
|
-
items: {
|
|
4725
|
-
|
|
4824
|
+
items: {
|
|
4825
|
+
numberOfItems: 1,
|
|
4826
|
+
allowLinks: false
|
|
4827
|
+
}
|
|
4726
4828
|
},
|
|
4727
4829
|
editorOptions: {
|
|
4728
4830
|
onboarding: {
|
|
@@ -4730,47 +4832,60 @@ var blocks = [
|
|
|
4730
4832
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4731
4833
|
}
|
|
4732
4834
|
},
|
|
4733
|
-
appearance: {
|
|
4835
|
+
appearance: {
|
|
4836
|
+
isBordered: false,
|
|
4837
|
+
hasBackground: false
|
|
4838
|
+
}
|
|
4734
4839
|
},
|
|
4735
4840
|
{
|
|
4736
4841
|
id: "io.supernova.block.ordered-list",
|
|
4737
4842
|
name: "Ordered list",
|
|
4738
4843
|
description: "A list with numbers",
|
|
4739
4844
|
category: "Text",
|
|
4740
|
-
icon: void 0,
|
|
4741
|
-
documentationLink: void 0,
|
|
4742
4845
|
searchKeywords: ["ol"],
|
|
4743
4846
|
item: {
|
|
4744
4847
|
properties: [
|
|
4745
4848
|
{
|
|
4746
4849
|
id: "text",
|
|
4747
4850
|
name: "Text",
|
|
4748
|
-
type: "
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4851
|
+
type: "RichText",
|
|
4852
|
+
options: {
|
|
4853
|
+
multiRichTextStyle: "OL"
|
|
4854
|
+
}
|
|
4752
4855
|
}
|
|
4753
4856
|
],
|
|
4754
|
-
appearance: {
|
|
4857
|
+
appearance: {
|
|
4858
|
+
isBordered: false,
|
|
4859
|
+
hasBackground: false
|
|
4860
|
+
},
|
|
4755
4861
|
variants: [
|
|
4756
4862
|
{
|
|
4757
4863
|
id: "default",
|
|
4758
4864
|
name: "Default",
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4865
|
+
layout: {
|
|
4866
|
+
type: "Column",
|
|
4867
|
+
children: ["text"],
|
|
4868
|
+
columnAlign: "Start",
|
|
4869
|
+
columnResizing: "Fill",
|
|
4870
|
+
gap: "Medium"
|
|
4871
|
+
},
|
|
4763
4872
|
maxColumns: 1,
|
|
4764
4873
|
defaultColumns: 1,
|
|
4765
|
-
appearance: {
|
|
4874
|
+
appearance: {
|
|
4875
|
+
isBordered: false,
|
|
4876
|
+
hasBackground: false,
|
|
4877
|
+
isEditorPresentationDifferent: false
|
|
4878
|
+
}
|
|
4766
4879
|
}
|
|
4767
4880
|
],
|
|
4768
4881
|
defaultVariantKey: "default"
|
|
4769
4882
|
},
|
|
4770
4883
|
behavior: {
|
|
4771
4884
|
dataType: "Item",
|
|
4772
|
-
items: {
|
|
4773
|
-
|
|
4885
|
+
items: {
|
|
4886
|
+
numberOfItems: 1,
|
|
4887
|
+
allowLinks: false
|
|
4888
|
+
}
|
|
4774
4889
|
},
|
|
4775
4890
|
editorOptions: {
|
|
4776
4891
|
onboarding: {
|
|
@@ -4778,47 +4893,60 @@ var blocks = [
|
|
|
4778
4893
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK"
|
|
4779
4894
|
}
|
|
4780
4895
|
},
|
|
4781
|
-
appearance: {
|
|
4896
|
+
appearance: {
|
|
4897
|
+
isBordered: false,
|
|
4898
|
+
hasBackground: false
|
|
4899
|
+
}
|
|
4782
4900
|
},
|
|
4783
4901
|
{
|
|
4784
4902
|
id: "io.supernova.block.unordered-list",
|
|
4785
4903
|
name: "Unordered list",
|
|
4786
4904
|
description: "A list with bullet points",
|
|
4787
4905
|
category: "Text",
|
|
4788
|
-
icon: void 0,
|
|
4789
|
-
documentationLink: void 0,
|
|
4790
4906
|
searchKeywords: ["ul"],
|
|
4791
4907
|
item: {
|
|
4792
4908
|
properties: [
|
|
4793
4909
|
{
|
|
4794
4910
|
id: "text",
|
|
4795
4911
|
name: "Text",
|
|
4796
|
-
type: "
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4912
|
+
type: "RichText",
|
|
4913
|
+
options: {
|
|
4914
|
+
multiRichTextStyle: "UL"
|
|
4915
|
+
}
|
|
4800
4916
|
}
|
|
4801
4917
|
],
|
|
4802
|
-
appearance: {
|
|
4918
|
+
appearance: {
|
|
4919
|
+
isBordered: false,
|
|
4920
|
+
hasBackground: false
|
|
4921
|
+
},
|
|
4803
4922
|
variants: [
|
|
4804
4923
|
{
|
|
4805
4924
|
id: "default",
|
|
4806
4925
|
name: "Default",
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4926
|
+
layout: {
|
|
4927
|
+
type: "Column",
|
|
4928
|
+
children: ["text"],
|
|
4929
|
+
columnAlign: "Start",
|
|
4930
|
+
columnResizing: "Fill",
|
|
4931
|
+
gap: "Medium"
|
|
4932
|
+
},
|
|
4811
4933
|
maxColumns: 1,
|
|
4812
4934
|
defaultColumns: 1,
|
|
4813
|
-
appearance: {
|
|
4935
|
+
appearance: {
|
|
4936
|
+
isBordered: false,
|
|
4937
|
+
hasBackground: false,
|
|
4938
|
+
isEditorPresentationDifferent: false
|
|
4939
|
+
}
|
|
4814
4940
|
}
|
|
4815
4941
|
],
|
|
4816
4942
|
defaultVariantKey: "default"
|
|
4817
4943
|
},
|
|
4818
4944
|
behavior: {
|
|
4819
4945
|
dataType: "Item",
|
|
4820
|
-
items: {
|
|
4821
|
-
|
|
4946
|
+
items: {
|
|
4947
|
+
numberOfItems: 1,
|
|
4948
|
+
allowLinks: false
|
|
4949
|
+
}
|
|
4822
4950
|
},
|
|
4823
4951
|
editorOptions: {
|
|
4824
4952
|
onboarding: {
|
|
@@ -4826,15 +4954,16 @@ var blocks = [
|
|
|
4826
4954
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK"
|
|
4827
4955
|
}
|
|
4828
4956
|
},
|
|
4829
|
-
appearance: {
|
|
4957
|
+
appearance: {
|
|
4958
|
+
isBordered: false,
|
|
4959
|
+
hasBackground: false
|
|
4960
|
+
}
|
|
4830
4961
|
},
|
|
4831
4962
|
{
|
|
4832
4963
|
id: "io.supernova.block.divider",
|
|
4833
4964
|
name: "Divider",
|
|
4834
4965
|
description: "A section divider",
|
|
4835
4966
|
category: "Layout",
|
|
4836
|
-
icon: void 0,
|
|
4837
|
-
documentationLink: void 0,
|
|
4838
4967
|
searchKeywords: ["hr", "line", "rule", "separator"],
|
|
4839
4968
|
item: {
|
|
4840
4969
|
properties: [
|
|
@@ -4842,31 +4971,41 @@ var blocks = [
|
|
|
4842
4971
|
id: "divider",
|
|
4843
4972
|
name: "Divider",
|
|
4844
4973
|
type: "Divider",
|
|
4845
|
-
|
|
4846
|
-
options: {},
|
|
4847
|
-
variantOptions: void 0
|
|
4974
|
+
options: {}
|
|
4848
4975
|
}
|
|
4849
4976
|
],
|
|
4850
|
-
appearance: {
|
|
4977
|
+
appearance: {
|
|
4978
|
+
isBordered: false,
|
|
4979
|
+
hasBackground: false
|
|
4980
|
+
},
|
|
4851
4981
|
variants: [
|
|
4852
4982
|
{
|
|
4853
4983
|
id: "default",
|
|
4854
4984
|
name: "Default",
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4985
|
+
layout: {
|
|
4986
|
+
type: "Column",
|
|
4987
|
+
children: ["divider"],
|
|
4988
|
+
columnAlign: "Start",
|
|
4989
|
+
columnResizing: "Fill",
|
|
4990
|
+
gap: "Medium"
|
|
4991
|
+
},
|
|
4859
4992
|
maxColumns: 1,
|
|
4860
4993
|
defaultColumns: 1,
|
|
4861
|
-
appearance: {
|
|
4994
|
+
appearance: {
|
|
4995
|
+
isBordered: false,
|
|
4996
|
+
hasBackground: false,
|
|
4997
|
+
isEditorPresentationDifferent: false
|
|
4998
|
+
}
|
|
4862
4999
|
}
|
|
4863
5000
|
],
|
|
4864
5001
|
defaultVariantKey: "default"
|
|
4865
5002
|
},
|
|
4866
5003
|
behavior: {
|
|
4867
5004
|
dataType: "Item",
|
|
4868
|
-
items: {
|
|
4869
|
-
|
|
5005
|
+
items: {
|
|
5006
|
+
numberOfItems: 1,
|
|
5007
|
+
allowLinks: false
|
|
5008
|
+
}
|
|
4870
5009
|
},
|
|
4871
5010
|
editorOptions: {
|
|
4872
5011
|
onboarding: {
|
|
@@ -4874,15 +5013,16 @@ var blocks = [
|
|
|
4874
5013
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/divider-tLuxooLH"
|
|
4875
5014
|
}
|
|
4876
5015
|
},
|
|
4877
|
-
appearance: {
|
|
5016
|
+
appearance: {
|
|
5017
|
+
isBordered: false,
|
|
5018
|
+
hasBackground: false
|
|
5019
|
+
}
|
|
4878
5020
|
},
|
|
4879
5021
|
{
|
|
4880
5022
|
id: "io.supernova.block.blockquote",
|
|
4881
5023
|
name: "Blockquote",
|
|
4882
5024
|
description: "Display a quotation",
|
|
4883
5025
|
category: "Text",
|
|
4884
|
-
icon: void 0,
|
|
4885
|
-
documentationLink: void 0,
|
|
4886
5026
|
searchKeywords: ["cite"],
|
|
4887
5027
|
item: {
|
|
4888
5028
|
properties: [
|
|
@@ -4890,31 +5030,44 @@ var blocks = [
|
|
|
4890
5030
|
id: "text",
|
|
4891
5031
|
name: "Text",
|
|
4892
5032
|
type: "RichText",
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
5033
|
+
options: {
|
|
5034
|
+
placeholder: "Empty quote",
|
|
5035
|
+
richTextStyle: "Quote"
|
|
5036
|
+
}
|
|
4896
5037
|
}
|
|
4897
5038
|
],
|
|
4898
|
-
appearance: {
|
|
5039
|
+
appearance: {
|
|
5040
|
+
isBordered: false,
|
|
5041
|
+
hasBackground: false
|
|
5042
|
+
},
|
|
4899
5043
|
variants: [
|
|
4900
5044
|
{
|
|
4901
5045
|
id: "default",
|
|
4902
5046
|
name: "Default",
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
5047
|
+
layout: {
|
|
5048
|
+
type: "Column",
|
|
5049
|
+
children: ["text"],
|
|
5050
|
+
columnAlign: "Start",
|
|
5051
|
+
columnResizing: "Fill",
|
|
5052
|
+
gap: "Medium"
|
|
5053
|
+
},
|
|
4907
5054
|
maxColumns: 1,
|
|
4908
5055
|
defaultColumns: 1,
|
|
4909
|
-
appearance: {
|
|
5056
|
+
appearance: {
|
|
5057
|
+
isBordered: false,
|
|
5058
|
+
hasBackground: false,
|
|
5059
|
+
isEditorPresentationDifferent: false
|
|
5060
|
+
}
|
|
4910
5061
|
}
|
|
4911
5062
|
],
|
|
4912
5063
|
defaultVariantKey: "default"
|
|
4913
5064
|
},
|
|
4914
5065
|
behavior: {
|
|
4915
5066
|
dataType: "Item",
|
|
4916
|
-
items: {
|
|
4917
|
-
|
|
5067
|
+
items: {
|
|
5068
|
+
numberOfItems: 1,
|
|
5069
|
+
allowLinks: false
|
|
5070
|
+
}
|
|
4918
5071
|
},
|
|
4919
5072
|
editorOptions: {
|
|
4920
5073
|
onboarding: {
|
|
@@ -4922,15 +5075,16 @@ var blocks = [
|
|
|
4922
5075
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/blockquote-zYWAsb6X"
|
|
4923
5076
|
}
|
|
4924
5077
|
},
|
|
4925
|
-
appearance: {
|
|
5078
|
+
appearance: {
|
|
5079
|
+
isBordered: false,
|
|
5080
|
+
hasBackground: false
|
|
5081
|
+
}
|
|
4926
5082
|
},
|
|
4927
5083
|
{
|
|
4928
5084
|
id: "io.supernova.block.callout",
|
|
4929
5085
|
name: "Callout",
|
|
4930
5086
|
description: "Highlight a section of text",
|
|
4931
5087
|
category: "Text",
|
|
4932
|
-
icon: void 0,
|
|
4933
|
-
documentationLink: void 0,
|
|
4934
5088
|
searchKeywords: ["banner", "alert", "note", "tip", "warning"],
|
|
4935
5089
|
item: {
|
|
4936
5090
|
properties: [
|
|
@@ -4938,31 +5092,43 @@ var blocks = [
|
|
|
4938
5092
|
id: "text",
|
|
4939
5093
|
name: "Text",
|
|
4940
5094
|
type: "RichText",
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
5095
|
+
options: {
|
|
5096
|
+
richTextStyle: "Callout"
|
|
5097
|
+
}
|
|
4944
5098
|
}
|
|
4945
5099
|
],
|
|
4946
|
-
appearance: {
|
|
5100
|
+
appearance: {
|
|
5101
|
+
isBordered: false,
|
|
5102
|
+
hasBackground: false
|
|
5103
|
+
},
|
|
4947
5104
|
variants: [
|
|
4948
5105
|
{
|
|
4949
5106
|
id: "default",
|
|
4950
5107
|
name: "Default",
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
5108
|
+
layout: {
|
|
5109
|
+
type: "Column",
|
|
5110
|
+
children: ["text"],
|
|
5111
|
+
columnAlign: "Start",
|
|
5112
|
+
columnResizing: "Fill",
|
|
5113
|
+
gap: "Medium"
|
|
5114
|
+
},
|
|
4955
5115
|
maxColumns: 1,
|
|
4956
5116
|
defaultColumns: 1,
|
|
4957
|
-
appearance: {
|
|
5117
|
+
appearance: {
|
|
5118
|
+
isBordered: false,
|
|
5119
|
+
hasBackground: false,
|
|
5120
|
+
isEditorPresentationDifferent: false
|
|
5121
|
+
}
|
|
4958
5122
|
}
|
|
4959
5123
|
],
|
|
4960
5124
|
defaultVariantKey: "default"
|
|
4961
5125
|
},
|
|
4962
5126
|
behavior: {
|
|
4963
5127
|
dataType: "Item",
|
|
4964
|
-
items: {
|
|
4965
|
-
|
|
5128
|
+
items: {
|
|
5129
|
+
numberOfItems: 1,
|
|
5130
|
+
allowLinks: false
|
|
5131
|
+
}
|
|
4966
5132
|
},
|
|
4967
5133
|
editorOptions: {
|
|
4968
5134
|
onboarding: {
|
|
@@ -4970,15 +5136,16 @@ var blocks = [
|
|
|
4970
5136
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/callout-ZPlZObD1"
|
|
4971
5137
|
}
|
|
4972
5138
|
},
|
|
4973
|
-
appearance: {
|
|
5139
|
+
appearance: {
|
|
5140
|
+
isBordered: false,
|
|
5141
|
+
hasBackground: false
|
|
5142
|
+
}
|
|
4974
5143
|
},
|
|
4975
5144
|
{
|
|
4976
5145
|
id: "io.supernova.block.image",
|
|
4977
5146
|
name: "Image",
|
|
4978
5147
|
description: "Display an image or Figma frame",
|
|
4979
5148
|
category: "Media",
|
|
4980
|
-
icon: void 0,
|
|
4981
|
-
documentationLink: void 0,
|
|
4982
5149
|
searchKeywords: ["image", "figma", "frame", "picture", "photo"],
|
|
4983
5150
|
item: {
|
|
4984
5151
|
properties: [
|
|
@@ -4986,31 +5153,43 @@ var blocks = [
|
|
|
4986
5153
|
id: "image",
|
|
4987
5154
|
name: "Image",
|
|
4988
5155
|
type: "Image",
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
5156
|
+
options: {
|
|
5157
|
+
allowCaption: true
|
|
5158
|
+
}
|
|
4992
5159
|
}
|
|
4993
5160
|
],
|
|
4994
|
-
appearance: {
|
|
5161
|
+
appearance: {
|
|
5162
|
+
isBordered: false,
|
|
5163
|
+
hasBackground: false
|
|
5164
|
+
},
|
|
4995
5165
|
variants: [
|
|
4996
5166
|
{
|
|
4997
5167
|
id: "default",
|
|
4998
5168
|
name: "Default",
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5169
|
+
layout: {
|
|
5170
|
+
type: "Column",
|
|
5171
|
+
children: ["image"],
|
|
5172
|
+
columnAlign: "Start",
|
|
5173
|
+
columnResizing: "Fill",
|
|
5174
|
+
gap: "Medium"
|
|
5175
|
+
},
|
|
5003
5176
|
maxColumns: 1,
|
|
5004
5177
|
defaultColumns: 1,
|
|
5005
|
-
appearance: {
|
|
5178
|
+
appearance: {
|
|
5179
|
+
isBordered: false,
|
|
5180
|
+
hasBackground: false,
|
|
5181
|
+
isEditorPresentationDifferent: false
|
|
5182
|
+
}
|
|
5006
5183
|
}
|
|
5007
5184
|
],
|
|
5008
5185
|
defaultVariantKey: "default"
|
|
5009
5186
|
},
|
|
5010
5187
|
behavior: {
|
|
5011
5188
|
dataType: "Item",
|
|
5012
|
-
items: {
|
|
5013
|
-
|
|
5189
|
+
items: {
|
|
5190
|
+
numberOfItems: 1,
|
|
5191
|
+
allowLinks: false
|
|
5192
|
+
}
|
|
5014
5193
|
},
|
|
5015
5194
|
editorOptions: {
|
|
5016
5195
|
onboarding: {
|
|
@@ -5018,15 +5197,16 @@ var blocks = [
|
|
|
5018
5197
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/image-Ue8VdT8B"
|
|
5019
5198
|
}
|
|
5020
5199
|
},
|
|
5021
|
-
appearance: {
|
|
5200
|
+
appearance: {
|
|
5201
|
+
isBordered: false,
|
|
5202
|
+
hasBackground: false
|
|
5203
|
+
}
|
|
5022
5204
|
},
|
|
5023
5205
|
{
|
|
5024
5206
|
id: "io.supernova.block.shortcut-links",
|
|
5025
5207
|
name: "Shortcut links",
|
|
5026
5208
|
description: "Link to a page or external URL",
|
|
5027
5209
|
category: "Media",
|
|
5028
|
-
icon: void 0,
|
|
5029
|
-
documentationLink: void 0,
|
|
5030
5210
|
searchKeywords: [],
|
|
5031
5211
|
item: {
|
|
5032
5212
|
properties: [
|
|
@@ -5034,117 +5214,160 @@ var blocks = [
|
|
|
5034
5214
|
id: "block.links.property.title",
|
|
5035
5215
|
name: "Title",
|
|
5036
5216
|
type: "Text",
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5217
|
+
options: {
|
|
5218
|
+
textStyle: "Title5"
|
|
5219
|
+
}
|
|
5040
5220
|
},
|
|
5041
5221
|
{
|
|
5042
5222
|
id: "block.links.property.description",
|
|
5043
5223
|
name: "Short description",
|
|
5044
5224
|
type: "Text",
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5225
|
+
options: {
|
|
5226
|
+
textStyle: "Default",
|
|
5227
|
+
color: "NeutralFaded"
|
|
5228
|
+
}
|
|
5048
5229
|
},
|
|
5049
5230
|
{
|
|
5050
5231
|
id: "block.links.property.image",
|
|
5051
5232
|
name: "Image",
|
|
5052
5233
|
type: "Image",
|
|
5053
|
-
|
|
5054
|
-
|
|
5234
|
+
options: {
|
|
5235
|
+
width: "Medium",
|
|
5236
|
+
aspectRatio: "Landscape",
|
|
5237
|
+
allowCaption: false
|
|
5238
|
+
},
|
|
5055
5239
|
variantOptions: {
|
|
5056
|
-
iconOnTop: {
|
|
5057
|
-
|
|
5240
|
+
iconOnTop: {
|
|
5241
|
+
width: "Icon",
|
|
5242
|
+
aspectRatio: "Square"
|
|
5243
|
+
},
|
|
5244
|
+
iconOnLeft: {
|
|
5245
|
+
width: "Icon",
|
|
5246
|
+
aspectRatio: "Square"
|
|
5247
|
+
}
|
|
5058
5248
|
}
|
|
5059
5249
|
}
|
|
5060
5250
|
],
|
|
5061
|
-
appearance: {
|
|
5251
|
+
appearance: {
|
|
5252
|
+
isBordered: false,
|
|
5253
|
+
hasBackground: false
|
|
5254
|
+
},
|
|
5062
5255
|
variants: [
|
|
5063
5256
|
{
|
|
5064
5257
|
id: "imageOnTop",
|
|
5065
5258
|
name: "Image on top",
|
|
5066
5259
|
image: "assets/variant-image-on-top.png",
|
|
5067
|
-
description: void 0,
|
|
5068
|
-
documentationLink: void 0,
|
|
5069
5260
|
layout: {
|
|
5070
5261
|
type: "Column",
|
|
5071
|
-
children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"]
|
|
5262
|
+
children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"],
|
|
5263
|
+
columnAlign: "Start",
|
|
5264
|
+
columnResizing: "Fill",
|
|
5265
|
+
gap: "Medium"
|
|
5072
5266
|
},
|
|
5073
5267
|
maxColumns: 4,
|
|
5074
5268
|
defaultColumns: 1,
|
|
5075
|
-
appearance: {
|
|
5269
|
+
appearance: {
|
|
5270
|
+
isBordered: false,
|
|
5271
|
+
hasBackground: false,
|
|
5272
|
+
isEditorPresentationDifferent: false
|
|
5273
|
+
}
|
|
5076
5274
|
},
|
|
5077
5275
|
{
|
|
5078
5276
|
id: "imageOnLeft",
|
|
5079
5277
|
name: "Image on left",
|
|
5080
5278
|
image: "assets/variant-image-on-left.png",
|
|
5081
|
-
description: void 0,
|
|
5082
|
-
documentationLink: void 0,
|
|
5083
5279
|
layout: {
|
|
5084
5280
|
type: "Row",
|
|
5085
5281
|
children: [
|
|
5086
5282
|
{
|
|
5087
5283
|
type: "Column",
|
|
5284
|
+
children: ["block.links.property.image"],
|
|
5285
|
+
columnAlign: "Start",
|
|
5088
5286
|
columnResizing: "Hug",
|
|
5089
|
-
|
|
5287
|
+
gap: "Medium"
|
|
5090
5288
|
},
|
|
5091
5289
|
{
|
|
5092
5290
|
type: "Column",
|
|
5093
|
-
|
|
5094
|
-
|
|
5291
|
+
children: ["block.links.property.title", "block.links.property.description"],
|
|
5292
|
+
columnAlign: "Start",
|
|
5293
|
+
columnResizing: "Fill",
|
|
5294
|
+
gap: "Small"
|
|
5095
5295
|
}
|
|
5096
|
-
]
|
|
5296
|
+
],
|
|
5297
|
+
columnAlign: "Start",
|
|
5298
|
+
columnResizing: "Fill",
|
|
5299
|
+
gap: "Medium"
|
|
5097
5300
|
},
|
|
5098
5301
|
maxColumns: 1,
|
|
5099
5302
|
defaultColumns: 1,
|
|
5100
|
-
appearance: {
|
|
5303
|
+
appearance: {
|
|
5304
|
+
isBordered: false,
|
|
5305
|
+
hasBackground: false,
|
|
5306
|
+
isEditorPresentationDifferent: false
|
|
5307
|
+
}
|
|
5101
5308
|
},
|
|
5102
5309
|
{
|
|
5103
5310
|
id: "iconOnTop",
|
|
5104
5311
|
name: "Icon on top",
|
|
5105
5312
|
image: "assets/variant-icon-on-top.png",
|
|
5106
|
-
description: void 0,
|
|
5107
|
-
documentationLink: void 0,
|
|
5108
5313
|
layout: {
|
|
5109
5314
|
type: "Column",
|
|
5110
|
-
children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"]
|
|
5315
|
+
children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"],
|
|
5316
|
+
columnAlign: "Start",
|
|
5317
|
+
columnResizing: "Fill",
|
|
5318
|
+
gap: "Medium"
|
|
5111
5319
|
},
|
|
5112
5320
|
maxColumns: 4,
|
|
5113
5321
|
defaultColumns: 1,
|
|
5114
|
-
appearance: {
|
|
5322
|
+
appearance: {
|
|
5323
|
+
isBordered: false,
|
|
5324
|
+
hasBackground: false,
|
|
5325
|
+
isEditorPresentationDifferent: false
|
|
5326
|
+
}
|
|
5115
5327
|
},
|
|
5116
5328
|
{
|
|
5117
5329
|
id: "iconOnLeft",
|
|
5118
5330
|
name: "Icon on left",
|
|
5119
5331
|
image: "assets/variant-icon-on-left.png",
|
|
5120
|
-
description: void 0,
|
|
5121
|
-
documentationLink: void 0,
|
|
5122
5332
|
layout: {
|
|
5123
5333
|
type: "Row",
|
|
5124
5334
|
children: [
|
|
5125
5335
|
{
|
|
5126
5336
|
type: "Column",
|
|
5337
|
+
children: ["block.links.property.image"],
|
|
5338
|
+
columnAlign: "Start",
|
|
5127
5339
|
columnResizing: "Hug",
|
|
5128
|
-
|
|
5340
|
+
gap: "Medium"
|
|
5129
5341
|
},
|
|
5130
5342
|
{
|
|
5131
5343
|
type: "Column",
|
|
5132
|
-
|
|
5133
|
-
|
|
5344
|
+
children: ["block.links.property.title", "block.links.property.description"],
|
|
5345
|
+
columnAlign: "Start",
|
|
5346
|
+
columnResizing: "Fill",
|
|
5347
|
+
gap: "Small"
|
|
5134
5348
|
}
|
|
5135
|
-
]
|
|
5349
|
+
],
|
|
5350
|
+
columnAlign: "Start",
|
|
5351
|
+
columnResizing: "Fill",
|
|
5352
|
+
gap: "Medium"
|
|
5136
5353
|
},
|
|
5137
5354
|
maxColumns: 2,
|
|
5138
5355
|
defaultColumns: 1,
|
|
5139
|
-
appearance: {
|
|
5356
|
+
appearance: {
|
|
5357
|
+
isBordered: false,
|
|
5358
|
+
hasBackground: false,
|
|
5359
|
+
isEditorPresentationDifferent: false
|
|
5360
|
+
}
|
|
5140
5361
|
}
|
|
5141
5362
|
],
|
|
5142
5363
|
defaultVariantKey: "imageOnTop"
|
|
5143
5364
|
},
|
|
5144
5365
|
behavior: {
|
|
5145
5366
|
dataType: "Item",
|
|
5146
|
-
items: {
|
|
5147
|
-
|
|
5367
|
+
items: {
|
|
5368
|
+
numberOfItems: -1,
|
|
5369
|
+
allowLinks: true
|
|
5370
|
+
}
|
|
5148
5371
|
},
|
|
5149
5372
|
editorOptions: {
|
|
5150
5373
|
onboarding: {
|
|
@@ -5152,15 +5375,16 @@ var blocks = [
|
|
|
5152
5375
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4"
|
|
5153
5376
|
}
|
|
5154
5377
|
},
|
|
5155
|
-
appearance: {
|
|
5378
|
+
appearance: {
|
|
5379
|
+
isBordered: false,
|
|
5380
|
+
hasBackground: false
|
|
5381
|
+
}
|
|
5156
5382
|
},
|
|
5157
5383
|
{
|
|
5158
5384
|
id: "io.supernova.block.color-accessibility-grid",
|
|
5159
5385
|
name: "Accessibility Color Grid",
|
|
5160
5386
|
description: "Visualize accessibility of your color tokens.",
|
|
5161
5387
|
category: "Tokens",
|
|
5162
|
-
icon: void 0,
|
|
5163
|
-
documentationLink: void 0,
|
|
5164
5388
|
searchKeywords: ["color", "accessibility", "grid", "contrast", "blind", "impairment"],
|
|
5165
5389
|
item: {
|
|
5166
5390
|
properties: [
|
|
@@ -5168,31 +5392,45 @@ var blocks = [
|
|
|
5168
5392
|
id: "tokens",
|
|
5169
5393
|
name: "Tokens",
|
|
5170
5394
|
type: "Token",
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5395
|
+
options: {
|
|
5396
|
+
allowedTypes: ["Color"],
|
|
5397
|
+
allowPropertySelection: false,
|
|
5398
|
+
allowThemeSelection: false
|
|
5399
|
+
}
|
|
5174
5400
|
}
|
|
5175
5401
|
],
|
|
5176
|
-
appearance: {
|
|
5402
|
+
appearance: {
|
|
5403
|
+
isBordered: false,
|
|
5404
|
+
hasBackground: false
|
|
5405
|
+
},
|
|
5177
5406
|
variants: [
|
|
5178
5407
|
{
|
|
5179
5408
|
id: "default",
|
|
5180
5409
|
name: "Default",
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5410
|
+
layout: {
|
|
5411
|
+
type: "Column",
|
|
5412
|
+
children: ["tokens"],
|
|
5413
|
+
columnAlign: "Start",
|
|
5414
|
+
columnResizing: "Fill",
|
|
5415
|
+
gap: "Medium"
|
|
5416
|
+
},
|
|
5185
5417
|
maxColumns: 1,
|
|
5186
5418
|
defaultColumns: 1,
|
|
5187
|
-
appearance: {
|
|
5419
|
+
appearance: {
|
|
5420
|
+
isBordered: false,
|
|
5421
|
+
hasBackground: false,
|
|
5422
|
+
isEditorPresentationDifferent: false
|
|
5423
|
+
}
|
|
5188
5424
|
}
|
|
5189
5425
|
],
|
|
5190
5426
|
defaultVariantKey: "default"
|
|
5191
5427
|
},
|
|
5192
5428
|
behavior: {
|
|
5193
5429
|
dataType: "Token",
|
|
5194
|
-
|
|
5195
|
-
|
|
5430
|
+
entities: {
|
|
5431
|
+
selectionType: "Group",
|
|
5432
|
+
maxSelected: 2
|
|
5433
|
+
}
|
|
5196
5434
|
},
|
|
5197
5435
|
editorOptions: {
|
|
5198
5436
|
onboarding: {
|
|
@@ -5200,15 +5438,16 @@ var blocks = [
|
|
|
5200
5438
|
documentationLink: "https://learn.supernova.io"
|
|
5201
5439
|
}
|
|
5202
5440
|
},
|
|
5203
|
-
appearance: {
|
|
5441
|
+
appearance: {
|
|
5442
|
+
isBordered: false,
|
|
5443
|
+
hasBackground: false
|
|
5444
|
+
}
|
|
5204
5445
|
},
|
|
5205
5446
|
{
|
|
5206
5447
|
id: "io.supernova.block.embed",
|
|
5207
5448
|
name: "Embed",
|
|
5208
5449
|
description: "Embed a generic URL",
|
|
5209
5450
|
category: "Media",
|
|
5210
|
-
icon: void 0,
|
|
5211
|
-
documentationLink: void 0,
|
|
5212
5451
|
searchKeywords: ["embed", "url", "iframe", "site", "import"],
|
|
5213
5452
|
item: {
|
|
5214
5453
|
properties: [
|
|
@@ -5216,36 +5455,46 @@ var blocks = [
|
|
|
5216
5455
|
id: "embedUrl",
|
|
5217
5456
|
name: "Embed URL",
|
|
5218
5457
|
type: "EmbedURL",
|
|
5219
|
-
description: void 0,
|
|
5220
5458
|
options: {
|
|
5221
5459
|
allowCaption: true,
|
|
5222
5460
|
allowResize: true,
|
|
5223
5461
|
defaultHeight: 400,
|
|
5224
5462
|
urlValidationRegex: "^(https?://)?(www.)?.+$"
|
|
5225
|
-
}
|
|
5226
|
-
variantOptions: void 0
|
|
5463
|
+
}
|
|
5227
5464
|
}
|
|
5228
5465
|
],
|
|
5229
|
-
appearance: {
|
|
5466
|
+
appearance: {
|
|
5467
|
+
isBordered: false,
|
|
5468
|
+
hasBackground: false
|
|
5469
|
+
},
|
|
5230
5470
|
variants: [
|
|
5231
5471
|
{
|
|
5232
5472
|
id: "default",
|
|
5233
5473
|
name: "Default",
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5474
|
+
layout: {
|
|
5475
|
+
type: "Column",
|
|
5476
|
+
children: ["embedUrl"],
|
|
5477
|
+
columnAlign: "Start",
|
|
5478
|
+
columnResizing: "Fill",
|
|
5479
|
+
gap: "Medium"
|
|
5480
|
+
},
|
|
5238
5481
|
maxColumns: 1,
|
|
5239
5482
|
defaultColumns: 1,
|
|
5240
|
-
appearance: {
|
|
5483
|
+
appearance: {
|
|
5484
|
+
isBordered: false,
|
|
5485
|
+
hasBackground: false,
|
|
5486
|
+
isEditorPresentationDifferent: false
|
|
5487
|
+
}
|
|
5241
5488
|
}
|
|
5242
5489
|
],
|
|
5243
5490
|
defaultVariantKey: "default"
|
|
5244
5491
|
},
|
|
5245
5492
|
behavior: {
|
|
5246
5493
|
dataType: "Item",
|
|
5247
|
-
items: {
|
|
5248
|
-
|
|
5494
|
+
items: {
|
|
5495
|
+
numberOfItems: 1,
|
|
5496
|
+
allowLinks: false
|
|
5497
|
+
}
|
|
5249
5498
|
},
|
|
5250
5499
|
editorOptions: {
|
|
5251
5500
|
onboarding: {
|
|
@@ -5253,15 +5502,16 @@ var blocks = [
|
|
|
5253
5502
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/embed/public-url-2ZeRQ332"
|
|
5254
5503
|
}
|
|
5255
5504
|
},
|
|
5256
|
-
appearance: {
|
|
5505
|
+
appearance: {
|
|
5506
|
+
isBordered: false,
|
|
5507
|
+
hasBackground: false
|
|
5508
|
+
}
|
|
5257
5509
|
},
|
|
5258
5510
|
{
|
|
5259
5511
|
id: "io.supernova.block.embed-youtube",
|
|
5260
5512
|
name: "YouTube",
|
|
5261
5513
|
description: "Embed a Youtube video",
|
|
5262
5514
|
category: "Media",
|
|
5263
|
-
icon: void 0,
|
|
5264
|
-
documentationLink: void 0,
|
|
5265
5515
|
searchKeywords: ["embed", "video", "player", "upload"],
|
|
5266
5516
|
item: {
|
|
5267
5517
|
properties: [
|
|
@@ -5269,36 +5519,46 @@ var blocks = [
|
|
|
5269
5519
|
id: "embed",
|
|
5270
5520
|
name: "Youtube URL",
|
|
5271
5521
|
type: "EmbedURL",
|
|
5272
|
-
description: void 0,
|
|
5273
5522
|
options: {
|
|
5274
5523
|
allowCaption: false,
|
|
5275
5524
|
allowResize: false,
|
|
5276
5525
|
defaultHeight: 400,
|
|
5277
5526
|
urlValidationRegex: "^(https?://)?(www.)?(youtube.com|youtu.?be)/.+$"
|
|
5278
|
-
}
|
|
5279
|
-
variantOptions: void 0
|
|
5527
|
+
}
|
|
5280
5528
|
}
|
|
5281
5529
|
],
|
|
5282
|
-
appearance: {
|
|
5530
|
+
appearance: {
|
|
5531
|
+
isBordered: false,
|
|
5532
|
+
hasBackground: false
|
|
5533
|
+
},
|
|
5283
5534
|
variants: [
|
|
5284
5535
|
{
|
|
5285
5536
|
id: "default",
|
|
5286
5537
|
name: "Default",
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5538
|
+
layout: {
|
|
5539
|
+
type: "Column",
|
|
5540
|
+
children: ["embed"],
|
|
5541
|
+
columnAlign: "Start",
|
|
5542
|
+
columnResizing: "Fill",
|
|
5543
|
+
gap: "Medium"
|
|
5544
|
+
},
|
|
5291
5545
|
maxColumns: 1,
|
|
5292
5546
|
defaultColumns: 1,
|
|
5293
|
-
appearance: {
|
|
5547
|
+
appearance: {
|
|
5548
|
+
isBordered: false,
|
|
5549
|
+
hasBackground: false,
|
|
5550
|
+
isEditorPresentationDifferent: false
|
|
5551
|
+
}
|
|
5294
5552
|
}
|
|
5295
5553
|
],
|
|
5296
5554
|
defaultVariantKey: "default"
|
|
5297
5555
|
},
|
|
5298
5556
|
behavior: {
|
|
5299
5557
|
dataType: "Item",
|
|
5300
|
-
items: {
|
|
5301
|
-
|
|
5558
|
+
items: {
|
|
5559
|
+
numberOfItems: 1,
|
|
5560
|
+
allowLinks: false
|
|
5561
|
+
}
|
|
5302
5562
|
},
|
|
5303
5563
|
editorOptions: {
|
|
5304
5564
|
onboarding: {
|
|
@@ -5306,68 +5566,76 @@ var blocks = [
|
|
|
5306
5566
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/youtube-Gh8VUrSF"
|
|
5307
5567
|
}
|
|
5308
5568
|
},
|
|
5309
|
-
appearance: {
|
|
5569
|
+
appearance: {
|
|
5570
|
+
isBordered: false,
|
|
5571
|
+
hasBackground: false
|
|
5572
|
+
}
|
|
5310
5573
|
},
|
|
5311
5574
|
{
|
|
5312
5575
|
id: "io.supernova.block.embed-lottie",
|
|
5313
5576
|
name: "Lottie animation",
|
|
5314
5577
|
description: "Preview a Lottie animation",
|
|
5315
5578
|
category: "Media",
|
|
5316
|
-
icon: void 0,
|
|
5317
|
-
documentationLink: void 0,
|
|
5318
5579
|
searchKeywords: ["embed", "lottie", "animation", "rive", "json"],
|
|
5319
5580
|
item: {
|
|
5320
5581
|
properties: [
|
|
5321
5582
|
{
|
|
5322
|
-
id: "
|
|
5583
|
+
id: "url",
|
|
5323
5584
|
name: "Lottie URL",
|
|
5324
|
-
type: "
|
|
5325
|
-
description: void 0,
|
|
5585
|
+
type: "URL",
|
|
5326
5586
|
options: {
|
|
5327
|
-
allowCaption: false,
|
|
5328
|
-
allowResize: true,
|
|
5329
|
-
defaultHeight: 400,
|
|
5330
5587
|
urlValidationRegex: "^(https?:\\/\\/)?([\\w\\d\\-\\.]+)\\.([\\w]+)(\\/[\\w\\d_\\-\\.\\/]*)?(\\.json|\\.lottie)$\n"
|
|
5331
|
-
}
|
|
5332
|
-
variantOptions: void 0
|
|
5588
|
+
}
|
|
5333
5589
|
},
|
|
5334
5590
|
{
|
|
5335
5591
|
id: "autoplay",
|
|
5336
5592
|
name: "Autoplay",
|
|
5337
5593
|
type: "Boolean",
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5594
|
+
options: {
|
|
5595
|
+
defaultValue: true
|
|
5596
|
+
}
|
|
5341
5597
|
},
|
|
5342
5598
|
{
|
|
5343
5599
|
id: "loop",
|
|
5344
5600
|
name: "Loop",
|
|
5345
5601
|
type: "Boolean",
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5602
|
+
options: {
|
|
5603
|
+
defaultValue: true
|
|
5604
|
+
}
|
|
5349
5605
|
}
|
|
5350
5606
|
],
|
|
5351
|
-
appearance: {
|
|
5607
|
+
appearance: {
|
|
5608
|
+
isBordered: false,
|
|
5609
|
+
hasBackground: false
|
|
5610
|
+
},
|
|
5352
5611
|
variants: [
|
|
5353
5612
|
{
|
|
5354
5613
|
id: "default",
|
|
5355
5614
|
name: "Default",
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5615
|
+
layout: {
|
|
5616
|
+
type: "Column",
|
|
5617
|
+
children: ["url", "autoplay", "loop"],
|
|
5618
|
+
columnAlign: "Start",
|
|
5619
|
+
columnResizing: "Fill",
|
|
5620
|
+
gap: "Medium"
|
|
5621
|
+
},
|
|
5360
5622
|
maxColumns: 1,
|
|
5361
5623
|
defaultColumns: 1,
|
|
5362
|
-
appearance: {
|
|
5624
|
+
appearance: {
|
|
5625
|
+
isBordered: false,
|
|
5626
|
+
hasBackground: false,
|
|
5627
|
+
isEditorPresentationDifferent: false
|
|
5628
|
+
}
|
|
5363
5629
|
}
|
|
5364
5630
|
],
|
|
5365
5631
|
defaultVariantKey: "default"
|
|
5366
5632
|
},
|
|
5367
5633
|
behavior: {
|
|
5368
5634
|
dataType: "Item",
|
|
5369
|
-
items: {
|
|
5370
|
-
|
|
5635
|
+
items: {
|
|
5636
|
+
numberOfItems: 1,
|
|
5637
|
+
allowLinks: false
|
|
5638
|
+
}
|
|
5371
5639
|
},
|
|
5372
5640
|
editorOptions: {
|
|
5373
5641
|
onboarding: {
|
|
@@ -5375,15 +5643,16 @@ var blocks = [
|
|
|
5375
5643
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/lottie-preview-7CqFdGv9"
|
|
5376
5644
|
}
|
|
5377
5645
|
},
|
|
5378
|
-
appearance: {
|
|
5646
|
+
appearance: {
|
|
5647
|
+
isBordered: false,
|
|
5648
|
+
hasBackground: false
|
|
5649
|
+
}
|
|
5379
5650
|
},
|
|
5380
5651
|
{
|
|
5381
5652
|
id: "io.supernova.block.storybook",
|
|
5382
5653
|
name: "Storybook",
|
|
5383
5654
|
description: "Embed Storybook canvas",
|
|
5384
5655
|
category: "Media",
|
|
5385
|
-
icon: void 0,
|
|
5386
|
-
documentationLink: void 0,
|
|
5387
5656
|
searchKeywords: ["storybook", "story", "stories", "example", "preview", "code", "react"],
|
|
5388
5657
|
item: {
|
|
5389
5658
|
properties: [
|
|
@@ -5391,31 +5660,45 @@ var blocks = [
|
|
|
5391
5660
|
id: "embed",
|
|
5392
5661
|
name: "Storybook URL",
|
|
5393
5662
|
type: "Storybook",
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5663
|
+
options: {
|
|
5664
|
+
allowCaption: true,
|
|
5665
|
+
allowResize: true,
|
|
5666
|
+
defaultHeight: 400
|
|
5667
|
+
}
|
|
5397
5668
|
}
|
|
5398
5669
|
],
|
|
5399
|
-
appearance: {
|
|
5670
|
+
appearance: {
|
|
5671
|
+
isBordered: false,
|
|
5672
|
+
hasBackground: false
|
|
5673
|
+
},
|
|
5400
5674
|
variants: [
|
|
5401
5675
|
{
|
|
5402
5676
|
id: "default",
|
|
5403
5677
|
name: "Default",
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5678
|
+
layout: {
|
|
5679
|
+
type: "Column",
|
|
5680
|
+
children: ["embed"],
|
|
5681
|
+
columnAlign: "Start",
|
|
5682
|
+
columnResizing: "Fill",
|
|
5683
|
+
gap: "Medium"
|
|
5684
|
+
},
|
|
5408
5685
|
maxColumns: 1,
|
|
5409
5686
|
defaultColumns: 1,
|
|
5410
|
-
appearance: {
|
|
5687
|
+
appearance: {
|
|
5688
|
+
isBordered: false,
|
|
5689
|
+
hasBackground: false,
|
|
5690
|
+
isEditorPresentationDifferent: false
|
|
5691
|
+
}
|
|
5411
5692
|
}
|
|
5412
5693
|
],
|
|
5413
5694
|
defaultVariantKey: "default"
|
|
5414
5695
|
},
|
|
5415
5696
|
behavior: {
|
|
5416
5697
|
dataType: "Item",
|
|
5417
|
-
items: {
|
|
5418
|
-
|
|
5698
|
+
items: {
|
|
5699
|
+
numberOfItems: 1,
|
|
5700
|
+
allowLinks: false
|
|
5701
|
+
}
|
|
5419
5702
|
},
|
|
5420
5703
|
editorOptions: {
|
|
5421
5704
|
onboarding: {
|
|
@@ -5423,52 +5706,63 @@ var blocks = [
|
|
|
5423
5706
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/storybook-1EGPhwBl"
|
|
5424
5707
|
}
|
|
5425
5708
|
},
|
|
5426
|
-
appearance: {
|
|
5709
|
+
appearance: {
|
|
5710
|
+
isBordered: false,
|
|
5711
|
+
hasBackground: false
|
|
5712
|
+
}
|
|
5427
5713
|
},
|
|
5428
5714
|
{
|
|
5429
5715
|
id: "io.supernova.block.embed-figma",
|
|
5430
5716
|
name: "Figma embed",
|
|
5431
5717
|
description: "Embed a Figma canvas or prototype",
|
|
5432
5718
|
category: "Media",
|
|
5433
|
-
icon: void 0,
|
|
5434
|
-
documentationLink: void 0,
|
|
5435
5719
|
searchKeywords: ["embed", "figma", "design", "prototype", "canvas"],
|
|
5436
5720
|
item: {
|
|
5437
5721
|
properties: [
|
|
5438
5722
|
{
|
|
5439
5723
|
id: "embed",
|
|
5440
|
-
name: "Figma
|
|
5724
|
+
name: "Figma URL",
|
|
5441
5725
|
type: "EmbedURL",
|
|
5442
|
-
description: void 0,
|
|
5443
5726
|
options: {
|
|
5444
5727
|
allowCaption: false,
|
|
5445
5728
|
allowResize: true,
|
|
5446
5729
|
defaultHeight: 400,
|
|
5447
5730
|
urlValidationRegex: "^(https?://)?(www.)?(figma.com)/.+$"
|
|
5448
|
-
}
|
|
5449
|
-
variantOptions: void 0
|
|
5731
|
+
}
|
|
5450
5732
|
}
|
|
5451
5733
|
],
|
|
5452
|
-
appearance: {
|
|
5734
|
+
appearance: {
|
|
5735
|
+
isBordered: false,
|
|
5736
|
+
hasBackground: false
|
|
5737
|
+
},
|
|
5453
5738
|
variants: [
|
|
5454
5739
|
{
|
|
5455
5740
|
id: "default",
|
|
5456
5741
|
name: "Default",
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5742
|
+
layout: {
|
|
5743
|
+
type: "Column",
|
|
5744
|
+
children: ["embed"],
|
|
5745
|
+
columnAlign: "Start",
|
|
5746
|
+
columnResizing: "Fill",
|
|
5747
|
+
gap: "Medium"
|
|
5748
|
+
},
|
|
5461
5749
|
maxColumns: 1,
|
|
5462
5750
|
defaultColumns: 1,
|
|
5463
|
-
appearance: {
|
|
5751
|
+
appearance: {
|
|
5752
|
+
isBordered: false,
|
|
5753
|
+
hasBackground: false,
|
|
5754
|
+
isEditorPresentationDifferent: false
|
|
5755
|
+
}
|
|
5464
5756
|
}
|
|
5465
5757
|
],
|
|
5466
5758
|
defaultVariantKey: "default"
|
|
5467
5759
|
},
|
|
5468
5760
|
behavior: {
|
|
5469
5761
|
dataType: "Item",
|
|
5470
|
-
items: {
|
|
5471
|
-
|
|
5762
|
+
items: {
|
|
5763
|
+
numberOfItems: 1,
|
|
5764
|
+
allowLinks: false
|
|
5765
|
+
}
|
|
5472
5766
|
},
|
|
5473
5767
|
editorOptions: {
|
|
5474
5768
|
onboarding: {
|
|
@@ -5476,15 +5770,16 @@ var blocks = [
|
|
|
5476
5770
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/embed-figma-GPNJsT8A"
|
|
5477
5771
|
}
|
|
5478
5772
|
},
|
|
5479
|
-
appearance: {
|
|
5773
|
+
appearance: {
|
|
5774
|
+
isBordered: false,
|
|
5775
|
+
hasBackground: false
|
|
5776
|
+
}
|
|
5480
5777
|
},
|
|
5481
5778
|
{
|
|
5482
5779
|
id: "io.supernova.block.markdown",
|
|
5483
5780
|
name: "Markdown",
|
|
5484
5781
|
description: "Render Markdown URL",
|
|
5485
5782
|
category: "Other",
|
|
5486
|
-
icon: void 0,
|
|
5487
|
-
documentationLink: void 0,
|
|
5488
5783
|
searchKeywords: ["md", "embed", "api", "table", "mdx"],
|
|
5489
5784
|
item: {
|
|
5490
5785
|
properties: [
|
|
@@ -5492,31 +5787,80 @@ var blocks = [
|
|
|
5492
5787
|
id: "markdownUrl",
|
|
5493
5788
|
name: "Markdown URL",
|
|
5494
5789
|
type: "Markdown",
|
|
5495
|
-
|
|
5496
|
-
options: {},
|
|
5497
|
-
variantOptions: void 0
|
|
5790
|
+
options: {}
|
|
5498
5791
|
}
|
|
5499
5792
|
],
|
|
5500
|
-
appearance: {
|
|
5793
|
+
appearance: {
|
|
5794
|
+
isBordered: false,
|
|
5795
|
+
hasBackground: false
|
|
5796
|
+
},
|
|
5501
5797
|
variants: [
|
|
5502
5798
|
{
|
|
5503
|
-
id: "
|
|
5504
|
-
name: "
|
|
5505
|
-
image:
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5799
|
+
id: "plain",
|
|
5800
|
+
name: "Plain",
|
|
5801
|
+
image: "assets/variant-plain.png",
|
|
5802
|
+
layout: {
|
|
5803
|
+
type: "Column",
|
|
5804
|
+
children: ["markdownUrl"],
|
|
5805
|
+
columnAlign: "Start",
|
|
5806
|
+
columnResizing: "Fill",
|
|
5807
|
+
gap: "Medium"
|
|
5808
|
+
},
|
|
5809
|
+
maxColumns: 1,
|
|
5810
|
+
defaultColumns: 1,
|
|
5811
|
+
appearance: {
|
|
5812
|
+
isBordered: false,
|
|
5813
|
+
hasBackground: false,
|
|
5814
|
+
isEditorPresentationDifferent: true
|
|
5815
|
+
}
|
|
5816
|
+
},
|
|
5817
|
+
{
|
|
5818
|
+
id: "bordered",
|
|
5819
|
+
name: "Bordered",
|
|
5820
|
+
image: "assets/variant-Bordered.png",
|
|
5821
|
+
layout: {
|
|
5822
|
+
type: "Column",
|
|
5823
|
+
children: ["markdownUrl"],
|
|
5824
|
+
columnAlign: "Start",
|
|
5825
|
+
columnResizing: "Fill",
|
|
5826
|
+
gap: "Medium"
|
|
5827
|
+
},
|
|
5828
|
+
maxColumns: 1,
|
|
5829
|
+
defaultColumns: 1,
|
|
5830
|
+
appearance: {
|
|
5831
|
+
isBordered: false,
|
|
5832
|
+
hasBackground: false,
|
|
5833
|
+
isEditorPresentationDifferent: true
|
|
5834
|
+
}
|
|
5835
|
+
},
|
|
5836
|
+
{
|
|
5837
|
+
id: "boxed",
|
|
5838
|
+
name: "Boxed",
|
|
5839
|
+
image: "assets/variant-boxed.png",
|
|
5840
|
+
layout: {
|
|
5841
|
+
type: "Column",
|
|
5842
|
+
children: ["markdownUrl"],
|
|
5843
|
+
columnAlign: "Start",
|
|
5844
|
+
columnResizing: "Fill",
|
|
5845
|
+
gap: "Medium"
|
|
5846
|
+
},
|
|
5509
5847
|
maxColumns: 1,
|
|
5510
5848
|
defaultColumns: 1,
|
|
5511
|
-
appearance: {
|
|
5849
|
+
appearance: {
|
|
5850
|
+
isBordered: false,
|
|
5851
|
+
hasBackground: false,
|
|
5852
|
+
isEditorPresentationDifferent: true
|
|
5853
|
+
}
|
|
5512
5854
|
}
|
|
5513
5855
|
],
|
|
5514
|
-
defaultVariantKey: "
|
|
5856
|
+
defaultVariantKey: "plain"
|
|
5515
5857
|
},
|
|
5516
5858
|
behavior: {
|
|
5517
5859
|
dataType: "Item",
|
|
5518
|
-
items: {
|
|
5519
|
-
|
|
5860
|
+
items: {
|
|
5861
|
+
numberOfItems: 1,
|
|
5862
|
+
allowLinks: false
|
|
5863
|
+
}
|
|
5520
5864
|
},
|
|
5521
5865
|
editorOptions: {
|
|
5522
5866
|
onboarding: {
|
|
@@ -5524,15 +5868,16 @@ var blocks = [
|
|
|
5524
5868
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/markdown/general-B8wQVOem"
|
|
5525
5869
|
}
|
|
5526
5870
|
},
|
|
5527
|
-
appearance: {
|
|
5871
|
+
appearance: {
|
|
5872
|
+
isBordered: false,
|
|
5873
|
+
hasBackground: false
|
|
5874
|
+
}
|
|
5528
5875
|
},
|
|
5529
5876
|
{
|
|
5530
5877
|
id: "io.supernova.block.table",
|
|
5531
5878
|
name: "Table",
|
|
5532
5879
|
description: "Display a simple table",
|
|
5533
5880
|
category: "Layout",
|
|
5534
|
-
icon: void 0,
|
|
5535
|
-
documentationLink: void 0,
|
|
5536
5881
|
searchKeywords: ["grid", "data", "spreadsheet", "api"],
|
|
5537
5882
|
item: {
|
|
5538
5883
|
properties: [
|
|
@@ -5540,31 +5885,41 @@ var blocks = [
|
|
|
5540
5885
|
id: "table",
|
|
5541
5886
|
name: "Table",
|
|
5542
5887
|
type: "Table",
|
|
5543
|
-
|
|
5544
|
-
options: {},
|
|
5545
|
-
variantOptions: void 0
|
|
5888
|
+
options: {}
|
|
5546
5889
|
}
|
|
5547
5890
|
],
|
|
5548
|
-
appearance: {
|
|
5891
|
+
appearance: {
|
|
5892
|
+
isBordered: false,
|
|
5893
|
+
hasBackground: false
|
|
5894
|
+
},
|
|
5549
5895
|
variants: [
|
|
5550
5896
|
{
|
|
5551
5897
|
id: "default",
|
|
5552
5898
|
name: "Default",
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5899
|
+
layout: {
|
|
5900
|
+
type: "Column",
|
|
5901
|
+
children: ["table"],
|
|
5902
|
+
columnAlign: "Start",
|
|
5903
|
+
columnResizing: "Fill",
|
|
5904
|
+
gap: "Medium"
|
|
5905
|
+
},
|
|
5557
5906
|
maxColumns: 1,
|
|
5558
5907
|
defaultColumns: 1,
|
|
5559
|
-
appearance: {
|
|
5908
|
+
appearance: {
|
|
5909
|
+
isBordered: false,
|
|
5910
|
+
hasBackground: false,
|
|
5911
|
+
isEditorPresentationDifferent: false
|
|
5912
|
+
}
|
|
5560
5913
|
}
|
|
5561
5914
|
],
|
|
5562
5915
|
defaultVariantKey: "default"
|
|
5563
5916
|
},
|
|
5564
5917
|
behavior: {
|
|
5565
5918
|
dataType: "Item",
|
|
5566
|
-
items: {
|
|
5567
|
-
|
|
5919
|
+
items: {
|
|
5920
|
+
numberOfItems: 1,
|
|
5921
|
+
allowLinks: false
|
|
5922
|
+
}
|
|
5568
5923
|
},
|
|
5569
5924
|
editorOptions: {
|
|
5570
5925
|
onboarding: {
|
|
@@ -5572,15 +5927,16 @@ var blocks = [
|
|
|
5572
5927
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/layout/table-R8KGnxej"
|
|
5573
5928
|
}
|
|
5574
5929
|
},
|
|
5575
|
-
appearance: {
|
|
5930
|
+
appearance: {
|
|
5931
|
+
isBordered: false,
|
|
5932
|
+
hasBackground: false
|
|
5933
|
+
}
|
|
5576
5934
|
},
|
|
5577
5935
|
{
|
|
5578
5936
|
id: "io.supernova.block.token-detail",
|
|
5579
5937
|
name: "Token detail",
|
|
5580
5938
|
description: "Show a single design tokens",
|
|
5581
5939
|
category: "Tokens",
|
|
5582
|
-
icon: void 0,
|
|
5583
|
-
documentationLink: void 0,
|
|
5584
5940
|
searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
|
|
5585
5941
|
item: {
|
|
5586
5942
|
properties: [
|
|
@@ -5588,53 +5944,84 @@ var blocks = [
|
|
|
5588
5944
|
id: "tokens",
|
|
5589
5945
|
name: "Tokens",
|
|
5590
5946
|
type: "Token",
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5947
|
+
options: {
|
|
5948
|
+
renderLayoutAs: "List",
|
|
5949
|
+
defaultTheme: "none",
|
|
5950
|
+
defaultValuePreview: "splitView"
|
|
5951
|
+
}
|
|
5594
5952
|
}
|
|
5595
5953
|
],
|
|
5596
|
-
appearance: {
|
|
5954
|
+
appearance: {
|
|
5955
|
+
isBordered: false,
|
|
5956
|
+
hasBackground: false
|
|
5957
|
+
},
|
|
5597
5958
|
variants: [
|
|
5598
5959
|
{
|
|
5599
5960
|
id: "table",
|
|
5600
5961
|
name: "Table Row",
|
|
5601
5962
|
image: "assets/variant-table.png",
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5963
|
+
layout: {
|
|
5964
|
+
type: "Column",
|
|
5965
|
+
children: ["tokens"],
|
|
5966
|
+
columnAlign: "Start",
|
|
5967
|
+
columnResizing: "Fill",
|
|
5968
|
+
gap: "Medium"
|
|
5969
|
+
},
|
|
5605
5970
|
maxColumns: 1,
|
|
5606
5971
|
defaultColumns: 1,
|
|
5607
|
-
appearance: {
|
|
5972
|
+
appearance: {
|
|
5973
|
+
isBordered: false,
|
|
5974
|
+
hasBackground: false,
|
|
5975
|
+
isEditorPresentationDifferent: false
|
|
5976
|
+
}
|
|
5608
5977
|
},
|
|
5609
5978
|
{
|
|
5610
5979
|
id: "grid",
|
|
5611
5980
|
name: "Grid Item",
|
|
5612
5981
|
image: "assets/variant-grid.png",
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5982
|
+
layout: {
|
|
5983
|
+
type: "Column",
|
|
5984
|
+
children: ["tokens"],
|
|
5985
|
+
columnAlign: "Start",
|
|
5986
|
+
columnResizing: "Fill",
|
|
5987
|
+
gap: "Medium"
|
|
5988
|
+
},
|
|
5616
5989
|
maxColumns: 1,
|
|
5617
5990
|
defaultColumns: 1,
|
|
5618
|
-
appearance: {
|
|
5991
|
+
appearance: {
|
|
5992
|
+
isBordered: false,
|
|
5993
|
+
hasBackground: false,
|
|
5994
|
+
isEditorPresentationDifferent: false
|
|
5995
|
+
}
|
|
5619
5996
|
},
|
|
5620
5997
|
{
|
|
5621
5998
|
id: "color-stack",
|
|
5622
5999
|
name: "Color stack item",
|
|
5623
6000
|
image: "assets/variant-color-stack.png",
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
6001
|
+
layout: {
|
|
6002
|
+
type: "Column",
|
|
6003
|
+
children: ["tokens"],
|
|
6004
|
+
columnAlign: "Start",
|
|
6005
|
+
columnResizing: "Fill",
|
|
6006
|
+
gap: "Medium"
|
|
6007
|
+
},
|
|
5627
6008
|
maxColumns: 1,
|
|
5628
6009
|
defaultColumns: 1,
|
|
5629
|
-
appearance: {
|
|
6010
|
+
appearance: {
|
|
6011
|
+
isBordered: false,
|
|
6012
|
+
hasBackground: false,
|
|
6013
|
+
isEditorPresentationDifferent: false
|
|
6014
|
+
}
|
|
5630
6015
|
}
|
|
5631
6016
|
],
|
|
5632
6017
|
defaultVariantKey: "table"
|
|
5633
6018
|
},
|
|
5634
6019
|
behavior: {
|
|
5635
6020
|
dataType: "Token",
|
|
5636
|
-
|
|
5637
|
-
|
|
6021
|
+
entities: {
|
|
6022
|
+
selectionType: "Entity",
|
|
6023
|
+
maxSelected: 1
|
|
6024
|
+
}
|
|
5638
6025
|
},
|
|
5639
6026
|
editorOptions: {
|
|
5640
6027
|
onboarding: {
|
|
@@ -5642,15 +6029,16 @@ var blocks = [
|
|
|
5642
6029
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-detail-04"
|
|
5643
6030
|
}
|
|
5644
6031
|
},
|
|
5645
|
-
appearance: {
|
|
6032
|
+
appearance: {
|
|
6033
|
+
isBordered: false,
|
|
6034
|
+
hasBackground: false
|
|
6035
|
+
}
|
|
5646
6036
|
},
|
|
5647
6037
|
{
|
|
5648
6038
|
id: "io.supernova.block.token-list",
|
|
5649
6039
|
name: "Token list",
|
|
5650
6040
|
description: "Show a list of design tokens",
|
|
5651
6041
|
category: "Tokens",
|
|
5652
|
-
icon: void 0,
|
|
5653
|
-
documentationLink: void 0,
|
|
5654
6042
|
searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme", "accessibility", "contrast"],
|
|
5655
6043
|
item: {
|
|
5656
6044
|
properties: [
|
|
@@ -5658,64 +6046,108 @@ var blocks = [
|
|
|
5658
6046
|
id: "tokens",
|
|
5659
6047
|
name: "Tokens",
|
|
5660
6048
|
type: "Token",
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
6049
|
+
options: {
|
|
6050
|
+
renderLayoutAs: "List",
|
|
6051
|
+
defaultTheme: "none",
|
|
6052
|
+
defaultValuePreview: "splitView"
|
|
6053
|
+
},
|
|
6054
|
+
variantOptions: {
|
|
6055
|
+
grid: {
|
|
6056
|
+
renderLayoutAs: "Grid"
|
|
6057
|
+
}
|
|
6058
|
+
}
|
|
5664
6059
|
}
|
|
5665
6060
|
],
|
|
5666
|
-
appearance: {
|
|
6061
|
+
appearance: {
|
|
6062
|
+
isBordered: false,
|
|
6063
|
+
hasBackground: false
|
|
6064
|
+
},
|
|
5667
6065
|
variants: [
|
|
5668
6066
|
{
|
|
5669
6067
|
id: "table",
|
|
5670
6068
|
name: "Table",
|
|
5671
6069
|
image: "assets/variant-table.png",
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
6070
|
+
layout: {
|
|
6071
|
+
type: "Column",
|
|
6072
|
+
children: ["tokens"],
|
|
6073
|
+
columnAlign: "Start",
|
|
6074
|
+
columnResizing: "Fill",
|
|
6075
|
+
gap: "Medium"
|
|
6076
|
+
},
|
|
5675
6077
|
maxColumns: 1,
|
|
5676
6078
|
defaultColumns: 1,
|
|
5677
|
-
appearance: {
|
|
6079
|
+
appearance: {
|
|
6080
|
+
isBordered: false,
|
|
6081
|
+
hasBackground: false,
|
|
6082
|
+
isEditorPresentationDifferent: false
|
|
6083
|
+
}
|
|
5678
6084
|
},
|
|
5679
6085
|
{
|
|
5680
6086
|
id: "grid",
|
|
5681
6087
|
name: "Grid",
|
|
5682
6088
|
image: "assets/variant-grid.png",
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
6089
|
+
layout: {
|
|
6090
|
+
type: "Column",
|
|
6091
|
+
children: ["tokens"],
|
|
6092
|
+
columnAlign: "Start",
|
|
6093
|
+
columnResizing: "Fill",
|
|
6094
|
+
gap: "Medium"
|
|
6095
|
+
},
|
|
5686
6096
|
maxColumns: 4,
|
|
5687
6097
|
defaultColumns: 1,
|
|
5688
|
-
appearance: {
|
|
6098
|
+
appearance: {
|
|
6099
|
+
isBordered: false,
|
|
6100
|
+
hasBackground: false,
|
|
6101
|
+
isEditorPresentationDifferent: false
|
|
6102
|
+
}
|
|
5689
6103
|
},
|
|
5690
6104
|
{
|
|
5691
6105
|
id: "color-stack",
|
|
5692
6106
|
name: "Color stack",
|
|
5693
6107
|
image: "assets/variant-color-stack.png",
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
6108
|
+
layout: {
|
|
6109
|
+
type: "Column",
|
|
6110
|
+
children: ["tokens"],
|
|
6111
|
+
columnAlign: "Start",
|
|
6112
|
+
columnResizing: "Fill",
|
|
6113
|
+
gap: "Medium"
|
|
6114
|
+
},
|
|
5697
6115
|
maxColumns: 1,
|
|
5698
6116
|
defaultColumns: 1,
|
|
5699
|
-
appearance: {
|
|
6117
|
+
appearance: {
|
|
6118
|
+
isBordered: false,
|
|
6119
|
+
hasBackground: false,
|
|
6120
|
+
isEditorPresentationDifferent: false
|
|
6121
|
+
}
|
|
5700
6122
|
},
|
|
5701
6123
|
{
|
|
5702
6124
|
id: "color-contrast-grid",
|
|
5703
6125
|
name: "Color contrast grid",
|
|
5704
6126
|
image: "assets/variant-color-contrast-grid.png",
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
6127
|
+
layout: {
|
|
6128
|
+
type: "Column",
|
|
6129
|
+
children: ["tokens"],
|
|
6130
|
+
columnAlign: "Start",
|
|
6131
|
+
columnResizing: "Fill",
|
|
6132
|
+
gap: "Medium"
|
|
6133
|
+
},
|
|
5708
6134
|
maxColumns: 1,
|
|
5709
6135
|
defaultColumns: 1,
|
|
5710
|
-
appearance: {
|
|
6136
|
+
appearance: {
|
|
6137
|
+
isBordered: false,
|
|
6138
|
+
hasBackground: false,
|
|
6139
|
+
isEditorPresentationDifferent: false
|
|
6140
|
+
}
|
|
5711
6141
|
}
|
|
5712
6142
|
],
|
|
5713
6143
|
defaultVariantKey: "table"
|
|
5714
6144
|
},
|
|
5715
6145
|
behavior: {
|
|
5716
6146
|
dataType: "Token",
|
|
5717
|
-
|
|
5718
|
-
|
|
6147
|
+
entities: {
|
|
6148
|
+
selectionType: "Entity",
|
|
6149
|
+
maxSelected: 0
|
|
6150
|
+
}
|
|
5719
6151
|
},
|
|
5720
6152
|
editorOptions: {
|
|
5721
6153
|
onboarding: {
|
|
@@ -5723,15 +6155,16 @@ var blocks = [
|
|
|
5723
6155
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-list-06"
|
|
5724
6156
|
}
|
|
5725
6157
|
},
|
|
5726
|
-
appearance: {
|
|
6158
|
+
appearance: {
|
|
6159
|
+
isBordered: false,
|
|
6160
|
+
hasBackground: false
|
|
6161
|
+
}
|
|
5727
6162
|
},
|
|
5728
6163
|
{
|
|
5729
6164
|
id: "io.supernova.block.token-group",
|
|
5730
6165
|
name: "Token group",
|
|
5731
6166
|
description: "Show a group of design tokens",
|
|
5732
6167
|
category: "Tokens",
|
|
5733
|
-
icon: void 0,
|
|
5734
|
-
documentationLink: void 0,
|
|
5735
6168
|
searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme", "accessibility", "contrast"],
|
|
5736
6169
|
item: {
|
|
5737
6170
|
properties: [
|
|
@@ -5739,64 +6172,108 @@ var blocks = [
|
|
|
5739
6172
|
id: "tokens",
|
|
5740
6173
|
name: "Tokens",
|
|
5741
6174
|
type: "Token",
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
6175
|
+
options: {
|
|
6176
|
+
renderLayoutAs: "List",
|
|
6177
|
+
defaultTheme: "none",
|
|
6178
|
+
defaultValuePreview: "splitView"
|
|
6179
|
+
},
|
|
6180
|
+
variantOptions: {
|
|
6181
|
+
grid: {
|
|
6182
|
+
renderLayoutAs: "Grid"
|
|
6183
|
+
}
|
|
6184
|
+
}
|
|
5745
6185
|
}
|
|
5746
6186
|
],
|
|
5747
|
-
appearance: {
|
|
6187
|
+
appearance: {
|
|
6188
|
+
isBordered: false,
|
|
6189
|
+
hasBackground: false
|
|
6190
|
+
},
|
|
5748
6191
|
variants: [
|
|
5749
6192
|
{
|
|
5750
6193
|
id: "table",
|
|
5751
6194
|
name: "Table",
|
|
5752
6195
|
image: "assets/variant-table.png",
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
6196
|
+
layout: {
|
|
6197
|
+
type: "Column",
|
|
6198
|
+
children: ["tokens"],
|
|
6199
|
+
columnAlign: "Start",
|
|
6200
|
+
columnResizing: "Fill",
|
|
6201
|
+
gap: "Medium"
|
|
6202
|
+
},
|
|
5756
6203
|
maxColumns: 1,
|
|
5757
6204
|
defaultColumns: 1,
|
|
5758
|
-
appearance: {
|
|
6205
|
+
appearance: {
|
|
6206
|
+
isBordered: false,
|
|
6207
|
+
hasBackground: false,
|
|
6208
|
+
isEditorPresentationDifferent: false
|
|
6209
|
+
}
|
|
5759
6210
|
},
|
|
5760
6211
|
{
|
|
5761
6212
|
id: "grid",
|
|
5762
6213
|
name: "Grid",
|
|
5763
6214
|
image: "assets/variant-grid.png",
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
6215
|
+
layout: {
|
|
6216
|
+
type: "Column",
|
|
6217
|
+
children: ["tokens"],
|
|
6218
|
+
columnAlign: "Start",
|
|
6219
|
+
columnResizing: "Fill",
|
|
6220
|
+
gap: "Medium"
|
|
6221
|
+
},
|
|
5767
6222
|
maxColumns: 4,
|
|
5768
6223
|
defaultColumns: 1,
|
|
5769
|
-
appearance: {
|
|
6224
|
+
appearance: {
|
|
6225
|
+
isBordered: false,
|
|
6226
|
+
hasBackground: false,
|
|
6227
|
+
isEditorPresentationDifferent: false
|
|
6228
|
+
}
|
|
5770
6229
|
},
|
|
5771
6230
|
{
|
|
5772
6231
|
id: "color-stack",
|
|
5773
6232
|
name: "Color stack",
|
|
5774
6233
|
image: "assets/variant-color-stack.png",
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
6234
|
+
layout: {
|
|
6235
|
+
type: "Column",
|
|
6236
|
+
children: ["tokens"],
|
|
6237
|
+
columnAlign: "Start",
|
|
6238
|
+
columnResizing: "Fill",
|
|
6239
|
+
gap: "Medium"
|
|
6240
|
+
},
|
|
5778
6241
|
maxColumns: 2,
|
|
5779
6242
|
defaultColumns: 1,
|
|
5780
|
-
appearance: {
|
|
6243
|
+
appearance: {
|
|
6244
|
+
isBordered: false,
|
|
6245
|
+
hasBackground: false,
|
|
6246
|
+
isEditorPresentationDifferent: false
|
|
6247
|
+
}
|
|
5781
6248
|
},
|
|
5782
6249
|
{
|
|
5783
6250
|
id: "color-contrast-grid",
|
|
5784
6251
|
name: "Color contrast grid",
|
|
5785
6252
|
image: "assets/variant-color-contrast-grid.png",
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
6253
|
+
layout: {
|
|
6254
|
+
type: "Column",
|
|
6255
|
+
children: ["tokens"],
|
|
6256
|
+
columnAlign: "Start",
|
|
6257
|
+
columnResizing: "Fill",
|
|
6258
|
+
gap: "Medium"
|
|
6259
|
+
},
|
|
5789
6260
|
maxColumns: 1,
|
|
5790
6261
|
defaultColumns: 1,
|
|
5791
|
-
appearance: {
|
|
6262
|
+
appearance: {
|
|
6263
|
+
isBordered: false,
|
|
6264
|
+
hasBackground: false,
|
|
6265
|
+
isEditorPresentationDifferent: false
|
|
6266
|
+
}
|
|
5792
6267
|
}
|
|
5793
6268
|
],
|
|
5794
6269
|
defaultVariantKey: "table"
|
|
5795
6270
|
},
|
|
5796
6271
|
behavior: {
|
|
5797
6272
|
dataType: "Token",
|
|
5798
|
-
|
|
5799
|
-
|
|
6273
|
+
entities: {
|
|
6274
|
+
selectionType: "Group",
|
|
6275
|
+
maxSelected: 1
|
|
6276
|
+
}
|
|
5800
6277
|
},
|
|
5801
6278
|
editorOptions: {
|
|
5802
6279
|
onboarding: {
|
|
@@ -5804,7 +6281,675 @@ var blocks = [
|
|
|
5804
6281
|
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09"
|
|
5805
6282
|
}
|
|
5806
6283
|
},
|
|
5807
|
-
appearance: {
|
|
6284
|
+
appearance: {
|
|
6285
|
+
isBordered: false,
|
|
6286
|
+
hasBackground: false
|
|
6287
|
+
}
|
|
6288
|
+
},
|
|
6289
|
+
{
|
|
6290
|
+
id: "io.supernova.block.code",
|
|
6291
|
+
name: "Code",
|
|
6292
|
+
description: "Code description",
|
|
6293
|
+
category: "Code",
|
|
6294
|
+
searchKeywords: ["code"],
|
|
6295
|
+
item: {
|
|
6296
|
+
properties: [
|
|
6297
|
+
{
|
|
6298
|
+
id: "code",
|
|
6299
|
+
name: "Code",
|
|
6300
|
+
type: "Code",
|
|
6301
|
+
options: {}
|
|
6302
|
+
}
|
|
6303
|
+
],
|
|
6304
|
+
appearance: {
|
|
6305
|
+
isBordered: false,
|
|
6306
|
+
hasBackground: false
|
|
6307
|
+
},
|
|
6308
|
+
variants: [
|
|
6309
|
+
{
|
|
6310
|
+
id: "default",
|
|
6311
|
+
name: "Default",
|
|
6312
|
+
layout: {
|
|
6313
|
+
type: "Column",
|
|
6314
|
+
children: ["code"],
|
|
6315
|
+
columnAlign: "Start",
|
|
6316
|
+
columnResizing: "Fill",
|
|
6317
|
+
gap: "Medium"
|
|
6318
|
+
},
|
|
6319
|
+
maxColumns: 1,
|
|
6320
|
+
defaultColumns: 1,
|
|
6321
|
+
appearance: {
|
|
6322
|
+
isBordered: false,
|
|
6323
|
+
hasBackground: false,
|
|
6324
|
+
isEditorPresentationDifferent: false
|
|
6325
|
+
}
|
|
6326
|
+
}
|
|
6327
|
+
],
|
|
6328
|
+
defaultVariantKey: "default"
|
|
6329
|
+
},
|
|
6330
|
+
behavior: {
|
|
6331
|
+
dataType: "Item",
|
|
6332
|
+
items: {
|
|
6333
|
+
numberOfItems: 1,
|
|
6334
|
+
allowLinks: false
|
|
6335
|
+
}
|
|
6336
|
+
},
|
|
6337
|
+
editorOptions: {
|
|
6338
|
+
onboarding: {
|
|
6339
|
+
helpText: "Code descriptor."
|
|
6340
|
+
}
|
|
6341
|
+
},
|
|
6342
|
+
appearance: {
|
|
6343
|
+
isBordered: false,
|
|
6344
|
+
hasBackground: false
|
|
6345
|
+
}
|
|
6346
|
+
},
|
|
6347
|
+
{
|
|
6348
|
+
id: "io.supernova.block.code-react",
|
|
6349
|
+
name: "React code",
|
|
6350
|
+
description: "Render React code",
|
|
6351
|
+
category: "Code",
|
|
6352
|
+
searchKeywords: ["code", "react", "snippet", "storybook", "editor", "example"],
|
|
6353
|
+
item: {
|
|
6354
|
+
properties: [
|
|
6355
|
+
{
|
|
6356
|
+
id: "code",
|
|
6357
|
+
name: "Code",
|
|
6358
|
+
type: "CodeSandbox",
|
|
6359
|
+
options: {
|
|
6360
|
+
renderLayoutAs: "PreviewOnTop"
|
|
6361
|
+
},
|
|
6362
|
+
variantOptions: {
|
|
6363
|
+
codeTop: {
|
|
6364
|
+
renderLayoutAs: "PreviewOnBottom"
|
|
6365
|
+
},
|
|
6366
|
+
codeLeft: {
|
|
6367
|
+
renderLayoutAs: "PreviewOnRight"
|
|
6368
|
+
},
|
|
6369
|
+
codeRight: {
|
|
6370
|
+
renderLayoutAs: "PreviewOnLeft"
|
|
6371
|
+
}
|
|
6372
|
+
}
|
|
6373
|
+
}
|
|
6374
|
+
],
|
|
6375
|
+
appearance: {
|
|
6376
|
+
isBordered: false,
|
|
6377
|
+
hasBackground: false
|
|
6378
|
+
},
|
|
6379
|
+
variants: [
|
|
6380
|
+
{
|
|
6381
|
+
id: "codeBottom",
|
|
6382
|
+
name: "Full width, code bottom",
|
|
6383
|
+
image: "thumbnails/RenderCode_CodeBottom.png",
|
|
6384
|
+
description: "Full-width block of code, with a preview on top.",
|
|
6385
|
+
layout: {
|
|
6386
|
+
type: "Column",
|
|
6387
|
+
children: ["code"],
|
|
6388
|
+
columnAlign: "Start",
|
|
6389
|
+
columnResizing: "Fill",
|
|
6390
|
+
gap: "Medium"
|
|
6391
|
+
},
|
|
6392
|
+
maxColumns: 1,
|
|
6393
|
+
defaultColumns: 1,
|
|
6394
|
+
appearance: {
|
|
6395
|
+
isBordered: false,
|
|
6396
|
+
hasBackground: false,
|
|
6397
|
+
isEditorPresentationDifferent: false
|
|
6398
|
+
}
|
|
6399
|
+
},
|
|
6400
|
+
{
|
|
6401
|
+
id: "codeTop",
|
|
6402
|
+
name: "Full width, code top",
|
|
6403
|
+
image: "thumbnails/RenderCode_CodeTop.png",
|
|
6404
|
+
description: "Full-width block of code, with a preview on bottom.",
|
|
6405
|
+
layout: {
|
|
6406
|
+
type: "Column",
|
|
6407
|
+
children: ["code"],
|
|
6408
|
+
columnAlign: "Start",
|
|
6409
|
+
columnResizing: "Fill",
|
|
6410
|
+
gap: "Medium"
|
|
6411
|
+
},
|
|
6412
|
+
maxColumns: 1,
|
|
6413
|
+
defaultColumns: 1,
|
|
6414
|
+
appearance: {
|
|
6415
|
+
isBordered: false,
|
|
6416
|
+
hasBackground: false,
|
|
6417
|
+
isEditorPresentationDifferent: false
|
|
6418
|
+
}
|
|
6419
|
+
},
|
|
6420
|
+
{
|
|
6421
|
+
id: "codeLeft",
|
|
6422
|
+
name: "Side by side, code left",
|
|
6423
|
+
image: "thumbnails/RenderCode_CodeLeft.png",
|
|
6424
|
+
description: "Side-by-side preview and code, with code on the left.",
|
|
6425
|
+
layout: {
|
|
6426
|
+
type: "Column",
|
|
6427
|
+
children: ["code"],
|
|
6428
|
+
columnAlign: "Start",
|
|
6429
|
+
columnResizing: "Fill",
|
|
6430
|
+
gap: "Medium"
|
|
6431
|
+
},
|
|
6432
|
+
maxColumns: 1,
|
|
6433
|
+
defaultColumns: 1,
|
|
6434
|
+
appearance: {
|
|
6435
|
+
isBordered: false,
|
|
6436
|
+
hasBackground: false,
|
|
6437
|
+
isEditorPresentationDifferent: false
|
|
6438
|
+
}
|
|
6439
|
+
},
|
|
6440
|
+
{
|
|
6441
|
+
id: "codeRight",
|
|
6442
|
+
name: "Side by side, code right",
|
|
6443
|
+
image: "thumbnails/RenderCode_CodeRight.png",
|
|
6444
|
+
description: "Side-by-side preview and code, with code on the right.",
|
|
6445
|
+
layout: {
|
|
6446
|
+
type: "Column",
|
|
6447
|
+
children: ["code"],
|
|
6448
|
+
columnAlign: "Start",
|
|
6449
|
+
columnResizing: "Fill",
|
|
6450
|
+
gap: "Medium"
|
|
6451
|
+
},
|
|
6452
|
+
maxColumns: 1,
|
|
6453
|
+
defaultColumns: 1,
|
|
6454
|
+
appearance: {
|
|
6455
|
+
isBordered: false,
|
|
6456
|
+
hasBackground: false,
|
|
6457
|
+
isEditorPresentationDifferent: false
|
|
6458
|
+
}
|
|
6459
|
+
}
|
|
6460
|
+
],
|
|
6461
|
+
defaultVariantKey: "codeBottom"
|
|
6462
|
+
},
|
|
6463
|
+
behavior: {
|
|
6464
|
+
dataType: "Item",
|
|
6465
|
+
items: {
|
|
6466
|
+
numberOfItems: 1,
|
|
6467
|
+
allowLinks: false
|
|
6468
|
+
}
|
|
6469
|
+
},
|
|
6470
|
+
editorOptions: {
|
|
6471
|
+
onboarding: {
|
|
6472
|
+
helpText: "Display rendered code example",
|
|
6473
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/render-react-code-vxufnkFm"
|
|
6474
|
+
}
|
|
6475
|
+
},
|
|
6476
|
+
appearance: {
|
|
6477
|
+
isBordered: false,
|
|
6478
|
+
hasBackground: false
|
|
6479
|
+
}
|
|
6480
|
+
},
|
|
6481
|
+
{
|
|
6482
|
+
id: "io.supernova.block.link",
|
|
6483
|
+
name: "Link",
|
|
6484
|
+
description: "Preview of a link",
|
|
6485
|
+
category: "Media",
|
|
6486
|
+
searchKeywords: [],
|
|
6487
|
+
item: {
|
|
6488
|
+
properties: [
|
|
6489
|
+
{
|
|
6490
|
+
id: "block.links.property.url",
|
|
6491
|
+
name: "URL",
|
|
6492
|
+
type: "EmbedURL",
|
|
6493
|
+
options: {
|
|
6494
|
+
defaultHeight: 120,
|
|
6495
|
+
allowResize: false
|
|
6496
|
+
}
|
|
6497
|
+
}
|
|
6498
|
+
],
|
|
6499
|
+
appearance: {
|
|
6500
|
+
isBordered: false,
|
|
6501
|
+
hasBackground: false
|
|
6502
|
+
},
|
|
6503
|
+
variants: [
|
|
6504
|
+
{
|
|
6505
|
+
id: "default",
|
|
6506
|
+
name: "Default",
|
|
6507
|
+
layout: {
|
|
6508
|
+
type: "Column",
|
|
6509
|
+
children: ["block.links.property.url"],
|
|
6510
|
+
columnAlign: "Start",
|
|
6511
|
+
columnResizing: "Fill",
|
|
6512
|
+
gap: "Medium"
|
|
6513
|
+
},
|
|
6514
|
+
maxColumns: 1,
|
|
6515
|
+
defaultColumns: 1,
|
|
6516
|
+
appearance: {
|
|
6517
|
+
isBordered: false,
|
|
6518
|
+
hasBackground: false,
|
|
6519
|
+
isEditorPresentationDifferent: false
|
|
6520
|
+
}
|
|
6521
|
+
}
|
|
6522
|
+
],
|
|
6523
|
+
defaultVariantKey: "default"
|
|
6524
|
+
},
|
|
6525
|
+
behavior: {
|
|
6526
|
+
dataType: "Item",
|
|
6527
|
+
items: {
|
|
6528
|
+
numberOfItems: 1,
|
|
6529
|
+
allowLinks: false
|
|
6530
|
+
}
|
|
6531
|
+
},
|
|
6532
|
+
editorOptions: {},
|
|
6533
|
+
appearance: {
|
|
6534
|
+
isBordered: false,
|
|
6535
|
+
hasBackground: false
|
|
6536
|
+
}
|
|
6537
|
+
},
|
|
6538
|
+
{
|
|
6539
|
+
id: "io.supernova.block.assets",
|
|
6540
|
+
name: "Assets",
|
|
6541
|
+
description: "Display icons or illustrations",
|
|
6542
|
+
category: "Assets",
|
|
6543
|
+
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "theme"],
|
|
6544
|
+
item: {
|
|
6545
|
+
properties: [
|
|
6546
|
+
{
|
|
6547
|
+
id: "assets",
|
|
6548
|
+
name: "Assets",
|
|
6549
|
+
type: "Asset",
|
|
6550
|
+
options: {}
|
|
6551
|
+
}
|
|
6552
|
+
],
|
|
6553
|
+
appearance: {
|
|
6554
|
+
isBordered: false,
|
|
6555
|
+
hasBackground: false
|
|
6556
|
+
},
|
|
6557
|
+
variants: [
|
|
6558
|
+
{
|
|
6559
|
+
id: "default",
|
|
6560
|
+
name: "Simple grid",
|
|
6561
|
+
image: "assets/variant-default.png",
|
|
6562
|
+
description: "A simple grid of assets. Both the title and description are displayed below the preview.",
|
|
6563
|
+
layout: {
|
|
6564
|
+
type: "Column",
|
|
6565
|
+
children: ["assets"],
|
|
6566
|
+
columnAlign: "Start",
|
|
6567
|
+
columnResizing: "Fill",
|
|
6568
|
+
gap: "Medium"
|
|
6569
|
+
},
|
|
6570
|
+
maxColumns: 1,
|
|
6571
|
+
defaultColumns: 1,
|
|
6572
|
+
appearance: {
|
|
6573
|
+
isBordered: false,
|
|
6574
|
+
hasBackground: false,
|
|
6575
|
+
isEditorPresentationDifferent: false
|
|
6576
|
+
}
|
|
6577
|
+
},
|
|
6578
|
+
{
|
|
6579
|
+
id: "square-grid",
|
|
6580
|
+
name: "Square grid",
|
|
6581
|
+
image: "assets/variant-square-grid.png",
|
|
6582
|
+
description: "Bordered square grid tailored for displaying icon assets. Only the title is displayed.",
|
|
6583
|
+
layout: {
|
|
6584
|
+
type: "Column",
|
|
6585
|
+
children: ["assets"],
|
|
6586
|
+
columnAlign: "Start",
|
|
6587
|
+
columnResizing: "Fill",
|
|
6588
|
+
gap: "Medium"
|
|
6589
|
+
},
|
|
6590
|
+
maxColumns: 1,
|
|
6591
|
+
defaultColumns: 1,
|
|
6592
|
+
appearance: {
|
|
6593
|
+
isBordered: false,
|
|
6594
|
+
hasBackground: false,
|
|
6595
|
+
isEditorPresentationDifferent: false
|
|
6596
|
+
}
|
|
6597
|
+
},
|
|
6598
|
+
{
|
|
6599
|
+
id: "borderless-grid",
|
|
6600
|
+
name: "Borderless grid",
|
|
6601
|
+
image: "assets/variant-color-stack.png",
|
|
6602
|
+
description: "Borderless grid, perfect for displaying assets of the same height. Only the title is visible.",
|
|
6603
|
+
layout: {
|
|
6604
|
+
type: "Column",
|
|
6605
|
+
children: ["assets"],
|
|
6606
|
+
columnAlign: "Start",
|
|
6607
|
+
columnResizing: "Fill",
|
|
6608
|
+
gap: "Medium"
|
|
6609
|
+
},
|
|
6610
|
+
maxColumns: 1,
|
|
6611
|
+
defaultColumns: 1,
|
|
6612
|
+
appearance: {
|
|
6613
|
+
isBordered: false,
|
|
6614
|
+
hasBackground: false,
|
|
6615
|
+
isEditorPresentationDifferent: false
|
|
6616
|
+
}
|
|
6617
|
+
}
|
|
6618
|
+
],
|
|
6619
|
+
defaultVariantKey: "default"
|
|
6620
|
+
},
|
|
6621
|
+
behavior: {
|
|
6622
|
+
dataType: "Asset",
|
|
6623
|
+
entities: {
|
|
6624
|
+
selectionType: "Entity",
|
|
6625
|
+
maxSelected: 0
|
|
6626
|
+
}
|
|
6627
|
+
},
|
|
6628
|
+
editorOptions: {
|
|
6629
|
+
onboarding: {
|
|
6630
|
+
helpText: "Display a grid of icons or illustrations.",
|
|
6631
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/asset/general-xa6EgXb2"
|
|
6632
|
+
}
|
|
6633
|
+
},
|
|
6634
|
+
appearance: {
|
|
6635
|
+
isBordered: false,
|
|
6636
|
+
hasBackground: false
|
|
6637
|
+
}
|
|
6638
|
+
},
|
|
6639
|
+
{
|
|
6640
|
+
id: "io.supernova.block.figma-frames",
|
|
6641
|
+
name: "Figma frames",
|
|
6642
|
+
description: "Display Figma frames as images",
|
|
6643
|
+
category: "Figma",
|
|
6644
|
+
searchKeywords: ["figma", "frames", "image"],
|
|
6645
|
+
item: {
|
|
6646
|
+
properties: [
|
|
6647
|
+
{
|
|
6648
|
+
id: "figmaFrames",
|
|
6649
|
+
name: "Figma Frames (tbd)",
|
|
6650
|
+
type: "Asset",
|
|
6651
|
+
options: {}
|
|
6652
|
+
}
|
|
6653
|
+
],
|
|
6654
|
+
appearance: {
|
|
6655
|
+
isBordered: false,
|
|
6656
|
+
hasBackground: false
|
|
6657
|
+
},
|
|
6658
|
+
variants: [
|
|
6659
|
+
{
|
|
6660
|
+
id: "bordered",
|
|
6661
|
+
name: "Bordered",
|
|
6662
|
+
image: "assets/variant-default.png",
|
|
6663
|
+
description: "Tiles with background and border, great for larger sets of frames.",
|
|
6664
|
+
layout: {
|
|
6665
|
+
type: "Column",
|
|
6666
|
+
children: ["figmaFrames"],
|
|
6667
|
+
columnAlign: "Start",
|
|
6668
|
+
columnResizing: "Fill",
|
|
6669
|
+
gap: "Medium"
|
|
6670
|
+
},
|
|
6671
|
+
maxColumns: 1,
|
|
6672
|
+
defaultColumns: 1,
|
|
6673
|
+
appearance: {
|
|
6674
|
+
isBordered: false,
|
|
6675
|
+
hasBackground: false,
|
|
6676
|
+
isEditorPresentationDifferent: false
|
|
6677
|
+
}
|
|
6678
|
+
},
|
|
6679
|
+
{
|
|
6680
|
+
id: "plain",
|
|
6681
|
+
name: "Plain",
|
|
6682
|
+
image: "assets/variant-square-grid.png",
|
|
6683
|
+
description: "Frame as it is in Figma with no extra formatting, great for single images.",
|
|
6684
|
+
layout: {
|
|
6685
|
+
type: "Column",
|
|
6686
|
+
children: ["figmaFrames"],
|
|
6687
|
+
columnAlign: "Start",
|
|
6688
|
+
columnResizing: "Fill",
|
|
6689
|
+
gap: "Medium"
|
|
6690
|
+
},
|
|
6691
|
+
maxColumns: 1,
|
|
6692
|
+
defaultColumns: 1,
|
|
6693
|
+
appearance: {
|
|
6694
|
+
isBordered: false,
|
|
6695
|
+
hasBackground: false,
|
|
6696
|
+
isEditorPresentationDifferent: false
|
|
6697
|
+
}
|
|
6698
|
+
}
|
|
6699
|
+
],
|
|
6700
|
+
defaultVariantKey: "bordered"
|
|
6701
|
+
},
|
|
6702
|
+
behavior: {
|
|
6703
|
+
dataType: "FigmaFrame",
|
|
6704
|
+
entities: {
|
|
6705
|
+
selectionType: "Entity",
|
|
6706
|
+
maxSelected: 0
|
|
6707
|
+
}
|
|
6708
|
+
},
|
|
6709
|
+
editorOptions: {
|
|
6710
|
+
onboarding: {
|
|
6711
|
+
helpText: "Display Figma frames as images.",
|
|
6712
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/figma-frames/general-f3IYC5dg"
|
|
6713
|
+
}
|
|
6714
|
+
},
|
|
6715
|
+
appearance: {
|
|
6716
|
+
isBordered: false,
|
|
6717
|
+
hasBackground: false
|
|
6718
|
+
}
|
|
6719
|
+
},
|
|
6720
|
+
{
|
|
6721
|
+
id: "io.supernova.block.release-notes",
|
|
6722
|
+
name: "Release notes",
|
|
6723
|
+
description: "Show version release notes",
|
|
6724
|
+
category: "Other",
|
|
6725
|
+
searchKeywords: ["version", "changelog", "history"],
|
|
6726
|
+
item: {
|
|
6727
|
+
properties: [],
|
|
6728
|
+
appearance: {
|
|
6729
|
+
isBordered: false,
|
|
6730
|
+
hasBackground: false
|
|
6731
|
+
},
|
|
6732
|
+
variants: [
|
|
6733
|
+
{
|
|
6734
|
+
id: "default",
|
|
6735
|
+
name: "Default",
|
|
6736
|
+
layout: {
|
|
6737
|
+
type: "Column",
|
|
6738
|
+
children: [],
|
|
6739
|
+
columnAlign: "Start",
|
|
6740
|
+
columnResizing: "Fill",
|
|
6741
|
+
gap: "Medium"
|
|
6742
|
+
},
|
|
6743
|
+
maxColumns: 1,
|
|
6744
|
+
defaultColumns: 1,
|
|
6745
|
+
appearance: {
|
|
6746
|
+
isBordered: false,
|
|
6747
|
+
hasBackground: false,
|
|
6748
|
+
isEditorPresentationDifferent: false
|
|
6749
|
+
}
|
|
6750
|
+
}
|
|
6751
|
+
],
|
|
6752
|
+
defaultVariantKey: "default"
|
|
6753
|
+
},
|
|
6754
|
+
behavior: {
|
|
6755
|
+
dataType: "Item",
|
|
6756
|
+
items: {
|
|
6757
|
+
numberOfItems: 1,
|
|
6758
|
+
allowLinks: false
|
|
6759
|
+
}
|
|
6760
|
+
},
|
|
6761
|
+
editorOptions: {
|
|
6762
|
+
onboarding: {
|
|
6763
|
+
helpText: "Show formatted release notes from all previous released versions"
|
|
6764
|
+
}
|
|
6765
|
+
},
|
|
6766
|
+
appearance: {
|
|
6767
|
+
isBordered: false,
|
|
6768
|
+
hasBackground: false
|
|
6769
|
+
}
|
|
6770
|
+
},
|
|
6771
|
+
{
|
|
6772
|
+
id: "io.supernova.block.component-checklist",
|
|
6773
|
+
name: "Component checklist",
|
|
6774
|
+
description: "Highlight specific features of your components",
|
|
6775
|
+
category: "Components",
|
|
6776
|
+
searchKeywords: ["components", "health", "properties", "overview", "status"],
|
|
6777
|
+
item: {
|
|
6778
|
+
properties: [
|
|
6779
|
+
{
|
|
6780
|
+
id: "components",
|
|
6781
|
+
name: "Components",
|
|
6782
|
+
type: "Component",
|
|
6783
|
+
options: {
|
|
6784
|
+
renderLayoutAs: "List"
|
|
6785
|
+
}
|
|
6786
|
+
}
|
|
6787
|
+
],
|
|
6788
|
+
appearance: {
|
|
6789
|
+
isBordered: false,
|
|
6790
|
+
hasBackground: false
|
|
6791
|
+
},
|
|
6792
|
+
variants: [
|
|
6793
|
+
{
|
|
6794
|
+
id: "default",
|
|
6795
|
+
name: "Default",
|
|
6796
|
+
layout: {
|
|
6797
|
+
type: "Column",
|
|
6798
|
+
children: ["components"],
|
|
6799
|
+
columnAlign: "Start",
|
|
6800
|
+
columnResizing: "Fill",
|
|
6801
|
+
gap: "Medium"
|
|
6802
|
+
},
|
|
6803
|
+
maxColumns: 1,
|
|
6804
|
+
defaultColumns: 1,
|
|
6805
|
+
appearance: {
|
|
6806
|
+
isBordered: false,
|
|
6807
|
+
hasBackground: false,
|
|
6808
|
+
isEditorPresentationDifferent: false
|
|
6809
|
+
}
|
|
6810
|
+
}
|
|
6811
|
+
],
|
|
6812
|
+
defaultVariantKey: "default"
|
|
6813
|
+
},
|
|
6814
|
+
behavior: {
|
|
6815
|
+
dataType: "Component",
|
|
6816
|
+
entities: {
|
|
6817
|
+
selectionType: "Entity",
|
|
6818
|
+
maxSelected: 1
|
|
6819
|
+
}
|
|
6820
|
+
},
|
|
6821
|
+
editorOptions: {
|
|
6822
|
+
onboarding: {
|
|
6823
|
+
helpText: "Highlight specific features of your components.",
|
|
6824
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-checklist-NXepPIpZ"
|
|
6825
|
+
}
|
|
6826
|
+
},
|
|
6827
|
+
appearance: {
|
|
6828
|
+
isBordered: false,
|
|
6829
|
+
hasBackground: false
|
|
6830
|
+
}
|
|
6831
|
+
},
|
|
6832
|
+
{
|
|
6833
|
+
id: "io.supernova.block.component-checklist-all",
|
|
6834
|
+
name: "Component overview table",
|
|
6835
|
+
description: "Show the overview of all your components",
|
|
6836
|
+
category: "Components",
|
|
6837
|
+
searchKeywords: ["components", "health", "properties", "overview", "status"],
|
|
6838
|
+
item: {
|
|
6839
|
+
properties: [
|
|
6840
|
+
{
|
|
6841
|
+
id: "components",
|
|
6842
|
+
name: "Components",
|
|
6843
|
+
type: "Component",
|
|
6844
|
+
options: {
|
|
6845
|
+
renderLayoutAs: "List"
|
|
6846
|
+
}
|
|
6847
|
+
}
|
|
6848
|
+
],
|
|
6849
|
+
appearance: {
|
|
6850
|
+
isBordered: false,
|
|
6851
|
+
hasBackground: false
|
|
6852
|
+
},
|
|
6853
|
+
variants: [
|
|
6854
|
+
{
|
|
6855
|
+
id: "default",
|
|
6856
|
+
name: "Default",
|
|
6857
|
+
layout: {
|
|
6858
|
+
type: "Column",
|
|
6859
|
+
children: ["components"],
|
|
6860
|
+
columnAlign: "Start",
|
|
6861
|
+
columnResizing: "Fill",
|
|
6862
|
+
gap: "Medium"
|
|
6863
|
+
},
|
|
6864
|
+
maxColumns: 1,
|
|
6865
|
+
defaultColumns: 1,
|
|
6866
|
+
appearance: {
|
|
6867
|
+
isBordered: false,
|
|
6868
|
+
hasBackground: false,
|
|
6869
|
+
isEditorPresentationDifferent: false
|
|
6870
|
+
}
|
|
6871
|
+
}
|
|
6872
|
+
],
|
|
6873
|
+
defaultVariantKey: "default"
|
|
6874
|
+
},
|
|
6875
|
+
behavior: {
|
|
6876
|
+
dataType: "Component",
|
|
6877
|
+
entities: {
|
|
6878
|
+
selectionType: "Group",
|
|
6879
|
+
maxSelected: 1
|
|
6880
|
+
}
|
|
6881
|
+
},
|
|
6882
|
+
editorOptions: {
|
|
6883
|
+
onboarding: {
|
|
6884
|
+
helpText: "Show the overview of all your components",
|
|
6885
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-overview-table-W8eOtJ5t"
|
|
6886
|
+
}
|
|
6887
|
+
},
|
|
6888
|
+
appearance: {
|
|
6889
|
+
isBordered: false,
|
|
6890
|
+
hasBackground: false
|
|
6891
|
+
}
|
|
6892
|
+
},
|
|
6893
|
+
{
|
|
6894
|
+
id: "io.supernova.block.component-health",
|
|
6895
|
+
name: "Component health",
|
|
6896
|
+
description: "Show component health and additional attributes",
|
|
6897
|
+
category: "Components",
|
|
6898
|
+
searchKeywords: ["components", "health", "properties", "overview", "status"],
|
|
6899
|
+
item: {
|
|
6900
|
+
properties: [
|
|
6901
|
+
{
|
|
6902
|
+
id: "components",
|
|
6903
|
+
name: "Components",
|
|
6904
|
+
type: "Component",
|
|
6905
|
+
options: {
|
|
6906
|
+
renderLayoutAs: "List"
|
|
6907
|
+
}
|
|
6908
|
+
}
|
|
6909
|
+
],
|
|
6910
|
+
appearance: {
|
|
6911
|
+
isBordered: false,
|
|
6912
|
+
hasBackground: false
|
|
6913
|
+
},
|
|
6914
|
+
variants: [
|
|
6915
|
+
{
|
|
6916
|
+
id: "default",
|
|
6917
|
+
name: "Default",
|
|
6918
|
+
layout: {
|
|
6919
|
+
type: "Column",
|
|
6920
|
+
children: ["components"],
|
|
6921
|
+
columnAlign: "Start",
|
|
6922
|
+
columnResizing: "Fill",
|
|
6923
|
+
gap: "Medium"
|
|
6924
|
+
},
|
|
6925
|
+
maxColumns: 1,
|
|
6926
|
+
defaultColumns: 1,
|
|
6927
|
+
appearance: {
|
|
6928
|
+
isBordered: false,
|
|
6929
|
+
hasBackground: false,
|
|
6930
|
+
isEditorPresentationDifferent: false
|
|
6931
|
+
}
|
|
6932
|
+
}
|
|
6933
|
+
],
|
|
6934
|
+
defaultVariantKey: "default"
|
|
6935
|
+
},
|
|
6936
|
+
behavior: {
|
|
6937
|
+
dataType: "Component",
|
|
6938
|
+
entities: {
|
|
6939
|
+
selectionType: "Entity",
|
|
6940
|
+
maxSelected: 1
|
|
6941
|
+
}
|
|
6942
|
+
},
|
|
6943
|
+
editorOptions: {
|
|
6944
|
+
onboarding: {
|
|
6945
|
+
helpText: "Show component health and additional attributes",
|
|
6946
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/component/component-health-sezSxEED"
|
|
6947
|
+
}
|
|
6948
|
+
},
|
|
6949
|
+
appearance: {
|
|
6950
|
+
isBordered: false,
|
|
6951
|
+
hasBackground: false
|
|
6952
|
+
}
|
|
5808
6953
|
}
|
|
5809
6954
|
];
|
|
5810
6955
|
|
|
@@ -5921,7 +7066,7 @@ function parseAsMultiRichText(prosemirrorNode, definition, property) {
|
|
|
5921
7066
|
value: (_nullishCoalesce(prosemirrorNode.content, () => ( []))).map((listItem) => {
|
|
5922
7067
|
if (listItem.type !== "listitem")
|
|
5923
7068
|
return null;
|
|
5924
|
-
if (!_optionalChain([listItem, 'access',
|
|
7069
|
+
if (!_optionalChain([listItem, 'access', _13 => _13.content, 'optionalAccess', _14 => _14.length]))
|
|
5925
7070
|
return parseRichText([]);
|
|
5926
7071
|
const paragraph = listItem.content[0];
|
|
5927
7072
|
if (paragraph.type !== "paragraph")
|
|
@@ -5966,7 +7111,7 @@ function parseRichTextAttribute(mark) {
|
|
|
5966
7111
|
const href = typeof hrefRaw === "string" ? hrefRaw : void 0;
|
|
5967
7112
|
return {
|
|
5968
7113
|
type: "Link",
|
|
5969
|
-
openInNewWindow: _optionalChain([mark, 'access',
|
|
7114
|
+
openInNewWindow: _optionalChain([mark, 'access', _15 => _15.attrs, 'optionalAccess', _16 => _16.target]) !== "_self",
|
|
5970
7115
|
documentationItemId: itemId,
|
|
5971
7116
|
link: href
|
|
5972
7117
|
};
|
|
@@ -5980,17 +7125,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
5980
7125
|
const variantIdRaw = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "variantId");
|
|
5981
7126
|
const variantId = typeof variantIdRaw === "string" ? variantIdRaw : void 0;
|
|
5982
7127
|
const hasBorder = parseProsemirrorOptionalBlockAttribute(prosemirrorNode, "hasBorder") !== false;
|
|
5983
|
-
const tableChild = _optionalChain([prosemirrorNode, 'access',
|
|
7128
|
+
const tableChild = _optionalChain([prosemirrorNode, 'access', _17 => _17.content, 'optionalAccess', _18 => _18.find, 'call', _19 => _19((c) => c.type === "table")]);
|
|
5984
7129
|
if (!tableChild) {
|
|
5985
7130
|
return emptyTable(id, variantId, 0);
|
|
5986
7131
|
}
|
|
5987
|
-
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access',
|
|
7132
|
+
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _20 => _20.content, 'optionalAccess', _21 => _21.filter, 'call', _22 => _22((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _23 => _23.content, 'optionalAccess', _24 => _24.length]))]), () => ( []));
|
|
5988
7133
|
if (!rows.length) {
|
|
5989
7134
|
return emptyTable(id, variantId, 0);
|
|
5990
7135
|
}
|
|
5991
|
-
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access',
|
|
5992
|
-
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access',
|
|
5993
|
-
const hasHeaderRow = _optionalChain([rows, 'access',
|
|
7136
|
+
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _25 => _25[0], 'access', _26 => _26.content, 'optionalAccess', _27 => _27.filter, 'call', _28 => _28((c) => c.type === "tableHeader"), 'access', _29 => _29.length]), () => ( 0));
|
|
7137
|
+
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _30 => _30.content, 'optionalAccess', _31 => _31[0], 'optionalAccess', _32 => _32.type]) === "tableHeader").length;
|
|
7138
|
+
const hasHeaderRow = _optionalChain([rows, 'access', _33 => _33[0], 'access', _34 => _34.content, 'optionalAccess', _35 => _35.length]) === rowHeaderCells;
|
|
5994
7139
|
const hasHeaderColumn = rows.length === columnHeaderCells;
|
|
5995
7140
|
const tableValue = {
|
|
5996
7141
|
showBorder: hasBorder,
|
|
@@ -6180,7 +7325,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
6180
7325
|
packageId: definition.id,
|
|
6181
7326
|
indentLevel: 0,
|
|
6182
7327
|
...variantId && { variantId },
|
|
6183
|
-
appearance,
|
|
7328
|
+
...appearance && { appearance },
|
|
6184
7329
|
items: parsedItems
|
|
6185
7330
|
}
|
|
6186
7331
|
};
|
|
@@ -6209,6 +7354,8 @@ function parseAppearance(prosemirrorNode) {
|
|
|
6209
7354
|
appearance.itemBackgroundColor = parsedColor.data;
|
|
6210
7355
|
}
|
|
6211
7356
|
}
|
|
7357
|
+
if (!Object.keys(appearance).length)
|
|
7358
|
+
return void 0;
|
|
6212
7359
|
return appearance;
|
|
6213
7360
|
}
|
|
6214
7361
|
function parseItem(rawItem, definition) {
|
|
@@ -6296,7 +7443,7 @@ function parseProsemirrorBlockAttribute(prosemirrorNode, attributeName) {
|
|
|
6296
7443
|
return attributeValue;
|
|
6297
7444
|
}
|
|
6298
7445
|
function parseProsemirrorOptionalBlockAttribute(prosemirrorNode, attributeName) {
|
|
6299
|
-
return _nullishCoalesce(_optionalChain([prosemirrorNode, 'access',
|
|
7446
|
+
return _nullishCoalesce(_optionalChain([prosemirrorNode, 'access', _36 => _36.attrs, 'optionalAccess', _37 => _37[attributeName]]), () => ( void 0));
|
|
6300
7447
|
}
|
|
6301
7448
|
function nonNullFilter2(item) {
|
|
6302
7449
|
return item !== null;
|