@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
@@ -1,3 +1,3 @@
1
- import { WalletSchema } from '@dynamic-labs/wallet-book';
1
+ import { WalletLimitations } from '@dynamic-labs/wallet-connector-core';
2
2
  import { WalletConnector } from '../../../..';
3
- export declare const getPlatformForConnector: (connector: WalletConnector) => keyof NonNullable<WalletSchema['walletLimitations']>;
3
+ export declare const getPlatformForConnector: (connector: WalletConnector) => keyof NonNullable<WalletLimitations>;
@@ -59,7 +59,7 @@ const getNonEditableUserProfileFields = ({ projectSettingsKyc = [], user, }) =>
59
59
  * @returns {ProjectSettingsKyc[]} - The list of all user profile fields based on project settings.
60
60
  */
61
61
  const getUserProfileFields = ({ projectSettingsKyc = [], customFields = [], user, }) => {
62
- var _a;
62
+ var _a, _b;
63
63
  const editableUserProfileFields = getEditableUserProfileFields([
64
64
  ...projectSettingsKyc,
65
65
  ...customFields,
@@ -72,10 +72,12 @@ const getUserProfileFields = ({ projectSettingsKyc = [], customFields = [], user
72
72
  ...editableUserProfileFields,
73
73
  ...nonEditableUserProfileFields,
74
74
  ];
75
- const hasEmbeddedWallet = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletProvider }) => walletProvider === sdkApiCore.WalletProviderEnum.EmbeddedWallet);
75
+ const userEmbeddedWallet = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletProvider }) => walletProvider === sdkApiCore.WalletProviderEnum.EmbeddedWallet);
76
+ const hasV1EmbeddedWallet = ((_b = userEmbeddedWallet === null || userEmbeddedWallet === void 0 ? void 0 : userEmbeddedWallet.walletProperties) === null || _b === void 0 ? void 0 : _b.version) ===
77
+ sdkApiCore.EmbeddedWalletVersionEnum.V1;
76
78
  const userHasEmail = Boolean(user === null || user === void 0 ? void 0 : user.email);
77
79
  const userHasPhoneNumber = Boolean(user === null || user === void 0 ? void 0 : user.phoneNumber);
78
- if (hasEmbeddedWallet) {
80
+ if (hasV1EmbeddedWallet) {
79
81
  concatedList = concatedList.map((field) => {
80
82
  if ((field.name === 'email' && userHasEmail) ||
81
83
  (field.name === 'phoneNumber' && userHasPhoneNumber)) {
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- import { WalletProviderEnum, KycFieldType } from '@dynamic-labs/sdk-api-core';
2
+ import { WalletProviderEnum, EmbeddedWalletVersionEnum, KycFieldType } from '@dynamic-labs/sdk-api-core';
3
3
  import { getEnabledKYC } from '../getEnabledKYC/index.js';
4
4
 
5
5
  /**
@@ -55,7 +55,7 @@ const getNonEditableUserProfileFields = ({ projectSettingsKyc = [], user, }) =>
55
55
  * @returns {ProjectSettingsKyc[]} - The list of all user profile fields based on project settings.
56
56
  */
57
57
  const getUserProfileFields = ({ projectSettingsKyc = [], customFields = [], user, }) => {
58
- var _a;
58
+ var _a, _b;
59
59
  const editableUserProfileFields = getEditableUserProfileFields([
60
60
  ...projectSettingsKyc,
61
61
  ...customFields,
@@ -68,10 +68,12 @@ const getUserProfileFields = ({ projectSettingsKyc = [], customFields = [], user
68
68
  ...editableUserProfileFields,
69
69
  ...nonEditableUserProfileFields,
70
70
  ];
71
- const hasEmbeddedWallet = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletProvider }) => walletProvider === WalletProviderEnum.EmbeddedWallet);
71
+ const userEmbeddedWallet = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find(({ walletProvider }) => walletProvider === WalletProviderEnum.EmbeddedWallet);
72
+ const hasV1EmbeddedWallet = ((_b = userEmbeddedWallet === null || userEmbeddedWallet === void 0 ? void 0 : userEmbeddedWallet.walletProperties) === null || _b === void 0 ? void 0 : _b.version) ===
73
+ EmbeddedWalletVersionEnum.V1;
72
74
  const userHasEmail = Boolean(user === null || user === void 0 ? void 0 : user.email);
73
75
  const userHasPhoneNumber = Boolean(user === null || user === void 0 ? void 0 : user.phoneNumber);
74
- if (hasEmbeddedWallet) {
76
+ if (hasV1EmbeddedWallet) {
75
77
  concatedList = concatedList.map((field) => {
76
78
  if ((field.name === 'email' && userHasEmail) ||
77
79
  (field.name === 'phoneNumber' && userHasPhoneNumber)) {
@@ -7,7 +7,7 @@ var filterConnectedWallets = require('../filterConnectedWallets/filterConnectedW
7
7
  var staticLinkedWalletFilter = require('../staticLinkedWalletFilter/staticLinkedWalletFilter.cjs');
8
8
  var filterWalletConnectWallets = require('../filterWalletConnectWallets/filterWalletConnectWallets.cjs');
9
9
 
10
- const applyMultiWalletFilters = ({ authMode, userWallets, walletOptions, walletBook, }) => {
10
+ const applyMultiWalletFilters = ({ authMode, userWallets, walletOptions, }) => {
11
11
  const walletList = filterWalletConnectWallets.filterWalletConnectWallets({
12
12
  userWallets,
13
13
  walletOptions,
@@ -18,7 +18,7 @@ const applyMultiWalletFilters = ({ authMode, userWallets, walletOptions, walletB
18
18
  walletOptions: walletList,
19
19
  });
20
20
  }
21
- return staticLinkedWalletFilter.staticWalletFilter(userWallets, walletList, walletBook);
21
+ return staticLinkedWalletFilter.staticWalletFilter(userWallets, walletList);
22
22
  };
23
23
 
24
24
  exports.applyMultiWalletFilters = applyMultiWalletFilters;
@@ -1,8 +1,6 @@
1
- import { WalletBookSchema } from '@dynamic-labs/wallet-book';
2
1
  import { AuthModeType, Wallet, WalletOption } from '../../../../../shared';
3
- export declare const applyMultiWalletFilters: ({ authMode, userWallets, walletOptions, walletBook, }: {
2
+ export declare const applyMultiWalletFilters: ({ authMode, userWallets, walletOptions, }: {
4
3
  authMode: AuthModeType;
5
4
  userWallets: Wallet[];
6
5
  walletOptions: WalletOption[];
7
- walletBook: WalletBookSchema;
8
6
  }) => WalletOption[];
@@ -3,7 +3,7 @@ import { filterConnectedWallets } from '../filterConnectedWallets/filterConnecte
3
3
  import { staticWalletFilter } from '../staticLinkedWalletFilter/staticLinkedWalletFilter.js';
4
4
  import { filterWalletConnectWallets } from '../filterWalletConnectWallets/filterWalletConnectWallets.js';
5
5
 
6
- const applyMultiWalletFilters = ({ authMode, userWallets, walletOptions, walletBook, }) => {
6
+ const applyMultiWalletFilters = ({ authMode, userWallets, walletOptions, }) => {
7
7
  const walletList = filterWalletConnectWallets({
8
8
  userWallets,
9
9
  walletOptions,
@@ -14,7 +14,7 @@ const applyMultiWalletFilters = ({ authMode, userWallets, walletOptions, walletB
14
14
  walletOptions: walletList,
15
15
  });
16
16
  }
17
- return staticWalletFilter(userWallets, walletList, walletBook);
17
+ return staticWalletFilter(userWallets, walletList);
18
18
  };
19
19
 
20
20
  export { applyMultiWalletFilters };
@@ -3,15 +3,16 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var walletBook = require('@dynamic-labs/wallet-book');
6
+ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
7
7
  var getPlatformForConnector = require('../../../getPlatformForConnector/getPlatformForConnector.cjs');
8
8
 
9
9
  /**
10
10
  * This function is a helper to filter out wallets that should not appear in the wallet list
11
11
  * if they are already linked to the user profile.
12
12
  */
13
- const staticWalletFilter = (linkedWallets, walletOptions, walletBook$1) => walletOptions.filter((walletOption) => {
14
- if (walletBook.isWalletEventSupported(walletBook.findWalletBookWallet(walletBook$1, walletOption.key), 'accountChanged', getPlatformForConnector.getPlatformForConnector(walletOption.walletConnector))) {
13
+ const staticWalletFilter = (linkedWallets, walletOptions) => walletOptions.filter((walletOption) => {
14
+ if (walletOption.walletConnector &&
15
+ walletConnectorCore.isConnectorEventSupported(walletOption.walletConnector, 'accountChanged', getPlatformForConnector.getPlatformForConnector(walletOption.walletConnector))) {
15
16
  return true;
16
17
  }
17
18
  if (linkedWallets.some((wallet) => wallet.connector.key === walletOption.key)) {
@@ -1,7 +1,6 @@
1
- import { WalletBookSchema } from '@dynamic-labs/wallet-book';
2
1
  import { Wallet, WalletOption } from '../../../../../shared';
3
2
  /**
4
3
  * This function is a helper to filter out wallets that should not appear in the wallet list
5
4
  * if they are already linked to the user profile.
6
5
  */
7
- export declare const staticWalletFilter: (linkedWallets: Wallet[], walletOptions: WalletOption[], walletBook: WalletBookSchema) => WalletOption[];
6
+ export declare const staticWalletFilter: (linkedWallets: Wallet[], walletOptions: WalletOption[]) => WalletOption[];
@@ -1,13 +1,14 @@
1
1
  'use client'
2
- import { isWalletEventSupported, findWalletBookWallet } from '@dynamic-labs/wallet-book';
2
+ import { isConnectorEventSupported } from '@dynamic-labs/wallet-connector-core';
3
3
  import { getPlatformForConnector } from '../../../getPlatformForConnector/getPlatformForConnector.js';
4
4
 
5
5
  /**
6
6
  * This function is a helper to filter out wallets that should not appear in the wallet list
7
7
  * if they are already linked to the user profile.
8
8
  */
9
- const staticWalletFilter = (linkedWallets, walletOptions, walletBook) => walletOptions.filter((walletOption) => {
10
- if (isWalletEventSupported(findWalletBookWallet(walletBook, walletOption.key), 'accountChanged', getPlatformForConnector(walletOption.walletConnector))) {
9
+ const staticWalletFilter = (linkedWallets, walletOptions) => walletOptions.filter((walletOption) => {
10
+ if (walletOption.walletConnector &&
11
+ isConnectorEventSupported(walletOption.walletConnector, 'accountChanged', getPlatformForConnector(walletOption.walletConnector))) {
11
12
  return true;
12
13
  }
13
14
  if (linkedWallets.some((wallet) => wallet.connector.key === walletOption.key)) {
@@ -65,7 +65,6 @@ const walletListBuilder = ({ authMode, userWallets, multiWallet, numberOfWallets
65
65
  walletList = applyMultiWalletFilters.applyMultiWalletFilters({
66
66
  authMode,
67
67
  userWallets,
68
- walletBook,
69
68
  walletOptions: walletList,
70
69
  });
71
70
  }
@@ -61,7 +61,6 @@ const walletListBuilder = ({ authMode, userWallets, multiWallet, numberOfWallets
61
61
  walletList = applyMultiWalletFilters({
62
62
  authMode,
63
63
  userWallets,
64
- walletBook,
65
64
  walletOptions: walletList,
66
65
  });
67
66
  }
@@ -158,7 +158,12 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
158
158
  if (!shouldConfirmAction())
159
159
  return transaction.submit();
160
160
  return openSendTransaction((resolve, reject) => (jsxRuntime.jsx(TransactionConfirmationModal.TransactionConfirmationModal, { copykey: 'dyn_send_transaction.confirmation.title', title: t('dyn_send_transaction.confirmation.title'), transaction: transaction, onTransactionResponseSuccess: resolve, onReject: reject, walletConnector: walletConnector, hideModal: hideEmbeddedWalletTransactionUIs &&
161
- !(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.isGlobalTransaction) }))).then((signedTransaction) => _tslib.__awaiter(void 0, void 0, void 0, function* () { return signedTransaction; }));
161
+ !(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.isGlobalTransaction) }))).then((signedTransaction) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
162
+ if (signedTransaction === 'callHandlerOutsideModal')
163
+ return transaction.submit();
164
+ else
165
+ return signedTransaction;
166
+ }));
162
167
  }), [
163
168
  hideEmbeddedWalletTransactionUIs,
164
169
  openSendTransaction,
@@ -154,7 +154,12 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
154
154
  if (!shouldConfirmAction())
155
155
  return transaction.submit();
156
156
  return openSendTransaction((resolve, reject) => (jsx(TransactionConfirmationModal, { copykey: 'dyn_send_transaction.confirmation.title', title: t('dyn_send_transaction.confirmation.title'), transaction: transaction, onTransactionResponseSuccess: resolve, onReject: reject, walletConnector: walletConnector, hideModal: hideEmbeddedWalletTransactionUIs &&
157
- !(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.isGlobalTransaction) }))).then((signedTransaction) => __awaiter(void 0, void 0, void 0, function* () { return signedTransaction; }));
157
+ !(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.isGlobalTransaction) }))).then((signedTransaction) => __awaiter(void 0, void 0, void 0, function* () {
158
+ if (signedTransaction === 'callHandlerOutsideModal')
159
+ return transaction.submit();
160
+ else
161
+ return signedTransaction;
162
+ }));
158
163
  }), [
159
164
  hideEmbeddedWalletTransactionUIs,
160
165
  openSendTransaction,
@@ -130,7 +130,7 @@ const MergeUserAccountsWithSameEmailView = ({ returnToView }) => {
130
130
  }
131
131
  setView('collect-user-data');
132
132
  };
133
- return (jsxRuntime.jsxs("div", { className: 'merge-user-accounts-with-same-email__container', children: [jsxRuntime.jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts', children: [jsxRuntime.jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts__item', children: [jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.key, className: 'merge-user-accounts-with-same-email__accounts__item__icon' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts-with-same-email__accounts__item__text', children: shortenWalletAddress.shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) })] }), jsxRuntime.jsx("div", { className: 'merge-user-accounts-with-same-email__accounts__divider', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-secondary', size: 'small', children: jsxRuntime.jsx(doubleArrowRight.ReactComponent, {}) }) }), jsxRuntime.jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts__item', children: [jsxRuntime.jsx(iconic.UserProfileIcon, { className: 'merge-user-accounts-with-same-email__accounts__item__icon' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts-with-same-email__accounts__item__text', children: shortenEmail.shortenEmail(email, {
133
+ return (jsxRuntime.jsxs("div", { className: 'merge-user-accounts-with-same-email__container', children: [jsxRuntime.jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts', children: [jsxRuntime.jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts__item', children: [jsxRuntime.jsx(walletBook.WalletIcon, { icon: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.metadata.icon, walletKey: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.key, className: 'merge-user-accounts-with-same-email__accounts__item__icon' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts-with-same-email__accounts__item__text', children: shortenWalletAddress.shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) })] }), jsxRuntime.jsx("div", { className: 'merge-user-accounts-with-same-email__accounts__divider', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-secondary', size: 'small', children: jsxRuntime.jsx(doubleArrowRight.ReactComponent, {}) }) }), jsxRuntime.jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts__item', children: [jsxRuntime.jsx(iconic.UserProfileIcon, { className: 'merge-user-accounts-with-same-email__accounts__item__icon' }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts-with-same-email__accounts__item__text', children: shortenEmail.shortenEmail(email, {
134
134
  breakpoint: 4,
135
135
  cutEnd: 1,
136
136
  cutStart: 2,
@@ -126,7 +126,7 @@ const MergeUserAccountsWithSameEmailView = ({ returnToView }) => {
126
126
  }
127
127
  setView('collect-user-data');
128
128
  };
129
- return (jsxs("div", { className: 'merge-user-accounts-with-same-email__container', children: [jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts', children: [jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts__item', children: [jsx(WalletIcon, { walletKey: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.key, className: 'merge-user-accounts-with-same-email__accounts__item__icon' }), jsx(Typography, { variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts-with-same-email__accounts__item__text', children: shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) })] }), jsx("div", { className: 'merge-user-accounts-with-same-email__accounts__divider', children: jsx(Icon, { color: 'text-secondary', size: 'small', children: jsx(SvgDoubleArrowRight, {}) }) }), jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts__item', children: [jsx(UserProfileIcon, { className: 'merge-user-accounts-with-same-email__accounts__item__icon' }), jsx(Typography, { variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts-with-same-email__accounts__item__text', children: shortenEmail(email, {
129
+ return (jsxs("div", { className: 'merge-user-accounts-with-same-email__container', children: [jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts', children: [jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts__item', children: [jsx(WalletIcon, { icon: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.metadata.icon, walletKey: primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.connector.key, className: 'merge-user-accounts-with-same-email__accounts__item__icon' }), jsx(Typography, { variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts-with-same-email__accounts__item__text', children: shortenWalletAddress(primaryWallet === null || primaryWallet === void 0 ? void 0 : primaryWallet.address, 3, 3) })] }), jsx("div", { className: 'merge-user-accounts-with-same-email__accounts__divider', children: jsx(Icon, { color: 'text-secondary', size: 'small', children: jsx(SvgDoubleArrowRight, {}) }) }), jsxs("div", { className: 'merge-user-accounts-with-same-email__accounts__item', children: [jsx(UserProfileIcon, { className: 'merge-user-accounts-with-same-email__accounts__item__icon' }), jsx(Typography, { variant: 'body_normal', weight: 'medium', color: 'secondary', className: 'merge-user-accounts-with-same-email__accounts__item__text', children: shortenEmail(email, {
130
130
  breakpoint: 4,
131
131
  cutEnd: 1,
132
132
  cutStart: 2,
@@ -113,7 +113,7 @@ const MobileWalletRedirectView = ({ onRetry, }) => {
113
113
  };
114
114
  }, [selectedWalletConnector, walletBook$1]);
115
115
  const openWalletApp = () => walletLink && window.open(walletLink, '_blank', 'noopener,noreferrer');
116
- const makeIcon = (size) => (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.key, style: {
116
+ const makeIcon = (size) => (jsxRuntime.jsx(walletBook.WalletIcon, { icon: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.metadata.icon, walletKey: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.key, style: {
117
117
  height: pixelToRem.pixelToRem(size),
118
118
  width: pixelToRem.pixelToRem(size),
119
119
  } }));
@@ -109,7 +109,7 @@ const MobileWalletRedirectView = ({ onRetry, }) => {
109
109
  };
110
110
  }, [selectedWalletConnector, walletBook]);
111
111
  const openWalletApp = () => walletLink && window.open(walletLink, '_blank', 'noopener,noreferrer');
112
- const makeIcon = (size) => (jsx(WalletIcon, { walletKey: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.key, style: {
112
+ const makeIcon = (size) => (jsx(WalletIcon, { icon: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.metadata.icon, walletKey: selectedWalletConnector === null || selectedWalletConnector === void 0 ? void 0 : selectedWalletConnector.key, style: {
113
113
  height: pixelToRem(size),
114
114
  width: pixelToRem(size),
115
115
  } }));
@@ -117,7 +117,7 @@ const NetworkNotSupported = () => {
117
117
  });
118
118
  return (jsxRuntime.jsxs("div", { className: 'network-not-supported', "data-testid": 'network-not-supported', children: [onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported', copykey: 'dyn_network_not_supported.warning_message', children: t('dyn_network_not_supported.warning_message') })), jsxRuntime.jsxs("div", { className: classNames.classNames('network-not-supported__content-container', {
119
119
  'network-not-supported__content-container--error': !_isSupportedNetwork,
120
- }), children: [jsxRuntime.jsx("div", { className: 'network-not-supported__img-container', children: jsxRuntime.jsx(walletBook.WalletIcon, { style: { height: 64, width: 64 }, walletKey: walletConnector.key }) }), jsxRuntime.jsx(UserAddress.UserAddress, { walletConnector: walletConnector }), jsxRuntime.jsx("div", { className: 'network-not-supported__network-container', children: evmNetworks.length > 1 && (jsxRuntime.jsx(NetworkPicker.NetworkPicker, { currentNetwork: currentNetwork, evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker' })) }), jsxRuntime.jsx("div", { className: 'network-not-supported__welcome-container', children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_network_not_supported.subtitle', children: t('dyn_network_not_supported.subtitle') }) }), evmNetworks.length === 1 && (jsxRuntime.jsx(SelectNetworkButton.SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] })] }));
120
+ }), children: [jsxRuntime.jsx("div", { className: 'network-not-supported__img-container', children: jsxRuntime.jsx(walletBook.WalletIcon, { style: { height: 64, width: 64 }, icon: walletConnector.metadata.icon, walletKey: walletConnector.key }) }), jsxRuntime.jsx(UserAddress.UserAddress, { walletConnector: walletConnector }), jsxRuntime.jsx("div", { className: 'network-not-supported__network-container', children: evmNetworks.length > 1 && (jsxRuntime.jsx(NetworkPicker.NetworkPicker, { currentNetwork: currentNetwork, evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker' })) }), jsxRuntime.jsx("div", { className: 'network-not-supported__welcome-container', children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_network_not_supported.subtitle', children: t('dyn_network_not_supported.subtitle') }) }), evmNetworks.length === 1 && (jsxRuntime.jsx(SelectNetworkButton.SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] })] }));
121
121
  };
122
122
 
123
123
  exports.NetworkNotSupported = NetworkNotSupported;
@@ -113,7 +113,7 @@ const NetworkNotSupported = () => {
113
113
  });
114
114
  return (jsxs("div", { className: 'network-not-supported', "data-testid": 'network-not-supported', children: [onboardingImageUrl && (jsx("img", { className: 'network-not-supported__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsx(ErrorContainer, { variant: 'info', withIcon: false, className: 'network-not-supported__error--not-supported', copykey: 'dyn_network_not_supported.warning_message', children: t('dyn_network_not_supported.warning_message') })), jsxs("div", { className: classNames('network-not-supported__content-container', {
115
115
  'network-not-supported__content-container--error': !_isSupportedNetwork,
116
- }), children: [jsx("div", { className: 'network-not-supported__img-container', children: jsx(WalletIcon, { style: { height: 64, width: 64 }, walletKey: walletConnector.key }) }), jsx(UserAddress, { walletConnector: walletConnector }), jsx("div", { className: 'network-not-supported__network-container', children: evmNetworks.length > 1 && (jsx(NetworkPicker, { currentNetwork: currentNetwork, evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker' })) }), jsx("div", { className: 'network-not-supported__welcome-container', children: jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_network_not_supported.subtitle', children: t('dyn_network_not_supported.subtitle') }) }), evmNetworks.length === 1 && (jsx(SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] })] }));
116
+ }), children: [jsx("div", { className: 'network-not-supported__img-container', children: jsx(WalletIcon, { style: { height: 64, width: 64 }, icon: walletConnector.metadata.icon, walletKey: walletConnector.key }) }), jsx(UserAddress, { walletConnector: walletConnector }), jsx("div", { className: 'network-not-supported__network-container', children: evmNetworks.length > 1 && (jsx(NetworkPicker, { currentNetwork: currentNetwork, evmNetworks: evmNetworks, connector: walletConnector, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, showNetworkName: true, buttonClassName: 'network-not-supported__network-picker-button', mainClassName: 'network-not-supported__network-picker' })) }), jsx("div", { className: 'network-not-supported__welcome-container', children: jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_network_not_supported.subtitle', children: t('dyn_network_not_supported.subtitle') }) }), evmNetworks.length === 1 && (jsx(SelectNetworkButton, { onClick: onSelectNetworkButtonClick, networkId: evmNetworks[0].networkId, networkName: evmNetworks[0].vanityName || evmNetworks[0].name, networkIconUrl: evmNetworks[0].iconUrls[0] }))] })] }));
117
117
  };
118
118
 
119
119
  export { NetworkNotSupported };
@@ -97,7 +97,7 @@ const NetworkNotSupportedSwitchManual = () => {
97
97
  useNetworkNotSupported.useNetworkNotSupported();
98
98
  const { t } = reactI18next.useTranslation();
99
99
  const iconSize = 80;
100
- const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
100
+ const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { icon: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.metadata.icon, walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
101
101
  height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
102
102
  width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
103
103
  } }));
@@ -93,7 +93,7 @@ const NetworkNotSupportedSwitchManual = () => {
93
93
  useNetworkNotSupported();
94
94
  const { t } = useTranslation();
95
95
  const iconSize = 80;
96
- const icon = (jsx(WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
96
+ const icon = (jsx(WalletIcon, { icon: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.metadata.icon, walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
97
97
  height: pixelToRem(iconSize * iconRatio),
98
98
  width: pixelToRem(iconSize * iconRatio),
99
99
  } }));
@@ -101,7 +101,7 @@ const NoQrNotInstalledView = () => {
101
101
  .map(([name, link]) => (jsxRuntime.jsx(WalletHelpLink.WalletHelpLink, { name: name, link: link,
102
102
  // justification: we're looping over the keys of walletLinks.desktop
103
103
  Icon: getBrowserIcon.getBrowserIcon(name) }, name)));
104
- return (jsxRuntime.jsxs("div", { className: 'no-qr-code-installed__container', "data-testid": 'no-qr-code-installed', children: [jsxRuntime.jsx("div", { className: 'no-qr-code-installed__img', children: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: selectedWalletConnector.key, style: { height: pixelToRem.pixelToRem(64), width: pixelToRem.pixelToRem(64) } }) }), jsxRuntime.jsx(Typography.Typography, { className: 'no-qr-code-installed__typography--title', variant: 'title', copykey: 'dyn_qr_code.wallet_not_installed.install', children: t('dyn_qr_code.wallet_not_installed.install', {
104
+ return (jsxRuntime.jsxs("div", { className: 'no-qr-code-installed__container', "data-testid": 'no-qr-code-installed', children: [jsxRuntime.jsx("div", { className: 'no-qr-code-installed__img', children: jsxRuntime.jsx(walletBook.WalletIcon, { icon: selectedWalletConnector.metadata.icon, walletKey: selectedWalletConnector.key, style: { height: pixelToRem.pixelToRem(64), width: pixelToRem.pixelToRem(64) } }) }), jsxRuntime.jsx(Typography.Typography, { className: 'no-qr-code-installed__typography--title', variant: 'title', copykey: 'dyn_qr_code.wallet_not_installed.install', children: t('dyn_qr_code.wallet_not_installed.install', {
105
105
  wallet: walletBook.getWalletBookWallet(walletBook$1, selectedWalletConnector.key)
106
106
  .name,
107
107
  }) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', className: 'no-qr-code-installed__typography', color: 'secondary', copykey: 'dyn_qr_code.wallet_not_installed.select', children: t('dyn_qr_code.wallet_not_installed.select') }), jsxRuntime.jsx("div", { className: 'no-qr-code-installed__links-section', children: downloadLinks }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_mini', className: 'no-qr-code-installed__typography', weight: 'medium', color: 'secondary', copykey: 'dyn_qr_code.wallet_not_installed.refresh', children: t('dyn_qr_code.wallet_not_installed.refresh') })] }));
@@ -97,7 +97,7 @@ const NoQrNotInstalledView = () => {
97
97
  .map(([name, link]) => (jsx(WalletHelpLink, { name: name, link: link,
98
98
  // justification: we're looping over the keys of walletLinks.desktop
99
99
  Icon: getBrowserIcon(name) }, name)));
100
- return (jsxs("div", { className: 'no-qr-code-installed__container', "data-testid": 'no-qr-code-installed', children: [jsx("div", { className: 'no-qr-code-installed__img', children: jsx(WalletIcon, { walletKey: selectedWalletConnector.key, style: { height: pixelToRem(64), width: pixelToRem(64) } }) }), jsx(Typography, { className: 'no-qr-code-installed__typography--title', variant: 'title', copykey: 'dyn_qr_code.wallet_not_installed.install', children: t('dyn_qr_code.wallet_not_installed.install', {
100
+ return (jsxs("div", { className: 'no-qr-code-installed__container', "data-testid": 'no-qr-code-installed', children: [jsx("div", { className: 'no-qr-code-installed__img', children: jsx(WalletIcon, { icon: selectedWalletConnector.metadata.icon, walletKey: selectedWalletConnector.key, style: { height: pixelToRem(64), width: pixelToRem(64) } }) }), jsx(Typography, { className: 'no-qr-code-installed__typography--title', variant: 'title', copykey: 'dyn_qr_code.wallet_not_installed.install', children: t('dyn_qr_code.wallet_not_installed.install', {
101
101
  wallet: getWalletBookWallet(walletBook, selectedWalletConnector.key)
102
102
  .name,
103
103
  }) }), jsx(Typography, { variant: 'body_normal', className: 'no-qr-code-installed__typography', color: 'secondary', copykey: 'dyn_qr_code.wallet_not_installed.select', children: t('dyn_qr_code.wallet_not_installed.select') }), jsx("div", { className: 'no-qr-code-installed__links-section', children: downloadLinks }), jsx(Typography, { variant: 'body_mini', className: 'no-qr-code-installed__typography', weight: 'medium', color: 'secondary', copykey: 'dyn_qr_code.wallet_not_installed.refresh', children: t('dyn_qr_code.wallet_not_installed.refresh') })] }));
@@ -91,7 +91,7 @@ const PendingConnectView = () => {
91
91
  const { selectedWalletConnector: walletConnector } = useInternalDynamicContext.useInternalDynamicContext();
92
92
  const { t } = reactI18next.useTranslation();
93
93
  const iconSize = 94;
94
- const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
94
+ const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { icon: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.metadata.icon, walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
95
95
  height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
96
96
  width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
97
97
  } }));
@@ -87,7 +87,7 @@ const PendingConnectView = () => {
87
87
  const { selectedWalletConnector: walletConnector } = useInternalDynamicContext();
88
88
  const { t } = useTranslation();
89
89
  const iconSize = 94;
90
- const icon = (jsx(WalletIcon, { walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
90
+ const icon = (jsx(WalletIcon, { icon: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.metadata.icon, walletKey: walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.key, style: {
91
91
  height: pixelToRem(iconSize * iconRatio),
92
92
  width: pixelToRem(iconSize * iconRatio),
93
93
  } }));
@@ -117,7 +117,7 @@ const PendingSignatureView = () => {
117
117
  setLoading(false);
118
118
  }
119
119
  });
120
- const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector.key, style: {
120
+ const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { icon: walletConnector.metadata.icon, walletKey: walletConnector.key, style: {
121
121
  height: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
122
122
  width: pixelToRem.pixelToRem(iconSize * IconWithSpinner.iconRatio),
123
123
  } }));
@@ -113,7 +113,7 @@ const PendingSignatureView = () => {
113
113
  setLoading(false);
114
114
  }
115
115
  });
116
- const icon = (jsx(WalletIcon, { walletKey: walletConnector.key, style: {
116
+ const icon = (jsx(WalletIcon, { icon: walletConnector.metadata.icon, walletKey: walletConnector.key, style: {
117
117
  height: pixelToRem(iconSize * iconRatio),
118
118
  width: pixelToRem(iconSize * iconRatio),
119
119
  } }));
@@ -91,16 +91,15 @@ const QrCodeView = () => {
91
91
  const { theme: { theme }, } = ThemeContext.useThemeContext();
92
92
  const { name } = theme;
93
93
  const { qrcodeUri, desktopUri, selectedWalletConnector: walletConnector, } = useInternalDynamicContext.useInternalDynamicContext();
94
- const { walletBook: walletBook$1 } = walletBook.useWalletBookContext();
95
94
  if (!walletConnector) {
96
95
  return null;
97
96
  }
98
- const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: walletConnector.key, style: { height: pixelToRem.pixelToRem(32), width: pixelToRem.pixelToRem(32) } }));
97
+ const icon = (jsxRuntime.jsx(walletBook.WalletIcon, { icon: walletConnector.metadata.icon, walletKey: walletConnector.key, style: { height: pixelToRem.pixelToRem(32), width: pixelToRem.pixelToRem(32) } }));
99
98
  return (jsxRuntime.jsx(QrCodeWrapper.QrCodeWrapper, { uri: qrcodeUri, desktopUri: desktopUri, accentColor:
100
99
  /* istanbul ignore next */
101
100
  name === 'dark'
102
101
  ? theme.colors.textPrimary
103
- : (_a = walletBook.getWalletPrimaryColor(walletBook$1, walletConnector.key)) !== null && _a !== void 0 ? _a : '', icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect, walletConnector: walletConnector }));
102
+ : (_a = walletConnector.metadata.brandColor) !== null && _a !== void 0 ? _a : '', icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect, walletConnector: walletConnector }));
104
103
  };
105
104
 
106
105
  exports.QrCodeView = QrCodeView;
@@ -1,6 +1,6 @@
1
1
  'use client'
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { useWalletBookContext, WalletIcon, getWalletPrimaryColor } from '@dynamic-labs/wallet-book';
3
+ import { WalletIcon } from '@dynamic-labs/wallet-book';
4
4
  import { useThemeContext } from '../../context/ThemeContext/ThemeContext.js';
5
5
  import 'react';
6
6
  import '../../context/DynamicContext/DynamicContext.js';
@@ -87,16 +87,15 @@ const QrCodeView = () => {
87
87
  const { theme: { theme }, } = useThemeContext();
88
88
  const { name } = theme;
89
89
  const { qrcodeUri, desktopUri, selectedWalletConnector: walletConnector, } = useInternalDynamicContext();
90
- const { walletBook } = useWalletBookContext();
91
90
  if (!walletConnector) {
92
91
  return null;
93
92
  }
94
- const icon = (jsx(WalletIcon, { walletKey: walletConnector.key, style: { height: pixelToRem(32), width: pixelToRem(32) } }));
93
+ const icon = (jsx(WalletIcon, { icon: walletConnector.metadata.icon, walletKey: walletConnector.key, style: { height: pixelToRem(32), width: pixelToRem(32) } }));
95
94
  return (jsx(QrCodeWrapper, { uri: qrcodeUri, desktopUri: desktopUri, accentColor:
96
95
  /* istanbul ignore next */
97
96
  name === 'dark'
98
97
  ? theme.colors.textPrimary
99
- : (_a = getWalletPrimaryColor(walletBook, walletConnector.key)) !== null && _a !== void 0 ? _a : '', icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect, walletConnector: walletConnector }));
98
+ : (_a = walletConnector.metadata.brandColor) !== null && _a !== void 0 ? _a : '', icon: icon, showCopyToClipboardButton: walletConnector.isWalletConnect, walletConnector: walletConnector }));
100
99
  };
101
100
 
102
101
  export { QrCodeView };
@@ -90,7 +90,7 @@ require('qrcode');
90
90
 
91
91
  const SelectHardwareWalletView = ({ wallet, onSelectWallet, }) => {
92
92
  const { t } = reactI18next.useTranslation();
93
- return (jsxRuntime.jsx("div", { className: 'select-hardware-wallet-view', children: jsxRuntime.jsxs("div", { className: 'select-hardware-wallet-view__container', children: [jsxRuntime.jsx(Icon.Icon, { className: 'select-hardware-wallet-view__icon', children: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: wallet.key }) }), jsxRuntime.jsx(Typography.Typography, { className: 'select-hardware-wallet-view__text', as: 'p', color: 'secondary', variant: 'body_normal', copykey: 'dyn_select_hardware_wallet.description', children: t('dyn_select_hardware_wallet.description') }), walletConnectorCore.isHardwareWalletConnector(wallet.walletConnector) && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(HardwareWalletToggle.HardwareWalletToggle, { connectors: [wallet.walletConnector], copykey: 'dyn_select_chain.using_hardware_wallet_toggle_label', label: t('dyn_select_chain.using_hardware_wallet_toggle_label') }), jsxRuntime.jsx(Divider.Divider, {})] })), jsxRuntime.jsx(TypographyButton.TypographyButton, { buttonVariant: 'primary', onClick: () => onSelectWallet === null || onSelectWallet === void 0 ? void 0 : onSelectWallet(wallet), copykey: 'dyn_select_hardware_wallet.button', dataTestId: 'select-hardware-wallet-connect-button', children: t('dyn_select_hardware_wallet.button') })] }) }));
93
+ return (jsxRuntime.jsx("div", { className: 'select-hardware-wallet-view', children: jsxRuntime.jsxs("div", { className: 'select-hardware-wallet-view__container', children: [jsxRuntime.jsx(Icon.Icon, { className: 'select-hardware-wallet-view__icon', children: jsxRuntime.jsx(walletBook.WalletIcon, { icon: wallet.walletConnector.metadata.icon, walletKey: wallet.key }) }), jsxRuntime.jsx(Typography.Typography, { className: 'select-hardware-wallet-view__text', as: 'p', color: 'secondary', variant: 'body_normal', copykey: 'dyn_select_hardware_wallet.description', children: t('dyn_select_hardware_wallet.description') }), walletConnectorCore.isHardwareWalletConnector(wallet.walletConnector) && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(HardwareWalletToggle.HardwareWalletToggle, { connectors: [wallet.walletConnector], copykey: 'dyn_select_chain.using_hardware_wallet_toggle_label', label: t('dyn_select_chain.using_hardware_wallet_toggle_label') }), jsxRuntime.jsx(Divider.Divider, {})] })), jsxRuntime.jsx(TypographyButton.TypographyButton, { buttonVariant: 'primary', onClick: () => onSelectWallet === null || onSelectWallet === void 0 ? void 0 : onSelectWallet(wallet), copykey: 'dyn_select_hardware_wallet.button', dataTestId: 'select-hardware-wallet-connect-button', children: t('dyn_select_hardware_wallet.button') })] }) }));
94
94
  };
95
95
 
96
96
  exports.SelectHardwareWalletView = SelectHardwareWalletView;
@@ -86,7 +86,7 @@ import 'qrcode';
86
86
 
87
87
  const SelectHardwareWalletView = ({ wallet, onSelectWallet, }) => {
88
88
  const { t } = useTranslation();
89
- return (jsx("div", { className: 'select-hardware-wallet-view', children: jsxs("div", { className: 'select-hardware-wallet-view__container', children: [jsx(Icon, { className: 'select-hardware-wallet-view__icon', children: jsx(WalletIcon, { walletKey: wallet.key }) }), jsx(Typography, { className: 'select-hardware-wallet-view__text', as: 'p', color: 'secondary', variant: 'body_normal', copykey: 'dyn_select_hardware_wallet.description', children: t('dyn_select_hardware_wallet.description') }), isHardwareWalletConnector(wallet.walletConnector) && (jsxs(Fragment, { children: [jsx(HardwareWalletToggle, { connectors: [wallet.walletConnector], copykey: 'dyn_select_chain.using_hardware_wallet_toggle_label', label: t('dyn_select_chain.using_hardware_wallet_toggle_label') }), jsx(Divider, {})] })), jsx(TypographyButton, { buttonVariant: 'primary', onClick: () => onSelectWallet === null || onSelectWallet === void 0 ? void 0 : onSelectWallet(wallet), copykey: 'dyn_select_hardware_wallet.button', dataTestId: 'select-hardware-wallet-connect-button', children: t('dyn_select_hardware_wallet.button') })] }) }));
89
+ return (jsx("div", { className: 'select-hardware-wallet-view', children: jsxs("div", { className: 'select-hardware-wallet-view__container', children: [jsx(Icon, { className: 'select-hardware-wallet-view__icon', children: jsx(WalletIcon, { icon: wallet.walletConnector.metadata.icon, walletKey: wallet.key }) }), jsx(Typography, { className: 'select-hardware-wallet-view__text', as: 'p', color: 'secondary', variant: 'body_normal', copykey: 'dyn_select_hardware_wallet.description', children: t('dyn_select_hardware_wallet.description') }), isHardwareWalletConnector(wallet.walletConnector) && (jsxs(Fragment, { children: [jsx(HardwareWalletToggle, { connectors: [wallet.walletConnector], copykey: 'dyn_select_chain.using_hardware_wallet_toggle_label', label: t('dyn_select_chain.using_hardware_wallet_toggle_label') }), jsx(Divider, {})] })), jsx(TypographyButton, { buttonVariant: 'primary', onClick: () => onSelectWallet === null || onSelectWallet === void 0 ? void 0 : onSelectWallet(wallet), copykey: 'dyn_select_hardware_wallet.button', dataTestId: 'select-hardware-wallet-connect-button', children: t('dyn_select_hardware_wallet.button') })] }) }));
90
90
  };
91
91
 
92
92
  export { SelectHardwareWalletView };
@@ -98,7 +98,7 @@ const AutoReconnectingView = ({ onCancel, onSuccess, connector, expectedAddress,
98
98
  onSuccess();
99
99
  }
100
100
  }), { deps: [connector] });
101
- return (jsxRuntime.jsx(DefaultPromptModal.DefaultPromptModal, { dataTestId: 'auto-reconnecting', icon: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: connector === null || connector === void 0 ? void 0 : connector.key }), title: t('dyn_sync_wallet.reconnecting.title'), onClose: onCancel, children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', children: t('dyn_sync_wallet.reconnecting.description', {
101
+ return (jsxRuntime.jsx(DefaultPromptModal.DefaultPromptModal, { dataTestId: 'auto-reconnecting', icon: jsxRuntime.jsx(walletBook.WalletIcon, { icon: connector.metadata.icon, walletKey: connector.key }), title: t('dyn_sync_wallet.reconnecting.title'), onClose: onCancel, children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', children: t('dyn_sync_wallet.reconnecting.description', {
102
102
  walletAddress: shortenWalletAddress.shortenWalletAddress(expectedAddress, 3, 3),
103
103
  }) }) }));
104
104
  };
@@ -94,7 +94,7 @@ const AutoReconnectingView = ({ onCancel, onSuccess, connector, expectedAddress,
94
94
  onSuccess();
95
95
  }
96
96
  }), { deps: [connector] });
97
- return (jsx(DefaultPromptModal, { dataTestId: 'auto-reconnecting', icon: jsx(WalletIcon, { walletKey: connector === null || connector === void 0 ? void 0 : connector.key }), title: t('dyn_sync_wallet.reconnecting.title'), onClose: onCancel, children: jsx(Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', children: t('dyn_sync_wallet.reconnecting.description', {
97
+ return (jsx(DefaultPromptModal, { dataTestId: 'auto-reconnecting', icon: jsx(WalletIcon, { icon: connector.metadata.icon, walletKey: connector.key }), title: t('dyn_sync_wallet.reconnecting.title'), onClose: onCancel, children: jsx(Typography, { variant: 'body_normal', color: 'secondary', weight: 'regular', children: t('dyn_sync_wallet.reconnecting.description', {
98
98
  walletAddress: shortenWalletAddress(expectedAddress, 3, 3),
99
99
  }) }) }));
100
100
  };
@@ -89,7 +89,6 @@ var QrCodeWrapper = require('../../../components/QrCodeWrapper/QrCodeWrapper.cjs
89
89
  const ReconnectWithQrCodeView = ({ onCancel, onSuccess, connector, expectedAddress, }) => {
90
90
  var _a;
91
91
  const { t } = reactI18next.useTranslation();
92
- const { walletBook: walletBook$1 } = walletBook.useWalletBookContext();
93
92
  const { theme: { theme }, } = ThemeContext.useThemeContext();
94
93
  const { name: themeName } = theme;
95
94
  const [qrcodeUri, setQrcodeUri] = React.useState();
@@ -115,7 +114,9 @@ const ReconnectWithQrCodeView = ({ onCancel, onSuccess, connector, expectedAddre
115
114
  /* istanbul ignore next */
116
115
  themeName === 'dark'
117
116
  ? theme.colors.textPrimary
118
- : (_a = walletBook.getWalletPrimaryColor(walletBook$1, connector.key)) !== null && _a !== void 0 ? _a : '', icon: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: connector === null || connector === void 0 ? void 0 : connector.key }), showCopyToClipboardButton: true, walletConnector: connector })) }));
117
+ : (_a = connector.metadata.brandColor) !== null && _a !== void 0 ? _a : '', icon:
118
+ // eslint-disable-next-line react/jsx-wrap-multilines
119
+ jsxRuntime.jsx(walletBook.WalletIcon, { icon: connector.metadata.icon, walletKey: connector.key }), showCopyToClipboardButton: true, walletConnector: connector })) }));
119
120
  };
120
121
 
121
122
  exports.ReconnectWithQrCodeView = ReconnectWithQrCodeView;
@@ -4,7 +4,7 @@ import { jsx } from 'react/jsx-runtime';
4
4
  import { useState } from 'react';
5
5
  import { useTranslation } from 'react-i18next';
6
6
  import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
7
- import { useWalletBookContext, getWalletPrimaryColor, WalletIcon } from '@dynamic-labs/wallet-book';
7
+ import { WalletIcon } from '@dynamic-labs/wallet-book';
8
8
  import { DefaultPromptModal } from '../../../widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js';
9
9
  import '../../../components/Accordion/components/AccordionItem/AccordionItem.js';
10
10
  import '../../../components/Alert/Alert.js';
@@ -85,7 +85,6 @@ import { QrCodeWrapper } from '../../../components/QrCodeWrapper/QrCodeWrapper.j
85
85
  const ReconnectWithQrCodeView = ({ onCancel, onSuccess, connector, expectedAddress, }) => {
86
86
  var _a;
87
87
  const { t } = useTranslation();
88
- const { walletBook } = useWalletBookContext();
89
88
  const { theme: { theme }, } = useThemeContext();
90
89
  const { name: themeName } = theme;
91
90
  const [qrcodeUri, setQrcodeUri] = useState();
@@ -111,7 +110,9 @@ const ReconnectWithQrCodeView = ({ onCancel, onSuccess, connector, expectedAddre
111
110
  /* istanbul ignore next */
112
111
  themeName === 'dark'
113
112
  ? theme.colors.textPrimary
114
- : (_a = getWalletPrimaryColor(walletBook, connector.key)) !== null && _a !== void 0 ? _a : '', icon: jsx(WalletIcon, { walletKey: connector === null || connector === void 0 ? void 0 : connector.key }), showCopyToClipboardButton: true, walletConnector: connector })) }));
113
+ : (_a = connector.metadata.brandColor) !== null && _a !== void 0 ? _a : '', icon:
114
+ // eslint-disable-next-line react/jsx-wrap-multilines
115
+ jsx(WalletIcon, { icon: connector.metadata.icon, walletKey: connector.key }), showCopyToClipboardButton: true, walletConnector: connector })) }));
115
116
  };
116
117
 
117
118
  export { ReconnectWithQrCodeView };
@@ -90,7 +90,7 @@ require('qrcode');
90
90
 
91
91
  const SwitchWalletView = ({ onCancel, connector, expectedAddress, activeAddress, }) => {
92
92
  const { t } = reactI18next.useTranslation();
93
- return (jsxRuntime.jsx(DefaultPromptModal.DefaultPromptModal, { dataTestId: 'switch-wallet', className: 'switch-wallet', icon: jsxRuntime.jsx(walletBook.WalletIcon, { walletKey: connector.key }), title: t('dyn_sync_wallet.switch_wallet.title'), onClose: onCancel, children: jsxRuntime.jsxs("div", { className: 'switch-wallet__body', children: [activeAddress && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_mini', color: 'secondary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.active_address.heading', children: t('dyn_sync_wallet.switch_wallet.active_address.heading') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'regular', children: shortenWalletAddress.shortenWalletAddress(activeAddress, 3, 3) }), jsxRuntime.jsx(Divider.Divider, { className: 'switch-wallet__body__divider', children: jsxRuntime.jsx(arrowCircleRight.ReactComponent, {}) })] })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_mini', color: 'secondary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.expected_address.heading', children: t('dyn_sync_wallet.switch_wallet.expected_address.heading') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.expected_address.prompt', className: 'switch-wallet__body__expected-address__prompt', children: t('dyn_sync_wallet.switch_wallet.expected_address.prompt') }), jsxRuntime.jsx(Typography.Typography, { color: 'green-1', weight: 'bold', className: 'switch-wallet__body__expected-address__address', children: shortenWalletAddress.shortenWalletAddress(expectedAddress, 3, 3) })] }) }));
93
+ return (jsxRuntime.jsx(DefaultPromptModal.DefaultPromptModal, { dataTestId: 'switch-wallet', className: 'switch-wallet', icon: jsxRuntime.jsx(walletBook.WalletIcon, { icon: connector.metadata.icon, walletKey: connector.key }), title: t('dyn_sync_wallet.switch_wallet.title'), onClose: onCancel, children: jsxRuntime.jsxs("div", { className: 'switch-wallet__body', children: [activeAddress && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_mini', color: 'secondary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.active_address.heading', children: t('dyn_sync_wallet.switch_wallet.active_address.heading') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'regular', children: shortenWalletAddress.shortenWalletAddress(activeAddress, 3, 3) }), jsxRuntime.jsx(Divider.Divider, { className: 'switch-wallet__body__divider', children: jsxRuntime.jsx(arrowCircleRight.ReactComponent, {}) })] })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_mini', color: 'secondary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.expected_address.heading', children: t('dyn_sync_wallet.switch_wallet.expected_address.heading') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.expected_address.prompt', className: 'switch-wallet__body__expected-address__prompt', children: t('dyn_sync_wallet.switch_wallet.expected_address.prompt') }), jsxRuntime.jsx(Typography.Typography, { color: 'green-1', weight: 'bold', className: 'switch-wallet__body__expected-address__address', children: shortenWalletAddress.shortenWalletAddress(expectedAddress, 3, 3) })] }) }));
94
94
  };
95
95
 
96
96
  exports.SwitchWalletView = SwitchWalletView;
@@ -86,7 +86,7 @@ import 'qrcode';
86
86
 
87
87
  const SwitchWalletView = ({ onCancel, connector, expectedAddress, activeAddress, }) => {
88
88
  const { t } = useTranslation();
89
- return (jsx(DefaultPromptModal, { dataTestId: 'switch-wallet', className: 'switch-wallet', icon: jsx(WalletIcon, { walletKey: connector.key }), title: t('dyn_sync_wallet.switch_wallet.title'), onClose: onCancel, children: jsxs("div", { className: 'switch-wallet__body', children: [activeAddress && (jsxs(Fragment, { children: [jsx(Typography, { variant: 'body_mini', color: 'secondary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.active_address.heading', children: t('dyn_sync_wallet.switch_wallet.active_address.heading') }), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'regular', children: shortenWalletAddress(activeAddress, 3, 3) }), jsx(Divider, { className: 'switch-wallet__body__divider', children: jsx(SvgArrowCircleRight, {}) })] })), jsx(Typography, { variant: 'body_mini', color: 'secondary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.expected_address.heading', children: t('dyn_sync_wallet.switch_wallet.expected_address.heading') }), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.expected_address.prompt', className: 'switch-wallet__body__expected-address__prompt', children: t('dyn_sync_wallet.switch_wallet.expected_address.prompt') }), jsx(Typography, { color: 'green-1', weight: 'bold', className: 'switch-wallet__body__expected-address__address', children: shortenWalletAddress(expectedAddress, 3, 3) })] }) }));
89
+ return (jsx(DefaultPromptModal, { dataTestId: 'switch-wallet', className: 'switch-wallet', icon: jsx(WalletIcon, { icon: connector.metadata.icon, walletKey: connector.key }), title: t('dyn_sync_wallet.switch_wallet.title'), onClose: onCancel, children: jsxs("div", { className: 'switch-wallet__body', children: [activeAddress && (jsxs(Fragment, { children: [jsx(Typography, { variant: 'body_mini', color: 'secondary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.active_address.heading', children: t('dyn_sync_wallet.switch_wallet.active_address.heading') }), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'regular', children: shortenWalletAddress(activeAddress, 3, 3) }), jsx(Divider, { className: 'switch-wallet__body__divider', children: jsx(SvgArrowCircleRight, {}) })] })), jsx(Typography, { variant: 'body_mini', color: 'secondary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.expected_address.heading', children: t('dyn_sync_wallet.switch_wallet.expected_address.heading') }), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'regular', copykey: 'dyn_sync_wallet.switch_wallet.expected_address.prompt', className: 'switch-wallet__body__expected-address__prompt', children: t('dyn_sync_wallet.switch_wallet.expected_address.prompt') }), jsx(Typography, { color: 'green-1', weight: 'bold', className: 'switch-wallet__body__expected-address__address', children: shortenWalletAddress(expectedAddress, 3, 3) })] }) }));
90
90
  };
91
91
 
92
92
  export { SwitchWalletView };
@@ -119,7 +119,7 @@ const TransactionConfirmationView = ({ transaction, onError, onSuccess, mutation
119
119
  useEffectOnce.useEffectOnce(() => {
120
120
  const fetchSimulationResult = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
121
121
  var _a, _b;
122
- if (sendBalanceTransaction) {
122
+ if (sendBalanceTransaction || hideModal) {
123
123
  setIsSimulationComplete(true);
124
124
  return;
125
125
  }
@@ -111,7 +111,7 @@ const TransactionConfirmationView = ({ transaction, onError, onSuccess, mutation
111
111
  useEffectOnce(() => {
112
112
  const fetchSimulationResult = () => __awaiter(void 0, void 0, void 0, function* () {
113
113
  var _a, _b;
114
- if (sendBalanceTransaction) {
114
+ if (sendBalanceTransaction || hideModal) {
115
115
  setIsSimulationComplete(true);
116
116
  return;
117
117
  }