@dynamic-labs/starknet 2.0.2 → 2.0.4

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/CHANGELOG.md CHANGED
@@ -1,4 +1,15 @@
1
1
 
2
+ ### [2.0.4](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.3...v2.0.4) (2024-04-24)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * add autocomplete attribute to email and phone inputs ([#5445](https://github.com/dynamic-labs/DynamicAuth/issues/5445)) ([f050365](https://github.com/dynamic-labs/DynamicAuth/commit/f050365e58cf0e8b64e552bbbcdc09c287703282))
8
+ * disconnect wallet on lock in connect-only ([#5421](https://github.com/dynamic-labs/DynamicAuth/issues/5421)) ([85e7e04](https://github.com/dynamic-labs/DynamicAuth/commit/85e7e04d8d1880a36e00ff292957fa2061230cec))
9
+ * improvements to DynamicWagmiConnector ([#5454](https://github.com/dynamic-labs/DynamicAuth/issues/5454)) ([47957de](https://github.com/dynamic-labs/DynamicAuth/commit/47957de44f030d8c2b4376ec20e17f76d4307c2d)), closes [#5446](https://github.com/dynamic-labs/DynamicAuth/issues/5446)
10
+
11
+ ### [2.0.3](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.2...v2.0.3) (2024-04-22)
12
+
2
13
  ### [2.0.2](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.1...v2.0.2) (2024-04-19)
3
14
 
4
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/starknet",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -31,10 +31,10 @@
31
31
  "text-encoding": "0.7.0",
32
32
  "starknetkit": "1.1.3",
33
33
  "@dynamic-labs/sdk-api-core": "0.0.418",
34
- "@dynamic-labs/rpc-provider-starknet": "2.0.2",
35
- "@dynamic-labs/utils": "2.0.2",
36
- "@dynamic-labs/wallet-book": "2.0.2",
37
- "@dynamic-labs/wallet-connector-core": "2.0.2"
34
+ "@dynamic-labs/rpc-provider-starknet": "2.0.4",
35
+ "@dynamic-labs/utils": "2.0.4",
36
+ "@dynamic-labs/wallet-book": "2.0.4",
37
+ "@dynamic-labs/wallet-connector-core": "2.0.4"
38
38
  },
39
39
  "peerDependencies": {}
40
40
  }
@@ -208,13 +208,8 @@ class StarknetWalletConnector extends walletConnectorCore.WalletConnectorBase {
208
208
  return walletConnectorCore.logger.error('Wallet has not been found');
209
209
  }
210
210
  this.handleAccountChange = (address) => _tslib.__awaiter(this, void 0, void 0, function* () {
211
- if (!(yield wallet.isPreauthorized()) && !address) {
212
- this.emit('disconnect');
213
- return;
214
- }
215
- // this is the case where the wallet emits an empty account change event
216
- // when the user is simply switching network
217
211
  if (!address) {
212
+ this.emit('disconnect');
218
213
  return;
219
214
  }
220
215
  if (address.toString()) {
@@ -204,13 +204,8 @@ class StarknetWalletConnector extends WalletConnectorBase {
204
204
  return logger.error('Wallet has not been found');
205
205
  }
206
206
  this.handleAccountChange = (address) => __awaiter(this, void 0, void 0, function* () {
207
- if (!(yield wallet.isPreauthorized()) && !address) {
208
- this.emit('disconnect');
209
- return;
210
- }
211
- // this is the case where the wallet emits an empty account change event
212
- // when the user is simply switching network
213
207
  if (!address) {
208
+ this.emit('disconnect');
214
209
  return;
215
210
  }
216
211
  if (address.toString()) {