@dynamic-labs/waas-evm 4.11.0 → 4.11.2

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,23 @@
1
1
 
2
+ ### [4.11.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.11.1...v4.11.2) (2025-04-11)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * correctly expire nonce ([#8518](https://github.com/dynamic-labs/dynamic-auth/issues/8518)) ([14c4eb1](https://github.com/dynamic-labs/dynamic-auth/commit/14c4eb143b8a6debc91fb0cb6aafe8336b370927))
8
+ * profile aspect ratio ([#8510](https://github.com/dynamic-labs/dynamic-auth/issues/8510)) ([869615d](https://github.com/dynamic-labs/dynamic-auth/commit/869615d00144d2df5c61eaa5ab39700114739732))
9
+ * **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))
10
+ * **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))
11
+ * **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))
12
+ * 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))
13
+
14
+ ### [4.11.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.11.0...v4.11.1) (2025-04-09)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * fix gw api base url default ([#8503](https://github.com/dynamic-labs/dynamic-auth/issues/8503)) ([85ec8e4](https://github.com/dynamic-labs/dynamic-auth/commit/85ec8e465be34d201398114be5e45b8f84ef68cb))
20
+
2
21
  ## [4.11.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.10.4...v4.11.0) (2025-04-08)
3
22
 
4
23
 
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.0";
6
+ var version = "4.11.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.11.0";
2
+ var version = "4.11.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas-evm",
3
- "version": "4.11.0",
3
+ "version": "4.11.2",
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,14 +18,14 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs-wallet/evm": "0.0.48",
21
+ "@dynamic-labs-wallet/evm": "0.0.60",
22
22
  "viem": "2.21.55",
23
- "@dynamic-labs/assert-package-version": "4.11.0",
24
- "@dynamic-labs/ethereum-core": "4.11.0",
25
- "@dynamic-labs/logger": "4.11.0",
26
- "@dynamic-labs/types": "4.11.0",
27
- "@dynamic-labs/utils": "4.11.0",
28
- "@dynamic-labs/wallet-connector-core": "4.11.0"
23
+ "@dynamic-labs/assert-package-version": "4.11.2",
24
+ "@dynamic-labs/ethereum-core": "4.11.2",
25
+ "@dynamic-labs/logger": "4.11.2",
26
+ "@dynamic-labs/types": "4.11.2",
27
+ "@dynamic-labs/utils": "4.11.2",
28
+ "@dynamic-labs/wallet-connector-core": "4.11.2"
29
29
  },
30
30
  "peerDependencies": {}
31
31
  }
@@ -206,20 +206,20 @@ class DynamicWaasEVMConnector extends ethereumCore.EthereumWalletConnector {
206
206
  return this.getWalletClient();
207
207
  }
208
208
  exportPrivateKey() {
209
- return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, } = {}) {
209
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, } = {}) {
210
210
  var _a;
211
211
  const walletClient = this.getWaasWalletClient();
212
212
  const targetAccountAddress = accountAddress || ((_a = this.getActiveAccount()) === null || _a === void 0 ? void 0 : _a.address);
213
213
  if (!targetAccountAddress) {
214
214
  throw new Error('Account address is required');
215
215
  }
216
- const privateKey = yield walletClient.exportPrivateKey({
216
+ if (!displayContainer) {
217
+ throw new Error('Missing display container for export private key');
218
+ }
219
+ yield walletClient.exportPrivateKey({
217
220
  accountAddress: targetAccountAddress,
221
+ displayContainer,
218
222
  });
219
- if (!(privateKey === null || privateKey === void 0 ? void 0 : privateKey.derivedPrivateKey)) {
220
- throw new Error('Error exporting private key');
221
- }
222
- return privateKey.derivedPrivateKey;
223
223
  });
224
224
  }
225
225
  importPrivateKey(_a) {
@@ -47,9 +47,10 @@ export declare class DynamicWaasEVMConnector extends EthereumWalletConnector imp
47
47
  getWalletClientByAddress({ accountAddress, }: {
48
48
  accountAddress: string;
49
49
  }): WalletClient<Transport, ViemChain, Account> | undefined;
50
- exportPrivateKey({ accountAddress, }?: {
50
+ exportPrivateKey({ accountAddress, displayContainer, }?: {
51
51
  accountAddress?: string;
52
- }): Promise<string>;
52
+ displayContainer?: HTMLIFrameElement;
53
+ }): Promise<void>;
53
54
  importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, }: {
54
55
  privateKey: string;
55
56
  chainName: string;
@@ -202,20 +202,20 @@ class DynamicWaasEVMConnector extends EthereumWalletConnector {
202
202
  return this.getWalletClient();
203
203
  }
204
204
  exportPrivateKey() {
205
- return __awaiter(this, arguments, void 0, function* ({ accountAddress, } = {}) {
205
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, } = {}) {
206
206
  var _a;
207
207
  const walletClient = this.getWaasWalletClient();
208
208
  const targetAccountAddress = accountAddress || ((_a = this.getActiveAccount()) === null || _a === void 0 ? void 0 : _a.address);
209
209
  if (!targetAccountAddress) {
210
210
  throw new Error('Account address is required');
211
211
  }
212
- const privateKey = yield walletClient.exportPrivateKey({
212
+ if (!displayContainer) {
213
+ throw new Error('Missing display container for export private key');
214
+ }
215
+ yield walletClient.exportPrivateKey({
213
216
  accountAddress: targetAccountAddress,
217
+ displayContainer,
214
218
  });
215
- if (!(privateKey === null || privateKey === void 0 ? void 0 : privateKey.derivedPrivateKey)) {
216
- throw new Error('Error exporting private key');
217
- }
218
- return privateKey.derivedPrivateKey;
219
219
  });
220
220
  }
221
221
  importPrivateKey(_a) {