keycloakify 11.4.4 → 11.5.0
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/account/i18n/withJsx/GenericI18n.d.ts +1 -1
- package/account/i18n/withJsx/GenericI18n.js.map +1 -1
- package/account/i18n/withJsx/useI18n.js.map +1 -1
- package/account/pages/PageProps.d.ts +1 -1
- package/bin/375.index.js +4089 -0
- package/bin/{20.index.js → 490.index.js} +378 -56
- package/bin/{36.index.js → 503.index.js} +53 -2
- package/bin/{450.index.js → 525.index.js} +2 -4085
- package/bin/653.index.js +108 -110
- package/bin/682.index.js +1885 -0
- package/bin/735.index.js +107 -109
- package/bin/921.index.js +1 -1
- package/bin/main.js +8 -2
- package/bin/shared/constants.d.ts +3 -0
- package/bin/shared/constants.js +3 -0
- package/bin/shared/constants.js.map +1 -1
- package/bin/start-keycloak/getSupportedDockerImageTags.d.ts +8 -0
- package/bin/start-keycloak/realmConfig/ParsedRealmJson.d.ts +38 -0
- package/bin/start-keycloak/realmConfig/defaultConfig/defaultConfig.d.ts +8 -0
- package/bin/start-keycloak/realmConfig/defaultConfig/index.d.ts +1 -0
- package/bin/start-keycloak/realmConfig/dumpContainerConfig.d.ts +9 -0
- package/bin/start-keycloak/realmConfig/index.d.ts +1 -0
- package/bin/start-keycloak/realmConfig/prepareRealmConfig.d.ts +15 -0
- package/bin/start-keycloak/realmConfig/realmConfig.d.ts +16 -0
- package/login/DefaultPage.d.ts +2 -1
- package/login/DefaultPage.js.map +1 -1
- package/login/UserProfileFormFields.d.ts +1 -1
- package/login/UserProfileFormFields.js.map +1 -1
- package/login/UserProfileFormFieldsProps.d.ts +1 -0
- package/login/i18n/withJsx/GenericI18n.d.ts +1 -1
- package/login/i18n/withJsx/GenericI18n.js.map +1 -1
- package/login/i18n/withJsx/useI18n.js.map +1 -1
- package/login/lib/useUserProfileForm.d.ts +1 -1
- package/login/lib/useUserProfileForm.js.map +1 -1
- package/login/pages/IdpReviewUserProfile.d.ts +2 -1
- package/login/pages/IdpReviewUserProfile.js.map +1 -1
- package/login/pages/Login.d.ts +1 -1
- package/login/pages/Login.js.map +1 -1
- package/login/pages/LoginPassword.d.ts +1 -1
- package/login/pages/LoginPassword.js.map +1 -1
- package/login/pages/LoginUpdatePassword.d.ts +1 -1
- package/login/pages/LoginUpdatePassword.js.map +1 -1
- package/login/pages/LoginUpdateProfile.d.ts +2 -1
- package/login/pages/LoginUpdateProfile.js.map +1 -1
- package/login/pages/PageProps.d.ts +1 -1
- package/login/pages/Register.d.ts +2 -1
- package/login/pages/Register.js.map +1 -1
- package/login/pages/UpdateEmail.d.ts +2 -1
- package/login/pages/UpdateEmail.js.map +1 -1
- package/package.json +35 -14
- package/src/account/i18n/withJsx/GenericI18n.tsx +1 -0
- package/src/account/i18n/withJsx/useI18n.tsx +1 -0
- package/src/account/pages/PageProps.ts +1 -0
- package/src/bin/shared/constants.ts +6 -0
- package/src/bin/start-keycloak/getSupportedDockerImageTags.ts +230 -0
- package/src/bin/start-keycloak/keycloakify-logging-1.0.3.jar +0 -0
- package/src/bin/start-keycloak/realmConfig/ParsedRealmJson.ts +118 -0
- package/src/bin/start-keycloak/realmConfig/defaultConfig/defaultConfig.ts +75 -0
- package/src/bin/start-keycloak/realmConfig/defaultConfig/index.ts +1 -0
- package/src/bin/start-keycloak/{myrealm-realm-18.json → realmConfig/defaultConfig/realm-kc-18.json} +123 -60
- package/src/bin/start-keycloak/{myrealm-realm-19.json → realmConfig/defaultConfig/realm-kc-19.json} +81 -41
- package/src/bin/start-keycloak/{myrealm-realm-20.json → realmConfig/defaultConfig/realm-kc-20.json} +83 -42
- package/src/bin/start-keycloak/{myrealm-realm-21.json → realmConfig/defaultConfig/realm-kc-21.json} +58 -17
- package/src/bin/start-keycloak/{myrealm-realm-23.json → realmConfig/defaultConfig/realm-kc-23.json} +64 -20
- package/src/bin/start-keycloak/{myrealm-realm-24.json → realmConfig/defaultConfig/realm-kc-24.json} +63 -19
- package/src/bin/start-keycloak/{myrealm-realm-25.json → realmConfig/defaultConfig/realm-kc-25.json} +75 -20
- package/src/bin/start-keycloak/{myrealm-realm-26.json → realmConfig/defaultConfig/realm-kc-26.json} +86 -20
- package/src/bin/start-keycloak/realmConfig/dumpContainerConfig.ts +147 -0
- package/src/bin/start-keycloak/realmConfig/index.ts +1 -0
- package/src/bin/start-keycloak/realmConfig/prepareRealmConfig.ts +302 -0
- package/src/bin/start-keycloak/realmConfig/realmConfig.ts +151 -0
- package/src/bin/start-keycloak/start-keycloak.ts +160 -184
- package/src/bin/start-keycloak/startViteDevServer.ts +1 -0
- package/src/login/DefaultPage.tsx +1 -0
- package/src/login/UserProfileFormFields.tsx +1 -0
- package/src/login/UserProfileFormFieldsProps.tsx +1 -0
- package/src/login/i18n/withJsx/GenericI18n.tsx +1 -0
- package/src/login/i18n/withJsx/useI18n.tsx +1 -0
- package/src/login/lib/useUserProfileForm.tsx +1 -0
- package/src/login/pages/IdpReviewUserProfile.tsx +1 -0
- package/src/login/pages/Login.tsx +1 -0
- package/src/login/pages/LoginPassword.tsx +1 -0
- package/src/login/pages/LoginUpdatePassword.tsx +1 -0
- package/src/login/pages/LoginUpdateProfile.tsx +1 -0
- package/src/login/pages/PageProps.ts +1 -0
- package/src/login/pages/Register.tsx +1 -0
- package/src/login/pages/UpdateEmail.tsx +1 -0
- package/src/tools/JSX.ts +5 -0
- package/tools/JSX.d.ts +5 -0
- package/tools/JSX.js +2 -0
- package/tools/JSX.js.map +1 -0
- package/vite-plugin/index.js +6 -0
- package/bin/392.index.js +0 -740
- package/bin/932.index.js +0 -327
package/bin/735.index.js
CHANGED
@@ -55,7 +55,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
55
55
|
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(52300);
|
56
56
|
/* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(29041);
|
57
57
|
/* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(38469);
|
58
|
-
/* harmony import */ var _tools_npmInstall__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
58
|
+
/* harmony import */ var _tools_npmInstall__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50030);
|
59
59
|
/* harmony import */ var _copyBoilerplate__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(81434);
|
60
60
|
|
61
61
|
|
@@ -445,46 +445,27 @@ function rmSync(dirPath, options) {
|
|
445
445
|
|
446
446
|
/***/ }),
|
447
447
|
|
448
|
-
/***/
|
448
|
+
/***/ 50030:
|
449
449
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
450
450
|
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
var
|
459
|
-
|
460
|
-
var
|
461
|
-
|
462
|
-
var
|
463
|
-
|
464
|
-
var
|
465
|
-
var
|
466
|
-
|
467
|
-
var
|
468
|
-
|
469
|
-
var assert = __webpack_require__(29041);
|
470
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
|
471
|
-
var id = __webpack_require__(38469);
|
472
|
-
;// CONCATENATED MODULE: ./node_modules/tsafe/esm/objectKeys.mjs
|
473
|
-
/** https://docs.tsafe.dev/objectKeys */
|
474
|
-
function objectKeys(o) {
|
475
|
-
return Object.keys(o);
|
476
|
-
}
|
477
|
-
|
478
|
-
|
479
|
-
//# sourceMappingURL=objectKeys.mjs.map
|
480
|
-
|
481
|
-
// EXTERNAL MODULE: ./dist/bin/tools/getAbsoluteAndInOsFormatPath.js
|
482
|
-
var getAbsoluteAndInOsFormatPath = __webpack_require__(84794);
|
483
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/esm/exclude.mjs
|
484
|
-
var exclude = __webpack_require__(83101);
|
485
|
-
// EXTERNAL MODULE: ./dist/bin/tools/fs.rmSync.js
|
486
|
-
var fs_rmSync = __webpack_require__(89693);
|
487
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/npmInstall.js
|
451
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
452
|
+
/* harmony export */ "c": () => (/* binding */ npmInstall)
|
453
|
+
/* harmony export */ });
|
454
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57147);
|
455
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
|
456
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
|
457
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
458
|
+
/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(32081);
|
459
|
+
/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_2__);
|
460
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78818);
|
461
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_3__);
|
462
|
+
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(52300);
|
463
|
+
/* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29041);
|
464
|
+
/* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38469);
|
465
|
+
/* harmony import */ var tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23483);
|
466
|
+
/* harmony import */ var _getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84794);
|
467
|
+
/* harmony import */ var tsafe_exclude__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83101);
|
468
|
+
/* harmony import */ var _fs_rmSync__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89693);
|
488
469
|
|
489
470
|
|
490
471
|
|
@@ -522,8 +503,8 @@ function npmInstall(params) {
|
|
522
503
|
}
|
523
504
|
];
|
524
505
|
for (const packageManager of packageMangers) {
|
525
|
-
if (
|
526
|
-
|
506
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, packageManager.lockFileBasename)) ||
|
507
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.existsSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(process.cwd(), packageManager.lockFileBasename))) {
|
527
508
|
return packageManager.binName;
|
528
509
|
}
|
529
510
|
}
|
@@ -538,7 +519,7 @@ function npmInstall(params) {
|
|
538
519
|
if (garronejLinkInfos === undefined) {
|
539
520
|
break install_without_breaking_links;
|
540
521
|
}
|
541
|
-
console.log(
|
522
|
+
console.log(chalk__WEBPACK_IMPORTED_MODULE_3___default().green("Installing in a way that won't break the links..."));
|
542
523
|
installWithoutBreakingLinks({
|
543
524
|
packageJsonDirPath,
|
544
525
|
garronejLinkInfos
|
@@ -546,19 +527,19 @@ function npmInstall(params) {
|
|
546
527
|
return;
|
547
528
|
}
|
548
529
|
try {
|
549
|
-
|
530
|
+
child_process__WEBPACK_IMPORTED_MODULE_2__.execSync(`${packageManagerBinName} install`, {
|
550
531
|
cwd: packageJsonDirPath,
|
551
532
|
stdio: "inherit"
|
552
533
|
});
|
553
534
|
}
|
554
535
|
catch (_a) {
|
555
|
-
console.log(
|
536
|
+
console.log(chalk__WEBPACK_IMPORTED_MODULE_3___default().yellow(`\`${packageManagerBinName} install\` failed, continuing anyway...`));
|
556
537
|
}
|
557
538
|
}
|
558
539
|
function getGarronejLinkInfos(params) {
|
559
540
|
const { packageJsonDirPath } = params;
|
560
|
-
const nodeModuleDirPath = (0,
|
561
|
-
if (!
|
541
|
+
const nodeModuleDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "node_modules");
|
542
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(nodeModuleDirPath)) {
|
562
543
|
return undefined;
|
563
544
|
}
|
564
545
|
const linkedModuleNames = [];
|
@@ -566,7 +547,7 @@ function getGarronejLinkInfos(params) {
|
|
566
547
|
const getIsLinkedByGarronejScript = (path) => {
|
567
548
|
let realPath;
|
568
549
|
try {
|
569
|
-
realPath =
|
550
|
+
realPath = fs__WEBPACK_IMPORTED_MODULE_0__.readlinkSync(path);
|
570
551
|
}
|
571
552
|
catch (_a) {
|
572
553
|
return false;
|
@@ -579,17 +560,17 @@ function getGarronejLinkInfos(params) {
|
|
579
560
|
if (yarnHomeDirPath !== undefined) {
|
580
561
|
break set_yarnHomeDirPath;
|
581
562
|
}
|
582
|
-
const [firstElement] = (0,
|
563
|
+
const [firstElement] = (0,_getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_5__/* .getAbsoluteAndInOsFormatPath */ .c)({
|
583
564
|
pathIsh: realPath,
|
584
|
-
cwd: (0,
|
565
|
+
cwd: (0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(path)
|
585
566
|
}).split(".yarn_home");
|
586
|
-
yarnHomeDirPath = (0,
|
567
|
+
yarnHomeDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(firstElement, ".yarn_home");
|
587
568
|
}
|
588
569
|
return true;
|
589
570
|
};
|
590
|
-
for (const basename of
|
591
|
-
const path = (0,
|
592
|
-
if (
|
571
|
+
for (const basename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(nodeModuleDirPath)) {
|
572
|
+
const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModuleDirPath, basename);
|
573
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isSymbolicLink()) {
|
593
574
|
if (basename.startsWith("@")) {
|
594
575
|
return undefined;
|
595
576
|
}
|
@@ -599,13 +580,13 @@ function getGarronejLinkInfos(params) {
|
|
599
580
|
linkedModuleNames.push(basename);
|
600
581
|
continue;
|
601
582
|
}
|
602
|
-
if (!
|
583
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isDirectory()) {
|
603
584
|
continue;
|
604
585
|
}
|
605
586
|
if (basename.startsWith("@")) {
|
606
|
-
for (const subBasename of
|
607
|
-
const subPath = (0,
|
608
|
-
if (!
|
587
|
+
for (const subBasename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(path)) {
|
588
|
+
const subPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(path, subBasename);
|
589
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(subPath).isSymbolicLink()) {
|
609
590
|
continue;
|
610
591
|
}
|
611
592
|
if (!getIsLinkedByGarronejScript(subPath)) {
|
@@ -623,17 +604,17 @@ function getGarronejLinkInfos(params) {
|
|
623
604
|
function installWithoutBreakingLinks(params) {
|
624
605
|
const { packageJsonDirPath, garronejLinkInfos: { linkedModuleNames, yarnHomeDirPath } } = params;
|
625
606
|
const parsedPackageJson = (() => {
|
626
|
-
const packageJsonFilePath = (0,
|
607
|
+
const packageJsonFilePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "package.json");
|
627
608
|
const zParsedPackageJson = (() => {
|
628
|
-
const zTargetType =
|
629
|
-
scripts:
|
609
|
+
const zTargetType = zod__WEBPACK_IMPORTED_MODULE_7__.z.object({
|
610
|
+
scripts: zod__WEBPACK_IMPORTED_MODULE_7__.z.record(zod__WEBPACK_IMPORTED_MODULE_7__.z.string()).optional()
|
630
611
|
});
|
631
|
-
|
632
|
-
return (0,
|
612
|
+
tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h;
|
613
|
+
return (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(zTargetType);
|
633
614
|
})();
|
634
|
-
const parsedPackageJson = JSON.parse(
|
615
|
+
const parsedPackageJson = JSON.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(packageJsonFilePath).toString("utf8"));
|
635
616
|
zParsedPackageJson.parse(parsedPackageJson);
|
636
|
-
(0,
|
617
|
+
(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h)((0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__.is)(parsedPackageJson));
|
637
618
|
return parsedPackageJson;
|
638
619
|
})();
|
639
620
|
const isImplementedScriptByName = {
|
@@ -644,7 +625,7 @@ function installWithoutBreakingLinks(params) {
|
|
644
625
|
if (parsedPackageJson.scripts === undefined) {
|
645
626
|
break delete_postinstall_script;
|
646
627
|
}
|
647
|
-
for (const scriptName of objectKeys(isImplementedScriptByName)) {
|
628
|
+
for (const scriptName of (0,tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_9__/* .objectKeys */ .Y)(isImplementedScriptByName)) {
|
648
629
|
if (parsedPackageJson.scripts[scriptName] === undefined) {
|
649
630
|
continue;
|
650
631
|
}
|
@@ -652,15 +633,15 @@ function installWithoutBreakingLinks(params) {
|
|
652
633
|
delete parsedPackageJson.scripts[scriptName];
|
653
634
|
}
|
654
635
|
}
|
655
|
-
const tmpProjectDirPath = (0,
|
656
|
-
if (
|
657
|
-
(0,
|
636
|
+
const tmpProjectDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(yarnHomeDirPath, "tmpProject");
|
637
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(tmpProjectDirPath)) {
|
638
|
+
(0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(tmpProjectDirPath, { recursive: true });
|
658
639
|
}
|
659
|
-
|
660
|
-
|
640
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(tmpProjectDirPath, { recursive: true });
|
641
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.writeFileSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, "package.json"), JSON.stringify(parsedPackageJson, undefined, 4));
|
661
642
|
const YARN_LOCK = "yarn.lock";
|
662
|
-
|
663
|
-
|
643
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.copyFileSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, YARN_LOCK), (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, YARN_LOCK));
|
644
|
+
child_process__WEBPACK_IMPORTED_MODULE_2__.execSync(`yarn install`, {
|
664
645
|
cwd: tmpProjectDirPath,
|
665
646
|
stdio: "inherit"
|
666
647
|
});
|
@@ -669,18 +650,18 @@ function installWithoutBreakingLinks(params) {
|
|
669
650
|
{
|
670
651
|
const { getAreSameVersions } = (() => {
|
671
652
|
const zParsedPackageJson = (() => {
|
672
|
-
const zTargetType =
|
673
|
-
version:
|
653
|
+
const zTargetType = zod__WEBPACK_IMPORTED_MODULE_7__.z.object({
|
654
|
+
version: zod__WEBPACK_IMPORTED_MODULE_7__.z.string()
|
674
655
|
});
|
675
|
-
|
676
|
-
return (0,
|
656
|
+
tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h;
|
657
|
+
return (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(zTargetType);
|
677
658
|
})();
|
678
659
|
function readVersion(params) {
|
679
660
|
const { moduleDirPath } = params;
|
680
|
-
const packageJsonFilePath = (0,
|
681
|
-
const packageJson = JSON.parse(
|
661
|
+
const packageJsonFilePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(moduleDirPath, "package.json");
|
662
|
+
const packageJson = JSON.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(packageJsonFilePath).toString("utf8"));
|
682
663
|
zParsedPackageJson.parse(packageJson);
|
683
|
-
(0,
|
664
|
+
(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h)((0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__.is)(packageJson));
|
684
665
|
return packageJson.version;
|
685
666
|
}
|
686
667
|
function getAreSameVersions(params) {
|
@@ -690,44 +671,44 @@ function installWithoutBreakingLinks(params) {
|
|
690
671
|
}
|
691
672
|
return { getAreSameVersions };
|
692
673
|
})();
|
693
|
-
const nodeModulesDirPath_tmpProject = (0,
|
694
|
-
const nodeModulesDirPath = (0,
|
695
|
-
const modulePaths =
|
674
|
+
const nodeModulesDirPath_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, "node_modules");
|
675
|
+
const nodeModulesDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "node_modules");
|
676
|
+
const modulePaths = fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(nodeModulesDirPath_tmpProject)
|
696
677
|
.map(basename => {
|
697
678
|
if (basename.startsWith(".")) {
|
698
679
|
return undefined;
|
699
680
|
}
|
700
|
-
const path = (0,
|
681
|
+
const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath_tmpProject, basename);
|
701
682
|
if (basename.startsWith("@")) {
|
702
|
-
return
|
683
|
+
return fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(path)
|
703
684
|
.map(subBasename => {
|
704
685
|
if (subBasename.startsWith(".")) {
|
705
686
|
return undefined;
|
706
687
|
}
|
707
|
-
const subPath = (0,
|
708
|
-
if (!
|
688
|
+
const subPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(path, subBasename);
|
689
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(subPath).isDirectory()) {
|
709
690
|
return undefined;
|
710
691
|
}
|
711
692
|
return {
|
712
693
|
moduleName: `${basename}/${subBasename}`,
|
713
694
|
moduleDirPath_tmpProject: subPath,
|
714
|
-
moduleDirPath: (0,
|
695
|
+
moduleDirPath: (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, basename, subBasename)
|
715
696
|
};
|
716
697
|
})
|
717
|
-
.filter((0,
|
698
|
+
.filter((0,tsafe_exclude__WEBPACK_IMPORTED_MODULE_10__/* .exclude */ .D)(undefined));
|
718
699
|
}
|
719
|
-
if (!
|
700
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isDirectory()) {
|
720
701
|
return undefined;
|
721
702
|
}
|
722
703
|
return [
|
723
704
|
{
|
724
705
|
moduleName: basename,
|
725
706
|
moduleDirPath_tmpProject: path,
|
726
|
-
moduleDirPath: (0,
|
707
|
+
moduleDirPath: (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, basename)
|
727
708
|
}
|
728
709
|
];
|
729
710
|
})
|
730
|
-
.filter((0,
|
711
|
+
.filter((0,tsafe_exclude__WEBPACK_IMPORTED_MODULE_10__/* .exclude */ .D)(undefined))
|
731
712
|
.flat();
|
732
713
|
for (const { moduleName, moduleDirPath, moduleDirPath_tmpProject } of modulePaths) {
|
733
714
|
if (linkedModuleNames.includes(moduleName)) {
|
@@ -735,7 +716,7 @@ function installWithoutBreakingLinks(params) {
|
|
735
716
|
}
|
736
717
|
let doesTargetModuleExist = false;
|
737
718
|
skip_condition: {
|
738
|
-
if (!
|
719
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(moduleDirPath)) {
|
739
720
|
break skip_condition;
|
740
721
|
}
|
741
722
|
doesTargetModuleExist = true;
|
@@ -749,39 +730,39 @@ function installWithoutBreakingLinks(params) {
|
|
749
730
|
continue;
|
750
731
|
}
|
751
732
|
if (doesTargetModuleExist) {
|
752
|
-
(0,
|
733
|
+
(0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(moduleDirPath, { recursive: true });
|
753
734
|
}
|
754
735
|
{
|
755
|
-
const dirPath = (0,
|
756
|
-
if (!
|
757
|
-
|
736
|
+
const dirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(moduleDirPath);
|
737
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(dirPath)) {
|
738
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(dirPath, { recursive: true });
|
758
739
|
}
|
759
740
|
}
|
760
|
-
|
741
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(moduleDirPath_tmpProject, moduleDirPath);
|
761
742
|
}
|
762
743
|
move_bin: {
|
763
|
-
const binDirPath_tmpProject = (0,
|
764
|
-
const binDirPath = (0,
|
765
|
-
if (!
|
744
|
+
const binDirPath_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath_tmpProject, ".bin");
|
745
|
+
const binDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, ".bin");
|
746
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(binDirPath_tmpProject)) {
|
766
747
|
break move_bin;
|
767
748
|
}
|
768
|
-
for (const basename of
|
769
|
-
const path_tmpProject = (0,
|
770
|
-
const path = (0,
|
771
|
-
if (
|
749
|
+
for (const basename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(binDirPath_tmpProject)) {
|
750
|
+
const path_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(binDirPath_tmpProject, basename);
|
751
|
+
const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(binDirPath, basename);
|
752
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path)) {
|
772
753
|
continue;
|
773
754
|
}
|
774
|
-
|
755
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(path_tmpProject, path);
|
775
756
|
}
|
776
757
|
}
|
777
758
|
}
|
778
|
-
|
779
|
-
(0,
|
780
|
-
for (const scriptName of objectKeys(isImplementedScriptByName)) {
|
759
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.cpSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, YARN_LOCK), (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, YARN_LOCK));
|
760
|
+
(0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(tmpProjectDirPath, { recursive: true });
|
761
|
+
for (const scriptName of (0,tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_9__/* .objectKeys */ .Y)(isImplementedScriptByName)) {
|
781
762
|
if (!isImplementedScriptByName[scriptName]) {
|
782
763
|
continue;
|
783
764
|
}
|
784
|
-
|
765
|
+
child_process__WEBPACK_IMPORTED_MODULE_2__.execSync(`yarn run ${scriptName}`, {
|
785
766
|
cwd: packageJsonDirPath,
|
786
767
|
stdio: "inherit"
|
787
768
|
});
|
@@ -789,6 +770,23 @@ function installWithoutBreakingLinks(params) {
|
|
789
770
|
}
|
790
771
|
//# sourceMappingURL=npmInstall.js.map
|
791
772
|
|
773
|
+
/***/ }),
|
774
|
+
|
775
|
+
/***/ 23483:
|
776
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
777
|
+
|
778
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
779
|
+
/* harmony export */ "Y": () => (/* binding */ objectKeys)
|
780
|
+
/* harmony export */ });
|
781
|
+
/** https://docs.tsafe.dev/objectKeys */
|
782
|
+
function objectKeys(o) {
|
783
|
+
return Object.keys(o);
|
784
|
+
}
|
785
|
+
|
786
|
+
|
787
|
+
//# sourceMappingURL=objectKeys.mjs.map
|
788
|
+
|
789
|
+
|
792
790
|
/***/ })
|
793
791
|
|
794
792
|
};
|
package/bin/921.index.js
CHANGED
@@ -160,7 +160,7 @@ async function command(params) {
|
|
160
160
|
break;
|
161
161
|
case "Single-Page":
|
162
162
|
{
|
163
|
-
const { initializeAccountTheme_singlePage } = await Promise.all(/* import() */[__webpack_require__.e(805), __webpack_require__.e(
|
163
|
+
const { initializeAccountTheme_singlePage } = await Promise.all(/* import() */[__webpack_require__.e(805), __webpack_require__.e(525), __webpack_require__.e(375), __webpack_require__.e(735)]).then(__webpack_require__.bind(__webpack_require__, 84735));
|
164
164
|
await initializeAccountTheme_singlePage({
|
165
165
|
accountThemeSrcDirPath,
|
166
166
|
buildContext
|
package/bin/main.js
CHANGED
@@ -12,13 +12,16 @@
|
|
12
12
|
/* harmony export */ "PC": () => (/* binding */ KEYCLOAK_THEME),
|
13
13
|
/* harmony export */ "Sz": () => (/* binding */ KEYCLOAKIFY_SPA_DEV_SERVER_PORT),
|
14
14
|
/* harmony export */ "TE": () => (/* binding */ VITE_PLUGIN_SUB_SCRIPTS_ENV_NAMES),
|
15
|
+
/* harmony export */ "Tr": () => (/* binding */ KEYCLOAKIFY_LOGIN_JAR_BASENAME),
|
15
16
|
/* harmony export */ "XV": () => (/* binding */ LOGIN_THEME_PAGE_IDS),
|
16
17
|
/* harmony export */ "_L": () => (/* binding */ FALLBACK_LANGUAGE_TAG),
|
17
18
|
/* harmony export */ "_S": () => (/* binding */ CUSTOM_HANDLER_ENV_NAMES),
|
18
19
|
/* harmony export */ "ac": () => (/* binding */ BUILD_FOR_KEYCLOAK_MAJOR_VERSION_ENV_NAME),
|
20
|
+
/* harmony export */ "jp": () => (/* binding */ TEST_APP_URL),
|
19
21
|
/* harmony export */ "sv": () => (/* binding */ CONTAINER_NAME),
|
20
22
|
/* harmony export */ "yV": () => (/* binding */ ACCOUNT_THEME_PAGE_IDS)
|
21
23
|
/* harmony export */ });
|
24
|
+
/* unused harmony export KEYCLOAKIFY_LOGGING_VERSION */
|
22
25
|
const WELL_KNOWN_DIRECTORY_BASE_NAME = {
|
23
26
|
KEYCLOAKIFY_DEV_RESOURCES: "keycloakify-dev-resources",
|
24
27
|
RESOURCES_COMMON: "resources-common",
|
@@ -86,6 +89,9 @@ const CUSTOM_HANDLER_ENV_NAMES = {
|
|
86
89
|
};
|
87
90
|
const KEYCLOAK_THEME = "keycloak-theme";
|
88
91
|
const KEYCLOAKIFY_SPA_DEV_SERVER_PORT = "KEYCLOAKIFY_SPA_DEV_SERVER_PORT";
|
92
|
+
const KEYCLOAKIFY_LOGGING_VERSION = "1.0.3";
|
93
|
+
const KEYCLOAKIFY_LOGIN_JAR_BASENAME = `keycloakify-logging-${KEYCLOAKIFY_LOGGING_VERSION}.jar`;
|
94
|
+
const TEST_APP_URL = "https://my-theme.keycloakify.dev";
|
89
95
|
//# sourceMappingURL=constants.js.map
|
90
96
|
|
91
97
|
/***/ }),
|
@@ -16286,7 +16292,7 @@ program
|
|
16286
16292
|
.task({
|
16287
16293
|
skip,
|
16288
16294
|
handler: async ({ projectDirPath, keycloakVersion, port, realmJsonFilePath }) => {
|
16289
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(805), __nccwpck_require__.e(
|
16295
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(805), __nccwpck_require__.e(525), __nccwpck_require__.e(33), __nccwpck_require__.e(503), __nccwpck_require__.e(682)]).then(__nccwpck_require__.bind(__nccwpck_require__, 6682));
|
16290
16296
|
validate_keycloak_version: {
|
16291
16297
|
if (keycloakVersion === undefined) {
|
16292
16298
|
break validate_keycloak_version;
|
@@ -16355,7 +16361,7 @@ program
|
|
16355
16361
|
.task({
|
16356
16362
|
skip,
|
16357
16363
|
handler: async ({ projectDirPath }) => {
|
16358
|
-
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(805), __nccwpck_require__.e(
|
16364
|
+
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(805), __nccwpck_require__.e(525), __nccwpck_require__.e(375), __nccwpck_require__.e(33), __nccwpck_require__.e(490)]).then(__nccwpck_require__.bind(__nccwpck_require__, 23490));
|
16359
16365
|
await command({ buildContext: getBuildContext({ projectDirPath }) });
|
16360
16366
|
}
|
16361
16367
|
});
|
@@ -23,3 +23,6 @@ export declare const CUSTOM_HANDLER_ENV_NAMES: {
|
|
23
23
|
};
|
24
24
|
export declare const KEYCLOAK_THEME = "keycloak-theme";
|
25
25
|
export declare const KEYCLOAKIFY_SPA_DEV_SERVER_PORT = "KEYCLOAKIFY_SPA_DEV_SERVER_PORT";
|
26
|
+
export declare const KEYCLOAKIFY_LOGGING_VERSION = "1.0.3";
|
27
|
+
export declare const KEYCLOAKIFY_LOGIN_JAR_BASENAME: string;
|
28
|
+
export declare const TEST_APP_URL = "https://my-theme.keycloakify.dev";
|
package/bin/shared/constants.js
CHANGED
@@ -65,4 +65,7 @@ export const CUSTOM_HANDLER_ENV_NAMES = {
|
|
65
65
|
};
|
66
66
|
export const KEYCLOAK_THEME = "keycloak-theme";
|
67
67
|
export const KEYCLOAKIFY_SPA_DEV_SERVER_PORT = "KEYCLOAKIFY_SPA_DEV_SERVER_PORT";
|
68
|
+
export const KEYCLOAKIFY_LOGGING_VERSION = "1.0.3";
|
69
|
+
export const KEYCLOAKIFY_LOGIN_JAR_BASENAME = `keycloakify-logging-${KEYCLOAKIFY_LOGGING_VERSION}.jar`;
|
70
|
+
export const TEST_APP_URL = "https://my-theme.keycloakify.dev";
|
68
71
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/bin/shared/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC1C,yBAAyB,EAAE,2BAA2B;IACtD,gBAAgB,EAAE,kBAAkB;IACpC,IAAI,EAAE,MAAM;CACN,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAIlE,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC7C,qBAAqB,EAAE,mCAAmC;IAC1D,mBAAmB,EAAE,iCAAiC;IACtD,wBAAwB,EAAE,sCAAsC;CAC1D,CAAC;AAEX,MAAM,CAAC,MAAM,yCAAyC,GAClD,8CAA8C,CAAC;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,WAAW;IACX,oBAAoB;IACpB,oBAAoB;IACpB,2BAA2B;IAC3B,uBAAuB;IACvB,cAAc;IACd,UAAU;IACV,WAAW;IACX,0BAA0B;IAC1B,wBAAwB;IACxB,WAAW;IACX,0CAA0C;IAC1C,uBAAuB;IACvB,eAAe;IACf,0BAA0B;IAC1B,2BAA2B;IAC3B,4BAA4B;IAC5B,0BAA0B;IAC1B,wBAAwB;IACxB,uBAAuB;IACvB,oBAAoB;IACpB,6BAA6B;IAC7B,kBAAkB;IAClB,0BAA0B;IAC1B,oBAAoB;IACpB,uBAAuB;IACvB,UAAU;IACV,4BAA4B;IAC5B,yBAAyB;IACzB,sCAAsC;IACtC,qCAAqC;IACrC,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,6CAA6C;IAC7C,qCAAqC;CAC/B,CAAC;AAEX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,cAAc;IACd,aAAa;IACb,cAAc;IACd,UAAU;IACV,kBAAkB;IAClB,SAAS;IACT,uBAAuB;CACjB,CAAC;AAKX,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAE1C,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,YAAY,EAAE,0BAA0B;IACxC,aAAa,EAAE,2BAA2B;CAC7C,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,+BAA+B,GAAG,iCAAiC,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/bin/shared/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC1C,yBAAyB,EAAE,2BAA2B;IACtD,gBAAgB,EAAE,kBAAkB;IACpC,IAAI,EAAE,MAAM;CACN,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAIlE,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC7C,qBAAqB,EAAE,mCAAmC;IAC1D,mBAAmB,EAAE,iCAAiC;IACtD,wBAAwB,EAAE,sCAAsC;CAC1D,CAAC;AAEX,MAAM,CAAC,MAAM,yCAAyC,GAClD,8CAA8C,CAAC;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,WAAW;IACX,oBAAoB;IACpB,oBAAoB;IACpB,2BAA2B;IAC3B,uBAAuB;IACvB,cAAc;IACd,UAAU;IACV,WAAW;IACX,0BAA0B;IAC1B,wBAAwB;IACxB,WAAW;IACX,0CAA0C;IAC1C,uBAAuB;IACvB,eAAe;IACf,0BAA0B;IAC1B,2BAA2B;IAC3B,4BAA4B;IAC5B,0BAA0B;IAC1B,wBAAwB;IACxB,uBAAuB;IACvB,oBAAoB;IACpB,6BAA6B;IAC7B,kBAAkB;IAClB,0BAA0B;IAC1B,oBAAoB;IACpB,uBAAuB;IACvB,UAAU;IACV,4BAA4B;IAC5B,yBAAyB;IACzB,sCAAsC;IACtC,qCAAqC;IACrC,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,6CAA6C;IAC7C,qCAAqC;CAC/B,CAAC;AAEX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,cAAc;IACd,aAAa;IACb,cAAc;IACd,UAAU;IACV,kBAAkB;IAClB,SAAS;IACT,uBAAuB;CACjB,CAAC;AAKX,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAE1C,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,YAAY,EAAE,0BAA0B;IACxC,aAAa,EAAE,2BAA2B;CAC7C,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,+BAA+B,GAAG,iCAAiC,CAAC;AAEjF,MAAM,CAAC,MAAM,2BAA2B,GAAG,OAAO,CAAC;AAEnD,MAAM,CAAC,MAAM,8BAA8B,GAAG,uBAAuB,2BAA2B,MAAM,CAAC;AAEvG,MAAM,CAAC,MAAM,YAAY,GAAG,kCAAkC,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { BuildContext } from "../shared/buildContext";
|
2
|
+
export type BuildContextLike = {
|
3
|
+
fetchOptions: BuildContext["fetchOptions"];
|
4
|
+
cacheDirPath: string;
|
5
|
+
};
|
6
|
+
export declare function getSupportedDockerImageTags(params: {
|
7
|
+
buildContext: BuildContextLike;
|
8
|
+
}): Promise<string[]>;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
export type ParsedRealmJson = {
|
2
|
+
realm: string;
|
3
|
+
loginTheme?: string;
|
4
|
+
accountTheme?: string;
|
5
|
+
adminTheme?: string;
|
6
|
+
emailTheme?: string;
|
7
|
+
eventsListeners: string[];
|
8
|
+
users: {
|
9
|
+
id: string;
|
10
|
+
email: string;
|
11
|
+
username: string;
|
12
|
+
credentials: {
|
13
|
+
type: string;
|
14
|
+
}[];
|
15
|
+
clientRoles?: Record<string, string[]>;
|
16
|
+
}[];
|
17
|
+
roles: {
|
18
|
+
client: Record<string, {
|
19
|
+
name: string;
|
20
|
+
containerId: string;
|
21
|
+
}[]>;
|
22
|
+
};
|
23
|
+
clients: {
|
24
|
+
id: string;
|
25
|
+
clientId: string;
|
26
|
+
baseUrl?: string;
|
27
|
+
redirectUris?: string[];
|
28
|
+
webOrigins?: string[];
|
29
|
+
attributes?: {
|
30
|
+
"post.logout.redirect.uris"?: string;
|
31
|
+
};
|
32
|
+
protocol?: string;
|
33
|
+
protocolMappers?: unknown[];
|
34
|
+
}[];
|
35
|
+
};
|
36
|
+
export declare function readRealmJsonFile(params: {
|
37
|
+
realmJsonFilePath: string;
|
38
|
+
}): ParsedRealmJson;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type ParsedRealmJson } from "../ParsedRealmJson";
|
2
|
+
export declare function getDefaultRealmJsonFilePath(params: {
|
3
|
+
keycloakMajorVersionNumber: number;
|
4
|
+
}): string;
|
5
|
+
export declare const getSupportedKeycloakMajorVersions: () => number[];
|
6
|
+
export declare function getDefaultConfig(params: {
|
7
|
+
keycloakMajorVersionNumber: number;
|
8
|
+
}): ParsedRealmJson;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./defaultConfig";
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type ParsedRealmJson } from "./ParsedRealmJson";
|
2
|
+
export type BuildContextLike = {
|
3
|
+
cacheDirPath: string;
|
4
|
+
};
|
5
|
+
export declare function dumpContainerConfig(params: {
|
6
|
+
realmName: string;
|
7
|
+
keycloakMajorVersionNumber: number;
|
8
|
+
buildContext: BuildContextLike;
|
9
|
+
}): Promise<ParsedRealmJson>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./realmConfig";
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { ParsedRealmJson } from "./ParsedRealmJson";
|
2
|
+
import type { BuildContext } from "../../shared/buildContext";
|
3
|
+
export type BuildContextLike = {
|
4
|
+
themeNames: BuildContext["themeNames"];
|
5
|
+
implementedThemeTypes: BuildContext["implementedThemeTypes"];
|
6
|
+
};
|
7
|
+
export declare function prepareRealmConfig(params: {
|
8
|
+
parsedRealmJson: ParsedRealmJson;
|
9
|
+
keycloakMajorVersionNumber: number;
|
10
|
+
buildContext: BuildContextLike;
|
11
|
+
}): {
|
12
|
+
realmName: string;
|
13
|
+
clientName: string;
|
14
|
+
username: string;
|
15
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { type BuildContextLike as BuildContextLike_prepareRealmConfig } from "./prepareRealmConfig";
|
2
|
+
import { type BuildContextLike as BuildContextLike_dumpContainerConfig } from "./dumpContainerConfig";
|
3
|
+
export type BuildContextLike = BuildContextLike_dumpContainerConfig & BuildContextLike_prepareRealmConfig & {
|
4
|
+
projectDirPath: string;
|
5
|
+
};
|
6
|
+
export declare function getRealmConfig(params: {
|
7
|
+
keycloakMajorVersionNumber: number;
|
8
|
+
realmJsonFilePath_userProvided: string | undefined;
|
9
|
+
buildContext: BuildContextLike;
|
10
|
+
}): Promise<{
|
11
|
+
realmJsonFilePath: string;
|
12
|
+
clientName: string;
|
13
|
+
realmName: string;
|
14
|
+
username: string;
|
15
|
+
onRealmConfigChange: () => Promise<void>;
|
16
|
+
}>;
|
package/login/DefaultPage.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import type { JSX } from "../tools/JSX";
|
2
3
|
import type { LazyOrNot } from "../tools/LazyOrNot";
|
3
4
|
import type { PageProps } from "../login/pages/PageProps";
|
4
5
|
import type { I18n } from "../login/i18n";
|
@@ -8,5 +9,5 @@ type DefaultPageProps = PageProps<KcContext, I18n> & {
|
|
8
9
|
UserProfileFormFields: LazyOrNot<(props: UserProfileFormFieldsProps) => JSX.Element>;
|
9
10
|
doMakeUserConfirmPassword: boolean;
|
10
11
|
};
|
11
|
-
export default function DefaultPage(props: DefaultPageProps): JSX.Element;
|
12
|
+
export default function DefaultPage(props: DefaultPageProps): globalThis.JSX.Element;
|
12
13
|
export {};
|