@webiny/app-admin 5.23.1-beta.0 → 5.24.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 +3 -4
- 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
package/base/Admin.d.ts
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
interface Options {
|
|
4
|
-
uri: string;
|
|
5
|
-
}
|
|
6
|
-
interface ApolloClientFactory {
|
|
7
|
-
(options: Options): ApolloClient<any>;
|
|
8
|
-
}
|
|
2
|
+
import { ApolloClientFactory } from "./providers/ApolloProvider";
|
|
9
3
|
export interface AdminProps {
|
|
10
4
|
createApolloClient?: ApolloClientFactory;
|
|
11
5
|
children?: React.ReactNode;
|
|
12
6
|
}
|
|
13
7
|
export declare const Admin: ({ children, createApolloClient }: AdminProps) => JSX.Element;
|
|
14
|
-
export {};
|
package/base/Base.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const Base: React.
|
|
2
|
+
export declare const Base: React.NamedExoticComponent<{}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { DocumentNode } from "graphql";
|
|
3
3
|
interface Props {
|
|
4
4
|
operationName: string;
|
|
5
5
|
selectionPath: string;
|
|
6
6
|
addSelection: DocumentNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const AddGraphQLQuerySelection: FC<Props>;
|
|
8
|
+
export declare const AddGraphQLQuerySelection: React.FC<Props>;
|
|
9
9
|
export {};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import ApolloClient from "apollo-client";
|
|
3
|
+
interface Options {
|
|
4
|
+
uri: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ApolloClientFactory {
|
|
7
|
+
(options: Options): ApolloClient<any>;
|
|
8
|
+
}
|
|
9
|
+
export declare const createApolloProvider: (clientFactory: ApolloClientFactory) => (Component: React.ComponentType<unknown>) => React.FC;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const createTelemetryProvider: () => (Component:
|
|
3
|
-
children: any;
|
|
4
|
-
}) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const createTelemetryProvider: () => (Component: React.FC) => React.FC;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Package @webiny/telemetry is not a typescript project.
|
|
4
|
+
*/
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
|
|
2
7
|
import { sendEvent } from "@webiny/telemetry/react";
|
|
3
8
|
var eventSent = false;
|
|
4
9
|
export var createTelemetryProvider = function createTelemetryProvider() {
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const createUiStateProvider: () => (Component: React.ComponentType<unknown>) =>
|
|
3
|
-
children: any;
|
|
4
|
-
}) => JSX.Element;
|
|
2
|
+
export declare const createUiStateProvider: () => (Component: React.ComponentType<unknown>) => React.FC;
|
|
@@ -9,10 +9,8 @@ interface ElementSetter {
|
|
|
9
9
|
}
|
|
10
10
|
export interface ViewCompositionContext {
|
|
11
11
|
getViewElement(view: string, name: string): ViewElement;
|
|
12
|
-
setViewElement(view: string, name: string, setter: ElementSetter):
|
|
12
|
+
setViewElement(view: string, name: string, setter: ElementSetter): void;
|
|
13
13
|
}
|
|
14
14
|
export declare function useViewComposition(): ViewCompositionContext;
|
|
15
|
-
export declare const createViewCompositionProvider: () => (Component: React.ComponentType<unknown>) =>
|
|
16
|
-
children: any;
|
|
17
|
-
}) => JSX.Element;
|
|
15
|
+
export declare const createViewCompositionProvider: () => (Component: React.ComponentType<unknown>) => React.FC;
|
|
18
16
|
export {};
|
package/base/ui/Menu.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
export interface MenuUpdater {
|
|
3
|
+
(menuItem: MenuData): MenuData;
|
|
4
|
+
}
|
|
2
5
|
export interface MenuContext {
|
|
3
6
|
menuItem: MenuData;
|
|
4
|
-
setMenu(id: string,
|
|
7
|
+
setMenu(id: string, updater: MenuUpdater): void;
|
|
8
|
+
removeMenu(id: string): void;
|
|
5
9
|
}
|
|
6
10
|
export interface MenuProps {
|
|
7
11
|
name: string;
|
|
@@ -20,6 +24,7 @@ export interface MenuProps {
|
|
|
20
24
|
export interface MenuData extends MenuProps {
|
|
21
25
|
children: MenuData[];
|
|
22
26
|
}
|
|
27
|
+
export declare const createEmptyMenu: (name: string) => MenuData;
|
|
23
28
|
/**
|
|
24
29
|
* Register a new menu item into the Admin app.
|
|
25
30
|
*
|
package/base/ui/Menu.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
1
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
4
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["children"];
|
|
6
|
-
import React, { createContext,
|
|
7
|
-
import { set } from "dot-prop-immutable";
|
|
6
|
+
import React, { createContext, useContext, useEffect } from "react";
|
|
8
7
|
import { useNavigation } from "../..";
|
|
9
8
|
var MenuContext = /*#__PURE__*/createContext(null);
|
|
10
9
|
MenuContext.displayName = "MenuContext";
|
|
@@ -13,6 +12,36 @@ var useMenu = function useMenu() {
|
|
|
13
12
|
return useContext(MenuContext);
|
|
14
13
|
};
|
|
15
14
|
|
|
15
|
+
export var createEmptyMenu = function createEmptyMenu(name) {
|
|
16
|
+
return {
|
|
17
|
+
name: name,
|
|
18
|
+
tags: [],
|
|
19
|
+
children: []
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
var keys = ["label", "path", "icon", "onClick", "testId", "tags", "target", "rel", "element", "pin"];
|
|
23
|
+
|
|
24
|
+
var mergeMenuItems = function mergeMenuItems(item1, item2) {
|
|
25
|
+
return _objectSpread(_objectSpread(_objectSpread({}, item1), keys.reduce(function (map, key) {
|
|
26
|
+
var _item2$key;
|
|
27
|
+
|
|
28
|
+
return _objectSpread(_objectSpread({}, map), {}, _defineProperty({}, key, (_item2$key = item2[key]) !== null && _item2$key !== void 0 ? _item2$key : item1[key]));
|
|
29
|
+
}, {})), {}, {
|
|
30
|
+
children: (item2.children || []).reduce(function (acc, menu) {
|
|
31
|
+
var index = acc.findIndex(function (i) {
|
|
32
|
+
return i.name === menu.name;
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
if (index > -1) {
|
|
36
|
+
acc[index] = mergeMenuItems(acc[index], menu);
|
|
37
|
+
} else {
|
|
38
|
+
acc.push(menu);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return acc;
|
|
42
|
+
}, _toConsumableArray(item1.children))
|
|
43
|
+
});
|
|
44
|
+
};
|
|
16
45
|
/**
|
|
17
46
|
* Register a new menu item into the Admin app.
|
|
18
47
|
*
|
|
@@ -20,48 +49,81 @@ var useMenu = function useMenu() {
|
|
|
20
49
|
* @param props
|
|
21
50
|
* @constructor
|
|
22
51
|
*/
|
|
52
|
+
|
|
53
|
+
|
|
23
54
|
export var AddMenu = function AddMenu(_ref) {
|
|
24
55
|
var children = _ref.children,
|
|
25
56
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
57
|
|
|
27
|
-
var _useState = useState(_objectSpread(_objectSpread({}, props), {}, {
|
|
28
|
-
children: []
|
|
29
|
-
})),
|
|
30
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
-
state = _useState2[0],
|
|
32
|
-
setState = _useState2[1];
|
|
33
|
-
|
|
34
58
|
var menu = useMenu();
|
|
35
59
|
var navigation = useNavigation();
|
|
36
60
|
useEffect(function () {
|
|
37
61
|
if (menu) {
|
|
38
|
-
menu.setMenu(
|
|
62
|
+
menu.setMenu(props.name, function (existing) {
|
|
63
|
+
if (!existing) {
|
|
64
|
+
return _objectSpread(_objectSpread({}, props), {}, {
|
|
65
|
+
children: []
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return mergeMenuItems(existing, props);
|
|
70
|
+
});
|
|
39
71
|
} else {
|
|
40
|
-
navigation.setMenu(
|
|
72
|
+
navigation.setMenu(props.name, function (existing) {
|
|
73
|
+
return mergeMenuItems(existing, props);
|
|
74
|
+
});
|
|
41
75
|
}
|
|
42
|
-
|
|
43
|
-
useEffect(function () {
|
|
76
|
+
|
|
44
77
|
return function () {
|
|
45
|
-
|
|
78
|
+
if (menu) {
|
|
79
|
+
menu.removeMenu(props.name);
|
|
80
|
+
} else {
|
|
81
|
+
navigation.removeMenu(props.name);
|
|
82
|
+
}
|
|
46
83
|
};
|
|
47
84
|
}, []);
|
|
48
85
|
var context = {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
86
|
+
menuItem: _objectSpread(_objectSpread({}, props), {}, {
|
|
87
|
+
children: []
|
|
88
|
+
}),
|
|
89
|
+
removeMenu: function removeMenu(name) {
|
|
90
|
+
(menu || navigation).setMenu(props.name, function (existing) {
|
|
91
|
+
if (!existing) {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
var childIndex = existing.children.findIndex(function (ch) {
|
|
96
|
+
return ch.name === name;
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
if (childIndex > -1) {
|
|
100
|
+
return _objectSpread(_objectSpread({}, existing), {}, {
|
|
101
|
+
children: [].concat(_toConsumableArray(existing.children.slice(0, childIndex)), _toConsumableArray(existing.children.slice(childIndex + 1)))
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return existing;
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
setMenu: function setMenu(name, updater) {
|
|
109
|
+
(menu || navigation).setMenu(props.name, function (existing) {
|
|
110
|
+
if (!existing) {
|
|
111
|
+
existing = createEmptyMenu(props.name);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
var subItems = existing.children;
|
|
115
|
+
var childIndex = subItems.findIndex(function (ch) {
|
|
52
116
|
return ch.name === name;
|
|
53
117
|
});
|
|
54
118
|
|
|
55
119
|
if (childIndex === -1) {
|
|
56
|
-
return _objectSpread(_objectSpread({},
|
|
57
|
-
children: [].concat(_toConsumableArray(
|
|
120
|
+
return _objectSpread(_objectSpread({}, existing), {}, {
|
|
121
|
+
children: [].concat(_toConsumableArray(subItems), [updater(null)]).filter(Boolean)
|
|
58
122
|
});
|
|
59
123
|
}
|
|
60
124
|
|
|
61
|
-
return _objectSpread(_objectSpread({},
|
|
62
|
-
children:
|
|
63
|
-
return _objectSpread(_objectSpread({}, curr), props);
|
|
64
|
-
})
|
|
125
|
+
return _objectSpread(_objectSpread({}, existing), {}, {
|
|
126
|
+
children: [].concat(_toConsumableArray(subItems.slice(0, childIndex)), [updater(subItems[childIndex])], _toConsumableArray(subItems.slice(childIndex + 1))).filter(Boolean)
|
|
65
127
|
});
|
|
66
128
|
});
|
|
67
129
|
}
|
package/base/ui/Navigation.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { MenuData,
|
|
2
|
+
import { MenuData, MenuUpdater } from "../../index";
|
|
3
3
|
export interface NavigationContext {
|
|
4
4
|
menuItems: MenuData[];
|
|
5
|
-
setMenu(id: string,
|
|
5
|
+
setMenu(id: string, update: MenuUpdater): void;
|
|
6
6
|
removeMenu(id: string): void;
|
|
7
7
|
}
|
|
8
8
|
export declare function useNavigation(): NavigationContext;
|
|
9
|
-
export declare const NavigationProvider: (Component: React.ComponentType<unknown>) =>
|
|
10
|
-
children: any;
|
|
11
|
-
}) => JSX.Element;
|
|
9
|
+
export declare const NavigationProvider: (Component: React.ComponentType<unknown>) => React.FC;
|
|
12
10
|
export declare const Navigation: () => JSX.Element;
|
|
13
11
|
export declare const NavigationRenderer: React.FC<unknown> & {
|
|
14
12
|
original: React.ComponentType<unknown>;
|
package/base/ui/Navigation.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
3
|
import React, { Fragment, useEffect, createContext, useCallback, useMemo, useState, useContext } from "react";
|
|
5
4
|
import { nanoid } from "nanoid";
|
|
6
5
|
import { makeComposable, Plugins } from "@webiny/app-admin-core";
|
|
7
|
-
import { AddMenu as Menu, Tags } from "../..";
|
|
6
|
+
import { AddMenu as Menu, Tags, createEmptyMenu } from "../..";
|
|
8
7
|
import { plugins } from "@webiny/plugins";
|
|
9
8
|
var NavigationContext = /*#__PURE__*/createContext(null);
|
|
10
9
|
NavigationContext.displayName = "NavigationContext";
|
|
@@ -58,34 +57,18 @@ export var NavigationProvider = function NavigationProvider(Component) {
|
|
|
58
57
|
menuItems = _useState4[0],
|
|
59
58
|
setState = _useState4[1];
|
|
60
59
|
|
|
61
|
-
var
|
|
62
|
-
var _item2$label, _item2$icon;
|
|
63
|
-
|
|
64
|
-
return _objectSpread(_objectSpread({}, item1), {}, {
|
|
65
|
-
label: (_item2$label = item2.label) !== null && _item2$label !== void 0 ? _item2$label : item1.label,
|
|
66
|
-
icon: (_item2$icon = item2.icon) !== null && _item2$icon !== void 0 ? _item2$icon : item1.icon,
|
|
67
|
-
children: item2.children.reduce(function (acc, menu) {
|
|
68
|
-
var index = acc.findIndex(function (i) {
|
|
69
|
-
return i.name === menu.name;
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
if (index > -1) {
|
|
73
|
-
acc[index] = mergeMenuItems(acc[index], menu);
|
|
74
|
-
} else {
|
|
75
|
-
acc.push(menu);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return acc;
|
|
79
|
-
}, _toConsumableArray(item1.children))
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
var setMenu = function setMenu(id, menuItem) {
|
|
60
|
+
var setMenu = function setMenu(id, updater) {
|
|
84
61
|
setState(function (state) {
|
|
85
62
|
var index = state.findIndex(function (m) {
|
|
86
63
|
return m.name === id;
|
|
87
64
|
});
|
|
88
|
-
|
|
65
|
+
var newMenu = index > -1 ? updater(state[index]) : updater(createEmptyMenu(id));
|
|
66
|
+
|
|
67
|
+
if (!newMenu.children) {
|
|
68
|
+
newMenu.children = [];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return index > -1 ? [].concat(_toConsumableArray(state.slice(0, index)), [newMenu], _toConsumableArray(state.slice(index + 1))) : [].concat(_toConsumableArray(state), [newMenu]);
|
|
89
72
|
});
|
|
90
73
|
};
|
|
91
74
|
|
package/base/ui/Search.d.ts
CHANGED
|
@@ -12,10 +12,7 @@ export interface SearchContext {
|
|
|
12
12
|
addOption(option: SearchOptionData): void;
|
|
13
13
|
}
|
|
14
14
|
export declare function useSearch(): SearchContext;
|
|
15
|
-
export declare const SearchProvider: (Component:
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
children: any;
|
|
18
|
-
}) => JSX.Element;
|
|
15
|
+
export declare const SearchProvider: (Component: React.FC) => React.FC;
|
|
19
16
|
export declare const Search: React.FC<unknown> & {
|
|
20
17
|
original: React.ComponentType<unknown>;
|
|
21
18
|
originalName: string;
|
|
@@ -25,4 +22,4 @@ export declare const SearchRenderer: React.FC<unknown> & {
|
|
|
25
22
|
originalName: string;
|
|
26
23
|
};
|
|
27
24
|
export declare type SearchOptionProps = SearchOptionData;
|
|
28
|
-
export declare const SearchOption: (props: SearchOptionProps) =>
|
|
25
|
+
export declare const SearchOption: (props: SearchOptionProps) => React.FC;
|
package/base/ui/Tags.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ interface TagsProps {
|
|
|
3
3
|
tags: Record<string, string | boolean>;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const Tags:
|
|
6
|
+
export declare const Tags: React.FC<TagsProps>;
|
|
7
7
|
export declare const useTags: () => Record<string, string | boolean>;
|
|
8
8
|
export {};
|
package/base/ui/UserMenu.d.ts
CHANGED
|
@@ -11,10 +11,7 @@ export interface UserMenuContext {
|
|
|
11
11
|
addMenuItem(item: UserMenuItemData): void;
|
|
12
12
|
}
|
|
13
13
|
export declare function useUserMenu(): UserMenuContext;
|
|
14
|
-
export declare const UserMenuProvider: (Component:
|
|
15
|
-
[x: string]: any;
|
|
16
|
-
children: any;
|
|
17
|
-
}) => JSX.Element;
|
|
14
|
+
export declare const UserMenuProvider: (Component: React.FC) => React.FC;
|
|
18
15
|
export declare const UserMenu: React.FC<unknown> & {
|
|
19
16
|
original: React.ComponentType<unknown>;
|
|
20
17
|
originalName: string;
|
|
@@ -42,7 +39,7 @@ export declare const UserMenuItemRenderer: React.FC<unknown> & {
|
|
|
42
39
|
original: React.ComponentType<unknown>;
|
|
43
40
|
originalName: string;
|
|
44
41
|
};
|
|
45
|
-
export declare const AddUserMenuItem:
|
|
42
|
+
export declare const AddUserMenuItem: React.FC<UserMenuItemProps["menuItem"]>;
|
|
46
43
|
export declare type UserMenuItemContext = UserMenuItemData;
|
|
47
44
|
export declare function useUserMenuItem(): UserMenuItemData;
|
|
48
45
|
export interface UserMenuItemsProps {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface AdminLayoutProps {
|
|
3
3
|
title?: string;
|
|
4
|
-
children: React.ReactNode;
|
|
5
4
|
}
|
|
6
|
-
export declare const AdminLayout:
|
|
5
|
+
export declare const AdminLayout: React.FC<AdminLayoutProps>;
|
|
7
6
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Installer } from "./useInstaller";
|
|
3
|
+
interface SidebarProps {
|
|
4
|
+
allInstallers: Installer[];
|
|
5
|
+
installer: Installer;
|
|
6
|
+
showLogin: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Sidebar: React.FC<SidebarProps>;
|
|
7
9
|
export default Sidebar;
|
|
@@ -75,11 +75,11 @@ var Note = /*#__PURE__*/styled("div", {
|
|
|
75
75
|
padding: 15
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
var Installations = function Installations(
|
|
79
|
-
var title =
|
|
80
|
-
allInstallers =
|
|
81
|
-
installer =
|
|
82
|
-
showLogin =
|
|
78
|
+
var Installations = function Installations(props) {
|
|
79
|
+
var title = props.title,
|
|
80
|
+
allInstallers = props.allInstallers,
|
|
81
|
+
installer = props.installer,
|
|
82
|
+
showLogin = props.showLogin;
|
|
83
83
|
|
|
84
84
|
var renderList = function renderList() {
|
|
85
85
|
var loginItem = /*#__PURE__*/React.createElement("li", {
|
|
@@ -130,10 +130,10 @@ var Installations = function Installations(_ref) {
|
|
|
130
130
|
}, title)), /*#__PURE__*/React.createElement(List, null, renderList()));
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
var Sidebar = function Sidebar(
|
|
134
|
-
var allInstallers =
|
|
135
|
-
installer =
|
|
136
|
-
showLogin =
|
|
133
|
+
var Sidebar = function Sidebar(_ref) {
|
|
134
|
+
var allInstallers = _ref.allInstallers,
|
|
135
|
+
installer = _ref.installer,
|
|
136
|
+
showLogin = _ref.showLogin;
|
|
137
137
|
var upgrades = allInstallers.filter(function (installer) {
|
|
138
138
|
return installer.type === "upgrade";
|
|
139
139
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "
|
|
3
|
-
export declare const InstallContent: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "
|
|
2
|
+
export declare const Wrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "translate" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">, object>;
|
|
3
|
+
export declare const InstallContent: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "translate" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">, object>;
|
|
4
4
|
export declare const installerSplitView: string;
|
|
5
|
-
export declare const SuccessDialog: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "
|
|
6
|
-
export declare const InnerContent: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "
|
|
5
|
+
export declare const SuccessDialog: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "translate" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">, object>;
|
|
6
|
+
export declare const InnerContent: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "translate" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">, object>;
|
|
7
7
|
export declare const alertClass: string;
|