@webstudio-is/sdk 0.272.0 → 0.273.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/core-templates.js +1 -1
- package/lib/index.js +605 -612
- package/lib/schema.js +249 -256
- package/lib/types/index.d.ts +1 -1
- package/lib/types/schema/animation-schema.d.ts +303 -304
- package/lib/types/schema/assets.d.ts +14 -12
- package/lib/types/schema/breakpoints.d.ts +4 -4
- package/lib/types/schema/component-meta.d.ts +65 -65
- package/lib/types/schema/data-sources.d.ts +5 -5
- package/lib/types/schema/deployment.d.ts +4 -4
- package/lib/types/schema/instances.d.ts +11 -11
- package/lib/types/schema/pages.d.ts +25 -25
- package/lib/types/schema/prop-meta.d.ts +2 -2
- package/lib/types/schema/props.d.ts +4 -4
- package/lib/types/schema/resources.d.ts +6 -6
- package/lib/types/schema/style-source-selections.d.ts +4 -4
- package/lib/types/schema/style-sources.d.ts +6 -6
- package/lib/types/schema/styles.d.ts +37 -37
- package/lib/types/schema/webstudio.d.ts +12 -12
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const textChild: z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"text">;
|
|
4
4
|
value: z.ZodString;
|
|
5
5
|
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -12,8 +12,8 @@ export declare const TextChild: z.ZodObject<{
|
|
|
12
12
|
type: "text";
|
|
13
13
|
placeholder?: boolean | undefined;
|
|
14
14
|
}>;
|
|
15
|
-
export type TextChild = z.infer<typeof
|
|
16
|
-
export declare const
|
|
15
|
+
export type TextChild = z.infer<typeof textChild>;
|
|
16
|
+
export declare const idChild: z.ZodObject<{
|
|
17
17
|
type: z.ZodLiteral<"id">;
|
|
18
18
|
value: z.ZodString;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -23,8 +23,8 @@ export declare const IdChild: z.ZodObject<{
|
|
|
23
23
|
value: string;
|
|
24
24
|
type: "id";
|
|
25
25
|
}>;
|
|
26
|
-
export type IdChild = z.infer<typeof
|
|
27
|
-
export declare const
|
|
26
|
+
export type IdChild = z.infer<typeof idChild>;
|
|
27
|
+
export declare const expressionChild: z.ZodObject<{
|
|
28
28
|
type: z.ZodLiteral<"expression">;
|
|
29
29
|
value: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -34,8 +34,8 @@ export declare const ExpressionChild: z.ZodObject<{
|
|
|
34
34
|
value: string;
|
|
35
35
|
type: "expression";
|
|
36
36
|
}>;
|
|
37
|
-
export type ExpressionChild = z.infer<typeof
|
|
38
|
-
export declare const
|
|
37
|
+
export type ExpressionChild = z.infer<typeof expressionChild>;
|
|
38
|
+
export declare const instanceChild: z.ZodUnion<[z.ZodObject<{
|
|
39
39
|
type: z.ZodLiteral<"id">;
|
|
40
40
|
value: z.ZodString;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -66,7 +66,7 @@ export declare const InstanceChild: z.ZodUnion<[z.ZodObject<{
|
|
|
66
66
|
value: string;
|
|
67
67
|
type: "expression";
|
|
68
68
|
}>]>;
|
|
69
|
-
export declare const
|
|
69
|
+
export declare const instance: z.ZodObject<{
|
|
70
70
|
type: z.ZodLiteral<"instance">;
|
|
71
71
|
id: z.ZodString;
|
|
72
72
|
component: z.ZodString;
|
|
@@ -138,8 +138,8 @@ export declare const Instance: z.ZodObject<{
|
|
|
138
138
|
tag?: string | undefined;
|
|
139
139
|
label?: string | undefined;
|
|
140
140
|
}>;
|
|
141
|
-
export type Instance = z.infer<typeof
|
|
142
|
-
export declare const
|
|
141
|
+
export type Instance = z.infer<typeof instance>;
|
|
142
|
+
export declare const instances: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
143
143
|
type: z.ZodLiteral<"instance">;
|
|
144
144
|
id: z.ZodString;
|
|
145
145
|
component: z.ZodString;
|
|
@@ -211,4 +211,4 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
211
211
|
tag?: string | undefined;
|
|
212
212
|
label?: string | undefined;
|
|
213
213
|
}>>;
|
|
214
|
-
export type Instances = z.infer<typeof
|
|
214
|
+
export type Instances = z.infer<typeof instances>;
|
|
@@ -5,10 +5,10 @@ export type System = {
|
|
|
5
5
|
pathname: string;
|
|
6
6
|
origin: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
8
|
+
export declare const pageId: z.ZodString;
|
|
9
|
+
export declare const folderId: z.ZodString;
|
|
10
|
+
export declare const folderName: z.ZodEffects<z.ZodString, string, string>;
|
|
11
|
+
export declare const folder: z.ZodObject<{
|
|
12
12
|
id: z.ZodString;
|
|
13
13
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
14
14
|
slug: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -24,11 +24,11 @@ export declare const Folder: z.ZodObject<{
|
|
|
24
24
|
slug: string;
|
|
25
25
|
children: string[];
|
|
26
26
|
}>;
|
|
27
|
-
export type Folder = z.infer<typeof
|
|
28
|
-
export declare const
|
|
29
|
-
export declare const
|
|
27
|
+
export type Folder = z.infer<typeof folder>;
|
|
28
|
+
export declare const pageName: z.ZodEffects<z.ZodString, string, string>;
|
|
29
|
+
export declare const pageTitle: z.ZodEffects<z.ZodString, string, string>;
|
|
30
30
|
export declare const documentTypes: readonly ["html", "xml", "text"];
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const pageAuth: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
32
32
|
login: z.ZodString;
|
|
33
33
|
password: z.ZodString;
|
|
34
34
|
method: z.ZodLiteral<"basic">;
|
|
@@ -77,11 +77,11 @@ export declare const PageAuth: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
77
77
|
login: string;
|
|
78
78
|
password: string;
|
|
79
79
|
}>]>;
|
|
80
|
-
export type PageAuth = z.infer<typeof
|
|
81
|
-
export declare const
|
|
82
|
-
export declare const
|
|
83
|
-
export declare const
|
|
84
|
-
export declare const
|
|
80
|
+
export type PageAuth = z.infer<typeof pageAuth>;
|
|
81
|
+
export declare const homePagePath: z.ZodEffects<z.ZodString, "", string>;
|
|
82
|
+
export declare const redirectSourcePath: 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>;
|
|
83
|
+
export declare const pagePath: z.ZodEffects<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>, string, string>;
|
|
84
|
+
export declare const page: z.ZodObject<{
|
|
85
85
|
path: z.ZodUnion<[z.ZodEffects<z.ZodString, "", string>, z.ZodEffects<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>, string, string>]>;
|
|
86
86
|
id: z.ZodString;
|
|
87
87
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -298,7 +298,7 @@ export declare const Page: z.ZodObject<{
|
|
|
298
298
|
thumbnailAssetId?: string | undefined;
|
|
299
299
|
} | undefined;
|
|
300
300
|
}>;
|
|
301
|
-
export declare const
|
|
301
|
+
export declare const pageTemplate: z.ZodObject<{
|
|
302
302
|
id: z.ZodString;
|
|
303
303
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
304
304
|
title: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -486,8 +486,8 @@ export declare const PageTemplate: z.ZodObject<{
|
|
|
486
486
|
rootInstanceId: string;
|
|
487
487
|
systemDataSourceId?: string | undefined;
|
|
488
488
|
}>;
|
|
489
|
-
export type PageTemplate = z.infer<typeof
|
|
490
|
-
export declare const
|
|
489
|
+
export type PageTemplate = z.infer<typeof pageTemplate>;
|
|
490
|
+
export declare const projectMeta: z.ZodObject<{
|
|
491
491
|
siteName: z.ZodOptional<z.ZodString>;
|
|
492
492
|
contactEmail: z.ZodOptional<z.ZodString>;
|
|
493
493
|
faviconAssetId: z.ZodOptional<z.ZodString>;
|
|
@@ -506,9 +506,9 @@ export declare const ProjectMeta: z.ZodObject<{
|
|
|
506
506
|
contactEmail?: string | undefined;
|
|
507
507
|
faviconAssetId?: string | undefined;
|
|
508
508
|
}>;
|
|
509
|
-
export type ProjectMeta = z.infer<typeof
|
|
510
|
-
export declare const
|
|
511
|
-
export declare const
|
|
509
|
+
export type ProjectMeta = z.infer<typeof projectMeta>;
|
|
510
|
+
export declare const projectNewRedirectPath: z.ZodEffects<z.ZodString, string, string>;
|
|
511
|
+
export declare const pageRedirect: z.ZodObject<{
|
|
512
512
|
old: 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>;
|
|
513
513
|
new: z.ZodEffects<z.ZodString, string, string>;
|
|
514
514
|
status: z.ZodOptional<z.ZodEnum<["301", "302"]>>;
|
|
@@ -521,17 +521,17 @@ export declare const PageRedirect: z.ZodObject<{
|
|
|
521
521
|
new: string;
|
|
522
522
|
status?: "301" | "302" | undefined;
|
|
523
523
|
}>;
|
|
524
|
-
export type PageRedirect = z.infer<typeof
|
|
525
|
-
export declare const
|
|
524
|
+
export type PageRedirect = z.infer<typeof pageRedirect>;
|
|
525
|
+
export declare const compilerSettings: z.ZodObject<{
|
|
526
526
|
atomicStyles: z.ZodOptional<z.ZodBoolean>;
|
|
527
527
|
}, "strip", z.ZodTypeAny, {
|
|
528
528
|
atomicStyles?: boolean | undefined;
|
|
529
529
|
}, {
|
|
530
530
|
atomicStyles?: boolean | undefined;
|
|
531
531
|
}>;
|
|
532
|
-
export type CompilerSettings = z.infer<typeof
|
|
533
|
-
export type Page = z.infer<typeof
|
|
534
|
-
export declare const
|
|
532
|
+
export type CompilerSettings = z.infer<typeof compilerSettings>;
|
|
533
|
+
export type Page = z.infer<typeof page>;
|
|
534
|
+
export declare const pages: z.ZodEffects<z.ZodObject<{
|
|
535
535
|
meta: z.ZodOptional<z.ZodObject<{
|
|
536
536
|
siteName: z.ZodOptional<z.ZodString>;
|
|
537
537
|
contactEmail: z.ZodOptional<z.ZodString>;
|
|
@@ -1385,4 +1385,4 @@ export declare const Pages: z.ZodEffects<z.ZodObject<{
|
|
|
1385
1385
|
systemDataSourceId?: string | undefined;
|
|
1386
1386
|
}> | undefined;
|
|
1387
1387
|
}>;
|
|
1388
|
-
export type Pages = z.infer<typeof
|
|
1388
|
+
export type Pages = z.infer<typeof pages>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const propMeta: z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
control: z.ZodLiteral<"tag">;
|
|
4
4
|
type: z.ZodLiteral<"string">;
|
|
5
5
|
defaultValue: z.ZodOptional<z.ZodUndefined>;
|
|
@@ -590,4 +590,4 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
590
590
|
defaultValue?: undefined;
|
|
591
591
|
contentMode?: boolean | undefined;
|
|
592
592
|
}>]>;
|
|
593
|
-
export type PropMeta = z.infer<typeof
|
|
593
|
+
export type PropMeta = z.infer<typeof propMeta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const prop: z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"number">;
|
|
4
4
|
value: z.ZodNumber;
|
|
5
5
|
id: z.ZodString;
|
|
@@ -18881,8 +18881,8 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
18881
18881
|
instanceId: string;
|
|
18882
18882
|
required?: boolean | undefined;
|
|
18883
18883
|
}>]>;
|
|
18884
|
-
export type Prop = z.infer<typeof
|
|
18885
|
-
export declare const
|
|
18884
|
+
export type Prop = z.infer<typeof prop>;
|
|
18885
|
+
export declare const props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
18886
18886
|
type: z.ZodLiteral<"number">;
|
|
18887
18887
|
value: z.ZodNumber;
|
|
18888
18888
|
id: z.ZodString;
|
|
@@ -37764,4 +37764,4 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
37764
37764
|
instanceId: string;
|
|
37765
37765
|
required?: boolean | undefined;
|
|
37766
37766
|
}>]>>;
|
|
37767
|
-
export type Props = z.infer<typeof
|
|
37767
|
+
export type Props = z.infer<typeof props>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const resource: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
control: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"graphql">]>>;
|
|
@@ -57,8 +57,8 @@ export declare const Resource: z.ZodObject<{
|
|
|
57
57
|
}[] | undefined;
|
|
58
58
|
body?: string | undefined;
|
|
59
59
|
}>;
|
|
60
|
-
export type Resource = z.infer<typeof
|
|
61
|
-
export declare const
|
|
60
|
+
export type Resource = z.infer<typeof resource>;
|
|
61
|
+
export declare const resourceRequest: z.ZodObject<{
|
|
62
62
|
name: z.ZodString;
|
|
63
63
|
method: z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">, z.ZodLiteral<"put">, z.ZodLiteral<"delete">]>;
|
|
64
64
|
url: z.ZodString;
|
|
@@ -110,8 +110,8 @@ export declare const ResourceRequest: z.ZodObject<{
|
|
|
110
110
|
}[];
|
|
111
111
|
body?: unknown;
|
|
112
112
|
}>;
|
|
113
|
-
export type ResourceRequest = z.infer<typeof
|
|
114
|
-
export declare const
|
|
113
|
+
export type ResourceRequest = z.infer<typeof resourceRequest>;
|
|
114
|
+
export declare const resources: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
115
115
|
id: z.ZodString;
|
|
116
116
|
name: z.ZodString;
|
|
117
117
|
control: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"graphql">]>>;
|
|
@@ -169,4 +169,4 @@ export declare const Resources: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
169
169
|
}[] | undefined;
|
|
170
170
|
body?: string | undefined;
|
|
171
171
|
}>>;
|
|
172
|
-
export type Resources = z.infer<typeof
|
|
172
|
+
export type Resources = z.infer<typeof resources>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const styleSourceSelection: z.ZodObject<{
|
|
3
3
|
instanceId: z.ZodString;
|
|
4
4
|
values: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9,8 +9,8 @@ export declare const StyleSourceSelection: z.ZodObject<{
|
|
|
9
9
|
values: string[];
|
|
10
10
|
instanceId: string;
|
|
11
11
|
}>;
|
|
12
|
-
export type StyleSourceSelection = z.infer<typeof
|
|
13
|
-
export declare const
|
|
12
|
+
export type StyleSourceSelection = z.infer<typeof styleSourceSelection>;
|
|
13
|
+
export declare const styleSourceSelections: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
14
14
|
instanceId: z.ZodString;
|
|
15
15
|
values: z.ZodArray<z.ZodString, "many">;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -20,4 +20,4 @@ export declare const StyleSourceSelections: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
20
20
|
values: string[];
|
|
21
21
|
instanceId: string;
|
|
22
22
|
}>>;
|
|
23
|
-
export type StyleSourceSelections = z.infer<typeof
|
|
23
|
+
export type StyleSourceSelections = z.infer<typeof styleSourceSelections>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
declare const
|
|
2
|
+
declare const styleSourceToken: z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"token">;
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
name: z.ZodString;
|
|
@@ -15,8 +15,8 @@ declare const StyleSourceToken: z.ZodObject<{
|
|
|
15
15
|
id: string;
|
|
16
16
|
locked?: boolean | undefined;
|
|
17
17
|
}>;
|
|
18
|
-
export type StyleSourceToken = z.infer<typeof
|
|
19
|
-
export declare const
|
|
18
|
+
export type StyleSourceToken = z.infer<typeof styleSourceToken>;
|
|
19
|
+
export declare const styleSource: z.ZodUnion<[z.ZodObject<{
|
|
20
20
|
type: z.ZodLiteral<"token">;
|
|
21
21
|
id: z.ZodString;
|
|
22
22
|
name: z.ZodString;
|
|
@@ -41,8 +41,8 @@ export declare const StyleSource: z.ZodUnion<[z.ZodObject<{
|
|
|
41
41
|
type: "local";
|
|
42
42
|
id: string;
|
|
43
43
|
}>]>;
|
|
44
|
-
export type StyleSource = z.infer<typeof
|
|
45
|
-
export declare const
|
|
44
|
+
export type StyleSource = z.infer<typeof styleSource>;
|
|
45
|
+
export declare const styleSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
46
46
|
type: z.ZodLiteral<"token">;
|
|
47
47
|
id: z.ZodString;
|
|
48
48
|
name: z.ZodString;
|
|
@@ -67,5 +67,5 @@ export declare const StyleSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject
|
|
|
67
67
|
type: "local";
|
|
68
68
|
id: string;
|
|
69
69
|
}>]>>;
|
|
70
|
-
export type StyleSources = z.infer<typeof
|
|
70
|
+
export type StyleSources = z.infer<typeof styleSources>;
|
|
71
71
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type StyleProperty
|
|
2
|
+
import { type StyleProperty } from "@webstudio-is/css-engine";
|
|
3
3
|
import type { Simplify } from "type-fest";
|
|
4
|
-
declare const
|
|
4
|
+
declare const styleDeclRaw: z.ZodObject<{
|
|
5
5
|
styleSourceId: z.ZodString;
|
|
6
6
|
breakpointId: z.ZodString;
|
|
7
7
|
state: z.ZodOptional<z.ZodString>;
|
|
@@ -238,12 +238,12 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
238
238
|
}>, z.ZodType<{
|
|
239
239
|
type: "function";
|
|
240
240
|
name: string;
|
|
241
|
-
args: StyleValue;
|
|
241
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
242
242
|
hidden?: boolean;
|
|
243
243
|
}, z.ZodTypeDef, {
|
|
244
244
|
type: "function";
|
|
245
245
|
name: string;
|
|
246
|
-
args: StyleValue;
|
|
246
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
247
247
|
hidden?: boolean;
|
|
248
248
|
}>, z.ZodObject<{
|
|
249
249
|
type: z.ZodLiteral<"var">;
|
|
@@ -396,7 +396,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
396
396
|
} | {
|
|
397
397
|
type: "function";
|
|
398
398
|
name: string;
|
|
399
|
-
args: StyleValue;
|
|
399
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
400
400
|
hidden?: boolean;
|
|
401
401
|
} | {
|
|
402
402
|
value: string;
|
|
@@ -460,7 +460,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
460
460
|
} | {
|
|
461
461
|
type: "function";
|
|
462
462
|
name: string;
|
|
463
|
-
args: StyleValue;
|
|
463
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
464
464
|
hidden?: boolean;
|
|
465
465
|
} | {
|
|
466
466
|
value: string;
|
|
@@ -1533,12 +1533,12 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
1533
1533
|
}>, z.ZodType<{
|
|
1534
1534
|
type: "function";
|
|
1535
1535
|
name: string;
|
|
1536
|
-
args: StyleValue;
|
|
1536
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1537
1537
|
hidden?: boolean;
|
|
1538
1538
|
}, z.ZodTypeDef, {
|
|
1539
1539
|
type: "function";
|
|
1540
1540
|
name: string;
|
|
1541
|
-
args: StyleValue;
|
|
1541
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1542
1542
|
hidden?: boolean;
|
|
1543
1543
|
}>, z.ZodObject<{
|
|
1544
1544
|
type: z.ZodLiteral<"var">;
|
|
@@ -1691,7 +1691,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
1691
1691
|
} | {
|
|
1692
1692
|
type: "function";
|
|
1693
1693
|
name: string;
|
|
1694
|
-
args: StyleValue;
|
|
1694
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1695
1695
|
hidden?: boolean;
|
|
1696
1696
|
} | {
|
|
1697
1697
|
value: string;
|
|
@@ -1752,7 +1752,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
1752
1752
|
} | {
|
|
1753
1753
|
type: "function";
|
|
1754
1754
|
name: string;
|
|
1755
|
-
args: StyleValue;
|
|
1755
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1756
1756
|
hidden?: boolean;
|
|
1757
1757
|
} | {
|
|
1758
1758
|
value: string;
|
|
@@ -1988,7 +1988,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
1988
1988
|
} | {
|
|
1989
1989
|
type: "function";
|
|
1990
1990
|
name: string;
|
|
1991
|
-
args: StyleValue;
|
|
1991
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1992
1992
|
hidden?: boolean;
|
|
1993
1993
|
} | {
|
|
1994
1994
|
value: string;
|
|
@@ -2049,7 +2049,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
2049
2049
|
} | {
|
|
2050
2050
|
type: "function";
|
|
2051
2051
|
name: string;
|
|
2052
|
-
args: StyleValue;
|
|
2052
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2053
2053
|
hidden?: boolean;
|
|
2054
2054
|
} | {
|
|
2055
2055
|
value: string;
|
|
@@ -2430,12 +2430,12 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
2430
2430
|
}>, z.ZodType<{
|
|
2431
2431
|
type: "function";
|
|
2432
2432
|
name: string;
|
|
2433
|
-
args: StyleValue;
|
|
2433
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2434
2434
|
hidden?: boolean;
|
|
2435
2435
|
}, z.ZodTypeDef, {
|
|
2436
2436
|
type: "function";
|
|
2437
2437
|
name: string;
|
|
2438
|
-
args: StyleValue;
|
|
2438
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2439
2439
|
hidden?: boolean;
|
|
2440
2440
|
}>, z.ZodObject<{
|
|
2441
2441
|
type: z.ZodLiteral<"var">;
|
|
@@ -2588,7 +2588,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
2588
2588
|
} | {
|
|
2589
2589
|
type: "function";
|
|
2590
2590
|
name: string;
|
|
2591
|
-
args: StyleValue;
|
|
2591
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2592
2592
|
hidden?: boolean;
|
|
2593
2593
|
} | {
|
|
2594
2594
|
value: string;
|
|
@@ -2652,7 +2652,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
2652
2652
|
} | {
|
|
2653
2653
|
type: "function";
|
|
2654
2654
|
name: string;
|
|
2655
|
-
args: StyleValue;
|
|
2655
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2656
2656
|
hidden?: boolean;
|
|
2657
2657
|
} | {
|
|
2658
2658
|
value: string;
|
|
@@ -2685,12 +2685,12 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
2685
2685
|
}>, z.ZodType<{
|
|
2686
2686
|
type: "function";
|
|
2687
2687
|
name: string;
|
|
2688
|
-
args: StyleValue;
|
|
2688
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2689
2689
|
hidden?: boolean;
|
|
2690
2690
|
}, z.ZodTypeDef, {
|
|
2691
2691
|
type: "function";
|
|
2692
2692
|
name: string;
|
|
2693
|
-
args: StyleValue;
|
|
2693
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2694
2694
|
hidden?: boolean;
|
|
2695
2695
|
}>, z.ZodObject<{
|
|
2696
2696
|
type: z.ZodLiteral<"guaranteedInvalid">;
|
|
@@ -3883,7 +3883,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
3883
3883
|
} | {
|
|
3884
3884
|
type: "function";
|
|
3885
3885
|
name: string;
|
|
3886
|
-
args: StyleValue;
|
|
3886
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
3887
3887
|
hidden?: boolean;
|
|
3888
3888
|
} | {
|
|
3889
3889
|
value: string;
|
|
@@ -3944,7 +3944,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
3944
3944
|
} | {
|
|
3945
3945
|
type: "function";
|
|
3946
3946
|
name: string;
|
|
3947
|
-
args: StyleValue;
|
|
3947
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
3948
3948
|
hidden?: boolean;
|
|
3949
3949
|
} | {
|
|
3950
3950
|
value: string;
|
|
@@ -4177,7 +4177,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4177
4177
|
} | {
|
|
4178
4178
|
type: "function";
|
|
4179
4179
|
name: string;
|
|
4180
|
-
args: StyleValue;
|
|
4180
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4181
4181
|
hidden?: boolean;
|
|
4182
4182
|
} | {
|
|
4183
4183
|
value: string;
|
|
@@ -4238,7 +4238,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4238
4238
|
} | {
|
|
4239
4239
|
type: "function";
|
|
4240
4240
|
name: string;
|
|
4241
|
-
args: StyleValue;
|
|
4241
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4242
4242
|
hidden?: boolean;
|
|
4243
4243
|
} | {
|
|
4244
4244
|
value: string;
|
|
@@ -4491,7 +4491,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4491
4491
|
} | {
|
|
4492
4492
|
type: "function";
|
|
4493
4493
|
name: string;
|
|
4494
|
-
args: StyleValue;
|
|
4494
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4495
4495
|
hidden?: boolean;
|
|
4496
4496
|
} | {
|
|
4497
4497
|
value: string;
|
|
@@ -4552,7 +4552,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4552
4552
|
} | {
|
|
4553
4553
|
type: "function";
|
|
4554
4554
|
name: string;
|
|
4555
|
-
args: StyleValue;
|
|
4555
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4556
4556
|
hidden?: boolean;
|
|
4557
4557
|
} | {
|
|
4558
4558
|
value: string;
|
|
@@ -4785,7 +4785,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4785
4785
|
} | {
|
|
4786
4786
|
type: "function";
|
|
4787
4787
|
name: string;
|
|
4788
|
-
args: StyleValue;
|
|
4788
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4789
4789
|
hidden?: boolean;
|
|
4790
4790
|
} | {
|
|
4791
4791
|
value: string;
|
|
@@ -4846,7 +4846,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4846
4846
|
} | {
|
|
4847
4847
|
type: "function";
|
|
4848
4848
|
name: string;
|
|
4849
|
-
args: StyleValue;
|
|
4849
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4850
4850
|
hidden?: boolean;
|
|
4851
4851
|
} | {
|
|
4852
4852
|
value: string;
|
|
@@ -5066,13 +5066,13 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
5066
5066
|
state?: string | undefined;
|
|
5067
5067
|
listed?: boolean | undefined;
|
|
5068
5068
|
}>;
|
|
5069
|
-
export type StyleDecl = Simplify<Omit<z.infer<typeof
|
|
5069
|
+
export type StyleDecl = Simplify<Omit<z.infer<typeof styleDeclRaw>, "property"> & {
|
|
5070
5070
|
property: StyleProperty;
|
|
5071
5071
|
}>;
|
|
5072
|
-
export declare const
|
|
5072
|
+
export declare const styleDecl: z.ZodType<StyleDecl>;
|
|
5073
5073
|
export type StyleDeclKey = string;
|
|
5074
5074
|
export declare const getStyleDeclKey: (styleDecl: Omit<StyleDecl, "value">) => StyleDeclKey;
|
|
5075
|
-
export declare const
|
|
5075
|
+
export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
5076
5076
|
value: {
|
|
5077
5077
|
value: {
|
|
5078
5078
|
value: string;
|
|
@@ -5106,7 +5106,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
5106
5106
|
} | {
|
|
5107
5107
|
type: "function";
|
|
5108
5108
|
name: string;
|
|
5109
|
-
args: StyleValue;
|
|
5109
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5110
5110
|
hidden?: boolean;
|
|
5111
5111
|
} | {
|
|
5112
5112
|
value: string;
|
|
@@ -5167,7 +5167,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
5167
5167
|
} | {
|
|
5168
5168
|
type: "function";
|
|
5169
5169
|
name: string;
|
|
5170
|
-
args: StyleValue;
|
|
5170
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5171
5171
|
hidden?: boolean;
|
|
5172
5172
|
} | {
|
|
5173
5173
|
value: string;
|
|
@@ -5400,7 +5400,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
5400
5400
|
} | {
|
|
5401
5401
|
type: "function";
|
|
5402
5402
|
name: string;
|
|
5403
|
-
args: StyleValue;
|
|
5403
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5404
5404
|
hidden?: boolean;
|
|
5405
5405
|
} | {
|
|
5406
5406
|
value: string;
|
|
@@ -5461,7 +5461,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
5461
5461
|
} | {
|
|
5462
5462
|
type: "function";
|
|
5463
5463
|
name: string;
|
|
5464
|
-
args: StyleValue;
|
|
5464
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5465
5465
|
hidden?: boolean;
|
|
5466
5466
|
} | {
|
|
5467
5467
|
value: string;
|
|
@@ -5714,7 +5714,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
5714
5714
|
} | {
|
|
5715
5715
|
type: "function";
|
|
5716
5716
|
name: string;
|
|
5717
|
-
args: StyleValue;
|
|
5717
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5718
5718
|
hidden?: boolean;
|
|
5719
5719
|
} | {
|
|
5720
5720
|
value: string;
|
|
@@ -5775,7 +5775,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
5775
5775
|
} | {
|
|
5776
5776
|
type: "function";
|
|
5777
5777
|
name: string;
|
|
5778
|
-
args: StyleValue;
|
|
5778
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5779
5779
|
hidden?: boolean;
|
|
5780
5780
|
} | {
|
|
5781
5781
|
value: string;
|
|
@@ -6008,7 +6008,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
6008
6008
|
} | {
|
|
6009
6009
|
type: "function";
|
|
6010
6010
|
name: string;
|
|
6011
|
-
args: StyleValue;
|
|
6011
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
6012
6012
|
hidden?: boolean;
|
|
6013
6013
|
} | {
|
|
6014
6014
|
value: string;
|
|
@@ -6069,7 +6069,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
6069
6069
|
} | {
|
|
6070
6070
|
type: "function";
|
|
6071
6071
|
name: string;
|
|
6072
|
-
args: StyleValue;
|
|
6072
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
6073
6073
|
hidden?: boolean;
|
|
6074
6074
|
} | {
|
|
6075
6075
|
value: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { Assets } from "./assets";
|
|
3
|
-
import { DataSources } from "./data-sources";
|
|
4
|
-
import { Resources } from "./resources";
|
|
5
|
-
import { Instances } from "./instances";
|
|
6
|
-
import { Props } from "./props";
|
|
7
|
-
import { Breakpoints } from "./breakpoints";
|
|
8
|
-
import { StyleSourceSelections } from "./style-source-selections";
|
|
9
|
-
import { StyleSources } from "./style-sources";
|
|
10
|
-
import { Styles } from "./styles";
|
|
11
|
-
import { Pages } from "./pages";
|
|
2
|
+
import { type Assets } from "./assets";
|
|
3
|
+
import { type DataSources } from "./data-sources";
|
|
4
|
+
import { type Resources } from "./resources";
|
|
5
|
+
import { type Instances } from "./instances";
|
|
6
|
+
import { type Props } from "./props";
|
|
7
|
+
import { type Breakpoints } from "./breakpoints";
|
|
8
|
+
import { type StyleSourceSelections } from "./style-source-selections";
|
|
9
|
+
import { type StyleSources } from "./style-sources";
|
|
10
|
+
import { type Styles } from "./styles";
|
|
11
|
+
import type { Pages } from "./pages";
|
|
12
12
|
/**
|
|
13
13
|
* transferrable and insertable part of webstudio data
|
|
14
14
|
* may contain reusable parts like tokens and custom components
|
|
15
15
|
*/
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const webstudioFragment: z.ZodObject<{
|
|
17
17
|
children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
18
18
|
type: z.ZodLiteral<"id">;
|
|
19
19
|
value: z.ZodString;
|
|
@@ -25055,7 +25055,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
25055
25055
|
id: string;
|
|
25056
25056
|
})[];
|
|
25057
25057
|
}>;
|
|
25058
|
-
export type WebstudioFragment = z.infer<typeof
|
|
25058
|
+
export type WebstudioFragment = z.infer<typeof webstudioFragment>;
|
|
25059
25059
|
/**
|
|
25060
25060
|
* all persisted webstudio data in normalized format
|
|
25061
25061
|
* should be used for composing parts of logic within
|