webstudio 0.134.0 → 0.135.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
CHANGED
|
@@ -733,10 +733,8 @@ ${utilsExport}
|
|
|
733
733
|
for (const redirect of redirects) {
|
|
734
734
|
const redirectPagePath = generateRemixRoute(redirect.old);
|
|
735
735
|
const redirectFileName = `${redirectPagePath}.ts`;
|
|
736
|
-
const content = `
|
|
737
|
-
|
|
738
|
-
export const loader = (arg: LoaderArgs) => {
|
|
739
|
-
return redirect("${redirect.new}", ${redirect.status ?? 301});
|
|
736
|
+
const content = `export const loader = () => {
|
|
737
|
+
return Response.redirect("${redirect.new}", ${redirect.status ?? 301});
|
|
740
738
|
};
|
|
741
739
|
`;
|
|
742
740
|
await ensureFileInPath(join4(routesDir, redirectFileName), content);
|
|
@@ -915,7 +913,7 @@ import makeCLI from "yargs";
|
|
|
915
913
|
// package.json
|
|
916
914
|
var package_default = {
|
|
917
915
|
name: "webstudio",
|
|
918
|
-
version: "0.
|
|
916
|
+
version: "0.135.0",
|
|
919
917
|
description: "Webstudio CLI",
|
|
920
918
|
author: "Webstudio <github@webstudio.is>",
|
|
921
919
|
homepage: "https://webstudio.is",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webstudio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.135.0",
|
|
4
4
|
"description": "Webstudio CLI",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
"title-case": "^4.1.0",
|
|
29
29
|
"yargs": "^17.7.2",
|
|
30
30
|
"zod": "^3.21.4",
|
|
31
|
-
"@webstudio-is/
|
|
32
|
-
"@webstudio-is/
|
|
33
|
-
"@webstudio-is/sdk": "0.
|
|
34
|
-
"@webstudio-is/react-
|
|
35
|
-
"@webstudio-is/sdk-components-react-
|
|
36
|
-
"@webstudio-is/sdk-components-react
|
|
37
|
-
"@webstudio-is/
|
|
31
|
+
"@webstudio-is/http-client": "0.135.0",
|
|
32
|
+
"@webstudio-is/react-sdk": "0.135.0",
|
|
33
|
+
"@webstudio-is/sdk": "0.135.0",
|
|
34
|
+
"@webstudio-is/sdk-components-react-radix": "0.135.0",
|
|
35
|
+
"@webstudio-is/sdk-components-react-remix": "0.135.0",
|
|
36
|
+
"@webstudio-is/sdk-components-react": "0.135.0",
|
|
37
|
+
"@webstudio-is/image": "0.135.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^18.17.1",
|
|
41
41
|
"@types/prompts": "^2.4.5",
|
|
42
42
|
"tsx": "^3.12.8",
|
|
43
43
|
"typescript": "5.2.2",
|
|
44
|
-
"@webstudio-is/
|
|
45
|
-
"@webstudio-is/
|
|
44
|
+
"@webstudio-is/form-handlers": "0.135.0",
|
|
45
|
+
"@webstudio-is/tsconfig": "1.0.7"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"typecheck": "tsc",
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
type ActionArgs,
|
|
7
7
|
type LoaderArgs,
|
|
8
8
|
json,
|
|
9
|
-
redirect,
|
|
10
9
|
} from "@remix-run/server-runtime";
|
|
11
10
|
import { useLoaderData } from "@remix-run/react";
|
|
12
11
|
import type { ProjectMeta } from "@webstudio-is/sdk";
|
|
@@ -43,7 +42,7 @@ export const loader = async (arg: LoaderArgs) => {
|
|
|
43
42
|
pageMeta.status === 301 || pageMeta.status === 302
|
|
44
43
|
? pageMeta.status
|
|
45
44
|
: 302;
|
|
46
|
-
return redirect(pageMeta.redirect, status);
|
|
45
|
+
return Response.redirect(pageMeta.redirect, status);
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
const host =
|
|
@@ -214,18 +213,16 @@ export const links: LinksFunction = () => {
|
|
|
214
213
|
for (const asset of pageFontAssets) {
|
|
215
214
|
result.push({
|
|
216
215
|
rel: "preload",
|
|
217
|
-
href: assetBaseUrl
|
|
216
|
+
href: `${assetBaseUrl}${asset.name}`,
|
|
218
217
|
as: "font",
|
|
218
|
+
crossOrigin: "anonymous",
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
for (const backgroundImageAsset of pageBackgroundImageAssets) {
|
|
223
223
|
result.push({
|
|
224
224
|
rel: "preload",
|
|
225
|
-
href:
|
|
226
|
-
src: backgroundImageAsset.name,
|
|
227
|
-
format: "raw",
|
|
228
|
-
}),
|
|
225
|
+
href: `${assetBaseUrl}${backgroundImageAsset.name}`,
|
|
229
226
|
as: "image",
|
|
230
227
|
});
|
|
231
228
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
"@remix-run/react": "^1.19.2",
|
|
11
11
|
"@remix-run/server-runtime": "^1.19.2",
|
|
12
12
|
"@remix-run/node": "^1.19.2",
|
|
13
|
-
"@webstudio-is/react-sdk": "0.
|
|
14
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
15
|
-
"@webstudio-is/sdk-components-react-remix": "0.
|
|
16
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
17
|
-
"@webstudio-is/form-handlers": "0.
|
|
18
|
-
"@webstudio-is/image": "0.
|
|
19
|
-
"@webstudio-is/sdk": "0.
|
|
13
|
+
"@webstudio-is/react-sdk": "0.135.0",
|
|
14
|
+
"@webstudio-is/sdk-components-react-radix": "0.135.0",
|
|
15
|
+
"@webstudio-is/sdk-components-react-remix": "0.135.0",
|
|
16
|
+
"@webstudio-is/sdk-components-react": "0.135.0",
|
|
17
|
+
"@webstudio-is/form-handlers": "0.135.0",
|
|
18
|
+
"@webstudio-is/image": "0.135.0",
|
|
19
|
+
"@webstudio-is/sdk": "0.135.0",
|
|
20
20
|
"isbot": "^3.6.8",
|
|
21
21
|
"react": "^18.2.0",
|
|
22
22
|
"react-dom": "^18.2.0"
|