@dynamic-labs/waas 4.47.1 → 4.47.3
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 +17 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/DynamicWaasMixin.cjs +19 -0
- package/src/DynamicWaasMixin.d.ts +5 -1
- package/src/DynamicWaasMixin.js +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.47.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.47.2...v4.47.3) (2025-11-27)
|
|
3
|
+
|
|
4
|
+
### [4.47.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.47.1...v4.47.2) (2025-11-27)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* add export client key share from google drive ([#9942](https://github.com/dynamic-labs/dynamic-auth/issues/9942)) ([38091b8](https://github.com/dynamic-labs/dynamic-auth/commit/38091b84cb69713591ab2b78e2cc26d4a56ca407))
|
|
10
|
+
* add token balance refresh to dynamic widget ([#9645](https://github.com/dynamic-labs/dynamic-auth/issues/9645)) ([331954e](https://github.com/dynamic-labs/dynamic-auth/commit/331954ea38c5f4058938392bb4eea973997d0ff6))
|
|
11
|
+
* **react-native:** introduce wallets.connectWallet and wallets.walletOptions ([#9958](https://github.com/dynamic-labs/dynamic-auth/issues/9958)) ([d6d2fff](https://github.com/dynamic-labs/dynamic-auth/commit/d6d2fff3b2a238d8b7a27553d9c6667c40bc53cd))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* await oauth flow on popup ([#9944](https://github.com/dynamic-labs/dynamic-auth/issues/9944)) ([486a536](https://github.com/dynamic-labs/dynamic-auth/commit/486a5365066f1492ddd47ff830eb5a4f347e5ab3))
|
|
17
|
+
* ensure MFA modal only open when necessary ([#9959](https://github.com/dynamic-labs/dynamic-auth/issues/9959)) ([1783a61](https://github.com/dynamic-labs/dynamic-auth/commit/1783a61ddf97eb8af82c132cfc531fee7f57fa0f))
|
|
18
|
+
|
|
2
19
|
### [4.47.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.47.0...v4.47.1) (2025-11-24)
|
|
3
20
|
|
|
4
21
|
|
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.47.
|
|
3
|
+
"version": "4.47.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.47.
|
|
20
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.47.
|
|
23
|
-
"@dynamic-labs/logger": "4.47.
|
|
24
|
-
"@dynamic-labs/solana-core": "4.47.
|
|
25
|
-
"@dynamic-labs/sui-core": "4.47.
|
|
26
|
-
"@dynamic-labs/utils": "4.47.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.47.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.47.3",
|
|
20
|
+
"@dynamic-labs/sdk-api-core": "0.0.823",
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.211",
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.47.3",
|
|
23
|
+
"@dynamic-labs/logger": "4.47.3",
|
|
24
|
+
"@dynamic-labs/solana-core": "4.47.3",
|
|
25
|
+
"@dynamic-labs/sui-core": "4.47.3",
|
|
26
|
+
"@dynamic-labs/utils": "4.47.3",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.47.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {}
|
|
30
30
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -230,6 +230,25 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
230
230
|
});
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
+
exportClientKeysharesFromGoogleDrive(_a) {
|
|
234
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
235
|
+
var _b, _c;
|
|
236
|
+
if (!accountAddress) {
|
|
237
|
+
throw new utils.DynamicError('Account address is required');
|
|
238
|
+
}
|
|
239
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
240
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
241
|
+
if (!signedSessionId) {
|
|
242
|
+
throw new utils.DynamicError('Signed session ID is required');
|
|
243
|
+
}
|
|
244
|
+
return walletClient.exportClientKeysharesFromGoogleDrive({
|
|
245
|
+
accountAddress,
|
|
246
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
247
|
+
password,
|
|
248
|
+
signedSessionId,
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
}
|
|
233
252
|
refreshWalletAccountShares(_a) {
|
|
234
253
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
235
254
|
var _b, _c, _d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
2
|
+
import { InstrumentOptions, Logger } from '@dynamic-labs/logger';
|
|
2
3
|
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
3
|
-
import { Logger, InstrumentOptions } from '@dynamic-labs/logger';
|
|
4
4
|
import { InstrumentationTimer, InstrumentContext } from '../utils/instrumentation';
|
|
5
5
|
export declare class WaasExportHandler {
|
|
6
6
|
private iframeStamper;
|
|
@@ -71,6 +71,10 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
71
71
|
accountAddress: string;
|
|
72
72
|
password?: string;
|
|
73
73
|
}): Promise<void>;
|
|
74
|
+
exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
|
|
75
|
+
accountAddress: string;
|
|
76
|
+
password?: string;
|
|
77
|
+
}): Promise<void>;
|
|
74
78
|
refreshWalletAccountShares({ accountAddress, password, }: {
|
|
75
79
|
accountAddress: string;
|
|
76
80
|
password?: string;
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -226,6 +226,25 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
+
exportClientKeysharesFromGoogleDrive(_a) {
|
|
230
|
+
return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
231
|
+
var _b, _c;
|
|
232
|
+
if (!accountAddress) {
|
|
233
|
+
throw new DynamicError('Account address is required');
|
|
234
|
+
}
|
|
235
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
236
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
237
|
+
if (!signedSessionId) {
|
|
238
|
+
throw new DynamicError('Signed session ID is required');
|
|
239
|
+
}
|
|
240
|
+
return walletClient.exportClientKeysharesFromGoogleDrive({
|
|
241
|
+
accountAddress,
|
|
242
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
243
|
+
password,
|
|
244
|
+
signedSessionId,
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
}
|
|
229
248
|
refreshWalletAccountShares(_a) {
|
|
230
249
|
return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
231
250
|
var _b, _c, _d;
|