@webstudio-is/sdk 0.168.0 → 0.174.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 +160 -117
- package/lib/types/index.d.ts +0 -1
- package/lib/types/instances-utils.d.ts +3 -35
- package/lib/types/jsx.d.ts +151 -0
- package/lib/types/page-meta-generator.d.ts +4 -3
- package/lib/types/resource-loader.d.ts +10 -1
- package/lib/types/resources-generator.d.ts +13 -1
- package/lib/types/schema/deployment.d.ts +20 -2
- package/lib/types/schema/pages.d.ts +4 -4
- package/lib/types/schema/props.d.ts +42 -0
- package/lib/types/schema/resources.d.ts +6 -6
- package/lib/types/schema/styles.d.ts +1801 -9839
- package/lib/types/schema/webstudio.d.ts +623 -948
- package/lib/types/scope.d.ts +1 -1
- package/lib/types/testing.d.ts +1 -0
- package/package.json +11 -8
- package/lib/types/forms-generator.d.ts +0 -84
- /package/lib/types/{forms-generator.test.d.ts → jsx.test.d.ts} +0 -0
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Deployment: z.ZodObject<{
|
|
2
|
+
export declare const Deployment: z.ZodUnion<[z.ZodObject<{
|
|
3
|
+
destination: z.ZodLiteral<"static">;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
assetsDomain: z.ZodString;
|
|
6
|
+
templates: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
destination: "static";
|
|
10
|
+
assetsDomain: string;
|
|
11
|
+
templates: string[];
|
|
12
|
+
}, {
|
|
13
|
+
name: string;
|
|
14
|
+
destination: "static";
|
|
15
|
+
assetsDomain: string;
|
|
16
|
+
templates: string[];
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
destination: z.ZodOptional<z.ZodLiteral<"saas">>;
|
|
3
19
|
domains: z.ZodArray<z.ZodString, "many">;
|
|
4
20
|
projectDomain: z.ZodString;
|
|
5
21
|
}, "strip", z.ZodTypeAny, {
|
|
6
22
|
domains: string[];
|
|
7
23
|
projectDomain: string;
|
|
24
|
+
destination?: "saas" | undefined;
|
|
8
25
|
}, {
|
|
9
26
|
domains: string[];
|
|
10
27
|
projectDomain: string;
|
|
11
|
-
|
|
28
|
+
destination?: "saas" | undefined;
|
|
29
|
+
}>]>;
|
|
12
30
|
export type Deployment = z.infer<typeof Deployment>;
|
|
@@ -25,7 +25,7 @@ export type Folder = z.infer<typeof Folder>;
|
|
|
25
25
|
export declare const PageName: z.ZodEffects<z.ZodString, string, string>;
|
|
26
26
|
export declare const PageTitle: z.ZodEffects<z.ZodString, string, string>;
|
|
27
27
|
export declare const documentTypes: readonly ["html", "xml"];
|
|
28
|
-
export declare const HomePagePath: z.ZodEffects<z.ZodString,
|
|
28
|
+
export declare const HomePagePath: z.ZodEffects<z.ZodString, "", string>;
|
|
29
29
|
export declare const PagePath: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
30
30
|
declare const Page: z.ZodObject<{
|
|
31
31
|
path: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
@@ -233,7 +233,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
233
233
|
status?: "301" | "302" | undefined;
|
|
234
234
|
}>, "many">>;
|
|
235
235
|
homePage: z.ZodObject<{
|
|
236
|
-
path: z.ZodEffects<z.ZodString,
|
|
236
|
+
path: z.ZodEffects<z.ZodString, "", string>;
|
|
237
237
|
id: z.ZodString;
|
|
238
238
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
239
239
|
title: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -303,7 +303,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
303
303
|
thumbnailAssetId?: string | undefined;
|
|
304
304
|
}>>;
|
|
305
305
|
}, "strip", z.ZodTypeAny, {
|
|
306
|
-
path:
|
|
306
|
+
path: "";
|
|
307
307
|
id: string;
|
|
308
308
|
name: string;
|
|
309
309
|
meta: {
|
|
@@ -514,7 +514,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
514
514
|
}[]>;
|
|
515
515
|
}, "strip", z.ZodTypeAny, {
|
|
516
516
|
homePage: {
|
|
517
|
-
path:
|
|
517
|
+
path: "";
|
|
518
518
|
id: string;
|
|
519
519
|
name: string;
|
|
520
520
|
meta: {
|
|
@@ -188,6 +188,27 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
188
188
|
name: string;
|
|
189
189
|
instanceId: string;
|
|
190
190
|
required?: boolean | undefined;
|
|
191
|
+
}>, z.ZodObject<{
|
|
192
|
+
type: z.ZodLiteral<"resource">;
|
|
193
|
+
value: z.ZodString;
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
instanceId: z.ZodString;
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
value: string;
|
|
200
|
+
type: "resource";
|
|
201
|
+
id: string;
|
|
202
|
+
name: string;
|
|
203
|
+
instanceId: string;
|
|
204
|
+
required?: boolean | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
value: string;
|
|
207
|
+
type: "resource";
|
|
208
|
+
id: string;
|
|
209
|
+
name: string;
|
|
210
|
+
instanceId: string;
|
|
211
|
+
required?: boolean | undefined;
|
|
191
212
|
}>, z.ZodObject<{
|
|
192
213
|
type: z.ZodLiteral<"expression">;
|
|
193
214
|
value: z.ZodString;
|
|
@@ -441,6 +462,27 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
441
462
|
name: string;
|
|
442
463
|
instanceId: string;
|
|
443
464
|
required?: boolean | undefined;
|
|
465
|
+
}>, z.ZodObject<{
|
|
466
|
+
type: z.ZodLiteral<"resource">;
|
|
467
|
+
value: z.ZodString;
|
|
468
|
+
id: z.ZodString;
|
|
469
|
+
instanceId: z.ZodString;
|
|
470
|
+
name: z.ZodString;
|
|
471
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
|
473
|
+
value: string;
|
|
474
|
+
type: "resource";
|
|
475
|
+
id: string;
|
|
476
|
+
name: string;
|
|
477
|
+
instanceId: string;
|
|
478
|
+
required?: boolean | undefined;
|
|
479
|
+
}, {
|
|
480
|
+
value: string;
|
|
481
|
+
type: "resource";
|
|
482
|
+
id: string;
|
|
483
|
+
name: string;
|
|
484
|
+
instanceId: string;
|
|
485
|
+
required?: boolean | undefined;
|
|
444
486
|
}>, z.ZodObject<{
|
|
445
487
|
type: z.ZodLiteral<"expression">;
|
|
446
488
|
value: z.ZodString;
|
|
@@ -19,7 +19,7 @@ export declare const Resource: z.ZodObject<{
|
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
|
-
method: "
|
|
22
|
+
method: "get" | "post" | "put" | "delete";
|
|
23
23
|
url: string;
|
|
24
24
|
headers: {
|
|
25
25
|
value: string;
|
|
@@ -30,7 +30,7 @@ export declare const Resource: z.ZodObject<{
|
|
|
30
30
|
}, {
|
|
31
31
|
id: string;
|
|
32
32
|
name: string;
|
|
33
|
-
method: "
|
|
33
|
+
method: "get" | "post" | "put" | "delete";
|
|
34
34
|
url: string;
|
|
35
35
|
headers: {
|
|
36
36
|
value: string;
|
|
@@ -59,7 +59,7 @@ export declare const ResourceRequest: z.ZodObject<{
|
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
id: string;
|
|
61
61
|
name: string;
|
|
62
|
-
method: "
|
|
62
|
+
method: "get" | "post" | "put" | "delete";
|
|
63
63
|
url: string;
|
|
64
64
|
headers: {
|
|
65
65
|
value: string;
|
|
@@ -69,7 +69,7 @@ export declare const ResourceRequest: z.ZodObject<{
|
|
|
69
69
|
}, {
|
|
70
70
|
id: string;
|
|
71
71
|
name: string;
|
|
72
|
-
method: "
|
|
72
|
+
method: "get" | "post" | "put" | "delete";
|
|
73
73
|
url: string;
|
|
74
74
|
headers: {
|
|
75
75
|
value: string;
|
|
@@ -98,7 +98,7 @@ export declare const Resources: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
98
98
|
}, "strip", z.ZodTypeAny, {
|
|
99
99
|
id: string;
|
|
100
100
|
name: string;
|
|
101
|
-
method: "
|
|
101
|
+
method: "get" | "post" | "put" | "delete";
|
|
102
102
|
url: string;
|
|
103
103
|
headers: {
|
|
104
104
|
value: string;
|
|
@@ -109,7 +109,7 @@ export declare const Resources: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
109
109
|
}, {
|
|
110
110
|
id: string;
|
|
111
111
|
name: string;
|
|
112
|
-
method: "
|
|
112
|
+
method: "get" | "post" | "put" | "delete";
|
|
113
113
|
url: string;
|
|
114
114
|
headers: {
|
|
115
115
|
value: string;
|