@openedx/frontend-app-authn 1.0.0-alpha.0 → 1.0.0-alpha.10

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 (484) hide show
  1. package/dist/Main.d.ts +3 -0
  2. package/dist/Main.js +10 -0
  3. package/dist/Main.js.map +1 -0
  4. package/dist/app.d.ts +3 -0
  5. package/dist/app.js +41 -0
  6. package/dist/app.js.map +1 -0
  7. package/dist/app.scss +2 -0
  8. package/dist/base-container/components/default-layout/LargeLayout.d.ts +2 -0
  9. package/dist/base-container/components/default-layout/LargeLayout.js +11 -0
  10. package/dist/base-container/components/default-layout/LargeLayout.js.map +1 -0
  11. package/dist/base-container/components/default-layout/MediumLayout.d.ts +2 -0
  12. package/dist/base-container/components/default-layout/MediumLayout.js +11 -0
  13. package/dist/base-container/components/default-layout/MediumLayout.js.map +1 -0
  14. package/dist/base-container/components/default-layout/SmallLayout.d.ts +2 -0
  15. package/dist/base-container/components/default-layout/SmallLayout.js +11 -0
  16. package/dist/base-container/components/default-layout/SmallLayout.js.map +1 -0
  17. package/dist/base-container/components/default-layout/index.d.ts +3 -0
  18. package/{src/base-container/components/default-layout/index.jsx → dist/base-container/components/default-layout/index.js} +1 -0
  19. package/dist/base-container/components/default-layout/index.js.map +1 -0
  20. package/dist/base-container/components/default-layout/messages.d.ts +13 -0
  21. package/dist/base-container/components/default-layout/messages.js +15 -0
  22. package/dist/base-container/components/default-layout/messages.js.map +1 -0
  23. package/dist/base-container/components/image-layout/ExtraSmallLayout.d.ts +2 -0
  24. package/dist/base-container/components/image-layout/ExtraSmallLayout.js +10 -0
  25. package/dist/base-container/components/image-layout/ExtraSmallLayout.js.map +1 -0
  26. package/dist/base-container/components/image-layout/LargeLayout.d.ts +2 -0
  27. package/dist/base-container/components/image-layout/LargeLayout.js +11 -0
  28. package/dist/base-container/components/image-layout/LargeLayout.js.map +1 -0
  29. package/dist/base-container/components/image-layout/MediumLayout.d.ts +2 -0
  30. package/dist/base-container/components/image-layout/MediumLayout.js +11 -0
  31. package/dist/base-container/components/image-layout/MediumLayout.js.map +1 -0
  32. package/dist/base-container/components/image-layout/SmallLayout.d.ts +2 -0
  33. package/dist/base-container/components/image-layout/SmallLayout.js +10 -0
  34. package/dist/base-container/components/image-layout/SmallLayout.js.map +1 -0
  35. package/dist/base-container/components/image-layout/index.d.ts +4 -0
  36. package/{src/base-container/components/image-layout/index.jsx → dist/base-container/components/image-layout/index.js} +1 -0
  37. package/dist/base-container/components/image-layout/index.js.map +1 -0
  38. package/dist/base-container/components/image-layout/messages.d.ts +13 -0
  39. package/dist/base-container/components/image-layout/messages.js +15 -0
  40. package/dist/base-container/components/image-layout/messages.js.map +1 -0
  41. package/dist/base-container/components/welcome-page-layout/LargeLayout.d.ts +10 -0
  42. package/dist/base-container/components/welcome-page-layout/LargeLayout.js +14 -0
  43. package/dist/base-container/components/welcome-page-layout/LargeLayout.js.map +1 -0
  44. package/dist/base-container/components/welcome-page-layout/MediumLayout.d.ts +10 -0
  45. package/dist/base-container/components/welcome-page-layout/MediumLayout.js +14 -0
  46. package/dist/base-container/components/welcome-page-layout/MediumLayout.js.map +1 -0
  47. package/dist/base-container/components/welcome-page-layout/SmallLayout.d.ts +10 -0
  48. package/dist/base-container/components/welcome-page-layout/SmallLayout.js +14 -0
  49. package/dist/base-container/components/welcome-page-layout/SmallLayout.js.map +1 -0
  50. package/dist/base-container/components/welcome-page-layout/index.d.ts +3 -0
  51. package/{src/base-container/components/welcome-page-layout/index.jsx → dist/base-container/components/welcome-page-layout/index.js} +1 -0
  52. package/dist/base-container/components/welcome-page-layout/index.js.map +1 -0
  53. package/dist/base-container/components/welcome-page-layout/messages.d.ts +18 -0
  54. package/dist/base-container/components/welcome-page-layout/messages.js +20 -0
  55. package/dist/base-container/components/welcome-page-layout/messages.js.map +1 -0
  56. package/dist/base-container/index.d.ts +20 -0
  57. package/dist/base-container/index.js +27 -0
  58. package/dist/base-container/index.js.map +1 -0
  59. package/dist/common-components/EmbeddedRegistrationRoute.d.ts +14 -0
  60. package/dist/common-components/EmbeddedRegistrationRoute.js +22 -0
  61. package/dist/common-components/EmbeddedRegistrationRoute.js.map +1 -0
  62. package/dist/common-components/EnterpriseSSO.d.ts +29 -0
  63. package/dist/common-components/EnterpriseSSO.js +58 -0
  64. package/dist/common-components/EnterpriseSSO.js.map +1 -0
  65. package/dist/common-components/FormGroup.d.ts +60 -0
  66. package/dist/common-components/FormGroup.js +66 -0
  67. package/dist/common-components/FormGroup.js.map +1 -0
  68. package/dist/common-components/InstitutionLogistration.d.ts +34 -0
  69. package/dist/common-components/InstitutionLogistration.js +38 -0
  70. package/dist/common-components/InstitutionLogistration.js.map +1 -0
  71. package/dist/common-components/NotFoundPage.d.ts +2 -0
  72. package/dist/common-components/NotFoundPage.js +5 -0
  73. package/dist/common-components/NotFoundPage.js.map +1 -0
  74. package/dist/common-components/PasswordField.d.ts +47 -0
  75. package/dist/common-components/PasswordField.js +98 -0
  76. package/dist/common-components/PasswordField.js.map +1 -0
  77. package/dist/common-components/RedirectLogistration.d.ts +39 -0
  78. package/dist/common-components/RedirectLogistration.js +72 -0
  79. package/dist/common-components/RedirectLogistration.js.map +1 -0
  80. package/dist/common-components/RegisterFaIcons.d.ts +1 -0
  81. package/dist/common-components/RegisterFaIcons.js +6 -0
  82. package/dist/common-components/RegisterFaIcons.js.map +1 -0
  83. package/dist/common-components/SocialAuthProviders.d.ts +23 -0
  84. package/dist/common-components/SocialAuthProviders.js +43 -0
  85. package/dist/common-components/SocialAuthProviders.js.map +1 -0
  86. package/dist/common-components/ThirdPartyAuth.d.ts +42 -0
  87. package/dist/common-components/ThirdPartyAuth.js +57 -0
  88. package/dist/common-components/ThirdPartyAuth.js.map +1 -0
  89. package/dist/common-components/ThirdPartyAuthAlert.d.ts +15 -0
  90. package/dist/common-components/ThirdPartyAuthAlert.js +32 -0
  91. package/dist/common-components/ThirdPartyAuthAlert.js.map +1 -0
  92. package/dist/common-components/UnAuthOnlyRoute.d.ts +14 -0
  93. package/dist/common-components/UnAuthOnlyRoute.js +32 -0
  94. package/dist/common-components/UnAuthOnlyRoute.js.map +1 -0
  95. package/dist/common-components/components/ThirdPartyAuthContext.d.ts +31 -0
  96. package/dist/common-components/components/ThirdPartyAuthContext.js +84 -0
  97. package/dist/common-components/components/ThirdPartyAuthContext.js.map +1 -0
  98. package/dist/common-components/data/api.d.ts +6 -0
  99. package/dist/common-components/data/api.js +26 -0
  100. package/dist/common-components/data/api.js.map +1 -0
  101. package/dist/common-components/data/apiHook.d.ts +9 -0
  102. package/dist/common-components/data/apiHook.js +14 -0
  103. package/dist/common-components/data/apiHook.js.map +1 -0
  104. package/dist/common-components/data/queryKeys.d.ts +4 -0
  105. package/dist/common-components/data/queryKeys.js +6 -0
  106. package/dist/common-components/data/queryKeys.js.map +1 -0
  107. package/dist/common-components/index.d.ts +10 -0
  108. package/{src/common-components/index.jsx → dist/common-components/index.js} +1 -3
  109. package/dist/common-components/index.js.map +1 -0
  110. package/dist/common-components/messages.d.ts +113 -0
  111. package/dist/common-components/messages.js +126 -0
  112. package/dist/common-components/messages.js.map +1 -0
  113. package/dist/constants.d.ts +14 -0
  114. package/dist/constants.js +17 -0
  115. package/dist/constants.js.map +1 -0
  116. package/dist/data/constants.d.ts +16 -0
  117. package/{src → dist}/data/constants.js +4 -17
  118. package/dist/data/constants.js.map +1 -0
  119. package/dist/data/countries.d.ts +26 -0
  120. package/{src/data/countries.ts → dist/data/countries.js} +6 -9
  121. package/dist/data/countries.js.map +1 -0
  122. package/dist/data/oneTrust.d.ts +2 -0
  123. package/dist/data/oneTrust.js +3 -0
  124. package/dist/data/oneTrust.js.map +1 -0
  125. package/dist/data/utils/cookies.d.ts +1 -0
  126. package/dist/data/utils/cookies.js +12 -0
  127. package/dist/data/utils/cookies.js.map +1 -0
  128. package/dist/data/utils/dataUtils.d.ts +12 -0
  129. package/dist/data/utils/dataUtils.js +81 -0
  130. package/dist/data/utils/dataUtils.js.map +1 -0
  131. package/dist/data/utils/index.d.ts +2 -0
  132. package/dist/data/utils/index.js +3 -0
  133. package/dist/data/utils/index.js.map +1 -0
  134. package/dist/data/utils/useMobileResponsive.d.ts +7 -0
  135. package/dist/data/utils/useMobileResponsive.js +22 -0
  136. package/dist/data/utils/useMobileResponsive.js.map +1 -0
  137. package/dist/field-renderer/FieldRenderer.d.ts +34 -0
  138. package/dist/field-renderer/FieldRenderer.js +70 -0
  139. package/dist/field-renderer/FieldRenderer.js.map +1 -0
  140. package/dist/field-renderer/index.d.ts +1 -0
  141. package/{src/field-renderer/index.jsx → dist/field-renderer/index.js} +1 -0
  142. package/dist/field-renderer/index.js.map +1 -0
  143. package/dist/forgot-password/ForgotPasswordAlert.d.ts +16 -0
  144. package/dist/forgot-password/ForgotPasswordAlert.js +66 -0
  145. package/dist/forgot-password/ForgotPasswordAlert.js.map +1 -0
  146. package/dist/forgot-password/ForgotPasswordPage.d.ts +2 -0
  147. package/dist/forgot-password/ForgotPasswordPage.js +92 -0
  148. package/dist/forgot-password/ForgotPasswordPage.js.map +1 -0
  149. package/dist/forgot-password/data/api.d.ts +2 -0
  150. package/dist/forgot-password/data/api.js +25 -0
  151. package/dist/forgot-password/data/api.js.map +1 -0
  152. package/dist/forgot-password/data/apiHook.d.ts +16 -0
  153. package/dist/forgot-password/data/apiHook.js +26 -0
  154. package/dist/forgot-password/data/apiHook.js.map +1 -0
  155. package/dist/forgot-password/index.d.ts +1 -0
  156. package/dist/forgot-password/index.js +2 -0
  157. package/dist/forgot-password/index.js.map +1 -0
  158. package/dist/forgot-password/messages.d.ts +123 -0
  159. package/dist/forgot-password/messages.js +128 -0
  160. package/dist/forgot-password/messages.js.map +1 -0
  161. package/dist/i18n/index.d.ts +1 -0
  162. package/dist/i18n/index.js +2 -0
  163. package/dist/i18n/index.js.map +1 -0
  164. package/{src/index.ts → dist/index.d.ts} +0 -1
  165. package/dist/index.js +3 -0
  166. package/dist/index.js.map +1 -0
  167. package/dist/login/AccountActivationMessage.d.ts +14 -0
  168. package/dist/login/AccountActivationMessage.js +49 -0
  169. package/dist/login/AccountActivationMessage.js.map +1 -0
  170. package/dist/login/ChangePasswordPrompt.d.ts +18 -0
  171. package/dist/login/ChangePasswordPrompt.js +51 -0
  172. package/dist/login/ChangePasswordPrompt.js.map +1 -0
  173. package/dist/login/LoginFailure.d.ts +25 -0
  174. package/dist/login/LoginFailure.js +109 -0
  175. package/dist/login/LoginFailure.js.map +1 -0
  176. package/dist/login/LoginPage.d.ts +12 -0
  177. package/dist/login/LoginPage.js +174 -0
  178. package/dist/login/LoginPage.js.map +1 -0
  179. package/dist/login/components/LoginContext.d.ts +21 -0
  180. package/dist/login/components/LoginContext.js +28 -0
  181. package/dist/login/components/LoginContext.js.map +1 -0
  182. package/dist/login/data/api.d.ts +2 -0
  183. package/dist/login/data/api.js +27 -0
  184. package/dist/login/data/api.js.map +1 -0
  185. package/dist/login/data/apiHook.d.ts +13 -0
  186. package/dist/login/data/apiHook.js +57 -0
  187. package/dist/login/data/apiHook.js.map +1 -0
  188. package/dist/login/data/constants.d.ts +17 -0
  189. package/{src → dist}/login/data/constants.js +4 -4
  190. package/dist/login/data/constants.js.map +1 -0
  191. package/dist/login/index.d.ts +1 -0
  192. package/dist/login/index.js +2 -0
  193. package/dist/login/index.js.map +1 -0
  194. package/dist/login/messages.d.ts +198 -0
  195. package/dist/login/messages.js +210 -0
  196. package/dist/login/messages.js.map +1 -0
  197. package/dist/logistration/Logistration.d.ts +5 -0
  198. package/dist/logistration/Logistration.js +80 -0
  199. package/dist/logistration/Logistration.js.map +1 -0
  200. package/dist/progressive-profiling/ProgressiveProfiling.d.ts +2 -0
  201. package/dist/progressive-profiling/ProgressiveProfiling.js +143 -0
  202. package/dist/progressive-profiling/ProgressiveProfiling.js.map +1 -0
  203. package/dist/progressive-profiling/ProgressiveProfilingPageModal.d.ts +13 -0
  204. package/dist/progressive-profiling/ProgressiveProfilingPageModal.js +31 -0
  205. package/dist/progressive-profiling/ProgressiveProfilingPageModal.js.map +1 -0
  206. package/dist/progressive-profiling/components/ProgressiveProfilingContext.d.ts +18 -0
  207. package/dist/progressive-profiling/components/ProgressiveProfilingContext.js +52 -0
  208. package/dist/progressive-profiling/components/ProgressiveProfilingContext.js.map +1 -0
  209. package/dist/progressive-profiling/data/api.d.ts +2 -0
  210. package/dist/progressive-profiling/data/api.js +22 -0
  211. package/dist/progressive-profiling/data/api.js.map +1 -0
  212. package/dist/progressive-profiling/data/apiHook.d.ts +10 -0
  213. package/dist/progressive-profiling/data/apiHook.js +36 -0
  214. package/dist/progressive-profiling/data/apiHook.js.map +1 -0
  215. package/dist/progressive-profiling/index.d.ts +2 -0
  216. package/{src → dist}/progressive-profiling/index.js +1 -3
  217. package/dist/progressive-profiling/index.js.map +1 -0
  218. package/dist/progressive-profiling/messages.d.ts +53 -0
  219. package/dist/progressive-profiling/messages.js +57 -0
  220. package/dist/progressive-profiling/messages.js.map +1 -0
  221. package/dist/provides.d.ts +4 -0
  222. package/dist/provides.js +7 -0
  223. package/dist/provides.js.map +1 -0
  224. package/dist/register/RegistrationFields/CountryField/CountryField.d.ts +38 -0
  225. package/dist/register/RegistrationFields/CountryField/CountryField.js +93 -0
  226. package/dist/register/RegistrationFields/CountryField/CountryField.js.map +1 -0
  227. package/dist/register/RegistrationFields/CountryField/validator.d.ts +8 -0
  228. package/dist/register/RegistrationFields/CountryField/validator.js +29 -0
  229. package/dist/register/RegistrationFields/CountryField/validator.js.map +1 -0
  230. package/dist/register/RegistrationFields/EmailField/EmailField.d.ts +30 -0
  231. package/dist/register/RegistrationFields/EmailField/EmailField.js +88 -0
  232. package/dist/register/RegistrationFields/EmailField/EmailField.js.map +1 -0
  233. package/dist/register/RegistrationFields/EmailField/constants.d.ts +3 -0
  234. package/dist/register/RegistrationFields/EmailField/constants.js +130 -0
  235. package/dist/register/RegistrationFields/EmailField/constants.js.map +1 -0
  236. package/dist/register/RegistrationFields/EmailField/validator.d.ts +17 -0
  237. package/dist/register/RegistrationFields/EmailField/validator.js +107 -0
  238. package/dist/register/RegistrationFields/EmailField/validator.js.map +1 -0
  239. package/dist/register/RegistrationFields/HonorCodeField/HonorCode.d.ts +21 -0
  240. package/dist/register/RegistrationFields/HonorCodeField/HonorCode.js +40 -0
  241. package/dist/register/RegistrationFields/HonorCodeField/HonorCode.js.map +1 -0
  242. package/dist/register/RegistrationFields/NameField/NameField.d.ts +29 -0
  243. package/dist/register/RegistrationFields/NameField/NameField.js +59 -0
  244. package/dist/register/RegistrationFields/NameField/NameField.js.map +1 -0
  245. package/dist/register/RegistrationFields/NameField/validator.d.ts +6 -0
  246. package/dist/register/RegistrationFields/NameField/validator.js +23 -0
  247. package/dist/register/RegistrationFields/NameField/validator.js.map +1 -0
  248. package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.d.ts +16 -0
  249. package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.js +24 -0
  250. package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.js.map +1 -0
  251. package/dist/register/RegistrationFields/UsernameField/UsernameField.d.ts +31 -0
  252. package/dist/register/RegistrationFields/UsernameField/UsernameField.js +119 -0
  253. package/dist/register/RegistrationFields/UsernameField/UsernameField.js.map +1 -0
  254. package/dist/register/RegistrationFields/UsernameField/validator.d.ts +4 -0
  255. package/dist/register/RegistrationFields/UsernameField/validator.js +15 -0
  256. package/dist/register/RegistrationFields/UsernameField/validator.js.map +1 -0
  257. package/dist/register/RegistrationFields/index.d.ts +6 -0
  258. package/{src → dist}/register/RegistrationFields/index.js +1 -0
  259. package/dist/register/RegistrationFields/index.js.map +1 -0
  260. package/dist/register/RegistrationPage.d.ts +18 -0
  261. package/dist/register/RegistrationPage.js +259 -0
  262. package/dist/register/RegistrationPage.js.map +1 -0
  263. package/dist/register/components/ConfigurableRegistrationForm.d.ts +37 -0
  264. package/dist/register/components/ConfigurableRegistrationForm.js +145 -0
  265. package/dist/register/components/ConfigurableRegistrationForm.js.map +1 -0
  266. package/dist/register/components/RegisterContext.d.ts +8 -0
  267. package/dist/register/components/RegisterContext.js +167 -0
  268. package/dist/register/components/RegisterContext.js.map +1 -0
  269. package/dist/register/components/RegistrationFailure.d.ts +19 -0
  270. package/dist/register/components/RegistrationFailure.js +60 -0
  271. package/dist/register/components/RegistrationFailure.js.map +1 -0
  272. package/dist/register/data/api.d.ts +9 -0
  273. package/dist/register/data/api.js +45 -0
  274. package/dist/register/data/api.js.map +1 -0
  275. package/dist/register/data/apiHook.d.ts +33 -0
  276. package/dist/register/data/apiHook.js +66 -0
  277. package/dist/register/data/apiHook.js.map +1 -0
  278. package/dist/register/data/constants.d.ts +11 -0
  279. package/{src → dist}/register/data/constants.js +5 -4
  280. package/dist/register/data/constants.js.map +1 -0
  281. package/dist/register/data/utils.d.ts +6 -0
  282. package/dist/register/data/utils.js +128 -0
  283. package/dist/register/data/utils.js.map +1 -0
  284. package/dist/register/index.d.ts +1 -0
  285. package/dist/register/index.js +2 -0
  286. package/dist/register/index.js.map +1 -0
  287. package/dist/register/messages.d.ts +203 -0
  288. package/dist/register/messages.js +215 -0
  289. package/dist/register/messages.js.map +1 -0
  290. package/dist/register/types.d.ts +74 -0
  291. package/dist/register/types.js +2 -0
  292. package/dist/register/types.js.map +1 -0
  293. package/dist/reset-password/ResetPasswordFailure.d.ts +15 -0
  294. package/dist/reset-password/ResetPasswordFailure.js +44 -0
  295. package/dist/reset-password/ResetPasswordFailure.js.map +1 -0
  296. package/dist/reset-password/ResetPasswordPage.d.ts +2 -0
  297. package/dist/reset-password/ResetPasswordPage.js +182 -0
  298. package/dist/reset-password/ResetPasswordPage.js.map +1 -0
  299. package/dist/reset-password/ResetPasswordSuccess.d.ts +2 -0
  300. package/dist/reset-password/ResetPasswordSuccess.js +10 -0
  301. package/dist/reset-password/ResetPasswordSuccess.js.map +1 -0
  302. package/dist/reset-password/data/api.d.ts +4 -0
  303. package/dist/reset-password/data/api.js +57 -0
  304. package/dist/reset-password/data/api.js.map +1 -0
  305. package/dist/reset-password/data/apiHook.d.ts +31 -0
  306. package/dist/reset-password/data/apiHook.js +74 -0
  307. package/dist/reset-password/data/apiHook.js.map +1 -0
  308. package/dist/reset-password/data/constants.d.ts +13 -0
  309. package/{src → dist}/reset-password/data/constants.js +6 -7
  310. package/dist/reset-password/data/constants.js.map +1 -0
  311. package/dist/reset-password/index.d.ts +1 -0
  312. package/dist/reset-password/index.js +2 -0
  313. package/dist/reset-password/index.js.map +1 -0
  314. package/dist/reset-password/messages.d.ts +83 -0
  315. package/dist/reset-password/messages.js +87 -0
  316. package/dist/reset-password/messages.js.map +1 -0
  317. package/dist/routes.d.ts +19 -0
  318. package/dist/routes.js +76 -0
  319. package/dist/routes.js.map +1 -0
  320. package/{src → dist}/sass/_base_component.scss +57 -54
  321. package/{src → dist}/sass/_progressive_profiling_page.scss +1 -3
  322. package/{src → dist}/sass/_registration.scss +15 -18
  323. package/{src → dist}/sass/_style.scss +40 -43
  324. package/dist/slots/LoginComponentSlot/index.d.ts +12 -0
  325. package/dist/slots/LoginComponentSlot/index.js +11 -0
  326. package/dist/slots/LoginComponentSlot/index.js.map +1 -0
  327. package/package.json +38 -16
  328. package/src/Main.tsx +0 -23
  329. package/src/__mocks__/file.js +0 -1
  330. package/src/__mocks__/svg.js +0 -1
  331. package/src/app.scss +0 -6
  332. package/src/app.ts +0 -43
  333. package/src/base-container/components/default-layout/DefaultLayout.test.jsx +0 -48
  334. package/src/base-container/components/default-layout/LargeLayout.jsx +0 -42
  335. package/src/base-container/components/default-layout/MediumLayout.jsx +0 -49
  336. package/src/base-container/components/default-layout/SmallLayout.jsx +0 -37
  337. package/src/base-container/components/default-layout/messages.js +0 -16
  338. package/src/base-container/components/image-layout/ExtraSmallLayout.jsx +0 -31
  339. package/src/base-container/components/image-layout/LargeLayout.jsx +0 -32
  340. package/src/base-container/components/image-layout/MediumLayout.jsx +0 -32
  341. package/src/base-container/components/image-layout/SmallLayout.jsx +0 -31
  342. package/src/base-container/components/image-layout/messages.js +0 -16
  343. package/src/base-container/components/welcome-page-layout/LargeLayout.jsx +0 -46
  344. package/src/base-container/components/welcome-page-layout/MediumLayout.jsx +0 -49
  345. package/src/base-container/components/welcome-page-layout/SmallLayout.jsx +0 -38
  346. package/src/base-container/components/welcome-page-layout/messages.js +0 -21
  347. package/src/base-container/index.jsx +0 -70
  348. package/src/base-container/tests/BaseContainer.test.jsx +0 -44
  349. package/src/common-components/EmbeddedRegistrationRoute.jsx +0 -26
  350. package/src/common-components/EnterpriseSSO.jsx +0 -110
  351. package/src/common-components/FormGroup.jsx +0 -106
  352. package/src/common-components/InstitutionLogistration.jsx +0 -102
  353. package/src/common-components/NotFoundPage.jsx +0 -15
  354. package/src/common-components/PasswordField.jsx +0 -175
  355. package/src/common-components/RedirectLogistration.jsx +0 -94
  356. package/src/common-components/RegisterFaIcons.jsx +0 -8
  357. package/src/common-components/SocialAuthProviders.jsx +0 -75
  358. package/src/common-components/ThirdPartyAuth.jsx +0 -123
  359. package/src/common-components/ThirdPartyAuthAlert.jsx +0 -49
  360. package/src/common-components/UnAuthOnlyRoute.jsx +0 -41
  361. package/src/common-components/data/actions.js +0 -27
  362. package/src/common-components/data/reducers.js +0 -63
  363. package/src/common-components/data/sagas.js +0 -32
  364. package/src/common-components/data/selectors.js +0 -28
  365. package/src/common-components/data/service.js +0 -23
  366. package/src/common-components/data/tests/reducer.test.js +0 -82
  367. package/src/common-components/data/tests/sagas.test.js +0 -71
  368. package/src/common-components/messages.jsx +0 -127
  369. package/src/common-components/tests/EmbeddedRegistrationRoute.test.jsx +0 -76
  370. package/src/common-components/tests/FormField.test.jsx +0 -289
  371. package/src/common-components/tests/SocialAuthProviders.test.jsx +0 -75
  372. package/src/common-components/tests/ThirdPartyAuthAlert.test.jsx +0 -39
  373. package/src/common-components/tests/UnAuthOnlyRoute.test.jsx +0 -73
  374. package/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap +0 -156
  375. package/src/common-components/tests/__snapshots__/ThirdPartyAuthAlert.test.jsx.snap +0 -53
  376. package/src/constants.ts +0 -1
  377. package/src/data/configureStore.js +0 -33
  378. package/src/data/oneTrust.js +0 -3
  379. package/src/data/reducers.js +0 -36
  380. package/src/data/sagas.js +0 -19
  381. package/src/data/tests/cookies.test.js +0 -42
  382. package/src/data/tests/dataUtils.test.js +0 -19
  383. package/src/data/tests/reduxUtils.test.js +0 -14
  384. package/src/data/utils/cookies.js +0 -12
  385. package/src/data/utils/dataUtils.js +0 -81
  386. package/src/data/utils/index.js +0 -11
  387. package/src/data/utils/reduxUtils.js +0 -34
  388. package/src/data/utils/useMobileResponsive.js +0 -24
  389. package/src/field-renderer/FieldRenderer.jsx +0 -156
  390. package/src/field-renderer/tests/FieldRenderer.test.jsx +0 -201
  391. package/src/forgot-password/ForgotPasswordAlert.jsx +0 -97
  392. package/src/forgot-password/ForgotPasswordPage.jsx +0 -193
  393. package/src/forgot-password/data/actions.js +0 -32
  394. package/src/forgot-password/data/reducers.js +0 -58
  395. package/src/forgot-password/data/sagas.js +0 -35
  396. package/src/forgot-password/data/selectors.js +0 -10
  397. package/src/forgot-password/data/service.js +0 -21
  398. package/src/forgot-password/data/tests/reducers.test.js +0 -34
  399. package/src/forgot-password/data/tests/sagas.test.js +0 -67
  400. package/src/forgot-password/index.js +0 -5
  401. package/src/forgot-password/messages.js +0 -128
  402. package/src/forgot-password/tests/ForgotPasswordPage.test.jsx +0 -269
  403. package/src/i18n/index.js +0 -25
  404. package/src/login/AccountActivationMessage.jsx +0 -78
  405. package/src/login/ChangePasswordPrompt.jsx +0 -91
  406. package/src/login/LoginFailure.jsx +0 -231
  407. package/src/login/LoginPage.jsx +0 -368
  408. package/src/login/data/actions.js +0 -39
  409. package/src/login/data/reducers.js +0 -76
  410. package/src/login/data/sagas.js +0 -45
  411. package/src/login/data/service.js +0 -24
  412. package/src/login/data/tests/reducers.test.js +0 -155
  413. package/src/login/data/tests/sagas.test.js +0 -110
  414. package/src/login/index.js +0 -5
  415. package/src/login/messages.jsx +0 -211
  416. package/src/login/tests/AccountActivationMessage.test.jsx +0 -122
  417. package/src/login/tests/ChangePasswordPrompt.test.jsx +0 -75
  418. package/src/login/tests/LoginFailure.test.jsx +0 -323
  419. package/src/login/tests/LoginPage.test.jsx +0 -839
  420. package/src/logistration/Logistration.jsx +0 -189
  421. package/src/logistration/Logistration.test.jsx +0 -275
  422. package/src/progressive-profiling/ProgressiveProfiling.jsx +0 -313
  423. package/src/progressive-profiling/ProgressiveProfilingPageModal.jsx +0 -56
  424. package/src/progressive-profiling/data/actions.js +0 -22
  425. package/src/progressive-profiling/data/reducers.js +0 -38
  426. package/src/progressive-profiling/data/sagas.js +0 -24
  427. package/src/progressive-profiling/data/selectors.js +0 -14
  428. package/src/progressive-profiling/data/service.js +0 -17
  429. package/src/progressive-profiling/messages.jsx +0 -57
  430. package/src/progressive-profiling/tests/ProgressiveProfiling.test.jsx +0 -322
  431. package/src/register/RegistrationFields/CountryField/CountryField.jsx +0 -164
  432. package/src/register/RegistrationFields/CountryField/CountryField.test.jsx +0 -204
  433. package/src/register/RegistrationFields/CountryField/validator.js +0 -32
  434. package/src/register/RegistrationFields/EmailField/EmailField.jsx +0 -140
  435. package/src/register/RegistrationFields/EmailField/EmailField.test.jsx +0 -236
  436. package/src/register/RegistrationFields/EmailField/constants.js +0 -131
  437. package/src/register/RegistrationFields/EmailField/validator.js +0 -126
  438. package/src/register/RegistrationFields/EmailField/validator.test.js +0 -39
  439. package/src/register/RegistrationFields/HonorCodeField/HonorCode.jsx +0 -104
  440. package/src/register/RegistrationFields/HonorCodeField/HonorCode.test.jsx +0 -70
  441. package/src/register/RegistrationFields/NameField/NameField.jsx +0 -68
  442. package/src/register/RegistrationFields/NameField/NameField.test.jsx +0 -146
  443. package/src/register/RegistrationFields/NameField/validator.js +0 -22
  444. package/src/register/RegistrationFields/TermsOfServiceField/TermsOfService.jsx +0 -58
  445. package/src/register/RegistrationFields/TermsOfServiceField/TermsOfService.test.jsx +0 -55
  446. package/src/register/RegistrationFields/UsernameField/UsernameField.jsx +0 -162
  447. package/src/register/RegistrationFields/UsernameField/UsernameField.test.jsx +0 -319
  448. package/src/register/RegistrationFields/UsernameField/validator.js +0 -16
  449. package/src/register/RegistrationPage.jsx +0 -428
  450. package/src/register/RegistrationPage.test.jsx +0 -854
  451. package/src/register/components/ConfigurableRegistrationForm.jsx +0 -244
  452. package/src/register/components/RegistrationFailure.jsx +0 -80
  453. package/src/register/components/tests/ConfigurableRegistrationForm.test.jsx +0 -401
  454. package/src/register/components/tests/RegistrationFailure.test.jsx +0 -212
  455. package/src/register/components/tests/ThirdPartyAuth.test.jsx +0 -439
  456. package/src/register/data/actions.js +0 -85
  457. package/src/register/data/reducers.js +0 -140
  458. package/src/register/data/sagas.js +0 -58
  459. package/src/register/data/selectors.js +0 -34
  460. package/src/register/data/service.js +0 -45
  461. package/src/register/data/tests/reducers.test.js +0 -277
  462. package/src/register/data/tests/sagas.test.js +0 -239
  463. package/src/register/data/tests/utils.test.js +0 -98
  464. package/src/register/data/utils.js +0 -153
  465. package/src/register/index.js +0 -4
  466. package/src/register/messages.jsx +0 -206
  467. package/src/reset-password/ResetPasswordFailure.jsx +0 -55
  468. package/src/reset-password/ResetPasswordPage.jsx +0 -224
  469. package/src/reset-password/ResetPasswordSuccess.jsx +0 -19
  470. package/src/reset-password/data/actions.js +0 -50
  471. package/src/reset-password/data/reducers.js +0 -44
  472. package/src/reset-password/data/sagas.js +0 -67
  473. package/src/reset-password/data/selectors.js +0 -10
  474. package/src/reset-password/data/service.js +0 -61
  475. package/src/reset-password/data/tests/sagas.test.js +0 -185
  476. package/src/reset-password/index.js +0 -5
  477. package/src/reset-password/messages.js +0 -88
  478. package/src/reset-password/tests/ResetPasswordPage.test.jsx +0 -241
  479. package/src/routes.jsx +0 -79
  480. package/src/setupTest.js +0 -68
  481. /package/{src → dist}/base-container/components/image-layout/index.scss +0 -0
  482. /package/{src → dist}/sass/_forgot_password.scss +0 -0
  483. /package/{src → dist}/sass/_login_page.scss +0 -0
  484. /package/{src → dist}/sass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G,KAAK,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;AACnD,CAAC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,WAAW,EACX,sBAAsB,EACtB,+BAA+B,EAC/B,qBAAqB,EACrB,WAAW,EACX,EAAE;IACF,IAAI,OAAO,qBAAQ,WAAW,CAAE,CAAC;IACjC,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;QACxD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,CAAC,SAAS,CAAC,GAAG,sBAAsB,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC;QACrE,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,SAAS,CAAC,GAAG,sBAAsB,CAAC,SAAS,CAAC,CAAC;QACzD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,wEAAwE;IACxE,IAAI,CAAC,+BAA+B,EAAE,CAAC;QACrC,OAAO,OAAO,CAAC,oBAAoB,CAAC;IACtC,CAAC;IAED,OAAO,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;IACtD,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IAEnC,kCAAkC;IAClC,OAAO,mCAAQ,OAAO,GAAK,WAAW,CAAE,CAAC;IACzC,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import { snakeCaseObject } from '@openedx/frontend-base';\n\nimport { LETTER_REGEX, NUMBER_REGEX } from '../../data/constants';\nimport messages from '../messages';\nimport validateEmail from '../RegistrationFields/EmailField/validator';\nimport validateName from '../RegistrationFields/NameField/validator';\nimport validateUsername from '../RegistrationFields/UsernameField/validator';\n\n/**\n * It validates the password field value\n * @param value\n * @param formatMessage\n * @returns {string}\n */\nexport const validatePasswordField = (value, formatMessage) => {\n let fieldError = '';\n if (!value || !LETTER_REGEX.test(value) || !NUMBER_REGEX.test(value) || value.length < 8) {\n fieldError = formatMessage(messages['password.validation.message']);\n }\n return fieldError;\n};\n\n/**\n * It accepts complete registration data as payload and checks if the form is valid.\n * @param payload\n * @param errors\n * @param configurableFormFields\n * @param fieldDescriptions\n * @param formatMessage\n * @returns {{fieldErrors, isValid: boolean}}\n */\nexport const isFormValid = (\n payload,\n errors,\n configurableFormFields,\n fieldDescriptions,\n formatMessage,\n) => {\n const fieldErrors = { ...errors };\n let isValid = true;\n let emailSuggestion = { suggestion: '', type: '' };\n\n Object.keys(payload).forEach(key => {\n switch (key) {\n case 'name':\n fieldErrors.name ||= validateName(payload.name, formatMessage);\n if (fieldErrors.name) {\n isValid = false;\n }\n break;\n case 'email': {\n if (!fieldErrors.email) {\n const {\n fieldError, confirmEmailError, suggestion,\n } = validateEmail(payload.email, configurableFormFields?.confirm_email, formatMessage);\n if (fieldError) {\n fieldErrors.email = fieldError;\n isValid = false;\n }\n if (confirmEmailError) {\n fieldErrors.confirm_email = confirmEmailError;\n isValid = false;\n }\n emailSuggestion = suggestion;\n }\n if (fieldErrors.email) {\n isValid = false;\n }\n break;\n }\n case 'username':\n fieldErrors.username ||= validateUsername(payload.username, formatMessage);\n if (fieldErrors.username) {\n isValid = false;\n }\n break;\n case 'password':\n fieldErrors.password ||= validatePasswordField(payload.password, formatMessage);\n if (fieldErrors.password) {\n isValid = false;\n }\n break;\n default:\n break;\n }\n });\n\n // Don't validate when country field is optional or hidden and not present on registration form\n if (configurableFormFields?.country && !configurableFormFields.country?.displayValue) {\n fieldErrors.country = formatMessage(messages['empty.country.field.error']);\n isValid = false;\n } else if (configurableFormFields?.country && !configurableFormFields.country?.countryCode) {\n fieldErrors.country = formatMessage(messages['invalid.country.field.error']);\n isValid = false;\n }\n\n Object.keys(fieldDescriptions).forEach(key => {\n if (key === 'country' && !configurableFormFields?.country?.displayValue) {\n fieldErrors[key] = formatMessage(messages['empty.country.field.error']);\n } else if (!configurableFormFields[key]) {\n fieldErrors[key] = fieldDescriptions[key].error_message;\n }\n if (fieldErrors[key]) {\n isValid = false;\n }\n });\n\n return { isValid, fieldErrors, emailSuggestion };\n};\n\n/**\n * It prepares a payload for registration data that can be passed to registration API endpoint.\n * @param initPayload\n * @param configurableFormFields\n * @param showMarketingEmailOptInCheckbox\n * @param totalRegistrationTime\n * @param queryParams\n * @returns {*}\n */\nexport const prepareRegistrationPayload = (\n initPayload,\n configurableFormFields,\n showMarketingEmailOptInCheckbox,\n totalRegistrationTime,\n queryParams,\n) => {\n let payload = { ...initPayload };\n Object.keys(configurableFormFields).forEach((fieldName) => {\n if (fieldName === 'country') {\n payload[fieldName] = configurableFormFields[fieldName].countryCode;\n } else {\n payload[fieldName] = configurableFormFields[fieldName];\n }\n });\n\n // Don't send the marketing email opt-in value if the flag is turned off\n if (!showMarketingEmailOptInCheckbox) {\n delete payload.marketingEmailsOptIn;\n }\n\n payload.totalRegistrationTime = totalRegistrationTime;\n payload = snakeCaseObject(payload);\n\n // add query params to the payload\n payload = { ...payload, ...queryParams };\n return payload;\n};\n"]}
@@ -0,0 +1 @@
1
+ export { default as RegistrationPage } from "./RegistrationPage";
@@ -0,0 +1,2 @@
1
+ export { default as RegistrationPage } from './RegistrationPage';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/register/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { default as RegistrationPage } from './RegistrationPage';\n"]}
@@ -0,0 +1,203 @@
1
+ export default messages;
2
+ declare const messages: {
3
+ 'register.page.title': {
4
+ id: string;
5
+ defaultMessage: string;
6
+ description: string;
7
+ };
8
+ 'registration.fullname.label': {
9
+ id: string;
10
+ defaultMessage: string;
11
+ description: string;
12
+ };
13
+ 'registration.email.label': {
14
+ id: string;
15
+ defaultMessage: string;
16
+ description: string;
17
+ };
18
+ 'registration.username.label': {
19
+ id: string;
20
+ defaultMessage: string;
21
+ description: string;
22
+ };
23
+ 'registration.password.label': {
24
+ id: string;
25
+ defaultMessage: string;
26
+ description: string;
27
+ };
28
+ 'registration.country.label': {
29
+ id: string;
30
+ defaultMessage: string;
31
+ description: string;
32
+ };
33
+ 'registration.opt.in.label': {
34
+ id: string;
35
+ defaultMessage: string;
36
+ description: string;
37
+ };
38
+ 'help.text.name': {
39
+ id: string;
40
+ defaultMessage: string;
41
+ description: string;
42
+ };
43
+ 'help.text.username.1': {
44
+ id: string;
45
+ defaultMessage: string;
46
+ description: string;
47
+ };
48
+ 'help.text.username.2': {
49
+ id: string;
50
+ defaultMessage: string;
51
+ description: string;
52
+ };
53
+ 'help.text.email': {
54
+ id: string;
55
+ defaultMessage: string;
56
+ description: string;
57
+ };
58
+ 'create.account.for.free.button': {
59
+ id: string;
60
+ defaultMessage: string;
61
+ description: string;
62
+ };
63
+ 'create.account.cta.button': {
64
+ id: string;
65
+ defaultMessage: string;
66
+ description: string;
67
+ };
68
+ 'register.institution.login.page.title': {
69
+ id: string;
70
+ defaultMessage: string;
71
+ description: string;
72
+ };
73
+ 'empty.name.field.error': {
74
+ id: string;
75
+ defaultMessage: string;
76
+ description: string;
77
+ };
78
+ 'empty.email.field.error': {
79
+ id: string;
80
+ defaultMessage: string;
81
+ description: string;
82
+ };
83
+ 'empty.username.field.error': {
84
+ id: string;
85
+ defaultMessage: string;
86
+ description: string;
87
+ };
88
+ 'empty.password.field.error': {
89
+ id: string;
90
+ defaultMessage: string;
91
+ description: string;
92
+ };
93
+ 'empty.country.field.error': {
94
+ id: string;
95
+ defaultMessage: string;
96
+ description: string;
97
+ };
98
+ 'invalid.country.field.error': {
99
+ id: string;
100
+ defaultMessage: string;
101
+ description: string;
102
+ };
103
+ 'email.do.not.match': {
104
+ id: string;
105
+ defaultMessage: string;
106
+ description: string;
107
+ };
108
+ 'email.invalid.format.error': {
109
+ id: string;
110
+ defaultMessage: string;
111
+ description: string;
112
+ };
113
+ 'username.validation.message': {
114
+ id: string;
115
+ defaultMessage: string;
116
+ description: string;
117
+ };
118
+ 'name.validation.message': {
119
+ id: string;
120
+ defaultMessage: string;
121
+ description: string;
122
+ };
123
+ 'name.validation.length.message': {
124
+ id: string;
125
+ defaultMessage: string;
126
+ description: string;
127
+ };
128
+ 'password.validation.message': {
129
+ id: string;
130
+ defaultMessage: string;
131
+ description: string;
132
+ };
133
+ 'username.format.validation.message': {
134
+ id: string;
135
+ defaultMessage: string;
136
+ description: string;
137
+ };
138
+ 'registration.request.failure.header': {
139
+ id: string;
140
+ defaultMessage: string;
141
+ description: string;
142
+ };
143
+ 'registration.empty.form.submission.error': {
144
+ id: string;
145
+ defaultMessage: string;
146
+ description: string;
147
+ };
148
+ 'registration.request.server.error': {
149
+ id: string;
150
+ defaultMessage: string;
151
+ description: string;
152
+ };
153
+ 'registration.rate.limit.error': {
154
+ id: string;
155
+ defaultMessage: string;
156
+ description: string;
157
+ };
158
+ 'registration.tpa.session.expired': {
159
+ id: string;
160
+ defaultMessage: string;
161
+ description: string;
162
+ };
163
+ 'registration.forbidden.username': {
164
+ id: string;
165
+ defaultMessage: string;
166
+ description: string;
167
+ };
168
+ 'registration.tpa.authentication.failure': {
169
+ id: string;
170
+ defaultMessage: string;
171
+ description: string;
172
+ };
173
+ 'terms.of.service.and.honor.code': {
174
+ id: string;
175
+ defaultMessage: string;
176
+ description: string;
177
+ };
178
+ 'privacy.policy': {
179
+ id: string;
180
+ defaultMessage: string;
181
+ description: string;
182
+ };
183
+ 'honor.code': {
184
+ id: string;
185
+ defaultMessage: string;
186
+ description: string;
187
+ };
188
+ 'terms.of.service': {
189
+ id: string;
190
+ defaultMessage: string;
191
+ description: string;
192
+ };
193
+ 'registration.username.suggestion.label': {
194
+ id: string;
195
+ defaultMessage: string;
196
+ description: string;
197
+ };
198
+ 'did.you.mean.alert.text': {
199
+ id: string;
200
+ defaultMessage: string;
201
+ description: string;
202
+ };
203
+ };
@@ -0,0 +1,215 @@
1
+ import { defineMessages } from '@openedx/frontend-base';
2
+ const messages = defineMessages({
3
+ 'register.page.title': {
4
+ id: 'register.page.title',
5
+ defaultMessage: 'Register | {siteName}',
6
+ description: 'register page title',
7
+ },
8
+ // Field labels
9
+ 'registration.fullname.label': {
10
+ id: 'registration.fullname.label',
11
+ defaultMessage: 'Full name',
12
+ description: 'Label that appears above fullname field',
13
+ },
14
+ 'registration.email.label': {
15
+ id: 'registration.email.label',
16
+ defaultMessage: 'Email',
17
+ description: 'Label that appears above email field on register page',
18
+ },
19
+ 'registration.username.label': {
20
+ id: 'registration.username.label',
21
+ defaultMessage: 'Public username',
22
+ description: 'Label that appears above username field',
23
+ },
24
+ 'registration.password.label': {
25
+ id: 'registration.password.label',
26
+ defaultMessage: 'Password',
27
+ description: 'Label that appears above password field',
28
+ },
29
+ 'registration.country.label': {
30
+ id: 'registration.country.label',
31
+ defaultMessage: 'Country/Region',
32
+ description: 'Placeholder for the country options dropdown.',
33
+ },
34
+ 'registration.opt.in.label': {
35
+ id: 'registration.opt.in.label',
36
+ defaultMessage: 'I agree that {siteName} may send me marketing messages.',
37
+ description: 'Text for opt in option on register page.',
38
+ },
39
+ // Help text
40
+ 'help.text.name': {
41
+ id: 'help.text.name',
42
+ defaultMessage: 'This name will be used by any certificates that you earn.',
43
+ description: 'Help text for fullname field on registration page',
44
+ },
45
+ 'help.text.username.1': {
46
+ id: 'help.text.username.1',
47
+ defaultMessage: 'The name that will identify you in your courses.',
48
+ description: 'Part of help text for username field on registration page',
49
+ },
50
+ 'help.text.username.2': {
51
+ id: 'help.text.username.2',
52
+ defaultMessage: 'This can not be changed later.',
53
+ description: 'Part of help text for username field on registration page',
54
+ },
55
+ 'help.text.email': {
56
+ id: 'help.text.email',
57
+ defaultMessage: 'For account activation and important updates',
58
+ description: 'Help text for email field on registration page',
59
+ },
60
+ // Form buttons
61
+ 'create.account.for.free.button': {
62
+ id: 'create.account.for.free.button',
63
+ defaultMessage: 'Create an account for free',
64
+ description: 'Label text for registration form submission button',
65
+ },
66
+ 'create.account.cta.button': {
67
+ id: 'create.account.cta.button',
68
+ defaultMessage: '{label}',
69
+ description: 'Label text for registration form submission button for those users who are landing through redirections',
70
+ },
71
+ // Institution login
72
+ 'register.institution.login.page.title': {
73
+ id: 'register.institution.login.page.title',
74
+ defaultMessage: 'Register with institution/campus credentials',
75
+ description: 'Heading of institution page',
76
+ },
77
+ // Validation messages
78
+ 'empty.name.field.error': {
79
+ id: 'empty.name.field.error',
80
+ defaultMessage: 'Enter your full name',
81
+ description: 'Error message for empty fullname field',
82
+ },
83
+ 'empty.email.field.error': {
84
+ id: 'empty.email.field.error',
85
+ defaultMessage: 'Enter your email',
86
+ description: 'Error message for empty email field',
87
+ },
88
+ 'empty.username.field.error': {
89
+ id: 'empty.username.field.error',
90
+ defaultMessage: 'Username must be between 2 and 30 characters',
91
+ description: 'Error message for empty username field',
92
+ },
93
+ 'empty.password.field.error': {
94
+ id: 'empty.password.field.error',
95
+ defaultMessage: 'Password criteria has not been met',
96
+ description: 'Error message for empty password field',
97
+ },
98
+ 'empty.country.field.error': {
99
+ id: 'empty.country.field.error',
100
+ defaultMessage: 'Select your country or region of residence',
101
+ description: 'Error message when no country/region is selected',
102
+ },
103
+ 'invalid.country.field.error': {
104
+ id: 'invalid.country.field.error',
105
+ defaultMessage: 'Country must match with an option available in the dropdown.',
106
+ description: 'Error message when country is invalid',
107
+ },
108
+ 'email.do.not.match': {
109
+ id: 'email.do.not.match',
110
+ defaultMessage: 'The email addresses do not match.',
111
+ description: 'Email not match to confirm email',
112
+ },
113
+ 'email.invalid.format.error': {
114
+ id: 'email.invalid.format.error',
115
+ defaultMessage: 'Enter a valid email address',
116
+ description: 'Validation error for invalid email address',
117
+ },
118
+ 'username.validation.message': {
119
+ id: 'username.validation.message',
120
+ defaultMessage: 'Username must be between 2 and 30 characters',
121
+ description: 'Error message for empty username field',
122
+ },
123
+ 'name.validation.message': {
124
+ id: 'name.validation.message',
125
+ defaultMessage: 'Enter a valid name',
126
+ description: 'Validation message that appears when fullname contain URL',
127
+ },
128
+ 'name.validation.length.message': {
129
+ id: 'registration.name.validation.length.message',
130
+ defaultMessage: 'Full name cannot be longer than {limit} characters',
131
+ description: 'Validation message that appears when the full name exceeds the character limit',
132
+ },
133
+ 'password.validation.message': {
134
+ id: 'password.validation.message',
135
+ defaultMessage: 'Password criteria has not been met',
136
+ description: 'Error message for empty or invalid password',
137
+ },
138
+ 'username.format.validation.message': {
139
+ id: 'username.format.validation.message',
140
+ defaultMessage: 'Usernames can only contain letters (A-Z, a-z), numerals (0-9), underscores (_), and hyphens (-). Usernames cannot contain spaces',
141
+ description: 'Validation message that appears when username format is invalid',
142
+ },
143
+ // Error messages
144
+ 'registration.request.failure.header': {
145
+ id: 'registration.request.failure.header',
146
+ defaultMessage: 'We couldn\'t create your account.',
147
+ description: 'error message when registration failure.',
148
+ },
149
+ 'registration.empty.form.submission.error': {
150
+ id: 'registration.empty.form.submission.error',
151
+ defaultMessage: 'Please check your responses and try again.',
152
+ description: 'Error message that appears on top of the form when empty form is submitted',
153
+ },
154
+ 'registration.request.server.error': {
155
+ id: 'registration.request.server.error',
156
+ defaultMessage: 'An error has occurred. Try refreshing the page, or check your internet connection.',
157
+ description: 'Error message for internal server error.',
158
+ },
159
+ 'registration.rate.limit.error': {
160
+ id: 'registration.rate.limit.error',
161
+ defaultMessage: 'Too many failed registration attempts. Try again later.',
162
+ description: 'Error message that appears when an anonymous user has made too many failed registration attempts',
163
+ },
164
+ 'registration.tpa.session.expired': {
165
+ id: 'registration.tpa.session.expired',
166
+ defaultMessage: 'Registration using {provider} has timed out.',
167
+ description: 'Error message that appears when a user has not registered in the required timeframe for the registration method they chose.',
168
+ },
169
+ 'registration.forbidden.username': {
170
+ id: 'registration.forbidden.username',
171
+ defaultMessage: 'Usernames can\'t include words that could be mistaken for course roles. Please choose a different username.',
172
+ description: 'Error message when a user tries to register with a username that contains forbidden words',
173
+ },
174
+ 'registration.tpa.authentication.failure': {
175
+ id: 'registration.tpa.authentication.failure',
176
+ defaultMessage: 'We are sorry, you are not authorized to access {platform_name} via this channel. '
177
+ + 'Please contact your learning administrator or manager in order to access {platform_name}.'
178
+ + '{lineBreak}{lineBreak}Error Details:{lineBreak}{errorMessage}',
179
+ description: 'Error message third party authentication pipeline fails',
180
+ },
181
+ // Terms of Service and Honor Code
182
+ 'terms.of.service.and.honor.code': {
183
+ id: 'terms.of.service.and.honor.code',
184
+ defaultMessage: 'Terms of Service and Honor Code',
185
+ description: 'Text for the hyperlink that redirects user to terms of service and honor code',
186
+ },
187
+ 'privacy.policy': {
188
+ id: 'privacy.policy',
189
+ defaultMessage: 'Privacy Policy',
190
+ description: 'Text for the hyperlink that redirects user to privacy policy',
191
+ },
192
+ 'honor.code': {
193
+ id: 'honor.code',
194
+ defaultMessage: 'Honor Code',
195
+ description: 'Text for the hyperlink that redirects user to the honor code',
196
+ },
197
+ 'terms.of.service': {
198
+ id: 'terms.of.service',
199
+ defaultMessage: 'Terms of Service',
200
+ description: 'Text for the hyperlink that redirects user to the terms of service',
201
+ },
202
+ // miscellaneous strings
203
+ 'registration.username.suggestion.label': {
204
+ id: 'registration.username.suggestion.label',
205
+ defaultMessage: 'Suggested:',
206
+ description: 'Suggested usernames label text.',
207
+ },
208
+ 'did.you.mean.alert.text': {
209
+ id: 'did.you.mean.alert.text',
210
+ defaultMessage: 'Did you mean',
211
+ description: 'Did you mean alert suggestion',
212
+ },
213
+ });
214
+ export default messages;
215
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/register/messages.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,qBAAqB,EAAE;QACrB,EAAE,EAAE,qBAAqB;QACzB,cAAc,EAAE,uBAAuB;QACvC,WAAW,EAAE,q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AAc,EAAE,iCAAiC;QACjD,WAAW,EAAE,+EAA+E;KAC7F;IACD,gBAAgB,EAAE;QAChB,EAAE,EAAE,gBAAgB;QACpB,cAAc,EAAE,gBAAgB;QAChC,WAAW,EAAE,8DAA8D;KAC5E;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,YAAY;QAChB,cAAc,EAAE,YAAY;QAC5B,WAAW,EAAE,8DAA8D;KAC5E;IACD,kBAAkB,EAAE;QAClB,EAAE,EAAE,kBAAkB;QACtB,cAAc,EAAE,kBAAkB;QAClC,WAAW,EAAE,oEAAoE;KAClF;IACD,wBAAwB;IACxB,wCAAwC,EAAE;QACxC,EAAE,EAAE,wCAAwC;QAC5C,cAAc,EAAE,YAAY;QAC5B,WAAW,EAAE,iCAAiC;KAC/C;IACD,yBAAyB,EAAE;QACzB,EAAE,EAAE,yBAAyB;QAC7B,cAAc,EAAE,cAAc;QAC9B,WAAW,EAAE,+BAA+B;KAC7C;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { defineMessages } from '@openedx/frontend-base';\n\nconst messages = defineMessages({\n 'register.page.title': {\n id: 'register.page.title',\n defaultMessage: 'Register | {siteName}',\n description: 'register page title',\n },\n // Field labels\n 'registration.fullname.label': {\n id: 'registration.fullname.label',\n defaultMessage: 'Full name',\n description: 'Label that appears above fullname field',\n },\n 'registration.email.label': {\n id: 'registration.email.label',\n defaultMessage: 'Email',\n description: 'Label that appears above email field on register page',\n },\n 'registration.username.label': {\n id: 'registration.username.label',\n defaultMessage: 'Public username',\n description: 'Label that appears above username field',\n },\n 'registration.password.label': {\n id: 'registration.password.label',\n defaultMessage: 'Password',\n description: 'Label that appears above password field',\n },\n 'registration.country.label': {\n id: 'registration.country.label',\n defaultMessage: 'Country/Region',\n description: 'Placeholder for the country options dropdown.',\n },\n 'registration.opt.in.label': {\n id: 'registration.opt.in.label',\n defaultMessage: 'I agree that {siteName} may send me marketing messages.',\n description: 'Text for opt in option on register page.',\n },\n // Help text\n 'help.text.name': {\n id: 'help.text.name',\n defaultMessage: 'This name will be used by any certificates that you earn.',\n description: 'Help text for fullname field on registration page',\n },\n 'help.text.username.1': {\n id: 'help.text.username.1',\n defaultMessage: 'The name that will identify you in your courses.',\n description: 'Part of help text for username field on registration page',\n },\n 'help.text.username.2': {\n id: 'help.text.username.2',\n defaultMessage: 'This can not be changed later.',\n description: 'Part of help text for username field on registration page',\n },\n 'help.text.email': {\n id: 'help.text.email',\n defaultMessage: 'For account activation and important updates',\n description: 'Help text for email field on registration page',\n },\n // Form buttons\n 'create.account.for.free.button': {\n id: 'create.account.for.free.button',\n defaultMessage: 'Create an account for free',\n description: 'Label text for registration form submission button',\n },\n 'create.account.cta.button': {\n id: 'create.account.cta.button',\n defaultMessage: '{label}',\n description: 'Label text for registration form submission button for those users who are landing through redirections',\n },\n // Institution login\n 'register.institution.login.page.title': {\n id: 'register.institution.login.page.title',\n defaultMessage: 'Register with institution/campus credentials',\n description: 'Heading of institution page',\n },\n // Validation messages\n 'empty.name.field.error': {\n id: 'empty.name.field.error',\n defaultMessage: 'Enter your full name',\n description: 'Error message for empty fullname field',\n },\n 'empty.email.field.error': {\n id: 'empty.email.field.error',\n defaultMessage: 'Enter your email',\n description: 'Error message for empty email field',\n },\n 'empty.username.field.error': {\n id: 'empty.username.field.error',\n defaultMessage: 'Username must be between 2 and 30 characters',\n description: 'Error message for empty username field',\n },\n 'empty.password.field.error': {\n id: 'empty.password.field.error',\n defaultMessage: 'Password criteria has not been met',\n description: 'Error message for empty password field',\n },\n 'empty.country.field.error': {\n id: 'empty.country.field.error',\n defaultMessage: 'Select your country or region of residence',\n description: 'Error message when no country/region is selected',\n },\n 'invalid.country.field.error': {\n id: 'invalid.country.field.error',\n defaultMessage: 'Country must match with an option available in the dropdown.',\n description: 'Error message when country is invalid',\n },\n 'email.do.not.match': {\n id: 'email.do.not.match',\n defaultMessage: 'The email addresses do not match.',\n description: 'Email not match to confirm email',\n },\n 'email.invalid.format.error': {\n id: 'email.invalid.format.error',\n defaultMessage: 'Enter a valid email address',\n description: 'Validation error for invalid email address',\n },\n 'username.validation.message': {\n id: 'username.validation.message',\n defaultMessage: 'Username must be between 2 and 30 characters',\n description: 'Error message for empty username field',\n },\n 'name.validation.message': {\n id: 'name.validation.message',\n defaultMessage: 'Enter a valid name',\n description: 'Validation message that appears when fullname contain URL',\n },\n 'name.validation.length.message': {\n id: 'registration.name.validation.length.message',\n defaultMessage: 'Full name cannot be longer than {limit} characters',\n description: 'Validation message that appears when the full name exceeds the character limit',\n },\n 'password.validation.message': {\n id: 'password.validation.message',\n defaultMessage: 'Password criteria has not been met',\n description: 'Error message for empty or invalid password',\n },\n 'username.format.validation.message': {\n id: 'username.format.validation.message',\n defaultMessage: 'Usernames can only contain letters (A-Z, a-z), numerals (0-9), underscores (_), and hyphens (-). Usernames cannot contain spaces',\n description: 'Validation message that appears when username format is invalid',\n },\n // Error messages\n 'registration.request.failure.header': {\n id: 'registration.request.failure.header',\n defaultMessage: 'We couldn\\'t create your account.',\n description: 'error message when registration failure.',\n },\n 'registration.empty.form.submission.error': {\n id: 'registration.empty.form.submission.error',\n defaultMessage: 'Please check your responses and try again.',\n description: 'Error message that appears on top of the form when empty form is submitted',\n },\n 'registration.request.server.error': {\n id: 'registration.request.server.error',\n defaultMessage: 'An error has occurred. Try refreshing the page, or check your internet connection.',\n description: 'Error message for internal server error.',\n },\n 'registration.rate.limit.error': {\n id: 'registration.rate.limit.error',\n defaultMessage: 'Too many failed registration attempts. Try again later.',\n description: 'Error message that appears when an anonymous user has made too many failed registration attempts',\n },\n 'registration.tpa.session.expired': {\n id: 'registration.tpa.session.expired',\n defaultMessage: 'Registration using {provider} has timed out.',\n description: 'Error message that appears when a user has not registered in the required timeframe for the registration method they chose.',\n },\n 'registration.forbidden.username': {\n id: 'registration.forbidden.username',\n defaultMessage: 'Usernames can\\'t include words that could be mistaken for course roles. Please choose a different username.',\n description: 'Error message when a user tries to register with a username that contains forbidden words',\n },\n 'registration.tpa.authentication.failure': {\n id: 'registration.tpa.authentication.failure',\n defaultMessage: 'We are sorry, you are not authorized to access {platform_name} via this channel. '\n + 'Please contact your learning administrator or manager in order to access {platform_name}.'\n + '{lineBreak}{lineBreak}Error Details:{lineBreak}{errorMessage}',\n description: 'Error message third party authentication pipeline fails',\n },\n // Terms of Service and Honor Code\n 'terms.of.service.and.honor.code': {\n id: 'terms.of.service.and.honor.code',\n defaultMessage: 'Terms of Service and Honor Code',\n description: 'Text for the hyperlink that redirects user to terms of service and honor code',\n },\n 'privacy.policy': {\n id: 'privacy.policy',\n defaultMessage: 'Privacy Policy',\n description: 'Text for the hyperlink that redirects user to privacy policy',\n },\n 'honor.code': {\n id: 'honor.code',\n defaultMessage: 'Honor Code',\n description: 'Text for the hyperlink that redirects user to the honor code',\n },\n 'terms.of.service': {\n id: 'terms.of.service',\n defaultMessage: 'Terms of Service',\n description: 'Text for the hyperlink that redirects user to the terms of service',\n },\n // miscellaneous strings\n 'registration.username.suggestion.label': {\n id: 'registration.username.suggestion.label',\n defaultMessage: 'Suggested:',\n description: 'Suggested usernames label text.',\n },\n 'did.you.mean.alert.text': {\n id: 'did.you.mean.alert.text',\n defaultMessage: 'Did you mean',\n description: 'Did you mean alert suggestion',\n },\n});\n\nexport default messages;\n"]}
@@ -0,0 +1,74 @@
1
+ export interface AuthenticatedUser {
2
+ id: number;
3
+ username: string;
4
+ email: string;
5
+ name: string;
6
+ }
7
+ export interface EmailSuggestion {
8
+ suggestion: string;
9
+ type: string;
10
+ }
11
+ export interface RegistrationFormData {
12
+ configurableFormFields: {
13
+ marketingEmailsOptIn: boolean;
14
+ country?: string;
15
+ [key: string]: any;
16
+ };
17
+ formFields: {
18
+ name: string;
19
+ email: string;
20
+ username: string;
21
+ password: string;
22
+ };
23
+ emailSuggestion: EmailSuggestion;
24
+ errors: {
25
+ name: string;
26
+ email: string;
27
+ username: string;
28
+ password: string;
29
+ };
30
+ }
31
+ export interface RegistrationResult {
32
+ success: boolean;
33
+ redirectUrl: string;
34
+ authenticatedUser: AuthenticatedUser | null;
35
+ }
36
+ export interface ValidationData {
37
+ validationDecisions: Record<string, string>;
38
+ usernameSuggestions?: string[];
39
+ }
40
+ export interface RegisterContextType {
41
+ validations: ValidationData | null;
42
+ usernameSuggestions: string[];
43
+ validationApiRateLimited: boolean;
44
+ registrationError: Record<string, {
45
+ userMessage: string;
46
+ }[]>;
47
+ registrationFormData: RegistrationFormData;
48
+ backendValidations: Record<string, string> | null;
49
+ registrationResult: RegistrationResult;
50
+ backendCountryCode: string;
51
+ setValidationsSuccess: (validationData: ValidationData) => void;
52
+ setValidationsFailure: () => void;
53
+ clearUsernameSuggestions: () => void;
54
+ clearRegistrationBackendError: (field: string) => void;
55
+ updateRegistrationFormData: (newData: Partial<RegistrationFormData>) => void;
56
+ setRegistrationResult: (result: RegistrationResult) => void;
57
+ setBackendCountryCode: (countryCode: string) => void;
58
+ setRegistrationFormData: (data: RegistrationFormData | ((prev: RegistrationFormData) => RegistrationFormData)) => void;
59
+ setEmailSuggestionContext: (suggestion: string, type: string) => void;
60
+ setRegistrationError: (error: Record<string, {
61
+ userMessage: string;
62
+ }[]>) => void;
63
+ }
64
+ export interface RegisterState {
65
+ validations: ValidationData | null;
66
+ usernameSuggestions: string[];
67
+ validationApiRateLimited: boolean;
68
+ registrationError: Record<string, {
69
+ userMessage: string;
70
+ }[]>;
71
+ registrationResult: RegistrationResult;
72
+ backendCountryCode: string;
73
+ registrationFormData: RegistrationFormData;
74
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/register/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface AuthenticatedUser {\n id: number,\n username: string,\n email: string,\n name: string,\n}\n\nexport interface EmailSuggestion {\n suggestion: string,\n type: string,\n}\n\nexport interface RegistrationFormData {\n configurableFormFields: {\n marketingEmailsOptIn: boolean,\n country?: string,\n [key: string]: any,\n },\n formFields: {\n name: string,\n email: string,\n username: string,\n password: string,\n },\n emailSuggestion: EmailSuggestion,\n errors: {\n name: string,\n email: string,\n username: string,\n password: string,\n },\n}\n\nexport interface RegistrationResult {\n success: boolean,\n redirectUrl: string,\n authenticatedUser: AuthenticatedUser | null,\n}\n\nexport interface ValidationData {\n validationDecisions: Record<string, string>,\n usernameSuggestions?: string[],\n}\n\nexport interface RegisterContextType {\n validations: ValidationData | null,\n usernameSuggestions: string[],\n validationApiRateLimited: boolean,\n registrationError: Record<string, { userMessage: string }[]>,\n registrationFormData: RegistrationFormData,\n backendValidations: Record<string, string> | null,\n registrationResult: RegistrationResult,\n backendCountryCode: string,\n setValidationsSuccess: (validationData: ValidationData) => void,\n setValidationsFailure: () => void,\n clearUsernameSuggestions: () => void,\n clearRegistrationBackendError: (field: string) => void,\n updateRegistrationFormData: (newData: Partial<RegistrationFormData>) => void,\n setRegistrationResult: (result: RegistrationResult) => void,\n setBackendCountryCode: (countryCode: string) => void,\n setRegistrationFormData: (data: RegistrationFormData |\n ((prev: RegistrationFormData) => RegistrationFormData)) => void,\n setEmailSuggestionContext: (suggestion: string, type: string) => void,\n setRegistrationError: (error: Record<string, { userMessage: string }[]>) => void,\n}\n\nexport interface RegisterState {\n validations: ValidationData | null,\n usernameSuggestions: string[],\n validationApiRateLimited: boolean,\n registrationError: Record<string, { userMessage: string }[]>,\n registrationResult: RegistrationResult,\n backendCountryCode: string,\n registrationFormData: RegistrationFormData,\n}\n"]}
@@ -0,0 +1,15 @@
1
+ export default ResetPasswordFailure;
2
+ declare function ResetPasswordFailure(props: any): import("react/jsx-runtime").JSX.Element | null;
3
+ declare namespace ResetPasswordFailure {
4
+ namespace defaultProps {
5
+ let errorCode: null;
6
+ let errorMsg: null;
7
+ }
8
+ namespace propTypes {
9
+ let errorCode_1: PropTypes.Requireable<string>;
10
+ export { errorCode_1 as errorCode };
11
+ let errorMsg_1: PropTypes.Requireable<string>;
12
+ export { errorMsg_1 as errorMsg };
13
+ }
14
+ }
15
+ import PropTypes from 'prop-types';
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useIntl } from '@openedx/frontend-base';
3
+ import { Alert } from '@openedx/paragon';
4
+ import { Error } from '@openedx/paragon/icons';
5
+ import PropTypes from 'prop-types';
6
+ import { FORM_SUBMISSION_ERROR, PASSWORD_RESET, PASSWORD_VALIDATION_ERROR } from './data/constants';
7
+ import messages from './messages';
8
+ const ResetPasswordFailure = (props) => {
9
+ const { formatMessage } = useIntl();
10
+ const { errorCode, errorMsg } = props;
11
+ let errorMessage = null;
12
+ let heading = formatMessage(messages['reset.password.failure.heading']);
13
+ switch (errorCode) {
14
+ case PASSWORD_RESET.FORBIDDEN_REQUEST:
15
+ heading = formatMessage(messages['reset.server.rate.limit.error']);
16
+ errorMessage = formatMessage(messages['rate.limit.error']);
17
+ break;
18
+ case PASSWORD_RESET.INTERNAL_SERVER_ERROR:
19
+ errorMessage = formatMessage(messages['internal.server.error']);
20
+ break;
21
+ case PASSWORD_VALIDATION_ERROR:
22
+ errorMessage = errorMsg;
23
+ break;
24
+ case FORM_SUBMISSION_ERROR:
25
+ errorMessage = formatMessage(messages['reset.password.form.submission.error']);
26
+ break;
27
+ default:
28
+ break;
29
+ }
30
+ if (errorMessage) {
31
+ return (_jsxs(Alert, { id: "validation-errors", className: "mb-5", variant: "danger", icon: Error, children: [_jsx(Alert.Heading, { children: heading }), _jsx("p", { children: errorMessage })] }));
32
+ }
33
+ return null;
34
+ };
35
+ ResetPasswordFailure.defaultProps = {
36
+ errorCode: null,
37
+ errorMsg: null,
38
+ };
39
+ ResetPasswordFailure.propTypes = {
40
+ errorCode: PropTypes.string,
41
+ errorMsg: PropTypes.string,
42
+ };
43
+ export default ResetPasswordFailure;
44
+ //# sourceMappingURL=ResetPasswordFailure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResetPasswordFailure.js","sourceRoot":"","sources":["../../src/reset-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,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,aACzE,KAAC,KAAK,CAAC,OAAO,cAAE,OAAO,GAAiB,EACxC,sBAAI,YAAY,GAAK,IACf,CACT,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IAClC,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,oBAAoB,CAAC,SAAS,GAAG;IAC/B,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,QAAQ,EAAE,SAAS,CAAC,MAAM;CAC3B,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["import { useIntl } from '@openedx/frontend-base';\nimport { Alert } from '@openedx/paragon';\nimport { Error } from '@openedx/paragon/icons';\nimport PropTypes from 'prop-types';\n\nimport { FORM_SUBMISSION_ERROR, PASSWORD_RESET, PASSWORD_VALIDATION_ERROR } from './data/constants';\nimport messages from './messages';\n\nconst ResetPasswordFailure = (props) => {\n const { formatMessage } = useIntl();\n const { errorCode, errorMsg } = props;\n\n let errorMessage = null;\n let heading = formatMessage(messages['reset.password.failure.heading']);\n switch (errorCode) {\n case PASSWORD_RESET.FORBIDDEN_REQUEST:\n heading = formatMessage(messages['reset.server.rate.limit.error']);\n errorMessage = formatMessage(messages['rate.limit.error']);\n break;\n case PASSWORD_RESET.INTERNAL_SERVER_ERROR:\n errorMessage = formatMessage(messages['internal.server.error']);\n break;\n case PASSWORD_VALIDATION_ERROR:\n errorMessage = errorMsg;\n break;\n case FORM_SUBMISSION_ERROR:\n errorMessage = formatMessage(messages['reset.password.form.submission.error']);\n break;\n default:\n break;\n }\n\n if (errorMessage) {\n return (\n <Alert id=\"validation-errors\" className=\"mb-5\" variant=\"danger\" icon={Error}>\n <Alert.Heading>{heading}</Alert.Heading>\n <p>{errorMessage}</p>\n </Alert>\n );\n }\n\n return null;\n};\n\nResetPasswordFailure.defaultProps = {\n errorCode: null,\n errorMsg: null,\n};\n\nResetPasswordFailure.propTypes = {\n errorCode: PropTypes.string,\n errorMsg: PropTypes.string,\n};\n\nexport default ResetPasswordFailure;\n"]}
@@ -0,0 +1,2 @@
1
+ export default ResetPasswordPage;
2
+ declare function ResetPasswordPage(props: any): import("react/jsx-runtime").JSX.Element;