@openedx/frontend-app-authn 1.0.0-alpha.0 → 1.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Main.d.ts +3 -0
- package/dist/Main.js +10 -0
- package/dist/Main.js.map +1 -0
- package/dist/app.d.ts +3 -0
- package/dist/app.js +41 -0
- package/dist/app.js.map +1 -0
- package/dist/app.scss +2 -0
- package/dist/base-container/components/default-layout/LargeLayout.d.ts +2 -0
- package/dist/base-container/components/default-layout/LargeLayout.js +11 -0
- package/dist/base-container/components/default-layout/LargeLayout.js.map +1 -0
- package/dist/base-container/components/default-layout/MediumLayout.d.ts +2 -0
- package/dist/base-container/components/default-layout/MediumLayout.js +11 -0
- package/dist/base-container/components/default-layout/MediumLayout.js.map +1 -0
- package/dist/base-container/components/default-layout/SmallLayout.d.ts +2 -0
- package/dist/base-container/components/default-layout/SmallLayout.js +11 -0
- package/dist/base-container/components/default-layout/SmallLayout.js.map +1 -0
- package/dist/base-container/components/default-layout/index.d.ts +3 -0
- package/{src/base-container/components/default-layout/index.jsx → dist/base-container/components/default-layout/index.js} +1 -0
- package/dist/base-container/components/default-layout/index.js.map +1 -0
- package/dist/base-container/components/default-layout/messages.d.ts +13 -0
- package/dist/base-container/components/default-layout/messages.js +15 -0
- package/dist/base-container/components/default-layout/messages.js.map +1 -0
- package/dist/base-container/components/image-layout/ExtraSmallLayout.d.ts +2 -0
- package/dist/base-container/components/image-layout/ExtraSmallLayout.js +10 -0
- package/dist/base-container/components/image-layout/ExtraSmallLayout.js.map +1 -0
- package/dist/base-container/components/image-layout/LargeLayout.d.ts +2 -0
- package/dist/base-container/components/image-layout/LargeLayout.js +11 -0
- package/dist/base-container/components/image-layout/LargeLayout.js.map +1 -0
- package/dist/base-container/components/image-layout/MediumLayout.d.ts +2 -0
- package/dist/base-container/components/image-layout/MediumLayout.js +11 -0
- package/dist/base-container/components/image-layout/MediumLayout.js.map +1 -0
- package/dist/base-container/components/image-layout/SmallLayout.d.ts +2 -0
- package/dist/base-container/components/image-layout/SmallLayout.js +10 -0
- package/dist/base-container/components/image-layout/SmallLayout.js.map +1 -0
- package/dist/base-container/components/image-layout/index.d.ts +4 -0
- package/{src/base-container/components/image-layout/index.jsx → dist/base-container/components/image-layout/index.js} +1 -0
- package/dist/base-container/components/image-layout/index.js.map +1 -0
- package/dist/base-container/components/image-layout/messages.d.ts +13 -0
- package/dist/base-container/components/image-layout/messages.js +15 -0
- package/dist/base-container/components/image-layout/messages.js.map +1 -0
- package/dist/base-container/components/welcome-page-layout/LargeLayout.d.ts +10 -0
- package/dist/base-container/components/welcome-page-layout/LargeLayout.js +14 -0
- package/dist/base-container/components/welcome-page-layout/LargeLayout.js.map +1 -0
- package/dist/base-container/components/welcome-page-layout/MediumLayout.d.ts +10 -0
- package/dist/base-container/components/welcome-page-layout/MediumLayout.js +14 -0
- package/dist/base-container/components/welcome-page-layout/MediumLayout.js.map +1 -0
- package/dist/base-container/components/welcome-page-layout/SmallLayout.d.ts +10 -0
- package/dist/base-container/components/welcome-page-layout/SmallLayout.js +14 -0
- package/dist/base-container/components/welcome-page-layout/SmallLayout.js.map +1 -0
- package/dist/base-container/components/welcome-page-layout/index.d.ts +3 -0
- package/{src/base-container/components/welcome-page-layout/index.jsx → dist/base-container/components/welcome-page-layout/index.js} +1 -0
- package/dist/base-container/components/welcome-page-layout/index.js.map +1 -0
- package/dist/base-container/components/welcome-page-layout/messages.d.ts +18 -0
- package/dist/base-container/components/welcome-page-layout/messages.js +20 -0
- package/dist/base-container/components/welcome-page-layout/messages.js.map +1 -0
- package/dist/base-container/index.d.ts +20 -0
- package/dist/base-container/index.js +27 -0
- package/dist/base-container/index.js.map +1 -0
- package/dist/common-components/EmbeddedRegistrationRoute.d.ts +14 -0
- package/dist/common-components/EmbeddedRegistrationRoute.js +22 -0
- package/dist/common-components/EmbeddedRegistrationRoute.js.map +1 -0
- package/dist/common-components/EnterpriseSSO.d.ts +29 -0
- package/dist/common-components/EnterpriseSSO.js +58 -0
- package/dist/common-components/EnterpriseSSO.js.map +1 -0
- package/dist/common-components/FormGroup.d.ts +60 -0
- package/dist/common-components/FormGroup.js +66 -0
- package/dist/common-components/FormGroup.js.map +1 -0
- package/dist/common-components/InstitutionLogistration.d.ts +34 -0
- package/dist/common-components/InstitutionLogistration.js +38 -0
- package/dist/common-components/InstitutionLogistration.js.map +1 -0
- package/dist/common-components/NotFoundPage.d.ts +2 -0
- package/dist/common-components/NotFoundPage.js +5 -0
- package/dist/common-components/NotFoundPage.js.map +1 -0
- package/dist/common-components/PasswordField.d.ts +47 -0
- package/dist/common-components/PasswordField.js +98 -0
- package/dist/common-components/PasswordField.js.map +1 -0
- package/dist/common-components/RedirectLogistration.d.ts +39 -0
- package/dist/common-components/RedirectLogistration.js +72 -0
- package/dist/common-components/RedirectLogistration.js.map +1 -0
- package/dist/common-components/RegisterFaIcons.d.ts +1 -0
- package/dist/common-components/RegisterFaIcons.js +6 -0
- package/dist/common-components/RegisterFaIcons.js.map +1 -0
- package/dist/common-components/SocialAuthProviders.d.ts +23 -0
- package/dist/common-components/SocialAuthProviders.js +43 -0
- package/dist/common-components/SocialAuthProviders.js.map +1 -0
- package/dist/common-components/ThirdPartyAuth.d.ts +42 -0
- package/dist/common-components/ThirdPartyAuth.js +57 -0
- package/dist/common-components/ThirdPartyAuth.js.map +1 -0
- package/dist/common-components/ThirdPartyAuthAlert.d.ts +15 -0
- package/dist/common-components/ThirdPartyAuthAlert.js +32 -0
- package/dist/common-components/ThirdPartyAuthAlert.js.map +1 -0
- package/dist/common-components/UnAuthOnlyRoute.d.ts +14 -0
- package/dist/common-components/UnAuthOnlyRoute.js +32 -0
- package/dist/common-components/UnAuthOnlyRoute.js.map +1 -0
- package/dist/common-components/components/ThirdPartyAuthContext.d.ts +31 -0
- package/dist/common-components/components/ThirdPartyAuthContext.js +84 -0
- package/dist/common-components/components/ThirdPartyAuthContext.js.map +1 -0
- package/dist/common-components/data/api.d.ts +6 -0
- package/dist/common-components/data/api.js +26 -0
- package/dist/common-components/data/api.js.map +1 -0
- package/dist/common-components/data/apiHook.d.ts +9 -0
- package/dist/common-components/data/apiHook.js +14 -0
- package/dist/common-components/data/apiHook.js.map +1 -0
- package/dist/common-components/data/queryKeys.d.ts +4 -0
- package/dist/common-components/data/queryKeys.js +6 -0
- package/dist/common-components/data/queryKeys.js.map +1 -0
- package/dist/common-components/index.d.ts +10 -0
- package/{src/common-components/index.jsx → dist/common-components/index.js} +1 -3
- package/dist/common-components/index.js.map +1 -0
- package/dist/common-components/messages.d.ts +113 -0
- package/dist/common-components/messages.js +126 -0
- package/dist/common-components/messages.js.map +1 -0
- package/dist/constants.d.ts +14 -0
- package/dist/constants.js +17 -0
- package/dist/constants.js.map +1 -0
- package/dist/data/constants.d.ts +16 -0
- package/{src → dist}/data/constants.js +4 -17
- package/dist/data/constants.js.map +1 -0
- package/dist/data/countries.d.ts +26 -0
- package/{src/data/countries.ts → dist/data/countries.js} +6 -9
- package/dist/data/countries.js.map +1 -0
- package/dist/data/oneTrust.d.ts +2 -0
- package/dist/data/oneTrust.js +3 -0
- package/dist/data/oneTrust.js.map +1 -0
- package/dist/data/utils/cookies.d.ts +1 -0
- package/dist/data/utils/cookies.js +12 -0
- package/dist/data/utils/cookies.js.map +1 -0
- package/dist/data/utils/dataUtils.d.ts +12 -0
- package/dist/data/utils/dataUtils.js +81 -0
- package/dist/data/utils/dataUtils.js.map +1 -0
- package/dist/data/utils/index.d.ts +2 -0
- package/dist/data/utils/index.js +3 -0
- package/dist/data/utils/index.js.map +1 -0
- package/dist/data/utils/useMobileResponsive.d.ts +7 -0
- package/dist/data/utils/useMobileResponsive.js +22 -0
- package/dist/data/utils/useMobileResponsive.js.map +1 -0
- package/dist/field-renderer/FieldRenderer.d.ts +34 -0
- package/dist/field-renderer/FieldRenderer.js +70 -0
- package/dist/field-renderer/FieldRenderer.js.map +1 -0
- package/dist/field-renderer/index.d.ts +1 -0
- package/{src/field-renderer/index.jsx → dist/field-renderer/index.js} +1 -0
- package/dist/field-renderer/index.js.map +1 -0
- package/dist/forgot-password/ForgotPasswordAlert.d.ts +16 -0
- package/dist/forgot-password/ForgotPasswordAlert.js +66 -0
- package/dist/forgot-password/ForgotPasswordAlert.js.map +1 -0
- package/dist/forgot-password/ForgotPasswordPage.d.ts +2 -0
- package/dist/forgot-password/ForgotPasswordPage.js +92 -0
- package/dist/forgot-password/ForgotPasswordPage.js.map +1 -0
- package/dist/forgot-password/data/api.d.ts +2 -0
- package/dist/forgot-password/data/api.js +25 -0
- package/dist/forgot-password/data/api.js.map +1 -0
- package/dist/forgot-password/data/apiHook.d.ts +16 -0
- package/dist/forgot-password/data/apiHook.js +26 -0
- package/dist/forgot-password/data/apiHook.js.map +1 -0
- package/dist/forgot-password/index.d.ts +1 -0
- package/dist/forgot-password/index.js +2 -0
- package/dist/forgot-password/index.js.map +1 -0
- package/dist/forgot-password/messages.d.ts +123 -0
- package/dist/forgot-password/messages.js +128 -0
- package/dist/forgot-password/messages.js.map +1 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.js +2 -0
- package/dist/i18n/index.js.map +1 -0
- package/{src/index.ts → dist/index.d.ts} +0 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/login/AccountActivationMessage.d.ts +14 -0
- package/dist/login/AccountActivationMessage.js +49 -0
- package/dist/login/AccountActivationMessage.js.map +1 -0
- package/dist/login/ChangePasswordPrompt.d.ts +18 -0
- package/dist/login/ChangePasswordPrompt.js +51 -0
- package/dist/login/ChangePasswordPrompt.js.map +1 -0
- package/dist/login/LoginFailure.d.ts +25 -0
- package/dist/login/LoginFailure.js +109 -0
- package/dist/login/LoginFailure.js.map +1 -0
- package/dist/login/LoginPage.d.ts +12 -0
- package/dist/login/LoginPage.js +174 -0
- package/dist/login/LoginPage.js.map +1 -0
- package/dist/login/components/LoginContext.d.ts +21 -0
- package/dist/login/components/LoginContext.js +28 -0
- package/dist/login/components/LoginContext.js.map +1 -0
- package/dist/login/data/api.d.ts +2 -0
- package/dist/login/data/api.js +27 -0
- package/dist/login/data/api.js.map +1 -0
- package/dist/login/data/apiHook.d.ts +13 -0
- package/dist/login/data/apiHook.js +57 -0
- package/dist/login/data/apiHook.js.map +1 -0
- package/dist/login/data/constants.d.ts +17 -0
- package/{src → dist}/login/data/constants.js +4 -4
- package/dist/login/data/constants.js.map +1 -0
- package/dist/login/index.d.ts +1 -0
- package/dist/login/index.js +2 -0
- package/dist/login/index.js.map +1 -0
- package/dist/login/messages.d.ts +198 -0
- package/dist/login/messages.js +210 -0
- package/dist/login/messages.js.map +1 -0
- package/dist/logistration/Logistration.d.ts +5 -0
- package/dist/logistration/Logistration.js +80 -0
- package/dist/logistration/Logistration.js.map +1 -0
- package/dist/progressive-profiling/ProgressiveProfiling.d.ts +2 -0
- package/dist/progressive-profiling/ProgressiveProfiling.js +143 -0
- package/dist/progressive-profiling/ProgressiveProfiling.js.map +1 -0
- package/dist/progressive-profiling/ProgressiveProfilingPageModal.d.ts +13 -0
- package/dist/progressive-profiling/ProgressiveProfilingPageModal.js +31 -0
- package/dist/progressive-profiling/ProgressiveProfilingPageModal.js.map +1 -0
- package/dist/progressive-profiling/components/ProgressiveProfilingContext.d.ts +18 -0
- package/dist/progressive-profiling/components/ProgressiveProfilingContext.js +52 -0
- package/dist/progressive-profiling/components/ProgressiveProfilingContext.js.map +1 -0
- package/dist/progressive-profiling/data/api.d.ts +2 -0
- package/dist/progressive-profiling/data/api.js +22 -0
- package/dist/progressive-profiling/data/api.js.map +1 -0
- package/dist/progressive-profiling/data/apiHook.d.ts +10 -0
- package/dist/progressive-profiling/data/apiHook.js +36 -0
- package/dist/progressive-profiling/data/apiHook.js.map +1 -0
- package/dist/progressive-profiling/index.d.ts +2 -0
- package/{src → dist}/progressive-profiling/index.js +1 -3
- package/dist/progressive-profiling/index.js.map +1 -0
- package/dist/progressive-profiling/messages.d.ts +53 -0
- package/dist/progressive-profiling/messages.js +57 -0
- package/dist/progressive-profiling/messages.js.map +1 -0
- package/dist/provides.d.ts +4 -0
- package/dist/provides.js +7 -0
- package/dist/provides.js.map +1 -0
- package/dist/register/RegistrationFields/CountryField/CountryField.d.ts +38 -0
- package/dist/register/RegistrationFields/CountryField/CountryField.js +93 -0
- package/dist/register/RegistrationFields/CountryField/CountryField.js.map +1 -0
- package/dist/register/RegistrationFields/CountryField/validator.d.ts +8 -0
- package/dist/register/RegistrationFields/CountryField/validator.js +29 -0
- package/dist/register/RegistrationFields/CountryField/validator.js.map +1 -0
- package/dist/register/RegistrationFields/EmailField/EmailField.d.ts +30 -0
- package/dist/register/RegistrationFields/EmailField/EmailField.js +88 -0
- package/dist/register/RegistrationFields/EmailField/EmailField.js.map +1 -0
- package/dist/register/RegistrationFields/EmailField/constants.d.ts +3 -0
- package/dist/register/RegistrationFields/EmailField/constants.js +130 -0
- package/dist/register/RegistrationFields/EmailField/constants.js.map +1 -0
- package/dist/register/RegistrationFields/EmailField/validator.d.ts +17 -0
- package/dist/register/RegistrationFields/EmailField/validator.js +107 -0
- package/dist/register/RegistrationFields/EmailField/validator.js.map +1 -0
- package/dist/register/RegistrationFields/HonorCodeField/HonorCode.d.ts +21 -0
- package/dist/register/RegistrationFields/HonorCodeField/HonorCode.js +40 -0
- package/dist/register/RegistrationFields/HonorCodeField/HonorCode.js.map +1 -0
- package/dist/register/RegistrationFields/NameField/NameField.d.ts +29 -0
- package/dist/register/RegistrationFields/NameField/NameField.js +59 -0
- package/dist/register/RegistrationFields/NameField/NameField.js.map +1 -0
- package/dist/register/RegistrationFields/NameField/validator.d.ts +6 -0
- package/dist/register/RegistrationFields/NameField/validator.js +23 -0
- package/dist/register/RegistrationFields/NameField/validator.js.map +1 -0
- package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.d.ts +16 -0
- package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.js +24 -0
- package/dist/register/RegistrationFields/TermsOfServiceField/TermsOfService.js.map +1 -0
- package/dist/register/RegistrationFields/UsernameField/UsernameField.d.ts +31 -0
- package/dist/register/RegistrationFields/UsernameField/UsernameField.js +119 -0
- package/dist/register/RegistrationFields/UsernameField/UsernameField.js.map +1 -0
- package/dist/register/RegistrationFields/UsernameField/validator.d.ts +4 -0
- package/dist/register/RegistrationFields/UsernameField/validator.js +15 -0
- package/dist/register/RegistrationFields/UsernameField/validator.js.map +1 -0
- package/dist/register/RegistrationFields/index.d.ts +6 -0
- package/{src → dist}/register/RegistrationFields/index.js +1 -0
- package/dist/register/RegistrationFields/index.js.map +1 -0
- package/dist/register/RegistrationPage.d.ts +18 -0
- package/dist/register/RegistrationPage.js +259 -0
- package/dist/register/RegistrationPage.js.map +1 -0
- package/dist/register/components/ConfigurableRegistrationForm.d.ts +37 -0
- package/dist/register/components/ConfigurableRegistrationForm.js +145 -0
- package/dist/register/components/ConfigurableRegistrationForm.js.map +1 -0
- package/dist/register/components/RegisterContext.d.ts +8 -0
- package/dist/register/components/RegisterContext.js +167 -0
- package/dist/register/components/RegisterContext.js.map +1 -0
- package/dist/register/components/RegistrationFailure.d.ts +19 -0
- package/dist/register/components/RegistrationFailure.js +60 -0
- package/dist/register/components/RegistrationFailure.js.map +1 -0
- package/dist/register/data/api.d.ts +9 -0
- package/dist/register/data/api.js +45 -0
- package/dist/register/data/api.js.map +1 -0
- package/dist/register/data/apiHook.d.ts +33 -0
- package/dist/register/data/apiHook.js +66 -0
- package/dist/register/data/apiHook.js.map +1 -0
- package/dist/register/data/constants.d.ts +11 -0
- package/{src → dist}/register/data/constants.js +5 -4
- package/dist/register/data/constants.js.map +1 -0
- package/dist/register/data/utils.d.ts +6 -0
- package/dist/register/data/utils.js +128 -0
- package/dist/register/data/utils.js.map +1 -0
- package/dist/register/index.d.ts +1 -0
- package/dist/register/index.js +2 -0
- package/dist/register/index.js.map +1 -0
- package/dist/register/messages.d.ts +203 -0
- package/dist/register/messages.js +215 -0
- package/dist/register/messages.js.map +1 -0
- package/dist/register/types.d.ts +74 -0
- package/dist/register/types.js +2 -0
- package/dist/register/types.js.map +1 -0
- package/dist/reset-password/ResetPasswordFailure.d.ts +15 -0
- package/dist/reset-password/ResetPasswordFailure.js +44 -0
- package/dist/reset-password/ResetPasswordFailure.js.map +1 -0
- package/dist/reset-password/ResetPasswordPage.d.ts +2 -0
- package/dist/reset-password/ResetPasswordPage.js +182 -0
- package/dist/reset-password/ResetPasswordPage.js.map +1 -0
- package/dist/reset-password/ResetPasswordSuccess.d.ts +2 -0
- package/dist/reset-password/ResetPasswordSuccess.js +10 -0
- package/dist/reset-password/ResetPasswordSuccess.js.map +1 -0
- package/dist/reset-password/data/api.d.ts +4 -0
- package/dist/reset-password/data/api.js +57 -0
- package/dist/reset-password/data/api.js.map +1 -0
- package/dist/reset-password/data/apiHook.d.ts +31 -0
- package/dist/reset-password/data/apiHook.js +74 -0
- package/dist/reset-password/data/apiHook.js.map +1 -0
- package/dist/reset-password/data/constants.d.ts +13 -0
- package/{src → dist}/reset-password/data/constants.js +6 -7
- package/dist/reset-password/data/constants.js.map +1 -0
- package/dist/reset-password/index.d.ts +1 -0
- package/dist/reset-password/index.js +2 -0
- package/dist/reset-password/index.js.map +1 -0
- package/dist/reset-password/messages.d.ts +83 -0
- package/dist/reset-password/messages.js +87 -0
- package/dist/reset-password/messages.js.map +1 -0
- package/dist/routes.d.ts +19 -0
- package/dist/routes.js +76 -0
- package/dist/routes.js.map +1 -0
- package/{src → dist}/sass/_base_component.scss +57 -54
- package/{src → dist}/sass/_progressive_profiling_page.scss +1 -3
- package/{src → dist}/sass/_registration.scss +15 -18
- package/{src → dist}/sass/_style.scss +40 -43
- package/dist/slots/LoginComponentSlot/index.d.ts +12 -0
- package/dist/slots/LoginComponentSlot/index.js +11 -0
- package/dist/slots/LoginComponentSlot/index.js.map +1 -0
- package/package.json +38 -16
- package/src/Main.tsx +0 -23
- package/src/__mocks__/file.js +0 -1
- package/src/__mocks__/svg.js +0 -1
- package/src/app.scss +0 -6
- package/src/app.ts +0 -43
- package/src/base-container/components/default-layout/DefaultLayout.test.jsx +0 -48
- package/src/base-container/components/default-layout/LargeLayout.jsx +0 -42
- package/src/base-container/components/default-layout/MediumLayout.jsx +0 -49
- package/src/base-container/components/default-layout/SmallLayout.jsx +0 -37
- package/src/base-container/components/default-layout/messages.js +0 -16
- package/src/base-container/components/image-layout/ExtraSmallLayout.jsx +0 -31
- package/src/base-container/components/image-layout/LargeLayout.jsx +0 -32
- package/src/base-container/components/image-layout/MediumLayout.jsx +0 -32
- package/src/base-container/components/image-layout/SmallLayout.jsx +0 -31
- package/src/base-container/components/image-layout/messages.js +0 -16
- package/src/base-container/components/welcome-page-layout/LargeLayout.jsx +0 -46
- package/src/base-container/components/welcome-page-layout/MediumLayout.jsx +0 -49
- package/src/base-container/components/welcome-page-layout/SmallLayout.jsx +0 -38
- package/src/base-container/components/welcome-page-layout/messages.js +0 -21
- package/src/base-container/index.jsx +0 -70
- package/src/base-container/tests/BaseContainer.test.jsx +0 -44
- package/src/common-components/EmbeddedRegistrationRoute.jsx +0 -26
- package/src/common-components/EnterpriseSSO.jsx +0 -110
- package/src/common-components/FormGroup.jsx +0 -106
- package/src/common-components/InstitutionLogistration.jsx +0 -102
- package/src/common-components/NotFoundPage.jsx +0 -15
- package/src/common-components/PasswordField.jsx +0 -175
- package/src/common-components/RedirectLogistration.jsx +0 -94
- package/src/common-components/RegisterFaIcons.jsx +0 -8
- package/src/common-components/SocialAuthProviders.jsx +0 -75
- package/src/common-components/ThirdPartyAuth.jsx +0 -123
- package/src/common-components/ThirdPartyAuthAlert.jsx +0 -49
- package/src/common-components/UnAuthOnlyRoute.jsx +0 -41
- package/src/common-components/data/actions.js +0 -27
- package/src/common-components/data/reducers.js +0 -63
- package/src/common-components/data/sagas.js +0 -32
- package/src/common-components/data/selectors.js +0 -28
- package/src/common-components/data/service.js +0 -23
- package/src/common-components/data/tests/reducer.test.js +0 -82
- package/src/common-components/data/tests/sagas.test.js +0 -71
- package/src/common-components/messages.jsx +0 -127
- package/src/common-components/tests/EmbeddedRegistrationRoute.test.jsx +0 -76
- package/src/common-components/tests/FormField.test.jsx +0 -289
- package/src/common-components/tests/SocialAuthProviders.test.jsx +0 -75
- package/src/common-components/tests/ThirdPartyAuthAlert.test.jsx +0 -39
- package/src/common-components/tests/UnAuthOnlyRoute.test.jsx +0 -73
- package/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap +0 -156
- package/src/common-components/tests/__snapshots__/ThirdPartyAuthAlert.test.jsx.snap +0 -53
- package/src/constants.ts +0 -1
- package/src/data/configureStore.js +0 -33
- package/src/data/oneTrust.js +0 -3
- package/src/data/reducers.js +0 -36
- package/src/data/sagas.js +0 -19
- package/src/data/tests/cookies.test.js +0 -42
- package/src/data/tests/dataUtils.test.js +0 -19
- package/src/data/tests/reduxUtils.test.js +0 -14
- package/src/data/utils/cookies.js +0 -12
- package/src/data/utils/dataUtils.js +0 -81
- package/src/data/utils/index.js +0 -11
- package/src/data/utils/reduxUtils.js +0 -34
- package/src/data/utils/useMobileResponsive.js +0 -24
- package/src/field-renderer/FieldRenderer.jsx +0 -156
- package/src/field-renderer/tests/FieldRenderer.test.jsx +0 -201
- package/src/forgot-password/ForgotPasswordAlert.jsx +0 -97
- package/src/forgot-password/ForgotPasswordPage.jsx +0 -193
- package/src/forgot-password/data/actions.js +0 -32
- package/src/forgot-password/data/reducers.js +0 -58
- package/src/forgot-password/data/sagas.js +0 -35
- package/src/forgot-password/data/selectors.js +0 -10
- package/src/forgot-password/data/service.js +0 -21
- package/src/forgot-password/data/tests/reducers.test.js +0 -34
- package/src/forgot-password/data/tests/sagas.test.js +0 -67
- package/src/forgot-password/index.js +0 -5
- package/src/forgot-password/messages.js +0 -128
- package/src/forgot-password/tests/ForgotPasswordPage.test.jsx +0 -269
- package/src/i18n/index.js +0 -25
- package/src/login/AccountActivationMessage.jsx +0 -78
- package/src/login/ChangePasswordPrompt.jsx +0 -91
- package/src/login/LoginFailure.jsx +0 -231
- package/src/login/LoginPage.jsx +0 -368
- package/src/login/data/actions.js +0 -39
- package/src/login/data/reducers.js +0 -76
- package/src/login/data/sagas.js +0 -45
- package/src/login/data/service.js +0 -24
- package/src/login/data/tests/reducers.test.js +0 -155
- package/src/login/data/tests/sagas.test.js +0 -110
- package/src/login/index.js +0 -5
- package/src/login/messages.jsx +0 -211
- package/src/login/tests/AccountActivationMessage.test.jsx +0 -122
- package/src/login/tests/ChangePasswordPrompt.test.jsx +0 -75
- package/src/login/tests/LoginFailure.test.jsx +0 -323
- package/src/login/tests/LoginPage.test.jsx +0 -839
- package/src/logistration/Logistration.jsx +0 -189
- package/src/logistration/Logistration.test.jsx +0 -275
- package/src/progressive-profiling/ProgressiveProfiling.jsx +0 -313
- package/src/progressive-profiling/ProgressiveProfilingPageModal.jsx +0 -56
- package/src/progressive-profiling/data/actions.js +0 -22
- package/src/progressive-profiling/data/reducers.js +0 -38
- package/src/progressive-profiling/data/sagas.js +0 -24
- package/src/progressive-profiling/data/selectors.js +0 -14
- package/src/progressive-profiling/data/service.js +0 -17
- package/src/progressive-profiling/messages.jsx +0 -57
- package/src/progressive-profiling/tests/ProgressiveProfiling.test.jsx +0 -322
- package/src/register/RegistrationFields/CountryField/CountryField.jsx +0 -164
- package/src/register/RegistrationFields/CountryField/CountryField.test.jsx +0 -204
- package/src/register/RegistrationFields/CountryField/validator.js +0 -32
- package/src/register/RegistrationFields/EmailField/EmailField.jsx +0 -140
- package/src/register/RegistrationFields/EmailField/EmailField.test.jsx +0 -236
- package/src/register/RegistrationFields/EmailField/constants.js +0 -131
- package/src/register/RegistrationFields/EmailField/validator.js +0 -126
- package/src/register/RegistrationFields/EmailField/validator.test.js +0 -39
- package/src/register/RegistrationFields/HonorCodeField/HonorCode.jsx +0 -104
- package/src/register/RegistrationFields/HonorCodeField/HonorCode.test.jsx +0 -70
- package/src/register/RegistrationFields/NameField/NameField.jsx +0 -68
- package/src/register/RegistrationFields/NameField/NameField.test.jsx +0 -146
- package/src/register/RegistrationFields/NameField/validator.js +0 -22
- package/src/register/RegistrationFields/TermsOfServiceField/TermsOfService.jsx +0 -58
- package/src/register/RegistrationFields/TermsOfServiceField/TermsOfService.test.jsx +0 -55
- package/src/register/RegistrationFields/UsernameField/UsernameField.jsx +0 -162
- package/src/register/RegistrationFields/UsernameField/UsernameField.test.jsx +0 -319
- package/src/register/RegistrationFields/UsernameField/validator.js +0 -16
- package/src/register/RegistrationPage.jsx +0 -428
- package/src/register/RegistrationPage.test.jsx +0 -854
- package/src/register/components/ConfigurableRegistrationForm.jsx +0 -244
- package/src/register/components/RegistrationFailure.jsx +0 -80
- package/src/register/components/tests/ConfigurableRegistrationForm.test.jsx +0 -401
- package/src/register/components/tests/RegistrationFailure.test.jsx +0 -212
- package/src/register/components/tests/ThirdPartyAuth.test.jsx +0 -439
- package/src/register/data/actions.js +0 -85
- package/src/register/data/reducers.js +0 -140
- package/src/register/data/sagas.js +0 -58
- package/src/register/data/selectors.js +0 -34
- package/src/register/data/service.js +0 -45
- package/src/register/data/tests/reducers.test.js +0 -277
- package/src/register/data/tests/sagas.test.js +0 -239
- package/src/register/data/tests/utils.test.js +0 -98
- package/src/register/data/utils.js +0 -153
- package/src/register/index.js +0 -4
- package/src/register/messages.jsx +0 -206
- package/src/reset-password/ResetPasswordFailure.jsx +0 -55
- package/src/reset-password/ResetPasswordPage.jsx +0 -224
- package/src/reset-password/ResetPasswordSuccess.jsx +0 -19
- package/src/reset-password/data/actions.js +0 -50
- package/src/reset-password/data/reducers.js +0 -44
- package/src/reset-password/data/sagas.js +0 -67
- package/src/reset-password/data/selectors.js +0 -10
- package/src/reset-password/data/service.js +0 -61
- package/src/reset-password/data/tests/sagas.test.js +0 -185
- package/src/reset-password/index.js +0 -5
- package/src/reset-password/messages.js +0 -88
- package/src/reset-password/tests/ResetPasswordPage.test.jsx +0 -241
- package/src/routes.jsx +0 -79
- package/src/setupTest.js +0 -68
- /package/{src → dist}/base-container/components/image-layout/index.scss +0 -0
- /package/{src → dist}/sass/_forgot_password.scss +0 -0
- /package/{src → dist}/sass/_login_page.scss +0 -0
- /package/{src → dist}/sass/_reset_password.scss +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
const getThirdPartyAuthContext = (urlParams) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12
|
+
const requestConfig = {
|
|
13
|
+
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
14
|
+
params: urlParams,
|
|
15
|
+
isPublic: true,
|
|
16
|
+
};
|
|
17
|
+
const { data } = yield getAuthenticatedHttpClient()
|
|
18
|
+
.get(`${getSiteConfig().lmsBaseUrl}/api/mfe_context`, requestConfig);
|
|
19
|
+
return {
|
|
20
|
+
fieldDescriptions: data.registrationFields || {},
|
|
21
|
+
optionalFields: data.optionalFields || {},
|
|
22
|
+
thirdPartyAuthContext: data.contextData || {},
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
export { getThirdPartyAuthContext, };
|
|
26
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/common-components/data/api.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEnF,MAAM,wBAAwB,GAAG,CAAO,SAAiB,EAAE,EAAE;IAC3D,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,EAAE,cAAc,EAAE,mCAAmC,EAAE;QAChE,MAAM,EAAE,SAAS;QACjB,QAAQ,EAAE,IAAI;KACf,CAAC;IAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,0BAA0B,EAAE;SAChD,GAAG,CACF,GAAG,aAAa,EAAE,CAAC,UAAU,kBAAkB,EAC/C,aAAa,CACd,CAAC;IACJ,OAAO;QACL,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,IAAI,EAAE;QAChD,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,EAAE;QACzC,qBAAqB,EAAE,IAAI,CAAC,WAAW,IAAI,EAAE;KAC9C,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,OAAO,EACL,wBAAwB,GACzB,CAAC","sourcesContent":["import { getAuthenticatedHttpClient, getSiteConfig } from '@openedx/frontend-base';\n\nconst getThirdPartyAuthContext = async (urlParams: string) => {\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 return {\n fieldDescriptions: data.registrationFields || {},\n optionalFields: data.optionalFields || {},\n thirdPartyAuthContext: data.contextData || {},\n };\n};\n\nexport {\n getThirdPartyAuthContext,\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const THIRD_PARTY_AUTH_ERROR = "third-party-auth-error";
|
|
2
|
+
declare const useThirdPartyAuthHook: (pageId: any, payload: any, { enabled }?: {
|
|
3
|
+
enabled?: boolean | undefined;
|
|
4
|
+
}) => import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
+
fieldDescriptions: any;
|
|
6
|
+
optionalFields: any;
|
|
7
|
+
thirdPartyAuthContext: any;
|
|
8
|
+
}, Error>;
|
|
9
|
+
export { useThirdPartyAuthHook, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { getThirdPartyAuthContext } from './api';
|
|
3
|
+
import { ThirdPartyAuthQueryKeys } from './queryKeys';
|
|
4
|
+
// Error constants
|
|
5
|
+
export const THIRD_PARTY_AUTH_ERROR = 'third-party-auth-error';
|
|
6
|
+
const useThirdPartyAuthHook = (pageId, payload, { enabled = true } = {}) => useQuery({
|
|
7
|
+
queryKey: ThirdPartyAuthQueryKeys.byPage(pageId, payload),
|
|
8
|
+
queryFn: () => getThirdPartyAuthContext(payload),
|
|
9
|
+
retry: false,
|
|
10
|
+
staleTime: 5 * 60 * 1000, // 5 minutes — TPA context is effectively static per session
|
|
11
|
+
enabled,
|
|
12
|
+
});
|
|
13
|
+
export { useThirdPartyAuthHook, };
|
|
14
|
+
//# sourceMappingURL=apiHook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiHook.js","sourceRoot":"","sources":["../../../src/common-components/data/apiHook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,kBAAkB;AAClB,MAAM,CAAC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAE/D,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,GAAG,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC;IACnF,QAAQ,EAAE,uBAAuB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzD,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB,CAAC,OAAO,CAAC;IAChD,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,4DAA4D;IACtF,OAAO;CACR,CAAC,CAAC;AAEH,OAAO,EACL,qBAAqB,GACtB,CAAC","sourcesContent":["import { useQuery } from '@tanstack/react-query';\n\nimport { getThirdPartyAuthContext } from './api';\nimport { ThirdPartyAuthQueryKeys } from './queryKeys';\n\n// Error constants\nexport const THIRD_PARTY_AUTH_ERROR = 'third-party-auth-error';\n\nconst useThirdPartyAuthHook = (pageId, payload, { enabled = true } = {}) => useQuery({\n queryKey: ThirdPartyAuthQueryKeys.byPage(pageId, payload),\n queryFn: () => getThirdPartyAuthContext(payload),\n retry: false,\n staleTime: 5 * 60 * 1000, // 5 minutes — TPA context is effectively static per session\n enabled,\n});\n\nexport {\n useThirdPartyAuthHook,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryKeys.js","sourceRoot":"","sources":["../../../src/common-components/data/queryKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,GAAG,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAU;IACvC,MAAM,EAAE,CAAC,MAAc,EAAE,OAAiB,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAU;CACnG,CAAC","sourcesContent":["import { appId } from '../../constants';\n\nexport const ThirdPartyAuthQueryKeys = {\n all: [appId, 'ThirdPartyAuth'] as const,\n byPage: (pageId: string, payload?: unknown) => [appId, 'ThirdPartyAuth', pageId, payload] as const,\n};\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 FormGroup } from "./FormGroup";
|
|
9
|
+
export { default as PasswordField } from "./PasswordField";
|
|
10
|
+
export { default as InstitutionLogistration, RenderInstitutionButton } from "./InstitutionLogistration";
|
|
@@ -7,8 +7,6 @@ export { default as SocialAuthProviders } from './SocialAuthProviders';
|
|
|
7
7
|
export { default as ThirdPartyAuthAlert } from './ThirdPartyAuthAlert';
|
|
8
8
|
export { default as InstitutionLogistration } from './InstitutionLogistration';
|
|
9
9
|
export { RenderInstitutionButton } from './InstitutionLogistration';
|
|
10
|
-
export { default as reducer } from './data/reducers';
|
|
11
|
-
export { default as saga } from './data/sagas';
|
|
12
|
-
export { storeName } from './data/selectors';
|
|
13
10
|
export { default as FormGroup } from './FormGroup';
|
|
14
11
|
export { default as PasswordField } from './PasswordField';
|
|
12
|
+
//# 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,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 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,14 @@
|
|
|
1
|
+
export declare const appId = "org.openedx.frontend.app.authn";
|
|
2
|
+
export declare const loginRole = "org.openedx.frontend.role.login";
|
|
3
|
+
export declare const registerRole = "org.openedx.frontend.role.register";
|
|
4
|
+
export declare const resetPasswordRole = "org.openedx.frontend.role.resetPassword";
|
|
5
|
+
export declare const confirmPasswordRole = "org.openedx.frontend.role.confirmPassword";
|
|
6
|
+
export declare const welcomeRole = "org.openedx.frontend.role.welcome";
|
|
7
|
+
export declare const dashboardRole = "org.openedx.frontend.role.dashboard";
|
|
8
|
+
export declare const loginPath = "login";
|
|
9
|
+
export declare const registerPath = "register";
|
|
10
|
+
export declare const registerEmbeddedPath = "register-embedded";
|
|
11
|
+
export declare const resetPath = "reset";
|
|
12
|
+
export declare const welcomePath = "welcome";
|
|
13
|
+
export declare const passwordResetConfirmPath = "password_reset_confirm";
|
|
14
|
+
export declare const notFoundPath = "notfound";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const appId = 'org.openedx.frontend.app.authn';
|
|
2
|
+
// Route roles
|
|
3
|
+
export const loginRole = 'org.openedx.frontend.role.login';
|
|
4
|
+
export const registerRole = 'org.openedx.frontend.role.register';
|
|
5
|
+
export const resetPasswordRole = 'org.openedx.frontend.role.resetPassword';
|
|
6
|
+
export const confirmPasswordRole = 'org.openedx.frontend.role.confirmPassword';
|
|
7
|
+
export const welcomeRole = 'org.openedx.frontend.role.welcome';
|
|
8
|
+
export const dashboardRole = 'org.openedx.frontend.role.dashboard';
|
|
9
|
+
// Route path segments
|
|
10
|
+
export const loginPath = 'login';
|
|
11
|
+
export const registerPath = 'register';
|
|
12
|
+
export const registerEmbeddedPath = 'register-embedded';
|
|
13
|
+
export const resetPath = 'reset';
|
|
14
|
+
export const welcomePath = 'welcome';
|
|
15
|
+
export const passwordResetConfirmPath = 'password_reset_confirm';
|
|
16
|
+
export const notFoundPath = 'notfound';
|
|
17
|
+
//# 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;AAEtD,cAAc;AACd,MAAM,CAAC,MAAM,SAAS,GAAG,iCAAiC,CAAC;AAC3D,MAAM,CAAC,MAAM,YAAY,GAAG,oCAAoC,CAAC;AACjE,MAAM,CAAC,MAAM,iBAAiB,GAAG,yCAAyC,CAAC;AAC3E,MAAM,CAAC,MAAM,mBAAmB,GAAG,2CAA2C,CAAC;AAC/E,MAAM,CAAC,MAAM,WAAW,GAAG,mCAAmC,CAAC;AAC/D,MAAM,CAAC,MAAM,aAAa,GAAG,qCAAqC,CAAC;AAEnE,sBAAsB;AACtB,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC;AACjC,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;AACvC,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AACxD,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC;AACjC,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC;AACrC,MAAM,CAAC,MAAM,wBAAwB,GAAG,wBAAwB,CAAC;AACjE,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC","sourcesContent":["export const appId = 'org.openedx.frontend.app.authn';\n\n// Route roles\nexport const loginRole = 'org.openedx.frontend.role.login';\nexport const registerRole = 'org.openedx.frontend.role.register';\nexport const resetPasswordRole = 'org.openedx.frontend.role.resetPassword';\nexport const confirmPasswordRole = 'org.openedx.frontend.role.confirmPassword';\nexport const welcomeRole = 'org.openedx.frontend.role.welcome';\nexport const dashboardRole = 'org.openedx.frontend.role.dashboard';\n\n// Route path segments\nexport const loginPath = 'login';\nexport const registerPath = 'register';\nexport const registerEmbeddedPath = 'register-embedded';\nexport const resetPath = 'reset';\nexport const welcomePath = 'welcome';\nexport const passwordResetConfirmPath = 'password_reset_confirm';\nexport const notFoundPath = 'notfound';\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const ENTERPRISE_LOGIN_URL: "/enterprise/login";
|
|
2
|
+
export const SUPPORTED_ICON_CLASSES: string[];
|
|
3
|
+
export const FORM_SUBMISSION_ERROR: "form-submission-error";
|
|
4
|
+
export const INTERNAL_SERVER_ERROR: "internal-server-error";
|
|
5
|
+
export const API_RATELIMIT_ERROR: "api-ratelimit-error";
|
|
6
|
+
export const DEFAULT_STATE: "default";
|
|
7
|
+
export const PENDING_STATE: "pending";
|
|
8
|
+
export const COMPLETE_STATE: "complete";
|
|
9
|
+
export const FAILURE_STATE: "failure";
|
|
10
|
+
export const FORBIDDEN_STATE: "forbidden";
|
|
11
|
+
export const EMBEDDED: "embedded";
|
|
12
|
+
export const LETTER_REGEX: RegExp;
|
|
13
|
+
export const NUMBER_REGEX: RegExp;
|
|
14
|
+
export const VALID_EMAIL_REGEX: string;
|
|
15
|
+
export const AUTH_PARAMS: string[];
|
|
16
|
+
export const REDIRECT: "redirect";
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
// URL Paths
|
|
2
|
-
export const LOGIN_PAGE = '/login';
|
|
3
|
-
export const REGISTER_PAGE = '/register';
|
|
4
|
-
export const REGISTER_EMBEDDED_PAGE = '/register-embedded';
|
|
5
|
-
export const RESET_PAGE = '/reset';
|
|
6
|
-
export const AUTHN_PROGRESSIVE_PROFILING = '/welcome';
|
|
7
|
-
export const DEFAULT_REDIRECT_URL = '/dashboard';
|
|
8
|
-
export const PASSWORD_RESET_CONFIRM = '/password_reset_confirm/:token/';
|
|
9
|
-
export const PAGE_NOT_FOUND = '/notfound';
|
|
10
1
|
export const ENTERPRISE_LOGIN_URL = '/enterprise/login';
|
|
11
|
-
|
|
12
2
|
// Constants
|
|
13
3
|
export const SUPPORTED_ICON_CLASSES = ['apple', 'facebook', 'google', 'microsoft'];
|
|
14
|
-
|
|
15
4
|
// Error Codes
|
|
16
5
|
export const FORM_SUBMISSION_ERROR = 'form-submission-error';
|
|
17
6
|
export const INTERNAL_SERVER_ERROR = 'internal-server-error';
|
|
18
7
|
export const API_RATELIMIT_ERROR = 'api-ratelimit-error';
|
|
19
|
-
|
|
20
8
|
// Common States
|
|
21
9
|
export const DEFAULT_STATE = 'default';
|
|
22
10
|
export const PENDING_STATE = 'pending';
|
|
@@ -24,15 +12,14 @@ export const COMPLETE_STATE = 'complete';
|
|
|
24
12
|
export const FAILURE_STATE = 'failure';
|
|
25
13
|
export const FORBIDDEN_STATE = 'forbidden';
|
|
26
14
|
export const EMBEDDED = 'embedded';
|
|
27
|
-
|
|
28
15
|
export const LETTER_REGEX = /[a-zA-Z]/;
|
|
29
16
|
export const NUMBER_REGEX = /\d/;
|
|
30
17
|
export const VALID_EMAIL_REGEX = '(^[-!#$%&\'*+/=?^_`{}|~0-9A-Z]+(\\.[-!#$%&\'*+/=?^_`{}|~0-9A-Z]+)*'
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
+ '|^"([\\001-\\010\\013\\014\\016-\\037!#-\\[\\]-\\177]|\\\\[\\001-\\011\\013\\014\\016-\\177])*"'
|
|
19
|
+
+ ')@((?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\.)+)(?:[A-Z0-9-]{2,63})'
|
|
20
|
+
+ '|\\[(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}\\]$';
|
|
35
21
|
// Query string parameters that can be passed to LMS to manage
|
|
36
22
|
// things like auto-enrollment upon login and registration.
|
|
37
23
|
export const AUTH_PARAMS = ['course_id', 'enrollment_action', 'course_mode', 'email_opt_in', 'purchase_workflow', 'next', 'register_for_free', 'track', 'is_account_recovery', 'variant', 'host', 'cta'];
|
|
38
24
|
export const REDIRECT = 'redirect';
|
|
25
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/data/constants.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAExD,YAAY;AACZ,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;AAEnF,cAAc;AACd,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,gBAAgB;AAChB,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AACvC,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AACvC,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;AACzC,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAC3C,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AAEnC,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;AACvC,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;AACjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,oEAAoE;MACjG,iGAAiG;MACjG,qEAAqE;MACrE,oFAAoF,CAAC;AAEzF,8DAA8D;AAC9D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,WAAW,EAAE,mBAAmB,EAAE,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACzM,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC","sourcesContent":["export const ENTERPRISE_LOGIN_URL = '/enterprise/login';\n\n// Constants\nexport const SUPPORTED_ICON_CLASSES = ['apple', 'facebook', 'google', 'microsoft'];\n\n// Error Codes\nexport const FORM_SUBMISSION_ERROR = 'form-submission-error';\nexport const INTERNAL_SERVER_ERROR = 'internal-server-error';\nexport const API_RATELIMIT_ERROR = 'api-ratelimit-error';\n\n// Common States\nexport const DEFAULT_STATE = 'default';\nexport const PENDING_STATE = 'pending';\nexport const COMPLETE_STATE = 'complete';\nexport const FAILURE_STATE = 'failure';\nexport const FORBIDDEN_STATE = 'forbidden';\nexport const EMBEDDED = 'embedded';\n\nexport const LETTER_REGEX = /[a-zA-Z]/;\nexport const NUMBER_REGEX = /\\d/;\nexport const VALID_EMAIL_REGEX = '(^[-!#$%&\\'*+/=?^_`{}|~0-9A-Z]+(\\\\.[-!#$%&\\'*+/=?^_`{}|~0-9A-Z]+)*'\n + '|^\"([\\\\001-\\\\010\\\\013\\\\014\\\\016-\\\\037!#-\\\\[\\\\]-\\\\177]|\\\\\\\\[\\\\001-\\\\011\\\\013\\\\014\\\\016-\\\\177])*\"'\n + ')@((?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\\\.)+)(?:[A-Z0-9-]{2,63})'\n + '|\\\\[(25[0-5]|2[0-4]\\\\d|[0-1]?\\\\d?\\\\d)(\\\\.(25[0-5]|2[0-4]\\\\d|[0-1]?\\\\d?\\\\d)){3}\\\\]$';\n\n// Query string parameters that can be passed to LMS to manage\n// things like auto-enrollment upon login and registration.\nexport const AUTH_PARAMS = ['course_id', 'enrollment_action', 'course_mode', 'email_opt_in', 'purchase_workflow', 'next', 'register_for_free', 'track', 'is_account_recovery', 'variant', 'host', 'cta'];\nexport const REDIRECT = 'redirect';\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import COUNTRIES from 'i18n-iso-countries';
|
|
2
|
+
/**
|
|
3
|
+
* Provides a lookup table of country IDs to country names for the current locale.
|
|
4
|
+
*
|
|
5
|
+
* @memberof module:I18n
|
|
6
|
+
*/
|
|
7
|
+
export declare function getCountryMessages(locale: any): COUNTRIES.LocalizedCountryNames<{
|
|
8
|
+
select: "official";
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* Provides a list of countries represented as objects of the following shape:
|
|
12
|
+
*
|
|
13
|
+
* {
|
|
14
|
+
* key, // The ID of the country
|
|
15
|
+
* name // The localized name of the country
|
|
16
|
+
* }
|
|
17
|
+
*
|
|
18
|
+
* TODO: ARCH-878: The list should be sorted alphabetically in the current locale.
|
|
19
|
+
* This is useful for populating dropdowns.
|
|
20
|
+
*
|
|
21
|
+
* @memberof module:I18n
|
|
22
|
+
*/
|
|
23
|
+
export declare function getCountryList(locale: any): {
|
|
24
|
+
code: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}[];
|
|
@@ -13,7 +13,6 @@ import ptLocale from 'i18n-iso-countries/langs/pt.json';
|
|
|
13
13
|
import ruLocale from 'i18n-iso-countries/langs/ru.json';
|
|
14
14
|
import ukLocale from 'i18n-iso-countries/langs/uk.json';
|
|
15
15
|
import zhLocale from 'i18n-iso-countries/langs/zh.json';
|
|
16
|
-
|
|
17
16
|
COUNTRIES.registerLocale(arLocale);
|
|
18
17
|
COUNTRIES.registerLocale(enLocale);
|
|
19
18
|
COUNTRIES.registerLocale(esLocale);
|
|
@@ -27,19 +26,16 @@ COUNTRIES.registerLocale(plLocale);
|
|
|
27
26
|
COUNTRIES.registerLocale(ptLocale);
|
|
28
27
|
COUNTRIES.registerLocale(ruLocale);
|
|
29
28
|
COUNTRIES.registerLocale(ukLocale);
|
|
30
|
-
|
|
31
29
|
/**
|
|
32
30
|
* Provides a lookup table of country IDs to country names for the current locale.
|
|
33
31
|
*
|
|
34
32
|
* @memberof module:I18n
|
|
35
33
|
*/
|
|
36
34
|
export function getCountryMessages(locale) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return COUNTRIES.getNames(languageCode);
|
|
35
|
+
const primaryLanguageSubtag = getPrimaryLanguageSubtag(locale);
|
|
36
|
+
const languageCode = countryLangs().includes(primaryLanguageSubtag) ? primaryLanguageSubtag : 'en';
|
|
37
|
+
return COUNTRIES.getNames(languageCode);
|
|
41
38
|
}
|
|
42
|
-
|
|
43
39
|
/**
|
|
44
40
|
* Provides a list of countries represented as objects of the following shape:
|
|
45
41
|
*
|
|
@@ -54,6 +50,7 @@ export function getCountryMessages(locale) {
|
|
|
54
50
|
* @memberof module:I18n
|
|
55
51
|
*/
|
|
56
52
|
export function getCountryList(locale) {
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
const countryMessages = getCountryMessages(locale);
|
|
54
|
+
return Object.entries(countryMessages).map(([code, name]) => ({ code, name }));
|
|
59
55
|
}
|
|
56
|
+
//# sourceMappingURL=countries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countries.js","sourceRoot":"","sources":["../../src/data/countries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,SAAS,EAAE,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AAExD,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACnC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEnC;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAM;IACvC,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC/D,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI,CAAC;IAEnG,OAAO,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;AAC1C,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,cAAc,CAAC,MAAM;IACnC,MAAM,eAAe,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACnD,OAAO,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACjF,CAAC","sourcesContent":["import { getPrimaryLanguageSubtag } from '@openedx/frontend-base';\nimport COUNTRIES, { langs as countryLangs } from 'i18n-iso-countries';\nimport arLocale from 'i18n-iso-countries/langs/ar.json';\nimport caLocale from 'i18n-iso-countries/langs/ca.json';\nimport enLocale from 'i18n-iso-countries/langs/en.json';\nimport esLocale from 'i18n-iso-countries/langs/es.json';\nimport frLocale from 'i18n-iso-countries/langs/fr.json';\nimport heLocale from 'i18n-iso-countries/langs/he.json';\nimport idLocale from 'i18n-iso-countries/langs/id.json';\nimport koLocale from 'i18n-iso-countries/langs/ko.json';\nimport plLocale from 'i18n-iso-countries/langs/pl.json';\nimport ptLocale from 'i18n-iso-countries/langs/pt.json';\nimport ruLocale from 'i18n-iso-countries/langs/ru.json';\nimport ukLocale from 'i18n-iso-countries/langs/uk.json';\nimport zhLocale from 'i18n-iso-countries/langs/zh.json';\n\nCOUNTRIES.registerLocale(arLocale);\nCOUNTRIES.registerLocale(enLocale);\nCOUNTRIES.registerLocale(esLocale);\nCOUNTRIES.registerLocale(frLocale);\nCOUNTRIES.registerLocale(zhLocale);\nCOUNTRIES.registerLocale(caLocale);\nCOUNTRIES.registerLocale(heLocale);\nCOUNTRIES.registerLocale(idLocale);\nCOUNTRIES.registerLocale(koLocale);\nCOUNTRIES.registerLocale(plLocale);\nCOUNTRIES.registerLocale(ptLocale);\nCOUNTRIES.registerLocale(ruLocale);\nCOUNTRIES.registerLocale(ukLocale);\n\n/**\n * Provides a lookup table of country IDs to country names for the current locale.\n *\n * @memberof module:I18n\n */\nexport function getCountryMessages(locale) {\n const primaryLanguageSubtag = getPrimaryLanguageSubtag(locale);\n const languageCode = countryLangs().includes(primaryLanguageSubtag) ? primaryLanguageSubtag : 'en';\n\n return COUNTRIES.getNames(languageCode);\n}\n\n/**\n * Provides a list of countries represented as objects of the following shape:\n *\n * {\n * key, // The ID of the country\n * name // The localized name of the country\n * }\n *\n * TODO: ARCH-878: The list should be sorted alphabetically in the current locale.\n * This is useful for populating dropdowns.\n *\n * @memberof module:I18n\n */\nexport function getCountryList(locale) {\n const countryMessages = getCountryMessages(locale);\n return Object.entries(countryMessages).map(([code, name]) => ({ code, name }));\n}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const isOneTrustFunctionalCookieEnabled = () => { var _a; return !!((_a = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) === null || _a === void 0 ? void 0 : _a.includes('C0003')); };
|
|
2
|
+
export default isOneTrustFunctionalCookieEnabled;
|
|
3
|
+
//# sourceMappingURL=oneTrust.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oneTrust.js","sourceRoot":"","sources":["../../src/data/oneTrust.js"],"names":[],"mappings":"AAAA,MAAM,iCAAiC,GAAG,GAAG,EAAE,WAAC,OAAA,CAAC,CAAC,CAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,oBAAoB,0CAAE,QAAQ,CAAC,OAAO,CAAC,CAAA,CAAA,EAAA,CAAC;AAElG,eAAe,iCAAiC,CAAC","sourcesContent":["const isOneTrustFunctionalCookieEnabled = () => !!window?.OnetrustActiveGroups?.includes('C0003');\n\nexport default isOneTrustFunctionalCookieEnabled;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function setCookie(cookieName: any, cookieValue: any, cookieDomain: any, cookieExpiry: any): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Cookies from 'universal-cookie';
|
|
2
|
+
export default function setCookie(cookieName, cookieValue, cookieDomain, cookieExpiry) {
|
|
3
|
+
if (cookieName) { // To avoid setting getting exception when setting cookie with undefined names.
|
|
4
|
+
const cookies = new Cookies();
|
|
5
|
+
const options = { domain: cookieDomain, path: '/' };
|
|
6
|
+
if (cookieExpiry) {
|
|
7
|
+
options.expires = cookieExpiry;
|
|
8
|
+
}
|
|
9
|
+
cookies.set(cookieName, cookieValue, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=cookies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookies.js","sourceRoot":"","sources":["../../../src/data/utils/cookies.js"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY;IACnF,IAAI,UAAU,EAAE,CAAC,CAAC,+EAA+E;QAC/F,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAC9B,MAAM,OAAO,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QACpD,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO,CAAC,OAAO,GAAG,YAAY,CAAC;QACjC,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;AACH,CAAC","sourcesContent":["import Cookies from 'universal-cookie';\n\nexport default function setCookie(cookieName, cookieValue, cookieDomain, cookieExpiry) {\n if (cookieName) { // To avoid setting getting exception when setting cookie with undefined names.\n const cookies = new Cookies();\n const options = { domain: cookieDomain, path: '/' };\n if (cookieExpiry) {\n options.expires = cookieExpiry;\n }\n cookies.set(cookieName, cookieValue, options);\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function getTpaProvider(tpaHintProvider: any, primaryProviders: any, secondaryProviders: any): {
|
|
2
|
+
provider: null;
|
|
3
|
+
skipHintedLogin: boolean;
|
|
4
|
+
};
|
|
5
|
+
export function getTpaHint(): any;
|
|
6
|
+
export function updatePathWithQueryParams(path: any): any;
|
|
7
|
+
export function getAllPossibleQueryParams(locationURl?: null): {};
|
|
8
|
+
export function getActivationStatus(): string | (string | null)[] | null;
|
|
9
|
+
export function isScrollBehaviorSupported(): boolean;
|
|
10
|
+
export function windowScrollTo(options: any): void;
|
|
11
|
+
export function normalizeRedirectUrl(backendUrl: any): any;
|
|
12
|
+
export function isHostAvailableInQueryParams(): boolean;
|