@webiny/app-serverless-cms 5.27.0 → 5.29.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/Admin.js +64 -29
- package/Admin.js.map +1 -1
- package/apolloClientFactory.js +33 -15
- package/apolloClientFactory.js.map +1 -1
- package/apolloLinks.d.ts +1 -1
- package/apolloLinks.js +18 -7
- package/apolloLinks.js.map +1 -1
- package/index.js +273 -5
- package/index.js.map +1 -1
- package/package.json +21 -20
package/Admin.js
CHANGED
|
@@ -1,37 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.Admin = void 0;
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
|
|
14
|
+
var _plugins = require("@webiny/plugins");
|
|
15
|
+
|
|
16
|
+
var _appAdmin = require("@webiny/app-admin");
|
|
17
|
+
|
|
18
|
+
var _appTenancy = require("@webiny/app-tenancy");
|
|
19
|
+
|
|
20
|
+
var _appSecurity = require("@webiny/app-security");
|
|
21
|
+
|
|
22
|
+
var _appI18n = require("@webiny/app-i18n");
|
|
23
|
+
|
|
24
|
+
var _appI18nContent = require("@webiny/app-i18n-content");
|
|
25
|
+
|
|
26
|
+
var _appPageBuilder = require("@webiny/app-page-builder");
|
|
27
|
+
|
|
28
|
+
var _appFormBuilder = require("@webiny/app-form-builder");
|
|
29
|
+
|
|
30
|
+
var _appHeadlessCms = require("@webiny/app-headless-cms");
|
|
31
|
+
|
|
32
|
+
var _appAdminRmwc = require("@webiny/app-admin-rmwc");
|
|
33
|
+
|
|
34
|
+
var _appFileManager = require("@webiny/app-file-manager");
|
|
35
|
+
|
|
36
|
+
var _appGraphqlPlayground = require("@webiny/app-graphql-playground");
|
|
37
|
+
|
|
38
|
+
var _appSecurityAccessManagement = require("@webiny/app-security-access-management");
|
|
39
|
+
|
|
40
|
+
var _plugins2 = require("@webiny/app/plugins");
|
|
41
|
+
|
|
42
|
+
var _plugins3 = _interopRequireDefault(require("@webiny/app-file-manager/admin/plugins"));
|
|
43
|
+
|
|
44
|
+
var _appFileManagerS = _interopRequireDefault(require("@webiny/app-file-manager-s3"));
|
|
45
|
+
|
|
46
|
+
var _apolloClientFactory = require("./apolloClientFactory");
|
|
47
|
+
|
|
48
|
+
var _apolloLinks = _interopRequireDefault(require("./apolloLinks"));
|
|
49
|
+
|
|
50
|
+
var _ViewCompositionProvider = require("@webiny/app-admin/base/providers/ViewCompositionProvider");
|
|
51
|
+
|
|
52
|
+
var _appTenantManager = require("@webiny/app-tenant-manager");
|
|
21
53
|
|
|
22
54
|
var App = function App(props) {
|
|
23
|
-
var createApolloClient = props.createApolloClient ||
|
|
24
|
-
var ViewCompositionProvider = createViewCompositionProvider();
|
|
25
|
-
|
|
26
|
-
|
|
55
|
+
var createApolloClient = props.createApolloClient || _apolloClientFactory.createApolloClient;
|
|
56
|
+
var ViewCompositionProvider = (0, _ViewCompositionProvider.createViewCompositionProvider)();
|
|
57
|
+
|
|
58
|
+
_plugins.plugins.register((0, _plugins2.imagePlugin)(), (0, _plugins3.default)(), (0, _appFileManagerS.default)(), _apolloLinks.default);
|
|
59
|
+
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(_appAdmin.Admin, {
|
|
27
61
|
createApolloClient: createApolloClient
|
|
28
|
-
}, /*#__PURE__*/
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_appAdminRmwc.RMWC, null), /*#__PURE__*/_react.default.createElement(_appTenancy.Tenancy, null), /*#__PURE__*/_react.default.createElement(_appSecurity.Security, null), /*#__PURE__*/_react.default.createElement(_appSecurityAccessManagement.AccessManagement, null), /*#__PURE__*/_react.default.createElement(_appAdmin.AppInstaller, null), /*#__PURE__*/_react.default.createElement(_appFileManager.FileManager, null), /*#__PURE__*/_react.default.createElement(_appGraphqlPlayground.GraphQLPlayground, {
|
|
29
63
|
createApolloClient: createApolloClient
|
|
30
|
-
}), /*#__PURE__*/
|
|
64
|
+
}), /*#__PURE__*/_react.default.createElement(_appI18n.I18N, null), /*#__PURE__*/_react.default.createElement(_appI18nContent.I18NContent, null), /*#__PURE__*/_react.default.createElement(_appAdmin.Provider, {
|
|
31
65
|
hoc: ViewCompositionProvider
|
|
32
|
-
}), /*#__PURE__*/
|
|
66
|
+
}), /*#__PURE__*/_react.default.createElement(_appPageBuilder.PageBuilder, null), /*#__PURE__*/_react.default.createElement(_appFormBuilder.FormBuilder, null), /*#__PURE__*/_react.default.createElement(_appHeadlessCms.HeadlessCMS, {
|
|
33
67
|
createApolloClient: createApolloClient
|
|
34
|
-
}), props.children);
|
|
68
|
+
}), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), props.children);
|
|
35
69
|
};
|
|
36
70
|
|
|
37
|
-
|
|
71
|
+
var Admin = /*#__PURE__*/(0, _react.memo)(App);
|
|
72
|
+
exports.Admin = Admin;
|
package/Admin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["App","props","createApolloClient","defaultApolloClientFactory","ViewCompositionProvider","createViewCompositionProvider","plugins","register","imagePlugin","fileManagerPlugins","fileStorageS3Plugin","apolloLinks","children","Admin","memo"],"sources":["Admin.tsx"],"sourcesContent":["import React, { memo } from \"react\";\nimport { plugins } from \"@webiny/plugins\";\nimport {\n Admin as BaseAdmin,\n AdminProps as BaseAdminProps,\n AppInstaller,\n Provider\n} from \"@webiny/app-admin\";\nimport { Tenancy } from \"@webiny/app-tenancy\";\nimport { Security } from \"@webiny/app-security\";\nimport { I18N } from \"@webiny/app-i18n\";\nimport { I18NContent } from \"@webiny/app-i18n-content\";\nimport { PageBuilder } from \"@webiny/app-page-builder\";\nimport { FormBuilder } from \"@webiny/app-form-builder\";\nimport { HeadlessCMS } from \"@webiny/app-headless-cms\";\nimport { RMWC } from \"@webiny/app-admin-rmwc\";\nimport { FileManager } from \"@webiny/app-file-manager\";\nimport { GraphQLPlayground } from \"@webiny/app-graphql-playground\";\nimport { AccessManagement } from \"@webiny/app-security-access-management\";\nimport { imagePlugin } from \"@webiny/app/plugins\";\nimport fileManagerPlugins from \"@webiny/app-file-manager/admin/plugins\";\nimport fileStorageS3Plugin from \"@webiny/app-file-manager-s3\";\nimport { createApolloClient as defaultApolloClientFactory } from \"./apolloClientFactory\";\nimport apolloLinks from \"./apolloLinks\";\nimport { createViewCompositionProvider } from \"@webiny/app-admin/base/providers/ViewCompositionProvider\";\nimport { TenantManager } from \"@webiny/app-tenant-manager\";\n\nexport interface AdminProps extends Omit<BaseAdminProps, \"createApolloClient\"> {\n createApolloClient?: BaseAdminProps[\"createApolloClient\"];\n}\n\nconst App = (props: AdminProps) => {\n const createApolloClient = props.createApolloClient || defaultApolloClientFactory;\n const ViewCompositionProvider = createViewCompositionProvider();\n\n plugins.register(imagePlugin(), fileManagerPlugins(), fileStorageS3Plugin(), apolloLinks);\n\n return (\n <BaseAdmin createApolloClient={createApolloClient}>\n <RMWC />\n <Tenancy />\n <Security />\n <AccessManagement />\n <AppInstaller />\n <FileManager />\n <GraphQLPlayground createApolloClient={createApolloClient} />\n <I18N />\n <I18NContent />\n <Provider hoc={ViewCompositionProvider} />\n <PageBuilder />\n <FormBuilder />\n <HeadlessCMS createApolloClient={createApolloClient} />\n <TenantManager />\n {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;AAMA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAMA,IAAMA,GAAG,GAAG,SAANA,GAAM,CAACC,KAAD,EAAuB;EAC/B,IAAMC,kBAAkB,GAAGD,KAAK,CAACC,kBAAN,IAA4BC,uCAAvD;EACA,IAAMC,uBAAuB,GAAG,IAAAC,sDAAA,GAAhC;;EAEAC,gBAAA,CAAQC,QAAR,CAAiB,IAAAC,qBAAA,GAAjB,EAAgC,IAAAC,iBAAA,GAAhC,EAAsD,IAAAC,wBAAA,GAAtD,EAA6EC,oBAA7E;;EAEA,oBACI,6BAAC,eAAD;IAAW,kBAAkB,EAAET;EAA/B,gBACI,6BAAC,kBAAD,OADJ,eAEI,6BAAC,mBAAD,OAFJ,eAGI,6BAAC,qBAAD,OAHJ,eAII,6BAAC,6CAAD,OAJJ,eAKI,6BAAC,sBAAD,OALJ,eAMI,6BAAC,2BAAD,OANJ,eAOI,6BAAC,uCAAD;IAAmB,kBAAkB,EAAEA;EAAvC,EAPJ,eAQI,6BAAC,aAAD,OARJ,eASI,6BAAC,2BAAD,OATJ,eAUI,6BAAC,kBAAD;IAAU,GAAG,EAAEE;EAAf,EAVJ,eAWI,6BAAC,2BAAD,OAXJ,eAYI,6BAAC,2BAAD,OAZJ,eAaI,6BAAC,2BAAD;IAAa,kBAAkB,EAAEF;EAAjC,EAbJ,eAcI,6BAAC,+BAAD,OAdJ,EAeKD,KAAK,CAACW,QAfX,CADJ;AAmBH,CAzBD;;AA2BO,IAAMC,KAAK,gBAAG,IAAAC,WAAA,EAAiBd,GAAjB,CAAd"}
|
package/apolloClientFactory.js
CHANGED
|
@@ -1,32 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.createApolloClient = void 0;
|
|
9
|
+
|
|
10
|
+
var _apolloClient = _interopRequireDefault(require("apollo-client"));
|
|
11
|
+
|
|
12
|
+
var _apolloLink = require("apollo-link");
|
|
13
|
+
|
|
14
|
+
var _apolloLinkBatchHttp = require("apollo-link-batch-http");
|
|
15
|
+
|
|
16
|
+
var _InMemoryCache = require("@webiny/app/apollo-client/InMemoryCache");
|
|
17
|
+
|
|
18
|
+
var _plugins = require("@webiny/plugins");
|
|
19
|
+
|
|
20
|
+
var _ApolloDynamicLink = require("@webiny/app/plugins/ApolloDynamicLink");
|
|
21
|
+
|
|
22
|
+
var _ApolloCacheObjectIdPlugin = require("@webiny/app/plugins/ApolloCacheObjectIdPlugin");
|
|
23
|
+
|
|
24
|
+
var createApolloClient = function createApolloClient(_ref) {
|
|
9
25
|
var uri = _ref.uri;
|
|
10
|
-
return new
|
|
11
|
-
link: ApolloLink.from([
|
|
26
|
+
return new _apolloClient.default({
|
|
27
|
+
link: _apolloLink.ApolloLink.from([
|
|
12
28
|
/**
|
|
13
29
|
* This will process links from plugins on every request.
|
|
14
30
|
*/
|
|
15
|
-
new ApolloDynamicLink(),
|
|
31
|
+
new _ApolloDynamicLink.ApolloDynamicLink(),
|
|
16
32
|
/**
|
|
17
33
|
* This batches requests made to the API to pack multiple requests into a single HTTP request.
|
|
18
34
|
*/
|
|
19
|
-
new BatchHttpLink({
|
|
35
|
+
new _apolloLinkBatchHttp.BatchHttpLink({
|
|
20
36
|
uri: uri
|
|
21
37
|
})]),
|
|
22
|
-
cache: new InMemoryCache({
|
|
38
|
+
cache: new _InMemoryCache.InMemoryCache({
|
|
23
39
|
addTypename: true,
|
|
24
40
|
dataIdFromObject: function dataIdFromObject(obj) {
|
|
25
41
|
/**
|
|
26
42
|
* Since every data type coming from API can have a different data structure,
|
|
27
43
|
* we cannot rely on having an `id` field.
|
|
28
44
|
*/
|
|
29
|
-
var getters = plugins.byType(ApolloCacheObjectIdPlugin.type);
|
|
45
|
+
var getters = _plugins.plugins.byType(_ApolloCacheObjectIdPlugin.ApolloCacheObjectIdPlugin.type);
|
|
30
46
|
|
|
31
47
|
for (var i = 0; i < getters.length; i++) {
|
|
32
48
|
var id = getters[i].getObjectId(obj);
|
|
@@ -44,4 +60,6 @@ export var createApolloClient = function createApolloClient(_ref) {
|
|
|
44
60
|
}
|
|
45
61
|
})
|
|
46
62
|
});
|
|
47
|
-
};
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.createApolloClient = createApolloClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["createApolloClient","uri","ApolloClient","link","ApolloLink","from","ApolloDynamicLink","BatchHttpLink","cache","InMemoryCache","addTypename","dataIdFromObject","obj","getters","plugins","byType","ApolloCacheObjectIdPlugin","type","i","length","id","getObjectId"],"sources":["apolloClientFactory.ts"],"sourcesContent":["import ApolloClient from \"apollo-client\";\nimport { ApolloLink } from \"apollo-link\";\nimport { BatchHttpLink } from \"apollo-link-batch-http\";\nimport { InMemoryCache } from \"@webiny/app/apollo-client/InMemoryCache\";\nimport { plugins } from \"@webiny/plugins\";\nimport { ApolloDynamicLink } from \"@webiny/app/plugins/ApolloDynamicLink\";\nimport { ApolloCacheObjectIdPlugin } from \"@webiny/app/plugins/ApolloCacheObjectIdPlugin\";\n\ninterface CreateApolloClientParams {\n uri: string;\n}\nexport const createApolloClient = ({ uri }: CreateApolloClientParams) => {\n return new ApolloClient({\n link: ApolloLink.from([\n /**\n * This will process links from plugins on every request.\n */\n new ApolloDynamicLink(),\n /**\n * This batches requests made to the API to pack multiple requests into a single HTTP request.\n */\n new BatchHttpLink({ uri })\n ]),\n cache: new InMemoryCache({\n addTypename: true,\n dataIdFromObject: obj => {\n /**\n * Since every data type coming from API can have a different data structure,\n * we cannot rely on having an `id` field.\n */\n const getters = plugins.byType<ApolloCacheObjectIdPlugin>(\n ApolloCacheObjectIdPlugin.type\n );\n\n for (let i = 0; i < getters.length; i++) {\n const id = getters[i].getObjectId(obj);\n if (typeof id !== \"undefined\") {\n return id;\n }\n }\n\n /**\n * As a fallback, try getting object's `id`.\n */\n return obj.id || null;\n }\n })\n });\n};\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAKO,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,OAAuC;EAAA,IAApCC,GAAoC,QAApCA,GAAoC;EACrE,OAAO,IAAIC,qBAAJ,CAAiB;IACpBC,IAAI,EAAEC,sBAAA,CAAWC,IAAX,CAAgB;IAClB;AACZ;AACA;IACY,IAAIC,oCAAJ,EAJkB;IAKlB;AACZ;AACA;IACY,IAAIC,kCAAJ,CAAkB;MAAEN,GAAG,EAAHA;IAAF,CAAlB,CARkB,CAAhB,CADc;IAWpBO,KAAK,EAAE,IAAIC,4BAAJ,CAAkB;MACrBC,WAAW,EAAE,IADQ;MAErBC,gBAAgB,EAAE,0BAAAC,GAAG,EAAI;QACrB;AAChB;AACA;AACA;QACgB,IAAMC,OAAO,GAAGC,gBAAA,CAAQC,MAAR,CACZC,oDAAA,CAA0BC,IADd,CAAhB;;QAIA,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGL,OAAO,CAACM,MAA5B,EAAoCD,CAAC,EAArC,EAAyC;UACrC,IAAME,EAAE,GAAGP,OAAO,CAACK,CAAD,CAAP,CAAWG,WAAX,CAAuBT,GAAvB,CAAX;;UACA,IAAI,OAAOQ,EAAP,KAAc,WAAlB,EAA+B;YAC3B,OAAOA,EAAP;UACH;QACJ;QAED;AAChB;AACA;;;QACgB,OAAOR,GAAG,CAACQ,EAAJ,IAAU,IAAjB;MACH;IAtBoB,CAAlB;EAXa,CAAjB,CAAP;AAoCH,CArCM"}
|
package/apolloLinks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConsoleLinkPlugin } from "@webiny/app/plugins/ConsoleLinkPlugin";
|
|
2
2
|
import { NetworkErrorLinkPlugin } from "@webiny/app/plugins/NetworkErrorLinkPlugin";
|
|
3
3
|
import { OmitTypenameLinkPlugin } from "@webiny/app/plugins/OmitTypenameLinkPlugin";
|
|
4
|
-
declare const _default: (
|
|
4
|
+
declare const _default: (OmitTypenameLinkPlugin | ConsoleLinkPlugin | NetworkErrorLinkPlugin)[];
|
|
5
5
|
export default _default;
|
package/apolloLinks.js
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _ConsoleLinkPlugin = require("@webiny/app/plugins/ConsoleLinkPlugin");
|
|
9
|
+
|
|
10
|
+
var _NetworkErrorLinkPlugin = require("@webiny/app/plugins/NetworkErrorLinkPlugin");
|
|
11
|
+
|
|
12
|
+
var _OmitTypenameLinkPlugin = require("@webiny/app/plugins/OmitTypenameLinkPlugin");
|
|
13
|
+
|
|
14
|
+
var _default = [
|
|
5
15
|
/**
|
|
6
16
|
* This link removes `__typename` from the variables being sent to the API.
|
|
7
17
|
*/
|
|
8
|
-
new OmitTypenameLinkPlugin(),
|
|
18
|
+
new _OmitTypenameLinkPlugin.OmitTypenameLinkPlugin(),
|
|
9
19
|
/**
|
|
10
20
|
* This link checks for presence of `extensions.console` in the response and logs all items to browser console.
|
|
11
21
|
*/
|
|
12
|
-
new ConsoleLinkPlugin(),
|
|
22
|
+
new _ConsoleLinkPlugin.ConsoleLinkPlugin(),
|
|
13
23
|
/**
|
|
14
24
|
* This plugin creates an ApolloLink that checks for `NetworkError` and shows an ErrorOverlay in the browser.
|
|
15
25
|
*/
|
|
16
|
-
new NetworkErrorLinkPlugin()];
|
|
26
|
+
new _NetworkErrorLinkPlugin.NetworkErrorLinkPlugin()];
|
|
27
|
+
exports.default = _default;
|
package/apolloLinks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["OmitTypenameLinkPlugin","ConsoleLinkPlugin","NetworkErrorLinkPlugin"],"sources":["apolloLinks.ts"],"sourcesContent":["import { ConsoleLinkPlugin } from \"@webiny/app/plugins/ConsoleLinkPlugin\";\nimport { NetworkErrorLinkPlugin } from \"@webiny/app/plugins/NetworkErrorLinkPlugin\";\nimport { OmitTypenameLinkPlugin } from \"@webiny/app/plugins/OmitTypenameLinkPlugin\";\n\nexport default [\n /**\n * This link removes `__typename` from the variables being sent to the API.\n */\n new OmitTypenameLinkPlugin(),\n /**\n * This link checks for presence of `extensions.console` in the response and logs all items to browser console.\n */\n new ConsoleLinkPlugin(),\n /**\n * This plugin creates an ApolloLink that checks for `NetworkError` and shows an ErrorOverlay in the browser.\n */\n new NetworkErrorLinkPlugin()\n];\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;eAEe;AACX;AACJ;AACA;AACI,IAAIA,8CAAJ,EAJW;AAKX;AACJ;AACA;AACI,IAAIC,oCAAJ,EARW;AASX;AACJ;AACA;AACI,IAAIC,8CAAJ,EAZW,C"}
|
package/index.js
CHANGED
|
@@ -1,5 +1,273 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AddGraphQLQuerySelection", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _appAdmin.AddGraphQLQuerySelection;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AddLogo", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _appAdmin.AddLogo;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "AddMenu", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _appAdmin.AddMenu;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "AddPbWebsiteSettings", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _appPageBuilder.AddPbWebsiteSettings;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "AddRoute", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _appAdmin.AddRoute;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "AddUserMenuItem", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _appAdmin.AddUserMenuItem;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "Admin", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _Admin.Admin;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "Brand", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _appAdmin.Brand;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "BrandRenderer", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _appAdmin.BrandRenderer;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "Compose", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _appAdmin.Compose;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "Dashboard", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _appAdmin.Dashboard;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "DashboardRenderer", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _appAdmin.DashboardRenderer;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "HasPermission", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function get() {
|
|
81
|
+
return _appSecurity.HasPermission;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "Layout", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _appAdmin.Layout;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "LayoutRenderer", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _appAdmin.LayoutRenderer;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "LocaleSelector", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return _appAdmin.LocaleSelector;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "LocaleSelectorRenderer", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _appAdmin.LocaleSelectorRenderer;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "LoginScreen", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _appAdmin.LoginScreen;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "LoginScreenRenderer", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function get() {
|
|
117
|
+
return _appAdmin.LoginScreenRenderer;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "MenuItem", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _appAdmin.MenuItem;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "MenuItemRenderer", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function get() {
|
|
129
|
+
return _appAdmin.MenuItemRenderer;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "MenuItems", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function get() {
|
|
135
|
+
return _appAdmin.MenuItems;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "Navigation", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function get() {
|
|
141
|
+
return _appAdmin.Navigation;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "NavigationRenderer", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _appAdmin.NavigationRenderer;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "Plugins", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _appAdmin.Plugins;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "Provider", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function get() {
|
|
159
|
+
return _appAdmin.Provider;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "Tags", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function get() {
|
|
165
|
+
return _appAdmin.Tags;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "UserMenu", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function get() {
|
|
171
|
+
return _appAdmin.UserMenu;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "UserMenuHandle", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function get() {
|
|
177
|
+
return _appAdmin.UserMenuHandle;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "UserMenuHandleRenderer", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function get() {
|
|
183
|
+
return _appAdmin.UserMenuHandleRenderer;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "UserMenuItem", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function get() {
|
|
189
|
+
return _appAdmin.UserMenuItem;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "UserMenuItemRenderer", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function get() {
|
|
195
|
+
return _appAdmin.UserMenuItemRenderer;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "UserMenuItems", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function get() {
|
|
201
|
+
return _appAdmin.UserMenuItems;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "makeComposable", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function get() {
|
|
207
|
+
return _appAdmin.makeComposable;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "useAdmin", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function get() {
|
|
213
|
+
return _appAdmin.useAdmin;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
Object.defineProperty(exports, "useMenuItem", {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function get() {
|
|
219
|
+
return _appAdmin.useMenuItem;
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "useNavigation", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function get() {
|
|
225
|
+
return _appAdmin.useNavigation;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "usePermission", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function get() {
|
|
231
|
+
return _appSecurity.usePermission;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "useSecurity", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function get() {
|
|
237
|
+
return _appSecurity.useSecurity;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "useTags", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function get() {
|
|
243
|
+
return _appAdmin.useTags;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "useTenancy", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function get() {
|
|
249
|
+
return _appTenancy.useTenancy;
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(exports, "useUserMenu", {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: function get() {
|
|
255
|
+
return _appAdmin.useUserMenu;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "useUserMenuItem", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function get() {
|
|
261
|
+
return _appAdmin.useUserMenuItem;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
var _Admin = require("./Admin");
|
|
266
|
+
|
|
267
|
+
var _appAdmin = require("@webiny/app-admin");
|
|
268
|
+
|
|
269
|
+
var _appSecurity = require("@webiny/app-security");
|
|
270
|
+
|
|
271
|
+
var _appTenancy = require("@webiny/app-tenancy");
|
|
272
|
+
|
|
273
|
+
var _appPageBuilder = require("@webiny/app-page-builder");
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export { Admin } from \"./Admin\";\nexport type { AdminProps } from \"./Admin\";\nexport {\n useAdmin,\n useUserMenuItem,\n useUserMenu,\n useMenuItem,\n useNavigation,\n useTags,\n AddLogo,\n AddMenu,\n AddRoute,\n AddUserMenuItem,\n Dashboard,\n DashboardRenderer,\n Layout,\n LayoutRenderer,\n LoginScreen,\n LoginScreenRenderer,\n LocaleSelector,\n LocaleSelectorRenderer,\n Brand,\n BrandRenderer,\n Provider,\n Compose,\n Plugins,\n makeComposable,\n MenuItem,\n MenuItemRenderer,\n MenuItems,\n Navigation,\n NavigationRenderer,\n Tags,\n UserMenu,\n UserMenuHandle,\n UserMenuHandleRenderer,\n UserMenuItems,\n UserMenuItem,\n UserMenuItemRenderer,\n AddGraphQLQuerySelection\n} from \"@webiny/app-admin\";\nexport type {\n ComposeProps,\n HigherOrderComponent,\n ProviderProps,\n LayoutProps,\n LoginScreenProps,\n MenuContext,\n MenuData,\n MenuItemsProps,\n MenuProps,\n UserMenuItemsProps,\n UserMenuItemProps,\n UserMenuItemData\n} from \"@webiny/app-admin\";\n\nexport { HasPermission, useSecurity, usePermission } from \"@webiny/app-security\";\n\nexport { useTenancy } from \"@webiny/app-tenancy\";\nexport type { Tenant } from \"@webiny/app-tenancy\";\n\nexport { AddPbWebsiteSettings } from \"@webiny/app-page-builder\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AAsDA;;AAEA;;AAGA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-serverless-cms",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.29.0-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,23 +9,24 @@
|
|
|
9
9
|
"author": "Webiny Ltd.",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@babel/runtime": "7.
|
|
12
|
+
"@babel/runtime": "7.18.3",
|
|
13
13
|
"@emotion/core": "10.3.1",
|
|
14
|
-
"@webiny/app": "5.
|
|
15
|
-
"@webiny/app-admin": "5.
|
|
16
|
-
"@webiny/app-admin-rmwc": "5.
|
|
17
|
-
"@webiny/app-file-manager": "5.
|
|
18
|
-
"@webiny/app-file-manager-s3": "5.
|
|
19
|
-
"@webiny/app-form-builder": "5.
|
|
20
|
-
"@webiny/app-graphql-playground": "5.
|
|
21
|
-
"@webiny/app-headless-cms": "5.
|
|
22
|
-
"@webiny/app-i18n": "5.
|
|
23
|
-
"@webiny/app-i18n-content": "5.
|
|
24
|
-
"@webiny/app-page-builder": "5.
|
|
25
|
-
"@webiny/app-security": "5.
|
|
26
|
-
"@webiny/app-security-access-management": "5.
|
|
27
|
-
"@webiny/app-tenancy": "5.
|
|
28
|
-
"@webiny/
|
|
14
|
+
"@webiny/app": "5.29.0-beta.0",
|
|
15
|
+
"@webiny/app-admin": "5.29.0-beta.0",
|
|
16
|
+
"@webiny/app-admin-rmwc": "5.29.0-beta.0",
|
|
17
|
+
"@webiny/app-file-manager": "5.29.0-beta.0",
|
|
18
|
+
"@webiny/app-file-manager-s3": "5.29.0-beta.0",
|
|
19
|
+
"@webiny/app-form-builder": "5.29.0-beta.0",
|
|
20
|
+
"@webiny/app-graphql-playground": "5.29.0-beta.0",
|
|
21
|
+
"@webiny/app-headless-cms": "5.29.0-beta.0",
|
|
22
|
+
"@webiny/app-i18n": "5.29.0-beta.0",
|
|
23
|
+
"@webiny/app-i18n-content": "5.29.0-beta.0",
|
|
24
|
+
"@webiny/app-page-builder": "5.29.0-beta.0",
|
|
25
|
+
"@webiny/app-security": "5.29.0-beta.0",
|
|
26
|
+
"@webiny/app-security-access-management": "5.29.0-beta.0",
|
|
27
|
+
"@webiny/app-tenancy": "5.29.0-beta.0",
|
|
28
|
+
"@webiny/app-tenant-manager": "5.29.0-beta.0",
|
|
29
|
+
"@webiny/plugins": "5.29.0-beta.0",
|
|
29
30
|
"apollo-cache": "1.3.5",
|
|
30
31
|
"apollo-client": "2.6.10",
|
|
31
32
|
"apollo-link": "1.2.14",
|
|
@@ -40,8 +41,8 @@
|
|
|
40
41
|
"@babel/preset-env": "^7.5.5",
|
|
41
42
|
"@babel/preset-react": "^7.0.0",
|
|
42
43
|
"@babel/preset-typescript": "^7.8.3",
|
|
43
|
-
"@webiny/cli": "^5.
|
|
44
|
-
"@webiny/project-utils": "^5.
|
|
44
|
+
"@webiny/cli": "^5.29.0-beta.0",
|
|
45
|
+
"@webiny/project-utils": "^5.29.0-beta.0",
|
|
45
46
|
"babel-plugin-emotion": "^9.2.8",
|
|
46
47
|
"babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
|
|
47
48
|
"rimraf": "^3.0.2",
|
|
@@ -61,5 +62,5 @@
|
|
|
61
62
|
"removeViewBox": false
|
|
62
63
|
}
|
|
63
64
|
},
|
|
64
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e221dc575942c512548be142e20c5bd1231edcda"
|
|
65
66
|
}
|