keycloakify 11.7.0 → 11.7.2

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/README.md CHANGED
@@ -46,7 +46,7 @@ Keycloakify is fully compatible with Keycloak from version 11 to 26...[and beyon
46
46
  > 📣 **Keycloakify 26 Released**
47
47
  > Themes built with Keycloakify versions **prior** to Keycloak 26 are **incompatible** with Keycloak 26.
48
48
  > To ensure compatibility, simply upgrade to the latest Keycloakify version for your major release (v10 or v11) and rebuild your theme.
49
- > No breaking changes have been introduced, but the target version ranges have been updated. For more details, see [this guide](https://docs.keycloakify.dev/targeting-specific-keycloak-versions).
49
+ > No breaking changes have been introduced, but the target version ranges have been updated. For more details, see [this guide](https://docs.keycloakify.dev/features/compiler-options/keycloakversiontargets).
50
50
 
51
51
  ## Sponsors
52
52
 
package/bin/363.index.js CHANGED
@@ -354,7 +354,10 @@ function addCommentToSourceCode(params) {
354
354
  if (fileRelativePath.endsWith(".html") || fileRelativePath.endsWith(".svg")) {
355
355
  const comment = [
356
356
  `<!--`,
357
- ...commentLines.map(line => ` ${line.replace("--path", "-p").replace("Before modifying", "Before modifying or replacing")}`),
357
+ ...commentLines.map(line => ` ${line
358
+ .replace("--path", "-t")
359
+ .replace("--revert", "-r")
360
+ .replace("Before modifying", "Before modifying or replacing")}`),
358
361
  `-->`
359
362
  ].join("\n");
360
363
  if (fileRelativePath.endsWith(".html") && sourceCode.trim().startsWith("<!")) {
package/bin/main.js CHANGED
@@ -16348,7 +16348,7 @@ program
16348
16348
  key: "path",
16349
16349
  name: (() => {
16350
16350
  const long = "path";
16351
- const short = "p";
16351
+ const short = "t";
16352
16352
  optionsKeys.push(long, short);
16353
16353
  return { long, short };
16354
16354
  })(),
@@ -16361,9 +16361,10 @@ program
16361
16361
  .option({
16362
16362
  key: "revert",
16363
16363
  name: (() => {
16364
- const name = "revert";
16365
- optionsKeys.push(name);
16366
- return name;
16364
+ const long = "revert";
16365
+ const short = "r";
16366
+ optionsKeys.push(long, short);
16367
+ return { long, short };
16367
16368
  })(),
16368
16369
  description: [
16369
16370
  "Restores a file or directory to its original auto-generated state,",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.7.0",
3
+ "version": "11.7.2",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
package/src/bin/main.ts CHANGED
@@ -303,7 +303,7 @@ program
303
303
  key: "path",
304
304
  name: (() => {
305
305
  const long = "path";
306
- const short = "p";
306
+ const short = "t";
307
307
 
308
308
  optionsKeys.push(long, short);
309
309
 
@@ -318,11 +318,12 @@ program
318
318
  .option({
319
319
  key: "revert",
320
320
  name: (() => {
321
- const name = "revert";
321
+ const long = "revert";
322
+ const short = "r";
322
323
 
323
- optionsKeys.push(name);
324
+ optionsKeys.push(long, short);
324
325
 
325
- return name;
326
+ return { long, short };
326
327
  })(),
327
328
  description: [
328
329
  "Restores a file or directory to its original auto-generated state,",
@@ -104,7 +104,10 @@ function addCommentToSourceCode(params: {
104
104
  `<!--`,
105
105
  ...commentLines.map(
106
106
  line =>
107
- ` ${line.replace("--path", "-p").replace("Before modifying", "Before modifying or replacing")}`
107
+ ` ${line
108
+ .replace("--path", "-t")
109
+ .replace("--revert", "-r")
110
+ .replace("Before modifying", "Before modifying or replacing")}`
108
111
  ),
109
112
  `-->`
110
113
  ].join("\n");
@@ -155,8 +155,9 @@ export function keycloakify(params: keycloakify.Params) {
155
155
  {
156
156
  const isJavascriptFile = id.endsWith(".js") || id.endsWith(".jsx");
157
157
  const isTypeScriptFile = id.endsWith(".ts") || id.endsWith(".tsx");
158
+ const isSvelteFile = id.endsWith(".svelte");
158
159
 
159
- if (!isTypeScriptFile && !isJavascriptFile) {
160
+ if (!isTypeScriptFile && !isJavascriptFile && !isSvelteFile) {
160
161
  return;
161
162
  }
162
163
  }
@@ -5819,7 +5819,8 @@ function keycloakify(params) {
5819
5819
  {
5820
5820
  const isJavascriptFile = id.endsWith(".js") || id.endsWith(".jsx");
5821
5821
  const isTypeScriptFile = id.endsWith(".ts") || id.endsWith(".tsx");
5822
- if (!isTypeScriptFile && !isJavascriptFile) {
5822
+ const isSvelteFile = id.endsWith(".svelte");
5823
+ if (!isTypeScriptFile && !isJavascriptFile && !isSvelteFile) {
5823
5824
  return;
5824
5825
  }
5825
5826
  }