@funkit/connect 8.3.1-next.0 → 8.4.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 +125 -0
- package/dist/{chunk-5JRQC2VM.js → chunk-4WY7FNYP.js} +14 -0
- package/dist/{chunk-CUWQELX3.js → chunk-UUHLEWAL.js} +4 -2
- package/dist/{chunk-VWSYBHAK.js → chunk-Z4QDKBBG.js} +4 -2
- package/dist/clients/fanatics.css +4064 -3651
- package/dist/clients/fanatics.d.ts +6 -0
- package/dist/clients/fanatics.js +118 -43
- package/dist/components/Box/Box.d.ts +45 -45
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +1 -0
- package/dist/components/FunCheckoutHistory/FunTxSummarySections.d.ts +7 -0
- package/dist/components/FunCheckoutHistory/TotalTimeItem.d.ts +6 -0
- package/dist/components/FunCheckoutHistory/YouSendItem.d.ts +6 -0
- package/dist/components/FunCheckoutHistory/useCustomStatusAnimationAboveTopbar.d.ts +1 -3
- package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +3 -1
- package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
- package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +1 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -0
- package/dist/components/Icons/New/CircleBitcoinIcon.d.ts +4 -0
- package/dist/components/Icons/New/DollarIcon.d.ts +3 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/consts/customers.d.ts +1 -1
- package/dist/consts/layout.d.ts +0 -1
- package/dist/css/sprinkles.css.d.ts +91 -45
- package/dist/domains/asset.d.ts +1 -1
- package/dist/domains/meld.d.ts +0 -6
- package/dist/hooks/queries/useFops.d.ts +4 -2
- package/dist/hooks/queries/useSwappedDefaultCurrency.d.ts +5 -0
- package/dist/hooks/track/CheckoutModalEvent.d.ts +7 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
- package/dist/hooks/useStepQueryReadiness.d.ts +32 -0
- package/dist/index.css +4090 -3671
- package/dist/index.js +3894 -3058
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -0
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -1
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +5 -1
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +10 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +10 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -0
- package/dist/modals/CheckoutModal/SourceChange/{DefaultSourceList.d.ts → SourceList.d.ts} +3 -3
- package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +2 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +7 -0
- package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
- package/dist/providers/FunkitConfigContext.d.ts +14 -0
- package/dist/providers/FunkitProvider.d.ts +1 -0
- package/dist/providers/FunkitThemeProvider.d.ts +69 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/across.d.ts +5 -0
- package/dist/utils/depositCutoff.d.ts +9 -0
- package/dist/utils/directExecution.d.ts +16 -0
- package/dist/utils/flags/config.d.ts +2 -2
- package/dist/utils/lighter.d.ts +1 -1
- package/dist/utils/sanitizeHtml.d.ts +7 -0
- package/dist/utils/sanitizeUrl.d.ts +10 -0
- package/dist/utils/tokenIconUrl.d.ts +1 -1
- package/dist/utils/transfer.d.ts +2 -1
- package/dist/wallets/walletConnectors/index.js +24 -24
- package/package.json +4 -4
- package/dist/atoms/activeCheckout.d.ts +0 -183
- package/dist/atoms/activeWithdrawal.d.ts +0 -21
- package/dist/atoms/bridgeProviders/acrossAdapter.d.ts +0 -109
- package/dist/atoms/bridgeProviders/index.d.ts +0 -25
- package/dist/atoms/bridgeProviders/registry.d.ts +0 -12
- package/dist/atoms/bridgeProviders/relayAdapter.d.ts +0 -60
- package/dist/atoms/bridgeProviders/types.d.ts +0 -182
- package/dist/atoms/checkoutProgress.d.ts +0 -22
- package/dist/atoms/directExecution.d.ts +0 -70
- package/dist/atoms/funkitCheckout.d.ts +0 -18
- package/dist/atoms/funkitProvider/index.d.ts +0 -24
- package/dist/atoms/generalWallet.d.ts +0 -45
- package/dist/atoms/i18n.d.ts +0 -6
- package/dist/atoms/modalState.d.ts +0 -30
- package/dist/atoms/quote.d.ts +0 -98
- package/dist/atoms/stepTransition.d.ts +0 -6
- package/dist/atoms/store.d.ts +0 -1
- package/dist/atoms/track/index.d.ts +0 -10
- package/dist/atoms/utils.d.ts +0 -2
- package/dist/atoms/wagmi.d.ts +0 -4
- package/dist/atoms/walletClient.d.ts +0 -15391
- package/dist/chunk-A24XIU2M.js +0 -299
- package/dist/chunk-CMS4F5PL.js +0 -209
- package/dist/chunk-FBCU3TQA.js +0 -204
- package/dist/chunk-GRQP5R23.js +0 -209
- package/dist/chunk-MGQZMUZ2.js +0 -288
- package/dist/chunk-OTMBU2BL.js +0 -204
- package/dist/domains/across.d.ts +0 -29
- package/dist/domains/track.d.ts +0 -14
- package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +0 -2
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +0 -14
- package/dist/modals/CheckoutModal/SourceChange/FanaticsSourceList.d.ts +0 -15
- package/dist/wallets/walletConnectors/chunk-3ZWIUCOI.js +0 -96
- package/dist/wallets/walletConnectors/chunk-4SC3PZVM.js +0 -70
- package/dist/wallets/walletConnectors/chunk-5AV2NSL3.js +0 -98
- package/dist/wallets/walletConnectors/chunk-5FWURLPF.js +0 -218
- package/dist/wallets/walletConnectors/chunk-6677RKVT.js +0 -69
- package/dist/wallets/walletConnectors/chunk-75A4Q5E5.js +0 -92
- package/dist/wallets/walletConnectors/chunk-ENLR4LXN.js +0 -94
- package/dist/wallets/walletConnectors/chunk-FT5BX7TL.js +0 -103
- package/dist/wallets/walletConnectors/chunk-GEMN6DM5.js +0 -106
- package/dist/wallets/walletConnectors/chunk-GXTI2PZD.js +0 -100
- package/dist/wallets/walletConnectors/chunk-LGT6IAXI.js +0 -93
- package/dist/wallets/walletConnectors/chunk-N7475PGA.js +0 -110
- package/dist/wallets/walletConnectors/chunk-O6YFVGVQ.js +0 -99
- package/dist/wallets/walletConnectors/chunk-OCM5YHT5.js +0 -92
- package/dist/wallets/walletConnectors/chunk-PRGCIJ7Y.js +0 -87
- package/dist/wallets/walletConnectors/chunk-RNIMZDHW.js +0 -95
- package/dist/wallets/walletConnectors/chunk-TLOROKED.js +0 -96
- package/dist/wallets/walletConnectors/chunk-WNQ3NPHX.js +0 -66
|
@@ -4,6 +4,7 @@ interface FunDirectExecutionHistoryBottomBarProps {
|
|
|
4
4
|
isProcessing: boolean;
|
|
5
5
|
isLoaded: boolean;
|
|
6
6
|
onClose?: () => void;
|
|
7
|
+
onCloseLabel?: string;
|
|
7
8
|
actionButtonProps?: FunButtonProps;
|
|
8
9
|
}
|
|
9
10
|
export declare const FunDirectExecutionHistoryBottomBar: FC<FunDirectExecutionHistoryBottomBarProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HistoricalCheckoutItem } from '../../domains/clientMetadata';
|
|
3
|
+
export declare function YouSendItem({ clientMetadata, isLoaded, }: {
|
|
4
|
+
clientMetadata: HistoricalCheckoutItem | undefined;
|
|
5
|
+
isLoaded: boolean;
|
|
6
|
+
}): React.JSX.Element;
|
|
@@ -14,8 +14,6 @@ interface CustomStatusAnimationParams {
|
|
|
14
14
|
withTopDivider: 'always' | 'never' | 'scroll' | undefined;
|
|
15
15
|
/** ID of the element to scroll (main dialog content) when scrolling over the overflowed title */
|
|
16
16
|
scrollableContent: string;
|
|
17
|
-
/** Whether this is a lighter native deposit checkout (eth mainnet) */
|
|
18
|
-
isLighterNativeDeposit?: boolean;
|
|
19
17
|
}
|
|
20
18
|
interface CustomStatusAnimationReturn {
|
|
21
19
|
/** To be passed to scrolling container, to sync the scroll position */
|
|
@@ -29,5 +27,5 @@ interface CustomStatusAnimationReturn {
|
|
|
29
27
|
* Hook for sharing the logic for the custom status icon animation in checkout details. This is very
|
|
30
28
|
* much _not_ generic or intended to be reused anywhere, but the component itself is duplicated.
|
|
31
29
|
*/
|
|
32
|
-
export declare function useCustomStatusAnimationAboveTopbar({ depositAddress, isActiveCheckout, isCheckoutDetailView, paddingTop, topbar, withTopDivider, scrollableContent,
|
|
30
|
+
export declare function useCustomStatusAnimationAboveTopbar({ depositAddress, isActiveCheckout, isCheckoutDetailView, paddingTop, topbar, withTopDivider, scrollableContent, }: CustomStatusAnimationParams): CustomStatusAnimationReturn;
|
|
33
31
|
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type FunkitCheckoutConfig } from '../../index';
|
|
2
3
|
import { FunCheckoutStep } from '../../modals/CheckoutModal/stepTransition';
|
|
3
4
|
interface FunCheckoutModalHeightAnimationWrapperProps {
|
|
4
5
|
children: React.ReactNode;
|
|
6
|
+
checkoutConfig?: FunkitCheckoutConfig;
|
|
5
7
|
checkoutStep?: FunCheckoutStep;
|
|
6
8
|
}
|
|
7
9
|
export declare const mapHeightToCheckoutStep: Partial<Record<FunCheckoutStep, number>>;
|
|
8
|
-
export declare function FunCheckoutModalHeightAnimationWrapper({ children, checkoutStep, }: FunCheckoutModalHeightAnimationWrapperProps): React.JSX.Element;
|
|
10
|
+
export declare function FunCheckoutModalHeightAnimationWrapper({ children, checkoutConfig, checkoutStep, }: FunCheckoutModalHeightAnimationWrapperProps): React.JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type InfoBannerProps = {
|
|
3
|
-
/** Contents of the banner
|
|
3
|
+
/** Contents of the banner. Pass plain text or a ReactNode (e.g., <Trans> for links/formatting). */
|
|
4
4
|
message: string | React.ReactNode;
|
|
5
5
|
type: 'warning' | 'alert' | 'announcement';
|
|
6
6
|
expireAtMs?: number;
|
|
@@ -19,4 +19,5 @@ export interface FunPaymentMethodItemProps {
|
|
|
19
19
|
testId?: string;
|
|
20
20
|
}
|
|
21
21
|
export declare const FunPaymentMethodItem: ({ keyIcon, keyText, valueIcon, disclaimerText, badge, onClick, isError, isDisabled, isActive, testId, }: FunPaymentMethodItemProps) => React.JSX.Element;
|
|
22
|
+
export declare const LoadingFunPaymentMethodItem: () => React.JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type FormOfPayment } from '@funkit/api-base';
|
|
1
2
|
import React, { type ReactNode } from 'react';
|
|
2
3
|
import { type FunkitPaymentMethodIconsConfig } from '../../providers/FunkitConfigContext';
|
|
3
4
|
import { PaymentMethod, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
|
|
@@ -53,4 +54,10 @@ export declare function AddPaymentMethodItem({ paymentMethod, isClickable, isAct
|
|
|
53
54
|
export declare function PayPalPaymentMethodItem({ isActive, isClickable, onClick, isLoading, }: BasePaymentMethodItemProps & {
|
|
54
55
|
isLoading: boolean;
|
|
55
56
|
}): React.JSX.Element;
|
|
57
|
+
/**
|
|
58
|
+
* Payment method item for a Form of Payment from the fops API (Swapped providers)
|
|
59
|
+
*/
|
|
60
|
+
export declare function FopPaymentMethodItem({ fop, isActive, onClick, testId, }: BasePaymentMethodItemProps & {
|
|
61
|
+
fop: FormOfPayment;
|
|
62
|
+
}): React.JSX.Element;
|
|
56
63
|
export {};
|
|
@@ -15,4 +15,4 @@ export declare function isPerplCustomer(apiKey: string): apiKey is "wQDLu86Qab61
|
|
|
15
15
|
export declare function isLighterxyzCustomer(apiKey: string): apiKey is "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2";
|
|
16
16
|
export declare function isFanaticsCustomer(apiKey: string): apiKey is "lI7amueGK94QtGa7sGGVf8n0XhIcn4sHFAZRu5Jj";
|
|
17
17
|
export declare function isLighterEthSpot(apiKey: string, checkoutConfig: FunkitCheckoutConfig | undefined): boolean | undefined;
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function isLighterSlowDeposit(apiKey: string, checkoutConfig: Pick<FunkitCheckoutConfig, 'targetChain'> | undefined): boolean;
|
package/dist/consts/layout.d.ts
CHANGED