webstudio 0.221.0 → 0.223.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
@@ -1793,13 +1793,23 @@ var DefaultPagePage = z.string().refine((path) => path !== "", "Can't be empty")
1793
1793
  (path) => path !== "/build" && path.startsWith("/build/") === false,
1794
1794
  "/build prefix is reserved for the system"
1795
1795
  );
1796
- var PagePath = DefaultPagePage.refine(
1796
+ var OldPagePath = z.string().refine((path) => path !== "", "Can't be empty").refine((path) => path !== "/", "Can't be just a /").refine(
1797
1797
  (path) => path === "" || path.startsWith("/"),
1798
1798
  "Must start with a / or a full URL e.g. https://website.org"
1799
+ ).refine((path) => path.endsWith("/") === false, "Can't end with a /").refine((path) => path.includes("//") === false, "Can't contain repeating /").refine(
1800
+ (path) => /^[-_a-zA-Z0-9*:?\\/.]*$/.test(path),
1801
+ // Allow uppercase letters (A-Z)
1802
+ "Only a-z, A-Z, 0-9, -, _, /, :, ?, . and * are allowed"
1803
+ ).refine(
1804
+ (path) => path !== "/s" && path.startsWith("/s/") === false,
1805
+ "/s prefix is reserved for the system"
1806
+ ).refine(
1807
+ (path) => path !== "/build" && path.startsWith("/build/") === false,
1808
+ "/build prefix is reserved for the system"
1799
1809
  );
1800
- DefaultPagePage.refine(
1810
+ var PagePath = DefaultPagePage.refine(
1801
1811
  (path) => path === "" || path.startsWith("/"),
1802
- "Must start with a / and it must be full path e.g. /project/id"
1812
+ "Must start with a / or a full URL e.g. https://website.org"
1803
1813
  );
1804
1814
  var Page = z.object({
1805
1815
  ...commonPageFields,
@@ -1826,7 +1836,7 @@ var ProjectNewRedirectPath = PagePath.or(
1826
1836
  }, "Must be a valid URL")
1827
1837
  );
1828
1838
  var PageRedirect = z.object({
1829
- old: PagePath,
1839
+ old: OldPagePath,
1830
1840
  new: ProjectNewRedirectPath,
1831
1841
  status: z.enum(["301", "302"]).optional()
1832
1842
  });
@@ -2685,7 +2695,8 @@ var body$1 = [
2685
2695
  ];
2686
2696
  var hr$1 = [
2687
2697
  { property: "height", value: { type: "unit", unit: "number", value: 0 } },
2688
- { property: "color", value: { type: "keyword", value: "inherit" } }
2698
+ { property: "color", value: { type: "keyword", value: "inherit" } },
2699
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
2689
2700
  ];
2690
2701
  var b$6 = [
2691
2702
  {
@@ -5020,7 +5031,8 @@ var body = [
5020
5031
  ];
5021
5032
  var hr = [
5022
5033
  { property: "height", value: { type: "unit", unit: "number", value: 0 } },
5023
- { property: "color", value: { type: "keyword", value: "inherit" } }
5034
+ { property: "color", value: { type: "keyword", value: "inherit" } },
5035
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
5024
5036
  ];
5025
5037
  var b$5 = [
5026
5038
  {
@@ -9074,7 +9086,7 @@ const getDeploymentInstructions = (deployTarget) => {
9074
9086
  }
9075
9087
  };
9076
9088
  const name = "webstudio";
9077
- const version = "0.221.0";
9089
+ const version = "0.223.0";
9078
9090
  const description = "Webstudio CLI";
9079
9091
  const author = "Webstudio <github@webstudio.is>";
9080
9092
  const homepage = "https://webstudio.is";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webstudio",
3
- "version": "0.221.0",
3
+ "version": "0.223.0",
4
4
  "description": "Webstudio CLI",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -70,16 +70,16 @@
70
70
  "vite": "^6.3.4",
71
71
  "vitest": "^3.1.2",
72
72
  "wrangler": "^3.63.2",
73
- "@webstudio-is/css-engine": "0.221.0",
74
- "@webstudio-is/http-client": "0.221.0",
75
- "@webstudio-is/image": "0.221.0",
76
- "@webstudio-is/react-sdk": "0.221.0",
77
- "@webstudio-is/sdk-components-animation": "0.221.0",
78
- "@webstudio-is/sdk": "0.221.0",
79
- "@webstudio-is/sdk-components-react": "0.221.0",
80
- "@webstudio-is/sdk-components-react-radix": "0.221.0",
81
- "@webstudio-is/sdk-components-react-remix": "0.221.0",
82
- "@webstudio-is/sdk-components-react-router": "0.221.0",
73
+ "@webstudio-is/css-engine": "0.223.0",
74
+ "@webstudio-is/http-client": "0.223.0",
75
+ "@webstudio-is/image": "0.223.0",
76
+ "@webstudio-is/react-sdk": "0.223.0",
77
+ "@webstudio-is/sdk": "0.223.0",
78
+ "@webstudio-is/sdk-components-animation": "0.223.0",
79
+ "@webstudio-is/sdk-components-react": "0.223.0",
80
+ "@webstudio-is/sdk-components-react-radix": "0.223.0",
81
+ "@webstudio-is/sdk-components-react-remix": "0.223.0",
82
+ "@webstudio-is/sdk-components-react-router": "0.223.0",
83
83
  "@webstudio-is/tsconfig": "1.0.7"
84
84
  },
85
85
  "scripts": {
@@ -11,13 +11,13 @@
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.221.0",
15
- "@webstudio-is/react-sdk": "0.221.0",
16
- "@webstudio-is/sdk": "0.221.0",
17
- "@webstudio-is/sdk-components-react": "0.221.0",
18
- "@webstudio-is/sdk-components-animation": "0.221.0",
19
- "@webstudio-is/sdk-components-react-radix": "0.221.0",
20
- "@webstudio-is/sdk-components-react-remix": "0.221.0",
14
+ "@webstudio-is/image": "0.223.0",
15
+ "@webstudio-is/react-sdk": "0.223.0",
16
+ "@webstudio-is/sdk": "0.223.0",
17
+ "@webstudio-is/sdk-components-react": "0.223.0",
18
+ "@webstudio-is/sdk-components-animation": "0.223.0",
19
+ "@webstudio-is/sdk-components-react-radix": "0.223.0",
20
+ "@webstudio-is/sdk-components-react-remix": "0.223.0",
21
21
  "isbot": "^5.1.25",
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.5.3",
12
12
  "@react-router/fs-routes": "^7.5.3",
13
- "@webstudio-is/image": "0.221.0",
14
- "@webstudio-is/react-sdk": "0.221.0",
15
- "@webstudio-is/sdk": "0.221.0",
16
- "@webstudio-is/sdk-components-animation": "0.221.0",
17
- "@webstudio-is/sdk-components-react-radix": "0.221.0",
18
- "@webstudio-is/sdk-components-react-router": "0.221.0",
19
- "@webstudio-is/sdk-components-react": "0.221.0",
13
+ "@webstudio-is/image": "0.223.0",
14
+ "@webstudio-is/react-sdk": "0.223.0",
15
+ "@webstudio-is/sdk": "0.223.0",
16
+ "@webstudio-is/sdk-components-animation": "0.223.0",
17
+ "@webstudio-is/sdk-components-react-radix": "0.223.0",
18
+ "@webstudio-is/sdk-components-react-router": "0.223.0",
19
+ "@webstudio-is/sdk-components-react": "0.223.0",
20
20
  "isbot": "^5.1.25",
21
21
  "react": "18.3.0-canary-14898b6a9-20240318",
22
22
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
@@ -8,12 +8,12 @@
8
8
  "typecheck": "tsc"
9
9
  },
10
10
  "dependencies": {
11
- "@webstudio-is/image": "0.221.0",
12
- "@webstudio-is/react-sdk": "0.221.0",
13
- "@webstudio-is/sdk": "0.221.0",
14
- "@webstudio-is/sdk-components-react": "0.221.0",
15
- "@webstudio-is/sdk-components-animation": "0.221.0",
16
- "@webstudio-is/sdk-components-react-radix": "0.221.0",
11
+ "@webstudio-is/image": "0.223.0",
12
+ "@webstudio-is/react-sdk": "0.223.0",
13
+ "@webstudio-is/sdk": "0.223.0",
14
+ "@webstudio-is/sdk-components-react": "0.223.0",
15
+ "@webstudio-is/sdk-components-animation": "0.223.0",
16
+ "@webstudio-is/sdk-components-react-radix": "0.223.0",
17
17
  "react": "18.3.0-canary-14898b6a9-20240318",
18
18
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
19
19
  "vike": "^0.4.229"