@lifi/widget 4.6.0 → 4.7.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/README.md +26 -3
- package/dist/esm/App.d.ts +1 -2
- package/dist/esm/App.d.ts.map +1 -1
- package/dist/esm/AppDrawer.d.ts +1 -2
- package/dist/esm/AppDrawer.d.ts.map +1 -1
- package/dist/esm/components/ActionRow/ActionRow.d.ts +1 -2
- package/dist/esm/components/ActionRow/ActionRow.d.ts.map +1 -1
- package/dist/esm/components/AmountInput/AmountInput.style.d.ts +2 -2
- package/dist/esm/components/AmountInput/AmountInput.style.d.ts.map +1 -1
- package/dist/esm/components/AmountInput/AmountInputEndAdornment.d.ts +1 -2
- package/dist/esm/components/AmountInput/AmountInputEndAdornment.d.ts.map +1 -1
- package/dist/esm/components/AmountInput/PriceFormHelperText.style.d.ts +1 -2
- package/dist/esm/components/AmountInput/PriceFormHelperText.style.d.ts.map +1 -1
- package/dist/esm/components/AmountInputCard/ReceiveAmountCard.js +6 -2
- package/dist/esm/components/AmountInputCard/ReceiveAmountCard.js.map +1 -1
- package/dist/esm/components/Avatar/Avatar.d.ts +1 -2
- package/dist/esm/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/esm/components/Avatar/TokenAvatar.d.ts +1 -2
- package/dist/esm/components/Avatar/TokenAvatar.d.ts.map +1 -1
- package/dist/esm/components/BaseTransactionButton/BaseTransactionButton.d.ts +1 -2
- package/dist/esm/components/BaseTransactionButton/BaseTransactionButton.d.ts.map +1 -1
- package/dist/esm/components/BaseTransactionButton/types.d.ts +1 -2
- package/dist/esm/components/BaseTransactionButton/types.d.ts.map +1 -1
- package/dist/esm/components/BottomSheet/BottomSheet.js +1 -0
- package/dist/esm/components/BottomSheet/BottomSheet.js.map +1 -1
- package/dist/esm/components/BottomSheet/types.d.ts +1 -2
- package/dist/esm/components/BottomSheet/types.d.ts.map +1 -1
- package/dist/esm/components/ButtonTertiary.d.ts +1 -2
- package/dist/esm/components/ButtonTertiary.d.ts.map +1 -1
- package/dist/esm/components/Card/CardIconButton.d.ts +1 -2
- package/dist/esm/components/Card/CardIconButton.d.ts.map +1 -1
- package/dist/esm/components/Card/CardTitle.d.ts +1 -2
- package/dist/esm/components/Card/CardTitle.d.ts.map +1 -1
- package/dist/esm/components/Card/InputCard.d.ts +1 -2
- package/dist/esm/components/Card/InputCard.d.ts.map +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.d.ts +1 -2
- package/dist/esm/components/ChainSelect/ChainSelect.d.ts.map +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.style.d.ts +1 -2
- package/dist/esm/components/ChainSelect/ChainSelect.style.d.ts.map +1 -1
- package/dist/esm/components/ContractComponent/ContractComponent.d.ts +1 -2
- package/dist/esm/components/ContractComponent/ContractComponent.d.ts.map +1 -1
- package/dist/esm/components/ContractComponent/ItemPrice.d.ts +2 -3
- package/dist/esm/components/ContractComponent/ItemPrice.d.ts.map +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFT.d.ts +1 -2
- package/dist/esm/components/ContractComponent/NFT/NFT.d.ts.map +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFTBase.d.ts +1 -2
- package/dist/esm/components/ContractComponent/NFT/NFTBase.d.ts.map +1 -1
- package/dist/esm/components/ContractComponent/NFT/types.d.ts +3 -4
- package/dist/esm/components/ContractComponent/NFT/types.d.ts.map +1 -1
- package/dist/esm/components/ExecutionStatusCard/ExecutionStatusCard.d.ts +1 -2
- package/dist/esm/components/ExecutionStatusCard/ExecutionStatusCard.d.ts.map +1 -1
- package/dist/esm/components/ExecutionStatusCard/StatusIcon.d.ts +1 -2
- package/dist/esm/components/ExecutionStatusCard/StatusIcon.d.ts.map +1 -1
- package/dist/esm/components/FeeBreakdownTooltip.d.ts +1 -2
- package/dist/esm/components/FeeBreakdownTooltip.d.ts.map +1 -1
- package/dist/esm/components/IconCircle/IconCircle.d.ts +1 -2
- package/dist/esm/components/IconCircle/IconCircle.d.ts.map +1 -1
- package/dist/esm/components/IconCircle/statusIcons.d.ts +1 -2
- package/dist/esm/components/IconCircle/statusIcons.d.ts.map +1 -1
- package/dist/esm/components/IconTypography.d.ts +1 -2
- package/dist/esm/components/IconTypography.d.ts.map +1 -1
- package/dist/esm/components/ListItem/ListItemButton.d.ts +1 -2
- package/dist/esm/components/ListItem/ListItemButton.d.ts.map +1 -1
- package/dist/esm/components/Messages/WarningMessages.d.ts +1 -2
- package/dist/esm/components/Messages/WarningMessages.d.ts.map +1 -1
- package/dist/esm/components/PageContainer.d.ts +2 -3
- package/dist/esm/components/PageContainer.d.ts.map +1 -1
- package/dist/esm/components/PoweredBy/PoweredBy.d.ts +1 -2
- package/dist/esm/components/PoweredBy/PoweredBy.d.ts.map +1 -1
- package/dist/esm/components/ProgressToNextUpdate.d.ts +1 -2
- package/dist/esm/components/ProgressToNextUpdate.d.ts.map +1 -1
- package/dist/esm/components/RouteCard/RouteCard.d.ts +1 -2
- package/dist/esm/components/RouteCard/RouteCard.d.ts.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardSkeleton.d.ts +1 -2
- package/dist/esm/components/RouteCard/RouteCardSkeleton.d.ts.map +1 -1
- package/dist/esm/components/RouteCard/RouteDetails.d.ts +1 -2
- package/dist/esm/components/RouteCard/RouteDetails.d.ts.map +1 -1
- package/dist/esm/components/RouteCard/RouteDetails.style.d.ts +5 -6
- package/dist/esm/components/RouteCard/RouteDetails.style.d.ts.map +1 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.d.ts +1 -2
- package/dist/esm/components/RouteCard/RouteNotFoundCard.d.ts.map +1 -1
- package/dist/esm/components/RouteCard/RouteTokens.d.ts +1 -2
- package/dist/esm/components/RouteCard/RouteTokens.d.ts.map +1 -1
- package/dist/esm/components/RouteCard/types.d.ts +2 -3
- package/dist/esm/components/RouteCard/types.d.ts.map +1 -1
- package/dist/esm/components/Search/SearchInput.d.ts +1 -2
- package/dist/esm/components/Search/SearchInput.d.ts.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.d.ts +1 -2
- package/dist/esm/components/SendToWallet/SendToWalletButton.d.ts.map +1 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.d.ts +1 -2
- package/dist/esm/components/Skeleton/WidgetSkeleton.d.ts.map +1 -1
- package/dist/esm/components/StepActions/SentToWalletRow.d.ts +1 -2
- package/dist/esm/components/StepActions/SentToWalletRow.d.ts.map +1 -1
- package/dist/esm/components/StepActions/StepActionRow.style.d.ts +1 -2
- package/dist/esm/components/StepActions/StepActionRow.style.d.ts.map +1 -1
- package/dist/esm/components/StepActions/StepActionsList.d.ts +1 -2
- package/dist/esm/components/StepActions/StepActionsList.d.ts.map +1 -1
- package/dist/esm/components/StepActions/executionRows.d.ts +2 -3
- package/dist/esm/components/StepActions/executionRows.d.ts.map +1 -1
- package/dist/esm/components/Token/Token.d.ts.map +1 -1
- package/dist/esm/components/Token/Token.js +2 -4
- package/dist/esm/components/Token/Token.js.map +1 -1
- package/dist/esm/components/TokenList/RecentTokensHeader.js +44 -0
- package/dist/esm/components/TokenList/RecentTokensHeader.js.map +1 -0
- package/dist/esm/components/TokenList/RecentTokensToggle.js +36 -0
- package/dist/esm/components/TokenList/RecentTokensToggle.js.map +1 -0
- package/dist/esm/components/TokenList/RemoveRecentTokenButton.js +32 -0
- package/dist/esm/components/TokenList/RemoveRecentTokenButton.js.map +1 -0
- package/dist/esm/components/TokenList/TokenList.js +55 -5
- package/dist/esm/components/TokenList/TokenList.js.map +1 -1
- package/dist/esm/components/TokenList/TokenListItem.js +35 -19
- package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
- package/dist/esm/components/TokenList/TokenNotFound.d.ts +1 -2
- package/dist/esm/components/TokenList/TokenNotFound.d.ts.map +1 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.d.ts +1 -2
- package/dist/esm/components/TokenList/VirtualizedTokenList.d.ts.map +1 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.js +55 -42
- package/dist/esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
- package/dist/esm/components/TokenList/types.d.ts +9 -2
- package/dist/esm/components/TokenList/types.d.ts.map +1 -1
- package/dist/esm/components/TokenList/useTokenSelect.d.ts +1 -2
- package/dist/esm/components/TokenList/useTokenSelect.d.ts.map +1 -1
- package/dist/esm/components/TokenRate/TokenRate.d.ts +1 -2
- package/dist/esm/components/TokenRate/TokenRate.d.ts.map +1 -1
- package/dist/esm/components/TransactionCard/TransactionCard.style.d.ts +2 -3
- package/dist/esm/components/TransactionCard/TransactionCard.style.d.ts.map +1 -1
- package/dist/esm/config/constants.d.ts +1 -2
- package/dist/esm/config/constants.d.ts.map +1 -1
- package/dist/esm/config/version.d.ts +2 -3
- package/dist/esm/config/version.d.ts.map +1 -1
- package/dist/esm/config/version.js +1 -1
- package/dist/esm/config/version.js.map +1 -1
- package/dist/esm/hooks/useAddressActivity.d.ts +1 -2
- package/dist/esm/hooks/useAddressActivity.d.ts.map +1 -1
- package/dist/esm/hooks/useAddressValidation.d.ts +2 -3
- package/dist/esm/hooks/useAddressValidation.d.ts.map +1 -1
- package/dist/esm/hooks/useAvailableChains.d.ts +1 -2
- package/dist/esm/hooks/useAvailableChains.d.ts.map +1 -1
- package/dist/esm/hooks/useChain.d.ts +1 -2
- package/dist/esm/hooks/useChain.d.ts.map +1 -1
- package/dist/esm/hooks/useContactSupport.d.ts +1 -2
- package/dist/esm/hooks/useContactSupport.d.ts.map +1 -1
- package/dist/esm/hooks/useDebouncedWatch.d.ts +1 -2
- package/dist/esm/hooks/useDebouncedWatch.d.ts.map +1 -1
- package/dist/esm/hooks/useDisplayedTokens.js +6 -4
- package/dist/esm/hooks/useDisplayedTokens.js.map +1 -1
- package/dist/esm/hooks/useExplorer.d.ts +2 -3
- package/dist/esm/hooks/useExplorer.d.ts.map +1 -1
- package/dist/esm/hooks/useExplorer.js +7 -3
- package/dist/esm/hooks/useExplorer.js.map +1 -1
- package/dist/esm/hooks/useHeader.d.ts +1 -2
- package/dist/esm/hooks/useHeader.d.ts.map +1 -1
- package/dist/esm/hooks/useListHeight.d.ts +1 -2
- package/dist/esm/hooks/useListHeight.d.ts.map +1 -1
- package/dist/esm/hooks/useNavigateBack.d.ts +1 -2
- package/dist/esm/hooks/useNavigateBack.d.ts.map +1 -1
- package/dist/esm/hooks/useRecentTokens.js +46 -0
- package/dist/esm/hooks/useRecentTokens.js.map +1 -0
- package/dist/esm/hooks/useRouteExecution.d.ts +1 -2
- package/dist/esm/hooks/useRouteExecution.d.ts.map +1 -1
- package/dist/esm/hooks/useRouteExecutionMessage.d.ts +1 -2
- package/dist/esm/hooks/useRouteExecutionMessage.d.ts.map +1 -1
- package/dist/esm/hooks/useRoutes.d.ts +1 -2
- package/dist/esm/hooks/useRoutes.d.ts.map +1 -1
- package/dist/esm/hooks/useRoutes.js +7 -2
- package/dist/esm/hooks/useRoutes.js.map +1 -1
- package/dist/esm/hooks/useToAddressRequirements.d.ts +1 -2
- package/dist/esm/hooks/useToAddressRequirements.d.ts.map +1 -1
- package/dist/esm/hooks/useToAddressRequirements.js +8 -2
- package/dist/esm/hooks/useToAddressRequirements.js.map +1 -1
- package/dist/esm/hooks/useToken.d.ts +1 -2
- package/dist/esm/hooks/useToken.d.ts.map +1 -1
- package/dist/esm/hooks/useTokenAddressBalance.d.ts +1 -2
- package/dist/esm/hooks/useTokenAddressBalance.d.ts.map +1 -1
- package/dist/esm/hooks/useTokenBalances.d.ts +3 -2
- package/dist/esm/hooks/useTokenBalances.d.ts.map +1 -1
- package/dist/esm/hooks/useTokenBalances.js +15 -9
- package/dist/esm/hooks/useTokenBalances.js.map +1 -1
- package/dist/esm/hooks/useTokenList.d.ts +1 -2
- package/dist/esm/hooks/useTokenList.d.ts.map +1 -1
- package/dist/esm/hooks/useTokenSearch.js +3 -2
- package/dist/esm/hooks/useTokenSearch.js.map +1 -1
- package/dist/esm/hooks/useTokens.js +26 -15
- package/dist/esm/hooks/useTokens.js.map +1 -1
- package/dist/esm/hooks/useTools.d.ts +1 -2
- package/dist/esm/hooks/useTools.d.ts.map +1 -1
- package/dist/esm/hooks/useWidgetChains.d.ts +1 -2
- package/dist/esm/hooks/useWidgetChains.d.ts.map +1 -1
- package/dist/esm/hooks/useWidgetEvents.d.ts +3 -4
- package/dist/esm/hooks/useWidgetEvents.d.ts.map +1 -1
- package/dist/esm/i18n/bn.json +4 -0
- package/dist/esm/i18n/de.json +4 -0
- package/dist/esm/i18n/en.json +4 -0
- package/dist/esm/i18n/es.json +4 -0
- package/dist/esm/i18n/fr.json +4 -0
- package/dist/esm/i18n/hi.json +4 -0
- package/dist/esm/i18n/id.json +4 -0
- package/dist/esm/i18n/it.json +4 -0
- package/dist/esm/i18n/ja.json +4 -0
- package/dist/esm/i18n/ko.json +4 -0
- package/dist/esm/i18n/pl.json +4 -0
- package/dist/esm/i18n/pt.json +4 -0
- package/dist/esm/i18n/th.json +4 -0
- package/dist/esm/i18n/tr.json +4 -0
- package/dist/esm/i18n/uk.json +4 -0
- package/dist/esm/i18n/vi.json +4 -0
- package/dist/esm/i18n/zh.json +4 -0
- package/dist/esm/pages/MainPage/MainWarningMessages.d.ts +1 -2
- package/dist/esm/pages/MainPage/MainWarningMessages.d.ts.map +1 -1
- package/dist/esm/pages/SelectChainPage/SelectChainPage.d.ts +1 -2
- package/dist/esm/pages/SelectChainPage/SelectChainPage.d.ts.map +1 -1
- package/dist/esm/pages/SelectChainPage/types.d.ts +1 -2
- package/dist/esm/pages/SelectChainPage/types.d.ts.map +1 -1
- package/dist/esm/pages/SelectTokenPage/SearchTokenInput.d.ts +1 -2
- package/dist/esm/pages/SelectTokenPage/SearchTokenInput.d.ts.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js +2 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js +2 -1
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js +2 -1
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js +2 -1
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/ContactSupportButton.d.ts +1 -2
- package/dist/esm/pages/TransactionDetailsPage/ContactSupportButton.d.ts.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +2 -1
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js +2 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js.map +1 -1
- package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.d.ts +1 -2
- package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.d.ts +2 -3
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/ExecutionDoneCard.d.ts +1 -2
- package/dist/esm/pages/TransactionPage/ExecutionDoneCard.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/RouteTracker.d.ts +1 -2
- package/dist/esm/pages/TransactionPage/RouteTracker.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/StartTransactionButton.d.ts +1 -2
- package/dist/esm/pages/TransactionPage/StartTransactionButton.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.d.ts +1 -2
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js +0 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TokenVerificationBottomSheet.js +0 -1
- package/dist/esm/pages/TransactionPage/TokenVerificationBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TransactionDoneButtons.d.ts +1 -2
- package/dist/esm/pages/TransactionPage/TransactionDoneButtons.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/TransactionFailedButtons.js +38 -12
- package/dist/esm/pages/TransactionPage/TransactionFailedButtons.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TransactionReview.js +22 -21
- package/dist/esm/pages/TransactionPage/TransactionReview.js.map +1 -1
- package/dist/esm/pages/TransactionPage/types.d.ts +1 -2
- package/dist/esm/pages/TransactionPage/types.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/utils.d.ts +2 -3
- package/dist/esm/pages/TransactionPage/utils.d.ts.map +1 -1
- package/dist/esm/pages/TransactionPage/utils.js +23 -1
- package/dist/esm/pages/TransactionPage/utils.js.map +1 -1
- package/dist/esm/providers/I18nProvider/I18nProvider.d.ts +1 -2
- package/dist/esm/providers/I18nProvider/I18nProvider.d.ts.map +1 -1
- package/dist/esm/providers/I18nProvider/types.d.ts +4 -5
- package/dist/esm/providers/I18nProvider/types.d.ts.map +1 -1
- package/dist/esm/providers/QueryClientProvider.d.ts +1 -2
- package/dist/esm/providers/QueryClientProvider.d.ts.map +1 -1
- package/dist/esm/providers/SDKClientProvider.d.ts +2 -3
- package/dist/esm/providers/SDKClientProvider.d.ts.map +1 -1
- package/dist/esm/providers/WalletProvider/WalletProvider.d.ts +1 -2
- package/dist/esm/providers/WalletProvider/WalletProvider.d.ts.map +1 -1
- package/dist/esm/providers/WidgetProvider/WidgetProvider.d.ts +2 -3
- package/dist/esm/providers/WidgetProvider/WidgetProvider.d.ts.map +1 -1
- package/dist/esm/providers/WidgetProvider/types.d.ts +2 -3
- package/dist/esm/providers/WidgetProvider/types.d.ts.map +1 -1
- package/dist/esm/shared.d.ts +2 -1
- package/dist/esm/shared.js +2 -1
- package/dist/esm/stores/StoreProvider.d.ts +1 -2
- package/dist/esm/stores/StoreProvider.d.ts.map +1 -1
- package/dist/esm/stores/StoreProvider.js +10 -6
- package/dist/esm/stores/StoreProvider.js.map +1 -1
- package/dist/esm/stores/bookmarks/BookmarkStore.d.ts +1 -2
- package/dist/esm/stores/bookmarks/BookmarkStore.d.ts.map +1 -1
- package/dist/esm/stores/bookmarks/types.d.ts +5 -6
- package/dist/esm/stores/bookmarks/types.d.ts.map +1 -1
- package/dist/esm/stores/chains/ChainOrderStore.d.ts +1 -2
- package/dist/esm/stores/chains/ChainOrderStore.d.ts.map +1 -1
- package/dist/esm/stores/chains/ChainOrderStore.js +11 -5
- package/dist/esm/stores/chains/ChainOrderStore.js.map +1 -1
- package/dist/esm/stores/chains/types.d.ts +1 -2
- package/dist/esm/stores/chains/types.d.ts.map +1 -1
- package/dist/esm/stores/form/types.d.ts +20 -21
- package/dist/esm/stores/form/types.d.ts.map +1 -1
- package/dist/esm/stores/form/useFieldActions.d.ts +1 -2
- package/dist/esm/stores/form/useFieldActions.d.ts.map +1 -1
- package/dist/esm/stores/form/useFieldValues.d.ts +1 -2
- package/dist/esm/stores/form/useFieldValues.d.ts.map +1 -1
- package/dist/esm/stores/header/types.d.ts +1 -2
- package/dist/esm/stores/header/types.d.ts.map +1 -1
- package/dist/esm/stores/header/useHeaderStore.d.ts +2 -3
- package/dist/esm/stores/header/useHeaderStore.d.ts.map +1 -1
- package/dist/esm/stores/inputMode/useInputModeStore.d.ts +1 -2
- package/dist/esm/stores/inputMode/useInputModeStore.d.ts.map +1 -1
- package/dist/esm/stores/recentTokens/RecentTokensStore.js +23 -0
- package/dist/esm/stores/recentTokens/RecentTokensStore.js.map +1 -0
- package/dist/esm/stores/recentTokens/createRecentTokensStore.js +54 -0
- package/dist/esm/stores/recentTokens/createRecentTokensStore.js.map +1 -0
- package/dist/esm/stores/recentTokens/utils.js +15 -0
- package/dist/esm/stores/recentTokens/utils.js.map +1 -0
- package/dist/esm/stores/routes/RouteExecutionStore.d.ts +2 -3
- package/dist/esm/stores/routes/RouteExecutionStore.d.ts.map +1 -1
- package/dist/esm/stores/routes/types.d.ts +3 -4
- package/dist/esm/stores/routes/types.d.ts.map +1 -1
- package/dist/esm/stores/routes/utils.d.ts +4 -5
- package/dist/esm/stores/routes/utils.d.ts.map +1 -1
- package/dist/esm/stores/settings/SettingsStore.d.ts +2 -3
- package/dist/esm/stores/settings/SettingsStore.d.ts.map +1 -1
- package/dist/esm/stores/settings/types.d.ts +2 -3
- package/dist/esm/stores/settings/types.d.ts.map +1 -1
- package/dist/esm/stores/types.d.ts +2 -3
- package/dist/esm/stores/types.d.ts.map +1 -1
- package/dist/esm/themes/azureLight.d.ts +1 -2
- package/dist/esm/themes/azureLight.d.ts.map +1 -1
- package/dist/esm/themes/jumper.d.ts +1 -2
- package/dist/esm/themes/jumper.d.ts.map +1 -1
- package/dist/esm/themes/palettes.d.ts +3 -4
- package/dist/esm/themes/palettes.d.ts.map +1 -1
- package/dist/esm/themes/types.d.ts +1 -0
- package/dist/esm/themes/watermelonLight.d.ts +1 -2
- package/dist/esm/themes/watermelonLight.d.ts.map +1 -1
- package/dist/esm/themes/windows95.d.ts +1 -2
- package/dist/esm/themes/windows95.d.ts.map +1 -1
- package/dist/esm/types/events.d.ts +13 -14
- package/dist/esm/types/events.d.ts.map +1 -1
- package/dist/esm/types/token.d.ts +4 -2
- package/dist/esm/types/token.d.ts.map +1 -1
- package/dist/esm/types/widget.d.ts +55 -51
- package/dist/esm/types/widget.d.ts.map +1 -1
- package/dist/esm/types/widget.js.map +1 -1
- package/dist/esm/utils/address.js +19 -0
- package/dist/esm/utils/address.js.map +1 -0
- package/dist/esm/utils/compactNumberFormatter.d.ts +1 -2
- package/dist/esm/utils/compactNumberFormatter.d.ts.map +1 -1
- package/dist/esm/utils/converters.d.ts +1 -2
- package/dist/esm/utils/converters.d.ts.map +1 -1
- package/dist/esm/utils/currencyExtendedFormatter.d.ts +1 -2
- package/dist/esm/utils/currencyExtendedFormatter.d.ts.map +1 -1
- package/dist/esm/utils/customReceiver.js +6 -1
- package/dist/esm/utils/customReceiver.js.map +1 -1
- package/dist/esm/utils/elements.d.ts +2 -3
- package/dist/esm/utils/elements.d.ts.map +1 -1
- package/dist/esm/utils/enum.d.ts +1 -2
- package/dist/esm/utils/enum.d.ts.map +1 -1
- package/dist/esm/utils/fees.d.ts +2 -3
- package/dist/esm/utils/fees.d.ts.map +1 -1
- package/dist/esm/utils/format.d.ts +8 -9
- package/dist/esm/utils/format.d.ts.map +1 -1
- package/dist/esm/utils/getPriceImpact.d.ts +1 -2
- package/dist/esm/utils/getPriceImpact.d.ts.map +1 -1
- package/dist/esm/utils/input.d.ts +1 -2
- package/dist/esm/utils/input.d.ts.map +1 -1
- package/dist/esm/utils/navigationRoutes.d.ts +2 -3
- package/dist/esm/utils/navigationRoutes.d.ts.map +1 -1
- package/dist/esm/utils/percentFormatter.d.ts +1 -2
- package/dist/esm/utils/percentFormatter.d.ts.map +1 -1
- package/dist/esm/utils/recentTokens.js +97 -0
- package/dist/esm/utils/recentTokens.js.map +1 -0
- package/dist/esm/utils/token.js +30 -4
- package/dist/esm/utils/token.js.map +1 -1
- package/dist/esm/utils/tokenList.js +18 -6
- package/dist/esm/utils/tokenList.js.map +1 -1
- package/dist/esm/utils/tokenListBands.js +85 -0
- package/dist/esm/utils/tokenListBands.js.map +1 -0
- package/dist/esm/utils/url.d.ts +5 -0
- package/dist/esm/utils/url.d.ts.map +1 -0
- package/dist/esm/utils/url.js +17 -0
- package/dist/esm/utils/url.js.map +1 -0
- package/dist/esm/utils/wallet.d.ts +1 -2
- package/dist/esm/utils/wallet.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/components/AmountInputCard/ReceiveAmountCard.tsx +16 -3
- package/src/components/BottomSheet/BottomSheet.tsx +3 -0
- package/src/components/Token/Token.tsx +2 -1
- package/src/components/TokenList/RecentTokensHeader.tsx +52 -0
- package/src/components/TokenList/RecentTokensToggle.tsx +45 -0
- package/src/components/TokenList/RemoveRecentTokenButton.tsx +38 -0
- package/src/components/TokenList/TokenList.tsx +92 -3
- package/src/components/TokenList/TokenListItem.tsx +15 -0
- package/src/components/TokenList/VirtualizedTokenList.tsx +84 -125
- package/src/components/TokenList/types.ts +9 -0
- package/src/config/version.ts +1 -1
- package/src/hooks/useDisplayedTokens.ts +17 -3
- package/src/hooks/useExplorer.test.tsx +106 -0
- package/src/hooks/useExplorer.ts +11 -5
- package/src/hooks/useRecentTokens.ts +88 -0
- package/src/hooks/useRoutes.ts +8 -5
- package/src/hooks/useToAddressRequirements.ts +11 -5
- package/src/hooks/useTokenBalances.ts +34 -31
- package/src/hooks/useTokenSearch.ts +5 -14
- package/src/hooks/useTokens.ts +69 -27
- package/src/pages/SendToWallet/BookmarksPage.tsx +3 -3
- package/src/pages/SendToWallet/ConnectedWalletsPage.tsx +3 -3
- package/src/pages/SendToWallet/RecentWalletsPage.tsx +3 -3
- package/src/pages/SendToWallet/SendToConfiguredWalletPage.tsx +3 -3
- package/src/pages/TransactionDetailsPage/TransactionDetailsPage.tsx +5 -5
- package/src/pages/TransactionDetailsPage/TransferIdCard.tsx +2 -1
- package/src/pages/TransactionPage/TokenValueBottomSheet.tsx +1 -1
- package/src/pages/TransactionPage/TokenVerificationBottomSheet.tsx +1 -1
- package/src/pages/TransactionPage/TransactionFailedButtons.tsx +62 -26
- package/src/pages/TransactionPage/TransactionReview.tsx +36 -37
- package/src/pages/TransactionPage/utils.ts +78 -0
- package/src/shared.ts +1 -0
- package/src/stores/StoreProvider.tsx +10 -7
- package/src/stores/chains/ChainOrderStore.test.tsx +298 -0
- package/src/stores/chains/ChainOrderStore.tsx +25 -6
- package/src/stores/recentTokens/RecentTokensStore.tsx +39 -0
- package/src/stores/recentTokens/createRecentTokensStore.ts +107 -0
- package/src/stores/recentTokens/types.ts +37 -0
- package/src/stores/recentTokens/utils.ts +18 -0
- package/src/types/token.ts +2 -0
- package/src/types/widget.ts +5 -0
- package/src/utils/address.ts +21 -0
- package/src/utils/customReceiver.ts +24 -0
- package/src/utils/recentTokens.ts +187 -0
- package/src/utils/token.ts +69 -10
- package/src/utils/tokenList.ts +41 -23
- package/src/utils/tokenListBands.ts +181 -0
- package/src/utils/url.ts +17 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidgetChains.d.ts","names":[],"sources":["../../../src/hooks/useWidgetChains.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useWidgetChains.d.ts","names":[],"sources":["../../../src/hooks/useWidgetChains.ts"],"mappings":";;;qBAIa,kBACX,cAAc;EAEd,QAAQ;EACR,eACE,kBACA,SAAS,oBACN;EACL"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { WidgetEvents } from "../types/events.js";
|
|
2
2
|
import EventEmitter from "eventemitter3";
|
|
3
3
|
//#region src/hooks/useWidgetEvents.d.ts
|
|
4
|
-
type WidgetEventEmitter = EventEmitter<WidgetEvents>;
|
|
5
|
-
declare const widgetEvents: WidgetEventEmitter;
|
|
6
|
-
declare const useWidgetEvents: () => WidgetEventEmitter;
|
|
4
|
+
export type WidgetEventEmitter = EventEmitter<WidgetEvents>;
|
|
5
|
+
export declare const widgetEvents: WidgetEventEmitter;
|
|
6
|
+
export declare const useWidgetEvents: () => WidgetEventEmitter;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { WidgetEventEmitter, useWidgetEvents, widgetEvents };
|
|
9
8
|
//# sourceMappingURL=useWidgetEvents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidgetEvents.d.ts","names":[],"sources":["../../../src/hooks/useWidgetEvents.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useWidgetEvents.d.ts","names":[],"sources":["../../../src/hooks/useWidgetEvents.ts"],"mappings":";;;YAGY,qBAAqB,aAAa;qBAEjC,cAAc;qBAEd,uBAAsB"}
|
package/dist/esm/i18n/bn.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "",
|
|
19
19
|
"cancel": "বাতিল করুন",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "সেটিংস রিসেট করুন",
|
|
46
47
|
"seeDetails": "বিস্তারিত দেখুন",
|
|
47
48
|
"showAll": "সবগুলো দেখুন",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "",
|
|
49
52
|
"startSwapping": "",
|
|
50
53
|
"swap": "সোওয়াপ",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "উদ্ধৃত পরিমাণ",
|
|
288
291
|
"rateChange": "রেট পরিবর্তন",
|
|
289
292
|
"receiving": "রিসিভিং",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "{{tool}} এর মাধ্যমে গ্যাস পান",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/de.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Buy",
|
|
19
19
|
"cancel": "Abbrechen",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "Einstellungen zurücksetzen",
|
|
46
47
|
"seeDetails": "Siehe Einzelheiten",
|
|
47
48
|
"showAll": "Alles anzeigen",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "Starte Bridge Protokoll",
|
|
49
52
|
"startSwapping": "Swap starten",
|
|
50
53
|
"swap": "Swap",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "Angebotsbetrag",
|
|
288
291
|
"rateChange": "Wechselkurs geändert",
|
|
289
292
|
"receiving": "Eingehend",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "Gas über {{tool}} erhalten",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/en.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Buy",
|
|
19
19
|
"cancel": "Cancel",
|
|
20
20
|
"checkoutReview": "Review purchase",
|
|
21
|
+
"clear": "Clear",
|
|
21
22
|
"clearAllFailed": "Clear all failed",
|
|
22
23
|
"clearTransaction": "Clear transaction",
|
|
23
24
|
"close": "Close",
|
|
@@ -56,6 +57,8 @@
|
|
|
56
57
|
"viewRefundStatus": "View refund status",
|
|
57
58
|
"viewTransferDetails": "View transfer details",
|
|
58
59
|
"showAll": "Show all",
|
|
60
|
+
"showLess": "Show less",
|
|
61
|
+
"showMore": "Show {{count}} more",
|
|
59
62
|
"startBridging": "Start bridging",
|
|
60
63
|
"startSwapping": "Start swapping",
|
|
61
64
|
"swap": "Swap",
|
|
@@ -321,6 +324,7 @@
|
|
|
321
324
|
"quotedAmount": "Quoted amount",
|
|
322
325
|
"rateChange": "Rate change",
|
|
323
326
|
"receiving": "Receiving",
|
|
327
|
+
"recentSearches": "Recent searches",
|
|
324
328
|
"refuelStepDetails": "Get gas via {{tool}}",
|
|
325
329
|
"route": "Route",
|
|
326
330
|
"select": "Select",
|
package/dist/esm/i18n/es.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Comprar",
|
|
19
19
|
"cancel": "Cancelar",
|
|
20
20
|
"checkoutReview": "Revisar compra",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "Cerrar",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "Reiniciar ajustes",
|
|
46
47
|
"seeDetails": "Ver detalles",
|
|
47
48
|
"showAll": "Mostrar todo",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "Comenzar puente",
|
|
49
52
|
"startSwapping": "Iniciar intercambio",
|
|
50
53
|
"swap": "Swap",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "Monto citado",
|
|
288
291
|
"rateChange": "Cambios de precio detectado",
|
|
289
292
|
"receiving": "Recibiendo",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "Obtener gas a través de {{tool}}",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/fr.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Acheter",
|
|
19
19
|
"cancel": "Annuler",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "Fermer",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "Réinitialiser les paramètres",
|
|
46
47
|
"seeDetails": "Voir les détails",
|
|
47
48
|
"showAll": "Afficher tout",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "Commencer le pont",
|
|
49
52
|
"startSwapping": "Commencer à échanger",
|
|
50
53
|
"swap": "Échanger",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "Montant indiqué",
|
|
288
291
|
"rateChange": "Taux de change",
|
|
289
292
|
"receiving": "En cours de réception",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "Obtenir du gaz via {{tool}}",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/hi.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "",
|
|
19
19
|
"cancel": "रद्द करें",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "कुंजी: बटन. सेटिंग्स रीसेट करें\nबटन -> सेटिंग्स रीसेट करें",
|
|
46
47
|
"seeDetails": "कुंजी: बटन. जानकारी देखें\nबटन -> जानकारी देखें",
|
|
47
48
|
"showAll": "कुंजी: बटन. सभी दिखाएँ\nबटन -> सभी दिखाएँ",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "",
|
|
49
52
|
"startSwapping": "",
|
|
50
53
|
"swap": "कुंजी: बटन. विनिमय \nबटन -> विनिमय ",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "",
|
|
288
291
|
"rateChange": "",
|
|
289
292
|
"receiving": "",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/id.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Beli",
|
|
19
19
|
"cancel": "Batal",
|
|
20
20
|
"checkoutReview": "Tinjau pembelian",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "Tutup",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "Setel ulang pengaturan",
|
|
46
47
|
"seeDetails": "Lihat rinciannya",
|
|
47
48
|
"showAll": "Tampilkan semua",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "Mulai bridge",
|
|
49
52
|
"startSwapping": "Mulai swap",
|
|
50
53
|
"swap": "Swap",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "Jumlah yang dikutip",
|
|
288
291
|
"rateChange": "Perubahan rate",
|
|
289
292
|
"receiving": "Menerima",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "Dapatkan gas melalui {{tool}}",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/it.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Acquista",
|
|
19
19
|
"cancel": "Annulla",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "Ripristina impostazioni",
|
|
46
47
|
"seeDetails": "Vedi dettagli",
|
|
47
48
|
"showAll": "Mostra tutto",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "Inizia il bridge",
|
|
49
52
|
"startSwapping": "Avvia lo scambio",
|
|
50
53
|
"swap": "Scambio",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "Totale quotato",
|
|
288
291
|
"rateChange": "Tasso di scambio",
|
|
289
292
|
"receiving": "In ricezione",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "Ottieni gas tramite {{tool}}",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/ja.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "購入",
|
|
19
19
|
"cancel": "キャンセル",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "閉じる",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "設定をリセット",
|
|
46
47
|
"seeDetails": "詳細を表示",
|
|
47
48
|
"showAll": "すべて表示する",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "ブリッジを開始",
|
|
49
52
|
"startSwapping": "スワップを開始",
|
|
50
53
|
"swap": "スワップ",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "見積もり額",
|
|
288
291
|
"rateChange": "レート変更",
|
|
289
292
|
"receiving": "受け取り",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "{{tool}} 経由でガスを取得",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/ko.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "매수",
|
|
19
19
|
"cancel": "취소",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "설정 초기화",
|
|
46
47
|
"seeDetails": "자세히 보기",
|
|
47
48
|
"showAll": "모두 보기",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "브릿지 시작하기",
|
|
49
52
|
"startSwapping": "스왑 시작하기",
|
|
50
53
|
"swap": "스왑",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "견적",
|
|
288
291
|
"rateChange": "비율 변경",
|
|
289
292
|
"receiving": "받는 중",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "{{tool}} 를 통해 가스 얻기",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/pl.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "",
|
|
19
19
|
"cancel": "",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "",
|
|
46
47
|
"seeDetails": "",
|
|
47
48
|
"showAll": "",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "",
|
|
49
52
|
"startSwapping": "",
|
|
50
53
|
"swap": "",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "",
|
|
288
291
|
"rateChange": "",
|
|
289
292
|
"receiving": "",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/pt.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Comprar",
|
|
19
19
|
"cancel": "Cancelar",
|
|
20
20
|
"checkoutReview": "Revisar compra",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "Fechar",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "Redefinir as configurações",
|
|
46
47
|
"seeDetails": "Ver detalhes",
|
|
47
48
|
"showAll": "Mostrar tudo",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "Iniciar ponte",
|
|
49
52
|
"startSwapping": "Iniciar conversão",
|
|
50
53
|
"swap": "Conversão",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "Valor da cotação",
|
|
288
291
|
"rateChange": "Alterar taxa",
|
|
289
292
|
"receiving": "Recebendo",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "Obter gás via {{tool}}",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/th.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "ซื้อ",
|
|
19
19
|
"cancel": "ยกเลิก",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "ปิด",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "รีเซ็ตการตั้งค่า",
|
|
46
47
|
"seeDetails": "ดูรายละเอียด",
|
|
47
48
|
"showAll": "แสดงทั้งหมด",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "เริ่มต้นการบริดจ์",
|
|
49
52
|
"startSwapping": "เริ่มต้นการแลกเปลี่ยน",
|
|
50
53
|
"swap": "การแลกเปลี่ยน",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "จำนวนทั้งหมดที่เสนอ",
|
|
288
291
|
"rateChange": "อัตราแลกเปลี่ยน",
|
|
289
292
|
"receiving": "ได้รับ",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "รับแก๊สผ่าน {{tool}}",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/tr.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Satın al",
|
|
19
19
|
"cancel": "İptal",
|
|
20
20
|
"checkoutReview": "Satın alımı incele",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "Kapat",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "Ayarları Sıfırla",
|
|
46
47
|
"seeDetails": "Detayları Gör",
|
|
47
48
|
"showAll": "Tümünü Göster",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "Başla",
|
|
49
52
|
"startSwapping": "Takas işlemini başlat",
|
|
50
53
|
"swap": "Takas et",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "Teklif edilen tutar",
|
|
288
291
|
"rateChange": "Değişiklik oranı",
|
|
289
292
|
"receiving": "Alınıyor",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "{{tool}} aracılığıyla gaz al",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/uk.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Придбати",
|
|
19
19
|
"cancel": "Скасувати",
|
|
20
20
|
"checkoutReview": "Перегляд покупки",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "Закрити",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "Скинути налаштування",
|
|
46
47
|
"seeDetails": "Детальніше",
|
|
47
48
|
"showAll": "Показати всі",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "Почати бридж",
|
|
49
52
|
"startSwapping": "Почати своп",
|
|
50
53
|
"swap": "Своп",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "Запропонована сума",
|
|
288
291
|
"rateChange": "Зміна курсу",
|
|
289
292
|
"receiving": "Отримання",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "Отримати газ через {{tool}}",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/vi.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "Mua",
|
|
19
19
|
"cancel": "Huỷ bỏ",
|
|
20
20
|
"checkoutReview": "",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "Đóng",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "Đặt lại cài đặt",
|
|
46
47
|
"seeDetails": "Xem chi tiết",
|
|
47
48
|
"showAll": "Hiển thị tất cả",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "Bắt đầu đi cầu",
|
|
49
52
|
"startSwapping": "Bắt đầu Swap",
|
|
50
53
|
"swap": "Swap",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "Số tiền trích dẫn",
|
|
288
291
|
"rateChange": "Thay đổi tỉ giá",
|
|
289
292
|
"receiving": "Đang nhận",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "Lấy gas thông qua {{tool}}",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
package/dist/esm/i18n/zh.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"buy": "购买",
|
|
19
19
|
"cancel": "取消",
|
|
20
20
|
"checkoutReview": "查看购买详情",
|
|
21
|
+
"clear": "",
|
|
21
22
|
"clearAllFailed": "",
|
|
22
23
|
"clearTransaction": "",
|
|
23
24
|
"close": "关闭",
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"resetSettings": "恢复默认设置",
|
|
46
47
|
"seeDetails": "查看详情",
|
|
47
48
|
"showAll": "显示所有",
|
|
49
|
+
"showLess": "",
|
|
50
|
+
"showMore": "",
|
|
48
51
|
"startBridging": "开始跨链",
|
|
49
52
|
"startSwapping": "开始兑换",
|
|
50
53
|
"swap": "兑换",
|
|
@@ -287,6 +290,7 @@
|
|
|
287
290
|
"quotedAmount": "报价金额",
|
|
288
291
|
"rateChange": "波动率",
|
|
289
292
|
"receiving": "接收",
|
|
293
|
+
"recentSearches": "",
|
|
290
294
|
"refuelStepDetails": "通过 {{tool}} 获取燃气费",
|
|
291
295
|
"route": "",
|
|
292
296
|
"select": "",
|
|
@@ -4,7 +4,6 @@ import { BoxProps } from "@mui/material";
|
|
|
4
4
|
interface MainWarningMessagesProps extends BoxProps {
|
|
5
5
|
route?: Route;
|
|
6
6
|
}
|
|
7
|
-
declare const MainWarningMessages: React.FC<MainWarningMessagesProps>;
|
|
7
|
+
export declare const MainWarningMessages: React.FC<MainWarningMessagesProps>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { MainWarningMessages };
|
|
10
9
|
//# sourceMappingURL=MainWarningMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainWarningMessages.d.ts","names":[],"sources":["../../../../src/pages/MainPage/MainWarningMessages.tsx"],"mappings":";;;UAKU,iCAAiC;EACzC,QAAQ;;
|
|
1
|
+
{"version":3,"file":"MainWarningMessages.d.ts","names":[],"sources":["../../../../src/pages/MainPage/MainWarningMessages.tsx"],"mappings":";;;UAKU,iCAAiC;EACzC,QAAQ;;qBAGG,qBAAqB,MAAM,GAAG"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SelectChainPageProps } from "./types.js";
|
|
2
2
|
//#region src/pages/SelectChainPage/SelectChainPage.d.ts
|
|
3
|
-
declare const SelectChainPage: React.FC<SelectChainPageProps>;
|
|
3
|
+
export declare const SelectChainPage: React.FC<SelectChainPageProps>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { SelectChainPage };
|
|
6
5
|
//# sourceMappingURL=SelectChainPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectChainPage.d.ts","names":[],"sources":["../../../../src/pages/SelectChainPage/SelectChainPage.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"SelectChainPage.d.ts","names":[],"sources":["../../../../src/pages/SelectChainPage/SelectChainPage.tsx"],"mappings":";;qBAUa,iBAAiB,MAAM,GAAG"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FormTypeProps } from "../../stores/form/types.js";
|
|
2
2
|
//#region src/pages/SelectChainPage/types.d.ts
|
|
3
|
-
interface SelectChainPageProps extends FormTypeProps {
|
|
3
|
+
export interface SelectChainPageProps extends FormTypeProps {
|
|
4
4
|
selectNativeToken?: boolean;
|
|
5
5
|
}
|
|
6
6
|
//#endregion
|
|
7
|
-
export { SelectChainPageProps };
|
|
8
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/pages/SelectChainPage/types.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/pages/SelectChainPage/types.ts"],"mappings":";;iBAEiB,6BAA6B;EAC5C"}
|
|
@@ -4,7 +4,6 @@ import { JSX } from "react";
|
|
|
4
4
|
interface SearchTokenInputProps {
|
|
5
5
|
formType: FormType;
|
|
6
6
|
}
|
|
7
|
-
declare const SearchTokenInput: ({ formType }: SearchTokenInputProps) => JSX.Element;
|
|
7
|
+
export declare const SearchTokenInput: ({ formType }: SearchTokenInputProps) => JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { SearchTokenInput };
|
|
10
9
|
//# sourceMappingURL=SearchTokenInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchTokenInput.d.ts","names":[],"sources":["../../../../src/pages/SelectTokenPage/SearchTokenInput.tsx"],"mappings":";;;UAQU;EACR,UAAU;;
|
|
1
|
+
{"version":3,"file":"SearchTokenInput.d.ts","names":[],"sources":["../../../../src/pages/SelectTokenPage/SearchTokenInput.tsx"],"mappings":";;;UAQU;EACR,UAAU;;qBAGC,qBACX,YACC,0BAAwB,IAAI"}
|
|
@@ -6,6 +6,7 @@ import { PageContainer } from "../../components/PageContainer.js";
|
|
|
6
6
|
import { defaultChainIdsByType } from "../../utils/chainType.js";
|
|
7
7
|
import { useToAddressRequirements } from "../../hooks/useToAddressRequirements.js";
|
|
8
8
|
import { shortenAddress } from "../../utils/wallet.js";
|
|
9
|
+
import { openInNewTab } from "../../utils/url.js";
|
|
9
10
|
import { useExplorer } from "../../hooks/useExplorer.js";
|
|
10
11
|
import { useHeader } from "../../hooks/useHeader.js";
|
|
11
12
|
import { useListHeight } from "../../hooks/useListHeight.js";
|
|
@@ -88,7 +89,7 @@ const BookmarksPage = () => {
|
|
|
88
89
|
{
|
|
89
90
|
icon: /* @__PURE__ */ jsx(OpenInNewRounded, {}),
|
|
90
91
|
label: t("button.viewOnExplorer"),
|
|
91
|
-
onClick: () =>
|
|
92
|
+
onClick: () => openInNewTab(getAddressLink(bookmark.address, defaultChainIdsByType[bookmark.chainType]))
|
|
92
93
|
},
|
|
93
94
|
{
|
|
94
95
|
icon: /* @__PURE__ */ jsx(DeleteOutline, {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookmarksPage.js","names":["ListItem","ListItemButton"],"sources":["../../../../src/pages/SendToWallet/BookmarksPage.tsx"],"sourcesContent":["import ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'\nimport DeleteOutline from '@mui/icons-material/DeleteOutlined'\nimport OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'\nimport TurnedIn from '@mui/icons-material/TurnedIn'\nimport { Button, List, ListItemAvatar, ListItemText } from '@mui/material'\nimport { useNavigate } from '@tanstack/react-router'\nimport { type JSX, useRef } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { AccountAvatar } from '../../components/Avatar/AccountAvatar.js'\nimport type { BottomSheetBase } from '../../components/BottomSheet/types.js'\nimport { ContextMenu } from '../../components/ContextMenu.js'\nimport { EmptyListIndicator } from '../../components/EmptyListIndicator/EmptyListIndicator.js'\nimport { ListItem } from '../../components/ListItem/ListItem.js'\nimport { ListItemButton } from '../../components/ListItem/ListItemButton.js'\nimport { PageContainer } from '../../components/PageContainer.js'\nimport { useExplorer } from '../../hooks/useExplorer.js'\nimport { useHeader } from '../../hooks/useHeader.js'\nimport { useListHeight } from '../../hooks/useListHeight.js'\nimport { useToAddressRequirements } from '../../hooks/useToAddressRequirements.js'\nimport type { Bookmark } from '../../stores/bookmarks/types.js'\nimport { useBookmarkActions } from '../../stores/bookmarks/useBookmarkActions.js'\nimport { useBookmarks } from '../../stores/bookmarks/useBookmarks.js'\nimport { useFieldActions } from '../../stores/form/useFieldActions.js'\nimport { defaultChainIdsByType } from '../../utils/chainType.js'\nimport { navigationRoutes } from '../../utils/navigationRoutes.js'\nimport { shortenAddress } from '../../utils/wallet.js'\nimport { BookmarkAddressSheet } from './BookmarkAddressSheet.js'\nimport { BookmarkButtonContainer } from './SendToWalletPage.style.js'\n\nexport const BookmarksPage = (): JSX.Element => {\n const { t } = useTranslation()\n const bookmarkAddressSheetRef = useRef<BottomSheetBase>(null)\n const listParentRef = useRef<HTMLUListElement | null>(null)\n const buttonRef = useRef<HTMLDivElement | null>(null)\n const { bookmarks } = useBookmarks()\n const { requiredToChainType } = useToAddressRequirements()\n const { addBookmark, removeBookmark, setSelectedBookmark } =\n useBookmarkActions()\n const navigate = useNavigate()\n const { setFieldValue } = useFieldActions()\n const { getAddressLink } = useExplorer()\n\n useHeader(t('header.bookmarkedWallets'))\n\n const { listHeight } = useListHeight({\n listParentRef,\n headerRef: buttonRef,\n })\n\n const handleAddBookmark = () => {\n bookmarkAddressSheetRef.current?.open()\n }\n\n const handleBookmarkSelected = (bookmark: Bookmark) => {\n setFieldValue('toAddress', bookmark.address, {\n isTouched: true,\n isDirty: true,\n })\n setSelectedBookmark(bookmark)\n navigate({ to: navigationRoutes.home, replace: true })\n }\n\n return (\n <PageContainer disableGutters>\n <List\n className=\"long-list\"\n ref={listParentRef}\n style={{ height: listHeight, overflow: 'auto' }}\n disablePadding\n sx={{ paddingTop: 1.5 }}\n >\n {bookmarks.map((bookmark) => (\n <ListItem key={bookmark.address} sx={{ position: 'relative' }}>\n <ListItemButton\n onClick={() => handleBookmarkSelected(bookmark)}\n disabled={\n requiredToChainType &&\n requiredToChainType !== bookmark.chainType\n }\n >\n <ListItemAvatar>\n <AccountAvatar\n chainId={defaultChainIdsByType[bookmark.chainType]}\n />\n </ListItemAvatar>\n <ListItemText\n primary={bookmark.name}\n secondary={shortenAddress(bookmark.address)}\n />\n </ListItemButton>\n <ContextMenu\n disabled={\n !!(\n requiredToChainType &&\n requiredToChainType !== bookmark.chainType\n )\n }\n items={[\n {\n icon: <ContentCopyRounded />,\n label: t('button.copyAddress'),\n onClick: () =>\n navigator.clipboard.writeText(bookmark.address),\n },\n {\n icon: <OpenInNewRounded />,\n label: t('button.viewOnExplorer'),\n onClick: () =>\n
|
|
1
|
+
{"version":3,"file":"BookmarksPage.js","names":["ListItem","ListItemButton"],"sources":["../../../../src/pages/SendToWallet/BookmarksPage.tsx"],"sourcesContent":["import ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'\nimport DeleteOutline from '@mui/icons-material/DeleteOutlined'\nimport OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'\nimport TurnedIn from '@mui/icons-material/TurnedIn'\nimport { Button, List, ListItemAvatar, ListItemText } from '@mui/material'\nimport { useNavigate } from '@tanstack/react-router'\nimport { type JSX, useRef } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { AccountAvatar } from '../../components/Avatar/AccountAvatar.js'\nimport type { BottomSheetBase } from '../../components/BottomSheet/types.js'\nimport { ContextMenu } from '../../components/ContextMenu.js'\nimport { EmptyListIndicator } from '../../components/EmptyListIndicator/EmptyListIndicator.js'\nimport { ListItem } from '../../components/ListItem/ListItem.js'\nimport { ListItemButton } from '../../components/ListItem/ListItemButton.js'\nimport { PageContainer } from '../../components/PageContainer.js'\nimport { useExplorer } from '../../hooks/useExplorer.js'\nimport { useHeader } from '../../hooks/useHeader.js'\nimport { useListHeight } from '../../hooks/useListHeight.js'\nimport { useToAddressRequirements } from '../../hooks/useToAddressRequirements.js'\nimport type { Bookmark } from '../../stores/bookmarks/types.js'\nimport { useBookmarkActions } from '../../stores/bookmarks/useBookmarkActions.js'\nimport { useBookmarks } from '../../stores/bookmarks/useBookmarks.js'\nimport { useFieldActions } from '../../stores/form/useFieldActions.js'\nimport { defaultChainIdsByType } from '../../utils/chainType.js'\nimport { navigationRoutes } from '../../utils/navigationRoutes.js'\nimport { openInNewTab } from '../../utils/url.js'\nimport { shortenAddress } from '../../utils/wallet.js'\nimport { BookmarkAddressSheet } from './BookmarkAddressSheet.js'\nimport { BookmarkButtonContainer } from './SendToWalletPage.style.js'\n\nexport const BookmarksPage = (): JSX.Element => {\n const { t } = useTranslation()\n const bookmarkAddressSheetRef = useRef<BottomSheetBase>(null)\n const listParentRef = useRef<HTMLUListElement | null>(null)\n const buttonRef = useRef<HTMLDivElement | null>(null)\n const { bookmarks } = useBookmarks()\n const { requiredToChainType } = useToAddressRequirements()\n const { addBookmark, removeBookmark, setSelectedBookmark } =\n useBookmarkActions()\n const navigate = useNavigate()\n const { setFieldValue } = useFieldActions()\n const { getAddressLink } = useExplorer()\n\n useHeader(t('header.bookmarkedWallets'))\n\n const { listHeight } = useListHeight({\n listParentRef,\n headerRef: buttonRef,\n })\n\n const handleAddBookmark = () => {\n bookmarkAddressSheetRef.current?.open()\n }\n\n const handleBookmarkSelected = (bookmark: Bookmark) => {\n setFieldValue('toAddress', bookmark.address, {\n isTouched: true,\n isDirty: true,\n })\n setSelectedBookmark(bookmark)\n navigate({ to: navigationRoutes.home, replace: true })\n }\n\n return (\n <PageContainer disableGutters>\n <List\n className=\"long-list\"\n ref={listParentRef}\n style={{ height: listHeight, overflow: 'auto' }}\n disablePadding\n sx={{ paddingTop: 1.5 }}\n >\n {bookmarks.map((bookmark) => (\n <ListItem key={bookmark.address} sx={{ position: 'relative' }}>\n <ListItemButton\n onClick={() => handleBookmarkSelected(bookmark)}\n disabled={\n requiredToChainType &&\n requiredToChainType !== bookmark.chainType\n }\n >\n <ListItemAvatar>\n <AccountAvatar\n chainId={defaultChainIdsByType[bookmark.chainType]}\n />\n </ListItemAvatar>\n <ListItemText\n primary={bookmark.name}\n secondary={shortenAddress(bookmark.address)}\n />\n </ListItemButton>\n <ContextMenu\n disabled={\n !!(\n requiredToChainType &&\n requiredToChainType !== bookmark.chainType\n )\n }\n items={[\n {\n icon: <ContentCopyRounded />,\n label: t('button.copyAddress'),\n onClick: () =>\n navigator.clipboard.writeText(bookmark.address),\n },\n {\n icon: <OpenInNewRounded />,\n label: t('button.viewOnExplorer'),\n onClick: () =>\n openInNewTab(\n getAddressLink(\n bookmark.address,\n defaultChainIdsByType[bookmark.chainType]\n )\n ),\n },\n {\n icon: <DeleteOutline />,\n label: t('button.delete'),\n onClick: () => removeBookmark(bookmark.address),\n },\n ]}\n />\n </ListItem>\n ))}\n {!bookmarks.length && (\n <EmptyListIndicator\n icon={<TurnedIn />}\n title={t('sendToWallet.noBookmarkedWallets')}\n message={t('sendToWallet.noBookmarkedWalletsMessage')}\n />\n )}\n </List>\n <BookmarkButtonContainer ref={buttonRef}>\n <Button variant=\"contained\" onClick={handleAddBookmark}>\n {t('sendToWallet.addBookmark')}\n </Button>\n </BookmarkButtonContainer>\n <BookmarkAddressSheet\n ref={bookmarkAddressSheetRef}\n onAddBookmark={addBookmark}\n />\n </PageContainer>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,MAAa,sBAAmC;CAC9C,MAAM,EAAE,MAAM,eAAe;CAC7B,MAAM,0BAA0B,OAAwB,IAAI;CAC5D,MAAM,gBAAgB,OAAgC,IAAI;CAC1D,MAAM,YAAY,OAA8B,IAAI;CACpD,MAAM,EAAE,cAAc,aAAa;CACnC,MAAM,EAAE,wBAAwB,yBAAyB;CACzD,MAAM,EAAE,aAAa,gBAAgB,wBACnC,mBAAmB;CACrB,MAAM,WAAW,YAAY;CAC7B,MAAM,EAAE,kBAAkB,gBAAgB;CAC1C,MAAM,EAAE,mBAAmB,YAAY;CAEvC,UAAU,EAAE,0BAA0B,CAAC;CAEvC,MAAM,EAAE,eAAe,cAAc;EACnC;EACA,WAAW;CACb,CAAC;CAED,MAAM,0BAA0B;EAC9B,wBAAwB,SAAS,KAAK;CACxC;CAEA,MAAM,0BAA0B,aAAuB;EACrD,cAAc,aAAa,SAAS,SAAS;GAC3C,WAAW;GACX,SAAS;EACX,CAAC;EACD,oBAAoB,QAAQ;EAC5B,SAAS;GAAE,IAAI,iBAAiB;GAAM,SAAS;EAAK,CAAC;CACvD;CAEA,OACE,qBAAC,eAAD;EAAe,gBAAA;EAAf,UAAA;GACE,qBAAC,MAAD;IACE,WAAU;IACV,KAAK;IACL,OAAO;KAAE,QAAQ;KAAY,UAAU;IAAO;IAC9C,gBAAA;IACA,IAAI,EAAE,YAAY,IAAI;IALxB,UAAA,CAOG,UAAU,KAAK,aACd,qBAACA,YAAD;KAAiC,IAAI,EAAE,UAAU,WAAW;KAA5D,UAAA,CACE,qBAACC,kBAAD;MACE,eAAe,uBAAuB,QAAQ;MAC9C,UACE,uBACA,wBAAwB,SAAS;MAJrC,UAAA,CAOE,oBAAC,gBAAD,EAAA,UACE,oBAAC,eAAD,EACE,SAAS,sBAAsB,SAAS,WACzC,CAAA,EACa,CAAA,GAChB,oBAAC,cAAD;OACE,SAAS,SAAS;OAClB,WAAW,eAAe,SAAS,OAAO;MAC3C,CAAA,CACa;KAChB,CAAA,GAAA,oBAAC,aAAD;MACE,UACE,CAAC,EACC,uBACA,wBAAwB,SAAS;MAGrC,OAAO;OACL;QACE,MAAM,oBAAC,oBAAD,CAAqB,CAAA;QAC3B,OAAO,EAAE,oBAAoB;QAC7B,eACE,UAAU,UAAU,UAAU,SAAS,OAAO;OAClD;OACA;QACE,MAAM,oBAAC,kBAAD,CAAmB,CAAA;QACzB,OAAO,EAAE,uBAAuB;QAChC,eACE,aACE,eACE,SAAS,SACT,sBAAsB,SAAS,UACjC,CACF;OACJ;OACA;QACE,MAAM,oBAAC,eAAD,CAAgB,CAAA;QACtB,OAAO,EAAE,eAAe;QACxB,eAAe,eAAe,SAAS,OAAO;OAChD;MACF;KACD,CAAA,CACO;IAlDK,GAAA,SAAS,OAkDd,CACX,GACA,CAAC,UAAU,UACV,oBAAC,oBAAD;KACE,MAAM,oBAAC,UAAD,CAAW,CAAA;KACjB,OAAO,EAAE,kCAAkC;KAC3C,SAAS,EAAE,yCAAyC;IACrD,CAAA,CAEC;;GACN,oBAAC,yBAAD;IAAyB,KAAK;IAC5B,UAAA,oBAAC,QAAD;KAAQ,SAAQ;KAAY,SAAS;KAClC,UAAA,EAAE,0BAA0B;IACvB,CAAA;GACe,CAAA;GACzB,oBAAC,sBAAD;IACE,KAAK;IACL,eAAe;GAChB,CAAA;EACY;;AAEnB"}
|
|
@@ -4,6 +4,7 @@ import { useFieldActions } from "../../stores/form/useFieldActions.js";
|
|
|
4
4
|
import { PageContainer } from "../../components/PageContainer.js";
|
|
5
5
|
import { useToAddressRequirements } from "../../hooks/useToAddressRequirements.js";
|
|
6
6
|
import { shortenAddress } from "../../utils/wallet.js";
|
|
7
|
+
import { openInNewTab } from "../../utils/url.js";
|
|
7
8
|
import { useExplorer } from "../../hooks/useExplorer.js";
|
|
8
9
|
import { useHeader } from "../../hooks/useHeader.js";
|
|
9
10
|
import { useListHeight } from "../../hooks/useListHeight.js";
|
|
@@ -72,7 +73,7 @@ const ConnectedWalletsPage = () => {
|
|
|
72
73
|
icon: /* @__PURE__ */ jsx(OpenInNewRounded, {}),
|
|
73
74
|
label: t("button.viewOnExplorer"),
|
|
74
75
|
onClick: () => {
|
|
75
|
-
if (account.address)
|
|
76
|
+
if (account.address) openInNewTab(getAddressLink(account.address, account.chainId));
|
|
76
77
|
}
|
|
77
78
|
}] : []];
|
|
78
79
|
return /* @__PURE__ */ jsxs(ListItem$1, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectedWalletsPage.js","names":["ListItem","ListItemButton"],"sources":["../../../../src/pages/SendToWallet/ConnectedWalletsPage.tsx"],"sourcesContent":["import { useAccount } from '@lifi/wallet-management'\nimport type { Account } from '@lifi/widget-provider'\nimport ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'\nimport OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'\nimport Wallet from '@mui/icons-material/Wallet'\nimport { List, ListItemAvatar, ListItemText } from '@mui/material'\nimport { useNavigate } from '@tanstack/react-router'\nimport { type JSX, useRef } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { AccountAvatar } from '../../components/Avatar/AccountAvatar.js'\nimport { ContextMenu } from '../../components/ContextMenu.js'\nimport { EmptyListIndicator } from '../../components/EmptyListIndicator/EmptyListIndicator.js'\nimport { ListItem } from '../../components/ListItem/ListItem.js'\nimport { ListItemButton } from '../../components/ListItem/ListItemButton.js'\nimport { PageContainer } from '../../components/PageContainer.js'\nimport { useExplorer } from '../../hooks/useExplorer.js'\nimport { useHeader } from '../../hooks/useHeader.js'\nimport { useListHeight } from '../../hooks/useListHeight.js'\nimport { useToAddressRequirements } from '../../hooks/useToAddressRequirements.js'\nimport { useBookmarkActions } from '../../stores/bookmarks/useBookmarkActions.js'\nimport { useFieldActions } from '../../stores/form/useFieldActions.js'\nimport { navigationRoutes } from '../../utils/navigationRoutes.js'\nimport { shortenAddress } from '../../utils/wallet.js'\n\nexport const ConnectedWalletsPage = (): JSX.Element => {\n const { t } = useTranslation()\n const { accounts } = useAccount()\n const { setSelectedBookmark } = useBookmarkActions()\n const { requiredToChainType } = useToAddressRequirements()\n const navigate = useNavigate()\n const { setFieldValue } = useFieldActions()\n const { getAddressLink } = useExplorer()\n const listParentRef = useRef<HTMLUListElement | null>(null)\n\n useHeader(t('sendToWallet.connectedWallets'))\n\n const { listHeight } = useListHeight({ listParentRef })\n\n const handleWalletSelected = (account: Account) => {\n setFieldValue('toAddress', account.address!, {\n isTouched: true,\n isDirty: true,\n })\n setSelectedBookmark({\n name: account.connector?.name,\n address: account.address!,\n chainType: account.chainType!,\n isConnectedAccount: true,\n })\n navigate({\n to: navigationRoutes.home,\n replace: true,\n })\n }\n\n return (\n <PageContainer disableGutters>\n <List\n className=\"long-list\"\n ref={listParentRef}\n style={{ height: listHeight, overflow: 'auto' }}\n disablePadding\n sx={{ paddingTop: 1.5 }}\n >\n {accounts.map((account) => {\n const walletAddress = shortenAddress(account.address)\n const menuItems = [\n {\n icon: <ContentCopyRounded />,\n label: t('button.copyAddress'),\n onClick: () => {\n if (account.address) {\n navigator.clipboard.writeText(account.address)\n }\n },\n },\n ...(account.chainId\n ? [\n {\n icon: <OpenInNewRounded />,\n label: t('button.viewOnExplorer'),\n onClick: () => {\n if (account.address) {\n
|
|
1
|
+
{"version":3,"file":"ConnectedWalletsPage.js","names":["ListItem","ListItemButton"],"sources":["../../../../src/pages/SendToWallet/ConnectedWalletsPage.tsx"],"sourcesContent":["import { useAccount } from '@lifi/wallet-management'\nimport type { Account } from '@lifi/widget-provider'\nimport ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'\nimport OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'\nimport Wallet from '@mui/icons-material/Wallet'\nimport { List, ListItemAvatar, ListItemText } from '@mui/material'\nimport { useNavigate } from '@tanstack/react-router'\nimport { type JSX, useRef } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { AccountAvatar } from '../../components/Avatar/AccountAvatar.js'\nimport { ContextMenu } from '../../components/ContextMenu.js'\nimport { EmptyListIndicator } from '../../components/EmptyListIndicator/EmptyListIndicator.js'\nimport { ListItem } from '../../components/ListItem/ListItem.js'\nimport { ListItemButton } from '../../components/ListItem/ListItemButton.js'\nimport { PageContainer } from '../../components/PageContainer.js'\nimport { useExplorer } from '../../hooks/useExplorer.js'\nimport { useHeader } from '../../hooks/useHeader.js'\nimport { useListHeight } from '../../hooks/useListHeight.js'\nimport { useToAddressRequirements } from '../../hooks/useToAddressRequirements.js'\nimport { useBookmarkActions } from '../../stores/bookmarks/useBookmarkActions.js'\nimport { useFieldActions } from '../../stores/form/useFieldActions.js'\nimport { navigationRoutes } from '../../utils/navigationRoutes.js'\nimport { openInNewTab } from '../../utils/url.js'\nimport { shortenAddress } from '../../utils/wallet.js'\n\nexport const ConnectedWalletsPage = (): JSX.Element => {\n const { t } = useTranslation()\n const { accounts } = useAccount()\n const { setSelectedBookmark } = useBookmarkActions()\n const { requiredToChainType } = useToAddressRequirements()\n const navigate = useNavigate()\n const { setFieldValue } = useFieldActions()\n const { getAddressLink } = useExplorer()\n const listParentRef = useRef<HTMLUListElement | null>(null)\n\n useHeader(t('sendToWallet.connectedWallets'))\n\n const { listHeight } = useListHeight({ listParentRef })\n\n const handleWalletSelected = (account: Account) => {\n setFieldValue('toAddress', account.address!, {\n isTouched: true,\n isDirty: true,\n })\n setSelectedBookmark({\n name: account.connector?.name,\n address: account.address!,\n chainType: account.chainType!,\n isConnectedAccount: true,\n })\n navigate({\n to: navigationRoutes.home,\n replace: true,\n })\n }\n\n return (\n <PageContainer disableGutters>\n <List\n className=\"long-list\"\n ref={listParentRef}\n style={{ height: listHeight, overflow: 'auto' }}\n disablePadding\n sx={{ paddingTop: 1.5 }}\n >\n {accounts.map((account) => {\n const walletAddress = shortenAddress(account.address)\n const menuItems = [\n {\n icon: <ContentCopyRounded />,\n label: t('button.copyAddress'),\n onClick: () => {\n if (account.address) {\n navigator.clipboard.writeText(account.address)\n }\n },\n },\n ...(account.chainId\n ? [\n {\n icon: <OpenInNewRounded />,\n label: t('button.viewOnExplorer'),\n onClick: () => {\n if (account.address) {\n openInNewTab(\n getAddressLink(account.address, account.chainId)\n )\n }\n },\n },\n ]\n : []),\n ]\n\n return (\n <ListItem key={account.address} sx={{ position: 'relative' }}>\n <ListItemButton\n onClick={() => handleWalletSelected(account)}\n disabled={\n requiredToChainType &&\n requiredToChainType !== account.chainType\n }\n >\n <ListItemAvatar>\n <AccountAvatar chainId={account.chainId} account={account} />\n </ListItemAvatar>\n <ListItemText\n primary={account.connector?.name}\n secondary={walletAddress}\n />\n </ListItemButton>\n <ContextMenu\n items={menuItems}\n disabled={\n !!(\n requiredToChainType &&\n requiredToChainType !== account.chainType\n )\n }\n />\n </ListItem>\n )\n })}\n {!accounts.length && (\n <EmptyListIndicator\n icon={<Wallet />}\n title={t('sendToWallet.noConnectedWallets')}\n message={t('sendToWallet.noConnectedWalletsMessage')}\n />\n )}\n </List>\n </PageContainer>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAa,6BAA0C;CACrD,MAAM,EAAE,MAAM,eAAe;CAC7B,MAAM,EAAE,aAAa,WAAW;CAChC,MAAM,EAAE,wBAAwB,mBAAmB;CACnD,MAAM,EAAE,wBAAwB,yBAAyB;CACzD,MAAM,WAAW,YAAY;CAC7B,MAAM,EAAE,kBAAkB,gBAAgB;CAC1C,MAAM,EAAE,mBAAmB,YAAY;CACvC,MAAM,gBAAgB,OAAgC,IAAI;CAE1D,UAAU,EAAE,+BAA+B,CAAC;CAE5C,MAAM,EAAE,eAAe,cAAc,EAAE,cAAc,CAAC;CAEtD,MAAM,wBAAwB,YAAqB;EACjD,cAAc,aAAa,QAAQ,SAAU;GAC3C,WAAW;GACX,SAAS;EACX,CAAC;EACD,oBAAoB;GAClB,MAAM,QAAQ,WAAW;GACzB,SAAS,QAAQ;GACjB,WAAW,QAAQ;GACnB,oBAAoB;EACtB,CAAC;EACD,SAAS;GACP,IAAI,iBAAiB;GACrB,SAAS;EACX,CAAC;CACH;CAEA,OACE,oBAAC,eAAD;EAAe,gBAAA;EACb,UAAA,qBAAC,MAAD;GACE,WAAU;GACV,KAAK;GACL,OAAO;IAAE,QAAQ;IAAY,UAAU;GAAO;GAC9C,gBAAA;GACA,IAAI,EAAE,YAAY,IAAI;GALxB,UAAA,CAOG,SAAS,KAAK,YAAY;IACzB,MAAM,gBAAgB,eAAe,QAAQ,OAAO;IACpD,MAAM,YAAY,CAChB;KACE,MAAM,oBAAC,oBAAD,CAAqB,CAAA;KAC3B,OAAO,EAAE,oBAAoB;KAC7B,eAAe;MACb,IAAI,QAAQ,SACV,UAAU,UAAU,UAAU,QAAQ,OAAO;KAEjD;IACF,GACA,GAAI,QAAQ,UACR,CACE;KACE,MAAM,oBAAC,kBAAD,CAAmB,CAAA;KACzB,OAAO,EAAE,uBAAuB;KAChC,eAAe;MACb,IAAI,QAAQ,SACV,aACE,eAAe,QAAQ,SAAS,QAAQ,OAAO,CACjD;KAEJ;IACF,CACF,IACA,CAAC,CACP;IAEA,OACE,qBAACA,YAAD;KAAgC,IAAI,EAAE,UAAU,WAAW;KAA3D,UAAA,CACE,qBAACC,kBAAD;MACE,eAAe,qBAAqB,OAAO;MAC3C,UACE,uBACA,wBAAwB,QAAQ;MAJpC,UAAA,CAOE,oBAAC,gBAAD,EAAA,UACE,oBAAC,eAAD;OAAe,SAAS,QAAQ;OAAkB;MAAU,CAAA,EAC9C,CAAA,GAChB,oBAAC,cAAD;OACE,SAAS,QAAQ,WAAW;OAC5B,WAAW;MACZ,CAAA,CACa;KAChB,CAAA,GAAA,oBAAC,aAAD;MACE,OAAO;MACP,UACE,CAAC,EACC,uBACA,wBAAwB,QAAQ;KAGrC,CAAA,CACO;IAzBK,GAAA,QAAQ,OAyBb;GAEd,CAAC,GACA,CAAC,SAAS,UACT,oBAAC,oBAAD;IACE,MAAM,oBAAC,QAAD,CAAS,CAAA;IACf,OAAO,EAAE,iCAAiC;IAC1C,SAAS,EAAE,wCAAwC;GACpD,CAAA,CAEC;;CACO,CAAA;AAEnB"}
|