@rhinestone/deposit-modal 0.9.0 → 0.9.1

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 (29) hide show
  1. package/dist/{DepositModalReown-6KUAO5ZC.mjs → DepositModalReown-JUJI7UHE.mjs} +5 -5
  2. package/dist/{DepositModalReown-XC5RIU7Z.cjs → DepositModalReown-YQSO4SVY.cjs} +9 -9
  3. package/dist/{chunk-VN4BLZYC.cjs → chunk-6U2H3R3T.cjs} +21 -21
  4. package/dist/{chunk-4WB2FHGC.mjs → chunk-7OQO6JDC.mjs} +3 -3
  5. package/dist/{chunk-LGVJWVSS.mjs → chunk-AYWEWI47.mjs} +2 -2
  6. package/dist/{chunk-T7LGQFP3.cjs → chunk-EAUF7SGM.cjs} +3 -3
  7. package/dist/{chunk-NMIMRASD.cjs → chunk-EEEQZOTJ.cjs} +66 -66
  8. package/dist/{chunk-WYXBY2MQ.mjs → chunk-GYEUZSQP.mjs} +1 -1
  9. package/dist/{chunk-DIX7M3SP.cjs → chunk-ITFRTPGF.cjs} +57 -57
  10. package/dist/{chunk-KKHLNFSA.mjs → chunk-N3OHR3T2.mjs} +58 -99
  11. package/dist/{chunk-E4G5BOZP.mjs → chunk-QGXAAFHU.mjs} +2 -2
  12. package/dist/{chunk-OSI2CFGL.mjs → chunk-QLZ5RZTA.mjs} +1 -1
  13. package/dist/{chunk-PAGMU4RQ.cjs → chunk-SQOEHQNT.cjs} +52 -52
  14. package/dist/{chunk-22RV33LK.cjs → chunk-VQJHYWAE.cjs} +309 -350
  15. package/dist/{chunk-VOGZAZB2.mjs → chunk-WUQZYQRK.mjs} +1 -1
  16. package/dist/{chunk-NEXUCY4B.cjs → chunk-XJE5MRY4.cjs} +1 -1
  17. package/dist/claim.cjs +5 -5
  18. package/dist/claim.mjs +4 -4
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.d.cts +1 -1
  21. package/dist/constants.d.ts +1 -1
  22. package/dist/constants.mjs +1 -1
  23. package/dist/deposit.cjs +6 -6
  24. package/dist/deposit.mjs +5 -5
  25. package/dist/index.cjs +8 -8
  26. package/dist/index.mjs +7 -7
  27. package/dist/withdraw.cjs +5 -5
  28. package/dist/withdraw.mjs +4 -4
  29. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-KKHLNFSA.mjs";
4
- import "./chunk-WYXBY2MQ.mjs";
5
- import "./chunk-LGVJWVSS.mjs";
3
+ } from "./chunk-N3OHR3T2.mjs";
4
+ import "./chunk-GYEUZSQP.mjs";
5
+ import "./chunk-AYWEWI47.mjs";
6
6
  import {
7
7
  isUnsupportedChainSwitchError,
8
8
  rpcUrlFor
9
- } from "./chunk-VOGZAZB2.mjs";
10
- import "./chunk-OSI2CFGL.mjs";
9
+ } from "./chunk-WUQZYQRK.mjs";
10
+ import "./chunk-QLZ5RZTA.mjs";
11
11
  import "./chunk-ILT2PITN.mjs";
12
12
  import {
13
13
  SUPPORTED_CHAINS,
@@ -1,13 +1,13 @@
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 _chunk22RV33LKcjs = require('./chunk-22RV33LK.cjs');
4
- require('./chunk-NMIMRASD.cjs');
5
- require('./chunk-T7LGQFP3.cjs');
3
+ var _chunkVQJHYWAEcjs = require('./chunk-VQJHYWAE.cjs');
4
+ require('./chunk-EEEQZOTJ.cjs');
5
+ require('./chunk-EAUF7SGM.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkVN4BLZYCcjs = require('./chunk-VN4BLZYC.cjs');
10
- require('./chunk-NEXUCY4B.cjs');
9
+ var _chunk6U2H3R3Tcjs = require('./chunk-6U2H3R3T.cjs');
10
+ require('./chunk-XJE5MRY4.cjs');
11
11
  require('./chunk-YEBXUUH3.cjs');
12
12
 
13
13
 
@@ -88,14 +88,14 @@ function buildTransports(rpcUrls) {
88
88
  const transports = {};
89
89
  for (const network of EVM_NETWORKS) {
90
90
  const id = Number(network.id);
91
- transports[id] = _viem.http.call(void 0, _chunkVN4BLZYCcjs.rpcUrlFor.call(void 0, rpcUrls, id));
91
+ transports[id] = _viem.http.call(void 0, _chunk6U2H3R3Tcjs.rpcUrlFor.call(void 0, rpcUrls, id));
92
92
  }
93
93
  return transports;
94
94
  }
95
95
  function getEvmRpcFingerprint(rpcUrls) {
96
96
  return EVM_NETWORKS.map((network) => {
97
97
  const id = Number(network.id);
98
- return `${id}=${_nullishCoalesce(_chunkVN4BLZYCcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
98
+ return `${id}=${_nullishCoalesce(_chunk6U2H3R3Tcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
99
99
  }).join("|");
100
100
  }
101
101
  var cachedAdapter = null;
@@ -189,7 +189,7 @@ function useReownWallet() {
189
189
  await switchChainAsync({ chainId });
190
190
  }
191
191
  } catch (err) {
192
- if (_chunkVN4BLZYCcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
192
+ if (_chunk6U2H3R3Tcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
193
193
  throw new Error(
194
194
  `Switch to ${_chunkH577RJN5cjs.getChainName.call(void 0, chainId)} in your wallet to continue`
195
195
  );
@@ -223,7 +223,7 @@ function DepositModalWithReown(props) {
223
223
  reown.disconnect();
224
224
  }, [reown.disconnect]);
225
225
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
226
- _chunk22RV33LKcjs.DepositModalInner,
226
+ _chunkVQJHYWAEcjs.DepositModalInner,
227
227
  {
228
228
  ...props,
229
229
  reownWallet: reownWithSolana,
@@ -1,6 +1,6 @@
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 _chunkNEXUCY4Bcjs = require('./chunk-NEXUCY4B.cjs');
3
+ var _chunkXJE5MRY4cjs = require('./chunk-XJE5MRY4.cjs');
4
4
 
5
5
 
6
6
 
@@ -913,7 +913,7 @@ function createDepositService(baseUrl, options) {
913
913
  try {
914
914
  const response = await fetch(apiUrl("/qr/tokens"), {
915
915
  method: "GET",
916
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS
916
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS
917
917
  });
918
918
  if (!response.ok) {
919
919
  debugLog(debug, scope, "getTopTokens:unavailable", {
@@ -968,7 +968,7 @@ function createDepositService(baseUrl, options) {
968
968
  });
969
969
  const response = await fetch(url, {
970
970
  method: "POST",
971
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
971
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
972
972
  body: JSON.stringify({ account: params })
973
973
  });
974
974
  if (!response.ok) {
@@ -1001,7 +1001,7 @@ function createDepositService(baseUrl, options) {
1001
1001
  debugLog(debug, scope, "fetchPortfolio:request", { url, address });
1002
1002
  const response = await fetch(url, {
1003
1003
  method: "GET",
1004
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS
1004
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS
1005
1005
  });
1006
1006
  if (!response.ok) {
1007
1007
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1048,7 +1048,7 @@ function createDepositService(baseUrl, options) {
1048
1048
  debugLog(debug, scope, "fetchSolanaPortfolio:request", { url, address });
1049
1049
  const response = await fetch(url, {
1050
1050
  method: "GET",
1051
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS
1051
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS
1052
1052
  });
1053
1053
  if (!response.ok) {
1054
1054
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1078,7 +1078,7 @@ function createDepositService(baseUrl, options) {
1078
1078
  debugLog(debug, scope, "checkAccount:request", { url, address });
1079
1079
  const response = await fetch(url, {
1080
1080
  method: "GET",
1081
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS
1081
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS
1082
1082
  });
1083
1083
  if (!response.ok) {
1084
1084
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1113,7 +1113,7 @@ function createDepositService(baseUrl, options) {
1113
1113
  );
1114
1114
  const response = await fetch(url, {
1115
1115
  method: "GET",
1116
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1116
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1117
1117
  cache: "no-store"
1118
1118
  });
1119
1119
  if (!response.ok) {
@@ -1141,7 +1141,7 @@ function createDepositService(baseUrl, options) {
1141
1141
  );
1142
1142
  const response = await fetch(url, {
1143
1143
  method: "GET",
1144
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1144
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1145
1145
  cache: "no-store"
1146
1146
  });
1147
1147
  if (!response.ok) {
@@ -1165,7 +1165,7 @@ function createDepositService(baseUrl, options) {
1165
1165
  );
1166
1166
  const response = await fetch(url, {
1167
1167
  method: "GET",
1168
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1168
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1169
1169
  cache: "no-store"
1170
1170
  });
1171
1171
  if (!response.ok) {
@@ -1196,7 +1196,7 @@ function createDepositService(baseUrl, options) {
1196
1196
  });
1197
1197
  const response = await fetch(url, {
1198
1198
  method: "POST",
1199
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1199
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1200
1200
  body: JSON.stringify({
1201
1201
  depositWallet,
1202
1202
  owner,
@@ -1238,7 +1238,7 @@ function createDepositService(baseUrl, options) {
1238
1238
  });
1239
1239
  const response = await fetch(url, {
1240
1240
  method: "GET",
1241
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1241
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1242
1242
  cache: "no-store"
1243
1243
  });
1244
1244
  if (!response.ok) {
@@ -1291,7 +1291,7 @@ function createDepositService(baseUrl, options) {
1291
1291
  });
1292
1292
  const response = await fetch(url, {
1293
1293
  method: "GET",
1294
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1294
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1295
1295
  cache: "no-store"
1296
1296
  });
1297
1297
  if (!response.ok) {
@@ -1336,7 +1336,7 @@ function createDepositService(baseUrl, options) {
1336
1336
  try {
1337
1337
  const response = await fetch(url, {
1338
1338
  method: "POST",
1339
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1339
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1340
1340
  body: JSON.stringify(body),
1341
1341
  cache: "no-store"
1342
1342
  });
@@ -1373,7 +1373,7 @@ function createDepositService(baseUrl, options) {
1373
1373
  try {
1374
1374
  const response = await fetch(url, {
1375
1375
  method: "GET",
1376
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1376
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1377
1377
  cache: "no-store"
1378
1378
  });
1379
1379
  if (!response.ok) {
@@ -1403,7 +1403,7 @@ function createDepositService(baseUrl, options) {
1403
1403
  try {
1404
1404
  const response = await fetch(url, {
1405
1405
  method: "GET",
1406
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1406
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1407
1407
  cache: "no-store"
1408
1408
  });
1409
1409
  if (!response.ok) {
@@ -1428,7 +1428,7 @@ function createDepositService(baseUrl, options) {
1428
1428
  });
1429
1429
  const response = await fetch(url, {
1430
1430
  method: "POST",
1431
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1431
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1432
1432
  body: JSON.stringify(params)
1433
1433
  });
1434
1434
  if (!response.ok) {
@@ -1460,7 +1460,7 @@ function createDepositService(baseUrl, options) {
1460
1460
  });
1461
1461
  const response = await fetch(url, {
1462
1462
  method: "POST",
1463
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1463
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1464
1464
  body: JSON.stringify(params)
1465
1465
  });
1466
1466
  if (!response.ok) {
@@ -1497,7 +1497,7 @@ function createDepositService(baseUrl, options) {
1497
1497
  debugLog(debug, scope, "getSwappedConnectExchanges:request");
1498
1498
  const response = await fetch(url, {
1499
1499
  method: "GET",
1500
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1500
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1501
1501
  cache: "no-store"
1502
1502
  });
1503
1503
  if (!response.ok) {
@@ -1550,7 +1550,7 @@ function createDepositService(baseUrl, options) {
1550
1550
  try {
1551
1551
  const response = await fetch(url, {
1552
1552
  method: "GET",
1553
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1553
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1554
1554
  cache: "no-store"
1555
1555
  });
1556
1556
  if (!response.ok) {
@@ -1626,7 +1626,7 @@ function createDepositService(baseUrl, options) {
1626
1626
  try {
1627
1627
  const response = await fetch(url, {
1628
1628
  method: "GET",
1629
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1629
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1630
1630
  cache: "no-store"
1631
1631
  });
1632
1632
  if (!response.ok) {
@@ -1653,7 +1653,7 @@ function createDepositService(baseUrl, options) {
1653
1653
  );
1654
1654
  const response = await fetch(url, {
1655
1655
  method: "GET",
1656
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
1656
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
1657
1657
  cache: "no-store"
1658
1658
  });
1659
1659
  if (!response.ok) return null;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ListRow
3
- } from "./chunk-LGVJWVSS.mjs";
3
+ } from "./chunk-AYWEWI47.mjs";
4
4
  import {
5
5
  AlertTriangleIcon,
6
6
  BodyHeader,
@@ -26,10 +26,10 @@ import {
26
26
  formatUserError,
27
27
  useLatestRef,
28
28
  useStableRpcUrls
29
- } from "./chunk-VOGZAZB2.mjs";
29
+ } from "./chunk-WUQZYQRK.mjs";
30
30
  import {
31
31
  SERVICE_HEADERS
32
- } from "./chunk-OSI2CFGL.mjs";
32
+ } from "./chunk-QLZ5RZTA.mjs";
33
33
  import {
34
34
  getChainIcon,
35
35
  getChainName,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CdnIcon,
3
3
  ChevronRightIcon
4
- } from "./chunk-VOGZAZB2.mjs";
4
+ } from "./chunk-WUQZYQRK.mjs";
5
5
 
6
6
  // src/components/ui/ListRow.tsx
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -39,7 +39,7 @@ function ListRow({
39
39
  }
40
40
  ) : meta && /* @__PURE__ */ jsx("div", { className: "rs-list-row-meta", children: meta })
41
41
  ] }),
42
- /* @__PURE__ */ jsx("span", { className: "rs-list-row-chevron", children: trailing ?? /* @__PURE__ */ jsx(ChevronRightIcon, {}) })
42
+ /* @__PURE__ */ jsx("span", { className: "rs-list-row-chevron", children: trailing ?? (disabled ? null : /* @__PURE__ */ jsx(ChevronRightIcon, {})) })
43
43
  ] });
44
44
  if (action) {
45
45
  const handleKey = (e) => {
@@ -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 _chunkVN4BLZYCcjs = require('./chunk-VN4BLZYC.cjs');
4
+ var _chunk6U2H3R3Tcjs = require('./chunk-6U2H3R3T.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, _chunkVN4BLZYCcjs.CdnIcon, { src: leadingMedia }) }) : leading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading", children: leading }) : null,
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, _chunk6U2H3R3Tcjs.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, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ChevronRightIcon, {}))) })
42
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-chevron", children: _nullishCoalesce(trailing, () => ( (disabled ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.ChevronRightIcon, {})))) })
43
43
  ] });
44
44
  if (action) {
45
45
  const handleKey = (e) => {