@dynamic-labs/waas-evm 4.9.2-preview.0 → 4.9.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,5 +1,18 @@
1
1
 
2
- ### [4.9.2-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.1...v4.9.2-preview.0) (2025-03-11)
2
+ ### [4.9.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.1...v4.9.2) (2025-03-12)
3
+
4
+
5
+ ### Features
6
+
7
+ * **QNTM-2951:** update sdk styles ([#8214](https://github.com/dynamic-labs/dynamic-auth/issues/8214)) ([45cefa8](https://github.com/dynamic-labs/dynamic-auth/commit/45cefa82bdaad769c63ffeab4fb48f88ac855461))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * embedded widget race condition that would show both embedded and non-embedded widgets at the same time ([#8208](https://github.com/dynamic-labs/dynamic-auth/issues/8208)) ([031fb77](https://github.com/dynamic-labs/dynamic-auth/commit/031fb775c10daa383bf56ab7ba5fa4cf6ae9451c))
13
+ * **iframe-setup:** require the initial parent url when using an iframe ([#8268](https://github.com/dynamic-labs/dynamic-auth/issues/8268)) ([258e8a1](https://github.com/dynamic-labs/dynamic-auth/commit/258e8a128c31b8695518f9943bc74de9fce63196))
14
+ * improve WalletConnect experience ([#8201](https://github.com/dynamic-labs/dynamic-auth/issues/8201)) ([a09b16d](https://github.com/dynamic-labs/dynamic-auth/commit/a09b16de2ccd3cbba89f70a8ded4b7656f09f807)), closes [#8202](https://github.com/dynamic-labs/dynamic-auth/issues/8202) [#8207](https://github.com/dynamic-labs/dynamic-auth/issues/8207)
15
+ * prevent closing modal when mfa view is required ([#8156](https://github.com/dynamic-labs/dynamic-auth/issues/8156)) ([c34b245](https://github.com/dynamic-labs/dynamic-auth/commit/c34b24509e3f96046e72150b055d9c820f98706f))
3
16
 
4
17
  ### [4.9.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.0...v4.9.1) (2025-03-11)
5
18
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.9.2-preview.0";
6
+ var version = "4.9.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.9.2-preview.0";
2
+ var version = "4.9.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.9.2-preview.0",
3
+ "version": "4.9.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.33",
21
+ "@dynamic-labs-wallet/evm": "0.0.42",
22
22
  "viem": "2.21.55",
23
- "@dynamic-labs/assert-package-version": "4.9.2-preview.0",
24
- "@dynamic-labs/ethereum-core": "4.9.2-preview.0",
25
- "@dynamic-labs/logger": "4.9.2-preview.0",
26
- "@dynamic-labs/types": "4.9.2-preview.0",
27
- "@dynamic-labs/utils": "4.9.2-preview.0",
28
- "@dynamic-labs/wallet-connector-core": "4.9.2-preview.0"
23
+ "@dynamic-labs/assert-package-version": "4.9.2",
24
+ "@dynamic-labs/ethereum-core": "4.9.2",
25
+ "@dynamic-labs/logger": "4.9.2",
26
+ "@dynamic-labs/types": "4.9.2",
27
+ "@dynamic-labs/utils": "4.9.2",
28
+ "@dynamic-labs/wallet-connector-core": "4.9.2"
29
29
  },
30
30
  "peerDependencies": {}
31
31
  }
@@ -29,6 +29,9 @@ class DynamicWaasEVMConnector extends ethereumCore.EthereumWalletConnector {
29
29
  setBaseApiUrl(baseApiUrl) {
30
30
  this.baseApiUrl = baseApiUrl;
31
31
  }
32
+ setRelayUrl(relayUrl) {
33
+ this.relayUrl = relayUrl;
34
+ }
32
35
  setlastUsedChainId(chainId) {
33
36
  if (chainId === undefined) {
34
37
  localStorage.removeItem(DynamicWaasEVMConnector.lastUsedChainIdStorageKey);
@@ -116,7 +119,7 @@ class DynamicWaasEVMConnector extends ethereumCore.EthereumWalletConnector {
116
119
  return new evm.DynamicEvmWalletClient({
117
120
  authToken,
118
121
  baseApiUrl: this.baseApiUrl,
119
- baseMPCRelayApiUrl: 'relay.dynamic-preprod.xyz',
122
+ baseMPCRelayApiUrl: this.relayUrl || 'relay.dynamic-preprod.xyz',
120
123
  environmentId: this.environmentId,
121
124
  });
122
125
  }
@@ -1,9 +1,10 @@
1
1
  import { Account, Hex, Transport, WalletClient, Chain as ViemChain } from 'viem';
2
2
  import { LocalAccount } from 'viem/accounts';
3
3
  import { DynamicEvmWalletClient } from '@dynamic-labs-wallet/evm';
4
+ import { IDynamicWaasConnector } from '@dynamic-labs/wallet-connector-core';
4
5
  import { EthereumWalletConnector, SwitchNetworkOps, EthereumWalletConnectorOpts } from '@dynamic-labs/ethereum-core';
5
6
  import { IUITransaction } from '@dynamic-labs/types';
6
- export declare class DynamicWaasEVMConnector extends EthereumWalletConnector {
7
+ export declare class DynamicWaasEVMConnector extends EthereumWalletConnector implements IDynamicWaasConnector {
7
8
  static lastUsedChainIdStorageKey: string;
8
9
  name: string;
9
10
  overrideKey: string;
@@ -13,10 +14,12 @@ export declare class DynamicWaasEVMConnector extends EthereumWalletConnector {
13
14
  private dynamicWaasClient;
14
15
  private activeAccountAddress;
15
16
  private baseApiUrl?;
17
+ private relayUrl?;
16
18
  constructor(props: EthereumWalletConnectorOpts);
17
19
  setGetAuthTokenFunction(getAuthToken: () => string): void;
18
20
  setEnvironmentId(environmentId: string): void;
19
21
  setBaseApiUrl(baseApiUrl: string): void;
22
+ setRelayUrl(relayUrl: string): void;
20
23
  setlastUsedChainId(chainId: number | undefined): void;
21
24
  private getlastUsedChainId;
22
25
  private currentChainId;
@@ -25,6 +25,9 @@ class DynamicWaasEVMConnector extends EthereumWalletConnector {
25
25
  setBaseApiUrl(baseApiUrl) {
26
26
  this.baseApiUrl = baseApiUrl;
27
27
  }
28
+ setRelayUrl(relayUrl) {
29
+ this.relayUrl = relayUrl;
30
+ }
28
31
  setlastUsedChainId(chainId) {
29
32
  if (chainId === undefined) {
30
33
  localStorage.removeItem(DynamicWaasEVMConnector.lastUsedChainIdStorageKey);
@@ -112,7 +115,7 @@ class DynamicWaasEVMConnector extends EthereumWalletConnector {
112
115
  return new DynamicEvmWalletClient({
113
116
  authToken,
114
117
  baseApiUrl: this.baseApiUrl,
115
- baseMPCRelayApiUrl: 'relay.dynamic-preprod.xyz',
118
+ baseMPCRelayApiUrl: this.relayUrl || 'relay.dynamic-preprod.xyz',
116
119
  environmentId: this.environmentId,
117
120
  });
118
121
  }