@dynamic-labs/ethereum 4.0.0-alpha.27 → 4.0.0-alpha.28

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.0.0-alpha.28](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.27...v4.0.0-alpha.28) (2024-11-07)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * upgrade to starknet v6
8
+ See this guide for more details: https://starknetjs.com/docs/guides/migrate/
9
+ There are no code changes required on the Dynamic SDK side, however if you have installed the `starknet` package, you will need to upgrade to >= v6.11.0.
10
+
11
+ ### Features
12
+
13
+ * new transaction modal and ui for sign/signAll ([#7296](https://github.com/dynamic-labs/dynamic-auth/issues/7296)) ([05a8af1](https://github.com/dynamic-labs/dynamic-auth/commit/05a8af1eb772b2b8087ed96a54caf4b6ae8b79d2)), closes [#7297](https://github.com/dynamic-labs/dynamic-auth/issues/7297) [#7298](https://github.com/dynamic-labs/dynamic-auth/issues/7298)
14
+ * upgrade to starknet v6 ([#7189](https://github.com/dynamic-labs/dynamic-auth/issues/7189)) ([2a6e24e](https://github.com/dynamic-labs/dynamic-auth/commit/2a6e24e4178fcee671b381c28f6a681f4ce52c62))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * transaction confirmation modal popup ([#7368](https://github.com/dynamic-labs/dynamic-auth/issues/7368)) ([3c48658](https://github.com/dynamic-labs/dynamic-auth/commit/3c48658a62874d908bba8f06fb092ff5983ede16))
20
+
2
21
  ## [4.0.0-alpha.27](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.26...v4.0.0-alpha.27) (2024-11-06)
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.0.0-alpha.27";
6
+ var version = "4.0.0-alpha.28";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.27";
2
+ var version = "4.0.0-alpha.28";
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.0.0-alpha.27",
3
+ "version": "4.0.0-alpha.28",
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,13 +23,13 @@
23
23
  "@walletconnect/types": "2.10.6",
24
24
  "eventemitter3": "5.0.1",
25
25
  "buffer": "6.0.3",
26
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.27",
27
- "@dynamic-labs/embedded-wallet-evm": "4.0.0-alpha.27",
28
- "@dynamic-labs/ethereum-core": "4.0.0-alpha.27",
29
- "@dynamic-labs/types": "4.0.0-alpha.27",
30
- "@dynamic-labs/utils": "4.0.0-alpha.27",
31
- "@dynamic-labs/wallet-book": "4.0.0-alpha.27",
32
- "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.27"
26
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.28",
27
+ "@dynamic-labs/embedded-wallet-evm": "4.0.0-alpha.28",
28
+ "@dynamic-labs/ethereum-core": "4.0.0-alpha.28",
29
+ "@dynamic-labs/types": "4.0.0-alpha.28",
30
+ "@dynamic-labs/utils": "4.0.0-alpha.28",
31
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.28",
32
+ "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.28"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "viem": "^2.7.6"
@@ -30,7 +30,7 @@ class InjectedWalletBase extends ethereumCore.EthereumWalletConnector {
30
30
  return this.ethProviderHelper;
31
31
  }
32
32
  getMobileOrInstalledWallet() {
33
- var _a, _b;
33
+ var _a;
34
34
  if (!this.wallet) {
35
35
  this.wallet = walletBook.findWalletBookWallet(this.walletBook, this.key);
36
36
  }
@@ -40,7 +40,7 @@ class InjectedWalletBase extends ethereumCore.EthereumWalletConnector {
40
40
  // this is to handle the case where the user is in a webview.
41
41
  // when the user is in a webview, customers should set the deepLinkPreference prop to universal,
42
42
  // in which case this condition will be false, and the SDK will use WalletConnect (if available)
43
- if (((_b = (_a = this.wallet) === null || _a === void 0 ? void 0 : _a.mobile) === null || _b === void 0 ? void 0 : _b.inAppBrowser) &&
43
+ if (((_a = this._metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) &&
44
44
  this.mobileExperience === 'in-app-browser' &&
45
45
  utils.isMobile()) {
46
46
  return this;
@@ -26,7 +26,7 @@ class InjectedWalletBase extends EthereumWalletConnector {
26
26
  return this.ethProviderHelper;
27
27
  }
28
28
  getMobileOrInstalledWallet() {
29
- var _a, _b;
29
+ var _a;
30
30
  if (!this.wallet) {
31
31
  this.wallet = findWalletBookWallet(this.walletBook, this.key);
32
32
  }
@@ -36,7 +36,7 @@ class InjectedWalletBase extends EthereumWalletConnector {
36
36
  // this is to handle the case where the user is in a webview.
37
37
  // when the user is in a webview, customers should set the deepLinkPreference prop to universal,
38
38
  // in which case this condition will be false, and the SDK will use WalletConnect (if available)
39
- if (((_b = (_a = this.wallet) === null || _a === void 0 ? void 0 : _a.mobile) === null || _b === void 0 ? void 0 : _b.inAppBrowser) &&
39
+ if (((_a = this._metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) &&
40
40
  this.mobileExperience === 'in-app-browser' &&
41
41
  isMobile()) {
42
42
  return this;
@@ -48,7 +48,7 @@ const fetchInjectedWalletConnector = ({ walletBook, }) => {
48
48
  if (this.isInstalledOnBrowser()) {
49
49
  return _super.getAddress.call(this);
50
50
  }
51
- const inAppBrowserBase = (_a = this.wallet.mobile) === null || _a === void 0 ? void 0 : _a.inAppBrowser;
51
+ const inAppBrowserBase = (_a = this._metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl;
52
52
  if (!inAppBrowserBase) {
53
53
  const error = new Error(`No inAppBrowserBase found for ${this.name}.`);
54
54
  walletConnectorCore.logger.error(error.message);
@@ -44,7 +44,7 @@ const fetchInjectedWalletConnector = ({ walletBook, }) => {
44
44
  if (this.isInstalledOnBrowser()) {
45
45
  return _super.getAddress.call(this);
46
46
  }
47
- const inAppBrowserBase = (_a = this.wallet.mobile) === null || _a === void 0 ? void 0 : _a.inAppBrowser;
47
+ const inAppBrowserBase = (_a = this._metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl;
48
48
  if (!inAppBrowserBase) {
49
49
  const error = new Error(`No inAppBrowserBase found for ${this.name}.`);
50
50
  logger.error(error.message);