@webstudio-is/react-sdk 0.294.0 → 0.295.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 +5 -2
  2. package/package.json +10 -10
package/lib/index.js CHANGED
@@ -379,8 +379,11 @@ ${tagProperty}=${JSON.stringify(instance.tag)}`;
379
379
  let collectionItemValue;
380
380
  let collectionItemKeyValue;
381
381
  let classNameValue;
382
- const instanceProps = Array.from(props.values()).filter(
383
- (prop) => prop.instanceId === instance.id
382
+ const instanceProps = Array.from(
383
+ Array.from(props.values()).filter((prop) => prop.instanceId === instance.id).reduce((uniqueProps, prop) => {
384
+ uniqueProps.set(prop.name, prop);
385
+ return uniqueProps;
386
+ }, /* @__PURE__ */ new Map()).values()
384
387
  );
385
388
  const instancePropNames = new Set(instanceProps.map((prop) => prop.name));
386
389
  const projectedResourceProps = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/react-sdk",
3
- "version": "0.294.0",
3
+ "version": "0.295.0",
4
4
  "description": "Webstudio JavaScript / TypeScript API",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -15,8 +15,8 @@
15
15
  "typescript": "7.0.2",
16
16
  "vitest": "^3.1.2",
17
17
  "zod": "^4.4.3",
18
- "@webstudio-is/template": "0.294.0",
19
- "@webstudio-is/tsconfig": "1.0.7"
18
+ "@webstudio-is/tsconfig": "1.0.7",
19
+ "@webstudio-is/template": "0.295.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "18.3.0-canary-14898b6a9-20240318",
@@ -26,13 +26,13 @@
26
26
  "dependencies": {
27
27
  "change-case": "^5.4.4",
28
28
  "nanoid": "^5.1.5",
29
- "@webstudio-is/content-engine": "0.294.0",
30
- "@webstudio-is/css-engine": "0.294.0",
31
- "@webstudio-is/fonts": "0.294.0",
32
- "@webstudio-is/expression": "0.294.0",
33
- "@webstudio-is/icons": "^0.294.0",
34
- "@webstudio-is/sdk": "0.294.0",
35
- "@webstudio-is/image": "0.294.0"
29
+ "@webstudio-is/content-engine": "0.295.0",
30
+ "@webstudio-is/css-engine": "0.295.0",
31
+ "@webstudio-is/fonts": "0.295.0",
32
+ "@webstudio-is/expression": "0.295.0",
33
+ "@webstudio-is/icons": "^0.295.0",
34
+ "@webstudio-is/image": "0.295.0",
35
+ "@webstudio-is/sdk": "0.295.0"
36
36
  },
37
37
  "exports": {
38
38
  ".": {