@supernova-studio/model 0.52.11 → 0.52.13
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 +2654 -2160
- package/dist/index.d.ts +2654 -2160
- package/dist/index.js +155 -152
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +755 -752
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/documentation/block-definitions/item.ts +10 -6
- package/src/dsm/elements/component-properties.ts +18 -13
- package/src/dsm/elements/data/component.ts +5 -0
- package/src/dsm/elements/figma-component.ts +53 -0
- package/src/dsm/elements/index.ts +1 -2
- package/src/dsm/import/asset.ts +2 -2
- package/src/dsm/import/component.ts +13 -11
- package/src/dsm/import/support/figma-files.ts +1 -0
- package/src/dsm/import/support/import-model-collections.ts +5 -5
- package/src/dsm/version.ts +1 -1
- package/src/dsm/elements/component-set.ts +0 -9
- package/src/dsm/elements/component.ts +0 -55
package/dist/index.mjs
CHANGED
|
@@ -464,6 +464,7 @@ import { z as z22 } from "zod";
|
|
|
464
464
|
var FigmaFileDownloadScope = z22.object({
|
|
465
465
|
styles: z22.boolean(),
|
|
466
466
|
components: z22.boolean(),
|
|
467
|
+
componentSets: z22.boolean(),
|
|
467
468
|
currentVersion: z22.literal("__latest__").nullable(),
|
|
468
469
|
publishedVersion: z22.string().nullable(),
|
|
469
470
|
downloadChunkSize: z22.number().optional(),
|
|
@@ -592,27 +593,71 @@ var BorderValue = z31.object({
|
|
|
592
593
|
var BorderTokenData = tokenAliasOrValue(BorderValue);
|
|
593
594
|
|
|
594
595
|
// src/dsm/elements/data/component.ts
|
|
596
|
+
import { z as z33 } from "zod";
|
|
597
|
+
|
|
598
|
+
// src/dsm/elements/component-properties.ts
|
|
595
599
|
import { z as z32 } from "zod";
|
|
596
|
-
var
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
600
|
+
var FigmaComponentPropertyType = z32.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
|
|
601
|
+
var FigmaComponentBooleanProperty = z32.object({
|
|
602
|
+
type: z32.literal(FigmaComponentPropertyType.enum.Boolean),
|
|
603
|
+
defaultValue: z32.boolean()
|
|
604
|
+
});
|
|
605
|
+
var FigmaComponentInstanceSwapProperty = z32.object({
|
|
606
|
+
type: z32.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
607
|
+
defaultValue: z32.string(),
|
|
608
|
+
preferredValues: z32.object({
|
|
609
|
+
type: z32.enum(["Component", "ComponentSet"]),
|
|
610
|
+
key: z32.string()
|
|
611
|
+
}).array()
|
|
612
|
+
});
|
|
613
|
+
var FigmaComponentVariantProperty = z32.object({
|
|
614
|
+
type: z32.literal(FigmaComponentPropertyType.enum.Variant),
|
|
615
|
+
defaultValue: z32.string(),
|
|
616
|
+
options: z32.array(z32.string())
|
|
617
|
+
});
|
|
618
|
+
var FigmaComponentTextProperty = z32.object({
|
|
619
|
+
type: z32.literal(FigmaComponentPropertyType.enum.Text),
|
|
620
|
+
defaultValue: z32.string()
|
|
621
|
+
});
|
|
622
|
+
var FigmaComponentProperty = z32.discriminatedUnion("type", [
|
|
623
|
+
FigmaComponentBooleanProperty,
|
|
624
|
+
FigmaComponentInstanceSwapProperty,
|
|
625
|
+
FigmaComponentTextProperty
|
|
626
|
+
]);
|
|
627
|
+
var FigmaComponentPropertyMap = z32.record(z32.string(), FigmaComponentProperty);
|
|
628
|
+
var FigmaComponentSetProperties = z32.record(
|
|
629
|
+
z32.string(),
|
|
630
|
+
z32.discriminatedUnion("type", [
|
|
631
|
+
FigmaComponentBooleanProperty,
|
|
632
|
+
FigmaComponentInstanceSwapProperty,
|
|
633
|
+
FigmaComponentTextProperty,
|
|
634
|
+
FigmaComponentVariantProperty
|
|
635
|
+
])
|
|
636
|
+
);
|
|
637
|
+
|
|
638
|
+
// src/dsm/elements/data/component.ts
|
|
639
|
+
var ComponentElementData = z33.object({
|
|
640
|
+
value: z33.object({
|
|
641
|
+
thumbnailImage: z33.object({
|
|
642
|
+
value: z33.object({
|
|
643
|
+
url: z33.string(),
|
|
644
|
+
assetId: z33.string()
|
|
602
645
|
})
|
|
603
646
|
}),
|
|
604
|
-
svg:
|
|
605
|
-
value:
|
|
606
|
-
url:
|
|
607
|
-
assetId:
|
|
647
|
+
svg: z33.object({
|
|
648
|
+
value: z33.object({
|
|
649
|
+
url: z33.string(),
|
|
650
|
+
assetId: z33.string()
|
|
608
651
|
})
|
|
609
|
-
}).optional()
|
|
652
|
+
}).optional(),
|
|
653
|
+
parentComponentPersistentId: nullishToOptional(z33.string()),
|
|
654
|
+
componentPropertyDefinitions: nullishToOptional(FigmaComponentPropertyMap)
|
|
610
655
|
})
|
|
611
656
|
});
|
|
612
657
|
|
|
613
658
|
// src/dsm/elements/data/documentation-block-v1.ts
|
|
614
659
|
import deepEqual from "deep-equal";
|
|
615
|
-
import { z as
|
|
660
|
+
import { z as z40 } from "zod";
|
|
616
661
|
|
|
617
662
|
// src/utils/errors.ts
|
|
618
663
|
var SupernovaException = class _SupernovaException extends Error {
|
|
@@ -767,26 +812,26 @@ function uniqueBy(items, prop) {
|
|
|
767
812
|
}
|
|
768
813
|
|
|
769
814
|
// src/utils/content-loader-instruction.ts
|
|
770
|
-
import { z as
|
|
771
|
-
var ContentLoadInstruction =
|
|
772
|
-
from:
|
|
773
|
-
to:
|
|
774
|
-
authorizationHeaderKvsId:
|
|
775
|
-
timeout:
|
|
776
|
-
});
|
|
777
|
-
var ContentLoaderPayload =
|
|
778
|
-
type:
|
|
815
|
+
import { z as z34 } from "zod";
|
|
816
|
+
var ContentLoadInstruction = z34.object({
|
|
817
|
+
from: z34.string(),
|
|
818
|
+
to: z34.string(),
|
|
819
|
+
authorizationHeaderKvsId: z34.string().optional(),
|
|
820
|
+
timeout: z34.number().optional()
|
|
821
|
+
});
|
|
822
|
+
var ContentLoaderPayload = z34.object({
|
|
823
|
+
type: z34.literal("Single"),
|
|
779
824
|
instruction: ContentLoadInstruction
|
|
780
825
|
}).or(
|
|
781
|
-
|
|
782
|
-
type:
|
|
783
|
-
loadingChunkSize:
|
|
784
|
-
instructions:
|
|
826
|
+
z34.object({
|
|
827
|
+
type: z34.literal("Multiple"),
|
|
828
|
+
loadingChunkSize: z34.number().optional(),
|
|
829
|
+
instructions: z34.array(ContentLoadInstruction)
|
|
785
830
|
})
|
|
786
831
|
).or(
|
|
787
|
-
|
|
788
|
-
type:
|
|
789
|
-
location:
|
|
832
|
+
z34.object({
|
|
833
|
+
type: z34.literal("S3"),
|
|
834
|
+
location: z34.string()
|
|
790
835
|
})
|
|
791
836
|
);
|
|
792
837
|
|
|
@@ -1486,63 +1531,63 @@ function isSlugReserved(slug) {
|
|
|
1486
1531
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
1487
1532
|
|
|
1488
1533
|
// src/dsm/properties/property-definition.ts
|
|
1489
|
-
import { z as
|
|
1490
|
-
var ElementPropertyTypeSchema =
|
|
1491
|
-
var ElementPropertyTargetType =
|
|
1492
|
-
var ElementPropertyLinkType =
|
|
1534
|
+
import { z as z35 } from "zod";
|
|
1535
|
+
var ElementPropertyTypeSchema = z35.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
1536
|
+
var ElementPropertyTargetType = z35.enum(["Token", "Component", "DocumentationPage"]);
|
|
1537
|
+
var ElementPropertyLinkType = z35.enum(["FigmaComponent", "DocumentationPage"]);
|
|
1493
1538
|
var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
1494
|
-
var ColorTokenInlineData =
|
|
1495
|
-
value:
|
|
1539
|
+
var ColorTokenInlineData = z35.object({
|
|
1540
|
+
value: z35.string()
|
|
1496
1541
|
});
|
|
1497
|
-
var ElementPropertyDefinitionOption =
|
|
1498
|
-
id:
|
|
1499
|
-
name:
|
|
1542
|
+
var ElementPropertyDefinitionOption = z35.object({
|
|
1543
|
+
id: z35.string(),
|
|
1544
|
+
name: z35.string(),
|
|
1500
1545
|
backgroundColor: ColorTokenInlineData.optional()
|
|
1501
1546
|
});
|
|
1502
|
-
var ElementPropertyDefinition =
|
|
1503
|
-
id:
|
|
1504
|
-
designSystemVersionId:
|
|
1505
|
-
persistentId:
|
|
1506
|
-
name:
|
|
1507
|
-
codeName:
|
|
1508
|
-
description:
|
|
1547
|
+
var ElementPropertyDefinition = z35.object({
|
|
1548
|
+
id: z35.string(),
|
|
1549
|
+
designSystemVersionId: z35.string(),
|
|
1550
|
+
persistentId: z35.string(),
|
|
1551
|
+
name: z35.string(),
|
|
1552
|
+
codeName: z35.string().regex(CODE_NAME_REGEX),
|
|
1553
|
+
description: z35.string(),
|
|
1509
1554
|
type: ElementPropertyTypeSchema,
|
|
1510
1555
|
targetElementType: ElementPropertyTargetType,
|
|
1511
|
-
options:
|
|
1556
|
+
options: z35.array(ElementPropertyDefinitionOption).optional(),
|
|
1512
1557
|
linkElementType: ElementPropertyLinkType.optional()
|
|
1513
1558
|
});
|
|
1514
1559
|
var ElementPropertyType = ElementPropertyTypeSchema.enum;
|
|
1515
1560
|
|
|
1516
1561
|
// src/dsm/properties/property-value.ts
|
|
1517
|
-
import { z as
|
|
1518
|
-
var ElementPropertyValue =
|
|
1519
|
-
id:
|
|
1520
|
-
designSystemVersionId:
|
|
1521
|
-
targetElementPersistentId:
|
|
1522
|
-
definitionPersistentId:
|
|
1523
|
-
stringValue:
|
|
1524
|
-
numberValue:
|
|
1525
|
-
booleanValue:
|
|
1526
|
-
referenceValue:
|
|
1527
|
-
referenceValuePreview:
|
|
1562
|
+
import { z as z36 } from "zod";
|
|
1563
|
+
var ElementPropertyValue = z36.object({
|
|
1564
|
+
id: z36.string(),
|
|
1565
|
+
designSystemVersionId: z36.string(),
|
|
1566
|
+
targetElementPersistentId: z36.string(),
|
|
1567
|
+
definitionPersistentId: z36.string(),
|
|
1568
|
+
stringValue: z36.string().nullish(),
|
|
1569
|
+
numberValue: z36.number().nullish(),
|
|
1570
|
+
booleanValue: z36.boolean().nullish(),
|
|
1571
|
+
referenceValue: z36.string().nullish(),
|
|
1572
|
+
referenceValuePreview: z36.string().optional()
|
|
1528
1573
|
});
|
|
1529
1574
|
|
|
1530
1575
|
// src/dsm/elements/primitives/point.ts
|
|
1531
|
-
import { z as
|
|
1532
|
-
var Point2D =
|
|
1533
|
-
x:
|
|
1534
|
-
y:
|
|
1576
|
+
import { z as z37 } from "zod";
|
|
1577
|
+
var Point2D = z37.object({
|
|
1578
|
+
x: z37.number(),
|
|
1579
|
+
y: z37.number()
|
|
1535
1580
|
});
|
|
1536
1581
|
|
|
1537
1582
|
// src/dsm/elements/primitives/size.ts
|
|
1538
|
-
import { z as
|
|
1583
|
+
import { z as z38 } from "zod";
|
|
1539
1584
|
var nullSize = { height: -1, width: -1 };
|
|
1540
1585
|
function isNullSize(size) {
|
|
1541
1586
|
return size.height === nullSize.height && size.width === nullSize.width;
|
|
1542
1587
|
}
|
|
1543
|
-
var Size =
|
|
1544
|
-
width:
|
|
1545
|
-
height:
|
|
1588
|
+
var Size = z38.object({
|
|
1589
|
+
width: z38.number().nullish().transform((v) => v ?? nullSize.width),
|
|
1590
|
+
height: z38.number().nullish().transform((v) => v ?? nullSize.height)
|
|
1546
1591
|
});
|
|
1547
1592
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
1548
1593
|
if (!v)
|
|
@@ -1553,8 +1598,8 @@ var SizeOrUndefined = Size.optional().transform((v) => {
|
|
|
1553
1598
|
});
|
|
1554
1599
|
|
|
1555
1600
|
// src/dsm/elements/raw-element.ts
|
|
1556
|
-
import { z as
|
|
1557
|
-
var DesignTokenType =
|
|
1601
|
+
import { z as z39 } from "zod";
|
|
1602
|
+
var DesignTokenType = z39.enum([
|
|
1558
1603
|
"Color",
|
|
1559
1604
|
"Border",
|
|
1560
1605
|
"Gradient",
|
|
@@ -1586,7 +1631,7 @@ var DesignTokenType = z38.enum([
|
|
|
1586
1631
|
]);
|
|
1587
1632
|
var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
|
|
1588
1633
|
var DesignElementType = DesignTokenType.or(
|
|
1589
|
-
|
|
1634
|
+
z39.enum([
|
|
1590
1635
|
"Component",
|
|
1591
1636
|
"Theme",
|
|
1592
1637
|
"Documentation",
|
|
@@ -1601,7 +1646,7 @@ var DesignElementType = DesignTokenType.or(
|
|
|
1601
1646
|
function isTokenType(type) {
|
|
1602
1647
|
return DesignTokenType.safeParse(type).success;
|
|
1603
1648
|
}
|
|
1604
|
-
var DesignElementCategory =
|
|
1649
|
+
var DesignElementCategory = z39.enum([
|
|
1605
1650
|
"Token",
|
|
1606
1651
|
"Component",
|
|
1607
1652
|
"DesignSystemComponent",
|
|
@@ -1609,39 +1654,39 @@ var DesignElementCategory = z38.enum([
|
|
|
1609
1654
|
"Theme",
|
|
1610
1655
|
"PageBlock"
|
|
1611
1656
|
]);
|
|
1612
|
-
var DesignSystemElementExportProps =
|
|
1613
|
-
isAsset:
|
|
1614
|
-
codeName:
|
|
1615
|
-
});
|
|
1616
|
-
var ShallowDesignElement =
|
|
1617
|
-
id:
|
|
1618
|
-
persistentId:
|
|
1619
|
-
designSystemVersionId:
|
|
1657
|
+
var DesignSystemElementExportProps = z39.object({
|
|
1658
|
+
isAsset: z39.boolean().nullish().transform((v) => v ?? false),
|
|
1659
|
+
codeName: z39.string().nullish()
|
|
1660
|
+
});
|
|
1661
|
+
var ShallowDesignElement = z39.object({
|
|
1662
|
+
id: z39.string(),
|
|
1663
|
+
persistentId: z39.string(),
|
|
1664
|
+
designSystemVersionId: z39.string(),
|
|
1620
1665
|
type: DesignElementType,
|
|
1621
|
-
brandPersistentId:
|
|
1622
|
-
parentPersistentId:
|
|
1623
|
-
shortPersistentId:
|
|
1666
|
+
brandPersistentId: z39.string().optional(),
|
|
1667
|
+
parentPersistentId: z39.string().optional(),
|
|
1668
|
+
shortPersistentId: z39.string().optional(),
|
|
1624
1669
|
childType: DesignElementType.optional(),
|
|
1625
|
-
sortOrder:
|
|
1626
|
-
origin:
|
|
1627
|
-
createdAt:
|
|
1628
|
-
updatedAt:
|
|
1670
|
+
sortOrder: z39.number(),
|
|
1671
|
+
origin: z39.record(z39.any()).optional(),
|
|
1672
|
+
createdAt: z39.coerce.date(),
|
|
1673
|
+
updatedAt: z39.coerce.date()
|
|
1629
1674
|
});
|
|
1630
1675
|
var DesignElement = ShallowDesignElement.extend({
|
|
1631
1676
|
meta: ObjectMeta,
|
|
1632
|
-
slug:
|
|
1633
|
-
userSlug:
|
|
1677
|
+
slug: z39.string().optional(),
|
|
1678
|
+
userSlug: z39.string().optional(),
|
|
1634
1679
|
exportProperties: DesignSystemElementExportProps.optional(),
|
|
1635
|
-
data:
|
|
1636
|
-
origin:
|
|
1680
|
+
data: z39.record(z39.any()),
|
|
1681
|
+
origin: z39.record(z39.any()).optional()
|
|
1637
1682
|
});
|
|
1638
1683
|
var HierarchicalElements = DesignTokenType.or(
|
|
1639
|
-
|
|
1684
|
+
z39.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
|
|
1640
1685
|
);
|
|
1641
1686
|
|
|
1642
1687
|
// src/dsm/elements/data/documentation-block-v1.ts
|
|
1643
|
-
var PageBlockCalloutType =
|
|
1644
|
-
var PageBlockTypeV1 =
|
|
1688
|
+
var PageBlockCalloutType = z40.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
1689
|
+
var PageBlockTypeV1 = z40.enum([
|
|
1645
1690
|
"Text",
|
|
1646
1691
|
"Heading",
|
|
1647
1692
|
"Code",
|
|
@@ -1675,7 +1720,7 @@ var PageBlockTypeV1 = z39.enum([
|
|
|
1675
1720
|
"TableCell",
|
|
1676
1721
|
"Guidelines"
|
|
1677
1722
|
]);
|
|
1678
|
-
var PageBlockCodeLanguage =
|
|
1723
|
+
var PageBlockCodeLanguage = z40.enum([
|
|
1679
1724
|
"Angular",
|
|
1680
1725
|
"Bash",
|
|
1681
1726
|
"C",
|
|
@@ -1709,70 +1754,70 @@ var PageBlockCodeLanguage = z39.enum([
|
|
|
1709
1754
|
"XML",
|
|
1710
1755
|
"YAML"
|
|
1711
1756
|
]);
|
|
1712
|
-
var PageBlockAlignment =
|
|
1713
|
-
var PageBlockThemeType =
|
|
1714
|
-
var PageBlockAssetType =
|
|
1715
|
-
var PageBlockTilesAlignment =
|
|
1716
|
-
var PageBlockTilesLayout =
|
|
1717
|
-
var PageBlockTheme =
|
|
1718
|
-
themeIds:
|
|
1757
|
+
var PageBlockAlignment = z40.enum(["Left", "Center", "Stretch", "Right"]);
|
|
1758
|
+
var PageBlockThemeType = z40.enum(["Override", "Comparison"]);
|
|
1759
|
+
var PageBlockAssetType = z40.enum(["image", "figmaFrame"]);
|
|
1760
|
+
var PageBlockTilesAlignment = z40.enum(["Center", "FrameHeight"]);
|
|
1761
|
+
var PageBlockTilesLayout = z40.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
1762
|
+
var PageBlockTheme = z40.object({
|
|
1763
|
+
themeIds: z40.array(z40.string()),
|
|
1719
1764
|
type: PageBlockThemeType
|
|
1720
1765
|
});
|
|
1721
|
-
var PageBlockUrlPreview =
|
|
1722
|
-
title: nullishToOptional(
|
|
1723
|
-
description: nullishToOptional(
|
|
1724
|
-
thumbnailUrl: nullishToOptional(
|
|
1725
|
-
});
|
|
1726
|
-
var PageBlockFrameOrigin =
|
|
1727
|
-
sourceFileName: nullishToOptional(
|
|
1728
|
-
title: nullishToOptional(
|
|
1729
|
-
previewUrl: nullishToOptional(
|
|
1730
|
-
valid: nullishToOptional(
|
|
1731
|
-
referenceId: nullishToOptional(
|
|
1732
|
-
assetId: nullishToOptional(
|
|
1733
|
-
assetScale: nullishToOptional(
|
|
1734
|
-
width: nullishToOptional(
|
|
1735
|
-
height: nullishToOptional(
|
|
1736
|
-
});
|
|
1737
|
-
var PageBlockFrame =
|
|
1738
|
-
persistentId:
|
|
1739
|
-
sourceId:
|
|
1740
|
-
sourceFrameId:
|
|
1741
|
-
title: nullishToOptional(
|
|
1742
|
-
description: nullishToOptional(
|
|
1766
|
+
var PageBlockUrlPreview = z40.object({
|
|
1767
|
+
title: nullishToOptional(z40.string()),
|
|
1768
|
+
description: nullishToOptional(z40.string()),
|
|
1769
|
+
thumbnailUrl: nullishToOptional(z40.string())
|
|
1770
|
+
});
|
|
1771
|
+
var PageBlockFrameOrigin = z40.object({
|
|
1772
|
+
sourceFileName: nullishToOptional(z40.string()),
|
|
1773
|
+
title: nullishToOptional(z40.string()),
|
|
1774
|
+
previewUrl: nullishToOptional(z40.string()),
|
|
1775
|
+
valid: nullishToOptional(z40.boolean()),
|
|
1776
|
+
referenceId: nullishToOptional(z40.string()),
|
|
1777
|
+
assetId: nullishToOptional(z40.string()),
|
|
1778
|
+
assetScale: nullishToOptional(z40.number()),
|
|
1779
|
+
width: nullishToOptional(z40.number()),
|
|
1780
|
+
height: nullishToOptional(z40.number())
|
|
1781
|
+
});
|
|
1782
|
+
var PageBlockFrame = z40.object({
|
|
1783
|
+
persistentId: z40.string(),
|
|
1784
|
+
sourceId: z40.string(),
|
|
1785
|
+
sourceFrameId: z40.string(),
|
|
1786
|
+
title: nullishToOptional(z40.string()),
|
|
1787
|
+
description: nullishToOptional(z40.string()),
|
|
1743
1788
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1744
1789
|
origin: nullishToOptional(PageBlockFrameOrigin)
|
|
1745
1790
|
});
|
|
1746
|
-
var PageBlockAsset =
|
|
1791
|
+
var PageBlockAsset = z40.object({
|
|
1747
1792
|
type: PageBlockAssetType,
|
|
1748
|
-
id: nullishToOptional(
|
|
1749
|
-
url: nullishToOptional(
|
|
1793
|
+
id: nullishToOptional(z40.string()),
|
|
1794
|
+
url: nullishToOptional(z40.string()),
|
|
1750
1795
|
figmaFrame: nullishToOptional(PageBlockFrame)
|
|
1751
1796
|
});
|
|
1752
|
-
var PageBlockLinkPreview =
|
|
1753
|
-
title: nullishToOptional(
|
|
1754
|
-
valid: nullishToOptional(
|
|
1797
|
+
var PageBlockLinkPreview = z40.object({
|
|
1798
|
+
title: nullishToOptional(z40.string()),
|
|
1799
|
+
valid: nullishToOptional(z40.boolean())
|
|
1755
1800
|
});
|
|
1756
|
-
var PageBlockShortcut =
|
|
1757
|
-
persistentId:
|
|
1758
|
-
title: nullishToOptional(
|
|
1759
|
-
description: nullishToOptional(
|
|
1801
|
+
var PageBlockShortcut = z40.object({
|
|
1802
|
+
persistentId: z40.string(),
|
|
1803
|
+
title: nullishToOptional(z40.string()),
|
|
1804
|
+
description: nullishToOptional(z40.string()),
|
|
1760
1805
|
asset: nullishToOptional(PageBlockAsset),
|
|
1761
|
-
documentationItemId: nullishToOptional(
|
|
1762
|
-
pageHeadingId: nullishToOptional(
|
|
1763
|
-
url: nullishToOptional(
|
|
1764
|
-
openInNewTab: nullishToOptional(
|
|
1806
|
+
documentationItemId: nullishToOptional(z40.string()),
|
|
1807
|
+
pageHeadingId: nullishToOptional(z40.string()),
|
|
1808
|
+
url: nullishToOptional(z40.string()),
|
|
1809
|
+
openInNewTab: nullishToOptional(z40.boolean()),
|
|
1765
1810
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
1766
1811
|
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
1767
1812
|
});
|
|
1768
|
-
var PageBlockCustomBlockPropertyImageValue =
|
|
1813
|
+
var PageBlockCustomBlockPropertyImageValue = z40.object({
|
|
1769
1814
|
asset: nullishToOptional(PageBlockAsset),
|
|
1770
|
-
assetId: nullishToOptional(
|
|
1771
|
-
assetUrl: nullishToOptional(
|
|
1815
|
+
assetId: nullishToOptional(z40.string()),
|
|
1816
|
+
assetUrl: nullishToOptional(z40.string())
|
|
1772
1817
|
});
|
|
1773
|
-
var PageBlockCustomBlockPropertyValue =
|
|
1774
|
-
key:
|
|
1775
|
-
value:
|
|
1818
|
+
var PageBlockCustomBlockPropertyValue = z40.object({
|
|
1819
|
+
key: z40.string(),
|
|
1820
|
+
value: z40.any()
|
|
1776
1821
|
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
1777
1822
|
// e.g. element id 67451 in the dev db
|
|
1778
1823
|
// value: z
|
|
@@ -1783,117 +1828,117 @@ var PageBlockCustomBlockPropertyValue = z39.object({
|
|
|
1783
1828
|
// .or(TypographyTokenData)
|
|
1784
1829
|
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
1785
1830
|
});
|
|
1786
|
-
var PageBlockFigmaFrameProperties =
|
|
1831
|
+
var PageBlockFigmaFrameProperties = z40.object({
|
|
1787
1832
|
color: nullishToOptional(
|
|
1788
|
-
|
|
1789
|
-
value:
|
|
1833
|
+
z40.object({
|
|
1834
|
+
value: z40.string()
|
|
1790
1835
|
})
|
|
1791
1836
|
),
|
|
1792
1837
|
alignment: PageBlockTilesAlignment,
|
|
1793
1838
|
layout: PageBlockTilesLayout,
|
|
1794
1839
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1795
|
-
showTitles:
|
|
1840
|
+
showTitles: z40.boolean()
|
|
1796
1841
|
});
|
|
1797
|
-
var PageBlockRenderCodeProperties =
|
|
1798
|
-
showCode:
|
|
1799
|
-
showControls:
|
|
1842
|
+
var PageBlockRenderCodeProperties = z40.object({
|
|
1843
|
+
showCode: z40.boolean(),
|
|
1844
|
+
showControls: z40.boolean().optional()
|
|
1800
1845
|
});
|
|
1801
|
-
var PageBlockAssetComponent =
|
|
1802
|
-
persistentId:
|
|
1803
|
-
componentAssetId:
|
|
1804
|
-
title: nullishToOptional(
|
|
1805
|
-
description: nullishToOptional(
|
|
1846
|
+
var PageBlockAssetComponent = z40.object({
|
|
1847
|
+
persistentId: z40.string(),
|
|
1848
|
+
componentAssetId: z40.string(),
|
|
1849
|
+
title: nullishToOptional(z40.string()),
|
|
1850
|
+
description: nullishToOptional(z40.string()),
|
|
1806
1851
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
1807
1852
|
});
|
|
1808
|
-
var PageBlockTableColumn =
|
|
1809
|
-
id:
|
|
1853
|
+
var PageBlockTableColumn = z40.object({
|
|
1854
|
+
id: z40.string(),
|
|
1810
1855
|
width: DimensionTokenData
|
|
1811
1856
|
});
|
|
1812
|
-
var PageBlockTableProperties =
|
|
1813
|
-
showBorders:
|
|
1814
|
-
showHeaderRow:
|
|
1815
|
-
showHeaderColumn:
|
|
1816
|
-
columns:
|
|
1857
|
+
var PageBlockTableProperties = z40.object({
|
|
1858
|
+
showBorders: z40.boolean(),
|
|
1859
|
+
showHeaderRow: z40.boolean(),
|
|
1860
|
+
showHeaderColumn: z40.boolean(),
|
|
1861
|
+
columns: z40.array(PageBlockTableColumn)
|
|
1817
1862
|
});
|
|
1818
|
-
var PageBlockTextSpanAttributeType =
|
|
1819
|
-
var PageBlockTextSpanAttribute =
|
|
1863
|
+
var PageBlockTextSpanAttributeType = z40.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
|
|
1864
|
+
var PageBlockTextSpanAttribute = z40.object({
|
|
1820
1865
|
type: PageBlockTextSpanAttributeType,
|
|
1821
1866
|
// Link attributes
|
|
1822
|
-
link: nullishToOptional(
|
|
1823
|
-
documentationItemId: nullishToOptional(
|
|
1824
|
-
openInNewWindow: nullishToOptional(
|
|
1867
|
+
link: nullishToOptional(z40.string()),
|
|
1868
|
+
documentationItemId: nullishToOptional(z40.string()),
|
|
1869
|
+
openInNewWindow: nullishToOptional(z40.boolean()),
|
|
1825
1870
|
// deprecated. use openInNewTab
|
|
1826
|
-
openInNewTab: nullishToOptional(
|
|
1871
|
+
openInNewTab: nullishToOptional(z40.boolean()),
|
|
1827
1872
|
// Comment attributes
|
|
1828
|
-
commentHighlightId: nullishToOptional(
|
|
1829
|
-
commentIsResolved: nullishToOptional(
|
|
1873
|
+
commentHighlightId: nullishToOptional(z40.string()),
|
|
1874
|
+
commentIsResolved: nullishToOptional(z40.boolean())
|
|
1830
1875
|
});
|
|
1831
|
-
var PageBlockTextSpan =
|
|
1832
|
-
text:
|
|
1833
|
-
attributes:
|
|
1876
|
+
var PageBlockTextSpan = z40.object({
|
|
1877
|
+
text: z40.string(),
|
|
1878
|
+
attributes: z40.array(PageBlockTextSpanAttribute)
|
|
1834
1879
|
});
|
|
1835
|
-
var PageBlockText =
|
|
1836
|
-
spans:
|
|
1880
|
+
var PageBlockText = z40.object({
|
|
1881
|
+
spans: z40.array(PageBlockTextSpan)
|
|
1837
1882
|
});
|
|
1838
|
-
var PageBlockGuideline =
|
|
1839
|
-
description: nullishToOptional(
|
|
1883
|
+
var PageBlockGuideline = z40.object({
|
|
1884
|
+
description: nullishToOptional(z40.string()),
|
|
1840
1885
|
asset: nullishToOptional(PageBlockAsset),
|
|
1841
|
-
type:
|
|
1842
|
-
imageAlt: nullishToOptional(
|
|
1843
|
-
imageCaption: nullishToOptional(
|
|
1886
|
+
type: z40.string(),
|
|
1887
|
+
imageAlt: nullishToOptional(z40.string()),
|
|
1888
|
+
imageCaption: nullishToOptional(z40.string()),
|
|
1844
1889
|
imageAlignment: nullishToOptional(PageBlockAlignment)
|
|
1845
1890
|
});
|
|
1846
|
-
var PageBlockBaseV1 =
|
|
1847
|
-
persistentId:
|
|
1891
|
+
var PageBlockBaseV1 = z40.object({
|
|
1892
|
+
persistentId: z40.string(),
|
|
1848
1893
|
type: PageBlockTypeV1,
|
|
1849
|
-
numberOfColumns: nullishToOptional(
|
|
1894
|
+
numberOfColumns: nullishToOptional(z40.number()),
|
|
1850
1895
|
// Element linking
|
|
1851
|
-
designObjectId: nullishToOptional(
|
|
1852
|
-
designObjectIds: nullishToOptional(
|
|
1853
|
-
tokenType: nullishToOptional(DesignTokenType.or(
|
|
1854
|
-
showNestedGroups: nullishToOptional(
|
|
1855
|
-
brandId: nullishToOptional(
|
|
1896
|
+
designObjectId: nullishToOptional(z40.string()),
|
|
1897
|
+
designObjectIds: nullishToOptional(z40.array(z40.string())),
|
|
1898
|
+
tokenType: nullishToOptional(DesignTokenType.or(z40.literal("Font"))),
|
|
1899
|
+
showNestedGroups: nullishToOptional(z40.boolean()),
|
|
1900
|
+
brandId: nullishToOptional(z40.string()),
|
|
1856
1901
|
// Rich text
|
|
1857
1902
|
text: nullishToOptional(PageBlockText),
|
|
1858
|
-
caption: nullishToOptional(
|
|
1859
|
-
headingType: nullishToOptional(
|
|
1903
|
+
caption: nullishToOptional(z40.string()),
|
|
1904
|
+
headingType: nullishToOptional(z40.number().min(1).max(3)),
|
|
1860
1905
|
codeLanguage: nullishToOptional(PageBlockCodeLanguage),
|
|
1861
1906
|
calloutType: nullishToOptional(PageBlockCalloutType),
|
|
1862
|
-
urlInput: nullishToOptional(
|
|
1863
|
-
url: nullishToOptional(
|
|
1907
|
+
urlInput: nullishToOptional(z40.string()),
|
|
1908
|
+
url: nullishToOptional(z40.string()),
|
|
1864
1909
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
1865
1910
|
// Image
|
|
1866
1911
|
asset: nullishToOptional(PageBlockAsset),
|
|
1867
1912
|
alignment: nullishToOptional(PageBlockAlignment),
|
|
1868
1913
|
// Shortcuts block
|
|
1869
|
-
shortcuts: nullishToOptional(
|
|
1914
|
+
shortcuts: nullishToOptional(z40.array(PageBlockShortcut)),
|
|
1870
1915
|
// Guidelines
|
|
1871
1916
|
guidelines: nullishToOptional(PageBlockGuideline.array()),
|
|
1872
1917
|
// Custom blocks
|
|
1873
|
-
customBlockKey: nullishToOptional(
|
|
1874
|
-
customBlockProperties: nullishToOptional(
|
|
1875
|
-
variantKey: nullishToOptional(
|
|
1918
|
+
customBlockKey: nullishToOptional(z40.string()),
|
|
1919
|
+
customBlockProperties: nullishToOptional(z40.array(PageBlockCustomBlockPropertyValue)),
|
|
1920
|
+
variantKey: nullishToOptional(z40.string()),
|
|
1876
1921
|
// Figma frames
|
|
1877
1922
|
figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
|
|
1878
|
-
figmaFrames: nullishToOptional(
|
|
1923
|
+
figmaFrames: nullishToOptional(z40.array(PageBlockFrame)),
|
|
1879
1924
|
// Generic
|
|
1880
1925
|
size: nullishToOptional(Size),
|
|
1881
1926
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1882
1927
|
// Render code
|
|
1883
1928
|
renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
|
|
1884
1929
|
// Component assets
|
|
1885
|
-
componentAssets: nullishToOptional(
|
|
1930
|
+
componentAssets: nullishToOptional(z40.array(PageBlockAssetComponent)),
|
|
1886
1931
|
// Tables
|
|
1887
1932
|
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
1888
|
-
columnId: nullishToOptional(
|
|
1933
|
+
columnId: nullishToOptional(z40.string()),
|
|
1889
1934
|
// Token spreadsheet
|
|
1890
1935
|
theme: nullishToOptional(PageBlockTheme),
|
|
1891
|
-
blacklistedElementProperties: nullishToOptional(
|
|
1936
|
+
blacklistedElementProperties: nullishToOptional(z40.array(z40.string())),
|
|
1892
1937
|
// Arbitrary
|
|
1893
|
-
userMetadata: nullishToOptional(
|
|
1938
|
+
userMetadata: nullishToOptional(z40.string())
|
|
1894
1939
|
});
|
|
1895
1940
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
1896
|
-
children:
|
|
1941
|
+
children: z40.lazy(
|
|
1897
1942
|
() => PageBlockV1.array().nullish().transform((t) => t ?? [])
|
|
1898
1943
|
)
|
|
1899
1944
|
});
|
|
@@ -1995,280 +2040,280 @@ function sanitizeSpanAttribute(attribute) {
|
|
|
1995
2040
|
}
|
|
1996
2041
|
|
|
1997
2042
|
// src/dsm/elements/data/documentation-block-v2.ts
|
|
1998
|
-
import { z as
|
|
1999
|
-
var PageBlockLinkType =
|
|
2000
|
-
var PageBlockImageType =
|
|
2001
|
-
var PageBlockImageAlignment =
|
|
2002
|
-
var PageBlockTableCellAlignment =
|
|
2003
|
-
var PageBlockPreviewContainerSize =
|
|
2004
|
-
var PageBlockThemeDisplayMode =
|
|
2005
|
-
var PageBlockImageResourceReference =
|
|
2006
|
-
resourceId:
|
|
2007
|
-
url:
|
|
2008
|
-
});
|
|
2009
|
-
var PageBlockResourceFrameNodeReference =
|
|
2010
|
-
sourceId:
|
|
2011
|
-
frameReferenceId:
|
|
2012
|
-
});
|
|
2013
|
-
var PageBlockImageReference =
|
|
2043
|
+
import { z as z41 } from "zod";
|
|
2044
|
+
var PageBlockLinkType = z41.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
2045
|
+
var PageBlockImageType = z41.enum(["Resource", "FigmaNode"]);
|
|
2046
|
+
var PageBlockImageAlignment = z41.enum(["Left", "Center", "Stretch"]);
|
|
2047
|
+
var PageBlockTableCellAlignment = z41.enum(["Left", "Center", "Right"]);
|
|
2048
|
+
var PageBlockPreviewContainerSize = z41.enum(["Centered", "NaturalHeight"]);
|
|
2049
|
+
var PageBlockThemeDisplayMode = z41.enum(["Split", "Override"]);
|
|
2050
|
+
var PageBlockImageResourceReference = z41.object({
|
|
2051
|
+
resourceId: z41.string(),
|
|
2052
|
+
url: z41.string()
|
|
2053
|
+
});
|
|
2054
|
+
var PageBlockResourceFrameNodeReference = z41.object({
|
|
2055
|
+
sourceId: z41.string(),
|
|
2056
|
+
frameReferenceId: z41.string()
|
|
2057
|
+
});
|
|
2058
|
+
var PageBlockImageReference = z41.object({
|
|
2014
2059
|
type: PageBlockImageType,
|
|
2015
2060
|
resource: PageBlockImageResourceReference.optional(),
|
|
2016
2061
|
figmaNode: PageBlockResourceFrameNodeReference.optional()
|
|
2017
2062
|
});
|
|
2018
|
-
var PageBlockColorV2 =
|
|
2019
|
-
value:
|
|
2020
|
-
referencedTokenId:
|
|
2063
|
+
var PageBlockColorV2 = z41.object({
|
|
2064
|
+
value: z41.string(),
|
|
2065
|
+
referencedTokenId: z41.string().optional()
|
|
2021
2066
|
});
|
|
2022
|
-
var PageBlockAssetEntityMeta =
|
|
2023
|
-
title:
|
|
2024
|
-
description:
|
|
2067
|
+
var PageBlockAssetEntityMeta = z41.object({
|
|
2068
|
+
title: z41.string().optional(),
|
|
2069
|
+
description: z41.string().optional(),
|
|
2025
2070
|
backgroundColor: PageBlockColorV2.optional()
|
|
2026
2071
|
});
|
|
2027
|
-
var PageBlockFigmaComponentEntityMeta =
|
|
2028
|
-
title:
|
|
2029
|
-
description:
|
|
2072
|
+
var PageBlockFigmaComponentEntityMeta = z41.object({
|
|
2073
|
+
title: z41.string().optional(),
|
|
2074
|
+
description: z41.string().optional(),
|
|
2030
2075
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2031
|
-
selectedComponentProperties:
|
|
2076
|
+
selectedComponentProperties: z41.array(z41.string()).optional()
|
|
2032
2077
|
});
|
|
2033
|
-
var PageBlockFigmaNodeEntityMeta =
|
|
2034
|
-
title:
|
|
2035
|
-
description:
|
|
2078
|
+
var PageBlockFigmaNodeEntityMeta = z41.object({
|
|
2079
|
+
title: z41.string().optional(),
|
|
2080
|
+
description: z41.string().optional(),
|
|
2036
2081
|
backgroundColor: PageBlockColorV2.optional()
|
|
2037
2082
|
});
|
|
2038
|
-
var PageBlockAppearanceV2 =
|
|
2083
|
+
var PageBlockAppearanceV2 = z41.object({
|
|
2039
2084
|
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
2040
|
-
numberOfColumns:
|
|
2085
|
+
numberOfColumns: z41.number().optional()
|
|
2041
2086
|
});
|
|
2042
|
-
var PageBlockItemUntypedValue =
|
|
2043
|
-
value:
|
|
2044
|
-
}).and(
|
|
2045
|
-
var PageBlockLinkV2 =
|
|
2087
|
+
var PageBlockItemUntypedValue = z41.object({
|
|
2088
|
+
value: z41.any()
|
|
2089
|
+
}).and(z41.record(z41.any()));
|
|
2090
|
+
var PageBlockLinkV2 = z41.object({
|
|
2046
2091
|
type: PageBlockLinkType,
|
|
2047
|
-
documentationItemId:
|
|
2048
|
-
pageHeadingId:
|
|
2049
|
-
url:
|
|
2050
|
-
openInNewTab:
|
|
2092
|
+
documentationItemId: z41.string().optional(),
|
|
2093
|
+
pageHeadingId: z41.string().optional(),
|
|
2094
|
+
url: z41.string().optional(),
|
|
2095
|
+
openInNewTab: z41.boolean().optional()
|
|
2051
2096
|
});
|
|
2052
|
-
var PageBlockItemV2 =
|
|
2053
|
-
id:
|
|
2097
|
+
var PageBlockItemV2 = z41.object({
|
|
2098
|
+
id: z41.string(),
|
|
2054
2099
|
linksTo: PageBlockLinkV2.optional(),
|
|
2055
|
-
props:
|
|
2100
|
+
props: z41.record(PageBlockItemUntypedValue)
|
|
2056
2101
|
});
|
|
2057
|
-
var PageBlockDataV2 =
|
|
2058
|
-
packageId:
|
|
2059
|
-
variantId:
|
|
2060
|
-
indentLevel:
|
|
2102
|
+
var PageBlockDataV2 = z41.object({
|
|
2103
|
+
packageId: z41.string(),
|
|
2104
|
+
variantId: z41.string().optional(),
|
|
2105
|
+
indentLevel: z41.number(),
|
|
2061
2106
|
appearance: PageBlockAppearanceV2.optional(),
|
|
2062
|
-
items:
|
|
2107
|
+
items: z41.array(PageBlockItemV2)
|
|
2063
2108
|
});
|
|
2064
|
-
var PageBlockItemAssetValue =
|
|
2065
|
-
selectedPropertyIds:
|
|
2066
|
-
showSearch:
|
|
2109
|
+
var PageBlockItemAssetValue = z41.object({
|
|
2110
|
+
selectedPropertyIds: z41.array(z41.string()).optional(),
|
|
2111
|
+
showSearch: z41.boolean().optional(),
|
|
2067
2112
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2068
2113
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2069
|
-
value:
|
|
2070
|
-
|
|
2071
|
-
entityId:
|
|
2072
|
-
entityType:
|
|
2114
|
+
value: z41.array(
|
|
2115
|
+
z41.object({
|
|
2116
|
+
entityId: z41.string(),
|
|
2117
|
+
entityType: z41.enum(["Asset", "AssetGroup"]),
|
|
2073
2118
|
entityMeta: PageBlockAssetEntityMeta.optional()
|
|
2074
2119
|
})
|
|
2075
2120
|
).default([])
|
|
2076
2121
|
});
|
|
2077
|
-
var PageBlockItemAssetPropertyValue =
|
|
2078
|
-
value:
|
|
2122
|
+
var PageBlockItemAssetPropertyValue = z41.object({
|
|
2123
|
+
value: z41.array(z41.string()).default([])
|
|
2079
2124
|
});
|
|
2080
|
-
var PageBlockItemFigmaComponentValue =
|
|
2081
|
-
showComponentName:
|
|
2082
|
-
showComponentDescription:
|
|
2083
|
-
showPropertyList:
|
|
2125
|
+
var PageBlockItemFigmaComponentValue = z41.object({
|
|
2126
|
+
showComponentName: z41.boolean().optional(),
|
|
2127
|
+
showComponentDescription: z41.boolean().optional(),
|
|
2128
|
+
showPropertyList: z41.boolean().optional(),
|
|
2084
2129
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2085
2130
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2086
|
-
value:
|
|
2087
|
-
|
|
2088
|
-
entityId:
|
|
2089
|
-
entityType:
|
|
2131
|
+
value: z41.array(
|
|
2132
|
+
z41.object({
|
|
2133
|
+
entityId: z41.string(),
|
|
2134
|
+
entityType: z41.enum(["FigmaComponent"]),
|
|
2090
2135
|
entityMeta: PageBlockFigmaComponentEntityMeta.optional()
|
|
2091
2136
|
})
|
|
2092
2137
|
).default([])
|
|
2093
2138
|
});
|
|
2094
|
-
var PageBlockItemBooleanValue =
|
|
2095
|
-
value:
|
|
2139
|
+
var PageBlockItemBooleanValue = z41.object({
|
|
2140
|
+
value: z41.boolean()
|
|
2096
2141
|
});
|
|
2097
|
-
var PageBlockItemCodeValue =
|
|
2142
|
+
var PageBlockItemCodeValue = z41.object({
|
|
2098
2143
|
format: PageBlockCodeLanguage.optional(),
|
|
2099
|
-
caption:
|
|
2100
|
-
value:
|
|
2101
|
-
});
|
|
2102
|
-
var PageBlockItemSandboxValue =
|
|
2103
|
-
showCode:
|
|
2104
|
-
showControls:
|
|
2105
|
-
backgroundColor:
|
|
2106
|
-
alignPreview:
|
|
2107
|
-
previewHeight:
|
|
2108
|
-
value:
|
|
2109
|
-
});
|
|
2110
|
-
var PageBlockItemColorValue =
|
|
2111
|
-
var PageBlockItemComponentValue =
|
|
2112
|
-
selectedPropertyIds:
|
|
2113
|
-
selectedBrandId:
|
|
2114
|
-
value:
|
|
2115
|
-
|
|
2116
|
-
entityId:
|
|
2117
|
-
entityType:
|
|
2144
|
+
caption: z41.string().optional(),
|
|
2145
|
+
value: z41.string()
|
|
2146
|
+
});
|
|
2147
|
+
var PageBlockItemSandboxValue = z41.object({
|
|
2148
|
+
showCode: z41.boolean().optional(),
|
|
2149
|
+
showControls: z41.boolean().optional(),
|
|
2150
|
+
backgroundColor: z41.string().optional(),
|
|
2151
|
+
alignPreview: z41.enum(["Left", "Center"]).optional(),
|
|
2152
|
+
previewHeight: z41.number().optional(),
|
|
2153
|
+
value: z41.string()
|
|
2154
|
+
});
|
|
2155
|
+
var PageBlockItemColorValue = z41.record(z41.any());
|
|
2156
|
+
var PageBlockItemComponentValue = z41.object({
|
|
2157
|
+
selectedPropertyIds: z41.array(z41.string()).optional(),
|
|
2158
|
+
selectedBrandId: z41.string().optional(),
|
|
2159
|
+
value: z41.array(
|
|
2160
|
+
z41.object({
|
|
2161
|
+
entityId: z41.string(),
|
|
2162
|
+
entityType: z41.enum(["Component", "ComponentGroup"])
|
|
2118
2163
|
})
|
|
2119
2164
|
).default([])
|
|
2120
2165
|
});
|
|
2121
|
-
var PageBlockItemComponentPropertyValue =
|
|
2122
|
-
value:
|
|
2123
|
-
});
|
|
2124
|
-
var PageBlockItemDividerValue =
|
|
2125
|
-
var PageBlockItemEmbedValue =
|
|
2126
|
-
value:
|
|
2127
|
-
caption:
|
|
2128
|
-
height:
|
|
2129
|
-
openGraph:
|
|
2130
|
-
title:
|
|
2131
|
-
description:
|
|
2132
|
-
imageUrl:
|
|
2166
|
+
var PageBlockItemComponentPropertyValue = z41.object({
|
|
2167
|
+
value: z41.string()
|
|
2168
|
+
});
|
|
2169
|
+
var PageBlockItemDividerValue = z41.object({});
|
|
2170
|
+
var PageBlockItemEmbedValue = z41.object({
|
|
2171
|
+
value: z41.string().optional(),
|
|
2172
|
+
caption: z41.string().optional(),
|
|
2173
|
+
height: z41.number().optional(),
|
|
2174
|
+
openGraph: z41.object({
|
|
2175
|
+
title: z41.string().optional(),
|
|
2176
|
+
description: z41.string().optional(),
|
|
2177
|
+
imageUrl: z41.string().optional()
|
|
2133
2178
|
}).optional()
|
|
2134
2179
|
});
|
|
2135
|
-
var PageBlockItemFigmaNodeValue =
|
|
2136
|
-
showSearch:
|
|
2180
|
+
var PageBlockItemFigmaNodeValue = z41.object({
|
|
2181
|
+
showSearch: z41.boolean().optional(),
|
|
2137
2182
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2138
2183
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2139
|
-
showFrameDetails:
|
|
2140
|
-
value:
|
|
2141
|
-
|
|
2142
|
-
entityId:
|
|
2184
|
+
showFrameDetails: z41.boolean().optional(),
|
|
2185
|
+
value: z41.array(
|
|
2186
|
+
z41.object({
|
|
2187
|
+
entityId: z41.string(),
|
|
2143
2188
|
entityMeta: PageBlockFigmaNodeEntityMeta.optional()
|
|
2144
2189
|
})
|
|
2145
2190
|
).default([])
|
|
2146
2191
|
});
|
|
2147
|
-
var PageBlockItemImageValue =
|
|
2148
|
-
alt:
|
|
2149
|
-
caption:
|
|
2192
|
+
var PageBlockItemImageValue = z41.object({
|
|
2193
|
+
alt: z41.string().optional(),
|
|
2194
|
+
caption: z41.string().optional(),
|
|
2150
2195
|
alignment: PageBlockImageAlignment.optional(),
|
|
2151
2196
|
value: PageBlockImageReference.optional()
|
|
2152
2197
|
});
|
|
2153
|
-
var PageBlockItemMarkdownValue =
|
|
2154
|
-
value:
|
|
2198
|
+
var PageBlockItemMarkdownValue = z41.object({
|
|
2199
|
+
value: z41.string()
|
|
2155
2200
|
});
|
|
2156
|
-
var PageBlockItemMultiRichTextValue =
|
|
2201
|
+
var PageBlockItemMultiRichTextValue = z41.object({
|
|
2157
2202
|
value: PageBlockText.array()
|
|
2158
2203
|
});
|
|
2159
|
-
var PageBlockItemMultiSelectValue =
|
|
2160
|
-
value:
|
|
2204
|
+
var PageBlockItemMultiSelectValue = z41.object({
|
|
2205
|
+
value: z41.array(z41.string()).default([])
|
|
2161
2206
|
});
|
|
2162
|
-
var PageBlockItemNumberValue =
|
|
2163
|
-
value:
|
|
2207
|
+
var PageBlockItemNumberValue = z41.object({
|
|
2208
|
+
value: z41.number()
|
|
2164
2209
|
});
|
|
2165
|
-
var PageBlockItemRichTextValue =
|
|
2210
|
+
var PageBlockItemRichTextValue = z41.object({
|
|
2166
2211
|
value: PageBlockText,
|
|
2167
2212
|
calloutType: PageBlockCalloutType.optional()
|
|
2168
2213
|
});
|
|
2169
|
-
var PageBlockItemRichTextEditorValue =
|
|
2170
|
-
value:
|
|
2214
|
+
var PageBlockItemRichTextEditorValue = z41.object({
|
|
2215
|
+
value: z41.any()
|
|
2171
2216
|
});
|
|
2172
|
-
var PageBlockItemSingleSelectValue =
|
|
2173
|
-
value:
|
|
2217
|
+
var PageBlockItemSingleSelectValue = z41.object({
|
|
2218
|
+
value: z41.string()
|
|
2174
2219
|
});
|
|
2175
|
-
var PageBlockItemStorybookValue =
|
|
2176
|
-
caption:
|
|
2177
|
-
height:
|
|
2178
|
-
embedUrl:
|
|
2179
|
-
value:
|
|
2220
|
+
var PageBlockItemStorybookValue = z41.object({
|
|
2221
|
+
caption: z41.string().optional(),
|
|
2222
|
+
height: z41.number().optional(),
|
|
2223
|
+
embedUrl: z41.string().optional(),
|
|
2224
|
+
value: z41.string().optional()
|
|
2180
2225
|
});
|
|
2181
|
-
var PageBlockItemTextValue =
|
|
2182
|
-
value:
|
|
2226
|
+
var PageBlockItemTextValue = z41.object({
|
|
2227
|
+
value: z41.string()
|
|
2183
2228
|
});
|
|
2184
|
-
var PageBlockItemTokenValue =
|
|
2185
|
-
selectedPropertyIds:
|
|
2186
|
-
selectedThemeIds:
|
|
2229
|
+
var PageBlockItemTokenValue = z41.object({
|
|
2230
|
+
selectedPropertyIds: z41.array(z41.string()).optional(),
|
|
2231
|
+
selectedThemeIds: z41.array(z41.string()).optional(),
|
|
2187
2232
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
2188
|
-
value:
|
|
2189
|
-
|
|
2190
|
-
entityId:
|
|
2191
|
-
entityType:
|
|
2192
|
-
entityMeta:
|
|
2193
|
-
showNestedGroups:
|
|
2233
|
+
value: z41.array(
|
|
2234
|
+
z41.object({
|
|
2235
|
+
entityId: z41.string(),
|
|
2236
|
+
entityType: z41.enum(["Token", "TokenGroup"]),
|
|
2237
|
+
entityMeta: z41.object({
|
|
2238
|
+
showNestedGroups: z41.boolean().optional()
|
|
2194
2239
|
}).optional()
|
|
2195
2240
|
})
|
|
2196
2241
|
).default([])
|
|
2197
2242
|
});
|
|
2198
|
-
var PageBlockItemTokenPropertyValue =
|
|
2199
|
-
selectedPropertyIds:
|
|
2200
|
-
selectedThemeIds:
|
|
2201
|
-
value:
|
|
2243
|
+
var PageBlockItemTokenPropertyValue = z41.object({
|
|
2244
|
+
selectedPropertyIds: z41.array(z41.string()).optional(),
|
|
2245
|
+
selectedThemeIds: z41.array(z41.string()).optional(),
|
|
2246
|
+
value: z41.array(z41.string()).default([])
|
|
2202
2247
|
});
|
|
2203
|
-
var PageBlockItemTokenTypeValue =
|
|
2204
|
-
value:
|
|
2248
|
+
var PageBlockItemTokenTypeValue = z41.object({
|
|
2249
|
+
value: z41.array(DesignTokenType).default([])
|
|
2205
2250
|
});
|
|
2206
|
-
var PageBlockItemUrlValue =
|
|
2207
|
-
value:
|
|
2251
|
+
var PageBlockItemUrlValue = z41.object({
|
|
2252
|
+
value: z41.string()
|
|
2208
2253
|
});
|
|
2209
|
-
var PageBlockItemTableRichTextNode =
|
|
2210
|
-
type:
|
|
2211
|
-
id:
|
|
2254
|
+
var PageBlockItemTableRichTextNode = z41.object({
|
|
2255
|
+
type: z41.literal("RichText"),
|
|
2256
|
+
id: z41.string(),
|
|
2212
2257
|
value: PageBlockItemRichTextValue.shape.value
|
|
2213
2258
|
});
|
|
2214
|
-
var PageBlockItemTableMultiRichTextNode =
|
|
2215
|
-
type:
|
|
2259
|
+
var PageBlockItemTableMultiRichTextNode = z41.object({
|
|
2260
|
+
type: z41.literal("MultiRichText"),
|
|
2216
2261
|
value: PageBlockItemMultiRichTextValue.shape.value
|
|
2217
2262
|
});
|
|
2218
|
-
var PageBlockItemTableImageNode =
|
|
2219
|
-
type:
|
|
2220
|
-
id:
|
|
2263
|
+
var PageBlockItemTableImageNode = z41.object({
|
|
2264
|
+
type: z41.literal("Image"),
|
|
2265
|
+
id: z41.string(),
|
|
2221
2266
|
caption: PageBlockItemImageValue.shape.caption,
|
|
2222
2267
|
value: PageBlockItemImageValue.shape.value
|
|
2223
2268
|
});
|
|
2224
|
-
var PageBlockItemTableNode =
|
|
2269
|
+
var PageBlockItemTableNode = z41.discriminatedUnion("type", [
|
|
2225
2270
|
PageBlockItemTableRichTextNode,
|
|
2226
2271
|
// PageBlockItemTableMultiRichTextNode,
|
|
2227
2272
|
PageBlockItemTableImageNode
|
|
2228
2273
|
]);
|
|
2229
|
-
var PageBlockItemTableCell =
|
|
2230
|
-
id:
|
|
2231
|
-
nodes:
|
|
2232
|
-
columnWidth:
|
|
2274
|
+
var PageBlockItemTableCell = z41.object({
|
|
2275
|
+
id: z41.string(),
|
|
2276
|
+
nodes: z41.array(PageBlockItemTableNode),
|
|
2277
|
+
columnWidth: z41.number().optional(),
|
|
2233
2278
|
alignment: PageBlockTableCellAlignment
|
|
2234
2279
|
});
|
|
2235
|
-
var PageBlockItemTableRow =
|
|
2236
|
-
cells:
|
|
2280
|
+
var PageBlockItemTableRow = z41.object({
|
|
2281
|
+
cells: z41.array(PageBlockItemTableCell)
|
|
2237
2282
|
});
|
|
2238
|
-
var PageBlockItemTableValue =
|
|
2239
|
-
highlightHeaderColumn:
|
|
2240
|
-
highlightHeaderRow:
|
|
2241
|
-
showBorder:
|
|
2242
|
-
value:
|
|
2283
|
+
var PageBlockItemTableValue = z41.object({
|
|
2284
|
+
highlightHeaderColumn: z41.boolean().optional(),
|
|
2285
|
+
highlightHeaderRow: z41.boolean().optional(),
|
|
2286
|
+
showBorder: z41.boolean().optional(),
|
|
2287
|
+
value: z41.array(PageBlockItemTableRow).default([])
|
|
2243
2288
|
});
|
|
2244
2289
|
|
|
2245
2290
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
2246
|
-
import { z as
|
|
2291
|
+
import { z as z45 } from "zod";
|
|
2247
2292
|
|
|
2248
2293
|
// src/dsm/elements/data/documentation-v1.ts
|
|
2249
|
-
import { z as
|
|
2294
|
+
import { z as z44 } from "zod";
|
|
2250
2295
|
|
|
2251
2296
|
// src/dsm/elements/data/item-header-v1.ts
|
|
2252
|
-
import { z as
|
|
2297
|
+
import { z as z43 } from "zod";
|
|
2253
2298
|
|
|
2254
2299
|
// src/dsm/elements/data/item-header.ts
|
|
2255
|
-
import { z as
|
|
2256
|
-
var DocumentationItemHeaderAlignmentSchema =
|
|
2257
|
-
var DocumentationItemHeaderImageScaleTypeSchema =
|
|
2300
|
+
import { z as z42 } from "zod";
|
|
2301
|
+
var DocumentationItemHeaderAlignmentSchema = z42.enum(["Left", "Center"]);
|
|
2302
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z42.enum(["AspectFill", "AspectFit"]);
|
|
2258
2303
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
2259
2304
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
2260
2305
|
|
|
2261
2306
|
// src/dsm/elements/data/item-header-v1.ts
|
|
2262
|
-
var DocumentationItemHeaderV1 =
|
|
2263
|
-
description:
|
|
2307
|
+
var DocumentationItemHeaderV1 = z43.object({
|
|
2308
|
+
description: z43.string(),
|
|
2264
2309
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2265
2310
|
foregroundColor: ColorTokenData.nullish(),
|
|
2266
2311
|
backgroundColor: ColorTokenData.nullish(),
|
|
2267
2312
|
backgroundImageAsset: PageBlockAsset.nullish(),
|
|
2268
2313
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2269
|
-
showBackgroundOverlay:
|
|
2270
|
-
showCoverText:
|
|
2271
|
-
minHeight:
|
|
2314
|
+
showBackgroundOverlay: z43.boolean(),
|
|
2315
|
+
showCoverText: z43.boolean(),
|
|
2316
|
+
minHeight: z43.number().nullish()
|
|
2272
2317
|
});
|
|
2273
2318
|
var defaultDocumentationItemHeaderV1 = {
|
|
2274
2319
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2279,10 +2324,10 @@ var defaultDocumentationItemHeaderV1 = {
|
|
|
2279
2324
|
};
|
|
2280
2325
|
|
|
2281
2326
|
// src/dsm/elements/data/documentation-v1.ts
|
|
2282
|
-
var DocumentationItemConfigurationV1 =
|
|
2283
|
-
showSidebar:
|
|
2284
|
-
isPrivate:
|
|
2285
|
-
isHidden:
|
|
2327
|
+
var DocumentationItemConfigurationV1 = z44.object({
|
|
2328
|
+
showSidebar: z44.boolean(),
|
|
2329
|
+
isPrivate: z44.boolean().optional(),
|
|
2330
|
+
isHidden: z44.boolean().optional(),
|
|
2286
2331
|
header: DocumentationItemHeaderV1
|
|
2287
2332
|
});
|
|
2288
2333
|
var defaultDocumentationItemConfigurationV1 = {
|
|
@@ -2291,29 +2336,29 @@ var defaultDocumentationItemConfigurationV1 = {
|
|
|
2291
2336
|
};
|
|
2292
2337
|
|
|
2293
2338
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
2294
|
-
var DocumentationPageDataV1 =
|
|
2295
|
-
blocks:
|
|
2339
|
+
var DocumentationPageDataV1 = z45.object({
|
|
2340
|
+
blocks: z45.array(PageBlockV1),
|
|
2296
2341
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
2297
2342
|
});
|
|
2298
2343
|
|
|
2299
2344
|
// src/dsm/elements/data/documentation-page-v2.ts
|
|
2300
|
-
import { z as
|
|
2345
|
+
import { z as z48 } from "zod";
|
|
2301
2346
|
|
|
2302
2347
|
// src/dsm/elements/data/documentation-v2.ts
|
|
2303
|
-
import { z as
|
|
2348
|
+
import { z as z47 } from "zod";
|
|
2304
2349
|
|
|
2305
2350
|
// src/dsm/elements/data/item-header-v2.ts
|
|
2306
|
-
import { z as
|
|
2307
|
-
var DocumentationItemHeaderV2 =
|
|
2308
|
-
description:
|
|
2351
|
+
import { z as z46 } from "zod";
|
|
2352
|
+
var DocumentationItemHeaderV2 = z46.object({
|
|
2353
|
+
description: z46.string(),
|
|
2309
2354
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2310
2355
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
2311
2356
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
2312
2357
|
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
2313
2358
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2314
|
-
showBackgroundOverlay:
|
|
2315
|
-
showCoverText:
|
|
2316
|
-
minHeight:
|
|
2359
|
+
showBackgroundOverlay: z46.boolean(),
|
|
2360
|
+
showCoverText: z46.boolean(),
|
|
2361
|
+
minHeight: z46.number().nullish()
|
|
2317
2362
|
});
|
|
2318
2363
|
var defaultDocumentationItemHeaderV2 = {
|
|
2319
2364
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2324,10 +2369,10 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
2324
2369
|
};
|
|
2325
2370
|
|
|
2326
2371
|
// src/dsm/elements/data/documentation-v2.ts
|
|
2327
|
-
var DocumentationItemConfigurationV2 =
|
|
2328
|
-
showSidebar:
|
|
2329
|
-
isPrivate:
|
|
2330
|
-
isHidden:
|
|
2372
|
+
var DocumentationItemConfigurationV2 = z47.object({
|
|
2373
|
+
showSidebar: z47.boolean(),
|
|
2374
|
+
isPrivate: z47.boolean().optional(),
|
|
2375
|
+
isHidden: z47.boolean().optional(),
|
|
2331
2376
|
header: DocumentationItemHeaderV2
|
|
2332
2377
|
});
|
|
2333
2378
|
var defaultDocumentationItemConfigurationV2 = {
|
|
@@ -2338,122 +2383,122 @@ var defaultDocumentationItemConfigurationV2 = {
|
|
|
2338
2383
|
};
|
|
2339
2384
|
|
|
2340
2385
|
// src/dsm/elements/data/documentation-page-v2.ts
|
|
2341
|
-
var DocumentationPageDataV2 =
|
|
2386
|
+
var DocumentationPageDataV2 = z48.object({
|
|
2342
2387
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
2343
2388
|
});
|
|
2344
2389
|
|
|
2345
2390
|
// src/dsm/elements/data/documentation-section-v2.ts
|
|
2346
|
-
import { z as
|
|
2391
|
+
import { z as z51 } from "zod";
|
|
2347
2392
|
|
|
2348
2393
|
// src/dsm/elements/page-block-v2.ts
|
|
2349
|
-
import { z as
|
|
2394
|
+
import { z as z50 } from "zod";
|
|
2350
2395
|
|
|
2351
2396
|
// src/dsm/elements/base.ts
|
|
2352
|
-
import { z as
|
|
2353
|
-
var DesignElementOrigin =
|
|
2354
|
-
id:
|
|
2355
|
-
sourceId:
|
|
2356
|
-
name:
|
|
2357
|
-
});
|
|
2358
|
-
var DesignElementBase =
|
|
2359
|
-
id:
|
|
2360
|
-
persistentId:
|
|
2397
|
+
import { z as z49 } from "zod";
|
|
2398
|
+
var DesignElementOrigin = z49.object({
|
|
2399
|
+
id: z49.string(),
|
|
2400
|
+
sourceId: z49.string(),
|
|
2401
|
+
name: z49.string()
|
|
2402
|
+
});
|
|
2403
|
+
var DesignElementBase = z49.object({
|
|
2404
|
+
id: z49.string(),
|
|
2405
|
+
persistentId: z49.string(),
|
|
2361
2406
|
meta: ObjectMeta,
|
|
2362
|
-
designSystemVersionId:
|
|
2363
|
-
createdAt:
|
|
2364
|
-
updatedAt:
|
|
2407
|
+
designSystemVersionId: z49.string(),
|
|
2408
|
+
createdAt: z49.coerce.date(),
|
|
2409
|
+
updatedAt: z49.coerce.date()
|
|
2365
2410
|
});
|
|
2366
2411
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
2367
2412
|
origin: DesignElementOrigin
|
|
2368
2413
|
});
|
|
2369
|
-
var DesignElementGroupablePart =
|
|
2370
|
-
parentPersistentId:
|
|
2371
|
-
sortOrder:
|
|
2414
|
+
var DesignElementGroupablePart = z49.object({
|
|
2415
|
+
parentPersistentId: z49.string().optional(),
|
|
2416
|
+
sortOrder: z49.number()
|
|
2372
2417
|
});
|
|
2373
2418
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
2374
2419
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
2375
|
-
parentPersistentId:
|
|
2420
|
+
parentPersistentId: z49.string()
|
|
2376
2421
|
});
|
|
2377
|
-
var DesignElementBrandedPart =
|
|
2378
|
-
brandPersistentId:
|
|
2422
|
+
var DesignElementBrandedPart = z49.object({
|
|
2423
|
+
brandPersistentId: z49.string()
|
|
2379
2424
|
});
|
|
2380
|
-
var DesignElementSlugPart =
|
|
2381
|
-
slug:
|
|
2382
|
-
userSlug:
|
|
2425
|
+
var DesignElementSlugPart = z49.object({
|
|
2426
|
+
slug: z49.string().optional(),
|
|
2427
|
+
userSlug: z49.string().optional()
|
|
2383
2428
|
});
|
|
2384
2429
|
|
|
2385
2430
|
// src/dsm/elements/page-block-v2.ts
|
|
2386
2431
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
2387
2432
|
data: PageBlockDataV2
|
|
2388
2433
|
});
|
|
2389
|
-
var PageBlockEditorModelV2 =
|
|
2390
|
-
id:
|
|
2391
|
-
type:
|
|
2434
|
+
var PageBlockEditorModelV2 = z50.object({
|
|
2435
|
+
id: z50.string(),
|
|
2436
|
+
type: z50.literal("Block"),
|
|
2392
2437
|
data: PageBlockDataV2
|
|
2393
2438
|
});
|
|
2394
2439
|
|
|
2395
2440
|
// src/dsm/elements/data/documentation-section-v2.ts
|
|
2396
|
-
var PageSectionTypeV2 =
|
|
2397
|
-
var PageSectionColumnV2 =
|
|
2398
|
-
id:
|
|
2399
|
-
blocks:
|
|
2400
|
-
});
|
|
2401
|
-
var PageSectionItemV2 =
|
|
2402
|
-
id:
|
|
2403
|
-
title:
|
|
2404
|
-
columns:
|
|
2405
|
-
});
|
|
2406
|
-
var PageSectionPaddingV2 =
|
|
2407
|
-
top:
|
|
2408
|
-
bottom:
|
|
2409
|
-
left:
|
|
2410
|
-
right:
|
|
2411
|
-
});
|
|
2412
|
-
var PageSectionAppearanceV2 =
|
|
2413
|
-
expandToEdges:
|
|
2414
|
-
contentExpandToEdges:
|
|
2441
|
+
var PageSectionTypeV2 = z51.enum(["Tabs"]);
|
|
2442
|
+
var PageSectionColumnV2 = z51.object({
|
|
2443
|
+
id: z51.string(),
|
|
2444
|
+
blocks: z51.array(PageBlockEditorModelV2)
|
|
2445
|
+
});
|
|
2446
|
+
var PageSectionItemV2 = z51.object({
|
|
2447
|
+
id: z51.string(),
|
|
2448
|
+
title: z51.string(),
|
|
2449
|
+
columns: z51.array(PageSectionColumnV2)
|
|
2450
|
+
});
|
|
2451
|
+
var PageSectionPaddingV2 = z51.object({
|
|
2452
|
+
top: z51.number().optional(),
|
|
2453
|
+
bottom: z51.number().optional(),
|
|
2454
|
+
left: z51.number().optional(),
|
|
2455
|
+
right: z51.number().optional()
|
|
2456
|
+
});
|
|
2457
|
+
var PageSectionAppearanceV2 = z51.object({
|
|
2458
|
+
expandToEdges: z51.boolean(),
|
|
2459
|
+
contentExpandToEdges: z51.boolean(),
|
|
2415
2460
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2416
2461
|
foregroundColor: PageBlockColorV2.optional(),
|
|
2417
2462
|
padding: PageSectionPaddingV2.optional()
|
|
2418
2463
|
});
|
|
2419
|
-
var PageSectionEditorModelV2 =
|
|
2420
|
-
id:
|
|
2421
|
-
type:
|
|
2422
|
-
variantId:
|
|
2464
|
+
var PageSectionEditorModelV2 = z51.object({
|
|
2465
|
+
id: z51.string(),
|
|
2466
|
+
type: z51.literal("Section"),
|
|
2467
|
+
variantId: z51.string().optional(),
|
|
2423
2468
|
sectionType: PageSectionTypeV2,
|
|
2424
2469
|
appearance: PageSectionAppearanceV2,
|
|
2425
|
-
items:
|
|
2470
|
+
items: z51.array(PageSectionItemV2)
|
|
2426
2471
|
});
|
|
2427
2472
|
|
|
2428
2473
|
// src/dsm/elements/data/duration.ts
|
|
2429
|
-
import { z as
|
|
2430
|
-
var DurationUnit =
|
|
2431
|
-
var DurationValue =
|
|
2474
|
+
import { z as z52 } from "zod";
|
|
2475
|
+
var DurationUnit = z52.enum(["Ms"]);
|
|
2476
|
+
var DurationValue = z52.object({
|
|
2432
2477
|
unit: DurationUnit,
|
|
2433
|
-
measure:
|
|
2478
|
+
measure: z52.number()
|
|
2434
2479
|
});
|
|
2435
2480
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
2436
2481
|
|
|
2437
2482
|
// src/dsm/elements/data/figma-file-structure.ts
|
|
2438
|
-
import { z as
|
|
2439
|
-
var FigmaFileStructureNodeType =
|
|
2440
|
-
var FigmaFileStructureNodeBase =
|
|
2441
|
-
id:
|
|
2442
|
-
name:
|
|
2483
|
+
import { z as z53 } from "zod";
|
|
2484
|
+
var FigmaFileStructureNodeType = z53.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
2485
|
+
var FigmaFileStructureNodeBase = z53.object({
|
|
2486
|
+
id: z53.string(),
|
|
2487
|
+
name: z53.string(),
|
|
2443
2488
|
type: FigmaFileStructureNodeType,
|
|
2444
2489
|
size: SizeOrUndefined,
|
|
2445
|
-
parentComponentSetId:
|
|
2490
|
+
parentComponentSetId: z53.string().optional()
|
|
2446
2491
|
});
|
|
2447
2492
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
2448
|
-
children:
|
|
2493
|
+
children: z53.lazy(() => FigmaFileStructureNode.array())
|
|
2449
2494
|
});
|
|
2450
|
-
var FigmaFileStructureStatistics =
|
|
2451
|
-
frames:
|
|
2452
|
-
components:
|
|
2453
|
-
componentSets:
|
|
2495
|
+
var FigmaFileStructureStatistics = z53.object({
|
|
2496
|
+
frames: z53.number().nullable().optional().transform((v) => v ?? 0),
|
|
2497
|
+
components: z53.number().nullable().optional().transform((v) => v ?? 0),
|
|
2498
|
+
componentSets: z53.number().nullable().optional().transform((v) => v ?? 0)
|
|
2454
2499
|
});
|
|
2455
|
-
var FigmaFileStructureElementData =
|
|
2456
|
-
value:
|
|
2500
|
+
var FigmaFileStructureElementData = z53.object({
|
|
2501
|
+
value: z53.object({
|
|
2457
2502
|
structure: FigmaFileStructureNode,
|
|
2458
2503
|
assetsInFile: FigmaFileStructureStatistics
|
|
2459
2504
|
})
|
|
@@ -2470,121 +2515,121 @@ function recursiveFigmaFileStructureToMap(node, map) {
|
|
|
2470
2515
|
}
|
|
2471
2516
|
|
|
2472
2517
|
// src/dsm/elements/data/figma-node-reference.ts
|
|
2473
|
-
import { z as
|
|
2474
|
-
var FigmaNodeRenderFormat =
|
|
2475
|
-
var FigmaNodeReferenceData =
|
|
2476
|
-
structureElementId:
|
|
2477
|
-
nodeId:
|
|
2478
|
-
fileId:
|
|
2479
|
-
valid:
|
|
2518
|
+
import { z as z54 } from "zod";
|
|
2519
|
+
var FigmaNodeRenderFormat = z54.enum(["Png", "Svg"]);
|
|
2520
|
+
var FigmaNodeReferenceData = z54.object({
|
|
2521
|
+
structureElementId: z54.string(),
|
|
2522
|
+
nodeId: z54.string(),
|
|
2523
|
+
fileId: z54.string().optional(),
|
|
2524
|
+
valid: z54.boolean(),
|
|
2480
2525
|
format: FigmaNodeRenderFormat.default("Png"),
|
|
2481
2526
|
// Asset data
|
|
2482
|
-
assetId:
|
|
2483
|
-
assetScale:
|
|
2484
|
-
assetWidth:
|
|
2485
|
-
assetHeight:
|
|
2486
|
-
assetUrl:
|
|
2487
|
-
assetOriginKey:
|
|
2488
|
-
});
|
|
2489
|
-
var FigmaNodeReferenceElementData =
|
|
2527
|
+
assetId: z54.string().optional(),
|
|
2528
|
+
assetScale: z54.number().optional(),
|
|
2529
|
+
assetWidth: z54.number().optional(),
|
|
2530
|
+
assetHeight: z54.number().optional(),
|
|
2531
|
+
assetUrl: z54.string().optional(),
|
|
2532
|
+
assetOriginKey: z54.string().optional()
|
|
2533
|
+
});
|
|
2534
|
+
var FigmaNodeReferenceElementData = z54.object({
|
|
2490
2535
|
value: FigmaNodeReferenceData
|
|
2491
2536
|
});
|
|
2492
2537
|
|
|
2493
2538
|
// src/dsm/elements/data/font-family.ts
|
|
2494
|
-
import { z as
|
|
2495
|
-
var FontFamilyValue =
|
|
2539
|
+
import { z as z55 } from "zod";
|
|
2540
|
+
var FontFamilyValue = z55.string();
|
|
2496
2541
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
2497
2542
|
|
|
2498
2543
|
// src/dsm/elements/data/font-size.ts
|
|
2499
|
-
import { z as
|
|
2500
|
-
var FontSizeUnit =
|
|
2501
|
-
var FontSizeValue =
|
|
2544
|
+
import { z as z56 } from "zod";
|
|
2545
|
+
var FontSizeUnit = z56.enum(["Pixels", "Rem", "Percent"]);
|
|
2546
|
+
var FontSizeValue = z56.object({
|
|
2502
2547
|
unit: FontSizeUnit,
|
|
2503
|
-
measure:
|
|
2548
|
+
measure: z56.number()
|
|
2504
2549
|
});
|
|
2505
2550
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
2506
2551
|
|
|
2507
2552
|
// src/dsm/elements/data/font-weight.ts
|
|
2508
|
-
import { z as
|
|
2509
|
-
var FontWeightValue =
|
|
2553
|
+
import { z as z57 } from "zod";
|
|
2554
|
+
var FontWeightValue = z57.string();
|
|
2510
2555
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
2511
2556
|
|
|
2512
2557
|
// src/dsm/elements/data/gradient.ts
|
|
2513
|
-
import { z as
|
|
2514
|
-
var GradientType =
|
|
2515
|
-
var GradientStop =
|
|
2516
|
-
position:
|
|
2558
|
+
import { z as z58 } from "zod";
|
|
2559
|
+
var GradientType = z58.enum(["Linear", "Radial", "Angular"]);
|
|
2560
|
+
var GradientStop = z58.object({
|
|
2561
|
+
position: z58.number(),
|
|
2517
2562
|
color: ColorTokenData
|
|
2518
2563
|
});
|
|
2519
|
-
var GradientLayerValue =
|
|
2564
|
+
var GradientLayerValue = z58.object({
|
|
2520
2565
|
from: Point2D,
|
|
2521
2566
|
to: Point2D,
|
|
2522
2567
|
type: GradientType,
|
|
2523
|
-
aspectRatio: nullishToOptional(
|
|
2568
|
+
aspectRatio: nullishToOptional(z58.number()),
|
|
2524
2569
|
// z.number(),
|
|
2525
|
-
stops:
|
|
2570
|
+
stops: z58.array(GradientStop).min(2)
|
|
2526
2571
|
});
|
|
2527
2572
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
2528
|
-
var GradientTokenValue =
|
|
2573
|
+
var GradientTokenValue = z58.array(GradientLayerData);
|
|
2529
2574
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
2530
2575
|
|
|
2531
2576
|
// src/dsm/elements/data/group.ts
|
|
2532
|
-
import { z as
|
|
2533
|
-
var DocumentationGroupBehavior =
|
|
2534
|
-
var ElementGroupDataV1 =
|
|
2577
|
+
import { z as z59 } from "zod";
|
|
2578
|
+
var DocumentationGroupBehavior = z59.enum(["Group", "Tabs"]);
|
|
2579
|
+
var ElementGroupDataV1 = z59.object({
|
|
2535
2580
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
2536
2581
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
2537
2582
|
});
|
|
2538
|
-
var ElementGroupDataV2 =
|
|
2583
|
+
var ElementGroupDataV2 = z59.object({
|
|
2539
2584
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
2540
2585
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
2541
2586
|
});
|
|
2542
2587
|
|
|
2543
2588
|
// src/dsm/elements/data/letter-spacing.ts
|
|
2544
|
-
import { z as
|
|
2545
|
-
var LetterSpacingUnit =
|
|
2546
|
-
var LetterSpacingValue =
|
|
2589
|
+
import { z as z60 } from "zod";
|
|
2590
|
+
var LetterSpacingUnit = z60.enum(["Pixels", "Rem", "Percent"]);
|
|
2591
|
+
var LetterSpacingValue = z60.object({
|
|
2547
2592
|
unit: LetterSpacingUnit,
|
|
2548
|
-
measure:
|
|
2593
|
+
measure: z60.number()
|
|
2549
2594
|
});
|
|
2550
2595
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
2551
2596
|
|
|
2552
2597
|
// src/dsm/elements/data/line-height.ts
|
|
2553
|
-
import { z as
|
|
2554
|
-
var LineHeightUnit =
|
|
2555
|
-
var LineHeightValue =
|
|
2598
|
+
import { z as z61 } from "zod";
|
|
2599
|
+
var LineHeightUnit = z61.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
2600
|
+
var LineHeightValue = z61.object({
|
|
2556
2601
|
unit: LineHeightUnit,
|
|
2557
|
-
measure:
|
|
2602
|
+
measure: z61.number()
|
|
2558
2603
|
});
|
|
2559
2604
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
2560
2605
|
|
|
2561
2606
|
// src/dsm/elements/data/paragraph-indent.ts
|
|
2562
|
-
import { z as
|
|
2563
|
-
var ParagraphIndentUnit =
|
|
2564
|
-
var ParagraphIndentValue =
|
|
2607
|
+
import { z as z62 } from "zod";
|
|
2608
|
+
var ParagraphIndentUnit = z62.enum(["Pixels", "Rem", "Percent"]);
|
|
2609
|
+
var ParagraphIndentValue = z62.object({
|
|
2565
2610
|
unit: ParagraphIndentUnit,
|
|
2566
|
-
measure:
|
|
2611
|
+
measure: z62.number()
|
|
2567
2612
|
});
|
|
2568
2613
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
2569
2614
|
|
|
2570
2615
|
// src/dsm/elements/data/paragraph-spacing.ts
|
|
2571
|
-
import { z as
|
|
2572
|
-
var ParagraphSpacingUnit =
|
|
2573
|
-
var ParagraphSpacingValue =
|
|
2616
|
+
import { z as z63 } from "zod";
|
|
2617
|
+
var ParagraphSpacingUnit = z63.enum(["Pixels", "Rem", "Percent"]);
|
|
2618
|
+
var ParagraphSpacingValue = z63.object({
|
|
2574
2619
|
unit: ParagraphSpacingUnit,
|
|
2575
|
-
measure:
|
|
2620
|
+
measure: z63.number()
|
|
2576
2621
|
});
|
|
2577
2622
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
2578
2623
|
|
|
2579
2624
|
// src/dsm/elements/data/product-copy.ts
|
|
2580
|
-
import { z as
|
|
2581
|
-
var ProductCopyValue =
|
|
2625
|
+
import { z as z64 } from "zod";
|
|
2626
|
+
var ProductCopyValue = z64.string();
|
|
2582
2627
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
2583
2628
|
|
|
2584
2629
|
// src/dsm/elements/data/safe-id.ts
|
|
2585
|
-
import { z as
|
|
2630
|
+
import { z as z65 } from "zod";
|
|
2586
2631
|
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
2587
|
-
var SafeIdSchema =
|
|
2632
|
+
var SafeIdSchema = z65.string().refine(
|
|
2588
2633
|
(value) => {
|
|
2589
2634
|
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
2590
2635
|
},
|
|
@@ -2594,58 +2639,58 @@ var SafeIdSchema = z64.string().refine(
|
|
|
2594
2639
|
);
|
|
2595
2640
|
|
|
2596
2641
|
// src/dsm/elements/data/shadow.ts
|
|
2597
|
-
import { z as
|
|
2598
|
-
var ShadowType =
|
|
2599
|
-
var ShadowLayerValue =
|
|
2642
|
+
import { z as z66 } from "zod";
|
|
2643
|
+
var ShadowType = z66.enum(["Drop", "Inner"]);
|
|
2644
|
+
var ShadowLayerValue = z66.object({
|
|
2600
2645
|
color: ColorTokenData,
|
|
2601
|
-
x:
|
|
2602
|
-
y:
|
|
2603
|
-
radius:
|
|
2604
|
-
spread:
|
|
2646
|
+
x: z66.number(),
|
|
2647
|
+
y: z66.number(),
|
|
2648
|
+
radius: z66.number(),
|
|
2649
|
+
spread: z66.number(),
|
|
2605
2650
|
opacity: OpacityTokenData.optional(),
|
|
2606
2651
|
type: ShadowType
|
|
2607
2652
|
});
|
|
2608
2653
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
2609
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
2654
|
+
var ShadowTokenData = tokenAliasOrValue(z66.array(ShadowTokenDataBase));
|
|
2610
2655
|
|
|
2611
2656
|
// src/dsm/elements/data/size.ts
|
|
2612
|
-
import { z as
|
|
2613
|
-
var SizeUnit =
|
|
2614
|
-
var SizeValue =
|
|
2657
|
+
import { z as z67 } from "zod";
|
|
2658
|
+
var SizeUnit = z67.enum(["Pixels", "Rem", "Percent"]);
|
|
2659
|
+
var SizeValue = z67.object({
|
|
2615
2660
|
unit: SizeUnit,
|
|
2616
|
-
measure:
|
|
2661
|
+
measure: z67.number()
|
|
2617
2662
|
});
|
|
2618
2663
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
2619
2664
|
|
|
2620
2665
|
// src/dsm/elements/data/space.ts
|
|
2621
|
-
import { z as
|
|
2622
|
-
var SpaceUnit =
|
|
2623
|
-
var SpaceValue =
|
|
2666
|
+
import { z as z68 } from "zod";
|
|
2667
|
+
var SpaceUnit = z68.enum(["Pixels", "Rem", "Percent"]);
|
|
2668
|
+
var SpaceValue = z68.object({
|
|
2624
2669
|
unit: SpaceUnit,
|
|
2625
|
-
measure:
|
|
2670
|
+
measure: z68.number()
|
|
2626
2671
|
});
|
|
2627
2672
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
2628
2673
|
|
|
2629
2674
|
// src/dsm/elements/data/string.ts
|
|
2630
|
-
import { z as
|
|
2631
|
-
var StringValue =
|
|
2675
|
+
import { z as z69 } from "zod";
|
|
2676
|
+
var StringValue = z69.string();
|
|
2632
2677
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
2633
2678
|
|
|
2634
2679
|
// src/dsm/elements/data/text-case.ts
|
|
2635
|
-
import { z as
|
|
2636
|
-
var TextCase =
|
|
2680
|
+
import { z as z70 } from "zod";
|
|
2681
|
+
var TextCase = z70.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
2637
2682
|
var TextCaseValue = TextCase;
|
|
2638
2683
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
2639
2684
|
|
|
2640
2685
|
// src/dsm/elements/data/text-decoration.ts
|
|
2641
|
-
import { z as
|
|
2642
|
-
var TextDecoration =
|
|
2686
|
+
import { z as z71 } from "zod";
|
|
2687
|
+
var TextDecoration = z71.enum(["None", "Underline", "Strikethrough"]);
|
|
2643
2688
|
var TextDecorationValue = TextDecoration;
|
|
2644
2689
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
2645
2690
|
|
|
2646
2691
|
// src/dsm/elements/data/typography.ts
|
|
2647
|
-
import { z as
|
|
2648
|
-
var TypographyValue =
|
|
2692
|
+
import { z as z72 } from "zod";
|
|
2693
|
+
var TypographyValue = z72.object({
|
|
2649
2694
|
fontSize: FontSizeTokenData,
|
|
2650
2695
|
fontFamily: FontFamilyTokenData,
|
|
2651
2696
|
fontWeight: FontWeightTokenData,
|
|
@@ -2659,98 +2704,27 @@ var TypographyValue = z71.object({
|
|
|
2659
2704
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
2660
2705
|
|
|
2661
2706
|
// src/dsm/elements/data/visibility.ts
|
|
2662
|
-
import { z as
|
|
2663
|
-
var Visibility =
|
|
2707
|
+
import { z as z73 } from "zod";
|
|
2708
|
+
var Visibility = z73.enum(["Hidden", "Visible"]);
|
|
2664
2709
|
var VisibilityValue = Visibility;
|
|
2665
2710
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
2666
2711
|
|
|
2667
2712
|
// src/dsm/elements/data/z-index.ts
|
|
2668
|
-
import { z as
|
|
2669
|
-
var ZIndexUnit =
|
|
2670
|
-
var ZIndexValue =
|
|
2713
|
+
import { z as z74 } from "zod";
|
|
2714
|
+
var ZIndexUnit = z74.enum(["Raw"]);
|
|
2715
|
+
var ZIndexValue = z74.object({
|
|
2671
2716
|
unit: ZIndexUnit,
|
|
2672
|
-
measure:
|
|
2717
|
+
measure: z74.number()
|
|
2673
2718
|
});
|
|
2674
2719
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
2675
2720
|
|
|
2676
|
-
// src/dsm/elements/component-properties.ts
|
|
2677
|
-
import { z as z74 } from "zod";
|
|
2678
|
-
var FigmaComponentPropertyType = z74.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
|
|
2679
|
-
var FigmaComponentBooleanProperty = z74.object({
|
|
2680
|
-
type: z74.literal(FigmaComponentPropertyType.enum.Boolean),
|
|
2681
|
-
value: z74.boolean(),
|
|
2682
|
-
defaultValue: z74.boolean()
|
|
2683
|
-
});
|
|
2684
|
-
var FigmaComponentInstanceSwapProperty = z74.object({
|
|
2685
|
-
type: z74.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
2686
|
-
value: z74.string()
|
|
2687
|
-
// Persistent ID of a Component to swap??
|
|
2688
|
-
});
|
|
2689
|
-
var FigmaComponentVariantProperty = z74.object({
|
|
2690
|
-
type: z74.literal(FigmaComponentPropertyType.enum.Variant),
|
|
2691
|
-
value: z74.string(),
|
|
2692
|
-
options: z74.array(z74.string())
|
|
2693
|
-
});
|
|
2694
|
-
var FigmaComponentTextProperty = z74.object({
|
|
2695
|
-
type: z74.literal(FigmaComponentPropertyType.enum.Text),
|
|
2696
|
-
value: z74.string()
|
|
2697
|
-
});
|
|
2698
|
-
var FigmaComponentProperties = z74.record(
|
|
2699
|
-
z74.string(),
|
|
2700
|
-
z74.discriminatedUnion("type", [
|
|
2701
|
-
FigmaComponentBooleanProperty,
|
|
2702
|
-
FigmaComponentInstanceSwapProperty,
|
|
2703
|
-
FigmaComponentTextProperty
|
|
2704
|
-
])
|
|
2705
|
-
);
|
|
2706
|
-
var FigmaComponentSetProperties = z74.record(
|
|
2707
|
-
z74.string(),
|
|
2708
|
-
z74.discriminatedUnion("type", [
|
|
2709
|
-
FigmaComponentBooleanProperty,
|
|
2710
|
-
FigmaComponentInstanceSwapProperty,
|
|
2711
|
-
FigmaComponentTextProperty,
|
|
2712
|
-
FigmaComponentVariantProperty
|
|
2713
|
-
])
|
|
2714
|
-
);
|
|
2715
|
-
|
|
2716
|
-
// src/dsm/elements/component.ts
|
|
2717
|
-
import { z as z75 } from "zod";
|
|
2718
|
-
var ComponentOriginPart = z75.object({
|
|
2719
|
-
nodeId: z75.string().optional(),
|
|
2720
|
-
width: z75.number().optional(),
|
|
2721
|
-
height: z75.number().optional()
|
|
2722
|
-
});
|
|
2723
|
-
var ComponentAsset = z75.object({
|
|
2724
|
-
assetId: z75.string(),
|
|
2725
|
-
assetPath: z75.string()
|
|
2726
|
-
});
|
|
2727
|
-
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
2728
|
-
var BaseComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
2729
|
-
origin: ComponentOrigin.optional(),
|
|
2730
|
-
thumbnail: ComponentAsset
|
|
2731
|
-
});
|
|
2732
|
-
var Component = BaseComponent.extend({
|
|
2733
|
-
svg: ComponentAsset.optional(),
|
|
2734
|
-
isAsset: z75.boolean(),
|
|
2735
|
-
componentSetId: z75.string().optional(),
|
|
2736
|
-
properties: FigmaComponentProperties.optional()
|
|
2737
|
-
});
|
|
2738
|
-
function isImportedComponent(component) {
|
|
2739
|
-
return !!component.origin;
|
|
2740
|
-
}
|
|
2741
|
-
|
|
2742
|
-
// src/dsm/elements/component-set.ts
|
|
2743
|
-
var ComponentSet = BaseComponent.extend({
|
|
2744
|
-
properties: FigmaComponentSetProperties
|
|
2745
|
-
});
|
|
2746
|
-
|
|
2747
2721
|
// src/dsm/elements/documentation-page-v1.ts
|
|
2748
|
-
import { z as
|
|
2722
|
+
import { z as z76 } from "zod";
|
|
2749
2723
|
|
|
2750
2724
|
// src/dsm/elements/group.ts
|
|
2751
|
-
import { z as
|
|
2725
|
+
import { z as z75 } from "zod";
|
|
2752
2726
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
2753
|
-
shortPersistentId:
|
|
2727
|
+
shortPersistentId: z75.string().optional(),
|
|
2754
2728
|
childType: DesignElementType,
|
|
2755
2729
|
data: ElementGroupDataV2.optional()
|
|
2756
2730
|
});
|
|
@@ -2758,7 +2732,7 @@ var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
|
2758
2732
|
|
|
2759
2733
|
// src/dsm/elements/documentation-page-v1.ts
|
|
2760
2734
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
2761
|
-
shortPersistentId:
|
|
2735
|
+
shortPersistentId: z76.string(),
|
|
2762
2736
|
data: DocumentationPageDataV1
|
|
2763
2737
|
});
|
|
2764
2738
|
var DocumentationGroupV1 = ElementGroup.omit({
|
|
@@ -2768,14 +2742,38 @@ var DocumentationGroupV1 = ElementGroup.omit({
|
|
|
2768
2742
|
});
|
|
2769
2743
|
|
|
2770
2744
|
// src/dsm/elements/documentation-page-v2.ts
|
|
2771
|
-
import { z as
|
|
2745
|
+
import { z as z77 } from "zod";
|
|
2772
2746
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
2773
|
-
shortPersistentId:
|
|
2747
|
+
shortPersistentId: z77.string(),
|
|
2774
2748
|
data: DocumentationPageDataV2.extend({
|
|
2775
|
-
oldBlocks:
|
|
2749
|
+
oldBlocks: z77.array(PageBlockV1).optional()
|
|
2776
2750
|
})
|
|
2777
2751
|
});
|
|
2778
2752
|
|
|
2753
|
+
// src/dsm/elements/figma-component.ts
|
|
2754
|
+
import { z as z78 } from "zod";
|
|
2755
|
+
var FigmaComponentOriginPart = z78.object({
|
|
2756
|
+
nodeId: z78.string().optional(),
|
|
2757
|
+
width: z78.number().optional(),
|
|
2758
|
+
height: z78.number().optional()
|
|
2759
|
+
});
|
|
2760
|
+
var FigmaComponentAsset = z78.object({
|
|
2761
|
+
assetId: z78.string(),
|
|
2762
|
+
assetPath: z78.string()
|
|
2763
|
+
});
|
|
2764
|
+
var FigmaComponentOrigin = DesignElementOrigin.extend(FigmaComponentOriginPart.shape);
|
|
2765
|
+
var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
2766
|
+
origin: FigmaComponentOrigin.optional(),
|
|
2767
|
+
thumbnail: FigmaComponentAsset,
|
|
2768
|
+
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
2769
|
+
svg: FigmaComponentAsset.optional(),
|
|
2770
|
+
isAsset: z78.boolean(),
|
|
2771
|
+
parentComponentPersistentId: nullishToOptional(z78.string())
|
|
2772
|
+
});
|
|
2773
|
+
function isImportedFigmaComponent(component) {
|
|
2774
|
+
return !!component.origin;
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2779
2777
|
// src/dsm/elements/figma-file-structures.ts
|
|
2780
2778
|
import { z as z79 } from "zod";
|
|
2781
2779
|
var FigmaFileStructureOrigin = z79.object({
|
|
@@ -3288,38 +3286,59 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
3288
3286
|
// src/dsm/import/support/import-model-collections.ts
|
|
3289
3287
|
import { z as z94 } from "zod";
|
|
3290
3288
|
|
|
3291
|
-
// src/dsm/import/
|
|
3289
|
+
// src/dsm/import/component.ts
|
|
3290
|
+
import { z as z89 } from "zod";
|
|
3291
|
+
|
|
3292
|
+
// src/dsm/import/base.ts
|
|
3292
3293
|
import { z as z87 } from "zod";
|
|
3293
|
-
var
|
|
3294
|
-
|
|
3294
|
+
var ImportModelBase = z87.object({
|
|
3295
|
+
id: z87.string(),
|
|
3296
|
+
meta: ObjectMeta,
|
|
3297
|
+
origin: DesignElementOrigin,
|
|
3298
|
+
brandPersistentId: z87.string(),
|
|
3299
|
+
sortOrder: z87.number()
|
|
3300
|
+
});
|
|
3301
|
+
var ImportModelInputBase = ImportModelBase.omit({
|
|
3302
|
+
brandPersistentId: true,
|
|
3303
|
+
origin: true,
|
|
3304
|
+
sortOrder: true
|
|
3305
|
+
}).extend({
|
|
3306
|
+
originId: z87.string(),
|
|
3307
|
+
originMetadata: z87.record(z87.any())
|
|
3308
|
+
});
|
|
3309
|
+
|
|
3310
|
+
// src/dsm/import/image.ts
|
|
3311
|
+
import { z as z88 } from "zod";
|
|
3312
|
+
var ImageImportModelType = z88.enum(["Url", "FigmaRender"]);
|
|
3313
|
+
var ImageImportModelBase = z88.object({
|
|
3295
3314
|
scope: AssetScope
|
|
3296
3315
|
});
|
|
3297
3316
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
3298
|
-
type:
|
|
3299
|
-
url:
|
|
3300
|
-
originKey:
|
|
3301
|
-
extension:
|
|
3317
|
+
type: z88.literal(ImageImportModelType.enum.Url),
|
|
3318
|
+
url: z88.string(),
|
|
3319
|
+
originKey: z88.string(),
|
|
3320
|
+
extension: z88.string()
|
|
3302
3321
|
});
|
|
3303
|
-
var FigmaRenderFormat =
|
|
3322
|
+
var FigmaRenderFormat = z88.enum(["Svg", "Png", "Pdf"]);
|
|
3304
3323
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
3305
|
-
type:
|
|
3306
|
-
fileId:
|
|
3307
|
-
fileVersionId:
|
|
3308
|
-
nodeId:
|
|
3309
|
-
originKey:
|
|
3324
|
+
type: z88.literal(ImageImportModelType.enum.FigmaRender),
|
|
3325
|
+
fileId: z88.string(),
|
|
3326
|
+
fileVersionId: z88.string().optional(),
|
|
3327
|
+
nodeId: z88.string(),
|
|
3328
|
+
originKey: z88.string()
|
|
3310
3329
|
});
|
|
3311
3330
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
3312
|
-
format:
|
|
3313
|
-
scale:
|
|
3331
|
+
format: z88.literal(FigmaRenderFormat.enum.Png),
|
|
3332
|
+
scale: z88.number()
|
|
3314
3333
|
});
|
|
3315
3334
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
3316
|
-
format:
|
|
3335
|
+
format: z88.literal(FigmaRenderFormat.enum.Svg)
|
|
3317
3336
|
});
|
|
3318
|
-
var FigmaRenderImportModel =
|
|
3337
|
+
var FigmaRenderImportModel = z88.discriminatedUnion("format", [
|
|
3319
3338
|
FigmaPngRenderImportModel,
|
|
3320
3339
|
FigmaSvgRenderImportModel
|
|
3321
3340
|
]);
|
|
3322
|
-
var ImageImportModel =
|
|
3341
|
+
var ImageImportModel = z88.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
3323
3342
|
function getFigmaRenderFormatFileExtension(format) {
|
|
3324
3343
|
switch (format) {
|
|
3325
3344
|
case "Pdf":
|
|
@@ -3332,88 +3351,111 @@ function getFigmaRenderFormatFileExtension(format) {
|
|
|
3332
3351
|
}
|
|
3333
3352
|
|
|
3334
3353
|
// src/dsm/import/component.ts
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
var ImportModelBase = z88.object({
|
|
3340
|
-
id: z88.string(),
|
|
3341
|
-
meta: ObjectMeta,
|
|
3342
|
-
origin: DesignElementOrigin,
|
|
3343
|
-
brandPersistentId: z88.string(),
|
|
3344
|
-
sortOrder: z88.number()
|
|
3345
|
-
});
|
|
3346
|
-
var ImportModelInputBase = ImportModelBase.omit({
|
|
3347
|
-
brandPersistentId: true,
|
|
3348
|
-
origin: true,
|
|
3349
|
-
sortOrder: true
|
|
3350
|
-
}).extend({
|
|
3351
|
-
originId: z88.string(),
|
|
3352
|
-
originMetadata: z88.record(z88.any())
|
|
3354
|
+
var FigmaComponentImportModelPart = z89.object({
|
|
3355
|
+
thumbnail: ImageImportModel,
|
|
3356
|
+
parentComponentId: z89.string().optional(),
|
|
3357
|
+
componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
|
|
3353
3358
|
});
|
|
3354
|
-
|
|
3355
|
-
// src/dsm/import/component.ts
|
|
3356
|
-
var ComponentImportModelPart = z89.object({
|
|
3357
|
-
thumbnail: ImageImportModel
|
|
3358
|
-
});
|
|
3359
|
-
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
3359
|
+
var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3360
3360
|
isAsset: z89.boolean(),
|
|
3361
3361
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
3362
|
-
origin:
|
|
3362
|
+
origin: FigmaComponentOrigin
|
|
3363
3363
|
});
|
|
3364
|
-
var
|
|
3365
|
-
originMetadata:
|
|
3364
|
+
var FigmaComponentImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3365
|
+
originMetadata: FigmaComponentOriginPart
|
|
3366
3366
|
});
|
|
3367
|
-
var AssetImportModelInput = ImportModelInputBase.extend(
|
|
3367
|
+
var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3368
3368
|
svg: FigmaSvgRenderImportModel,
|
|
3369
|
-
originMetadata:
|
|
3369
|
+
originMetadata: FigmaComponentOriginPart
|
|
3370
3370
|
});
|
|
3371
3371
|
|
|
3372
|
-
// src/dsm/import/
|
|
3372
|
+
// src/dsm/import/data-source.ts
|
|
3373
3373
|
import { z as z90 } from "zod";
|
|
3374
|
+
var DataSourceImportModel = z90.object({
|
|
3375
|
+
id: z90.string(),
|
|
3376
|
+
fileName: z90.string().optional(),
|
|
3377
|
+
thumbnailUrl: z90.string().optional()
|
|
3378
|
+
});
|
|
3379
|
+
|
|
3380
|
+
// src/dsm/import/figma-frames.ts
|
|
3381
|
+
import { z as z91 } from "zod";
|
|
3382
|
+
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
3383
|
+
png: FigmaPngRenderImportModel,
|
|
3384
|
+
svg: FigmaSvgRenderImportModel
|
|
3385
|
+
});
|
|
3386
|
+
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
3387
|
+
children: z91.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3388
|
+
});
|
|
3389
|
+
var FigmaFileStructureImportModelPart = z91.object({
|
|
3390
|
+
data: z91.object({
|
|
3391
|
+
rootNode: FigmaFileStructureNodeImportModel,
|
|
3392
|
+
assetsInFile: FigmaFileStructureStatistics
|
|
3393
|
+
})
|
|
3394
|
+
});
|
|
3395
|
+
var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
|
|
3396
|
+
origin: FigmaFileStructureOrigin
|
|
3397
|
+
});
|
|
3398
|
+
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
3399
|
+
FigmaFileStructureImportModelPart.shape
|
|
3400
|
+
).extend({
|
|
3401
|
+
fileVersionId: z91.string()
|
|
3402
|
+
});
|
|
3403
|
+
function figmaFileStructureImportModelToMap(root) {
|
|
3404
|
+
const map = /* @__PURE__ */ new Map();
|
|
3405
|
+
recursiveFigmaFileStructureToMap2(root, map);
|
|
3406
|
+
return map;
|
|
3407
|
+
}
|
|
3408
|
+
function recursiveFigmaFileStructureToMap2(node, map) {
|
|
3409
|
+
map.set(node.id, node);
|
|
3410
|
+
for (const child of node.children)
|
|
3411
|
+
recursiveFigmaFileStructureToMap2(child, map);
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
// src/dsm/import/theme.ts
|
|
3415
|
+
import { z as z92 } from "zod";
|
|
3374
3416
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
3375
|
-
|
|
3376
|
-
id:
|
|
3417
|
+
z92.object({
|
|
3418
|
+
id: z92.string(),
|
|
3377
3419
|
meta: ObjectMeta
|
|
3378
3420
|
})
|
|
3379
3421
|
);
|
|
3380
3422
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
3381
|
-
|
|
3423
|
+
z92.object({
|
|
3382
3424
|
origin: ThemeOverrideOrigin
|
|
3383
3425
|
})
|
|
3384
3426
|
);
|
|
3385
3427
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
3386
|
-
|
|
3387
|
-
originId:
|
|
3428
|
+
z92.object({
|
|
3429
|
+
originId: z92.string(),
|
|
3388
3430
|
originMetadata: ThemeOverrideOriginPart
|
|
3389
3431
|
})
|
|
3390
3432
|
);
|
|
3391
|
-
var ThemeImportModel =
|
|
3433
|
+
var ThemeImportModel = z92.object({
|
|
3392
3434
|
meta: ObjectMeta,
|
|
3393
|
-
brandPersistentId:
|
|
3435
|
+
brandPersistentId: z92.string(),
|
|
3394
3436
|
originSource: ThemeOriginSource,
|
|
3395
|
-
overrides:
|
|
3396
|
-
sortOrder:
|
|
3437
|
+
overrides: z92.array(ThemeOverrideImportModel),
|
|
3438
|
+
sortOrder: z92.number()
|
|
3397
3439
|
});
|
|
3398
|
-
var ThemeImportModelInput =
|
|
3440
|
+
var ThemeImportModelInput = z92.object({
|
|
3399
3441
|
meta: ObjectMeta,
|
|
3400
|
-
originObjects:
|
|
3401
|
-
overrides:
|
|
3442
|
+
originObjects: z92.array(ThemeOriginObject),
|
|
3443
|
+
overrides: z92.array(ThemeOverrideImportModelInput)
|
|
3402
3444
|
});
|
|
3403
|
-
var ThemeUpdateImportModel =
|
|
3404
|
-
themePersistentId:
|
|
3405
|
-
overrides:
|
|
3445
|
+
var ThemeUpdateImportModel = z92.object({
|
|
3446
|
+
themePersistentId: z92.string(),
|
|
3447
|
+
overrides: z92.array(ThemeOverrideImportModel)
|
|
3406
3448
|
});
|
|
3407
|
-
var ThemeUpdateImportModelInput =
|
|
3408
|
-
themePersistentId:
|
|
3409
|
-
overrides:
|
|
3449
|
+
var ThemeUpdateImportModelInput = z92.object({
|
|
3450
|
+
themePersistentId: z92.string(),
|
|
3451
|
+
overrides: z92.array(ThemeOverrideImportModelInput)
|
|
3410
3452
|
});
|
|
3411
3453
|
|
|
3412
3454
|
// src/dsm/import/tokens.ts
|
|
3413
|
-
import { z as
|
|
3414
|
-
var DesignTokenImportModelPart =
|
|
3415
|
-
collection:
|
|
3416
|
-
codeSyntax:
|
|
3455
|
+
import { z as z93 } from "zod";
|
|
3456
|
+
var DesignTokenImportModelPart = z93.object({
|
|
3457
|
+
collection: z93.string().optional(),
|
|
3458
|
+
codeSyntax: z93.record(z93.coerce.string()).optional()
|
|
3417
3459
|
});
|
|
3418
3460
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
3419
3461
|
origin: DesignTokenOrigin
|
|
@@ -3430,53 +3472,11 @@ function designTokenImportModelTypeFilter(type) {
|
|
|
3430
3472
|
return (designToken) => isDesignTokenImportModelOfType(designToken, type);
|
|
3431
3473
|
}
|
|
3432
3474
|
|
|
3433
|
-
// src/dsm/import/figma-frames.ts
|
|
3434
|
-
import { z as z92 } from "zod";
|
|
3435
|
-
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
3436
|
-
png: FigmaPngRenderImportModel,
|
|
3437
|
-
svg: FigmaSvgRenderImportModel
|
|
3438
|
-
});
|
|
3439
|
-
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
3440
|
-
children: z92.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3441
|
-
});
|
|
3442
|
-
var FigmaFileStructureImportModelPart = z92.object({
|
|
3443
|
-
data: z92.object({
|
|
3444
|
-
rootNode: FigmaFileStructureNodeImportModel,
|
|
3445
|
-
assetsInFile: FigmaFileStructureStatistics
|
|
3446
|
-
})
|
|
3447
|
-
});
|
|
3448
|
-
var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
|
|
3449
|
-
origin: FigmaFileStructureOrigin
|
|
3450
|
-
});
|
|
3451
|
-
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
3452
|
-
FigmaFileStructureImportModelPart.shape
|
|
3453
|
-
).extend({
|
|
3454
|
-
fileVersionId: z92.string()
|
|
3455
|
-
});
|
|
3456
|
-
function figmaFileStructureImportModelToMap(root) {
|
|
3457
|
-
const map = /* @__PURE__ */ new Map();
|
|
3458
|
-
recursiveFigmaFileStructureToMap2(root, map);
|
|
3459
|
-
return map;
|
|
3460
|
-
}
|
|
3461
|
-
function recursiveFigmaFileStructureToMap2(node, map) {
|
|
3462
|
-
map.set(node.id, node);
|
|
3463
|
-
for (const child of node.children)
|
|
3464
|
-
recursiveFigmaFileStructureToMap2(child, map);
|
|
3465
|
-
}
|
|
3466
|
-
|
|
3467
|
-
// src/dsm/import/data-source.ts
|
|
3468
|
-
import { z as z93 } from "zod";
|
|
3469
|
-
var DataSourceImportModel = z93.object({
|
|
3470
|
-
id: z93.string(),
|
|
3471
|
-
fileName: z93.string().optional(),
|
|
3472
|
-
thumbnailUrl: z93.string().optional()
|
|
3473
|
-
});
|
|
3474
|
-
|
|
3475
3475
|
// src/dsm/import/support/import-model-collections.ts
|
|
3476
3476
|
var ImportModelInputCollection = z94.object({
|
|
3477
3477
|
source: DataSourceImportModel,
|
|
3478
3478
|
tokens: z94.array(DesignTokenImportModelInput).default([]),
|
|
3479
|
-
components: z94.array(
|
|
3479
|
+
components: z94.array(FigmaComponentImportModelInput).default([]),
|
|
3480
3480
|
assets: z94.array(AssetImportModelInput).default([]),
|
|
3481
3481
|
themeUpdates: z94.array(ThemeUpdateImportModelInput).default([]),
|
|
3482
3482
|
themes: z94.array(ThemeImportModelInput).default([]),
|
|
@@ -3485,7 +3485,7 @@ var ImportModelInputCollection = z94.object({
|
|
|
3485
3485
|
var ImportModelCollection = z94.object({
|
|
3486
3486
|
sources: z94.array(DataSourceImportModel),
|
|
3487
3487
|
tokens: z94.array(DesignTokenImportModel).default([]),
|
|
3488
|
-
components: z94.array(
|
|
3488
|
+
components: z94.array(FigmaComponentImportModel).default([]),
|
|
3489
3489
|
themeUpdates: z94.array(ThemeUpdateImportModel).default([]),
|
|
3490
3490
|
themes: z94.array(ThemeImportModel).default([]),
|
|
3491
3491
|
figmaFileStructures: z94.array(FigmaFileStructureImportModel)
|
|
@@ -3617,7 +3617,15 @@ var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
|
|
|
3617
3617
|
"Default"
|
|
3618
3618
|
]);
|
|
3619
3619
|
var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
|
|
3620
|
-
var PageBlockDefinitionRichTextEditorPropertyStyle = z100.enum([
|
|
3620
|
+
var PageBlockDefinitionRichTextEditorPropertyStyle = z100.enum([
|
|
3621
|
+
"OL",
|
|
3622
|
+
"UL",
|
|
3623
|
+
"Bold",
|
|
3624
|
+
"Italic",
|
|
3625
|
+
"Link",
|
|
3626
|
+
"Strikethrough",
|
|
3627
|
+
"InlineCode"
|
|
3628
|
+
]);
|
|
3621
3629
|
var PageBlockDefinitionTextPropertyStyle = z100.enum([
|
|
3622
3630
|
"Title1",
|
|
3623
3631
|
"Title2",
|
|
@@ -3655,11 +3663,7 @@ var PageBlockDefinitionSingleSelectPropertyColor = z100.enum([
|
|
|
3655
3663
|
"Cyan",
|
|
3656
3664
|
"Fuchsia"
|
|
3657
3665
|
]);
|
|
3658
|
-
var IconSet = z100.enum([
|
|
3659
|
-
"CheckCircle",
|
|
3660
|
-
"CrossCircle",
|
|
3661
|
-
"Alert"
|
|
3662
|
-
]);
|
|
3666
|
+
var IconSet = z100.enum(["CheckCircle", "CrossCircle", "Alert"]);
|
|
3663
3667
|
var PageBlockDefinitionMultiSelectPropertyStyle = z100.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
3664
3668
|
var PageBlockDefinitionImageAspectRatio = z100.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
3665
3669
|
var PageBlockDefinitionImageWidth = z100.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
@@ -4237,7 +4241,7 @@ import { z as z124 } from "zod";
|
|
|
4237
4241
|
var DesignSystemVersion = z124.object({
|
|
4238
4242
|
id: z124.string(),
|
|
4239
4243
|
version: z124.string(),
|
|
4240
|
-
createdAt: z124.date(),
|
|
4244
|
+
createdAt: z124.coerce.date(),
|
|
4241
4245
|
designSystemId: z124.string(),
|
|
4242
4246
|
name: z124.string(),
|
|
4243
4247
|
comment: z124.string(),
|
|
@@ -5177,7 +5181,6 @@ export {
|
|
|
5177
5181
|
AssetType,
|
|
5178
5182
|
AssetValue,
|
|
5179
5183
|
AuthTokens,
|
|
5180
|
-
BaseComponent,
|
|
5181
5184
|
BillingDetails,
|
|
5182
5185
|
BillingIntervalSchema,
|
|
5183
5186
|
BillingType,
|
|
@@ -5203,13 +5206,7 @@ export {
|
|
|
5203
5206
|
ColorTokenData,
|
|
5204
5207
|
ColorTokenInlineData,
|
|
5205
5208
|
ColorValue,
|
|
5206
|
-
Component,
|
|
5207
5209
|
ComponentElementData,
|
|
5208
|
-
ComponentImportModel,
|
|
5209
|
-
ComponentImportModelInput,
|
|
5210
|
-
ComponentOrigin,
|
|
5211
|
-
ComponentOriginPart,
|
|
5212
|
-
ComponentSet,
|
|
5213
5210
|
ContentLoadInstruction,
|
|
5214
5211
|
ContentLoaderPayload,
|
|
5215
5212
|
CreateDesignToken,
|
|
@@ -5372,9 +5369,15 @@ export {
|
|
|
5372
5369
|
FeatureFlag,
|
|
5373
5370
|
FeatureFlagMap,
|
|
5374
5371
|
FeaturesSummary,
|
|
5372
|
+
FigmaComponent,
|
|
5375
5373
|
FigmaComponentBooleanProperty,
|
|
5374
|
+
FigmaComponentImportModel,
|
|
5375
|
+
FigmaComponentImportModelInput,
|
|
5376
5376
|
FigmaComponentInstanceSwapProperty,
|
|
5377
|
-
|
|
5377
|
+
FigmaComponentOrigin,
|
|
5378
|
+
FigmaComponentOriginPart,
|
|
5379
|
+
FigmaComponentProperty,
|
|
5380
|
+
FigmaComponentPropertyMap,
|
|
5378
5381
|
FigmaComponentPropertyType,
|
|
5379
5382
|
FigmaComponentSetProperties,
|
|
5380
5383
|
FigmaComponentTextProperty,
|
|
@@ -5773,8 +5776,8 @@ export {
|
|
|
5773
5776
|
isDesignTokenImportModelOfType,
|
|
5774
5777
|
isDesignTokenOfType,
|
|
5775
5778
|
isImportedAsset,
|
|
5776
|
-
isImportedComponent,
|
|
5777
5779
|
isImportedDesignToken,
|
|
5780
|
+
isImportedFigmaComponent,
|
|
5778
5781
|
isSlugReserved,
|
|
5779
5782
|
isTokenType,
|
|
5780
5783
|
joinRepeatingSpans,
|