@webiny/app-admin 5.22.0-beta.3 → 5.23.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -438,15 +438,20 @@ function FileManagerView(props) {
438
438
  return showSnackbar(t(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["File upload complete."]))));
439
439
  }, 750);
440
440
 
441
- if (typeof onUploadCompletion === "function") {
442
- // We wait 750ms, just for everything to settle down a bit.
443
- setTimeout(function () {
444
- onUploadCompletion(uploadedFiles);
445
- onClose();
446
- }, 750);
441
+ if (!(typeof onUploadCompletion === "function")) {
442
+ _context3.next = 13;
443
+ break;
447
444
  }
448
445
 
449
- case 12:
446
+ return _context3.abrupt("return", setTimeout(function () {
447
+ onUploadCompletion(uploadedFiles);
448
+ onClose();
449
+ }, 750));
450
+
451
+ case 13:
452
+ return _context3.abrupt("return", null);
453
+
454
+ case 14:
450
455
  case "end":
451
456
  return _context3.stop();
452
457
  }
@@ -36,4 +36,6 @@ export default (function (errors) {
36
36
  case "multipleNotAllowed":
37
37
  return "Only one file allowed.";
38
38
  }
39
+
40
+ return null;
39
41
  });
@@ -116,6 +116,7 @@ var Tunes = /*#__PURE__*/function () {
116
116
  });
117
117
  button.classList.toggle(this.CSS.buttonActive, !button.classList.contains(this.CSS.buttonActive));
118
118
  this.onChange(tuneName);
119
+ return true;
119
120
  }
120
121
  }], [{
121
122
  key: "tunes",
@@ -21,12 +21,7 @@ declare class TextColorTool {
21
21
  * @returns {object} sanitizer configuration.
22
22
  * https://editorjs.io/sanitizer
23
23
  */
24
- static get sanitize(): {
25
- span: (el: any) => {
26
- class: string;
27
- style: any;
28
- };
29
- };
24
+ static get sanitize(): Record<string, any>;
30
25
  get state(): boolean;
31
26
  set state(state: boolean);
32
27
  /**
@@ -221,6 +221,8 @@ var TextColorTool = /*#__PURE__*/function () {
221
221
  style: el.style
222
222
  };
223
223
  }
224
+
225
+ return {};
224
226
  }
225
227
  };
226
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-admin",
3
- "version": "5.22.0-beta.3",
3
+ "version": "5.23.0-beta.0",
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": {
@@ -16,24 +16,24 @@
16
16
  "@editorjs/editorjs": "2.22.3",
17
17
  "@emotion/core": "10.3.1",
18
18
  "@emotion/styled": "10.3.0",
19
- "@svgr/webpack": "6.2.0",
19
+ "@svgr/webpack": "6.2.1",
20
20
  "@types/mime": "2.0.3",
21
21
  "@types/react": "16.14.2",
22
- "@webiny/app": "5.22.0-beta.3",
23
- "@webiny/app-admin-core": "5.22.0-beta.3",
24
- "@webiny/app-security": "5.22.0-beta.3",
25
- "@webiny/form": "5.22.0-beta.3",
26
- "@webiny/plugins": "5.22.0-beta.3",
27
- "@webiny/react-router": "5.22.0-beta.3",
28
- "@webiny/telemetry": "5.22.0-beta.3",
29
- "@webiny/ui": "5.22.0-beta.3",
30
- "@webiny/ui-composer": "5.22.0-beta.3",
31
- "@webiny/validation": "5.22.0-beta.3",
22
+ "@webiny/app": "5.23.0-beta.0",
23
+ "@webiny/app-admin-core": "5.23.0-beta.0",
24
+ "@webiny/app-security": "5.23.0-beta.0",
25
+ "@webiny/form": "5.23.0-beta.0",
26
+ "@webiny/plugins": "5.23.0-beta.0",
27
+ "@webiny/react-router": "5.23.0-beta.0",
28
+ "@webiny/telemetry": "5.23.0-beta.0",
29
+ "@webiny/ui": "5.23.0-beta.0",
30
+ "@webiny/ui-composer": "5.23.0-beta.0",
31
+ "@webiny/validation": "5.23.0-beta.0",
32
32
  "apollo-cache": "1.3.5",
33
33
  "apollo-client": "2.6.10",
34
34
  "apollo-link": "1.2.14",
35
35
  "apollo-utilities": "1.3.4",
36
- "bytes": "3.1.1",
36
+ "bytes": "3.1.2",
37
37
  "classnames": "2.3.1",
38
38
  "dataurl-to-blob": "0.0.1",
39
39
  "dayjs": "1.10.7",
@@ -65,8 +65,8 @@
65
65
  "@babel/preset-env": "^7.16.4",
66
66
  "@babel/preset-react": "^7.16.0",
67
67
  "@babel/preset-typescript": "^7.16.0",
68
- "@webiny/cli": "^5.22.0-beta.3",
69
- "@webiny/project-utils": "^5.22.0-beta.3",
68
+ "@webiny/cli": "^5.23.0-beta.0",
69
+ "@webiny/project-utils": "^5.23.0-beta.0",
70
70
  "babel-plugin-emotion": "^9.2.8",
71
71
  "babel-plugin-lodash": "^3.3.4",
72
72
  "rimraf": "^3.0.2",
@@ -93,5 +93,5 @@
93
93
  ]
94
94
  }
95
95
  },
96
- "gitHead": "7a6b4ce3b9f31fe0702fffd28b7959c637e9a20b"
96
+ "gitHead": "deb16c58954f7396c848f04806a2028aa53cc97b"
97
97
  }
@@ -4,9 +4,6 @@ export var globalSearchHotkey = {
4
4
  preventOpen: function preventOpen(e) {
5
5
  // Define a list of all node types we want to prevent the event from.
6
6
  var ignoreNodes = ["INPUT", "TEXTAREA"];
7
-
8
- if (ignoreNodes.includes(e.target.nodeName)) {
9
- return true;
10
- }
7
+ return ignoreNodes.includes(e.target.nodeName);
11
8
  }
12
9
  };
@@ -38,37 +38,3 @@ body {
38
38
  font-family: "Source Sans Pro";
39
39
  }
40
40
 
41
- body.dark-theme {
42
- $mdc-theme-primary: $webiny-theme-dark-primary;
43
- $mdc-theme-on-primary: $webiny-theme-dark-on-primary;
44
- $mdc-theme-secondary: $webiny-theme-dark-secondary;
45
- $mdc-theme-on-secondary: $webiny-theme-dark-on-secondary;
46
- $mdc-theme-surface: $webiny-theme-dark-surface;
47
- $mdc-theme-on-surface: $webiny-theme-dark-on-surface;
48
- $mdc-theme-background: $webiny-theme-dark-background;
49
- $mdc-theme-on-background: $webiny-theme-dark-on-background;
50
- $mdc-theme-text-secondary-on-background: $webiny-theme-dark-text-secondary-on-background;
51
- $mdc-theme-text-primary-on-background: $webiny-theme-dark-text-primary-on-background;
52
- $mdc-theme-text-hint-on-dark: $webiny-theme-dark-text-hint-on-dark;
53
-
54
- @include themeMixins.mdc-theme-prop("on-primary", $webiny-theme-dark-text-primary-on-background);
55
-
56
- background-color: $mdc-theme-background;
57
-
58
- // assign all the sass variables in css variables
59
- --mdc-theme-primary: #{$mdc-theme-primary};
60
- --mdc-theme-secondary: #{$mdc-theme-secondary};
61
- --mdc-theme-background: #{$mdc-theme-background};
62
- --mdc-theme-surface: #{$mdc-theme-surface};
63
- --mdc-theme-on-primary: #{$mdc-theme-on-primary};
64
- --mdc-theme-on-secondary: #{$mdc-theme-on-secondary};
65
- --mdc-theme-on-surface: #{$mdc-theme-on-surface};
66
- --mdc-theme-on-background: #{$mdc-theme-on-background};
67
- --mdc-theme-text-primary-on-background: #{$mdc-theme-text-primary-on-background};
68
- --mdc-theme-text-secondary-on-background: #{$mdc-theme-text-secondary-on-background};
69
- --mdc-theme-text-hint-on-dark: #{$mdc-theme-text-hint-on-dark};
70
- --mdc-theme-caret-down: #{$webiny-theme-dark-caret-down};
71
-
72
- @import "~@material/textfield/mdc-text-field";
73
- @import "material-theme-assignments.scss";
74
- }