webstudio 0.189.0 → 0.191.4
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/cli.js +21 -20
- package/package.json +23 -24
- package/templates/cloudflare/package.json +2 -2
- package/templates/defaults/app/route-templates/html.tsx +1 -1
- package/templates/defaults/app/route-templates/xml.tsx +1 -1
- package/templates/defaults/package.json +12 -12
- package/templates/netlify-edge-functions/package.json +1 -1
- package/templates/netlify-functions/package.json +1 -1
- package/templates/ssg/app/route-templates/html/+data.ts +1 -1
- package/templates/ssg/package.json +9 -9
package/lib/cli.js
CHANGED
|
@@ -917,11 +917,13 @@ Please check webstudio --help for more details`
|
|
|
917
917
|
break;
|
|
918
918
|
case "xml":
|
|
919
919
|
{
|
|
920
|
-
componentImports = `import { XmlNode } from "@webstudio-is/sdk-components-react";
|
|
920
|
+
componentImports = `import { XmlNode, XmlTime } from "@webstudio-is/sdk-components-react";
|
|
921
921
|
`;
|
|
922
922
|
xmlPresentationComponents += Array.from(componentsSet).map(
|
|
923
923
|
([shortName, component]) => scope.getName(component, shortName)
|
|
924
|
-
).filter(
|
|
924
|
+
).filter(
|
|
925
|
+
(scopedName) => scopedName !== "XmlNode" && scopedName !== "XmlTime"
|
|
926
|
+
).map(
|
|
925
927
|
(scopedName) => scopedName === "Body" ? (
|
|
926
928
|
// Using <svg> prevents React from hoisting elements like <title>, <meta>, and <link>
|
|
927
929
|
// out of their intended scope during rendering.
|
|
@@ -1183,6 +1185,7 @@ var build = async (options) => {
|
|
|
1183
1185
|
import { chdir, cwd as cwd4 } from "node:process";
|
|
1184
1186
|
import { join as join7 } from "node:path";
|
|
1185
1187
|
import pc2 from "picocolors";
|
|
1188
|
+
import { x } from "tinyexec";
|
|
1186
1189
|
import {
|
|
1187
1190
|
cancel as cancel2,
|
|
1188
1191
|
confirm,
|
|
@@ -1192,7 +1195,6 @@ import {
|
|
|
1192
1195
|
spinner as spinner3,
|
|
1193
1196
|
text as text2
|
|
1194
1197
|
} from "@clack/prompts";
|
|
1195
|
-
import { $ } from "execa";
|
|
1196
1198
|
var exitIfCancelled = (value) => {
|
|
1197
1199
|
if (isCancel2(value)) {
|
|
1198
1200
|
cancel2("Project initialization is cancelled");
|
|
@@ -1264,7 +1266,7 @@ var initFlow = async (options) => {
|
|
|
1264
1266
|
if (shouldInstallDeps === true) {
|
|
1265
1267
|
const install = spinner3();
|
|
1266
1268
|
install.start("Installing dependencies");
|
|
1267
|
-
await
|
|
1269
|
+
await x("npm", ["install"]);
|
|
1268
1270
|
install.stop("Installed dependencies");
|
|
1269
1271
|
}
|
|
1270
1272
|
log4.message();
|
|
@@ -1302,7 +1304,7 @@ import makeCLI from "yargs";
|
|
|
1302
1304
|
// package.json
|
|
1303
1305
|
var package_default = {
|
|
1304
1306
|
name: "webstudio",
|
|
1305
|
-
version: "0.
|
|
1307
|
+
version: "0.191.4",
|
|
1306
1308
|
description: "Webstudio CLI",
|
|
1307
1309
|
author: "Webstudio <github@webstudio.is>",
|
|
1308
1310
|
homepage: "https://webstudio.is",
|
|
@@ -1326,7 +1328,7 @@ var package_default = {
|
|
|
1326
1328
|
scripts: {
|
|
1327
1329
|
typecheck: "tsc",
|
|
1328
1330
|
build: "rm -rf lib && esbuild src/cli.ts --outdir=lib --bundle --format=esm --packages=external",
|
|
1329
|
-
test: "
|
|
1331
|
+
test: "vitest run"
|
|
1330
1332
|
},
|
|
1331
1333
|
license: "AGPL-3.0-or-later",
|
|
1332
1334
|
engines: {
|
|
@@ -1344,37 +1346,36 @@ var package_default = {
|
|
|
1344
1346
|
"change-case": "^5.4.4",
|
|
1345
1347
|
deepmerge: "^4.3.1",
|
|
1346
1348
|
"env-paths": "^3.0.0",
|
|
1347
|
-
execa: "^7.2.0",
|
|
1348
1349
|
"p-limit": "^4.0.0",
|
|
1349
1350
|
parse5: "7.1.2",
|
|
1350
1351
|
picocolors: "^1.1.0",
|
|
1351
1352
|
"strip-indent": "^4.0.0",
|
|
1353
|
+
tinyexec: "^0.3.1",
|
|
1352
1354
|
yargs: "^17.7.2",
|
|
1353
1355
|
zod: "^3.22.4"
|
|
1354
1356
|
},
|
|
1355
1357
|
devDependencies: {
|
|
1356
|
-
"@jest/globals": "^29.7.0",
|
|
1357
1358
|
"@netlify/remix-adapter": "^2.5.1",
|
|
1358
1359
|
"@netlify/remix-edge-adapter": "3.4.2",
|
|
1359
|
-
"@remix-run/cloudflare": "^2.
|
|
1360
|
-
"@remix-run/cloudflare-pages": "^2.
|
|
1361
|
-
"@remix-run/dev": "^2.
|
|
1362
|
-
"@remix-run/node": "^2.
|
|
1363
|
-
"@remix-run/react": "^2.
|
|
1364
|
-
"@remix-run/server-runtime": "^2.
|
|
1365
|
-
"@types/node": "^22.
|
|
1360
|
+
"@remix-run/cloudflare": "^2.15.0",
|
|
1361
|
+
"@remix-run/cloudflare-pages": "^2.15.0",
|
|
1362
|
+
"@remix-run/dev": "^2.15.0",
|
|
1363
|
+
"@remix-run/node": "^2.15.0",
|
|
1364
|
+
"@remix-run/react": "^2.15.0",
|
|
1365
|
+
"@remix-run/server-runtime": "^2.15.0",
|
|
1366
|
+
"@types/node": "^22.9.3",
|
|
1366
1367
|
"@types/react": "^18.2.70",
|
|
1367
1368
|
"@types/react-dom": "^18.2.25",
|
|
1368
1369
|
"@types/yargs": "^17.0.33",
|
|
1369
|
-
"@vitejs/plugin-react": "^4.3.
|
|
1370
|
-
"@webstudio-is/jest-config": "workspace:*",
|
|
1370
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
1371
1371
|
"@webstudio-is/tsconfig": "workspace:*",
|
|
1372
|
+
prettier: "3.4.2",
|
|
1372
1373
|
react: "18.3.0-canary-14898b6a9-20240318",
|
|
1373
1374
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
1374
1375
|
"ts-expect": "^1.3.0",
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1376
|
+
vike: "^0.4.206",
|
|
1377
|
+
vite: "^5.4.11",
|
|
1378
|
+
vitest: "^2.1.8",
|
|
1378
1379
|
wrangler: "^3.63.2"
|
|
1379
1380
|
}
|
|
1380
1381
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webstudio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.191.4",
|
|
4
4
|
"description": "Webstudio CLI",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -30,49 +30,48 @@
|
|
|
30
30
|
"change-case": "^5.4.4",
|
|
31
31
|
"deepmerge": "^4.3.1",
|
|
32
32
|
"env-paths": "^3.0.0",
|
|
33
|
-
"execa": "^7.2.0",
|
|
34
33
|
"p-limit": "^4.0.0",
|
|
35
34
|
"parse5": "7.1.2",
|
|
36
35
|
"picocolors": "^1.1.0",
|
|
37
36
|
"strip-indent": "^4.0.0",
|
|
37
|
+
"tinyexec": "^0.3.1",
|
|
38
38
|
"yargs": "^17.7.2",
|
|
39
39
|
"zod": "^3.22.4",
|
|
40
|
-
"@webstudio-is/http-client": "0.
|
|
41
|
-
"@webstudio-is/image": "0.
|
|
42
|
-
"@webstudio-is/react-sdk": "0.
|
|
43
|
-
"@webstudio-is/sdk": "0.
|
|
44
|
-
"@webstudio-is/sdk-components-react-
|
|
45
|
-
"@webstudio-is/sdk-components-react-
|
|
46
|
-
"@webstudio-is/sdk
|
|
40
|
+
"@webstudio-is/http-client": "0.191.4",
|
|
41
|
+
"@webstudio-is/image": "0.191.4",
|
|
42
|
+
"@webstudio-is/react-sdk": "0.191.4",
|
|
43
|
+
"@webstudio-is/sdk-components-react": "0.191.4",
|
|
44
|
+
"@webstudio-is/sdk-components-react-remix": "0.191.4",
|
|
45
|
+
"@webstudio-is/sdk-components-react-radix": "0.191.4",
|
|
46
|
+
"@webstudio-is/sdk": "0.191.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@jest/globals": "^29.7.0",
|
|
50
49
|
"@netlify/remix-adapter": "^2.5.1",
|
|
51
50
|
"@netlify/remix-edge-adapter": "3.4.2",
|
|
52
|
-
"@remix-run/cloudflare": "^2.
|
|
53
|
-
"@remix-run/cloudflare-pages": "^2.
|
|
54
|
-
"@remix-run/dev": "^2.
|
|
55
|
-
"@remix-run/node": "^2.
|
|
56
|
-
"@remix-run/react": "^2.
|
|
57
|
-
"@remix-run/server-runtime": "^2.
|
|
58
|
-
"@types/node": "^22.
|
|
51
|
+
"@remix-run/cloudflare": "^2.15.0",
|
|
52
|
+
"@remix-run/cloudflare-pages": "^2.15.0",
|
|
53
|
+
"@remix-run/dev": "^2.15.0",
|
|
54
|
+
"@remix-run/node": "^2.15.0",
|
|
55
|
+
"@remix-run/react": "^2.15.0",
|
|
56
|
+
"@remix-run/server-runtime": "^2.15.0",
|
|
57
|
+
"@types/node": "^22.9.3",
|
|
59
58
|
"@types/react": "^18.2.70",
|
|
60
59
|
"@types/react-dom": "^18.2.25",
|
|
61
60
|
"@types/yargs": "^17.0.33",
|
|
62
|
-
"@vitejs/plugin-react": "^4.3.
|
|
61
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
62
|
+
"prettier": "3.4.2",
|
|
63
63
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
64
64
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
65
65
|
"ts-expect": "^1.3.0",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
66
|
+
"vike": "^0.4.206",
|
|
67
|
+
"vite": "^5.4.11",
|
|
68
|
+
"vitest": "^2.1.8",
|
|
69
69
|
"wrangler": "^3.63.2",
|
|
70
|
-
"@webstudio-is/tsconfig": "1.0.7"
|
|
71
|
-
"@webstudio-is/jest-config": "1.0.7"
|
|
70
|
+
"@webstudio-is/tsconfig": "1.0.7"
|
|
72
71
|
},
|
|
73
72
|
"scripts": {
|
|
74
73
|
"typecheck": "tsc",
|
|
75
74
|
"build": "rm -rf lib && esbuild src/cli.ts --outdir=lib --bundle --format=esm --packages=external",
|
|
76
|
-
"test": "
|
|
75
|
+
"test": "vitest run"
|
|
77
76
|
}
|
|
78
77
|
}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"build-cf-types": "wrangler types"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@remix-run/cloudflare": "2.
|
|
16
|
-
"@remix-run/cloudflare-pages": "2.
|
|
15
|
+
"@remix-run/cloudflare": "2.15.0",
|
|
16
|
+
"@remix-run/cloudflare-pages": "2.15.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@cloudflare/workers-types": "^4.20240620.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { renderToString } from "react-dom/server";
|
|
2
2
|
import { type LoaderFunctionArgs, redirect } from "@remix-run/server-runtime";
|
|
3
|
-
import { isLocalResource, loadResources } from "@webstudio-is/sdk";
|
|
3
|
+
import { isLocalResource, loadResources } from "@webstudio-is/sdk/runtime";
|
|
4
4
|
import { ReactSdkContext } from "@webstudio-is/react-sdk/runtime";
|
|
5
5
|
import { Page } from "__CLIENT__";
|
|
6
6
|
import { getPageMeta, getRemixParams, getResources } from "__SERVER__";
|
|
@@ -8,25 +8,25 @@
|
|
|
8
8
|
"typecheck": "tsc"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@remix-run/node": "2.
|
|
12
|
-
"@remix-run/react": "2.
|
|
13
|
-
"@remix-run/server-runtime": "2.
|
|
14
|
-
"@webstudio-is/react-sdk": "0.
|
|
15
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
16
|
-
"@webstudio-is/sdk-components-react-remix": "0.
|
|
17
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
18
|
-
"@webstudio-is/image": "0.
|
|
19
|
-
"@webstudio-is/sdk": "0.
|
|
11
|
+
"@remix-run/node": "2.15.0",
|
|
12
|
+
"@remix-run/react": "2.15.0",
|
|
13
|
+
"@remix-run/server-runtime": "2.15.0",
|
|
14
|
+
"@webstudio-is/react-sdk": "0.191.4",
|
|
15
|
+
"@webstudio-is/sdk-components-react-radix": "0.191.4",
|
|
16
|
+
"@webstudio-is/sdk-components-react-remix": "0.191.4",
|
|
17
|
+
"@webstudio-is/sdk-components-react": "0.191.4",
|
|
18
|
+
"@webstudio-is/image": "0.191.4",
|
|
19
|
+
"@webstudio-is/sdk": "0.191.4",
|
|
20
20
|
"isbot": "^5.1.17",
|
|
21
21
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
22
22
|
"react-dom": "18.3.0-canary-14898b6a9-20240318"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@remix-run/dev": "2.
|
|
25
|
+
"@remix-run/dev": "2.15.0",
|
|
26
26
|
"@types/react": "^18.2.70",
|
|
27
27
|
"@types/react-dom": "^18.2.25",
|
|
28
|
-
"typescript": "5.
|
|
29
|
-
"vite": "^5.4.
|
|
28
|
+
"typescript": "5.7.2",
|
|
29
|
+
"vite": "^5.4.11"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=20.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PageContextServer } from "vike/types";
|
|
2
2
|
import { redirect } from "vike/abort";
|
|
3
|
-
import { loadResources } from "@webstudio-is/sdk";
|
|
3
|
+
import { loadResources } from "@webstudio-is/sdk/runtime";
|
|
4
4
|
import { getPageMeta, getResources } from "__SERVER__";
|
|
5
5
|
|
|
6
6
|
export const data = async (pageContext: PageContextServer) => {
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
"typecheck": "tsc"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@webstudio-is/react-sdk": "0.
|
|
12
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
13
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
14
|
-
"@webstudio-is/image": "0.
|
|
15
|
-
"@webstudio-is/sdk": "0.
|
|
11
|
+
"@webstudio-is/react-sdk": "0.191.4",
|
|
12
|
+
"@webstudio-is/sdk-components-react-radix": "0.191.4",
|
|
13
|
+
"@webstudio-is/sdk-components-react": "0.191.4",
|
|
14
|
+
"@webstudio-is/image": "0.191.4",
|
|
15
|
+
"@webstudio-is/sdk": "0.191.4",
|
|
16
16
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
17
17
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
18
|
-
"vike": "^0.4.
|
|
18
|
+
"vike": "^0.4.206"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/react": "^18.2.70",
|
|
22
22
|
"@types/react-dom": "^18.2.25",
|
|
23
|
-
"@vitejs/plugin-react": "^4.3.
|
|
24
|
-
"typescript": "5.
|
|
25
|
-
"vite": "^5.4.
|
|
23
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
24
|
+
"typescript": "5.7.2",
|
|
25
|
+
"vite": "^5.4.11"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=20.0.0"
|