@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.
- package/components/FileManager/FileManagerView.js +12 -7
- package/components/FileManager/outputFileSelectionError.js +2 -0
- package/components/RichTextEditor/tools/image/tunes.js +1 -0
- package/components/RichTextEditor/tools/textColor/index.d.ts +1 -6
- package/components/RichTextEditor/tools/textColor/index.js +2 -0
- package/package.json +16 -16
- package/plugins/globalSearch/index.js +1 -4
- package/styles/material.scss +0 -34
|
@@ -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
|
-
|
|
443
|
-
|
|
444
|
-
onUploadCompletion(uploadedFiles);
|
|
445
|
-
onClose();
|
|
446
|
-
}, 750);
|
|
441
|
+
if (!(typeof onUploadCompletion === "function")) {
|
|
442
|
+
_context3.next = 13;
|
|
443
|
+
break;
|
|
447
444
|
}
|
|
448
445
|
|
|
449
|
-
|
|
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
|
}
|
|
@@ -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
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-admin",
|
|
3
|
-
"version": "5.
|
|
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.
|
|
19
|
+
"@svgr/webpack": "6.2.1",
|
|
20
20
|
"@types/mime": "2.0.3",
|
|
21
21
|
"@types/react": "16.14.2",
|
|
22
|
-
"@webiny/app": "5.
|
|
23
|
-
"@webiny/app-admin-core": "5.
|
|
24
|
-
"@webiny/app-security": "5.
|
|
25
|
-
"@webiny/form": "5.
|
|
26
|
-
"@webiny/plugins": "5.
|
|
27
|
-
"@webiny/react-router": "5.
|
|
28
|
-
"@webiny/telemetry": "5.
|
|
29
|
-
"@webiny/ui": "5.
|
|
30
|
-
"@webiny/ui-composer": "5.
|
|
31
|
-
"@webiny/validation": "5.
|
|
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.
|
|
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.
|
|
69
|
-
"@webiny/project-utils": "^5.
|
|
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": "
|
|
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
|
};
|
package/styles/material.scss
CHANGED
|
@@ -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
|
-
}
|