@rhinestone/deposit-modal 0.0.0-dev-20260819153022 → 0.0.0-dev-20260820131247

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.
Files changed (29) hide show
  1. package/dist/{DepositModalReown-BL5KYPXF.mjs → DepositModalReown-4T3RPHE3.mjs} +8 -8
  2. package/dist/{DepositModalReown-7RLJB5TI.cjs → DepositModalReown-QSW6D6AQ.cjs} +16 -16
  3. package/dist/{chunk-AZ5756FR.cjs → chunk-7BP2IJMI.cjs} +358 -359
  4. package/dist/{chunk-T5VSPEMQ.cjs → chunk-7UOHFAEU.cjs} +66 -66
  5. package/dist/{chunk-B47ZWIZW.mjs → chunk-AERDJB6I.mjs} +1 -1
  6. package/dist/{chunk-WRR6VKPB.cjs → chunk-ALDP35OF.cjs} +54 -54
  7. package/dist/{chunk-CKHN6YZO.cjs → chunk-AR73UBSN.cjs} +59 -59
  8. package/dist/{chunk-Q63FPOME.mjs → chunk-E7ZYFV3B.mjs} +44 -45
  9. package/dist/{chunk-T6Q6WXMR.cjs → chunk-FTH4MSOA.cjs} +3 -3
  10. package/dist/{chunk-CL2AW2XX.mjs → chunk-KAUM3EWN.mjs} +2 -2
  11. package/dist/{chunk-LPVJAIT7.mjs → chunk-LCFRLAJF.mjs} +1 -1
  12. package/dist/{chunk-JCRY7VPE.mjs → chunk-PUTVHCVD.mjs} +1 -1
  13. package/dist/{chunk-U63L2Q3D.cjs → chunk-QSZVGZKQ.cjs} +1 -1
  14. package/dist/{chunk-5KM3WP6T.mjs → chunk-QXBDEXOW.mjs} +3 -3
  15. package/dist/{chunk-ZWQGUVZB.cjs → chunk-T7TE2WAH.cjs} +26 -26
  16. package/dist/{chunk-LQE6Y3BW.mjs → chunk-XIKTW5W2.mjs} +1 -1
  17. package/dist/claim.cjs +5 -5
  18. package/dist/claim.mjs +4 -4
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.d.cts +1 -1
  21. package/dist/constants.d.ts +1 -1
  22. package/dist/constants.mjs +1 -1
  23. package/dist/deposit.cjs +6 -6
  24. package/dist/deposit.mjs +5 -5
  25. package/dist/index.cjs +8 -8
  26. package/dist/index.mjs +7 -7
  27. package/dist/withdraw.cjs +5 -5
  28. package/dist/withdraw.mjs +4 -4
  29. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-Q63FPOME.mjs";
4
- import "./chunk-B47ZWIZW.mjs";
5
- import "./chunk-LQE6Y3BW.mjs";
3
+ } from "./chunk-E7ZYFV3B.mjs";
4
+ import "./chunk-AERDJB6I.mjs";
5
+ import "./chunk-XIKTW5W2.mjs";
6
6
  import {
7
7
  isUnsupportedChainSwitchError,
8
8
  peekRuntimeChains,
9
9
  primeRuntimeChains,
10
10
  rpcUrlFor,
11
11
  useStableRpcUrls
12
- } from "./chunk-JCRY7VPE.mjs";
13
- import "./chunk-LPVJAIT7.mjs";
12
+ } from "./chunk-PUTVHCVD.mjs";
13
+ import "./chunk-LCFRLAJF.mjs";
14
14
  import "./chunk-D7645TBV.mjs";
15
15
  import {
16
16
  SUPPORTED_CHAINS,
@@ -215,7 +215,7 @@ function ReownWalletProvider({
215
215
  const config = adapter.wagmiConfig;
216
216
  return /* @__PURE__ */ jsx(WagmiProvider, { config, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children }) });
217
217
  }
218
- function useReownWallet() {
218
+ function useReownWalletSession() {
219
219
  const { open } = useAppKit();
220
220
  const { address, isConnected, caipAddress } = useAppKitAccount();
221
221
  const { initialized, loading } = useAppKitState();
@@ -274,7 +274,7 @@ import { useAppKitProvider } from "@reown/appkit/react";
274
274
  import { useAppKitConnection } from "@reown/appkit-adapter-solana/react";
275
275
  import { jsx as jsx2 } from "react/jsx-runtime";
276
276
  function DepositModalWithReown(props) {
277
- const reown = useReownWallet();
277
+ const reown = useReownWalletSession();
278
278
  const { walletProvider: solanaWalletProvider } = useAppKitProvider("solana");
279
279
  const { connection: solanaConnection } = useAppKitConnection();
280
280
  const reownWithSolana = useMemo2(
@@ -295,7 +295,7 @@ function DepositModalWithReown(props) {
295
295
  DepositModalInner,
296
296
  {
297
297
  ...props,
298
- reownWallet: reownWithSolana,
298
+ walletSession: reownWithSolana,
299
299
  onConnect: handleConnect,
300
300
  onDisconnect: handleDisconnect
301
301
  }
@@ -1,16 +1,16 @@
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
- var _chunkAZ5756FRcjs = require('./chunk-AZ5756FR.cjs');
4
- require('./chunk-T5VSPEMQ.cjs');
5
- require('./chunk-T6Q6WXMR.cjs');
3
+ var _chunk7BP2IJMIcjs = require('./chunk-7BP2IJMI.cjs');
4
+ require('./chunk-7UOHFAEU.cjs');
5
+ require('./chunk-FTH4MSOA.cjs');
6
6
 
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkZWQGUVZBcjs = require('./chunk-ZWQGUVZB.cjs');
13
- require('./chunk-U63L2Q3D.cjs');
12
+ var _chunkT7TE2WAHcjs = require('./chunk-T7TE2WAH.cjs');
13
+ require('./chunk-QSZVGZKQ.cjs');
14
14
  require('./chunk-OYKHOHX5.cjs');
15
15
 
16
16
 
@@ -91,14 +91,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
91
91
  const transports = {};
92
92
  for (const network of networks) {
93
93
  const id = Number(network.id);
94
- transports[id] = _viem.http.call(void 0, _chunkZWQGUVZBcjs.rpcUrlFor.call(void 0, rpcUrls, id));
94
+ transports[id] = _viem.http.call(void 0, _chunkT7TE2WAHcjs.rpcUrlFor.call(void 0, rpcUrls, id));
95
95
  }
96
96
  return transports;
97
97
  }
98
98
  function getEvmRpcFingerprint(rpcUrls, networks) {
99
99
  return networks.map((network) => {
100
100
  const id = Number(network.id);
101
- return `${id}=${_nullishCoalesce(_chunkZWQGUVZBcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
101
+ return `${id}=${_nullishCoalesce(_chunkT7TE2WAHcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
102
102
  }).join("|");
103
103
  }
104
104
  var cachedAdapter = null;
@@ -177,7 +177,7 @@ function ReownWalletProvider({
177
177
  backendUrl,
178
178
  children
179
179
  }) {
180
- const rpcUrls = _chunkZWQGUVZBcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
180
+ const rpcUrls = _chunkT7TE2WAHcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
181
181
  const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
182
182
  const overrides = _react.useMemo.call(void 0, () => {
183
183
  if (!rpcUrls) return void 0;
@@ -189,14 +189,14 @@ function ReownWalletProvider({
189
189
  return out;
190
190
  }, [rpcUrls]);
191
191
  const [state, setState] = _react.useState.call(void 0, () => {
192
- const primed = _chunkZWQGUVZBcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
192
+ const primed = _chunkT7TE2WAHcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
193
193
  return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
194
194
  });
195
195
  _react.useEffect.call(void 0, () => {
196
196
  let active = true;
197
- const primed = _chunkZWQGUVZBcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
197
+ const primed = _chunkT7TE2WAHcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
198
198
  setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
199
- _chunkZWQGUVZBcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
199
+ _chunkT7TE2WAHcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
200
200
  if (active) setState({ ready: true, chains });
201
201
  });
202
202
  return () => {
@@ -215,7 +215,7 @@ function ReownWalletProvider({
215
215
  const config = adapter.wagmiConfig;
216
216
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _wagmi.WagmiProvider, { config, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children }) });
217
217
  }
218
- function useReownWallet() {
218
+ function useReownWalletSession() {
219
219
  const { open } = _react3.useAppKit.call(void 0, );
220
220
  const { address, isConnected, caipAddress } = _react3.useAppKitAccount.call(void 0, );
221
221
  const { initialized, loading } = _react3.useAppKitState.call(void 0, );
@@ -258,7 +258,7 @@ function useReownWallet() {
258
258
  await switchChainAsync({ chainId });
259
259
  }
260
260
  } catch (err) {
261
- if (_chunkZWQGUVZBcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
261
+ if (_chunkT7TE2WAHcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
262
262
  throw new Error(
263
263
  `Switch to ${chainDisplayName(chainId)} in your wallet to continue`
264
264
  );
@@ -274,7 +274,7 @@ function useReownWallet() {
274
274
  var _react5 = require('@reown/appkit-adapter-solana/react');
275
275
 
276
276
  function DepositModalWithReown(props) {
277
- const reown = useReownWallet();
277
+ const reown = useReownWalletSession();
278
278
  const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0, "solana");
279
279
  const { connection: solanaConnection } = _react5.useAppKitConnection.call(void 0, );
280
280
  const reownWithSolana = _react.useMemo.call(void 0,
@@ -292,10 +292,10 @@ function DepositModalWithReown(props) {
292
292
  reown.disconnect();
293
293
  }, [reown.disconnect]);
294
294
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
295
- _chunkAZ5756FRcjs.DepositModalInner,
295
+ _chunk7BP2IJMIcjs.DepositModalInner,
296
296
  {
297
297
  ...props,
298
- reownWallet: reownWithSolana,
298
+ walletSession: reownWithSolana,
299
299
  onConnect: handleConnect,
300
300
  onDisconnect: handleDisconnect
301
301
  }