@keycloak/keycloak-account-ui 26.1.3 → 26.2.0
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 +4 -4
- package/lib/.vite/manifest.json +1 -19
- package/lib/api/representations.d.ts +7 -3
- package/lib/keycloak-account-ui.js +17906 -37
- package/lib/keycloak-account-ui.js.map +1 -1
- package/package.json +20 -19
- package/lib/browser-ponyfill-BmECgntS.js +0 -342
- package/lib/browser-ponyfill-BmECgntS.js.map +0 -1
- package/lib/index-CxMwC9bc.js +0 -20516
- package/lib/index-CxMwC9bc.js.map +0 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ import { KeycloakProvider } from "@keycloak/keycloak-ui-shared";
|
|
|
33
33
|
### Translation
|
|
34
34
|
|
|
35
35
|
For the translation we use `react-i18next` you can [set it up](https://react.i18next.com/) as described on their website.
|
|
36
|
-
If you want to use the translations that are provided then you need to add `i18next-
|
|
36
|
+
If you want to use the translations that are provided then you need to add `i18next-fetch-backend` to your project and add:
|
|
37
37
|
|
|
38
38
|
```ts
|
|
39
39
|
|
|
@@ -42,9 +42,9 @@ backend: {
|
|
|
42
42
|
parse: (data: string) => {
|
|
43
43
|
const messages = JSON.parse(data);
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
return Object.fromEntries(
|
|
46
|
+
messages.map(({ key, value }) => [key, value])
|
|
47
|
+
);
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
```
|
package/lib/.vite/manifest.json
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_browser-ponyfill-BmECgntS.js": {
|
|
3
|
-
"file": "browser-ponyfill-BmECgntS.js",
|
|
4
|
-
"name": "browser-ponyfill",
|
|
5
|
-
"isDynamicEntry": true,
|
|
6
|
-
"imports": [
|
|
7
|
-
"_index-CxMwC9bc.js"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"_index-CxMwC9bc.js": {
|
|
11
|
-
"file": "index-CxMwC9bc.js",
|
|
12
|
-
"name": "index",
|
|
13
|
-
"dynamicImports": [
|
|
14
|
-
"_browser-ponyfill-BmECgntS.js"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
2
|
"src/index.ts": {
|
|
18
3
|
"file": "keycloak-account-ui.js",
|
|
19
4
|
"name": "index",
|
|
20
5
|
"src": "src/index.ts",
|
|
21
|
-
"isEntry": true
|
|
22
|
-
"imports": [
|
|
23
|
-
"_index-CxMwC9bc.js"
|
|
24
|
-
]
|
|
6
|
+
"isEntry": true
|
|
25
7
|
},
|
|
26
8
|
"style.css": {
|
|
27
9
|
"file": "keycloak-account-ui.css",
|
|
@@ -28,10 +28,14 @@ export interface ConsentScopeRepresentation {
|
|
|
28
28
|
name: string;
|
|
29
29
|
displayTest: string;
|
|
30
30
|
}
|
|
31
|
+
export interface CredentialMetadataRepresentationMessage {
|
|
32
|
+
key: string;
|
|
33
|
+
parameters?: string[];
|
|
34
|
+
}
|
|
31
35
|
export interface CredentialMetadataRepresentation {
|
|
32
|
-
infoMessage:
|
|
33
|
-
warningMessageTitle:
|
|
34
|
-
warningMessageDescription:
|
|
36
|
+
infoMessage: CredentialMetadataRepresentationMessage;
|
|
37
|
+
warningMessageTitle: CredentialMetadataRepresentationMessage;
|
|
38
|
+
warningMessageDescription: CredentialMetadataRepresentationMessage;
|
|
35
39
|
credential: CredentialRepresentation;
|
|
36
40
|
}
|
|
37
41
|
export interface DeviceRepresentation {
|