1- /* prettier-ignore-start */
1+ // This file is auto-generated by the `update-kc-gen` command. Do not edit it manually.
2+ // Hash: 7852738310167426a221686c9b9e551f4ae0ecc2a7fefbea0f0ae4bf67a515f8
23
34/* eslint-disable */
45
56// @ts -nocheck
67
78// noinspection JSUnusedGlobalSymbols
89
9- // This file is auto-generated by Keycloakify
10-
1110import { lazy , Suspense , type ReactNode } from "react" ;
1211
1312export type ThemeName = "pydis-theme" ;
@@ -20,9 +19,12 @@ export const kcEnvNames: KcEnvName[] = [];
2019
2120export const kcEnvDefaults : Record < KcEnvName , string > = { } ;
2221
23- export type KcContext =
24- | import ( "./login/KcContext" ) . KcContext
25- ;
22+ /**
23+ * NOTE: Do not import this type except maybe in your entrypoint.
24+ * If you need to import the KcContext import it either from src/login/KcContext.ts or src/account/KcContext.ts.
25+ * Depending on the theme type you are working on.
26+ */
27+ export type KcContext = import ( "./login/KcContext" ) . KcContext ;
2628
2729declare global {
2830 interface Window {
@@ -32,22 +34,16 @@ declare global {
3234
3335export const KcLoginPage = lazy ( ( ) => import ( "./login/KcPage" ) ) ;
3436
35- export function KcPage (
36- props : {
37- kcContext : KcContext ;
38- fallback ?: ReactNode ;
39- }
40- ) {
37+ export function KcPage ( props : { kcContext : KcContext ; fallback ?: ReactNode } ) {
4138 const { kcContext, fallback } = props ;
4239 return (
4340 < Suspense fallback = { fallback } >
4441 { ( ( ) => {
4542 switch ( kcContext . themeType ) {
46- case "login" : return < KcLoginPage kcContext = { kcContext } /> ;
43+ case "login" :
44+ return < KcLoginPage kcContext = { kcContext } /> ;
4745 }
4846 } ) ( ) }
4947 </ Suspense >
5048 ) ;
5149}
52-
53- /* prettier-ignore-end */
0 commit comments