@rhinestone/deposit-modal 0.12.2 → 0.14.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 (68) hide show
  1. package/README.md +73 -18
  2. package/bridge-transcript.json +653 -0
  3. package/dist/ClaimModal-IKTJU43Y.cjs +13 -0
  4. package/dist/ClaimModal-SEKNWRMA.mjs +13 -0
  5. package/dist/{DepositModalReown-VG66OTIU.cjs → DepositModalReown-46LPVFB6.cjs} +58 -35
  6. package/dist/{DepositModalReown-TEC3MEZ4.mjs → DepositModalReown-Q2JMLT47.mjs} +45 -22
  7. package/dist/{QRCode-WUC652SH.mjs → QRCode-5RGIZZHL.mjs} +1 -1
  8. package/dist/{QRCode-5DXFNKI2.cjs → QRCode-JKXG4RHN.cjs} +2 -2
  9. package/dist/WithdrawModal-5ICGD4HJ.mjs +12 -0
  10. package/dist/WithdrawModal-VP6PMIRO.cjs +12 -0
  11. package/dist/{chunk-O7BCVQ6L.cjs → chunk-4KCSH4T3.cjs} +157 -199
  12. package/dist/chunk-6KG642KH.cjs +31 -0
  13. package/dist/{chunk-PWLEBV5V.cjs → chunk-7ICSHJFE.cjs} +296 -220
  14. package/dist/{chunk-J46WDSRD.mjs → chunk-7SR7ENVJ.mjs} +165 -89
  15. package/dist/{chunk-2TPSF77V.mjs → chunk-CFKC77SV.mjs} +455 -261
  16. package/dist/{chunk-75DVGSAX.cjs → chunk-DW2EQA2U.cjs} +6 -3
  17. package/dist/{chunk-FXXUIK4E.mjs → chunk-IN77XSWO.mjs} +899 -153
  18. package/dist/chunk-K4H6TGBE.mjs +31 -0
  19. package/dist/{chunk-SDSKIJC7.mjs → chunk-KTUVSKR4.mjs} +2410 -1177
  20. package/dist/{chunk-HL5NUKZW.cjs → chunk-LZFRL2AL.cjs} +3 -3
  21. package/dist/{chunk-UQIJU6HV.cjs → chunk-MTFJSE52.cjs} +499 -191
  22. package/dist/{chunk-FLVLYO64.mjs → chunk-PKML3XVS.mjs} +430 -122
  23. package/dist/{chunk-4ZXQPFNU.mjs → chunk-RN5VKWI6.mjs} +4 -1
  24. package/dist/{chunk-BRYNGLDM.cjs → chunk-V2OBGLJD.cjs} +961 -215
  25. package/dist/{chunk-3STTWRAN.mjs → chunk-VUATPOWJ.mjs} +147 -189
  26. package/dist/{chunk-JE4R5VA3.mjs → chunk-WUJIKCFU.mjs} +1 -1
  27. package/dist/chunk-X2IPAPXU.cjs +163 -0
  28. package/dist/{chunk-OIN4CXCP.cjs → chunk-YCQZJQO6.cjs} +2343 -1110
  29. package/dist/{chunk-TM7VGHAG.cjs → chunk-YWMWI7PZ.cjs} +462 -268
  30. package/dist/chunk-ZEO6ADM3.mjs +163 -0
  31. package/dist/claim.cjs +7 -6
  32. package/dist/claim.d.cts +11 -3
  33. package/dist/claim.d.ts +11 -3
  34. package/dist/claim.mjs +6 -5
  35. package/dist/{constants-FuzG3h4m.d.cts → constants-DBrWhJWE.d.cts} +12 -7
  36. package/dist/{constants-FuzG3h4m.d.ts → constants-DBrWhJWE.d.ts} +12 -7
  37. package/dist/constants.cjs +3 -9
  38. package/dist/constants.d.cts +2 -3
  39. package/dist/constants.d.ts +2 -3
  40. package/dist/constants.mjs +4 -10
  41. package/dist/deposit.cjs +8 -8
  42. package/dist/deposit.d.cts +2 -2
  43. package/dist/deposit.d.ts +2 -2
  44. package/dist/deposit.mjs +7 -7
  45. package/dist/embed.cjs +1476 -0
  46. package/dist/embed.d.cts +183 -0
  47. package/dist/embed.d.ts +183 -0
  48. package/dist/embed.mjs +1476 -0
  49. package/dist/index.cjs +11 -16
  50. package/dist/index.d.cts +3 -3
  51. package/dist/index.d.ts +3 -3
  52. package/dist/index.mjs +14 -19
  53. package/dist/modal-ui-state-OD1RmKkK.d.cts +30 -0
  54. package/dist/modal-ui-state-OD1RmKkK.d.ts +30 -0
  55. package/dist/polymarket.cjs +17 -7
  56. package/dist/polymarket.mjs +13 -3
  57. package/dist/styles.css +124 -98
  58. package/dist/types-Bho4OA03.d.ts +982 -0
  59. package/dist/types-DP_3KwlD.d.cts +982 -0
  60. package/dist/withdraw.cjs +6 -6
  61. package/dist/withdraw.d.cts +11 -3
  62. package/dist/withdraw.d.ts +11 -3
  63. package/dist/withdraw.mjs +5 -5
  64. package/package.json +59 -6
  65. package/dist/chunk-IAGFDSNC.mjs +0 -11
  66. package/dist/chunk-L32UI7LA.cjs +0 -11
  67. package/dist/types-BO4iP6fG.d.cts +0 -612
  68. package/dist/types-oFblf65g.d.ts +0 -612
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 _chunkOIN4CXCPcjs = require('./chunk-OIN4CXCP.cjs');
3
+ var _chunkMTFJSE52cjs = require('./chunk-MTFJSE52.cjs');
4
4
 
5
5
 
6
- var _chunkUQIJU6HVcjs = require('./chunk-UQIJU6HV.cjs');
7
- require('./chunk-PWLEBV5V.cjs');
6
+ var _chunkYWMWI7PZcjs = require('./chunk-YWMWI7PZ.cjs');
8
7
 
9
8
 
10
- var _chunkTM7VGHAGcjs = require('./chunk-TM7VGHAG.cjs');
11
- require('./chunk-HL5NUKZW.cjs');
12
- require('./chunk-BRYNGLDM.cjs');
13
- require('./chunk-L32UI7LA.cjs');
14
- require('./chunk-75DVGSAX.cjs');
9
+ var _chunkYCQZJQO6cjs = require('./chunk-YCQZJQO6.cjs');
10
+ require('./chunk-7ICSHJFE.cjs');
11
+ require('./chunk-X2IPAPXU.cjs');
12
+ require('./chunk-LZFRL2AL.cjs');
13
+ require('./chunk-V2OBGLJD.cjs');
14
+ require('./chunk-6KG642KH.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 = _chunkTM7VGHAGcjs.ClaimModal; exports.DepositModal = _chunkOIN4CXCPcjs.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 = _chunkUQIJU6HVcjs.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 = _chunkYWMWI7PZcjs.ClaimModal; exports.DepositModal = _chunkYCQZJQO6cjs.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 = _chunkMTFJSE52cjs.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 AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsEvent, i as ClaimAnalyticsEventPayload, j as ClaimAnalyticsFailureReason, k as ClaimAnalyticsSessionProperties, l as ClaimAnalyticsStep, m as ClaimAnalyticsUiOutcome, n as ClaimLifecycleEvent, o as ClaimModalProps, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as ModalAnalyticsEvent, Y as OutputTokenRule, Z as RpcUrlMap, _ as WithdrawAnalyticsAbandonmentReason, $ as WithdrawAnalyticsCloseSource, a0 as WithdrawAnalyticsEvent, a1 as WithdrawAnalyticsEventPayload, a2 as WithdrawAnalyticsFailureReason, a3 as WithdrawAnalyticsSessionProperties, a4 as WithdrawAnalyticsStep, a5 as WithdrawAnalyticsUiOutcome, a6 as WithdrawCompleteEventData, a7 as WithdrawFailedEventData, a8 as WithdrawLifecycleEvent, a9 as WithdrawModalProps, aa as WithdrawSubmittedEventData, ab as WithdrawTransferRequest } from './types-DP_3KwlD.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 AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, C as ChainId, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsEvent, i as ClaimAnalyticsEventPayload, j as ClaimAnalyticsFailureReason, k as ClaimAnalyticsSessionProperties, l as ClaimAnalyticsStep, m as ClaimAnalyticsUiOutcome, n as ClaimLifecycleEvent, o as ClaimModalProps, p as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, q as DepositAnalyticsCloseSource, r as DepositAnalyticsCorrelator, s as DepositAnalyticsEvent, t as DepositAnalyticsEventPayload, u as DepositAnalyticsExchangeStep, v as DepositAnalyticsFailureReason, w as DepositAnalyticsFiatStep, x as DepositAnalyticsMigrationStep, y as DepositAnalyticsSessionProperties, z as DepositAnalyticsSharedStep, B as DepositAnalyticsStep, E as DepositAnalyticsTransferStep, F as DepositAnalyticsUiOutcome, G as DepositAnalyticsWalletStep, H as DepositAssetMigrationMethodIdentifiers, I as DepositCompleteEventData, J as DepositExchangeConnectMethodIdentifiers, K as DepositFailedEventData, L as DepositFiatOnrampMethodIdentifiers, M as DepositFundingMethod, N as DepositLifecycleEvent, O as DepositModalProps, P as DepositModalTheme, Q as DepositModalUIConfig, R as DepositSubmittedEventData, S as DepositTransferHandoffIdentifiers, T as DepositWalletIntegration, U as DepositWalletMethodIdentifiers, V as ErrorEventData, W as FiatMethodsConfig, X as ModalAnalyticsEvent, Y as OutputTokenRule, Z as RpcUrlMap, _ as WithdrawAnalyticsAbandonmentReason, $ as WithdrawAnalyticsCloseSource, a0 as WithdrawAnalyticsEvent, a1 as WithdrawAnalyticsEventPayload, a2 as WithdrawAnalyticsFailureReason, a3 as WithdrawAnalyticsSessionProperties, a4 as WithdrawAnalyticsStep, a5 as WithdrawAnalyticsUiOutcome, a6 as WithdrawCompleteEventData, a7 as WithdrawFailedEventData, a8 as WithdrawLifecycleEvent, a9 as WithdrawModalProps, aa as WithdrawSubmittedEventData, ab as WithdrawTransferRequest } from './types-Bho4OA03.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-SDSKIJC7.mjs";
4
1
  import {
5
2
  WithdrawModal
6
- } from "./chunk-FLVLYO64.mjs";
7
- import "./chunk-J46WDSRD.mjs";
3
+ } from "./chunk-PKML3XVS.mjs";
8
4
  import {
9
5
  ClaimModal
10
- } from "./chunk-2TPSF77V.mjs";
11
- import "./chunk-JE4R5VA3.mjs";
12
- import "./chunk-FXXUIK4E.mjs";
13
- import "./chunk-IAGFDSNC.mjs";
14
- import "./chunk-4ZXQPFNU.mjs";
6
+ } from "./chunk-CFKC77SV.mjs";
7
+ import {
8
+ DepositModal
9
+ } from "./chunk-KTUVSKR4.mjs";
10
+ import "./chunk-7SR7ENVJ.mjs";
11
+ import "./chunk-ZEO6ADM3.mjs";
12
+ import "./chunk-WUJIKCFU.mjs";
13
+ import "./chunk-IN77XSWO.mjs";
14
+ import "./chunk-K4H6TGBE.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;
@@ -3204,110 +3210,29 @@
3204
3210
  color: var(--rs-icon-secondary);
3205
3211
  }
3206
3212
 
3207
- /* Price impact accordion — sits at the bottom of the transfer-crypto
3208
- screen. Header is a thin row with the value + info tooltip + chevron. */
3209
- .rs-price-impact {
3210
- width: 100%;
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 {
3211
3216
  display: flex;
3212
- flex-direction: column;
3213
- }
3214
-
3215
- .rs-price-impact-header {
3216
- display: flex;
3217
- align-items: center;
3218
- justify-content: space-between;
3219
- gap: 8px;
3217
+ gap: 4px;
3220
3218
  width: 100%;
3221
- padding: 0;
3222
- background: transparent;
3223
- border: none;
3224
- cursor: pointer;
3225
- font-family: inherit;
3226
- line-height: normal;
3227
- color: var(--rs-muted);
3228
- text-align: left;
3229
- }
3230
-
3231
- .rs-price-impact-header-left {
3232
- display: inline-flex;
3233
- align-items: center;
3234
- gap: 8px;
3235
- }
3236
-
3237
- .rs-price-impact-row-icon {
3238
- display: inline-flex;
3239
- align-items: center;
3240
- justify-content: center;
3241
- width: 16px;
3242
- height: 16px;
3243
- color: var(--rs-icon-secondary);
3244
- flex-shrink: 0;
3245
- }
3246
-
3247
- .rs-price-impact-row-icon svg {
3248
- width: 16px;
3249
- height: 16px;
3250
3219
  }
3251
3220
 
3252
- .rs-price-impact-label {
3253
- font-size: 12px;
3254
- font-weight: 500;
3255
- color: var(--rs-muted);
3256
- }
3257
-
3258
- .rs-price-impact-label strong {
3259
- color: var(--rs-muted);
3260
- font-weight: 500;
3261
- }
3262
-
3263
- .rs-price-impact-info {
3264
- display: inline-flex;
3265
- align-items: center;
3266
- justify-content: center;
3267
- color: var(--rs-muted);
3268
- }
3269
-
3270
- .rs-price-impact-info .rs-tooltip-trigger svg {
3271
- width: 16px;
3272
- height: 16px;
3273
- display: block;
3221
+ .rs-deposit-address-actions > * {
3222
+ flex: 1;
3274
3223
  }
3275
3224
 
3276
- .rs-price-impact-chevron {
3277
- width: 16px;
3278
- 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 {
3279
3228
  color: var(--rs-muted);
3280
- flex-shrink: 0;
3281
- transition: transform 0.2s ease;
3282
3229
  }
3283
3230
 
3284
- .rs-price-impact--open .rs-price-impact-chevron {
3285
- transform: rotate(180deg);
3286
- }
3287
-
3288
- .rs-price-impact-panel {
3289
- display: grid;
3290
- grid-template-rows: 0fr;
3291
- transition: grid-template-rows 0.25s ease;
3231
+ .rs-deposit-address-review:hover {
3232
+ color: var(--rs-foreground);
3292
3233
  }
3293
3234
 
3294
- .rs-price-impact--open .rs-price-impact-panel {
3295
- grid-template-rows: 1fr;
3296
- }
3297
3235
 
3298
- .rs-price-impact-panel-inner {
3299
- overflow: hidden;
3300
- min-height: 0;
3301
- }
3302
-
3303
- .rs-price-impact-row {
3304
- display: flex;
3305
- align-items: center;
3306
- gap: 8px;
3307
- padding-top: 8px;
3308
- font-size: 12px;
3309
- color: var(--rs-muted);
3310
- }
3311
3236
 
3312
3237
  /* =============================================================================
3313
3238
  Tooltip
@@ -5234,7 +5159,7 @@
5234
5159
  This base rule forces light; because it wins over the `color-scheme: dark`
5235
5160
  inherited from `.rs-modal[data-theme="dark"]`, the dark override below is
5236
5161
  required to re-assert dark. NOTE: this only takes effect because
5237
- SwappedIframeStep assigns the iframe `src` one commit after mount — the
5162
+ SwappedProviderStep assigns the iframe `src` one commit after mount — the
5238
5163
  widget reads prefers-color-scheme at its first navigation, which must
5239
5164
  happen after this rule is resolved on the element. */
5240
5165
  color-scheme: light;
@@ -5351,6 +5276,64 @@
5351
5276
  background: var(--rs-border);
5352
5277
  }
5353
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
+
5354
5337
  /* =============================================================================
5355
5338
  Exchange picker (Swapped Connect)
5356
5339
  ============================================================================= */
@@ -5454,6 +5437,16 @@
5454
5437
  line-height: 1.35;
5455
5438
  }
5456
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
+
5457
5450
  /* Pre-deposit "Exchange Fee" disclosure shown below the picker footer. */
5458
5451
  .rs-exchange-select-fee-note {
5459
5452
  font-size: 12px;
@@ -5470,7 +5463,7 @@
5470
5463
  Fiat keeps the default modal width. Connect uses Swapped's wider documented
5471
5464
  iframe width and applies it from the moment the user enters exchange-connect
5472
5465
  mode (`data-flow-mode` on rs-modal-body), so the modal width is stable
5473
- across SetupStep → SwappedIframeStep. Height grows to the active screen's
5466
+ across SetupStep → SwappedProviderStep. Height grows to the active screen's
5474
5467
  chrome; cap to viewport so smaller laptops get a scrollable modal-body
5475
5468
  instead of overflowing the screen. */
5476
5469
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="exchange-connect"]) {
@@ -5492,8 +5485,8 @@
5492
5485
 
5493
5486
  /* Pre-size the modal-content to the eventual iframe-mounted height for
5494
5487
  the iframe-phase only:
5495
- - `[data-step-type="setup"]` — brief pre-flight before SwappedIframeStep mounts
5496
- - `: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
5497
5490
  The tracker phase (.rs-swapped-tracker) is naturally shorter and is
5498
5491
  excluded so the modal shrinks down to its content instead of leaving
5499
5492
  a tall empty area below the tracker. Applied on modal-content (not
@@ -5510,7 +5503,7 @@
5510
5503
  /* Iframe phase: fiat is immersive (no header/footer chrome), so the modal is
5511
5504
  sized to the embedded iframe exactly — 586 — and fills top-to-bottom with no
5512
5505
  whitespace. The taller setup values above pre-reserve the space before
5513
- SwappedIframeStep mounts. */
5506
+ SwappedProviderStep mounts. */
5514
5507
  .rs-modal-content:has(.rs-modal-body[data-flow-mode="fiat-onramp"] .rs-fiat-onramp) {
5515
5508
  min-height: 586px;
5516
5509
  }
@@ -5543,7 +5536,7 @@
5543
5536
  /* Layout lives in rs-screen now — tracker just contributes the entrance
5544
5537
  animation and a marker class for any future tracker-only tweaks. The
5545
5538
  icon + title come from the shared BodyHeader so the header position
5546
- matches ConnectStep and SwappedIframeStep exactly. */
5539
+ matches ConnectStep and SwappedProviderStep exactly. */
5547
5540
  .rs-swapped-tracker {
5548
5541
  animation: rs-swapped-tracker-enter 250ms ease-out;
5549
5542
  }
@@ -5814,6 +5807,39 @@
5814
5807
  }
5815
5808
  }
5816
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
+
5817
5843
  @keyframes rs-sheet-slide-up {
5818
5844
  from {
5819
5845
  transform: translate3d(0, 100%, 0);