@rango-dev/widget-embedded 0.46.2-next.0 → 0.46.2-next.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.46.2-next.0",
3
+ "version": "0.46.2-next.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -25,15 +25,15 @@
25
25
  "@lingui/core": "4.2.1",
26
26
  "@lingui/react": "4.2.1",
27
27
  "@rango-dev/logging-core": "^0.10.1-next.0",
28
- "@rango-dev/provider-all": "^0.49.1-next.0",
28
+ "@rango-dev/provider-all": "^0.49.1-next.2",
29
29
  "@rango-dev/queue-manager-core": "^0.31.1-next.0",
30
- "@rango-dev/queue-manager-rango-preset": "^0.48.2-next.0",
30
+ "@rango-dev/queue-manager-rango-preset": "^0.48.2-next.2",
31
31
  "@rango-dev/queue-manager-react": "^0.31.1-next.0",
32
32
  "@rango-dev/signer-solana": "^0.42.1-next.0",
33
- "@rango-dev/ui": "^0.49.1-next.0",
34
- "@rango-dev/wallets-core": "^0.46.1-next.0",
35
- "@rango-dev/wallets-react": "^0.33.1-next.0",
36
- "@rango-dev/wallets-shared": "^0.47.1-next.0",
33
+ "@rango-dev/ui": "^0.49.1-next.2",
34
+ "@rango-dev/wallets-core": "^0.46.1-next.2",
35
+ "@rango-dev/wallets-react": "^0.33.1-next.2",
36
+ "@rango-dev/wallets-shared": "^0.47.1-next.2",
37
37
  "bignumber.js": "^9.1.1",
38
38
  "copy-to-clipboard": "^3.3.3",
39
39
  "dayjs": "^1.11.7",
@@ -55,7 +55,7 @@ function QueueManager(props: PropsWithChildren<{ apiKey?: string }>) {
55
55
  wallet: WalletType,
56
56
  namespace: TargetNamespace
57
57
  ) => {
58
- if (!canSwitchNetworkTo(wallet, namespace.network)) {
58
+ if (!canSwitchNetworkTo(wallet, namespace.network, namespace)) {
59
59
  return undefined;
60
60
  }
61
61
  const result = await connect(wallet, [namespace]);
@@ -70,6 +70,7 @@ function QueueManager(props: PropsWithChildren<{ apiKey?: string }>) {
70
70
  const allBlockchains = blockchainsList
71
71
  .filter((blockchain) => blockchain.enabled)
72
72
  .reduce(
73
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
73
74
  (blockchainsObj: any, blockchain) => (
74
75
  (blockchainsObj[blockchain.name] = blockchain), blockchainsObj
75
76
  ),
@@ -163,7 +163,8 @@ export function SwapDetails(props: SwapDetailsProps) {
163
163
  (isMobileWallet(currentStepWallet.walletType) ||
164
164
  canSwitchNetworkTo(
165
165
  currentStepWallet.walletType,
166
- currentStepNamespace.network
166
+ currentStepNamespace.network,
167
+ currentStepNamespace
167
168
  ));
168
169
 
169
170
  const switchNetwork = showSwitchNetwork