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.
- package/bin/526.index.js +15 -3
- package/bin/932.index.js +5 -1
- package/login/lib/useUserProfileForm.js +175 -149
- package/login/lib/useUserProfileForm.js.map +1 -1
- package/package.json +6 -2
- package/src/bin/initialize-email-theme.ts +1 -0
- package/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl +11 -1
- package/src/bin/shared/promptKeycloakVersion.ts +6 -1
- package/src/bin/start-keycloak/myrealm-realm-18.json +2155 -0
- package/src/bin/start-keycloak/myrealm-realm-19.json +2186 -0
- package/src/bin/start-keycloak/myrealm-realm-20.json +2197 -0
- package/src/bin/start-keycloak/myrealm-realm-21.json +2201 -0
- package/src/bin/start-keycloak/myrealm-realm-23.json +20 -12
- package/src/bin/start-keycloak/myrealm-realm-24.json +10 -10
- package/src/bin/start-keycloak/myrealm-realm-25.json +2400 -0
- package/src/bin/start-keycloak/start-keycloak.ts +14 -2
- package/src/login/lib/useUserProfileForm.tsx +182 -180
- package/src/tools/formatNumber.ts +3 -2
- package/tools/formatNumber.js +2 -1
- package/tools/formatNumber.js.map +1 -1
@@ -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
|
);
|