@funkit/connect 12.20.0 → 12.22.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 +105 -0
- package/dist/clients/{chunk-N46CL4ZT.js → chunk-4NWQR25X.js} +1 -1
- package/dist/clients/{chunk-2BBOZQLZ.js → chunk-5JVG4MS2.js} +1 -1
- package/dist/clients/chunk-B67ESBGC.js +108 -0
- package/dist/clients/{chunk-R5VAX6YA.js → chunk-HGLDKRSQ.js} +81 -33
- package/dist/clients/{chunk-VFKEUHZT.js → chunk-R7I5OO6C.js} +1 -1
- package/dist/clients/{chunk-5NYKSTGH.js → chunk-S4SMCBQ4.js} +1 -1
- package/dist/clients/{chunk-Y7ONHWCW.js → chunk-T4Q43DNC.js} +2 -2
- package/dist/clients/{chunk-TLFE74BL.js → chunk-UBZOARBX.js} +3 -3
- package/dist/clients/{chunk-TFIJZTGQ.js → chunk-Y2O77SJO.js} +1 -1
- package/dist/clients/fanatics.d.ts +5 -7
- package/dist/clients/fanatics.js +4 -4
- package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +4 -4
- package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
- package/dist/clients/lighter.css +32 -11
- package/dist/clients/lighter.js +5 -5
- package/dist/clients/lighterRh.js +1 -1
- package/dist/clients/mallard.d.ts +34 -1
- package/dist/clients/mallard.js +148 -3
- package/dist/clients/nado.js +4 -4
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
- package/dist/clients/polymarket/index.js +3 -3
- package/dist/clients/polymarket/polymarket.d.ts +22 -22
- package/dist/clients/polymarket/polymarket.js +2 -2
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +35 -35
- package/dist/components/Box/Box.d.ts +63 -63
- package/dist/components/ConnectButton/ConnectButton.d.ts +16 -15
- package/dist/components/CustomSlot/CustomSlot.d.ts +8 -0
- package/dist/components/CustomSlot/CustomSlotBoundary.d.ts +12 -0
- package/dist/components/DestinationSelector/DestinationAssetBalanceLabel.d.ts +6 -0
- package/dist/components/DestinationSelector/DestinationSelector.css.d.ts +3 -0
- package/dist/components/DestinationSelector/DestinationSelector.d.ts +17 -0
- package/dist/components/DestinationSelector/DestinationSelectorSkeleton.d.ts +2 -0
- package/dist/components/Dialog/Dialog.d.ts +12 -4
- package/dist/components/Dialog/hooks.d.ts +3 -3
- package/dist/components/Dropdown/AccountSelectDropdown.d.ts +8 -1
- package/dist/components/Dropdown/BaseDropdown.d.ts +3 -1
- package/dist/components/Dropdown/BaseDropdownItem.d.ts +3 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -0
- package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +2 -2
- package/dist/components/FunBottomBar/FunBottomBar.d.ts +3 -1
- package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
- package/dist/components/FunInput/FunInput.d.ts +1 -1
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
- package/dist/components/FunTransactionSummary/DestinationLineItems.d.ts +1 -1
- package/dist/components/HighPriceImpactAlert/HighPriceImpactAlert.d.ts +7 -0
- package/dist/components/Icons/GreenRoundCheckmark.d.ts +2 -1
- package/dist/components/Icons/StatusIcons.css.d.ts +2 -2
- package/dist/components/Icons/StatusIcons.d.ts +2 -2
- package/dist/components/LargeAmountInput/LargeAmountInput.d.ts +3 -1
- package/dist/components/ModalSelection/ModalSelection.d.ts +4 -4
- package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +5 -2
- package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +2 -0
- package/dist/consts/checkout.d.ts +8 -8
- package/dist/consts/polymarket.d.ts +2 -2
- package/dist/consts/quote.d.ts +25 -15
- package/dist/css/cssObjectFromTheme.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +78 -78
- package/dist/domains/asset.d.ts +6 -0
- package/dist/domains/bridge.d.ts +1 -1
- package/dist/domains/clientMetadata.d.ts +5 -6
- package/dist/domains/convert/assets.d.ts +6 -0
- package/dist/domains/convert/balances.d.ts +4 -2
- package/dist/domains/convert/screen.d.ts +4 -0
- package/dist/domains/destinationAccount.d.ts +14 -0
- package/dist/domains/destinationAssetBalance.d.ts +39 -0
- package/dist/domains/fees.d.ts +13 -0
- package/dist/domains/inputAmountComponentContext.d.ts +11 -0
- package/dist/hooks/queries/useMeldLimits.d.ts +45 -45
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +62 -62
- package/dist/hooks/track/useTrack.d.ts +1 -1
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +3 -3
- package/dist/hooks/useConvertBalances.d.ts +4 -2
- package/dist/hooks/useConvertQuote.d.ts +1 -1
- package/dist/hooks/useDestinationAccountSelector.d.ts +18 -0
- package/dist/hooks/useDestinationAssetBalances.d.ts +5 -0
- package/dist/hooks/useDynamicRoutes.d.ts +1 -1
- package/dist/hooks/useFrogAccount.d.ts +77 -77
- package/dist/hooks/useHighPriceImpactPercent.d.ts +11 -0
- package/dist/hooks/useIsomorphicEffect.d.ts +2 -2
- package/dist/hooks/usePaymentMethodIcon.d.ts +1 -1
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/hooks/usePolymarketAccountBalances.d.ts +1 -1
- package/dist/index.css +32 -11
- package/dist/index.d.ts +4 -1
- package/dist/index.js +3652 -2674
- package/dist/modals/CheckoutModal/Convert/ConvertChainRail.d.ts +13 -0
- package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +6 -4
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +2 -1
- package/dist/modals/CheckoutModal/SourceChange/FlatList.d.ts +2 -8
- package/dist/modals/CheckoutModal/SourceChange/SourceList.d.ts +1 -2
- package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +5 -1
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +13 -2
- package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +6 -1
- package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +6 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -1
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +1 -1
- package/dist/modals/WithdrawalModal/useMultiSourceWithdrawal.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +55 -11
- package/dist/providers/FunkitConfigContext.d.ts +24 -1
- package/dist/providers/FunkitStatsigProvider.d.ts +1 -1
- package/dist/providers/GeneralWalletProvider.d.ts +21 -21
- package/dist/providers/ModalSizeContext.d.ts +4 -4
- package/dist/shadow-css.js +1 -1
- package/dist/themes/baseTheme.d.ts +1 -1
- package/dist/themes/darkTheme.d.ts +6 -4
- package/dist/themes/lightTheme.d.ts +6 -4
- package/dist/utils/checkout.d.ts +2 -1
- package/dist/utils/consts.d.ts +1 -0
- package/dist/utils/customer.d.ts +96 -96
- package/dist/utils/datadogBrowserLogsTransport.d.ts +11 -5
- package/dist/utils/datadogPageExit.d.ts +5 -0
- package/dist/utils/funError.d.ts +26 -0
- package/dist/utils/funLogger.d.ts +2 -1
- package/dist/utils/shakeElement.d.ts +7 -0
- package/dist/wallets/computeWalletConnectMetaData.d.ts +1 -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/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 +57 -57
- 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 +10 -10
- package/dist/clients/chunk-GTPMJGCF.js +0 -52
- package/dist/modals/CheckoutModal/Convert/ConvertChainPills.d.ts +0 -14
- package/dist/modals/CheckoutModal/SourceChange/PayPal.d.ts +0 -2
- package/dist/wallets/walletConnectors/{chunk-CU5J53XR.js → chunk-53MYTA42.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZSSSLFQF.js → chunk-65ULY6OC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XODA5ESL.js → chunk-A5POD5SV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RXRYHMRI.js → chunk-ANODOMIN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IWOMSW64.js → chunk-ASTCNVJC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-U52QO5HF.js → chunk-F45CUFRR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YRMBR6NA.js → chunk-FYPQ3HP4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-BBDNB5TQ.js → chunk-IWPW26AL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4FHNLTR3.js → chunk-JJBLW4IU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-NXWG6FG2.js → chunk-KE4CWI3A.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-BBB2J3US.js → chunk-MWB6LFSG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-34B7OJNT.js → chunk-OVDCDVFX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SR5CZR3L.js → chunk-PPQ6L4K2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IA5432IR.js → chunk-RJF2YEZ5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RFCZYLNR.js → chunk-RQYEGJKL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TRZDAXCQ.js → chunk-TIHTQ3OB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ALGPGI6V.js → chunk-TM7UBV3Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HOCKAU5H.js → chunk-USLZMUJ3.js} +3 -3
|
@@ -11,22 +11,23 @@ export interface ConnectButtonProps {
|
|
|
11
11
|
showChainSelector?: boolean;
|
|
12
12
|
suffixIcon?: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
+
declare const defaultProps: {
|
|
15
|
+
readonly accountStatus: 'full';
|
|
16
|
+
readonly chainStatus: {
|
|
17
|
+
readonly largeScreen: 'full';
|
|
18
|
+
readonly smallScreen: 'icon';
|
|
19
|
+
};
|
|
20
|
+
readonly label: 'Sign In';
|
|
21
|
+
readonly showBalance: {
|
|
22
|
+
readonly largeScreen: true;
|
|
23
|
+
readonly smallScreen: false;
|
|
24
|
+
};
|
|
25
|
+
readonly showChainSelector: true;
|
|
26
|
+
readonly suffixIcon: null;
|
|
27
|
+
};
|
|
14
28
|
export declare function ConnectButton({ accountStatus, chainStatus, label, showBalance, showChainSelector, suffixIcon, }: ConnectButtonProps): React.JSX.Element;
|
|
15
29
|
export declare namespace ConnectButton {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readonly chainStatus: {
|
|
19
|
-
readonly largeScreen: "full";
|
|
20
|
-
readonly smallScreen: "icon";
|
|
21
|
-
};
|
|
22
|
-
readonly label: "Sign In";
|
|
23
|
-
readonly showBalance: {
|
|
24
|
-
readonly largeScreen: true;
|
|
25
|
-
readonly smallScreen: false;
|
|
26
|
-
};
|
|
27
|
-
readonly showChainSelector: true;
|
|
28
|
-
readonly suffixIcon: null;
|
|
29
|
-
};
|
|
30
|
-
var Custom: typeof ConnectButtonRenderer;
|
|
30
|
+
export { defaultProps as __defaultProps };
|
|
31
|
+
export { ConnectButtonRenderer as Custom };
|
|
31
32
|
}
|
|
32
33
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type CustomSlotBoundaryProps } from './CustomSlotBoundary';
|
|
3
|
+
interface CustomSlotProps<TContext> extends Omit<CustomSlotBoundaryProps, 'children'> {
|
|
4
|
+
render: ((ctx: TContext) => ReactNode) | undefined;
|
|
5
|
+
context: TContext;
|
|
6
|
+
}
|
|
7
|
+
export declare function CustomSlot<TContext>({ name, render, context, fallback, resetKey, }: CustomSlotProps<TContext>): React.JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
export interface CustomSlotBoundaryProps {
|
|
3
|
+
/** Used in the failure log, e.g. 'inputAmountScreen.customComponent'. */
|
|
4
|
+
name: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Shown in place of the slot after a failure. Defaults to nothing. */
|
|
7
|
+
fallback?: (error: Error) => ReactNode;
|
|
8
|
+
/** Retry after a failure when this changes. */
|
|
9
|
+
resetKey?: unknown;
|
|
10
|
+
}
|
|
11
|
+
/** Contains integrator-rendered content so a failure hides only that content and logs at WARN. */
|
|
12
|
+
export declare function CustomSlotBoundary({ name, children, fallback, resetKey, }: CustomSlotBoundaryProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DestinationAssetBalanceState } from '../../domains/destinationAssetBalance';
|
|
3
|
+
export declare function DestinationAssetBalanceLabel({ balance, symbol, }: {
|
|
4
|
+
balance: DestinationAssetBalanceState | undefined;
|
|
5
|
+
symbol: string;
|
|
6
|
+
}): React.JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DestinationAssetGroup } from '../../domains/destinationAccount';
|
|
3
|
+
import type { DestinationAssetBalanceStates } from '../../domains/destinationAssetBalance';
|
|
4
|
+
import type { DestinationAccount, DynamicTargetAssetCandidate } from '../../providers/FunkitCheckoutContext/types';
|
|
5
|
+
interface DestinationSelectorProps {
|
|
6
|
+
accounts: readonly DestinationAccount[];
|
|
7
|
+
selectedAccountId?: string;
|
|
8
|
+
assetGroups: readonly DestinationAssetGroup[];
|
|
9
|
+
selectedRoutingId?: string;
|
|
10
|
+
assetBalances?: DestinationAssetBalanceStates;
|
|
11
|
+
onAssetMenuOpenChange?: (open: boolean) => void;
|
|
12
|
+
onAccountSelect: (account: DestinationAccount) => void;
|
|
13
|
+
onAssetSelect: (candidate: DynamicTargetAssetCandidate) => void;
|
|
14
|
+
}
|
|
15
|
+
/** Presentation only: the caller supplies eligible groups and owns account-switch policy. */
|
|
16
|
+
export declare function DestinationSelector({ accounts, selectedAccountId, assetGroups, selectedRoutingId, assetBalances, onAssetMenuOpenChange, onAccountSelect, onAssetSelect, }: DestinationSelectorProps): React.JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
|
+
import { FunBottomBar } from '../FunBottomBar/FunBottomBar';
|
|
3
4
|
export { CHECKOUT_MODAL_TITLE_COUNTDOWN_ID, MODAL_BOTTOM_BAR_IDS, type ModalBottomBarIdType, useBottomSectionRef, useTitleCountdownRef, } from './hooks';
|
|
4
5
|
interface DialogProps {
|
|
5
6
|
open: boolean;
|
|
@@ -37,10 +38,10 @@ interface DialogProps {
|
|
|
37
38
|
*/
|
|
38
39
|
export declare function Dialog({ children, onClose, onAnimationComplete, open, titleId, isHidden, isSmartCloseable, withoutSidePadding, withTransition, testId, isFanaticsBottomSheet, backgroundOverlay, withoutBorder, }: DialogProps): React.ReactPortal | null;
|
|
39
40
|
export declare namespace Dialog {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
export { DialogTitle as Title };
|
|
42
|
+
export { DialogContent as Content };
|
|
43
|
+
export { DialogBottom as BottomSection };
|
|
44
|
+
export { FunBottomBar as BottomBar };
|
|
44
45
|
}
|
|
45
46
|
interface DialogContentProps extends Omit<BoxProps, 'padding' | 'paddingX' | 'paddingY' | 'paddingLeft' | 'paddingRight' | 'paddingBottom'> {
|
|
46
47
|
children: ReactNode;
|
|
@@ -62,6 +63,12 @@ interface DialogContentProps extends Omit<BoxProps, 'padding' | 'paddingX' | 'pa
|
|
|
62
63
|
*/
|
|
63
64
|
withChildScrollArea?: boolean;
|
|
64
65
|
}
|
|
66
|
+
declare const DialogContent: ({ children, fullHeight, className, id, paddingTop, withTopDivider, withBottomDivider, withoutBottomPadding, withoutSidePadding, extraContentTopPadding, withChildScrollArea, ...boxProps }: DialogContentProps) => React.JSX.Element;
|
|
67
|
+
/**
|
|
68
|
+
* Only use this component if modal has deeply nested components with complicated logic
|
|
69
|
+
* @returns a placeholder wrapper that should be used as an element into which the bottom bar is rendered (with a portal)
|
|
70
|
+
*/
|
|
71
|
+
declare const DialogBottom: ({ paddingX, children, ...boxProps }: BoxProps) => React.JSX.Element;
|
|
65
72
|
export interface DialogTitleProps {
|
|
66
73
|
title?: string;
|
|
67
74
|
titleMeta?: string;
|
|
@@ -81,3 +88,4 @@ export interface DialogTitleProps {
|
|
|
81
88
|
onBack?: () => void;
|
|
82
89
|
className?: string;
|
|
83
90
|
}
|
|
91
|
+
declare const DialogTitle: ({ title, titleMeta, customContent, background, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp, isBackDisabled, onBack, className, }: DialogTitleProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const MODAL_BOTTOM_BAR_WRAPPER_ID = "fun-modal-bottom-bar-wrapper";
|
|
2
2
|
export declare const MODAL_BOTTOM_BAR_IDS: {
|
|
3
|
-
readonly checkout:
|
|
4
|
-
readonly withdrawal:
|
|
5
|
-
readonly connectwallet:
|
|
3
|
+
readonly checkout: 'checkout-modal-bottom-bar';
|
|
4
|
+
readonly withdrawal: 'withdrawal-modal-bottom-bar';
|
|
5
|
+
readonly connectwallet: 'connect-wallet-modal-bottom-bar';
|
|
6
6
|
};
|
|
7
7
|
export type ModalBottomBarIdType = keyof typeof MODAL_BOTTOM_BAR_IDS;
|
|
8
8
|
export declare function useBottomSectionRef(modalBottomBarIdType?: ModalBottomBarIdType): HTMLElement | null;
|
|
@@ -4,6 +4,7 @@ export interface AccountSelectOption {
|
|
|
4
4
|
/** Stable identifier, also the dropdown's selected value. */
|
|
5
5
|
value: string;
|
|
6
6
|
label: string;
|
|
7
|
+
icon?: React.ReactNode;
|
|
7
8
|
/** Secondary line under the label, e.g. a formatted balance. */
|
|
8
9
|
description?: React.ReactNode;
|
|
9
10
|
}
|
|
@@ -16,6 +17,12 @@ export interface AccountSelectAction {
|
|
|
16
17
|
}
|
|
17
18
|
export interface AccountSelectDropdownProps {
|
|
18
19
|
accounts: AccountSelectOption[];
|
|
20
|
+
triggerClassName?: string;
|
|
21
|
+
/** Defaults to true; disable when the trigger alone identifies the selection. */
|
|
22
|
+
isCheckmarkVisible?: boolean;
|
|
23
|
+
horizontalIconGap?: BaseActiveDropdownItemProps['horizontalIconGap'];
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
maxDropdownHeight?: number;
|
|
19
26
|
selectedValue: string;
|
|
20
27
|
onSelect: (value: string) => void;
|
|
21
28
|
/**
|
|
@@ -42,4 +49,4 @@ export interface AccountSelectDropdownProps {
|
|
|
42
49
|
* divider. Built on {@link BaseDropdown}; selection routes through each
|
|
43
50
|
* {@link BaseDropdownItem} so Radix closes the menu on choose.
|
|
44
51
|
*/
|
|
45
|
-
export declare function AccountSelectDropdown({ accounts, selectedValue, onSelect, action, prefixLabel, label, size, dropdownWidth, testId, }: AccountSelectDropdownProps): React.JSX.Element;
|
|
52
|
+
export declare function AccountSelectDropdown({ accounts, triggerClassName, isCheckmarkVisible, horizontalIconGap, placeholder, maxDropdownHeight, selectedValue, onSelect, action, prefixLabel, label, size, dropdownWidth, testId, }: AccountSelectDropdownProps): React.JSX.Element;
|
|
@@ -10,6 +10,7 @@ export declare const HORIZONTAL_ICON_GAP = "4";
|
|
|
10
10
|
export declare const HORIZONTAL_OUTER_PADDING_X = "12";
|
|
11
11
|
export interface BaseDropdownProps<T = string, G extends string = never> {
|
|
12
12
|
value: string;
|
|
13
|
+
triggerClassName?: string;
|
|
13
14
|
activeItemProps?: Partial<Pick<BaseActiveDropdownItemProps, 'iconComponent' | 'label' | 'color' | 'alwaysVisibleLabel' | 'tagComponent' | 'tagPosition' | 'background' | 'labelStyle' | 'compactIcon'>>;
|
|
14
15
|
/**
|
|
15
16
|
* List of groups to show and the corresponding labels, in the expected order.
|
|
@@ -43,6 +44,7 @@ export interface BaseDropdownProps<T = string, G extends string = never> {
|
|
|
43
44
|
unselectLabel?: string;
|
|
44
45
|
options: BaseDropdownOption<T>[];
|
|
45
46
|
onOpen?: () => void;
|
|
47
|
+
onOpenChange?: (open: boolean) => void;
|
|
46
48
|
onOptionSelected?: (item: BaseDropdownOption<T>) => void;
|
|
47
49
|
renderDropdownOption: (item: BaseDropdownOption<T>, isSelected: boolean) => React.ReactNode;
|
|
48
50
|
searchableOptions?: boolean;
|
|
@@ -68,5 +70,5 @@ export interface BaseDropdownProps<T = string, G extends string = never> {
|
|
|
68
70
|
dropdownAlign?: 'start' | 'center' | 'end';
|
|
69
71
|
testId?: string;
|
|
70
72
|
}
|
|
71
|
-
declare function BaseDropdown<T extends string = string, G extends string = never>({ activeItemProps, value, options, groups, additionalGroup, additionalGroupLabel, allowUnselect, unselectLabel, onOptionSelected, onOpen, renderDropdownOption, searchableOptions, searchPlaceholder, placeholder, resetSearchOnClose, openToTopOnMobile, alwaysOpenToTop, openDropdownFullWidth, isLoading, preloadIconUrls, horizontalIconGap, openDropdownBackgroundColor, size, label, maxDropdownHeight, dropdownWidth, dropdownAlign, testId, }: BaseDropdownProps<T, G>): React.JSX.Element;
|
|
73
|
+
declare function BaseDropdown<T extends string = string, G extends string = never>({ activeItemProps, value, triggerClassName, options, groups, additionalGroup, additionalGroupLabel, allowUnselect, unselectLabel, onOptionSelected, onOpen, onOpenChange, renderDropdownOption, searchableOptions, searchPlaceholder, placeholder, resetSearchOnClose, openToTopOnMobile, alwaysOpenToTop, openDropdownFullWidth, isLoading, preloadIconUrls, horizontalIconGap, openDropdownBackgroundColor, size, label, maxDropdownHeight, dropdownWidth, dropdownAlign, testId, }: BaseDropdownProps<T, G>): React.JSX.Element;
|
|
72
74
|
export default BaseDropdown;
|
|
@@ -8,6 +8,8 @@ interface BaseDropdownItemProps {
|
|
|
8
8
|
id: string;
|
|
9
9
|
onClick?: (id: string) => void;
|
|
10
10
|
isSelected?: boolean;
|
|
11
|
+
/** Hide the checkmark and its reserved space when selection is shown elsewhere. */
|
|
12
|
+
isCheckmarkVisible?: boolean;
|
|
11
13
|
isDisabled?: boolean;
|
|
12
14
|
horizontalIconGap?: BoxProps['gap'];
|
|
13
15
|
tagComponent?: React.ReactNode;
|
|
@@ -18,5 +20,5 @@ interface BaseDropdownItemProps {
|
|
|
18
20
|
/**
|
|
19
21
|
* Represents a single option in a dropdown.
|
|
20
22
|
*/
|
|
21
|
-
declare function BaseDropdownItem({ iconComponent, label, description, id, onClick, isSelected, isDisabled, borderRadius, horizontalIconGap, tagComponent, horizontalPadding, verticalPadding, }: BaseDropdownItemProps): React.JSX.Element;
|
|
23
|
+
declare function BaseDropdownItem({ iconComponent, label, description, id, onClick, isSelected, isCheckmarkVisible, isDisabled, borderRadius, horizontalIconGap, tagComponent, horizontalPadding, verticalPadding, }: BaseDropdownItemProps): React.JSX.Element;
|
|
22
24
|
export default BaseDropdownItem;
|
|
@@ -4,6 +4,8 @@ interface ErrorBoundaryProps {
|
|
|
4
4
|
renderFallback: (error: Error) => ReactNode;
|
|
5
5
|
/** Clears a caught error when it changes, e.g. when a soft-hidden modal reopens */
|
|
6
6
|
resetKey?: unknown;
|
|
7
|
+
/** Optional handler for a boundary that recovers locally from the failure. */
|
|
8
|
+
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
7
9
|
}
|
|
8
10
|
interface ErrorBoundaryState {
|
|
9
11
|
error: Error | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
|
-
export declare const FreeUsdcBanner: ({ marginBottom, type, }: Pick<BoxProps,
|
|
4
|
-
type:
|
|
3
|
+
export declare const FreeUsdcBanner: ({ marginBottom, type, }: Pick<BoxProps, 'marginBottom'> & {
|
|
4
|
+
type: 'deposit' | 'withdrawal';
|
|
5
5
|
}) => React.JSX.Element | null;
|
|
@@ -3,8 +3,10 @@ import { type FunButtonProps } from '../FunButton/FunButton';
|
|
|
3
3
|
export interface FunBottomBarProps {
|
|
4
4
|
topSection?: React.ReactNode;
|
|
5
5
|
topSectionVisible?: boolean;
|
|
6
|
+
/** Allows for smooth height transition when toggling visibility of top section */
|
|
7
|
+
isTopSectionAnimated?: boolean;
|
|
6
8
|
actionButtonProps?: FunButtonProps;
|
|
7
9
|
onClose?: () => void;
|
|
8
10
|
onCloseLabel?: string;
|
|
9
11
|
}
|
|
10
|
-
export declare const FunBottomBar: ({ topSection, topSectionVisible, actionButtonProps, onClose, onCloseLabel, }: FunBottomBarProps) => React.JSX.Element | null;
|
|
12
|
+
export declare const FunBottomBar: ({ topSection, topSectionVisible, isTopSectionAnimated, actionButtonProps, onClose, onCloseLabel, }: FunBottomBarProps) => React.JSX.Element | null;
|
|
@@ -5,4 +5,4 @@ export type InfoBannerProps = {
|
|
|
5
5
|
type: 'warning' | 'alert' | 'announcement';
|
|
6
6
|
expireAtMs?: number;
|
|
7
7
|
};
|
|
8
|
-
export declare const InfoBanner: ({ message, type, }: Omit<InfoBannerProps,
|
|
8
|
+
export declare const InfoBanner: ({ message, type, }: Omit<InfoBannerProps, 'expireAtMs'>) => React.JSX.Element;
|
|
@@ -42,4 +42,4 @@ export interface FunInputProps<T = HTMLInputElement | HTMLTextAreaElement> {
|
|
|
42
42
|
testId?: string;
|
|
43
43
|
}
|
|
44
44
|
export type FunInputChangeEvent = ChangeEvent<HTMLInputElement | HTMLTextAreaElement>;
|
|
45
|
-
export declare const FunInput: React.ForwardRefExoticComponent<FunInputProps<
|
|
45
|
+
export declare const FunInput: React.ForwardRefExoticComponent<FunInputProps<HTMLInputElement | HTMLTextAreaElement> & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const funOptionBoxStyle: Record<"
|
|
1
|
+
export declare const funOptionBoxStyle: Record<"activeBackground" | "activeBorder" | "baseStyle" | "borderedBackground" | "compactListStyle" | "defaultBackground" | "defaultBorder" | "defaultModeNotActiveBorder" | "disabledOptionBorder" | "uninteractiveBackground", string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode, type RefObject } from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
3
|
export interface FunTooltipProps {
|
|
4
4
|
content: ReactNode;
|
|
@@ -34,5 +34,5 @@ export interface FunTooltipProps {
|
|
|
34
34
|
startDelay?: number;
|
|
35
35
|
width?: BoxProps['width'];
|
|
36
36
|
}
|
|
37
|
-
export declare const TooltipAnchorRefContext: React.Context<
|
|
37
|
+
export declare const TooltipAnchorRefContext: React.Context<RefObject<HTMLElement | null> | null>;
|
|
38
38
|
export declare const FunTooltip: ({ content, children, tooltipPosition, side, sideOffset, maxWidth, startDelay, width, }: FunTooltipProps) => React.JSX.Element;
|
|
@@ -6,7 +6,7 @@ export declare const TX_SUMMARY_VALUE_COLORS: {
|
|
|
6
6
|
caution: string;
|
|
7
7
|
danger: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const MAX_DESTINATION_LINE_ITEMS =
|
|
9
|
+
export declare const MAX_DESTINATION_LINE_ITEMS = 4;
|
|
10
10
|
/** Additional line items provided through `resolveDestinationLineItems`, rendered last in the summary box. */
|
|
11
11
|
export declare function DestinationLineItems({ items, isLoading, }: {
|
|
12
12
|
items: DestinationLineItem[] | null | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface HighPriceImpactAlertProps {
|
|
3
|
+
/** Expected loss on the quote, in percent. */
|
|
4
|
+
impactPercent: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function HighPriceImpactAlert({ impactPercent, }: HighPriceImpactAlertProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -9,8 +9,8 @@ declare const variants: {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const slots: {
|
|
11
11
|
container: string;
|
|
12
|
-
icon: Record<"
|
|
13
|
-
background: Record<"
|
|
12
|
+
icon: Record<"secondary" | "success", string>;
|
|
13
|
+
background: Record<"secondary" | "success", string>;
|
|
14
14
|
innerShadow: string;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -7,9 +7,9 @@ export type TransactionIconProps = {
|
|
|
7
7
|
pathRef: RefObject<SVGPathElement>;
|
|
8
8
|
} & SVGAttributes<SVGSVGElement>;
|
|
9
9
|
export declare const TransactionIcon: React.ForwardRefExoticComponent<{
|
|
10
|
-
type:
|
|
10
|
+
type: 'loading' | 'success' | 'merge';
|
|
11
11
|
pathRef: RefObject<SVGPathElement>;
|
|
12
|
-
} &
|
|
12
|
+
} & SVGAttributes<SVGSVGElement> & React.RefAttributes<unknown>>;
|
|
13
13
|
export type StatusIconProps = {
|
|
14
14
|
animateEntrance?: boolean;
|
|
15
15
|
backgroundSize?: number;
|
|
@@ -13,6 +13,8 @@ export interface LargeAmountInputProps {
|
|
|
13
13
|
suffix?: string;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
readOnly?: boolean;
|
|
16
|
+
/** A press anywhere on the amount, affixes included; fires on read-only fields too. */
|
|
17
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
16
18
|
autoFocus?: boolean;
|
|
17
19
|
/** Defaults to the theme `inputAmount` size. */
|
|
18
20
|
maxFontSize?: number;
|
|
@@ -25,4 +27,4 @@ export interface LargeAmountInputProps {
|
|
|
25
27
|
/**
|
|
26
28
|
* Big "$<amount>" field that shrinks its font to fit the available width.
|
|
27
29
|
*/
|
|
28
|
-
export declare function LargeAmountInput({ amount, onAmountChange, ariaLabel, align, prefix, suffix, placeholder, readOnly, autoFocus, maxFontSize: maxFontSizeProp, maxAvailableWidth, width, testId, }: LargeAmountInputProps): React.JSX.Element;
|
|
30
|
+
export declare function LargeAmountInput({ amount, onAmountChange, ariaLabel, align, prefix, suffix, placeholder, readOnly, onClick, autoFocus, maxFontSize: maxFontSizeProp, maxAvailableWidth, width, testId, }: LargeAmountInputProps): React.JSX.Element;
|
|
@@ -12,8 +12,8 @@ type Props = {
|
|
|
12
12
|
testId?: string;
|
|
13
13
|
isFunkitSdkConnector?: boolean;
|
|
14
14
|
};
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
displayName: string;
|
|
18
|
-
}
|
|
15
|
+
export declare function ModalSelection({ as, currentlySelected, iconBackground, iconUrl, icon, name, onClick, ready, recent, testId, isFunkitSdkConnector, ...urlProps }: Props): React.JSX.Element;
|
|
16
|
+
export declare namespace ModalSelection {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
19
|
export {};
|
|
@@ -18,6 +18,8 @@ interface TokenSwapCardContentProps {
|
|
|
18
18
|
amountPrefix?: string;
|
|
19
19
|
/** Present only on the editable (source) card. */
|
|
20
20
|
onAmountChange?: (next: string) => void;
|
|
21
|
+
/** To card only: a press on the read-only amount shakes its row and calls this; omit to leave it inert. */
|
|
22
|
+
onAmountClick?: () => void;
|
|
21
23
|
/** The amount in the other unit, already formatted. */
|
|
22
24
|
convertedAmount: string;
|
|
23
25
|
onToggleUnit?: () => void;
|
|
@@ -37,13 +39,14 @@ export declare function TokenSwapCardFrame({ variant, testId, children, }: {
|
|
|
37
39
|
children: React.ReactNode;
|
|
38
40
|
}): React.JSX.Element;
|
|
39
41
|
/** One row of a swap card: content at the start, content at the end. */
|
|
40
|
-
export declare function TokenSwapCardRow({ children }: {
|
|
42
|
+
export declare function TokenSwapCardRow({ children, ref, }: {
|
|
41
43
|
children: React.ReactNode;
|
|
44
|
+
ref?: React.Ref<HTMLElement>;
|
|
42
45
|
}): React.JSX.Element;
|
|
43
46
|
/**
|
|
44
47
|
* One card of the swap widget.
|
|
45
48
|
* - `from`: outlined, unit toggle, percentage presets; editable unless a deposit is required.
|
|
46
49
|
* - `to`: filled background, read-only, amount comes from the quote.
|
|
47
50
|
*/
|
|
48
|
-
export declare function TokenSwapCard({ variant, label, token, isDepositRequired, onDeposit, onTokenClick, amount, amountPrefix, onAmountChange, convertedAmount, onToggleUnit, balance, onPercentSelect, isLoading, isDisabled, testId, }: TokenSwapCardProps): React.JSX.Element;
|
|
51
|
+
export declare function TokenSwapCard({ variant, label, token, isDepositRequired, onDeposit, onTokenClick, amount, amountPrefix, onAmountChange, onAmountClick, convertedAmount, onToggleUnit, balance, onPercentSelect, isLoading, isDisabled, testId, }: TokenSwapCardProps): React.JSX.Element;
|
|
49
52
|
export {};
|
|
@@ -22,6 +22,8 @@ export type TokenSwapFrom = TokenSwapAmounts & TokenSwapDepositState & {
|
|
|
22
22
|
export interface TokenSwapTo extends TokenSwapAmounts {
|
|
23
23
|
/** Shows a skeleton in place of the amount while the quote loads. */
|
|
24
24
|
isLoading?: boolean;
|
|
25
|
+
/** A press on the read-only amount shakes its row and calls this, e.g. to point to From. */
|
|
26
|
+
onAmountClick?: () => void;
|
|
25
27
|
}
|
|
26
28
|
export interface TokenSwapWidgetProps {
|
|
27
29
|
from: TokenSwapFrom;
|
|
@@ -7,11 +7,11 @@ export declare enum CheckoutInitStepMessage {
|
|
|
7
7
|
WAITING_FOR_CONFIRMATION = 4
|
|
8
8
|
}
|
|
9
9
|
export declare const getCheckoutStepMessage: (t: TFunction) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
[CheckoutInitStepMessage.PREPARING_DATA]: string;
|
|
11
|
+
[CheckoutInitStepMessage.CONFIRMING]: string;
|
|
12
|
+
[CheckoutInitStepMessage.SWITCH_CHAIN]: string;
|
|
13
|
+
[CheckoutInitStepMessage.WAITING_FOR_SIGNATURE]: string;
|
|
14
|
+
[CheckoutInitStepMessage.WAITING_FOR_CONFIRMATION]: string;
|
|
15
15
|
};
|
|
16
16
|
export declare enum Web3AccountBalanceMessage {
|
|
17
17
|
SIGN_TX = 0,
|
|
@@ -19,7 +19,7 @@ export declare enum Web3AccountBalanceMessage {
|
|
|
19
19
|
APPROVE_TRANSFER = 2
|
|
20
20
|
}
|
|
21
21
|
export declare const getWeb3AccountBalanceMessage: (t: TFunction) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
[Web3AccountBalanceMessage.SIGN_TX]: string;
|
|
23
|
+
[Web3AccountBalanceMessage.SWITCH_CHAIN]: string;
|
|
24
|
+
[Web3AccountBalanceMessage.APPROVE_TRANSFER]: (tokenSymbol: string) => string;
|
|
25
25
|
};
|
|
@@ -17,8 +17,8 @@ export declare const POLYMARKET_PERPS_ROUTING_ID = "POLYMARKET_PERPS";
|
|
|
17
17
|
export declare const POLYGON_USDCE: Address;
|
|
18
18
|
export declare const PUSD_TOKEN: {
|
|
19
19
|
readonly address: `0x${string}`;
|
|
20
|
-
readonly symbol:
|
|
21
|
-
readonly iconSrc:
|
|
20
|
+
readonly symbol: 'pUSD';
|
|
21
|
+
readonly iconSrc: 'https://sdk-cdn.fun.xyz/images/pusd.svg';
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Customer-scoped destination-token override for the token-transfer param
|
package/dist/consts/quote.d.ts
CHANGED
|
@@ -7,37 +7,46 @@ export declare enum PendingQuoteMessage {
|
|
|
7
7
|
FINALIZING = 3
|
|
8
8
|
}
|
|
9
9
|
export declare const getPendingQuoteMessageGenerator: (t: TFunction) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
[PendingQuoteMessage.PREPARING]: () => string;
|
|
11
|
+
[PendingQuoteMessage.VERIFYING_PROVIDER]: (provider: string) => string;
|
|
12
|
+
[PendingQuoteMessage.ESTIMATING_GAS]: () => string;
|
|
13
|
+
[PendingQuoteMessage.FINALIZING]: () => string;
|
|
14
14
|
};
|
|
15
|
+
declare enum QuoteApiErrorType {
|
|
16
|
+
NO_ROUTE_FOUND_1 = 0,
|
|
17
|
+
NO_ROUTE_FOUND_2 = 1,
|
|
18
|
+
INSUFFICIENT_AMOUNT_GENERAL_1 = 2,
|
|
19
|
+
INSUFFICIENT_AMOUNT_GENERAL_2 = 3,
|
|
20
|
+
INSUFFICIENT_AMOUNT_FOR_BRDIGE_1 = 4,
|
|
21
|
+
INSUFFICIENT_AMOUNT_FOR_BRDIGE_2 = 5,
|
|
22
|
+
NO_ROUTE_FOUND_RELAY = 6
|
|
23
|
+
}
|
|
15
24
|
export declare const getQuoteApiErrorDisplayInfo: (t: TFunction) => {
|
|
16
|
-
|
|
25
|
+
[QuoteApiErrorType.NO_ROUTE_FOUND_1]: {
|
|
17
26
|
check: string;
|
|
18
27
|
display: ErrorNotification;
|
|
19
28
|
};
|
|
20
|
-
|
|
29
|
+
[QuoteApiErrorType.NO_ROUTE_FOUND_2]: {
|
|
21
30
|
check: string;
|
|
22
31
|
display: ErrorNotification;
|
|
23
32
|
};
|
|
24
|
-
|
|
33
|
+
[QuoteApiErrorType.NO_ROUTE_FOUND_RELAY]: {
|
|
25
34
|
check: string;
|
|
26
35
|
display: DisplayedError;
|
|
27
36
|
};
|
|
28
|
-
|
|
37
|
+
[QuoteApiErrorType.INSUFFICIENT_AMOUNT_GENERAL_1]: {
|
|
29
38
|
check: string;
|
|
30
39
|
display: DisplayedError;
|
|
31
40
|
};
|
|
32
|
-
|
|
41
|
+
[QuoteApiErrorType.INSUFFICIENT_AMOUNT_GENERAL_2]: {
|
|
33
42
|
check: string;
|
|
34
43
|
display: DisplayedError;
|
|
35
44
|
};
|
|
36
|
-
|
|
45
|
+
[QuoteApiErrorType.INSUFFICIENT_AMOUNT_FOR_BRDIGE_1]: {
|
|
37
46
|
check: string;
|
|
38
47
|
display: DisplayedError;
|
|
39
48
|
};
|
|
40
|
-
|
|
49
|
+
[QuoteApiErrorType.INSUFFICIENT_AMOUNT_FOR_BRDIGE_2]: {
|
|
41
50
|
check: string;
|
|
42
51
|
display: DisplayedError;
|
|
43
52
|
};
|
|
@@ -49,21 +58,22 @@ export declare enum QuoteCustomErrorType {
|
|
|
49
58
|
INSUFFICIENT_AMOUNT_POST_CHECK = 3
|
|
50
59
|
}
|
|
51
60
|
export declare const getQuoteCustomErrorDisplayInfo: (t: TFunction) => {
|
|
52
|
-
|
|
61
|
+
[QuoteCustomErrorType.INSUFFICIENT_BALANCE_PRE_CHECK]: {
|
|
53
62
|
check: string;
|
|
54
63
|
display: DisplayedError;
|
|
55
64
|
};
|
|
56
|
-
|
|
65
|
+
[QuoteCustomErrorType.INSUFFICIENT_TOKEN_BALANCE_PRE_CHECK]: {
|
|
57
66
|
check: string;
|
|
58
67
|
display: DisplayedError;
|
|
59
68
|
};
|
|
60
|
-
|
|
69
|
+
[QuoteCustomErrorType.INSUFFICIENT_BALANCE_POST_CHECK]: {
|
|
61
70
|
check: string;
|
|
62
71
|
display: DisplayedError;
|
|
63
72
|
};
|
|
64
|
-
|
|
73
|
+
[QuoteCustomErrorType.INSUFFICIENT_AMOUNT_POST_CHECK]: {
|
|
65
74
|
check: string;
|
|
66
75
|
display: DisplayedError;
|
|
67
76
|
};
|
|
68
77
|
};
|
|
69
78
|
export declare function generateQuoteApiErrorForDisplay(err: Error, t: TFunction): DisplayedError;
|
|
79
|
+
export {};
|