@rhinestone/deposit-modal 0.5.0 → 0.6.0
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-GHEUERDG.cjs → DepositModalReown-J3KYAOD3.cjs} +6 -6
- package/dist/{DepositModalReown-6AO4QURQ.mjs → DepositModalReown-YD7TLEAA.mjs} +3 -3
- package/dist/{WithdrawModalReown-LIP6FHCB.cjs → WithdrawModalReown-QSQUV6HX.cjs} +6 -6
- package/dist/{WithdrawModalReown-FRMD2ACH.mjs → WithdrawModalReown-ZPDMX47Z.mjs} +3 -3
- package/dist/{chunk-V6KJKRE7.mjs → chunk-3JVGI7FC.mjs} +5 -3
- package/dist/{chunk-MXFZ6Q7F.cjs → chunk-7LVI3VAL.cjs} +703 -453
- package/dist/{chunk-XQH2APMO.cjs → chunk-DASS33PJ.cjs} +59 -57
- package/dist/{chunk-LCKO6C76.mjs → chunk-DXGM6YET.mjs} +1 -1
- package/dist/{chunk-PS7HJ62M.mjs → chunk-GQDVHMOT.mjs} +117 -101
- package/dist/{chunk-ZYYLKWU2.mjs → chunk-NSAODZSS.mjs} +364 -114
- package/dist/{chunk-H7727ABX.cjs → chunk-YYIE5U5K.cjs} +4 -4
- package/dist/{chunk-PPFG3VBD.cjs → chunk-ZDYV536Q.cjs} +191 -175
- package/dist/deposit.cjs +3 -3
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/styles.css +29 -17
- package/dist/{types-_m8w8BYq.d.cts → types-6ROxwyfG.d.cts} +1 -8
- package/dist/{types-_m8w8BYq.d.ts → types-6ROxwyfG.d.ts} +1 -8
- package/dist/withdraw.cjs +3 -3
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7LVI3VALcjs = require('./chunk-7LVI3VAL.cjs');
|
|
4
4
|
require('./chunk-NRNJAQUA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkYYIE5U5Kcjs = require('./chunk-YYIE5U5K.cjs');
|
|
9
|
+
require('./chunk-ZDYV536Q.cjs');
|
|
10
10
|
require('./chunk-UEKPBRBY.cjs');
|
|
11
11
|
require('./chunk-ABVRVW3P.cjs');
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ var _react3 = require('@reown/appkit/react');
|
|
|
16
16
|
var _react5 = require('@reown/appkit-adapter-solana/react');
|
|
17
17
|
var _jsxruntime = require('react/jsx-runtime');
|
|
18
18
|
function DepositModalWithReown(props) {
|
|
19
|
-
const reown =
|
|
19
|
+
const reown = _chunkYYIE5U5Kcjs.useReownWallet.call(void 0, );
|
|
20
20
|
const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
|
|
21
21
|
const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
|
|
22
22
|
enableSolana ? "solana" : "eip155"
|
|
@@ -37,7 +37,7 @@ function DepositModalWithReown(props) {
|
|
|
37
37
|
reown.disconnect();
|
|
38
38
|
}, [reown.disconnect]);
|
|
39
39
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
40
|
+
_chunk7LVI3VALcjs.DepositModalInner,
|
|
41
41
|
{
|
|
42
42
|
...props,
|
|
43
43
|
reownWallet: reownWithSolana,
|
|
@@ -48,7 +48,7 @@ function DepositModalWithReown(props) {
|
|
|
48
48
|
}
|
|
49
49
|
function DepositModalReown(props) {
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkYYIE5U5Kcjs.ReownWalletProvider,
|
|
52
52
|
{
|
|
53
53
|
projectId: props.reownAppId,
|
|
54
54
|
theme: props.theme,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NSAODZSS.mjs";
|
|
4
4
|
import "./chunk-FJWLC4AM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ReownWalletProvider,
|
|
7
7
|
useReownWallet
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-DXGM6YET.mjs";
|
|
9
|
+
import "./chunk-GQDVHMOT.mjs";
|
|
10
10
|
import "./chunk-F7P4MV72.mjs";
|
|
11
11
|
import "./chunk-WJX3TJFK.mjs";
|
|
12
12
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDASS33PJcjs = require('./chunk-DASS33PJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkYYIE5U5Kcjs = require('./chunk-YYIE5U5K.cjs');
|
|
8
|
+
require('./chunk-ZDYV536Q.cjs');
|
|
9
9
|
require('./chunk-UEKPBRBY.cjs');
|
|
10
10
|
require('./chunk-ABVRVW3P.cjs');
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ require('./chunk-ABVRVW3P.cjs');
|
|
|
13
13
|
var _react = require('react');
|
|
14
14
|
var _jsxruntime = require('react/jsx-runtime');
|
|
15
15
|
function WithdrawModalWithReown(props) {
|
|
16
|
-
const reown =
|
|
16
|
+
const reown = _chunkYYIE5U5Kcjs.useReownWallet.call(void 0, );
|
|
17
17
|
const handleConnect = _react.useCallback.call(void 0, () => {
|
|
18
18
|
reown.openConnect();
|
|
19
19
|
}, [reown.openConnect]);
|
|
@@ -21,7 +21,7 @@ function WithdrawModalWithReown(props) {
|
|
|
21
21
|
reown.disconnect();
|
|
22
22
|
}, [reown.disconnect]);
|
|
23
23
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24
|
-
|
|
24
|
+
_chunkDASS33PJcjs.WithdrawModalInner,
|
|
25
25
|
{
|
|
26
26
|
...props,
|
|
27
27
|
reownWallet: reown,
|
|
@@ -32,7 +32,7 @@ function WithdrawModalWithReown(props) {
|
|
|
32
32
|
}
|
|
33
33
|
function WithdrawModalReown(props) {
|
|
34
34
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35
|
-
|
|
35
|
+
_chunkYYIE5U5Kcjs.ReownWalletProvider,
|
|
36
36
|
{
|
|
37
37
|
projectId: props.reownAppId,
|
|
38
38
|
theme: props.theme,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3JVGI7FC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ReownWalletProvider,
|
|
6
6
|
useReownWallet
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-DXGM6YET.mjs";
|
|
8
|
+
import "./chunk-GQDVHMOT.mjs";
|
|
9
9
|
import "./chunk-F7P4MV72.mjs";
|
|
10
10
|
import "./chunk-WJX3TJFK.mjs";
|
|
11
11
|
|
|
@@ -31,8 +31,9 @@ import {
|
|
|
31
31
|
saveSessionOwnerToStorage,
|
|
32
32
|
useLatestRef,
|
|
33
33
|
useRpcUrls,
|
|
34
|
+
useStableRpcUrls,
|
|
34
35
|
useTokenPrices
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GQDVHMOT.mjs";
|
|
36
37
|
import {
|
|
37
38
|
buildSafeTransaction,
|
|
38
39
|
executeSafeErc20Transfer,
|
|
@@ -1593,7 +1594,7 @@ function deriveStepView(step, _registration) {
|
|
|
1593
1594
|
// src/WithdrawModal.tsx
|
|
1594
1595
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1595
1596
|
var ReownWithdrawInner = lazy(
|
|
1596
|
-
() => import("./WithdrawModalReown-
|
|
1597
|
+
() => import("./WithdrawModalReown-ZPDMX47Z.mjs").then((m) => ({
|
|
1597
1598
|
default: m.WithdrawModalReown
|
|
1598
1599
|
}))
|
|
1599
1600
|
);
|
|
@@ -1622,7 +1623,7 @@ function WithdrawModalInner({
|
|
|
1622
1623
|
closeOnOverlayClick,
|
|
1623
1624
|
allowedRoutes,
|
|
1624
1625
|
backendUrl = DEFAULT_BACKEND_URL,
|
|
1625
|
-
rpcUrls,
|
|
1626
|
+
rpcUrls: rpcUrlsProp,
|
|
1626
1627
|
signerAddress = DEFAULT_SIGNER_ADDRESS,
|
|
1627
1628
|
sessionChainIds,
|
|
1628
1629
|
forceRegister = false,
|
|
@@ -1647,6 +1648,7 @@ function WithdrawModalInner({
|
|
|
1647
1648
|
);
|
|
1648
1649
|
const targetChain = getChainId(targetChainProp);
|
|
1649
1650
|
const sourceChain = getChainId(sourceChainProp);
|
|
1651
|
+
const rpcUrls = useStableRpcUrls(rpcUrlsProp);
|
|
1650
1652
|
const service = useMemo3(
|
|
1651
1653
|
() => createDepositService(backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1652
1654
|
[backendUrl, debug]
|