@webstudio-is/css-data 0.29.0 → 0.30.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/cjs/schema.cjs +0 -8
- package/lib/schema.js +0 -8
- package/package.json +3 -3
- package/src/schema.ts +1 -13
package/lib/cjs/schema.cjs
CHANGED
|
@@ -18,8 +18,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var schema_exports = {};
|
|
20
20
|
__export(schema_exports, {
|
|
21
|
-
Breakpoint: () => Breakpoint,
|
|
22
|
-
Breakpoints: () => Breakpoints,
|
|
23
21
|
CssRule: () => CssRule,
|
|
24
22
|
ImageValue: () => ImageValue,
|
|
25
23
|
SharedStyleValue: () => SharedStyleValue,
|
|
@@ -107,9 +105,3 @@ const CssRule = import_zod.z.object({
|
|
|
107
105
|
style: Style,
|
|
108
106
|
breakpoint: import_zod.z.optional(import_zod.z.string())
|
|
109
107
|
});
|
|
110
|
-
const Breakpoint = import_zod.z.object({
|
|
111
|
-
id: import_zod.z.string(),
|
|
112
|
-
label: import_zod.z.string(),
|
|
113
|
-
minWidth: import_zod.z.number()
|
|
114
|
-
});
|
|
115
|
-
const Breakpoints = import_zod.z.array(Breakpoint);
|
package/lib/schema.js
CHANGED
|
@@ -79,15 +79,7 @@ const CssRule = z.object({
|
|
|
79
79
|
style: Style,
|
|
80
80
|
breakpoint: z.optional(z.string())
|
|
81
81
|
});
|
|
82
|
-
const Breakpoint = z.object({
|
|
83
|
-
id: z.string(),
|
|
84
|
-
label: z.string(),
|
|
85
|
-
minWidth: z.number()
|
|
86
|
-
});
|
|
87
|
-
const Breakpoints = z.array(Breakpoint);
|
|
88
82
|
export {
|
|
89
|
-
Breakpoint,
|
|
90
|
-
Breakpoints,
|
|
91
83
|
CssRule,
|
|
92
84
|
ImageValue,
|
|
93
85
|
SharedStyleValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/css-data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "CSS Data",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"camelcase": "^6.3.0",
|
|
11
11
|
"css-tree": "^2.3.1",
|
|
12
12
|
"mdn-data": "2.0.30",
|
|
13
|
-
"typescript": "4.
|
|
13
|
+
"typescript": "4.9.5",
|
|
14
14
|
"zod": "^3.19.1",
|
|
15
|
-
"@webstudio-is/asset-uploader": "^0.
|
|
15
|
+
"@webstudio-is/asset-uploader": "^0.30.0",
|
|
16
16
|
"@webstudio-is/scripts": "^0.0.0",
|
|
17
17
|
"@webstudio-is/tsconfig": "^1.0.1"
|
|
18
18
|
},
|
package/src/schema.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { units } from "./__generated__/units";
|
|
2
|
-
import { properties } from "./__generated__/properties";
|
|
2
|
+
import type { properties } from "./__generated__/properties";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { ImageAsset } from "@webstudio-is/asset-uploader";
|
|
5
5
|
|
|
@@ -152,15 +152,3 @@ export const CssRule = z.object({
|
|
|
152
152
|
});
|
|
153
153
|
|
|
154
154
|
export type CssRule = z.infer<typeof CssRule>;
|
|
155
|
-
|
|
156
|
-
export const Breakpoint = z.object({
|
|
157
|
-
id: z.string(),
|
|
158
|
-
label: z.string(),
|
|
159
|
-
minWidth: z.number(),
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
export type Breakpoint = z.infer<typeof Breakpoint>;
|
|
163
|
-
|
|
164
|
-
export const Breakpoints = z.array(Breakpoint);
|
|
165
|
-
|
|
166
|
-
export type Breakpoints = z.infer<typeof Breakpoints>;
|