webstudio 0.181.0 → 0.182.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 +12 -11
- package/package.json +9 -9
- package/templates/defaults/package.json +6 -6
- package/templates/ssg/package.json +5 -5
package/lib/cli.js
CHANGED
|
@@ -820,16 +820,17 @@ Please check webstudio --help for more details`
|
|
|
820
820
|
backgroundImageAssetsByPage[page.id] = backgroundImageAssets;
|
|
821
821
|
}
|
|
822
822
|
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
823
|
if (options.assets === true) {
|
|
824
|
+
const appDomain = options.preview ? "wstd.work" : "wstd.io";
|
|
825
|
+
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)
|
|
826
|
+
(siteData.build.deployment?.destination !== "static" ? siteData.build.deployment?.projectDomain : void 0);
|
|
827
|
+
if (domain === void 0) {
|
|
828
|
+
throw new Error(`Project domain is missing from the project data`);
|
|
829
|
+
}
|
|
830
|
+
const assetBuildUrl = `https://${domain}.${appDomain}/cgi/asset/`;
|
|
831
|
+
const imageLoader = createImageLoader({
|
|
832
|
+
imageBaseUrl: assetBuildUrl
|
|
833
|
+
});
|
|
833
834
|
for (const asset of siteData.assets) {
|
|
834
835
|
if (asset.type === "image") {
|
|
835
836
|
const imageSrc = imageLoader({
|
|
@@ -1286,7 +1287,7 @@ import makeCLI from "yargs";
|
|
|
1286
1287
|
// package.json
|
|
1287
1288
|
var package_default = {
|
|
1288
1289
|
name: "webstudio",
|
|
1289
|
-
version: "0.
|
|
1290
|
+
version: "0.182.0",
|
|
1290
1291
|
description: "Webstudio CLI",
|
|
1291
1292
|
author: "Webstudio <github@webstudio.is>",
|
|
1292
1293
|
homepage: "https://webstudio.is",
|
|
@@ -1346,7 +1347,7 @@ var package_default = {
|
|
|
1346
1347
|
"@remix-run/node": "^2.11.0",
|
|
1347
1348
|
"@remix-run/react": "^2.11.0",
|
|
1348
1349
|
"@remix-run/server-runtime": "^2.11.0",
|
|
1349
|
-
"@types/node": "^
|
|
1350
|
+
"@types/node": "^22.6.1",
|
|
1350
1351
|
"@types/react": "^18.2.70",
|
|
1351
1352
|
"@types/react-dom": "^18.2.25",
|
|
1352
1353
|
"@types/yargs": "^17.0.32",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webstudio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.182.0",
|
|
4
4
|
"description": "Webstudio CLI",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -37,13 +37,13 @@
|
|
|
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
|
|
44
|
-
"@webstudio-is/react
|
|
45
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
46
|
-
"@webstudio-is/sdk-components-react-remix": "0.
|
|
40
|
+
"@webstudio-is/http-client": "0.182.0",
|
|
41
|
+
"@webstudio-is/image": "0.182.0",
|
|
42
|
+
"@webstudio-is/react-sdk": "0.182.0",
|
|
43
|
+
"@webstudio-is/sdk": "0.182.0",
|
|
44
|
+
"@webstudio-is/sdk-components-react": "0.182.0",
|
|
45
|
+
"@webstudio-is/sdk-components-react-radix": "0.182.0",
|
|
46
|
+
"@webstudio-is/sdk-components-react-remix": "0.182.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@jest/globals": "^29.7.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@remix-run/node": "^2.11.0",
|
|
56
56
|
"@remix-run/react": "^2.11.0",
|
|
57
57
|
"@remix-run/server-runtime": "^2.11.0",
|
|
58
|
-
"@types/node": "^
|
|
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",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"@remix-run/node": "2.11.0",
|
|
12
12
|
"@remix-run/react": "2.11.0",
|
|
13
13
|
"@remix-run/server-runtime": "2.11.0",
|
|
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.
|
|
14
|
+
"@webstudio-is/react-sdk": "0.182.0",
|
|
15
|
+
"@webstudio-is/sdk-components-react-radix": "0.182.0",
|
|
16
|
+
"@webstudio-is/sdk-components-react-remix": "0.182.0",
|
|
17
|
+
"@webstudio-is/sdk-components-react": "0.182.0",
|
|
18
|
+
"@webstudio-is/image": "0.182.0",
|
|
19
|
+
"@webstudio-is/sdk": "0.182.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"
|
|
@@ -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.182.0",
|
|
12
|
+
"@webstudio-is/sdk-components-react-radix": "0.182.0",
|
|
13
|
+
"@webstudio-is/sdk-components-react": "0.182.0",
|
|
14
|
+
"@webstudio-is/image": "0.182.0",
|
|
15
|
+
"@webstudio-is/sdk": "0.182.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"
|