@rhinestone/deposit-modal 0.12.1 → 0.13.0

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 (65) hide show
  1. package/README.md +30 -16
  2. package/dist/ClaimModal-CREZO27I.mjs +11 -0
  3. package/dist/ClaimModal-JRIA32U2.cjs +11 -0
  4. package/dist/{DepositModalReown-SXAXHYTN.mjs → DepositModalReown-3H75G3XQ.mjs} +44 -22
  5. package/dist/{DepositModalReown-CH6FUTCR.cjs → DepositModalReown-YNNHLAV2.cjs} +57 -35
  6. package/dist/{QRCode-WUC652SH.mjs → QRCode-5RGIZZHL.mjs} +1 -1
  7. package/dist/{QRCode-5DXFNKI2.cjs → QRCode-JKXG4RHN.cjs} +2 -2
  8. package/dist/WithdrawModal-NVRX44IZ.mjs +10 -0
  9. package/dist/WithdrawModal-YYSBPCJJ.cjs +10 -0
  10. package/dist/{chunk-2BOEUV6B.cjs → chunk-2G2EIN4A.cjs} +1510 -896
  11. package/dist/{chunk-O7BCVQ6L.cjs → chunk-4KCSH4T3.cjs} +157 -199
  12. package/dist/{chunk-UGK4JRK6.cjs → chunk-5NUIKYSF.cjs} +83 -209
  13. package/dist/{chunk-ZLCY33FQ.cjs → chunk-7N77GIP4.cjs} +102 -88
  14. package/dist/{chunk-PVWZN66D.mjs → chunk-COCBCQQC.mjs} +121 -86
  15. package/dist/chunk-CVGNCUVU.cjs +154 -0
  16. package/dist/{chunk-KPWB2JAX.mjs → chunk-DSIZNRWA.mjs} +1540 -926
  17. package/dist/{chunk-75DVGSAX.cjs → chunk-DW2EQA2U.cjs} +6 -3
  18. package/dist/{chunk-2K44IE3V.mjs → chunk-EOMT5LKX.mjs} +374 -151
  19. package/dist/chunk-FZ5FZFIG.mjs +31 -0
  20. package/dist/chunk-GACIGCSN.cjs +31 -0
  21. package/dist/{chunk-TYBMAUGH.cjs → chunk-HOGZKHHY.cjs} +3 -3
  22. package/dist/{chunk-TQWEGW3A.mjs → chunk-LTMMETAB.mjs} +29 -15
  23. package/dist/{chunk-O4AXBFHU.mjs → chunk-OLCD75JK.mjs} +20 -146
  24. package/dist/{chunk-FKHPVLJY.cjs → chunk-RAADLTSW.cjs} +240 -205
  25. package/dist/{chunk-4ZXQPFNU.mjs → chunk-RN5VKWI6.mjs} +4 -1
  26. package/dist/{chunk-3STTWRAN.mjs → chunk-VUATPOWJ.mjs} +147 -189
  27. package/dist/{chunk-NHGFU3WC.mjs → chunk-XYJFEN5D.mjs} +1 -1
  28. package/dist/chunk-YREVFB64.mjs +154 -0
  29. package/dist/{chunk-65MLWUQD.cjs → chunk-ZMT4ATHR.cjs} +437 -214
  30. package/dist/claim.cjs +7 -6
  31. package/dist/claim.d.cts +11 -3
  32. package/dist/claim.d.ts +11 -3
  33. package/dist/claim.mjs +6 -5
  34. package/dist/{constants-FuzG3h4m.d.cts → constants-DBrWhJWE.d.cts} +12 -7
  35. package/dist/{constants-FuzG3h4m.d.ts → constants-DBrWhJWE.d.ts} +12 -7
  36. package/dist/constants.cjs +3 -9
  37. package/dist/constants.d.cts +2 -3
  38. package/dist/constants.d.ts +2 -3
  39. package/dist/constants.mjs +4 -10
  40. package/dist/deposit.cjs +8 -8
  41. package/dist/deposit.d.cts +2 -2
  42. package/dist/deposit.d.ts +2 -2
  43. package/dist/deposit.mjs +7 -7
  44. package/dist/embed.cjs +1268 -0
  45. package/dist/embed.d.cts +177 -0
  46. package/dist/embed.d.ts +177 -0
  47. package/dist/embed.mjs +1268 -0
  48. package/dist/index.cjs +11 -16
  49. package/dist/index.d.cts +3 -3
  50. package/dist/index.d.ts +3 -3
  51. package/dist/index.mjs +14 -19
  52. package/dist/modal-ui-state-OD1RmKkK.d.cts +30 -0
  53. package/dist/modal-ui-state-OD1RmKkK.d.ts +30 -0
  54. package/dist/polymarket.cjs +17 -7
  55. package/dist/polymarket.mjs +13 -3
  56. package/dist/styles.css +133 -98
  57. package/dist/{types-oFblf65g.d.ts → types-B89I8_8H.d.ts} +27 -1
  58. package/dist/{types-BO4iP6fG.d.cts → types-nnDR4tqA.d.cts} +27 -1
  59. package/dist/withdraw.cjs +6 -6
  60. package/dist/withdraw.d.cts +11 -3
  61. package/dist/withdraw.d.ts +11 -3
  62. package/dist/withdraw.mjs +5 -5
  63. package/package.json +33 -1
  64. package/dist/chunk-DMYA7U53.cjs +0 -11
  65. package/dist/chunk-O2TQLD4I.mjs +0 -11
package/dist/index.cjs CHANGED
@@ -1,17 +1,18 @@
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; } }
2
2
 
3
- var _chunk2BOEUV6Bcjs = require('./chunk-2BOEUV6B.cjs');
3
+ var _chunk7N77GIP4cjs = require('./chunk-7N77GIP4.cjs');
4
4
 
5
5
 
6
- var _chunkZLCY33FQcjs = require('./chunk-ZLCY33FQ.cjs');
7
- require('./chunk-FKHPVLJY.cjs');
6
+ var _chunk5NUIKYSFcjs = require('./chunk-5NUIKYSF.cjs');
8
7
 
9
8
 
10
- var _chunkUGK4JRK6cjs = require('./chunk-UGK4JRK6.cjs');
11
- require('./chunk-TYBMAUGH.cjs');
12
- require('./chunk-65MLWUQD.cjs');
13
- require('./chunk-DMYA7U53.cjs');
14
- require('./chunk-75DVGSAX.cjs');
9
+ var _chunk2G2EIN4Acjs = require('./chunk-2G2EIN4A.cjs');
10
+ require('./chunk-RAADLTSW.cjs');
11
+ require('./chunk-CVGNCUVU.cjs');
12
+ require('./chunk-HOGZKHHY.cjs');
13
+ require('./chunk-ZMT4ATHR.cjs');
14
+ require('./chunk-GACIGCSN.cjs');
15
+ require('./chunk-DW2EQA2U.cjs');
15
16
 
16
17
 
17
18
 
@@ -41,10 +42,7 @@ require('./chunk-75DVGSAX.cjs');
41
42
 
42
43
 
43
44
 
44
-
45
-
46
-
47
- var _chunkO7BCVQ6Lcjs = require('./chunk-O7BCVQ6L.cjs');
45
+ var _chunk4KCSH4T3cjs = require('./chunk-4KCSH4T3.cjs');
48
46
 
49
47
  // src/core/reown-disconnect.ts
50
48
  async function disconnectWallet() {
@@ -98,7 +96,4 @@ async function disconnectWallet() {
98
96
 
99
97
 
100
98
 
101
-
102
-
103
-
104
- exports.CHAIN_BY_ID = _chunkO7BCVQ6Lcjs.CHAIN_BY_ID; exports.ClaimModal = _chunkUGK4JRK6cjs.ClaimModal; exports.DepositModal = _chunk2BOEUV6Bcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkO7BCVQ6Lcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkO7BCVQ6Lcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkO7BCVQ6Lcjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkO7BCVQ6Lcjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkO7BCVQ6Lcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkO7BCVQ6Lcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkO7BCVQ6Lcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkZLCY33FQcjs.WithdrawModal; exports.chainRegistry = _chunkO7BCVQ6Lcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkO7BCVQ6Lcjs.findChainIdForToken; exports.getChainBadge = _chunkO7BCVQ6Lcjs.getChainBadge; exports.getChainIcon = _chunkO7BCVQ6Lcjs.getChainIcon; exports.getChainId = _chunkO7BCVQ6Lcjs.getChainId; exports.getChainName = _chunkO7BCVQ6Lcjs.getChainName; exports.getChainObject = _chunkO7BCVQ6Lcjs.getChainObject; exports.getExplorerName = _chunkO7BCVQ6Lcjs.getExplorerName; exports.getExplorerTxUrl = _chunkO7BCVQ6Lcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkO7BCVQ6Lcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkO7BCVQ6Lcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkO7BCVQ6Lcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkO7BCVQ6Lcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkO7BCVQ6Lcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkO7BCVQ6Lcjs.getTokenAddress; exports.getTokenDecimals = _chunkO7BCVQ6Lcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkO7BCVQ6Lcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkO7BCVQ6Lcjs.getTokenIcon; exports.getTokenSymbol = _chunkO7BCVQ6Lcjs.getTokenSymbol; exports.getUsdcAddress = _chunkO7BCVQ6Lcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkO7BCVQ6Lcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkO7BCVQ6Lcjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunkO7BCVQ6Lcjs.tokenIconUrl;
99
+ exports.ClaimModal = _chunk5NUIKYSFcjs.ClaimModal; exports.DepositModal = _chunk2G2EIN4Acjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunk4KCSH4T3cjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunk4KCSH4T3cjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunk4KCSH4T3cjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunk4KCSH4T3cjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunk4KCSH4T3cjs.NATIVE_TOKEN_ADDRESS; exports.SUPPORTED_CHAIN_IDS = _chunk4KCSH4T3cjs.SUPPORTED_CHAIN_IDS; exports.WithdrawModal = _chunk7N77GIP4cjs.WithdrawModal; exports.chainRegistry = _chunk4KCSH4T3cjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunk4KCSH4T3cjs.findChainIdForToken; exports.getChainBadge = _chunk4KCSH4T3cjs.getChainBadge; exports.getChainIcon = _chunk4KCSH4T3cjs.getChainIcon; exports.getChainId = _chunk4KCSH4T3cjs.getChainId; exports.getChainName = _chunk4KCSH4T3cjs.getChainName; exports.getExplorerName = _chunk4KCSH4T3cjs.getExplorerName; exports.getExplorerTxUrl = _chunk4KCSH4T3cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunk4KCSH4T3cjs.getExplorerUrl; exports.getSupportedChainIds = _chunk4KCSH4T3cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunk4KCSH4T3cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunk4KCSH4T3cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunk4KCSH4T3cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunk4KCSH4T3cjs.getTokenAddress; exports.getTokenDecimals = _chunk4KCSH4T3cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunk4KCSH4T3cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunk4KCSH4T3cjs.getTokenIcon; exports.getTokenSymbol = _chunk4KCSH4T3cjs.getTokenSymbol; exports.getUsdcAddress = _chunk4KCSH4T3cjs.getUsdcAddress; exports.getUsdcDecimals = _chunk4KCSH4T3cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunk4KCSH4T3cjs.isSupportedTokenAddressForChain; exports.tokenIconUrl = _chunk4KCSH4T3cjs.tokenIconUrl;
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
3
  export { ClaimModal } from './claim.cjs';
4
- export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-BO4iP6fG.cjs';
4
+ export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-nnDR4tqA.cjs';
5
5
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
6
- export { C as CHAIN_BY_ID, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, a as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, b as getChainIcon, d as getChainId, e as getChainName, h as getChainObject, i as getExplorerName, j as getExplorerTxUrl, k as getExplorerUrl, l as getSupportedChainIds, m as getSupportedTargetTokens, n as getSupportedTokenSymbolsForChain, o as getTargetTokenSymbolsForChain, p as getTokenAddress, q as getTokenDecimals, r as getTokenDecimalsByAddress, s as getTokenIcon, t as getTokenSymbol, u as getUsdcAddress, v as getUsdcDecimals, w as isSupportedTokenAddressForChain, x as tokenIconUrl } from './constants-FuzG3h4m.cjs';
6
+ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-DBrWhJWE.cjs';
7
7
  export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, T as TargetChain } from './caip-D8aRWdEY.cjs';
8
8
  import 'react';
9
+ import './modal-ui-state-OD1RmKkK.cjs';
9
10
  import 'viem';
10
- import 'viem/chains';
11
11
 
12
12
  /**
13
13
  * Disconnects a wallet connected through the modal's own Reown/AppKit session.
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
3
  export { ClaimModal } from './claim.js';
4
- export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-oFblf65g.js';
4
+ export { A as AssetMigrationsConfig, a as AssetOption, C as ChainId, b as ClaimAnalyticsEvent, c as ClaimLifecycleEvent, d as ClaimModalProps, e as ConnectedEventData, D as DepositAnalyticsEvent, f as DepositCompleteEventData, g as DepositFailedEventData, h as DepositLifecycleEvent, i as DepositModalProps, j as DepositModalTheme, k as DepositModalUIConfig, l as DepositSubmittedEventData, E as ErrorEventData, F as FiatMethodsConfig, M as ModalAnalyticsEvent, O as OutputTokenRule, R as RpcUrlMap, W as WithdrawAnalyticsEvent, m as WithdrawCompleteEventData, n as WithdrawFailedEventData, o as WithdrawLifecycleEvent, p as WithdrawModalProps, q as WithdrawSubmittedEventData, r as WithdrawTransferRequest } from './types-B89I8_8H.js';
5
5
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
6
- export { C as CHAIN_BY_ID, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, a as SUPPORTED_CHAINS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, b as getChainIcon, d as getChainId, e as getChainName, h as getChainObject, i as getExplorerName, j as getExplorerTxUrl, k as getExplorerUrl, l as getSupportedChainIds, m as getSupportedTargetTokens, n as getSupportedTokenSymbolsForChain, o as getTargetTokenSymbolsForChain, p as getTokenAddress, q as getTokenDecimals, r as getTokenDecimalsByAddress, s as getTokenIcon, t as getTokenSymbol, u as getUsdcAddress, v as getUsdcDecimals, w as isSupportedTokenAddressForChain, x as tokenIconUrl } from './constants-FuzG3h4m.js';
6
+ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, c as chainRegistry, f as findChainIdForToken, g as getChainBadge, a as getChainIcon, b as getChainId, d as getChainName, e as getExplorerName, h as getExplorerTxUrl, i as getExplorerUrl, j as getSupportedChainIds, k as getSupportedTargetTokens, l as getSupportedTokenSymbolsForChain, m as getTargetTokenSymbolsForChain, n as getTokenAddress, o as getTokenDecimals, p as getTokenDecimalsByAddress, q as getTokenIcon, r as getTokenSymbol, s as getUsdcAddress, t as getUsdcDecimals, u as isSupportedTokenAddressForChain, v as tokenIconUrl } from './constants-DBrWhJWE.js';
7
7
  export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, T as TargetChain } from './caip-D8aRWdEY.js';
8
8
  import 'react';
9
+ import './modal-ui-state-OD1RmKkK.js';
9
10
  import 'viem';
10
- import 'viem/chains';
11
11
 
12
12
  /**
13
13
  * Disconnects a wallet connected through the modal's own Reown/AppKit session.
package/dist/index.mjs CHANGED
@@ -1,33 +1,31 @@
1
- import {
2
- DepositModal
3
- } from "./chunk-KPWB2JAX.mjs";
4
1
  import {
5
2
  WithdrawModal
6
- } from "./chunk-TQWEGW3A.mjs";
7
- import "./chunk-PVWZN66D.mjs";
3
+ } from "./chunk-LTMMETAB.mjs";
8
4
  import {
9
5
  ClaimModal
10
- } from "./chunk-O4AXBFHU.mjs";
11
- import "./chunk-NHGFU3WC.mjs";
12
- import "./chunk-2K44IE3V.mjs";
13
- import "./chunk-O2TQLD4I.mjs";
14
- import "./chunk-4ZXQPFNU.mjs";
6
+ } from "./chunk-OLCD75JK.mjs";
7
+ import {
8
+ DepositModal
9
+ } from "./chunk-DSIZNRWA.mjs";
10
+ import "./chunk-COCBCQQC.mjs";
11
+ import "./chunk-YREVFB64.mjs";
12
+ import "./chunk-XYJFEN5D.mjs";
13
+ import "./chunk-EOMT5LKX.mjs";
14
+ import "./chunk-FZ5FZFIG.mjs";
15
+ import "./chunk-RN5VKWI6.mjs";
15
16
  import {
16
- CHAIN_BY_ID,
17
17
  HYPERCORE_CHAIN_ID,
18
18
  HYPERCORE_SPOT_CAIP2,
19
19
  HYPERCORE_USDC_ADDRESS,
20
20
  HYPERCORE_USDT0_ADDRESS,
21
21
  NATIVE_TOKEN_ADDRESS,
22
- SOURCE_CHAINS,
23
- SUPPORTED_CHAINS,
22
+ SUPPORTED_CHAIN_IDS,
24
23
  chainRegistry,
25
24
  findChainIdForToken,
26
25
  getChainBadge,
27
26
  getChainIcon,
28
27
  getChainId,
29
28
  getChainName,
30
- getChainObject,
31
29
  getExplorerName,
32
30
  getExplorerTxUrl,
33
31
  getExplorerUrl,
@@ -44,7 +42,7 @@ import {
44
42
  getUsdcDecimals,
45
43
  isSupportedTokenAddressForChain,
46
44
  tokenIconUrl
47
- } from "./chunk-3STTWRAN.mjs";
45
+ } from "./chunk-VUATPOWJ.mjs";
48
46
 
49
47
  // src/core/reown-disconnect.ts
50
48
  async function disconnectWallet() {
@@ -66,7 +64,6 @@ async function disconnectWallet() {
66
64
  await modal.disconnect();
67
65
  }
68
66
  export {
69
- CHAIN_BY_ID,
70
67
  ClaimModal,
71
68
  DepositModal,
72
69
  HYPERCORE_CHAIN_ID,
@@ -74,8 +71,7 @@ export {
74
71
  HYPERCORE_USDC_ADDRESS,
75
72
  HYPERCORE_USDT0_ADDRESS,
76
73
  NATIVE_TOKEN_ADDRESS,
77
- SOURCE_CHAINS,
78
- SUPPORTED_CHAINS,
74
+ SUPPORTED_CHAIN_IDS,
79
75
  WithdrawModal,
80
76
  chainRegistry,
81
77
  disconnectWallet,
@@ -84,7 +80,6 @@ export {
84
80
  getChainIcon,
85
81
  getChainId,
86
82
  getChainName,
87
- getChainObject,
88
83
  getExplorerName,
89
84
  getExplorerTxUrl,
90
85
  getExplorerUrl,
@@ -0,0 +1,30 @@
1
+ /**
2
+ * What a flow is showing, for a surface that draws its own chrome around it.
3
+ *
4
+ * Every modal reports the same shape, because the thing consuming it — a
5
+ * native sheet that owns dismissal — needs the same three answers whichever
6
+ * product is running: what screen is this, can you go back, and would closing
7
+ * now lose something.
8
+ *
9
+ * Its own module so the withdraw and claim modals can report it without
10
+ * importing anything from the deposit one. They are separate chunks on
11
+ * purpose.
12
+ */
13
+ interface ModalUiState {
14
+ /** The flow's own step name. Stable enough for a sheet title or telemetry;
15
+ * never something to branch payment logic on. */
16
+ screen: string;
17
+ /** The page's back action, or absent when it has nowhere to go. */
18
+ back?: () => void;
19
+ /**
20
+ * The user has committed and the flow is mid-submit.
21
+ *
22
+ * Its own field rather than a screen, because the screen does not change:
23
+ * the gasless deposit path hands the signature to the backend and waits
24
+ * there, with the wallet request already cleared, and this page the only
25
+ * thing tracking a deposit that may already be processing.
26
+ */
27
+ submitting: boolean;
28
+ }
29
+
30
+ export type { ModalUiState as M };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * What a flow is showing, for a surface that draws its own chrome around it.
3
+ *
4
+ * Every modal reports the same shape, because the thing consuming it — a
5
+ * native sheet that owns dismissal — needs the same three answers whichever
6
+ * product is running: what screen is this, can you go back, and would closing
7
+ * now lose something.
8
+ *
9
+ * Its own module so the withdraw and claim modals can report it without
10
+ * importing anything from the deposit one. They are separate chunks on
11
+ * purpose.
12
+ */
13
+ interface ModalUiState {
14
+ /** The flow's own step name. Stable enough for a sheet title or telemetry;
15
+ * never something to branch payment logic on. */
16
+ screen: string;
17
+ /** The page's back action, or absent when it has nowhere to go. */
18
+ back?: () => void;
19
+ /**
20
+ * The user has committed and the flow is mid-submit.
21
+ *
22
+ * Its own field rather than a screen, because the screen does not change:
23
+ * the gasless deposit path hands the signature to the backend and waits
24
+ * there, with the wallet request already cleared, and this page the only
25
+ * thing tracking a deposit that may already be processing.
26
+ */
27
+ submitting: boolean;
28
+ }
29
+
30
+ export type { ModalUiState as M };
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk75DVGSAXcjs = require('./chunk-75DVGSAX.cjs');
6
- require('./chunk-O7BCVQ6L.cjs');
5
+ var _chunkDW2EQA2Ucjs = require('./chunk-DW2EQA2U.cjs');
6
+ require('./chunk-4KCSH4T3.cjs');
7
7
 
8
8
  // src/core/dapp-imports/polymarket/account.ts
9
9
 
@@ -12,8 +12,8 @@ require('./chunk-O7BCVQ6L.cjs');
12
12
 
13
13
 
14
14
 
15
+
15
16
  var _viem = require('viem');
16
- var _chains = require('viem/chains');
17
17
  async function getPolymarketAccount(params) {
18
18
  const { rpcUrl, signal } = params;
19
19
  if (typeof params.eoa !== "string" || !_viem.isAddress.call(void 0, params.eoa)) {
@@ -22,12 +22,12 @@ async function getPolymarketAccount(params) {
22
22
  );
23
23
  }
24
24
  const eoa = _viem.getAddress.call(void 0, params.eoa);
25
- const proxyWallet = await _chunk75DVGSAXcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
25
+ const proxyWallet = await _chunkDW2EQA2Ucjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
26
26
  if (!proxyWallet) return null;
27
27
  throwIfAborted(signal);
28
28
  let balances = { pusd: 0n, usdce: 0n };
29
29
  try {
30
- balances = await _chunk75DVGSAXcjs.readPolymarketBalances.call(void 0, {
30
+ balances = await _chunkDW2EQA2Ucjs.readPolymarketBalances.call(void 0, {
31
31
  publicClient: polygonClient(rpcUrl),
32
32
  proxyWallet
33
33
  });
@@ -39,7 +39,7 @@ async function getPolymarketAccount(params) {
39
39
  return {
40
40
  eoa,
41
41
  proxyWallet,
42
- chainId: _chunk75DVGSAXcjs.POLYMARKET_POLYGON_CHAIN_ID,
42
+ chainId: _chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID,
43
43
  pusd,
44
44
  usdce,
45
45
  totalUsd: pusd.usd + usdce.usd
@@ -50,8 +50,18 @@ function toTokenBalance(raw) {
50
50
  const usd = Number(formatted);
51
51
  return { raw, formatted, usd: Number.isFinite(usd) ? usd : 0 };
52
52
  }
53
+ var polygon = _viem.defineChain.call(void 0, {
54
+ id: _chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID,
55
+ name: "Polygon",
56
+ nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 },
57
+ // Verified to answer `eth_chainId` with 137. `polygon-rpc.com`, the obvious
58
+ // choice, returns 401 "tenant disabled" to everyone — and the failure would
59
+ // reach a caller as an empty balance rather than as an error, since the read
60
+ // degrades to zeros on purpose.
61
+ rpcUrls: { default: { http: ["https://polygon.drpc.org"] } }
62
+ });
53
63
  function polygonClient(rpcUrl) {
54
- return _viem.createPublicClient.call(void 0, { chain: _chains.polygon, transport: _viem.http.call(void 0, rpcUrl) });
64
+ return _viem.createPublicClient.call(void 0, { chain: polygon, transport: _viem.http.call(void 0, rpcUrl) });
55
65
  }
56
66
  function throwIfAborted(signal) {
57
67
  if (_optionalChain([signal, 'optionalAccess', _ => _.aborted])) {
@@ -2,18 +2,18 @@ import {
2
2
  POLYMARKET_POLYGON_CHAIN_ID,
3
3
  fetchPolymarketProxyWallet,
4
4
  readPolymarketBalances
5
- } from "./chunk-4ZXQPFNU.mjs";
6
- import "./chunk-3STTWRAN.mjs";
5
+ } from "./chunk-RN5VKWI6.mjs";
6
+ import "./chunk-VUATPOWJ.mjs";
7
7
 
8
8
  // src/core/dapp-imports/polymarket/account.ts
9
9
  import {
10
10
  createPublicClient,
11
+ defineChain,
11
12
  formatUnits,
12
13
  getAddress,
13
14
  http,
14
15
  isAddress
15
16
  } from "viem";
16
- import { polygon } from "viem/chains";
17
17
  async function getPolymarketAccount(params) {
18
18
  const { rpcUrl, signal } = params;
19
19
  if (typeof params.eoa !== "string" || !isAddress(params.eoa)) {
@@ -50,6 +50,16 @@ function toTokenBalance(raw) {
50
50
  const usd = Number(formatted);
51
51
  return { raw, formatted, usd: Number.isFinite(usd) ? usd : 0 };
52
52
  }
53
+ var polygon = defineChain({
54
+ id: POLYMARKET_POLYGON_CHAIN_ID,
55
+ name: "Polygon",
56
+ nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 },
57
+ // Verified to answer `eth_chainId` with 137. `polygon-rpc.com`, the obvious
58
+ // choice, returns 401 "tenant disabled" to everyone — and the failure would
59
+ // reach a caller as an empty balance rather than as an error, since the read
60
+ // degrades to zeros on purpose.
61
+ rpcUrls: { default: { http: ["https://polygon.drpc.org"] } }
62
+ });
53
63
  function polygonClient(rpcUrl) {
54
64
  return createPublicClient({ chain: polygon, transport: http(rpcUrl) });
55
65
  }
package/dist/styles.css CHANGED
@@ -154,6 +154,12 @@
154
154
  line-height: 1.5;
155
155
  color: var(--rs-foreground);
156
156
  background-color: var(--rs-background);
157
+ /* The dark block below declares its own. Naming light here too stops a host
158
+ page whose own `color-scheme` is dark from rendering dark form controls and
159
+ scrollbars inside a light modal, and tells an Android WebView that allows
160
+ algorithmic darkening that this content states its own scheme rather than
161
+ needing one applied over it. */
162
+ color-scheme: light;
157
163
  -webkit-font-smoothing: antialiased;
158
164
  -moz-osx-font-smoothing: grayscale;
159
165
  position: relative;
@@ -335,6 +341,15 @@
335
341
  border-radius 240ms cubic-bezier(0.22, 1, 0.36, 1);
336
342
  }
337
343
 
344
+ /* The shell takes focus on open so the dialog is announced and Tab starts
345
+ inside it. It is a container, not a control, so the UA ring would outline
346
+ the whole modal and read as if the user had selected it. Keyboard users
347
+ lose nothing: the first Tab lands on a real control, which rings normally. */
348
+ .rs-modal-content:focus,
349
+ .rs-modal-content:focus-visible {
350
+ outline: none;
351
+ }
352
+
338
353
  .rs-modal-content[data-theme="dark"] {
339
354
  --rs-background: #0a0a0a;
340
355
  --rs-border: #18181b;
@@ -3195,110 +3210,29 @@
3195
3210
  color: var(--rs-icon-secondary);
3196
3211
  }
3197
3212
 
3198
- /* Price impact accordion — sits at the bottom of the transfer-crypto
3199
- screen. Header is a thin row with the value + info tooltip + chevron. */
3200
- .rs-price-impact {
3201
- width: 100%;
3202
- display: flex;
3203
- flex-direction: column;
3204
- }
3205
-
3206
- .rs-price-impact-header {
3213
+ /* Copy and the estimate sit on one row: both are things you do WITH the
3214
+ address above, and stacking them made the second read as a footnote. */
3215
+ .rs-deposit-address-actions {
3207
3216
  display: flex;
3208
- align-items: center;
3209
- justify-content: space-between;
3210
- gap: 8px;
3217
+ gap: 4px;
3211
3218
  width: 100%;
3212
- padding: 0;
3213
- background: transparent;
3214
- border: none;
3215
- cursor: pointer;
3216
- font-family: inherit;
3217
- line-height: normal;
3218
- color: var(--rs-muted);
3219
- text-align: left;
3220
- }
3221
-
3222
- .rs-price-impact-header-left {
3223
- display: inline-flex;
3224
- align-items: center;
3225
- gap: 8px;
3226
- }
3227
-
3228
- .rs-price-impact-row-icon {
3229
- display: inline-flex;
3230
- align-items: center;
3231
- justify-content: center;
3232
- width: 16px;
3233
- height: 16px;
3234
- color: var(--rs-icon-secondary);
3235
- flex-shrink: 0;
3236
- }
3237
-
3238
- .rs-price-impact-row-icon svg {
3239
- width: 16px;
3240
- height: 16px;
3241
- }
3242
-
3243
- .rs-price-impact-label {
3244
- font-size: 12px;
3245
- font-weight: 500;
3246
- color: var(--rs-muted);
3247
- }
3248
-
3249
- .rs-price-impact-label strong {
3250
- color: var(--rs-muted);
3251
- font-weight: 500;
3252
- }
3253
-
3254
- .rs-price-impact-info {
3255
- display: inline-flex;
3256
- align-items: center;
3257
- justify-content: center;
3258
- color: var(--rs-muted);
3259
3219
  }
3260
3220
 
3261
- .rs-price-impact-info .rs-tooltip-trigger svg {
3262
- width: 16px;
3263
- height: 16px;
3264
- display: block;
3221
+ .rs-deposit-address-actions > * {
3222
+ flex: 1;
3265
3223
  }
3266
3224
 
3267
- .rs-price-impact-chevron {
3268
- width: 16px;
3269
- height: 16px;
3225
+ /* Secondary of the pair — same shape as Copy, quieter, so the address stays
3226
+ the screen's subject. */
3227
+ .rs-deposit-address-review {
3270
3228
  color: var(--rs-muted);
3271
- flex-shrink: 0;
3272
- transition: transform 0.2s ease;
3273
- }
3274
-
3275
- .rs-price-impact--open .rs-price-impact-chevron {
3276
- transform: rotate(180deg);
3277
3229
  }
3278
3230
 
3279
- .rs-price-impact-panel {
3280
- display: grid;
3281
- grid-template-rows: 0fr;
3282
- transition: grid-template-rows 0.25s ease;
3283
- }
3284
-
3285
- .rs-price-impact--open .rs-price-impact-panel {
3286
- grid-template-rows: 1fr;
3231
+ .rs-deposit-address-review:hover {
3232
+ color: var(--rs-foreground);
3287
3233
  }
3288
3234
 
3289
- .rs-price-impact-panel-inner {
3290
- overflow: hidden;
3291
- min-height: 0;
3292
- }
3293
3235
 
3294
- .rs-price-impact-row {
3295
- display: flex;
3296
- align-items: center;
3297
- gap: 8px;
3298
- padding-top: 8px;
3299
- font-size: 12px;
3300
- color: var(--rs-muted);
3301
- }
3302
3236
 
3303
3237
  /* =============================================================================
3304
3238
  Tooltip
@@ -5225,7 +5159,7 @@
5225
5159
  This base rule forces light; because it wins over the `color-scheme: dark`
5226
5160
  inherited from `.rs-modal[data-theme="dark"]`, the dark override below is
5227
5161
  required to re-assert dark. NOTE: this only takes effect because
5228
- SwappedIframeStep assigns the iframe `src` one commit after mount — the
5162
+ SwappedProviderStep assigns the iframe `src` one commit after mount — the
5229
5163
  widget reads prefers-color-scheme at its first navigation, which must
5230
5164
  happen after this rule is resolved on the element. */
5231
5165
  color-scheme: light;
@@ -5342,6 +5276,64 @@
5342
5276
  background: var(--rs-border);
5343
5277
  }
5344
5278
 
5279
+ /* Handing the provider to the system browser. Our screen, so it keeps the
5280
+ modal header — there is no widget in the viewport to own navigation. */
5281
+ .rs-swapped-handoff-body {
5282
+ display: flex;
5283
+ flex-direction: column;
5284
+ align-items: center;
5285
+ justify-content: center;
5286
+ flex: 1;
5287
+ min-height: 326px;
5288
+ gap: 24px;
5289
+ text-align: center;
5290
+ }
5291
+
5292
+ .rs-swapped-handoff-text {
5293
+ display: flex;
5294
+ flex-direction: column;
5295
+ align-items: center;
5296
+ gap: 8px;
5297
+ }
5298
+
5299
+ .rs-swapped-handoff-title {
5300
+ font-size: 20px;
5301
+ font-weight: 700;
5302
+ line-height: 1.25;
5303
+ color: var(--rs-foreground);
5304
+ margin: 0;
5305
+ }
5306
+
5307
+ .rs-swapped-handoff-subtitle {
5308
+ font-size: 16px;
5309
+ font-weight: 500;
5310
+ line-height: 1.35;
5311
+ color: var(--rs-muted);
5312
+ margin: 0;
5313
+ max-width: 410px;
5314
+ }
5315
+
5316
+ .rs-swapped-handoff-reopen {
5317
+ padding: 10px 18px;
5318
+ border: 1px solid var(--rs-border);
5319
+ border-radius: var(--rs-radius-sm);
5320
+ background: var(--rs-background-secondary);
5321
+ color: var(--rs-foreground);
5322
+ font-size: 14px;
5323
+ font-weight: 500;
5324
+ font-family: inherit;
5325
+ cursor: pointer;
5326
+ }
5327
+
5328
+ .rs-swapped-handoff-reopen:hover:not(:disabled) {
5329
+ background: var(--rs-border);
5330
+ }
5331
+
5332
+ .rs-swapped-handoff-reopen:disabled {
5333
+ opacity: 0.6;
5334
+ cursor: default;
5335
+ }
5336
+
5345
5337
  /* =============================================================================
5346
5338
  Exchange picker (Swapped Connect)
5347
5339
  ============================================================================= */
@@ -5445,6 +5437,16 @@
5445
5437
  line-height: 1.35;
5446
5438
  }
5447
5439
 
5440
+ /* "Gasless" hint under the Sign-to-deposit CTA on the review screen. */
5441
+ .rs-gasless-note {
5442
+ font-size: 12px;
5443
+ font-weight: 500;
5444
+ line-height: 1.35;
5445
+ color: var(--rs-muted);
5446
+ text-align: center;
5447
+ margin: 8px 0 0;
5448
+ }
5449
+
5448
5450
  /* Pre-deposit "Exchange Fee" disclosure shown below the picker footer. */
5449
5451
  .rs-exchange-select-fee-note {
5450
5452
  font-size: 12px;
@@ -5461,7 +5463,7 @@
5461
5463
  Fiat keeps the default modal width. Connect uses Swapped's wider documented
5462
5464
  iframe width and applies it from the moment the user enters exchange-connect
5463
5465
  mode (`data-flow-mode` on rs-modal-body), so the modal width is stable
5464
- across SetupStep → SwappedIframeStep. Height grows to the active screen's
5466
+ across SetupStep → SwappedProviderStep. Height grows to the active screen's
5465
5467
  chrome; cap to viewport so smaller laptops get a scrollable modal-body
5466
5468
  instead of overflowing the screen. */
5467
5469
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"]) {
@@ -5483,8 +5485,8 @@
5483
5485
 
5484
5486
  /* Pre-size the modal-content to the eventual iframe-mounted height for
5485
5487
  the iframe-phase only:
5486
- - `[data-step-type="setup"]` — brief pre-flight before SwappedIframeStep mounts
5487
- - `:has(...) .rs-fiat-onramp` — SwappedIframeStep's iframe phase is in DOM
5488
+ - `[data-step-type="setup"]` — brief pre-flight before SwappedProviderStep mounts
5489
+ - `:has(...) .rs-fiat-onramp` — SwappedProviderStep's iframe phase is in DOM
5488
5490
  The tracker phase (.rs-swapped-tracker) is naturally shorter and is
5489
5491
  excluded so the modal shrinks down to its content instead of leaving
5490
5492
  a tall empty area below the tracker. Applied on modal-content (not
@@ -5501,7 +5503,7 @@
5501
5503
  /* Iframe phase: fiat is immersive (no header/footer chrome), so the modal is
5502
5504
  sized to the embedded iframe exactly — 586 — and fills top-to-bottom with no
5503
5505
  whitespace. The taller setup values above pre-reserve the space before
5504
- SwappedIframeStep mounts. */
5506
+ SwappedProviderStep mounts. */
5505
5507
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"] .rs-fiat-onramp) {
5506
5508
  min-height: 586px;
5507
5509
  }
@@ -5534,7 +5536,7 @@
5534
5536
  /* Layout lives in rs-screen now — tracker just contributes the entrance
5535
5537
  animation and a marker class for any future tracker-only tweaks. The
5536
5538
  icon + title come from the shared BodyHeader so the header position
5537
- matches ConnectStep and SwappedIframeStep exactly. */
5539
+ matches ConnectStep and SwappedProviderStep exactly. */
5538
5540
  .rs-swapped-tracker {
5539
5541
  animation: rs-swapped-tracker-enter 250ms ease-out;
5540
5542
  }
@@ -5805,6 +5807,39 @@
5805
5807
  }
5806
5808
  }
5807
5809
 
5810
+ /* =============================================================================
5811
+ Native embed (`./embed`)
5812
+ =============================================================================
5813
+ The host app draws the sheet, so the page draws none of it: no scrim, no
5814
+ corners, no peek, no slide-up. What it keeps is everything the sheet cannot
5815
+ supply — the home-indicator clearance and the input sizing that stops iOS
5816
+ zooming on focus, both of which live under `.rs-modal-overlay` above and so
5817
+ are lost by an inline mount. They are repeated rather than re-scoped: an
5818
+ inline mount in a web page is not a native sheet and should keep behaving
5819
+ exactly as it does today.
5820
+
5821
+ Not inside the 639px media query. A tablet's web view is a native sheet too,
5822
+ and the page cannot tell the difference from width. */
5823
+ .rs-modal-content--inline.rs-embed {
5824
+ /* Fill what the host gave us. `--rs-embed-viewport-height` tracks the
5825
+ visual viewport, so the flow sits above the keyboard rather than behind
5826
+ it; without the fallback a browser with no visualViewport gets the
5827
+ layout viewport, which is the pre-keyboard behaviour. */
5828
+ height: var(--rs-embed-viewport-height, 100%);
5829
+ max-height: var(--rs-embed-viewport-height, 100%);
5830
+ border-radius: 0;
5831
+ box-shadow: none;
5832
+ }
5833
+
5834
+ .rs-embed .rs-modal:not(.rs-modal--swapped-iframe) {
5835
+ padding-bottom: calc(16px + env(safe-area-inset-bottom));
5836
+ }
5837
+
5838
+ .rs-embed .rs-modal .rs-input,
5839
+ .rs-embed .rs-modal .rs-withdraw-input {
5840
+ font-size: 16px;
5841
+ }
5842
+
5808
5843
  @keyframes rs-sheet-slide-up {
5809
5844
  from {
5810
5845
  transform: translate3d(0, 100%, 0);