@webstudio-is/sdk 0.0.0-017f1bd
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/LICENSE +661 -0
- package/lib/__generated__/normalize.css.js +593 -0
- package/lib/core-templates.js +1267 -0
- package/lib/index.js +2918 -0
- package/lib/runtime.js +117 -0
- package/lib/types/__generated__/normalize.css.d.ts +57 -0
- package/lib/types/__generated__/tags.d.ts +1 -0
- package/lib/types/core-metas.d.ts +20 -0
- package/lib/types/core-templates.d.ts +9 -0
- package/lib/types/css.d.ts +31 -0
- package/lib/types/css.test.d.ts +1 -0
- package/lib/types/expression.d.ts +60 -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 +26 -0
- package/lib/types/instances-utils.d.ts +8 -0
- package/lib/types/instances-utils.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 +8 -0
- package/lib/types/schema/animation-schema.d.ts +53844 -0
- package/lib/types/schema/assets.d.ts +455 -0
- package/lib/types/schema/breakpoints.d.ts +56 -0
- package/lib/types/schema/component-meta.d.ts +12262 -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 +214 -0
- package/lib/types/schema/pages.d.ts +676 -0
- package/lib/types/schema/prop-meta.d.ts +500 -0
- package/lib/types/schema/props.d.ts +37387 -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 +6293 -0
- package/lib/types/schema/webstudio.d.ts +24734 -0
- package/lib/types/scope.d.ts +16 -0
- package/lib/types/scope.test.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 +61 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const Resource: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
control: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"graphql">]>>;
|
|
6
|
+
method: z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
headers: z.ZodArray<z.ZodObject<{
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
value: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
value: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}, {
|
|
15
|
+
value: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}>, "many">;
|
|
18
|
+
body: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
name: string;
|
|
21
|
+
url: string;
|
|
22
|
+
id: string;
|
|
23
|
+
method: "get" | "post" | "put" | "delete";
|
|
24
|
+
headers: {
|
|
25
|
+
value: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}[];
|
|
28
|
+
body?: string | undefined;
|
|
29
|
+
control?: "system" | "graphql" | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
name: string;
|
|
32
|
+
url: string;
|
|
33
|
+
id: string;
|
|
34
|
+
method: "get" | "post" | "put" | "delete";
|
|
35
|
+
headers: {
|
|
36
|
+
value: string;
|
|
37
|
+
name: string;
|
|
38
|
+
}[];
|
|
39
|
+
body?: string | undefined;
|
|
40
|
+
control?: "system" | "graphql" | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export type Resource = z.infer<typeof Resource>;
|
|
43
|
+
export declare const ResourceRequest: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
method: z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
|
|
47
|
+
url: z.ZodString;
|
|
48
|
+
headers: z.ZodArray<z.ZodObject<{
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
value: z.ZodString;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
value: string;
|
|
53
|
+
name: string;
|
|
54
|
+
}, {
|
|
55
|
+
value: string;
|
|
56
|
+
name: string;
|
|
57
|
+
}>, "many">;
|
|
58
|
+
body: z.ZodOptional<z.ZodUnknown>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
name: string;
|
|
61
|
+
url: string;
|
|
62
|
+
id: string;
|
|
63
|
+
method: "get" | "post" | "put" | "delete";
|
|
64
|
+
headers: {
|
|
65
|
+
value: string;
|
|
66
|
+
name: string;
|
|
67
|
+
}[];
|
|
68
|
+
body?: unknown;
|
|
69
|
+
}, {
|
|
70
|
+
name: string;
|
|
71
|
+
url: string;
|
|
72
|
+
id: string;
|
|
73
|
+
method: "get" | "post" | "put" | "delete";
|
|
74
|
+
headers: {
|
|
75
|
+
value: string;
|
|
76
|
+
name: string;
|
|
77
|
+
}[];
|
|
78
|
+
body?: unknown;
|
|
79
|
+
}>;
|
|
80
|
+
export type ResourceRequest = z.infer<typeof ResourceRequest>;
|
|
81
|
+
export declare const Resources: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
control: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"graphql">]>>;
|
|
85
|
+
method: z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
|
|
86
|
+
url: z.ZodString;
|
|
87
|
+
headers: z.ZodArray<z.ZodObject<{
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
value: z.ZodString;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
value: string;
|
|
92
|
+
name: string;
|
|
93
|
+
}, {
|
|
94
|
+
value: string;
|
|
95
|
+
name: string;
|
|
96
|
+
}>, "many">;
|
|
97
|
+
body: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
name: string;
|
|
100
|
+
url: string;
|
|
101
|
+
id: string;
|
|
102
|
+
method: "get" | "post" | "put" | "delete";
|
|
103
|
+
headers: {
|
|
104
|
+
value: string;
|
|
105
|
+
name: string;
|
|
106
|
+
}[];
|
|
107
|
+
body?: string | undefined;
|
|
108
|
+
control?: "system" | "graphql" | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
name: string;
|
|
111
|
+
url: string;
|
|
112
|
+
id: string;
|
|
113
|
+
method: "get" | "post" | "put" | "delete";
|
|
114
|
+
headers: {
|
|
115
|
+
value: string;
|
|
116
|
+
name: string;
|
|
117
|
+
}[];
|
|
118
|
+
body?: string | undefined;
|
|
119
|
+
control?: "system" | "graphql" | undefined;
|
|
120
|
+
}>>;
|
|
121
|
+
export type Resources = z.infer<typeof Resources>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const StyleSourceSelection: z.ZodObject<{
|
|
3
|
+
instanceId: z.ZodString;
|
|
4
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
values: string[];
|
|
7
|
+
instanceId: string;
|
|
8
|
+
}, {
|
|
9
|
+
values: string[];
|
|
10
|
+
instanceId: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type StyleSourceSelection = z.infer<typeof StyleSourceSelection>;
|
|
13
|
+
export declare const StyleSourceSelections: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
14
|
+
instanceId: z.ZodString;
|
|
15
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
values: string[];
|
|
18
|
+
instanceId: string;
|
|
19
|
+
}, {
|
|
20
|
+
values: string[];
|
|
21
|
+
instanceId: string;
|
|
22
|
+
}>>;
|
|
23
|
+
export type StyleSourceSelections = z.infer<typeof StyleSourceSelections>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const StyleSourceToken: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"token">;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
type: "token";
|
|
8
|
+
name: string;
|
|
9
|
+
id: string;
|
|
10
|
+
}, {
|
|
11
|
+
type: "token";
|
|
12
|
+
name: string;
|
|
13
|
+
id: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type StyleSourceToken = z.infer<typeof StyleSourceToken>;
|
|
16
|
+
export declare const StyleSource: z.ZodUnion<[z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<"token">;
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
type: "token";
|
|
22
|
+
name: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}, {
|
|
25
|
+
type: "token";
|
|
26
|
+
name: string;
|
|
27
|
+
id: string;
|
|
28
|
+
}>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"local">;
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
type: "local";
|
|
33
|
+
id: string;
|
|
34
|
+
}, {
|
|
35
|
+
type: "local";
|
|
36
|
+
id: string;
|
|
37
|
+
}>]>;
|
|
38
|
+
export type StyleSource = z.infer<typeof StyleSource>;
|
|
39
|
+
export declare const StyleSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
40
|
+
type: z.ZodLiteral<"token">;
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
type: "token";
|
|
45
|
+
name: string;
|
|
46
|
+
id: string;
|
|
47
|
+
}, {
|
|
48
|
+
type: "token";
|
|
49
|
+
name: string;
|
|
50
|
+
id: string;
|
|
51
|
+
}>, z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<"local">;
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
type: "local";
|
|
56
|
+
id: string;
|
|
57
|
+
}, {
|
|
58
|
+
type: "local";
|
|
59
|
+
id: string;
|
|
60
|
+
}>]>>;
|
|
61
|
+
export type StyleSources = z.infer<typeof StyleSources>;
|
|
62
|
+
export {};
|