@dynamic-labs/waas-sui 4.59.2 → 4.60.1
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,29 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.60.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.60.0...v4.60.1) (2026-02-09)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add WAAS password handlers to DynamicContextProvider settings ([#10360](https://github.com/dynamic-labs/dynamic-auth/issues/10360)) ([5fc3fa7](https://github.com/dynamic-labs/dynamic-auth/commit/5fc3fa7148c53b64d36672be2d1ae629cb9cdaf8))
|
|
8
|
+
* improve password handling and UI for wallet protection ([#10386](https://github.com/dynamic-labs/dynamic-auth/issues/10386)) ([d27936e](https://github.com/dynamic-labs/dynamic-auth/commit/d27936e5bea37facceefccc0f2507d25a775ad33))
|
|
9
|
+
* pass authToken to wallet recovery operations ([#10379](https://github.com/dynamic-labs/dynamic-auth/issues/10379)) ([294efc7](https://github.com/dynamic-labs/dynamic-auth/commit/294efc7ab5816f63b7e5cc49a150cf9d34d300af))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* override fast-xml-parser to 5.3.4 for CVE-2026-25128 ([#10381](https://github.com/dynamic-labs/dynamic-auth/issues/10381)) ([7fb4c22](https://github.com/dynamic-labs/dynamic-auth/commit/7fb4c221252b84bf38bbdab0b37b8f9a981ebe1a))
|
|
15
|
+
* unlock wallet view error handling and password error UI ([#10388](https://github.com/dynamic-labs/dynamic-auth/issues/10388)) ([5ffc8e1](https://github.com/dynamic-labs/dynamic-auth/commit/5ffc8e1e6dd0d7f32bb94c37ce3674be949f010b))
|
|
16
|
+
|
|
17
|
+
## [4.60.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.59.2...v4.60.0) (2026-02-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add prompt to unlock wallet when getting encrypted shares ([#10333](https://github.com/dynamic-labs/dynamic-auth/issues/10333)) ([7009dfa](https://github.com/dynamic-labs/dynamic-auth/commit/7009dfa315538f4f4ad27ff37e7902f10e1cf019))
|
|
23
|
+
* add stellar sendBalance method ([#10310](https://github.com/dynamic-labs/dynamic-auth/issues/10310)) ([c083ea0](https://github.com/dynamic-labs/dynamic-auth/commit/c083ea0a7caa0cb9095d32897acf677c1b661cb4))
|
|
24
|
+
* **webview-controller:** add DelegatedAccessController ([#10348](https://github.com/dynamic-labs/dynamic-auth/issues/10348)) ([57599e4](https://github.com/dynamic-labs/dynamic-auth/commit/57599e4dd1ad6f4b22f98d49d7fae1a724b719ee))
|
|
25
|
+
* **webview-messages:** add DelegatedAccessMessages types ([#10347](https://github.com/dynamic-labs/dynamic-auth/issues/10347)) ([b0a1275](https://github.com/dynamic-labs/dynamic-auth/commit/b0a12759016fa6f8a76753c2394d589acb18ccf1))
|
|
26
|
+
|
|
2
27
|
### [4.59.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.59.1...v4.59.2) (2026-02-03)
|
|
3
28
|
|
|
4
29
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas-sui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.60.1",
|
|
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,19 +18,19 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
22
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.864",
|
|
22
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.260",
|
|
23
23
|
"@mysten/sui": "1.45.2",
|
|
24
24
|
"@mysten/wallet-standard": "0.19.9",
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
26
|
-
"@dynamic-labs/logger": "4.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
28
|
-
"@dynamic-labs/sui-core": "4.
|
|
29
|
-
"@dynamic-labs/types": "4.
|
|
30
|
-
"@dynamic-labs/utils": "4.
|
|
31
|
-
"@dynamic-labs/waas": "4.
|
|
32
|
-
"@dynamic-labs/wallet-book": "4.
|
|
33
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.60.1",
|
|
26
|
+
"@dynamic-labs/logger": "4.60.1",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.60.1",
|
|
28
|
+
"@dynamic-labs/sui-core": "4.60.1",
|
|
29
|
+
"@dynamic-labs/types": "4.60.1",
|
|
30
|
+
"@dynamic-labs/utils": "4.60.1",
|
|
31
|
+
"@dynamic-labs/waas": "4.60.1",
|
|
32
|
+
"@dynamic-labs/wallet-book": "4.60.1",
|
|
33
|
+
"@dynamic-labs/wallet-connector-core": "4.60.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {}
|
|
36
36
|
}
|
|
@@ -10,8 +10,8 @@ var suiCore = require('@dynamic-labs/sui-core');
|
|
|
10
10
|
var utils = require('@dynamic-labs/utils');
|
|
11
11
|
var waas = require('@dynamic-labs/waas');
|
|
12
12
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
13
|
-
var WaasSuiWallet = require('../wallet/WaasSuiWallet.cjs');
|
|
14
13
|
var logger = require('../../utils/logger.cjs');
|
|
14
|
+
var WaasSuiWallet = require('../wallet/WaasSuiWallet.cjs');
|
|
15
15
|
|
|
16
16
|
class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConnector) {
|
|
17
17
|
constructor(props) {
|
|
@@ -140,11 +140,15 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
140
140
|
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
141
141
|
mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
|
|
142
142
|
}));
|
|
143
|
+
const password = yield this.getPasswordIfNeeded({
|
|
144
|
+
accountAddress: this.activeAccountAddress,
|
|
145
|
+
});
|
|
143
146
|
const signedMessage = yield waasSuiClient.signMessage({
|
|
144
147
|
accountAddress: this.activeAccountAddress,
|
|
145
148
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
146
149
|
message,
|
|
147
150
|
mfaToken,
|
|
151
|
+
password,
|
|
148
152
|
signedSessionId,
|
|
149
153
|
});
|
|
150
154
|
return signedMessage;
|
|
@@ -168,9 +172,13 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
168
172
|
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
169
173
|
mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
|
|
170
174
|
}));
|
|
175
|
+
const password = yield this.getPasswordIfNeeded({
|
|
176
|
+
accountAddress: this.activeAccountAddress,
|
|
177
|
+
});
|
|
171
178
|
const signedTx = yield walletClient.signTransaction({
|
|
172
179
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
173
180
|
mfaToken,
|
|
181
|
+
password,
|
|
174
182
|
senderAddress: this.activeAccountAddress,
|
|
175
183
|
signedSessionId,
|
|
176
184
|
transaction: txString,
|
|
@@ -16,6 +16,7 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
|
16
16
|
getMfaToken?: ((props?: {
|
|
17
17
|
mfaAction?: MFAAction | undefined;
|
|
18
18
|
} | undefined) => Promise<string | undefined>) | undefined;
|
|
19
|
+
getWalletPassword?: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn | undefined;
|
|
19
20
|
getAuthToken?: (() => string) | undefined;
|
|
20
21
|
environmentId?: string | undefined;
|
|
21
22
|
baseApiUrl?: string | undefined;
|
|
@@ -32,6 +33,10 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
|
32
33
|
setGetMfaTokenFunction(getMfaToken: (props?: {
|
|
33
34
|
mfaAction?: MFAAction | undefined;
|
|
34
35
|
} | undefined) => Promise<string | undefined>): void;
|
|
36
|
+
setGetWalletPasswordFunction(getWalletPassword: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn): void;
|
|
37
|
+
getPasswordIfNeeded({ accountAddress, }: {
|
|
38
|
+
accountAddress: string;
|
|
39
|
+
}): Promise<string | undefined>;
|
|
35
40
|
setEnvironmentId(environmentId: string): void;
|
|
36
41
|
setBaseApiUrl(baseApiUrl: string): void;
|
|
37
42
|
setBaseClientKeysharesRelayApiUrl(baseClientKeysharesRelayApiUrl?: string | undefined): void;
|
|
@@ -104,7 +109,7 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
|
104
109
|
}): Promise<void>;
|
|
105
110
|
updatePassword({ accountAddress, existingPassword, newPassword, }: {
|
|
106
111
|
accountAddress: string;
|
|
107
|
-
existingPassword
|
|
112
|
+
existingPassword?: string | undefined;
|
|
108
113
|
newPassword: string;
|
|
109
114
|
}): Promise<void>;
|
|
110
115
|
signRawMessage({ accountAddress, message, password, }: {
|
|
@@ -114,10 +119,11 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
|
114
119
|
}): Promise<string>;
|
|
115
120
|
unlockWallet({ accountAddress, password, }: {
|
|
116
121
|
accountAddress: string;
|
|
117
|
-
password
|
|
122
|
+
password?: string | undefined;
|
|
118
123
|
}): Promise<import("@dynamic-labs-wallet/browser-wallet-client").GetWalletResponse>;
|
|
119
|
-
getWalletRecoveryState({ accountAddress, }: {
|
|
124
|
+
getWalletRecoveryState({ accountAddress, signedSessionId, }: {
|
|
120
125
|
accountAddress: string;
|
|
126
|
+
signedSessionId: string;
|
|
121
127
|
}): Promise<import("@dynamic-labs-wallet/browser-wallet-client").WalletRecoveryState>;
|
|
122
128
|
endSession(): Promise<void>;
|
|
123
129
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
@@ -6,8 +6,8 @@ import { SuiWalletConnector, SuiUiTransaction } from '@dynamic-labs/sui-core';
|
|
|
6
6
|
import { DynamicError } from '@dynamic-labs/utils';
|
|
7
7
|
import { withDynamicWaas } from '@dynamic-labs/waas';
|
|
8
8
|
import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
|
|
9
|
-
import { WaasSuiWallet } from '../wallet/WaasSuiWallet.js';
|
|
10
9
|
import { logger } from '../../utils/logger.js';
|
|
10
|
+
import { WaasSuiWallet } from '../wallet/WaasSuiWallet.js';
|
|
11
11
|
|
|
12
12
|
class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
13
13
|
constructor(props) {
|
|
@@ -136,11 +136,15 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
136
136
|
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
137
137
|
mfaAction: MFAAction.WalletWaasSign,
|
|
138
138
|
}));
|
|
139
|
+
const password = yield this.getPasswordIfNeeded({
|
|
140
|
+
accountAddress: this.activeAccountAddress,
|
|
141
|
+
});
|
|
139
142
|
const signedMessage = yield waasSuiClient.signMessage({
|
|
140
143
|
accountAddress: this.activeAccountAddress,
|
|
141
144
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
142
145
|
message,
|
|
143
146
|
mfaToken,
|
|
147
|
+
password,
|
|
144
148
|
signedSessionId,
|
|
145
149
|
});
|
|
146
150
|
return signedMessage;
|
|
@@ -164,9 +168,13 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
164
168
|
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
165
169
|
mfaAction: MFAAction.WalletWaasSign,
|
|
166
170
|
}));
|
|
171
|
+
const password = yield this.getPasswordIfNeeded({
|
|
172
|
+
accountAddress: this.activeAccountAddress,
|
|
173
|
+
});
|
|
167
174
|
const signedTx = yield walletClient.signTransaction({
|
|
168
175
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
169
176
|
mfaToken,
|
|
177
|
+
password,
|
|
170
178
|
senderAddress: this.activeAccountAddress,
|
|
171
179
|
signedSessionId,
|
|
172
180
|
transaction: txString,
|