keycloakify 11.8.25 → 11.8.27

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.
Files changed (86) hide show
  1. package/account/DefaultPage.d.ts +1 -1
  2. package/account/Template.d.ts +1 -1
  3. package/account/i18n/withJsx/GenericI18n.d.ts +5 -5
  4. package/account/pages/Account.d.ts +1 -1
  5. package/account/pages/Applications.d.ts +1 -1
  6. package/account/pages/FederatedIdentity.d.ts +1 -1
  7. package/account/pages/Log.d.ts +1 -1
  8. package/account/pages/PageProps.d.ts +2 -2
  9. package/account/pages/Password.d.ts +1 -1
  10. package/account/pages/Sessions.d.ts +1 -1
  11. package/account/pages/Totp.d.ts +1 -1
  12. package/bin/main.js +0 -0
  13. package/login/DefaultPage.d.ts +3 -3
  14. package/login/Template.d.ts +1 -1
  15. package/login/Template.js +1 -1
  16. package/login/Template.js.map +1 -1
  17. package/login/UserProfileFormFields.d.ts +1 -1
  18. package/login/UserProfileFormFields.js +13 -6
  19. package/login/UserProfileFormFields.js.map +1 -1
  20. package/login/UserProfileFormFieldsProps.d.ts +3 -3
  21. package/login/i18n/withJsx/GenericI18n.d.ts +5 -5
  22. package/login/lib/getUserProfileApi/getUserProfileApi.js +26 -0
  23. package/login/lib/getUserProfileApi/getUserProfileApi.js.map +1 -1
  24. package/login/lib/useUserProfileForm.d.ts +2 -2
  25. package/login/pages/Code.d.ts +1 -1
  26. package/login/pages/DeleteAccountConfirm.d.ts +1 -1
  27. package/login/pages/DeleteCredential.d.ts +1 -1
  28. package/login/pages/Error.d.ts +1 -1
  29. package/login/pages/FrontchannelLogout.d.ts +1 -1
  30. package/login/pages/IdpReviewUserProfile.d.ts +3 -3
  31. package/login/pages/Info.d.ts +1 -1
  32. package/login/pages/Login.d.ts +1 -1
  33. package/login/pages/Login.js.map +1 -1
  34. package/login/pages/LoginConfigTotp.d.ts +1 -1
  35. package/login/pages/LoginIdpLinkConfirm.d.ts +1 -1
  36. package/login/pages/LoginIdpLinkConfirmOverride.d.ts +1 -1
  37. package/login/pages/LoginIdpLinkEmail.d.ts +1 -1
  38. package/login/pages/LoginOauth2DeviceVerifyUserCode.d.ts +1 -1
  39. package/login/pages/LoginOauthGrant.d.ts +1 -1
  40. package/login/pages/LoginOtp.d.ts +1 -1
  41. package/login/pages/LoginPageExpired.d.ts +1 -1
  42. package/login/pages/LoginPasskeysConditionalAuthenticate.d.ts +1 -1
  43. package/login/pages/LoginPassword.d.ts +1 -1
  44. package/login/pages/LoginPassword.js.map +1 -1
  45. package/login/pages/LoginRecoveryAuthnCodeConfig.d.ts +1 -1
  46. package/login/pages/LoginRecoveryAuthnCodeInput.d.ts +1 -1
  47. package/login/pages/LoginResetOtp.d.ts +1 -1
  48. package/login/pages/LoginResetPassword.d.ts +1 -1
  49. package/login/pages/LoginUpdatePassword.d.ts +1 -1
  50. package/login/pages/LoginUpdatePassword.js.map +1 -1
  51. package/login/pages/LoginUpdateProfile.d.ts +3 -3
  52. package/login/pages/LoginUsername.d.ts +1 -1
  53. package/login/pages/LoginVerifyEmail.d.ts +1 -1
  54. package/login/pages/LoginX509Info.d.ts +1 -1
  55. package/login/pages/LogoutConfirm.d.ts +1 -1
  56. package/login/pages/PageProps.d.ts +2 -2
  57. package/login/pages/Register.d.ts +3 -3
  58. package/login/pages/SamlPostForm.d.ts +1 -1
  59. package/login/pages/SelectAuthenticator.d.ts +1 -1
  60. package/login/pages/Terms.d.ts +1 -1
  61. package/login/pages/UpdateEmail.d.ts +3 -3
  62. package/login/pages/WebauthnAuthenticate.d.ts +1 -1
  63. package/login/pages/WebauthnError.d.ts +1 -1
  64. package/login/pages/WebauthnRegister.d.ts +1 -1
  65. package/package.json +1 -1
  66. package/src/account/i18n/withJsx/GenericI18n.tsx +5 -5
  67. package/src/account/i18n/withJsx/useI18n.tsx +2 -2
  68. package/src/account/pages/PageProps.ts +2 -2
  69. package/src/login/DefaultPage.tsx +2 -2
  70. package/src/login/Template.tsx +1 -1
  71. package/src/login/UserProfileFormFields.tsx +11 -7
  72. package/src/login/UserProfileFormFieldsProps.tsx +3 -3
  73. package/src/login/i18n/withJsx/GenericI18n.tsx +5 -5
  74. package/src/login/i18n/withJsx/useI18n.tsx +2 -2
  75. package/src/login/lib/getUserProfileApi/getUserProfileApi.ts +32 -0
  76. package/src/login/lib/useUserProfileForm.tsx +2 -2
  77. package/src/login/pages/IdpReviewUserProfile.tsx +2 -2
  78. package/src/login/pages/Login.tsx +2 -2
  79. package/src/login/pages/LoginPassword.tsx +2 -2
  80. package/src/login/pages/LoginUpdatePassword.tsx +2 -2
  81. package/src/login/pages/LoginUpdateProfile.tsx +2 -2
  82. package/src/login/pages/PageProps.ts +2 -2
  83. package/src/login/pages/Register.tsx +2 -2
  84. package/src/login/pages/UpdateEmail.tsx +2 -2
  85. package/src/tools/JSX.ts +0 -2
  86. package/tools/JSX.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import type { JSXElement } from "keycloakify/tools/JSX";
1
+ import type { JSX } from "keycloakify/tools/JSX";
2
2
  import { useState } from "react";
3
3
  import { kcSanitize } from "keycloakify/lib/kcSanitize";
4
4
  import { clsx } from "keycloakify/tools/clsx";
@@ -102,7 +102,7 @@ export default function LoginPassword(props: PageProps<Extract<KcContext, { page
102
102
  );
103
103
  }
104
104
 
105
- function PasswordWrapper(props: { kcClsx: KcClsx; i18n: I18n; passwordInputId: string; children: JSXElement }) {
105
+ function PasswordWrapper(props: { kcClsx: KcClsx; i18n: I18n; passwordInputId: string; children: JSX.Element }) {
106
106
  const { kcClsx, i18n, passwordInputId, children } = props;
107
107
 
108
108
  const { msgStr } = i18n;
@@ -1,4 +1,4 @@
1
- import type { JSXElement } from "keycloakify/tools/JSX";
1
+ import type { JSX } from "keycloakify/tools/JSX";
2
2
  import { useIsPasswordRevealed } from "keycloakify/tools/useIsPasswordRevealed";
3
3
  import { kcSanitize } from "keycloakify/lib/kcSanitize";
4
4
  import { getKcClsx, type KcClsx } from "keycloakify/login/lib/kcClsx";
@@ -140,7 +140,7 @@ function LogoutOtherSessions(props: { kcClsx: KcClsx; i18n: I18n }) {
140
140
  );
141
141
  }
142
142
 
143
- function PasswordWrapper(props: { kcClsx: KcClsx; i18n: I18n; passwordInputId: string; children: JSXElement }) {
143
+ function PasswordWrapper(props: { kcClsx: KcClsx; i18n: I18n; passwordInputId: string; children: JSX.Element }) {
144
144
  const { kcClsx, i18n, passwordInputId, children } = props;
145
145
 
146
146
  const { msgStr } = i18n;
@@ -1,4 +1,4 @@
1
- import type { JSXElement } from "keycloakify/tools/JSX";
1
+ import type { JSX } from "keycloakify/tools/JSX";
2
2
  import { useState } from "react";
3
3
  import type { LazyOrNot } from "keycloakify/tools/LazyOrNot";
4
4
  import { getKcClsx } from "keycloakify/login/lib/kcClsx";
@@ -8,7 +8,7 @@ import type { KcContext } from "../KcContext";
8
8
  import type { I18n } from "../i18n";
9
9
 
10
10
  type LoginUpdateProfileProps = PageProps<Extract<KcContext, { pageId: "login-update-profile.ftl" }>, I18n> & {
11
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSXElement>;
11
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
12
12
  doMakeUserConfirmPassword: boolean;
13
13
  };
14
14
 
@@ -1,9 +1,9 @@
1
- import type { JSXElement } from "keycloakify/tools/JSX";
1
+ import type { JSX } from "keycloakify/tools/JSX";
2
2
  import { type TemplateProps, type ClassKey } from "keycloakify/login/TemplateProps";
3
3
  import type { LazyOrNot } from "keycloakify/tools/LazyOrNot";
4
4
 
5
5
  export type PageProps<NarrowedKcContext, I18n> = {
6
- Template: LazyOrNot<(props: TemplateProps<any, any>) => JSXElement | null>;
6
+ Template: LazyOrNot<(props: TemplateProps<any, any>) => JSX.Element | null>;
7
7
  kcContext: NarrowedKcContext;
8
8
  i18n: I18n;
9
9
  doUseDefaultCss: boolean;
@@ -1,4 +1,4 @@
1
- import type { JSXElement } from "keycloakify/tools/JSX";
1
+ import type { JSX } from "keycloakify/tools/JSX";
2
2
  import { useState } from "react";
3
3
  import type { LazyOrNot } from "keycloakify/tools/LazyOrNot";
4
4
  import { kcSanitize } from "keycloakify/lib/kcSanitize";
@@ -10,7 +10,7 @@ import type { KcContext } from "../KcContext";
10
10
  import type { I18n } from "../i18n";
11
11
 
12
12
  type RegisterProps = PageProps<Extract<KcContext, { pageId: "register.ftl" }>, I18n> & {
13
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSXElement>;
13
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
14
14
  doMakeUserConfirmPassword: boolean;
15
15
  };
16
16
 
@@ -1,4 +1,4 @@
1
- import type { JSXElement } from "keycloakify/tools/JSX";
1
+ import type { JSX } from "keycloakify/tools/JSX";
2
2
  import { useState } from "react";
3
3
  import type { LazyOrNot } from "keycloakify/tools/LazyOrNot";
4
4
  import { getKcClsx, type KcClsx } from "keycloakify/login/lib/kcClsx";
@@ -8,7 +8,7 @@ import type { KcContext } from "../KcContext";
8
8
  import type { I18n } from "../i18n";
9
9
 
10
10
  type UpdateEmailProps = PageProps<Extract<KcContext, { pageId: "update-email.ftl" }>, I18n> & {
11
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSXElement>;
11
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
12
12
  doMakeUserConfirmPassword: boolean;
13
13
  };
14
14
 
package/src/tools/JSX.ts CHANGED
@@ -3,5 +3,3 @@ import type { ReactElement } from "react";
3
3
  export namespace JSX {
4
4
  export interface Element extends ReactElement<any, any> {}
5
5
  }
6
-
7
- export type JSXElement = JSX.Element;
package/tools/JSX.d.ts CHANGED
@@ -3,4 +3,3 @@ export declare namespace JSX {
3
3
  interface Element extends ReactElement<any, any> {
4
4
  }
5
5
  }
6
- export type JSXElement = JSX.Element;