@rhinestone/deposit-modal 0.1.39 → 0.1.41
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/{DepositModalReown-UMUTS37L.cjs → DepositModalReown-GAQLILGK.cjs} +17 -8
- package/dist/{DepositModalReown-YTUE3XAB.mjs → DepositModalReown-WS6WNWJP.mjs} +15 -6
- package/dist/{WithdrawModalReown-XXCOZYVU.mjs → WithdrawModalReown-7CSCY55U.mjs} +4 -4
- package/dist/{WithdrawModalReown-2CWNDVJD.cjs → WithdrawModalReown-GCOVYZN2.cjs} +7 -7
- package/dist/{chunk-K7BHCDJQ.cjs → chunk-37CTMJMO.cjs} +181 -96
- package/dist/{chunk-TK7BVWX6.mjs → chunk-6PRJUXTM.mjs} +1487 -287
- package/dist/{chunk-CFLZYWX7.mjs → chunk-KWAFKVV6.mjs} +120 -35
- package/dist/{chunk-AHOFT42H.cjs → chunk-LT3QKJI2.cjs} +458 -115
- package/dist/{chunk-SJEIKMVO.mjs → chunk-MBOH6XW3.mjs} +26 -13
- package/dist/{chunk-FLXTBFMZ.cjs → chunk-NELAYNA3.cjs} +11 -0
- package/dist/{chunk-VTTEVMB6.cjs → chunk-PTSYSG4U.cjs} +1551 -351
- package/dist/{chunk-V7I5T4SW.cjs → chunk-PWPW7GFB.cjs} +25 -12
- package/dist/{chunk-IC2M2DZ7.mjs → chunk-QIK6ONMQ.mjs} +392 -49
- package/dist/{chunk-I7RYTI4G.mjs → chunk-ZJQZEIHA.mjs} +11 -0
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +6 -6
- package/dist/constants.d.ts +6 -6
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/reown.cjs +5 -5
- package/dist/reown.d.cts +1 -1
- package/dist/reown.d.ts +1 -1
- package/dist/reown.mjs +4 -4
- package/dist/styles.css +64 -0
- package/dist/{types-CIaQPR6F.d.cts → types-CybmMKTE.d.cts} +9 -7
- package/dist/{types-Bp2n2RQ3.d.ts → types-e8CHSm2u.d.ts} +9 -7
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +3 -3
- package/package.json +18 -1
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPTSYSG4Ucjs = require('./chunk-PTSYSG4U.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkPWPW7GFBcjs = require('./chunk-PWPW7GFB.cjs');
|
|
8
|
+
require('./chunk-LT3QKJI2.cjs');
|
|
9
|
+
require('./chunk-NELAYNA3.cjs');
|
|
10
10
|
|
|
11
11
|
// src/DepositModalReown.tsx
|
|
12
12
|
var _react = require('react');
|
|
13
|
+
var _react3 = require('@reown/appkit/react');
|
|
13
14
|
var _jsxruntime = require('react/jsx-runtime');
|
|
14
15
|
function DepositModalWithReown(props) {
|
|
15
|
-
const reown =
|
|
16
|
+
const reown = _chunkPWPW7GFBcjs.useReownWallet.call(void 0, );
|
|
17
|
+
const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0, "solana");
|
|
18
|
+
const reownWithSolana = _react.useMemo.call(void 0,
|
|
19
|
+
() => ({
|
|
20
|
+
...reown,
|
|
21
|
+
solanaProvider: reown.isSolana ? solanaWalletProvider : void 0
|
|
22
|
+
}),
|
|
23
|
+
[reown, solanaWalletProvider]
|
|
24
|
+
);
|
|
16
25
|
const handleConnect = _react.useCallback.call(void 0, () => {
|
|
17
26
|
reown.openConnect();
|
|
18
27
|
}, [reown.openConnect]);
|
|
@@ -20,17 +29,17 @@ function DepositModalWithReown(props) {
|
|
|
20
29
|
reown.disconnect();
|
|
21
30
|
}, [reown.disconnect]);
|
|
22
31
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23
|
-
|
|
32
|
+
_chunkPTSYSG4Ucjs.DepositModalInner,
|
|
24
33
|
{
|
|
25
34
|
...props,
|
|
26
|
-
reownWallet:
|
|
35
|
+
reownWallet: reownWithSolana,
|
|
27
36
|
onConnect: handleConnect,
|
|
28
37
|
onDisconnect: handleDisconnect
|
|
29
38
|
}
|
|
30
39
|
);
|
|
31
40
|
}
|
|
32
41
|
function DepositModalReown(props) {
|
|
33
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPWPW7GFBcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositModalWithReown, { ...props }) });
|
|
34
43
|
}
|
|
35
44
|
|
|
36
45
|
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6PRJUXTM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ReownWalletProvider,
|
|
6
6
|
useReownWallet
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-MBOH6XW3.mjs";
|
|
8
|
+
import "./chunk-QIK6ONMQ.mjs";
|
|
9
|
+
import "./chunk-ZJQZEIHA.mjs";
|
|
10
10
|
|
|
11
11
|
// src/DepositModalReown.tsx
|
|
12
|
-
import { useCallback } from "react";
|
|
12
|
+
import { useCallback, useMemo } from "react";
|
|
13
|
+
import { useAppKitProvider } from "@reown/appkit/react";
|
|
13
14
|
import { jsx } from "react/jsx-runtime";
|
|
14
15
|
function DepositModalWithReown(props) {
|
|
15
16
|
const reown = useReownWallet();
|
|
17
|
+
const { walletProvider: solanaWalletProvider } = useAppKitProvider("solana");
|
|
18
|
+
const reownWithSolana = useMemo(
|
|
19
|
+
() => ({
|
|
20
|
+
...reown,
|
|
21
|
+
solanaProvider: reown.isSolana ? solanaWalletProvider : void 0
|
|
22
|
+
}),
|
|
23
|
+
[reown, solanaWalletProvider]
|
|
24
|
+
);
|
|
16
25
|
const handleConnect = useCallback(() => {
|
|
17
26
|
reown.openConnect();
|
|
18
27
|
}, [reown.openConnect]);
|
|
@@ -23,7 +32,7 @@ function DepositModalWithReown(props) {
|
|
|
23
32
|
DepositModalInner,
|
|
24
33
|
{
|
|
25
34
|
...props,
|
|
26
|
-
reownWallet:
|
|
35
|
+
reownWallet: reownWithSolana,
|
|
27
36
|
onConnect: handleConnect,
|
|
28
37
|
onDisconnect: handleDisconnect
|
|
29
38
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KWAFKVV6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ReownWalletProvider,
|
|
6
6
|
useReownWallet
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-MBOH6XW3.mjs";
|
|
8
|
+
import "./chunk-QIK6ONMQ.mjs";
|
|
9
|
+
import "./chunk-ZJQZEIHA.mjs";
|
|
10
10
|
|
|
11
11
|
// src/WithdrawModalReown.tsx
|
|
12
12
|
import { useCallback } from "react";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk37CTMJMOcjs = require('./chunk-37CTMJMO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkPWPW7GFBcjs = require('./chunk-PWPW7GFB.cjs');
|
|
8
|
+
require('./chunk-LT3QKJI2.cjs');
|
|
9
|
+
require('./chunk-NELAYNA3.cjs');
|
|
10
10
|
|
|
11
11
|
// src/WithdrawModalReown.tsx
|
|
12
12
|
var _react = require('react');
|
|
13
13
|
var _jsxruntime = require('react/jsx-runtime');
|
|
14
14
|
function WithdrawModalWithReown(props) {
|
|
15
|
-
const reown =
|
|
15
|
+
const reown = _chunkPWPW7GFBcjs.useReownWallet.call(void 0, );
|
|
16
16
|
const handleConnect = _react.useCallback.call(void 0, () => {
|
|
17
17
|
reown.openConnect();
|
|
18
18
|
}, [reown.openConnect]);
|
|
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
|
|
|
20
20
|
reown.disconnect();
|
|
21
21
|
}, [reown.disconnect]);
|
|
22
22
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23
|
-
|
|
23
|
+
_chunk37CTMJMOcjs.WithdrawModalInner,
|
|
24
24
|
{
|
|
25
25
|
...props,
|
|
26
26
|
reownWallet: reown,
|
|
@@ -30,7 +30,7 @@ function WithdrawModalWithReown(props) {
|
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
function WithdrawModalReown(props) {
|
|
33
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPWPW7GFBcjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|