@supernova-studio/client 0.52.17 → 0.52.19
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 +165 -267
- package/dist/index.d.ts +165 -267
- package/dist/index.js +489 -255
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1039 -805
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/components/figma-component.ts +1 -0
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +59 -2
- package/src/yjs/docs-editor/prosemirror/index.ts +2 -1
- package/src/yjs/docs-editor/prosemirror/inner-editor-schema.ts +145 -0
- package/src/yjs/docs-editor/prosemirror/{schema.ts → main-editor-schema.ts} +2 -2
- package/src/yjs/docs-editor/prosemirror/types.ts +1 -1
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +53 -0
package/dist/index.mjs
CHANGED
|
@@ -30,12 +30,12 @@ import { z as z18 } from "zod";
|
|
|
30
30
|
import { z as z19 } from "zod";
|
|
31
31
|
import { z as z20 } from "zod";
|
|
32
32
|
import { z as z21 } from "zod";
|
|
33
|
-
import { z as
|
|
33
|
+
import { z as z98 } from "zod";
|
|
34
34
|
import { z as z22 } from "zod";
|
|
35
|
-
import { z as
|
|
36
|
-
import { z as
|
|
35
|
+
import { z as z89 } from "zod";
|
|
36
|
+
import { z as z87 } from "zod";
|
|
37
37
|
import { z as z23 } from "zod";
|
|
38
|
-
import { z as
|
|
38
|
+
import { z as z86 } from "zod";
|
|
39
39
|
import { z as z24 } from "zod";
|
|
40
40
|
import { z as z26 } from "zod";
|
|
41
41
|
import { z as z25 } from "zod";
|
|
@@ -55,20 +55,20 @@ 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 z41 } from "zod";
|
|
59
|
-
import { z as z45 } from "zod";
|
|
60
58
|
import { z as z44 } from "zod";
|
|
61
59
|
import { z as z43 } from "zod";
|
|
60
|
+
import { z as z41 } from "zod";
|
|
62
61
|
import { z as z42 } from "zod";
|
|
63
62
|
import { z as z48 } from "zod";
|
|
64
63
|
import { z as z47 } from "zod";
|
|
65
64
|
import { z as z46 } from "zod";
|
|
65
|
+
import { z as z45 } from "zod";
|
|
66
66
|
import { z as z51 } from "zod";
|
|
67
67
|
import { z as z50 } from "zod";
|
|
68
68
|
import { z as z49 } from "zod";
|
|
69
|
-
import { z as z52 } from "zod";
|
|
70
|
-
import { z as z53 } from "zod";
|
|
71
69
|
import { z as z54 } from "zod";
|
|
70
|
+
import { z as z53 } from "zod";
|
|
71
|
+
import { z as z52 } from "zod";
|
|
72
72
|
import { z as z55 } from "zod";
|
|
73
73
|
import { z as z56 } from "zod";
|
|
74
74
|
import { z as z57 } from "zod";
|
|
@@ -89,29 +89,29 @@ 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";
|
|
93
92
|
import { z as z75 } from "zod";
|
|
93
|
+
import { z as z76 } from "zod";
|
|
94
94
|
import { z as z77 } from "zod";
|
|
95
|
-
import { z as z78 } from "zod";
|
|
96
95
|
import { z as z79 } from "zod";
|
|
96
|
+
import { z as z78 } from "zod";
|
|
97
97
|
import { z as z80 } from "zod";
|
|
98
|
-
import { z as z82 } from "zod";
|
|
99
98
|
import { z as z81 } from "zod";
|
|
99
|
+
import { z as z82 } from "zod";
|
|
100
|
+
import { z as z83 } from "zod";
|
|
100
101
|
import { z as z85 } from "zod";
|
|
101
|
-
import { z as
|
|
102
|
-
import { z as z89 } from "zod";
|
|
103
|
-
import { z as z87 } from "zod";
|
|
102
|
+
import { z as z84 } from "zod";
|
|
104
103
|
import { z as z88 } from "zod";
|
|
104
|
+
import { z as z97 } from "zod";
|
|
105
|
+
import { z as z92 } from "zod";
|
|
105
106
|
import { z as z90 } from "zod";
|
|
106
107
|
import { z as z91 } from "zod";
|
|
107
|
-
import { z as z92 } from "zod";
|
|
108
108
|
import { z as z93 } from "zod";
|
|
109
|
+
import { z as z94 } from "zod";
|
|
110
|
+
import { z as z95 } from "zod";
|
|
109
111
|
import { z as z96 } from "zod";
|
|
110
|
-
import { z as z97 } from "zod";
|
|
111
|
-
import { z as z98 } from "zod";
|
|
112
|
-
import { z as z101 } from "zod";
|
|
113
|
-
import { z as z100 } from "zod";
|
|
114
112
|
import { z as z99 } from "zod";
|
|
113
|
+
import { z as z100 } from "zod";
|
|
114
|
+
import { z as z101 } from "zod";
|
|
115
115
|
import { z as z102 } from "zod";
|
|
116
116
|
import { z as z103 } from "zod";
|
|
117
117
|
import { z as z104 } from "zod";
|
|
@@ -649,11 +649,7 @@ var FigmaComponentBooleanProperty = z32.object({
|
|
|
649
649
|
});
|
|
650
650
|
var FigmaComponentInstanceSwapProperty = z32.object({
|
|
651
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()
|
|
652
|
+
defaultValue: z32.string()
|
|
657
653
|
});
|
|
658
654
|
var FigmaComponentVariantProperty = z32.object({
|
|
659
655
|
type: z32.literal(FigmaComponentPropertyType.enum.Variant),
|
|
@@ -1920,265 +1916,458 @@ function sanitizeSpanAttribute(attribute) {
|
|
|
1920
1916
|
};
|
|
1921
1917
|
}
|
|
1922
1918
|
}
|
|
1923
|
-
var
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
var
|
|
1930
|
-
|
|
1931
|
-
|
|
1919
|
+
var PageBlockDefinitionAppearance = z41.object({
|
|
1920
|
+
isBordered: z41.boolean().optional(),
|
|
1921
|
+
hasBackground: z41.boolean().optional(),
|
|
1922
|
+
isEditorPresentationDifferent: z41.boolean().optional(),
|
|
1923
|
+
showBlockHeaderInEditor: z41.boolean().optional()
|
|
1924
|
+
});
|
|
1925
|
+
var PageBlockDefinitionLayoutType = z42.enum(["Column", "Row"]);
|
|
1926
|
+
var PageBlockDefinitionLayoutGap = z42.enum(["Small", "Medium", "Large", "None"]);
|
|
1927
|
+
var PageBlockDefinitionLayoutAlign = z42.enum(["Start", "Center", "End"]);
|
|
1928
|
+
var PageBlockDefinitionLayoutResizing = z42.enum(["Fill", "Hug"]);
|
|
1929
|
+
var PageBlockDefinitionLayoutBase = z42.object({
|
|
1930
|
+
type: PageBlockDefinitionLayoutType,
|
|
1931
|
+
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
1932
|
+
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
1933
|
+
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
1934
|
+
});
|
|
1935
|
+
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
1936
|
+
children: z42.lazy(() => z42.array(PageBlockDefinitionLayout.or(z42.string())))
|
|
1937
|
+
});
|
|
1938
|
+
var PageBlockDefinitionVariant = z42.object({
|
|
1939
|
+
id: z42.string(),
|
|
1940
|
+
name: z42.string(),
|
|
1941
|
+
image: z42.string().optional(),
|
|
1942
|
+
description: z42.string().optional(),
|
|
1943
|
+
documentationLink: z42.string().optional(),
|
|
1944
|
+
layout: PageBlockDefinitionLayout,
|
|
1945
|
+
maxColumns: z42.number().optional(),
|
|
1946
|
+
defaultColumns: z42.number().optional(),
|
|
1947
|
+
appearance: PageBlockDefinitionAppearance.optional()
|
|
1948
|
+
});
|
|
1949
|
+
var PageBlockDefinitionPropertyType = z43.enum([
|
|
1950
|
+
"RichText",
|
|
1951
|
+
"MultiRichText",
|
|
1952
|
+
"RichTextEditor",
|
|
1953
|
+
"Text",
|
|
1954
|
+
"Boolean",
|
|
1955
|
+
"Number",
|
|
1956
|
+
"SingleSelect",
|
|
1957
|
+
"MultiSelect",
|
|
1958
|
+
"Image",
|
|
1959
|
+
"Token",
|
|
1960
|
+
"TokenType",
|
|
1961
|
+
"TokenProperty",
|
|
1962
|
+
"Component",
|
|
1963
|
+
"ComponentProperty",
|
|
1964
|
+
"Asset",
|
|
1965
|
+
"AssetProperty",
|
|
1966
|
+
"FigmaNode",
|
|
1967
|
+
"EmbedURL",
|
|
1968
|
+
"URL",
|
|
1969
|
+
"Markdown",
|
|
1970
|
+
"Code",
|
|
1971
|
+
"CodeSandbox",
|
|
1972
|
+
"Table",
|
|
1973
|
+
"Divider",
|
|
1974
|
+
"Storybook",
|
|
1975
|
+
"Color",
|
|
1976
|
+
"FigmaComponent"
|
|
1977
|
+
]);
|
|
1978
|
+
var PageBlockDefinitionRichTextPropertyStyle = z43.enum([
|
|
1979
|
+
"Title1",
|
|
1980
|
+
"Title2",
|
|
1981
|
+
"Title3",
|
|
1982
|
+
"Title4",
|
|
1983
|
+
"Title5",
|
|
1984
|
+
"Quote",
|
|
1985
|
+
"Callout",
|
|
1986
|
+
"Default"
|
|
1987
|
+
]);
|
|
1988
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z43.enum(["OL", "UL"]);
|
|
1989
|
+
var PageBlockDefinitionRichTextEditorPropertyStyle = z43.enum([
|
|
1990
|
+
"OL",
|
|
1991
|
+
"UL",
|
|
1992
|
+
"Bold",
|
|
1993
|
+
"Italic",
|
|
1994
|
+
"Link",
|
|
1995
|
+
"Strikethrough",
|
|
1996
|
+
"InlineCode"
|
|
1997
|
+
]);
|
|
1998
|
+
var PageBlockDefinitionTextPropertyStyle = z43.enum([
|
|
1999
|
+
"Title1",
|
|
2000
|
+
"Title2",
|
|
2001
|
+
"Title3",
|
|
2002
|
+
"Title4",
|
|
2003
|
+
"Title5",
|
|
2004
|
+
"Default",
|
|
2005
|
+
"DefaultBold",
|
|
2006
|
+
"DefaultSemibold",
|
|
2007
|
+
"Small",
|
|
2008
|
+
"SmallBold",
|
|
2009
|
+
"SmallSemibold",
|
|
2010
|
+
"Custom"
|
|
2011
|
+
]);
|
|
2012
|
+
var PageBlockDefinitionTextPropertyColor = z43.enum(["Neutral", "NeutralFaded"]);
|
|
2013
|
+
var PageBlockDefinitionBooleanPropertyStyle = z43.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
2014
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z43.enum([
|
|
2015
|
+
"SegmentedControl",
|
|
2016
|
+
"ToggleButton",
|
|
2017
|
+
"Select",
|
|
2018
|
+
"Checkbox"
|
|
2019
|
+
]);
|
|
2020
|
+
var PageBlockDefinitionSingleSelectPropertyColor = z43.enum([
|
|
2021
|
+
"Green",
|
|
2022
|
+
"Red",
|
|
2023
|
+
"Yellow",
|
|
2024
|
+
"Blue",
|
|
2025
|
+
"Purple",
|
|
2026
|
+
"Orange",
|
|
2027
|
+
"Pink",
|
|
2028
|
+
"Teal",
|
|
2029
|
+
"Brown",
|
|
2030
|
+
"Grey",
|
|
2031
|
+
"LightGrey",
|
|
2032
|
+
"Cyan",
|
|
2033
|
+
"Fuchsia"
|
|
2034
|
+
]);
|
|
2035
|
+
var IconSet = z43.enum(["CheckCircle", "CrossCircle", "Alert"]);
|
|
2036
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z43.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2037
|
+
var PageBlockDefinitionImageAspectRatio = z43.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2038
|
+
var PageBlockDefinitionImageWidth = z43.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2039
|
+
var PageBlockDefinitionSelectChoice = z43.object({
|
|
2040
|
+
value: z43.string(),
|
|
2041
|
+
name: z43.string(),
|
|
2042
|
+
icon: IconSet.optional(),
|
|
2043
|
+
customIconUrl: z43.string().optional(),
|
|
2044
|
+
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2045
|
+
});
|
|
2046
|
+
var PageBlockDefinitionUntypedPropertyOptions = z43.record(z43.any());
|
|
2047
|
+
var PageBlockDefinitionRichTextOptions = z43.object({
|
|
2048
|
+
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
2049
|
+
});
|
|
2050
|
+
var PageBlockDefinitionMutiRichTextOptions = z43.object({
|
|
2051
|
+
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
2052
|
+
});
|
|
2053
|
+
var PageBlockDefinitionRichTextEditorOptions = z43.object({
|
|
2054
|
+
placeholder: z43.string().optional(),
|
|
2055
|
+
allowedInlineStyles: z43.array(PageBlockDefinitionRichTextEditorPropertyStyle).optional()
|
|
1932
2056
|
});
|
|
1933
|
-
var
|
|
1934
|
-
|
|
1935
|
-
|
|
2057
|
+
var PageBlockDefinitionTextOptions = z43.object({
|
|
2058
|
+
placeholder: z43.string().optional(),
|
|
2059
|
+
defaultValue: z43.string().optional(),
|
|
2060
|
+
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2061
|
+
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2062
|
+
allowLineBreaks: z43.boolean().optional()
|
|
2063
|
+
});
|
|
2064
|
+
var PageBlockDefinitionSelectOptions = z43.object({
|
|
2065
|
+
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
2066
|
+
defaultChoice: z43.string(),
|
|
2067
|
+
choices: z43.array(PageBlockDefinitionSelectChoice)
|
|
1936
2068
|
});
|
|
1937
|
-
var
|
|
2069
|
+
var PageBlockDefinitionImageOptions = z43.object({
|
|
2070
|
+
width: PageBlockDefinitionImageWidth.optional(),
|
|
2071
|
+
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
2072
|
+
allowCaption: z43.boolean().optional(),
|
|
2073
|
+
recommendation: z43.string().optional()
|
|
2074
|
+
});
|
|
2075
|
+
var PageBlockDefinitionBooleanOptions = z43.object({
|
|
2076
|
+
defaultvalue: z43.boolean().optional(),
|
|
2077
|
+
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
2078
|
+
});
|
|
2079
|
+
var PageBlockDefinitionNumberOptions = z43.object({
|
|
2080
|
+
defaultValue: z43.number(),
|
|
2081
|
+
min: z43.number().optional(),
|
|
2082
|
+
max: z43.number().optional(),
|
|
2083
|
+
step: z43.number().optional(),
|
|
2084
|
+
placeholder: z43.string().optional()
|
|
2085
|
+
});
|
|
2086
|
+
var PageBlockDefinitionComponentOptions = z43.object({
|
|
2087
|
+
renderLayoutAs: z43.enum(["List", "Table"]).optional(),
|
|
2088
|
+
allowPropertySelection: z43.boolean().optional()
|
|
2089
|
+
});
|
|
2090
|
+
var PageBlockDefinitionProperty = z43.object({
|
|
2091
|
+
id: z43.string(),
|
|
2092
|
+
name: z43.string(),
|
|
2093
|
+
type: PageBlockDefinitionPropertyType,
|
|
2094
|
+
description: z43.string().optional(),
|
|
2095
|
+
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
2096
|
+
variantOptions: z43.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
2097
|
+
});
|
|
2098
|
+
var PageBlockDefinitionItem = z43.object({
|
|
2099
|
+
properties: z43.array(PageBlockDefinitionProperty),
|
|
2100
|
+
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2101
|
+
variants: z43.array(PageBlockDefinitionVariant),
|
|
2102
|
+
defaultVariantKey: z43.string()
|
|
2103
|
+
});
|
|
2104
|
+
var PageBlockLinkType = z44.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
2105
|
+
var PageBlockImageType = z44.enum(["Resource", "FigmaNode"]);
|
|
2106
|
+
var PageBlockImageAlignment = z44.enum(["Left", "Center", "Stretch"]);
|
|
2107
|
+
var PageBlockTableCellAlignment = z44.enum(["Left", "Center", "Right"]);
|
|
2108
|
+
var PageBlockPreviewContainerSize = z44.enum(["Centered", "NaturalHeight"]);
|
|
2109
|
+
var PageBlockThemeDisplayMode = z44.enum(["Split", "Override"]);
|
|
2110
|
+
var PageBlockImageResourceReference = z44.object({
|
|
2111
|
+
resourceId: z44.string(),
|
|
2112
|
+
url: z44.string()
|
|
2113
|
+
});
|
|
2114
|
+
var PageBlockResourceFrameNodeReference = z44.object({
|
|
2115
|
+
sourceId: z44.string(),
|
|
2116
|
+
frameReferenceId: z44.string()
|
|
2117
|
+
});
|
|
2118
|
+
var PageBlockImageReference = z44.object({
|
|
1938
2119
|
type: PageBlockImageType,
|
|
1939
2120
|
resource: PageBlockImageResourceReference.optional(),
|
|
1940
2121
|
figmaNode: PageBlockResourceFrameNodeReference.optional()
|
|
1941
2122
|
});
|
|
1942
|
-
var PageBlockColorV2 =
|
|
1943
|
-
value:
|
|
1944
|
-
referencedTokenId:
|
|
2123
|
+
var PageBlockColorV2 = z44.object({
|
|
2124
|
+
value: z44.string(),
|
|
2125
|
+
referencedTokenId: z44.string().optional()
|
|
1945
2126
|
});
|
|
1946
|
-
var PageBlockAssetEntityMeta =
|
|
1947
|
-
title:
|
|
1948
|
-
description:
|
|
2127
|
+
var PageBlockAssetEntityMeta = z44.object({
|
|
2128
|
+
title: z44.string().optional(),
|
|
2129
|
+
description: z44.string().optional(),
|
|
1949
2130
|
backgroundColor: PageBlockColorV2.optional()
|
|
1950
2131
|
});
|
|
1951
|
-
var PageBlockFigmaComponentEntityMeta =
|
|
1952
|
-
title:
|
|
1953
|
-
description:
|
|
2132
|
+
var PageBlockFigmaComponentEntityMeta = z44.object({
|
|
2133
|
+
title: z44.string().optional(),
|
|
2134
|
+
description: z44.string().optional(),
|
|
1954
2135
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1955
|
-
selectedComponentProperties:
|
|
2136
|
+
selectedComponentProperties: z44.array(z44.string()).optional()
|
|
1956
2137
|
});
|
|
1957
|
-
var PageBlockFigmaNodeEntityMeta =
|
|
1958
|
-
title:
|
|
1959
|
-
description:
|
|
2138
|
+
var PageBlockFigmaNodeEntityMeta = z44.object({
|
|
2139
|
+
title: z44.string().optional(),
|
|
2140
|
+
description: z44.string().optional(),
|
|
1960
2141
|
backgroundColor: PageBlockColorV2.optional()
|
|
1961
2142
|
});
|
|
1962
|
-
var PageBlockAppearanceV2 =
|
|
2143
|
+
var PageBlockAppearanceV2 = z44.object({
|
|
1963
2144
|
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
1964
|
-
numberOfColumns:
|
|
2145
|
+
numberOfColumns: z44.number().optional()
|
|
1965
2146
|
});
|
|
1966
|
-
var PageBlockItemUntypedValue =
|
|
1967
|
-
value:
|
|
1968
|
-
}).and(
|
|
1969
|
-
var PageBlockLinkV2 =
|
|
2147
|
+
var PageBlockItemUntypedValue = z44.object({
|
|
2148
|
+
value: z44.any()
|
|
2149
|
+
}).and(z44.record(z44.any()));
|
|
2150
|
+
var PageBlockLinkV2 = z44.object({
|
|
1970
2151
|
type: PageBlockLinkType,
|
|
1971
|
-
documentationItemId:
|
|
1972
|
-
pageHeadingId:
|
|
1973
|
-
url:
|
|
1974
|
-
openInNewTab:
|
|
2152
|
+
documentationItemId: z44.string().optional(),
|
|
2153
|
+
pageHeadingId: z44.string().optional(),
|
|
2154
|
+
url: z44.string().optional(),
|
|
2155
|
+
openInNewTab: z44.boolean().optional()
|
|
1975
2156
|
});
|
|
1976
|
-
var PageBlockItemV2 =
|
|
1977
|
-
id:
|
|
2157
|
+
var PageBlockItemV2 = z44.object({
|
|
2158
|
+
id: z44.string(),
|
|
1978
2159
|
linksTo: PageBlockLinkV2.optional(),
|
|
1979
|
-
props:
|
|
2160
|
+
props: z44.record(PageBlockItemUntypedValue)
|
|
1980
2161
|
});
|
|
1981
|
-
var PageBlockDataV2 =
|
|
1982
|
-
packageId:
|
|
1983
|
-
variantId:
|
|
1984
|
-
indentLevel:
|
|
2162
|
+
var PageBlockDataV2 = z44.object({
|
|
2163
|
+
packageId: z44.string(),
|
|
2164
|
+
variantId: z44.string().optional(),
|
|
2165
|
+
indentLevel: z44.number(),
|
|
1985
2166
|
appearance: PageBlockAppearanceV2.optional(),
|
|
1986
|
-
items:
|
|
2167
|
+
items: z44.array(PageBlockItemV2)
|
|
1987
2168
|
});
|
|
1988
|
-
var PageBlockItemAssetValue =
|
|
1989
|
-
selectedPropertyIds:
|
|
1990
|
-
showSearch:
|
|
2169
|
+
var PageBlockItemAssetValue = z44.object({
|
|
2170
|
+
selectedPropertyIds: z44.array(z44.string()).optional(),
|
|
2171
|
+
showSearch: z44.boolean().optional(),
|
|
1991
2172
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
1992
2173
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1993
|
-
value:
|
|
1994
|
-
|
|
1995
|
-
entityId:
|
|
1996
|
-
entityType:
|
|
2174
|
+
value: z44.array(
|
|
2175
|
+
z44.object({
|
|
2176
|
+
entityId: z44.string(),
|
|
2177
|
+
entityType: z44.enum(["Asset", "AssetGroup"]),
|
|
1997
2178
|
entityMeta: PageBlockAssetEntityMeta.optional()
|
|
1998
2179
|
})
|
|
1999
2180
|
).default([])
|
|
2000
2181
|
});
|
|
2001
|
-
var PageBlockItemAssetPropertyValue =
|
|
2002
|
-
value:
|
|
2182
|
+
var PageBlockItemAssetPropertyValue = z44.object({
|
|
2183
|
+
value: z44.array(z44.string()).default([])
|
|
2003
2184
|
});
|
|
2004
|
-
var PageBlockItemFigmaComponentValue =
|
|
2005
|
-
showComponentName:
|
|
2006
|
-
showComponentDescription:
|
|
2007
|
-
showPropertyList:
|
|
2185
|
+
var PageBlockItemFigmaComponentValue = z44.object({
|
|
2186
|
+
showComponentName: z44.boolean().optional(),
|
|
2187
|
+
showComponentDescription: z44.boolean().optional(),
|
|
2188
|
+
showPropertyList: z44.boolean().optional(),
|
|
2008
2189
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2009
2190
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2010
|
-
value:
|
|
2011
|
-
|
|
2012
|
-
entityId:
|
|
2013
|
-
entityType:
|
|
2191
|
+
value: z44.array(
|
|
2192
|
+
z44.object({
|
|
2193
|
+
entityId: z44.string(),
|
|
2194
|
+
entityType: z44.enum(["FigmaComponent"]),
|
|
2014
2195
|
entityMeta: PageBlockFigmaComponentEntityMeta.optional()
|
|
2015
2196
|
})
|
|
2016
2197
|
).default([])
|
|
2017
2198
|
});
|
|
2018
|
-
var PageBlockItemBooleanValue =
|
|
2019
|
-
value:
|
|
2199
|
+
var PageBlockItemBooleanValue = z44.object({
|
|
2200
|
+
value: z44.boolean()
|
|
2020
2201
|
});
|
|
2021
|
-
var PageBlockItemCodeValue =
|
|
2202
|
+
var PageBlockItemCodeValue = z44.object({
|
|
2022
2203
|
format: PageBlockCodeLanguage.optional(),
|
|
2023
|
-
caption:
|
|
2024
|
-
value:
|
|
2025
|
-
});
|
|
2026
|
-
var PageBlockItemSandboxValue =
|
|
2027
|
-
showCode:
|
|
2028
|
-
showControls:
|
|
2029
|
-
backgroundColor:
|
|
2030
|
-
alignPreview:
|
|
2031
|
-
previewHeight:
|
|
2032
|
-
value:
|
|
2033
|
-
});
|
|
2034
|
-
var PageBlockItemColorValue =
|
|
2035
|
-
var PageBlockItemComponentValue =
|
|
2036
|
-
selectedPropertyIds:
|
|
2037
|
-
selectedBrandId:
|
|
2038
|
-
value:
|
|
2039
|
-
|
|
2040
|
-
entityId:
|
|
2041
|
-
entityType:
|
|
2204
|
+
caption: z44.string().optional(),
|
|
2205
|
+
value: z44.string()
|
|
2206
|
+
});
|
|
2207
|
+
var PageBlockItemSandboxValue = z44.object({
|
|
2208
|
+
showCode: z44.boolean().optional(),
|
|
2209
|
+
showControls: z44.boolean().optional(),
|
|
2210
|
+
backgroundColor: z44.string().optional(),
|
|
2211
|
+
alignPreview: z44.enum(["Left", "Center"]).optional(),
|
|
2212
|
+
previewHeight: z44.number().optional(),
|
|
2213
|
+
value: z44.string()
|
|
2214
|
+
});
|
|
2215
|
+
var PageBlockItemColorValue = z44.record(z44.any());
|
|
2216
|
+
var PageBlockItemComponentValue = z44.object({
|
|
2217
|
+
selectedPropertyIds: z44.array(z44.string()).optional(),
|
|
2218
|
+
selectedBrandId: z44.string().optional(),
|
|
2219
|
+
value: z44.array(
|
|
2220
|
+
z44.object({
|
|
2221
|
+
entityId: z44.string(),
|
|
2222
|
+
entityType: z44.enum(["Component", "ComponentGroup"])
|
|
2042
2223
|
})
|
|
2043
2224
|
).default([])
|
|
2044
2225
|
});
|
|
2045
|
-
var PageBlockItemComponentPropertyValue =
|
|
2046
|
-
value:
|
|
2047
|
-
});
|
|
2048
|
-
var PageBlockItemDividerValue =
|
|
2049
|
-
var PageBlockItemEmbedValue =
|
|
2050
|
-
value:
|
|
2051
|
-
caption:
|
|
2052
|
-
height:
|
|
2053
|
-
openGraph:
|
|
2054
|
-
title:
|
|
2055
|
-
description:
|
|
2056
|
-
imageUrl:
|
|
2226
|
+
var PageBlockItemComponentPropertyValue = z44.object({
|
|
2227
|
+
value: z44.string()
|
|
2228
|
+
});
|
|
2229
|
+
var PageBlockItemDividerValue = z44.object({});
|
|
2230
|
+
var PageBlockItemEmbedValue = z44.object({
|
|
2231
|
+
value: z44.string().optional(),
|
|
2232
|
+
caption: z44.string().optional(),
|
|
2233
|
+
height: z44.number().optional(),
|
|
2234
|
+
openGraph: z44.object({
|
|
2235
|
+
title: z44.string().optional(),
|
|
2236
|
+
description: z44.string().optional(),
|
|
2237
|
+
imageUrl: z44.string().optional()
|
|
2057
2238
|
}).optional()
|
|
2058
2239
|
});
|
|
2059
|
-
var PageBlockItemFigmaNodeValue =
|
|
2060
|
-
showSearch:
|
|
2240
|
+
var PageBlockItemFigmaNodeValue = z44.object({
|
|
2241
|
+
showSearch: z44.boolean().optional(),
|
|
2061
2242
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2062
2243
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2063
|
-
showFrameDetails:
|
|
2064
|
-
value:
|
|
2065
|
-
|
|
2066
|
-
entityId:
|
|
2244
|
+
showFrameDetails: z44.boolean().optional(),
|
|
2245
|
+
value: z44.array(
|
|
2246
|
+
z44.object({
|
|
2247
|
+
entityId: z44.string(),
|
|
2067
2248
|
entityMeta: PageBlockFigmaNodeEntityMeta.optional()
|
|
2068
2249
|
})
|
|
2069
2250
|
).default([])
|
|
2070
2251
|
});
|
|
2071
|
-
var PageBlockItemImageValue =
|
|
2072
|
-
alt:
|
|
2073
|
-
caption:
|
|
2252
|
+
var PageBlockItemImageValue = z44.object({
|
|
2253
|
+
alt: z44.string().optional(),
|
|
2254
|
+
caption: z44.string().optional(),
|
|
2074
2255
|
alignment: PageBlockImageAlignment.optional(),
|
|
2075
2256
|
value: PageBlockImageReference.optional()
|
|
2076
2257
|
});
|
|
2077
|
-
var PageBlockItemMarkdownValue =
|
|
2078
|
-
value:
|
|
2258
|
+
var PageBlockItemMarkdownValue = z44.object({
|
|
2259
|
+
value: z44.string()
|
|
2079
2260
|
});
|
|
2080
|
-
var PageBlockItemMultiRichTextValue =
|
|
2261
|
+
var PageBlockItemMultiRichTextValue = z44.object({
|
|
2081
2262
|
value: PageBlockText.array()
|
|
2082
2263
|
});
|
|
2083
|
-
var PageBlockItemMultiSelectValue =
|
|
2084
|
-
value:
|
|
2264
|
+
var PageBlockItemMultiSelectValue = z44.object({
|
|
2265
|
+
value: z44.array(z44.string()).default([])
|
|
2085
2266
|
});
|
|
2086
|
-
var PageBlockItemNumberValue =
|
|
2087
|
-
value:
|
|
2267
|
+
var PageBlockItemNumberValue = z44.object({
|
|
2268
|
+
value: z44.number()
|
|
2088
2269
|
});
|
|
2089
|
-
var PageBlockItemRichTextValue =
|
|
2270
|
+
var PageBlockItemRichTextValue = z44.object({
|
|
2090
2271
|
value: PageBlockText,
|
|
2091
2272
|
calloutType: PageBlockCalloutType.optional()
|
|
2092
2273
|
});
|
|
2093
|
-
var
|
|
2094
|
-
value:
|
|
2274
|
+
var PageBlockItemSingleSelectValue = z44.object({
|
|
2275
|
+
value: z44.string()
|
|
2095
2276
|
});
|
|
2096
|
-
var
|
|
2097
|
-
|
|
2277
|
+
var PageBlockItemStorybookValue = z44.object({
|
|
2278
|
+
caption: z44.string().optional(),
|
|
2279
|
+
height: z44.number().optional(),
|
|
2280
|
+
embedUrl: z44.string().optional(),
|
|
2281
|
+
value: z44.string().optional()
|
|
2098
2282
|
});
|
|
2099
|
-
var
|
|
2100
|
-
|
|
2101
|
-
height: z41.number().optional(),
|
|
2102
|
-
embedUrl: z41.string().optional(),
|
|
2103
|
-
value: z41.string().optional()
|
|
2283
|
+
var PageBlockItemTextValue = z44.object({
|
|
2284
|
+
value: z44.string()
|
|
2104
2285
|
});
|
|
2105
|
-
var
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
var PageBlockItemTokenValue = z41.object({
|
|
2109
|
-
selectedPropertyIds: z41.array(z41.string()).optional(),
|
|
2110
|
-
selectedThemeIds: z41.array(z41.string()).optional(),
|
|
2286
|
+
var PageBlockItemTokenValue = z44.object({
|
|
2287
|
+
selectedPropertyIds: z44.array(z44.string()).optional(),
|
|
2288
|
+
selectedThemeIds: z44.array(z44.string()).optional(),
|
|
2111
2289
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
2112
|
-
value:
|
|
2113
|
-
|
|
2114
|
-
entityId:
|
|
2115
|
-
entityType:
|
|
2116
|
-
entityMeta:
|
|
2117
|
-
showNestedGroups:
|
|
2290
|
+
value: z44.array(
|
|
2291
|
+
z44.object({
|
|
2292
|
+
entityId: z44.string(),
|
|
2293
|
+
entityType: z44.enum(["Token", "TokenGroup"]),
|
|
2294
|
+
entityMeta: z44.object({
|
|
2295
|
+
showNestedGroups: z44.boolean().optional()
|
|
2118
2296
|
}).optional()
|
|
2119
2297
|
})
|
|
2120
2298
|
).default([])
|
|
2121
2299
|
});
|
|
2122
|
-
var PageBlockItemTokenPropertyValue =
|
|
2123
|
-
selectedPropertyIds:
|
|
2124
|
-
selectedThemeIds:
|
|
2125
|
-
value:
|
|
2300
|
+
var PageBlockItemTokenPropertyValue = z44.object({
|
|
2301
|
+
selectedPropertyIds: z44.array(z44.string()).optional(),
|
|
2302
|
+
selectedThemeIds: z44.array(z44.string()).optional(),
|
|
2303
|
+
value: z44.array(z44.string()).default([])
|
|
2126
2304
|
});
|
|
2127
|
-
var PageBlockItemTokenTypeValue =
|
|
2128
|
-
value:
|
|
2305
|
+
var PageBlockItemTokenTypeValue = z44.object({
|
|
2306
|
+
value: z44.array(DesignTokenType).default([])
|
|
2129
2307
|
});
|
|
2130
|
-
var PageBlockItemUrlValue =
|
|
2131
|
-
value:
|
|
2308
|
+
var PageBlockItemUrlValue = z44.object({
|
|
2309
|
+
value: z44.string()
|
|
2132
2310
|
});
|
|
2133
|
-
var
|
|
2134
|
-
type:
|
|
2135
|
-
id: z41.string(),
|
|
2311
|
+
var PageBlockItemRichTextEditorParagraphNode = z44.object({
|
|
2312
|
+
type: z44.literal("Paragraph"),
|
|
2136
2313
|
value: PageBlockItemRichTextValue.shape.value
|
|
2137
2314
|
});
|
|
2138
|
-
var
|
|
2139
|
-
type:
|
|
2315
|
+
var PageBlockItemRichTextEditorListNode = z44.object({
|
|
2316
|
+
type: z44.literal("List"),
|
|
2317
|
+
listType: PageBlockDefinitionMultiRichTextPropertyStyle,
|
|
2140
2318
|
value: PageBlockItemMultiRichTextValue.shape.value
|
|
2141
2319
|
});
|
|
2142
|
-
var
|
|
2143
|
-
|
|
2144
|
-
|
|
2320
|
+
var PageBlockItemRichTextEditorNode = z44.discriminatedUnion("type", [
|
|
2321
|
+
PageBlockItemRichTextEditorParagraphNode,
|
|
2322
|
+
PageBlockItemRichTextEditorListNode
|
|
2323
|
+
]);
|
|
2324
|
+
var PageBlockItemRichTextEditorValue = z44.object({
|
|
2325
|
+
value: PageBlockItemRichTextEditorNode.array()
|
|
2326
|
+
});
|
|
2327
|
+
var PageBlockItemTableRichTextNode = z44.object({
|
|
2328
|
+
type: z44.literal("RichText"),
|
|
2329
|
+
id: z44.string(),
|
|
2330
|
+
value: PageBlockItemRichTextValue.shape.value
|
|
2331
|
+
});
|
|
2332
|
+
var PageBlockItemTableImageNode = z44.object({
|
|
2333
|
+
type: z44.literal("Image"),
|
|
2334
|
+
id: z44.string(),
|
|
2145
2335
|
caption: PageBlockItemImageValue.shape.caption,
|
|
2146
2336
|
value: PageBlockItemImageValue.shape.value
|
|
2147
2337
|
});
|
|
2148
|
-
var PageBlockItemTableNode =
|
|
2338
|
+
var PageBlockItemTableNode = z44.discriminatedUnion("type", [
|
|
2149
2339
|
PageBlockItemTableRichTextNode,
|
|
2150
|
-
// PageBlockItemTableMultiRichTextNode,
|
|
2151
2340
|
PageBlockItemTableImageNode
|
|
2152
2341
|
]);
|
|
2153
|
-
var PageBlockItemTableCell =
|
|
2154
|
-
id:
|
|
2155
|
-
nodes:
|
|
2156
|
-
columnWidth:
|
|
2342
|
+
var PageBlockItemTableCell = z44.object({
|
|
2343
|
+
id: z44.string(),
|
|
2344
|
+
nodes: z44.array(PageBlockItemTableNode),
|
|
2345
|
+
columnWidth: z44.number().optional(),
|
|
2157
2346
|
alignment: PageBlockTableCellAlignment
|
|
2158
2347
|
});
|
|
2159
|
-
var PageBlockItemTableRow =
|
|
2160
|
-
cells:
|
|
2348
|
+
var PageBlockItemTableRow = z44.object({
|
|
2349
|
+
cells: z44.array(PageBlockItemTableCell)
|
|
2161
2350
|
});
|
|
2162
|
-
var PageBlockItemTableValue =
|
|
2163
|
-
highlightHeaderColumn:
|
|
2164
|
-
highlightHeaderRow:
|
|
2165
|
-
showBorder:
|
|
2166
|
-
value:
|
|
2351
|
+
var PageBlockItemTableValue = z44.object({
|
|
2352
|
+
highlightHeaderColumn: z44.boolean().optional(),
|
|
2353
|
+
highlightHeaderRow: z44.boolean().optional(),
|
|
2354
|
+
showBorder: z44.boolean().optional(),
|
|
2355
|
+
value: z44.array(PageBlockItemTableRow).default([])
|
|
2167
2356
|
});
|
|
2168
|
-
var DocumentationItemHeaderAlignmentSchema =
|
|
2169
|
-
var DocumentationItemHeaderImageScaleTypeSchema =
|
|
2357
|
+
var DocumentationItemHeaderAlignmentSchema = z45.enum(["Left", "Center"]);
|
|
2358
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z45.enum(["AspectFill", "AspectFit"]);
|
|
2170
2359
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
2171
2360
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
2172
|
-
var DocumentationItemHeaderV1 =
|
|
2173
|
-
description:
|
|
2361
|
+
var DocumentationItemHeaderV1 = z46.object({
|
|
2362
|
+
description: z46.string(),
|
|
2174
2363
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2175
2364
|
foregroundColor: ColorTokenData.nullish(),
|
|
2176
2365
|
backgroundColor: ColorTokenData.nullish(),
|
|
2177
2366
|
backgroundImageAsset: PageBlockAsset.nullish(),
|
|
2178
2367
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2179
|
-
showBackgroundOverlay:
|
|
2180
|
-
showCoverText:
|
|
2181
|
-
minHeight:
|
|
2368
|
+
showBackgroundOverlay: z46.boolean(),
|
|
2369
|
+
showCoverText: z46.boolean(),
|
|
2370
|
+
minHeight: z46.number().nullish()
|
|
2182
2371
|
});
|
|
2183
2372
|
var defaultDocumentationItemHeaderV1 = {
|
|
2184
2373
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2187,26 +2376,26 @@ var defaultDocumentationItemHeaderV1 = {
|
|
|
2187
2376
|
showBackgroundOverlay: false,
|
|
2188
2377
|
showCoverText: true
|
|
2189
2378
|
};
|
|
2190
|
-
var DocumentationItemConfigurationV1 =
|
|
2191
|
-
showSidebar:
|
|
2192
|
-
isPrivate:
|
|
2193
|
-
isHidden:
|
|
2379
|
+
var DocumentationItemConfigurationV1 = z47.object({
|
|
2380
|
+
showSidebar: z47.boolean(),
|
|
2381
|
+
isPrivate: z47.boolean().optional(),
|
|
2382
|
+
isHidden: z47.boolean().optional(),
|
|
2194
2383
|
header: DocumentationItemHeaderV1
|
|
2195
2384
|
});
|
|
2196
|
-
var DocumentationPageDataV1 =
|
|
2197
|
-
blocks:
|
|
2385
|
+
var DocumentationPageDataV1 = z48.object({
|
|
2386
|
+
blocks: z48.array(PageBlockV1),
|
|
2198
2387
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
2199
2388
|
});
|
|
2200
|
-
var DocumentationItemHeaderV2 =
|
|
2201
|
-
description:
|
|
2389
|
+
var DocumentationItemHeaderV2 = z49.object({
|
|
2390
|
+
description: z49.string(),
|
|
2202
2391
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2203
2392
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
2204
2393
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
2205
2394
|
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
2206
2395
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2207
|
-
showBackgroundOverlay:
|
|
2208
|
-
showCoverText:
|
|
2209
|
-
minHeight:
|
|
2396
|
+
showBackgroundOverlay: z49.boolean(),
|
|
2397
|
+
showCoverText: z49.boolean(),
|
|
2398
|
+
minHeight: z49.number().nullish()
|
|
2210
2399
|
});
|
|
2211
2400
|
var defaultDocumentationItemHeaderV2 = {
|
|
2212
2401
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2215,10 +2404,10 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
2215
2404
|
showBackgroundOverlay: false,
|
|
2216
2405
|
showCoverText: true
|
|
2217
2406
|
};
|
|
2218
|
-
var DocumentationItemConfigurationV2 =
|
|
2219
|
-
showSidebar:
|
|
2220
|
-
isPrivate:
|
|
2221
|
-
isHidden:
|
|
2407
|
+
var DocumentationItemConfigurationV2 = z50.object({
|
|
2408
|
+
showSidebar: z50.boolean(),
|
|
2409
|
+
isPrivate: z50.boolean().optional(),
|
|
2410
|
+
isHidden: z50.boolean().optional(),
|
|
2222
2411
|
header: DocumentationItemHeaderV2
|
|
2223
2412
|
});
|
|
2224
2413
|
var defaultDocumentationItemConfigurationV2 = {
|
|
@@ -2227,188 +2416,188 @@ var defaultDocumentationItemConfigurationV2 = {
|
|
|
2227
2416
|
isPrivate: false,
|
|
2228
2417
|
showSidebar: true
|
|
2229
2418
|
};
|
|
2230
|
-
var DocumentationPageDataV2 =
|
|
2419
|
+
var DocumentationPageDataV2 = z51.object({
|
|
2231
2420
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
2232
2421
|
});
|
|
2233
|
-
var DesignElementOrigin =
|
|
2234
|
-
id:
|
|
2235
|
-
sourceId:
|
|
2236
|
-
name:
|
|
2422
|
+
var DesignElementOrigin = z52.object({
|
|
2423
|
+
id: z52.string(),
|
|
2424
|
+
sourceId: z52.string(),
|
|
2425
|
+
name: z52.string()
|
|
2237
2426
|
});
|
|
2238
|
-
var DesignElementBase =
|
|
2239
|
-
id:
|
|
2240
|
-
persistentId:
|
|
2427
|
+
var DesignElementBase = z52.object({
|
|
2428
|
+
id: z52.string(),
|
|
2429
|
+
persistentId: z52.string(),
|
|
2241
2430
|
meta: ObjectMeta,
|
|
2242
|
-
designSystemVersionId:
|
|
2243
|
-
createdAt:
|
|
2244
|
-
updatedAt:
|
|
2431
|
+
designSystemVersionId: z52.string(),
|
|
2432
|
+
createdAt: z52.coerce.date(),
|
|
2433
|
+
updatedAt: z52.coerce.date()
|
|
2245
2434
|
});
|
|
2246
2435
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
2247
2436
|
origin: DesignElementOrigin
|
|
2248
2437
|
});
|
|
2249
|
-
var DesignElementGroupablePart =
|
|
2250
|
-
parentPersistentId:
|
|
2251
|
-
sortOrder:
|
|
2438
|
+
var DesignElementGroupablePart = z52.object({
|
|
2439
|
+
parentPersistentId: z52.string().optional(),
|
|
2440
|
+
sortOrder: z52.number()
|
|
2252
2441
|
});
|
|
2253
2442
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
2254
2443
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
2255
|
-
parentPersistentId:
|
|
2444
|
+
parentPersistentId: z52.string()
|
|
2256
2445
|
});
|
|
2257
|
-
var DesignElementBrandedPart =
|
|
2258
|
-
brandPersistentId:
|
|
2446
|
+
var DesignElementBrandedPart = z52.object({
|
|
2447
|
+
brandPersistentId: z52.string()
|
|
2259
2448
|
});
|
|
2260
|
-
var DesignElementSlugPart =
|
|
2261
|
-
slug:
|
|
2262
|
-
userSlug:
|
|
2449
|
+
var DesignElementSlugPart = z52.object({
|
|
2450
|
+
slug: z52.string().optional(),
|
|
2451
|
+
userSlug: z52.string().optional()
|
|
2263
2452
|
});
|
|
2264
2453
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
2265
2454
|
data: PageBlockDataV2
|
|
2266
2455
|
});
|
|
2267
|
-
var PageBlockEditorModelV2 =
|
|
2268
|
-
id:
|
|
2269
|
-
type:
|
|
2456
|
+
var PageBlockEditorModelV2 = z53.object({
|
|
2457
|
+
id: z53.string(),
|
|
2458
|
+
type: z53.literal("Block"),
|
|
2270
2459
|
data: PageBlockDataV2
|
|
2271
2460
|
});
|
|
2272
|
-
var PageSectionTypeV2 =
|
|
2273
|
-
var PageSectionColumnV2 =
|
|
2274
|
-
id:
|
|
2275
|
-
blocks:
|
|
2276
|
-
});
|
|
2277
|
-
var PageSectionItemV2 =
|
|
2278
|
-
id:
|
|
2279
|
-
title:
|
|
2280
|
-
columns:
|
|
2281
|
-
});
|
|
2282
|
-
var PageSectionPaddingV2 =
|
|
2283
|
-
top:
|
|
2284
|
-
bottom:
|
|
2285
|
-
left:
|
|
2286
|
-
right:
|
|
2287
|
-
});
|
|
2288
|
-
var PageSectionAppearanceV2 =
|
|
2289
|
-
expandToEdges:
|
|
2290
|
-
contentExpandToEdges:
|
|
2461
|
+
var PageSectionTypeV2 = z54.enum(["Tabs"]);
|
|
2462
|
+
var PageSectionColumnV2 = z54.object({
|
|
2463
|
+
id: z54.string(),
|
|
2464
|
+
blocks: z54.array(PageBlockEditorModelV2)
|
|
2465
|
+
});
|
|
2466
|
+
var PageSectionItemV2 = z54.object({
|
|
2467
|
+
id: z54.string(),
|
|
2468
|
+
title: z54.string(),
|
|
2469
|
+
columns: z54.array(PageSectionColumnV2)
|
|
2470
|
+
});
|
|
2471
|
+
var PageSectionPaddingV2 = z54.object({
|
|
2472
|
+
top: z54.number().optional(),
|
|
2473
|
+
bottom: z54.number().optional(),
|
|
2474
|
+
left: z54.number().optional(),
|
|
2475
|
+
right: z54.number().optional()
|
|
2476
|
+
});
|
|
2477
|
+
var PageSectionAppearanceV2 = z54.object({
|
|
2478
|
+
expandToEdges: z54.boolean(),
|
|
2479
|
+
contentExpandToEdges: z54.boolean(),
|
|
2291
2480
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2292
2481
|
foregroundColor: PageBlockColorV2.optional(),
|
|
2293
2482
|
padding: PageSectionPaddingV2.optional()
|
|
2294
2483
|
});
|
|
2295
|
-
var PageSectionEditorModelV2 =
|
|
2296
|
-
id:
|
|
2297
|
-
type:
|
|
2298
|
-
variantId:
|
|
2484
|
+
var PageSectionEditorModelV2 = z54.object({
|
|
2485
|
+
id: z54.string(),
|
|
2486
|
+
type: z54.literal("Section"),
|
|
2487
|
+
variantId: z54.string().optional(),
|
|
2299
2488
|
sectionType: PageSectionTypeV2,
|
|
2300
2489
|
appearance: PageSectionAppearanceV2,
|
|
2301
|
-
items:
|
|
2490
|
+
items: z54.array(PageSectionItemV2)
|
|
2302
2491
|
});
|
|
2303
|
-
var DurationUnit =
|
|
2304
|
-
var DurationValue =
|
|
2492
|
+
var DurationUnit = z55.enum(["Ms"]);
|
|
2493
|
+
var DurationValue = z55.object({
|
|
2305
2494
|
unit: DurationUnit,
|
|
2306
|
-
measure:
|
|
2495
|
+
measure: z55.number()
|
|
2307
2496
|
});
|
|
2308
2497
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
2309
|
-
var FigmaFileStructureNodeType =
|
|
2310
|
-
var FigmaFileStructureNodeBase =
|
|
2311
|
-
id:
|
|
2312
|
-
name:
|
|
2498
|
+
var FigmaFileStructureNodeType = z56.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
2499
|
+
var FigmaFileStructureNodeBase = z56.object({
|
|
2500
|
+
id: z56.string(),
|
|
2501
|
+
name: z56.string(),
|
|
2313
2502
|
type: FigmaFileStructureNodeType,
|
|
2314
2503
|
size: SizeOrUndefined,
|
|
2315
|
-
parentComponentSetId:
|
|
2504
|
+
parentComponentSetId: z56.string().optional()
|
|
2316
2505
|
});
|
|
2317
2506
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
2318
|
-
children:
|
|
2507
|
+
children: z56.lazy(() => FigmaFileStructureNode.array())
|
|
2319
2508
|
});
|
|
2320
|
-
var FigmaFileStructureStatistics =
|
|
2321
|
-
frames:
|
|
2322
|
-
components:
|
|
2323
|
-
componentSets:
|
|
2509
|
+
var FigmaFileStructureStatistics = z56.object({
|
|
2510
|
+
frames: z56.number().nullable().optional().transform((v) => v ?? 0),
|
|
2511
|
+
components: z56.number().nullable().optional().transform((v) => v ?? 0),
|
|
2512
|
+
componentSets: z56.number().nullable().optional().transform((v) => v ?? 0)
|
|
2324
2513
|
});
|
|
2325
|
-
var FigmaFileStructureElementData =
|
|
2326
|
-
value:
|
|
2514
|
+
var FigmaFileStructureElementData = z56.object({
|
|
2515
|
+
value: z56.object({
|
|
2327
2516
|
structure: FigmaFileStructureNode,
|
|
2328
2517
|
assetsInFile: FigmaFileStructureStatistics
|
|
2329
2518
|
})
|
|
2330
2519
|
});
|
|
2331
|
-
var FigmaNodeRenderFormat =
|
|
2332
|
-
var FigmaNodeReferenceData =
|
|
2333
|
-
structureElementId:
|
|
2334
|
-
nodeId:
|
|
2335
|
-
fileId:
|
|
2336
|
-
valid:
|
|
2520
|
+
var FigmaNodeRenderFormat = z57.enum(["Png", "Svg"]);
|
|
2521
|
+
var FigmaNodeReferenceData = z57.object({
|
|
2522
|
+
structureElementId: z57.string(),
|
|
2523
|
+
nodeId: z57.string(),
|
|
2524
|
+
fileId: z57.string().optional(),
|
|
2525
|
+
valid: z57.boolean(),
|
|
2337
2526
|
format: FigmaNodeRenderFormat.default("Png"),
|
|
2338
2527
|
// Asset data
|
|
2339
|
-
assetId:
|
|
2340
|
-
assetScale:
|
|
2341
|
-
assetWidth:
|
|
2342
|
-
assetHeight:
|
|
2343
|
-
assetUrl:
|
|
2344
|
-
assetOriginKey:
|
|
2345
|
-
});
|
|
2346
|
-
var FigmaNodeReferenceElementData =
|
|
2528
|
+
assetId: z57.string().optional(),
|
|
2529
|
+
assetScale: z57.number().optional(),
|
|
2530
|
+
assetWidth: z57.number().optional(),
|
|
2531
|
+
assetHeight: z57.number().optional(),
|
|
2532
|
+
assetUrl: z57.string().optional(),
|
|
2533
|
+
assetOriginKey: z57.string().optional()
|
|
2534
|
+
});
|
|
2535
|
+
var FigmaNodeReferenceElementData = z57.object({
|
|
2347
2536
|
value: FigmaNodeReferenceData
|
|
2348
2537
|
});
|
|
2349
|
-
var FontFamilyValue =
|
|
2538
|
+
var FontFamilyValue = z58.string();
|
|
2350
2539
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
2351
|
-
var FontSizeUnit =
|
|
2352
|
-
var FontSizeValue =
|
|
2540
|
+
var FontSizeUnit = z59.enum(["Pixels", "Rem", "Percent"]);
|
|
2541
|
+
var FontSizeValue = z59.object({
|
|
2353
2542
|
unit: FontSizeUnit,
|
|
2354
|
-
measure:
|
|
2543
|
+
measure: z59.number()
|
|
2355
2544
|
});
|
|
2356
2545
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
2357
|
-
var FontWeightValue =
|
|
2546
|
+
var FontWeightValue = z60.string();
|
|
2358
2547
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
2359
|
-
var GradientType =
|
|
2360
|
-
var GradientStop =
|
|
2361
|
-
position:
|
|
2548
|
+
var GradientType = z61.enum(["Linear", "Radial", "Angular"]);
|
|
2549
|
+
var GradientStop = z61.object({
|
|
2550
|
+
position: z61.number(),
|
|
2362
2551
|
color: ColorTokenData
|
|
2363
2552
|
});
|
|
2364
|
-
var GradientLayerValue =
|
|
2553
|
+
var GradientLayerValue = z61.object({
|
|
2365
2554
|
from: Point2D,
|
|
2366
2555
|
to: Point2D,
|
|
2367
2556
|
type: GradientType,
|
|
2368
|
-
aspectRatio: nullishToOptional(
|
|
2557
|
+
aspectRatio: nullishToOptional(z61.number()),
|
|
2369
2558
|
// z.number(),
|
|
2370
|
-
stops:
|
|
2559
|
+
stops: z61.array(GradientStop).min(2)
|
|
2371
2560
|
});
|
|
2372
2561
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
2373
|
-
var GradientTokenValue =
|
|
2562
|
+
var GradientTokenValue = z61.array(GradientLayerData);
|
|
2374
2563
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
2375
|
-
var DocumentationGroupBehavior =
|
|
2376
|
-
var ElementGroupDataV1 =
|
|
2564
|
+
var DocumentationGroupBehavior = z62.enum(["Group", "Tabs"]);
|
|
2565
|
+
var ElementGroupDataV1 = z62.object({
|
|
2377
2566
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
2378
2567
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
2379
2568
|
});
|
|
2380
|
-
var ElementGroupDataV2 =
|
|
2569
|
+
var ElementGroupDataV2 = z62.object({
|
|
2381
2570
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
2382
2571
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
2383
2572
|
});
|
|
2384
|
-
var LetterSpacingUnit =
|
|
2385
|
-
var LetterSpacingValue =
|
|
2573
|
+
var LetterSpacingUnit = z63.enum(["Pixels", "Rem", "Percent"]);
|
|
2574
|
+
var LetterSpacingValue = z63.object({
|
|
2386
2575
|
unit: LetterSpacingUnit,
|
|
2387
|
-
measure:
|
|
2576
|
+
measure: z63.number()
|
|
2388
2577
|
});
|
|
2389
2578
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
2390
|
-
var LineHeightUnit =
|
|
2391
|
-
var LineHeightValue =
|
|
2579
|
+
var LineHeightUnit = z64.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
2580
|
+
var LineHeightValue = z64.object({
|
|
2392
2581
|
unit: LineHeightUnit,
|
|
2393
|
-
measure:
|
|
2582
|
+
measure: z64.number()
|
|
2394
2583
|
});
|
|
2395
2584
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
2396
|
-
var ParagraphIndentUnit =
|
|
2397
|
-
var ParagraphIndentValue =
|
|
2585
|
+
var ParagraphIndentUnit = z65.enum(["Pixels", "Rem", "Percent"]);
|
|
2586
|
+
var ParagraphIndentValue = z65.object({
|
|
2398
2587
|
unit: ParagraphIndentUnit,
|
|
2399
|
-
measure:
|
|
2588
|
+
measure: z65.number()
|
|
2400
2589
|
});
|
|
2401
2590
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
2402
|
-
var ParagraphSpacingUnit =
|
|
2403
|
-
var ParagraphSpacingValue =
|
|
2591
|
+
var ParagraphSpacingUnit = z66.enum(["Pixels", "Rem", "Percent"]);
|
|
2592
|
+
var ParagraphSpacingValue = z66.object({
|
|
2404
2593
|
unit: ParagraphSpacingUnit,
|
|
2405
|
-
measure:
|
|
2594
|
+
measure: z66.number()
|
|
2406
2595
|
});
|
|
2407
2596
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
2408
|
-
var ProductCopyValue =
|
|
2597
|
+
var ProductCopyValue = z67.string();
|
|
2409
2598
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
2410
2599
|
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
2411
|
-
var SafeIdSchema =
|
|
2600
|
+
var SafeIdSchema = z68.string().refine(
|
|
2412
2601
|
(value) => {
|
|
2413
2602
|
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
2414
2603
|
},
|
|
@@ -2416,39 +2605,39 @@ var SafeIdSchema = z65.string().refine(
|
|
|
2416
2605
|
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
2417
2606
|
}
|
|
2418
2607
|
);
|
|
2419
|
-
var ShadowType =
|
|
2420
|
-
var ShadowLayerValue =
|
|
2608
|
+
var ShadowType = z69.enum(["Drop", "Inner"]);
|
|
2609
|
+
var ShadowLayerValue = z69.object({
|
|
2421
2610
|
color: ColorTokenData,
|
|
2422
|
-
x:
|
|
2423
|
-
y:
|
|
2424
|
-
radius:
|
|
2425
|
-
spread:
|
|
2611
|
+
x: z69.number(),
|
|
2612
|
+
y: z69.number(),
|
|
2613
|
+
radius: z69.number(),
|
|
2614
|
+
spread: z69.number(),
|
|
2426
2615
|
opacity: OpacityTokenData.optional(),
|
|
2427
2616
|
type: ShadowType
|
|
2428
2617
|
});
|
|
2429
2618
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
2430
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
2431
|
-
var SizeUnit =
|
|
2432
|
-
var SizeValue =
|
|
2619
|
+
var ShadowTokenData = tokenAliasOrValue(z69.array(ShadowTokenDataBase));
|
|
2620
|
+
var SizeUnit = z70.enum(["Pixels", "Rem", "Percent"]);
|
|
2621
|
+
var SizeValue = z70.object({
|
|
2433
2622
|
unit: SizeUnit,
|
|
2434
|
-
measure:
|
|
2623
|
+
measure: z70.number()
|
|
2435
2624
|
});
|
|
2436
2625
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
2437
|
-
var SpaceUnit =
|
|
2438
|
-
var SpaceValue =
|
|
2626
|
+
var SpaceUnit = z71.enum(["Pixels", "Rem", "Percent"]);
|
|
2627
|
+
var SpaceValue = z71.object({
|
|
2439
2628
|
unit: SpaceUnit,
|
|
2440
|
-
measure:
|
|
2629
|
+
measure: z71.number()
|
|
2441
2630
|
});
|
|
2442
2631
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
2443
|
-
var StringValue =
|
|
2632
|
+
var StringValue = z72.string();
|
|
2444
2633
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
2445
|
-
var TextCase =
|
|
2634
|
+
var TextCase = z73.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
2446
2635
|
var TextCaseValue = TextCase;
|
|
2447
2636
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
2448
|
-
var TextDecoration =
|
|
2637
|
+
var TextDecoration = z74.enum(["None", "Underline", "Strikethrough"]);
|
|
2449
2638
|
var TextDecorationValue = TextDecoration;
|
|
2450
2639
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
2451
|
-
var TypographyValue =
|
|
2640
|
+
var TypographyValue = z75.object({
|
|
2452
2641
|
fontSize: FontSizeTokenData,
|
|
2453
2642
|
fontFamily: FontFamilyTokenData,
|
|
2454
2643
|
fontWeight: FontWeightTokenData,
|
|
@@ -2460,23 +2649,23 @@ var TypographyValue = z72.object({
|
|
|
2460
2649
|
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
2461
2650
|
});
|
|
2462
2651
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
2463
|
-
var Visibility =
|
|
2652
|
+
var Visibility = z76.enum(["Hidden", "Visible"]);
|
|
2464
2653
|
var VisibilityValue = Visibility;
|
|
2465
2654
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
2466
|
-
var ZIndexUnit =
|
|
2467
|
-
var ZIndexValue =
|
|
2655
|
+
var ZIndexUnit = z77.enum(["Raw"]);
|
|
2656
|
+
var ZIndexValue = z77.object({
|
|
2468
2657
|
unit: ZIndexUnit,
|
|
2469
|
-
measure:
|
|
2658
|
+
measure: z77.number()
|
|
2470
2659
|
});
|
|
2471
2660
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
2472
2661
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
2473
|
-
shortPersistentId:
|
|
2662
|
+
shortPersistentId: z78.string().optional(),
|
|
2474
2663
|
childType: DesignElementType,
|
|
2475
2664
|
data: ElementGroupDataV2.optional()
|
|
2476
2665
|
});
|
|
2477
2666
|
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
2478
2667
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
2479
|
-
shortPersistentId:
|
|
2668
|
+
shortPersistentId: z79.string(),
|
|
2480
2669
|
data: DocumentationPageDataV1
|
|
2481
2670
|
});
|
|
2482
2671
|
var DocumentationGroupV1 = ElementGroup.omit({
|
|
@@ -2485,19 +2674,19 @@ var DocumentationGroupV1 = ElementGroup.omit({
|
|
|
2485
2674
|
data: ElementGroupDataV1.optional()
|
|
2486
2675
|
});
|
|
2487
2676
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
2488
|
-
shortPersistentId:
|
|
2677
|
+
shortPersistentId: z80.string(),
|
|
2489
2678
|
data: DocumentationPageDataV2.extend({
|
|
2490
|
-
oldBlocks:
|
|
2679
|
+
oldBlocks: z80.array(PageBlockV1).optional()
|
|
2491
2680
|
})
|
|
2492
2681
|
});
|
|
2493
|
-
var FigmaComponentOriginPart =
|
|
2494
|
-
nodeId:
|
|
2495
|
-
width:
|
|
2496
|
-
height:
|
|
2682
|
+
var FigmaComponentOriginPart = z81.object({
|
|
2683
|
+
nodeId: z81.string().optional(),
|
|
2684
|
+
width: z81.number().optional(),
|
|
2685
|
+
height: z81.number().optional()
|
|
2497
2686
|
});
|
|
2498
|
-
var FigmaComponentAsset =
|
|
2499
|
-
assetId:
|
|
2500
|
-
assetPath:
|
|
2687
|
+
var FigmaComponentAsset = z81.object({
|
|
2688
|
+
assetId: z81.string(),
|
|
2689
|
+
assetPath: z81.string()
|
|
2501
2690
|
});
|
|
2502
2691
|
var FigmaComponentOrigin = DesignElementOrigin.extend(FigmaComponentOriginPart.shape);
|
|
2503
2692
|
var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -2505,14 +2694,14 @@ var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart
|
|
|
2505
2694
|
thumbnail: FigmaComponentAsset,
|
|
2506
2695
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
2507
2696
|
svg: FigmaComponentAsset.optional(),
|
|
2508
|
-
isAsset:
|
|
2509
|
-
parentComponentPersistentId: nullishToOptional(
|
|
2697
|
+
isAsset: z81.boolean(),
|
|
2698
|
+
parentComponentPersistentId: nullishToOptional(z81.string())
|
|
2510
2699
|
});
|
|
2511
|
-
var FigmaFileStructureOrigin =
|
|
2512
|
-
sourceId:
|
|
2513
|
-
fileId:
|
|
2700
|
+
var FigmaFileStructureOrigin = z82.object({
|
|
2701
|
+
sourceId: z82.string(),
|
|
2702
|
+
fileId: z82.string().optional()
|
|
2514
2703
|
});
|
|
2515
|
-
var FigmaFileStructureData =
|
|
2704
|
+
var FigmaFileStructureData = z82.object({
|
|
2516
2705
|
rootNode: FigmaFileStructureNode,
|
|
2517
2706
|
assetsInFile: FigmaFileStructureStatistics
|
|
2518
2707
|
});
|
|
@@ -2520,22 +2709,22 @@ var FigmaFileStructure = DesignElementBase.extend({
|
|
|
2520
2709
|
origin: FigmaFileStructureOrigin,
|
|
2521
2710
|
data: FigmaFileStructureData
|
|
2522
2711
|
});
|
|
2523
|
-
var FigmaNodeReferenceOrigin =
|
|
2524
|
-
sourceId:
|
|
2525
|
-
parentName:
|
|
2712
|
+
var FigmaNodeReferenceOrigin = z83.object({
|
|
2713
|
+
sourceId: z83.string(),
|
|
2714
|
+
parentName: z83.string().optional()
|
|
2526
2715
|
});
|
|
2527
2716
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
2528
2717
|
data: FigmaNodeReferenceData,
|
|
2529
2718
|
origin: FigmaNodeReferenceOrigin
|
|
2530
2719
|
});
|
|
2531
|
-
var DesignTokenOriginPart =
|
|
2532
|
-
referenceOriginId:
|
|
2533
|
-
referenceOriginKey:
|
|
2534
|
-
referenceOriginName:
|
|
2535
|
-
referenceOriginRemote:
|
|
2536
|
-
referencePersistentId:
|
|
2537
|
-
referenceResolutionFailed:
|
|
2538
|
-
key:
|
|
2720
|
+
var DesignTokenOriginPart = z84.object({
|
|
2721
|
+
referenceOriginId: z84.string().optional(),
|
|
2722
|
+
referenceOriginKey: z84.string().optional(),
|
|
2723
|
+
referenceOriginName: z84.string().optional(),
|
|
2724
|
+
referenceOriginRemote: z84.boolean().optional(),
|
|
2725
|
+
referencePersistentId: z84.string().optional(),
|
|
2726
|
+
referenceResolutionFailed: z84.boolean().optional(),
|
|
2727
|
+
key: z84.string().optional()
|
|
2539
2728
|
});
|
|
2540
2729
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
2541
2730
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -2547,111 +2736,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
2547
2736
|
brandPersistentId: true,
|
|
2548
2737
|
designSystemVersionId: true
|
|
2549
2738
|
});
|
|
2550
|
-
var BlurTokenTypedData =
|
|
2551
|
-
type:
|
|
2739
|
+
var BlurTokenTypedData = z84.object({
|
|
2740
|
+
type: z84.literal("Blur"),
|
|
2552
2741
|
data: BlurTokenData
|
|
2553
2742
|
});
|
|
2554
|
-
var ColorTokenTypedData =
|
|
2555
|
-
type:
|
|
2743
|
+
var ColorTokenTypedData = z84.object({
|
|
2744
|
+
type: z84.literal("Color"),
|
|
2556
2745
|
data: ColorTokenData
|
|
2557
2746
|
});
|
|
2558
|
-
var GradientTokenTypedData =
|
|
2559
|
-
type:
|
|
2747
|
+
var GradientTokenTypedData = z84.object({
|
|
2748
|
+
type: z84.literal("Gradient"),
|
|
2560
2749
|
data: GradientTokenData
|
|
2561
2750
|
});
|
|
2562
|
-
var OpacityTokenTypedData =
|
|
2563
|
-
type:
|
|
2751
|
+
var OpacityTokenTypedData = z84.object({
|
|
2752
|
+
type: z84.literal("Opacity"),
|
|
2564
2753
|
data: OpacityTokenData
|
|
2565
2754
|
});
|
|
2566
|
-
var ShadowTokenTypedData =
|
|
2567
|
-
type:
|
|
2755
|
+
var ShadowTokenTypedData = z84.object({
|
|
2756
|
+
type: z84.literal("Shadow"),
|
|
2568
2757
|
data: ShadowTokenData
|
|
2569
2758
|
});
|
|
2570
|
-
var TypographyTokenTypedData =
|
|
2571
|
-
type:
|
|
2759
|
+
var TypographyTokenTypedData = z84.object({
|
|
2760
|
+
type: z84.literal("Typography"),
|
|
2572
2761
|
data: TypographyTokenData
|
|
2573
2762
|
});
|
|
2574
|
-
var StringTokenTypedData =
|
|
2575
|
-
type:
|
|
2763
|
+
var StringTokenTypedData = z84.object({
|
|
2764
|
+
type: z84.literal("String"),
|
|
2576
2765
|
data: StringTokenData
|
|
2577
2766
|
});
|
|
2578
|
-
var DimensionTokenTypedData =
|
|
2579
|
-
type:
|
|
2767
|
+
var DimensionTokenTypedData = z84.object({
|
|
2768
|
+
type: z84.literal("Dimension"),
|
|
2580
2769
|
data: DimensionTokenData
|
|
2581
2770
|
});
|
|
2582
|
-
var FontSizeTokenTypedData =
|
|
2583
|
-
type:
|
|
2771
|
+
var FontSizeTokenTypedData = z84.object({
|
|
2772
|
+
type: z84.literal("FontSize"),
|
|
2584
2773
|
data: FontSizeTokenData
|
|
2585
2774
|
});
|
|
2586
|
-
var FontFamilyTokenTypedData =
|
|
2587
|
-
type:
|
|
2775
|
+
var FontFamilyTokenTypedData = z84.object({
|
|
2776
|
+
type: z84.literal("FontFamily"),
|
|
2588
2777
|
data: FontFamilyTokenData
|
|
2589
2778
|
});
|
|
2590
|
-
var FontWeightTokenTypedData =
|
|
2591
|
-
type:
|
|
2779
|
+
var FontWeightTokenTypedData = z84.object({
|
|
2780
|
+
type: z84.literal("FontWeight"),
|
|
2592
2781
|
data: FontWeightTokenData
|
|
2593
2782
|
});
|
|
2594
|
-
var LetterSpacingTokenTypedData =
|
|
2595
|
-
type:
|
|
2783
|
+
var LetterSpacingTokenTypedData = z84.object({
|
|
2784
|
+
type: z84.literal("LetterSpacing"),
|
|
2596
2785
|
data: LetterSpacingTokenData
|
|
2597
2786
|
});
|
|
2598
|
-
var LineHeightTokenTypedData =
|
|
2599
|
-
type:
|
|
2787
|
+
var LineHeightTokenTypedData = z84.object({
|
|
2788
|
+
type: z84.literal("LineHeight"),
|
|
2600
2789
|
data: LineHeightTokenData
|
|
2601
2790
|
});
|
|
2602
|
-
var ParagraphSpacingTokenTypedData =
|
|
2603
|
-
type:
|
|
2791
|
+
var ParagraphSpacingTokenTypedData = z84.object({
|
|
2792
|
+
type: z84.literal("ParagraphSpacing"),
|
|
2604
2793
|
data: ParagraphSpacingTokenData
|
|
2605
2794
|
});
|
|
2606
|
-
var TextCaseTokenTypedData =
|
|
2607
|
-
type:
|
|
2795
|
+
var TextCaseTokenTypedData = z84.object({
|
|
2796
|
+
type: z84.literal("TextCase"),
|
|
2608
2797
|
data: TextCaseTokenData
|
|
2609
2798
|
});
|
|
2610
|
-
var TextDecorationTokenTypedData =
|
|
2611
|
-
type:
|
|
2799
|
+
var TextDecorationTokenTypedData = z84.object({
|
|
2800
|
+
type: z84.literal("TextDecoration"),
|
|
2612
2801
|
data: TextDecorationTokenData
|
|
2613
2802
|
});
|
|
2614
|
-
var BorderRadiusTokenTypedData =
|
|
2615
|
-
type:
|
|
2803
|
+
var BorderRadiusTokenTypedData = z84.object({
|
|
2804
|
+
type: z84.literal("BorderRadius"),
|
|
2616
2805
|
data: BorderRadiusTokenData
|
|
2617
2806
|
});
|
|
2618
|
-
var BorderWidthTokenTypedData =
|
|
2619
|
-
type:
|
|
2807
|
+
var BorderWidthTokenTypedData = z84.object({
|
|
2808
|
+
type: z84.literal("BorderWidth"),
|
|
2620
2809
|
data: BorderWidthTokenData
|
|
2621
2810
|
});
|
|
2622
|
-
var BorderTypedData =
|
|
2623
|
-
type:
|
|
2811
|
+
var BorderTypedData = z84.object({
|
|
2812
|
+
type: z84.literal("Border"),
|
|
2624
2813
|
data: BorderTokenData
|
|
2625
2814
|
});
|
|
2626
|
-
var ProductCopyTypedData =
|
|
2627
|
-
type:
|
|
2815
|
+
var ProductCopyTypedData = z84.object({
|
|
2816
|
+
type: z84.literal("ProductCopy"),
|
|
2628
2817
|
data: ProductCopyTokenData
|
|
2629
2818
|
});
|
|
2630
|
-
var SizeTypedData =
|
|
2631
|
-
type:
|
|
2819
|
+
var SizeTypedData = z84.object({
|
|
2820
|
+
type: z84.literal("Size"),
|
|
2632
2821
|
data: SizeTokenData
|
|
2633
2822
|
});
|
|
2634
|
-
var SpaceTypedData =
|
|
2635
|
-
type:
|
|
2823
|
+
var SpaceTypedData = z84.object({
|
|
2824
|
+
type: z84.literal("Space"),
|
|
2636
2825
|
data: SpaceTokenData
|
|
2637
2826
|
});
|
|
2638
|
-
var VisibilityTypedData =
|
|
2639
|
-
type:
|
|
2827
|
+
var VisibilityTypedData = z84.object({
|
|
2828
|
+
type: z84.literal("Visibility"),
|
|
2640
2829
|
data: VisibilityTokenData
|
|
2641
2830
|
});
|
|
2642
|
-
var ZIndexTypedData =
|
|
2643
|
-
type:
|
|
2831
|
+
var ZIndexTypedData = z84.object({
|
|
2832
|
+
type: z84.literal("ZIndex"),
|
|
2644
2833
|
data: ZIndexTokenData
|
|
2645
2834
|
});
|
|
2646
|
-
var DurationTypedData =
|
|
2647
|
-
type:
|
|
2835
|
+
var DurationTypedData = z84.object({
|
|
2836
|
+
type: z84.literal("Duration"),
|
|
2648
2837
|
data: DurationTokenData
|
|
2649
2838
|
});
|
|
2650
|
-
var FontTypedData =
|
|
2651
|
-
type:
|
|
2652
|
-
data:
|
|
2839
|
+
var FontTypedData = z84.object({
|
|
2840
|
+
type: z84.literal("Font"),
|
|
2841
|
+
data: z84.record(z84.any())
|
|
2653
2842
|
});
|
|
2654
|
-
var DesignTokenTypedData =
|
|
2843
|
+
var DesignTokenTypedData = z84.discriminatedUnion("type", [
|
|
2655
2844
|
BlurTokenTypedData,
|
|
2656
2845
|
BorderRadiusTokenTypedData,
|
|
2657
2846
|
BorderWidthTokenTypedData,
|
|
@@ -2684,32 +2873,32 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
|
2684
2873
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
2685
2874
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
2686
2875
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
2687
|
-
|
|
2688
|
-
tokenPersistentId:
|
|
2876
|
+
z85.object({
|
|
2877
|
+
tokenPersistentId: z85.string(),
|
|
2689
2878
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
2690
2879
|
})
|
|
2691
2880
|
);
|
|
2692
|
-
var ThemeElementData =
|
|
2693
|
-
value:
|
|
2694
|
-
overrides:
|
|
2881
|
+
var ThemeElementData = z85.object({
|
|
2882
|
+
value: z85.object({
|
|
2883
|
+
overrides: z85.array(ThemeOverride)
|
|
2695
2884
|
})
|
|
2696
2885
|
});
|
|
2697
|
-
var ThemeOriginPart =
|
|
2698
|
-
var ThemeOriginObject =
|
|
2699
|
-
id:
|
|
2700
|
-
name:
|
|
2886
|
+
var ThemeOriginPart = z85.object({});
|
|
2887
|
+
var ThemeOriginObject = z85.object({
|
|
2888
|
+
id: z85.string(),
|
|
2889
|
+
name: z85.string()
|
|
2701
2890
|
});
|
|
2702
|
-
var ThemeOriginSource =
|
|
2703
|
-
sourceId:
|
|
2704
|
-
sourceObjects:
|
|
2891
|
+
var ThemeOriginSource = z85.object({
|
|
2892
|
+
sourceId: z85.string(),
|
|
2893
|
+
sourceObjects: z85.array(ThemeOriginObject)
|
|
2705
2894
|
});
|
|
2706
|
-
var ThemeOrigin =
|
|
2707
|
-
sources:
|
|
2895
|
+
var ThemeOrigin = z85.object({
|
|
2896
|
+
sources: z85.array(ThemeOriginSource)
|
|
2708
2897
|
});
|
|
2709
2898
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
2710
2899
|
origin: ThemeOrigin.optional(),
|
|
2711
|
-
overrides:
|
|
2712
|
-
codeName:
|
|
2900
|
+
overrides: z85.array(ThemeOverride),
|
|
2901
|
+
codeName: z85.string()
|
|
2713
2902
|
});
|
|
2714
2903
|
function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
2715
2904
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
@@ -2765,17 +2954,17 @@ var PageBlockDefinitionsMap = class {
|
|
|
2765
2954
|
return `${defId}.${propId}`;
|
|
2766
2955
|
}
|
|
2767
2956
|
};
|
|
2768
|
-
var FileStructureStats =
|
|
2957
|
+
var FileStructureStats = z86.object({
|
|
2769
2958
|
frames: zeroNumberByDefault(),
|
|
2770
2959
|
components: zeroNumberByDefault(),
|
|
2771
2960
|
componentSets: zeroNumberByDefault()
|
|
2772
2961
|
});
|
|
2773
2962
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
2774
2963
|
// Backward compatibility
|
|
2775
|
-
|
|
2964
|
+
z86.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
2776
2965
|
);
|
|
2777
|
-
var SourceImportSummaryByTokenType =
|
|
2778
|
-
var SourceImportTokenSummary =
|
|
2966
|
+
var SourceImportSummaryByTokenType = z86.record(SourceImportSummaryByTokenTypeKey, z86.number());
|
|
2967
|
+
var SourceImportTokenSummary = z86.object({
|
|
2779
2968
|
tokensCreated: zeroNumberByDefault(),
|
|
2780
2969
|
tokensUpdated: zeroNumberByDefault(),
|
|
2781
2970
|
tokensDeleted: zeroNumberByDefault(),
|
|
@@ -2783,7 +2972,7 @@ var SourceImportTokenSummary = z83.object({
|
|
|
2783
2972
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
2784
2973
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
2785
2974
|
});
|
|
2786
|
-
var SourceImportComponentSummary =
|
|
2975
|
+
var SourceImportComponentSummary = z86.object({
|
|
2787
2976
|
componentsCreated: zeroNumberByDefault(),
|
|
2788
2977
|
componentsUpdated: zeroNumberByDefault(),
|
|
2789
2978
|
componentsDeleted: zeroNumberByDefault(),
|
|
@@ -2791,156 +2980,156 @@ var SourceImportComponentSummary = z83.object({
|
|
|
2791
2980
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
2792
2981
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
2793
2982
|
});
|
|
2794
|
-
var SourceImportFrameSummary =
|
|
2983
|
+
var SourceImportFrameSummary = z86.object({
|
|
2795
2984
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
2796
|
-
invalidReferencesCount: nullishToOptional(
|
|
2797
|
-
});
|
|
2798
|
-
var SourceImportSummary =
|
|
2799
|
-
sourceId: nullishToOptional(
|
|
2800
|
-
brandId: nullishToOptional(
|
|
2801
|
-
versionId: nullishToOptional(
|
|
2802
|
-
error: nullishToOptional(
|
|
2803
|
-
isFailed:
|
|
2804
|
-
warnings:
|
|
2985
|
+
invalidReferencesCount: nullishToOptional(z86.number().optional())
|
|
2986
|
+
});
|
|
2987
|
+
var SourceImportSummary = z86.object({
|
|
2988
|
+
sourceId: nullishToOptional(z86.string()),
|
|
2989
|
+
brandId: nullishToOptional(z86.string()),
|
|
2990
|
+
versionId: nullishToOptional(z86.string()),
|
|
2991
|
+
error: nullishToOptional(z86.any()),
|
|
2992
|
+
isFailed: z86.boolean(),
|
|
2993
|
+
warnings: z86.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
2805
2994
|
...SourceImportTokenSummary.shape,
|
|
2806
2995
|
...SourceImportComponentSummary.shape,
|
|
2807
2996
|
...FileStructureStats.shape
|
|
2808
2997
|
});
|
|
2809
2998
|
function zeroNumberByDefault() {
|
|
2810
|
-
return
|
|
2999
|
+
return z86.number().nullish().transform((v) => v ?? 0);
|
|
2811
3000
|
}
|
|
2812
|
-
var DataSourceRemoteType =
|
|
2813
|
-
var DataSourceUploadRemoteSource =
|
|
2814
|
-
var DataSourceFigmaState =
|
|
2815
|
-
var DataSourceAutoImportMode =
|
|
2816
|
-
var DataSourceStats =
|
|
3001
|
+
var DataSourceRemoteType = z87.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
3002
|
+
var DataSourceUploadRemoteSource = z87.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
3003
|
+
var DataSourceFigmaState = z87.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
3004
|
+
var DataSourceAutoImportMode = z87.enum(["Never", "Hourly"]);
|
|
3005
|
+
var DataSourceStats = z87.object({
|
|
2817
3006
|
tokens: zeroNumberByDefault2(),
|
|
2818
3007
|
components: zeroNumberByDefault2(),
|
|
2819
3008
|
assets: zeroNumberByDefault2(),
|
|
2820
3009
|
frames: zeroNumberByDefault2()
|
|
2821
3010
|
});
|
|
2822
|
-
var DataSourceFigmaFileData =
|
|
2823
|
-
lastUpdatedAt:
|
|
2824
|
-
});
|
|
2825
|
-
var DataSourceFigmaFileVersionData = z84.object({
|
|
2826
|
-
id: z84.string(),
|
|
2827
|
-
label: z84.string().optional(),
|
|
2828
|
-
description: z84.string().optional(),
|
|
2829
|
-
createdAt: z84.coerce.date()
|
|
2830
|
-
});
|
|
2831
|
-
var DataSourceFigmaScope = z84.object({
|
|
2832
|
-
assets: z84.boolean(),
|
|
2833
|
-
components: z84.boolean(),
|
|
2834
|
-
documentationFrames: z84.boolean(),
|
|
2835
|
-
tokens: z84.boolean(),
|
|
2836
|
-
themePersistentId: z84.string().optional(),
|
|
2837
|
-
isUnpublishedContentFallbackEnabled: z84.boolean()
|
|
3011
|
+
var DataSourceFigmaFileData = z87.object({
|
|
3012
|
+
lastUpdatedAt: z87.coerce.date()
|
|
2838
3013
|
});
|
|
2839
|
-
var
|
|
3014
|
+
var DataSourceFigmaFileVersionData = z87.object({
|
|
3015
|
+
id: z87.string(),
|
|
3016
|
+
label: z87.string().optional(),
|
|
3017
|
+
description: z87.string().optional(),
|
|
3018
|
+
createdAt: z87.coerce.date()
|
|
3019
|
+
});
|
|
3020
|
+
var DataSourceFigmaScope = z87.object({
|
|
3021
|
+
assets: z87.boolean(),
|
|
3022
|
+
components: z87.boolean(),
|
|
3023
|
+
documentationFrames: z87.boolean(),
|
|
3024
|
+
tokens: z87.boolean(),
|
|
3025
|
+
themePersistentId: z87.string().optional(),
|
|
3026
|
+
isUnpublishedContentFallbackEnabled: z87.boolean()
|
|
3027
|
+
});
|
|
3028
|
+
var DataSourceFigmaImportMetadata = z87.object({
|
|
2840
3029
|
fileData: DataSourceFigmaFileData.optional(),
|
|
2841
3030
|
importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
|
|
2842
3031
|
});
|
|
2843
|
-
var DataSourceFigmaRemote =
|
|
2844
|
-
type:
|
|
2845
|
-
fileId:
|
|
2846
|
-
preferredCredentialId:
|
|
2847
|
-
ownerId:
|
|
3032
|
+
var DataSourceFigmaRemote = z87.object({
|
|
3033
|
+
type: z87.literal(DataSourceRemoteType.Enum.Figma),
|
|
3034
|
+
fileId: z87.string(),
|
|
3035
|
+
preferredCredentialId: z87.string().optional(),
|
|
3036
|
+
ownerId: z87.string(),
|
|
2848
3037
|
// todo remove or keep to reference who created data source
|
|
2849
|
-
ownerName:
|
|
3038
|
+
ownerName: z87.string(),
|
|
2850
3039
|
// todo probably remove
|
|
2851
3040
|
scope: DataSourceFigmaScope,
|
|
2852
3041
|
state: DataSourceFigmaState,
|
|
2853
|
-
requiresSync:
|
|
3042
|
+
requiresSync: z87.boolean().optional().transform((v) => v ?? false),
|
|
2854
3043
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
2855
|
-
downloadChunkSize:
|
|
2856
|
-
figmaRenderChunkSize:
|
|
2857
|
-
maxFileDepth:
|
|
3044
|
+
downloadChunkSize: z87.number().optional(),
|
|
3045
|
+
figmaRenderChunkSize: z87.number().optional(),
|
|
3046
|
+
maxFileDepth: z87.number().optional()
|
|
2858
3047
|
});
|
|
2859
|
-
var DataSourceTokenStudioRemote =
|
|
2860
|
-
type:
|
|
3048
|
+
var DataSourceTokenStudioRemote = z87.object({
|
|
3049
|
+
type: z87.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
2861
3050
|
});
|
|
2862
|
-
var DataSourceUploadImportMetadata =
|
|
2863
|
-
var DataSourceUploadRemote =
|
|
2864
|
-
type:
|
|
2865
|
-
remoteId:
|
|
3051
|
+
var DataSourceUploadImportMetadata = z87.record(z87.any());
|
|
3052
|
+
var DataSourceUploadRemote = z87.object({
|
|
3053
|
+
type: z87.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
3054
|
+
remoteId: z87.string(),
|
|
2866
3055
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
2867
3056
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
2868
3057
|
warnings: nullishToOptional(ImportWarning.array())
|
|
2869
3058
|
});
|
|
2870
|
-
var DataSourceRemote =
|
|
3059
|
+
var DataSourceRemote = z87.discriminatedUnion("type", [
|
|
2871
3060
|
DataSourceFigmaRemote,
|
|
2872
3061
|
DataSourceUploadRemote,
|
|
2873
3062
|
DataSourceTokenStudioRemote
|
|
2874
3063
|
]);
|
|
2875
|
-
var DataSource =
|
|
2876
|
-
id:
|
|
2877
|
-
name:
|
|
2878
|
-
thumbnailUrl:
|
|
2879
|
-
createdAt:
|
|
2880
|
-
lastImportedAt:
|
|
3064
|
+
var DataSource = z87.object({
|
|
3065
|
+
id: z87.string(),
|
|
3066
|
+
name: z87.string(),
|
|
3067
|
+
thumbnailUrl: z87.string().optional(),
|
|
3068
|
+
createdAt: z87.coerce.date().optional(),
|
|
3069
|
+
lastImportedAt: z87.coerce.date().optional(),
|
|
2881
3070
|
lastImportSummary: SourceImportSummary.optional(),
|
|
2882
|
-
designSystemId:
|
|
2883
|
-
brandPersistentId:
|
|
3071
|
+
designSystemId: z87.string(),
|
|
3072
|
+
brandPersistentId: z87.string(),
|
|
2884
3073
|
autoImportMode: DataSourceAutoImportMode,
|
|
2885
3074
|
stats: DataSourceStats,
|
|
2886
3075
|
remote: DataSourceRemote,
|
|
2887
|
-
sortOrder:
|
|
3076
|
+
sortOrder: z87.number()
|
|
2888
3077
|
});
|
|
2889
|
-
var DataSourceVersion =
|
|
2890
|
-
id:
|
|
2891
|
-
createdAt:
|
|
2892
|
-
label:
|
|
2893
|
-
description:
|
|
3078
|
+
var DataSourceVersion = z87.object({
|
|
3079
|
+
id: z87.string(),
|
|
3080
|
+
createdAt: z87.coerce.date(),
|
|
3081
|
+
label: z87.string().nullish(),
|
|
3082
|
+
description: z87.string().nullish()
|
|
2894
3083
|
});
|
|
2895
3084
|
function zeroNumberByDefault2() {
|
|
2896
|
-
return
|
|
3085
|
+
return z87.number().nullish().transform((v) => v ?? 0);
|
|
2897
3086
|
}
|
|
2898
|
-
var ImportJobState =
|
|
2899
|
-
var ImportJobOperation =
|
|
3087
|
+
var ImportJobState = z88.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
|
|
3088
|
+
var ImportJobOperation = z88.enum(["Check", "Import"]);
|
|
2900
3089
|
var ImportJob = Entity.extend({
|
|
2901
|
-
designSystemId:
|
|
2902
|
-
designSystemVersionId:
|
|
2903
|
-
sourceIds:
|
|
3090
|
+
designSystemId: z88.string(),
|
|
3091
|
+
designSystemVersionId: z88.string(),
|
|
3092
|
+
sourceIds: z88.array(z88.string()),
|
|
2904
3093
|
state: ImportJobState,
|
|
2905
|
-
createdByUserId:
|
|
2906
|
-
importContextId:
|
|
2907
|
-
error:
|
|
3094
|
+
createdByUserId: z88.string().optional(),
|
|
3095
|
+
importContextId: z88.string(),
|
|
3096
|
+
error: z88.string().optional(),
|
|
2908
3097
|
sourceType: DataSourceRemoteType,
|
|
2909
|
-
importContextCleanedUp:
|
|
3098
|
+
importContextCleanedUp: z88.boolean()
|
|
2910
3099
|
});
|
|
2911
|
-
var ImportFunctionInput =
|
|
2912
|
-
importJobId:
|
|
2913
|
-
importContextId:
|
|
2914
|
-
designSystemId:
|
|
3100
|
+
var ImportFunctionInput = z89.object({
|
|
3101
|
+
importJobId: z89.string(),
|
|
3102
|
+
importContextId: z89.string(),
|
|
3103
|
+
designSystemId: z89.string().optional()
|
|
2915
3104
|
});
|
|
2916
|
-
var ImportedFigmaSourceData =
|
|
2917
|
-
sourceId:
|
|
3105
|
+
var ImportedFigmaSourceData = z89.object({
|
|
3106
|
+
sourceId: z89.string(),
|
|
2918
3107
|
figmaRemote: DataSourceFigmaRemote
|
|
2919
3108
|
});
|
|
2920
|
-
var FigmaImportBaseContext =
|
|
2921
|
-
designSystemId:
|
|
3109
|
+
var FigmaImportBaseContext = z89.object({
|
|
3110
|
+
designSystemId: z89.string(),
|
|
2922
3111
|
/**
|
|
2923
3112
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
2924
3113
|
* mentioned in the `importedSourceDataBySourceId`
|
|
2925
3114
|
*
|
|
2926
3115
|
* fileId: file data
|
|
2927
3116
|
*/
|
|
2928
|
-
fileAccessByFileId:
|
|
3117
|
+
fileAccessByFileId: z89.record(FigmaFileAccessData),
|
|
2929
3118
|
/**
|
|
2930
3119
|
* Figma source data for which import was requested
|
|
2931
3120
|
*
|
|
2932
3121
|
* sourceId: source data
|
|
2933
3122
|
*/
|
|
2934
|
-
importedSourceDataBySourceId:
|
|
3123
|
+
importedSourceDataBySourceId: z89.record(ImportedFigmaSourceData),
|
|
2935
3124
|
/**
|
|
2936
3125
|
* Array of warnings that will be written into the import result summary at the end
|
|
2937
3126
|
* of import job execution and displayed by the client.
|
|
2938
3127
|
*/
|
|
2939
|
-
importWarnings:
|
|
3128
|
+
importWarnings: z89.record(ImportWarning.array()).default({})
|
|
2940
3129
|
});
|
|
2941
3130
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
2942
|
-
sourcesWithMissingAccess:
|
|
2943
|
-
shadowOpacityOptional:
|
|
3131
|
+
sourcesWithMissingAccess: z89.array(z89.string()).default([]),
|
|
3132
|
+
shadowOpacityOptional: z89.boolean().default(false)
|
|
2944
3133
|
});
|
|
2945
3134
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
2946
3135
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -2952,67 +3141,67 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
2952
3141
|
*
|
|
2953
3142
|
* File id -> file download scope
|
|
2954
3143
|
*/
|
|
2955
|
-
fileDownloadScopesByFileId:
|
|
3144
|
+
fileDownloadScopesByFileId: z89.record(FigmaFileDownloadScope),
|
|
2956
3145
|
/**
|
|
2957
3146
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
2958
3147
|
* imported again.
|
|
2959
3148
|
*
|
|
2960
3149
|
* Source id -> import metadata
|
|
2961
3150
|
*/
|
|
2962
|
-
changedImportedSourceDataBySourceId:
|
|
3151
|
+
changedImportedSourceDataBySourceId: z89.record(ChangedImportedFigmaSourceData)
|
|
2963
3152
|
});
|
|
2964
|
-
var ImportModelBase =
|
|
2965
|
-
id:
|
|
3153
|
+
var ImportModelBase = z90.object({
|
|
3154
|
+
id: z90.string(),
|
|
2966
3155
|
meta: ObjectMeta,
|
|
2967
3156
|
origin: DesignElementOrigin,
|
|
2968
|
-
brandPersistentId:
|
|
2969
|
-
sortOrder:
|
|
3157
|
+
brandPersistentId: z90.string(),
|
|
3158
|
+
sortOrder: z90.number()
|
|
2970
3159
|
});
|
|
2971
3160
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
2972
3161
|
brandPersistentId: true,
|
|
2973
3162
|
origin: true,
|
|
2974
3163
|
sortOrder: true
|
|
2975
3164
|
}).extend({
|
|
2976
|
-
originId:
|
|
2977
|
-
originMetadata:
|
|
3165
|
+
originId: z90.string(),
|
|
3166
|
+
originMetadata: z90.record(z90.any())
|
|
2978
3167
|
});
|
|
2979
|
-
var ImageImportModelType =
|
|
2980
|
-
var ImageImportModelBase =
|
|
3168
|
+
var ImageImportModelType = z91.enum(["Url", "FigmaRender"]);
|
|
3169
|
+
var ImageImportModelBase = z91.object({
|
|
2981
3170
|
scope: AssetScope
|
|
2982
3171
|
});
|
|
2983
3172
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
2984
|
-
type:
|
|
2985
|
-
url:
|
|
2986
|
-
originKey:
|
|
2987
|
-
extension:
|
|
3173
|
+
type: z91.literal(ImageImportModelType.enum.Url),
|
|
3174
|
+
url: z91.string(),
|
|
3175
|
+
originKey: z91.string(),
|
|
3176
|
+
extension: z91.string()
|
|
2988
3177
|
});
|
|
2989
|
-
var FigmaRenderFormat =
|
|
3178
|
+
var FigmaRenderFormat = z91.enum(["Svg", "Png", "Pdf"]);
|
|
2990
3179
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
2991
|
-
type:
|
|
2992
|
-
fileId:
|
|
2993
|
-
fileVersionId:
|
|
2994
|
-
nodeId:
|
|
2995
|
-
originKey:
|
|
3180
|
+
type: z91.literal(ImageImportModelType.enum.FigmaRender),
|
|
3181
|
+
fileId: z91.string(),
|
|
3182
|
+
fileVersionId: z91.string().optional(),
|
|
3183
|
+
nodeId: z91.string(),
|
|
3184
|
+
originKey: z91.string()
|
|
2996
3185
|
});
|
|
2997
3186
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
2998
|
-
format:
|
|
2999
|
-
scale:
|
|
3187
|
+
format: z91.literal(FigmaRenderFormat.enum.Png),
|
|
3188
|
+
scale: z91.number()
|
|
3000
3189
|
});
|
|
3001
3190
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
3002
|
-
format:
|
|
3191
|
+
format: z91.literal(FigmaRenderFormat.enum.Svg)
|
|
3003
3192
|
});
|
|
3004
|
-
var FigmaRenderImportModel =
|
|
3193
|
+
var FigmaRenderImportModel = z91.discriminatedUnion("format", [
|
|
3005
3194
|
FigmaPngRenderImportModel,
|
|
3006
3195
|
FigmaSvgRenderImportModel
|
|
3007
3196
|
]);
|
|
3008
|
-
var ImageImportModel =
|
|
3009
|
-
var FigmaComponentImportModelPart =
|
|
3197
|
+
var ImageImportModel = z91.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
3198
|
+
var FigmaComponentImportModelPart = z92.object({
|
|
3010
3199
|
thumbnail: ImageImportModel,
|
|
3011
|
-
parentComponentId:
|
|
3200
|
+
parentComponentId: z92.string().optional(),
|
|
3012
3201
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
|
|
3013
3202
|
});
|
|
3014
3203
|
var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3015
|
-
isAsset:
|
|
3204
|
+
isAsset: z92.boolean(),
|
|
3016
3205
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
3017
3206
|
origin: FigmaComponentOrigin
|
|
3018
3207
|
});
|
|
@@ -3023,20 +3212,20 @@ var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportMode
|
|
|
3023
3212
|
svg: FigmaSvgRenderImportModel,
|
|
3024
3213
|
originMetadata: FigmaComponentOriginPart
|
|
3025
3214
|
});
|
|
3026
|
-
var DataSourceImportModel =
|
|
3027
|
-
id:
|
|
3028
|
-
fileName:
|
|
3029
|
-
thumbnailUrl:
|
|
3215
|
+
var DataSourceImportModel = z93.object({
|
|
3216
|
+
id: z93.string(),
|
|
3217
|
+
fileName: z93.string().optional(),
|
|
3218
|
+
thumbnailUrl: z93.string().optional()
|
|
3030
3219
|
});
|
|
3031
3220
|
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
3032
3221
|
png: FigmaPngRenderImportModel,
|
|
3033
3222
|
svg: FigmaSvgRenderImportModel
|
|
3034
3223
|
});
|
|
3035
3224
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
3036
|
-
children:
|
|
3225
|
+
children: z94.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3037
3226
|
});
|
|
3038
|
-
var FigmaFileStructureImportModelPart =
|
|
3039
|
-
data:
|
|
3227
|
+
var FigmaFileStructureImportModelPart = z94.object({
|
|
3228
|
+
data: z94.object({
|
|
3040
3229
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
3041
3230
|
assetsInFile: FigmaFileStructureStatistics
|
|
3042
3231
|
})
|
|
@@ -3047,48 +3236,48 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
3047
3236
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
3048
3237
|
FigmaFileStructureImportModelPart.shape
|
|
3049
3238
|
).extend({
|
|
3050
|
-
fileVersionId:
|
|
3239
|
+
fileVersionId: z94.string()
|
|
3051
3240
|
});
|
|
3052
3241
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
3053
|
-
|
|
3054
|
-
id:
|
|
3242
|
+
z95.object({
|
|
3243
|
+
id: z95.string(),
|
|
3055
3244
|
meta: ObjectMeta
|
|
3056
3245
|
})
|
|
3057
3246
|
);
|
|
3058
3247
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
3059
|
-
|
|
3248
|
+
z95.object({
|
|
3060
3249
|
origin: ThemeOverrideOrigin
|
|
3061
3250
|
})
|
|
3062
3251
|
);
|
|
3063
3252
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
3064
|
-
|
|
3065
|
-
originId:
|
|
3253
|
+
z95.object({
|
|
3254
|
+
originId: z95.string(),
|
|
3066
3255
|
originMetadata: ThemeOverrideOriginPart
|
|
3067
3256
|
})
|
|
3068
3257
|
);
|
|
3069
|
-
var ThemeImportModel =
|
|
3258
|
+
var ThemeImportModel = z95.object({
|
|
3070
3259
|
meta: ObjectMeta,
|
|
3071
|
-
brandPersistentId:
|
|
3260
|
+
brandPersistentId: z95.string(),
|
|
3072
3261
|
originSource: ThemeOriginSource,
|
|
3073
|
-
overrides:
|
|
3074
|
-
sortOrder:
|
|
3262
|
+
overrides: z95.array(ThemeOverrideImportModel),
|
|
3263
|
+
sortOrder: z95.number()
|
|
3075
3264
|
});
|
|
3076
|
-
var ThemeImportModelInput =
|
|
3265
|
+
var ThemeImportModelInput = z95.object({
|
|
3077
3266
|
meta: ObjectMeta,
|
|
3078
|
-
originObjects:
|
|
3079
|
-
overrides:
|
|
3267
|
+
originObjects: z95.array(ThemeOriginObject),
|
|
3268
|
+
overrides: z95.array(ThemeOverrideImportModelInput)
|
|
3080
3269
|
});
|
|
3081
|
-
var ThemeUpdateImportModel =
|
|
3082
|
-
themePersistentId:
|
|
3083
|
-
overrides:
|
|
3270
|
+
var ThemeUpdateImportModel = z95.object({
|
|
3271
|
+
themePersistentId: z95.string(),
|
|
3272
|
+
overrides: z95.array(ThemeOverrideImportModel)
|
|
3084
3273
|
});
|
|
3085
|
-
var ThemeUpdateImportModelInput =
|
|
3086
|
-
themePersistentId:
|
|
3087
|
-
overrides:
|
|
3274
|
+
var ThemeUpdateImportModelInput = z95.object({
|
|
3275
|
+
themePersistentId: z95.string(),
|
|
3276
|
+
overrides: z95.array(ThemeOverrideImportModelInput)
|
|
3088
3277
|
});
|
|
3089
|
-
var DesignTokenImportModelPart =
|
|
3090
|
-
collection:
|
|
3091
|
-
codeSyntax:
|
|
3278
|
+
var DesignTokenImportModelPart = z96.object({
|
|
3279
|
+
collection: z96.string().optional(),
|
|
3280
|
+
codeSyntax: z96.record(z96.coerce.string()).optional()
|
|
3092
3281
|
});
|
|
3093
3282
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
3094
3283
|
origin: DesignTokenOrigin
|
|
@@ -3098,232 +3287,47 @@ var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImp
|
|
|
3098
3287
|
});
|
|
3099
3288
|
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
3100
3289
|
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
3101
|
-
var ImportModelInputCollection =
|
|
3290
|
+
var ImportModelInputCollection = z97.object({
|
|
3102
3291
|
source: DataSourceImportModel,
|
|
3103
|
-
tokens:
|
|
3104
|
-
components:
|
|
3105
|
-
assets:
|
|
3106
|
-
themeUpdates:
|
|
3107
|
-
themes:
|
|
3292
|
+
tokens: z97.array(DesignTokenImportModelInput).default([]),
|
|
3293
|
+
components: z97.array(FigmaComponentImportModelInput).default([]),
|
|
3294
|
+
assets: z97.array(AssetImportModelInput).default([]),
|
|
3295
|
+
themeUpdates: z97.array(ThemeUpdateImportModelInput).default([]),
|
|
3296
|
+
themes: z97.array(ThemeImportModelInput).default([]),
|
|
3108
3297
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
3109
3298
|
});
|
|
3110
|
-
var ImportModelCollection =
|
|
3111
|
-
sources:
|
|
3112
|
-
tokens:
|
|
3113
|
-
components:
|
|
3114
|
-
themeUpdates:
|
|
3115
|
-
themes:
|
|
3116
|
-
figmaFileStructures:
|
|
3117
|
-
});
|
|
3118
|
-
var AssetRenderConfiguration =
|
|
3119
|
-
prefix:
|
|
3120
|
-
suffix:
|
|
3121
|
-
scale:
|
|
3299
|
+
var ImportModelCollection = z97.object({
|
|
3300
|
+
sources: z97.array(DataSourceImportModel),
|
|
3301
|
+
tokens: z97.array(DesignTokenImportModel).default([]),
|
|
3302
|
+
components: z97.array(FigmaComponentImportModel).default([]),
|
|
3303
|
+
themeUpdates: z97.array(ThemeUpdateImportModel).default([]),
|
|
3304
|
+
themes: z97.array(ThemeImportModel).default([]),
|
|
3305
|
+
figmaFileStructures: z97.array(FigmaFileStructureImportModel)
|
|
3306
|
+
});
|
|
3307
|
+
var AssetRenderConfiguration = z98.object({
|
|
3308
|
+
prefix: z98.string().optional(),
|
|
3309
|
+
suffix: z98.string().optional(),
|
|
3310
|
+
scale: z98.number(),
|
|
3122
3311
|
format: FigmaRenderFormat
|
|
3123
3312
|
});
|
|
3124
|
-
var RenderedAssetFile =
|
|
3125
|
-
assetPersistentId:
|
|
3126
|
-
assetName:
|
|
3127
|
-
renderedImageFileName:
|
|
3128
|
-
renderedImageUrl:
|
|
3313
|
+
var RenderedAssetFile = z98.object({
|
|
3314
|
+
assetPersistentId: z98.string(),
|
|
3315
|
+
assetName: z98.string(),
|
|
3316
|
+
renderedImageFileName: z98.string(),
|
|
3317
|
+
renderedImageUrl: z98.string(),
|
|
3129
3318
|
settings: AssetRenderConfiguration
|
|
3130
3319
|
});
|
|
3131
|
-
var DocumentationPageApprovalState =
|
|
3132
|
-
var DocumentationPageApproval =
|
|
3133
|
-
id: z97.string(),
|
|
3134
|
-
approvalState: DocumentationPageApprovalState,
|
|
3135
|
-
persistentId: z97.string(),
|
|
3136
|
-
pageId: z97.string(),
|
|
3137
|
-
pagePersistentId: z97.string(),
|
|
3138
|
-
updatedByUserId: z97.string(),
|
|
3139
|
-
designSystemVersionId: z97.string(),
|
|
3140
|
-
updatedAt: z97.coerce.date(),
|
|
3141
|
-
createdAt: z97.coerce.date()
|
|
3142
|
-
});
|
|
3143
|
-
var PageBlockDefinitionAppearance = z98.object({
|
|
3144
|
-
isBordered: z98.boolean().optional(),
|
|
3145
|
-
hasBackground: z98.boolean().optional(),
|
|
3146
|
-
isEditorPresentationDifferent: z98.boolean().optional(),
|
|
3147
|
-
showBlockHeaderInEditor: z98.boolean().optional()
|
|
3148
|
-
});
|
|
3149
|
-
var PageBlockDefinitionLayoutType = z99.enum(["Column", "Row"]);
|
|
3150
|
-
var PageBlockDefinitionLayoutGap = z99.enum(["Small", "Medium", "Large", "None"]);
|
|
3151
|
-
var PageBlockDefinitionLayoutAlign = z99.enum(["Start", "Center", "End"]);
|
|
3152
|
-
var PageBlockDefinitionLayoutResizing = z99.enum(["Fill", "Hug"]);
|
|
3153
|
-
var PageBlockDefinitionLayoutBase = z99.object({
|
|
3154
|
-
type: PageBlockDefinitionLayoutType,
|
|
3155
|
-
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
3156
|
-
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
3157
|
-
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
3158
|
-
});
|
|
3159
|
-
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
3160
|
-
children: z99.lazy(() => z99.array(PageBlockDefinitionLayout.or(z99.string())))
|
|
3161
|
-
});
|
|
3162
|
-
var PageBlockDefinitionVariant = z99.object({
|
|
3163
|
-
id: z99.string(),
|
|
3164
|
-
name: z99.string(),
|
|
3165
|
-
image: z99.string().optional(),
|
|
3166
|
-
description: z99.string().optional(),
|
|
3167
|
-
documentationLink: z99.string().optional(),
|
|
3168
|
-
layout: PageBlockDefinitionLayout,
|
|
3169
|
-
maxColumns: z99.number().optional(),
|
|
3170
|
-
defaultColumns: z99.number().optional(),
|
|
3171
|
-
appearance: PageBlockDefinitionAppearance.optional()
|
|
3172
|
-
});
|
|
3173
|
-
var PageBlockDefinitionPropertyType = z100.enum([
|
|
3174
|
-
"RichText",
|
|
3175
|
-
"MultiRichText",
|
|
3176
|
-
"RichTextEditor",
|
|
3177
|
-
"Text",
|
|
3178
|
-
"Boolean",
|
|
3179
|
-
"Number",
|
|
3180
|
-
"SingleSelect",
|
|
3181
|
-
"MultiSelect",
|
|
3182
|
-
"Image",
|
|
3183
|
-
"Token",
|
|
3184
|
-
"TokenType",
|
|
3185
|
-
"TokenProperty",
|
|
3186
|
-
"Component",
|
|
3187
|
-
"ComponentProperty",
|
|
3188
|
-
"Asset",
|
|
3189
|
-
"AssetProperty",
|
|
3190
|
-
"FigmaNode",
|
|
3191
|
-
"EmbedURL",
|
|
3192
|
-
"URL",
|
|
3193
|
-
"Markdown",
|
|
3194
|
-
"Code",
|
|
3195
|
-
"CodeSandbox",
|
|
3196
|
-
"Table",
|
|
3197
|
-
"Divider",
|
|
3198
|
-
"Storybook",
|
|
3199
|
-
"Color",
|
|
3200
|
-
"FigmaComponent"
|
|
3201
|
-
]);
|
|
3202
|
-
var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
|
|
3203
|
-
"Title1",
|
|
3204
|
-
"Title2",
|
|
3205
|
-
"Title3",
|
|
3206
|
-
"Title4",
|
|
3207
|
-
"Title5",
|
|
3208
|
-
"Quote",
|
|
3209
|
-
"Callout",
|
|
3210
|
-
"Default"
|
|
3211
|
-
]);
|
|
3212
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
|
|
3213
|
-
var PageBlockDefinitionRichTextEditorPropertyStyle = z100.enum([
|
|
3214
|
-
"OL",
|
|
3215
|
-
"UL",
|
|
3216
|
-
"Bold",
|
|
3217
|
-
"Italic",
|
|
3218
|
-
"Link",
|
|
3219
|
-
"Strikethrough",
|
|
3220
|
-
"InlineCode"
|
|
3221
|
-
]);
|
|
3222
|
-
var PageBlockDefinitionTextPropertyStyle = z100.enum([
|
|
3223
|
-
"Title1",
|
|
3224
|
-
"Title2",
|
|
3225
|
-
"Title3",
|
|
3226
|
-
"Title4",
|
|
3227
|
-
"Title5",
|
|
3228
|
-
"Default",
|
|
3229
|
-
"DefaultBold",
|
|
3230
|
-
"DefaultSemibold",
|
|
3231
|
-
"Small",
|
|
3232
|
-
"SmallBold",
|
|
3233
|
-
"SmallSemibold",
|
|
3234
|
-
"Custom"
|
|
3235
|
-
]);
|
|
3236
|
-
var PageBlockDefinitionTextPropertyColor = z100.enum(["Neutral", "NeutralFaded"]);
|
|
3237
|
-
var PageBlockDefinitionBooleanPropertyStyle = z100.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
3238
|
-
var PageBlockDefinitionSingleSelectPropertyStyle = z100.enum([
|
|
3239
|
-
"SegmentedControl",
|
|
3240
|
-
"ToggleButton",
|
|
3241
|
-
"Select",
|
|
3242
|
-
"Checkbox"
|
|
3243
|
-
]);
|
|
3244
|
-
var PageBlockDefinitionSingleSelectPropertyColor = z100.enum([
|
|
3245
|
-
"Green",
|
|
3246
|
-
"Red",
|
|
3247
|
-
"Yellow",
|
|
3248
|
-
"Blue",
|
|
3249
|
-
"Purple",
|
|
3250
|
-
"Orange",
|
|
3251
|
-
"Pink",
|
|
3252
|
-
"Teal",
|
|
3253
|
-
"Brown",
|
|
3254
|
-
"Grey",
|
|
3255
|
-
"LightGrey",
|
|
3256
|
-
"Cyan",
|
|
3257
|
-
"Fuchsia"
|
|
3258
|
-
]);
|
|
3259
|
-
var IconSet = z100.enum(["CheckCircle", "CrossCircle", "Alert"]);
|
|
3260
|
-
var PageBlockDefinitionMultiSelectPropertyStyle = z100.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
3261
|
-
var PageBlockDefinitionImageAspectRatio = z100.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
3262
|
-
var PageBlockDefinitionImageWidth = z100.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
3263
|
-
var PageBlockDefinitionSelectChoice = z100.object({
|
|
3264
|
-
value: z100.string(),
|
|
3265
|
-
name: z100.string(),
|
|
3266
|
-
icon: IconSet.optional(),
|
|
3267
|
-
customIconUrl: z100.string().optional(),
|
|
3268
|
-
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
3269
|
-
});
|
|
3270
|
-
var PageBlockDefinitionUntypedPropertyOptions = z100.record(z100.any());
|
|
3271
|
-
var PageBlockDefinitionRichTextOptions = z100.object({
|
|
3272
|
-
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
3273
|
-
});
|
|
3274
|
-
var PageBlockDefinitionMutiRichTextOptions = z100.object({
|
|
3275
|
-
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
3276
|
-
});
|
|
3277
|
-
var PageBlockDefinitionRichTextEditorOptions = z100.object({
|
|
3278
|
-
placeholder: z100.string().optional(),
|
|
3279
|
-
allowedInlineStyles: z100.array(PageBlockDefinitionRichTextEditorPropertyStyle).optional()
|
|
3280
|
-
});
|
|
3281
|
-
var PageBlockDefinitionTextOptions = z100.object({
|
|
3282
|
-
placeholder: z100.string().optional(),
|
|
3283
|
-
defaultValue: z100.string().optional(),
|
|
3284
|
-
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
3285
|
-
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
3286
|
-
allowLineBreaks: z100.boolean().optional()
|
|
3287
|
-
});
|
|
3288
|
-
var PageBlockDefinitionSelectOptions = z100.object({
|
|
3289
|
-
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
3290
|
-
defaultChoice: z100.string(),
|
|
3291
|
-
choices: z100.array(PageBlockDefinitionSelectChoice)
|
|
3292
|
-
});
|
|
3293
|
-
var PageBlockDefinitionImageOptions = z100.object({
|
|
3294
|
-
width: PageBlockDefinitionImageWidth.optional(),
|
|
3295
|
-
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
3296
|
-
allowCaption: z100.boolean().optional(),
|
|
3297
|
-
recommendation: z100.string().optional()
|
|
3298
|
-
});
|
|
3299
|
-
var PageBlockDefinitionBooleanOptions = z100.object({
|
|
3300
|
-
defaultvalue: z100.boolean().optional(),
|
|
3301
|
-
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
3302
|
-
});
|
|
3303
|
-
var PageBlockDefinitionNumberOptions = z100.object({
|
|
3304
|
-
defaultValue: z100.number(),
|
|
3305
|
-
min: z100.number().optional(),
|
|
3306
|
-
max: z100.number().optional(),
|
|
3307
|
-
step: z100.number().optional(),
|
|
3308
|
-
placeholder: z100.string().optional()
|
|
3309
|
-
});
|
|
3310
|
-
var PageBlockDefinitionComponentOptions = z100.object({
|
|
3311
|
-
renderLayoutAs: z100.enum(["List", "Table"]).optional(),
|
|
3312
|
-
allowPropertySelection: z100.boolean().optional()
|
|
3313
|
-
});
|
|
3314
|
-
var PageBlockDefinitionProperty = z100.object({
|
|
3320
|
+
var DocumentationPageApprovalState = z99.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
|
|
3321
|
+
var DocumentationPageApproval = z100.object({
|
|
3315
3322
|
id: z100.string(),
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
appearance: PageBlockDefinitionAppearance.optional(),
|
|
3325
|
-
variants: z100.array(PageBlockDefinitionVariant),
|
|
3326
|
-
defaultVariantKey: z100.string()
|
|
3323
|
+
approvalState: DocumentationPageApprovalState,
|
|
3324
|
+
persistentId: z100.string(),
|
|
3325
|
+
pageId: z100.string(),
|
|
3326
|
+
pagePersistentId: z100.string(),
|
|
3327
|
+
updatedByUserId: z100.string(),
|
|
3328
|
+
designSystemVersionId: z100.string(),
|
|
3329
|
+
updatedAt: z100.coerce.date(),
|
|
3330
|
+
createdAt: z100.coerce.date()
|
|
3327
3331
|
});
|
|
3328
3332
|
var PageBlockCategory = z101.enum([
|
|
3329
3333
|
"Text",
|
|
@@ -5635,7 +5639,8 @@ var DTOFigmaComponent = z201.object({
|
|
|
5635
5639
|
meta: ObjectMeta,
|
|
5636
5640
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5637
5641
|
parentComponentPersistentId: z201.string().optional(),
|
|
5638
|
-
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional()
|
|
5642
|
+
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
5643
|
+
childrenPersistentIds: z201.string().array().optional()
|
|
5639
5644
|
});
|
|
5640
5645
|
var DTOFigmaComponentListResponse = z201.object({
|
|
5641
5646
|
components: DTOFigmaComponent.array()
|
|
@@ -6944,9 +6949,154 @@ var DocumentationPageEditorModel = z227.object({
|
|
|
6944
6949
|
blocks: z227.array(DocumentationPageContentItem)
|
|
6945
6950
|
});
|
|
6946
6951
|
|
|
6947
|
-
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
6952
|
+
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
6948
6953
|
import { Schema } from "prosemirror-model";
|
|
6949
|
-
var
|
|
6954
|
+
var pmSchemaJson = {
|
|
6955
|
+
topNode: "doc",
|
|
6956
|
+
nodes: {
|
|
6957
|
+
paragraph: {
|
|
6958
|
+
content: "inline*",
|
|
6959
|
+
group: "block",
|
|
6960
|
+
parseDOM: [
|
|
6961
|
+
{
|
|
6962
|
+
tag: "p"
|
|
6963
|
+
}
|
|
6964
|
+
]
|
|
6965
|
+
},
|
|
6966
|
+
listItem: {
|
|
6967
|
+
content: "paragraph",
|
|
6968
|
+
defining: true,
|
|
6969
|
+
parseDOM: [
|
|
6970
|
+
{
|
|
6971
|
+
tag: "li"
|
|
6972
|
+
}
|
|
6973
|
+
]
|
|
6974
|
+
},
|
|
6975
|
+
doc: {
|
|
6976
|
+
content: "block+"
|
|
6977
|
+
},
|
|
6978
|
+
hardBreak: {
|
|
6979
|
+
group: "inline",
|
|
6980
|
+
inline: true,
|
|
6981
|
+
selectable: false,
|
|
6982
|
+
parseDOM: [
|
|
6983
|
+
{
|
|
6984
|
+
tag: "br"
|
|
6985
|
+
}
|
|
6986
|
+
]
|
|
6987
|
+
},
|
|
6988
|
+
text: {
|
|
6989
|
+
group: "inline"
|
|
6990
|
+
},
|
|
6991
|
+
bulletList: {
|
|
6992
|
+
content: "listItem+",
|
|
6993
|
+
group: "block list",
|
|
6994
|
+
parseDOM: [
|
|
6995
|
+
{
|
|
6996
|
+
tag: "ul"
|
|
6997
|
+
}
|
|
6998
|
+
]
|
|
6999
|
+
},
|
|
7000
|
+
orderedList: {
|
|
7001
|
+
content: "listItem+",
|
|
7002
|
+
group: "block list",
|
|
7003
|
+
attrs: {
|
|
7004
|
+
start: {
|
|
7005
|
+
default: 1
|
|
7006
|
+
},
|
|
7007
|
+
type: {
|
|
7008
|
+
default: null
|
|
7009
|
+
}
|
|
7010
|
+
},
|
|
7011
|
+
parseDOM: [
|
|
7012
|
+
{
|
|
7013
|
+
tag: "ol"
|
|
7014
|
+
}
|
|
7015
|
+
]
|
|
7016
|
+
}
|
|
7017
|
+
},
|
|
7018
|
+
marks: {
|
|
7019
|
+
link: {
|
|
7020
|
+
inclusive: false,
|
|
7021
|
+
attrs: {
|
|
7022
|
+
href: {
|
|
7023
|
+
default: null
|
|
7024
|
+
},
|
|
7025
|
+
target: {
|
|
7026
|
+
default: "_blank"
|
|
7027
|
+
},
|
|
7028
|
+
rel: {
|
|
7029
|
+
default: "noopener noreferrer nofollow"
|
|
7030
|
+
},
|
|
7031
|
+
class: {
|
|
7032
|
+
default: "tiptap-link"
|
|
7033
|
+
}
|
|
7034
|
+
},
|
|
7035
|
+
parseDOM: [
|
|
7036
|
+
{
|
|
7037
|
+
tag: "a[href]"
|
|
7038
|
+
}
|
|
7039
|
+
]
|
|
7040
|
+
},
|
|
7041
|
+
bold: {
|
|
7042
|
+
parseDOM: [
|
|
7043
|
+
{
|
|
7044
|
+
tag: "strong"
|
|
7045
|
+
},
|
|
7046
|
+
{
|
|
7047
|
+
tag: "b"
|
|
7048
|
+
},
|
|
7049
|
+
{
|
|
7050
|
+
style: "font-weight"
|
|
7051
|
+
}
|
|
7052
|
+
]
|
|
7053
|
+
},
|
|
7054
|
+
italic: {
|
|
7055
|
+
parseDOM: [
|
|
7056
|
+
{
|
|
7057
|
+
tag: "em"
|
|
7058
|
+
},
|
|
7059
|
+
{
|
|
7060
|
+
tag: "i"
|
|
7061
|
+
},
|
|
7062
|
+
{
|
|
7063
|
+
style: "font-style=italic"
|
|
7064
|
+
}
|
|
7065
|
+
]
|
|
7066
|
+
},
|
|
7067
|
+
strike: {
|
|
7068
|
+
parseDOM: [
|
|
7069
|
+
{
|
|
7070
|
+
tag: "s"
|
|
7071
|
+
},
|
|
7072
|
+
{
|
|
7073
|
+
tag: "del"
|
|
7074
|
+
},
|
|
7075
|
+
{
|
|
7076
|
+
tag: "strike"
|
|
7077
|
+
},
|
|
7078
|
+
{
|
|
7079
|
+
style: "text-decoration",
|
|
7080
|
+
consuming: false
|
|
7081
|
+
}
|
|
7082
|
+
]
|
|
7083
|
+
},
|
|
7084
|
+
code: {
|
|
7085
|
+
excludes: "bold code italic strike link",
|
|
7086
|
+
code: true,
|
|
7087
|
+
parseDOM: [
|
|
7088
|
+
{
|
|
7089
|
+
tag: "code"
|
|
7090
|
+
}
|
|
7091
|
+
]
|
|
7092
|
+
}
|
|
7093
|
+
}
|
|
7094
|
+
};
|
|
7095
|
+
var innerEditorProsemirrorSchema = new Schema(pmSchemaJson);
|
|
7096
|
+
|
|
7097
|
+
// src/yjs/docs-editor/prosemirror/main-editor-schema.ts
|
|
7098
|
+
import { Schema as Schema2 } from "prosemirror-model";
|
|
7099
|
+
var pmSchemaJson2 = {
|
|
6950
7100
|
topNode: "doc",
|
|
6951
7101
|
nodes: {
|
|
6952
7102
|
paragraph: {
|
|
@@ -7519,7 +7669,7 @@ var newSchema = {
|
|
|
7519
7669
|
}
|
|
7520
7670
|
}
|
|
7521
7671
|
};
|
|
7522
|
-
var
|
|
7672
|
+
var mainEditorProsemirrorSchema = new Schema2(pmSchemaJson2);
|
|
7523
7673
|
|
|
7524
7674
|
// src/yjs/docs-editor/blocks-to-prosemirror.ts
|
|
7525
7675
|
import { prosemirrorJSONToYXmlFragment } from "y-prosemirror";
|
|
@@ -7688,7 +7838,7 @@ function pageToYDoc(doc, page, definitions) {
|
|
|
7688
7838
|
}
|
|
7689
7839
|
function pageToYXmlFragment(page, definitions, fragment) {
|
|
7690
7840
|
const doc = pageToProsemirrorDoc(page, definitions);
|
|
7691
|
-
return prosemirrorJSONToYXmlFragment(
|
|
7841
|
+
return prosemirrorJSONToYXmlFragment(mainEditorProsemirrorSchema, doc, fragment);
|
|
7692
7842
|
}
|
|
7693
7843
|
function pageToProsemirrorDoc(page, definitions) {
|
|
7694
7844
|
const definitionsMap = mapByUnique(definitions, (d) => d.id);
|
|
@@ -7718,6 +7868,50 @@ function blockToProsemirrorNode(block, definition) {
|
|
|
7718
7868
|
const nodes = internalBlocksToProsemirrorNodes([block], definitionsMap);
|
|
7719
7869
|
return nodes[0] ?? null;
|
|
7720
7870
|
}
|
|
7871
|
+
function richTextPropertyValueToProsemirror(richTextEditorValue) {
|
|
7872
|
+
return {
|
|
7873
|
+
type: "doc",
|
|
7874
|
+
content: richTextEditorValue.value.map((node) => {
|
|
7875
|
+
return serializeRichTextEditorNode(node);
|
|
7876
|
+
})
|
|
7877
|
+
};
|
|
7878
|
+
}
|
|
7879
|
+
function serializeRichTextEditorNode(node) {
|
|
7880
|
+
switch (node.type) {
|
|
7881
|
+
case "Paragraph":
|
|
7882
|
+
return serializeRichTextEditorParagraphNode(node);
|
|
7883
|
+
case "List":
|
|
7884
|
+
return serializeRichTextEditorListNode(node);
|
|
7885
|
+
}
|
|
7886
|
+
}
|
|
7887
|
+
function serializeRichTextEditorParagraphNode(node) {
|
|
7888
|
+
const content = serializeRichText(node.value);
|
|
7889
|
+
return {
|
|
7890
|
+
type: "paragraph",
|
|
7891
|
+
...content.length && { content }
|
|
7892
|
+
};
|
|
7893
|
+
}
|
|
7894
|
+
function serializeRichTextEditorListNode(node) {
|
|
7895
|
+
const type = node.listType === "OL" ? "orderedList" : "bulletList";
|
|
7896
|
+
const attrs = node.listType === "OL" ? { start: 1 } : void 0;
|
|
7897
|
+
const richTexts = node.value.length ? node.value : [{ spans: [] }];
|
|
7898
|
+
return {
|
|
7899
|
+
type,
|
|
7900
|
+
...attrs && { attrs },
|
|
7901
|
+
content: richTexts.map((n) => {
|
|
7902
|
+
const content = serializeRichText(n);
|
|
7903
|
+
return {
|
|
7904
|
+
type: "listItem",
|
|
7905
|
+
content: [
|
|
7906
|
+
{
|
|
7907
|
+
type: "paragraph",
|
|
7908
|
+
...content.length && { content }
|
|
7909
|
+
}
|
|
7910
|
+
]
|
|
7911
|
+
};
|
|
7912
|
+
})
|
|
7913
|
+
};
|
|
7914
|
+
}
|
|
7721
7915
|
function internalSectionToProsemirrorNode(section, definitionsMap) {
|
|
7722
7916
|
return {
|
|
7723
7917
|
type: "tabsSection",
|
|
@@ -10631,6 +10825,43 @@ function prosemirrorDocToPage(prosemirrorDoc, definitions) {
|
|
|
10631
10825
|
function shallowProsemirrorNodeToBlock(prosemirrorNode, definition) {
|
|
10632
10826
|
return prosemirrorNodeAndDefinitionToBlock(prosemirrorNode, definition, /* @__PURE__ */ new Map([[definition.id, definition]]), 0)[0] ?? null;
|
|
10633
10827
|
}
|
|
10828
|
+
function prosemirrorDocToRichTextPropertyValue(prosemirrorNode) {
|
|
10829
|
+
return {
|
|
10830
|
+
value: (prosemirrorNode.content ?? []).map((n) => prosemirrorNodeToRichTextEditorPropertyNode(n)).filter(nonNullFilter)
|
|
10831
|
+
};
|
|
10832
|
+
}
|
|
10833
|
+
function prosemirrorNodeToRichTextEditorPropertyNode(prosemirrorNode) {
|
|
10834
|
+
switch (prosemirrorNode.type) {
|
|
10835
|
+
case "paragraph":
|
|
10836
|
+
return parseAsParagraphNode(prosemirrorNode);
|
|
10837
|
+
case "orderedList":
|
|
10838
|
+
case "bulletList":
|
|
10839
|
+
return parseAsListNode(prosemirrorNode);
|
|
10840
|
+
default:
|
|
10841
|
+
return null;
|
|
10842
|
+
}
|
|
10843
|
+
}
|
|
10844
|
+
function parseAsParagraphNode(prosemirrorNode) {
|
|
10845
|
+
return {
|
|
10846
|
+
type: "Paragraph",
|
|
10847
|
+
value: parseRichText(prosemirrorNode.content ?? [])
|
|
10848
|
+
};
|
|
10849
|
+
}
|
|
10850
|
+
function parseAsListNode(prosemirrorNode) {
|
|
10851
|
+
return {
|
|
10852
|
+
type: "List",
|
|
10853
|
+
listType: prosemirrorNode.type === "orderedList" ? "OL" : "UL",
|
|
10854
|
+
value: (prosemirrorNode.content ?? []).map(parseAsListNodeItem).filter(nonNullFilter)
|
|
10855
|
+
};
|
|
10856
|
+
}
|
|
10857
|
+
function parseAsListNodeItem(prosemirrorNode) {
|
|
10858
|
+
if (prosemirrorNode.type !== "listItem")
|
|
10859
|
+
return null;
|
|
10860
|
+
const firstChild = prosemirrorNode.content?.[0];
|
|
10861
|
+
if (!firstChild || firstChild.type !== "paragraph")
|
|
10862
|
+
return null;
|
|
10863
|
+
return parseRichText(firstChild.content ?? []);
|
|
10864
|
+
}
|
|
10634
10865
|
function prosemirrorNodeToSection(prosemirrorNode, definitions) {
|
|
10635
10866
|
const definitionsById = mapByUnique2(definitions, (d) => d.id);
|
|
10636
10867
|
return internalProsemirrorNodeToSection(prosemirrorNode, definitionsById);
|
|
@@ -11511,17 +11742,20 @@ export {
|
|
|
11511
11742
|
gitOrganizationToDto,
|
|
11512
11743
|
gitProjectToDto,
|
|
11513
11744
|
gitRepositoryToDto,
|
|
11745
|
+
innerEditorProsemirrorSchema,
|
|
11514
11746
|
integrationCredentialToDto,
|
|
11515
11747
|
integrationToDto,
|
|
11516
11748
|
itemConfigurationToYjs,
|
|
11749
|
+
mainEditorProsemirrorSchema,
|
|
11517
11750
|
pageToProsemirrorDoc,
|
|
11518
11751
|
pageToYDoc,
|
|
11519
11752
|
pageToYXmlFragment,
|
|
11520
11753
|
pipelineToDto,
|
|
11521
|
-
pmSchema,
|
|
11522
11754
|
prosemirrorDocToPage,
|
|
11755
|
+
prosemirrorDocToRichTextPropertyValue,
|
|
11523
11756
|
prosemirrorNodeToSection,
|
|
11524
11757
|
prosemirrorNodesToBlocks,
|
|
11758
|
+
richTextPropertyValueToProsemirror,
|
|
11525
11759
|
serializeAsCustomBlock,
|
|
11526
11760
|
shallowProsemirrorNodeToBlock,
|
|
11527
11761
|
validateDesignSystemVersion,
|