keycloakify 10.0.0-rc.64 → 10.0.0-rc.65

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.
@@ -4344,7 +4344,7 @@ const containerName = "keycloak-keycloakify";
4344
4344
 
4345
4345
  /***/ }),
4346
4346
 
4347
- /***/ 8272:
4347
+ /***/ 4901:
4348
4348
  /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
4349
4349
 
4350
4350
  "use strict";
@@ -4807,38 +4807,29 @@ var SuccessTracker;
4807
4807
  ;// CONCATENATED MODULE: ./dist/bin/tools/downloadAndExtractArchive/index.js
4808
4808
 
4809
4809
  //# sourceMappingURL=index.js.map
4810
- ;// CONCATENATED MODULE: ./dist/bin/tools/isInside.js
4811
-
4812
- function isInside(params) {
4813
- const { dirPath, filePath } = params;
4814
- return !(0,external_path_.relative)(dirPath, filePath).startsWith("..");
4815
- }
4816
- //# sourceMappingURL=isInside.js.map
4817
4810
  ;// CONCATENATED MODULE: ./dist/bin/shared/downloadKeycloakDefaultTheme.js
4818
4811
 
4819
4812
 
4820
4813
 
4821
4814
 
4822
-
4823
4815
  (0,assert.assert)();
4824
4816
  async function downloadKeycloakDefaultTheme(params) {
4825
4817
  const { keycloakVersion, buildContext } = params;
4818
+ let kcNodeModulesKeepFilePaths = undefined;
4819
+ let kcNodeModulesKeepFilePaths_lastAccountV1 = undefined;
4826
4820
  const { extractedDirPath } = await downloadAndExtractArchive({
4827
4821
  url: `https://repo1.maven.org/maven2/org/keycloak/keycloak-themes/${keycloakVersion}/keycloak-themes-${keycloakVersion}.jar`,
4828
4822
  cacheDirPath: buildContext.cacheDirPath,
4829
4823
  npmWorkspaceRootDirPath: buildContext.npmWorkspaceRootDirPath,
4830
4824
  uniqueIdOfOnOnArchiveFile: "downloadKeycloakDefaultTheme",
4831
4825
  onArchiveFile: async (params) => {
4832
- if (!isInside({ dirPath: "theme", filePath: params.fileRelativePath })) {
4826
+ const fileRelativePath = (0,external_path_.relative)("theme", params.fileRelativePath);
4827
+ if (fileRelativePath.startsWith("..")) {
4833
4828
  return;
4834
4829
  }
4835
4830
  const { readFile, writeFile } = params;
4836
- const fileRelativePath = (0,external_path_.relative)("theme", params.fileRelativePath);
4837
4831
  skip_keycloak_v2: {
4838
- if (!isInside({
4839
- dirPath: (0,external_path_.join)("keycloak.v2"),
4840
- filePath: fileRelativePath
4841
- })) {
4832
+ if (!fileRelativePath.startsWith((0,external_path_.join)("keycloak.v2"))) {
4842
4833
  break skip_keycloak_v2;
4843
4834
  }
4844
4835
  return;
@@ -4847,6 +4838,39 @@ async function downloadKeycloakDefaultTheme(params) {
4847
4838
  if (constants.lastKeycloakVersionWithAccountV1 !== keycloakVersion) {
4848
4839
  break last_account_v1_transformations;
4849
4840
  }
4841
+ skip_web_modules: {
4842
+ if (!fileRelativePath.startsWith((0,external_path_.join)("keycloak", "common", "resources", "web_modules"))) {
4843
+ break skip_web_modules;
4844
+ }
4845
+ return;
4846
+ }
4847
+ skip_lib: {
4848
+ if (!fileRelativePath.startsWith((0,external_path_.join)("keycloak", "common", "resources", "lib"))) {
4849
+ break skip_lib;
4850
+ }
4851
+ return;
4852
+ }
4853
+ skip_node_modules: {
4854
+ if (!fileRelativePath.startsWith((0,external_path_.join)("keycloak", "common", "resources", "node_modules"))) {
4855
+ break skip_node_modules;
4856
+ }
4857
+ if (kcNodeModulesKeepFilePaths_lastAccountV1 === undefined) {
4858
+ kcNodeModulesKeepFilePaths_lastAccountV1 = [
4859
+ (0,external_path_.join)("patternfly", "dist", "css", "patternfly.min.css"),
4860
+ (0,external_path_.join)("patternfly", "dist", "css", "patternfly-additions.min.css"),
4861
+ (0,external_path_.join)("patternfly", "dist", "fonts", "OpenSans-Regular-webfont.woff2"),
4862
+ (0,external_path_.join)("patternfly", "dist", "fonts", "OpenSans-Bold-webfont.woff2"),
4863
+ (0,external_path_.join)("patternfly", "dist", "fonts", "OpenSans-Light-webfont.woff2"),
4864
+ (0,external_path_.join)("patternfly", "dist", "fonts", "OpenSans-Semibold-webfont.woff2")
4865
+ ];
4866
+ }
4867
+ for (const keepPath of kcNodeModulesKeepFilePaths_lastAccountV1) {
4868
+ if (fileRelativePath.endsWith(keepPath)) {
4869
+ break skip_node_modules;
4870
+ }
4871
+ }
4872
+ return;
4873
+ }
4850
4874
  patch_account_css: {
4851
4875
  if (fileRelativePath !==
4852
4876
  (0,external_path_.join)("keycloak", "account", "resources", "css", "account.css")) {
@@ -4860,69 +4884,44 @@ async function downloadKeycloakDefaultTheme(params) {
4860
4884
  });
4861
4885
  return;
4862
4886
  }
4863
- skip_web_modules: {
4864
- if (!isInside({
4865
- dirPath: (0,external_path_.join)("keycloak", "common", "resources", "web_modules"),
4866
- filePath: fileRelativePath
4867
- })) {
4868
- break skip_web_modules;
4869
- }
4870
- return;
4871
- }
4872
- skip_unused_node_modules: {
4873
- const nodeModulesDirPath = (0,external_path_.join)("keycloak", "common", "resources", "node_modules");
4874
- if (!isInside({
4875
- dirPath: nodeModulesDirPath,
4876
- filePath: fileRelativePath
4877
- })) {
4878
- break skip_unused_node_modules;
4879
- }
4880
- const toKeepPrefixes = [
4881
- ...[
4882
- "patternfly.min.css",
4883
- "patternfly-additions.min.css",
4884
- "patternfly-additions.min.css"
4885
- ].map(fileBasename => (0,external_path_.join)(nodeModulesDirPath, "patternfly", "dist", "css", fileBasename)),
4886
- (0,external_path_.join)(nodeModulesDirPath, "patternfly", "dist", "fonts")
4887
- ];
4888
- if (toKeepPrefixes.find(prefix => fileRelativePath.startsWith(prefix)) !== undefined) {
4889
- break skip_unused_node_modules;
4890
- }
4891
- return;
4892
- }
4893
4887
  }
4894
4888
  skip_unused_resources: {
4895
4889
  if (keycloakVersion !== "24.0.4") {
4896
4890
  break skip_unused_resources;
4897
4891
  }
4898
- for (const dirBasename of [
4899
- "@patternfly-v5",
4900
- "@rollup",
4901
- "rollup",
4902
- "react",
4903
- "react-dom",
4904
- "shx",
4905
- ".pnpm"
4906
- ]) {
4907
- if (isInside({
4908
- dirPath: (0,external_path_.join)("keycloak", "common", "resources", "node_modules", dirBasename),
4909
- filePath: fileRelativePath
4910
- })) {
4911
- return;
4892
+ skip_node_modules: {
4893
+ if (!fileRelativePath.startsWith((0,external_path_.join)("keycloak", "common", "resources", "node_modules"))) {
4894
+ break skip_node_modules;
4912
4895
  }
4896
+ if (kcNodeModulesKeepFilePaths === undefined) {
4897
+ kcNodeModulesKeepFilePaths = [
4898
+ (0,external_path_.join)("@patternfly", "patternfly", "patternfly.min.css"),
4899
+ (0,external_path_.join)("patternfly", "dist", "css", "patternfly.min.css"),
4900
+ (0,external_path_.join)("patternfly", "dist", "css", "patternfly-additions.min.css"),
4901
+ (0,external_path_.join)("patternfly", "dist", "fonts", "OpenSans-Regular-webfont.woff2"),
4902
+ (0,external_path_.join)("patternfly", "dist", "fonts", "OpenSans-Light-webfont.woff2"),
4903
+ (0,external_path_.join)("patternfly", "dist", "fonts", "fontawesome-webfont.woff2"),
4904
+ (0,external_path_.join)("jquery", "dist", "jquery.min.js")
4905
+ ];
4906
+ }
4907
+ for (const keepPath of kcNodeModulesKeepFilePaths) {
4908
+ if (fileRelativePath.endsWith(keepPath)) {
4909
+ break skip_node_modules;
4910
+ }
4911
+ }
4912
+ return;
4913
4913
  }
4914
- for (const dirBasename of ["react", "react-dom"]) {
4915
- if (isInside({
4916
- dirPath: (0,external_path_.join)("keycloak", "common", "resources", "vendor", dirBasename),
4917
- filePath: fileRelativePath
4918
- })) {
4919
- return;
4914
+ skip_vendor: {
4915
+ if (!fileRelativePath.startsWith((0,external_path_.join)("keycloak", "common", "resources", "vendor"))) {
4916
+ break skip_vendor;
4920
4917
  }
4918
+ return;
4921
4919
  }
4922
- if (isInside({
4923
- dirPath: (0,external_path_.join)("keycloak", "common", "resources", "node_modules", "@patternfly", "react-core"),
4924
- filePath: fileRelativePath
4925
- })) {
4920
+ skip_rollup_config: {
4921
+ if (fileRelativePath !==
4922
+ (0,external_path_.join)("keycloak", "common", "resources", "rollup.config.js")) {
4923
+ break skip_rollup_config;
4924
+ }
4926
4925
  return;
4927
4926
  }
4928
4927
  }
@@ -5430,7 +5429,7 @@ const path_1 = __nccwpck_require__(1017);
5430
5429
  const constants_1 = __nccwpck_require__(173);
5431
5430
  const id_1 = __nccwpck_require__(3047);
5432
5431
  const fs_rm_1 = __nccwpck_require__(8699);
5433
- const copyKeycloakResourcesToPublic_1 = __nccwpck_require__(8272);
5432
+ const copyKeycloakResourcesToPublic_1 = __nccwpck_require__(4901);
5434
5433
  const assert_1 = __nccwpck_require__(8078);
5435
5434
  const buildContext_1 = __nccwpck_require__(8355);
5436
5435
  const magic_string_1 = __importDefault(__nccwpck_require__(5734));