@dynamic-labs/aleo 4.67.3-device-registration.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 +15 -10
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +6 -6
- package/src/connectors/AleoWalletAdapterConnector/AleoWalletAdapterConnector.cjs +34 -0
- package/src/connectors/AleoWalletAdapterConnector/AleoWalletAdapterConnector.d.ts +2 -0
- package/src/connectors/AleoWalletAdapterConnector/AleoWalletAdapterConnector.js +34 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
## [4.69.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.68.0...v4.69.0) (2026-03-19)
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
|
|
7
|
-
* add
|
|
8
|
-
* add
|
|
9
|
-
*
|
|
10
|
-
* add step-up auth for email and SMS credential updates ([#10676](https://github.com/dynamic-labs/dynamic-auth/issues/10676)) ([4c7f0a5](https://github.com/dynamic-labs/dynamic-auth/commit/4c7f0a5330e557aea4db85359f7ac10d3c7545a5))
|
|
11
|
-
* add step-up auth for wallet link and unlink ([#10678](https://github.com/dynamic-labs/dynamic-auth/issues/10678)) ([8a015ca](https://github.com/dynamic-labs/dynamic-auth/commit/8a015ca0fd0bda71559c21b811b7e6acb43a7909))
|
|
12
|
-
* add TrustedDevicesSection and ManageTrustedDevicesView ([#10639](https://github.com/dynamic-labs/dynamic-auth/issues/10639)) ([17df870](https://github.com/dynamic-labs/dynamic-auth/commit/17df870caa34a8428d65510e5b3c9e9c7b93cea2))
|
|
13
|
-
* add useSyncDeviceRegistrationFlow ([#10640](https://github.com/dynamic-labs/dynamic-auth/issues/10640)) ([8c7752d](https://github.com/dynamic-labs/dynamic-auth/commit/8c7752d7a8afedaa3cc99fad83091586f7b6107e))
|
|
14
|
-
* **sdk-react-core:** prompt step-up auth before export private key ([#10647](https://github.com/dynamic-labs/dynamic-auth/issues/10647)) ([a39d886](https://github.com/dynamic-labs/dynamic-auth/commit/a39d88643af83484aae09332adcd05df8c0f923c))
|
|
15
|
-
* **step-up:** reauth flow with signInCredentialId and choose-method UI ([#10644](https://github.com/dynamic-labs/dynamic-auth/issues/10644)) ([086a97f](https://github.com/dynamic-labs/dynamic-auth/commit/086a97f27d908780b17f49f8a85ce88c34f61ed8))
|
|
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))
|
|
16
10
|
|
|
17
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
|
+
|
|
16
|
+
## [4.68.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.2...v4.68.0) (2026-03-19)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* add freighter ledger support on stellar ([#10665](https://github.com/dynamic-labs/dynamic-auth/issues/10665)) ([dedbaa6](https://github.com/dynamic-labs/dynamic-auth/commit/dedbaa6038f282b9e41b9166cad3ad6d5032948d))
|
|
22
|
+
|
|
18
23
|
### Bug Fixes
|
|
19
24
|
|
|
20
25
|
* close auth flow on re-login when user already has embedded wallets ([#10641](https://github.com/dynamic-labs/dynamic-auth/issues/10641)) ([1aab930](https://github.com/dynamic-labs/dynamic-auth/commit/1aab9307c904f79bc0534026547fc112c55f6dc9))
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/aleo",
|
|
3
|
-
"version": "4.
|
|
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.
|
|
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.
|
|
27
|
-
"@dynamic-labs/utils": "4.
|
|
28
|
-
"@dynamic-labs/wallet-book": "4.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
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;
|
|
@@ -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 };
|