@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.
Files changed (135) hide show
  1. package/base/Admin.d.ts +1 -8
  2. package/base/Base.d.ts +1 -1
  3. package/base/plugins/AddGraphQLQuerySelection.d.ts +2 -2
  4. package/base/providers/ApolloProvider.d.ts +9 -3
  5. package/base/providers/TelemetryProvider.d.ts +2 -4
  6. package/base/providers/TelemetryProvider.js +5 -0
  7. package/base/providers/UiStateProvider.d.ts +1 -3
  8. package/base/providers/ViewCompositionProvider.d.ts +2 -4
  9. package/base/ui/Menu.d.ts +6 -1
  10. package/base/ui/Menu.js +87 -25
  11. package/base/ui/Navigation.d.ts +3 -5
  12. package/base/ui/Navigation.js +9 -26
  13. package/base/ui/Search.d.ts +2 -5
  14. package/base/ui/Tags.d.ts +1 -1
  15. package/base/ui/UserMenu.d.ts +2 -5
  16. package/components/AdminLayout.d.ts +1 -2
  17. package/components/AppInstaller/AppInstaller.d.ts +2 -4
  18. package/components/AppInstaller/Sidebar.d.ts +8 -6
  19. package/components/AppInstaller/Sidebar.js +9 -9
  20. package/components/AppInstaller/styled.d.ts +4 -4
  21. package/components/AppInstaller/useInstaller.d.ts +26 -9
  22. package/components/AppInstaller/useInstaller.js +42 -34
  23. package/components/EmptyView.d.ts +4 -4
  24. package/components/FileManager/BottomInfoBar/SupportedFileTypes.d.ts +5 -4
  25. package/components/FileManager/BottomInfoBar/SupportedFileTypes.js +2 -1
  26. package/components/FileManager/BottomInfoBar/UploadStatus.d.ts +5 -4
  27. package/components/FileManager/BottomInfoBar.d.ts +4 -2
  28. package/components/FileManager/DropFilesHere.d.ts +4 -3
  29. package/components/FileManager/DropFilesHere.js +5 -2
  30. package/components/FileManager/File.d.ts +7 -8
  31. package/components/FileManager/File.js +11 -5
  32. package/components/FileManager/FileDetails/Name.d.ts +7 -5
  33. package/components/FileManager/FileDetails/Name.js +2 -2
  34. package/components/FileManager/FileDetails/Tags.d.ts +7 -5
  35. package/components/FileManager/FileDetails/Tags.js +4 -2
  36. package/components/FileManager/FileDetails.d.ts +6 -8
  37. package/components/FileManager/FileDetails.js +14 -2
  38. package/components/FileManager/FileManagerContext.d.ts +12 -9
  39. package/components/FileManager/FileManagerContext.js +9 -7
  40. package/components/FileManager/FileManagerView.d.ts +2 -10
  41. package/components/FileManager/FileManagerView.js +19 -8
  42. package/components/FileManager/LeftSidebar.d.ts +6 -5
  43. package/components/FileManager/LeftSidebar.js +4 -4
  44. package/components/FileManager/NoPermissionView.d.ts +2 -2
  45. package/components/FileManager/NoResults.d.ts +3 -2
  46. package/components/FileManager/NoResults.js +5 -2
  47. package/components/FileManager/getFileTypePlugin.d.ts +4 -1
  48. package/components/FileManager/getFileTypePlugin.js +5 -0
  49. package/components/FileManager/getFileUploader.d.ts +2 -1
  50. package/components/FileManager/outputFileSelectionError.d.ts +4 -1
  51. package/components/FileManager/outputFileSelectionError.js +5 -0
  52. package/components/FileManager/types.d.ts +49 -0
  53. package/components/FileManager/types.js +1 -0
  54. package/components/FileManager.d.ts +15 -10
  55. package/components/FileManager.js +15 -12
  56. package/components/FloatingActionButton.d.ts +2 -2
  57. package/components/MultiImageUpload.d.ts +13 -4
  58. package/components/MultiImageUpload.js +15 -4
  59. package/components/OverlayLayout/OverlayLayout.d.ts +9 -12
  60. package/components/Permissions/StyledComponents.d.ts +6 -4
  61. package/components/RichTextEditor/RichTextEditor.d.ts +2 -2
  62. package/components/RichTextEditor/tools/header/index.d.ts +33 -34
  63. package/components/RichTextEditor/tools/header/index.js +2 -3
  64. package/components/RichTextEditor/tools/image/index.d.ts +36 -13
  65. package/components/RichTextEditor/tools/image/index.js +4 -2
  66. package/components/RichTextEditor/tools/image/tunes.d.ts +12 -15
  67. package/components/RichTextEditor/tools/image/tunes.js +2 -1
  68. package/components/RichTextEditor/tools/image/types.d.ts +29 -0
  69. package/components/RichTextEditor/tools/image/types.js +1 -0
  70. package/components/RichTextEditor/tools/image/ui.d.ts +33 -26
  71. package/components/RichTextEditor/tools/image/ui.js +24 -11
  72. package/components/RichTextEditor/tools/paragraph/index.d.ts +31 -31
  73. package/components/RichTextEditor/tools/paragraph/index.js +11 -15
  74. package/components/RichTextEditor/tools/textColor/index.d.ts +22 -21
  75. package/components/RichTextEditor/tools/textColor/index.js +3 -1
  76. package/components/Routes.d.ts +2 -2
  77. package/components/SearchUI.d.ts +4 -4
  78. package/components/SimpleForm/SimpleForm.d.ts +7 -9
  79. package/components/SimpleUI/InputField.d.ts +3 -3
  80. package/components/SimpleUI/InputField.js +18 -18
  81. package/components/SingleImageUpload.d.ts +4 -9
  82. package/components/SingleImageUpload.js +2 -1
  83. package/components/SplitView/SplitView.d.ts +5 -5
  84. package/hooks/useConfirmationDialog.d.ts +6 -5
  85. package/hooks/useConfirmationDialog.js +1 -2
  86. package/hooks/useDialog.d.ts +8 -3
  87. package/hooks/useDialog.js +1 -1
  88. package/hooks/useSnackbar.d.ts +6 -3
  89. package/package.json +17 -14
  90. package/plugins/FileManagerFileTypePlugin.d.ts +1 -1
  91. package/plugins/MenuPlugin.d.ts +3 -3
  92. package/plugins/fileManager/fileImage/DeleteAction.d.ts +6 -2
  93. package/plugins/fileManager/fileImage/EditAction.d.ts +7 -6
  94. package/plugins/fileManager/fileImage/EditAction.js +18 -9
  95. package/plugins/globalSearch/SearchBar.d.ts +13 -0
  96. package/plugins/globalSearch/SearchBar.js +5 -0
  97. package/plugins/globalSearch/SearchBarDropdown.d.ts +16 -1
  98. package/plugins/globalSearch/index.d.ts +2 -1
  99. package/plugins/globalSearch/styled.d.ts +3 -3
  100. package/plugins/index.d.ts +2 -1
  101. package/types.d.ts +8 -6
  102. package/ui/UIElement.d.ts +1 -1
  103. package/ui/UIView.d.ts +1 -1
  104. package/ui/elements/AccordionElement.d.ts +5 -5
  105. package/ui/elements/AccordionElement.js +4 -0
  106. package/ui/elements/ButtonElement.d.ts +3 -3
  107. package/ui/elements/ButtonGroupElement.d.ts +2 -2
  108. package/ui/elements/NavigationMenuElement.d.ts +5 -1
  109. package/ui/elements/NavigationMenuElement.js +3 -2
  110. package/ui/elements/PlaceholderElement.d.ts +2 -1
  111. package/ui/elements/SmallButtonElement.d.ts +1 -1
  112. package/ui/elements/TypographyElement.d.ts +1 -1
  113. package/ui/elements/form/FileManagerElement/styled.d.ts +9 -9
  114. package/ui/elements/form/FileManagerElement.d.ts +4 -3
  115. package/ui/elements/form/FormElement.d.ts +5 -5
  116. package/ui/elements/form/FormFieldElement.d.ts +6 -5
  117. package/ui/elements/form/FormFieldElement.js +5 -5
  118. package/ui/elements/form/InputElement.d.ts +1 -0
  119. package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +2 -2
  120. package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +2 -2
  121. package/ui/views/AdminView/HeaderSectionRightElement.d.ts +2 -2
  122. package/ui/views/AdminView/components/Hamburger.d.ts +2 -2
  123. package/ui/views/AdminView/components/Snackbar.d.ts +2 -2
  124. package/ui/views/FormView/FormContainerElement.d.ts +2 -2
  125. package/ui/views/FormView/FormFooterElement.d.ts +3 -3
  126. package/ui/views/FormView/FormHeaderElement.d.ts +2 -2
  127. package/ui/views/FormView.d.ts +1 -1
  128. package/ui/views/FormView.js +4 -2
  129. package/ui/views/OverlayView/ContentElement.d.ts +2 -2
  130. package/ui/views/OverlayView/HeaderElement.d.ts +5 -5
  131. package/ui/views/OverlayView/useOverlayView.d.ts +4 -5
  132. package/ui/views/OverlayView/useOverlayView.js +2 -2
  133. package/ui/views/OverlayView.d.ts +4 -6
  134. package/ui/views/SplitView/SplitViewPanelElement.d.ts +3 -3
  135. 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: any): React.ReactNode;
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: any): React.ReactNode;
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: any): React.ReactNode;
5
+ render(props: UiElementRenderProps): React.ReactNode;
6
6
  }
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const Hamburger: () => JSX.Element;
1
+ import React from "react";
2
+ declare const Hamburger: React.FC;
3
3
  export default Hamburger;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const SnackbarMain: () => JSX.Element;
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: any): JSX.Element;
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: any);
5
- render(props: any): JSX.Element;
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: any, config: FormHeaderConfig);
9
+ constructor(id: string, config: FormHeaderConfig);
10
10
  setIcon(icon: React.ReactElement): void;
11
11
  addAction(element: UIElement): void;
12
- render(props: any): any;
12
+ render(props: FormElementRenderProps): React.ReactNode;
13
13
  }
14
14
  export {};
@@ -25,7 +25,7 @@ interface GetterWithoutProps<T> {
25
25
  (): T;
26
26
  }
27
27
  export declare class FormView extends UIView<FormViewConfig> {
28
- constructor(id: any, config?: FormViewConfig);
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;
@@ -55,9 +55,11 @@ export var FormView = /*#__PURE__*/function (_UIView) {
55
55
  this.config.getTitle = function () {
56
56
  return title;
57
57
  };
58
- } else {
59
- this.config.getTitle = title;
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: any): React.ReactNode;
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<UIElementConfig<any>>;
20
- getCenterSectionElement(): UIElement<UIElementConfig<any>>;
21
- getRightSectionElement(): UIElement<UIElementConfig<any>>;
22
- render(props: any): React.ReactNode;
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
- /// <reference types="react" />
2
- export declare type UseOverlayView = ReturnType<typeof useOverlayView>;
3
- export declare function useOverlayView(): {
1
+ export interface UseOverlayView {
4
2
  isVisible: boolean;
5
- setIsVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
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: any): JSX.Element;
27
+ render(props: UIViewProps): React.ReactNode;
30
28
  }
31
29
  export {};
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
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: any): JSX.Element;
10
+ render(props: UiElementRenderProps): React.ReactNode;
11
11
  }
@@ -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: any, config?: SplitViewConfig);
13
+ constructor(id: string, config?: SplitViewConfig);
14
14
  addClassName(className: string): void;
15
15
  removeClassName(className: string): void;
16
16
  getLeftPanel(): SplitViewPanelElement;