@web3auth/modal 7.2.1 → 7.3.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
@@ -4,27 +4,27 @@
4
4
  "url": "https://github.com/Web3Auth/Web3Auth/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@web3auth/base": "^7.2.1",
8
- "@web3auth/base-provider": "^7.2.1",
9
- "@web3auth/ethereum-provider": "^7.2.1",
10
- "@web3auth/metamask-adapter": "^7.2.1",
11
- "@web3auth/no-modal": "^7.2.1",
12
- "@web3auth/openlogin-adapter": "^7.2.1",
13
- "@web3auth/phantom-adapter": "^7.2.1",
14
- "@web3auth/solana-provider": "^7.2.1",
15
- "@web3auth/torus-evm-adapter": "^7.2.1",
16
- "@web3auth/torus-solana-adapter": "^7.2.1",
17
- "@web3auth/ui": "^7.2.1",
18
- "@web3auth/wallet-connect-v2-adapter": "^7.2.1"
7
+ "@web3auth/base": "^7.3.1",
8
+ "@web3auth/base-provider": "^7.3.1",
9
+ "@web3auth/ethereum-provider": "^7.3.1",
10
+ "@web3auth/metamask-adapter": "^7.3.1",
11
+ "@web3auth/no-modal": "^7.3.1",
12
+ "@web3auth/openlogin-adapter": "^7.3.1",
13
+ "@web3auth/phantom-adapter": "^7.3.1",
14
+ "@web3auth/solana-provider": "^7.3.1",
15
+ "@web3auth/torus-evm-adapter": "^7.3.1",
16
+ "@web3auth/torus-solana-adapter": "^7.3.1",
17
+ "@web3auth/ui": "^7.3.1",
18
+ "@web3auth/wallet-connect-v2-adapter": "^7.3.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@svgr/webpack": "^8.1.0",
22
22
  "@toruslabs/isomorphic-style-loader": "^5.3.3",
23
- "@toruslabs/openlogin-utils": "^6.1.0",
24
- "css-loader": "^6.8.1",
23
+ "@toruslabs/openlogin-utils": "^6.2.2",
24
+ "css-loader": "^6.9.0",
25
25
  "postcss-prefix-selector": "^1.16.0",
26
- "style-loader": "^3.3.3",
27
- "tailwindcss": "^3.4.0",
26
+ "style-loader": "^3.3.4",
27
+ "tailwindcss": "^3.4.1",
28
28
  "url-loader": "^4.1.1"
29
29
  },
30
30
  "engines": {
@@ -70,6 +70,6 @@
70
70
  },
71
71
  "types": "dist/types/index.d.ts",
72
72
  "unpkg": "dist/modal.umd.min.js",
73
- "version": "7.2.1",
74
- "gitHead": "fd62ba4aeb83a4bf4c9b0fcd3f942db742d5751f"
73
+ "version": "7.3.1",
74
+ "gitHead": "ef1b6198d0ee045bf63ef3338affbccdeb473d42"
75
75
  }
@@ -231,6 +231,12 @@ export class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal {
231
231
  this.once(ADAPTER_EVENTS.ERRORED, (err: unknown) => {
232
232
  return reject(err);
233
233
  });
234
+ this.once(LOGIN_MODAL_EVENTS.MODAL_VISIBILITY, (visibility: boolean) => {
235
+ // modal is closed but user is not connected to any wallet.
236
+ if (!visibility && this.status !== ADAPTER_STATUS.CONNECTED) {
237
+ return reject(new Error("User closed the modal"));
238
+ }
239
+ });
234
240
  });
235
241
  }
236
242