webstudio 0.181.0 → 0.185.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/cli.js +32 -24
- package/package.json +20 -20
- package/templates/cloudflare/package.json +2 -2
- package/templates/defaults/package.json +11 -11
- package/templates/netlify-edge-functions/package.json +2 -2
- package/templates/netlify-functions/package.json +1 -1
- package/templates/ssg/package.json +7 -7
package/lib/cli.js
CHANGED
|
@@ -312,7 +312,8 @@ import {
|
|
|
312
312
|
normalizeProps,
|
|
313
313
|
generateRemixRoute as generateRemixRoute2,
|
|
314
314
|
generateRemixParams,
|
|
315
|
-
isCoreComponent
|
|
315
|
+
isCoreComponent,
|
|
316
|
+
coreMetas
|
|
316
317
|
} from "@webstudio-is/react-sdk";
|
|
317
318
|
import {
|
|
318
319
|
createScope,
|
|
@@ -423,6 +424,10 @@ var htmlToJsx = (html) => {
|
|
|
423
424
|
switch (walkNode.type) {
|
|
424
425
|
case "text": {
|
|
425
426
|
const escapedValue = escape(walkNode.value);
|
|
427
|
+
const re = /^\s$/g;
|
|
428
|
+
if (re.test(walkNode.value)) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
426
431
|
result += escapedValue ? "{" + escapedValue + "}" : "";
|
|
427
432
|
break;
|
|
428
433
|
}
|
|
@@ -731,7 +736,9 @@ Please check webstudio --help for more details`
|
|
|
731
736
|
componentSources.set(componentName, entry.source);
|
|
732
737
|
}
|
|
733
738
|
}
|
|
734
|
-
const projectMetas =
|
|
739
|
+
const projectMetas = new Map(
|
|
740
|
+
Object.entries(coreMetas)
|
|
741
|
+
);
|
|
735
742
|
const componentsByPage = {};
|
|
736
743
|
const siteDataByPage = {};
|
|
737
744
|
const fontAssetsByPage = {};
|
|
@@ -820,16 +827,17 @@ Please check webstudio --help for more details`
|
|
|
820
827
|
backgroundImageAssetsByPage[page.id] = backgroundImageAssets;
|
|
821
828
|
}
|
|
822
829
|
const assetsToDownload = [];
|
|
823
|
-
const appDomain = options.preview ? "wstd.work" : "wstd.io";
|
|
824
|
-
const domain = siteData.build.deployment?.destination === "static" ? siteData.build.deployment?.assetsDomain : siteData.build.deployment?.projectDomain;
|
|
825
|
-
if (domain === void 0) {
|
|
826
|
-
throw new Error(`Project domain is missing from the project data`);
|
|
827
|
-
}
|
|
828
|
-
const assetBuildUrl = `https://${domain}.${appDomain}/cgi/asset/`;
|
|
829
|
-
const imageLoader = createImageLoader({
|
|
830
|
-
imageBaseUrl: assetBuildUrl
|
|
831
|
-
});
|
|
832
830
|
if (options.assets === true) {
|
|
831
|
+
const appDomain = options.preview ? "wstd.work" : "wstd.io";
|
|
832
|
+
const domain = siteData.build.deployment?.assetsDomain ?? // fallback to project domain should not be used since 2025-01-01 (for now is used for backward compatibility)
|
|
833
|
+
(siteData.build.deployment?.destination !== "static" ? siteData.build.deployment?.projectDomain : void 0);
|
|
834
|
+
if (domain === void 0) {
|
|
835
|
+
throw new Error(`Project domain is missing from the project data`);
|
|
836
|
+
}
|
|
837
|
+
const assetBuildUrl = `https://${domain}.${appDomain}/cgi/asset/`;
|
|
838
|
+
const imageLoader = createImageLoader({
|
|
839
|
+
imageBaseUrl: assetBuildUrl
|
|
840
|
+
});
|
|
833
841
|
for (const asset of siteData.assets) {
|
|
834
842
|
if (asset.type === "image") {
|
|
835
843
|
const imageSrc = imageLoader({
|
|
@@ -1286,7 +1294,7 @@ import makeCLI from "yargs";
|
|
|
1286
1294
|
// package.json
|
|
1287
1295
|
var package_default = {
|
|
1288
1296
|
name: "webstudio",
|
|
1289
|
-
version: "0.
|
|
1297
|
+
version: "0.185.0",
|
|
1290
1298
|
description: "Webstudio CLI",
|
|
1291
1299
|
author: "Webstudio <github@webstudio.is>",
|
|
1292
1300
|
homepage: "https://webstudio.is",
|
|
@@ -1331,26 +1339,26 @@ var package_default = {
|
|
|
1331
1339
|
execa: "^7.2.0",
|
|
1332
1340
|
"p-limit": "^4.0.0",
|
|
1333
1341
|
parse5: "7.1.2",
|
|
1334
|
-
picocolors: "^1.0
|
|
1342
|
+
picocolors: "^1.1.0",
|
|
1335
1343
|
"strip-indent": "^4.0.0",
|
|
1336
1344
|
yargs: "^17.7.2",
|
|
1337
1345
|
zod: "^3.22.4"
|
|
1338
1346
|
},
|
|
1339
1347
|
devDependencies: {
|
|
1340
1348
|
"@jest/globals": "^29.7.0",
|
|
1341
|
-
"@netlify/remix-adapter": "^2.
|
|
1342
|
-
"@netlify/remix-edge-adapter": "3.
|
|
1343
|
-
"@remix-run/cloudflare": "^2.
|
|
1344
|
-
"@remix-run/cloudflare-pages": "^2.
|
|
1345
|
-
"@remix-run/dev": "^2.
|
|
1346
|
-
"@remix-run/node": "^2.
|
|
1347
|
-
"@remix-run/react": "^2.
|
|
1348
|
-
"@remix-run/server-runtime": "^2.
|
|
1349
|
-
"@types/node": "^
|
|
1349
|
+
"@netlify/remix-adapter": "^2.5.1",
|
|
1350
|
+
"@netlify/remix-edge-adapter": "3.4.2",
|
|
1351
|
+
"@remix-run/cloudflare": "^2.12.1",
|
|
1352
|
+
"@remix-run/cloudflare-pages": "^2.12.1",
|
|
1353
|
+
"@remix-run/dev": "^2.12.1",
|
|
1354
|
+
"@remix-run/node": "^2.12.1",
|
|
1355
|
+
"@remix-run/react": "^2.12.1",
|
|
1356
|
+
"@remix-run/server-runtime": "^2.12.1",
|
|
1357
|
+
"@types/node": "^22.6.1",
|
|
1350
1358
|
"@types/react": "^18.2.70",
|
|
1351
1359
|
"@types/react-dom": "^18.2.25",
|
|
1352
1360
|
"@types/yargs": "^17.0.32",
|
|
1353
|
-
"@vitejs/plugin-react": "^4.3.
|
|
1361
|
+
"@vitejs/plugin-react": "^4.3.2",
|
|
1354
1362
|
"@webstudio-is/jest-config": "workspace:*",
|
|
1355
1363
|
"@webstudio-is/tsconfig": "workspace:*",
|
|
1356
1364
|
react: "18.3.0-canary-14898b6a9-20240318",
|
|
@@ -1358,7 +1366,7 @@ var package_default = {
|
|
|
1358
1366
|
"ts-expect": "^1.3.0",
|
|
1359
1367
|
typescript: "5.5.2",
|
|
1360
1368
|
vike: "^0.4.182",
|
|
1361
|
-
vite: "^5.4.
|
|
1369
|
+
vite: "^5.4.8",
|
|
1362
1370
|
wrangler: "^3.63.2"
|
|
1363
1371
|
}
|
|
1364
1372
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webstudio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.185.0",
|
|
4
4
|
"description": "Webstudio CLI",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -33,39 +33,39 @@
|
|
|
33
33
|
"execa": "^7.2.0",
|
|
34
34
|
"p-limit": "^4.0.0",
|
|
35
35
|
"parse5": "7.1.2",
|
|
36
|
-
"picocolors": "^1.0
|
|
36
|
+
"picocolors": "^1.1.0",
|
|
37
37
|
"strip-indent": "^4.0.0",
|
|
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/sdk": "0.
|
|
43
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
44
|
-
"@webstudio-is/
|
|
45
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
46
|
-
"@webstudio-is/sdk-components-react-remix": "0.
|
|
40
|
+
"@webstudio-is/http-client": "0.185.0",
|
|
41
|
+
"@webstudio-is/image": "0.185.0",
|
|
42
|
+
"@webstudio-is/react-sdk": "0.185.0",
|
|
43
|
+
"@webstudio-is/sdk-components-react": "0.185.0",
|
|
44
|
+
"@webstudio-is/sdk": "0.185.0",
|
|
45
|
+
"@webstudio-is/sdk-components-react-radix": "0.185.0",
|
|
46
|
+
"@webstudio-is/sdk-components-react-remix": "0.185.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@jest/globals": "^29.7.0",
|
|
50
|
-
"@netlify/remix-adapter": "^2.
|
|
51
|
-
"@netlify/remix-edge-adapter": "3.
|
|
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": "^
|
|
50
|
+
"@netlify/remix-adapter": "^2.5.1",
|
|
51
|
+
"@netlify/remix-edge-adapter": "3.4.2",
|
|
52
|
+
"@remix-run/cloudflare": "^2.12.1",
|
|
53
|
+
"@remix-run/cloudflare-pages": "^2.12.1",
|
|
54
|
+
"@remix-run/dev": "^2.12.1",
|
|
55
|
+
"@remix-run/node": "^2.12.1",
|
|
56
|
+
"@remix-run/react": "^2.12.1",
|
|
57
|
+
"@remix-run/server-runtime": "^2.12.1",
|
|
58
|
+
"@types/node": "^22.6.1",
|
|
59
59
|
"@types/react": "^18.2.70",
|
|
60
60
|
"@types/react-dom": "^18.2.25",
|
|
61
61
|
"@types/yargs": "^17.0.32",
|
|
62
|
-
"@vitejs/plugin-react": "^4.3.
|
|
62
|
+
"@vitejs/plugin-react": "^4.3.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
66
|
"typescript": "5.5.2",
|
|
67
67
|
"vike": "^0.4.182",
|
|
68
|
-
"vite": "^5.4.
|
|
68
|
+
"vite": "^5.4.8",
|
|
69
69
|
"wrangler": "^3.63.2",
|
|
70
70
|
"@webstudio-is/jest-config": "1.0.7",
|
|
71
71
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
@@ -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.12.1",
|
|
16
|
+
"@remix-run/cloudflare-pages": "2.12.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@cloudflare/workers-types": "^4.20240620.0",
|
|
@@ -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.12.1",
|
|
12
|
+
"@remix-run/react": "2.12.1",
|
|
13
|
+
"@remix-run/server-runtime": "2.12.1",
|
|
14
|
+
"@webstudio-is/react-sdk": "0.185.0",
|
|
15
|
+
"@webstudio-is/sdk-components-react-radix": "0.185.0",
|
|
16
|
+
"@webstudio-is/sdk-components-react-remix": "0.185.0",
|
|
17
|
+
"@webstudio-is/sdk-components-react": "0.185.0",
|
|
18
|
+
"@webstudio-is/image": "0.185.0",
|
|
19
|
+
"@webstudio-is/sdk": "0.185.0",
|
|
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.12.1",
|
|
26
26
|
"@types/react": "^18.2.70",
|
|
27
27
|
"@types/react-dom": "^18.2.25",
|
|
28
28
|
"typescript": "5.5.2",
|
|
29
|
-
"vite": "^5.4.
|
|
29
|
+
"vite": "^5.4.8"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=20.0.0"
|
|
@@ -8,11 +8,11 @@
|
|
|
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.185.0",
|
|
12
|
+
"@webstudio-is/sdk-components-react-radix": "0.185.0",
|
|
13
|
+
"@webstudio-is/sdk-components-react": "0.185.0",
|
|
14
|
+
"@webstudio-is/image": "0.185.0",
|
|
15
|
+
"@webstudio-is/sdk": "0.185.0",
|
|
16
16
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
17
17
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
18
18
|
"vike": "^0.4.182"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/react": "^18.2.70",
|
|
22
22
|
"@types/react-dom": "^18.2.25",
|
|
23
|
-
"@vitejs/plugin-react": "^4.3.
|
|
23
|
+
"@vitejs/plugin-react": "^4.3.2",
|
|
24
24
|
"typescript": "5.5.2",
|
|
25
|
-
"vite": "^5.4.
|
|
25
|
+
"vite": "^5.4.8"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=20.0.0"
|