keycloakify 10.0.0-rc.57 → 10.0.0-rc.58
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/{3.index.js → 952.index.js} +23 -23
- package/bin/main.js +1 -1
- package/package.json +10 -10
- package/src/bin/keycloakify/{generateSrcMainResources/generateSrcMainResources.ts → generateResources/generateResources.ts} +8 -8
- package/src/bin/keycloakify/{generateSrcMainResources/generateSrcMainResourcesForMainTheme.ts → generateResources/generateResourcesForMainTheme.ts} +2 -2
- package/src/bin/keycloakify/{generateSrcMainResources/generateSrcMainResourcesForThemeVariant.ts → generateResources/generateResourcesForThemeVariant.ts} +1 -1
- package/src/bin/keycloakify/generateResources/index.ts +1 -0
- package/src/bin/keycloakify/keycloakify.ts +2 -2
- package/src/bin/keycloakify/generateSrcMainResources/index.ts +0 -1
- /package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/bringInAccountV1.ts +0 -0
- /package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/generateMessageProperties.ts +0 -0
- /package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/readExtraPageNames.ts +0 -0
- /package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/readFieldNameUsage.ts +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
exports.id =
|
3
|
-
exports.ids = [
|
2
|
+
exports.id = 952;
|
3
|
+
exports.ids = [952];
|
4
4
|
exports.modules = {
|
5
5
|
|
6
|
-
/***/
|
6
|
+
/***/ 73817:
|
7
7
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
8
8
|
|
9
9
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
@@ -155,7 +155,7 @@ function generateMessageProperties(params) {
|
|
155
155
|
|
156
156
|
/***/ }),
|
157
157
|
|
158
|
-
/***/
|
158
|
+
/***/ 24952:
|
159
159
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
160
160
|
|
161
161
|
// ESM COMPAT FLAG
|
@@ -521,7 +521,7 @@ var isInside = __webpack_require__(90665);
|
|
521
521
|
var downloadKeycloakStaticResources = __webpack_require__(62190);
|
522
522
|
// EXTERNAL MODULE: ./dist/bin/tools/crawl.js
|
523
523
|
var crawl = __webpack_require__(73036);
|
524
|
-
;// CONCATENATED MODULE: ./dist/bin/keycloakify/
|
524
|
+
;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateResources/readFieldNameUsage.js
|
525
525
|
|
526
526
|
|
527
527
|
|
@@ -589,7 +589,7 @@ function readFieldNameUsage(params) {
|
|
589
589
|
var id = __webpack_require__(43047);
|
590
590
|
// EXTERNAL MODULE: ./node_modules/evt/tools/reducers/removeDuplicates.js
|
591
591
|
var removeDuplicates = __webpack_require__(78300);
|
592
|
-
;// CONCATENATED MODULE: ./dist/bin/keycloakify/
|
592
|
+
;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateResources/readExtraPageNames.js
|
593
593
|
|
594
594
|
|
595
595
|
|
@@ -621,11 +621,11 @@ function readExtraPagesNames(params) {
|
|
621
621
|
});
|
622
622
|
}
|
623
623
|
//# sourceMappingURL=readExtraPageNames.js.map
|
624
|
-
// EXTERNAL MODULE: ./dist/bin/keycloakify/
|
625
|
-
var generateMessageProperties = __webpack_require__(
|
624
|
+
// EXTERNAL MODULE: ./dist/bin/keycloakify/generateResources/generateMessageProperties.js
|
625
|
+
var generateMessageProperties = __webpack_require__(73817);
|
626
626
|
// EXTERNAL MODULE: ./dist/bin/shared/downloadKeycloakDefaultTheme.js + 3 modules
|
627
627
|
var downloadKeycloakDefaultTheme = __webpack_require__(47802);
|
628
|
-
;// CONCATENATED MODULE: ./dist/bin/keycloakify/
|
628
|
+
;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateResources/bringInAccountV1.js
|
629
629
|
|
630
630
|
|
631
631
|
|
@@ -693,7 +693,7 @@ var shared_metaInfKeycloakThemes = __webpack_require__(26914);
|
|
693
693
|
var objectEntries = __webpack_require__(39612);
|
694
694
|
// EXTERNAL MODULE: ./dist/bin/tools/escapeStringForPropertiesFile.js
|
695
695
|
var escapeStringForPropertiesFile = __webpack_require__(27190);
|
696
|
-
;// CONCATENATED MODULE: ./dist/bin/keycloakify/
|
696
|
+
;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateResources/generateResourcesForMainTheme.js
|
697
697
|
|
698
698
|
|
699
699
|
|
@@ -715,7 +715,7 @@ var escapeStringForPropertiesFile = __webpack_require__(27190);
|
|
715
715
|
|
716
716
|
|
717
717
|
(0,assert.assert)();
|
718
|
-
async function
|
718
|
+
async function generateResourcesForMainTheme(params) {
|
719
719
|
var _a;
|
720
720
|
const { themeName, resourcesDirPath, buildContext } = params;
|
721
721
|
const { themeSrcDirPath } = (0,getThemeSrcDirPath/* getThemeSrcDirPath */.f)({
|
@@ -852,7 +852,7 @@ async function generateSrcMainResourcesForMainTheme(params) {
|
|
852
852
|
(0,assert.assert)(false);
|
853
853
|
})()}`,
|
854
854
|
...((_a = buildContext.extraThemeProperties) !== null && _a !== void 0 ? _a : []),
|
855
|
-
buildContext.environmentVariables.map(({ name, default: defaultValue }) => `${name}=\${env.${name}:${(0,escapeStringForPropertiesFile/* escapeStringForPropertiesFile */.y)(defaultValue)}}`)
|
855
|
+
...buildContext.environmentVariables.map(({ name, default: defaultValue }) => `${name}=\${env.${name}:${(0,escapeStringForPropertiesFile/* escapeStringForPropertiesFile */.y)(defaultValue)}}`)
|
856
856
|
].join("\n\n"), "utf8"));
|
857
857
|
}
|
858
858
|
email: {
|
@@ -892,14 +892,14 @@ async function generateSrcMainResourcesForMainTheme(params) {
|
|
892
892
|
});
|
893
893
|
}
|
894
894
|
}
|
895
|
-
//# sourceMappingURL=
|
896
|
-
;// CONCATENATED MODULE: ./dist/bin/keycloakify/
|
895
|
+
//# sourceMappingURL=generateResourcesForMainTheme.js.map
|
896
|
+
;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateResources/generateResourcesForThemeVariant.js
|
897
897
|
|
898
898
|
|
899
899
|
|
900
900
|
|
901
901
|
(0,assert.assert)();
|
902
|
-
function
|
902
|
+
function generateResourcesForThemeVariant(params) {
|
903
903
|
const { resourcesDirPath, themeName, themeVariantName } = params;
|
904
904
|
const mainThemeDirPath = (0,external_path_.join)(resourcesDirPath, "theme", themeName);
|
905
905
|
(0,transformCodebase/* transformCodebase */.N)({
|
@@ -935,35 +935,35 @@ function generateSrcMainResourcesForThemeVariant(params) {
|
|
935
935
|
});
|
936
936
|
}
|
937
937
|
}
|
938
|
-
//# sourceMappingURL=
|
939
|
-
;// CONCATENATED MODULE: ./dist/bin/keycloakify/
|
938
|
+
//# sourceMappingURL=generateResourcesForThemeVariant.js.map
|
939
|
+
;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateResources/generateResources.js
|
940
940
|
|
941
941
|
|
942
942
|
|
943
943
|
|
944
944
|
|
945
945
|
(0,assert.assert)();
|
946
|
-
async function
|
946
|
+
async function generateResources(params) {
|
947
947
|
const { resourcesDirPath, buildContext } = params;
|
948
948
|
const [themeName, ...themeVariantNames] = buildContext.themeNames;
|
949
949
|
if (external_fs_default().existsSync(resourcesDirPath)) {
|
950
950
|
(0,fs_rmSync/* rmSync */.a)(resourcesDirPath, { recursive: true });
|
951
951
|
}
|
952
|
-
await
|
952
|
+
await generateResourcesForMainTheme({
|
953
953
|
resourcesDirPath,
|
954
954
|
themeName,
|
955
955
|
buildContext
|
956
956
|
});
|
957
957
|
for (const themeVariantName of themeVariantNames) {
|
958
|
-
|
958
|
+
generateResourcesForThemeVariant({
|
959
959
|
resourcesDirPath,
|
960
960
|
themeName,
|
961
961
|
themeVariantName
|
962
962
|
});
|
963
963
|
}
|
964
964
|
}
|
965
|
-
//# sourceMappingURL=
|
966
|
-
;// CONCATENATED MODULE: ./dist/bin/keycloakify/
|
965
|
+
//# sourceMappingURL=generateResources.js.map
|
966
|
+
;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateResources/index.js
|
967
967
|
|
968
968
|
//# sourceMappingURL=index.js.map
|
969
969
|
// EXTERNAL MODULE: external "child_process"
|
@@ -1342,7 +1342,7 @@ async function command(params) {
|
|
1342
1342
|
external_fs_.writeFileSync((0,external_path_.join)(buildContext.keycloakifyBuildDirPath, ".gitignore"), Buffer.from("*", "utf8"));
|
1343
1343
|
}
|
1344
1344
|
const resourcesDirPath = (0,external_path_.join)(buildContext.keycloakifyBuildDirPath, "resources");
|
1345
|
-
await
|
1345
|
+
await generateResources({
|
1346
1346
|
resourcesDirPath,
|
1347
1347
|
buildContext
|
1348
1348
|
});
|
package/bin/main.js
CHANGED
@@ -9213,7 +9213,7 @@ program
|
|
9213
9213
|
.task({
|
9214
9214
|
skip,
|
9215
9215
|
handler: async (cliCommandOptions) => {
|
9216
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(941), __nccwpck_require__.e(214), __nccwpck_require__.e(818), __nccwpck_require__.e(525), __nccwpck_require__.e(246), __nccwpck_require__.e(991), __nccwpck_require__.e(190), __nccwpck_require__.e(
|
9216
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(941), __nccwpck_require__.e(214), __nccwpck_require__.e(818), __nccwpck_require__.e(525), __nccwpck_require__.e(246), __nccwpck_require__.e(991), __nccwpck_require__.e(190), __nccwpck_require__.e(952)]).then(__nccwpck_require__.bind(__nccwpck_require__, 24952));
|
9217
9217
|
await command({ cliCommandOptions });
|
9218
9218
|
}
|
9219
9219
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "keycloakify",
|
3
|
-
"version": "10.0.0-rc.
|
3
|
+
"version": "10.0.0-rc.58",
|
4
4
|
"description": "Create Keycloak themes using React",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -467,14 +467,14 @@
|
|
467
467
|
"src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl",
|
468
468
|
"src/bin/keycloakify/generateFtl/generateFtl.ts",
|
469
469
|
"src/bin/keycloakify/generateFtl/index.ts",
|
470
|
-
"src/bin/keycloakify/
|
471
|
-
"src/bin/keycloakify/
|
472
|
-
"src/bin/keycloakify/
|
473
|
-
"src/bin/keycloakify/
|
474
|
-
"src/bin/keycloakify/
|
475
|
-
"src/bin/keycloakify/
|
476
|
-
"src/bin/keycloakify/
|
477
|
-
"src/bin/keycloakify/
|
470
|
+
"src/bin/keycloakify/generateResources/bringInAccountV1.ts",
|
471
|
+
"src/bin/keycloakify/generateResources/generateMessageProperties.ts",
|
472
|
+
"src/bin/keycloakify/generateResources/generateResources.ts",
|
473
|
+
"src/bin/keycloakify/generateResources/generateResourcesForMainTheme.ts",
|
474
|
+
"src/bin/keycloakify/generateResources/generateResourcesForThemeVariant.ts",
|
475
|
+
"src/bin/keycloakify/generateResources/index.ts",
|
476
|
+
"src/bin/keycloakify/generateResources/readExtraPageNames.ts",
|
477
|
+
"src/bin/keycloakify/generateResources/readFieldNameUsage.ts",
|
478
478
|
"src/bin/keycloakify/index.ts",
|
479
479
|
"src/bin/keycloakify/keycloakify.ts",
|
480
480
|
"src/bin/keycloakify/replacers/replaceImportsInCssCode.ts",
|
@@ -775,7 +775,6 @@
|
|
775
775
|
"bin/193.index.js",
|
776
776
|
"bin/214.index.js",
|
777
777
|
"bin/246.index.js",
|
778
|
-
"bin/3.index.js",
|
779
778
|
"bin/36.index.js",
|
780
779
|
"bin/420.index.js",
|
781
780
|
"bin/453.index.js",
|
@@ -788,6 +787,7 @@
|
|
788
787
|
"bin/818.index.js",
|
789
788
|
"bin/932.index.js",
|
790
789
|
"bin/941.index.js",
|
790
|
+
"bin/952.index.js",
|
791
791
|
"bin/97.index.js",
|
792
792
|
"bin/98.index.js",
|
793
793
|
"bin/991.index.js",
|
@@ -1,20 +1,20 @@
|
|
1
1
|
import type { BuildContext } from "../../shared/buildContext";
|
2
2
|
import { assert } from "tsafe/assert";
|
3
3
|
import {
|
4
|
-
|
5
|
-
type BuildContextLike as
|
6
|
-
} from "./
|
7
|
-
import {
|
4
|
+
generateResourcesForMainTheme,
|
5
|
+
type BuildContextLike as BuildContextLike_generateResourcesForMainTheme
|
6
|
+
} from "./generateResourcesForMainTheme";
|
7
|
+
import { generateResourcesForThemeVariant } from "./generateResourcesForThemeVariant";
|
8
8
|
import fs from "fs";
|
9
9
|
import { rmSync } from "../../tools/fs.rmSync";
|
10
10
|
|
11
|
-
export type BuildContextLike =
|
11
|
+
export type BuildContextLike = BuildContextLike_generateResourcesForMainTheme & {
|
12
12
|
themeNames: string[];
|
13
13
|
};
|
14
14
|
|
15
15
|
assert<BuildContext extends BuildContextLike ? true : false>();
|
16
16
|
|
17
|
-
export async function
|
17
|
+
export async function generateResources(params: {
|
18
18
|
buildContext: BuildContextLike;
|
19
19
|
resourcesDirPath: string;
|
20
20
|
}): Promise<void> {
|
@@ -26,14 +26,14 @@ export async function generateSrcMainResources(params: {
|
|
26
26
|
rmSync(resourcesDirPath, { recursive: true });
|
27
27
|
}
|
28
28
|
|
29
|
-
await
|
29
|
+
await generateResourcesForMainTheme({
|
30
30
|
resourcesDirPath,
|
31
31
|
themeName,
|
32
32
|
buildContext
|
33
33
|
});
|
34
34
|
|
35
35
|
for (const themeVariantName of themeVariantNames) {
|
36
|
-
|
36
|
+
generateResourcesForThemeVariant({
|
37
37
|
resourcesDirPath,
|
38
38
|
themeName,
|
39
39
|
themeVariantName
|
@@ -52,7 +52,7 @@ export type BuildContextLike = BuildContextLike_kcContextExclusionsFtlCode &
|
|
52
52
|
|
53
53
|
assert<BuildContext extends BuildContextLike ? true : false>();
|
54
54
|
|
55
|
-
export async function
|
55
|
+
export async function generateResourcesForMainTheme(params: {
|
56
56
|
themeName: string;
|
57
57
|
resourcesDirPath: string;
|
58
58
|
buildContext: BuildContextLike;
|
@@ -251,7 +251,7 @@ export async function generateSrcMainResourcesForMainTheme(params: {
|
|
251
251
|
assert<Equals<typeof themeType, never>>(false);
|
252
252
|
})()}`,
|
253
253
|
...(buildContext.extraThemeProperties ?? []),
|
254
|
-
buildContext.environmentVariables.map(
|
254
|
+
...buildContext.environmentVariables.map(
|
255
255
|
({ name, default: defaultValue }) =>
|
256
256
|
`${name}=\${env.${name}:${escapeStringForPropertiesFile(defaultValue)}}`
|
257
257
|
)
|
@@ -13,7 +13,7 @@ export type BuildContextLike = {
|
|
13
13
|
|
14
14
|
assert<BuildContext extends BuildContextLike ? true : false>();
|
15
15
|
|
16
|
-
export function
|
16
|
+
export function generateResourcesForThemeVariant(params: {
|
17
17
|
resourcesDirPath: string;
|
18
18
|
themeName: string;
|
19
19
|
themeVariantName: string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./generateResources";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { generateResources } from "./generateResources";
|
2
2
|
import { join as pathJoin, relative as pathRelative, sep as pathSep } from "path";
|
3
3
|
import * as child_process from "child_process";
|
4
4
|
import * as fs from "fs";
|
@@ -82,7 +82,7 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
|
|
82
82
|
|
83
83
|
const resourcesDirPath = pathJoin(buildContext.keycloakifyBuildDirPath, "resources");
|
84
84
|
|
85
|
-
await
|
85
|
+
await generateResources({
|
86
86
|
resourcesDirPath,
|
87
87
|
buildContext
|
88
88
|
});
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./generateSrcMainResources";
|
/package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/bringInAccountV1.ts
RENAMED
File without changes
|
File without changes
|
/package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/readExtraPageNames.ts
RENAMED
File without changes
|
/package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/readFieldNameUsage.ts
RENAMED
File without changes
|