keycloakify 10.0.0-rc.42 → 10.0.0-rc.43

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.
@@ -0,0 +1,49 @@
1
+ import type { CliCommandOptions } from "../main";
2
+ export type BuildContext = {
3
+ bundler: "vite" | "webpack";
4
+ themeVersion: string;
5
+ themeNames: string[];
6
+ extraThemeProperties: string[] | undefined;
7
+ groupId: string;
8
+ artifactId: string;
9
+ loginThemeResourcesFromKeycloakVersion: 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
+ npmWorkspaceRootDirPath: string;
21
+ kcContextExclusionsFtlCode: string | undefined;
22
+ environmentVariables: {
23
+ name: string;
24
+ default: string;
25
+ }[];
26
+ };
27
+ export type BuildOptions = {
28
+ themeName?: string | string[];
29
+ environmentVariables?: {
30
+ name: string;
31
+ default: string;
32
+ }[];
33
+ extraThemeProperties?: string[];
34
+ artifactId?: string;
35
+ groupId?: string;
36
+ loginThemeResourcesFromKeycloakVersion?: string;
37
+ keycloakifyBuildDirPath?: string;
38
+ kcContextExclusionsFtl?: string;
39
+ };
40
+ export type ResolvedViteConfig = {
41
+ buildDir: string;
42
+ publicDir: string;
43
+ assetsDir: string;
44
+ urlPathname: string | undefined;
45
+ buildOptions: BuildOptions;
46
+ };
47
+ export declare function getBuildContext(params: {
48
+ cliCommandOptions: CliCommandOptions;
49
+ }): BuildContext;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "10.0.0-rc.42",
3
+ "version": "10.0.0-rc.43",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -788,6 +788,7 @@
788
788
  "bin/shared/constants.js",
789
789
  "bin/shared/constants.d.ts",
790
790
  "bin/shared/constants.js.map",
791
+ "bin/shared/buildContext.d.ts",
791
792
  "vite-plugin/index.d.ts",
792
793
  "vite-plugin/vite-plugin.d.ts",
793
794
  "vite-plugin/index.js"