@webstudio-is/sdk 0.208.0 → 0.209.0
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/index.js +10 -2
- package/lib/types/core-metas.d.ts +115 -115
- package/lib/types/schema/animation-schema.d.ts +43644 -13660
- package/lib/types/schema/assets.d.ts +12 -84
- package/lib/types/schema/breakpoints.d.ts +8 -8
- package/lib/types/schema/component-meta.d.ts +9842 -3202
- package/lib/types/schema/embed-template.d.ts +3885 -881
- package/lib/types/schema/instances.d.ts +9 -0
- package/lib/types/schema/pages.d.ts +125 -125
- package/lib/types/schema/prop-meta.d.ts +46 -46
- package/lib/types/schema/props.d.ts +28880 -8948
- package/lib/types/schema/resources.d.ts +4 -4
- package/lib/types/schema/styles.d.ts +4903 -1239
- package/lib/types/schema/webstudio.d.ts +18062 -5510
- package/package.json +6 -6
|
@@ -58,19 +58,7 @@ export declare const FontAsset: z.ZodObject<{
|
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
type: "font";
|
|
60
60
|
name: string;
|
|
61
|
-
meta:
|
|
62
|
-
family: string;
|
|
63
|
-
style: "normal" | "italic" | "oblique";
|
|
64
|
-
weight: number;
|
|
65
|
-
} | {
|
|
66
|
-
family: string;
|
|
67
|
-
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
68
|
-
name: string;
|
|
69
|
-
min: number;
|
|
70
|
-
default: number;
|
|
71
|
-
max: number;
|
|
72
|
-
}>>;
|
|
73
|
-
}) & ({
|
|
61
|
+
meta: {
|
|
74
62
|
family: string;
|
|
75
63
|
style: "normal" | "italic" | "oblique";
|
|
76
64
|
weight: number;
|
|
@@ -82,7 +70,7 @@ export declare const FontAsset: z.ZodObject<{
|
|
|
82
70
|
default: number;
|
|
83
71
|
max: number;
|
|
84
72
|
}>>;
|
|
85
|
-
}
|
|
73
|
+
};
|
|
86
74
|
description: string | null;
|
|
87
75
|
id: string;
|
|
88
76
|
format: "ttf" | "woff" | "woff2";
|
|
@@ -92,19 +80,7 @@ export declare const FontAsset: z.ZodObject<{
|
|
|
92
80
|
}, {
|
|
93
81
|
type: "font";
|
|
94
82
|
name: string;
|
|
95
|
-
meta:
|
|
96
|
-
family: string;
|
|
97
|
-
style: "normal" | "italic" | "oblique";
|
|
98
|
-
weight: number;
|
|
99
|
-
} | {
|
|
100
|
-
family: string;
|
|
101
|
-
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
102
|
-
name: string;
|
|
103
|
-
min: number;
|
|
104
|
-
default: number;
|
|
105
|
-
max: number;
|
|
106
|
-
}>>;
|
|
107
|
-
}) & ({
|
|
83
|
+
meta: {
|
|
108
84
|
family: string;
|
|
109
85
|
style: "normal" | "italic" | "oblique";
|
|
110
86
|
weight: number;
|
|
@@ -116,7 +92,7 @@ export declare const FontAsset: z.ZodObject<{
|
|
|
116
92
|
default: number;
|
|
117
93
|
max: number;
|
|
118
94
|
}>>;
|
|
119
|
-
}
|
|
95
|
+
};
|
|
120
96
|
description: string | null;
|
|
121
97
|
id: string;
|
|
122
98
|
format: "ttf" | "woff" | "woff2";
|
|
@@ -242,19 +218,7 @@ export declare const Asset: z.ZodUnion<[z.ZodObject<{
|
|
|
242
218
|
}, "strip", z.ZodTypeAny, {
|
|
243
219
|
type: "font";
|
|
244
220
|
name: string;
|
|
245
|
-
meta:
|
|
246
|
-
family: string;
|
|
247
|
-
style: "normal" | "italic" | "oblique";
|
|
248
|
-
weight: number;
|
|
249
|
-
} | {
|
|
250
|
-
family: string;
|
|
251
|
-
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
252
|
-
name: string;
|
|
253
|
-
min: number;
|
|
254
|
-
default: number;
|
|
255
|
-
max: number;
|
|
256
|
-
}>>;
|
|
257
|
-
}) & ({
|
|
221
|
+
meta: {
|
|
258
222
|
family: string;
|
|
259
223
|
style: "normal" | "italic" | "oblique";
|
|
260
224
|
weight: number;
|
|
@@ -266,7 +230,7 @@ export declare const Asset: z.ZodUnion<[z.ZodObject<{
|
|
|
266
230
|
default: number;
|
|
267
231
|
max: number;
|
|
268
232
|
}>>;
|
|
269
|
-
}
|
|
233
|
+
};
|
|
270
234
|
description: string | null;
|
|
271
235
|
id: string;
|
|
272
236
|
format: "ttf" | "woff" | "woff2";
|
|
@@ -276,19 +240,7 @@ export declare const Asset: z.ZodUnion<[z.ZodObject<{
|
|
|
276
240
|
}, {
|
|
277
241
|
type: "font";
|
|
278
242
|
name: string;
|
|
279
|
-
meta:
|
|
280
|
-
family: string;
|
|
281
|
-
style: "normal" | "italic" | "oblique";
|
|
282
|
-
weight: number;
|
|
283
|
-
} | {
|
|
284
|
-
family: string;
|
|
285
|
-
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
286
|
-
name: string;
|
|
287
|
-
min: number;
|
|
288
|
-
default: number;
|
|
289
|
-
max: number;
|
|
290
|
-
}>>;
|
|
291
|
-
}) & ({
|
|
243
|
+
meta: {
|
|
292
244
|
family: string;
|
|
293
245
|
style: "normal" | "italic" | "oblique";
|
|
294
246
|
weight: number;
|
|
@@ -300,7 +252,7 @@ export declare const Asset: z.ZodUnion<[z.ZodObject<{
|
|
|
300
252
|
default: number;
|
|
301
253
|
max: number;
|
|
302
254
|
}>>;
|
|
303
|
-
}
|
|
255
|
+
};
|
|
304
256
|
description: string | null;
|
|
305
257
|
id: string;
|
|
306
258
|
format: "ttf" | "woff" | "woff2";
|
|
@@ -413,19 +365,7 @@ export declare const Assets: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
413
365
|
}, "strip", z.ZodTypeAny, {
|
|
414
366
|
type: "font";
|
|
415
367
|
name: string;
|
|
416
|
-
meta:
|
|
417
|
-
family: string;
|
|
418
|
-
style: "normal" | "italic" | "oblique";
|
|
419
|
-
weight: number;
|
|
420
|
-
} | {
|
|
421
|
-
family: string;
|
|
422
|
-
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
423
|
-
name: string;
|
|
424
|
-
min: number;
|
|
425
|
-
default: number;
|
|
426
|
-
max: number;
|
|
427
|
-
}>>;
|
|
428
|
-
}) & ({
|
|
368
|
+
meta: {
|
|
429
369
|
family: string;
|
|
430
370
|
style: "normal" | "italic" | "oblique";
|
|
431
371
|
weight: number;
|
|
@@ -437,7 +377,7 @@ export declare const Assets: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
437
377
|
default: number;
|
|
438
378
|
max: number;
|
|
439
379
|
}>>;
|
|
440
|
-
}
|
|
380
|
+
};
|
|
441
381
|
description: string | null;
|
|
442
382
|
id: string;
|
|
443
383
|
format: "ttf" | "woff" | "woff2";
|
|
@@ -447,19 +387,7 @@ export declare const Assets: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
447
387
|
}, {
|
|
448
388
|
type: "font";
|
|
449
389
|
name: string;
|
|
450
|
-
meta:
|
|
451
|
-
family: string;
|
|
452
|
-
style: "normal" | "italic" | "oblique";
|
|
453
|
-
weight: number;
|
|
454
|
-
} | {
|
|
455
|
-
family: string;
|
|
456
|
-
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
457
|
-
name: string;
|
|
458
|
-
min: number;
|
|
459
|
-
default: number;
|
|
460
|
-
max: number;
|
|
461
|
-
}>>;
|
|
462
|
-
}) & ({
|
|
390
|
+
meta: {
|
|
463
391
|
family: string;
|
|
464
392
|
style: "normal" | "italic" | "oblique";
|
|
465
393
|
weight: number;
|
|
@@ -471,7 +399,7 @@ export declare const Assets: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
471
399
|
default: number;
|
|
472
400
|
max: number;
|
|
473
401
|
}>>;
|
|
474
|
-
}
|
|
402
|
+
};
|
|
475
403
|
description: string | null;
|
|
476
404
|
id: string;
|
|
477
405
|
format: "ttf" | "woff" | "woff2";
|
|
@@ -7,23 +7,23 @@ export declare const Breakpoint: z.ZodEffects<z.ZodObject<{
|
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
label: string;
|
|
9
9
|
id: string;
|
|
10
|
-
minWidth?: number | undefined;
|
|
11
10
|
maxWidth?: number | undefined;
|
|
11
|
+
minWidth?: number | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
label: string;
|
|
14
14
|
id: string;
|
|
15
|
-
minWidth?: number | undefined;
|
|
16
15
|
maxWidth?: number | undefined;
|
|
16
|
+
minWidth?: number | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
label: string;
|
|
19
19
|
id: string;
|
|
20
|
-
minWidth?: number | undefined;
|
|
21
20
|
maxWidth?: number | undefined;
|
|
21
|
+
minWidth?: number | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
label: string;
|
|
24
24
|
id: string;
|
|
25
|
-
minWidth?: number | undefined;
|
|
26
25
|
maxWidth?: number | undefined;
|
|
26
|
+
minWidth?: number | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
export type Breakpoint = z.infer<typeof Breakpoint>;
|
|
29
29
|
export declare const Breakpoints: z.ZodMap<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
@@ -34,23 +34,23 @@ export declare const Breakpoints: z.ZodMap<z.ZodString, z.ZodEffects<z.ZodObject
|
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
label: string;
|
|
36
36
|
id: string;
|
|
37
|
-
minWidth?: number | undefined;
|
|
38
37
|
maxWidth?: number | undefined;
|
|
38
|
+
minWidth?: number | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
label: string;
|
|
41
41
|
id: string;
|
|
42
|
-
minWidth?: number | undefined;
|
|
43
42
|
maxWidth?: number | undefined;
|
|
43
|
+
minWidth?: number | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
label: string;
|
|
46
46
|
id: string;
|
|
47
|
-
minWidth?: number | undefined;
|
|
48
47
|
maxWidth?: number | undefined;
|
|
48
|
+
minWidth?: number | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
label: string;
|
|
51
51
|
id: string;
|
|
52
|
-
minWidth?: number | undefined;
|
|
53
52
|
maxWidth?: number | undefined;
|
|
53
|
+
minWidth?: number | undefined;
|
|
54
54
|
}>>;
|
|
55
55
|
export type Breakpoints = z.infer<typeof Breakpoints>;
|
|
56
56
|
export declare const initialBreakpoints: Array<Breakpoint>;
|