@webiny/app-admin 5.20.0 → 5.22.0-beta.1
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/assets/icons/slack-logo.svg +1 -1
- package/base/Admin.d.ts +14 -0
- package/base/Admin.js +29 -0
- package/base/Base.d.ts +2 -0
- package/base/Base.js +65 -0
- package/base/plugins/AddGraphQLQuerySelection.d.ts +9 -0
- package/base/plugins/AddGraphQLQuerySelection.js +15 -0
- package/base/providers/ApolloProvider.d.ts +4 -0
- package/base/providers/ApolloProvider.js +14 -0
- package/base/providers/TelemetryProvider.d.ts +4 -0
- package/base/providers/TelemetryProvider.js +19 -0
- package/base/providers/UiStateProvider.d.ts +4 -0
- package/base/providers/UiStateProvider.js +10 -0
- package/base/providers/ViewCompositionProvider.d.ts +18 -0
- package/base/providers/ViewCompositionProvider.js +44 -0
- package/base/ui/Brand.d.ts +9 -0
- package/base/ui/Brand.js +6 -0
- package/base/ui/CenteredView.d.ts +8 -0
- package/base/ui/CenteredView.js +27 -0
- package/base/ui/Dashboard.d.ts +9 -0
- package/base/ui/Dashboard.js +6 -0
- package/base/ui/Layout.d.ts +13 -0
- package/base/ui/Layout.js +11 -0
- package/base/ui/LocaleSelector.d.ts +9 -0
- package/base/ui/LocaleSelector.js +6 -0
- package/base/ui/LoginScreen.d.ts +9 -0
- package/base/ui/LoginScreen.js +12 -0
- package/base/ui/Logo.d.ts +14 -0
- package/base/ui/Logo.js +20 -0
- package/base/ui/Menu.d.ts +35 -0
- package/base/ui/Menu.js +80 -0
- package/base/ui/Navigation.d.ts +35 -0
- package/base/ui/Navigation.js +147 -0
- package/base/ui/NotFound.d.ts +9 -0
- package/base/ui/NotFound.js +6 -0
- package/base/ui/Search.d.ts +28 -0
- package/base/ui/Search.js +48 -0
- package/base/ui/Tags.d.ts +8 -0
- package/base/ui/Tags.js +13 -0
- package/base/ui/UserMenu.d.ts +54 -0
- package/base/ui/UserMenu.js +86 -0
- package/components/AdminLayout.js +5 -31
- package/components/AppInstaller/AppInstaller.d.ts +4 -0
- package/components/AppInstaller/AppInstaller.js +136 -0
- package/components/AppInstaller/index.d.ts +1 -4
- package/components/AppInstaller/index.js +13 -133
- package/components/AppInstaller/styled.d.ts +4 -4
- package/components/EmptyView.js +1 -1
- package/components/FileManager/BottomInfoBar/SupportedFileTypes.js +2 -2
- package/components/FileManager/DropFilesHere.js +1 -1
- package/components/FileManager/File.js +2 -2
- package/components/FileManager/FileDetails/Tags.js +2 -2
- package/components/FileManager/FileDetails.js +6 -6
- package/components/FileManager/FileManagerView.js +2 -2
- package/components/FileManager/LeftSidebar.js +1 -1
- package/components/FileManager/NoPermissionView.js +1 -1
- package/components/FloatingActionButton.js +1 -1
- package/components/OverlayLayout/OverlayLayout.js +1 -1
- package/components/Routes.d.ts +6 -0
- package/components/Routes.js +34 -0
- package/components/SearchUI.js +1 -1
- package/index.d.ts +28 -0
- package/index.js +26 -0
- package/package.json +28 -32
- package/plugins/MenuPlugin.d.ts +18 -1
- package/plugins/fileManager/fileDefault.js +1 -1
- package/plugins/fileManager/fileImage/DeleteAction.js +1 -1
- package/plugins/fileManager/fileImage/EditAction.js +1 -1
- package/plugins/globalSearch/SearchBar.d.ts +6 -3
- package/plugins/globalSearch/SearchBar.js +3 -2
- package/plugins/globalSearch/SearchBarDropdown.js +1 -1
- package/plugins/globalSearch/index.d.ts +0 -3
- package/plugins/globalSearch/index.js +0 -18
- package/plugins/globalSearch/styled.d.ts +3 -3
- package/plugins/index.d.ts +1 -1
- package/plugins/index.js +2 -4
- package/styles/material-theme-assignments.scss +1 -0
- package/types.d.ts +1 -10
- package/ui/elements/PanelElement.js +2 -1
- package/ui/elements/form/FileManagerElement/EmptyStateElement.js +2 -1
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +2 -2
- package/ui/elements/form/FileManagerElement/styled.d.ts +9 -9
- package/ui/elements/form/FileManagerElement.d.ts +3 -2
- package/ui/views/AdminView/ContentElement.js +1 -1
- package/ui/views/AdminView/components/Hamburger.js +1 -1
- package/ui/views/FormView/FormContentElement.js +2 -1
- package/ui/views/OverlayView/HeaderElement.js +1 -1
- package/ui/views/OverlayView/HeaderTitleElement.js +1 -1
- package/plugins/logo/Logo.d.ts +0 -22
- package/plugins/logo/Logo.js +0 -108
- package/plugins/logo/index.d.ts +0 -5
- package/plugins/logo/index.js +0 -32
- package/plugins/menu/documentation.d.ts +0 -4
- package/plugins/menu/documentation.js +0 -16
- package/plugins/menu/fileManager.d.ts +0 -4
- package/plugins/menu/fileManager.js +0 -64
- package/plugins/menu/index.d.ts +0 -6
- package/plugins/menu/index.js +0 -24
- package/plugins/menu/renderers/MenuGroupRenderer.d.ts +0 -7
- package/plugins/menu/renderers/MenuGroupRenderer.js +0 -126
- package/plugins/menu/renderers/MenuLinkRenderer.d.ts +0 -7
- package/plugins/menu/renderers/MenuLinkRenderer.js +0 -52
- package/plugins/menu/renderers/MenuSectionItemRenderer.d.ts +0 -7
- package/plugins/menu/renderers/MenuSectionItemRenderer.js +0 -77
- package/plugins/menu/renderers/MenuSectionRenderer.d.ts +0 -7
- package/plugins/menu/renderers/MenuSectionRenderer.js +0 -51
- package/plugins/menu/slack.d.ts +0 -4
- package/plugins/menu/slack.js +0 -16
- package/plugins/menu/source.d.ts +0 -4
- package/plugins/menu/source.js +0 -16
- package/plugins/userMenu/UserMenuElement.d.ts +0 -7
- package/plugins/userMenu/UserMenuElement.js +0 -43
- package/plugins/userMenu/UserMenuRenderer.d.ts +0 -6
- package/plugins/userMenu/UserMenuRenderer.js +0 -47
- package/plugins/userMenu/index.d.ts +0 -4
- package/plugins/userMenu/index.js +0 -16
- package/ui/views/AdminView.d.ts +0 -12
- package/ui/views/AdminView.js +0 -90
- package/ui/views/NavigationView/ContentElement.d.ts +0 -10
- package/ui/views/NavigationView/ContentElement.js +0 -86
- package/ui/views/NavigationView/FooterElement.d.ts +0 -13
- package/ui/views/NavigationView/FooterElement.js +0 -59
- package/ui/views/NavigationView/HeaderElement.d.ts +0 -16
- package/ui/views/NavigationView/HeaderElement.js +0 -66
- package/ui/views/NavigationView/NavigationViewRenderer.d.ts +0 -6
- package/ui/views/NavigationView/NavigationViewRenderer.js +0 -38
- package/ui/views/NavigationView/Styled.d.ts +0 -7
- package/ui/views/NavigationView/Styled.js +0 -47
- package/ui/views/NavigationView/legacyMenu.d.ts +0 -22
- package/ui/views/NavigationView/legacyMenu.js +0 -1
- package/ui/views/NavigationView/useNavigation.d.ts +0 -6
- package/ui/views/NavigationView/useNavigation.js +0 -22
- package/ui/views/NavigationView.d.ts +0 -26
- package/ui/views/NavigationView.js +0 -204
|
@@ -1,136 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Typography } from "@webiny/ui/Typography";
|
|
10
|
-
import { Elevation } from "@webiny/ui/Elevation";
|
|
11
|
-
import { useInstaller } from "./useInstaller";
|
|
12
|
-
import Sidebar from "./Sidebar";
|
|
13
|
-
import { Wrapper, alertClass, InnerContent, InstallContent, installerSplitView, SuccessDialog } from "./styled";
|
|
14
|
-
import { config as appConfig } from "@webiny/app/config";
|
|
15
|
-
export var AppInstaller = function AppInstaller(_ref) {
|
|
16
|
-
var Authentication = _ref.Authentication,
|
|
17
|
-
children = _ref.children;
|
|
18
|
-
var tenantId = localStorage.get("webiny_tenant") || "root";
|
|
19
|
-
var lsKey = "webiny_installation_".concat(tenantId);
|
|
20
|
-
var wbyVersion = appConfig.getKey("WEBINY_VERSION", process.env.REACT_APP_WEBINY_VERSION);
|
|
21
|
-
|
|
22
|
-
var markInstallerAsCompleted = function markInstallerAsCompleted() {
|
|
23
|
-
localStorage.set(lsKey, wbyVersion);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var isInstallerCompleted = function isInstallerCompleted() {
|
|
27
|
-
return localStorage.get(lsKey) === wbyVersion;
|
|
1
|
+
import { Provider } from "../..";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppInstaller as Installer } from "./AppInstaller";
|
|
4
|
+
|
|
5
|
+
var AppInstallerHOC = function AppInstallerHOC(Component) {
|
|
6
|
+
return function AppInstallerProvider(_ref) {
|
|
7
|
+
var children = _ref.children;
|
|
8
|
+
return /*#__PURE__*/React.createElement(Installer, null, /*#__PURE__*/React.createElement(Component, null, children));
|
|
28
9
|
};
|
|
10
|
+
};
|
|
29
11
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var _useSecurity = useSecurity(),
|
|
36
|
-
identity = _useSecurity.identity;
|
|
37
|
-
|
|
38
|
-
var _useInstaller = useInstaller({
|
|
39
|
-
isInstalled: isInstallerCompleted()
|
|
40
|
-
}),
|
|
41
|
-
loading = _useInstaller.loading,
|
|
42
|
-
installers = _useInstaller.installers,
|
|
43
|
-
installer = _useInstaller.installer,
|
|
44
|
-
showNextInstaller = _useInstaller.showNextInstaller,
|
|
45
|
-
showLogin = _useInstaller.showLogin,
|
|
46
|
-
onUser = _useInstaller.onUser,
|
|
47
|
-
skippingVersions = _useInstaller.skippingVersions;
|
|
48
|
-
|
|
49
|
-
useEffect(function () {
|
|
50
|
-
if (identity) {
|
|
51
|
-
onUser();
|
|
52
|
-
}
|
|
53
|
-
}, [identity]);
|
|
54
|
-
|
|
55
|
-
if (isInstallerCompleted()) {
|
|
56
|
-
return /*#__PURE__*/React.createElement(Authentication, null, children);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
var renderLayout = function renderLayout(content) {
|
|
60
|
-
var secure = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
61
|
-
return /*#__PURE__*/React.createElement(SplitView, {
|
|
62
|
-
className: installerSplitView
|
|
63
|
-
}, /*#__PURE__*/React.createElement(LeftPanel, {
|
|
64
|
-
span: 2
|
|
65
|
-
}, /*#__PURE__*/React.createElement(Sidebar, {
|
|
66
|
-
allInstallers: installers,
|
|
67
|
-
installer: installer,
|
|
68
|
-
showLogin: showLogin
|
|
69
|
-
})), /*#__PURE__*/React.createElement(RightPanel, {
|
|
70
|
-
span: 10
|
|
71
|
-
}, !showLogin && !secure && content, (showLogin || secure) && /*#__PURE__*/React.createElement(Authentication, null, content)));
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
var renderBody = function renderBody(content) {
|
|
75
|
-
return /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(InstallContent, null, /*#__PURE__*/React.createElement(InnerContent, null, content)));
|
|
76
|
-
}; // Loading installers data
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (loading) {
|
|
80
|
-
return /*#__PURE__*/React.createElement(CircularProgress, {
|
|
81
|
-
label: "Checking apps..."
|
|
82
|
-
});
|
|
83
|
-
} // This means there are no installers to run or installation was finished
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
if (!loading && (installers.length === 0 || finished)) {
|
|
87
|
-
markInstallerAsCompleted();
|
|
88
|
-
return /*#__PURE__*/React.createElement(Authentication, null, children);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (installer) {
|
|
92
|
-
return renderLayout(renderBody(installer.render({
|
|
93
|
-
onInstalled: showNextInstaller
|
|
94
|
-
})), installer.secure);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (skippingVersions) {
|
|
98
|
-
return renderBody( /*#__PURE__*/React.createElement(Elevation, {
|
|
99
|
-
z: 1,
|
|
100
|
-
className: alertClass
|
|
101
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Cell, {
|
|
102
|
-
span: 12
|
|
103
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
104
|
-
use: "headline4"
|
|
105
|
-
}, "Important!")), /*#__PURE__*/React.createElement(Cell, {
|
|
106
|
-
span: 12
|
|
107
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
108
|
-
use: "body1",
|
|
109
|
-
tag: "div"
|
|
110
|
-
}, "We've detected that your current application is running Webiny", " ", /*#__PURE__*/React.createElement("strong", null, "v", skippingVersions.latest), ". However, your API is running ", /*#__PURE__*/React.createElement("strong", null, "v", skippingVersions.current), ". Unfortunately, we can't upgrade your system by skipping versions in between.", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), "Here's a list of versions you skipped, that contain upgrades you need to install:", /*#__PURE__*/React.createElement("ul", null, skippingVersions.availableUpgrades.filter(function (v) {
|
|
111
|
-
return v !== skippingVersions.latest;
|
|
112
|
-
}).map(function (v) {
|
|
113
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
114
|
-
key: v
|
|
115
|
-
}, "v", v);
|
|
116
|
-
})), "For instructions on how to upgrade Webiny, please consult our", " ", /*#__PURE__*/React.createElement("a", {
|
|
117
|
-
href: "https://docs.webiny.com/docs/how-to-guides/upgrade-webiny",
|
|
118
|
-
target: "_blank",
|
|
119
|
-
rel: "noreferrer noopener"
|
|
120
|
-
}, "Upgrade Webiny"), " ", "guide. Note that some versions may have a dedicated article with upgrade instructions, so look out for those in the upgrade guide.", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), "If you run into problems, find us on our", " ", /*#__PURE__*/React.createElement("a", {
|
|
121
|
-
href: "https://www.webiny.com/slack",
|
|
122
|
-
target: "_blank",
|
|
123
|
-
rel: "noreferrer noopener"
|
|
124
|
-
}, "Slack community."))))));
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return renderLayout(renderBody( /*#__PURE__*/React.createElement(Elevation, {
|
|
128
|
-
z: 1
|
|
129
|
-
}, /*#__PURE__*/React.createElement(SuccessDialog, null, /*#__PURE__*/React.createElement("p", null, "You have successfully installed all new applications!"), /*#__PURE__*/React.createElement(ButtonPrimary, {
|
|
130
|
-
"data-testid": "open-webiny-cms-admin-button",
|
|
131
|
-
onClick: function onClick() {
|
|
132
|
-
markInstallerAsCompleted();
|
|
133
|
-
setFinished(true);
|
|
134
|
-
}
|
|
135
|
-
}, "Open Admin Area")))), true);
|
|
12
|
+
export var AppInstaller = function AppInstaller() {
|
|
13
|
+
return /*#__PURE__*/React.createElement(Provider, {
|
|
14
|
+
hoc: AppInstallerHOC
|
|
15
|
+
});
|
|
136
16
|
};
|
|
@@ -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>, "children" | "slot" | "style" | "title" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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>, "children" | "slot" | "style" | "title" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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>, "children" | "slot" | "style" | "title" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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>, "children" | "slot" | "style" | "title" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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;
|
package/components/EmptyView.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { Typography } from "@webiny/ui/Typography";
|
|
4
|
-
import { ReactComponent as TouchIcon } from "
|
|
4
|
+
import { ReactComponent as TouchIcon } from "../assets/icons/touch_app.svg";
|
|
5
5
|
var EmptyViewWrapper = /*#__PURE__*/styled("div", {
|
|
6
6
|
target: "eu81oh40",
|
|
7
7
|
label: "EmptyViewWrapper"
|
|
@@ -10,7 +10,7 @@ mime.define({
|
|
|
10
10
|
"image/vnd.microsoft.icon": ["ico"]
|
|
11
11
|
}, true);
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var getUniqueFilePlugins = function getUniqueFilePlugins(accept) {
|
|
14
14
|
var exts = {};
|
|
15
15
|
accept.forEach(function (item) {
|
|
16
16
|
exts[mime.getExtension(item)] = true;
|
|
@@ -29,7 +29,7 @@ var SupportedFileTypes = function SupportedFileTypes(_ref) {
|
|
|
29
29
|
return /*#__PURE__*/React.createElement("span", null, "Showing all file extensions.");
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
return /*#__PURE__*/React.createElement("span", null, "Showing the following file extensions: ",
|
|
32
|
+
return /*#__PURE__*/React.createElement("span", null, "Showing the following file extensions: ", getUniqueFilePlugins(accept).join(", "), ".");
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export default SupportedFileTypes;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { css } from "emotion";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { Icon } from "@webiny/ui/Icon";
|
|
5
|
-
import { ReactComponent as UploadIcon } from "
|
|
5
|
+
import { ReactComponent as UploadIcon } from "./icons/round-cloud_upload-24px.svg";
|
|
6
6
|
var styles = /*#__PURE__*/css({
|
|
7
7
|
margin: "0 auto",
|
|
8
8
|
paddingTop: 0,
|
|
@@ -4,8 +4,8 @@ import classNames from "classnames";
|
|
|
4
4
|
import { css, keyframes } from "emotion";
|
|
5
5
|
import { Ripple } from "@webiny/ui/Ripple";
|
|
6
6
|
import { IconButton } from "@webiny/ui/Button";
|
|
7
|
-
import { ReactComponent as Checked } from "
|
|
8
|
-
import { ReactComponent as SettingsIcon } from "
|
|
7
|
+
import { ReactComponent as Checked } from "./icons/round-check_box-24px.svg";
|
|
8
|
+
import { ReactComponent as SettingsIcon } from "../../assets/icons/round-settings-24px.svg";
|
|
9
9
|
var COMPONENT_WIDTH = 200;
|
|
10
10
|
var COMPONENT_HEIGHT = 200;
|
|
11
11
|
var grow = /*#__PURE__*/keyframes("0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}label:grow;");
|
|
@@ -17,8 +17,8 @@ import { Form } from "@webiny/form";
|
|
|
17
17
|
import { useSnackbar } from "../../../hooks/useSnackbar";
|
|
18
18
|
import { useFileManager } from "./../FileManagerContext";
|
|
19
19
|
import { UPDATE_FILE, LIST_FILES, LIST_TAGS } from "./../graphql";
|
|
20
|
-
import { ReactComponent as EditIcon } from "
|
|
21
|
-
import { ReactComponent as LabelIcon } from "
|
|
20
|
+
import { ReactComponent as EditIcon } from "./../icons/round-edit-24px.svg";
|
|
21
|
+
import { ReactComponent as LabelIcon } from "./../icons/round-label-24px.svg";
|
|
22
22
|
var chipsStyle = /*#__PURE__*/css({
|
|
23
23
|
"&.mdc-chip-set": {
|
|
24
24
|
padding: 0,
|
|
@@ -22,12 +22,12 @@ import { Tooltip } from "@webiny/ui/Tooltip";
|
|
|
22
22
|
import { Icon } from "@webiny/ui/Icon";
|
|
23
23
|
import { Typography } from "@webiny/ui/Typography";
|
|
24
24
|
import { useHotkeys } from "react-hotkeyz";
|
|
25
|
-
import { ReactComponent as CopyContentIcon } from "
|
|
26
|
-
import { ReactComponent as DeleteIcon } from "
|
|
27
|
-
import { ReactComponent as ImageIcon } from "
|
|
28
|
-
import { ReactComponent as FileIcon } from "
|
|
29
|
-
import { ReactComponent as CalendarIcon } from "
|
|
30
|
-
import { ReactComponent as HighlightIcon } from "
|
|
25
|
+
import { ReactComponent as CopyContentIcon } from "./icons/content_copy-black-24px.svg";
|
|
26
|
+
import { ReactComponent as DeleteIcon } from "./icons/delete.svg";
|
|
27
|
+
import { ReactComponent as ImageIcon } from "../../assets/icons/insert_photo-24px.svg";
|
|
28
|
+
import { ReactComponent as FileIcon } from "../../assets/icons/insert_drive_file-24px.svg";
|
|
29
|
+
import { ReactComponent as CalendarIcon } from "../../assets/icons/today-24px.svg";
|
|
30
|
+
import { ReactComponent as HighlightIcon } from "../../assets/icons/highlight-24px.svg";
|
|
31
31
|
import { useFileManager } from "./FileManagerContext";
|
|
32
32
|
import { useMutation } from "@apollo/react-hooks";
|
|
33
33
|
import { useSnackbar } from "../../hooks/useSnackbar";
|
|
@@ -34,8 +34,8 @@ import { i18n } from "@webiny/app/i18n";
|
|
|
34
34
|
import { useSecurity } from "@webiny/app-security";
|
|
35
35
|
import { useHotkeys } from "react-hotkeyz";
|
|
36
36
|
import { useFileManager } from "./FileManagerContext";
|
|
37
|
-
import { ReactComponent as SearchIcon } from "
|
|
38
|
-
import { ReactComponent as UploadIcon } from "
|
|
37
|
+
import { ReactComponent as SearchIcon } from "./icons/round-search-24px.svg";
|
|
38
|
+
import { ReactComponent as UploadIcon } from "./icons/round-cloud_upload-24px.svg";
|
|
39
39
|
import NoPermissionView from "./NoPermissionView";
|
|
40
40
|
var t = i18n.ns("app-admin/file-manager/file-manager-view");
|
|
41
41
|
var style = {
|
|
@@ -5,7 +5,7 @@ import sortBy from "lodash/sortBy";
|
|
|
5
5
|
import { css } from "emotion";
|
|
6
6
|
import styled from "@emotion/styled";
|
|
7
7
|
import { Icon } from "@webiny/ui/Icon";
|
|
8
|
-
import { ReactComponent as TagIcon } from "
|
|
8
|
+
import { ReactComponent as TagIcon } from "./icons/round-label-24px.svg";
|
|
9
9
|
import { LIST_TAGS } from "./graphql";
|
|
10
10
|
var style = {
|
|
11
11
|
leftDrawer: /*#__PURE__*/css({
|
|
@@ -6,7 +6,7 @@ import React from "react";
|
|
|
6
6
|
import { css } from "emotion";
|
|
7
7
|
import { Icon } from "@webiny/ui/Icon";
|
|
8
8
|
import { i18n } from "@webiny/app/i18n";
|
|
9
|
-
import { ReactComponent as PermissionIcon } from "
|
|
9
|
+
import { ReactComponent as PermissionIcon } from "./icons/privacy_tip-24px.svg";
|
|
10
10
|
import { Typography } from "@webiny/ui/Typography";
|
|
11
11
|
var t = i18n.ns("app-admin/file-manager/file-manager-view/no-permission");
|
|
12
12
|
var styles = /*#__PURE__*/css({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ButtonFloating } from "@webiny/ui/Button";
|
|
3
|
-
import { ReactComponent as AddIcon } from "
|
|
3
|
+
import { ReactComponent as AddIcon } from "../assets/icons/round-add-24px.svg"; // Set "styles" inline, since no customizations are possible / needed here.
|
|
4
4
|
|
|
5
5
|
var FloatingActionButton = function FloatingActionButton(props) {
|
|
6
6
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -14,7 +14,7 @@ import { css } from "emotion";
|
|
|
14
14
|
import { TopAppBarSecondary, TopAppBarSection } from "@webiny/ui/TopAppBar";
|
|
15
15
|
import { IconButton } from "@webiny/ui/Button";
|
|
16
16
|
import noop from "lodash/noop";
|
|
17
|
-
import { ReactComponent as CloseIcon } from "
|
|
17
|
+
import { ReactComponent as CloseIcon } from "./icons/close.svg";
|
|
18
18
|
import { OverlayView } from "../../ui/views/OverlayView";
|
|
19
19
|
var OverlayLayoutWrapper = /*#__PURE__*/styled("div", {
|
|
20
20
|
target: "e1inqa580",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { plugins } from "@webiny/plugins";
|
|
4
|
+
import { Switch } from "@webiny/react-router";
|
|
5
|
+
export var Routes = function Routes(props) {
|
|
6
|
+
var routes = [].concat(_toConsumableArray(props.routes), _toConsumableArray(plugins.byType("route").map(function (_ref) {
|
|
7
|
+
var route = _ref.route;
|
|
8
|
+
return route;
|
|
9
|
+
}))).sort(function (a, b) {
|
|
10
|
+
var pathA = a.props.path || "*";
|
|
11
|
+
var pathB = b.props.path || "*"; // This will sort paths at the very bottom of the list
|
|
12
|
+
|
|
13
|
+
if (pathA === "/" && pathB === "*") {
|
|
14
|
+
return -1;
|
|
15
|
+
} // This will push * and / to the bottom of the list
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
if (pathA === "*" || pathA === "/") {
|
|
19
|
+
return 1;
|
|
20
|
+
} // This will push * and / to the bottom of the list
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
if (["*", "/"].includes(pathB)) {
|
|
24
|
+
return -1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return 0;
|
|
28
|
+
});
|
|
29
|
+
return /*#__PURE__*/React.createElement(Switch, null, routes.map(function (route, index) {
|
|
30
|
+
return /*#__PURE__*/React.cloneElement(route, {
|
|
31
|
+
key: "".concat(route.props.path, ":").concat(index)
|
|
32
|
+
});
|
|
33
|
+
}));
|
|
34
|
+
};
|
package/components/SearchUI.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import InputField from "./SimpleUI/InputField";
|
|
4
|
-
import { ReactComponent as SearchIcon } from "
|
|
4
|
+
import { ReactComponent as SearchIcon } from "../assets/icons/search-24px.svg";
|
|
5
5
|
var SearchWrapper = /*#__PURE__*/styled("div", {
|
|
6
6
|
target: "epa3kz70",
|
|
7
7
|
label: "SearchWrapper"
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from "@webiny/app-admin-core";
|
|
2
|
+
export type { HigherOrderComponent, ProviderProps, ComposeProps } from "@webiny/app-admin-core";
|
|
3
|
+
export * from "./base/ui/Tags";
|
|
4
|
+
export * from "./base/ui/Menu";
|
|
5
|
+
export * from "./base/ui/Layout";
|
|
6
|
+
export * from "./base/ui/LocaleSelector";
|
|
7
|
+
export type { LayoutProps } from "./base/ui/Layout";
|
|
8
|
+
export * from "./base/ui/Navigation";
|
|
9
|
+
export type { MenuItemsProps } from "./base/ui/Navigation";
|
|
10
|
+
export * from "./base/ui/Brand";
|
|
11
|
+
export * from "./base/ui/Logo";
|
|
12
|
+
export * from "./base/ui/Search";
|
|
13
|
+
export type { SearchOptionData, SearchOptionProps } from "./base/ui/Search";
|
|
14
|
+
export * from "./base/ui/UserMenu";
|
|
15
|
+
export type { UserMenuItemProps } from "./base/ui/UserMenu";
|
|
16
|
+
export * from "./base/ui/LoginScreen";
|
|
17
|
+
export * from "./base/ui/CenteredView";
|
|
18
|
+
export * from "./base/ui/Dashboard";
|
|
19
|
+
export * from "./base/ui/NotFound";
|
|
20
|
+
export { Admin } from "./base/Admin";
|
|
21
|
+
export type { AdminProps } from "./base/Admin";
|
|
22
|
+
export { useViewComposition } from "./base/providers/ViewCompositionProvider";
|
|
23
|
+
export type { ViewCompositionContext, ViewElement } from "./base/providers/ViewCompositionProvider";
|
|
24
|
+
export * from "./base/plugins/AddGraphQLQuerySelection";
|
|
25
|
+
export { AppInstaller } from "./components/AppInstaller";
|
|
26
|
+
export * from "./hooks/useSnackbar";
|
|
27
|
+
export * from "./hooks/useConfirmationDialog";
|
|
28
|
+
export * from "./hooks/useDialog";
|
package/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "@webiny/app-admin-core";
|
|
2
|
+
// UI components
|
|
3
|
+
export * from "./base/ui/Tags";
|
|
4
|
+
export * from "./base/ui/Menu";
|
|
5
|
+
export * from "./base/ui/Layout";
|
|
6
|
+
export * from "./base/ui/LocaleSelector";
|
|
7
|
+
export * from "./base/ui/Navigation";
|
|
8
|
+
export * from "./base/ui/Brand";
|
|
9
|
+
export * from "./base/ui/Logo";
|
|
10
|
+
export * from "./base/ui/Search";
|
|
11
|
+
export * from "./base/ui/UserMenu";
|
|
12
|
+
export * from "./base/ui/LoginScreen";
|
|
13
|
+
export * from "./base/ui/CenteredView";
|
|
14
|
+
export * from "./base/ui/Dashboard";
|
|
15
|
+
export * from "./base/ui/NotFound"; // Base admin app
|
|
16
|
+
|
|
17
|
+
export { Admin } from "./base/Admin";
|
|
18
|
+
export { useViewComposition } from "./base/providers/ViewCompositionProvider";
|
|
19
|
+
// Plugins
|
|
20
|
+
export * from "./base/plugins/AddGraphQLQuerySelection"; // Components
|
|
21
|
+
|
|
22
|
+
export { AppInstaller } from "./components/AppInstaller"; // Hooks
|
|
23
|
+
|
|
24
|
+
export * from "./hooks/useSnackbar";
|
|
25
|
+
export * from "./hooks/useConfirmationDialog";
|
|
26
|
+
export * from "./hooks/useDialog";
|