@rhinestone/deposit-modal 0.0.0-dev-20260901125921 → 0.0.0-dev-20260901143615
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/{ClaimModal-GECPNVYW.mjs → ClaimModal-G2H2OAQ5.mjs} +4 -5
- package/dist/ClaimModal-VEC6WRH4.cjs +12 -0
- package/dist/{DepositModalReown-J5677AO3.mjs → DepositModalReown-A5SVGGFE.mjs} +5 -5
- package/dist/{DepositModalReown-7X2P4Q3U.cjs → DepositModalReown-VSENSCKE.cjs} +18 -18
- package/dist/WithdrawModal-EYXNAGRP.cjs +12 -0
- package/dist/{WithdrawModal-EGUXJGKC.mjs → WithdrawModal-WKCVJ46H.mjs} +4 -4
- package/dist/{chunk-H4GKLXX7.cjs → chunk-5YDSTA4M.cjs} +73 -220
- package/dist/{chunk-UMHZX3KX.cjs → chunk-647N5MIO.cjs} +172 -172
- package/dist/chunk-CSETDQYL.mjs +529 -0
- package/dist/{chunk-QO63RXOH.mjs → chunk-EGKGTIUB.mjs} +1 -1
- package/dist/chunk-FWON4BDL.cjs +529 -0
- package/dist/{chunk-GGEX3J6J.cjs → chunk-GB6G35LO.cjs} +67 -67
- package/dist/{chunk-V35JXQDL.mjs → chunk-K2QADB45.mjs} +339 -94
- package/dist/{chunk-76SNGRJ4.cjs → chunk-KMF4PTT5.cjs} +557 -312
- package/dist/{chunk-ULDG2NFL.mjs → chunk-KSHSNZFP.mjs} +99 -99
- package/dist/{chunk-LHVHW2FC.cjs → chunk-LQOPDRF5.cjs} +1 -1
- package/dist/{chunk-URYV6A2L.mjs → chunk-MIYMRTHD.mjs} +2 -2
- package/dist/{chunk-HEBZWISE.mjs → chunk-RJSA62SU.mjs} +85 -232
- package/dist/{chunk-SSODFKQC.mjs → chunk-TFEBVSZ3.mjs} +1 -1
- package/dist/{chunk-BBHL7Y6Q.cjs → chunk-ZLOZ5KXU.cjs} +65 -65
- package/dist/claim.cjs +5 -6
- package/dist/claim.d.cts +2 -2
- package/dist/claim.d.ts +2 -2
- package/dist/claim.mjs +4 -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.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +5 -5
- package/dist/embed.cjs +26 -18
- package/dist/embed.d.cts +1 -1
- package/dist/embed.d.ts +1 -1
- package/dist/embed.mjs +16 -8
- package/dist/index.cjs +8 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +7 -8
- package/dist/styles.css +59 -9
- package/dist/{types-Bho4OA03.d.ts → types-D36e_rVZ.d.ts} +25 -3
- package/dist/{types-DP_3KwlD.d.cts → types-TsOeInuD.d.cts} +25 -3
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +4 -4
- package/package.json +5 -5
- package/dist/ClaimModal-TUIJ2FXZ.cjs +0 -13
- package/dist/WithdrawModal-ZRO4GPL5.cjs +0 -12
- package/dist/chunk-5VTLHOWL.mjs +0 -81
- package/dist/chunk-6NMICTMH.cjs +0 -163
- package/dist/chunk-E26VPCQS.cjs +0 -81
- package/dist/chunk-UIMR4O7B.mjs +0 -163
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClaimModal,
|
|
3
3
|
buildClaimAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-QO63RXOH.mjs";
|
|
4
|
+
} from "./chunk-RJSA62SU.mjs";
|
|
5
|
+
import "./chunk-CSETDQYL.mjs";
|
|
6
|
+
import "./chunk-KSHSNZFP.mjs";
|
|
7
|
+
import "./chunk-EGKGTIUB.mjs";
|
|
9
8
|
import "./chunk-VUATPOWJ.mjs";
|
|
10
9
|
export {
|
|
11
10
|
ClaimModal,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk5YDSTA4Mcjs = require('./chunk-5YDSTA4M.cjs');
|
|
5
|
+
require('./chunk-FWON4BDL.cjs');
|
|
6
|
+
require('./chunk-647N5MIO.cjs');
|
|
7
|
+
require('./chunk-LQOPDRF5.cjs');
|
|
8
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.ClaimModal = _chunk5YDSTA4Mcjs.ClaimModal; exports.buildClaimAnalyticsSessionProperties = _chunk5YDSTA4Mcjs.buildClaimAnalyticsSessionProperties;
|
|
@@ -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-K2QADB45.mjs";
|
|
5
|
+
import "./chunk-TFEBVSZ3.mjs";
|
|
6
|
+
import "./chunk-CSETDQYL.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-KSHSNZFP.mjs";
|
|
16
|
+
import "./chunk-EGKGTIUB.mjs";
|
|
17
17
|
import "./chunk-RN5VKWI6.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SUPPORTED_CHAIN_IDS,
|
|
@@ -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 _chunkKMF4PTT5cjs = require('./chunk-KMF4PTT5.cjs');
|
|
5
|
+
require('./chunk-GB6G35LO.cjs');
|
|
6
|
+
require('./chunk-FWON4BDL.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,8 +12,8 @@ require('./chunk-E26VPCQS.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunk647N5MIOcjs = require('./chunk-647N5MIO.cjs');
|
|
16
|
+
require('./chunk-LQOPDRF5.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
|
+
} = _chunkKMF4PTT5cjs.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 = _chunk647N5MIOcjs.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] = _chunkKMF4PTT5cjs.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, _chunk647N5MIOcjs.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(_chunk647N5MIOcjs.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 = _chunk647N5MIOcjs.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 = _chunk647N5MIOcjs.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 = _chunk647N5MIOcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
210
210
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
211
|
-
|
|
211
|
+
_chunk647N5MIOcjs.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 _chunk647N5MIOcjs.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 (_chunk647N5MIOcjs.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] = _chunkKMF4PTT5cjs.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
|
+
_chunkKMF4PTT5cjs.DepositModalInner,
|
|
320
320
|
{
|
|
321
321
|
...props,
|
|
322
322
|
walletSession: reownWithSolana,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkZLOZ5KXUcjs = require('./chunk-ZLOZ5KXU.cjs');
|
|
5
|
+
require('./chunk-GB6G35LO.cjs');
|
|
6
|
+
require('./chunk-647N5MIO.cjs');
|
|
7
|
+
require('./chunk-LQOPDRF5.cjs');
|
|
8
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.WithdrawModal = _chunkZLOZ5KXUcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkZLOZ5KXUcjs.buildWithdrawAnalyticsSessionProperties;
|
|
@@ -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-MIYMRTHD.mjs";
|
|
5
|
+
import "./chunk-TFEBVSZ3.mjs";
|
|
6
|
+
import "./chunk-KSHSNZFP.mjs";
|
|
7
|
+
import "./chunk-EGKGTIUB.mjs";
|
|
8
8
|
import "./chunk-VUATPOWJ.mjs";
|
|
9
9
|
export {
|
|
10
10
|
WithdrawModal,
|