keycloakify 10.0.0-rc.52 → 10.0.0-rc.54

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.
@@ -5,7 +5,7 @@ import type { I18n } from "../login/i18n";
5
5
  import type { KcContext } from "../login/KcContext";
6
6
  import type { UserProfileFormFieldsProps } from "../login/UserProfileFormFieldsProps";
7
7
  type DefaultPageProps = PageProps<KcContext, I18n> & {
8
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
8
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
9
9
  doMakeUserConfirmPassword: boolean;
10
10
  };
11
11
  export default function DefaultPage(props: DefaultPageProps): JSX.Element;
@@ -151,17 +151,13 @@ export declare namespace KcContext {
151
151
  type Register = Common & {
152
152
  pageId: "register.ftl";
153
153
  profile: UserProfile;
154
+ passwordPolicies?: PasswordPolicies;
154
155
  url: {
155
156
  registrationAction: string;
156
157
  };
157
158
  passwordRequired: boolean;
158
159
  recaptchaRequired: boolean;
159
160
  recaptchaSiteKey?: string;
160
- /**
161
- * Theses values are added by: https://github.com/jcputney/keycloak-theme-additional-info-extension
162
- * A Keycloak Java extension used as dependency in Keycloakify.
163
- */
164
- passwordPolicies?: PasswordPolicies;
165
161
  termsAcceptanceRequired?: boolean;
166
162
  };
167
163
  type Info = Common & {
@@ -398,14 +394,17 @@ export declare namespace KcContext {
398
394
  type LoginUpdateProfile = Common & {
399
395
  pageId: "login-update-profile.ftl";
400
396
  profile: UserProfile;
397
+ passwordPolicies?: PasswordPolicies;
401
398
  };
402
399
  type IdpReviewUserProfile = Common & {
403
400
  pageId: "idp-review-user-profile.ftl";
404
401
  profile: UserProfile;
402
+ passwordPolicies?: PasswordPolicies;
405
403
  };
406
404
  type UpdateEmail = Common & {
407
405
  pageId: "update-email.ftl";
408
406
  profile: UserProfile;
407
+ passwordPolicies?: PasswordPolicies;
409
408
  };
410
409
  type SelectAuthenticator = Common & {
411
410
  pageId: "select-authenticator.ftl";
@@ -554,6 +553,10 @@ export declare namespace Validators {
554
553
  options: string[];
555
554
  };
556
555
  }
556
+ /**
557
+ * Theses values are added by: https://github.com/jcputney/keycloak-theme-additional-info-extension
558
+ * A Keycloak Java extension used as dependency in Keycloakify.
559
+ */
557
560
  export type PasswordPolicies = {
558
561
  /** The minimum length of the password */
559
562
  length?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"KcContext.js","sourceRoot":"","sources":["../../src/login/KcContext/KcContext.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA6DtC,MAAM,EAA2D,CAAC;AAmqBlE;IAOI,MAAM,EAA4B,CAAC;IACnC,MAAM,EAAiC,CAAC;CAC3C;AAmBD,MAAM,EAMH,CAAC"}
1
+ {"version":3,"file":"KcContext.js","sourceRoot":"","sources":["../../src/login/KcContext/KcContext.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA6DtC,MAAM,EAA2D,CAAC;AAkqBlE;IAOI,MAAM,EAA4B,CAAC;IACnC,MAAM,EAAiC,CAAC;CAC3C;AAuBD,MAAM,EAMH,CAAC"}
@@ -2,7 +2,7 @@
2
2
  import { type FormAction, type FormFieldError } from "../login/lib/useUserProfileForm";
3
3
  import type { KcClsx } from "../login/lib/kcClsx";
4
4
  import type { Attribute } from "../login/KcContext";
5
- export type UserProfileFormFieldsProps<KcContext, I18n> = {
5
+ export type UserProfileFormFieldsProps<KcContext = any, I18n = any> = {
6
6
  kcContext: Extract<KcContext, {
7
7
  profile: unknown;
8
8
  }>;
@@ -7,7 +7,7 @@ import type { I18n } from "../i18n";
7
7
  type IdpReviewUserProfileProps = PageProps<Extract<KcContext, {
8
8
  pageId: "idp-review-user-profile.ftl";
9
9
  }>, I18n> & {
10
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
10
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
11
11
  doMakeUserConfirmPassword: boolean;
12
12
  };
13
13
  export default function IdpReviewUserProfile(props: IdpReviewUserProfileProps): JSX.Element;
@@ -7,7 +7,7 @@ import type { I18n } from "../i18n";
7
7
  type LoginUpdateProfileProps = PageProps<Extract<KcContext, {
8
8
  pageId: "login-update-profile.ftl";
9
9
  }>, I18n> & {
10
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
10
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
11
11
  doMakeUserConfirmPassword: boolean;
12
12
  };
13
13
  export default function LoginUpdateProfile(props: LoginUpdateProfileProps): JSX.Element;
@@ -7,7 +7,7 @@ import type { I18n } from "../i18n";
7
7
  type RegisterProps = PageProps<Extract<KcContext, {
8
8
  pageId: "register.ftl";
9
9
  }>, I18n> & {
10
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
10
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
11
11
  doMakeUserConfirmPassword: boolean;
12
12
  };
13
13
  export default function Register(props: RegisterProps): JSX.Element;
@@ -7,7 +7,7 @@ import type { I18n } from "../i18n";
7
7
  type UpdateEmailProps = PageProps<Extract<KcContext, {
8
8
  pageId: "update-email.ftl";
9
9
  }>, I18n> & {
10
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
10
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
11
11
  doMakeUserConfirmPassword: boolean;
12
12
  };
13
13
  export default function UpdateEmail(props: UpdateEmailProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "10.0.0-rc.52",
3
+ "version": "10.0.0-rc.54",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,7 +42,7 @@ const LoginX509Info = lazy(() => import("keycloakify/login/pages/LoginX509Info")
42
42
  const WebauthnError = lazy(() => import("keycloakify/login/pages/WebauthnError"));
43
43
 
44
44
  type DefaultPageProps = PageProps<KcContext, I18n> & {
45
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
45
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
46
46
  doMakeUserConfirmPassword: boolean;
47
47
  };
48
48
 
@@ -209,17 +209,13 @@ export declare namespace KcContext {
209
209
  export type Register = Common & {
210
210
  pageId: "register.ftl";
211
211
  profile: UserProfile;
212
+ passwordPolicies?: PasswordPolicies;
212
213
  url: {
213
214
  registrationAction: string;
214
215
  };
215
216
  passwordRequired: boolean;
216
217
  recaptchaRequired: boolean;
217
218
  recaptchaSiteKey?: string;
218
- /**
219
- * Theses values are added by: https://github.com/jcputney/keycloak-theme-additional-info-extension
220
- * A Keycloak Java extension used as dependency in Keycloakify.
221
- */
222
- passwordPolicies?: PasswordPolicies;
223
219
  termsAcceptanceRequired?: boolean;
224
220
  };
225
221
 
@@ -479,16 +475,19 @@ export declare namespace KcContext {
479
475
  export type LoginUpdateProfile = Common & {
480
476
  pageId: "login-update-profile.ftl";
481
477
  profile: UserProfile;
478
+ passwordPolicies?: PasswordPolicies;
482
479
  };
483
480
 
484
481
  export type IdpReviewUserProfile = Common & {
485
482
  pageId: "idp-review-user-profile.ftl";
486
483
  profile: UserProfile;
484
+ passwordPolicies?: PasswordPolicies;
487
485
  };
488
486
 
489
487
  export type UpdateEmail = Common & {
490
488
  pageId: "update-email.ftl";
491
489
  profile: UserProfile;
490
+ passwordPolicies?: PasswordPolicies;
492
491
  };
493
492
 
494
493
  export type SelectAuthenticator = Common & {
@@ -752,6 +751,10 @@ export declare namespace Validators {
752
751
  assert<Equals<OnlyInExpected, never>>();
753
752
  }
754
753
 
754
+ /**
755
+ * Theses values are added by: https://github.com/jcputney/keycloak-theme-additional-info-extension
756
+ * A Keycloak Java extension used as dependency in Keycloakify.
757
+ */
755
758
  export type PasswordPolicies = {
756
759
  /** The minimum length of the password */
757
760
  length?: number;
@@ -2,7 +2,7 @@ import { type FormAction, type FormFieldError } from "keycloakify/login/lib/useU
2
2
  import type { KcClsx } from "keycloakify/login/lib/kcClsx";
3
3
  import type { Attribute } from "keycloakify/login/KcContext";
4
4
 
5
- export type UserProfileFormFieldsProps<KcContext, I18n> = {
5
+ export type UserProfileFormFieldsProps<KcContext = any, I18n = any> = {
6
6
  kcContext: Extract<KcContext, { profile: unknown }>;
7
7
  i18n: I18n;
8
8
  kcClsx: KcClsx;
@@ -7,7 +7,7 @@ import type { KcContext } from "../KcContext";
7
7
  import type { I18n } from "../i18n";
8
8
 
9
9
  type IdpReviewUserProfileProps = PageProps<Extract<KcContext, { pageId: "idp-review-user-profile.ftl" }>, I18n> & {
10
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
10
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
11
11
  doMakeUserConfirmPassword: boolean;
12
12
  };
13
13
 
@@ -7,7 +7,7 @@ import type { KcContext } from "../KcContext";
7
7
  import type { I18n } from "../i18n";
8
8
 
9
9
  type LoginUpdateProfileProps = PageProps<Extract<KcContext, { pageId: "login-update-profile.ftl" }>, I18n> & {
10
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
10
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
11
11
  doMakeUserConfirmPassword: boolean;
12
12
  };
13
13
 
@@ -9,7 +9,7 @@ import type { KcContext } from "../KcContext";
9
9
  import type { I18n } from "../i18n";
10
10
 
11
11
  type RegisterProps = PageProps<Extract<KcContext, { pageId: "register.ftl" }>, I18n> & {
12
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
12
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
13
13
  doMakeUserConfirmPassword: boolean;
14
14
  };
15
15
 
@@ -7,7 +7,7 @@ import type { KcContext } from "../KcContext";
7
7
  import type { I18n } from "../i18n";
8
8
 
9
9
  type UpdateEmailProps = PageProps<Extract<KcContext, { pageId: "update-email.ftl" }>, I18n> & {
10
- UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps<KcContext, I18n>) => JSX.Element>;
10
+ UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
11
11
  doMakeUserConfirmPassword: boolean;
12
12
  };
13
13