@rhinestone/deposit-modal 0.0.0-dev-20260901120231 → 0.0.0-dev-20260901125921
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/bridge-transcript.json +14 -0
- package/dist/{ClaimModal-53ZQN7B7.mjs → ClaimModal-GECPNVYW.mjs} +5 -5
- package/dist/ClaimModal-TUIJ2FXZ.cjs +13 -0
- package/dist/{DepositModalReown-HVP2ZZNL.cjs → DepositModalReown-7X2P4Q3U.cjs} +18 -18
- package/dist/{DepositModalReown-6FZ53KIP.mjs → DepositModalReown-J5677AO3.mjs} +5 -5
- package/dist/{WithdrawModal-L77PPBMZ.mjs → WithdrawModal-EGUXJGKC.mjs} +4 -4
- package/dist/WithdrawModal-ZRO4GPL5.cjs +12 -0
- package/dist/{chunk-U6SK2GOY.mjs → chunk-5VTLHOWL.mjs} +1 -1
- package/dist/{chunk-WBUK27DO.cjs → chunk-6NMICTMH.cjs} +8 -8
- package/dist/{chunk-AXSKK5QR.cjs → chunk-76SNGRJ4.cjs} +272 -272
- package/dist/{chunk-BZPPG7KU.cjs → chunk-BBHL7Y6Q.cjs} +65 -65
- package/dist/{chunk-AAWLOBUU.cjs → chunk-E26VPCQS.cjs} +3 -3
- package/dist/{chunk-SXT4VLDP.cjs → chunk-GGEX3J6J.cjs} +67 -67
- package/dist/{chunk-LQIIVFFP.cjs → chunk-H4GKLXX7.cjs} +53 -53
- package/dist/{chunk-QFH6E337.mjs → chunk-HEBZWISE.mjs} +3 -3
- package/dist/{chunk-32YGCXVS.cjs → chunk-LHVHW2FC.cjs} +1 -1
- package/dist/{chunk-NWVX44AG.mjs → chunk-QO63RXOH.mjs} +1 -1
- package/dist/{chunk-26ORY7ZP.mjs → chunk-SSODFKQC.mjs} +1 -1
- package/dist/{chunk-HZ3NJXFI.mjs → chunk-UIMR4O7B.mjs} +2 -2
- package/dist/{chunk-KRAFCZ76.mjs → chunk-ULDG2NFL.mjs} +1 -1
- package/dist/{chunk-NOBMQXTO.cjs → chunk-UMHZX3KX.cjs} +32 -32
- package/dist/{chunk-RQ5TXRRW.mjs → chunk-URYV6A2L.mjs} +2 -2
- package/dist/{chunk-SP5DGA4X.mjs → chunk-V35JXQDL.mjs} +4 -4
- package/dist/claim.cjs +6 -6
- package/dist/claim.mjs +5 -5
- 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 +6 -6
- package/dist/deposit.mjs +5 -5
- package/dist/embed.cjs +113 -32
- package/dist/embed.mjs +94 -13
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +8 -8
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +2 -2
- package/dist/ClaimModal-C5E4JXDW.cjs +0 -13
- package/dist/WithdrawModal-2XGGPXWZ.cjs +0 -12
package/bridge-transcript.json
CHANGED
|
@@ -462,6 +462,10 @@
|
|
|
462
462
|
"kind": "event",
|
|
463
463
|
"type": "ui.state",
|
|
464
464
|
"shape": {
|
|
465
|
+
"contentHeight": [
|
|
466
|
+
"number",
|
|
467
|
+
"undefined"
|
|
468
|
+
],
|
|
465
469
|
"dismissal": {
|
|
466
470
|
"message": [
|
|
467
471
|
"string",
|
|
@@ -487,6 +491,16 @@
|
|
|
487
491
|
]
|
|
488
492
|
}
|
|
489
493
|
},
|
|
494
|
+
{
|
|
495
|
+
"dir": "page->host",
|
|
496
|
+
"kind": "event",
|
|
497
|
+
"type": "wallet.connectRequested"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"dir": "page->host",
|
|
501
|
+
"kind": "event",
|
|
502
|
+
"type": "wallet.disconnectRequested"
|
|
503
|
+
},
|
|
490
504
|
{
|
|
491
505
|
"dir": "page->host",
|
|
492
506
|
"kind": "request",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClaimModal,
|
|
3
3
|
buildClaimAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-HEBZWISE.mjs";
|
|
5
|
+
import "./chunk-UIMR4O7B.mjs";
|
|
6
|
+
import "./chunk-5VTLHOWL.mjs";
|
|
7
|
+
import "./chunk-ULDG2NFL.mjs";
|
|
8
|
+
import "./chunk-QO63RXOH.mjs";
|
|
9
9
|
import "./chunk-VUATPOWJ.mjs";
|
|
10
10
|
export {
|
|
11
11
|
ClaimModal,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkH4GKLXX7cjs = require('./chunk-H4GKLXX7.cjs');
|
|
5
|
+
require('./chunk-6NMICTMH.cjs');
|
|
6
|
+
require('./chunk-E26VPCQS.cjs');
|
|
7
|
+
require('./chunk-UMHZX3KX.cjs');
|
|
8
|
+
require('./chunk-LHVHW2FC.cjs');
|
|
9
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.ClaimModal = _chunkH4GKLXX7cjs.ClaimModal; exports.buildClaimAnalyticsSessionProperties = _chunkH4GKLXX7cjs.buildClaimAnalyticsSessionProperties;
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunk76SNGRJ4cjs = require('./chunk-76SNGRJ4.cjs');
|
|
5
|
+
require('./chunk-GGEX3J6J.cjs');
|
|
6
|
+
require('./chunk-E26VPCQS.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,8 +12,8 @@ require('./chunk-AAWLOBUU.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkUMHZX3KXcjs = require('./chunk-UMHZX3KX.cjs');
|
|
16
|
+
require('./chunk-LHVHW2FC.cjs');
|
|
17
17
|
require('./chunk-DW2EQA2U.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
@@ -46,7 +46,7 @@ var {
|
|
|
46
46
|
unichain,
|
|
47
47
|
katana,
|
|
48
48
|
hyperEvm
|
|
49
|
-
} =
|
|
49
|
+
} = _chunk76SNGRJ4cjs.getReownDependencies.call(void 0, )[1];
|
|
50
50
|
var APPKIT_NETWORK_BY_ID = {
|
|
51
51
|
[mainnet.id]: mainnet,
|
|
52
52
|
[optimism.id]: optimism,
|
|
@@ -78,7 +78,7 @@ function getAppKitNetwork(chainId) {
|
|
|
78
78
|
|
|
79
79
|
// src/core/reown-theme.ts
|
|
80
80
|
function mapTheme(theme) {
|
|
81
|
-
const themeMode =
|
|
81
|
+
const themeMode = _chunkUMHZX3KXcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
|
|
82
82
|
const themeVariables = {
|
|
83
83
|
"--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
|
|
84
84
|
};
|
|
@@ -95,7 +95,7 @@ function setAppKitTheme(appKit, theme) {
|
|
|
95
95
|
|
|
96
96
|
// src/core/reown.tsx
|
|
97
97
|
var _jsxruntime = require('react/jsx-runtime');
|
|
98
|
-
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] =
|
|
98
|
+
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunk76SNGRJ4cjs.getReownDependencies.call(void 0, );
|
|
99
99
|
var {
|
|
100
100
|
createAppKit,
|
|
101
101
|
useAppKit,
|
|
@@ -111,14 +111,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
|
111
111
|
const transports = {};
|
|
112
112
|
for (const network of networks) {
|
|
113
113
|
const id = Number(network.id);
|
|
114
|
-
transports[id] = _viem.http.call(void 0,
|
|
114
|
+
transports[id] = _viem.http.call(void 0, _chunkUMHZX3KXcjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
115
115
|
}
|
|
116
116
|
return transports;
|
|
117
117
|
}
|
|
118
118
|
function getEvmRpcFingerprint(rpcUrls, networks) {
|
|
119
119
|
return networks.map((network) => {
|
|
120
120
|
const id = Number(network.id);
|
|
121
|
-
return `${id}=${_nullishCoalesce(
|
|
121
|
+
return `${id}=${_nullishCoalesce(_chunkUMHZX3KXcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
122
122
|
}).join("|");
|
|
123
123
|
}
|
|
124
124
|
var cachedAdapter = null;
|
|
@@ -189,7 +189,7 @@ function ReownWalletProvider({
|
|
|
189
189
|
backendUrl,
|
|
190
190
|
children
|
|
191
191
|
}) {
|
|
192
|
-
const rpcUrls =
|
|
192
|
+
const rpcUrls = _chunkUMHZX3KXcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
193
193
|
const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
|
|
194
194
|
const overrides = _react.useMemo.call(void 0, () => {
|
|
195
195
|
if (!rpcUrls) return void 0;
|
|
@@ -201,14 +201,14 @@ function ReownWalletProvider({
|
|
|
201
201
|
return out;
|
|
202
202
|
}, [rpcUrls]);
|
|
203
203
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
204
|
-
const primed =
|
|
204
|
+
const primed = _chunkUMHZX3KXcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
205
205
|
return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
|
|
206
206
|
});
|
|
207
207
|
_react.useEffect.call(void 0, () => {
|
|
208
208
|
let active = true;
|
|
209
|
-
const primed =
|
|
209
|
+
const primed = _chunkUMHZX3KXcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
210
210
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
211
|
-
|
|
211
|
+
_chunkUMHZX3KXcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
212
212
|
if (active) setState({ ready: true, chains });
|
|
213
213
|
});
|
|
214
214
|
return () => {
|
|
@@ -217,7 +217,7 @@ function ReownWalletProvider({
|
|
|
217
217
|
}, [backendUrl, overrides]);
|
|
218
218
|
_react.useEffect.call(void 0, () => {
|
|
219
219
|
setAppKitTheme(appKitReact.modal, theme);
|
|
220
|
-
return
|
|
220
|
+
return _chunkUMHZX3KXcjs.followSystemAppearance.call(void 0,
|
|
221
221
|
_optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
|
|
222
222
|
() => setAppKitTheme(appKitReact.modal, theme)
|
|
223
223
|
);
|
|
@@ -281,7 +281,7 @@ function useReownWalletSession() {
|
|
|
281
281
|
await switchChainAsync({ chainId });
|
|
282
282
|
}
|
|
283
283
|
} catch (err) {
|
|
284
|
-
if (
|
|
284
|
+
if (_chunkUMHZX3KXcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
285
285
|
throw new Error(
|
|
286
286
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
287
287
|
);
|
|
@@ -294,7 +294,7 @@ function useReownWalletSession() {
|
|
|
294
294
|
|
|
295
295
|
// src/DepositModalReown.tsx
|
|
296
296
|
|
|
297
|
-
var [appKitReact2, , , , solanaAdapterReact] =
|
|
297
|
+
var [appKitReact2, , , , solanaAdapterReact] = _chunk76SNGRJ4cjs.getReownDependencies.call(void 0, );
|
|
298
298
|
var { useAppKitProvider } = appKitReact2;
|
|
299
299
|
var { useAppKitConnection } = solanaAdapterReact;
|
|
300
300
|
function DepositModalWithReown(props) {
|
|
@@ -316,7 +316,7 @@ function DepositModalWithReown(props) {
|
|
|
316
316
|
reown.disconnect();
|
|
317
317
|
}, [reown.disconnect]);
|
|
318
318
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
-
|
|
319
|
+
_chunk76SNGRJ4cjs.DepositModalInner,
|
|
320
320
|
{
|
|
321
321
|
...props,
|
|
322
322
|
walletSession: reownWithSolana,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner,
|
|
3
3
|
getReownDependencies
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-V35JXQDL.mjs";
|
|
5
|
+
import "./chunk-SSODFKQC.mjs";
|
|
6
|
+
import "./chunk-5VTLHOWL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
followSystemAppearance,
|
|
9
9
|
isUnsupportedChainSwitchError,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
resolveThemeMode,
|
|
13
13
|
rpcUrlFor,
|
|
14
14
|
useStableRpcUrls
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-ULDG2NFL.mjs";
|
|
16
|
+
import "./chunk-QO63RXOH.mjs";
|
|
17
17
|
import "./chunk-RN5VKWI6.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SUPPORTED_CHAIN_IDS,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal,
|
|
3
3
|
buildWithdrawAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-URYV6A2L.mjs";
|
|
5
|
+
import "./chunk-SSODFKQC.mjs";
|
|
6
|
+
import "./chunk-ULDG2NFL.mjs";
|
|
7
|
+
import "./chunk-QO63RXOH.mjs";
|
|
8
8
|
import "./chunk-VUATPOWJ.mjs";
|
|
9
9
|
export {
|
|
10
10
|
WithdrawModal,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkBBHL7Y6Qcjs = require('./chunk-BBHL7Y6Q.cjs');
|
|
5
|
+
require('./chunk-GGEX3J6J.cjs');
|
|
6
|
+
require('./chunk-UMHZX3KX.cjs');
|
|
7
|
+
require('./chunk-LHVHW2FC.cjs');
|
|
8
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.WithdrawModal = _chunkBBHL7Y6Qcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkBBHL7Y6Qcjs.buildWithdrawAnalyticsSessionProperties;
|
|
@@ -1,10 +1,10 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUMHZX3KXcjs = require('./chunk-UMHZX3KX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLHVHW2FCcjs = require('./chunk-LHVHW2FC.cjs');
|
|
8
8
|
|
|
9
9
|
// src/core/recovery.ts
|
|
10
10
|
var RECOVER_DOMAIN = {
|
|
@@ -91,7 +91,7 @@ async function submitSignedRecovery(params) {
|
|
|
91
91
|
destination
|
|
92
92
|
});
|
|
93
93
|
} catch (error) {
|
|
94
|
-
|
|
94
|
+
_chunkUMHZX3KXcjs.debugError.call(void 0, debug, scope, "signRecovery:failed", error);
|
|
95
95
|
throw new RecoveryError(
|
|
96
96
|
"Signature request was declined. Approve it in your wallet to recover this deposit.",
|
|
97
97
|
0,
|
|
@@ -110,7 +110,7 @@ async function submitSignedRecovery(params) {
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
const url = `${backendUrl.replace(/\/$/, "")}/deposits/recover`;
|
|
113
|
-
|
|
113
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:request", {
|
|
114
114
|
url,
|
|
115
115
|
depositId,
|
|
116
116
|
signer
|
|
@@ -122,19 +122,19 @@ async function submitSignedRecovery(params) {
|
|
|
122
122
|
// The shared const, so recovery carries `x-deposit-modal-version` like
|
|
123
123
|
// every other backend call. Without it this path would be invisible in the
|
|
124
124
|
// per-client version telemetry the processor records.
|
|
125
|
-
headers:
|
|
125
|
+
headers: _chunkLHVHW2FCcjs.serviceHeaders.call(void 0, ),
|
|
126
126
|
// `depositId` as a string: it is a uint256 upstream and JSON numbers lose
|
|
127
127
|
// precision well before that range.
|
|
128
128
|
body: JSON.stringify({ depositId, destination, signature })
|
|
129
129
|
});
|
|
130
130
|
} catch (error) {
|
|
131
|
-
|
|
131
|
+
_chunkUMHZX3KXcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:network", error);
|
|
132
132
|
const { message, retryable } = formatRecoveryError(0);
|
|
133
133
|
throw new RecoveryError(message, 0, void 0, retryable, "request");
|
|
134
134
|
}
|
|
135
135
|
if (!response.ok) {
|
|
136
136
|
const body = await response.json().catch(() => ({}));
|
|
137
|
-
|
|
137
|
+
_chunkUMHZX3KXcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:failed", body, {
|
|
138
138
|
status: response.status
|
|
139
139
|
});
|
|
140
140
|
const { message, retryable } = formatRecoveryError(
|
|
@@ -151,7 +151,7 @@ async function submitSignedRecovery(params) {
|
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
153
|
const result = await response.json();
|
|
154
|
-
|
|
154
|
+
_chunkUMHZX3KXcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:success", {
|
|
155
155
|
transactionHash: result.transactionHash
|
|
156
156
|
});
|
|
157
157
|
return result;
|