Update keycloakify

This commit is contained in:
garronej 2023-06-20 15:01:13 +02:00
parent c339625b02
commit 746d3f4064
3 changed files with 10 additions and 8 deletions

View file

@ -37,7 +37,7 @@
"evt": "^2.4.15",
"jwt-decode": "^3.1.2",
"keycloak-js": "^21.0.1",
"keycloakify": "^7.13.1",
"keycloakify": "^7.13.2",
"powerhooks": "^0.26.8",
"react": "18.1.0",
"react-dom": "18.1.0",

View file

@ -17,7 +17,7 @@ export type UserProfileFormFieldsProps = {
export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
const { kcContext, onIsFormSubmittableValueChange, i18n, getClassName, BeforeField, AfterField } = props;
const { advancedMsg } = i18n;
const { advancedMsg, msg } = i18n;
const {
formValidationState: { fieldStateByAttributeName, isFormSubmittable },
@ -99,7 +99,9 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
value={value}
>
<>
<option value="" selected disabled hidden>Select an option</option>
<option value="" selected disabled hidden>
{msg("selectAnOption")}
</option>
{options.options.map(option => (
<option key={option} value={option}>
{option}
@ -172,4 +174,4 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
})}
</>
);
}
}

View file

@ -9697,10 +9697,10 @@ keycloak-js@^21.0.1:
base64-js "^1.5.1"
js-sha256 "^0.9.0"
keycloakify@^7.13.1:
version "7.13.1"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-7.13.1.tgz#4e22868f9227284551b57814896399be186b347b"
integrity sha512-p7zOGwOA0LtkFejsv/pXcYfWc+7PFpRXOb3IW0Ne2mPTQbiIY4lo13o1bIg2h+XX2E8xxq2ZzqvQ4HiCmCwqJg==
keycloakify@^7.13.2:
version "7.13.2"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-7.13.2.tgz#60aec6cc70566423267b72fd4d6cd8f7e009cf00"
integrity sha512-oGTIYh0fWD0BMztEwsxdb+MGIIAYWJL6SQ0BES6N6arwjUwF4mMy0yAyAMZ2FBuTcf+FadaoOXYwFFCCN36GXw==
dependencies:
"@octokit/rest" "^18.12.0"
"@types/yazl" "^2.4.2"