@dynamic-labs/sdk-react-core 4.0.0-alpha.29 → 4.0.0-alpha.30

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +11 -11
  5. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +2 -2
  6. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +2 -2
  7. package/src/lib/components/IconWithStatus/IconWithStatus.cjs +8 -12
  8. package/src/lib/components/IconWithStatus/IconWithStatus.d.ts +1 -2
  9. package/src/lib/components/IconWithStatus/IconWithStatus.js +9 -13
  10. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +1 -1
  11. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +1 -1
  12. package/src/lib/styles/index.shadow.cjs +1 -1
  13. package/src/lib/styles/index.shadow.js +1 -1
  14. package/src/lib/utils/functions/getPlatformForConnector/getPlatformForConnector.d.ts +2 -2
  15. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.cjs +5 -3
  16. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.js +6 -4
  17. package/src/lib/utils/functions/walletListBuilder/utils/applyMultiWalletFilters/applyMultiWalletFilters.cjs +2 -2
  18. package/src/lib/utils/functions/walletListBuilder/utils/applyMultiWalletFilters/applyMultiWalletFilters.d.ts +1 -3
  19. package/src/lib/utils/functions/walletListBuilder/utils/applyMultiWalletFilters/applyMultiWalletFilters.js +2 -2
  20. package/src/lib/utils/functions/walletListBuilder/utils/staticLinkedWalletFilter/staticLinkedWalletFilter.cjs +4 -3
  21. package/src/lib/utils/functions/walletListBuilder/utils/staticLinkedWalletFilter/staticLinkedWalletFilter.d.ts +1 -2
  22. package/src/lib/utils/functions/walletListBuilder/utils/staticLinkedWalletFilter/staticLinkedWalletFilter.js +4 -3
  23. package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +0 -1
  24. package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +0 -1
  25. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +6 -1
  26. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +6 -1
  27. package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.cjs +1 -1
  28. package/src/lib/views/MergeUserAccountsWithSameEmailView/MergeUserAccountsWithSameEmailView.js +1 -1
  29. package/src/lib/views/MobileWalletRedirectView/MobileWalletRedirectView.cjs +1 -1
  30. package/src/lib/views/MobileWalletRedirectView/MobileWalletRedirectView.js +1 -1
  31. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +1 -1
  32. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +1 -1
  33. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +1 -1
  34. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +1 -1
  35. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +1 -1
  36. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -1
  37. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +1 -1
  38. package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -1
  39. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -1
  40. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -1
  41. package/src/lib/views/QrCodeView/QrCodeView.cjs +2 -3
  42. package/src/lib/views/QrCodeView/QrCodeView.js +3 -4
  43. package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.cjs +1 -1
  44. package/src/lib/views/SelectHardwareWalletView/SelectHardwareWalletView.js +1 -1
  45. package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.cjs +1 -1
  46. package/src/lib/views/SyncWalletView/AutoReconnectingView/AutoReconnectingView.js +1 -1
  47. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.cjs +3 -2
  48. package/src/lib/views/SyncWalletView/ReconnectWithQrCodeView/ReconnectWithQrCodeView.js +4 -3
  49. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.cjs +1 -1
  50. package/src/lib/views/SyncWalletView/SwitchWalletView/SwitchWalletView.js +1 -1
  51. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
  52. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
  53. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +1 -1
  54. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -1
  55. package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +2 -1
  56. package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +2 -1
  57. package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -1
  58. package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -1
  59. package/src/lib/views/WalletRedirectView/WalletRedirectView.cjs +3 -1
  60. package/src/lib/views/WalletRedirectView/WalletRedirectView.js +3 -1
  61. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +2 -2
  62. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +2 -2
  63. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -1
  64. package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
  65. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -1
  66. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -1
  67. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +2 -2
  68. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +2 -2
  69. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs +2 -2
  70. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.d.ts +2 -1
  71. package/src/lib/widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js +2 -2
  72. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +3 -1
  73. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +3 -1
  74. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +1 -1
  75. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -1
  76. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.cjs +1 -1
  77. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/PendingAccountSwitchModal.js +1 -1
  78. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -1
  79. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -1
  80. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -1
  81. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +1 -1
  82. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -1
  83. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -1
  84. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -1
  85. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -1
  86. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +5 -6
  87. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +6 -7
  88. package/src/lib/components/TransactionOriginDestination/TransactionOriginDestination.d.ts +0 -11
  89. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/WalletIconWithStatus.d.ts +0 -9
  90. package/src/lib/widgets/DynamicWidget/components/WalletIconWithStatus/index.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,4 +1,21 @@
1
1
 
2
+ ## [4.0.0-alpha.30](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.29...v4.0.0-alpha.30) (2024-11-13)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * check wallet limitations from metadata (#7413)
8
+
9
+ ### Bug Fixes
10
+
11
+ * confirmation ui disabled for solana signall and signTransaction ([#7403](https://github.com/dynamic-labs/dynamic-auth/issues/7403)) ([98a352a](https://github.com/dynamic-labs/dynamic-auth/commit/98a352a826202abad734f00df1b3d19080ecf1e2))
12
+ * get starknet wallets directly from window ([#7421](https://github.com/dynamic-labs/dynamic-auth/issues/7421)) ([13e24f7](https://github.com/dynamic-labs/dynamic-auth/commit/13e24f70accf7747f5137fc3f2b05c00939c3af3))
13
+ * issue with SollanaWalletConnectorWithConfig embedded wallets ([#7405](https://github.com/dynamic-labs/dynamic-auth/issues/7405)) ([f08ecd6](https://github.com/dynamic-labs/dynamic-auth/commit/f08ecd6955faf191177bb9833b7a594637a6c4cc))
14
+ * set override key in starknet injected connector ([#7420](https://github.com/dynamic-labs/dynamic-auth/issues/7420)) ([74b2887](https://github.com/dynamic-labs/dynamic-auth/commit/74b28874661b3bad1e0a0f92aa9d3c987dc71225))
15
+
16
+
17
+ * check wallet limitations from metadata ([#7413](https://github.com/dynamic-labs/dynamic-auth/issues/7413)) ([a419de6](https://github.com/dynamic-labs/dynamic-auth/commit/a419de643ea4ff240a27825c10670ba92589b71b))
18
+
2
19
  ## [4.0.0-alpha.29](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.28...v4.0.0-alpha.29) (2024-11-07)
3
20
 
4
21
  ## [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)
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.29";
6
+ var version = "4.0.0-alpha.30";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.563",
9
9
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.29";
2
+ var version = "4.0.0-alpha.30";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.563",
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": "4.0.0-alpha.29",
3
+ "version": "4.0.0-alpha.30",
4
4
  "dependencies": {
5
5
  "@dynamic-labs/sdk-api-core": "0.0.563",
6
6
  "@hcaptcha/react-hcaptcha": "1.4.4",
@@ -13,16 +13,16 @@
13
13
  "react-i18next": "13.5.0",
14
14
  "yup": "0.32.11",
15
15
  "react-international-phone": "4.2.5",
16
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.29",
17
- "@dynamic-labs/iconic": "4.0.0-alpha.29",
18
- "@dynamic-labs/logger": "4.0.0-alpha.29",
19
- "@dynamic-labs/multi-wallet": "4.0.0-alpha.29",
20
- "@dynamic-labs/rpc-providers": "4.0.0-alpha.29",
21
- "@dynamic-labs/store": "4.0.0-alpha.29",
22
- "@dynamic-labs/types": "4.0.0-alpha.29",
23
- "@dynamic-labs/utils": "4.0.0-alpha.29",
24
- "@dynamic-labs/wallet-book": "4.0.0-alpha.29",
25
- "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.29",
16
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.30",
17
+ "@dynamic-labs/iconic": "4.0.0-alpha.30",
18
+ "@dynamic-labs/logger": "4.0.0-alpha.30",
19
+ "@dynamic-labs/multi-wallet": "4.0.0-alpha.30",
20
+ "@dynamic-labs/rpc-providers": "4.0.0-alpha.30",
21
+ "@dynamic-labs/store": "4.0.0-alpha.30",
22
+ "@dynamic-labs/types": "4.0.0-alpha.30",
23
+ "@dynamic-labs/utils": "4.0.0-alpha.30",
24
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.30",
25
+ "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.30",
26
26
  "bs58": "5.0.0",
27
27
  "eventemitter3": "5.0.1"
28
28
  },
@@ -134,7 +134,7 @@ const AuthProviderIcon = ({ iconSize = 64, showNetworkIcon = false, wallet, }) =
134
134
  }
135
135
  // it means that user tried to login with actual wallet and no magic social and failed to go through the access list
136
136
  if (deniedAddress) {
137
- return (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.key, style: { height: pixelToRem.pixelToRem(iconSize), width: pixelToRem.pixelToRem(iconSize) } }));
137
+ return (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.key, icon: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.metadata.icon, style: { height: pixelToRem.pixelToRem(iconSize), width: pixelToRem.pixelToRem(iconSize) } }));
138
138
  }
139
139
  const walletForIcon = wallet ? wallet : primaryWallet;
140
140
  if (!walletForIcon) {
@@ -148,7 +148,7 @@ const AuthProviderIcon = ({ iconSize = 64, showNetworkIcon = false, wallet, }) =
148
148
  user: user !== null && user !== void 0 ? user : userWithMissingInfo,
149
149
  wallet: walletForIcon,
150
150
  });
151
- return (jsxRuntime.jsx(WalletIconWithNetwork.WalletIconWithNetwork, { iconSize: iconSize, Icon: Icon !== null && Icon !== void 0 ? Icon : null, chainName: walletForIcon.chain, showNetwork: showNetworkIcon, walletKey: walletForIcon.key }));
151
+ return (jsxRuntime.jsx(WalletIconWithNetwork.WalletIconWithNetwork, { iconSize: iconSize, Icon: Icon !== null && Icon !== void 0 ? Icon : null, chainName: walletForIcon.chain, showNetwork: showNetworkIcon, walletKey: walletForIcon.key, iconUrl: walletForIcon.connector.metadata.icon }));
152
152
  };
153
153
 
154
154
  exports.AuthProviderIcon = AuthProviderIcon;
@@ -130,7 +130,7 @@ const AuthProviderIcon = ({ iconSize = 64, showNetworkIcon = false, wallet, }) =
130
130
  }
131
131
  // it means that user tried to login with actual wallet and no magic social and failed to go through the access list
132
132
  if (deniedAddress) {
133
- return (jsx(WalletIcon, { walletKey: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.key, style: { height: pixelToRem(iconSize), width: pixelToRem(iconSize) } }));
133
+ return (jsx(WalletIcon, { walletKey: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.key, icon: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.metadata.icon, style: { height: pixelToRem(iconSize), width: pixelToRem(iconSize) } }));
134
134
  }
135
135
  const walletForIcon = wallet ? wallet : primaryWallet;
136
136
  if (!walletForIcon) {
@@ -144,7 +144,7 @@ const AuthProviderIcon = ({ iconSize = 64, showNetworkIcon = false, wallet, }) =
144
144
  user: user !== null && user !== void 0 ? user : userWithMissingInfo,
145
145
  wallet: walletForIcon,
146
146
  });
147
- return (jsx(WalletIconWithNetwork, { iconSize: iconSize, Icon: Icon !== null && Icon !== void 0 ? Icon : null, chainName: walletForIcon.chain, showNetwork: showNetworkIcon, walletKey: walletForIcon.key }));
147
+ return (jsx(WalletIconWithNetwork, { iconSize: iconSize, Icon: Icon !== null && Icon !== void 0 ? Icon : null, chainName: walletForIcon.chain, showNetwork: showNetworkIcon, walletKey: walletForIcon.key, iconUrl: walletForIcon.connector.metadata.icon }));
148
148
  };
149
149
 
150
150
  export { AuthProviderIcon };
@@ -4,7 +4,6 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
- var walletBook = require('@dynamic-labs/wallet-book');
8
7
  require('@dynamic-labs/sdk-api-core');
9
8
  require('../../utils/constants/values.cjs');
10
9
  require('@dynamic-labs/utils');
@@ -17,6 +16,7 @@ require('@dynamic-labs/iconic');
17
16
  require('@dynamic-labs/wallet-connector-core');
18
17
  require('../../context/ViewContext/ViewContext.cjs');
19
18
  require('react');
19
+ require('@dynamic-labs/wallet-book');
20
20
  require('../../store/state/loadingAndLifecycle.cjs');
21
21
  require('../../shared/consts/index.cjs');
22
22
  var pixelToRem = require('../../utils/functions/pixelToRem/pixelToRem.cjs');
@@ -26,17 +26,13 @@ require('../../locale/locale.cjs');
26
26
  require('../../store/state/projectSettings/projectSettings.cjs');
27
27
  var classNames = require('../../utils/functions/classNames/classNames.cjs');
28
28
  var StatusDot = require('../StatusDot/StatusDot.cjs');
29
- var Icon = require('../Icon/Icon.cjs');
30
29
 
31
- const IconWithStatus = ({ Icon: Icon$1, InnerIcon, primaryWalletKey, containerClassName, iconSize = 16, variant = 'green', }) => {
32
- const Inner = primaryWalletKey ? (jsxRuntime.jsx("div", { className: 'inner-icon__container', children: jsxRuntime.jsx("div", { className: classNames.classNames('inner-icon'), children: jsxRuntime.jsx(Icon.Icon, { size: 'medium', children: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: primaryWalletKey }) }) }) })) : (jsxRuntime.jsx("div", { className: 'inner-icon__container', children: jsxRuntime.jsx("div", { className: classNames.classNames('inner-icon', `inner-icon--${variant}`), children: InnerIcon && jsxRuntime.jsx(InnerIcon, {}) }) }));
33
- return (jsxRuntime.jsxs("div", { className: classNames.classNames('icon-with-status__container', containerClassName || ''), children: [typeof Icon$1 === 'string' ? (jsxRuntime.jsx("img", { style: {
34
- height: pixelToRem.pixelToRem(iconSize),
35
- width: pixelToRem.pixelToRem(iconSize),
36
- }, src: Icon$1, alt: '', className: 'icon' })) : (jsxRuntime.jsx(Icon$1, { style: {
37
- height: pixelToRem.pixelToRem(iconSize),
38
- width: pixelToRem.pixelToRem(iconSize),
39
- } })), InnerIcon || primaryWalletKey ? (Inner) : (jsxRuntime.jsx(StatusDot.StatusDot, { variant: variant, containerClassName: 'icon-with-status__status-dot' }))] }));
40
- };
30
+ const IconWithStatus = ({ Icon, InnerIcon, containerClassName, iconSize = 16, variant = 'green', }) => (jsxRuntime.jsxs("div", { className: classNames.classNames('icon-with-status__container', containerClassName || ''), children: [typeof Icon === 'string' ? (jsxRuntime.jsx("img", { style: {
31
+ height: pixelToRem.pixelToRem(iconSize),
32
+ width: pixelToRem.pixelToRem(iconSize),
33
+ }, src: Icon, alt: '', className: 'icon' })) : (jsxRuntime.jsx(Icon, { style: {
34
+ height: pixelToRem.pixelToRem(iconSize),
35
+ width: pixelToRem.pixelToRem(iconSize),
36
+ } })), InnerIcon ? (jsxRuntime.jsx("div", { className: 'inner-icon__container', children: jsxRuntime.jsx("div", { className: classNames.classNames('inner-icon', `inner-icon--${variant}`), children: jsxRuntime.jsx(InnerIcon, {}) }) })) : (jsxRuntime.jsx(StatusDot.StatusDot, { variant: variant, containerClassName: 'icon-with-status__status-dot' }))] }));
41
37
 
42
38
  exports.IconWithStatus = IconWithStatus;
@@ -5,8 +5,7 @@ type Props = {
5
5
  InnerIcon?: Icon;
6
6
  containerClassName?: string;
7
7
  iconSize?: number;
8
- primaryWalletKey?: string;
9
8
  variant?: 'green' | 'red' | 'yellow';
10
9
  };
11
- export declare const IconWithStatus: ({ Icon, InnerIcon, primaryWalletKey, containerClassName, iconSize, variant, }: Props) => JSX.Element;
10
+ export declare const IconWithStatus: ({ Icon, InnerIcon, containerClassName, iconSize, variant, }: Props) => JSX.Element;
12
11
  export {};
@@ -1,6 +1,5 @@
1
1
  'use client'
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
- import { WalletIcon } from '@dynamic-labs/wallet-book';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
3
  import '@dynamic-labs/sdk-api-core';
5
4
  import '../../utils/constants/values.js';
6
5
  import '@dynamic-labs/utils';
@@ -13,6 +12,7 @@ import '@dynamic-labs/iconic';
13
12
  import '@dynamic-labs/wallet-connector-core';
14
13
  import '../../context/ViewContext/ViewContext.js';
15
14
  import 'react';
15
+ import '@dynamic-labs/wallet-book';
16
16
  import '../../store/state/loadingAndLifecycle.js';
17
17
  import '../../shared/consts/index.js';
18
18
  import { pixelToRem } from '../../utils/functions/pixelToRem/pixelToRem.js';
@@ -22,17 +22,13 @@ import '../../locale/locale.js';
22
22
  import '../../store/state/projectSettings/projectSettings.js';
23
23
  import { classNames } from '../../utils/functions/classNames/classNames.js';
24
24
  import { StatusDot } from '../StatusDot/StatusDot.js';
25
- import { Icon } from '../Icon/Icon.js';
26
25
 
27
- const IconWithStatus = ({ Icon: Icon$1, InnerIcon, primaryWalletKey, containerClassName, iconSize = 16, variant = 'green', }) => {
28
- const Inner = primaryWalletKey ? (jsx("div", { className: 'inner-icon__container', children: jsx("div", { className: classNames('inner-icon'), children: jsx(Icon, { size: 'medium', children: jsx(WalletIcon, { walletKey: primaryWalletKey }) }) }) })) : (jsx("div", { className: 'inner-icon__container', children: jsx("div", { className: classNames('inner-icon', `inner-icon--${variant}`), children: InnerIcon && jsx(InnerIcon, {}) }) }));
29
- return (jsxs("div", { className: classNames('icon-with-status__container', containerClassName || ''), children: [typeof Icon$1 === 'string' ? (jsx("img", { style: {
30
- height: pixelToRem(iconSize),
31
- width: pixelToRem(iconSize),
32
- }, src: Icon$1, alt: '', className: 'icon' })) : (jsx(Icon$1, { style: {
33
- height: pixelToRem(iconSize),
34
- width: pixelToRem(iconSize),
35
- } })), InnerIcon || primaryWalletKey ? (Inner) : (jsx(StatusDot, { variant: variant, containerClassName: 'icon-with-status__status-dot' }))] }));
36
- };
26
+ const IconWithStatus = ({ Icon, InnerIcon, containerClassName, iconSize = 16, variant = 'green', }) => (jsxs("div", { className: classNames('icon-with-status__container', containerClassName || ''), children: [typeof Icon === 'string' ? (jsx("img", { style: {
27
+ height: pixelToRem(iconSize),
28
+ width: pixelToRem(iconSize),
29
+ }, src: Icon, alt: '', className: 'icon' })) : (jsx(Icon, { style: {
30
+ height: pixelToRem(iconSize),
31
+ width: pixelToRem(iconSize),
32
+ } })), InnerIcon ? (jsx("div", { className: 'inner-icon__container', children: jsx("div", { className: classNames('inner-icon', `inner-icon--${variant}`), children: jsx(InnerIcon, {}) }) })) : (jsx(StatusDot, { variant: variant, containerClassName: 'icon-with-status__status-dot' }))] }));
37
33
 
38
34
  export { IconWithStatus };
@@ -128,7 +128,7 @@ const WalletListHelpContent = ({ chains, newToWeb3WalletChainMap, }) => {
128
128
  if (!Object.keys((_b = walletBook$1 === null || walletBook$1 === void 0 ? void 0 : walletBook$1.wallets) !== null && _b !== void 0 ? _b : {}).length) {
129
129
  return jsxRuntime.jsx(Skeleton.Skeleton, { className: 'walletlist-footer-content__container' });
130
130
  }
131
- return (jsxRuntime.jsx("div", { className: 'walletlist-help-content__container', children: jsxRuntime.jsxs(EnterTileAnimation.EnterTileAnimation, { delay: '300ms', children: [jsxRuntime.jsx("div", { className: 'walletlist-help-content__icon', children: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletKey, style: { height: pixelToRem.pixelToRem(56), width: pixelToRem.pixelToRem(56) } }) }), jsxRuntime.jsxs("div", { className: 'walletlist-help-content__typography-wrapper', children: [jsxRuntime.jsxs(Typography.Typography, { as: 'p', variant: 'title', weight: 'medium', children: ["We recommend installing", ' ', walletBook.getWalletBookWallet(walletBook$1, walletKey).name] }), jsxRuntime.jsx(Typography.Typography, { as: 'label', variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'walletlist-help-content__typography--label', children: "Select your preferred option below:" })] }), jsxRuntime.jsx("div", { className: 'walletlist-help-content__buttons-wrapper', children: walletLinksElements.map((element, i) => element.isEnabled ? (jsxRuntime.jsx("button", { onClick: () => setSelectedUrl(element.url), children: jsxRuntime.jsx(Item.Item, { StartIcon: element.icon, heading: element.content, url: element.url }) }, i)) : undefined) }), isCustodialServiceWallet && (jsxRuntime.jsxs("div", { className: 'walletlist-help-content__custodial-wallet-area', children: [jsxRuntime.jsx(Typography.Typography, { className: 'walletlist-help-content__custodial-wallet-area--title', as: 'p', color: 'secondary', variant: 'body_normal', weight: 'regular', children: "If you don't want to install a wallet, then use:" }), jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, { wallet: newToWeb3Wallet })] })), jsxRuntime.jsx(WalletExtensionOrAppContinueButton.WalletExtensionOrAppContinueButton, { selectedUrl: selectedUrl, wallet: newToWeb3Wallet })] }) }));
131
+ return (jsxRuntime.jsx("div", { className: 'walletlist-help-content__container', children: jsxRuntime.jsxs(EnterTileAnimation.EnterTileAnimation, { delay: '300ms', children: [jsxRuntime.jsx("div", { className: 'walletlist-help-content__icon', children: jsxRuntime.jsx(walletBook.WalletIcon, { icon: newToWeb3Wallet === null || newToWeb3Wallet === void 0 ? void 0 : newToWeb3Wallet.walletConnector.metadata.icon, walletKey: walletKey, style: { height: pixelToRem.pixelToRem(56), width: pixelToRem.pixelToRem(56) } }) }), jsxRuntime.jsxs("div", { className: 'walletlist-help-content__typography-wrapper', children: [jsxRuntime.jsxs(Typography.Typography, { as: 'p', variant: 'title', weight: 'medium', children: ["We recommend installing", ' ', walletBook.getWalletBookWallet(walletBook$1, walletKey).name] }), jsxRuntime.jsx(Typography.Typography, { as: 'label', variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'walletlist-help-content__typography--label', children: "Select your preferred option below:" })] }), jsxRuntime.jsx("div", { className: 'walletlist-help-content__buttons-wrapper', children: walletLinksElements.map((element, i) => element.isEnabled ? (jsxRuntime.jsx("button", { onClick: () => setSelectedUrl(element.url), children: jsxRuntime.jsx(Item.Item, { StartIcon: element.icon, heading: element.content, url: element.url }) }, i)) : undefined) }), isCustodialServiceWallet && (jsxRuntime.jsxs("div", { className: 'walletlist-help-content__custodial-wallet-area', children: [jsxRuntime.jsx(Typography.Typography, { className: 'walletlist-help-content__custodial-wallet-area--title', as: 'p', color: 'secondary', variant: 'body_normal', weight: 'regular', children: "If you don't want to install a wallet, then use:" }), jsxRuntime.jsx(NewToWeb3WalletItem.NewToWeb3WalletItem, { wallet: newToWeb3Wallet })] })), jsxRuntime.jsx(WalletExtensionOrAppContinueButton.WalletExtensionOrAppContinueButton, { selectedUrl: selectedUrl, wallet: newToWeb3Wallet })] }) }));
132
132
  };
133
133
 
134
134
  exports.WalletListHelpContent = WalletListHelpContent;
@@ -124,7 +124,7 @@ const WalletListHelpContent = ({ chains, newToWeb3WalletChainMap, }) => {
124
124
  if (!Object.keys((_b = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _b !== void 0 ? _b : {}).length) {
125
125
  return jsx(Skeleton, { className: 'walletlist-footer-content__container' });
126
126
  }
127
- return (jsx("div", { className: 'walletlist-help-content__container', children: jsxs(EnterTileAnimation, { delay: '300ms', children: [jsx("div", { className: 'walletlist-help-content__icon', children: jsx(WalletIcon, { walletKey: walletKey, style: { height: pixelToRem(56), width: pixelToRem(56) } }) }), jsxs("div", { className: 'walletlist-help-content__typography-wrapper', children: [jsxs(Typography, { as: 'p', variant: 'title', weight: 'medium', children: ["We recommend installing", ' ', getWalletBookWallet(walletBook, walletKey).name] }), jsx(Typography, { as: 'label', variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'walletlist-help-content__typography--label', children: "Select your preferred option below:" })] }), jsx("div", { className: 'walletlist-help-content__buttons-wrapper', children: walletLinksElements.map((element, i) => element.isEnabled ? (jsx("button", { onClick: () => setSelectedUrl(element.url), children: jsx(Item, { StartIcon: element.icon, heading: element.content, url: element.url }) }, i)) : undefined) }), isCustodialServiceWallet && (jsxs("div", { className: 'walletlist-help-content__custodial-wallet-area', children: [jsx(Typography, { className: 'walletlist-help-content__custodial-wallet-area--title', as: 'p', color: 'secondary', variant: 'body_normal', weight: 'regular', children: "If you don't want to install a wallet, then use:" }), jsx(NewToWeb3WalletItem, { wallet: newToWeb3Wallet })] })), jsx(WalletExtensionOrAppContinueButton, { selectedUrl: selectedUrl, wallet: newToWeb3Wallet })] }) }));
127
+ return (jsx("div", { className: 'walletlist-help-content__container', children: jsxs(EnterTileAnimation, { delay: '300ms', children: [jsx("div", { className: 'walletlist-help-content__icon', children: jsx(WalletIcon, { icon: newToWeb3Wallet === null || newToWeb3Wallet === void 0 ? void 0 : newToWeb3Wallet.walletConnector.metadata.icon, walletKey: walletKey, style: { height: pixelToRem(56), width: pixelToRem(56) } }) }), jsxs("div", { className: 'walletlist-help-content__typography-wrapper', children: [jsxs(Typography, { as: 'p', variant: 'title', weight: 'medium', children: ["We recommend installing", ' ', getWalletBookWallet(walletBook, walletKey).name] }), jsx(Typography, { as: 'label', variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'walletlist-help-content__typography--label', children: "Select your preferred option below:" })] }), jsx("div", { className: 'walletlist-help-content__buttons-wrapper', children: walletLinksElements.map((element, i) => element.isEnabled ? (jsx("button", { onClick: () => setSelectedUrl(element.url), children: jsx(Item, { StartIcon: element.icon, heading: element.content, url: element.url }) }, i)) : undefined) }), isCustodialServiceWallet && (jsxs("div", { className: 'walletlist-help-content__custodial-wallet-area', children: [jsx(Typography, { className: 'walletlist-help-content__custodial-wallet-area--title', as: 'p', color: 'secondary', variant: 'body_normal', weight: 'regular', children: "If you don't want to install a wallet, then use:" }), jsx(NewToWeb3WalletItem, { wallet: newToWeb3Wallet })] })), jsx(WalletExtensionOrAppContinueButton, { selectedUrl: selectedUrl, wallet: newToWeb3Wallet })] }) }));
128
128
  };
129
129
 
130
130
  export { WalletListHelpContent };