@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
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use "@openedx/paragon/scss/core/core" as paragon;
|
|
2
|
-
|
|
3
1
|
// Load component based styles
|
|
4
2
|
@use "_base_component.scss";
|
|
5
3
|
@use "_registration.scss";
|
|
@@ -42,7 +40,7 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
.main-content {
|
|
45
|
-
|
|
43
|
+
padding-top: var(--pgn-spacing-spacer-4) !important;
|
|
46
44
|
min-width: 464px !important;
|
|
47
45
|
}
|
|
48
46
|
|
|
@@ -82,15 +80,15 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
82
80
|
.alert-link {
|
|
83
81
|
font-weight: normal;
|
|
84
82
|
text-decoration: underline;
|
|
85
|
-
color:
|
|
83
|
+
color: var(--pgn-color-info-300) !important;
|
|
86
84
|
|
|
87
85
|
&:hover {
|
|
88
|
-
color:
|
|
86
|
+
color: var(--pgn-color-info-500) !important;
|
|
89
87
|
}
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
.form-control {
|
|
93
|
-
background-color:
|
|
91
|
+
background-color: var(--pgn-color-white) !important;
|
|
94
92
|
font-size: 0.875rem;
|
|
95
93
|
line-height: 1.5;
|
|
96
94
|
height: 2.75rem;
|
|
@@ -105,11 +103,11 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
105
103
|
margin-bottom: 1rem;
|
|
106
104
|
font-size: 14px;
|
|
107
105
|
|
|
108
|
-
background-color:
|
|
109
|
-
border: 1px solid
|
|
106
|
+
background-color: var(--pgn-color-white);
|
|
107
|
+
border: 1px solid var(--pgn-color-primary-base);
|
|
110
108
|
width: 224px;
|
|
111
109
|
height: 36px;
|
|
112
|
-
color:
|
|
110
|
+
color: var(--pgn-color-primary-base);
|
|
113
111
|
|
|
114
112
|
.btn-tpa__image-icon {
|
|
115
113
|
background-color: transparent;
|
|
@@ -134,8 +132,8 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
134
132
|
}
|
|
135
133
|
|
|
136
134
|
.btn-tpa__font-container {
|
|
137
|
-
background-color:
|
|
138
|
-
color:
|
|
135
|
+
background-color: var(--pgn-color-primary-base);
|
|
136
|
+
color: var(--pgn-color-white);
|
|
139
137
|
font-size: 11px;
|
|
140
138
|
|
|
141
139
|
margin-left: -6px;
|
|
@@ -145,7 +143,7 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
145
143
|
}
|
|
146
144
|
|
|
147
145
|
.btn-oa2-facebook {
|
|
148
|
-
color:
|
|
146
|
+
color: var(--pgn-color-white);
|
|
149
147
|
border-color: $facebook-blue;
|
|
150
148
|
background-color: $facebook-blue;
|
|
151
149
|
|
|
@@ -153,12 +151,12 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
153
151
|
&:focus {
|
|
154
152
|
background-color: $facebook-focus-blue;
|
|
155
153
|
border: 1px solid $facebook-focus-blue;
|
|
156
|
-
color:
|
|
154
|
+
color: var(--pgn-color-white);
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
157
|
|
|
160
158
|
.btn-oa2-google-oauth2 {
|
|
161
|
-
color:
|
|
159
|
+
color: var(--pgn-color-white);
|
|
162
160
|
border-color: $google-blue;
|
|
163
161
|
background-color: $google-blue;
|
|
164
162
|
|
|
@@ -173,12 +171,12 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
173
171
|
&:focus {
|
|
174
172
|
background-color: $google-focus-blue;
|
|
175
173
|
border: 1px solid $google-focus-blue;
|
|
176
|
-
color:
|
|
174
|
+
color: var(--pgn-color-white);
|
|
177
175
|
}
|
|
178
176
|
}
|
|
179
177
|
|
|
180
178
|
.btn-oa2-apple-id {
|
|
181
|
-
color:
|
|
179
|
+
color: var(--pgn-color-white);
|
|
182
180
|
border-color: $apple-black;
|
|
183
181
|
background-color: $apple-black;
|
|
184
182
|
font-size: 16px;
|
|
@@ -192,12 +190,12 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
192
190
|
&:focus {
|
|
193
191
|
background-color: $apple-focus-black;
|
|
194
192
|
border: 1px solid $apple-focus-black;
|
|
195
|
-
color:
|
|
193
|
+
color: var(--pgn-color-white);
|
|
196
194
|
}
|
|
197
195
|
}
|
|
198
196
|
|
|
199
197
|
.btn-oa2-azuread-oauth2 {
|
|
200
|
-
color:
|
|
198
|
+
color: var(--pgn-color-white);
|
|
201
199
|
border-color: $microsoft-black;
|
|
202
200
|
background-color: $microsoft-black;
|
|
203
201
|
|
|
@@ -205,7 +203,7 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
205
203
|
&:focus {
|
|
206
204
|
background-color: $microsoft-focus-black;
|
|
207
205
|
border: 1px solid $microsoft-focus-black;
|
|
208
|
-
color:
|
|
206
|
+
color: var(--pgn-color-white);
|
|
209
207
|
}
|
|
210
208
|
}
|
|
211
209
|
|
|
@@ -216,9 +214,8 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
216
214
|
}
|
|
217
215
|
|
|
218
216
|
.institute-icon {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
217
|
+
margin: var(--pgn-spacing-spacer-1) !important;
|
|
218
|
+
color: var(--pgn-color-gray-base) !important;
|
|
222
219
|
display: inline-block;
|
|
223
220
|
margin-bottom: 0.25rem;
|
|
224
221
|
height: 18px;
|
|
@@ -234,7 +231,7 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
|
|
|
234
231
|
}
|
|
235
232
|
|
|
236
233
|
.invalid-feedback {
|
|
237
|
-
color:
|
|
234
|
+
color: var(--pgn-color-red);
|
|
238
235
|
}
|
|
239
236
|
|
|
240
237
|
.full-vertical-height {
|
|
@@ -292,24 +289,24 @@ select.form-control {
|
|
|
292
289
|
|
|
293
290
|
#password-requirement-left {
|
|
294
291
|
opacity: 1;
|
|
295
|
-
|
|
292
|
+
font-size: var(--pgn-typography-font-size-xs) !important;
|
|
296
293
|
filter: drop-shadow($elevation-level-2-shadow) drop-shadow($elevation-level-2-shadow) !important;
|
|
297
294
|
right: 0.2rem !important;
|
|
298
295
|
|
|
299
296
|
.tooltip-inner {
|
|
300
|
-
background:
|
|
297
|
+
background: var(--pgn-color-white);
|
|
301
298
|
display: block;
|
|
302
|
-
color:
|
|
299
|
+
color: var(--pgn-color-gray-500);
|
|
303
300
|
}
|
|
304
301
|
|
|
305
302
|
.arrow::before {
|
|
306
|
-
border-left-color:
|
|
303
|
+
border-left-color: var(--pgn-color-white);
|
|
307
304
|
}
|
|
308
305
|
}
|
|
309
306
|
|
|
310
307
|
#password-requirement-top {
|
|
311
|
-
|
|
312
|
-
filter: drop-shadow(
|
|
308
|
+
font-size: var(--pgn-typography-font-size-xs) !important;
|
|
309
|
+
filter: drop-shadow(var(--pgn-elevation-box-shadow-level-2)) drop-shadow(var(--pgn-elevation-box-shadow-level-2)) !important;
|
|
313
310
|
opacity: 1;
|
|
314
311
|
width: 90%;
|
|
315
312
|
bottom: 10px !important;
|
|
@@ -318,31 +315,31 @@ select.form-control {
|
|
|
318
315
|
|
|
319
316
|
.tooltip-inner {
|
|
320
317
|
min-width: 464px !important;
|
|
321
|
-
background:
|
|
318
|
+
background: var(--pgn-color-white);
|
|
322
319
|
display: block;
|
|
323
|
-
color:
|
|
320
|
+
color: var(--pgn-color-gray-500);
|
|
324
321
|
}
|
|
325
322
|
|
|
326
323
|
.arrow::before {
|
|
327
|
-
border-top-color:
|
|
324
|
+
border-top-color: var(--pgn-color-white);
|
|
328
325
|
}
|
|
329
326
|
|
|
330
327
|
}
|
|
331
328
|
|
|
332
329
|
.yellow-border {
|
|
333
|
-
border: 2px solid
|
|
330
|
+
border: 2px solid var(--pgn-color-accent-b);
|
|
334
331
|
}
|
|
335
332
|
|
|
336
333
|
.institutions__heading {
|
|
337
|
-
color:
|
|
334
|
+
color: var(--pgn-color-primary-700);
|
|
338
335
|
}
|
|
339
336
|
|
|
340
337
|
.logistration-button {
|
|
341
|
-
color:
|
|
338
|
+
color: var(--pgn-color-gray-700);
|
|
342
339
|
}
|
|
343
340
|
|
|
344
|
-
.logistration-button:hover
|
|
345
|
-
color:
|
|
341
|
+
.logistration-button:hover{
|
|
342
|
+
color: var(--pgn-color-gray-700);
|
|
346
343
|
text-decoration: none;
|
|
347
344
|
}
|
|
348
345
|
|
|
@@ -358,7 +355,7 @@ select.form-control {
|
|
|
358
355
|
}
|
|
359
356
|
|
|
360
357
|
.has-floating-label {
|
|
361
|
-
color:
|
|
358
|
+
color: var(--pgn-color-gray-500);
|
|
362
359
|
}
|
|
363
360
|
|
|
364
361
|
.pgn__form-control-floating-label .pgn__form-control-floating-label-content {
|
|
@@ -370,9 +367,9 @@ select.form-control {
|
|
|
370
367
|
font-size: 0.75rem;
|
|
371
368
|
}
|
|
372
369
|
|
|
373
|
-
.form-group__form-field .form-control:focus
|
|
374
|
-
|
|
375
|
-
|
|
370
|
+
.form-group__form-field .form-control:focus ~ .pgn__form-control-floating-label .pgn__form-control-floating-label-content {
|
|
371
|
+
font-size: 16px;
|
|
372
|
+
color: var(--pgn-color-primary-700);
|
|
376
373
|
}
|
|
377
374
|
|
|
378
375
|
.form-group__form-field .form-control:not([value='']):not(:focus)~.pgn__form-control-floating-label .pgn__form-control-floating-label-content {
|
|
@@ -450,14 +447,14 @@ select.form-control {
|
|
|
450
447
|
}
|
|
451
448
|
|
|
452
449
|
.table-striped tbody tr:nth-of-type(odd) {
|
|
453
|
-
background-color:
|
|
450
|
+
background-color: var(--pgn-color-light-200);
|
|
454
451
|
}
|
|
455
452
|
|
|
456
453
|
.institutions--provider-link {
|
|
457
454
|
font-weight: normal;
|
|
458
455
|
font-size: 0.875rem;
|
|
459
456
|
line-height: 1.5rem;
|
|
460
|
-
color:
|
|
457
|
+
color: var(--pgn-color-primary-700)
|
|
461
458
|
}
|
|
462
459
|
|
|
463
460
|
.pgn__form-control-decorator-trailing {
|
|
@@ -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,14 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openedx/frontend-app-authn",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.10",
|
|
4
4
|
"description": "Frontend authentication",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": "^24.12"
|
|
7
|
+
},
|
|
5
8
|
"repository": {
|
|
6
9
|
"type": "git",
|
|
7
10
|
"url": "git+https://github.com/openedx/frontend-app-authn.git"
|
|
8
11
|
},
|
|
9
|
-
"
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/index.js",
|
|
14
|
+
"./app.scss": "./dist/app.scss"
|
|
15
|
+
},
|
|
10
16
|
"files": [
|
|
11
|
-
"/
|
|
17
|
+
"/dist"
|
|
18
|
+
],
|
|
19
|
+
"workspaces": [
|
|
20
|
+
"packages/*"
|
|
12
21
|
],
|
|
13
22
|
"browserslist": [
|
|
14
23
|
"extends @edx/browserslist-config"
|
|
@@ -17,13 +26,28 @@
|
|
|
17
26
|
"*.css",
|
|
18
27
|
"*.scss"
|
|
19
28
|
],
|
|
29
|
+
"atlasTranslations": {
|
|
30
|
+
"path": "translations/frontend-app-authn/src/i18n/messages",
|
|
31
|
+
"dependencies": [
|
|
32
|
+
"@openedx/frontend-base"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
20
35
|
"scripts": {
|
|
36
|
+
"build": "make build",
|
|
37
|
+
"build:packages": "make build-packages",
|
|
38
|
+
"clean": "make clean",
|
|
39
|
+
"clean:packages": "make clean-packages",
|
|
21
40
|
"dev": "PORT=1999 PUBLIC_PATH=/authn openedx dev",
|
|
41
|
+
"dev:site": "make dev-site",
|
|
42
|
+
"dev:packages": "make dev-packages",
|
|
22
43
|
"i18n_extract": "openedx formatjs extract",
|
|
23
44
|
"lint": "openedx lint .",
|
|
24
45
|
"lint:fix": "openedx lint --fix .",
|
|
46
|
+
"prepack": "npm run clean && npm run build",
|
|
25
47
|
"snapshot": "openedx test --updateSnapshot",
|
|
26
|
-
"test": "openedx test --coverage --passWithNoTests"
|
|
48
|
+
"test": "openedx test --coverage --passWithNoTests",
|
|
49
|
+
"watch:build": "nodemon --exec 'npm run build'",
|
|
50
|
+
"translations:pull": "openedx translations:pull"
|
|
27
51
|
},
|
|
28
52
|
"author": "Open edX",
|
|
29
53
|
"license": "AGPL-3.0",
|
|
@@ -41,7 +65,6 @@
|
|
|
41
65
|
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
42
66
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
43
67
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
44
|
-
"@redux-devtools/extension": "^3.3.0",
|
|
45
68
|
"classnames": "^2.5.1",
|
|
46
69
|
"fastest-levenshtein": "^1.0.16",
|
|
47
70
|
"form-urlencoded": "^6.1.5",
|
|
@@ -51,29 +74,28 @@
|
|
|
51
74
|
"react-helmet": "^6.1.0",
|
|
52
75
|
"react-loading-skeleton": "^3.5.0",
|
|
53
76
|
"react-responsive": "^8.2.0",
|
|
54
|
-
"redux-logger": "^3.0.6",
|
|
55
|
-
"redux-mock-store": "^1.5.5",
|
|
56
|
-
"redux-saga": "^1.3.0",
|
|
57
|
-
"redux-thunk": "^2.4.2",
|
|
58
|
-
"reselect": "^5.1.1",
|
|
59
77
|
"universal-cookie": "^8.0.1"
|
|
60
78
|
},
|
|
61
79
|
"devDependencies": {
|
|
62
80
|
"@edx/browserslist-config": "^1.5.0",
|
|
63
81
|
"@testing-library/react": "^16.3.0",
|
|
82
|
+
"@types/jest": "^29.5.14",
|
|
64
83
|
"babel-plugin-formatjs": "10.5.38",
|
|
65
84
|
"eslint-plugin-import": "2.31.0",
|
|
66
85
|
"jest": "^29.7.0",
|
|
67
|
-
"
|
|
86
|
+
"nodemon": "^3.1.14",
|
|
87
|
+
"react-test-renderer": "^18.3.1",
|
|
88
|
+
"ts-jest": "^29.4.0",
|
|
89
|
+
"tsc-alias": "^1.8.16",
|
|
90
|
+
"turbo": "^2.8.16"
|
|
68
91
|
},
|
|
69
92
|
"peerDependencies": {
|
|
70
|
-
"@openedx/frontend-base": "^1.0.0-alpha.
|
|
71
|
-
"@openedx/paragon": "^
|
|
93
|
+
"@openedx/frontend-base": "^1.0.0-alpha || 0.0.0-dev",
|
|
94
|
+
"@openedx/paragon": "^23",
|
|
95
|
+
"@tanstack/react-query": "^5",
|
|
72
96
|
"react": "^18",
|
|
73
97
|
"react-dom": "^18",
|
|
74
|
-
"react-redux": "^8",
|
|
75
98
|
"react-router": "^6",
|
|
76
|
-
"react-router-dom": "^6"
|
|
77
|
-
"redux": "^4"
|
|
99
|
+
"react-router-dom": "^6"
|
|
78
100
|
}
|
|
79
101
|
}
|
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.scss
DELETED
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;
|