@funkit/connect 13.1.0 → 13.2.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 (92) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/clients/aave.d.ts +1 -1
  3. package/dist/clients/{chunk-AJGDTTRJ.js → chunk-3NHG6UYS.js} +1 -1
  4. package/dist/clients/{chunk-ZBBYOJWK.js → chunk-4LM2J6AX.js} +8 -0
  5. package/dist/clients/{chunk-NNMZMHO6.js → chunk-AN6A4SB5.js} +2 -2
  6. package/dist/clients/{chunk-D6EY2WW4.js → chunk-LNUR7YLW.js} +1 -1
  7. package/dist/clients/{chunk-ZEXIDBIZ.js → chunk-PNYV3G5M.js} +1 -1
  8. package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
  9. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  10. package/dist/clients/internal/nado/withdrawalForm.js +4 -4
  11. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  12. package/dist/clients/lighter.js +3 -3
  13. package/dist/clients/mallard.d.ts +9 -3
  14. package/dist/clients/mallard.js +5 -3
  15. package/dist/clients/nado.js +3 -3
  16. package/dist/components/Dropdown/BaseDropdownItem.d.ts +1 -1
  17. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -3
  18. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -3
  19. package/dist/components/ModalErrorState/ModalErrorState.d.ts +2 -3
  20. package/dist/consts/customers.d.ts +1 -1
  21. package/dist/consts/polymarket.d.ts +1 -1
  22. package/dist/domains/clientMetadata.d.ts +1 -1
  23. package/dist/domains/convert/hostTimeout.d.ts +1 -1
  24. package/dist/domains/destinationAssetBalance.d.ts +1 -1
  25. package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -3
  26. package/dist/hooks/statsig/index.d.ts +1 -0
  27. package/dist/hooks/track/analytics/events.d.ts +8 -20
  28. package/dist/hooks/track/analytics/mappers.d.ts +11 -1
  29. package/dist/hooks/track/analytics/swappedErrorCode.d.ts +1 -0
  30. package/dist/hooks/track/analytics/swappedWithdrawalOrder.d.ts +10 -0
  31. package/dist/hooks/track/analytics/useTrackErrorShown.d.ts +2 -3
  32. package/dist/hooks/track/analytics/useTrackExecutionProgressEvents.d.ts +2 -2
  33. package/dist/hooks/useConvertBalances.d.ts +6 -1
  34. package/dist/hooks/useFunkitMaxCheckoutUsdInfo.d.ts +3 -3
  35. package/dist/hooks/useModalStateValueWithProp.d.ts +1 -1
  36. package/dist/hooks/useRefreshBalancesOnDeposit.d.ts +20 -0
  37. package/dist/index.js +1532 -1036
  38. package/dist/interfaces/solanaWallet.d.ts +2 -2
  39. package/dist/modals/CheckoutModal/FiatV2/FiatV2Step.d.ts +17 -0
  40. package/dist/modals/CheckoutModal/FiatV2/fiatV2PaymentSelectionEffects.d.ts +26 -0
  41. package/dist/modals/CheckoutModal/FiatV2/useFiatV2PaymentSelectionHost.d.ts +22 -0
  42. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +3 -1
  43. package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +3 -3
  44. package/dist/modals/CheckoutModal/SourceChange/AddCardItem.d.ts +9 -0
  45. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +3 -0
  46. package/dist/modals/CheckoutModal/SourceChange/useAddCardRow.d.ts +12 -0
  47. package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -0
  48. package/dist/modals/PolymarketPerpsTransfer/TransferActionButton.d.ts +5 -5
  49. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +2 -3
  50. package/dist/modals/WithdrawalModal/useFiatWithdrawal.d.ts +5 -2
  51. package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +3 -2
  52. package/dist/providers/FunkitQuoteContext.track.d.ts +2 -3
  53. package/dist/utils/checkout.d.ts +2 -2
  54. package/dist/v2/screens/fiat/FiatPlaceholderScreen.d.ts +9 -0
  55. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  56. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  58. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  59. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  60. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  62. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/index.js +55 -55
  65. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  68. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  69. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  70. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  71. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  72. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  73. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  74. package/package.json +7 -7
  75. package/dist/wallets/walletConnectors/{chunk-OVDCDVFX.js → chunk-34B7OJNT.js} +3 -3
  76. package/dist/wallets/walletConnectors/{chunk-JJBLW4IU.js → chunk-4FHNLTR3.js} +3 -3
  77. package/dist/wallets/walletConnectors/{chunk-TM7UBV3Q.js → chunk-ALGPGI6V.js} +3 -3
  78. package/dist/wallets/walletConnectors/{chunk-MWB6LFSG.js → chunk-BBB2J3US.js} +3 -3
  79. package/dist/wallets/walletConnectors/{chunk-IWPW26AL.js → chunk-BBDNB5TQ.js} +3 -3
  80. package/dist/wallets/walletConnectors/{chunk-53MYTA42.js → chunk-CU5J53XR.js} +3 -3
  81. package/dist/wallets/walletConnectors/{chunk-USLZMUJ3.js → chunk-HOCKAU5H.js} +3 -3
  82. package/dist/wallets/walletConnectors/{chunk-RJF2YEZ5.js → chunk-IA5432IR.js} +3 -3
  83. package/dist/wallets/walletConnectors/{chunk-ASTCNVJC.js → chunk-IWOMSW64.js} +3 -3
  84. package/dist/wallets/walletConnectors/{chunk-KE4CWI3A.js → chunk-NXWG6FG2.js} +3 -3
  85. package/dist/wallets/walletConnectors/{chunk-RQYEGJKL.js → chunk-RFCZYLNR.js} +3 -3
  86. package/dist/wallets/walletConnectors/{chunk-ANODOMIN.js → chunk-RXRYHMRI.js} +3 -3
  87. package/dist/wallets/walletConnectors/{chunk-PPQ6L4K2.js → chunk-SR5CZR3L.js} +3 -3
  88. package/dist/wallets/walletConnectors/{chunk-TIHTQ3OB.js → chunk-TRZDAXCQ.js} +3 -3
  89. package/dist/wallets/walletConnectors/{chunk-F45CUFRR.js → chunk-U52QO5HF.js} +3 -3
  90. package/dist/wallets/walletConnectors/{chunk-A5POD5SV.js → chunk-XODA5ESL.js} +3 -3
  91. package/dist/wallets/walletConnectors/{chunk-FYPQ3HP4.js → chunk-YRMBR6NA.js} +3 -3
  92. package/dist/wallets/walletConnectors/{chunk-65ULY6OC.js → chunk-ZSSSLFQF.js} +3 -3
@@ -6,12 +6,12 @@ import type { FunkitSolanaAdapter } from '@funkit/fun-relay';
6
6
  export interface SolanaWalletConnection {
7
7
  /**
8
8
  * Wallet name, e.g. `Phantom`. Picks the icon when none is supplied, and is
9
- * how funkit recognises the same wallet connected on both ecosystems.
9
+ * how funkit recognizes the same wallet connected on both ecosystems.
10
10
  */
11
11
  name: string;
12
12
  /**
13
13
  * Icon to show for this wallet, as a URL or data URI. Falls back to a
14
- * bundled icon for wallets funkit recognises by name, then to a generic one.
14
+ * bundled icon for wallets funkit recognizes by name, then to a generic one.
15
15
  */
16
16
  icon?: string;
17
17
  /**
@@ -0,0 +1,17 @@
1
+ import type { CheckoutModalCommonState } from '../stepTransition.shared';
2
+ import type { FunCheckoutStep } from '../FunCheckoutStep';
3
+ import type { ModalStepInfo } from '../stepTransition';
4
+ export type FiatV2State = CheckoutModalCommonState;
5
+ /**
6
+ * The flow has no forward exit yet, and Back returns to the picker through
7
+ * history. `null` makes the step's `onNext` uncallable on purpose, because
8
+ * `onNext` below returns the state unchanged.
9
+ */
10
+ export type FiatV2Next = null;
11
+ /**
12
+ * The bridge from the V1 checkout modal into the V2 checkout, which arrives
13
+ * with the FiatV2 payment method today. Every V2 screen renders under this one
14
+ * step, so the V1 step registry and picker never branch on which V2 screen is
15
+ * showing.
16
+ */
17
+ export declare const FiatV2StepInfo: ModalStepInfo<FunCheckoutStep.FIAT_V2>;
@@ -0,0 +1,26 @@
1
+ import type { CardCheckRefusal, EnteredCard } from '@funkit/connect-core';
2
+ export type CardCheckResult = {
3
+ outcome: 'checked';
4
+ lifetimeMs?: number;
5
+ } | {
6
+ outcome: 'refused';
7
+ refusal: CardCheckRefusal;
8
+ };
9
+ /**
10
+ * The side effects the FiatV2 payment selection reducer asks its host to run.
11
+ * The reducer never calls the network or reads the clock; the host runs these
12
+ * and sends the answers back as events.
13
+ * - Pass a stable object (module constant or memoized): the expiry timer
14
+ * restarts when this identity changes.
15
+ */
16
+ export interface FiatV2PaymentSelectionEffects {
17
+ /** `POST /fiat/cards/check`. A throw is reported as `CARD_CHECK_FAILED`. */
18
+ checkCard(card: EnteredCard): Promise<CardCheckResult>;
19
+ /** Device clock in ms. Held-card expiry is measured against it. */
20
+ now(): number;
21
+ }
22
+ /**
23
+ * M0 stand-in until the card check route exists in api-base. Every check is
24
+ * refused as retryable, so the flow can be driven end to end without a vault.
25
+ */
26
+ export declare const UNAVAILABLE_CARD_CHECK: FiatV2PaymentSelectionEffects;
@@ -0,0 +1,22 @@
1
+ import { type FiatV2PaymentSelectionEvent, type FiatV2PaymentSelectionState } from '@funkit/connect-core';
2
+ import type { FiatV2PaymentSelectionEffects } from './fiatV2PaymentSelectionEffects';
3
+ /**
4
+ * Events a V2 screen may send. The rest (check answers, expiry, saved-card
5
+ * loads, saves) come from the host's own effects, so a screen can't fake them.
6
+ */
7
+ export type FiatV2BuyerPaymentEvent = Extract<FiatV2PaymentSelectionEvent, {
8
+ type: 'PAYMENT_METHOD_SELECTED' | 'CARD_ENTRY_OPENED' | 'CARD_ENTRY_CLOSED' | 'CARD_SUBMITTED' | 'CARD_CHECK_RETRIED' | 'CARD_SELECTED' | 'CHANGE_CARD';
9
+ }>;
10
+ /**
11
+ * Holds machine 6 (FiatV2 payment selection) for the FIAT_V2 step and runs the side
12
+ * effects its states ask for: the card check a Submit or Retry tap starts, and
13
+ * the expiry timer while a card is held. Replaced by the FiatV2 root reducer's host later.
14
+ */
15
+ export declare function useFiatV2PaymentSelectionHost({ effects, }: {
16
+ effects: FiatV2PaymentSelectionEffects;
17
+ }): {
18
+ state: FiatV2PaymentSelectionState;
19
+ send: (event: FiatV2BuyerPaymentEvent) => void;
20
+ };
21
+ /** Short label for the placeholder screen, e.g. `card:refused:rate_limited`. */
22
+ export declare function stageOf(state: FiatV2PaymentSelectionState): string;
@@ -23,5 +23,7 @@ export declare enum FunCheckoutStep {
23
23
  CONVERT_SELECT_SOURCE = "convert_select_source",
24
24
  CONVERT_SELECT_DESTINATION = "convert_select_destination",
25
25
  WITHDRAWAL_ENTER_AMOUNT = "withdrawal_enter_amount",
26
- WITHDRAWAL_COMPLETE = "withdrawal_complete"
26
+ WITHDRAWAL_COMPLETE = "withdrawal_complete",
27
+ /** Bridge into the V2 checkout (FiatV2 today). One step hosts every V2 screen. */
28
+ FIAT_V2 = "fiat_v2"
27
29
  }
@@ -4,9 +4,9 @@ import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutCont
4
4
  export type { CheckoutAmountLimitsUsd };
5
5
  /**
6
6
  * Resolves the min/max USD bounds for the amount input based on the active
7
- * payment method. Fetches the inputs (min-transfer floor, global max) and
8
- * delegates the per-method rules to `getCheckoutAmountLimitsUsd` in
9
- * `@funkit/connect-core`.
7
+ * payment method. Fetches the inputs (min-transfer floor, global max lowered
8
+ * by the integrator's max) and delegates the per-method rules to
9
+ * `getCheckoutAmountLimitsUsd` in `@funkit/connect-core`.
10
10
  */
11
11
  export declare const useCheckoutAmountLimits: ({ checkoutConfig, paymentMethod, }: {
12
12
  checkoutConfig: FunkitCheckoutConfig;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ /**
3
+ * Picker row that opens the V2 checkout with FiatV2 to add a debit card. It borrows
4
+ * the legacy card icon only. Choosing it never goes through Meld.
5
+ */
6
+ export declare function AddCardItem({ isDisabled, onClick, }: {
7
+ isDisabled: boolean;
8
+ onClick: () => void;
9
+ }): React.JSX.Element;
@@ -59,6 +59,9 @@ export type SourceChangeNext = {
59
59
  */
60
60
  skipAssetSelect: true;
61
61
  paymentMethodInfo: ConnectablePaymentMethodInfo;
62
+ } | {
63
+ /** Open the V2 checkout with FiatV2 from its picker row. */
64
+ fiatV2: true;
62
65
  } | {
63
66
  /** Enter the cashier withdrawal flow with a resolved single-method config. */
64
67
  withdraw: true;
@@ -0,0 +1,12 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { PaymentMethodType } from '../../../hooks/usePaymentSources';
3
+ /**
4
+ * The only place the V1 picker reads the FiatV2 gate. Returns the
5
+ * "Add a card" row, or null when the gate is off so the picker is unchanged.
6
+ */
7
+ export declare function useAddCardRow({ isDisabled, isSwappedEnabled, tab, onOpen, }: {
8
+ isDisabled: boolean;
9
+ isSwappedEnabled: boolean;
10
+ tab: PaymentMethodType;
11
+ onOpen: () => void;
12
+ }): ReactNode | null;
@@ -9,6 +9,7 @@ import { type PerpsTransferNext, type PerpsTransferState } from '../PolymarketPe
9
9
  import { type ConvertSelectDestinationNext, type ConvertSelectDestinationState } from './Convert/ConvertSelectDestinationStep';
10
10
  import { type ConvertSelectSourceNext, type ConvertSelectSourceState } from './Convert/ConvertSelectSourceStep';
11
11
  import { type ConvertNext, type ConvertState } from './Convert/ConvertStep';
12
+ import { type FiatV2Next, type FiatV2State } from './FiatV2/FiatV2Step';
12
13
  import { type SelectBrokerageNext, type SelectBrokerageState } from './Brokerage/SelectBrokerage';
13
14
  import { type CheckoutCompleteNext, type CheckoutCompleteState } from './CheckoutComplete/CheckoutComplete';
14
15
  import { type ConfirmationStepNext, type ConfirmationStepState } from './ConfirmationStep/ConfirmationStep';
@@ -113,6 +114,7 @@ export type CheckoutModalState<S extends FunCheckoutStep = FunCheckoutStep> = {
113
114
  [FunCheckoutStep.CONVERT_SELECT_DESTINATION]: ConvertSelectDestinationState;
114
115
  [FunCheckoutStep.WITHDRAWAL_ENTER_AMOUNT]: WithdrawalEnterAmountState;
115
116
  [FunCheckoutStep.WITHDRAWAL_COMPLETE]: WithdrawalCompleteState;
117
+ [FunCheckoutStep.FIAT_V2]: FiatV2State;
116
118
  }[T] & {
117
119
  step: T;
118
120
  previousStep?: FunCheckoutStep | null;
@@ -144,6 +146,7 @@ export type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
144
146
  [FunCheckoutStep.CONVERT_SELECT_DESTINATION]: ConvertSelectDestinationNext;
145
147
  [FunCheckoutStep.WITHDRAWAL_ENTER_AMOUNT]: WithdrawalEnterAmountNext;
146
148
  [FunCheckoutStep.WITHDRAWAL_COMPLETE]: WithdrawalCompleteNext;
149
+ [FunCheckoutStep.FIAT_V2]: FiatV2Next;
147
150
  }[S] & {
148
151
  /** Whether screen transition should change direction to simulate back transition. Only applies if there is a history entry in the stack*/
149
152
  reverseAnimation?: boolean;
@@ -13,7 +13,7 @@ export interface TransferActionButtonProps {
13
13
  pendingLabel: string;
14
14
  /** Label shown on success (already translated). */
15
15
  successLabel: string;
16
- /** Greys out / blocks the idle button until an amount is entered. */
16
+ /** Grays out / blocks the idle button until an amount is entered. */
17
17
  isDisabled?: boolean;
18
18
  onClick?: () => void;
19
19
  testId?: string;
@@ -26,16 +26,16 @@ export interface TransferActionButtonProps {
26
26
  * - **loading**: dimmed blue, spinner + loading label, inert.
27
27
  * - **pending**: dimmed blue, spinner + pending label, inert — a previous
28
28
  * transfer reported by the integrator is still settling.
29
- * - **success**: secondary (grey) surface, green check + success label, inert.
29
+ * - **success**: secondary (gray) surface, green check + success label, inert.
30
30
  *
31
31
  * Two details keep the morph smooth:
32
32
  *
33
33
  * 1. Each state's content (icon + label) is a single absolutely-positioned,
34
- * centered layer, and we swap whole layers. Because every layer centres
34
+ * centered layer, and we swap whole layers. Because every layer centers
35
35
  * itself, the label never shifts horizontally when the icon appears — the
36
36
  * transition is a pure vertical blur/fade (matching the From/To row swap).
37
- * 2. The grey surface is the always-present base; the blue sits on top as an
37
+ * 2. The gray surface is the always-present base; the blue sits on top as an
38
38
  * overlay whose opacity only ever fades *out* toward success. Nothing
39
- * brightens mid-transition, so there's no blue "flush" as it turns grey.
39
+ * brightens mid-transition, so there's no blue "flush" as it turns gray.
40
40
  */
41
41
  export declare function TransferActionButton({ status, idleLabel, processingLabel, loadingLabel, pendingLabel, successLabel, isDisabled, onClick, testId, }: TransferActionButtonProps): React.JSX.Element;
@@ -1,16 +1,15 @@
1
1
  import React from 'react';
2
2
  import type { Hex } from 'viem';
3
3
  import { type ModalBottomBarIdType } from '../../components/Dialog/Dialog';
4
- import type { FunCheckoutStep } from '../../modals/CheckoutModal/FunCheckoutStep';
4
+ import type { AnalyticsNamedStep } from '../../hooks/track/analytics/mappers';
5
5
  import type { FunkitActiveWithdrawalItem, MultiSourceWithdrawalConfig, SingleWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
6
6
  import { type WithdrawalFormData } from './useWithdrawal';
7
- import { WithdrawalModalStep } from './types';
8
7
  /**
9
8
  * Multi-method configs are resolved in WithdrawalModal before reaching here; a
10
9
  * multi-source config is resolved by {@link MultiSourceWithdrawContent}.
11
10
  */
12
11
  interface WithdrawContentProps {
13
- analyticsStep: FunCheckoutStep | WithdrawalModalStep;
12
+ analyticsStep: AnalyticsNamedStep;
14
13
  /** `executedConfig` is the source that ran — the picked one on a multi-source config. */
15
14
  onContinue: (withdrawal: WithdrawalFormData, txHash: Hex, executedConfig: SingleWithdrawalConfig) => void;
16
15
  config: SingleWithdrawalConfig | MultiSourceWithdrawalConfig;
@@ -1,4 +1,5 @@
1
- import type { Address } from 'viem';
1
+ import { type Address } from 'viem';
2
+ import type { ExecutionTransactionSubmittedArgs } from '../../hooks/track/analytics/resolveExecutionProgressContext';
2
3
  import { type CustomWithdrawalConfig, type FunkitActiveWithdrawalItem, type WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
4
  /**
4
5
  * Provider-agnostic fiat off-ramp order: deliver `amount` of the accepted
@@ -18,12 +19,14 @@ export interface FiatWithdrawalOrder {
18
19
  */
19
20
  providerCrypto?: string;
20
21
  providerNetwork?: string;
22
+ providerTimestamp?: number;
21
23
  }
22
24
  interface UseFiatWithdrawalParams {
23
25
  config: WalletWithdrawalConfig | CustomWithdrawalConfig;
24
26
  withdrawalItem: FunkitActiveWithdrawalItem | null;
25
27
  /** Invoked for unrecoverable failures (the caller tears down the flow). */
26
28
  onError: () => void;
29
+ onSubmitted: (order: FiatWithdrawalOrder, execution: ExecutionTransactionSubmittedArgs, txHash: string) => void;
27
30
  }
28
31
  /**
29
32
  * Owns the order → quote → execute pipeline for a fiat off-ramp withdrawal,
@@ -34,7 +37,7 @@ interface UseFiatWithdrawalParams {
34
37
  * to {@link useWithdrawal}, which owns preWithdrawalAction + confirmCheckout +
35
38
  * error mapping.
36
39
  */
37
- export declare function useFiatWithdrawal({ config, withdrawalItem, onError, }: UseFiatWithdrawalParams): {
40
+ export declare function useFiatWithdrawal({ config, withdrawalItem, onError, onSubmitted, }: UseFiatWithdrawalParams): {
38
41
  processOrder: (order: FiatWithdrawalOrder) => Promise<void>;
39
42
  };
40
43
  export {};
@@ -1,9 +1,10 @@
1
1
  import type { Hex } from 'viem';
2
2
  import { type CheckoutConfirmationError } from '../../domains/checkoutErrors';
3
3
  import { type AllowedRecipient } from '../../domains/withdrawalAllowlist';
4
- import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig, type WithdrawalFormData } from '../../providers/FunkitCheckoutContext';
4
+ import { type CheckoutConfirmationResult, type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig, type WithdrawalFormData } from '../../providers/FunkitCheckoutContext';
5
+ type WithdrawalSubmission = NonNullable<CheckoutConfirmationResult['transactionSubmitted']>;
5
6
  interface UseWithdrawalResult {
6
- handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<Hex | null>;
7
+ handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<WithdrawalSubmission | null>;
7
8
  isWithdrawing: boolean;
8
9
  withdrawalError: CheckoutConfirmationError | null;
9
10
  stepMessage: string | null;
@@ -3,15 +3,14 @@ import type { PaymentMethodInfo } from '../domains/paymentMethods';
3
3
  import type { FunkitCheckoutQuoteResult, QuotePhaseResult } from '../domains/quote';
4
4
  import { QuoteMode } from '../domains/quoteMode';
5
5
  import type { PerfQuoteProperties } from '../hooks/track/analytics/events';
6
+ import { type AnalyticsNamedStep } from '../hooks/track/analytics/mappers';
6
7
  import type { CheckoutModalEvent } from '../hooks/track/CheckoutModalEvent';
7
8
  import type { TrackEventData } from '../hooks/track/useTrack';
8
9
  import type { WithdrawModalEvent } from '../hooks/track/WithdrawModalEvent';
9
- import type { FunCheckoutStep } from '../modals/CheckoutModal/FunCheckoutStep';
10
- import type { WithdrawalModalStep } from '../modals/WithdrawalModal/types';
11
10
  import type { FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
12
11
  export declare const trackEventFromBaseQuote: (checkoutItem: FunkitActiveCheckoutItem, eventName: CheckoutModalEvent | WithdrawModalEvent, quoteMode?: QuoteMode) => TrackEventData;
13
12
  type PerfQuotePropertiesContext = {
14
- analyticsStep: FunCheckoutStep | WithdrawalModalStep;
13
+ analyticsStep: AnalyticsNamedStep;
15
14
  checkoutItem: FunkitActiveCheckoutItem;
16
15
  connectorId: string | undefined;
17
16
  directExecutionType: DirectExecutionType | null;
@@ -97,8 +97,8 @@ export declare function isCheckoutCrFlow(config: FunkitCheckoutConfig): boolean;
97
97
  export declare function isCheckoutPostActionRequired(config: FunkitCheckoutConfig | ServerCheckoutConfig): boolean;
98
98
  /**
99
99
  * The amount-input switcher labels the *traded* token, which differs by quote
100
- * mode: in EXACT_IN the entered amount is the source quantity, so it's labelled
101
- * with the input token; in EXACT_OUT it's the destination quantity, labelled
100
+ * mode: in EXACT_IN the entered amount is the source quantity, so it's labeled
101
+ * with the input token; in EXACT_OUT it's the destination quantity, labeled
102
102
  * with the output token. Single source of truth shared by the loaded and
103
103
  * loading screens so their labels never diverge.
104
104
  */
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ /**
3
+ * Stand-in for the FiatV2 screens until they land. Shows the FiatV2 stage so
4
+ * the wiring can be checked on staging. Only users with the
5
+ * `enable-web-fiat-deposit-flow` gate can reach it.
6
+ */
7
+ export declare function FiatPlaceholderScreen({ stage }: {
8
+ stage: string;
9
+ }): React.JSX.Element;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-TM7UBV3Q.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-ALGPGI6V.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  bifrostWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-USLZMUJ3.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-HOCKAU5H.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-IWPW26AL.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-BBDNB5TQ.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  bybitWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-JJBLW4IU.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-4FHNLTR3.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  clvWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-RQYEGJKL.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-RFCZYLNR.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  coin98Wallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-TIHTQ3OB.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-TRZDAXCQ.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  coreWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-F45CUFRR.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-U52QO5HF.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  foxWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-ASTCNVJC.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-IWOMSW64.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  frontierWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-FYPQ3HP4.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-YRMBR6NA.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  gateWallet
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
- trustWallet
4
- } from "./chunk-PPQ6L4K2.js";
3
+ xdefiWallet
4
+ } from "./chunk-HXX4PRE2.js";
5
5
  import {
6
6
  zealWallet
7
7
  } from "./chunk-GLX5FULK.js";
8
8
  import {
9
9
  zerionWallet
10
- } from "./chunk-OVDCDVFX.js";
10
+ } from "./chunk-34B7OJNT.js";
11
11
  import {
12
12
  safepalWallet
13
- } from "./chunk-MWB6LFSG.js";
13
+ } from "./chunk-BBB2J3US.js";
14
14
  import {
15
15
  tahoWallet
16
16
  } from "./chunk-U74RFZOL.js";
@@ -19,58 +19,58 @@ import {
19
19
  } from "./chunk-IAYYWCVB.js";
20
20
  import {
21
21
  tokenPocketWallet
22
- } from "./chunk-KE4CWI3A.js";
23
- import {
24
- uniswapWallet
25
- } from "./chunk-UNDWHCDH.js";
22
+ } from "./chunk-NXWG6FG2.js";
26
23
  import {
27
24
  tokenaryWallet
28
25
  } from "./chunk-TPM5PUJD.js";
29
26
  import {
30
- xdefiWallet
31
- } from "./chunk-HXX4PRE2.js";
27
+ uniswapWallet
28
+ } from "./chunk-UNDWHCDH.js";
29
+ import {
30
+ trustWallet
31
+ } from "./chunk-SR5CZR3L.js";
32
32
  import {
33
33
  walletConnectWallet
34
34
  } from "./chunk-DUX4XCDV.js";
35
- import {
36
- phantomWallet
37
- } from "./chunk-Q27YVDDH.js";
38
35
  import {
39
36
  rabbyWallet
40
37
  } from "./chunk-RQ2GXOJL.js";
38
+ import {
39
+ phantomWallet
40
+ } from "./chunk-Q27YVDDH.js";
41
41
  import {
42
42
  rainbowWallet
43
- } from "./chunk-65ULY6OC.js";
43
+ } from "./chunk-ZSSSLFQF.js";
44
+ import {
45
+ ramperWallet
46
+ } from "./chunk-GPXIBTWN.js";
44
47
  import {
45
48
  roninWallet
46
- } from "./chunk-RJF2YEZ5.js";
49
+ } from "./chunk-IA5432IR.js";
47
50
  import {
48
51
  safeWallet
49
52
  } from "./chunk-IR3PJMVM.js";
50
- import {
51
- ramperWallet
52
- } from "./chunk-GPXIBTWN.js";
53
53
  import {
54
54
  safeheronWallet
55
55
  } from "./chunk-UN3ONVNC.js";
56
56
  import {
57
57
  subWallet
58
- } from "./chunk-A5POD5SV.js";
58
+ } from "./chunk-XODA5ESL.js";
59
59
  import {
60
- gateWallet
61
- } from "./chunk-FYPQ3HP4.js";
60
+ metaMaskWallet
61
+ } from "./chunk-RXRYHMRI.js";
62
62
  import {
63
- mewWallet
64
- } from "./chunk-DSPQXAB2.js";
63
+ ledgerWallet
64
+ } from "./chunk-BL4OC2EJ.js";
65
65
  import {
66
66
  oktoWallet
67
67
  } from "./chunk-V4M3SNPS.js";
68
68
  import {
69
- metaMaskWallet
70
- } from "./chunk-ANODOMIN.js";
69
+ mewWallet
70
+ } from "./chunk-DSPQXAB2.js";
71
71
  import {
72
72
  okxWallet
73
- } from "./chunk-53MYTA42.js";
73
+ } from "./chunk-CU5J53XR.js";
74
74
  import {
75
75
  omniWallet
76
76
  } from "./chunk-2TAUCVX7.js";
@@ -83,74 +83,74 @@ import {
83
83
  import {
84
84
  enkryptWallet
85
85
  } from "./chunk-Z6LDN2AN.js";
86
+ import {
87
+ foxWallet
88
+ } from "./chunk-U52QO5HF.js";
86
89
  import {
87
90
  frameWallet
88
91
  } from "./chunk-B572YIAQ.js";
89
92
  import {
90
- foxWallet
91
- } from "./chunk-F45CUFRR.js";
93
+ frontierWallet
94
+ } from "./chunk-IWOMSW64.js";
92
95
  import {
93
96
  imTokenWallet
94
97
  } from "./chunk-YY2JA23M.js";
95
98
  import {
96
- frontierWallet
97
- } from "./chunk-ASTCNVJC.js";
99
+ gateWallet
100
+ } from "./chunk-YRMBR6NA.js";
98
101
  import {
99
102
  kresusWallet
100
103
  } from "./chunk-V77ATGZT.js";
101
104
  import {
102
105
  injectedWallet
103
106
  } from "./chunk-M75V7OL3.js";
104
- import {
105
- ledgerWallet
106
- } from "./chunk-BL4OC2EJ.js";
107
- import {
108
- braveWallet
109
- } from "./chunk-U2XXV45G.js";
110
107
  import {
111
108
  clvWallet
112
- } from "./chunk-JJBLW4IU.js";
109
+ } from "./chunk-4FHNLTR3.js";
110
+ import {
111
+ bitverseWallet
112
+ } from "./chunk-5AEWIKRA.js";
113
113
  import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-SM2A3OSG.js";
116
- import {
117
- coreWallet
118
- } from "./chunk-TIHTQ3OB.js";
119
- import {
120
- customWallet
121
- } from "./chunk-VKM5M5UK.js";
122
116
  import {
123
117
  coin98Wallet
124
- } from "./chunk-RQYEGJKL.js";
118
+ } from "./chunk-RFCZYLNR.js";
119
+ import {
120
+ coreWallet
121
+ } from "./chunk-TRZDAXCQ.js";
125
122
  import {
126
123
  dawnWallet
127
124
  } from "./chunk-LV6YV3DE.js";
125
+ import {
126
+ customWallet
127
+ } from "./chunk-VKM5M5UK.js";
128
128
  import {
129
129
  desigWallet
130
130
  } from "./chunk-DFHP75HV.js";
131
- import {
132
- bifrostWallet
133
- } from "./chunk-TM7UBV3Q.js";
134
131
  import {
135
132
  argentWallet
136
133
  } from "./chunk-XSDTNMQY.js";
137
- import {
138
- bitskiWallet
139
- } from "./chunk-NPITCCJE.js";
140
134
  import {
141
135
  bitgetWallet
142
- } from "./chunk-USLZMUJ3.js";
136
+ } from "./chunk-HOCKAU5H.js";
143
137
  import {
144
- bitverseWallet
145
- } from "./chunk-5AEWIKRA.js";
138
+ bifrostWallet
139
+ } from "./chunk-ALGPGI6V.js";
146
140
  import {
147
141
  bloomWallet
148
142
  } from "./chunk-PNHDOC77.js";
143
+ import {
144
+ braveWallet
145
+ } from "./chunk-U2XXV45G.js";
146
+ import {
147
+ bitskiWallet
148
+ } from "./chunk-NPITCCJE.js";
149
149
  import {
150
150
  bybitWallet
151
- } from "./chunk-IWPW26AL.js";
152
- import "./chunk-EYWGX5LT.js";
151
+ } from "./chunk-BBDNB5TQ.js";
153
152
  import "./chunk-AALSJCUR.js";
153
+ import "./chunk-EYWGX5LT.js";
154
154
  import "./chunk-B454LLKJ.js";
155
155
  export {
156
156
  argentWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-ANODOMIN.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-RXRYHMRI.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  metaMaskWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-53MYTA42.js";
5
- import "../chunk-EYWGX5LT.js";
4
+ } from "../chunk-CU5J53XR.js";
6
5
  import "../chunk-AALSJCUR.js";
6
+ import "../chunk-EYWGX5LT.js";
7
7
  import "../chunk-B454LLKJ.js";
8
8
  export {
9
9
  okxWallet