@weaverse/react 1.0.44 → 1.0.46
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/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2521,6 +2521,7 @@ function initUploadCareAdaptiveDelivery(baseUrl) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
|
|
2523
2523
|
// src/renderer.tsx
|
|
2524
|
+
import clsx7 from "clsx";
|
|
2524
2525
|
var WeaverseRoot = memo(({ context }) => {
|
|
2525
2526
|
let [, setData] = useState6(context.data);
|
|
2526
2527
|
let rootRef = useRef();
|
|
@@ -2563,7 +2564,6 @@ var ItemComponent = memo(({ instance }) => {
|
|
|
2563
2564
|
deletedAt,
|
|
2564
2565
|
tailwindClasses,
|
|
2565
2566
|
css: css13,
|
|
2566
|
-
className,
|
|
2567
2567
|
...rest
|
|
2568
2568
|
} = data;
|
|
2569
2569
|
useEffect5(() => {
|
|
@@ -2588,14 +2588,17 @@ var ItemComponent = memo(({ instance }) => {
|
|
|
2588
2588
|
key: id,
|
|
2589
2589
|
"data-wv-type": type,
|
|
2590
2590
|
"data-wv-id": id,
|
|
2591
|
-
className:
|
|
2591
|
+
className: clsx7(
|
|
2592
|
+
generateItemClassName(instance, stitchesInstance),
|
|
2593
|
+
rest?.data?.className
|
|
2594
|
+
),
|
|
2592
2595
|
...rest
|
|
2593
2596
|
},
|
|
2594
2597
|
childIds.map((cid) => /* @__PURE__ */ React30.createElement(ItemInstance, { key: cid, id: cid })),
|
|
2595
2598
|
children.map((item) => /* @__PURE__ */ React30.createElement(ItemInstance, { key: item.id, id: item.id }))
|
|
2596
2599
|
);
|
|
2597
2600
|
} else {
|
|
2598
|
-
console.
|
|
2601
|
+
console.log(`\u274C Unknown element: ${type}`);
|
|
2599
2602
|
return null;
|
|
2600
2603
|
}
|
|
2601
2604
|
});
|