keycloakify 10.0.0-rc.51 → 10.0.0-rc.53

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/bin/538.index.js CHANGED
@@ -570,7 +570,7 @@ async function generateKcGenTs(params) {
570
570
  ``,
571
571
  `export type KcEnvName = ${buildContext.environmentVariables.length === 0 ? "never" : buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(" | ")};`,
572
572
  ``,
573
- `export const KcEnvNames: KcEnvName[] = [${buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(", ")}];`,
573
+ `export const kcEnvNames: KcEnvName[] = [${buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(", ")}];`,
574
574
  ``,
575
575
  `export const kcEnvDefaults: Record<KcEnvName, string> = ${JSON.stringify(Object.fromEntries(buildContext.environmentVariables.map(({ name, default: defaultValue }) => [name, defaultValue])), null, 2)};`,
576
576
  ``,
@@ -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;
@@ -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.51",
3
+ "version": "10.0.0-rc.53",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,7 +46,7 @@ export async function generateKcGenTs(params: {
46
46
  ``,
47
47
  `export type KcEnvName = ${buildContext.environmentVariables.length === 0 ? "never" : buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(" | ")};`,
48
48
  ``,
49
- `export const KcEnvNames: KcEnvName[] = [${buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(", ")}];`,
49
+ `export const kcEnvNames: KcEnvName[] = [${buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(", ")}];`,
50
50
  ``,
51
51
  `export const kcEnvDefaults: Record<KcEnvName, string> = ${JSON.stringify(
52
52
  Object.fromEntries(
@@ -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
 
@@ -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
 
@@ -5152,7 +5152,7 @@ async function generateKcGenTs(params) {
5152
5152
  ``,
5153
5153
  `export type KcEnvName = ${buildContext.environmentVariables.length === 0 ? "never" : buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(" | ")};`,
5154
5154
  ``,
5155
- `export const KcEnvNames: KcEnvName[] = [${buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(", ")}];`,
5155
+ `export const kcEnvNames: KcEnvName[] = [${buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(", ")}];`,
5156
5156
  ``,
5157
5157
  `export const kcEnvDefaults: Record<KcEnvName, string> = ${JSON.stringify(Object.fromEntries(buildContext.environmentVariables.map(({ name, default: defaultValue }) => [name, defaultValue])), null, 2)};`,
5158
5158
  ``,