@funkit/connect 5.1.0 → 5.1.2
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/{chunk-2T4ZDGAO.js → chunk-A7G4HZZY.js} +9 -4
- package/dist/{chunk-DYPSSLLL.js → chunk-ELA2ZIK4.js} +7 -9
- package/dist/{chunk-5HIKBJTA.js → chunk-TTI2Q45P.js} +7 -9
- package/dist/components/Box/Box.d.ts +50 -50
- package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +3 -2
- package/dist/components/Dropdown/BaseDropdown.d.ts +3 -9
- package/dist/components/Dropdown/BaseDropdownItem.d.ts +1 -1
- package/dist/components/FunAlert/FunAlert.d.ts +3 -1
- package/dist/components/FunAsset/FunAssetItem.d.ts +1 -3
- package/dist/components/FunBadge/FunBadge.d.ts +14 -4
- package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +1 -2
- package/dist/components/FunCheckoutHistory/FunCheckoutHistoryDetail.d.ts +1 -2
- package/dist/components/FunCheckoutHistory/FunCheckoutHistoryTransaction.d.ts +7 -1
- package/dist/components/FunCheckoutHistory/FunCheckoutStatus.d.ts +2 -0
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +7 -0
- package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +2 -1
- package/dist/components/Icons/New/PercentageIcon.d.ts +2 -0
- package/dist/components/SolanaDepositAlert/SolanaDepositAlert.d.ts +6 -0
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +4 -3
- package/dist/consts/checkout.d.ts +7 -1
- package/dist/css/cssObjectFromTheme.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +62 -64
- package/dist/domains/asset.d.ts +12 -2
- package/dist/domains/checkoutRecipient.d.ts +6 -0
- package/dist/domains/quote.d.ts +8 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/useTokenTransfer.d.ts +3 -2
- package/dist/index.css +2515 -2677
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1993 -1588
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +0 -1
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +2 -0
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +8 -2
- package/dist/providers/AuthenticationContext.d.ts +1 -2
- package/dist/providers/FunkitCheckoutContext.d.ts +3 -3
- package/dist/providers/FunkitHistoryContext.d.ts +2 -1
- package/dist/providers/FunkitThemeProvider.d.ts +18 -21
- package/dist/providers/GeneralWalletProvider.d.ts +8 -8
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/checkout.d.ts +10 -2
- package/dist/utils/flags/config.d.ts +12 -0
- package/dist/utils/signature.d.ts +1 -0
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +60 -60
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +17 -17
- package/dist/components/FunAsset/FunAssetBadge.d.ts +0 -16
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
|
@@ -2,7 +2,6 @@ import type { CheckoutHistoryItem } from '@funkit/api-base';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
interface FunCheckoutHistoryDetailProps {
|
|
4
4
|
checkoutHistoryInfo: CheckoutHistoryItem | undefined;
|
|
5
|
-
hideStatus?: boolean;
|
|
6
5
|
onHelp: () => void;
|
|
7
6
|
onClose: () => void;
|
|
8
7
|
/** Element ID to be used to mount the CTA action bar */
|
|
@@ -12,5 +11,5 @@ interface FunCheckoutHistoryDetailProps {
|
|
|
12
11
|
/**
|
|
13
12
|
* Processing info about a checkout history item (already created in backend)
|
|
14
13
|
*/
|
|
15
|
-
export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo,
|
|
14
|
+
export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo, onHelp, onClose, bottomBarId, includeGenerateActionsParams, }: FunCheckoutHistoryDetailProps): React.JSX.Element;
|
|
16
15
|
export {};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import type { CheckoutHistoryItem } from '@funkit/api-base';
|
|
1
|
+
import type { CheckoutHistoryItem, CheckoutState } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
interface StatusTagProps {
|
|
4
|
+
state: CheckoutState;
|
|
5
|
+
refundState: CheckoutHistoryItem['refundState'];
|
|
6
|
+
isDelayed: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function StatusTag({ state, refundState, isDelayed }: StatusTagProps): React.JSX.Element;
|
|
3
9
|
interface FunTxSummaryHistoryProps {
|
|
4
10
|
checkoutHistoryItem: CheckoutHistoryItem | undefined;
|
|
5
11
|
isDelayed?: boolean;
|
|
@@ -5,4 +5,6 @@ interface FunCheckoutStatusProps {
|
|
|
5
5
|
onOrderDelayed?: () => void;
|
|
6
6
|
}
|
|
7
7
|
export declare function FunCheckoutStatus({ checkoutHistoryItem, onOrderDelayed, }: FunCheckoutStatusProps): React.JSX.Element | null;
|
|
8
|
+
/** Special status component for checkout Direct Execution flow (only success state is displayable to user) */
|
|
9
|
+
export declare const DirectExecutionStatus: () => React.JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type DirectExecution } from '@funkit/api-base';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare function FunDirectExecutionHistoryDetail({ directExecution, bottomBarId, onClose, }: {
|
|
4
|
+
directExecution: DirectExecution;
|
|
5
|
+
bottomBarId: string;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
export interface FunTooltipProps {
|
|
3
|
-
content:
|
|
4
|
-
children
|
|
3
|
+
content: ReactNode;
|
|
4
|
+
children?: ReactNode;
|
|
5
5
|
wrapperElementRef?: React.RefObject<HTMLDivElement>;
|
|
6
6
|
/** Renders the open tooltip based on available horizontal space, ie. ignoring the `tooltipPosition` prop,
|
|
7
7
|
* if the tooltip were to overflow beyond the boundaries of the provided `wrapperElementRef` element
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
|
-
export declare function FunTxSummaryBox({ children,
|
|
3
|
+
export declare function FunTxSummaryBox({ children, ...otherProps }: BoxProps): React.JSX.Element;
|
|
4
4
|
export declare function FunTxSummaryLineItem({ children, ...otherProps }: BoxProps): React.JSX.Element;
|
|
5
5
|
export declare function FunTxSummaryLineItemKeyText({ text }: {
|
|
6
6
|
text: string;
|
|
@@ -6,6 +6,7 @@ interface PaymentMethodSummaryProps {
|
|
|
6
6
|
customRecipient: FunAddress | undefined;
|
|
7
7
|
isLoading: boolean;
|
|
8
8
|
estimatedTime: number;
|
|
9
|
+
showTimeEstimate?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export declare function PaymentMethodSummary({ paymentMethodInfo, customRecipient, estimatedTime, isLoading, }: PaymentMethodSummaryProps): React.JSX.Element;
|
|
11
|
+
export declare function PaymentMethodSummary({ paymentMethodInfo, customRecipient, estimatedTime, isLoading, showTimeEstimate, }: PaymentMethodSummaryProps): React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FeeValue } from '~/hooks/useTokenTransfer';
|
|
3
3
|
interface TransferTokenDetailsProps {
|
|
4
4
|
minAmount?: number;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
-
priceImpact:
|
|
6
|
+
priceImpact: FeeValue;
|
|
7
|
+
maxSlippage: FeeValue;
|
|
7
8
|
}
|
|
8
|
-
export declare const TransferTokenDetails: ({ minAmount, disabled, priceImpact, }: TransferTokenDetailsProps) => React.JSX.Element;
|
|
9
|
+
export declare const TransferTokenDetails: ({ minAmount, disabled, priceImpact, maxSlippage, }: TransferTokenDetailsProps) => React.JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export declare enum CheckoutInitStepMessage {
|
|
2
2
|
CONFIRMING = 0,
|
|
3
|
-
PREPARING_DATA = 1
|
|
3
|
+
PREPARING_DATA = 1,
|
|
4
|
+
SWITCH_CHAIN = 2,
|
|
5
|
+
WAITING_FOR_SIGNATURE = 3,
|
|
6
|
+
WAITING_FOR_CONFIRMATION = 4
|
|
4
7
|
}
|
|
5
8
|
export declare const CHECKOUT_STEP_MESSAGE: {
|
|
6
9
|
1: string;
|
|
7
10
|
0: string;
|
|
11
|
+
2: string;
|
|
12
|
+
3: string;
|
|
13
|
+
4: string;
|
|
8
14
|
};
|
|
9
15
|
export declare enum Web3AccountBalanceMessage {
|
|
10
16
|
SIGN_TX = 0,
|