@getpara/evm-wallet-connectors 2.0.0-fc.1 → 2.0.0-fc.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.
@@ -134,11 +134,8 @@ function EvmExternalWalletProvider({
134
134
  connectParaEmbedded();
135
135
  }
136
136
  }, [isLocalConnecting, isConnecting, isReconnecting, isConnected, connectedConnector]);
137
- const disconnect = () => __async(this, null, function* () {
138
- yield disconnectAsync();
139
- });
140
137
  const reset = () => __async(this, null, function* () {
141
- yield disconnect();
138
+ yield disconnectAsync();
142
139
  yield para.logout();
143
140
  });
144
141
  const signMessage = (_0) => __async(this, [_0], function* ({ message, externalWallet }) {
@@ -67,9 +67,11 @@ function ParaEvmProvider({
67
67
  const setInitialConfig = () => __async(this, null, function* () {
68
68
  var _a2;
69
69
  let createFarcasterConnector = null;
70
- try {
71
- createFarcasterConnector = (_a2 = (yield import("@farcaster/miniapp-wagmi-connector")).farcasterMiniApp) != null ? _a2 : void 0;
72
- } catch (e) {
70
+ if (para.isFarcasterMiniApp) {
71
+ try {
72
+ createFarcasterConnector = (_a2 = (yield import("@farcaster/miniapp-wagmi-connector")).farcasterMiniApp) != null ? _a2 : void 0;
73
+ } catch (e) {
74
+ }
73
75
  }
74
76
  if (!prevWallets.current) {
75
77
  prevWallets.current = wallets;
@@ -103,8 +105,10 @@ function ParaEvmProvider({
103
105
  setConfig(createdConfig);
104
106
  prevWallets.current = wallets;
105
107
  });
106
- setInitialConfig();
107
- }, [wallets, paraConnectorInstance]);
108
+ if (para.isReady) {
109
+ setInitialConfig();
110
+ }
111
+ }, [wallets, para.isReady, para.isFarcasterMiniApp, paraConnectorInstance]);
108
112
  if (!config) {
109
113
  return null;
110
114
  }
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@getpara/evm-wallet-connectors",
3
- "version": "2.0.0-fc.1",
3
+ "version": "2.0.0-fc.2",
4
4
  "dependencies": {
5
5
  "@coinbase/wallet-sdk": "4.3.0",
6
- "@getpara/wagmi-v2-connector": "2.0.0-fc.1",
7
- "@getpara/web-sdk": "2.0.0-fc.1",
6
+ "@getpara/wagmi-v2-connector": "2.0.0-fc.2",
7
+ "@getpara/web-sdk": "2.0.0-fc.2",
8
8
  "zustand": "^4.5.2",
9
9
  "zustand-sync-tabs": "^0.2.2"
10
10
  },
11
11
  "devDependencies": {
12
- "@getpara/react-common": "2.0.0-fc.1",
12
+ "@getpara/react-common": "2.0.0-fc.2",
13
13
  "@tanstack/react-query": "^5.74.0",
14
14
  "@types/react": "^18.0.31",
15
15
  "@types/react-dom": "^18.2.7",
@@ -25,7 +25,7 @@
25
25
  "dist",
26
26
  "package.json"
27
27
  ],
28
- "gitHead": "1d69e4964329304db3faf32a93c0f213732d8dff",
28
+ "gitHead": "65106fd9662a2c32b2071a0dea67ef55b3e4e98f",
29
29
  "main": "dist/index.js",
30
30
  "peerDependencies": {
31
31
  "@farcaster/miniapp-wagmi-connector": "^1.0.0",