keycloakify 10.0.0-rc.21 → 10.0.0-rc.23

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.
@@ -3,7 +3,6 @@ import type { PageProps } from "keycloakify/login/pages/PageProps";
3
3
  import { useGetClassName } from "keycloakify/login/lib/useGetClassName";
4
4
  import type { KcContext } from "../kcContext";
5
5
  import type { I18n } from "../i18n";
6
- import { MessageKey } from "keycloakify/login/i18n/i18n";
7
6
 
8
7
  export default function LoginConfigTotp(props: PageProps<Extract<KcContext, { pageId: "login-config-totp.ftl" }>, I18n>) {
9
8
  const { kcContext, i18n, doUseDefaultCss, Template, classes } = props;
@@ -15,7 +14,7 @@ export default function LoginConfigTotp(props: PageProps<Extract<KcContext, { pa
15
14
 
16
15
  const { url, isAppInitiatedAction, totp, mode, messagesPerField } = kcContext;
17
16
 
18
- const { msg, msgStr } = i18n;
17
+ const { msg, msgStr, advancedMsg } = i18n;
19
18
 
20
19
  return (
21
20
  <Template {...{ kcContext, i18n, doUseDefaultCss, classes }} headerNode={msg("loginTotpTitle")}>
@@ -26,7 +25,7 @@ export default function LoginConfigTotp(props: PageProps<Extract<KcContext, { pa
26
25
 
27
26
  <ul id="kc-totp-supported-apps">
28
27
  {totp.supportedApplications.map(app => (
29
- <li>{msg(app as MessageKey)}</li>
28
+ <li>{advancedMsg(app)}</li>
30
29
  ))}
31
30
  </ul>
32
31
  </li>
@@ -1,6 +1,5 @@
1
1
  import { useEffect, Fragment } from "react";
2
2
  import { clsx } from "keycloakify/tools/clsx";
3
- import type { MessageKey } from "keycloakify/login/i18n/i18n";
4
3
  import type { PageProps } from "keycloakify/login/pages/PageProps";
5
4
  import { useGetClassName } from "keycloakify/login/lib/useGetClassName";
6
5
  import { assert } from "tsafe/assert";
@@ -29,7 +28,7 @@ export default function WebauthnAuthenticate(props: PageProps<Extract<KcContext,
29
28
  shouldDisplayAuthenticators
30
29
  } = kcContext;
31
30
 
32
- const { msg, msgStr } = i18n;
31
+ const { msg, msgStr, advancedMsg } = i18n;
33
32
 
34
33
  const { insertScriptTags } = useInsertScriptTags({
35
34
  scriptTags: [
@@ -198,7 +197,7 @@ export default function WebauthnAuthenticate(props: PageProps<Extract<KcContext,
198
197
  id="kc-webauthn-authenticator-label"
199
198
  className={getClassName("kcSelectAuthListItemHeadingClass")}
200
199
  >
201
- {msg(authenticator.label as MessageKey)}
200
+ {advancedMsg(authenticator.label)}
202
201
  </div>
203
202
  {authenticator.transports.displayNameProperties?.length && (
204
203
  <div