@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 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)();
@@ -2599,7 +2600,6 @@ var ItemComponent = (0, import_react38.memo)(({ instance }) => {
2599
2600
  deletedAt,
2600
2601
  tailwindClasses,
2601
2602
  css: css13,
2602
- className,
2603
2603
  ...rest
2604
2604
  } = data;
2605
2605
  (0, import_react38.useEffect)(() => {
@@ -2624,14 +2624,17 @@ var ItemComponent = (0, import_react38.memo)(({ instance }) => {
2624
2624
  key: id,
2625
2625
  "data-wv-type": type,
2626
2626
  "data-wv-id": id,
2627
- className: generateItemClassName(instance, stitchesInstance),
2627
+ className: (0, import_clsx7.default)(
2628
+ generateItemClassName(instance, stitchesInstance),
2629
+ rest?.data?.className
2630
+ ),
2628
2631
  ...rest
2629
2632
  },
2630
2633
  childIds.map((cid) => /* @__PURE__ */ import_react38.default.createElement(ItemInstance, { key: cid, id: cid })),
2631
2634
  children.map((item) => /* @__PURE__ */ import_react38.default.createElement(ItemInstance, { key: item.id, id: item.id }))
2632
2635
  );
2633
2636
  } else {
2634
- console.warn(`Unknown element: ${type}`);
2637
+ console.log(`\u274C Unknown element: ${type}`);
2635
2638
  return null;
2636
2639
  }
2637
2640
  });