@funkit/connect 5.4.0 → 5.5.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 +47 -0
- package/dist/components/CurrencySelector/CurrencySelector.d.ts +8 -0
- package/dist/components/Dialog/Dialog.css.d.ts +3 -6
- package/dist/components/Dialog/Dialog.d.ts +2 -1
- package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +2 -1
- package/dist/components/FunCheckoutHistory/FunCheckoutHistoryDetail.d.ts +2 -1
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +6 -2
- package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +2 -2
- package/dist/components/Icons/LockIcon.d.ts +3 -1
- package/dist/components/Icons/New/BankIcon.d.ts +2 -2
- package/dist/components/Icons/New/LinkExternalIcon.d.ts +4 -0
- package/dist/components/MeldQuoteItem/MeldQuoteItem.d.ts +12 -0
- package/dist/components/SourceMeldQuoteItem/SourceMeldQuoteItem.d.ts +12 -0
- package/dist/consts/meld.d.ts +3 -0
- package/dist/css/scrollStyles.css.d.ts +1 -0
- package/dist/domains/asset.d.ts +1 -0
- package/dist/domains/paymentMethods.d.ts +1 -1
- package/dist/hooks/queries/useClientId.d.ts +3 -0
- package/dist/hooks/queries/useMeldCryptoCurrencyCode.d.ts +1 -0
- package/dist/hooks/queries/useMeldCurrencies.d.ts +1 -0
- package/dist/hooks/queries/useMeldDefaultCurrency.d.ts +5 -0
- package/dist/hooks/queries/useMeldLimits.d.ts +6 -0
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +4 -4
- package/dist/hooks/useCountdown.d.ts +5 -1
- package/dist/hooks/useDirectExecutionInfoPolling.d.ts +4 -4
- package/dist/hooks/useDynamicFont.d.ts +1 -1
- package/dist/hooks/usePaymentSources.d.ts +3 -2
- package/dist/index.css +43 -89
- package/dist/index.js +5843 -4572
- package/dist/modals/CheckoutModal/CheckoutComplete/CheckoutComplete.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +9 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +4 -2
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +5 -4
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +1 -2
- package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +3 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +12 -7
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +5 -2
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +15 -3
- package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +14 -0
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +15 -0
- package/dist/modals/CheckoutModal/MeldQuotes/useMeldLink.d.ts +2 -0
- package/dist/modals/CheckoutModal/MeldQuotes/useMeldQuotes.d.ts +5 -0
- package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +10 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +12 -1
- package/dist/providers/FunkitConfigContext.d.ts +2 -0
- package/dist/utils/customer.d.ts +6 -0
- package/dist/utils/directExecution.d.ts +5 -0
- package/dist/utils/flags/config.d.ts +24 -0
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +3 -1
- 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/chunk-25VW5TZP.js +92 -0
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +92 -0
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +94 -0
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +103 -0
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +69 -0
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +110 -0
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +99 -0
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +100 -0
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +93 -0
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +96 -0
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +106 -0
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +95 -0
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +96 -0
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +87 -0
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +70 -0
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +146 -0
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +98 -0
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +66 -0
- 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 +33 -33
- 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 +8 -7
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.css.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 5.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b18e3e2: feat: add meld quote/widgets
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- d69cfe2: feat: prevent flickering of the checkout modal when it is closed and reopened due to closing animations
|
|
12
|
+
- ab6f3f4: feat: adjust matching tokens to chains and vice-versa for Transfer crypto
|
|
13
|
+
- d68387a: feat: use 1 as unit price for stablecoins
|
|
14
|
+
- fc10b40: refactor: enrich pending screen for relay DEs
|
|
15
|
+
- 48ab9be: feat: only fetch first five checkouts & direct executions for faster notification
|
|
16
|
+
- 52937b6: fix fiat refetch on mount
|
|
17
|
+
- 43cf1bf: feat: dynamic relay referrer
|
|
18
|
+
- Updated dependencies [b18e3e2]
|
|
19
|
+
- Updated dependencies [fc10b40]
|
|
20
|
+
- Updated dependencies [6ea6b26]
|
|
21
|
+
- Updated dependencies [48ab9be]
|
|
22
|
+
- Updated dependencies [a273823]
|
|
23
|
+
- Updated dependencies [1137afa]
|
|
24
|
+
- Updated dependencies [43cf1bf]
|
|
25
|
+
- @funkit/api-base@1.9.0
|
|
26
|
+
- @funkit/utils@1.1.0
|
|
27
|
+
- @funkit/fun-relay@0.1.5
|
|
28
|
+
- @funkit/chains@0.3.1
|
|
29
|
+
- @funkit/core@2.3.22
|
|
30
|
+
- @funkit/wagmi-tools@3.0.44
|
|
31
|
+
|
|
32
|
+
## 5.4.1
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- e38e65b: feat(connect): katana - add FunPoweredTagline to every screen and Receive Token info to Transfer Token screen
|
|
37
|
+
- 7395597: refactor: better de loading state
|
|
38
|
+
- 8292deb: feat: fetching organization / client id
|
|
39
|
+
- c816681: feat: expose additionActions and updatedTimeMs to PurifiedCheckoutHistoryItem
|
|
40
|
+
- 3bb9542: feat(connect): add the option to show the total receive amount in USD below the token amount to FunkitUiCustomizationsConfig
|
|
41
|
+
- 1cf728e: feat(connect): add direct execution notifications to Transfer Crypto page
|
|
42
|
+
- Updated dependencies [0557854]
|
|
43
|
+
- Updated dependencies [8292deb]
|
|
44
|
+
- Updated dependencies [cbea7ca]
|
|
45
|
+
- @funkit/fun-relay@0.1.4
|
|
46
|
+
- @funkit/api-base@1.8.4
|
|
47
|
+
- @funkit/core@2.3.21
|
|
48
|
+
- @funkit/wagmi-tools@3.0.43
|
|
49
|
+
|
|
3
50
|
## 5.4.0
|
|
4
51
|
|
|
5
52
|
### Minor Changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CurrencySelectorProps {
|
|
3
|
+
selectedCurrency?: string;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
onClick?: (currency: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const CurrencySelector: ({ selectedCurrency, isLoading, onClick, }: CurrencySelectorProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const easing: number[];
|
|
2
|
+
export declare const DialogAnimationTimeIn = 0.25;
|
|
3
|
+
export declare const DialogAnimationTimeOut = 0.12;
|
|
3
4
|
export declare const overlay: string;
|
|
4
|
-
export declare const overlayInAnimation: string;
|
|
5
|
-
export declare const overlayOutAnimation: string;
|
|
6
5
|
export declare const content: string;
|
|
7
|
-
export declare const contentSlideUpAnimation: string;
|
|
8
|
-
export declare const contentSlideOutAnimation: string;
|
|
9
6
|
export declare const dydxTitle: string;
|
|
10
7
|
export declare const titleContainer: string;
|
|
11
8
|
/** Content that shouls overflow into topbar */
|
|
@@ -4,6 +4,7 @@ export { CHECKOUT_MODAL_BOTTOM_BAR_ID, CHECKOUT_MODAL_TITLE_COUNTDOWN_ID, useBot
|
|
|
4
4
|
interface DialogProps {
|
|
5
5
|
open: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
|
+
onAnimationComplete?: () => void;
|
|
7
8
|
titleId: string;
|
|
8
9
|
onMountAutoFocus?: (event: Event) => void;
|
|
9
10
|
children: ReactNode;
|
|
@@ -19,7 +20,7 @@ interface DialogProps {
|
|
|
19
20
|
/**
|
|
20
21
|
* Dialog components (title, content, bottom bar) must be rendered as direct children of Dialog for correct scrolling behavior
|
|
21
22
|
*/
|
|
22
|
-
export declare function Dialog({ children, onClose, open, titleId, isHidden, isSmartCloseable, withoutInternalPadding, withTransition, }: DialogProps): React.
|
|
23
|
+
export declare function Dialog({ children, onClose, onAnimationComplete, open, titleId, isHidden, isSmartCloseable, withoutInternalPadding, withTransition, }: DialogProps): React.ReactPortal | null;
|
|
23
24
|
export declare namespace Dialog {
|
|
24
25
|
var Title: ({ title, titleMeta, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp, helpButtonUrl, isBackDisabled, onBack, dydxHideBack, className, }: DialogTitleProps) => React.JSX.Element;
|
|
25
26
|
var Content: ({ children, fullHeight, paddingLeft, paddingBottom, paddingTop, className, withTopDivider, withBottomDivider, id, withoutInternalPadding, ...boxProps }: DialogContentProps) => React.JSX.Element;
|
|
@@ -6,9 +6,10 @@ interface FunCheckoutHistoryContentProps {
|
|
|
6
6
|
onHelp: () => void;
|
|
7
7
|
onBackFromHelpPage: () => void;
|
|
8
8
|
onClose: () => void;
|
|
9
|
+
onAnimationComplete?: (callback: () => void) => void;
|
|
9
10
|
/** Element ID to be used to mount the CTA action bar */
|
|
10
11
|
bottomBarId: string;
|
|
11
12
|
includeGenerateActionsParams?: boolean;
|
|
12
13
|
}
|
|
13
|
-
export declare function FunCheckoutHistoryContent({ depositAddress, currentPage, bottomBarId, onHelp, onBackFromHelpPage, onClose, includeGenerateActionsParams, }: FunCheckoutHistoryContentProps): React.JSX.Element;
|
|
14
|
+
export declare function FunCheckoutHistoryContent({ depositAddress, currentPage, bottomBarId, onHelp, onBackFromHelpPage, onClose, onAnimationComplete, includeGenerateActionsParams, }: FunCheckoutHistoryContentProps): React.JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -6,6 +6,7 @@ interface FunCheckoutHistoryDetailProps {
|
|
|
6
6
|
onClose: (options?: {
|
|
7
7
|
isNewDeposit?: boolean;
|
|
8
8
|
}) => void;
|
|
9
|
+
onAnimationComplete?: (callback: () => void) => void;
|
|
9
10
|
/** Element ID to be used to mount the CTA action bar */
|
|
10
11
|
bottomBarId: string;
|
|
11
12
|
includeGenerateActionsParams?: boolean;
|
|
@@ -13,5 +14,5 @@ interface FunCheckoutHistoryDetailProps {
|
|
|
13
14
|
/**
|
|
14
15
|
* Processing info about a checkout history item (already created in backend)
|
|
15
16
|
*/
|
|
16
|
-
export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo, onHelp, onClose, bottomBarId, includeGenerateActionsParams, }: FunCheckoutHistoryDetailProps): React.JSX.Element;
|
|
17
|
+
export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo, onHelp, onClose, onAnimationComplete, bottomBarId, includeGenerateActionsParams, }: FunCheckoutHistoryDetailProps): React.JSX.Element;
|
|
17
18
|
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DirectExecution } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare function FunDirectExecutionHistoryDetail({ bottomBarId, directExecution, includeGenerateActionsParams, onClose, }: {
|
|
3
|
+
export declare function FunDirectExecutionHistoryDetail({ bottomBarId, directExecution, includeGenerateActionsParams, onClose, onAnimationComplete, }: {
|
|
4
4
|
bottomBarId: string;
|
|
5
5
|
directExecution: DirectExecution;
|
|
6
6
|
includeGenerateActionsParams?: boolean;
|
|
7
7
|
onClose: (options?: {
|
|
8
8
|
isNewDeposit?: boolean;
|
|
9
9
|
}) => void;
|
|
10
|
+
onAnimationComplete?: (callback: () => void) => void;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
export declare function DirectExecutionOrderDetailSection({ directExecution, }: {
|
|
13
|
+
directExecution: DirectExecution;
|
|
10
14
|
}): React.JSX.Element;
|
|
@@ -10,11 +10,11 @@ export interface FunPaymentMethodItemProps {
|
|
|
10
10
|
keyText: string;
|
|
11
11
|
valueIcon?: ReactNode;
|
|
12
12
|
disclaimerText?: string;
|
|
13
|
-
|
|
13
|
+
badge?: ReactNode;
|
|
14
14
|
onClick?: () => void;
|
|
15
15
|
isError?: boolean;
|
|
16
16
|
isDisabled?: boolean;
|
|
17
17
|
isActive?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare const FunPaymentMethodItem: ({ keyIcon, keyText, valueIcon, disclaimerText,
|
|
19
|
+
export declare const FunPaymentMethodItem: ({ keyIcon, keyText, valueIcon, disclaimerText, badge, onClick, isError, isDisabled, isActive, }: FunPaymentMethodItemProps) => React.JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const providerLabelMap: Partial<Record<MeldServiceProvider, string>>;
|
|
4
|
+
export interface MeldQuoteItemProps {
|
|
5
|
+
badge?: string;
|
|
6
|
+
quote: MeldQuote | undefined;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
isError?: boolean;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const MeldQuoteItem: ({ quote, badge, onClick, isDisabled, isActive, }: MeldQuoteItemProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MeldQuote } from '@funkit/api-base';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface SourceMeldQuoteItemProps {
|
|
4
|
+
quote?: MeldQuote;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
isBestQuote?: boolean;
|
|
8
|
+
isPreselected?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const SourceMeldQuoteItem: ({ quote, onClick, isLoading, isBestQuote, isPreselected, disabled, }: SourceMeldQuoteItemProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
package/dist/domains/asset.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
|
3
3
|
import { LoginType } from '~/providers/GeneralWalletProvider';
|
|
4
4
|
import type { AssetHoldingsItem } from '~/utils/assets';
|
|
5
5
|
import { PaymentMethod } from '../domains/paymentMethods';
|
|
6
|
+
export declare const isStablecoin: (symbol: string) => boolean;
|
|
6
7
|
export declare function isNativeTokenAddress(address: Address): boolean;
|
|
7
8
|
export declare function isDefaultToken(asset: AssetHoldingsItem, checkoutConfig: FunkitCheckoutConfig): boolean;
|
|
8
9
|
export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean;
|
|
@@ -2,7 +2,7 @@ import type { BridgeCustomer, BridgeVirtualBankAccount, PreviewTransferResult }
|
|
|
2
2
|
import type { MeshConnectionInfo } from '~/providers/FunkitMeshProvider';
|
|
3
3
|
/** Supported payment methods in FunkitConnect. **/
|
|
4
4
|
export declare enum PaymentMethod {
|
|
5
|
-
/**
|
|
5
|
+
/** Meld - Credit / Debit Card **/
|
|
6
6
|
CARD = "card",
|
|
7
7
|
/** Account Balance **/
|
|
8
8
|
ACCOUNT_BALANCE = "balance",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useMeldCryptoCurrencyCode(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMeldCurrencies: () => import("@tanstack/react-query").UseQueryResult<import("@funkit/api-base").MeldFiatCurrency[], Error>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PaymentMethod } from '~/domains/paymentMethods';
|
|
2
|
+
/**
|
|
3
|
+
* @param paymentMethod - Only runs when PaymentMethod.CARD is provided
|
|
4
|
+
*/
|
|
5
|
+
export declare const useMeldDefaultCurrency: (paymentMethod: PaymentMethod) => import("@tanstack/react-query").UseQueryResult<string, Error>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param fiatCurrency - fiat currency code used just to enable/disable this hook
|
|
3
|
+
* @returns limits for all fiat currencies
|
|
4
|
+
*/
|
|
5
|
+
export declare const useMeldLimits: (fiatCurrency?: string) => import("@tanstack/react-query").UseQueryResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>;
|
|
6
|
+
export declare const useMeldLimitError: (amount: number, fiatCurrency?: string) => string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { CheckoutRefundState, CheckoutState, RelayExecutionStatus } from '@funkit/api-base';
|
|
2
|
-
import type { Hex } from 'viem';
|
|
1
|
+
import { CheckoutRefundState, CheckoutState, type DirectExecution, RelayExecutionStatus } from '@funkit/api-base';
|
|
3
2
|
export declare function mapRelayExecutionStatusToCheckoutState(status: RelayExecutionStatus): CheckoutState;
|
|
4
|
-
export declare function useCheckoutDirectExecutionHistory({
|
|
5
|
-
|
|
3
|
+
export declare function useCheckoutDirectExecutionHistory({ initDirectExecution, }: {
|
|
4
|
+
initDirectExecution?: DirectExecution;
|
|
6
5
|
}): {
|
|
7
6
|
state: CheckoutState;
|
|
8
7
|
refundState: CheckoutRefundState | undefined;
|
|
@@ -10,4 +9,5 @@ export declare function useCheckoutDirectExecutionHistory({ txHash, }: {
|
|
|
10
9
|
isCompleted: boolean;
|
|
11
10
|
isFailed: boolean;
|
|
12
11
|
isDelayed: boolean;
|
|
12
|
+
isProcessing: boolean;
|
|
13
13
|
};
|
|
@@ -5,4 +5,8 @@ export interface UseCountdownResult {
|
|
|
5
5
|
isLastSecond: boolean;
|
|
6
6
|
restartCountdown(): void;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface UseCountdownOptions extends Omit<FunCountdownProps, 'onCountdownLastSecond'> {
|
|
9
|
+
autoRestart?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function useCountdown({ onCountdownEnded, autoRestart, ...props }: UseCountdownOptions): UseCountdownResult;
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare function useDirectExecutionInfoPolling({
|
|
3
|
-
|
|
1
|
+
import { type DirectExecution } from '@funkit/api-base';
|
|
2
|
+
export declare function useDirectExecutionInfoPolling({ initDirectExecution, }: {
|
|
3
|
+
initDirectExecution: DirectExecution | undefined;
|
|
4
4
|
}): {
|
|
5
|
-
directExecution:
|
|
5
|
+
directExecution: DirectExecution | undefined;
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const useDynamicFont: (inputValue: string, max
|
|
1
|
+
export declare const useDynamicFont: (inputValue: string, max?: number, min?: number) => {
|
|
2
2
|
ref: import("react").RefObject<HTMLInputElement>;
|
|
3
3
|
fontSize: number;
|
|
4
4
|
resetText: () => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ConnectablePaymentMethodInfo, PaymentMethod } from '~/domains/paymentMethods';
|
|
2
|
-
|
|
2
|
+
import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
3
|
+
export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
|
|
4
|
+
promoted: PaymentMethod | undefined;
|
|
3
5
|
preferred: (import("~/domains/paymentMethods").PaymentMethodBrokerageInfo | import("~/domains/paymentMethods").PaymentMethodAccountInfo | import("~/domains/paymentMethods").PaymentMethodVirtualBankInfo)[] | PaymentMethod[];
|
|
4
6
|
moreSources: PaymentMethod[];
|
|
5
7
|
};
|
|
6
|
-
export declare const useRemainingPaymentSourcesCount: (targetChainId: string) => number;
|
package/dist/index.css
CHANGED
|
@@ -8363,40 +8363,8 @@
|
|
|
8363
8363
|
--_7rkubb1: 0.9;
|
|
8364
8364
|
}
|
|
8365
8365
|
|
|
8366
|
-
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source
|
|
8367
|
-
|
|
8368
|
-
0% {
|
|
8369
|
-
transform: scale(0.95);
|
|
8370
|
-
}
|
|
8371
|
-
100% {
|
|
8372
|
-
transform: scale(1);
|
|
8373
|
-
}
|
|
8374
|
-
}
|
|
8375
|
-
@keyframes _1r8f571 {
|
|
8376
|
-
0% {
|
|
8377
|
-
transform: scale(1);
|
|
8378
|
-
}
|
|
8379
|
-
100% {
|
|
8380
|
-
transform: scale(0.95);
|
|
8381
|
-
}
|
|
8382
|
-
}
|
|
8383
|
-
@keyframes _1r8f572 {
|
|
8384
|
-
0% {
|
|
8385
|
-
opacity: 0;
|
|
8386
|
-
}
|
|
8387
|
-
100% {
|
|
8388
|
-
opacity: 1;
|
|
8389
|
-
}
|
|
8390
|
-
}
|
|
8391
|
-
@keyframes _1r8f573 {
|
|
8392
|
-
0% {
|
|
8393
|
-
opacity: 1;
|
|
8394
|
-
}
|
|
8395
|
-
100% {
|
|
8396
|
-
opacity: 0;
|
|
8397
|
-
}
|
|
8398
|
-
}
|
|
8399
|
-
[data-rk] ._1r8f575 {
|
|
8366
|
+
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=Ll8xcjhmNTcxIHsKICBib3R0b206IC0yMDBweDsKICBsZWZ0OiAtMjAwcHg7CiAgcGFkZGluZzogMjAwcHg7CiAgcmlnaHQ6IC0yMDBweDsKICB0b3A6IC0yMDBweDsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgei1pbmRleDogMjE0NzQ4MzY0NjsKfQouXzFyOGY1NzMgewogIG1heC13aWR0aDogMTAwdnc7Cn0KLl8xcjhmNTc0IHsKICBmb250LXNpemU6IDIycHg7CiAgbGluZS1oZWlnaHQ6IDI5cHg7CiAgcGFkZGluZy1sZWZ0OiA2cHg7Cn0KLl8xcjhmNTc1IHsKICBkaXNwbGF5OiBmbGV4OwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogIHdpZHRoOiBmdWxsOwogIGZsZXgtc2hyaW5rOiAwOwogIG1pbi1oZWlnaHQ6IDU2cHg7Cn0KLl8xcjhmNTc3IHsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgbGVmdDogMDsKICByaWdodDogMDsKICB6LWluZGV4OiAxOwp9Ci5fMXI4ZjU3OCB7CiAgcG9zaXRpb246IHJlbGF0aXZlOwogIHotaW5kZXg6IDI7Cn0KLl8xcjhmNTdhIHsKICBib3R0b206IDA7CiAgbGVmdDogMDsKICByaWdodDogMDsKICB0b3A6IDA7CiAgei1pbmRleDogLTE7Cn0= */
|
|
8367
|
+
[data-rk] ._1r8f571 {
|
|
8400
8368
|
bottom: -200px;
|
|
8401
8369
|
left: -200px;
|
|
8402
8370
|
padding: 200px;
|
|
@@ -8405,27 +8373,15 @@
|
|
|
8405
8373
|
transform: translateZ(0);
|
|
8406
8374
|
z-index: 2147483646;
|
|
8407
8375
|
}
|
|
8408
|
-
[data-rk] .
|
|
8409
|
-
animation: _1r8f572 250ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
8410
|
-
}
|
|
8411
|
-
[data-rk] ._1r8f577 {
|
|
8412
|
-
animation: _1r8f573 120ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
8413
|
-
}
|
|
8414
|
-
[data-rk] ._1r8f579 {
|
|
8376
|
+
[data-rk] ._1r8f573 {
|
|
8415
8377
|
max-width: 100vw;
|
|
8416
8378
|
}
|
|
8417
|
-
[data-rk] .
|
|
8418
|
-
animation: _1r8f570 250ms cubic-bezier(0.3, 0, 0.06, 1), _1r8f572 250ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
8419
|
-
}
|
|
8420
|
-
[data-rk] ._1r8f57b {
|
|
8421
|
-
animation: _1r8f571 120ms cubic-bezier(0.3, 0, 0.06, 1), _1r8f573 120ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
8422
|
-
}
|
|
8423
|
-
[data-rk] ._1r8f57c {
|
|
8379
|
+
[data-rk] ._1r8f574 {
|
|
8424
8380
|
font-size: 22px;
|
|
8425
8381
|
line-height: 29px;
|
|
8426
8382
|
padding-left: 6px;
|
|
8427
8383
|
}
|
|
8428
|
-
[data-rk] .
|
|
8384
|
+
[data-rk] ._1r8f575 {
|
|
8429
8385
|
display: flex;
|
|
8430
8386
|
align-items: center;
|
|
8431
8387
|
justify-content: space-between;
|
|
@@ -8433,17 +8389,17 @@
|
|
|
8433
8389
|
flex-shrink: 0;
|
|
8434
8390
|
min-height: 56px;
|
|
8435
8391
|
}
|
|
8436
|
-
[data-rk] .
|
|
8392
|
+
[data-rk] ._1r8f577 {
|
|
8437
8393
|
position: absolute;
|
|
8438
8394
|
left: 0;
|
|
8439
8395
|
right: 0;
|
|
8440
8396
|
z-index: 1;
|
|
8441
8397
|
}
|
|
8442
|
-
[data-rk] .
|
|
8398
|
+
[data-rk] ._1r8f578 {
|
|
8443
8399
|
position: relative;
|
|
8444
8400
|
z-index: 2;
|
|
8445
8401
|
}
|
|
8446
|
-
[data-rk] .
|
|
8402
|
+
[data-rk] ._1r8f57a {
|
|
8447
8403
|
bottom: 0;
|
|
8448
8404
|
left: 0;
|
|
8449
8405
|
right: 0;
|
|
@@ -8822,6 +8778,41 @@
|
|
|
8822
8778
|
transform: rotate(-90deg);
|
|
8823
8779
|
}
|
|
8824
8780
|
|
|
8781
|
+
/* vanilla-extract-css-ns:src/components/SourcePaymentMethodItem/SourcePaymentMethodItem.css.ts.vanilla.css?source=Ll8xeW9mZWZsMCB7CiAgZGlzcGxheTogaW5saW5lLWZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKICBtaW4td2lkdGg6IDdweDsKfQouXzF5b2ZlZmwxIHsKICBwb3NpdGlvbjogcmVsYXRpdmU7Cn0KLl8xeW9mZWZsMSAuXzF5b2ZlZmwyIHsKICBiYWNrZ3JvdW5kOiBsaW5lYXItZ3JhZGllbnQoOTBkZWcsIHRyYW5zcGFyZW50IDYzLjE2JSwgdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCkgOTEuNDUlKTsKfQouXzF5b2ZlZmwxOmhvdmVyIC5fMXlvZmVmbDIgewogIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCg5MGRlZywgdHJhbnNwYXJlbnQgNjMuMTYlLCB2YXIoLS1yay1jb2xvcnMtb2ZmQmFja2dyb3VuZCkgOTEuNDUlKTsKfQ== */
|
|
8782
|
+
[data-rk] ._1yofefl0 {
|
|
8783
|
+
display: inline-flex;
|
|
8784
|
+
align-items: center;
|
|
8785
|
+
justify-content: center;
|
|
8786
|
+
min-width: 7px;
|
|
8787
|
+
}
|
|
8788
|
+
[data-rk] ._1yofefl1 {
|
|
8789
|
+
position: relative;
|
|
8790
|
+
}
|
|
8791
|
+
[data-rk] ._1yofefl1 ._1yofefl2 {
|
|
8792
|
+
background:
|
|
8793
|
+
linear-gradient(
|
|
8794
|
+
90deg,
|
|
8795
|
+
transparent 63.16%,
|
|
8796
|
+
var(--rk-colors-modalBackground) 91.45%);
|
|
8797
|
+
}
|
|
8798
|
+
[data-rk] ._1yofefl1:hover ._1yofefl2 {
|
|
8799
|
+
background:
|
|
8800
|
+
linear-gradient(
|
|
8801
|
+
90deg,
|
|
8802
|
+
transparent 63.16%,
|
|
8803
|
+
var(--rk-colors-offBackground) 91.45%);
|
|
8804
|
+
}
|
|
8805
|
+
|
|
8806
|
+
/* vanilla-extract-css-ns:src/css/scrollStyles.css.ts.vanilla.css?source=Ll8xNjNlaG1rMDo6LXdlYmtpdC1zY3JvbGxiYXIgewogIGRpc3BsYXk6IG5vbmU7Cn0KLl8xNjNlaG1rMSB7CiAgbWF4LWhlaWdodDogMzYwcHg7CiAgb3ZlcmZsb3cteTogYXV0bzsKICBvdmVyZmxvdy14OiBoaWRkZW47Cn0= */
|
|
8807
|
+
[data-rk] ._163ehmk0::-webkit-scrollbar {
|
|
8808
|
+
display: none;
|
|
8809
|
+
}
|
|
8810
|
+
[data-rk] ._163ehmk1 {
|
|
8811
|
+
max-height: 360px;
|
|
8812
|
+
overflow-y: auto;
|
|
8813
|
+
overflow-x: hidden;
|
|
8814
|
+
}
|
|
8815
|
+
|
|
8825
8816
|
/* vanilla-extract-css-ns:src/components/FunPayments/FunPaymentMoonpayType.css.ts.vanilla.css?source=Ll8xa21wZXlmMCB7CiAgaGVpZ2h0OiB1bnNldCAhaW1wb3J0YW50OwogIHdpZHRoOiB1bnNldCAhaW1wb3J0YW50OwogIGZsZXg6IDEgIWltcG9ydGFudDsKfQouXzFrbXBleWYwIGlmcmFtZSB7CiAgYm9yZGVyOiBub25lOwp9Ci5fMWttcGV5ZjEgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleDogMTsKfQ== */
|
|
8826
8817
|
[data-rk] ._1kmpeyf0 {
|
|
8827
8818
|
height: unset !important;
|
|
@@ -8883,43 +8874,6 @@
|
|
|
8883
8874
|
opacity: 0.5;
|
|
8884
8875
|
}
|
|
8885
8876
|
|
|
8886
|
-
/* vanilla-extract-css-ns:src/components/SourcePaymentMethodItem/SourcePaymentMethodItem.css.ts.vanilla.css?source=Ll8xeW9mZWZsMCB7CiAgZGlzcGxheTogaW5saW5lLWZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKICBtaW4td2lkdGg6IDdweDsKfQouXzF5b2ZlZmwxIHsKICBwb3NpdGlvbjogcmVsYXRpdmU7Cn0KLl8xeW9mZWZsMSAuXzF5b2ZlZmwyIHsKICBiYWNrZ3JvdW5kOiBsaW5lYXItZ3JhZGllbnQoOTBkZWcsIHRyYW5zcGFyZW50IDYzLjE2JSwgdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCkgOTEuNDUlKTsKfQouXzF5b2ZlZmwxOmhvdmVyIC5fMXlvZmVmbDIgewogIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCg5MGRlZywgdHJhbnNwYXJlbnQgNjMuMTYlLCB2YXIoLS1yay1jb2xvcnMtb2ZmQmFja2dyb3VuZCkgOTEuNDUlKTsKfQ== */
|
|
8887
|
-
[data-rk] ._1yofefl0 {
|
|
8888
|
-
display: inline-flex;
|
|
8889
|
-
align-items: center;
|
|
8890
|
-
justify-content: center;
|
|
8891
|
-
min-width: 7px;
|
|
8892
|
-
}
|
|
8893
|
-
[data-rk] ._1yofefl1 {
|
|
8894
|
-
position: relative;
|
|
8895
|
-
}
|
|
8896
|
-
[data-rk] ._1yofefl1 ._1yofefl2 {
|
|
8897
|
-
background:
|
|
8898
|
-
linear-gradient(
|
|
8899
|
-
90deg,
|
|
8900
|
-
transparent 63.16%,
|
|
8901
|
-
var(--rk-colors-modalBackground) 91.45%);
|
|
8902
|
-
}
|
|
8903
|
-
[data-rk] ._1yofefl1:hover ._1yofefl2 {
|
|
8904
|
-
background:
|
|
8905
|
-
linear-gradient(
|
|
8906
|
-
90deg,
|
|
8907
|
-
transparent 63.16%,
|
|
8908
|
-
var(--rk-colors-offBackground) 91.45%);
|
|
8909
|
-
}
|
|
8910
|
-
|
|
8911
|
-
/* vanilla-extract-css-ns:src/css/scrollStyles.css.ts.vanilla.css?source=Ll8xNjNlaG1rMDo6LXdlYmtpdC1zY3JvbGxiYXIgewogIGRpc3BsYXk6IG5vbmU7Cn0= */
|
|
8912
|
-
[data-rk] ._163ehmk0::-webkit-scrollbar {
|
|
8913
|
-
display: none;
|
|
8914
|
-
}
|
|
8915
|
-
|
|
8916
|
-
/* vanilla-extract-css-ns:src/components/FunSelectBrokerage/FunSelectBrokerage.css.ts.vanilla.css?source=Ll8xd2h1bGR2MCB7CiAgbWF4LWhlaWdodDogMjIwcHg7CiAgb3ZlcmZsb3cteTogYXV0bzsKICBvdmVyZmxvdy14OiBoaWRkZW47Cn0= */
|
|
8917
|
-
[data-rk] ._1whuldv0 {
|
|
8918
|
-
max-height: 220px;
|
|
8919
|
-
overflow-y: auto;
|
|
8920
|
-
overflow-x: hidden;
|
|
8921
|
-
}
|
|
8922
|
-
|
|
8923
8877
|
/* vanilla-extract-css-ns:src/components/CopyAddress/CopyInputDisplayedAddress.css.ts.vanilla.css?source=Ll8xa2J6ZWk5MyB7CiAgb3V0bGluZS1jb2xvcjogdmFyKC0tcmstY29sb3JzLWFjdGlvbkNvbG9yRGlzYWJsZWQpOwogIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IHZhcigtLXJrLXJhZGlpLWNvbm5lY3RCdXR0b24pOwogIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiB2YXIoLS1yay1yYWRpaS1jb25uZWN0QnV0dG9uKTsKICB0cmFuc2l0aW9uOiBhbGwgMTUwbXMgY3ViaWMtYmV6aWVyKDAuMywgMCwgMC4wNiwgMSk7Cn0= */
|
|
8924
8878
|
[data-rk] ._1kbzei93 {
|
|
8925
8879
|
outline-color: var(--rk-colors-actionColorDisabled);
|