@webstudio-is/react-sdk 0.202.0 → 0.204.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/index.js +1 -1
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -870,7 +870,7 @@ ${prop.name}={${propValue}}`;
|
|
|
870
870
|
return "";
|
|
871
871
|
}
|
|
872
872
|
const indexVariable = scope.getName(`${instance.id}-index`, "index");
|
|
873
|
-
generatedElement += `{${collectionDataValue}?.map((${collectionItemValue}: any, ${indexVariable}: number) =>
|
|
873
|
+
generatedElement += `{${collectionDataValue}?.map?.((${collectionItemValue}: any, ${indexVariable}: number) =>
|
|
874
874
|
`;
|
|
875
875
|
generatedElement += `<Fragment key={${indexVariable}}>
|
|
876
876
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.204.0",
|
|
4
4
|
"description": "Webstudio JavaScript / TypeScript API",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
13
13
|
"strip-indent": "^4.0.0",
|
|
14
14
|
"type-fest": "^4.32.0",
|
|
15
|
-
"vitest": "^3.0.
|
|
15
|
+
"vitest": "^3.0.4",
|
|
16
16
|
"zod": "^3.22.4",
|
|
17
|
-
"@webstudio-is/template": "0.
|
|
17
|
+
"@webstudio-is/template": "0.204.0",
|
|
18
18
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"change-case": "^5.4.4",
|
|
27
27
|
"html-tags": "^4.0.0",
|
|
28
28
|
"nanoid": "^5.0.9",
|
|
29
|
-
"@webstudio-is/css-engine": "0.
|
|
30
|
-
"@webstudio-is/
|
|
31
|
-
"@webstudio-is/
|
|
32
|
-
"@webstudio-is/
|
|
33
|
-
"@webstudio-is/
|
|
29
|
+
"@webstudio-is/css-engine": "0.204.0",
|
|
30
|
+
"@webstudio-is/fonts": "0.204.0",
|
|
31
|
+
"@webstudio-is/image": "0.204.0",
|
|
32
|
+
"@webstudio-is/icons": "^0.204.0",
|
|
33
|
+
"@webstudio-is/sdk": "0.204.0"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|