@getpara/wagmi-v2-integration 2.0.0-dev.0 → 2.0.0-dev.10
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/connectorModal.d.ts +2 -1
- package/dist/index.js +9 -6
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/paraConnector.d.ts +3 -1
- package/package.json +5 -4
package/dist/connectorModal.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import ParaWeb from '@getpara/react-sdk';
|
|
2
2
|
import { ParaModalPropsForInit } from './paraConnector.js';
|
|
3
|
-
|
|
3
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
4
|
+
export declare function renderModal(para: ParaWeb, modalProps: Partial<ParaModalPropsForInit>, onCloseArg: () => void, queryClient: QueryClient): void;
|
package/dist/index.js
CHANGED
|
@@ -57,12 +57,13 @@ import { createParaConnector } from "@getpara/wagmi-v2-connector";
|
|
|
57
57
|
|
|
58
58
|
// src/connectorModal.tsx
|
|
59
59
|
import { ParaProvider, setIsOpen } from "@getpara/react-sdk";
|
|
60
|
-
import { QueryClient } from "@tanstack/react-query";
|
|
61
60
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
62
61
|
import { jsx } from "react/jsx-runtime";
|
|
63
|
-
var queryClient = new QueryClient();
|
|
64
62
|
var Root;
|
|
65
|
-
function renderModal(para, modalProps, onCloseArg) {
|
|
63
|
+
function renderModal(para, modalProps, onCloseArg, queryClient) {
|
|
64
|
+
if (typeof document === "undefined") {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
66
67
|
const existingContainer = document.getElementById("para-modal");
|
|
67
68
|
const container = existingContainer != null ? existingContainer : document.createElement("div");
|
|
68
69
|
container.id = "para-modal";
|
|
@@ -110,7 +111,8 @@ var paraConnector = (_a) => {
|
|
|
110
111
|
nameOverride,
|
|
111
112
|
idOverride,
|
|
112
113
|
transports,
|
|
113
|
-
appName
|
|
114
|
+
appName,
|
|
115
|
+
queryClient
|
|
114
116
|
} = _b, modalProps = __objRest(_b, [
|
|
115
117
|
"para",
|
|
116
118
|
"chains",
|
|
@@ -121,7 +123,8 @@ var paraConnector = (_a) => {
|
|
|
121
123
|
"nameOverride",
|
|
122
124
|
"idOverride",
|
|
123
125
|
"transports",
|
|
124
|
-
"appName"
|
|
126
|
+
"appName",
|
|
127
|
+
"queryClient"
|
|
125
128
|
]);
|
|
126
129
|
return createParaConnector({
|
|
127
130
|
para,
|
|
@@ -134,7 +137,7 @@ var paraConnector = (_a) => {
|
|
|
134
137
|
idOverride,
|
|
135
138
|
transports,
|
|
136
139
|
appName,
|
|
137
|
-
renderModal: (onClose) => renderModal(para, __spreadProps(__spreadValues({}, modalProps), { appName }), onClose),
|
|
140
|
+
renderModal: (onClose) => renderModal(para, __spreadProps(__spreadValues({}, modalProps), { appName }), onClose, queryClient),
|
|
138
141
|
openModal: () => {
|
|
139
142
|
setIsOpen2(true);
|
|
140
143
|
}
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/paraConnector.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ParaModalProps } from '@getpara/react-sdk';
|
|
2
2
|
import { ParaConnectorOpts as ParaConnectorOptsBase } from '@getpara/wagmi-v2-connector';
|
|
3
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
4
|
export type ParaModalPropsForInit = Omit<ParaModalProps, 'isOpen' | 'para'> & {
|
|
4
5
|
appName: string;
|
|
6
|
+
queryClient: QueryClient;
|
|
5
7
|
};
|
|
6
8
|
type ParaConnectorOpts = Partial<ParaModalPropsForInit> & ParaConnectorOptsBase;
|
|
7
|
-
export declare const paraConnector: ({ para, chains: _chains, disableModal, storageOverride, options, iconOverride, nameOverride, idOverride, transports, appName, ...modalProps }: ParaConnectorOpts) => import("wagmi").CreateConnectorFn<unknown, {
|
|
9
|
+
export declare const paraConnector: ({ para, chains: _chains, disableModal, storageOverride, options, iconOverride, nameOverride, idOverride, transports, appName, queryClient, ...modalProps }: ParaConnectorOpts) => import("wagmi").CreateConnectorFn<unknown, {
|
|
8
10
|
type: string;
|
|
9
11
|
name: string;
|
|
10
12
|
icon: string;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/wagmi-v2-integration",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@getpara/react-sdk": "2.0.0-dev.
|
|
10
|
-
"@getpara/wagmi-v2-connector": "2.0.0-dev.
|
|
9
|
+
"@getpara/react-sdk": "2.0.0-dev.2",
|
|
10
|
+
"@getpara/wagmi-v2-connector": "2.0.0-dev.3"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"typescript": "5.1.6"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
+
"@tanstack/react-query": ">=5.0.0",
|
|
20
21
|
"react": "*",
|
|
21
22
|
"react-dom": "*"
|
|
22
23
|
},
|
|
@@ -24,5 +25,5 @@
|
|
|
24
25
|
"dist",
|
|
25
26
|
"package.json"
|
|
26
27
|
],
|
|
27
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "e6e791d4e4f9afd94f2093d6045d686b85e5a682"
|
|
28
29
|
}
|