@webstudio-is/react-sdk 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.
Files changed (2) hide show
  1. package/lib/index.js +8 -0
  2. package/package.json +8 -8
package/lib/index.js CHANGED
@@ -97,6 +97,14 @@ var normalizeProps = ({
97
97
  });
98
98
  continue;
99
99
  }
100
+ if (prop.name === "alt" && asset.type === "image") {
101
+ newProps.push({
102
+ ...propBase,
103
+ type: "string",
104
+ value: asset.description ?? ""
105
+ });
106
+ continue;
107
+ }
100
108
  newProps.push({
101
109
  ...propBase,
102
110
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/react-sdk",
3
- "version": "0.227.0",
3
+ "version": "0.228.0",
4
4
  "description": "Webstudio JavaScript / TypeScript API",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -14,8 +14,8 @@
14
14
  "type-fest": "^4.37.0",
15
15
  "vitest": "^3.1.2",
16
16
  "zod": "^3.24.2",
17
- "@webstudio-is/template": "0.227.0",
18
- "@webstudio-is/tsconfig": "1.0.7"
17
+ "@webstudio-is/tsconfig": "1.0.7",
18
+ "@webstudio-is/template": "0.228.0"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": "18.3.0-canary-14898b6a9-20240318",
@@ -26,11 +26,11 @@
26
26
  "change-case": "^5.4.4",
27
27
  "html-tags": "^4.0.0",
28
28
  "nanoid": "^5.1.5",
29
- "@webstudio-is/fonts": "0.227.0",
30
- "@webstudio-is/css-engine": "0.227.0",
31
- "@webstudio-is/icons": "^0.227.0",
32
- "@webstudio-is/sdk": "0.227.0",
33
- "@webstudio-is/image": "0.227.0"
29
+ "@webstudio-is/css-engine": "0.228.0",
30
+ "@webstudio-is/image": "0.228.0",
31
+ "@webstudio-is/sdk": "0.228.0",
32
+ "@webstudio-is/fonts": "0.228.0",
33
+ "@webstudio-is/icons": "^0.228.0"
34
34
  },
35
35
  "exports": {
36
36
  ".": {