@keycloak/keycloak-admin-ui 26.0.8 → 26.1.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/lib/.vite/manifest.json +30 -21
- package/lib/Banners.d.ts +5 -0
- package/lib/{CreateFlow-D3hVgFZr.js → CreateFlow--atMTNJc.js} +9 -9
- package/lib/{CreateFlow-D3hVgFZr.js.map → CreateFlow--atMTNJc.js.map} +1 -1
- package/lib/DetailOrganization-az4NPzMy.js +164 -0
- package/lib/DetailOrganization-az4NPzMy.js.map +1 -0
- package/lib/{ExecutorForm-Dp7Iqxos.js → ExecutorForm-DaRc7uVA.js} +27 -27
- package/lib/{ExecutorForm-Dp7Iqxos.js.map → ExecutorForm-DaRc7uVA.js.map} +1 -1
- package/lib/FlowDetails-qeT2t76N.js +10786 -0
- package/lib/FlowDetails-qeT2t76N.js.map +1 -0
- package/lib/NewOrganization-DPk2Gzku.js +36 -0
- package/lib/{NewOrganization-CQAjr9Dn.js.map → NewOrganization-DPk2Gzku.js.map} +1 -1
- package/lib/PageHeaderClearCachesModal.d.ts +4 -0
- package/lib/{PermissionDetails-xk5HiPzx.js → PermissionDetails-CnvNqBCb.js} +93 -93
- package/lib/{PermissionDetails-xk5HiPzx.js.map → PermissionDetails-CnvNqBCb.js.map} +1 -1
- package/lib/{ResourceDetails-CbJWQn4F.js → ResourceDetails-Cfnqq1uy.js} +30 -30
- package/lib/{ResourceDetails-CbJWQn4F.js.map → ResourceDetails-Cfnqq1uy.js.map} +1 -1
- package/lib/{ScopeDetails-BtYWOGtn.js → ScopeDetails-_i-3BNjz.js} +32 -32
- package/lib/{ScopeDetails-BtYWOGtn.js.map → ScopeDetails-_i-3BNjz.js.map} +1 -1
- package/lib/admin-client.d.ts +1 -1
- package/lib/browser-ponyfill-uH6p8znu.js +342 -0
- package/lib/browser-ponyfill-uH6p8znu.js.map +1 -0
- package/lib/client-scopes/routes/ClientScope.d.ts +1 -1
- package/lib/client-scopes/routes/Mapper.d.ts +1 -0
- package/lib/clients/routes/Client.d.ts +1 -1
- package/lib/clients/routes/Mapper.d.ts +1 -0
- package/lib/components/dynamic/IntComponent.d.ts +2 -0
- package/lib/components/dynamic/NumberComponent.d.ts +2 -0
- package/lib/components/dynamic/components.d.ts +5 -1
- package/lib/components/json-file-upload/FileUploadForm.d.ts +2 -3
- package/lib/components/role-mapping/RoleMapping.d.ts +1 -1
- package/lib/context/RecentRealms.d.ts +1 -1
- package/lib/context/access/Access.d.ts +1 -1
- package/lib/context/realm-context/RealmContext.d.ts +1 -1
- package/lib/context/server-info/ServerInfoProvider.d.ts +1 -1
- package/lib/context/whoami/WhoAmI.d.ts +1 -1
- package/lib/events/AdminEvents.d.ts +5 -1
- package/lib/groups/MembershipsModal.d.ts +7 -0
- package/lib/identity-providers/routes/IdentityProvider.d.ts +1 -1
- package/lib/index-BIuvk4Xf.js +102021 -0
- package/lib/index-BIuvk4Xf.js.map +1 -0
- package/lib/index.d.ts +5 -2
- package/lib/keycloak-admin-ui.css +1 -0
- package/lib/keycloak-admin-ui.js +105 -102
- package/lib/organizations/routes/EditOrganization.d.ts +1 -1
- package/lib/permissions/PermissionsSection.d.ts +1 -0
- package/lib/permissions/routes/Permissions.d.ts +7 -0
- package/lib/permissions/routes/PermissionsTabs.d.ts +9 -0
- package/lib/permissions/routes.d.ts +3 -0
- package/lib/realm-roles/routes/RealmRole.d.ts +1 -1
- package/lib/realm-settings/TokensTab.d.ts +1 -2
- package/lib/realm-settings/routes/ThemesTab.d.ts +9 -0
- package/lib/realm-settings/themes/ImageUpload.d.ts +6 -0
- package/lib/realm-settings/themes/LogoContext.d.ts +9 -0
- package/lib/realm-settings/themes/PatternflyVars.d.ts +10 -0
- package/lib/realm-settings/themes/PreviewWindow.d.ts +5 -0
- package/lib/realm-settings/themes/ThemeColors.d.ts +9 -0
- package/lib/realm-settings/{ThemesTab.d.ts → themes/ThemeSettings.d.ts} +2 -2
- package/lib/realm-settings/themes/ThemesTab.d.ts +11 -0
- package/lib/realm-settings/user-profile/UserProfileContext.d.ts +1 -1
- package/lib/realm-settings/user-profile/attribute/AddTranslationsDialog.d.ts +3 -15
- package/lib/realm-settings/user-profile/attribute/AttributeGeneralSettings.d.ts +1 -14
- package/lib/realm-settings/user-profile/attribute/TranslatableField.d.ts +22 -0
- package/lib/theme/login.css +94 -0
- package/lib/user/routes/User.d.ts +1 -1
- package/lib/utils/useCurrentUser.d.ts +5 -5
- package/lib/utils/useIsAdminPermissionsClient.d.ts +1 -0
- package/lib/utils/useIsFeatureEnabled.d.ts +3 -1
- package/package.json +45 -32
- package/LICENSE.txt +0 -202
- package/lib/DetailOrganization-DUNwCft_.js +0 -130
- package/lib/DetailOrganization-DUNwCft_.js.map +0 -1
- package/lib/FlowDetails-SHMxH_Rb.js +0 -10593
- package/lib/FlowDetails-SHMxH_Rb.js.map +0 -1
- package/lib/NewOrganization-CQAjr9Dn.js +0 -36
- package/lib/components/json-file-upload/patternfly/FileUpload.d.ts +0 -73
- package/lib/components/json-file-upload/patternfly/FileUploadField.d.ts +0 -67
- package/lib/components/json-file-upload/patternfly/fileUtils.d.ts +0 -12
- package/lib/index-6gx7hHms.js +0 -66020
- package/lib/index-6gx7hHms.js.map +0 -1
- package/lib/style.css +0 -1
- /package/lib/{clients/scopes → components/copy-to-clipboard-button}/CopyToClipboardButton.d.ts +0 -0
@@ -1,36 +0,0 @@
|
|
1
|
-
import { jsxs as e, Fragment as v, jsx as a } from "react/jsx-runtime";
|
2
|
-
import { u as h, U as z, a as b, b as f, V as p, P as S, c as A, F, bw as O, A as w, e as y, B as C, bE as E, bA as x, bC as P } from "./index-6gx7hHms.js";
|
3
|
-
import { useTranslation as j } from "react-i18next";
|
4
|
-
import { useNavigate as k, Link as B } from "react-router-dom";
|
5
|
-
function G() {
|
6
|
-
const { adminClient: s } = h(), { addAlert: c, addError: d } = z(), { t } = j(), l = k(), { realm: r } = b(), i = f({ mode: "onChange" }), { handleSubmit: m, formState: g } = i;
|
7
|
-
return /* @__PURE__ */ e(v, { children: [
|
8
|
-
/* @__PURE__ */ a(p, { titleKey: "createOrganization" }),
|
9
|
-
/* @__PURE__ */ a(S, { variant: "light", children: /* @__PURE__ */ a(A, { role: "anyone", onSubmit: m(async (n) => {
|
10
|
-
try {
|
11
|
-
const o = x(n), { id: u } = await s.organizations.create(o);
|
12
|
-
c(t("organizationSaveSuccess")), l(P({ realm: r, id: u, tab: "settings" }));
|
13
|
-
} catch (o) {
|
14
|
-
d("organizationSaveError", o);
|
15
|
-
}
|
16
|
-
}), isHorizontal: !0, children: /* @__PURE__ */ e(F, { ...i, children: [
|
17
|
-
/* @__PURE__ */ a(O, {}),
|
18
|
-
/* @__PURE__ */ e(w, { children: [
|
19
|
-
/* @__PURE__ */ a(y, { formState: g, "data-testid": "save", children: t("save") }),
|
20
|
-
/* @__PURE__ */ a(
|
21
|
-
C,
|
22
|
-
{
|
23
|
-
"data-testid": "cancel",
|
24
|
-
variant: "link",
|
25
|
-
component: (n) => /* @__PURE__ */ a(B, { ...n, to: E({ realm: r }) }),
|
26
|
-
children: t("cancel")
|
27
|
-
}
|
28
|
-
)
|
29
|
-
] })
|
30
|
-
] }) }) })
|
31
|
-
] });
|
32
|
-
}
|
33
|
-
export {
|
34
|
-
G as default
|
35
|
-
};
|
36
|
-
//# sourceMappingURL=NewOrganization-CQAjr9Dn.js.map
|
@@ -1,73 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
import { DropEvent, DropzoneOptions } from 'react-dropzone';
|
3
|
-
import { FileUploadFieldProps } from './FileUploadField';
|
4
|
-
export interface FileUploadProps extends Omit<FileUploadFieldProps, "children" | "onBrowseButtonClick" | "onClearButtonClick" | "isDragActive" | "containerRef"> {
|
5
|
-
/** Unique id for the TextArea, also used to generate ids for accessible labels. */
|
6
|
-
id: string;
|
7
|
-
/** What type of file. Determines what is is passed to `onChange` and expected by `value`
|
8
|
-
* (a string for 'text' and 'dataURL', or a File object otherwise. */
|
9
|
-
type?: "text" | "dataURL";
|
10
|
-
/** Value of the file's contents
|
11
|
-
* (string if text file, File object otherwise) */
|
12
|
-
value?: string | File;
|
13
|
-
/** Value to be shown in the read-only filename field. */
|
14
|
-
filename?: string;
|
15
|
-
/** @deprecated A callback for when the file contents change. Please instead use onFileInputChange, onTextChange, onDataChange, onClearClick individually. */
|
16
|
-
onChange?: (value: string | File, filename: string, event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.ChangeEvent<HTMLElement> | DropEvent) => void;
|
17
|
-
/** Change event emitted from the hidden \<input type="file" \> field associated with the component */
|
18
|
-
onFileInputChange?: (event: DropEvent, file: File) => void;
|
19
|
-
/** Callback for clicking on the FileUploadField text area. By default, prevents a click in the text area from opening file dialog. */
|
20
|
-
onClick?: (event: React.MouseEvent) => void;
|
21
|
-
/** Additional classes added to the FileUpload container element. */
|
22
|
-
className?: string;
|
23
|
-
/** Flag to show if the field is disabled. */
|
24
|
-
isDisabled?: boolean;
|
25
|
-
/** Flag to show if the field is read only. */
|
26
|
-
isReadOnly?: boolean;
|
27
|
-
/** Flag to show if a file is being loaded. */
|
28
|
-
isLoading?: boolean;
|
29
|
-
/** Aria-valuetext for the loading spinner */
|
30
|
-
spinnerAriaValueText?: string;
|
31
|
-
/** Flag to show if the field is required. */
|
32
|
-
isRequired?: boolean;
|
33
|
-
/** Value to indicate if the field is modified to show that validation state.
|
34
|
-
* If set to success, field will be modified to indicate valid state.
|
35
|
-
* If set to error, field will be modified to indicate error state.
|
36
|
-
*/
|
37
|
-
validated?: "success" | "error" | "default";
|
38
|
-
/** Aria-label for the TextArea. */
|
39
|
-
"aria-label"?: string;
|
40
|
-
/** Placeholder string to display in the empty filename field */
|
41
|
-
filenamePlaceholder?: string;
|
42
|
-
/** Aria-label for the read-only filename field */
|
43
|
-
filenameAriaLabel?: string;
|
44
|
-
/** Text for the Browse button */
|
45
|
-
browseButtonText?: string;
|
46
|
-
/** Text for the Clear button */
|
47
|
-
clearButtonText?: string;
|
48
|
-
/** Flag to hide the built-in preview of the file (where available).
|
49
|
-
* If true, you can use children to render an alternate preview. */
|
50
|
-
hideDefaultPreview?: boolean;
|
51
|
-
/** Flag to allow editing of a text file's contents after it is selected from disk */
|
52
|
-
allowEditingUploadedText?: boolean;
|
53
|
-
/** Additional children to render after (or instead of) the file preview. */
|
54
|
-
children?: React.ReactNode;
|
55
|
-
/** A callback for when a selected file starts loading */
|
56
|
-
onReadStarted?: (fileHandle: File) => void;
|
57
|
-
/** A callback for when a selected file finishes loading */
|
58
|
-
onReadFinished?: (fileHandle: File) => void;
|
59
|
-
/** A callback for when the FileReader API fails */
|
60
|
-
onReadFailed?: (error: DOMException, fileHandle: File) => void;
|
61
|
-
/** Optional extra props to customize react-dropzone. */
|
62
|
-
dropzoneProps?: DropzoneOptions;
|
63
|
-
/** Clear button was clicked */
|
64
|
-
onClearClick?: React.MouseEventHandler<HTMLButtonElement>;
|
65
|
-
/** Text area text changed */
|
66
|
-
onTextChange?: (text: string) => void;
|
67
|
-
/** On data changed - if type='text' or type='dataURL' and file was loaded it will call this method */
|
68
|
-
onDataChange?: (data: string) => void;
|
69
|
-
}
|
70
|
-
export declare const FileUpload: {
|
71
|
-
({ id, type, value, filename, children, onChange, onFileInputChange, onReadStarted, onReadFinished, onReadFailed, onClearClick, onClick, onTextChange, onDataChange, dropzoneProps, ...props }: PropsWithChildren<FileUploadProps>): import("react/jsx-runtime").JSX.Element;
|
72
|
-
displayName: string;
|
73
|
-
};
|
@@ -1,67 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
export interface FileUploadFieldProps extends Omit<React.HTMLProps<HTMLDivElement>, "value" | "onChange"> {
|
3
|
-
/** Unique id for the TextArea, also used to generate ids for accessible labels */
|
4
|
-
id: string;
|
5
|
-
/** What type of file. Determines what is is expected by `value`
|
6
|
-
* (a string for 'text' and 'dataURL', or a File object otherwise). */
|
7
|
-
type?: "text" | "dataURL";
|
8
|
-
/** Value of the file's contents
|
9
|
-
* (string if text file, File object otherwise) */
|
10
|
-
value?: string | File;
|
11
|
-
/** Value to be shown in the read-only filename field. */
|
12
|
-
filename?: string;
|
13
|
-
/** A callback for when the TextArea value changes. */
|
14
|
-
onChange?: (value: string, filename: string, event: React.ChangeEvent<HTMLTextAreaElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
15
|
-
/** Additional classes added to the FileUploadField container element. */
|
16
|
-
className?: string;
|
17
|
-
/** Flag to show if the field is disabled. */
|
18
|
-
isDisabled?: boolean;
|
19
|
-
/** Flag to show if the field is read only. */
|
20
|
-
isReadOnly?: boolean;
|
21
|
-
/** Flag to show if a file is being loaded. */
|
22
|
-
isLoading?: boolean;
|
23
|
-
/** Aria-valuetext for the loading spinner */
|
24
|
-
spinnerAriaValueText?: string;
|
25
|
-
/** Flag to show if the field is required. */
|
26
|
-
isRequired?: boolean;
|
27
|
-
/** Value to indicate if the field is modified to show that validation state.
|
28
|
-
* If set to success, field will be modified to indicate valid state.
|
29
|
-
* If set to error, field will be modified to indicate error state.
|
30
|
-
*/
|
31
|
-
validated?: "success" | "error" | "default";
|
32
|
-
/** Aria-label for the TextArea. */
|
33
|
-
"aria-label"?: string;
|
34
|
-
/** Placeholder string to display in the empty filename field */
|
35
|
-
filenamePlaceholder?: string;
|
36
|
-
/** Aria-label for the read-only filename field */
|
37
|
-
filenameAriaLabel?: string;
|
38
|
-
/** Text for the Browse button */
|
39
|
-
browseButtonText?: string;
|
40
|
-
/** Text for the Clear button */
|
41
|
-
clearButtonText?: string;
|
42
|
-
/** Flag to disable the Clear button */
|
43
|
-
isClearButtonDisabled?: boolean;
|
44
|
-
/** Flag to hide the built-in preview of the file (where available).
|
45
|
-
* If true, you can use children to render an alternate preview. */
|
46
|
-
hideDefaultPreview?: boolean;
|
47
|
-
/** Flag to allow editing of a text file's contents after it is selected from disk */
|
48
|
-
allowEditingUploadedText?: boolean;
|
49
|
-
/** Additional children to render after (or instead of) the file preview. */
|
50
|
-
children?: React.ReactNode;
|
51
|
-
/** A callback for when the Browse button is clicked. */
|
52
|
-
onBrowseButtonClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
53
|
-
/** A callback for when the Clear button is clicked. */
|
54
|
-
onClearButtonClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
55
|
-
/** A callback from when the text area is clicked. Can also be set via the onClick property of FileUpload. */
|
56
|
-
onTextAreaClick?: (event: React.MouseEvent<HTMLTextAreaElement, MouseEvent>) => void;
|
57
|
-
/** Flag to show if a file is being dragged over the field */
|
58
|
-
isDragActive?: boolean;
|
59
|
-
/** A reference object to attach to the FileUploadField container element. */
|
60
|
-
containerRef?: React.Ref<HTMLDivElement>;
|
61
|
-
/** Text area text changed */
|
62
|
-
onTextChange?: (text: string) => void;
|
63
|
-
}
|
64
|
-
export declare const FileUploadField: {
|
65
|
-
({ id, type, value, filename, onChange, onBrowseButtonClick, onClearButtonClick, onTextAreaClick, onTextChange, className, isDisabled, isReadOnly, isLoading, spinnerAriaValueText, isRequired, isDragActive, validated, "aria-label": ariaLabel, filenamePlaceholder, filenameAriaLabel, browseButtonText, clearButtonText, isClearButtonDisabled, containerRef, allowEditingUploadedText, hideDefaultPreview, children, ...props }: PropsWithChildren<FileUploadFieldProps>): import("react/jsx-runtime").JSX.Element;
|
66
|
-
displayName: string;
|
67
|
-
};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export declare enum fileReaderType {
|
2
|
-
text = "text",
|
3
|
-
dataURL = "dataURL"
|
4
|
-
}
|
5
|
-
/**
|
6
|
-
* Read a file using the FileReader API, either as a plain text string or as a DataURL string.
|
7
|
-
* Returns a promise which will resolve with the file contents as a string or reject with a DOMException.
|
8
|
-
*
|
9
|
-
* @param {File} fileHandle - File object to read
|
10
|
-
* @param {fileReaderType} type - How to read it
|
11
|
-
*/
|
12
|
-
export declare function readFile(fileHandle: File, type: fileReaderType): Promise<unknown>;
|