@rango-dev/widget-embedded 0.18.0 → 0.19.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 +1 -113
- package/dist/QueueManager.d.ts +2 -5
- package/dist/QueueManager.d.ts.map +1 -1
- package/dist/Wallets.d.ts +17 -0
- package/dist/Wallets.d.ts.map +1 -0
- package/dist/Widget.d.ts +9 -0
- package/dist/Widget.d.ts.map +1 -0
- package/dist/components/AppRouter.d.ts +2 -0
- package/dist/components/AppRouter.d.ts.map +1 -1
- package/dist/components/AppRoutes.d.ts +6 -1
- 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 +3 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.helpers.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +62 -691
- 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 +3 -1
- 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 +4 -1
- 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/LoadingSwapDetailStep.d.ts +4 -0
- package/dist/components/LoadingSwapDetails/LoadingSwapDetailStep.d.ts.map +1 -0
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.d.ts.map +1 -1
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts +0 -1727
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts.map +1 -1
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.types.d.ts +4 -0
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.types.d.ts.map +1 -0
- package/dist/components/NoRoutes/NoRoutes.d.ts +4 -0
- package/dist/components/NoRoutes/NoRoutes.d.ts.map +1 -0
- package/dist/components/NoRoutes/NoRoutes.helper.d.ts +3 -0
- package/dist/components/NoRoutes/NoRoutes.helper.d.ts.map +1 -0
- package/dist/components/{NoResult/NoResult.styles.d.ts → NoRoutes/NoRoutes.styles.d.ts} +1 -1
- package/dist/components/{NoResult/NoResult.styles.d.ts.map → NoRoutes/NoRoutes.styles.d.ts.map} +1 -1
- package/dist/components/{NoResult/NoResult.types.d.ts → NoRoutes/NoRoutes.types.d.ts} +3 -3
- package/dist/components/NoRoutes/NoRoutes.types.d.ts.map +1 -0
- package/dist/components/NoRoutes/index.d.ts +2 -0
- package/dist/components/NoRoutes/index.d.ts.map +1 -0
- package/dist/components/NotificationContent/NotificationContent.d.ts.map +1 -1
- package/dist/components/RouteErrors/RouteErrors.d.ts +4 -0
- package/dist/components/RouteErrors/RouteErrors.d.ts.map +1 -0
- package/dist/components/{QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts → RouteErrors/RouteErrors.styles.d.ts} +1 -1
- package/dist/components/RouteErrors/RouteErrors.styles.d.ts.map +1 -0
- package/dist/components/RouteErrors/RouteErrors.types.d.ts +24 -0
- package/dist/components/RouteErrors/RouteErrors.types.d.ts.map +1 -0
- package/dist/components/RouteErrors/RouteErrorsModal.d.ts +4 -0
- package/dist/components/RouteErrors/RouteErrorsModal.d.ts.map +1 -0
- package/dist/components/RouteErrors/RouteErrorsModalItem.d.ts +4 -0
- package/dist/components/RouteErrors/RouteErrorsModalItem.d.ts.map +1 -0
- package/dist/components/RouteErrors/index.d.ts +2 -0
- package/dist/components/RouteErrors/index.d.ts.map +1 -0
- package/dist/components/Slippage/Slippage.d.ts.map +1 -1
- package/dist/components/Slippage/Slippage.styles.d.ts +0 -158
- 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 +0 -628
- 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 +0 -157
- 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 +1 -1100
- package/dist/components/TokenList/TokenList.styles.d.ts.map +1 -1
- package/dist/components/TokenList/TokenList.types.d.ts +9 -4
- package/dist/components/TokenList/TokenList.types.d.ts.map +1 -1
- package/dist/components/TokenList/index.d.ts +1 -0
- package/dist/components/TokenList/index.d.ts.map +1 -1
- package/dist/components/UpdateUrl.d.ts +6 -1
- 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 +0 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/messages.d.ts +1 -1
- package/dist/constants/navigationRoutes.d.ts +2 -1
- package/dist/constants/navigationRoutes.d.ts.map +1 -1
- package/dist/constants/searchParams.d.ts +1 -2
- 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/hooks/{useConfirmSwap/useConfirmSwap.types.d.ts → useConfirmSwap.d.ts} +7 -5
- package/dist/hooks/useConfirmSwap.d.ts.map +1 -0
- package/dist/hooks/{useFetchQuote.d.ts → useFetchBestRoute.d.ts} +3 -3
- package/dist/hooks/useFetchBestRoute.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 +3 -1
- 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 +7 -5
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts.map +1 -1
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.d.ts +0 -1
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.d.ts.map +1 -1
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.d.ts +1 -5
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.d.ts.map +1 -1
- package/dist/hooks/useSwapInput.d.ts +2 -4
- package/dist/hooks/useSwapInput.d.ts.map +1 -1
- package/dist/hooks/useSyncStoresWithConfig.d.ts +2 -1
- 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 +8 -20
- 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 +6 -1
- 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 +2 -1
- 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 +6 -1
- 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 +8 -1
- package/dist/pages/WalletsPage.d.ts.map +1 -1
- package/dist/store/app.d.ts +22 -41
- package/dist/store/app.d.ts.map +1 -1
- package/dist/store/bestRoute.d.ts +77 -0
- package/dist/store/bestRoute.d.ts.map +1 -0
- package/dist/store/meta.d.ts +23 -0
- package/dist/store/meta.d.ts.map +1 -0
- package/dist/store/notification.d.ts +3 -4
- package/dist/store/notification.d.ts.map +1 -1
- package/dist/store/settings.d.ts +81 -0
- package/dist/store/settings.d.ts.map +1 -0
- package/dist/store/slices/config.d.ts +2 -3
- package/dist/store/slices/config.d.ts.map +1 -1
- package/dist/store/slices/data.d.ts +2 -5
- package/dist/store/slices/data.d.ts.map +1 -1
- package/dist/store/ui.d.ts +1 -2
- package/dist/store/ui.d.ts.map +1 -1
- package/dist/store/wallets.d.ts +9 -14
- package/dist/store/wallets.d.ts.map +1 -1
- package/dist/types/config.d.ts +8 -41
- 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/routing.d.ts +65 -0
- package/dist/types/routing.d.ts.map +1 -0
- package/dist/types/swap.d.ts +14 -4
- package/dist/types/swap.d.ts.map +1 -1
- package/dist/types/wallets.d.ts +1 -15
- package/dist/types/wallets.d.ts.map +1 -1
- package/dist/utils/colors.d.ts.map +1 -1
- package/dist/utils/configs.d.ts +0 -1
- package/dist/utils/configs.d.ts.map +1 -1
- package/dist/utils/meta.d.ts +1 -2
- 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/routing.d.ts +28 -0
- package/dist/utils/routing.d.ts.map +1 -0
- package/dist/utils/settings.d.ts +2 -6
- package/dist/utils/settings.d.ts.map +1 -1
- package/dist/utils/swap.d.ts +24 -35
- 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 +10 -9
- package/dist/utils/wallets.d.ts.map +1 -1
- package/package.json +10 -12
- package/src/QueueManager.tsx +17 -18
- package/src/{containers/Wallets/Wallets.tsx → Wallets.tsx} +34 -48
- package/src/Widget.tsx +119 -0
- package/src/components/AppRouter.tsx +32 -8
- package/src/components/AppRoutes.tsx +69 -57
- 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 +17 -26
- package/src/components/ConfirmWalletsModal/ConfirmWallets.helpers.ts +64 -2
- package/src/components/ConfirmWalletsModal/ConfirmWallets.styles.ts +10 -29
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +47 -43
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.types.ts +3 -1
- package/src/components/ConfirmWalletsModal/WalletList.tsx +8 -9
- package/src/components/ConfirmWalletsModal/WalletList.type.ts +4 -1
- package/src/components/HeaderButtons/HomeButtons.tsx +18 -28
- package/src/components/Layout/Layout.styles.ts +0 -2
- package/src/components/Layout/Layout.tsx +7 -20
- package/src/components/Layout/Layout.types.ts +2 -2
- package/src/components/LoadingSwapDetails/LoadingSwapDetailStep.tsx +41 -0
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.styles.ts +61 -65
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.tsx +34 -28
- package/src/components/LoadingSwapDetails/LoadingSwapDetails.types.ts +3 -0
- package/src/components/{NoResult/NoResult.helpers.ts → NoRoutes/NoRoutes.helper.ts} +16 -23
- package/src/components/{NoResult/NoResult.styles.ts → NoRoutes/NoRoutes.styles.ts} +0 -2
- package/src/components/{NoResult/NoResult.tsx → NoRoutes/NoRoutes.tsx} +17 -12
- package/src/components/{NoResult/NoResult.types.ts → NoRoutes/NoRoutes.types.ts} +2 -3
- package/src/components/NoRoutes/index.ts +1 -0
- package/src/components/NotificationContent/NotificationContent.tsx +3 -5
- package/src/components/{QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.ts → RouteErrors/RouteErrors.styles.ts} +1 -8
- package/src/components/RouteErrors/RouteErrors.tsx +79 -0
- package/src/components/RouteErrors/RouteErrors.types.ts +29 -0
- package/src/components/RouteErrors/RouteErrorsModal.tsx +129 -0
- package/src/components/{QuoteWarningsAndErrors/QuoteErrorsModalItem.tsx → RouteErrors/RouteErrorsModalItem.tsx} +4 -4
- package/src/components/RouteErrors/index.ts +1 -0
- package/src/components/Slippage/Slippage.styles.ts +5 -15
- package/src/components/Slippage/Slippage.tsx +10 -11
- package/src/components/SwapDetails/SwapDetails.Placeholder.tsx +8 -5
- package/src/components/SwapDetails/SwapDetails.helpers.tsx +1 -1
- package/src/components/SwapDetails/SwapDetails.styles.ts +33 -36
- package/src/components/SwapDetails/SwapDetails.tsx +56 -41
- package/src/components/SwapDetailsAlerts/SwapDetailsAlerts.Warning.tsx +1 -1
- package/src/components/SwapDetailsModal/SwapDetailsCompleteModal.tsx +3 -4
- package/src/components/SwapDetailsModal/SwapDetailsModal.Cancel.tsx +2 -2
- package/src/components/SwapDetailsModal/SwapDetailsModal.WalletState.tsx +8 -14
- 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 +1 -10
- package/src/components/SwapsGroup/SwapsGroup.tsx +5 -3
- package/src/components/SwitchFromAndTo.tsx +2 -2
- package/src/components/TokenList/TokenList.helpers.ts +2 -2
- package/src/components/TokenList/TokenList.styles.ts +38 -74
- package/src/components/TokenList/TokenList.tsx +26 -35
- package/src/components/TokenList/TokenList.types.ts +10 -4
- package/src/components/TokenList/index.ts +1 -0
- package/src/components/UpdateUrl.tsx +30 -35
- package/src/components/WidgetEvents.tsx +2 -4
- package/src/constants/errors.ts +15 -17
- package/src/constants/index.ts +0 -1
- package/src/constants/messages.ts +1 -1
- package/src/constants/navigationRoutes.ts +8 -7
- package/src/constants/searchParams.ts +0 -1
- package/src/constants/warnings.ts +7 -7
- package/src/hooks/useConfirmSwap.ts +303 -0
- package/src/hooks/{useFetchQuote.ts → useFetchBestRoute.ts} +3 -3
- package/src/hooks/useLanguage.ts +5 -4
- package/src/hooks/useNavigateBack.ts +52 -3
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.constants.ts +1 -1
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.ts +7 -37
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.ts +0 -60
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.test.ts +3 -78
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.ts +6 -15
- package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.ts +1 -6
- package/src/hooks/useSwapInput.ts +48 -141
- package/src/hooks/useSyncStoresWithConfig.ts +24 -40
- package/src/hooks/useTheme.ts +5 -4
- package/src/hooks/useWalletList.ts +5 -3
- package/src/index.ts +5 -53
- package/src/pages/ConfirmSwapPage.tsx +266 -117
- package/src/pages/HistoryPage.tsx +7 -2
- package/src/pages/Home.tsx +303 -88
- package/src/pages/LanguagePage.tsx +5 -0
- package/src/pages/LiquiditySourcePage.tsx +37 -24
- package/src/pages/SelectBlockchainPage.tsx +24 -31
- package/src/pages/SelectSwapItemsPage.tsx +31 -18
- package/src/pages/SettingsPage.tsx +27 -32
- package/src/pages/SwapDetailsPage.tsx +7 -6
- package/src/pages/ThemePage.tsx +7 -2
- package/src/pages/WalletsPage.tsx +19 -9
- package/src/services/httpService.ts +1 -1
- package/src/store/app.ts +6 -44
- package/src/store/{quote.ts → bestRoute.ts} +64 -71
- package/src/store/meta.ts +39 -0
- package/src/store/settings.ts +158 -0
- package/src/store/slices/config.ts +15 -26
- package/src/store/slices/data.ts +35 -74
- package/src/store/wallets.ts +37 -68
- package/src/types/config.ts +8 -53
- package/src/types/index.ts +1 -1
- package/src/types/routing.ts +77 -0
- package/src/types/swap.ts +13 -4
- package/src/types/wallets.ts +1 -18
- package/src/utils/colors.ts +1 -2
- package/src/utils/configs.ts +1 -2
- package/src/utils/date.ts +1 -1
- package/src/utils/meta.ts +1 -8
- package/src/utils/numbers.ts +1 -1
- package/src/utils/providers.ts +5 -8
- package/src/utils/queue.ts +2 -2
- package/src/utils/routing.ts +321 -0
- package/src/utils/settings.ts +10 -17
- package/src/utils/swap.ts +120 -154
- package/src/utils/time.ts +1 -1
- package/src/utils/wallets.ts +161 -156
- package/dist/components/NoResult/NoResult.d.ts +0 -4
- package/dist/components/NoResult/NoResult.d.ts.map +0 -1
- package/dist/components/NoResult/NoResult.helpers.d.ts +0 -4
- package/dist/components/NoResult/NoResult.helpers.d.ts.map +0 -1
- package/dist/components/NoResult/NoResult.types.d.ts.map +0 -1
- package/dist/components/NoResult/index.d.ts +0 -2
- package/dist/components/NoResult/index.d.ts.map +0 -1
- package/dist/components/Quote/Quote.d.ts +0 -4
- package/dist/components/Quote/Quote.d.ts.map +0 -1
- package/dist/components/Quote/Quote.styles.d.ts +0 -2217
- package/dist/components/Quote/Quote.styles.d.ts.map +0 -1
- package/dist/components/Quote/Quote.types.d.ts +0 -21
- package/dist/components/Quote/Quote.types.d.ts.map +0 -1
- package/dist/components/Quote/QuoteSummary.d.ts +0 -11
- package/dist/components/Quote/QuoteSummary.d.ts.map +0 -1
- package/dist/components/Quote/QuoteSummary.styles.d.ts +0 -315
- package/dist/components/Quote/QuoteSummary.styles.d.ts.map +0 -1
- package/dist/components/Quote/index.d.ts +0 -3
- package/dist/components/Quote/index.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/QuoteSkeleton.d.ts +0 -4
- package/dist/components/QuoteSkeleton/QuoteSkeleton.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts +0 -633
- package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/QuoteSkeleton.types.d.ts +0 -6
- package/dist/components/QuoteSkeleton/QuoteSkeleton.types.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.d.ts +0 -4
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.styles.d.ts +0 -1571
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.styles.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.types.d.ts +0 -6
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.types.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/StepSkeleton.d.ts +0 -4
- package/dist/components/QuoteSkeleton/StepSkeleton.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts +0 -786
- package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/StepSkeleton.types.d.ts +0 -4
- package/dist/components/QuoteSkeleton/StepSkeleton.types.d.ts.map +0 -1
- package/dist/components/QuoteSkeleton/index.d.ts +0 -4
- package/dist/components/QuoteSkeleton/index.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/HighValueLossWarningModal.d.ts +0 -11
- package/dist/components/QuoteWarningsAndErrors/HighValueLossWarningModal.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteErrorsModalItem.d.ts +0 -4
- package/dist/components/QuoteWarningsAndErrors/QuoteErrorsModalItem.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts +0 -4
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts +0 -9
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts +0 -23
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/SlippageWariningModal.d.ts +0 -11
- package/dist/components/QuoteWarningsAndErrors/SlippageWariningModal.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.d.ts +0 -11
- package/dist/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.d.ts.map +0 -1
- package/dist/components/QuoteWarningsAndErrors/index.d.ts +0 -2
- package/dist/components/QuoteWarningsAndErrors/index.d.ts.map +0 -1
- package/dist/containers/App/App.d.ts +0 -3
- package/dist/containers/App/App.d.ts.map +0 -1
- package/dist/containers/App/App.styles.d.ts +0 -158
- package/dist/containers/App/App.styles.d.ts.map +0 -1
- package/dist/containers/App/index.d.ts +0 -2
- package/dist/containers/App/index.d.ts.map +0 -1
- package/dist/containers/QuoteInfo/QuoteInfo.d.ts +0 -4
- package/dist/containers/QuoteInfo/QuoteInfo.d.ts.map +0 -1
- package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts +0 -788
- package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts.map +0 -1
- package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts +0 -20
- package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts.map +0 -1
- package/dist/containers/QuoteInfo/index.d.ts +0 -2
- package/dist/containers/QuoteInfo/index.d.ts.map +0 -1
- package/dist/containers/Wallets/Wallets.d.ts +0 -6
- package/dist/containers/Wallets/Wallets.d.ts.map +0 -1
- package/dist/containers/Wallets/Wallets.types.d.ts +0 -11
- package/dist/containers/Wallets/Wallets.types.d.ts.map +0 -1
- package/dist/containers/Wallets/index.d.ts +0 -2
- package/dist/containers/Wallets/index.d.ts.map +0 -1
- package/dist/containers/Widget/Widget.d.ts +0 -5
- package/dist/containers/Widget/Widget.d.ts.map +0 -1
- package/dist/containers/Widget/Widget.types.d.ts +0 -5
- package/dist/containers/Widget/Widget.types.d.ts.map +0 -1
- package/dist/containers/Widget/index.d.ts +0 -3
- package/dist/containers/Widget/index.d.ts.map +0 -1
- package/dist/containers/WidgetInfo/WidgetInfo.d.ts +0 -6
- package/dist/containers/WidgetInfo/WidgetInfo.d.ts.map +0 -1
- package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts +0 -20
- package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts.map +0 -1
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts +0 -21
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts.map +0 -1
- package/dist/containers/WidgetInfo/index.d.ts +0 -2
- package/dist/containers/WidgetInfo/index.d.ts.map +0 -1
- package/dist/containers/WidgetProvider/WidgetProvider.d.ts +0 -5
- package/dist/containers/WidgetProvider/WidgetProvider.d.ts.map +0 -1
- package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts +0 -7
- package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts.map +0 -1
- package/dist/containers/WidgetProvider/index.d.ts +0 -2
- package/dist/containers/WidgetProvider/index.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap/index.d.ts +0 -2
- package/dist/hooks/useConfirmSwap/index.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts +0 -3
- package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts +0 -19
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts.map +0 -1
- package/dist/hooks/useConfirmSwap/useConfirmSwap.types.d.ts.map +0 -1
- package/dist/hooks/useFetchQuote.d.ts.map +0 -1
- package/dist/hooks/useForceAutoConnect.d.ts +0 -2
- package/dist/hooks/useForceAutoConnect.d.ts.map +0 -1
- package/dist/store/AppStore.d.ts +0 -47
- package/dist/store/AppStore.d.ts.map +0 -1
- package/dist/store/quote.d.ts +0 -89
- package/dist/store/quote.d.ts.map +0 -1
- package/dist/store/slices/settings.d.ts +0 -39
- package/dist/store/slices/settings.d.ts.map +0 -1
- package/dist/types/quote.d.ts +0 -82
- package/dist/types/quote.d.ts.map +0 -1
- package/dist/utils/quote.d.ts +0 -32
- package/dist/utils/quote.d.ts.map +0 -1
- package/src/components/NoResult/index.ts +0 -1
- package/src/components/Quote/Quote.styles.ts +0 -249
- package/src/components/Quote/Quote.tsx +0 -414
- package/src/components/Quote/Quote.types.ts +0 -15
- package/src/components/Quote/QuoteSummary.styles.ts +0 -16
- package/src/components/Quote/QuoteSummary.tsx +0 -46
- package/src/components/Quote/index.ts +0 -2
- package/src/components/QuoteSkeleton/QuoteSkeleton.styles.ts +0 -42
- package/src/components/QuoteSkeleton/QuoteSkeleton.tsx +0 -30
- package/src/components/QuoteSkeleton/QuoteSkeleton.types.ts +0 -5
- package/src/components/QuoteSkeleton/QuoteSummarySkeleton.styles.ts +0 -57
- package/src/components/QuoteSkeleton/QuoteSummarySkeleton.tsx +0 -76
- package/src/components/QuoteSkeleton/QuoteSummarySkeleton.types.ts +0 -6
- package/src/components/QuoteSkeleton/StepSkeleton.styles.ts +0 -33
- package/src/components/QuoteSkeleton/StepSkeleton.tsx +0 -44
- package/src/components/QuoteSkeleton/StepSkeleton.types.ts +0 -1
- package/src/components/QuoteSkeleton/index.ts +0 -3
- package/src/components/QuoteWarningsAndErrors/HighValueLossWarningModal.tsx +0 -107
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.ts +0 -74
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.tsx +0 -103
- package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.ts +0 -25
- package/src/components/QuoteWarningsAndErrors/SlippageWariningModal.tsx +0 -77
- package/src/components/QuoteWarningsAndErrors/UnknownPriceWarningModal.tsx +0 -38
- package/src/components/QuoteWarningsAndErrors/index.ts +0 -1
- package/src/containers/App/App.styles.ts +0 -18
- package/src/containers/App/App.tsx +0 -52
- package/src/containers/App/index.ts +0 -1
- package/src/containers/QuoteInfo/QuoteInfo.styles.ts +0 -31
- package/src/containers/QuoteInfo/QuoteInfo.tsx +0 -99
- package/src/containers/QuoteInfo/QuoteInfo.types.ts +0 -20
- package/src/containers/QuoteInfo/index.ts +0 -1
- package/src/containers/Wallets/Wallets.types.ts +0 -12
- package/src/containers/Wallets/index.ts +0 -1
- package/src/containers/Widget/Widget.tsx +0 -19
- package/src/containers/Widget/Widget.types.ts +0 -5
- package/src/containers/Widget/index.ts +0 -2
- package/src/containers/WidgetInfo/WidgetInfo.helpers.ts +0 -64
- package/src/containers/WidgetInfo/WidgetInfo.tsx +0 -62
- package/src/containers/WidgetInfo/WidgetInfo.types.ts +0 -21
- package/src/containers/WidgetInfo/index.ts +0 -1
- package/src/containers/WidgetProvider/WidgetProvider.tsx +0 -28
- package/src/containers/WidgetProvider/WidgetProvider.types.ts +0 -7
- package/src/containers/WidgetProvider/index.ts +0 -1
- package/src/hooks/useConfirmSwap/index.ts +0 -1
- package/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts +0 -172
- package/src/hooks/useConfirmSwap/useConfirmSwap.ts +0 -137
- package/src/hooks/useConfirmSwap/useConfirmSwap.types.ts +0 -19
- package/src/hooks/useForceAutoConnect.ts +0 -27
- package/src/store/AppStore.tsx +0 -41
- package/src/store/slices/settings.ts +0 -168
- package/src/types/quote.ts +0 -107
- package/src/utils/quote.ts +0 -338
package/CHANGELOG.md
CHANGED
|
@@ -1,116 +1,4 @@
|
|
|
1
|
-
# 0.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* add initial state with props in app store and fix bug of passing liquidity sources via config ([5d50d0f](https://github.com/yeager-eren/rango-client/commit/5d50d0fa18c0519a9464bb205684ecdaf881d936))
|
|
7
|
-
* add presets from v1 ([c7d75df](https://github.com/yeager-eren/rango-client/commit/c7d75dff53f02d6df0a399bb0e58462af707a73e))
|
|
8
|
-
* add reject modal for experimental suggest chain ([25be5ae](https://github.com/yeager-eren/rango-client/commit/25be5aec8791f46ff9b93b052a9d5fb5d568e167))
|
|
9
|
-
* add suggest and connect to wallet for experimental chain ([0002e69](https://github.com/yeager-eren/rango-client/commit/0002e69da90c58a00cbd50ca8ad601a12ed0e77a))
|
|
10
|
-
* adding lingui to ui and embedded packages ([efed0d6](https://github.com/yeager-eren/rango-client/commit/efed0d6da437bfd472f26a280adc55da1151966a))
|
|
11
|
-
* address sub setting issues ([e5ee97d](https://github.com/yeager-eren/rango-client/commit/e5ee97dbcf78eb59534b21e84e8785223b8a658d))
|
|
12
|
-
* build error on embeded ([bd1246c](https://github.com/yeager-eren/rango-client/commit/bd1246c548c6d056a24a131891161107cf615be4))
|
|
13
|
-
* comments ([79e5c8a](https://github.com/yeager-eren/rango-client/commit/79e5c8a5e204f0a3c006e0aa6174ed440c424dcd))
|
|
14
|
-
* convert string to i18n function ([fc52b8f](https://github.com/yeager-eren/rango-client/commit/fc52b8f92ea1071a3dc1cb9c7691854854ba9a80))
|
|
15
|
-
* error in wallet-connect projectId ([6ae70ae](https://github.com/yeager-eren/rango-client/commit/6ae70aea325432e99a22d2969901698f09c72bdf))
|
|
16
|
-
* fallback to empty string if image is null ([182b745](https://github.com/yeager-eren/rango-client/commit/182b74526348a3d8e78b4ad4f1488174e3139cb2))
|
|
17
|
-
* fix bug in routing when usd value is unknown ([df23685](https://github.com/yeager-eren/rango-client/commit/df23685d63de6dbe5a3e591ef619d845573e0657))
|
|
18
|
-
* fix bug of duplicate modals for wallet connect ([efb5482](https://github.com/yeager-eren/rango-client/commit/efb54827fd51e6c6c8f42c6abf33c3d7610755e8))
|
|
19
|
-
* fix dynamic content issue in crowdin ([481ce06](https://github.com/yeager-eren/rango-client/commit/481ce06496353fce094496da21edc98dac61e1b2))
|
|
20
|
-
* fix emitting failed event in swap execution ([cedc535](https://github.com/yeager-eren/rango-client/commit/cedc53523dc8ddc5f339b4da6afa822058bd760d))
|
|
21
|
-
* fix HMR for widget and playground ([8524820](https://github.com/yeager-eren/rango-client/commit/8524820f10cf0b8921f3db0c4f620ff98daa4103))
|
|
22
|
-
* fix lingui version ([b7de08b](https://github.com/yeager-eren/rango-client/commit/b7de08b457314192665b9d3afa809e63ecd311a8))
|
|
23
|
-
* fix minor bugs ([932dbcc](https://github.com/yeager-eren/rango-client/commit/932dbcc19d648f0e409a2404f29bf1077b58cfe3))
|
|
24
|
-
* fix performance issues on token selector ([ea0b1be](https://github.com/yeager-eren/rango-client/commit/ea0b1be71c90befc0b8ad2f19e56122b145227d6))
|
|
25
|
-
* fix quote info bugs ([3668d84](https://github.com/yeager-eren/rango-client/commit/3668d84a43e3d6055b8ff133f546aabce6fcf616))
|
|
26
|
-
* fix retry logic in failed swaps ([2efcef1](https://github.com/yeager-eren/rango-client/commit/2efcef1779a33aa0ea65d4f17f3d443c218e2be1))
|
|
27
|
-
* fix settings page issues ([c7aa12f](https://github.com/yeager-eren/rango-client/commit/c7aa12fa1731ad9a50dd6ea2fa362e6d4f2ccdb8))
|
|
28
|
-
* fix wallet button state in swap details page ([ad57603](https://github.com/yeager-eren/rango-client/commit/ad57603885968b2792ed382dc80a3862dc0eebde))
|
|
29
|
-
* fix widget navigation bugs ([bfefdff](https://github.com/yeager-eren/rango-client/commit/bfefdff39e758b80fc5637c00ad32e3b36b5dcf0))
|
|
30
|
-
* fix zustand persistance issue with ssr ([4ca2a1f](https://github.com/yeager-eren/rango-client/commit/4ca2a1ff7eb596bb5ff049fe81daf6e8efbfd1a8))
|
|
31
|
-
* Fixed colorpicker ([d821340](https://github.com/yeager-eren/rango-client/commit/d821340fc3f5df07ccbfc3555ae4d7dba0cad49b))
|
|
32
|
-
* fixed onMouseLeave in tooltip ([13dc667](https://github.com/yeager-eren/rango-client/commit/13dc6673f4f6504abb1de2c277ae6559f0dfbb2c))
|
|
33
|
-
* handle safe wallet in widget ([52fcca4](https://github.com/yeager-eren/rango-client/commit/52fcca49315f7e2edb4655ae7b9cd0792c2800d7))
|
|
34
|
-
* improve widget for smaller screens ([75a3107](https://github.com/yeager-eren/rango-client/commit/75a310770ece2969833dda2789bee5b8ccda166e))
|
|
35
|
-
* input outlines & blockchains displayNames ([079afc1](https://github.com/yeager-eren/rango-client/commit/079afc1c9e84d35de078a87121a83777176c3bd4))
|
|
36
|
-
* not-found position in swap history ([245fa45](https://github.com/yeager-eren/rango-client/commit/245fa453eee44196633d9549f2b0cfbaaa79ae11))
|
|
37
|
-
* reading and showing blockchains/tokens based on config ([94e3107](https://github.com/yeager-eren/rango-client/commit/94e31071c872b751de2e91ccb6580365dc79402a))
|
|
38
|
-
* reading directly from specific path can break import for users ([8070e55](https://github.com/yeager-eren/rango-client/commit/8070e551cab44e6ea9b47c9ca6fca9acf9ce19bb))
|
|
39
|
-
* reset position of scroll in chain/token selector ([f395d89](https://github.com/yeager-eren/rango-client/commit/f395d89914ef826fc1cef5be376b39bd011f8274))
|
|
40
|
-
* skip showing drawer for fast wallet connecting ([4fd1065](https://github.com/yeager-eren/rango-client/commit/4fd1065deff5c5880fa4d06fe02b19b9d2b3e921))
|
|
41
|
-
* Some functions were transferred to helper ([7d5756f](https://github.com/yeager-eren/rango-client/commit/7d5756fc476728e84b16300102918542520983a7))
|
|
42
|
-
* some polishment on playground ([cf17f9e](https://github.com/yeager-eren/rango-client/commit/cf17f9e2ac2efc9467c4f550e09eaf19170bbbf0))
|
|
43
|
-
* translate bug ([3813ee6](https://github.com/yeager-eren/rango-client/commit/3813ee68be6d942fd62af5543a834d9ee682edaf))
|
|
44
|
-
* update blockchain category icons ([5ffd1ac](https://github.com/yeager-eren/rango-client/commit/5ffd1ac9bbe4cee26500c010718f4f530b1349f6))
|
|
45
|
-
* update classNames to new pattern for conflict prevention ([3c89278](https://github.com/yeager-eren/rango-client/commit/3c8927893381774f8bc8dc5b049ffdfccea1ffe4))
|
|
46
|
-
* update rango-types and fix notification bugs ([993f185](https://github.com/yeager-eren/rango-client/commit/993f185e0b8c5e5e15a2c65ba2d85d1f9c8daa90))
|
|
47
|
-
* update widget affiliate config ([0655dc1](https://github.com/yeager-eren/rango-client/commit/0655dc1949e6e8a9b1efacb71e3f66ac3d1e30fb))
|
|
48
|
-
* updating query params ([79cacb2](https://github.com/yeager-eren/rango-client/commit/79cacb2fe88cd05c4bc6bcd755cf31e31f4ac4c1))
|
|
49
|
-
* widget config for default amount/chain/token ([b101067](https://github.com/yeager-eren/rango-client/commit/b1010672a43e23145bd4ab798016cb440451bf09))
|
|
50
|
-
* **widget:** Showing history for selected blockchain if a blockchain selected from main list ([7b77dec](https://github.com/yeager-eren/rango-client/commit/7b77dec2c0417948bbdd4844006ce2d4ea811811))
|
|
51
|
-
* zustand store in context ([a31c34d](https://github.com/yeager-eren/rango-client/commit/a31c34d379173ab2b4a14beb4fddd7ac0402b236))
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### Features
|
|
55
|
-
|
|
56
|
-
* add animation for modal ([ca69ab6](https://github.com/yeager-eren/rango-client/commit/ca69ab60d68a3844b031556e5f30502c5c752dd9))
|
|
57
|
-
* add dark/light theme to playground ([01c4c45](https://github.com/yeager-eren/rango-client/commit/01c4c45cf42a5b9a945e687fbaf3cb141ca19d13))
|
|
58
|
-
* add langugage section to Playground ([c2deaec](https://github.com/yeager-eren/rango-client/commit/c2deaec91813f7e5cc4bccc2be78f5c297cc1a2d))
|
|
59
|
-
* add notification to widget ([5ca2b63](https://github.com/yeager-eren/rango-client/commit/5ca2b63b87f7941a4b347af596fd5786ea32ba42))
|
|
60
|
-
* add project id as a external value ([0c80404](https://github.com/yeager-eren/rango-client/commit/0c80404a8cacb6c5b0338dea1e416b0b11db254b))
|
|
61
|
-
* add route skeleton component ([5cbdc3d](https://github.com/yeager-eren/rango-client/commit/5cbdc3d186caf88da9ddf0a83d27e0dcae628340))
|
|
62
|
-
* add skeleton for wallet-page & showing its error ([ea922d6](https://github.com/yeager-eren/rango-client/commit/ea922d6291210b6dec569d20f0f623b7449cc7c0))
|
|
63
|
-
* add state of wallets' details to useWidget ([2a59055](https://github.com/yeager-eren/rango-client/commit/2a590551cc0a3d663fd9901e125890ff1386c0aa))
|
|
64
|
-
* add state wallet modal ([eced597](https://github.com/yeager-eren/rango-client/commit/eced59790314c2180c5677e9de6c21dfd0dd7129))
|
|
65
|
-
* add widget events and refactor swap execution events ([0d76806](https://github.com/yeager-eren/rango-client/commit/0d7680693dd77439de38cd0b20f263f6ae8cceb0))
|
|
66
|
-
* change colors theme ([007261e](https://github.com/yeager-eren/rango-client/commit/007261e8ad5f86dd72698ec0826cdcffbf74dbb0))
|
|
67
|
-
* consider internalswaps in second bestRoute & select wallets ([a2d9510](https://github.com/yeager-eren/rango-client/commit/a2d9510288b534e03d6cf2ee3ed60b895607323f))
|
|
68
|
-
* custom colors for presets (style sidebar) ([5268162](https://github.com/yeager-eren/rango-client/commit/52681624732e542f9841f5963d61e7f9778c78cd))
|
|
69
|
-
* design history item page ([547f0b2](https://github.com/yeager-eren/rango-client/commit/547f0b2ade03a31f00a88faf4659f97a9f037abd))
|
|
70
|
-
* don't show safe when not injected ([3e32420](https://github.com/yeager-eren/rango-client/commit/3e324208d9dcc8d11267a37bf6df84547975c1bf))
|
|
71
|
-
* export meta and additional logics from useWidget ([5c8fbc5](https://github.com/yeager-eren/rango-client/commit/5c8fbc5f25979409895b4592b62416f6bd7b82b8))
|
|
72
|
-
* Get Wallet Connect project id from config ([9fb30b4](https://github.com/yeager-eren/rango-client/commit/9fb30b4b1a83e2005bbf42553298f24b1e278e1c))
|
|
73
|
-
* handle wallet referrer in widget ([1073cd2](https://github.com/yeager-eren/rango-client/commit/1073cd2051f6819713a38f0c1e5c3f47ab0a7d53))
|
|
74
|
-
* Header redesign ([4679400](https://github.com/yeager-eren/rango-client/commit/46794001b75f86e7dcce3eade305b54f7a18a320))
|
|
75
|
-
* history list page loading ([fd1e888](https://github.com/yeager-eren/rango-client/commit/fd1e88832c828b89ceca25096551c308044ef4ae))
|
|
76
|
-
* implement default chain/token/amount section to playground ([5649fb9](https://github.com/yeager-eren/rango-client/commit/5649fb96f6bdd7de1f78386b7960cdf1c83fb8ad))
|
|
77
|
-
* implement feature disabling in widget config ([c9b5705](https://github.com/yeager-eren/rango-client/commit/c9b5705077ad900c8cbb2b76f5642ca79f54fd86))
|
|
78
|
-
* implement general style options for playground ([237c4b6](https://github.com/yeager-eren/rango-client/commit/237c4b65eccd725372e4fbd8e9ec0cd50496c471))
|
|
79
|
-
* implement liquidity sources for playground ([84ed7f0](https://github.com/yeager-eren/rango-client/commit/84ed7f05369b2e7bdc85b8c81b7ffa62a6d49a39))
|
|
80
|
-
* implement pin tokens in From and To ([c849db2](https://github.com/yeager-eren/rango-client/commit/c849db2083022587960a5d1a4dc64c5f696e07a5))
|
|
81
|
-
* implement playgroud wallet section ([8cf0ecf](https://github.com/yeager-eren/rango-client/commit/8cf0ecfacfe0444e961366a8b3d201c5b245a555))
|
|
82
|
-
* implement route errors/warnings ([6f6d1d7](https://github.com/yeager-eren/rango-client/commit/6f6d1d7e5723d680b44b6248795407deab5ec656))
|
|
83
|
-
* implement supportedBlockchain in playground ([f960036](https://github.com/yeager-eren/rango-client/commit/f960036099415b8a0d08e9118ab3636e802ca63a))
|
|
84
|
-
* implement supportedTokens for playground ([f0967cb](https://github.com/yeager-eren/rango-client/commit/f0967cb0b0b0cc1d41a98ae3f845c3975495a9b8))
|
|
85
|
-
* implement Themes section in Style for playground ([c32bf10](https://github.com/yeager-eren/rango-client/commit/c32bf10ee0dded5a92a33305a06202435eb55b6b))
|
|
86
|
-
* implement WidgetProvider & useWidget for accessing specific widget data ([65f1824](https://github.com/yeager-eren/rango-client/commit/65f1824720d5d7d07c3d42c14285a704bd1da364))
|
|
87
|
-
* implemnting Wallet & Tooltip ([b7d28f9](https://github.com/yeager-eren/rango-client/commit/b7d28f9fb2f8b3648f9e88b812002a33768570de))
|
|
88
|
-
* keep user history for selected chains ([c27a06d](https://github.com/yeager-eren/rango-client/commit/c27a06d76734c9c0e2b97c62ce83464f9b684547))
|
|
89
|
-
* loading for bridges and exchanges ([209c388](https://github.com/yeager-eren/rango-client/commit/209c388dbf21cba8e72e922081693562ad2060c6))
|
|
90
|
-
* loading swap history item ([5449a44](https://github.com/yeager-eren/rango-client/commit/5449a44894833587faafd9fce11c603894763b3f))
|
|
91
|
-
* re-design modal & drawer & add message box ([cb9751e](https://github.com/yeager-eren/rango-client/commit/cb9751ee3959576cf3a3f14bbe7798926dd74360))
|
|
92
|
-
* re-design switch & radio component ([03357b6](https://github.com/yeager-eren/rango-client/commit/03357b65dd1406414f25d0b94ce3c90abd51ceb4))
|
|
93
|
-
* re-implement history list page ([9f2753e](https://github.com/yeager-eren/rango-client/commit/9f2753e43acc56a750daeb95095a9bcc2ed1642c))
|
|
94
|
-
* redesign of connect wallet page ([7b83f9d](https://github.com/yeager-eren/rango-client/commit/7b83f9d5e4660198f27043d03322a86af131b88c))
|
|
95
|
-
* redesign setting page ([77cf408](https://github.com/yeager-eren/rango-client/commit/77cf40835c423aa992bf2adb7a2af5e997027121))
|
|
96
|
-
* redesign skeleton & add swap to/from swap page ([b529e98](https://github.com/yeager-eren/rango-client/commit/b529e9859175bb9bf76b84e7885d00d2a1e3c21a))
|
|
97
|
-
* redesign sub setting page ([c028003](https://github.com/yeager-eren/rango-client/commit/c028003900b1aac8ae6e687a3f42a8519231bb01))
|
|
98
|
-
* refinement home page ([2009955](https://github.com/yeager-eren/rango-client/commit/2009955f117395f5cfdbc297b57b0f6a7a62d813))
|
|
99
|
-
* setup crowdin localization ([4642e6a](https://github.com/yeager-eren/rango-client/commit/4642e6a60e647dfc0953e6f7aaf519b59d415d2e))
|
|
100
|
-
* setup lingui for multi-language in widget ([a3f1331](https://github.com/yeager-eren/rango-client/commit/a3f1331def487989a5717335b062dd9ef45876ad))
|
|
101
|
-
* support experimental features ([4261610](https://github.com/yeager-eren/rango-client/commit/426161044adc583c3339a53ab58405b8f96dfee3))
|
|
102
|
-
* support for external wallets ([0db170d](https://github.com/yeager-eren/rango-client/commit/0db170d28b7052e5a750d270549d9550c52789de))
|
|
103
|
-
* support multi languages ([551e8ef](https://github.com/yeager-eren/rango-client/commit/551e8ef93786a92a950bd54a2b8af24bad0259a1))
|
|
104
|
-
* sync swap process with notifications ([8375c19](https://github.com/yeager-eren/rango-client/commit/8375c1976a8bf9be189669f74252cb7e8da95ef9))
|
|
105
|
-
* token/chain selector problems ([52ac45e](https://github.com/yeager-eren/rango-client/commit/52ac45e8471f18c96277366d1ce29eb0b4492b5e))
|
|
106
|
-
* update confirm swap and confirm wallets components ([08c0f62](https://github.com/yeager-eren/rango-client/commit/08c0f622d0e691868848084d46a8df110bc9fc37))
|
|
107
|
-
* widget colors! ([285b1ca](https://github.com/yeager-eren/rango-client/commit/285b1ca4811ada950a3dbcf581b0c915ba6d9c6e))
|
|
108
|
-
* **widget-v2:** redesign button ([db4f8e8](https://github.com/yeager-eren/rango-client/commit/db4f8e8f3984319534a83864ef9ce7394da959f1))
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
### Reverts
|
|
112
|
-
|
|
113
|
-
* Revert "support for rango-types cjs format" ([4f5f55f](https://github.com/yeager-eren/rango-client/commit/4f5f55f96e8daa329588b932b19c291c30f339c4))
|
|
1
|
+
# [0.19.0](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.17.0...widget-embedded@0.19.0) (2023-12-24)
|
|
114
2
|
|
|
115
3
|
|
|
116
4
|
|
package/dist/QueueManager.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
declare function QueueManager(props: PropsWithChildren<{
|
|
4
|
-
apiKey?: string;
|
|
5
|
-
}>): React.JSX.Element;
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
declare function QueueManager(props: PropsWithChildren): React.JSX.Element;
|
|
6
3
|
export default QueueManager;
|
|
7
4
|
//# sourceMappingURL=QueueManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueueManager.d.ts","sourceRoot":"","sources":["../src/QueueManager.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueueManager.d.ts","sourceRoot":"","sources":["../src/QueueManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAmB1D,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAoF7C;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { WidgetConfig } from './types';
|
|
2
|
+
import type { ProvidersOptions } from './utils/providers';
|
|
3
|
+
import type { EventHandler } from '@rango-dev/wallets-react';
|
|
4
|
+
import type { PropsWithChildren } from 'react';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
type OnConnectHandler = (key: string) => void;
|
|
7
|
+
interface WidgetContextInterface {
|
|
8
|
+
onConnectWallet(handler: OnConnectHandler): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetContext: React.Context<WidgetContextInterface>;
|
|
11
|
+
export declare function WidgetWallets(props: PropsWithChildren<{
|
|
12
|
+
providers: WidgetConfig['wallets'];
|
|
13
|
+
options?: ProvidersOptions;
|
|
14
|
+
onUpdateState?: EventHandler;
|
|
15
|
+
}>): React.JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Wallets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wallets.d.ts","sourceRoot":"","sources":["../src/Wallets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,KAAgC,MAAM,OAAO,CAAC;AAUrD,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;AAC9C,UAAU,sBAAsB;IAC9B,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAClD;AAED,eAAO,MAAM,aAAa,uCAIxB,CAAC;AAEH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,iBAAiB,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,aAAa,CAAC,EAAE,YAAY,CAAC;CAC9B,CAAC,qBA+EH"}
|
package/dist/Widget.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WidgetConfig } from './types';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export type WidgetProps = {
|
|
5
|
+
config?: WidgetConfig;
|
|
6
|
+
};
|
|
7
|
+
export declare function Main(props: PropsWithChildren<WidgetProps>): React.JSX.Element;
|
|
8
|
+
export declare function Widget(props: PropsWithChildren<WidgetProps>): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Widget.d.ts","sourceRoot":"","sources":["../src/Widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAmD,MAAM,OAAO,CAAC;AAiCxE,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,wBAAgB,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,qBAoDzD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,qBAsB3D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WidgetConfig } from '../types';
|
|
1
2
|
import type { WalletType } from '@rango-dev/wallets-shared';
|
|
2
3
|
import type { PropsWithChildren } from 'react';
|
|
3
4
|
import React from 'react';
|
|
@@ -5,5 +6,6 @@ export declare function AppRouter({ children, ...props }: PropsWithChildren & {
|
|
|
5
6
|
lastConnectedWallet: string;
|
|
6
7
|
disconnectedWallet: WalletType | undefined;
|
|
7
8
|
clearDisconnectedWallet: () => void;
|
|
9
|
+
config: WidgetConfig | undefined;
|
|
8
10
|
}): React.JSX.Element;
|
|
9
11
|
//# sourceMappingURL=AppRouter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../src/components/AppRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,
|
|
1
|
+
{"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../src/components/AppRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,KAA4B,MAAM,OAAO,CAAC;AAgCjD,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,GAAG;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,UAAU,GAAG,SAAS,CAAC;IAC3C,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC;CAClC,qBAsBA"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import type { WidgetConfig } from '../types';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
|
|
3
|
+
interface PropTypes {
|
|
4
|
+
config?: WidgetConfig;
|
|
5
|
+
}
|
|
6
|
+
export declare function AppRoutes(props: PropTypes): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
7
|
+
export {};
|
|
3
8
|
//# sourceMappingURL=AppRoutes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRoutes.d.ts","sourceRoot":"","sources":["../../src/components/AppRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AppRoutes.d.ts","sourceRoot":"","sources":["../../src/components/AppRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,UAAU,SAAS;IACjB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,6EAmFzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockchainsSection.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsSection/BlockchainsSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"BlockchainsSection.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsSection/BlockchainsSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAU5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,qBA+ElD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockchainsSection.styles.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsSection/BlockchainsSection.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"BlockchainsSection.styles.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsSection/BlockchainsSection.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIpB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { Step } from '@rango-dev/ui/dist/widget/ui/src/components/BestRoute/BestRoute.types';
|
|
1
2
|
import type { BestRouteResponse, BlockchainMeta } from 'rango-sdk';
|
|
2
|
-
export declare function
|
|
3
|
+
export declare function formatBestRoute(bestRoute: BestRouteResponse, blockchains: BlockchainMeta[]): Step[] | undefined;
|
|
4
|
+
export declare function getRequiredWallets(route: BestRouteResponse | null): string[];
|
|
3
5
|
export declare function isValidAddress(chain: BlockchainMeta, address: string): boolean;
|
|
4
6
|
//# sourceMappingURL=ConfirmWallets.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmWallets.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmWalletsModal/ConfirmWallets.helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfirmWallets.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmWalletsModal/ConfirmWallets.helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uEAAuE,CAAC;AAClG,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAWnE,wBAAgB,eAAe,CAC7B,SAAS,EAAE,iBAAiB,EAC5B,WAAW,EAAE,cAAc,EAAE,GAC5B,IAAI,EAAE,GAAG,SAAS,CA8CpB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,GAAG,MAAM,EAAE,CAgB5E;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,MAAM,GACd,OAAO,CAIT"}
|