@openedx/frontend-app-authn 1.0.0-alpha.4 → 1.0.0-alpha.6

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 (506) hide show
  1. package/dist/Main.d.ts +3 -0
  2. package/{src/Main.tsx → dist/Main.js} +4 -15
  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/{src/common-components/EmbeddedRegistrationRoute.jsx → dist/common-components/EmbeddedRegistrationRoute.js} +9 -13
  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 +55 -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 +39 -0
  75. package/dist/common-components/PasswordField.js +94 -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 +68 -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 +42 -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 +56 -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 +31 -0
  94. package/dist/common-components/UnAuthOnlyRoute.js.map +1 -0
  95. package/dist/common-components/data/actions.d.ts +26 -0
  96. package/{src → dist}/common-components/data/actions.js +8 -13
  97. package/dist/common-components/data/actions.js.map +1 -0
  98. package/dist/common-components/data/reducers.d.ts +62 -0
  99. package/dist/common-components/data/reducers.js +39 -0
  100. package/dist/common-components/data/reducers.js.map +1 -0
  101. package/dist/common-components/data/sagas.d.ts +12 -0
  102. package/dist/common-components/data/sagas.js +21 -0
  103. package/dist/common-components/data/sagas.js.map +1 -0
  104. package/dist/common-components/data/selectors.d.ts +98 -0
  105. package/dist/common-components/data/selectors.js +11 -0
  106. package/dist/common-components/data/selectors.js.map +1 -0
  107. package/dist/common-components/data/service.d.ts +5 -0
  108. package/dist/common-components/data/service.js +31 -0
  109. package/dist/common-components/data/service.js.map +1 -0
  110. package/dist/common-components/index.d.ts +13 -0
  111. package/{src/common-components/index.jsx → dist/common-components/index.js} +1 -0
  112. package/dist/common-components/index.js.map +1 -0
  113. package/dist/common-components/messages.d.ts +113 -0
  114. package/dist/common-components/messages.js +126 -0
  115. package/dist/common-components/messages.js.map +1 -0
  116. package/dist/constants.d.ts +1 -0
  117. package/{src/constants.ts → dist/constants.js} +1 -0
  118. package/dist/constants.js.map +1 -0
  119. package/dist/data/configureStore.d.ts +3 -0
  120. package/{src → dist}/data/configureStore.js +11 -20
  121. package/dist/data/configureStore.js.map +1 -0
  122. package/dist/data/constants.d.ts +24 -0
  123. package/{src → dist}/data/constants.js +4 -8
  124. package/dist/data/constants.js.map +1 -0
  125. package/dist/data/countries.d.ts +26 -0
  126. package/{src/data/countries.ts → dist/data/countries.js} +6 -9
  127. package/dist/data/countries.js.map +1 -0
  128. package/dist/data/oneTrust.d.ts +2 -0
  129. package/dist/data/oneTrust.js +3 -0
  130. package/dist/data/oneTrust.js.map +1 -0
  131. package/dist/data/reducers.d.ts +254 -0
  132. package/dist/data/reducers.js +17 -0
  133. package/dist/data/reducers.js.map +1 -0
  134. package/dist/data/sagas.d.ts +1 -0
  135. package/{src → dist}/data/sagas.js +9 -10
  136. package/dist/data/sagas.js.map +1 -0
  137. package/dist/data/utils/cookies.d.ts +1 -0
  138. package/dist/data/utils/cookies.js +12 -0
  139. package/dist/data/utils/cookies.js.map +1 -0
  140. package/dist/data/utils/dataUtils.d.ts +11 -0
  141. package/dist/data/utils/dataUtils.js +67 -0
  142. package/dist/data/utils/dataUtils.js.map +1 -0
  143. package/dist/data/utils/index.d.ts +3 -0
  144. package/dist/data/utils/index.js +4 -0
  145. package/dist/data/utils/index.js.map +1 -0
  146. package/dist/data/utils/reduxUtils.d.ts +15 -0
  147. package/dist/data/utils/reduxUtils.js +29 -0
  148. package/dist/data/utils/reduxUtils.js.map +1 -0
  149. package/dist/data/utils/useMobileResponsive.d.ts +7 -0
  150. package/dist/data/utils/useMobileResponsive.js +22 -0
  151. package/dist/data/utils/useMobileResponsive.js.map +1 -0
  152. package/dist/field-renderer/FieldRenderer.d.ts +34 -0
  153. package/dist/field-renderer/FieldRenderer.js +70 -0
  154. package/dist/field-renderer/FieldRenderer.js.map +1 -0
  155. package/dist/field-renderer/index.d.ts +1 -0
  156. package/{src/field-renderer/index.jsx → dist/field-renderer/index.js} +1 -0
  157. package/dist/field-renderer/index.js.map +1 -0
  158. package/dist/forgot-password/ForgotPasswordAlert.d.ts +16 -0
  159. package/dist/forgot-password/ForgotPasswordAlert.js +66 -0
  160. package/dist/forgot-password/ForgotPasswordAlert.js.map +1 -0
  161. package/dist/forgot-password/ForgotPasswordPage.d.ts +36 -0
  162. package/dist/forgot-password/ForgotPasswordPage.js +91 -0
  163. package/dist/forgot-password/ForgotPasswordPage.js.map +1 -0
  164. package/dist/forgot-password/data/actions.d.ts +30 -0
  165. package/{src → dist}/forgot-password/data/actions.js +10 -16
  166. package/dist/forgot-password/data/actions.js.map +1 -0
  167. package/dist/forgot-password/data/reducers.d.ts +13 -0
  168. package/dist/forgot-password/data/reducers.js +46 -0
  169. package/dist/forgot-password/data/reducers.js.map +1 -0
  170. package/dist/forgot-password/data/sagas.d.ts +4 -0
  171. package/dist/forgot-password/data/sagas.js +28 -0
  172. package/dist/forgot-password/data/sagas.js.map +1 -0
  173. package/dist/forgot-password/data/selectors.d.ts +23 -0
  174. package/dist/forgot-password/data/selectors.js +5 -0
  175. package/dist/forgot-password/data/selectors.js.map +1 -0
  176. package/dist/forgot-password/data/service.d.ts +1 -0
  177. package/dist/forgot-password/data/service.js +26 -0
  178. package/dist/forgot-password/data/service.js.map +1 -0
  179. package/dist/forgot-password/index.d.ts +5 -0
  180. package/{src → dist}/forgot-password/index.js +1 -0
  181. package/dist/forgot-password/index.js.map +1 -0
  182. package/dist/forgot-password/messages.d.ts +123 -0
  183. package/dist/forgot-password/messages.js +128 -0
  184. package/dist/forgot-password/messages.js.map +1 -0
  185. package/dist/i18n/index.d.ts +25 -0
  186. package/dist/i18n/index.js +26 -0
  187. package/dist/i18n/index.js.map +1 -0
  188. package/dist/index.js +4 -0
  189. package/dist/index.js.map +1 -0
  190. package/dist/login/AccountActivationMessage.d.ts +14 -0
  191. package/dist/login/AccountActivationMessage.js +49 -0
  192. package/dist/login/AccountActivationMessage.js.map +1 -0
  193. package/dist/login/ChangePasswordPrompt.d.ts +18 -0
  194. package/dist/login/ChangePasswordPrompt.js +45 -0
  195. package/dist/login/ChangePasswordPrompt.js.map +1 -0
  196. package/dist/login/LoginFailure.d.ts +25 -0
  197. package/dist/login/LoginFailure.js +109 -0
  198. package/dist/login/LoginFailure.js.map +1 -0
  199. package/dist/login/LoginPage.d.ts +10 -0
  200. package/dist/login/LoginPage.js +216 -0
  201. package/dist/login/LoginPage.js.map +1 -0
  202. package/dist/login/data/actions.d.ts +36 -0
  203. package/{src → dist}/login/data/actions.js +12 -19
  204. package/dist/login/data/actions.js.map +1 -0
  205. package/dist/login/data/constants.d.ts +17 -0
  206. package/{src → dist}/login/data/constants.js +4 -4
  207. package/dist/login/data/constants.js.map +1 -0
  208. package/dist/login/data/reducers.d.ts +82 -0
  209. package/dist/login/data/reducers.js +44 -0
  210. package/dist/login/data/reducers.js.map +1 -0
  211. package/dist/login/data/sagas.d.ts +10 -0
  212. package/dist/login/data/sagas.js +34 -0
  213. package/dist/login/data/sagas.js.map +1 -0
  214. package/dist/login/data/service.d.ts +4 -0
  215. package/dist/login/data/service.js +32 -0
  216. package/dist/login/data/service.js.map +1 -0
  217. package/dist/login/index.d.ts +4 -0
  218. package/{src → dist}/login/index.js +1 -1
  219. package/dist/login/index.js.map +1 -0
  220. package/dist/login/messages.d.ts +198 -0
  221. package/dist/login/messages.js +210 -0
  222. package/dist/login/messages.js.map +1 -0
  223. package/dist/logistration/Logistration.d.ts +32 -0
  224. package/dist/logistration/Logistration.js +106 -0
  225. package/dist/logistration/Logistration.js.map +1 -0
  226. package/dist/progressive-profiling/ProgressiveProfiling.d.ts +46 -0
  227. package/dist/progressive-profiling/ProgressiveProfiling.js +167 -0
  228. package/dist/progressive-profiling/ProgressiveProfiling.js.map +1 -0
  229. package/dist/progressive-profiling/ProgressiveProfilingPageModal.d.ts +13 -0
  230. package/dist/progressive-profiling/ProgressiveProfilingPageModal.js +24 -0
  231. package/dist/progressive-profiling/ProgressiveProfilingPageModal.js.map +1 -0
  232. package/dist/progressive-profiling/data/actions.d.ts +19 -0
  233. package/{src → dist}/progressive-profiling/data/actions.js +6 -10
  234. package/dist/progressive-profiling/data/actions.js.map +1 -0
  235. package/dist/progressive-profiling/data/reducers.d.ts +22 -0
  236. package/dist/progressive-profiling/data/reducers.js +23 -0
  237. package/dist/progressive-profiling/data/reducers.js.map +1 -0
  238. package/dist/progressive-profiling/data/sagas.d.ts +4 -0
  239. package/dist/progressive-profiling/data/sagas.js +17 -0
  240. package/dist/progressive-profiling/data/sagas.js.map +1 -0
  241. package/dist/progressive-profiling/data/selectors.d.ts +39 -0
  242. package/{src → dist}/progressive-profiling/data/selectors.js +4 -9
  243. package/dist/progressive-profiling/data/selectors.js.map +1 -0
  244. package/dist/progressive-profiling/data/service.d.ts +1 -0
  245. package/dist/progressive-profiling/data/service.js +23 -0
  246. package/dist/progressive-profiling/data/service.js.map +1 -0
  247. package/dist/progressive-profiling/index.d.ts +4 -0
  248. package/{src → dist}/progressive-profiling/index.js +1 -1
  249. package/dist/progressive-profiling/index.js.map +1 -0
  250. package/dist/progressive-profiling/messages.d.ts +53 -0
  251. package/dist/progressive-profiling/messages.js +57 -0
  252. package/dist/progressive-profiling/messages.js.map +1 -0
  253. package/dist/register/RegistrationFields/CountryField/CountryField.d.ts +38 -0
  254. package/dist/register/RegistrationFields/CountryField/CountryField.js +95 -0
  255. package/dist/register/RegistrationFields/CountryField/CountryField.js.map +1 -0
  256. package/dist/register/RegistrationFields/CountryField/validator.d.ts +8 -0
  257. package/dist/register/RegistrationFields/CountryField/validator.js +29 -0
  258. package/dist/register/RegistrationFields/CountryField/validator.js.map +1 -0
  259. package/dist/register/RegistrationFields/EmailField/EmailField.d.ts +30 -0
  260. package/dist/register/RegistrationFields/EmailField/EmailField.js +80 -0
  261. package/dist/register/RegistrationFields/EmailField/EmailField.js.map +1 -0
  262. package/dist/register/RegistrationFields/EmailField/constants.d.ts +3 -0
  263. package/dist/register/RegistrationFields/EmailField/constants.js +130 -0
  264. package/dist/register/RegistrationFields/EmailField/constants.js.map +1 -0
  265. package/dist/register/RegistrationFields/EmailField/validator.d.ts +17 -0
  266. package/dist/register/RegistrationFields/EmailField/validator.js +107 -0
  267. package/dist/register/RegistrationFields/EmailField/validator.js.map +1 -0
  268. package/dist/register/RegistrationFields/HonorCodeField/HonorCode.d.ts +21 -0
  269. package/dist/register/RegistrationFields/HonorCodeField/HonorCode.js +40 -0
  270. package/dist/register/RegistrationFields/HonorCodeField/HonorCode.js.map +1 -0
  271. package/dist/register/RegistrationFields/NameField/NameField.d.ts +29 -0
  272. package/dist/register/RegistrationFields/NameField/NameField.js +52 -0
  273. package/dist/register/RegistrationFields/NameField/NameField.js.map +1 -0
  274. package/dist/register/RegistrationFields/NameField/validator.d.ts +5 -0
  275. package/{src → dist}/register/RegistrationFields/NameField/validator.js +9 -12
  276. package/dist/register/RegistrationFields/NameField/validator.js.map +1 -0
  277. package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.d.ts +16 -0
  278. package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.js +24 -0
  279. package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.js.map +1 -0
  280. package/dist/register/RegistrationFields/UsernameField/UsernameField.d.ts +31 -0
  281. package/dist/register/RegistrationFields/UsernameField/UsernameField.js +113 -0
  282. package/dist/register/RegistrationFields/UsernameField/UsernameField.js.map +1 -0
  283. package/dist/register/RegistrationFields/UsernameField/validator.d.ts +4 -0
  284. package/dist/register/RegistrationFields/UsernameField/validator.js +15 -0
  285. package/dist/register/RegistrationFields/UsernameField/validator.js.map +1 -0
  286. package/dist/register/RegistrationFields/index.d.ts +6 -0
  287. package/{src → dist}/register/RegistrationFields/index.js +1 -0
  288. package/dist/register/RegistrationFields/index.js.map +1 -0
  289. package/dist/register/RegistrationPage.d.ts +18 -0
  290. package/dist/register/RegistrationPage.js +216 -0
  291. package/dist/register/RegistrationPage.js.map +1 -0
  292. package/dist/register/components/ConfigurableRegistrationForm.d.ts +37 -0
  293. package/dist/register/components/ConfigurableRegistrationForm.js +145 -0
  294. package/dist/register/components/ConfigurableRegistrationForm.js.map +1 -0
  295. package/dist/register/components/RegistrationFailure.d.ts +19 -0
  296. package/dist/register/components/RegistrationFailure.js +57 -0
  297. package/dist/register/components/RegistrationFailure.js.map +1 -0
  298. package/dist/register/data/actions.d.ts +80 -0
  299. package/{src → dist}/register/data/actions.js +26 -42
  300. package/dist/register/data/actions.js.map +1 -0
  301. package/dist/register/data/constants.d.ts +10 -0
  302. package/{src → dist}/register/data/constants.js +4 -4
  303. package/dist/register/data/constants.js.map +1 -0
  304. package/dist/register/data/reducers.d.ts +237 -0
  305. package/dist/register/data/reducers.js +86 -0
  306. package/dist/register/data/reducers.js.map +1 -0
  307. package/dist/register/data/sagas.d.ts +19 -0
  308. package/dist/register/data/sagas.js +45 -0
  309. package/dist/register/data/sagas.js.map +1 -0
  310. package/dist/register/data/selectors.d.ts +26 -0
  311. package/dist/register/data/selectors.js +25 -0
  312. package/dist/register/data/selectors.js.map +1 -0
  313. package/dist/register/data/service.d.ts +8 -0
  314. package/dist/register/data/service.js +46 -0
  315. package/dist/register/data/service.js.map +1 -0
  316. package/dist/register/data/utils.d.ts +6 -0
  317. package/dist/register/data/utils.js +128 -0
  318. package/dist/register/data/utils.js.map +1 -0
  319. package/dist/register/index.d.ts +3 -0
  320. package/{src → dist}/register/index.js +1 -0
  321. package/dist/register/index.js.map +1 -0
  322. package/dist/register/messages.d.ts +193 -0
  323. package/dist/register/messages.js +205 -0
  324. package/dist/register/messages.js.map +1 -0
  325. package/dist/reset-password/ResetPasswordFailure.d.ts +15 -0
  326. package/dist/reset-password/ResetPasswordFailure.js +44 -0
  327. package/dist/reset-password/ResetPasswordFailure.js.map +1 -0
  328. package/dist/reset-password/ResetPasswordPage.d.ts +32 -0
  329. package/dist/reset-password/ResetPasswordPage.js +150 -0
  330. package/dist/reset-password/ResetPasswordPage.js.map +1 -0
  331. package/dist/reset-password/ResetPasswordSuccess.d.ts +2 -0
  332. package/dist/reset-password/ResetPasswordSuccess.js +10 -0
  333. package/dist/reset-password/ResetPasswordSuccess.js.map +1 -0
  334. package/dist/reset-password/data/actions.d.ts +56 -0
  335. package/{src → dist}/reset-password/data/actions.js +17 -26
  336. package/dist/reset-password/data/actions.js.map +1 -0
  337. package/dist/reset-password/data/constants.d.ts +13 -0
  338. package/{src → dist}/reset-password/data/constants.js +6 -7
  339. package/dist/reset-password/data/constants.js.map +1 -0
  340. package/dist/reset-password/data/reducers.d.ts +19 -0
  341. package/dist/reset-password/data/reducers.js +25 -0
  342. package/dist/reset-password/data/reducers.js.map +1 -0
  343. package/dist/reset-password/data/sagas.d.ts +7 -0
  344. package/dist/reset-password/data/sagas.js +63 -0
  345. package/dist/reset-password/data/sagas.js.map +1 -0
  346. package/dist/reset-password/data/selectors.d.ts +23 -0
  347. package/dist/reset-password/data/selectors.js +5 -0
  348. package/dist/reset-password/data/selectors.js.map +1 -0
  349. package/dist/reset-password/data/service.d.ts +3 -0
  350. package/dist/reset-password/data/service.js +62 -0
  351. package/dist/reset-password/data/service.js.map +1 -0
  352. package/dist/reset-password/index.d.ts +5 -0
  353. package/{src → dist}/reset-password/index.js +1 -0
  354. package/dist/reset-password/index.js.map +1 -0
  355. package/dist/reset-password/messages.d.ts +83 -0
  356. package/dist/reset-password/messages.js +87 -0
  357. package/dist/reset-password/messages.js.map +1 -0
  358. package/dist/routes.d.ts +18 -0
  359. package/dist/routes.js +75 -0
  360. package/dist/routes.js.map +1 -0
  361. package/{src → dist}/sass/_base_component.scss +57 -54
  362. package/{src → dist}/sass/_progressive_profiling_page.scss +1 -3
  363. package/{src → dist}/sass/_registration.scss +7 -8
  364. package/{src → dist}/sass/_style.scss +40 -43
  365. package/package.json +17 -6
  366. package/src/__mocks__/file.js +0 -1
  367. package/src/__mocks__/svg.js +0 -1
  368. package/src/app.scss +0 -6
  369. package/src/app.ts +0 -43
  370. package/src/base-container/components/default-layout/DefaultLayout.test.jsx +0 -48
  371. package/src/base-container/components/default-layout/LargeLayout.jsx +0 -42
  372. package/src/base-container/components/default-layout/MediumLayout.jsx +0 -49
  373. package/src/base-container/components/default-layout/SmallLayout.jsx +0 -37
  374. package/src/base-container/components/default-layout/messages.js +0 -16
  375. package/src/base-container/components/image-layout/ExtraSmallLayout.jsx +0 -31
  376. package/src/base-container/components/image-layout/LargeLayout.jsx +0 -32
  377. package/src/base-container/components/image-layout/MediumLayout.jsx +0 -32
  378. package/src/base-container/components/image-layout/SmallLayout.jsx +0 -31
  379. package/src/base-container/components/image-layout/messages.js +0 -16
  380. package/src/base-container/components/welcome-page-layout/LargeLayout.jsx +0 -46
  381. package/src/base-container/components/welcome-page-layout/MediumLayout.jsx +0 -49
  382. package/src/base-container/components/welcome-page-layout/SmallLayout.jsx +0 -38
  383. package/src/base-container/components/welcome-page-layout/messages.js +0 -21
  384. package/src/base-container/index.jsx +0 -70
  385. package/src/base-container/tests/BaseContainer.test.jsx +0 -44
  386. package/src/common-components/EnterpriseSSO.jsx +0 -110
  387. package/src/common-components/FormGroup.jsx +0 -106
  388. package/src/common-components/InstitutionLogistration.jsx +0 -102
  389. package/src/common-components/NotFoundPage.jsx +0 -15
  390. package/src/common-components/PasswordField.jsx +0 -175
  391. package/src/common-components/RedirectLogistration.jsx +0 -94
  392. package/src/common-components/RegisterFaIcons.jsx +0 -8
  393. package/src/common-components/SocialAuthProviders.jsx +0 -75
  394. package/src/common-components/ThirdPartyAuth.jsx +0 -123
  395. package/src/common-components/ThirdPartyAuthAlert.jsx +0 -49
  396. package/src/common-components/UnAuthOnlyRoute.jsx +0 -41
  397. package/src/common-components/data/reducers.js +0 -63
  398. package/src/common-components/data/sagas.js +0 -32
  399. package/src/common-components/data/selectors.js +0 -28
  400. package/src/common-components/data/service.js +0 -23
  401. package/src/common-components/data/tests/reducer.test.js +0 -82
  402. package/src/common-components/data/tests/sagas.test.js +0 -71
  403. package/src/common-components/messages.jsx +0 -127
  404. package/src/common-components/tests/EmbeddedRegistrationRoute.test.jsx +0 -76
  405. package/src/common-components/tests/FormField.test.jsx +0 -289
  406. package/src/common-components/tests/SocialAuthProviders.test.jsx +0 -75
  407. package/src/common-components/tests/ThirdPartyAuthAlert.test.jsx +0 -39
  408. package/src/common-components/tests/UnAuthOnlyRoute.test.jsx +0 -73
  409. package/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap +0 -156
  410. package/src/common-components/tests/__snapshots__/ThirdPartyAuthAlert.test.jsx.snap +0 -53
  411. package/src/data/oneTrust.js +0 -3
  412. package/src/data/reducers.js +0 -36
  413. package/src/data/tests/cookies.test.js +0 -42
  414. package/src/data/tests/dataUtils.test.js +0 -19
  415. package/src/data/tests/reduxUtils.test.js +0 -14
  416. package/src/data/utils/cookies.js +0 -12
  417. package/src/data/utils/dataUtils.js +0 -81
  418. package/src/data/utils/index.js +0 -11
  419. package/src/data/utils/reduxUtils.js +0 -34
  420. package/src/data/utils/useMobileResponsive.js +0 -24
  421. package/src/field-renderer/FieldRenderer.jsx +0 -156
  422. package/src/field-renderer/tests/FieldRenderer.test.jsx +0 -201
  423. package/src/forgot-password/ForgotPasswordAlert.jsx +0 -97
  424. package/src/forgot-password/ForgotPasswordPage.jsx +0 -193
  425. package/src/forgot-password/data/reducers.js +0 -58
  426. package/src/forgot-password/data/sagas.js +0 -35
  427. package/src/forgot-password/data/selectors.js +0 -10
  428. package/src/forgot-password/data/service.js +0 -21
  429. package/src/forgot-password/data/tests/reducers.test.js +0 -34
  430. package/src/forgot-password/data/tests/sagas.test.js +0 -67
  431. package/src/forgot-password/messages.js +0 -128
  432. package/src/forgot-password/tests/ForgotPasswordPage.test.jsx +0 -269
  433. package/src/i18n/index.js +0 -25
  434. package/src/login/AccountActivationMessage.jsx +0 -78
  435. package/src/login/ChangePasswordPrompt.jsx +0 -91
  436. package/src/login/LoginFailure.jsx +0 -231
  437. package/src/login/LoginPage.jsx +0 -368
  438. package/src/login/data/reducers.js +0 -76
  439. package/src/login/data/sagas.js +0 -45
  440. package/src/login/data/service.js +0 -27
  441. package/src/login/data/tests/reducers.test.js +0 -155
  442. package/src/login/data/tests/sagas.test.js +0 -110
  443. package/src/login/messages.jsx +0 -211
  444. package/src/login/tests/AccountActivationMessage.test.jsx +0 -122
  445. package/src/login/tests/ChangePasswordPrompt.test.jsx +0 -75
  446. package/src/login/tests/LoginFailure.test.jsx +0 -323
  447. package/src/login/tests/LoginPage.test.jsx +0 -839
  448. package/src/logistration/Logistration.jsx +0 -189
  449. package/src/logistration/Logistration.test.jsx +0 -275
  450. package/src/progressive-profiling/ProgressiveProfiling.jsx +0 -313
  451. package/src/progressive-profiling/ProgressiveProfilingPageModal.jsx +0 -56
  452. package/src/progressive-profiling/data/reducers.js +0 -38
  453. package/src/progressive-profiling/data/sagas.js +0 -24
  454. package/src/progressive-profiling/data/service.js +0 -17
  455. package/src/progressive-profiling/messages.jsx +0 -57
  456. package/src/progressive-profiling/tests/ProgressiveProfiling.test.jsx +0 -322
  457. package/src/register/RegistrationFields/CountryField/CountryField.jsx +0 -164
  458. package/src/register/RegistrationFields/CountryField/CountryField.test.jsx +0 -204
  459. package/src/register/RegistrationFields/CountryField/validator.js +0 -32
  460. package/src/register/RegistrationFields/EmailField/EmailField.jsx +0 -140
  461. package/src/register/RegistrationFields/EmailField/EmailField.test.jsx +0 -236
  462. package/src/register/RegistrationFields/EmailField/constants.js +0 -131
  463. package/src/register/RegistrationFields/EmailField/validator.js +0 -126
  464. package/src/register/RegistrationFields/EmailField/validator.test.js +0 -39
  465. package/src/register/RegistrationFields/HonorCodeField/HonorCode.jsx +0 -104
  466. package/src/register/RegistrationFields/HonorCodeField/HonorCode.test.jsx +0 -70
  467. package/src/register/RegistrationFields/NameField/NameField.jsx +0 -68
  468. package/src/register/RegistrationFields/NameField/NameField.test.jsx +0 -146
  469. package/src/register/RegistrationFields/TermsOfServiceField/TermsOfService.jsx +0 -58
  470. package/src/register/RegistrationFields/TermsOfServiceField/TermsOfService.test.jsx +0 -55
  471. package/src/register/RegistrationFields/UsernameField/UsernameField.jsx +0 -162
  472. package/src/register/RegistrationFields/UsernameField/UsernameField.test.jsx +0 -319
  473. package/src/register/RegistrationFields/UsernameField/validator.js +0 -16
  474. package/src/register/RegistrationPage.jsx +0 -428
  475. package/src/register/RegistrationPage.test.jsx +0 -854
  476. package/src/register/components/ConfigurableRegistrationForm.jsx +0 -244
  477. package/src/register/components/RegistrationFailure.jsx +0 -80
  478. package/src/register/components/tests/ConfigurableRegistrationForm.test.jsx +0 -401
  479. package/src/register/components/tests/RegistrationFailure.test.jsx +0 -212
  480. package/src/register/components/tests/ThirdPartyAuth.test.jsx +0 -439
  481. package/src/register/data/reducers.js +0 -140
  482. package/src/register/data/sagas.js +0 -58
  483. package/src/register/data/selectors.js +0 -34
  484. package/src/register/data/service.js +0 -45
  485. package/src/register/data/tests/reducers.test.js +0 -277
  486. package/src/register/data/tests/sagas.test.js +0 -239
  487. package/src/register/data/tests/utils.test.js +0 -98
  488. package/src/register/data/utils.js +0 -153
  489. package/src/register/messages.jsx +0 -206
  490. package/src/reset-password/ResetPasswordFailure.jsx +0 -55
  491. package/src/reset-password/ResetPasswordPage.jsx +0 -224
  492. package/src/reset-password/ResetPasswordSuccess.jsx +0 -19
  493. package/src/reset-password/data/reducers.js +0 -44
  494. package/src/reset-password/data/sagas.js +0 -67
  495. package/src/reset-password/data/selectors.js +0 -10
  496. package/src/reset-password/data/service.js +0 -61
  497. package/src/reset-password/data/tests/sagas.test.js +0 -185
  498. package/src/reset-password/messages.js +0 -88
  499. package/src/reset-password/tests/ResetPasswordPage.test.jsx +0 -241
  500. package/src/routes.jsx +0 -79
  501. package/src/setupTest.js +0 -68
  502. /package/{src → dist}/base-container/components/image-layout/index.scss +0 -0
  503. /package/{src/index.ts → dist/index.d.ts} +0 -0
  504. /package/{src → dist}/sass/_forgot_password.scss +0 -0
  505. /package/{src → dist}/sass/_login_page.scss +0 -0
  506. /package/{src → dist}/sass/_reset_password.scss +0 -0
@@ -0,0 +1,39 @@
1
+ import { THIRD_PARTY_AUTH_CONTEXT, THIRD_PARTY_AUTH_CONTEXT_CLEAR_ERROR_MSG } from './actions';
2
+ import { COMPLETE_STATE, FAILURE_STATE, PENDING_STATE } from '../../data/constants';
3
+ export const defaultState = {
4
+ fieldDescriptions: {},
5
+ optionalFields: {
6
+ fields: {},
7
+ extended_profile: [],
8
+ },
9
+ thirdPartyAuthApiStatus: null,
10
+ thirdPartyAuthContext: {
11
+ autoSubmitRegForm: false,
12
+ currentProvider: null,
13
+ finishAuthUrl: null,
14
+ countryCode: null,
15
+ providers: [],
16
+ secondaryProviders: [],
17
+ pipelineUserDetails: null,
18
+ errorMessage: null,
19
+ welcomePageRedirectUrl: null,
20
+ },
21
+ };
22
+ const reducer = (state = defaultState, action = {}) => {
23
+ var _a;
24
+ switch (action.type) {
25
+ case THIRD_PARTY_AUTH_CONTEXT.BEGIN:
26
+ return Object.assign(Object.assign({}, state), { thirdPartyAuthApiStatus: PENDING_STATE });
27
+ case THIRD_PARTY_AUTH_CONTEXT.SUCCESS: {
28
+ return Object.assign(Object.assign({}, state), { fieldDescriptions: (_a = action.payload.fieldDescriptions) === null || _a === void 0 ? void 0 : _a.fields, optionalFields: action.payload.optionalFields, thirdPartyAuthContext: action.payload.thirdPartyAuthContext, thirdPartyAuthApiStatus: COMPLETE_STATE });
29
+ }
30
+ case THIRD_PARTY_AUTH_CONTEXT.FAILURE:
31
+ return Object.assign(Object.assign({}, state), { thirdPartyAuthApiStatus: FAILURE_STATE, thirdPartyAuthContext: Object.assign(Object.assign({}, state.thirdPartyAuthContext), { errorMessage: null }) });
32
+ case THIRD_PARTY_AUTH_CONTEXT_CLEAR_ERROR_MSG:
33
+ return Object.assign(Object.assign({}, state), { thirdPartyAuthApiStatus: PENDING_STATE, thirdPartyAuthContext: Object.assign(Object.assign({}, state.thirdPartyAuthContext), { errorMessage: null }) });
34
+ default:
35
+ return state;
36
+ }
37
+ };
38
+ export default reducer;
39
+ //# sourceMappingURL=reducers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reducers.js","sourceRoot":"","sources":["../../../src/common-components/data/reducers.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,wCAAwC,EAAE,MAAM,WAAW,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEpF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,iBAAiB,EAAE,EAAE;IACrB,cAAc,EAAE;QACd,MAAM,EAAE,EAAE;QACV,gBAAgB,EAAE,EAAE;KACrB;IACD,uBAAuB,EAAE,IAAI;IAC7B,qBAAqB,EAAE;QACrB,iBAAiB,EAAE,KAAK;QACxB,eAAe,EAAE,IAAI;QACrB,aAAa,EAAE,IAAI;QACnB,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,EAAE;QACb,kBAAkB,EAAE,EAAE;QACtB,mBAAmB,EAAE,IAAI;QACzB,YAAY,EAAE,IAAI;QAClB,sBAAsB,EAAE,IAAI;KAC7B;CACF,CAAC;AAEF,MAAM,OAAO,GAAG,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE;;IACpD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,wBAAwB,CAAC,KAAK;YACjC,uCACK,KAAK,KACR,uBAAuB,EAAE,aAAa,IACtC;QACJ,KAAK,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAC;YACtC,uCACK,KAAK,KACR,iBAAiB,EAAE,MAAA,MAAM,CAAC,OAAO,CAAC,iBAAiB,0CAAE,MAAM,EAC3D,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,cAAc,EAC7C,qBAAqB,EAAE,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAC3D,uBAAuB,EAAE,cAAc,IACvC;QACJ,CAAC;QACD,KAAK,wBAAwB,CAAC,OAAO;YACnC,uCACK,KAAK,KACR,uBAAuB,EAAE,aAAa,EACtC,qBAAqB,kCAChB,KAAK,CAAC,qBAAqB,KAC9B,YAAY,EAAE,IAAI,OAEpB;QACJ,KAAK,wCAAwC;YAC3C,uCACK,KAAK,KACR,uBAAuB,EAAE,aAAa,EACtC,qBAAqB,kCAChB,KAAK,CAAC,qBAAqB,KAC9B,YAAY,EAAE,IAAI,OAEpB;QACJ;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["import { THIRD_PARTY_AUTH_CONTEXT, THIRD_PARTY_AUTH_CONTEXT_CLEAR_ERROR_MSG } from './actions';\nimport { COMPLETE_STATE, FAILURE_STATE, PENDING_STATE } from '../../data/constants';\n\nexport const defaultState = {\n fieldDescriptions: {},\n optionalFields: {\n fields: {},\n extended_profile: [],\n },\n thirdPartyAuthApiStatus: null,\n thirdPartyAuthContext: {\n autoSubmitRegForm: false,\n currentProvider: null,\n finishAuthUrl: null,\n countryCode: null,\n providers: [],\n secondaryProviders: [],\n pipelineUserDetails: null,\n errorMessage: null,\n welcomePageRedirectUrl: null,\n },\n};\n\nconst reducer = (state = defaultState, action = {}) => {\n switch (action.type) {\n case THIRD_PARTY_AUTH_CONTEXT.BEGIN:\n return {\n ...state,\n thirdPartyAuthApiStatus: PENDING_STATE,\n };\n case THIRD_PARTY_AUTH_CONTEXT.SUCCESS: {\n return {\n ...state,\n fieldDescriptions: action.payload.fieldDescriptions?.fields,\n optionalFields: action.payload.optionalFields,\n thirdPartyAuthContext: action.payload.thirdPartyAuthContext,\n thirdPartyAuthApiStatus: COMPLETE_STATE,\n };\n }\n case THIRD_PARTY_AUTH_CONTEXT.FAILURE:\n return {\n ...state,\n thirdPartyAuthApiStatus: FAILURE_STATE,\n thirdPartyAuthContext: {\n ...state.thirdPartyAuthContext,\n errorMessage: null,\n },\n };\n case THIRD_PARTY_AUTH_CONTEXT_CLEAR_ERROR_MSG:\n return {\n ...state,\n thirdPartyAuthApiStatus: PENDING_STATE,\n thirdPartyAuthContext: {\n ...state.thirdPartyAuthContext,\n errorMessage: null,\n },\n };\n default:\n return state;\n }\n};\n\nexport default reducer;\n"]}
@@ -0,0 +1,12 @@
1
+ export function fetchThirdPartyAuthContext(action: any): Generator<import("redux-saga/effects").PutEffect<{
2
+ type: string;
3
+ }> | import("redux-saga/effects").CallEffect<{
4
+ fieldDescriptions: any;
5
+ optionalFields: any;
6
+ thirdPartyAuthContext: any;
7
+ }>, void, {
8
+ fieldDescriptions: any;
9
+ optionalFields: any;
10
+ thirdPartyAuthContext: any;
11
+ }>;
12
+ export default function saga(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
@@ -0,0 +1,21 @@
1
+ import { logError } from '@openedx/frontend-base';
2
+ import { call, put, takeEvery } from 'redux-saga/effects';
3
+ import { setCountryFromThirdPartyAuthContext } from '../../register/data/actions';
4
+ import { getThirdPartyAuthContextBegin, getThirdPartyAuthContextFailure, getThirdPartyAuthContextSuccess, THIRD_PARTY_AUTH_CONTEXT, } from './actions';
5
+ import { getThirdPartyAuthContext, } from './service';
6
+ export function* fetchThirdPartyAuthContext(action) {
7
+ try {
8
+ yield put(getThirdPartyAuthContextBegin());
9
+ const { fieldDescriptions, optionalFields, thirdPartyAuthContext, } = yield call(getThirdPartyAuthContext, action.payload.urlParams);
10
+ yield put(setCountryFromThirdPartyAuthContext(thirdPartyAuthContext.countryCode));
11
+ yield put(getThirdPartyAuthContextSuccess(fieldDescriptions, optionalFields, thirdPartyAuthContext));
12
+ }
13
+ catch (e) {
14
+ yield put(getThirdPartyAuthContextFailure());
15
+ logError(e);
16
+ }
17
+ }
18
+ export default function* saga() {
19
+ yield takeEvery(THIRD_PARTY_AUTH_CONTEXT.BASE, fetchThirdPartyAuthContext);
20
+ }
21
+ //# sourceMappingURL=sagas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sagas.js","sourceRoot":"","sources":["../../../src/common-components/data/sagas.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EACL,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,wBAAwB,GACzB,MAAM,WAAW,CAAC;AAEnB,MAAM,SAAS,CAAC,CAAC,0BAA0B,CAAC,MAAM;IAChD,IAAI,CAAC;QACH,MAAM,GAAG,CAAC,6BAA6B,EAAE,CAAC,CAAC;QAC3C,MAAM,EACJ,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,GACzD,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAEnE,MAAM,GAAG,CAAC,mCAAmC,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC;QAClF,MAAM,GAAG,CAAC,+BAA+B,CAAC,iBAAiB,EAAE,cAAc,EAAE,qBAAqB,CAAC,CAAC,CAAC;IACvG,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,GAAG,CAAC,+BAA+B,EAAE,CAAC,CAAC;QAC7C,QAAQ,CAAC,CAAC,CAAC,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC,IAAI;IAC3B,MAAM,SAAS,CAAC,wBAAwB,CAAC,IAAI,EAAE,0BAA0B,CAAC,CAAC;AAC7E,CAAC","sourcesContent":["import { logError } from '@openedx/frontend-base';\nimport { call, put, takeEvery } from 'redux-saga/effects';\n\nimport { setCountryFromThirdPartyAuthContext } from '../../register/data/actions';\nimport {\n getThirdPartyAuthContextBegin,\n getThirdPartyAuthContextFailure,\n getThirdPartyAuthContextSuccess,\n THIRD_PARTY_AUTH_CONTEXT,\n} from './actions';\nimport {\n getThirdPartyAuthContext,\n} from './service';\n\nexport function* fetchThirdPartyAuthContext(action) {\n try {\n yield put(getThirdPartyAuthContextBegin());\n const {\n fieldDescriptions, optionalFields, thirdPartyAuthContext,\n } = yield call(getThirdPartyAuthContext, action.payload.urlParams);\n\n yield put(setCountryFromThirdPartyAuthContext(thirdPartyAuthContext.countryCode));\n yield put(getThirdPartyAuthContextSuccess(fieldDescriptions, optionalFields, thirdPartyAuthContext));\n } catch (e) {\n yield put(getThirdPartyAuthContextFailure());\n logError(e);\n }\n}\n\nexport default function* saga() {\n yield takeEvery(THIRD_PARTY_AUTH_CONTEXT.BASE, fetchThirdPartyAuthContext);\n}\n"]}
@@ -0,0 +1,98 @@
1
+ export const storeName: "commonComponents";
2
+ export function commonComponentsSelector(state: any): any;
3
+ export const thirdPartyAuthContextSelector: ((state: any) => any) & {
4
+ clearCache: () => void;
5
+ resultsCount: () => number;
6
+ resetResultsCount: () => void;
7
+ } & {
8
+ resultFunc: (resultFuncArgs_0: any) => any;
9
+ memoizedResultFunc: ((resultFuncArgs_0: any) => any) & {
10
+ clearCache: () => void;
11
+ resultsCount: () => number;
12
+ resetResultsCount: () => void;
13
+ };
14
+ lastResult: () => any;
15
+ dependencies: [(state: any) => any];
16
+ recomputations: () => number;
17
+ resetRecomputations: () => void;
18
+ dependencyRecomputations: () => number;
19
+ resetDependencyRecomputations: () => void;
20
+ } & {
21
+ argsMemoize: typeof import("reselect").weakMapMemoize;
22
+ memoize: typeof import("reselect").weakMapMemoize;
23
+ };
24
+ export const fieldDescriptionSelector: ((state: any) => any) & {
25
+ clearCache: () => void;
26
+ resultsCount: () => number;
27
+ resetResultsCount: () => void;
28
+ } & {
29
+ resultFunc: (resultFuncArgs_0: any) => any;
30
+ memoizedResultFunc: ((resultFuncArgs_0: any) => any) & {
31
+ clearCache: () => void;
32
+ resultsCount: () => number;
33
+ resetResultsCount: () => void;
34
+ };
35
+ lastResult: () => any;
36
+ dependencies: [(state: any) => any];
37
+ recomputations: () => number;
38
+ resetRecomputations: () => void;
39
+ dependencyRecomputations: () => number;
40
+ resetDependencyRecomputations: () => void;
41
+ } & {
42
+ argsMemoize: typeof import("reselect").weakMapMemoize;
43
+ memoize: typeof import("reselect").weakMapMemoize;
44
+ };
45
+ export const optionalFieldsSelector: ((state: any) => any) & {
46
+ clearCache: () => void;
47
+ resultsCount: () => number;
48
+ resetResultsCount: () => void;
49
+ } & {
50
+ resultFunc: (resultFuncArgs_0: any) => any;
51
+ memoizedResultFunc: ((resultFuncArgs_0: any) => any) & {
52
+ clearCache: () => void;
53
+ resultsCount: () => number;
54
+ resetResultsCount: () => void;
55
+ };
56
+ lastResult: () => any;
57
+ dependencies: [(state: any) => any];
58
+ recomputations: () => number;
59
+ resetRecomputations: () => void;
60
+ dependencyRecomputations: () => number;
61
+ resetDependencyRecomputations: () => void;
62
+ } & {
63
+ argsMemoize: typeof import("reselect").weakMapMemoize;
64
+ memoize: typeof import("reselect").weakMapMemoize;
65
+ };
66
+ export const tpaProvidersSelector: ((state: any) => {
67
+ providers: any;
68
+ secondaryProviders: any;
69
+ }) & {
70
+ clearCache: () => void;
71
+ resultsCount: () => number;
72
+ resetResultsCount: () => void;
73
+ } & {
74
+ resultFunc: (resultFuncArgs_0: any) => {
75
+ providers: any;
76
+ secondaryProviders: any;
77
+ };
78
+ memoizedResultFunc: ((resultFuncArgs_0: any) => {
79
+ providers: any;
80
+ secondaryProviders: any;
81
+ }) & {
82
+ clearCache: () => void;
83
+ resultsCount: () => number;
84
+ resetResultsCount: () => void;
85
+ };
86
+ lastResult: () => {
87
+ providers: any;
88
+ secondaryProviders: any;
89
+ };
90
+ dependencies: [(state: any) => any];
91
+ recomputations: () => number;
92
+ resetRecomputations: () => void;
93
+ dependencyRecomputations: () => number;
94
+ resetDependencyRecomputations: () => void;
95
+ } & {
96
+ argsMemoize: typeof import("reselect").weakMapMemoize;
97
+ memoize: typeof import("reselect").weakMapMemoize;
98
+ };
@@ -0,0 +1,11 @@
1
+ import { createSelector } from 'reselect';
2
+ export const storeName = 'commonComponents';
3
+ export const commonComponentsSelector = state => (Object.assign({}, state[storeName]));
4
+ export const thirdPartyAuthContextSelector = createSelector(commonComponentsSelector, commonComponents => commonComponents.thirdPartyAuthContext);
5
+ export const fieldDescriptionSelector = createSelector(commonComponentsSelector, commonComponents => commonComponents.fieldDescriptions);
6
+ export const optionalFieldsSelector = createSelector(commonComponentsSelector, commonComponents => commonComponents.optionalFields);
7
+ export const tpaProvidersSelector = createSelector(commonComponentsSelector, commonComponents => ({
8
+ providers: commonComponents.thirdPartyAuthContext.providers,
9
+ secondaryProviders: commonComponents.thirdPartyAuthContext.secondaryProviders,
10
+ }));
11
+ //# sourceMappingURL=selectors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../src/common-components/data/selectors.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CAAC;AAE5C,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC,EAAE,CAAC,mBAAM,KAAK,CAAC,SAAS,CAAC,EAAG,CAAC;AAE3E,MAAM,CAAC,MAAM,6BAA6B,GAAG,cAAc,CACzD,wBAAwB,EACxB,gBAAgB,CAAC,EAAE,CAAC,gBAAgB,CAAC,qBAAqB,CAC3D,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,cAAc,CACpD,wBAAwB,EACxB,gBAAgB,CAAC,EAAE,CAAC,gBAAgB,CAAC,iBAAiB,CACvD,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAClD,wBAAwB,EACxB,gBAAgB,CAAC,EAAE,CAAC,gBAAgB,CAAC,cAAc,CACpD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAChD,wBAAwB,EACxB,gBAAgB,CAAC,EAAE,CAAC,CAAC;IACnB,SAAS,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,SAAS;IAC3D,kBAAkB,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,kBAAkB;CAC9E,CAAC,CACH,CAAC","sourcesContent":["import { createSelector } from 'reselect';\n\nexport const storeName = 'commonComponents';\n\nexport const commonComponentsSelector = state => ({ ...state[storeName] });\n\nexport const thirdPartyAuthContextSelector = createSelector(\n commonComponentsSelector,\n commonComponents => commonComponents.thirdPartyAuthContext,\n);\n\nexport const fieldDescriptionSelector = createSelector(\n commonComponentsSelector,\n commonComponents => commonComponents.fieldDescriptions,\n);\n\nexport const optionalFieldsSelector = createSelector(\n commonComponentsSelector,\n commonComponents => commonComponents.optionalFields,\n);\n\nexport const tpaProvidersSelector = createSelector(\n commonComponentsSelector,\n commonComponents => ({\n providers: commonComponents.thirdPartyAuthContext.providers,\n secondaryProviders: commonComponents.thirdPartyAuthContext.secondaryProviders,\n }),\n);\n"]}
@@ -0,0 +1,5 @@
1
+ export function getThirdPartyAuthContext(urlParams: any): Promise<{
2
+ fieldDescriptions: any;
3
+ optionalFields: any;
4
+ thirdPartyAuthContext: any;
5
+ }>;
@@ -0,0 +1,31 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getAuthenticatedHttpClient, getSiteConfig } from '@openedx/frontend-base';
11
+ export function getThirdPartyAuthContext(urlParams) {
12
+ return __awaiter(this, void 0, void 0, function* () {
13
+ var _a, _b, _c;
14
+ const requestConfig = {
15
+ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
16
+ params: urlParams,
17
+ isPublic: true,
18
+ };
19
+ const { data } = yield getAuthenticatedHttpClient()
20
+ .get(`${getSiteConfig().lmsBaseUrl}/api/mfe_context`, requestConfig)
21
+ .catch((e) => {
22
+ throw (e);
23
+ });
24
+ return {
25
+ fieldDescriptions: (_a = data.registrationFields) !== null && _a !== void 0 ? _a : {},
26
+ optionalFields: (_b = data.optionalFields) !== null && _b !== void 0 ? _b : {},
27
+ thirdPartyAuthContext: (_c = data.contextData) !== null && _c !== void 0 ? _c : {},
28
+ };
29
+ });
30
+ }
31
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/common-components/data/service.js"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEnF,MAAM,UAAgB,wBAAwB,CAAC,SAAS;;;QACtD,MAAM,aAAa,GAAG;YACpB,OAAO,EAAE,EAAE,cAAc,EAAE,mCAAmC,EAAE;YAChE,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,IAAI;SACf,CAAC;QAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,0BAA0B,EAAE;aAChD,GAAG,CACF,GAAG,aAAa,EAAE,CAAC,UAAU,kBAAkB,EAC/C,aAAa,CACd;aACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,MAAM,CAAC,CAAC,CAAC,CAAC;QACZ,CAAC,CAAC,CAAC;QACL,OAAO;YACL,iBAAiB,EAAE,MAAA,IAAI,CAAC,kBAAkB,mCAAI,EAAE;YAChD,cAAc,EAAE,MAAA,IAAI,CAAC,cAAc,mCAAI,EAAE;YACzC,qBAAqB,EAAE,MAAA,IAAI,CAAC,WAAW,mCAAI,EAAE;SAC9C,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { getAuthenticatedHttpClient, getSiteConfig } from '@openedx/frontend-base';\n\nexport async function getThirdPartyAuthContext(urlParams) {\n const requestConfig = {\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n params: urlParams,\n isPublic: true,\n };\n\n const { data } = await getAuthenticatedHttpClient()\n .get(\n `${getSiteConfig().lmsBaseUrl}/api/mfe_context`,\n requestConfig,\n )\n .catch((e) => {\n throw (e);\n });\n return {\n fieldDescriptions: data.registrationFields ?? {},\n optionalFields: data.optionalFields ?? {},\n thirdPartyAuthContext: data.contextData ?? {},\n };\n}\n"]}
@@ -0,0 +1,13 @@
1
+ export { default as RedirectLogistration } from "./RedirectLogistration";
2
+ export { default as registerIcons } from "./RegisterFaIcons";
3
+ export { default as EmbeddedRegistrationRoute } from "./EmbeddedRegistrationRoute";
4
+ export { default as UnAuthOnlyRoute } from "./UnAuthOnlyRoute";
5
+ export { default as NotFoundPage } from "./NotFoundPage";
6
+ export { default as SocialAuthProviders } from "./SocialAuthProviders";
7
+ export { default as ThirdPartyAuthAlert } from "./ThirdPartyAuthAlert";
8
+ export { default as reducer } from "./data/reducers";
9
+ export { default as saga } from "./data/sagas";
10
+ export { storeName } from "./data/selectors";
11
+ export { default as FormGroup } from "./FormGroup";
12
+ export { default as PasswordField } from "./PasswordField";
13
+ export { default as InstitutionLogistration, RenderInstitutionButton } from "./InstitutionLogistration";
@@ -12,3 +12,4 @@ export { default as saga } from './data/sagas';
12
12
  export { storeName } from './data/selectors';
13
13
  export { default as FormGroup } from './FormGroup';
14
14
  export { default as PasswordField } from './PasswordField';
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common-components/index.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { default as RedirectLogistration } from './RedirectLogistration';\nexport { default as registerIcons } from './RegisterFaIcons';\nexport { default as EmbeddedRegistrationRoute } from './EmbeddedRegistrationRoute';\nexport { default as UnAuthOnlyRoute } from './UnAuthOnlyRoute';\nexport { default as NotFoundPage } from './NotFoundPage';\nexport { default as SocialAuthProviders } from './SocialAuthProviders';\nexport { default as ThirdPartyAuthAlert } from './ThirdPartyAuthAlert';\nexport { default as InstitutionLogistration } from './InstitutionLogistration';\nexport { RenderInstitutionButton } from './InstitutionLogistration';\nexport { default as reducer } from './data/reducers';\nexport { default as saga } from './data/sagas';\nexport { storeName } from './data/selectors';\nexport { default as FormGroup } from './FormGroup';\nexport { default as PasswordField } from './PasswordField';\n"]}
@@ -0,0 +1,113 @@
1
+ export default messages;
2
+ declare const messages: {
3
+ 'institution.login.page.sub.heading': {
4
+ id: string;
5
+ defaultMessage: string;
6
+ description: string;
7
+ };
8
+ 'logistration.sign.in': {
9
+ id: string;
10
+ defaultMessage: string;
11
+ description: string;
12
+ };
13
+ 'logistration.register': {
14
+ id: string;
15
+ defaultMessage: string;
16
+ description: string;
17
+ };
18
+ 'enterprisetpa.title.heading': {
19
+ id: string;
20
+ defaultMessage: string;
21
+ description: string;
22
+ };
23
+ 'enterprisetpa.login.button.text': {
24
+ id: string;
25
+ defaultMessage: string;
26
+ description: string;
27
+ };
28
+ 'enterprisetpa.login.button.text.public.account.creation.disabled': {
29
+ id: string;
30
+ defaultMessage: string;
31
+ description: string;
32
+ };
33
+ 'sso.sign.in.with': {
34
+ id: string;
35
+ defaultMessage: string;
36
+ description: string;
37
+ };
38
+ 'sso.create.account.using': {
39
+ id: string;
40
+ defaultMessage: string;
41
+ description: string;
42
+ };
43
+ 'show.password': {
44
+ id: string;
45
+ defaultMessage: string;
46
+ description: string;
47
+ };
48
+ 'hide.password': {
49
+ id: string;
50
+ defaultMessage: string;
51
+ description: string;
52
+ };
53
+ 'one.letter': {
54
+ id: string;
55
+ defaultMessage: string;
56
+ description: string;
57
+ };
58
+ 'one.number': {
59
+ id: string;
60
+ defaultMessage: string;
61
+ description: string;
62
+ };
63
+ 'eight.characters': {
64
+ id: string;
65
+ defaultMessage: string;
66
+ description: string;
67
+ };
68
+ 'password.sr.only.helping.text': {
69
+ id: string;
70
+ defaultMessage: string;
71
+ description: string;
72
+ };
73
+ 'tpa.alert.heading': {
74
+ id: string;
75
+ defaultMessage: string;
76
+ description: string;
77
+ };
78
+ 'login.third.party.auth.account.not.linked': {
79
+ id: string;
80
+ defaultMessage: string;
81
+ description: string;
82
+ };
83
+ 'register.third.party.auth.account.not.linked': {
84
+ id: string;
85
+ defaultMessage: string;
86
+ description: string;
87
+ };
88
+ 'registration.using.tpa.form.heading': {
89
+ id: string;
90
+ defaultMessage: string;
91
+ description: string;
92
+ };
93
+ 'registration.other.options.heading': {
94
+ id: string;
95
+ defaultMessage: string;
96
+ description: string;
97
+ };
98
+ 'institution.login.button': {
99
+ id: string;
100
+ defaultMessage: string;
101
+ description: string;
102
+ };
103
+ 'login.other.options.heading': {
104
+ id: string;
105
+ defaultMessage: string;
106
+ description: string;
107
+ };
108
+ 'enterprise.login.btn.text': {
109
+ id: string;
110
+ defaultMessage: string;
111
+ description: string;
112
+ };
113
+ };
@@ -0,0 +1,126 @@
1
+ import { defineMessages } from '@openedx/frontend-base';
2
+ const messages = defineMessages({
3
+ // institution login strings
4
+ 'institution.login.page.sub.heading': {
5
+ id: 'institution.login.page.sub.heading',
6
+ defaultMessage: 'Choose your institution from the list below',
7
+ description: 'Heading of the institutions list',
8
+ },
9
+ // logistration strings
10
+ 'logistration.sign.in': {
11
+ id: 'logistration.sign.in',
12
+ defaultMessage: 'Sign in',
13
+ description: 'Text that appears on the tab to switch between login and register',
14
+ },
15
+ 'logistration.register': {
16
+ id: 'logistration.register',
17
+ defaultMessage: 'Register',
18
+ description: 'Text that appears on the tab to switch between login and register',
19
+ },
20
+ // enterprise sso strings
21
+ 'enterprisetpa.title.heading': {
22
+ id: 'enterprisetpa.title.heading',
23
+ defaultMessage: 'Would you like to sign in using your {providerName} credentials?',
24
+ description: 'Header text used in enterprise third party authentication',
25
+ },
26
+ 'enterprisetpa.login.button.text': {
27
+ id: 'enterprisetpa.login.button.text',
28
+ defaultMessage: 'Show me other ways to sign in or register',
29
+ description: 'Button text for login',
30
+ },
31
+ 'enterprisetpa.login.button.text.public.account.creation.disabled': {
32
+ id: 'enterprisetpa.login.button.text.public.account.creation.disabled',
33
+ defaultMessage: 'Show me other ways to sign in',
34
+ description: 'Button text for login when account creation is disabled',
35
+ },
36
+ // social auth providers
37
+ 'sso.sign.in.with': {
38
+ id: 'sso.sign.in.with',
39
+ defaultMessage: 'Sign in with {providerName}',
40
+ description: 'Screen reader text that appears before social auth provider name',
41
+ },
42
+ 'sso.create.account.using': {
43
+ id: 'sso.create.account.using',
44
+ defaultMessage: 'Create account using {providerName}',
45
+ description: 'Screen reader text that appears before social auth provider name',
46
+ },
47
+ // password field strings
48
+ 'show.password': {
49
+ id: 'show.password',
50
+ defaultMessage: 'Show password',
51
+ description: 'aria label for show password icon on password field',
52
+ },
53
+ 'hide.password': {
54
+ id: 'hide.password',
55
+ defaultMessage: 'Hide password',
56
+ description: 'aria label for hide password icon on password field',
57
+ },
58
+ 'one.letter': {
59
+ id: 'one.letter',
60
+ defaultMessage: '1 letter',
61
+ description: 'password requirement to have 1 letter',
62
+ },
63
+ 'one.number': {
64
+ id: 'one.number',
65
+ defaultMessage: '1 number',
66
+ description: 'password requirement to have 1 number',
67
+ },
68
+ 'eight.characters': {
69
+ id: 'eight.characters',
70
+ defaultMessage: '8 characters',
71
+ description: 'password requirement to have a minimum of 8 characters',
72
+ },
73
+ 'password.sr.only.helping.text': {
74
+ id: 'password.sr.only.helping.text',
75
+ defaultMessage: 'Password must contain at least 8 characters, at least one letter, and at least one number',
76
+ description: 'Password helping text for the sr-only class',
77
+ },
78
+ // third party auth
79
+ 'tpa.alert.heading': {
80
+ id: 'tpa.alert.heading',
81
+ defaultMessage: 'Almost done!',
82
+ description: 'Success alert heading after user has successfully signed in with social auth',
83
+ },
84
+ 'login.third.party.auth.account.not.linked': {
85
+ id: 'login.third.party.auth.account.not.linked',
86
+ defaultMessage: 'You have successfully signed into {currentProvider}, but your {currentProvider} '
87
+ + 'account does not have a linked {platformName} account. To link your accounts, '
88
+ + 'sign in now using your {platformName} password.',
89
+ description: 'Message that appears on login page if user has successfully authenticated with social '
90
+ + 'auth but no associated platform account exists',
91
+ },
92
+ 'register.third.party.auth.account.not.linked': {
93
+ id: 'register.third.party.auth.account.not.linked',
94
+ defaultMessage: 'You\'ve successfully signed into {currentProvider}! We just need a little more information '
95
+ + 'before you start learning with {platformName}.',
96
+ description: 'Message that appears on register page if user has successfully authenticated with TPA '
97
+ + 'but no associated platform account exists',
98
+ },
99
+ 'registration.using.tpa.form.heading': {
100
+ id: 'registration.using.tpa.form.heading',
101
+ defaultMessage: 'Finish creating your account',
102
+ description: 'Heading that appears above form when user is trying to create account using social auth',
103
+ },
104
+ 'registration.other.options.heading': {
105
+ id: 'registration.other.options.heading',
106
+ defaultMessage: 'Or register with:',
107
+ description: 'A message that appears above third party auth providers i.e saml, google, facebook etc',
108
+ },
109
+ 'institution.login.button': {
110
+ id: 'institution.login.button',
111
+ defaultMessage: 'Institution/campus credentials',
112
+ description: 'shows institutions list',
113
+ },
114
+ 'login.other.options.heading': {
115
+ id: 'login.other.options.heading',
116
+ defaultMessage: 'Or sign in with:',
117
+ description: 'Text that appears above other sign in options like social auth buttons',
118
+ },
119
+ 'enterprise.login.btn.text': {
120
+ id: 'enterprise.login.btn.text',
121
+ defaultMessage: 'Company or school credentials',
122
+ description: 'Company or school login link text.',
123
+ },
124
+ });
125
+ export default messages;
126
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/common-components/messages.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,4BAA4B;IAC5B,oCAAoC,EAAE;QACpC,EAAE,EAAE,oCAAoC;QACxC,cAAc,EAAE,6CAA6C;QAC7D,WAAW,EAAE,kCAAkC;KAChD;IACD,uBAAuB;IACvB,sBAAsB,EAAE;QACtB,EAAE,EAAE,sBAAsB;QAC1B,cAAc,EAAE,SAAS;QACzB,WAAW,EAAE,mEAAmE;KACjF;IACD,uBAAuB,EAAE;QACvB,EAAE,EAAE,uBAAuB;QAC3B,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,mEAAmE;KACjF;IACD,yBAAyB;IACzB,6BAA6B,EAAE;QAC7B,EAAE,EAAE,6BAA6B;QACjC,cAAc,EAAE,kEAAkE;QAClF,WAAW,EAAE,2DAA2D;KACzE;IACD,iCAAiC,EAAE;QACjC,EAAE,EAAE,iCAAiC;QACrC,cAAc,EAAE,2CAA2C;QAC3D,WAAW,EAAE,uBAAuB;KACrC;IACD,kEAAkE,EAAE;QAClE,EAAE,EAAE,kEAAkE;QACtE,cAAc,EAAE,+BAA+B;QAC/C,WAAW,EAAE,yDAAyD;KACvE;IACD,wBAAwB;IACxB,kBAAkB,EAAE;QAClB,EAAE,EAAE,kBAAkB;QACtB,cAAc,EAAE,6BAA6B;QAC7C,WAAW,EAAE,kEAAkE;KAChF;IACD,0BAA0B,EAAE;QAC1B,EAAE,EAAE,0BAA0B;QAC9B,cAAc,EAAE,qCAAqC;QACrD,WAAW,EAAE,kEAAkE;KAChF;IACD,yBAAyB;IACzB,eAAe,EAAE;QACf,EAAE,EAAE,eAAe;QACnB,cAAc,EAAE,eAAe;QAC/B,WAAW,EAAE,qDAAqD;KACnE;IACD,eAAe,EAAE;QACf,EAAE,EAAE,eAAe;QACnB,cAAc,EAAE,eAAe;QAC/B,WAAW,EAAE,qDAAqD;KACnE;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,YAAY;QAChB,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,uCAAuC;KACrD;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,YAAY;QAChB,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,uCAAuC;KACrD;IACD,kBAAkB,EAAE;QAClB,EAAE,EAAE,kBAAkB;QACtB,cAAc,EAAE,cAAc;QAC9B,WAAW,EAAE,wDAAwD;KACtE;IACD,+BAA+B,EAAE;QAC/B,EAAE,EAAE,+BAA+B;QACnC,cAAc,EAAE,2FAA2F;QAC3G,WAAW,EAAE,6CAA6C;KAC3D;IACD,mBAAmB;IACnB,mBAAmB,EAAE;QACnB,EAAE,EAAE,mBAAmB;QACvB,cAAc,EAAE,cAAc;QAC9B,WAAW,EAAE,8EAA8E;KAC5F;IACD,2CAA2C,EAAE;QAC3C,EAAE,EAAE,2CAA2C;QAC/C,cAAc,EAAE,kFAAkF;cAC9F,gFAAgF;cAChF,iDAAiD;QACrD,WAAW,EAAE,wFAAwF;cACjG,gDAAgD;KACrD;IACD,8CAA8C,EAAE;QAC9C,EAAE,EAAE,8CAA8C;QAClD,cAAc,EAAE,6FAA6F;cACzG,gDAAgD;QACpD,WAAW,EAAE,wFAAwF;cACjG,2CAA2C;KAChD;IACD,qCAAqC,EAAE;QACrC,EAAE,EAAE,qCAAqC;QACzC,cAAc,EAAE,8BAA8B;QAC9C,WAAW,EAAE,yFAAyF;KACvG;IACD,oCAAoC,EAAE;QACpC,EAAE,EAAE,oCAAoC;QACxC,cAAc,EAAE,mBAAmB;QACnC,WAAW,EAAE,wFAAwF;KACtG;IACD,0BAA0B,EAAE;QAC1B,EAAE,EAAE,0BAA0B;QAC9B,cAAc,EAAE,gCAAgC;QAChD,WAAW,EAAE,yBAAyB;KACvC;IACD,6BAA6B,EAAE;QAC7B,EAAE,EAAE,6BAA6B;QACjC,cAAc,EAAE,kBAAkB;QAClC,WAAW,EAAE,wEAAwE;KACtF;IACD,2BAA2B,EAAE;QAC3B,EAAE,EAAE,2BAA2B;QAC/B,cAAc,EAAE,+BAA+B;QAC/C,WAAW,EAAE,oCAAoC;KAClD;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { defineMessages } from '@openedx/frontend-base';\n\nconst messages = defineMessages({\n // institution login strings\n 'institution.login.page.sub.heading': {\n id: 'institution.login.page.sub.heading',\n defaultMessage: 'Choose your institution from the list below',\n description: 'Heading of the institutions list',\n },\n // logistration strings\n 'logistration.sign.in': {\n id: 'logistration.sign.in',\n defaultMessage: 'Sign in',\n description: 'Text that appears on the tab to switch between login and register',\n },\n 'logistration.register': {\n id: 'logistration.register',\n defaultMessage: 'Register',\n description: 'Text that appears on the tab to switch between login and register',\n },\n // enterprise sso strings\n 'enterprisetpa.title.heading': {\n id: 'enterprisetpa.title.heading',\n defaultMessage: 'Would you like to sign in using your {providerName} credentials?',\n description: 'Header text used in enterprise third party authentication',\n },\n 'enterprisetpa.login.button.text': {\n id: 'enterprisetpa.login.button.text',\n defaultMessage: 'Show me other ways to sign in or register',\n description: 'Button text for login',\n },\n 'enterprisetpa.login.button.text.public.account.creation.disabled': {\n id: 'enterprisetpa.login.button.text.public.account.creation.disabled',\n defaultMessage: 'Show me other ways to sign in',\n description: 'Button text for login when account creation is disabled',\n },\n // social auth providers\n 'sso.sign.in.with': {\n id: 'sso.sign.in.with',\n defaultMessage: 'Sign in with {providerName}',\n description: 'Screen reader text that appears before social auth provider name',\n },\n 'sso.create.account.using': {\n id: 'sso.create.account.using',\n defaultMessage: 'Create account using {providerName}',\n description: 'Screen reader text that appears before social auth provider name',\n },\n // password field strings\n 'show.password': {\n id: 'show.password',\n defaultMessage: 'Show password',\n description: 'aria label for show password icon on password field',\n },\n 'hide.password': {\n id: 'hide.password',\n defaultMessage: 'Hide password',\n description: 'aria label for hide password icon on password field',\n },\n 'one.letter': {\n id: 'one.letter',\n defaultMessage: '1 letter',\n description: 'password requirement to have 1 letter',\n },\n 'one.number': {\n id: 'one.number',\n defaultMessage: '1 number',\n description: 'password requirement to have 1 number',\n },\n 'eight.characters': {\n id: 'eight.characters',\n defaultMessage: '8 characters',\n description: 'password requirement to have a minimum of 8 characters',\n },\n 'password.sr.only.helping.text': {\n id: 'password.sr.only.helping.text',\n defaultMessage: 'Password must contain at least 8 characters, at least one letter, and at least one number',\n description: 'Password helping text for the sr-only class',\n },\n // third party auth\n 'tpa.alert.heading': {\n id: 'tpa.alert.heading',\n defaultMessage: 'Almost done!',\n description: 'Success alert heading after user has successfully signed in with social auth',\n },\n 'login.third.party.auth.account.not.linked': {\n id: 'login.third.party.auth.account.not.linked',\n defaultMessage: 'You have successfully signed into {currentProvider}, but your {currentProvider} '\n + 'account does not have a linked {platformName} account. To link your accounts, '\n + 'sign in now using your {platformName} password.',\n description: 'Message that appears on login page if user has successfully authenticated with social '\n + 'auth but no associated platform account exists',\n },\n 'register.third.party.auth.account.not.linked': {\n id: 'register.third.party.auth.account.not.linked',\n defaultMessage: 'You\\'ve successfully signed into {currentProvider}! We just need a little more information '\n + 'before you start learning with {platformName}.',\n description: 'Message that appears on register page if user has successfully authenticated with TPA '\n + 'but no associated platform account exists',\n },\n 'registration.using.tpa.form.heading': {\n id: 'registration.using.tpa.form.heading',\n defaultMessage: 'Finish creating your account',\n description: 'Heading that appears above form when user is trying to create account using social auth',\n },\n 'registration.other.options.heading': {\n id: 'registration.other.options.heading',\n defaultMessage: 'Or register with:',\n description: 'A message that appears above third party auth providers i.e saml, google, facebook etc',\n },\n 'institution.login.button': {\n id: 'institution.login.button',\n defaultMessage: 'Institution/campus credentials',\n description: 'shows institutions list',\n },\n 'login.other.options.heading': {\n id: 'login.other.options.heading',\n defaultMessage: 'Or sign in with:',\n description: 'Text that appears above other sign in options like social auth buttons',\n },\n 'enterprise.login.btn.text': {\n id: 'enterprise.login.btn.text',\n defaultMessage: 'Company or school credentials',\n description: 'Company or school login link text.',\n },\n});\n\nexport default messages;\n"]}
@@ -0,0 +1 @@
1
+ export declare const appId = "org.openedx.frontend.app.authn";
@@ -1 +1,2 @@
1
1
  export const appId = 'org.openedx.frontend.app.authn';
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG,gCAAgC,CAAC","sourcesContent":["export const appId = 'org.openedx.frontend.app.authn';\n"]}
@@ -0,0 +1,3 @@
1
+ export default function configureStore(initialState?: {}): import("redux").Store<any, import("redux").AnyAction> & {
2
+ dispatch: any;
3
+ };
@@ -4,30 +4,21 @@ import { applyMiddleware, compose, createStore } from 'redux';
4
4
  import { createLogger } from 'redux-logger';
5
5
  import createSagaMiddleware from 'redux-saga';
6
6
  import thunkMiddleware from 'redux-thunk';
7
-
8
7
  import createRootReducer from './reducers';
9
8
  import rootSaga from './sagas';
10
-
11
9
  const sagaMiddleware = createSagaMiddleware();
12
-
13
10
  function composeMiddleware() {
14
- if (getSiteConfig().environment === 'development') {
15
- const loggerMiddleware = createLogger({
16
- collapsed: true,
17
- });
18
- return composeWithDevTools(applyMiddleware(thunkMiddleware, sagaMiddleware, loggerMiddleware));
19
- }
20
-
21
- return compose(applyMiddleware(thunkMiddleware, sagaMiddleware));
11
+ if (getSiteConfig().environment === 'development') {
12
+ const loggerMiddleware = createLogger({
13
+ collapsed: true,
14
+ });
15
+ return composeWithDevTools(applyMiddleware(thunkMiddleware, sagaMiddleware, loggerMiddleware));
16
+ }
17
+ return compose(applyMiddleware(thunkMiddleware, sagaMiddleware));
22
18
  }
23
-
24
19
  export default function configureStore(initialState = {}) {
25
- const store = createStore(
26
- createRootReducer(),
27
- initialState,
28
- composeMiddleware(),
29
- );
30
- sagaMiddleware.run(rootSaga);
31
-
32
- return store;
20
+ const store = createStore(createRootReducer(), initialState, composeMiddleware());
21
+ sagaMiddleware.run(rootSaga);
22
+ return store;
33
23
  }
24
+ //# sourceMappingURL=configureStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configureStore.js","sourceRoot":"","sources":["../../src/data/configureStore.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,oBAAoB,MAAM,YAAY,CAAC;AAC9C,OAAO,eAAe,MAAM,aAAa,CAAC;AAE1C,OAAO,iBAAiB,MAAM,YAAY,CAAC;AAC3C,OAAO,QAAQ,MAAM,SAAS,CAAC;AAE/B,MAAM,cAAc,GAAG,oBAAoB,EAAE,CAAC;AAE9C,SAAS,iBAAiB;IACxB,IAAI,aAAa,EAAE,CAAC,WAAW,KAAK,aAAa,EAAE,CAAC;QAClD,MAAM,gBAAgB,GAAG,YAAY,CAAC;YACpC,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;QACH,OAAO,mBAAmB,CAAC,eAAe,CAAC,eAAe,EAAE,cAAc,EAAE,gBAAgB,CAAC,CAAC,CAAC;IACjG,CAAC;IAED,OAAO,OAAO,CAAC,eAAe,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,YAAY,GAAG,EAAE;IACtD,MAAM,KAAK,GAAG,WAAW,CACvB,iBAAiB,EAAE,EACnB,YAAY,EACZ,iBAAiB,EAAE,CACpB,CAAC;IACF,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE7B,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import { getSiteConfig } from '@openedx/frontend-base';\nimport { composeWithDevTools } from '@redux-devtools/extension';\nimport { applyMiddleware, compose, createStore } from 'redux';\nimport { createLogger } from 'redux-logger';\nimport createSagaMiddleware from 'redux-saga';\nimport thunkMiddleware from 'redux-thunk';\n\nimport createRootReducer from './reducers';\nimport rootSaga from './sagas';\n\nconst sagaMiddleware = createSagaMiddleware();\n\nfunction composeMiddleware() {\n if (getSiteConfig().environment === 'development') {\n const loggerMiddleware = createLogger({\n collapsed: true,\n });\n return composeWithDevTools(applyMiddleware(thunkMiddleware, sagaMiddleware, loggerMiddleware));\n }\n\n return compose(applyMiddleware(thunkMiddleware, sagaMiddleware));\n}\n\nexport default function configureStore(initialState = {}) {\n const store = createStore(\n createRootReducer(),\n initialState,\n composeMiddleware(),\n );\n sagaMiddleware.run(rootSaga);\n\n return store;\n}\n"]}
@@ -0,0 +1,24 @@
1
+ export const LOGIN_PAGE: "/login";
2
+ export const REGISTER_PAGE: "/register";
3
+ export const REGISTER_EMBEDDED_PAGE: "/register-embedded";
4
+ export const RESET_PAGE: "/reset";
5
+ export const AUTHN_PROGRESSIVE_PROFILING: "/welcome";
6
+ export const DEFAULT_REDIRECT_URL: "/dashboard";
7
+ export const PASSWORD_RESET_CONFIRM: "/password_reset_confirm/:token/";
8
+ export const PAGE_NOT_FOUND: "/notfound";
9
+ export const ENTERPRISE_LOGIN_URL: "/enterprise/login";
10
+ export const SUPPORTED_ICON_CLASSES: string[];
11
+ export const FORM_SUBMISSION_ERROR: "form-submission-error";
12
+ export const INTERNAL_SERVER_ERROR: "internal-server-error";
13
+ export const API_RATELIMIT_ERROR: "api-ratelimit-error";
14
+ export const DEFAULT_STATE: "default";
15
+ export const PENDING_STATE: "pending";
16
+ export const COMPLETE_STATE: "complete";
17
+ export const FAILURE_STATE: "failure";
18
+ export const FORBIDDEN_STATE: "forbidden";
19
+ export const EMBEDDED: "embedded";
20
+ export const LETTER_REGEX: RegExp;
21
+ export const NUMBER_REGEX: RegExp;
22
+ export const VALID_EMAIL_REGEX: string;
23
+ export const AUTH_PARAMS: string[];
24
+ export const REDIRECT: "redirect";