@keycloak/keycloak-account-ui 25.0.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.
Files changed (51) hide show
  1. package/LICENSE.txt +202 -0
  2. package/README.md +97 -0
  3. package/lib/account-security/AccountRow.d.ts +9 -0
  4. package/lib/account-security/DeviceActivity.d.ts +2 -0
  5. package/lib/account-security/LinkedAccounts.d.ts +2 -0
  6. package/lib/account-security/SigningIn.d.ts +2 -0
  7. package/lib/api/constants.d.ts +2 -0
  8. package/lib/api/methods.d.ts +26 -0
  9. package/lib/api/parse-links.d.ts +5 -0
  10. package/lib/api/parse-response.d.ts +3 -0
  11. package/lib/api/representations.d.ts +202 -0
  12. package/lib/api/request.d.ts +13 -0
  13. package/lib/api.d.ts +14 -0
  14. package/lib/applications/Applications.d.ts +2 -0
  15. package/lib/components/datalist/EmptyRow.d.ts +5 -0
  16. package/lib/components/page/Page.d.ts +8 -0
  17. package/lib/constants.d.ts +4 -0
  18. package/lib/content/ContentComponent.d.ts +2 -0
  19. package/lib/content/fetchContent.d.ts +4 -0
  20. package/lib/content.json +31 -0
  21. package/lib/environment.d.ts +26 -0
  22. package/lib/favicon.svg +63 -0
  23. package/lib/groups/Groups.d.ts +2 -0
  24. package/lib/i18n.d.ts +5 -0
  25. package/lib/index.d.ts +22 -0
  26. package/lib/keycloak-account-ui.d.ts +1 -0
  27. package/lib/keycloak-account-ui.js +17586 -0
  28. package/lib/keycloak-account-ui.js.map +1 -0
  29. package/lib/logo.svg +1 -0
  30. package/lib/main.d.ts +1 -0
  31. package/lib/oid4vci/Oid4Vci.d.ts +2 -0
  32. package/lib/personal-info/PersonalInfo.d.ts +2 -0
  33. package/lib/resources/EditTheResource.d.ts +9 -0
  34. package/lib/resources/PermissionRequest.d.ts +8 -0
  35. package/lib/resources/ResourceToolbar.d.ts +12 -0
  36. package/lib/resources/Resources.d.ts +2 -0
  37. package/lib/resources/ResourcesTab.d.ts +5 -0
  38. package/lib/resources/ShareTheResource.d.ts +10 -0
  39. package/lib/resources/SharedWith.d.ts +7 -0
  40. package/lib/root/ErrorPage.d.ts +5 -0
  41. package/lib/root/Header.d.ts +1 -0
  42. package/lib/root/PageNav.d.ts +24 -0
  43. package/lib/root/Root.d.ts +1 -0
  44. package/lib/routes.d.ts +16 -0
  45. package/lib/style.css +1 -0
  46. package/lib/utils/formatDate.d.ts +4 -0
  47. package/lib/utils/getRootPath.d.ts +1 -0
  48. package/lib/utils/isRecord.d.ts +1 -0
  49. package/lib/utils/joinPath.d.ts +1 -0
  50. package/lib/utils/usePromise.d.ts +42 -0
  51. package/package.json +91 -0
@@ -0,0 +1,26 @@
1
+ import { BaseEnvironment } from '@keycloak/keycloak-ui-shared';
2
+
3
+ export type Environment = BaseEnvironment & {
4
+ /** The URL to the root of the account console. */
5
+ baseUrl: string;
6
+ /** The locale of the user */
7
+ locale: string;
8
+ /** Name of the referrer application in the back link */
9
+ referrerName?: string;
10
+ /** UR to the referrer application in the back link */
11
+ referrerUrl?: string;
12
+ /** Feature flags */
13
+ features: Feature;
14
+ };
15
+ export type Feature = {
16
+ isRegistrationEmailAsUsername: boolean;
17
+ isEditUserNameAllowed: boolean;
18
+ isLinkedAccountsEnabled: boolean;
19
+ isMyResourcesEnabled: boolean;
20
+ deleteAccountAllowed: boolean;
21
+ updateEmailFeatureEnabled: boolean;
22
+ updateEmailActionEnabled: boolean;
23
+ isViewGroupsEnabled: boolean;
24
+ isOid4VciEnabled: boolean;
25
+ };
26
+ export declare const environment: Environment;
@@ -0,0 +1,63 @@
1
+ <svg id="Layer_1" data-name="Layer 1" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg">
2
+ <defs id="defs10">
3
+ <clipPath id="clip-path">
4
+ <path class="cls-1" id="rect4" d="M-1018.62 565.7H862.62v1175.78h-1881.24z" />
5
+ </clipPath>
6
+ <clipPath id="clip-path-2">
7
+ <path class="cls-1" id="rect7" d="M0 0h512v512H0z" />
8
+ </clipPath>
9
+ <style id="style2">.cls-1{fill:none}.cls-24{fill:#d0d0d0}.cls-26{fill:#d9d9d9}.cls-28{fill:#d8d8d8}.cls-29{fill:#e2e2e2}.cls-31{fill:#dedede}.cls-36{fill:#00b8e3}.cls-37{fill:#33c6e9}.cls-38{fill:#008aaa}</style>
10
+ </defs>
11
+ <g clip-path="url(#clip-path)" id="g36" stroke-width="1.51">
12
+ <path d="M-42.82 358l245 24.8 199.4 2z" id="path14" fill="#b17c81" stroke="#b17c81" />
13
+ <path d="M-42.82 358l444.44 26.79 227.18-2z" id="path16" fill="#a2747c" stroke="#a2747c" />
14
+ <path d="M401.62 384.74l163.69 138.89 63.49-140.87z" id="path18" fill="#996976" stroke="#996976" />
15
+ <path d="M202.22 382.76l54.56 14.88 144.84-12.9z" id="path20" fill="#aa787e" stroke="#aa787e" />
16
+ <path d="M401.62 384.74L356 537.52l209.32-13.89z" id="path22" fill="#b2777e" stroke="#b2777e" />
17
+ <path d="M256.78 397.64L356 537.52l45.63-152.78z" id="path24" fill="#b27a7f" stroke="#b27a7f" />
18
+ <path d="M256.78 397.64l-92.26 135.91 191.47 4z" id="path26" fill="#c78485" stroke="#c78485" />
19
+ <path d="M202.22 382.76l-37.7 150.79 92.26-135.91z" id="path28" fill="#c08184" stroke="#c08184" />
20
+ <path d="M-42.82 358l207.34 175.55 37.7-150.79z" id="path30" fill="#c48485" stroke="#c48485" />
21
+ <path d="M-42.82 358l-51.59 137.9 258.93 37.7z" id="path32" fill="#d58b88" stroke="#d58b88" />
22
+ <path d="M-94.41 495.85L-33.89 598l198.41-64.48z" id="path34" fill="#e09790" stroke="#e09790" />
23
+ </g>
24
+ <g clip-path="url(#clip-path-2)" id="g110">
25
+ <path d="M438.48 152a3.79 3.79 0 01-3.32-1.89L377.39 49.94a3.91 3.91 0 00-3.39-1.89H138.33a3.79 3.79 0 00-3.33 1.89L75 153.89l-55.83 100.2a3.88 3.88 0 000 3.82L75 358l60 104a3.79 3.79 0 003.32 1.89H374a3.91 3.91 0 003.36-1.89l57.84-100.1a3.79 3.79 0 013.32-1.89h71.93a4.32 4.32 0 004.32-4.32V156.32a4.32 4.32 0 00-4.32-4.32h-72z" id="path38" fill="#4d4d4d" />
26
+ <path d="M72.85 157.64l-55.191 98.369 5.871 12.931 54.845 89.592L114.19 360l287.27-.02H461l38.264-9.68 15.496-42.81.01-49.36v-45.72L510.46 152h-71.98l-22.11.01H147.94l-75.09 5.63" id="path27674" fill="#e2e2e2" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-opacity="1" fill-opacity="1" />
27
+ <path class="cls-1" d="M510.46 152H78.34a3.91 3.91 0 00-3.34 1.89v.07l-2.14 3.69-26.45 45.83-29.23 50.63a3.8 3.8 0 000 3.83l6.35 11L75 358.06a3.84 3.84 0 003.34 1.94h432.18a4.27 4.27 0 004.24-4.28V156.34a4.32 4.32 0 00-4.3-4.34z" id="path40" />
28
+ <path d="M88.1 245.5l-64.57 23.44-6.35-11a3.8 3.8 0 010-3.83l29.23-50.63z" id="path42" fill="#e1e1e1" />
29
+ <path id="polygon44" fill="#c8c8c8" d="M472.21 264.21l42.56-6.08v49.36l-42.56-43.28z" />
30
+ <path d="M472.21 264.21l42.55 43.28v48.21a4.27 4.27 0 01-4.24 4.28H461z" id="path46" fill="#c2c2c2" />
31
+ <path id="polygon48" fill="#c7c7c7" d="M472.21 264.21L461 359.98h-59.54l-18.04-43.45 88.79-52.32z" />
32
+ <path id="polygon50" fill="#cecece" d="M472.21 264.21l42.56-51.8v45.72l-42.56 6.08z" />
33
+ <path d="M514.77 156.33v56.08l-42.55 51.8L440.12 152h70.33a4.32 4.32 0 014.32 4.33z" id="path52" fill="#d3d3d3" />
34
+ <path id="polygon54" fill="#c6c6c6" d="M401.46 359.98h-31.4l-8.14-11.67 21.5-31.78 18.04 43.45z" />
35
+ <path id="polygon56" fill="#d5d5d5" d="M472.21 264.21l-117.79-49.79 61.95-62.41h23.75l32.09 112.2z" />
36
+ <path class="cls-24" d="M354.42 214.42l29 102.11 88.8-52.32z" id="path58" />
37
+ <path id="polygon60" fill="#bfbfbf" d="M370.06 359.98h-8.52l.38-11.67 8.14 11.67z" />
38
+ <path class="cls-26" id="polygon62" d="M416.37 152.01l-61.95 62.41-11.18-55.82 23.92-6.59h49.21z" />
39
+ <path d="M354.42 214.42l-143 33 150.5 100.89z" id="path64" fill="#d4d4d4" />
40
+ <path class="cls-24" d="M354.42 214.42l7.49 133.9 21.5-31.78z" id="path66" />
41
+ <path class="cls-26" d="M343.24 158.6l-131.77 88.79 143-33z" id="path68" />
42
+ <path class="cls-28" id="polygon70" d="M211.47 247.39L149.5 359.98h-35.31L88.1 245.5l123.37 1.89z" />
43
+ <path class="cls-29" d="M147.94 152L88.1 245.5l-15.25-87.86 2.15-3.7v-.07a3.91 3.91 0 013.33-1.87h69.61z" id="path72" />
44
+ <path class="cls-28" d="M114.19 360H78.33a3.84 3.84 0 01-3.33-2l-51.47-89.06L88.1 245.5z" id="path74" />
45
+ <path id="polygon76" fill="#e4e4e4" d="M46.41 203.47l26.44-45.83L88.1 245.5z" />
46
+ <path class="cls-31" id="polygon78" d="M276.77 152.01H172.39l39.08 95.38 131.77-88.79-39.72-6.59h-26.75z" />
47
+ <path class="cls-31" id="polygon80" d="M156.09 152.01h-8.15L88.1 245.5l123.37 1.89-39.08-95.38h-16.3z" />
48
+ <path id="polygon82" fill="#c5c5c5" d="M333.23 359.98h28.31l.38-11.67-28.69 11.67z" />
49
+ <path class="cls-24" id="polygon84" d="M361.92 348.31L211.47 247.39l27.1 112.59h94.66l28.69-11.67z" />
50
+ <path id="polygon86" fill="#d1d1d1" d="M149.5 359.98H238.57l-27.1-112.59-61.97 112.59z" />
51
+ <path id="polygon88" fill="#ddd" d="M343.65 152.01l-.41 6.59 23.92-6.59H343.65z" />
52
+ <path id="polygon90" fill="#e3e3e3" d="M303.52 152.01l39.72 6.59-3.66-6.59h-36.06z" />
53
+ <path class="cls-29" id="polygon92" d="M339.58 152.01l3.66 6.59.41-6.59h-4.07z" />
54
+ <path class="cls-36" d="M235.15 153.81L177 254.46a3.38 3.38 0 00-.42 1.64h-40.51l79.74-138.18a3.14 3.14 0 011.19 1.15l.11.11 18.08 31.41a3.49 3.49 0 01-.04 3.22z" id="path94" />
55
+ <path class="cls-37" d="M235.08 361.89l-18 31.27a3.51 3.51 0 01-1.22 1.15L136 256.14h40.6a3.09 3.09 0 00.38 1.57.37.37 0 00.07.17l58 100.58a3.41 3.41 0 01.03 3.43z" id="path96" />
56
+ <path class="cls-38" d="M215.81 117.92L136.07 256.1l-20 34.66-19.1-33.12a3.09 3.09 0 01-.38-1.57 3.38 3.38 0 01.42-1.64l19.3-33.43 58.75-101.74a3.4 3.4 0 013-1.75h36.04a3.58 3.58 0 011.71.41z" id="path98" />
57
+ <path class="cls-36" d="M215.81 394.31a3.58 3.58 0 01-1.71.45H178a3.4 3.4 0 01-3-1.75l-53.72-93-5.28-9.22 20-34.66z" id="path100" />
58
+ <path class="cls-38" d="M376.19 256.1l-79.8 138.21a3.73 3.73 0 01-1.19-1.15l-.07-.1L277 361.72a3.49 3.49 0 010-3.22l58.06-100.65a3.38 3.38 0 00.49-1.75h40.57z" id="path102" />
59
+ <path class="cls-36" d="M415.68 256.1a3.38 3.38 0 01-.49 1.75l-78.13 135.31a3.42 3.42 0 01-2.9 1.61h-36a3.72 3.72 0 01-1.75-.45l79.78-138.22 20-34.62 19 32.91a3.35 3.35 0 01.49 1.71z" id="path104" />
60
+ <path class="cls-36" d="M376.19 256.1h-40.56a3.35 3.35 0 00-.49-1.71l-58-100.55a3.41 3.41 0 010-3.46l18.08-31.3a3.73 3.73 0 011.19-1.15z" id="path106" />
61
+ <path class="cls-37" d="M396.2 221.44l-20 34.62-79.81-138.14a3.72 3.72 0 011.75-.45h36a3.42 3.42 0 012.9 1.61z" id="path108" />
62
+ </g>
63
+ </svg>
@@ -0,0 +1,2 @@
1
+ export declare const Groups: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Groups;
package/lib/i18n.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { LanguageDetectorModule } from 'i18next';
2
+
3
+ export type TFuncKey = any;
4
+ export declare const keycloakLanguageDetector: LanguageDetectorModule;
5
+ export declare const i18n: import('i18next').i18n;
package/lib/index.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ export { PersonalInfo } from './personal-info/PersonalInfo';
2
+ export { ErrorPage } from './root/ErrorPage';
3
+ export { Header } from './root/Header';
4
+ export { PageNav } from './root/PageNav';
5
+ export { DeviceActivity } from './account-security/DeviceActivity';
6
+ export { LinkedAccounts } from './account-security/LinkedAccounts';
7
+ export { SigningIn } from './account-security/SigningIn';
8
+ export type { AccountLinkUriRepresentation, Client, ClientRepresentation, ConsentRepresentation, ConsentScopeRepresentation, CredentialContainer, CredentialMetadataRepresentation, CredentialRepresentation, CredentialTypeMetadata, DeviceRepresentation, Group, LinkedAccountRepresentation, Permission, Permissions, Resource, Scope, SessionRepresentation, UserProfileAttributeMetadata, UserProfileMetadata, UserRepresentation, } from './api/representations';
9
+ export { Applications } from './applications/Applications';
10
+ export { EmptyRow } from './components/datalist/EmptyRow';
11
+ export { Page } from './components/page/Page';
12
+ export { ContentComponent } from './content/ContentComponent';
13
+ export { Groups } from './groups/Groups';
14
+ export { EditTheResource } from './resources/EditTheResource';
15
+ export { PermissionRequest } from './resources/PermissionRequest';
16
+ export { Resources } from './resources/Resources';
17
+ export { ResourcesTab } from './resources/ResourcesTab';
18
+ export { ResourceToolbar } from './resources/ResourceToolbar';
19
+ export { SharedWith } from './resources/SharedWith';
20
+ export { Oid4Vci } from './oid4vci/Oid4Vci';
21
+ export { ShareTheResource } from './resources/ShareTheResource';
22
+ export { deleteConsent, deleteSession, getApplications, getCredentials, getDevices, getGroups, getLinkedAccounts, getPermissionRequests, getPersonalInfo, getSupportedLocales, linkAccount, savePersonalInfo, unLinkAccount, } from './api/methods';
@@ -0,0 +1 @@
1
+ export * from './index'