@dynamic-labs/ethereum 4.24.0 → 4.25.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,33 @@
1
1
 
2
+ ### [4.25.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.0...v4.25.1) (2025-07-18)
3
+
4
+
5
+ ### Features
6
+
7
+ * add passkey sign in react hook ([#9188](https://github.com/dynamic-labs/dynamic-auth/issues/9188)) ([9d36886](https://github.com/dynamic-labs/dynamic-auth/commit/9d368860ca097777addf5e6f7e57c039cfbbb503))
8
+ * add support for social redirect with iframe-setup ([#9193](https://github.com/dynamic-labs/dynamic-auth/issues/9193)) ([fdfb321](https://github.com/dynamic-labs/dynamic-auth/commit/fdfb321220185d56d061342782754ad72e4b404e))
9
+ * update Argent wallet names to Ready branding ([#9142](https://github.com/dynamic-labs/dynamic-auth/issues/9142)) ([194e4cf](https://github.com/dynamic-labs/dynamic-auth/commit/194e4cf68ede58e2d38c6c720c01428b4e79cdf3))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * show hcaptcha for email and sms headless ([#9187](https://github.com/dynamic-labs/dynamic-auth/issues/9187)) ([9fa0860](https://github.com/dynamic-labs/dynamic-auth/commit/9fa086015196ff2c043d88e23f029964ddee92ab))
15
+
16
+ ## [4.25.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.24.0...v4.25.0) (2025-07-17)
17
+
18
+
19
+ ### Features
20
+
21
+ * add passkey 1fa to react native ([#9167](https://github.com/dynamic-labs/dynamic-auth/issues/9167)) ([8f9b166](https://github.com/dynamic-labs/dynamic-auth/commit/8f9b166de3e0ab329c1539597c350681f1254bfb))
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * add waas iframe retry ([#9185](https://github.com/dynamic-labs/dynamic-auth/issues/9185)) ([ebe40d5](https://github.com/dynamic-labs/dynamic-auth/commit/ebe40d5ecdf214362b013502b4ac1313ba356aeb))
27
+ * ensure storage service defaults to local storage ([#9182](https://github.com/dynamic-labs/dynamic-auth/issues/9182)) ([d6ce48e](https://github.com/dynamic-labs/dynamic-auth/commit/d6ce48e8c1d2edb32d8db41efe3f56b97275c32a))
28
+ * add account address to wallet properties ([#9172](https://github.com/dynamic-labs/dynamic-auth/issues/9172)) ([61de8ca](https://github.com/dynamic-labs/dynamic-auth/commit/61de8caccb95c5d52126283ac7a1ebd5a36aa33c))
29
+ * show hcaptcha for headless social sign in ([#9154](https://github.com/dynamic-labs/dynamic-auth/issues/9154)) ([262b752](https://github.com/dynamic-labs/dynamic-auth/commit/262b75257ec6dcc05f67804b71f7285ec5919f91))
30
+
2
31
  ## [4.24.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.23.1...v4.24.0) (2025-07-15)
3
32
 
4
33
  ### Features
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.24.0";
6
+ var version = "4.25.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.24.0";
2
+ var version = "4.25.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "4.24.0",
3
+ "version": "4.25.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",
@@ -23,16 +23,16 @@
23
23
  "eventemitter3": "5.0.1",
24
24
  "buffer": "6.0.3",
25
25
  "@metamask/sdk": "0.33.0",
26
- "@dynamic-labs/assert-package-version": "4.24.0",
27
- "@dynamic-labs/embedded-wallet-evm": "4.24.0",
28
- "@dynamic-labs/ethereum-core": "4.24.0",
29
- "@dynamic-labs/logger": "4.24.0",
30
- "@dynamic-labs/rpc-providers": "4.24.0",
31
- "@dynamic-labs/types": "4.24.0",
32
- "@dynamic-labs/utils": "4.24.0",
33
- "@dynamic-labs/waas-evm": "4.24.0",
34
- "@dynamic-labs/wallet-book": "4.24.0",
35
- "@dynamic-labs/wallet-connector-core": "4.24.0"
26
+ "@dynamic-labs/assert-package-version": "4.25.1",
27
+ "@dynamic-labs/embedded-wallet-evm": "4.25.1",
28
+ "@dynamic-labs/ethereum-core": "4.25.1",
29
+ "@dynamic-labs/logger": "4.25.1",
30
+ "@dynamic-labs/rpc-providers": "4.25.1",
31
+ "@dynamic-labs/types": "4.25.1",
32
+ "@dynamic-labs/utils": "4.25.1",
33
+ "@dynamic-labs/waas-evm": "4.25.1",
34
+ "@dynamic-labs/wallet-book": "4.25.1",
35
+ "@dynamic-labs/wallet-connector-core": "4.25.1"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "viem": "^2.28.4"
@@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var viem = require('viem');
8
8
  var ethereumCore = require('@dynamic-labs/ethereum-core');
9
+ var utils = require('@dynamic-labs/utils');
9
10
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
10
11
  var helpers = require('./helpers.cjs');
11
12
 
@@ -50,6 +51,19 @@ class Coinbase extends ethereumCore.EthereumWalletConnector {
50
51
  }
51
52
  getAddress() {
52
53
  return _tslib.__awaiter(this, void 0, void 0, function* () {
54
+ var _a;
55
+ if (utils.isMobile() &&
56
+ !this.isInstalledOnBrowser() &&
57
+ ((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) &&
58
+ this.mobileExperience === 'in-app-browser') {
59
+ const inAppBrowserCompiledTemplate = utils.template(this.metadata.inAppBrowserUrl);
60
+ const { href } = utils.PlatformService.getUrl();
61
+ const deepLink = inAppBrowserCompiledTemplate({
62
+ encodedDappURI: encodeURIComponent(href),
63
+ });
64
+ utils.PlatformService.openURL(deepLink);
65
+ return;
66
+ }
53
67
  const [address] = (yield this.coinbaseProvider.request({
54
68
  method: 'eth_requestAccounts',
55
69
  }));
@@ -1,5 +1,5 @@
1
- import { WalletClient, Account, Transport, Chain as ViemChain } from 'viem';
2
1
  import { ProviderInterface } from '@coinbase/wallet-sdk';
2
+ import { Account, Transport, Chain as ViemChain, WalletClient } from 'viem';
3
3
  import { EthereumWalletConnector } from '@dynamic-labs/ethereum-core';
4
4
  import { CoinbaseOpts, GetCoinbaseProviderOpts } from './types';
5
5
  export declare class Coinbase extends EthereumWalletConnector {
@@ -2,6 +2,7 @@
2
2
  import { __rest, __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { toHex, toBytes, createWalletClient, custom } from 'viem';
4
4
  import { EthereumWalletConnector, chainsMap } from '@dynamic-labs/ethereum-core';
5
+ import { isMobile, template, PlatformService } from '@dynamic-labs/utils';
5
6
  import { eventListenerHandlers } from '@dynamic-labs/wallet-connector-core';
6
7
  import { getCoinbaseProvider } from './helpers.js';
7
8
 
@@ -46,6 +47,19 @@ class Coinbase extends EthereumWalletConnector {
46
47
  }
47
48
  getAddress() {
48
49
  return __awaiter(this, void 0, void 0, function* () {
50
+ var _a;
51
+ if (isMobile() &&
52
+ !this.isInstalledOnBrowser() &&
53
+ ((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) &&
54
+ this.mobileExperience === 'in-app-browser') {
55
+ const inAppBrowserCompiledTemplate = template(this.metadata.inAppBrowserUrl);
56
+ const { href } = PlatformService.getUrl();
57
+ const deepLink = inAppBrowserCompiledTemplate({
58
+ encodedDappURI: encodeURIComponent(href),
59
+ });
60
+ PlatformService.openURL(deepLink);
61
+ return;
62
+ }
49
63
  const [address] = (yield this.coinbaseProvider.request({
50
64
  method: 'eth_requestAccounts',
51
65
  }));