@rhinestone/deposit-modal 0.14.1 → 0.15.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 +6 -0
  2. package/bridge-transcript.json +14 -0
  3. package/dist/ClaimModal-GFDBVCN5.cjs +11 -0
  4. package/dist/ClaimModal-VQS3AKEL.mjs +11 -0
  5. package/dist/{DepositModalReown-2EVV64OA.mjs → DepositModalReown-KOJ7VEY7.mjs} +6 -7
  6. package/dist/{DepositModalReown-GAD45GIC.cjs → DepositModalReown-R37SSHUF.cjs} +21 -22
  7. package/dist/WithdrawModal-QVXHMH43.mjs +12 -0
  8. package/dist/WithdrawModal-RY2NMFLE.cjs +12 -0
  9. package/dist/{caip-D8aRWdEY.d.cts → caip-BMi-9t09.d.cts} +27 -3
  10. package/dist/{caip-D8aRWdEY.d.ts → caip-BMi-9t09.d.ts} +27 -3
  11. package/dist/{chunk-HAQOFI3D.cjs → chunk-3OOY67VJ.cjs} +1046 -226
  12. package/dist/{chunk-AQVJUXSG.cjs → chunk-5P2PVLS4.cjs} +1 -1
  13. package/dist/{chunk-UX35GYLM.mjs → chunk-5VONFVQN.mjs} +918 -98
  14. package/dist/chunk-6HUHVXCY.cjs +704 -0
  15. package/dist/{chunk-GZ4GQ5MC.mjs → chunk-7UQ6OUEE.mjs} +166 -45
  16. package/dist/{chunk-LMG46EP2.mjs → chunk-CXBMIZUF.mjs} +1 -1
  17. package/dist/{chunk-A6JPBMYY.cjs → chunk-DTVZUBHI.cjs} +236 -115
  18. package/dist/{chunk-VUATPOWJ.mjs → chunk-EAGMY3QE.mjs} +74 -17
  19. package/dist/{chunk-RN5VKWI6.mjs → chunk-FTWKAJGN.mjs} +1 -1
  20. package/dist/{chunk-5Q5CSVKF.mjs → chunk-IKUYZA7A.mjs} +195 -495
  21. package/dist/{chunk-DW2EQA2U.cjs → chunk-LVCD6RHF.cjs} +2 -2
  22. package/dist/{chunk-4KCSH4T3.cjs → chunk-OY5N3E6L.cjs} +86 -29
  23. package/dist/chunk-QJ7RCCU7.mjs +704 -0
  24. package/dist/{chunk-XCTRKCNM.mjs → chunk-UCBUCX2W.mjs} +1515 -194
  25. package/dist/{chunk-NQMC5VKQ.cjs → chunk-VPDCGD2D.cjs} +552 -852
  26. package/dist/{chunk-4J5ADVIN.cjs → chunk-X4D52IZK.cjs} +1496 -175
  27. package/dist/claim.cjs +5 -7
  28. package/dist/claim.d.cts +3 -3
  29. package/dist/claim.d.ts +3 -3
  30. package/dist/claim.mjs +4 -6
  31. package/dist/{constants-DBrWhJWE.d.cts → constants-BT4ctuHo.d.cts} +7 -6
  32. package/dist/{constants-DBrWhJWE.d.ts → constants-D21ZdNOP.d.ts} +7 -6
  33. package/dist/constants.cjs +3 -3
  34. package/dist/constants.d.cts +3 -3
  35. package/dist/constants.d.ts +3 -3
  36. package/dist/constants.mjs +2 -2
  37. package/dist/deposit.cjs +7 -8
  38. package/dist/deposit.d.cts +3 -3
  39. package/dist/deposit.d.ts +3 -3
  40. package/dist/deposit.mjs +6 -7
  41. package/dist/embed.cjs +135 -44
  42. package/dist/embed.d.cts +2 -2
  43. package/dist/embed.d.ts +2 -2
  44. package/dist/embed.mjs +116 -25
  45. package/dist/index.cjs +13 -11
  46. package/dist/index.d.cts +3 -3
  47. package/dist/index.d.ts +3 -3
  48. package/dist/index.mjs +12 -10
  49. package/dist/polymarket.cjs +6 -6
  50. package/dist/polymarket.mjs +2 -2
  51. package/dist/styles.css +132 -100
  52. package/dist/{types-DP_3KwlD.d.cts → types-CQ0NHqCy.d.ts} +146 -11
  53. package/dist/{types-Bho4OA03.d.ts → types-CxiLX5sv.d.cts} +146 -11
  54. package/dist/withdraw.cjs +6 -6
  55. package/dist/withdraw.d.cts +4 -4
  56. package/dist/withdraw.d.ts +4 -4
  57. package/dist/withdraw.mjs +5 -5
  58. package/package.json +6 -6
  59. package/dist/ClaimModal-GDFENSLV.mjs +0 -13
  60. package/dist/ClaimModal-L3FUBI5U.cjs +0 -13
  61. package/dist/WithdrawModal-FAQH35NG.cjs +0 -12
  62. package/dist/WithdrawModal-IKUHF5CF.mjs +0 -12
  63. package/dist/chunk-62UCV2LG.cjs +0 -81
  64. package/dist/chunk-7AZFT2MV.cjs +0 -163
  65. package/dist/chunk-QACOOLOE.mjs +0 -1062
  66. package/dist/chunk-R5UQ3TN4.mjs +0 -81
  67. package/dist/chunk-VALXN5IO.mjs +0 -163
  68. package/dist/chunk-YP7QVKQ6.cjs +0 -1062
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
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 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';
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 ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ClaimLifecycleEvent, q as ClaimModalProps, r as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, s as DepositAnalyticsCloseSource, t as DepositAnalyticsCorrelator, u as DepositAnalyticsEvent, v as DepositAnalyticsEventPayload, w as DepositAnalyticsExchangeStep, x as DepositAnalyticsFailureReason, y as DepositAnalyticsFiatStep, z as DepositAnalyticsMigrationStep, B as DepositAnalyticsSessionProperties, E as DepositAnalyticsSharedStep, F as DepositAnalyticsStep, G as DepositAnalyticsTransferStep, H as DepositAnalyticsUiOutcome, I as DepositAnalyticsWalletStep, J as DepositAssetMigrationMethodIdentifiers, K as DepositCompleteEventData, L as DepositExchangeConnectMethodIdentifiers, M as DepositFailedEventData, N as DepositFiatOnrampMethodIdentifiers, O as DepositFundingMethod, P as DepositLifecycleEvent, Q as DepositModalProps, R as DepositModalTheme, S as DepositModalUIConfig, T as DepositSubmittedEventData, U as DepositTransferHandoffIdentifiers, V as DepositWalletIntegration, W as DepositWalletMethodIdentifiers, X as ErrorEventData, Y as FiatMethodsConfig, Z as HistoryAnalyticsBadge, _ as HistoryClaimEntrySource, $ as HistoryStatus, a0 as ModalAnalyticsEvent, a1 as OutputTokenRule, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload, a6 as WithdrawAnalyticsAbandonmentReason, a7 as WithdrawAnalyticsCloseSource, a8 as WithdrawAnalyticsEvent, a9 as WithdrawAnalyticsEventPayload, aa as WithdrawAnalyticsFailureReason, ab as WithdrawAnalyticsSessionProperties, ac as WithdrawAnalyticsStep, ad as WithdrawAnalyticsUiOutcome, ae as WithdrawCompleteEventData, af as WithdrawFailedEventData, ag as WithdrawLifecycleEvent, ah as WithdrawModalProps, ai as WithdrawSubmittedEventData, aj as WithdrawTransferRequest } from './types-CxiLX5sv.cjs';
5
5
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.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
- 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';
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-BT4ctuHo.cjs';
7
+ export { D as DisplayChainId, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, S as STELLAR_PUBNET_CAIP2, T as TRON_MAINNET_CAIP2, d as TargetChain } from './caip-BMi-9t09.cjs';
8
8
  import 'react';
9
9
  import './modal-ui-state-OD1RmKkK.cjs';
10
10
  import 'viem';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
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 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';
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 ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ClaimLifecycleEvent, q as ClaimModalProps, r as ConnectedEventData, D as DepositAnalyticsAbandonmentReason, s as DepositAnalyticsCloseSource, t as DepositAnalyticsCorrelator, u as DepositAnalyticsEvent, v as DepositAnalyticsEventPayload, w as DepositAnalyticsExchangeStep, x as DepositAnalyticsFailureReason, y as DepositAnalyticsFiatStep, z as DepositAnalyticsMigrationStep, B as DepositAnalyticsSessionProperties, E as DepositAnalyticsSharedStep, F as DepositAnalyticsStep, G as DepositAnalyticsTransferStep, H as DepositAnalyticsUiOutcome, I as DepositAnalyticsWalletStep, J as DepositAssetMigrationMethodIdentifiers, K as DepositCompleteEventData, L as DepositExchangeConnectMethodIdentifiers, M as DepositFailedEventData, N as DepositFiatOnrampMethodIdentifiers, O as DepositFundingMethod, P as DepositLifecycleEvent, Q as DepositModalProps, R as DepositModalTheme, S as DepositModalUIConfig, T as DepositSubmittedEventData, U as DepositTransferHandoffIdentifiers, V as DepositWalletIntegration, W as DepositWalletMethodIdentifiers, X as ErrorEventData, Y as FiatMethodsConfig, Z as HistoryAnalyticsBadge, _ as HistoryClaimEntrySource, $ as HistoryStatus, a0 as ModalAnalyticsEvent, a1 as OutputTokenRule, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload, a6 as WithdrawAnalyticsAbandonmentReason, a7 as WithdrawAnalyticsCloseSource, a8 as WithdrawAnalyticsEvent, a9 as WithdrawAnalyticsEventPayload, aa as WithdrawAnalyticsFailureReason, ab as WithdrawAnalyticsSessionProperties, ac as WithdrawAnalyticsStep, ad as WithdrawAnalyticsUiOutcome, ae as WithdrawCompleteEventData, af as WithdrawFailedEventData, ag as WithdrawLifecycleEvent, ah as WithdrawModalProps, ai as WithdrawSubmittedEventData, aj as WithdrawTransferRequest } from './types-CQ0NHqCy.js';
5
5
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.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
- 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';
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-D21ZdNOP.js';
7
+ export { D as DisplayChainId, H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS, c as HYPERCORE_USDT0_ADDRESS, S as STELLAR_PUBNET_CAIP2, T as TRON_MAINNET_CAIP2, d as TargetChain } from './caip-BMi-9t09.js';
8
8
  import 'react';
9
9
  import './modal-ui-state-OD1RmKkK.js';
10
10
  import 'viem';
package/dist/index.mjs CHANGED
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-GZ4GQ5MC.mjs";
3
+ } from "./chunk-7UQ6OUEE.mjs";
4
4
  import {
5
5
  ClaimModal
6
- } from "./chunk-QACOOLOE.mjs";
6
+ } from "./chunk-QJ7RCCU7.mjs";
7
7
  import {
8
8
  DepositModal
9
- } from "./chunk-5Q5CSVKF.mjs";
10
- import "./chunk-XCTRKCNM.mjs";
11
- import "./chunk-VALXN5IO.mjs";
12
- import "./chunk-R5UQ3TN4.mjs";
13
- import "./chunk-UX35GYLM.mjs";
14
- import "./chunk-LMG46EP2.mjs";
15
- import "./chunk-RN5VKWI6.mjs";
9
+ } from "./chunk-IKUYZA7A.mjs";
10
+ import "./chunk-UCBUCX2W.mjs";
11
+ import "./chunk-5VONFVQN.mjs";
12
+ import "./chunk-CXBMIZUF.mjs";
13
+ import "./chunk-FTWKAJGN.mjs";
16
14
  import {
17
15
  HYPERCORE_CHAIN_ID,
18
16
  HYPERCORE_SPOT_CAIP2,
19
17
  HYPERCORE_USDC_ADDRESS,
20
18
  HYPERCORE_USDT0_ADDRESS,
21
19
  NATIVE_TOKEN_ADDRESS,
20
+ STELLAR_PUBNET_CAIP2,
22
21
  SUPPORTED_CHAIN_IDS,
22
+ TRON_MAINNET_CAIP2,
23
23
  chainRegistry,
24
24
  findChainIdForToken,
25
25
  getChainBadge,
@@ -42,7 +42,7 @@ import {
42
42
  getUsdcDecimals,
43
43
  isSupportedTokenAddressForChain,
44
44
  tokenIconUrl
45
- } from "./chunk-VUATPOWJ.mjs";
45
+ } from "./chunk-EAGMY3QE.mjs";
46
46
 
47
47
  // src/core/reown-disconnect.ts
48
48
  async function disconnectWallet() {
@@ -71,7 +71,9 @@ export {
71
71
  HYPERCORE_USDC_ADDRESS,
72
72
  HYPERCORE_USDT0_ADDRESS,
73
73
  NATIVE_TOKEN_ADDRESS,
74
+ STELLAR_PUBNET_CAIP2,
74
75
  SUPPORTED_CHAIN_IDS,
76
+ TRON_MAINNET_CAIP2,
75
77
  WithdrawModal,
76
78
  chainRegistry,
77
79
  disconnectWallet,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkDW2EQA2Ucjs = require('./chunk-DW2EQA2U.cjs');
6
- require('./chunk-4KCSH4T3.cjs');
5
+ var _chunkLVCD6RHFcjs = require('./chunk-LVCD6RHF.cjs');
6
+ require('./chunk-OY5N3E6L.cjs');
7
7
 
8
8
  // src/core/dapp-imports/polymarket/account.ts
9
9
 
@@ -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 _chunkDW2EQA2Ucjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
25
+ const proxyWallet = await _chunkLVCD6RHFcjs.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 _chunkDW2EQA2Ucjs.readPolymarketBalances.call(void 0, {
30
+ balances = await _chunkLVCD6RHFcjs.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: _chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID,
42
+ chainId: _chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID,
43
43
  pusd,
44
44
  usdce,
45
45
  totalUsd: pusd.usd + usdce.usd
@@ -51,7 +51,7 @@ function toTokenBalance(raw) {
51
51
  return { raw, formatted, usd: Number.isFinite(usd) ? usd : 0 };
52
52
  }
53
53
  var polygon = _viem.defineChain.call(void 0, {
54
- id: _chunkDW2EQA2Ucjs.POLYMARKET_POLYGON_CHAIN_ID,
54
+ id: _chunkLVCD6RHFcjs.POLYMARKET_POLYGON_CHAIN_ID,
55
55
  name: "Polygon",
56
56
  nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 },
57
57
  // Verified to answer `eth_chainId` with 137. `polygon-rpc.com`, the obvious
@@ -2,8 +2,8 @@ import {
2
2
  POLYMARKET_POLYGON_CHAIN_ID,
3
3
  fetchPolymarketProxyWallet,
4
4
  readPolymarketBalances
5
- } from "./chunk-RN5VKWI6.mjs";
6
- import "./chunk-VUATPOWJ.mjs";
5
+ } from "./chunk-FTWKAJGN.mjs";
6
+ import "./chunk-EAGMY3QE.mjs";
7
7
 
8
8
  // src/core/dapp-imports/polymarket/account.ts
9
9
  import {
package/dist/styles.css CHANGED
@@ -647,6 +647,13 @@
647
647
  height: 14px;
648
648
  }
649
649
 
650
+ .rs-input-hint {
651
+ font-size: 12px;
652
+ font-weight: 500;
653
+ color: var(--rs-muted);
654
+ line-height: normal;
655
+ }
656
+
650
657
  /* =============================================================================
651
658
  Spinner
652
659
  ============================================================================= */
@@ -2125,6 +2132,18 @@
2125
2132
  height: 24px;
2126
2133
  }
2127
2134
 
2135
+ /* Names the flow the panel returns to, so a mid-flow entry reads as an
2136
+ interruption rather than an exit. Widens the otherwise fixed 24px box. */
2137
+ .rs-modal-header-back--labelled {
2138
+ width: auto;
2139
+ gap: 4px;
2140
+ padding-right: 4px;
2141
+ font-family: inherit;
2142
+ font-size: 14px;
2143
+ font-weight: 500;
2144
+ line-height: 20px;
2145
+ }
2146
+
2128
2147
  /* =============================================================================
2129
2148
  Amount Step Redesign
2130
2149
  ============================================================================= */
@@ -4070,6 +4089,9 @@
4070
4089
  ============================================================================= */
4071
4090
 
4072
4091
  .rs-modal-header-history {
4092
+ /* Anchors the status dot; the glyph and the button's box are identical in
4093
+ every badge state, so the header never re-flows. */
4094
+ position: relative;
4073
4095
  display: flex;
4074
4096
  align-items: center;
4075
4097
  justify-content: center;
@@ -4098,6 +4120,36 @@
4098
4120
  height: 24px;
4099
4121
  }
4100
4122
 
4123
+ /* Status dot on the history entry point. Colour is the only difference between
4124
+ states, keyed to the row badges' failed/processing hues; the button's
4125
+ accessible name says the state in words. */
4126
+ .rs-history-dot {
4127
+ position: absolute;
4128
+ top: 1px;
4129
+ right: 1px;
4130
+ width: 7px;
4131
+ height: 7px;
4132
+ border-radius: 50%;
4133
+ /* A ring in the surface colour separates the dot from the glyph beneath it. */
4134
+ box-shadow: 0 0 0 2px var(--rs-background);
4135
+ }
4136
+
4137
+ .rs-history-dot--needs-you {
4138
+ background: #9f0712;
4139
+ }
4140
+
4141
+ .rs-history-dot--progress {
4142
+ background: #00407f;
4143
+ }
4144
+
4145
+ .rs-modal[data-theme="dark"] .rs-history-dot--needs-you {
4146
+ background: #ffc9c9;
4147
+ }
4148
+
4149
+ .rs-modal[data-theme="dark"] .rs-history-dot--progress {
4150
+ background: #bee3ff;
4151
+ }
4152
+
4101
4153
  /* =============================================================================
4102
4154
  Deposit History Panel — matches Figma 1878:142660 / 1878:142727.
4103
4155
  The panel overlays the deposit flow inside .rs-modal-content; its own
@@ -4211,6 +4263,32 @@
4211
4263
  line-height: normal;
4212
4264
  }
4213
4265
 
4266
+ /* The escape hatch under the title: a text button, not a card, so the primary
4267
+ action stays the expanded row's recover CTA. */
4268
+ .rs-history-hint {
4269
+ display: flex;
4270
+ flex-wrap: wrap;
4271
+ gap: 4px;
4272
+ align-items: baseline;
4273
+ padding: 0;
4274
+ border: none;
4275
+ background: transparent;
4276
+ color: var(--rs-muted);
4277
+ font-size: 13px;
4278
+ font-family: inherit;
4279
+ text-align: left;
4280
+ cursor: pointer;
4281
+ }
4282
+
4283
+ .rs-history-hint strong {
4284
+ color: var(--rs-foreground);
4285
+ font-weight: 500;
4286
+ }
4287
+
4288
+ .rs-history-hint:hover strong {
4289
+ text-decoration: underline;
4290
+ }
4291
+
4214
4292
  /* List of transaction cards. */
4215
4293
  .rs-history-list {
4216
4294
  display: flex;
@@ -4223,28 +4301,38 @@
4223
4301
  padding-right: 2px;
4224
4302
  }
4225
4303
 
4226
- /* Card */
4304
+ /* Card. A wrapper rather than one button: the expanded panel holds its own
4305
+ controls (the tx link, the recover CTA), which cannot nest inside the
4306
+ disclosure button. The trigger is the row; the panel is its sibling. */
4227
4307
  .rs-history-card {
4228
4308
  width: 100%;
4229
4309
  display: flex;
4230
4310
  flex-direction: column;
4231
4311
  gap: 0;
4232
- padding: 12px 8px;
4233
4312
  background: var(--rs-surface-subtle);
4234
- border: none;
4235
4313
  border-radius: 8px;
4236
- cursor: pointer;
4237
4314
  text-align: left;
4238
- font-family: inherit;
4239
4315
  color: var(--rs-foreground);
4240
4316
  transition: background-color 0.15s;
4241
4317
  }
4242
4318
 
4243
- .rs-history-card:hover:not(:disabled) {
4319
+ .rs-history-card-trigger {
4320
+ width: 100%;
4321
+ padding: 12px 8px;
4322
+ background: transparent;
4323
+ border: none;
4324
+ border-radius: inherit;
4325
+ cursor: pointer;
4326
+ text-align: left;
4327
+ font-family: inherit;
4328
+ color: inherit;
4329
+ }
4330
+
4331
+ .rs-history-card:hover {
4244
4332
  background: var(--rs-surface);
4245
4333
  }
4246
4334
 
4247
- .rs-history-card:focus-visible {
4335
+ .rs-history-card-trigger:focus-visible {
4248
4336
  outline: 2px solid var(--rs-border-accent);
4249
4337
  outline-offset: 2px;
4250
4338
  }
@@ -4369,13 +4457,26 @@
4369
4457
  visibility: visible;
4370
4458
  }
4371
4459
 
4372
- /* Expanded detail block under the row. */
4460
+ /* Expanded detail block under the row. Its own padding, since the collapsed
4461
+ card's padding now belongs to the trigger. */
4373
4462
  .rs-history-card-details {
4374
4463
  display: flex;
4375
4464
  flex-direction: column;
4376
4465
  gap: 8px;
4377
4466
  width: 100%;
4378
- padding-top: 16px;
4467
+ padding: 4px 8px 12px;
4468
+ }
4469
+
4470
+ /* The only control in the panel, and it leaves the list — hence the chevron. */
4471
+ .rs-history-card-recover {
4472
+ justify-content: center;
4473
+ gap: 4px;
4474
+ margin-top: 4px;
4475
+ }
4476
+
4477
+ .rs-history-card-recover svg {
4478
+ width: 16px;
4479
+ height: 16px;
4379
4480
  }
4380
4481
 
4381
4482
  .rs-history-card-link {
@@ -4431,6 +4532,11 @@
4431
4532
  color: #82181a;
4432
4533
  }
4433
4534
 
4535
+ .rs-history-badge--refunded {
4536
+ background: var(--rs-surface);
4537
+ color: var(--rs-foreground);
4538
+ }
4539
+
4434
4540
  .rs-history-badge--spam {
4435
4541
  background: var(--rs-surface);
4436
4542
  color: var(--rs-muted);
@@ -4458,6 +4564,23 @@
4458
4564
  color: #fde68a;
4459
4565
  }
4460
4566
 
4567
+ /* Recovery started from a row, and the transaction-hash lookup: a second
4568
+ overlay above the still-mounted panel, so the list keeps its scroll position
4569
+ and the row stays expanded. */
4570
+ .rs-history-recovery,
4571
+ .rs-history-lookup {
4572
+ position: absolute;
4573
+ inset: 0;
4574
+ z-index: 11;
4575
+ display: flex;
4576
+ flex-direction: column;
4577
+ padding: 16px;
4578
+ gap: 16px;
4579
+ background: var(--rs-background);
4580
+ border-radius: inherit;
4581
+ animation: rs-history-slide-in 0.2s cubic-bezier(0.32, 0.72, 0, 1);
4582
+ }
4583
+
4461
4584
  /* Load more button at the end of the list. */
4462
4585
  .rs-history-load-more {
4463
4586
  display: flex;
@@ -4486,77 +4609,6 @@
4486
4609
  cursor: not-allowed;
4487
4610
  }
4488
4611
 
4489
- /* =============================================================================
4490
- Shell — matches Figma "modal" frame (padded container, no fixed title bar)
4491
- ============================================================================= */
4492
-
4493
- .rs-shell {
4494
- display: flex;
4495
- flex-direction: column;
4496
- padding: 16px;
4497
- gap: 16px;
4498
- }
4499
-
4500
- .rs-shell-nav {
4501
- display: flex;
4502
- align-items: center;
4503
- justify-content: space-between;
4504
- min-height: 24px;
4505
- }
4506
-
4507
- .rs-shell-nav-actions {
4508
- display: flex;
4509
- align-items: center;
4510
- gap: 12px;
4511
- }
4512
-
4513
- .rs-shell-icon-btn {
4514
- display: inline-flex;
4515
- align-items: center;
4516
- justify-content: center;
4517
- width: 24px;
4518
- height: 24px;
4519
- padding: 0;
4520
- background: transparent;
4521
- border: none;
4522
- border-radius: 4px;
4523
- color: var(--rs-foreground);
4524
- cursor: pointer;
4525
- transition: opacity 0.15s;
4526
- font-family: inherit;
4527
- }
4528
-
4529
- .rs-shell-icon-btn:hover:not(:disabled) {
4530
- opacity: 0.65;
4531
- }
4532
-
4533
- .rs-shell-icon-btn:disabled {
4534
- opacity: 0.3;
4535
- cursor: not-allowed;
4536
- }
4537
-
4538
- .rs-shell-icon-btn:focus-visible {
4539
- outline: 2px solid var(--rs-border-accent);
4540
- outline-offset: 2px;
4541
- }
4542
-
4543
- .rs-shell-icon-btn svg {
4544
- width: 24px;
4545
- height: 24px;
4546
- }
4547
-
4548
- .rs-shell-body {
4549
- display: flex;
4550
- flex-direction: column;
4551
- gap: 32px;
4552
- }
4553
-
4554
- .rs-shell-section {
4555
- display: flex;
4556
- flex-direction: column;
4557
- gap: 12px;
4558
- }
4559
-
4560
4612
  /* Body header — icon wrapper + title + subtitle */
4561
4613
 
4562
4614
  .rs-body-header {
@@ -5025,26 +5077,6 @@
5025
5077
  height: 16px;
5026
5078
  }
5027
5079
 
5028
- /* Powered-by footer in shell */
5029
-
5030
- .rs-shell-footer {
5031
- display: flex;
5032
- align-items: center;
5033
- justify-content: center;
5034
- gap: 4px;
5035
- font-size: 11px;
5036
- font-weight: 500;
5037
- color: var(--rs-muted);
5038
- }
5039
-
5040
- /* When the shell is active the dialog content no longer needs a separate
5041
- border or background — the shell paints everything inside the same padded
5042
- container, matching Figma. */
5043
- .rs-modal-content:has(.rs-shell) {
5044
- border: 1px solid var(--rs-border);
5045
- background-color: var(--rs-background);
5046
- }
5047
-
5048
5080
  /* =============================================================================
5049
5081
  Fiat On-Ramp (Swapped iframe flow)
5050
5082
  ============================================================================= */