@lifi/widget 3.24.3 → 3.25.0-beta.1
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/dist/esm/AppDefault.js +3 -3
- package/dist/esm/AppDefault.js.map +1 -1
- package/dist/esm/AppDrawer.style.d.ts +1 -1
- package/dist/esm/AppProvider.js +2 -2
- package/dist/esm/AppProvider.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.js +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.js.map +1 -1
- package/dist/esm/components/AmountInput/AmountInput.style.js +1 -1
- package/dist/esm/components/AmountInput/AmountInput.style.js.map +1 -1
- package/dist/esm/components/AmountInput/AmountInputAdornment.style.d.ts +1 -1
- package/dist/esm/components/AppContainer.js +6 -13
- package/dist/esm/components/AppContainer.js.map +1 -1
- package/dist/esm/components/Avatar/Avatar.style.js +1 -1
- package/dist/esm/components/Avatar/Avatar.style.js.map +1 -1
- package/dist/esm/components/ButtonTertiary.d.ts +1 -1
- package/dist/esm/components/Card/CardButton.style.js +1 -1
- package/dist/esm/components/Card/CardButton.style.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.js +1 -1
- package/dist/esm/components/Card/CardHeader.js.map +1 -1
- package/dist/esm/components/Card/CardIconButton.d.ts +1 -1
- package/dist/esm/components/Card/CardLabel.js +1 -1
- package/dist/esm/components/Card/CardLabel.js.map +1 -1
- package/dist/esm/components/Card/CardTitle.js +1 -1
- package/dist/esm/components/Card/CardTitle.js.map +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.js +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.js.map +1 -1
- package/dist/esm/components/ChainSelect/useChainSelect.js +13 -2
- package/dist/esm/components/ChainSelect/useChainSelect.js.map +1 -1
- package/dist/esm/components/Chains/ChainList.d.ts +13 -0
- package/dist/esm/components/Chains/ChainList.js +17 -0
- package/dist/esm/components/Chains/ChainList.js.map +1 -0
- package/dist/esm/components/Chains/ChainList.style.d.ts +14 -0
- package/dist/esm/components/Chains/ChainList.style.js +38 -0
- package/dist/esm/components/Chains/ChainList.style.js.map +1 -0
- package/dist/esm/components/Chains/ChainListItem.d.ts +11 -0
- package/dist/esm/components/Chains/ChainListItem.js +11 -0
- package/dist/esm/components/Chains/ChainListItem.js.map +1 -0
- package/dist/esm/components/Chains/ChainSearchInput.d.ts +10 -0
- package/dist/esm/components/Chains/ChainSearchInput.js +19 -0
- package/dist/esm/components/Chains/ChainSearchInput.js.map +1 -0
- package/dist/esm/components/Chains/ChainsExpanded.d.ts +7 -0
- package/dist/esm/components/Chains/ChainsExpanded.js +11 -0
- package/dist/esm/components/Chains/ChainsExpanded.js.map +1 -0
- package/dist/esm/components/Chains/ChainsExpanded.style.d.ts +6 -0
- package/dist/esm/components/Chains/ChainsExpanded.style.js +16 -0
- package/dist/esm/components/Chains/ChainsExpanded.style.js.map +1 -0
- package/dist/esm/components/Chains/SelectChainContent.d.ts +9 -0
- package/dist/esm/components/Chains/SelectChainContent.js +60 -0
- package/dist/esm/components/Chains/SelectChainContent.js.map +1 -0
- package/dist/esm/components/Chains/VirtualizedChainList.d.ts +11 -0
- package/dist/esm/components/Chains/VirtualizedChainList.js +40 -0
- package/dist/esm/components/Chains/VirtualizedChainList.js.map +1 -0
- package/dist/esm/components/Expansion/Expansion.d.ts +1 -0
- package/dist/esm/components/Expansion/Expansion.js +41 -0
- package/dist/esm/components/Expansion/Expansion.js.map +1 -0
- package/dist/esm/components/Expansion/ExpansionTransition.d.ts +9 -0
- package/dist/esm/components/Expansion/ExpansionTransition.js +45 -0
- package/dist/esm/components/Expansion/ExpansionTransition.js.map +1 -0
- package/dist/esm/components/Header/Header.js +1 -1
- package/dist/esm/components/Header/Header.js.map +1 -1
- package/dist/esm/components/Header/Header.style.d.ts +1 -1
- package/dist/esm/components/Header/Header.style.js +0 -1
- package/dist/esm/components/Header/Header.style.js.map +1 -1
- package/dist/esm/components/Header/NavigationHeader.js +2 -2
- package/dist/esm/components/Header/NavigationHeader.js.map +1 -1
- package/dist/esm/components/Header/SettingsButton.style.d.ts +1 -1
- package/dist/esm/components/Header/SettingsButton.style.js +1 -1
- package/dist/esm/components/Header/SettingsButton.style.js.map +1 -1
- package/dist/esm/components/ListItem/ListItem.js +1 -1
- package/dist/esm/components/ListItem/ListItem.js.map +1 -1
- package/dist/esm/components/ListItemButton.js +13 -1
- package/dist/esm/components/ListItemButton.js.map +1 -1
- package/dist/esm/components/ListItemText.js +1 -1
- package/dist/esm/components/ListItemText.js.map +1 -1
- package/dist/esm/components/ProgressToNextUpdate.js +1 -1
- package/dist/esm/components/ProgressToNextUpdate.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCard.js +4 -4
- package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentials.js +5 -5
- package/dist/esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js +1 -0
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js.map +1 -1
- package/dist/esm/components/RouteCard/getMatchingLabels.js +5 -3
- package/dist/esm/components/RouteCard/getMatchingLabels.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/Routes/RoutesContent.d.ts +14 -0
- package/dist/esm/components/Routes/RoutesContent.js +55 -0
- package/dist/esm/components/Routes/RoutesContent.js.map +1 -0
- package/dist/esm/components/Routes/RoutesExpanded.d.ts +7 -2
- package/dist/esm/components/Routes/RoutesExpanded.js +12 -70
- package/dist/esm/components/Routes/RoutesExpanded.js.map +1 -1
- package/dist/esm/components/Routes/RoutesExpanded.style.d.ts +1 -3
- package/dist/esm/components/Routes/RoutesExpanded.style.js +4 -16
- package/dist/esm/components/Routes/RoutesExpanded.style.js.map +1 -1
- package/dist/esm/components/Search/SearchInput.d.ts +5 -2
- package/dist/esm/components/Search/SearchInput.js +7 -3
- package/dist/esm/components/Search/SearchInput.js.map +1 -1
- package/dist/esm/components/Search/SearchInput.style.d.ts +4 -1
- package/dist/esm/components/Search/SearchInput.style.js +25 -3
- package/dist/esm/components/Search/SearchInput.style.js.map +1 -1
- package/dist/esm/components/Search/SearchNotFound.style.js +2 -1
- package/dist/esm/components/Search/SearchNotFound.style.js.map +1 -1
- package/dist/esm/components/Select.js +1 -1
- package/dist/esm/components/Select.js.map +1 -1
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js +1 -1
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.js +2 -7
- package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +2 -2
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.js +0 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.js.map +1 -1
- package/dist/esm/components/Step/CircularProgress.style.js +1 -1
- package/dist/esm/components/Step/CircularProgress.style.js.map +1 -1
- package/dist/esm/components/StepActions/StepActions.js +3 -3
- package/dist/esm/components/StepActions/StepActions.style.js +1 -1
- package/dist/esm/components/StepActions/StepActions.style.js.map +1 -1
- package/dist/esm/components/TextFitter/TextFitter.js +1 -1
- package/dist/esm/components/TextFitter/TextFitter.js.map +1 -1
- package/dist/esm/components/Token/Token.js +2 -2
- package/dist/esm/components/Token/Token.js.map +1 -1
- package/dist/esm/components/Token/Token.style.js +1 -1
- package/dist/esm/components/Token/Token.style.js.map +1 -1
- package/dist/esm/components/TokenList/TokenDetailsSheet.js.map +1 -1
- package/dist/esm/components/TokenList/TokenDetailsSheetContent.js.map +1 -1
- package/dist/esm/components/TokenList/TokenDetailsSheetContent.style.js +1 -1
- package/dist/esm/components/TokenList/TokenDetailsSheetContent.style.js.map +1 -1
- package/dist/esm/components/TokenList/TokenList.js +3 -3
- package/dist/esm/components/TokenList/TokenList.js.map +1 -1
- package/dist/esm/components/TokenList/TokenList.style.d.ts +2 -1
- package/dist/esm/components/TokenList/TokenList.style.js +6 -1
- package/dist/esm/components/TokenList/TokenList.style.js.map +1 -1
- package/dist/esm/components/TokenList/TokenListItem.js +16 -7
- package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.js +13 -7
- package/dist/esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
- package/dist/esm/components/TokenList/types.d.ts +3 -0
- package/dist/esm/components/TokenRate/TokenRate.js +1 -1
- package/dist/esm/components/TokenRate/TokenRate.js.map +1 -1
- package/dist/esm/components/TokenRate/TokenRate.style.js +1 -1
- package/dist/esm/components/TokenRate/TokenRate.style.js.map +1 -1
- package/dist/esm/components/TransactionDetails.js +7 -9
- 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/timer/time.js +1 -1
- package/dist/esm/hooks/timer/time.js.map +1 -1
- package/dist/esm/hooks/timer/useTimer.js.map +1 -1
- package/dist/esm/hooks/useAvailableChains.js +3 -2
- package/dist/esm/hooks/useAvailableChains.js.map +1 -1
- package/dist/esm/hooks/useChains.js +4 -4
- package/dist/esm/hooks/useChains.js.map +1 -1
- package/dist/esm/hooks/useExpansionRoutes.d.ts +2 -0
- package/dist/esm/hooks/useExpansionRoutes.js +26 -0
- package/dist/esm/hooks/useExpansionRoutes.js.map +1 -0
- package/dist/esm/hooks/useHasChainExpansion.d.ts +2 -0
- package/dist/esm/hooks/useHasChainExpansion.js +16 -0
- package/dist/esm/hooks/useHasChainExpansion.js.map +1 -0
- package/dist/esm/hooks/useIsBatchingSupported.js +4 -1
- package/dist/esm/hooks/useIsBatchingSupported.js.map +1 -1
- package/dist/esm/hooks/useListHeight.js +1 -1
- package/dist/esm/hooks/useListHeight.js.map +1 -1
- package/dist/esm/hooks/useRouteExecution.js +3 -3
- package/dist/esm/hooks/useRouteExecution.js.map +1 -1
- package/dist/esm/hooks/useRoutes.js +6 -3
- package/dist/esm/hooks/useRoutes.js.map +1 -1
- package/dist/esm/hooks/useToAddressReset.js +10 -2
- package/dist/esm/hooks/useToAddressReset.js.map +1 -1
- package/dist/esm/hooks/useTokenBalance.js.map +1 -1
- package/dist/esm/hooks/useTokenBalances.js +1 -0
- package/dist/esm/hooks/useTokenBalances.js.map +1 -1
- package/dist/esm/hooks/useTokenSearch.js +6 -4
- package/dist/esm/hooks/useTokenSearch.js.map +1 -1
- package/dist/esm/hooks/useTokens.js +5 -3
- package/dist/esm/hooks/useTokens.js.map +1 -1
- package/dist/esm/hooks/useTools.js +5 -3
- package/dist/esm/hooks/useTools.js.map +1 -1
- package/dist/esm/hooks/useTransactionDetails.js.map +1 -1
- package/dist/esm/hooks/useWidgetEvents.js.map +1 -1
- package/dist/esm/i18n/bn.json +2 -1
- package/dist/esm/i18n/de.json +2 -1
- package/dist/esm/i18n/en.json +2 -1
- package/dist/esm/i18n/es.json +2 -1
- package/dist/esm/i18n/fr.json +2 -1
- package/dist/esm/i18n/hi.json +1 -0
- package/dist/esm/i18n/id.json +2 -1
- package/dist/esm/i18n/it.json +2 -1
- package/dist/esm/i18n/ja.json +2 -1
- package/dist/esm/i18n/ko.json +2 -1
- package/dist/esm/i18n/pl.json +350 -0
- package/dist/esm/i18n/pt.json +2 -1
- package/dist/esm/i18n/th.json +2 -1
- package/dist/esm/i18n/tr.json +2 -1
- package/dist/esm/i18n/uk.json +14 -13
- package/dist/esm/i18n/vi.json +2 -1
- package/dist/esm/i18n/zh.json +2 -1
- package/dist/esm/index.d.ts +8 -8
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/pages/RoutesPage/RoutesPage.js +1 -1
- package/dist/esm/pages/RoutesPage/RoutesPage.js.map +1 -1
- package/dist/esm/pages/SelectChainPage/SelectChainPage.js +7 -33
- package/dist/esm/pages/SelectChainPage/SelectChainPage.js.map +1 -1
- package/dist/esm/pages/SelectEnabledToolsPage.js +1 -1
- package/dist/esm/pages/SelectEnabledToolsPage.js.map +1 -1
- package/dist/esm/pages/SelectTokenPage/SearchTokenInput.js +1 -1
- package/dist/esm/pages/SelectTokenPage/SearchTokenInput.js.map +1 -1
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js +20 -11
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js +1 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +2 -2
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCard.style.js +1 -1
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCard.style.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCardExpandable.js +1 -3
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCardExpandable.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryPage.js +8 -5
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryPage.js.map +1 -1
- package/dist/esm/pages/TransactionPage/RouteTracker.js +2 -2
- package/dist/esm/pages/TransactionPage/RouteTracker.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js +4 -4
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
- package/dist/esm/providers/I18nProvider/I18nProvider.js +8 -4
- package/dist/esm/providers/I18nProvider/I18nProvider.js.map +1 -1
- package/dist/esm/providers/QueryClientProvider.js.map +1 -1
- package/dist/esm/providers/WalletProvider/SDKProviders.js +1 -1
- package/dist/esm/providers/WalletProvider/SDKProviders.js.map +1 -1
- package/dist/esm/providers/WalletProvider/SuiBaseProvider.js +1 -1
- package/dist/esm/providers/WalletProvider/SuiBaseProvider.js.map +1 -1
- package/dist/esm/providers/WalletProvider/WalletProvider.js +1 -1
- package/dist/esm/providers/WalletProvider/useExternalWalletProvider.js +1 -1
- package/dist/esm/stores/chains/ChainOrderStore.js +5 -3
- package/dist/esm/stores/chains/ChainOrderStore.js.map +1 -1
- package/dist/esm/stores/form/FormStore.js +1 -1
- package/dist/esm/stores/form/FormStore.js.map +1 -1
- package/dist/esm/stores/form/FormUpdater.js +21 -5
- package/dist/esm/stores/form/FormUpdater.js.map +1 -1
- package/dist/esm/stores/form/URLSearchParamsBuilder.js +1 -1
- package/dist/esm/stores/form/URLSearchParamsBuilder.js.map +1 -1
- package/dist/esm/stores/form/useFormRef.js.map +1 -1
- package/dist/esm/stores/routes/createRouteExecutionStore.js +1 -1
- package/dist/esm/stores/routes/createRouteExecutionStore.js.map +1 -1
- package/dist/esm/stores/settings/useSettingsStore.js.map +1 -1
- package/dist/esm/types/widget.d.ts +25 -6
- package/dist/esm/types/widget.js +6 -0
- package/dist/esm/types/widget.js.map +1 -1
- package/dist/esm/utils/deepEqual.js +2 -2
- package/dist/esm/utils/deepEqual.js.map +1 -1
- package/dist/esm/utils/item.d.ts +5 -15
- package/dist/esm/utils/item.js +23 -19
- package/dist/esm/utils/item.js.map +1 -1
- package/dist/esm/utils/widgetSize.d.ts +3 -0
- package/dist/esm/utils/widgetSize.js +11 -0
- package/dist/esm/utils/widgetSize.js.map +1 -0
- package/package.json +7 -6
- package/package.json.tmp +12 -6
- package/src/AppDefault.tsx +3 -3
- package/src/AppProvider.tsx +2 -2
- package/src/components/ActiveTransactions/ActiveTransactions.style.ts +1 -1
- package/src/components/AmountInput/AmountInput.style.tsx +1 -1
- package/src/components/AppContainer.tsx +6 -14
- package/src/components/Avatar/Avatar.style.tsx +2 -2
- package/src/components/Card/CardButton.style.tsx +1 -1
- package/src/components/Card/CardHeader.tsx +1 -1
- package/src/components/Card/CardLabel.tsx +1 -1
- package/src/components/Card/CardTitle.tsx +1 -1
- package/src/components/ChainSelect/ChainSelect.tsx +1 -1
- package/src/components/ChainSelect/useChainSelect.ts +37 -23
- package/src/components/Chains/ChainList.style.tsx +59 -0
- package/src/components/Chains/ChainList.tsx +86 -0
- package/src/components/Chains/ChainListItem.tsx +52 -0
- package/src/components/Chains/ChainSearchInput.tsx +52 -0
- package/src/components/Chains/ChainsExpanded.style.tsx +21 -0
- package/src/components/Chains/ChainsExpanded.tsx +28 -0
- package/src/components/Chains/SelectChainContent.tsx +116 -0
- package/src/components/Chains/VirtualizedChainList.tsx +84 -0
- package/src/components/Expansion/Expansion.tsx +62 -0
- package/src/components/Expansion/ExpansionTransition.tsx +76 -0
- package/src/components/Header/Header.style.ts +0 -1
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Header/NavigationHeader.tsx +2 -2
- package/src/components/Header/SettingsButton.style.tsx +1 -1
- package/src/components/ListItem/ListItem.tsx +1 -1
- package/src/components/ListItemButton.tsx +17 -1
- package/src/components/ListItemText.tsx +1 -1
- package/src/components/ProgressToNextUpdate.tsx +1 -1
- package/src/components/RouteCard/RouteCard.tsx +4 -4
- package/src/components/RouteCard/RouteCardEssentials.tsx +5 -5
- package/src/components/RouteCard/RouteNotFoundCard.tsx +1 -0
- package/src/components/RouteCard/getMatchingLabels.ts +11 -3
- package/src/components/Routes/Routes.tsx +1 -1
- package/src/components/Routes/RoutesContent.tsx +137 -0
- package/src/components/Routes/RoutesExpanded.style.ts +4 -18
- package/src/components/Routes/RoutesExpanded.tsx +33 -158
- package/src/components/Search/SearchInput.style.tsx +36 -3
- package/src/components/Search/SearchInput.tsx +31 -5
- package/src/components/Search/SearchNotFound.style.tsx +2 -1
- package/src/components/Select.tsx +1 -1
- package/src/components/SelectTokenButton/SelectTokenButton.style.tsx +1 -1
- package/src/components/SendToWallet/SendToWalletButton.tsx +2 -3
- package/src/components/Skeleton/WidgetSkeleton.style.tsx +0 -1
- package/src/components/Step/CircularProgress.style.tsx +1 -1
- package/src/components/StepActions/StepActions.style.tsx +1 -1
- package/src/components/StepActions/StepActions.tsx +3 -3
- package/src/components/TextFitter/TextFitter.tsx +1 -1
- package/src/components/Token/Token.style.tsx +1 -1
- package/src/components/Token/Token.tsx +2 -2
- package/src/components/TokenList/TokenDetailsSheet.tsx +1 -0
- package/src/components/TokenList/TokenDetailsSheetContent.style.tsx +1 -1
- package/src/components/TokenList/TokenDetailsSheetContent.tsx +1 -1
- package/src/components/TokenList/TokenList.style.tsx +11 -1
- package/src/components/TokenList/TokenList.tsx +6 -2
- package/src/components/TokenList/TokenListItem.tsx +53 -37
- package/src/components/TokenList/VirtualizedTokenList.tsx +17 -5
- package/src/components/TokenList/types.ts +3 -0
- package/src/components/TokenRate/TokenRate.style.ts +1 -1
- package/src/components/TokenRate/TokenRate.tsx +1 -1
- package/src/components/TransactionDetails.tsx +9 -9
- package/src/config/version.ts +1 -1
- package/src/hooks/timer/time.ts +1 -1
- package/src/hooks/timer/useTimer.ts +1 -1
- package/src/hooks/useAvailableChains.ts +8 -2
- package/src/hooks/useChains.ts +10 -4
- package/src/hooks/useExpansionRoutes.ts +29 -0
- package/src/hooks/useHasChainExpansion.ts +19 -0
- package/src/hooks/useIsBatchingSupported.ts +5 -2
- package/src/hooks/useListHeight.ts +1 -1
- package/src/hooks/useRouteExecution.ts +3 -3
- package/src/hooks/useRoutes.ts +8 -2
- package/src/hooks/useToAddressReset.ts +32 -21
- package/src/hooks/useTokenBalance.ts +1 -1
- package/src/hooks/useTokenBalances.ts +1 -0
- package/src/hooks/useTokenSearch.ts +23 -6
- package/src/hooks/useTokens.ts +16 -6
- package/src/hooks/useTools.ts +12 -4
- package/src/hooks/useTransactionDetails.ts +1 -1
- package/src/hooks/useWidgetEvents.ts +1 -0
- package/src/i18n/bn.json +2 -1
- package/src/i18n/de.json +2 -1
- package/src/i18n/en.json +2 -1
- package/src/i18n/es.json +2 -1
- package/src/i18n/fr.json +2 -1
- package/src/i18n/hi.json +1 -0
- package/src/i18n/id.json +2 -1
- package/src/i18n/it.json +2 -1
- package/src/i18n/ja.json +2 -1
- package/src/i18n/ko.json +2 -1
- package/src/i18n/pl.json +350 -0
- package/src/i18n/pt.json +2 -1
- package/src/i18n/th.json +2 -1
- package/src/i18n/tr.json +2 -1
- package/src/i18n/uk.json +14 -13
- package/src/i18n/vi.json +2 -1
- package/src/i18n/zh.json +2 -1
- package/src/index.ts +8 -8
- package/src/pages/RoutesPage/RoutesPage.tsx +1 -1
- package/src/pages/SelectChainPage/SelectChainPage.tsx +18 -71
- package/src/pages/SelectEnabledToolsPage.tsx +1 -1
- package/src/pages/SelectTokenPage/SearchTokenInput.tsx +2 -0
- package/src/pages/SelectTokenPage/SelectTokenPage.tsx +44 -22
- package/src/pages/SendToWallet/BookmarksPage.tsx +1 -1
- package/src/pages/SendToWallet/SendToWalletPage.style.tsx +3 -3
- package/src/pages/SettingsPage/SettingsCard/SettingCard.style.tsx +1 -1
- package/src/pages/SettingsPage/SettingsCard/SettingCardExpandable.tsx +1 -1
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +1 -1
- package/src/pages/TransactionHistoryPage/TransactionHistoryPage.tsx +12 -7
- package/src/pages/TransactionPage/RouteTracker.tsx +2 -2
- package/src/pages/TransactionPage/TokenValueBottomSheet.tsx +4 -4
- package/src/providers/I18nProvider/I18nProvider.tsx +10 -4
- package/src/providers/QueryClientProvider.tsx +1 -1
- package/src/providers/WalletProvider/SDKProviders.tsx +1 -1
- package/src/providers/WalletProvider/SuiBaseProvider.tsx +1 -1
- package/src/providers/WalletProvider/WalletProvider.tsx +1 -1
- package/src/providers/WalletProvider/useExternalWalletProvider.ts +1 -1
- package/src/stores/chains/ChainOrderStore.tsx +8 -3
- package/src/stores/form/FormStore.tsx +1 -1
- package/src/stores/form/FormUpdater.tsx +40 -6
- package/src/stores/form/URLSearchParamsBuilder.tsx +1 -1
- package/src/stores/form/useFormRef.ts +50 -54
- package/src/stores/routes/createRouteExecutionStore.ts +1 -1
- package/src/stores/settings/useSettingsStore.ts +1 -0
- package/src/types/widget.ts +29 -6
- package/src/utils/deepEqual.ts +2 -2
- package/src/utils/item.ts +46 -40
- package/src/utils/widgetSize.ts +17 -0
package/src/i18n/pl.json
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": {
|
|
3
|
+
"name": "Polski",
|
|
4
|
+
"title": "Język"
|
|
5
|
+
},
|
|
6
|
+
"format": {
|
|
7
|
+
"currency": "",
|
|
8
|
+
"number": "",
|
|
9
|
+
"percent": "",
|
|
10
|
+
"tokenAmount": ""
|
|
11
|
+
},
|
|
12
|
+
"button": {
|
|
13
|
+
"auto": "",
|
|
14
|
+
"bookmark": "",
|
|
15
|
+
"bookmarks": "",
|
|
16
|
+
"bridge": "",
|
|
17
|
+
"bridgeReview": "",
|
|
18
|
+
"buy": "",
|
|
19
|
+
"cancel": "",
|
|
20
|
+
"checkoutReview": "",
|
|
21
|
+
"close": "",
|
|
22
|
+
"confirm": "",
|
|
23
|
+
"connectAnotherWallet": "",
|
|
24
|
+
"connectChainWallet": "",
|
|
25
|
+
"connectWallet": "",
|
|
26
|
+
"contactSupport": "",
|
|
27
|
+
"continue": "",
|
|
28
|
+
"copyAddress": "",
|
|
29
|
+
"dark": "",
|
|
30
|
+
"delete": "",
|
|
31
|
+
"deposit": "",
|
|
32
|
+
"depositReview": "",
|
|
33
|
+
"disconnect": "",
|
|
34
|
+
"done": "",
|
|
35
|
+
"exchange": "",
|
|
36
|
+
"getGas": "",
|
|
37
|
+
"learnMore": "",
|
|
38
|
+
"light": "",
|
|
39
|
+
"max": "",
|
|
40
|
+
"ok": "",
|
|
41
|
+
"options": "",
|
|
42
|
+
"removeTransaction": "",
|
|
43
|
+
"reset": "",
|
|
44
|
+
"resetSettings": "",
|
|
45
|
+
"seeDetails": "",
|
|
46
|
+
"showAll": "",
|
|
47
|
+
"startBridging": "",
|
|
48
|
+
"startSwapping": "",
|
|
49
|
+
"swap": "",
|
|
50
|
+
"swapReview": "",
|
|
51
|
+
"system": "",
|
|
52
|
+
"tryAgain": "",
|
|
53
|
+
"viewCoverage": "",
|
|
54
|
+
"viewOnExplorer": ""
|
|
55
|
+
},
|
|
56
|
+
"header": {
|
|
57
|
+
"activeTransactions": "",
|
|
58
|
+
"amount": "",
|
|
59
|
+
"bookmarkedWallets": "",
|
|
60
|
+
"bridge": "",
|
|
61
|
+
"checkout": "",
|
|
62
|
+
"checkoutDetails": "",
|
|
63
|
+
"deposit": "",
|
|
64
|
+
"depositDetails": "",
|
|
65
|
+
"depositTo": "",
|
|
66
|
+
"exchange": "",
|
|
67
|
+
"from": "",
|
|
68
|
+
"gas": "",
|
|
69
|
+
"payWith": "",
|
|
70
|
+
"receive": "",
|
|
71
|
+
"received": "",
|
|
72
|
+
"recentWallets": "",
|
|
73
|
+
"refunded": "",
|
|
74
|
+
"selectChain": "",
|
|
75
|
+
"selectWallet": "",
|
|
76
|
+
"send": "",
|
|
77
|
+
"sendToWallet": "",
|
|
78
|
+
"settings": "",
|
|
79
|
+
"swap": "",
|
|
80
|
+
"to": "",
|
|
81
|
+
"transactionDetails": "",
|
|
82
|
+
"transactionHistory": "",
|
|
83
|
+
"walletConnected": "",
|
|
84
|
+
"youGet": "",
|
|
85
|
+
"youPay": ""
|
|
86
|
+
},
|
|
87
|
+
"info": {
|
|
88
|
+
"message": {
|
|
89
|
+
"accountDeployedMessage": "",
|
|
90
|
+
"autoRefuel": "",
|
|
91
|
+
"emptyActiveTransactions": "",
|
|
92
|
+
"emptyBridgesList": "",
|
|
93
|
+
"emptyChainList": "",
|
|
94
|
+
"emptyExchangesList": "",
|
|
95
|
+
"emptyTokenList": "",
|
|
96
|
+
"emptyTransactionHistory": "",
|
|
97
|
+
"routeNotFound": "",
|
|
98
|
+
"toAddressIsRequired": "",
|
|
99
|
+
"missingRouteRequiredAccount": ""
|
|
100
|
+
},
|
|
101
|
+
"title": {
|
|
102
|
+
"autoRefuel": "",
|
|
103
|
+
"emptyActiveTransactions": "",
|
|
104
|
+
"emptyTransactionHistory": "",
|
|
105
|
+
"routeNotFound": ""
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"success": {
|
|
109
|
+
"message": {
|
|
110
|
+
"exchangePartiallySuccessful": ""
|
|
111
|
+
},
|
|
112
|
+
"title": {
|
|
113
|
+
"bridgePartiallySuccessful": "",
|
|
114
|
+
"bridgeSuccessful": "",
|
|
115
|
+
"depositSuccessful": "",
|
|
116
|
+
"checkoutSuccessful": "",
|
|
117
|
+
"refundIssued": "",
|
|
118
|
+
"swapPartiallySuccessful": "",
|
|
119
|
+
"swapSuccessful": ""
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"warning": {
|
|
123
|
+
"message": {
|
|
124
|
+
"accountNotDeployedMessage": "",
|
|
125
|
+
"lowAddressActivity": "",
|
|
126
|
+
"deleteActiveTransactions": "",
|
|
127
|
+
"deleteTransactionHistory": "",
|
|
128
|
+
"fundsLossPrevention": "",
|
|
129
|
+
"highValueLoss": "",
|
|
130
|
+
"insufficientFunds": "",
|
|
131
|
+
"insufficientGas": "",
|
|
132
|
+
"rateChanged": "",
|
|
133
|
+
"resetSettings": "",
|
|
134
|
+
"slippageOutsideRecommendedLimits": "",
|
|
135
|
+
"slippageUnderRecommendedLimits": ""
|
|
136
|
+
},
|
|
137
|
+
"title": {
|
|
138
|
+
"deleteActiveTransactions": "",
|
|
139
|
+
"deleteTransaction": "",
|
|
140
|
+
"deleteTransactionHistory": "",
|
|
141
|
+
"highValueLoss": "",
|
|
142
|
+
"insufficientGas": "",
|
|
143
|
+
"rateChanged": "",
|
|
144
|
+
"resetSettings": "",
|
|
145
|
+
"lowAddressActivity": ""
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"error": {
|
|
149
|
+
"message": {
|
|
150
|
+
"allowanceRequired": "",
|
|
151
|
+
"insufficientFunds": "",
|
|
152
|
+
"rateLimitExceeded": "",
|
|
153
|
+
"remainInYourWallet": "",
|
|
154
|
+
"signatureRejected": "",
|
|
155
|
+
"slippageThreshold": "",
|
|
156
|
+
"thirdPartyError": "",
|
|
157
|
+
"transactionCanceled": "",
|
|
158
|
+
"transactionConflict": "",
|
|
159
|
+
"transactionExpired": "",
|
|
160
|
+
"transactionRejected": "",
|
|
161
|
+
"transactionFailed": "",
|
|
162
|
+
"transactionNotSent": "",
|
|
163
|
+
"transactionSimulationFailed": "",
|
|
164
|
+
"unknown": "",
|
|
165
|
+
"walletChangedDuringExecution": ""
|
|
166
|
+
},
|
|
167
|
+
"title": {
|
|
168
|
+
"allowanceRequired": "",
|
|
169
|
+
"balanceIsTooLow": "",
|
|
170
|
+
"bookmarkAlreadyExists": "",
|
|
171
|
+
"bookmarkNameRequired": "",
|
|
172
|
+
"chainSwitch": "",
|
|
173
|
+
"exchangeRateUpdateCanceled": "",
|
|
174
|
+
"gasLimitIsTooLow": "",
|
|
175
|
+
"insufficientFunds": "",
|
|
176
|
+
"rateLimitExceeded": "",
|
|
177
|
+
"signatureRejected": "",
|
|
178
|
+
"slippageNotMet": "",
|
|
179
|
+
"thirdPartyError": "",
|
|
180
|
+
"transactionCanceled": "",
|
|
181
|
+
"transactionConflict": "",
|
|
182
|
+
"transactionExpired": "",
|
|
183
|
+
"transactionFailed": "",
|
|
184
|
+
"transactionRejected": "",
|
|
185
|
+
"transactionSimulationFailed": "",
|
|
186
|
+
"transactionUnderpriced": "",
|
|
187
|
+
"transactionUnprepared": "",
|
|
188
|
+
"unknown": "",
|
|
189
|
+
"walletAddressInvalid": "",
|
|
190
|
+
"walletAddressInvalid_chain": "",
|
|
191
|
+
"walletAddressRequired": "",
|
|
192
|
+
"walletChainTypeInvalid": "",
|
|
193
|
+
"walletMismatch": ""
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"tooltip": {
|
|
197
|
+
"deselectAll": "",
|
|
198
|
+
"estimatedTime": "",
|
|
199
|
+
"feeCollection": "",
|
|
200
|
+
"minReceived": "",
|
|
201
|
+
"notFound": {
|
|
202
|
+
"text": "",
|
|
203
|
+
"title": ""
|
|
204
|
+
},
|
|
205
|
+
"relayerService": "",
|
|
206
|
+
"numberOfSteps": "",
|
|
207
|
+
"priceImpact": "",
|
|
208
|
+
"progressToNextUpdate": "",
|
|
209
|
+
"selectAll": "",
|
|
210
|
+
"settingsModified": "",
|
|
211
|
+
"slippage": ""
|
|
212
|
+
},
|
|
213
|
+
"main": {
|
|
214
|
+
"allTokens": "",
|
|
215
|
+
"bridgeStepDetails": "",
|
|
216
|
+
"checkoutStepDetails": "",
|
|
217
|
+
"currentAmount": "",
|
|
218
|
+
"depositStepDetails": "",
|
|
219
|
+
"featuredTokens": "",
|
|
220
|
+
"fees": {
|
|
221
|
+
"defaultIntegrator": "",
|
|
222
|
+
"relayerService": "",
|
|
223
|
+
"estimated": "",
|
|
224
|
+
"free": "",
|
|
225
|
+
"integrator": "",
|
|
226
|
+
"network": "",
|
|
227
|
+
"paid": "",
|
|
228
|
+
"provider": ""
|
|
229
|
+
},
|
|
230
|
+
"from": "",
|
|
231
|
+
"inProgress": "",
|
|
232
|
+
"maxSlippage": "",
|
|
233
|
+
"minReceived": "",
|
|
234
|
+
"myTokens": "",
|
|
235
|
+
"onChain": "",
|
|
236
|
+
"ownedBy": "",
|
|
237
|
+
"popularTokens": "",
|
|
238
|
+
"priceImpact": "",
|
|
239
|
+
"process": {
|
|
240
|
+
"bridge": {
|
|
241
|
+
"actionRequired": "",
|
|
242
|
+
"done": "",
|
|
243
|
+
"pending": "",
|
|
244
|
+
"started": ""
|
|
245
|
+
},
|
|
246
|
+
"checkout": {
|
|
247
|
+
"done": ""
|
|
248
|
+
},
|
|
249
|
+
"deposit": {
|
|
250
|
+
"done": ""
|
|
251
|
+
},
|
|
252
|
+
"receivingChain": {
|
|
253
|
+
"done": "",
|
|
254
|
+
"partial": "",
|
|
255
|
+
"pending": "",
|
|
256
|
+
"refunded": ""
|
|
257
|
+
},
|
|
258
|
+
"swap": {
|
|
259
|
+
"actionRequired": "",
|
|
260
|
+
"done": "",
|
|
261
|
+
"pending": "",
|
|
262
|
+
"started": ""
|
|
263
|
+
},
|
|
264
|
+
"switchChain": {
|
|
265
|
+
"actionRequired": "",
|
|
266
|
+
"done": ""
|
|
267
|
+
},
|
|
268
|
+
"permit": {
|
|
269
|
+
"actionRequired": "",
|
|
270
|
+
"done": "",
|
|
271
|
+
"pending": "",
|
|
272
|
+
"started": ""
|
|
273
|
+
},
|
|
274
|
+
"tokenAllowance": {
|
|
275
|
+
"actionRequired": "",
|
|
276
|
+
"done": "",
|
|
277
|
+
"pending": "",
|
|
278
|
+
"started": ""
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"quotedAmount": "",
|
|
282
|
+
"rateChange": "",
|
|
283
|
+
"receiving": "",
|
|
284
|
+
"refuelStepDetails": "",
|
|
285
|
+
"selectChain": "",
|
|
286
|
+
"selectChainAndToken": "",
|
|
287
|
+
"selectToken": "",
|
|
288
|
+
"sendToAddress": "",
|
|
289
|
+
"sendToWallet": "",
|
|
290
|
+
"sending": "",
|
|
291
|
+
"sentToAddress": "",
|
|
292
|
+
"stepBridge": "",
|
|
293
|
+
"stepBridgeAndBuy": "",
|
|
294
|
+
"stepBridgeAndDeposit": "",
|
|
295
|
+
"stepBuy": "",
|
|
296
|
+
"stepDeposit": "",
|
|
297
|
+
"stepDetails": "",
|
|
298
|
+
"stepSwap": "",
|
|
299
|
+
"stepSwapAndBridge": "",
|
|
300
|
+
"stepSwapAndBuy": "",
|
|
301
|
+
"stepSwapAndDeposit": "",
|
|
302
|
+
"swapStepDetails": "",
|
|
303
|
+
"transferId": "",
|
|
304
|
+
"tags": {
|
|
305
|
+
"cheapest": "",
|
|
306
|
+
"fastest": "",
|
|
307
|
+
"gasless": ""
|
|
308
|
+
},
|
|
309
|
+
"to": "",
|
|
310
|
+
"tokenOnChain": "",
|
|
311
|
+
"tokenOnChainAmount": "",
|
|
312
|
+
"tokenSearch": "",
|
|
313
|
+
"valueLoss": "",
|
|
314
|
+
"searchChain": "",
|
|
315
|
+
"searchChains": "",
|
|
316
|
+
"searchBridges": "",
|
|
317
|
+
"searchExchanges": ""
|
|
318
|
+
},
|
|
319
|
+
"settings": {
|
|
320
|
+
"appearance": "",
|
|
321
|
+
"enabledBridges": "",
|
|
322
|
+
"enabledExchanges": "",
|
|
323
|
+
"gasPrice": {
|
|
324
|
+
"fast": "",
|
|
325
|
+
"normal": "",
|
|
326
|
+
"slow": "",
|
|
327
|
+
"title": ""
|
|
328
|
+
},
|
|
329
|
+
"routePriority": "",
|
|
330
|
+
"slippage": "",
|
|
331
|
+
"custom": "",
|
|
332
|
+
"resetSettings": ""
|
|
333
|
+
},
|
|
334
|
+
"sendToWallet": {
|
|
335
|
+
"addBookmark": "",
|
|
336
|
+
"bookmarkWallet": "",
|
|
337
|
+
"confirmWalletAddress": "",
|
|
338
|
+
"connectedWallets": "",
|
|
339
|
+
"enterAddress_long": "",
|
|
340
|
+
"enterAddress_short": "",
|
|
341
|
+
"enterName": "",
|
|
342
|
+
"noBookmarkedWallets": "",
|
|
343
|
+
"noConnectedWallets": "",
|
|
344
|
+
"noRecentWallets": ""
|
|
345
|
+
},
|
|
346
|
+
"tokenMetric": {
|
|
347
|
+
"currentPrice": "",
|
|
348
|
+
"contractAddress": ""
|
|
349
|
+
}
|
|
350
|
+
}
|
package/src/i18n/pt.json
CHANGED
|
@@ -309,8 +309,9 @@
|
|
|
309
309
|
"to": "Para",
|
|
310
310
|
"tokenOnChain": "{{tokenSymbol}} na {{chainName}}",
|
|
311
311
|
"tokenOnChainAmount": "{{amount, numberExt}} {{tokenSymbol}} na {{chainName}}",
|
|
312
|
-
"tokenSearch": "Pesquisar
|
|
312
|
+
"tokenSearch": "Pesquisar por token ou endereço",
|
|
313
313
|
"valueLoss": "Perda de Valor",
|
|
314
|
+
"searchChain": "Pesquisar cadeia",
|
|
314
315
|
"searchChains": "Pesquisar pelo nome da rede",
|
|
315
316
|
"searchBridges": "Pesquisar pelo nome da ponte",
|
|
316
317
|
"searchExchanges": "Pesquisar pelo nome da corretora"
|
package/src/i18n/th.json
CHANGED
|
@@ -309,8 +309,9 @@
|
|
|
309
309
|
"to": "ถึง",
|
|
310
310
|
"tokenOnChain": "{{tokenSymbol}} บน {{chainName}}",
|
|
311
311
|
"tokenOnChainAmount": "",
|
|
312
|
-
"tokenSearch": "
|
|
312
|
+
"tokenSearch": "",
|
|
313
313
|
"valueLoss": "มูลค่าที่สูญเสีย",
|
|
314
|
+
"searchChain": "",
|
|
314
315
|
"searchChains": "",
|
|
315
316
|
"searchBridges": "",
|
|
316
317
|
"searchExchanges": ""
|
package/src/i18n/tr.json
CHANGED
|
@@ -309,8 +309,9 @@
|
|
|
309
309
|
"to": "Şuna",
|
|
310
310
|
"tokenOnChain": "{{chainName}} üzerindeki {{tokenSymbol}}",
|
|
311
311
|
"tokenOnChainAmount": "",
|
|
312
|
-
"tokenSearch": "
|
|
312
|
+
"tokenSearch": "",
|
|
313
313
|
"valueLoss": "Değer kaybı",
|
|
314
|
+
"searchChain": "",
|
|
314
315
|
"searchChains": "Zincir adına göre ara",
|
|
315
316
|
"searchBridges": "Köprü adına göre ara",
|
|
316
317
|
"searchExchanges": "Borsa adına göre ara"
|
package/src/i18n/uk.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"close": "Закрити",
|
|
22
22
|
"confirm": "Підтвердити",
|
|
23
23
|
"connectAnotherWallet": "Під'єднати інший гаманець",
|
|
24
|
-
"connectChainWallet": "",
|
|
24
|
+
"connectChainWallet": "Виберіть {{chain}} гаманець",
|
|
25
25
|
"connectWallet": "Під'єднати гаманець",
|
|
26
26
|
"contactSupport": "Служба підтримки",
|
|
27
27
|
"continue": "Продовжити",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"startSwapping": "Почати своп",
|
|
49
49
|
"swap": "Своп",
|
|
50
50
|
"swapReview": "Переглянути своп",
|
|
51
|
-
"system": "",
|
|
51
|
+
"system": "Системна",
|
|
52
52
|
"tryAgain": "Спробувати ще раз",
|
|
53
53
|
"viewCoverage": "Переглянути покриття",
|
|
54
54
|
"viewOnExplorer": "Переглянути в оглядачі"
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"gas": "Газ",
|
|
69
69
|
"payWith": "Сплатити за допомогою",
|
|
70
70
|
"receive": "Отримаєте",
|
|
71
|
-
"received": "",
|
|
71
|
+
"received": "Отримано",
|
|
72
72
|
"recentWallets": "Останні гаманці",
|
|
73
|
-
"refunded": "",
|
|
73
|
+
"refunded": "Повернено",
|
|
74
74
|
"selectChain": "Виберіть чейн",
|
|
75
75
|
"selectWallet": "Виберіть свій гаманець",
|
|
76
76
|
"send": "Відправляєте",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"info": {
|
|
88
88
|
"message": {
|
|
89
|
-
"accountDeployedMessage": "",
|
|
89
|
+
"accountDeployedMessage": "Можливо, ваш смарт-акаунт не має однакової адреси на інших чейнах. Будь ласка, перевірте, перш ніж продовжити.",
|
|
90
90
|
"autoRefuel": "У вас замало {{chainName}} газу. Продовжуючи, ви отримаєте достатньо газу, щоб завершити обмін.",
|
|
91
91
|
"emptyActiveTransactions": "Тут показуються незавершені транзакції. Після завершення ви можете знайти їх в історії транзакцій.",
|
|
92
92
|
"emptyBridgesList": "Ми не змогли знайти жодного моста, що відповідає вашому запиту",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"emptyTransactionHistory": "Історія транзакцій зберігається лише локально та буде видалена, якщо ви очистите дані браузера.",
|
|
97
97
|
"routeNotFound": "Причинами цього можуть бути: низька ліквідність, вибрана надто низька сума, занадто високі витрати на газ або відсутність маршрутів для вибраної комбінації.",
|
|
98
98
|
"toAddressIsRequired": "Для продовження переказу необхідно вказати адресу гаманця одержувача.",
|
|
99
|
-
"missingRouteRequiredAccount": ""
|
|
99
|
+
"missingRouteRequiredAccount": "Підключіть ваш гаманець {{chainName}}, щоб продовжити. {{address}}"
|
|
100
100
|
},
|
|
101
101
|
"title": {
|
|
102
102
|
"autoRefuel": "Отримати {{chainName}} газ",
|
|
@@ -149,11 +149,11 @@
|
|
|
149
149
|
"message": {
|
|
150
150
|
"allowanceRequired": "Сума переказу для {{tokenSymbol}} перевищує поточну межу. Збільшіть доступну кількість у гаманці та спробуйте ще раз.",
|
|
151
151
|
"insufficientFunds": "Не вистачає газу для покриття вартості транзакції.",
|
|
152
|
-
"rateLimitExceeded": "",
|
|
152
|
+
"rateLimitExceeded": "Занадто багато запитів зроблено за короткий проміжок часу. Будь ласка, зачекайте трохи і повторіть спробу або зверніться до служби підтримки, якщо проблема повторюватиметься.",
|
|
153
153
|
"remainInYourWallet": "{{amount, numberExt}} {{tokenSymbol}} на {{chainName}} все ще знаходяться у вашому гаманці.",
|
|
154
154
|
"signatureRejected": "Для завершення транзакції потрібен ваш підпис. {{amount, numberExt}} {{tokenSymbol}} на {{chainName}} залишаються у вашому гаманці.",
|
|
155
155
|
"slippageThreshold": "Прослизання перевищує визначений поріг. Будь ласка, зробіть запит на новий маршрут, щоб отримати нову пропозицію.",
|
|
156
|
-
"thirdPartyError": "",
|
|
156
|
+
"thirdPartyError": "Ми не змогли виконати ваш запит через проблеми з зовнішнім сервісом. Будь ласка, спробуйте ще раз або зверніться до служби підтримки, якщо проблема не зникне.",
|
|
157
157
|
"transactionCanceled": "Транзакцію скасовано.",
|
|
158
158
|
"transactionConflict": "Неможливо обробити транзакцію, оскільки вона конфліктує з іншою очікуваною транзакцією за допомогою тих же коштів. Дочекайтеся підтвердження транзакції або перевірте історію транзакцій, перш ніж спробувати ще раз.",
|
|
159
159
|
"transactionExpired": "Висота блоку перевищила максимально дозволену межу або хеш блоку вже не достатньо свіжий.",
|
|
@@ -173,10 +173,10 @@
|
|
|
173
173
|
"exchangeRateUpdateCanceled": "Оновлення обмінного курсу скасовано",
|
|
174
174
|
"gasLimitIsTooLow": "Занадто низький ліміт газу",
|
|
175
175
|
"insufficientFunds": "Недостатньо коштів",
|
|
176
|
-
"rateLimitExceeded": "",
|
|
176
|
+
"rateLimitExceeded": "Перевищено ліміт запитів",
|
|
177
177
|
"signatureRejected": "Підпис обов'язковий",
|
|
178
178
|
"slippageNotMet": "Не виконані умови прослизання",
|
|
179
|
-
"thirdPartyError": "",
|
|
179
|
+
"thirdPartyError": "Сторонній сервіс недоступний",
|
|
180
180
|
"transactionCanceled": "Транзакцію скасовано",
|
|
181
181
|
"transactionConflict": "Конфлікт між транзакціями",
|
|
182
182
|
"transactionExpired": "Транзакція прострочена",
|
|
@@ -311,12 +311,13 @@
|
|
|
311
311
|
"tokenOnChainAmount": "{{amount, numberExt}} {{tokenSymbol}} на {{chainName}}",
|
|
312
312
|
"tokenSearch": "Шукати за ім'ям або адресою",
|
|
313
313
|
"valueLoss": "Втрата вартості",
|
|
314
|
+
"searchChain": "Шукати чейн",
|
|
314
315
|
"searchChains": "Пошук за назвою чейна",
|
|
315
316
|
"searchBridges": "Пошук за назвою моста",
|
|
316
317
|
"searchExchanges": "Пошук за назвою обмінника"
|
|
317
318
|
},
|
|
318
319
|
"settings": {
|
|
319
|
-
"appearance": "",
|
|
320
|
+
"appearance": "Вигляд",
|
|
320
321
|
"enabledBridges": "Бриджі",
|
|
321
322
|
"enabledExchanges": "Обмінники",
|
|
322
323
|
"gasPrice": {
|
|
@@ -343,7 +344,7 @@
|
|
|
343
344
|
"noRecentWallets": "Немає недавніх гаманців"
|
|
344
345
|
},
|
|
345
346
|
"tokenMetric": {
|
|
346
|
-
"currentPrice": "",
|
|
347
|
-
"contractAddress": ""
|
|
347
|
+
"currentPrice": "Поточна ціна",
|
|
348
|
+
"contractAddress": "Адреса контракту"
|
|
348
349
|
}
|
|
349
350
|
}
|
package/src/i18n/vi.json
CHANGED
|
@@ -309,8 +309,9 @@
|
|
|
309
309
|
"to": "Đến",
|
|
310
310
|
"tokenOnChain": "{{tokenSymbol}} tại {{chainName}}",
|
|
311
311
|
"tokenOnChainAmount": "",
|
|
312
|
-
"tokenSearch": "
|
|
312
|
+
"tokenSearch": "",
|
|
313
313
|
"valueLoss": "Bạn sẽ mất",
|
|
314
|
+
"searchChain": "",
|
|
314
315
|
"searchChains": "",
|
|
315
316
|
"searchBridges": "",
|
|
316
317
|
"searchExchanges": ""
|
package/src/i18n/zh.json
CHANGED
|
@@ -309,8 +309,9 @@
|
|
|
309
309
|
"to": "到",
|
|
310
310
|
"tokenOnChain": "{{chainName}}链上的{{tokenSymbol}}",
|
|
311
311
|
"tokenOnChainAmount": "",
|
|
312
|
-
"tokenSearch": "
|
|
312
|
+
"tokenSearch": "",
|
|
313
313
|
"valueLoss": "资金损失",
|
|
314
|
+
"searchChain": "",
|
|
314
315
|
"searchChains": "搜索链",
|
|
315
316
|
"searchBridges": "搜索跨链桥",
|
|
316
317
|
"searchExchanges": "搜索交易所"
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type * from '@lifi/sdk'
|
|
2
|
-
export {
|
|
2
|
+
export { ChainId, ChainType, CoinKey } from '@lifi/sdk'
|
|
3
3
|
export { App as LiFiWidget } from './App.js'
|
|
4
4
|
export type { WidgetDrawer } from './AppDrawer.js'
|
|
5
5
|
export * from './components/ContractComponent/ItemPrice.js'
|
|
@@ -11,23 +11,23 @@ export { defaultMaxHeight } from './config/constants.js'
|
|
|
11
11
|
export * from './config/version.js'
|
|
12
12
|
export { useAvailableChains } from './hooks/useAvailableChains.js'
|
|
13
13
|
export { useWidgetEvents, widgetEvents } from './hooks/useWidgetEvents.js'
|
|
14
|
+
export * from './stores/bookmarks/types.js'
|
|
14
15
|
export * from './stores/form/types.js'
|
|
15
16
|
export { useFieldActions } from './stores/form/useFieldActions.js'
|
|
16
17
|
export { useFieldValues } from './stores/form/useFieldValues.js'
|
|
17
|
-
export * from './stores/bookmarks/types.js'
|
|
18
18
|
export { azureLightTheme } from './themes/azureLight.js'
|
|
19
|
+
export { createTheme } from './themes/createTheme.js'
|
|
19
20
|
export { jumperTheme } from './themes/jumper.js'
|
|
20
|
-
export { watermelonLightTheme } from './themes/watermelonLight.js'
|
|
21
|
-
export { windows95Theme } from './themes/windows95.js'
|
|
22
21
|
export * from './themes/palettes.js'
|
|
23
22
|
export * from './themes/types.js'
|
|
24
|
-
export {
|
|
23
|
+
export { watermelonLightTheme } from './themes/watermelonLight.js'
|
|
24
|
+
export { windows95Theme } from './themes/windows95.js'
|
|
25
25
|
export * from './types/events.js'
|
|
26
26
|
export type { TokenAmount } from './types/token.js'
|
|
27
27
|
export * from './types/widget.js'
|
|
28
|
-
export { getPriceImpact } from './utils/getPriceImpact.js'
|
|
29
|
-
export * from './utils/format.js'
|
|
30
|
-
export { percentFormatter } from './utils/percentFormatter.js'
|
|
31
28
|
export { compactNumberFormatter } from './utils/compactNumberFormatter.js'
|
|
32
29
|
export { currencyExtendedFormatter } from './utils/currencyExtendedFormatter.js'
|
|
30
|
+
export * from './utils/format.js'
|
|
31
|
+
export { getPriceImpact } from './utils/getPriceImpact.js'
|
|
33
32
|
export { navigationRoutes } from './utils/navigationRoutes.js'
|
|
33
|
+
export { percentFormatter } from './utils/percentFormatter.js'
|
|
@@ -38,7 +38,7 @@ export const RoutesPage: React.FC<BoxProps> = () => {
|
|
|
38
38
|
const headerAction = useMemo(
|
|
39
39
|
() => (
|
|
40
40
|
<ProgressToNextUpdate
|
|
41
|
-
updatedAt={dataUpdatedAt ||
|
|
41
|
+
updatedAt={dataUpdatedAt || Date.now()}
|
|
42
42
|
timeToUpdate={refetchTime}
|
|
43
43
|
isLoading={isFetching}
|
|
44
44
|
onClick={() => refetch()}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import type { ExtendedChain } from '@lifi/sdk'
|
|
2
|
-
import {
|
|
3
|
-
import { type FormEventHandler, useState } from 'react'
|
|
2
|
+
import { useCallback } from 'react'
|
|
4
3
|
import { useTranslation } from 'react-i18next'
|
|
5
4
|
import { useChainSelect } from '../../components/ChainSelect/useChainSelect.js'
|
|
6
|
-
import {
|
|
7
|
-
import { ListItemButton } from '../../components/ListItemButton.js'
|
|
8
|
-
import { ListItemText } from '../../components/ListItemText.js'
|
|
9
|
-
import { StickySearchInput } from '../../components/Search/SearchInput.js'
|
|
10
|
-
import { SearchList } from '../../components/Search/SearchInput.style.js'
|
|
11
|
-
import { SearchNotFound } from '../../components/Search/SearchNotFound.js'
|
|
5
|
+
import { SelectChainContent } from '../../components/Chains/SelectChainContent.js'
|
|
12
6
|
import { useTokenSelect } from '../../components/TokenList/useTokenSelect.js'
|
|
13
|
-
import { useDefaultElementId } from '../../hooks/useDefaultElementId.js'
|
|
14
7
|
import { useHeader } from '../../hooks/useHeader.js'
|
|
15
8
|
import { useNavigateBack } from '../../hooks/useNavigateBack.js'
|
|
16
|
-
import { useScrollableContainer } from '../../hooks/useScrollableContainer.js'
|
|
17
9
|
import type { SelectChainPageProps } from './types.js'
|
|
18
10
|
|
|
19
11
|
export const SelectChainPage: React.FC<SelectChainPageProps> = ({
|
|
@@ -21,75 +13,30 @@ export const SelectChainPage: React.FC<SelectChainPageProps> = ({
|
|
|
21
13
|
selectNativeToken,
|
|
22
14
|
}) => {
|
|
23
15
|
const { navigateBack } = useNavigateBack()
|
|
24
|
-
const {
|
|
16
|
+
const { setCurrentChain } = useChainSelect(formType)
|
|
25
17
|
const selectToken = useTokenSelect(formType, navigateBack)
|
|
26
|
-
const elementId = useDefaultElementId()
|
|
27
|
-
const scrollableContainer = useScrollableContainer(elementId)
|
|
28
18
|
|
|
29
19
|
const { t } = useTranslation()
|
|
30
20
|
|
|
31
21
|
useHeader(t('header.selectChain'))
|
|
32
22
|
|
|
33
|
-
const handleClick =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
chains ?? []
|
|
23
|
+
const handleClick = useCallback(
|
|
24
|
+
async (chain: ExtendedChain) => {
|
|
25
|
+
if (selectNativeToken) {
|
|
26
|
+
selectToken(chain.nativeToken.address, chain.id)
|
|
27
|
+
} else {
|
|
28
|
+
setCurrentChain(chain.id)
|
|
29
|
+
navigateBack()
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
[navigateBack, selectNativeToken, selectToken, setCurrentChain]
|
|
44
33
|
)
|
|
45
34
|
|
|
46
|
-
const handleSearchInputChange: FormEventHandler<HTMLInputElement> = (e) => {
|
|
47
|
-
const value = (e.target as HTMLInputElement).value
|
|
48
|
-
|
|
49
|
-
if (!value) {
|
|
50
|
-
setFilteredChains(chains ?? [])
|
|
51
|
-
} else {
|
|
52
|
-
setFilteredChains(
|
|
53
|
-
chains
|
|
54
|
-
? chains.filter((chain) =>
|
|
55
|
-
chain.name.toLowerCase().includes(value.toLowerCase())
|
|
56
|
-
)
|
|
57
|
-
: []
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (scrollableContainer) {
|
|
62
|
-
scrollableContainer.scrollTop = 0
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const debouncedSearchInputChange = debounce(handleSearchInputChange, 250)
|
|
67
|
-
|
|
68
35
|
return (
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
{filteredChains.length ? (
|
|
75
|
-
<SearchList className="long-list">
|
|
76
|
-
{filteredChains.map((chain) => (
|
|
77
|
-
<ListItemButton key={chain.id} onClick={() => handleClick(chain)}>
|
|
78
|
-
<ListItemAvatar>
|
|
79
|
-
<Avatar src={chain.logoURI} alt={chain.name}>
|
|
80
|
-
{chain.name[0]}
|
|
81
|
-
</Avatar>
|
|
82
|
-
</ListItemAvatar>
|
|
83
|
-
<ListItemText primary={chain.name} />
|
|
84
|
-
</ListItemButton>
|
|
85
|
-
))}
|
|
86
|
-
</SearchList>
|
|
87
|
-
) : (
|
|
88
|
-
<SearchNotFound
|
|
89
|
-
message={t('info.message.emptyChainList')}
|
|
90
|
-
adjustForStickySearchInput
|
|
91
|
-
/>
|
|
92
|
-
)}
|
|
93
|
-
</FullPageContainer>
|
|
36
|
+
<SelectChainContent
|
|
37
|
+
inExpansion={false}
|
|
38
|
+
formType={formType}
|
|
39
|
+
onSelect={handleClick}
|
|
40
|
+
/>
|
|
94
41
|
)
|
|
95
42
|
}
|