@funkit/connect 8.0.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 +56 -0
- package/dist/__generated__/default_configs.d.ts +10 -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 -1
- package/dist/css/sprinkles.css.d.ts +136 -49
- package/dist/domains/relay.d.ts +0 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -1
- package/dist/hooks/usePaymentSources.d.ts +4 -5
- package/dist/index.css +3710 -3090
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4274 -4117
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -1
- 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/modals/CheckoutModal/stepTransition.d.ts +3 -1
- 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/customer.d.ts +0 -6
- package/dist/utils/flags/config.d.ts +7 -28
- package/dist/utils/flags/resolver.d.ts +34 -0
- package/dist/utils/funLogger.d.ts +2 -1
- package/dist/wallets/walletConnectors/index.js +3 -3
- package/package.json +6 -5
- package/dist/modals/CheckoutModal/ConfirmationStep/KatanaBridgeAlert.d.ts +0 -2
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +0 -13
package/dist/domains/relay.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { FeeBreakdownV2 } from '@funkit/api-base';
|
|
2
2
|
import type { RelayExecute, RelayQuote } from '@funkit/fun-relay';
|
|
3
|
-
export declare const KATANA_BRIDGE_ALERT_THRESHOLD_PERCENT = 0.5;
|
|
4
3
|
export type RelayQuoteMetadata = {
|
|
5
4
|
relayQuote: RelayQuote['metadata']['relayQuote'];
|
|
6
5
|
feeBreakdown?: FeeBreakdownV2;
|
|
@@ -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: {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { type ConnectablePaymentMethodInfo, PaymentMethod } from '../domains/paymentMethods';
|
|
2
|
-
|
|
3
|
-
export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
|
|
4
|
-
checkoutConfig: FunkitCheckoutConfig | undefined;
|
|
5
|
-
}): {
|
|
2
|
+
export declare function usePaymentMethodEnablement(): {
|
|
6
3
|
isFiatEnabled: boolean;
|
|
7
4
|
isTokenTransferEnabled: boolean;
|
|
8
5
|
isMeldEnabled: boolean;
|
|
9
6
|
isBrokerageEnabled: boolean;
|
|
10
7
|
};
|
|
11
|
-
export
|
|
8
|
+
export type PaymentMethodType = 'crypto' | 'fiat';
|
|
9
|
+
export declare const usePaymentSources: (currentPaymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, type?: PaymentMethodType) => {
|
|
10
|
+
isFallback: boolean;
|
|
12
11
|
preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
|
|
13
12
|
moreSources: PaymentMethod[];
|
|
14
13
|
comingSoon: PaymentMethod[];
|