@supernova-studio/client 0.52.12 → 0.52.14
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 +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +100 -96
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +616 -612
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/components/figma-component.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -40,33 +40,33 @@ import { z as z24 } from "zod";
|
|
|
40
40
|
import { z as z26 } from "zod";
|
|
41
41
|
import { z as z25 } from "zod";
|
|
42
42
|
import { z as z27 } from "zod";
|
|
43
|
-
import { z as z29 } from "zod";
|
|
44
43
|
import { z as z28 } from "zod";
|
|
45
|
-
import { z as z30 } from "zod";
|
|
46
44
|
import { z as z31 } from "zod";
|
|
47
|
-
import { z as
|
|
45
|
+
import { z as z30 } from "zod";
|
|
46
|
+
import { z as z29 } from "zod";
|
|
48
47
|
import { z as z33 } from "zod";
|
|
49
48
|
import { z as z32 } from "zod";
|
|
50
|
-
import { z as z35 } from "zod";
|
|
51
49
|
import deepEqual from "deep-equal";
|
|
52
|
-
import { z as
|
|
53
|
-
import { z as
|
|
50
|
+
import { z as z40 } from "zod";
|
|
51
|
+
import { z as z34 } from "zod";
|
|
54
52
|
import slugifyImplementation from "@sindresorhus/slugify";
|
|
53
|
+
import { z as z35 } from "zod";
|
|
54
|
+
import { z as z36 } from "zod";
|
|
55
55
|
import { z as z37 } from "zod";
|
|
56
56
|
import { z as z38 } from "zod";
|
|
57
57
|
import { z as z39 } from "zod";
|
|
58
|
-
import { z as z40 } from "zod";
|
|
59
58
|
import { z as z41 } from "zod";
|
|
59
|
+
import { z as z45 } from "zod";
|
|
60
|
+
import { z as z44 } from "zod";
|
|
60
61
|
import { z as z43 } from "zod";
|
|
62
|
+
import { z as z42 } from "zod";
|
|
63
|
+
import { z as z48 } from "zod";
|
|
61
64
|
import { z as z47 } from "zod";
|
|
62
65
|
import { z as z46 } from "zod";
|
|
63
|
-
import { z as
|
|
64
|
-
import { z as z44 } from "zod";
|
|
66
|
+
import { z as z51 } from "zod";
|
|
65
67
|
import { z as z50 } from "zod";
|
|
66
68
|
import { z as z49 } from "zod";
|
|
67
|
-
import { z as z48 } from "zod";
|
|
68
69
|
import { z as z52 } from "zod";
|
|
69
|
-
import { z as z51 } from "zod";
|
|
70
70
|
import { z as z53 } from "zod";
|
|
71
71
|
import { z as z54 } from "zod";
|
|
72
72
|
import { z as z55 } from "zod";
|
|
@@ -89,9 +89,9 @@ import { z as z71 } from "zod";
|
|
|
89
89
|
import { z as z72 } from "zod";
|
|
90
90
|
import { z as z73 } from "zod";
|
|
91
91
|
import { z as z74 } from "zod";
|
|
92
|
+
import { z as z76 } from "zod";
|
|
92
93
|
import { z as z75 } from "zod";
|
|
93
94
|
import { z as z77 } from "zod";
|
|
94
|
-
import { z as z76 } from "zod";
|
|
95
95
|
import { z as z78 } from "zod";
|
|
96
96
|
import { z as z79 } from "zod";
|
|
97
97
|
import { z as z80 } from "zod";
|
|
@@ -591,158 +591,109 @@ var ImportWarning = z23.object({
|
|
|
591
591
|
unsupportedStyleValueType: z23.string().optional(),
|
|
592
592
|
referenceId: z23.string().optional()
|
|
593
593
|
});
|
|
594
|
-
var
|
|
595
|
-
|
|
596
|
-
sourceId: z24.string(),
|
|
597
|
-
name: z24.string()
|
|
598
|
-
});
|
|
599
|
-
var DesignElementBase = z24.object({
|
|
600
|
-
id: z24.string(),
|
|
601
|
-
persistentId: z24.string(),
|
|
602
|
-
meta: ObjectMeta,
|
|
603
|
-
designSystemVersionId: z24.string(),
|
|
604
|
-
createdAt: z24.coerce.date(),
|
|
605
|
-
updatedAt: z24.coerce.date()
|
|
606
|
-
});
|
|
607
|
-
var DesignElementImportedBase = DesignElementBase.extend({
|
|
608
|
-
origin: DesignElementOrigin
|
|
609
|
-
});
|
|
610
|
-
var DesignElementGroupablePart = z24.object({
|
|
611
|
-
parentPersistentId: z24.string().optional(),
|
|
612
|
-
sortOrder: z24.number()
|
|
613
|
-
});
|
|
614
|
-
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
615
|
-
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
616
|
-
parentPersistentId: z24.string()
|
|
617
|
-
});
|
|
618
|
-
var DesignElementBrandedPart = z24.object({
|
|
619
|
-
brandPersistentId: z24.string()
|
|
620
|
-
});
|
|
621
|
-
var DesignElementSlugPart = z24.object({
|
|
622
|
-
slug: z24.string().optional(),
|
|
623
|
-
userSlug: z24.string().optional()
|
|
624
|
-
});
|
|
625
|
-
var FigmaComponentPropertyType = z25.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
|
|
626
|
-
var FigmaComponentBooleanProperty = z25.object({
|
|
627
|
-
type: z25.literal(FigmaComponentPropertyType.enum.Boolean),
|
|
628
|
-
defaultValue: z25.boolean()
|
|
629
|
-
});
|
|
630
|
-
var FigmaComponentInstanceSwapProperty = z25.object({
|
|
631
|
-
type: z25.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
632
|
-
defaultValue: z25.string(),
|
|
633
|
-
preferredValues: z25.object({
|
|
634
|
-
type: z25.enum(["Component", "ComponentSet"]),
|
|
635
|
-
key: z25.string()
|
|
636
|
-
}).array()
|
|
637
|
-
});
|
|
638
|
-
var FigmaComponentVariantProperty = z25.object({
|
|
639
|
-
type: z25.literal(FigmaComponentPropertyType.enum.Variant),
|
|
640
|
-
defaultValue: z25.string(),
|
|
641
|
-
options: z25.array(z25.string())
|
|
642
|
-
});
|
|
643
|
-
var FigmaComponentTextProperty = z25.object({
|
|
644
|
-
type: z25.literal(FigmaComponentPropertyType.enum.Text),
|
|
645
|
-
defaultValue: z25.string()
|
|
646
|
-
});
|
|
647
|
-
var FigmaComponentProperty = z25.discriminatedUnion("type", [
|
|
648
|
-
FigmaComponentBooleanProperty,
|
|
649
|
-
FigmaComponentInstanceSwapProperty,
|
|
650
|
-
FigmaComponentTextProperty
|
|
651
|
-
]);
|
|
652
|
-
var FigmaComponentPropertyMap = z25.record(z25.string(), FigmaComponentProperty);
|
|
653
|
-
var FigmaComponentSetProperties = z25.record(
|
|
654
|
-
z25.string(),
|
|
655
|
-
z25.discriminatedUnion("type", [
|
|
656
|
-
FigmaComponentBooleanProperty,
|
|
657
|
-
FigmaComponentInstanceSwapProperty,
|
|
658
|
-
FigmaComponentTextProperty,
|
|
659
|
-
FigmaComponentVariantProperty
|
|
660
|
-
])
|
|
661
|
-
);
|
|
662
|
-
var FigmaComponentOriginPart = z26.object({
|
|
663
|
-
nodeId: z26.string().optional(),
|
|
664
|
-
width: z26.number().optional(),
|
|
665
|
-
height: z26.number().optional()
|
|
666
|
-
});
|
|
667
|
-
var FigmaComponentAsset = z26.object({
|
|
668
|
-
assetId: z26.string(),
|
|
669
|
-
assetPath: z26.string()
|
|
670
|
-
});
|
|
671
|
-
var FigmaComponentOrigin = DesignElementOrigin.extend(FigmaComponentOriginPart.shape);
|
|
672
|
-
var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
673
|
-
origin: FigmaComponentOrigin.optional(),
|
|
674
|
-
thumbnail: FigmaComponentAsset,
|
|
675
|
-
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
676
|
-
svg: FigmaComponentAsset.optional(),
|
|
677
|
-
isAsset: z26.boolean(),
|
|
678
|
-
parentComponentPersistentId: nullishToOptional(z26.string())
|
|
679
|
-
});
|
|
680
|
-
var TokenDataAliasSchema = z27.object({
|
|
681
|
-
aliasTo: z27.string().optional().nullable().transform((v) => v ?? void 0)
|
|
594
|
+
var TokenDataAliasSchema = z24.object({
|
|
595
|
+
aliasTo: z24.string().optional().nullable().transform((v) => v ?? void 0)
|
|
682
596
|
});
|
|
683
597
|
function tokenAliasOrValue(value) {
|
|
684
598
|
return TokenDataAliasSchema.extend({
|
|
685
599
|
value: value.optional().nullable().transform((v) => v ?? void 0)
|
|
686
600
|
});
|
|
687
601
|
}
|
|
688
|
-
var DimensionUnit =
|
|
689
|
-
var DimensionValue =
|
|
602
|
+
var DimensionUnit = z25.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
|
|
603
|
+
var DimensionValue = z25.object({
|
|
690
604
|
unit: DimensionUnit,
|
|
691
|
-
measure:
|
|
605
|
+
measure: z25.number()
|
|
692
606
|
});
|
|
693
607
|
var DimensionTokenData = tokenAliasOrValue(DimensionValue);
|
|
694
|
-
var BlurType =
|
|
695
|
-
var BlurValue =
|
|
608
|
+
var BlurType = z26.enum(["Layer", "Background"]);
|
|
609
|
+
var BlurValue = z26.object({
|
|
696
610
|
type: BlurType,
|
|
697
611
|
radius: DimensionTokenData
|
|
698
612
|
});
|
|
699
613
|
var BlurTokenData = tokenAliasOrValue(BlurValue);
|
|
700
|
-
var BorderRadiusUnit =
|
|
701
|
-
var BorderRadiusValue =
|
|
614
|
+
var BorderRadiusUnit = z27.enum(["Pixels", "Rem", "Percent"]);
|
|
615
|
+
var BorderRadiusValue = z27.object({
|
|
702
616
|
unit: BorderRadiusUnit,
|
|
703
|
-
measure:
|
|
617
|
+
measure: z27.number()
|
|
704
618
|
});
|
|
705
619
|
var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
|
|
706
|
-
var BorderWidthUnit =
|
|
707
|
-
var BorderWidthValue =
|
|
620
|
+
var BorderWidthUnit = z28.enum(["Pixels"]);
|
|
621
|
+
var BorderWidthValue = z28.object({
|
|
708
622
|
unit: BorderWidthUnit,
|
|
709
|
-
measure:
|
|
623
|
+
measure: z28.number()
|
|
710
624
|
});
|
|
711
625
|
var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
|
|
712
|
-
var OpacityValue =
|
|
713
|
-
unit:
|
|
714
|
-
measure:
|
|
626
|
+
var OpacityValue = z29.object({
|
|
627
|
+
unit: z29.enum(["Raw", "Pixels"]),
|
|
628
|
+
measure: z29.number()
|
|
715
629
|
});
|
|
716
630
|
var OpacityTokenData = tokenAliasOrValue(OpacityValue);
|
|
717
|
-
var ColorValue =
|
|
631
|
+
var ColorValue = z30.object({
|
|
718
632
|
opacity: OpacityTokenData,
|
|
719
|
-
color:
|
|
633
|
+
color: z30.string().or(TokenDataAliasSchema)
|
|
720
634
|
});
|
|
721
635
|
var ColorTokenData = tokenAliasOrValue(ColorValue);
|
|
722
|
-
var BorderPosition =
|
|
723
|
-
var BorderStyle =
|
|
724
|
-
var BorderValue =
|
|
636
|
+
var BorderPosition = z31.enum(["Inside", "Center", "Outside"]);
|
|
637
|
+
var BorderStyle = z31.enum(["Dashed", "Dotted", "Solid", "Groove"]);
|
|
638
|
+
var BorderValue = z31.object({
|
|
725
639
|
color: ColorTokenData,
|
|
726
640
|
width: BorderWidthTokenData,
|
|
727
641
|
position: BorderPosition,
|
|
728
642
|
style: BorderStyle.optional()
|
|
729
643
|
});
|
|
730
644
|
var BorderTokenData = tokenAliasOrValue(BorderValue);
|
|
731
|
-
var
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
645
|
+
var FigmaComponentPropertyType = z32.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
|
|
646
|
+
var FigmaComponentBooleanProperty = z32.object({
|
|
647
|
+
type: z32.literal(FigmaComponentPropertyType.enum.Boolean),
|
|
648
|
+
defaultValue: z32.boolean()
|
|
649
|
+
});
|
|
650
|
+
var FigmaComponentInstanceSwapProperty = z32.object({
|
|
651
|
+
type: z32.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
652
|
+
defaultValue: z32.string(),
|
|
653
|
+
preferredValues: z32.object({
|
|
654
|
+
type: z32.enum(["Component", "ComponentSet"]),
|
|
655
|
+
key: z32.string()
|
|
656
|
+
}).array()
|
|
657
|
+
});
|
|
658
|
+
var FigmaComponentVariantProperty = z32.object({
|
|
659
|
+
type: z32.literal(FigmaComponentPropertyType.enum.Variant),
|
|
660
|
+
defaultValue: z32.string(),
|
|
661
|
+
options: z32.array(z32.string())
|
|
662
|
+
});
|
|
663
|
+
var FigmaComponentTextProperty = z32.object({
|
|
664
|
+
type: z32.literal(FigmaComponentPropertyType.enum.Text),
|
|
665
|
+
defaultValue: z32.string()
|
|
666
|
+
});
|
|
667
|
+
var FigmaComponentProperty = z32.discriminatedUnion("type", [
|
|
668
|
+
FigmaComponentBooleanProperty,
|
|
669
|
+
FigmaComponentInstanceSwapProperty,
|
|
670
|
+
FigmaComponentTextProperty
|
|
671
|
+
]);
|
|
672
|
+
var FigmaComponentPropertyMap = z32.record(z32.string(), FigmaComponentProperty);
|
|
673
|
+
var FigmaComponentSetProperties = z32.record(
|
|
674
|
+
z32.string(),
|
|
675
|
+
z32.discriminatedUnion("type", [
|
|
676
|
+
FigmaComponentBooleanProperty,
|
|
677
|
+
FigmaComponentInstanceSwapProperty,
|
|
678
|
+
FigmaComponentTextProperty,
|
|
679
|
+
FigmaComponentVariantProperty
|
|
680
|
+
])
|
|
681
|
+
);
|
|
682
|
+
var ComponentElementData = z33.object({
|
|
683
|
+
value: z33.object({
|
|
684
|
+
thumbnailImage: z33.object({
|
|
685
|
+
value: z33.object({
|
|
686
|
+
url: z33.string(),
|
|
687
|
+
assetId: z33.string()
|
|
737
688
|
})
|
|
738
689
|
}),
|
|
739
|
-
svg:
|
|
740
|
-
value:
|
|
741
|
-
url:
|
|
742
|
-
assetId:
|
|
690
|
+
svg: z33.object({
|
|
691
|
+
value: z33.object({
|
|
692
|
+
url: z33.string(),
|
|
693
|
+
assetId: z33.string()
|
|
743
694
|
})
|
|
744
695
|
}).optional(),
|
|
745
|
-
parentComponentPersistentId: nullishToOptional(
|
|
696
|
+
parentComponentPersistentId: nullishToOptional(z33.string()),
|
|
746
697
|
componentPropertyDefinitions: nullishToOptional(FigmaComponentPropertyMap)
|
|
747
698
|
})
|
|
748
699
|
});
|
|
@@ -853,25 +804,25 @@ function groupBy(items, keyFn) {
|
|
|
853
804
|
}
|
|
854
805
|
return result;
|
|
855
806
|
}
|
|
856
|
-
var ContentLoadInstruction =
|
|
857
|
-
from:
|
|
858
|
-
to:
|
|
859
|
-
authorizationHeaderKvsId:
|
|
860
|
-
timeout:
|
|
807
|
+
var ContentLoadInstruction = z34.object({
|
|
808
|
+
from: z34.string(),
|
|
809
|
+
to: z34.string(),
|
|
810
|
+
authorizationHeaderKvsId: z34.string().optional(),
|
|
811
|
+
timeout: z34.number().optional()
|
|
861
812
|
});
|
|
862
|
-
var ContentLoaderPayload =
|
|
863
|
-
type:
|
|
813
|
+
var ContentLoaderPayload = z34.object({
|
|
814
|
+
type: z34.literal("Single"),
|
|
864
815
|
instruction: ContentLoadInstruction
|
|
865
816
|
}).or(
|
|
866
|
-
|
|
867
|
-
type:
|
|
868
|
-
loadingChunkSize:
|
|
869
|
-
instructions:
|
|
817
|
+
z34.object({
|
|
818
|
+
type: z34.literal("Multiple"),
|
|
819
|
+
loadingChunkSize: z34.number().optional(),
|
|
820
|
+
instructions: z34.array(ContentLoadInstruction)
|
|
870
821
|
})
|
|
871
822
|
).or(
|
|
872
|
-
|
|
873
|
-
type:
|
|
874
|
-
location:
|
|
823
|
+
z34.object({
|
|
824
|
+
type: z34.literal("S3"),
|
|
825
|
+
location: z34.string()
|
|
875
826
|
})
|
|
876
827
|
);
|
|
877
828
|
var RESERVED_SLUGS = [
|
|
@@ -1495,53 +1446,53 @@ var RESERVED_SLUGS = [
|
|
|
1495
1446
|
];
|
|
1496
1447
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
1497
1448
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
1498
|
-
var ElementPropertyTypeSchema =
|
|
1499
|
-
var ElementPropertyTargetType =
|
|
1500
|
-
var ElementPropertyLinkType =
|
|
1449
|
+
var ElementPropertyTypeSchema = z35.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
1450
|
+
var ElementPropertyTargetType = z35.enum(["Token", "Component", "DocumentationPage"]);
|
|
1451
|
+
var ElementPropertyLinkType = z35.enum(["FigmaComponent", "DocumentationPage"]);
|
|
1501
1452
|
var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
1502
|
-
var ColorTokenInlineData =
|
|
1503
|
-
value:
|
|
1453
|
+
var ColorTokenInlineData = z35.object({
|
|
1454
|
+
value: z35.string()
|
|
1504
1455
|
});
|
|
1505
|
-
var ElementPropertyDefinitionOption =
|
|
1506
|
-
id:
|
|
1507
|
-
name:
|
|
1456
|
+
var ElementPropertyDefinitionOption = z35.object({
|
|
1457
|
+
id: z35.string(),
|
|
1458
|
+
name: z35.string(),
|
|
1508
1459
|
backgroundColor: ColorTokenInlineData.optional()
|
|
1509
1460
|
});
|
|
1510
|
-
var ElementPropertyDefinition =
|
|
1511
|
-
id:
|
|
1512
|
-
designSystemVersionId:
|
|
1513
|
-
persistentId:
|
|
1514
|
-
name:
|
|
1515
|
-
codeName:
|
|
1516
|
-
description:
|
|
1461
|
+
var ElementPropertyDefinition = z35.object({
|
|
1462
|
+
id: z35.string(),
|
|
1463
|
+
designSystemVersionId: z35.string(),
|
|
1464
|
+
persistentId: z35.string(),
|
|
1465
|
+
name: z35.string(),
|
|
1466
|
+
codeName: z35.string().regex(CODE_NAME_REGEX),
|
|
1467
|
+
description: z35.string(),
|
|
1517
1468
|
type: ElementPropertyTypeSchema,
|
|
1518
1469
|
targetElementType: ElementPropertyTargetType,
|
|
1519
|
-
options:
|
|
1470
|
+
options: z35.array(ElementPropertyDefinitionOption).optional(),
|
|
1520
1471
|
linkElementType: ElementPropertyLinkType.optional()
|
|
1521
1472
|
});
|
|
1522
1473
|
var ElementPropertyType = ElementPropertyTypeSchema.enum;
|
|
1523
|
-
var ElementPropertyValue =
|
|
1524
|
-
id:
|
|
1525
|
-
designSystemVersionId:
|
|
1526
|
-
targetElementPersistentId:
|
|
1527
|
-
definitionPersistentId:
|
|
1528
|
-
stringValue:
|
|
1529
|
-
numberValue:
|
|
1530
|
-
booleanValue:
|
|
1531
|
-
referenceValue:
|
|
1532
|
-
referenceValuePreview:
|
|
1533
|
-
});
|
|
1534
|
-
var Point2D =
|
|
1535
|
-
x:
|
|
1536
|
-
y:
|
|
1474
|
+
var ElementPropertyValue = z36.object({
|
|
1475
|
+
id: z36.string(),
|
|
1476
|
+
designSystemVersionId: z36.string(),
|
|
1477
|
+
targetElementPersistentId: z36.string(),
|
|
1478
|
+
definitionPersistentId: z36.string(),
|
|
1479
|
+
stringValue: z36.string().nullish(),
|
|
1480
|
+
numberValue: z36.number().nullish(),
|
|
1481
|
+
booleanValue: z36.boolean().nullish(),
|
|
1482
|
+
referenceValue: z36.string().nullish(),
|
|
1483
|
+
referenceValuePreview: z36.string().optional()
|
|
1484
|
+
});
|
|
1485
|
+
var Point2D = z37.object({
|
|
1486
|
+
x: z37.number(),
|
|
1487
|
+
y: z37.number()
|
|
1537
1488
|
});
|
|
1538
1489
|
var nullSize = { height: -1, width: -1 };
|
|
1539
1490
|
function isNullSize(size) {
|
|
1540
1491
|
return size.height === nullSize.height && size.width === nullSize.width;
|
|
1541
1492
|
}
|
|
1542
|
-
var Size =
|
|
1543
|
-
width:
|
|
1544
|
-
height:
|
|
1493
|
+
var Size = z38.object({
|
|
1494
|
+
width: z38.number().nullish().transform((v) => v ?? nullSize.width),
|
|
1495
|
+
height: z38.number().nullish().transform((v) => v ?? nullSize.height)
|
|
1545
1496
|
});
|
|
1546
1497
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
1547
1498
|
if (!v)
|
|
@@ -1550,7 +1501,7 @@ var SizeOrUndefined = Size.optional().transform((v) => {
|
|
|
1550
1501
|
return void 0;
|
|
1551
1502
|
return v;
|
|
1552
1503
|
});
|
|
1553
|
-
var DesignTokenType =
|
|
1504
|
+
var DesignTokenType = z39.enum([
|
|
1554
1505
|
"Color",
|
|
1555
1506
|
"Border",
|
|
1556
1507
|
"Gradient",
|
|
@@ -1582,7 +1533,7 @@ var DesignTokenType = z41.enum([
|
|
|
1582
1533
|
]);
|
|
1583
1534
|
var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
|
|
1584
1535
|
var DesignElementType = DesignTokenType.or(
|
|
1585
|
-
|
|
1536
|
+
z39.enum([
|
|
1586
1537
|
"Component",
|
|
1587
1538
|
"Theme",
|
|
1588
1539
|
"Documentation",
|
|
@@ -1594,7 +1545,7 @@ var DesignElementType = DesignTokenType.or(
|
|
|
1594
1545
|
"PageBlock"
|
|
1595
1546
|
])
|
|
1596
1547
|
);
|
|
1597
|
-
var DesignElementCategory =
|
|
1548
|
+
var DesignElementCategory = z39.enum([
|
|
1598
1549
|
"Token",
|
|
1599
1550
|
"Component",
|
|
1600
1551
|
"DesignSystemComponent",
|
|
@@ -1602,37 +1553,37 @@ var DesignElementCategory = z41.enum([
|
|
|
1602
1553
|
"Theme",
|
|
1603
1554
|
"PageBlock"
|
|
1604
1555
|
]);
|
|
1605
|
-
var DesignSystemElementExportProps =
|
|
1606
|
-
isAsset:
|
|
1607
|
-
codeName:
|
|
1608
|
-
});
|
|
1609
|
-
var ShallowDesignElement =
|
|
1610
|
-
id:
|
|
1611
|
-
persistentId:
|
|
1612
|
-
designSystemVersionId:
|
|
1556
|
+
var DesignSystemElementExportProps = z39.object({
|
|
1557
|
+
isAsset: z39.boolean().nullish().transform((v) => v ?? false),
|
|
1558
|
+
codeName: z39.string().nullish()
|
|
1559
|
+
});
|
|
1560
|
+
var ShallowDesignElement = z39.object({
|
|
1561
|
+
id: z39.string(),
|
|
1562
|
+
persistentId: z39.string(),
|
|
1563
|
+
designSystemVersionId: z39.string(),
|
|
1613
1564
|
type: DesignElementType,
|
|
1614
|
-
brandPersistentId:
|
|
1615
|
-
parentPersistentId:
|
|
1616
|
-
shortPersistentId:
|
|
1565
|
+
brandPersistentId: z39.string().optional(),
|
|
1566
|
+
parentPersistentId: z39.string().optional(),
|
|
1567
|
+
shortPersistentId: z39.string().optional(),
|
|
1617
1568
|
childType: DesignElementType.optional(),
|
|
1618
|
-
sortOrder:
|
|
1619
|
-
origin:
|
|
1620
|
-
createdAt:
|
|
1621
|
-
updatedAt:
|
|
1569
|
+
sortOrder: z39.number(),
|
|
1570
|
+
origin: z39.record(z39.any()).optional(),
|
|
1571
|
+
createdAt: z39.coerce.date(),
|
|
1572
|
+
updatedAt: z39.coerce.date()
|
|
1622
1573
|
});
|
|
1623
1574
|
var DesignElement = ShallowDesignElement.extend({
|
|
1624
1575
|
meta: ObjectMeta,
|
|
1625
|
-
slug:
|
|
1626
|
-
userSlug:
|
|
1576
|
+
slug: z39.string().optional(),
|
|
1577
|
+
userSlug: z39.string().optional(),
|
|
1627
1578
|
exportProperties: DesignSystemElementExportProps.optional(),
|
|
1628
|
-
data:
|
|
1629
|
-
origin:
|
|
1579
|
+
data: z39.record(z39.any()),
|
|
1580
|
+
origin: z39.record(z39.any()).optional()
|
|
1630
1581
|
});
|
|
1631
1582
|
var HierarchicalElements = DesignTokenType.or(
|
|
1632
|
-
|
|
1583
|
+
z39.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
|
|
1633
1584
|
);
|
|
1634
|
-
var PageBlockCalloutType =
|
|
1635
|
-
var PageBlockTypeV1 =
|
|
1585
|
+
var PageBlockCalloutType = z40.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
1586
|
+
var PageBlockTypeV1 = z40.enum([
|
|
1636
1587
|
"Text",
|
|
1637
1588
|
"Heading",
|
|
1638
1589
|
"Code",
|
|
@@ -1666,7 +1617,7 @@ var PageBlockTypeV1 = z42.enum([
|
|
|
1666
1617
|
"TableCell",
|
|
1667
1618
|
"Guidelines"
|
|
1668
1619
|
]);
|
|
1669
|
-
var PageBlockCodeLanguage =
|
|
1620
|
+
var PageBlockCodeLanguage = z40.enum([
|
|
1670
1621
|
"Angular",
|
|
1671
1622
|
"Bash",
|
|
1672
1623
|
"C",
|
|
@@ -1700,70 +1651,70 @@ var PageBlockCodeLanguage = z42.enum([
|
|
|
1700
1651
|
"XML",
|
|
1701
1652
|
"YAML"
|
|
1702
1653
|
]);
|
|
1703
|
-
var PageBlockAlignment =
|
|
1704
|
-
var PageBlockThemeType =
|
|
1705
|
-
var PageBlockAssetType =
|
|
1706
|
-
var PageBlockTilesAlignment =
|
|
1707
|
-
var PageBlockTilesLayout =
|
|
1708
|
-
var PageBlockTheme =
|
|
1709
|
-
themeIds:
|
|
1654
|
+
var PageBlockAlignment = z40.enum(["Left", "Center", "Stretch", "Right"]);
|
|
1655
|
+
var PageBlockThemeType = z40.enum(["Override", "Comparison"]);
|
|
1656
|
+
var PageBlockAssetType = z40.enum(["image", "figmaFrame"]);
|
|
1657
|
+
var PageBlockTilesAlignment = z40.enum(["Center", "FrameHeight"]);
|
|
1658
|
+
var PageBlockTilesLayout = z40.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
1659
|
+
var PageBlockTheme = z40.object({
|
|
1660
|
+
themeIds: z40.array(z40.string()),
|
|
1710
1661
|
type: PageBlockThemeType
|
|
1711
1662
|
});
|
|
1712
|
-
var PageBlockUrlPreview =
|
|
1713
|
-
title: nullishToOptional(
|
|
1714
|
-
description: nullishToOptional(
|
|
1715
|
-
thumbnailUrl: nullishToOptional(
|
|
1716
|
-
});
|
|
1717
|
-
var PageBlockFrameOrigin =
|
|
1718
|
-
sourceFileName: nullishToOptional(
|
|
1719
|
-
title: nullishToOptional(
|
|
1720
|
-
previewUrl: nullishToOptional(
|
|
1721
|
-
valid: nullishToOptional(
|
|
1722
|
-
referenceId: nullishToOptional(
|
|
1723
|
-
assetId: nullishToOptional(
|
|
1724
|
-
assetScale: nullishToOptional(
|
|
1725
|
-
width: nullishToOptional(
|
|
1726
|
-
height: nullishToOptional(
|
|
1727
|
-
});
|
|
1728
|
-
var PageBlockFrame =
|
|
1729
|
-
persistentId:
|
|
1730
|
-
sourceId:
|
|
1731
|
-
sourceFrameId:
|
|
1732
|
-
title: nullishToOptional(
|
|
1733
|
-
description: nullishToOptional(
|
|
1663
|
+
var PageBlockUrlPreview = z40.object({
|
|
1664
|
+
title: nullishToOptional(z40.string()),
|
|
1665
|
+
description: nullishToOptional(z40.string()),
|
|
1666
|
+
thumbnailUrl: nullishToOptional(z40.string())
|
|
1667
|
+
});
|
|
1668
|
+
var PageBlockFrameOrigin = z40.object({
|
|
1669
|
+
sourceFileName: nullishToOptional(z40.string()),
|
|
1670
|
+
title: nullishToOptional(z40.string()),
|
|
1671
|
+
previewUrl: nullishToOptional(z40.string()),
|
|
1672
|
+
valid: nullishToOptional(z40.boolean()),
|
|
1673
|
+
referenceId: nullishToOptional(z40.string()),
|
|
1674
|
+
assetId: nullishToOptional(z40.string()),
|
|
1675
|
+
assetScale: nullishToOptional(z40.number()),
|
|
1676
|
+
width: nullishToOptional(z40.number()),
|
|
1677
|
+
height: nullishToOptional(z40.number())
|
|
1678
|
+
});
|
|
1679
|
+
var PageBlockFrame = z40.object({
|
|
1680
|
+
persistentId: z40.string(),
|
|
1681
|
+
sourceId: z40.string(),
|
|
1682
|
+
sourceFrameId: z40.string(),
|
|
1683
|
+
title: nullishToOptional(z40.string()),
|
|
1684
|
+
description: nullishToOptional(z40.string()),
|
|
1734
1685
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1735
1686
|
origin: nullishToOptional(PageBlockFrameOrigin)
|
|
1736
1687
|
});
|
|
1737
|
-
var PageBlockAsset =
|
|
1688
|
+
var PageBlockAsset = z40.object({
|
|
1738
1689
|
type: PageBlockAssetType,
|
|
1739
|
-
id: nullishToOptional(
|
|
1740
|
-
url: nullishToOptional(
|
|
1690
|
+
id: nullishToOptional(z40.string()),
|
|
1691
|
+
url: nullishToOptional(z40.string()),
|
|
1741
1692
|
figmaFrame: nullishToOptional(PageBlockFrame)
|
|
1742
1693
|
});
|
|
1743
|
-
var PageBlockLinkPreview =
|
|
1744
|
-
title: nullishToOptional(
|
|
1745
|
-
valid: nullishToOptional(
|
|
1694
|
+
var PageBlockLinkPreview = z40.object({
|
|
1695
|
+
title: nullishToOptional(z40.string()),
|
|
1696
|
+
valid: nullishToOptional(z40.boolean())
|
|
1746
1697
|
});
|
|
1747
|
-
var PageBlockShortcut =
|
|
1748
|
-
persistentId:
|
|
1749
|
-
title: nullishToOptional(
|
|
1750
|
-
description: nullishToOptional(
|
|
1698
|
+
var PageBlockShortcut = z40.object({
|
|
1699
|
+
persistentId: z40.string(),
|
|
1700
|
+
title: nullishToOptional(z40.string()),
|
|
1701
|
+
description: nullishToOptional(z40.string()),
|
|
1751
1702
|
asset: nullishToOptional(PageBlockAsset),
|
|
1752
|
-
documentationItemId: nullishToOptional(
|
|
1753
|
-
pageHeadingId: nullishToOptional(
|
|
1754
|
-
url: nullishToOptional(
|
|
1755
|
-
openInNewTab: nullishToOptional(
|
|
1703
|
+
documentationItemId: nullishToOptional(z40.string()),
|
|
1704
|
+
pageHeadingId: nullishToOptional(z40.string()),
|
|
1705
|
+
url: nullishToOptional(z40.string()),
|
|
1706
|
+
openInNewTab: nullishToOptional(z40.boolean()),
|
|
1756
1707
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
1757
1708
|
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
1758
1709
|
});
|
|
1759
|
-
var PageBlockCustomBlockPropertyImageValue =
|
|
1710
|
+
var PageBlockCustomBlockPropertyImageValue = z40.object({
|
|
1760
1711
|
asset: nullishToOptional(PageBlockAsset),
|
|
1761
|
-
assetId: nullishToOptional(
|
|
1762
|
-
assetUrl: nullishToOptional(
|
|
1712
|
+
assetId: nullishToOptional(z40.string()),
|
|
1713
|
+
assetUrl: nullishToOptional(z40.string())
|
|
1763
1714
|
});
|
|
1764
|
-
var PageBlockCustomBlockPropertyValue =
|
|
1765
|
-
key:
|
|
1766
|
-
value:
|
|
1715
|
+
var PageBlockCustomBlockPropertyValue = z40.object({
|
|
1716
|
+
key: z40.string(),
|
|
1717
|
+
value: z40.any()
|
|
1767
1718
|
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
1768
1719
|
// e.g. element id 67451 in the dev db
|
|
1769
1720
|
// value: z
|
|
@@ -1774,117 +1725,117 @@ var PageBlockCustomBlockPropertyValue = z42.object({
|
|
|
1774
1725
|
// .or(TypographyTokenData)
|
|
1775
1726
|
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
1776
1727
|
});
|
|
1777
|
-
var PageBlockFigmaFrameProperties =
|
|
1728
|
+
var PageBlockFigmaFrameProperties = z40.object({
|
|
1778
1729
|
color: nullishToOptional(
|
|
1779
|
-
|
|
1780
|
-
value:
|
|
1730
|
+
z40.object({
|
|
1731
|
+
value: z40.string()
|
|
1781
1732
|
})
|
|
1782
1733
|
),
|
|
1783
1734
|
alignment: PageBlockTilesAlignment,
|
|
1784
1735
|
layout: PageBlockTilesLayout,
|
|
1785
1736
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1786
|
-
showTitles:
|
|
1737
|
+
showTitles: z40.boolean()
|
|
1787
1738
|
});
|
|
1788
|
-
var PageBlockRenderCodeProperties =
|
|
1789
|
-
showCode:
|
|
1790
|
-
showControls:
|
|
1739
|
+
var PageBlockRenderCodeProperties = z40.object({
|
|
1740
|
+
showCode: z40.boolean(),
|
|
1741
|
+
showControls: z40.boolean().optional()
|
|
1791
1742
|
});
|
|
1792
|
-
var PageBlockAssetComponent =
|
|
1793
|
-
persistentId:
|
|
1794
|
-
componentAssetId:
|
|
1795
|
-
title: nullishToOptional(
|
|
1796
|
-
description: nullishToOptional(
|
|
1743
|
+
var PageBlockAssetComponent = z40.object({
|
|
1744
|
+
persistentId: z40.string(),
|
|
1745
|
+
componentAssetId: z40.string(),
|
|
1746
|
+
title: nullishToOptional(z40.string()),
|
|
1747
|
+
description: nullishToOptional(z40.string()),
|
|
1797
1748
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
1798
1749
|
});
|
|
1799
|
-
var PageBlockTableColumn =
|
|
1800
|
-
id:
|
|
1750
|
+
var PageBlockTableColumn = z40.object({
|
|
1751
|
+
id: z40.string(),
|
|
1801
1752
|
width: DimensionTokenData
|
|
1802
1753
|
});
|
|
1803
|
-
var PageBlockTableProperties =
|
|
1804
|
-
showBorders:
|
|
1805
|
-
showHeaderRow:
|
|
1806
|
-
showHeaderColumn:
|
|
1807
|
-
columns:
|
|
1754
|
+
var PageBlockTableProperties = z40.object({
|
|
1755
|
+
showBorders: z40.boolean(),
|
|
1756
|
+
showHeaderRow: z40.boolean(),
|
|
1757
|
+
showHeaderColumn: z40.boolean(),
|
|
1758
|
+
columns: z40.array(PageBlockTableColumn)
|
|
1808
1759
|
});
|
|
1809
|
-
var PageBlockTextSpanAttributeType =
|
|
1810
|
-
var PageBlockTextSpanAttribute =
|
|
1760
|
+
var PageBlockTextSpanAttributeType = z40.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
|
|
1761
|
+
var PageBlockTextSpanAttribute = z40.object({
|
|
1811
1762
|
type: PageBlockTextSpanAttributeType,
|
|
1812
1763
|
// Link attributes
|
|
1813
|
-
link: nullishToOptional(
|
|
1814
|
-
documentationItemId: nullishToOptional(
|
|
1815
|
-
openInNewWindow: nullishToOptional(
|
|
1764
|
+
link: nullishToOptional(z40.string()),
|
|
1765
|
+
documentationItemId: nullishToOptional(z40.string()),
|
|
1766
|
+
openInNewWindow: nullishToOptional(z40.boolean()),
|
|
1816
1767
|
// deprecated. use openInNewTab
|
|
1817
|
-
openInNewTab: nullishToOptional(
|
|
1768
|
+
openInNewTab: nullishToOptional(z40.boolean()),
|
|
1818
1769
|
// Comment attributes
|
|
1819
|
-
commentHighlightId: nullishToOptional(
|
|
1820
|
-
commentIsResolved: nullishToOptional(
|
|
1770
|
+
commentHighlightId: nullishToOptional(z40.string()),
|
|
1771
|
+
commentIsResolved: nullishToOptional(z40.boolean())
|
|
1821
1772
|
});
|
|
1822
|
-
var PageBlockTextSpan =
|
|
1823
|
-
text:
|
|
1824
|
-
attributes:
|
|
1773
|
+
var PageBlockTextSpan = z40.object({
|
|
1774
|
+
text: z40.string(),
|
|
1775
|
+
attributes: z40.array(PageBlockTextSpanAttribute)
|
|
1825
1776
|
});
|
|
1826
|
-
var PageBlockText =
|
|
1827
|
-
spans:
|
|
1777
|
+
var PageBlockText = z40.object({
|
|
1778
|
+
spans: z40.array(PageBlockTextSpan)
|
|
1828
1779
|
});
|
|
1829
|
-
var PageBlockGuideline =
|
|
1830
|
-
description: nullishToOptional(
|
|
1780
|
+
var PageBlockGuideline = z40.object({
|
|
1781
|
+
description: nullishToOptional(z40.string()),
|
|
1831
1782
|
asset: nullishToOptional(PageBlockAsset),
|
|
1832
|
-
type:
|
|
1833
|
-
imageAlt: nullishToOptional(
|
|
1834
|
-
imageCaption: nullishToOptional(
|
|
1783
|
+
type: z40.string(),
|
|
1784
|
+
imageAlt: nullishToOptional(z40.string()),
|
|
1785
|
+
imageCaption: nullishToOptional(z40.string()),
|
|
1835
1786
|
imageAlignment: nullishToOptional(PageBlockAlignment)
|
|
1836
1787
|
});
|
|
1837
|
-
var PageBlockBaseV1 =
|
|
1838
|
-
persistentId:
|
|
1788
|
+
var PageBlockBaseV1 = z40.object({
|
|
1789
|
+
persistentId: z40.string(),
|
|
1839
1790
|
type: PageBlockTypeV1,
|
|
1840
|
-
numberOfColumns: nullishToOptional(
|
|
1791
|
+
numberOfColumns: nullishToOptional(z40.number()),
|
|
1841
1792
|
// Element linking
|
|
1842
|
-
designObjectId: nullishToOptional(
|
|
1843
|
-
designObjectIds: nullishToOptional(
|
|
1844
|
-
tokenType: nullishToOptional(DesignTokenType.or(
|
|
1845
|
-
showNestedGroups: nullishToOptional(
|
|
1846
|
-
brandId: nullishToOptional(
|
|
1793
|
+
designObjectId: nullishToOptional(z40.string()),
|
|
1794
|
+
designObjectIds: nullishToOptional(z40.array(z40.string())),
|
|
1795
|
+
tokenType: nullishToOptional(DesignTokenType.or(z40.literal("Font"))),
|
|
1796
|
+
showNestedGroups: nullishToOptional(z40.boolean()),
|
|
1797
|
+
brandId: nullishToOptional(z40.string()),
|
|
1847
1798
|
// Rich text
|
|
1848
1799
|
text: nullishToOptional(PageBlockText),
|
|
1849
|
-
caption: nullishToOptional(
|
|
1850
|
-
headingType: nullishToOptional(
|
|
1800
|
+
caption: nullishToOptional(z40.string()),
|
|
1801
|
+
headingType: nullishToOptional(z40.number().min(1).max(3)),
|
|
1851
1802
|
codeLanguage: nullishToOptional(PageBlockCodeLanguage),
|
|
1852
1803
|
calloutType: nullishToOptional(PageBlockCalloutType),
|
|
1853
|
-
urlInput: nullishToOptional(
|
|
1854
|
-
url: nullishToOptional(
|
|
1804
|
+
urlInput: nullishToOptional(z40.string()),
|
|
1805
|
+
url: nullishToOptional(z40.string()),
|
|
1855
1806
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
1856
1807
|
// Image
|
|
1857
1808
|
asset: nullishToOptional(PageBlockAsset),
|
|
1858
1809
|
alignment: nullishToOptional(PageBlockAlignment),
|
|
1859
1810
|
// Shortcuts block
|
|
1860
|
-
shortcuts: nullishToOptional(
|
|
1811
|
+
shortcuts: nullishToOptional(z40.array(PageBlockShortcut)),
|
|
1861
1812
|
// Guidelines
|
|
1862
1813
|
guidelines: nullishToOptional(PageBlockGuideline.array()),
|
|
1863
1814
|
// Custom blocks
|
|
1864
|
-
customBlockKey: nullishToOptional(
|
|
1865
|
-
customBlockProperties: nullishToOptional(
|
|
1866
|
-
variantKey: nullishToOptional(
|
|
1815
|
+
customBlockKey: nullishToOptional(z40.string()),
|
|
1816
|
+
customBlockProperties: nullishToOptional(z40.array(PageBlockCustomBlockPropertyValue)),
|
|
1817
|
+
variantKey: nullishToOptional(z40.string()),
|
|
1867
1818
|
// Figma frames
|
|
1868
1819
|
figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
|
|
1869
|
-
figmaFrames: nullishToOptional(
|
|
1820
|
+
figmaFrames: nullishToOptional(z40.array(PageBlockFrame)),
|
|
1870
1821
|
// Generic
|
|
1871
1822
|
size: nullishToOptional(Size),
|
|
1872
1823
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1873
1824
|
// Render code
|
|
1874
1825
|
renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
|
|
1875
1826
|
// Component assets
|
|
1876
|
-
componentAssets: nullishToOptional(
|
|
1827
|
+
componentAssets: nullishToOptional(z40.array(PageBlockAssetComponent)),
|
|
1877
1828
|
// Tables
|
|
1878
1829
|
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
1879
|
-
columnId: nullishToOptional(
|
|
1830
|
+
columnId: nullishToOptional(z40.string()),
|
|
1880
1831
|
// Token spreadsheet
|
|
1881
1832
|
theme: nullishToOptional(PageBlockTheme),
|
|
1882
|
-
blacklistedElementProperties: nullishToOptional(
|
|
1833
|
+
blacklistedElementProperties: nullishToOptional(z40.array(z40.string())),
|
|
1883
1834
|
// Arbitrary
|
|
1884
|
-
userMetadata: nullishToOptional(
|
|
1835
|
+
userMetadata: nullishToOptional(z40.string())
|
|
1885
1836
|
});
|
|
1886
1837
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
1887
|
-
children:
|
|
1838
|
+
children: z40.lazy(
|
|
1888
1839
|
() => PageBlockV1.array().nullish().transform((t) => t ?? [])
|
|
1889
1840
|
)
|
|
1890
1841
|
});
|
|
@@ -1978,265 +1929,265 @@ function sanitizeSpanAttribute(attribute) {
|
|
|
1978
1929
|
};
|
|
1979
1930
|
}
|
|
1980
1931
|
}
|
|
1981
|
-
var PageBlockLinkType =
|
|
1982
|
-
var PageBlockImageType =
|
|
1983
|
-
var PageBlockImageAlignment =
|
|
1984
|
-
var PageBlockTableCellAlignment =
|
|
1985
|
-
var PageBlockPreviewContainerSize =
|
|
1986
|
-
var PageBlockThemeDisplayMode =
|
|
1987
|
-
var PageBlockImageResourceReference =
|
|
1988
|
-
resourceId:
|
|
1989
|
-
url:
|
|
1932
|
+
var PageBlockLinkType = z41.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
1933
|
+
var PageBlockImageType = z41.enum(["Resource", "FigmaNode"]);
|
|
1934
|
+
var PageBlockImageAlignment = z41.enum(["Left", "Center", "Stretch"]);
|
|
1935
|
+
var PageBlockTableCellAlignment = z41.enum(["Left", "Center", "Right"]);
|
|
1936
|
+
var PageBlockPreviewContainerSize = z41.enum(["Centered", "NaturalHeight"]);
|
|
1937
|
+
var PageBlockThemeDisplayMode = z41.enum(["Split", "Override"]);
|
|
1938
|
+
var PageBlockImageResourceReference = z41.object({
|
|
1939
|
+
resourceId: z41.string(),
|
|
1940
|
+
url: z41.string()
|
|
1990
1941
|
});
|
|
1991
|
-
var PageBlockResourceFrameNodeReference =
|
|
1992
|
-
sourceId:
|
|
1993
|
-
frameReferenceId:
|
|
1942
|
+
var PageBlockResourceFrameNodeReference = z41.object({
|
|
1943
|
+
sourceId: z41.string(),
|
|
1944
|
+
frameReferenceId: z41.string()
|
|
1994
1945
|
});
|
|
1995
|
-
var PageBlockImageReference =
|
|
1946
|
+
var PageBlockImageReference = z41.object({
|
|
1996
1947
|
type: PageBlockImageType,
|
|
1997
1948
|
resource: PageBlockImageResourceReference.optional(),
|
|
1998
1949
|
figmaNode: PageBlockResourceFrameNodeReference.optional()
|
|
1999
1950
|
});
|
|
2000
|
-
var PageBlockColorV2 =
|
|
2001
|
-
value:
|
|
2002
|
-
referencedTokenId:
|
|
1951
|
+
var PageBlockColorV2 = z41.object({
|
|
1952
|
+
value: z41.string(),
|
|
1953
|
+
referencedTokenId: z41.string().optional()
|
|
2003
1954
|
});
|
|
2004
|
-
var PageBlockAssetEntityMeta =
|
|
2005
|
-
title:
|
|
2006
|
-
description:
|
|
1955
|
+
var PageBlockAssetEntityMeta = z41.object({
|
|
1956
|
+
title: z41.string().optional(),
|
|
1957
|
+
description: z41.string().optional(),
|
|
2007
1958
|
backgroundColor: PageBlockColorV2.optional()
|
|
2008
1959
|
});
|
|
2009
|
-
var PageBlockFigmaComponentEntityMeta =
|
|
2010
|
-
title:
|
|
2011
|
-
description:
|
|
1960
|
+
var PageBlockFigmaComponentEntityMeta = z41.object({
|
|
1961
|
+
title: z41.string().optional(),
|
|
1962
|
+
description: z41.string().optional(),
|
|
2012
1963
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2013
|
-
selectedComponentProperties:
|
|
1964
|
+
selectedComponentProperties: z41.array(z41.string()).optional()
|
|
2014
1965
|
});
|
|
2015
|
-
var PageBlockFigmaNodeEntityMeta =
|
|
2016
|
-
title:
|
|
2017
|
-
description:
|
|
1966
|
+
var PageBlockFigmaNodeEntityMeta = z41.object({
|
|
1967
|
+
title: z41.string().optional(),
|
|
1968
|
+
description: z41.string().optional(),
|
|
2018
1969
|
backgroundColor: PageBlockColorV2.optional()
|
|
2019
1970
|
});
|
|
2020
|
-
var PageBlockAppearanceV2 =
|
|
1971
|
+
var PageBlockAppearanceV2 = z41.object({
|
|
2021
1972
|
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
2022
|
-
numberOfColumns:
|
|
1973
|
+
numberOfColumns: z41.number().optional()
|
|
2023
1974
|
});
|
|
2024
|
-
var PageBlockItemUntypedValue =
|
|
2025
|
-
value:
|
|
2026
|
-
}).and(
|
|
2027
|
-
var PageBlockLinkV2 =
|
|
1975
|
+
var PageBlockItemUntypedValue = z41.object({
|
|
1976
|
+
value: z41.any()
|
|
1977
|
+
}).and(z41.record(z41.any()));
|
|
1978
|
+
var PageBlockLinkV2 = z41.object({
|
|
2028
1979
|
type: PageBlockLinkType,
|
|
2029
|
-
documentationItemId:
|
|
2030
|
-
pageHeadingId:
|
|
2031
|
-
url:
|
|
2032
|
-
openInNewTab:
|
|
1980
|
+
documentationItemId: z41.string().optional(),
|
|
1981
|
+
pageHeadingId: z41.string().optional(),
|
|
1982
|
+
url: z41.string().optional(),
|
|
1983
|
+
openInNewTab: z41.boolean().optional()
|
|
2033
1984
|
});
|
|
2034
|
-
var PageBlockItemV2 =
|
|
2035
|
-
id:
|
|
1985
|
+
var PageBlockItemV2 = z41.object({
|
|
1986
|
+
id: z41.string(),
|
|
2036
1987
|
linksTo: PageBlockLinkV2.optional(),
|
|
2037
|
-
props:
|
|
1988
|
+
props: z41.record(PageBlockItemUntypedValue)
|
|
2038
1989
|
});
|
|
2039
|
-
var PageBlockDataV2 =
|
|
2040
|
-
packageId:
|
|
2041
|
-
variantId:
|
|
2042
|
-
indentLevel:
|
|
1990
|
+
var PageBlockDataV2 = z41.object({
|
|
1991
|
+
packageId: z41.string(),
|
|
1992
|
+
variantId: z41.string().optional(),
|
|
1993
|
+
indentLevel: z41.number(),
|
|
2043
1994
|
appearance: PageBlockAppearanceV2.optional(),
|
|
2044
|
-
items:
|
|
1995
|
+
items: z41.array(PageBlockItemV2)
|
|
2045
1996
|
});
|
|
2046
|
-
var PageBlockItemAssetValue =
|
|
2047
|
-
selectedPropertyIds:
|
|
2048
|
-
showSearch:
|
|
1997
|
+
var PageBlockItemAssetValue = z41.object({
|
|
1998
|
+
selectedPropertyIds: z41.array(z41.string()).optional(),
|
|
1999
|
+
showSearch: z41.boolean().optional(),
|
|
2049
2000
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2050
2001
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2051
|
-
value:
|
|
2052
|
-
|
|
2053
|
-
entityId:
|
|
2054
|
-
entityType:
|
|
2002
|
+
value: z41.array(
|
|
2003
|
+
z41.object({
|
|
2004
|
+
entityId: z41.string(),
|
|
2005
|
+
entityType: z41.enum(["Asset", "AssetGroup"]),
|
|
2055
2006
|
entityMeta: PageBlockAssetEntityMeta.optional()
|
|
2056
2007
|
})
|
|
2057
2008
|
).default([])
|
|
2058
2009
|
});
|
|
2059
|
-
var PageBlockItemAssetPropertyValue =
|
|
2060
|
-
value:
|
|
2010
|
+
var PageBlockItemAssetPropertyValue = z41.object({
|
|
2011
|
+
value: z41.array(z41.string()).default([])
|
|
2061
2012
|
});
|
|
2062
|
-
var PageBlockItemFigmaComponentValue =
|
|
2063
|
-
showComponentName:
|
|
2064
|
-
showComponentDescription:
|
|
2065
|
-
showPropertyList:
|
|
2013
|
+
var PageBlockItemFigmaComponentValue = z41.object({
|
|
2014
|
+
showComponentName: z41.boolean().optional(),
|
|
2015
|
+
showComponentDescription: z41.boolean().optional(),
|
|
2016
|
+
showPropertyList: z41.boolean().optional(),
|
|
2066
2017
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2067
2018
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2068
|
-
value:
|
|
2069
|
-
|
|
2070
|
-
entityId:
|
|
2071
|
-
entityType:
|
|
2019
|
+
value: z41.array(
|
|
2020
|
+
z41.object({
|
|
2021
|
+
entityId: z41.string(),
|
|
2022
|
+
entityType: z41.enum(["FigmaComponent"]),
|
|
2072
2023
|
entityMeta: PageBlockFigmaComponentEntityMeta.optional()
|
|
2073
2024
|
})
|
|
2074
2025
|
).default([])
|
|
2075
2026
|
});
|
|
2076
|
-
var PageBlockItemBooleanValue =
|
|
2077
|
-
value:
|
|
2027
|
+
var PageBlockItemBooleanValue = z41.object({
|
|
2028
|
+
value: z41.boolean()
|
|
2078
2029
|
});
|
|
2079
|
-
var PageBlockItemCodeValue =
|
|
2030
|
+
var PageBlockItemCodeValue = z41.object({
|
|
2080
2031
|
format: PageBlockCodeLanguage.optional(),
|
|
2081
|
-
caption:
|
|
2082
|
-
value:
|
|
2083
|
-
});
|
|
2084
|
-
var PageBlockItemSandboxValue =
|
|
2085
|
-
showCode:
|
|
2086
|
-
showControls:
|
|
2087
|
-
backgroundColor:
|
|
2088
|
-
alignPreview:
|
|
2089
|
-
previewHeight:
|
|
2090
|
-
value:
|
|
2091
|
-
});
|
|
2092
|
-
var PageBlockItemColorValue =
|
|
2093
|
-
var PageBlockItemComponentValue =
|
|
2094
|
-
selectedPropertyIds:
|
|
2095
|
-
selectedBrandId:
|
|
2096
|
-
value:
|
|
2097
|
-
|
|
2098
|
-
entityId:
|
|
2099
|
-
entityType:
|
|
2032
|
+
caption: z41.string().optional(),
|
|
2033
|
+
value: z41.string()
|
|
2034
|
+
});
|
|
2035
|
+
var PageBlockItemSandboxValue = z41.object({
|
|
2036
|
+
showCode: z41.boolean().optional(),
|
|
2037
|
+
showControls: z41.boolean().optional(),
|
|
2038
|
+
backgroundColor: z41.string().optional(),
|
|
2039
|
+
alignPreview: z41.enum(["Left", "Center"]).optional(),
|
|
2040
|
+
previewHeight: z41.number().optional(),
|
|
2041
|
+
value: z41.string()
|
|
2042
|
+
});
|
|
2043
|
+
var PageBlockItemColorValue = z41.record(z41.any());
|
|
2044
|
+
var PageBlockItemComponentValue = z41.object({
|
|
2045
|
+
selectedPropertyIds: z41.array(z41.string()).optional(),
|
|
2046
|
+
selectedBrandId: z41.string().optional(),
|
|
2047
|
+
value: z41.array(
|
|
2048
|
+
z41.object({
|
|
2049
|
+
entityId: z41.string(),
|
|
2050
|
+
entityType: z41.enum(["Component", "ComponentGroup"])
|
|
2100
2051
|
})
|
|
2101
2052
|
).default([])
|
|
2102
2053
|
});
|
|
2103
|
-
var PageBlockItemComponentPropertyValue =
|
|
2104
|
-
value:
|
|
2105
|
-
});
|
|
2106
|
-
var PageBlockItemDividerValue =
|
|
2107
|
-
var PageBlockItemEmbedValue =
|
|
2108
|
-
value:
|
|
2109
|
-
caption:
|
|
2110
|
-
height:
|
|
2111
|
-
openGraph:
|
|
2112
|
-
title:
|
|
2113
|
-
description:
|
|
2114
|
-
imageUrl:
|
|
2054
|
+
var PageBlockItemComponentPropertyValue = z41.object({
|
|
2055
|
+
value: z41.string()
|
|
2056
|
+
});
|
|
2057
|
+
var PageBlockItemDividerValue = z41.object({});
|
|
2058
|
+
var PageBlockItemEmbedValue = z41.object({
|
|
2059
|
+
value: z41.string().optional(),
|
|
2060
|
+
caption: z41.string().optional(),
|
|
2061
|
+
height: z41.number().optional(),
|
|
2062
|
+
openGraph: z41.object({
|
|
2063
|
+
title: z41.string().optional(),
|
|
2064
|
+
description: z41.string().optional(),
|
|
2065
|
+
imageUrl: z41.string().optional()
|
|
2115
2066
|
}).optional()
|
|
2116
2067
|
});
|
|
2117
|
-
var PageBlockItemFigmaNodeValue =
|
|
2118
|
-
showSearch:
|
|
2068
|
+
var PageBlockItemFigmaNodeValue = z41.object({
|
|
2069
|
+
showSearch: z41.boolean().optional(),
|
|
2119
2070
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2120
2071
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2121
|
-
showFrameDetails:
|
|
2122
|
-
value:
|
|
2123
|
-
|
|
2124
|
-
entityId:
|
|
2072
|
+
showFrameDetails: z41.boolean().optional(),
|
|
2073
|
+
value: z41.array(
|
|
2074
|
+
z41.object({
|
|
2075
|
+
entityId: z41.string(),
|
|
2125
2076
|
entityMeta: PageBlockFigmaNodeEntityMeta.optional()
|
|
2126
2077
|
})
|
|
2127
2078
|
).default([])
|
|
2128
2079
|
});
|
|
2129
|
-
var PageBlockItemImageValue =
|
|
2130
|
-
alt:
|
|
2131
|
-
caption:
|
|
2080
|
+
var PageBlockItemImageValue = z41.object({
|
|
2081
|
+
alt: z41.string().optional(),
|
|
2082
|
+
caption: z41.string().optional(),
|
|
2132
2083
|
alignment: PageBlockImageAlignment.optional(),
|
|
2133
2084
|
value: PageBlockImageReference.optional()
|
|
2134
2085
|
});
|
|
2135
|
-
var PageBlockItemMarkdownValue =
|
|
2136
|
-
value:
|
|
2086
|
+
var PageBlockItemMarkdownValue = z41.object({
|
|
2087
|
+
value: z41.string()
|
|
2137
2088
|
});
|
|
2138
|
-
var PageBlockItemMultiRichTextValue =
|
|
2089
|
+
var PageBlockItemMultiRichTextValue = z41.object({
|
|
2139
2090
|
value: PageBlockText.array()
|
|
2140
2091
|
});
|
|
2141
|
-
var PageBlockItemMultiSelectValue =
|
|
2142
|
-
value:
|
|
2092
|
+
var PageBlockItemMultiSelectValue = z41.object({
|
|
2093
|
+
value: z41.array(z41.string()).default([])
|
|
2143
2094
|
});
|
|
2144
|
-
var PageBlockItemNumberValue =
|
|
2145
|
-
value:
|
|
2095
|
+
var PageBlockItemNumberValue = z41.object({
|
|
2096
|
+
value: z41.number()
|
|
2146
2097
|
});
|
|
2147
|
-
var PageBlockItemRichTextValue =
|
|
2098
|
+
var PageBlockItemRichTextValue = z41.object({
|
|
2148
2099
|
value: PageBlockText,
|
|
2149
2100
|
calloutType: PageBlockCalloutType.optional()
|
|
2150
2101
|
});
|
|
2151
|
-
var PageBlockItemRichTextEditorValue =
|
|
2152
|
-
value:
|
|
2102
|
+
var PageBlockItemRichTextEditorValue = z41.object({
|
|
2103
|
+
value: z41.any()
|
|
2153
2104
|
});
|
|
2154
|
-
var PageBlockItemSingleSelectValue =
|
|
2155
|
-
value:
|
|
2105
|
+
var PageBlockItemSingleSelectValue = z41.object({
|
|
2106
|
+
value: z41.string()
|
|
2156
2107
|
});
|
|
2157
|
-
var PageBlockItemStorybookValue =
|
|
2158
|
-
caption:
|
|
2159
|
-
height:
|
|
2160
|
-
embedUrl:
|
|
2161
|
-
value:
|
|
2108
|
+
var PageBlockItemStorybookValue = z41.object({
|
|
2109
|
+
caption: z41.string().optional(),
|
|
2110
|
+
height: z41.number().optional(),
|
|
2111
|
+
embedUrl: z41.string().optional(),
|
|
2112
|
+
value: z41.string().optional()
|
|
2162
2113
|
});
|
|
2163
|
-
var PageBlockItemTextValue =
|
|
2164
|
-
value:
|
|
2114
|
+
var PageBlockItemTextValue = z41.object({
|
|
2115
|
+
value: z41.string()
|
|
2165
2116
|
});
|
|
2166
|
-
var PageBlockItemTokenValue =
|
|
2167
|
-
selectedPropertyIds:
|
|
2168
|
-
selectedThemeIds:
|
|
2117
|
+
var PageBlockItemTokenValue = z41.object({
|
|
2118
|
+
selectedPropertyIds: z41.array(z41.string()).optional(),
|
|
2119
|
+
selectedThemeIds: z41.array(z41.string()).optional(),
|
|
2169
2120
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
2170
|
-
value:
|
|
2171
|
-
|
|
2172
|
-
entityId:
|
|
2173
|
-
entityType:
|
|
2174
|
-
entityMeta:
|
|
2175
|
-
showNestedGroups:
|
|
2121
|
+
value: z41.array(
|
|
2122
|
+
z41.object({
|
|
2123
|
+
entityId: z41.string(),
|
|
2124
|
+
entityType: z41.enum(["Token", "TokenGroup"]),
|
|
2125
|
+
entityMeta: z41.object({
|
|
2126
|
+
showNestedGroups: z41.boolean().optional()
|
|
2176
2127
|
}).optional()
|
|
2177
2128
|
})
|
|
2178
2129
|
).default([])
|
|
2179
2130
|
});
|
|
2180
|
-
var PageBlockItemTokenPropertyValue =
|
|
2181
|
-
selectedPropertyIds:
|
|
2182
|
-
selectedThemeIds:
|
|
2183
|
-
value:
|
|
2131
|
+
var PageBlockItemTokenPropertyValue = z41.object({
|
|
2132
|
+
selectedPropertyIds: z41.array(z41.string()).optional(),
|
|
2133
|
+
selectedThemeIds: z41.array(z41.string()).optional(),
|
|
2134
|
+
value: z41.array(z41.string()).default([])
|
|
2184
2135
|
});
|
|
2185
|
-
var PageBlockItemTokenTypeValue =
|
|
2186
|
-
value:
|
|
2136
|
+
var PageBlockItemTokenTypeValue = z41.object({
|
|
2137
|
+
value: z41.array(DesignTokenType).default([])
|
|
2187
2138
|
});
|
|
2188
|
-
var PageBlockItemUrlValue =
|
|
2189
|
-
value:
|
|
2139
|
+
var PageBlockItemUrlValue = z41.object({
|
|
2140
|
+
value: z41.string()
|
|
2190
2141
|
});
|
|
2191
|
-
var PageBlockItemTableRichTextNode =
|
|
2192
|
-
type:
|
|
2193
|
-
id:
|
|
2142
|
+
var PageBlockItemTableRichTextNode = z41.object({
|
|
2143
|
+
type: z41.literal("RichText"),
|
|
2144
|
+
id: z41.string(),
|
|
2194
2145
|
value: PageBlockItemRichTextValue.shape.value
|
|
2195
2146
|
});
|
|
2196
|
-
var PageBlockItemTableMultiRichTextNode =
|
|
2197
|
-
type:
|
|
2147
|
+
var PageBlockItemTableMultiRichTextNode = z41.object({
|
|
2148
|
+
type: z41.literal("MultiRichText"),
|
|
2198
2149
|
value: PageBlockItemMultiRichTextValue.shape.value
|
|
2199
2150
|
});
|
|
2200
|
-
var PageBlockItemTableImageNode =
|
|
2201
|
-
type:
|
|
2202
|
-
id:
|
|
2151
|
+
var PageBlockItemTableImageNode = z41.object({
|
|
2152
|
+
type: z41.literal("Image"),
|
|
2153
|
+
id: z41.string(),
|
|
2203
2154
|
caption: PageBlockItemImageValue.shape.caption,
|
|
2204
2155
|
value: PageBlockItemImageValue.shape.value
|
|
2205
2156
|
});
|
|
2206
|
-
var PageBlockItemTableNode =
|
|
2157
|
+
var PageBlockItemTableNode = z41.discriminatedUnion("type", [
|
|
2207
2158
|
PageBlockItemTableRichTextNode,
|
|
2208
2159
|
// PageBlockItemTableMultiRichTextNode,
|
|
2209
2160
|
PageBlockItemTableImageNode
|
|
2210
2161
|
]);
|
|
2211
|
-
var PageBlockItemTableCell =
|
|
2212
|
-
id:
|
|
2213
|
-
nodes:
|
|
2214
|
-
columnWidth:
|
|
2162
|
+
var PageBlockItemTableCell = z41.object({
|
|
2163
|
+
id: z41.string(),
|
|
2164
|
+
nodes: z41.array(PageBlockItemTableNode),
|
|
2165
|
+
columnWidth: z41.number().optional(),
|
|
2215
2166
|
alignment: PageBlockTableCellAlignment
|
|
2216
2167
|
});
|
|
2217
|
-
var PageBlockItemTableRow =
|
|
2218
|
-
cells:
|
|
2168
|
+
var PageBlockItemTableRow = z41.object({
|
|
2169
|
+
cells: z41.array(PageBlockItemTableCell)
|
|
2219
2170
|
});
|
|
2220
|
-
var PageBlockItemTableValue =
|
|
2221
|
-
highlightHeaderColumn:
|
|
2222
|
-
highlightHeaderRow:
|
|
2223
|
-
showBorder:
|
|
2224
|
-
value:
|
|
2171
|
+
var PageBlockItemTableValue = z41.object({
|
|
2172
|
+
highlightHeaderColumn: z41.boolean().optional(),
|
|
2173
|
+
highlightHeaderRow: z41.boolean().optional(),
|
|
2174
|
+
showBorder: z41.boolean().optional(),
|
|
2175
|
+
value: z41.array(PageBlockItemTableRow).default([])
|
|
2225
2176
|
});
|
|
2226
|
-
var DocumentationItemHeaderAlignmentSchema =
|
|
2227
|
-
var DocumentationItemHeaderImageScaleTypeSchema =
|
|
2177
|
+
var DocumentationItemHeaderAlignmentSchema = z42.enum(["Left", "Center"]);
|
|
2178
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z42.enum(["AspectFill", "AspectFit"]);
|
|
2228
2179
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
2229
2180
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
2230
|
-
var DocumentationItemHeaderV1 =
|
|
2231
|
-
description:
|
|
2181
|
+
var DocumentationItemHeaderV1 = z43.object({
|
|
2182
|
+
description: z43.string(),
|
|
2232
2183
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2233
2184
|
foregroundColor: ColorTokenData.nullish(),
|
|
2234
2185
|
backgroundColor: ColorTokenData.nullish(),
|
|
2235
2186
|
backgroundImageAsset: PageBlockAsset.nullish(),
|
|
2236
2187
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2237
|
-
showBackgroundOverlay:
|
|
2238
|
-
showCoverText:
|
|
2239
|
-
minHeight:
|
|
2188
|
+
showBackgroundOverlay: z43.boolean(),
|
|
2189
|
+
showCoverText: z43.boolean(),
|
|
2190
|
+
minHeight: z43.number().nullish()
|
|
2240
2191
|
});
|
|
2241
2192
|
var defaultDocumentationItemHeaderV1 = {
|
|
2242
2193
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2245,26 +2196,26 @@ var defaultDocumentationItemHeaderV1 = {
|
|
|
2245
2196
|
showBackgroundOverlay: false,
|
|
2246
2197
|
showCoverText: true
|
|
2247
2198
|
};
|
|
2248
|
-
var DocumentationItemConfigurationV1 =
|
|
2249
|
-
showSidebar:
|
|
2250
|
-
isPrivate:
|
|
2251
|
-
isHidden:
|
|
2199
|
+
var DocumentationItemConfigurationV1 = z44.object({
|
|
2200
|
+
showSidebar: z44.boolean(),
|
|
2201
|
+
isPrivate: z44.boolean().optional(),
|
|
2202
|
+
isHidden: z44.boolean().optional(),
|
|
2252
2203
|
header: DocumentationItemHeaderV1
|
|
2253
2204
|
});
|
|
2254
|
-
var DocumentationPageDataV1 =
|
|
2255
|
-
blocks:
|
|
2205
|
+
var DocumentationPageDataV1 = z45.object({
|
|
2206
|
+
blocks: z45.array(PageBlockV1),
|
|
2256
2207
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
2257
2208
|
});
|
|
2258
|
-
var DocumentationItemHeaderV2 =
|
|
2259
|
-
description:
|
|
2209
|
+
var DocumentationItemHeaderV2 = z46.object({
|
|
2210
|
+
description: z46.string(),
|
|
2260
2211
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2261
2212
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
2262
2213
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
2263
2214
|
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
2264
2215
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2265
|
-
showBackgroundOverlay:
|
|
2266
|
-
showCoverText:
|
|
2267
|
-
minHeight:
|
|
2216
|
+
showBackgroundOverlay: z46.boolean(),
|
|
2217
|
+
showCoverText: z46.boolean(),
|
|
2218
|
+
minHeight: z46.number().nullish()
|
|
2268
2219
|
});
|
|
2269
2220
|
var defaultDocumentationItemHeaderV2 = {
|
|
2270
2221
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2273,10 +2224,10 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
2273
2224
|
showBackgroundOverlay: false,
|
|
2274
2225
|
showCoverText: true
|
|
2275
2226
|
};
|
|
2276
|
-
var DocumentationItemConfigurationV2 =
|
|
2277
|
-
showSidebar:
|
|
2278
|
-
isPrivate:
|
|
2279
|
-
isHidden:
|
|
2227
|
+
var DocumentationItemConfigurationV2 = z47.object({
|
|
2228
|
+
showSidebar: z47.boolean(),
|
|
2229
|
+
isPrivate: z47.boolean().optional(),
|
|
2230
|
+
isHidden: z47.boolean().optional(),
|
|
2280
2231
|
header: DocumentationItemHeaderV2
|
|
2281
2232
|
});
|
|
2282
2233
|
var defaultDocumentationItemConfigurationV2 = {
|
|
@@ -2285,157 +2236,188 @@ var defaultDocumentationItemConfigurationV2 = {
|
|
|
2285
2236
|
isPrivate: false,
|
|
2286
2237
|
showSidebar: true
|
|
2287
2238
|
};
|
|
2288
|
-
var DocumentationPageDataV2 =
|
|
2239
|
+
var DocumentationPageDataV2 = z48.object({
|
|
2289
2240
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
2290
2241
|
});
|
|
2242
|
+
var DesignElementOrigin = z49.object({
|
|
2243
|
+
id: z49.string(),
|
|
2244
|
+
sourceId: z49.string(),
|
|
2245
|
+
name: z49.string()
|
|
2246
|
+
});
|
|
2247
|
+
var DesignElementBase = z49.object({
|
|
2248
|
+
id: z49.string(),
|
|
2249
|
+
persistentId: z49.string(),
|
|
2250
|
+
meta: ObjectMeta,
|
|
2251
|
+
designSystemVersionId: z49.string(),
|
|
2252
|
+
createdAt: z49.coerce.date(),
|
|
2253
|
+
updatedAt: z49.coerce.date()
|
|
2254
|
+
});
|
|
2255
|
+
var DesignElementImportedBase = DesignElementBase.extend({
|
|
2256
|
+
origin: DesignElementOrigin
|
|
2257
|
+
});
|
|
2258
|
+
var DesignElementGroupablePart = z49.object({
|
|
2259
|
+
parentPersistentId: z49.string().optional(),
|
|
2260
|
+
sortOrder: z49.number()
|
|
2261
|
+
});
|
|
2262
|
+
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
2263
|
+
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
2264
|
+
parentPersistentId: z49.string()
|
|
2265
|
+
});
|
|
2266
|
+
var DesignElementBrandedPart = z49.object({
|
|
2267
|
+
brandPersistentId: z49.string()
|
|
2268
|
+
});
|
|
2269
|
+
var DesignElementSlugPart = z49.object({
|
|
2270
|
+
slug: z49.string().optional(),
|
|
2271
|
+
userSlug: z49.string().optional()
|
|
2272
|
+
});
|
|
2291
2273
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
2292
2274
|
data: PageBlockDataV2
|
|
2293
2275
|
});
|
|
2294
|
-
var PageBlockEditorModelV2 =
|
|
2295
|
-
id:
|
|
2296
|
-
type:
|
|
2276
|
+
var PageBlockEditorModelV2 = z50.object({
|
|
2277
|
+
id: z50.string(),
|
|
2278
|
+
type: z50.literal("Block"),
|
|
2297
2279
|
data: PageBlockDataV2
|
|
2298
2280
|
});
|
|
2299
|
-
var PageSectionTypeV2 =
|
|
2300
|
-
var PageSectionColumnV2 =
|
|
2301
|
-
id:
|
|
2302
|
-
blocks:
|
|
2303
|
-
});
|
|
2304
|
-
var PageSectionItemV2 =
|
|
2305
|
-
id:
|
|
2306
|
-
title:
|
|
2307
|
-
columns:
|
|
2308
|
-
});
|
|
2309
|
-
var PageSectionPaddingV2 =
|
|
2310
|
-
top:
|
|
2311
|
-
bottom:
|
|
2312
|
-
left:
|
|
2313
|
-
right:
|
|
2314
|
-
});
|
|
2315
|
-
var PageSectionAppearanceV2 =
|
|
2316
|
-
expandToEdges:
|
|
2317
|
-
contentExpandToEdges:
|
|
2281
|
+
var PageSectionTypeV2 = z51.enum(["Tabs"]);
|
|
2282
|
+
var PageSectionColumnV2 = z51.object({
|
|
2283
|
+
id: z51.string(),
|
|
2284
|
+
blocks: z51.array(PageBlockEditorModelV2)
|
|
2285
|
+
});
|
|
2286
|
+
var PageSectionItemV2 = z51.object({
|
|
2287
|
+
id: z51.string(),
|
|
2288
|
+
title: z51.string(),
|
|
2289
|
+
columns: z51.array(PageSectionColumnV2)
|
|
2290
|
+
});
|
|
2291
|
+
var PageSectionPaddingV2 = z51.object({
|
|
2292
|
+
top: z51.number().optional(),
|
|
2293
|
+
bottom: z51.number().optional(),
|
|
2294
|
+
left: z51.number().optional(),
|
|
2295
|
+
right: z51.number().optional()
|
|
2296
|
+
});
|
|
2297
|
+
var PageSectionAppearanceV2 = z51.object({
|
|
2298
|
+
expandToEdges: z51.boolean(),
|
|
2299
|
+
contentExpandToEdges: z51.boolean(),
|
|
2318
2300
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2319
2301
|
foregroundColor: PageBlockColorV2.optional(),
|
|
2320
2302
|
padding: PageSectionPaddingV2.optional()
|
|
2321
2303
|
});
|
|
2322
|
-
var PageSectionEditorModelV2 =
|
|
2323
|
-
id:
|
|
2324
|
-
type:
|
|
2325
|
-
variantId:
|
|
2304
|
+
var PageSectionEditorModelV2 = z51.object({
|
|
2305
|
+
id: z51.string(),
|
|
2306
|
+
type: z51.literal("Section"),
|
|
2307
|
+
variantId: z51.string().optional(),
|
|
2326
2308
|
sectionType: PageSectionTypeV2,
|
|
2327
2309
|
appearance: PageSectionAppearanceV2,
|
|
2328
|
-
items:
|
|
2310
|
+
items: z51.array(PageSectionItemV2)
|
|
2329
2311
|
});
|
|
2330
|
-
var DurationUnit =
|
|
2331
|
-
var DurationValue =
|
|
2312
|
+
var DurationUnit = z52.enum(["Ms"]);
|
|
2313
|
+
var DurationValue = z52.object({
|
|
2332
2314
|
unit: DurationUnit,
|
|
2333
|
-
measure:
|
|
2315
|
+
measure: z52.number()
|
|
2334
2316
|
});
|
|
2335
2317
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
2336
|
-
var FigmaFileStructureNodeType =
|
|
2337
|
-
var FigmaFileStructureNodeBase =
|
|
2338
|
-
id:
|
|
2339
|
-
name:
|
|
2318
|
+
var FigmaFileStructureNodeType = z53.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
2319
|
+
var FigmaFileStructureNodeBase = z53.object({
|
|
2320
|
+
id: z53.string(),
|
|
2321
|
+
name: z53.string(),
|
|
2340
2322
|
type: FigmaFileStructureNodeType,
|
|
2341
2323
|
size: SizeOrUndefined,
|
|
2342
|
-
parentComponentSetId:
|
|
2324
|
+
parentComponentSetId: z53.string().optional()
|
|
2343
2325
|
});
|
|
2344
2326
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
2345
|
-
children:
|
|
2327
|
+
children: z53.lazy(() => FigmaFileStructureNode.array())
|
|
2346
2328
|
});
|
|
2347
|
-
var FigmaFileStructureStatistics =
|
|
2348
|
-
frames:
|
|
2349
|
-
components:
|
|
2350
|
-
componentSets:
|
|
2329
|
+
var FigmaFileStructureStatistics = z53.object({
|
|
2330
|
+
frames: z53.number().nullable().optional().transform((v) => v ?? 0),
|
|
2331
|
+
components: z53.number().nullable().optional().transform((v) => v ?? 0),
|
|
2332
|
+
componentSets: z53.number().nullable().optional().transform((v) => v ?? 0)
|
|
2351
2333
|
});
|
|
2352
|
-
var FigmaFileStructureElementData =
|
|
2353
|
-
value:
|
|
2334
|
+
var FigmaFileStructureElementData = z53.object({
|
|
2335
|
+
value: z53.object({
|
|
2354
2336
|
structure: FigmaFileStructureNode,
|
|
2355
2337
|
assetsInFile: FigmaFileStructureStatistics
|
|
2356
2338
|
})
|
|
2357
2339
|
});
|
|
2358
|
-
var FigmaNodeRenderFormat =
|
|
2359
|
-
var FigmaNodeReferenceData =
|
|
2360
|
-
structureElementId:
|
|
2361
|
-
nodeId:
|
|
2362
|
-
fileId:
|
|
2363
|
-
valid:
|
|
2340
|
+
var FigmaNodeRenderFormat = z54.enum(["Png", "Svg"]);
|
|
2341
|
+
var FigmaNodeReferenceData = z54.object({
|
|
2342
|
+
structureElementId: z54.string(),
|
|
2343
|
+
nodeId: z54.string(),
|
|
2344
|
+
fileId: z54.string().optional(),
|
|
2345
|
+
valid: z54.boolean(),
|
|
2364
2346
|
format: FigmaNodeRenderFormat.default("Png"),
|
|
2365
2347
|
// Asset data
|
|
2366
|
-
assetId:
|
|
2367
|
-
assetScale:
|
|
2368
|
-
assetWidth:
|
|
2369
|
-
assetHeight:
|
|
2370
|
-
assetUrl:
|
|
2371
|
-
assetOriginKey:
|
|
2372
|
-
});
|
|
2373
|
-
var FigmaNodeReferenceElementData =
|
|
2348
|
+
assetId: z54.string().optional(),
|
|
2349
|
+
assetScale: z54.number().optional(),
|
|
2350
|
+
assetWidth: z54.number().optional(),
|
|
2351
|
+
assetHeight: z54.number().optional(),
|
|
2352
|
+
assetUrl: z54.string().optional(),
|
|
2353
|
+
assetOriginKey: z54.string().optional()
|
|
2354
|
+
});
|
|
2355
|
+
var FigmaNodeReferenceElementData = z54.object({
|
|
2374
2356
|
value: FigmaNodeReferenceData
|
|
2375
2357
|
});
|
|
2376
|
-
var FontFamilyValue =
|
|
2358
|
+
var FontFamilyValue = z55.string();
|
|
2377
2359
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
2378
|
-
var FontSizeUnit =
|
|
2379
|
-
var FontSizeValue =
|
|
2360
|
+
var FontSizeUnit = z56.enum(["Pixels", "Rem", "Percent"]);
|
|
2361
|
+
var FontSizeValue = z56.object({
|
|
2380
2362
|
unit: FontSizeUnit,
|
|
2381
|
-
measure:
|
|
2363
|
+
measure: z56.number()
|
|
2382
2364
|
});
|
|
2383
2365
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
2384
|
-
var FontWeightValue =
|
|
2366
|
+
var FontWeightValue = z57.string();
|
|
2385
2367
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
2386
|
-
var GradientType =
|
|
2387
|
-
var GradientStop =
|
|
2388
|
-
position:
|
|
2368
|
+
var GradientType = z58.enum(["Linear", "Radial", "Angular"]);
|
|
2369
|
+
var GradientStop = z58.object({
|
|
2370
|
+
position: z58.number(),
|
|
2389
2371
|
color: ColorTokenData
|
|
2390
2372
|
});
|
|
2391
|
-
var GradientLayerValue =
|
|
2373
|
+
var GradientLayerValue = z58.object({
|
|
2392
2374
|
from: Point2D,
|
|
2393
2375
|
to: Point2D,
|
|
2394
2376
|
type: GradientType,
|
|
2395
|
-
aspectRatio: nullishToOptional(
|
|
2377
|
+
aspectRatio: nullishToOptional(z58.number()),
|
|
2396
2378
|
// z.number(),
|
|
2397
|
-
stops:
|
|
2379
|
+
stops: z58.array(GradientStop).min(2)
|
|
2398
2380
|
});
|
|
2399
2381
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
2400
|
-
var GradientTokenValue =
|
|
2382
|
+
var GradientTokenValue = z58.array(GradientLayerData);
|
|
2401
2383
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
2402
|
-
var DocumentationGroupBehavior =
|
|
2403
|
-
var ElementGroupDataV1 =
|
|
2384
|
+
var DocumentationGroupBehavior = z59.enum(["Group", "Tabs"]);
|
|
2385
|
+
var ElementGroupDataV1 = z59.object({
|
|
2404
2386
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
2405
2387
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
2406
2388
|
});
|
|
2407
|
-
var ElementGroupDataV2 =
|
|
2389
|
+
var ElementGroupDataV2 = z59.object({
|
|
2408
2390
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
2409
2391
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
2410
2392
|
});
|
|
2411
|
-
var LetterSpacingUnit =
|
|
2412
|
-
var LetterSpacingValue =
|
|
2393
|
+
var LetterSpacingUnit = z60.enum(["Pixels", "Rem", "Percent"]);
|
|
2394
|
+
var LetterSpacingValue = z60.object({
|
|
2413
2395
|
unit: LetterSpacingUnit,
|
|
2414
|
-
measure:
|
|
2396
|
+
measure: z60.number()
|
|
2415
2397
|
});
|
|
2416
2398
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
2417
|
-
var LineHeightUnit =
|
|
2418
|
-
var LineHeightValue =
|
|
2399
|
+
var LineHeightUnit = z61.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
2400
|
+
var LineHeightValue = z61.object({
|
|
2419
2401
|
unit: LineHeightUnit,
|
|
2420
|
-
measure:
|
|
2402
|
+
measure: z61.number()
|
|
2421
2403
|
});
|
|
2422
2404
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
2423
|
-
var ParagraphIndentUnit =
|
|
2424
|
-
var ParagraphIndentValue =
|
|
2405
|
+
var ParagraphIndentUnit = z62.enum(["Pixels", "Rem", "Percent"]);
|
|
2406
|
+
var ParagraphIndentValue = z62.object({
|
|
2425
2407
|
unit: ParagraphIndentUnit,
|
|
2426
|
-
measure:
|
|
2408
|
+
measure: z62.number()
|
|
2427
2409
|
});
|
|
2428
2410
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
2429
|
-
var ParagraphSpacingUnit =
|
|
2430
|
-
var ParagraphSpacingValue =
|
|
2411
|
+
var ParagraphSpacingUnit = z63.enum(["Pixels", "Rem", "Percent"]);
|
|
2412
|
+
var ParagraphSpacingValue = z63.object({
|
|
2431
2413
|
unit: ParagraphSpacingUnit,
|
|
2432
|
-
measure:
|
|
2414
|
+
measure: z63.number()
|
|
2433
2415
|
});
|
|
2434
2416
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
2435
|
-
var ProductCopyValue =
|
|
2417
|
+
var ProductCopyValue = z64.string();
|
|
2436
2418
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
2437
2419
|
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
2438
|
-
var SafeIdSchema =
|
|
2420
|
+
var SafeIdSchema = z65.string().refine(
|
|
2439
2421
|
(value) => {
|
|
2440
2422
|
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
2441
2423
|
},
|
|
@@ -2443,39 +2425,39 @@ var SafeIdSchema = z66.string().refine(
|
|
|
2443
2425
|
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
2444
2426
|
}
|
|
2445
2427
|
);
|
|
2446
|
-
var ShadowType =
|
|
2447
|
-
var ShadowLayerValue =
|
|
2428
|
+
var ShadowType = z66.enum(["Drop", "Inner"]);
|
|
2429
|
+
var ShadowLayerValue = z66.object({
|
|
2448
2430
|
color: ColorTokenData,
|
|
2449
|
-
x:
|
|
2450
|
-
y:
|
|
2451
|
-
radius:
|
|
2452
|
-
spread:
|
|
2431
|
+
x: z66.number(),
|
|
2432
|
+
y: z66.number(),
|
|
2433
|
+
radius: z66.number(),
|
|
2434
|
+
spread: z66.number(),
|
|
2453
2435
|
opacity: OpacityTokenData.optional(),
|
|
2454
2436
|
type: ShadowType
|
|
2455
2437
|
});
|
|
2456
2438
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
2457
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
2458
|
-
var SizeUnit =
|
|
2459
|
-
var SizeValue =
|
|
2439
|
+
var ShadowTokenData = tokenAliasOrValue(z66.array(ShadowTokenDataBase));
|
|
2440
|
+
var SizeUnit = z67.enum(["Pixels", "Rem", "Percent"]);
|
|
2441
|
+
var SizeValue = z67.object({
|
|
2460
2442
|
unit: SizeUnit,
|
|
2461
|
-
measure:
|
|
2443
|
+
measure: z67.number()
|
|
2462
2444
|
});
|
|
2463
2445
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
2464
|
-
var SpaceUnit =
|
|
2465
|
-
var SpaceValue =
|
|
2446
|
+
var SpaceUnit = z68.enum(["Pixels", "Rem", "Percent"]);
|
|
2447
|
+
var SpaceValue = z68.object({
|
|
2466
2448
|
unit: SpaceUnit,
|
|
2467
|
-
measure:
|
|
2449
|
+
measure: z68.number()
|
|
2468
2450
|
});
|
|
2469
2451
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
2470
|
-
var StringValue =
|
|
2452
|
+
var StringValue = z69.string();
|
|
2471
2453
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
2472
|
-
var TextCase =
|
|
2454
|
+
var TextCase = z70.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
2473
2455
|
var TextCaseValue = TextCase;
|
|
2474
2456
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
2475
|
-
var TextDecoration =
|
|
2457
|
+
var TextDecoration = z71.enum(["None", "Underline", "Strikethrough"]);
|
|
2476
2458
|
var TextDecorationValue = TextDecoration;
|
|
2477
2459
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
2478
|
-
var TypographyValue =
|
|
2460
|
+
var TypographyValue = z72.object({
|
|
2479
2461
|
fontSize: FontSizeTokenData,
|
|
2480
2462
|
fontFamily: FontFamilyTokenData,
|
|
2481
2463
|
fontWeight: FontWeightTokenData,
|
|
@@ -2487,23 +2469,23 @@ var TypographyValue = z73.object({
|
|
|
2487
2469
|
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
2488
2470
|
});
|
|
2489
2471
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
2490
|
-
var Visibility =
|
|
2472
|
+
var Visibility = z73.enum(["Hidden", "Visible"]);
|
|
2491
2473
|
var VisibilityValue = Visibility;
|
|
2492
2474
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
2493
|
-
var ZIndexUnit =
|
|
2494
|
-
var ZIndexValue =
|
|
2475
|
+
var ZIndexUnit = z74.enum(["Raw"]);
|
|
2476
|
+
var ZIndexValue = z74.object({
|
|
2495
2477
|
unit: ZIndexUnit,
|
|
2496
|
-
measure:
|
|
2478
|
+
measure: z74.number()
|
|
2497
2479
|
});
|
|
2498
2480
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
2499
2481
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
2500
|
-
shortPersistentId:
|
|
2482
|
+
shortPersistentId: z75.string().optional(),
|
|
2501
2483
|
childType: DesignElementType,
|
|
2502
2484
|
data: ElementGroupDataV2.optional()
|
|
2503
2485
|
});
|
|
2504
2486
|
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
2505
2487
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
2506
|
-
shortPersistentId:
|
|
2488
|
+
shortPersistentId: z76.string(),
|
|
2507
2489
|
data: DocumentationPageDataV1
|
|
2508
2490
|
});
|
|
2509
2491
|
var DocumentationGroupV1 = ElementGroup.omit({
|
|
@@ -2512,11 +2494,29 @@ var DocumentationGroupV1 = ElementGroup.omit({
|
|
|
2512
2494
|
data: ElementGroupDataV1.optional()
|
|
2513
2495
|
});
|
|
2514
2496
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
2515
|
-
shortPersistentId:
|
|
2497
|
+
shortPersistentId: z77.string(),
|
|
2516
2498
|
data: DocumentationPageDataV2.extend({
|
|
2517
|
-
oldBlocks:
|
|
2499
|
+
oldBlocks: z77.array(PageBlockV1).optional()
|
|
2518
2500
|
})
|
|
2519
2501
|
});
|
|
2502
|
+
var FigmaComponentOriginPart = z78.object({
|
|
2503
|
+
nodeId: z78.string().optional(),
|
|
2504
|
+
width: z78.number().optional(),
|
|
2505
|
+
height: z78.number().optional()
|
|
2506
|
+
});
|
|
2507
|
+
var FigmaComponentAsset = z78.object({
|
|
2508
|
+
assetId: z78.string(),
|
|
2509
|
+
assetPath: z78.string()
|
|
2510
|
+
});
|
|
2511
|
+
var FigmaComponentOrigin = DesignElementOrigin.extend(FigmaComponentOriginPart.shape);
|
|
2512
|
+
var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
2513
|
+
origin: FigmaComponentOrigin.optional(),
|
|
2514
|
+
thumbnail: FigmaComponentAsset,
|
|
2515
|
+
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
2516
|
+
svg: FigmaComponentAsset.optional(),
|
|
2517
|
+
isAsset: z78.boolean(),
|
|
2518
|
+
parentComponentPersistentId: nullishToOptional(z78.string())
|
|
2519
|
+
});
|
|
2520
2520
|
var FigmaFileStructureOrigin = z79.object({
|
|
2521
2521
|
sourceId: z79.string(),
|
|
2522
2522
|
fileId: z79.string().optional()
|
|
@@ -3219,7 +3219,15 @@ var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
|
|
|
3219
3219
|
"Default"
|
|
3220
3220
|
]);
|
|
3221
3221
|
var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
|
|
3222
|
-
var PageBlockDefinitionRichTextEditorPropertyStyle = z100.enum([
|
|
3222
|
+
var PageBlockDefinitionRichTextEditorPropertyStyle = z100.enum([
|
|
3223
|
+
"OL",
|
|
3224
|
+
"UL",
|
|
3225
|
+
"Bold",
|
|
3226
|
+
"Italic",
|
|
3227
|
+
"Link",
|
|
3228
|
+
"Strikethrough",
|
|
3229
|
+
"InlineCode"
|
|
3230
|
+
]);
|
|
3223
3231
|
var PageBlockDefinitionTextPropertyStyle = z100.enum([
|
|
3224
3232
|
"Title1",
|
|
3225
3233
|
"Title2",
|
|
@@ -3257,11 +3265,7 @@ var PageBlockDefinitionSingleSelectPropertyColor = z100.enum([
|
|
|
3257
3265
|
"Cyan",
|
|
3258
3266
|
"Fuchsia"
|
|
3259
3267
|
]);
|
|
3260
|
-
var IconSet = z100.enum([
|
|
3261
|
-
"CheckCircle",
|
|
3262
|
-
"CrossCircle",
|
|
3263
|
-
"Alert"
|
|
3264
|
-
]);
|
|
3268
|
+
var IconSet = z100.enum(["CheckCircle", "CrossCircle", "Alert"]);
|
|
3265
3269
|
var PageBlockDefinitionMultiSelectPropertyStyle = z100.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
3266
3270
|
var PageBlockDefinitionImageAspectRatio = z100.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
3267
3271
|
var PageBlockDefinitionImageWidth = z100.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
@@ -3753,7 +3757,7 @@ var PublishedDoc = z123.object({
|
|
|
3753
3757
|
var DesignSystemVersion = z124.object({
|
|
3754
3758
|
id: z124.string(),
|
|
3755
3759
|
version: z124.string(),
|
|
3756
|
-
createdAt: z124.date(),
|
|
3760
|
+
createdAt: z124.coerce.date(),
|
|
3757
3761
|
designSystemId: z124.string(),
|
|
3758
3762
|
name: z124.string(),
|
|
3759
3763
|
comment: z124.string(),
|
|
@@ -5628,7 +5632,6 @@ var DTOFigmaComponent = z201.object({
|
|
|
5628
5632
|
persistentId: z201.string(),
|
|
5629
5633
|
designSystemVersionId: z201.string(),
|
|
5630
5634
|
brandId: z201.string(),
|
|
5631
|
-
parentComponentId: z201.string().optional(),
|
|
5632
5635
|
thumbnailUrl: z201.string().optional(),
|
|
5633
5636
|
svgUrl: z201.string().optional(),
|
|
5634
5637
|
exportProperties: z201.object({
|
|
@@ -5638,6 +5641,7 @@ var DTOFigmaComponent = z201.object({
|
|
|
5638
5641
|
updatedAt: z201.coerce.date(),
|
|
5639
5642
|
meta: ObjectMeta,
|
|
5640
5643
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5644
|
+
parentComponentPersistentId: z201.string().optional(),
|
|
5641
5645
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
|
|
5642
5646
|
});
|
|
5643
5647
|
|