@keycloak/keycloak-admin-ui 26.7.4 → 26.8.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 (74) hide show
  1. package/README.md +10 -0
  2. package/lib/.vite/manifest.json +52 -42
  3. package/lib/{AddDefaultTrust-DbbiiG4i.js → AddDefaultTrust-0TzkSSVz.js} +8 -8
  4. package/lib/{AddDefaultTrust-DbbiiG4i.js.map → AddDefaultTrust-0TzkSSVz.js.map} +1 -1
  5. package/lib/{AddJWTAuthorizationGrant-C-dtbDTh.js → AddJWTAuthorizationGrant-BBVNGscZ.js} +12 -12
  6. package/lib/{AddJWTAuthorizationGrant-C-dtbDTh.js.map → AddJWTAuthorizationGrant-BBVNGscZ.js.map} +1 -1
  7. package/lib/{AddKubernetesConnect-DcdkNZw-.js → AddKubernetesConnect-D_HJWqhs.js} +14 -11
  8. package/lib/AddKubernetesConnect-D_HJWqhs.js.map +1 -0
  9. package/lib/{AddOAuth2-D5paCYlN.js → AddOAuth2-BiNgjhyO.js} +13 -13
  10. package/lib/{AddOAuth2-D5paCYlN.js.map → AddOAuth2-BiNgjhyO.js.map} +1 -1
  11. package/lib/AddOid4Vp-gKawBcrP.js +73 -0
  12. package/lib/AddOid4Vp-gKawBcrP.js.map +1 -0
  13. package/lib/{AddSpiffeConnect-BA5o5iWQ.js → AddSpiffeConnect-BmHbvLbU.js} +8 -8
  14. package/lib/{AddSpiffeConnect-BA5o5iWQ.js.map → AddSpiffeConnect-BmHbvLbU.js.map} +1 -1
  15. package/lib/{CreateFlow-CsrOkWJK.js → CreateFlow-9Jjjw5b9.js} +2 -2
  16. package/lib/{CreateFlow-CsrOkWJK.js.map → CreateFlow-9Jjjw5b9.js.map} +1 -1
  17. package/lib/DetailOrganization-DZcO3bbq.js +420 -0
  18. package/lib/DetailOrganization-DZcO3bbq.js.map +1 -0
  19. package/lib/{ExecutorForm-Dhf61xr_.js → ExecutorForm-BrHBEQVA.js} +23 -23
  20. package/lib/{ExecutorForm-Dhf61xr_.js.map → ExecutorForm-BrHBEQVA.js.map} +1 -1
  21. package/lib/{FlowDetails-D66-ow3L.js → FlowDetails-FqkRF9Fk.js} +243 -226
  22. package/lib/{FlowDetails-D66-ow3L.js.map → FlowDetails-FqkRF9Fk.js.map} +1 -1
  23. package/lib/{NewOrganization-CstM2Q0Y.js → NewOrganization-mwmhTgBv.js} +13 -13
  24. package/lib/NewOrganization-mwmhTgBv.js.map +1 -0
  25. package/lib/{PermissionConfigurationDetails-DH5b34p8.js → PermissionConfigurationDetails-BWUvLMh4.js} +92 -91
  26. package/lib/PermissionConfigurationDetails-BWUvLMh4.js.map +1 -0
  27. package/lib/PermissionDetails-BkVFczt9.js +437 -0
  28. package/lib/PermissionDetails-BkVFczt9.js.map +1 -0
  29. package/lib/{RealmSection-DcQUYY0v.js → RealmSection-DJ8T80Z6.js} +26 -26
  30. package/lib/{RealmSection-DcQUYY0v.js.map → RealmSection-DJ8T80Z6.js.map} +1 -1
  31. package/lib/{ResourceDetails-DpRkk4_g.js → ResourceDetails-Cyb5CmVt.js} +24 -24
  32. package/lib/{ResourceDetails-DpRkk4_g.js.map → ResourceDetails-Cyb5CmVt.js.map} +1 -1
  33. package/lib/{ScopeDetails-BbT6mJGv.js → ScopeDetails-BV7h3hMw.js} +17 -17
  34. package/lib/{ScopeDetails-BbT6mJGv.js.map → ScopeDetails-BV7h3hMw.js.map} +1 -1
  35. package/lib/{ScopePicker-CPAN5Qis.js → ScopePicker-USX1qW3k.js} +18 -18
  36. package/lib/{ScopePicker-CPAN5Qis.js.map → ScopePicker-USX1qW3k.js.map} +1 -1
  37. package/lib/{WorkflowDetailForm-Cr5DYK4G.js → WorkflowDetailForm-BDIXzgoJ.js} +31 -31
  38. package/lib/{WorkflowDetailForm-Cr5DYK4G.js.map → WorkflowDetailForm-BDIXzgoJ.js.map} +1 -1
  39. package/lib/{WorkflowsSection-CyUnAYVa.js → WorkflowsSection-Htg3cqfo.js} +16 -16
  40. package/lib/{WorkflowsSection-CyUnAYVa.js.map → WorkflowsSection-Htg3cqfo.js.map} +1 -1
  41. package/lib/apps/admin-ui/src/authentication/constants.d.ts +3 -1
  42. package/lib/apps/admin-ui/src/client-scopes/details/oid4vciAttributes.d.ts +8 -3
  43. package/lib/apps/admin-ui/src/clients/ssf/tabs/CreateStreamForm.d.ts +18 -0
  44. package/lib/apps/admin-ui/src/clients/ssf/utils.d.ts +13 -0
  45. package/lib/apps/admin-ui/src/components/client/ClientSelect.d.ts +3 -4
  46. package/lib/apps/admin-ui/src/components/client/ClientSelectModal.d.ts +8 -0
  47. package/lib/apps/admin-ui/src/components/group/GroupPickerDialog.d.ts +8 -2
  48. package/lib/apps/admin-ui/src/components/role-mapping/RoleMapping.d.ts +1 -32
  49. package/lib/apps/admin-ui/src/components/role-mapping/resource.d.ts +9 -1
  50. package/lib/apps/admin-ui/src/context/identity-provider/IdentityProviderContext.d.ts +12 -0
  51. package/lib/apps/admin-ui/src/identity-providers/add/AddOid4Vp.d.ts +1 -0
  52. package/lib/apps/admin-ui/src/identity-providers/add/IdpDomainsTab.d.ts +5 -0
  53. package/lib/apps/admin-ui/src/identity-providers/add/IdpOrganizationsTab.d.ts +6 -0
  54. package/lib/apps/admin-ui/src/identity-providers/add/Oid4VpSettings.d.ts +1 -0
  55. package/lib/apps/admin-ui/src/identity-providers/routes/IdentityProvider.d.ts +1 -1
  56. package/lib/apps/admin-ui/src/identity-providers/routes/IdentityProviderOid4Vp.d.ts +7 -0
  57. package/lib/apps/admin-ui/src/organizations/DomainsTab.d.ts +1 -0
  58. package/lib/apps/admin-ui/src/organizations/IdentityProviderSelect.d.ts +4 -1
  59. package/lib/apps/admin-ui/src/organizations/MembershipTypeToggle.d.ts +9 -0
  60. package/lib/apps/admin-ui/src/organizations/OrganizationForm.d.ts +4 -1
  61. package/lib/apps/admin-ui/src/organizations/routes/EditOrganization.d.ts +1 -1
  62. package/lib/apps/admin-ui/src/realm-settings/ssf/SsfTransmitterDisableConfirmDialog.d.ts +1 -1
  63. package/lib/apps/admin-ui/src/utils/useIsFeatureEnabled.d.ts +3 -1
  64. package/lib/{index-BEI4c3WS.js → index-DsIT2BLV.js} +23964 -23052
  65. package/lib/{index-BEI4c3WS.js.map → index-DsIT2BLV.js.map} +1 -1
  66. package/lib/keycloak-admin-ui.js +75 -75
  67. package/package.json +4 -4
  68. package/lib/AddKubernetesConnect-DcdkNZw-.js.map +0 -1
  69. package/lib/DetailOrganization-DzPHda7g.js +0 -204
  70. package/lib/DetailOrganization-DzPHda7g.js.map +0 -1
  71. package/lib/NewOrganization-CstM2Q0Y.js.map +0 -1
  72. package/lib/PermissionConfigurationDetails-DH5b34p8.js.map +0 -1
  73. package/lib/PermissionDetails-DltsWJl5.js +0 -413
  74. package/lib/PermissionDetails-DltsWJl5.js.map +0 -1
@@ -10,38 +10,7 @@ export type Row = {
10
10
  role: RoleRepresentation | CompositeRole;
11
11
  id?: string;
12
12
  };
13
- export declare const mapRoles: (assignedRoles: Row[], effectiveRoles: Row[], hide: boolean) => {
14
- role: {
15
- isInherited: boolean;
16
- id?: string;
17
- name?: string;
18
- description?: string;
19
- scopeParamRequired?: boolean;
20
- composite?: boolean;
21
- composites?: import('@keycloak/keycloak-admin-client/lib/defs/roleRepresentation').Composites;
22
- clientRole?: boolean;
23
- containerId?: string;
24
- attributes?: {
25
- [index: string]: string[];
26
- };
27
- } | {
28
- isInherited: boolean;
29
- id?: string;
30
- name?: string;
31
- description?: string;
32
- scopeParamRequired?: boolean;
33
- composite?: boolean;
34
- composites?: import('@keycloak/keycloak-admin-client/lib/defs/roleRepresentation').Composites;
35
- clientRole?: boolean;
36
- containerId?: string;
37
- attributes?: {
38
- [index: string]: string[];
39
- };
40
- parent: RoleRepresentation;
41
- };
42
- client?: ClientRepresentation;
43
- id: string;
44
- }[];
13
+ export declare const mapRoles: (assignedRoles: Row[], effectiveRoles: Row[], hide: boolean) => Row[];
45
14
  export declare const ServiceRole: ({ role, client }: Row) => import("react/jsx-runtime").JSX.Element;
46
15
  export type ResourcesKey = keyof KeycloakAdminClient;
47
16
  type RoleMappingProps = {
@@ -69,5 +69,13 @@ export type BruteUser = UserRepresentation & {
69
69
  bruteForceStatus?: Record<string, object>;
70
70
  };
71
71
  export declare const findUsers: (adminClient: KeycloakAdminClient, query: UserQuery) => Promise<BruteUser[]>;
72
- export declare const fetchUsedBy: (adminClient: KeycloakAdminClient, query: PaginatingQuery) => Promise<string[]>;
72
+ export type UsedByClientRef = {
73
+ id?: string | null;
74
+ clientId: string;
75
+ };
76
+ export type UsedByReference = {
77
+ id?: string | null;
78
+ label: string;
79
+ };
80
+ export declare const fetchUsedBy: (adminClient: KeycloakAdminClient, query: PaginatingQuery) => Promise<UsedByReference[]>;
73
81
  export {};
@@ -0,0 +1,12 @@
1
+ import { default as IdentityProviderRepresentation } from '@keycloak/keycloak-admin-client/lib/defs/identityProviderRepresentation';
2
+ import { PropsWithChildren } from 'react';
3
+ export declare const IdentityProviderContext: import('libs/ui-shared/dist/utils/createNamedContext').NamedContext<IdentityProviderRepresentation | undefined>;
4
+ /**
5
+ * The identity provider a mapper form belongs to, or undefined outside of one.
6
+ */
7
+ export declare const useIdentityProvider: () => IdentityProviderRepresentation | undefined;
8
+ type IdentityProviderContextProviderProps = PropsWithChildren & {
9
+ value?: IdentityProviderRepresentation;
10
+ };
11
+ export declare const IdentityProviderContextProvider: ({ value, children, }: IdentityProviderContextProviderProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1 @@
1
+ export default function AddOid4Vp(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ type IdpDomainsTabProps = {
2
+ alias: string;
3
+ };
4
+ export declare const IdpDomainsTab: ({ alias }: IdpDomainsTabProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ type IdpOrganizationsTabProps = {
2
+ alias: string;
3
+ onLinksChange?: () => void;
4
+ };
5
+ export declare const IdpOrganizationsTab: ({ alias, onLinksChange, }: IdpOrganizationsTabProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export default function Oid4VpSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Path } from 'react-router-dom';
2
2
  import { AppRouteObject } from '../../routes';
3
- export type IdentityProviderTab = "settings" | "mappers" | "permissions" | "events";
3
+ export type IdentityProviderTab = "settings" | "mappers" | "organizations" | "permissions" | "events";
4
4
  export type IdentityProviderParams = {
5
5
  realm: string;
6
6
  providerId: string;
@@ -0,0 +1,7 @@
1
+ import { Path } from 'react-router-dom';
2
+ import { AppRouteObject } from '../../routes';
3
+ export type IdentityProviderOid4VpParams = {
4
+ realm: string;
5
+ };
6
+ export declare const IdentityProviderOid4VpRoute: AppRouteObject;
7
+ export declare const toIdentityProviderOid4Vp: (params: IdentityProviderOid4VpParams) => Partial<Path>;
@@ -0,0 +1 @@
1
+ export declare const DomainsTab: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,10 @@
1
+ import { default as IdentityProviderRepresentation } from '@keycloak/keycloak-admin-client/lib/defs/identityProviderRepresentation';
1
2
  import { ComponentProps } from '../components/dynamic/components';
2
3
  type IdentityProviderSelectProps = Omit<ComponentProps, "convertToName"> & {
3
4
  variant?: "typeaheadMulti" | "typeahead";
4
5
  isRequired?: boolean;
6
+ orgId?: string;
7
+ onIdpSelected?: (idp: IdentityProviderRepresentation) => void;
5
8
  };
6
- export declare const IdentityProviderSelect: ({ name, label, helpText, defaultValue, isRequired, variant, isDisabled, }: IdentityProviderSelectProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const IdentityProviderSelect: ({ name, label, helpText, defaultValue, isRequired, variant, isDisabled, orgId, onIdpSelected, }: IdentityProviderSelectProps) => import("react/jsx-runtime").JSX.Element;
7
10
  export {};
@@ -0,0 +1,9 @@
1
+ type MembershipTypeToggleProps = {
2
+ orgId: string;
3
+ userId: string;
4
+ /** Labels the switch, the member or the organization depending on the table. */
5
+ name?: string;
6
+ isManaged: boolean;
7
+ };
8
+ export declare const MembershipTypeToggle: ({ orgId, userId, name, isManaged, }: MembershipTypeToggleProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,11 +1,14 @@
1
+ import { default as OrganizationDomainRepresentation } from '@keycloak/keycloak-admin-client/lib/defs/organizationDomainRepresentation';
1
2
  import { default as OrganizationRepresentation } from '@keycloak/keycloak-admin-client/lib/defs/organizationRepresentation';
2
3
  import { AttributeForm } from '../components/key-value-form/AttributeForm';
3
4
  export type OrganizationFormType = AttributeForm & Omit<OrganizationRepresentation, "domains" | "attributes"> & {
4
5
  domains?: string[];
6
+ serverDomains?: OrganizationDomainRepresentation[];
5
7
  };
6
8
  export declare const convertToOrg: (org: OrganizationFormType) => OrganizationRepresentation;
7
9
  type OrganizationFormProps = {
8
10
  readOnly?: boolean;
11
+ showDomains?: boolean;
9
12
  };
10
- export declare const OrganizationForm: ({ readOnly, }: OrganizationFormProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const OrganizationForm: ({ readOnly, showDomains, }: OrganizationFormProps) => import("react/jsx-runtime").JSX.Element;
11
14
  export {};
@@ -1,6 +1,6 @@
1
1
  import { Path } from 'react-router-dom';
2
2
  import { AppRouteObject } from '../../routes';
3
- export type OrganizationTab = "settings" | "attributes" | "members" | "groups" | "identityProviders" | "events";
3
+ export type OrganizationTab = "settings" | "attributes" | "members" | "groups" | "domains" | "identityProviders" | "events";
4
4
  export type EditOrganizationParams = {
5
5
  realm: string;
6
6
  id: string;
@@ -19,7 +19,7 @@ type UseSsfTransmitterDisableConfirmDialogProps = {
19
19
  * and proceeds with the save (the {@code outbox-pending-max-age}
20
20
  * backstop will sweep any leftover PENDING rows on its own).
21
21
  */
22
- export declare const deleteRealmSsfQueuedEvents: (adminClient: KeycloakAdminClient, realmName: string) => Promise<void>;
22
+ export declare const deleteRealmSsfQueuedEvents: (adminClient: KeycloakAdminClient) => Promise<void>;
23
23
  /**
24
24
  * Confirm dialog shown when an admin toggles the realm-level SSF
25
25
  * Transmitter feature off. Surfaces the cascading effects (silent
@@ -12,6 +12,7 @@ export declare enum Feature {
12
12
  DeclarativeUI = "DECLARATIVE_UI",
13
13
  Organizations = "ORGANIZATION",
14
14
  OpenId4VCI = "OID4VC_VCI",
15
+ OpenId4VCIMdoc = "OID4VC_MDOC",
15
16
  QuickTheme = "QUICK_THEME",
16
17
  StandardTokenExchangeV2 = "TOKEN_EXCHANGE_STANDARD_V2",
17
18
  JWTAuthorizationGrant = "JWT_AUTHORIZATION_GRANT",
@@ -22,7 +23,8 @@ export declare enum Feature {
22
23
  Ssf = "SSF",
23
24
  ScimApi = "SCIM_API",
24
25
  IdentityBrokeringAPIV1 = "IDENTITY_BROKERING_API_V1",
25
- IdentityBrokeringAPIV2 = "IDENTITY_BROKERING_API_V2"
26
+ IdentityBrokeringAPIV2 = "IDENTITY_BROKERING_API_V2",
27
+ ResourceIndicators = "RESOURCE_INDICATORS"
26
28
  }
27
29
  export declare const unversionedName: (name: string) => string;
28
30
  export default function useIsFeatureEnabled(): (feature: Feature) => boolean;