@rhinestone/deposit-modal 0.0.0-dev-20260901193125 → 0.0.0-dev-20260902120017
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-W56MCJYJ.mjs → ClaimModal-I5TETNGJ.mjs} +3 -4
- package/dist/ClaimModal-STHADLBU.cjs +11 -0
- package/dist/{DepositModalReown-HQQTSUQ6.mjs → DepositModalReown-BQHWPR76.mjs} +4 -5
- package/dist/{DepositModalReown-XUEEHFK6.cjs → DepositModalReown-ELNKRZBN.cjs} +17 -18
- package/dist/{WithdrawModal-Z2YVJTLU.mjs → WithdrawModal-A2QEP3IA.mjs} +4 -4
- package/dist/WithdrawModal-C4S3OM3A.cjs +12 -0
- package/dist/{chunk-NYQIEJNC.mjs → chunk-3N5LSWGB.mjs} +705 -351
- package/dist/{chunk-36GWVLRT.cjs → chunk-5RHPCNIL.cjs} +147 -359
- package/dist/{chunk-6ENL3HQ2.cjs → chunk-CLNYHDHQ.cjs} +702 -207
- package/dist/{chunk-QOC5ILJT.mjs → chunk-CYDGP5EM.mjs} +752 -257
- package/dist/{chunk-JMARY733.mjs → chunk-ESOZ6B7S.mjs} +141 -353
- package/dist/{chunk-CHSY7OAO.mjs → chunk-HEWY7GVT.mjs} +40 -4
- package/dist/{chunk-I4XVX57T.cjs → chunk-IORZOP5Z.cjs} +726 -372
- package/dist/{chunk-J5VSN4KV.cjs → chunk-JFIFGDK3.cjs} +299 -263
- package/dist/{chunk-5MU5AVHG.mjs → chunk-OJQMHNL7.mjs} +44 -8
- package/dist/{chunk-4V4XWVUW.cjs → chunk-QFT3CWUW.cjs} +1 -1
- package/dist/{chunk-JQKTAFUP.cjs → chunk-RRNUTTLH.cjs} +109 -73
- package/dist/{chunk-Q3NGNK2F.mjs → chunk-VKZJID7K.mjs} +1 -1
- package/dist/claim.cjs +4 -5
- package/dist/claim.d.cts +2 -2
- package/dist/claim.d.ts +2 -2
- package/dist/claim.mjs +3 -4
- 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 +5 -6
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +4 -5
- package/dist/embed.cjs +16 -17
- package/dist/embed.d.cts +1 -1
- package/dist/embed.d.ts +1 -1
- package/dist/embed.mjs +6 -7
- package/dist/index.cjs +7 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +6 -7
- package/dist/styles.css +31 -3
- package/dist/{types-BT1KmcJS.d.ts → types-CLGhh5Lp.d.ts} +95 -7
- package/dist/{types-CUCD4RvY.d.cts → types-DcxTATU6.d.cts} +95 -7
- 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-BBBAC6XN.cjs +0 -12
- package/dist/WithdrawModal-SVOM4TXP.cjs +0 -12
- package/dist/chunk-FNBIWPMN.mjs +0 -81
- package/dist/chunk-PHYX2K4K.cjs +0 -81
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClaimModal,
|
|
3
3
|
buildClaimAnalyticsSessionProperties
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-Q3NGNK2F.mjs";
|
|
4
|
+
} from "./chunk-ESOZ6B7S.mjs";
|
|
5
|
+
import "./chunk-3N5LSWGB.mjs";
|
|
6
|
+
import "./chunk-VKZJID7K.mjs";
|
|
8
7
|
import "./chunk-VUATPOWJ.mjs";
|
|
9
8
|
export {
|
|
10
9
|
ClaimModal,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk5RHPCNILcjs = require('./chunk-5RHPCNIL.cjs');
|
|
5
|
+
require('./chunk-IORZOP5Z.cjs');
|
|
6
|
+
require('./chunk-QFT3CWUW.cjs');
|
|
7
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.ClaimModal = _chunk5RHPCNILcjs.ClaimModal; exports.buildClaimAnalyticsSessionProperties = _chunk5RHPCNILcjs.buildClaimAnalyticsSessionProperties;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner,
|
|
3
3
|
getReownDependencies
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-FNBIWPMN.mjs";
|
|
4
|
+
} from "./chunk-OJQMHNL7.mjs";
|
|
5
|
+
import "./chunk-CYDGP5EM.mjs";
|
|
7
6
|
import {
|
|
8
7
|
followSystemAppearance,
|
|
9
8
|
isUnsupportedChainSwitchError,
|
|
@@ -12,8 +11,8 @@ import {
|
|
|
12
11
|
resolveThemeMode,
|
|
13
12
|
rpcUrlFor,
|
|
14
13
|
useStableRpcUrls
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-3N5LSWGB.mjs";
|
|
15
|
+
import "./chunk-VKZJID7K.mjs";
|
|
17
16
|
import "./chunk-RN5VKWI6.mjs";
|
|
18
17
|
import {
|
|
19
18
|
SUPPORTED_CHAIN_IDS,
|
|
@@ -1,9 +1,8 @@
|
|
|
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-PHYX2K4K.cjs');
|
|
4
|
+
var _chunkJFIFGDK3cjs = require('./chunk-JFIFGDK3.cjs');
|
|
5
|
+
require('./chunk-CLNYHDHQ.cjs');
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
@@ -12,8 +11,8 @@ require('./chunk-PHYX2K4K.cjs');
|
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
14
|
+
var _chunkIORZOP5Zcjs = require('./chunk-IORZOP5Z.cjs');
|
|
15
|
+
require('./chunk-QFT3CWUW.cjs');
|
|
17
16
|
require('./chunk-DW2EQA2U.cjs');
|
|
18
17
|
|
|
19
18
|
|
|
@@ -46,7 +45,7 @@ var {
|
|
|
46
45
|
unichain,
|
|
47
46
|
katana,
|
|
48
47
|
hyperEvm
|
|
49
|
-
} =
|
|
48
|
+
} = _chunkJFIFGDK3cjs.getReownDependencies.call(void 0, )[1];
|
|
50
49
|
var APPKIT_NETWORK_BY_ID = {
|
|
51
50
|
[mainnet.id]: mainnet,
|
|
52
51
|
[optimism.id]: optimism,
|
|
@@ -78,7 +77,7 @@ function getAppKitNetwork(chainId) {
|
|
|
78
77
|
|
|
79
78
|
// src/core/reown-theme.ts
|
|
80
79
|
function mapTheme(theme) {
|
|
81
|
-
const themeMode =
|
|
80
|
+
const themeMode = _chunkIORZOP5Zcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
|
|
82
81
|
const themeVariables = {
|
|
83
82
|
"--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
|
|
84
83
|
};
|
|
@@ -95,7 +94,7 @@ function setAppKitTheme(appKit, theme) {
|
|
|
95
94
|
|
|
96
95
|
// src/core/reown.tsx
|
|
97
96
|
var _jsxruntime = require('react/jsx-runtime');
|
|
98
|
-
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] =
|
|
97
|
+
var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunkJFIFGDK3cjs.getReownDependencies.call(void 0, );
|
|
99
98
|
var {
|
|
100
99
|
createAppKit,
|
|
101
100
|
useAppKit,
|
|
@@ -111,14 +110,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
|
111
110
|
const transports = {};
|
|
112
111
|
for (const network of networks) {
|
|
113
112
|
const id = Number(network.id);
|
|
114
|
-
transports[id] = _viem.http.call(void 0,
|
|
113
|
+
transports[id] = _viem.http.call(void 0, _chunkIORZOP5Zcjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
115
114
|
}
|
|
116
115
|
return transports;
|
|
117
116
|
}
|
|
118
117
|
function getEvmRpcFingerprint(rpcUrls, networks) {
|
|
119
118
|
return networks.map((network) => {
|
|
120
119
|
const id = Number(network.id);
|
|
121
|
-
return `${id}=${_nullishCoalesce(
|
|
120
|
+
return `${id}=${_nullishCoalesce(_chunkIORZOP5Zcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
122
121
|
}).join("|");
|
|
123
122
|
}
|
|
124
123
|
var cachedAdapter = null;
|
|
@@ -189,7 +188,7 @@ function ReownWalletProvider({
|
|
|
189
188
|
backendUrl,
|
|
190
189
|
children
|
|
191
190
|
}) {
|
|
192
|
-
const rpcUrls =
|
|
191
|
+
const rpcUrls = _chunkIORZOP5Zcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
193
192
|
const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
|
|
194
193
|
const overrides = _react.useMemo.call(void 0, () => {
|
|
195
194
|
if (!rpcUrls) return void 0;
|
|
@@ -201,14 +200,14 @@ function ReownWalletProvider({
|
|
|
201
200
|
return out;
|
|
202
201
|
}, [rpcUrls]);
|
|
203
202
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
204
|
-
const primed =
|
|
203
|
+
const primed = _chunkIORZOP5Zcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
205
204
|
return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
|
|
206
205
|
});
|
|
207
206
|
_react.useEffect.call(void 0, () => {
|
|
208
207
|
let active = true;
|
|
209
|
-
const primed =
|
|
208
|
+
const primed = _chunkIORZOP5Zcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
210
209
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
211
|
-
|
|
210
|
+
_chunkIORZOP5Zcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
212
211
|
if (active) setState({ ready: true, chains });
|
|
213
212
|
});
|
|
214
213
|
return () => {
|
|
@@ -217,7 +216,7 @@ function ReownWalletProvider({
|
|
|
217
216
|
}, [backendUrl, overrides]);
|
|
218
217
|
_react.useEffect.call(void 0, () => {
|
|
219
218
|
setAppKitTheme(appKitReact.modal, theme);
|
|
220
|
-
return
|
|
219
|
+
return _chunkIORZOP5Zcjs.followSystemAppearance.call(void 0,
|
|
221
220
|
_optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
|
|
222
221
|
() => setAppKitTheme(appKitReact.modal, theme)
|
|
223
222
|
);
|
|
@@ -281,7 +280,7 @@ function useReownWalletSession() {
|
|
|
281
280
|
await switchChainAsync({ chainId });
|
|
282
281
|
}
|
|
283
282
|
} catch (err) {
|
|
284
|
-
if (
|
|
283
|
+
if (_chunkIORZOP5Zcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
285
284
|
throw new Error(
|
|
286
285
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
287
286
|
);
|
|
@@ -294,7 +293,7 @@ function useReownWalletSession() {
|
|
|
294
293
|
|
|
295
294
|
// src/DepositModalReown.tsx
|
|
296
295
|
|
|
297
|
-
var [appKitReact2, , , , solanaAdapterReact] =
|
|
296
|
+
var [appKitReact2, , , , solanaAdapterReact] = _chunkJFIFGDK3cjs.getReownDependencies.call(void 0, );
|
|
298
297
|
var { useAppKitProvider } = appKitReact2;
|
|
299
298
|
var { useAppKitConnection } = solanaAdapterReact;
|
|
300
299
|
function DepositModalWithReown(props) {
|
|
@@ -316,7 +315,7 @@ function DepositModalWithReown(props) {
|
|
|
316
315
|
reown.disconnect();
|
|
317
316
|
}, [reown.disconnect]);
|
|
318
317
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
-
|
|
318
|
+
_chunkJFIFGDK3cjs.DepositModalInner,
|
|
320
319
|
{
|
|
321
320
|
...props,
|
|
322
321
|
walletSession: reownWithSolana,
|
|
@@ -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-HEWY7GVT.mjs";
|
|
5
|
+
import "./chunk-CYDGP5EM.mjs";
|
|
6
|
+
import "./chunk-3N5LSWGB.mjs";
|
|
7
|
+
import "./chunk-VKZJID7K.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 _chunkRRNUTTLHcjs = require('./chunk-RRNUTTLH.cjs');
|
|
5
|
+
require('./chunk-CLNYHDHQ.cjs');
|
|
6
|
+
require('./chunk-IORZOP5Z.cjs');
|
|
7
|
+
require('./chunk-QFT3CWUW.cjs');
|
|
8
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.WithdrawModal = _chunkRRNUTTLHcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkRRNUTTLHcjs.buildWithdrawAnalyticsSessionProperties;
|