@dynamic-labs/sdk-react-core 1.4.10 → 1.4.12

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,21 @@
1
1
 
2
+ ### [1.4.12](https://github.com/dynamic-labs/DynamicAuth/compare/v1.4.11...v1.4.12) (2024-05-22)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * init ethers web3provider without a network if selected network is unsupported ([#5658](https://github.com/dynamic-labs/DynamicAuth/issues/5658)) ([9973af8](https://github.com/dynamic-labs/DynamicAuth/commit/9973af8fa6bc3f45095f4b830fe480ff2ed58a77))
8
+
9
+ ### [1.4.11](https://github.com/dynamic-labs/DynamicAuth/compare/v1.4.10...v1.4.11) (2024-04-26)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * display wallet tabs when linking a wallet ([#5493](https://github.com/dynamic-labs/DynamicAuth/issues/5493)) ([cf843bd](https://github.com/dynamic-labs/DynamicAuth/commit/cf843bd9f38c4aed8fe24387fe591ae045a8c3f0))
15
+ * ensure zerodev viem client handles eth_accounts call ([#5477](https://github.com/dynamic-labs/DynamicAuth/issues/5477)) ([#5484](https://github.com/dynamic-labs/DynamicAuth/issues/5484)) ([5c6508a](https://github.com/dynamic-labs/DynamicAuth/commit/5c6508afbfa981b5dd3d2064ee32f9396c142efb))
16
+ * network changes with keplr ([#5485](https://github.com/dynamic-labs/DynamicAuth/issues/5485)) ([#5490](https://github.com/dynamic-labs/DynamicAuth/issues/5490)) ([d54a74c](https://github.com/dynamic-labs/DynamicAuth/commit/d54a74c373a2db35add56bf7383b7243873624c3))
17
+ * refetch nameservice data and display properly ([#5501](https://github.com/dynamic-labs/DynamicAuth/issues/5501)) ([59c9390](https://github.com/dynamic-labs/DynamicAuth/commit/59c9390a593e52d6883f5b3ec541279e52e8f45b))
18
+
2
19
  ### [1.4.10](https://github.com/dynamic-labs/DynamicAuth/compare/v1.4.9...v1.4.10) (2024-04-23)
3
20
 
4
21
 
package/package.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "1.4.10";
5
+ var version = "1.4.12";
6
6
  var dependencies = {
7
7
  "@dynamic-labs/sdk-api": "0.0.387",
8
8
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
- var version = "1.4.10";
1
+ var version = "1.4.12";
2
2
  var dependencies = {
3
3
  "@dynamic-labs/sdk-api": "0.0.387",
4
4
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "1.4.10",
3
+ "version": "1.4.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -16,16 +16,16 @@
16
16
  "react-focus-lock": "2.9.2",
17
17
  "react-i18next": "^13.2.0",
18
18
  "yup": "0.32.11",
19
- "@dynamic-labs/ethereum": "1.4.10",
20
- "@dynamic-labs/iconic": "1.4.10",
21
- "@dynamic-labs/logger": "1.4.10",
22
- "@dynamic-labs/multi-wallet": "1.4.10",
23
- "@dynamic-labs/rpc-providers": "1.4.10",
24
- "@dynamic-labs/types": "1.4.10",
25
- "@dynamic-labs/utils": "1.4.10",
26
- "@dynamic-labs/viem-utils": "1.4.10",
27
- "@dynamic-labs/wallet-book": "1.4.10",
28
- "@dynamic-labs/wallet-connector-core": "1.4.10",
19
+ "@dynamic-labs/ethereum": "1.4.12",
20
+ "@dynamic-labs/iconic": "1.4.12",
21
+ "@dynamic-labs/logger": "1.4.12",
22
+ "@dynamic-labs/multi-wallet": "1.4.12",
23
+ "@dynamic-labs/rpc-providers": "1.4.12",
24
+ "@dynamic-labs/types": "1.4.12",
25
+ "@dynamic-labs/utils": "1.4.12",
26
+ "@dynamic-labs/viem-utils": "1.4.12",
27
+ "@dynamic-labs/wallet-book": "1.4.12",
28
+ "@dynamic-labs/wallet-connector-core": "1.4.12",
29
29
  "eventemitter3": "5.0.1"
30
30
  },
31
31
  "devDependencies": {
@@ -20,7 +20,7 @@ require('@dynamic-labs/sdk-api');
20
20
  require('../../shared/logger.cjs');
21
21
  require('@dynamic-labs/iconic');
22
22
  require('@dynamic-labs/wallet-connector-core');
23
- var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
23
+ require('../../context/ViewContext/ViewContext.cjs');
24
24
  var localStorage = require('../../shared/utils/classes/storage/localStorage.cjs');
25
25
  require('viem');
26
26
  require('@dynamic-labs/utils');
@@ -81,17 +81,14 @@ require('../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/
81
81
  var useViewSettings = require('../../utils/hooks/useViewSettings/useViewSettings.cjs');
82
82
  var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
83
83
  var index = require('../../utils/functions/walletFilters/index.cjs');
84
- var isUserLinkingWallet = require('../../shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.cjs');
85
84
  var SearchNotFoundMessage = require('./SearchNotFoundMessage/SearchNotFoundMessage.cjs');
86
85
  var WalletListGridTabs = require('./WalletListGridTabs/WalletListGridTabs.cjs');
87
86
 
88
87
  localStorage.LocalStorage.setToLS(localStorage$1.WALLET_PICKER_SEARCH_KEY, '');
89
88
  const WalletList = ({ isWalletConnectList = false, }) => {
90
89
  var _a, _b, _c, _d;
91
- const { walletsFilter, signWithEmailWalletName, walletConnectorOptions, projectSettings, defaultNumberOfWalletsToShow, bridgeChainsToConnect, connectedWallets, authMode, multiWallet, user, } = useInternalDynamicContext.useInternalDynamicContext();
92
- const { view } = ViewContext.useViewContext();
90
+ const { walletsFilter, signWithEmailWalletName, walletConnectorOptions, projectSettings, defaultNumberOfWalletsToShow, bridgeChainsToConnect, connectedWallets, authMode, multiWallet, } = useInternalDynamicContext.useInternalDynamicContext();
93
91
  const [selectedTabIndex, setSelectedTabIndex] = React.useState(null);
94
- const isLinkingWallet = isUserLinkingWallet.isUserLinkingWallet(user, view.type, false);
95
92
  const walletListViewSettings = useViewSettings.useViewSettings('wallet-list');
96
93
  const selectedTabSettings = selectedTabIndex === null
97
94
  ? undefined
@@ -129,7 +126,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
129
126
  const isSearchEnabled = Boolean(filterValue) ||
130
127
  (numberOfWallets > defaultNumberOfWalletsToShow &&
131
128
  walletsList.length !== numberOfWallets);
132
- const isTabsEnabled = Boolean(((_d = (_c = walletListViewSettings === null || walletListViewSettings === void 0 ? void 0 : walletListViewSettings.tabs) === null || _c === void 0 ? void 0 : _c.items) === null || _d === void 0 ? void 0 : _d.length) && !isLinkingWallet);
129
+ const isTabsEnabled = Boolean((_d = (_c = walletListViewSettings === null || walletListViewSettings === void 0 ? void 0 : walletListViewSettings.tabs) === null || _c === void 0 ? void 0 : _c.items) === null || _d === void 0 ? void 0 : _d.length);
133
130
  const walletListScrollRef = React.useRef(null);
134
131
  /* istanbul ignore next */
135
132
  const handleScroll = () => {
@@ -16,7 +16,7 @@ import '@dynamic-labs/sdk-api';
16
16
  import '../../shared/logger.js';
17
17
  import '@dynamic-labs/iconic';
18
18
  import '@dynamic-labs/wallet-connector-core';
19
- import { useViewContext } from '../../context/ViewContext/ViewContext.js';
19
+ import '../../context/ViewContext/ViewContext.js';
20
20
  import { LocalStorage } from '../../shared/utils/classes/storage/localStorage.js';
21
21
  import 'viem';
22
22
  import '@dynamic-labs/utils';
@@ -77,17 +77,14 @@ import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/P
77
77
  import { useViewSettings } from '../../utils/hooks/useViewSettings/useViewSettings.js';
78
78
  import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
79
79
  import { FilterBridgeChainsName } from '../../utils/functions/walletFilters/index.js';
80
- import { isUserLinkingWallet } from '../../shared/utils/functions/isUserLinkingWallet/isUserLinkingWallet.js';
81
80
  import { SearchNotFoundMessage } from './SearchNotFoundMessage/SearchNotFoundMessage.js';
82
81
  import { WalletListGridTabs } from './WalletListGridTabs/WalletListGridTabs.js';
83
82
 
84
83
  LocalStorage.setToLS(WALLET_PICKER_SEARCH_KEY, '');
85
84
  const WalletList = ({ isWalletConnectList = false, }) => {
86
85
  var _a, _b, _c, _d;
87
- const { walletsFilter, signWithEmailWalletName, walletConnectorOptions, projectSettings, defaultNumberOfWalletsToShow, bridgeChainsToConnect, connectedWallets, authMode, multiWallet, user, } = useInternalDynamicContext();
88
- const { view } = useViewContext();
86
+ const { walletsFilter, signWithEmailWalletName, walletConnectorOptions, projectSettings, defaultNumberOfWalletsToShow, bridgeChainsToConnect, connectedWallets, authMode, multiWallet, } = useInternalDynamicContext();
89
87
  const [selectedTabIndex, setSelectedTabIndex] = useState(null);
90
- const isLinkingWallet = isUserLinkingWallet(user, view.type, false);
91
88
  const walletListViewSettings = useViewSettings('wallet-list');
92
89
  const selectedTabSettings = selectedTabIndex === null
93
90
  ? undefined
@@ -125,7 +122,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
125
122
  const isSearchEnabled = Boolean(filterValue) ||
126
123
  (numberOfWallets > defaultNumberOfWalletsToShow &&
127
124
  walletsList.length !== numberOfWallets);
128
- const isTabsEnabled = Boolean(((_d = (_c = walletListViewSettings === null || walletListViewSettings === void 0 ? void 0 : walletListViewSettings.tabs) === null || _c === void 0 ? void 0 : _c.items) === null || _d === void 0 ? void 0 : _d.length) && !isLinkingWallet);
125
+ const isTabsEnabled = Boolean((_d = (_c = walletListViewSettings === null || walletListViewSettings === void 0 ? void 0 : walletListViewSettings.tabs) === null || _c === void 0 ? void 0 : _c.items) === null || _d === void 0 ? void 0 : _d.length);
129
126
  const walletListScrollRef = useRef(null);
130
127
  /* istanbul ignore next */
131
128
  const handleScroll = () => {
@@ -75,7 +75,7 @@ var useInternalDynamicContext = require('../../../../context/DynamicContext/useD
75
75
  const useFetchNameService = (address) => {
76
76
  const { getNameService } = useInternalDynamicContext.useInternalDynamicContext();
77
77
  const { data: nameService } = usePromise.usePromise(() => getNameService(address), {
78
- deps: [address],
78
+ deps: [address, getNameService],
79
79
  });
80
80
  return nameService;
81
81
  };
@@ -71,7 +71,7 @@ import { useInternalDynamicContext } from '../../../../context/DynamicContext/us
71
71
  const useFetchNameService = (address) => {
72
72
  const { getNameService } = useInternalDynamicContext();
73
73
  const { data: nameService } = usePromise(() => getNameService(address), {
74
- deps: [address],
74
+ deps: [address, getNameService],
75
75
  });
76
76
  return nameService;
77
77
  };