@openedx/frontend-app-authn 1.0.0-alpha.5 → 1.0.0-alpha.7

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 (480) 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/{src → dist}/app.scss +1 -1
  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 +25 -0
  162. package/dist/i18n/index.js +26 -0
  163. package/dist/i18n/index.js.map +1 -0
  164. package/dist/index.js +4 -0
  165. package/dist/index.js.map +1 -0
  166. package/dist/login/AccountActivationMessage.d.ts +14 -0
  167. package/dist/login/AccountActivationMessage.js +49 -0
  168. package/dist/login/AccountActivationMessage.js.map +1 -0
  169. package/dist/login/ChangePasswordPrompt.d.ts +18 -0
  170. package/dist/login/ChangePasswordPrompt.js +51 -0
  171. package/dist/login/ChangePasswordPrompt.js.map +1 -0
  172. package/dist/login/LoginFailure.d.ts +25 -0
  173. package/dist/login/LoginFailure.js +109 -0
  174. package/dist/login/LoginFailure.js.map +1 -0
  175. package/dist/login/LoginPage.d.ts +12 -0
  176. package/dist/login/LoginPage.js +174 -0
  177. package/dist/login/LoginPage.js.map +1 -0
  178. package/dist/login/components/LoginContext.d.ts +21 -0
  179. package/dist/login/components/LoginContext.js +28 -0
  180. package/dist/login/components/LoginContext.js.map +1 -0
  181. package/dist/login/data/api.d.ts +2 -0
  182. package/dist/login/data/api.js +27 -0
  183. package/dist/login/data/api.js.map +1 -0
  184. package/dist/login/data/apiHook.d.ts +13 -0
  185. package/dist/login/data/apiHook.js +57 -0
  186. package/dist/login/data/apiHook.js.map +1 -0
  187. package/dist/login/data/constants.d.ts +17 -0
  188. package/{src → dist}/login/data/constants.js +4 -4
  189. package/dist/login/data/constants.js.map +1 -0
  190. package/dist/login/index.d.ts +1 -0
  191. package/dist/login/index.js +2 -0
  192. package/dist/login/index.js.map +1 -0
  193. package/dist/login/messages.d.ts +198 -0
  194. package/dist/login/messages.js +210 -0
  195. package/dist/login/messages.js.map +1 -0
  196. package/dist/logistration/Logistration.d.ts +5 -0
  197. package/dist/logistration/Logistration.js +80 -0
  198. package/dist/logistration/Logistration.js.map +1 -0
  199. package/dist/progressive-profiling/ProgressiveProfiling.d.ts +2 -0
  200. package/dist/progressive-profiling/ProgressiveProfiling.js +143 -0
  201. package/dist/progressive-profiling/ProgressiveProfiling.js.map +1 -0
  202. package/dist/progressive-profiling/ProgressiveProfilingPageModal.d.ts +13 -0
  203. package/dist/progressive-profiling/ProgressiveProfilingPageModal.js +31 -0
  204. package/dist/progressive-profiling/ProgressiveProfilingPageModal.js.map +1 -0
  205. package/dist/progressive-profiling/components/ProgressiveProfilingContext.d.ts +18 -0
  206. package/dist/progressive-profiling/components/ProgressiveProfilingContext.js +52 -0
  207. package/dist/progressive-profiling/components/ProgressiveProfilingContext.js.map +1 -0
  208. package/dist/progressive-profiling/data/api.d.ts +2 -0
  209. package/dist/progressive-profiling/data/api.js +22 -0
  210. package/dist/progressive-profiling/data/api.js.map +1 -0
  211. package/dist/progressive-profiling/data/apiHook.d.ts +10 -0
  212. package/dist/progressive-profiling/data/apiHook.js +36 -0
  213. package/dist/progressive-profiling/data/apiHook.js.map +1 -0
  214. package/dist/progressive-profiling/index.d.ts +2 -0
  215. package/{src → dist}/progressive-profiling/index.js +1 -3
  216. package/dist/progressive-profiling/index.js.map +1 -0
  217. package/dist/progressive-profiling/messages.d.ts +53 -0
  218. package/dist/progressive-profiling/messages.js +57 -0
  219. package/dist/progressive-profiling/messages.js.map +1 -0
  220. package/dist/register/RegistrationFields/CountryField/CountryField.d.ts +38 -0
  221. package/dist/register/RegistrationFields/CountryField/CountryField.js +93 -0
  222. package/dist/register/RegistrationFields/CountryField/CountryField.js.map +1 -0
  223. package/dist/register/RegistrationFields/CountryField/validator.d.ts +8 -0
  224. package/dist/register/RegistrationFields/CountryField/validator.js +29 -0
  225. package/dist/register/RegistrationFields/CountryField/validator.js.map +1 -0
  226. package/dist/register/RegistrationFields/EmailField/EmailField.d.ts +30 -0
  227. package/dist/register/RegistrationFields/EmailField/EmailField.js +88 -0
  228. package/dist/register/RegistrationFields/EmailField/EmailField.js.map +1 -0
  229. package/dist/register/RegistrationFields/EmailField/constants.d.ts +3 -0
  230. package/dist/register/RegistrationFields/EmailField/constants.js +130 -0
  231. package/dist/register/RegistrationFields/EmailField/constants.js.map +1 -0
  232. package/dist/register/RegistrationFields/EmailField/validator.d.ts +17 -0
  233. package/dist/register/RegistrationFields/EmailField/validator.js +107 -0
  234. package/dist/register/RegistrationFields/EmailField/validator.js.map +1 -0
  235. package/dist/register/RegistrationFields/HonorCodeField/HonorCode.d.ts +21 -0
  236. package/dist/register/RegistrationFields/HonorCodeField/HonorCode.js +40 -0
  237. package/dist/register/RegistrationFields/HonorCodeField/HonorCode.js.map +1 -0
  238. package/dist/register/RegistrationFields/NameField/NameField.d.ts +29 -0
  239. package/dist/register/RegistrationFields/NameField/NameField.js +59 -0
  240. package/dist/register/RegistrationFields/NameField/NameField.js.map +1 -0
  241. package/dist/register/RegistrationFields/NameField/validator.d.ts +6 -0
  242. package/dist/register/RegistrationFields/NameField/validator.js +23 -0
  243. package/dist/register/RegistrationFields/NameField/validator.js.map +1 -0
  244. package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.d.ts +16 -0
  245. package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.js +24 -0
  246. package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.js.map +1 -0
  247. package/dist/register/RegistrationFields/UsernameField/UsernameField.d.ts +31 -0
  248. package/dist/register/RegistrationFields/UsernameField/UsernameField.js +119 -0
  249. package/dist/register/RegistrationFields/UsernameField/UsernameField.js.map +1 -0
  250. package/dist/register/RegistrationFields/UsernameField/validator.d.ts +4 -0
  251. package/dist/register/RegistrationFields/UsernameField/validator.js +15 -0
  252. package/dist/register/RegistrationFields/UsernameField/validator.js.map +1 -0
  253. package/dist/register/RegistrationFields/index.d.ts +6 -0
  254. package/{src → dist}/register/RegistrationFields/index.js +1 -0
  255. package/dist/register/RegistrationFields/index.js.map +1 -0
  256. package/dist/register/RegistrationPage.d.ts +18 -0
  257. package/dist/register/RegistrationPage.js +259 -0
  258. package/dist/register/RegistrationPage.js.map +1 -0
  259. package/dist/register/components/ConfigurableRegistrationForm.d.ts +37 -0
  260. package/dist/register/components/ConfigurableRegistrationForm.js +145 -0
  261. package/dist/register/components/ConfigurableRegistrationForm.js.map +1 -0
  262. package/dist/register/components/RegisterContext.d.ts +8 -0
  263. package/dist/register/components/RegisterContext.js +167 -0
  264. package/dist/register/components/RegisterContext.js.map +1 -0
  265. package/dist/register/components/RegistrationFailure.d.ts +19 -0
  266. package/dist/register/components/RegistrationFailure.js +60 -0
  267. package/dist/register/components/RegistrationFailure.js.map +1 -0
  268. package/dist/register/data/api.d.ts +9 -0
  269. package/dist/register/data/api.js +45 -0
  270. package/dist/register/data/api.js.map +1 -0
  271. package/dist/register/data/apiHook.d.ts +33 -0
  272. package/dist/register/data/apiHook.js +66 -0
  273. package/dist/register/data/apiHook.js.map +1 -0
  274. package/dist/register/data/constants.d.ts +11 -0
  275. package/{src → dist}/register/data/constants.js +5 -4
  276. package/dist/register/data/constants.js.map +1 -0
  277. package/dist/register/data/utils.d.ts +6 -0
  278. package/dist/register/data/utils.js +128 -0
  279. package/dist/register/data/utils.js.map +1 -0
  280. package/dist/register/index.d.ts +1 -0
  281. package/dist/register/index.js +2 -0
  282. package/dist/register/index.js.map +1 -0
  283. package/dist/register/messages.d.ts +203 -0
  284. package/dist/register/messages.js +215 -0
  285. package/dist/register/messages.js.map +1 -0
  286. package/dist/register/types.d.ts +74 -0
  287. package/dist/register/types.js +2 -0
  288. package/dist/register/types.js.map +1 -0
  289. package/dist/reset-password/ResetPasswordFailure.d.ts +15 -0
  290. package/dist/reset-password/ResetPasswordFailure.js +44 -0
  291. package/dist/reset-password/ResetPasswordFailure.js.map +1 -0
  292. package/dist/reset-password/ResetPasswordPage.d.ts +2 -0
  293. package/dist/reset-password/ResetPasswordPage.js +182 -0
  294. package/dist/reset-password/ResetPasswordPage.js.map +1 -0
  295. package/dist/reset-password/ResetPasswordSuccess.d.ts +2 -0
  296. package/dist/reset-password/ResetPasswordSuccess.js +10 -0
  297. package/dist/reset-password/ResetPasswordSuccess.js.map +1 -0
  298. package/dist/reset-password/data/api.d.ts +4 -0
  299. package/dist/reset-password/data/api.js +57 -0
  300. package/dist/reset-password/data/api.js.map +1 -0
  301. package/dist/reset-password/data/apiHook.d.ts +31 -0
  302. package/dist/reset-password/data/apiHook.js +74 -0
  303. package/dist/reset-password/data/apiHook.js.map +1 -0
  304. package/dist/reset-password/data/constants.d.ts +13 -0
  305. package/{src → dist}/reset-password/data/constants.js +6 -7
  306. package/dist/reset-password/data/constants.js.map +1 -0
  307. package/dist/reset-password/index.d.ts +1 -0
  308. package/dist/reset-password/index.js +2 -0
  309. package/dist/reset-password/index.js.map +1 -0
  310. package/dist/reset-password/messages.d.ts +83 -0
  311. package/dist/reset-password/messages.js +87 -0
  312. package/dist/reset-password/messages.js.map +1 -0
  313. package/dist/routes.d.ts +19 -0
  314. package/dist/routes.js +76 -0
  315. package/dist/routes.js.map +1 -0
  316. package/{src → dist}/sass/_registration.scss +8 -10
  317. package/dist/slots/LoginComponentSlot/index.d.ts +12 -0
  318. package/dist/slots/LoginComponentSlot/index.js +11 -0
  319. package/dist/slots/LoginComponentSlot/index.js.map +1 -0
  320. package/package.json +26 -15
  321. package/src/Main.tsx +0 -23
  322. package/src/__mocks__/file.js +0 -1
  323. package/src/__mocks__/svg.js +0 -1
  324. package/src/app.ts +0 -43
  325. package/src/base-container/components/default-layout/DefaultLayout.test.jsx +0 -48
  326. package/src/base-container/components/default-layout/LargeLayout.jsx +0 -42
  327. package/src/base-container/components/default-layout/MediumLayout.jsx +0 -49
  328. package/src/base-container/components/default-layout/SmallLayout.jsx +0 -37
  329. package/src/base-container/components/default-layout/messages.js +0 -16
  330. package/src/base-container/components/image-layout/ExtraSmallLayout.jsx +0 -31
  331. package/src/base-container/components/image-layout/LargeLayout.jsx +0 -32
  332. package/src/base-container/components/image-layout/MediumLayout.jsx +0 -32
  333. package/src/base-container/components/image-layout/SmallLayout.jsx +0 -31
  334. package/src/base-container/components/image-layout/messages.js +0 -16
  335. package/src/base-container/components/welcome-page-layout/LargeLayout.jsx +0 -46
  336. package/src/base-container/components/welcome-page-layout/MediumLayout.jsx +0 -49
  337. package/src/base-container/components/welcome-page-layout/SmallLayout.jsx +0 -38
  338. package/src/base-container/components/welcome-page-layout/messages.js +0 -21
  339. package/src/base-container/index.jsx +0 -70
  340. package/src/base-container/tests/BaseContainer.test.jsx +0 -44
  341. package/src/common-components/EmbeddedRegistrationRoute.jsx +0 -26
  342. package/src/common-components/EnterpriseSSO.jsx +0 -110
  343. package/src/common-components/FormGroup.jsx +0 -106
  344. package/src/common-components/InstitutionLogistration.jsx +0 -102
  345. package/src/common-components/NotFoundPage.jsx +0 -15
  346. package/src/common-components/PasswordField.jsx +0 -175
  347. package/src/common-components/RedirectLogistration.jsx +0 -94
  348. package/src/common-components/RegisterFaIcons.jsx +0 -8
  349. package/src/common-components/SocialAuthProviders.jsx +0 -75
  350. package/src/common-components/ThirdPartyAuth.jsx +0 -123
  351. package/src/common-components/ThirdPartyAuthAlert.jsx +0 -49
  352. package/src/common-components/UnAuthOnlyRoute.jsx +0 -41
  353. package/src/common-components/data/actions.js +0 -27
  354. package/src/common-components/data/reducers.js +0 -63
  355. package/src/common-components/data/sagas.js +0 -32
  356. package/src/common-components/data/selectors.js +0 -28
  357. package/src/common-components/data/service.js +0 -23
  358. package/src/common-components/data/tests/reducer.test.js +0 -82
  359. package/src/common-components/data/tests/sagas.test.js +0 -71
  360. package/src/common-components/messages.jsx +0 -127
  361. package/src/common-components/tests/EmbeddedRegistrationRoute.test.jsx +0 -76
  362. package/src/common-components/tests/FormField.test.jsx +0 -289
  363. package/src/common-components/tests/SocialAuthProviders.test.jsx +0 -75
  364. package/src/common-components/tests/ThirdPartyAuthAlert.test.jsx +0 -39
  365. package/src/common-components/tests/UnAuthOnlyRoute.test.jsx +0 -73
  366. package/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap +0 -156
  367. package/src/common-components/tests/__snapshots__/ThirdPartyAuthAlert.test.jsx.snap +0 -53
  368. package/src/constants.ts +0 -1
  369. package/src/data/configureStore.js +0 -33
  370. package/src/data/oneTrust.js +0 -3
  371. package/src/data/reducers.js +0 -36
  372. package/src/data/sagas.js +0 -19
  373. package/src/data/tests/cookies.test.js +0 -42
  374. package/src/data/tests/dataUtils.test.js +0 -19
  375. package/src/data/tests/reduxUtils.test.js +0 -14
  376. package/src/data/utils/cookies.js +0 -12
  377. package/src/data/utils/dataUtils.js +0 -81
  378. package/src/data/utils/index.js +0 -11
  379. package/src/data/utils/reduxUtils.js +0 -34
  380. package/src/data/utils/useMobileResponsive.js +0 -24
  381. package/src/field-renderer/FieldRenderer.jsx +0 -156
  382. package/src/field-renderer/tests/FieldRenderer.test.jsx +0 -201
  383. package/src/forgot-password/ForgotPasswordAlert.jsx +0 -97
  384. package/src/forgot-password/ForgotPasswordPage.jsx +0 -193
  385. package/src/forgot-password/data/actions.js +0 -32
  386. package/src/forgot-password/data/reducers.js +0 -58
  387. package/src/forgot-password/data/sagas.js +0 -35
  388. package/src/forgot-password/data/selectors.js +0 -10
  389. package/src/forgot-password/data/service.js +0 -21
  390. package/src/forgot-password/data/tests/reducers.test.js +0 -34
  391. package/src/forgot-password/data/tests/sagas.test.js +0 -67
  392. package/src/forgot-password/index.js +0 -5
  393. package/src/forgot-password/messages.js +0 -128
  394. package/src/forgot-password/tests/ForgotPasswordPage.test.jsx +0 -269
  395. package/src/i18n/index.js +0 -25
  396. package/src/login/AccountActivationMessage.jsx +0 -78
  397. package/src/login/ChangePasswordPrompt.jsx +0 -91
  398. package/src/login/LoginFailure.jsx +0 -231
  399. package/src/login/LoginPage.jsx +0 -368
  400. package/src/login/data/actions.js +0 -39
  401. package/src/login/data/reducers.js +0 -76
  402. package/src/login/data/sagas.js +0 -45
  403. package/src/login/data/service.js +0 -27
  404. package/src/login/data/tests/reducers.test.js +0 -155
  405. package/src/login/data/tests/sagas.test.js +0 -110
  406. package/src/login/index.js +0 -5
  407. package/src/login/messages.jsx +0 -211
  408. package/src/login/tests/AccountActivationMessage.test.jsx +0 -122
  409. package/src/login/tests/ChangePasswordPrompt.test.jsx +0 -75
  410. package/src/login/tests/LoginFailure.test.jsx +0 -323
  411. package/src/login/tests/LoginPage.test.jsx +0 -839
  412. package/src/logistration/Logistration.jsx +0 -189
  413. package/src/logistration/Logistration.test.jsx +0 -275
  414. package/src/progressive-profiling/ProgressiveProfiling.jsx +0 -313
  415. package/src/progressive-profiling/ProgressiveProfilingPageModal.jsx +0 -56
  416. package/src/progressive-profiling/data/actions.js +0 -22
  417. package/src/progressive-profiling/data/reducers.js +0 -38
  418. package/src/progressive-profiling/data/sagas.js +0 -24
  419. package/src/progressive-profiling/data/selectors.js +0 -14
  420. package/src/progressive-profiling/data/service.js +0 -17
  421. package/src/progressive-profiling/messages.jsx +0 -57
  422. package/src/progressive-profiling/tests/ProgressiveProfiling.test.jsx +0 -322
  423. package/src/register/RegistrationFields/CountryField/CountryField.jsx +0 -164
  424. package/src/register/RegistrationFields/CountryField/CountryField.test.jsx +0 -204
  425. package/src/register/RegistrationFields/CountryField/validator.js +0 -32
  426. package/src/register/RegistrationFields/EmailField/EmailField.jsx +0 -140
  427. package/src/register/RegistrationFields/EmailField/EmailField.test.jsx +0 -236
  428. package/src/register/RegistrationFields/EmailField/constants.js +0 -131
  429. package/src/register/RegistrationFields/EmailField/validator.js +0 -126
  430. package/src/register/RegistrationFields/EmailField/validator.test.js +0 -39
  431. package/src/register/RegistrationFields/HonorCodeField/HonorCode.jsx +0 -104
  432. package/src/register/RegistrationFields/HonorCodeField/HonorCode.test.jsx +0 -70
  433. package/src/register/RegistrationFields/NameField/NameField.jsx +0 -68
  434. package/src/register/RegistrationFields/NameField/NameField.test.jsx +0 -146
  435. package/src/register/RegistrationFields/NameField/validator.js +0 -22
  436. package/src/register/RegistrationFields/TermsOfServiceField/TermsOfService.jsx +0 -58
  437. package/src/register/RegistrationFields/TermsOfServiceField/TermsOfService.test.jsx +0 -55
  438. package/src/register/RegistrationFields/UsernameField/UsernameField.jsx +0 -162
  439. package/src/register/RegistrationFields/UsernameField/UsernameField.test.jsx +0 -319
  440. package/src/register/RegistrationFields/UsernameField/validator.js +0 -16
  441. package/src/register/RegistrationPage.jsx +0 -428
  442. package/src/register/RegistrationPage.test.jsx +0 -854
  443. package/src/register/components/ConfigurableRegistrationForm.jsx +0 -244
  444. package/src/register/components/RegistrationFailure.jsx +0 -80
  445. package/src/register/components/tests/ConfigurableRegistrationForm.test.jsx +0 -401
  446. package/src/register/components/tests/RegistrationFailure.test.jsx +0 -212
  447. package/src/register/components/tests/ThirdPartyAuth.test.jsx +0 -439
  448. package/src/register/data/actions.js +0 -85
  449. package/src/register/data/reducers.js +0 -140
  450. package/src/register/data/sagas.js +0 -58
  451. package/src/register/data/selectors.js +0 -34
  452. package/src/register/data/service.js +0 -45
  453. package/src/register/data/tests/reducers.test.js +0 -277
  454. package/src/register/data/tests/sagas.test.js +0 -239
  455. package/src/register/data/tests/utils.test.js +0 -98
  456. package/src/register/data/utils.js +0 -147
  457. package/src/register/index.js +0 -4
  458. package/src/register/messages.jsx +0 -206
  459. package/src/reset-password/ResetPasswordFailure.jsx +0 -55
  460. package/src/reset-password/ResetPasswordPage.jsx +0 -224
  461. package/src/reset-password/ResetPasswordSuccess.jsx +0 -19
  462. package/src/reset-password/data/actions.js +0 -50
  463. package/src/reset-password/data/reducers.js +0 -44
  464. package/src/reset-password/data/sagas.js +0 -67
  465. package/src/reset-password/data/selectors.js +0 -10
  466. package/src/reset-password/data/service.js +0 -61
  467. package/src/reset-password/data/tests/sagas.test.js +0 -185
  468. package/src/reset-password/index.js +0 -5
  469. package/src/reset-password/messages.js +0 -88
  470. package/src/reset-password/tests/ResetPasswordPage.test.jsx +0 -241
  471. package/src/routes.jsx +0 -79
  472. package/src/setupTest.js +0 -68
  473. /package/{src → dist}/base-container/components/image-layout/index.scss +0 -0
  474. /package/{src/index.ts → dist/index.d.ts} +0 -0
  475. /package/{src → dist}/sass/_base_component.scss +0 -0
  476. /package/{src → dist}/sass/_forgot_password.scss +0 -0
  477. /package/{src → dist}/sass/_login_page.scss +0 -0
  478. /package/{src → dist}/sass/_progressive_profiling_page.scss +0 -0
  479. /package/{src → dist}/sass/_reset_password.scss +0 -0
  480. /package/{src → dist}/sass/_style.scss +0 -0
@@ -1,76 +0,0 @@
1
- import {
2
- BACKUP_LOGIN_DATA,
3
- DISMISS_PASSWORD_RESET_BANNER,
4
- LOGIN_REQUEST,
5
- } from './actions';
6
- import { DEFAULT_STATE, PENDING_STATE } from '../../data/constants';
7
- import { RESET_PASSWORD } from '../../reset-password';
8
-
9
- export const defaultState = {
10
- loginErrorCode: '',
11
- loginErrorContext: {},
12
- loginResult: {},
13
- loginFormData: {
14
- formFields: {
15
- emailOrUsername: '', password: '',
16
- },
17
- errors: {
18
- emailOrUsername: '', password: '',
19
- },
20
- },
21
- shouldBackupState: false,
22
- showResetPasswordSuccessBanner: false,
23
- submitState: DEFAULT_STATE,
24
- };
25
-
26
- const reducer = (state = defaultState, action = {}) => {
27
- switch (action.type) {
28
- case BACKUP_LOGIN_DATA.BASE:
29
- return {
30
- ...state,
31
- shouldBackupState: true,
32
- };
33
- case BACKUP_LOGIN_DATA.BEGIN:
34
- return {
35
- ...defaultState,
36
- loginFormData: { ...action.payload },
37
- };
38
- case LOGIN_REQUEST.BEGIN:
39
- return {
40
- ...state,
41
- showResetPasswordSuccessBanner: false,
42
- submitState: PENDING_STATE,
43
- };
44
- case LOGIN_REQUEST.SUCCESS:
45
- return {
46
- ...state,
47
- loginResult: action.payload,
48
- };
49
- case LOGIN_REQUEST.FAILURE: {
50
- const { email, loginError, redirectUrl } = action.payload;
51
- return {
52
- ...state,
53
- loginErrorCode: loginError.errorCode,
54
- loginErrorContext: { ...loginError.context, email, redirectUrl },
55
- submitState: DEFAULT_STATE,
56
- };
57
- }
58
- case RESET_PASSWORD.SUCCESS:
59
- return {
60
- ...state,
61
- showResetPasswordSuccessBanner: true,
62
- };
63
- case DISMISS_PASSWORD_RESET_BANNER: {
64
- return {
65
- ...state,
66
- showResetPasswordSuccessBanner: false,
67
- };
68
- }
69
- default:
70
- return {
71
- ...state,
72
- };
73
- }
74
- };
75
-
76
- export default reducer;
@@ -1,45 +0,0 @@
1
- import { camelCaseObject, logError, logInfo } from '@openedx/frontend-base';
2
- import { call, put, takeEvery } from 'redux-saga/effects';
3
-
4
- import {
5
- LOGIN_REQUEST,
6
- loginRequestBegin,
7
- loginRequestFailure,
8
- loginRequestSuccess,
9
- } from './actions';
10
- import { FORBIDDEN_REQUEST, INTERNAL_SERVER_ERROR } from './constants';
11
- import {
12
- loginRequest,
13
- } from './service';
14
-
15
- export function* handleLoginRequest(action) {
16
- try {
17
- yield put(loginRequestBegin());
18
-
19
- const { redirectUrl, success } = yield call(loginRequest, action.payload.creds);
20
-
21
- yield put(loginRequestSuccess(
22
- redirectUrl,
23
- success,
24
- ));
25
- } catch (e) {
26
- const statusCodes = [400];
27
- if (e.response) {
28
- const { status } = e.response;
29
- if (statusCodes.includes(status)) {
30
- yield put(loginRequestFailure(camelCaseObject(e.response.data)));
31
- logInfo(e);
32
- } else if (status === 403) {
33
- yield put(loginRequestFailure({ errorCode: FORBIDDEN_REQUEST }));
34
- logInfo(e);
35
- } else {
36
- yield put(loginRequestFailure({ errorCode: INTERNAL_SERVER_ERROR }));
37
- logError(e);
38
- }
39
- }
40
- }
41
- }
42
-
43
- export default function* saga() {
44
- yield takeEvery(LOGIN_REQUEST.BASE, handleLoginRequest);
45
- }
@@ -1,27 +0,0 @@
1
- import { getAuthenticatedHttpClient, getSiteConfig, getUrlByRouteRole } from '@openedx/frontend-base';
2
- import * as QueryString from 'query-string';
3
-
4
- export async function loginRequest(creds) {
5
- const requestConfig = {
6
- headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
7
- isPublic: true,
8
- };
9
-
10
- const { data } = await getAuthenticatedHttpClient()
11
- .post(
12
- `${getSiteConfig().lmsBaseUrl}/api/user/v2/account/login_session/`,
13
- QueryString.stringify(creds),
14
- requestConfig,
15
- )
16
- .catch((e) => {
17
- throw (e);
18
- });
19
-
20
- const defaultRedirectUrl = getUrlByRouteRole('org.openedx.frontend.role.dashboard');
21
- const redirectUrl = data.redirect_url ?? defaultRedirectUrl;
22
-
23
- return {
24
- redirectUrl,
25
- success: data.success ?? false,
26
- };
27
- }
@@ -1,155 +0,0 @@
1
- import { getSiteConfig } from '@openedx/frontend-base';
2
-
3
- import { DEFAULT_REDIRECT_URL, DEFAULT_STATE, PENDING_STATE } from '../../../data/constants';
4
- import { RESET_PASSWORD } from '../../../reset-password';
5
- import { BACKUP_LOGIN_DATA, DISMISS_PASSWORD_RESET_BANNER, LOGIN_REQUEST } from '../actions';
6
- import reducer from '../reducers';
7
-
8
- describe('login reducer', () => {
9
- const defaultState = {
10
- loginErrorCode: '',
11
- loginErrorContext: {},
12
- loginResult: {},
13
- loginFormData: {
14
- formFields: {
15
- emailOrUsername: '', password: '',
16
- },
17
- errors: {
18
- emailOrUsername: '', password: '',
19
- },
20
- },
21
- shouldBackupState: false,
22
- showResetPasswordSuccessBanner: false,
23
- submitState: DEFAULT_STATE,
24
- };
25
-
26
- it('should update state to show reset password success banner', () => {
27
- const action = {
28
- type: RESET_PASSWORD.SUCCESS,
29
- };
30
-
31
- expect(
32
- reducer(defaultState, action),
33
- ).toEqual(
34
- {
35
- ...defaultState,
36
- showResetPasswordSuccessBanner: true,
37
- },
38
- );
39
- });
40
-
41
- it('should set the flag which keeps the login form data in redux state', () => {
42
- const action = {
43
- type: BACKUP_LOGIN_DATA.BASE,
44
- };
45
-
46
- expect(
47
- reducer(defaultState, action),
48
- ).toEqual(
49
- {
50
- ...defaultState,
51
- shouldBackupState: true,
52
- },
53
- );
54
- });
55
-
56
- it('should backup the login form data', () => {
57
- const payload = {
58
- formFields: {
59
- emailOrUsername: 'test@exmaple.com',
60
- password: 'test1',
61
- },
62
- errors: {
63
- emailOrUsername: '', password: '',
64
- },
65
- };
66
- const action = {
67
- type: BACKUP_LOGIN_DATA.BEGIN,
68
- payload,
69
- };
70
-
71
- expect(
72
- reducer(defaultState, action),
73
- ).toEqual(
74
- {
75
- ...defaultState,
76
- loginFormData: payload,
77
- },
78
- );
79
- });
80
-
81
- it('should update state to dismiss reset password banner', () => {
82
- const action = {
83
- type: DISMISS_PASSWORD_RESET_BANNER,
84
- };
85
-
86
- expect(
87
- reducer(defaultState, action),
88
- ).toEqual(
89
- {
90
- ...defaultState,
91
- showResetPasswordSuccessBanner: false,
92
- },
93
- );
94
- });
95
-
96
- it('should start the login request', () => {
97
- const action = {
98
- type: LOGIN_REQUEST.BEGIN,
99
- };
100
-
101
- expect(reducer(defaultState, action)).toEqual(
102
- {
103
- ...defaultState,
104
- showResetPasswordSuccessBanner: false,
105
- submitState: PENDING_STATE,
106
- },
107
- );
108
- });
109
-
110
- it('should set redirect url on login success action', () => {
111
- const payload = {
112
- redirectUrl: `${getSiteConfig().baseUrl}${DEFAULT_REDIRECT_URL}`,
113
- success: true,
114
- };
115
- const action = {
116
- type: LOGIN_REQUEST.SUCCESS,
117
- payload,
118
- };
119
-
120
- expect(reducer(defaultState, action)).toEqual(
121
- {
122
- ...defaultState,
123
- loginResult: payload,
124
- },
125
- );
126
- });
127
-
128
- it('should set the error data on login request failure', () => {
129
- const payload = {
130
- loginError: {
131
- success: false,
132
- value: 'Email or password is incorrect.',
133
- errorCode: 'incorrect-email-or-password',
134
- context: {
135
- failureCount: 0,
136
- },
137
- },
138
- email: 'test@example.com',
139
- redirectUrl: '',
140
- };
141
- const action = {
142
- type: LOGIN_REQUEST.FAILURE,
143
- payload,
144
- };
145
-
146
- expect(reducer(defaultState, action)).toEqual(
147
- {
148
- ...defaultState,
149
- loginErrorCode: payload.loginError.errorCode,
150
- loginErrorContext: { ...payload.loginError.context, email: payload.email, redirectUrl: payload.redirectUrl },
151
- submitState: DEFAULT_STATE,
152
- },
153
- );
154
- });
155
- });
@@ -1,110 +0,0 @@
1
- import { camelCaseObject } from '@openedx/frontend-base';
2
- import { runSaga } from 'redux-saga';
3
-
4
- import { initializeMockServices } from '../../../setupTest';
5
- import * as actions from '../actions';
6
- import { FORBIDDEN_REQUEST, INTERNAL_SERVER_ERROR } from '../constants';
7
- import { handleLoginRequest } from '../sagas';
8
- import * as api from '../service';
9
-
10
- const { loggingService } = initializeMockServices();
11
-
12
- describe('handleLoginRequest', () => {
13
- const params = {
14
- payload: {
15
- loginFormData: {
16
- email: 'test@test.com',
17
- password: 'test-password',
18
- },
19
- },
20
- };
21
-
22
- const testErrorResponse = async (loginErrorResponse, expectedLogFunc, expectedDispatchers) => {
23
- const loginRequest = jest.spyOn(api, 'loginRequest').mockImplementation(() => Promise.reject(loginErrorResponse));
24
-
25
- const dispatched = [];
26
- await runSaga(
27
- { dispatch: (action) => dispatched.push(action) },
28
- handleLoginRequest,
29
- params,
30
- );
31
-
32
- expect(loginRequest).toHaveBeenCalledTimes(1);
33
- expect(expectedLogFunc).toHaveBeenCalled();
34
- expect(dispatched).toEqual(expectedDispatchers);
35
- loginRequest.mockClear();
36
- };
37
-
38
- beforeEach(() => {
39
- loggingService.logError.mockReset();
40
- loggingService.logInfo.mockReset();
41
- });
42
-
43
- it('should call service and dispatch success action', async () => {
44
- const data = { redirectUrl: '/dashboard', success: true };
45
- const loginRequest = jest.spyOn(api, 'loginRequest')
46
- .mockImplementation(() => Promise.resolve(data));
47
-
48
- const dispatched = [];
49
- await runSaga(
50
- { dispatch: (action) => dispatched.push(action) },
51
- handleLoginRequest,
52
- params,
53
- );
54
-
55
- expect(loginRequest).toHaveBeenCalledTimes(1);
56
- expect(dispatched).toEqual([
57
- actions.loginRequestBegin(),
58
- actions.loginRequestSuccess(data.redirectUrl, data.success),
59
- ]);
60
- loginRequest.mockClear();
61
- });
62
-
63
- it('should call service and dispatch error action', async () => {
64
- const loginErrorResponse = {
65
- response: {
66
- status: 400,
67
- data: {
68
- login_error: 'something went wrong',
69
- },
70
- },
71
- };
72
-
73
- await testErrorResponse(loginErrorResponse, loggingService.logInfo, [
74
- actions.loginRequestBegin(),
75
- actions.loginRequestFailure(camelCaseObject(loginErrorResponse.response.data)),
76
- ]);
77
- });
78
-
79
- it('should handle rate limit error code', async () => {
80
- const loginErrorResponse = {
81
- response: {
82
- status: 403,
83
- data: {
84
- errorCode: FORBIDDEN_REQUEST,
85
- },
86
- },
87
- };
88
-
89
- await testErrorResponse(loginErrorResponse, loggingService.logInfo, [
90
- actions.loginRequestBegin(),
91
- actions.loginRequestFailure(loginErrorResponse.response.data),
92
- ]);
93
- });
94
-
95
- it('should handle 500 error code', async () => {
96
- const loginErrorResponse = {
97
- response: {
98
- status: 500,
99
- data: {
100
- errorCode: INTERNAL_SERVER_ERROR,
101
- },
102
- },
103
- };
104
-
105
- await testErrorResponse(loginErrorResponse, loggingService.logError, [
106
- actions.loginRequestBegin(),
107
- actions.loginRequestFailure(loginErrorResponse.response.data),
108
- ]);
109
- });
110
- });
@@ -1,5 +0,0 @@
1
- export const storeName = 'login';
2
-
3
- export { default as LoginPage } from './LoginPage';
4
- export { default as reducer } from './data/reducers';
5
- export { default as saga } from './data/sagas';
@@ -1,211 +0,0 @@
1
- import { defineMessages } from '@openedx/frontend-base';
2
-
3
- const messages = defineMessages({
4
- 'login.page.title': {
5
- id: 'login.page.title',
6
- defaultMessage: 'Login | {siteName}',
7
- description: 'login page title',
8
- },
9
- // Login labels
10
- 'login.user.identity.label': {
11
- id: 'login.user.identity.label',
12
- defaultMessage: 'Username or email',
13
- description: 'Label for user identity field to enter either username or email to login',
14
- },
15
- 'login.password.label': {
16
- id: 'login.password.label',
17
- defaultMessage: 'Password',
18
- description: 'Label for password field',
19
- },
20
- 'sign.in.button': {
21
- id: 'sign.in.button',
22
- defaultMessage: 'Sign in',
23
- description: 'Sign in button label that appears on login page',
24
- },
25
- 'forgot.password': {
26
- id: 'forgot.password',
27
- defaultMessage: 'Forgot password',
28
- description: 'Button text for forgot password',
29
- },
30
- 'institution.login.button': {
31
- id: 'institution.login.button',
32
- defaultMessage: 'Institution/campus credentials',
33
- description: 'shows institutions list',
34
- },
35
- 'institution.login.page.title': {
36
- id: 'institution.login.page.title',
37
- defaultMessage: 'Sign in with institution/campus credentials',
38
- description: 'Heading of institution page',
39
- },
40
- 'institution.login.page.sub.heading': {
41
- id: 'institution.login.page.sub.heading',
42
- defaultMessage: 'Choose your institution from the list below',
43
- description: 'Heading of the institutions list',
44
- },
45
- 'non.compliant.password.title': {
46
- id: 'non.compliant.password.title',
47
- defaultMessage: 'We recently changed our password requirements',
48
- description: 'A title that appears in bold before error message for non-compliant password',
49
- },
50
- 'non.compliant.password.message': {
51
- id: 'non.compliant.password.message',
52
- defaultMessage: 'Your current password does not meet the new security requirements. '
53
- + 'We just sent a password-reset message to the email address associated with this account. '
54
- + 'Thank you for helping us keep your data safe.',
55
- description: 'Error message for non-compliant password',
56
- },
57
- 'account.locked.out.message.1': {
58
- id: 'account.locked.out.message.1',
59
- defaultMessage: 'To protect your account, it\'s been temporarily locked. Try again in 30 minutes.',
60
- description: 'Part of message for when user account has been locked out after multiple failed login attempts',
61
- },
62
- 'username.or.email.format.validation.less.chars.message': {
63
- id: 'username.or.email.format.validation.less.chars.message',
64
- defaultMessage: 'Username or email must have at least 2 characters.',
65
- description: 'Validation message that appears when username or email address is less than 2 characters',
66
- },
67
- 'email.validation.message': {
68
- id: 'email.validation.message',
69
- defaultMessage: 'Enter your username or email',
70
- description: 'Validation message that appears when email is empty',
71
- },
72
- 'password.validation.message': {
73
- id: 'password.validation.message',
74
- defaultMessage: 'Enter your password',
75
- description: 'Validation message that appears when password is empty',
76
- },
77
- // Account Activation Strings
78
- 'account.activation.success.message.title': {
79
- id: 'account.activation.success.message.title',
80
- defaultMessage: 'Success! You have activated your account.',
81
- description: 'Account Activation success message title',
82
- },
83
- 'account.activation.success.message': {
84
- id: 'account.activation.success.message',
85
- defaultMessage: 'You will now receive email updates and alerts from us related to the courses you are enrolled in. Sign in to continue.',
86
- description: 'Message show to learners when their account has been activated successfully',
87
- },
88
- 'account.activation.info.message': {
89
- id: 'account.activation.info.message',
90
- defaultMessage: 'This account has already been activated.',
91
- description: 'Message shown when learner account has already been activated',
92
- },
93
- 'account.activation.error.message.title': {
94
- id: 'account.activation.error.message.title',
95
- defaultMessage: 'Your account could not be activated',
96
- description: 'Account Activation error message title',
97
- },
98
- 'account.activation.support.link': {
99
- id: 'account.activation.support.link',
100
- defaultMessage: 'contact support',
101
- description: 'Link text used in account activation error message to go to learner help center',
102
- },
103
- // Email Confirmation Strings
104
- 'account.confirmation.success.message.title': {
105
- id: 'account.confirmation.success.message.title',
106
- defaultMessage: 'Success! You have confirmed your email.',
107
- description: 'Account verification success message title',
108
- },
109
- 'account.confirmation.success.message': {
110
- id: 'account.confirmation.success.message',
111
- defaultMessage: 'Sign in to continue.',
112
- description: 'Message show to learners when their account has been activated successfully',
113
- },
114
- 'account.confirmation.info.message': {
115
- id: 'account.confirmation.info.message',
116
- defaultMessage: 'This email has already been confirmed.',
117
- description: 'Message shown when learner account has already been verified',
118
- },
119
- 'account.confirmation.error.message.title': {
120
- id: 'account.confirmation.error.message.title',
121
- defaultMessage: 'Your email could not be confirmed',
122
- description: 'Account verification error message title',
123
- },
124
- 'tpa.account.link': {
125
- id: 'tpa.account.link',
126
- defaultMessage: '{provider} account',
127
- description: 'Link text error message used to go to SSO when staff user try to login through password.',
128
- },
129
- 'internal.server.error.message': {
130
- id: 'internal.server.error.message',
131
- defaultMessage: 'An error has occurred. Try refreshing the page, or check your internet connection.',
132
- description: 'Error message that appears when server responds with 500 error code',
133
- },
134
- 'login.rate.limit.reached.message': {
135
- id: 'login.rate.limit.reached.message',
136
- defaultMessage: 'Too many failed login attempts. Try again later.',
137
- description: 'Error message that appears when an anonymous user has made too many failed login attempts',
138
- },
139
- 'login.failure.header.title': {
140
- id: 'login.failure.header.title',
141
- defaultMessage: 'We couldn\'t sign you in.',
142
- description: 'Login failure header message.',
143
- },
144
- 'contact.support.link': {
145
- id: 'contact.support.link',
146
- defaultMessage: 'contact {platformName} support',
147
- description: 'Link text used in inactive user error message to go to learner help center',
148
- },
149
- 'login.incorrect.credentials.error': {
150
- id: 'login.incorrect.credentials.error',
151
- defaultMessage: 'The username, email, or password you entered is incorrect. Please try again.',
152
- description: 'Error message for incorrect email or password',
153
- },
154
- 'login.form.invalid.error.message': {
155
- id: 'login.form.invalid.error.message',
156
- defaultMessage: 'Please fill in the fields below.',
157
- description: 'Login form empty input user message',
158
- },
159
- 'login.incorrect.credentials.error.reset.link.text': {
160
- id: 'login.incorrect.credentials.error.reset.link.text',
161
- defaultMessage: 'reset your password',
162
- description: 'Reset password link text for incorrect email or password credentials',
163
- },
164
- 'login.incorrect.credentials.error.before.account.blocked.text': {
165
- id: 'login.incorrect.credentials.error.before.account.blocked.text',
166
- defaultMessage: 'click here to reset it.',
167
- description: 'Reset password link text for incorrect email or password credentials before blocking account',
168
- },
169
- // Vulnerable password change prompt
170
- 'password.security.nudge.title': {
171
- id: 'password.security.nudge.title',
172
- defaultMessage: 'Password security',
173
- description: 'Title for prompt that nudges user to change their vulnerable password',
174
- },
175
- 'password.security.block.title': {
176
- id: 'password.security.block.title',
177
- defaultMessage: 'Password change required',
178
- description: 'Title for prompt that asks user to change their vulnerable password',
179
- },
180
- 'password.security.nudge.body': {
181
- id: 'password.security.nudge.body',
182
- defaultMessage: 'Our system detected that your password is vulnerable. '
183
- + 'We recommend you change it so that your account stays secure.',
184
- description: 'Message copy for prompt that nudges user to change their vulnerable password',
185
- },
186
- 'password.security.block.body': {
187
- id: 'password.security.block.body',
188
- defaultMessage: 'Our system detected that your password is vulnerable. '
189
- + 'Change your password so that your account stays secure.',
190
- description: 'Message copy for prompt that asks user to change their vulnerable password',
191
- },
192
- 'password.security.close.button': {
193
- id: 'password.security.close.button',
194
- defaultMessage: 'Close',
195
- description: 'Button to close popup',
196
- },
197
- 'password.security.redirect.to.reset.password.button': {
198
- id: 'password.security.redirect.to.reset.password.button',
199
- defaultMessage: 'Reset your password',
200
- description: 'Button to redirect users to Reset Password page',
201
- },
202
- 'login.tpa.authentication.failure': {
203
- id: 'login.tpa.authentication.failure',
204
- defaultMessage: 'We are sorry, you are not authorized to access {platform_name} via this channel. '
205
- + 'Please contact your learning administrator or manager in order to access {platform_name}.'
206
- + '{lineBreak}{lineBreak}Error Details:{lineBreak}{errorMessage}',
207
- description: 'Error message third party authentication pipeline fails',
208
- },
209
- });
210
-
211
- export default messages;