@lifi/widget 3.0.0-alpha.11 → 3.0.0-alpha.13
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.tsx +30 -14
- package/AppDrawer.tsx +82 -91
- package/AppDrawerContext.ts +9 -0
- package/_cjs/App.js +16 -3
- package/_cjs/App.js.map +1 -1
- package/_cjs/AppDrawer.d.ts +4 -2
- package/_cjs/AppDrawer.js +20 -18
- package/_cjs/AppDrawer.js.map +1 -1
- package/_cjs/AppDrawerContext.d.ts +6 -0
- package/_cjs/AppDrawerContext.js +8 -0
- package/_cjs/AppDrawerContext.js.map +1 -0
- package/_cjs/components/ActiveTransactions/ActiveTransactions.js +1 -3
- package/_cjs/components/ActiveTransactions/ActiveTransactions.js.map +1 -1
- package/_cjs/components/AmountInput/AmountInput.js +9 -10
- package/_cjs/components/AmountInput/AmountInput.js.map +1 -1
- package/_cjs/components/AmountInput/AmountInput.style.d.ts +3 -0
- package/_cjs/components/AmountInput/AmountInput.style.js +9 -4
- package/_cjs/components/AmountInput/AmountInput.style.js.map +1 -1
- package/_cjs/components/AmountInput/AmountInputAdornment.style.d.ts +4 -1
- package/_cjs/components/AmountInput/AmountInputAdornment.style.js +7 -2
- package/_cjs/components/AmountInput/AmountInputAdornment.style.js.map +1 -1
- package/_cjs/components/AmountInput/AmountInputEndAdornment.js +2 -2
- package/_cjs/components/AmountInput/AmountInputEndAdornment.js.map +1 -1
- package/_cjs/components/AmountInput/AmountInputStartAdornment.js +2 -2
- package/_cjs/components/AmountInput/AmountInputStartAdornment.js.map +1 -1
- package/_cjs/components/AmountInput/{FormPriceHelperText.d.ts → PriceFormHelperText.d.ts} +2 -2
- package/_cjs/components/AmountInput/{FormPriceHelperText.js → PriceFormHelperText.js} +16 -10
- package/_cjs/components/AmountInput/PriceFormHelperText.js.map +1 -0
- package/_cjs/components/BaseTransactionButton/BaseTransactionButton.js +6 -6
- package/_cjs/components/BaseTransactionButton/BaseTransactionButton.js.map +1 -1
- package/_cjs/components/Card/CardHeader.js +6 -5
- package/_cjs/components/Card/CardHeader.js.map +1 -1
- package/_cjs/components/Card/CardTitle.js +3 -4
- package/_cjs/components/Card/CardTitle.js.map +1 -1
- package/_cjs/components/ChainSelect/ChainSelect.js +7 -5
- package/_cjs/components/ChainSelect/ChainSelect.js.map +1 -1
- package/_cjs/components/ChainSelect/useChainSelect.d.ts +1 -1
- package/_cjs/components/ChainSelect/useChainSelect.js +3 -3
- package/_cjs/components/ChainSelect/useChainSelect.js.map +1 -1
- package/_cjs/components/Header/CloseDrawerButton.d.ts +1 -0
- package/_cjs/components/Header/CloseDrawerButton.js +16 -0
- package/_cjs/components/Header/CloseDrawerButton.js.map +1 -0
- package/_cjs/components/Header/EVMDisconnectIconButton.d.ts +4 -0
- package/_cjs/components/Header/EVMDisconnectIconButton.js +16 -0
- package/_cjs/components/Header/EVMDisconnectIconButton.js.map +1 -0
- package/_cjs/components/Header/Header.js +1 -6
- package/_cjs/components/Header/Header.js.map +1 -1
- package/_cjs/components/Header/Header.style.js +10 -4
- package/_cjs/components/Header/Header.style.js.map +1 -1
- package/_cjs/components/Header/NavigationHeader.d.ts +0 -1
- package/_cjs/components/Header/NavigationHeader.js +7 -11
- package/_cjs/components/Header/NavigationHeader.js.map +1 -1
- package/_cjs/components/Header/SVMDisconnectIconButton.d.ts +1 -0
- package/_cjs/components/Header/SVMDisconnectIconButton.js +16 -0
- package/_cjs/components/Header/SVMDisconnectIconButton.js.map +1 -0
- package/_cjs/components/Header/SettingsButton.style.js +18 -21
- package/_cjs/components/Header/SettingsButton.style.js.map +1 -1
- package/_cjs/components/Header/TransactionHistoryButton.d.ts +1 -0
- package/_cjs/components/Header/TransactionHistoryButton.js +17 -0
- package/_cjs/components/Header/TransactionHistoryButton.js.map +1 -0
- package/_cjs/components/Header/WalletHeader.d.ts +1 -0
- package/_cjs/components/Header/WalletHeader.js +25 -9
- package/_cjs/components/Header/WalletHeader.js.map +1 -1
- package/_cjs/components/Header/WalletMenu.js +8 -24
- package/_cjs/components/Header/WalletMenu.js.map +1 -1
- package/_cjs/components/Insurance/InsuranceCard.js +1 -8
- package/_cjs/components/Insurance/InsuranceCard.js.map +1 -1
- package/_cjs/components/PageContainer.d.ts +9 -0
- package/_cjs/components/PageContainer.js +13 -0
- package/_cjs/components/PageContainer.js.map +1 -0
- package/_cjs/components/ReverseTokensButton/ReverseTokensButton.js +10 -9
- package/_cjs/components/ReverseTokensButton/ReverseTokensButton.js.map +1 -1
- package/_cjs/components/ReverseTokensButton/ReverseTokensButton.style.js +3 -0
- package/_cjs/components/ReverseTokensButton/ReverseTokensButton.style.js.map +1 -1
- package/_cjs/components/RouteCard/RouteCard.js +6 -6
- package/_cjs/components/RouteCard/RouteCard.js.map +1 -1
- package/_cjs/components/RouteCard/RouteCard.style.d.ts +3 -0
- package/_cjs/components/RouteCard/RouteCard.style.js +7 -2
- package/_cjs/components/RouteCard/RouteCard.style.js.map +1 -1
- package/_cjs/components/RouteCard/RouteCardEssentials.js +12 -10
- package/_cjs/components/RouteCard/RouteCardEssentials.js.map +1 -1
- package/_cjs/components/RouteCard/RouteCardEssentialsExpanded.d.ts +3 -0
- package/_cjs/components/RouteCard/RouteCardEssentialsExpanded.js +32 -0
- package/_cjs/components/RouteCard/RouteCardEssentialsExpanded.js.map +1 -0
- package/_cjs/components/RouteCard/RouteCardSkeleton.js +2 -1
- package/_cjs/components/RouteCard/RouteCardSkeleton.js.map +1 -1
- package/_cjs/components/RouteCard/types.d.ts +6 -2
- package/_cjs/components/Routes/Routes.js +1 -1
- package/_cjs/components/Routes/Routes.js.map +1 -1
- package/_cjs/components/Routes/RoutesExpanded.js +2 -1
- package/_cjs/components/Routes/RoutesExpanded.js.map +1 -1
- package/_cjs/components/SelectTokenButton/SelectTokenButton.js +8 -2
- package/_cjs/components/SelectTokenButton/SelectTokenButton.js.map +1 -1
- package/_cjs/components/SelectTokenButton/SelectTokenButton.style.js +6 -7
- package/_cjs/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
- package/_cjs/components/SmallAvatar.js +4 -4
- package/_cjs/components/Step/CircularProgress.js +5 -5
- package/_cjs/components/Step/CircularProgress.js.map +1 -1
- package/_cjs/components/Step/CircularProgress.style.js +3 -4
- package/_cjs/components/Step/CircularProgress.style.js.map +1 -1
- package/_cjs/components/Step/DestinationWalletAddress.js +2 -2
- package/_cjs/components/Step/DestinationWalletAddress.js.map +1 -1
- package/_cjs/components/Step/Step.js +1 -2
- package/_cjs/components/Step/Step.js.map +1 -1
- package/_cjs/components/Step/StepProcess.js +1 -1
- package/_cjs/components/Step/StepProcess.js.map +1 -1
- package/_cjs/components/Step/StepTimer.js +9 -8
- package/_cjs/components/Step/StepTimer.js.map +1 -1
- package/_cjs/components/StepActions/StepActions.js +15 -18
- package/_cjs/components/StepActions/StepActions.js.map +1 -1
- package/_cjs/components/StepActions/StepActions.style.d.ts +8 -1
- package/_cjs/components/StepActions/StepActions.style.js +27 -17
- package/_cjs/components/StepActions/StepActions.style.js.map +1 -1
- package/_cjs/components/{Step/GasStepProcess.d.ts → StepActions/StepFeeBreakdown.d.ts} +1 -1
- package/_cjs/components/StepActions/StepFeeBreakdown.js +45 -0
- package/_cjs/components/StepActions/StepFeeBreakdown.js.map +1 -0
- package/_cjs/components/StepActions/StepFees.d.ts +6 -0
- package/_cjs/components/StepActions/StepFees.js +28 -0
- package/_cjs/components/StepActions/StepFees.js.map +1 -0
- package/_cjs/components/Token/Token.d.ts +6 -5
- package/_cjs/components/Token/Token.js +31 -15
- package/_cjs/components/Token/Token.js.map +1 -1
- package/_cjs/components/Token/Token.style.d.ts +1 -4
- package/_cjs/components/Token/Token.style.js +6 -21
- package/_cjs/components/Token/Token.style.js.map +1 -1
- package/_cjs/components/TokenAvatar/TokenAvatar.d.ts +3 -0
- package/_cjs/components/TokenAvatar/TokenAvatar.js +7 -3
- package/_cjs/components/TokenAvatar/TokenAvatar.js.map +1 -1
- package/_cjs/components/TokenAvatar/TokenAvatar.style.js +23 -13
- package/_cjs/components/TokenAvatar/TokenAvatar.style.js.map +1 -1
- package/_cjs/components/TokenList/TokenList.js +3 -4
- package/_cjs/components/TokenList/TokenList.js.map +1 -1
- package/_cjs/components/TokenList/TokenList.style.js +7 -5
- package/_cjs/components/TokenList/TokenList.style.js.map +1 -1
- package/_cjs/components/TokenList/TokenListItem.js +7 -4
- package/_cjs/components/TokenList/TokenListItem.js.map +1 -1
- package/_cjs/components/TokenList/VirtualizedTokenList.js +4 -2
- package/_cjs/components/TokenList/VirtualizedTokenList.js.map +1 -1
- package/_cjs/components/TokenList/types.d.ts +3 -4
- package/_cjs/components/TokenList/useTokenSelect.js +6 -4
- package/_cjs/components/TokenList/useTokenSelect.js.map +1 -1
- package/_cjs/config/queryClient.js +0 -1
- package/_cjs/config/queryClient.js.map +1 -1
- package/_cjs/config/theme.js +2 -9
- package/_cjs/config/theme.js.map +1 -1
- package/_cjs/config/version.d.ts +1 -1
- package/_cjs/config/version.js +1 -1
- package/_cjs/config/walletConnect.d.ts +1 -0
- package/_cjs/config/walletConnect.js +5 -0
- package/_cjs/config/walletConnect.js.map +1 -0
- package/_cjs/hooks/useAccount.d.ts +4 -1
- package/_cjs/hooks/useAccount.js +5 -16
- package/_cjs/hooks/useAccount.js.map +1 -1
- package/_cjs/hooks/useAvailableChains.js +12 -6
- package/_cjs/hooks/useAvailableChains.js.map +1 -1
- package/_cjs/hooks/useChains.d.ts +2 -1
- package/_cjs/hooks/useChains.js +7 -3
- package/_cjs/hooks/useChains.js.map +1 -1
- package/_cjs/hooks/useDebouncedWatch.d.ts +1 -2
- package/_cjs/hooks/useDebouncedWatch.js +1 -1
- package/_cjs/hooks/useDebouncedWatch.js.map +1 -1
- package/_cjs/hooks/useFromTokenSufficiency.js +8 -7
- package/_cjs/hooks/useFromTokenSufficiency.js.map +1 -1
- package/_cjs/hooks/useGasRecommendation.d.ts +1 -1
- package/_cjs/hooks/useGasRecommendation.js.map +1 -1
- package/_cjs/hooks/useGasRefuel.js +2 -2
- package/_cjs/hooks/useGasRefuel.js.map +1 -1
- package/_cjs/hooks/useGasSufficiency.js +7 -6
- package/_cjs/hooks/useGasSufficiency.js.map +1 -1
- package/_cjs/hooks/useRouteExecution.js +5 -5
- package/_cjs/hooks/useRouteExecution.js.map +1 -1
- package/_cjs/hooks/useRoutes.d.ts +1 -1
- package/_cjs/hooks/useRoutes.js +22 -15
- package/_cjs/hooks/useRoutes.js.map +1 -1
- package/_cjs/hooks/useTokenAddressBalance.d.ts +2 -1
- package/_cjs/hooks/useTokenAddressBalance.js +2 -1
- package/_cjs/hooks/useTokenAddressBalance.js.map +1 -1
- package/_cjs/hooks/useTokenBalance.d.ts +1 -1
- package/_cjs/hooks/useTokenBalance.js +8 -19
- package/_cjs/hooks/useTokenBalance.js.map +1 -1
- package/_cjs/hooks/useTokenBalances.d.ts +2 -1
- package/_cjs/hooks/useTokenBalances.js +1 -0
- package/_cjs/hooks/useTokenBalances.js.map +1 -1
- package/_cjs/hooks/useTools.js +3 -2
- package/_cjs/hooks/useTools.js.map +1 -1
- package/_cjs/hooks/useTransactionHistory.d.ts +2 -2
- package/_cjs/hooks/useTransactionHistory.js +32 -23
- package/_cjs/hooks/useTransactionHistory.js.map +1 -1
- package/_cjs/i18n/en.json +10 -6
- package/_cjs/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +3 -4
- package/_cjs/pages/ActiveTransactionsPage/ActiveTransactionsPage.js.map +1 -1
- package/_cjs/pages/LanguagesPage/LanguagesPage.js +2 -1
- package/_cjs/pages/LanguagesPage/LanguagesPage.js.map +1 -1
- package/_cjs/pages/MainPage/MainPage.js +2 -2
- package/_cjs/pages/MainPage/MainPage.js.map +1 -1
- package/_cjs/pages/RoutesPage/RoutesPage.js +2 -2
- package/_cjs/pages/RoutesPage/RoutesPage.js.map +1 -1
- package/_cjs/pages/SelectChainPage/SelectChainPage.js +2 -1
- package/_cjs/pages/SelectChainPage/SelectChainPage.js.map +1 -1
- package/_cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +2 -1
- package/_cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js.map +1 -1
- package/_cjs/pages/SelectNativeTokenPage/SelectNativeTokenPage.js +2 -1
- package/_cjs/pages/SelectNativeTokenPage/SelectNativeTokenPage.js.map +1 -1
- package/_cjs/pages/SelectTokenPage/SearchTokenInput.js +2 -2
- package/_cjs/pages/SelectTokenPage/SearchTokenInput.js.map +1 -1
- package/_cjs/pages/SelectTokenPage/SelectTokenPage.js +2 -1
- package/_cjs/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
- package/_cjs/pages/SelectWalletPage/SelectWalletPage.js +2 -1
- package/_cjs/pages/SelectWalletPage/SelectWalletPage.js.map +1 -1
- package/_cjs/pages/SettingsPage/ResetSettingsButton.js +1 -1
- package/_cjs/pages/SettingsPage/ResetSettingsButton.js.map +1 -1
- package/_cjs/pages/SettingsPage/SettingsCard/SettingCard.js +1 -1
- package/_cjs/pages/SettingsPage/SettingsCard/SettingCard.style.js +7 -6
- package/_cjs/pages/SettingsPage/SettingsCard/SettingCard.style.js.map +1 -1
- package/_cjs/pages/SettingsPage/SettingsPage.js +6 -6
- package/_cjs/pages/SettingsPage/SettingsPage.js.map +1 -1
- package/_cjs/pages/SettingsPage/SlippageSettings/SlippageSettings.js +6 -7
- package/_cjs/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/_cjs/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +1 -1
- package/_cjs/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
- package/_cjs/pages/TransactionDetailsPage/TransactionDetailsPage.js +2 -2
- package/_cjs/pages/TransactionDetailsPage/TransactionDetailsPage.js.map +1 -1
- package/_cjs/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js +6 -14
- package/_cjs/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js.map +1 -1
- package/_cjs/pages/TransactionHistoryPage/TransactionHistoryItem.js +1 -1
- package/_cjs/pages/TransactionHistoryPage/TransactionHistoryItem.js.map +1 -1
- package/_cjs/pages/TransactionHistoryPage/TransactionHistoryPage.js +3 -2
- package/_cjs/pages/TransactionHistoryPage/TransactionHistoryPage.js.map +1 -1
- package/_cjs/pages/TransactionHistoryPage/TransactionHistorySkeleton.d.ts +1 -1
- package/_cjs/pages/TransactionHistoryPage/TransactionHistorySkeleton.js +4 -9
- package/_cjs/pages/TransactionHistoryPage/TransactionHistorySkeleton.js.map +1 -1
- package/_cjs/pages/TransactionPage/StatusBottomSheet.js +13 -9
- package/_cjs/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
- package/_cjs/pages/TransactionPage/TransactionPage.js +2 -2
- package/_cjs/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/_cjs/providers/I18nProvider/I18nProvider.js +2 -1
- package/_cjs/providers/I18nProvider/I18nProvider.js.map +1 -1
- package/_cjs/providers/WalletProvider/EVMBaseProvider.d.ts +2 -0
- package/_cjs/providers/WalletProvider/EVMBaseProvider.js +91 -0
- package/_cjs/providers/WalletProvider/EVMBaseProvider.js.map +1 -0
- package/_cjs/providers/WalletProvider/EVMExternalContext.d.ts +2 -0
- package/_cjs/providers/WalletProvider/EVMExternalContext.js +6 -0
- package/_cjs/providers/WalletProvider/EVMExternalContext.js.map +1 -0
- package/_cjs/providers/WalletProvider/EVMProvider.d.ts +1 -1
- package/_cjs/providers/WalletProvider/EVMProvider.js +13 -70
- package/_cjs/providers/WalletProvider/EVMProvider.js.map +1 -1
- package/_cjs/providers/WalletProvider/SDKProviders.js +15 -7
- package/_cjs/providers/WalletProvider/SDKProviders.js.map +1 -1
- package/_cjs/providers/WalletProvider/SVMBaseProvider.d.ts +2 -0
- package/_cjs/providers/WalletProvider/{SolanaProvider.js → SVMBaseProvider.js} +4 -14
- package/_cjs/providers/WalletProvider/SVMBaseProvider.js.map +1 -0
- package/_cjs/providers/WalletProvider/SVMExternalContext.d.ts +2 -0
- package/_cjs/providers/WalletProvider/SVMExternalContext.js +6 -0
- package/_cjs/providers/WalletProvider/SVMExternalContext.js.map +1 -0
- package/_cjs/providers/WalletProvider/SVMProvider.d.ts +3 -0
- package/_cjs/providers/WalletProvider/SVMProvider.js +23 -0
- package/_cjs/providers/WalletProvider/SVMProvider.js.map +1 -0
- package/_cjs/providers/WalletProvider/WalletProvider.js +2 -2
- package/_cjs/providers/WalletProvider/WalletProvider.js.map +1 -1
- package/_cjs/providers/WalletProvider/index.d.ts +1 -0
- package/_cjs/providers/WalletProvider/index.js +1 -0
- package/_cjs/providers/WalletProvider/index.js.map +1 -1
- package/_cjs/providers/WalletProvider/useHasExternalWalletProvider.d.ts +7 -0
- package/_cjs/providers/WalletProvider/useHasExternalWalletProvider.js +27 -0
- package/_cjs/providers/WalletProvider/useHasExternalWalletProvider.js.map +1 -0
- package/_cjs/providers/WidgetProvider/WidgetProvider.js.map +1 -1
- package/_cjs/providers/WidgetProvider/index.d.ts +1 -2
- package/_cjs/providers/WidgetProvider/index.js +1 -2
- package/_cjs/providers/WidgetProvider/index.js.map +1 -1
- package/_cjs/stores/StoreProvider.js +3 -3
- package/_cjs/stores/StoreProvider.js.map +1 -1
- package/_cjs/stores/chains/ChainOrderStore.js +19 -16
- package/_cjs/stores/chains/ChainOrderStore.js.map +1 -1
- package/_cjs/stores/chains/createChainOrderStore.js +34 -15
- package/_cjs/stores/chains/createChainOrderStore.js.map +1 -1
- package/_cjs/stores/chains/types.d.ts +11 -4
- package/_cjs/stores/chains/useChainOrder.d.ts +2 -1
- package/_cjs/stores/chains/useChainOrder.js +2 -2
- package/_cjs/stores/chains/useChainOrder.js.map +1 -1
- package/_cjs/stores/form/FormStore.d.ts +1 -1
- package/_cjs/stores/form/FormStore.js +10 -15
- package/_cjs/stores/form/FormStore.js.map +1 -1
- package/_cjs/stores/form/FormUpdater.d.ts +3 -3
- package/_cjs/stores/form/FormUpdater.js +6 -7
- package/_cjs/stores/form/FormUpdater.js.map +1 -1
- package/_cjs/stores/form/URLSearchParamsBuilder.js +3 -2
- package/_cjs/stores/form/URLSearchParamsBuilder.js.map +1 -1
- package/_cjs/stores/form/createFormStore.d.ts +1 -1
- package/_cjs/stores/form/createFormStore.js +121 -115
- package/_cjs/stores/form/createFormStore.js.map +1 -1
- package/_cjs/stores/form/types.d.ts +21 -35
- package/_cjs/stores/form/types.js +1 -16
- package/_cjs/stores/form/types.js.map +1 -1
- package/_cjs/stores/form/useFieldActions.js +9 -10
- package/_cjs/stores/form/useFieldActions.js.map +1 -1
- package/_cjs/stores/form/useFieldController.d.ts +1 -1
- package/_cjs/stores/form/useFieldValues.d.ts +2 -2
- package/_cjs/stores/form/useFieldValues.js +3 -2
- package/_cjs/stores/form/useFieldValues.js.map +1 -1
- package/_cjs/stores/form/useTouchedFields.d.ts +14 -1
- package/_cjs/stores/form/useValidationActions.js +7 -11
- package/_cjs/stores/form/useValidationActions.js.map +1 -1
- package/_cjs/stores/routes/useExecutingRoutesIds.d.ts +1 -1
- package/_cjs/stores/routes/useExecutingRoutesIds.js +5 -2
- package/_cjs/stores/routes/useExecutingRoutesIds.js.map +1 -1
- package/_cjs/stores/settings/useSettingsStore.d.ts +1 -0
- package/_cjs/stores/settings/useSettingsStore.js +3 -2
- package/_cjs/stores/settings/useSettingsStore.js.map +1 -1
- package/_cjs/types/widget.d.ts +26 -23
- package/_cjs/types/widget.js +1 -0
- package/_cjs/types/widget.js.map +1 -1
- package/_cjs/utils/converters.js +12 -6
- package/_cjs/utils/converters.js.map +1 -1
- package/_cjs/utils/fees.d.ts +9 -0
- package/_cjs/{components/RouteCard/utils.js → utils/fees.js} +15 -8
- package/_cjs/utils/fees.js.map +1 -0
- package/_cjs/utils/index.d.ts +2 -0
- package/_cjs/utils/index.js +2 -0
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/item.d.ts +2 -0
- package/_cjs/{providers/WidgetProvider/utils.js → utils/item.js} +1 -1
- package/_cjs/utils/item.js.map +1 -0
- package/_esm/App.js +16 -3
- package/_esm/App.js.map +1 -1
- package/_esm/AppDrawer.d.ts +4 -2
- package/_esm/AppDrawer.js +21 -19
- package/_esm/AppDrawer.js.map +1 -1
- package/_esm/AppDrawerContext.d.ts +6 -0
- package/_esm/AppDrawerContext.js +4 -0
- package/_esm/AppDrawerContext.js.map +1 -0
- package/_esm/components/ActiveTransactions/ActiveTransactions.js +1 -3
- package/_esm/components/ActiveTransactions/ActiveTransactions.js.map +1 -1
- package/_esm/components/AmountInput/AmountInput.js +8 -9
- package/_esm/components/AmountInput/AmountInput.js.map +1 -1
- package/_esm/components/AmountInput/AmountInput.style.d.ts +3 -0
- package/_esm/components/AmountInput/AmountInput.style.js +9 -4
- package/_esm/components/AmountInput/AmountInput.style.js.map +1 -1
- package/_esm/components/AmountInput/AmountInputAdornment.style.d.ts +4 -1
- package/_esm/components/AmountInput/AmountInputAdornment.style.js +7 -2
- package/_esm/components/AmountInput/AmountInputAdornment.style.js.map +1 -1
- package/_esm/components/AmountInput/AmountInputEndAdornment.js +4 -4
- package/_esm/components/AmountInput/AmountInputEndAdornment.js.map +1 -1
- package/_esm/components/AmountInput/AmountInputStartAdornment.js +2 -2
- package/_esm/components/AmountInput/AmountInputStartAdornment.js.map +1 -1
- package/_esm/components/AmountInput/{FormPriceHelperText.d.ts → PriceFormHelperText.d.ts} +2 -2
- package/_esm/components/AmountInput/{FormPriceHelperText.js → PriceFormHelperText.js} +13 -7
- package/_esm/components/AmountInput/PriceFormHelperText.js.map +1 -0
- package/_esm/components/BaseTransactionButton/BaseTransactionButton.js +6 -6
- package/_esm/components/BaseTransactionButton/BaseTransactionButton.js.map +1 -1
- package/_esm/components/Card/CardHeader.js +6 -5
- package/_esm/components/Card/CardHeader.js.map +1 -1
- package/_esm/components/Card/CardTitle.js +3 -4
- package/_esm/components/Card/CardTitle.js.map +1 -1
- package/_esm/components/ChainSelect/ChainSelect.js +8 -6
- package/_esm/components/ChainSelect/ChainSelect.js.map +1 -1
- package/_esm/components/ChainSelect/useChainSelect.d.ts +1 -1
- package/_esm/components/ChainSelect/useChainSelect.js +4 -4
- package/_esm/components/ChainSelect/useChainSelect.js.map +1 -1
- package/_esm/components/Header/CloseDrawerButton.d.ts +1 -0
- package/_esm/components/Header/CloseDrawerButton.js +12 -0
- package/_esm/components/Header/CloseDrawerButton.js.map +1 -0
- package/_esm/components/Header/EVMDisconnectIconButton.d.ts +4 -0
- package/_esm/components/Header/EVMDisconnectIconButton.js +12 -0
- package/_esm/components/Header/EVMDisconnectIconButton.js.map +1 -0
- package/_esm/components/Header/Header.js +1 -6
- package/_esm/components/Header/Header.js.map +1 -1
- package/_esm/components/Header/Header.style.js +10 -4
- package/_esm/components/Header/Header.style.js.map +1 -1
- package/_esm/components/Header/NavigationHeader.d.ts +0 -1
- package/_esm/components/Header/NavigationHeader.js +8 -11
- package/_esm/components/Header/NavigationHeader.js.map +1 -1
- package/_esm/components/Header/SVMDisconnectIconButton.d.ts +1 -0
- package/_esm/components/Header/SVMDisconnectIconButton.js +12 -0
- package/_esm/components/Header/SVMDisconnectIconButton.js.map +1 -0
- package/_esm/components/Header/SettingsButton.style.js +18 -21
- package/_esm/components/Header/SettingsButton.style.js.map +1 -1
- package/_esm/components/Header/TransactionHistoryButton.d.ts +1 -0
- package/_esm/components/Header/TransactionHistoryButton.js +13 -0
- package/_esm/components/Header/TransactionHistoryButton.js.map +1 -0
- package/_esm/components/Header/WalletHeader.d.ts +1 -0
- package/_esm/components/Header/WalletHeader.js +24 -9
- package/_esm/components/Header/WalletHeader.js.map +1 -1
- package/_esm/components/Header/WalletMenu.js +7 -23
- package/_esm/components/Header/WalletMenu.js.map +1 -1
- package/_esm/components/Insurance/InsuranceCard.js +2 -9
- package/_esm/components/Insurance/InsuranceCard.js.map +1 -1
- package/_esm/components/PageContainer.d.ts +9 -0
- package/_esm/components/PageContainer.js +10 -0
- package/_esm/components/PageContainer.js.map +1 -0
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.js +10 -9
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.js.map +1 -1
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.style.js +3 -0
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.style.js.map +1 -1
- package/_esm/components/RouteCard/RouteCard.js +6 -6
- package/_esm/components/RouteCard/RouteCard.js.map +1 -1
- package/_esm/components/RouteCard/RouteCard.style.d.ts +3 -0
- package/_esm/components/RouteCard/RouteCard.style.js +7 -2
- package/_esm/components/RouteCard/RouteCard.style.js.map +1 -1
- package/_esm/components/RouteCard/RouteCardEssentials.js +12 -10
- package/_esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
- package/_esm/components/RouteCard/RouteCardEssentialsExpanded.d.ts +3 -0
- package/_esm/components/RouteCard/RouteCardEssentialsExpanded.js +28 -0
- package/_esm/components/RouteCard/RouteCardEssentialsExpanded.js.map +1 -0
- package/_esm/components/RouteCard/RouteCardSkeleton.js +2 -1
- package/_esm/components/RouteCard/RouteCardSkeleton.js.map +1 -1
- package/_esm/components/RouteCard/types.d.ts +6 -2
- package/_esm/components/Routes/Routes.js +1 -1
- package/_esm/components/Routes/Routes.js.map +1 -1
- package/_esm/components/Routes/RoutesExpanded.js +2 -1
- package/_esm/components/Routes/RoutesExpanded.js.map +1 -1
- package/_esm/components/SelectTokenButton/SelectTokenButton.js +9 -3
- package/_esm/components/SelectTokenButton/SelectTokenButton.js.map +1 -1
- package/_esm/components/SelectTokenButton/SelectTokenButton.style.js +6 -7
- package/_esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
- package/_esm/components/SmallAvatar.js +4 -4
- package/_esm/components/Step/CircularProgress.js +5 -5
- package/_esm/components/Step/CircularProgress.js.map +1 -1
- package/_esm/components/Step/CircularProgress.style.js +3 -4
- package/_esm/components/Step/CircularProgress.style.js.map +1 -1
- package/_esm/components/Step/DestinationWalletAddress.js +2 -2
- package/_esm/components/Step/DestinationWalletAddress.js.map +1 -1
- package/_esm/components/Step/Step.js +1 -2
- package/_esm/components/Step/Step.js.map +1 -1
- package/_esm/components/Step/StepProcess.js +1 -1
- package/_esm/components/Step/StepProcess.js.map +1 -1
- package/_esm/components/Step/StepTimer.js +9 -8
- package/_esm/components/Step/StepTimer.js.map +1 -1
- package/_esm/components/StepActions/StepActions.js +16 -19
- package/_esm/components/StepActions/StepActions.js.map +1 -1
- package/_esm/components/StepActions/StepActions.style.d.ts +8 -1
- package/_esm/components/StepActions/StepActions.style.js +27 -17
- package/_esm/components/StepActions/StepActions.style.js.map +1 -1
- package/_esm/components/{Step/GasStepProcess.d.ts → StepActions/StepFeeBreakdown.d.ts} +1 -1
- package/_esm/components/StepActions/StepFeeBreakdown.js +41 -0
- package/_esm/components/StepActions/StepFeeBreakdown.js.map +1 -0
- package/_esm/components/StepActions/StepFees.d.ts +6 -0
- package/_esm/components/StepActions/StepFees.js +24 -0
- package/_esm/components/StepActions/StepFees.js.map +1 -0
- package/_esm/components/Token/Token.d.ts +6 -5
- package/_esm/components/Token/Token.js +31 -16
- package/_esm/components/Token/Token.js.map +1 -1
- package/_esm/components/Token/Token.style.d.ts +1 -4
- package/_esm/components/Token/Token.style.js +6 -21
- package/_esm/components/Token/Token.style.js.map +1 -1
- package/_esm/components/TokenAvatar/TokenAvatar.d.ts +3 -0
- package/_esm/components/TokenAvatar/TokenAvatar.js +5 -2
- package/_esm/components/TokenAvatar/TokenAvatar.js.map +1 -1
- package/_esm/components/TokenAvatar/TokenAvatar.style.js +23 -13
- package/_esm/components/TokenAvatar/TokenAvatar.style.js.map +1 -1
- package/_esm/components/TokenList/TokenList.js +4 -5
- package/_esm/components/TokenList/TokenList.js.map +1 -1
- package/_esm/components/TokenList/TokenList.style.js +7 -5
- package/_esm/components/TokenList/TokenList.style.js.map +1 -1
- package/_esm/components/TokenList/TokenListItem.js +7 -4
- package/_esm/components/TokenList/TokenListItem.js.map +1 -1
- package/_esm/components/TokenList/VirtualizedTokenList.js +4 -2
- package/_esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
- package/_esm/components/TokenList/types.d.ts +3 -4
- package/_esm/components/TokenList/useTokenSelect.js +7 -5
- package/_esm/components/TokenList/useTokenSelect.js.map +1 -1
- package/_esm/config/queryClient.js +0 -1
- package/_esm/config/queryClient.js.map +1 -1
- package/_esm/config/theme.js +2 -9
- package/_esm/config/theme.js.map +1 -1
- package/_esm/config/version.d.ts +1 -1
- package/_esm/config/version.js +1 -1
- package/_esm/config/walletConnect.d.ts +1 -0
- package/_esm/config/walletConnect.js +2 -0
- package/_esm/config/walletConnect.js.map +1 -0
- package/_esm/hooks/useAccount.d.ts +4 -1
- package/_esm/hooks/useAccount.js +5 -15
- package/_esm/hooks/useAccount.js.map +1 -1
- package/_esm/hooks/useAvailableChains.js +12 -6
- package/_esm/hooks/useAvailableChains.js.map +1 -1
- package/_esm/hooks/useChains.d.ts +2 -1
- package/_esm/hooks/useChains.js +8 -4
- package/_esm/hooks/useChains.js.map +1 -1
- package/_esm/hooks/useDebouncedWatch.d.ts +1 -2
- package/_esm/hooks/useDebouncedWatch.js +1 -1
- package/_esm/hooks/useDebouncedWatch.js.map +1 -1
- package/_esm/hooks/useFromTokenSufficiency.js +8 -7
- package/_esm/hooks/useFromTokenSufficiency.js.map +1 -1
- package/_esm/hooks/useGasRecommendation.d.ts +1 -1
- package/_esm/hooks/useGasRecommendation.js.map +1 -1
- package/_esm/hooks/useGasRefuel.js +2 -2
- package/_esm/hooks/useGasRefuel.js.map +1 -1
- package/_esm/hooks/useGasSufficiency.js +7 -6
- package/_esm/hooks/useGasSufficiency.js.map +1 -1
- package/_esm/hooks/useRouteExecution.js +5 -5
- package/_esm/hooks/useRouteExecution.js.map +1 -1
- package/_esm/hooks/useRoutes.d.ts +1 -1
- package/_esm/hooks/useRoutes.js +23 -16
- package/_esm/hooks/useRoutes.js.map +1 -1
- package/_esm/hooks/useTokenAddressBalance.d.ts +2 -1
- package/_esm/hooks/useTokenAddressBalance.js +2 -1
- package/_esm/hooks/useTokenAddressBalance.js.map +1 -1
- package/_esm/hooks/useTokenBalance.d.ts +1 -1
- package/_esm/hooks/useTokenBalance.js +8 -19
- package/_esm/hooks/useTokenBalance.js.map +1 -1
- package/_esm/hooks/useTokenBalances.d.ts +2 -1
- package/_esm/hooks/useTokenBalances.js +1 -0
- package/_esm/hooks/useTokenBalances.js.map +1 -1
- package/_esm/hooks/useTools.js +2 -1
- package/_esm/hooks/useTools.js.map +1 -1
- package/_esm/hooks/useTransactionHistory.d.ts +2 -2
- package/_esm/hooks/useTransactionHistory.js +33 -24
- package/_esm/hooks/useTransactionHistory.js.map +1 -1
- package/_esm/i18n/en.json +10 -6
- package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +4 -5
- package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js.map +1 -1
- package/_esm/pages/LanguagesPage/LanguagesPage.js +3 -2
- package/_esm/pages/LanguagesPage/LanguagesPage.js.map +1 -1
- package/_esm/pages/MainPage/MainPage.js +2 -2
- package/_esm/pages/MainPage/MainPage.js.map +1 -1
- package/_esm/pages/RoutesPage/RoutesPage.js +2 -2
- package/_esm/pages/RoutesPage/RoutesPage.js.map +1 -1
- package/_esm/pages/SelectChainPage/SelectChainPage.js +3 -2
- package/_esm/pages/SelectChainPage/SelectChainPage.js.map +1 -1
- package/_esm/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +3 -2
- package/_esm/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js.map +1 -1
- package/_esm/pages/SelectNativeTokenPage/SelectNativeTokenPage.js +3 -2
- package/_esm/pages/SelectNativeTokenPage/SelectNativeTokenPage.js.map +1 -1
- package/_esm/pages/SelectTokenPage/SearchTokenInput.js +2 -2
- package/_esm/pages/SelectTokenPage/SearchTokenInput.js.map +1 -1
- package/_esm/pages/SelectTokenPage/SelectTokenPage.js +3 -2
- package/_esm/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
- package/_esm/pages/SelectWalletPage/SelectWalletPage.js +3 -2
- package/_esm/pages/SelectWalletPage/SelectWalletPage.js.map +1 -1
- package/_esm/pages/SettingsPage/ResetSettingsButton.js +1 -1
- package/_esm/pages/SettingsPage/ResetSettingsButton.js.map +1 -1
- package/_esm/pages/SettingsPage/SettingsCard/SettingCard.js +1 -1
- package/_esm/pages/SettingsPage/SettingsCard/SettingCard.style.js +7 -6
- package/_esm/pages/SettingsPage/SettingsCard/SettingCard.style.js.map +1 -1
- package/_esm/pages/SettingsPage/SettingsPage.js +6 -6
- package/_esm/pages/SettingsPage/SettingsPage.js.map +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +7 -8
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +2 -2
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.js.map +1 -1
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js +7 -15
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js.map +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryItem.js +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryItem.js.map +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryPage.js +5 -4
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryPage.js.map +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.d.ts +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js +3 -8
- package/_esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js.map +1 -1
- package/_esm/pages/TransactionPage/StatusBottomSheet.js +13 -9
- package/_esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
- package/_esm/pages/TransactionPage/TransactionPage.js +2 -2
- package/_esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/_esm/providers/I18nProvider/I18nProvider.js +3 -2
- package/_esm/providers/I18nProvider/I18nProvider.js.map +1 -1
- package/_esm/providers/WalletProvider/EVMBaseProvider.d.ts +2 -0
- package/_esm/providers/WalletProvider/EVMBaseProvider.js +87 -0
- package/_esm/providers/WalletProvider/EVMBaseProvider.js.map +1 -0
- package/_esm/providers/WalletProvider/EVMExternalContext.d.ts +2 -0
- package/_esm/providers/WalletProvider/EVMExternalContext.js +3 -0
- package/_esm/providers/WalletProvider/EVMExternalContext.js.map +1 -0
- package/_esm/providers/WalletProvider/EVMProvider.d.ts +1 -1
- package/_esm/providers/WalletProvider/EVMProvider.js +13 -70
- package/_esm/providers/WalletProvider/EVMProvider.js.map +1 -1
- package/_esm/providers/WalletProvider/SDKProviders.js +15 -7
- package/_esm/providers/WalletProvider/SDKProviders.js.map +1 -1
- package/_esm/providers/WalletProvider/SVMBaseProvider.d.ts +2 -0
- package/_esm/providers/WalletProvider/{SolanaProvider.js → SVMBaseProvider.js} +3 -12
- package/_esm/providers/WalletProvider/SVMBaseProvider.js.map +1 -0
- package/_esm/providers/WalletProvider/SVMExternalContext.d.ts +2 -0
- package/_esm/providers/WalletProvider/SVMExternalContext.js +3 -0
- package/_esm/providers/WalletProvider/SVMExternalContext.js.map +1 -0
- package/_esm/providers/WalletProvider/SVMProvider.d.ts +3 -0
- package/_esm/providers/WalletProvider/SVMProvider.js +18 -0
- package/_esm/providers/WalletProvider/SVMProvider.js.map +1 -0
- package/_esm/providers/WalletProvider/WalletProvider.js +2 -2
- package/_esm/providers/WalletProvider/WalletProvider.js.map +1 -1
- package/_esm/providers/WalletProvider/index.d.ts +1 -0
- package/_esm/providers/WalletProvider/index.js +1 -0
- package/_esm/providers/WalletProvider/index.js.map +1 -1
- package/_esm/providers/WalletProvider/useHasExternalWalletProvider.d.ts +7 -0
- package/_esm/providers/WalletProvider/useHasExternalWalletProvider.js +23 -0
- package/_esm/providers/WalletProvider/useHasExternalWalletProvider.js.map +1 -0
- package/_esm/providers/WidgetProvider/WidgetProvider.js.map +1 -1
- package/_esm/providers/WidgetProvider/index.d.ts +1 -2
- package/_esm/providers/WidgetProvider/index.js +1 -2
- package/_esm/providers/WidgetProvider/index.js.map +1 -1
- package/_esm/stores/StoreProvider.js +3 -3
- package/_esm/stores/StoreProvider.js.map +1 -1
- package/_esm/stores/chains/ChainOrderStore.js +18 -15
- package/_esm/stores/chains/ChainOrderStore.js.map +1 -1
- package/_esm/stores/chains/createChainOrderStore.js +34 -15
- package/_esm/stores/chains/createChainOrderStore.js.map +1 -1
- package/_esm/stores/chains/types.d.ts +11 -4
- package/_esm/stores/chains/useChainOrder.d.ts +2 -1
- package/_esm/stores/chains/useChainOrder.js +2 -2
- package/_esm/stores/chains/useChainOrder.js.map +1 -1
- package/_esm/stores/form/FormStore.d.ts +1 -1
- package/_esm/stores/form/FormStore.js +12 -17
- package/_esm/stores/form/FormStore.js.map +1 -1
- package/_esm/stores/form/FormUpdater.d.ts +3 -3
- package/_esm/stores/form/FormUpdater.js +5 -6
- package/_esm/stores/form/FormUpdater.js.map +1 -1
- package/_esm/stores/form/URLSearchParamsBuilder.js +3 -2
- package/_esm/stores/form/URLSearchParamsBuilder.js.map +1 -1
- package/_esm/stores/form/createFormStore.d.ts +1 -1
- package/_esm/stores/form/createFormStore.js +121 -115
- package/_esm/stores/form/createFormStore.js.map +1 -1
- package/_esm/stores/form/types.d.ts +21 -35
- package/_esm/stores/form/types.js +0 -15
- package/_esm/stores/form/types.js.map +1 -1
- package/_esm/stores/form/useFieldActions.js +9 -10
- package/_esm/stores/form/useFieldActions.js.map +1 -1
- package/_esm/stores/form/useFieldController.d.ts +1 -1
- package/_esm/stores/form/useFieldValues.d.ts +2 -2
- package/_esm/stores/form/useFieldValues.js +3 -2
- package/_esm/stores/form/useFieldValues.js.map +1 -1
- package/_esm/stores/form/useTouchedFields.d.ts +14 -1
- package/_esm/stores/form/useValidationActions.js +7 -11
- package/_esm/stores/form/useValidationActions.js.map +1 -1
- package/_esm/stores/routes/useExecutingRoutesIds.d.ts +1 -1
- package/_esm/stores/routes/useExecutingRoutesIds.js +5 -2
- package/_esm/stores/routes/useExecutingRoutesIds.js.map +1 -1
- package/_esm/stores/settings/useSettingsStore.d.ts +1 -0
- package/_esm/stores/settings/useSettingsStore.js +2 -1
- package/_esm/stores/settings/useSettingsStore.js.map +1 -1
- package/_esm/types/widget.d.ts +26 -23
- package/_esm/types/widget.js +1 -0
- package/_esm/types/widget.js.map +1 -1
- package/_esm/utils/converters.js +12 -6
- package/_esm/utils/converters.js.map +1 -1
- package/_esm/utils/fees.d.ts +9 -0
- package/_esm/{components/RouteCard/utils.js → utils/fees.js} +13 -7
- package/_esm/utils/fees.js.map +1 -0
- package/_esm/utils/index.d.ts +2 -0
- package/_esm/utils/index.js +2 -0
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/item.d.ts +2 -0
- package/_esm/{providers/WidgetProvider/utils.js → utils/item.js} +1 -1
- package/_esm/utils/item.js.map +1 -0
- package/components/ActiveTransactions/ActiveTransactions.tsx +1 -3
- package/components/AmountInput/AmountInput.style.tsx +10 -4
- package/components/AmountInput/AmountInput.tsx +33 -28
- package/components/AmountInput/AmountInputAdornment.style.tsx +8 -2
- package/components/AmountInput/AmountInputEndAdornment.tsx +5 -10
- package/components/AmountInput/AmountInputStartAdornment.tsx +3 -3
- package/components/AmountInput/{FormPriceHelperText.tsx → PriceFormHelperText.tsx} +14 -14
- package/components/BaseTransactionButton/BaseTransactionButton.tsx +6 -6
- package/components/Card/CardHeader.tsx +6 -5
- package/components/Card/CardTitle.tsx +3 -4
- package/components/ChainSelect/ChainSelect.tsx +8 -6
- package/components/ChainSelect/useChainSelect.ts +5 -5
- package/components/Header/CloseDrawerButton.tsx +18 -0
- package/components/Header/EVMDisconnectIconButton.tsx +24 -0
- package/components/Header/Header.style.ts +10 -4
- package/components/Header/Header.tsx +1 -8
- package/components/Header/NavigationHeader.tsx +13 -30
- package/components/Header/SVMDisconnectIconButton.tsx +19 -0
- package/components/Header/SettingsButton.style.tsx +18 -22
- package/components/Header/TransactionHistoryButton.tsx +23 -0
- package/components/Header/WalletHeader.tsx +36 -8
- package/components/Header/WalletMenu.tsx +67 -99
- package/components/Insurance/InsuranceCard.tsx +4 -22
- package/components/PageContainer.ts +18 -0
- package/components/ReverseTokensButton/ReverseTokensButton.style.tsx +3 -0
- package/components/ReverseTokensButton/ReverseTokensButton.tsx +20 -10
- package/components/RouteCard/RouteCard.style.ts +8 -2
- package/components/RouteCard/RouteCard.tsx +34 -29
- package/components/RouteCard/RouteCardEssentials.tsx +37 -88
- package/components/RouteCard/RouteCardEssentialsExpanded.tsx +127 -0
- package/components/RouteCard/RouteCardSkeleton.tsx +3 -20
- package/components/RouteCard/types.ts +7 -2
- package/components/Routes/Routes.tsx +1 -1
- package/components/Routes/RoutesExpanded.tsx +22 -25
- package/components/SelectTokenButton/SelectTokenButton.style.tsx +6 -7
- package/components/SelectTokenButton/SelectTokenButton.tsx +19 -7
- package/components/SmallAvatar.tsx +4 -4
- package/components/Step/CircularProgress.style.tsx +3 -4
- package/components/Step/CircularProgress.tsx +5 -5
- package/components/Step/DestinationWalletAddress.tsx +2 -3
- package/components/Step/Step.tsx +0 -2
- package/components/Step/StepProcess.tsx +2 -3
- package/components/Step/StepTimer.tsx +9 -14
- package/components/StepActions/StepActions.style.tsx +31 -20
- package/components/StepActions/StepActions.tsx +52 -43
- package/components/StepActions/StepFeeBreakdown.tsx +107 -0
- package/components/StepActions/StepFees.tsx +44 -0
- package/components/Token/Token.style.tsx +6 -22
- package/components/Token/Token.tsx +136 -66
- package/components/TokenAvatar/TokenAvatar.style.tsx +26 -15
- package/components/TokenAvatar/TokenAvatar.tsx +25 -12
- package/components/TokenList/TokenList.style.tsx +7 -5
- package/components/TokenList/TokenList.tsx +2 -5
- package/components/TokenList/TokenListItem.tsx +11 -8
- package/components/TokenList/VirtualizedTokenList.tsx +3 -2
- package/components/TokenList/types.ts +3 -4
- package/components/TokenList/useTokenSelect.ts +8 -6
- package/config/queryClient.ts +0 -1
- package/config/theme.ts +2 -9
- package/config/version.ts +1 -1
- package/config/walletConnect.ts +1 -0
- package/hooks/useAccount.ts +9 -17
- package/hooks/useAvailableChains.ts +13 -6
- package/hooks/useChains.ts +12 -6
- package/hooks/useDebouncedWatch.ts +6 -5
- package/hooks/useFromTokenSufficiency.ts +18 -9
- package/hooks/useGasRecommendation.ts +1 -1
- package/hooks/useGasRefuel.ts +2 -2
- package/hooks/useGasSufficiency.ts +11 -6
- package/hooks/useRouteExecution.ts +5 -5
- package/hooks/useRoutes.ts +31 -24
- package/hooks/useTokenAddressBalance.ts +2 -1
- package/hooks/useTokenBalance.ts +12 -22
- package/hooks/useTokenBalances.ts +1 -0
- package/hooks/useTools.ts +2 -1
- package/hooks/useTransactionHistory.ts +39 -29
- package/i18n/en.json +10 -6
- package/package.json +15 -15
- package/pages/ActiveTransactionsPage/ActiveTransactionsPage.tsx +4 -6
- package/pages/LanguagesPage/LanguagesPage.tsx +4 -3
- package/pages/MainPage/MainPage.tsx +12 -12
- package/pages/RoutesPage/RoutesPage.tsx +1 -2
- package/pages/SelectChainPage/SelectChainPage.tsx +4 -3
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.tsx +3 -3
- package/pages/SelectNativeTokenPage/SelectNativeTokenPage.tsx +4 -3
- package/pages/SelectTokenPage/SearchTokenInput.tsx +1 -2
- package/pages/SelectTokenPage/SelectTokenPage.tsx +4 -3
- package/pages/SelectWalletPage/SelectWalletPage.tsx +3 -3
- package/pages/SettingsPage/ResetSettingsButton.tsx +1 -1
- package/pages/SettingsPage/SettingsCard/SettingCard.style.tsx +7 -6
- package/pages/SettingsPage/SettingsCard/SettingCard.tsx +1 -1
- package/pages/SettingsPage/SettingsPage.tsx +7 -7
- package/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +3 -2
- package/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +12 -10
- package/pages/TransactionDetailsPage/TransactionDetailsPage.tsx +3 -3
- package/pages/TransactionDetailsPage/TransactionDetailsSkeleton.tsx +15 -58
- package/pages/TransactionHistoryPage/TransactionHistoryItem.tsx +6 -4
- package/pages/TransactionHistoryPage/TransactionHistoryPage.tsx +8 -7
- package/pages/TransactionHistoryPage/TransactionHistorySkeleton.tsx +7 -47
- package/pages/TransactionPage/StatusBottomSheet.tsx +14 -9
- package/pages/TransactionPage/TransactionPage.tsx +3 -3
- package/providers/I18nProvider/I18nProvider.tsx +3 -2
- package/providers/WalletProvider/EVMBaseProvider.tsx +130 -0
- package/providers/WalletProvider/EVMExternalContext.ts +3 -0
- package/providers/WalletProvider/EVMProvider.tsx +17 -110
- package/providers/WalletProvider/SDKProviders.tsx +21 -11
- package/providers/WalletProvider/{SolanaProvider.tsx → SVMBaseProvider.tsx} +2 -17
- package/providers/WalletProvider/SVMExternalContext.ts +3 -0
- package/providers/WalletProvider/SVMProvider.tsx +27 -0
- package/providers/WalletProvider/WalletProvider.tsx +5 -5
- package/providers/WalletProvider/index.ts +1 -0
- package/providers/WalletProvider/useHasExternalWalletProvider.ts +30 -0
- package/providers/WidgetProvider/WidgetProvider.tsx +2 -2
- package/providers/WidgetProvider/index.ts +1 -2
- package/stores/StoreProvider.tsx +12 -12
- package/stores/chains/ChainOrderStore.tsx +21 -17
- package/stores/chains/createChainOrderStore.ts +34 -15
- package/stores/chains/types.ts +12 -4
- package/stores/chains/useChainOrder.ts +5 -2
- package/stores/form/FormStore.tsx +15 -23
- package/stores/form/FormUpdater.tsx +12 -9
- package/stores/form/URLSearchParamsBuilder.tsx +4 -2
- package/stores/form/createFormStore.ts +21 -15
- package/stores/form/types.ts +25 -39
- package/stores/form/useFieldActions.ts +11 -20
- package/stores/form/useFieldValues.ts +6 -4
- package/stores/form/useValidationActions.ts +9 -17
- package/stores/routes/useExecutingRoutesIds.ts +5 -2
- package/stores/settings/useSettingsStore.ts +3 -1
- package/types/widget.ts +32 -24
- package/utils/converters.ts +12 -6
- package/{components/RouteCard/utils.ts → utils/fees.ts} +43 -37
- package/utils/index.ts +2 -0
- package/{providers/WidgetProvider/utils.ts → utils/item.ts} +3 -7
- package/_cjs/components/AmountInput/FormPriceHelperText.js.map +0 -1
- package/_cjs/components/RouteCard/utils.d.ts +0 -11
- package/_cjs/components/RouteCard/utils.js.map +0 -1
- package/_cjs/components/Step/GasStepProcess.js +0 -25
- package/_cjs/components/Step/GasStepProcess.js.map +0 -1
- package/_cjs/pages/TransactionDetailsPage/TransactionDetailsPage.style.d.ts +0 -4
- package/_cjs/pages/TransactionDetailsPage/TransactionDetailsPage.style.js +0 -9
- package/_cjs/pages/TransactionDetailsPage/TransactionDetailsPage.style.js.map +0 -1
- package/_cjs/pages/TransactionPage/TransactionPage.style.d.ts +0 -4
- package/_cjs/pages/TransactionPage/TransactionPage.style.js +0 -9
- package/_cjs/pages/TransactionPage/TransactionPage.style.js.map +0 -1
- package/_cjs/providers/WalletProvider/SolanaProvider.d.ts +0 -3
- package/_cjs/providers/WalletProvider/SolanaProvider.js.map +0 -1
- package/_cjs/providers/WidgetProvider/utils.d.ts +0 -4
- package/_cjs/providers/WidgetProvider/utils.js.map +0 -1
- package/_esm/components/AmountInput/FormPriceHelperText.js.map +0 -1
- package/_esm/components/RouteCard/utils.d.ts +0 -11
- package/_esm/components/RouteCard/utils.js.map +0 -1
- package/_esm/components/Step/GasStepProcess.js +0 -21
- package/_esm/components/Step/GasStepProcess.js.map +0 -1
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.style.d.ts +0 -4
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.style.js +0 -6
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.style.js.map +0 -1
- package/_esm/pages/TransactionPage/TransactionPage.style.d.ts +0 -4
- package/_esm/pages/TransactionPage/TransactionPage.style.js +0 -6
- package/_esm/pages/TransactionPage/TransactionPage.style.js.map +0 -1
- package/_esm/providers/WalletProvider/SolanaProvider.d.ts +0 -3
- package/_esm/providers/WalletProvider/SolanaProvider.js.map +0 -1
- package/_esm/providers/WidgetProvider/utils.d.ts +0 -4
- package/_esm/providers/WidgetProvider/utils.js.map +0 -1
- package/components/Step/GasStepProcess.tsx +0 -45
- package/pages/TransactionDetailsPage/TransactionDetailsPage.style.tsx +0 -6
- package/pages/TransactionPage/TransactionPage.style.tsx +0 -6
package/hooks/useTokenBalance.ts
CHANGED
|
@@ -11,37 +11,27 @@ export const useTokenBalance = (
|
|
|
11
11
|
token?: Token,
|
|
12
12
|
chain?: ExtendedChain,
|
|
13
13
|
) => {
|
|
14
|
-
const { account } = useAccount();
|
|
14
|
+
const { account, accounts } = useAccount();
|
|
15
15
|
const queryClient = useQueryClient();
|
|
16
16
|
const walletAddress =
|
|
17
17
|
accountAddress ||
|
|
18
18
|
// When we provide chain we want to be sure that account address used is from the same ecosystem as token
|
|
19
|
-
|
|
20
|
-
? account.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
: undefined;
|
|
19
|
+
(chain
|
|
20
|
+
? accounts.find((account) => account.chainType === chain.chainType)
|
|
21
|
+
?.address
|
|
22
|
+
: account.address);
|
|
24
23
|
|
|
25
24
|
const tokenBalanceQueryKey = useMemo(
|
|
26
|
-
() =>
|
|
25
|
+
() =>
|
|
26
|
+
['token-balance', walletAddress, token?.chainId, token?.address] as const,
|
|
27
27
|
[token?.address, token?.chainId, walletAddress],
|
|
28
28
|
);
|
|
29
29
|
|
|
30
30
|
const { data, isLoading, refetch } = useQuery({
|
|
31
31
|
queryKey: tokenBalanceQueryKey,
|
|
32
|
-
queryFn: async ({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
'token-balances',
|
|
36
|
-
accountAddress,
|
|
37
|
-
token!.chainId,
|
|
38
|
-
])
|
|
39
|
-
?.find((t) => t.address === token!.address);
|
|
40
|
-
|
|
41
|
-
if (cachedToken) {
|
|
42
|
-
return cachedToken as TokenAmount;
|
|
43
|
-
}
|
|
44
|
-
|
|
32
|
+
queryFn: async ({
|
|
33
|
+
queryKey: [, accountAddress, tokenChainId, tokenAddress],
|
|
34
|
+
}) => {
|
|
45
35
|
const tokenBalances = await getTokenBalancesWithRetry(
|
|
46
36
|
accountAddress as string,
|
|
47
37
|
[token!],
|
|
@@ -64,12 +54,12 @@ export const useTokenBalance = (
|
|
|
64
54
|
}
|
|
65
55
|
|
|
66
56
|
queryClient.setQueriesData<TokenAmount[]>(
|
|
67
|
-
{ queryKey: ['token-balances', accountAddress,
|
|
57
|
+
{ queryKey: ['token-balances', accountAddress, tokenChainId] },
|
|
68
58
|
(data) => {
|
|
69
59
|
if (data) {
|
|
70
60
|
const clonedData = [...data];
|
|
71
61
|
const index = clonedData.findIndex(
|
|
72
|
-
(dataToken) => dataToken.address ===
|
|
62
|
+
(dataToken) => dataToken.address === tokenAddress,
|
|
73
63
|
);
|
|
74
64
|
clonedData[index] = {
|
|
75
65
|
...clonedData[index],
|
package/hooks/useTools.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { getTools, type ToolsResponse } from '@lifi/sdk';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import {
|
|
3
|
+
import { useWidgetConfig } from '../providers';
|
|
4
4
|
import { useSettingsStore } from '../stores';
|
|
5
|
+
import { isItemAllowed } from '../utils';
|
|
5
6
|
|
|
6
7
|
export const useTools = () => {
|
|
7
8
|
const { bridges, exchanges } = useWidgetConfig();
|
|
@@ -1,49 +1,59 @@
|
|
|
1
|
+
import type { StatusResponse } from '@lifi/sdk';
|
|
1
2
|
import { getTransactionHistory, type ExtendedTransactionInfo } from '@lifi/sdk';
|
|
2
|
-
import {
|
|
3
|
+
import type { QueryFunction } from '@tanstack/react-query';
|
|
4
|
+
import { useQueries } from '@tanstack/react-query';
|
|
3
5
|
import { useAccount } from './useAccount';
|
|
4
6
|
|
|
5
7
|
export const useTransactionHistory = () => {
|
|
6
|
-
const {
|
|
8
|
+
const { accounts } = useAccount();
|
|
7
9
|
|
|
8
|
-
const { data, isLoading
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const { data, isLoading } = useQueries({
|
|
11
|
+
queries: accounts.map((account) => ({
|
|
12
|
+
queryKey: ['transaction-history', account.address],
|
|
13
|
+
queryFn: (async ({ queryKey: [, accountAddress], signal }) => {
|
|
14
|
+
if (!accountAddress) {
|
|
15
|
+
return [];
|
|
16
|
+
}
|
|
17
|
+
const date = new Date();
|
|
18
|
+
date.setFullYear(date.getFullYear() - 10);
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
const response = await getTransactionHistory(
|
|
21
|
+
{
|
|
22
|
+
wallet: accountAddress,
|
|
23
|
+
fromTimestamp: date.getTime() / 1000,
|
|
24
|
+
toTimestamp: Date.now() / 1000,
|
|
25
|
+
},
|
|
26
|
+
{ signal },
|
|
27
|
+
);
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
return response.transfers;
|
|
30
|
+
}) as QueryFunction<StatusResponse[], (string | undefined)[], never>,
|
|
31
|
+
refetchInterval: 300000,
|
|
32
|
+
enabled: Boolean(account.address),
|
|
33
|
+
})),
|
|
34
|
+
combine: (results) => {
|
|
35
|
+
const data = results
|
|
36
|
+
.filter((result) => result.data)
|
|
37
|
+
.flatMap((result) => result.data)
|
|
27
38
|
.filter(
|
|
28
39
|
(transaction) =>
|
|
29
|
-
transaction
|
|
40
|
+
transaction?.receiving.chainId && transaction.sending.chainId,
|
|
30
41
|
)
|
|
31
42
|
.sort((a, b) => {
|
|
32
43
|
return (
|
|
33
|
-
((b
|
|
34
|
-
((a
|
|
44
|
+
((b?.sending as ExtendedTransactionInfo)?.timestamp ?? 0) -
|
|
45
|
+
((a?.sending as ExtendedTransactionInfo)?.timestamp ?? 0)
|
|
35
46
|
);
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
}) as StatusResponse[];
|
|
48
|
+
return {
|
|
49
|
+
data: data,
|
|
50
|
+
isLoading: results.some((result) => result.isLoading),
|
|
51
|
+
};
|
|
39
52
|
},
|
|
40
|
-
refetchInterval: 300000,
|
|
41
|
-
enabled: Boolean(account.address),
|
|
42
53
|
});
|
|
43
54
|
|
|
44
55
|
return {
|
|
45
|
-
data
|
|
56
|
+
data,
|
|
46
57
|
isLoading,
|
|
47
|
-
refetch,
|
|
48
58
|
};
|
|
49
59
|
};
|
package/i18n/en.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"buyNow": "Buy now",
|
|
15
15
|
"cancel": "Cancel",
|
|
16
16
|
"changeWallet": "Change wallet",
|
|
17
|
+
"close": "Close",
|
|
17
18
|
"connectWallet": "Connect wallet",
|
|
18
19
|
"contactSupport": "Contact support",
|
|
19
20
|
"continue": "Continue",
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
"insufficientGas": "You don't have enough gas to complete the transaction. You need to add at least:",
|
|
106
107
|
"rateChanged": "The exchange rate has changed. By continuing the transaction, you'll accept the new rate.",
|
|
107
108
|
"resetSettings": "This will reset your route priority, slippage, gas price, enabled bridges and exchanges.",
|
|
108
|
-
"slippageOutsideRecommendedLimits": "High tolerance may result in unfavorable trade caused by front
|
|
109
|
+
"slippageOutsideRecommendedLimits": "High slippage tolerance may result in unfavorable trade caused by front-running."
|
|
109
110
|
},
|
|
110
111
|
"title": {
|
|
111
112
|
"deleteActiveTransactions": "Delete all active transactions?",
|
|
@@ -149,8 +150,6 @@
|
|
|
149
150
|
}
|
|
150
151
|
},
|
|
151
152
|
"tooltip": {
|
|
152
|
-
"additionalProviderFee": "Additional bridges, DEXs, and service fees.",
|
|
153
|
-
"estimatedNetworkFee": "Estimated network fee.",
|
|
154
153
|
"estimatedTime": "Estimated execution time in minutes.",
|
|
155
154
|
"notFound": {
|
|
156
155
|
"text": "We couldn't find this page.",
|
|
@@ -166,13 +165,18 @@
|
|
|
166
165
|
"main": {
|
|
167
166
|
"crossStepDetails": "Bridge from {{from}} to {{to}} via {{tool}}",
|
|
168
167
|
"currentAmount": "Current amount",
|
|
169
|
-
"estimatedTime": "{{value}}m",
|
|
170
168
|
"featuredTokens": "Featured tokens",
|
|
169
|
+
"fees": {
|
|
170
|
+
"estimated": "estimated fees",
|
|
171
|
+
"networkEstimated": "Estimated network fees:",
|
|
172
|
+
"networkPaid": "Paid network fees:",
|
|
173
|
+
"paid": "paid fees",
|
|
174
|
+
"providerEstimated": "Estimated provider fees:",
|
|
175
|
+
"providerPaid": "Paid provider fees:"
|
|
176
|
+
},
|
|
171
177
|
"from": "From",
|
|
172
178
|
"fromAmount": "You pay",
|
|
173
179
|
"gasCost": "Gas cost",
|
|
174
|
-
"gasFeeEstimated": "estimated gas fee",
|
|
175
|
-
"gasFeePaid": "gas fee paid",
|
|
176
180
|
"inProgress": "in progress",
|
|
177
181
|
"nftStepDetails": "Purchase NFT via {{tool}}",
|
|
178
182
|
"onChain": "on {{chainName}}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.13",
|
|
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": "./_cjs/index.js",
|
|
@@ -33,31 +33,31 @@
|
|
|
33
33
|
"lifi"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@emotion/react": "^11.11.
|
|
36
|
+
"@emotion/react": "^11.11.3",
|
|
37
37
|
"@emotion/styled": "^11.11.0",
|
|
38
|
-
"@lifi/sdk": "^3.0.0-alpha.
|
|
39
|
-
"@lifi/wallet-management": "^3.0.0-alpha.
|
|
40
|
-
"@mui/icons-material": "^5.15.
|
|
41
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
42
|
-
"@mui/material": "^5.15.
|
|
38
|
+
"@lifi/sdk": "^3.0.0-alpha.47",
|
|
39
|
+
"@lifi/wallet-management": "^3.0.0-alpha.9",
|
|
40
|
+
"@mui/icons-material": "^5.15.4",
|
|
41
|
+
"@mui/lab": "^5.0.0-alpha.160",
|
|
42
|
+
"@mui/material": "^5.15.4",
|
|
43
43
|
"@solana/wallet-adapter-base": "^0.9.23",
|
|
44
44
|
"@solana/wallet-adapter-react": "^0.15.35",
|
|
45
|
-
"@solana/wallet-adapter-wallets": "^0.19.
|
|
46
|
-
"@solana/web3.js": "^1.
|
|
47
|
-
"@tanstack/react-query": "^5.
|
|
45
|
+
"@solana/wallet-adapter-wallets": "^0.19.25",
|
|
46
|
+
"@solana/web3.js": "^1.89.0",
|
|
47
|
+
"@tanstack/react-query": "^5.17.12",
|
|
48
48
|
"@tanstack/react-virtual": "^3.0.1",
|
|
49
|
-
"i18next": "^23.7.
|
|
49
|
+
"i18next": "^23.7.16",
|
|
50
50
|
"microdiff": "^1.3.2",
|
|
51
51
|
"mitt": "^3.0.1",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-dom": "^18.2.0",
|
|
54
|
-
"react-i18next": "^
|
|
54
|
+
"react-i18next": "^14.0.0",
|
|
55
55
|
"react-intersection-observer": "^9.5.3",
|
|
56
|
-
"react-router-dom": "^6.21.
|
|
56
|
+
"react-router-dom": "^6.21.2",
|
|
57
57
|
"react-timer-hook": "^3.0.7",
|
|
58
58
|
"uuid": "^9.0.1",
|
|
59
|
-
"viem": "^2.0.
|
|
60
|
-
"wagmi": "^2.
|
|
59
|
+
"viem": "^2.0.10",
|
|
60
|
+
"wagmi": "^2.2.1",
|
|
61
61
|
"zustand": "^4.4.7"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import DeleteIcon from '@mui/icons-material/DeleteOutline';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
|
-
Container,
|
|
5
4
|
DialogActions,
|
|
6
5
|
DialogContent,
|
|
7
6
|
DialogContentText,
|
|
@@ -13,7 +12,7 @@ import { useCallback, useEffect, useState } from 'react';
|
|
|
13
12
|
import { useTranslation } from 'react-i18next';
|
|
14
13
|
import { ActiveTransactionItem } from '../../components/ActiveTransactions';
|
|
15
14
|
import { Dialog } from '../../components/Dialog';
|
|
16
|
-
import {
|
|
15
|
+
import { PageContainer } from '../../components/PageContainer';
|
|
17
16
|
import {
|
|
18
17
|
useExecutingRoutesIds,
|
|
19
18
|
useHeaderStoreContext,
|
|
@@ -23,8 +22,7 @@ import { ActiveTransactionsEmpty } from './ActiveTransactionsEmpty';
|
|
|
23
22
|
|
|
24
23
|
export const ActiveTransactionsPage = () => {
|
|
25
24
|
const { t } = useTranslation();
|
|
26
|
-
const
|
|
27
|
-
const executingRoutes = useExecutingRoutesIds(account.address);
|
|
25
|
+
const executingRoutes = useExecutingRoutesIds();
|
|
28
26
|
const deleteRoutes = useRouteExecutionStore((store) => store.deleteRoutes);
|
|
29
27
|
const headerStoreContext = useHeaderStoreContext();
|
|
30
28
|
const [open, setOpen] = useState(false);
|
|
@@ -48,7 +46,7 @@ export const ActiveTransactionsPage = () => {
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
return (
|
|
51
|
-
<
|
|
49
|
+
<PageContainer disableGutters>
|
|
52
50
|
<List
|
|
53
51
|
sx={{
|
|
54
52
|
paddingLeft: 1.5,
|
|
@@ -77,6 +75,6 @@ export const ActiveTransactionsPage = () => {
|
|
|
77
75
|
</Button>
|
|
78
76
|
</DialogActions>
|
|
79
77
|
</Dialog>
|
|
80
|
-
</
|
|
78
|
+
</PageContainer>
|
|
81
79
|
);
|
|
82
80
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import CheckIcon from '@mui/icons-material/Check';
|
|
2
|
-
import {
|
|
2
|
+
import { List } from '@mui/material';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { ListItemText } from '../../components/ListItemText';
|
|
5
|
+
import { PageContainer } from '../../components/PageContainer';
|
|
5
6
|
import { SettingsListItemButton } from '../../components/SettingsListItemButton';
|
|
6
7
|
import { useLanguages } from '../../hooks';
|
|
7
8
|
|
|
@@ -16,7 +17,7 @@ export const LanguagesPage: React.FC = () => {
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
|
-
<
|
|
20
|
+
<PageContainer disableGutters>
|
|
20
21
|
<List
|
|
21
22
|
sx={{
|
|
22
23
|
paddingLeft: 1.5,
|
|
@@ -33,6 +34,6 @@ export const LanguagesPage: React.FC = () => {
|
|
|
33
34
|
</SettingsListItemButton>
|
|
34
35
|
))}
|
|
35
36
|
</List>
|
|
36
|
-
</
|
|
37
|
+
</PageContainer>
|
|
37
38
|
);
|
|
38
39
|
};
|
|
@@ -3,6 +3,7 @@ import { ActiveTransactions } from '../../components/ActiveTransactions';
|
|
|
3
3
|
import { AmountInput } from '../../components/AmountInput';
|
|
4
4
|
import { ContractComponent } from '../../components/ContractComponent';
|
|
5
5
|
import { GasRefuelMessage } from '../../components/GasMessage';
|
|
6
|
+
import { PageContainer } from '../../components/PageContainer';
|
|
6
7
|
import { Routes } from '../../components/Routes';
|
|
7
8
|
import { SelectChainAndToken } from '../../components/SelectChainAndToken';
|
|
8
9
|
import {
|
|
@@ -12,7 +13,6 @@ import {
|
|
|
12
13
|
import { useExpandableVariant } from '../../hooks';
|
|
13
14
|
import { useWidgetConfig } from '../../providers';
|
|
14
15
|
import { MainGasMessage } from './MainGasMessage';
|
|
15
|
-
import { FormContainer } from './MainPage.style';
|
|
16
16
|
import { ReviewButton } from './ReviewButton';
|
|
17
17
|
|
|
18
18
|
export const MainPage: React.FC = () => {
|
|
@@ -20,23 +20,23 @@ export const MainPage: React.FC = () => {
|
|
|
20
20
|
const { subvariant, contractComponent } = useWidgetConfig();
|
|
21
21
|
const nft = subvariant === 'nft';
|
|
22
22
|
return (
|
|
23
|
-
<
|
|
24
|
-
<ActiveTransactions
|
|
23
|
+
<PageContainer>
|
|
24
|
+
<ActiveTransactions mt={1} mb={2} />
|
|
25
25
|
{nft ? (
|
|
26
|
-
<ContractComponent
|
|
26
|
+
<ContractComponent mt={1} mb={2}>
|
|
27
27
|
{contractComponent}
|
|
28
28
|
</ContractComponent>
|
|
29
29
|
) : null}
|
|
30
|
-
<SelectChainAndToken mt={1}
|
|
31
|
-
{!nft ? <AmountInput formType="from"
|
|
32
|
-
{!expandable ? <Routes
|
|
33
|
-
<SendToWallet
|
|
34
|
-
<GasRefuelMessage
|
|
35
|
-
<MainGasMessage
|
|
36
|
-
<Box display="flex"
|
|
30
|
+
<SelectChainAndToken mt={1} mb={2} />
|
|
31
|
+
{!nft ? <AmountInput formType="from" mb={2} /> : null}
|
|
32
|
+
{!expandable ? <Routes mb={2} /> : null}
|
|
33
|
+
<SendToWallet mb={2} />
|
|
34
|
+
<GasRefuelMessage mb={2} />
|
|
35
|
+
<MainGasMessage mb={2} />
|
|
36
|
+
<Box display="flex" mb={1}>
|
|
37
37
|
<ReviewButton />
|
|
38
38
|
<SendToWalletButton />
|
|
39
39
|
</Box>
|
|
40
|
-
</
|
|
40
|
+
</PageContainer>
|
|
41
41
|
);
|
|
42
42
|
};
|
|
@@ -46,7 +46,6 @@ export const RoutesPage: React.FC<BoxProps> = () => {
|
|
|
46
46
|
onClick={() => refetch()}
|
|
47
47
|
sx={{ marginRight: -1 }}
|
|
48
48
|
size="medium"
|
|
49
|
-
edge="end"
|
|
50
49
|
/>,
|
|
51
50
|
);
|
|
52
51
|
}, [dataUpdatedAt, headerStoreContext, isFetching, refetch, refetchTime]);
|
|
@@ -68,7 +67,7 @@ export const RoutesPage: React.FC<BoxProps> = () => {
|
|
|
68
67
|
route={route}
|
|
69
68
|
onClick={() => handleRouteClick(route)}
|
|
70
69
|
active={index === 0}
|
|
71
|
-
expanded={routes?.length
|
|
70
|
+
expanded={routes?.length === 1}
|
|
72
71
|
/>
|
|
73
72
|
))
|
|
74
73
|
)}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ExtendedChain } from '@lifi/sdk';
|
|
2
|
-
import { Avatar,
|
|
2
|
+
import { Avatar, List, ListItemAvatar } from '@mui/material';
|
|
3
3
|
import { useChainSelect } from '../../components/ChainSelect';
|
|
4
4
|
import { ListItemButton } from '../../components/ListItemButton';
|
|
5
5
|
import { ListItemText } from '../../components/ListItemText';
|
|
6
|
+
import { PageContainer } from '../../components/PageContainer';
|
|
6
7
|
import { useTokenSelect } from '../../components/TokenList';
|
|
7
8
|
import { useNavigateBack } from '../../hooks';
|
|
8
9
|
import type { SelectChainPageProps } from './types';
|
|
@@ -25,7 +26,7 @@ export const SelectChainPage: React.FC<SelectChainPageProps> = ({
|
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
return (
|
|
28
|
-
<
|
|
29
|
+
<PageContainer disableGutters>
|
|
29
30
|
<List
|
|
30
31
|
sx={{
|
|
31
32
|
paddingLeft: 1.5,
|
|
@@ -43,6 +44,6 @@ export const SelectChainPage: React.FC<SelectChainPageProps> = ({
|
|
|
43
44
|
</ListItemButton>
|
|
44
45
|
))}
|
|
45
46
|
</List>
|
|
46
|
-
</
|
|
47
|
+
</PageContainer>
|
|
47
48
|
);
|
|
48
49
|
};
|
|
@@ -4,7 +4,6 @@ import CheckBoxOutlinedIcon from '@mui/icons-material/CheckBoxOutlined';
|
|
|
4
4
|
import IndeterminateCheckBoxOutlinedIcon from '@mui/icons-material/IndeterminateCheckBoxOutlined';
|
|
5
5
|
import {
|
|
6
6
|
Avatar,
|
|
7
|
-
Container,
|
|
8
7
|
IconButton,
|
|
9
8
|
List,
|
|
10
9
|
ListItemAvatar,
|
|
@@ -15,6 +14,7 @@ import { useEffect } from 'react';
|
|
|
15
14
|
import { useTranslation } from 'react-i18next';
|
|
16
15
|
import { shallow } from 'zustand/shallow';
|
|
17
16
|
import { ListItemText } from '../../components/ListItemText';
|
|
17
|
+
import { PageContainer } from '../../components/PageContainer';
|
|
18
18
|
import { SettingsListItemButton } from '../../components/SettingsListItemButton';
|
|
19
19
|
import { useTools } from '../../hooks';
|
|
20
20
|
import { useHeaderStoreContext, useSettingsStore } from '../../stores';
|
|
@@ -103,7 +103,7 @@ export const SelectEnabledToolsPage: React.FC<{
|
|
|
103
103
|
}, [enabledTools.length, headerStoreContext, setTools, tools, type, typeKey]);
|
|
104
104
|
|
|
105
105
|
return (
|
|
106
|
-
<
|
|
106
|
+
<PageContainer disableGutters>
|
|
107
107
|
<List
|
|
108
108
|
sx={{
|
|
109
109
|
paddingLeft: 1.5,
|
|
@@ -125,6 +125,6 @@ export const SelectEnabledToolsPage: React.FC<{
|
|
|
125
125
|
</SettingsListItemButton>
|
|
126
126
|
))}
|
|
127
127
|
</List>
|
|
128
|
-
</
|
|
128
|
+
</PageContainer>
|
|
129
129
|
);
|
|
130
130
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { List, ListItemAvatar } from '@mui/material';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { ListItemButton } from '../../components/ListItemButton';
|
|
4
4
|
import { ListItemText } from '../../components/ListItemText';
|
|
5
|
+
import { PageContainer } from '../../components/PageContainer';
|
|
5
6
|
import { TokenAvatar } from '../../components/TokenAvatar';
|
|
6
7
|
import { useTokenSelect } from '../../components/TokenList';
|
|
7
8
|
import { useChains, useNavigateBack } from '../../hooks';
|
|
@@ -16,7 +17,7 @@ export const SelectNativeTokenPage: React.FC<FormTypeProps> = ({
|
|
|
16
17
|
const selectToken = useTokenSelect(formType, navigateBack);
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
|
-
<
|
|
20
|
+
<PageContainer disableGutters>
|
|
20
21
|
<List
|
|
21
22
|
sx={{
|
|
22
23
|
paddingLeft: 1.5,
|
|
@@ -38,6 +39,6 @@ export const SelectNativeTokenPage: React.FC<FormTypeProps> = ({
|
|
|
38
39
|
</ListItemButton>
|
|
39
40
|
))}
|
|
40
41
|
</List>
|
|
41
|
-
</
|
|
42
|
+
</PageContainer>
|
|
42
43
|
);
|
|
43
44
|
};
|
|
@@ -3,8 +3,8 @@ import { FormControl, InputAdornment } from '@mui/material';
|
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { Card } from '../../components/Card';
|
|
6
|
-
import { Input } from './SearchTokenInput.style';
|
|
7
6
|
import { useFieldActions, useFieldController } from '../../stores';
|
|
7
|
+
import { Input } from './SearchTokenInput.style';
|
|
8
8
|
|
|
9
9
|
export const SearchTokenInput = () => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -26,7 +26,6 @@ export const SearchTokenInput = () => {
|
|
|
26
26
|
<Input
|
|
27
27
|
size="small"
|
|
28
28
|
placeholder={t(`main.tokenSearch`) as string}
|
|
29
|
-
defaultValue=""
|
|
30
29
|
endAdornment={
|
|
31
30
|
<InputAdornment position="end">
|
|
32
31
|
<SearchIcon />
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Box
|
|
1
|
+
import { Box } from '@mui/material';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
3
|
import { useLayoutEffect, useRef, useState } from 'react';
|
|
4
4
|
import { ChainSelect } from '../../components/ChainSelect';
|
|
5
|
+
import { PageContainer } from '../../components/PageContainer';
|
|
5
6
|
import { TokenList } from '../../components/TokenList';
|
|
6
7
|
import {
|
|
7
8
|
useContentHeight,
|
|
@@ -34,7 +35,7 @@ export const SelectTokenPage: FC<FormTypeProps> = ({ formType }) => {
|
|
|
34
35
|
const hideChainSelect = swapOnly && formType === 'to';
|
|
35
36
|
|
|
36
37
|
return (
|
|
37
|
-
<
|
|
38
|
+
<PageContainer disableGutters>
|
|
38
39
|
<Box pt={1} pb={2} px={3} ref={headerRef}>
|
|
39
40
|
{!hideChainSelect ? <ChainSelect formType={formType} /> : null}
|
|
40
41
|
<Box mt={!hideChainSelect ? 2 : 0}>
|
|
@@ -46,6 +47,6 @@ export const SelectTokenPage: FC<FormTypeProps> = ({ formType }) => {
|
|
|
46
47
|
onClick={navigateBack}
|
|
47
48
|
formType={formType}
|
|
48
49
|
/>
|
|
49
|
-
</
|
|
50
|
+
</PageContainer>
|
|
50
51
|
);
|
|
51
52
|
};
|
|
@@ -2,7 +2,6 @@ import { isWalletInstalled } from '@lifi/wallet-management';
|
|
|
2
2
|
import type { Theme } from '@mui/material';
|
|
3
3
|
import {
|
|
4
4
|
Button,
|
|
5
|
-
Container,
|
|
6
5
|
DialogActions,
|
|
7
6
|
DialogContent,
|
|
8
7
|
DialogContentText,
|
|
@@ -17,6 +16,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
17
16
|
import type { Connector } from 'wagmi';
|
|
18
17
|
import { useConnect, useAccount as useWagmiAccount } from 'wagmi';
|
|
19
18
|
import { Dialog } from '../../components/Dialog';
|
|
19
|
+
import { PageContainer } from '../../components/PageContainer';
|
|
20
20
|
import { EVMListItemButton } from './EVMListItemButton';
|
|
21
21
|
import { SVMListItemButton } from './SVMListItemButton';
|
|
22
22
|
import { walletComparator } from './utils';
|
|
@@ -85,7 +85,7 @@ export const SelectWalletPage = () => {
|
|
|
85
85
|
}, [account.connector?.id, connectors, isDesktopView, solanaWallets]);
|
|
86
86
|
|
|
87
87
|
return (
|
|
88
|
-
<
|
|
88
|
+
<PageContainer disableGutters>
|
|
89
89
|
<List
|
|
90
90
|
sx={{
|
|
91
91
|
paddingLeft: 1.5,
|
|
@@ -122,6 +122,6 @@ export const SelectWalletPage = () => {
|
|
|
122
122
|
</Button>
|
|
123
123
|
</DialogActions>
|
|
124
124
|
</Dialog>
|
|
125
|
-
</
|
|
125
|
+
</PageContainer>
|
|
126
126
|
);
|
|
127
127
|
};
|
|
@@ -6,7 +6,7 @@ export const SettingsList = styled(Box)(({ theme }) => ({
|
|
|
6
6
|
display: 'flex',
|
|
7
7
|
flexDirection: 'column',
|
|
8
8
|
gap: theme.spacing(1),
|
|
9
|
-
padding: theme.spacing(1,
|
|
9
|
+
padding: theme.spacing(1, 0, 1),
|
|
10
10
|
}));
|
|
11
11
|
|
|
12
12
|
export const SummaryTitleContainer = styled(Box)(({ theme }) => ({
|
|
@@ -15,18 +15,18 @@ export const SummaryTitleContainer = styled(Box)(({ theme }) => ({
|
|
|
15
15
|
gap: theme.spacing(1.5),
|
|
16
16
|
}));
|
|
17
17
|
|
|
18
|
-
export const SummaryRowContainer = styled(Box)({
|
|
18
|
+
export const SummaryRowContainer = styled(Box)(({ theme }) => ({
|
|
19
19
|
display: 'flex',
|
|
20
20
|
width: '100%',
|
|
21
21
|
justifyContent: 'space-between',
|
|
22
22
|
alignItems: 'center',
|
|
23
|
-
|
|
23
|
+
padding: theme.spacing(1),
|
|
24
|
+
}));
|
|
24
25
|
|
|
25
|
-
export const SummaryRowButton = styled(ButtonBase)({
|
|
26
|
+
export const SummaryRowButton = styled(ButtonBase)(({ theme }) => ({
|
|
26
27
|
background: 'none',
|
|
27
28
|
color: 'inherit',
|
|
28
29
|
border: 'none',
|
|
29
|
-
padding: 0,
|
|
30
30
|
font: 'inherit',
|
|
31
31
|
cursor: 'pointer',
|
|
32
32
|
outline: 'inherit',
|
|
@@ -34,7 +34,8 @@ export const SummaryRowButton = styled(ButtonBase)({
|
|
|
34
34
|
width: '100%',
|
|
35
35
|
justifyContent: 'space-between',
|
|
36
36
|
alignItems: 'center',
|
|
37
|
-
|
|
37
|
+
padding: theme.spacing(1),
|
|
38
|
+
}));
|
|
38
39
|
|
|
39
40
|
export const SummaryValue = styled(Typography)({
|
|
40
41
|
lineHeight: '1.25',
|