webstudio 0.0.0-5558cd0 → 0.0.0-5844e28

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/README.md CHANGED
@@ -129,13 +129,7 @@ You can configure the project to support netlify serverless/edge-functions respe
129
129
  You can manually change it using the `build` command. For serverless functions:
130
130
 
131
131
  ```bash
132
- webstudio build --template netlify-functions
133
- ```
134
-
135
- and for edge functions:
136
-
137
- ```bash
138
- webstudio build --template netlify-edge-functions
132
+ webstudio build --template netlify
139
133
  ```
140
134
 
141
135
  ## Important Notes
package/lib/cli.js CHANGED
@@ -96,16 +96,6 @@ const PROJECT_TEMPLATES = [
96
96
  label: "Netlify",
97
97
  expand: ["react-router", "react-router-netlify"]
98
98
  },
99
- {
100
- value: "netlify-functions",
101
- label: "Netlify Functions (legacy)",
102
- expand: ["defaults", "netlify-functions"]
103
- },
104
- {
105
- value: "netlify-edge-functions",
106
- label: "Netlify Edge Functions (legacy)",
107
- expand: ["defaults", "netlify-edge-functions"]
108
- },
109
99
  {
110
100
  value: "ssg",
111
101
  label: "Static Site Generation (SSG)"
@@ -4610,7 +4600,7 @@ const meta$4 = {
4610
4600
  const meta$3 = {
4611
4601
  category: "hidden",
4612
4602
  icon: ResourceIcon,
4613
- type: "container",
4603
+ type: "embed",
4614
4604
  constraints: {
4615
4605
  relation: "parent",
4616
4606
  component: { $eq: "HeadSlot" }
@@ -4619,7 +4609,7 @@ const meta$3 = {
4619
4609
  const meta$2 = {
4620
4610
  category: "hidden",
4621
4611
  icon: WindowInfoIcon,
4622
- type: "container",
4612
+ type: "embed",
4623
4613
  constraints: {
4624
4614
  relation: "parent",
4625
4615
  component: { $eq: "HeadSlot" }
@@ -6417,8 +6407,6 @@ const getDeploymentInstructions = (deployTarget) => {
6417
6407
  case "vercel":
6418
6408
  return `Run ${pc.dim("npx vercel")} to publish on Vercel.`;
6419
6409
  case "netlify":
6420
- case "netlify-functions":
6421
- case "netlify-edge-functions":
6422
6410
  return [
6423
6411
  `To deploy to Netlify, run the following commands: `,
6424
6412
  `Run ${pc.dim("npx netlify-cli login")} to login to Netlify.`,
@@ -6431,7 +6419,7 @@ const getDeploymentInstructions = (deployTarget) => {
6431
6419
  }
6432
6420
  };
6433
6421
  const name = "webstudio";
6434
- const version = "0.0.0-5558cd0";
6422
+ const version = "0.0.0-5844e28";
6435
6423
  const description = "Webstudio CLI";
6436
6424
  const author = "Webstudio <github@webstudio.is>";
6437
6425
  const homepage = "https://webstudio.is";
@@ -6462,7 +6450,7 @@ const engines = {
6462
6450
  node: ">=20.12"
6463
6451
  };
6464
6452
  const dependencies = {
6465
- "@clack/prompts": "^0.9.1",
6453
+ "@clack/prompts": "^0.10.0",
6466
6454
  "@emotion/hash": "^0.9.2",
6467
6455
  acorn: "^8.14.0",
6468
6456
  "acorn-walk": "^8.3.4",
@@ -6479,8 +6467,6 @@ const dependencies = {
6479
6467
  zod: "^3.22.4"
6480
6468
  };
6481
6469
  const devDependencies = {
6482
- "@netlify/remix-adapter": "^2.5.1",
6483
- "@netlify/remix-edge-adapter": "3.4.2",
6484
6470
  "@netlify/vite-plugin-react-router": "^1.0.0",
6485
6471
  "@react-router/dev": "^7.1.5",
6486
6472
  "@react-router/fs-routes": "^7.1.5",
@@ -6493,6 +6479,7 @@ const devDependencies = {
6493
6479
  "@types/react": "^18.2.70",
6494
6480
  "@types/react-dom": "^18.2.25",
6495
6481
  "@types/yargs": "^17.0.33",
6482
+ "@vercel/react-router": "^1.0.2",
6496
6483
  "@vitejs/plugin-react": "^4.3.4",
6497
6484
  "@webstudio-is/http-client": "workspace:*",
6498
6485
  "@webstudio-is/image": "workspace:*",
@@ -6504,14 +6491,14 @@ const devDependencies = {
6504
6491
  "@webstudio-is/sdk-components-react-remix": "workspace:*",
6505
6492
  "@webstudio-is/sdk-components-react-router": "workspace:*",
6506
6493
  "@webstudio-is/tsconfig": "workspace:*",
6507
- h3: "^1.14.0",
6494
+ h3: "^1.15.0",
6508
6495
  ipx: "^3.0.1",
6509
6496
  prettier: "3.4.2",
6510
6497
  react: "18.3.0-canary-14898b6a9-20240318",
6511
6498
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
6512
6499
  "react-router": "^7.1.5",
6513
6500
  "ts-expect": "^1.3.0",
6514
- vike: "^0.4.220",
6501
+ vike: "^0.4.222",
6515
6502
  vite: "^5.4.11",
6516
6503
  vitest: "^3.0.4",
6517
6504
  wrangler: "^3.63.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webstudio",
3
- "version": "0.0.0-5558cd0",
3
+ "version": "0.0.0-5844e28",
4
4
  "description": "Webstudio CLI",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -26,7 +26,7 @@
26
26
  "node": ">=20.12"
27
27
  },
28
28
  "dependencies": {
29
- "@clack/prompts": "^0.9.1",
29
+ "@clack/prompts": "^0.10.0",
30
30
  "@emotion/hash": "^0.9.2",
31
31
  "acorn": "^8.14.0",
32
32
  "acorn-walk": "^8.3.4",
@@ -43,8 +43,6 @@
43
43
  "zod": "^3.22.4"
44
44
  },
45
45
  "devDependencies": {
46
- "@netlify/remix-adapter": "^2.5.1",
47
- "@netlify/remix-edge-adapter": "3.4.2",
48
46
  "@netlify/vite-plugin-react-router": "^1.0.0",
49
47
  "@react-router/dev": "^7.1.5",
50
48
  "@react-router/fs-routes": "^7.1.5",
@@ -57,28 +55,29 @@
57
55
  "@types/react": "^18.2.70",
58
56
  "@types/react-dom": "^18.2.25",
59
57
  "@types/yargs": "^17.0.33",
58
+ "@vercel/react-router": "^1.0.2",
60
59
  "@vitejs/plugin-react": "^4.3.4",
61
- "h3": "^1.14.0",
60
+ "h3": "^1.15.0",
62
61
  "ipx": "^3.0.1",
63
62
  "prettier": "3.4.2",
64
63
  "react": "18.3.0-canary-14898b6a9-20240318",
65
64
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
66
65
  "react-router": "^7.1.5",
67
66
  "ts-expect": "^1.3.0",
68
- "vike": "^0.4.220",
67
+ "vike": "^0.4.222",
69
68
  "vite": "^5.4.11",
70
69
  "vitest": "^3.0.4",
71
70
  "wrangler": "^3.63.2",
72
- "@webstudio-is/http-client": "0.0.0-5558cd0",
73
- "@webstudio-is/image": "0.0.0-5558cd0",
74
- "@webstudio-is/react-sdk": "0.0.0-5558cd0",
75
- "@webstudio-is/sdk": "0.0.0-5558cd0",
76
- "@webstudio-is/sdk-components-animation": "0.0.0-5558cd0",
77
- "@webstudio-is/sdk-components-react": "0.0.0-5558cd0",
78
- "@webstudio-is/sdk-components-react-remix": "0.0.0-5558cd0",
79
- "@webstudio-is/sdk-components-react-radix": "0.0.0-5558cd0",
80
- "@webstudio-is/sdk-components-react-router": "0.0.0-5558cd0",
81
- "@webstudio-is/tsconfig": "1.0.7"
71
+ "@webstudio-is/http-client": "0.0.0-5844e28",
72
+ "@webstudio-is/image": "0.0.0-5844e28",
73
+ "@webstudio-is/sdk": "0.0.0-5844e28",
74
+ "@webstudio-is/sdk-components-animation": "0.0.0-5844e28",
75
+ "@webstudio-is/sdk-components-react": "0.0.0-5844e28",
76
+ "@webstudio-is/react-sdk": "0.0.0-5844e28",
77
+ "@webstudio-is/sdk-components-react-radix": "0.0.0-5844e28",
78
+ "@webstudio-is/sdk-components-react-remix": "0.0.0-5844e28",
79
+ "@webstudio-is/tsconfig": "1.0.7",
80
+ "@webstudio-is/sdk-components-react-router": "0.0.0-5844e28"
82
81
  },
83
82
  "scripts": {
84
83
  "typecheck": "tsc",
@@ -11,13 +11,13 @@
11
11
  "@remix-run/node": "2.15.2",
12
12
  "@remix-run/react": "2.15.2",
13
13
  "@remix-run/server-runtime": "2.15.2",
14
- "@webstudio-is/image": "0.0.0-5558cd0",
15
- "@webstudio-is/react-sdk": "0.0.0-5558cd0",
16
- "@webstudio-is/sdk": "0.0.0-5558cd0",
17
- "@webstudio-is/sdk-components-react": "0.0.0-5558cd0",
18
- "@webstudio-is/sdk-components-animation": "0.0.0-5558cd0",
19
- "@webstudio-is/sdk-components-react-radix": "0.0.0-5558cd0",
20
- "@webstudio-is/sdk-components-react-remix": "0.0.0-5558cd0",
14
+ "@webstudio-is/image": "0.0.0-5844e28",
15
+ "@webstudio-is/react-sdk": "0.0.0-5844e28",
16
+ "@webstudio-is/sdk": "0.0.0-5844e28",
17
+ "@webstudio-is/sdk-components-react": "0.0.0-5844e28",
18
+ "@webstudio-is/sdk-components-animation": "0.0.0-5844e28",
19
+ "@webstudio-is/sdk-components-react-radix": "0.0.0-5844e28",
20
+ "@webstudio-is/sdk-components-react-remix": "0.0.0-5844e28",
21
21
  "isbot": "^5.1.22",
22
22
  "react": "18.3.0-canary-14898b6a9-20240318",
23
23
  "react-dom": "18.3.0-canary-14898b6a9-20240318"
@@ -10,13 +10,13 @@
10
10
  "dependencies": {
11
11
  "@react-router/dev": "^7.1.5",
12
12
  "@react-router/fs-routes": "^7.1.5",
13
- "@webstudio-is/image": "0.0.0-5558cd0",
14
- "@webstudio-is/react-sdk": "0.0.0-5558cd0",
15
- "@webstudio-is/sdk": "0.0.0-5558cd0",
16
- "@webstudio-is/sdk-components-animation": "0.0.0-5558cd0",
17
- "@webstudio-is/sdk-components-react-radix": "0.0.0-5558cd0",
18
- "@webstudio-is/sdk-components-react-router": "0.0.0-5558cd0",
19
- "@webstudio-is/sdk-components-react": "0.0.0-5558cd0",
13
+ "@webstudio-is/image": "0.0.0-5844e28",
14
+ "@webstudio-is/react-sdk": "0.0.0-5844e28",
15
+ "@webstudio-is/sdk": "0.0.0-5844e28",
16
+ "@webstudio-is/sdk-components-animation": "0.0.0-5844e28",
17
+ "@webstudio-is/sdk-components-react-radix": "0.0.0-5844e28",
18
+ "@webstudio-is/sdk-components-react-router": "0.0.0-5844e28",
19
+ "@webstudio-is/sdk-components-react": "0.0.0-5844e28",
20
20
  "isbot": "^5.1.22",
21
21
  "react": "18.3.0-canary-14898b6a9-20240318",
22
22
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
@@ -5,7 +5,7 @@
5
5
  "dependencies": {
6
6
  "@react-router/node": "^7.1.5",
7
7
  "@react-router/serve": "^7.1.5",
8
- "h3": "^1.14.0",
8
+ "h3": "^1.15.0",
9
9
  "ipx": "^3.0.1"
10
10
  }
11
11
  }
@@ -8,7 +8,7 @@ export const assetBaseUrl = "/assets/";
8
8
  * @type {import("@webstudio-is/image").ImageLoader}
9
9
  */
10
10
  export const imageLoader = (props) => {
11
- if (process.env.NODE_ENV !== "production") {
11
+ if (import.meta.env.DEV) {
12
12
  return props.src;
13
13
  }
14
14
 
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "scripts": {
3
- "start": "npx vercel dev",
4
3
  "deploy": "npx vercel deploy"
5
4
  },
6
5
  "dependencies": {
7
- "@react-router/node": "^7.1.5"
6
+ "@react-router/node": "^7.1.5",
7
+ "@vercel/react-router": "^1.0.2"
8
8
  }
9
9
  }
@@ -0,0 +1,6 @@
1
+ import type { Config } from "@react-router/dev/config";
2
+ import { vercelPreset } from "@vercel/react-router/vite";
3
+
4
+ export default {
5
+ presets: [vercelPreset()],
6
+ } satisfies Config;
@@ -1,4 +1,5 @@
1
1
  {
2
+ "framework": "vite",
2
3
  "images": {
3
4
  "domains": [],
4
5
  "sizes": [
@@ -8,15 +8,15 @@
8
8
  "typecheck": "tsc"
9
9
  },
10
10
  "dependencies": {
11
- "@webstudio-is/image": "0.0.0-5558cd0",
12
- "@webstudio-is/react-sdk": "0.0.0-5558cd0",
13
- "@webstudio-is/sdk": "0.0.0-5558cd0",
14
- "@webstudio-is/sdk-components-react": "0.0.0-5558cd0",
15
- "@webstudio-is/sdk-components-animation": "0.0.0-5558cd0",
16
- "@webstudio-is/sdk-components-react-radix": "0.0.0-5558cd0",
11
+ "@webstudio-is/image": "0.0.0-5844e28",
12
+ "@webstudio-is/react-sdk": "0.0.0-5844e28",
13
+ "@webstudio-is/sdk": "0.0.0-5844e28",
14
+ "@webstudio-is/sdk-components-react": "0.0.0-5844e28",
15
+ "@webstudio-is/sdk-components-animation": "0.0.0-5844e28",
16
+ "@webstudio-is/sdk-components-react-radix": "0.0.0-5844e28",
17
17
  "react": "18.3.0-canary-14898b6a9-20240318",
18
18
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
19
- "vike": "^0.4.220"
19
+ "vike": "^0.4.222"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/react": "^18.2.70",
@@ -1,29 +0,0 @@
1
- /**
2
- * We use mjs extension as constants in this file is shared with the build script
3
- * and we use `node --eval` to extract the constants.
4
- */
5
- export const assetBaseUrl = "/assets/";
6
-
7
- /**
8
- * @type {import("@webstudio-is/image").ImageLoader}
9
- */
10
- export const imageLoader = (props) => {
11
- if (process.env.NODE_ENV !== "production") {
12
- return props.src;
13
- }
14
-
15
- if (props.format === "raw") {
16
- return props.src;
17
- }
18
-
19
- // https://docs.netlify.com/image-cdn/overview/
20
- const searchParams = new URLSearchParams();
21
- searchParams.set("url", props.src);
22
- searchParams.set("w", props.width.toString());
23
- if (props.height) {
24
- searchParams.set("h", props.height.toString());
25
- }
26
- searchParams.set("q", props.quality.toString());
27
- // fit=contain by default
28
- return `/.netlify/images?${searchParams}`;
29
- };
@@ -1,21 +0,0 @@
1
- import type { EntryContext } from "@remix-run/node";
2
- import { RemixServer } from "@remix-run/react";
3
- import { renderToString } from "react-dom/server";
4
-
5
- export default function handleRequest(
6
- request: Request,
7
- responseStatusCode: number,
8
- responseHeaders: Headers,
9
- remixContext: EntryContext
10
- ) {
11
- const markup = renderToString(
12
- <RemixServer context={remixContext} url={request.url} />
13
- );
14
-
15
- responseHeaders.set("Content-Type", "text/html");
16
-
17
- return new Response("<!DOCTYPE html>" + markup, {
18
- headers: responseHeaders,
19
- status: responseStatusCode,
20
- });
21
- }
@@ -1,16 +0,0 @@
1
- [build]
2
- command = "npm run build"
3
- publish = "build/client"
4
-
5
- [dev]
6
- command = "npm run dev"
7
- framework = "vite"
8
-
9
- # Set immutable caching for static files, because they have fingerprinted filenames
10
-
11
- [[headers]]
12
- for = "/build/*"
13
-
14
- [headers.values]
15
-
16
- "Cache-Control" = "public, max-age=31560000, immutable"
@@ -1,9 +0,0 @@
1
- {
2
- "scripts": {
3
- "start": "netlify serve"
4
- },
5
- "dependencies": {
6
- "@netlify/edge-functions": "^2.11.1",
7
- "@netlify/remix-edge-adapter": "^3.4.2"
8
- }
9
- }
@@ -1,18 +0,0 @@
1
- import { vitePlugin as remix } from "@remix-run/dev";
2
- import { defineConfig } from "vite";
3
- import { netlifyPlugin } from "@netlify/remix-edge-adapter/plugin";
4
-
5
- export default defineConfig({
6
- plugins: [
7
- remix({
8
- future: {
9
- v3_lazyRouteDiscovery: false,
10
- v3_relativeSplatPath: false,
11
- v3_singleFetch: false,
12
- v3_fetcherPersist: false,
13
- v3_throwAbortReason: false,
14
- },
15
- }),
16
- netlifyPlugin(),
17
- ],
18
- });
@@ -1,29 +0,0 @@
1
- /**
2
- * We use mjs extension as constants in this file is shared with the build script
3
- * and we use `node --eval` to extract the constants.
4
- */
5
- export const assetBaseUrl = "/assets/";
6
-
7
- /**
8
- * @type {import("@webstudio-is/image").ImageLoader}
9
- */
10
- export const imageLoader = (props) => {
11
- if (process.env.NODE_ENV !== "production") {
12
- return props.src;
13
- }
14
-
15
- if (props.format === "raw") {
16
- return props.src;
17
- }
18
-
19
- // https://docs.netlify.com/image-cdn/overview/
20
- const searchParams = new URLSearchParams();
21
- searchParams.set("url", props.src);
22
- searchParams.set("w", props.width.toString());
23
- if (props.height) {
24
- searchParams.set("h", props.height.toString());
25
- }
26
- searchParams.set("q", props.quality.toString());
27
- // fit=contain by default
28
- return `/.netlify/images?${searchParams}`;
29
- };
@@ -1 +0,0 @@
1
- export { handleRequest as default } from "@netlify/remix-adapter";
@@ -1,16 +0,0 @@
1
- [build]
2
- command = "npm run build"
3
- publish = "build/client"
4
-
5
- [dev]
6
- command = "npm run dev"
7
- framework = "vite"
8
-
9
- # Set immutable caching for static files, because they have fingerprinted filenames
10
-
11
- [[headers]]
12
- for = "/build/*"
13
-
14
- [headers.values]
15
-
16
- "Cache-Control" = "public, max-age=31560000, immutable"
@@ -1,9 +0,0 @@
1
- {
2
- "scripts": {
3
- "start": "npx netlify-cli serve"
4
- },
5
- "dependencies": {
6
- "@netlify/functions": "^2.8.2",
7
- "@netlify/remix-adapter": "^2.5.1"
8
- }
9
- }
@@ -1,18 +0,0 @@
1
- import { vitePlugin as remix } from "@remix-run/dev";
2
- import { defineConfig } from "vite";
3
- import { netlifyPlugin } from "@netlify/remix-adapter/plugin";
4
-
5
- export default defineConfig({
6
- plugins: [
7
- remix({
8
- future: {
9
- v3_lazyRouteDiscovery: false,
10
- v3_relativeSplatPath: false,
11
- v3_singleFetch: false,
12
- v3_fetcherPersist: false,
13
- v3_throwAbortReason: false,
14
- },
15
- }),
16
- netlifyPlugin(),
17
- ],
18
- });