keycloakify 10.0.0-rc.48 → 10.0.0-rc.49

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.
@@ -180,6 +180,16 @@ try {
180
180
  <#if attribute.annotations.inputTypePlaceholder??>
181
181
  "${attribute.annotations.inputTypePlaceholder}": decodeHtmlEntities("${advancedMsg(attribute.annotations.inputTypePlaceholder)?js_string}"),
182
182
  </#if>
183
+ <!-- Loop through the options that are in attribute.validators.options.options -->
184
+ <#if (
185
+ attribute.annotations.inputOptionLabelsI18nPrefix?? &&
186
+ attribute.validators?? &&
187
+ attribute.validators.options??
188
+ )>
189
+ <#list attribute.validators.options.options as option>
190
+ "${attribute.annotations.inputOptionLabelsI18nPrefix}.${option}": decodeHtmlEntities("${msg(attribute.annotations.inputOptionLabelsI18nPrefix + "." + option)?js_string}"),
191
+ </#list>
192
+ </#if>
183
193
  </#list>
184
194
  };
185
195
  </#if>
@@ -326,7 +336,7 @@ function decodeHtmlEntities(htmlStr){
326
336
 
327
337
  <#-- https://github.com/keycloakify/keycloakify/discussions/406 -->
328
338
  <#if (
329
- ["register.ftl", "register-user-profile.ftl", "info.ftl", "login.ftl", "login-update-password.ftl", "login-oauth2-device-verify-user-code.ftl"]?seq_contains(pageId) &&
339
+ ["register.ftl", "register-user-profile.ftl", "terms.ftl", "info.ftl", "login.ftl", "login-update-password.ftl", "login-oauth2-device-verify-user-code.ftl"]?seq_contains(pageId) &&
330
340
  key == "attemptedUsername" && are_same_path(path, ["auth"])
331
341
  )>
332
342
  <#attempt>
@@ -9,9 +9,10 @@ import { id } from "tsafe/id";
9
9
 
10
10
  export async function promptKeycloakVersion(params: {
11
11
  startingFromMajor: number | undefined;
12
+ excludeMajorVersions: number[];
12
13
  cacheDirPath: string;
13
14
  }) {
14
- const { startingFromMajor, cacheDirPath } = params;
15
+ const { startingFromMajor, excludeMajorVersions, cacheDirPath } = params;
15
16
 
16
17
  const { getLatestsSemVersionedTag } = (() => {
17
18
  const { octokit } = (() => {
@@ -95,6 +96,10 @@ export async function promptKeycloakVersion(params: {
95
96
  return;
96
97
  }
97
98
 
99
+ if (excludeMajorVersions.includes(semVersionedTag.version.major)) {
100
+ return;
101
+ }
102
+
98
103
  const currentSemVersionedTag = semVersionedTagByMajor.get(
99
104
  semVersionedTag.version.major
100
105
  );