@rango-dev/widget-embedded 0.19.0 → 0.19.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -4
- package/dist/QueueManager.d.ts +5 -2
- package/dist/QueueManager.d.ts.map +1 -1
- package/dist/components/AppRouter.d.ts +0 -2
- package/dist/components/AppRouter.d.ts.map +1 -1
- package/dist/components/AppRoutes.d.ts +1 -6
- package/dist/components/AppRoutes.d.ts.map +1 -1
- package/dist/components/BlockchainsSection/BlockchainsSection.d.ts.map +1 -1
- package/dist/components/BlockchainsSection/BlockchainsSection.styles.d.ts +1 -1
- package/dist/components/BlockchainsSection/BlockchainsSection.styles.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.helpers.d.ts +1 -3
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.helpers.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +690 -61
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.types.d.ts +1 -3
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.types.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/WalletList.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/WalletList.type.d.ts +1 -4
- package/dist/components/ConfirmWalletsModal/WalletList.type.d.ts.map +1 -1
- package/dist/components/HeaderButtons/HomeButtons.d.ts.map +1 -1
- package/dist/components/Layout/Layout.d.ts.map +1 -1
- package/dist/components/Layout/Layout.styles.d.ts.map +1 -1
- package/dist/components/Layout/Layout.types.d.ts +2 -2
- package/dist/components/Layout/Layout.types.d.ts.map +1 -1
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.d.ts.map +1 -1
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts +1727 -0
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts.map +1 -1
- package/dist/components/NoResult/NoResult.d.ts +4 -0
- package/dist/components/NoResult/NoResult.d.ts.map +1 -0
- package/dist/components/NoResult/NoResult.helpers.d.ts +4 -0
- package/dist/components/NoResult/NoResult.helpers.d.ts.map +1 -0
- package/dist/components/{NoRoutes/NoRoutes.styles.d.ts → NoResult/NoResult.styles.d.ts} +1 -1
- package/dist/components/{NoRoutes/NoRoutes.styles.d.ts.map → NoResult/NoResult.styles.d.ts.map} +1 -1
- package/dist/components/{NoRoutes/NoRoutes.types.d.ts → NoResult/NoResult.types.d.ts} +3 -3
- package/dist/components/NoResult/NoResult.types.d.ts.map +1 -0
- package/dist/components/NoResult/index.d.ts +2 -0
- package/dist/components/NoResult/index.d.ts.map +1 -0
- package/dist/components/NotificationContent/NotificationContent.d.ts.map +1 -1
- package/dist/components/Quote/Quote.d.ts +4 -0
- package/dist/components/Quote/Quote.d.ts.map +1 -0
- package/dist/components/Quote/Quote.styles.d.ts +2217 -0
- package/dist/components/Quote/Quote.styles.d.ts.map +1 -0
- package/dist/components/Quote/Quote.types.d.ts +21 -0
- package/dist/components/Quote/Quote.types.d.ts.map +1 -0
- package/dist/components/Quote/QuoteSummary.d.ts +11 -0
- package/dist/components/Quote/QuoteSummary.d.ts.map +1 -0
- package/dist/components/Quote/QuoteSummary.styles.d.ts +315 -0
- package/dist/components/Quote/QuoteSummary.styles.d.ts.map +1 -0
- package/dist/components/Quote/index.d.ts +3 -0
- package/dist/components/Quote/index.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/QuoteSkeleton.d.ts +4 -0
- package/dist/components/QuoteSkeleton/QuoteSkeleton.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts +633 -0
- package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/QuoteSkeleton.types.d.ts +6 -0
- package/dist/components/QuoteSkeleton/QuoteSkeleton.types.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.d.ts +4 -0
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.styles.d.ts +1571 -0
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.styles.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.types.d.ts +6 -0
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.types.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/StepSkeleton.d.ts +4 -0
- package/dist/components/QuoteSkeleton/StepSkeleton.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts +786 -0
- package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/StepSkeleton.types.d.ts +4 -0
- package/dist/components/QuoteSkeleton/StepSkeleton.types.d.ts.map +1 -0
- package/dist/components/QuoteSkeleton/index.d.ts +4 -0
- package/dist/components/QuoteSkeleton/index.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/HighValueLossWarningModal.d.ts +11 -0
- package/dist/components/QuoteWarningsAndErrors/HighValueLossWarningModal.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteErrorsModalItem.d.ts +4 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteErrorsModalItem.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts +4 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts +9 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts.map +1 -0
- package/dist/components/{RouteErrors/RouteErrors.styles.d.ts → QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts} +1 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts +23 -0
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/SlippageWariningModal.d.ts +11 -0
- package/dist/components/QuoteWarningsAndErrors/SlippageWariningModal.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.d.ts +11 -0
- package/dist/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.d.ts.map +1 -0
- package/dist/components/QuoteWarningsAndErrors/index.d.ts +2 -0
- package/dist/components/QuoteWarningsAndErrors/index.d.ts.map +1 -0
- package/dist/components/Slippage/Slippage.d.ts.map +1 -1
- package/dist/components/Slippage/Slippage.styles.d.ts +158 -0
- package/dist/components/Slippage/Slippage.styles.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.Placeholder.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.helpers.d.ts +1 -1
- package/dist/components/SwapDetails/SwapDetails.helpers.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.styles.d.ts +628 -0
- package/dist/components/SwapDetails/SwapDetails.styles.d.ts.map +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsCompleteModal.d.ts.map +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.WalletState.d.ts.map +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.helpers.d.ts +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.helpers.d.ts.map +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.types.d.ts +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.types.d.ts.map +1 -1
- package/dist/components/SwapsGroup/SwapsGroup.d.ts.map +1 -1
- package/dist/components/SwapsGroup/SwapsGroup.styles.d.ts +157 -0
- package/dist/components/SwapsGroup/SwapsGroup.styles.d.ts.map +1 -1
- package/dist/components/TokenList/TokenList.d.ts.map +1 -1
- package/dist/components/TokenList/TokenList.helpers.d.ts +2 -2
- package/dist/components/TokenList/TokenList.helpers.d.ts.map +1 -1
- package/dist/components/TokenList/TokenList.styles.d.ts +1100 -1
- package/dist/components/TokenList/TokenList.styles.d.ts.map +1 -1
- package/dist/components/TokenList/TokenList.types.d.ts +4 -9
- package/dist/components/TokenList/TokenList.types.d.ts.map +1 -1
- package/dist/components/TokenList/index.d.ts +0 -1
- package/dist/components/TokenList/index.d.ts.map +1 -1
- package/dist/components/UpdateUrl.d.ts +1 -6
- package/dist/components/UpdateUrl.d.ts.map +1 -1
- package/dist/components/WidgetEvents.d.ts.map +1 -1
- package/dist/constants/errors.d.ts +4 -4
- package/dist/constants/errors.d.ts.map +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/messages.d.ts +1 -1
- package/dist/constants/navigationRoutes.d.ts +1 -2
- package/dist/constants/navigationRoutes.d.ts.map +1 -1
- package/dist/constants/searchParams.d.ts +2 -1
- package/dist/constants/searchParams.d.ts.map +1 -1
- package/dist/constants/warnings.d.ts +2 -2
- package/dist/constants/warnings.d.ts.map +1 -1
- package/dist/containers/App/App.d.ts +3 -0
- package/dist/containers/App/App.d.ts.map +1 -0
- package/dist/containers/App/App.styles.d.ts +158 -0
- package/dist/containers/App/App.styles.d.ts.map +1 -0
- package/dist/containers/App/index.d.ts +2 -0
- package/dist/containers/App/index.d.ts.map +1 -0
- package/dist/containers/QuoteInfo/QuoteInfo.d.ts +4 -0
- package/dist/containers/QuoteInfo/QuoteInfo.d.ts.map +1 -0
- package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts +788 -0
- package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts.map +1 -0
- package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts +20 -0
- package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts.map +1 -0
- package/dist/containers/QuoteInfo/index.d.ts +2 -0
- package/dist/containers/QuoteInfo/index.d.ts.map +1 -0
- package/dist/containers/Wallets/Wallets.d.ts +6 -0
- package/dist/containers/Wallets/Wallets.d.ts.map +1 -0
- package/dist/containers/Wallets/Wallets.types.d.ts +11 -0
- package/dist/containers/Wallets/Wallets.types.d.ts.map +1 -0
- package/dist/containers/Wallets/index.d.ts +2 -0
- package/dist/containers/Wallets/index.d.ts.map +1 -0
- package/dist/containers/Widget/Widget.d.ts +5 -0
- package/dist/containers/Widget/Widget.d.ts.map +1 -0
- package/dist/containers/Widget/Widget.types.d.ts +5 -0
- package/dist/containers/Widget/Widget.types.d.ts.map +1 -0
- package/dist/containers/Widget/index.d.ts +3 -0
- package/dist/containers/Widget/index.d.ts.map +1 -0
- package/dist/containers/WidgetInfo/WidgetInfo.d.ts +6 -0
- package/dist/containers/WidgetInfo/WidgetInfo.d.ts.map +1 -0
- package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts +20 -0
- package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts.map +1 -0
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts +21 -0
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts.map +1 -0
- package/dist/containers/WidgetInfo/index.d.ts +2 -0
- package/dist/containers/WidgetInfo/index.d.ts.map +1 -0
- package/dist/containers/WidgetProvider/WidgetProvider.d.ts +5 -0
- package/dist/containers/WidgetProvider/WidgetProvider.d.ts.map +1 -0
- package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts +7 -0
- package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts.map +1 -0
- package/dist/containers/WidgetProvider/index.d.ts +2 -0
- package/dist/containers/WidgetProvider/index.d.ts.map +1 -0
- package/dist/hooks/useConfirmSwap/index.d.ts +2 -0
- package/dist/hooks/useConfirmSwap/index.d.ts.map +1 -0
- package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts +3 -0
- package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts.map +1 -0
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts +19 -0
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts.map +1 -0
- package/dist/hooks/{useConfirmSwap.d.ts → useConfirmSwap/useConfirmSwap.types.d.ts} +5 -7
- package/dist/hooks/useConfirmSwap/useConfirmSwap.types.d.ts.map +1 -0
- package/dist/hooks/{useFetchBestRoute.d.ts → useFetchQuote.d.ts} +3 -3
- package/dist/hooks/useFetchQuote.d.ts.map +1 -0
- package/dist/hooks/useForceAutoConnect.d.ts +2 -0
- package/dist/hooks/useForceAutoConnect.d.ts.map +1 -0
- package/dist/hooks/useLanguage.d.ts +1 -1
- package/dist/hooks/useLanguage.d.ts.map +1 -1
- package/dist/hooks/useNavigateBack.d.ts +1 -3
- package/dist/hooks/useNavigateBack.d.ts.map +1 -1
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.constants.d.ts +1 -1
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.d.ts +2 -2
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.d.ts.map +1 -1
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts +5 -7
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts.map +1 -1
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.d.ts +1 -0
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.d.ts.map +1 -1
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.d.ts +5 -1
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.d.ts.map +1 -1
- package/dist/hooks/useSwapInput.d.ts +4 -2
- package/dist/hooks/useSwapInput.d.ts.map +1 -1
- package/dist/hooks/useSyncStoresWithConfig.d.ts +1 -2
- package/dist/hooks/useSyncStoresWithConfig.d.ts.map +1 -1
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/hooks/useWalletList.d.ts.map +1 -1
- package/dist/index.d.ts +20 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/pages/ConfirmSwapPage.d.ts +1 -6
- package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
- package/dist/pages/HistoryPage.d.ts.map +1 -1
- package/dist/pages/Home.d.ts.map +1 -1
- package/dist/pages/LanguagePage.d.ts.map +1 -1
- package/dist/pages/LiquiditySourcePage.d.ts +1 -2
- package/dist/pages/LiquiditySourcePage.d.ts.map +1 -1
- package/dist/pages/SelectBlockchainPage.d.ts.map +1 -1
- package/dist/pages/SelectSwapItemsPage.d.ts.map +1 -1
- package/dist/pages/SettingsPage.d.ts +1 -6
- package/dist/pages/SettingsPage.d.ts.map +1 -1
- package/dist/pages/SwapDetailsPage.d.ts.map +1 -1
- package/dist/pages/ThemePage.d.ts.map +1 -1
- package/dist/pages/WalletsPage.d.ts +1 -8
- package/dist/pages/WalletsPage.d.ts.map +1 -1
- package/dist/store/AppStore.d.ts +47 -0
- package/dist/store/AppStore.d.ts.map +1 -0
- package/dist/store/app.d.ts +41 -22
- package/dist/store/app.d.ts.map +1 -1
- package/dist/store/notification.d.ts +4 -3
- package/dist/store/notification.d.ts.map +1 -1
- package/dist/store/quote.d.ts +89 -0
- package/dist/store/quote.d.ts.map +1 -0
- package/dist/store/slices/config.d.ts +3 -2
- package/dist/store/slices/config.d.ts.map +1 -1
- package/dist/store/slices/data.d.ts +5 -2
- package/dist/store/slices/data.d.ts.map +1 -1
- package/dist/store/slices/settings.d.ts +39 -0
- package/dist/store/slices/settings.d.ts.map +1 -0
- package/dist/store/ui.d.ts +2 -1
- package/dist/store/ui.d.ts.map +1 -1
- package/dist/store/wallets.d.ts +14 -9
- package/dist/store/wallets.d.ts.map +1 -1
- package/dist/types/config.d.ts +41 -8
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/quote.d.ts +82 -0
- package/dist/types/quote.d.ts.map +1 -0
- package/dist/types/swap.d.ts +4 -14
- package/dist/types/swap.d.ts.map +1 -1
- package/dist/types/wallets.d.ts +15 -1
- package/dist/types/wallets.d.ts.map +1 -1
- package/dist/utils/colors.d.ts.map +1 -1
- package/dist/utils/configs.d.ts +1 -0
- package/dist/utils/configs.d.ts.map +1 -1
- package/dist/utils/meta.d.ts +2 -1
- package/dist/utils/meta.d.ts.map +1 -1
- package/dist/utils/numbers.d.ts +1 -1
- package/dist/utils/numbers.d.ts.map +1 -1
- package/dist/utils/providers.d.ts +2 -2
- package/dist/utils/providers.d.ts.map +1 -1
- package/dist/utils/queue.d.ts +2 -2
- package/dist/utils/queue.d.ts.map +1 -1
- package/dist/utils/quote.d.ts +32 -0
- package/dist/utils/quote.d.ts.map +1 -0
- package/dist/utils/settings.d.ts +6 -2
- package/dist/utils/settings.d.ts.map +1 -1
- package/dist/utils/swap.d.ts +35 -24
- package/dist/utils/swap.d.ts.map +1 -1
- package/dist/utils/time.d.ts +1 -1
- package/dist/utils/time.d.ts.map +1 -1
- package/dist/utils/wallets.d.ts +9 -10
- package/dist/utils/wallets.d.ts.map +1 -1
- package/package.json +13 -11
- package/src/QueueManager.tsx +18 -17
- package/src/components/AppRouter.tsx +8 -32
- package/src/components/AppRoutes.tsx +57 -69
- package/src/components/BlockchainList/BlockchainList.styles.ts +2 -2
- package/src/components/BlockchainList/BlockchainList.tsx +4 -4
- package/src/components/BlockchainsSection/BlockchainsSection.styles.ts +1 -1
- package/src/components/BlockchainsSection/BlockchainsSection.tsx +26 -17
- package/src/components/ConfirmWalletsModal/ConfirmWallets.helpers.ts +2 -64
- package/src/components/ConfirmWalletsModal/ConfirmWallets.styles.ts +29 -10
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +43 -47
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.types.ts +1 -3
- package/src/components/ConfirmWalletsModal/WalletList.tsx +9 -8
- package/src/components/ConfirmWalletsModal/WalletList.type.ts +1 -4
- package/src/components/HeaderButtons/HomeButtons.tsx +28 -18
- package/src/components/Layout/Layout.styles.ts +2 -0
- package/src/components/Layout/Layout.tsx +20 -7
- package/src/components/Layout/Layout.types.ts +2 -2
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.styles.ts +65 -61
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.tsx +28 -34
- package/src/components/{NoRoutes/NoRoutes.helper.ts → NoResult/NoResult.helpers.ts} +23 -16
- package/src/components/{NoRoutes/NoRoutes.styles.ts → NoResult/NoResult.styles.ts} +2 -0
- package/src/components/{NoRoutes/NoRoutes.tsx → NoResult/NoResult.tsx} +12 -17
- package/src/components/{NoRoutes/NoRoutes.types.ts → NoResult/NoResult.types.ts} +3 -2
- package/src/components/NoResult/index.ts +1 -0
- package/src/components/NotificationContent/NotificationContent.tsx +5 -3
- package/src/components/Quote/Quote.styles.ts +249 -0
- package/src/components/Quote/Quote.tsx +414 -0
- package/src/components/Quote/Quote.types.ts +15 -0
- package/src/components/Quote/QuoteSummary.styles.ts +16 -0
- package/src/components/Quote/QuoteSummary.tsx +46 -0
- package/src/components/Quote/index.ts +2 -0
- package/src/components/QuoteSkeleton/QuoteSkeleton.styles.ts +42 -0
- package/src/components/QuoteSkeleton/QuoteSkeleton.tsx +30 -0
- package/src/components/QuoteSkeleton/QuoteSkeleton.types.ts +5 -0
- package/src/components/QuoteSkeleton/QuoteSummarySkeleton.styles.ts +57 -0
- package/src/components/QuoteSkeleton/QuoteSummarySkeleton.tsx +76 -0
- package/src/components/QuoteSkeleton/QuoteSummarySkeleton.types.ts +6 -0
- package/src/components/QuoteSkeleton/StepSkeleton.styles.ts +33 -0
- package/src/components/QuoteSkeleton/StepSkeleton.tsx +44 -0
- package/src/components/QuoteSkeleton/StepSkeleton.types.ts +1 -0
- package/src/components/QuoteSkeleton/index.ts +3 -0
- package/src/components/QuoteWarningsAndErrors/HighValueLossWarningModal.tsx +107 -0
- package/src/components/{RouteErrors/RouteErrorsModalItem.tsx → QuoteWarningsAndErrors/QuoteErrorsModalItem.tsx} +4 -4
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.ts +74 -0
- package/src/components/{RouteErrors/RouteErrors.styles.ts → QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.ts} +8 -1
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.tsx +103 -0
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.ts +25 -0
- package/src/components/QuoteWarningsAndErrors/SlippageWariningModal.tsx +77 -0
- package/src/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.tsx +38 -0
- package/src/components/QuoteWarningsAndErrors/index.ts +1 -0
- package/src/components/Slippage/Slippage.styles.ts +15 -5
- package/src/components/Slippage/Slippage.tsx +11 -10
- package/src/components/SwapDetails/SwapDetails.Placeholder.tsx +5 -8
- package/src/components/SwapDetails/SwapDetails.helpers.tsx +1 -1
- package/src/components/SwapDetails/SwapDetails.styles.ts +36 -33
- package/src/components/SwapDetails/SwapDetails.tsx +41 -56
- package/src/components/SwapDetailsAlerts/SwapDetailsAlerts.Warning.tsx +1 -1
- package/src/components/SwapDetailsModal/SwapDetailsCompleteModal.tsx +4 -3
- package/src/components/SwapDetailsModal/SwapDetailsModal.Cancel.tsx +2 -2
- package/src/components/SwapDetailsModal/SwapDetailsModal.WalletState.tsx +14 -8
- package/src/components/SwapDetailsModal/SwapDetailsModal.helpers.tsx +1 -1
- package/src/components/SwapDetailsModal/SwapDetailsModal.tsx +1 -1
- package/src/components/SwapDetailsModal/SwapDetailsModal.types.ts +1 -1
- package/src/components/SwapsGroup/SwapsGroup.styles.ts +10 -1
- package/src/components/SwapsGroup/SwapsGroup.tsx +3 -5
- package/src/components/SwitchFromAndTo.tsx +2 -2
- package/src/components/TokenList/TokenList.helpers.ts +2 -2
- package/src/components/TokenList/TokenList.styles.ts +74 -38
- package/src/components/TokenList/TokenList.tsx +35 -26
- package/src/components/TokenList/TokenList.types.ts +4 -10
- package/src/components/TokenList/index.ts +0 -1
- package/src/components/UpdateUrl.tsx +35 -30
- package/src/components/WidgetEvents.tsx +4 -2
- package/src/constants/errors.ts +17 -15
- package/src/constants/index.ts +1 -0
- package/src/constants/messages.ts +1 -1
- package/src/constants/navigationRoutes.ts +7 -8
- package/src/constants/searchParams.ts +1 -0
- package/src/constants/warnings.ts +7 -7
- package/src/containers/App/App.styles.ts +18 -0
- package/src/containers/App/App.tsx +52 -0
- package/src/containers/App/index.ts +1 -0
- package/src/containers/QuoteInfo/QuoteInfo.styles.ts +31 -0
- package/src/containers/QuoteInfo/QuoteInfo.tsx +99 -0
- package/src/containers/QuoteInfo/QuoteInfo.types.ts +20 -0
- package/src/containers/QuoteInfo/index.ts +1 -0
- package/src/{Wallets.tsx → containers/Wallets/Wallets.tsx} +48 -34
- package/src/containers/Wallets/Wallets.types.ts +12 -0
- package/src/containers/Wallets/index.ts +1 -0
- package/src/containers/Widget/Widget.tsx +19 -0
- package/src/containers/Widget/Widget.types.ts +5 -0
- package/src/containers/Widget/index.ts +2 -0
- package/src/containers/WidgetInfo/WidgetInfo.helpers.ts +64 -0
- package/src/containers/WidgetInfo/WidgetInfo.tsx +62 -0
- package/src/containers/WidgetInfo/WidgetInfo.types.ts +21 -0
- package/src/containers/WidgetInfo/index.ts +1 -0
- package/src/containers/WidgetProvider/WidgetProvider.tsx +28 -0
- package/src/containers/WidgetProvider/WidgetProvider.types.ts +7 -0
- package/src/containers/WidgetProvider/index.ts +1 -0
- package/src/hooks/useConfirmSwap/index.ts +1 -0
- package/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts +172 -0
- package/src/hooks/useConfirmSwap/useConfirmSwap.ts +137 -0
- package/src/hooks/useConfirmSwap/useConfirmSwap.types.ts +19 -0
- package/src/hooks/{useFetchBestRoute.ts → useFetchQuote.ts} +3 -3
- package/src/hooks/useForceAutoConnect.ts +27 -0
- package/src/hooks/useLanguage.ts +4 -5
- package/src/hooks/useNavigateBack.ts +3 -52
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.constants.ts +1 -1
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.ts +37 -7
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.ts +60 -0
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.test.ts +78 -3
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.ts +15 -6
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.ts +6 -1
- package/src/hooks/useSwapInput.ts +141 -48
- package/src/hooks/useSyncStoresWithConfig.ts +40 -24
- package/src/hooks/useTheme.ts +4 -5
- package/src/hooks/useWalletList.ts +3 -5
- package/src/index.ts +53 -5
- package/src/pages/ConfirmSwapPage.tsx +117 -266
- package/src/pages/HistoryPage.tsx +2 -7
- package/src/pages/Home.tsx +88 -303
- package/src/pages/LanguagePage.tsx +0 -5
- package/src/pages/LiquiditySourcePage.tsx +24 -37
- package/src/pages/SelectBlockchainPage.tsx +31 -24
- package/src/pages/SelectSwapItemsPage.tsx +18 -31
- package/src/pages/SettingsPage.tsx +32 -27
- package/src/pages/SwapDetailsPage.tsx +6 -7
- package/src/pages/ThemePage.tsx +2 -7
- package/src/pages/WalletsPage.tsx +9 -19
- package/src/services/httpService.ts +1 -1
- package/src/store/AppStore.tsx +41 -0
- package/src/store/app.ts +44 -6
- package/src/store/{bestRoute.ts → quote.ts} +71 -64
- package/src/store/slices/config.ts +26 -15
- package/src/store/slices/data.ts +74 -35
- package/src/store/slices/settings.ts +168 -0
- package/src/store/wallets.ts +68 -37
- package/src/types/config.ts +53 -8
- package/src/types/index.ts +1 -1
- package/src/types/quote.ts +107 -0
- package/src/types/swap.ts +4 -13
- package/src/types/wallets.ts +18 -1
- package/src/utils/colors.ts +2 -1
- package/src/utils/configs.ts +2 -1
- package/src/utils/date.ts +1 -1
- package/src/utils/meta.ts +8 -1
- package/src/utils/numbers.ts +1 -1
- package/src/utils/providers.ts +8 -5
- package/src/utils/queue.ts +2 -2
- package/src/utils/quote.ts +338 -0
- package/src/utils/settings.ts +17 -10
- package/src/utils/swap.ts +154 -120
- package/src/utils/time.ts +1 -1
- package/src/utils/wallets.ts +156 -161
- package/dist/Wallets.d.ts +0 -17
- package/dist/Wallets.d.ts.map +0 -1
- package/dist/Widget.d.ts +0 -9
- package/dist/Widget.d.ts.map +0 -1
- package/dist/components/LoadingSwapDetails/LoadingSwapDetailStep.d.ts +0 -4
- package/dist/components/LoadingSwapDetails/LoadingSwapDetailStep.d.ts.map +0 -1
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.types.d.ts +0 -4
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.types.d.ts.map +0 -1
- package/dist/components/NoRoutes/NoRoutes.d.ts +0 -4
- package/dist/components/NoRoutes/NoRoutes.d.ts.map +0 -1
- package/dist/components/NoRoutes/NoRoutes.helper.d.ts +0 -3
- package/dist/components/NoRoutes/NoRoutes.helper.d.ts.map +0 -1
- package/dist/components/NoRoutes/NoRoutes.types.d.ts.map +0 -1
- package/dist/components/NoRoutes/index.d.ts +0 -2
- package/dist/components/NoRoutes/index.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrors.d.ts +0 -4
- package/dist/components/RouteErrors/RouteErrors.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrors.styles.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrors.types.d.ts +0 -24
- package/dist/components/RouteErrors/RouteErrors.types.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrorsModal.d.ts +0 -4
- package/dist/components/RouteErrors/RouteErrorsModal.d.ts.map +0 -1
- package/dist/components/RouteErrors/RouteErrorsModalItem.d.ts +0 -4
- package/dist/components/RouteErrors/RouteErrorsModalItem.d.ts.map +0 -1
- package/dist/components/RouteErrors/index.d.ts +0 -2
- package/dist/components/RouteErrors/index.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap.d.ts.map +0 -1
- package/dist/hooks/useFetchBestRoute.d.ts.map +0 -1
- package/dist/store/bestRoute.d.ts +0 -77
- package/dist/store/bestRoute.d.ts.map +0 -1
- package/dist/store/meta.d.ts +0 -23
- package/dist/store/meta.d.ts.map +0 -1
- package/dist/store/settings.d.ts +0 -81
- package/dist/store/settings.d.ts.map +0 -1
- package/dist/types/routing.d.ts +0 -65
- package/dist/types/routing.d.ts.map +0 -1
- package/dist/utils/routing.d.ts +0 -28
- package/dist/utils/routing.d.ts.map +0 -1
- package/src/Widget.tsx +0 -119
- package/src/components/LoadingSwapDetails/LoadingSwapDetailStep.tsx +0 -41
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.types.ts +0 -3
- package/src/components/NoRoutes/index.ts +0 -1
- package/src/components/RouteErrors/RouteErrors.tsx +0 -79
- package/src/components/RouteErrors/RouteErrors.types.ts +0 -29
- package/src/components/RouteErrors/RouteErrorsModal.tsx +0 -129
- package/src/components/RouteErrors/index.ts +0 -1
- package/src/hooks/useConfirmSwap.ts +0 -303
- package/src/store/meta.ts +0 -39
- package/src/store/settings.ts +0 -158
- package/src/types/routing.ts +0 -77
- package/src/utils/routing.ts +0 -321
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallets.d.ts","sourceRoot":"","sources":["../../src/utils/wallets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"wallets.d.ts","sourceRoot":"","sources":["../../src/utils/wallets.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.19.0",
|
|
3
|
+
"version": "0.19.1-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"source": "./src/index.ts",
|
|
6
7
|
"main": "dist/index.js",
|
|
7
8
|
"typings": "dist/index.d.ts",
|
|
8
9
|
"files": [
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
"browserslist": "> 0.5%, last 2 versions, not dead",
|
|
13
14
|
"scripts": {
|
|
14
15
|
"build": "node ../../scripts/build/command.mjs --path widget/embedded",
|
|
16
|
+
"ts-check": "tsc --declaration --emitDeclarationOnly -p ./tsconfig.json",
|
|
15
17
|
"clean": "rimraf dist",
|
|
16
18
|
"format": "prettier --write '{.,src}/**/*.{ts,tsx}'",
|
|
17
19
|
"lint": "eslint \"**/*.{ts,tsx}\" --ignore-path ../../.eslintignore"
|
|
@@ -19,20 +21,20 @@
|
|
|
19
21
|
"dependencies": {
|
|
20
22
|
"@lingui/core": "4.2.1",
|
|
21
23
|
"@lingui/react": "4.2.1",
|
|
22
|
-
"@rango-dev/provider-all": "^0.24.0",
|
|
23
|
-
"@rango-dev/queue-manager-core": "^0.23.0",
|
|
24
|
-
"@rango-dev/queue-manager-rango-preset": "^0.24.0",
|
|
25
|
-
"@rango-dev/queue-manager-react": "^0.23.0",
|
|
26
|
-
"@rango-dev/ui": "^0.24.0",
|
|
27
|
-
"@rango-dev/wallets-react": "^0.10.0",
|
|
28
|
-
"@rango-dev/wallets-shared": "^0.23.0",
|
|
24
|
+
"@rango-dev/provider-all": "^0.24.1-next.0",
|
|
25
|
+
"@rango-dev/queue-manager-core": "^0.23.1-next.0",
|
|
26
|
+
"@rango-dev/queue-manager-rango-preset": "^0.24.1-next.0",
|
|
27
|
+
"@rango-dev/queue-manager-react": "^0.23.1-next.0",
|
|
28
|
+
"@rango-dev/ui": "^0.24.1-next.0",
|
|
29
|
+
"@rango-dev/wallets-react": "^0.10.1-next.0",
|
|
30
|
+
"@rango-dev/wallets-shared": "^0.23.1-next.0",
|
|
29
31
|
"bignumber.js": "^9.1.1",
|
|
30
32
|
"copy-to-clipboard": "^3.3.3",
|
|
31
33
|
"dayjs": "^1.11.7",
|
|
32
34
|
"immer": "^9.0.19",
|
|
33
35
|
"mitt": "^3.0.0",
|
|
34
|
-
"rango-sdk": "^0.1.
|
|
35
|
-
"rango-types": "^0.1.
|
|
36
|
+
"rango-sdk": "^0.1.44",
|
|
37
|
+
"rango-types": "^0.1.57",
|
|
36
38
|
"react-i18next": "^12.2.0",
|
|
37
39
|
"react-router-dom": "^6.8.0",
|
|
38
40
|
"values.js": "2.1.1",
|
|
@@ -45,4 +47,4 @@
|
|
|
45
47
|
"publishConfig": {
|
|
46
48
|
"access": "public"
|
|
47
49
|
}
|
|
48
|
-
}
|
|
50
|
+
}
|
package/src/QueueManager.tsx
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import type { SwapQueueContext } from '@rango-dev/queue-manager-rango-preset';
|
|
2
|
+
import type { Network, WalletType } from '@rango-dev/wallets-shared';
|
|
3
|
+
import type { PropsWithChildren } from 'react';
|
|
4
|
+
|
|
3
5
|
import {
|
|
4
|
-
makeQueueDefinition,
|
|
5
|
-
SwapQueueContext,
|
|
6
6
|
checkWaitingForNetworkChange,
|
|
7
|
+
makeQueueDefinition,
|
|
7
8
|
} from '@rango-dev/queue-manager-rango-preset';
|
|
9
|
+
import { Provider as ManagerProvider } from '@rango-dev/queue-manager-react';
|
|
8
10
|
import { useWallets } from '@rango-dev/wallets-react';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from '
|
|
14
|
-
import { useMetaStore } from './store/meta';
|
|
11
|
+
import { convertEvmBlockchainMetaToEvmChainInfo } from '@rango-dev/wallets-shared';
|
|
12
|
+
import { isEvmBlockchain } from 'rango-types';
|
|
13
|
+
import React, { useMemo } from 'react';
|
|
14
|
+
|
|
15
|
+
import { useAppStore } from './store/AppStore';
|
|
15
16
|
import { useWalletsStore } from './store/wallets';
|
|
16
|
-
import { walletAndSupportedChainsNames } from './utils/wallets';
|
|
17
17
|
import { getConfig } from './utils/configs';
|
|
18
|
-
import {
|
|
18
|
+
import { walletAndSupportedChainsNames } from './utils/wallets';
|
|
19
19
|
|
|
20
|
-
function QueueManager(props: PropsWithChildren) {
|
|
20
|
+
function QueueManager(props: PropsWithChildren<{ apiKey?: string }>) {
|
|
21
21
|
const {
|
|
22
22
|
providers,
|
|
23
23
|
getSigners,
|
|
@@ -29,11 +29,12 @@ function QueueManager(props: PropsWithChildren) {
|
|
|
29
29
|
|
|
30
30
|
const swapQueueDef = useMemo(() => {
|
|
31
31
|
return makeQueueDefinition({
|
|
32
|
-
API_KEY: getConfig('API_KEY'),
|
|
32
|
+
API_KEY: props.apiKey || getConfig('API_KEY'),
|
|
33
|
+
BASE_URL: getConfig('BASE_URL'),
|
|
33
34
|
});
|
|
34
|
-
}, []);
|
|
35
|
+
}, [props.apiKey]);
|
|
35
36
|
|
|
36
|
-
const
|
|
37
|
+
const blockchains = useAppStore().blockchains();
|
|
37
38
|
const connectedWallets = useWalletsStore.use.connectedWallets();
|
|
38
39
|
|
|
39
40
|
const wallets = {
|
|
@@ -43,7 +44,7 @@ function QueueManager(props: PropsWithChildren) {
|
|
|
43
44
|
})),
|
|
44
45
|
};
|
|
45
46
|
|
|
46
|
-
const switchNetwork = (wallet: WalletType, network: Network) => {
|
|
47
|
+
const switchNetwork = async (wallet: WalletType, network: Network) => {
|
|
47
48
|
if (!canSwitchNetworkTo(wallet, network)) {
|
|
48
49
|
return undefined;
|
|
49
50
|
}
|
|
@@ -1,42 +1,17 @@
|
|
|
1
|
-
import type { WidgetConfig } from '../types';
|
|
2
1
|
import type { WalletType } from '@rango-dev/wallets-shared';
|
|
3
2
|
import type { PropsWithChildren } from 'react';
|
|
4
3
|
|
|
5
4
|
import { useQueueManager } from '@rango-dev/queue-manager-rango-preset';
|
|
6
5
|
import { useWallets } from '@rango-dev/wallets-react';
|
|
7
6
|
import { isEvmBlockchain } from 'rango-types';
|
|
8
|
-
import React, {
|
|
7
|
+
import React, { Fragment } from 'react';
|
|
9
8
|
import { MemoryRouter, useInRouterContext } from 'react-router';
|
|
10
|
-
import { useLocation, useNavigate } from 'react-router-dom';
|
|
11
9
|
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { useMetaStore } from '../store/meta';
|
|
10
|
+
import { useForceAutoConnect } from '../hooks/useForceAutoConnect';
|
|
11
|
+
import { useAppStore } from '../store/AppStore';
|
|
15
12
|
|
|
16
13
|
import { UpdateUrl } from './UpdateUrl';
|
|
17
14
|
|
|
18
|
-
function Route(props: PropsWithChildren) {
|
|
19
|
-
const location = useLocation();
|
|
20
|
-
const navigate = useNavigate();
|
|
21
|
-
const firstRender = useRef(true);
|
|
22
|
-
const paths = location.pathname.split('/');
|
|
23
|
-
const pathMatched = paths[paths.length - 1] === navigationRoutes.confirmSwap;
|
|
24
|
-
const shouldRedirectToMainPage = pathMatched && firstRender.current;
|
|
25
|
-
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
if (shouldRedirectToMainPage) {
|
|
28
|
-
navigate('.');
|
|
29
|
-
}
|
|
30
|
-
firstRender.current = false;
|
|
31
|
-
}, []);
|
|
32
|
-
|
|
33
|
-
if (shouldRedirectToMainPage) {
|
|
34
|
-
return <Home />;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return <> {props.children}</>;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
15
|
export function AppRouter({
|
|
41
16
|
children,
|
|
42
17
|
...props
|
|
@@ -44,13 +19,14 @@ export function AppRouter({
|
|
|
44
19
|
lastConnectedWallet: string;
|
|
45
20
|
disconnectedWallet: WalletType | undefined;
|
|
46
21
|
clearDisconnectedWallet: () => void;
|
|
47
|
-
config: WidgetConfig | undefined;
|
|
48
22
|
}) {
|
|
49
23
|
const isRouterInContext = useInRouterContext();
|
|
50
|
-
const Router = isRouterInContext ?
|
|
51
|
-
const
|
|
24
|
+
const Router = isRouterInContext ? Fragment : MemoryRouter;
|
|
25
|
+
const blockchains = useAppStore().blockchains();
|
|
52
26
|
const { canSwitchNetworkTo } = useWallets();
|
|
53
27
|
|
|
28
|
+
useForceAutoConnect();
|
|
29
|
+
|
|
54
30
|
const evmChains = blockchains.filter(isEvmBlockchain);
|
|
55
31
|
|
|
56
32
|
useQueueManager({
|
|
@@ -64,7 +40,7 @@ export function AppRouter({
|
|
|
64
40
|
return (
|
|
65
41
|
<>
|
|
66
42
|
<Router>{children}</Router>
|
|
67
|
-
{isRouterInContext && <UpdateUrl
|
|
43
|
+
{isRouterInContext && <UpdateUrl />}
|
|
68
44
|
</>
|
|
69
45
|
);
|
|
70
46
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { WidgetConfig } from '../types';
|
|
2
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { useRoutes } from 'react-router-dom';
|
|
5
3
|
|
|
@@ -16,15 +14,7 @@ import { SwapDetailsPage } from '../pages/SwapDetailsPage';
|
|
|
16
14
|
import { ThemePage } from '../pages/ThemePage';
|
|
17
15
|
import { WalletsPage } from '../pages/WalletsPage';
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
interface PropTypes {
|
|
22
|
-
config?: WidgetConfig;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export function AppRoutes(props: PropTypes) {
|
|
26
|
-
const { config } = props;
|
|
27
|
-
|
|
17
|
+
export function AppRoutes() {
|
|
28
18
|
return useRoutes([
|
|
29
19
|
{
|
|
30
20
|
path: navigationRoutes.home,
|
|
@@ -32,77 +22,75 @@ export function AppRoutes(props: PropTypes) {
|
|
|
32
22
|
},
|
|
33
23
|
{
|
|
34
24
|
path: navigationRoutes.fromSwap,
|
|
35
|
-
|
|
25
|
+
children: [
|
|
26
|
+
{
|
|
27
|
+
index: true,
|
|
28
|
+
element: <SelectSwapItemsPage type="source" />,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
path: navigationRoutes.blockchains,
|
|
32
|
+
element: <SelectBlockchainPage type="source" />,
|
|
33
|
+
},
|
|
34
|
+
],
|
|
36
35
|
},
|
|
37
36
|
{
|
|
38
37
|
path: navigationRoutes.toSwap,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
children: [
|
|
39
|
+
{
|
|
40
|
+
index: true,
|
|
41
|
+
element: <SelectSwapItemsPage type="destination" />,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
path: navigationRoutes.blockchains,
|
|
45
|
+
element: <SelectBlockchainPage type="destination" />,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
path: navigationRoutes.settings,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
sourceType="
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
),
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
path: navigationRoutes.bridges,
|
|
77
|
-
element: (
|
|
78
|
-
<LiquiditySourcePage
|
|
79
|
-
sourceType="Bridges"
|
|
80
|
-
supportedSwappers={config?.liquiditySources}
|
|
81
|
-
/>
|
|
82
|
-
),
|
|
51
|
+
children: [
|
|
52
|
+
{
|
|
53
|
+
index: true,
|
|
54
|
+
element: <SettingsPage />,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
path: navigationRoutes.themes,
|
|
58
|
+
element: <ThemePage />,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: navigationRoutes.languages,
|
|
62
|
+
element: <LanguagePage />,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
path: navigationRoutes.exchanges,
|
|
66
|
+
element: <LiquiditySourcePage sourceType="Exchanges" />,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
path: navigationRoutes.bridges,
|
|
70
|
+
element: <LiquiditySourcePage sourceType="Bridges" />,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
83
73
|
},
|
|
84
|
-
{ path: navigationRoutes.swaps, element: <HistoryPage /> },
|
|
85
74
|
{
|
|
86
|
-
path: navigationRoutes.
|
|
87
|
-
|
|
75
|
+
path: navigationRoutes.swaps,
|
|
76
|
+
children: [
|
|
77
|
+
{
|
|
78
|
+
index: true,
|
|
79
|
+
element: <HistoryPage />,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
path: navigationRoutes.swapDetails,
|
|
83
|
+
element: <SwapDetailsPage />,
|
|
84
|
+
},
|
|
85
|
+
],
|
|
88
86
|
},
|
|
89
87
|
{
|
|
90
88
|
path: navigationRoutes.wallets,
|
|
91
|
-
element:
|
|
92
|
-
<WalletsPage
|
|
93
|
-
supportedWallets={config?.wallets}
|
|
94
|
-
multiWallets={
|
|
95
|
-
typeof config?.multiWallets === 'undefined'
|
|
96
|
-
? true
|
|
97
|
-
: config.multiWallets
|
|
98
|
-
}
|
|
99
|
-
config={config}
|
|
100
|
-
/>
|
|
101
|
-
),
|
|
89
|
+
element: <WalletsPage />,
|
|
102
90
|
},
|
|
103
91
|
{
|
|
104
|
-
path:
|
|
105
|
-
element: <ConfirmSwapPage
|
|
92
|
+
path: navigationRoutes.confirmSwap,
|
|
93
|
+
element: <ConfirmSwapPage />,
|
|
106
94
|
},
|
|
107
95
|
]);
|
|
108
96
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { styled } from '@rango-dev/ui';
|
|
1
|
+
import { ImageContainer, styled } from '@rango-dev/ui';
|
|
2
2
|
|
|
3
3
|
export const Container = styled('div', {
|
|
4
4
|
display: 'flex',
|
|
@@ -12,7 +12,7 @@ export const List = styled('ul', {
|
|
|
12
12
|
listStyle: 'none',
|
|
13
13
|
overflowY: 'auto',
|
|
14
14
|
paddingRight: '$5',
|
|
15
|
-
|
|
15
|
+
[`& ${ImageContainer}`]: {
|
|
16
16
|
borderRadius: '$xm',
|
|
17
17
|
overflow: 'hidden',
|
|
18
18
|
},
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '@rango-dev/ui';
|
|
12
12
|
import React, { useEffect, useState } from 'react';
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { useAppStore } from '../../store/AppStore';
|
|
15
15
|
|
|
16
16
|
import { filterBlockchains } from './BlockchainList.helpers';
|
|
17
17
|
import { Container, List } from './BlockchainList.styles';
|
|
@@ -20,7 +20,7 @@ import { LoadingBlockchainList } from './LoadingBlockchainList';
|
|
|
20
20
|
export function BlockchainList(props: PropTypes) {
|
|
21
21
|
const { list, searchedFor, onChange, blockchainCategory } = props;
|
|
22
22
|
const [blockchains, setBlockchains] = useState<BlockchainMeta[]>(list);
|
|
23
|
-
const
|
|
23
|
+
const { fetchStatus } = useAppStore();
|
|
24
24
|
|
|
25
25
|
useEffect(() => {
|
|
26
26
|
setBlockchains([
|
|
@@ -66,8 +66,8 @@ export function BlockchainList(props: PropTypes) {
|
|
|
66
66
|
{i18n.t('Select Blockchain')}
|
|
67
67
|
</Typography>
|
|
68
68
|
<Divider size={4} />
|
|
69
|
-
{
|
|
70
|
-
{
|
|
69
|
+
{fetchStatus === 'loading' && <LoadingBlockchainList />}
|
|
70
|
+
{fetchStatus === 'success' && renderList()}
|
|
71
71
|
</Container>
|
|
72
72
|
);
|
|
73
73
|
}
|
|
@@ -7,16 +7,18 @@ import {
|
|
|
7
7
|
Divider,
|
|
8
8
|
Image,
|
|
9
9
|
Skeleton,
|
|
10
|
+
Tooltip,
|
|
10
11
|
Typography,
|
|
11
12
|
} from '@rango-dev/ui';
|
|
12
13
|
import React from 'react';
|
|
13
14
|
|
|
14
15
|
import { BLOCKCHAIN_LIST_SIZE } from '../../constants/configs';
|
|
15
16
|
import { usePrepareBlockchainList } from '../../hooks/usePrepareBlockchainList';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
17
|
+
import { useAppStore } from '../../store/AppStore';
|
|
18
|
+
import { useQuoteStore } from '../../store/quote';
|
|
19
|
+
import { getContainer } from '../../utils/common';
|
|
18
20
|
|
|
19
|
-
import {
|
|
21
|
+
import { Blockchains } from './BlockchainsSection.styles';
|
|
20
22
|
|
|
21
23
|
const NUMBER_OF_LOADING = 12;
|
|
22
24
|
|
|
@@ -27,9 +29,9 @@ export function BlockchainsSection(props: PropTypes) {
|
|
|
27
29
|
selected: blockchain?.name,
|
|
28
30
|
});
|
|
29
31
|
|
|
30
|
-
const
|
|
31
|
-
const resetToBlockchain =
|
|
32
|
-
const resetFromBlockchain =
|
|
32
|
+
const { fetchStatus } = useAppStore();
|
|
33
|
+
const resetToBlockchain = useQuoteStore.use.resetToBlockchain();
|
|
34
|
+
const resetFromBlockchain = useQuoteStore.use.resetFromBlockchain();
|
|
33
35
|
const hasMoreItemsInList = blockchainsList.more.length > 0;
|
|
34
36
|
/**
|
|
35
37
|
* When only one item is left on list, we will not show the `More` button and will show the item itself instead.
|
|
@@ -38,18 +40,18 @@ export function BlockchainsSection(props: PropTypes) {
|
|
|
38
40
|
const showMoreButton = !onlyOneItemInList && hasMoreItemsInList;
|
|
39
41
|
|
|
40
42
|
return (
|
|
41
|
-
|
|
43
|
+
<>
|
|
42
44
|
<Divider size={12} />
|
|
43
45
|
<Typography variant="label" size="large">
|
|
44
46
|
{i18n.t('Select Blockchain')}
|
|
45
47
|
</Typography>
|
|
46
48
|
<Divider size={12} />
|
|
47
|
-
<
|
|
48
|
-
{
|
|
49
|
+
<Blockchains>
|
|
50
|
+
{fetchStatus === 'loading' &&
|
|
49
51
|
Array.from(Array(NUMBER_OF_LOADING), (e) => (
|
|
50
52
|
<Skeleton key={e} variant="rounded" height={50} />
|
|
51
53
|
))}
|
|
52
|
-
{
|
|
54
|
+
{fetchStatus === 'success' && (
|
|
53
55
|
<>
|
|
54
56
|
<BlockchainsChip
|
|
55
57
|
selected={!blockchain}
|
|
@@ -65,12 +67,19 @@ export function BlockchainsSection(props: PropTypes) {
|
|
|
65
67
|
</Typography>
|
|
66
68
|
</BlockchainsChip>
|
|
67
69
|
{blockchainsList.list.map((item) => (
|
|
68
|
-
<
|
|
70
|
+
<Tooltip
|
|
69
71
|
key={item.name}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
content={item.shortName}
|
|
73
|
+
side="bottom"
|
|
74
|
+
sideOffset={2}
|
|
75
|
+
container={getContainer()}>
|
|
76
|
+
<BlockchainsChip
|
|
77
|
+
key={item.name}
|
|
78
|
+
selected={!!blockchain && blockchain.name === item.name}
|
|
79
|
+
onClick={() => onChange(item)}>
|
|
80
|
+
<Image src={item.logo} size={30} />
|
|
81
|
+
</BlockchainsChip>
|
|
82
|
+
</Tooltip>
|
|
74
83
|
))}
|
|
75
84
|
|
|
76
85
|
{onlyOneItemInList ? (
|
|
@@ -96,7 +105,7 @@ export function BlockchainsSection(props: PropTypes) {
|
|
|
96
105
|
) : null}
|
|
97
106
|
</>
|
|
98
107
|
)}
|
|
99
|
-
</
|
|
100
|
-
|
|
108
|
+
</Blockchains>
|
|
109
|
+
</>
|
|
101
110
|
);
|
|
102
111
|
}
|
|
@@ -1,71 +1,9 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
2
|
-
import type { Step } from '@rango-dev/ui/dist/widget/ui/src/components/BestRoute/BestRoute.types';
|
|
3
1
|
import type { BestRouteResponse, BlockchainMeta } from 'rango-sdk';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
TOKEN_AMOUNT_MAX_DECIMALS,
|
|
7
|
-
TOKEN_AMOUNT_MIN_DECIMALS,
|
|
8
|
-
USD_VALUE_MAX_DECIMALS,
|
|
9
|
-
USD_VALUE_MIN_DECIMALS,
|
|
10
|
-
} from '../../constants/routing';
|
|
11
|
-
import { getBlockchainShortNameFor } from '../../utils/meta';
|
|
12
|
-
import { numberToString } from '../../utils/numbers';
|
|
13
|
-
|
|
14
|
-
export function formatBestRoute(
|
|
15
|
-
bestRoute: BestRouteResponse,
|
|
16
|
-
blockchains: BlockchainMeta[]
|
|
17
|
-
): Step[] | undefined {
|
|
18
|
-
return bestRoute.result?.swaps.map((swap) => {
|
|
19
|
-
return {
|
|
20
|
-
swapper: { displayName: swap.swapperId, image: swap.swapperLogo },
|
|
21
|
-
from: {
|
|
22
|
-
token: { displayName: swap.from.symbol, image: swap.from.logo },
|
|
23
|
-
chain: {
|
|
24
|
-
displayName:
|
|
25
|
-
getBlockchainShortNameFor(swap.from.blockchain, blockchains) ?? '',
|
|
26
|
-
image: swap.from.blockchainLogo,
|
|
27
|
-
},
|
|
28
|
-
price: {
|
|
29
|
-
value: numberToString(
|
|
30
|
-
swap.fromAmount,
|
|
31
|
-
TOKEN_AMOUNT_MIN_DECIMALS,
|
|
32
|
-
TOKEN_AMOUNT_MAX_DECIMALS
|
|
33
|
-
),
|
|
34
|
-
usdValue: numberToString(
|
|
35
|
-
swap.from.usdPrice?.toString(),
|
|
36
|
-
USD_VALUE_MIN_DECIMALS,
|
|
37
|
-
USD_VALUE_MAX_DECIMALS
|
|
38
|
-
),
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
to: {
|
|
42
|
-
token: { displayName: swap.to.symbol, image: swap.to.logo },
|
|
43
|
-
chain: {
|
|
44
|
-
displayName:
|
|
45
|
-
getBlockchainShortNameFor(swap.to.blockchain, blockchains) ?? '',
|
|
46
|
-
image: swap.to.blockchainLogo,
|
|
47
|
-
},
|
|
48
|
-
price: {
|
|
49
|
-
value: numberToString(
|
|
50
|
-
swap.toAmount,
|
|
51
|
-
TOKEN_AMOUNT_MIN_DECIMALS,
|
|
52
|
-
TOKEN_AMOUNT_MAX_DECIMALS
|
|
53
|
-
),
|
|
54
|
-
usdValue: numberToString(
|
|
55
|
-
swap.to.usdPrice?.toString(),
|
|
56
|
-
USD_VALUE_MIN_DECIMALS,
|
|
57
|
-
USD_VALUE_MAX_DECIMALS
|
|
58
|
-
),
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function getRequiredWallets(route: BestRouteResponse | null): string[] {
|
|
3
|
+
export function getRequiredWallets(quote: BestRouteResponse | null): string[] {
|
|
66
4
|
const wallets: string[] = [];
|
|
67
5
|
|
|
68
|
-
|
|
6
|
+
quote?.result?.swaps.forEach((swap) => {
|
|
69
7
|
const currentStepFromBlockchain = swap.from.blockchain;
|
|
70
8
|
const currentStepToBlockchain = swap.to.blockchain;
|
|
71
9
|
let lastAddedWallet = wallets[wallets.length - 1];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Collapsible from '@radix-ui/react-collapsible';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
|
+
css,
|
|
4
5
|
darkTheme,
|
|
5
6
|
IconButton,
|
|
6
7
|
keyframes,
|
|
@@ -36,10 +37,13 @@ export const Title = styled('div', {
|
|
|
36
37
|
});
|
|
37
38
|
|
|
38
39
|
export const ListContainer = styled('div', {
|
|
39
|
-
display: '
|
|
40
|
+
display: 'flex',
|
|
41
|
+
justifyContent: 'space-evenly',
|
|
42
|
+
alignItems: 'center',
|
|
40
43
|
gap: '$10',
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
flexWrap: 'wrap',
|
|
45
|
+
paddingTop: '$5',
|
|
46
|
+
height: '100%',
|
|
43
47
|
});
|
|
44
48
|
|
|
45
49
|
export const WalletButton = styled('button', {
|
|
@@ -84,6 +88,12 @@ export const WalletButton = styled('button', {
|
|
|
84
88
|
},
|
|
85
89
|
},
|
|
86
90
|
});
|
|
91
|
+
|
|
92
|
+
export const ShowMoreWallets = styled(WalletButton, {
|
|
93
|
+
alignSelf: 'stretch',
|
|
94
|
+
minHeight: '93px',
|
|
95
|
+
});
|
|
96
|
+
|
|
87
97
|
export const Trigger = styled(Collapsible.Trigger, {
|
|
88
98
|
padding: '$0',
|
|
89
99
|
border: 'none',
|
|
@@ -110,12 +120,16 @@ export const NavigateBack = styled(IconButton, {
|
|
|
110
120
|
|
|
111
121
|
export const WalletsContainer = styled('div', {
|
|
112
122
|
paddingTop: '$20',
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
export const walletsListStyles = css({
|
|
126
|
+
display: 'flex',
|
|
127
|
+
justifyContent: 'space-evenly',
|
|
128
|
+
alignItems: 'center',
|
|
129
|
+
gap: '$10',
|
|
130
|
+
flexWrap: 'wrap',
|
|
131
|
+
paddingTop: '$5',
|
|
132
|
+
height: '100%',
|
|
119
133
|
});
|
|
120
134
|
|
|
121
135
|
export const CollapsibleRoot = styled(Collapsible.Root, {
|
|
@@ -165,12 +179,15 @@ export const CustomDestination = styled('div', {
|
|
|
165
179
|
padding: '$10 $0',
|
|
166
180
|
'& .button__content': {
|
|
167
181
|
display: 'flex',
|
|
168
|
-
justifyContent: 'center',
|
|
169
182
|
alignItems: 'center',
|
|
170
183
|
},
|
|
171
184
|
'& .alarms': { paddingTop: '5px' },
|
|
172
185
|
});
|
|
173
186
|
|
|
187
|
+
export const alarmsStyles = css({
|
|
188
|
+
paddingTop: '5px',
|
|
189
|
+
});
|
|
190
|
+
|
|
174
191
|
export const ExpandedIcon = styled('div', {
|
|
175
192
|
transition: `all ${EXPANDABLE_TRANSITION_DURATION}ms ease`,
|
|
176
193
|
variants: {
|
|
@@ -190,10 +207,12 @@ export const ConfirmButton = styled('div', {
|
|
|
190
207
|
});
|
|
191
208
|
|
|
192
209
|
export const StyledTextField = styled(TextField, {
|
|
210
|
+
backgroundColor: '$neutral100',
|
|
193
211
|
padding: '$0 $15 $15 $15',
|
|
194
212
|
});
|
|
195
213
|
|
|
196
214
|
export const CollapsibleContent = styled(Collapsible.Content, {
|
|
215
|
+
backgroundColor: '$neutral100',
|
|
197
216
|
overflow: 'hidden',
|
|
198
217
|
variants: {
|
|
199
218
|
open: {
|