@webiny/app-mailer 5.39.1-beta.0 → 5.39.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/package.json +9 -9
- package/plugins/Module.js +1 -1
- package/plugins/Module.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-mailer",
|
|
3
|
-
"version": "5.39.1
|
|
3
|
+
"version": "5.39.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"@apollo/react-components": "3.1.5",
|
|
13
13
|
"@babel/runtime": "7.22.6",
|
|
14
14
|
"@emotion/react": "11.10.8",
|
|
15
|
-
"@webiny/app-admin": "5.39.1
|
|
16
|
-
"@webiny/app-security": "5.39.1
|
|
17
|
-
"@webiny/form": "5.39.1
|
|
18
|
-
"@webiny/ui": "5.39.1
|
|
19
|
-
"@webiny/validation": "5.39.1
|
|
15
|
+
"@webiny/app-admin": "5.39.1",
|
|
16
|
+
"@webiny/app-security": "5.39.1",
|
|
17
|
+
"@webiny/form": "5.39.1",
|
|
18
|
+
"@webiny/ui": "5.39.1",
|
|
19
|
+
"@webiny/validation": "5.39.1",
|
|
20
20
|
"apollo-cache": "1.3.5",
|
|
21
21
|
"apollo-client": "2.6.10",
|
|
22
22
|
"apollo-link": "1.2.14",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@babel/preset-react": "7.22.5",
|
|
37
37
|
"@babel/preset-typescript": "7.22.5",
|
|
38
38
|
"@types/react": "17.0.39",
|
|
39
|
-
"@webiny/cli": "5.39.1
|
|
40
|
-
"@webiny/project-utils": "5.39.1
|
|
39
|
+
"@webiny/cli": "5.39.1",
|
|
40
|
+
"@webiny/project-utils": "5.39.1",
|
|
41
41
|
"babel-plugin-emotion": "9.2.11",
|
|
42
42
|
"rimraf": "3.0.2",
|
|
43
43
|
"ttypescript": "1.5.15",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"removeViewBox": false
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "6fc74b45740bd4123dcf9b5890bfacee594208bf"
|
|
60
60
|
}
|
package/plugins/Module.js
CHANGED
|
@@ -18,7 +18,7 @@ var _Progress = require("@webiny/ui/Progress");
|
|
|
18
18
|
var _excluded = ["children"];
|
|
19
19
|
var Settings = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
20
20
|
return Promise.resolve().then(function () {
|
|
21
|
-
return (0, _interopRequireWildcard2.default)(require("../views/settings"));
|
|
21
|
+
return (0, _interopRequireWildcard2.default)(require( /* webpackChunkName: "MailerModuleSettings" */"../views/settings"));
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
var Loader = function Loader(_ref) {
|
package/plugins/Module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard3","require","_appAdmin","_appSecurity","_AdminLayout","_reactHelmet","_interopRequireDefault","_usePermission2","_Progress","_excluded","Settings","lazy","Promise","resolve","then","_interopRequireWildcard2","default","Loader","_ref","children","props","_objectWithoutProperties2","createElement","Suspense","fallback","CircularProgress","React","cloneElement","MailerSettings","_usePermission","usePermission","canChangeSettings","changeSettings","Fragment","AddMenu","name","label","path","AddRoute","exact","render","SecureRoute","permission","AdminLayout","title","Module","Plugins","exports"],"sources":["Module.tsx"],"sourcesContent":["import React, { lazy, Suspense } from \"react\";\nimport { AddMenu as Menu, AddRoute, Plugins } from \"@webiny/app-admin\";\nimport { SecureRoute } from \"@webiny/app-security\";\nimport { AdminLayout } from \"@webiny/app-admin/components/AdminLayout\";\nimport Helmet from \"react-helmet\";\nimport { usePermission } from \"~/hooks/usePermission\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\n\nconst Settings = lazy(()
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard3","require","_appAdmin","_appSecurity","_AdminLayout","_reactHelmet","_interopRequireDefault","_usePermission2","_Progress","_excluded","Settings","lazy","Promise","resolve","then","_interopRequireWildcard2","default","Loader","_ref","children","props","_objectWithoutProperties2","createElement","Suspense","fallback","CircularProgress","React","cloneElement","MailerSettings","_usePermission","usePermission","canChangeSettings","changeSettings","Fragment","AddMenu","name","label","path","AddRoute","exact","render","SecureRoute","permission","AdminLayout","title","Module","Plugins","exports"],"sources":["Module.tsx"],"sourcesContent":["import React, { lazy, Suspense } from \"react\";\nimport { AddMenu as Menu, AddRoute, Plugins } from \"@webiny/app-admin\";\nimport { SecureRoute } from \"@webiny/app-security\";\nimport { AdminLayout } from \"@webiny/app-admin/components/AdminLayout\";\nimport Helmet from \"react-helmet\";\nimport { usePermission } from \"~/hooks/usePermission\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\n\nconst Settings = lazy(\n () =>\n import(\n /* webpackChunkName: \"MailerModuleSettings\" */\n \"~/views/settings\"\n )\n);\n\ninterface LoaderProps {\n children: React.ReactElement;\n}\nconst Loader = ({ children, ...props }: LoaderProps) => (\n <Suspense fallback={<CircularProgress />}>{React.cloneElement(children, props)}</Suspense>\n);\n\nconst MailerSettings = () => {\n const { canChangeSettings } = usePermission();\n\n const changeSettings = canChangeSettings();\n\n if (!changeSettings) {\n return null;\n }\n\n return (\n <>\n <Menu name={\"settings\"}>\n <Menu name={\"settings.mailer\"} label={\"Mailer\"}>\n <Menu\n name={\"settings.mailer.settings\"}\n label={\"Settings\"}\n path={\"/mailer/settings\"}\n />\n </Menu>\n </Menu>\n <AddRoute\n exact\n path={\"/mailer/settings\"}\n render={() => (\n <SecureRoute permission={\"mailer.settings\"}>\n <AdminLayout>\n <Helmet title={\"Mailer - Settings\"} />\n <Loader>\n <Settings />\n </Loader>\n </AdminLayout>\n </SecureRoute>\n )}\n />\n </>\n );\n};\n\nexport const Module = () => {\n return (\n <Plugins>\n <MailerSettings />\n </Plugins>\n );\n};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