@dynamic-labs/sdk-react-core 0.19.0 → 0.19.1

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 (258) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.cjs +2 -2
  3. package/package.js +2 -2
  4. package/package.json +9 -9
  5. package/src/index.cjs +1 -1
  6. package/src/index.d.ts +1 -0
  7. package/src/index.js +1 -1
  8. package/src/lib/Main.cjs +1 -1
  9. package/src/lib/Main.js +1 -1
  10. package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -1
  11. package/src/lib/components/Accordion/components/AccordionItem/AccordionItem.js +1 -1
  12. package/src/lib/components/AnimatePresence/AnimatePresence.cjs +1 -1
  13. package/src/lib/components/AnimatePresence/AnimatePresence.js +1 -1
  14. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +1 -1
  15. package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +1 -1
  16. package/src/lib/components/Divider/Divider.cjs +1 -1
  17. package/src/lib/components/Divider/Divider.js +1 -1
  18. package/src/lib/components/MenuList/Dropdown/Dropdown.cjs +1 -1
  19. package/src/lib/components/MenuList/Dropdown/Dropdown.js +1 -1
  20. package/src/lib/components/Modal/Modal.cjs +1 -1
  21. package/src/lib/components/Modal/Modal.js +1 -1
  22. package/src/lib/components/NetworkPicker/NetworkPicker.cjs +1 -1
  23. package/src/lib/components/NetworkPicker/NetworkPicker.js +1 -1
  24. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +1 -1
  25. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +1 -1
  26. package/src/lib/components/NetworkPicker/components/Network/Network.cjs +1 -1
  27. package/src/lib/components/NetworkPicker/components/Network/Network.js +1 -1
  28. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.cjs +1 -1
  29. package/src/lib/components/NetworkPicker/components/NonNetworkSwitchingSupportedControl/NonNetworkSwitchingSupportedControl.js +1 -1
  30. package/src/lib/components/OverlayCard/OverlayCard.cjs +1 -1
  31. package/src/lib/components/OverlayCard/OverlayCard.js +1 -1
  32. package/src/lib/components/Portal/Portal.cjs +1 -1
  33. package/src/lib/components/Portal/Portal.js +1 -1
  34. package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +18 -16
  35. package/src/lib/components/SendBalanceForm/SendBalanceForm.js +18 -16
  36. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +3 -1
  37. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +3 -1
  38. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +3 -1
  39. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +3 -1
  40. package/src/lib/components/SocialSignIn/SocialSignIn.cjs +1 -1
  41. package/src/lib/components/SocialSignIn/SocialSignIn.js +1 -1
  42. package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.cjs +1 -1
  43. package/src/lib/components/SyncPasskeyFlow/SyncPasskeyFlow.js +1 -1
  44. package/src/lib/components/Tooltip/Tooltip.cjs +1 -1
  45. package/src/lib/components/Tooltip/Tooltip.js +1 -1
  46. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +4 -2
  47. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +4 -2
  48. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +3 -2
  49. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +3 -2
  50. package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.cjs +1 -1
  51. package/src/lib/components/Transition/VerticalDrawerTransition/VerticalDrawerTransition.js +1 -1
  52. package/src/lib/components/UserAddress/UserAddress.cjs +1 -1
  53. package/src/lib/components/UserAddress/UserAddress.js +1 -1
  54. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -1
  55. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -1
  56. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.cjs +1 -1
  57. package/src/lib/components/UserProfile/parts/UserProfileSection/UserProfileSection.js +1 -1
  58. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.cjs +1 -1
  59. package/src/lib/components/UserProfile/parts/UserProfileSocialAccount/UserProfileSocialAccount.js +1 -1
  60. package/src/lib/context/DynamicContext/DynamicContext.d.ts +2 -2
  61. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.cjs +1 -1
  62. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerAuthFlowCallbacks.js +1 -1
  63. package/src/lib/context/MockContext/MockContext.cjs +1 -1
  64. package/src/lib/context/MockContext/MockContext.js +1 -1
  65. package/src/lib/context/QrCodeContext/QrCodeContext.cjs +1 -1
  66. package/src/lib/context/QrCodeContext/QrCodeContext.js +1 -1
  67. package/src/lib/context/SendBalanceContext/SendBalanceContext.cjs +1 -1
  68. package/src/lib/context/SendBalanceContext/SendBalanceContext.js +1 -1
  69. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.cjs +1 -1
  70. package/src/lib/context/SocialRedirectContext/SocialRedirectContext.js +1 -1
  71. package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.cjs +1 -1
  72. package/src/lib/context/UserFieldEditorContext/UserFieldEditorContext.js +1 -1
  73. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -1
  74. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -1
  75. package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +1 -1
  76. package/src/lib/layout/DynamicAuthLayout/Header/header.js +1 -1
  77. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +1 -1
  78. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +1 -1
  79. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.cjs +1 -1
  80. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/Item/Item.js +1 -1
  81. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.cjs +1 -1
  82. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletExtensionOrAppContinueButton/WalletExtensionOrAppContinueButton.js +1 -1
  83. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.cjs +1 -1
  84. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletListHelpContent/WalletListHelpContent.js +1 -1
  85. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.cjs +1 -1
  86. package/src/lib/layout/DynamicAuthLayout/HelpContent/WalletMoreInfoContent/WalletMoreInfoContent.js +1 -1
  87. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.cjs +1 -1
  88. package/src/lib/layout/DynamicAuthLayout/ToSFooter/ToSFooter.js +1 -1
  89. package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.cjs +1 -1
  90. package/src/lib/layout/DynamicAuthLayout/WalletProgressStepper/WalletProgressStepper.js +1 -1
  91. package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.cjs +1 -1
  92. package/src/lib/layout/DynamicUserProfileLayout/DynamicUserProfileLayout.js +1 -1
  93. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.cjs +1 -1
  94. package/src/lib/layouts/BridgeNextWalletToConnectLayout/BridgeNextWalletToConnectLayout.js +1 -1
  95. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +1 -1
  96. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +1 -1
  97. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +1 -1
  98. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +1 -1
  99. package/src/lib/locale/en/translation.cjs +744 -265
  100. package/src/lib/locale/en/translation.d.ts +743 -0
  101. package/src/lib/locale/en/translation.js +744 -244
  102. package/src/lib/locale/helpers/deepMerge.cjs +56 -0
  103. package/src/lib/locale/helpers/deepMerge.d.ts +1 -0
  104. package/src/lib/locale/helpers/deepMerge.js +52 -0
  105. package/src/lib/locale/helpers/index.d.ts +1 -0
  106. package/src/lib/locale/index.d.ts +2 -0
  107. package/src/lib/locale/locale.cjs +4 -15
  108. package/src/lib/locale/locale.d.ts +2 -6
  109. package/src/lib/locale/locale.js +5 -16
  110. package/src/lib/locale/type.d.ts +16 -0
  111. package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.cjs +1 -1
  112. package/src/lib/modals/DynamicAuthModal/DynamicAuthModal.js +1 -1
  113. package/src/lib/modals/SendBalanceModal/SendBalanceModal.cjs +1 -1
  114. package/src/lib/modals/SendBalanceModal/SendBalanceModal.js +1 -1
  115. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +1 -1
  116. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +1 -1
  117. package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.cjs +1 -1
  118. package/src/lib/modals/UserFieldEditorModal/UserFieldEditorModal.js +1 -1
  119. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +4 -3
  120. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +4 -3
  121. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +1 -1
  122. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +1 -1
  123. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.cjs +1 -1
  124. package/src/lib/views/CollectUserDataView/OnboardingUserDataForm/OnboardingUserDataForm.js +1 -1
  125. package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +1 -1
  126. package/src/lib/views/CollectUserDataView/UserDataFields/index.js +1 -1
  127. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +1 -1
  128. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +1 -1
  129. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.cjs +1 -1
  130. package/src/lib/views/LoginView/sections/SocialSignInSection/MagicSocialSignIn/MagicSocialSignIn.js +1 -1
  131. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +1 -1
  132. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +1 -1
  133. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +4 -3
  134. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +4 -3
  135. package/src/lib/views/NoAccess/NoAccess.cjs +3 -2
  136. package/src/lib/views/NoAccess/NoAccess.js +3 -2
  137. package/src/lib/views/NoAccess/useNoAccessText.cjs +26 -24
  138. package/src/lib/views/NoAccess/useNoAccessText.js +26 -24
  139. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +1 -1
  140. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +1 -1
  141. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +1 -1
  142. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +1 -1
  143. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +1 -1
  144. package/src/lib/views/PendingConnectView/PendingConnectView.js +1 -1
  145. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +1 -1
  146. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +1 -1
  147. package/src/lib/views/QrCodeView/QRCode.cjs +1 -1
  148. package/src/lib/views/QrCodeView/QRCode.js +1 -1
  149. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +1 -1
  150. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +1 -1
  151. package/src/lib/views/QrCodeView/QrCodeView.cjs +1 -1
  152. package/src/lib/views/QrCodeView/QrCodeView.js +1 -1
  153. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +3 -2
  154. package/src/lib/views/SendBalanceView/SendBalanceView.js +3 -2
  155. package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.cjs +1 -1
  156. package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.js +1 -1
  157. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +3 -2
  158. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +3 -2
  159. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +1 -1
  160. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +1 -1
  161. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +15 -5
  162. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +15 -5
  163. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.cjs +1 -1
  164. package/src/lib/views/TransactionConfirmationView/hooks/useTransactionGas/useTransactionGas.js +1 -1
  165. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.cjs +1 -1
  166. package/src/lib/views/UserFieldEditorView/UserFieldEditorView.js +1 -1
  167. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +5 -2
  168. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +5 -2
  169. package/src/lib/views/WalletList/WalletList.cjs +4 -2
  170. package/src/lib/views/WalletList/WalletList.js +4 -2
  171. package/src/lib/views/WalletList/WalletListItem/WalletListItem.cjs +1 -1
  172. package/src/lib/views/WalletList/WalletListItem/WalletListItem.js +1 -1
  173. package/src/lib/views/WalletLockedView/WalletLockedView.cjs +1 -1
  174. package/src/lib/views/WalletLockedView/WalletLockedView.js +1 -1
  175. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +1 -1
  176. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +1 -1
  177. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +3 -2
  178. package/src/lib/views/WalletUsedView/WalletUsedView.js +3 -2
  179. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.cjs +1 -1
  180. package/src/lib/widgets/DynamicBridgeWidget/DynamicBridgeWidget.js +1 -1
  181. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -1
  182. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -1
  183. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.cjs +1 -1
  184. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCard/DynamicBridgeWalletCard.js +1 -1
  185. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.cjs +1 -1
  186. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWalletCardBody/DynamicBridgeWalletCardBody.js +1 -1
  187. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.cjs +1 -1
  188. package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeWidgetEmptyCard/DynamicBridgeWidgetEmptyCard.js +1 -1
  189. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.cjs +1 -1
  190. package/src/lib/widgets/DynamicBridgeWidget/views/WalletsView/WalletsView.js +1 -1
  191. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.cjs +1 -1
  192. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedAuthFlow/DynamicEmbeddedAuthFlow.js +1 -1
  193. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.cjs +1 -1
  194. package/src/lib/widgets/DynamicEmbeddedWidget/DynamicEmbeddedUserProfile/DynamicEmbeddedUserProfile.js +1 -1
  195. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.cjs +1 -1
  196. package/src/lib/widgets/DynamicWidget/components/AccountControl/AccountControl.js +1 -1
  197. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.cjs +1 -1
  198. package/src/lib/widgets/DynamicWidget/components/Balance/Balance.js +1 -1
  199. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.cjs +1 -1
  200. package/src/lib/widgets/DynamicWidget/components/DotsMenu/DotsMenu.js +1 -1
  201. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.cjs +1 -1
  202. package/src/lib/widgets/DynamicWidget/components/DotsMenuDropdown/DotsMenuDropdown.js +1 -1
  203. package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.cjs +1 -1
  204. package/src/lib/widgets/DynamicWidget/components/DynamicNav/DynamicNav.js +1 -1
  205. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +1 -1
  206. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +1 -1
  207. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs +1 -1
  208. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js +1 -1
  209. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.cjs +1 -1
  210. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetWalletHeader/DynamicWidgetWalletHeader.js +1 -1
  211. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.cjs +1 -1
  212. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetDropdown/DynamicWidgetDropdown.js +1 -1
  213. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.cjs +1 -1
  214. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetVariants/variants/DynamicWidgetModal/DynamicWidgetModal.js +1 -1
  215. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.cjs +1 -1
  216. package/src/lib/widgets/DynamicWidget/components/EmailConnectorPendingSignModalContent/EmailConnectorPendingSignModalContent.js +1 -1
  217. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.cjs +1 -1
  218. package/src/lib/widgets/DynamicWidget/components/EmailOTPConnectorPendingSignModalContent/EmailOTPConnectorPendingSignModalContent.js +1 -1
  219. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +1 -1
  220. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +1 -1
  221. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.cjs +1 -1
  222. package/src/lib/widgets/DynamicWidget/components/SingleWalletButtons/SingleWalletButtons.js +1 -1
  223. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +1 -1
  224. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -1
  225. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.cjs +1 -1
  226. package/src/lib/widgets/DynamicWidget/components/WidgetPortal/WidgetPortal.js +1 -1
  227. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs +1 -1
  228. package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.js +1 -1
  229. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.cjs +1 -1
  230. package/src/lib/widgets/DynamicWidget/prompts/DefaultPromptModal/DefaultPromptModal.js +1 -1
  231. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.cjs +1 -1
  232. package/src/lib/widgets/DynamicWidget/prompts/DetectedNewWalletModal/DetectedNewWalletModal.js +1 -1
  233. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.cjs +1 -1
  234. package/src/lib/widgets/DynamicWidget/prompts/NoQrNotInstalledModalView/NoQrNotInstalledModalView.js +1 -1
  235. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.cjs +1 -1
  236. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchAccountView/SwitchAccountView.js +1 -1
  237. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.cjs +1 -1
  238. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchModal/SwitchOrUseActiveAccountView/SwitchOrUseActiveAccountView.js +1 -1
  239. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.cjs +1 -1
  240. package/src/lib/widgets/DynamicWidget/prompts/PendingAccountSwitchToLinkModal/PendingAccountSwitchToLinkModal.js +1 -1
  241. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +1 -1
  242. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +1 -1
  243. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.cjs +1 -1
  244. package/src/lib/widgets/DynamicWidget/prompts/PendingSignModal/DefaultPendingSignModalContent/DefaultPendingSignModalContent.js +1 -1
  245. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -1
  246. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -1
  247. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.cjs +1 -1
  248. package/src/lib/widgets/DynamicWidget/prompts/QrCodeModalView/QrCodeModalView.js +1 -1
  249. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.cjs +1 -1
  250. package/src/lib/widgets/DynamicWidget/prompts/UnlinkWalletPopUp/UnlinkWalletPopUp.js +1 -1
  251. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.cjs +1 -1
  252. package/src/lib/widgets/DynamicWidget/views/EditProfileView/EditProfileView.js +1 -1
  253. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.cjs +1 -1
  254. package/src/lib/widgets/DynamicWidget/views/ProfileView/ProfileView.js +1 -1
  255. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.cjs +1 -1
  256. package/src/lib/widgets/DynamicWidget/views/WalletsView/WalletsView.js +1 -1
  257. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.cjs +1 -1
  258. package/src/lib/widgets/FundingWidget/views/FundWalletView/FundWalletView.js +1 -1
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _tslib = require('../../../../_virtual/_tslib.cjs');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
+ var reactI18next = require('react-i18next');
8
9
  var viem = require('viem');
9
10
  var utils = require('@dynamic-labs/utils');
10
11
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
@@ -37,7 +38,6 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
37
38
  require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
38
39
  require('../../components/IconButton/IconButton.cjs');
39
40
  require('../../components/Alert/Alert.cjs');
40
- require('react-i18next');
41
41
  require('../../components/Popper/Popper/Popper.cjs');
42
42
  require('../../components/Popper/PopperContext/PopperContext.cjs');
43
43
  var SendBalancePageLayout = require('../../components/SendBalancePageLayout/SendBalancePageLayout.cjs');
@@ -68,6 +68,7 @@ var TransactionStage = require('./components/TransactionStage/TransactionStage.c
68
68
  const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBack, onClickClose, onError, onSuccess, onDone, displayPoweredByDynamicFooter = false, }) => {
69
69
  const [stage, setStage] = React.useState('form');
70
70
  const { primaryWallet, network, walletUiUtils } = useInternalDynamicContext.useInternalDynamicContext();
71
+ const { t } = reactI18next.useTranslation();
71
72
  const [value, setValue] = React.useState(initialValue !== null && initialValue !== void 0 ? initialValue : null);
72
73
  const [recipientAddress, setRecipientAddress] = React.useState(initialRecipientAddress);
73
74
  const transactionRef = React.useRef(null);
@@ -105,7 +106,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
105
106
  to: recipientAddress,
106
107
  value,
107
108
  };
108
- return (jsxRuntime.jsx(TransactionStage.TransactionStage, { walletConnector: walletConnector, provider: provider, transaction: transaction, title: 'Confirm transaction', onClickBack: () => setStage('form'), onError: onError, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, mutation: ({ to, value, gasPrice, nonce }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
109
+ return (jsxRuntime.jsx(TransactionStage.TransactionStage, { walletConnector: walletConnector, provider: provider, transaction: transaction, title: t('dyn_send_transaction.confirmation.title'), onClickBack: () => setStage('form'), onError: onError, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, mutation: ({ to, value, gasPrice, nonce }) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
109
110
  walletUiUtils.disabledConfirmationOnce();
110
111
  const signer = yield walletConnector.getSigner();
111
112
  const sentTransaction = yield signer.sendTransaction({
@@ -1,6 +1,7 @@
1
1
  import { __awaiter } from '../../../../_virtual/_tslib.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { useState, useRef } from 'react';
4
+ import { useTranslation } from 'react-i18next';
4
5
  import { parseEther } from 'viem';
5
6
  import { DynamicError } from '@dynamic-labs/utils';
6
7
  import { getChainInfo } from '@dynamic-labs/wallet-connector-core';
@@ -33,7 +34,6 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
33
34
  import '../../components/Transition/OpacityTransition/OpacityTransition.js';
34
35
  import '../../components/IconButton/IconButton.js';
35
36
  import '../../components/Alert/Alert.js';
36
- import 'react-i18next';
37
37
  import '../../components/Popper/Popper/Popper.js';
38
38
  import '../../components/Popper/PopperContext/PopperContext.js';
39
39
  import { SendBalancePageLayout } from '../../components/SendBalancePageLayout/SendBalancePageLayout.js';
@@ -64,6 +64,7 @@ import { TransactionStage } from './components/TransactionStage/TransactionStage
64
64
  const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBack, onClickClose, onError, onSuccess, onDone, displayPoweredByDynamicFooter = false, }) => {
65
65
  const [stage, setStage] = useState('form');
66
66
  const { primaryWallet, network, walletUiUtils } = useInternalDynamicContext();
67
+ const { t } = useTranslation();
67
68
  const [value, setValue] = useState(initialValue !== null && initialValue !== void 0 ? initialValue : null);
68
69
  const [recipientAddress, setRecipientAddress] = useState(initialRecipientAddress);
69
70
  const transactionRef = useRef(null);
@@ -101,7 +102,7 @@ const SendBalanceView = ({ initialRecipientAddress = '', initialValue, onClickBa
101
102
  to: recipientAddress,
102
103
  value,
103
104
  };
104
- return (jsx(TransactionStage, { walletConnector: walletConnector, provider: provider, transaction: transaction, title: 'Confirm transaction', onClickBack: () => setStage('form'), onError: onError, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, mutation: ({ to, value, gasPrice, nonce }) => __awaiter(void 0, void 0, void 0, function* () {
105
+ return (jsx(TransactionStage, { walletConnector: walletConnector, provider: provider, transaction: transaction, title: t('dyn_send_transaction.confirmation.title'), onClickBack: () => setStage('form'), onError: onError, displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, mutation: ({ to, value, gasPrice, nonce }) => __awaiter(void 0, void 0, void 0, function* () {
105
106
  walletUiUtils.disabledConfirmationOnce();
106
107
  const signer = yield walletConnector.getSigner();
107
108
  const sentTransaction = yield signer.sendTransaction({
@@ -27,6 +27,7 @@ require('../../../../context/ErrorContext/ErrorContext.cjs');
27
27
  require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
28
28
  require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
29
29
  require('react-dom');
30
+ require('react-i18next');
30
31
  require('../../../../components/ShadowDOM/ShadowDOM.cjs');
31
32
  require('../../../../context/ThemeContext/ThemeContext.cjs');
32
33
  require('react-focus-lock');
@@ -35,7 +36,6 @@ require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransiti
35
36
  require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
36
37
  require('../../../../components/IconButton/IconButton.cjs');
37
38
  require('../../../../components/Alert/Alert.cjs');
38
- require('react-i18next');
39
39
  require('../../../../components/Popper/Popper/Popper.cjs');
40
40
  require('../../../../components/Popper/PopperContext/PopperContext.cjs');
41
41
  require('formik');
@@ -23,6 +23,7 @@ import '../../../../context/ErrorContext/ErrorContext.js';
23
23
  import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
24
24
  import '../../../../context/AccountExistsContext/AccountExistsContext.js';
25
25
  import 'react-dom';
26
+ import 'react-i18next';
26
27
  import '../../../../components/ShadowDOM/ShadowDOM.js';
27
28
  import '../../../../context/ThemeContext/ThemeContext.js';
28
29
  import 'react-focus-lock';
@@ -31,7 +32,6 @@ import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransitio
31
32
  import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
32
33
  import '../../../../components/IconButton/IconButton.js';
33
34
  import '../../../../components/Alert/Alert.js';
34
- import 'react-i18next';
35
35
  import '../../../../components/Popper/Popper/Popper.js';
36
36
  import '../../../../components/Popper/PopperContext/PopperContext.js';
37
37
  import 'formik';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
+ var reactI18next = require('react-i18next');
6
7
  var sdkApi = require('@dynamic-labs/sdk-api');
7
8
  require('react');
8
9
  var Typography = require('../../components/Typography/Typography.cjs');
@@ -36,7 +37,6 @@ require('../../components/OverlayCard/OverlayCard.context.cjs');
36
37
  require('../../context/FooterAnimationContext/index.cjs');
37
38
  require('../../context/MockContext/MockContext.cjs');
38
39
  require('../../context/QrCodeContext/QrCodeContext.cjs');
39
- require('react-i18next');
40
40
  var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
41
41
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
42
42
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
@@ -64,7 +64,8 @@ var SocialRedirectContext = require('../../context/SocialRedirectContext/SocialR
64
64
  const SocialRedirectView = () => {
65
65
  const { socialProvider, signInProvider } = SocialRedirectContext.useSocialRedirectContext();
66
66
  const findSocialIcon = useFindSocialIcon.useFindSocialIcon();
67
- return (jsxRuntime.jsxs("div", { className: classNames.classNames('social-redirect-view__container'), children: [socialProvider && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true })), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', className: classNames.classNames('social-redirect-view__title'), children: "Logging you in" }), signInProvider !== sdkApi.SignInProviderEnum.MagicLink && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'powered-by-dynamic' }))] }));
67
+ const { t } = reactI18next.useTranslation();
68
+ return (jsxRuntime.jsxs("div", { className: classNames.classNames('social-redirect-view__container'), children: [socialProvider && (jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true })), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', className: classNames.classNames('social-redirect-view__title'), children: t('dyn_social_redirect.logging_in') }), signInProvider !== sdkApi.SignInProviderEnum.MagicLink && (jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'powered-by-dynamic' }))] }));
68
69
  };
69
70
 
70
71
  exports.SocialRedirectView = SocialRedirectView;
@@ -1,4 +1,5 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { useTranslation } from 'react-i18next';
2
3
  import { SignInProviderEnum } from '@dynamic-labs/sdk-api';
3
4
  import 'react';
4
5
  import { Typography } from '../../components/Typography/Typography.js';
@@ -32,7 +33,6 @@ import '../../components/OverlayCard/OverlayCard.context.js';
32
33
  import '../../context/FooterAnimationContext/index.js';
33
34
  import '../../context/MockContext/MockContext.js';
34
35
  import '../../context/QrCodeContext/QrCodeContext.js';
35
- import 'react-i18next';
36
36
  import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
37
37
  import '../../context/WalletGroupContext/WalletGroupContext.js';
38
38
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
@@ -60,7 +60,8 @@ import { useSocialRedirectContext } from '../../context/SocialRedirectContext/So
60
60
  const SocialRedirectView = () => {
61
61
  const { socialProvider, signInProvider } = useSocialRedirectContext();
62
62
  const findSocialIcon = useFindSocialIcon();
63
- return (jsxs("div", { className: classNames('social-redirect-view__container'), children: [socialProvider && (jsx(IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true })), jsx(Typography, { weight: 'medium', variant: 'title', className: classNames('social-redirect-view__title'), children: "Logging you in" }), signInProvider !== SignInProviderEnum.MagicLink && (jsx(PoweredByDynamic, { classNameRoot: 'powered-by-dynamic' }))] }));
63
+ const { t } = useTranslation();
64
+ return (jsxs("div", { className: classNames('social-redirect-view__container'), children: [socialProvider && (jsx(IconWithSpinner, { iconSize: 64, Icon: findSocialIcon(socialProvider), isSpinning: true })), jsx(Typography, { weight: 'medium', variant: 'title', className: classNames('social-redirect-view__title'), children: t('dyn_social_redirect.logging_in') }), signInProvider !== SignInProviderEnum.MagicLink && (jsx(PoweredByDynamic, { classNameRoot: 'powered-by-dynamic' }))] }));
64
65
  };
65
66
 
66
67
  export { SocialRedirectView };
@@ -32,11 +32,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
32
32
  require('../../context/ErrorContext/ErrorContext.cjs');
33
33
  require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
34
34
  require('../../context/AccountExistsContext/AccountExistsContext.cjs');
35
+ require('react-i18next');
35
36
  require('../../components/OverlayCard/OverlayCard.context.cjs');
36
37
  require('../../context/FooterAnimationContext/index.cjs');
37
38
  require('../../context/MockContext/MockContext.cjs');
38
39
  require('../../context/QrCodeContext/QrCodeContext.cjs');
39
- require('react-i18next');
40
40
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
41
41
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
42
42
  var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
@@ -28,11 +28,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
28
28
  import '../../context/ErrorContext/ErrorContext.js';
29
29
  import '../../context/AccessDeniedContext/AccessDeniedContext.js';
30
30
  import '../../context/AccountExistsContext/AccountExistsContext.js';
31
+ import 'react-i18next';
31
32
  import '../../components/OverlayCard/OverlayCard.context.js';
32
33
  import '../../context/FooterAnimationContext/index.js';
33
34
  import '../../context/MockContext/MockContext.js';
34
35
  import '../../context/QrCodeContext/QrCodeContext.js';
35
- import 'react-i18next';
36
36
  import '../../context/WalletGroupContext/WalletGroupContext.js';
37
37
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
38
38
  import { IconWithSpinner } from '../../components/IconWithSpinner/IconWithSpinner.js';
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _tslib = require('../../../../_virtual/_tslib.cjs');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
+ var reactI18next = require('react-i18next');
8
9
  var viem = require('viem');
9
10
  var utils = require('@dynamic-labs/utils');
10
11
  var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
@@ -38,7 +39,6 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
38
39
  require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
39
40
  require('../../components/IconButton/IconButton.cjs');
40
41
  require('../../components/Alert/Alert.cjs');
41
- require('react-i18next');
42
42
  require('../../components/Popper/Popper/Popper.cjs');
43
43
  require('../../components/Popper/PopperContext/PopperContext.cjs');
44
44
  var TransactionConfirmationPageLayout = require('../../components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs');
@@ -72,6 +72,7 @@ var useMutation = require('../../utils/hooks/useMutation/useMutation.cjs');
72
72
  const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess, onClickBack, onClickClose, title, displayPoweredByDynamicFooter = false, provider, }) => {
73
73
  const { appName, appLogoUrl, primaryWallet } = useInternalDynamicContext.useInternalDynamicContext();
74
74
  const appOrigin = getAppOrigin.getAppOrigin();
75
+ const { t } = reactI18next.useTranslation();
75
76
  if (!primaryWallet) {
76
77
  throw new utils.DynamicError('Primary wallet is not available, transaction cannot be displayed');
77
78
  }
@@ -123,12 +124,21 @@ const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess
123
124
  if (!showInsufficientFundsWarningMessage)
124
125
  return;
125
126
  const amountLeft = formatBigNumber.formatBigNumber(missingFunds, 5);
126
- return `Insufficient funds due to gas price increase from estimate. Please add ${amountLeft} ${currencySymbol} to continue.`;
127
+ return t('dyn_send_transaction.warning_message.insufficient_funds', {
128
+ amountLeft,
129
+ currencySymbol,
130
+ });
127
131
  }, [currencySymbol, hasInsufficientFunds, missingFunds]);
128
- return (jsxRuntime.jsxs(TransactionConfirmationPageLayout.TransactionConfirmationPageLayout, { onClickBack: onClickBack, onClickClose: onClickClose, title: title, appOrigin: appOrigin, appName: appName, appLogoUrl: appLogoUrl, isLoading: isLoading, onClickSend: () => send(), displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, disableSendButton: isTransactionLoading || hasInsufficientFunds, error: errorMessage, warningMessage: warningMessage, children: [jsxRuntime.jsx(TransactionRow.TransactionRow, { label: 'From (You)', isLoading: isTransactionFromAddressLoading, title: transactionFromAddress, children: shortenWalletAddress.shortenWalletAddress(transactionFromAddress, 4, 4) }), jsxRuntime.jsx(TransactionRow.TransactionRow, { label: 'To', isLoading: isTransactionToAddressLoading, title: transactionToAddress, children: transactionToAddress &&
129
- shortenWalletAddress.shortenWalletAddress(transactionToAddress, 4, 4) }), jsxRuntime.jsx(TransactionRow.TransactionRow, { label: 'Amount', isLoading: isTransactionValueLoading, isEmpty: !transactionValue, title: transactionValue ? formatBigNumber.formatBigNumber(transactionValue) : undefined, suffix: currencySymbol, icon: chainIcon, dataTestId: 'transaction-amount', children: transactionValue ? formatBigNumber.formatBigNumber(transactionValue, 10) : 0 }), jsxRuntime.jsx(TransactionRow.TransactionRow, { label: isGasEstimated ? 'Gas (estimate)' : 'Gas', isEmpty: !gasTotalPrice, isLoading: isGasPriceLoading, title: gasTotalPrice ? formatBigNumber.formatBigNumber(gasTotalPrice) : undefined, suffix: gasTotalPrice ? currencySymbol : undefined, icon: gasTotalPrice ? chainIcon : undefined, dataTestId: isGasEstimated
132
+ return (jsxRuntime.jsxs(TransactionConfirmationPageLayout.TransactionConfirmationPageLayout, { onClickBack: onClickBack, onClickClose: onClickClose, title: title, appOrigin: appOrigin, appName: appName, appLogoUrl: appLogoUrl, isLoading: isLoading, onClickSend: () => send(), displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, disableSendButton: isTransactionLoading || hasInsufficientFunds, error: errorMessage, warningMessage: warningMessage, children: [jsxRuntime.jsx(TransactionRow.TransactionRow, { label: t('dyn_send_transaction.confirmation.data.from'), isLoading: isTransactionFromAddressLoading, title: transactionFromAddress, children: shortenWalletAddress.shortenWalletAddress(transactionFromAddress, 4, 4) }), jsxRuntime.jsx(TransactionRow.TransactionRow, { label: t('dyn_send_transaction.confirmation.data.to'), isLoading: isTransactionToAddressLoading, title: transactionToAddress, children: transactionToAddress &&
133
+ shortenWalletAddress.shortenWalletAddress(transactionToAddress, 4, 4) }), jsxRuntime.jsx(TransactionRow.TransactionRow, { label: t('dyn_send_transaction.confirmation.data.amount'), isLoading: isTransactionValueLoading, isEmpty: !transactionValue, title: transactionValue ? formatBigNumber.formatBigNumber(transactionValue) : undefined, suffix: currencySymbol, icon: chainIcon, dataTestId: 'transaction-amount', children: transactionValue ? formatBigNumber.formatBigNumber(transactionValue, 10) : 0 }), jsxRuntime.jsx(TransactionRow.TransactionRow, { label: isGasEstimated
134
+ ? t('dyn_send_transaction.confirmation.data.gas_estimate')
135
+ : t('dyn_send_transaction.confirmation.data.gas'), isEmpty: !gasTotalPrice, isLoading: isGasPriceLoading, title: gasTotalPrice ? formatBigNumber.formatBigNumber(gasTotalPrice) : undefined, suffix: gasTotalPrice ? currencySymbol : undefined, icon: gasTotalPrice ? chainIcon : undefined, dataTestId: isGasEstimated
130
136
  ? 'transaction-estimated-gas-fee'
131
- : 'transaction-gas-fee', children: gasTotalPrice ? formatBigNumber.formatBigNumber(gasTotalPrice, 10) : 'N/A' }), jsxRuntime.jsx(TransactionRow.TransactionRow, { label: 'Total', isEmpty: !total, title: total ? formatBigNumber.formatBigNumber(total) : undefined, suffix: total ? currencySymbol : undefined, icon: total ? chainIcon : undefined, dataTestId: 'transaction-total', children: total ? formatBigNumber.formatBigNumber(total, 10) : 'N/A' })] }));
137
+ : 'transaction-gas-fee', children: gasTotalPrice
138
+ ? formatBigNumber.formatBigNumber(gasTotalPrice, 10)
139
+ : t('dyn_send_transaction.confirmation.data.gas_estimate') }), jsxRuntime.jsx(TransactionRow.TransactionRow, { label: t('dyn_send_transaction.confirmation.data.total'), isEmpty: !total, title: total ? formatBigNumber.formatBigNumber(total) : undefined, suffix: total ? currencySymbol : undefined, icon: total ? chainIcon : undefined, dataTestId: 'transaction-total', children: total
140
+ ? formatBigNumber.formatBigNumber(total, 10)
141
+ : t('dyn_send_transaction.confirmation.not_applied') })] }));
132
142
  };
133
143
 
134
144
  exports.TransactionConfirmationView = TransactionConfirmationView;
@@ -1,6 +1,7 @@
1
1
  import { __awaiter } from '../../../../_virtual/_tslib.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
+ import { useTranslation } from 'react-i18next';
4
5
  import { parseEther, isHex, hexToBigInt } from 'viem';
5
6
  import { DynamicError } from '@dynamic-labs/utils';
6
7
  import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
@@ -34,7 +35,6 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
34
35
  import '../../components/Transition/OpacityTransition/OpacityTransition.js';
35
36
  import '../../components/IconButton/IconButton.js';
36
37
  import '../../components/Alert/Alert.js';
37
- import 'react-i18next';
38
38
  import '../../components/Popper/Popper/Popper.js';
39
39
  import '../../components/Popper/PopperContext/PopperContext.js';
40
40
  import { TransactionConfirmationPageLayout } from '../../components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js';
@@ -68,6 +68,7 @@ import { useMutation } from '../../utils/hooks/useMutation/useMutation.js';
68
68
  const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess, onClickBack, onClickClose, title, displayPoweredByDynamicFooter = false, provider, }) => {
69
69
  const { appName, appLogoUrl, primaryWallet } = useInternalDynamicContext();
70
70
  const appOrigin = getAppOrigin();
71
+ const { t } = useTranslation();
71
72
  if (!primaryWallet) {
72
73
  throw new DynamicError('Primary wallet is not available, transaction cannot be displayed');
73
74
  }
@@ -119,12 +120,21 @@ const TransactionConfirmationView = ({ transaction, mutation, onError, onSuccess
119
120
  if (!showInsufficientFundsWarningMessage)
120
121
  return;
121
122
  const amountLeft = formatBigNumber(missingFunds, 5);
122
- return `Insufficient funds due to gas price increase from estimate. Please add ${amountLeft} ${currencySymbol} to continue.`;
123
+ return t('dyn_send_transaction.warning_message.insufficient_funds', {
124
+ amountLeft,
125
+ currencySymbol,
126
+ });
123
127
  }, [currencySymbol, hasInsufficientFunds, missingFunds]);
124
- return (jsxs(TransactionConfirmationPageLayout, { onClickBack: onClickBack, onClickClose: onClickClose, title: title, appOrigin: appOrigin, appName: appName, appLogoUrl: appLogoUrl, isLoading: isLoading, onClickSend: () => send(), displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, disableSendButton: isTransactionLoading || hasInsufficientFunds, error: errorMessage, warningMessage: warningMessage, children: [jsx(TransactionRow, { label: 'From (You)', isLoading: isTransactionFromAddressLoading, title: transactionFromAddress, children: shortenWalletAddress(transactionFromAddress, 4, 4) }), jsx(TransactionRow, { label: 'To', isLoading: isTransactionToAddressLoading, title: transactionToAddress, children: transactionToAddress &&
125
- shortenWalletAddress(transactionToAddress, 4, 4) }), jsx(TransactionRow, { label: 'Amount', isLoading: isTransactionValueLoading, isEmpty: !transactionValue, title: transactionValue ? formatBigNumber(transactionValue) : undefined, suffix: currencySymbol, icon: chainIcon, dataTestId: 'transaction-amount', children: transactionValue ? formatBigNumber(transactionValue, 10) : 0 }), jsx(TransactionRow, { label: isGasEstimated ? 'Gas (estimate)' : 'Gas', isEmpty: !gasTotalPrice, isLoading: isGasPriceLoading, title: gasTotalPrice ? formatBigNumber(gasTotalPrice) : undefined, suffix: gasTotalPrice ? currencySymbol : undefined, icon: gasTotalPrice ? chainIcon : undefined, dataTestId: isGasEstimated
128
+ return (jsxs(TransactionConfirmationPageLayout, { onClickBack: onClickBack, onClickClose: onClickClose, title: title, appOrigin: appOrigin, appName: appName, appLogoUrl: appLogoUrl, isLoading: isLoading, onClickSend: () => send(), displayPoweredByDynamicFooter: displayPoweredByDynamicFooter, disableSendButton: isTransactionLoading || hasInsufficientFunds, error: errorMessage, warningMessage: warningMessage, children: [jsx(TransactionRow, { label: t('dyn_send_transaction.confirmation.data.from'), isLoading: isTransactionFromAddressLoading, title: transactionFromAddress, children: shortenWalletAddress(transactionFromAddress, 4, 4) }), jsx(TransactionRow, { label: t('dyn_send_transaction.confirmation.data.to'), isLoading: isTransactionToAddressLoading, title: transactionToAddress, children: transactionToAddress &&
129
+ shortenWalletAddress(transactionToAddress, 4, 4) }), jsx(TransactionRow, { label: t('dyn_send_transaction.confirmation.data.amount'), isLoading: isTransactionValueLoading, isEmpty: !transactionValue, title: transactionValue ? formatBigNumber(transactionValue) : undefined, suffix: currencySymbol, icon: chainIcon, dataTestId: 'transaction-amount', children: transactionValue ? formatBigNumber(transactionValue, 10) : 0 }), jsx(TransactionRow, { label: isGasEstimated
130
+ ? t('dyn_send_transaction.confirmation.data.gas_estimate')
131
+ : t('dyn_send_transaction.confirmation.data.gas'), isEmpty: !gasTotalPrice, isLoading: isGasPriceLoading, title: gasTotalPrice ? formatBigNumber(gasTotalPrice) : undefined, suffix: gasTotalPrice ? currencySymbol : undefined, icon: gasTotalPrice ? chainIcon : undefined, dataTestId: isGasEstimated
126
132
  ? 'transaction-estimated-gas-fee'
127
- : 'transaction-gas-fee', children: gasTotalPrice ? formatBigNumber(gasTotalPrice, 10) : 'N/A' }), jsx(TransactionRow, { label: 'Total', isEmpty: !total, title: total ? formatBigNumber(total) : undefined, suffix: total ? currencySymbol : undefined, icon: total ? chainIcon : undefined, dataTestId: 'transaction-total', children: total ? formatBigNumber(total, 10) : 'N/A' })] }));
133
+ : 'transaction-gas-fee', children: gasTotalPrice
134
+ ? formatBigNumber(gasTotalPrice, 10)
135
+ : t('dyn_send_transaction.confirmation.data.gas_estimate') }), jsx(TransactionRow, { label: t('dyn_send_transaction.confirmation.data.total'), isEmpty: !total, title: total ? formatBigNumber(total) : undefined, suffix: total ? currencySymbol : undefined, icon: total ? chainIcon : undefined, dataTestId: 'transaction-total', children: total
136
+ ? formatBigNumber(total, 10)
137
+ : t('dyn_send_transaction.confirmation.not_applied') })] }));
128
138
  };
129
139
 
130
140
  export { TransactionConfirmationView };
@@ -25,6 +25,7 @@ require('../../../../context/ErrorContext/ErrorContext.cjs');
25
25
  require('../../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
26
26
  require('../../../../context/AccountExistsContext/AccountExistsContext.cjs');
27
27
  require('react-dom');
28
+ require('react-i18next');
28
29
  require('../../../../components/ShadowDOM/ShadowDOM.cjs');
29
30
  require('../../../../context/ThemeContext/ThemeContext.cjs');
30
31
  require('react-focus-lock');
@@ -33,7 +34,6 @@ require('../../../../components/Transition/SlideInUpTransition/SlideInUpTransiti
33
34
  require('../../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
34
35
  require('../../../../components/IconButton/IconButton.cjs');
35
36
  require('../../../../components/Alert/Alert.cjs');
36
- require('react-i18next');
37
37
  require('../../../../components/Popper/Popper/Popper.cjs');
38
38
  require('../../../../components/Popper/PopperContext/PopperContext.cjs');
39
39
  require('formik');
@@ -21,6 +21,7 @@ import '../../../../context/ErrorContext/ErrorContext.js';
21
21
  import '../../../../context/AccessDeniedContext/AccessDeniedContext.js';
22
22
  import '../../../../context/AccountExistsContext/AccountExistsContext.js';
23
23
  import 'react-dom';
24
+ import 'react-i18next';
24
25
  import '../../../../components/ShadowDOM/ShadowDOM.js';
25
26
  import '../../../../context/ThemeContext/ThemeContext.js';
26
27
  import 'react-focus-lock';
@@ -29,7 +30,6 @@ import '../../../../components/Transition/SlideInUpTransition/SlideInUpTransitio
29
30
  import '../../../../components/Transition/OpacityTransition/OpacityTransition.js';
30
31
  import '../../../../components/IconButton/IconButton.js';
31
32
  import '../../../../components/Alert/Alert.js';
32
- import 'react-i18next';
33
33
  import '../../../../components/Popper/Popper/Popper.js';
34
34
  import '../../../../components/Popper/PopperContext/PopperContext.js';
35
35
  import 'formik';
@@ -33,11 +33,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
33
33
  require('../../context/ErrorContext/ErrorContext.cjs');
34
34
  require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
35
35
  require('../../context/AccountExistsContext/AccountExistsContext.cjs');
36
+ require('react-i18next');
36
37
  require('../../components/OverlayCard/OverlayCard.context.cjs');
37
38
  require('../../context/FooterAnimationContext/index.cjs');
38
39
  require('../../context/MockContext/MockContext.cjs');
39
40
  require('../../context/QrCodeContext/QrCodeContext.cjs');
40
- require('react-i18next');
41
41
  var PoweredByDynamic = require('../../components/PoweredByDynamic/PoweredByDynamic.cjs');
42
42
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
43
43
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
@@ -29,11 +29,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
29
29
  import '../../context/ErrorContext/ErrorContext.js';
30
30
  import '../../context/AccessDeniedContext/AccessDeniedContext.js';
31
31
  import '../../context/AccountExistsContext/AccountExistsContext.js';
32
+ import 'react-i18next';
32
33
  import '../../components/OverlayCard/OverlayCard.context.js';
33
34
  import '../../context/FooterAnimationContext/index.js';
34
35
  import '../../context/MockContext/MockContext.js';
35
36
  import '../../context/QrCodeContext/QrCodeContext.js';
36
- import 'react-i18next';
37
37
  import { PoweredByDynamic } from '../../components/PoweredByDynamic/PoweredByDynamic.js';
38
38
  import '../../context/WalletGroupContext/WalletGroupContext.js';
39
39
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
+ var reactI18next = require('react-i18next');
6
7
  require('react');
7
8
  var Typography = require('../../../components/Typography/Typography.cjs');
8
9
  require('@dynamic-labs/sdk-api');
@@ -36,7 +37,6 @@ require('../../../components/OverlayCard/OverlayCard.context.cjs');
36
37
  require('../../../context/FooterAnimationContext/index.cjs');
37
38
  require('../../../context/MockContext/MockContext.cjs');
38
39
  require('../../../context/QrCodeContext/QrCodeContext.cjs');
39
- require('react-i18next');
40
40
  require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
41
41
  require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
42
42
  require('../../../context/CaptchaContext/CaptchaContext.cjs');
@@ -57,6 +57,9 @@ require('../../../components/Popper/PopperContext/PopperContext.cjs');
57
57
  require('../../../components/InlineWidget/InlineWidget.cjs');
58
58
  require('../../../components/MenuList/Dropdown/Dropdown.cjs');
59
59
 
60
- const SearchNotFoundMessage = ({ title, subtitle, image, }) => (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', children: title || "Don't see your wallet?" }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', variant: 'button_primary', weight: 'regular', children: subtitle || 'Try search instead' })] }));
60
+ const SearchNotFoundMessage = ({ title, subtitle, image, }) => {
61
+ const { t } = reactI18next.useTranslation();
62
+ 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', children: title || t('dyn_wallet_list.wallet_missing.title') }), jsxRuntime.jsx(Typography.Typography, { color: 'primary', variant: 'button_primary', weight: 'regular', children: subtitle || t('dyn_wallet_list.wallet_missing.description') })] }));
63
+ };
61
64
 
62
65
  exports.SearchNotFoundMessage = SearchNotFoundMessage;
@@ -1,4 +1,5 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { useTranslation } from 'react-i18next';
2
3
  import 'react';
3
4
  import { Typography } from '../../../components/Typography/Typography.js';
4
5
  import '@dynamic-labs/sdk-api';
@@ -32,7 +33,6 @@ import '../../../components/OverlayCard/OverlayCard.context.js';
32
33
  import '../../../context/FooterAnimationContext/index.js';
33
34
  import '../../../context/MockContext/MockContext.js';
34
35
  import '../../../context/QrCodeContext/QrCodeContext.js';
35
- import 'react-i18next';
36
36
  import '../../../context/WalletGroupContext/WalletGroupContext.js';
37
37
  import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
38
38
  import '../../../context/CaptchaContext/CaptchaContext.js';
@@ -53,6 +53,9 @@ import '../../../components/Popper/PopperContext/PopperContext.js';
53
53
  import '../../../components/InlineWidget/InlineWidget.js';
54
54
  import '../../../components/MenuList/Dropdown/Dropdown.js';
55
55
 
56
- const SearchNotFoundMessage = ({ title, subtitle, image, }) => (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', children: title || "Don't see your wallet?" }), jsx(Typography, { color: 'primary', variant: 'button_primary', weight: 'regular', children: subtitle || 'Try search instead' })] }));
56
+ const SearchNotFoundMessage = ({ title, subtitle, image, }) => {
57
+ const { t } = useTranslation();
58
+ 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', children: title || t('dyn_wallet_list.wallet_missing.title') }), jsx(Typography, { color: 'primary', variant: 'button_primary', weight: 'regular', children: subtitle || t('dyn_wallet_list.wallet_missing.description') })] }));
59
+ };
57
60
 
58
61
  export { SearchNotFoundMessage };
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var React = require('react');
7
+ var reactI18next = require('react-i18next');
7
8
  var walletBook = require('@dynamic-labs/wallet-book');
8
9
  var ErrorContainer = require('../../components/ErrorContainer/ErrorContainer.cjs');
9
10
  var Search = require('../../components/Search/Search.cjs');
@@ -38,6 +39,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
38
39
  const { error } = ErrorContext.useErrorContext();
39
40
  const { view } = ViewContext.useViewContext();
40
41
  const { mockedSDK } = MockContext.useMockContext();
42
+ const { t } = reactI18next.useTranslation();
41
43
  const [filterValue, setFilterValue] = React.useState((_a = localStorage.LocalStorage.getFromLS(localStorage$1.WALLET_PICKER_SEARCH_KEY)) !== null && _a !== void 0 ? _a : '');
42
44
  const [footerIsVisible, setFooterIsVisibile] = React.useState(false);
43
45
  const getFilteredWalletsByChain = (walletsToConnectByChain === null || walletsToConnectByChain === void 0 ? void 0 : walletsToConnectByChain.length) &&
@@ -81,11 +83,11 @@ const WalletList = ({ isWalletConnectList = false, }) => {
81
83
  };
82
84
  const searchContainer = !projectSettings ? (jsxRuntime.jsx(Skeleton.Skeleton, { className: 'wallet-list__search-skeleton' })) : (isSearchEnabled && (jsxRuntime.jsx("div", { className: classNames.classNames('wallet-list__search-container', {
83
85
  'wallet-list__search-container--scroll': !error,
84
- }), children: jsxRuntime.jsx(Search.Search, { label: `Search through ${numberOfWallets} wallets...`, value: filterValue, onChange: ({ target: { value } }) => handleFilterValueChange(value), onClickClear: () => handleFilterValueChange('') }) })));
86
+ }), children: jsxRuntime.jsx(Search.Search, { label: t('dyn_wallet_list.search.label', { numberOfWallets }), value: filterValue, onChange: ({ target: { value } }) => handleFilterValueChange(value), onClickClear: () => handleFilterValueChange('') }) })));
85
87
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [searchContainer, Boolean(error) && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { className: 'wallet-list__error-container', withIcon: false, children: error })), jsxRuntime.jsx("div", { className: 'wallet-list__container', children: jsxRuntime.jsxs("div", { className: classNames.classNames('wallet-list__scroll-container', {
86
88
  'wallet-list__scroll-container--error': Boolean(error),
87
89
  'wallet-list__scroll-container--full-height': isSearchEnabled,
88
- }), "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: [wallets.length === 0 && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: "Oops, no login methods have been configured." })), wallets.length && walletsList.length === 0 ? (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, { title: 'No wallet found.', subtitle: 'Try searching for a different wallet', image: jsxRuntime.jsx(noWalletFound.ReactComponent, {}) })) : (walletsList.map((wallet, index) => (jsxRuntime.jsx(WalletListItem.WalletListItem, { wallet: wallet, usingMultiWallet: multiWallet, onResetSearchValue: () => handleFilterValueChange('') }, `${wallet.key}_${index}`))))] })), isSearchEnabled && !filterValue && projectSettings && (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, {}))] }) }), noDefaultFooter && (jsxRuntime.jsx("div", { className: classNames.classNames('wallet-list__tiny-footer', {
90
+ }), "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: [wallets.length === 0 && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: t('dyn_wallet_list.configuration_mismatch') })), wallets.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, usingMultiWallet: multiWallet, onResetSearchValue: () => handleFilterValueChange('') }, `${wallet.key}_${index}`))))] })), isSearchEnabled && !filterValue && projectSettings && (jsxRuntime.jsx(SearchNotFoundMessage.SearchNotFoundMessage, {}))] }) }), noDefaultFooter && (jsxRuntime.jsx("div", { className: classNames.classNames('wallet-list__tiny-footer', {
89
91
  'wallet-list__tiny-footer--hidden': footerIsVisible,
90
92
  }), "data-testid": 'wallet-list-tiny-footer' }))] }));
91
93
  };
@@ -1,5 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import { useState, useRef } from 'react';
3
+ import { useTranslation } from 'react-i18next';
3
4
  import { useWalletBookContext } from '@dynamic-labs/wallet-book';
4
5
  import { ErrorContainer } from '../../components/ErrorContainer/ErrorContainer.js';
5
6
  import { Search } from '../../components/Search/Search.js';
@@ -34,6 +35,7 @@ const WalletList = ({ isWalletConnectList = false, }) => {
34
35
  const { error } = useErrorContext();
35
36
  const { view } = useViewContext();
36
37
  const { mockedSDK } = useMockContext();
38
+ const { t } = useTranslation();
37
39
  const [filterValue, setFilterValue] = useState((_a = LocalStorage.getFromLS(WALLET_PICKER_SEARCH_KEY)) !== null && _a !== void 0 ? _a : '');
38
40
  const [footerIsVisible, setFooterIsVisibile] = useState(false);
39
41
  const getFilteredWalletsByChain = (walletsToConnectByChain === null || walletsToConnectByChain === void 0 ? void 0 : walletsToConnectByChain.length) &&
@@ -77,11 +79,11 @@ const WalletList = ({ isWalletConnectList = false, }) => {
77
79
  };
78
80
  const searchContainer = !projectSettings ? (jsx(Skeleton, { className: 'wallet-list__search-skeleton' })) : (isSearchEnabled && (jsx("div", { className: classNames('wallet-list__search-container', {
79
81
  'wallet-list__search-container--scroll': !error,
80
- }), children: jsx(Search, { label: `Search through ${numberOfWallets} wallets...`, value: filterValue, onChange: ({ target: { value } }) => handleFilterValueChange(value), onClickClear: () => handleFilterValueChange('') }) })));
82
+ }), children: jsx(Search, { label: t('dyn_wallet_list.search.label', { numberOfWallets }), value: filterValue, onChange: ({ target: { value } }) => handleFilterValueChange(value), onClickClear: () => handleFilterValueChange('') }) })));
81
83
  return (jsxs(Fragment, { children: [searchContainer, Boolean(error) && (jsx(ErrorContainer, { className: 'wallet-list__error-container', withIcon: false, children: error })), jsx("div", { className: 'wallet-list__container', children: jsxs("div", { className: classNames('wallet-list__scroll-container', {
82
84
  'wallet-list__scroll-container--error': Boolean(error),
83
85
  'wallet-list__scroll-container--full-height': isSearchEnabled,
84
- }), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll, children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxs(Fragment, { children: [wallets.length === 0 && (jsx(ErrorContainer, { children: "Oops, no login methods have been configured." })), wallets.length && walletsList.length === 0 ? (jsx(SearchNotFoundMessage, { title: 'No wallet found.', subtitle: 'Try searching for a different wallet', image: jsx(SvgNoWalletFound, {}) })) : (walletsList.map((wallet, index) => (jsx(WalletListItem, { wallet: wallet, usingMultiWallet: multiWallet, onResetSearchValue: () => handleFilterValueChange('') }, `${wallet.key}_${index}`))))] })), isSearchEnabled && !filterValue && projectSettings && (jsx(SearchNotFoundMessage, {}))] }) }), noDefaultFooter && (jsx("div", { className: classNames('wallet-list__tiny-footer', {
86
+ }), "data-testid": 'wallet-list-scroll-container', ref: walletListScrollRef, onScroll: handleScroll, children: [!projectSettings ? (jsx(Skeleton, { count: 10, className: 'wallet-list__tile-skeleton' })) : (jsxs(Fragment, { children: [wallets.length === 0 && (jsx(ErrorContainer, { children: t('dyn_wallet_list.configuration_mismatch') })), wallets.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, usingMultiWallet: multiWallet, onResetSearchValue: () => handleFilterValueChange('') }, `${wallet.key}_${index}`))))] })), isSearchEnabled && !filterValue && projectSettings && (jsx(SearchNotFoundMessage, {}))] }) }), noDefaultFooter && (jsx("div", { className: classNames('wallet-list__tiny-footer', {
85
87
  'wallet-list__tiny-footer--hidden': footerIsVisible,
86
88
  }), "data-testid": 'wallet-list-tiny-footer' }))] }));
87
89
  };
@@ -36,11 +36,11 @@ require('../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsS
36
36
  require('../../../context/ErrorContext/ErrorContext.cjs');
37
37
  require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
38
38
  require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
39
+ require('react-i18next');
39
40
  require('../../../components/OverlayCard/OverlayCard.context.cjs');
40
41
  require('../../../context/FooterAnimationContext/index.cjs');
41
42
  require('../../../context/MockContext/MockContext.cjs');
42
43
  require('../../../context/QrCodeContext/QrCodeContext.cjs');
43
- require('react-i18next');
44
44
  var Badge = require('../../../components/Badge/Badge.cjs');
45
45
  var isWalletGroup = require('../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.cjs');
46
46
  var WalletGroupContext = require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
@@ -32,11 +32,11 @@ import '../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSe
32
32
  import '../../../context/ErrorContext/ErrorContext.js';
33
33
  import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
34
34
  import '../../../context/AccountExistsContext/AccountExistsContext.js';
35
+ import 'react-i18next';
35
36
  import '../../../components/OverlayCard/OverlayCard.context.js';
36
37
  import '../../../context/FooterAnimationContext/index.js';
37
38
  import '../../../context/MockContext/MockContext.js';
38
39
  import '../../../context/QrCodeContext/QrCodeContext.js';
39
- import 'react-i18next';
40
40
  import { Badge } from '../../../components/Badge/Badge.js';
41
41
  import { isWalletGroup } from '../../../utils/functions/walletListBuilder/utils/isWalletGroup/isWalletGroup.js';
42
42
  import { useWalletGroupContext } from '../../../context/WalletGroupContext/WalletGroupContext.js';
@@ -33,11 +33,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
33
33
  require('../../context/ErrorContext/ErrorContext.cjs');
34
34
  require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
35
35
  require('../../context/AccountExistsContext/AccountExistsContext.cjs');
36
+ require('react-i18next');
36
37
  require('../../components/OverlayCard/OverlayCard.context.cjs');
37
38
  require('../../context/FooterAnimationContext/index.cjs');
38
39
  require('../../context/MockContext/MockContext.cjs');
39
40
  require('../../context/QrCodeContext/QrCodeContext.cjs');
40
- require('react-i18next');
41
41
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
42
42
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
43
43
  var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
@@ -29,11 +29,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
29
29
  import '../../context/ErrorContext/ErrorContext.js';
30
30
  import '../../context/AccessDeniedContext/AccessDeniedContext.js';
31
31
  import '../../context/AccountExistsContext/AccountExistsContext.js';
32
+ import 'react-i18next';
32
33
  import '../../components/OverlayCard/OverlayCard.context.js';
33
34
  import '../../context/FooterAnimationContext/index.js';
34
35
  import '../../context/MockContext/MockContext.js';
35
36
  import '../../context/QrCodeContext/QrCodeContext.js';
36
- import 'react-i18next';
37
37
  import '../../context/WalletGroupContext/WalletGroupContext.js';
38
38
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
39
39
  import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
@@ -34,11 +34,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
34
34
  require('../../context/ErrorContext/ErrorContext.cjs');
35
35
  require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
36
36
  require('../../context/AccountExistsContext/AccountExistsContext.cjs');
37
+ require('react-i18next');
37
38
  require('../../components/OverlayCard/OverlayCard.context.cjs');
38
39
  require('../../context/FooterAnimationContext/index.cjs');
39
40
  require('../../context/MockContext/MockContext.cjs');
40
41
  require('../../context/QrCodeContext/QrCodeContext.cjs');
41
- require('react-i18next');
42
42
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
43
43
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
44
44
  var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
@@ -30,11 +30,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
30
30
  import '../../context/ErrorContext/ErrorContext.js';
31
31
  import '../../context/AccessDeniedContext/AccessDeniedContext.js';
32
32
  import '../../context/AccountExistsContext/AccountExistsContext.js';
33
+ import 'react-i18next';
33
34
  import '../../components/OverlayCard/OverlayCard.context.js';
34
35
  import '../../context/FooterAnimationContext/index.js';
35
36
  import '../../context/MockContext/MockContext.js';
36
37
  import '../../context/QrCodeContext/QrCodeContext.js';
37
- import 'react-i18next';
38
38
  import '../../context/WalletGroupContext/WalletGroupContext.js';
39
39
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
40
40
  import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';