@getpara/wagmi-v2-integration 2.0.0-dev.13 → 2.0.0-dev.14
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 +10 -8
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60,14 +60,9 @@ import { QueryClientProvider } from "@tanstack/react-query";
|
|
|
60
60
|
import { jsx } from "react/jsx-runtime";
|
|
61
61
|
var Root;
|
|
62
62
|
function renderModal(para, modalProps, onCloseArg, queryClient) {
|
|
63
|
-
if (typeof
|
|
64
|
-
return { openModal: () =>
|
|
65
|
-
|
|
66
|
-
const existingContainer = document.getElementById("para-modal");
|
|
67
|
-
const container = existingContainer != null ? existingContainer : document.createElement("div");
|
|
68
|
-
container.id = "para-modal";
|
|
69
|
-
if (!existingContainer) {
|
|
70
|
-
document.body.insertAdjacentElement("beforeend", container);
|
|
63
|
+
if (typeof window === "undefined") {
|
|
64
|
+
return { openModal: () => {
|
|
65
|
+
} };
|
|
71
66
|
}
|
|
72
67
|
const onClose = () => {
|
|
73
68
|
onCloseArg();
|
|
@@ -76,6 +71,13 @@ function renderModal(para, modalProps, onCloseArg, queryClient) {
|
|
|
76
71
|
};
|
|
77
72
|
const render = () => __async(this, null, function* () {
|
|
78
73
|
var _a;
|
|
74
|
+
yield new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
75
|
+
const existingContainer = document.getElementById("para-modal");
|
|
76
|
+
const container = existingContainer != null ? existingContainer : document.createElement("div");
|
|
77
|
+
container.id = "para-modal";
|
|
78
|
+
if (!existingContainer) {
|
|
79
|
+
document.body.insertAdjacentElement("beforeend", container);
|
|
80
|
+
}
|
|
79
81
|
const Modal = /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(
|
|
80
82
|
ParaProvider,
|
|
81
83
|
{
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|