@trycourier/courier-react 8.0.11-beta → 8.0.12-beta
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import ReactDOM, { flushSync } from "react-dom";
|
|
1
|
+
import React, { useRef, useEffect } from "react";
|
|
3
2
|
import { createRoot } from "react-dom/client";
|
|
3
|
+
import { flushSync } from "react-dom";
|
|
4
4
|
var __defProp$1 = Object.defineProperty;
|
|
5
5
|
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
6
|
var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -5879,7 +5879,6 @@ function requireJsxRuntime() {
|
|
|
5879
5879
|
return jsxRuntime.exports;
|
|
5880
5880
|
}
|
|
5881
5881
|
var jsxRuntimeExports = requireJsxRuntime();
|
|
5882
|
-
const reactVersion = parseInt(version.split(".")[0]);
|
|
5883
5882
|
function reactNodeToHTMLElement(node) {
|
|
5884
5883
|
const container = document.createElement("div");
|
|
5885
5884
|
flushSync(() => {
|
|
@@ -5888,12 +5887,8 @@ function reactNodeToHTMLElement(node) {
|
|
|
5888
5887
|
return container;
|
|
5889
5888
|
}
|
|
5890
5889
|
function render(node, container) {
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
return root.render(node);
|
|
5894
|
-
}
|
|
5895
|
-
const render2 = ReactDOM["render"];
|
|
5896
|
-
return render2(node, container);
|
|
5890
|
+
const root = createRoot(container);
|
|
5891
|
+
return root.render(node);
|
|
5897
5892
|
}
|
|
5898
5893
|
const CourierInbox2 = (props) => {
|
|
5899
5894
|
const inboxRef = useRef(null);
|