@webstudio-is/sdk 0.191.4 → 0.191.5
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/lib/__generated__/normalize.css.js +505 -0
- package/lib/index.js +1300 -0
- package/lib/runtime.js +101 -0
- package/lib/types/__generated__/normalize.css.d.ts +57 -0
- package/lib/types/expression.d.ts +53 -0
- package/lib/types/expression.test.d.ts +1 -0
- package/lib/types/form-fields.d.ts +8 -0
- package/lib/types/index.d.ts +19 -0
- package/lib/types/instances-utils.d.ts +5 -0
- package/lib/types/instances-utils.test.d.ts +1 -0
- package/lib/types/jsx.d.ts +151 -0
- package/lib/types/jsx.test.d.ts +1 -0
- package/lib/types/page-meta-generator.d.ts +24 -0
- package/lib/types/page-meta-generator.test.d.ts +1 -0
- package/lib/types/page-utils.d.ts +24 -0
- package/lib/types/page-utils.test.d.ts +1 -0
- package/lib/types/resource-loader.d.ts +30 -0
- package/lib/types/resource-loader.test.d.ts +1 -0
- package/lib/types/resources-generator.d.ts +22 -0
- package/lib/types/resources-generator.test.d.ts +1 -0
- package/lib/types/runtime.d.ts +3 -0
- package/lib/types/schema/assets.d.ts +527 -0
- package/lib/types/schema/breakpoints.d.ts +56 -0
- package/lib/types/schema/data-sources.d.ts +303 -0
- package/lib/types/schema/deployment.d.ts +41 -0
- package/lib/types/schema/instances.d.ts +417 -0
- package/lib/types/schema/pages.d.ts +675 -0
- package/lib/types/schema/props.d.ts +549 -0
- package/lib/types/schema/resources.d.ts +121 -0
- package/lib/types/schema/style-source-selections.d.ts +23 -0
- package/lib/types/schema/style-sources.d.ts +62 -0
- package/lib/types/schema/styles.d.ts +2629 -0
- package/lib/types/schema/webstudio.d.ts +2374 -0
- package/lib/types/scope.d.ts +16 -0
- package/lib/types/scope.test.d.ts +1 -0
- package/lib/types/testing.d.ts +1 -0
- package/lib/types/to-string.d.ts +2 -0
- package/lib/types/url-pattern.d.ts +2 -0
- package/lib/types/url-pattern.test.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FontAsset: z.ZodObject<{
|
|
3
|
+
format: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
|
|
4
|
+
meta: z.ZodUnion<[z.ZodObject<{
|
|
5
|
+
family: z.ZodString;
|
|
6
|
+
style: z.ZodEnum<["normal", "italic", "oblique"]>;
|
|
7
|
+
weight: z.ZodNumber;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
family: string;
|
|
10
|
+
style: "normal" | "italic" | "oblique";
|
|
11
|
+
weight: number;
|
|
12
|
+
}, {
|
|
13
|
+
family: string;
|
|
14
|
+
style: "normal" | "italic" | "oblique";
|
|
15
|
+
weight: number;
|
|
16
|
+
}>, z.ZodObject<{
|
|
17
|
+
family: z.ZodString;
|
|
18
|
+
variationAxes: z.ZodRecord<z.ZodEnum<["wght", "wdth", "slnt", "opsz", "ital", "GRAD", "XTRA", "XOPQ", "YOPQ", "YTLC", "YTUC", "YTAS", "YTDE", "YTFI"]>, z.ZodObject<{
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
min: z.ZodNumber;
|
|
21
|
+
default: z.ZodNumber;
|
|
22
|
+
max: z.ZodNumber;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
name: string;
|
|
25
|
+
min: number;
|
|
26
|
+
default: number;
|
|
27
|
+
max: number;
|
|
28
|
+
}, {
|
|
29
|
+
name: string;
|
|
30
|
+
min: number;
|
|
31
|
+
default: number;
|
|
32
|
+
max: number;
|
|
33
|
+
}>>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
family: string;
|
|
36
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
37
|
+
name: string;
|
|
38
|
+
min: number;
|
|
39
|
+
default: number;
|
|
40
|
+
max: number;
|
|
41
|
+
}>>;
|
|
42
|
+
}, {
|
|
43
|
+
family: string;
|
|
44
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
45
|
+
name: string;
|
|
46
|
+
min: number;
|
|
47
|
+
default: number;
|
|
48
|
+
max: number;
|
|
49
|
+
}>>;
|
|
50
|
+
}>]>;
|
|
51
|
+
type: z.ZodLiteral<"font">;
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
projectId: z.ZodString;
|
|
54
|
+
size: z.ZodNumber;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
57
|
+
createdAt: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
type: "font";
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
format: "ttf" | "woff" | "woff2";
|
|
63
|
+
meta: ({
|
|
64
|
+
family: string;
|
|
65
|
+
style: "normal" | "italic" | "oblique";
|
|
66
|
+
weight: number;
|
|
67
|
+
} | {
|
|
68
|
+
family: string;
|
|
69
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
70
|
+
name: string;
|
|
71
|
+
min: number;
|
|
72
|
+
default: number;
|
|
73
|
+
max: number;
|
|
74
|
+
}>>;
|
|
75
|
+
}) & ({
|
|
76
|
+
family: string;
|
|
77
|
+
style: "normal" | "italic" | "oblique";
|
|
78
|
+
weight: number;
|
|
79
|
+
} | {
|
|
80
|
+
family: string;
|
|
81
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
82
|
+
name: string;
|
|
83
|
+
min: number;
|
|
84
|
+
default: number;
|
|
85
|
+
max: number;
|
|
86
|
+
}>>;
|
|
87
|
+
} | undefined);
|
|
88
|
+
projectId: string;
|
|
89
|
+
size: number;
|
|
90
|
+
description: string | null;
|
|
91
|
+
createdAt: string;
|
|
92
|
+
}, {
|
|
93
|
+
type: "font";
|
|
94
|
+
id: string;
|
|
95
|
+
name: string;
|
|
96
|
+
format: "ttf" | "woff" | "woff2";
|
|
97
|
+
meta: ({
|
|
98
|
+
family: string;
|
|
99
|
+
style: "normal" | "italic" | "oblique";
|
|
100
|
+
weight: number;
|
|
101
|
+
} | {
|
|
102
|
+
family: string;
|
|
103
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
104
|
+
name: string;
|
|
105
|
+
min: number;
|
|
106
|
+
default: number;
|
|
107
|
+
max: number;
|
|
108
|
+
}>>;
|
|
109
|
+
}) & ({
|
|
110
|
+
family: string;
|
|
111
|
+
style: "normal" | "italic" | "oblique";
|
|
112
|
+
weight: number;
|
|
113
|
+
} | {
|
|
114
|
+
family: string;
|
|
115
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
116
|
+
name: string;
|
|
117
|
+
min: number;
|
|
118
|
+
default: number;
|
|
119
|
+
max: number;
|
|
120
|
+
}>>;
|
|
121
|
+
} | undefined);
|
|
122
|
+
projectId: string;
|
|
123
|
+
size: number;
|
|
124
|
+
description: string | null;
|
|
125
|
+
createdAt: string;
|
|
126
|
+
}>;
|
|
127
|
+
export type FontAsset = z.infer<typeof FontAsset>;
|
|
128
|
+
export declare const ImageMeta: z.ZodObject<{
|
|
129
|
+
width: z.ZodNumber;
|
|
130
|
+
height: z.ZodNumber;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
width: number;
|
|
133
|
+
height: number;
|
|
134
|
+
}, {
|
|
135
|
+
width: number;
|
|
136
|
+
height: number;
|
|
137
|
+
}>;
|
|
138
|
+
export type ImageMeta = z.infer<typeof ImageMeta>;
|
|
139
|
+
export declare const ImageAsset: z.ZodObject<{
|
|
140
|
+
format: z.ZodString;
|
|
141
|
+
meta: z.ZodObject<{
|
|
142
|
+
width: z.ZodNumber;
|
|
143
|
+
height: z.ZodNumber;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
width: number;
|
|
146
|
+
height: number;
|
|
147
|
+
}, {
|
|
148
|
+
width: number;
|
|
149
|
+
height: number;
|
|
150
|
+
}>;
|
|
151
|
+
type: z.ZodLiteral<"image">;
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
projectId: z.ZodString;
|
|
154
|
+
size: z.ZodNumber;
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
157
|
+
createdAt: z.ZodString;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
type: "image";
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
format: string;
|
|
163
|
+
meta: {
|
|
164
|
+
width: number;
|
|
165
|
+
height: number;
|
|
166
|
+
};
|
|
167
|
+
projectId: string;
|
|
168
|
+
size: number;
|
|
169
|
+
description: string | null;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
}, {
|
|
172
|
+
type: "image";
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
format: string;
|
|
176
|
+
meta: {
|
|
177
|
+
width: number;
|
|
178
|
+
height: number;
|
|
179
|
+
};
|
|
180
|
+
projectId: string;
|
|
181
|
+
size: number;
|
|
182
|
+
description: string | null;
|
|
183
|
+
createdAt: string;
|
|
184
|
+
}>;
|
|
185
|
+
export type ImageAsset = z.infer<typeof ImageAsset>;
|
|
186
|
+
export declare const Asset: z.ZodUnion<[z.ZodObject<{
|
|
187
|
+
format: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
|
|
188
|
+
meta: z.ZodUnion<[z.ZodObject<{
|
|
189
|
+
family: z.ZodString;
|
|
190
|
+
style: z.ZodEnum<["normal", "italic", "oblique"]>;
|
|
191
|
+
weight: z.ZodNumber;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
family: string;
|
|
194
|
+
style: "normal" | "italic" | "oblique";
|
|
195
|
+
weight: number;
|
|
196
|
+
}, {
|
|
197
|
+
family: string;
|
|
198
|
+
style: "normal" | "italic" | "oblique";
|
|
199
|
+
weight: number;
|
|
200
|
+
}>, z.ZodObject<{
|
|
201
|
+
family: z.ZodString;
|
|
202
|
+
variationAxes: z.ZodRecord<z.ZodEnum<["wght", "wdth", "slnt", "opsz", "ital", "GRAD", "XTRA", "XOPQ", "YOPQ", "YTLC", "YTUC", "YTAS", "YTDE", "YTFI"]>, z.ZodObject<{
|
|
203
|
+
name: z.ZodString;
|
|
204
|
+
min: z.ZodNumber;
|
|
205
|
+
default: z.ZodNumber;
|
|
206
|
+
max: z.ZodNumber;
|
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
name: string;
|
|
209
|
+
min: number;
|
|
210
|
+
default: number;
|
|
211
|
+
max: number;
|
|
212
|
+
}, {
|
|
213
|
+
name: string;
|
|
214
|
+
min: number;
|
|
215
|
+
default: number;
|
|
216
|
+
max: number;
|
|
217
|
+
}>>;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
family: string;
|
|
220
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
221
|
+
name: string;
|
|
222
|
+
min: number;
|
|
223
|
+
default: number;
|
|
224
|
+
max: number;
|
|
225
|
+
}>>;
|
|
226
|
+
}, {
|
|
227
|
+
family: string;
|
|
228
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
229
|
+
name: string;
|
|
230
|
+
min: number;
|
|
231
|
+
default: number;
|
|
232
|
+
max: number;
|
|
233
|
+
}>>;
|
|
234
|
+
}>]>;
|
|
235
|
+
type: z.ZodLiteral<"font">;
|
|
236
|
+
id: z.ZodString;
|
|
237
|
+
projectId: z.ZodString;
|
|
238
|
+
size: z.ZodNumber;
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
241
|
+
createdAt: z.ZodString;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
type: "font";
|
|
244
|
+
id: string;
|
|
245
|
+
name: string;
|
|
246
|
+
format: "ttf" | "woff" | "woff2";
|
|
247
|
+
meta: ({
|
|
248
|
+
family: string;
|
|
249
|
+
style: "normal" | "italic" | "oblique";
|
|
250
|
+
weight: number;
|
|
251
|
+
} | {
|
|
252
|
+
family: string;
|
|
253
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
254
|
+
name: string;
|
|
255
|
+
min: number;
|
|
256
|
+
default: number;
|
|
257
|
+
max: number;
|
|
258
|
+
}>>;
|
|
259
|
+
}) & ({
|
|
260
|
+
family: string;
|
|
261
|
+
style: "normal" | "italic" | "oblique";
|
|
262
|
+
weight: number;
|
|
263
|
+
} | {
|
|
264
|
+
family: string;
|
|
265
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
266
|
+
name: string;
|
|
267
|
+
min: number;
|
|
268
|
+
default: number;
|
|
269
|
+
max: number;
|
|
270
|
+
}>>;
|
|
271
|
+
} | undefined);
|
|
272
|
+
projectId: string;
|
|
273
|
+
size: number;
|
|
274
|
+
description: string | null;
|
|
275
|
+
createdAt: string;
|
|
276
|
+
}, {
|
|
277
|
+
type: "font";
|
|
278
|
+
id: string;
|
|
279
|
+
name: string;
|
|
280
|
+
format: "ttf" | "woff" | "woff2";
|
|
281
|
+
meta: ({
|
|
282
|
+
family: string;
|
|
283
|
+
style: "normal" | "italic" | "oblique";
|
|
284
|
+
weight: number;
|
|
285
|
+
} | {
|
|
286
|
+
family: string;
|
|
287
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
288
|
+
name: string;
|
|
289
|
+
min: number;
|
|
290
|
+
default: number;
|
|
291
|
+
max: number;
|
|
292
|
+
}>>;
|
|
293
|
+
}) & ({
|
|
294
|
+
family: string;
|
|
295
|
+
style: "normal" | "italic" | "oblique";
|
|
296
|
+
weight: number;
|
|
297
|
+
} | {
|
|
298
|
+
family: string;
|
|
299
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
300
|
+
name: string;
|
|
301
|
+
min: number;
|
|
302
|
+
default: number;
|
|
303
|
+
max: number;
|
|
304
|
+
}>>;
|
|
305
|
+
} | undefined);
|
|
306
|
+
projectId: string;
|
|
307
|
+
size: number;
|
|
308
|
+
description: string | null;
|
|
309
|
+
createdAt: string;
|
|
310
|
+
}>, z.ZodObject<{
|
|
311
|
+
format: z.ZodString;
|
|
312
|
+
meta: z.ZodObject<{
|
|
313
|
+
width: z.ZodNumber;
|
|
314
|
+
height: z.ZodNumber;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
width: number;
|
|
317
|
+
height: number;
|
|
318
|
+
}, {
|
|
319
|
+
width: number;
|
|
320
|
+
height: number;
|
|
321
|
+
}>;
|
|
322
|
+
type: z.ZodLiteral<"image">;
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
projectId: z.ZodString;
|
|
325
|
+
size: z.ZodNumber;
|
|
326
|
+
name: z.ZodString;
|
|
327
|
+
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
328
|
+
createdAt: z.ZodString;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
type: "image";
|
|
331
|
+
id: string;
|
|
332
|
+
name: string;
|
|
333
|
+
format: string;
|
|
334
|
+
meta: {
|
|
335
|
+
width: number;
|
|
336
|
+
height: number;
|
|
337
|
+
};
|
|
338
|
+
projectId: string;
|
|
339
|
+
size: number;
|
|
340
|
+
description: string | null;
|
|
341
|
+
createdAt: string;
|
|
342
|
+
}, {
|
|
343
|
+
type: "image";
|
|
344
|
+
id: string;
|
|
345
|
+
name: string;
|
|
346
|
+
format: string;
|
|
347
|
+
meta: {
|
|
348
|
+
width: number;
|
|
349
|
+
height: number;
|
|
350
|
+
};
|
|
351
|
+
projectId: string;
|
|
352
|
+
size: number;
|
|
353
|
+
description: string | null;
|
|
354
|
+
createdAt: string;
|
|
355
|
+
}>]>;
|
|
356
|
+
export type Asset = z.infer<typeof Asset>;
|
|
357
|
+
export declare const Assets: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
358
|
+
format: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
|
|
359
|
+
meta: z.ZodUnion<[z.ZodObject<{
|
|
360
|
+
family: z.ZodString;
|
|
361
|
+
style: z.ZodEnum<["normal", "italic", "oblique"]>;
|
|
362
|
+
weight: z.ZodNumber;
|
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
|
364
|
+
family: string;
|
|
365
|
+
style: "normal" | "italic" | "oblique";
|
|
366
|
+
weight: number;
|
|
367
|
+
}, {
|
|
368
|
+
family: string;
|
|
369
|
+
style: "normal" | "italic" | "oblique";
|
|
370
|
+
weight: number;
|
|
371
|
+
}>, z.ZodObject<{
|
|
372
|
+
family: z.ZodString;
|
|
373
|
+
variationAxes: z.ZodRecord<z.ZodEnum<["wght", "wdth", "slnt", "opsz", "ital", "GRAD", "XTRA", "XOPQ", "YOPQ", "YTLC", "YTUC", "YTAS", "YTDE", "YTFI"]>, z.ZodObject<{
|
|
374
|
+
name: z.ZodString;
|
|
375
|
+
min: z.ZodNumber;
|
|
376
|
+
default: z.ZodNumber;
|
|
377
|
+
max: z.ZodNumber;
|
|
378
|
+
}, "strip", z.ZodTypeAny, {
|
|
379
|
+
name: string;
|
|
380
|
+
min: number;
|
|
381
|
+
default: number;
|
|
382
|
+
max: number;
|
|
383
|
+
}, {
|
|
384
|
+
name: string;
|
|
385
|
+
min: number;
|
|
386
|
+
default: number;
|
|
387
|
+
max: number;
|
|
388
|
+
}>>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
family: string;
|
|
391
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
392
|
+
name: string;
|
|
393
|
+
min: number;
|
|
394
|
+
default: number;
|
|
395
|
+
max: number;
|
|
396
|
+
}>>;
|
|
397
|
+
}, {
|
|
398
|
+
family: string;
|
|
399
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
400
|
+
name: string;
|
|
401
|
+
min: number;
|
|
402
|
+
default: number;
|
|
403
|
+
max: number;
|
|
404
|
+
}>>;
|
|
405
|
+
}>]>;
|
|
406
|
+
type: z.ZodLiteral<"font">;
|
|
407
|
+
id: z.ZodString;
|
|
408
|
+
projectId: z.ZodString;
|
|
409
|
+
size: z.ZodNumber;
|
|
410
|
+
name: z.ZodString;
|
|
411
|
+
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
412
|
+
createdAt: z.ZodString;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
type: "font";
|
|
415
|
+
id: string;
|
|
416
|
+
name: string;
|
|
417
|
+
format: "ttf" | "woff" | "woff2";
|
|
418
|
+
meta: ({
|
|
419
|
+
family: string;
|
|
420
|
+
style: "normal" | "italic" | "oblique";
|
|
421
|
+
weight: number;
|
|
422
|
+
} | {
|
|
423
|
+
family: string;
|
|
424
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
425
|
+
name: string;
|
|
426
|
+
min: number;
|
|
427
|
+
default: number;
|
|
428
|
+
max: number;
|
|
429
|
+
}>>;
|
|
430
|
+
}) & ({
|
|
431
|
+
family: string;
|
|
432
|
+
style: "normal" | "italic" | "oblique";
|
|
433
|
+
weight: number;
|
|
434
|
+
} | {
|
|
435
|
+
family: string;
|
|
436
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
437
|
+
name: string;
|
|
438
|
+
min: number;
|
|
439
|
+
default: number;
|
|
440
|
+
max: number;
|
|
441
|
+
}>>;
|
|
442
|
+
} | undefined);
|
|
443
|
+
projectId: string;
|
|
444
|
+
size: number;
|
|
445
|
+
description: string | null;
|
|
446
|
+
createdAt: string;
|
|
447
|
+
}, {
|
|
448
|
+
type: "font";
|
|
449
|
+
id: string;
|
|
450
|
+
name: string;
|
|
451
|
+
format: "ttf" | "woff" | "woff2";
|
|
452
|
+
meta: ({
|
|
453
|
+
family: string;
|
|
454
|
+
style: "normal" | "italic" | "oblique";
|
|
455
|
+
weight: number;
|
|
456
|
+
} | {
|
|
457
|
+
family: string;
|
|
458
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
459
|
+
name: string;
|
|
460
|
+
min: number;
|
|
461
|
+
default: number;
|
|
462
|
+
max: number;
|
|
463
|
+
}>>;
|
|
464
|
+
}) & ({
|
|
465
|
+
family: string;
|
|
466
|
+
style: "normal" | "italic" | "oblique";
|
|
467
|
+
weight: number;
|
|
468
|
+
} | {
|
|
469
|
+
family: string;
|
|
470
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
471
|
+
name: string;
|
|
472
|
+
min: number;
|
|
473
|
+
default: number;
|
|
474
|
+
max: number;
|
|
475
|
+
}>>;
|
|
476
|
+
} | undefined);
|
|
477
|
+
projectId: string;
|
|
478
|
+
size: number;
|
|
479
|
+
description: string | null;
|
|
480
|
+
createdAt: string;
|
|
481
|
+
}>, z.ZodObject<{
|
|
482
|
+
format: z.ZodString;
|
|
483
|
+
meta: z.ZodObject<{
|
|
484
|
+
width: z.ZodNumber;
|
|
485
|
+
height: z.ZodNumber;
|
|
486
|
+
}, "strip", z.ZodTypeAny, {
|
|
487
|
+
width: number;
|
|
488
|
+
height: number;
|
|
489
|
+
}, {
|
|
490
|
+
width: number;
|
|
491
|
+
height: number;
|
|
492
|
+
}>;
|
|
493
|
+
type: z.ZodLiteral<"image">;
|
|
494
|
+
id: z.ZodString;
|
|
495
|
+
projectId: z.ZodString;
|
|
496
|
+
size: z.ZodNumber;
|
|
497
|
+
name: z.ZodString;
|
|
498
|
+
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
499
|
+
createdAt: z.ZodString;
|
|
500
|
+
}, "strip", z.ZodTypeAny, {
|
|
501
|
+
type: "image";
|
|
502
|
+
id: string;
|
|
503
|
+
name: string;
|
|
504
|
+
format: string;
|
|
505
|
+
meta: {
|
|
506
|
+
width: number;
|
|
507
|
+
height: number;
|
|
508
|
+
};
|
|
509
|
+
projectId: string;
|
|
510
|
+
size: number;
|
|
511
|
+
description: string | null;
|
|
512
|
+
createdAt: string;
|
|
513
|
+
}, {
|
|
514
|
+
type: "image";
|
|
515
|
+
id: string;
|
|
516
|
+
name: string;
|
|
517
|
+
format: string;
|
|
518
|
+
meta: {
|
|
519
|
+
width: number;
|
|
520
|
+
height: number;
|
|
521
|
+
};
|
|
522
|
+
projectId: string;
|
|
523
|
+
size: number;
|
|
524
|
+
description: string | null;
|
|
525
|
+
createdAt: string;
|
|
526
|
+
}>]>>;
|
|
527
|
+
export type Assets = z.infer<typeof Assets>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const Breakpoint: z.ZodEffects<z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
minWidth?: number | undefined;
|
|
11
|
+
maxWidth?: number | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
minWidth?: number | undefined;
|
|
16
|
+
maxWidth?: number | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
minWidth?: number | undefined;
|
|
21
|
+
maxWidth?: number | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
minWidth?: number | undefined;
|
|
26
|
+
maxWidth?: number | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export type Breakpoint = z.infer<typeof Breakpoint>;
|
|
29
|
+
export declare const Breakpoints: z.ZodMap<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
label: z.ZodString;
|
|
32
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
id: string;
|
|
36
|
+
label: string;
|
|
37
|
+
minWidth?: number | undefined;
|
|
38
|
+
maxWidth?: number | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
id: string;
|
|
41
|
+
label: string;
|
|
42
|
+
minWidth?: number | undefined;
|
|
43
|
+
maxWidth?: number | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
id: string;
|
|
46
|
+
label: string;
|
|
47
|
+
minWidth?: number | undefined;
|
|
48
|
+
maxWidth?: number | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
id: string;
|
|
51
|
+
label: string;
|
|
52
|
+
minWidth?: number | undefined;
|
|
53
|
+
maxWidth?: number | undefined;
|
|
54
|
+
}>>;
|
|
55
|
+
export type Breakpoints = z.infer<typeof Breakpoints>;
|
|
56
|
+
export declare const initialBreakpoints: Array<Breakpoint>;
|