@weaverse/react 1.0.44 → 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.js CHANGED
@@ -2557,6 +2557,7 @@ function initUploadCareAdaptiveDelivery(baseUrl) {
2557
2557
  }
2558
2558
 
2559
2559
  // src/renderer.tsx
2560
+ var import_clsx7 = __toESM(require("clsx"));
2560
2561
  var WeaverseRoot = (0, import_react38.memo)(({ context }) => {
2561
2562
  let [, setData] = (0, import_react38.useState)(context.data);
2562
2563
  let rootRef = (0, import_react38.useRef)();
@@ -2624,14 +2625,17 @@ var ItemComponent = (0, import_react38.memo)(({ instance }) => {
2624
2625
  key: id,
2625
2626
  "data-wv-type": type,
2626
2627
  "data-wv-id": id,
2627
- className: generateItemClassName(instance, stitchesInstance),
2628
+ className: (0, import_clsx7.default)(
2629
+ generateItemClassName(instance, stitchesInstance),
2630
+ className
2631
+ ),
2628
2632
  ...rest
2629
2633
  },
2630
2634
  childIds.map((cid) => /* @__PURE__ */ import_react38.default.createElement(ItemInstance, { key: cid, id: cid })),
2631
2635
  children.map((item) => /* @__PURE__ */ import_react38.default.createElement(ItemInstance, { key: item.id, id: item.id }))
2632
2636
  );
2633
2637
  } else {
2634
- console.warn(`Unknown element: ${type}`);
2638
+ console.log(`\u274C Unknown element: ${type}`);
2635
2639
  return null;
2636
2640
  }
2637
2641
  });