@getpara/react-sdk-lite 2.0.0-alpha.60 → 2.0.0-alpha.62
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.
|
@@ -12,6 +12,7 @@ import { CosmosWalletWrapper } from "./CosmosWalletWrapper.js";
|
|
|
12
12
|
import { SolanaWalletWrapper } from "./SolanaWalletWrapper.js";
|
|
13
13
|
import { useStore } from "../stores/useStore.js";
|
|
14
14
|
import { useInternalClient } from "../hooks/utils/useInternalClient.js";
|
|
15
|
+
import { EVM_WALLETS } from "@getpara/web-sdk";
|
|
15
16
|
const ExternalWalletWrapper = ({
|
|
16
17
|
children,
|
|
17
18
|
config
|
|
@@ -23,8 +24,8 @@ const ExternalWalletWrapper = ({
|
|
|
23
24
|
const wallets = useStore((state) => state.externalWallets);
|
|
24
25
|
const para = useInternalClient();
|
|
25
26
|
useEffect(() => {
|
|
26
|
-
if (!!wallets.length && !(walletConnect == null ? void 0 : walletConnect.projectId)) {
|
|
27
|
-
para.
|
|
27
|
+
if (!!wallets.length && !(walletConnect == null ? void 0 : walletConnect.projectId) && wallets.some((wallet) => EVM_WALLETS.includes(wallet))) {
|
|
28
|
+
para.displayModalError(
|
|
28
29
|
"It is recommended to provide a WalletConnect project id to ensure wallet connection works as expected. Refer to our docs at [https://docs.getpara.com/v2/react/guides/external-wallets/evm#configure-the-providers](https://docs.getpara.com/v2/react/guides/external-wallets/evm#configure-the-providers) for configuration details and sign up for your free key at [https://cloud.walletconnect.com/sign-in](https://cloud.walletconnect.com/sign-in)"
|
|
29
30
|
);
|
|
30
31
|
console.warn(
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-sdk-lite",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.62",
|
|
4
4
|
"bin": {
|
|
5
5
|
"setup-para": "dist/cli/cli.mjs"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@getpara/react-common": "2.0.0-alpha.
|
|
9
|
-
"@getpara/react-components": "2.0.0-alpha.
|
|
10
|
-
"@getpara/web-sdk": "2.0.0-alpha.
|
|
8
|
+
"@getpara/react-common": "2.0.0-alpha.62",
|
|
9
|
+
"@getpara/react-components": "2.0.0-alpha.62",
|
|
10
|
+
"@getpara/web-sdk": "2.0.0-alpha.62",
|
|
11
11
|
"date-fns": "^3.6.0",
|
|
12
12
|
"framer-motion": "^11.3.31",
|
|
13
13
|
"libphonenumber-js": "^1.11.7",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"zustand-sync-tabs": "^0.2.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@getpara/cosmos-wallet-connectors": "2.0.0-alpha.
|
|
20
|
-
"@getpara/evm-wallet-connectors": "2.0.0-alpha.
|
|
21
|
-
"@getpara/solana-wallet-connectors": "2.0.0-alpha.
|
|
19
|
+
"@getpara/cosmos-wallet-connectors": "2.0.0-alpha.62",
|
|
20
|
+
"@getpara/evm-wallet-connectors": "2.0.0-alpha.62",
|
|
21
|
+
"@getpara/solana-wallet-connectors": "2.0.0-alpha.62",
|
|
22
22
|
"@tanstack/react-query": "^5.74.0",
|
|
23
23
|
"@testing-library/dom": "^10.4.0",
|
|
24
24
|
"@testing-library/react": "^16.3.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"package.json",
|
|
39
39
|
"styles.css"
|
|
40
40
|
],
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "a4e8ee28afb86a2318449def68eb7fcefdb31745",
|
|
42
42
|
"main": "dist/index.js",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@tanstack/react-query": ">=5.0.0",
|