@rango-dev/widget-embedded 0.62.2-next.6 → 0.62.2-next.8

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.62.2-next.6",
3
+ "version": "0.62.2-next.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -22,20 +22,20 @@
22
22
  "test:coverage": "vitest run --coverage"
23
23
  },
24
24
  "dependencies": {
25
- "@hub3js/core": "^0.61.0",
26
- "@hub3js/namespaces": "^0.2.2",
25
+ "@hub3js/core": "^0.61.1",
26
+ "@hub3js/namespaces": "^0.2.5",
27
27
  "@lingui/core": "4.2.1",
28
28
  "@lingui/react": "4.2.1",
29
29
  "@rango-dev/logging-core": "^0.13.1-next.0",
30
- "@rango-dev/provider-all": "^0.64.1-next.5",
30
+ "@rango-dev/provider-all": "^0.64.1-next.7",
31
31
  "@rango-dev/queue-manager-core": "^0.33.1-next.0",
32
- "@rango-dev/queue-manager-rango-preset": "^0.63.1-next.4",
32
+ "@rango-dev/queue-manager-rango-preset": "^0.63.1-next.5",
33
33
  "@rango-dev/queue-manager-react": "^0.33.1-next.0",
34
34
  "@rango-dev/signer-solana": "^0.48.1-next.0",
35
- "@rango-dev/ui": "^0.64.1-next.4",
36
- "@rango-dev/wallets-core": "^0.60.1-next.3",
37
- "@rango-dev/wallets-react": "^0.47.1-next.4",
38
- "@rango-dev/wallets-shared": "^0.61.1-next.4",
35
+ "@rango-dev/ui": "^0.64.1-next.5",
36
+ "@rango-dev/wallets-core": "^0.60.1-next.4",
37
+ "@rango-dev/wallets-react": "^0.47.1-next.5",
38
+ "@rango-dev/wallets-shared": "^0.61.1-next.5",
39
39
  "bignumber.js": "^9.1.1",
40
40
  "copy-to-clipboard": "^3.3.3",
41
41
  "crypto-browserify": "^3.12.1",
@@ -7,6 +7,7 @@ import {
7
7
  Divider,
8
8
  Typography,
9
9
  } from '@rango-dev/ui';
10
+ import { getSupportedChainsFromNamespace } from '@rango-dev/wallets-shared';
10
11
  import React, { useEffect, useState } from 'react';
11
12
 
12
13
  import { useAppStore } from '../../store/AppStore';
@@ -32,7 +33,10 @@ export function NamespaceItem(props: PropTypes) {
32
33
 
33
34
  useEffect(() => setErrorIsExpanded(false), [error]);
34
35
 
35
- const supportedChains = namespace.getSupportedChains(blockchains);
36
+ const supportedChains = getSupportedChainsFromNamespace(
37
+ namespace,
38
+ blockchains
39
+ );
36
40
  const isSupportedChainsDisplayed =
37
41
  !error && !connected && supportedChains.length > 1;
38
42
 
@@ -11,6 +11,7 @@ import {
11
11
  RadioRoot,
12
12
  WalletImageContainer,
13
13
  } from '@rango-dev/ui';
14
+ import { getSupportedChainsFromNamespace } from '@rango-dev/wallets-shared';
14
15
  import React, { useEffect, useMemo, useState } from 'react';
15
16
 
16
17
  import { useAppStore } from '../../store/AppStore';
@@ -83,11 +84,9 @@ export function Namespaces(props: PropTypes) {
83
84
  if (!!props.value.defaultSelectedChains?.length) {
84
85
  const namespacesContainingDefaultSelectedChains =
85
86
  supportedNamespaces.filter((namespace) =>
86
- namespace
87
- .getSupportedChains(blockchains)
88
- .some((chain) =>
89
- props.value.defaultSelectedChains?.includes(chain.name)
90
- )
87
+ getSupportedChainsFromNamespace(namespace, blockchains).some(
88
+ (chain) => props.value.defaultSelectedChains?.includes(chain.name)
89
+ )
91
90
  );
92
91
  setSelectedNamespaces(
93
92
  namespacesContainingDefaultSelectedChains.map(
@@ -23,8 +23,8 @@ import {
23
23
  import { legacyReadAccountAddress as readAccountAddress } from '@rango-dev/wallets-core/legacy';
24
24
  import {
25
25
  detectInstallLink,
26
- HYPERLIQUID_SIGN_NETWORK,
27
26
  getBlockChainNameFromId,
27
+ HYPERLIQUID_SIGN_NETWORK,
28
28
  isEvmAddress,
29
29
  Networks,
30
30
  } from '@rango-dev/wallets-shared';