@web3auth/modal 5.1.1 → 5.2.1

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": "@web3auth/modal",
3
- "version": "5.1.1",
3
+ "version": "5.2.1",
4
4
  "homepage": "https://github.com/Web3Auth/Web3Auth#readme",
5
5
  "license": "ISC",
6
6
  "main": "dist/modal.cjs.js",
@@ -19,15 +19,15 @@
19
19
  "pre-commit": "lint-staged --cwd ."
20
20
  },
21
21
  "dependencies": {
22
- "@web3auth/base": "^5.1.0",
23
- "@web3auth/metamask-adapter": "^5.1.0",
24
- "@web3auth/no-modal": "^5.1.0",
25
- "@web3auth/openlogin-adapter": "^5.1.1",
26
- "@web3auth/phantom-adapter": "^5.1.1",
27
- "@web3auth/torus-evm-adapter": "^5.1.0",
28
- "@web3auth/torus-solana-adapter": "^5.1.1",
29
- "@web3auth/ui": "^5.1.0",
30
- "@web3auth/wallet-connect-v1-adapter": "^5.1.1"
22
+ "@web3auth/base": "^5.2.0",
23
+ "@web3auth/metamask-adapter": "^5.2.0",
24
+ "@web3auth/no-modal": "^5.2.0",
25
+ "@web3auth/openlogin-adapter": "^5.2.1",
26
+ "@web3auth/phantom-adapter": "^5.2.0",
27
+ "@web3auth/torus-evm-adapter": "^5.2.0",
28
+ "@web3auth/torus-solana-adapter": "^5.2.0",
29
+ "@web3auth/ui": "^5.2.0",
30
+ "@web3auth/wallet-connect-v1-adapter": "^5.2.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@svgr/webpack": "^6.5.1",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "0b6f8c705ddeb61159573019848835a14b74bc78"
67
+ "gitHead": "f9f2747085a506549e461aa4a46fde61bc981345"
68
68
  }
@@ -248,7 +248,7 @@ export class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal {
248
248
  if (this.cachedAdapter === adapterName) {
249
249
  return;
250
250
  }
251
- if (adapter.status === ADAPTER_STATUS.NOT_READY)
251
+ if (adapter.status === ADAPTER_STATUS.NOT_READY) {
252
252
  await adapter
253
253
  .init({ autoConnect: this.cachedAdapter === adapterName })
254
254
  .then(() => {
@@ -257,6 +257,10 @@ export class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal {
257
257
  return undefined;
258
258
  })
259
259
  .catch((error) => log.error(error, "error while initializing adapter"));
260
+ } else if (adapter.status === ADAPTER_STATUS.READY) {
261
+ adaptersConfig[adapterName] = (this.modalConfig.adapters as Record<WALLET_ADAPTER_TYPE, ModalConfig>)[adapterName];
262
+ this.loginModal.addWalletLogins(adaptersConfig, { showExternalWalletsOnly: !!options?.showExternalWalletsOnly });
263
+ }
260
264
  }
261
265
  });
262
266
  }