keycloakify 11.2.10 → 11.3.0-rc.1
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/193.index.js +1 -5
- package/bin/453.index.js +21 -26
- package/bin/526.index.js +1 -5
- package/bin/573.index.js +1 -5
- package/bin/780.index.js +1 -5
- package/bin/786.index.js +3 -8
- package/bin/932.index.js +9 -12
- package/bin/97.index.js +11 -16
- package/bin/add-story.d.ts +4 -0
- package/bin/copy-keycloak-resources-to-public.d.ts +4 -0
- package/bin/eject-page.d.ts +5 -0
- package/bin/initialize-email-theme.d.ts +4 -0
- package/bin/main.d.ts +2 -0
- package/bin/main.js +5289 -277
- package/bin/shared/buildContext.js.map +1 -1
- package/bin/shared/constants.js +4 -0
- package/bin/shared/constants.js.map +1 -1
- package/bin/shared/customHandler.js +20 -0
- package/bin/shared/customHandler.js.map +1 -0
- package/bin/shared/customHandler_caller.js.map +1 -0
- package/bin/update-kc-gen.d.ts +4 -0
- package/package.json +12 -11
- package/src/bin/add-story.ts +3 -8
- package/src/bin/copy-keycloak-resources-to-public.ts +3 -6
- package/src/bin/eject-page.ts +3 -8
- package/src/bin/initialize-account-theme/initialize-account-theme.ts +3 -6
- package/src/bin/initialize-email-theme.ts +3 -6
- package/src/bin/keycloakify/keycloakify.ts +3 -6
- package/src/bin/main.ts +181 -124
- package/src/bin/shared/buildContext.ts +5 -8
- package/src/bin/shared/constants.ts +5 -0
- package/src/bin/shared/customHandler.ts +35 -0
- package/src/bin/shared/customHandler_caller.ts +47 -0
- package/src/bin/start-keycloak/start-keycloak.ts +10 -12
- package/src/bin/tools/fetchProxyOptions.ts +8 -6
- package/src/bin/update-kc-gen.ts +3 -8
- package/src/vite-plugin/vite-plugin.ts +1 -3
- package/vite-plugin/index.js +8 -6
- package/bin/31.index.js +0 -883
- package/bin/347.index.js +0 -4081
- package/bin/shared/KeycloakVersionRange.d.ts +0 -5
- package/bin/shared/buildContext.d.ts +0 -108
- package/bin/shared/constants.d.ts +0 -18
- package/bin/shared/copyKeycloakResourcesToPublic.d.ts +0 -6
- package/bin/shared/generateKcGenTs.d.ts +0 -15
- package/bin/shared/getLatestsSemVersionedTag.d.ts +0 -15
- package/bin/shared/metaInfKeycloakThemes.d.ts +0 -13
- package/bin/shared/promptKeycloakVersion.d.ts +0 -10
@@ -1,5 +0,0 @@
|
|
1
|
-
export type KeycloakVersionRange = KeycloakVersionRange.WithAccountV1Theme | KeycloakVersionRange.WithoutAccountV1Theme;
|
2
|
-
export declare namespace KeycloakVersionRange {
|
3
|
-
type WithoutAccountV1Theme = "22-to-25" | "all-other-versions";
|
4
|
-
type WithAccountV1Theme = "21-and-below" | "23" | "24" | "25" | "26-and-above";
|
5
|
-
}
|
@@ -1,108 +0,0 @@
|
|
1
|
-
import type { CliCommandOptions } from "../main";
|
2
|
-
import type { KeycloakVersionRange } from "./KeycloakVersionRange";
|
3
|
-
import { type ProxyFetchOptions } from "../tools/fetchProxyOptions";
|
4
|
-
export type BuildContext = {
|
5
|
-
themeVersion: string;
|
6
|
-
themeNames: [string, ...string[]];
|
7
|
-
extraThemeProperties: string[] | undefined;
|
8
|
-
groupId: string;
|
9
|
-
artifactId: string;
|
10
|
-
projectDirPath: string;
|
11
|
-
projectBuildDirPath: string;
|
12
|
-
/** Directory that keycloakify outputs to. Defaults to {cwd}/build_keycloak */
|
13
|
-
keycloakifyBuildDirPath: string;
|
14
|
-
publicDirPath: string;
|
15
|
-
cacheDirPath: string;
|
16
|
-
/** If your app is hosted under a subpath, it's the case in CRA if you have "homepage": "https://example.com/my-app" in your package.json
|
17
|
-
* In this case the urlPathname will be "/my-app/" */
|
18
|
-
urlPathname: string | undefined;
|
19
|
-
assetsDirPath: string;
|
20
|
-
fetchOptions: ProxyFetchOptions;
|
21
|
-
kcContextExclusionsFtlCode: string | undefined;
|
22
|
-
environmentVariables: {
|
23
|
-
name: string;
|
24
|
-
default: string;
|
25
|
-
}[];
|
26
|
-
themeSrcDirPath: string;
|
27
|
-
implementedThemeTypes: {
|
28
|
-
login: {
|
29
|
-
isImplemented: boolean;
|
30
|
-
};
|
31
|
-
email: {
|
32
|
-
isImplemented: boolean;
|
33
|
-
};
|
34
|
-
account: {
|
35
|
-
isImplemented: false;
|
36
|
-
} | {
|
37
|
-
isImplemented: true;
|
38
|
-
type: "Single-Page" | "Multi-Page";
|
39
|
-
};
|
40
|
-
};
|
41
|
-
packageJsonFilePath: string;
|
42
|
-
bundler: "vite" | "webpack";
|
43
|
-
jarTargets: {
|
44
|
-
keycloakVersionRange: KeycloakVersionRange;
|
45
|
-
jarFileBasename: string;
|
46
|
-
}[];
|
47
|
-
startKeycloakOptions: {
|
48
|
-
dockerImage: {
|
49
|
-
reference: string;
|
50
|
-
tag: string;
|
51
|
-
} | undefined;
|
52
|
-
dockerExtraArgs: string[];
|
53
|
-
keycloakExtraArgs: string[];
|
54
|
-
extensionJars: ({
|
55
|
-
type: "path";
|
56
|
-
path: string;
|
57
|
-
} | {
|
58
|
-
type: "url";
|
59
|
-
url: string;
|
60
|
-
})[];
|
61
|
-
realmJsonFilePath: string | undefined;
|
62
|
-
port: number | undefined;
|
63
|
-
};
|
64
|
-
};
|
65
|
-
export type BuildOptions = {
|
66
|
-
themeName?: string | string[];
|
67
|
-
themeVersion?: string;
|
68
|
-
environmentVariables?: {
|
69
|
-
name: string;
|
70
|
-
default: string;
|
71
|
-
}[];
|
72
|
-
extraThemeProperties?: string[];
|
73
|
-
artifactId?: string;
|
74
|
-
groupId?: string;
|
75
|
-
keycloakifyBuildDirPath?: string;
|
76
|
-
kcContextExclusionsFtl?: string;
|
77
|
-
startKeycloakOptions?: {
|
78
|
-
dockerImage?: string;
|
79
|
-
dockerExtraArgs?: string[];
|
80
|
-
keycloakExtraArgs?: string[];
|
81
|
-
extensionJars?: string[];
|
82
|
-
realmJsonFilePath?: string;
|
83
|
-
port?: number;
|
84
|
-
};
|
85
|
-
} & BuildOptions.AccountThemeImplAndKeycloakVersionTargets;
|
86
|
-
export declare namespace BuildOptions {
|
87
|
-
type AccountThemeImplAndKeycloakVersionTargets = AccountThemeImplAndKeycloakVersionTargets.MultiPageApp | AccountThemeImplAndKeycloakVersionTargets.SinglePageAppOrNone;
|
88
|
-
namespace AccountThemeImplAndKeycloakVersionTargets {
|
89
|
-
type MultiPageApp = {
|
90
|
-
accountThemeImplementation: "Multi-Page";
|
91
|
-
keycloakVersionTargets?: Record<KeycloakVersionRange.WithAccountV1Theme, string | boolean>;
|
92
|
-
};
|
93
|
-
type SinglePageAppOrNone = {
|
94
|
-
accountThemeImplementation: "Single-Page" | "none";
|
95
|
-
keycloakVersionTargets?: Record<KeycloakVersionRange.WithoutAccountV1Theme, string | boolean>;
|
96
|
-
};
|
97
|
-
}
|
98
|
-
}
|
99
|
-
export type ResolvedViteConfig = {
|
100
|
-
buildDir: string;
|
101
|
-
publicDir: string;
|
102
|
-
assetsDir: string;
|
103
|
-
urlPathname: string | undefined;
|
104
|
-
buildOptions: BuildOptions;
|
105
|
-
};
|
106
|
-
export declare function getBuildContext(params: {
|
107
|
-
cliCommandOptions: CliCommandOptions;
|
108
|
-
}): BuildContext;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export declare const WELL_KNOWN_DIRECTORY_BASE_NAME: {
|
2
|
-
readonly KEYCLOAKIFY_DEV_RESOURCES: "keycloakify-dev-resources";
|
3
|
-
readonly RESOURCES_COMMON: "resources-common";
|
4
|
-
readonly DIST: "dist";
|
5
|
-
};
|
6
|
-
export declare const THEME_TYPES: readonly ["login", "account"];
|
7
|
-
export type ThemeType = (typeof THEME_TYPES)[number];
|
8
|
-
export declare const VITE_PLUGIN_SUB_SCRIPTS_ENV_NAMES: {
|
9
|
-
readonly RUN_POST_BUILD_SCRIPT: "KEYCLOAKIFY_RUN_POST_BUILD_SCRIPT";
|
10
|
-
readonly RESOLVE_VITE_CONFIG: "KEYCLOAKIFY_RESOLVE_VITE_CONFIG";
|
11
|
-
};
|
12
|
-
export declare const BUILD_FOR_KEYCLOAK_MAJOR_VERSION_ENV_NAME = "KEYCLOAKIFY_BUILD_FOR_KEYCLOAK_MAJOR_VERSION";
|
13
|
-
export declare const LOGIN_THEME_PAGE_IDS: readonly ["login.ftl", "login-username.ftl", "login-password.ftl", "webauthn-authenticate.ftl", "webauthn-register.ftl", "register.ftl", "info.ftl", "error.ftl", "login-reset-password.ftl", "login-verify-email.ftl", "terms.ftl", "login-oauth2-device-verify-user-code.ftl", "login-oauth-grant.ftl", "login-otp.ftl", "login-update-profile.ftl", "login-update-password.ftl", "login-idp-link-confirm.ftl", "login-idp-link-email.ftl", "login-page-expired.ftl", "login-config-totp.ftl", "logout-confirm.ftl", "idp-review-user-profile.ftl", "update-email.ftl", "select-authenticator.ftl", "saml-post-form.ftl", "delete-credential.ftl", "code.ftl", "delete-account-confirm.ftl", "frontchannel-logout.ftl", "login-recovery-authn-code-config.ftl", "login-recovery-authn-code-input.ftl", "login-reset-otp.ftl", "login-x509-info.ftl", "webauthn-error.ftl", "login-passkeys-conditional-authenticate.ftl", "login-idp-link-confirm-override.ftl"];
|
14
|
-
export declare const ACCOUNT_THEME_PAGE_IDS: readonly ["password.ftl", "account.ftl", "sessions.ftl", "totp.ftl", "applications.ftl", "log.ftl", "federatedIdentity.ftl"];
|
15
|
-
export type LoginThemePageId = (typeof LOGIN_THEME_PAGE_IDS)[number];
|
16
|
-
export type AccountThemePageId = (typeof ACCOUNT_THEME_PAGE_IDS)[number];
|
17
|
-
export declare const CONTAINER_NAME = "keycloak-keycloakify";
|
18
|
-
export declare const FALLBACK_LANGUAGE_TAG = "en";
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import type { BuildContext } from "./buildContext";
|
2
|
-
export type BuildContextLike = {
|
3
|
-
projectDirPath: string;
|
4
|
-
themeNames: string[];
|
5
|
-
environmentVariables: {
|
6
|
-
name: string;
|
7
|
-
default: string;
|
8
|
-
}[];
|
9
|
-
themeSrcDirPath: string;
|
10
|
-
implementedThemeTypes: Pick<BuildContext["implementedThemeTypes"], "login" | "account">;
|
11
|
-
packageJsonFilePath: string;
|
12
|
-
};
|
13
|
-
export declare function generateKcGenTs(params: {
|
14
|
-
buildContext: BuildContextLike;
|
15
|
-
}): Promise<void>;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { getLatestsSemVersionedTagFactory } from "../tools/octokit-addons/getLatestsSemVersionedTag";
|
2
|
-
import type { ReturnType } from "tsafe";
|
3
|
-
import type { Param0 } from "tsafe";
|
4
|
-
import type { BuildContext } from "./buildContext";
|
5
|
-
type GetLatestsSemVersionedTag = ReturnType<typeof getLatestsSemVersionedTagFactory>["getLatestsSemVersionedTag"];
|
6
|
-
type Params = Param0<GetLatestsSemVersionedTag>;
|
7
|
-
type R = ReturnType<GetLatestsSemVersionedTag>;
|
8
|
-
export type BuildContextLike = {
|
9
|
-
cacheDirPath: string;
|
10
|
-
fetchOptions: BuildContext["fetchOptions"];
|
11
|
-
};
|
12
|
-
export declare function getLatestsSemVersionedTag({ buildContext, ...params }: Params & {
|
13
|
-
buildContext: BuildContextLike;
|
14
|
-
}): Promise<R>;
|
15
|
-
export {};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { ThemeType } from "./constants";
|
2
|
-
export type MetaInfKeycloakTheme = {
|
3
|
-
themes: {
|
4
|
-
name: string;
|
5
|
-
types: (ThemeType | "email")[];
|
6
|
-
}[];
|
7
|
-
};
|
8
|
-
export declare function writeMetaInfKeycloakThemes(params: {
|
9
|
-
resourcesDirPath: string;
|
10
|
-
getNewMetaInfKeycloakTheme: (params: {
|
11
|
-
metaInfKeycloakTheme: MetaInfKeycloakTheme | undefined;
|
12
|
-
}) => MetaInfKeycloakTheme;
|
13
|
-
}): void;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { type BuildContextLike as BuildContextLike_getLatestsSemVersionedTag } from "./getLatestsSemVersionedTag";
|
2
|
-
export type BuildContextLike = BuildContextLike_getLatestsSemVersionedTag & {};
|
3
|
-
export declare function promptKeycloakVersion(params: {
|
4
|
-
startingFromMajor: number | undefined;
|
5
|
-
excludeMajorVersions: number[];
|
6
|
-
doOmitPatch: boolean;
|
7
|
-
buildContext: BuildContextLike;
|
8
|
-
}): Promise<{
|
9
|
-
keycloakVersion: string;
|
10
|
-
}>;
|