@lifi/widget 1.13.3 → 1.13.6
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/App.d.ts +1 -1
- package/AppDrawer.d.ts +3 -3
- package/AppProvider.d.ts +2 -2
- package/AppProvider.js +1 -3
- package/cjs/App.d.ts +1 -1
- package/cjs/AppDrawer.d.ts +3 -3
- package/cjs/AppProvider.d.ts +2 -2
- package/cjs/AppProvider.js +0 -2
- package/cjs/components/AppContainer.d.ts +1 -1
- package/cjs/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/cjs/components/BottomSheet/types.d.ts +2 -2
- package/cjs/components/Card/Card.d.ts +1 -1
- package/cjs/components/Dialog.d.ts +2 -2
- package/cjs/components/GasSufficiencyMessage/GasSufficiencyMessage.d.ts +2 -2
- package/cjs/components/Header/Header.d.ts +1 -1
- package/cjs/components/Header/useHeaderActionStore.d.ts +1 -1
- package/cjs/components/LiFiLogo.d.ts +1 -1
- package/cjs/components/ProgressToNextUpdate/ProgressToNextUpdate.d.ts +1 -1
- package/cjs/components/SelectChainAndToken.d.ts +1 -1
- package/cjs/components/SelectTokenButton/SelectTokenButton.d.ts +1 -1
- package/cjs/components/Step/CircularProgress.d.ts +1 -1
- package/cjs/components/Step/CircularProgress.style.d.ts +2 -2
- package/cjs/components/Step/Step.d.ts +1 -1
- package/cjs/components/Step/StepProcess.d.ts +1 -1
- package/cjs/components/Step/StepTimer.d.ts +1 -1
- package/cjs/components/Step/utils.d.ts +2 -2
- package/cjs/components/StepActions/StepActions.d.ts +2 -2
- package/cjs/components/StepActions/types.d.ts +2 -2
- package/cjs/components/SwapButton/SwapButton.d.ts +1 -1
- package/cjs/components/SwapInProgress/SwapInProgress.d.ts +1 -1
- package/cjs/components/SwapInput/FormPriceHelperText.d.ts +1 -1
- package/cjs/components/SwapInput/SwapInput.d.ts +1 -1
- package/cjs/components/SwapInput/SwapInputAdornment.d.ts +1 -1
- package/cjs/components/SwapRouteCard/SwapRouteCard.d.ts +2 -2
- package/cjs/components/SwapRouteCard/SwapRouteCardSkeleton.d.ts +2 -2
- package/cjs/components/SwapRouteCard/SwapRouteNotFoundCard.d.ts +2 -2
- package/cjs/components/SwapRouteCard/types.d.ts +1 -1
- package/cjs/components/TextFitter/TextFitter.d.ts +2 -2
- package/cjs/components/TextFitter/types.d.ts +1 -1
- package/cjs/components/Token/Token.d.ts +2 -2
- package/cjs/components/TokenAvatar/TokenAvatar.d.ts +2 -2
- package/cjs/components/TokenList/TokenList.d.ts +2 -2
- package/cjs/components/TokenList/TokenListItem.d.ts +1 -1
- package/cjs/components/TokenList/VirtualizedTokenList.d.ts +2 -2
- package/cjs/components/TokenList/types.d.ts +4 -4
- package/cjs/config/lifi.d.ts +2 -1
- package/cjs/config/theme.d.ts +2 -2
- package/cjs/config/theme.js +3 -4
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/fonts/Inter-Black.woff +0 -0
- package/cjs/fonts/Inter-Black.woff2 +0 -0
- package/cjs/fonts/Inter-BlackItalic.woff +0 -0
- package/cjs/fonts/Inter-BlackItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Bold.woff +0 -0
- package/cjs/fonts/Inter-Bold.woff2 +0 -0
- package/cjs/fonts/Inter-BoldItalic.woff +0 -0
- package/cjs/fonts/Inter-BoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraBold.woff +0 -0
- package/cjs/fonts/Inter-ExtraBold.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraBoldItalic.woff +0 -0
- package/cjs/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraLight.woff +0 -0
- package/cjs/fonts/Inter-ExtraLight.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraLightItalic.woff +0 -0
- package/cjs/fonts/Inter-ExtraLightItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Italic.woff +0 -0
- package/cjs/fonts/Inter-Italic.woff2 +0 -0
- package/cjs/fonts/Inter-Light.woff +0 -0
- package/cjs/fonts/Inter-Light.woff2 +0 -0
- package/cjs/fonts/Inter-LightItalic.woff +0 -0
- package/cjs/fonts/Inter-LightItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Medium.woff +0 -0
- package/cjs/fonts/Inter-Medium.woff2 +0 -0
- package/cjs/fonts/Inter-MediumItalic.woff +0 -0
- package/cjs/fonts/Inter-MediumItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Regular.woff +0 -0
- package/cjs/fonts/Inter-Regular.woff2 +0 -0
- package/cjs/fonts/Inter-SemiBold.woff +0 -0
- package/cjs/fonts/Inter-SemiBold.woff2 +0 -0
- package/cjs/fonts/Inter-SemiBoldItalic.woff +0 -0
- package/cjs/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Thin.woff +0 -0
- package/cjs/fonts/Inter-Thin.woff2 +0 -0
- package/cjs/fonts/Inter-ThinItalic.woff +0 -0
- package/cjs/fonts/Inter-ThinItalic.woff2 +0 -0
- package/cjs/fonts/Inter-italic.var.woff2 +0 -0
- package/cjs/fonts/Inter-roman.var.woff2 +0 -0
- package/cjs/fonts/Inter.var.woff2 +0 -0
- package/cjs/fonts/inter.css +200 -0
- package/cjs/hooks/useGasSufficiency.d.ts +1 -1
- package/cjs/hooks/useRouteExecution.d.ts +1 -1
- package/cjs/hooks/useTokenBalances.d.ts +1 -1
- package/cjs/hooks/useTokenSearch.d.ts +1 -1
- package/cjs/hooks/useTokens.d.ts +1 -1
- package/cjs/hooks/useTools.d.ts +1 -1
- package/cjs/i18n/en/translation.json +167 -167
- package/cjs/icons/LiFiFullLogo.d.ts +1 -1
- package/cjs/icons/LiFiLogo.d.ts +1 -1
- package/cjs/icons/LiFiToolLogo.d.ts +1 -1
- package/cjs/pages/MainPage/SwapRoutes.d.ts +1 -1
- package/cjs/pages/SelectTokenPage/ChainSelect.d.ts +1 -1
- package/cjs/pages/SelectTokenPage/SelectTokenPage.d.ts +2 -2
- package/cjs/pages/SwapHistoryPage/SwapHistoryItem.d.ts +1 -1
- package/cjs/pages/SwapPage/StatusBottomSheet.d.ts +1 -1
- package/cjs/pages/SwapPage/StatusBottomSheet.style.d.ts +2 -2
- package/cjs/pages/SwapPage/utils.d.ts +2 -2
- package/cjs/pages/SwapRoutesPage/SwapRoutesPage.d.ts +1 -1
- package/cjs/providers/WalletProvider/WalletProvider.d.ts +3 -3
- package/cjs/providers/WalletProvider/types.d.ts +3 -3
- package/cjs/providers/WidgetProvider/types.d.ts +1 -1
- package/cjs/stores/route/types.d.ts +1 -1
- package/cjs/stores/route/useExecutingRoutes.d.ts +1 -1
- package/cjs/stores/route/useSwapHistory.d.ts +1 -1
- package/cjs/stores/settings/types.d.ts +2 -2
- package/cjs/stores/settings/useAppearance.d.ts +1 -1
- package/cjs/stores/settings/useSetSettings.d.ts +1 -1
- package/cjs/stores/settings/useSettings.d.ts +1 -1
- package/cjs/stores/settings/useSettingsStore.d.ts +1 -1
- package/cjs/types/token.d.ts +1 -1
- package/cjs/types/widget.d.ts +5 -5
- package/cjs/utils/colors.d.ts +2 -2
- package/cjs/utils/colors.js +4 -4
- package/components/AppContainer.d.ts +1 -1
- package/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/components/BottomSheet/types.d.ts +2 -2
- package/components/Card/Card.d.ts +1 -1
- package/components/Dialog.d.ts +2 -2
- package/components/GasSufficiencyMessage/GasSufficiencyMessage.d.ts +2 -2
- package/components/Header/Header.d.ts +1 -1
- package/components/Header/useHeaderActionStore.d.ts +1 -1
- package/components/LiFiLogo.d.ts +1 -1
- package/components/ProgressToNextUpdate/ProgressToNextUpdate.d.ts +1 -1
- package/components/ProgressToNextUpdate/ProgressToNextUpdate.js +1 -1
- package/components/SelectChainAndToken.d.ts +1 -1
- package/components/SelectTokenButton/SelectTokenButton.d.ts +1 -1
- package/components/SelectTokenButton/SelectTokenButton.js +1 -1
- package/components/Step/CircularProgress.d.ts +1 -1
- package/components/Step/CircularProgress.style.d.ts +2 -2
- package/components/Step/Step.d.ts +1 -1
- package/components/Step/StepProcess.d.ts +1 -1
- package/components/Step/StepTimer.d.ts +1 -1
- package/components/Step/utils.d.ts +2 -2
- package/components/Step/utils.js +1 -1
- package/components/StepActions/StepActions.d.ts +2 -2
- package/components/StepActions/StepActions.js +1 -1
- package/components/StepActions/types.d.ts +2 -2
- package/components/SwapButton/SwapButton.d.ts +1 -1
- package/components/SwapInProgress/SwapInProgress.d.ts +1 -1
- package/components/SwapInput/FormPriceHelperText.d.ts +1 -1
- package/components/SwapInput/FormPriceHelperText.js +1 -1
- package/components/SwapInput/SwapInput.d.ts +1 -1
- package/components/SwapInput/SwapInput.js +1 -1
- package/components/SwapInput/SwapInputAdornment.d.ts +1 -1
- package/components/SwapInput/SwapInputAdornment.js +1 -1
- package/components/SwapRouteCard/SwapRouteCard.d.ts +2 -2
- package/components/SwapRouteCard/SwapRouteCardSkeleton.d.ts +2 -2
- package/components/SwapRouteCard/SwapRouteNotFoundCard.d.ts +2 -2
- package/components/SwapRouteCard/types.d.ts +1 -1
- package/components/TextFitter/TextFitter.d.ts +2 -2
- package/components/TextFitter/TextFitter.js +1 -1
- package/components/TextFitter/types.d.ts +1 -1
- package/components/Token/Token.d.ts +2 -2
- package/components/TokenAvatar/TokenAvatar.d.ts +2 -2
- package/components/TokenList/TokenList.d.ts +2 -2
- package/components/TokenList/TokenListItem.d.ts +1 -1
- package/components/TokenList/VirtualizedTokenList.d.ts +2 -2
- package/components/TokenList/types.d.ts +4 -4
- package/config/lifi.d.ts +2 -1
- package/config/theme.d.ts +2 -2
- package/config/theme.js +3 -4
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/hooks/useGasSufficiency.d.ts +1 -1
- package/hooks/useRouteExecution.d.ts +1 -1
- package/hooks/useTokenBalances.d.ts +1 -1
- package/hooks/useTokenSearch.d.ts +1 -1
- package/hooks/useTokens.d.ts +1 -1
- package/hooks/useTools.d.ts +1 -1
- package/icons/LiFiFullLogo.d.ts +1 -1
- package/icons/LiFiLogo.d.ts +1 -1
- package/icons/LiFiToolLogo.d.ts +1 -1
- package/package.json +3 -3
- package/pages/MainPage/SwapRoutes.d.ts +1 -1
- package/pages/SelectTokenPage/ChainSelect.d.ts +1 -1
- package/pages/SelectTokenPage/SelectTokenPage.d.ts +2 -2
- package/pages/SwapHistoryPage/SwapHistoryItem.d.ts +1 -1
- package/pages/SwapPage/StatusBottomSheet.d.ts +1 -1
- package/pages/SwapPage/StatusBottomSheet.style.d.ts +2 -2
- package/pages/SwapPage/utils.d.ts +2 -2
- package/pages/SwapPage/utils.js +1 -1
- package/pages/SwapRoutesPage/SwapRoutesPage.d.ts +1 -1
- package/providers/WalletProvider/WalletProvider.d.ts +3 -3
- package/providers/WalletProvider/types.d.ts +3 -3
- package/providers/WidgetProvider/types.d.ts +1 -1
- package/stores/route/types.d.ts +1 -1
- package/stores/route/useExecutingRoutes.d.ts +1 -1
- package/stores/route/useSwapHistory.d.ts +1 -1
- package/stores/settings/types.d.ts +2 -2
- package/stores/settings/useAppearance.d.ts +1 -1
- package/stores/settings/useSetSettings.d.ts +1 -1
- package/stores/settings/useSettings.d.ts +1 -1
- package/stores/settings/useSettingsStore.d.ts +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/types/token.d.ts +1 -1
- package/types/widget.d.ts +5 -5
- package/utils/colors.d.ts +2 -2
- package/utils/colors.js +4 -4
package/hooks/useTokens.d.ts
CHANGED
package/hooks/useTools.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bridge, Exchange } from '@lifi/sdk';
|
|
1
|
+
import type { Bridge, Exchange } from '@lifi/sdk';
|
|
2
2
|
declare type FormattedTool<T, K extends keyof T> = Record<string, Pick<T, K>>;
|
|
3
3
|
export declare const useTools: () => {
|
|
4
4
|
tools: import("@lifi/sdk").ToolsResponse | undefined;
|
package/icons/LiFiFullLogo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
2
|
export declare const LiFiFullLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
package/icons/LiFiLogo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
2
|
export declare const LiFiLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
package/icons/LiFiToolLogo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
2
|
export declare const LiFiToolLogo: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.6",
|
|
4
4
|
"description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@emotion/styled": "^11.10.0",
|
|
41
41
|
"@ethersproject/experimental": "^5.6.3",
|
|
42
42
|
"@ethersproject/providers": "^5.6.8",
|
|
43
|
-
"@lifi/sdk": "^1.1.
|
|
44
|
-
"@lifi/wallet-management": "^1.1.
|
|
43
|
+
"@lifi/sdk": "^1.1.6",
|
|
44
|
+
"@lifi/wallet-management": "^1.1.6",
|
|
45
45
|
"@mui/icons-material": "^5.8.4",
|
|
46
46
|
"@mui/lab": "^5.0.0-alpha.95",
|
|
47
47
|
"@mui/material": "^5.10.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { SwapFormDirection } from '../../providers/SwapFormProvider';
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { SwapFormDirection } from '../../providers/SwapFormProvider';
|
|
3
3
|
export declare const SelectTokenPage: FC<{
|
|
4
4
|
formType: SwapFormDirection;
|
|
5
5
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Theme } from '@mui/material';
|
|
3
|
-
import { RouteExecutionStatus } from '../../stores';
|
|
2
|
+
import type { Theme } from '@mui/material';
|
|
3
|
+
import type { RouteExecutionStatus } from '../../stores';
|
|
4
4
|
export declare const IconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
6
|
component?: import("react").ElementType<any> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EVMChain, Process, Step } from '@lifi/sdk';
|
|
2
|
-
import { TFunction } from 'react-i18next';
|
|
1
|
+
import type { EVMChain, Process, Step } from '@lifi/sdk';
|
|
2
|
+
import type { TFunction } from 'react-i18next';
|
|
3
3
|
export declare function getProcessMessage(t: TFunction<'translation', undefined>, getChainById: (chainId: number) => EVMChain | undefined, step: Step, process: Process): {
|
|
4
4
|
title?: string;
|
|
5
5
|
message?: string;
|
package/pages/SwapPage/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LifiErrorCode, MetaMaskProviderErrorCode
|
|
1
|
+
import { LifiErrorCode, MetaMaskProviderErrorCode } from '@lifi/sdk';
|
|
2
2
|
import { formatTokenAmount } from '../../utils';
|
|
3
3
|
const formatProcessMessage = (initialMessage, args = {}) => {
|
|
4
4
|
return Object.keys(args).reduce((message, key) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Signer } from 'ethers';
|
|
2
|
-
import { FC, PropsWithChildren } from 'react';
|
|
3
|
-
import { WidgetWalletManagement } from '../../types';
|
|
1
|
+
import type { Signer } from 'ethers';
|
|
2
|
+
import type { FC, PropsWithChildren } from 'react';
|
|
3
|
+
import type { WidgetWalletManagement } from '../../types';
|
|
4
4
|
import type { WalletContextProps } from './types';
|
|
5
5
|
export declare const useWallet: () => WalletContextProps;
|
|
6
6
|
export declare const WalletProvider: FC<PropsWithChildren<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Token } from '@lifi/sdk';
|
|
2
|
-
import { Wallet } from '@lifi/wallet-management';
|
|
3
|
-
import { Signer } from 'ethers';
|
|
1
|
+
import type { Token } from '@lifi/sdk';
|
|
2
|
+
import type { Wallet } from '@lifi/wallet-management';
|
|
3
|
+
import type { Signer } from 'ethers';
|
|
4
4
|
export interface WalletContextProps {
|
|
5
5
|
account: WalletAccount;
|
|
6
6
|
addChain(chainId: number): Promise<boolean>;
|
package/stores/route/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RouteExecution } from './types';
|
|
1
|
+
import type { RouteExecution } from './types';
|
|
2
2
|
export declare const useExecutingRoutes: (address?: string) => RouteExecution[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RouteExecution } from './types';
|
|
1
|
+
import type { RouteExecution } from './types';
|
|
2
2
|
export declare const useSwapHistory: (address?: string) => RouteExecution[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bridge, Exchange, Order } from '@lifi/sdk';
|
|
2
|
-
import { Appearance } from '../../types';
|
|
1
|
+
import type { Bridge, Exchange, Order } from '@lifi/sdk';
|
|
2
|
+
import type { Appearance } from '../../types';
|
|
3
3
|
export declare type ValueSetter<S> = <K extends keyof S>(key: K, value: S[Extract<K, string>]) => void;
|
|
4
4
|
export declare type ValuesSetter<S> = <K extends keyof S>(values: Record<K, S[Extract<K, string>]>) => void;
|
|
5
5
|
export declare type SettingsToolType = 'Bridges' | 'Exchanges';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Appearance } from '../../types';
|
|
1
|
+
import type { Appearance } from '../../types';
|
|
2
2
|
export declare const useAppearance: () => [Appearance, (appearance: Appearance) => void];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SettingsState } from '.';
|
|
1
|
+
import type { SettingsState } from '.';
|
|
2
2
|
export declare const useSettings: <K extends keyof SettingsState>(keys: K[]) => Pick<SettingsState, K>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SettingsState, SettingsStore } from './types';
|
|
1
|
+
import type { SettingsState, SettingsStore } from './types';
|
|
2
2
|
export declare const useSettingsStore: import("zustand").UseBoundStore<Omit<Omit<import("zustand").StoreApi<SettingsStore>, "persist"> & {
|
|
3
3
|
persist: {
|
|
4
4
|
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<SettingsStore, {
|