webstudio 0.227.0 → 0.228.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
@@ -1702,7 +1702,8 @@ var baseAsset = {
1702
1702
  projectId: z.string(),
1703
1703
  size: z.number(),
1704
1704
  name: z.string(),
1705
- description: z.union([z.string(), z.null()]),
1705
+ filename: z.string().optional(),
1706
+ description: z.union([z.string().optional(), z.null()]),
1706
1707
  createdAt: z.string()
1707
1708
  };
1708
1709
  var FontAsset = z.object({
@@ -4259,6 +4260,14 @@ var normalizeProps = ({
4259
4260
  });
4260
4261
  continue;
4261
4262
  }
4263
+ if (prop.name === "alt" && asset.type === "image") {
4264
+ newProps.push({
4265
+ ...propBase,
4266
+ type: "string",
4267
+ value: asset.description ?? ""
4268
+ });
4269
+ continue;
4270
+ }
4262
4271
  newProps.push({
4263
4272
  ...propBase,
4264
4273
  type: "string",
@@ -9046,7 +9055,7 @@ const getDeploymentInstructions = (deployTarget) => {
9046
9055
  }
9047
9056
  };
9048
9057
  const name = "webstudio";
9049
- const version = "0.227.0";
9058
+ const version = "0.228.0";
9050
9059
  const description = "Webstudio CLI";
9051
9060
  const author = "Webstudio <github@webstudio.is>";
9052
9061
  const homepage = "https://webstudio.is";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webstudio",
3
- "version": "0.227.0",
3
+ "version": "0.228.0",
4
4
  "description": "Webstudio CLI",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -70,17 +70,17 @@
70
70
  "vite": "^6.3.4",
71
71
  "vitest": "^3.1.2",
72
72
  "wrangler": "^3.63.2",
73
- "@webstudio-is/css-engine": "0.227.0",
74
- "@webstudio-is/http-client": "0.227.0",
75
- "@webstudio-is/image": "0.227.0",
76
- "@webstudio-is/react-sdk": "0.227.0",
77
- "@webstudio-is/sdk-components-animation": "0.227.0",
78
- "@webstudio-is/sdk-components-react": "0.227.0",
79
- "@webstudio-is/sdk": "0.227.0",
80
- "@webstudio-is/sdk-components-react-radix": "0.227.0",
81
- "@webstudio-is/sdk-components-react-router": "0.227.0",
82
- "@webstudio-is/sdk-components-react-remix": "0.227.0",
83
- "@webstudio-is/tsconfig": "1.0.7"
73
+ "@webstudio-is/css-engine": "0.228.0",
74
+ "@webstudio-is/image": "0.228.0",
75
+ "@webstudio-is/react-sdk": "0.228.0",
76
+ "@webstudio-is/sdk": "0.228.0",
77
+ "@webstudio-is/http-client": "0.228.0",
78
+ "@webstudio-is/sdk-components-react": "0.228.0",
79
+ "@webstudio-is/sdk-components-react-radix": "0.228.0",
80
+ "@webstudio-is/tsconfig": "1.0.7",
81
+ "@webstudio-is/sdk-components-react-remix": "0.228.0",
82
+ "@webstudio-is/sdk-components-animation": "0.228.0",
83
+ "@webstudio-is/sdk-components-react-router": "0.228.0"
84
84
  },
85
85
  "scripts": {
86
86
  "typecheck": "tsc",
@@ -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.227.0",
15
- "@webstudio-is/react-sdk": "0.227.0",
16
- "@webstudio-is/sdk": "0.227.0",
17
- "@webstudio-is/sdk-components-react": "0.227.0",
18
- "@webstudio-is/sdk-components-animation": "0.227.0",
19
- "@webstudio-is/sdk-components-react-radix": "0.227.0",
20
- "@webstudio-is/sdk-components-react-remix": "0.227.0",
14
+ "@webstudio-is/image": "0.228.0",
15
+ "@webstudio-is/react-sdk": "0.228.0",
16
+ "@webstudio-is/sdk": "0.228.0",
17
+ "@webstudio-is/sdk-components-react": "0.228.0",
18
+ "@webstudio-is/sdk-components-animation": "0.228.0",
19
+ "@webstudio-is/sdk-components-react-radix": "0.228.0",
20
+ "@webstudio-is/sdk-components-react-remix": "0.228.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.227.0",
14
- "@webstudio-is/react-sdk": "0.227.0",
15
- "@webstudio-is/sdk": "0.227.0",
16
- "@webstudio-is/sdk-components-animation": "0.227.0",
17
- "@webstudio-is/sdk-components-react-radix": "0.227.0",
18
- "@webstudio-is/sdk-components-react-router": "0.227.0",
19
- "@webstudio-is/sdk-components-react": "0.227.0",
13
+ "@webstudio-is/image": "0.228.0",
14
+ "@webstudio-is/react-sdk": "0.228.0",
15
+ "@webstudio-is/sdk": "0.228.0",
16
+ "@webstudio-is/sdk-components-animation": "0.228.0",
17
+ "@webstudio-is/sdk-components-react-radix": "0.228.0",
18
+ "@webstudio-is/sdk-components-react-router": "0.228.0",
19
+ "@webstudio-is/sdk-components-react": "0.228.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",
@@ -24,6 +24,10 @@ export const imageLoader = (props) => {
24
24
  if (props.format === "raw") {
25
25
  return props.src;
26
26
  }
27
+ // IPX (sharp) does not support ico
28
+ if (props.src.endsWith('.ico')) {
29
+ return props.src;
30
+ }
27
31
  // handle absolute urls
28
32
  const path = UrlCanParse(props.src) ? `/${props.src}` : props.src;
29
33
  // https://github.com/unjs/ipx?tab=readme-ov-file#modifiers
@@ -8,12 +8,12 @@
8
8
  "typecheck": "tsc"
9
9
  },
10
10
  "dependencies": {
11
- "@webstudio-is/image": "0.227.0",
12
- "@webstudio-is/react-sdk": "0.227.0",
13
- "@webstudio-is/sdk": "0.227.0",
14
- "@webstudio-is/sdk-components-react": "0.227.0",
15
- "@webstudio-is/sdk-components-animation": "0.227.0",
16
- "@webstudio-is/sdk-components-react-radix": "0.227.0",
11
+ "@webstudio-is/image": "0.228.0",
12
+ "@webstudio-is/react-sdk": "0.228.0",
13
+ "@webstudio-is/sdk": "0.228.0",
14
+ "@webstudio-is/sdk-components-react": "0.228.0",
15
+ "@webstudio-is/sdk-components-animation": "0.228.0",
16
+ "@webstudio-is/sdk-components-react-radix": "0.228.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"