Update to Keycloakify 11

This commit is contained in:
Joseph Garrone 2024-09-23 00:37:16 +02:00
parent fb9b24f4d1
commit 5001393c21
4 changed files with 15 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<p align="center"> <p align="center">
<i>🚀 <a href="https://keycloakify.dev">Keycloakify</a> v10 starter 🚀</i> <i>🚀 <a href="https://keycloakify.dev">Keycloakify</a> v11 starter 🚀</i>
<br/> <br/>
<br/> <br/>
</p> </p>

View File

@ -17,7 +17,7 @@
"license": "MIT", "license": "MIT",
"keywords": [], "keywords": [],
"dependencies": { "dependencies": {
"keycloakify": "^10.1.4", "keycloakify": "^11.0.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0" "react-dom": "^18.2.0"
}, },

View File

@ -1,5 +1,11 @@
import { createUseI18n } from "keycloakify/login"; import { i18nBuilder } from "keycloakify/login";
import type { ThemeName } from "../kc.gen";
export const { useI18n, ofTypeI18n } = createUseI18n({}); /** @see: https://docs.keycloakify.dev/i18n */
const { useI18n, ofTypeI18n } = i18nBuilder
.withThemeName<ThemeName>()
.build();
export type I18n = typeof ofTypeI18n; type I18n = typeof ofTypeI18n;
export { useI18n, type I18n };

View File

@ -4015,10 +4015,10 @@ jsonfile@^6.0.1:
optionalDependencies: optionalDependencies:
graceful-fs "^4.1.6" graceful-fs "^4.1.6"
keycloakify@^10.1.4: keycloakify@^11.0.0:
version "10.1.4" version "11.0.0"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-10.1.4.tgz#ba640a9ce20f7bf1e7515605afcc2fb86f3005a1" resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-11.0.0.tgz#ae679297669a620841b6d324f7d0c787d34c07a5"
integrity sha512-YgroCRyh+dLS886kGFt1E1wU0U88NDi53blRryzLhbL1Pmrzp6+ZfLhqxOFBp2F8QICYOk10AlaMpzUqS54bjg== integrity sha512-PW5j2lSTxr/yN4qJ4/TNQIuuPkaZN2gTZiXpGIYL4PMgWsDLkj+xfZrI7am7snbgOGg63GQ4gKVvirl5atIuuA==
dependencies: dependencies:
tsafe "^1.6.6" tsafe "^1.6.6"