@weaverse/react 1.0.17 → 1.0.18

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
@@ -2572,8 +2572,7 @@ var WeaverseRoot = ({ context }) => {
2572
2572
  suppressHydrationWarning: true,
2573
2573
  ref: rootRef
2574
2574
  },
2575
- /* @__PURE__ */ import_react38.default.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ import_react38.default.createElement(ItemInstance, { id: context.data.rootId })),
2576
- context.platformType === "react-ssr" ? /* @__PURE__ */ import_react38.default.createElement(StitchesSSR, { stitchesInstance: context.stitchesInstance }) : null
2575
+ /* @__PURE__ */ import_react38.default.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ import_react38.default.createElement(ItemInstance, { id: context.data.rootId }))
2577
2576
  );
2578
2577
  }
2579
2578
  return null;
@@ -2614,18 +2613,6 @@ var ItemComponent = ({ instance }) => {
2614
2613
  return null;
2615
2614
  }
2616
2615
  };
2617
- var StitchesSSR = ({ stitchesInstance }) => {
2618
- const stitchesCss2 = stitchesInstance.getCssText();
2619
- return /* @__PURE__ */ import_react38.default.createElement(
2620
- "style",
2621
- {
2622
- id: "stitches",
2623
- "data-style": "weaverse-stitches",
2624
- dangerouslySetInnerHTML: { __html: stitchesCss2 },
2625
- suppressHydrationWarning: true
2626
- }
2627
- );
2628
- };
2629
2616
  var ItemInstance = ({ id }) => {
2630
2617
  let context = (0, import_react38.useContext)(WeaverseContext);
2631
2618
  let { itemInstances } = context;
package/dist/index.mjs CHANGED
@@ -2536,8 +2536,7 @@ var WeaverseRoot = ({ context }) => {
2536
2536
  suppressHydrationWarning: true,
2537
2537
  ref: rootRef
2538
2538
  },
2539
- /* @__PURE__ */ React30.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ React30.createElement(ItemInstance, { id: context.data.rootId })),
2540
- context.platformType === "react-ssr" ? /* @__PURE__ */ React30.createElement(StitchesSSR, { stitchesInstance: context.stitchesInstance }) : null
2539
+ /* @__PURE__ */ React30.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ React30.createElement(ItemInstance, { id: context.data.rootId }))
2541
2540
  );
2542
2541
  }
2543
2542
  return null;
@@ -2578,18 +2577,6 @@ var ItemComponent = ({ instance }) => {
2578
2577
  return null;
2579
2578
  }
2580
2579
  };
2581
- var StitchesSSR = ({ stitchesInstance }) => {
2582
- const stitchesCss2 = stitchesInstance.getCssText();
2583
- return /* @__PURE__ */ React30.createElement(
2584
- "style",
2585
- {
2586
- id: "stitches",
2587
- "data-style": "weaverse-stitches",
2588
- dangerouslySetInnerHTML: { __html: stitchesCss2 },
2589
- suppressHydrationWarning: true
2590
- }
2591
- );
2592
- };
2593
2580
  var ItemInstance = ({ id }) => {
2594
2581
  let context = useContext6(WeaverseContext);
2595
2582
  let { itemInstances } = context;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.17",
2
+ "version": "1.0.18",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@radix-ui/react-dialog": "^1.0.3",
36
36
  "@stitches/react": "^1.2.8",
37
- "@weaverse/core": "1.0.17",
37
+ "@weaverse/core": "1.0.18",
38
38
  "clsx": "^1.2.1",
39
39
  "keen-slider": "^6.8.5"
40
40
  }