@dynamic-labs/waas-svm 4.11.1 → 4.12.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 CHANGED
@@ -1,4 +1,29 @@
1
1
 
2
+ ## [4.12.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.11.2...v4.12.0) (2025-04-14)
3
+
4
+
5
+ ### Features
6
+
7
+ * add sui sign transaction to waas-sui connector ([#8528](https://github.com/dynamic-labs/dynamic-auth/issues/8528)) ([7dfd806](https://github.com/dynamic-labs/dynamic-auth/commit/7dfd8063ac92d2ec6eb2de71a3ed2946a9f89fe3))
8
+ * implement zksync account abstraction connector ([#8318](https://github.com/dynamic-labs/dynamic-auth/issues/8318)) ([e80b42f](https://github.com/dynamic-labs/dynamic-auth/commit/e80b42f9067450348b0ff02c5b682653353cdcb9))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * only define primary wallet when it is done verifying ([#8521](https://github.com/dynamic-labs/dynamic-auth/issues/8521)) ([34f6058](https://github.com/dynamic-labs/dynamic-auth/commit/34f605817c91cc1b131b4de876609e231703f8b4))
14
+
15
+ ### [4.11.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.11.1...v4.11.2) (2025-04-11)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * correctly expire nonce ([#8518](https://github.com/dynamic-labs/dynamic-auth/issues/8518)) ([14c4eb1](https://github.com/dynamic-labs/dynamic-auth/commit/14c4eb143b8a6debc91fb0cb6aafe8336b370927))
21
+ * profile aspect ratio ([#8510](https://github.com/dynamic-labs/dynamic-auth/issues/8510)) ([869615d](https://github.com/dynamic-labs/dynamic-auth/commit/869615d00144d2df5c61eaa5ab39700114739732))
22
+ * **react-native:** ensure secure storage items are saved sequentially ([#8512](https://github.com/dynamic-labs/dynamic-auth/issues/8512)) ([53e2f7f](https://github.com/dynamic-labs/dynamic-auth/commit/53e2f7f47ce3ae79c781fcd3b9a446a0edbf4246))
23
+ * **react-native:** reload react-native webview when it is unmounted by OS ([#8477](https://github.com/dynamic-labs/dynamic-auth/issues/8477)) ([09e20a4](https://github.com/dynamic-labs/dynamic-auth/commit/09e20a418afd592fa31dffd7645729e0e77a8b3d))
24
+ * **react-native:** sync state with client when SDK fully loaded ([#8476](https://github.com/dynamic-labs/dynamic-auth/issues/8476)) ([bae8814](https://github.com/dynamic-labs/dynamic-auth/commit/bae88141e7d74e1ff453ee33ee16316c18e803d1))
25
+ * wallet standard wallets not sending SOL ([#8515](https://github.com/dynamic-labs/dynamic-auth/issues/8515)) ([0db973a](https://github.com/dynamic-labs/dynamic-auth/commit/0db973aceb5dc05cda142ceffcc925f9523a452d))
26
+
2
27
  ### [4.11.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.11.0...v4.11.1) (2025-04-09)
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.11.1";
6
+ var version = "4.12.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.11.1";
2
+ var version = "4.12.0";
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.11.1",
3
+ "version": "4.12.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,16 +18,16 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs-wallet/svm": "0.0.48",
21
+ "@dynamic-labs-wallet/svm": "0.0.60",
22
22
  "@solana/web3.js": "1.98.0",
23
23
  "eventemitter3": "5.0.1",
24
- "@dynamic-labs/assert-package-version": "4.11.1",
25
- "@dynamic-labs/logger": "4.11.1",
26
- "@dynamic-labs/rpc-providers": "4.11.1",
27
- "@dynamic-labs/solana-core": "4.11.1",
28
- "@dynamic-labs/types": "4.11.1",
29
- "@dynamic-labs/utils": "4.11.1",
30
- "@dynamic-labs/wallet-connector-core": "4.11.1"
24
+ "@dynamic-labs/assert-package-version": "4.12.0",
25
+ "@dynamic-labs/logger": "4.12.0",
26
+ "@dynamic-labs/rpc-providers": "4.12.0",
27
+ "@dynamic-labs/solana-core": "4.12.0",
28
+ "@dynamic-labs/types": "4.12.0",
29
+ "@dynamic-labs/utils": "4.12.0",
30
+ "@dynamic-labs/wallet-connector-core": "4.12.0"
31
31
  },
32
32
  "peerDependencies": {}
33
33
  }
@@ -171,19 +171,19 @@ class DynamicWaasSVMConnector extends solanaCore.SolanaWalletConnector {
171
171
  return this.getWalletClient();
172
172
  }
173
173
  exportPrivateKey() {
174
- return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, } = {}) {
174
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, } = {}) {
175
175
  const walletClient = this.getWaasWalletClient();
176
176
  const targetAccountAddress = accountAddress || this.activeAccountAddress;
177
177
  if (!targetAccountAddress) {
178
178
  throw new Error('Account address is required');
179
179
  }
180
- const privateKey = yield walletClient.exportPrivateKey({
180
+ if (!displayContainer) {
181
+ throw new Error('Missing display container for export private key');
182
+ }
183
+ yield walletClient.exportPrivateKey({
181
184
  accountAddress: targetAccountAddress,
185
+ displayContainer,
182
186
  });
183
- if (!(privateKey === null || privateKey === void 0 ? void 0 : privateKey.derivedPrivateKey)) {
184
- throw new Error('Error exporting private key');
185
- }
186
- return privateKey.derivedPrivateKey;
187
187
  });
188
188
  }
189
189
  importPrivateKey(_a) {
@@ -37,9 +37,10 @@ export declare class DynamicWaasSVMConnector extends SolanaWalletConnector imple
37
37
  getWalletClientByAddress({ accountAddress, }: {
38
38
  accountAddress: string;
39
39
  }): Connection;
40
- exportPrivateKey({ accountAddress, }?: {
40
+ exportPrivateKey({ accountAddress, displayContainer, }?: {
41
41
  accountAddress?: string;
42
- }): Promise<string>;
42
+ displayContainer?: HTMLIFrameElement;
43
+ }): Promise<void>;
43
44
  importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, }: {
44
45
  privateKey: string;
45
46
  chainName: string;
@@ -167,19 +167,19 @@ class DynamicWaasSVMConnector extends SolanaWalletConnector {
167
167
  return this.getWalletClient();
168
168
  }
169
169
  exportPrivateKey() {
170
- return __awaiter(this, arguments, void 0, function* ({ accountAddress, } = {}) {
170
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, } = {}) {
171
171
  const walletClient = this.getWaasWalletClient();
172
172
  const targetAccountAddress = accountAddress || this.activeAccountAddress;
173
173
  if (!targetAccountAddress) {
174
174
  throw new Error('Account address is required');
175
175
  }
176
- const privateKey = yield walletClient.exportPrivateKey({
176
+ if (!displayContainer) {
177
+ throw new Error('Missing display container for export private key');
178
+ }
179
+ yield walletClient.exportPrivateKey({
177
180
  accountAddress: targetAccountAddress,
181
+ displayContainer,
178
182
  });
179
- if (!(privateKey === null || privateKey === void 0 ? void 0 : privateKey.derivedPrivateKey)) {
180
- throw new Error('Error exporting private key');
181
- }
182
- return privateKey.derivedPrivateKey;
183
183
  });
184
184
  }
185
185
  importPrivateKey(_a) {