@valbuild/ui 0.23.0 → 0.25.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
@@ -33,20 +33,16 @@
|
|
|
33
33
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
34
34
|
"@radix-ui/react-toggle": "^1.0.3",
|
|
35
35
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
36
|
-
"@
|
|
37
|
-
"@types/react": "^18.0.26",
|
|
38
|
-
"@valbuild/core": "~0.23.0",
|
|
36
|
+
"@valbuild/core": "~0.25.0",
|
|
39
37
|
"class-variance-authority": "^0.7.0",
|
|
40
38
|
"classnames": "^2.3.2",
|
|
41
39
|
"clsx": "^2.0.0",
|
|
42
40
|
"cmdk": "^0.2.0",
|
|
43
41
|
"date-fns": "^2.30.0",
|
|
44
|
-
"esbuild": "^0.17.19",
|
|
45
42
|
"lexical": "^0.12.2",
|
|
46
43
|
"lucide-react": "^0.290.0",
|
|
47
44
|
"marked": "^9.0.3",
|
|
48
45
|
"react-day-picker": "^8.9.1",
|
|
49
|
-
"react-dom": "^18.2.0",
|
|
50
46
|
"react-error-boundary": "^4.0.11",
|
|
51
47
|
"react-feather": "^2.0.10",
|
|
52
48
|
"react-hook-form": "^7.47.0",
|
|
@@ -61,6 +57,8 @@
|
|
|
61
57
|
"zod": "^3.22.4"
|
|
62
58
|
},
|
|
63
59
|
"devDependencies": {
|
|
60
|
+
"@types/express": "^4.17.17",
|
|
61
|
+
"@types/react": "^18.0.26",
|
|
64
62
|
"@lexical/headless": "^0.10.0",
|
|
65
63
|
"@rollup/plugin-babel": "^6.0.4",
|
|
66
64
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
@@ -84,8 +82,6 @@
|
|
|
84
82
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
85
83
|
"postcss": "^8.4.21",
|
|
86
84
|
"prop-types": "^15.8.1",
|
|
87
|
-
"react": "^18.2.0",
|
|
88
|
-
"react-test-renderer": "^18.2.0",
|
|
89
85
|
"rollup": "^3.17.3",
|
|
90
86
|
"rollup-plugin-dts": "^5.3.0",
|
|
91
87
|
"storybook": "^7.0.12",
|
|
@@ -93,7 +89,8 @@
|
|
|
93
89
|
"vite": "^4.4.5"
|
|
94
90
|
},
|
|
95
91
|
"peerDependencies": {
|
|
96
|
-
"react": ">=
|
|
92
|
+
"react": ">=18.2.0",
|
|
93
|
+
"react-dom": ">=18.2.0"
|
|
97
94
|
},
|
|
98
95
|
"peerDependenciesMeta": {
|
|
99
96
|
"@types/express": {
|
|
@@ -21,17 +21,11 @@ function createRequestHandler() {
|
|
|
21
21
|
} else {
|
|
22
22
|
if (Object.keys(files).includes(req.url)) {
|
|
23
23
|
if (req.url.endsWith(".js")) {
|
|
24
|
-
res.header({ "Content-Type": "application/javascript" }).end(
|
|
25
|
-
Buffer.from(files[files[req.url], "base64"]).toString("utf-8")
|
|
26
|
-
);
|
|
24
|
+
res.header({ "Content-Type": "application/javascript" }).end(Buffer.from(files[req.url], "base64").toString("utf-8"));
|
|
27
25
|
} else if (req.url.endsWith(".css")) {
|
|
28
|
-
res.header({ "Content-Type": "text/css" }).end(
|
|
29
|
-
Buffer.from(files[files[req.url], "base64"]).toString("utf-8")
|
|
30
|
-
);
|
|
26
|
+
res.header({ "Content-Type": "text/css" }).end(Buffer.from(files[req.url], "base64").toString("utf-8"));
|
|
31
27
|
} else {
|
|
32
|
-
res.end(
|
|
33
|
-
Buffer.from(files[files[req.url], "base64"]).toString("utf-8")
|
|
34
|
-
);
|
|
28
|
+
res.end(Buffer.from(files[req.url], "base64").toString("utf-8"));
|
|
35
29
|
}
|
|
36
30
|
} else {
|
|
37
31
|
next();
|
|
@@ -19,17 +19,11 @@ function createRequestHandler() {
|
|
|
19
19
|
} else {
|
|
20
20
|
if (Object.keys(files).includes(req.url)) {
|
|
21
21
|
if (req.url.endsWith(".js")) {
|
|
22
|
-
res.header({ "Content-Type": "application/javascript" }).end(
|
|
23
|
-
Buffer.from(files[files[req.url], "base64"]).toString("utf-8")
|
|
24
|
-
);
|
|
22
|
+
res.header({ "Content-Type": "application/javascript" }).end(Buffer.from(files[req.url], "base64").toString("utf-8"));
|
|
25
23
|
} else if (req.url.endsWith(".css")) {
|
|
26
|
-
res.header({ "Content-Type": "text/css" }).end(
|
|
27
|
-
Buffer.from(files[files[req.url], "base64"]).toString("utf-8")
|
|
28
|
-
);
|
|
24
|
+
res.header({ "Content-Type": "text/css" }).end(Buffer.from(files[req.url], "base64").toString("utf-8"));
|
|
29
25
|
} else {
|
|
30
|
-
res.end(
|
|
31
|
-
Buffer.from(files[files[req.url], "base64"]).toString("utf-8")
|
|
32
|
-
);
|
|
26
|
+
res.end(Buffer.from(files[req.url], "base64").toString("utf-8"));
|
|
33
27
|
}
|
|
34
28
|
} else {
|
|
35
29
|
next();
|
package/src/vite-server.ts
CHANGED
|
@@ -26,19 +26,13 @@ export function createRequestHandler(): RequestHandler {
|
|
|
26
26
|
if (req.url.endsWith(".js")) {
|
|
27
27
|
res
|
|
28
28
|
.header({ "Content-Type": "application/javascript" })
|
|
29
|
-
.end(
|
|
30
|
-
Buffer.from(files[(files[req.url], "base64")]).toString("utf-8")
|
|
31
|
-
);
|
|
29
|
+
.end(Buffer.from(files[req.url], "base64").toString("utf-8"));
|
|
32
30
|
} else if (req.url.endsWith(".css")) {
|
|
33
31
|
res
|
|
34
32
|
.header({ "Content-Type": "text/css" })
|
|
35
|
-
.end(
|
|
36
|
-
Buffer.from(files[(files[req.url], "base64")]).toString("utf-8")
|
|
37
|
-
);
|
|
33
|
+
.end(Buffer.from(files[req.url], "base64").toString("utf-8"));
|
|
38
34
|
} else {
|
|
39
|
-
res.end(
|
|
40
|
-
Buffer.from(files[(files[req.url], "base64")]).toString("utf-8")
|
|
41
|
-
);
|
|
35
|
+
res.end(Buffer.from(files[req.url], "base64").toString("utf-8"));
|
|
42
36
|
}
|
|
43
37
|
} else {
|
|
44
38
|
next();
|