@webiny/app-admin 5.40.2 → 5.40.3-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.
|
@@ -11,10 +11,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _ = require("./..");
|
|
12
12
|
var _lexicalEditor = require("@webiny/lexical-editor");
|
|
13
13
|
var _appTheme = require("@webiny/app-theme");
|
|
14
|
+
var imagesOnly = ["image/*"];
|
|
14
15
|
var LexicalEditor = exports.LexicalEditor = function LexicalEditor(props) {
|
|
15
16
|
var _useTheme = (0, _appTheme.useTheme)(),
|
|
16
17
|
theme = _useTheme.theme;
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement(_.FileManager,
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_.FileManager, {
|
|
19
|
+
accept: imagesOnly
|
|
20
|
+
}, function (_ref) {
|
|
18
21
|
var showFileManager = _ref.showFileManager;
|
|
19
22
|
return /*#__PURE__*/_react.default.createElement(_lexicalEditor.RichTextEditor, Object.assign({}, props, {
|
|
20
23
|
theme: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, theme), props?.theme),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_","_lexicalEditor","_appTheme","LexicalEditor","exports","props","_useTheme","useTheme","theme","default","createElement","FileManager","_ref","showFileManager","RichTextEditor","Object","assign","_objectSpread2","toolbarActionPlugins","concat","_toConsumableArray2","targetAction","plugin"],"sources":["LexicalEditor.tsx"],"sourcesContent":["import React from \"react\";\nimport { FileManager } from \"~/components\";\nimport { RichTextEditor as BaseEditor } from \"@webiny/lexical-editor\";\nimport { RichTextEditorProps } from \"@webiny/lexical-editor/types\";\nimport { useTheme } from \"@webiny/app-theme\";\nimport { Theme } from \"@webiny/app-theme/types\";\n\ninterface LexicalEditorProps extends Omit<RichTextEditorProps, \"theme\"> {\n theme?: Theme;\n}\n\nexport const LexicalEditor = (props: LexicalEditorProps) => {\n const { theme } = useTheme();\n\n return (\n <FileManager>\n {({ showFileManager }) => (\n <BaseEditor\n {...props}\n theme={{ ...theme, ...props?.theme }}\n toolbarActionPlugins={[\n ...(props.toolbarActionPlugins || []),\n { targetAction: \"image-action\", plugin: showFileManager }\n ]}\n />\n )}\n </FileManager>\n );\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,CAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_","_lexicalEditor","_appTheme","imagesOnly","LexicalEditor","exports","props","_useTheme","useTheme","theme","default","createElement","FileManager","accept","_ref","showFileManager","RichTextEditor","Object","assign","_objectSpread2","toolbarActionPlugins","concat","_toConsumableArray2","targetAction","plugin"],"sources":["LexicalEditor.tsx"],"sourcesContent":["import React from \"react\";\nimport { FileManager } from \"~/components\";\nimport { RichTextEditor as BaseEditor } from \"@webiny/lexical-editor\";\nimport { RichTextEditorProps } from \"@webiny/lexical-editor/types\";\nimport { useTheme } from \"@webiny/app-theme\";\nimport { Theme } from \"@webiny/app-theme/types\";\n\ninterface LexicalEditorProps extends Omit<RichTextEditorProps, \"theme\"> {\n theme?: Theme;\n}\n\nconst imagesOnly = [\"image/*\"];\n\nexport const LexicalEditor = (props: LexicalEditorProps) => {\n const { theme } = useTheme();\n\n return (\n <FileManager accept={imagesOnly}>\n {({ showFileManager }) => (\n <BaseEditor\n {...props}\n theme={{ ...theme, ...props?.theme }}\n toolbarActionPlugins={[\n ...(props.toolbarActionPlugins || []),\n { targetAction: \"image-action\", plugin: showFileManager }\n ]}\n />\n )}\n </FileManager>\n );\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,CAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AAOA,IAAMI,UAAU,GAAG,CAAC,SAAS,CAAC;AAEvB,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAAhBA,aAAaA,CAAIE,KAAyB,EAAK;EACxD,IAAAC,SAAA,GAAkB,IAAAC,kBAAQ,EAAC,CAAC;IAApBC,KAAK,GAAAF,SAAA,CAALE,KAAK;EAEb,oBACIZ,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACX,CAAA,CAAAY,WAAW;IAACC,MAAM,EAAEV;EAAW,GAC3B,UAAAW,IAAA;IAAA,IAAGC,eAAe,GAAAD,IAAA,CAAfC,eAAe;IAAA,oBACflB,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACV,cAAA,CAAAe,cAAU,EAAAC,MAAA,CAAAC,MAAA,KACHZ,KAAK;MACTG,KAAK,MAAAU,cAAA,CAAAT,OAAA,MAAAS,cAAA,CAAAT,OAAA,MAAOD,KAAK,GAAKH,KAAK,EAAEG,KAAK,CAAG;MACrCW,oBAAoB,KAAAC,MAAA,KAAAC,mBAAA,CAAAZ,OAAA,EACZJ,KAAK,CAACc,oBAAoB,IAAI,EAAE,IACpC;QAAEG,YAAY,EAAE,cAAc;QAAEC,MAAM,EAAET;MAAgB,CAAC;IAC3D,EACL,CAAC;EAAA,CAEG,CAAC;AAEtB,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-admin",
|
|
3
|
-
"version": "5.40.
|
|
3
|
+
"version": "5.40.3-beta.1",
|
|
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": {
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"@svgr/webpack": "6.5.1",
|
|
21
21
|
"@types/mime": "2.0.3",
|
|
22
22
|
"@types/react": "18.2.79",
|
|
23
|
-
"@webiny/app": "5.40.
|
|
24
|
-
"@webiny/app-security": "5.40.
|
|
25
|
-
"@webiny/app-theme": "5.40.
|
|
26
|
-
"@webiny/app-wcp": "5.40.
|
|
27
|
-
"@webiny/form": "5.40.
|
|
28
|
-
"@webiny/lexical-editor": "5.40.
|
|
29
|
-
"@webiny/plugins": "5.40.
|
|
30
|
-
"@webiny/react-composition": "5.40.
|
|
31
|
-
"@webiny/react-router": "5.40.
|
|
32
|
-
"@webiny/telemetry": "5.40.
|
|
33
|
-
"@webiny/ui": "5.40.
|
|
34
|
-
"@webiny/ui-composer": "5.40.
|
|
35
|
-
"@webiny/utils": "5.40.
|
|
36
|
-
"@webiny/validation": "5.40.
|
|
23
|
+
"@webiny/app": "5.40.3-beta.1",
|
|
24
|
+
"@webiny/app-security": "5.40.3-beta.1",
|
|
25
|
+
"@webiny/app-theme": "5.40.3-beta.1",
|
|
26
|
+
"@webiny/app-wcp": "5.40.3-beta.1",
|
|
27
|
+
"@webiny/form": "5.40.3-beta.1",
|
|
28
|
+
"@webiny/lexical-editor": "5.40.3-beta.1",
|
|
29
|
+
"@webiny/plugins": "5.40.3-beta.1",
|
|
30
|
+
"@webiny/react-composition": "5.40.3-beta.1",
|
|
31
|
+
"@webiny/react-router": "5.40.3-beta.1",
|
|
32
|
+
"@webiny/telemetry": "5.40.3-beta.1",
|
|
33
|
+
"@webiny/ui": "5.40.3-beta.1",
|
|
34
|
+
"@webiny/ui-composer": "5.40.3-beta.1",
|
|
35
|
+
"@webiny/utils": "5.40.3-beta.1",
|
|
36
|
+
"@webiny/validation": "5.40.3-beta.1",
|
|
37
37
|
"apollo-cache": "1.3.5",
|
|
38
38
|
"apollo-client": "2.6.10",
|
|
39
39
|
"apollo-link": "1.2.14",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@types/graphlib": "2.1.8",
|
|
69
69
|
"@types/is-hotkey": "0.1.7",
|
|
70
70
|
"@types/store": "2.0.2",
|
|
71
|
-
"@webiny/cli": "5.40.
|
|
72
|
-
"@webiny/project-utils": "5.40.
|
|
71
|
+
"@webiny/cli": "5.40.3-beta.1",
|
|
72
|
+
"@webiny/project-utils": "5.40.3-beta.1",
|
|
73
73
|
"rimraf": "5.0.5",
|
|
74
74
|
"ttypescript": "1.5.15",
|
|
75
75
|
"typescript": "4.7.4"
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
]
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "deb698c829c8633fd9abdab70cd61ad42387eef7"
|
|
99
99
|
}
|