keycloakify 10.0.0-rc.38 → 10.0.0-rc.39

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.
Files changed (81) hide show
  1. package/bin/193.index.js +13 -13
  2. package/bin/3.index.js +86 -86
  3. package/bin/322.index.js +595 -0
  4. package/bin/453.index.js +3 -3
  5. package/bin/526.index.js +42 -633
  6. package/bin/538.index.js +68 -57
  7. package/bin/932.index.js +7 -7
  8. package/bin/944.index.js +621 -0
  9. package/bin/961.index.js +5 -5
  10. package/bin/97.index.js +3 -3
  11. package/bin/{21.index.js → 98.index.js} +59 -48
  12. package/bin/main.js +8 -8
  13. package/lib/getKcClsx.js +12 -1
  14. package/lib/getKcClsx.js.map +1 -1
  15. package/login/Fallback.d.ts +1 -0
  16. package/login/Fallback.js.map +1 -1
  17. package/login/UserProfileFormFields.d.ts +1 -0
  18. package/login/UserProfileFormFields.js +1 -3
  19. package/login/UserProfileFormFields.js.map +1 -1
  20. package/login/i18n/i18n.js +1 -1
  21. package/login/pages/IdpReviewUserProfile.d.ts +1 -0
  22. package/login/pages/IdpReviewUserProfile.js +2 -2
  23. package/login/pages/IdpReviewUserProfile.js.map +1 -1
  24. package/login/pages/LoginUpdateProfile.d.ts +1 -0
  25. package/login/pages/LoginUpdateProfile.js +2 -2
  26. package/login/pages/LoginUpdateProfile.js.map +1 -1
  27. package/login/pages/Register.d.ts +1 -0
  28. package/login/pages/Register.js +2 -2
  29. package/login/pages/Register.js.map +1 -1
  30. package/login/pages/UpdateEmail.d.ts +1 -0
  31. package/login/pages/UpdateEmail.js +2 -2
  32. package/login/pages/UpdateEmail.js.map +1 -1
  33. package/package.json +5 -8
  34. package/src/bin/add-story.ts +3 -3
  35. package/src/bin/copy-keycloak-resources-to-public.ts +3 -3
  36. package/src/bin/download-keycloak-default-theme.ts +5 -5
  37. package/src/bin/eject-page.ts +3 -3
  38. package/src/bin/initialize-email-theme.ts +5 -5
  39. package/src/bin/keycloakify/buildJars/buildJar.ts +14 -14
  40. package/src/bin/keycloakify/buildJars/buildJars.ts +8 -8
  41. package/src/bin/keycloakify/buildJars/generatePom.ts +9 -9
  42. package/src/bin/keycloakify/generateFtl/generateFtl.ts +12 -12
  43. package/src/bin/keycloakify/generateSrcMainResources/bringInAccountV1.ts +7 -7
  44. package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResources.ts +9 -9
  45. package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForMainTheme.ts +25 -25
  46. package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForThemeVariant.ts +8 -8
  47. package/src/bin/keycloakify/generateStartKeycloakTestingContainer.ts +9 -9
  48. package/src/bin/keycloakify/keycloakify.ts +11 -11
  49. package/src/bin/keycloakify/replacers/replaceImportsInCssCode.ts +6 -6
  50. package/src/bin/keycloakify/replacers/replaceImportsInInlineCssCode.ts +7 -7
  51. package/src/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.ts +10 -10
  52. package/src/bin/keycloakify/replacers/replaceImportsInJsCode/vite.ts +13 -13
  53. package/src/bin/keycloakify/replacers/replaceImportsInJsCode/webpack.ts +11 -11
  54. package/src/bin/main.ts +2 -2
  55. package/src/bin/shared/{buildOptions.ts → buildContext.ts} +62 -51
  56. package/src/bin/shared/copyKeycloakResourcesToPublic.ts +12 -12
  57. package/src/bin/shared/downloadKeycloakDefaultTheme.ts +7 -7
  58. package/src/bin/shared/downloadKeycloakStaticResources.ts +7 -7
  59. package/src/bin/shared/generateKcGenTs.ts +12 -12
  60. package/src/bin/shared/getThemeSrcDirPath.ts +3 -3
  61. package/src/bin/start-keycloak/appBuild.ts +11 -11
  62. package/src/bin/start-keycloak/keycloakifyBuild.ts +7 -7
  63. package/src/bin/start-keycloak/start-keycloak.ts +34 -22
  64. package/src/bin/tools/getNpmWorkspaceRootDirPath.ts +3 -3
  65. package/src/bin/update-kc-gen.ts +3 -3
  66. package/src/lib/getKcClsx.ts +15 -1
  67. package/src/login/Fallback.tsx +1 -0
  68. package/src/login/UserProfileFormFields.tsx +2 -4
  69. package/src/login/i18n/i18n.tsx +1 -1
  70. package/src/login/pages/IdpReviewUserProfile.tsx +8 -2
  71. package/src/login/pages/LoginUpdateProfile.tsx +8 -2
  72. package/src/login/pages/Register.tsx +8 -2
  73. package/src/login/pages/UpdateEmail.tsx +8 -2
  74. package/src/vite-plugin/vite-plugin.ts +19 -19
  75. package/vite-plugin/index.js +91 -80
  76. package/vite-plugin/vite-plugin.d.ts +3 -3
  77. package/bin/795.index.js +0 -1198
  78. package/lib/isStorybook.d.ts +0 -1
  79. package/lib/isStorybook.js +0 -3
  80. package/lib/isStorybook.js.map +0 -1
  81. package/src/lib/isStorybook.ts +0 -3
@@ -1 +1 @@
1
- {"version":3,"file":"Register.js","sourceRoot":"","sources":["../../src/login/pages/Register.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAe,MAAM,8BAA8B,CAAC;AAItE,OAAO,EAAE,OAAO,EAAa,MAAM,SAAS,CAAC;AAM7C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAoB;IACjD,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC;IAEvF,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QACzB,eAAe;QACf,OAAO;KACV,CAAC,CAAC;IAEH,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,GAAG,SAAS,CAAC;IAE1G,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IACpC,MAAM,EAAE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: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
10
+ doMakeUserConfirmPassword: boolean;
10
11
  };
11
12
  export default function UpdateEmail(props: UpdateEmailProps): JSX.Element;
12
13
  export {};
@@ -3,7 +3,7 @@ import { useState } from "react";
3
3
  import { getKcClsx } from "../../login/lib/kcClsx";
4
4
  import { useI18n } from "../i18n";
5
5
  export default function UpdateEmail(props) {
6
- const { kcContext, doUseDefaultCss, Template, classes, UserProfileFormFields } = props;
6
+ const { kcContext, doUseDefaultCss, Template, classes, UserProfileFormFields, doMakeUserConfirmPassword } = props;
7
7
  const { kcClsx } = getKcClsx({
8
8
  doUseDefaultCss,
9
9
  classes
@@ -12,7 +12,7 @@ export default function UpdateEmail(props) {
12
12
  const { msg, msgStr } = i18n;
13
13
  const [isFormSubmittable, setIsFormSubmittable] = useState(false);
14
14
  const { url, messagesPerField, isAppInitiatedAction } = kcContext;
15
- return (_jsx(Template, Object.assign({ kcContext: kcContext, doUseDefaultCss: doUseDefaultCss, classes: classes, displayMessage: messagesPerField.exists("global"), displayRequiredFields: true, headerNode: msg("updateEmailTitle") }, { children: _jsxs("form", Object.assign({ id: "kc-update-email-form", className: kcClsx("kcFormClass"), action: url.loginAction, method: "post" }, { children: [_jsx(UserProfileFormFields, { kcContext: kcContext, kcClsx: kcClsx, onIsFormSubmittableValueChange: setIsFormSubmittable }), _jsxs("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: [_jsx("div", Object.assign({ id: "kc-form-options", className: kcClsx("kcFormOptionsClass") }, { children: _jsx("div", { className: kcClsx("kcFormOptionsWrapperClass") }) })), _jsx(LogoutOtherSessions, { kcClsx: kcClsx, i18n: i18n }), _jsxs("div", Object.assign({ id: "kc-form-buttons", className: kcClsx("kcFormButtonsClass") }, { children: [_jsx("input", { disabled: !isFormSubmittable, className: kcClsx("kcButtonClass", "kcButtonPrimaryClass", isAppInitiatedAction && "kcButtonBlockClass", "kcButtonLargeClass"), type: "submit", value: msgStr("doSubmit") }), isAppInitiatedAction && (_jsx("button", Object.assign({ className: kcClsx("kcButtonClass", "kcButtonDefaultClass", "kcButtonLargeClass"), type: "submit", name: "cancel-aia", value: "true" }, { children: msg("doCancel") })))] }))] }))] })) })));
15
+ return (_jsx(Template, Object.assign({ kcContext: kcContext, doUseDefaultCss: doUseDefaultCss, classes: classes, displayMessage: messagesPerField.exists("global"), displayRequiredFields: true, headerNode: msg("updateEmailTitle") }, { children: _jsxs("form", Object.assign({ id: "kc-update-email-form", className: kcClsx("kcFormClass"), action: url.loginAction, method: "post" }, { children: [_jsx(UserProfileFormFields, { kcContext: kcContext, kcClsx: kcClsx, onIsFormSubmittableValueChange: setIsFormSubmittable, doMakeUserConfirmPassword: doMakeUserConfirmPassword }), _jsxs("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: [_jsx("div", Object.assign({ id: "kc-form-options", className: kcClsx("kcFormOptionsClass") }, { children: _jsx("div", { className: kcClsx("kcFormOptionsWrapperClass") }) })), _jsx(LogoutOtherSessions, { kcClsx: kcClsx, i18n: i18n }), _jsxs("div", Object.assign({ id: "kc-form-buttons", className: kcClsx("kcFormButtonsClass") }, { children: [_jsx("input", { disabled: !isFormSubmittable, className: kcClsx("kcButtonClass", "kcButtonPrimaryClass", isAppInitiatedAction && "kcButtonBlockClass", "kcButtonLargeClass"), type: "submit", value: msgStr("doSubmit") }), isAppInitiatedAction && (_jsx("button", Object.assign({ className: kcClsx("kcButtonClass", "kcButtonDefaultClass", "kcButtonLargeClass"), type: "submit", name: "cancel-aia", value: "true" }, { children: msg("doCancel") })))] }))] }))] })) })));
16
16
  }
17
17
  function LogoutOtherSessions(props) {
18
18
  const { kcClsx, i18n } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateEmail.js","sourceRoot":"","sources":["../../src/login/pages/UpdateEmail.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAe,MAAM,8BA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EAAC,cAAc,EAAE,IAAI,GAAI,EACrG,GAAG,CAAC,qBAAqB,CAAC,IACvB,IACN,IACJ,IACJ,CACT,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "10.0.0-rc.38",
3
+ "version": "10.0.0-rc.39",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -172,9 +172,6 @@
172
172
  "lib/getKcClsx.d.ts",
173
173
  "lib/getKcClsx.js",
174
174
  "lib/getKcClsx.js.map",
175
- "lib/isStorybook.d.ts",
176
- "lib/isStorybook.js",
177
- "lib/isStorybook.js.map",
178
175
  "login/Fallback.d.ts",
179
176
  "login/Fallback.js",
180
177
  "login/Fallback.js.map",
@@ -487,7 +484,7 @@
487
484
  "src/bin/keycloakify/replacers/replaceImportsInJsCode/webpack.ts",
488
485
  "src/bin/main.ts",
489
486
  "src/bin/shared/KeycloakVersionRange.ts",
490
- "src/bin/shared/buildOptions.ts",
487
+ "src/bin/shared/buildContext.ts",
491
488
  "src/bin/shared/constants.ts",
492
489
  "src/bin/shared/copyKeycloakResourcesToPublic.ts",
493
490
  "src/bin/shared/downloadKeycloakDefaultTheme.ts",
@@ -534,7 +531,6 @@
534
531
  "src/bin/update-kc-gen.ts",
535
532
  "src/lib/BASE_URL.ts",
536
533
  "src/lib/getKcClsx.ts",
537
- "src/lib/isStorybook.ts",
538
534
  "src/login/Fallback.tsx",
539
535
  "src/login/KcContext/KcContext.ts",
540
536
  "src/login/KcContext/getKcContextMock.ts",
@@ -769,10 +765,10 @@
769
765
  "bin/main.js",
770
766
  "bin/180.index.js",
771
767
  "bin/193.index.js",
772
- "bin/21.index.js",
773
768
  "bin/214.index.js",
774
769
  "bin/246.index.js",
775
770
  "bin/3.index.js",
771
+ "bin/322.index.js",
776
772
  "bin/36.index.js",
777
773
  "bin/420.index.js",
778
774
  "bin/453.index.js",
@@ -782,12 +778,13 @@
782
778
  "bin/526.index.js",
783
779
  "bin/538.index.js",
784
780
  "bin/772.index.js",
785
- "bin/795.index.js",
786
781
  "bin/818.index.js",
787
782
  "bin/932.index.js",
788
783
  "bin/941.index.js",
784
+ "bin/944.index.js",
789
785
  "bin/961.index.js",
790
786
  "bin/97.index.js",
787
+ "bin/98.index.js",
791
788
  "bin/shared/constants.js",
792
789
  "bin/shared/constants.d.ts",
793
790
  "bin/shared/constants.js.map",
@@ -15,13 +15,13 @@ import { kebabCaseToCamelCase } from "./tools/kebabCaseToSnakeCase";
15
15
  import { assert, Equals } from "tsafe/assert";
16
16
  import { getThemeSrcDirPath } from "./shared/getThemeSrcDirPath";
17
17
  import type { CliCommandOptions } from "./main";
18
- import { readBuildOptions } from "./shared/buildOptions";
18
+ import { getBuildContext } from "./shared/buildContext";
19
19
  import chalk from "chalk";
20
20
 
21
21
  export async function command(params: { cliCommandOptions: CliCommandOptions }) {
22
22
  const { cliCommandOptions } = params;
23
23
 
24
- const buildOptions = readBuildOptions({
24
+ const buildContext = getBuildContext({
25
25
  cliCommandOptions
26
26
  });
27
27
 
@@ -54,7 +54,7 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
54
54
  console.log(`→ ${pageId}`);
55
55
 
56
56
  const { themeSrcDirPath } = getThemeSrcDirPath({
57
- reactAppRootDirPath: buildOptions.reactAppRootDirPath
57
+ projectDirPath: buildContext.projectDirPath
58
58
  });
59
59
 
60
60
  const componentBasename = capitalize(kebabCaseToCamelCase(pageId)).replace(
@@ -1,13 +1,13 @@
1
1
  import { copyKeycloakResourcesToPublic } from "./shared/copyKeycloakResourcesToPublic";
2
- import { readBuildOptions } from "./shared/buildOptions";
2
+ import { getBuildContext } from "./shared/buildContext";
3
3
  import type { CliCommandOptions } from "./main";
4
4
 
5
5
  export async function command(params: { cliCommandOptions: CliCommandOptions }) {
6
6
  const { cliCommandOptions } = params;
7
7
 
8
- const buildOptions = readBuildOptions({ cliCommandOptions });
8
+ const buildContext = getBuildContext({ cliCommandOptions });
9
9
 
10
10
  await copyKeycloakResourcesToPublic({
11
- buildOptions
11
+ buildContext
12
12
  });
13
13
  }
@@ -1,6 +1,6 @@
1
1
  import { join as pathJoin, relative as pathRelative, sep as pathSep } from "path";
2
2
  import { promptKeycloakVersion } from "./shared/promptKeycloakVersion";
3
- import { readBuildOptions } from "./shared/buildOptions";
3
+ import { getBuildContext } from "./shared/buildContext";
4
4
  import { downloadKeycloakDefaultTheme } from "./shared/downloadKeycloakDefaultTheme";
5
5
  import { transformCodebase } from "./tools/transformCodebase";
6
6
  import type { CliCommandOptions } from "./main";
@@ -9,7 +9,7 @@ import chalk from "chalk";
9
9
  export async function command(params: { cliCommandOptions: CliCommandOptions }) {
10
10
  const { cliCommandOptions } = params;
11
11
 
12
- const buildOptions = readBuildOptions({
12
+ const buildContext = getBuildContext({
13
13
  cliCommandOptions
14
14
  });
15
15
 
@@ -21,13 +21,13 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
21
21
 
22
22
  const { keycloakVersion } = await promptKeycloakVersion({
23
23
  startingFromMajor: undefined,
24
- cacheDirPath: buildOptions.cacheDirPath
24
+ cacheDirPath: buildContext.cacheDirPath
25
25
  });
26
26
 
27
27
  console.log(`→ ${keycloakVersion}`);
28
28
 
29
29
  const destDirPath = pathJoin(
30
- buildOptions.keycloakifyBuildDirPath,
30
+ buildContext.keycloakifyBuildDirPath,
31
31
  "src",
32
32
  "main",
33
33
  "resources",
@@ -51,7 +51,7 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
51
51
 
52
52
  const { defaultThemeDirPath } = await downloadKeycloakDefaultTheme({
53
53
  keycloakVersion,
54
- buildOptions
54
+ buildContext
55
55
  });
56
56
 
57
57
  transformCodebase({
@@ -17,13 +17,13 @@ import { kebabCaseToCamelCase } from "./tools/kebabCaseToSnakeCase";
17
17
  import { assert, Equals } from "tsafe/assert";
18
18
  import { getThemeSrcDirPath } from "./shared/getThemeSrcDirPath";
19
19
  import type { CliCommandOptions } from "./main";
20
- import { readBuildOptions } from "./shared/buildOptions";
20
+ import { getBuildContext } from "./shared/buildContext";
21
21
  import chalk from "chalk";
22
22
 
23
23
  export async function command(params: { cliCommandOptions: CliCommandOptions }) {
24
24
  const { cliCommandOptions } = params;
25
25
 
26
- const buildOptions = readBuildOptions({
26
+ const buildContext = getBuildContext({
27
27
  cliCommandOptions
28
28
  });
29
29
 
@@ -69,7 +69,7 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
69
69
  console.log(`→ ${pageIdOrComponent}`);
70
70
 
71
71
  const { themeSrcDirPath } = getThemeSrcDirPath({
72
- reactAppRootDirPath: buildOptions.reactAppRootDirPath
72
+ projectDirPath: buildContext.projectDirPath
73
73
  });
74
74
 
75
75
  const componentBasename = (() => {
@@ -2,7 +2,7 @@ import { downloadKeycloakDefaultTheme } from "./shared/downloadKeycloakDefaultTh
2
2
  import { join as pathJoin, relative as pathRelative } from "path";
3
3
  import { transformCodebase } from "./tools/transformCodebase";
4
4
  import { promptKeycloakVersion } from "./shared/promptKeycloakVersion";
5
- import { readBuildOptions } from "./shared/buildOptions";
5
+ import { getBuildContext } from "./shared/buildContext";
6
6
  import * as fs from "fs";
7
7
  import { getThemeSrcDirPath } from "./shared/getThemeSrcDirPath";
8
8
  import type { CliCommandOptions } from "./main";
@@ -10,10 +10,10 @@ import type { CliCommandOptions } from "./main";
10
10
  export async function command(params: { cliCommandOptions: CliCommandOptions }) {
11
11
  const { cliCommandOptions } = params;
12
12
 
13
- const buildOptions = readBuildOptions({ cliCommandOptions });
13
+ const buildContext = getBuildContext({ cliCommandOptions });
14
14
 
15
15
  const { themeSrcDirPath } = getThemeSrcDirPath({
16
- reactAppRootDirPath: buildOptions.reactAppRootDirPath
16
+ projectDirPath: buildContext.projectDirPath
17
17
  });
18
18
 
19
19
  const emailThemeSrcDirPath = pathJoin(themeSrcDirPath, "email");
@@ -34,12 +34,12 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
34
34
  const { keycloakVersion } = await promptKeycloakVersion({
35
35
  // NOTE: This is arbitrary
36
36
  startingFromMajor: 17,
37
- cacheDirPath: buildOptions.cacheDirPath
37
+ cacheDirPath: buildContext.cacheDirPath
38
38
  });
39
39
 
40
40
  const { defaultThemeDirPath } = await downloadKeycloakDefaultTheme({
41
41
  keycloakVersion,
42
- buildOptions
42
+ buildContext
43
43
  });
44
44
 
45
45
  transformCodebase({
@@ -5,12 +5,12 @@ import type {
5
5
  } from "./extensionVersions";
6
6
  import { join as pathJoin, dirname as pathDirname } from "path";
7
7
  import { transformCodebase } from "../../tools/transformCodebase";
8
- import type { BuildOptions } from "../../shared/buildOptions";
8
+ import type { BuildContext } from "../../shared/buildContext";
9
9
  import * as fs from "fs/promises";
10
10
  import { accountV1ThemeName } from "../../shared/constants";
11
11
  import {
12
12
  generatePom,
13
- BuildOptionsLike as BuildOptionsLike_generatePom
13
+ BuildContextLike as BuildContextLike_generatePom
14
14
  } from "./generatePom";
15
15
  import { readFileSync } from "fs";
16
16
  import { isInside } from "../../tools/isInside";
@@ -18,7 +18,7 @@ import child_process from "child_process";
18
18
  import { rmSync } from "../../tools/fs.rmSync";
19
19
  import { getMetaInfKeycloakThemesJsonFilePath } from "../../shared/metaInfKeycloakThemes";
20
20
 
21
- export type BuildOptionsLike = BuildOptionsLike_generatePom & {
21
+ export type BuildContextLike = BuildContextLike_generatePom & {
22
22
  keycloakifyBuildDirPath: string;
23
23
  themeNames: string[];
24
24
  artifactId: string;
@@ -26,23 +26,23 @@ export type BuildOptionsLike = BuildOptionsLike_generatePom & {
26
26
  cacheDirPath: string;
27
27
  };
28
28
 
29
- assert<BuildOptions extends BuildOptionsLike ? true : false>();
29
+ assert<BuildContext extends BuildContextLike ? true : false>();
30
30
 
31
31
  export async function buildJar(params: {
32
32
  jarFileBasename: string;
33
33
  keycloakAccountV1Version: KeycloakAccountV1Version;
34
34
  keycloakThemeAdditionalInfoExtensionVersion: KeycloakThemeAdditionalInfoExtensionVersion;
35
- buildOptions: BuildOptionsLike;
35
+ buildContext: BuildContextLike;
36
36
  }): Promise<void> {
37
37
  const {
38
38
  jarFileBasename,
39
39
  keycloakAccountV1Version,
40
40
  keycloakThemeAdditionalInfoExtensionVersion,
41
- buildOptions
41
+ buildContext
42
42
  } = params;
43
43
 
44
44
  const keycloakifyBuildTmpDirPath = pathJoin(
45
- buildOptions.cacheDirPath,
45
+ buildContext.cacheDirPath,
46
46
  jarFileBasename.replace(".jar", "")
47
47
  );
48
48
 
@@ -62,7 +62,7 @@ export async function buildJar(params: {
62
62
  return { modifiedSourceCode: sourceCode };
63
63
  }
64
64
 
65
- for (const themeName of [...buildOptions.themeNames, accountV1ThemeName]) {
65
+ for (const themeName of [...buildContext.themeNames, accountV1ThemeName]) {
66
66
  if (
67
67
  isInside({
68
68
  dirPath: pathJoin("src", "main", "resources", "theme", themeName),
@@ -125,7 +125,7 @@ export async function buildJar(params: {
125
125
  };
126
126
  }
127
127
 
128
- for (const themeName of buildOptions.themeNames) {
128
+ for (const themeName of buildContext.themeNames) {
129
129
  if (
130
130
  fileRelativePath ===
131
131
  pathJoin(
@@ -160,7 +160,7 @@ export async function buildJar(params: {
160
160
  };
161
161
 
162
162
  transformCodebase({
163
- srcDirPath: buildOptions.keycloakifyBuildDirPath,
163
+ srcDirPath: buildContext.keycloakifyBuildDirPath,
164
164
  destDirPath: keycloakifyBuildTmpDirPath,
165
165
  transformSourceCode: params => {
166
166
  const resultCommon = transformCodebase_common(params);
@@ -203,7 +203,7 @@ export async function buildJar(params: {
203
203
  }
204
204
 
205
205
  (["register.ftl", "login-update-profile.ftl"] as const).forEach(pageId =>
206
- buildOptions.themeNames.map(themeName => {
206
+ buildContext.themeNames.map(themeName => {
207
207
  const ftlFilePath = pathJoin(
208
208
  keycloakifyBuildTmpDirPath,
209
209
  "src",
@@ -244,7 +244,7 @@ export async function buildJar(params: {
244
244
 
245
245
  {
246
246
  const { pomFileCode } = generatePom({
247
- buildOptions,
247
+ buildContext,
248
248
  keycloakAccountV1Version,
249
249
  keycloakThemeAdditionalInfoExtensionVersion
250
250
  });
@@ -285,9 +285,9 @@ export async function buildJar(params: {
285
285
  pathJoin(
286
286
  keycloakifyBuildTmpDirPath,
287
287
  "target",
288
- `${buildOptions.artifactId}-${buildOptions.themeVersion}.jar`
288
+ `${buildContext.artifactId}-${buildContext.themeVersion}.jar`
289
289
  ),
290
- pathJoin(buildOptions.keycloakifyBuildDirPath, jarFileBasename)
290
+ pathJoin(buildContext.keycloakifyBuildDirPath, jarFileBasename)
291
291
  );
292
292
 
293
293
  rmSync(keycloakifyBuildTmpDirPath, { recursive: true });
@@ -5,25 +5,25 @@ import {
5
5
  keycloakThemeAdditionalInfoExtensionVersions
6
6
  } from "./extensionVersions";
7
7
  import { getKeycloakVersionRangeForJar } from "./getKeycloakVersionRangeForJar";
8
- import { buildJar, BuildOptionsLike as BuildOptionsLike_buildJar } from "./buildJar";
9
- import type { BuildOptions } from "../../shared/buildOptions";
8
+ import { buildJar, BuildContextLike as BuildContextLike_buildJar } from "./buildJar";
9
+ import type { BuildContext } from "../../shared/buildContext";
10
10
  import { getJarFileBasename } from "../../shared/getJarFileBasename";
11
11
  import { readMetaInfKeycloakThemes } from "../../shared/metaInfKeycloakThemes";
12
12
  import { accountV1ThemeName } from "../../shared/constants";
13
13
 
14
- export type BuildOptionsLike = BuildOptionsLike_buildJar & {
14
+ export type BuildContextLike = BuildContextLike_buildJar & {
15
15
  keycloakifyBuildDirPath: string;
16
16
  };
17
17
 
18
- assert<BuildOptions extends BuildOptionsLike ? true : false>();
18
+ assert<BuildContext extends BuildContextLike ? true : false>();
19
19
 
20
20
  export async function buildJars(params: {
21
- buildOptions: BuildOptionsLike;
21
+ buildContext: BuildContextLike;
22
22
  }): Promise<void> {
23
- const { buildOptions } = params;
23
+ const { buildContext } = params;
24
24
 
25
25
  const doesImplementAccountTheme = readMetaInfKeycloakThemes({
26
- keycloakifyBuildDirPath: buildOptions.keycloakifyBuildDirPath
26
+ keycloakifyBuildDirPath: buildContext.keycloakifyBuildDirPath
27
27
  }).themes.some(({ name }) => name === accountV1ThemeName);
28
28
 
29
29
  await Promise.all(
@@ -71,7 +71,7 @@ export async function buildJars(params: {
71
71
  jarFileBasename,
72
72
  keycloakAccountV1Version,
73
73
  keycloakThemeAdditionalInfoExtensionVersion,
74
- buildOptions
74
+ buildContext
75
75
  })
76
76
  )
77
77
  )
@@ -1,27 +1,27 @@
1
1
  import { assert } from "tsafe/assert";
2
- import type { BuildOptions } from "../../shared/buildOptions";
2
+ import type { BuildContext } from "../../shared/buildContext";
3
3
  import type {
4
4
  KeycloakAccountV1Version,
5
5
  KeycloakThemeAdditionalInfoExtensionVersion
6
6
  } from "./extensionVersions";
7
7
 
8
- export type BuildOptionsLike = {
8
+ export type BuildContextLike = {
9
9
  groupId: string;
10
10
  artifactId: string;
11
11
  themeVersion: string;
12
12
  };
13
13
 
14
- assert<BuildOptions extends BuildOptionsLike ? true : false>();
14
+ assert<BuildContext extends BuildContextLike ? true : false>();
15
15
 
16
16
  export function generatePom(params: {
17
17
  keycloakAccountV1Version: KeycloakAccountV1Version;
18
18
  keycloakThemeAdditionalInfoExtensionVersion: KeycloakThemeAdditionalInfoExtensionVersion;
19
- buildOptions: BuildOptionsLike;
19
+ buildContext: BuildContextLike;
20
20
  }) {
21
21
  const {
22
22
  keycloakAccountV1Version,
23
23
  keycloakThemeAdditionalInfoExtensionVersion,
24
- buildOptions
24
+ buildContext
25
25
  } = params;
26
26
 
27
27
  const { pomFileCode } = (function generatePomFileCode(): {
@@ -33,10 +33,10 @@ export function generatePom(params: {
33
33
  ` xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"`,
34
34
  ` xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">`,
35
35
  ` <modelVersion>4.0.0</modelVersion>`,
36
- ` <groupId>${buildOptions.groupId}</groupId>`,
37
- ` <artifactId>${buildOptions.artifactId}</artifactId>`,
38
- ` <version>${buildOptions.themeVersion}</version>`,
39
- ` <name>${buildOptions.artifactId}</name>`,
36
+ ` <groupId>${buildContext.groupId}</groupId>`,
37
+ ` <artifactId>${buildContext.artifactId}</artifactId>`,
38
+ ` <version>${buildContext.themeVersion}</version>`,
39
+ ` <name>${buildContext.artifactId}</name>`,
40
40
  ` <description />`,
41
41
  ` <packaging>jar</packaging>`,
42
42
  ` <properties>`,
@@ -4,7 +4,7 @@ import { generateCssCodeToDefineGlobals } from "../replacers/replaceImportsInCss
4
4
  import { replaceImportsInInlineCssCode } from "../replacers/replaceImportsInInlineCssCode";
5
5
  import * as fs from "fs";
6
6
  import { join as pathJoin } from "path";
7
- import type { BuildOptions } from "../../shared/buildOptions";
7
+ import type { BuildContext } from "../../shared/buildContext";
8
8
  import { assert } from "tsafe/assert";
9
9
  import {
10
10
  type ThemeType,
@@ -15,22 +15,22 @@ import {
15
15
  } from "../../shared/constants";
16
16
  import { getThisCodebaseRootDirPath } from "../../tools/getThisCodebaseRootDirPath";
17
17
 
18
- export type BuildOptionsLike = {
18
+ export type BuildContextLike = {
19
19
  bundler: "vite" | "webpack";
20
20
  themeVersion: string;
21
21
  urlPathname: string | undefined;
22
- reactAppBuildDirPath: string;
22
+ projectBuildDirPath: string;
23
23
  assetsDirPath: string;
24
24
  kcContextExclusionsFtlCode: string | undefined;
25
25
  };
26
26
 
27
- assert<BuildOptions extends BuildOptionsLike ? true : false>();
27
+ assert<BuildContext extends BuildContextLike ? true : false>();
28
28
 
29
29
  export function generateFtlFilesCodeFactory(params: {
30
30
  themeName: string;
31
31
  indexHtmlCode: string;
32
32
  cssGlobalsToDefine: Record<string, string>;
33
- buildOptions: BuildOptionsLike;
33
+ buildContext: BuildContextLike;
34
34
  keycloakifyVersion: string;
35
35
  themeType: ThemeType;
36
36
  fieldNames: string[];
@@ -39,7 +39,7 @@ export function generateFtlFilesCodeFactory(params: {
39
39
  themeName,
40
40
  cssGlobalsToDefine,
41
41
  indexHtmlCode,
42
- buildOptions,
42
+ buildContext,
43
43
  keycloakifyVersion,
44
44
  themeType,
45
45
  fieldNames
@@ -55,7 +55,7 @@ export function generateFtlFilesCodeFactory(params: {
55
55
 
56
56
  const { fixedJsCode } = replaceImportsInJsCode({
57
57
  jsCode,
58
- buildOptions
58
+ buildContext
59
59
  });
60
60
 
61
61
  $(element).text(fixedJsCode);
@@ -68,7 +68,7 @@ export function generateFtlFilesCodeFactory(params: {
68
68
 
69
69
  const { fixedCssCode } = replaceImportsInInlineCssCode({
70
70
  cssCode,
71
- buildOptions
71
+ buildContext
72
72
  });
73
73
 
74
74
  $(element).text(fixedCssCode);
@@ -91,7 +91,7 @@ export function generateFtlFilesCodeFactory(params: {
91
91
  attrName,
92
92
  href.replace(
93
93
  new RegExp(
94
- `^${(buildOptions.urlPathname ?? "/").replace(/\//g, "\\/")}`
94
+ `^${(buildContext.urlPathname ?? "/").replace(/\//g, "\\/")}`
95
95
  ),
96
96
  `\${url.resourcesPath}/${basenameOfTheKeycloakifyResourcesDir}/`
97
97
  )
@@ -106,7 +106,7 @@ export function generateFtlFilesCodeFactory(params: {
106
106
  "<style>",
107
107
  generateCssCodeToDefineGlobals({
108
108
  cssGlobalsToDefine,
109
- buildOptions
109
+ buildContext
110
110
  }).cssCodeToPrependInHead,
111
111
  "</style>",
112
112
  ""
@@ -134,7 +134,7 @@ export function generateFtlFilesCodeFactory(params: {
134
134
  fieldNames.map(name => `"${name}"`).join(", ")
135
135
  )
136
136
  .replace("KEYCLOAKIFY_VERSION_xEdKd3xEdr", keycloakifyVersion)
137
- .replace("KEYCLOAKIFY_THEME_VERSION_sIgKd3xEdr3dx", buildOptions.themeVersion)
137
+ .replace("KEYCLOAKIFY_THEME_VERSION_sIgKd3xEdr3dx", buildContext.themeVersion)
138
138
  .replace("KEYCLOAKIFY_THEME_TYPE_dExKd3xEdr", themeType)
139
139
  .replace("KEYCLOAKIFY_THEME_NAME_cXxKd3xEer", themeName)
140
140
  .replace("RESOURCES_COMMON_cLsLsMrtDkpVv", resources_common)
@@ -144,7 +144,7 @@ export function generateFtlFilesCodeFactory(params: {
144
144
  )
145
145
  .replace(
146
146
  "USER_DEFINED_EXCLUSIONS_eKsaY4ZsZ4eMr2",
147
- buildOptions.kcContextExclusionsFtlCode ?? ""
147
+ buildContext.kcContextExclusionsFtlCode ?? ""
148
148
  );
149
149
  const ftlObjectToJsCodeDeclaringAnObjectPlaceholder =
150
150
  '{ "x": "vIdLqMeOed9sdLdIdOxdK0d" }';
@@ -1,7 +1,7 @@
1
1
  import * as fs from "fs";
2
2
  import { join as pathJoin } from "path";
3
3
  import { assert } from "tsafe/assert";
4
- import type { BuildOptions } from "../../shared/buildOptions";
4
+ import type { BuildContext } from "../../shared/buildContext";
5
5
  import {
6
6
  resources_common,
7
7
  lastKeycloakVersionWithAccountV1,
@@ -10,24 +10,24 @@ import {
10
10
  import { downloadKeycloakDefaultTheme } from "../../shared/downloadKeycloakDefaultTheme";
11
11
  import { transformCodebase } from "../../tools/transformCodebase";
12
12
 
13
- export type BuildOptionsLike = {
13
+ export type BuildContextLike = {
14
14
  cacheDirPath: string;
15
15
  npmWorkspaceRootDirPath: string;
16
16
  keycloakifyBuildDirPath: string;
17
17
  };
18
18
 
19
- assert<BuildOptions extends BuildOptionsLike ? true : false>();
19
+ assert<BuildContext extends BuildContextLike ? true : false>();
20
20
 
21
- export async function bringInAccountV1(params: { buildOptions: BuildOptionsLike }) {
22
- const { buildOptions } = params;
21
+ export async function bringInAccountV1(params: { buildContext: BuildContextLike }) {
22
+ const { buildContext } = params;
23
23
 
24
24
  const { defaultThemeDirPath } = await downloadKeycloakDefaultTheme({
25
25
  keycloakVersion: lastKeycloakVersionWithAccountV1,
26
- buildOptions
26
+ buildContext
27
27
  });
28
28
 
29
29
  const accountV1DirPath = pathJoin(
30
- buildOptions.keycloakifyBuildDirPath,
30
+ buildContext.keycloakifyBuildDirPath,
31
31
  "src",
32
32
  "main",
33
33
  "resources",