@lifi/widget 2.9.3 → 3.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AppProvider.js +2 -2
- package/AppRoutes.js +75 -67
- package/cjs/AppProvider.js +1 -1
- package/cjs/AppRoutes.js +74 -66
- package/cjs/components/ActiveTransactions/ActiveTransactionItem.js +1 -5
- package/cjs/components/ActiveTransactions/ActiveTransactions.js +2 -2
- package/cjs/components/AmountInput/AmountInputEndAdornment.js +9 -10
- package/cjs/components/AmountInput/FormPriceHelperText.js +1 -1
- package/cjs/components/BaseTransactionButton/BaseTransactionButton.js +5 -4
- package/cjs/components/Card/CardLabel.d.ts +1 -1
- package/cjs/components/ChainSelect/ChainSelect.js +8 -5
- package/cjs/components/ChainSelect/useChainSelect.js +21 -2
- package/cjs/components/GasMessage/GasMessage.style.js +3 -6
- package/cjs/components/GasMessage/GasSufficiencyMessage.js +2 -1
- package/cjs/components/Header/Header.style.d.ts +8 -0
- package/cjs/components/Header/Header.style.js +16 -1
- package/cjs/components/Header/NavigationHeader.d.ts +1 -0
- package/cjs/components/Header/NavigationHeader.js +15 -8
- package/cjs/components/Header/NavigationTabs.js +2 -2
- package/cjs/components/Header/SettingsButton.d.ts +1 -0
- package/cjs/components/Header/SettingsButton.js +25 -0
- package/cjs/components/Header/SettingsButton.style.d.ts +11 -0
- package/cjs/components/Header/SettingsButton.style.js +43 -0
- package/cjs/components/Header/WalletHeader.js +11 -24
- package/cjs/components/Header/WalletMenu.d.ts +3 -1
- package/cjs/components/Header/WalletMenu.js +58 -24
- package/cjs/components/Header/WalletMenu.style.d.ts +1 -0
- package/cjs/components/Header/WalletMenu.style.js +27 -0
- package/cjs/components/Insurance/InsuranceCollapsed.js +1 -1
- package/cjs/components/NFT/NFT.js +3 -1
- package/cjs/components/NFT/types.d.ts +1 -1
- package/cjs/components/PoweredBy/PoweredBy.js +2 -1
- package/cjs/components/RouteCard/RouteCard.js +3 -3
- package/cjs/components/RouteCard/RouteCardEssentials.js +2 -1
- package/cjs/components/RouteCard/utils.d.ts +2 -3
- package/cjs/components/RouteCard/utils.js +4 -9
- package/cjs/components/SendToWallet/SendToWallet.js +24 -21
- package/cjs/components/SendToWallet/SendToWalletButton.js +3 -2
- package/{pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts → cjs/components/SettingsListItemButton.d.ts} +1 -1
- package/cjs/components/SettingsListItemButton.js +8 -0
- package/cjs/components/Step/DestinationWalletAddress.d.ts +2 -2
- package/cjs/components/Step/GasStepProcess.d.ts +2 -2
- package/cjs/components/Step/Step.d.ts +2 -2
- package/cjs/components/Step/Step.js +1 -1
- package/cjs/components/Step/StepList.d.ts +2 -2
- package/cjs/components/Step/StepList.js +4 -4
- package/cjs/components/Step/StepProcess.d.ts +2 -2
- package/cjs/components/Step/StepTimer.d.ts +2 -2
- package/cjs/components/StepActions/StepActions.d.ts +3 -3
- package/cjs/components/StepActions/StepActions.js +11 -14
- package/cjs/components/StepActions/types.d.ts +2 -2
- package/cjs/components/{Header/NavigationTabs.style.d.ts → Tabs/Tabs.style.d.ts} +2 -2
- package/cjs/components/{Header/NavigationTabs.style.js → Tabs/Tabs.style.js} +9 -31
- package/cjs/components/Tabs/index.d.ts +1 -0
- package/cjs/{providers/SDKProvider → components/Tabs}/index.js +1 -1
- package/cjs/components/Token/Token.d.ts +3 -3
- package/cjs/components/Token/Token.js +5 -5
- package/cjs/components/TokenList/TokenList.js +2 -2
- package/cjs/components/TokenList/TokenListItem.js +9 -5
- package/cjs/components/TokenList/TokenNotFound.js +1 -1
- package/cjs/components/TokenList/VirtualizedTokenList.js +2 -1
- package/cjs/config/queryClient.js +0 -4
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/hooks/index.d.ts +7 -1
- package/cjs/hooks/index.js +7 -1
- package/cjs/hooks/useAccount.d.ts +31 -0
- package/cjs/hooks/useAccount.js +53 -0
- package/cjs/hooks/useAvailableChains.d.ts +6 -0
- package/cjs/hooks/useAvailableChains.js +36 -0
- package/cjs/hooks/useChain.js +3 -6
- package/cjs/hooks/useChains.d.ts +1 -1
- package/cjs/hooks/useChains.js +7 -38
- package/cjs/hooks/useFromTokenSufficiency.d.ts +3 -3
- package/cjs/hooks/useFromTokenSufficiency.js +39 -41
- package/cjs/hooks/useGasRecommendation.d.ts +2 -2
- package/cjs/hooks/useGasRecommendation.js +23 -18
- package/cjs/hooks/useGasRefuel.js +18 -11
- package/cjs/hooks/useGasSufficiency.d.ts +6 -7
- package/cjs/hooks/useGasSufficiency.js +68 -71
- package/cjs/hooks/useLanguages.d.ts +6 -0
- package/cjs/hooks/useLanguages.js +28 -0
- package/cjs/hooks/useProcessMessage.d.ts +3 -3
- package/cjs/hooks/useProcessMessage.js +32 -28
- package/cjs/hooks/useRequiredToAddress.d.ts +1 -0
- package/cjs/hooks/useRequiredToAddress.js +19 -0
- package/cjs/hooks/useRouteExecution.d.ts +2 -2
- package/cjs/hooks/useRouteExecution.js +44 -58
- package/cjs/hooks/useRoutes.d.ts +1 -1
- package/cjs/hooks/useRoutes.js +128 -113
- package/cjs/hooks/useSettingMonitor.d.ts +11 -0
- package/cjs/hooks/useSettingMonitor.js +57 -0
- package/cjs/hooks/useTokenAddressBalance.d.ts +1 -1
- package/cjs/hooks/useTokenBalance.d.ts +5 -3
- package/cjs/hooks/useTokenBalance.js +77 -47
- package/cjs/hooks/useTokenBalances.d.ts +3 -3
- package/cjs/hooks/useTokenBalances.js +34 -24
- package/cjs/hooks/useTokenSearch.js +18 -17
- package/cjs/hooks/useTokens.d.ts +2 -1
- package/cjs/hooks/useTokens.js +18 -15
- package/cjs/hooks/useTools.d.ts +1 -1
- package/cjs/hooks/useTools.js +12 -11
- package/cjs/hooks/useTransactionDetails.d.ts +4 -0
- package/cjs/hooks/useTransactionDetails.js +56 -0
- package/cjs/hooks/useTransactionHistory.d.ts +5 -0
- package/cjs/hooks/useTransactionHistory.js +39 -0
- package/cjs/i18n/en.json +18 -9
- package/cjs/i18n/fr.json +7 -4
- package/cjs/i18n/pt.json +7 -4
- package/cjs/i18n/tr.json +7 -4
- package/cjs/i18n/uk.json +7 -4
- package/cjs/i18n/zh.json +7 -4
- package/cjs/icons/index.d.ts +1 -3
- package/cjs/icons/index.js +1 -3
- package/cjs/icons/lifi.d.ts +1 -0
- package/cjs/icons/lifi.js +4 -0
- package/cjs/index.d.ts +2 -3
- package/cjs/index.js +4 -4
- package/cjs/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +2 -2
- package/cjs/pages/LanguagesPage/LanguagesPage.d.ts +2 -0
- package/cjs/pages/LanguagesPage/LanguagesPage.js +22 -0
- package/cjs/pages/LanguagesPage/index.d.ts +1 -0
- package/cjs/pages/LanguagesPage/index.js +17 -0
- package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +15 -5
- package/cjs/pages/SelectWalletPage/EVMListItemButton.d.ts +8 -0
- package/cjs/pages/SelectWalletPage/EVMListItemButton.js +40 -0
- package/cjs/pages/SelectWalletPage/SVMListItemButton.d.ts +6 -0
- package/cjs/pages/SelectWalletPage/SVMListItemButton.js +34 -0
- package/cjs/pages/SelectWalletPage/SelectWalletPage.js +31 -32
- package/cjs/pages/SelectWalletPage/utils.d.ts +3 -0
- package/cjs/pages/SelectWalletPage/utils.js +21 -0
- package/{pages/SettingsPage/EnabledToolsButton.d.ts → cjs/pages/SettingsPage/BridgeAndExchangeSettings.d.ts} +1 -1
- package/cjs/pages/SettingsPage/BridgeAndExchangeSettings.js +36 -0
- package/cjs/pages/SettingsPage/GasPriceSettings.d.ts +2 -0
- package/cjs/pages/SettingsPage/GasPriceSettings.js +21 -0
- package/cjs/pages/SettingsPage/LanguageSetting.d.ts +2 -0
- package/cjs/pages/SettingsPage/LanguageSetting.js +26 -0
- package/cjs/pages/SettingsPage/ResetSettingsButton.js +3 -30
- package/cjs/pages/SettingsPage/RoutePrioritySettings.d.ts +2 -0
- package/cjs/pages/SettingsPage/RoutePrioritySettings.js +25 -0
- package/cjs/pages/SettingsPage/SendToWalletOptionSetting.d.ts +1 -0
- package/cjs/pages/SettingsPage/{ShowDestinationWallet.js → SendToWalletOptionSetting.js} +6 -9
- package/cjs/pages/SettingsPage/SettingsCard/BadgedValue.d.ts +8 -0
- package/cjs/pages/SettingsPage/SettingsCard/BadgedValue.js +7 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingCard.d.ts +2 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingCard.js +11 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingCard.style.d.ts +19 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingCard.style.js +53 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingCardButton.d.ts +7 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingCardButton.js +8 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingCardExpandable.d.ts +7 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingCardExpandable.js +16 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingsAccordian.d.ts +6 -0
- package/cjs/pages/SettingsPage/SettingsCard/SettingsAccordian.js +36 -0
- package/cjs/pages/SettingsPage/SettingsCard/index.d.ts +6 -0
- package/cjs/pages/SettingsPage/SettingsCard/index.js +22 -0
- package/cjs/pages/SettingsPage/SettingsCard/types.d.ts +5 -0
- package/cjs/pages/SettingsPage/SettingsPage.js +9 -8
- package/cjs/pages/SettingsPage/SlippageSettings/SlippageSettings.d.ts +2 -0
- package/cjs/pages/SettingsPage/SlippageSettings/SlippageSettings.js +51 -0
- package/cjs/pages/SettingsPage/SlippageSettings/SlippageSettings.style.d.ts +16 -0
- package/cjs/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +74 -0
- package/cjs/pages/SettingsPage/SlippageSettings/index.d.ts +1 -0
- package/cjs/pages/SettingsPage/SlippageSettings/index.js +17 -0
- package/cjs/pages/SettingsPage/ThemeSettings.d.ts +2 -0
- package/cjs/pages/SettingsPage/ThemeSettings.js +39 -0
- package/cjs/pages/TransactionDetailsPage/ContactSupportButton.js +2 -2
- package/cjs/pages/TransactionDetailsPage/TransactionDetailsPage.js +33 -28
- package/cjs/pages/TransactionDetailsPage/TransactionDetailsSkeleton.d.ts +1 -0
- package/cjs/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js +31 -0
- package/cjs/pages/TransactionHistoryPage/TransactionHistoryItem.d.ts +4 -2
- package/cjs/pages/TransactionHistoryPage/TransactionHistoryItem.js +34 -7
- package/cjs/pages/TransactionHistoryPage/TransactionHistoryPage.js +21 -22
- package/cjs/pages/TransactionHistoryPage/TransactionHistorySkeleton.d.ts +1 -0
- package/cjs/pages/TransactionHistoryPage/TransactionHistorySkeleton.js +26 -0
- package/cjs/pages/TransactionHistoryPage/constants.d.ts +1 -0
- package/cjs/pages/TransactionHistoryPage/constants.js +4 -0
- package/cjs/pages/TransactionPage/ExchangeRateBottomSheet.js +11 -10
- package/cjs/pages/TransactionPage/StartTransactionButton.js +2 -2
- package/cjs/pages/TransactionPage/StatusBottomSheet.js +12 -8
- package/cjs/pages/TransactionPage/TransactionPage.js +1 -1
- package/cjs/providers/FormProvider/FormUpdater.js +4 -4
- package/cjs/providers/I18nProvider/I18nProvider.js +3 -7
- package/cjs/providers/I18nProvider/types.d.ts +4 -3
- package/cjs/providers/WalletProvider/EVMProvider.d.ts +3 -0
- package/cjs/providers/WalletProvider/EVMProvider.js +79 -0
- package/cjs/providers/WalletProvider/SDKProviders.d.ts +1 -0
- package/cjs/providers/WalletProvider/SDKProviders.js +31 -0
- package/cjs/providers/WalletProvider/SolanaProvider.d.ts +3 -0
- package/cjs/providers/WalletProvider/SolanaProvider.js +35 -0
- package/cjs/providers/WalletProvider/WalletProvider.d.ts +1 -15
- package/cjs/providers/WalletProvider/WalletProvider.js +5 -183
- package/cjs/providers/WalletProvider/index.d.ts +1 -1
- package/cjs/providers/WalletProvider/index.js +1 -1
- package/cjs/providers/WalletProvider/utils.d.ts +3 -0
- package/cjs/providers/WalletProvider/utils.js +25 -0
- package/cjs/providers/WidgetProvider/WidgetProvider.js +51 -35
- package/cjs/providers/index.d.ts +0 -1
- package/cjs/providers/index.js +0 -1
- package/cjs/stores/chains/ChainOrderStore.js +24 -0
- package/cjs/stores/header/useHeaderStore.d.ts +1 -1
- package/cjs/stores/header/useHeaderStore.js +2 -2
- package/cjs/stores/routes/createRouteExecutionStore.js +6 -60
- package/cjs/stores/routes/index.d.ts +0 -1
- package/cjs/stores/routes/index.js +0 -1
- package/cjs/stores/routes/types.d.ts +2 -2
- package/cjs/stores/routes/utils.d.ts +8 -8
- package/cjs/stores/routes/utils.js +7 -5
- package/cjs/stores/settings/useSettingsStore.js +2 -4
- package/cjs/stores/settings/useSplitSubvariantStore.d.ts +1 -1
- package/cjs/stores/settings/useSplitSubvariantStore.js +2 -2
- package/cjs/types/events.d.ts +6 -5
- package/cjs/types/events.js +1 -1
- package/cjs/types/widget.d.ts +7 -14
- package/cjs/utils/colors.d.ts +3 -0
- package/cjs/utils/colors.js +13 -1
- package/cjs/utils/converters.d.ts +3 -0
- package/cjs/utils/converters.js +172 -0
- package/cjs/utils/format.d.ts +1 -1
- package/cjs/utils/format.js +5 -12
- package/cjs/utils/index.d.ts +1 -0
- package/cjs/utils/index.js +1 -0
- package/cjs/utils/navigationRoutes.d.ts +1 -0
- package/cjs/utils/navigationRoutes.js +3 -1
- package/cjs/utils/svm.d.ts +1 -0
- package/cjs/utils/svm.js +14 -0
- package/components/ActiveTransactions/ActiveTransactionItem.js +1 -5
- package/components/ActiveTransactions/ActiveTransactions.js +2 -2
- package/components/AmountInput/AmountInputEndAdornment.js +10 -11
- package/components/AmountInput/FormPriceHelperText.js +1 -1
- package/components/BaseTransactionButton/BaseTransactionButton.js +6 -5
- package/components/Card/CardLabel.d.ts +1 -1
- package/components/ChainSelect/ChainSelect.js +8 -5
- package/components/ChainSelect/useChainSelect.js +22 -3
- package/components/GasMessage/GasMessage.style.js +3 -6
- package/components/GasMessage/GasSufficiencyMessage.js +2 -1
- package/components/Header/Header.style.d.ts +8 -0
- package/components/Header/Header.style.js +16 -1
- package/components/Header/NavigationHeader.d.ts +1 -0
- package/components/Header/NavigationHeader.js +16 -10
- package/components/Header/NavigationTabs.js +3 -3
- package/components/Header/SettingsButton.d.ts +1 -0
- package/components/Header/SettingsButton.js +21 -0
- package/components/Header/SettingsButton.style.d.ts +11 -0
- package/components/Header/SettingsButton.style.js +40 -0
- package/components/Header/WalletHeader.js +15 -28
- package/components/Header/WalletMenu.d.ts +3 -1
- package/components/Header/WalletMenu.js +58 -25
- package/components/Header/WalletMenu.style.d.ts +1 -0
- package/components/Header/WalletMenu.style.js +24 -0
- package/components/Insurance/InsuranceCollapsed.js +1 -1
- package/components/NFT/NFT.js +3 -1
- package/components/NFT/types.d.ts +1 -1
- package/components/PoweredBy/PoweredBy.js +2 -1
- package/components/RouteCard/RouteCard.js +3 -3
- package/components/RouteCard/RouteCardEssentials.js +2 -1
- package/components/RouteCard/utils.d.ts +2 -3
- package/components/RouteCard/utils.js +4 -9
- package/components/SendToWallet/SendToWallet.js +26 -23
- package/components/SendToWallet/SendToWalletButton.js +5 -4
- package/{cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts → components/SettingsListItemButton.d.ts} +1 -1
- package/components/SettingsListItemButton.js +5 -0
- package/components/Step/DestinationWalletAddress.d.ts +2 -2
- package/components/Step/GasStepProcess.d.ts +2 -2
- package/components/Step/Step.d.ts +2 -2
- package/components/Step/Step.js +2 -2
- package/components/Step/StepList.d.ts +2 -2
- package/components/Step/StepList.js +4 -4
- package/components/Step/StepProcess.d.ts +2 -2
- package/components/Step/StepTimer.d.ts +2 -2
- package/components/StepActions/StepActions.d.ts +3 -3
- package/components/StepActions/StepActions.js +12 -15
- package/components/StepActions/types.d.ts +2 -2
- package/components/{Header/NavigationTabs.style.d.ts → Tabs/Tabs.style.d.ts} +2 -2
- package/components/Tabs/Tabs.style.js +36 -0
- package/components/Tabs/index.d.ts +1 -0
- package/components/Tabs/index.js +1 -0
- package/components/Token/Token.d.ts +3 -3
- package/components/Token/Token.js +5 -5
- package/components/TokenList/TokenList.js +4 -4
- package/components/TokenList/TokenListItem.js +9 -6
- package/components/TokenList/TokenNotFound.js +2 -2
- package/components/TokenList/VirtualizedTokenList.js +2 -1
- package/config/queryClient.js +0 -4
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/hooks/index.d.ts +7 -1
- package/hooks/index.js +7 -1
- package/hooks/useAccount.d.ts +31 -0
- package/hooks/useAccount.js +48 -0
- package/hooks/useAvailableChains.d.ts +6 -0
- package/hooks/useAvailableChains.js +32 -0
- package/hooks/useChain.js +3 -6
- package/hooks/useChains.d.ts +1 -1
- package/hooks/useChains.js +9 -40
- package/hooks/useFromTokenSufficiency.d.ts +3 -3
- package/hooks/useFromTokenSufficiency.js +41 -43
- package/hooks/useGasRecommendation.d.ts +2 -2
- package/hooks/useGasRecommendation.js +23 -18
- package/hooks/useGasRefuel.js +19 -12
- package/hooks/useGasSufficiency.d.ts +6 -7
- package/hooks/useGasSufficiency.js +69 -72
- package/hooks/useLanguages.d.ts +6 -0
- package/hooks/useLanguages.js +24 -0
- package/hooks/useProcessMessage.d.ts +3 -3
- package/hooks/useProcessMessage.js +33 -29
- package/hooks/useRequiredToAddress.d.ts +1 -0
- package/hooks/useRequiredToAddress.js +15 -0
- package/hooks/useRouteExecution.d.ts +2 -2
- package/hooks/useRouteExecution.js +44 -58
- package/hooks/useRoutes.d.ts +1 -1
- package/hooks/useRoutes.js +131 -116
- package/hooks/useSettingMonitor.d.ts +11 -0
- package/hooks/useSettingMonitor.js +53 -0
- package/hooks/useTokenAddressBalance.d.ts +1 -1
- package/hooks/useTokenBalance.d.ts +5 -3
- package/hooks/useTokenBalance.js +74 -45
- package/hooks/useTokenBalances.d.ts +3 -3
- package/hooks/useTokenBalances.js +34 -24
- package/hooks/useTokenSearch.js +18 -17
- package/hooks/useTokens.d.ts +2 -1
- package/hooks/useTokens.js +19 -16
- package/hooks/useTools.d.ts +1 -1
- package/hooks/useTools.js +13 -12
- package/hooks/useTransactionDetails.d.ts +4 -0
- package/hooks/useTransactionDetails.js +52 -0
- package/hooks/useTransactionHistory.d.ts +5 -0
- package/hooks/useTransactionHistory.js +35 -0
- package/i18n/en.json +18 -9
- package/i18n/fr.json +7 -4
- package/i18n/pt.json +7 -4
- package/i18n/tr.json +7 -4
- package/i18n/uk.json +7 -4
- package/i18n/zh.json +7 -4
- package/icons/index.d.ts +1 -3
- package/icons/index.js +1 -3
- package/icons/lifi.d.ts +1 -0
- package/icons/lifi.js +1 -0
- package/index.d.ts +2 -3
- package/index.js +2 -4
- package/package.json +19 -19
- package/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +2 -2
- package/pages/LanguagesPage/LanguagesPage.d.ts +2 -0
- package/pages/LanguagesPage/LanguagesPage.js +18 -0
- package/pages/LanguagesPage/index.d.ts +1 -0
- package/pages/LanguagesPage/index.js +1 -0
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +16 -6
- package/pages/SelectWalletPage/EVMListItemButton.d.ts +8 -0
- package/pages/SelectWalletPage/EVMListItemButton.js +36 -0
- package/pages/SelectWalletPage/SVMListItemButton.d.ts +6 -0
- package/pages/SelectWalletPage/SVMListItemButton.js +30 -0
- package/pages/SelectWalletPage/SelectWalletPage.js +34 -35
- package/pages/SelectWalletPage/utils.d.ts +3 -0
- package/pages/SelectWalletPage/utils.js +17 -0
- package/{cjs/pages/SettingsPage/EnabledToolsButton.d.ts → pages/SettingsPage/BridgeAndExchangeSettings.d.ts} +1 -1
- package/pages/SettingsPage/BridgeAndExchangeSettings.js +32 -0
- package/pages/SettingsPage/GasPriceSettings.d.ts +2 -0
- package/pages/SettingsPage/GasPriceSettings.js +17 -0
- package/pages/SettingsPage/LanguageSetting.d.ts +2 -0
- package/pages/SettingsPage/LanguageSetting.js +22 -0
- package/pages/SettingsPage/ResetSettingsButton.js +4 -31
- package/pages/SettingsPage/RoutePrioritySettings.d.ts +2 -0
- package/pages/SettingsPage/RoutePrioritySettings.js +21 -0
- package/pages/SettingsPage/SendToWalletOptionSetting.d.ts +1 -0
- package/pages/SettingsPage/{ShowDestinationWallet.js → SendToWalletOptionSetting.js} +4 -7
- package/pages/SettingsPage/SettingsCard/BadgedValue.d.ts +8 -0
- package/pages/SettingsPage/SettingsCard/BadgedValue.js +3 -0
- package/pages/SettingsPage/SettingsCard/SettingCard.d.ts +2 -0
- package/pages/SettingsPage/SettingsCard/SettingCard.js +7 -0
- package/pages/SettingsPage/SettingsCard/SettingCard.style.d.ts +19 -0
- package/pages/SettingsPage/SettingsCard/SettingCard.style.js +50 -0
- package/pages/SettingsPage/SettingsCard/SettingCardButton.d.ts +7 -0
- package/pages/SettingsPage/SettingsCard/SettingCardButton.js +4 -0
- package/pages/SettingsPage/SettingsCard/SettingCardExpandable.d.ts +7 -0
- package/pages/SettingsPage/SettingsCard/SettingCardExpandable.js +12 -0
- package/pages/SettingsPage/SettingsCard/SettingsAccordian.d.ts +6 -0
- package/pages/SettingsPage/SettingsCard/SettingsAccordian.js +31 -0
- package/pages/SettingsPage/SettingsCard/index.d.ts +6 -0
- package/pages/SettingsPage/SettingsCard/index.js +6 -0
- package/pages/SettingsPage/SettingsCard/types.d.ts +5 -0
- package/pages/SettingsPage/SettingsPage.js +10 -9
- package/pages/SettingsPage/SlippageSettings/SlippageSettings.d.ts +2 -0
- package/pages/SettingsPage/SlippageSettings/SlippageSettings.js +47 -0
- package/pages/SettingsPage/SlippageSettings/SlippageSettings.style.d.ts +16 -0
- package/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +71 -0
- package/pages/SettingsPage/SlippageSettings/index.d.ts +1 -0
- package/pages/SettingsPage/SlippageSettings/index.js +1 -0
- package/pages/SettingsPage/ThemeSettings.d.ts +2 -0
- package/pages/SettingsPage/ThemeSettings.js +35 -0
- package/pages/TransactionDetailsPage/ContactSupportButton.js +2 -2
- package/pages/TransactionDetailsPage/TransactionDetailsPage.js +38 -33
- package/pages/TransactionDetailsPage/TransactionDetailsSkeleton.d.ts +1 -0
- package/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js +27 -0
- package/pages/TransactionHistoryPage/TransactionHistoryItem.d.ts +4 -2
- package/pages/TransactionHistoryPage/TransactionHistoryItem.js +34 -7
- package/pages/TransactionHistoryPage/TransactionHistoryPage.js +24 -25
- package/pages/TransactionHistoryPage/TransactionHistorySkeleton.d.ts +1 -0
- package/pages/TransactionHistoryPage/TransactionHistorySkeleton.js +22 -0
- package/pages/TransactionHistoryPage/constants.d.ts +1 -0
- package/pages/TransactionHistoryPage/constants.js +1 -0
- package/pages/TransactionPage/ExchangeRateBottomSheet.js +11 -10
- package/pages/TransactionPage/StartTransactionButton.js +2 -2
- package/pages/TransactionPage/StatusBottomSheet.js +14 -10
- package/pages/TransactionPage/TransactionPage.js +1 -1
- package/providers/FormProvider/FormUpdater.js +4 -4
- package/providers/I18nProvider/I18nProvider.js +4 -8
- package/providers/I18nProvider/types.d.ts +4 -3
- package/providers/WalletProvider/EVMProvider.d.ts +3 -0
- package/providers/WalletProvider/EVMProvider.js +74 -0
- package/providers/WalletProvider/SDKProviders.d.ts +1 -0
- package/providers/WalletProvider/SDKProviders.js +27 -0
- package/providers/WalletProvider/SolanaProvider.d.ts +3 -0
- package/providers/WalletProvider/SolanaProvider.js +30 -0
- package/providers/WalletProvider/WalletProvider.d.ts +1 -15
- package/providers/WalletProvider/WalletProvider.js +5 -181
- package/providers/WalletProvider/index.d.ts +1 -1
- package/providers/WalletProvider/index.js +1 -1
- package/providers/WalletProvider/utils.d.ts +3 -0
- package/providers/WalletProvider/utils.js +21 -0
- package/providers/WidgetProvider/WidgetProvider.js +52 -36
- package/providers/index.d.ts +0 -1
- package/providers/index.js +0 -1
- package/stores/chains/ChainOrderStore.js +25 -1
- package/stores/header/useHeaderStore.d.ts +1 -1
- package/stores/header/useHeaderStore.js +2 -2
- package/stores/routes/createRouteExecutionStore.js +6 -60
- package/stores/routes/index.d.ts +0 -1
- package/stores/routes/index.js +0 -1
- package/stores/routes/types.d.ts +2 -2
- package/stores/routes/utils.d.ts +8 -8
- package/stores/routes/utils.js +5 -3
- package/stores/settings/useSettingsStore.js +2 -4
- package/stores/settings/useSplitSubvariantStore.d.ts +1 -1
- package/stores/settings/useSplitSubvariantStore.js +2 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/types/events.d.ts +6 -5
- package/types/events.js +1 -1
- package/types/widget.d.ts +7 -14
- package/utils/colors.d.ts +3 -0
- package/utils/colors.js +10 -1
- package/utils/converters.d.ts +3 -0
- package/utils/converters.js +168 -0
- package/utils/format.d.ts +1 -1
- package/utils/format.js +5 -12
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/navigationRoutes.d.ts +1 -0
- package/utils/navigationRoutes.js +3 -1
- package/utils/svm.d.ts +1 -0
- package/utils/svm.js +10 -0
- package/cjs/components/LiFiLogo.d.ts +0 -5
- package/cjs/components/LiFiLogo.js +0 -10
- package/cjs/fonts/Inter-Black.woff +0 -0
- package/cjs/fonts/Inter-Black.woff2 +0 -0
- package/cjs/fonts/Inter-BlackItalic.woff +0 -0
- package/cjs/fonts/Inter-BlackItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Bold.woff +0 -0
- package/cjs/fonts/Inter-Bold.woff2 +0 -0
- package/cjs/fonts/Inter-BoldItalic.woff +0 -0
- package/cjs/fonts/Inter-BoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraBold.woff +0 -0
- package/cjs/fonts/Inter-ExtraBold.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraBoldItalic.woff +0 -0
- package/cjs/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraLight.woff +0 -0
- package/cjs/fonts/Inter-ExtraLight.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraLightItalic.woff +0 -0
- package/cjs/fonts/Inter-ExtraLightItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Italic.woff +0 -0
- package/cjs/fonts/Inter-Italic.woff2 +0 -0
- package/cjs/fonts/Inter-Light.woff +0 -0
- package/cjs/fonts/Inter-Light.woff2 +0 -0
- package/cjs/fonts/Inter-LightItalic.woff +0 -0
- package/cjs/fonts/Inter-LightItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Medium.woff +0 -0
- package/cjs/fonts/Inter-Medium.woff2 +0 -0
- package/cjs/fonts/Inter-MediumItalic.woff +0 -0
- package/cjs/fonts/Inter-MediumItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Regular.woff +0 -0
- package/cjs/fonts/Inter-Regular.woff2 +0 -0
- package/cjs/fonts/Inter-SemiBold.woff +0 -0
- package/cjs/fonts/Inter-SemiBold.woff2 +0 -0
- package/cjs/fonts/Inter-SemiBoldItalic.woff +0 -0
- package/cjs/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Thin.woff +0 -0
- package/cjs/fonts/Inter-Thin.woff2 +0 -0
- package/cjs/fonts/Inter-ThinItalic.woff +0 -0
- package/cjs/fonts/Inter-ThinItalic.woff2 +0 -0
- package/cjs/fonts/Inter-italic.var.woff2 +0 -0
- package/cjs/fonts/Inter-roman.var.woff2 +0 -0
- package/cjs/fonts/Inter.var.woff2 +0 -0
- package/cjs/fonts/inter.css +0 -217
- package/cjs/hooks/useGetTokenBalancesWithRetry.d.ts +0 -3
- package/cjs/hooks/useGetTokenBalancesWithRetry.js +0 -33
- package/cjs/icons/LiFiFullLogo.d.ts +0 -2
- package/cjs/icons/LiFiFullLogo.js +0 -6
- package/cjs/icons/LiFiLogo.d.ts +0 -2
- package/cjs/icons/LiFiLogo.js +0 -6
- package/cjs/icons/LiFiToolLogo.d.ts +0 -2
- package/cjs/icons/LiFiToolLogo.js +0 -6
- package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.js +0 -8
- package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.d.ts +0 -2
- package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.js +0 -27
- package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +0 -4
- package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.js +0 -19
- package/cjs/pages/SettingsPage/EnabledToolsButton.js +0 -25
- package/cjs/pages/SettingsPage/EnabledToolsButton.style.d.ts +0 -5
- package/cjs/pages/SettingsPage/EnabledToolsButton.style.js +0 -17
- package/cjs/pages/SettingsPage/GasPriceSelect.d.ts +0 -1
- package/cjs/pages/SettingsPage/GasPriceSelect.js +0 -17
- package/cjs/pages/SettingsPage/LanguageSelect.d.ts +0 -2
- package/cjs/pages/SettingsPage/LanguageSelect.js +0 -37
- package/cjs/pages/SettingsPage/RoutePrioritySelect.d.ts +0 -2
- package/cjs/pages/SettingsPage/RoutePrioritySelect.js +0 -23
- package/cjs/pages/SettingsPage/ShowDestinationWallet.d.ts +0 -1
- package/cjs/pages/SettingsPage/SlippageInput.d.ts +0 -1
- package/cjs/pages/SettingsPage/SlippageInput.js +0 -30
- package/cjs/providers/SDKProvider/SDKProvider.d.ts +0 -4
- package/cjs/providers/SDKProvider/SDKProvider.js +0 -41
- package/cjs/providers/SDKProvider/index.d.ts +0 -1
- package/cjs/providers/WalletProvider/types.d.ts +0 -17
- package/cjs/stores/routes/useTransactionHistory.d.ts +0 -2
- package/cjs/stores/routes/useTransactionHistory.js +0 -15
- package/components/Header/NavigationTabs.style.js +0 -58
- package/components/LiFiLogo.d.ts +0 -5
- package/components/LiFiLogo.js +0 -6
- package/fonts/Inter-Black.woff +0 -0
- package/fonts/Inter-Black.woff2 +0 -0
- package/fonts/Inter-BlackItalic.woff +0 -0
- package/fonts/Inter-BlackItalic.woff2 +0 -0
- package/fonts/Inter-Bold.woff +0 -0
- package/fonts/Inter-Bold.woff2 +0 -0
- package/fonts/Inter-BoldItalic.woff +0 -0
- package/fonts/Inter-BoldItalic.woff2 +0 -0
- package/fonts/Inter-ExtraBold.woff +0 -0
- package/fonts/Inter-ExtraBold.woff2 +0 -0
- package/fonts/Inter-ExtraBoldItalic.woff +0 -0
- package/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
- package/fonts/Inter-ExtraLight.woff +0 -0
- package/fonts/Inter-ExtraLight.woff2 +0 -0
- package/fonts/Inter-ExtraLightItalic.woff +0 -0
- package/fonts/Inter-ExtraLightItalic.woff2 +0 -0
- package/fonts/Inter-Italic.woff +0 -0
- package/fonts/Inter-Italic.woff2 +0 -0
- package/fonts/Inter-Light.woff +0 -0
- package/fonts/Inter-Light.woff2 +0 -0
- package/fonts/Inter-LightItalic.woff +0 -0
- package/fonts/Inter-LightItalic.woff2 +0 -0
- package/fonts/Inter-Medium.woff +0 -0
- package/fonts/Inter-Medium.woff2 +0 -0
- package/fonts/Inter-MediumItalic.woff +0 -0
- package/fonts/Inter-MediumItalic.woff2 +0 -0
- package/fonts/Inter-Regular.woff +0 -0
- package/fonts/Inter-Regular.woff2 +0 -0
- package/fonts/Inter-SemiBold.woff +0 -0
- package/fonts/Inter-SemiBold.woff2 +0 -0
- package/fonts/Inter-SemiBoldItalic.woff +0 -0
- package/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/fonts/Inter-Thin.woff +0 -0
- package/fonts/Inter-Thin.woff2 +0 -0
- package/fonts/Inter-ThinItalic.woff +0 -0
- package/fonts/Inter-ThinItalic.woff2 +0 -0
- package/fonts/Inter-italic.var.woff2 +0 -0
- package/fonts/Inter-roman.var.woff2 +0 -0
- package/fonts/Inter.var.woff2 +0 -0
- package/fonts/inter.css +0 -217
- package/hooks/useGetTokenBalancesWithRetry.d.ts +0 -3
- package/hooks/useGetTokenBalancesWithRetry.js +0 -29
- package/icons/LiFiFullLogo.d.ts +0 -2
- package/icons/LiFiFullLogo.js +0 -2
- package/icons/LiFiLogo.d.ts +0 -2
- package/icons/LiFiLogo.js +0 -2
- package/icons/LiFiToolLogo.d.ts +0 -2
- package/icons/LiFiToolLogo.js +0 -2
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.js +0 -5
- package/pages/SettingsPage/ColorSchemeButtonGroup.d.ts +0 -2
- package/pages/SettingsPage/ColorSchemeButtonGroup.js +0 -23
- package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +0 -4
- package/pages/SettingsPage/ColorSchemeButtonGroup.style.js +0 -16
- package/pages/SettingsPage/EnabledToolsButton.js +0 -21
- package/pages/SettingsPage/EnabledToolsButton.style.d.ts +0 -5
- package/pages/SettingsPage/EnabledToolsButton.style.js +0 -14
- package/pages/SettingsPage/GasPriceSelect.d.ts +0 -1
- package/pages/SettingsPage/GasPriceSelect.js +0 -13
- package/pages/SettingsPage/LanguageSelect.d.ts +0 -2
- package/pages/SettingsPage/LanguageSelect.js +0 -33
- package/pages/SettingsPage/RoutePrioritySelect.d.ts +0 -2
- package/pages/SettingsPage/RoutePrioritySelect.js +0 -19
- package/pages/SettingsPage/ShowDestinationWallet.d.ts +0 -1
- package/pages/SettingsPage/SlippageInput.d.ts +0 -1
- package/pages/SettingsPage/SlippageInput.js +0 -26
- package/providers/SDKProvider/SDKProvider.d.ts +0 -4
- package/providers/SDKProvider/SDKProvider.js +0 -36
- package/providers/SDKProvider/index.d.ts +0 -1
- package/providers/SDKProvider/index.js +0 -1
- package/providers/WalletProvider/types.d.ts +0 -17
- package/stores/routes/useTransactionHistory.d.ts +0 -2
- package/stores/routes/useTransactionHistory.js +0 -11
- /package/cjs/{providers/WalletProvider → pages/SettingsPage/SettingsCard}/types.js +0 -0
- /package/{providers/WalletProvider → pages/SettingsPage/SettingsCard}/types.js +0 -0
package/cjs/fonts/inter.css
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Inter';
|
|
3
|
-
font-style: normal;
|
|
4
|
-
font-weight: 100;
|
|
5
|
-
font-display: swap;
|
|
6
|
-
src:
|
|
7
|
-
url('Inter-Thin.woff2?v=3.19') format('woff2'),
|
|
8
|
-
url('Inter-Thin.woff?v=3.19') format('woff');
|
|
9
|
-
}
|
|
10
|
-
@font-face {
|
|
11
|
-
font-family: 'Inter';
|
|
12
|
-
font-style: italic;
|
|
13
|
-
font-weight: 100;
|
|
14
|
-
font-display: swap;
|
|
15
|
-
src:
|
|
16
|
-
url('Inter-ThinItalic.woff2?v=3.19') format('woff2'),
|
|
17
|
-
url('Inter-ThinItalic.woff?v=3.19') format('woff');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@font-face {
|
|
21
|
-
font-family: 'Inter';
|
|
22
|
-
font-style: normal;
|
|
23
|
-
font-weight: 200;
|
|
24
|
-
font-display: swap;
|
|
25
|
-
src:
|
|
26
|
-
url('Inter-ExtraLight.woff2?v=3.19') format('woff2'),
|
|
27
|
-
url('Inter-ExtraLight.woff?v=3.19') format('woff');
|
|
28
|
-
}
|
|
29
|
-
@font-face {
|
|
30
|
-
font-family: 'Inter';
|
|
31
|
-
font-style: italic;
|
|
32
|
-
font-weight: 200;
|
|
33
|
-
font-display: swap;
|
|
34
|
-
src:
|
|
35
|
-
url('Inter-ExtraLightItalic.woff2?v=3.19') format('woff2'),
|
|
36
|
-
url('Inter-ExtraLightItalic.woff?v=3.19') format('woff');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@font-face {
|
|
40
|
-
font-family: 'Inter';
|
|
41
|
-
font-style: normal;
|
|
42
|
-
font-weight: 300;
|
|
43
|
-
font-display: swap;
|
|
44
|
-
src:
|
|
45
|
-
url('Inter-Light.woff2?v=3.19') format('woff2'),
|
|
46
|
-
url('Inter-Light.woff?v=3.19') format('woff');
|
|
47
|
-
}
|
|
48
|
-
@font-face {
|
|
49
|
-
font-family: 'Inter';
|
|
50
|
-
font-style: italic;
|
|
51
|
-
font-weight: 300;
|
|
52
|
-
font-display: swap;
|
|
53
|
-
src:
|
|
54
|
-
url('Inter-LightItalic.woff2?v=3.19') format('woff2'),
|
|
55
|
-
url('Inter-LightItalic.woff?v=3.19') format('woff');
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@font-face {
|
|
59
|
-
font-family: 'Inter';
|
|
60
|
-
font-style: normal;
|
|
61
|
-
font-weight: 400;
|
|
62
|
-
font-display: swap;
|
|
63
|
-
src:
|
|
64
|
-
url('Inter-Regular.woff2?v=3.19') format('woff2'),
|
|
65
|
-
url('Inter-Regular.woff?v=3.19') format('woff');
|
|
66
|
-
}
|
|
67
|
-
@font-face {
|
|
68
|
-
font-family: 'Inter';
|
|
69
|
-
font-style: italic;
|
|
70
|
-
font-weight: 400;
|
|
71
|
-
font-display: swap;
|
|
72
|
-
src:
|
|
73
|
-
url('Inter-Italic.woff2?v=3.19') format('woff2'),
|
|
74
|
-
url('Inter-Italic.woff?v=3.19') format('woff');
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@font-face {
|
|
78
|
-
font-family: 'Inter';
|
|
79
|
-
font-style: normal;
|
|
80
|
-
font-weight: 500;
|
|
81
|
-
font-display: swap;
|
|
82
|
-
src:
|
|
83
|
-
url('Inter-Medium.woff2?v=3.19') format('woff2'),
|
|
84
|
-
url('Inter-Medium.woff?v=3.19') format('woff');
|
|
85
|
-
}
|
|
86
|
-
@font-face {
|
|
87
|
-
font-family: 'Inter';
|
|
88
|
-
font-style: italic;
|
|
89
|
-
font-weight: 500;
|
|
90
|
-
font-display: swap;
|
|
91
|
-
src:
|
|
92
|
-
url('Inter-MediumItalic.woff2?v=3.19') format('woff2'),
|
|
93
|
-
url('Inter-MediumItalic.woff?v=3.19') format('woff');
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@font-face {
|
|
97
|
-
font-family: 'Inter';
|
|
98
|
-
font-style: normal;
|
|
99
|
-
font-weight: 600;
|
|
100
|
-
font-display: swap;
|
|
101
|
-
src:
|
|
102
|
-
url('Inter-SemiBold.woff2?v=3.19') format('woff2'),
|
|
103
|
-
url('Inter-SemiBold.woff?v=3.19') format('woff');
|
|
104
|
-
}
|
|
105
|
-
@font-face {
|
|
106
|
-
font-family: 'Inter';
|
|
107
|
-
font-style: italic;
|
|
108
|
-
font-weight: 600;
|
|
109
|
-
font-display: swap;
|
|
110
|
-
src:
|
|
111
|
-
url('Inter-SemiBoldItalic.woff2?v=3.19') format('woff2'),
|
|
112
|
-
url('Inter-SemiBoldItalic.woff?v=3.19') format('woff');
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@font-face {
|
|
116
|
-
font-family: 'Inter';
|
|
117
|
-
font-style: normal;
|
|
118
|
-
font-weight: 700;
|
|
119
|
-
font-display: swap;
|
|
120
|
-
src:
|
|
121
|
-
url('Inter-Bold.woff2?v=3.19') format('woff2'),
|
|
122
|
-
url('Inter-Bold.woff?v=3.19') format('woff');
|
|
123
|
-
}
|
|
124
|
-
@font-face {
|
|
125
|
-
font-family: 'Inter';
|
|
126
|
-
font-style: italic;
|
|
127
|
-
font-weight: 700;
|
|
128
|
-
font-display: swap;
|
|
129
|
-
src:
|
|
130
|
-
url('Inter-BoldItalic.woff2?v=3.19') format('woff2'),
|
|
131
|
-
url('Inter-BoldItalic.woff?v=3.19') format('woff');
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
@font-face {
|
|
135
|
-
font-family: 'Inter';
|
|
136
|
-
font-style: normal;
|
|
137
|
-
font-weight: 800;
|
|
138
|
-
font-display: swap;
|
|
139
|
-
src:
|
|
140
|
-
url('Inter-ExtraBold.woff2?v=3.19') format('woff2'),
|
|
141
|
-
url('Inter-ExtraBold.woff?v=3.19') format('woff');
|
|
142
|
-
}
|
|
143
|
-
@font-face {
|
|
144
|
-
font-family: 'Inter';
|
|
145
|
-
font-style: italic;
|
|
146
|
-
font-weight: 800;
|
|
147
|
-
font-display: swap;
|
|
148
|
-
src:
|
|
149
|
-
url('Inter-ExtraBoldItalic.woff2?v=3.19') format('woff2'),
|
|
150
|
-
url('Inter-ExtraBoldItalic.woff?v=3.19') format('woff');
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@font-face {
|
|
154
|
-
font-family: 'Inter';
|
|
155
|
-
font-style: normal;
|
|
156
|
-
font-weight: 900;
|
|
157
|
-
font-display: swap;
|
|
158
|
-
src:
|
|
159
|
-
url('Inter-Black.woff2?v=3.19') format('woff2'),
|
|
160
|
-
url('Inter-Black.woff?v=3.19') format('woff');
|
|
161
|
-
}
|
|
162
|
-
@font-face {
|
|
163
|
-
font-family: 'Inter';
|
|
164
|
-
font-style: italic;
|
|
165
|
-
font-weight: 900;
|
|
166
|
-
font-display: swap;
|
|
167
|
-
src:
|
|
168
|
-
url('Inter-BlackItalic.woff2?v=3.19') format('woff2'),
|
|
169
|
-
url('Inter-BlackItalic.woff?v=3.19') format('woff');
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/* -------------------------------------------------------
|
|
173
|
-
Variable font.
|
|
174
|
-
Usage:
|
|
175
|
-
|
|
176
|
-
html { font-family: 'Inter', sans-serif; }
|
|
177
|
-
@supports (font-variation-settings: normal) {
|
|
178
|
-
html { font-family: 'Inter var', sans-serif; }
|
|
179
|
-
}
|
|
180
|
-
*/
|
|
181
|
-
@font-face {
|
|
182
|
-
font-family: 'Inter var';
|
|
183
|
-
font-weight: 100 900;
|
|
184
|
-
font-display: swap;
|
|
185
|
-
font-style: normal;
|
|
186
|
-
font-named-instance: 'Regular';
|
|
187
|
-
src: url('Inter-roman.var.woff2?v=3.19') format('woff2');
|
|
188
|
-
}
|
|
189
|
-
@font-face {
|
|
190
|
-
font-family: 'Inter var';
|
|
191
|
-
font-weight: 100 900;
|
|
192
|
-
font-display: swap;
|
|
193
|
-
font-style: italic;
|
|
194
|
-
font-named-instance: 'Italic';
|
|
195
|
-
src: url('Inter-italic.var.woff2?v=3.19') format('woff2');
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* --------------------------------------------------------------------------
|
|
199
|
-
[EXPERIMENTAL] Multi-axis, single variable font.
|
|
200
|
-
|
|
201
|
-
Slant axis is not yet widely supported (as of February 2019) and thus this
|
|
202
|
-
multi-axis single variable font is opt-in rather than the default.
|
|
203
|
-
|
|
204
|
-
When using this, you will probably need to set font-variation-settings
|
|
205
|
-
explicitly, e.g.
|
|
206
|
-
|
|
207
|
-
* { font-variation-settings: "slnt" 0deg }
|
|
208
|
-
.italic { font-variation-settings: "slnt" 10deg }
|
|
209
|
-
|
|
210
|
-
*/
|
|
211
|
-
@font-face {
|
|
212
|
-
font-family: 'Inter var experimental';
|
|
213
|
-
font-weight: 100 900;
|
|
214
|
-
font-display: swap;
|
|
215
|
-
font-style: oblique 0deg 10deg;
|
|
216
|
-
src: url('Inter.var.woff2?v=3.19') format('woff2');
|
|
217
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Provider } from '@ethersproject/providers';
|
|
2
|
-
import type { Token, TokenAmount } from '@lifi/sdk';
|
|
3
|
-
export declare const useGetTokenBalancesWithRetry: (provider?: Provider) => (accountAddress: string, tokens: Token[], depth?: number) => Promise<TokenAmount[] | undefined>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useGetTokenBalancesWithRetry = void 0;
|
|
4
|
-
const address_1 = require("@ethersproject/address");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const providers_1 = require("../providers");
|
|
7
|
-
const useGetTokenBalancesWithRetry = (provider) => {
|
|
8
|
-
const lifi = (0, providers_1.useLiFi)();
|
|
9
|
-
const getTokenBalancesWithRetry = (0, react_1.useCallback)(async (accountAddress, tokens, depth = 0) => {
|
|
10
|
-
try {
|
|
11
|
-
const walletAddress = (0, address_1.isAddress)(accountAddress)
|
|
12
|
-
? accountAddress
|
|
13
|
-
: await provider?.resolveName(accountAddress);
|
|
14
|
-
const tokenBalances = await lifi.getTokenBalances(walletAddress, tokens);
|
|
15
|
-
if (!tokenBalances.every((token) => token.blockNumber)) {
|
|
16
|
-
if (depth > 10) {
|
|
17
|
-
console.warn('Token balance backoff depth exceeded.');
|
|
18
|
-
return undefined;
|
|
19
|
-
}
|
|
20
|
-
await new Promise((resolve) => {
|
|
21
|
-
setTimeout(resolve, 1.5 ** depth * 100);
|
|
22
|
-
});
|
|
23
|
-
return getTokenBalancesWithRetry(accountAddress, tokens, depth + 1);
|
|
24
|
-
}
|
|
25
|
-
return tokenBalances;
|
|
26
|
-
}
|
|
27
|
-
catch (error) {
|
|
28
|
-
//
|
|
29
|
-
}
|
|
30
|
-
}, [lifi, provider]);
|
|
31
|
-
return getTokenBalancesWithRetry;
|
|
32
|
-
};
|
|
33
|
-
exports.useGetTokenBalancesWithRetry = useGetTokenBalancesWithRetry;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LiFiFullLogo = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const LiFiFullLogo = (props) => ((0, jsx_runtime_1.jsxs)("svg", { width: "84", height: "32", viewBox: "0 0 84 32", fill: "inherit", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("path", { d: "M50.6689 20.5714H42.6849V8H39V24H50.6689V20.5714Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M53.0717 24H56.7566V8H53.0717V24Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M59.5088 24H63.0117V20.48H59.5088V24Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M69.4396 17.76H77.1506V14.6057H69.4396V11.2457H77.8103V8H65.7547V24H69.4396V17.76Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M80.3151 24H84V8H80.3151V24Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M14.6163 21.6947L5.1336 23.89C4.78772 23.9766 4.52832 24.3232 4.52832 24.6698V31.1978C4.52832 31.7467 4.96066 32.0933 5.50829 31.9777L18.7379 28.9159C19.2856 28.8004 19.5162 28.2805 19.2856 27.7894L16.8933 22.8501C16.5186 22.0702 16.8933 21.2614 17.7291 21.0881L26.376 19.0084C26.9813 18.864 27.5001 18.2285 27.5001 17.593V11.5561C27.5001 11.0073 27.0677 10.6318 26.5201 10.7762L14.0398 13.7514C13.2616 13.9247 12.9157 14.6757 13.2616 15.3978L15.4521 19.9327C15.8268 20.7126 15.4521 21.4925 14.6163 21.6947Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M8.36225 5.3748L10.841 10.4585C11.1581 11.1229 10.841 11.8161 10.1204 11.9606L5.53762 13.0293C4.96116 13.1737 4.5 13.7514 4.5 14.3291V19.7884C4.5 20.7127 5.24939 21.2904 6.1429 21.0882L10.4087 20.1061C10.9851 19.9906 11.4463 19.384 11.4463 18.8063L11.4751 13.2026C11.4751 12.4227 12.1092 11.6428 12.8586 11.4695L26.8376 8.11886C27.1835 8.03221 27.4429 7.68559 27.4429 7.33897V0.810981C27.4429 0.262168 27.0106 -0.113336 26.4629 0.0310883L8.90988 4.24829C8.36225 4.36383 8.13167 4.88375 8.36225 5.3748Z" })] }));
|
|
6
|
-
exports.LiFiFullLogo = LiFiFullLogo;
|
package/cjs/icons/LiFiLogo.d.ts
DELETED
package/cjs/icons/LiFiLogo.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LiFiLogo = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const LiFiLogo = (props) => ((0, jsx_runtime_1.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "inherit", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("path", { d: "M14.6163 21.6947L5.1336 23.89C4.78772 23.9766 4.52832 24.3232 4.52832 24.6698V31.1978C4.52832 31.7467 4.96066 32.0933 5.50829 31.9777L18.7379 28.9159C19.2856 28.8004 19.5162 28.2805 19.2856 27.7894L16.8933 22.8501C16.5186 22.0702 16.8933 21.2614 17.7291 21.0881L26.376 19.0084C26.9813 18.864 27.5001 18.2285 27.5001 17.593V11.5561C27.5001 11.0073 27.0677 10.6318 26.5201 10.7762L14.0398 13.7514C13.2616 13.9247 12.9157 14.6757 13.2616 15.3978L15.4521 19.9327C15.8268 20.7126 15.4521 21.4925 14.6163 21.6947Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M8.36225 5.3748L10.841 10.4585C11.1581 11.1229 10.841 11.8161 10.1204 11.9606L5.53762 13.0293C4.96116 13.1737 4.5 13.7514 4.5 14.3291V19.7884C4.5 20.7127 5.24939 21.2904 6.1429 21.0882L10.4087 20.1061C10.9851 19.9906 11.4463 19.384 11.4463 18.8063L11.4751 13.2026C11.4751 12.4227 12.1092 11.6428 12.8586 11.4695L26.8376 8.11886C27.1835 8.03221 27.4429 7.68559 27.4429 7.33897V0.810981C27.4429 0.262168 27.0106 -0.113336 26.4629 0.0310883L8.90988 4.24829C8.36225 4.36383 8.13167 4.88375 8.36225 5.3748Z" })] }));
|
|
6
|
-
exports.LiFiLogo = LiFiLogo;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LiFiToolLogo = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const LiFiToolLogo = (props) => ((0, jsx_runtime_1.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("circle", { cx: "16", cy: "16", r: "16", fill: "#F5B5FF" }), (0, jsx_runtime_1.jsx)("path", { d: "M15.5031 19.2031L10.1691 20.4379C9.97453 20.4867 9.82861 20.6816 9.82861 20.8766V24.5486C9.82861 24.8573 10.0718 25.0523 10.3798 24.9873L17.8215 23.265C18.1296 23.2 18.2593 22.9076 18.1296 22.6314L16.7839 19.853C16.5731 19.4143 16.7839 18.9594 17.2541 18.8619L22.1179 17.692C22.4584 17.6108 22.7502 17.2534 22.7502 16.8959V13.5001C22.7502 13.1914 22.507 12.9802 22.199 13.0614L15.1788 14.735C14.7411 14.8324 14.5465 15.2549 14.7411 15.6611L15.9733 18.212C16.184 18.6507 15.9733 19.0893 15.5031 19.2031Z", fill: "black" }), (0, jsx_runtime_1.jsx)("path", { d: "M11.985 10.0233L13.3793 12.8829C13.5577 13.2566 13.3793 13.6466 12.974 13.7278L10.3962 14.329C10.0719 14.4102 9.8125 14.7352 9.8125 15.0601V18.1309C9.8125 18.6509 10.234 18.9758 10.7366 18.8621L13.1361 18.3097C13.4604 18.2447 13.7198 17.9035 13.7198 17.5785L13.736 14.4265C13.736 13.9878 14.0927 13.5491 14.5142 13.4516L22.3774 11.5669C22.572 11.5181 22.7179 11.3231 22.7179 11.1282V7.45618C22.7179 7.14747 22.4747 6.93625 22.1666 7.01749L12.2931 9.38966C11.985 9.45465 11.8553 9.74711 11.985 10.0233Z", fill: "black" })] }));
|
|
6
|
-
exports.LiFiToolLogo = LiFiToolLogo;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListItemButton = void 0;
|
|
4
|
-
const styles_1 = require("@mui/material/styles");
|
|
5
|
-
const ListItemButton_1 = require("../../components/ListItemButton");
|
|
6
|
-
exports.ListItemButton = (0, styles_1.styled)(ListItemButton_1.ListItemButton)(({ theme }) => ({
|
|
7
|
-
paddingRight: theme.spacing(1),
|
|
8
|
-
}));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ColorSchemeButtonGroup = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const Brightness4_1 = require("@mui/icons-material/Brightness4");
|
|
6
|
-
const DarkMode_1 = require("@mui/icons-material/DarkMode");
|
|
7
|
-
const LightMode_1 = require("@mui/icons-material/LightMode");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
|
-
const react_i18next_1 = require("react-i18next");
|
|
10
|
-
const providers_1 = require("../../providers");
|
|
11
|
-
const stores_1 = require("../../stores");
|
|
12
|
-
const types_1 = require("../../types");
|
|
13
|
-
const ColorSchemeButtonGroup_style_1 = require("./ColorSchemeButtonGroup.style");
|
|
14
|
-
const ColorSchemeButtonGroup = () => {
|
|
15
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
16
|
-
const { hiddenUI } = (0, providers_1.useWidgetConfig)();
|
|
17
|
-
const [appearance, setAppearance] = (0, stores_1.useAppearance)();
|
|
18
|
-
if (hiddenUI?.includes(types_1.HiddenUI.Appearance)) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { pb: 2, children: (0, jsx_runtime_1.jsxs)(material_1.ToggleButtonGroup, { color: "primary", value: appearance, onChange: (_, value) => {
|
|
22
|
-
if (value) {
|
|
23
|
-
setAppearance(value);
|
|
24
|
-
}
|
|
25
|
-
}, exclusive: true, fullWidth: true, children: [(0, jsx_runtime_1.jsxs)(ColorSchemeButtonGroup_style_1.ToggleButton, { value: "light", children: [(0, jsx_runtime_1.jsx)(LightMode_1.default, { sx: { marginRight: 1 } }), t('button.light')] }), (0, jsx_runtime_1.jsxs)(ColorSchemeButtonGroup_style_1.ToggleButton, { value: "dark", children: [(0, jsx_runtime_1.jsx)(DarkMode_1.default, { sx: { marginRight: 1 } }), t('button.dark')] }), (0, jsx_runtime_1.jsxs)(ColorSchemeButtonGroup_style_1.ToggleButton, { value: "auto", children: [(0, jsx_runtime_1.jsx)(Brightness4_1.default, { sx: { marginRight: 1 } }), t('button.auto')] })] }) }));
|
|
26
|
-
};
|
|
27
|
-
exports.ColorSchemeButtonGroup = ColorSchemeButtonGroup;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material").ToggleButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "onChange" | "onClick" | "disableFocusRipple" | "fullWidth" | "size" | "value" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToggleButton = void 0;
|
|
4
|
-
const material_1 = require("@mui/material");
|
|
5
|
-
const styles_1 = require("@mui/material/styles");
|
|
6
|
-
const ToggleButton_1 = require("@mui/material/ToggleButton");
|
|
7
|
-
exports.ToggleButton = (0, styles_1.styled)(material_1.ToggleButton)(({ theme }) => ({
|
|
8
|
-
textTransform: 'none',
|
|
9
|
-
borderRadius: theme.shape.borderRadius,
|
|
10
|
-
borderColor: theme.palette.mode === 'light'
|
|
11
|
-
? theme.palette.grey[300]
|
|
12
|
-
: theme.palette.grey[800],
|
|
13
|
-
[`&.${ToggleButton_1.toggleButtonClasses.selected}`]: {
|
|
14
|
-
color: theme.palette.mode === 'light'
|
|
15
|
-
? theme.palette.primary.main
|
|
16
|
-
: theme.palette.primary.light,
|
|
17
|
-
borderColor: 'currentColor !important',
|
|
18
|
-
},
|
|
19
|
-
}));
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnabledToolsButton = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const ChevronRight_1 = require("@mui/icons-material/ChevronRight");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const react_i18next_1 = require("react-i18next");
|
|
8
|
-
const react_router_dom_1 = require("react-router-dom");
|
|
9
|
-
const shallow_1 = require("zustand/shallow");
|
|
10
|
-
const stores_1 = require("../../stores");
|
|
11
|
-
const utils_1 = require("../../utils");
|
|
12
|
-
const EnabledToolsButton_style_1 = require("./EnabledToolsButton.style");
|
|
13
|
-
const EnabledToolsButton = ({ type }) => {
|
|
14
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
15
|
-
const navigate = (0, react_router_dom_1.useNavigate)();
|
|
16
|
-
const [enabledTools, tools] = (0, stores_1.useSettingsStore)((state) => {
|
|
17
|
-
const enabledTools = Object.values(state[`_enabled${type}`] ?? {});
|
|
18
|
-
return [enabledTools.filter(Boolean).length, enabledTools.length];
|
|
19
|
-
}, shallow_1.shallow);
|
|
20
|
-
const handleClick = () => {
|
|
21
|
-
navigate(utils_1.navigationRoutes[type.toLowerCase()]);
|
|
22
|
-
};
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)(EnabledToolsButton_style_1.ListItemButton, { onClick: handleClick, children: [(0, jsx_runtime_1.jsx)(EnabledToolsButton_style_1.ListItemText, { primary: t(`settings.enabled${type}`) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(EnabledToolsButton_style_1.ListItemText, { primary: `${enabledTools}/${tools}` }), (0, jsx_runtime_1.jsx)(ChevronRight_1.default, {})] })] }));
|
|
24
|
-
};
|
|
25
|
-
exports.EnabledToolsButton = EnabledToolsButton;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
4
|
-
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
-
export declare const ListItemText: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListItemText = exports.ListItemButton = void 0;
|
|
4
|
-
const material_1 = require("@mui/material");
|
|
5
|
-
const ListItemText_1 = require("@mui/material/ListItemText");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const ListItemButton_1 = require("../../components/ListItemButton");
|
|
8
|
-
exports.ListItemButton = (0, styles_1.styled)(ListItemButton_1.ListItemButton)(({ theme }) => ({
|
|
9
|
-
height: 48,
|
|
10
|
-
paddingRight: theme.spacing(0.5),
|
|
11
|
-
}));
|
|
12
|
-
exports.ListItemText = (0, styles_1.styled)(material_1.ListItemText)({
|
|
13
|
-
[`.${ListItemText_1.listItemTextClasses.primary}`]: {
|
|
14
|
-
fontWeight: 400,
|
|
15
|
-
fontSize: '1rem',
|
|
16
|
-
},
|
|
17
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GasPriceSelect: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GasPriceSelect = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const KeyboardArrowDown_1 = require("@mui/icons-material/KeyboardArrowDown");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const react_i18next_1 = require("react-i18next");
|
|
8
|
-
const Card_1 = require("../../components/Card");
|
|
9
|
-
const Select_1 = require("../../components/Select");
|
|
10
|
-
const stores_1 = require("../../stores");
|
|
11
|
-
const GasPriceSelect = () => {
|
|
12
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
13
|
-
const setValue = (0, stores_1.useSettingsStore)((state) => state.setValue);
|
|
14
|
-
const { gasPrice } = (0, stores_1.useSettings)(['gasPrice']);
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(Card_1.Card, { flex: 1, children: [(0, jsx_runtime_1.jsx)(Card_1.CardTitle, { children: t(`settings.gasPrice.title`) }), (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsxs)(Select_1.Select, { MenuProps: { elevation: 2 }, value: gasPrice, onChange: (event) => setValue('gasPrice', event.target.value), IconComponent: KeyboardArrowDown_1.default, dense: true, children: [(0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: "slow", children: t(`settings.gasPrice.slow`) }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: "normal", children: t(`settings.gasPrice.normal`) }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: "fast", children: t(`settings.gasPrice.fast`) })] }) })] }));
|
|
16
|
-
};
|
|
17
|
-
exports.GasPriceSelect = GasPriceSelect;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LanguageSelect = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const KeyboardArrowDown_1 = require("@mui/icons-material/KeyboardArrowDown");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const react_i18next_1 = require("react-i18next");
|
|
8
|
-
const Card_1 = require("../../components/Card");
|
|
9
|
-
const Select_1 = require("../../components/Select");
|
|
10
|
-
const providers_1 = require("../../providers");
|
|
11
|
-
const stores_1 = require("../../stores");
|
|
12
|
-
const types_1 = require("../../types");
|
|
13
|
-
const LanguageSelect = () => {
|
|
14
|
-
const { t, i18n } = (0, react_i18next_1.useTranslation)();
|
|
15
|
-
const { languages, hiddenUI } = (0, providers_1.useWidgetConfig)();
|
|
16
|
-
const setValue = (0, stores_1.useSettingsStore)((state) => state.setValue);
|
|
17
|
-
const { language } = (0, stores_1.useSettings)(['language']);
|
|
18
|
-
if (hiddenUI?.includes(types_1.HiddenUI.Language)) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
const handleChangeLanguage = (event) => {
|
|
22
|
-
const language = event.target.value;
|
|
23
|
-
setValue('language', language);
|
|
24
|
-
i18n.changeLanguage(language);
|
|
25
|
-
};
|
|
26
|
-
const filteredLanguages = Object.keys(i18n.store.data).sort();
|
|
27
|
-
if (filteredLanguages.length <= 1) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
const value = filteredLanguages.includes(language || i18n.resolvedLanguage || '')
|
|
31
|
-
? language || i18n.resolvedLanguage
|
|
32
|
-
: languages?.default || languages?.allow?.[0];
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)(Card_1.Card, { mb: 2, children: [(0, jsx_runtime_1.jsx)(Card_1.CardTitle, { children: t(`language.title`) }), (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(Select_1.Select, { MenuProps: { elevation: 2 }, value: value, onChange: handleChangeLanguage, IconComponent: KeyboardArrowDown_1.default, dense: true, children: filteredLanguages.map((lng) => {
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: lng, children: t('language.name', { lng }) }, lng));
|
|
35
|
-
}) }) })] }));
|
|
36
|
-
};
|
|
37
|
-
exports.LanguageSelect = LanguageSelect;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RoutePrioritySelect = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const sdk_1 = require("@lifi/sdk");
|
|
6
|
-
const KeyboardArrowDown_1 = require("@mui/icons-material/KeyboardArrowDown");
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
8
|
-
const react_i18next_1 = require("react-i18next");
|
|
9
|
-
const Card_1 = require("../../components/Card");
|
|
10
|
-
const Select_1 = require("../../components/Select");
|
|
11
|
-
const stores_1 = require("../../stores");
|
|
12
|
-
const RoutePrioritySelect = () => {
|
|
13
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
14
|
-
const setValue = (0, stores_1.useSettingsStore)((state) => state.setValue);
|
|
15
|
-
const { routePriority } = (0, stores_1.useSettings)(['routePriority']);
|
|
16
|
-
const value = routePriority ?? '';
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(Card_1.Card, { children: [(0, jsx_runtime_1.jsx)(Card_1.CardTitle, { children: t(`settings.routePriority`) }), (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(Select_1.Select, { MenuProps: { elevation: 2 }, value: value, onChange: (event) => setValue('routePriority', event.target.value), IconComponent: KeyboardArrowDown_1.default, dense: true, children: sdk_1.Orders.map((order) => {
|
|
18
|
-
const tag = t(`main.tags.${order.toLowerCase()}`);
|
|
19
|
-
const tagName = `${tag[0]}${tag.slice(1).toLowerCase()}`;
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: order, children: tagName }, order));
|
|
21
|
-
}) }) })] }));
|
|
22
|
-
};
|
|
23
|
-
exports.RoutePrioritySelect = RoutePrioritySelect;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ShowDestinationWallet: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SlippageInput: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SlippageInput = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const react_i18next_1 = require("react-i18next");
|
|
8
|
-
const Card_1 = require("../../components/Card");
|
|
9
|
-
const Input_1 = require("../../components/Input");
|
|
10
|
-
const stores_1 = require("../../stores");
|
|
11
|
-
const utils_1 = require("../../utils");
|
|
12
|
-
const SlippageInput = () => {
|
|
13
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
14
|
-
const { slippage } = (0, stores_1.useSettings)(['slippage']);
|
|
15
|
-
const setValue = (0, stores_1.useSettingsStore)((state) => state.setValue);
|
|
16
|
-
const defaultValue = (0, react_1.useRef)(slippage);
|
|
17
|
-
const handleChange = (event) => {
|
|
18
|
-
const { value } = event.target;
|
|
19
|
-
setValue('slippage', (0, utils_1.formatSlippage)(value, defaultValue.current, true));
|
|
20
|
-
};
|
|
21
|
-
const handleBlur = (event) => {
|
|
22
|
-
const { value } = event.target;
|
|
23
|
-
setValue('slippage', (0, utils_1.formatSlippage)(value, defaultValue.current));
|
|
24
|
-
};
|
|
25
|
-
const value = slippage ?? '';
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)(Card_1.Card, { children: [(0, jsx_runtime_1.jsx)(Card_1.CardTitle, { children: t(`settings.slippage`) }), (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(Input_1.Input, { size: "small", placeholder: t(`settings.slippage`), endAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment, { position: "end", children: "%" }), autoComplete: "off", inputProps: {
|
|
27
|
-
inputMode: 'decimal',
|
|
28
|
-
}, onChange: handleChange, onBlur: handleBlur, value: value }) })] }));
|
|
29
|
-
};
|
|
30
|
-
exports.SlippageInput = SlippageInput;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SDKProvider = exports.useLiFi = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const sdk_1 = require("@lifi/sdk");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const version_1 = require("../../config/version");
|
|
8
|
-
const WidgetProvider_1 = require("../WidgetProvider");
|
|
9
|
-
let lifi;
|
|
10
|
-
const SDKContext = (0, react_1.createContext)(null);
|
|
11
|
-
const useLiFi = () => (0, react_1.useContext)(SDKContext);
|
|
12
|
-
exports.useLiFi = useLiFi;
|
|
13
|
-
const SDKProvider = ({ children, }) => {
|
|
14
|
-
const { sdkConfig, integrator, apiKey, fee, referrer, routePriority, slippage, } = (0, WidgetProvider_1.useWidgetConfig)();
|
|
15
|
-
const value = (0, react_1.useMemo)(() => {
|
|
16
|
-
const config = {
|
|
17
|
-
...sdkConfig,
|
|
18
|
-
apiKey,
|
|
19
|
-
integrator: integrator ?? window.location.hostname,
|
|
20
|
-
defaultRouteOptions: {
|
|
21
|
-
integrator: integrator ?? window.location.hostname,
|
|
22
|
-
fee,
|
|
23
|
-
referrer,
|
|
24
|
-
order: routePriority,
|
|
25
|
-
slippage,
|
|
26
|
-
...sdkConfig?.defaultRouteOptions,
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
if (!lifi) {
|
|
30
|
-
lifi = new sdk_1.LiFi({
|
|
31
|
-
disableVersionCheck: true,
|
|
32
|
-
widgetVersion: version_1.version,
|
|
33
|
-
...config,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
lifi.setConfig(config);
|
|
37
|
-
return lifi;
|
|
38
|
-
}, [apiKey, fee, integrator, referrer, routePriority, sdkConfig, slippage]);
|
|
39
|
-
return (0, jsx_runtime_1.jsx)(SDKContext.Provider, { value: value, children: children });
|
|
40
|
-
};
|
|
41
|
-
exports.SDKProvider = SDKProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SDKProvider';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Signer } from '@ethersproject/abstract-signer';
|
|
2
|
-
import type { StaticToken } from '@lifi/sdk';
|
|
3
|
-
import type { Wallet } from '@lifi/wallet-management';
|
|
4
|
-
export interface WalletContextProps {
|
|
5
|
-
account: WalletAccount;
|
|
6
|
-
addChain(chainId: number): Promise<boolean>;
|
|
7
|
-
addToken(chainId: number, token: StaticToken): Promise<void>;
|
|
8
|
-
disconnect(wallet?: Wallet): void;
|
|
9
|
-
switchChain(chainId: number): Promise<Signer | undefined>;
|
|
10
|
-
connect(wallet?: Wallet | undefined): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
export interface WalletAccount {
|
|
13
|
-
isActive?: boolean;
|
|
14
|
-
chainId?: number;
|
|
15
|
-
address?: string;
|
|
16
|
-
signer?: Signer;
|
|
17
|
-
}
|