@dynamic-labs/waas 4.63.1 → 4.65.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 +23 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/DynamicWaasMixin.cjs +20 -1
- package/src/DynamicWaasMixin.d.ts +4 -0
- package/src/DynamicWaasMixin.js +20 -1
- package/utils/createWaasClientSecureStorage.cjs +5 -0
- package/utils/createWaasClientSecureStorage.d.ts +1 -0
- package/utils/createWaasClientSecureStorage.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.65.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.64.0...v4.65.0) (2026-02-27)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add CSP nonce support for style and link tags ([#10514](https://github.com/dynamic-labs/dynamic-auth/issues/10514)) ([62128f5](https://github.com/dynamic-labs/dynamic-auth/commit/62128f5eddfd2a037c2ed6e9320b5009d350c0b5))
|
|
8
|
+
* add setPassword method for initial wallet password setup ([#10534](https://github.com/dynamic-labs/dynamic-auth/issues/10534)) ([87d1e5f](https://github.com/dynamic-labs/dynamic-auth/commit/87d1e5f3c41fe4417320f6971566526e8bf07e99))
|
|
9
|
+
* add step-up authentication and walletsVerify API ([#10482](https://github.com/dynamic-labs/dynamic-auth/issues/10482)) ([e762a63](https://github.com/dynamic-labs/dynamic-auth/commit/e762a634e9782c34926f5947db5446ad95617064))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **react-native:** ensure items are saved to storage successfully ([#10538](https://github.com/dynamic-labs/dynamic-auth/issues/10538)) ([60bfd5e](https://github.com/dynamic-labs/dynamic-auth/commit/60bfd5e4bf1e7265e754c222839662ff615495b2))
|
|
15
|
+
* **sdk-react-core:** add stellar to compareChains to prevent duplicate wallet creation ([#10526](https://github.com/dynamic-labs/dynamic-auth/issues/10526)) ([89f4498](https://github.com/dynamic-labs/dynamic-auth/commit/89f449892a5153dc8032e0e8ea61cf453e0a2b23))
|
|
16
|
+
* show password setup button for all WaaS wallets regardless of passcodeRequired ([#10532](https://github.com/dynamic-labs/dynamic-auth/issues/10532)) ([615cbf2](https://github.com/dynamic-labs/dynamic-auth/commit/615cbf25fcf95cb5b82a118a2d5d37285e8b5b83))
|
|
17
|
+
|
|
18
|
+
## [4.64.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.63.1...v4.64.0) (2026-02-25)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add addTrustline method to the stellar wallet ([#10510](https://github.com/dynamic-labs/dynamic-auth/issues/10510)) ([e8690e8](https://github.com/dynamic-labs/dynamic-auth/commit/e8690e821dfe867355618d970380568487c3dd36))
|
|
24
|
+
|
|
2
25
|
### [4.63.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.63.0...v4.63.1) (2026-02-24)
|
|
3
26
|
|
|
4
27
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.65.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.65.0",
|
|
20
20
|
"@dynamic-labs/sdk-api-core": "0.0.875",
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
23
|
-
"@dynamic-labs/logger": "4.
|
|
24
|
-
"@dynamic-labs/solana-core": "4.
|
|
25
|
-
"@dynamic-labs/sui-core": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.286",
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.65.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.65.0",
|
|
24
|
+
"@dynamic-labs/solana-core": "4.65.0",
|
|
25
|
+
"@dynamic-labs/sui-core": "4.65.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.65.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.65.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.65.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
31
31
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -7,9 +7,9 @@ var _tslib = require('../_virtual/_tslib.cjs');
|
|
|
7
7
|
var browserWalletClient = require('@dynamic-labs-wallet/browser-wallet-client');
|
|
8
8
|
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
9
9
|
var utils = require('@dynamic-labs/utils');
|
|
10
|
-
var createWaasClientSecureStorage = require('../utils/createWaasClientSecureStorage.cjs');
|
|
11
10
|
var _package = require('../package.cjs');
|
|
12
11
|
var constants = require('../utils/constants.cjs');
|
|
12
|
+
var createWaasClientSecureStorage = require('../utils/createWaasClientSecureStorage.cjs');
|
|
13
13
|
var instrumentation = require('../utils/instrumentation.cjs');
|
|
14
14
|
|
|
15
15
|
// This class is common across all waas connectors
|
|
@@ -462,6 +462,25 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
462
462
|
});
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
+
setPassword(_a) {
|
|
466
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, newPassword, }) {
|
|
467
|
+
var _b, _c;
|
|
468
|
+
if (!accountAddress) {
|
|
469
|
+
throw new utils.DynamicError('Account address is required');
|
|
470
|
+
}
|
|
471
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
472
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
473
|
+
if (!signedSessionId) {
|
|
474
|
+
throw new utils.DynamicError('Signed session ID is required');
|
|
475
|
+
}
|
|
476
|
+
return walletClient.setPassword({
|
|
477
|
+
accountAddress,
|
|
478
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
479
|
+
newPassword,
|
|
480
|
+
signedSessionId,
|
|
481
|
+
});
|
|
482
|
+
});
|
|
483
|
+
}
|
|
465
484
|
signRawMessage(_a) {
|
|
466
485
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, message, password, }) {
|
|
467
486
|
var _b, _c, _d;
|
|
@@ -125,6 +125,10 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
125
125
|
existingPassword?: string;
|
|
126
126
|
newPassword: string;
|
|
127
127
|
}): Promise<void>;
|
|
128
|
+
setPassword({ accountAddress, newPassword, }: {
|
|
129
|
+
accountAddress: string;
|
|
130
|
+
newPassword: string;
|
|
131
|
+
}): Promise<void>;
|
|
128
132
|
signRawMessage({ accountAddress, message, password, }: {
|
|
129
133
|
accountAddress: string;
|
|
130
134
|
message: string;
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -3,9 +3,9 @@ import { __awaiter } from '../_virtual/_tslib.js';
|
|
|
3
3
|
import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
4
4
|
import { MFAAction, TokenScope } from '@dynamic-labs/sdk-api-core';
|
|
5
5
|
import { DynamicError, PlatformService } from '@dynamic-labs/utils';
|
|
6
|
-
import { createWaasClientSecureStorage } from '../utils/createWaasClientSecureStorage.js';
|
|
7
6
|
import { version } from '../package.js';
|
|
8
7
|
import { DEFAULT_BASE_API_URL, DEFAULT_BASE_MPC_RELAY_API_URL } from '../utils/constants.js';
|
|
8
|
+
import { createWaasClientSecureStorage } from '../utils/createWaasClientSecureStorage.js';
|
|
9
9
|
import { InstrumentationTimer } from '../utils/instrumentation.js';
|
|
10
10
|
|
|
11
11
|
// This class is common across all waas connectors
|
|
@@ -458,6 +458,25 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
458
458
|
});
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
|
+
setPassword(_a) {
|
|
462
|
+
return __awaiter(this, arguments, void 0, function* ({ accountAddress, newPassword, }) {
|
|
463
|
+
var _b, _c;
|
|
464
|
+
if (!accountAddress) {
|
|
465
|
+
throw new DynamicError('Account address is required');
|
|
466
|
+
}
|
|
467
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
468
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
469
|
+
if (!signedSessionId) {
|
|
470
|
+
throw new DynamicError('Signed session ID is required');
|
|
471
|
+
}
|
|
472
|
+
return walletClient.setPassword({
|
|
473
|
+
accountAddress,
|
|
474
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
475
|
+
newPassword,
|
|
476
|
+
signedSessionId,
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
}
|
|
461
480
|
signRawMessage(_a) {
|
|
462
481
|
return __awaiter(this, arguments, void 0, function* ({ accountAddress, message, password, }) {
|
|
463
482
|
var _b, _c, _d;
|
|
@@ -13,6 +13,11 @@ const createWaasClientSecureStorage = () => ({
|
|
|
13
13
|
});
|
|
14
14
|
return shares ? JSON.parse(shares) : [];
|
|
15
15
|
}),
|
|
16
|
+
removeClientKeyShare: (accountAddress) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
+
utils.StorageService.removeItem(`waas_client_key_share_${accountAddress}`, {
|
|
18
|
+
priority: ['secureStorage'],
|
|
19
|
+
});
|
|
20
|
+
}),
|
|
16
21
|
setClientKeyShare: (accountAddress, shares) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
17
22
|
return utils.StorageService.setItem(`waas_client_key_share_${accountAddress}`, JSON.stringify(shares), {
|
|
18
23
|
priority: ['secureStorage'],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const createWaasClientSecureStorage: () => {
|
|
2
2
|
getClientKeyShare: (accountAddress: string) => Promise<any>;
|
|
3
|
+
removeClientKeyShare: (accountAddress: string) => Promise<void>;
|
|
3
4
|
setClientKeyShare: (accountAddress: string, shares: unknown[]) => Promise<void>;
|
|
4
5
|
};
|
|
@@ -9,6 +9,11 @@ const createWaasClientSecureStorage = () => ({
|
|
|
9
9
|
});
|
|
10
10
|
return shares ? JSON.parse(shares) : [];
|
|
11
11
|
}),
|
|
12
|
+
removeClientKeyShare: (accountAddress) => __awaiter(void 0, void 0, void 0, function* () {
|
|
13
|
+
StorageService.removeItem(`waas_client_key_share_${accountAddress}`, {
|
|
14
|
+
priority: ['secureStorage'],
|
|
15
|
+
});
|
|
16
|
+
}),
|
|
12
17
|
setClientKeyShare: (accountAddress, shares) => __awaiter(void 0, void 0, void 0, function* () {
|
|
13
18
|
return StorageService.setItem(`waas_client_key_share_${accountAddress}`, JSON.stringify(shares), {
|
|
14
19
|
priority: ['secureStorage'],
|