keycloakify 10.0.0-rc.118 → 10.0.0-rc.119
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/{490.index.js → 246.index.js} +20 -2
- package/bin/31.index.js +151 -159
- package/bin/440.index.js +27 -22
- package/bin/526.index.js +168 -56
- package/bin/599.index.js +560 -0
- package/bin/622.index.js +4 -2
- package/bin/{36.index.js → 678.index.js} +577 -71
- package/bin/{180.index.js → 697.index.js} +611 -526
- package/bin/743.index.js +70 -0
- package/bin/780.index.js +729 -0
- package/bin/932.index.js +725 -48
- package/bin/{966.index.js → 941.index.js} +2 -19
- package/bin/main.js +19 -7
- package/bin/shared/buildContext.d.ts +28 -19
- package/bin/shared/buildContext.js.map +1 -1
- package/bin/shared/getLatestsSemVersionedTag.d.ts +10 -0
- package/bin/shared/getLatestsSemVersionedTag.js.map +1 -0
- package/bin/shared/promptKeycloakVersion.js.map +1 -1
- package/package.json +24 -5
- package/src/bin/initialize-account-theme/copyBoilerplate.ts +32 -0
- package/src/bin/initialize-account-theme/index.ts +1 -0
- package/src/bin/initialize-account-theme/initialize-account-theme.ts +95 -0
- package/src/bin/initialize-account-theme/initializeAccountTheme_multiPage.ts +21 -0
- package/src/bin/initialize-account-theme/initializeAccountTheme_singlePage.ts +150 -0
- package/src/bin/initialize-account-theme/src/multi-page/KcContext.ts +12 -0
- package/src/bin/initialize-account-theme/src/multi-page/KcPage.tsx +25 -0
- package/src/bin/initialize-account-theme/src/multi-page/KcPageStory.tsx +38 -0
- package/src/bin/initialize-account-theme/src/multi-page/i18n.ts +5 -0
- package/src/bin/initialize-account-theme/src/single-page/KcContext.ts +7 -0
- package/src/bin/initialize-account-theme/src/single-page/KcPage.tsx +11 -0
- package/src/bin/initialize-account-theme/updateAccountThemeImplementationInConfig.ts +92 -0
- package/src/bin/keycloakify/buildJars/buildJar.ts +2 -2
- package/src/bin/keycloakify/buildJars/buildJars.ts +3 -4
- package/src/bin/keycloakify/generateResources/generateResourcesForMainTheme.ts +26 -20
- package/src/bin/keycloakify/keycloakify.ts +1 -1
- package/src/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.ts +2 -2
- package/src/bin/main.ts +14 -0
- package/src/bin/shared/buildContext.ts +246 -225
- package/src/bin/shared/getLatestsSemVersionedTag.ts +180 -0
- package/src/bin/shared/promptKeycloakVersion.ts +8 -77
- package/src/bin/start-keycloak/appBuild.ts +13 -9
- package/src/bin/tools/downloadAndExtractArchive.ts +4 -2
- package/src/bin/tools/npmInstall.ts +63 -0
- package/src/bin/tools/octokit-addons/getLatestsSemVersionedTag.ts +3 -2
- package/src/bin/tsconfig.json +3 -1
- package/src/vite-plugin/vite-plugin.ts +7 -5
- package/vite-plugin/index.js +156 -180
- package/vite-plugin/vite-plugin.d.ts +6 -4
package/bin/743.index.js
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
"use strict";
|
2
|
+
exports.id = 743;
|
3
|
+
exports.ids = [743];
|
4
|
+
exports.modules = {
|
5
|
+
|
6
|
+
/***/ 81434:
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
8
|
+
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
10
|
+
/* harmony export */ "T": () => (/* binding */ copyBoilerplate)
|
11
|
+
/* harmony export */ });
|
12
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57147);
|
13
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
|
14
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
|
15
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
16
|
+
/* harmony import */ var _tools_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58822);
|
17
|
+
/* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88078);
|
18
|
+
/* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(tsafe_assert__WEBPACK_IMPORTED_MODULE_3__);
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
function copyBoilerplate(params) {
|
24
|
+
const { accountThemeType, accountThemeSrcDirPath } = params;
|
25
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.cpSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_tools_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_2__/* .getThisCodebaseRootDirPath */ .e)(), "src", "bin", "initialize-account-theme", "src", (() => {
|
26
|
+
switch (accountThemeType) {
|
27
|
+
case "Single-Page":
|
28
|
+
return "single-page";
|
29
|
+
case "Multi-Page":
|
30
|
+
return "multi-page";
|
31
|
+
}
|
32
|
+
(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.assert)(false);
|
33
|
+
})()), accountThemeSrcDirPath, { recursive: true });
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=copyBoilerplate.js.map
|
36
|
+
|
37
|
+
/***/ }),
|
38
|
+
|
39
|
+
/***/ 22743:
|
40
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
41
|
+
|
42
|
+
__webpack_require__.r(__webpack_exports__);
|
43
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
44
|
+
/* harmony export */ "initializeAccountTheme_multiPage": () => (/* binding */ initializeAccountTheme_multiPage)
|
45
|
+
/* harmony export */ });
|
46
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71017);
|
47
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
|
48
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78818);
|
49
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_1__);
|
50
|
+
/* harmony import */ var _copyBoilerplate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81434);
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
async function initializeAccountTheme_multiPage(params) {
|
55
|
+
const { accountThemeSrcDirPath } = params;
|
56
|
+
(0,_copyBoilerplate__WEBPACK_IMPORTED_MODULE_2__/* .copyBoilerplate */ .T)({
|
57
|
+
accountThemeType: "Multi-Page",
|
58
|
+
accountThemeSrcDirPath
|
59
|
+
});
|
60
|
+
console.log([
|
61
|
+
chalk__WEBPACK_IMPORTED_MODULE_1___default().green("The Multi-Page account theme has been initialized."),
|
62
|
+
`Directory created: ${chalk__WEBPACK_IMPORTED_MODULE_1___default().bold((0,path__WEBPACK_IMPORTED_MODULE_0__.relative)(process.cwd(), accountThemeSrcDirPath))}`
|
63
|
+
].join("\n"));
|
64
|
+
}
|
65
|
+
//# sourceMappingURL=initializeAccountTheme_multiPage.js.map
|
66
|
+
|
67
|
+
/***/ })
|
68
|
+
|
69
|
+
};
|
70
|
+
;
|