@rhinestone/deposit-modal 0.12.1 → 0.12.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-SXAXHYTN.mjs → DepositModalReown-TEC3MEZ4.mjs} +5 -5
- package/dist/{DepositModalReown-CH6FUTCR.cjs → DepositModalReown-VG66OTIU.cjs} +13 -13
- package/dist/{chunk-O4AXBFHU.mjs → chunk-2TPSF77V.mjs} +3 -3
- package/dist/{chunk-65MLWUQD.cjs → chunk-BRYNGLDM.cjs} +24 -24
- package/dist/{chunk-TQWEGW3A.mjs → chunk-FLVLYO64.mjs} +2 -2
- package/dist/{chunk-2K44IE3V.mjs → chunk-FXXUIK4E.mjs} +1 -1
- package/dist/{chunk-TYBMAUGH.cjs → chunk-HL5NUKZW.cjs} +3 -3
- package/dist/{chunk-O2TQLD4I.mjs → chunk-IAGFDSNC.mjs} +1 -1
- package/dist/{chunk-PVWZN66D.mjs → chunk-J46WDSRD.mjs} +1 -1
- package/dist/{chunk-NHGFU3WC.mjs → chunk-JE4R5VA3.mjs} +1 -1
- package/dist/{chunk-DMYA7U53.cjs → chunk-L32UI7LA.cjs} +1 -1
- package/dist/{chunk-2BOEUV6B.cjs → chunk-OIN4CXCP.cjs} +266 -266
- package/dist/{chunk-FKHPVLJY.cjs → chunk-PWLEBV5V.cjs} +66 -66
- package/dist/{chunk-KPWB2JAX.mjs → chunk-SDSKIJC7.mjs} +4 -4
- package/dist/{chunk-UGK4JRK6.cjs → chunk-TM7VGHAG.cjs} +54 -54
- package/dist/{chunk-ZLCY33FQ.cjs → chunk-UQIJU6HV.cjs} +59 -59
- package/dist/claim.cjs +5 -5
- package/dist/claim.mjs +4 -4
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.mjs +5 -5
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +7 -7
- package/dist/styles.css +9 -0
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-SDSKIJC7.mjs";
|
|
4
|
+
import "./chunk-J46WDSRD.mjs";
|
|
5
|
+
import "./chunk-JE4R5VA3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isUnsupportedChainSwitchError,
|
|
8
8
|
peekRuntimeChains,
|
|
9
9
|
primeRuntimeChains,
|
|
10
10
|
rpcUrlFor,
|
|
11
11
|
useStableRpcUrls
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-FXXUIK4E.mjs";
|
|
13
|
+
import "./chunk-IAGFDSNC.mjs";
|
|
14
14
|
import "./chunk-4ZXQPFNU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SUPPORTED_CHAINS,
|
|
@@ -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
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkOIN4CXCPcjs = require('./chunk-OIN4CXCP.cjs');
|
|
4
|
+
require('./chunk-PWLEBV5V.cjs');
|
|
5
|
+
require('./chunk-HL5NUKZW.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
12
|
+
var _chunkBRYNGLDMcjs = require('./chunk-BRYNGLDM.cjs');
|
|
13
|
+
require('./chunk-L32UI7LA.cjs');
|
|
14
14
|
require('./chunk-75DVGSAX.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,
|
|
94
|
+
transports[id] = _viem.http.call(void 0, _chunkBRYNGLDMcjs.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(
|
|
101
|
+
return `${id}=${_nullishCoalesce(_chunkBRYNGLDMcjs.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 =
|
|
180
|
+
const rpcUrls = _chunkBRYNGLDMcjs.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 =
|
|
192
|
+
const primed = _chunkBRYNGLDMcjs.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 =
|
|
197
|
+
const primed = _chunkBRYNGLDMcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
198
198
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
199
|
-
|
|
199
|
+
_chunkBRYNGLDMcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
200
200
|
if (active) setState({ ready: true, chains });
|
|
201
201
|
});
|
|
202
202
|
return () => {
|
|
@@ -258,7 +258,7 @@ function useReownWallet() {
|
|
|
258
258
|
await switchChainAsync({ chainId });
|
|
259
259
|
}
|
|
260
260
|
} catch (err) {
|
|
261
|
-
if (
|
|
261
|
+
if (_chunkBRYNGLDMcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
262
262
|
throw new Error(
|
|
263
263
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
264
264
|
);
|
|
@@ -292,7 +292,7 @@ function DepositModalWithReown(props) {
|
|
|
292
292
|
reown.disconnect();
|
|
293
293
|
}, [reown.disconnect]);
|
|
294
294
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
295
|
-
|
|
295
|
+
_chunkOIN4CXCPcjs.DepositModalInner,
|
|
296
296
|
{
|
|
297
297
|
...props,
|
|
298
298
|
reownWallet: reownWithSolana,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ListRow
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JE4R5VA3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AlertTriangleIcon,
|
|
6
6
|
BodyHeader,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
useExplorerTxUrl,
|
|
29
29
|
useLatestRef,
|
|
30
30
|
useStableRpcUrls
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FXXUIK4E.mjs";
|
|
32
32
|
import {
|
|
33
33
|
SERVICE_HEADERS
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-IAGFDSNC.mjs";
|
|
35
35
|
import {
|
|
36
36
|
getChainIcon,
|
|
37
37
|
getChainName,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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
|
|
3
|
+
var _chunkL32UI7LAcjs = require('./chunk-L32UI7LA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -894,7 +894,7 @@ function createDepositService(baseUrl, options) {
|
|
|
894
894
|
try {
|
|
895
895
|
const response = await fetch(apiUrl("/qr/tokens"), {
|
|
896
896
|
method: "GET",
|
|
897
|
-
headers:
|
|
897
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
|
|
898
898
|
});
|
|
899
899
|
if (!response.ok) {
|
|
900
900
|
debugLog(debug, scope, "getTopTokens:unavailable", {
|
|
@@ -921,7 +921,7 @@ function createDepositService(baseUrl, options) {
|
|
|
921
921
|
try {
|
|
922
922
|
const response = await fetch(apiUrl("/chains"), {
|
|
923
923
|
method: "GET",
|
|
924
|
-
headers:
|
|
924
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
|
|
925
925
|
});
|
|
926
926
|
if (!response.ok) {
|
|
927
927
|
debugLog(debug, scope, "getChains:unavailable", {
|
|
@@ -975,7 +975,7 @@ function createDepositService(baseUrl, options) {
|
|
|
975
975
|
});
|
|
976
976
|
const response = await fetch(url, {
|
|
977
977
|
method: "POST",
|
|
978
|
-
headers:
|
|
978
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
979
979
|
body: JSON.stringify({ account: params })
|
|
980
980
|
});
|
|
981
981
|
if (!response.ok) {
|
|
@@ -1008,7 +1008,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1008
1008
|
debugLog(debug, scope, "fetchPortfolio:request", { url, address });
|
|
1009
1009
|
const response = await fetch(url, {
|
|
1010
1010
|
method: "GET",
|
|
1011
|
-
headers:
|
|
1011
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
|
|
1012
1012
|
});
|
|
1013
1013
|
if (!response.ok) {
|
|
1014
1014
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1055,7 +1055,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1055
1055
|
debugLog(debug, scope, "fetchSolanaPortfolio:request", { url, address });
|
|
1056
1056
|
const response = await fetch(url, {
|
|
1057
1057
|
method: "GET",
|
|
1058
|
-
headers:
|
|
1058
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
|
|
1059
1059
|
});
|
|
1060
1060
|
if (!response.ok) {
|
|
1061
1061
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1085,7 +1085,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1085
1085
|
debugLog(debug, scope, "checkAccount:request", { url, address });
|
|
1086
1086
|
const response = await fetch(url, {
|
|
1087
1087
|
method: "GET",
|
|
1088
|
-
headers:
|
|
1088
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
|
|
1089
1089
|
});
|
|
1090
1090
|
if (!response.ok) {
|
|
1091
1091
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1120,7 +1120,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1120
1120
|
);
|
|
1121
1121
|
const response = await fetch(url, {
|
|
1122
1122
|
method: "GET",
|
|
1123
|
-
headers:
|
|
1123
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1124
1124
|
cache: "no-store"
|
|
1125
1125
|
});
|
|
1126
1126
|
if (!response.ok) {
|
|
@@ -1148,7 +1148,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1148
1148
|
);
|
|
1149
1149
|
const response = await fetch(url, {
|
|
1150
1150
|
method: "GET",
|
|
1151
|
-
headers:
|
|
1151
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1152
1152
|
cache: "no-store"
|
|
1153
1153
|
});
|
|
1154
1154
|
if (!response.ok) {
|
|
@@ -1172,7 +1172,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1172
1172
|
);
|
|
1173
1173
|
const response = await fetch(url, {
|
|
1174
1174
|
method: "GET",
|
|
1175
|
-
headers:
|
|
1175
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1176
1176
|
cache: "no-store"
|
|
1177
1177
|
});
|
|
1178
1178
|
if (!response.ok) {
|
|
@@ -1194,7 +1194,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1194
1194
|
async getPositions(address) {
|
|
1195
1195
|
const url = apiUrl(`/positions/${address}`);
|
|
1196
1196
|
debugLog(debug, scope, "getPositions:request", { url, address });
|
|
1197
|
-
const response = await fetch(url, { headers:
|
|
1197
|
+
const response = await fetch(url, { headers: _chunkL32UI7LAcjs.SERVICE_HEADERS });
|
|
1198
1198
|
if (!response.ok) {
|
|
1199
1199
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
1200
1200
|
debugError(debug, scope, "getPositions:failed", error, {
|
|
@@ -1228,7 +1228,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1228
1228
|
});
|
|
1229
1229
|
const response = await fetch(url, {
|
|
1230
1230
|
method: "POST",
|
|
1231
|
-
headers:
|
|
1231
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1232
1232
|
body: JSON.stringify({ account, market, chainId, asset, amount })
|
|
1233
1233
|
});
|
|
1234
1234
|
if (!response.ok) {
|
|
@@ -1264,7 +1264,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1264
1264
|
});
|
|
1265
1265
|
const response = await fetch(url, {
|
|
1266
1266
|
method: "POST",
|
|
1267
|
-
headers:
|
|
1267
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1268
1268
|
body: JSON.stringify({
|
|
1269
1269
|
depositWallet,
|
|
1270
1270
|
owner,
|
|
@@ -1306,7 +1306,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1306
1306
|
});
|
|
1307
1307
|
const response = await fetch(url, {
|
|
1308
1308
|
method: "GET",
|
|
1309
|
-
headers:
|
|
1309
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1310
1310
|
cache: "no-store"
|
|
1311
1311
|
});
|
|
1312
1312
|
if (!response.ok) {
|
|
@@ -1359,7 +1359,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
const response = await fetch(url, {
|
|
1361
1361
|
method: "GET",
|
|
1362
|
-
headers:
|
|
1362
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1363
1363
|
cache: "no-store"
|
|
1364
1364
|
});
|
|
1365
1365
|
if (!response.ok) {
|
|
@@ -1404,7 +1404,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1404
1404
|
try {
|
|
1405
1405
|
const response = await fetch(url, {
|
|
1406
1406
|
method: "POST",
|
|
1407
|
-
headers:
|
|
1407
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1408
1408
|
body: JSON.stringify(body),
|
|
1409
1409
|
cache: "no-store"
|
|
1410
1410
|
});
|
|
@@ -1441,7 +1441,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1441
1441
|
try {
|
|
1442
1442
|
const response = await fetch(url, {
|
|
1443
1443
|
method: "GET",
|
|
1444
|
-
headers:
|
|
1444
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1445
1445
|
cache: "no-store"
|
|
1446
1446
|
});
|
|
1447
1447
|
if (!response.ok) {
|
|
@@ -1471,7 +1471,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1471
1471
|
try {
|
|
1472
1472
|
const response = await fetch(url, {
|
|
1473
1473
|
method: "GET",
|
|
1474
|
-
headers:
|
|
1474
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1475
1475
|
cache: "no-store"
|
|
1476
1476
|
});
|
|
1477
1477
|
if (!response.ok) {
|
|
@@ -1496,7 +1496,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1496
1496
|
});
|
|
1497
1497
|
const response = await fetch(url, {
|
|
1498
1498
|
method: "POST",
|
|
1499
|
-
headers:
|
|
1499
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1500
1500
|
body: JSON.stringify(params)
|
|
1501
1501
|
});
|
|
1502
1502
|
if (!response.ok) {
|
|
@@ -1528,7 +1528,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1528
1528
|
});
|
|
1529
1529
|
const response = await fetch(url, {
|
|
1530
1530
|
method: "POST",
|
|
1531
|
-
headers:
|
|
1531
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1532
1532
|
body: JSON.stringify(params)
|
|
1533
1533
|
});
|
|
1534
1534
|
if (!response.ok) {
|
|
@@ -1565,7 +1565,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1565
1565
|
debugLog(debug, scope, "getSwappedConnectExchanges:request");
|
|
1566
1566
|
const response = await fetch(url, {
|
|
1567
1567
|
method: "GET",
|
|
1568
|
-
headers:
|
|
1568
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1569
1569
|
cache: "no-store"
|
|
1570
1570
|
});
|
|
1571
1571
|
if (!response.ok) {
|
|
@@ -1618,7 +1618,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1618
1618
|
try {
|
|
1619
1619
|
const response = await fetch(url, {
|
|
1620
1620
|
method: "GET",
|
|
1621
|
-
headers:
|
|
1621
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1622
1622
|
cache: "no-store"
|
|
1623
1623
|
});
|
|
1624
1624
|
if (!response.ok) {
|
|
@@ -1704,7 +1704,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1704
1704
|
try {
|
|
1705
1705
|
const response = await fetch(url, {
|
|
1706
1706
|
method: "GET",
|
|
1707
|
-
headers:
|
|
1707
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1708
1708
|
cache: "no-store"
|
|
1709
1709
|
});
|
|
1710
1710
|
if (!response.ok) {
|
|
@@ -1731,7 +1731,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1731
1731
|
);
|
|
1732
1732
|
const response = await fetch(url, {
|
|
1733
1733
|
method: "GET",
|
|
1734
|
-
headers:
|
|
1734
|
+
headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
|
|
1735
1735
|
cache: "no-store"
|
|
1736
1736
|
});
|
|
1737
1737
|
if (!response.ok) return null;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
deriveAccountSalt,
|
|
4
4
|
useTokenPrices,
|
|
5
5
|
warnRemovedProps
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J46WDSRD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
BodyHeader,
|
|
9
9
|
Button,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
useRpcUrls,
|
|
38
38
|
useStableRpcUrls,
|
|
39
39
|
useTargetTokens
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FXXUIK4E.mjs";
|
|
41
41
|
import {
|
|
42
42
|
NATIVE_TOKEN_ADDRESS,
|
|
43
43
|
getChainIcon,
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkBRYNGLDMcjs = require('./chunk-BRYNGLDM.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/ui/ListRow.tsx
|
|
7
7
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -19,7 +19,7 @@ function ListRow({
|
|
|
19
19
|
...props
|
|
20
20
|
}) {
|
|
21
21
|
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22
|
-
leadingMedia ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading rs-list-row-leading--media", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22
|
+
leadingMedia ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading rs-list-row-leading--media", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.CdnIcon, { src: leadingMedia }) }) : leading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading", children: leading }) : null,
|
|
23
23
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-list-row-body", children: [
|
|
24
24
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-list-row-text", children: [
|
|
25
25
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-title", children: title }),
|
|
@@ -39,7 +39,7 @@ function ListRow({
|
|
|
39
39
|
}
|
|
40
40
|
) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-list-row-meta", children: meta })
|
|
41
41
|
] }),
|
|
42
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-chevron", children: _nullishCoalesce(trailing, () => ( (disabled ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-chevron", children: _nullishCoalesce(trailing, () => ( (disabled ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.ChevronRightIcon, {})))) })
|
|
43
43
|
] });
|
|
44
44
|
if (action) {
|
|
45
45
|
const handleKey = (e) => {
|