keycloakify 11.3.19 → 11.3.21

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 (67) hide show
  1. package/bin/124.index.js +676 -0
  2. package/bin/356.index.js +700 -0
  3. package/bin/40.index.js +41 -21
  4. package/bin/{903.index.js → 450.index.js} +2 -680
  5. package/bin/453.index.js +143 -85
  6. package/bin/573.index.js +51 -24
  7. package/bin/{599.index.js → 735.index.js} +438 -121
  8. package/bin/786.index.js +129 -78
  9. package/bin/805.index.js +674 -0
  10. package/bin/854.index.js +68 -0
  11. package/bin/{780.index.js → 921.index.js} +168 -109
  12. package/bin/932.index.js +41 -21
  13. package/bin/97.index.js +125 -75
  14. package/bin/eject-file.d.ts +7 -0
  15. package/bin/keycloakify/generateResources/generateMessageProperties.d.ts +1 -1
  16. package/bin/keycloakify/generateResources/readFieldNameUsage.d.ts +1 -1
  17. package/bin/main.js +70 -7
  18. package/bin/postinstall/getUiModuleFileSourceCodeReadyToBeCopied.d.ts +12 -0
  19. package/bin/postinstall/index.d.ts +1 -0
  20. package/bin/postinstall/installUiModulesPeerDependencies.d.ts +11 -0
  21. package/bin/postinstall/managedGitignoreFile.d.ts +14 -0
  22. package/bin/postinstall/postinstall.d.ts +4 -0
  23. package/bin/postinstall/uiModuleMeta.d.ts +21 -0
  24. package/bin/shared/buildContext.d.ts +3 -0
  25. package/bin/shared/constants.d.ts +2 -1
  26. package/bin/shared/constants.js +2 -1
  27. package/bin/shared/constants.js.map +1 -1
  28. package/bin/shared/customHandler.d.ts +1 -1
  29. package/bin/shared/customHandler.js.map +1 -1
  30. package/bin/shared/exitIfUncommittedChanges.d.ts +3 -0
  31. package/bin/tools/crawlAsync.d.ts +6 -0
  32. package/bin/tools/getInstalledModuleDirPath.d.ts +5 -0
  33. package/bin/tools/listInstalledModules.d.ts +12 -0
  34. package/bin/tools/nodeModulesBinDirPath.d.ts +1 -0
  35. package/bin/tools/runPrettier.d.ts +17 -0
  36. package/package.json +34 -6
  37. package/src/bin/add-story.ts +28 -10
  38. package/src/bin/eject-file.ts +68 -0
  39. package/src/bin/eject-page.ts +51 -31
  40. package/src/bin/initialize-account-theme/initialize-account-theme.ts +4 -32
  41. package/src/bin/initialize-account-theme/initializeAccountTheme_singlePage.ts +2 -16
  42. package/src/bin/keycloakify/generateResources/generateMessageProperties.ts +1 -1
  43. package/src/bin/keycloakify/generateResources/generateResources.ts +58 -26
  44. package/src/bin/keycloakify/generateResources/readFieldNameUsage.ts +1 -1
  45. package/src/bin/main.ts +50 -0
  46. package/src/bin/postinstall/getUiModuleFileSourceCodeReadyToBeCopied.ts +73 -0
  47. package/src/bin/postinstall/index.ts +1 -0
  48. package/src/bin/postinstall/installUiModulesPeerDependencies.ts +158 -0
  49. package/src/bin/postinstall/managedGitignoreFile.ts +136 -0
  50. package/src/bin/postinstall/postinstall.ts +79 -0
  51. package/src/bin/postinstall/uiModuleMeta.ts +309 -0
  52. package/src/bin/shared/buildContext.ts +11 -5
  53. package/src/bin/shared/constants.ts +3 -1
  54. package/src/bin/shared/customHandler.ts +1 -0
  55. package/src/bin/shared/customHandler_delegate.ts +2 -27
  56. package/src/bin/shared/exitIfUncommittedChanges.ts +36 -0
  57. package/src/bin/tools/crawlAsync.ts +51 -0
  58. package/src/bin/tools/getInstalledModuleDirPath.ts +51 -0
  59. package/src/bin/tools/listInstalledModules.ts +131 -0
  60. package/src/bin/tools/nodeModulesBinDirPath.ts +38 -0
  61. package/src/bin/tools/npmInstall.ts +411 -15
  62. package/src/bin/tools/readThisNpmPackageVersion.ts +8 -0
  63. package/src/bin/tools/runPrettier.ts +106 -0
  64. package/src/bin/update-kc-gen.ts +28 -17
  65. package/vite-plugin/index.js +9237 -9163
  66. package/bin/tools/runFormat.d.ts +0 -3
  67. package/src/bin/tools/runFormat.ts +0 -76
package/bin/40.index.js CHANGED
@@ -118,8 +118,8 @@ function readParams(params) {
118
118
  //# sourceMappingURL=customHandler.js.map
119
119
  // EXTERNAL MODULE: external "child_process"
120
120
  var external_child_process_ = __webpack_require__(32081);
121
- // EXTERNAL MODULE: external "path"
122
- var external_path_ = __webpack_require__(71017);
121
+ // EXTERNAL MODULE: ./dist/bin/tools/nodeModulesBinDirPath.js
122
+ var tools_nodeModulesBinDirPath = __webpack_require__(73776);
123
123
  // EXTERNAL MODULE: external "fs"
124
124
  var external_fs_ = __webpack_require__(57147);
125
125
  ;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
@@ -132,25 +132,7 @@ var external_fs_ = __webpack_require__(57147);
132
132
  (0,esm_assert/* assert */.h)();
133
133
  function maybeDelegateCommandToCustomHandler(params) {
134
134
  const { commandName, buildContext } = params;
135
- const nodeModulesBinDirPath = (() => {
136
- const binPath = process.argv[1];
137
- const segments = [".bin"];
138
- let foundNodeModules = false;
139
- for (const segment of binPath.split(external_path_.sep).reverse()) {
140
- skip_segment: {
141
- if (foundNodeModules) {
142
- break skip_segment;
143
- }
144
- if (segment === "node_modules") {
145
- foundNodeModules = true;
146
- break skip_segment;
147
- }
148
- continue;
149
- }
150
- segments.unshift(segment);
151
- }
152
- return segments.join(external_path_.sep);
153
- })();
135
+ const nodeModulesBinDirPath = (0,tools_nodeModulesBinDirPath/* getNodeModulesBinDirPath */.K)();
154
136
  if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
155
137
  return { hasBeenHandled: false };
156
138
  }
@@ -301,6 +283,44 @@ function rmSync(dirPath, options) {
301
283
 
302
284
  /***/ }),
303
285
 
286
+ /***/ 73776:
287
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
288
+
289
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
290
+ /* harmony export */ "K": () => (/* binding */ getNodeModulesBinDirPath)
291
+ /* harmony export */ });
292
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71017);
293
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
294
+
295
+ let cache = undefined;
296
+ function getNodeModulesBinDirPath() {
297
+ if (cache !== undefined) {
298
+ return cache;
299
+ }
300
+ const binPath = process.argv[1];
301
+ const segments = [".bin"];
302
+ let foundNodeModules = false;
303
+ for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
304
+ skip_segment: {
305
+ if (foundNodeModules) {
306
+ break skip_segment;
307
+ }
308
+ if (segment === "node_modules") {
309
+ foundNodeModules = true;
310
+ break skip_segment;
311
+ }
312
+ continue;
313
+ }
314
+ segments.unshift(segment);
315
+ }
316
+ const nodeModulesBinDirPath = segments.join(path__WEBPACK_IMPORTED_MODULE_0__.sep);
317
+ cache = nodeModulesBinDirPath;
318
+ return nodeModulesBinDirPath;
319
+ }
320
+ //# sourceMappingURL=nodeModulesBinDirPath.js.map
321
+
322
+ /***/ }),
323
+
304
324
  /***/ 60332:
305
325
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
306
326