@funkit/connect 3.2.1 → 3.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 +56 -0
- package/README.md +0 -3
- package/dist/{chunk-76VEFMWE.js → chunk-77C753LI.js} +6 -2
- package/dist/{chunk-HFT6OV3T.js → chunk-BY224HGT.js} +1 -1
- package/dist/{chunk-EUSK63OY.js → chunk-XWW5QOD4.js} +6 -2
- package/dist/components/Box/Box.d.ts +44 -43
- package/dist/components/CopyAddress/CopyAddress.d.ts +7 -1
- package/dist/components/Dialog/Dialog.css.d.ts +2 -5
- package/dist/components/Dialog/Dialog.d.ts +2 -2
- package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +12 -0
- package/dist/components/Dropdown/BaseDropdown.d.ts +23 -0
- package/dist/components/Dropdown/BaseDropdownItem.d.ts +13 -0
- package/dist/components/Dropdown/ChainDropdown.d.ts +8 -0
- package/dist/components/Dropdown/TokenDropdown.d.ts +9 -0
- package/dist/components/FunAlert/FunAlert.d.ts +6 -3
- package/dist/components/FunBottomBar/FunBottomBar.d.ts +2 -1
- package/dist/components/FunButton/FunIconButton.d.ts +4 -1
- package/dist/components/FunButton/FunSignInButton.d.ts +8 -0
- package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +6 -1
- package/dist/components/FunConnectOptions/FunConnectOptions.d.ts +5 -2
- package/dist/components/FunConnectOptions/FunConnectResultStep.d.ts +1 -3
- package/dist/components/FunConnectOptions/FunSignInStep.d.ts +2 -1
- package/dist/components/FunConnectOptions/FunWeb3ConnectingStep.d.ts +1 -1
- package/dist/components/FunCountdown/FunCountdown.css.d.ts +2 -0
- package/dist/components/FunCountdown/FunCountdown.d.ts +2 -1
- package/dist/components/FunDivider/FunDivider.d.ts +2 -2
- package/dist/components/FunNotification/FunNotification.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +22 -10
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +4 -5
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +6 -0
- package/dist/components/Icons/BrokerageIcon.d.ts +4 -0
- package/dist/components/Icons/CopyDoublePaperSheetIcon.d.ts +5 -0
- package/dist/components/Icons/CopyDoubleRoundedSquareIcon.d.ts +5 -0
- package/dist/components/Icons/CreditCardIcon.d.ts +4 -0
- package/dist/components/Icons/EvmWallet.d.ts +3 -1
- package/dist/components/Icons/Gas.d.ts +4 -0
- package/dist/components/Icons/LightningBoltIcon.d.ts +4 -0
- package/dist/components/Icons/SocialMediaIcons.d.ts +12 -4
- package/dist/components/QRCode/QRCode.d.ts +8 -1
- package/dist/consts/assets.d.ts +1 -0
- package/dist/consts/funkit.d.ts +5 -1
- package/dist/css/sprinkles.css.d.ts +53 -45
- package/dist/domains/checkoutFees.d.ts +40 -0
- package/dist/domains/clientMetadata.d.ts +37 -0
- package/dist/{consts/payment.d.ts → domains/paymentMethods.d.ts} +5 -8
- package/dist/domains/quote.d.ts +16 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +1 -1
- package/dist/hooks/useCheckoutStateBooleans.d.ts +5 -1
- package/dist/hooks/useCheckoutTransferDepositAddress.d.ts +3 -0
- package/dist/hooks/useCheckoutType.d.ts +3 -3
- package/dist/hooks/useIsCheckoutRisky.d.ts +2 -0
- package/dist/hooks/useMesh.d.ts +4 -4
- package/dist/hooks/usePaymentMethodIcon.d.ts +22 -0
- package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +3 -2
- package/dist/index.css +2413 -2098
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12541 -11733
- package/dist/modals/CheckoutModal/CheckoutPrimaryInfo.d.ts +1 -12
- package/dist/modals/CheckoutModal/ConfirmationStep.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConnectExchange.d.ts +1 -1
- package/dist/modals/CheckoutModal/FunCheckoutModal.d.ts +1 -2
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +11 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +10 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +7 -0
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +73 -0
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +9 -0
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutQuote.d.ts +17 -0
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +23 -0
- package/dist/modals/CheckoutModal/InputAmount.d.ts +2 -2
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeshVerification.d.ts +1 -1
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -1
- package/dist/modals/CheckoutModal/SelectBrokerage.d.ts +2 -2
- package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +5 -2
- package/dist/modals/CheckoutModal/SourceChange.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken.d.ts +18 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +9 -9
- package/dist/modals/CheckoutModal/useAccountBalancePostCheckout.d.ts +1 -2
- package/dist/modals/CheckoutModal/useAvailableBalanceForCheckout.d.ts +2 -2
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +2 -7
- package/dist/modals/CheckoutModal/useUpdateSourceAssetForCard.d.ts +1 -1
- package/dist/modals/ConnectModal/ConnectModal.d.ts +3 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryContent.d.ts +3 -2
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +8 -6
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.d.ts +0 -1
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +5 -2
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.d.ts +2 -0
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.d.ts +2 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +36 -43
- package/dist/providers/FunkitConfigContext.d.ts +13 -0
- package/dist/providers/FunkitFlagsProvider.d.ts +2 -2
- package/dist/providers/FunkitMoonpayProvider.d.ts +1 -1
- package/dist/providers/FunkitThemeProvider.d.ts +20 -4
- package/dist/providers/GeneralWalletProvider.d.ts +12 -13
- package/dist/providers/ModalContext.d.ts +1 -1
- package/dist/providers/useAccountBalancePaymentDefaultInfo.d.ts +4 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.d.ts +5 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.d.ts +5 -1
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/assets.d.ts +1 -1
- package/dist/utils/checkout.d.ts +24 -5
- package/dist/utils/deposit.d.ts +10 -2
- package/dist/utils/flags/config.d.ts +11 -8
- package/dist/utils/formatNumber.d.ts +1 -0
- package/dist/utils/formatTimestamp.d.ts +8 -8
- package/dist/utils/payment.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +44 -44
- package/package.json +4 -4
- package/dist/components/FunCallToAction/FunCallToAction.d.ts +0 -10
- package/dist/components/FunContainer/FunContainer.d.ts +0 -9
- package/dist/components/FunToast/FunShortToast.css.d.ts +0 -10
- package/dist/components/FunToast/FunShortToast.d.ts +0 -3
- package/dist/components/FunToast/FunToast.d.ts +0 -18
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +0 -14
- package/dist/components/Icons/CopyDoubleIcon.d.ts +0 -2
- package/dist/components/Icons/PaymentMethodIcons.d.ts +0 -30
- package/dist/consts/checkoutFees.d.ts +0 -27
- package/dist/modals/CheckoutModal/TransferSetup.d.ts +0 -14
- package/dist/providers/FunToastProvider.d.ts +0 -11
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-4HKPVECK.js +0 -95
- package/dist/wallets/walletConnectors/chunk-4K3EKHXR.js +0 -71
- package/dist/wallets/walletConnectors/chunk-57UUMOOZ.js +0 -95
- package/dist/wallets/walletConnectors/chunk-5MVCKMZT.js +0 -94
- package/dist/wallets/walletConnectors/chunk-5NZLWT3Y.js +0 -73
- package/dist/wallets/walletConnectors/chunk-B5D7DYVV.js +0 -101
- package/dist/wallets/walletConnectors/chunk-HCKLWBE5.js +0 -98
- package/dist/wallets/walletConnectors/chunk-HLH777AC.js +0 -108
- package/dist/wallets/walletConnectors/chunk-HMDUVRZP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-IR3YKU2N.js +0 -103
- package/dist/wallets/walletConnectors/chunk-J2BF4L2V.js +0 -87
- package/dist/wallets/walletConnectors/chunk-KDGMYRMC.js +0 -102
- package/dist/wallets/walletConnectors/chunk-OKUX4BC4.js +0 -66
- package/dist/wallets/walletConnectors/chunk-VU6B3HMD.js +0 -96
- package/dist/wallets/walletConnectors/chunk-WAMHUVNP.js +0 -96
- package/dist/wallets/walletConnectors/chunk-YRK6XWL6.js +0 -149
- package/dist/wallets/walletConnectors/chunk-ZCKNEKQQ.js +0 -110
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken';
|
|
3
|
+
interface ChainDropdownProps {
|
|
4
|
+
assets: TokenTransferSourceChainsAndAssets;
|
|
5
|
+
onChainSelected: (chainId: number) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ChainDropdown: ({ assets, onChainSelected }: ChainDropdownProps) => React.JSX.Element;
|
|
8
|
+
export default ChainDropdown;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken';
|
|
3
|
+
interface TokenDropdownProps {
|
|
4
|
+
selectedChainId: number;
|
|
5
|
+
assets: TokenTransferSourceChainsAndAssets;
|
|
6
|
+
onTokenSelected: (token: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const TokenDropdown: ({ assets, selectedChainId, onTokenSelected, }: TokenDropdownProps) => React.JSX.Element;
|
|
9
|
+
export default TokenDropdown;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
icon
|
|
2
|
+
interface FunAlertProps {
|
|
3
|
+
icon?: ReactNode;
|
|
4
4
|
description: string | ReactNode;
|
|
5
|
-
|
|
5
|
+
type?: 'info' | 'error';
|
|
6
|
+
}
|
|
7
|
+
export declare function FunAlert({ icon, description, type }: FunAlertProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -4,5 +4,6 @@ export interface FunBottomBarProps {
|
|
|
4
4
|
topSection?: React.ReactNode;
|
|
5
5
|
actionButtonProps: FunButtonProps;
|
|
6
6
|
bottomSection?: React.ReactNode;
|
|
7
|
+
onClose?: () => void;
|
|
7
8
|
}
|
|
8
|
-
export declare const FunBottomBar: ({ topSection, actionButtonProps, bottomSection, }: FunBottomBarProps) => React.JSX.Element;
|
|
9
|
+
export declare const FunBottomBar: ({ topSection, actionButtonProps, bottomSection, onClose, }: FunBottomBarProps) => React.JSX.Element;
|
|
@@ -2,7 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { BoxProps } from '../Box/Box';
|
|
3
3
|
export interface FunIconButtonProps extends Pick<BoxProps, 'as' | 'borderRadius' | 'color' | 'fontSize' | 'fontWeight' | 'onBlur' | 'onMouseEnter' | 'onMouseLeave' | 'style'> {
|
|
4
4
|
onClick?: () => void;
|
|
5
|
+
/** Icon element to be rendered */
|
|
5
6
|
icon: React.ReactNode;
|
|
7
|
+
/** Adjust the visual center of the {@link icon} wrapper component, eg. icons that are visually weighted off-center can be pushed by a pixel to one direction to make them look centered */
|
|
8
|
+
iconVisualWeightCenter?: 'left' | 'top' | 'right' | 'bottom';
|
|
6
9
|
/** Total height and width of the clickable area (including borders) */
|
|
7
10
|
size?: BoxProps['height'];
|
|
8
11
|
/** Overrides width if the button is not round */
|
|
@@ -20,4 +23,4 @@ export interface FunIconButtonProps extends Pick<BoxProps, 'as' | 'borderRadius'
|
|
|
20
23
|
/** Defaults to 'quiet' */
|
|
21
24
|
variant?: 'filled' | 'quiet' | 'outlined';
|
|
22
25
|
}
|
|
23
|
-
export declare const FunIconButton: ({ children, onClick, icon, size, width, gap, ariaLabel, color, as, isDisabled, borderRadius, style, variant, ...props }: FunIconButtonProps) => React.JSX.Element;
|
|
26
|
+
export declare const FunIconButton: ({ children, onClick, icon, iconVisualWeightCenter, size, width, gap, ariaLabel, color, as, isDisabled, borderRadius, style, variant, ...props }: FunIconButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface FunSignInButtonProps {
|
|
3
|
+
title: string;
|
|
4
|
+
titlePrefix: ReactNode;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function FunSignInButton({ title, titlePrefix, onClick, }: FunSignInButtonProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type CheckoutBlockedReason = 'geoblock' | 'security';
|
|
3
|
+
interface FunCheckoutBlockedProps {
|
|
4
|
+
reason: CheckoutBlockedReason;
|
|
5
|
+
}
|
|
6
|
+
export declare const FunCheckoutBlocked: ({ reason }: FunCheckoutBlockedProps) => React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -7,6 +7,9 @@ export declare enum ConnectStep {
|
|
|
7
7
|
PENDING_FARCASTER = 4,
|
|
8
8
|
ERROR_WEB3 = 5
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
interface FunConnectOptionsProps {
|
|
11
11
|
onClose: () => void;
|
|
12
|
-
|
|
12
|
+
walletsOnly?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function FunConnectOptions({ onClose, walletsOnly, }: FunConnectOptionsProps): React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -3,11 +3,9 @@ import { WalletConnector } from '../../wallets/useWalletConnectors';
|
|
|
3
3
|
type ResultType = 'success' | 'error';
|
|
4
4
|
interface FunErrorContentProps {
|
|
5
5
|
onClose: () => void;
|
|
6
|
-
actionTitle: string;
|
|
7
|
-
onAction: () => void;
|
|
8
6
|
wallet: WalletConnector | undefined;
|
|
9
7
|
type: ResultType;
|
|
10
8
|
qrCodeUri: string;
|
|
11
9
|
}
|
|
12
|
-
export declare const FunConnectResultStep: ({ onClose,
|
|
10
|
+
export declare const FunConnectResultStep: ({ onClose, type, wallet, qrCodeUri, }: FunErrorContentProps) => React.JSX.Element;
|
|
13
11
|
export {};
|
|
@@ -7,7 +7,7 @@ export declare function useEnabledSocialLogins(): SocialLoginOption[];
|
|
|
7
7
|
* Modal content for a user that is not signed-in yet
|
|
8
8
|
* Shows Web2 and Web3 sign in options
|
|
9
9
|
*/
|
|
10
|
-
export declare function FunSignInStep({ onClose, signInStep, changeStep, setSelectedWallet, connectToWallet, setQrCodeUri, emailInput, setEmailInput, onFarcasterSuccessInit, }: {
|
|
10
|
+
export declare function FunSignInStep({ onClose, signInStep, changeStep, setSelectedWallet, connectToWallet, setQrCodeUri, emailInput, setEmailInput, onFarcasterSuccessInit, walletsOnly, }: {
|
|
11
11
|
onClose: () => void;
|
|
12
12
|
signInStep: ConnectStep;
|
|
13
13
|
changeStep: (p: ConnectStep) => void;
|
|
@@ -17,4 +17,5 @@ export declare function FunSignInStep({ onClose, signInStep, changeStep, setSele
|
|
|
17
17
|
emailInput: string;
|
|
18
18
|
setEmailInput: React.Dispatch<React.SetStateAction<string>>;
|
|
19
19
|
onFarcasterSuccessInit: (channelToken: string, connectUri: string) => void;
|
|
20
|
+
walletsOnly?: boolean;
|
|
20
21
|
}): React.JSX.Element;
|
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
selectedWallet: WalletConnector | undefined;
|
|
5
5
|
qrCodeUri: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const FunWeb3ConnectingStep: ({ selectedWallet, qrCodeUri }: Props) => React.JSX.Element;
|
|
7
|
+
export declare const FunWeb3ConnectingStep: ({ selectedWallet, qrCodeUri }: Props) => React.JSX.Element | null;
|
|
8
8
|
export {};
|
|
@@ -9,5 +9,6 @@ export interface FunCountdownProps {
|
|
|
9
9
|
onBeforeCountdownEnds?: () => void;
|
|
10
10
|
onCountdownLastSecond?: () => void;
|
|
11
11
|
children?: ReactNode | ((remainingSeconds: number) => ReactNode);
|
|
12
|
+
isHidden?: boolean;
|
|
12
13
|
}
|
|
13
|
-
export declare const FunCountdown: ({ countdownSeconds, initialRemainingSeconds, counterSize, onCountdownEnded, onBeforeCountdownEnds, onBeforeCountdownEndsSeconds, onCountdownLastSecond, strokeWidth, children, }: FunCountdownProps) => React.JSX.Element;
|
|
14
|
+
export declare const FunCountdown: ({ countdownSeconds, initialRemainingSeconds, counterSize, onCountdownEnded, onBeforeCountdownEnds, onBeforeCountdownEndsSeconds, onCountdownLastSecond, strokeWidth, isHidden, children, }: FunCountdownProps) => React.JSX.Element | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BoxProps } from '../Box/Box';
|
|
3
3
|
interface FunDividerProps {
|
|
4
|
-
marginTop?: BoxProps['
|
|
5
|
-
marginBottom?: BoxProps['
|
|
4
|
+
marginTop?: BoxProps['marginTop'];
|
|
5
|
+
marginBottom?: BoxProps['marginBottom'];
|
|
6
6
|
borderColor?: BoxProps['borderColor'];
|
|
7
7
|
transparent?: boolean;
|
|
8
8
|
label?: string;
|
|
@@ -11,7 +11,7 @@ interface FunNotificationProps {
|
|
|
11
11
|
containerProps?: React.ComponentProps<typeof Box>;
|
|
12
12
|
isVisible?: boolean;
|
|
13
13
|
}
|
|
14
|
-
type FunNotificationType = 'default' | 'error' | 'warning' | 'hint';
|
|
14
|
+
export type FunNotificationType = 'default' | 'error' | 'warning' | 'hint';
|
|
15
15
|
/**
|
|
16
16
|
* A notification/message component with height resizing animation.
|
|
17
17
|
* Control visibility by enabling/disabling `isVisible` prop instead of doing an outer conditional rendering.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { PaymentMethod, PaymentMethodInfo } from '../../
|
|
2
|
+
import { PaymentMethod, PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
3
3
|
import { SelectMethodPayloadData } from '../../modals/CheckoutModal/SelectPaymentMethod';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
5
|
+
import { FunkitTextCustomizationsConfig, FunkitUiCustomRecipientConfig } from '../../providers/FunkitConfigContext';
|
|
6
|
+
export declare function ConnectWalletItem({ isClickable, }: {
|
|
6
7
|
isClickable?: boolean;
|
|
7
8
|
}): React.JSX.Element;
|
|
8
|
-
export declare function AddPaymentMethodItem({ paymentMethod,
|
|
9
|
+
export declare function AddPaymentMethodItem({ paymentMethod, isClickable, isActive, onClick, isSource, dynamicLimit, customValueIcon, }: {
|
|
9
10
|
paymentMethod: PaymentMethod;
|
|
10
|
-
checkoutId: string;
|
|
11
11
|
isActive: boolean;
|
|
12
12
|
isClickable?: boolean;
|
|
13
13
|
onClick?: () => void;
|
|
@@ -15,17 +15,29 @@ export declare function AddPaymentMethodItem({ paymentMethod, checkoutId, isClic
|
|
|
15
15
|
dynamicLimit?: string;
|
|
16
16
|
customValueIcon?: ReactNode;
|
|
17
17
|
}): React.JSX.Element;
|
|
18
|
-
|
|
18
|
+
interface PaymentMethodSummaryProps {
|
|
19
19
|
paymentMethodInfo: PaymentMethodInfo;
|
|
20
|
-
|
|
20
|
+
walletAddress: string | undefined;
|
|
21
|
+
customRecipient: string | undefined;
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
estimatedTime: number;
|
|
24
|
+
customizationConfig?: FunkitUiCustomRecipientConfig;
|
|
25
|
+
}
|
|
26
|
+
export declare function PaymentMethodSummary({ paymentMethodInfo, walletAddress, customRecipient, estimatedTime, isLoading, customizationConfig, }: PaymentMethodSummaryProps): React.JSX.Element;
|
|
27
|
+
interface PaymentAmountSummaryProps {
|
|
28
|
+
isLoading: boolean;
|
|
29
|
+
targetChainId: string;
|
|
30
|
+
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
31
|
+
textCustomizations: FunkitTextCustomizationsConfig['confirmationScreen'];
|
|
32
|
+
}
|
|
33
|
+
export declare function PaymentAmountSummary({ isLoading, targetChainId, checkoutItem, textCustomizations, }: PaymentAmountSummaryProps): React.JSX.Element;
|
|
21
34
|
/**
|
|
22
35
|
* Handle selection and adding of payment methods
|
|
23
36
|
*/
|
|
24
|
-
export declare function FunPaymentMethods({
|
|
25
|
-
checkoutId: string;
|
|
37
|
+
export declare function FunPaymentMethods({ onSelect, isDisabled, isLoadingGeoCheck, onCloseWrapper, }: {
|
|
26
38
|
onSelect: (selectMethodData: SelectMethodPayloadData) => void;
|
|
27
39
|
isDisabled?: boolean;
|
|
28
|
-
depositAmount: number;
|
|
29
40
|
isLoadingGeoCheck: boolean;
|
|
30
41
|
onCloseWrapper: () => void;
|
|
31
42
|
}): React.JSX.Element;
|
|
43
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import './FunTxSummaryComponents.css';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}): React.JSX.Element;
|
|
6
|
-
export declare function FunTxSummaryLineItem({ children, ...otherProps }: any): React.JSX.Element;
|
|
2
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
|
3
|
+
import { BoxProps } from '../Box/Box';
|
|
4
|
+
export declare function FunTxSummaryBox({ children }: PropsWithChildren): React.JSX.Element;
|
|
5
|
+
export declare function FunTxSummaryLineItem({ children, ...otherProps }: BoxProps): React.JSX.Element;
|
|
7
6
|
export declare function FunTxSummaryLineItemCollapsibleTrigger({ children, isDisabled, onClick, }: {
|
|
8
7
|
children: ReactNode;
|
|
9
8
|
isDisabled: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
3
|
+
export declare function PaymentFeesSummary({ isLoading, checkoutItem, }: {
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
6
|
+
}): React.JSX.Element;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const GoogleIcon: (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
2
|
+
export declare const GoogleIcon: ({ size }: {
|
|
3
|
+
size?: number;
|
|
4
|
+
}) => React.JSX.Element;
|
|
5
|
+
export declare const TwitterIcon: ({ size }: {
|
|
6
|
+
size?: number;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export declare const AppleIcon: ({ size }: {
|
|
9
|
+
size?: number;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export declare const FarcasterIcon: ({ size }: {
|
|
12
|
+
size?: number;
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import QRCodeUtil from 'qrcode';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { BoxProps } from '../Box/Box';
|
|
3
4
|
type Props = {
|
|
4
5
|
ecl?: QRCodeUtil.QRCodeErrorCorrectionLevel;
|
|
5
6
|
logoBackground?: string;
|
|
@@ -8,6 +9,12 @@ type Props = {
|
|
|
8
9
|
logoSize?: number;
|
|
9
10
|
size?: number;
|
|
10
11
|
uri: string;
|
|
12
|
+
outsidePadding?: BoxProps['padding'];
|
|
13
|
+
enableCornerMarkersRadius?: boolean;
|
|
14
|
+
enableOuterBorder?: boolean;
|
|
11
15
|
};
|
|
12
|
-
|
|
16
|
+
/**
|
|
17
|
+
* CAUTION: The size of the rendered QR code needs to be tested for the longest encoded {@link uri} string to make sure it's still readable/scannable.
|
|
18
|
+
*/
|
|
19
|
+
export declare function QRCode({ ecl, logoBackground, logoMargin, logoSize, logoUrl, size: sizeProp, uri, outsidePadding, enableCornerMarkersRadius, enableOuterBorder, }: Props): React.JSX.Element;
|
|
13
20
|
export {};
|
package/dist/consts/assets.d.ts
CHANGED
package/dist/consts/funkit.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { CheckoutState } from '@funkit/api-base';
|
|
2
2
|
import { OAuthProviderType } from '@privy-io/js-sdk-core';
|
|
3
3
|
import { Address } from 'viem';
|
|
4
|
+
/**
|
|
5
|
+
* NATIVE_TOKEN is a special address in Fun to represent different native currency tokens on different chains
|
|
6
|
+
* e.g. on Base it is ETH, but on Polygon it is MATIC/POL. It is not one specific real token address.
|
|
7
|
+
**/
|
|
4
8
|
export declare const NATIVE_TOKEN = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
5
9
|
export declare const FUNKIT_CONNECTOR_ID = "funkitConnector";
|
|
6
10
|
export declare const FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
|
|
@@ -27,7 +31,7 @@ export declare enum FunkitSocialLoginMethod {
|
|
|
27
31
|
export type SocialLoginOption = {
|
|
28
32
|
funkitKey: FunkitSocialLoginMethod;
|
|
29
33
|
provider: OAuthProviderType | 'farcaster';
|
|
30
|
-
|
|
34
|
+
getIcon: (size?: number) => React.ReactNode;
|
|
31
35
|
name: string;
|
|
32
36
|
};
|
|
33
37
|
export type FunkitLoginType = 'web2' | 'web3';
|