@dynamic-labs/aleo 4.68.0 → 4.69.0

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,18 @@
1
1
 
2
+ ## [4.69.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.68.0...v4.69.0) (2026-03-19)
3
+
4
+
5
+ ### Features
6
+
7
+ * add MoonPay icon to iconic ([#10666](https://github.com/dynamic-labs/dynamic-auth/issues/10666)) ([19d437b](https://github.com/dynamic-labs/dynamic-auth/commit/19d437b1a55e2b7800d65f375217b735f29d10eb))
8
+ * add step-up auth for OAuth and email credential link and unlink ([#10679](https://github.com/dynamic-labs/dynamic-auth/issues/10679)) ([ba48be8](https://github.com/dynamic-labs/dynamic-auth/commit/ba48be874e44c033563ae107e46a1b90f3c307d6))
9
+ * replace React session chaining with pure SDK implementation ([#10423](https://github.com/dynamic-labs/dynamic-auth/issues/10423)) ([2279421](https://github.com/dynamic-labs/dynamic-auth/commit/227942153828192d316d19295a69d9e7a5baa85c))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * csp nonce global styles ([#10591](https://github.com/dynamic-labs/dynamic-auth/issues/10591)) ([6ea9c14](https://github.com/dynamic-labs/dynamic-auth/commit/6ea9c141055b3a337d8841dbebec00c7a3cb5d93))
15
+
2
16
  ## [4.68.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.2...v4.68.0) (2026-03-19)
3
17
 
4
18
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.68.0";
6
+ var version = "4.69.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.68.0";
2
+ var version = "4.69.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/aleo",
3
- "version": "4.68.0",
3
+ "version": "4.69.0",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,15 +18,15 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/assert-package-version": "4.68.0",
21
+ "@dynamic-labs/assert-package-version": "4.69.0",
22
22
  "@provablehq/aleo-wallet-adaptor-core": "0.3.0-alpha.3",
23
23
  "@provablehq/aleo-wallet-adaptor-shield": "0.3.0-alpha.3",
24
24
  "@provablehq/aleo-wallet-standard": "0.3.0-alpha.3",
25
25
  "@provablehq/aleo-types": "0.3.0-alpha.3",
26
- "@dynamic-labs/types": "4.68.0",
27
- "@dynamic-labs/utils": "4.68.0",
28
- "@dynamic-labs/wallet-book": "4.68.0",
29
- "@dynamic-labs/wallet-connector-core": "4.68.0"
26
+ "@dynamic-labs/types": "4.69.0",
27
+ "@dynamic-labs/utils": "4.69.0",
28
+ "@dynamic-labs/wallet-book": "4.69.0",
29
+ "@dynamic-labs/wallet-connector-core": "4.69.0"
30
30
  },
31
31
  "peerDependencies": {}
32
32
  }
@@ -278,6 +278,40 @@ class AleoWalletAdapterConnector extends AleoWalletConnector.AleoWalletConnector
278
278
  this.adapter = undefined;
279
279
  });
280
280
  }
281
+ setupEventListeners() {
282
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
283
+ if (!this.adapter) {
284
+ return;
285
+ }
286
+ this.adapter.on('accountChange', () => _tslib.__awaiter(this, void 0, void 0, function* () {
287
+ var _a, _b;
288
+ yield this.connect();
289
+ const address = (_b = (_a = this.adapter) === null || _a === void 0 ? void 0 : _a.account) === null || _b === void 0 ? void 0 : _b.address;
290
+ this.emit('accountChange', {
291
+ accounts: address ? [address] : [],
292
+ });
293
+ }));
294
+ this.adapter.on('networkChange', (network) => {
295
+ var _a;
296
+ const newNetwork = getNetworkByChainId.ALEO_NETWORK_TO_ID_MAP[network];
297
+ this.emit('chainChange', { chain: (_a = newNetwork === null || newNetwork === void 0 ? void 0 : newNetwork.toString()) !== null && _a !== void 0 ? _a : '' });
298
+ });
299
+ this.adapter.on('disconnect', () => {
300
+ this.emit('disconnect');
301
+ this.endSession();
302
+ });
303
+ });
304
+ }
305
+ teardownEventListeners() {
306
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
307
+ if (!this.adapter) {
308
+ return;
309
+ }
310
+ this.adapter.off('accountChange');
311
+ this.adapter.off('networkChange');
312
+ this.adapter.off('disconnect');
313
+ });
314
+ }
281
315
  }
282
316
 
283
317
  exports.AleoWalletAdapterConnector = AleoWalletAdapterConnector;
@@ -56,4 +56,6 @@ export declare abstract class AleoWalletAdapterConnector extends AleoWalletConne
56
56
  plaintext?: boolean;
57
57
  }): Promise<unknown[]>;
58
58
  endSession(): Promise<void>;
59
+ setupEventListeners(): Promise<void>;
60
+ teardownEventListeners(): Promise<void>;
59
61
  }
@@ -274,6 +274,40 @@ class AleoWalletAdapterConnector extends AleoWalletConnector {
274
274
  this.adapter = undefined;
275
275
  });
276
276
  }
277
+ setupEventListeners() {
278
+ return __awaiter(this, void 0, void 0, function* () {
279
+ if (!this.adapter) {
280
+ return;
281
+ }
282
+ this.adapter.on('accountChange', () => __awaiter(this, void 0, void 0, function* () {
283
+ var _a, _b;
284
+ yield this.connect();
285
+ const address = (_b = (_a = this.adapter) === null || _a === void 0 ? void 0 : _a.account) === null || _b === void 0 ? void 0 : _b.address;
286
+ this.emit('accountChange', {
287
+ accounts: address ? [address] : [],
288
+ });
289
+ }));
290
+ this.adapter.on('networkChange', (network) => {
291
+ var _a;
292
+ const newNetwork = ALEO_NETWORK_TO_ID_MAP[network];
293
+ this.emit('chainChange', { chain: (_a = newNetwork === null || newNetwork === void 0 ? void 0 : newNetwork.toString()) !== null && _a !== void 0 ? _a : '' });
294
+ });
295
+ this.adapter.on('disconnect', () => {
296
+ this.emit('disconnect');
297
+ this.endSession();
298
+ });
299
+ });
300
+ }
301
+ teardownEventListeners() {
302
+ return __awaiter(this, void 0, void 0, function* () {
303
+ if (!this.adapter) {
304
+ return;
305
+ }
306
+ this.adapter.off('accountChange');
307
+ this.adapter.off('networkChange');
308
+ this.adapter.off('disconnect');
309
+ });
310
+ }
277
311
  }
278
312
 
279
313
  export { AleoWalletAdapterConnector };