Bump typescript from 4.9.5 to 5.0.2 in /js (#19179)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.5 to 5.0.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.9.5...v5.0.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
parent
31d588ea9d
commit
710c49b803
23 changed files with 115 additions and 78 deletions
|
@ -16,7 +16,10 @@ import { cellWidth } from "@patternfly/react-table";
|
||||||
import { useAdminClient } from "../context/auth/AdminClient";
|
import { useAdminClient } from "../context/auth/AdminClient";
|
||||||
import { ViewHeader } from "../components/view-header/ViewHeader";
|
import { ViewHeader } from "../components/view-header/ViewHeader";
|
||||||
import { useAlerts } from "../components/alert/Alerts";
|
import { useAlerts } from "../components/alert/Alerts";
|
||||||
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
||||||
import { useRealm } from "../context/realm-context/RealmContext";
|
import { useRealm } from "../context/realm-context/RealmContext";
|
||||||
import { emptyFormatter } from "../util";
|
import { emptyFormatter } from "../util";
|
||||||
|
@ -274,7 +277,7 @@ export default function ClientScopesSection() {
|
||||||
setSelectedScopes([clientScope]);
|
setSelectedScopes([clientScope]);
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
},
|
},
|
||||||
},
|
} as Action<Row>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,10 @@ import { useServerInfo } from "../../context/server-info/ServerInfoProvider";
|
||||||
|
|
||||||
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
||||||
import { AddMapperDialog } from "../add/MapperDialog";
|
import { AddMapperDialog } from "../add/MapperDialog";
|
||||||
import { KeycloakDataTable } from "../../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../../components/table-toolbar/KeycloakDataTable";
|
||||||
|
|
||||||
type MapperListProps = {
|
type MapperListProps = {
|
||||||
model: ClientScopeRepresentation | ClientRepresentation;
|
model: ClientScopeRepresentation | ClientRepresentation;
|
||||||
|
@ -138,7 +141,7 @@ export const MapperList = ({
|
||||||
{
|
{
|
||||||
title: t("common:delete"),
|
title: t("common:delete"),
|
||||||
onRowClick: onDelete,
|
onRowClick: onDelete,
|
||||||
},
|
} as Action<Row>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,13 +17,21 @@ import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog"
|
||||||
import { FormAccess } from "../../components/form-access/FormAccess";
|
import { FormAccess } from "../../components/form-access/FormAccess";
|
||||||
import { HelpItem } from "ui-shared";
|
import { HelpItem } from "ui-shared";
|
||||||
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
||||||
import { KeycloakDataTable } from "../../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../../components/table-toolbar/KeycloakDataTable";
|
||||||
import { TimeSelector } from "../../components/time-selector/TimeSelector";
|
import { TimeSelector } from "../../components/time-selector/TimeSelector";
|
||||||
import { useAdminClient } from "../../context/auth/AdminClient";
|
import { useAdminClient } from "../../context/auth/AdminClient";
|
||||||
import useFormatDate, { FORMAT_DATE_AND_TIME } from "../../utils/useFormatDate";
|
import useFormatDate, { FORMAT_DATE_AND_TIME } from "../../utils/useFormatDate";
|
||||||
import { AddHostDialog } from ".././advanced/AddHostDialog";
|
import { AddHostDialog } from ".././advanced/AddHostDialog";
|
||||||
import { AdvancedProps, parseResult } from "../AdvancedTab";
|
import { AdvancedProps, parseResult } from "../AdvancedTab";
|
||||||
|
|
||||||
|
type Node = {
|
||||||
|
host: string;
|
||||||
|
registration: string;
|
||||||
|
};
|
||||||
|
|
||||||
export const ClusteringPanel = ({
|
export const ClusteringPanel = ({
|
||||||
save,
|
save,
|
||||||
client: { id, registeredNodes, access },
|
client: { id, registeredNodes, access },
|
||||||
|
@ -131,7 +139,7 @@ export const ClusteringPanel = ({
|
||||||
key={key}
|
key={key}
|
||||||
ariaLabelKey="registeredClusterNodes"
|
ariaLabelKey="registeredClusterNodes"
|
||||||
loader={() =>
|
loader={() =>
|
||||||
Promise.resolve(
|
Promise.resolve<Node[]>(
|
||||||
Object.entries(nodes || {}).map((entry) => {
|
Object.entries(nodes || {}).map((entry) => {
|
||||||
return { host: entry[0], registration: entry[1] };
|
return { host: entry[0], registration: entry[1] };
|
||||||
})
|
})
|
||||||
|
@ -167,7 +175,7 @@ export const ClusteringPanel = ({
|
||||||
setSelectedNode(node.host);
|
setSelectedNode(node.host);
|
||||||
toggleDeleteNodeConfirm();
|
toggleDeleteNodeConfirm();
|
||||||
},
|
},
|
||||||
},
|
} as Action<Node>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,10 @@ import { Link, useNavigate } from "react-router-dom";
|
||||||
import { useAlerts } from "../../components/alert/Alerts";
|
import { useAlerts } from "../../components/alert/Alerts";
|
||||||
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
||||||
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
||||||
import { KeycloakDataTable } from "../../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useAdminClient } from "../../context/auth/AdminClient";
|
import { useAdminClient } from "../../context/auth/AdminClient";
|
||||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||||
import { toCreateInitialAccessToken } from "../routes/CreateInitialAccessToken";
|
import { toCreateInitialAccessToken } from "../routes/CreateInitialAccessToken";
|
||||||
|
@ -76,7 +79,7 @@ export const InitialAccessTokenList = () => {
|
||||||
setToken(token);
|
setToken(token);
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
},
|
},
|
||||||
},
|
} as Action<ClientInitialAccessPresentation>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,10 @@ import { Link, useNavigate, useParams } from "react-router-dom";
|
||||||
|
|
||||||
import { useAlerts } from "../../components/alert/Alerts";
|
import { useAlerts } from "../../components/alert/Alerts";
|
||||||
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
||||||
import { KeycloakDataTable } from "../../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useAdminClient, useFetch } from "../../context/auth/AdminClient";
|
import { useAdminClient, useFetch } from "../../context/auth/AdminClient";
|
||||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||||
import useToggle from "../../utils/useToggle";
|
import useToggle from "../../utils/useToggle";
|
||||||
|
@ -118,7 +121,7 @@ export const ClientRegistrationList = ({
|
||||||
setSelectedPolicy(policy);
|
setSelectedPolicy(policy);
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
},
|
},
|
||||||
},
|
} as Action<ComponentRepresentation>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,10 @@ import {
|
||||||
removeClientScope,
|
removeClientScope,
|
||||||
} from "../../components/client-scope/ClientScopeTypes";
|
} from "../../components/client-scope/ClientScopeTypes";
|
||||||
import { useAlerts } from "../../components/alert/Alerts";
|
import { useAlerts } from "../../components/alert/Alerts";
|
||||||
import { KeycloakDataTable } from "../../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../../components/table-toolbar/KeycloakDataTable";
|
||||||
import {
|
import {
|
||||||
nameFilter,
|
nameFilter,
|
||||||
SearchDropdown,
|
SearchDropdown,
|
||||||
|
@ -363,7 +366,7 @@ export const ClientScopes = ({
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
},
|
} as Action<Row>,
|
||||||
]
|
]
|
||||||
: []
|
: []
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ import type ClientRepresentation from "@keycloak/keycloak-admin-client/lib/defs/
|
||||||
import type RoleRepresentation from "@keycloak/keycloak-admin-client/lib/defs/roleRepresentation";
|
import type RoleRepresentation from "@keycloak/keycloak-admin-client/lib/defs/roleRepresentation";
|
||||||
import type KeycloakAdminClient from "@keycloak/keycloak-admin-client";
|
import type KeycloakAdminClient from "@keycloak/keycloak-admin-client";
|
||||||
import { AddRoleMappingModal } from "./AddRoleMappingModal";
|
import { AddRoleMappingModal } from "./AddRoleMappingModal";
|
||||||
import { KeycloakDataTable } from "../table-toolbar/KeycloakDataTable";
|
import { Action, KeycloakDataTable } from "../table-toolbar/KeycloakDataTable";
|
||||||
import { emptyFormatter, upperCaseFormatter } from "../../util";
|
import { emptyFormatter, upperCaseFormatter } from "../../util";
|
||||||
import { useAlerts } from "../alert/Alerts";
|
import { useAlerts } from "../alert/Alerts";
|
||||||
import { useConfirmDialog } from "../confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../confirm-dialog/ConfirmDialog";
|
||||||
|
@ -229,7 +229,7 @@ export const RoleMapping = ({
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
},
|
} as Action<Awaited<ReturnType<typeof loader>>[0]>,
|
||||||
]
|
]
|
||||||
: []
|
: []
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ import { useConfirmDialog } from "../confirm-dialog/ConfirmDialog";
|
||||||
import { HelpItem } from "ui-shared";
|
import { HelpItem } from "ui-shared";
|
||||||
import { KeycloakSpinner } from "../keycloak-spinner/KeycloakSpinner";
|
import { KeycloakSpinner } from "../keycloak-spinner/KeycloakSpinner";
|
||||||
import { ListEmptyState } from "../list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../list-empty-state/ListEmptyState";
|
||||||
import { KeycloakDataTable } from "../table-toolbar/KeycloakDataTable";
|
import { Action, KeycloakDataTable } from "../table-toolbar/KeycloakDataTable";
|
||||||
|
|
||||||
import "./RolesList.css";
|
import "./RolesList.css";
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ export const RolesList = ({
|
||||||
);
|
);
|
||||||
} else toggleDeleteDialog();
|
} else toggleDeleteDialog();
|
||||||
},
|
},
|
||||||
},
|
} as Action<RoleRepresentation>,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
columns={[
|
columns={[
|
||||||
|
|
|
@ -32,7 +32,10 @@ import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
import { KeycloakTextInput } from "../components/keycloak-text-input/KeycloakTextInput";
|
import { KeycloakTextInput } from "../components/keycloak-text-input/KeycloakTextInput";
|
||||||
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
||||||
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useAdminClient } from "../context/auth/AdminClient";
|
import { useAdminClient } from "../context/auth/AdminClient";
|
||||||
import { useRealm } from "../context/realm-context/RealmContext";
|
import { useRealm } from "../context/realm-context/RealmContext";
|
||||||
import { useServerInfo } from "../context/server-info/ServerInfoProvider";
|
import { useServerInfo } from "../context/server-info/ServerInfoProvider";
|
||||||
|
@ -548,7 +551,8 @@ export const AdminEvents = () => {
|
||||||
isPaginated
|
isPaginated
|
||||||
ariaLabelKey="events:adminEvents"
|
ariaLabelKey="events:adminEvents"
|
||||||
toolbarItem={adminEventSearchFormDisplay()}
|
toolbarItem={adminEventSearchFormDisplay()}
|
||||||
actions={[
|
actions={
|
||||||
|
[
|
||||||
{
|
{
|
||||||
title: t("auth"),
|
title: t("auth"),
|
||||||
onRowClick: (event) => setAuthEvent(event),
|
onRowClick: (event) => setAuthEvent(event),
|
||||||
|
@ -557,7 +561,8 @@ export const AdminEvents = () => {
|
||||||
title: t("representation"),
|
title: t("representation"),
|
||||||
onRowClick: (event) => setRepresentationEvent(event),
|
onRowClick: (event) => setRepresentationEvent(event),
|
||||||
},
|
},
|
||||||
]}
|
] as Action<AdminEventRepresentation>[]
|
||||||
|
}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
name: "time",
|
name: "time",
|
||||||
|
|
|
@ -68,28 +68,6 @@ const defaultValues: UserEventSearchForm = {
|
||||||
type: [],
|
type: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
const UserDetailLink = (event: EventRepresentation) => {
|
|
||||||
const { t } = useTranslation("events");
|
|
||||||
const { realm } = useRealm();
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
{event.userId && (
|
|
||||||
<Link
|
|
||||||
key={`link-${event.time}-${event.type}`}
|
|
||||||
to={toUser({
|
|
||||||
realm,
|
|
||||||
id: event.userId,
|
|
||||||
tab: "settings",
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
{event.userId}
|
|
||||||
</Link>
|
|
||||||
)}
|
|
||||||
{!event.userId && t("noUserDetails")}
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
const StatusRow = (event: EventRepresentation) =>
|
const StatusRow = (event: EventRepresentation) =>
|
||||||
!event.error ? (
|
!event.error ? (
|
||||||
<span>
|
<span>
|
||||||
|
|
|
@ -14,7 +14,10 @@ import {
|
||||||
|
|
||||||
import type GroupRepresentation from "@keycloak/keycloak-admin-client/lib/defs/groupRepresentation";
|
import type GroupRepresentation from "@keycloak/keycloak-admin-client/lib/defs/groupRepresentation";
|
||||||
import type UserRepresentation from "@keycloak/keycloak-admin-client/lib/defs/userRepresentation";
|
import type UserRepresentation from "@keycloak/keycloak-admin-client/lib/defs/userRepresentation";
|
||||||
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useAdminClient } from "../context/auth/AdminClient";
|
import { useAdminClient } from "../context/auth/AdminClient";
|
||||||
import { useRealm } from "../context/realm-context/RealmContext";
|
import { useRealm } from "../context/realm-context/RealmContext";
|
||||||
import { useAlerts } from "../components/alert/Alerts";
|
import { useAlerts } from "../components/alert/Alerts";
|
||||||
|
@ -217,7 +220,7 @@ export const Members = () => {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
},
|
} as Action<UserRepresentation>,
|
||||||
]
|
]
|
||||||
: []
|
: []
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,10 @@ import { IconMapper } from "ui-shared";
|
||||||
import { useAlerts } from "../components/alert/Alerts";
|
import { useAlerts } from "../components/alert/Alerts";
|
||||||
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
||||||
import { ClickableCard } from "../components/keycloak-card/ClickableCard";
|
import { ClickableCard } from "../components/keycloak-card/ClickableCard";
|
||||||
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../components/table-toolbar/KeycloakDataTable";
|
||||||
import { ViewHeader } from "../components/view-header/ViewHeader";
|
import { ViewHeader } from "../components/view-header/ViewHeader";
|
||||||
import { useAdminClient, useFetch } from "../context/auth/AdminClient";
|
import { useAdminClient, useFetch } from "../context/auth/AdminClient";
|
||||||
import { useRealm } from "../context/realm-context/RealmContext";
|
import { useRealm } from "../context/realm-context/RealmContext";
|
||||||
|
@ -255,7 +258,7 @@ export default function IdentityProvidersSection() {
|
||||||
setSelectedProvider(provider);
|
setSelectedProvider(provider);
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
},
|
},
|
||||||
},
|
} as Action<IdentityProviderRepresentation>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,7 +29,10 @@ import {
|
||||||
useRoutableTab,
|
useRoutableTab,
|
||||||
} from "../../components/routable-tabs/RoutableTabs";
|
} from "../../components/routable-tabs/RoutableTabs";
|
||||||
import { ScrollForm } from "../../components/scroll-form/ScrollForm";
|
import { ScrollForm } from "../../components/scroll-form/ScrollForm";
|
||||||
import { KeycloakDataTable } from "../../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../../components/table-toolbar/KeycloakDataTable";
|
||||||
import { ViewHeader } from "../../components/view-header/ViewHeader";
|
import { ViewHeader } from "../../components/view-header/ViewHeader";
|
||||||
import { useAdminClient, useFetch } from "../../context/auth/AdminClient";
|
import { useAdminClient, useFetch } from "../../context/auth/AdminClient";
|
||||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||||
|
@ -489,7 +492,7 @@ export default function DetailSettings() {
|
||||||
setSelectedMapper(mapper);
|
setSelectedMapper(mapper);
|
||||||
toggleDeleteMapperDialog();
|
toggleDeleteMapperDialog();
|
||||||
},
|
},
|
||||||
},
|
} as Action<IdPWithMapperAttributes>,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
|
@ -16,7 +16,10 @@ import {
|
||||||
import { QuestionCircleIcon } from "@patternfly/react-icons";
|
import { QuestionCircleIcon } from "@patternfly/react-icons";
|
||||||
|
|
||||||
import type GroupRepresentation from "@keycloak/keycloak-admin-client/lib/defs/groupRepresentation";
|
import type GroupRepresentation from "@keycloak/keycloak-admin-client/lib/defs/groupRepresentation";
|
||||||
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useAdminClient, useFetch } from "../context/auth/AdminClient";
|
import { useAdminClient, useFetch } from "../context/auth/AdminClient";
|
||||||
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
||||||
import useToggle from "../utils/useToggle";
|
import useToggle from "../utils/useToggle";
|
||||||
|
@ -194,12 +197,12 @@ export const DefaultsGroupsTab = () => {
|
||||||
actions={[
|
actions={[
|
||||||
{
|
{
|
||||||
title: t("common:remove"),
|
title: t("common:remove"),
|
||||||
onRowClick: (group: GroupRepresentation) => {
|
onRowClick: (group) => {
|
||||||
setSelectedRows([group]);
|
setSelectedRows([group]);
|
||||||
toggleRemoveDialog();
|
toggleRemoveDialog();
|
||||||
return Promise.resolve(false);
|
return Promise.resolve(false);
|
||||||
},
|
},
|
||||||
},
|
} as Action<GroupRepresentation>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,10 @@ import { useAlerts } from "../components/alert/Alerts";
|
||||||
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
||||||
import { KeycloakSpinner } from "../components/keycloak-spinner/KeycloakSpinner";
|
import { KeycloakSpinner } from "../components/keycloak-spinner/KeycloakSpinner";
|
||||||
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
||||||
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useAdminClient, useFetch } from "../context/auth/AdminClient";
|
import { useAdminClient, useFetch } from "../context/auth/AdminClient";
|
||||||
import { useRealm } from "../context/realm-context/RealmContext";
|
import { useRealm } from "../context/realm-context/RealmContext";
|
||||||
import { prettyPrintJSON } from "../util";
|
import { prettyPrintJSON } from "../util";
|
||||||
|
@ -260,7 +263,7 @@ export const PoliciesTab = () => {
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
setSelectedPolicy(item);
|
setSelectedPolicy(item);
|
||||||
},
|
},
|
||||||
},
|
} as Action<ClientPolicyRepresentation>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,10 @@ import {
|
||||||
Title,
|
Title,
|
||||||
} from "@patternfly/react-core";
|
} from "@patternfly/react-core";
|
||||||
import { CodeEditor, Language } from "@patternfly/react-code-editor";
|
import { CodeEditor, Language } from "@patternfly/react-code-editor";
|
||||||
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../components/table-toolbar/KeycloakDataTable";
|
||||||
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useAdminClient, useFetch } from "../context/auth/AdminClient";
|
import { useAdminClient, useFetch } from "../context/auth/AdminClient";
|
||||||
|
@ -225,7 +228,7 @@ export default function ProfilesTab() {
|
||||||
setSelectedProfile(profile);
|
setSelectedProfile(profile);
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
},
|
},
|
||||||
},
|
} as Action<ClientProfile>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Button, ToolbarItem } from "@patternfly/react-core";
|
import { Button, ToolbarItem } from "@patternfly/react-core";
|
||||||
|
|
||||||
import { KeycloakDataTable } from "../../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../../components/table-toolbar/KeycloakDataTable";
|
||||||
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
||||||
|
|
||||||
export type EventType = {
|
export type EventType = {
|
||||||
|
@ -52,7 +55,7 @@ export function EventsTypeTable({
|
||||||
{
|
{
|
||||||
title: t("common:remove"),
|
title: t("common:remove"),
|
||||||
onRowClick: onDelete,
|
onRowClick: onDelete,
|
||||||
},
|
} as Action<EventType>,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
columns={[
|
columns={[
|
||||||
|
|
|
@ -10,7 +10,10 @@ import { Trans, useTranslation } from "react-i18next";
|
||||||
import { Link, useNavigate } from "react-router-dom";
|
import { Link, useNavigate } from "react-router-dom";
|
||||||
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
||||||
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
||||||
import { KeycloakDataTable } from "../../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||||
import { toEditAttributesGroup } from "../routes/EditAttributesGroup";
|
import { toEditAttributesGroup } from "../routes/EditAttributesGroup";
|
||||||
import { toNewAttributesGroup } from "../routes/NewAttributesGroup";
|
import { toNewAttributesGroup } from "../routes/NewAttributesGroup";
|
||||||
|
@ -102,7 +105,7 @@ export const AttributesGroupTab = () => {
|
||||||
{
|
{
|
||||||
title: t("common:delete"),
|
title: t("common:delete"),
|
||||||
onRowClick: deleteAttributeGroup,
|
onRowClick: deleteAttributeGroup,
|
||||||
},
|
} as Action<UserProfileGroup>,
|
||||||
]}
|
]}
|
||||||
emptyState={
|
emptyState={
|
||||||
<ListEmptyState
|
<ListEmptyState
|
||||||
|
|
|
@ -16,6 +16,7 @@ import { useAlerts } from "../components/alert/Alerts";
|
||||||
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
||||||
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
||||||
import {
|
import {
|
||||||
|
Action,
|
||||||
Field,
|
Field,
|
||||||
KeycloakDataTable,
|
KeycloakDataTable,
|
||||||
LoaderFunction,
|
LoaderFunction,
|
||||||
|
@ -165,7 +166,7 @@ export default function SessionsTable({
|
||||||
{
|
{
|
||||||
title: t("common:signOut"),
|
title: t("common:signOut"),
|
||||||
onRowClick: onClickSignOut,
|
onRowClick: onClickSignOut,
|
||||||
},
|
} as Action<UserSessionRepresentation>,
|
||||||
]}
|
]}
|
||||||
emptyState={
|
emptyState={
|
||||||
<ListEmptyState
|
<ListEmptyState
|
||||||
|
|
|
@ -12,7 +12,10 @@ import { Link, To, useNavigate, useParams } from "react-router-dom";
|
||||||
import { useAlerts } from "../../../components/alert/Alerts";
|
import { useAlerts } from "../../../components/alert/Alerts";
|
||||||
import { useConfirmDialog } from "../../../components/confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../../../components/confirm-dialog/ConfirmDialog";
|
||||||
import { ListEmptyState } from "../../../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../../../components/list-empty-state/ListEmptyState";
|
||||||
import { KeycloakDataTable } from "../../../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../../../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useAdminClient, useFetch } from "../../../context/auth/AdminClient";
|
import { useAdminClient, useFetch } from "../../../context/auth/AdminClient";
|
||||||
import useLocaleSort, { mapByKey } from "../../../utils/useLocaleSort";
|
import useLocaleSort, { mapByKey } from "../../../utils/useLocaleSort";
|
||||||
|
|
||||||
|
@ -111,7 +114,7 @@ export const LdapMapperList = ({ toCreate, toDetail }: LdapMapperListProps) => {
|
||||||
setSelectedMapper(mapper);
|
setSelectedMapper(mapper);
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
},
|
},
|
||||||
},
|
} as Action<ComponentRepresentation>,
|
||||||
]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,10 @@ import { useTranslation } from "react-i18next";
|
||||||
import { useAlerts } from "../components/alert/Alerts";
|
import { useAlerts } from "../components/alert/Alerts";
|
||||||
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
||||||
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
||||||
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
|
import {
|
||||||
|
Action,
|
||||||
|
KeycloakDataTable,
|
||||||
|
} from "../components/table-toolbar/KeycloakDataTable";
|
||||||
import { useAdminClient } from "../context/auth/AdminClient";
|
import { useAdminClient } from "../context/auth/AdminClient";
|
||||||
import { emptyFormatter } from "../util";
|
import { emptyFormatter } from "../util";
|
||||||
import useFormatDate from "../utils/useFormatDate";
|
import useFormatDate from "../utils/useFormatDate";
|
||||||
|
@ -128,7 +131,7 @@ export const UserConsents = () => {
|
||||||
setSelectedClient(client);
|
setSelectedClient(client);
|
||||||
toggleDeleteDialog();
|
toggleDeleteDialog();
|
||||||
},
|
},
|
||||||
},
|
} as Action<UserConsentRepresentation>,
|
||||||
]}
|
]}
|
||||||
emptyState={
|
emptyState={
|
||||||
<ListEmptyState
|
<ListEmptyState
|
||||||
|
|
10
js/package-lock.json
generated
10
js/package-lock.json
generated
|
@ -30,7 +30,7 @@
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.2.0",
|
"lint-staged": "^13.2.0",
|
||||||
"prettier": "^2.8.5",
|
"prettier": "^2.8.5",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^5.0.2",
|
||||||
"wireit": "^0.9.5"
|
"wireit": "^0.9.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -10223,16 +10223,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "4.9.5",
|
"version": "5.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz",
|
||||||
"integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
|
"integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=4.2.0"
|
"node": ">=12.20"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ufo": {
|
"node_modules/ufo": {
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.2.0",
|
"lint-staged": "^13.2.0",
|
||||||
"prettier": "^2.8.5",
|
"prettier": "^2.8.5",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^5.0.2",
|
||||||
"wireit": "^0.9.5"
|
"wireit": "^0.9.5"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
|
|
Loading…
Reference in a new issue