@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.
Files changed (55) hide show
  1. package/dist/App.d.ts +1 -0
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/components/BottomLogo.d.ts +1 -0
  4. package/dist/components/BottomLogo.d.ts.map +1 -1
  5. package/dist/components/ChangeSlippageButton.d.ts +1 -0
  6. package/dist/components/ChangeSlippageButton.d.ts.map +1 -1
  7. package/dist/components/Header.d.ts +1 -0
  8. package/dist/components/Header.d.ts.map +1 -1
  9. package/dist/components/HeaderButtons.d.ts +1 -0
  10. package/dist/components/HeaderButtons.d.ts.map +1 -1
  11. package/dist/components/Layout.d.ts +1 -0
  12. package/dist/components/Layout.d.ts.map +1 -1
  13. package/dist/components/TokenInfo.d.ts +1 -0
  14. package/dist/components/TokenInfo.d.ts.map +1 -1
  15. package/dist/components/warnings/BalanceWarnings.d.ts +1 -0
  16. package/dist/components/warnings/BalanceWarnings.d.ts.map +1 -1
  17. package/dist/components/warnings/ConfirmSwapExtraMessages.d.ts +1 -0
  18. package/dist/components/warnings/ConfirmSwapExtraMessages.d.ts.map +1 -1
  19. package/dist/components/warnings/HighSlippageWarning.d.ts +1 -0
  20. package/dist/components/warnings/HighSlippageWarning.d.ts.map +1 -1
  21. package/dist/components/warnings/MinRequiredSlippage.d.ts +1 -0
  22. package/dist/components/warnings/MinRequiredSlippage.d.ts.map +1 -1
  23. package/dist/lib.d.ts.map +1 -1
  24. package/dist/pages/ConfirmSwapPage.d.ts +1 -0
  25. package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
  26. package/dist/pages/ConfirmWalletsPage.d.ts +1 -0
  27. package/dist/pages/ConfirmWalletsPage.d.ts.map +1 -1
  28. package/dist/pages/HistoryPage.d.ts +1 -0
  29. package/dist/pages/HistoryPage.d.ts.map +1 -1
  30. package/dist/pages/Home.d.ts +1 -0
  31. package/dist/pages/Home.d.ts.map +1 -1
  32. package/dist/pages/LiquiditySourcesPage.d.ts +1 -0
  33. package/dist/pages/LiquiditySourcesPage.d.ts.map +1 -1
  34. package/dist/pages/SelectChainPage.d.ts +1 -0
  35. package/dist/pages/SelectChainPage.d.ts.map +1 -1
  36. package/dist/pages/SelectTokenPage.d.ts +1 -0
  37. package/dist/pages/SelectTokenPage.d.ts.map +1 -1
  38. package/dist/pages/SettingsPage.d.ts +1 -0
  39. package/dist/pages/SettingsPage.d.ts.map +1 -1
  40. package/dist/pages/SwapDetailsPage.d.ts +1 -0
  41. package/dist/pages/SwapDetailsPage.d.ts.map +1 -1
  42. package/dist/pages/WalletsPage.d.ts +1 -0
  43. package/dist/pages/WalletsPage.d.ts.map +1 -1
  44. package/dist/swapBox.d.ts.map +1 -1
  45. package/dist/widget-embedded.cjs.development.js +1 -1
  46. package/dist/widget-embedded.cjs.development.js.map +1 -1
  47. package/dist/widget-embedded.cjs.production.min.js +1 -1
  48. package/dist/widget-embedded.cjs.production.min.js.map +1 -1
  49. package/dist/widget-embedded.esm.js +2 -2
  50. package/dist/widget-embedded.esm.js.map +1 -1
  51. package/package.json +4 -4
  52. package/src/App.tsx +2 -2
  53. package/src/lib.tsx +2 -1
  54. package/src/store/bestRoute.ts +1 -1
  55. 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.82",
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.73",
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.73",
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.12",
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 { isEvmBlockchain, Network } from '@rango-dev/wallets-shared';
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 { isEvmBlockchain, Network } from '@rango-dev/wallets-shared';
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
 
@@ -1,5 +1,5 @@
1
1
  import { BestRouteResponse, BlockchainMeta } from 'rango-sdk';
2
- import { Token } from 'rango-sdk/lib';
2
+ import { Token } from 'rango-sdk';
3
3
  import { create } from 'zustand';
4
4
  import BigNumber from 'bignumber.js';
5
5
  import { ZERO } from '../constants/numbers';
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 { isEvmBlockchain, Network } from '@rango-dev/wallets-shared';
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