@dynamic-labs/sdk-react-core 4.22.7 → 4.23.0

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 (154) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.cjs +2 -2
  3. package/package.js +2 -2
  4. package/package.json +12 -12
  5. package/src/index.cjs +2 -1
  6. package/src/index.d.ts +1 -0
  7. package/src/index.js +1 -1
  8. package/src/lib/client/client.cjs +2 -0
  9. package/src/lib/client/client.d.ts +1 -0
  10. package/src/lib/client/client.js +2 -1
  11. package/src/lib/client/extension/hooks/useInitializeSdkClient/fetchOverride/fetchOverride.cjs +5 -1
  12. package/src/lib/client/extension/hooks/useInitializeSdkClient/fetchOverride/fetchOverride.js +5 -1
  13. package/src/lib/client/extension/hooks/useInitializeSdkClient/useInitializeSdkClient.cjs +24 -6
  14. package/src/lib/client/extension/hooks/useInitializeSdkClient/useInitializeSdkClient.d.ts +1 -1
  15. package/src/lib/client/extension/hooks/useInitializeSdkClient/useInitializeSdkClient.js +26 -8
  16. package/src/lib/components/MenuList/DropdownMenu/DropdownMenu.cjs +1 -1
  17. package/src/lib/components/MenuList/DropdownMenu/DropdownMenu.js +1 -1
  18. package/src/lib/components/Search/Search.cjs +5 -1
  19. package/src/lib/components/Search/Search.js +5 -1
  20. package/src/lib/context/ConnectWithOtpContext/utils/createEmailHandler.cjs +1 -1
  21. package/src/lib/context/ConnectWithOtpContext/utils/createEmailHandler.js +1 -1
  22. package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.cjs +1 -1
  23. package/src/lib/context/ConnectWithOtpContext/utils/createSmsHandler.js +1 -1
  24. package/src/lib/context/DynamicContext/types/DynamicContextProps.d.ts +9 -2
  25. package/src/lib/events/dynamicEvents.cjs +1 -0
  26. package/src/lib/events/dynamicEvents.d.ts +2 -2
  27. package/src/lib/events/dynamicEvents.js +1 -0
  28. package/src/lib/events/wallets.d.ts +2 -0
  29. package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +1 -1
  30. package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +1 -1
  31. package/src/lib/locale/en/translation.cjs +28 -0
  32. package/src/lib/locale/en/translation.d.ts +28 -0
  33. package/src/lib/locale/en/translation.js +28 -0
  34. package/src/lib/shared/logger.cjs +1 -1
  35. package/src/lib/shared/logger.js +2 -2
  36. package/src/lib/styles/index.shadow.cjs +1 -1
  37. package/src/lib/styles/index.shadow.js +1 -1
  38. package/src/lib/utils/constants/authViewLayoutChecks.cjs +1 -0
  39. package/src/lib/utils/constants/authViewLayoutChecks.js +1 -0
  40. package/src/lib/utils/functions/getSessionInformation/getSessionInformation.cjs +1 -1
  41. package/src/lib/utils/functions/getSessionInformation/getSessionInformation.js +1 -1
  42. package/src/lib/utils/functions/getTimeSince/index.d.ts +1 -0
  43. package/src/lib/utils/functions/updatePrimaryWalletId/updatePrimaryWalletId.cjs +1 -1
  44. package/src/lib/utils/functions/updatePrimaryWalletId/updatePrimaryWalletId.js +1 -1
  45. package/src/lib/utils/hooks/authenticationHooks/helpers/isConnectOnly.cjs +1 -1
  46. package/src/lib/utils/hooks/authenticationHooks/helpers/isConnectOnly.js +1 -1
  47. package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.cjs +1 -1
  48. package/src/lib/utils/hooks/authenticationHooks/useOtpVerificationRequest/useOtpVerificationRequest.js +1 -1
  49. package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.d.ts +1 -1
  50. package/src/lib/utils/hooks/index.d.ts +3 -0
  51. package/src/lib/utils/hooks/useAuthLayoutChecks/useAllowClose/useAllowClose.cjs +1 -1
  52. package/src/lib/utils/hooks/useAuthLayoutChecks/useAllowClose/useAllowClose.js +1 -1
  53. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +1 -1
  54. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +1 -1
  55. package/src/lib/utils/hooks/useClientSessionKeys/useClientSessionKeys.cjs +1 -1
  56. package/src/lib/utils/hooks/useClientSessionKeys/useClientSessionKeys.js +1 -1
  57. package/src/lib/utils/hooks/useConnectWallet/HandleConnectWalletRejectionError.cjs +15 -0
  58. package/src/lib/utils/hooks/useConnectWallet/HandleConnectWalletRejectionError.d.ts +6 -0
  59. package/src/lib/utils/hooks/useConnectWallet/HandleConnectWalletRejectionError.js +11 -0
  60. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +13 -6
  61. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.d.ts +2 -2
  62. package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +13 -6
  63. package/src/lib/utils/hooks/useIsLoadingEmbeddedWallet/useIsLoadingEmbeddedWallet.cjs +1 -1
  64. package/src/lib/utils/hooks/useIsLoadingEmbeddedWallet/useIsLoadingEmbeddedWallet.js +1 -1
  65. package/src/lib/utils/hooks/useIsMfaEnabled/index.d.ts +1 -0
  66. package/src/lib/utils/hooks/useIsMfaEnabled/useIsMfaEnabled.cjs +15 -0
  67. package/src/lib/utils/hooks/useIsMfaEnabled/useIsMfaEnabled.d.ts +1 -0
  68. package/src/lib/utils/hooks/useIsMfaEnabled/useIsMfaEnabled.js +11 -0
  69. package/src/lib/utils/hooks/useIsPasskeysMfaEnabled/index.d.ts +1 -0
  70. package/src/lib/utils/hooks/useIsPasskeysMfaEnabled/useIsPasskeysMfaEnabled.cjs +15 -0
  71. package/src/lib/utils/hooks/useIsPasskeysMfaEnabled/useIsPasskeysMfaEnabled.d.ts +1 -0
  72. package/src/lib/utils/hooks/useIsPasskeysMfaEnabled/useIsPasskeysMfaEnabled.js +11 -0
  73. package/src/lib/utils/hooks/useIsTotpMfaEnabled/index.d.ts +1 -0
  74. package/src/lib/utils/hooks/useIsTotpMfaEnabled/useIsTotpMfaEnabled.cjs +15 -0
  75. package/src/lib/utils/hooks/useIsTotpMfaEnabled/useIsTotpMfaEnabled.d.ts +1 -0
  76. package/src/lib/utils/hooks/useIsTotpMfaEnabled/useIsTotpMfaEnabled.js +11 -0
  77. package/src/lib/utils/hooks/useMfa/useMfa.cjs +1 -1
  78. package/src/lib/utils/hooks/useMfa/useMfa.js +1 -1
  79. package/src/lib/utils/hooks/useMfaModals/useMfaModals.cjs +33 -18
  80. package/src/lib/utils/hooks/useMfaModals/useMfaModals.d.ts +4 -0
  81. package/src/lib/utils/hooks/useMfaModals/useMfaModals.js +33 -18
  82. package/src/lib/utils/hooks/useRefreshUserState/useRefreshUserState.cjs +1 -1
  83. package/src/lib/utils/hooks/useRefreshUserState/useRefreshUserState.js +1 -1
  84. package/src/lib/utils/hooks/useSyncDynamicWaas/useSyncDynamicWaas.cjs +1 -1
  85. package/src/lib/utils/hooks/useSyncDynamicWaas/useSyncDynamicWaas.js +1 -1
  86. package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.cjs +1 -1
  87. package/src/lib/utils/hooks/useTokenBalances/useTokenBalances.js +1 -1
  88. package/src/lib/utils/hooks/useValidateSession/handleWalletInfoOutOfSync/handleWalletInfoOutOfSync.cjs +1 -1
  89. package/src/lib/utils/hooks/useValidateSession/handleWalletInfoOutOfSync/handleWalletInfoOutOfSync.js +1 -1
  90. package/src/lib/utils/hooks/useValidateSession/useValidateSession.cjs +1 -1
  91. package/src/lib/utils/hooks/useValidateSession/useValidateSession.js +1 -1
  92. package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.cjs +43 -6
  93. package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.d.ts +2 -1
  94. package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.js +43 -6
  95. package/src/lib/views/EmailVerification/EmailVerification.cjs +1 -1
  96. package/src/lib/views/EmailVerification/EmailVerification.js +1 -1
  97. package/src/lib/views/ExchangeList/ExchangeList.cjs +5 -5
  98. package/src/lib/views/ExchangeList/ExchangeList.js +5 -5
  99. package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.cjs +2 -2
  100. package/src/lib/views/LoginView/sections/PhoneNumberSignInSection/useSubmitPhoneNumber/useSubmitPhoneNumber.js +2 -2
  101. package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +1 -1
  102. package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +1 -1
  103. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +4 -2
  104. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.d.ts +2 -2
  105. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +4 -2
  106. package/src/lib/views/WalletList/WalletList.cjs +1 -1
  107. package/src/lib/views/WalletList/WalletList.js +1 -1
  108. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.cjs +3 -3
  109. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.d.ts +2 -2
  110. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.js +3 -3
  111. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +4 -4
  112. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +4 -4
  113. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -1
  114. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -1
  115. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.cjs +2 -2
  116. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +2 -2
  117. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.js +2 -2
  118. package/src/lib/widgets/DynamicWidget/helpers/helpers.cjs +0 -1
  119. package/src/lib/widgets/DynamicWidget/helpers/helpers.d.ts +0 -1
  120. package/src/lib/widgets/DynamicWidget/helpers/helpers.js +0 -1
  121. package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.cjs +1 -1
  122. package/src/lib/widgets/DynamicWidget/hooks/useFetchNameService/useFetchNameService.js +1 -1
  123. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/AccountAndSecuritySettingsView.cjs +42 -106
  124. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/AccountAndSecuritySettingsView.js +43 -107
  125. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/MfaSection/MfaSection.cjs +119 -0
  126. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/MfaSection/MfaSection.d.ts +6 -0
  127. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/MfaSection/MfaSection.js +115 -0
  128. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/MfaSection/index.d.ts +1 -0
  129. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/WalletSecuritySection/WalletSecuritySection.cjs +170 -0
  130. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/WalletSecuritySection/WalletSecuritySection.d.ts +7 -0
  131. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/WalletSecuritySection/WalletSecuritySection.js +166 -0
  132. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/WalletSecuritySection/index.d.ts +1 -0
  133. package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useStartExchangeFunding/useStartExchangeFunding.cjs +1 -1
  134. package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useStartExchangeFunding/useStartExchangeFunding.js +1 -1
  135. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +1 -1
  136. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +1 -1
  137. package/src/lib/widgets/DynamicWidget/views/{ManageMfaWidgetView/ManageMfaWidgetView.cjs → ManageTotpMfaWidgetView/ManageTotpMfaWidgetView.cjs} +8 -7
  138. package/src/lib/widgets/DynamicWidget/views/ManageTotpMfaWidgetView/ManageTotpMfaWidgetView.d.ts +2 -0
  139. package/src/lib/widgets/DynamicWidget/views/{ManageMfaWidgetView/ManageMfaWidgetView.js → ManageTotpMfaWidgetView/ManageTotpMfaWidgetView.js} +7 -6
  140. package/src/lib/widgets/DynamicWidget/views/{ManageMfaWidgetView → ManageTotpMfaWidgetView}/components/UserDeviceTile.cjs +3 -3
  141. package/src/lib/widgets/DynamicWidget/views/{ManageMfaWidgetView → ManageTotpMfaWidgetView}/components/UserDeviceTile.js +3 -3
  142. package/src/lib/widgets/DynamicWidget/views/ManageTotpMfaWidgetView/index.d.ts +1 -0
  143. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +5 -4
  144. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +5 -4
  145. package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/ManageMfaWidgetView.d.ts +0 -2
  146. package/src/lib/widgets/DynamicWidget/views/ManageMfaWidgetView/index.d.ts +0 -1
  147. /package/src/lib/{widgets/DynamicWidget/helpers → utils/functions/getTimeSince}/getTimeSince.cjs +0 -0
  148. /package/src/lib/{widgets/DynamicWidget/helpers → utils/functions/getTimeSince}/getTimeSince.d.ts +0 -0
  149. /package/src/lib/{widgets/DynamicWidget/helpers → utils/functions/getTimeSince}/getTimeSince.js +0 -0
  150. /package/src/lib/widgets/DynamicWidget/views/{ManageMfaWidgetView → ManageTotpMfaWidgetView}/components/UserDeviceTile.d.ts +0 -0
  151. /package/src/lib/widgets/DynamicWidget/views/{ManageMfaWidgetView → ManageTotpMfaWidgetView}/components/index.d.ts +0 -0
  152. /package/src/lib/widgets/DynamicWidget/views/{ManageMfaWidgetView → ManageTotpMfaWidgetView}/components/utils/sort.cjs +0 -0
  153. /package/src/lib/widgets/DynamicWidget/views/{ManageMfaWidgetView → ManageTotpMfaWidgetView}/components/utils/sort.d.ts +0 -0
  154. /package/src/lib/widgets/DynamicWidget/views/{ManageMfaWidgetView → ManageTotpMfaWidgetView}/components/utils/sort.js +0 -0
@@ -3,18 +3,18 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { useState, useMemo, useRef } from 'react';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import { StorageService } from '@dynamic-labs/utils';
6
+ import { ReactComponent as SvgNoWalletFound } from '../../assets/no-wallet-found.js';
6
7
  import { ErrorContainer } from '../../components/ErrorContainer/ErrorContainer.js';
7
8
  import { Search } from '../../components/Search/Search.js';
8
9
  import { Skeleton } from '../../components/Skeleton/Skeleton.js';
9
10
  import { useErrorContext } from '../../context/ErrorContext/ErrorContext.js';
10
11
  import { DefaultFooter } from '../../layout/DynamicAuthLayout/DefaultFooter/DefaultFooter.js';
11
- import { useEffectOnce } from '../../utils/hooks/useEffectOnce/useEffectOnce.js';
12
- import { classNames } from '../../utils/functions/classNames/classNames.js';
13
- import { EXCHANGE_PICKER_SEARCH_KEY } from '../../utils/constants/localStorage.js';
14
12
  import { useProjectSettings } from '../../store/state/projectSettings/projectSettings.js';
13
+ import { EXCHANGE_PICKER_SEARCH_KEY } from '../../utils/constants/localStorage.js';
14
+ import { classNames } from '../../utils/functions/classNames/classNames.js';
15
+ import { useEffectOnce } from '../../utils/hooks/useEffectOnce/useEffectOnce.js';
15
16
  import { isProviderExchange, convertProviderToExchangeKeyEnum } from '../../widgets/DynamicWidget/helpers/convertExchangeKeyAndProviderEnum.js';
16
17
  import { SearchNotFoundMessage } from '../WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js';
17
- import { ReactComponent as SvgNoWalletFound } from '../../assets/no-wallet-found.js';
18
18
  import { ExchangeListItem } from './ExchangeListItem/ExchangeListItem.js';
19
19
 
20
20
  const ExchangeList = ({ onSelectExchange, showDefaultFooter, scrollContainerClassName, }) => {
@@ -75,7 +75,7 @@ const ExchangeList = ({ onSelectExchange, showDefaultFooter, scrollContainerClas
75
75
  'exchange-list__scroll-container--fixed-height': false,
76
76
  }), "data-testid": 'exchange-list-scroll-container', ref: exchangeListScrollRef, onScroll: handleScroll, children: !projectSettings ? (jsx(Skeleton, { count: 10, className: 'exchange-list__tile-skeleton' })) : (
77
77
  // eslint-disable-next-line react/jsx-no-useless-fragment
78
- jsxs(Fragment, { children: [exchangeNames.length === 0 && (jsx(ErrorContainer, { copykey: 'dyn_exchange_list.no_exchange', children: t('dyn_exchange_list.no_exchanges') })), exchangeNames.length && filteredExchangeNames.length === 0 ? (jsx(SearchNotFoundMessage, { title: t('dyn_exchange_list.search.not_found.title'), subtitle: t('dyn_exchange_list.search.not_found.description'), image: jsx(SvgNoWalletFound, {}) })) : (filteredExchangeNames.map((exchange, index) => (jsx(ExchangeListItem, { exchange: convertProviderToExchangeKeyEnum(exchange), onResetSearchValue: () => handleFilterValueChange(''), onSelectExchange: onSelectExchange }, `${exchange}_${index}`))))] })) }), showDefaultFooter && (jsx(DefaultFooter, { hideBorder: !footerBorderIsVisible }))] }));
78
+ jsxs(Fragment, { children: [exchangeNames.length === 0 && (jsx(ErrorContainer, { copykey: 'dyn_exchange_list.no_exchange', children: t('dyn_exchange_list.no_exchanges') })), exchangeNames.length && filteredExchangeNames.length === 0 ? (jsx(SearchNotFoundMessage, { titleKey: 'dyn_exchange_list.search.not_found.title', subtitleKey: 'dyn_exchange_list.search.not_found.description', image: jsx(SvgNoWalletFound, {}) })) : (filteredExchangeNames.map((exchange, index) => (jsx(ExchangeListItem, { exchange: convertProviderToExchangeKeyEnum(exchange), onResetSearchValue: () => handleFilterValueChange(''), onSelectExchange: onSelectExchange }, `${exchange}_${index}`))))] })) }), showDefaultFooter && (jsx(DefaultFooter, { hideBorder: !footerBorderIsVisible }))] }));
79
79
  };
80
80
 
81
81
  export { ExchangeList };
@@ -81,12 +81,12 @@ require('../../../../../context/WalletGroupContext/WalletGroupContext.cjs');
81
81
  require('../../../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
82
82
  require('../../../../../context/ConnectWithOtpContext/ConnectWithOtpContext.cjs');
83
83
  require('../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
84
- require('../../../../../locale/locale.cjs');
85
- var translation = require('../../../../../locale/en/translation.cjs');
86
84
  require('@hcaptcha/react-hcaptcha');
87
85
  require('../../../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
88
86
  require('../../../../../context/FooterAnimationContext/index.cjs');
89
87
  require('../../../../../context/ErrorContext/hooks/useErrorText/useErrorText.cjs');
88
+ require('../../../../../locale/locale.cjs');
89
+ var translation = require('../../../../../locale/en/translation.cjs');
90
90
  require('../../../../../context/PasskeyContext/PasskeyContext.cjs');
91
91
  require('../../../../../widgets/DynamicWidget/helpers/convertExchangeKeyAndProviderEnum.cjs');
92
92
  require('../../../../../store/state/sendBalances.cjs');
@@ -77,12 +77,12 @@ import '../../../../../context/WalletGroupContext/WalletGroupContext.js';
77
77
  import '../../../../../context/IpConfigurationContext/IpConfigurationContext.js';
78
78
  import '../../../../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
79
79
  import '../../../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
80
- import '../../../../../locale/locale.js';
81
- import { translation } from '../../../../../locale/en/translation.js';
82
80
  import '@hcaptcha/react-hcaptcha';
83
81
  import '../../../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
84
82
  import '../../../../../context/FooterAnimationContext/index.js';
85
83
  import '../../../../../context/ErrorContext/hooks/useErrorText/useErrorText.js';
84
+ import '../../../../../locale/locale.js';
85
+ import { translation } from '../../../../../locale/en/translation.js';
86
86
  import '../../../../../context/PasskeyContext/PasskeyContext.js';
87
87
  import '../../../../../widgets/DynamicWidget/helpers/convertExchangeKeyAndProviderEnum.js';
88
88
  import '../../../../../store/state/sendBalances.js';
@@ -83,12 +83,12 @@ require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
83
83
  require('../../../context/IpConfigurationContext/IpConfigurationContext.cjs');
84
84
  require('../../../context/ConnectWithOtpContext/ConnectWithOtpContext.cjs');
85
85
  require('../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.cjs');
86
- require('../../../locale/locale.cjs');
87
86
  require('@hcaptcha/react-hcaptcha');
88
87
  require('../../../context/LoadingContext/LoadingContext.cjs');
89
88
  require('../../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
90
89
  require('../../../context/FooterAnimationContext/index.cjs');
91
90
  require('../../../context/ErrorContext/hooks/useErrorText/useErrorText.cjs');
91
+ require('../../../locale/locale.cjs');
92
92
  require('../../../context/PasskeyContext/PasskeyContext.cjs');
93
93
  require('../../../widgets/DynamicWidget/helpers/convertExchangeKeyAndProviderEnum.cjs');
94
94
  require('../../../store/state/sendBalances.cjs');
@@ -79,12 +79,12 @@ import '../../../context/WalletGroupContext/WalletGroupContext.js';
79
79
  import '../../../context/IpConfigurationContext/IpConfigurationContext.js';
80
80
  import '../../../context/ConnectWithOtpContext/ConnectWithOtpContext.js';
81
81
  import '../../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
82
- import '../../../locale/locale.js';
83
82
  import '@hcaptcha/react-hcaptcha';
84
83
  import '../../../context/LoadingContext/LoadingContext.js';
85
84
  import '../../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
86
85
  import '../../../context/FooterAnimationContext/index.js';
87
86
  import '../../../context/ErrorContext/hooks/useErrorText/useErrorText.js';
87
+ import '../../../locale/locale.js';
88
88
  import '../../../context/PasskeyContext/PasskeyContext.js';
89
89
  import '../../../widgets/DynamicWidget/helpers/convertExchangeKeyAndProviderEnum.js';
90
90
  import '../../../store/state/sendBalances.js';
@@ -100,9 +100,11 @@ require('../../../components/IsBrowser/IsBrowser.cjs');
100
100
  require('../../../components/Popper/Popper/Popper.cjs');
101
101
  require('../../../components/Popper/PopperContext/PopperContext.cjs');
102
102
 
103
- const SearchNotFoundMessage = ({ title, subtitle, image, }) => {
103
+ const SearchNotFoundMessage = ({ titleKey, subtitleKey, image, }) => {
104
104
  const { t } = reactI18next.useTranslation();
105
- return (jsxRuntime.jsxs("div", { className: 'search-instead__container', children: [image && (jsxRuntime.jsx(Icon.Icon, { className: 'search-instead__container__image', color: 'text-tertiary', children: image })), jsxRuntime.jsx(Typography.Typography, { color: 'secondary', variant: 'body_small', weight: 'regular', copykey: 'dyn_wallet_list.wallet_missing.title', children: title || t('dyn_wallet_list.wallet_missing.title') }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', variant: 'button_primary', weight: 'regular', copykey: 'dyn_wallet_list.wallet_missing.description', children: subtitle || t('dyn_wallet_list.wallet_missing.description') })] }));
105
+ return (jsxRuntime.jsxs("div", { className: 'search-instead__container', children: [image && (jsxRuntime.jsx(Icon.Icon, { className: 'search-instead__container__image', color: 'text-tertiary', children: image })), jsxRuntime.jsx(Typography.Typography, { color: 'secondary', variant: 'body_small', weight: 'regular', copykey: titleKey || 'dyn_wallet_list.wallet_missing.title', children: titleKey ? t(titleKey) : t('dyn_wallet_list.wallet_missing.title') }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', variant: 'button_primary', weight: 'regular', copykey: subtitleKey || 'dyn_wallet_list.wallet_missing.description', children: subtitleKey
106
+ ? t(subtitleKey)
107
+ : t('dyn_wallet_list.wallet_missing.description') })] }));
106
108
  };
107
109
 
108
110
  exports.SearchNotFoundMessage = SearchNotFoundMessage;
@@ -1,7 +1,7 @@
1
1
  import { FC, ReactElement } from 'react';
2
2
  interface Props {
3
- title?: string;
4
- subtitle?: string;
3
+ titleKey?: string;
4
+ subtitleKey?: string;
5
5
  image?: ReactElement;
6
6
  }
7
7
  export declare const SearchNotFoundMessage: FC<Props>;
@@ -96,9 +96,11 @@ import '../../../components/IsBrowser/IsBrowser.js';
96
96
  import '../../../components/Popper/Popper/Popper.js';
97
97
  import '../../../components/Popper/PopperContext/PopperContext.js';
98
98
 
99
- const SearchNotFoundMessage = ({ title, subtitle, image, }) => {
99
+ const SearchNotFoundMessage = ({ titleKey, subtitleKey, image, }) => {
100
100
  const { t } = useTranslation();
101
- return (jsxs("div", { className: 'search-instead__container', children: [image && (jsx(Icon, { className: 'search-instead__container__image', color: 'text-tertiary', children: image })), jsx(Typography, { color: 'secondary', variant: 'body_small', weight: 'regular', copykey: 'dyn_wallet_list.wallet_missing.title', children: title || t('dyn_wallet_list.wallet_missing.title') }), jsx(Typography, { color: 'primary', variant: 'button_primary', weight: 'regular', copykey: 'dyn_wallet_list.wallet_missing.description', children: subtitle || t('dyn_wallet_list.wallet_missing.description') })] }));
101
+ return (jsxs("div", { className: 'search-instead__container', children: [image && (jsx(Icon, { className: 'search-instead__container__image', color: 'text-tertiary', children: image })), jsx(Typography, { color: 'secondary', variant: 'body_small', weight: 'regular', copykey: titleKey || 'dyn_wallet_list.wallet_missing.title', children: titleKey ? t(titleKey) : t('dyn_wallet_list.wallet_missing.title') }), jsx(Typography, { color: 'primary', variant: 'button_primary', weight: 'regular', copykey: subtitleKey || 'dyn_wallet_list.wallet_missing.description', children: subtitleKey
102
+ ? t(subtitleKey)
103
+ : t('dyn_wallet_list.wallet_missing.description') })] }));
102
104
  };
103
105
 
104
106
  export { SearchNotFoundMessage };
@@ -162,7 +162,7 @@ const WalletList = ({ isWalletConnectList = false, onSelectWallet, viewWalletsFi
162
162
  items: tabsItems, value: selectedTabIndex || 0, onSelect: setSelectedTabIndex }) })), searchContainer, Boolean(error) && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { className: 'wallet-list__error-container', withIcon: false, children: error })), jsxRuntime.jsxs("div", { className: classNames.classNames('wallet-list__scroll-container', scrollContainerClassName, {
163
163
  'wallet-list__scroll-container--error': Boolean(error),
164
164
  'wallet-list__scroll-container--fixed-height': isTabsEnabled,
165
- }), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll, children: [!projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [walletConnectorOptions.length === 0 && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { copykey: 'dyn_wallet_list.configuration_mismatch', children: t('dyn_wallet_list.configuration_mismatch') })), walletConnectorOptions.length && walletsList.length === 0 ? (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, { title: t('dyn_wallet_list.search.not_found.title'), subtitle: t('dyn_wallet_list.search.not_found.description'), image: jsxRuntime.jsx(noWalletFound.ReactComponent, {}) })) : (walletsList.map((wallet, index) => (jsxRuntime.jsx(WalletListItem.WalletListItem, { wallet: wallet, onResetSearchValue: () => handleFilterValueChange(''), recommendedWallets: effectiveRecommendedWallets, onSelectWallet: onSelectWallet }, `${wallet.key}_${index}`))))] })), isSearchEnabled && !filterValue && projectSettings && (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, {}))] }), showDefaultFooter && (jsxRuntime.jsx(DefaultFooter.DefaultFooter, { hideBorder: !footerBorderIsVisible }))] }));
165
+ }), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll, children: [!projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [walletConnectorOptions.length === 0 && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { copykey: 'dyn_wallet_list.configuration_mismatch', children: t('dyn_wallet_list.configuration_mismatch') })), walletConnectorOptions.length && walletsList.length === 0 ? (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, { titleKey: 'dyn_wallet_list.search.not_found.title', subtitleKey: 'dyn_wallet_list.search.not_found.description', image: jsxRuntime.jsx(noWalletFound.ReactComponent, {}) })) : (walletsList.map((wallet, index) => (jsxRuntime.jsx(WalletListItem.WalletListItem, { wallet: wallet, onResetSearchValue: () => handleFilterValueChange(''), recommendedWallets: effectiveRecommendedWallets, onSelectWallet: onSelectWallet }, `${wallet.key}_${index}`))))] })), isSearchEnabled && !filterValue && projectSettings && (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, {}))] }), showDefaultFooter && (jsxRuntime.jsx(DefaultFooter.DefaultFooter, { hideBorder: !footerBorderIsVisible }))] }));
166
166
  };
167
167
 
168
168
  exports.WalletList = WalletList;
@@ -158,7 +158,7 @@ const WalletList = ({ isWalletConnectList = false, onSelectWallet, viewWalletsFi
158
158
  items: tabsItems, value: selectedTabIndex || 0, onSelect: setSelectedTabIndex }) })), searchContainer, Boolean(error) && (jsx(ErrorContainer, { className: 'wallet-list__error-container', withIcon: false, children: error })), jsxs("div", { className: classNames('wallet-list__scroll-container', scrollContainerClassName, {
159
159
  'wallet-list__scroll-container--error': Boolean(error),
160
160
  'wallet-list__scroll-container--fixed-height': isTabsEnabled,
161
- }), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll, children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxs(Fragment, { children: [walletConnectorOptions.length === 0 && (jsx(ErrorContainer, { copykey: 'dyn_wallet_list.configuration_mismatch', children: t('dyn_wallet_list.configuration_mismatch') })), walletConnectorOptions.length && walletsList.length === 0 ? (jsx(SearchNotFoundMessage, { title: t('dyn_wallet_list.search.not_found.title'), subtitle: t('dyn_wallet_list.search.not_found.description'), image: jsx(SvgNoWalletFound, {}) })) : (walletsList.map((wallet, index) => (jsx(WalletListItem, { wallet: wallet, onResetSearchValue: () => handleFilterValueChange(''), recommendedWallets: effectiveRecommendedWallets, onSelectWallet: onSelectWallet }, `${wallet.key}_${index}`))))] })), isSearchEnabled && !filterValue && projectSettings && (jsx(SearchNotFoundMessage, {}))] }), showDefaultFooter && (jsx(DefaultFooter, { hideBorder: !footerBorderIsVisible }))] }));
161
+ }), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll, children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxs(Fragment, { children: [walletConnectorOptions.length === 0 && (jsx(ErrorContainer, { copykey: 'dyn_wallet_list.configuration_mismatch', children: t('dyn_wallet_list.configuration_mismatch') })), walletConnectorOptions.length && walletsList.length === 0 ? (jsx(SearchNotFoundMessage, { titleKey: 'dyn_wallet_list.search.not_found.title', subtitleKey: 'dyn_wallet_list.search.not_found.description', image: jsx(SvgNoWalletFound, {}) })) : (walletsList.map((wallet, index) => (jsx(WalletListItem, { wallet: wallet, onResetSearchValue: () => handleFilterValueChange(''), recommendedWallets: effectiveRecommendedWallets, onSelectWallet: onSelectWallet }, `${wallet.key}_${index}`))))] })), isSearchEnabled && !filterValue && projectSettings && (jsx(SearchNotFoundMessage, {}))] }), showDefaultFooter && (jsx(DefaultFooter, { hideBorder: !footerBorderIsVisible }))] }));
162
162
  };
163
163
 
164
164
  export { WalletList };
@@ -19,7 +19,7 @@ var ConnectedAppsView = require('../../views/ConnectedAppsView/ConnectedAppsView
19
19
  var DepositedExchangeView = require('../../views/DepositedExchangeView/DepositedExchangeView.cjs');
20
20
  var DepositView = require('../../views/DepositView/DepositView.cjs');
21
21
  var GlobalWalletView = require('../../views/GlobalWalletView/GlobalWalletView.cjs');
22
- var ManageMfaWidgetView = require('../../views/ManageMfaWidgetView/ManageMfaWidgetView.cjs');
22
+ var ManageTotpMfaWidgetView = require('../../views/ManageTotpMfaWidgetView/ManageTotpMfaWidgetView.cjs');
23
23
  var ReceiveWalletFunds = require('../../views/ReceiveWalletFunds/ReceiveWalletFunds.cjs');
24
24
  var RevokeAccessView = require('../../views/SessionManagementView/RevokeAccessView/RevokeAccessView.cjs');
25
25
  var SessionManagementInfoView = require('../../views/SessionManagementView/SessionManagementInfoView/SessionManagementInfoView.cjs');
@@ -35,9 +35,9 @@ const mapViewToComponent = {
35
35
  'deposited-exchange': DepositedExchangeView.DepositedExchangeView,
36
36
  'edit-profile': EditProfileView.EditProfileView,
37
37
  'global-wallet': GlobalWalletView.GlobalWalletView,
38
- 'manage-mfa': ManageMfaWidgetView.ManageMfaWidgetView,
39
- 'manage-mfa-no-footer': ManageMfaWidgetView.ManageMfaWidgetView,
40
38
  'manage-passkeys': ManagePasskeysWidgetView.ManagePasskeysWidgetView,
39
+ 'manage-totp-mfa': ManageTotpMfaWidgetView.ManageTotpMfaWidgetView,
40
+ 'manage-totp-mfa-no-footer': ManageTotpMfaWidgetView.ManageTotpMfaWidgetView,
41
41
  profile: ProfileView.ProfileView,
42
42
  'receive-exchange-funds': ReceiveWalletFunds.ReceiveWalletFunds,
43
43
  'receive-wallet-funds': ReceiveWalletFunds.ReceiveWalletFunds,
@@ -20,9 +20,9 @@ export declare const mapViewToComponent: {
20
20
  }>;
21
21
  'edit-profile': import("react").FC<import("../../views/EditProfileView/EditProfileView").EditProfileViewProps>;
22
22
  'global-wallet': import("react").FC<{}>;
23
- 'manage-mfa': import("react").FC;
24
- 'manage-mfa-no-footer': import("react").FC;
25
23
  'manage-passkeys': import("react").FC;
24
+ 'manage-totp-mfa': import("react").FC;
25
+ 'manage-totp-mfa-no-footer': import("react").FC;
26
26
  profile: import("react").FC;
27
27
  'receive-exchange-funds': import("react").FC<import("../../views/ReceiveWalletFunds/types").ReceiveWalletFundsProps>;
28
28
  'receive-wallet-funds': import("react").FC<import("../../views/ReceiveWalletFunds/types").ReceiveWalletFundsProps>;
@@ -15,7 +15,7 @@ import { ConnectedAppsView } from '../../views/ConnectedAppsView/ConnectedAppsVi
15
15
  import { DepositedExchangeView } from '../../views/DepositedExchangeView/DepositedExchangeView.js';
16
16
  import { DepositView } from '../../views/DepositView/DepositView.js';
17
17
  import { GlobalWalletView } from '../../views/GlobalWalletView/GlobalWalletView.js';
18
- import { ManageMfaWidgetView } from '../../views/ManageMfaWidgetView/ManageMfaWidgetView.js';
18
+ import { ManageTotpMfaWidgetView } from '../../views/ManageTotpMfaWidgetView/ManageTotpMfaWidgetView.js';
19
19
  import { ReceiveWalletFunds } from '../../views/ReceiveWalletFunds/ReceiveWalletFunds.js';
20
20
  import { RevokeAccessView } from '../../views/SessionManagementView/RevokeAccessView/RevokeAccessView.js';
21
21
  import { SessionManagementInfoView } from '../../views/SessionManagementView/SessionManagementInfoView/SessionManagementInfoView.js';
@@ -31,9 +31,9 @@ const mapViewToComponent = {
31
31
  'deposited-exchange': DepositedExchangeView,
32
32
  'edit-profile': EditProfileView,
33
33
  'global-wallet': GlobalWalletView,
34
- 'manage-mfa': ManageMfaWidgetView,
35
- 'manage-mfa-no-footer': ManageMfaWidgetView,
36
34
  'manage-passkeys': ManagePasskeysWidgetView,
35
+ 'manage-totp-mfa': ManageTotpMfaWidgetView,
36
+ 'manage-totp-mfa-no-footer': ManageTotpMfaWidgetView,
37
37
  profile: ProfileView,
38
38
  'receive-exchange-funds': ReceiveWalletFunds,
39
39
  'receive-wallet-funds': ReceiveWalletFunds,
@@ -118,13 +118,13 @@ const DynamicWidgetWallets = () => {
118
118
  setShowLinkNewWalletModal(true);
119
119
  setSelectedWalletConnectorKey(null);
120
120
  };
121
- const newWalletActionCopy = authMode$1 === 'connect-only'
122
- ? t('dyn_secondary_wallet.connect_new')
123
- : t('dyn_secondary_wallet.link_new');
121
+ const newWalletActionCopyKey = authMode$1 === 'connect-only'
122
+ ? 'dyn_secondary_wallet.connect_new'
123
+ : 'dyn_secondary_wallet.link_new';
124
124
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: 'dynamic-widget-wallets-header', children: [jsxRuntime.jsx(Typography.Typography, { weight: 'regular', variant: 'body_normal', color: 'secondary', className: 'dynamic-widget-wallets-header__title', copykey: 'dyn_widget.other_wallets', children: t('dyn_widget.other_wallets') }), jsxRuntime.jsx(TypographyButton.TypographyButton, { buttonClassName: 'dynamic-widget-wallets-header__add_wallet', buttonVariant: 'primary', buttonPadding: 'small', onClick: addNewWallet, typographyProps: {
125
125
  color: 'primary',
126
126
  variant: 'button_secondary',
127
- }, startSlot: jsxRuntime.jsx(add.ReactComponent, {}), copykey: newWalletActionCopy, children: newWalletActionCopy })] }), jsxRuntime.jsx("div", { ref: availableWalletsContainerRef, className: 'dynamic-widget-wallets', "data-testid": 'dynamicWidgetWallets', children: jsxRuntime.jsx("div", { className: classNames.classNames('dynamic-widget-wallets__body', {
127
+ }, startSlot: jsxRuntime.jsx(add.ReactComponent, {}), copykey: newWalletActionCopyKey, children: t(newWalletActionCopyKey) })] }), jsxRuntime.jsx("div", { ref: availableWalletsContainerRef, className: 'dynamic-widget-wallets', "data-testid": 'dynamicWidgetWallets', children: jsxRuntime.jsx("div", { className: classNames.classNames('dynamic-widget-wallets__body', {
128
128
  'dynamic-widget-wallets__body--apply-height': !isEmpty,
129
129
  }), children: isEmpty ? (jsxRuntime.jsx(EmptyWallets.EmptyWallets, { copykey: 'dyn_widget.empty_wallets', text: t('dyn_widget.empty_wallets', {
130
130
  action: authMode$1 === 'connect-and-sign'
@@ -114,13 +114,13 @@ const DynamicWidgetWallets = () => {
114
114
  setShowLinkNewWalletModal(true);
115
115
  setSelectedWalletConnectorKey(null);
116
116
  };
117
- const newWalletActionCopy = authMode === 'connect-only'
118
- ? t('dyn_secondary_wallet.connect_new')
119
- : t('dyn_secondary_wallet.link_new');
117
+ const newWalletActionCopyKey = authMode === 'connect-only'
118
+ ? 'dyn_secondary_wallet.connect_new'
119
+ : 'dyn_secondary_wallet.link_new';
120
120
  return (jsxs(Fragment, { children: [jsxs("div", { className: 'dynamic-widget-wallets-header', children: [jsx(Typography, { weight: 'regular', variant: 'body_normal', color: 'secondary', className: 'dynamic-widget-wallets-header__title', copykey: 'dyn_widget.other_wallets', children: t('dyn_widget.other_wallets') }), jsx(TypographyButton, { buttonClassName: 'dynamic-widget-wallets-header__add_wallet', buttonVariant: 'primary', buttonPadding: 'small', onClick: addNewWallet, typographyProps: {
121
121
  color: 'primary',
122
122
  variant: 'button_secondary',
123
- }, startSlot: jsx(SvgAdd, {}), copykey: newWalletActionCopy, children: newWalletActionCopy })] }), jsx("div", { ref: availableWalletsContainerRef, className: 'dynamic-widget-wallets', "data-testid": 'dynamicWidgetWallets', children: jsx("div", { className: classNames('dynamic-widget-wallets__body', {
123
+ }, startSlot: jsx(SvgAdd, {}), copykey: newWalletActionCopyKey, children: t(newWalletActionCopyKey) })] }), jsx("div", { ref: availableWalletsContainerRef, className: 'dynamic-widget-wallets', "data-testid": 'dynamicWidgetWallets', children: jsx("div", { className: classNames('dynamic-widget-wallets__body', {
124
124
  'dynamic-widget-wallets__body--apply-height': !isEmpty,
125
125
  }), children: isEmpty ? (jsx(EmptyWallets, { copykey: 'dyn_widget.empty_wallets', text: t('dyn_widget.empty_wallets', {
126
126
  action: authMode === 'connect-and-sign'
@@ -137,7 +137,7 @@ const DynamicWidgetContextProvider = ({ children, }) => {
137
137
  }, [isKYCEnabled, setDynamicWidgetView]);
138
138
  const overridenWidgetView = React.useMemo(() => {
139
139
  if (dynamicWidgetView === 'manage-passkeys' ||
140
- dynamicWidgetView === 'manage-mfa' ||
140
+ dynamicWidgetView === 'manage-totp-mfa' ||
141
141
  dynamicWidgetView === 'account-and-security-settings')
142
142
  return 'settings';
143
143
  if (!isKYCEnabled &&
@@ -133,7 +133,7 @@ const DynamicWidgetContextProvider = ({ children, }) => {
133
133
  }, [isKYCEnabled, setDynamicWidgetView]);
134
134
  const overridenWidgetView = useMemo(() => {
135
135
  if (dynamicWidgetView === 'manage-passkeys' ||
136
- dynamicWidgetView === 'manage-mfa' ||
136
+ dynamicWidgetView === 'manage-totp-mfa' ||
137
137
  dynamicWidgetView === 'account-and-security-settings')
138
138
  return 'settings';
139
139
  if (!isKYCEnabled &&
@@ -13,8 +13,8 @@ const DynamicGlobalWalletViews = [
13
13
  ];
14
14
  const DynamicPasskeyWidgetViews = ['manage-passkeys'];
15
15
  const DynamicMfaWidgetViews = [
16
- 'manage-mfa',
17
- 'manage-mfa-no-footer',
16
+ 'manage-totp-mfa',
17
+ 'manage-totp-mfa-no-footer',
18
18
  ];
19
19
  const DynamicTransactionsWidgetViews = ['send-balance'];
20
20
 
@@ -1,12 +1,12 @@
1
1
  import { ComponentProps, Dispatch, FC, RefObject, SetStateAction } from 'react';
2
- import { mapViewToComponent } from '../components/DynamicWidgetViews/mapViewToComponent';
3
2
  import { AlertProps } from '../../../components/Alert';
3
+ import { mapViewToComponent } from '../components/DynamicWidgetViews/mapViewToComponent';
4
4
  export declare const DynamicSettingsViews: readonly ["settings", "account-and-security-settings"];
5
5
  export type DynamicSettingsType = typeof DynamicSettingsViews[number];
6
6
  export declare const DynamicGlobalWalletViews: readonly ["global-wallet", "connected-apps"];
7
7
  export type DynamicGlobalWalletType = typeof DynamicGlobalWalletViews[number];
8
8
  export declare const DynamicPasskeyWidgetViews: readonly ["manage-passkeys"];
9
- export declare const DynamicMfaWidgetViews: readonly ["manage-mfa", "manage-mfa-no-footer"];
9
+ export declare const DynamicMfaWidgetViews: readonly ["manage-totp-mfa", "manage-totp-mfa-no-footer"];
10
10
  export type DynamicPasskeyWidgetViewsType = typeof DynamicPasskeyWidgetViews[number];
11
11
  export type DynamicMfaWidgetViewsType = typeof DynamicMfaWidgetViews[number];
12
12
  export declare const DynamicSessionManagementViews: readonly ["session-management", "session-management-info", "session-management-revoke-access"];
@@ -9,8 +9,8 @@ const DynamicGlobalWalletViews = [
9
9
  ];
10
10
  const DynamicPasskeyWidgetViews = ['manage-passkeys'];
11
11
  const DynamicMfaWidgetViews = [
12
- 'manage-mfa',
13
- 'manage-mfa-no-footer',
12
+ 'manage-totp-mfa',
13
+ 'manage-totp-mfa-no-footer',
14
14
  ];
15
15
  const DynamicTransactionsWidgetViews = ['send-balance'];
16
16
 
@@ -15,7 +15,6 @@ require('@dynamic-labs/wallet-book');
15
15
  require('../../../utils/constants/colors.cjs');
16
16
  require('../../../utils/constants/values.cjs');
17
17
  require('../../../shared/consts/index.cjs');
18
- require('../../../locale/locale.cjs');
19
18
 
20
19
  const replaceAll = (text, char, replace) => {
21
20
  const re = new RegExp(char, 'g');
@@ -1,7 +1,6 @@
1
1
  import { Provider } from '@dynamic-labs/sdk-api-core';
2
2
  import { WalletConnector } from '@dynamic-labs/wallet-connector-core';
3
3
  export * from './getPasskeyProviderFromUserAgent';
4
- export * from './getTimeSince';
5
4
  export declare const replaceAll: (text: string, char: string, replace: string) => string;
6
5
  export declare const copyToClipboard: (textToCopy: string) => void;
7
6
  export declare const roundBalance: (balanceString: string, decimals?: number) => string;
@@ -11,7 +11,6 @@ import '@dynamic-labs/wallet-book';
11
11
  import '../../../utils/constants/colors.js';
12
12
  import '../../../utils/constants/values.js';
13
13
  import '../../../shared/consts/index.js';
14
- import '../../../locale/locale.js';
15
14
 
16
15
  const replaceAll = (text, char, replace) => {
17
16
  const re = new RegExp(char, 'g');
@@ -9,8 +9,8 @@ require('@dynamic-labs/sdk-api-core');
9
9
  require('@dynamic-labs-sdk/client');
10
10
  require('../../../../client/client.cjs');
11
11
  require('../../../../../../_virtual/_tslib.cjs');
12
- require('../../../../utils/constants/values.cjs');
13
12
  require('@dynamic-labs/utils');
13
+ require('../../../../utils/constants/values.cjs');
14
14
  require('@dynamic-labs/multi-wallet');
15
15
  require('../../../../shared/logger.cjs');
16
16
  require('../../../../utils/constants/colors.cjs');
@@ -5,8 +5,8 @@ import '@dynamic-labs/sdk-api-core';
5
5
  import '@dynamic-labs-sdk/client';
6
6
  import '../../../../client/client.js';
7
7
  import '../../../../../../_virtual/_tslib.js';
8
- import '../../../../utils/constants/values.js';
9
8
  import '@dynamic-labs/utils';
9
+ import '../../../../utils/constants/values.js';
10
10
  import '@dynamic-labs/multi-wallet';
11
11
  import '../../../../shared/logger.js';
12
12
  import '../../../../utils/constants/colors.js';