@openedx/frontend-app-authn 1.0.0-alpha.5 → 1.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/{src → dist}/app.scss +1 -1
- 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 +25 -0
- package/dist/i18n/index.js +26 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.js +4 -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/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/_registration.scss +8 -10
- 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 +26 -15
- package/src/Main.tsx +0 -23
- package/src/__mocks__/file.js +0 -1
- package/src/__mocks__/svg.js +0 -1
- 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 -27
- 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 -147
- 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/index.ts → dist/index.d.ts} +0 -0
- /package/{src → dist}/sass/_base_component.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/_progressive_profiling_page.scss +0 -0
- /package/{src → dist}/sass/_reset_password.scss +0 -0
- /package/{src → dist}/sass/_style.scss +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineMessages } from '@openedx/frontend-base';
|
|
2
|
+
const messages = defineMessages({
|
|
3
|
+
'sign.in': {
|
|
4
|
+
id: 'sign.in',
|
|
5
|
+
defaultMessage: 'Sign in',
|
|
6
|
+
description: 'Sign in toggle text',
|
|
7
|
+
},
|
|
8
|
+
'reset.password.page.title': {
|
|
9
|
+
id: 'reset.password.page.title',
|
|
10
|
+
defaultMessage: 'Reset Password | {siteName}',
|
|
11
|
+
description: 'page title',
|
|
12
|
+
},
|
|
13
|
+
'reset.password': {
|
|
14
|
+
id: 'reset.password',
|
|
15
|
+
defaultMessage: 'Reset password',
|
|
16
|
+
description: 'The page heading and button text for reset password page.',
|
|
17
|
+
},
|
|
18
|
+
'reset.password.page.instructions': {
|
|
19
|
+
id: 'reset.password.page.instructions',
|
|
20
|
+
defaultMessage: 'Enter and confirm your new password.',
|
|
21
|
+
description: 'Instructions message for reset password page.',
|
|
22
|
+
},
|
|
23
|
+
'new.password.label': {
|
|
24
|
+
id: 'new.password.label',
|
|
25
|
+
defaultMessage: 'New password',
|
|
26
|
+
description: 'New password field label for the reset password page.',
|
|
27
|
+
},
|
|
28
|
+
'confirm.password.label': {
|
|
29
|
+
id: 'confirm.password.label',
|
|
30
|
+
defaultMessage: 'Confirm password',
|
|
31
|
+
description: 'Confirm password field label for the reset password page.',
|
|
32
|
+
},
|
|
33
|
+
// validation errors
|
|
34
|
+
'password.validation.message': {
|
|
35
|
+
id: 'password.validation.message',
|
|
36
|
+
defaultMessage: 'Password criteria has not been met',
|
|
37
|
+
description: 'Error message for empty or invalid password',
|
|
38
|
+
},
|
|
39
|
+
'passwords.do.not.match': {
|
|
40
|
+
id: 'passwords.do.not.match',
|
|
41
|
+
defaultMessage: 'Passwords do not match',
|
|
42
|
+
description: 'Password format error.',
|
|
43
|
+
},
|
|
44
|
+
'confirm.your.password': {
|
|
45
|
+
id: 'confirm.your.password',
|
|
46
|
+
defaultMessage: 'Confirm your password',
|
|
47
|
+
description: 'Field validation message when confirm password is empty',
|
|
48
|
+
},
|
|
49
|
+
// alert banner strings
|
|
50
|
+
'reset.password.failure.heading': {
|
|
51
|
+
id: 'reset.password.failure.heading',
|
|
52
|
+
defaultMessage: 'We couldn\'t reset your password.',
|
|
53
|
+
description: 'Heading for reset password request failure',
|
|
54
|
+
},
|
|
55
|
+
'reset.password.form.submission.error': {
|
|
56
|
+
id: 'reset.password.form.submission.error',
|
|
57
|
+
defaultMessage: 'Please check your responses and try again.',
|
|
58
|
+
description: 'Error message for reset password page',
|
|
59
|
+
},
|
|
60
|
+
'reset.server.rate.limit.error': {
|
|
61
|
+
id: 'reset.server.rate.limit.error',
|
|
62
|
+
defaultMessage: 'Too many requests.',
|
|
63
|
+
description: 'Too many request at server end point',
|
|
64
|
+
},
|
|
65
|
+
'reset.password.success.heading': {
|
|
66
|
+
id: 'reset.password.success.heading',
|
|
67
|
+
defaultMessage: 'Password reset complete.',
|
|
68
|
+
description: 'Heading for alert box when reset password is successful',
|
|
69
|
+
},
|
|
70
|
+
'reset.password.success': {
|
|
71
|
+
id: 'reset.password.success',
|
|
72
|
+
defaultMessage: 'Your password has been reset. Sign in to your account.',
|
|
73
|
+
description: 'Reset password success message',
|
|
74
|
+
},
|
|
75
|
+
'internal.server.error': {
|
|
76
|
+
id: 'internal.server.error',
|
|
77
|
+
defaultMessage: 'An error has occurred. Try refreshing the page, or check your internet connection.',
|
|
78
|
+
description: 'Error message that appears when server responds with 500 error code',
|
|
79
|
+
},
|
|
80
|
+
'rate.limit.error': {
|
|
81
|
+
id: 'rate.limit.error',
|
|
82
|
+
defaultMessage: 'An error has occurred because of too many requests. Please try again after some time.',
|
|
83
|
+
description: 'Error message that appears when server responds with 429 error code',
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
export default messages;
|
|
87
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/reset-password/messages.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,SAAS,EAAE;QACT,EAAE,EAAE,SAAS;QACb,cAAc,EAAE,SAAS;QACzB,WAAW,EAAE,qBAAqB;KACnC;IACD,2BAA2B,EAAE;QAC3B,EAAE,EAAE,2BAA2B;QAC/B,cAAc,EAAE,6BAA6B;QAC7C,WAAW,EAAE,YAAY;KAC1B;IACD,gBAAgB,EAAE;QAChB,EAAE,EAAE,gBAAgB;QACpB,cAAc,EAAE,gBAAgB;QAChC,WAAW,EAAE,2DAA2D;KACzE;IACD,kCAAkC,EAAE;QAClC,EAAE,EAAE,kCAAkC;QACtC,cAAc,EAAE,sCAAsC;QACtD,WAAW,EAAE,+CAA+C;KAC7D;IACD,oBAAoB,EAAE;QACpB,EAAE,EAAE,oBAAoB;QACxB,cAAc,EAAE,cAAc;QAC9B,WAAW,EAAE,uDAAuD;KACrE;IACD,wBAAwB,EAAE;QACxB,EAAE,EAAE,wBAAwB;QAC5B,cAAc,EAAE,kBAAkB;QAClC,WAAW,EAAE,2DAA2D;KACzE;IACD,oBAAoB;IACpB,6BAA6B,EAAE;QAC7B,EAAE,EAAE,6BAA6B;QACjC,cAAc,EAAE,oCAAoC;QACpD,WAAW,EAAE,6CAA6C;KAC3D;IACD,wBAAwB,EAAE;QACxB,EAAE,EAAE,wBAAwB;QAC5B,cAAc,EAAE,wBAAwB;QACxC,WAAW,EAAE,wBAAwB;KACtC;IACD,uBAAuB,EAAE;QACvB,EAAE,EAAE,uBAAuB;QAC3B,cAAc,EAAE,uBAAuB;QACvC,WAAW,EAAE,yDAAyD;KACvE;IACD,uBAAuB;IACvB,gCAAgC,EAAE;QAChC,EAAE,EAAE,gCAAgC;QACpC,cAAc,EAAE,mCAAmC;QACnD,WAAW,EAAE,4CAA4C;KAC1D;IACD,sCAAsC,EAAE;QACtC,EAAE,EAAE,sCAAsC;QAC1C,cAAc,EAAE,4CAA4C;QAC5D,WAAW,EAAE,uCAAuC;KACrD;IACD,+BAA+B,EAAE;QAC/B,EAAE,EAAE,+BAA+B;QACnC,cAAc,EAAE,oBAAoB;QACpC,WAAW,EAAE,sCAAsC;KACpD;IACD,gCAAgC,EAAE;QAChC,EAAE,EAAE,gCAAgC;QACpC,cAAc,EAAE,0BAA0B;QAC1C,WAAW,EAAE,yDAAyD;KACvE;IACD,wBAAwB,EAAE;QACxB,EAAE,EAAE,wBAAwB;QAC5B,cAAc,EAAE,wDAAwD;QACxE,WAAW,EAAE,gCAAgC;KAC9C;IACD,uBAAuB,EAAE;QACvB,EAAE,EAAE,uBAAuB;QAC3B,cAAc,EAAE,oFAAoF;QACpG,WAAW,EAAE,qEAAqE;KACnF;IACD,kBAAkB,EAAE;QAClB,EAAE,EAAE,kBAAkB;QACtB,cAAc,EAAE,uFAAuF;QACvG,WAAW,EAAE,qEAAqE;KACnF;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { defineMessages } from '@openedx/frontend-base';\n\nconst messages = defineMessages({\n 'sign.in': {\n id: 'sign.in',\n defaultMessage: 'Sign in',\n description: 'Sign in toggle text',\n },\n 'reset.password.page.title': {\n id: 'reset.password.page.title',\n defaultMessage: 'Reset Password | {siteName}',\n description: 'page title',\n },\n 'reset.password': {\n id: 'reset.password',\n defaultMessage: 'Reset password',\n description: 'The page heading and button text for reset password page.',\n },\n 'reset.password.page.instructions': {\n id: 'reset.password.page.instructions',\n defaultMessage: 'Enter and confirm your new password.',\n description: 'Instructions message for reset password page.',\n },\n 'new.password.label': {\n id: 'new.password.label',\n defaultMessage: 'New password',\n description: 'New password field label for the reset password page.',\n },\n 'confirm.password.label': {\n id: 'confirm.password.label',\n defaultMessage: 'Confirm password',\n description: 'Confirm password field label for the reset password page.',\n },\n // validation errors\n 'password.validation.message': {\n id: 'password.validation.message',\n defaultMessage: 'Password criteria has not been met',\n description: 'Error message for empty or invalid password',\n },\n 'passwords.do.not.match': {\n id: 'passwords.do.not.match',\n defaultMessage: 'Passwords do not match',\n description: 'Password format error.',\n },\n 'confirm.your.password': {\n id: 'confirm.your.password',\n defaultMessage: 'Confirm your password',\n description: 'Field validation message when confirm password is empty',\n },\n // alert banner strings\n 'reset.password.failure.heading': {\n id: 'reset.password.failure.heading',\n defaultMessage: 'We couldn\\'t reset your password.',\n description: 'Heading for reset password request failure',\n },\n 'reset.password.form.submission.error': {\n id: 'reset.password.form.submission.error',\n defaultMessage: 'Please check your responses and try again.',\n description: 'Error message for reset password page',\n },\n 'reset.server.rate.limit.error': {\n id: 'reset.server.rate.limit.error',\n defaultMessage: 'Too many requests.',\n description: 'Too many request at server end point',\n },\n 'reset.password.success.heading': {\n id: 'reset.password.success.heading',\n defaultMessage: 'Password reset complete.',\n description: 'Heading for alert box when reset password is successful',\n },\n 'reset.password.success': {\n id: 'reset.password.success',\n defaultMessage: 'Your password has been reset. Sign in to your account.',\n description: 'Reset password success message',\n },\n 'internal.server.error': {\n id: 'internal.server.error',\n defaultMessage: 'An error has occurred. Try refreshing the page, or check your internet connection.',\n description: 'Error message that appears when server responds with 500 error code',\n },\n 'rate.limit.error': {\n id: 'rate.limit.error',\n defaultMessage: 'An error has occurred because of too many requests. Please try again after some time.',\n description: 'Error message that appears when server responds with 429 error code',\n },\n});\n\nexport default messages;\n"]}
|
package/dist/routes.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default routes;
|
|
2
|
+
declare const routes: {
|
|
3
|
+
id: string;
|
|
4
|
+
path: string;
|
|
5
|
+
lazy(): Promise<{
|
|
6
|
+
Component: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
}>;
|
|
8
|
+
children: ({
|
|
9
|
+
path: string;
|
|
10
|
+
element: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
handle?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
path: string;
|
|
14
|
+
handle: {
|
|
15
|
+
role: string;
|
|
16
|
+
};
|
|
17
|
+
element: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
})[];
|
|
19
|
+
}[];
|
package/dist/routes.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { EmbeddedRegistrationRoute, NotFoundPage, UnAuthOnlyRoute } from './common-components';
|
|
12
|
+
import { confirmPasswordRole, loginPath, loginRole, notFoundPath, passwordResetConfirmPath, registerEmbeddedPath, registerPath, registerRole, resetPath, resetPasswordRole, welcomePath, welcomeRole, } from './constants';
|
|
13
|
+
import { ForgotPasswordPage } from './forgot-password';
|
|
14
|
+
import Logistration from './logistration/Logistration';
|
|
15
|
+
import { ProgressiveProfiling } from './progressive-profiling';
|
|
16
|
+
import { RegistrationPage } from './register';
|
|
17
|
+
import { ResetPasswordPage } from './reset-password';
|
|
18
|
+
const routes = [
|
|
19
|
+
{
|
|
20
|
+
id: 'org.openedx.frontend.route.authn.main',
|
|
21
|
+
path: '/authn',
|
|
22
|
+
lazy() {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const module = yield import('./Main');
|
|
25
|
+
return { Component: module.default };
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
children: [
|
|
29
|
+
{
|
|
30
|
+
path: registerEmbeddedPath,
|
|
31
|
+
element: (_jsx(EmbeddedRegistrationRoute, { children: _jsx(RegistrationPage, {}) })),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
path: loginPath,
|
|
35
|
+
handle: {
|
|
36
|
+
role: loginRole,
|
|
37
|
+
},
|
|
38
|
+
element: (_jsx(UnAuthOnlyRoute, { children: _jsx(Logistration, { selectedPage: loginPath }) })),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: registerPath,
|
|
42
|
+
handle: {
|
|
43
|
+
role: registerRole,
|
|
44
|
+
},
|
|
45
|
+
element: (_jsx(UnAuthOnlyRoute, { children: _jsx(Logistration, {}) })),
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
path: resetPath,
|
|
49
|
+
handle: {
|
|
50
|
+
role: resetPasswordRole,
|
|
51
|
+
},
|
|
52
|
+
element: (_jsx(UnAuthOnlyRoute, { children: _jsx(ForgotPasswordPage, {}) })),
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
path: `${passwordResetConfirmPath}/:token`,
|
|
56
|
+
handle: {
|
|
57
|
+
role: confirmPasswordRole,
|
|
58
|
+
},
|
|
59
|
+
element: (_jsx(ResetPasswordPage, {})),
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
path: welcomePath,
|
|
63
|
+
handle: {
|
|
64
|
+
role: welcomeRole,
|
|
65
|
+
},
|
|
66
|
+
element: (_jsx(ProgressiveProfiling, {})),
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
path: notFoundPath,
|
|
70
|
+
element: (_jsx(NotFoundPage, {})),
|
|
71
|
+
},
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
export default routes;
|
|
76
|
+
//# sourceMappingURL=routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.jsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EACL,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EACvD,wBAAwB,EAAE,oBAAoB,EAAE,YAAY,EAAE,YAAY,EAC1E,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,GACvD,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,MAAM,GAAG;IACb;QACE,EAAE,EAAE,uCAAuC;QAC3C,IAAI,EAAE,QAAQ;QACR,IAAI;;gBACR,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;YACvC,CAAC;SAAA;QACD,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,oBAAoB;gBAC1B,OAAO,EAAE,CACP,KAAC,yBAAyB,cAAC,KAAC,gBAAgB,KAAG,GAA4B,CAC5E;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE;oBACN,IAAI,EAAE,SAAS;iBAChB;gBACD,OAAO,EAAE,CACP,KAAC,eAAe,cAAC,KAAC,YAAY,IAAC,YAAY,EAAE,SAAS,GAAI,GAAkB,CAC7E;aACF;YACD;gBACE,IAAI,EAAE,YAAY;gBAClB,MAAM,EAAE;oBACN,IAAI,EAAE,YAAY;iBACnB;gBACD,OAAO,EAAE,CACP,KAAC,eAAe,cAAC,KAAC,YAAY,KAAG,GAAkB,CACpD;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE;oBACN,IAAI,EAAE,iBAAiB;iBACxB;gBACD,OAAO,EAAE,CACP,KAAC,eAAe,cAAC,KAAC,kBAAkB,KAAG,GAAkB,CAC1D;aACF;YACD;gBACE,IAAI,EAAE,GAAG,wBAAwB,SAAS;gBAC1C,MAAM,EAAE;oBACN,IAAI,EAAE,mBAAmB;iBAC1B;gBACD,OAAO,EAAE,CACP,KAAC,iBAAiB,KAAG,CACtB;aACF;YACD;gBACE,IAAI,EAAE,WAAW;gBACjB,MAAM,EAAE;oBACN,IAAI,EAAE,WAAW;iBAClB;gBACD,OAAO,EAAE,CACP,KAAC,oBAAoB,KAAG,CACzB;aACF;YACD;gBACE,IAAI,EAAE,YAAY;gBAClB,OAAO,EAAE,CACP,KAAC,YAAY,KAAG,CACjB;aACF;SACF;KACF;CACF,CAAC;AAEF,eAAe,MAAM,CAAC","sourcesContent":["import { EmbeddedRegistrationRoute, NotFoundPage, UnAuthOnlyRoute } from './common-components';\nimport {\n confirmPasswordRole, loginPath, loginRole, notFoundPath,\n passwordResetConfirmPath, registerEmbeddedPath, registerPath, registerRole,\n resetPath, resetPasswordRole, welcomePath, welcomeRole,\n} from './constants';\nimport { ForgotPasswordPage } from './forgot-password';\nimport Logistration from './logistration/Logistration';\nimport { ProgressiveProfiling } from './progressive-profiling';\nimport { RegistrationPage } from './register';\nimport { ResetPasswordPage } from './reset-password';\n\nconst routes = [\n {\n id: 'org.openedx.frontend.route.authn.main',\n path: '/authn',\n async lazy() {\n const module = await import('./Main');\n return { Component: module.default };\n },\n children: [\n {\n path: registerEmbeddedPath,\n element: (\n <EmbeddedRegistrationRoute><RegistrationPage /></EmbeddedRegistrationRoute>\n ),\n },\n {\n path: loginPath,\n handle: {\n role: loginRole,\n },\n element: (\n <UnAuthOnlyRoute><Logistration selectedPage={loginPath} /></UnAuthOnlyRoute>\n ),\n },\n {\n path: registerPath,\n handle: {\n role: registerRole,\n },\n element: (\n <UnAuthOnlyRoute><Logistration /></UnAuthOnlyRoute>\n ),\n },\n {\n path: resetPath,\n handle: {\n role: resetPasswordRole,\n },\n element: (\n <UnAuthOnlyRoute><ForgotPasswordPage /></UnAuthOnlyRoute>\n ),\n },\n {\n path: `${passwordResetConfirmPath}/:token`,\n handle: {\n role: confirmPasswordRole,\n },\n element: (\n <ResetPasswordPage />\n ),\n },\n {\n path: welcomePath,\n handle: {\n role: welcomeRole,\n },\n element: (\n <ProgressiveProfiling />\n ),\n },\n {\n path: notFoundPath,\n element: (\n <NotFoundPage />\n ),\n },\n ]\n }\n];\n\nexport default routes;\n"]}
|
|
@@ -68,22 +68,20 @@
|
|
|
68
68
|
margin-right: 0.25rem;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.
|
|
71
|
+
.username__form-group-wrapper {
|
|
72
72
|
position: relative;
|
|
73
|
-
margin-top: -2.5rem;
|
|
74
|
-
margin-left: 15px;
|
|
75
73
|
}
|
|
76
74
|
|
|
77
|
-
.username-
|
|
78
|
-
right: 1rem;
|
|
75
|
+
.username-suggestions {
|
|
79
76
|
position: absolute;
|
|
77
|
+
inset: 0;
|
|
78
|
+
padding-left: 15px;
|
|
79
|
+
z-index: 100;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.username-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
margin-bottom: 11%;
|
|
86
|
-
margin-left: 15px;
|
|
82
|
+
.username-suggestions__close__button {
|
|
83
|
+
right: 1rem;
|
|
84
|
+
position: absolute;
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
.username-scroll-suggested--form-field {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default LoginComponentSlot;
|
|
2
|
+
declare function LoginComponentSlot({ institutionLogin, handleInstitutionLogin, }: {
|
|
3
|
+
institutionLogin: any;
|
|
4
|
+
handleInstitutionLogin: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace LoginComponentSlot {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let institutionLogin: PropTypes.Requireable<boolean>;
|
|
9
|
+
let handleInstitutionLogin: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from '@openedx/frontend-base';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import LoginPage from '../../login/LoginPage';
|
|
5
|
+
const LoginComponentSlot = ({ institutionLogin, handleInstitutionLogin, }) => (_jsx(Slot, { id: "org.openedx.frontend.slot.authn.loginComponent.v1", institutionLogin: institutionLogin, handleInstitutionLogin: handleInstitutionLogin, children: _jsx(LoginPage, { institutionLogin: institutionLogin, handleInstitutionLogin: handleInstitutionLogin }) }));
|
|
6
|
+
LoginComponentSlot.propTypes = {
|
|
7
|
+
institutionLogin: PropTypes.bool,
|
|
8
|
+
handleInstitutionLogin: PropTypes.func,
|
|
9
|
+
};
|
|
10
|
+
export default LoginComponentSlot;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/LoginComponentSlot/index.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,MAAM,kBAAkB,GAAG,CAAC,EAC1B,gBAAgB,EAChB,sBAAsB,GACvB,EAAE,EAAE,CAAC,CACJ,KAAC,IAAI,IACH,EAAE,EAAC,mDAAmD,EACtD,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,sBAAsB,YAE9C,KAAC,SAAS,IACR,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,sBAAsB,GAC9C,GACG,CACR,CAAC;AAEF,kBAAkB,CAAC,SAAS,GAAG;IAC7B,gBAAgB,EAAE,SAAS,CAAC,IAAI;IAChC,sBAAsB,EAAE,SAAS,CAAC,IAAI;CACvC,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import { Slot } from '@openedx/frontend-base';\nimport PropTypes from 'prop-types';\n\nimport LoginPage from '../../login/LoginPage';\n\nconst LoginComponentSlot = ({\n institutionLogin,\n handleInstitutionLogin,\n}) => (\n <Slot\n id=\"org.openedx.frontend.slot.authn.loginComponent.v1\"\n institutionLogin={institutionLogin}\n handleInstitutionLogin={handleInstitutionLogin}\n >\n <LoginPage\n institutionLogin={institutionLogin}\n handleInstitutionLogin={handleInstitutionLogin}\n />\n </Slot>\n);\n\nLoginComponentSlot.propTypes = {\n institutionLogin: PropTypes.bool,\n handleInstitutionLogin: PropTypes.func,\n};\n\nexport default LoginComponentSlot;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openedx/frontend-app-authn",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.7",
|
|
4
4
|
"description": "Frontend authentication",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^24.12"
|
|
@@ -9,9 +9,15 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/openedx/frontend-app-authn.git"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/index.js",
|
|
14
|
+
"./app.scss": "./dist/app.scss"
|
|
15
|
+
},
|
|
13
16
|
"files": [
|
|
14
|
-
"/
|
|
17
|
+
"/dist"
|
|
18
|
+
],
|
|
19
|
+
"workspaces": [
|
|
20
|
+
"packages/*"
|
|
15
21
|
],
|
|
16
22
|
"browserslist": [
|
|
17
23
|
"extends @edx/browserslist-config"
|
|
@@ -21,12 +27,20 @@
|
|
|
21
27
|
"*.scss"
|
|
22
28
|
],
|
|
23
29
|
"scripts": {
|
|
30
|
+
"build": "make build",
|
|
31
|
+
"build:packages": "make build-packages",
|
|
32
|
+
"clean": "make clean",
|
|
33
|
+
"clean:packages": "make clean-packages",
|
|
24
34
|
"dev": "PORT=1999 PUBLIC_PATH=/authn openedx dev",
|
|
35
|
+
"dev:site": "make dev-site",
|
|
36
|
+
"dev:packages": "make dev-packages",
|
|
25
37
|
"i18n_extract": "openedx formatjs extract",
|
|
26
38
|
"lint": "openedx lint .",
|
|
27
39
|
"lint:fix": "openedx lint --fix .",
|
|
40
|
+
"prepack": "npm run clean && npm run build",
|
|
28
41
|
"snapshot": "openedx test --updateSnapshot",
|
|
29
|
-
"test": "openedx test --coverage --passWithNoTests"
|
|
42
|
+
"test": "openedx test --coverage --passWithNoTests",
|
|
43
|
+
"watch:build": "nodemon --exec 'npm run build'"
|
|
30
44
|
},
|
|
31
45
|
"author": "Open edX",
|
|
32
46
|
"license": "AGPL-3.0",
|
|
@@ -44,7 +58,6 @@
|
|
|
44
58
|
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
45
59
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
46
60
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
47
|
-
"@redux-devtools/extension": "^3.3.0",
|
|
48
61
|
"classnames": "^2.5.1",
|
|
49
62
|
"fastest-levenshtein": "^1.0.16",
|
|
50
63
|
"form-urlencoded": "^6.1.5",
|
|
@@ -54,30 +67,28 @@
|
|
|
54
67
|
"react-helmet": "^6.1.0",
|
|
55
68
|
"react-loading-skeleton": "^3.5.0",
|
|
56
69
|
"react-responsive": "^8.2.0",
|
|
57
|
-
"redux-logger": "^3.0.6",
|
|
58
|
-
"redux-mock-store": "^1.5.5",
|
|
59
|
-
"redux-saga": "^1.3.0",
|
|
60
|
-
"redux-thunk": "^2.4.2",
|
|
61
|
-
"reselect": "^5.1.1",
|
|
62
70
|
"universal-cookie": "^8.0.1"
|
|
63
71
|
},
|
|
64
72
|
"devDependencies": {
|
|
65
73
|
"@edx/browserslist-config": "^1.5.0",
|
|
66
74
|
"@testing-library/react": "^16.3.0",
|
|
75
|
+
"@types/jest": "^29.5.14",
|
|
67
76
|
"babel-plugin-formatjs": "10.5.38",
|
|
68
77
|
"eslint-plugin-import": "2.31.0",
|
|
69
78
|
"jest": "^29.7.0",
|
|
79
|
+
"nodemon": "^3.1.14",
|
|
70
80
|
"react-test-renderer": "^18.3.1",
|
|
71
|
-
"ts-jest": "^29.4.0"
|
|
81
|
+
"ts-jest": "^29.4.0",
|
|
82
|
+
"tsc-alias": "^1.8.16",
|
|
83
|
+
"turbo": "^2.8.16"
|
|
72
84
|
},
|
|
73
85
|
"peerDependencies": {
|
|
74
|
-
"@openedx/frontend-base": "^1.0.0-alpha.
|
|
86
|
+
"@openedx/frontend-base": "^1.0.0-alpha || 0.0.0-dev",
|
|
75
87
|
"@openedx/paragon": "^23",
|
|
88
|
+
"@tanstack/react-query": "^5",
|
|
76
89
|
"react": "^18",
|
|
77
90
|
"react-dom": "^18",
|
|
78
|
-
"react-redux": "^8",
|
|
79
91
|
"react-router": "^6",
|
|
80
|
-
"react-router-dom": "^6"
|
|
81
|
-
"redux": "^4"
|
|
92
|
+
"react-router-dom": "^6"
|
|
82
93
|
}
|
|
83
94
|
}
|
package/src/Main.tsx
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Provider as ReduxProvider } from 'react-redux';
|
|
2
|
-
import { Outlet } from 'react-router-dom';
|
|
3
|
-
import { CurrentAppProvider } from '@openedx/frontend-base';
|
|
4
|
-
|
|
5
|
-
import { appId } from './constants';
|
|
6
|
-
import {
|
|
7
|
-
registerIcons,
|
|
8
|
-
} from './common-components';
|
|
9
|
-
import configureStore from './data/configureStore';
|
|
10
|
-
|
|
11
|
-
import './sass/_style.scss';
|
|
12
|
-
|
|
13
|
-
registerIcons();
|
|
14
|
-
|
|
15
|
-
const Main = () => (
|
|
16
|
-
<CurrentAppProvider appId={appId}>
|
|
17
|
-
<ReduxProvider store={configureStore()}>
|
|
18
|
-
<Outlet />
|
|
19
|
-
</ReduxProvider>
|
|
20
|
-
</CurrentAppProvider>
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
export default Main;
|
package/src/__mocks__/file.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = 'FileMock';
|
package/src/__mocks__/svg.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = 'SvgURL';
|
package/src/app.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { App } from '@openedx/frontend-base';
|
|
2
|
-
import { appId } from './constants';
|
|
3
|
-
import routes from './routes';
|
|
4
|
-
import messages from './i18n';
|
|
5
|
-
|
|
6
|
-
const app: App = {
|
|
7
|
-
appId,
|
|
8
|
-
routes,
|
|
9
|
-
messages,
|
|
10
|
-
config: {
|
|
11
|
-
ACTIVATION_EMAIL_SUPPORT_LINK: null,
|
|
12
|
-
ALLOW_PUBLIC_ACCOUNT_CREATION: true,
|
|
13
|
-
AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK: null,
|
|
14
|
-
BANNER_IMAGE_EXTRA_SMALL: '',
|
|
15
|
-
BANNER_IMAGE_LARGE: '',
|
|
16
|
-
BANNER_IMAGE_MEDIUM: '',
|
|
17
|
-
BANNER_IMAGE_SMALL: '',
|
|
18
|
-
DISABLE_ENTERPRISE_LOGIN: true,
|
|
19
|
-
ENABLE_AUTO_GENERATED_USERNAME: false,
|
|
20
|
-
ENABLE_DYNAMIC_REGISTRATION_FIELDS: false,
|
|
21
|
-
ENABLE_IMAGE_LAYOUT: false,
|
|
22
|
-
ENABLE_PROGRESSIVE_PROFILING_ON_AUTHN: false,
|
|
23
|
-
FAVICON_URL: 'https://edx-cdn.org/v3/default/favicon.ico',
|
|
24
|
-
INFO_EMAIL: '',
|
|
25
|
-
LOGIN_ISSUE_SUPPORT_LINK: null,
|
|
26
|
-
LOGO_TRADEMARK_URL: 'https://edx-cdn.org/v3/default/logo-trademark.svg',
|
|
27
|
-
LOGO_URL: 'https://edx-cdn.org/v3/default/logo.svg',
|
|
28
|
-
LOGO_WHITE_URL: 'https://edx-cdn.org/v3/default/logo-white.svg',
|
|
29
|
-
MARKETING_EMAILS_OPT_IN: '',
|
|
30
|
-
MARKETING_SITE_BASE_URL: 'http://local.openedx.io',
|
|
31
|
-
PASSWORD_RESET_SUPPORT_LINK: null,
|
|
32
|
-
POST_REGISTRATION_REDIRECT_URL: '',
|
|
33
|
-
PRIVACY_POLICY: null,
|
|
34
|
-
SEARCH_CATALOG_URL: null,
|
|
35
|
-
SESSION_COOKIE_DOMAIN: 'local.openedx.io',
|
|
36
|
-
SHOW_REGISTRATION_LINKS: true,
|
|
37
|
-
TOS_AND_HONOR_CODE: null,
|
|
38
|
-
TOS_LINK: null,
|
|
39
|
-
USER_RETENTION_COOKIE_NAME: '',
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default app;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { IntlProvider } from '@openedx/frontend-base';
|
|
2
|
-
import { render, screen } from '@testing-library/react';
|
|
3
|
-
|
|
4
|
-
import { DefaultLargeLayout, DefaultMediumLayout, DefaultSmallLayout } from './index';
|
|
5
|
-
|
|
6
|
-
describe('Default Layout tests', () => {
|
|
7
|
-
it('should display the form passed as a child in SmallScreenLayout', () => {
|
|
8
|
-
render(
|
|
9
|
-
<IntlProvider locale="en">
|
|
10
|
-
<div>
|
|
11
|
-
<DefaultSmallLayout />
|
|
12
|
-
<form aria-label="form">
|
|
13
|
-
<input type="text" />
|
|
14
|
-
</form>
|
|
15
|
-
</div>
|
|
16
|
-
</IntlProvider>,
|
|
17
|
-
);
|
|
18
|
-
expect(screen.getByRole('form')).toBeDefined();
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('should display the form passed as a child in MediumScreenLayout', () => {
|
|
22
|
-
render(
|
|
23
|
-
<IntlProvider locale="en">
|
|
24
|
-
<div>
|
|
25
|
-
<DefaultMediumLayout />
|
|
26
|
-
<form aria-label="form">
|
|
27
|
-
<input type="text" />
|
|
28
|
-
</form>
|
|
29
|
-
</div>
|
|
30
|
-
</IntlProvider>,
|
|
31
|
-
);
|
|
32
|
-
expect(screen.getByRole('form')).toBeDefined();
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it('should display the form passed as a child in LargeScreenLayout', () => {
|
|
36
|
-
render(
|
|
37
|
-
<IntlProvider locale="en">
|
|
38
|
-
<div>
|
|
39
|
-
<DefaultLargeLayout />
|
|
40
|
-
<form aria-label="form">
|
|
41
|
-
<input type="text" />
|
|
42
|
-
</form>
|
|
43
|
-
</div>
|
|
44
|
-
</IntlProvider>,
|
|
45
|
-
);
|
|
46
|
-
expect(screen.getByRole('form')).toBeDefined();
|
|
47
|
-
});
|
|
48
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { useAppConfig, getSiteConfig, useIntl } from '@openedx/frontend-base';
|
|
2
|
-
import { Hyperlink, Image } from '@openedx/paragon';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
|
|
5
|
-
import messages from './messages';
|
|
6
|
-
|
|
7
|
-
const LargeLayout = () => {
|
|
8
|
-
const { formatMessage } = useIntl();
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<div className="w-50 d-flex">
|
|
12
|
-
<div className="col-md-9 bg-primary-400">
|
|
13
|
-
<Hyperlink destination={useAppConfig().MARKETING_SITE_BASE_URL}>
|
|
14
|
-
<Image className="logo position-absolute" alt={getSiteConfig().siteName} src={useAppConfig().LOGO_WHITE_URL} />
|
|
15
|
-
</Hyperlink>
|
|
16
|
-
<div className="min-vh-100 d-flex align-items-center">
|
|
17
|
-
<div className={classNames({ 'large-yellow-line mr-n4.5': getSiteConfig().siteName === 'edX' })} />
|
|
18
|
-
<h1
|
|
19
|
-
className={classNames(
|
|
20
|
-
'display-2 text-white mw-xs',
|
|
21
|
-
{ 'ml-6': getSiteConfig().siteName !== 'edX' },
|
|
22
|
-
)}
|
|
23
|
-
>
|
|
24
|
-
{formatMessage(messages['start.learning'])}
|
|
25
|
-
<div className="text-accent-a">
|
|
26
|
-
{formatMessage(messages['with.site.name'], { siteName: getSiteConfig().siteName })}
|
|
27
|
-
</div>
|
|
28
|
-
</h1>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
<div className="col-md-3 bg-white p-0">
|
|
32
|
-
<svg className="ml-n1 w-100 h-100 large-screen-svg-primary" preserveAspectRatio="xMaxYMin meet">
|
|
33
|
-
<g transform="skewX(171.6)">
|
|
34
|
-
<rect x="0" y="0" height="100%" width="100%" />
|
|
35
|
-
</g>
|
|
36
|
-
</svg>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export default LargeLayout;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { useAppConfig, getSiteConfig, useIntl } from '@openedx/frontend-base';
|
|
2
|
-
import { Hyperlink, Image } from '@openedx/paragon';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
|
|
5
|
-
import messages from './messages';
|
|
6
|
-
|
|
7
|
-
const MediumLayout = () => {
|
|
8
|
-
const { formatMessage } = useIntl();
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<>
|
|
12
|
-
<div className="w-100 medium-screen-top-stripe" />
|
|
13
|
-
<div className="w-100 p-0 mb-3 d-flex">
|
|
14
|
-
<div className="col-md-10 bg-primary-400">
|
|
15
|
-
<Hyperlink destination={useAppConfig().MARKETING_SITE_BASE_URL}>
|
|
16
|
-
<Image alt={getSiteConfig().siteName} className="logo" src={useAppConfig().LOGO_WHITE_URL} />
|
|
17
|
-
</Hyperlink>
|
|
18
|
-
<div className="d-flex align-items-center justify-content-center mb-4 ">
|
|
19
|
-
<div className={classNames({ 'mt-1 medium-yellow-line': getSiteConfig().siteName === 'edX' })} />
|
|
20
|
-
<div>
|
|
21
|
-
<h1
|
|
22
|
-
className={classNames(
|
|
23
|
-
'display-1 text-white mt-5 mb-5 mr-2 main-heading',
|
|
24
|
-
{ 'ml-4.5': getSiteConfig().siteName !== 'edX' },
|
|
25
|
-
)}
|
|
26
|
-
>
|
|
27
|
-
<span>
|
|
28
|
-
{formatMessage(messages['start.learning'])}{' '}
|
|
29
|
-
<span className="text-accent-a d-inline-block">
|
|
30
|
-
{formatMessage(messages['with.site.name'], { siteName: getSiteConfig().siteName })}
|
|
31
|
-
</span>
|
|
32
|
-
</span>
|
|
33
|
-
</h1>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div className="col-md-2 bg-white p-0">
|
|
38
|
-
<svg className="w-100 h-100 medium-screen-svg-primary" preserveAspectRatio="xMaxYMin meet">
|
|
39
|
-
<g transform="skewX(168)">
|
|
40
|
-
<rect x="0" y="0" height="100%" width="100%" />
|
|
41
|
-
</g>
|
|
42
|
-
</svg>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</>
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export default MediumLayout;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { useAppConfig, getSiteConfig, useIntl } from '@openedx/frontend-base';
|
|
2
|
-
import { Hyperlink, Image } from '@openedx/paragon';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
|
|
5
|
-
import messages from './messages';
|
|
6
|
-
|
|
7
|
-
const SmallLayout = () => {
|
|
8
|
-
const { formatMessage } = useIntl();
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<span className="bg-primary-400 w-100">
|
|
12
|
-
<div className="col-md-12 small-screen-top-stripe" />
|
|
13
|
-
<div>
|
|
14
|
-
<Hyperlink destination={useAppConfig().MARKETING_SITE_BASE_URL}>
|
|
15
|
-
<Image className="logo-small" alt={getSiteConfig().siteName} src={useAppConfig().LOGO_WHITE_URL} />
|
|
16
|
-
</Hyperlink>
|
|
17
|
-
<div className="d-flex align-items-center m-3.5">
|
|
18
|
-
<div className={classNames({ 'small-yellow-line mr-n2.5': getSiteConfig().siteName === 'edX' })} />
|
|
19
|
-
<h1
|
|
20
|
-
className={classNames(
|
|
21
|
-
'text-white mt-3.5 mb-3.5',
|
|
22
|
-
)}
|
|
23
|
-
>
|
|
24
|
-
<span>
|
|
25
|
-
{formatMessage(messages['start.learning'])}{' '}
|
|
26
|
-
<span className="text-accent-a d-inline-block">
|
|
27
|
-
{formatMessage(messages['with.site.name'], { siteName: getSiteConfig().siteName })}
|
|
28
|
-
</span>
|
|
29
|
-
</span>
|
|
30
|
-
</h1>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</span>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default SmallLayout;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from '@openedx/frontend-base';
|
|
2
|
-
|
|
3
|
-
const messages = defineMessages({
|
|
4
|
-
'start.learning': {
|
|
5
|
-
id: 'start.learning',
|
|
6
|
-
defaultMessage: 'Start learning',
|
|
7
|
-
description: 'Header text for logistration MFE pages',
|
|
8
|
-
},
|
|
9
|
-
'with.site.name': {
|
|
10
|
-
id: 'with.site.name',
|
|
11
|
-
defaultMessage: 'with {siteName}',
|
|
12
|
-
description: 'Header text with site name for logistration MFE pages',
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export default messages;
|