@webstudio-is/sdk 0.272.0 → 0.274.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 +7 -7
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const assetType: z.ZodEnum<["font", "image", "file"]>;
|
|
3
|
+
export type AssetType = z.infer<typeof assetType>;
|
|
4
|
+
export declare const fontAsset: z.ZodObject<{
|
|
3
5
|
format: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
|
|
4
6
|
meta: z.ZodUnion<[z.ZodObject<{
|
|
5
7
|
family: z.ZodString;
|
|
@@ -103,8 +105,8 @@ export declare const FontAsset: z.ZodObject<{
|
|
|
103
105
|
filename?: string | undefined;
|
|
104
106
|
description?: string | null | undefined;
|
|
105
107
|
}>;
|
|
106
|
-
export type FontAsset = z.infer<typeof
|
|
107
|
-
export declare const
|
|
108
|
+
export type FontAsset = z.infer<typeof fontAsset>;
|
|
109
|
+
export declare const imageMeta: z.ZodObject<{
|
|
108
110
|
width: z.ZodNumber;
|
|
109
111
|
height: z.ZodNumber;
|
|
110
112
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -114,8 +116,8 @@ export declare const ImageMeta: z.ZodObject<{
|
|
|
114
116
|
width: number;
|
|
115
117
|
height: number;
|
|
116
118
|
}>;
|
|
117
|
-
export type ImageMeta = z.infer<typeof
|
|
118
|
-
export declare const
|
|
119
|
+
export type ImageMeta = z.infer<typeof imageMeta>;
|
|
120
|
+
export declare const imageAsset: z.ZodObject<{
|
|
119
121
|
format: z.ZodString;
|
|
120
122
|
meta: z.ZodObject<{
|
|
121
123
|
width: z.ZodNumber;
|
|
@@ -164,8 +166,8 @@ export declare const ImageAsset: z.ZodObject<{
|
|
|
164
166
|
filename?: string | undefined;
|
|
165
167
|
description?: string | null | undefined;
|
|
166
168
|
}>;
|
|
167
|
-
export type ImageAsset = z.infer<typeof
|
|
168
|
-
export declare const
|
|
169
|
+
export type ImageAsset = z.infer<typeof imageAsset>;
|
|
170
|
+
export declare const fileAsset: z.ZodObject<{
|
|
169
171
|
format: z.ZodString;
|
|
170
172
|
meta: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
171
173
|
type: z.ZodLiteral<"file">;
|
|
@@ -199,8 +201,8 @@ export declare const FileAsset: z.ZodObject<{
|
|
|
199
201
|
filename?: string | undefined;
|
|
200
202
|
description?: string | null | undefined;
|
|
201
203
|
}>;
|
|
202
|
-
export type FileAsset = z.infer<typeof
|
|
203
|
-
export declare const
|
|
204
|
+
export type FileAsset = z.infer<typeof fileAsset>;
|
|
205
|
+
export declare const asset: z.ZodUnion<[z.ZodObject<{
|
|
204
206
|
format: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
|
|
205
207
|
meta: z.ZodUnion<[z.ZodObject<{
|
|
206
208
|
family: z.ZodString;
|
|
@@ -385,8 +387,8 @@ export declare const Asset: z.ZodUnion<[z.ZodObject<{
|
|
|
385
387
|
filename?: string | undefined;
|
|
386
388
|
description?: string | null | undefined;
|
|
387
389
|
}>]>;
|
|
388
|
-
export type Asset = z.infer<typeof
|
|
389
|
-
export declare const
|
|
390
|
+
export type Asset = z.infer<typeof asset>;
|
|
391
|
+
export declare const assets: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
390
392
|
format: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
|
|
391
393
|
meta: z.ZodUnion<[z.ZodObject<{
|
|
392
394
|
family: z.ZodString;
|
|
@@ -571,4 +573,4 @@ export declare const Assets: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
571
573
|
filename?: string | undefined;
|
|
572
574
|
description?: string | null | undefined;
|
|
573
575
|
}>]>>;
|
|
574
|
-
export type Assets = z.infer<typeof
|
|
576
|
+
export type Assets = z.infer<typeof assets>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const breakpoint: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
label: z.ZodString;
|
|
5
5
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -42,8 +42,8 @@ export declare const Breakpoint: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
42
42
|
minWidth?: number | undefined;
|
|
43
43
|
condition?: string | undefined;
|
|
44
44
|
}>;
|
|
45
|
-
export type Breakpoint = z.infer<typeof
|
|
46
|
-
export declare const
|
|
45
|
+
export type Breakpoint = z.infer<typeof breakpoint>;
|
|
46
|
+
export declare const breakpoints: z.ZodMap<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
47
47
|
id: z.ZodString;
|
|
48
48
|
label: z.ZodString;
|
|
49
49
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -86,5 +86,5 @@ export declare const Breakpoints: z.ZodMap<z.ZodString, z.ZodEffects<z.ZodEffect
|
|
|
86
86
|
minWidth?: number | undefined;
|
|
87
87
|
condition?: string | undefined;
|
|
88
88
|
}>>;
|
|
89
|
-
export type Breakpoints = z.infer<typeof
|
|
89
|
+
export type Breakpoints = z.infer<typeof breakpoints>;
|
|
90
90
|
export declare const initialBreakpoints: Array<Breakpoint>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { HtmlTags } from "html-tags";
|
|
3
3
|
import type { Simplify } from "type-fest";
|
|
4
|
-
import {
|
|
5
|
-
export declare const
|
|
4
|
+
import { type CssProperty } from "@webstudio-is/css-engine";
|
|
5
|
+
export declare const presetStyleDecl: z.ZodObject<{
|
|
6
6
|
state: z.ZodOptional<z.ZodString>;
|
|
7
7
|
property: z.ZodString;
|
|
8
8
|
value: z.ZodUnion<[z.ZodObject<{
|
|
@@ -237,12 +237,12 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
237
237
|
}>, z.ZodType<{
|
|
238
238
|
type: "function";
|
|
239
239
|
name: string;
|
|
240
|
-
args: StyleValue;
|
|
240
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
241
241
|
hidden?: boolean;
|
|
242
242
|
}, z.ZodTypeDef, {
|
|
243
243
|
type: "function";
|
|
244
244
|
name: string;
|
|
245
|
-
args: StyleValue;
|
|
245
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
246
246
|
hidden?: boolean;
|
|
247
247
|
}>, z.ZodObject<{
|
|
248
248
|
type: z.ZodLiteral<"var">;
|
|
@@ -395,7 +395,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
395
395
|
} | {
|
|
396
396
|
type: "function";
|
|
397
397
|
name: string;
|
|
398
|
-
args: StyleValue;
|
|
398
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
399
399
|
hidden?: boolean;
|
|
400
400
|
} | {
|
|
401
401
|
value: string;
|
|
@@ -459,7 +459,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
459
459
|
} | {
|
|
460
460
|
type: "function";
|
|
461
461
|
name: string;
|
|
462
|
-
args: StyleValue;
|
|
462
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
463
463
|
hidden?: boolean;
|
|
464
464
|
} | {
|
|
465
465
|
value: string;
|
|
@@ -1532,12 +1532,12 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
1532
1532
|
}>, z.ZodType<{
|
|
1533
1533
|
type: "function";
|
|
1534
1534
|
name: string;
|
|
1535
|
-
args: StyleValue;
|
|
1535
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1536
1536
|
hidden?: boolean;
|
|
1537
1537
|
}, z.ZodTypeDef, {
|
|
1538
1538
|
type: "function";
|
|
1539
1539
|
name: string;
|
|
1540
|
-
args: StyleValue;
|
|
1540
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1541
1541
|
hidden?: boolean;
|
|
1542
1542
|
}>, z.ZodObject<{
|
|
1543
1543
|
type: z.ZodLiteral<"var">;
|
|
@@ -1690,7 +1690,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
1690
1690
|
} | {
|
|
1691
1691
|
type: "function";
|
|
1692
1692
|
name: string;
|
|
1693
|
-
args: StyleValue;
|
|
1693
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1694
1694
|
hidden?: boolean;
|
|
1695
1695
|
} | {
|
|
1696
1696
|
value: string;
|
|
@@ -1751,7 +1751,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
1751
1751
|
} | {
|
|
1752
1752
|
type: "function";
|
|
1753
1753
|
name: string;
|
|
1754
|
-
args: StyleValue;
|
|
1754
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1755
1755
|
hidden?: boolean;
|
|
1756
1756
|
} | {
|
|
1757
1757
|
value: string;
|
|
@@ -1987,7 +1987,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
1987
1987
|
} | {
|
|
1988
1988
|
type: "function";
|
|
1989
1989
|
name: string;
|
|
1990
|
-
args: StyleValue;
|
|
1990
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1991
1991
|
hidden?: boolean;
|
|
1992
1992
|
} | {
|
|
1993
1993
|
value: string;
|
|
@@ -2048,7 +2048,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
2048
2048
|
} | {
|
|
2049
2049
|
type: "function";
|
|
2050
2050
|
name: string;
|
|
2051
|
-
args: StyleValue;
|
|
2051
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2052
2052
|
hidden?: boolean;
|
|
2053
2053
|
} | {
|
|
2054
2054
|
value: string;
|
|
@@ -2429,12 +2429,12 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
2429
2429
|
}>, z.ZodType<{
|
|
2430
2430
|
type: "function";
|
|
2431
2431
|
name: string;
|
|
2432
|
-
args: StyleValue;
|
|
2432
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2433
2433
|
hidden?: boolean;
|
|
2434
2434
|
}, z.ZodTypeDef, {
|
|
2435
2435
|
type: "function";
|
|
2436
2436
|
name: string;
|
|
2437
|
-
args: StyleValue;
|
|
2437
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2438
2438
|
hidden?: boolean;
|
|
2439
2439
|
}>, z.ZodObject<{
|
|
2440
2440
|
type: z.ZodLiteral<"var">;
|
|
@@ -2587,7 +2587,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
2587
2587
|
} | {
|
|
2588
2588
|
type: "function";
|
|
2589
2589
|
name: string;
|
|
2590
|
-
args: StyleValue;
|
|
2590
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2591
2591
|
hidden?: boolean;
|
|
2592
2592
|
} | {
|
|
2593
2593
|
value: string;
|
|
@@ -2651,7 +2651,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
2651
2651
|
} | {
|
|
2652
2652
|
type: "function";
|
|
2653
2653
|
name: string;
|
|
2654
|
-
args: StyleValue;
|
|
2654
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2655
2655
|
hidden?: boolean;
|
|
2656
2656
|
} | {
|
|
2657
2657
|
value: string;
|
|
@@ -2684,12 +2684,12 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
2684
2684
|
}>, z.ZodType<{
|
|
2685
2685
|
type: "function";
|
|
2686
2686
|
name: string;
|
|
2687
|
-
args: StyleValue;
|
|
2687
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2688
2688
|
hidden?: boolean;
|
|
2689
2689
|
}, z.ZodTypeDef, {
|
|
2690
2690
|
type: "function";
|
|
2691
2691
|
name: string;
|
|
2692
|
-
args: StyleValue;
|
|
2692
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
2693
2693
|
hidden?: boolean;
|
|
2694
2694
|
}>, z.ZodObject<{
|
|
2695
2695
|
type: z.ZodLiteral<"guaranteedInvalid">;
|
|
@@ -3881,7 +3881,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
3881
3881
|
} | {
|
|
3882
3882
|
type: "function";
|
|
3883
3883
|
name: string;
|
|
3884
|
-
args: StyleValue;
|
|
3884
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
3885
3885
|
hidden?: boolean;
|
|
3886
3886
|
} | {
|
|
3887
3887
|
value: string;
|
|
@@ -3942,7 +3942,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
3942
3942
|
} | {
|
|
3943
3943
|
type: "function";
|
|
3944
3944
|
name: string;
|
|
3945
|
-
args: StyleValue;
|
|
3945
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
3946
3946
|
hidden?: boolean;
|
|
3947
3947
|
} | {
|
|
3948
3948
|
value: string;
|
|
@@ -4175,7 +4175,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
4175
4175
|
} | {
|
|
4176
4176
|
type: "function";
|
|
4177
4177
|
name: string;
|
|
4178
|
-
args: StyleValue;
|
|
4178
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4179
4179
|
hidden?: boolean;
|
|
4180
4180
|
} | {
|
|
4181
4181
|
value: string;
|
|
@@ -4236,7 +4236,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
4236
4236
|
} | {
|
|
4237
4237
|
type: "function";
|
|
4238
4238
|
name: string;
|
|
4239
|
-
args: StyleValue;
|
|
4239
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4240
4240
|
hidden?: boolean;
|
|
4241
4241
|
} | {
|
|
4242
4242
|
value: string;
|
|
@@ -4486,7 +4486,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
4486
4486
|
} | {
|
|
4487
4487
|
type: "function";
|
|
4488
4488
|
name: string;
|
|
4489
|
-
args: StyleValue;
|
|
4489
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4490
4490
|
hidden?: boolean;
|
|
4491
4491
|
} | {
|
|
4492
4492
|
value: string;
|
|
@@ -4547,7 +4547,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
4547
4547
|
} | {
|
|
4548
4548
|
type: "function";
|
|
4549
4549
|
name: string;
|
|
4550
|
-
args: StyleValue;
|
|
4550
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4551
4551
|
hidden?: boolean;
|
|
4552
4552
|
} | {
|
|
4553
4553
|
value: string;
|
|
@@ -4780,7 +4780,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
4780
4780
|
} | {
|
|
4781
4781
|
type: "function";
|
|
4782
4782
|
name: string;
|
|
4783
|
-
args: StyleValue;
|
|
4783
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4784
4784
|
hidden?: boolean;
|
|
4785
4785
|
} | {
|
|
4786
4786
|
value: string;
|
|
@@ -4841,7 +4841,7 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
4841
4841
|
} | {
|
|
4842
4842
|
type: "function";
|
|
4843
4843
|
name: string;
|
|
4844
|
-
args: StyleValue;
|
|
4844
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
4845
4845
|
hidden?: boolean;
|
|
4846
4846
|
} | {
|
|
4847
4847
|
value: string;
|
|
@@ -5058,12 +5058,12 @@ export declare const PresetStyleDecl: z.ZodObject<{
|
|
|
5058
5058
|
property: string;
|
|
5059
5059
|
state?: string | undefined;
|
|
5060
5060
|
}>;
|
|
5061
|
-
export type PresetStyleDecl = Simplify<Omit<z.infer<typeof
|
|
5061
|
+
export type PresetStyleDecl = Simplify<Omit<z.infer<typeof presetStyleDecl>, "property"> & {
|
|
5062
5062
|
property: CssProperty;
|
|
5063
5063
|
}>;
|
|
5064
5064
|
export type PresetStyle<Tag extends HtmlTags = HtmlTags> = Partial<Record<Tag, PresetStyleDecl[]>>;
|
|
5065
5065
|
export declare const componentCategories: readonly ["general", "typography", "media", "animations", "data", "forms", "localization", "radix", "xml", "text", "other", "hidden", "internal"];
|
|
5066
|
-
export declare const
|
|
5066
|
+
export declare const componentState: z.ZodObject<{
|
|
5067
5067
|
selector: z.ZodString;
|
|
5068
5068
|
label: z.ZodString;
|
|
5069
5069
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5073,8 +5073,8 @@ export declare const ComponentState: z.ZodObject<{
|
|
|
5073
5073
|
label: string;
|
|
5074
5074
|
selector: string;
|
|
5075
5075
|
}>;
|
|
5076
|
-
export type ComponentState = z.infer<typeof
|
|
5077
|
-
export declare const
|
|
5076
|
+
export type ComponentState = z.infer<typeof componentState>;
|
|
5077
|
+
export declare const contentModel: z.ZodObject<{
|
|
5078
5078
|
category: z.ZodUnion<[z.ZodLiteral<"instance">, z.ZodLiteral<"none">]>;
|
|
5079
5079
|
/**
|
|
5080
5080
|
* enforce direct children of category or components
|
|
@@ -5093,8 +5093,8 @@ export declare const ContentModel: z.ZodObject<{
|
|
|
5093
5093
|
category: "instance" | "none";
|
|
5094
5094
|
descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
|
|
5095
5095
|
}>;
|
|
5096
|
-
export type ContentModel = z.infer<typeof
|
|
5097
|
-
export declare const
|
|
5096
|
+
export type ContentModel = z.infer<typeof contentModel>;
|
|
5097
|
+
export declare const wsComponentMeta: z.ZodObject<{
|
|
5098
5098
|
category: z.ZodOptional<z.ZodEnum<["general", "typography", "media", "animations", "data", "forms", "localization", "radix", "xml", "text", "other", "hidden", "internal"]>>;
|
|
5099
5099
|
contentModel: z.ZodOptional<z.ZodObject<{
|
|
5100
5100
|
category: z.ZodUnion<[z.ZodLiteral<"instance">, z.ZodLiteral<"none">]>;
|
|
@@ -5354,12 +5354,12 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
5354
5354
|
}>, z.ZodType<{
|
|
5355
5355
|
type: "function";
|
|
5356
5356
|
name: string;
|
|
5357
|
-
args: StyleValue;
|
|
5357
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5358
5358
|
hidden?: boolean;
|
|
5359
5359
|
}, z.ZodTypeDef, {
|
|
5360
5360
|
type: "function";
|
|
5361
5361
|
name: string;
|
|
5362
|
-
args: StyleValue;
|
|
5362
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5363
5363
|
hidden?: boolean;
|
|
5364
5364
|
}>, z.ZodObject<{
|
|
5365
5365
|
type: z.ZodLiteral<"var">;
|
|
@@ -5512,7 +5512,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
5512
5512
|
} | {
|
|
5513
5513
|
type: "function";
|
|
5514
5514
|
name: string;
|
|
5515
|
-
args: StyleValue;
|
|
5515
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5516
5516
|
hidden?: boolean;
|
|
5517
5517
|
} | {
|
|
5518
5518
|
value: string;
|
|
@@ -5576,7 +5576,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
5576
5576
|
} | {
|
|
5577
5577
|
type: "function";
|
|
5578
5578
|
name: string;
|
|
5579
|
-
args: StyleValue;
|
|
5579
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
5580
5580
|
hidden?: boolean;
|
|
5581
5581
|
} | {
|
|
5582
5582
|
value: string;
|
|
@@ -6649,12 +6649,12 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
6649
6649
|
}>, z.ZodType<{
|
|
6650
6650
|
type: "function";
|
|
6651
6651
|
name: string;
|
|
6652
|
-
args: StyleValue;
|
|
6652
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
6653
6653
|
hidden?: boolean;
|
|
6654
6654
|
}, z.ZodTypeDef, {
|
|
6655
6655
|
type: "function";
|
|
6656
6656
|
name: string;
|
|
6657
|
-
args: StyleValue;
|
|
6657
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
6658
6658
|
hidden?: boolean;
|
|
6659
6659
|
}>, z.ZodObject<{
|
|
6660
6660
|
type: z.ZodLiteral<"var">;
|
|
@@ -6807,7 +6807,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
6807
6807
|
} | {
|
|
6808
6808
|
type: "function";
|
|
6809
6809
|
name: string;
|
|
6810
|
-
args: StyleValue;
|
|
6810
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
6811
6811
|
hidden?: boolean;
|
|
6812
6812
|
} | {
|
|
6813
6813
|
value: string;
|
|
@@ -6868,7 +6868,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
6868
6868
|
} | {
|
|
6869
6869
|
type: "function";
|
|
6870
6870
|
name: string;
|
|
6871
|
-
args: StyleValue;
|
|
6871
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
6872
6872
|
hidden?: boolean;
|
|
6873
6873
|
} | {
|
|
6874
6874
|
value: string;
|
|
@@ -7104,7 +7104,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
7104
7104
|
} | {
|
|
7105
7105
|
type: "function";
|
|
7106
7106
|
name: string;
|
|
7107
|
-
args: StyleValue;
|
|
7107
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
7108
7108
|
hidden?: boolean;
|
|
7109
7109
|
} | {
|
|
7110
7110
|
value: string;
|
|
@@ -7165,7 +7165,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
7165
7165
|
} | {
|
|
7166
7166
|
type: "function";
|
|
7167
7167
|
name: string;
|
|
7168
|
-
args: StyleValue;
|
|
7168
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
7169
7169
|
hidden?: boolean;
|
|
7170
7170
|
} | {
|
|
7171
7171
|
value: string;
|
|
@@ -7546,12 +7546,12 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
7546
7546
|
}>, z.ZodType<{
|
|
7547
7547
|
type: "function";
|
|
7548
7548
|
name: string;
|
|
7549
|
-
args: StyleValue;
|
|
7549
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
7550
7550
|
hidden?: boolean;
|
|
7551
7551
|
}, z.ZodTypeDef, {
|
|
7552
7552
|
type: "function";
|
|
7553
7553
|
name: string;
|
|
7554
|
-
args: StyleValue;
|
|
7554
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
7555
7555
|
hidden?: boolean;
|
|
7556
7556
|
}>, z.ZodObject<{
|
|
7557
7557
|
type: z.ZodLiteral<"var">;
|
|
@@ -7704,7 +7704,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
7704
7704
|
} | {
|
|
7705
7705
|
type: "function";
|
|
7706
7706
|
name: string;
|
|
7707
|
-
args: StyleValue;
|
|
7707
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
7708
7708
|
hidden?: boolean;
|
|
7709
7709
|
} | {
|
|
7710
7710
|
value: string;
|
|
@@ -7768,7 +7768,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
7768
7768
|
} | {
|
|
7769
7769
|
type: "function";
|
|
7770
7770
|
name: string;
|
|
7771
|
-
args: StyleValue;
|
|
7771
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
7772
7772
|
hidden?: boolean;
|
|
7773
7773
|
} | {
|
|
7774
7774
|
value: string;
|
|
@@ -7801,12 +7801,12 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
7801
7801
|
}>, z.ZodType<{
|
|
7802
7802
|
type: "function";
|
|
7803
7803
|
name: string;
|
|
7804
|
-
args: StyleValue;
|
|
7804
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
7805
7805
|
hidden?: boolean;
|
|
7806
7806
|
}, z.ZodTypeDef, {
|
|
7807
7807
|
type: "function";
|
|
7808
7808
|
name: string;
|
|
7809
|
-
args: StyleValue;
|
|
7809
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
7810
7810
|
hidden?: boolean;
|
|
7811
7811
|
}>, z.ZodObject<{
|
|
7812
7812
|
type: z.ZodLiteral<"guaranteedInvalid">;
|
|
@@ -8998,7 +8998,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
8998
8998
|
} | {
|
|
8999
8999
|
type: "function";
|
|
9000
9000
|
name: string;
|
|
9001
|
-
args: StyleValue;
|
|
9001
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
9002
9002
|
hidden?: boolean;
|
|
9003
9003
|
} | {
|
|
9004
9004
|
value: string;
|
|
@@ -9059,7 +9059,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
9059
9059
|
} | {
|
|
9060
9060
|
type: "function";
|
|
9061
9061
|
name: string;
|
|
9062
|
-
args: StyleValue;
|
|
9062
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
9063
9063
|
hidden?: boolean;
|
|
9064
9064
|
} | {
|
|
9065
9065
|
value: string;
|
|
@@ -9292,7 +9292,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
9292
9292
|
} | {
|
|
9293
9293
|
type: "function";
|
|
9294
9294
|
name: string;
|
|
9295
|
-
args: StyleValue;
|
|
9295
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
9296
9296
|
hidden?: boolean;
|
|
9297
9297
|
} | {
|
|
9298
9298
|
value: string;
|
|
@@ -9353,7 +9353,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
9353
9353
|
} | {
|
|
9354
9354
|
type: "function";
|
|
9355
9355
|
name: string;
|
|
9356
|
-
args: StyleValue;
|
|
9356
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
9357
9357
|
hidden?: boolean;
|
|
9358
9358
|
} | {
|
|
9359
9359
|
value: string;
|
|
@@ -9603,7 +9603,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
9603
9603
|
} | {
|
|
9604
9604
|
type: "function";
|
|
9605
9605
|
name: string;
|
|
9606
|
-
args: StyleValue;
|
|
9606
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
9607
9607
|
hidden?: boolean;
|
|
9608
9608
|
} | {
|
|
9609
9609
|
value: string;
|
|
@@ -9664,7 +9664,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
9664
9664
|
} | {
|
|
9665
9665
|
type: "function";
|
|
9666
9666
|
name: string;
|
|
9667
|
-
args: StyleValue;
|
|
9667
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
9668
9668
|
hidden?: boolean;
|
|
9669
9669
|
} | {
|
|
9670
9670
|
value: string;
|
|
@@ -9897,7 +9897,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
9897
9897
|
} | {
|
|
9898
9898
|
type: "function";
|
|
9899
9899
|
name: string;
|
|
9900
|
-
args: StyleValue;
|
|
9900
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
9901
9901
|
hidden?: boolean;
|
|
9902
9902
|
} | {
|
|
9903
9903
|
value: string;
|
|
@@ -9958,7 +9958,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
9958
9958
|
} | {
|
|
9959
9959
|
type: "function";
|
|
9960
9960
|
name: string;
|
|
9961
|
-
args: StyleValue;
|
|
9961
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
9962
9962
|
hidden?: boolean;
|
|
9963
9963
|
} | {
|
|
9964
9964
|
value: string;
|
|
@@ -11015,7 +11015,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
11015
11015
|
} | {
|
|
11016
11016
|
type: "function";
|
|
11017
11017
|
name: string;
|
|
11018
|
-
args: StyleValue;
|
|
11018
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
11019
11019
|
hidden?: boolean;
|
|
11020
11020
|
} | {
|
|
11021
11021
|
value: string;
|
|
@@ -11076,7 +11076,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
11076
11076
|
} | {
|
|
11077
11077
|
type: "function";
|
|
11078
11078
|
name: string;
|
|
11079
|
-
args: StyleValue;
|
|
11079
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
11080
11080
|
hidden?: boolean;
|
|
11081
11081
|
} | {
|
|
11082
11082
|
value: string;
|
|
@@ -11309,7 +11309,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
11309
11309
|
} | {
|
|
11310
11310
|
type: "function";
|
|
11311
11311
|
name: string;
|
|
11312
|
-
args: StyleValue;
|
|
11312
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
11313
11313
|
hidden?: boolean;
|
|
11314
11314
|
} | {
|
|
11315
11315
|
value: string;
|
|
@@ -11370,7 +11370,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
11370
11370
|
} | {
|
|
11371
11371
|
type: "function";
|
|
11372
11372
|
name: string;
|
|
11373
|
-
args: StyleValue;
|
|
11373
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
11374
11374
|
hidden?: boolean;
|
|
11375
11375
|
} | {
|
|
11376
11376
|
value: string;
|
|
@@ -11834,7 +11834,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
11834
11834
|
} | {
|
|
11835
11835
|
type: "function";
|
|
11836
11836
|
name: string;
|
|
11837
|
-
args: StyleValue;
|
|
11837
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
11838
11838
|
hidden?: boolean;
|
|
11839
11839
|
} | {
|
|
11840
11840
|
value: string;
|
|
@@ -11895,7 +11895,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
11895
11895
|
} | {
|
|
11896
11896
|
type: "function";
|
|
11897
11897
|
name: string;
|
|
11898
|
-
args: StyleValue;
|
|
11898
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
11899
11899
|
hidden?: boolean;
|
|
11900
11900
|
} | {
|
|
11901
11901
|
value: string;
|
|
@@ -12128,7 +12128,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
12128
12128
|
} | {
|
|
12129
12129
|
type: "function";
|
|
12130
12130
|
name: string;
|
|
12131
|
-
args: StyleValue;
|
|
12131
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
12132
12132
|
hidden?: boolean;
|
|
12133
12133
|
} | {
|
|
12134
12134
|
value: string;
|
|
@@ -12189,7 +12189,7 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
12189
12189
|
} | {
|
|
12190
12190
|
type: "function";
|
|
12191
12191
|
name: string;
|
|
12192
|
-
args: StyleValue;
|
|
12192
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
12193
12193
|
hidden?: boolean;
|
|
12194
12194
|
} | {
|
|
12195
12195
|
value: string;
|
|
@@ -12412,6 +12412,6 @@ export declare const WsComponentMeta: z.ZodObject<{
|
|
|
12412
12412
|
}[] | undefined;
|
|
12413
12413
|
initialProps?: string[] | undefined;
|
|
12414
12414
|
}>;
|
|
12415
|
-
export type WsComponentMeta = Omit<z.infer<typeof
|
|
12415
|
+
export type WsComponentMeta = Omit<z.infer<typeof wsComponentMeta>, "presetStyle"> & {
|
|
12416
12416
|
presetStyle?: PresetStyle;
|
|
12417
12417
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const dataSourceVariableValue: z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"number">;
|
|
4
4
|
value: z.ZodNumber;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -45,7 +45,7 @@ export declare const DataSourceVariableValue: z.ZodUnion<[z.ZodObject<{
|
|
|
45
45
|
type: "json";
|
|
46
46
|
value?: unknown;
|
|
47
47
|
}>]>;
|
|
48
|
-
export declare const
|
|
48
|
+
export declare const dataSource: z.ZodUnion<[z.ZodObject<{
|
|
49
49
|
type: z.ZodLiteral<"variable">;
|
|
50
50
|
id: z.ZodString;
|
|
51
51
|
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
@@ -172,8 +172,8 @@ export declare const DataSource: z.ZodUnion<[z.ZodObject<{
|
|
|
172
172
|
resourceId: string;
|
|
173
173
|
scopeInstanceId?: string | undefined;
|
|
174
174
|
}>]>;
|
|
175
|
-
export type DataSource = z.infer<typeof
|
|
176
|
-
export declare const
|
|
175
|
+
export type DataSource = z.infer<typeof dataSource>;
|
|
176
|
+
export declare const dataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
177
177
|
type: z.ZodLiteral<"variable">;
|
|
178
178
|
id: z.ZodString;
|
|
179
179
|
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
@@ -300,4 +300,4 @@ export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<
|
|
|
300
300
|
resourceId: string;
|
|
301
301
|
scopeInstanceId?: string | undefined;
|
|
302
302
|
}>]>>;
|
|
303
|
-
export type DataSources = z.infer<typeof
|
|
303
|
+
export type DataSources = z.infer<typeof dataSources>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
3
|
-
export type Templates = z.infer<typeof
|
|
4
|
-
export declare const
|
|
2
|
+
export declare const templates: z.ZodEnum<["docker", "vercel", "netlify", "ssg", "ssg-netlify", "ssg-vercel"]>;
|
|
3
|
+
export type Templates = z.infer<typeof templates>;
|
|
4
|
+
export declare const deployment: z.ZodUnion<[z.ZodObject<{
|
|
5
5
|
destination: z.ZodLiteral<"static">;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
assetsDomain: z.ZodString;
|
|
@@ -38,4 +38,4 @@ export declare const Deployment: z.ZodUnion<[z.ZodObject<{
|
|
|
38
38
|
projectDomain?: string | undefined;
|
|
39
39
|
excludeWstdDomainFromSearch?: boolean | undefined;
|
|
40
40
|
}>]>;
|
|
41
|
-
export type Deployment = z.infer<typeof
|
|
41
|
+
export type Deployment = z.infer<typeof deployment>;
|