@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.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 z95 } from "zod";
33
+ import { z as z98 } from "zod";
34
34
  import { z as z22 } from "zod";
35
- import { z as z86 } from "zod";
36
- import { z as z84 } from "zod";
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 z83 } from "zod";
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 z94 } from "zod";
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 PageBlockLinkType = z41.enum(["DocumentationItem", "PageHeading", "Url"]);
1924
- var PageBlockImageType = z41.enum(["Resource", "FigmaNode"]);
1925
- var PageBlockImageAlignment = z41.enum(["Left", "Center", "Stretch"]);
1926
- var PageBlockTableCellAlignment = z41.enum(["Left", "Center", "Right"]);
1927
- var PageBlockPreviewContainerSize = z41.enum(["Centered", "NaturalHeight"]);
1928
- var PageBlockThemeDisplayMode = z41.enum(["Split", "Override"]);
1929
- var PageBlockImageResourceReference = z41.object({
1930
- resourceId: z41.string(),
1931
- url: z41.string()
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 PageBlockResourceFrameNodeReference = z41.object({
1934
- sourceId: z41.string(),
1935
- frameReferenceId: z41.string()
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 PageBlockImageReference = z41.object({
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 = z41.object({
1943
- value: z41.string(),
1944
- referencedTokenId: z41.string().optional()
2123
+ var PageBlockColorV2 = z44.object({
2124
+ value: z44.string(),
2125
+ referencedTokenId: z44.string().optional()
1945
2126
  });
1946
- var PageBlockAssetEntityMeta = z41.object({
1947
- title: z41.string().optional(),
1948
- description: z41.string().optional(),
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 = z41.object({
1952
- title: z41.string().optional(),
1953
- description: z41.string().optional(),
2132
+ var PageBlockFigmaComponentEntityMeta = z44.object({
2133
+ title: z44.string().optional(),
2134
+ description: z44.string().optional(),
1954
2135
  backgroundColor: PageBlockColorV2.optional(),
1955
- selectedComponentProperties: z41.array(z41.string()).optional()
2136
+ selectedComponentProperties: z44.array(z44.string()).optional()
1956
2137
  });
1957
- var PageBlockFigmaNodeEntityMeta = z41.object({
1958
- title: z41.string().optional(),
1959
- description: z41.string().optional(),
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 = z41.object({
2143
+ var PageBlockAppearanceV2 = z44.object({
1963
2144
  itemBackgroundColor: PageBlockColorV2.optional(),
1964
- numberOfColumns: z41.number().optional()
2145
+ numberOfColumns: z44.number().optional()
1965
2146
  });
1966
- var PageBlockItemUntypedValue = z41.object({
1967
- value: z41.any()
1968
- }).and(z41.record(z41.any()));
1969
- var PageBlockLinkV2 = z41.object({
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: z41.string().optional(),
1972
- pageHeadingId: z41.string().optional(),
1973
- url: z41.string().optional(),
1974
- openInNewTab: z41.boolean().optional()
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 = z41.object({
1977
- id: z41.string(),
2157
+ var PageBlockItemV2 = z44.object({
2158
+ id: z44.string(),
1978
2159
  linksTo: PageBlockLinkV2.optional(),
1979
- props: z41.record(PageBlockItemUntypedValue)
2160
+ props: z44.record(PageBlockItemUntypedValue)
1980
2161
  });
1981
- var PageBlockDataV2 = z41.object({
1982
- packageId: z41.string(),
1983
- variantId: z41.string().optional(),
1984
- indentLevel: z41.number(),
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: z41.array(PageBlockItemV2)
2167
+ items: z44.array(PageBlockItemV2)
1987
2168
  });
1988
- var PageBlockItemAssetValue = z41.object({
1989
- selectedPropertyIds: z41.array(z41.string()).optional(),
1990
- showSearch: z41.boolean().optional(),
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: z41.array(
1994
- z41.object({
1995
- entityId: z41.string(),
1996
- entityType: z41.enum(["Asset", "AssetGroup"]),
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 = z41.object({
2002
- value: z41.array(z41.string()).default([])
2182
+ var PageBlockItemAssetPropertyValue = z44.object({
2183
+ value: z44.array(z44.string()).default([])
2003
2184
  });
2004
- var PageBlockItemFigmaComponentValue = z41.object({
2005
- showComponentName: z41.boolean().optional(),
2006
- showComponentDescription: z41.boolean().optional(),
2007
- showPropertyList: z41.boolean().optional(),
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: z41.array(
2011
- z41.object({
2012
- entityId: z41.string(),
2013
- entityType: z41.enum(["FigmaComponent"]),
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 = z41.object({
2019
- value: z41.boolean()
2199
+ var PageBlockItemBooleanValue = z44.object({
2200
+ value: z44.boolean()
2020
2201
  });
2021
- var PageBlockItemCodeValue = z41.object({
2202
+ var PageBlockItemCodeValue = z44.object({
2022
2203
  format: PageBlockCodeLanguage.optional(),
2023
- caption: z41.string().optional(),
2024
- value: z41.string()
2025
- });
2026
- var PageBlockItemSandboxValue = z41.object({
2027
- showCode: z41.boolean().optional(),
2028
- showControls: z41.boolean().optional(),
2029
- backgroundColor: z41.string().optional(),
2030
- alignPreview: z41.enum(["Left", "Center"]).optional(),
2031
- previewHeight: z41.number().optional(),
2032
- value: z41.string()
2033
- });
2034
- var PageBlockItemColorValue = z41.record(z41.any());
2035
- var PageBlockItemComponentValue = z41.object({
2036
- selectedPropertyIds: z41.array(z41.string()).optional(),
2037
- selectedBrandId: z41.string().optional(),
2038
- value: z41.array(
2039
- z41.object({
2040
- entityId: z41.string(),
2041
- entityType: z41.enum(["Component", "ComponentGroup"])
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 = z41.object({
2046
- value: z41.string()
2047
- });
2048
- var PageBlockItemDividerValue = z41.object({});
2049
- var PageBlockItemEmbedValue = z41.object({
2050
- value: z41.string().optional(),
2051
- caption: z41.string().optional(),
2052
- height: z41.number().optional(),
2053
- openGraph: z41.object({
2054
- title: z41.string().optional(),
2055
- description: z41.string().optional(),
2056
- imageUrl: z41.string().optional()
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 = z41.object({
2060
- showSearch: z41.boolean().optional(),
2240
+ var PageBlockItemFigmaNodeValue = z44.object({
2241
+ showSearch: z44.boolean().optional(),
2061
2242
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
2062
2243
  backgroundColor: PageBlockColorV2.optional(),
2063
- showFrameDetails: z41.boolean().optional(),
2064
- value: z41.array(
2065
- z41.object({
2066
- entityId: z41.string(),
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 = z41.object({
2072
- alt: z41.string().optional(),
2073
- caption: z41.string().optional(),
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 = z41.object({
2078
- value: z41.string()
2258
+ var PageBlockItemMarkdownValue = z44.object({
2259
+ value: z44.string()
2079
2260
  });
2080
- var PageBlockItemMultiRichTextValue = z41.object({
2261
+ var PageBlockItemMultiRichTextValue = z44.object({
2081
2262
  value: PageBlockText.array()
2082
2263
  });
2083
- var PageBlockItemMultiSelectValue = z41.object({
2084
- value: z41.array(z41.string()).default([])
2264
+ var PageBlockItemMultiSelectValue = z44.object({
2265
+ value: z44.array(z44.string()).default([])
2085
2266
  });
2086
- var PageBlockItemNumberValue = z41.object({
2087
- value: z41.number()
2267
+ var PageBlockItemNumberValue = z44.object({
2268
+ value: z44.number()
2088
2269
  });
2089
- var PageBlockItemRichTextValue = z41.object({
2270
+ var PageBlockItemRichTextValue = z44.object({
2090
2271
  value: PageBlockText,
2091
2272
  calloutType: PageBlockCalloutType.optional()
2092
2273
  });
2093
- var PageBlockItemRichTextEditorValue = z41.object({
2094
- value: z41.any()
2274
+ var PageBlockItemSingleSelectValue = z44.object({
2275
+ value: z44.string()
2095
2276
  });
2096
- var PageBlockItemSingleSelectValue = z41.object({
2097
- value: z41.string()
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 PageBlockItemStorybookValue = z41.object({
2100
- caption: z41.string().optional(),
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 PageBlockItemTextValue = z41.object({
2106
- value: z41.string()
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: z41.array(
2113
- z41.object({
2114
- entityId: z41.string(),
2115
- entityType: z41.enum(["Token", "TokenGroup"]),
2116
- entityMeta: z41.object({
2117
- showNestedGroups: z41.boolean().optional()
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 = z41.object({
2123
- selectedPropertyIds: z41.array(z41.string()).optional(),
2124
- selectedThemeIds: z41.array(z41.string()).optional(),
2125
- value: z41.array(z41.string()).default([])
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 = z41.object({
2128
- value: z41.array(DesignTokenType).default([])
2305
+ var PageBlockItemTokenTypeValue = z44.object({
2306
+ value: z44.array(DesignTokenType).default([])
2129
2307
  });
2130
- var PageBlockItemUrlValue = z41.object({
2131
- value: z41.string()
2308
+ var PageBlockItemUrlValue = z44.object({
2309
+ value: z44.string()
2132
2310
  });
2133
- var PageBlockItemTableRichTextNode = z41.object({
2134
- type: z41.literal("RichText"),
2135
- id: z41.string(),
2311
+ var PageBlockItemRichTextEditorParagraphNode = z44.object({
2312
+ type: z44.literal("Paragraph"),
2136
2313
  value: PageBlockItemRichTextValue.shape.value
2137
2314
  });
2138
- var PageBlockItemTableMultiRichTextNode = z41.object({
2139
- type: z41.literal("MultiRichText"),
2315
+ var PageBlockItemRichTextEditorListNode = z44.object({
2316
+ type: z44.literal("List"),
2317
+ listType: PageBlockDefinitionMultiRichTextPropertyStyle,
2140
2318
  value: PageBlockItemMultiRichTextValue.shape.value
2141
2319
  });
2142
- var PageBlockItemTableImageNode = z41.object({
2143
- type: z41.literal("Image"),
2144
- id: z41.string(),
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 = z41.discriminatedUnion("type", [
2338
+ var PageBlockItemTableNode = z44.discriminatedUnion("type", [
2149
2339
  PageBlockItemTableRichTextNode,
2150
- // PageBlockItemTableMultiRichTextNode,
2151
2340
  PageBlockItemTableImageNode
2152
2341
  ]);
2153
- var PageBlockItemTableCell = z41.object({
2154
- id: z41.string(),
2155
- nodes: z41.array(PageBlockItemTableNode),
2156
- columnWidth: z41.number().optional(),
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 = z41.object({
2160
- cells: z41.array(PageBlockItemTableCell)
2348
+ var PageBlockItemTableRow = z44.object({
2349
+ cells: z44.array(PageBlockItemTableCell)
2161
2350
  });
2162
- var PageBlockItemTableValue = z41.object({
2163
- highlightHeaderColumn: z41.boolean().optional(),
2164
- highlightHeaderRow: z41.boolean().optional(),
2165
- showBorder: z41.boolean().optional(),
2166
- value: z41.array(PageBlockItemTableRow).default([])
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 = z42.enum(["Left", "Center"]);
2169
- var DocumentationItemHeaderImageScaleTypeSchema = z42.enum(["AspectFill", "AspectFit"]);
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 = z43.object({
2173
- description: z43.string(),
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: z43.boolean(),
2180
- showCoverText: z43.boolean(),
2181
- minHeight: z43.number().nullish()
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 = z44.object({
2191
- showSidebar: z44.boolean(),
2192
- isPrivate: z44.boolean().optional(),
2193
- isHidden: z44.boolean().optional(),
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 = z45.object({
2197
- blocks: z45.array(PageBlockV1),
2385
+ var DocumentationPageDataV1 = z48.object({
2386
+ blocks: z48.array(PageBlockV1),
2198
2387
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
2199
2388
  });
2200
- var DocumentationItemHeaderV2 = z46.object({
2201
- description: z46.string(),
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: z46.boolean(),
2208
- showCoverText: z46.boolean(),
2209
- minHeight: z46.number().nullish()
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 = z47.object({
2219
- showSidebar: z47.boolean(),
2220
- isPrivate: z47.boolean().optional(),
2221
- isHidden: z47.boolean().optional(),
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 = z48.object({
2419
+ var DocumentationPageDataV2 = z51.object({
2231
2420
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
2232
2421
  });
2233
- var DesignElementOrigin = z49.object({
2234
- id: z49.string(),
2235
- sourceId: z49.string(),
2236
- name: z49.string()
2422
+ var DesignElementOrigin = z52.object({
2423
+ id: z52.string(),
2424
+ sourceId: z52.string(),
2425
+ name: z52.string()
2237
2426
  });
2238
- var DesignElementBase = z49.object({
2239
- id: z49.string(),
2240
- persistentId: z49.string(),
2427
+ var DesignElementBase = z52.object({
2428
+ id: z52.string(),
2429
+ persistentId: z52.string(),
2241
2430
  meta: ObjectMeta,
2242
- designSystemVersionId: z49.string(),
2243
- createdAt: z49.coerce.date(),
2244
- updatedAt: z49.coerce.date()
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 = z49.object({
2250
- parentPersistentId: z49.string().optional(),
2251
- sortOrder: z49.number()
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: z49.string()
2444
+ parentPersistentId: z52.string()
2256
2445
  });
2257
- var DesignElementBrandedPart = z49.object({
2258
- brandPersistentId: z49.string()
2446
+ var DesignElementBrandedPart = z52.object({
2447
+ brandPersistentId: z52.string()
2259
2448
  });
2260
- var DesignElementSlugPart = z49.object({
2261
- slug: z49.string().optional(),
2262
- userSlug: z49.string().optional()
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 = z50.object({
2268
- id: z50.string(),
2269
- type: z50.literal("Block"),
2456
+ var PageBlockEditorModelV2 = z53.object({
2457
+ id: z53.string(),
2458
+ type: z53.literal("Block"),
2270
2459
  data: PageBlockDataV2
2271
2460
  });
2272
- var PageSectionTypeV2 = z51.enum(["Tabs"]);
2273
- var PageSectionColumnV2 = z51.object({
2274
- id: z51.string(),
2275
- blocks: z51.array(PageBlockEditorModelV2)
2276
- });
2277
- var PageSectionItemV2 = z51.object({
2278
- id: z51.string(),
2279
- title: z51.string(),
2280
- columns: z51.array(PageSectionColumnV2)
2281
- });
2282
- var PageSectionPaddingV2 = z51.object({
2283
- top: z51.number().optional(),
2284
- bottom: z51.number().optional(),
2285
- left: z51.number().optional(),
2286
- right: z51.number().optional()
2287
- });
2288
- var PageSectionAppearanceV2 = z51.object({
2289
- expandToEdges: z51.boolean(),
2290
- contentExpandToEdges: z51.boolean(),
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 = z51.object({
2296
- id: z51.string(),
2297
- type: z51.literal("Section"),
2298
- variantId: z51.string().optional(),
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: z51.array(PageSectionItemV2)
2490
+ items: z54.array(PageSectionItemV2)
2302
2491
  });
2303
- var DurationUnit = z52.enum(["Ms"]);
2304
- var DurationValue = z52.object({
2492
+ var DurationUnit = z55.enum(["Ms"]);
2493
+ var DurationValue = z55.object({
2305
2494
  unit: DurationUnit,
2306
- measure: z52.number()
2495
+ measure: z55.number()
2307
2496
  });
2308
2497
  var DurationTokenData = tokenAliasOrValue(DurationValue);
2309
- var FigmaFileStructureNodeType = z53.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
2310
- var FigmaFileStructureNodeBase = z53.object({
2311
- id: z53.string(),
2312
- name: z53.string(),
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: z53.string().optional()
2504
+ parentComponentSetId: z56.string().optional()
2316
2505
  });
2317
2506
  var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
2318
- children: z53.lazy(() => FigmaFileStructureNode.array())
2507
+ children: z56.lazy(() => FigmaFileStructureNode.array())
2319
2508
  });
2320
- var FigmaFileStructureStatistics = z53.object({
2321
- frames: z53.number().nullable().optional().transform((v) => v ?? 0),
2322
- components: z53.number().nullable().optional().transform((v) => v ?? 0),
2323
- componentSets: z53.number().nullable().optional().transform((v) => v ?? 0)
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 = z53.object({
2326
- value: z53.object({
2514
+ var FigmaFileStructureElementData = z56.object({
2515
+ value: z56.object({
2327
2516
  structure: FigmaFileStructureNode,
2328
2517
  assetsInFile: FigmaFileStructureStatistics
2329
2518
  })
2330
2519
  });
2331
- var FigmaNodeRenderFormat = z54.enum(["Png", "Svg"]);
2332
- var FigmaNodeReferenceData = z54.object({
2333
- structureElementId: z54.string(),
2334
- nodeId: z54.string(),
2335
- fileId: z54.string().optional(),
2336
- valid: z54.boolean(),
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: z54.string().optional(),
2340
- assetScale: z54.number().optional(),
2341
- assetWidth: z54.number().optional(),
2342
- assetHeight: z54.number().optional(),
2343
- assetUrl: z54.string().optional(),
2344
- assetOriginKey: z54.string().optional()
2345
- });
2346
- var FigmaNodeReferenceElementData = z54.object({
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 = z55.string();
2538
+ var FontFamilyValue = z58.string();
2350
2539
  var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
2351
- var FontSizeUnit = z56.enum(["Pixels", "Rem", "Percent"]);
2352
- var FontSizeValue = z56.object({
2540
+ var FontSizeUnit = z59.enum(["Pixels", "Rem", "Percent"]);
2541
+ var FontSizeValue = z59.object({
2353
2542
  unit: FontSizeUnit,
2354
- measure: z56.number()
2543
+ measure: z59.number()
2355
2544
  });
2356
2545
  var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
2357
- var FontWeightValue = z57.string();
2546
+ var FontWeightValue = z60.string();
2358
2547
  var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
2359
- var GradientType = z58.enum(["Linear", "Radial", "Angular"]);
2360
- var GradientStop = z58.object({
2361
- position: z58.number(),
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 = z58.object({
2553
+ var GradientLayerValue = z61.object({
2365
2554
  from: Point2D,
2366
2555
  to: Point2D,
2367
2556
  type: GradientType,
2368
- aspectRatio: nullishToOptional(z58.number()),
2557
+ aspectRatio: nullishToOptional(z61.number()),
2369
2558
  // z.number(),
2370
- stops: z58.array(GradientStop).min(2)
2559
+ stops: z61.array(GradientStop).min(2)
2371
2560
  });
2372
2561
  var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
2373
- var GradientTokenValue = z58.array(GradientLayerData);
2562
+ var GradientTokenValue = z61.array(GradientLayerData);
2374
2563
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
2375
- var DocumentationGroupBehavior = z59.enum(["Group", "Tabs"]);
2376
- var ElementGroupDataV1 = z59.object({
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 = z59.object({
2569
+ var ElementGroupDataV2 = z62.object({
2381
2570
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
2382
2571
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
2383
2572
  });
2384
- var LetterSpacingUnit = z60.enum(["Pixels", "Rem", "Percent"]);
2385
- var LetterSpacingValue = z60.object({
2573
+ var LetterSpacingUnit = z63.enum(["Pixels", "Rem", "Percent"]);
2574
+ var LetterSpacingValue = z63.object({
2386
2575
  unit: LetterSpacingUnit,
2387
- measure: z60.number()
2576
+ measure: z63.number()
2388
2577
  });
2389
2578
  var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
2390
- var LineHeightUnit = z61.enum(["Pixels", "Rem", "Percent", "Raw"]);
2391
- var LineHeightValue = z61.object({
2579
+ var LineHeightUnit = z64.enum(["Pixels", "Rem", "Percent", "Raw"]);
2580
+ var LineHeightValue = z64.object({
2392
2581
  unit: LineHeightUnit,
2393
- measure: z61.number()
2582
+ measure: z64.number()
2394
2583
  });
2395
2584
  var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
2396
- var ParagraphIndentUnit = z62.enum(["Pixels", "Rem", "Percent"]);
2397
- var ParagraphIndentValue = z62.object({
2585
+ var ParagraphIndentUnit = z65.enum(["Pixels", "Rem", "Percent"]);
2586
+ var ParagraphIndentValue = z65.object({
2398
2587
  unit: ParagraphIndentUnit,
2399
- measure: z62.number()
2588
+ measure: z65.number()
2400
2589
  });
2401
2590
  var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
2402
- var ParagraphSpacingUnit = z63.enum(["Pixels", "Rem", "Percent"]);
2403
- var ParagraphSpacingValue = z63.object({
2591
+ var ParagraphSpacingUnit = z66.enum(["Pixels", "Rem", "Percent"]);
2592
+ var ParagraphSpacingValue = z66.object({
2404
2593
  unit: ParagraphSpacingUnit,
2405
- measure: z63.number()
2594
+ measure: z66.number()
2406
2595
  });
2407
2596
  var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
2408
- var ProductCopyValue = z64.string();
2597
+ var ProductCopyValue = z67.string();
2409
2598
  var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
2410
2599
  var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
2411
- var SafeIdSchema = z65.string().refine(
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 = z66.enum(["Drop", "Inner"]);
2420
- var ShadowLayerValue = z66.object({
2608
+ var ShadowType = z69.enum(["Drop", "Inner"]);
2609
+ var ShadowLayerValue = z69.object({
2421
2610
  color: ColorTokenData,
2422
- x: z66.number(),
2423
- y: z66.number(),
2424
- radius: z66.number(),
2425
- spread: z66.number(),
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(z66.array(ShadowTokenDataBase));
2431
- var SizeUnit = z67.enum(["Pixels", "Rem", "Percent"]);
2432
- var SizeValue = z67.object({
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: z67.number()
2623
+ measure: z70.number()
2435
2624
  });
2436
2625
  var SizeTokenData = tokenAliasOrValue(SizeValue);
2437
- var SpaceUnit = z68.enum(["Pixels", "Rem", "Percent"]);
2438
- var SpaceValue = z68.object({
2626
+ var SpaceUnit = z71.enum(["Pixels", "Rem", "Percent"]);
2627
+ var SpaceValue = z71.object({
2439
2628
  unit: SpaceUnit,
2440
- measure: z68.number()
2629
+ measure: z71.number()
2441
2630
  });
2442
2631
  var SpaceTokenData = tokenAliasOrValue(SpaceValue);
2443
- var StringValue = z69.string();
2632
+ var StringValue = z72.string();
2444
2633
  var StringTokenData = tokenAliasOrValue(StringValue);
2445
- var TextCase = z70.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
2634
+ var TextCase = z73.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
2446
2635
  var TextCaseValue = TextCase;
2447
2636
  var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
2448
- var TextDecoration = z71.enum(["None", "Underline", "Strikethrough"]);
2637
+ var TextDecoration = z74.enum(["None", "Underline", "Strikethrough"]);
2449
2638
  var TextDecorationValue = TextDecoration;
2450
2639
  var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
2451
- var TypographyValue = z72.object({
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 = z73.enum(["Hidden", "Visible"]);
2652
+ var Visibility = z76.enum(["Hidden", "Visible"]);
2464
2653
  var VisibilityValue = Visibility;
2465
2654
  var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
2466
- var ZIndexUnit = z74.enum(["Raw"]);
2467
- var ZIndexValue = z74.object({
2655
+ var ZIndexUnit = z77.enum(["Raw"]);
2656
+ var ZIndexValue = z77.object({
2468
2657
  unit: ZIndexUnit,
2469
- measure: z74.number()
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: z75.string().optional(),
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: z76.string(),
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: z77.string(),
2677
+ shortPersistentId: z80.string(),
2489
2678
  data: DocumentationPageDataV2.extend({
2490
- oldBlocks: z77.array(PageBlockV1).optional()
2679
+ oldBlocks: z80.array(PageBlockV1).optional()
2491
2680
  })
2492
2681
  });
2493
- var FigmaComponentOriginPart = z78.object({
2494
- nodeId: z78.string().optional(),
2495
- width: z78.number().optional(),
2496
- height: z78.number().optional()
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 = z78.object({
2499
- assetId: z78.string(),
2500
- assetPath: z78.string()
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: z78.boolean(),
2509
- parentComponentPersistentId: nullishToOptional(z78.string())
2697
+ isAsset: z81.boolean(),
2698
+ parentComponentPersistentId: nullishToOptional(z81.string())
2510
2699
  });
2511
- var FigmaFileStructureOrigin = z79.object({
2512
- sourceId: z79.string(),
2513
- fileId: z79.string().optional()
2700
+ var FigmaFileStructureOrigin = z82.object({
2701
+ sourceId: z82.string(),
2702
+ fileId: z82.string().optional()
2514
2703
  });
2515
- var FigmaFileStructureData = z79.object({
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 = z80.object({
2524
- sourceId: z80.string(),
2525
- parentName: z80.string().optional()
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 = z81.object({
2532
- referenceOriginId: z81.string().optional(),
2533
- referenceOriginKey: z81.string().optional(),
2534
- referenceOriginName: z81.string().optional(),
2535
- referenceOriginRemote: z81.boolean().optional(),
2536
- referencePersistentId: z81.string().optional(),
2537
- referenceResolutionFailed: z81.boolean().optional(),
2538
- key: z81.string().optional()
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 = z81.object({
2551
- type: z81.literal("Blur"),
2739
+ var BlurTokenTypedData = z84.object({
2740
+ type: z84.literal("Blur"),
2552
2741
  data: BlurTokenData
2553
2742
  });
2554
- var ColorTokenTypedData = z81.object({
2555
- type: z81.literal("Color"),
2743
+ var ColorTokenTypedData = z84.object({
2744
+ type: z84.literal("Color"),
2556
2745
  data: ColorTokenData
2557
2746
  });
2558
- var GradientTokenTypedData = z81.object({
2559
- type: z81.literal("Gradient"),
2747
+ var GradientTokenTypedData = z84.object({
2748
+ type: z84.literal("Gradient"),
2560
2749
  data: GradientTokenData
2561
2750
  });
2562
- var OpacityTokenTypedData = z81.object({
2563
- type: z81.literal("Opacity"),
2751
+ var OpacityTokenTypedData = z84.object({
2752
+ type: z84.literal("Opacity"),
2564
2753
  data: OpacityTokenData
2565
2754
  });
2566
- var ShadowTokenTypedData = z81.object({
2567
- type: z81.literal("Shadow"),
2755
+ var ShadowTokenTypedData = z84.object({
2756
+ type: z84.literal("Shadow"),
2568
2757
  data: ShadowTokenData
2569
2758
  });
2570
- var TypographyTokenTypedData = z81.object({
2571
- type: z81.literal("Typography"),
2759
+ var TypographyTokenTypedData = z84.object({
2760
+ type: z84.literal("Typography"),
2572
2761
  data: TypographyTokenData
2573
2762
  });
2574
- var StringTokenTypedData = z81.object({
2575
- type: z81.literal("String"),
2763
+ var StringTokenTypedData = z84.object({
2764
+ type: z84.literal("String"),
2576
2765
  data: StringTokenData
2577
2766
  });
2578
- var DimensionTokenTypedData = z81.object({
2579
- type: z81.literal("Dimension"),
2767
+ var DimensionTokenTypedData = z84.object({
2768
+ type: z84.literal("Dimension"),
2580
2769
  data: DimensionTokenData
2581
2770
  });
2582
- var FontSizeTokenTypedData = z81.object({
2583
- type: z81.literal("FontSize"),
2771
+ var FontSizeTokenTypedData = z84.object({
2772
+ type: z84.literal("FontSize"),
2584
2773
  data: FontSizeTokenData
2585
2774
  });
2586
- var FontFamilyTokenTypedData = z81.object({
2587
- type: z81.literal("FontFamily"),
2775
+ var FontFamilyTokenTypedData = z84.object({
2776
+ type: z84.literal("FontFamily"),
2588
2777
  data: FontFamilyTokenData
2589
2778
  });
2590
- var FontWeightTokenTypedData = z81.object({
2591
- type: z81.literal("FontWeight"),
2779
+ var FontWeightTokenTypedData = z84.object({
2780
+ type: z84.literal("FontWeight"),
2592
2781
  data: FontWeightTokenData
2593
2782
  });
2594
- var LetterSpacingTokenTypedData = z81.object({
2595
- type: z81.literal("LetterSpacing"),
2783
+ var LetterSpacingTokenTypedData = z84.object({
2784
+ type: z84.literal("LetterSpacing"),
2596
2785
  data: LetterSpacingTokenData
2597
2786
  });
2598
- var LineHeightTokenTypedData = z81.object({
2599
- type: z81.literal("LineHeight"),
2787
+ var LineHeightTokenTypedData = z84.object({
2788
+ type: z84.literal("LineHeight"),
2600
2789
  data: LineHeightTokenData
2601
2790
  });
2602
- var ParagraphSpacingTokenTypedData = z81.object({
2603
- type: z81.literal("ParagraphSpacing"),
2791
+ var ParagraphSpacingTokenTypedData = z84.object({
2792
+ type: z84.literal("ParagraphSpacing"),
2604
2793
  data: ParagraphSpacingTokenData
2605
2794
  });
2606
- var TextCaseTokenTypedData = z81.object({
2607
- type: z81.literal("TextCase"),
2795
+ var TextCaseTokenTypedData = z84.object({
2796
+ type: z84.literal("TextCase"),
2608
2797
  data: TextCaseTokenData
2609
2798
  });
2610
- var TextDecorationTokenTypedData = z81.object({
2611
- type: z81.literal("TextDecoration"),
2799
+ var TextDecorationTokenTypedData = z84.object({
2800
+ type: z84.literal("TextDecoration"),
2612
2801
  data: TextDecorationTokenData
2613
2802
  });
2614
- var BorderRadiusTokenTypedData = z81.object({
2615
- type: z81.literal("BorderRadius"),
2803
+ var BorderRadiusTokenTypedData = z84.object({
2804
+ type: z84.literal("BorderRadius"),
2616
2805
  data: BorderRadiusTokenData
2617
2806
  });
2618
- var BorderWidthTokenTypedData = z81.object({
2619
- type: z81.literal("BorderWidth"),
2807
+ var BorderWidthTokenTypedData = z84.object({
2808
+ type: z84.literal("BorderWidth"),
2620
2809
  data: BorderWidthTokenData
2621
2810
  });
2622
- var BorderTypedData = z81.object({
2623
- type: z81.literal("Border"),
2811
+ var BorderTypedData = z84.object({
2812
+ type: z84.literal("Border"),
2624
2813
  data: BorderTokenData
2625
2814
  });
2626
- var ProductCopyTypedData = z81.object({
2627
- type: z81.literal("ProductCopy"),
2815
+ var ProductCopyTypedData = z84.object({
2816
+ type: z84.literal("ProductCopy"),
2628
2817
  data: ProductCopyTokenData
2629
2818
  });
2630
- var SizeTypedData = z81.object({
2631
- type: z81.literal("Size"),
2819
+ var SizeTypedData = z84.object({
2820
+ type: z84.literal("Size"),
2632
2821
  data: SizeTokenData
2633
2822
  });
2634
- var SpaceTypedData = z81.object({
2635
- type: z81.literal("Space"),
2823
+ var SpaceTypedData = z84.object({
2824
+ type: z84.literal("Space"),
2636
2825
  data: SpaceTokenData
2637
2826
  });
2638
- var VisibilityTypedData = z81.object({
2639
- type: z81.literal("Visibility"),
2827
+ var VisibilityTypedData = z84.object({
2828
+ type: z84.literal("Visibility"),
2640
2829
  data: VisibilityTokenData
2641
2830
  });
2642
- var ZIndexTypedData = z81.object({
2643
- type: z81.literal("ZIndex"),
2831
+ var ZIndexTypedData = z84.object({
2832
+ type: z84.literal("ZIndex"),
2644
2833
  data: ZIndexTokenData
2645
2834
  });
2646
- var DurationTypedData = z81.object({
2647
- type: z81.literal("Duration"),
2835
+ var DurationTypedData = z84.object({
2836
+ type: z84.literal("Duration"),
2648
2837
  data: DurationTokenData
2649
2838
  });
2650
- var FontTypedData = z81.object({
2651
- type: z81.literal("Font"),
2652
- data: z81.record(z81.any())
2839
+ var FontTypedData = z84.object({
2840
+ type: z84.literal("Font"),
2841
+ data: z84.record(z84.any())
2653
2842
  });
2654
- var DesignTokenTypedData = z81.discriminatedUnion("type", [
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
- z82.object({
2688
- tokenPersistentId: z82.string(),
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 = z82.object({
2693
- value: z82.object({
2694
- overrides: z82.array(ThemeOverride)
2881
+ var ThemeElementData = z85.object({
2882
+ value: z85.object({
2883
+ overrides: z85.array(ThemeOverride)
2695
2884
  })
2696
2885
  });
2697
- var ThemeOriginPart = z82.object({});
2698
- var ThemeOriginObject = z82.object({
2699
- id: z82.string(),
2700
- name: z82.string()
2886
+ var ThemeOriginPart = z85.object({});
2887
+ var ThemeOriginObject = z85.object({
2888
+ id: z85.string(),
2889
+ name: z85.string()
2701
2890
  });
2702
- var ThemeOriginSource = z82.object({
2703
- sourceId: z82.string(),
2704
- sourceObjects: z82.array(ThemeOriginObject)
2891
+ var ThemeOriginSource = z85.object({
2892
+ sourceId: z85.string(),
2893
+ sourceObjects: z85.array(ThemeOriginObject)
2705
2894
  });
2706
- var ThemeOrigin = z82.object({
2707
- sources: z82.array(ThemeOriginSource)
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: z82.array(ThemeOverride),
2712
- codeName: z82.string()
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 = z83.object({
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
- z83.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2964
+ z86.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2776
2965
  );
2777
- var SourceImportSummaryByTokenType = z83.record(SourceImportSummaryByTokenTypeKey, z83.number());
2778
- var SourceImportTokenSummary = z83.object({
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 = z83.object({
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 = z83.object({
2983
+ var SourceImportFrameSummary = z86.object({
2795
2984
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
2796
- invalidReferencesCount: nullishToOptional(z83.number().optional())
2797
- });
2798
- var SourceImportSummary = z83.object({
2799
- sourceId: nullishToOptional(z83.string()),
2800
- brandId: nullishToOptional(z83.string()),
2801
- versionId: nullishToOptional(z83.string()),
2802
- error: nullishToOptional(z83.any()),
2803
- isFailed: z83.boolean(),
2804
- warnings: z83.array(ImportWarning).nullish().transform((v) => v ?? []),
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 z83.number().nullish().transform((v) => v ?? 0);
2999
+ return z86.number().nullish().transform((v) => v ?? 0);
2811
3000
  }
2812
- var DataSourceRemoteType = z84.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
2813
- var DataSourceUploadRemoteSource = z84.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
2814
- var DataSourceFigmaState = z84.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
2815
- var DataSourceAutoImportMode = z84.enum(["Never", "Hourly"]);
2816
- var DataSourceStats = z84.object({
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 = z84.object({
2823
- lastUpdatedAt: z84.coerce.date()
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 DataSourceFigmaImportMetadata = z84.object({
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 = z84.object({
2844
- type: z84.literal(DataSourceRemoteType.Enum.Figma),
2845
- fileId: z84.string(),
2846
- preferredCredentialId: z84.string().optional(),
2847
- ownerId: z84.string(),
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: z84.string(),
3038
+ ownerName: z87.string(),
2850
3039
  // todo probably remove
2851
3040
  scope: DataSourceFigmaScope,
2852
3041
  state: DataSourceFigmaState,
2853
- requiresSync: z84.boolean().optional().transform((v) => v ?? false),
3042
+ requiresSync: z87.boolean().optional().transform((v) => v ?? false),
2854
3043
  lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
2855
- downloadChunkSize: z84.number().optional(),
2856
- figmaRenderChunkSize: z84.number().optional(),
2857
- maxFileDepth: z84.number().optional()
3044
+ downloadChunkSize: z87.number().optional(),
3045
+ figmaRenderChunkSize: z87.number().optional(),
3046
+ maxFileDepth: z87.number().optional()
2858
3047
  });
2859
- var DataSourceTokenStudioRemote = z84.object({
2860
- type: z84.literal(DataSourceRemoteType.Enum.TokenStudio)
3048
+ var DataSourceTokenStudioRemote = z87.object({
3049
+ type: z87.literal(DataSourceRemoteType.Enum.TokenStudio)
2861
3050
  });
2862
- var DataSourceUploadImportMetadata = z84.record(z84.any());
2863
- var DataSourceUploadRemote = z84.object({
2864
- type: z84.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
2865
- remoteId: z84.string(),
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 = z84.discriminatedUnion("type", [
3059
+ var DataSourceRemote = z87.discriminatedUnion("type", [
2871
3060
  DataSourceFigmaRemote,
2872
3061
  DataSourceUploadRemote,
2873
3062
  DataSourceTokenStudioRemote
2874
3063
  ]);
2875
- var DataSource = z84.object({
2876
- id: z84.string(),
2877
- name: z84.string(),
2878
- thumbnailUrl: z84.string().optional(),
2879
- createdAt: z84.coerce.date().optional(),
2880
- lastImportedAt: z84.coerce.date().optional(),
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: z84.string(),
2883
- brandPersistentId: z84.string(),
3071
+ designSystemId: z87.string(),
3072
+ brandPersistentId: z87.string(),
2884
3073
  autoImportMode: DataSourceAutoImportMode,
2885
3074
  stats: DataSourceStats,
2886
3075
  remote: DataSourceRemote,
2887
- sortOrder: z84.number()
3076
+ sortOrder: z87.number()
2888
3077
  });
2889
- var DataSourceVersion = z84.object({
2890
- id: z84.string(),
2891
- createdAt: z84.coerce.date(),
2892
- label: z84.string().nullish(),
2893
- description: z84.string().nullish()
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 z84.number().nullish().transform((v) => v ?? 0);
3085
+ return z87.number().nullish().transform((v) => v ?? 0);
2897
3086
  }
2898
- var ImportJobState = z85.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
2899
- var ImportJobOperation = z85.enum(["Check", "Import"]);
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: z85.string(),
2902
- designSystemVersionId: z85.string(),
2903
- sourceIds: z85.array(z85.string()),
3090
+ designSystemId: z88.string(),
3091
+ designSystemVersionId: z88.string(),
3092
+ sourceIds: z88.array(z88.string()),
2904
3093
  state: ImportJobState,
2905
- createdByUserId: z85.string().optional(),
2906
- importContextId: z85.string(),
2907
- error: z85.string().optional(),
3094
+ createdByUserId: z88.string().optional(),
3095
+ importContextId: z88.string(),
3096
+ error: z88.string().optional(),
2908
3097
  sourceType: DataSourceRemoteType,
2909
- importContextCleanedUp: z85.boolean()
3098
+ importContextCleanedUp: z88.boolean()
2910
3099
  });
2911
- var ImportFunctionInput = z86.object({
2912
- importJobId: z86.string(),
2913
- importContextId: z86.string(),
2914
- designSystemId: z86.string().optional()
3100
+ var ImportFunctionInput = z89.object({
3101
+ importJobId: z89.string(),
3102
+ importContextId: z89.string(),
3103
+ designSystemId: z89.string().optional()
2915
3104
  });
2916
- var ImportedFigmaSourceData = z86.object({
2917
- sourceId: z86.string(),
3105
+ var ImportedFigmaSourceData = z89.object({
3106
+ sourceId: z89.string(),
2918
3107
  figmaRemote: DataSourceFigmaRemote
2919
3108
  });
2920
- var FigmaImportBaseContext = z86.object({
2921
- designSystemId: z86.string(),
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: z86.record(FigmaFileAccessData),
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: z86.record(ImportedFigmaSourceData),
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: z86.record(ImportWarning.array()).default({})
3128
+ importWarnings: z89.record(ImportWarning.array()).default({})
2940
3129
  });
2941
3130
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
2942
- sourcesWithMissingAccess: z86.array(z86.string()).default([]),
2943
- shadowOpacityOptional: z86.boolean().default(false)
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: z86.record(FigmaFileDownloadScope),
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: z86.record(ChangedImportedFigmaSourceData)
3151
+ changedImportedSourceDataBySourceId: z89.record(ChangedImportedFigmaSourceData)
2963
3152
  });
2964
- var ImportModelBase = z87.object({
2965
- id: z87.string(),
3153
+ var ImportModelBase = z90.object({
3154
+ id: z90.string(),
2966
3155
  meta: ObjectMeta,
2967
3156
  origin: DesignElementOrigin,
2968
- brandPersistentId: z87.string(),
2969
- sortOrder: z87.number()
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: z87.string(),
2977
- originMetadata: z87.record(z87.any())
3165
+ originId: z90.string(),
3166
+ originMetadata: z90.record(z90.any())
2978
3167
  });
2979
- var ImageImportModelType = z88.enum(["Url", "FigmaRender"]);
2980
- var ImageImportModelBase = z88.object({
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: z88.literal(ImageImportModelType.enum.Url),
2985
- url: z88.string(),
2986
- originKey: z88.string(),
2987
- extension: z88.string()
3173
+ type: z91.literal(ImageImportModelType.enum.Url),
3174
+ url: z91.string(),
3175
+ originKey: z91.string(),
3176
+ extension: z91.string()
2988
3177
  });
2989
- var FigmaRenderFormat = z88.enum(["Svg", "Png", "Pdf"]);
3178
+ var FigmaRenderFormat = z91.enum(["Svg", "Png", "Pdf"]);
2990
3179
  var FigmaRenderBase = ImageImportModelBase.extend({
2991
- type: z88.literal(ImageImportModelType.enum.FigmaRender),
2992
- fileId: z88.string(),
2993
- fileVersionId: z88.string().optional(),
2994
- nodeId: z88.string(),
2995
- originKey: z88.string()
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: z88.literal(FigmaRenderFormat.enum.Png),
2999
- scale: z88.number()
3187
+ format: z91.literal(FigmaRenderFormat.enum.Png),
3188
+ scale: z91.number()
3000
3189
  });
3001
3190
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
3002
- format: z88.literal(FigmaRenderFormat.enum.Svg)
3191
+ format: z91.literal(FigmaRenderFormat.enum.Svg)
3003
3192
  });
3004
- var FigmaRenderImportModel = z88.discriminatedUnion("format", [
3193
+ var FigmaRenderImportModel = z91.discriminatedUnion("format", [
3005
3194
  FigmaPngRenderImportModel,
3006
3195
  FigmaSvgRenderImportModel
3007
3196
  ]);
3008
- var ImageImportModel = z88.union([UrlImageImportModel, FigmaRenderImportModel]);
3009
- var FigmaComponentImportModelPart = z89.object({
3197
+ var ImageImportModel = z91.union([UrlImageImportModel, FigmaRenderImportModel]);
3198
+ var FigmaComponentImportModelPart = z92.object({
3010
3199
  thumbnail: ImageImportModel,
3011
- parentComponentId: z89.string().optional(),
3200
+ parentComponentId: z92.string().optional(),
3012
3201
  componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
3013
3202
  });
3014
3203
  var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
3015
- isAsset: z89.boolean(),
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 = z90.object({
3027
- id: z90.string(),
3028
- fileName: z90.string().optional(),
3029
- thumbnailUrl: z90.string().optional()
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: z91.lazy(() => FigmaFileStructureNodeImportModel.array())
3225
+ children: z94.lazy(() => FigmaFileStructureNodeImportModel.array())
3037
3226
  });
3038
- var FigmaFileStructureImportModelPart = z91.object({
3039
- data: z91.object({
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: z91.string()
3239
+ fileVersionId: z94.string()
3051
3240
  });
3052
3241
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
3053
- z92.object({
3054
- id: z92.string(),
3242
+ z95.object({
3243
+ id: z95.string(),
3055
3244
  meta: ObjectMeta
3056
3245
  })
3057
3246
  );
3058
3247
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
3059
- z92.object({
3248
+ z95.object({
3060
3249
  origin: ThemeOverrideOrigin
3061
3250
  })
3062
3251
  );
3063
3252
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
3064
- z92.object({
3065
- originId: z92.string(),
3253
+ z95.object({
3254
+ originId: z95.string(),
3066
3255
  originMetadata: ThemeOverrideOriginPart
3067
3256
  })
3068
3257
  );
3069
- var ThemeImportModel = z92.object({
3258
+ var ThemeImportModel = z95.object({
3070
3259
  meta: ObjectMeta,
3071
- brandPersistentId: z92.string(),
3260
+ brandPersistentId: z95.string(),
3072
3261
  originSource: ThemeOriginSource,
3073
- overrides: z92.array(ThemeOverrideImportModel),
3074
- sortOrder: z92.number()
3262
+ overrides: z95.array(ThemeOverrideImportModel),
3263
+ sortOrder: z95.number()
3075
3264
  });
3076
- var ThemeImportModelInput = z92.object({
3265
+ var ThemeImportModelInput = z95.object({
3077
3266
  meta: ObjectMeta,
3078
- originObjects: z92.array(ThemeOriginObject),
3079
- overrides: z92.array(ThemeOverrideImportModelInput)
3267
+ originObjects: z95.array(ThemeOriginObject),
3268
+ overrides: z95.array(ThemeOverrideImportModelInput)
3080
3269
  });
3081
- var ThemeUpdateImportModel = z92.object({
3082
- themePersistentId: z92.string(),
3083
- overrides: z92.array(ThemeOverrideImportModel)
3270
+ var ThemeUpdateImportModel = z95.object({
3271
+ themePersistentId: z95.string(),
3272
+ overrides: z95.array(ThemeOverrideImportModel)
3084
3273
  });
3085
- var ThemeUpdateImportModelInput = z92.object({
3086
- themePersistentId: z92.string(),
3087
- overrides: z92.array(ThemeOverrideImportModelInput)
3274
+ var ThemeUpdateImportModelInput = z95.object({
3275
+ themePersistentId: z95.string(),
3276
+ overrides: z95.array(ThemeOverrideImportModelInput)
3088
3277
  });
3089
- var DesignTokenImportModelPart = z93.object({
3090
- collection: z93.string().optional(),
3091
- codeSyntax: z93.record(z93.coerce.string()).optional()
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 = z94.object({
3290
+ var ImportModelInputCollection = z97.object({
3102
3291
  source: DataSourceImportModel,
3103
- tokens: z94.array(DesignTokenImportModelInput).default([]),
3104
- components: z94.array(FigmaComponentImportModelInput).default([]),
3105
- assets: z94.array(AssetImportModelInput).default([]),
3106
- themeUpdates: z94.array(ThemeUpdateImportModelInput).default([]),
3107
- themes: z94.array(ThemeImportModelInput).default([]),
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 = z94.object({
3111
- sources: z94.array(DataSourceImportModel),
3112
- tokens: z94.array(DesignTokenImportModel).default([]),
3113
- components: z94.array(FigmaComponentImportModel).default([]),
3114
- themeUpdates: z94.array(ThemeUpdateImportModel).default([]),
3115
- themes: z94.array(ThemeImportModel).default([]),
3116
- figmaFileStructures: z94.array(FigmaFileStructureImportModel)
3117
- });
3118
- var AssetRenderConfiguration = z95.object({
3119
- prefix: z95.string().optional(),
3120
- suffix: z95.string().optional(),
3121
- scale: z95.number(),
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 = z95.object({
3125
- assetPersistentId: z95.string(),
3126
- assetName: z95.string(),
3127
- renderedImageFileName: z95.string(),
3128
- renderedImageUrl: z95.string(),
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 = z96.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
3132
- var DocumentationPageApproval = z97.object({
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
- name: z100.string(),
3317
- type: PageBlockDefinitionPropertyType,
3318
- description: z100.string().optional(),
3319
- options: PageBlockDefinitionUntypedPropertyOptions.optional(),
3320
- variantOptions: z100.record(PageBlockDefinitionUntypedPropertyOptions).optional()
3321
- });
3322
- var PageBlockDefinitionItem = z100.object({
3323
- properties: z100.array(PageBlockDefinitionProperty),
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 newSchema = {
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 pmSchema = new Schema(newSchema);
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(pmSchema, doc, fragment);
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,