@funkit/connect 12.24.0 → 13.0.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 (77) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/clients/chunk-44LV4GCX.js +83 -0
  3. package/dist/clients/{chunk-GQINBV24.js → chunk-AJGDTTRJ.js} +1 -6
  4. package/dist/clients/{chunk-QS3S2PXZ.js → chunk-D6EY2WW4.js} +1 -1
  5. package/dist/clients/{chunk-4NWQR25X.js → chunk-JXTKKLVA.js} +55 -205
  6. package/dist/clients/{chunk-JBJ5FEIA.js → chunk-NNMZMHO6.js} +3 -3
  7. package/dist/clients/{chunk-ENWRWMKF.js → chunk-Q4JGDB4L.js} +1 -1
  8. package/dist/clients/{chunk-QYUAS6KD.js → chunk-T6YNXIOS.js} +1 -1
  9. package/dist/clients/{chunk-35XAIUH6.js → chunk-ZBBYOJWK.js} +1 -206
  10. package/dist/clients/{chunk-55LEL7SW.js → chunk-ZEXIDBIZ.js} +1 -1
  11. package/dist/clients/fanatics.css +0 -19
  12. package/dist/clients/fanatics.d.ts +0 -4
  13. package/dist/clients/fanatics.js +28 -244
  14. package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
  15. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  16. package/dist/clients/internal/nado/withdrawalForm.js +19 -6
  17. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  18. package/dist/clients/lighter.js +180 -28
  19. package/dist/clients/mallard.js +2 -2
  20. package/dist/clients/nado.js +4 -4
  21. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  22. package/dist/clients/polymarket/index.js +3 -3
  23. package/dist/clients/polymarket/polymarket.js +2 -2
  24. package/dist/components/FunPayments/ExchangeIconCluster.d.ts +1 -1
  25. package/dist/components/FunPayments/FunPaymentMethods.d.ts +1 -12
  26. package/dist/components/FunPayments/SourceExchangeIcon.d.ts +1 -1
  27. package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +1 -2
  28. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
  29. package/dist/consts/centralExchange.d.ts +18 -1
  30. package/dist/domains/asset.d.ts +1 -1
  31. package/dist/domains/convert/sourceWallet.d.ts +1 -1
  32. package/dist/domains/convert/types.d.ts +4 -5
  33. package/dist/domains/feeEstimate.d.ts +1 -3
  34. package/dist/domains/fees.d.ts +2 -16
  35. package/dist/domains/paymentMethods.d.ts +4 -16
  36. package/dist/domains/quote.d.ts +3 -5
  37. package/dist/domains/quoteMode/types.d.ts +0 -5
  38. package/dist/domains/wallet.d.ts +0 -4
  39. package/dist/hooks/track/CheckoutModalEvent.d.ts +0 -4
  40. package/dist/hooks/track/analytics/events.d.ts +11 -11
  41. package/dist/hooks/track/analytics/mappers.d.ts +1 -1
  42. package/dist/hooks/track/analytics/swappedIframeError.d.ts +3 -0
  43. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +1 -9
  44. package/dist/hooks/track/analytics/useTrackSwappedIframeError.d.ts +2 -0
  45. package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +1 -1
  46. package/dist/hooks/useExchangeOptions.d.ts +5 -10
  47. package/dist/hooks/usePaymentSources.d.ts +1 -1
  48. package/dist/index.d.ts +2 -2
  49. package/dist/index.js +4584 -6770
  50. package/dist/interfaces/solanaWallet.d.ts +12 -25
  51. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +4 -12
  52. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +0 -3
  53. package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +3 -3
  54. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -4
  55. package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +3 -4
  56. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetList.d.ts +0 -2
  57. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +0 -9
  58. package/dist/modals/CheckoutModal/stepTransition.d.ts +0 -9
  59. package/dist/providers/FunkitConfigContext.d.ts +1 -14
  60. package/dist/providers/SolanaWalletProvider.d.ts +5 -5
  61. package/dist/utils/checkout.d.ts +0 -7
  62. package/dist/utils/solanaRelayWallet.d.ts +2 -7
  63. package/dist/wallets/solanaWithdrawal.d.ts +5 -5
  64. package/dist/wallets/walletConnectors/index.js +38 -38
  65. package/package.json +3 -16
  66. package/dist/clients/chunk-CE42WHAA.js +0 -21
  67. package/dist/clients/chunk-TKEBGMVW.js +0 -176
  68. package/dist/clients/solana-transfer.d.ts +0 -1
  69. package/dist/clients/solana-transfer.js +0 -13
  70. package/dist/consts/bluvo.d.ts +0 -61
  71. package/dist/hooks/useBluvo.d.ts +0 -1537
  72. package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +0 -10
  73. package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +0 -17
  74. package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +0 -13
  75. package/dist/modals/CheckoutModal/Brokerage/components/BrokerageSuccess.d.ts +0 -8
  76. package/dist/providers/FunkitBrokerageProvider.d.ts +0 -20
  77. package/dist/utils/bluvo.d.ts +0 -153
@@ -1,6 +1,5 @@
1
1
  import type { BridgeCustomer, BridgeVirtualBankAccount } from '@funkit/api-base';
2
2
  import { PaymentMethod } from '@funkit/connect-core';
3
- import { type BluvoExchangeType } from '../consts/bluvo';
4
3
  export { PaymentMethod };
5
4
  /** Full payment method information used in frontend during payment flows. **/
6
5
  interface PaymentMethodInfoBase {
@@ -11,11 +10,6 @@ interface PaymentMethodInfoBase {
11
10
  export interface PaymentMethodCardInfo extends PaymentMethodInfoBase {
12
11
  paymentMethod: PaymentMethod.CARD;
13
12
  }
14
- export interface PaymentMethodBrokerageInfo extends PaymentMethodInfoBase {
15
- paymentMethod: PaymentMethod.BROKERAGE;
16
- deviceId: string;
17
- exchange: BluvoExchangeType;
18
- }
19
13
  export interface PaymentMethodAccountInfo extends PaymentMethodInfoBase {
20
14
  paymentMethod: PaymentMethod.ACCOUNT_BALANCE;
21
15
  }
@@ -36,17 +30,17 @@ export interface PaymentMethodVirtualBankIncompleteInfo extends PaymentMethodInf
36
30
  export interface PaymentMethodVirtualBankInfo extends PaymentMethodVirtualBankIncompleteInfo {
37
31
  matchingFiatAccount: BridgeVirtualBankAccount;
38
32
  }
39
- export type ConnectablePaymentMethodInfo = PaymentMethodAccountInfo | PaymentMethodBrokerageInfo | PaymentMethodVirtualBankInfo;
33
+ export type ConnectablePaymentMethodInfo = PaymentMethodAccountInfo | PaymentMethodVirtualBankInfo;
40
34
  export declare function isConnectablePaymentMethodInfo(value: unknown): value is ConnectablePaymentMethodInfo;
41
35
  /**
42
36
  * Balance-less rails: checkout methods with no on-chain source holding (Card,
43
37
  * Bitcoin Lightning, etc) where "available balance" is not a meaningful concept,
44
- * so balance/min/max validation is skipped. Only ACCOUNT_BALANCE and BROKERAGE
45
- * carry a measurable holding. Typed to PaymentMethodInfo's methods, not the full
38
+ * so balance/min/max validation is skipped. Only ACCOUNT_BALANCE carries a
39
+ * measurable holding. Typed to PaymentMethodInfo's methods, not the full
46
40
  * PaymentMethod enum (which also carries Swapped's iframe-only rails).
47
41
  */
48
42
  export declare function isBalanceLessPaymentMethod(paymentMethod: PaymentMethodInfo['paymentMethod']): boolean;
49
- export type PaymentMethodInfo = PaymentMethodCardInfo | PaymentMethodBrokerageInfo | PaymentMethodAccountInfo | PaymentMethodTokenTransferInfo | PaymentMethodBitcoinLightningInfo | PaymentMethodCashAppLightningInfo | PaymentMethodVirtualBankIncompleteInfo;
43
+ export type PaymentMethodInfo = PaymentMethodCardInfo | PaymentMethodAccountInfo | PaymentMethodTokenTransferInfo | PaymentMethodBitcoinLightningInfo | PaymentMethodCashAppLightningInfo | PaymentMethodVirtualBankIncompleteInfo;
50
44
  interface CardPaymentMethodParams {
51
45
  paymentMethod: PaymentMethod.CARD;
52
46
  /** We also store client's customization in our database :( */
@@ -56,11 +50,6 @@ interface AccountPaymentMethodParams {
56
50
  paymentMethod: PaymentMethod.ACCOUNT_BALANCE;
57
51
  walletAddress: string;
58
52
  }
59
- interface BrokeragePaymentMethodParams {
60
- paymentMethod: PaymentMethod.BROKERAGE;
61
- deviceId: string;
62
- exchange: BluvoExchangeType;
63
- }
64
53
  interface TokenTransferPaymentMethodParams {
65
54
  paymentMethod: PaymentMethod.TOKEN_TRANSFER;
66
55
  }
@@ -87,4 +76,3 @@ export declare function createPaymentMethodInfo(params: BitcoinLightningPaymentM
87
76
  export declare function createPaymentMethodInfo(params: CashAppLightningPaymentMethodParams): PaymentMethodCashAppLightningInfo;
88
77
  export declare function createPaymentMethodInfo(params: VirtualBankPaymentMethodIncompleteParams): PaymentMethodVirtualBankIncompleteInfo;
89
78
  export declare function createPaymentMethodInfo(params: VirtualBankPaymentMethodParams): PaymentMethodVirtualBankInfo;
90
- export declare function createPaymentMethodInfo(params: BrokeragePaymentMethodParams): PaymentMethodBrokerageInfo;
@@ -2,12 +2,11 @@ import type { ApiFunkitCheckoutQuoteResult, CheckoutQuoteResponse } from '@funki
2
2
  import type { Dnum } from 'dnum';
3
3
  import { type Address } from 'viem';
4
4
  import type { Config } from '../wagmi/hooks';
5
- import type { BluvoBrokerageQuote } from '../hooks/useBluvo';
6
5
  import type { FunkitDirectExecutionInfo } from '../hooks/useCheckoutDirectExecution';
7
6
  import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
8
7
  import type { LoginType } from '../providers/GeneralWalletProvider';
9
8
  import type { CheckoutPayer } from '../providers/GeneralWalletProvider';
10
- import { type BrokerageDetails, type CheckoutFees } from './fees';
9
+ import { type CheckoutFees } from './fees';
11
10
  import { type PaymentMethodInfo } from './paymentMethods';
12
11
  import type { QuoteBuilder } from './quoteMode';
13
12
  export interface FunkitCheckoutQuoteResult extends Omit<ApiFunkitCheckoutQuoteResult, 'finalFeesBreakdown'> {
@@ -33,9 +32,8 @@ export declare function resolveFromTokenAmount(checkoutItem: FunkitActiveCheckou
33
32
  * Returns null when derivation isn't needed or isn't possible.
34
33
  **/
35
34
  export declare function deriveEstSubtotalToAmountIfNeeded(baseQuote: CheckoutQuoteResponse, isExactIn: boolean, toTokenDecimals: number): string | null;
36
- export declare function getQuoteFinalEstimation(baseQuote: CheckoutQuoteResponse, checkoutItem: FunkitActiveCheckoutItem, newPaymentMethodInfo: PaymentMethodInfo, wagmiConfig: Config, apiKey: string, loginType: LoginType, isWithdrawal?: boolean, brokerageQuote?: BluvoBrokerageQuote): Promise<{
35
+ export declare function getQuoteFinalEstimation(baseQuote: CheckoutQuoteResponse, checkoutItem: FunkitActiveCheckoutItem, newPaymentMethodInfo: PaymentMethodInfo, wagmiConfig: Config, apiKey: string, loginType: LoginType, isWithdrawal?: boolean): Promise<{
37
36
  finalEstimation: FunkitCheckoutQuoteResult;
38
- brokerage?: BrokerageDetails;
39
37
  }>;
40
38
  export interface CheckedAssetAmount {
41
39
  isAboveMaximum: boolean;
@@ -43,7 +41,7 @@ export interface CheckedAssetAmount {
43
41
  maxTargetAssetAmount?: Dnum;
44
42
  minTargetAssetAmount?: Dnum;
45
43
  }
46
- export declare function checkAssetAmount(checkoutItem: FunkitActiveCheckoutItem, finalEstimation: FunkitCheckoutQuoteResult, wagmiConfig: Config, walletAddress: Address, brokerage?: BrokerageDetails): Promise<CheckedAssetAmount>;
44
+ export declare function checkAssetAmount(checkoutItem: FunkitActiveCheckoutItem, finalEstimation: FunkitCheckoutQuoteResult, wagmiConfig: Config, walletAddress: Address): Promise<CheckedAssetAmount>;
47
45
  export type QuotePhaseResult = {
48
46
  phase: 'base';
49
47
  quote: CheckoutQuoteResponse;
@@ -1,5 +1,4 @@
1
1
  import type { Dnum } from 'dnum';
2
- import type { PaymentMethod } from '../../domains/paymentMethods';
3
2
  import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
4
3
  export declare enum QuoteMode {
5
4
  EXACT_IN = "EXACT_IN",
@@ -85,8 +84,6 @@ export interface MaxSendableParams {
85
84
  targetChainId: string;
86
85
  /** Source asset chain ID */
87
86
  assetChainId: string;
88
- /** Payment method */
89
- paymentMethod: PaymentMethod | undefined;
90
87
  }
91
88
  export interface UsdAvailableAmountParams {
92
89
  /** Source asset USD value */
@@ -95,8 +92,6 @@ export interface UsdAvailableAmountParams {
95
92
  targetChainId: string;
96
93
  /** Source asset chain ID */
97
94
  assetChainId: string | undefined;
98
- /** Payment method */
99
- paymentMethod: PaymentMethod | undefined;
100
95
  }
101
96
  export interface QuoteBuilder {
102
97
  readonly mode: QuoteMode;
@@ -16,10 +16,6 @@ export interface AssetHoldingsItem {
16
16
  export interface KnownAssetHoldingsItem extends AssetHoldingsItem {
17
17
  usdAmount: number;
18
18
  }
19
- export interface BrokerageAssetHoldingsItem extends AssetHoldingsItem {
20
- maxAmount: string;
21
- minAmount: string;
22
- }
23
19
  export interface AssetHoldingsMap<T extends AssetHoldingsItem = AssetHoldingsItem> {
24
20
  [symbol: string]: T;
25
21
  }
@@ -20,9 +20,6 @@ export declare enum CheckoutModalEvent {
20
20
  NAVIGATE_CREATE_FIAT_ACCOUNT = "fc::navigate::create_fiat_account",
21
21
  NAVIGATE_LOADING_ACCOUNT = "fc::navigate::loading_account",
22
22
  NAVIGATE_SELECT_BROKERAGE = "fc::navigate::select_brokerage",
23
- NAVIGATE_CONNECT_EXCHANGE = "fc::navigate::connect_exchange",
24
- NAVIGATE_BROKERAGE_TWO_FA = "fc::navigate::brokerage_two_fa",
25
- NAVIGATE_BROKERAGE_SUCCESS = "fc::navigate::brokerage_success",
26
23
  NAVIGATE_SWAPPED_IFRAME = "fc::navigate::swapped_iframe",
27
24
  NAVIGATE_PERPS_TRANSFER = "fc::navigate::perps_transfer",
28
25
  NAVIGATE_CONVERT = "fc::navigate::convert",
@@ -48,7 +45,6 @@ export declare enum CheckoutModalEvent {
48
45
  VIEW_TRANSACTION_BREAKDOWN = "fc::quote::view_transaction_breakdown",
49
46
  ACCOUNT_BALANCE_SUCCESS = "fc::success::account_balance",
50
47
  TOKEN_TRANSFER_SUCCESS = "fc::success::token_transfer",
51
- BLUVO_WITHDRAWAL_COMPLETED = "fc::success::bluvo_withdrawal_completed",
52
48
  QUICK_OPTION_SELECTED = "fc::input_amount::quick_option_selected",
53
49
  PERPS_TRANSFER_PERCENT_OPTION_SELECTED = "fc::perps_transfer::percent_option_selected",
54
50
  SWAPPED_IFRAME_NAVIGATION = "fc::swapped_iframe::navigation",
@@ -13,9 +13,6 @@ import type { PaymentMethod } from '@funkit/connect-core';
13
13
  * Every property is explicitly assigned so each emitted payload is auditable.
14
14
  */
15
15
  export declare enum AnalyticsEvent {
16
- ACCOUNT_CONNECT_COMPLETED = "fc_account_connect_completed",
17
- ACCOUNT_CONNECT_FAILED = "fc_account_connect_failed",
18
- ACCOUNT_CONNECT_STARTED = "fc_account_connect_started",
19
16
  DEPOSIT_ASSET_SELECTED = "fc_deposit_asset_selected",
20
17
  DEPOSIT_AMOUNT_CONFIRMED = "fc_deposit_amount_confirmed",
21
18
  DEPOSIT_FAILED = "fc_deposit_failed",
@@ -49,7 +46,7 @@ export declare enum AnalyticsEvent {
49
46
  }
50
47
  export type ConnectionStatus = 'new' | 'existing';
51
48
  export type AnalyticsFlow = 'deposit' | 'withdraw' | 'convert';
52
- export type AnalyticsPaymentRail = 'bluvo' | 'swapped' | 'meld' | 'bridge';
49
+ export type AnalyticsPaymentRail = 'swapped' | 'meld' | 'bridge';
53
50
  export type AnalyticsStep = Lowercase<FunCheckoutStep | WithdrawalModalStep>;
54
51
  export type ModalClosedAction = 'close' | 'new_deposit' | 'new_withdrawal';
55
52
  export type ModalCompletionState = 'completed' | 'not_completed' | 'undetected';
@@ -88,13 +85,12 @@ export type ErrorProperties = {
88
85
  error_message: string | null;
89
86
  };
90
87
  export type ErrorShownProperties = ErrorProperties & {
88
+ /** Provider order associated with an embedded checkout error. */
89
+ order_id?: string | null;
91
90
  flow: AnalyticsFlow;
92
91
  notification_type: FunNotificationType;
93
92
  step: AnalyticsStep;
94
93
  };
95
- /** Payload specific to brokerage account connection lifecycle events. */
96
- export type AccountConnectProperties = PaymentMethodProperties;
97
- export type AccountConnectFailedProperties = AccountConnectProperties & ErrorProperties;
98
94
  /** Source/target/payment context shared by the deposit events. */
99
95
  export type DepositAssetContextProperties = PaymentMethodProperties & {
100
96
  source_chain: string | null;
@@ -191,6 +187,8 @@ export type DepositQuoteSnapshotProperties = DepositRouteContextProperties & Vis
191
187
  /** Quote snapshot plus quote-lifecycle metadata. */
192
188
  export type DepositQuoteContextProperties = DepositQuoteSnapshotProperties & {
193
189
  num_quote_refreshes: number;
190
+ /** Routing quote ID; null for provider-only quotes such as Meld. */
191
+ quote_id: string | null;
194
192
  };
195
193
  /** Payload specific to {@link AnalyticsEvent.DEPOSIT_QUOTE_DISPLAYED}. */
196
194
  export type DepositQuoteDisplayedProperties = DepositQuoteContextProperties;
@@ -214,11 +212,15 @@ export type ExecutionTransactionSnapshotProperties = DepositAssetContextProperti
214
212
  };
215
213
  export type TransactionSubmittedProperties = ExecutionTransactionSnapshotProperties & {
216
214
  est_fulfillment_time_ms: number | null;
215
+ quote_id: string | null;
217
216
  };
218
217
  export type ExecutionSucceededProperties = ExecutionTransactionSnapshotProperties & {
219
218
  fulfillment_time_ms: number | null;
219
+ quote_id: string | null;
220
+ };
221
+ export type ExecutionFailedProperties = ExecutionTransactionSnapshotProperties & ErrorProperties & {
222
+ quote_id: string | null;
220
223
  };
221
- export type ExecutionFailedProperties = ExecutionTransactionSnapshotProperties & ErrorProperties;
222
224
  export type DepositNotificationStatus = CheckoutStatus | 'delayed';
223
225
  export type DepositNotificationProperties = ExecutionTransactionSnapshotProperties & {
224
226
  status: DepositNotificationStatus;
@@ -389,15 +391,13 @@ export type WithdrawalQuoteSnapshotProperties = PaymentMethodProperties & Visibl
389
391
  /** Quote snapshot plus quote-lifecycle metadata. */
390
392
  export type WithdrawalQuoteContextProperties = WithdrawalQuoteSnapshotProperties & {
391
393
  num_quote_refreshes: number;
394
+ quote_id: string | null;
392
395
  };
393
396
  /** Payload specific to {@link AnalyticsEvent.WITHDRAWAL_QUOTE_DISPLAYED}. */
394
397
  export type WithdrawalQuoteDisplayedProperties = WithdrawalQuoteContextProperties;
395
398
  /** Payload specific to {@link AnalyticsEvent.WITHDRAWAL_QUOTE_CONFIRMED}. */
396
399
  export type WithdrawalQuoteConfirmedProperties = WithdrawalQuoteContextProperties;
397
400
  export type AnalyticsEventProperties = {
398
- [AnalyticsEvent.ACCOUNT_CONNECT_COMPLETED]: AccountConnectProperties;
399
- [AnalyticsEvent.ACCOUNT_CONNECT_FAILED]: AccountConnectFailedProperties;
400
- [AnalyticsEvent.ACCOUNT_CONNECT_STARTED]: AccountConnectProperties;
401
401
  [AnalyticsEvent.DEPOSIT_ASSET_SELECTED]: DepositAssetSelectedProperties;
402
402
  [AnalyticsEvent.DEPOSIT_AMOUNT_CONFIRMED]: DepositAmountConfirmedProperties;
403
403
  [AnalyticsEvent.DEPOSIT_FAILED]: ExecutionFailedProperties;
@@ -9,7 +9,7 @@ export declare function formatAnalyticsAmount(amount: number | null): string | n
9
9
  export declare function formatAnalyticsStep(step: FunCheckoutStep | WithdrawalModalStep): AnalyticsStep;
10
10
  export declare function getCheckoutModalAnalyticsFlow(modalState: CheckoutModalState): AnalyticsFlow;
11
11
  export declare function getHistoricalSourceAddress(sourceOfFund: string | null | undefined): string | null;
12
- /** Selected checkout provider, such as a Bluvo exchange or wallet connector. */
12
+ /** Selected checkout provider, such as a wallet connector or Meld provider. */
13
13
  export declare function resolveProvider(args: {
14
14
  paymentMethodInfo: PaymentMethodInfo;
15
15
  serviceProvider?: MeldServiceProvider;
@@ -0,0 +1,3 @@
1
+ import type { AnalyticsFlow, ErrorShownProperties } from './events';
2
+ export declare function buildSwappedIframeErrorProperties(data: unknown, flow: AnalyticsFlow): ErrorShownProperties;
3
+ export declare function getSwappedIframeErrorKey(data: unknown): string | null;
@@ -10,11 +10,6 @@ type AssetDescriptorArgs = {
10
10
  tokenAddress: string;
11
11
  ticker: string | null;
12
12
  };
13
- export type TrackExchangeConnectFailedArgs = {
14
- errorCode: string | null;
15
- errorMessage: string | null;
16
- provider: string;
17
- };
18
13
  export type TrackDepositAssetSelectedArgs = {
19
14
  source: AssetDescriptorArgs;
20
15
  target: AssetDescriptorArgs;
@@ -40,7 +35,7 @@ export type TrackDepositMethodSelectedArgs = {
40
35
  /** Swapped methods without a PaymentMethod equivalent use their lowercase FOP type. */
41
36
  paymentMethod: PaymentMethod | Lowercase<FormOfPaymentType>;
42
37
  paymentRail?: AnalyticsPaymentRail;
43
- /** Selected checkout provider, such as a Bluvo exchange. */
38
+ /** Selected checkout provider, such as a Swapped exchange. */
44
39
  provider?: string;
45
40
  /** Explicit source override (e.g. the native fast-path row) */
46
41
  source?: AssetDescriptorArgs;
@@ -94,8 +89,5 @@ export declare function useDepositAnalytics(): {
94
89
  priceImpactPct: number | undefined;
95
90
  }) => void;
96
91
  trackDepositTransferInteracted: (args: TrackDepositTransferInteractedArgs) => void;
97
- trackExchangeConnectCompleted: (provider: string) => void;
98
- trackExchangeConnectFailed: (args: TrackExchangeConnectFailedArgs) => void;
99
- trackExchangeConnectStarted: (provider: string) => void;
100
92
  };
101
93
  export {};
@@ -0,0 +1,2 @@
1
+ import { type AnalyticsFlow } from './events';
2
+ export declare function useTrackSwappedIframeError(flow: AnalyticsFlow, checkoutId: string | undefined): (data: unknown) => void;
@@ -19,7 +19,7 @@ export type TrackWithdrawalMethodSelectedArgs = {
19
19
  /** Swapped methods without a PaymentMethod equivalent use their lowercase FOP type. */
20
20
  paymentMethod: PaymentMethod | Lowercase<FormOfPaymentType>;
21
21
  paymentRail?: AnalyticsPaymentRail;
22
- /** Selected checkout provider, such as a Bluvo exchange or a Lighter method id. */
22
+ /** Selected checkout provider, such as a Lighter method id. */
23
23
  provider?: string;
24
24
  };
25
25
  export type TrackWithdrawalTransferInteractedArgs = {
@@ -1,14 +1,9 @@
1
- import { type BrokerageOption } from '../consts/bluvo';
1
+ import { type BrokerageOption } from '../consts/centralExchange';
2
2
  /**
3
- * Unified brokerage list combining static Bluvo exchanges, dynamic Swapped
4
- * Connect FOPs (CRYPTO_TO_CRYPTO), and the static coming-soon placeholders.
5
- * Used by SelectBrokerage and the payment-method preview row. Live entries
6
- * come first; ComingSoon (and FOPs that came back without an embeddedFlowUrl)
7
- * follow.
8
- *
9
- * The Bluvo Coinbase row shows only while the `enable-bluvo-exchanges` gate
10
- * is on and Swapped has not yet returned Coinbase; once it does, the row
11
- * hands over to Swapped. Coming-soon rows are rail-agnostic and always show.
3
+ * Unified brokerage list combining dynamic Swapped Connect FOPs
4
+ * (CRYPTO_TO_CRYPTO) and the static coming-soon placeholders. Used by
5
+ * SelectBrokerage and the payment-method preview row. Swapped rows come first;
6
+ * coming-soon rows follow.
12
7
  */
13
8
  export declare function useExchangeOptions({ iconSize }: {
14
9
  iconSize: number;
@@ -15,7 +15,7 @@ export type UnavailablePaymentSource = {
15
15
  };
16
16
  export declare const usePaymentSources: (currentPaymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string) => {
17
17
  isFallback: boolean;
18
- preferred: (import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[] | PaymentMethod[];
18
+ preferred: (import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[] | PaymentMethod[];
19
19
  moreSources: PaymentMethod[];
20
20
  unavailable: UnavailablePaymentSource[];
21
21
  hasUsableBalance: boolean;
package/dist/index.d.ts CHANGED
@@ -25,8 +25,8 @@ export { useFunkitCheckout, FunCheckoutStartingStep, } from './providers/FunkitC
25
25
  export type { FunkitCheckoutQuoteResult } from './domains/quote';
26
26
  export type { AllowedRecipient } from './domains/withdrawalAllowlist';
27
27
  export type { FunkitConfig, FunkitUiCustomizationsConfig, FunkitTextCustomizationsConfig, InputAmountComponentContext, } from './providers/FunkitConfigContext';
28
- export type { SolanaWalletConnection, SolanaWalletSigner, } from './interfaces/solanaWallet';
29
- export type { SolanaConnection, SolanaSignAndSendTransaction, SolanaSigner, SolanaSignTransaction, } from '@funkit/fun-relay';
28
+ export type { SolanaWalletConnection } from './interfaces/solanaWallet';
29
+ export type { FunkitSolanaAdapter } from '@funkit/fun-relay';
30
30
  export type { FunkitConnectChain as Chain } from './providers/FunkitConnectChainContext';
31
31
  export type { ModalSizes } from './providers/ModalSizeContext';
32
32
  export { useCheckoutListenerByCheckoutId, useCheckoutsListenerByUserId, } from './providers/FunkitHistoryContext';