@dynamic-labs/sdk-react-core 1.0.1 → 1.0.3

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 (208) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/package.cjs +3 -3
  3. package/package.js +3 -3
  4. package/package.json +13 -13
  5. package/src/lib/components/Alert/Alert.types.d.ts +2 -1
  6. package/src/lib/components/Button/Button.cjs +2 -2
  7. package/src/lib/components/Button/Button.d.ts +2 -1
  8. package/src/lib/components/Button/Button.js +2 -2
  9. package/src/lib/components/CopyButton/CopyButton.d.ts +2 -1
  10. package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +2 -2
  11. package/src/lib/components/DynamicConnectButton/DynamicConnectButton.d.ts +3 -2
  12. package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -2
  13. package/src/lib/components/DynamicConnectButton/components/ConnectButton.cjs +1 -1
  14. package/src/lib/components/DynamicConnectButton/components/ConnectButton.d.ts +2 -1
  15. package/src/lib/components/DynamicConnectButton/components/ConnectButton.js +1 -1
  16. package/src/lib/components/ErrorContainer/ErrorContainer.cjs +2 -2
  17. package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +2 -1
  18. package/src/lib/components/ErrorContainer/ErrorContainer.js +2 -2
  19. package/src/lib/components/Input/Input.types.d.ts +2 -1
  20. package/src/lib/components/ListTile/ListTile.cjs +1 -1
  21. package/src/lib/components/ListTile/ListTile.js +1 -1
  22. package/src/lib/components/ListTile/ListTile.types.d.ts +2 -1
  23. package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.cjs +9 -5
  24. package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.d.ts +1 -1
  25. package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.js +9 -5
  26. package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +3 -3
  27. package/src/lib/components/NeedHelpSection/NeedHelpSection.js +3 -3
  28. package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -1
  29. package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -1
  30. package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +7 -6
  31. package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +1 -1
  32. package/src/lib/components/OTPVerificationView/OTPVerificationView.js +7 -6
  33. package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +1 -1
  34. package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +1 -1
  35. package/src/lib/components/Search/Search.cjs +1 -1
  36. package/src/lib/components/Search/Search.d.ts +2 -1
  37. package/src/lib/components/Search/Search.js +1 -1
  38. package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs +2 -2
  39. package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js +2 -2
  40. package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +3 -3
  41. package/src/lib/components/SendBalanceForm/SendBalanceForm.js +3 -3
  42. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
  43. package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
  44. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +1 -1
  45. package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +1 -1
  46. package/src/lib/components/TextButton/TextButton.d.ts +2 -1
  47. package/src/lib/components/Tooltip/Tooltip.cjs +2 -2
  48. package/src/lib/components/Tooltip/Tooltip.d.ts +2 -1
  49. package/src/lib/components/Tooltip/Tooltip.js +2 -2
  50. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +3 -3
  51. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +2 -1
  52. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +3 -3
  53. package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs +1 -1
  54. package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.d.ts +2 -1
  55. package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js +1 -1
  56. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
  57. package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
  58. package/src/lib/components/Typography/Typography.types.d.ts +2 -1
  59. package/src/lib/components/UserProfile/UserProfile.cjs +2 -2
  60. package/src/lib/components/UserProfile/UserProfile.d.ts +1 -0
  61. package/src/lib/components/UserProfile/UserProfile.js +2 -2
  62. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -2
  63. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +3 -2
  64. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -2
  65. package/src/lib/context/DynamicContext/DynamicContext.cjs +3 -2
  66. package/src/lib/context/DynamicContext/DynamicContext.js +3 -2
  67. package/src/lib/data/api.cjs +0 -13
  68. package/src/lib/data/api.d.ts +1 -2
  69. package/src/lib/data/api.js +1 -13
  70. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -1
  71. package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -1
  72. package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -2
  73. package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +2 -2
  74. package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -2
  75. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +1 -1
  76. package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +1 -1
  77. package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +1 -1
  78. package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +1 -1
  79. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +2 -2
  80. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +2 -1
  81. package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +2 -2
  82. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +2 -2
  83. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +2 -1
  84. package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +2 -2
  85. package/src/lib/locale/en/translation.cjs +124 -1
  86. package/src/lib/locale/en/translation.d.ts +124 -1
  87. package/src/lib/locale/en/translation.js +124 -1
  88. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +1 -1
  89. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +1 -1
  90. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -2
  91. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -2
  92. package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +2 -1
  93. package/src/lib/shared/types/index.d.ts +3 -0
  94. package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.cjs +5 -3
  95. package/src/lib/utils/functions/walletListBuilder/utils/groupWalletOptions/groupWalletOptions.js +5 -3
  96. package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +28 -1
  97. package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +28 -1
  98. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +2 -0
  99. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +1 -0
  100. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +2 -0
  101. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +51 -7
  102. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.d.ts +3 -0
  103. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +51 -7
  104. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +3 -0
  105. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +3 -0
  106. package/src/lib/utils/hooks/useProcessNetworkConfigurations/index.d.ts +1 -0
  107. package/src/lib/utils/hooks/{useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs → useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs} +53 -67
  108. package/src/lib/utils/hooks/{useFetchNetworkConfigurations/useFetchNetworkConfigurations.d.ts → useProcessNetworkConfigurations/useProcessNetworkConfigurations.d.ts} +3 -2
  109. package/src/lib/utils/hooks/{useFetchNetworkConfigurations/useFetchNetworkConfigurations.js → useProcessNetworkConfigurations/useProcessNetworkConfigurations.js} +53 -67
  110. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +20 -14
  111. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +20 -14
  112. package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +26 -4
  113. package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +26 -4
  114. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -1
  115. package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -1
  116. package/src/lib/views/AccountExistsView/AccountExistsView.cjs +1 -1
  117. package/src/lib/views/AccountExistsView/AccountExistsView.js +1 -1
  118. package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -1
  119. package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -1
  120. package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +1 -1
  121. package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +1 -1
  122. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +3 -2
  123. package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +3 -2
  124. package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +4 -4
  125. package/src/lib/views/CollectUserDataView/CollectUserDataView.js +4 -4
  126. package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +9 -8
  127. package/src/lib/views/CollectUserDataView/UserDataFields/index.js +9 -8
  128. package/src/lib/views/CollectUserDataView/useFields.cjs +11 -0
  129. package/src/lib/views/CollectUserDataView/useFields.d.ts +11 -0
  130. package/src/lib/views/CollectUserDataView/useFields.js +11 -0
  131. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +3 -3
  132. package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +3 -3
  133. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -1
  134. package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -1
  135. package/src/lib/views/EmailUpdate/EmailUpdate.cjs +2 -2
  136. package/src/lib/views/EmailUpdate/EmailUpdate.js +2 -2
  137. package/src/lib/views/EmailVerification/EmailVerification.cjs +35 -24
  138. package/src/lib/views/EmailVerification/EmailVerification.js +35 -24
  139. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -3
  140. package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -3
  141. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +2 -2
  142. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.d.ts +3 -2
  143. package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +2 -2
  144. package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +1 -1
  145. package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +1 -1
  146. package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -1
  147. package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +1 -1
  148. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +3 -3
  149. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +3 -3
  150. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -2
  151. package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -2
  152. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +3 -1
  153. package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +3 -1
  154. package/src/lib/views/NoAccess/NoAccess.cjs +1 -1
  155. package/src/lib/views/NoAccess/NoAccess.js +1 -1
  156. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +6 -2
  157. package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +6 -2
  158. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +10 -5
  159. package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +10 -5
  160. package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +3 -3
  161. package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +3 -3
  162. package/src/lib/views/PendingConnectView/PendingConnectView.cjs +7 -4
  163. package/src/lib/views/PendingConnectView/PendingConnectView.js +7 -4
  164. package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +8 -5
  165. package/src/lib/views/PendingSignatureView/PendingSignatureView.js +8 -5
  166. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +11 -8
  167. package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +11 -8
  168. package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -1
  169. package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -1
  170. package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +2 -1
  171. package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -1
  172. package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -1
  173. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +4 -3
  174. package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +4 -3
  175. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +8 -6
  176. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +2 -1
  177. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +8 -6
  178. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +1 -1
  179. package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -1
  180. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +1 -1
  181. package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -1
  182. package/src/lib/views/WalletList/WalletList.cjs +6 -9
  183. package/src/lib/views/WalletList/WalletList.js +6 -9
  184. package/src/lib/views/WalletLockedView/WalletLockedView.cjs +3 -2
  185. package/src/lib/views/WalletLockedView/WalletLockedView.js +3 -2
  186. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +4 -3
  187. package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +4 -3
  188. package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -1
  189. package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
  190. package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +1 -1
  191. package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -1
  192. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +1 -1
  193. package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +1 -1
  194. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +5 -3
  195. package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +5 -3
  196. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -2
  197. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.d.ts +3 -2
  198. package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -2
  199. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +1 -1
  200. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +1 -1
  201. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +1 -1
  202. package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +1 -1
  203. package/src/lib/utils/hooks/useFetchNetworkConfigurations/index.d.ts +0 -1
  204. /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/index.d.ts +0 -0
  205. /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/index.d.ts +0 -0
  206. /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.cjs +0 -0
  207. /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.d.ts +0 -0
  208. /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.js +0 -0
@@ -84,11 +84,11 @@ const CollectUserDataView = () => {
84
84
  const evmNetworks = walletConnector.evmNetworks || [];
85
85
  const _isSupportedNetwork = !network || isSupportedNetwork.isSupportedNetwork({ network, walletConnector });
86
86
  const walletAddress = (_a = userProfile === null || userProfile === void 0 ? void 0 : userProfile.verifiedCredentials.find((verifiedCredential) => verifiedCredential.id === userProfile.lastVerifiedCredentialId)) === null || _a === void 0 ? void 0 : _a.address;
87
- return (jsxRuntime.jsxs("div", { className: 'collect-user-data', "data-testid": 'collect-user-data-view', children: [jsxRuntime.jsxs("div", { className: 'collect-user-data__network-container', children: [jsxRuntime.jsxs("div", { className: 'collect-user-data__img-container', children: [(nameService === null || nameService === void 0 ? void 0 : nameService.avatar) ? (jsxRuntime.jsx("img", { src: nameService.avatar, alt: '', className: 'collect-user-data__img collect-user-data__img--rounded' })) : (jsxRuntime.jsx(AuthProviderIcon.AuthProviderIcon, { jwt: onboardingOnlyJwt, iconSize: 28 })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data__wallet-address', children: (nameService === null || nameService === void 0 ? void 0 : nameService.name) || shortenWalletAddress.shortenWalletAddress(walletAddress, 3, 3) })] }), jsxRuntime.jsx(NetworkPicker.NetworkPicker, { currentNetwork: network, evmNetworks: evmNetworks, connector: walletConnector, showNetworkName: true, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, buttonClassName: 'collect-user-data__network-picker-button', mainClassName: 'collect-user-data__network-picker' })] }), onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'collect-user-data__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { withIcon: false, className: 'collect-user-data__error--not-supported', children: t('dyn_collect_user_data.not_supported_network.error_message') })), jsxRuntime.jsxs("div", { className: classNames.classNames('collect-user-data__form', {
87
+ return (jsxRuntime.jsxs("div", { className: 'collect-user-data', "data-testid": 'collect-user-data-view', children: [jsxRuntime.jsxs("div", { className: 'collect-user-data__network-container', children: [jsxRuntime.jsxs("div", { className: 'collect-user-data__img-container', children: [(nameService === null || nameService === void 0 ? void 0 : nameService.avatar) ? (jsxRuntime.jsx("img", { src: nameService.avatar, alt: '', className: 'collect-user-data__img collect-user-data__img--rounded' })) : (jsxRuntime.jsx(AuthProviderIcon.AuthProviderIcon, { jwt: onboardingOnlyJwt, iconSize: 28 })), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data__wallet-address', children: (nameService === null || nameService === void 0 ? void 0 : nameService.name) || shortenWalletAddress.shortenWalletAddress(walletAddress, 3, 3) })] }), jsxRuntime.jsx(NetworkPicker.NetworkPicker, { currentNetwork: network, evmNetworks: evmNetworks, connector: walletConnector, showNetworkName: true, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, buttonClassName: 'collect-user-data__network-picker-button', mainClassName: 'collect-user-data__network-picker' })] }), onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'collect-user-data__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsxRuntime.jsx(ErrorContainer.ErrorContainer, { withIcon: false, className: 'collect-user-data__error--not-supported', copykey: 'dyn_collect_user_data.not_supported_network.error_message', children: t('dyn_collect_user_data.not_supported_network.error_message') })), jsxRuntime.jsxs("div", { className: classNames.classNames('collect-user-data__form', {
88
88
  'collect-user-data__form--error': !_isSupportedNetwork,
89
- }), children: [jsxRuntime.jsx("div", { className: 'collect-user-data__success-icon', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-primary', size: 'large', children: jsxRuntime.jsx(checkConnection.ReactComponent, {}) }) }), jsxRuntime.jsx(OnboardingUserDataForm.OnboardingUserDataForm, { disableSubmit: !_isSupportedNetwork, userProfile: userProfile, children: !_isSupportedNetwork ? (jsxRuntime.jsxs("div", { className: 'collect-user-data__welcome-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'collect-user-data__welcome-title', children: t('dyn_collect_user_data.not_supported_network.title') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_collect_user_data.not_supported_network.description') })] })) : (jsxRuntime.jsxs("div", { className: 'collect-user-data__welcome-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'collect-user-data__welcome-title', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
90
- t('dyn_collect_user_data.greeting', { appName }) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
91
- t('dyn_collect_user_data.description') })] })) }), jsxRuntime.jsx(TextButton.TextButton, { className: 'collect-user-data__log-out', onClick: handleLogOut, children: t('dyn_collect_user_data.log_out_button') })] })] }));
89
+ }), children: [jsxRuntime.jsx("div", { className: 'collect-user-data__success-icon', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-primary', size: 'large', children: jsxRuntime.jsx(checkConnection.ReactComponent, {}) }) }), jsxRuntime.jsx(OnboardingUserDataForm.OnboardingUserDataForm, { disableSubmit: !_isSupportedNetwork, userProfile: userProfile, children: !_isSupportedNetwork ? (jsxRuntime.jsxs("div", { className: 'collect-user-data__welcome-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'collect-user-data__welcome-title', copykey: 'dyn_collect_user_data.not_supported_network.title', children: t('dyn_collect_user_data.not_supported_network.title') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_collect_user_data.not_supported_network.description', children: t('dyn_collect_user_data.not_supported_network.description') })] })) : (jsxRuntime.jsxs("div", { className: 'collect-user-data__welcome-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'collect-user-data__welcome-title', copykey: 'dyn_collect_user_data.greeting', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
90
+ t('dyn_collect_user_data.greeting', { appName }) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_collect_user_data.description', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
91
+ t('dyn_collect_user_data.description') })] })) }), jsxRuntime.jsx(TextButton.TextButton, { className: 'collect-user-data__log-out', onClick: handleLogOut, copykey: 'dyn_collect_user_data.log_out_button', children: t('dyn_collect_user_data.log_out_button') })] })] }));
92
92
  };
93
93
 
94
94
  exports.CollectUserDataView = CollectUserDataView;
@@ -80,11 +80,11 @@ const CollectUserDataView = () => {
80
80
  const evmNetworks = walletConnector.evmNetworks || [];
81
81
  const _isSupportedNetwork = !network || isSupportedNetwork({ network, walletConnector });
82
82
  const walletAddress = (_a = userProfile === null || userProfile === void 0 ? void 0 : userProfile.verifiedCredentials.find((verifiedCredential) => verifiedCredential.id === userProfile.lastVerifiedCredentialId)) === null || _a === void 0 ? void 0 : _a.address;
83
- return (jsxs("div", { className: 'collect-user-data', "data-testid": 'collect-user-data-view', children: [jsxs("div", { className: 'collect-user-data__network-container', children: [jsxs("div", { className: 'collect-user-data__img-container', children: [(nameService === null || nameService === void 0 ? void 0 : nameService.avatar) ? (jsx("img", { src: nameService.avatar, alt: '', className: 'collect-user-data__img collect-user-data__img--rounded' })) : (jsx(AuthProviderIcon, { jwt: onboardingOnlyJwt, iconSize: 28 })), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data__wallet-address', children: (nameService === null || nameService === void 0 ? void 0 : nameService.name) || shortenWalletAddress(walletAddress, 3, 3) })] }), jsx(NetworkPicker, { currentNetwork: network, evmNetworks: evmNetworks, connector: walletConnector, showNetworkName: true, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, buttonClassName: 'collect-user-data__network-picker-button', mainClassName: 'collect-user-data__network-picker' })] }), onboardingImageUrl && (jsx("img", { className: 'collect-user-data__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsx(ErrorContainer, { withIcon: false, className: 'collect-user-data__error--not-supported', children: t('dyn_collect_user_data.not_supported_network.error_message') })), jsxs("div", { className: classNames('collect-user-data__form', {
83
+ return (jsxs("div", { className: 'collect-user-data', "data-testid": 'collect-user-data-view', children: [jsxs("div", { className: 'collect-user-data__network-container', children: [jsxs("div", { className: 'collect-user-data__img-container', children: [(nameService === null || nameService === void 0 ? void 0 : nameService.avatar) ? (jsx("img", { src: nameService.avatar, alt: '', className: 'collect-user-data__img collect-user-data__img--rounded' })) : (jsx(AuthProviderIcon, { jwt: onboardingOnlyJwt, iconSize: 28 })), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data__wallet-address', children: (nameService === null || nameService === void 0 ? void 0 : nameService.name) || shortenWalletAddress(walletAddress, 3, 3) })] }), jsx(NetworkPicker, { currentNetwork: network, evmNetworks: evmNetworks, connector: walletConnector, showNetworkName: true, isNetworkPickerOpen: isNetworkPickerOpen, setIsNetworkPickerOpen: setIsNetworkPickerOpen, buttonClassName: 'collect-user-data__network-picker-button', mainClassName: 'collect-user-data__network-picker' })] }), onboardingImageUrl && (jsx("img", { className: 'collect-user-data__main-img', src: onboardingImageUrl, alt: 'onboarding' })), !_isSupportedNetwork && (jsx(ErrorContainer, { withIcon: false, className: 'collect-user-data__error--not-supported', copykey: 'dyn_collect_user_data.not_supported_network.error_message', children: t('dyn_collect_user_data.not_supported_network.error_message') })), jsxs("div", { className: classNames('collect-user-data__form', {
84
84
  'collect-user-data__form--error': !_isSupportedNetwork,
85
- }), children: [jsx("div", { className: 'collect-user-data__success-icon', children: jsx(Icon, { color: 'text-primary', size: 'large', children: jsx(SvgCheckConnection, {}) }) }), jsx(OnboardingUserDataForm, { disableSubmit: !_isSupportedNetwork, userProfile: userProfile, children: !_isSupportedNetwork ? (jsxs("div", { className: 'collect-user-data__welcome-container', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'collect-user-data__welcome-title', children: t('dyn_collect_user_data.not_supported_network.title') }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_collect_user_data.not_supported_network.description') })] })) : (jsxs("div", { className: 'collect-user-data__welcome-container', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'collect-user-data__welcome-title', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
86
- t('dyn_collect_user_data.greeting', { appName }) }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
87
- t('dyn_collect_user_data.description') })] })) }), jsx(TextButton, { className: 'collect-user-data__log-out', onClick: handleLogOut, children: t('dyn_collect_user_data.log_out_button') })] })] }));
85
+ }), children: [jsx("div", { className: 'collect-user-data__success-icon', children: jsx(Icon, { color: 'text-primary', size: 'large', children: jsx(SvgCheckConnection, {}) }) }), jsx(OnboardingUserDataForm, { disableSubmit: !_isSupportedNetwork, userProfile: userProfile, children: !_isSupportedNetwork ? (jsxs("div", { className: 'collect-user-data__welcome-container', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'collect-user-data__welcome-title', copykey: 'dyn_collect_user_data.not_supported_network.title', children: t('dyn_collect_user_data.not_supported_network.title') }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_collect_user_data.not_supported_network.description', children: t('dyn_collect_user_data.not_supported_network.description') })] })) : (jsxs("div", { className: 'collect-user-data__welcome-container', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'collect-user-data__welcome-title', copykey: 'dyn_collect_user_data.greeting', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
86
+ t('dyn_collect_user_data.greeting', { appName }) }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_collect_user_data.description', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
87
+ t('dyn_collect_user_data.description') })] })) }), jsx(TextButton, { className: 'collect-user-data__log-out', onClick: handleLogOut, copykey: 'dyn_collect_user_data.log_out_button', children: t('dyn_collect_user_data.log_out_button') })] })] }));
88
88
  };
89
89
 
90
90
  export { CollectUserDataView };
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var formik = require('formik');
7
+ var reactI18next = require('react-i18next');
7
8
  require('react');
8
9
  require('@dynamic-labs/utils');
9
10
  require('../../../context/DynamicContext/DynamicContext.cjs');
@@ -35,7 +36,6 @@ require('../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.c
35
36
  require('../../../context/UserFieldEditorContext/UserFieldEditorContext.cjs');
36
37
  require('@dynamic-labs/rpc-providers');
37
38
  require('../../../context/UserWalletsContext/UserWalletsContext.cjs');
38
- require('react-i18next');
39
39
  require('../../../components/Transition/ZoomTransition/ZoomTransition.cjs');
40
40
  require('../../../components/Transition/SlideInUpTransition/SlideInUpTransition.cjs');
41
41
  require('../../../components/Transition/OpacityTransition/OpacityTransition.cjs');
@@ -68,25 +68,26 @@ var Select = require('../../../components/Select/Select.cjs');
68
68
 
69
69
  const UserDataFields = ({ errors, policiesConsentInnerComponentArray, fields, touched, }) => {
70
70
  const { fieldsConfig } = useFields.useFields();
71
+ const { t } = reactI18next.useTranslation();
71
72
  return (jsxRuntime.jsx("div", { className: 'user-data-fields__fields-column', children: fields === null || fields === void 0 ? void 0 : fields.map(({ name, required, enabled }) => {
72
- const { label, type } = index.getValueByKey(fieldsConfig, name);
73
+ const { label, type, key } = index.getValueByKey(fieldsConfig, name);
73
74
  if (name === 'tShirtSize') {
74
- return (jsxRuntime.jsx(formik.Field, { as: Select.Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'tShirtSizeSelect', message: touched[name] && getDisplayErrorMessage.getDisplayErrorMessage(label, errors[name]), children: index$1.tShirtSizes.map((size) => (jsxRuntime.jsx("option", { value: size, children: size }, size))) }, name));
75
+ return (jsxRuntime.jsx(formik.Field, { copykey: key, as: Select.Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'tShirtSizeSelect', message: touched[name] && getDisplayErrorMessage.getDisplayErrorMessage(label, errors[name]), children: index$1.tShirtSizes.map((size) => (jsxRuntime.jsx("option", { value: size, children: size }, size))) }, name));
75
76
  }
76
77
  else if (name === 'team') {
77
- return (jsxRuntime.jsx(formik.Field, { as: Select.Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'teamSelect', message: touched[name] && getDisplayErrorMessage.getDisplayErrorMessage(label, errors[name]), children: index$1.teamNames.map((teamName) => (jsxRuntime.jsx("option", { value: teamName, children: teamName }, teamName))) }, name));
78
+ return (jsxRuntime.jsx(formik.Field, { copykey: key, as: Select.Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'teamSelect', message: touched[name] && getDisplayErrorMessage.getDisplayErrorMessage(label, errors[name]), children: index$1.teamNames.map((teamName) => (jsxRuntime.jsx("option", { value: teamName, children: teamName }, teamName))) }, name));
78
79
  }
79
80
  else if (name === 'country') {
80
- return (jsxRuntime.jsx(formik.Field, { as: Select.Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'countrySelect', message: touched[name] && getDisplayErrorMessage.getDisplayErrorMessage(label, errors[name]), children: index$1.countryCodes.map((countryCode) => (jsxRuntime.jsx("option", { value: countryCode.code, children: countryCode.name }, countryCode.code))) }, name));
81
+ return (jsxRuntime.jsx(formik.Field, { copykey: key, as: Select.Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'countrySelect', message: touched[name] && getDisplayErrorMessage.getDisplayErrorMessage(label, errors[name]), children: index$1.countryCodes.map((countryCode) => (jsxRuntime.jsx("option", { value: countryCode.code, children: countryCode.name }, countryCode.code))) }, name));
81
82
  }
82
83
  else if (name === 'policiesConsent') {
83
- return (jsxRuntime.jsx("div", { role: 'group', "aria-labelledby": 'checkbox-group', className: 'user-data-fields__checkbox-container', children: policiesConsentInnerComponentArray === null || policiesConsentInnerComponentArray === void 0 ? void 0 : policiesConsentInnerComponentArray.map((component, index) => (jsxRuntime.jsxs("div", { className: 'user-data-fields__consent-checkbox', children: [jsxRuntime.jsx(formik.Field, { as: Checkbox.Checkbox, id: `policiesConsent_${index}`, name: 'policiesConsentArray', type: 'checkbox', value: `${index}` }, `policiesConsent_${index}`), jsxRuntime.jsx("label", { htmlFor: `policiesConsent_${index}`, className: 'user-data-fields__checkbox-label', children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'secondary', children: component }) })] }, `policiesConsent_${index}`))) }, 'policiesConsentGroup'));
84
+ return (jsxRuntime.jsx("div", { role: 'group', "aria-labelledby": 'checkbox-group', className: 'user-data-fields__checkbox-container', children: policiesConsentInnerComponentArray === null || policiesConsentInnerComponentArray === void 0 ? void 0 : policiesConsentInnerComponentArray.map((component, index) => (jsxRuntime.jsxs("div", { className: 'user-data-fields__consent-checkbox', children: [jsxRuntime.jsx(formik.Field, { copykey: key, as: Checkbox.Checkbox, id: `policiesConsent_${index}`, name: 'policiesConsentArray', type: 'checkbox', value: `${index}` }, `policiesConsent_${index}`), jsxRuntime.jsx("label", { htmlFor: `policiesConsent_${index}`, className: 'user-data-fields__checkbox-label', children: jsxRuntime.jsx(Typography.Typography, { variant: 'body_small', color: 'secondary', children: component }) })] }, `policiesConsent_${index}`))) }, 'policiesConsentGroup'));
84
85
  }
85
86
  else if (name === 'email' && !enabled) {
86
- return (jsxRuntime.jsx(Tooltip.Tooltip, { content: 'This email is tied to your wallet so cannot be updated', className: 'user-data-fields__tooltip', children: jsxRuntime.jsx(formik.Field, { disabled: true, as: Input.Input, type: type, id: name, name: name, label: label }, name) }, 'disabled-email-tooltip'));
87
+ return (jsxRuntime.jsx(Tooltip.Tooltip, { content: t('dyn_collect_user_data.update_email_tooltip'), className: 'user-data-fields__tooltip', copykey: 'dyn_collect_user_data.update_email_tooltip', children: jsxRuntime.jsx(formik.Field, { copykey: key, disabled: true, as: Input.Input, type: type, id: name, name: name, label: label }, name) }, 'disabled-email-tooltip'));
87
88
  }
88
89
  else {
89
- return (jsxRuntime.jsx(formik.Field, { disabled: !enabled, as: Input.Input, type: type, id: name, name: name, label: label, optional: enabled && !required, error: errors[name] && touched[name], message: touched[name] && getDisplayErrorMessage.getDisplayErrorMessage(label, errors[name]) }, name));
90
+ return (jsxRuntime.jsx(formik.Field, { copykey: key, disabled: !enabled, as: Input.Input, type: type, id: name, name: name, label: label, optional: enabled && !required, error: errors[name] && touched[name], message: touched[name] && getDisplayErrorMessage.getDisplayErrorMessage(label, errors[name]) }, name));
90
91
  }
91
92
  }) }));
92
93
  };
@@ -1,5 +1,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { Field } from 'formik';
3
+ import { useTranslation } from 'react-i18next';
3
4
  import 'react';
4
5
  import '@dynamic-labs/utils';
5
6
  import '../../../context/DynamicContext/DynamicContext.js';
@@ -31,7 +32,6 @@ import '../../../utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js
31
32
  import '../../../context/UserFieldEditorContext/UserFieldEditorContext.js';
32
33
  import '@dynamic-labs/rpc-providers';
33
34
  import '../../../context/UserWalletsContext/UserWalletsContext.js';
34
- import 'react-i18next';
35
35
  import '../../../components/Transition/ZoomTransition/ZoomTransition.js';
36
36
  import '../../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
37
37
  import '../../../components/Transition/OpacityTransition/OpacityTransition.js';
@@ -64,25 +64,26 @@ import { Select } from '../../../components/Select/Select.js';
64
64
 
65
65
  const UserDataFields = ({ errors, policiesConsentInnerComponentArray, fields, touched, }) => {
66
66
  const { fieldsConfig } = useFields();
67
+ const { t } = useTranslation();
67
68
  return (jsx("div", { className: 'user-data-fields__fields-column', children: fields === null || fields === void 0 ? void 0 : fields.map(({ name, required, enabled }) => {
68
- const { label, type } = getValueByKey(fieldsConfig, name);
69
+ const { label, type, key } = getValueByKey(fieldsConfig, name);
69
70
  if (name === 'tShirtSize') {
70
- return (jsx(Field, { as: Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'tShirtSizeSelect', message: touched[name] && getDisplayErrorMessage(label, errors[name]), children: tShirtSizes.map((size) => (jsx("option", { value: size, children: size }, size))) }, name));
71
+ return (jsx(Field, { copykey: key, as: Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'tShirtSizeSelect', message: touched[name] && getDisplayErrorMessage(label, errors[name]), children: tShirtSizes.map((size) => (jsx("option", { value: size, children: size }, size))) }, name));
71
72
  }
72
73
  else if (name === 'team') {
73
- return (jsx(Field, { as: Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'teamSelect', message: touched[name] && getDisplayErrorMessage(label, errors[name]), children: teamNames.map((teamName) => (jsx("option", { value: teamName, children: teamName }, teamName))) }, name));
74
+ return (jsx(Field, { copykey: key, as: Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'teamSelect', message: touched[name] && getDisplayErrorMessage(label, errors[name]), children: teamNames.map((teamName) => (jsx("option", { value: teamName, children: teamName }, teamName))) }, name));
74
75
  }
75
76
  else if (name === 'country') {
76
- return (jsx(Field, { as: Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'countrySelect', message: touched[name] && getDisplayErrorMessage(label, errors[name]), children: countryCodes.map((countryCode) => (jsx("option", { value: countryCode.code, children: countryCode.name }, countryCode.code))) }, name));
77
+ return (jsx(Field, { copykey: key, as: Select, type: type, id: name, name: name, label: label, error: errors[name] && touched[name], selectDataTestId: 'countrySelect', message: touched[name] && getDisplayErrorMessage(label, errors[name]), children: countryCodes.map((countryCode) => (jsx("option", { value: countryCode.code, children: countryCode.name }, countryCode.code))) }, name));
77
78
  }
78
79
  else if (name === 'policiesConsent') {
79
- return (jsx("div", { role: 'group', "aria-labelledby": 'checkbox-group', className: 'user-data-fields__checkbox-container', children: policiesConsentInnerComponentArray === null || policiesConsentInnerComponentArray === void 0 ? void 0 : policiesConsentInnerComponentArray.map((component, index) => (jsxs("div", { className: 'user-data-fields__consent-checkbox', children: [jsx(Field, { as: Checkbox, id: `policiesConsent_${index}`, name: 'policiesConsentArray', type: 'checkbox', value: `${index}` }, `policiesConsent_${index}`), jsx("label", { htmlFor: `policiesConsent_${index}`, className: 'user-data-fields__checkbox-label', children: jsx(Typography, { variant: 'body_small', color: 'secondary', children: component }) })] }, `policiesConsent_${index}`))) }, 'policiesConsentGroup'));
80
+ return (jsx("div", { role: 'group', "aria-labelledby": 'checkbox-group', className: 'user-data-fields__checkbox-container', children: policiesConsentInnerComponentArray === null || policiesConsentInnerComponentArray === void 0 ? void 0 : policiesConsentInnerComponentArray.map((component, index) => (jsxs("div", { className: 'user-data-fields__consent-checkbox', children: [jsx(Field, { copykey: key, as: Checkbox, id: `policiesConsent_${index}`, name: 'policiesConsentArray', type: 'checkbox', value: `${index}` }, `policiesConsent_${index}`), jsx("label", { htmlFor: `policiesConsent_${index}`, className: 'user-data-fields__checkbox-label', children: jsx(Typography, { variant: 'body_small', color: 'secondary', children: component }) })] }, `policiesConsent_${index}`))) }, 'policiesConsentGroup'));
80
81
  }
81
82
  else if (name === 'email' && !enabled) {
82
- return (jsx(Tooltip, { content: 'This email is tied to your wallet so cannot be updated', className: 'user-data-fields__tooltip', children: jsx(Field, { disabled: true, as: Input, type: type, id: name, name: name, label: label }, name) }, 'disabled-email-tooltip'));
83
+ return (jsx(Tooltip, { content: t('dyn_collect_user_data.update_email_tooltip'), className: 'user-data-fields__tooltip', copykey: 'dyn_collect_user_data.update_email_tooltip', children: jsx(Field, { copykey: key, disabled: true, as: Input, type: type, id: name, name: name, label: label }, name) }, 'disabled-email-tooltip'));
83
84
  }
84
85
  else {
85
- return (jsx(Field, { disabled: !enabled, as: Input, type: type, id: name, name: name, label: label, optional: enabled && !required, error: errors[name] && touched[name], message: touched[name] && getDisplayErrorMessage(label, errors[name]) }, name));
86
+ return (jsx(Field, { copykey: key, disabled: !enabled, as: Input, type: type, id: name, name: name, label: label, optional: enabled && !required, error: errors[name] && touched[name], message: touched[name] && getDisplayErrorMessage(label, errors[name]) }, name));
86
87
  }
87
88
  }) }));
88
89
  };
@@ -22,56 +22,67 @@ const useFields = () => {
22
22
  const { t } = reactI18next.useTranslation();
23
23
  const fieldsConfig = {
24
24
  alias: {
25
+ key: 'dyn_collect_user_data.fields.alias.label',
25
26
  label: t('dyn_collect_user_data.fields.alias.label'),
26
27
  type: 'string',
27
28
  validation: yup.string().trim(),
28
29
  },
29
30
  country: {
31
+ key: 'dyn_collect_user_data.fields.country.label',
30
32
  label: t('dyn_collect_user_data.fields.country.label'),
31
33
  type: 'select',
32
34
  validation: yup.string().oneOf(index.countryCodes.map((c) => c.code)),
33
35
  },
34
36
  email: {
37
+ key: 'dyn_collect_user_data.fields.email.label',
35
38
  label: t('dyn_collect_user_data.fields.email.label'),
36
39
  type: 'email',
37
40
  validation: yup.string().email(t('dyn_collect_user_data.fields.email.validation')),
38
41
  },
39
42
  firstName: {
43
+ key: 'dyn_collect_user_data.fields.first_name.label',
40
44
  label: t('dyn_collect_user_data.fields.first_name.label'),
41
45
  type: 'string',
42
46
  validation: yup.string().trim(),
43
47
  },
44
48
  jobTitle: {
49
+ key: 'dyn_collect_user_data.fields.job_title.label',
45
50
  label: t('dyn_collect_user_data.fields.job_title.label'),
46
51
  type: 'string',
47
52
  validation: yup.string().trim(),
48
53
  },
49
54
  lastName: {
55
+ key: 'dyn_collect_user_data.fields.last_name.label',
50
56
  label: t('dyn_collect_user_data.fields.last_name.label'),
51
57
  type: 'string',
52
58
  validation: yup.string().trim(),
53
59
  },
54
60
  phoneNumber: {
61
+ key: 'dyn_collect_user_data.fields.phone_number.label',
55
62
  label: t('dyn_collect_user_data.fields.phone_number.label'),
56
63
  type: 'string',
57
64
  validation: yup.string().matches(/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/, t('dyn_collect_user_data.fields.phone_number.validation')),
58
65
  },
59
66
  policiesConsent: {
67
+ key: 'dyn_collect_user_data.fields.policies_consent.label',
60
68
  label: t('dyn_collect_user_data.fields.policies_consent.label'),
61
69
  type: 'boolean',
62
70
  validation: yup.boolean(),
63
71
  },
64
72
  tShirtSize: {
73
+ key: 'dyn_collect_user_data.fields.t_shirt_size.label',
65
74
  label: t('dyn_collect_user_data.fields.t_shirt_size.label'),
66
75
  type: 'select',
67
76
  validation: yup.string().oneOf(index.tShirtSizes),
68
77
  },
69
78
  team: {
79
+ key: 'dyn_collect_user_data.fields.team.label',
70
80
  label: t('dyn_collect_user_data.fields.team.label'),
71
81
  type: 'select',
72
82
  validation: yup.string().oneOf(index.teamNames),
73
83
  },
74
84
  username: {
85
+ key: 'dyn_collect_user_data.fields.username.label',
75
86
  label: t('dyn_collect_user_data.fields.username.label'),
76
87
  type: 'string',
77
88
  // From chatGPT:
@@ -1,56 +1,67 @@
1
1
  export declare const useFields: () => {
2
2
  fieldsConfig: {
3
3
  alias: {
4
+ key: string;
4
5
  label: string;
5
6
  type: string;
6
7
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
7
8
  };
8
9
  country: {
10
+ key: string;
9
11
  label: string;
10
12
  type: string;
11
13
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
12
14
  };
13
15
  email: {
16
+ key: string;
14
17
  label: string;
15
18
  type: string;
16
19
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
20
  };
18
21
  firstName: {
22
+ key: string;
19
23
  label: string;
20
24
  type: string;
21
25
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
22
26
  };
23
27
  jobTitle: {
28
+ key: string;
24
29
  label: string;
25
30
  type: string;
26
31
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
27
32
  };
28
33
  lastName: {
34
+ key: string;
29
35
  label: string;
30
36
  type: string;
31
37
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
32
38
  };
33
39
  phoneNumber: {
40
+ key: string;
34
41
  label: string;
35
42
  type: string;
36
43
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
37
44
  };
38
45
  policiesConsent: {
46
+ key: string;
39
47
  label: string;
40
48
  type: string;
41
49
  validation: import("yup").BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, boolean | undefined>;
42
50
  };
43
51
  tShirtSize: {
52
+ key: string;
44
53
  label: string;
45
54
  type: string;
46
55
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
47
56
  };
48
57
  team: {
58
+ key: string;
49
59
  label: string;
50
60
  type: string;
51
61
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
52
62
  };
53
63
  username: {
64
+ key: string;
54
65
  label: string;
55
66
  type: string;
56
67
  validation: import("yup").StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
@@ -18,56 +18,67 @@ const useFields = () => {
18
18
  const { t } = useTranslation();
19
19
  const fieldsConfig = {
20
20
  alias: {
21
+ key: 'dyn_collect_user_data.fields.alias.label',
21
22
  label: t('dyn_collect_user_data.fields.alias.label'),
22
23
  type: 'string',
23
24
  validation: string().trim(),
24
25
  },
25
26
  country: {
27
+ key: 'dyn_collect_user_data.fields.country.label',
26
28
  label: t('dyn_collect_user_data.fields.country.label'),
27
29
  type: 'select',
28
30
  validation: string().oneOf(countryCodes.map((c) => c.code)),
29
31
  },
30
32
  email: {
33
+ key: 'dyn_collect_user_data.fields.email.label',
31
34
  label: t('dyn_collect_user_data.fields.email.label'),
32
35
  type: 'email',
33
36
  validation: string().email(t('dyn_collect_user_data.fields.email.validation')),
34
37
  },
35
38
  firstName: {
39
+ key: 'dyn_collect_user_data.fields.first_name.label',
36
40
  label: t('dyn_collect_user_data.fields.first_name.label'),
37
41
  type: 'string',
38
42
  validation: string().trim(),
39
43
  },
40
44
  jobTitle: {
45
+ key: 'dyn_collect_user_data.fields.job_title.label',
41
46
  label: t('dyn_collect_user_data.fields.job_title.label'),
42
47
  type: 'string',
43
48
  validation: string().trim(),
44
49
  },
45
50
  lastName: {
51
+ key: 'dyn_collect_user_data.fields.last_name.label',
46
52
  label: t('dyn_collect_user_data.fields.last_name.label'),
47
53
  type: 'string',
48
54
  validation: string().trim(),
49
55
  },
50
56
  phoneNumber: {
57
+ key: 'dyn_collect_user_data.fields.phone_number.label',
51
58
  label: t('dyn_collect_user_data.fields.phone_number.label'),
52
59
  type: 'string',
53
60
  validation: string().matches(/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/, t('dyn_collect_user_data.fields.phone_number.validation')),
54
61
  },
55
62
  policiesConsent: {
63
+ key: 'dyn_collect_user_data.fields.policies_consent.label',
56
64
  label: t('dyn_collect_user_data.fields.policies_consent.label'),
57
65
  type: 'boolean',
58
66
  validation: boolean(),
59
67
  },
60
68
  tShirtSize: {
69
+ key: 'dyn_collect_user_data.fields.t_shirt_size.label',
61
70
  label: t('dyn_collect_user_data.fields.t_shirt_size.label'),
62
71
  type: 'select',
63
72
  validation: string().oneOf(tShirtSizes),
64
73
  },
65
74
  team: {
75
+ key: 'dyn_collect_user_data.fields.team.label',
66
76
  label: t('dyn_collect_user_data.fields.team.label'),
67
77
  type: 'select',
68
78
  validation: string().oneOf(teamNames),
69
79
  },
70
80
  username: {
81
+ key: 'dyn_collect_user_data.fields.username.label',
71
82
  label: t('dyn_collect_user_data.fields.username.label'),
72
83
  type: 'string',
73
84
  // From chatGPT:
@@ -72,9 +72,9 @@ const CollectUserDataViewLoginWithEmail = () => {
72
72
  return null;
73
73
  }
74
74
  const userProfile = createUserProfile.createUserProfile(decodedOnboardingOnlyToken);
75
- return (jsxRuntime.jsxs("div", { className: 'collect-user-data-login-with-email', "data-testid": 'collect-user-data-login-with-email', children: [onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'collect-user-data-login-with-email__main-img', src: onboardingImageUrl, alt: 'onboarding' })), jsxRuntime.jsxs("div", { className: 'collect-user-data-login-with-email__user-info-container', children: [jsxRuntime.jsx("div", { className: 'collect-user-data-login-with-email__icon-container', children: jsxRuntime.jsx(UserAvatar.UserAvatar, { user: userProfile }) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data-login-with-email__email-address', children: userProfile.email })] }), jsxRuntime.jsxs("div", { className: 'collect-user-data-login-with-email__form', children: [jsxRuntime.jsx("div", { className: 'collect-user-data-login-with-email__success-icon', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-primary', size: 'large', children: jsxRuntime.jsx(checkConnection.ReactComponent, {}) }) }), jsxRuntime.jsx(OnboardingUserDataForm.OnboardingUserDataForm, { userProfile: userProfile, children: jsxRuntime.jsxs("div", { className: 'collect-user-data-login-with-email__welcome-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'collect-user-data-login-with-email__welcome-title', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
76
- t('dyn_collect_user_data.greeting', { appName }) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
77
- t('dyn_collect_user_data.description') })] }) }), jsxRuntime.jsx(TextButton.TextButton, { className: 'collect-user-data-login-with-email__log-out', onClick: handleLogOut, children: t('dyn_collect_user_data.log_out_button') })] })] }));
75
+ return (jsxRuntime.jsxs("div", { className: 'collect-user-data-login-with-email', "data-testid": 'collect-user-data-login-with-email', children: [onboardingImageUrl && (jsxRuntime.jsx("img", { className: 'collect-user-data-login-with-email__main-img', src: onboardingImageUrl, alt: 'onboarding' })), jsxRuntime.jsxs("div", { className: 'collect-user-data-login-with-email__user-info-container', children: [jsxRuntime.jsx("div", { className: 'collect-user-data-login-with-email__icon-container', children: jsxRuntime.jsx(UserAvatar.UserAvatar, { user: userProfile }) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data-login-with-email__email-address', children: userProfile.email })] }), jsxRuntime.jsxs("div", { className: 'collect-user-data-login-with-email__form', children: [jsxRuntime.jsx("div", { className: 'collect-user-data-login-with-email__success-icon', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-primary', size: 'large', children: jsxRuntime.jsx(checkConnection.ReactComponent, {}) }) }), jsxRuntime.jsx(OnboardingUserDataForm.OnboardingUserDataForm, { userProfile: userProfile, children: jsxRuntime.jsxs("div", { className: 'collect-user-data-login-with-email__welcome-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'collect-user-data-login-with-email__welcome-title', copykey: 'dyn_collect_user_data.greeting', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
76
+ t('dyn_collect_user_data.greeting', { appName }) }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_collect_user_data.description', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
77
+ t('dyn_collect_user_data.description') })] }) }), jsxRuntime.jsx(TextButton.TextButton, { className: 'collect-user-data-login-with-email__log-out', onClick: handleLogOut, copykey: 'dyn_collect_user_data.log_out_button', children: t('dyn_collect_user_data.log_out_button') })] })] }));
78
78
  };
79
79
 
80
80
  exports.CollectUserDataViewLoginWithEmail = CollectUserDataViewLoginWithEmail;
@@ -68,9 +68,9 @@ const CollectUserDataViewLoginWithEmail = () => {
68
68
  return null;
69
69
  }
70
70
  const userProfile = createUserProfile(decodedOnboardingOnlyToken);
71
- return (jsxs("div", { className: 'collect-user-data-login-with-email', "data-testid": 'collect-user-data-login-with-email', children: [onboardingImageUrl && (jsx("img", { className: 'collect-user-data-login-with-email__main-img', src: onboardingImageUrl, alt: 'onboarding' })), jsxs("div", { className: 'collect-user-data-login-with-email__user-info-container', children: [jsx("div", { className: 'collect-user-data-login-with-email__icon-container', children: jsx(UserAvatar, { user: userProfile }) }), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data-login-with-email__email-address', children: userProfile.email })] }), jsxs("div", { className: 'collect-user-data-login-with-email__form', children: [jsx("div", { className: 'collect-user-data-login-with-email__success-icon', children: jsx(Icon, { color: 'text-primary', size: 'large', children: jsx(SvgCheckConnection, {}) }) }), jsx(OnboardingUserDataForm, { userProfile: userProfile, children: jsxs("div", { className: 'collect-user-data-login-with-email__welcome-container', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'collect-user-data-login-with-email__welcome-title', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
72
- t('dyn_collect_user_data.greeting', { appName }) }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
73
- t('dyn_collect_user_data.description') })] }) }), jsx(TextButton, { className: 'collect-user-data-login-with-email__log-out', onClick: handleLogOut, children: t('dyn_collect_user_data.log_out_button') })] })] }));
71
+ return (jsxs("div", { className: 'collect-user-data-login-with-email', "data-testid": 'collect-user-data-login-with-email', children: [onboardingImageUrl && (jsx("img", { className: 'collect-user-data-login-with-email__main-img', src: onboardingImageUrl, alt: 'onboarding' })), jsxs("div", { className: 'collect-user-data-login-with-email__user-info-container', children: [jsx("div", { className: 'collect-user-data-login-with-email__icon-container', children: jsx(UserAvatar, { user: userProfile }) }), jsx(Typography, { variant: 'body_normal', color: 'primary', weight: 'medium', className: 'collect-user-data-login-with-email__email-address', children: userProfile.email })] }), jsxs("div", { className: 'collect-user-data-login-with-email__form', children: [jsx("div", { className: 'collect-user-data-login-with-email__success-icon', children: jsx(Icon, { color: 'text-primary', size: 'large', children: jsx(SvgCheckConnection, {}) }) }), jsx(OnboardingUserDataForm, { userProfile: userProfile, children: jsxs("div", { className: 'collect-user-data-login-with-email__welcome-container', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'collect-user-data-login-with-email__welcome-title', copykey: 'dyn_collect_user_data.greeting', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeHeader) ||
72
+ t('dyn_collect_user_data.greeting', { appName }) }), jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_collect_user_data.description', children: (projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general.collectUserDataWelcomeMessage) ||
73
+ t('dyn_collect_user_data.description') })] }) }), jsx(TextButton, { className: 'collect-user-data-login-with-email__log-out', onClick: handleLogOut, copykey: 'dyn_collect_user_data.log_out_button', children: t('dyn_collect_user_data.log_out_button') })] })] }));
74
74
  };
75
75
 
76
76
  export { CollectUserDataViewLoginWithEmail };
@@ -77,7 +77,7 @@ const EmailConfirmationWaitingView = () => {
77
77
  setView('login-with-email-or-wallet');
78
78
  clearStatesOnBackClick();
79
79
  }), [setView, emailConnector, clearStatesOnBackClick]);
80
- return (jsxRuntime.jsxs("div", { className: 'email-confirmation-waiting-view', children: [jsxRuntime.jsx("div", { className: 'email-confirmation-waiting-view__header-icon', children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: true }) }), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'email-confirmation-waiting-view__title', children: t('dyn_email_confirmation.title') }), jsxRuntime.jsx(Typography.Typography, { weight: 'regular', variant: 'body_normal', color: 'secondary', children: t('dyn_email_confirmation.description') }), jsxRuntime.jsxs("div", { className: 'email-confirmation-waiting-view__email-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'medium', as: 'span', children: emailConnector === null || emailConnector === void 0 ? void 0 : emailConnector.email }), jsxRuntime.jsx(IconButton.IconButton, { onClick: onClickResetEmail, className: 'email-confirmation-waiting-view__edit-icon-button', "data-testid": 'email-confirmation-waiting-view__edit-button', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) }) })] }), jsxRuntime.jsx("div", { className: 'email-confirmation-waiting-view__note', children: jsxRuntime.jsx(Typography.Typography, { weight: 'regular', variant: 'body_small', color: 'secondary', children: t('dyn_email_confirmation.note') }) }), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'email-confirmation-waiting-view__powered_by_dynamic_footer' })] }));
80
+ return (jsxRuntime.jsxs("div", { className: 'email-confirmation-waiting-view', children: [jsxRuntime.jsx("div", { className: 'email-confirmation-waiting-view__header-icon', children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: iconic.SignInWithEmailIcon, iconSize: 80, isSpinning: true }) }), jsxRuntime.jsx(Typography.Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'email-confirmation-waiting-view__title', copykey: 'dyn_email_confirmation.title', children: t('dyn_email_confirmation.title') }), jsxRuntime.jsx(Typography.Typography, { weight: 'regular', variant: 'body_normal', color: 'secondary', copykey: 'dyn_email_confirmation.description', children: t('dyn_email_confirmation.description') }), jsxRuntime.jsxs("div", { className: 'email-confirmation-waiting-view__email-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', color: 'secondary', weight: 'medium', as: 'span', children: emailConnector === null || emailConnector === void 0 ? void 0 : emailConnector.email }), jsxRuntime.jsx(IconButton.IconButton, { onClick: onClickResetEmail, className: 'email-confirmation-waiting-view__edit-icon-button', "data-testid": 'email-confirmation-waiting-view__edit-button', children: jsxRuntime.jsx(Icon.Icon, { color: 'text-tertiary', children: jsxRuntime.jsx(pencilAltIcon.ReactComponent, {}) }) })] }), jsxRuntime.jsx("div", { className: 'email-confirmation-waiting-view__note', children: jsxRuntime.jsx(Typography.Typography, { weight: 'regular', variant: 'body_small', color: 'secondary', copykey: 'dyn_email_confirmation.note', children: t('dyn_email_confirmation.note') }) }), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, { classNameRoot: 'email-confirmation-waiting-view__powered_by_dynamic_footer' })] }));
81
81
  };
82
82
 
83
83
  exports.EmailConfirmationWaitingView = EmailConfirmationWaitingView;
@@ -73,7 +73,7 @@ const EmailConfirmationWaitingView = () => {
73
73
  setView('login-with-email-or-wallet');
74
74
  clearStatesOnBackClick();
75
75
  }), [setView, emailConnector, clearStatesOnBackClick]);
76
- return (jsxs("div", { className: 'email-confirmation-waiting-view', children: [jsx("div", { className: 'email-confirmation-waiting-view__header-icon', children: jsx(IconWithSpinner, { Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: true }) }), jsx(Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'email-confirmation-waiting-view__title', children: t('dyn_email_confirmation.title') }), jsx(Typography, { weight: 'regular', variant: 'body_normal', color: 'secondary', children: t('dyn_email_confirmation.description') }), jsxs("div", { className: 'email-confirmation-waiting-view__email-container', children: [jsx(Typography, { variant: 'body_normal', color: 'secondary', weight: 'medium', as: 'span', children: emailConnector === null || emailConnector === void 0 ? void 0 : emailConnector.email }), jsx(IconButton, { onClick: onClickResetEmail, className: 'email-confirmation-waiting-view__edit-icon-button', "data-testid": 'email-confirmation-waiting-view__edit-button', children: jsx(Icon, { color: 'text-tertiary', children: jsx(SvgPencilAltIcon, {}) }) })] }), jsx("div", { className: 'email-confirmation-waiting-view__note', children: jsx(Typography, { weight: 'regular', variant: 'body_small', color: 'secondary', children: t('dyn_email_confirmation.note') }) }), jsx(PoweredByDynamic, { classNameRoot: 'email-confirmation-waiting-view__powered_by_dynamic_footer' })] }));
76
+ return (jsxs("div", { className: 'email-confirmation-waiting-view', children: [jsx("div", { className: 'email-confirmation-waiting-view__header-icon', children: jsx(IconWithSpinner, { Icon: SignInWithEmailIcon, iconSize: 80, isSpinning: true }) }), jsx(Typography, { weight: 'medium', variant: 'title', color: 'primary', className: 'email-confirmation-waiting-view__title', copykey: 'dyn_email_confirmation.title', children: t('dyn_email_confirmation.title') }), jsx(Typography, { weight: 'regular', variant: 'body_normal', color: 'secondary', copykey: 'dyn_email_confirmation.description', children: t('dyn_email_confirmation.description') }), jsxs("div", { className: 'email-confirmation-waiting-view__email-container', children: [jsx(Typography, { variant: 'body_normal', color: 'secondary', weight: 'medium', as: 'span', children: emailConnector === null || emailConnector === void 0 ? void 0 : emailConnector.email }), jsx(IconButton, { onClick: onClickResetEmail, className: 'email-confirmation-waiting-view__edit-icon-button', "data-testid": 'email-confirmation-waiting-view__edit-button', children: jsx(Icon, { color: 'text-tertiary', children: jsx(SvgPencilAltIcon, {}) }) })] }), jsx("div", { className: 'email-confirmation-waiting-view__note', children: jsx(Typography, { weight: 'regular', variant: 'body_small', color: 'secondary', copykey: 'dyn_email_confirmation.note', children: t('dyn_email_confirmation.note') }) }), jsx(PoweredByDynamic, { classNameRoot: 'email-confirmation-waiting-view__powered_by_dynamic_footer' })] }));
77
77
  };
78
78
 
79
79
  export { EmailConfirmationWaitingView };
@@ -111,9 +111,9 @@ const EmailUpdate = () => {
111
111
  setLoading(false);
112
112
  }
113
113
  });
114
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { leading: backButton, displayLeading: true, displayBorder: true, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', children: t('dyn_email_update.title') }) }), jsxRuntime.jsxs("div", { className: 'email-update__container', children: [jsxRuntime.jsxs("div", { className: 'email-update__copy-text-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_email_update.current_email') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: email })] }), jsxRuntime.jsx(Input.Input, { id: 'email_field', onChange: (e) => {
114
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { leading: backButton, displayLeading: true, displayBorder: true, children: jsxRuntime.jsx(Typography.Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_email_update.title', children: t('dyn_email_update.title') }) }), jsxRuntime.jsxs("div", { className: 'email-update__container', children: [jsxRuntime.jsxs("div", { className: 'email-update__copy-text-container', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_email_update.current_email', children: t('dyn_email_update.current_email') }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: email })] }), jsxRuntime.jsx(Input.Input, { id: 'email_field', onChange: (e) => {
115
115
  setUpdatedEmail(e.target.value);
116
- }, type: 'email', label: t('dyn_email_update.label'), className: 'email-update__input', error: Boolean(emailError), message: emailError }), jsxRuntime.jsx(Button.Button, { buttonVariant: 'primary', buttonPadding: 'medium', buttonClassName: 'email-update__button', onClick: () => handleEmailUpdate(), loading: loading, children: t('dyn_email_update.send_verification') })] })] }));
116
+ }, type: 'email', copykey: 'dyn_email_update.label', label: t('dyn_email_update.label'), className: 'email-update__input', error: Boolean(emailError), message: emailError }), jsxRuntime.jsx(Button.Button, { buttonVariant: 'primary', buttonPadding: 'medium', buttonClassName: 'email-update__button', onClick: () => handleEmailUpdate(), loading: loading, copykey: 'dyn_email_update.send_verification', children: t('dyn_email_update.send_verification') })] })] }));
117
117
  };
118
118
 
119
119
  exports.EmailUpdate = EmailUpdate;
@@ -107,9 +107,9 @@ const EmailUpdate = () => {
107
107
  setLoading(false);
108
108
  }
109
109
  });
110
- return (jsxs(Fragment, { children: [jsx(ModalHeader, { leading: backButton, displayLeading: true, displayBorder: true, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', children: t('dyn_email_update.title') }) }), jsxs("div", { className: 'email-update__container', children: [jsxs("div", { className: 'email-update__copy-text-container', children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', children: t('dyn_email_update.current_email') }), jsx(Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: email })] }), jsx(Input, { id: 'email_field', onChange: (e) => {
110
+ return (jsxs(Fragment, { children: [jsx(ModalHeader, { leading: backButton, displayLeading: true, displayBorder: true, children: jsx(Typography, { as: 'h1', variant: 'title', color: 'primary', "data-testid": 'dynamic-auth-modal-heading', className: 'header__typography', copykey: 'dyn_email_update.title', children: t('dyn_email_update.title') }) }), jsxs("div", { className: 'email-update__container', children: [jsxs("div", { className: 'email-update__copy-text-container', children: [jsx(Typography, { variant: 'body_normal', weight: 'regular', color: 'secondary', copykey: 'dyn_email_update.current_email', children: t('dyn_email_update.current_email') }), jsx(Typography, { variant: 'body_normal', weight: 'bold', color: 'secondary', children: email })] }), jsx(Input, { id: 'email_field', onChange: (e) => {
111
111
  setUpdatedEmail(e.target.value);
112
- }, type: 'email', label: t('dyn_email_update.label'), className: 'email-update__input', error: Boolean(emailError), message: emailError }), jsx(Button, { buttonVariant: 'primary', buttonPadding: 'medium', buttonClassName: 'email-update__button', onClick: () => handleEmailUpdate(), loading: loading, children: t('dyn_email_update.send_verification') })] })] }));
112
+ }, type: 'email', copykey: 'dyn_email_update.label', label: t('dyn_email_update.label'), className: 'email-update__input', error: Boolean(emailError), message: emailError }), jsx(Button, { buttonVariant: 'primary', buttonPadding: 'medium', buttonClassName: 'email-update__button', onClick: () => handleEmailUpdate(), loading: loading, copykey: 'dyn_email_update.send_verification', children: t('dyn_email_update.send_verification') })] })] }));
113
113
  };
114
114
 
115
115
  export { EmailUpdate };