@dynamic-labs/sdk-react-core 3.4.5 → 3.4.6

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,18 @@
1
1
 
2
+ ### [3.4.6](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.5...v3.4.6) (2024-10-31)
3
+
4
+
5
+ ### Features
6
+
7
+ * add support for compass and leap wallets ([ab170c9](https://github.com/dynamic-labs/DynamicAuth/commit/ab170c962099ed6356d2f31c947b122f1aa7ec73))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * prevent use-wallet-options from reading empty wallet-book ([#7320](https://github.com/dynamic-labs/DynamicAuth/issues/7320)) ([24c6cb1](https://github.com/dynamic-labs/DynamicAuth/commit/24c6cb14ce324925b120d363e029e29b72560895))
13
+ * sats-connect wallets not prompting correctly to sync account when making a transaction ([#7311](https://github.com/dynamic-labs/DynamicAuth/issues/7311)) ([#7312](https://github.com/dynamic-labs/DynamicAuth/issues/7312)) ([2026be4](https://github.com/dynamic-labs/DynamicAuth/commit/2026be412edcbb7e98341a5a5b2a3bd75ffdb83f))
14
+ * update check for wallet provider event listeners support ([#7303](https://github.com/dynamic-labs/DynamicAuth/issues/7303)) ([#7304](https://github.com/dynamic-labs/DynamicAuth/issues/7304)) ([1e91c76](https://github.com/dynamic-labs/DynamicAuth/commit/1e91c767ebe078f63c27884e4a8e7729d49b2114))
15
+
2
16
  ### [3.4.5](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.4...v3.4.5) (2024-10-30)
3
17
 
4
18
 
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "3.4.5";
6
+ var version = "3.4.6";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.559",
9
9
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "3.4.5";
2
+ var version = "3.4.6";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.559",
5
5
  "@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": "3.4.5",
3
+ "version": "3.4.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -17,16 +17,16 @@
17
17
  "react-i18next": "13.5.0",
18
18
  "yup": "0.32.11",
19
19
  "react-international-phone": "4.2.5",
20
- "@dynamic-labs/assert-package-version": "3.4.5",
21
- "@dynamic-labs/iconic": "3.4.5",
22
- "@dynamic-labs/logger": "3.4.5",
23
- "@dynamic-labs/multi-wallet": "3.4.5",
24
- "@dynamic-labs/rpc-providers": "3.4.5",
25
- "@dynamic-labs/store": "3.4.5",
26
- "@dynamic-labs/types": "3.4.5",
27
- "@dynamic-labs/utils": "3.4.5",
28
- "@dynamic-labs/wallet-book": "3.4.5",
29
- "@dynamic-labs/wallet-connector-core": "3.4.5",
20
+ "@dynamic-labs/assert-package-version": "3.4.6",
21
+ "@dynamic-labs/iconic": "3.4.6",
22
+ "@dynamic-labs/logger": "3.4.6",
23
+ "@dynamic-labs/multi-wallet": "3.4.6",
24
+ "@dynamic-labs/rpc-providers": "3.4.6",
25
+ "@dynamic-labs/store": "3.4.6",
26
+ "@dynamic-labs/types": "3.4.6",
27
+ "@dynamic-labs/utils": "3.4.6",
28
+ "@dynamic-labs/wallet-book": "3.4.6",
29
+ "@dynamic-labs/wallet-connector-core": "3.4.6",
30
30
  "eventemitter3": "5.0.1"
31
31
  },
32
32
  "devDependencies": {
@@ -37,6 +37,7 @@ const useNetworkConfigurationsFromProjectSettings = ({ projectSettings, cosmosNe
37
37
  return networkConfigurations;
38
38
  }, [projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.networks, cosmosNetworkOverrides, evmNetworksOverrides]);
39
39
  const createNetwork = (network, parser = (input) => input) => ({
40
+ bech32Prefix: network.bech32Prefix,
40
41
  blockExplorerUrls: network.blockExplorerUrls,
41
42
  chainId: parser(network.chainId),
42
43
  iconUrls: network.iconUrls,
@@ -33,6 +33,7 @@ const useNetworkConfigurationsFromProjectSettings = ({ projectSettings, cosmosNe
33
33
  return networkConfigurations;
34
34
  }, [projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.networks, cosmosNetworkOverrides, evmNetworksOverrides]);
35
35
  const createNetwork = (network, parser = (input) => input) => ({
36
+ bech32Prefix: network.bech32Prefix,
36
37
  blockExplorerUrls: network.blockExplorerUrls,
37
38
  chainId: parser(network.chainId),
38
39
  iconUrls: network.iconUrls,
@@ -102,7 +102,7 @@ const useWalletOptions = () => {
102
102
  const walletOptions = React.useMemo(() => {
103
103
  var _a;
104
104
  return (_a = walletConnectorOptions === null || walletConnectorOptions === void 0 ? void 0 : walletConnectorOptions.filter((option) => !embeddedWalletsKeys.includes(option.walletConnector.key)).map((option) => {
105
- const groupName = option.group
105
+ const groupName = option.group && Boolean(Object.keys(walletBook$1).length)
106
106
  ? walletBook.getWalletGroup(walletBook$1, option.group).name
107
107
  : undefined;
108
108
  return {
@@ -98,7 +98,7 @@ const useWalletOptions = () => {
98
98
  const walletOptions = useMemo(() => {
99
99
  var _a;
100
100
  return (_a = walletConnectorOptions === null || walletConnectorOptions === void 0 ? void 0 : walletConnectorOptions.filter((option) => !embeddedWalletsKeys.includes(option.walletConnector.key)).map((option) => {
101
- const groupName = option.group
101
+ const groupName = option.group && Boolean(Object.keys(walletBook).length)
102
102
  ? getWalletGroup(walletBook, option.group).name
103
103
  : undefined;
104
104
  return {