diff --git a/scripts/generate-i18n-messages.ts b/scripts/generate-i18n-messages.ts index aa899487..9d721740 100644 --- a/scripts/generate-i18n-messages.ts +++ b/scripts/generate-i18n-messages.ts @@ -17,7 +17,7 @@ const isSilent = true; const logger = getLogger({ isSilent }); async function main() { - const keycloakVersion = "23.0.4"; + const keycloakVersion = "24.0.2"; const thisCodebaseRootDirPath = getThisCodebaseRootDirPath(); diff --git a/src/login/Template.tsx b/src/login/Template.tsx index c983afb6..79ce2a33 100644 --- a/src/login/Template.tsx +++ b/src/login/Template.tsx @@ -11,10 +11,9 @@ export default function Template(props: TemplateProps) { displayInfo = false, displayMessage = true, displayRequiredFields = false, - displayWide = false, - showAnotherWayIfPresent = true, headerNode, showUsernameNode = null, + socialProvidersNode = null, infoNode = null, kcContext, i18n, @@ -25,7 +24,7 @@ export default function Template(props: TemplateProps) { const { getClassName } = useGetClassName({ doUseDefaultCss, classes }); - const { msg, changeLocale, labelBySupportedLanguageTag, currentLanguageTag } = i18n; + const { msg, msgStr, changeLocale, labelBySupportedLanguageTag, currentLanguageTag } = i18n; const { realm, locale, auth, url, message, isAppInitiatedAction, authenticationSession } = kcContext; @@ -85,12 +84,12 @@ export default function Template(props: TemplateProps) { -
+
{realm.internationalizationEnabled && (assert(locale !== undefined), true) && locale.supported.length > 1 && ( - - ) : ( - <> - {showUsernameNode} -
@@ -168,13 +197,21 @@ export default function Template(props: TemplateProps) {
{/* App-initiated actions should not see warning messages about the need to complete the action during login. */} {displayMessage && message !== undefined && (message.type !== "warning" || !isAppInitiatedAction) && ( -
- {message.type === "success" && } - {message.type === "warning" && } - {message.type === "error" && } - {message.type === "info" && } +
+
+ {message.type === "success" && } + {message.type === "warning" && } + {message.type === "error" && } + {message.type === "info" && } +
) {
)} {children} - {auth !== undefined && auth.showTryAnotherWayLink && showAnotherWayIfPresent && ( -
-
+ {auth !== undefined && auth.showTryAnotherWayLink && ( + +
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} @@ -211,6 +239,7 @@ export default function Template(props: TemplateProps) {
)} + {socialProvidersNode} {displayInfo && (
diff --git a/src/login/TemplateProps.ts b/src/login/TemplateProps.ts index e80d2bd2..8eb9934c 100644 --- a/src/login/TemplateProps.ts +++ b/src/login/TemplateProps.ts @@ -11,10 +11,10 @@ export type TemplateProps({ "kcInfoAreaWrapperClass": undefined, "kcFormButtonsWrapperClass": undefined, "kcFormOptionsWrapperClass": undefined, + "kcLocaleDropDownClass": undefined, + "kcLocaleListItemClass": undefined, + "kcContentWrapperClass": undefined, "kcLogoIdP-facebook": "fa fa-facebook", "kcAuthenticatorOTPClass": "fa fa-mobile list-view-pf-icon-lg",