@rhinestone/deposit-modal 0.20.1 → 0.21.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 (53) hide show
  1. package/README.md +42 -17
  2. package/dist/{BankOnrampStep-4D24HVHV.mjs → BankOnrampStep-JTU7WS5R.mjs} +22 -12
  3. package/dist/{BankOnrampStep-3SNUX6V2.cjs → BankOnrampStep-QCPISCAQ.cjs} +34 -24
  4. package/dist/{DepositModalReown-SYQ2SCHC.mjs → DepositModalReown-FJBSF4VL.mjs} +5 -3
  5. package/dist/{DepositModalReown-7EHOJTFW.cjs → DepositModalReown-QJ6O2FWY.cjs} +18 -16
  6. package/dist/{WithdrawModal-LXDIT4UV.mjs → WithdrawModal-CB7RNEPI.mjs} +3 -3
  7. package/dist/WithdrawModal-E2BTWJV7.cjs +12 -0
  8. package/dist/{chunk-ZOJMB5TZ.mjs → chunk-2D3J53PX.mjs} +1 -1
  9. package/dist/{chunk-KXSU24RU.cjs → chunk-4O2UGFFT.cjs} +71 -62
  10. package/dist/{chunk-IPKT3FU6.mjs → chunk-7CHQA2OZ.mjs} +1 -1
  11. package/dist/chunk-ADEWTBSN.cjs +19 -0
  12. package/dist/{chunk-O5OW4S7L.cjs → chunk-AV3SA7TW.cjs} +3 -3
  13. package/dist/{chunk-FW7ZMXQS.mjs → chunk-B2LUWNFX.mjs} +179 -96
  14. package/dist/{chunk-PVFEZ3UG.cjs → chunk-CAIRS4LK.cjs} +449 -366
  15. package/dist/{chunk-LVMNNMOZ.cjs → chunk-CG3JKPUF.cjs} +2 -2
  16. package/dist/{chunk-JPX4MEHV.mjs → chunk-CXEQFRX4.mjs} +1 -1
  17. package/dist/chunk-PP4QE32S.mjs +19 -0
  18. package/dist/{chunk-YQCRXJIL.mjs → chunk-PZIKRYMO.mjs} +1 -1
  19. package/dist/{chunk-CIVFT5KR.cjs → chunk-U7NYYT4Q.cjs} +58 -58
  20. package/dist/{chunk-OZPMRTW3.mjs → chunk-UNXUOV3F.mjs} +39 -30
  21. package/dist/{chunk-D3R3O4CY.cjs → chunk-VQAV6ESI.cjs} +1 -1
  22. package/dist/{chunk-EJDBIWNH.mjs → chunk-WK2ELRL3.mjs} +5 -16
  23. package/dist/{chunk-IPHKBBUV.cjs → chunk-X425VJFY.cjs} +10 -21
  24. package/dist/compliance.cjs +4 -4
  25. package/dist/compliance.mjs +3 -3
  26. package/dist/constants.cjs +2 -2
  27. package/dist/constants.d.cts +1 -1
  28. package/dist/constants.d.ts +1 -1
  29. package/dist/constants.mjs +1 -1
  30. package/dist/deposit.cjs +6 -4
  31. package/dist/deposit.d.cts +2 -2
  32. package/dist/deposit.d.ts +2 -2
  33. package/dist/deposit.mjs +5 -3
  34. package/dist/embed.cjs +16 -14
  35. package/dist/embed.d.cts +1 -1
  36. package/dist/embed.d.ts +1 -1
  37. package/dist/embed.mjs +6 -4
  38. package/dist/index.cjs +7 -5
  39. package/dist/index.d.cts +1 -1
  40. package/dist/index.d.ts +1 -1
  41. package/dist/index.mjs +6 -4
  42. package/dist/onramp.cjs +5 -4
  43. package/dist/onramp.mjs +4 -3
  44. package/dist/server.cjs +12 -8
  45. package/dist/server.mjs +11 -7
  46. package/dist/{types-BEEMfNi2.d.cts → types-BrxDZNEr.d.cts} +20 -10
  47. package/dist/{types-DQDUqzsZ.d.ts → types-DCUB4DY8.d.ts} +20 -10
  48. package/dist/withdraw.cjs +4 -4
  49. package/dist/withdraw.d.cts +2 -2
  50. package/dist/withdraw.d.ts +2 -2
  51. package/dist/withdraw.mjs +3 -3
  52. package/package.json +3 -3
  53. package/dist/WithdrawModal-LLJLEYXZ.cjs +0 -12
package/dist/index.cjs CHANGED
@@ -1,12 +1,14 @@
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 _chunkCIVFT5KRcjs = require('./chunk-CIVFT5KR.cjs');
3
+ var _chunkU7NYYT4Qcjs = require('./chunk-U7NYYT4Q.cjs');
4
4
 
5
5
 
6
- var _chunkPVFEZ3UGcjs = require('./chunk-PVFEZ3UG.cjs');
6
+ var _chunkCAIRS4LKcjs = require('./chunk-CAIRS4LK.cjs');
7
7
  require('./chunk-FVJKUTHF.cjs');
8
- require('./chunk-KXSU24RU.cjs');
8
+ require('./chunk-4O2UGFFT.cjs');
9
9
  require('./chunk-G264OM23.cjs');
10
+ require('./chunk-ADEWTBSN.cjs');
11
+ require('./chunk-CG3JKPUF.cjs');
10
12
 
11
13
 
12
14
 
@@ -25,7 +27,7 @@ require('./chunk-G264OM23.cjs');
25
27
 
26
28
 
27
29
  var _chunkFKJ6EJHHcjs = require('./chunk-FKJ6EJHH.cjs');
28
- require('./chunk-D3R3O4CY.cjs');
30
+ require('./chunk-VQAV6ESI.cjs');
29
31
 
30
32
  // src/core/reown-disconnect.ts
31
33
  async function disconnectWallet() {
@@ -66,4 +68,4 @@ async function disconnectWallet() {
66
68
 
67
69
 
68
70
 
69
- exports.DepositModal = _chunkPVFEZ3UGcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkFKJ6EJHHcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkFKJ6EJHHcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkFKJ6EJHHcjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkFKJ6EJHHcjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkFKJ6EJHHcjs.NATIVE_TOKEN_ADDRESS; exports.STELLAR_PUBNET_CAIP2 = _chunkFKJ6EJHHcjs.STELLAR_PUBNET_CAIP2; exports.SUPPORTED_CHAIN_IDS = _chunkFKJ6EJHHcjs.SUPPORTED_CHAIN_IDS; exports.TRON_MAINNET_CAIP2 = _chunkFKJ6EJHHcjs.TRON_MAINNET_CAIP2; exports.WithdrawModal = _chunkCIVFT5KRcjs.WithdrawModal; exports.disconnectWallet = disconnectWallet; exports.getChainBadge = _chunkFKJ6EJHHcjs.getChainBadge; exports.getChainIcon = _chunkFKJ6EJHHcjs.getChainIcon; exports.getChainId = _chunkFKJ6EJHHcjs.getChainId; exports.getChainName = _chunkFKJ6EJHHcjs.getChainName; exports.getExplorerName = _chunkFKJ6EJHHcjs.getExplorerName; exports.getExplorerTxUrl = _chunkFKJ6EJHHcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkFKJ6EJHHcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkFKJ6EJHHcjs.getSupportedChainIds;
71
+ exports.DepositModal = _chunkCAIRS4LKcjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkFKJ6EJHHcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkFKJ6EJHHcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkFKJ6EJHHcjs.HYPERCORE_USDC_ADDRESS; exports.HYPERCORE_USDT0_ADDRESS = _chunkFKJ6EJHHcjs.HYPERCORE_USDT0_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkFKJ6EJHHcjs.NATIVE_TOKEN_ADDRESS; exports.STELLAR_PUBNET_CAIP2 = _chunkFKJ6EJHHcjs.STELLAR_PUBNET_CAIP2; exports.SUPPORTED_CHAIN_IDS = _chunkFKJ6EJHHcjs.SUPPORTED_CHAIN_IDS; exports.TRON_MAINNET_CAIP2 = _chunkFKJ6EJHHcjs.TRON_MAINNET_CAIP2; exports.WithdrawModal = _chunkU7NYYT4Qcjs.WithdrawModal; exports.disconnectWallet = disconnectWallet; exports.getChainBadge = _chunkFKJ6EJHHcjs.getChainBadge; exports.getChainIcon = _chunkFKJ6EJHHcjs.getChainIcon; exports.getChainId = _chunkFKJ6EJHHcjs.getChainId; exports.getChainName = _chunkFKJ6EJHHcjs.getChainName; exports.getExplorerName = _chunkFKJ6EJHHcjs.getExplorerName; exports.getExplorerTxUrl = _chunkFKJ6EJHHcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkFKJ6EJHHcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkFKJ6EJHHcjs.getSupportedChainIds;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, B as BankOnrampConfig, 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 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, E as DepositAnalyticsStep, F as DepositAnalyticsTransferStep, G as DepositAnalyticsUiOutcome, H as DepositAnalyticsWalletStep, I as DepositAssetMigrationMethodIdentifiers, J as DepositCompleteEventData, K as DepositExchangeConnectMethodIdentifiers, L as DepositFailedEventData, M as DepositFiatOnrampMethodIdentifiers, N as DepositFundingMethod, O as DepositLifecycleEvent, P as DepositModalProps, Q as DepositModalTheme, R as DepositModalUIConfig, S as DepositSubmittedEventData, T as DepositTransferHandoffIdentifiers, U as DepositWalletIntegration, V as DepositWalletMethodIdentifiers, W as ErrorEventData, X as FiatMethodsConfig, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, $ as ModalAnalyticsEvent, a0 as OutputTokenRule, a1 as PaymentConfig, 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-BEEMfNi2.cjs';
3
+ 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 ConnectedEventData, q as CustomerSessionRequest, D as DepositAnalyticsAbandonmentReason, r as DepositAnalyticsCloseSource, s as DepositAnalyticsCorrelator, t as DepositAnalyticsEvent, u as DepositAnalyticsEventPayload, v as DepositAnalyticsExchangeStep, w as DepositAnalyticsFailureReason, x as DepositAnalyticsFiatStep, y as DepositAnalyticsMigrationStep, z as DepositAnalyticsSessionProperties, B as DepositAnalyticsSharedStep, E as DepositAnalyticsStep, F as DepositAnalyticsTransferStep, G as DepositAnalyticsUiOutcome, H as DepositAnalyticsWalletStep, I as DepositAssetMigrationMethodIdentifiers, J as DepositCompleteEventData, K as DepositExchangeConnectMethodIdentifiers, L as DepositFailedEventData, M as DepositFiatOnrampMethodIdentifiers, N as DepositFundingMethod, O as DepositLifecycleEvent, P as DepositModalProps, Q as DepositModalTheme, R as DepositModalUIConfig, S as DepositSubmittedEventData, T as DepositTransferHandoffIdentifiers, U as DepositWalletIntegration, V as DepositWalletMethodIdentifiers, W as ErrorEventData, X as FiatMethodsConfig, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, $ as ModalAnalyticsEvent, a0 as OutputTokenRule, a1 as PaymentConfig, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload, a6 as VirtualAccountOnrampConfig, a7 as WithdrawAnalyticsAbandonmentReason, a8 as WithdrawAnalyticsCloseSource, a9 as WithdrawAnalyticsEvent, aa as WithdrawAnalyticsEventPayload, ab as WithdrawAnalyticsFailureReason, ac as WithdrawAnalyticsSessionProperties, ad as WithdrawAnalyticsStep, ae as WithdrawAnalyticsUiOutcome, af as WithdrawCompleteEventData, ag as WithdrawFailedEventData, ah as WithdrawLifecycleEvent, ai as WithdrawModalProps, aj as WithdrawSubmittedEventData, ak as WithdrawTransferRequest } from './types-BrxDZNEr.cjs';
4
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
5
5
  export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, g as getChainBadge, a as getChainIcon, b as getChainId, c as getChainName, d as getExplorerName, e as getExplorerTxUrl, f as getExplorerUrl, h as getSupportedChainIds } from './constants-BQDxVNgr.cjs';
6
6
  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-nwFFL46o.cjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, B as BankOnrampConfig, 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 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, E as DepositAnalyticsStep, F as DepositAnalyticsTransferStep, G as DepositAnalyticsUiOutcome, H as DepositAnalyticsWalletStep, I as DepositAssetMigrationMethodIdentifiers, J as DepositCompleteEventData, K as DepositExchangeConnectMethodIdentifiers, L as DepositFailedEventData, M as DepositFiatOnrampMethodIdentifiers, N as DepositFundingMethod, O as DepositLifecycleEvent, P as DepositModalProps, Q as DepositModalTheme, R as DepositModalUIConfig, S as DepositSubmittedEventData, T as DepositTransferHandoffIdentifiers, U as DepositWalletIntegration, V as DepositWalletMethodIdentifiers, W as ErrorEventData, X as FiatMethodsConfig, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, $ as ModalAnalyticsEvent, a0 as OutputTokenRule, a1 as PaymentConfig, 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-DQDUqzsZ.js';
3
+ 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 ConnectedEventData, q as CustomerSessionRequest, D as DepositAnalyticsAbandonmentReason, r as DepositAnalyticsCloseSource, s as DepositAnalyticsCorrelator, t as DepositAnalyticsEvent, u as DepositAnalyticsEventPayload, v as DepositAnalyticsExchangeStep, w as DepositAnalyticsFailureReason, x as DepositAnalyticsFiatStep, y as DepositAnalyticsMigrationStep, z as DepositAnalyticsSessionProperties, B as DepositAnalyticsSharedStep, E as DepositAnalyticsStep, F as DepositAnalyticsTransferStep, G as DepositAnalyticsUiOutcome, H as DepositAnalyticsWalletStep, I as DepositAssetMigrationMethodIdentifiers, J as DepositCompleteEventData, K as DepositExchangeConnectMethodIdentifiers, L as DepositFailedEventData, M as DepositFiatOnrampMethodIdentifiers, N as DepositFundingMethod, O as DepositLifecycleEvent, P as DepositModalProps, Q as DepositModalTheme, R as DepositModalUIConfig, S as DepositSubmittedEventData, T as DepositTransferHandoffIdentifiers, U as DepositWalletIntegration, V as DepositWalletMethodIdentifiers, W as ErrorEventData, X as FiatMethodsConfig, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, $ as ModalAnalyticsEvent, a0 as OutputTokenRule, a1 as PaymentConfig, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload, a6 as VirtualAccountOnrampConfig, a7 as WithdrawAnalyticsAbandonmentReason, a8 as WithdrawAnalyticsCloseSource, a9 as WithdrawAnalyticsEvent, aa as WithdrawAnalyticsEventPayload, ab as WithdrawAnalyticsFailureReason, ac as WithdrawAnalyticsSessionProperties, ad as WithdrawAnalyticsStep, ae as WithdrawAnalyticsUiOutcome, af as WithdrawCompleteEventData, ag as WithdrawFailedEventData, ah as WithdrawLifecycleEvent, ai as WithdrawModalProps, aj as WithdrawSubmittedEventData, ak as WithdrawTransferRequest } from './types-DCUB4DY8.js';
4
4
  export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
5
5
  export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, g as getChainBadge, a as getChainIcon, b as getChainId, c as getChainName, d as getExplorerName, e as getExplorerTxUrl, f as getExplorerUrl, h as getSupportedChainIds } from './constants-DjGQW5N5.js';
6
6
  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-nwFFL46o.js';
package/dist/index.mjs CHANGED
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-IPKT3FU6.mjs";
3
+ } from "./chunk-7CHQA2OZ.mjs";
4
4
  import {
5
5
  DepositModal
6
- } from "./chunk-FW7ZMXQS.mjs";
6
+ } from "./chunk-B2LUWNFX.mjs";
7
7
  import "./chunk-2FOPO4N5.mjs";
8
- import "./chunk-OZPMRTW3.mjs";
8
+ import "./chunk-UNXUOV3F.mjs";
9
9
  import "./chunk-YY4ZOAH5.mjs";
10
+ import "./chunk-PP4QE32S.mjs";
11
+ import "./chunk-PZIKRYMO.mjs";
10
12
  import {
11
13
  HYPERCORE_CHAIN_ID,
12
14
  HYPERCORE_SPOT_CAIP2,
@@ -25,7 +27,7 @@ import {
25
27
  getExplorerUrl,
26
28
  getSupportedChainIds
27
29
  } from "./chunk-E7IMWVMN.mjs";
28
- import "./chunk-ZOJMB5TZ.mjs";
30
+ import "./chunk-2D3J53PX.mjs";
29
31
 
30
32
  // src/core/reown-disconnect.ts
31
33
  async function disconnectWallet() {
package/dist/onramp.cjs CHANGED
@@ -1,11 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkIPHKBBUVcjs = require('./chunk-IPHKBBUV.cjs');
3
+ var _chunkX425VJFYcjs = require('./chunk-X425VJFY.cjs');
4
+ require('./chunk-ADEWTBSN.cjs');
4
5
 
5
6
 
6
- var _chunkLVMNNMOZcjs = require('./chunk-LVMNNMOZ.cjs');
7
- require('./chunk-D3R3O4CY.cjs');
7
+ var _chunkCG3JKPUFcjs = require('./chunk-CG3JKPUF.cjs');
8
+ require('./chunk-VQAV6ESI.cjs');
8
9
 
9
10
 
10
11
 
11
- exports.ScopedRequestError = _chunkLVMNNMOZcjs.ScopedRequestError; exports.createOnrampService = _chunkIPHKBBUVcjs.createOnrampService;
12
+ exports.ScopedRequestError = _chunkCG3JKPUFcjs.ScopedRequestError; exports.createOnrampService = _chunkX425VJFYcjs.createOnrampService;
package/dist/onramp.mjs CHANGED
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  createOnrampService
3
- } from "./chunk-EJDBIWNH.mjs";
3
+ } from "./chunk-WK2ELRL3.mjs";
4
+ import "./chunk-PP4QE32S.mjs";
4
5
  import {
5
6
  ScopedRequestError
6
- } from "./chunk-YQCRXJIL.mjs";
7
- import "./chunk-ZOJMB5TZ.mjs";
7
+ } from "./chunk-PZIKRYMO.mjs";
8
+ import "./chunk-2D3J53PX.mjs";
8
9
  export {
9
10
  ScopedRequestError,
10
11
  createOnrampService
package/dist/server.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/server.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/server.ts
2
2
  var DEFAULT_PROCESSOR_URL = "https://v1.orchestrator.rhinestone.dev/deposit-processor";
3
3
  function createCustomerSessionHandler(options) {
4
4
  const url = `${(_nullishCoalesce(options.processorUrl, () => ( DEFAULT_PROCESSOR_URL))).replace(
@@ -9,13 +9,14 @@ function createCustomerSessionHandler(options) {
9
9
  "Content-Type": "application/json",
10
10
  "Cache-Control": "no-store"
11
11
  };
12
- const error = (status, message) => new Response(JSON.stringify({ error: message }), {
12
+ const error = (status, message, code) => new Response(JSON.stringify({ error: message, ...code && { code } }), {
13
13
  status,
14
14
  headers: responseHeaders
15
15
  });
16
16
  return async (request) => {
17
17
  if (request.method !== "POST") return error(405, "Method not allowed");
18
18
  try {
19
+ const { resumeOnly } = await _asyncNullishCoalesce(await request.clone().json().catch(() => null), async () => ( {}));
19
20
  const identity = await options.authorize(request);
20
21
  if (!identity) return error(401, "Unauthorized");
21
22
  const upstream = await fetch(url, {
@@ -26,17 +27,20 @@ function createCustomerSessionHandler(options) {
26
27
  },
27
28
  body: JSON.stringify({
28
29
  externalCustomerId: identity.externalCustomerId,
29
- ...identity.smartAccount ? { smartAccount: identity.smartAccount } : {}
30
+ ...identity.smartAccount ? { smartAccount: identity.smartAccount } : {},
31
+ ...resumeOnly === true ? { resumeOnly: true } : {}
30
32
  }),
31
33
  cache: "no-store",
32
34
  redirect: "manual",
33
35
  signal: AbortSignal.timeout(15e3)
34
36
  });
35
- if (!upstream.ok)
36
- return error(
37
- upstream.status >= 400 && upstream.status < 500 ? upstream.status : 502,
38
- "Customer session unavailable"
39
- );
37
+ if (!upstream.ok) {
38
+ if (upstream.status < 400 || upstream.status >= 500)
39
+ return error(502, "Customer session unavailable");
40
+ const body = await upstream.json().catch(() => null);
41
+ const code = typeof _optionalChain([body, 'optionalAccess', _ => _.code]) === "string" && /^[A-Z_]{1,64}$/.test(body.code) ? body.code : void 0;
42
+ return error(upstream.status, "Customer session unavailable", code);
43
+ }
40
44
  const value = await upstream.json();
41
45
  if (!value || typeof value !== "object")
42
46
  return error(502, "Invalid customer session");
package/dist/server.mjs CHANGED
@@ -9,13 +9,14 @@ function createCustomerSessionHandler(options) {
9
9
  "Content-Type": "application/json",
10
10
  "Cache-Control": "no-store"
11
11
  };
12
- const error = (status, message) => new Response(JSON.stringify({ error: message }), {
12
+ const error = (status, message, code) => new Response(JSON.stringify({ error: message, ...code && { code } }), {
13
13
  status,
14
14
  headers: responseHeaders
15
15
  });
16
16
  return async (request) => {
17
17
  if (request.method !== "POST") return error(405, "Method not allowed");
18
18
  try {
19
+ const { resumeOnly } = await request.clone().json().catch(() => null) ?? {};
19
20
  const identity = await options.authorize(request);
20
21
  if (!identity) return error(401, "Unauthorized");
21
22
  const upstream = await fetch(url, {
@@ -26,17 +27,20 @@ function createCustomerSessionHandler(options) {
26
27
  },
27
28
  body: JSON.stringify({
28
29
  externalCustomerId: identity.externalCustomerId,
29
- ...identity.smartAccount ? { smartAccount: identity.smartAccount } : {}
30
+ ...identity.smartAccount ? { smartAccount: identity.smartAccount } : {},
31
+ ...resumeOnly === true ? { resumeOnly: true } : {}
30
32
  }),
31
33
  cache: "no-store",
32
34
  redirect: "manual",
33
35
  signal: AbortSignal.timeout(15e3)
34
36
  });
35
- if (!upstream.ok)
36
- return error(
37
- upstream.status >= 400 && upstream.status < 500 ? upstream.status : 502,
38
- "Customer session unavailable"
39
- );
37
+ if (!upstream.ok) {
38
+ if (upstream.status < 400 || upstream.status >= 500)
39
+ return error(502, "Customer session unavailable");
40
+ const body = await upstream.json().catch(() => null);
41
+ const code = typeof body?.code === "string" && /^[A-Z_]{1,64}$/.test(body.code) ? body.code : void 0;
42
+ return error(upstream.status, "Customer session unavailable", code);
43
+ }
40
44
  const value = await upstream.json();
41
45
  if (!value || typeof value !== "object")
42
46
  return error(502, "Invalid customer session");
@@ -94,16 +94,16 @@ type RecoveryErrorCode = "DEPOSIT_NOT_RECOVERABLE" | "RECOVERY_UNSUPPORTED" | "S
94
94
  */
95
95
  type HistoryStatus = "pending" | "processing" | "completed" | "failed" | "refunded" | "spam";
96
96
 
97
+ /** Forward to your endpoint as-is; `createCustomerSessionHandler` reads it. */
98
+ interface CustomerSessionRequest {
99
+ /** History's read: never creates a customer or binds the account. */
100
+ resumeOnly?: boolean;
101
+ }
102
+
97
103
  /** Opt-in customer session and locale for hosted bank-transfer setup. */
98
- interface BankOnrampConfig {
104
+ interface VirtualAccountOnrampConfig {
99
105
  /** HTTPS support page or mailto address for bank-transfer questions. */
100
106
  supportUrl?: string;
101
- /**
102
- * Return a short-lived customer session for the registered deposit account.
103
- * The modal requests a fresh session for each backend request and never stores
104
- * its bearer token.
105
- */
106
- getSession: (smartAccount: Address) => CustomerSession | Promise<CustomerSession>;
107
107
  }
108
108
  type Caip2ChainId = `eip155:${number}` | `solana:${string}`;
109
109
  type ChainId = DisplayChainId | Caip2ChainId;
@@ -313,10 +313,20 @@ interface DepositModalProps {
313
313
  enableFiatOnramp?: boolean;
314
314
  /**
315
315
  * Use Noah for Bank transfer when provisioned; unavailable routes use Swapped.
316
+ * Needs `getCustomerSession`; without it this prop is ignored.
316
317
  * Other fiat methods continue to use Swapped. When
317
318
  * `fiatMethods` is provided, it must explicitly enable `"bank-transfer"`.
318
319
  */
319
- bankOnramp?: BankOnrampConfig;
320
+ virtualAccountOnramp?: VirtualAccountOnrampConfig;
321
+ /**
322
+ * Opt-in. A short-lived customer session for the registered deposit account,
323
+ * from your authenticated server (`createCustomerSessionHandler`). Bank
324
+ * transfer requires it; History uses it to list every provider's orders.
325
+ * Requested per backend call and never stored. Forward `options` in the body:
326
+ * History passes `{ resumeOnly: true }` so viewing orders never binds an account.
327
+ * A failure is an error on the bank step only; History then shows deposits.
328
+ */
329
+ getCustomerSession?: (smartAccount: Address, options?: CustomerSessionRequest) => CustomerSession | Promise<CustomerSession>;
320
330
  /** Show the Transfer Crypto / QR row. Default: true. */
321
331
  enableQrTransfer?: boolean;
322
332
  /**
@@ -730,7 +740,7 @@ type AnalyticsReasonFamily = "account_setup" | "amount" | "bank" | "exchange" |
730
740
  * matched from this declared list, not by splitting at the first underscore.
731
741
  */
732
742
  type RoutableAnalyticsReason<Reason extends `${AnalyticsReasonFamily}_${string}`> = Reason;
733
- type DepositAnalyticsFailureReason = RoutableAnalyticsReason<"account_setup_pending" | "account_setup_stale_response" | "account_setup_failed" | "wallet_connection_requested" | "wallet_connection_rejected" | "wallet_connection_failed" | "wallet_disconnected" | "wallet_portfolio_load_failed" | "wallet_no_supported_assets" | "wallet_no_funded_assets" | "amount_invalid" | "amount_insufficient_balance" | "amount_below_minimum" | "amount_above_maximum" | "quote_source_price_unavailable" | "quote_target_price_unavailable" | "quote_unavailable" | "wallet_chain_switch_rejected" | "wallet_chain_switch_failed" | "wallet_permit_preparation_unavailable" | "wallet_signature_rejected" | "submission_rejected" | "submission_failed" | "submission_missing_hash" | "submission_uncertain" | "transfer_source_unavailable" | "transfer_address_unavailable" | "transfer_clipboard_failed" | "processor_status_poll_failed" | "regional_methods_timeout" | "regional_methods_failed" | "regional_methods_fallback" | "regional_methods_empty" | "exchange_list_failed" | "exchange_list_empty" | "exchange_setup_unavailable" | "exchange_fee_changed" | "exchange_fee_not_acknowledged" | "swapped_mint_failed" | "swapped_url_untrusted" | "swapped_iframe_timeout" | "swapped_browser_open_failed" | "bank_options_failed" | "bank_setup_failed" | "bank_details_failed" | "bank_details_pending" | "provider_cancelled" | "provider_failed" | "processor_failed" | "migration_wallet_required" | "migration_availability_loading" | "migration_availability_failed" | "migration_unavailable" | "migration_no_balance" | "migration_partial_availability" | "migration_coming_soon">;
743
+ type DepositAnalyticsFailureReason = RoutableAnalyticsReason<"account_setup_pending" | "account_setup_stale_response" | "account_setup_failed" | "wallet_connection_requested" | "wallet_connection_rejected" | "wallet_connection_failed" | "wallet_disconnected" | "wallet_portfolio_load_failed" | "wallet_no_supported_assets" | "wallet_no_funded_assets" | "amount_invalid" | "amount_insufficient_balance" | "amount_below_minimum" | "amount_above_maximum" | "quote_source_price_unavailable" | "quote_target_price_unavailable" | "quote_unavailable" | "wallet_chain_switch_rejected" | "wallet_chain_switch_failed" | "wallet_permit_preparation_unavailable" | "wallet_signature_rejected" | "submission_rejected" | "submission_failed" | "submission_missing_hash" | "submission_uncertain" | "transfer_source_unavailable" | "transfer_address_unavailable" | "transfer_clipboard_failed" | "processor_status_poll_failed" | "regional_methods_timeout" | "regional_methods_failed" | "regional_methods_fallback" | "regional_methods_empty" | "exchange_list_failed" | "exchange_list_empty" | "exchange_setup_unavailable" | "exchange_fee_changed" | "exchange_fee_not_acknowledged" | "swapped_mint_failed" | "swapped_url_untrusted" | "swapped_iframe_timeout" | "swapped_browser_open_failed" | "bank_options_failed" | "bank_session_refused" | "bank_setup_failed" | "bank_details_failed" | "bank_details_pending" | "provider_cancelled" | "provider_failed" | "processor_failed" | "migration_wallet_required" | "migration_availability_loading" | "migration_availability_failed" | "migration_unavailable" | "migration_no_balance" | "migration_partial_availability" | "migration_coming_soon">;
734
744
  type DepositAnalyticsAbandonmentReason = "back" | "modal_close" | "provider_back" | "wallet_disconnect" | "method_replacement" | "initial_migration_fallback";
735
745
  type DepositAnalyticsCloseSource = "header_button" | "escape" | "overlay" | "host_controlled" | "provider_back" | "native_dismiss_request" | "success_done" | "failure_cancel" | "new_deposit_reset";
736
746
  type DepositAnalyticsUiOutcome = "completed" | "failed" | "cancelled";
@@ -1072,4 +1082,4 @@ interface AnalyticsIngestFailureEvent {
1072
1082
  }
1073
1083
  type ModalAnalyticsEvent = DepositAnalyticsEvent | WithdrawAnalyticsEvent | ClaimAnalyticsEvent | AnalyticsIngestFailureEvent;
1074
1084
 
1075
- export type { ModalAnalyticsEvent as $, AnalyticsEventEnvelope as A, BankOnrampConfig as B, ChainId as C, DepositAnalyticsAbandonmentReason as D, DepositAnalyticsStep as E, DepositAnalyticsTransferStep as F, DepositAnalyticsUiOutcome as G, DepositAnalyticsWalletStep as H, DepositAssetMigrationMethodIdentifiers as I, DepositCompleteEventData as J, DepositExchangeConnectMethodIdentifiers as K, DepositFailedEventData as L, DepositFiatOnrampMethodIdentifiers as M, DepositFundingMethod as N, DepositLifecycleEvent as O, DepositModalProps as P, DepositModalTheme as Q, DepositModalUIConfig as R, DepositSubmittedEventData as S, DepositTransferHandoffIdentifiers as T, DepositWalletIntegration as U, DepositWalletMethodIdentifiers as V, ErrorEventData as W, FiatMethodsConfig as X, HistoryAnalyticsBadge as Y, HistoryClaimEntrySource as Z, HistoryStatus as _, AnalyticsIngestFailureEvent as a, OutputTokenRule as a0, PaymentConfig as a1, RecoveryErrorCode as a2, RpcUrlMap as a3, SignRecovery as a4, SignRecoveryPayload as a5, WithdrawAnalyticsAbandonmentReason as a6, WithdrawAnalyticsCloseSource as a7, WithdrawAnalyticsEvent as a8, WithdrawAnalyticsEventPayload as a9, WithdrawAnalyticsFailureReason as aa, WithdrawAnalyticsSessionProperties as ab, WithdrawAnalyticsStep as ac, WithdrawAnalyticsUiOutcome as ad, WithdrawCompleteEventData as ae, WithdrawFailedEventData as af, WithdrawLifecycleEvent as ag, WithdrawModalProps as ah, WithdrawSubmittedEventData as ai, WithdrawTransferRequest as aj, AnalyticsIngestFailureReason as b, AnalyticsReasonFamily as c, AssetMigrationsConfig as d, AssetOption as e, ClaimAnalyticsAbandonmentReason as f, ClaimAnalyticsCloseSource as g, ClaimAnalyticsCorrelation as h, ClaimAnalyticsEntrySource as i, ClaimAnalyticsEvent as j, ClaimAnalyticsEventPayload as k, ClaimAnalyticsFailureReason as l, ClaimAnalyticsSessionProperties as m, ClaimAnalyticsStep as n, ClaimAnalyticsUiOutcome as o, ConnectedEventData as p, DepositAnalyticsCloseSource as q, DepositAnalyticsCorrelator as r, DepositAnalyticsEvent as s, DepositAnalyticsEventPayload as t, DepositAnalyticsExchangeStep as u, DepositAnalyticsFailureReason as v, DepositAnalyticsFiatStep as w, DepositAnalyticsMigrationStep as x, DepositAnalyticsSessionProperties as y, DepositAnalyticsSharedStep as z };
1085
+ export type { ModalAnalyticsEvent as $, AnalyticsEventEnvelope as A, DepositAnalyticsSharedStep as B, ChainId as C, DepositAnalyticsAbandonmentReason as D, DepositAnalyticsStep as E, DepositAnalyticsTransferStep as F, DepositAnalyticsUiOutcome as G, DepositAnalyticsWalletStep as H, DepositAssetMigrationMethodIdentifiers as I, DepositCompleteEventData as J, DepositExchangeConnectMethodIdentifiers as K, DepositFailedEventData as L, DepositFiatOnrampMethodIdentifiers as M, DepositFundingMethod as N, DepositLifecycleEvent as O, DepositModalProps as P, DepositModalTheme as Q, DepositModalUIConfig as R, DepositSubmittedEventData as S, DepositTransferHandoffIdentifiers as T, DepositWalletIntegration as U, DepositWalletMethodIdentifiers as V, ErrorEventData as W, FiatMethodsConfig as X, HistoryAnalyticsBadge as Y, HistoryClaimEntrySource as Z, HistoryStatus as _, AnalyticsIngestFailureEvent as a, OutputTokenRule as a0, PaymentConfig as a1, RecoveryErrorCode as a2, RpcUrlMap as a3, SignRecovery as a4, SignRecoveryPayload as a5, VirtualAccountOnrampConfig as a6, WithdrawAnalyticsAbandonmentReason as a7, WithdrawAnalyticsCloseSource as a8, WithdrawAnalyticsEvent as a9, WithdrawAnalyticsEventPayload as aa, WithdrawAnalyticsFailureReason as ab, WithdrawAnalyticsSessionProperties as ac, WithdrawAnalyticsStep as ad, WithdrawAnalyticsUiOutcome as ae, WithdrawCompleteEventData as af, WithdrawFailedEventData as ag, WithdrawLifecycleEvent as ah, WithdrawModalProps as ai, WithdrawSubmittedEventData as aj, WithdrawTransferRequest as ak, AnalyticsIngestFailureReason as b, AnalyticsReasonFamily as c, AssetMigrationsConfig as d, AssetOption as e, ClaimAnalyticsAbandonmentReason as f, ClaimAnalyticsCloseSource as g, ClaimAnalyticsCorrelation as h, ClaimAnalyticsEntrySource as i, ClaimAnalyticsEvent as j, ClaimAnalyticsEventPayload as k, ClaimAnalyticsFailureReason as l, ClaimAnalyticsSessionProperties as m, ClaimAnalyticsStep as n, ClaimAnalyticsUiOutcome as o, ConnectedEventData as p, CustomerSessionRequest as q, DepositAnalyticsCloseSource as r, DepositAnalyticsCorrelator as s, DepositAnalyticsEvent as t, DepositAnalyticsEventPayload as u, DepositAnalyticsExchangeStep as v, DepositAnalyticsFailureReason as w, DepositAnalyticsFiatStep as x, DepositAnalyticsMigrationStep as y, DepositAnalyticsSessionProperties as z };
@@ -94,16 +94,16 @@ type RecoveryErrorCode = "DEPOSIT_NOT_RECOVERABLE" | "RECOVERY_UNSUPPORTED" | "S
94
94
  */
95
95
  type HistoryStatus = "pending" | "processing" | "completed" | "failed" | "refunded" | "spam";
96
96
 
97
+ /** Forward to your endpoint as-is; `createCustomerSessionHandler` reads it. */
98
+ interface CustomerSessionRequest {
99
+ /** History's read: never creates a customer or binds the account. */
100
+ resumeOnly?: boolean;
101
+ }
102
+
97
103
  /** Opt-in customer session and locale for hosted bank-transfer setup. */
98
- interface BankOnrampConfig {
104
+ interface VirtualAccountOnrampConfig {
99
105
  /** HTTPS support page or mailto address for bank-transfer questions. */
100
106
  supportUrl?: string;
101
- /**
102
- * Return a short-lived customer session for the registered deposit account.
103
- * The modal requests a fresh session for each backend request and never stores
104
- * its bearer token.
105
- */
106
- getSession: (smartAccount: Address) => CustomerSession | Promise<CustomerSession>;
107
107
  }
108
108
  type Caip2ChainId = `eip155:${number}` | `solana:${string}`;
109
109
  type ChainId = DisplayChainId | Caip2ChainId;
@@ -313,10 +313,20 @@ interface DepositModalProps {
313
313
  enableFiatOnramp?: boolean;
314
314
  /**
315
315
  * Use Noah for Bank transfer when provisioned; unavailable routes use Swapped.
316
+ * Needs `getCustomerSession`; without it this prop is ignored.
316
317
  * Other fiat methods continue to use Swapped. When
317
318
  * `fiatMethods` is provided, it must explicitly enable `"bank-transfer"`.
318
319
  */
319
- bankOnramp?: BankOnrampConfig;
320
+ virtualAccountOnramp?: VirtualAccountOnrampConfig;
321
+ /**
322
+ * Opt-in. A short-lived customer session for the registered deposit account,
323
+ * from your authenticated server (`createCustomerSessionHandler`). Bank
324
+ * transfer requires it; History uses it to list every provider's orders.
325
+ * Requested per backend call and never stored. Forward `options` in the body:
326
+ * History passes `{ resumeOnly: true }` so viewing orders never binds an account.
327
+ * A failure is an error on the bank step only; History then shows deposits.
328
+ */
329
+ getCustomerSession?: (smartAccount: Address, options?: CustomerSessionRequest) => CustomerSession | Promise<CustomerSession>;
320
330
  /** Show the Transfer Crypto / QR row. Default: true. */
321
331
  enableQrTransfer?: boolean;
322
332
  /**
@@ -730,7 +740,7 @@ type AnalyticsReasonFamily = "account_setup" | "amount" | "bank" | "exchange" |
730
740
  * matched from this declared list, not by splitting at the first underscore.
731
741
  */
732
742
  type RoutableAnalyticsReason<Reason extends `${AnalyticsReasonFamily}_${string}`> = Reason;
733
- type DepositAnalyticsFailureReason = RoutableAnalyticsReason<"account_setup_pending" | "account_setup_stale_response" | "account_setup_failed" | "wallet_connection_requested" | "wallet_connection_rejected" | "wallet_connection_failed" | "wallet_disconnected" | "wallet_portfolio_load_failed" | "wallet_no_supported_assets" | "wallet_no_funded_assets" | "amount_invalid" | "amount_insufficient_balance" | "amount_below_minimum" | "amount_above_maximum" | "quote_source_price_unavailable" | "quote_target_price_unavailable" | "quote_unavailable" | "wallet_chain_switch_rejected" | "wallet_chain_switch_failed" | "wallet_permit_preparation_unavailable" | "wallet_signature_rejected" | "submission_rejected" | "submission_failed" | "submission_missing_hash" | "submission_uncertain" | "transfer_source_unavailable" | "transfer_address_unavailable" | "transfer_clipboard_failed" | "processor_status_poll_failed" | "regional_methods_timeout" | "regional_methods_failed" | "regional_methods_fallback" | "regional_methods_empty" | "exchange_list_failed" | "exchange_list_empty" | "exchange_setup_unavailable" | "exchange_fee_changed" | "exchange_fee_not_acknowledged" | "swapped_mint_failed" | "swapped_url_untrusted" | "swapped_iframe_timeout" | "swapped_browser_open_failed" | "bank_options_failed" | "bank_setup_failed" | "bank_details_failed" | "bank_details_pending" | "provider_cancelled" | "provider_failed" | "processor_failed" | "migration_wallet_required" | "migration_availability_loading" | "migration_availability_failed" | "migration_unavailable" | "migration_no_balance" | "migration_partial_availability" | "migration_coming_soon">;
743
+ type DepositAnalyticsFailureReason = RoutableAnalyticsReason<"account_setup_pending" | "account_setup_stale_response" | "account_setup_failed" | "wallet_connection_requested" | "wallet_connection_rejected" | "wallet_connection_failed" | "wallet_disconnected" | "wallet_portfolio_load_failed" | "wallet_no_supported_assets" | "wallet_no_funded_assets" | "amount_invalid" | "amount_insufficient_balance" | "amount_below_minimum" | "amount_above_maximum" | "quote_source_price_unavailable" | "quote_target_price_unavailable" | "quote_unavailable" | "wallet_chain_switch_rejected" | "wallet_chain_switch_failed" | "wallet_permit_preparation_unavailable" | "wallet_signature_rejected" | "submission_rejected" | "submission_failed" | "submission_missing_hash" | "submission_uncertain" | "transfer_source_unavailable" | "transfer_address_unavailable" | "transfer_clipboard_failed" | "processor_status_poll_failed" | "regional_methods_timeout" | "regional_methods_failed" | "regional_methods_fallback" | "regional_methods_empty" | "exchange_list_failed" | "exchange_list_empty" | "exchange_setup_unavailable" | "exchange_fee_changed" | "exchange_fee_not_acknowledged" | "swapped_mint_failed" | "swapped_url_untrusted" | "swapped_iframe_timeout" | "swapped_browser_open_failed" | "bank_options_failed" | "bank_session_refused" | "bank_setup_failed" | "bank_details_failed" | "bank_details_pending" | "provider_cancelled" | "provider_failed" | "processor_failed" | "migration_wallet_required" | "migration_availability_loading" | "migration_availability_failed" | "migration_unavailable" | "migration_no_balance" | "migration_partial_availability" | "migration_coming_soon">;
734
744
  type DepositAnalyticsAbandonmentReason = "back" | "modal_close" | "provider_back" | "wallet_disconnect" | "method_replacement" | "initial_migration_fallback";
735
745
  type DepositAnalyticsCloseSource = "header_button" | "escape" | "overlay" | "host_controlled" | "provider_back" | "native_dismiss_request" | "success_done" | "failure_cancel" | "new_deposit_reset";
736
746
  type DepositAnalyticsUiOutcome = "completed" | "failed" | "cancelled";
@@ -1072,4 +1082,4 @@ interface AnalyticsIngestFailureEvent {
1072
1082
  }
1073
1083
  type ModalAnalyticsEvent = DepositAnalyticsEvent | WithdrawAnalyticsEvent | ClaimAnalyticsEvent | AnalyticsIngestFailureEvent;
1074
1084
 
1075
- export type { ModalAnalyticsEvent as $, AnalyticsEventEnvelope as A, BankOnrampConfig as B, ChainId as C, DepositAnalyticsAbandonmentReason as D, DepositAnalyticsStep as E, DepositAnalyticsTransferStep as F, DepositAnalyticsUiOutcome as G, DepositAnalyticsWalletStep as H, DepositAssetMigrationMethodIdentifiers as I, DepositCompleteEventData as J, DepositExchangeConnectMethodIdentifiers as K, DepositFailedEventData as L, DepositFiatOnrampMethodIdentifiers as M, DepositFundingMethod as N, DepositLifecycleEvent as O, DepositModalProps as P, DepositModalTheme as Q, DepositModalUIConfig as R, DepositSubmittedEventData as S, DepositTransferHandoffIdentifiers as T, DepositWalletIntegration as U, DepositWalletMethodIdentifiers as V, ErrorEventData as W, FiatMethodsConfig as X, HistoryAnalyticsBadge as Y, HistoryClaimEntrySource as Z, HistoryStatus as _, AnalyticsIngestFailureEvent as a, OutputTokenRule as a0, PaymentConfig as a1, RecoveryErrorCode as a2, RpcUrlMap as a3, SignRecovery as a4, SignRecoveryPayload as a5, WithdrawAnalyticsAbandonmentReason as a6, WithdrawAnalyticsCloseSource as a7, WithdrawAnalyticsEvent as a8, WithdrawAnalyticsEventPayload as a9, WithdrawAnalyticsFailureReason as aa, WithdrawAnalyticsSessionProperties as ab, WithdrawAnalyticsStep as ac, WithdrawAnalyticsUiOutcome as ad, WithdrawCompleteEventData as ae, WithdrawFailedEventData as af, WithdrawLifecycleEvent as ag, WithdrawModalProps as ah, WithdrawSubmittedEventData as ai, WithdrawTransferRequest as aj, AnalyticsIngestFailureReason as b, AnalyticsReasonFamily as c, AssetMigrationsConfig as d, AssetOption as e, ClaimAnalyticsAbandonmentReason as f, ClaimAnalyticsCloseSource as g, ClaimAnalyticsCorrelation as h, ClaimAnalyticsEntrySource as i, ClaimAnalyticsEvent as j, ClaimAnalyticsEventPayload as k, ClaimAnalyticsFailureReason as l, ClaimAnalyticsSessionProperties as m, ClaimAnalyticsStep as n, ClaimAnalyticsUiOutcome as o, ConnectedEventData as p, DepositAnalyticsCloseSource as q, DepositAnalyticsCorrelator as r, DepositAnalyticsEvent as s, DepositAnalyticsEventPayload as t, DepositAnalyticsExchangeStep as u, DepositAnalyticsFailureReason as v, DepositAnalyticsFiatStep as w, DepositAnalyticsMigrationStep as x, DepositAnalyticsSessionProperties as y, DepositAnalyticsSharedStep as z };
1085
+ export type { ModalAnalyticsEvent as $, AnalyticsEventEnvelope as A, DepositAnalyticsSharedStep as B, ChainId as C, DepositAnalyticsAbandonmentReason as D, DepositAnalyticsStep as E, DepositAnalyticsTransferStep as F, DepositAnalyticsUiOutcome as G, DepositAnalyticsWalletStep as H, DepositAssetMigrationMethodIdentifiers as I, DepositCompleteEventData as J, DepositExchangeConnectMethodIdentifiers as K, DepositFailedEventData as L, DepositFiatOnrampMethodIdentifiers as M, DepositFundingMethod as N, DepositLifecycleEvent as O, DepositModalProps as P, DepositModalTheme as Q, DepositModalUIConfig as R, DepositSubmittedEventData as S, DepositTransferHandoffIdentifiers as T, DepositWalletIntegration as U, DepositWalletMethodIdentifiers as V, ErrorEventData as W, FiatMethodsConfig as X, HistoryAnalyticsBadge as Y, HistoryClaimEntrySource as Z, HistoryStatus as _, AnalyticsIngestFailureEvent as a, OutputTokenRule as a0, PaymentConfig as a1, RecoveryErrorCode as a2, RpcUrlMap as a3, SignRecovery as a4, SignRecoveryPayload as a5, VirtualAccountOnrampConfig as a6, WithdrawAnalyticsAbandonmentReason as a7, WithdrawAnalyticsCloseSource as a8, WithdrawAnalyticsEvent as a9, WithdrawAnalyticsEventPayload as aa, WithdrawAnalyticsFailureReason as ab, WithdrawAnalyticsSessionProperties as ac, WithdrawAnalyticsStep as ad, WithdrawAnalyticsUiOutcome as ae, WithdrawCompleteEventData as af, WithdrawFailedEventData as ag, WithdrawLifecycleEvent as ah, WithdrawModalProps as ai, WithdrawSubmittedEventData as aj, WithdrawTransferRequest as ak, AnalyticsIngestFailureReason as b, AnalyticsReasonFamily as c, AssetMigrationsConfig as d, AssetOption as e, ClaimAnalyticsAbandonmentReason as f, ClaimAnalyticsCloseSource as g, ClaimAnalyticsCorrelation as h, ClaimAnalyticsEntrySource as i, ClaimAnalyticsEvent as j, ClaimAnalyticsEventPayload as k, ClaimAnalyticsFailureReason as l, ClaimAnalyticsSessionProperties as m, ClaimAnalyticsStep as n, ClaimAnalyticsUiOutcome as o, ConnectedEventData as p, CustomerSessionRequest as q, DepositAnalyticsCloseSource as r, DepositAnalyticsCorrelator as s, DepositAnalyticsEvent as t, DepositAnalyticsEventPayload as u, DepositAnalyticsExchangeStep as v, DepositAnalyticsFailureReason as w, DepositAnalyticsFiatStep as x, DepositAnalyticsMigrationStep as y, DepositAnalyticsSessionProperties as z };
package/dist/withdraw.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCIVFT5KRcjs = require('./chunk-CIVFT5KR.cjs');
4
- require('./chunk-KXSU24RU.cjs');
3
+ var _chunkU7NYYT4Qcjs = require('./chunk-U7NYYT4Q.cjs');
4
+ require('./chunk-4O2UGFFT.cjs');
5
5
  require('./chunk-G264OM23.cjs');
6
6
  require('./chunk-FKJ6EJHH.cjs');
7
- require('./chunk-D3R3O4CY.cjs');
7
+ require('./chunk-VQAV6ESI.cjs');
8
8
 
9
9
 
10
- exports.WithdrawModal = _chunkCIVFT5KRcjs.WithdrawModal;
10
+ exports.WithdrawModal = _chunkU7NYYT4Qcjs.WithdrawModal;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { ah as WithdrawModalProps } from './types-BEEMfNi2.cjs';
3
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, e as AssetOption, 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 ConnectedEventData, W as ErrorEventData, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, 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, ai as WithdrawSubmittedEventData, aj as WithdrawTransferRequest } from './types-BEEMfNi2.cjs';
2
+ import { ai as WithdrawModalProps } from './types-BrxDZNEr.cjs';
3
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, e as AssetOption, 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 ConnectedEventData, W as ErrorEventData, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload, a7 as WithdrawAnalyticsAbandonmentReason, a8 as WithdrawAnalyticsCloseSource, a9 as WithdrawAnalyticsEvent, aa as WithdrawAnalyticsEventPayload, ab as WithdrawAnalyticsFailureReason, ac as WithdrawAnalyticsSessionProperties, ad as WithdrawAnalyticsStep, ae as WithdrawAnalyticsUiOutcome, af as WithdrawCompleteEventData, ag as WithdrawFailedEventData, aj as WithdrawSubmittedEventData, ak as WithdrawTransferRequest } from './types-BrxDZNEr.cjs';
4
4
  import './caip-nwFFL46o.cjs';
5
5
  import 'viem';
6
6
  import './bearer-transport-DZyeDG64.cjs';
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
- import { ah as WithdrawModalProps } from './types-DQDUqzsZ.js';
3
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, e as AssetOption, 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 ConnectedEventData, W as ErrorEventData, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, 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, ai as WithdrawSubmittedEventData, aj as WithdrawTransferRequest } from './types-DQDUqzsZ.js';
2
+ import { ai as WithdrawModalProps } from './types-DCUB4DY8.js';
3
+ export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, e as AssetOption, 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 ConnectedEventData, W as ErrorEventData, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload, a7 as WithdrawAnalyticsAbandonmentReason, a8 as WithdrawAnalyticsCloseSource, a9 as WithdrawAnalyticsEvent, aa as WithdrawAnalyticsEventPayload, ab as WithdrawAnalyticsFailureReason, ac as WithdrawAnalyticsSessionProperties, ad as WithdrawAnalyticsStep, ae as WithdrawAnalyticsUiOutcome, af as WithdrawCompleteEventData, ag as WithdrawFailedEventData, aj as WithdrawSubmittedEventData, ak as WithdrawTransferRequest } from './types-DCUB4DY8.js';
4
4
  import './caip-nwFFL46o.js';
5
5
  import 'viem';
6
6
  import './bearer-transport-DZyeDG64.js';
package/dist/withdraw.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-IPKT3FU6.mjs";
4
- import "./chunk-OZPMRTW3.mjs";
3
+ } from "./chunk-7CHQA2OZ.mjs";
4
+ import "./chunk-UNXUOV3F.mjs";
5
5
  import "./chunk-YY4ZOAH5.mjs";
6
6
  import "./chunk-E7IMWVMN.mjs";
7
- import "./chunk-ZOJMB5TZ.mjs";
7
+ import "./chunk-2D3J53PX.mjs";
8
8
  export {
9
9
  WithdrawModal
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "React modal for Rhinestone Deposits and withdrawals",
5
5
  "author": "Rhinestone <gm@rhinestone.dev>",
6
6
  "homepage": "https://docs.rhinestone.dev/deposits/overview/widget/quickstart",
@@ -212,7 +212,7 @@
212
212
  {
213
213
  "name": "Native Embed (deposit & withdraw)",
214
214
  "path": "dist/embed.mjs",
215
- "limit": "114.5 kB",
215
+ "limit": "115 kB",
216
216
  "ignore": [
217
217
  "react",
218
218
  "react-dom",
@@ -232,7 +232,7 @@
232
232
  "name": "Deposit & Withdraw Modals Only",
233
233
  "path": "dist/index.mjs",
234
234
  "import": "{ DepositModal, WithdrawModal }",
235
- "limit": "107.5 kB",
235
+ "limit": "108 kB",
236
236
  "ignore": [
237
237
  "react",
238
238
  "react-dom",
@@ -1,12 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkCIVFT5KRcjs = require('./chunk-CIVFT5KR.cjs');
5
- require('./chunk-KXSU24RU.cjs');
6
- require('./chunk-G264OM23.cjs');
7
- require('./chunk-FKJ6EJHH.cjs');
8
- require('./chunk-D3R3O4CY.cjs');
9
-
10
-
11
-
12
- exports.WithdrawModal = _chunkCIVFT5KRcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkCIVFT5KRcjs.buildWithdrawAnalyticsSessionProperties;