@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
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _tslib = require('../../../../_virtual/_tslib.cjs');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
+ var reactI18next = require('react-i18next');
7
8
  var utils = require('@dynamic-labs/utils');
8
9
  var walletBook = require('@dynamic-labs/wallet-book');
9
10
  var iconic = require('@dynamic-labs/iconic');
@@ -42,7 +43,6 @@ require('../../components/OverlayCard/OverlayCard.context.cjs');
42
43
  require('../../context/FooterAnimationContext/index.cjs');
43
44
  require('../../context/MockContext/MockContext.cjs');
44
45
  require('../../context/QrCodeContext/QrCodeContext.cjs');
45
- require('react-i18next');
46
46
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
47
47
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
48
48
  require('../../context/CaptchaContext/CaptchaContext.cjs');
@@ -67,6 +67,7 @@ require('../../components/MenuList/Dropdown/Dropdown.cjs');
67
67
 
68
68
  const MergeUserAccountsView = () => {
69
69
  const { environmentId, setUser, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, primaryWallet, user, authToken, onboardingOnlyJwt, } = useInternalDynamicContext.useInternalDynamicContext();
70
+ const { t } = reactI18next.useTranslation();
70
71
  const { setError } = ErrorContext.useErrorContext();
71
72
  const { setView, goToInitialView } = ViewContext.useViewContext();
72
73
  const { email } = EmailVerificationContext.useEmailVerificationContext();
@@ -115,9 +116,9 @@ const MergeUserAccountsView = () => {
115
116
  breakpoint: 4,
116
117
  cutEnd: 1,
117
118
  cutStart: 2,
118
- }) })] })] }), jsxRuntime.jsx(Typography.Typography, { weight: 'regular', variant: 'title', className: 'merge-user-accounts__text merge-user-accounts__text__header', children: "Would you like to link this wallet to this existing account?" }), jsxRuntime.jsxs(Typography.Typography, { weight: 'medium', variant: 'body_normal', className: 'merge-user-accounts__text merge-user-accounts__text__body', children: ["An account already exists that uses", ' ', jsxRuntime.jsx("span", { className: 'merge-user-accounts__text--bold', children: shortenEmail.shortenEmail(email, {
119
+ }) })] })] }), jsxRuntime.jsx(Typography.Typography, { weight: 'regular', variant: 'title', className: 'merge-user-accounts__text merge-user-accounts__text__header', children: t('dyn_merge_user_accounts.title') }), jsxRuntime.jsxs(Typography.Typography, { weight: 'medium', variant: 'body_normal', className: 'merge-user-accounts__text merge-user-accounts__text__body', children: [t('dyn_merge_user_accounts.existing_account'), ' ', jsxRuntime.jsx("span", { className: 'merge-user-accounts__text--bold', children: shortenEmail.shortenEmail(email, {
119
120
  breakpoint: 14,
120
- }) }), ' ', "email."] }), jsxRuntime.jsxs("div", { className: 'merge-user-accounts__buttons', children: [jsxRuntime.jsx(Button.Button, { className: 'merge-user-accounts__buttons__button', onClick: handleMergeUserAccounts, buttonVariant: 'primary', buttonPadding: 'large', children: "Yes, link to existing account" }), jsxRuntime.jsx(Button.Button, { className: 'merge-user-accounts__buttons__button', onClick: handleUseDifferentEmail, buttonVariant: 'secondary', buttonPadding: 'large', children: "No, I'll use a different email" })] })] }));
121
+ }) }), ' ', t('dyn_merge_user_accounts.existing_account_trail')] }), jsxRuntime.jsxs("div", { className: 'merge-user-accounts__buttons', children: [jsxRuntime.jsx(Button.Button, { className: 'merge-user-accounts__buttons__button', onClick: handleMergeUserAccounts, buttonVariant: 'primary', buttonPadding: 'large', children: t('dyn_merge_user_accounts.confirm_button') }), jsxRuntime.jsx(Button.Button, { className: 'merge-user-accounts__buttons__button', onClick: handleUseDifferentEmail, buttonVariant: 'secondary', buttonPadding: 'large', children: t('dyn_merge_user_accounts.cancel_button') })] })] }));
121
122
  };
122
123
 
123
124
  exports.MergeUserAccountsView = MergeUserAccountsView;
@@ -1,5 +1,6 @@
1
1
  import { __awaiter } from '../../../../_virtual/_tslib.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { useTranslation } from 'react-i18next';
3
4
  import { DynamicError } from '@dynamic-labs/utils';
4
5
  import { WalletIcon } from '@dynamic-labs/wallet-book';
5
6
  import { UserProfileIcon } from '@dynamic-labs/iconic';
@@ -38,7 +39,6 @@ import '../../components/OverlayCard/OverlayCard.context.js';
38
39
  import '../../context/FooterAnimationContext/index.js';
39
40
  import '../../context/MockContext/MockContext.js';
40
41
  import '../../context/QrCodeContext/QrCodeContext.js';
41
- import 'react-i18next';
42
42
  import '../../context/WalletGroupContext/WalletGroupContext.js';
43
43
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
44
44
  import '../../context/CaptchaContext/CaptchaContext.js';
@@ -63,6 +63,7 @@ import '../../components/MenuList/Dropdown/Dropdown.js';
63
63
 
64
64
  const MergeUserAccountsView = () => {
65
65
  const { environmentId, setUser, setOnboardingOnlyJwt, setShowAuthFlow, setCallback, primaryWallet, user, authToken, onboardingOnlyJwt, } = useInternalDynamicContext();
66
+ const { t } = useTranslation();
66
67
  const { setError } = useErrorContext();
67
68
  const { setView, goToInitialView } = useViewContext();
68
69
  const { email } = useEmailVerificationContext();
@@ -111,9 +112,9 @@ const MergeUserAccountsView = () => {
111
112
  breakpoint: 4,
112
113
  cutEnd: 1,
113
114
  cutStart: 2,
114
- }) })] })] }), jsx(Typography, { weight: 'regular', variant: 'title', className: 'merge-user-accounts__text merge-user-accounts__text__header', children: "Would you like to link this wallet to this existing account?" }), jsxs(Typography, { weight: 'medium', variant: 'body_normal', className: 'merge-user-accounts__text merge-user-accounts__text__body', children: ["An account already exists that uses", ' ', jsx("span", { className: 'merge-user-accounts__text--bold', children: shortenEmail(email, {
115
+ }) })] })] }), jsx(Typography, { weight: 'regular', variant: 'title', className: 'merge-user-accounts__text merge-user-accounts__text__header', children: t('dyn_merge_user_accounts.title') }), jsxs(Typography, { weight: 'medium', variant: 'body_normal', className: 'merge-user-accounts__text merge-user-accounts__text__body', children: [t('dyn_merge_user_accounts.existing_account'), ' ', jsx("span", { className: 'merge-user-accounts__text--bold', children: shortenEmail(email, {
115
116
  breakpoint: 14,
116
- }) }), ' ', "email."] }), jsxs("div", { className: 'merge-user-accounts__buttons', children: [jsx(Button, { className: 'merge-user-accounts__buttons__button', onClick: handleMergeUserAccounts, buttonVariant: 'primary', buttonPadding: 'large', children: "Yes, link to existing account" }), jsx(Button, { className: 'merge-user-accounts__buttons__button', onClick: handleUseDifferentEmail, buttonVariant: 'secondary', buttonPadding: 'large', children: "No, I'll use a different email" })] })] }));
117
+ }) }), ' ', t('dyn_merge_user_accounts.existing_account_trail')] }), jsxs("div", { className: 'merge-user-accounts__buttons', children: [jsx(Button, { className: 'merge-user-accounts__buttons__button', onClick: handleMergeUserAccounts, buttonVariant: 'primary', buttonPadding: 'large', children: t('dyn_merge_user_accounts.confirm_button') }), jsx(Button, { className: 'merge-user-accounts__buttons__button', onClick: handleUseDifferentEmail, buttonVariant: 'secondary', buttonPadding: 'large', children: t('dyn_merge_user_accounts.cancel_button') })] })] }));
117
118
  };
118
119
 
119
120
  export { MergeUserAccountsView };
@@ -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 iconic = require('@dynamic-labs/iconic');
8
9
  var Typography = require('../../components/Typography/Typography.cjs');
9
10
  require('@dynamic-labs/sdk-api');
@@ -38,7 +39,6 @@ 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
  require('../../context/CaptchaContext/CaptchaContext.cjs');
@@ -67,6 +67,7 @@ var useNoAccessText = require('./useNoAccessText.cjs');
67
67
 
68
68
  const NoAccess = () => {
69
69
  const { deniedAddress, setDeniedAddress, setDeniedOauthProvider } = AccessDeniedContext.useAccessDeniedContext();
70
+ const { t } = reactI18next.useTranslation();
70
71
  const { selectedWalletConnector: walletConnector, socialMediaIconUrl, notInTheListImageUrl, onboardingOnlyJwt, accessDeniedButton, } = useInternalDynamicContext.useInternalDynamicContext();
71
72
  const { email } = EmailVerificationContext.useEmailVerificationContext();
72
73
  const { goToInitialView } = ViewContext.useViewContext();
@@ -92,7 +93,7 @@ const NoAccess = () => {
92
93
  const emailOrAddress = email !== null && email !== void 0 ? email : formattedAddress;
93
94
  const showNoInTheListImage = Boolean(notInTheListImageUrl) && (isAccessListView || isGateBlockedView);
94
95
  const showSocialMediaIcon = SocialMediaIcon && (isAccessListView || isGateBlockedView);
95
- return (jsxRuntime.jsxs("div", { className: 'wallet-no-access__container', children: [showNoInTheListImage && (jsxRuntime.jsx("img", { src: notInTheListImageUrl, alt: 'user is not in the list', className: 'wallet-no-access__image' })), jsxRuntime.jsxs("div", { className: 'wallet-no-access__main', children: [jsxRuntime.jsxs("div", { className: 'wallet-no-access__user-info-container', children: [Icon, jsxRuntime.jsxs("div", { "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container', children: [walletConnector && (jsxRuntime.jsx(StatusDot.StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address', children: emailOrAddress })] })] }), jsxRuntime.jsxs("div", { className: 'wallet-no-access__content', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary', children: title }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary', children: subtitle })] }), jsxRuntime.jsx(Button.Button, { onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonPadding: 'large', children: buttonTitle }), _socialMediaUrl && _socialMediaLinkText && (jsxRuntime.jsxs("div", { className: 'wallet-no-access__social-info-container', children: [jsxRuntime.jsxs("a", { href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'button_primary', color: 'primary', children: _socialMediaLinkText }), showSocialMediaIcon && (jsxRuntime.jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
96
+ return (jsxRuntime.jsxs("div", { className: 'wallet-no-access__container', children: [showNoInTheListImage && (jsxRuntime.jsx("img", { src: notInTheListImageUrl, alt: t('dyn_no_access.not_in_the_list_image_alt'), className: 'wallet-no-access__image' })), jsxRuntime.jsxs("div", { className: 'wallet-no-access__main', children: [jsxRuntime.jsxs("div", { className: 'wallet-no-access__user-info-container', children: [Icon, jsxRuntime.jsxs("div", { "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container', children: [walletConnector && (jsxRuntime.jsx(StatusDot.StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address', children: emailOrAddress })] })] }), jsxRuntime.jsxs("div", { className: 'wallet-no-access__content', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary', children: title }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary', children: subtitle })] }), jsxRuntime.jsx(Button.Button, { onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonPadding: 'large', children: buttonTitle }), _socialMediaUrl && _socialMediaLinkText && (jsxRuntime.jsxs("div", { className: 'wallet-no-access__social-info-container', children: [jsxRuntime.jsxs("a", { href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'button_primary', color: 'primary', children: _socialMediaLinkText }), showSocialMediaIcon && (jsxRuntime.jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
96
97
  height: pixelToRem.pixelToRem(24),
97
98
  width: pixelToRem.pixelToRem(24),
98
99
  } }))] }), typeof socialMediaIconUrl === 'string' && (jsxRuntime.jsx("img", { alt: 'social media', src: socialMediaIconUrl, style: {
@@ -1,5 +1,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useMemo } from 'react';
3
+ import { useTranslation } from 'react-i18next';
3
4
  import { SignInWithEmailIcon } from '@dynamic-labs/iconic';
4
5
  import { Typography } from '../../components/Typography/Typography.js';
5
6
  import '@dynamic-labs/sdk-api';
@@ -34,7 +35,6 @@ 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 '../../context/CaptchaContext/CaptchaContext.js';
@@ -63,6 +63,7 @@ import { useNoAccessText } from './useNoAccessText.js';
63
63
 
64
64
  const NoAccess = () => {
65
65
  const { deniedAddress, setDeniedAddress, setDeniedOauthProvider } = useAccessDeniedContext();
66
+ const { t } = useTranslation();
66
67
  const { selectedWalletConnector: walletConnector, socialMediaIconUrl, notInTheListImageUrl, onboardingOnlyJwt, accessDeniedButton, } = useInternalDynamicContext();
67
68
  const { email } = useEmailVerificationContext();
68
69
  const { goToInitialView } = useViewContext();
@@ -88,7 +89,7 @@ const NoAccess = () => {
88
89
  const emailOrAddress = email !== null && email !== void 0 ? email : formattedAddress;
89
90
  const showNoInTheListImage = Boolean(notInTheListImageUrl) && (isAccessListView || isGateBlockedView);
90
91
  const showSocialMediaIcon = SocialMediaIcon && (isAccessListView || isGateBlockedView);
91
- return (jsxs("div", { className: 'wallet-no-access__container', children: [showNoInTheListImage && (jsx("img", { src: notInTheListImageUrl, alt: 'user is not in the list', className: 'wallet-no-access__image' })), jsxs("div", { className: 'wallet-no-access__main', children: [jsxs("div", { className: 'wallet-no-access__user-info-container', children: [Icon, jsxs("div", { "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container', children: [walletConnector && (jsx(StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address', children: emailOrAddress })] })] }), jsxs("div", { className: 'wallet-no-access__content', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary', children: title }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary', children: subtitle })] }), jsx(Button, { onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonPadding: 'large', children: buttonTitle }), _socialMediaUrl && _socialMediaLinkText && (jsxs("div", { className: 'wallet-no-access__social-info-container', children: [jsxs("a", { href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link', children: [jsx(Typography, { variant: 'button_primary', color: 'primary', children: _socialMediaLinkText }), showSocialMediaIcon && (jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
92
+ return (jsxs("div", { className: 'wallet-no-access__container', children: [showNoInTheListImage && (jsx("img", { src: notInTheListImageUrl, alt: t('dyn_no_access.not_in_the_list_image_alt'), className: 'wallet-no-access__image' })), jsxs("div", { className: 'wallet-no-access__main', children: [jsxs("div", { className: 'wallet-no-access__user-info-container', children: [Icon, jsxs("div", { "data-testid": 'walletAddress', className: 'wallet-no-access__wallet-address-container', children: [walletConnector && (jsx(StatusDot, { variant: 'red', containerClassName: 'user-info__status-dot' })), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'wallet-no-access__wallet-address', children: emailOrAddress })] })] }), jsxs("div", { className: 'wallet-no-access__content', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'wallet-no-access__content--primary', children: title }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', className: 'wallet-no-access__content--secondary', children: subtitle })] }), jsx(Button, { onClick: buttonAction, className: 'wallet-no-access__button--primary', expanded: true, buttonPadding: 'large', children: buttonTitle }), _socialMediaUrl && _socialMediaLinkText && (jsxs("div", { className: 'wallet-no-access__social-info-container', children: [jsxs("a", { href: _socialMediaUrl, className: 'wallet-no-access__waitlist-link', children: [jsx(Typography, { variant: 'button_primary', color: 'primary', children: _socialMediaLinkText }), showSocialMediaIcon && (jsx(SocialMediaIcon, { className: 'wallet-no-access__social-icon', style: {
92
93
  height: pixelToRem(24),
93
94
  width: pixelToRem(24),
94
95
  } }))] }), typeof socialMediaIconUrl === 'string' && (jsx("img", { alt: 'social media', src: socialMediaIconUrl, style: {
@@ -2,59 +2,61 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var reactI18next = require('react-i18next');
5
6
  var useInternalDynamicContext = require('../../context/DynamicContext/useInternalDynamicContext.cjs');
6
7
  var ViewContext = require('../../context/ViewContext/ViewContext.cjs');
7
8
 
8
9
  const useNoAccessText = () => {
9
10
  const { socialMediaLinkText, socialMediaUrl, accessDeniedMessagePrimary, accessDeniedMessageSecondary, } = useInternalDynamicContext.useInternalDynamicContext();
10
11
  const { view } = ViewContext.useViewContext();
12
+ const { t } = reactI18next.useTranslation();
11
13
  const isChainalysisView = view === 'chainalysis-blocked-wallet';
12
14
  const isGateBlockedView = view === 'gate-blocked-wallet';
13
15
  const isAccessListView = view === 'no-access';
14
16
  const getSocialMediaLinkText = () => {
15
17
  if (isChainalysisView) {
16
- return textData.chainalysis._socialMediaLinkText;
18
+ return t(textData.chainalysis._socialMediaLinkText);
17
19
  }
18
20
  if (isGateBlockedView) {
19
- return textData.gate._socialMediaLinkText;
21
+ return undefined;
20
22
  }
21
23
  return socialMediaLinkText;
22
24
  };
23
25
  const getSocialMediaUrl = () => {
24
26
  if (isChainalysisView) {
25
- return textData.chainalysis._socialMediaUrl;
27
+ return t(textData.chainalysis._socialMediaUrl);
26
28
  }
27
29
  if (isGateBlockedView) {
28
- return textData.gate._socialMediaUrl;
30
+ return undefined;
29
31
  }
30
32
  return socialMediaUrl;
31
33
  };
32
34
  const getTitle = () => {
33
35
  if (isChainalysisView) {
34
- return textData.chainalysis.title;
36
+ return t(textData.chainalysis.title);
35
37
  }
36
38
  if (isGateBlockedView) {
37
- return textData.gate.title;
39
+ return t(textData.gate.title);
38
40
  }
39
- return accessDeniedMessagePrimary || textData.default.title;
41
+ return accessDeniedMessagePrimary || t(textData.default.title);
40
42
  };
41
43
  const getSubtitle = () => {
42
44
  if (isChainalysisView) {
43
- return textData.chainalysis.subtitle;
45
+ return t(textData.chainalysis.subtitle);
44
46
  }
45
47
  if (isGateBlockedView) {
46
- return textData.gate.subtitle;
48
+ return t(textData.gate.subtitle);
47
49
  }
48
- return accessDeniedMessageSecondary || textData.default.subtitle;
50
+ return accessDeniedMessageSecondary || t(textData.default.subtitle);
49
51
  };
50
52
  const getButtonTitle = () => {
51
53
  if (isChainalysisView) {
52
- return textData.chainalysis.buttonTitle;
54
+ return t(textData.chainalysis.buttonTitle);
53
55
  }
54
56
  if (isGateBlockedView) {
55
- return textData.gate.buttonTitle;
57
+ return t(textData.gate.buttonTitle);
56
58
  }
57
- return textData.default.buttonTitle;
59
+ return t(textData.default.buttonTitle);
58
60
  };
59
61
  return {
60
62
  _socialMediaLinkText: getSocialMediaLinkText(),
@@ -69,23 +71,23 @@ const useNoAccessText = () => {
69
71
  };
70
72
  const textData = {
71
73
  chainalysis: {
72
- _socialMediaLinkText: 'Why am I seeing this message?',
73
- _socialMediaUrl: 'https://docs.dynamic.xyz/docs',
74
- buttonTitle: 'Try another method',
75
- subtitle: 'This wallet has been correlated to illicit activity and cannot access this site.',
76
- title: 'This address seems corrupted.',
74
+ _socialMediaLinkText: 'dyn_no_access.chainalysis.social_media_link_text',
75
+ _socialMediaUrl: 'dyn_no_access.chainalysis.social_media_link_url',
76
+ buttonTitle: 'dyn_no_access.chainalysis.button_text',
77
+ subtitle: 'dyn_no_access.chainalysis.description',
78
+ title: 'dyn_no_access.chainalysis.title',
77
79
  },
78
80
  default: {
79
- buttonTitle: 'Try another method',
80
- subtitle: "We couldn't find your wallet address or email on our allow list of customers.",
81
- title: 'Access denied',
81
+ buttonTitle: 'dyn_no_access.default.button_text',
82
+ subtitle: 'dyn_no_access.default.description',
83
+ title: 'dyn_no_access.default.title',
82
84
  },
83
85
  gate: {
84
86
  _socialMediaLinkText: undefined,
85
87
  _socialMediaUrl: undefined,
86
- buttonTitle: 'Try a different wallet',
87
- subtitle: 'A NFT or a token is required to access this site.',
88
- title: 'You cannot access the site',
88
+ buttonTitle: 'dyn_no_access.gate.button_text',
89
+ subtitle: 'dyn_no_access.gate.description',
90
+ title: 'dyn_no_access.gate.title',
89
91
  },
90
92
  };
91
93
 
@@ -1,56 +1,58 @@
1
+ import { useTranslation } from 'react-i18next';
1
2
  import { useInternalDynamicContext } from '../../context/DynamicContext/useInternalDynamicContext.js';
2
3
  import { useViewContext } from '../../context/ViewContext/ViewContext.js';
3
4
 
4
5
  const useNoAccessText = () => {
5
6
  const { socialMediaLinkText, socialMediaUrl, accessDeniedMessagePrimary, accessDeniedMessageSecondary, } = useInternalDynamicContext();
6
7
  const { view } = useViewContext();
8
+ const { t } = useTranslation();
7
9
  const isChainalysisView = view === 'chainalysis-blocked-wallet';
8
10
  const isGateBlockedView = view === 'gate-blocked-wallet';
9
11
  const isAccessListView = view === 'no-access';
10
12
  const getSocialMediaLinkText = () => {
11
13
  if (isChainalysisView) {
12
- return textData.chainalysis._socialMediaLinkText;
14
+ return t(textData.chainalysis._socialMediaLinkText);
13
15
  }
14
16
  if (isGateBlockedView) {
15
- return textData.gate._socialMediaLinkText;
17
+ return undefined;
16
18
  }
17
19
  return socialMediaLinkText;
18
20
  };
19
21
  const getSocialMediaUrl = () => {
20
22
  if (isChainalysisView) {
21
- return textData.chainalysis._socialMediaUrl;
23
+ return t(textData.chainalysis._socialMediaUrl);
22
24
  }
23
25
  if (isGateBlockedView) {
24
- return textData.gate._socialMediaUrl;
26
+ return undefined;
25
27
  }
26
28
  return socialMediaUrl;
27
29
  };
28
30
  const getTitle = () => {
29
31
  if (isChainalysisView) {
30
- return textData.chainalysis.title;
32
+ return t(textData.chainalysis.title);
31
33
  }
32
34
  if (isGateBlockedView) {
33
- return textData.gate.title;
35
+ return t(textData.gate.title);
34
36
  }
35
- return accessDeniedMessagePrimary || textData.default.title;
37
+ return accessDeniedMessagePrimary || t(textData.default.title);
36
38
  };
37
39
  const getSubtitle = () => {
38
40
  if (isChainalysisView) {
39
- return textData.chainalysis.subtitle;
41
+ return t(textData.chainalysis.subtitle);
40
42
  }
41
43
  if (isGateBlockedView) {
42
- return textData.gate.subtitle;
44
+ return t(textData.gate.subtitle);
43
45
  }
44
- return accessDeniedMessageSecondary || textData.default.subtitle;
46
+ return accessDeniedMessageSecondary || t(textData.default.subtitle);
45
47
  };
46
48
  const getButtonTitle = () => {
47
49
  if (isChainalysisView) {
48
- return textData.chainalysis.buttonTitle;
50
+ return t(textData.chainalysis.buttonTitle);
49
51
  }
50
52
  if (isGateBlockedView) {
51
- return textData.gate.buttonTitle;
53
+ return t(textData.gate.buttonTitle);
52
54
  }
53
- return textData.default.buttonTitle;
55
+ return t(textData.default.buttonTitle);
54
56
  };
55
57
  return {
56
58
  _socialMediaLinkText: getSocialMediaLinkText(),
@@ -65,23 +67,23 @@ const useNoAccessText = () => {
65
67
  };
66
68
  const textData = {
67
69
  chainalysis: {
68
- _socialMediaLinkText: 'Why am I seeing this message?',
69
- _socialMediaUrl: 'https://docs.dynamic.xyz/docs',
70
- buttonTitle: 'Try another method',
71
- subtitle: 'This wallet has been correlated to illicit activity and cannot access this site.',
72
- title: 'This address seems corrupted.',
70
+ _socialMediaLinkText: 'dyn_no_access.chainalysis.social_media_link_text',
71
+ _socialMediaUrl: 'dyn_no_access.chainalysis.social_media_link_url',
72
+ buttonTitle: 'dyn_no_access.chainalysis.button_text',
73
+ subtitle: 'dyn_no_access.chainalysis.description',
74
+ title: 'dyn_no_access.chainalysis.title',
73
75
  },
74
76
  default: {
75
- buttonTitle: 'Try another method',
76
- subtitle: "We couldn't find your wallet address or email on our allow list of customers.",
77
- title: 'Access denied',
77
+ buttonTitle: 'dyn_no_access.default.button_text',
78
+ subtitle: 'dyn_no_access.default.description',
79
+ title: 'dyn_no_access.default.title',
78
80
  },
79
81
  gate: {
80
82
  _socialMediaLinkText: undefined,
81
83
  _socialMediaUrl: undefined,
82
- buttonTitle: 'Try a different wallet',
83
- subtitle: 'A NFT or a token is required to access this site.',
84
- title: 'You cannot access the site',
84
+ buttonTitle: 'dyn_no_access.gate.button_text',
85
+ subtitle: 'dyn_no_access.gate.description',
86
+ title: 'dyn_no_access.gate.title',
85
87
  },
86
88
  };
87
89
 
@@ -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
  require('../../context/CaptchaContext/CaptchaContext.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 '../../context/CaptchaContext/CaptchaContext.js';
@@ -31,11 +31,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
31
31
  require('../../context/ErrorContext/ErrorContext.cjs');
32
32
  require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
33
33
  require('../../context/AccountExistsContext/AccountExistsContext.cjs');
34
+ require('react-i18next');
34
35
  require('../../components/OverlayCard/OverlayCard.context.cjs');
35
36
  require('../../context/FooterAnimationContext/index.cjs');
36
37
  require('../../context/MockContext/MockContext.cjs');
37
38
  require('../../context/QrCodeContext/QrCodeContext.cjs');
38
- require('react-i18next');
39
39
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
40
40
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
41
41
  require('../../context/CaptchaContext/CaptchaContext.cjs');
@@ -27,11 +27,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
27
27
  import '../../context/ErrorContext/ErrorContext.js';
28
28
  import '../../context/AccessDeniedContext/AccessDeniedContext.js';
29
29
  import '../../context/AccountExistsContext/AccountExistsContext.js';
30
+ import 'react-i18next';
30
31
  import '../../components/OverlayCard/OverlayCard.context.js';
31
32
  import '../../context/FooterAnimationContext/index.js';
32
33
  import '../../context/MockContext/MockContext.js';
33
34
  import '../../context/QrCodeContext/QrCodeContext.js';
34
- import 'react-i18next';
35
35
  import '../../context/WalletGroupContext/WalletGroupContext.js';
36
36
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
37
37
  import '../../context/CaptchaContext/CaptchaContext.js';
@@ -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, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
@@ -35,11 +35,11 @@ require('../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetu
35
35
  require('../../context/ErrorContext/ErrorContext.cjs');
36
36
  require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
37
37
  require('../../context/AccountExistsContext/AccountExistsContext.cjs');
38
+ require('react-i18next');
38
39
  require('../../components/OverlayCard/OverlayCard.context.cjs');
39
40
  require('../../context/FooterAnimationContext/index.cjs');
40
41
  require('../../context/MockContext/MockContext.cjs');
41
42
  require('../../context/QrCodeContext/QrCodeContext.cjs');
42
- require('react-i18next');
43
43
  require('../../context/WalletGroupContext/WalletGroupContext.cjs');
44
44
  require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
45
45
  var IconWithSpinner = require('../../components/IconWithSpinner/IconWithSpinner.cjs');
@@ -31,11 +31,11 @@ import '../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSetup
31
31
  import '../../context/ErrorContext/ErrorContext.js';
32
32
  import '../../context/AccessDeniedContext/AccessDeniedContext.js';
33
33
  import '../../context/AccountExistsContext/AccountExistsContext.js';
34
+ import 'react-i18next';
34
35
  import '../../components/OverlayCard/OverlayCard.context.js';
35
36
  import '../../context/FooterAnimationContext/index.js';
36
37
  import '../../context/MockContext/MockContext.js';
37
38
  import '../../context/QrCodeContext/QrCodeContext.js';
38
- import 'react-i18next';
39
39
  import '../../context/WalletGroupContext/WalletGroupContext.js';
40
40
  import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
41
41
  import { IconWithSpinner, iconRatio } from '../../components/IconWithSpinner/IconWithSpinner.js';
@@ -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/SlideInUpTransition.cjs
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/SlideInUpTransition.js';
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';
@@ -37,11 +37,11 @@ require('../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsS
37
37
  require('../../../context/ErrorContext/ErrorContext.cjs');
38
38
  require('../../../context/AccessDeniedContext/AccessDeniedContext.cjs');
39
39
  require('../../../context/AccountExistsContext/AccountExistsContext.cjs');
40
+ require('react-i18next');
40
41
  require('../../../components/OverlayCard/OverlayCard.context.cjs');
41
42
  require('../../../context/FooterAnimationContext/index.cjs');
42
43
  require('../../../context/MockContext/MockContext.cjs');
43
44
  require('../../../context/QrCodeContext/QrCodeContext.cjs');
44
- require('react-i18next');
45
45
  require('../../../context/WalletGroupContext/WalletGroupContext.cjs');
46
46
  require('../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
47
47
  require('../../../context/CaptchaContext/CaptchaContext.cjs');
@@ -33,11 +33,11 @@ import '../../../utils/hooks/useWallets/utils/verifyMagicIsSetup/verifyMagicIsSe
33
33
  import '../../../context/ErrorContext/ErrorContext.js';
34
34
  import '../../../context/AccessDeniedContext/AccessDeniedContext.js';
35
35
  import '../../../context/AccountExistsContext/AccountExistsContext.js';
36
+ import 'react-i18next';
36
37
  import '../../../components/OverlayCard/OverlayCard.context.js';
37
38
  import '../../../context/FooterAnimationContext/index.js';
38
39
  import '../../../context/MockContext/MockContext.js';
39
40
  import '../../../context/QrCodeContext/QrCodeContext.js';
40
- import 'react-i18next';
41
41
  import '../../../context/WalletGroupContext/WalletGroupContext.js';
42
42
  import '../../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
43
43
  import '../../../context/CaptchaContext/CaptchaContext.js';
@@ -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('react-focus-lock');
32
33
  require('../../components/Transition/ZoomTransition/ZoomTransition.cjs');
@@ -34,7 +35,6 @@ require('../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs
34
35
  require('../../components/Transition/OpacityTransition/OpacityTransition.cjs');
35
36
  require('../../components/IconButton/IconButton.cjs');
36
37
  require('../../components/Alert/Alert.cjs');
37
- require('react-i18next');
38
38
  require('../../components/Popper/Popper/Popper.cjs');
39
39
  require('../../components/Popper/PopperContext/PopperContext.cjs');
40
40
  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 'react-focus-lock';
28
29
  import '../../components/Transition/ZoomTransition/ZoomTransition.js';
@@ -30,7 +31,6 @@ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
30
31
  import '../../components/Transition/OpacityTransition/OpacityTransition.js';
31
32
  import '../../components/IconButton/IconButton.js';
32
33
  import '../../components/Alert/Alert.js';
33
- import 'react-i18next';
34
34
  import '../../components/Popper/Popper/Popper.js';
35
35
  import '../../components/Popper/PopperContext/PopperContext.js';
36
36
  import 'formik';