@dynamic-labs/waas-svm 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
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.59.2";
6
+ var version = "4.60.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.59.2";
2
+ var version = "4.60.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas-svm",
3
- "version": "4.59.2",
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.860",
22
- "@dynamic-labs/embedded-wallet-solana": "4.59.2",
21
+ "@dynamic-labs/sdk-api-core": "0.0.864",
22
+ "@dynamic-labs/embedded-wallet-solana": "4.60.1",
23
23
  "@solana/web3.js": "1.98.1",
24
24
  "eventemitter3": "5.0.1",
25
25
  "bs58": "5.0.0",
26
- "@dynamic-labs/assert-package-version": "4.59.2",
27
- "@dynamic-labs/logger": "4.59.2",
28
- "@dynamic-labs/rpc-providers": "4.59.2",
29
- "@dynamic-labs/solana-core": "4.59.2",
30
- "@dynamic-labs/types": "4.59.2",
31
- "@dynamic-labs/utils": "4.59.2",
32
- "@dynamic-labs/waas": "4.59.2",
33
- "@dynamic-labs/wallet-connector-core": "4.59.2"
26
+ "@dynamic-labs/assert-package-version": "4.60.1",
27
+ "@dynamic-labs/logger": "4.60.1",
28
+ "@dynamic-labs/rpc-providers": "4.60.1",
29
+ "@dynamic-labs/solana-core": "4.60.1",
30
+ "@dynamic-labs/types": "4.60.1",
31
+ "@dynamic-labs/utils": "4.60.1",
32
+ "@dynamic-labs/waas": "4.60.1",
33
+ "@dynamic-labs/wallet-connector-core": "4.60.1"
34
34
  },
35
35
  "peerDependencies": {}
36
36
  }
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var web3_js = require('@solana/web3.js');
8
+ var embeddedWalletSolana = require('@dynamic-labs/embedded-wallet-solana');
8
9
  var sdkApiCore = require('@dynamic-labs/sdk-api-core');
9
10
  var solanaCore = require('@dynamic-labs/solana-core');
10
11
  var utils = require('@dynamic-labs/utils');
11
12
  var waas = require('@dynamic-labs/waas');
12
13
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
13
- var embeddedWalletSolana = require('@dynamic-labs/embedded-wallet-solana');
14
14
  var logger = require('../../utils/logger.cjs');
15
15
  var DynamicWaasSVMSigner = require('../signer/DynamicWaasSVMSigner.cjs');
16
16
  var logger$1 = require('@dynamic-labs/logger');
@@ -129,6 +129,9 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
129
129
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
130
130
  mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
131
131
  }));
132
+ const password = yield this.getPasswordIfNeeded({
133
+ accountAddress: this.activeAccountAddress,
134
+ });
132
135
  const accountAddress = this.activeAccountAddress;
133
136
  const authToken = (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this);
134
137
  const signedMessage = yield this.instrumentAsync({
@@ -139,6 +142,7 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
139
142
  authToken,
140
143
  message,
141
144
  mfaToken,
145
+ password,
142
146
  signedSessionId,
143
147
  traceContext: {
144
148
  startTime: effectiveStartTime,
@@ -207,6 +211,9 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
207
211
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
208
212
  mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
209
213
  }));
214
+ const password = yield this.getPasswordIfNeeded({
215
+ accountAddress: this.activeAccountAddress,
216
+ });
210
217
  const isVersionedSolanaTransaction = solanaCore.isVersionedTransaction(txToSign);
211
218
  const messageBytes = isVersionedSolanaTransaction
212
219
  ? txToSign.message.serialize()
@@ -222,6 +229,7 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
222
229
  authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
223
230
  chainId,
224
231
  mfaToken,
232
+ password,
225
233
  senderAddress,
226
234
  signedSessionId,
227
235
  traceContext: {
@@ -16,6 +16,7 @@ declare const DynamicWaasSVMConnector_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;
@@ -29,9 +30,16 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
29
30
  validateActiveWallet(expectedAddress: string): Promise<void>;
30
31
  setGetAuthTokenFunction(getAuthToken: () => string): void;
31
32
  setWaasAuthMode(authMode: "cookie" | "header"): void;
33
+ /**
34
+ * Enable or disable SVM gas sponsorship for this connector.
35
+ */
32
36
  setGetMfaTokenFunction(getMfaToken: (props?: {
33
37
  mfaAction?: MFAAction | undefined;
34
38
  } | undefined) => Promise<string | undefined>): void;
39
+ setGetWalletPasswordFunction(getWalletPassword: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn): void;
40
+ getPasswordIfNeeded({ accountAddress, }: {
41
+ accountAddress: string;
42
+ }): Promise<string | undefined>;
35
43
  setEnvironmentId(environmentId: string): void;
36
44
  setBaseApiUrl(baseApiUrl: string): void;
37
45
  setBaseClientKeysharesRelayApiUrl(baseClientKeysharesRelayApiUrl?: string | undefined): void;
@@ -104,7 +112,7 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
104
112
  }): Promise<void>;
105
113
  updatePassword({ accountAddress, existingPassword, newPassword, }: {
106
114
  accountAddress: string;
107
- existingPassword: string;
115
+ existingPassword?: string | undefined;
108
116
  newPassword: string;
109
117
  }): Promise<void>;
110
118
  signRawMessage({ accountAddress, message, password, }: {
@@ -114,10 +122,11 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
114
122
  }): Promise<string>;
115
123
  unlockWallet({ accountAddress, password, }: {
116
124
  accountAddress: string;
117
- password: string;
125
+ password?: string | undefined;
118
126
  }): Promise<import("@dynamic-labs-wallet/core").GetWalletResponse>;
119
- getWalletRecoveryState({ accountAddress, }: {
127
+ getWalletRecoveryState({ accountAddress, signedSessionId, }: {
120
128
  accountAddress: string;
129
+ signedSessionId: string;
121
130
  }): Promise<import("@dynamic-labs-wallet/core").WalletRecoveryState>;
122
131
  endSession(): Promise<void>;
123
132
  getActiveAccountAddress(): Promise<string | undefined>;
@@ -1,12 +1,12 @@
1
1
  'use client'
2
2
  import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { PublicKey } from '@solana/web3.js';
4
+ import { sponsorSolanaTransaction } from '@dynamic-labs/embedded-wallet-solana';
4
5
  import { MFAAction } from '@dynamic-labs/sdk-api-core';
5
6
  import { SolanaWalletConnector, isVersionedTransaction, SolanaUiTransaction } from '@dynamic-labs/solana-core';
6
7
  import { DynamicError } from '@dynamic-labs/utils';
7
8
  import { withDynamicWaas } from '@dynamic-labs/waas';
8
9
  import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
9
- import { sponsorSolanaTransaction } from '@dynamic-labs/embedded-wallet-solana';
10
10
  import { logger } from '../../utils/logger.js';
11
11
  import { DynamicWaasSVMSigner } from '../signer/DynamicWaasSVMSigner.js';
12
12
  import { Logger } from '@dynamic-labs/logger';
@@ -125,6 +125,9 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
125
125
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
126
126
  mfaAction: MFAAction.WalletWaasSign,
127
127
  }));
128
+ const password = yield this.getPasswordIfNeeded({
129
+ accountAddress: this.activeAccountAddress,
130
+ });
128
131
  const accountAddress = this.activeAccountAddress;
129
132
  const authToken = (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this);
130
133
  const signedMessage = yield this.instrumentAsync({
@@ -135,6 +138,7 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
135
138
  authToken,
136
139
  message,
137
140
  mfaToken,
141
+ password,
138
142
  signedSessionId,
139
143
  traceContext: {
140
144
  startTime: effectiveStartTime,
@@ -203,6 +207,9 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
203
207
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
204
208
  mfaAction: MFAAction.WalletWaasSign,
205
209
  }));
210
+ const password = yield this.getPasswordIfNeeded({
211
+ accountAddress: this.activeAccountAddress,
212
+ });
206
213
  const isVersionedSolanaTransaction = isVersionedTransaction(txToSign);
207
214
  const messageBytes = isVersionedSolanaTransaction
208
215
  ? txToSign.message.serialize()
@@ -218,6 +225,7 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
218
225
  authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
219
226
  chainId,
220
227
  mfaToken,
228
+ password,
221
229
  senderAddress,
222
230
  signedSessionId,
223
231
  traceContext: {