@rhinestone/deposit-modal 0.1.68 → 0.1.70
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/{DepositModalReown-WXFTSZSK.cjs → DepositModalReown-66DE7NAY.cjs} +6 -6
- package/dist/{DepositModalReown-RYCOXWMH.mjs → DepositModalReown-PROPLCBI.mjs} +3 -3
- package/dist/{WithdrawModalReown-WHPQDJJJ.cjs → WithdrawModalReown-HXTXSZCJ.cjs} +6 -6
- package/dist/{WithdrawModalReown-6VYKKKJN.mjs → WithdrawModalReown-URF6AERQ.mjs} +3 -3
- package/dist/{chunk-IUW3SJQT.mjs → chunk-3CRG5NPG.mjs} +128 -16
- package/dist/{chunk-MBURQ26S.mjs → chunk-5YXAQB6A.mjs} +10 -0
- package/dist/{chunk-OEB25YZ4.mjs → chunk-7NEVAAPY.mjs} +145 -20
- package/dist/{chunk-LTLFJPHO.cjs → chunk-7TEGUTU4.cjs} +52 -47
- package/dist/{chunk-5FDIQNJJ.mjs → chunk-TKTOPC2W.mjs} +12 -7
- package/dist/{chunk-J7ILKS5N.cjs → chunk-UHQSFV5V.cjs} +248 -123
- package/dist/{chunk-FLVSQDP4.cjs → chunk-XW4M7WDI.cjs} +196 -84
- package/dist/{chunk-N2Y34LQO.cjs → chunk-YQFH2WSW.cjs} +11 -1
- package/dist/deposit.cjs +3 -3
- package/dist/deposit.mjs +2 -2
- package/dist/index.cjs +8 -4
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +7 -3
- package/dist/reown.cjs +8 -4
- package/dist/reown.d.cts +4 -0
- package/dist/reown.d.ts +4 -0
- package/dist/reown.mjs +8 -4
- package/dist/styles.css +5 -5
- package/dist/withdraw.cjs +3 -3
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
|
@@ -78,6 +78,15 @@ function ReownWalletProvider({
|
|
|
78
78
|
const config = adapter.wagmiConfig;
|
|
79
79
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _wagmi.WagmiProvider, { config, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children }) });
|
|
80
80
|
}
|
|
81
|
+
async function disconnectWallet() {
|
|
82
|
+
if (!_react3.modal) {
|
|
83
|
+
console.warn(
|
|
84
|
+
"[rhinestone] disconnectWallet called before the modal provider mounted; no-op."
|
|
85
|
+
);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
await _react3.modal.disconnect();
|
|
89
|
+
}
|
|
81
90
|
function useReownWallet() {
|
|
82
91
|
const { open } = _react3.useAppKit.call(void 0, );
|
|
83
92
|
const { address, isConnected, caipAddress } = _react3.useAppKitAccount.call(void 0, );
|
|
@@ -119,4 +128,5 @@ function useReownWallet() {
|
|
|
119
128
|
|
|
120
129
|
|
|
121
130
|
|
|
122
|
-
|
|
131
|
+
|
|
132
|
+
exports.ReownWalletProvider = ReownWalletProvider; exports.disconnectWallet = disconnectWallet; exports.useReownWallet = useReownWallet;
|
package/dist/deposit.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkUHQSFV5Vcjs = require('./chunk-UHQSFV5V.cjs');
|
|
4
|
+
require('./chunk-XW4M7WDI.cjs');
|
|
5
5
|
require('./chunk-MUWVDVY4.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.DepositModal =
|
|
8
|
+
exports.DepositModal = _chunkUHQSFV5Vcjs.DepositModal;
|
package/dist/deposit.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUHQSFV5Vcjs = require('./chunk-UHQSFV5V.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
|
|
6
|
+
var _chunk7TEGUTU4cjs = require('./chunk-7TEGUTU4.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
|
|
10
|
+
require('./chunk-XW4M7WDI.cjs');
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
|
|
@@ -66,4 +69,5 @@ var _chunkMUWVDVY4cjs = require('./chunk-MUWVDVY4.cjs');
|
|
|
66
69
|
|
|
67
70
|
|
|
68
71
|
|
|
69
|
-
|
|
72
|
+
|
|
73
|
+
exports.CHAIN_BY_ID = _chunkMUWVDVY4cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMUWVDVY4cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMUWVDVY4cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkUHQSFV5Vcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkMUWVDVY4cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkMUWVDVY4cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMUWVDVY4cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk7TEGUTU4cjs.WithdrawModal; exports.chainRegistry = _chunkMUWVDVY4cjs.chainRegistry; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet; exports.findChainIdForToken = _chunkMUWVDVY4cjs.findChainIdForToken; exports.getChainBadge = _chunkMUWVDVY4cjs.getChainBadge; exports.getChainIcon = _chunkMUWVDVY4cjs.getChainIcon; exports.getChainId = _chunkMUWVDVY4cjs.getChainId; exports.getChainName = _chunkMUWVDVY4cjs.getChainName; exports.getChainObject = _chunkMUWVDVY4cjs.getChainObject; exports.getExplorerName = _chunkMUWVDVY4cjs.getExplorerName; exports.getExplorerTxUrl = _chunkMUWVDVY4cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMUWVDVY4cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkMUWVDVY4cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMUWVDVY4cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMUWVDVY4cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMUWVDVY4cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMUWVDVY4cjs.getTokenAddress; exports.getTokenDecimals = _chunkMUWVDVY4cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMUWVDVY4cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMUWVDVY4cjs.getTokenIcon; exports.getTokenSymbol = _chunkMUWVDVY4cjs.getTokenSymbol; exports.getUsdcAddress = _chunkMUWVDVY4cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMUWVDVY4cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMUWVDVY4cjs.isSupportedTokenAddressForChain;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.cjs';
|
|
2
2
|
export { WithdrawModal } from './withdraw.cjs';
|
|
3
|
+
export { disconnectWallet } from './reown.cjs';
|
|
3
4
|
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, i as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, j as WithdrawEvent, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-DJ1fzNC7.cjs';
|
|
4
5
|
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
6
|
export { SafeTransactionRequest } from './safe.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.js';
|
|
2
2
|
export { WithdrawModal } from './withdraw.js';
|
|
3
|
+
export { disconnectWallet } from './reown.js';
|
|
3
4
|
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositEvent, c as DepositFailedEventData, d as DepositModalBranding, e as DepositModalProps, f as DepositModalTheme, g as DepositModalUIConfig, h as DepositSubmittedEventData, E as ErrorEventData, M as ModalEvent, O as OrderBookSwapAction, i as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, W as WithdrawCompleteEventData, j as WithdrawEvent, k as WithdrawFailedEventData, l as WithdrawModalProps, m as WithdrawSubmittedEventData } from './types-DGQzvl6v.js';
|
|
4
5
|
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
6
|
export { SafeTransactionRequest } from './safe.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7NEVAAPY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
6
|
+
} from "./chunk-TKTOPC2W.mjs";
|
|
7
|
+
import {
|
|
8
|
+
disconnectWallet
|
|
9
|
+
} from "./chunk-5YXAQB6A.mjs";
|
|
10
|
+
import "./chunk-3CRG5NPG.mjs";
|
|
8
11
|
import {
|
|
9
12
|
CHAIN_BY_ID,
|
|
10
13
|
DEFAULT_BACKEND_URL,
|
|
@@ -45,6 +48,7 @@ export {
|
|
|
45
48
|
SUPPORTED_CHAINS,
|
|
46
49
|
WithdrawModal,
|
|
47
50
|
chainRegistry,
|
|
51
|
+
disconnectWallet,
|
|
48
52
|
findChainIdForToken,
|
|
49
53
|
getChainBadge,
|
|
50
54
|
getChainIcon,
|
package/dist/reown.cjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUHQSFV5Vcjs = require('./chunk-UHQSFV5V.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
|
|
6
|
+
var _chunk7TEGUTU4cjs = require('./chunk-7TEGUTU4.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkYQFH2WSWcjs = require('./chunk-YQFH2WSW.cjs');
|
|
10
|
+
require('./chunk-XW4M7WDI.cjs');
|
|
8
11
|
require('./chunk-MUWVDVY4.cjs');
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
|
|
16
|
+
exports.DepositModal = _chunkUHQSFV5Vcjs.DepositModal; exports.WithdrawModal = _chunk7TEGUTU4cjs.WithdrawModal; exports.disconnectWallet = _chunkYQFH2WSWcjs.disconnectWallet;
|
package/dist/reown.d.cts
CHANGED
|
@@ -4,3 +4,7 @@ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventDat
|
|
|
4
4
|
export { SafeTransactionRequest } from './safe.cjs';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|
|
7
|
+
|
|
8
|
+
declare function disconnectWallet(): Promise<void>;
|
|
9
|
+
|
|
10
|
+
export { disconnectWallet };
|
package/dist/reown.d.ts
CHANGED
|
@@ -4,3 +4,7 @@ export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventDat
|
|
|
4
4
|
export { SafeTransactionRequest } from './safe.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|
|
7
|
+
|
|
8
|
+
declare function disconnectWallet(): Promise<void>;
|
|
9
|
+
|
|
10
|
+
export { disconnectWallet };
|
package/dist/reown.mjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7NEVAAPY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
6
|
+
} from "./chunk-TKTOPC2W.mjs";
|
|
7
|
+
import {
|
|
8
|
+
disconnectWallet
|
|
9
|
+
} from "./chunk-5YXAQB6A.mjs";
|
|
10
|
+
import "./chunk-3CRG5NPG.mjs";
|
|
8
11
|
import "./chunk-SDZKKUCJ.mjs";
|
|
9
12
|
export {
|
|
10
13
|
DepositModal,
|
|
11
|
-
WithdrawModal
|
|
14
|
+
WithdrawModal,
|
|
15
|
+
disconnectWallet
|
|
12
16
|
};
|
package/dist/styles.css
CHANGED
|
@@ -2591,19 +2591,19 @@
|
|
|
2591
2591
|
display: inline-flex;
|
|
2592
2592
|
align-items: center;
|
|
2593
2593
|
justify-content: center;
|
|
2594
|
-
width:
|
|
2595
|
-
height:
|
|
2594
|
+
width: 14px;
|
|
2595
|
+
height: 14px;
|
|
2596
2596
|
color: var(--rs-muted-foreground);
|
|
2597
2597
|
flex-shrink: 0;
|
|
2598
2598
|
}
|
|
2599
2599
|
|
|
2600
2600
|
.rs-price-impact-row-icon svg {
|
|
2601
|
-
width:
|
|
2602
|
-
height:
|
|
2601
|
+
width: 14px;
|
|
2602
|
+
height: 14px;
|
|
2603
2603
|
}
|
|
2604
2604
|
|
|
2605
2605
|
.rs-price-impact-label {
|
|
2606
|
-
font-size:
|
|
2606
|
+
font-size: 11px;
|
|
2607
2607
|
color: var(--rs-muted-foreground);
|
|
2608
2608
|
font-weight: 500;
|
|
2609
2609
|
}
|
package/dist/withdraw.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk7TEGUTU4cjs = require('./chunk-7TEGUTU4.cjs');
|
|
4
|
+
require('./chunk-XW4M7WDI.cjs');
|
|
5
5
|
require('./chunk-MUWVDVY4.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.WithdrawModal =
|
|
8
|
+
exports.WithdrawModal = _chunk7TEGUTU4cjs.WithdrawModal;
|
package/dist/withdraw.mjs
CHANGED