@rhinestone/deposit-modal 0.1.49 → 0.1.51

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 (32) hide show
  1. package/README.md +3 -0
  2. package/dist/{DepositModalReown-PWD3WK7I.mjs → DepositModalReown-BMHCHJ2P.mjs} +18 -7
  3. package/dist/{DepositModalReown-AVQEEWEQ.cjs → DepositModalReown-KT5MMNTJ.cjs} +21 -10
  4. package/dist/{WithdrawModalReown-ZSR3RP44.cjs → WithdrawModalReown-DULPL255.cjs} +6 -6
  5. package/dist/{WithdrawModalReown-FODH7PY5.mjs → WithdrawModalReown-V5HYDMO2.mjs} +3 -3
  6. package/dist/{chunk-KOYHFHYW.cjs → chunk-2AS2NAJ2.cjs} +149 -119
  7. package/dist/{chunk-FKNYONM2.mjs → chunk-BNSX25TA.mjs} +5 -4
  8. package/dist/{chunk-PW55TOFK.cjs → chunk-DKYHVAHN.cjs} +45 -36
  9. package/dist/{chunk-HCZNF6CR.mjs → chunk-G2GXEC7C.mjs} +14 -5
  10. package/dist/{chunk-7HJ7IBRH.cjs → chunk-NU3ES4JY.cjs} +5 -4
  11. package/dist/{chunk-QLLL6ARN.mjs → chunk-SKL3JJP6.mjs} +42 -12
  12. package/dist/{chunk-JGB6XSYS.mjs → chunk-UPA7N6GY.mjs} +11 -12
  13. package/dist/{chunk-XLRQCIYD.cjs → chunk-XAGXQV4K.cjs} +11 -12
  14. package/dist/deposit.cjs +3 -3
  15. package/dist/deposit.d.cts +2 -2
  16. package/dist/deposit.d.ts +2 -2
  17. package/dist/deposit.mjs +2 -2
  18. package/dist/index.cjs +4 -4
  19. package/dist/index.d.cts +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.mjs +3 -3
  22. package/dist/reown.cjs +4 -4
  23. package/dist/reown.d.cts +1 -1
  24. package/dist/reown.d.ts +1 -1
  25. package/dist/reown.mjs +3 -3
  26. package/dist/{types-B0FLVdXb.d.ts → types-D1nvo2dK.d.ts} +11 -0
  27. package/dist/{types-dY70pF2y.d.cts → types-DgiqazTb.d.cts} +11 -0
  28. package/dist/withdraw.cjs +3 -3
  29. package/dist/withdraw.d.cts +2 -2
  30. package/dist/withdraw.d.ts +2 -2
  31. package/dist/withdraw.mjs +2 -2
  32. package/package.json +1 -1
@@ -24,12 +24,8 @@ var EVM_NETWORKS = [
24
24
  polygon,
25
25
  bsc
26
26
  ];
27
- var ALL_NETWORKS = [
28
- ...EVM_NETWORKS,
29
- solana
30
- ];
31
27
  var cachedAdapter = null;
32
- var cachedProjectId = null;
28
+ var cachedAdapterKey = null;
33
29
  function mapTheme(theme) {
34
30
  const themeMode = theme?.mode === "light" ? "light" : "dark";
35
31
  const themeVariables = {};
@@ -38,18 +34,20 @@ function mapTheme(theme) {
38
34
  }
39
35
  return { themeMode, themeVariables };
40
36
  }
41
- function getOrCreateAdapter(projectId, theme) {
42
- if (cachedAdapter && cachedProjectId === projectId) return cachedAdapter;
37
+ function getOrCreateAdapter(projectId, enableSolana, theme) {
38
+ const adapterKey = `${projectId}:${enableSolana ? "solana" : "evm"}`;
39
+ if (cachedAdapter && cachedAdapterKey === adapterKey) return cachedAdapter;
43
40
  cachedAdapter = new WagmiAdapter({
44
41
  networks: EVM_NETWORKS,
45
42
  projectId
46
43
  });
47
- cachedProjectId = projectId;
48
- const solanaAdapter = new SolanaAdapter();
44
+ cachedAdapterKey = adapterKey;
49
45
  const { themeMode, themeVariables } = mapTheme(theme);
46
+ const adapters = enableSolana ? [cachedAdapter, new SolanaAdapter()] : [cachedAdapter];
47
+ const networks = enableSolana ? [...EVM_NETWORKS, solana] : EVM_NETWORKS;
50
48
  createAppKit({
51
- adapters: [cachedAdapter, solanaAdapter],
52
- networks: ALL_NETWORKS,
49
+ adapters,
50
+ networks,
53
51
  projectId,
54
52
  themeMode,
55
53
  themeVariables,
@@ -65,10 +63,11 @@ function getOrCreateAdapter(projectId, theme) {
65
63
  function ReownWalletProvider({
66
64
  projectId,
67
65
  theme,
66
+ enableSolana = true,
68
67
  children
69
68
  }) {
70
69
  const [queryClient] = useState(() => new QueryClient());
71
- const adapter = getOrCreateAdapter(projectId, theme);
70
+ const adapter = getOrCreateAdapter(projectId, enableSolana, theme);
72
71
  const config = adapter.wagmiConfig;
73
72
  return /* @__PURE__ */ jsx(WagmiProvider, { config, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children }) });
74
73
  }
@@ -24,12 +24,8 @@ var EVM_NETWORKS = [
24
24
  _networks.polygon,
25
25
  _networks.bsc
26
26
  ];
27
- var ALL_NETWORKS = [
28
- ...EVM_NETWORKS,
29
- _networks.solana
30
- ];
31
27
  var cachedAdapter = null;
32
- var cachedProjectId = null;
28
+ var cachedAdapterKey = null;
33
29
  function mapTheme(theme) {
34
30
  const themeMode = _optionalChain([theme, 'optionalAccess', _ => _.mode]) === "light" ? "light" : "dark";
35
31
  const themeVariables = {};
@@ -38,18 +34,20 @@ function mapTheme(theme) {
38
34
  }
39
35
  return { themeMode, themeVariables };
40
36
  }
41
- function getOrCreateAdapter(projectId, theme) {
42
- if (cachedAdapter && cachedProjectId === projectId) return cachedAdapter;
37
+ function getOrCreateAdapter(projectId, enableSolana, theme) {
38
+ const adapterKey = `${projectId}:${enableSolana ? "solana" : "evm"}`;
39
+ if (cachedAdapter && cachedAdapterKey === adapterKey) return cachedAdapter;
43
40
  cachedAdapter = new (0, _appkitadapterwagmi.WagmiAdapter)({
44
41
  networks: EVM_NETWORKS,
45
42
  projectId
46
43
  });
47
- cachedProjectId = projectId;
48
- const solanaAdapter = new (0, _appkitadaptersolana.SolanaAdapter)();
44
+ cachedAdapterKey = adapterKey;
49
45
  const { themeMode, themeVariables } = mapTheme(theme);
46
+ const adapters = enableSolana ? [cachedAdapter, new (0, _appkitadaptersolana.SolanaAdapter)()] : [cachedAdapter];
47
+ const networks = enableSolana ? [...EVM_NETWORKS, _networks.solana] : EVM_NETWORKS;
50
48
  _react3.createAppKit.call(void 0, {
51
- adapters: [cachedAdapter, solanaAdapter],
52
- networks: ALL_NETWORKS,
49
+ adapters,
50
+ networks,
53
51
  projectId,
54
52
  themeMode,
55
53
  themeVariables,
@@ -65,10 +63,11 @@ function getOrCreateAdapter(projectId, theme) {
65
63
  function ReownWalletProvider({
66
64
  projectId,
67
65
  theme,
66
+ enableSolana = true,
68
67
  children
69
68
  }) {
70
69
  const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
71
- const adapter = getOrCreateAdapter(projectId, theme);
70
+ const adapter = getOrCreateAdapter(projectId, enableSolana, theme);
72
71
  const config = adapter.wagmiConfig;
73
72
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _wagmi.WagmiProvider, { config, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children }) });
74
73
  }
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKOYHFHYWcjs = require('./chunk-KOYHFHYW.cjs');
4
- require('./chunk-7HJ7IBRH.cjs');
3
+ var _chunk2AS2NAJ2cjs = require('./chunk-2AS2NAJ2.cjs');
4
+ require('./chunk-NU3ES4JY.cjs');
5
5
  require('./chunk-NELAYNA3.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkKOYHFHYWcjs.DepositModal;
8
+ exports.DepositModal = _chunk2AS2NAJ2cjs.DepositModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { d as DepositModalProps } from './types-dY70pF2y.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-dY70pF2y.cjs';
2
+ import { d as DepositModalProps } from './types-DgiqazTb.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-DgiqazTb.cjs';
4
4
  import 'viem';
5
5
  import './safe.cjs';
6
6
 
package/dist/deposit.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { d as DepositModalProps } from './types-B0FLVdXb.js';
3
- export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-B0FLVdXb.js';
2
+ import { d as DepositModalProps } from './types-D1nvo2dK.js';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-D1nvo2dK.js';
4
4
  import 'viem';
5
5
  import './safe.js';
6
6
 
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-QLLL6ARN.mjs";
4
- import "./chunk-FKNYONM2.mjs";
3
+ } from "./chunk-SKL3JJP6.mjs";
4
+ import "./chunk-BNSX25TA.mjs";
5
5
  import "./chunk-ZJQZEIHA.mjs";
6
6
  export {
7
7
  DepositModal
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKOYHFHYWcjs = require('./chunk-KOYHFHYW.cjs');
3
+ var _chunk2AS2NAJ2cjs = require('./chunk-2AS2NAJ2.cjs');
4
4
 
5
5
 
6
- var _chunkPW55TOFKcjs = require('./chunk-PW55TOFK.cjs');
7
- require('./chunk-7HJ7IBRH.cjs');
6
+ var _chunkDKYHVAHNcjs = require('./chunk-DKYHVAHN.cjs');
7
+ require('./chunk-NU3ES4JY.cjs');
8
8
 
9
9
 
10
10
 
@@ -66,4 +66,4 @@ var _chunkNELAYNA3cjs = require('./chunk-NELAYNA3.cjs');
66
66
 
67
67
 
68
68
 
69
- exports.CHAIN_BY_ID = _chunkNELAYNA3cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkNELAYNA3cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkNELAYNA3cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkKOYHFHYWcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkNELAYNA3cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkNELAYNA3cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkNELAYNA3cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkPW55TOFKcjs.WithdrawModal; exports.chainRegistry = _chunkNELAYNA3cjs.chainRegistry; exports.findChainIdForToken = _chunkNELAYNA3cjs.findChainIdForToken; exports.getChainBadge = _chunkNELAYNA3cjs.getChainBadge; exports.getChainIcon = _chunkNELAYNA3cjs.getChainIcon; exports.getChainId = _chunkNELAYNA3cjs.getChainId; exports.getChainName = _chunkNELAYNA3cjs.getChainName; exports.getChainObject = _chunkNELAYNA3cjs.getChainObject; exports.getExplorerName = _chunkNELAYNA3cjs.getExplorerName; exports.getExplorerTxUrl = _chunkNELAYNA3cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkNELAYNA3cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkNELAYNA3cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkNELAYNA3cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkNELAYNA3cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkNELAYNA3cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkNELAYNA3cjs.getTokenAddress; exports.getTokenDecimals = _chunkNELAYNA3cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkNELAYNA3cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkNELAYNA3cjs.getTokenIcon; exports.getTokenSymbol = _chunkNELAYNA3cjs.getTokenSymbol; exports.getUsdcAddress = _chunkNELAYNA3cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkNELAYNA3cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkNELAYNA3cjs.isSupportedTokenAddressForChain;
69
+ exports.CHAIN_BY_ID = _chunkNELAYNA3cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkNELAYNA3cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkNELAYNA3cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk2AS2NAJ2cjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkNELAYNA3cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkNELAYNA3cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkNELAYNA3cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkDKYHVAHNcjs.WithdrawModal; exports.chainRegistry = _chunkNELAYNA3cjs.chainRegistry; exports.findChainIdForToken = _chunkNELAYNA3cjs.findChainIdForToken; exports.getChainBadge = _chunkNELAYNA3cjs.getChainBadge; exports.getChainIcon = _chunkNELAYNA3cjs.getChainIcon; exports.getChainId = _chunkNELAYNA3cjs.getChainId; exports.getChainName = _chunkNELAYNA3cjs.getChainName; exports.getChainObject = _chunkNELAYNA3cjs.getChainObject; exports.getExplorerName = _chunkNELAYNA3cjs.getExplorerName; exports.getExplorerTxUrl = _chunkNELAYNA3cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkNELAYNA3cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkNELAYNA3cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkNELAYNA3cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkNELAYNA3cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkNELAYNA3cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkNELAYNA3cjs.getTokenAddress; exports.getTokenDecimals = _chunkNELAYNA3cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkNELAYNA3cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkNELAYNA3cjs.getTokenIcon; exports.getTokenSymbol = _chunkNELAYNA3cjs.getTokenSymbol; exports.getUsdcAddress = _chunkNELAYNA3cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkNELAYNA3cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkNELAYNA3cjs.isSupportedTokenAddressForChain;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
- export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-dY70pF2y.cjs';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-DgiqazTb.cjs';
4
4
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
5
5
  export { SafeTransactionRequest } from './safe.cjs';
6
6
  import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
- export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-B0FLVdXb.js';
3
+ export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-D1nvo2dK.js';
4
4
  export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
5
5
  export { SafeTransactionRequest } from './safe.js';
6
6
  import 'react/jsx-runtime';
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-QLLL6ARN.mjs";
3
+ } from "./chunk-SKL3JJP6.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-HCZNF6CR.mjs";
7
- import "./chunk-FKNYONM2.mjs";
6
+ } from "./chunk-G2GXEC7C.mjs";
7
+ import "./chunk-BNSX25TA.mjs";
8
8
  import {
9
9
  CHAIN_BY_ID,
10
10
  DEFAULT_BACKEND_URL,
package/dist/reown.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKOYHFHYWcjs = require('./chunk-KOYHFHYW.cjs');
3
+ var _chunk2AS2NAJ2cjs = require('./chunk-2AS2NAJ2.cjs');
4
4
 
5
5
 
6
- var _chunkPW55TOFKcjs = require('./chunk-PW55TOFK.cjs');
7
- require('./chunk-7HJ7IBRH.cjs');
6
+ var _chunkDKYHVAHNcjs = require('./chunk-DKYHVAHN.cjs');
7
+ require('./chunk-NU3ES4JY.cjs');
8
8
  require('./chunk-NELAYNA3.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.DepositModal = _chunkKOYHFHYWcjs.DepositModal; exports.WithdrawModal = _chunkPW55TOFKcjs.WithdrawModal;
12
+ exports.DepositModal = _chunk2AS2NAJ2cjs.DepositModal; exports.WithdrawModal = _chunkDKYHVAHNcjs.WithdrawModal;
package/dist/reown.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-dY70pF2y.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-DgiqazTb.cjs';
4
4
  export { SafeTransactionRequest } from './safe.cjs';
5
5
  import 'react/jsx-runtime';
6
6
  import 'viem';
package/dist/reown.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
- export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-B0FLVdXb.js';
3
+ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-D1nvo2dK.js';
4
4
  export { SafeTransactionRequest } from './safe.js';
5
5
  import 'react/jsx-runtime';
6
6
  import 'viem';
package/dist/reown.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-QLLL6ARN.mjs";
3
+ } from "./chunk-SKL3JJP6.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-HCZNF6CR.mjs";
7
- import "./chunk-FKNYONM2.mjs";
6
+ } from "./chunk-G2GXEC7C.mjs";
7
+ import "./chunk-BNSX25TA.mjs";
8
8
  import "./chunk-ZJQZEIHA.mjs";
9
9
  export {
10
10
  DepositModal,
@@ -40,6 +40,11 @@ interface DepositSubmittedEventData {
40
40
  interface DepositCompleteEventData {
41
41
  txHash: string;
42
42
  destinationTxHash?: string;
43
+ amount: string;
44
+ sourceChain: ChainId;
45
+ sourceToken: string;
46
+ targetChain: number;
47
+ targetToken: string;
43
48
  }
44
49
  interface DepositFailedEventData {
45
50
  txHash: string;
@@ -54,6 +59,11 @@ interface WithdrawSubmittedEventData {
54
59
  interface WithdrawCompleteEventData {
55
60
  txHash: Hex;
56
61
  destinationTxHash?: Hex;
62
+ amount: string;
63
+ sourceChain: number;
64
+ sourceToken: Address;
65
+ targetChain: number;
66
+ targetToken: Address;
57
67
  }
58
68
  interface WithdrawFailedEventData {
59
69
  txHash: Hex;
@@ -88,6 +98,7 @@ interface DepositModalProps {
88
98
  forceRegister?: boolean;
89
99
  waitForFinalTx?: boolean;
90
100
  reownAppId?: string;
101
+ enableSolana?: boolean;
91
102
  onRequestConnect?: () => void;
92
103
  connectButtonLabel?: string;
93
104
  theme?: DepositModalTheme;
@@ -40,6 +40,11 @@ interface DepositSubmittedEventData {
40
40
  interface DepositCompleteEventData {
41
41
  txHash: string;
42
42
  destinationTxHash?: string;
43
+ amount: string;
44
+ sourceChain: ChainId;
45
+ sourceToken: string;
46
+ targetChain: number;
47
+ targetToken: string;
43
48
  }
44
49
  interface DepositFailedEventData {
45
50
  txHash: string;
@@ -54,6 +59,11 @@ interface WithdrawSubmittedEventData {
54
59
  interface WithdrawCompleteEventData {
55
60
  txHash: Hex;
56
61
  destinationTxHash?: Hex;
62
+ amount: string;
63
+ sourceChain: number;
64
+ sourceToken: Address;
65
+ targetChain: number;
66
+ targetToken: Address;
57
67
  }
58
68
  interface WithdrawFailedEventData {
59
69
  txHash: Hex;
@@ -88,6 +98,7 @@ interface DepositModalProps {
88
98
  forceRegister?: boolean;
89
99
  waitForFinalTx?: boolean;
90
100
  reownAppId?: string;
101
+ enableSolana?: boolean;
91
102
  onRequestConnect?: () => void;
92
103
  connectButtonLabel?: string;
93
104
  theme?: DepositModalTheme;
package/dist/withdraw.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPW55TOFKcjs = require('./chunk-PW55TOFK.cjs');
4
- require('./chunk-7HJ7IBRH.cjs');
3
+ var _chunkDKYHVAHNcjs = require('./chunk-DKYHVAHN.cjs');
4
+ require('./chunk-NU3ES4JY.cjs');
5
5
  require('./chunk-NELAYNA3.cjs');
6
6
 
7
7
 
8
- exports.WithdrawModal = _chunkPW55TOFKcjs.WithdrawModal;
8
+ exports.WithdrawModal = _chunkDKYHVAHNcjs.WithdrawModal;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { i as WithdrawModalProps } from './types-dY70pF2y.cjs';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, j as WithdrawSubmittedEventData } from './types-dY70pF2y.cjs';
2
+ import { i as WithdrawModalProps } from './types-DgiqazTb.cjs';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, j as WithdrawSubmittedEventData } from './types-DgiqazTb.cjs';
4
4
  export { SafeTransactionRequest } from './safe.cjs';
5
5
  import 'viem';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { i as WithdrawModalProps } from './types-B0FLVdXb.js';
3
- export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, j as WithdrawSubmittedEventData } from './types-B0FLVdXb.js';
2
+ import { i as WithdrawModalProps } from './types-D1nvo2dK.js';
3
+ export { A as AssetOption, a as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, j as WithdrawSubmittedEventData } from './types-D1nvo2dK.js';
4
4
  export { SafeTransactionRequest } from './safe.js';
5
5
  import 'viem';
6
6
 
package/dist/withdraw.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-HCZNF6CR.mjs";
4
- import "./chunk-FKNYONM2.mjs";
3
+ } from "./chunk-G2GXEC7C.mjs";
4
+ import "./chunk-BNSX25TA.mjs";
5
5
  import "./chunk-ZJQZEIHA.mjs";
6
6
  export {
7
7
  WithdrawModal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {