@getpara/evm-wallet-connectors 2.0.0-alpha.40 → 2.0.0-alpha.41

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.
@@ -269,7 +269,7 @@ function EvmExternalWalletProvider({
269
269
  authState = yield login(__spreadValues({
270
270
  address
271
271
  }, loginInfo));
272
- verificationMessage.current = authState.stage === "verify" ? authState.signatureVerificationMessage : void 0;
272
+ verificationMessage.current = authState.signatureVerificationMessage;
273
273
  } catch (err) {
274
274
  address = void 0;
275
275
  error = err;
@@ -302,8 +302,11 @@ function EvmExternalWalletProvider({
302
302
  });
303
303
  const requestInfo = (providerId) => __async(this, null, function* () {
304
304
  var _a;
305
- const connector = connectors.find((c) => c.name === providerId);
306
- if (connector.isAuthorized) isLinkingAccount.current = true;
305
+ const connector = connectors.find((c) => {
306
+ var _a2;
307
+ return c.name === providerId || ((_a2 = c.paraDetails) == null ? void 0 : _a2.internalId) === providerId;
308
+ });
309
+ isLinkingAccount.current = true;
307
310
  try {
308
311
  const address = yield connectBase(connector);
309
312
  return {
@@ -324,10 +327,15 @@ function EvmExternalWalletProvider({
324
327
  if (!providerId) {
325
328
  throw new Error("Provider ID is required to disconnect");
326
329
  }
327
- const connector = connectors.find((c) => c.id === providerId);
330
+ const connector = connectors.find(
331
+ (c) => {
332
+ var _a2;
333
+ return c.id === providerId || c.name === providerId || ((_a2 = c.paraDetails) == null ? void 0 : _a2.internalId) === providerId;
334
+ }
335
+ );
328
336
  isLinkingAccount.current = true;
329
337
  try {
330
- yield connector.disconnect();
338
+ yield connector == null ? void 0 : connector.disconnect();
331
339
  } catch (e) {
332
340
  throw new Error((_a = e == null ? void 0 : e.message) != null ? _a : e);
333
341
  }
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@getpara/evm-wallet-connectors",
3
- "version": "2.0.0-alpha.40",
3
+ "version": "2.0.0-alpha.41",
4
4
  "dependencies": {
5
5
  "@coinbase/wallet-sdk": "4.3.0",
6
- "@getpara/wagmi-v2-connector": "2.0.0-alpha.40",
7
- "@getpara/web-sdk": "2.0.0-alpha.40",
6
+ "@getpara/wagmi-v2-connector": "2.0.0-alpha.41",
7
+ "@getpara/web-sdk": "2.0.0-alpha.41",
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-alpha.40",
12
+ "@getpara/react-common": "2.0.0-alpha.41",
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": "2506044cd3ed127774fb7d537ae850b43acfe8b7",
28
+ "gitHead": "1d153152b648828e13bed611ad479d48247642d1",
29
29
  "main": "dist/index.js",
30
30
  "peerDependencies": {
31
31
  "@farcaster/miniapp-wagmi-connector": "^1.0.0",