@rhinestone/deposit-modal 0.8.0 → 0.8.2
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-J5YFZKFS.cjs → DepositModalReown-A2W6R27Q.cjs} +9 -9
- package/dist/{DepositModalReown-RZ6VSMKP.mjs → DepositModalReown-IB5WUXVT.mjs} +6 -6
- package/dist/{WithdrawModalReown-4YUV2WWV.mjs → WithdrawModalReown-A4S4BJHG.mjs} +5 -5
- package/dist/{WithdrawModalReown-B6BGY52S.cjs → WithdrawModalReown-KUWNNA2X.cjs} +8 -8
- package/dist/{chunk-SX52FXKH.mjs → chunk-2O2FJYRY.mjs} +8 -1
- package/dist/{chunk-JRFPKFL6.cjs → chunk-3WIHTUQ6.cjs} +105 -98
- package/dist/{chunk-XLXJW44N.cjs → chunk-46BRQZ2P.cjs} +500 -458
- package/dist/{chunk-LXTAAHPC.mjs → chunk-4BLOPOVO.mjs} +2 -2
- package/dist/{chunk-VURI4G2Z.cjs → chunk-5E67UM3V.cjs} +7 -7
- package/dist/{chunk-IRI34U6N.cjs → chunk-DSXMWQYB.cjs} +262 -139
- package/dist/{chunk-5S5BQ2GM.mjs → chunk-KGZU3BL2.mjs} +59 -17
- package/dist/{chunk-4IOQIWDY.cjs → chunk-ORKEBFMR.cjs} +4 -4
- package/dist/{chunk-PUMTR35E.cjs → chunk-P5T4XSN2.cjs} +9 -2
- package/dist/{chunk-YLIPI3NU.mjs → chunk-RARNNVZO.mjs} +1 -1
- package/dist/{chunk-TYB6AA6D.mjs → chunk-RH6XQHMA.mjs} +1 -1
- package/dist/{chunk-RXWJ267K.mjs → chunk-TUSEN26M.mjs} +172 -49
- package/dist/{chunk-WL7AXYQ4.cjs → chunk-UNVVUULP.cjs} +3 -3
- package/dist/{chunk-7JJ4EFDY.mjs → chunk-XK5RH4FZ.mjs} +12 -5
- package/dist/constants.cjs +2 -2
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.mjs +5 -5
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +6 -6
- package/dist/polymarket.cjs +6 -6
- package/dist/polymarket.mjs +3 -3
- package/dist/styles.css +147 -1
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkP5T4XSN2cjs = require('./chunk-P5T4XSN2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/core/safe.ts
|
|
6
6
|
|
|
@@ -80,7 +80,7 @@ async function executeSafeEthTransfer(params) {
|
|
|
80
80
|
throw new Error("Wallet not connected");
|
|
81
81
|
}
|
|
82
82
|
if (chain.id !== chainId) {
|
|
83
|
-
throw new Error(`Switch to ${
|
|
83
|
+
throw new Error(`Switch to ${_chunkP5T4XSN2cjs.getChainName.call(void 0, chainId)} to sign`);
|
|
84
84
|
}
|
|
85
85
|
const isOwner = await publicClient.readContract({
|
|
86
86
|
address: safeAddress,
|
|
@@ -163,7 +163,7 @@ async function executeSafeErc20Transfer(params) {
|
|
|
163
163
|
throw new Error("Wallet not connected");
|
|
164
164
|
}
|
|
165
165
|
if (chain.id !== chainId) {
|
|
166
|
-
throw new Error(`Switch to ${
|
|
166
|
+
throw new Error(`Switch to ${_chunkP5T4XSN2cjs.getChainName.call(void 0, chainId)} to sign`);
|
|
167
167
|
}
|
|
168
168
|
const isOwner = await publicClient.readContract({
|
|
169
169
|
address: safeAddress,
|
|
@@ -28,18 +28,19 @@ import {
|
|
|
28
28
|
getAssetId,
|
|
29
29
|
getPublicClient,
|
|
30
30
|
isNativeAsset,
|
|
31
|
+
isRecognizedToken,
|
|
31
32
|
loadSessionOwnerFromStorage,
|
|
32
33
|
saveSessionOwnerToStorage,
|
|
33
34
|
useLatestRef,
|
|
34
35
|
useRpcUrls,
|
|
35
36
|
useStableRpcUrls,
|
|
36
37
|
useTokenPrices
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-TUSEN26M.mjs";
|
|
38
39
|
import {
|
|
39
40
|
buildSafeTransaction,
|
|
40
41
|
executeSafeErc20Transfer,
|
|
41
42
|
executeSafeEthTransfer
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RH6XQHMA.mjs";
|
|
43
44
|
import {
|
|
44
45
|
DEFAULT_BACKEND_URL,
|
|
45
46
|
DEFAULT_SIGNER_ADDRESS,
|
|
@@ -52,7 +53,7 @@ import {
|
|
|
52
53
|
getTokenDecimalsByAddress,
|
|
53
54
|
getTokenSymbol,
|
|
54
55
|
toEvmCaip2
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-2O2FJYRY.mjs";
|
|
56
57
|
|
|
57
58
|
// src/WithdrawModal.tsx
|
|
58
59
|
import {
|
|
@@ -681,6 +682,7 @@ function shortenAddress(addr) {
|
|
|
681
682
|
function WithdrawReviewStep({
|
|
682
683
|
sourceChain,
|
|
683
684
|
sourceSymbol,
|
|
685
|
+
sourceToken,
|
|
684
686
|
targetChain,
|
|
685
687
|
targetToken,
|
|
686
688
|
amount,
|
|
@@ -701,11 +703,15 @@ function WithdrawReviewStep({
|
|
|
701
703
|
const targetChainIcon = getChainIcon(targetChain);
|
|
702
704
|
const amountNumber = Number(amount);
|
|
703
705
|
const formattedSendAmount = formatTokenAmount(amountNumber, sourceSymbol) ?? amount;
|
|
704
|
-
const prices = useTokenPrices(service, [
|
|
706
|
+
const prices = useTokenPrices(service, [
|
|
707
|
+
{ chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
|
|
708
|
+
{ chainId: targetChain, address: targetToken, symbol: targetSymbol }
|
|
709
|
+
]);
|
|
705
710
|
const receiveDisplay = formatReceiveEstimate({
|
|
706
711
|
sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
|
|
707
712
|
sourceSymbol,
|
|
708
713
|
targetSymbol,
|
|
714
|
+
sourceTrusted: isRecognizedToken(sourceToken, sourceChain),
|
|
709
715
|
prices
|
|
710
716
|
}) ?? // No price for the target token — an honest dash beats a wrong number.
|
|
711
717
|
"\u2014";
|
|
@@ -1536,6 +1542,7 @@ function WithdrawFlow({
|
|
|
1536
1542
|
{
|
|
1537
1543
|
sourceChain,
|
|
1538
1544
|
sourceSymbol: asset.symbol,
|
|
1545
|
+
sourceToken,
|
|
1539
1546
|
targetChain,
|
|
1540
1547
|
targetToken,
|
|
1541
1548
|
amount: storeApi.getState().amount ?? "0",
|
|
@@ -1590,7 +1597,7 @@ function deriveStepView(step, _registration) {
|
|
|
1590
1597
|
// src/WithdrawModal.tsx
|
|
1591
1598
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1592
1599
|
var ReownWithdrawInner = lazy(
|
|
1593
|
-
() => import("./WithdrawModalReown-
|
|
1600
|
+
() => import("./WithdrawModalReown-A4S4BJHG.mjs").then((m) => ({
|
|
1594
1601
|
default: m.WithdrawModalReown
|
|
1595
1602
|
}))
|
|
1596
1603
|
);
|
package/dist/constants.cjs
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkP5T4XSN2cjs = require('./chunk-P5T4XSN2.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
@@ -69,4 +69,4 @@ var _chunkPUMTR35Ecjs = require('./chunk-PUMTR35E.cjs');
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
exports.CHAIN_BY_ID =
|
|
72
|
+
exports.CHAIN_BY_ID = _chunkP5T4XSN2cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkP5T4XSN2cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkP5T4XSN2cjs.DEFAULT_SIGNER_ADDRESS; exports.HYPERCORE_CHAIN_ID = _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkP5T4XSN2cjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkP5T4XSN2cjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkP5T4XSN2cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkP5T4XSN2cjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkP5T4XSN2cjs.chainRegistry; exports.findChainIdForToken = _chunkP5T4XSN2cjs.findChainIdForToken; exports.getChainBadge = _chunkP5T4XSN2cjs.getChainBadge; exports.getChainIcon = _chunkP5T4XSN2cjs.getChainIcon; exports.getChainId = _chunkP5T4XSN2cjs.getChainId; exports.getChainName = _chunkP5T4XSN2cjs.getChainName; exports.getChainObject = _chunkP5T4XSN2cjs.getChainObject; exports.getExplorerName = _chunkP5T4XSN2cjs.getExplorerName; exports.getExplorerTxUrl = _chunkP5T4XSN2cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkP5T4XSN2cjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkP5T4XSN2cjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkP5T4XSN2cjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkP5T4XSN2cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkP5T4XSN2cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkP5T4XSN2cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkP5T4XSN2cjs.getTokenAddress; exports.getTokenDecimals = _chunkP5T4XSN2cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkP5T4XSN2cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkP5T4XSN2cjs.getTokenIcon; exports.getTokenSymbol = _chunkP5T4XSN2cjs.getTokenSymbol; exports.getUsdcAddress = _chunkP5T4XSN2cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkP5T4XSN2cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkP5T4XSN2cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkP5T4XSN2cjs.tokenIconUrl;
|
package/dist/constants.mjs
CHANGED
package/dist/deposit.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var _chunk46BRQZ2Pcjs = require('./chunk-46BRQZ2P.cjs');
|
|
4
|
+
require('./chunk-ORKEBFMR.cjs');
|
|
5
|
+
require('./chunk-DSXMWQYB.cjs');
|
|
6
|
+
require('./chunk-UNVVUULP.cjs');
|
|
7
|
+
require('./chunk-P5T4XSN2.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.DepositModal =
|
|
10
|
+
exports.DepositModal = _chunk46BRQZ2Pcjs.DepositModal;
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-KGZU3BL2.mjs";
|
|
4
|
+
import "./chunk-RARNNVZO.mjs";
|
|
5
|
+
import "./chunk-TUSEN26M.mjs";
|
|
6
|
+
import "./chunk-RH6XQHMA.mjs";
|
|
7
|
+
import "./chunk-2O2FJYRY.mjs";
|
|
8
8
|
export {
|
|
9
9
|
DepositModal
|
|
10
10
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk46BRQZ2Pcjs = require('./chunk-46BRQZ2P.cjs');
|
|
4
|
+
require('./chunk-ORKEBFMR.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunk3WIHTUQ6cjs = require('./chunk-3WIHTUQ6.cjs');
|
|
8
|
+
require('./chunk-DSXMWQYB.cjs');
|
|
9
|
+
require('./chunk-UNVVUULP.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -40,7 +40,7 @@ require('./chunk-WL7AXYQ4.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkP5T4XSN2cjs = require('./chunk-P5T4XSN2.cjs');
|
|
44
44
|
|
|
45
45
|
// src/core/reown-disconnect.ts
|
|
46
46
|
var _react = require('@reown/appkit/react');
|
|
@@ -89,4 +89,4 @@ async function disconnectWallet() {
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
exports.CHAIN_BY_ID =
|
|
92
|
+
exports.CHAIN_BY_ID = _chunkP5T4XSN2cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkP5T4XSN2cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkP5T4XSN2cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk46BRQZ2Pcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkP5T4XSN2cjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkP5T4XSN2cjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkP5T4XSN2cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkP5T4XSN2cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunk3WIHTUQ6cjs.WithdrawModal; exports.chainRegistry = _chunkP5T4XSN2cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkP5T4XSN2cjs.findChainIdForToken; exports.getChainBadge = _chunkP5T4XSN2cjs.getChainBadge; exports.getChainIcon = _chunkP5T4XSN2cjs.getChainIcon; exports.getChainId = _chunkP5T4XSN2cjs.getChainId; exports.getChainName = _chunkP5T4XSN2cjs.getChainName; exports.getChainObject = _chunkP5T4XSN2cjs.getChainObject; exports.getExplorerName = _chunkP5T4XSN2cjs.getExplorerName; exports.getExplorerTxUrl = _chunkP5T4XSN2cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkP5T4XSN2cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkP5T4XSN2cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkP5T4XSN2cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkP5T4XSN2cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkP5T4XSN2cjs.getTokenAddress; exports.getTokenDecimals = _chunkP5T4XSN2cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkP5T4XSN2cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkP5T4XSN2cjs.getTokenIcon; exports.getTokenSymbol = _chunkP5T4XSN2cjs.getTokenSymbol; exports.getUsdcAddress = _chunkP5T4XSN2cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkP5T4XSN2cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkP5T4XSN2cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkP5T4XSN2cjs.tokenIconUrl;
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-KGZU3BL2.mjs";
|
|
4
|
+
import "./chunk-RARNNVZO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
WithdrawModal
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-XK5RH4FZ.mjs";
|
|
8
|
+
import "./chunk-TUSEN26M.mjs";
|
|
9
|
+
import "./chunk-RH6XQHMA.mjs";
|
|
10
10
|
import {
|
|
11
11
|
CHAIN_BY_ID,
|
|
12
12
|
DEFAULT_BACKEND_URL,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
getUsdcDecimals,
|
|
41
41
|
isSupportedTokenAddressForChain,
|
|
42
42
|
tokenIconUrl
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2O2FJYRY.mjs";
|
|
44
44
|
|
|
45
45
|
// src/core/reown-disconnect.ts
|
|
46
46
|
import { modal } from "@reown/appkit/react";
|
package/dist/polymarket.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var _chunkORKEBFMRcjs = require('./chunk-ORKEBFMR.cjs');
|
|
6
|
+
require('./chunk-UNVVUULP.cjs');
|
|
7
|
+
require('./chunk-P5T4XSN2.cjs');
|
|
8
8
|
|
|
9
9
|
// src/core/dapp-imports/polymarket/account.ts
|
|
10
10
|
|
|
@@ -23,12 +23,12 @@ async function getPolymarketAccount(params) {
|
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
const eoa = _viem.getAddress.call(void 0, params.eoa);
|
|
26
|
-
const proxyWallet = await
|
|
26
|
+
const proxyWallet = await _chunkORKEBFMRcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
|
|
27
27
|
if (!proxyWallet) return null;
|
|
28
28
|
throwIfAborted(signal);
|
|
29
29
|
let balances = { pusd: 0n, usdce: 0n };
|
|
30
30
|
try {
|
|
31
|
-
balances = await
|
|
31
|
+
balances = await _chunkORKEBFMRcjs.readPolymarketBalances.call(void 0, {
|
|
32
32
|
publicClient: polygonClient(rpcUrl),
|
|
33
33
|
proxyWallet
|
|
34
34
|
});
|
|
@@ -40,7 +40,7 @@ async function getPolymarketAccount(params) {
|
|
|
40
40
|
return {
|
|
41
41
|
eoa,
|
|
42
42
|
proxyWallet,
|
|
43
|
-
chainId:
|
|
43
|
+
chainId: _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID,
|
|
44
44
|
pusd,
|
|
45
45
|
usdce,
|
|
46
46
|
totalUsd: pusd.usd + usdce.usd
|
package/dist/polymarket.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
POLYMARKET_POLYGON_CHAIN_ID,
|
|
3
3
|
fetchPolymarketProxyWallet,
|
|
4
4
|
readPolymarketBalances
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-RARNNVZO.mjs";
|
|
6
|
+
import "./chunk-RH6XQHMA.mjs";
|
|
7
|
+
import "./chunk-2O2FJYRY.mjs";
|
|
8
8
|
|
|
9
9
|
// src/core/dapp-imports/polymarket/account.ts
|
|
10
10
|
import {
|
package/dist/styles.css
CHANGED
|
@@ -2547,6 +2547,35 @@
|
|
|
2547
2547
|
color: var(--rs-callout-warning-text);
|
|
2548
2548
|
}
|
|
2549
2549
|
|
|
2550
|
+
/* =============================================================================
|
|
2551
|
+
Token icon (CDN-backed) — skeleton while the image loads
|
|
2552
|
+
============================================================================= */
|
|
2553
|
+
|
|
2554
|
+
/* `.rs-token-icon` is added to every CDN-backed token <img> (TokenIcon). While
|
|
2555
|
+
the image is loading (`data-loading`), show a muted pulsing placeholder so the
|
|
2556
|
+
first paint isn't a blank/broken-image flash; it inherits the caller's size
|
|
2557
|
+
and border-radius, so there's no layout shift when the icon paints in. */
|
|
2558
|
+
.rs-token-icon[data-loading] {
|
|
2559
|
+
background-color: var(--rs-muted);
|
|
2560
|
+
animation: rs-token-icon-pulse 1.2s ease-in-out infinite;
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
@keyframes rs-token-icon-pulse {
|
|
2564
|
+
0%,
|
|
2565
|
+
100% {
|
|
2566
|
+
opacity: 1;
|
|
2567
|
+
}
|
|
2568
|
+
50% {
|
|
2569
|
+
opacity: 0.55;
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2574
|
+
.rs-token-icon[data-loading] {
|
|
2575
|
+
animation: none;
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2550
2579
|
/* =============================================================================
|
|
2551
2580
|
Confirm Step Redesign (Polymarket Style)
|
|
2552
2581
|
============================================================================= */
|
|
@@ -4941,7 +4970,10 @@
|
|
|
4941
4970
|
}
|
|
4942
4971
|
|
|
4943
4972
|
.rs-list-row-meta-icons--cards > .rs-card-network + .rs-card-network {
|
|
4944
|
-
|
|
4973
|
+
/* Cards paint in source order, so Mastercard (last) sits on top and Amex
|
|
4974
|
+
(first) beneath. Amex's mark is right-aligned, so this overlap is kept
|
|
4975
|
+
gentle — a larger one would tuck Amex's "EX" under Visa. */
|
|
4976
|
+
margin-left: -3px;
|
|
4945
4977
|
}
|
|
4946
4978
|
|
|
4947
4979
|
.rs-list-row-meta-icons--cards .rs-card-network svg {
|
|
@@ -5074,6 +5106,22 @@
|
|
|
5074
5106
|
min-height: 586px;
|
|
5075
5107
|
border: 0;
|
|
5076
5108
|
background: var(--rs-background);
|
|
5109
|
+
/* Swapped's embedded widget has no theme URL param and follows
|
|
5110
|
+
`prefers-color-scheme`. Setting `color-scheme` on the iframe element
|
|
5111
|
+
propagates into its (cross-origin) document's `prefers-color-scheme`, so
|
|
5112
|
+
we pin it to the modal's theme — a light modal renders a light widget and
|
|
5113
|
+
a dark modal a dark one — instead of following the visitor's OS setting.
|
|
5114
|
+
This base rule forces light; because it wins over the `color-scheme: dark`
|
|
5115
|
+
inherited from `.rs-modal[data-theme="dark"]`, the dark override below is
|
|
5116
|
+
required to re-assert dark. NOTE: this only takes effect because
|
|
5117
|
+
SwappedIframeStep assigns the iframe `src` one commit after mount — the
|
|
5118
|
+
widget reads prefers-color-scheme at its first navigation, which must
|
|
5119
|
+
happen after this rule is resolved on the element. */
|
|
5120
|
+
color-scheme: light;
|
|
5121
|
+
}
|
|
5122
|
+
|
|
5123
|
+
.rs-modal[data-theme="dark"] .rs-fiat-onramp-iframe {
|
|
5124
|
+
color-scheme: dark;
|
|
5077
5125
|
}
|
|
5078
5126
|
|
|
5079
5127
|
.rs-fiat-onramp[data-variant="connect"] .rs-fiat-onramp-iframe {
|
|
@@ -5536,3 +5584,101 @@
|
|
|
5536
5584
|
border-color: #fafafa;
|
|
5537
5585
|
color: #18181b;
|
|
5538
5586
|
}
|
|
5587
|
+
|
|
5588
|
+
/* =============================================================================
|
|
5589
|
+
Mobile bottom sheet (<= 639px)
|
|
5590
|
+
=============================================================================
|
|
5591
|
+
Below the 640px breakpoint the modal docks to the bottom of the viewport and
|
|
5592
|
+
slides up as a full-width sheet — matching the 1auth dialog (bottom sheet on
|
|
5593
|
+
mobile, centered card on desktop). Everything here is scoped under
|
|
5594
|
+
`.rs-modal-overlay` so inline mode (`.rs-modal-content--inline`, which has no
|
|
5595
|
+
overlay ancestor) is untouched, and desktop (>= 640px) keeps the centered
|
|
5596
|
+
card verbatim. */
|
|
5597
|
+
@media (max-width: 639px) {
|
|
5598
|
+
.rs-modal-overlay {
|
|
5599
|
+
/* Dock the sheet to the bottom edge (desktop centers it). */
|
|
5600
|
+
align-items: flex-end;
|
|
5601
|
+
/* Fade the scrim in as the sheet rises. Animating background-color rather
|
|
5602
|
+
than opacity keeps the sheet itself fully opaque while it slides — the
|
|
5603
|
+
overlay is both scrim and flex parent, so an opacity fade would dim the
|
|
5604
|
+
sheet too. */
|
|
5605
|
+
animation: rs-backdrop-fade-in 0.2s ease-out;
|
|
5606
|
+
}
|
|
5607
|
+
|
|
5608
|
+
.rs-modal-overlay .rs-modal-content {
|
|
5609
|
+
width: 100%;
|
|
5610
|
+
max-width: none;
|
|
5611
|
+
margin: 0;
|
|
5612
|
+
/* Top corners only; the bottom sits flush against the viewport edge. */
|
|
5613
|
+
border-radius: 16px 16px 0 0;
|
|
5614
|
+
/* Cap below full height so a strip of scrim shows above the sheet (the
|
|
5615
|
+
bottom-sheet "peek"); taller content scrolls inside .rs-modal-body. */
|
|
5616
|
+
max-height: min(92dvh, calc(100dvh - 24px));
|
|
5617
|
+
/* Slide up from below the fold — iOS-sheet easing, matching 1auth's
|
|
5618
|
+
dialog-slide-up. When it ends the content rests at its --open transform
|
|
5619
|
+
(scale(1) == identity), so the settled position is unchanged. */
|
|
5620
|
+
animation: rs-sheet-slide-up 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
|
5621
|
+
}
|
|
5622
|
+
|
|
5623
|
+
/* Swapped/fiat/exchange flows pre-reserve a tall desktop iframe height
|
|
5624
|
+
(min-height 585-699px) plus a 445px max-width. On a phone that would force
|
|
5625
|
+
the sheet taller than the screen and push its top chrome out of reach, so
|
|
5626
|
+
cap it to the sheet height and let the body scroll. Specificity (0,4,0)
|
|
5627
|
+
matches the tallest :has() sizing rule and, appended last, wins the tie. */
|
|
5628
|
+
.rs-modal-overlay .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"]),
|
|
5629
|
+
.rs-modal-overlay .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"]) {
|
|
5630
|
+
max-width: none;
|
|
5631
|
+
min-height: 0;
|
|
5632
|
+
max-height: min(92dvh, calc(100dvh - 24px));
|
|
5633
|
+
}
|
|
5634
|
+
|
|
5635
|
+
/* The history panel is a long, scrollable list overlaid position:absolute, so
|
|
5636
|
+
it can't grow the sheet itself — left alone the sheet stays as short as the
|
|
5637
|
+
screen behind it and crams the list into a sliver at the bottom. When the
|
|
5638
|
+
panel is mounted, give the sheet a tall min-height so the list uses most of
|
|
5639
|
+
the phone screen. Placed after the fiat/exchange reset above so it wins when
|
|
5640
|
+
history is opened over one of those flows. */
|
|
5641
|
+
.rs-modal-overlay .rs-modal-content:has(.rs-history-panel) {
|
|
5642
|
+
min-height: min(85dvh, calc(100dvh - 24px));
|
|
5643
|
+
}
|
|
5644
|
+
|
|
5645
|
+
/* Clear the iOS home indicator. Excludes the immersive Swapped iframe, which
|
|
5646
|
+
is intentionally full-bleed to the sheet edges. */
|
|
5647
|
+
.rs-modal-overlay .rs-modal:not(.rs-modal--swapped-iframe) {
|
|
5648
|
+
padding-bottom: calc(16px + env(safe-area-inset-bottom));
|
|
5649
|
+
}
|
|
5650
|
+
|
|
5651
|
+
/* iOS Safari zooms the page in when a focused input's font is < 16px. Bump
|
|
5652
|
+
the small text inputs (the deposit amount input is 64px, so it is
|
|
5653
|
+
unaffected) to kill the zoom-on-focus jump. */
|
|
5654
|
+
.rs-modal-overlay .rs-modal .rs-input,
|
|
5655
|
+
.rs-modal-overlay .rs-modal .rs-withdraw-input {
|
|
5656
|
+
font-size: 16px;
|
|
5657
|
+
}
|
|
5658
|
+
}
|
|
5659
|
+
|
|
5660
|
+
@keyframes rs-sheet-slide-up {
|
|
5661
|
+
from {
|
|
5662
|
+
transform: translate3d(0, 100%, 0);
|
|
5663
|
+
}
|
|
5664
|
+
to {
|
|
5665
|
+
transform: translate3d(0, 0, 0);
|
|
5666
|
+
}
|
|
5667
|
+
}
|
|
5668
|
+
|
|
5669
|
+
@keyframes rs-backdrop-fade-in {
|
|
5670
|
+
from {
|
|
5671
|
+
background-color: rgba(0, 0, 0, 0);
|
|
5672
|
+
}
|
|
5673
|
+
to {
|
|
5674
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
5675
|
+
}
|
|
5676
|
+
}
|
|
5677
|
+
|
|
5678
|
+
/* Honour "Reduce motion": snap the sheet + scrim to their settled state. */
|
|
5679
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5680
|
+
.rs-modal-overlay,
|
|
5681
|
+
.rs-modal-overlay .rs-modal-content {
|
|
5682
|
+
animation: none !important;
|
|
5683
|
+
}
|
|
5684
|
+
}
|
package/dist/withdraw.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var _chunk3WIHTUQ6cjs = require('./chunk-3WIHTUQ6.cjs');
|
|
4
|
+
require('./chunk-DSXMWQYB.cjs');
|
|
5
|
+
require('./chunk-UNVVUULP.cjs');
|
|
6
|
+
require('./chunk-P5T4XSN2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.WithdrawModal =
|
|
9
|
+
exports.WithdrawModal = _chunk3WIHTUQ6cjs.WithdrawModal;
|
package/dist/withdraw.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XK5RH4FZ.mjs";
|
|
4
|
+
import "./chunk-TUSEN26M.mjs";
|
|
5
|
+
import "./chunk-RH6XQHMA.mjs";
|
|
6
|
+
import "./chunk-2O2FJYRY.mjs";
|
|
7
7
|
export {
|
|
8
8
|
WithdrawModal
|
|
9
9
|
};
|