@webiny/app-admin 5.23.1 → 5.24.0-beta.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/base/Admin.d.ts +1 -8
- package/base/Base.d.ts +1 -1
- package/base/plugins/AddGraphQLQuerySelection.d.ts +2 -2
- package/base/providers/ApolloProvider.d.ts +9 -3
- package/base/providers/TelemetryProvider.d.ts +2 -4
- package/base/providers/TelemetryProvider.js +5 -0
- package/base/providers/UiStateProvider.d.ts +1 -3
- package/base/providers/ViewCompositionProvider.d.ts +2 -4
- package/base/ui/Menu.d.ts +6 -1
- package/base/ui/Menu.js +87 -25
- package/base/ui/Navigation.d.ts +3 -5
- package/base/ui/Navigation.js +9 -26
- package/base/ui/Search.d.ts +2 -5
- package/base/ui/Tags.d.ts +1 -1
- package/base/ui/UserMenu.d.ts +2 -5
- package/components/AdminLayout.d.ts +1 -2
- package/components/AppInstaller/AppInstaller.d.ts +2 -4
- package/components/AppInstaller/Sidebar.d.ts +8 -6
- package/components/AppInstaller/Sidebar.js +9 -9
- package/components/AppInstaller/styled.d.ts +4 -4
- package/components/AppInstaller/useInstaller.d.ts +26 -9
- package/components/AppInstaller/useInstaller.js +42 -34
- package/components/EmptyView.d.ts +4 -4
- package/components/FileManager/BottomInfoBar/SupportedFileTypes.d.ts +5 -4
- package/components/FileManager/BottomInfoBar/SupportedFileTypes.js +2 -1
- package/components/FileManager/BottomInfoBar/UploadStatus.d.ts +5 -4
- package/components/FileManager/BottomInfoBar.d.ts +4 -2
- package/components/FileManager/DropFilesHere.d.ts +4 -3
- package/components/FileManager/DropFilesHere.js +5 -2
- package/components/FileManager/File.d.ts +7 -8
- package/components/FileManager/File.js +11 -5
- package/components/FileManager/FileDetails/Name.d.ts +7 -5
- package/components/FileManager/FileDetails/Name.js +2 -2
- package/components/FileManager/FileDetails/Tags.d.ts +7 -5
- package/components/FileManager/FileDetails/Tags.js +4 -2
- package/components/FileManager/FileDetails.d.ts +6 -8
- package/components/FileManager/FileDetails.js +14 -2
- package/components/FileManager/FileManagerContext.d.ts +12 -9
- package/components/FileManager/FileManagerContext.js +9 -7
- package/components/FileManager/FileManagerView.d.ts +2 -10
- package/components/FileManager/FileManagerView.js +19 -8
- package/components/FileManager/LeftSidebar.d.ts +6 -5
- package/components/FileManager/LeftSidebar.js +4 -4
- package/components/FileManager/NoPermissionView.d.ts +2 -2
- package/components/FileManager/NoResults.d.ts +3 -2
- package/components/FileManager/NoResults.js +5 -2
- package/components/FileManager/getFileTypePlugin.d.ts +4 -1
- package/components/FileManager/getFileTypePlugin.js +5 -0
- package/components/FileManager/getFileUploader.d.ts +2 -1
- package/components/FileManager/outputFileSelectionError.d.ts +4 -1
- package/components/FileManager/outputFileSelectionError.js +5 -0
- package/components/FileManager/types.d.ts +49 -0
- package/components/FileManager/types.js +1 -0
- package/components/FileManager.d.ts +15 -10
- package/components/FileManager.js +15 -12
- package/components/FloatingActionButton.d.ts +2 -2
- package/components/MultiImageUpload.d.ts +13 -4
- package/components/MultiImageUpload.js +15 -4
- package/components/OverlayLayout/OverlayLayout.d.ts +9 -12
- package/components/Permissions/StyledComponents.d.ts +6 -4
- package/components/RichTextEditor/RichTextEditor.d.ts +2 -2
- package/components/RichTextEditor/tools/header/index.d.ts +33 -34
- package/components/RichTextEditor/tools/header/index.js +2 -3
- package/components/RichTextEditor/tools/image/index.d.ts +36 -13
- package/components/RichTextEditor/tools/image/index.js +4 -2
- package/components/RichTextEditor/tools/image/tunes.d.ts +12 -15
- package/components/RichTextEditor/tools/image/tunes.js +2 -1
- package/components/RichTextEditor/tools/image/types.d.ts +29 -0
- package/components/RichTextEditor/tools/image/types.js +1 -0
- package/components/RichTextEditor/tools/image/ui.d.ts +33 -26
- package/components/RichTextEditor/tools/image/ui.js +24 -11
- package/components/RichTextEditor/tools/paragraph/index.d.ts +31 -31
- package/components/RichTextEditor/tools/paragraph/index.js +11 -15
- package/components/RichTextEditor/tools/textColor/index.d.ts +22 -21
- package/components/RichTextEditor/tools/textColor/index.js +3 -1
- package/components/Routes.d.ts +2 -2
- package/components/SearchUI.d.ts +4 -4
- package/components/SimpleForm/SimpleForm.d.ts +7 -9
- package/components/SimpleUI/InputField.d.ts +3 -3
- package/components/SimpleUI/InputField.js +18 -18
- package/components/SingleImageUpload.d.ts +4 -9
- package/components/SingleImageUpload.js +2 -1
- package/components/SplitView/SplitView.d.ts +5 -5
- package/hooks/useConfirmationDialog.d.ts +6 -5
- package/hooks/useConfirmationDialog.js +1 -2
- package/hooks/useDialog.d.ts +8 -3
- package/hooks/useDialog.js +1 -1
- package/hooks/useSnackbar.d.ts +6 -3
- package/package.json +17 -14
- package/plugins/FileManagerFileTypePlugin.d.ts +1 -1
- package/plugins/MenuPlugin.d.ts +3 -3
- package/plugins/fileManager/fileImage/DeleteAction.d.ts +6 -2
- package/plugins/fileManager/fileImage/EditAction.d.ts +7 -6
- package/plugins/fileManager/fileImage/EditAction.js +18 -9
- package/plugins/globalSearch/SearchBar.d.ts +13 -0
- package/plugins/globalSearch/SearchBar.js +5 -0
- package/plugins/globalSearch/SearchBarDropdown.d.ts +16 -1
- package/plugins/globalSearch/index.d.ts +2 -1
- package/plugins/globalSearch/styled.d.ts +3 -3
- package/plugins/index.d.ts +2 -1
- package/types.d.ts +8 -6
- package/ui/UIElement.d.ts +1 -1
- package/ui/UIView.d.ts +1 -1
- package/ui/elements/AccordionElement.d.ts +5 -5
- package/ui/elements/AccordionElement.js +4 -0
- package/ui/elements/ButtonElement.d.ts +3 -3
- package/ui/elements/ButtonGroupElement.d.ts +2 -2
- package/ui/elements/NavigationMenuElement.d.ts +5 -1
- package/ui/elements/NavigationMenuElement.js +3 -2
- package/ui/elements/PlaceholderElement.d.ts +2 -1
- package/ui/elements/SmallButtonElement.d.ts +1 -1
- package/ui/elements/TypographyElement.d.ts +1 -1
- package/ui/elements/form/FileManagerElement/styled.d.ts +9 -9
- package/ui/elements/form/FileManagerElement.d.ts +4 -3
- package/ui/elements/form/FormElement.d.ts +5 -5
- package/ui/elements/form/FormFieldElement.d.ts +6 -5
- package/ui/elements/form/FormFieldElement.js +5 -5
- package/ui/elements/form/InputElement.d.ts +1 -0
- package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +2 -2
- package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +2 -2
- package/ui/views/AdminView/HeaderSectionRightElement.d.ts +2 -2
- package/ui/views/AdminView/components/Hamburger.d.ts +2 -2
- package/ui/views/AdminView/components/Snackbar.d.ts +2 -2
- package/ui/views/FormView/FormContainerElement.d.ts +2 -2
- package/ui/views/FormView/FormFooterElement.d.ts +3 -3
- package/ui/views/FormView/FormHeaderElement.d.ts +2 -2
- package/ui/views/FormView.d.ts +1 -1
- package/ui/views/FormView.js +4 -2
- package/ui/views/OverlayView/ContentElement.d.ts +2 -2
- package/ui/views/OverlayView/HeaderElement.d.ts +5 -5
- package/ui/views/OverlayView/useOverlayView.d.ts +4 -5
- package/ui/views/OverlayView/useOverlayView.js +2 -2
- package/ui/views/OverlayView.d.ts +4 -6
- package/ui/views/SplitView/SplitViewPanelElement.d.ts +3 -3
- package/ui/views/SplitView.d.ts +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FormFieldElement, FormFieldElementConfig, FormFieldElementRenderProps } from "./FormFieldElement";
|
|
3
|
+
export declare type InputElementRenderProps = FormFieldElementRenderProps;
|
|
3
4
|
export declare class InputElement extends FormFieldElement {
|
|
4
5
|
constructor(id: string, config: FormFieldElementConfig);
|
|
5
6
|
render(props: FormFieldElementRenderProps): React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { UIElement } from "../../UIElement";
|
|
2
|
+
import { UIElement, UiElementRenderProps } from "../../UIElement";
|
|
3
3
|
export declare class HeaderSectionCenterElement extends UIElement {
|
|
4
4
|
constructor(id: string);
|
|
5
|
-
render(props:
|
|
5
|
+
render(props: UiElementRenderProps): React.ReactNode;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { UIElement } from "../../UIElement";
|
|
2
|
+
import { UIElement, UiElementRenderProps } from "../../UIElement";
|
|
3
3
|
export declare class HeaderSectionLeftElement extends UIElement {
|
|
4
4
|
constructor(id: string);
|
|
5
|
-
render(props:
|
|
5
|
+
render(props: UiElementRenderProps): React.ReactNode;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { UIElement } from "../../UIElement";
|
|
2
|
+
import { UIElement, UiElementRenderProps } from "../../UIElement";
|
|
3
3
|
export declare class HeaderSectionRightElement extends UIElement {
|
|
4
4
|
constructor(id: string);
|
|
5
|
-
render(props:
|
|
5
|
+
render(props: UiElementRenderProps): React.ReactNode;
|
|
6
6
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Hamburger:
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const Hamburger: React.FC;
|
|
3
3
|
export default Hamburger;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SnackbarMain:
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const SnackbarMain: React.FC;
|
|
3
3
|
export default SnackbarMain;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { UIElement, UIElementConfig } from "../../UIElement";
|
|
2
|
+
import { UIElement, UIElementConfig, UiElementRenderProps } from "../../UIElement";
|
|
3
3
|
interface FormContainerConfig extends UIElementConfig {
|
|
4
4
|
testId?: string;
|
|
5
5
|
noElevation?: boolean;
|
|
@@ -7,6 +7,6 @@ interface FormContainerConfig extends UIElementConfig {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class FormContainerElement extends UIElement<FormContainerConfig> {
|
|
9
9
|
constructor(id: string, config: FormContainerConfig);
|
|
10
|
-
render(props:
|
|
10
|
+
render(props: UiElementRenderProps): JSX.Element;
|
|
11
11
|
}
|
|
12
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { UIElement } from "../../UIElement";
|
|
2
|
+
import { UIElement, UiElementRenderProps } from "../../UIElement";
|
|
3
3
|
export declare class FormFooterElement extends UIElement {
|
|
4
|
-
constructor(id:
|
|
5
|
-
render(props:
|
|
4
|
+
constructor(id: string);
|
|
5
|
+
render(props: UiElementRenderProps): JSX.Element;
|
|
6
6
|
}
|
|
@@ -6,9 +6,9 @@ interface FormHeaderConfig extends UIElementConfig {
|
|
|
6
6
|
icon?: React.ReactElement;
|
|
7
7
|
}
|
|
8
8
|
export declare class FormHeaderElement extends UIElement<FormHeaderConfig> {
|
|
9
|
-
constructor(id:
|
|
9
|
+
constructor(id: string, config: FormHeaderConfig);
|
|
10
10
|
setIcon(icon: React.ReactElement): void;
|
|
11
11
|
addAction(element: UIElement): void;
|
|
12
|
-
render(props:
|
|
12
|
+
render(props: FormElementRenderProps): React.ReactNode;
|
|
13
13
|
}
|
|
14
14
|
export {};
|
package/ui/views/FormView.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ interface GetterWithoutProps<T> {
|
|
|
25
25
|
(): T;
|
|
26
26
|
}
|
|
27
27
|
export declare class FormView extends UIView<FormViewConfig> {
|
|
28
|
-
constructor(id:
|
|
28
|
+
constructor(id: string, config?: FormViewConfig);
|
|
29
29
|
addElement<TElement extends UIElement = UIElement>(element: TElement): TElement;
|
|
30
30
|
setTitle(title: string | GetterWithProps<string>): void;
|
|
31
31
|
setOnSubmit(onSubmit: FormOnSubmit): void;
|
package/ui/views/FormView.js
CHANGED
|
@@ -55,9 +55,11 @@ export var FormView = /*#__PURE__*/function (_UIView) {
|
|
|
55
55
|
this.config.getTitle = function () {
|
|
56
56
|
return title;
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
|
|
59
|
+
return;
|
|
60
60
|
}
|
|
61
|
+
|
|
62
|
+
this.config.getTitle = title;
|
|
61
63
|
}
|
|
62
64
|
}, {
|
|
63
65
|
key: "setOnSubmit",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { UIElement } from "../../UIElement";
|
|
2
|
+
import { UIElement, UiElementRenderProps } from "../../UIElement";
|
|
3
3
|
export declare class ContentElement extends UIElement {
|
|
4
4
|
constructor(id: string);
|
|
5
|
-
render(props:
|
|
5
|
+
render(props: UiElementRenderProps): React.ReactNode;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { UIElement, UIElementConfig } from "../../UIElement";
|
|
2
|
+
import { UIElement, UIElementConfig, UiElementRenderProps } from "../../UIElement";
|
|
3
3
|
interface HeaderElementConfig extends UIElementConfig {
|
|
4
4
|
onClose: (event: React.MouseEvent) => void;
|
|
5
5
|
getTitle?: GetterWithoutProps<string>;
|
|
@@ -16,9 +16,9 @@ export declare class HeaderElement extends UIElement<HeaderElementConfig> {
|
|
|
16
16
|
setLeftSectionElement(element: UIElement): void;
|
|
17
17
|
setCenterSectionElement(element: UIElement): void;
|
|
18
18
|
setRightSectionElement(element: UIElement): void;
|
|
19
|
-
getLeftSectionElement(): UIElement
|
|
20
|
-
getCenterSectionElement(): UIElement
|
|
21
|
-
getRightSectionElement(): UIElement
|
|
22
|
-
render(props:
|
|
19
|
+
getLeftSectionElement(): UIElement;
|
|
20
|
+
getCenterSectionElement(): UIElement;
|
|
21
|
+
getRightSectionElement(): UIElement;
|
|
22
|
+
render(props: UiElementRenderProps): React.ReactNode;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type UseOverlayView = ReturnType<typeof useOverlayView>;
|
|
3
|
-
export declare function useOverlayView(): {
|
|
1
|
+
export interface UseOverlayView {
|
|
4
2
|
isVisible: boolean;
|
|
5
|
-
setIsVisible:
|
|
6
|
-
}
|
|
3
|
+
setIsVisible: (value: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const useOverlayView: () => UseOverlayView;
|
|
@@ -6,7 +6,7 @@ var noScroll = /*#__PURE__*/css({
|
|
|
6
6
|
overflow: "hidden",
|
|
7
7
|
height: "100vh"
|
|
8
8
|
}, "label:noScroll;");
|
|
9
|
-
export function useOverlayView() {
|
|
9
|
+
export var useOverlayView = function useOverlayView() {
|
|
10
10
|
var _useState = useState(false),
|
|
11
11
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12
12
|
isVisible = _useState2[0],
|
|
@@ -35,4 +35,4 @@ export function useOverlayView() {
|
|
|
35
35
|
isVisible: isVisible,
|
|
36
36
|
setIsVisible: setIsVisible
|
|
37
37
|
};
|
|
38
|
-
}
|
|
38
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { UIView } from "../UIView";
|
|
2
|
+
import { UIView, UIViewProps } from "../UIView";
|
|
3
|
+
import { UseOverlayView } from "./OverlayView/useOverlayView";
|
|
3
4
|
import { HeaderElement } from "./OverlayView/HeaderElement";
|
|
4
5
|
import { ContentElement } from "./OverlayView/ContentElement";
|
|
5
6
|
interface OnExited {
|
|
@@ -19,13 +20,10 @@ export declare class OverlayView extends UIView {
|
|
|
19
20
|
onExited(): void;
|
|
20
21
|
addOnEntered(cb: OnExited): void;
|
|
21
22
|
addOnExited(cb: OnExited): void;
|
|
22
|
-
getOverlayHook():
|
|
23
|
-
isVisible: boolean;
|
|
24
|
-
setIsVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
25
|
-
};
|
|
23
|
+
getOverlayHook(): UseOverlayView;
|
|
26
24
|
setIsVisible(visible: boolean): void;
|
|
27
25
|
getHeaderElement(): HeaderElement;
|
|
28
26
|
getContentElement(): ContentElement;
|
|
29
|
-
render(props:
|
|
27
|
+
render(props: UIViewProps): React.ReactNode;
|
|
30
28
|
}
|
|
31
29
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { UIElement } from "../../UIElement";
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UIElement, UiElementRenderProps } from "../../UIElement";
|
|
3
3
|
export declare class SplitViewPanelElement extends UIElement<any> {
|
|
4
4
|
private _width;
|
|
5
5
|
private _classNames;
|
|
@@ -7,5 +7,5 @@ export declare class SplitViewPanelElement extends UIElement<any> {
|
|
|
7
7
|
addClassName(className: string): void;
|
|
8
8
|
removeClassName(className: string): void;
|
|
9
9
|
setContentElement(element: UIElement): void;
|
|
10
|
-
render(props:
|
|
10
|
+
render(props: UiElementRenderProps): React.ReactNode;
|
|
11
11
|
}
|
package/ui/views/SplitView.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class SplitView extends UIView {
|
|
|
10
10
|
private _classNames;
|
|
11
11
|
private _leftPanel;
|
|
12
12
|
private _rightPanel;
|
|
13
|
-
constructor(id:
|
|
13
|
+
constructor(id: string, config?: SplitViewConfig);
|
|
14
14
|
addClassName(className: string): void;
|
|
15
15
|
removeClassName(className: string): void;
|
|
16
16
|
getLeftPanel(): SplitViewPanelElement;
|