@webiny/app-admin 5.21.0-beta.0 → 5.22.0-beta.2

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/Base.js CHANGED
@@ -2,11 +2,11 @@ import React, { memo } from "react";
2
2
  import { Plugins } from "@webiny/app-admin-core";
3
3
  import { AddMenu, AddRoute, Dashboard, Layout, NotFound } from "./..";
4
4
  import { plugins } from "@webiny/plugins";
5
- import { ReactComponent as DocsIcon } from "@svgr/webpack!../assets/icons/icon-documentation.svg";
6
- import { ReactComponent as SlackIcon } from "@svgr/webpack!../assets/icons/slack-logo.svg";
7
- import { ReactComponent as GithubIcon } from "@svgr/webpack!../assets/icons/github-brands.svg";
8
- import { ReactComponent as FileIcon } from "@svgr/webpack!../assets/icons/insert_drive_file-24px.svg";
9
- import { ReactComponent as SettingsIcon } from "@svgr/webpack!../assets/icons/round-settings-24px.svg";
5
+ import { ReactComponent as DocsIcon } from "../assets/icons/icon-documentation.svg";
6
+ import { ReactComponent as SlackIcon } from "../assets/icons/slack-logo.svg";
7
+ import { ReactComponent as GithubIcon } from "../assets/icons/github-brands.svg";
8
+ import { ReactComponent as FileIcon } from "../assets/icons/insert_drive_file-24px.svg";
9
+ import { ReactComponent as SettingsIcon } from "../assets/icons/round-settings-24px.svg";
10
10
  import { FileManager } from "../components";
11
11
  import adminPlugins from "../plugins";
12
12
 
@@ -1,7 +1,12 @@
1
1
  import React from "react";
2
2
  import { makeComposable } from "@webiny/app-admin-core";
3
+ import { Tags } from "./Tags";
3
4
  export var LoginScreen = function LoginScreen(_ref) {
4
5
  var children = _ref.children;
5
- return /*#__PURE__*/React.createElement(LoginScreenRenderer, null, children);
6
+ return /*#__PURE__*/React.createElement(Tags, {
7
+ tags: {
8
+ location: "loginScreen"
9
+ }
10
+ }, /*#__PURE__*/React.createElement(LoginScreenRenderer, null, children));
6
11
  };
7
12
  export var LoginScreenRenderer = makeComposable("LoginScreenRenderer");
@@ -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 "@svgr/webpack!../assets/icons/touch_app.svg";
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"
@@ -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 "@svgr/webpack!./icons/round-cloud_upload-24px.svg";
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 "@svgr/webpack!./icons/round-check_box-24px.svg";
8
- import { ReactComponent as SettingsIcon } from "@svgr/webpack!../../assets/icons/round-settings-24px.svg";
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 "@svgr/webpack!./../icons/round-edit-24px.svg";
21
- import { ReactComponent as LabelIcon } from "@svgr/webpack!./../icons/round-label-24px.svg";
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 "@svgr/webpack!./icons/content_copy-black-24px.svg";
26
- import { ReactComponent as DeleteIcon } from "@svgr/webpack!./icons/delete.svg";
27
- import { ReactComponent as ImageIcon } from "@svgr/webpack!../../assets/icons/insert_photo-24px.svg";
28
- import { ReactComponent as FileIcon } from "@svgr/webpack!../../assets/icons/insert_drive_file-24px.svg";
29
- import { ReactComponent as CalendarIcon } from "@svgr/webpack!../../assets/icons/today-24px.svg";
30
- import { ReactComponent as HighlightIcon } from "@svgr/webpack!../../assets/icons/highlight-24px.svg";
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 "@svgr/webpack!./icons/round-search-24px.svg";
38
- import { ReactComponent as UploadIcon } from "@svgr/webpack!./icons/round-cloud_upload-24px.svg";
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 "@svgr/webpack!./icons/round-label-24px.svg";
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 "@svgr/webpack!./icons/privacy_tip-24px.svg";
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 "@svgr/webpack!../assets/icons/round-add-24px.svg"; // Set "styles" inline, since no customizations are possible / needed here.
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 "@svgr/webpack!./icons/close.svg";
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",
@@ -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 "@svgr/webpack!../assets/icons/search-24px.svg";
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-admin",
3
- "version": "5.21.0-beta.0",
3
+ "version": "5.22.0-beta.2",
4
4
  "main": "index.js",
5
5
  "description": "A collection of plugins that together form a complete admin interface, customizable and extensible with Webiny apps and plugins.",
6
6
  "repository": {
@@ -12,23 +12,23 @@
12
12
  "dependencies": {
13
13
  "@apollo/react-components": "3.1.5",
14
14
  "@apollo/react-hooks": "3.1.5",
15
- "@babel/runtime": "7.16.3",
15
+ "@babel/runtime": "7.16.7",
16
16
  "@editorjs/editorjs": "2.22.3",
17
- "@emotion/core": "10.1.1",
18
- "@emotion/styled": "10.0.27",
19
- "@svgr/webpack": "4.3.3",
17
+ "@emotion/core": "10.3.1",
18
+ "@emotion/styled": "10.3.0",
19
+ "@svgr/webpack": "6.2.0",
20
20
  "@types/mime": "2.0.3",
21
21
  "@types/react": "16.14.2",
22
- "@webiny/app": "5.21.0-beta.0",
23
- "@webiny/app-admin-core": "5.21.0-beta.0",
24
- "@webiny/app-security": "5.21.0-beta.0",
25
- "@webiny/form": "5.21.0-beta.0",
26
- "@webiny/plugins": "5.21.0-beta.0",
27
- "@webiny/react-router": "5.21.0-beta.0",
28
- "@webiny/telemetry": "5.21.0-beta.0",
29
- "@webiny/ui": "5.21.0-beta.0",
30
- "@webiny/ui-composer": "5.21.0-beta.0",
31
- "@webiny/validation": "5.21.0-beta.0",
22
+ "@webiny/app": "5.22.0-beta.2",
23
+ "@webiny/app-admin-core": "5.22.0-beta.2",
24
+ "@webiny/app-security": "5.22.0-beta.2",
25
+ "@webiny/form": "5.22.0-beta.2",
26
+ "@webiny/plugins": "5.22.0-beta.2",
27
+ "@webiny/react-router": "5.22.0-beta.2",
28
+ "@webiny/telemetry": "5.22.0-beta.2",
29
+ "@webiny/ui": "5.22.0-beta.2",
30
+ "@webiny/ui-composer": "5.22.0-beta.2",
31
+ "@webiny/validation": "5.22.0-beta.2",
32
32
  "apollo-cache": "1.3.5",
33
33
  "apollo-client": "2.6.10",
34
34
  "apollo-link": "1.2.14",
@@ -41,14 +41,14 @@
41
41
  "downshift": "3.4.8",
42
42
  "emotion": "10.0.27",
43
43
  "graphlib": "2.1.8",
44
- "graphql": "14.7.0",
44
+ "graphql": "15.8.0",
45
45
  "graphql-tag": "2.12.6",
46
46
  "invariant": "2.2.4",
47
47
  "lodash": "4.17.21",
48
48
  "mime": "2.6.0",
49
49
  "minimatch": "3.0.4",
50
- "nanoid": "3.1.30",
51
- "prop-types": "15.7.2",
50
+ "nanoid": "3.1.32",
51
+ "prop-types": "15.8.1",
52
52
  "react": "16.14.0",
53
53
  "react-butterfiles": "1.3.3",
54
54
  "react-dom": "16.14.0",
@@ -59,17 +59,16 @@
59
59
  "store": "2.0.12"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/cli": "^7.5.5",
63
- "@babel/core": "^7.5.5",
64
- "@babel/plugin-proposal-class-properties": "^7.5.5",
65
- "@babel/preset-env": "^7.5.5",
66
- "@babel/preset-react": "^7.0.0",
67
- "@babel/preset-typescript": "^7.8.3",
68
- "@webiny/cli": "^5.21.0-beta.0",
69
- "@webiny/project-utils": "^5.21.0-beta.0",
62
+ "@babel/cli": "^7.16.0",
63
+ "@babel/core": "^7.16.0",
64
+ "@babel/plugin-proposal-class-properties": "^7.16.0",
65
+ "@babel/preset-env": "^7.16.4",
66
+ "@babel/preset-react": "^7.16.0",
67
+ "@babel/preset-typescript": "^7.16.0",
68
+ "@webiny/cli": "^5.22.0-beta.2",
69
+ "@webiny/project-utils": "^5.22.0-beta.2",
70
70
  "babel-plugin-emotion": "^9.2.8",
71
71
  "babel-plugin-lodash": "^3.3.4",
72
- "babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
73
72
  "rimraf": "^3.0.2",
74
73
  "ttypescript": "^1.5.12",
75
74
  "typescript": "^4.1.3"
@@ -82,11 +81,6 @@
82
81
  "build": "yarn webiny run build",
83
82
  "watch": "yarn webiny run watch"
84
83
  },
85
- "svgo": {
86
- "plugins": {
87
- "removeViewBox": false
88
- }
89
- },
90
84
  "adio": {
91
85
  "ignore": {
92
86
  "dependencies": [
@@ -99,5 +93,5 @@
99
93
  ]
100
94
  }
101
95
  },
102
- "gitHead": "cad155812edbdd577a1cc858b41038fdd7a6d2d9"
96
+ "gitHead": "c472d20682885fb538354c206a148deaae14bfe8"
103
97
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { ReactComponent as FileIcon } from "@svgr/webpack!./icons/round-description-24px.svg";
2
+ import { ReactComponent as FileIcon } from "./icons/round-description-24px.svg";
3
3
  import { css } from "emotion";
4
4
  import { FileManagerFileTypePlugin } from "../FileManagerFileTypePlugin";
5
5
  var style = {
@@ -12,7 +12,7 @@ import { useSnackbar } from "../../../hooks/useSnackbar";
12
12
  import { useMutation } from "@apollo/react-hooks";
13
13
  import { i18n } from "@webiny/app/i18n";
14
14
  var t = i18n.ns("app-admin/file-manager/files/delete-action");
15
- import { ReactComponent as DeleteIcon } from "@svgr/webpack!../../../components/FileManager/icons/delete.svg";
15
+ import { ReactComponent as DeleteIcon } from "../../../components/FileManager/icons/delete.svg";
16
16
  import { DELETE_FILE } from "../../../components/FileManager/graphql";
17
17
 
18
18
  var DeleteAction = function DeleteAction(props) {
@@ -10,7 +10,7 @@ import { Tooltip } from "@webiny/ui/Tooltip";
10
10
  import { IconButton } from "@webiny/ui/Button";
11
11
  import outputFileSelectionError from "../../../components/FileManager/outputFileSelectionError";
12
12
  import { useSnackbar } from "../../../hooks/useSnackbar";
13
- import { ReactComponent as EditIcon } from "@svgr/webpack!../icons/edit.svg";
13
+ import { ReactComponent as EditIcon } from "../icons/edit.svg";
14
14
 
15
15
  function toDataUrl(url) {
16
16
  return new Promise(function (resolve) {
@@ -17,7 +17,7 @@ import { Icon } from "@webiny/ui/Icon";
17
17
  import { Elevation } from "@webiny/ui/Elevation";
18
18
  import SearchBarDropdown from "./SearchBarDropdown"; // Icons
19
19
 
20
- import { ReactComponent as SearchIcon } from "@svgr/webpack!./icons/round-search-24px.svg"; // Local components
20
+ import { ReactComponent as SearchIcon } from "./icons/round-search-24px.svg"; // Local components
21
21
 
22
22
  import { SearchBarWrapper, SearchBarInputWrapper, SearchShortcut, searchBarInput, icon, searchWrapper } from "./styled";
23
23
  import { makeComposable } from "../..";
@@ -8,7 +8,7 @@ import { List, ListItem, ListItemGraphic, ListItemText, ListItemMeta } from "@we
8
8
  import { searchBarDropdown, iconSearchType } from "./styled";
9
9
  import { Elevation } from "@webiny/ui/Elevation";
10
10
  import { Icon } from "@webiny/ui/Icon";
11
- import { ReactComponent as SearchIcon } from "@svgr/webpack!./icons/round-search-24px.svg";
11
+ import { ReactComponent as SearchIcon } from "./icons/round-search-24px.svg";
12
12
 
13
13
  var SearchBarDropdown = /*#__PURE__*/function (_React$Component) {
14
14
  _inherits(SearchBarDropdown, _React$Component);
@@ -1,3 +1,4 @@
1
+ import _createClass from "@babel/runtime/helpers/createClass";
1
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
3
  import _inherits from "@babel/runtime/helpers/inherits";
3
4
  import _createSuper from "@babel/runtime/helpers/createSuper";
@@ -13,5 +14,5 @@ export var PanelElement = /*#__PURE__*/function (_UIElement) {
13
14
  return _super.apply(this, arguments);
14
15
  }
15
16
 
16
- return PanelElement;
17
+ return _createClass(PanelElement);
17
18
  }(UIElement);
@@ -1,3 +1,4 @@
1
+ import _createClass from "@babel/runtime/helpers/createClass";
1
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
3
  import _inherits from "@babel/runtime/helpers/inherits";
3
4
  import _createSuper from "@babel/runtime/helpers/createSuper";
@@ -20,5 +21,5 @@ export var EmptyStateElement = /*#__PURE__*/function (_UIElement) {
20
21
  return _this;
21
22
  }
22
23
 
23
- return EmptyStateElement;
24
+ return _createClass(EmptyStateElement);
24
25
  }(UIElement);
@@ -7,9 +7,9 @@ import { UIRenderer } from "../../../UIRenderer";
7
7
  import * as Ui from "@webiny/ui/ImageUpload";
8
8
  import { Image } from "@webiny/app/components";
9
9
  import { AddImageIconWrapper, AddImageWrapper, FilePreviewWrapper, RemoveImage } from "./styled";
10
- import { ReactComponent as AddFileIcon } from "@svgr/webpack!../../../../assets/icons/attach_file_black_24dp.svg";
10
+ import { ReactComponent as AddFileIcon } from "../../../../assets/icons/attach_file_black_24dp.svg";
11
11
  import { Typography } from "@webiny/ui/Typography";
12
- import { ReactComponent as RemoveImageIcon } from "@svgr/webpack!@webiny/ui/ImageUpload/icons/round-close-24px.svg";
12
+ import { ReactComponent as RemoveImageIcon } from "@webiny/ui/ImageUpload/icons/round-close-24px.svg";
13
13
  export var EmptyStateElementRenderer = /*#__PURE__*/function (_UIRenderer) {
14
14
  _inherits(EmptyStateElementRenderer, _UIRenderer);
15
15
 
@@ -58,5 +58,5 @@ export var ContentElement = /*#__PURE__*/function (_UIElement) {
58
58
  return _this;
59
59
  }
60
60
 
61
- return ContentElement;
61
+ return _createClass(ContentElement);
62
62
  }(UIElement);
@@ -2,7 +2,7 @@ import React, { useCallback } from "react";
2
2
  import { get, set } from "dot-prop-immutable";
3
3
  import { useUi } from "@webiny/app/hooks/useUi";
4
4
  import { IconButton } from "@webiny/ui/Button";
5
- import { ReactComponent as MenuIcon } from "@svgr/webpack!../../../../assets/icons/baseline-menu-24px.svg";
5
+ import { ReactComponent as MenuIcon } from "../../../../assets/icons/baseline-menu-24px.svg";
6
6
 
7
7
  var Hamburger = function Hamburger() {
8
8
  var ui = useUi();
@@ -1,3 +1,4 @@
1
+ import _createClass from "@babel/runtime/helpers/createClass";
1
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
3
  import _inherits from "@babel/runtime/helpers/inherits";
3
4
  import _createSuper from "@babel/runtime/helpers/createSuper";
@@ -13,5 +14,5 @@ export var FormContentElement = /*#__PURE__*/function (_UIElement) {
13
14
  return _super.apply(this, arguments);
14
15
  }
15
16
 
16
- return FormContentElement;
17
+ return _createClass(FormContentElement);
17
18
  }(UIElement);
@@ -9,7 +9,7 @@ import { css } from "emotion";
9
9
  import { UIElement } from "../../UIElement";
10
10
  import { TopAppBarSecondary, TopAppBarSection } from "@webiny/ui/TopAppBar";
11
11
  import { IconButton } from "@webiny/ui/Button";
12
- import { ReactComponent as CloseIcon } from "@svgr/webpack!../../../components/OverlayLayout/icons/close.svg";
12
+ import { ReactComponent as CloseIcon } from "../../../components/OverlayLayout/icons/close.svg";
13
13
  import { PlaceholderElement } from "../../elements/PlaceholderElement";
14
14
  import { HeaderTitleElement } from "./HeaderTitleElement";
15
15
  var width = /*#__PURE__*/css({
@@ -50,5 +50,5 @@ export var HeaderTitleElement = /*#__PURE__*/function (_UIElement) {
50
50
  return _this;
51
51
  }
52
52
 
53
- return HeaderTitleElement;
53
+ return _createClass(HeaderTitleElement);
54
54
  }(UIElement);