@funkit/connect 8.1.0 → 8.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.
- package/CHANGELOG.md +33 -0
- package/dist/__generated__/default_configs.d.ts +7 -6
- package/dist/{chunk-IVO7KGHT.js → chunk-JIC2XXGY.js} +7 -2
- package/dist/{chunk-5GV4UXWB.js → chunk-QHRAQNOB.js} +7 -2
- package/dist/{chunk-RJAD5CZH.js → chunk-WIDI2TYC.js} +28 -2
- package/dist/clients/fanatics.css +10067 -0
- package/dist/clients/fanatics.d.ts +31 -0
- package/dist/clients/fanatics.js +525 -0
- package/dist/components/Box/Box.d.ts +47 -46
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/FunBottomBar/FunBottomBar.d.ts +2 -1
- package/dist/components/FunButton/FunIconButton.d.ts +1 -1
- package/dist/components/FunInfoBanner/FunInfoBanner.d.ts +5 -1
- package/dist/components/FunInput/FunInput.d.ts +1 -0
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunOptionBox/FunOptionBox.d.ts +2 -1
- package/dist/components/Icons/BitcoinIcon.d.ts +4 -0
- package/dist/components/Icons/New/CashIcon.d.ts +4 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/consts/customers.d.ts +1 -0
- package/dist/css/sprinkles.css.d.ts +136 -49
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -1
- package/dist/hooks/usePaymentSources.d.ts +3 -1
- package/dist/index.css +3710 -3090
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3450 -3157
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -0
- package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +9 -0
- package/dist/modals/CheckoutModal/SourceChange/DefaultSourceList.d.ts +12 -0
- package/dist/modals/CheckoutModal/SourceChange/FanaticsSourceList.d.ts +15 -0
- package/dist/modals/CheckoutModal/SourceChange/PayPal.d.ts +2 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +1 -0
- package/dist/providers/FunkitConfigContext.d.ts +43 -4
- package/dist/providers/FunkitThemeProvider.d.ts +132 -3
- package/dist/themes/baseTheme.d.ts +2 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/flags/config.d.ts +3 -42
- package/dist/utils/flags/resolver.d.ts +34 -0
- package/dist/utils/funLogger.d.ts +2 -1
- package/dist/wallets/walletConnectors/index.js +21 -21
- package/package.json +5 -4
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +0 -13
|
@@ -2,13 +2,14 @@ import { type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutConte
|
|
|
2
2
|
interface CheckoutQuoteParams {
|
|
3
3
|
recipientAddress: string;
|
|
4
4
|
selectedChainId: string;
|
|
5
|
+
selectedTokenAddress: string | null | undefined;
|
|
5
6
|
selectedTokenSymbol: string;
|
|
6
7
|
config: FunkitWithdrawalConfig;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Simplified quoting logic used for withdrawal UI only.
|
|
10
11
|
*/
|
|
11
|
-
export declare function useWithdrawalQuote({ recipientAddress, selectedChainId, selectedTokenSymbol, config, }: CheckoutQuoteParams): {
|
|
12
|
+
export declare function useWithdrawalQuote({ recipientAddress, selectedChainId, selectedTokenAddress, selectedTokenSymbol, config, }: CheckoutQuoteParams): {
|
|
12
13
|
quoteEnabled: boolean;
|
|
13
14
|
isInstantQuoting: boolean;
|
|
14
15
|
data: {
|
|
@@ -5,7 +5,9 @@ export declare function usePaymentMethodEnablement(): {
|
|
|
5
5
|
isMeldEnabled: boolean;
|
|
6
6
|
isBrokerageEnabled: boolean;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type PaymentMethodType = 'crypto' | 'fiat';
|
|
9
|
+
export declare const usePaymentSources: (currentPaymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, type?: PaymentMethodType) => {
|
|
10
|
+
isFallback: boolean;
|
|
9
11
|
preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
|
|
10
12
|
moreSources: PaymentMethod[];
|
|
11
13
|
comingSoon: PaymentMethod[];
|