@rhinestone/deposit-modal 0.0.0-dev-20261007103227 → 0.0.0-dev-20261007123232
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/{BankOnrampStep-KLMMFY25.cjs → BankOnrampStep-37WGJIO4.cjs} +11 -11
- package/dist/{BankOnrampStep-R3SZKFU5.mjs → BankOnrampStep-JUFVAVIS.mjs} +4 -4
- package/dist/{DepositModalReown-LPEA3EDP.mjs → DepositModalReown-6GHQQNMW.mjs} +3 -3
- package/dist/{DepositModalReown-7WUBPSQY.cjs → DepositModalReown-UBVBTDF3.cjs} +16 -16
- package/dist/WithdrawModal-3AAAZV34.cjs +12 -0
- package/dist/{WithdrawModal-UFUHRECP.mjs → WithdrawModal-A3IW3SXX.mjs} +3 -3
- package/dist/{chunk-FI2T4OSW.cjs → chunk-3VTLHPMC.cjs} +2 -2
- package/dist/{chunk-I7JYONDV.cjs → chunk-5PS2QNOU.cjs} +2 -2
- package/dist/{chunk-JFP26XWR.mjs → chunk-B4THBLY7.mjs} +1 -1
- package/dist/{chunk-7Q2YTZW3.cjs → chunk-E6LUVX6Q.cjs} +1 -1
- package/dist/{chunk-KU56OITO.mjs → chunk-FYNIS26C.mjs} +1 -1
- package/dist/{chunk-PRWK542A.mjs → chunk-GCXBWEVD.mjs} +10 -13
- package/dist/{chunk-2NN37DZA.cjs → chunk-GDOFONYI.cjs} +58 -58
- package/dist/{chunk-G5V7SVFT.cjs → chunk-HKWTABVW.cjs} +375 -369
- package/dist/{chunk-KM27AW5T.cjs → chunk-INWUGACR.cjs} +3 -3
- package/dist/{chunk-XXZOHOOA.mjs → chunk-ITLGT5C5.mjs} +1 -1
- package/dist/{chunk-U4SNGUHP.cjs → chunk-MD6EFUBO.cjs} +40 -43
- package/dist/{chunk-NBSBC37H.mjs → chunk-UGIKPKMY.mjs} +1 -1
- package/dist/{chunk-CFL6JAQU.mjs → chunk-UUGROFL6.mjs} +10 -4
- package/dist/{chunk-RUQABRCV.mjs → chunk-WVSX6PLI.mjs} +1 -1
- package/dist/compliance.cjs +4 -4
- package/dist/compliance.mjs +3 -3
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.mjs +3 -3
- package/dist/embed.cjs +14 -14
- package/dist/embed.mjs +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +4 -4
- package/dist/onramp.cjs +4 -4
- package/dist/onramp.mjs +3 -3
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.mjs +3 -3
- package/package.json +1 -1
- package/dist/WithdrawModal-IQHF4SG7.cjs +0 -12
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
var _chunkG264OM23cjs = require('./chunk-G264OM23.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk5PS2QNOUcjs = require('./chunk-5PS2QNOU.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkINWUGACRcjs = require('./chunk-INWUGACR.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
18
|
+
var _chunk3VTLHPMCcjs = require('./chunk-3VTLHPMC.cjs');
|
|
19
|
+
require('./chunk-E6LUVX6Q.cjs');
|
|
20
20
|
|
|
21
21
|
// src/components/steps/BankOnrampStep.tsx
|
|
22
22
|
var _react = require('react');
|
|
@@ -145,7 +145,7 @@ function BankOnrampStep({
|
|
|
145
145
|
[backendUrl, getSessionRef, smartAccount]
|
|
146
146
|
);
|
|
147
147
|
const service = _react.useMemo.call(void 0,
|
|
148
|
-
() =>
|
|
148
|
+
() => _chunk5PS2QNOUcjs.createOnrampService.call(void 0, sessionOptions),
|
|
149
149
|
[sessionOptions]
|
|
150
150
|
);
|
|
151
151
|
const [availableForHistory, setAvailableForHistory] = _react.useState.call(void 0, false);
|
|
@@ -175,7 +175,7 @@ function BankOnrampStep({
|
|
|
175
175
|
[]
|
|
176
176
|
);
|
|
177
177
|
const startVerification = _react.useCallback.call(void 0, async () => {
|
|
178
|
-
const session = await
|
|
178
|
+
const session = await _chunkINWUGACRcjs.startComplianceVerification.call(void 0, sessionOptions);
|
|
179
179
|
if (session.status === "failed") return "declined";
|
|
180
180
|
if (!session.nextAction) return "reviewing";
|
|
181
181
|
if (!isTrustedNoahHostedUrl(session.nextAction.url)) return "reviewing";
|
|
@@ -191,7 +191,7 @@ function BankOnrampStep({
|
|
|
191
191
|
return "action_required";
|
|
192
192
|
}, [openExternally, sessionOptions]);
|
|
193
193
|
const ensureVerified = _react.useCallback.call(void 0, async () => {
|
|
194
|
-
const current = await
|
|
194
|
+
const current = await _chunkINWUGACRcjs.getComplianceStatus.call(void 0, sessionOptions);
|
|
195
195
|
if (current.status === "approved") return "approved";
|
|
196
196
|
if (current.status === "declined") return "declined";
|
|
197
197
|
return startVerification();
|
|
@@ -203,7 +203,7 @@ function BankOnrampStep({
|
|
|
203
203
|
setNoOptions(false);
|
|
204
204
|
try {
|
|
205
205
|
const discover = () => service.getOptions().catch((error2) => {
|
|
206
|
-
if (error2 instanceof
|
|
206
|
+
if (error2 instanceof _chunk3VTLHPMCcjs.ScopedRequestError && error2.status === 404 && onUnavailable) {
|
|
207
207
|
if (isCurrentRequest(generation)) onUnavailable();
|
|
208
208
|
return null;
|
|
209
209
|
}
|
|
@@ -270,7 +270,7 @@ function BankOnrampStep({
|
|
|
270
270
|
setBankDetails(details);
|
|
271
271
|
} catch (error2) {
|
|
272
272
|
if (!isCurrentRequest(generation)) return;
|
|
273
|
-
const pending = error2 instanceof
|
|
273
|
+
const pending = error2 instanceof _chunk3VTLHPMCcjs.ScopedRequestError && error2.status === 409;
|
|
274
274
|
const message = pending ? PENDING_ERROR : SAFE_ERROR;
|
|
275
275
|
setError(message);
|
|
276
276
|
_optionalChain([onError, 'optionalCall', _4 => _4(
|
|
@@ -304,7 +304,7 @@ function BankOnrampStep({
|
|
|
304
304
|
await openDetails(nextAccount);
|
|
305
305
|
} catch (error2) {
|
|
306
306
|
if (!isCurrentRequest(generation)) return;
|
|
307
|
-
if (error2 instanceof
|
|
307
|
+
if (error2 instanceof _chunk3VTLHPMCcjs.ScopedRequestError && error2.status === 409 && error2.code === "VERIFICATION_REQUIRED" && !verificationResumedRef.current) {
|
|
308
308
|
verificationResumedRef.current = true;
|
|
309
309
|
try {
|
|
310
310
|
const verification = await startVerification();
|
|
@@ -340,7 +340,7 @@ function BankOnrampStep({
|
|
|
340
340
|
const timer = setInterval(() => {
|
|
341
341
|
void (async () => {
|
|
342
342
|
try {
|
|
343
|
-
const status = await
|
|
343
|
+
const status = await _chunkINWUGACRcjs.getComplianceStatus.call(void 0, sessionOptions);
|
|
344
344
|
if (!active) return;
|
|
345
345
|
if (status.status === "approved") {
|
|
346
346
|
setHostedUrl(null);
|
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
} from "./chunk-YY4ZOAH5.mjs";
|
|
9
9
|
import {
|
|
10
10
|
createOnrampService
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-B4THBLY7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getComplianceStatus,
|
|
14
14
|
startComplianceVerification
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FYNIS26C.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ScopedRequestError
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-UGIKPKMY.mjs";
|
|
19
|
+
import "./chunk-WVSX6PLI.mjs";
|
|
20
20
|
|
|
21
21
|
// src/components/steps/BankOnrampStep.tsx
|
|
22
22
|
import { useCallback, useEffect, useMemo, useRef, useState as useState2 } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner,
|
|
3
3
|
getReownDependencies
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UUGROFL6.mjs";
|
|
5
5
|
import "./chunk-2FOPO4N5.mjs";
|
|
6
6
|
import {
|
|
7
7
|
followSystemAppearance,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
resolveThemeMode,
|
|
12
12
|
rpcUrlFor,
|
|
13
13
|
useStableRpcUrls
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GCXBWEVD.mjs";
|
|
15
15
|
import "./chunk-YY4ZOAH5.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SUPPORTED_CHAIN_IDS,
|
|
18
18
|
getChainName
|
|
19
19
|
} from "./chunk-E7IMWVMN.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WVSX6PLI.mjs";
|
|
21
21
|
|
|
22
22
|
// src/DepositModalReown.tsx
|
|
23
23
|
import { useCallback, useMemo as useMemo2 } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkHKWTABVWcjs = require('./chunk-HKWTABVW.cjs');
|
|
5
5
|
require('./chunk-FVJKUTHF.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
@@ -11,13 +11,13 @@ require('./chunk-FVJKUTHF.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkMD6EFUBOcjs = require('./chunk-MD6EFUBO.cjs');
|
|
15
15
|
require('./chunk-G264OM23.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkFKJ6EJHHcjs = require('./chunk-FKJ6EJHH.cjs');
|
|
20
|
-
require('./chunk-
|
|
20
|
+
require('./chunk-E6LUVX6Q.cjs');
|
|
21
21
|
|
|
22
22
|
// src/DepositModalReown.tsx
|
|
23
23
|
var _react = require('react');
|
|
@@ -45,7 +45,7 @@ var {
|
|
|
45
45
|
unichain,
|
|
46
46
|
katana,
|
|
47
47
|
hyperEvm
|
|
48
|
-
} =
|
|
48
|
+
} = _chunkHKWTABVWcjs.getReownDependencies.call(void 0, )[1];
|
|
49
49
|
var APPKIT_NETWORK_BY_ID = {
|
|
50
50
|
[mainnet.id]: mainnet,
|
|
51
51
|
[optimism.id]: optimism,
|
|
@@ -77,7 +77,7 @@ function getAppKitNetwork(chainId) {
|
|
|
77
77
|
|
|
78
78
|
// src/core/reown-theme.ts
|
|
79
79
|
function mapTheme(theme) {
|
|
80
|
-
const themeMode =
|
|
80
|
+
const themeMode = _chunkMD6EFUBOcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
|
|
81
81
|
const themeVariables = {
|
|
82
82
|
"--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
|
|
83
83
|
};
|
|
@@ -94,7 +94,7 @@ function setAppKitTheme(appKit, theme) {
|
|
|
94
94
|
|
|
95
95
|
// src/core/reown.tsx
|
|
96
96
|
var _jsxruntime = require('react/jsx-runtime');
|
|
97
|
-
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] =
|
|
97
|
+
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunkHKWTABVWcjs.getReownDependencies.call(void 0, );
|
|
98
98
|
var {
|
|
99
99
|
createAppKit,
|
|
100
100
|
useAppKit,
|
|
@@ -110,14 +110,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
|
110
110
|
const transports = {};
|
|
111
111
|
for (const network of networks) {
|
|
112
112
|
const id = Number(network.id);
|
|
113
|
-
transports[id] = _viem.http.call(void 0,
|
|
113
|
+
transports[id] = _viem.http.call(void 0, _chunkMD6EFUBOcjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
114
114
|
}
|
|
115
115
|
return transports;
|
|
116
116
|
}
|
|
117
117
|
function getEvmRpcFingerprint(rpcUrls, networks) {
|
|
118
118
|
return networks.map((network) => {
|
|
119
119
|
const id = Number(network.id);
|
|
120
|
-
return `${id}=${_nullishCoalesce(
|
|
120
|
+
return `${id}=${_nullishCoalesce(_chunkMD6EFUBOcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
121
121
|
}).join("|");
|
|
122
122
|
}
|
|
123
123
|
var cachedAdapter = null;
|
|
@@ -188,7 +188,7 @@ function ReownWalletProvider({
|
|
|
188
188
|
backendUrl,
|
|
189
189
|
children
|
|
190
190
|
}) {
|
|
191
|
-
const rpcUrls =
|
|
191
|
+
const rpcUrls = _chunkMD6EFUBOcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
192
192
|
const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
|
|
193
193
|
const overrides = _react.useMemo.call(void 0, () => {
|
|
194
194
|
if (!rpcUrls) return void 0;
|
|
@@ -200,14 +200,14 @@ function ReownWalletProvider({
|
|
|
200
200
|
return out;
|
|
201
201
|
}, [rpcUrls]);
|
|
202
202
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
203
|
-
const primed =
|
|
203
|
+
const primed = _chunkMD6EFUBOcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
204
204
|
return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
|
|
205
205
|
});
|
|
206
206
|
_react.useEffect.call(void 0, () => {
|
|
207
207
|
let active = true;
|
|
208
|
-
const primed =
|
|
208
|
+
const primed = _chunkMD6EFUBOcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
209
209
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
210
|
-
|
|
210
|
+
_chunkMD6EFUBOcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
211
211
|
if (active) setState({ ready: true, chains });
|
|
212
212
|
});
|
|
213
213
|
return () => {
|
|
@@ -216,7 +216,7 @@ function ReownWalletProvider({
|
|
|
216
216
|
}, [backendUrl, overrides]);
|
|
217
217
|
_react.useEffect.call(void 0, () => {
|
|
218
218
|
setAppKitTheme(appKitReact.modal, theme);
|
|
219
|
-
return
|
|
219
|
+
return _chunkMD6EFUBOcjs.followSystemAppearance.call(void 0,
|
|
220
220
|
_optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
|
|
221
221
|
() => setAppKitTheme(appKitReact.modal, theme)
|
|
222
222
|
);
|
|
@@ -280,7 +280,7 @@ function useReownWalletSession() {
|
|
|
280
280
|
await switchChainAsync({ chainId });
|
|
281
281
|
}
|
|
282
282
|
} catch (err) {
|
|
283
|
-
if (
|
|
283
|
+
if (_chunkMD6EFUBOcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
284
284
|
throw new Error(
|
|
285
285
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
286
286
|
);
|
|
@@ -293,7 +293,7 @@ function useReownWalletSession() {
|
|
|
293
293
|
|
|
294
294
|
// src/DepositModalReown.tsx
|
|
295
295
|
|
|
296
|
-
var [appKitReact2, , , , solanaAdapterReact] =
|
|
296
|
+
var [appKitReact2, , , , solanaAdapterReact] = _chunkHKWTABVWcjs.getReownDependencies.call(void 0, );
|
|
297
297
|
var { useAppKitProvider } = appKitReact2;
|
|
298
298
|
var { useAppKitConnection } = solanaAdapterReact;
|
|
299
299
|
function DepositModalWithReown(props) {
|
|
@@ -315,7 +315,7 @@ function DepositModalWithReown(props) {
|
|
|
315
315
|
reown.disconnect();
|
|
316
316
|
}, [reown.disconnect]);
|
|
317
317
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
|
-
|
|
318
|
+
_chunkHKWTABVWcjs.DepositModalInner,
|
|
319
319
|
{
|
|
320
320
|
...props,
|
|
321
321
|
walletSession: reownWithSolana,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkGDOFONYIcjs = require('./chunk-GDOFONYI.cjs');
|
|
5
|
+
require('./chunk-MD6EFUBO.cjs');
|
|
6
|
+
require('./chunk-G264OM23.cjs');
|
|
7
|
+
require('./chunk-FKJ6EJHH.cjs');
|
|
8
|
+
require('./chunk-E6LUVX6Q.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.WithdrawModal = _chunkGDOFONYIcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkGDOFONYIcjs.buildWithdrawAnalyticsSessionProperties;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal,
|
|
3
3
|
buildWithdrawAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ITLGT5C5.mjs";
|
|
5
|
+
import "./chunk-GCXBWEVD.mjs";
|
|
6
6
|
import "./chunk-YY4ZOAH5.mjs";
|
|
7
7
|
import "./chunk-E7IMWVMN.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WVSX6PLI.mjs";
|
|
9
9
|
export {
|
|
10
10
|
WithdrawModal,
|
|
11
11
|
buildWithdrawAnalyticsSessionProperties
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkE6LUVX6Qcjs = require('./chunk-E6LUVX6Q.cjs');
|
|
4
4
|
|
|
5
5
|
// src/core/bearer-transport.ts
|
|
6
6
|
var ScopedRequestError = class extends Error {
|
|
@@ -23,7 +23,7 @@ function createBearerTransport(options) {
|
|
|
23
23
|
const response = await fetch(`${base}${path}`, {
|
|
24
24
|
method: body === void 0 ? "GET" : "POST",
|
|
25
25
|
headers: {
|
|
26
|
-
...
|
|
26
|
+
..._chunkE6LUVX6Qcjs.serviceHeaders.call(void 0, ),
|
|
27
27
|
Authorization: `Bearer ${session.token}`
|
|
28
28
|
},
|
|
29
29
|
body: body === void 0 ? void 0 : JSON.stringify(body),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3VTLHPMCcjs = require('./chunk-3VTLHPMC.cjs');
|
|
4
4
|
|
|
5
5
|
// src/core/ramp-utils.ts
|
|
6
6
|
function rampQuery(value) {
|
|
@@ -76,7 +76,7 @@ function projectBankDetails(input) {
|
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
function createOnrampService(options) {
|
|
79
|
-
const request =
|
|
79
|
+
const request = _chunk3VTLHPMCcjs.createBearerTransport.call(void 0, options);
|
|
80
80
|
return {
|
|
81
81
|
// Named fields only, never a spread: this client is Noah's, whatever a
|
|
82
82
|
// caller passes.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/core/version.ts
|
|
2
|
-
var MODAL_VERSION = "0.0.0-dev-
|
|
2
|
+
var MODAL_VERSION = "0.0.0-dev-20261007123232";
|
|
3
3
|
var SERVICE_HEADERS = {
|
|
4
4
|
"Content-Type": "application/json",
|
|
5
5
|
"x-deposit-modal-version": MODAL_VERSION
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
MODAL_VERSION,
|
|
47
47
|
serviceHeaders
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WVSX6PLI.mjs";
|
|
49
49
|
|
|
50
50
|
// src/components/ui/Modal.tsx
|
|
51
51
|
import {
|
|
@@ -3497,7 +3497,6 @@ function toRecoverableDeposit(row, options = {}) {
|
|
|
3497
3497
|
return {
|
|
3498
3498
|
depositId: row.id,
|
|
3499
3499
|
signer,
|
|
3500
|
-
destinationPrefill: signer,
|
|
3501
3500
|
depositAddress: row.depositAddress,
|
|
3502
3501
|
sourceChainId,
|
|
3503
3502
|
targetChainId,
|
|
@@ -5674,7 +5673,6 @@ function RecoveryReviewScreen({
|
|
|
5674
5673
|
amountRaw,
|
|
5675
5674
|
txHash,
|
|
5676
5675
|
defaultDestination,
|
|
5677
|
-
destinationHint,
|
|
5678
5676
|
depositAddress,
|
|
5679
5677
|
submitting,
|
|
5680
5678
|
onSubmit,
|
|
@@ -5689,9 +5687,7 @@ function RecoveryReviewScreen({
|
|
|
5689
5687
|
decimals
|
|
5690
5688
|
});
|
|
5691
5689
|
const explorerTxUrl = useExplorerTxUrl();
|
|
5692
|
-
const [destination, setDestination] = useState7(
|
|
5693
|
-
defaultDestination ?? ""
|
|
5694
|
-
);
|
|
5690
|
+
const [destination, setDestination] = useState7(defaultDestination ?? "");
|
|
5695
5691
|
const isSelfDestination = isDepositSelfDestination(
|
|
5696
5692
|
{ depositAddress },
|
|
5697
5693
|
destination
|
|
@@ -5777,7 +5773,7 @@ function RecoveryReviewScreen({
|
|
|
5777
5773
|
placeholder: "0x\u2026",
|
|
5778
5774
|
value: destination,
|
|
5779
5775
|
onChange: (e) => setDestination(e.target.value),
|
|
5780
|
-
hint:
|
|
5776
|
+
hint: `An address you control on ${chainName}.`,
|
|
5781
5777
|
error: isSelfDestination ? selfDestinationError : destination.length > 0 && !destinationValid ? "Enter a valid address" : void 0
|
|
5782
5778
|
}
|
|
5783
5779
|
),
|
|
@@ -5816,6 +5812,7 @@ function HistoryRecoveryFlow({
|
|
|
5816
5812
|
const [outcome, setOutcome] = useState8(null);
|
|
5817
5813
|
const [error, setError] = useState8(null);
|
|
5818
5814
|
const [retryable, setRetryable] = useState8(false);
|
|
5815
|
+
const [destination, setDestination] = useState8();
|
|
5819
5816
|
const lastFailureRef = useRef5(null);
|
|
5820
5817
|
useEffect9(() => {
|
|
5821
5818
|
if (entrySource === "history_row") {
|
|
@@ -5832,7 +5829,8 @@ function HistoryRecoveryFlow({
|
|
|
5832
5829
|
deposit.token
|
|
5833
5830
|
);
|
|
5834
5831
|
const submit = useCallback6(
|
|
5835
|
-
async (
|
|
5832
|
+
async (destination2) => {
|
|
5833
|
+
setDestination(destination2);
|
|
5836
5834
|
setPhase("submitting");
|
|
5837
5835
|
onSubmittingChange(true);
|
|
5838
5836
|
analytics.completeStep("review");
|
|
@@ -5845,14 +5843,14 @@ function HistoryRecoveryFlow({
|
|
|
5845
5843
|
chainId: deposit.targetChainId,
|
|
5846
5844
|
depositId: deposit.depositId,
|
|
5847
5845
|
signer: deposit.signer,
|
|
5848
|
-
destination,
|
|
5846
|
+
destination: destination2,
|
|
5849
5847
|
signRecovery,
|
|
5850
5848
|
debug
|
|
5851
5849
|
});
|
|
5852
5850
|
setOutcome({
|
|
5853
5851
|
// No destination to reconcile: it is inside the signed struct, so the
|
|
5854
5852
|
// processor cannot have paid anywhere else.
|
|
5855
|
-
destination,
|
|
5853
|
+
destination: destination2,
|
|
5856
5854
|
txHash: result.transactionHash,
|
|
5857
5855
|
symbol,
|
|
5858
5856
|
amountDisplay: formatRecoveryAmount(
|
|
@@ -5953,8 +5951,7 @@ function HistoryRecoveryFlow({
|
|
|
5953
5951
|
token: deposit.token,
|
|
5954
5952
|
amountRaw: deposit.amountRaw,
|
|
5955
5953
|
txHash: deposit.sourceTxHash,
|
|
5956
|
-
defaultDestination:
|
|
5957
|
-
destinationHint: "Prefilled with the account this deposit was for. Editable.",
|
|
5954
|
+
defaultDestination: destination,
|
|
5958
5955
|
depositAddress: deposit.depositAddress,
|
|
5959
5956
|
submitting,
|
|
5960
5957
|
onSubmit: submit,
|
|
@@ -6099,7 +6096,7 @@ function HistoryOverlay({
|
|
|
6099
6096
|
() => ({
|
|
6100
6097
|
presentation: inline ? "inline" : "overlay",
|
|
6101
6098
|
overlay_close_enabled: !inline && Boolean(closeOnOverlayClick),
|
|
6102
|
-
prefills: { transaction_hash: false, refund_destination:
|
|
6099
|
+
prefills: { transaction_hash: false, refund_destination: false }
|
|
6103
6100
|
}),
|
|
6104
6101
|
[inline, closeOnOverlayClick]
|
|
6105
6102
|
);
|