@wagmi/connectors 0.2.4 → 0.2.5

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.
@@ -25,6 +25,8 @@ function getInjectedName(ethereum) {
25
25
  if (!ethereum)
26
26
  return "Injected";
27
27
  const getName = (provider) => {
28
+ if (provider.isApexWallet)
29
+ return "Apex Wallet";
28
30
  if (provider.isAvalanche)
29
31
  return "Core Wallet";
30
32
  if (provider.isBitKeep)
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { C as Connector, a as ConnectorData, b as ConnectorEvents } from './base-84a689bb.js';
2
- export { E as Ethereum } from './types-15a470bc.js';
2
+ export { E as Ethereum } from './types-acc5bc95.js';
3
3
  import '@wagmi/core';
4
4
  import '@wagmi/core/chains';
5
5
  import 'eventemitter3';
@@ -2,7 +2,7 @@ import { Address } from '@wagmi/core';
2
2
  import { Chain } from '@wagmi/core/chains';
3
3
  import { providers } from 'ethers';
4
4
  import { C as Connector } from './base-84a689bb.js';
5
- import { E as Ethereum } from './types-15a470bc.js';
5
+ import { E as Ethereum } from './types-acc5bc95.js';
6
6
  import 'eventemitter3';
7
7
  import 'abitype';
8
8
 
package/dist/injected.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InjectedConnector
3
- } from "./chunk-6IU3YKWQ.js";
3
+ } from "./chunk-N7MKKIYR.js";
4
4
  import "./chunk-5NCTPR6C.js";
5
5
  export {
6
6
  InjectedConnector
@@ -1,6 +1,6 @@
1
1
  import { Chain } from '@wagmi/core/chains';
2
2
  import { InjectedConnectorOptions, InjectedConnector } from './injected.js';
3
- import { E as Ethereum } from './types-15a470bc.js';
3
+ import { E as Ethereum } from './types-acc5bc95.js';
4
4
  import '@wagmi/core';
5
5
  import 'ethers';
6
6
  import './base-84a689bb.js';
package/dist/metaMask.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InjectedConnector
3
- } from "./chunk-6IU3YKWQ.js";
3
+ } from "./chunk-N7MKKIYR.js";
4
4
  import {
5
5
  __privateAdd,
6
6
  __privateGet,
@@ -33,6 +33,8 @@ var MetaMaskConnector = class extends InjectedConnector {
33
33
  return;
34
34
  if (ethereum2.isBraveWallet && !ethereum2._events && !ethereum2._state)
35
35
  return;
36
+ if (ethereum2.isApexWallet)
37
+ return;
36
38
  if (ethereum2.isAvalanche)
37
39
  return;
38
40
  if (ethereum2.isKuCoinWallet)
@@ -41,6 +41,7 @@ type WatchAssetParams = {
41
41
  };
42
42
  };
43
43
  type InjectedProviderFlags = {
44
+ isApexWallet?: true;
44
45
  isAvalanche?: true;
45
46
  isBitKeep?: true;
46
47
  isBraveWallet?: true;
@@ -285,7 +285,8 @@ createWeb3Modal_fn = async function() {
285
285
  const { Web3Modal } = await import("@web3modal/standalone");
286
286
  const { version } = this.options;
287
287
  __privateSet(this, _web3Modal, new Web3Modal({
288
- projectId: version === "2" ? this.options.projectId : void 0,
288
+ walletConnectVersion: version === "2" ? 2 : 1,
289
+ projectId: version === "2" ? this.options.projectId : "",
289
290
  standaloneChains: this.namespacedChains
290
291
  }));
291
292
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/connectors",
3
3
  "description": "A collection of connectors for wagmi",
4
4
  "license": "MIT",
5
- "version": "0.2.4",
5
+ "version": "0.2.5",
6
6
  "peerDependencies": {
7
7
  "@wagmi/core": ">=0.9.x",
8
8
  "ethers": ">=5.5.1 <6",
@@ -20,10 +20,10 @@
20
20
  "@coinbase/wallet-sdk": "^3.5.4",
21
21
  "@ledgerhq/connect-kit-loader": "^1.0.1",
22
22
  "@walletconnect/ethereum-provider": "^1.8.0",
23
- "@walletconnect/universal-provider": "^2.3.3",
23
+ "@walletconnect/universal-provider": "2.3.3",
24
24
  "@safe-global/safe-apps-provider": "^0.15.2",
25
25
  "@safe-global/safe-apps-sdk": "^7.9.0",
26
- "@web3modal/standalone": "^2.0.0",
26
+ "@web3modal/standalone": "^2.1.1",
27
27
  "abitype": "^0.3.0",
28
28
  "eventemitter3": "^4.0.7"
29
29
  },