@lifi/widget 3.18.5 → 3.19.0-beta.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 +0 -7
- package/dist/esm/AppDrawer.js +7 -6
- package/dist/esm/AppDrawer.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js +3 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js.map +1 -1
- package/dist/esm/components/Avatar/AccountAvatar.js +1 -1
- package/dist/esm/components/Avatar/AccountAvatar.js.map +1 -1
- package/dist/esm/components/BottomSheet/BottomSheet.js +2 -2
- package/dist/esm/components/BottomSheet/BottomSheet.js.map +1 -1
- package/dist/esm/components/Card/CardIconButton.d.ts +1 -1
- package/dist/esm/components/Dialog.d.ts +10 -2
- package/dist/esm/components/Dialog.js +10 -10
- package/dist/esm/components/Dialog.js.map +1 -1
- package/dist/esm/components/Header/BackButton.js +1 -1
- package/dist/esm/components/Header/BackButton.js.map +1 -1
- package/dist/esm/components/Header/CloseDrawerButton.js +1 -1
- package/dist/esm/components/Header/CloseDrawerButton.js.map +1 -1
- package/dist/esm/components/Header/DisconnectIconButton.js +1 -1
- package/dist/esm/components/Header/DisconnectIconButton.js.map +1 -1
- package/dist/esm/components/Header/SettingsButton.js +1 -1
- package/dist/esm/components/Header/SettingsButton.js.map +1 -1
- package/dist/esm/components/Header/TransactionHistoryButton.js +1 -1
- package/dist/esm/components/Header/TransactionHistoryButton.js.map +1 -1
- package/dist/esm/components/Header/WalletHeader.js +2 -1
- package/dist/esm/components/Header/WalletHeader.js.map +1 -1
- package/dist/esm/components/Header/WalletMenu.js +3 -1
- package/dist/esm/components/Header/WalletMenu.js.map +1 -1
- package/dist/esm/components/Messages/AccountNotDeployedMessage.js +1 -1
- package/dist/esm/components/Messages/AccountNotDeployedMessage.js.map +1 -1
- package/dist/esm/components/Messages/FundsSufficiencyMessage.js +1 -1
- package/dist/esm/components/Messages/FundsSufficiencyMessage.js.map +1 -1
- package/dist/esm/components/Messages/GasRefuelMessage.js +1 -1
- package/dist/esm/components/Messages/GasRefuelMessage.js.map +1 -1
- package/dist/esm/components/Messages/GasSufficiencyMessage.js +1 -1
- package/dist/esm/components/Messages/GasSufficiencyMessage.js.map +1 -1
- package/dist/esm/components/Messages/ToAddressRequiredMessage.js +1 -1
- package/dist/esm/components/Messages/ToAddressRequiredMessage.js.map +1 -1
- package/dist/esm/components/NotFound.js +1 -1
- package/dist/esm/components/NotFound.js.map +1 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js +2 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCard.js +2 -1
- package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentials.js +2 -1
- package/dist/esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js +1 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js.map +1 -1
- package/dist/esm/components/Routes/Routes.js +1 -1
- package/dist/esm/components/Routes/Routes.js.map +1 -1
- package/dist/esm/components/Search/SearchInput.js +1 -1
- package/dist/esm/components/Search/SearchInput.js.map +1 -1
- package/dist/esm/components/Search/SearchNotFound.js +1 -1
- package/dist/esm/components/Search/SearchNotFound.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.js +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletExpandButton.js +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletExpandButton.js.map +1 -1
- package/dist/esm/components/Step/CircularProgress.js +4 -1
- package/dist/esm/components/Step/CircularProgress.js.map +1 -1
- package/dist/esm/components/Step/DestinationWalletAddress.js +2 -1
- package/dist/esm/components/Step/DestinationWalletAddress.js.map +1 -1
- package/dist/esm/components/Step/StepProcess.js +1 -1
- package/dist/esm/components/Step/StepProcess.js.map +1 -1
- package/dist/esm/components/StepActions/StepActions.js +3 -1
- package/dist/esm/components/StepActions/StepActions.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.style.d.ts +1 -1
- package/dist/esm/components/Timer/TimerContent.js +1 -1
- package/dist/esm/components/Timer/TimerContent.js.map +1 -1
- package/dist/esm/components/TokenList/TokenList.style.d.ts +2 -2
- package/dist/esm/components/TokenList/TokenListItem.js +1 -1
- package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
- package/dist/esm/components/TokenList/types.d.ts +3 -3
- package/dist/esm/components/TransactionDetails.js +3 -1
- package/dist/esm/components/TransactionDetails.js.map +1 -1
- package/dist/esm/config/version.d.ts +1 -1
- package/dist/esm/config/version.js +1 -1
- package/dist/esm/config/version.js.map +1 -1
- package/dist/esm/hooks/useSetContentHeight.d.ts +2 -2
- package/dist/esm/hooks/useSetContentHeight.js.map +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js.map +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js.map +1 -1
- package/dist/esm/pages/LanguagesPage.js +1 -1
- package/dist/esm/pages/LanguagesPage.js.map +1 -1
- package/dist/esm/pages/SelectEnabledToolsPage.js +4 -1
- package/dist/esm/pages/SelectEnabledToolsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js +3 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js +5 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +2 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js +4 -1
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js +6 -1
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js +3 -1
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js +4 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
- package/dist/esm/pages/SettingsPage/BridgeAndExchangeSettings.js +2 -1
- package/dist/esm/pages/SettingsPage/BridgeAndExchangeSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/GasPriceSettings.js +1 -1
- package/dist/esm/pages/SettingsPage/GasPriceSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/LanguageSetting.js +1 -1
- package/dist/esm/pages/SettingsPage/LanguageSetting.js.map +1 -1
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.js +1 -1
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.js.map +1 -1
- package/dist/esm/pages/SettingsPage/RoutePrioritySettings.js +1 -1
- package/dist/esm/pages/SettingsPage/RoutePrioritySettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +2 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/ThemeSettings.js +3 -1
- package/dist/esm/pages/SettingsPage/ThemeSettings.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js +2 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js.map +1 -1
- package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.js +2 -1
- package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js +1 -1
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js +4 -1
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js +1 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/dist/esm/types/widget.d.ts +4 -4
- package/dist/esm/types/widget.js.map +1 -1
- package/package.json +6 -6
- package/package.json.tmp +5 -5
- package/src/AppDrawer.tsx +9 -7
- package/src/components/ActiveTransactions/ActiveTransactionItem.tsx +3 -1
- package/src/components/Avatar/AccountAvatar.tsx +1 -1
- package/src/components/BottomSheet/BottomSheet.tsx +1 -2
- package/src/components/Dialog.tsx +10 -12
- package/src/components/Header/BackButton.tsx +1 -1
- package/src/components/Header/CloseDrawerButton.tsx +1 -1
- package/src/components/Header/DisconnectIconButton.tsx +1 -1
- package/src/components/Header/SettingsButton.tsx +1 -1
- package/src/components/Header/TransactionHistoryButton.tsx +1 -1
- package/src/components/Header/WalletHeader.tsx +2 -1
- package/src/components/Header/WalletMenu.tsx +3 -5
- package/src/components/Messages/AccountNotDeployedMessage.tsx +1 -1
- package/src/components/Messages/FundsSufficiencyMessage.tsx +1 -1
- package/src/components/Messages/GasRefuelMessage.tsx +1 -1
- package/src/components/Messages/GasSufficiencyMessage.tsx +1 -1
- package/src/components/Messages/ToAddressRequiredMessage.tsx +1 -1
- package/src/components/NotFound.tsx +1 -1
- package/src/components/ReverseTokensButton/ReverseTokensButton.tsx +2 -1
- package/src/components/RouteCard/RouteCard.tsx +2 -1
- package/src/components/RouteCard/RouteCardEssentials.tsx +2 -1
- package/src/components/RouteCard/RouteCardEssentialsExpanded.tsx +1 -1
- package/src/components/RouteCard/RouteNotFoundCard.tsx +1 -1
- package/src/components/Routes/Routes.tsx +1 -1
- package/src/components/Search/SearchInput.tsx +1 -1
- package/src/components/Search/SearchNotFound.tsx +1 -1
- package/src/components/SendToWallet/SendToWalletButton.tsx +1 -1
- package/src/components/SendToWallet/SendToWalletExpandButton.tsx +1 -1
- package/src/components/Step/CircularProgress.tsx +4 -6
- package/src/components/Step/DestinationWalletAddress.tsx +2 -1
- package/src/components/Step/StepProcess.tsx +1 -1
- package/src/components/StepActions/StepActions.tsx +3 -1
- package/src/components/Timer/TimerContent.tsx +1 -1
- package/src/components/TokenList/TokenListItem.tsx +1 -1
- package/src/components/TokenList/types.ts +3 -3
- package/src/components/TransactionDetails.tsx +3 -5
- package/src/config/version.ts +1 -1
- package/src/hooks/useSetContentHeight.ts +2 -2
- package/src/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.tsx +1 -1
- package/src/pages/ActiveTransactionsPage/ActiveTransactionsPage.tsx +1 -1
- package/src/pages/LanguagesPage.tsx +1 -1
- package/src/pages/SelectEnabledToolsPage.tsx +4 -6
- package/src/pages/SendToWallet/BookmarkAddressSheet.tsx +6 -8
- package/src/pages/SendToWallet/BookmarksPage.tsx +5 -7
- package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +4 -3
- package/src/pages/SendToWallet/ConnectedWalletsPage.tsx +4 -6
- package/src/pages/SendToWallet/RecentWalletsPage.tsx +6 -8
- package/src/pages/SendToWallet/SendToConfiguredWalletPage.tsx +3 -5
- package/src/pages/SendToWallet/SendToWalletPage.tsx +4 -6
- package/src/pages/SettingsPage/BridgeAndExchangeSettings.tsx +2 -1
- package/src/pages/SettingsPage/GasPriceSettings.tsx +1 -1
- package/src/pages/SettingsPage/LanguageSetting.tsx +1 -1
- package/src/pages/SettingsPage/ResetSettingsButton.tsx +1 -1
- package/src/pages/SettingsPage/RoutePrioritySettings.tsx +1 -1
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +2 -1
- package/src/pages/SettingsPage/ThemeSettings.tsx +3 -1
- package/src/pages/TransactionDetailsPage/TransferIdCard.tsx +2 -1
- package/src/pages/TransactionHistoryPage/TransactionHistoryEmpty.tsx +1 -1
- package/src/pages/TransactionPage/ConfirmToAddressSheet.tsx +4 -3
- package/src/pages/TransactionPage/ExchangeRateBottomSheet.tsx +5 -7
- package/src/pages/TransactionPage/StatusBottomSheet.tsx +4 -6
- package/src/pages/TransactionPage/TokenValueBottomSheet.tsx +3 -3
- package/src/pages/TransactionPage/TransactionPage.tsx +1 -1
- package/src/types/widget.ts +4 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionPage.js","sourceRoot":"","sources":["../../../../src/pages/TransactionPage/TransactionPage.tsx"],"names":[],"mappings":";AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"TransactionPage.js","sourceRoot":"","sources":["../../../../src/pages/TransactionPage/TransactionPage.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,4BAA4B,CAAA;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CA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AAI,EACR,KAAC,uBAAuB,IAAC,GAAG,EAAE,0BAA0B,GAAI,EAC5D,KAAC,qBAAqB,IACpB,GAAG,EAAE,wBAAwB,EAC7B,UAAU,EAAE,kBAAkB,EAC9B,SAAS,EAAE,SAAU,EACrB,SAAS,EAAE,KAAK,CAAC,SAAU,GAC3B,IACY,CACjB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseToken, ChainType, ContractCall, Order, RouteOptions, SDKConfig, StaticToken, Token } from '@lifi/sdk';
|
|
2
2
|
import type { Components, PaletteMode, PaletteOptions, Shape, SxProps, Theme } from '@mui/material';
|
|
3
|
-
import type {
|
|
4
|
-
import type { CSSProperties,
|
|
3
|
+
import type { TypographyVariantsOptions } from '@mui/material/styles';
|
|
4
|
+
import type { CSSProperties, ReactNode, RefObject } from 'react';
|
|
5
5
|
import type { CoinbaseWalletParameters, MetaMaskParameters, WalletConnectParameters } from 'wagmi/connectors';
|
|
6
6
|
import type { LanguageKey, LanguageResources } from '../providers/I18nProvider/types.js';
|
|
7
7
|
import type { DefaultFieldValues } from '../stores/form/types.js';
|
|
@@ -25,7 +25,7 @@ export type WidgetThemeComponents = Pick<Components<Theme>, 'MuiAppBar' | 'MuiAv
|
|
|
25
25
|
export type WidgetTheme = {
|
|
26
26
|
palette?: Pick<PaletteOptions, 'background' | 'grey' | 'primary' | 'secondary' | 'text'>;
|
|
27
27
|
shape?: Partial<Shape>;
|
|
28
|
-
typography?:
|
|
28
|
+
typography?: TypographyVariantsOptions;
|
|
29
29
|
components?: WidgetThemeComponents;
|
|
30
30
|
container?: CSSProperties;
|
|
31
31
|
header?: CSSProperties;
|
|
@@ -203,7 +203,7 @@ export type SetFieldValueFunction = <K extends FieldNames>(key: K, value: FieldV
|
|
|
203
203
|
export type FormState = {
|
|
204
204
|
setFieldValue: SetFieldValueFunction;
|
|
205
205
|
};
|
|
206
|
-
export type FormRef =
|
|
206
|
+
export type FormRef = RefObject<FormState | null>;
|
|
207
207
|
export interface FormRefProps {
|
|
208
208
|
formRef?: FormRef;
|
|
209
209
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../src/types/widget.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../src/types/widget.ts"],"names":[],"mappings":"AAyEA,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,uCAAyB,CAAA;IACzB,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;AACrB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAGD,MAAM,CAAN,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,qCAAyB,CAAA;IACzB,mDAAuC,CAAA;IACvC,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,2DAA+C,CAAA;IAC/C,uDAA2C,CAAA;IAC3C,2DAA+C,CAAA;AACjD,CAAC,EAZW,QAAQ,KAAR,QAAQ,QAYnB;AAGD,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,qCAAuB,CAAA;AACzB,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0-beta.0",
|
|
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
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"@emotion/react": "^11.14.0",
|
|
36
36
|
"@emotion/styled": "^11.14.0",
|
|
37
37
|
"@lifi/sdk": "^3.6.8",
|
|
38
|
-
"@mui/icons-material": "
|
|
39
|
-
"@mui/material": "^
|
|
40
|
-
"@mui/system": "^
|
|
38
|
+
"@mui/icons-material": "^7.0.2",
|
|
39
|
+
"@mui/material": "^7.0.2",
|
|
40
|
+
"@mui/system": "^7.0.2",
|
|
41
41
|
"@solana/wallet-adapter-base": "^0.9.24",
|
|
42
42
|
"@solana/web3.js": "^1.98.0",
|
|
43
43
|
"@tanstack/react-virtual": "^3.13.6",
|
|
44
|
-
"i18next": "^
|
|
44
|
+
"i18next": "^25.0.0",
|
|
45
45
|
"microdiff": "^1.5.0",
|
|
46
46
|
"mitt": "^3.0.1",
|
|
47
47
|
"react-i18next": "^15.4.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-router-dom": "^6.30.0",
|
|
50
50
|
"viem": "^2.27.0",
|
|
51
51
|
"zustand": "^5.0.3",
|
|
52
|
-
"@lifi/wallet-management": "^3.
|
|
52
|
+
"@lifi/wallet-management": "^3.8.0-beta.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@bigmi/react": ">=0.1.0",
|
package/package.json.tmp
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0-beta.0",
|
|
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
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"@emotion/styled": "^11.14.0",
|
|
56
56
|
"@lifi/sdk": "^3.6.8",
|
|
57
57
|
"@lifi/wallet-management": "workspace:^",
|
|
58
|
-
"@mui/icons-material": "
|
|
59
|
-
"@mui/material": "^
|
|
60
|
-
"@mui/system": "^
|
|
58
|
+
"@mui/icons-material": "^7.0.2",
|
|
59
|
+
"@mui/material": "^7.0.2",
|
|
60
|
+
"@mui/system": "^7.0.2",
|
|
61
61
|
"@solana/wallet-adapter-base": "^0.9.24",
|
|
62
62
|
"@solana/web3.js": "^1.98.0",
|
|
63
63
|
"@tanstack/react-virtual": "^3.13.6",
|
|
64
|
-
"i18next": "^
|
|
64
|
+
"i18next": "^25.0.0",
|
|
65
65
|
"microdiff": "^1.5.0",
|
|
66
66
|
"mitt": "^3.0.1",
|
|
67
67
|
"react-i18next": "^15.4.1",
|
package/src/AppDrawer.tsx
CHANGED
|
@@ -73,6 +73,15 @@ export const AppDrawer = forwardRef<
|
|
|
73
73
|
open={drawerOpen}
|
|
74
74
|
onClose={closeDrawer}
|
|
75
75
|
slotProps={{
|
|
76
|
+
paper: {
|
|
77
|
+
sx: (theme) => ({
|
|
78
|
+
width: theme?.container?.width ?? '100%',
|
|
79
|
+
minWidth:
|
|
80
|
+
theme?.container?.minWidth ?? theme.breakpoints.values.xs,
|
|
81
|
+
maxWidth:
|
|
82
|
+
theme?.container?.maxWidth ?? theme.breakpoints.values.sm,
|
|
83
|
+
}),
|
|
84
|
+
},
|
|
76
85
|
backdrop: {
|
|
77
86
|
sx: {
|
|
78
87
|
backgroundColor: 'rgb(0 0 0 / 48%)',
|
|
@@ -80,13 +89,6 @@ export const AppDrawer = forwardRef<
|
|
|
80
89
|
},
|
|
81
90
|
},
|
|
82
91
|
}}
|
|
83
|
-
PaperProps={{
|
|
84
|
-
sx: (theme) => ({
|
|
85
|
-
width: theme?.container?.width ?? '100%',
|
|
86
|
-
minWidth: theme?.container?.minWidth ?? theme.breakpoints.values.xs,
|
|
87
|
-
maxWidth: theme?.container?.maxWidth ?? theme.breakpoints.values.sm,
|
|
88
|
-
}),
|
|
89
|
-
}}
|
|
90
92
|
keepMounted
|
|
91
93
|
>
|
|
92
94
|
{children}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ArrowForward from '@mui/icons-material/ArrowForward'
|
|
2
|
+
import ErrorRounded from '@mui/icons-material/ErrorRounded'
|
|
3
|
+
import InfoRounded from '@mui/icons-material/InfoRounded'
|
|
2
4
|
import { ListItemAvatar, ListItemText, Typography } from '@mui/material'
|
|
3
5
|
import { useNavigate } from 'react-router-dom'
|
|
4
6
|
import { useProcessMessage } from '../../hooks/useProcessMessage.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Account } from '@lifi/wallet-management'
|
|
2
2
|
import { getConnectorIcon } from '@lifi/wallet-management'
|
|
3
|
-
import
|
|
3
|
+
import Wallet from '@mui/icons-material/Wallet'
|
|
4
4
|
import { Badge } from '@mui/material'
|
|
5
5
|
import { useChain } from '../../hooks/useChain.js'
|
|
6
6
|
import type { ToAddress } from '../../types/widget.js'
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
useState,
|
|
8
8
|
} from 'react'
|
|
9
9
|
import { useGetScrollableContainer } from '../../hooks/useScrollableContainer.js'
|
|
10
|
-
import { modalProps,
|
|
10
|
+
import { modalProps, slotProps } from '../Dialog.js'
|
|
11
11
|
import type { BottomSheetBase, BottomSheetProps } from './types.js'
|
|
12
12
|
|
|
13
13
|
export const BottomSheet = forwardRef<BottomSheetBase, BottomSheetProps>(
|
|
@@ -43,7 +43,6 @@ export const BottomSheet = forwardRef<BottomSheetBase, BottomSheetProps>(
|
|
|
43
43
|
open={drawerOpen}
|
|
44
44
|
onClose={close}
|
|
45
45
|
ModalProps={modalProps}
|
|
46
|
-
PaperProps={paperProps}
|
|
47
46
|
slotProps={slotProps}
|
|
48
47
|
disableAutoFocus
|
|
49
48
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DialogProps,
|
|
1
|
+
import type { DialogProps, Theme } from '@mui/material'
|
|
2
2
|
import { Dialog as MuiDialog } from '@mui/material'
|
|
3
3
|
import type { PropsWithChildren } from 'react'
|
|
4
4
|
import { useGetScrollableContainer } from '../hooks/useScrollableContainer.js'
|
|
@@ -10,17 +10,16 @@ export const modalProps = {
|
|
|
10
10
|
},
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export const paperProps: Partial<PaperProps> = {
|
|
14
|
-
sx: (theme: Theme) => ({
|
|
15
|
-
position: 'absolute',
|
|
16
|
-
backgroundImage: 'none',
|
|
17
|
-
backgroundColor: theme.palette.background.default,
|
|
18
|
-
borderTopLeftRadius: theme.shape.borderRadius,
|
|
19
|
-
borderTopRightRadius: theme.shape.borderRadius,
|
|
20
|
-
}),
|
|
21
|
-
}
|
|
22
|
-
|
|
23
13
|
export const slotProps = {
|
|
14
|
+
paper: {
|
|
15
|
+
sx: (theme: Theme) => ({
|
|
16
|
+
position: 'absolute',
|
|
17
|
+
backgroundImage: 'none',
|
|
18
|
+
backgroundColor: theme.palette.background.default,
|
|
19
|
+
borderTopLeftRadius: theme.shape.borderRadius,
|
|
20
|
+
borderTopRightRadius: theme.shape.borderRadius,
|
|
21
|
+
}),
|
|
22
|
+
},
|
|
24
23
|
backdrop: {
|
|
25
24
|
sx: {
|
|
26
25
|
position: 'absolute',
|
|
@@ -42,7 +41,6 @@ export const Dialog: React.FC<PropsWithChildren<DialogProps>> = ({
|
|
|
42
41
|
open={open}
|
|
43
42
|
onClose={onClose}
|
|
44
43
|
sx={modalProps.sx}
|
|
45
|
-
PaperProps={paperProps}
|
|
46
44
|
slotProps={slotProps}
|
|
47
45
|
>
|
|
48
46
|
{children}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Account, useAccountDisconnect } from '@lifi/wallet-management'
|
|
2
|
-
import
|
|
2
|
+
import PowerSettingsNewRounded from '@mui/icons-material/PowerSettingsNewRounded'
|
|
3
3
|
import { IconButton } from '@mui/material'
|
|
4
4
|
|
|
5
5
|
export const DisconnectIconButton = ({ account }: { account: Account }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReceiptLong from '@mui/icons-material/ReceiptLong'
|
|
2
2
|
import { IconButton, Tooltip } from '@mui/material'
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
4
|
import { useNavigateBack } from '../../hooks/useNavigateBack.js'
|
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
useAccount,
|
|
5
5
|
useWalletMenu,
|
|
6
6
|
} from '@lifi/wallet-management'
|
|
7
|
-
import
|
|
7
|
+
import ExpandMore from '@mui/icons-material/ExpandMore'
|
|
8
|
+
import Wallet from '@mui/icons-material/Wallet'
|
|
8
9
|
import { Avatar, Badge } from '@mui/material'
|
|
9
10
|
import { useState } from 'react'
|
|
10
11
|
import { useTranslation } from 'react-i18next'
|
|
@@ -3,11 +3,9 @@ import {
|
|
|
3
3
|
useAccount,
|
|
4
4
|
useWalletMenu,
|
|
5
5
|
} from '@lifi/wallet-management'
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
PowerSettingsNewRounded,
|
|
10
|
-
} from '@mui/icons-material'
|
|
6
|
+
import ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'
|
|
7
|
+
import OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'
|
|
8
|
+
import PowerSettingsNewRounded from '@mui/icons-material/PowerSettingsNewRounded'
|
|
11
9
|
import { Avatar, Badge, Box, Button, IconButton, MenuItem } from '@mui/material'
|
|
12
10
|
import { useTranslation } from 'react-i18next'
|
|
13
11
|
import { useAvailableChains } from '../../hooks/useAvailableChains.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
2
2
|
import { type BoxProps, Typography } from '@mui/material'
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
4
|
import { AlertMessage } from './AlertMessage.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
2
2
|
import { type BoxProps, Typography } from '@mui/material'
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
4
|
import { AlertMessage } from './AlertMessage.js'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ArrowDownward from '@mui/icons-material/ArrowDownward'
|
|
2
|
+
import ArrowForward from '@mui/icons-material/ArrowForward'
|
|
2
3
|
import { useAvailableChains } from '../../hooks/useAvailableChains.js'
|
|
3
4
|
import { useToAddressAutoPopulate } from '../../hooks/useToAddressAutoPopulate.js'
|
|
4
5
|
import { useToAddressReset } from '../../hooks/useToAddressReset.js'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TokenAmount } from '@lifi/sdk'
|
|
2
2
|
import { isGaslessStep } from '@lifi/sdk'
|
|
3
|
-
import
|
|
3
|
+
import ExpandLess from '@mui/icons-material/ExpandLess'
|
|
4
|
+
import ExpandMore from '@mui/icons-material/ExpandMore'
|
|
4
5
|
import { Box, Collapse } from '@mui/material'
|
|
5
6
|
import type { MouseEventHandler } from 'react'
|
|
6
7
|
import { useState } from 'react'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isGaslessStep } from '@lifi/sdk'
|
|
2
|
-
import
|
|
2
|
+
import AccessTimeFilled from '@mui/icons-material/AccessTimeFilled'
|
|
3
|
+
import LocalGasStationRounded from '@mui/icons-material/LocalGasStationRounded'
|
|
3
4
|
import { Box, Tooltip, Typography } from '@mui/material'
|
|
4
5
|
import { useTranslation } from 'react-i18next'
|
|
5
6
|
import { getAccumulatedFeeCostsBreakdown } from '../../utils/fees.js'
|
|
@@ -77,7 +77,7 @@ export const Routes: React.FC<CardProps> = (props) => {
|
|
|
77
77
|
<RouteCard route={currentRoute} variant="cardless" active />
|
|
78
78
|
)}
|
|
79
79
|
|
|
80
|
-
<Collapse timeout={225} in={showAll} unmountOnExit mountOnEnter
|
|
80
|
+
<Collapse timeout={225} in={showAll} unmountOnExit mountOnEnter>
|
|
81
81
|
<Box
|
|
82
82
|
sx={{
|
|
83
83
|
mt: 2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Search from '@mui/icons-material/Search'
|
|
2
2
|
import { FormControl, InputAdornment } from '@mui/material'
|
|
3
3
|
import type { FocusEventHandler, FormEventHandler } from 'react'
|
|
4
4
|
import { InputCard } from '../../components/Card/InputCard.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useAccount } from '@lifi/wallet-management'
|
|
2
|
-
import
|
|
2
|
+
import CloseRounded from '@mui/icons-material/CloseRounded'
|
|
3
3
|
import { Box, Collapse } from '@mui/material'
|
|
4
4
|
import { type MouseEventHandler, useEffect, useRef } from 'react'
|
|
5
5
|
import { useTranslation } from 'react-i18next'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Wallet from '@mui/icons-material/Wallet'
|
|
2
2
|
import { Button, Tooltip } from '@mui/material'
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
4
|
import { useToAddressRequirements } from '../../hooks/useToAddressRequirements.js'
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { Process } from '@lifi/sdk'
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
WarningRounded,
|
|
7
|
-
} from '@mui/icons-material'
|
|
2
|
+
import Done from '@mui/icons-material/Done'
|
|
3
|
+
import ErrorRounded from '@mui/icons-material/ErrorRounded'
|
|
4
|
+
import InfoRounded from '@mui/icons-material/InfoRounded'
|
|
5
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
8
6
|
import { darken } from '@mui/material'
|
|
9
7
|
import {
|
|
10
8
|
CircularIcon,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LiFiStepExtended } from '@lifi/sdk'
|
|
2
|
-
import
|
|
2
|
+
import LinkRounded from '@mui/icons-material/LinkRounded'
|
|
3
|
+
import Wallet from '@mui/icons-material/Wallet'
|
|
3
4
|
import { Box, Link, Typography } from '@mui/material'
|
|
4
5
|
import { useTranslation } from 'react-i18next'
|
|
5
6
|
import { CardIconButton } from '../Card/CardIconButton.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LiFiStep, Process } from '@lifi/sdk'
|
|
2
|
-
import
|
|
2
|
+
import OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'
|
|
3
3
|
import { Box, Link, Typography } from '@mui/material'
|
|
4
4
|
import { useExplorer } from '../../hooks/useExplorer.js'
|
|
5
5
|
import { useProcessMessage } from '../../hooks/useProcessMessage.js'
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { LiFiStep, StepExtended } from '@lifi/sdk'
|
|
2
2
|
import { isGaslessStep } from '@lifi/sdk'
|
|
3
|
-
import
|
|
3
|
+
import ArrowForward from '@mui/icons-material/ArrowForward'
|
|
4
|
+
import ExpandLess from '@mui/icons-material/ExpandLess'
|
|
5
|
+
import ExpandMore from '@mui/icons-material/ExpandMore'
|
|
4
6
|
import type { StepIconProps } from '@mui/material'
|
|
5
7
|
import {
|
|
6
8
|
Badge,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ExtendedChain } from '@lifi/sdk'
|
|
2
2
|
import type { Account } from '@lifi/wallet-management'
|
|
3
|
-
import type { MouseEventHandler,
|
|
3
|
+
import type { MouseEventHandler, RefObject } from 'react'
|
|
4
4
|
import type { FormType } from '../../stores/form/types.js'
|
|
5
5
|
import type { TokenAmount } from '../../types/token.js'
|
|
6
6
|
|
|
7
7
|
export interface TokenListProps {
|
|
8
|
-
parentRef:
|
|
8
|
+
parentRef: RefObject<HTMLElement | null>
|
|
9
9
|
formType: FormType
|
|
10
10
|
height: number
|
|
11
11
|
onClick?(): void
|
|
@@ -14,7 +14,7 @@ export interface TokenListProps {
|
|
|
14
14
|
export interface VirtualizedTokenListProps {
|
|
15
15
|
account: Account
|
|
16
16
|
tokens: TokenAmount[]
|
|
17
|
-
scrollElementRef:
|
|
17
|
+
scrollElementRef: RefObject<HTMLElement | null>
|
|
18
18
|
isLoading: boolean
|
|
19
19
|
isBalanceLoading: boolean
|
|
20
20
|
chainId?: number
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { RouteExtended } from '@lifi/sdk'
|
|
2
2
|
import { isGaslessStep } from '@lifi/sdk'
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
LocalGasStationRounded,
|
|
7
|
-
} from '@mui/icons-material'
|
|
3
|
+
import ExpandLess from '@mui/icons-material/ExpandLess'
|
|
4
|
+
import ExpandMore from '@mui/icons-material/ExpandMore'
|
|
5
|
+
import LocalGasStationRounded from '@mui/icons-material/LocalGasStationRounded'
|
|
8
6
|
import type { CardProps } from '@mui/material'
|
|
9
7
|
import { Box, Collapse, Tooltip, Typography } from '@mui/material'
|
|
10
8
|
import { useState } from 'react'
|
package/src/config/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@lifi/widget'
|
|
2
|
-
export const version = '3.
|
|
2
|
+
export const version = '3.19.0-beta.0'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RefObject } from 'react'
|
|
2
2
|
import { useLayoutEffect } from 'react'
|
|
3
3
|
import { getRelativeContainer } from '../utils/elements.js'
|
|
4
4
|
import { useDefaultElementId } from './useDefaultElementId.js'
|
|
@@ -8,7 +8,7 @@ import { useDefaultElementId } from './useDefaultElementId.js'
|
|
|
8
8
|
// CSS changes in those components can have implications for the functionality in this hook
|
|
9
9
|
|
|
10
10
|
export const useSetContentHeight = (
|
|
11
|
-
ref:
|
|
11
|
+
ref: RefObject<HTMLElement | null>,
|
|
12
12
|
dependency?: unknown
|
|
13
13
|
) => {
|
|
14
14
|
const elementId = useDefaultElementId()
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { ToolsResponse } from '@lifi/sdk'
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
IndeterminateCheckBoxOutlined,
|
|
7
|
-
} from '@mui/icons-material'
|
|
2
|
+
import Check from '@mui/icons-material/Check'
|
|
3
|
+
import CheckBoxOutlineBlankOutlined from '@mui/icons-material/CheckBoxOutlineBlankOutlined'
|
|
4
|
+
import CheckBoxOutlined from '@mui/icons-material/CheckBoxOutlined'
|
|
5
|
+
import IndeterminateCheckBoxOutlined from '@mui/icons-material/IndeterminateCheckBoxOutlined'
|
|
8
6
|
import {
|
|
9
7
|
Avatar,
|
|
10
8
|
IconButton,
|