@dynamic-labs/sdk-react-core 2.1.3 → 2.1.5

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,16 @@
1
1
 
2
+ ### [2.1.5](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.4...v2.1.5) (2024-06-16)
3
+
4
+ * Improve handling of unknown wallets, css fixes and copy updates in multi wallet experience
5
+
6
+ ### [2.1.4](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.3...v2.1.4) (2024-06-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * close sign modal when signing in with a wallet when embedded wallet is enabled ([#6012](https://github.com/dynamic-labs/DynamicAuth/issues/6012)) ([d473cc8](https://github.com/dynamic-labs/DynamicAuth/commit/d473cc83ac378b7bc43e2546020c02a297d4595b))
12
+ * display custom network name in network picker even if it doesn't have a valid icon ([#6020](https://github.com/dynamic-labs/DynamicAuth/issues/6020)) ([5e1539e](https://github.com/dynamic-labs/DynamicAuth/commit/5e1539e1e6920fb1fdbf96c938f40e785b3ee680))
13
+
2
14
  ### [2.1.3](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.2...v2.1.3) (2024-06-14)
3
15
 
4
16
 
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "2.1.3";
6
+ var version = "2.1.5";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.460",
9
9
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "2.1.3";
2
+ var version = "2.1.5";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.460",
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": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -17,18 +17,18 @@
17
17
  "react-i18next": "13.5.0",
18
18
  "yup": "0.32.11",
19
19
  "react-international-phone": "4.2.5",
20
- "@dynamic-labs/iconic": "2.1.3",
21
- "@dynamic-labs/logger": "2.1.3",
22
- "@dynamic-labs/multi-wallet": "2.1.3",
23
- "@dynamic-labs/rpc-provider-ethereum": "2.1.3",
24
- "@dynamic-labs/rpc-provider-solana": "2.1.3",
25
- "@dynamic-labs/rpc-providers": "2.1.3",
26
- "@dynamic-labs/store": "2.1.3",
27
- "@dynamic-labs/types": "2.1.3",
28
- "@dynamic-labs/utils": "2.1.3",
29
- "@dynamic-labs/viem-utils": "2.1.3",
30
- "@dynamic-labs/wallet-book": "2.1.3",
31
- "@dynamic-labs/wallet-connector-core": "2.1.3",
20
+ "@dynamic-labs/iconic": "2.1.5",
21
+ "@dynamic-labs/logger": "2.1.5",
22
+ "@dynamic-labs/multi-wallet": "2.1.5",
23
+ "@dynamic-labs/rpc-provider-ethereum": "2.1.5",
24
+ "@dynamic-labs/rpc-provider-solana": "2.1.5",
25
+ "@dynamic-labs/rpc-providers": "2.1.5",
26
+ "@dynamic-labs/store": "2.1.5",
27
+ "@dynamic-labs/types": "2.1.5",
28
+ "@dynamic-labs/utils": "2.1.5",
29
+ "@dynamic-labs/viem-utils": "2.1.5",
30
+ "@dynamic-labs/wallet-book": "2.1.5",
31
+ "@dynamic-labs/wallet-connector-core": "2.1.5",
32
32
  "eventemitter3": "5.0.1"
33
33
  },
34
34
  "devDependencies": {
@@ -8,6 +8,7 @@ var utils = require('@dynamic-labs/utils');
8
8
  require('@dynamic-labs/iconic');
9
9
  require('../../../../context/ViewContext/ViewContext.cjs');
10
10
  require('react');
11
+ var error = require('../../../../shared/assets/error.cjs');
11
12
  var stroke = require('../../../../shared/assets/stroke.cjs');
12
13
  var classNames = require('../../../../utils/functions/classNames/classNames.cjs');
13
14
  require('../../../../events/dynamicEvents.cjs');
@@ -112,7 +113,7 @@ const EvmNetworkControl = ({ evmNetworks, className = '', activeClassName = '',
112
113
  [activeClassName]: isOpen,
113
114
  'evm-network-control__container': Boolean(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.supportsNetworkSwitching()),
114
115
  'evm-network-control__container--error': !(currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.name),
115
- }), children: [(currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.name) && ((_b = currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.iconUrls) === null || _b === void 0 ? void 0 : _b[0]) ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Icon.Icon, { size: 'small', children: jsxRuntime.jsx("img", { src: currentEvmNetwork.iconUrls[0], alt: `${currentEvmNetwork.name} icon` }) }), showNetworkName && (jsxRuntime.jsx(Typography.Typography, { className: 'evm-network-control__network-name', as: 'span', variant: 'body_small', children: currentEvmNetwork.vanityName || currentEvmNetwork.name }))] })) : (jsxRuntime.jsx(UnsupportedNetwork.UnsupportedNetwork, { showMsg: showNetworkName })), evmNetworks && evmNetworks.length > 1 && (jsxRuntime.jsx(Icon.Icon, { color: 'text-primary', size: 'small', className: classNames.classNames('evm-network-control__arrow-icon', {
116
+ }), children: [(currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.name) ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Icon.Icon, { size: 'small', children: ((_b = currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.iconUrls) === null || _b === void 0 ? void 0 : _b[0]) ? (jsxRuntime.jsx("img", { src: currentEvmNetwork.iconUrls[0], alt: `${currentEvmNetwork.name} icon` })) : (jsxRuntime.jsx(error.ReactComponent, {})) }), showNetworkName && (jsxRuntime.jsx(Typography.Typography, { className: 'evm-network-control__network-name', as: 'span', variant: 'body_small', children: currentEvmNetwork.vanityName || currentEvmNetwork.name }))] })) : (jsxRuntime.jsx(UnsupportedNetwork.UnsupportedNetwork, { showMsg: showNetworkName })), evmNetworks && evmNetworks.length > 1 && (jsxRuntime.jsx(Icon.Icon, { color: 'text-primary', size: 'small', className: classNames.classNames('evm-network-control__arrow-icon', {
116
117
  'evm-network-control__arrow-icon--active': isOpen,
117
118
  }), children: jsxRuntime.jsx(stroke.ReactComponent, {}) }))] }));
118
119
  };
@@ -4,6 +4,7 @@ import { parseChainId } from '@dynamic-labs/utils';
4
4
  import '@dynamic-labs/iconic';
5
5
  import '../../../../context/ViewContext/ViewContext.js';
6
6
  import 'react';
7
+ import { ReactComponent as SvgError } from '../../../../shared/assets/error.js';
7
8
  import { ReactComponent as SvgStroke } from '../../../../shared/assets/stroke.js';
8
9
  import { classNames } from '../../../../utils/functions/classNames/classNames.js';
9
10
  import '../../../../events/dynamicEvents.js';
@@ -108,7 +109,7 @@ const EvmNetworkControl = ({ evmNetworks, className = '', activeClassName = '',
108
109
  [activeClassName]: isOpen,
109
110
  'evm-network-control__container': Boolean(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.supportsNetworkSwitching()),
110
111
  'evm-network-control__container--error': !(currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.name),
111
- }), children: [(currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.name) && ((_b = currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.iconUrls) === null || _b === void 0 ? void 0 : _b[0]) ? (jsxs(Fragment, { children: [jsx(Icon, { size: 'small', children: jsx("img", { src: currentEvmNetwork.iconUrls[0], alt: `${currentEvmNetwork.name} icon` }) }), showNetworkName && (jsx(Typography, { className: 'evm-network-control__network-name', as: 'span', variant: 'body_small', children: currentEvmNetwork.vanityName || currentEvmNetwork.name }))] })) : (jsx(UnsupportedNetwork, { showMsg: showNetworkName })), evmNetworks && evmNetworks.length > 1 && (jsx(Icon, { color: 'text-primary', size: 'small', className: classNames('evm-network-control__arrow-icon', {
112
+ }), children: [(currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.name) ? (jsxs(Fragment, { children: [jsx(Icon, { size: 'small', children: ((_b = currentEvmNetwork === null || currentEvmNetwork === void 0 ? void 0 : currentEvmNetwork.iconUrls) === null || _b === void 0 ? void 0 : _b[0]) ? (jsx("img", { src: currentEvmNetwork.iconUrls[0], alt: `${currentEvmNetwork.name} icon` })) : (jsx(SvgError, {})) }), showNetworkName && (jsx(Typography, { className: 'evm-network-control__network-name', as: 'span', variant: 'body_small', children: currentEvmNetwork.vanityName || currentEvmNetwork.name }))] })) : (jsx(UnsupportedNetwork, { showMsg: showNetworkName })), evmNetworks && evmNetworks.length > 1 && (jsx(Icon, { color: 'text-primary', size: 'small', className: classNames('evm-network-control__arrow-icon', {
112
113
  'evm-network-control__arrow-icon--active': isOpen,
113
114
  }), children: jsx(SvgStroke, {}) }))] }));
114
115
  };
@@ -1768,8 +1768,8 @@ const translation = {
1768
1768
  search: {
1769
1769
  label: 'Search through {{numberOfWallets}} wallets...',
1770
1770
  not_found: {
1771
- description: 'Try searching for a different wallet',
1772
- title: 'No wallet found.',
1771
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1772
+ title: 'Wallet not available',
1773
1773
  },
1774
1774
  },
1775
1775
  title: {
@@ -1790,8 +1790,8 @@ const translation = {
1790
1790
  search: {
1791
1791
  label: 'Search through {{numberOfWallets}} wallets...',
1792
1792
  not_found: {
1793
- description: 'Try searching for a different wallet',
1794
- title: 'No wallet found.',
1793
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1794
+ title: 'Wallet not available',
1795
1795
  },
1796
1796
  },
1797
1797
  title: {
@@ -1764,8 +1764,8 @@ export declare const translation: {
1764
1764
  search: {
1765
1765
  label: 'Search through {{numberOfWallets}} wallets...',
1766
1766
  not_found: {
1767
- description: 'Try searching for a different wallet',
1768
- title: 'No wallet found.',
1767
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1768
+ title: 'Wallet not available',
1769
1769
  },
1770
1770
  },
1771
1771
  title: {
@@ -1764,8 +1764,8 @@ const translation = {
1764
1764
  search: {
1765
1765
  label: 'Search through {{numberOfWallets}} wallets...',
1766
1766
  not_found: {
1767
- description: 'Try searching for a different wallet',
1768
- title: 'No wallet found.',
1767
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1768
+ title: 'Wallet not available',
1769
1769
  },
1770
1770
  },
1771
1771
  title: {
@@ -1786,8 +1786,8 @@ const translation = {
1786
1786
  search: {
1787
1787
  label: 'Search through {{numberOfWallets}} wallets...',
1788
1788
  not_found: {
1789
- description: 'Try searching for a different wallet',
1790
- title: 'No wallet found.',
1789
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1790
+ title: 'Wallet not available',
1791
1791
  },
1792
1792
  },
1793
1793
  title: {