@rango-dev/widget-embedded 0.1.10-next.82 → 0.1.10-next.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +1 -0
- package/dist/App.d.ts.map +1 -1
- package/dist/components/BottomLogo.d.ts +1 -0
- package/dist/components/BottomLogo.d.ts.map +1 -1
- package/dist/components/ChangeSlippageButton.d.ts +1 -0
- package/dist/components/ChangeSlippageButton.d.ts.map +1 -1
- package/dist/components/Header.d.ts +1 -0
- package/dist/components/Header.d.ts.map +1 -1
- package/dist/components/HeaderButtons.d.ts +1 -0
- package/dist/components/HeaderButtons.d.ts.map +1 -1
- package/dist/components/Layout.d.ts +1 -0
- package/dist/components/Layout.d.ts.map +1 -1
- package/dist/components/TokenInfo.d.ts +1 -0
- package/dist/components/TokenInfo.d.ts.map +1 -1
- package/dist/components/warnings/BalanceWarnings.d.ts +1 -0
- package/dist/components/warnings/BalanceWarnings.d.ts.map +1 -1
- package/dist/components/warnings/ConfirmSwapExtraMessages.d.ts +1 -0
- package/dist/components/warnings/ConfirmSwapExtraMessages.d.ts.map +1 -1
- package/dist/components/warnings/HighSlippageWarning.d.ts +1 -0
- package/dist/components/warnings/HighSlippageWarning.d.ts.map +1 -1
- package/dist/components/warnings/MinRequiredSlippage.d.ts +1 -0
- package/dist/components/warnings/MinRequiredSlippage.d.ts.map +1 -1
- package/dist/lib.d.ts.map +1 -1
- package/dist/pages/ConfirmSwapPage.d.ts +1 -0
- package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
- package/dist/pages/ConfirmWalletsPage.d.ts +1 -0
- package/dist/pages/ConfirmWalletsPage.d.ts.map +1 -1
- package/dist/pages/HistoryPage.d.ts +1 -0
- package/dist/pages/HistoryPage.d.ts.map +1 -1
- package/dist/pages/Home.d.ts +1 -0
- package/dist/pages/Home.d.ts.map +1 -1
- package/dist/pages/LiquiditySourcesPage.d.ts +1 -0
- package/dist/pages/LiquiditySourcesPage.d.ts.map +1 -1
- package/dist/pages/SelectChainPage.d.ts +1 -0
- package/dist/pages/SelectChainPage.d.ts.map +1 -1
- package/dist/pages/SelectTokenPage.d.ts +1 -0
- package/dist/pages/SelectTokenPage.d.ts.map +1 -1
- package/dist/pages/SettingsPage.d.ts +1 -0
- package/dist/pages/SettingsPage.d.ts.map +1 -1
- package/dist/pages/SwapDetailsPage.d.ts +1 -0
- package/dist/pages/SwapDetailsPage.d.ts.map +1 -1
- package/dist/pages/WalletsPage.d.ts +1 -0
- package/dist/pages/WalletsPage.d.ts.map +1 -1
- package/dist/swapBox.d.ts.map +1 -1
- package/dist/widget-embedded.cjs.development.js +1 -1
- package/dist/widget-embedded.cjs.development.js.map +1 -1
- package/dist/widget-embedded.cjs.production.min.js +1 -1
- package/dist/widget-embedded.cjs.production.min.js.map +1 -1
- package/dist/widget-embedded.esm.js +2 -2
- package/dist/widget-embedded.esm.js.map +1 -1
- package/package.json +4 -4
- package/src/App.tsx +2 -2
- package/src/lib.tsx +2 -1
- package/src/store/bestRoute.ts +1 -1
- package/src/swapBox.tsx +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.1.10-next.
|
|
3
|
+
"version": "0.1.10-next.84",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"trailingComma": "es5"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@rango-dev/provider-all": "^0.1.11-next.
|
|
29
|
+
"@rango-dev/provider-all": "^0.1.11-next.76",
|
|
30
30
|
"@rango-dev/ui": "^0.1.10-next.75",
|
|
31
|
-
"@rango-dev/wallets-core": "^0.1.11-next.
|
|
31
|
+
"@rango-dev/wallets-core": "^0.1.11-next.77",
|
|
32
32
|
"bignumber.js": "^9.1.1",
|
|
33
33
|
"immer": "^9.0.19",
|
|
34
34
|
"mitt": "^3.0.0",
|
|
35
35
|
"parcel": "^2.8.0",
|
|
36
|
-
"rango-sdk": "^0.1.
|
|
36
|
+
"rango-sdk": "^0.1.17",
|
|
37
37
|
"react": "^18.2.0",
|
|
38
38
|
"react-dom": "^18.2.0",
|
|
39
39
|
"react-router-dom": "^6.8.0",
|
package/src/App.tsx
CHANGED
|
@@ -6,12 +6,13 @@ import './app.css';
|
|
|
6
6
|
import { Events, Provider } from '@rango-dev/wallets-core';
|
|
7
7
|
import { allProviders } from '@rango-dev/provider-all';
|
|
8
8
|
import { EventHandler } from '@rango-dev/wallets-core/dist/wallet';
|
|
9
|
-
import {
|
|
9
|
+
import { Network } from '@rango-dev/wallets-shared';
|
|
10
10
|
import { prepareAccountsForWalletStore, walletAndSupportedChainsNames } from './utils/wallets';
|
|
11
11
|
import { useWalletsStore } from './store/wallets';
|
|
12
12
|
import { Layout } from './components/Layout';
|
|
13
13
|
import { globalStyles } from './globalStyles';
|
|
14
14
|
import { useTheme } from './hooks/useTheme';
|
|
15
|
+
import { isEvmBlockchain } from 'rango-sdk';
|
|
15
16
|
|
|
16
17
|
const providers = allProviders();
|
|
17
18
|
interface Token {
|
|
@@ -40,7 +41,6 @@ export function App() {
|
|
|
40
41
|
const disconnectWallet = useWalletsStore.use.disconnectWallet();
|
|
41
42
|
const connectWallet = useWalletsStore.use.connectWallet();
|
|
42
43
|
const evmBasedChainNames = blockchains
|
|
43
|
-
//@ts-ignore
|
|
44
44
|
.filter(isEvmBlockchain)
|
|
45
45
|
.map((chain) => chain.name);
|
|
46
46
|
|
package/src/lib.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { useMetaStore } from './store/meta';
|
|
|
5
5
|
import { Events, Provider } from '@rango-dev/wallets-core';
|
|
6
6
|
import { allProviders } from '@rango-dev/provider-all';
|
|
7
7
|
import { EventHandler } from '@rango-dev/wallets-core/dist/wallet';
|
|
8
|
-
import {
|
|
8
|
+
import { Network } from '@rango-dev/wallets-shared';
|
|
9
9
|
import {
|
|
10
10
|
prepareAccountsForWalletStore,
|
|
11
11
|
walletAndSupportedChainsNames,
|
|
@@ -14,6 +14,7 @@ import { useWalletsStore } from './store/wallets';
|
|
|
14
14
|
import { Layout } from './components/Layout';
|
|
15
15
|
import { globalStyles } from './globalStyles';
|
|
16
16
|
import { useTheme } from './hooks/useTheme';
|
|
17
|
+
import { isEvmBlockchain } from 'rango-sdk';
|
|
17
18
|
|
|
18
19
|
const providers = allProviders();
|
|
19
20
|
|
package/src/store/bestRoute.ts
CHANGED
package/src/swapBox.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { useMetaStore } from './store/meta';
|
|
|
5
5
|
import { Events, Provider } from '@rango-dev/wallets-core';
|
|
6
6
|
import { allProviders } from '@rango-dev/provider-all';
|
|
7
7
|
import { EventHandler } from '@rango-dev/wallets-core/dist/wallet';
|
|
8
|
-
import {
|
|
8
|
+
import { Network } from '@rango-dev/wallets-shared';
|
|
9
9
|
import {
|
|
10
10
|
prepareAccountsForWalletStore,
|
|
11
11
|
walletAndSupportedChainsNames,
|
|
@@ -14,6 +14,7 @@ import { useWalletsStore } from './store/wallets';
|
|
|
14
14
|
import { Layout } from './components/Layout';
|
|
15
15
|
import { globalStyles } from './globalStyles';
|
|
16
16
|
import { useTheme } from './hooks/useTheme';
|
|
17
|
+
import { isEvmBlockchain } from 'rango-sdk';
|
|
17
18
|
|
|
18
19
|
const providers = allProviders();
|
|
19
20
|
|