@rhinestone/deposit-modal 0.1.45 → 0.1.47

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.
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-RVN4K6C7.mjs";
3
+ } from "./chunk-7U5TNZZB.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-JGB6XSYS.mjs";
8
- import "./chunk-U6KOKXWY.mjs";
9
- import "./chunk-AVASFOLP.mjs";
8
+ import "./chunk-QIK6ONMQ.mjs";
9
+ import "./chunk-ZJQZEIHA.mjs";
10
10
 
11
11
  // src/DepositModalReown.tsx
12
12
  import { useCallback, useMemo } from "react";
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkB5H3CVANcjs = require('./chunk-B5H3CVAN.cjs');
3
+ var _chunkLOOU3NCIcjs = require('./chunk-LOOU3NCI.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkXLRQCIYDcjs = require('./chunk-XLRQCIYD.cjs');
8
- require('./chunk-55QIUUIS.cjs');
9
- require('./chunk-ZNHU72LI.cjs');
8
+ require('./chunk-LT3QKJI2.cjs');
9
+ require('./chunk-NELAYNA3.cjs');
10
10
 
11
11
  // src/DepositModalReown.tsx
12
12
  var _react = require('react');
@@ -29,7 +29,7 @@ function DepositModalWithReown(props) {
29
29
  reown.disconnect();
30
30
  }, [reown.disconnect]);
31
31
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
32
- _chunkB5H3CVANcjs.DepositModalInner,
32
+ _chunkLOOU3NCIcjs.DepositModalInner,
33
33
  {
34
34
  ...props,
35
35
  reownWallet: reownWithSolana,
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2EGNK737cjs = require('./chunk-2EGNK737.cjs');
3
+ var _chunkMS2J6M5Ccjs = require('./chunk-MS2J6M5C.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkXLRQCIYDcjs = require('./chunk-XLRQCIYD.cjs');
8
- require('./chunk-55QIUUIS.cjs');
9
- require('./chunk-ZNHU72LI.cjs');
8
+ require('./chunk-LT3QKJI2.cjs');
9
+ require('./chunk-NELAYNA3.cjs');
10
10
 
11
11
  // src/WithdrawModalReown.tsx
12
12
  var _react = require('react');
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
20
20
  reown.disconnect();
21
21
  }, [reown.disconnect]);
22
22
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
- _chunk2EGNK737cjs.WithdrawModalInner,
23
+ _chunkMS2J6M5Ccjs.WithdrawModalInner,
24
24
  {
25
25
  ...props,
26
26
  reownWallet: reown,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-4MKJ5R6Q.mjs";
3
+ } from "./chunk-O3VFAUSL.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-JGB6XSYS.mjs";
8
- import "./chunk-U6KOKXWY.mjs";
9
- import "./chunk-AVASFOLP.mjs";
8
+ import "./chunk-QIK6ONMQ.mjs";
9
+ import "./chunk-ZJQZEIHA.mjs";
10
10
 
11
11
  // src/WithdrawModalReown.tsx
12
12
  import { useCallback } from "react";
@@ -25,7 +25,7 @@ import {
25
25
  toEvmCaip2,
26
26
  tokenFormatter,
27
27
  txRefsMatch
28
- } from "./chunk-U6KOKXWY.mjs";
28
+ } from "./chunk-QIK6ONMQ.mjs";
29
29
  import {
30
30
  DEFAULT_BACKEND_URL,
31
31
  DEFAULT_SIGNER_ADDRESS,
@@ -41,7 +41,7 @@ import {
41
41
  getTokenIcon,
42
42
  getTokenSymbol,
43
43
  isStablecoinSymbol
44
- } from "./chunk-AVASFOLP.mjs";
44
+ } from "./chunk-ZJQZEIHA.mjs";
45
45
 
46
46
  // src/DepositModal.tsx
47
47
  import {
@@ -861,7 +861,6 @@ function AmountStep({
861
861
  }
862
862
  )
863
863
  ] }),
864
- chainMismatch && !isSwitching && /* @__PURE__ */ jsx3("div", { className: "rs-chain-switch", style: { marginTop: 16 }, children: /* @__PURE__ */ jsx3("div", { className: "rs-chain-switch-text", children: `Switch your wallet to ${getChainName(asset.chainId)} to continue.` }) }),
865
864
  error && /* @__PURE__ */ jsxs3("div", { className: "rs-amount-error", children: [
866
865
  /* @__PURE__ */ jsx3(
867
866
  "svg",
@@ -1109,7 +1108,6 @@ function ConfirmStep({
1109
1108
  )
1110
1109
  ] })
1111
1110
  ] }),
1112
- chainMismatch && !isSwitching && /* @__PURE__ */ jsx4("div", { className: "rs-chain-switch", children: /* @__PURE__ */ jsx4("div", { className: "rs-chain-switch-text", children: `Switch your wallet to ${getChainName(asset.chainId)} to sign.` }) }),
1113
1111
  error && /* @__PURE__ */ jsxs4("div", { className: "rs-alert rs-alert--error", children: [
1114
1112
  /* @__PURE__ */ jsx4(
1115
1113
  "svg",
@@ -3095,7 +3093,7 @@ function DepositFlow({
3095
3093
  return;
3096
3094
  }
3097
3095
  }
3098
- if (!hasWalletOptions && dappAddress && !hasReownSession) {
3096
+ if (!hasWalletOptions && dappAddress && !hasReownSession && !dappWalletClient) {
3099
3097
  handleSelectTransferCrypto();
3100
3098
  setIsConnectSelectionConfirmed(true);
3101
3099
  }
@@ -3106,6 +3104,7 @@ function DepositFlow({
3106
3104
  flowMode,
3107
3105
  selectedWalletIdEffective,
3108
3106
  dappAddress,
3107
+ dappWalletClient,
3109
3108
  walletOptions,
3110
3109
  handleSelectProvider,
3111
3110
  handleSelectSolanaWallet,
@@ -3418,7 +3417,7 @@ function DepositFlow({
3418
3417
  // src/DepositModal.tsx
3419
3418
  import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
3420
3419
  var ReownDepositInner = lazy(
3421
- () => import("./DepositModalReown-DXQJUYVY.mjs").then((m) => ({ default: m.DepositModalReown }))
3420
+ () => import("./DepositModalReown-DKLN3IE3.mjs").then((m) => ({ default: m.DepositModalReown }))
3422
3421
  );
3423
3422
  function DepositModal(props) {
3424
3423
  const needsReown = !!props.reownAppId;