webstudio 0.281.0 → 0.282.1
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 +809 -336
- package/package.json +18 -16
- package/templates/cloudflare/package.json +1 -1
- package/templates/defaults/app/root.tsx +2 -1
- package/templates/defaults/package.json +8 -8
- package/templates/react-router/app/root.tsx +2 -1
- package/templates/react-router/package.json +8 -8
- package/templates/react-router/vite.config.ts +3 -0
- package/templates/react-router-cloudflare/package.json +1 -1
- package/templates/ssg/package.json +6 -6
- package/templates/ssg/renderer/+onRenderHtml.tsx +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webstudio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.282.1",
|
|
4
4
|
"description": "Webstudio CLI",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"warn-once": "^0.1.1",
|
|
45
45
|
"yargs": "^17.7.2",
|
|
46
46
|
"zod": "^4.4.3",
|
|
47
|
-
"@webstudio-is/
|
|
48
|
-
"@webstudio-is/
|
|
49
|
-
"@webstudio-is/
|
|
50
|
-
"@webstudio-is/
|
|
47
|
+
"@webstudio-is/project-migrations": "0.282.1",
|
|
48
|
+
"@webstudio-is/protocol": "0.282.1",
|
|
49
|
+
"@webstudio-is/http-client": "0.282.1",
|
|
50
|
+
"@webstudio-is/sync-client": "0.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@cloudflare/vite-plugin": "^1.1.0",
|
|
@@ -85,24 +85,26 @@
|
|
|
85
85
|
"vite": "^6.3.4",
|
|
86
86
|
"vitest": "^3.1.2",
|
|
87
87
|
"wrangler": "^3.63.2",
|
|
88
|
-
"@webstudio-is/
|
|
89
|
-
"@webstudio-is/
|
|
88
|
+
"@webstudio-is/fonts": "0.282.1",
|
|
89
|
+
"@webstudio-is/image": "0.282.1",
|
|
90
|
+
"@webstudio-is/css-engine": "0.282.1",
|
|
90
91
|
"@webstudio-is/project-build": "0.0.0",
|
|
91
|
-
"@webstudio-is/sdk
|
|
92
|
-
"@webstudio-is/sdk-components-
|
|
93
|
-
"@webstudio-is/sdk": "0.
|
|
94
|
-
"@webstudio-is/
|
|
95
|
-
"@webstudio-is/sdk-components-react-
|
|
96
|
-
"@webstudio-is/sdk-components-react-
|
|
97
|
-
"@webstudio-is/react-sdk": "0.281.0",
|
|
98
|
-
"@webstudio-is/sdk-components-registry": "0.281.0",
|
|
92
|
+
"@webstudio-is/sdk": "0.282.1",
|
|
93
|
+
"@webstudio-is/sdk-components-animation": "0.282.1",
|
|
94
|
+
"@webstudio-is/sdk-components-react": "0.282.1",
|
|
95
|
+
"@webstudio-is/react-sdk": "0.282.1",
|
|
96
|
+
"@webstudio-is/sdk-components-react-router": "0.282.1",
|
|
97
|
+
"@webstudio-is/sdk-components-react-radix": "0.282.1",
|
|
99
98
|
"@webstudio-is/tsconfig": "1.0.7",
|
|
100
|
-
"@webstudio-is/
|
|
99
|
+
"@webstudio-is/sdk-components-registry": "0.282.1",
|
|
100
|
+
"@webstudio-is/wsauth": "0.282.1",
|
|
101
|
+
"@webstudio-is/sdk-components-react-remix": "0.282.1"
|
|
101
102
|
},
|
|
102
103
|
"scripts": {
|
|
103
104
|
"typecheck": "tsc --noEmit",
|
|
104
105
|
"generate-docs": "tsx scripts/generate-docs.ts && oxfmt src/docs.generated.ts",
|
|
105
106
|
"build": "pnpm generate-docs && rm -rf lib && vite build",
|
|
107
|
+
"evaluations": "tsx --conditions=webstudio evaluations/high-impact/run-local-agent.ts",
|
|
106
108
|
"test": "vitest run",
|
|
107
109
|
"test:release-smoke": "pnpm build && tsx --conditions=webstudio scripts/release-smoke.ts",
|
|
108
110
|
"test:release-smoke:model": "WEBSTUDIO_RELEASE_SMOKE_MODEL_EVAL_REQUIRED=1 pnpm test:release-smoke",
|
|
@@ -8,7 +8,7 @@ import type {
|
|
|
8
8
|
import { redirectRequest } from "./redirect-url";
|
|
9
9
|
// @todo think about how to make __generated__ typeable
|
|
10
10
|
// @ts-ignore
|
|
11
|
-
import { CustomCode, projectId, lastPublished } from "./__generated__/_index";
|
|
11
|
+
import { CustomCode, projectId, projectVersion, lastPublished } from "./__generated__/_index";
|
|
12
12
|
// @ts-ignore
|
|
13
13
|
import { redirects } from "./__generated__/$resources.redirects";
|
|
14
14
|
|
|
@@ -46,6 +46,7 @@ const Root = () => {
|
|
|
46
46
|
<html
|
|
47
47
|
lang={lang}
|
|
48
48
|
data-ws-project={projectId}
|
|
49
|
+
data-ws-version={projectVersion}
|
|
49
50
|
data-ws-last-published={lastPublished}
|
|
50
51
|
>
|
|
51
52
|
<head>
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"@remix-run/node": "2.16.5",
|
|
12
12
|
"@remix-run/react": "2.16.5",
|
|
13
13
|
"@remix-run/server-runtime": "2.16.5",
|
|
14
|
-
"@webstudio-is/image": "0.
|
|
15
|
-
"@webstudio-is/react-sdk": "0.
|
|
16
|
-
"@webstudio-is/sdk": "0.
|
|
17
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
18
|
-
"@webstudio-is/sdk-components-animation": "0.
|
|
19
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
20
|
-
"@webstudio-is/sdk-components-react-remix": "0.
|
|
21
|
-
"@webstudio-is/wsauth": "0.
|
|
14
|
+
"@webstudio-is/image": "0.282.1",
|
|
15
|
+
"@webstudio-is/react-sdk": "0.282.1",
|
|
16
|
+
"@webstudio-is/sdk": "0.282.1",
|
|
17
|
+
"@webstudio-is/sdk-components-react": "0.282.1",
|
|
18
|
+
"@webstudio-is/sdk-components-animation": "0.282.1",
|
|
19
|
+
"@webstudio-is/sdk-components-react-radix": "0.282.1",
|
|
20
|
+
"@webstudio-is/sdk-components-react-remix": "0.282.1",
|
|
21
|
+
"@webstudio-is/wsauth": "0.282.1",
|
|
22
22
|
"isbot": "^5.1.25",
|
|
23
23
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
24
24
|
"react-dom": "18.3.0-canary-14898b6a9-20240318"
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import { redirectRequest } from "./redirect-url";
|
|
12
12
|
// @todo think about how to make __generated__ typeable
|
|
13
13
|
// @ts-ignore
|
|
14
|
-
import { CustomCode, projectId, lastPublished } from "./__generated__/_index";
|
|
14
|
+
import { CustomCode, projectId, projectVersion, lastPublished } from "./__generated__/_index";
|
|
15
15
|
// @ts-ignore
|
|
16
16
|
import { redirects } from "./__generated__/$resources.redirects";
|
|
17
17
|
|
|
@@ -49,6 +49,7 @@ const Root = () => {
|
|
|
49
49
|
<html
|
|
50
50
|
lang={lang}
|
|
51
51
|
data-ws-project={projectId}
|
|
52
|
+
data-ws-version={projectVersion}
|
|
52
53
|
data-ws-last-published={lastPublished}
|
|
53
54
|
>
|
|
54
55
|
<head>
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"@react-router/fs-routes": "^7.5.3",
|
|
14
14
|
"@react-router/node": "^7.5.3",
|
|
15
15
|
"@react-router/serve": "^7.5.3",
|
|
16
|
-
"@webstudio-is/image": "0.
|
|
17
|
-
"@webstudio-is/react-sdk": "0.
|
|
18
|
-
"@webstudio-is/sdk": "0.
|
|
19
|
-
"@webstudio-is/sdk-components-animation": "0.
|
|
20
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
21
|
-
"@webstudio-is/sdk-components-react-router": "0.
|
|
22
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
23
|
-
"@webstudio-is/wsauth": "0.
|
|
16
|
+
"@webstudio-is/image": "0.282.1",
|
|
17
|
+
"@webstudio-is/react-sdk": "0.282.1",
|
|
18
|
+
"@webstudio-is/sdk": "0.282.1",
|
|
19
|
+
"@webstudio-is/sdk-components-animation": "0.282.1",
|
|
20
|
+
"@webstudio-is/sdk-components-react-radix": "0.282.1",
|
|
21
|
+
"@webstudio-is/sdk-components-react-router": "0.282.1",
|
|
22
|
+
"@webstudio-is/sdk-components-react": "0.282.1",
|
|
23
|
+
"@webstudio-is/wsauth": "0.282.1",
|
|
24
24
|
"isbot": "^5.1.25",
|
|
25
25
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
26
26
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
@@ -6,6 +6,9 @@ const sourceConditions =
|
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
plugins: [reactRouter()],
|
|
9
|
+
server: {
|
|
10
|
+
hmr: process.env.WEBSTUDIO_PREVIEW_HMR === "disabled" ? false : undefined,
|
|
11
|
+
},
|
|
9
12
|
resolve: {
|
|
10
13
|
conditions: [...sourceConditions, "browser", "development|production"],
|
|
11
14
|
},
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"typecheck": "tsc --noEmit"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@webstudio-is/image": "0.
|
|
13
|
-
"@webstudio-is/react-sdk": "0.
|
|
14
|
-
"@webstudio-is/sdk": "0.
|
|
15
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
16
|
-
"@webstudio-is/sdk-components-animation": "0.
|
|
17
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
12
|
+
"@webstudio-is/image": "0.282.1",
|
|
13
|
+
"@webstudio-is/react-sdk": "0.282.1",
|
|
14
|
+
"@webstudio-is/sdk": "0.282.1",
|
|
15
|
+
"@webstudio-is/sdk-components-react": "0.282.1",
|
|
16
|
+
"@webstudio-is/sdk-components-animation": "0.282.1",
|
|
17
|
+
"@webstudio-is/sdk-components-react-radix": "0.282.1",
|
|
18
18
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
19
19
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
20
20
|
"vike": "^0.4.229"
|
|
@@ -4,6 +4,7 @@ import type { OnRenderHtmlSync } from "vike/types";
|
|
|
4
4
|
import {
|
|
5
5
|
CustomCode,
|
|
6
6
|
projectId,
|
|
7
|
+
projectVersion,
|
|
7
8
|
lastPublished,
|
|
8
9
|
// @todo think about how to make __generated__ typeable
|
|
9
10
|
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
|
|
@@ -19,6 +20,7 @@ export const onRenderHtml: OnRenderHtmlSync = (pageContext) => {
|
|
|
19
20
|
<html
|
|
20
21
|
lang={lang}
|
|
21
22
|
data-ws-project={projectId}
|
|
23
|
+
data-ws-version={projectVersion}
|
|
22
24
|
data-ws-last-published={lastPublished}
|
|
23
25
|
>
|
|
24
26
|
<head>
|