@funkit/connect 12.7.0 → 12.9.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.
- package/CHANGELOG.md +34 -0
- package/dist/__private__/index.d.ts +3 -0
- package/dist/clients/internal/nado/withdrawalForm.css +81 -81
- package/dist/clients/internal/nado/withdrawalForm.js +1 -1
- package/dist/clients/lighter.css +81 -81
- package/dist/clients/mallard.d.ts +1 -1
- package/dist/clients/mallard.js +58 -54
- package/dist/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.d.ts +1 -1
- package/dist/index.css +159 -159
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20184 -20084
- package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -1
- package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -1
- package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -1
- package/dist/modals/CheckoutModal/CheckoutComplete/CheckoutComplete.d.ts +2 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +2 -1
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoice.d.ts +2 -1
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +2 -1
- package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +2 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +2 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +2 -1
- package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +2 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -1
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeController.d.ts +2 -1
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -1
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalComplete.d.ts +2 -1
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +2 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -13
- package/dist/modals/CheckoutModal/stepTransition.shared.d.ts +16 -0
- package/dist/shadow/loadShadowCss.d.ts +4 -6
- package/dist/shadow-css.js +1 -1
- package/dist/wallets/createConnectedWithdrawalClient.d.ts +13 -0
- package/dist/wallets/walletConnectors/index.js +51 -51
- package/package.json +3 -3
- package/dist/clients/chunk-DNVDK7JQ.js +0 -335
- package/dist/wallets/walletConnectors/chunk-53MYTA42.js +0 -94
- package/dist/wallets/walletConnectors/chunk-65ULY6OC.js +0 -70
- package/dist/wallets/walletConnectors/chunk-A5POD5SV.js +0 -103
- package/dist/wallets/walletConnectors/chunk-ANODOMIN.js +0 -218
- package/dist/wallets/walletConnectors/chunk-ASTCNVJC.js +0 -96
- package/dist/wallets/walletConnectors/chunk-F45CUFRR.js +0 -66
- package/dist/wallets/walletConnectors/chunk-FYPQ3HP4.js +0 -92
- package/dist/wallets/walletConnectors/chunk-IWPW26AL.js +0 -98
- package/dist/wallets/walletConnectors/chunk-JJBLW4IU.js +0 -87
- package/dist/wallets/walletConnectors/chunk-KE4CWI3A.js +0 -93
- package/dist/wallets/walletConnectors/chunk-MWB6LFSG.js +0 -110
- package/dist/wallets/walletConnectors/chunk-OVDCDVFX.js +0 -100
- package/dist/wallets/walletConnectors/chunk-PPQ6L4K2.js +0 -106
- package/dist/wallets/walletConnectors/chunk-RJF2YEZ5.js +0 -92
- package/dist/wallets/walletConnectors/chunk-RQYEGJKL.js +0 -96
- package/dist/wallets/walletConnectors/chunk-TIHTQ3OB.js +0 -95
- package/dist/wallets/walletConnectors/chunk-TM7UBV3Q.js +0 -69
- package/dist/wallets/walletConnectors/chunk-USLZMUJ3.js +0 -99
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
3
|
import type { BluvoExchangeInfo } from '../../../consts/bluvo';
|
|
4
4
|
import type { PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
|
|
5
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
5
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
6
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
6
7
|
export type BrokerageTwoFAState = CheckoutModalCommonState & {
|
|
7
8
|
paymentMethodInfo: PaymentMethodBrokerageInfo;
|
|
8
9
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type BluvoExchangeType } from '../../../consts/bluvo';
|
|
3
3
|
import { type PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
5
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
6
|
export type ConnectExchangeState = CheckoutModalCommonState & {
|
|
6
7
|
brokerType: BluvoExchangeType;
|
|
7
8
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type BluvoExchangeType } from '../../../consts/bluvo';
|
|
3
3
|
import { type PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
5
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
6
|
export type SelectBrokerageState = CheckoutModalCommonState;
|
|
6
7
|
export type SelectBrokerageNext = {
|
|
7
8
|
hasActiveConnection: true;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
3
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
4
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
5
|
export type CheckoutCompleteState = CheckoutModalCommonState & {
|
|
5
6
|
depositAddress: Address;
|
|
6
7
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
3
|
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
5
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
6
|
export type ConfirmationStepState = CheckoutModalCommonState & {
|
|
6
7
|
paymentMethodInfo: PaymentMethodInfo;
|
|
7
8
|
};
|
|
@@ -2,7 +2,8 @@ import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { Hex } from 'viem';
|
|
4
4
|
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
5
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
5
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
6
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
6
7
|
import { type AmountSelection } from './state';
|
|
7
8
|
export type InputAmountState = CheckoutModalCommonState & {
|
|
8
9
|
paymentMethodInfo: PaymentMethodInfo;
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { type FunkitTextCustomizationsConfig } from '../../../providers/FunkitConfigContext';
|
|
3
3
|
import type { AssetHoldingsItem } from '../../../utils/assets';
|
|
4
4
|
import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
5
|
-
import { FunCheckoutStep
|
|
5
|
+
import { FunCheckoutStep } from '../stepTransition.shared';
|
|
6
|
+
import { type ModalStepComponentProps } from '../stepTransition';
|
|
6
7
|
interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep.INPUT_AMOUNT> {
|
|
7
8
|
sourceHolding: AssetHoldingsItem | null;
|
|
8
9
|
checkoutConfig: FunkitCheckoutConfig;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { ErrorNotification } from '../../../components/FunNotification/FunNotification';
|
|
4
|
-
import { FunCheckoutStep
|
|
4
|
+
import { FunCheckoutStep } from '../stepTransition.shared';
|
|
5
|
+
import { type NextPayload } from '../stepTransition';
|
|
5
6
|
export declare function useMeldUI({ meldEnabled, manuallySelectedQuote, fiatAmount, fiatCurrency, onNext, }: {
|
|
6
7
|
meldEnabled: boolean;
|
|
7
8
|
manuallySelectedQuote: MeldQuote | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type PaymentMethodBitcoinLightningInfo, type PaymentMethodCashAppLightningInfo } from '../../../domains/paymentMethods';
|
|
3
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
3
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
4
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
5
|
export type LightningInvoiceState = CheckoutModalCommonState & {
|
|
5
6
|
paymentMethodInfo: PaymentMethodBitcoinLightningInfo | PaymentMethodCashAppLightningInfo;
|
|
6
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
|
|
3
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
3
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from './stepTransition.shared';
|
|
4
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
4
5
|
export type LoadingAccountState = CheckoutModalCommonState;
|
|
5
6
|
export type LoadingAccountNext = {
|
|
6
7
|
chosenPaymentMethod: PaymentMethod.ACCOUNT_BALANCE;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PaymentMethodCardInfo } from '../../../domains/paymentMethods';
|
|
3
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
3
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
4
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
5
|
export type MeldCurrencySelectState = CheckoutModalCommonState & {
|
|
5
6
|
defaultCurrency: string;
|
|
6
7
|
paymentMethodInfo: PaymentMethodCardInfo;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { PaymentMethodCardInfo } from '../../../domains/paymentMethods';
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
5
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
6
|
import type { AmountSelection } from '../InputAmount/state';
|
|
6
7
|
export type MeldQuotesState = CheckoutModalCommonState & {
|
|
7
8
|
paymentMethodInfo: PaymentMethodCardInfo;
|
|
@@ -2,7 +2,8 @@ import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { PaymentMethodCardInfo } from '../../../domains/paymentMethods';
|
|
4
4
|
import type { AmountSelection } from '../InputAmount/state';
|
|
5
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
5
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
6
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
6
7
|
export type MeldRedirectState = CheckoutModalCommonState & {
|
|
7
8
|
amountSelection?: AmountSelection;
|
|
8
9
|
paymentMethodInfo: PaymentMethodCardInfo;
|
|
@@ -4,7 +4,8 @@ import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '
|
|
|
4
4
|
import type { AssetHoldingsItem } from '../../../domains/wallet';
|
|
5
5
|
import type { TransferTokenDefault } from '../../../hooks/useTokenAndChainDropdown';
|
|
6
6
|
import { type DynamicTargetAssetCandidate } from '../../../providers/FunkitCheckoutContext';
|
|
7
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
7
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
8
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
8
9
|
export type SelectAssetState = CheckoutModalCommonState & {
|
|
9
10
|
paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
10
11
|
};
|
|
@@ -5,7 +5,8 @@ import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodBit
|
|
|
5
5
|
import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
|
|
6
6
|
import { type PaymentMethodType } from '../../../hooks/usePaymentSources';
|
|
7
7
|
import { type CustomWithdrawalConfig, type WalletWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
|
|
8
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
8
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
9
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
9
10
|
import type { SwappedMode } from '../../../providers/SwappedProvider';
|
|
10
11
|
export type SourceChangeState = CheckoutModalCommonState & {
|
|
11
12
|
paymentMethodInfo: ConnectablePaymentMethodInfo | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { PaymentMethodType } from '../../../hooks/usePaymentSources';
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../../../modals/CheckoutModal/stepTransition.shared';
|
|
5
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
5
6
|
import { type SwappedMode } from '../../../providers/SwappedProvider';
|
|
6
7
|
export type SwappedIframeState = CheckoutModalCommonState & {
|
|
7
8
|
/** The selected payment option from the fops API */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type TransferTokenDefault } from '../../../hooks/useTokenAndChainDropdown';
|
|
3
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
3
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
4
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
5
|
export type TransferTokenState = CheckoutModalCommonState & {
|
|
5
6
|
transferToken?: TransferTokenDefault;
|
|
6
7
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PaymentMethodVirtualBankIncompleteInfo } from '../../../domains/paymentMethods';
|
|
2
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
2
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../../../modals/CheckoutModal/stepTransition.shared';
|
|
3
|
+
import { type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
4
|
export type BridgeCustomerNext = {
|
|
4
5
|
hasError?: false;
|
|
5
6
|
kycLink: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BridgeCustomer, type BridgeVirtualBankAccount, type Guid } from '@funkit/api-base';
|
|
2
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
2
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../../../modals/CheckoutModal/stepTransition.shared';
|
|
3
|
+
import { type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
4
|
export declare enum NextStep {
|
|
4
5
|
ShowSource = "ShowSource",
|
|
5
6
|
ShowKyc = "ShowKyc",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CheckoutModalCommonState, FunCheckoutStep
|
|
2
|
+
import { CheckoutModalCommonState, FunCheckoutStep } from '../../../modals/CheckoutModal/stepTransition.shared';
|
|
3
|
+
import { type ModalStepComponentProps, ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
4
|
export type ErrorScreenState = CheckoutModalCommonState & {
|
|
4
5
|
errorCode: string;
|
|
5
6
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type PaymentMethodVirtualBankInfo } from '../../../domains/paymentMethods';
|
|
3
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
3
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
4
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
5
|
export type FiatAccountDetailState = CheckoutModalCommonState & {
|
|
5
6
|
paymentMethodInfo: PaymentMethodVirtualBankInfo;
|
|
6
7
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type KycLinkLoad } from '../../../hooks/useFrogAccount';
|
|
2
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
2
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../../../modals/CheckoutModal/stepTransition.shared';
|
|
3
|
+
import { type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
4
|
export type KycIframeState = CheckoutModalCommonState & KycLinkLoad;
|
|
4
5
|
export type KycIframeNext = Record<string, never>;
|
|
5
6
|
export declare const KycIframeInfo: ModalStepInfo<FunCheckoutStep.KYC_IFRAME>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PaymentMethodVirtualBankIncompleteInfo } from '../../../domains/paymentMethods';
|
|
3
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
3
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../../../modals/CheckoutModal/stepTransition.shared';
|
|
4
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
4
5
|
export type VirtualFiatAccountNext = Record<string, never>;
|
|
5
6
|
export type VirtualFiatAccountState = CheckoutModalCommonState & {
|
|
6
7
|
paymentMethodInfo: PaymentMethodVirtualBankIncompleteInfo;
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import type { Hex } from 'viem';
|
|
3
3
|
import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
|
|
4
4
|
import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
|
|
5
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
5
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
6
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
6
7
|
export type WithdrawalCompleteState = CheckoutModalCommonState & {
|
|
7
8
|
withdrawalConfig: WalletWithdrawalConfig | CustomWithdrawalConfig;
|
|
8
9
|
hash: Hex;
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import type { Hex } from 'viem';
|
|
3
3
|
import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
|
|
4
4
|
import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
|
|
5
|
-
import { type CheckoutModalCommonState, FunCheckoutStep
|
|
5
|
+
import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared';
|
|
6
|
+
import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
6
7
|
export type WithdrawalEnterAmountState = CheckoutModalCommonState & {
|
|
7
8
|
withdrawalConfig: WalletWithdrawalConfig | CustomWithdrawalConfig;
|
|
8
9
|
};
|
|
@@ -27,18 +27,7 @@ import { type FiatAccountDetailNext, type FiatAccountDetailState } from './Virtu
|
|
|
27
27
|
import { type KycIframeNext, type KycIframeState } from './VirtualFiatAccount/KycIframe';
|
|
28
28
|
import { type WithdrawalCompleteNext, type WithdrawalCompleteState } from './Withdrawal/WithdrawalComplete';
|
|
29
29
|
import { type WithdrawalEnterAmountNext, type WithdrawalEnterAmountState } from './Withdrawal/WithdrawalEnterAmount';
|
|
30
|
-
export { FunCheckoutStep };
|
|
31
|
-
export interface CheckoutModalCommonState {
|
|
32
|
-
checkoutId: string;
|
|
33
|
-
/** Handles soft hiding of the dialog (without removing it from the DOM) */
|
|
34
|
-
isSoftHidden: boolean;
|
|
35
|
-
/** Whether checkout should not be allowed to continue due to security reasons*/
|
|
36
|
-
isBlocked?: boolean;
|
|
37
|
-
startingStep: FunCheckoutStartingStep;
|
|
38
|
-
targetChainId: string;
|
|
39
|
-
showWalletOptions?: boolean;
|
|
40
|
-
hideBottomDivider: boolean;
|
|
41
|
-
}
|
|
30
|
+
export { type CheckoutModalCommonState, extractCommonState, FunCheckoutStep, } from './stepTransition.shared';
|
|
42
31
|
export interface ModalStepComponentProps<S extends FunCheckoutStep = FunCheckoutStep> {
|
|
43
32
|
modalState: CheckoutModalState<S>;
|
|
44
33
|
onBack(): void;
|
|
@@ -72,7 +61,6 @@ export interface SourceChangeTopComponentProps {
|
|
|
72
61
|
*/
|
|
73
62
|
applyDynamicTargetAssetCandidate: (candidate: DynamicTargetAssetCandidate) => void;
|
|
74
63
|
}
|
|
75
|
-
export declare function extractCommonState(state: CheckoutModalState): CheckoutModalCommonState;
|
|
76
64
|
interface ModalStepInput<S extends FunCheckoutStep> {
|
|
77
65
|
state: CheckoutModalState<S>;
|
|
78
66
|
apiKey: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FunCheckoutStartingStep } from '../../providers/FunkitCheckoutContext';
|
|
2
|
+
import { FunCheckoutStep } from './FunCheckoutStep';
|
|
3
|
+
import type { CheckoutModalState } from './stepTransition';
|
|
4
|
+
export { FunCheckoutStep };
|
|
5
|
+
export interface CheckoutModalCommonState {
|
|
6
|
+
checkoutId: string;
|
|
7
|
+
/** Handles soft hiding of the dialog (without removing it from the DOM) */
|
|
8
|
+
isSoftHidden: boolean;
|
|
9
|
+
/** Whether checkout should not be allowed to continue due to security reasons*/
|
|
10
|
+
isBlocked?: boolean;
|
|
11
|
+
startingStep: FunCheckoutStartingStep;
|
|
12
|
+
targetChainId: string;
|
|
13
|
+
showWalletOptions?: boolean;
|
|
14
|
+
hideBottomDivider: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function extractCommonState(state: CheckoutModalState): CheckoutModalCommonState;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* resolves through node_modules from inside the published package, so the
|
|
7
|
-
* chunk is only fetched when shadow mode actually turns on.
|
|
2
|
+
* Load the shadow stylesheet, retrying on the schedule above. Webpack and
|
|
3
|
+
* Turbopack re-attempt a failed chunk on the next call, which clears most
|
|
4
|
+
* transient network failures; a stale-deploy 404 fails the same way every
|
|
5
|
+
* time and falls back.
|
|
8
6
|
*/
|
|
9
7
|
export declare function loadShadowCss(): Promise<string | null>;
|