@weaverse/react 1.0.43 → 1.0.45

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.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();
@@ -2588,14 +2589,17 @@ var ItemComponent = memo(({ instance }) => {
2588
2589
  key: id,
2589
2590
  "data-wv-type": type,
2590
2591
  "data-wv-id": id,
2591
- className: generateItemClassName(instance, stitchesInstance),
2592
+ className: clsx7(
2593
+ generateItemClassName(instance, stitchesInstance),
2594
+ className
2595
+ ),
2592
2596
  ...rest
2593
2597
  },
2594
2598
  childIds.map((cid) => /* @__PURE__ */ React30.createElement(ItemInstance, { key: cid, id: cid })),
2595
2599
  children.map((item) => /* @__PURE__ */ React30.createElement(ItemInstance, { key: item.id, id: item.id }))
2596
2600
  );
2597
2601
  } else {
2598
- console.warn(`Unknown element: ${type}`);
2602
+ console.log(`\u274C Unknown element: ${type}`);
2599
2603
  return null;
2600
2604
  }
2601
2605
  });