@webiny/app-serverless-cms 0.0.0-unstable.97a151f74d → 0.0.0-unstable.99666aeb00
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 +10 -36
- package/Admin.js.map +1 -1
- package/apolloClientFactory.js +1 -14
- package/apolloClientFactory.js.map +1 -1
- package/apolloLinks.d.ts +1 -1
- package/apolloLinks.js +0 -4
- package/apolloLinks.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +26 -7
- package/index.js.map +1 -1
- package/package.json +36 -33
package/Admin.js
CHANGED
|
@@ -1,76 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.Admin = void 0;
|
|
11
|
-
|
|
12
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
10
|
var _plugins = require("@webiny/plugins");
|
|
15
|
-
|
|
16
11
|
var _appAdmin = require("@webiny/app-admin");
|
|
17
|
-
|
|
18
12
|
var _appTenancy = require("@webiny/app-tenancy");
|
|
19
|
-
|
|
20
13
|
var _appSecurity = require("@webiny/app-security");
|
|
21
|
-
|
|
22
14
|
var _appI18n = require("@webiny/app-i18n");
|
|
23
|
-
|
|
24
15
|
var _appI18nContent = require("@webiny/app-i18n-content");
|
|
25
|
-
|
|
26
16
|
var _appPageBuilder = require("@webiny/app-page-builder");
|
|
27
|
-
|
|
28
17
|
var _appFormBuilder = require("@webiny/app-form-builder");
|
|
29
|
-
|
|
30
18
|
var _appHeadlessCms = require("@webiny/app-headless-cms");
|
|
31
|
-
|
|
32
19
|
var _appAdminRmwc = require("@webiny/app-admin-rmwc");
|
|
33
|
-
|
|
34
|
-
var _appFileManager = require("@webiny/app-file-manager");
|
|
35
|
-
|
|
20
|
+
var _app = require("@webiny/app-file-manager/app");
|
|
36
21
|
var _appGraphqlPlayground = require("@webiny/app-graphql-playground");
|
|
37
|
-
|
|
38
22
|
var _appSecurityAccessManagement = require("@webiny/app-security-access-management");
|
|
39
|
-
|
|
40
23
|
var _plugins2 = require("@webiny/app/plugins");
|
|
41
|
-
|
|
42
|
-
var _plugins3 = _interopRequireDefault(require("@webiny/app-file-manager/admin/plugins"));
|
|
43
|
-
|
|
44
24
|
var _appFileManagerS = _interopRequireDefault(require("@webiny/app-file-manager-s3"));
|
|
45
|
-
|
|
46
25
|
var _apolloClientFactory = require("./apolloClientFactory");
|
|
47
|
-
|
|
48
26
|
var _apolloLinks = _interopRequireDefault(require("./apolloLinks"));
|
|
49
|
-
|
|
50
27
|
var _ViewCompositionProvider = require("@webiny/app-admin/base/providers/ViewCompositionProvider");
|
|
51
|
-
|
|
52
28
|
var _appApw = require("@webiny/app-apw");
|
|
53
|
-
|
|
54
29
|
var _appTenantManager = require("@webiny/app-tenant-manager");
|
|
55
|
-
|
|
56
|
-
var
|
|
57
|
-
|
|
30
|
+
var _lexicalEditorPbElement = require("@webiny/lexical-editor-pb-element");
|
|
31
|
+
var _lexicalEditorActions = require("@webiny/lexical-editor-actions");
|
|
32
|
+
var _appMailer = require("@webiny/app-mailer");
|
|
33
|
+
var _appAco = require("@webiny/app-aco");
|
|
34
|
+
var _utils = require("@webiny/app-page-builder/utils");
|
|
58
35
|
var App = function App(props) {
|
|
59
36
|
var createApolloClient = props.createApolloClient || _apolloClientFactory.createApolloClient;
|
|
60
37
|
var ViewCompositionProvider = (0, _ViewCompositionProvider.createViewCompositionProvider)();
|
|
61
|
-
|
|
62
|
-
_plugins.plugins.register((0, _plugins2.imagePlugin)(), (0, _plugins3.default)(), (0, _appFileManagerS.default)(), _apolloLinks.default);
|
|
63
|
-
|
|
38
|
+
_plugins.plugins.register((0, _plugins2.imagePlugin)(), (0, _appFileManagerS.default)(), _apolloLinks.default);
|
|
64
39
|
return /*#__PURE__*/_react.default.createElement(_appAdmin.Admin, {
|
|
65
40
|
createApolloClient: createApolloClient
|
|
66
|
-
}, /*#__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(
|
|
41
|
+
}, /*#__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(_appAco.Folders, null), /*#__PURE__*/_react.default.createElement(_app.FileManager, null), /*#__PURE__*/_react.default.createElement(_appGraphqlPlayground.GraphQLPlayground, {
|
|
67
42
|
createApolloClient: createApolloClient
|
|
68
43
|
}), /*#__PURE__*/_react.default.createElement(_appI18n.I18N, null), /*#__PURE__*/_react.default.createElement(_appI18nContent.I18NContent, null), /*#__PURE__*/_react.default.createElement(_appAdmin.Provider, {
|
|
69
44
|
hoc: ViewCompositionProvider
|
|
70
|
-
}), /*#__PURE__*/_react.default.createElement(_appPageBuilder.PageBuilder, null), /*#__PURE__*/_react.default.createElement(_appFormBuilder.FormBuilder, null), /*#__PURE__*/_react.default.createElement(_appHeadlessCms.HeadlessCMS, {
|
|
45
|
+
}), /*#__PURE__*/_react.default.createElement(_appPageBuilder.PageBuilder, null), !_utils.isLegacyRenderingEngine && /*#__PURE__*/_react.default.createElement(_lexicalEditorPbElement.LexicalEditorPlugin, null), !_utils.isLegacyRenderingEngine && /*#__PURE__*/_react.default.createElement(_lexicalEditorActions.LexicalEditorActions, null), /*#__PURE__*/_react.default.createElement(_appFormBuilder.FormBuilder, null), /*#__PURE__*/_react.default.createElement(_appHeadlessCms.HeadlessCMS, {
|
|
71
46
|
createApolloClient: createApolloClient
|
|
72
|
-
}), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(
|
|
47
|
+
}), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(_appMailer.Module, null), props.children);
|
|
73
48
|
};
|
|
74
|
-
|
|
75
49
|
var Admin = /*#__PURE__*/(0, _react.memo)(App);
|
|
76
50
|
exports.Admin = Admin;
|
package/Admin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["App","props","createApolloClient","defaultApolloClientFactory","ViewCompositionProvider","createViewCompositionProvider","plugins","register","imagePlugin","
|
|
1
|
+
{"version":3,"names":["App","props","createApolloClient","defaultApolloClientFactory","ViewCompositionProvider","createViewCompositionProvider","plugins","register","imagePlugin","fileStorageS3Plugin","apolloLinks","isLegacyRenderingEngine","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/app\";\nimport { GraphQLPlayground } from \"@webiny/app-graphql-playground\";\nimport { AccessManagement } from \"@webiny/app-security-access-management\";\nimport { imagePlugin } from \"@webiny/app/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 { AdvancedPublishingWorkflow } from \"@webiny/app-apw\";\nimport { TenantManager } from \"@webiny/app-tenant-manager\";\nimport { LexicalEditorPlugin } from \"@webiny/lexical-editor-pb-element\";\nimport { LexicalEditorActions } from \"@webiny/lexical-editor-actions\";\nimport { Module as MailerSettings } from \"@webiny/app-mailer\";\nimport { Folders } from \"@webiny/app-aco\";\nimport { isLegacyRenderingEngine } from \"@webiny/app-page-builder/utils\";\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(), fileStorageS3Plugin(), apolloLinks);\n\n return (\n <BaseAdmin createApolloClient={createApolloClient}>\n <RMWC />\n <Tenancy />\n <Security />\n <AccessManagement />\n <AppInstaller />\n <Folders />\n <FileManager />\n <GraphQLPlayground createApolloClient={createApolloClient} />\n <I18N />\n <I18NContent />\n <Provider hoc={ViewCompositionProvider} />\n <PageBuilder />\n {!isLegacyRenderingEngine && <LexicalEditorPlugin />}\n {!isLegacyRenderingEngine && <LexicalEditorActions />}\n <FormBuilder />\n <HeadlessCMS createApolloClient={createApolloClient} />\n <AdvancedPublishingWorkflow />\n <TenantManager />\n <MailerSettings />\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;AACA;AACA;AACA;AACA;AACA;AAMA,IAAMA,GAAG,GAAG,SAANA,GAAG,CAAIC,KAAiB,EAAK;EAC/B,IAAMC,kBAAkB,GAAGD,KAAK,CAACC,kBAAkB,IAAIC,uCAA0B;EACjF,IAAMC,uBAAuB,GAAG,IAAAC,sDAA6B,GAAE;EAE/DC,gBAAO,CAACC,QAAQ,CAAC,IAAAC,qBAAW,GAAE,EAAE,IAAAC,wBAAmB,GAAE,EAAEC,oBAAW,CAAC;EAEnE,oBACI,6BAAC,eAAS;IAAC,kBAAkB,EAAER;EAAmB,gBAC9C,6BAAC,kBAAI,OAAG,eACR,6BAAC,mBAAO,OAAG,eACX,6BAAC,qBAAQ,OAAG,eACZ,6BAAC,6CAAgB,OAAG,eACpB,6BAAC,sBAAY,OAAG,eAChB,6BAAC,eAAO,OAAG,eACX,6BAAC,gBAAW,OAAG,eACf,6BAAC,uCAAiB;IAAC,kBAAkB,EAAEA;EAAmB,EAAG,eAC7D,6BAAC,aAAI,OAAG,eACR,6BAAC,2BAAW,OAAG,eACf,6BAAC,kBAAQ;IAAC,GAAG,EAAEE;EAAwB,EAAG,eAC1C,6BAAC,2BAAW,OAAG,EACd,CAACO,8BAAuB,iBAAI,6BAAC,2CAAmB,OAAG,EACnD,CAACA,8BAAuB,iBAAI,6BAAC,0CAAoB,OAAG,eACrD,6BAAC,2BAAW,OAAG,eACf,6BAAC,2BAAW;IAAC,kBAAkB,EAAET;EAAmB,EAAG,eACvD,6BAAC,kCAA0B,OAAG,eAC9B,6BAAC,+BAAa,OAAG,eACjB,6BAAC,iBAAc,OAAG,EACjBD,KAAK,CAACW,QAAQ,CACP;AAEpB,CAAC;AAEM,IAAMC,KAAK,gBAAG,IAAAC,WAAI,EAAad,GAAG,CAAC;AAAC"}
|
package/apolloClientFactory.js
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.createApolloClient = void 0;
|
|
9
|
-
|
|
10
8
|
var _apolloClient = _interopRequireDefault(require("apollo-client"));
|
|
11
|
-
|
|
12
9
|
var _apolloLink = require("apollo-link");
|
|
13
|
-
|
|
14
10
|
var _apolloLinkBatchHttp = require("apollo-link-batch-http");
|
|
15
|
-
|
|
16
11
|
var _InMemoryCache = require("@webiny/app/apollo-client/InMemoryCache");
|
|
17
|
-
|
|
18
12
|
var _plugins = require("@webiny/plugins");
|
|
19
|
-
|
|
20
13
|
var _ApolloDynamicLink = require("@webiny/app/plugins/ApolloDynamicLink");
|
|
21
|
-
|
|
22
14
|
var _ApolloCacheObjectIdPlugin = require("@webiny/app/plugins/ApolloCacheObjectIdPlugin");
|
|
23
|
-
|
|
24
15
|
var createApolloClient = function createApolloClient(_ref) {
|
|
25
16
|
var uri = _ref.uri;
|
|
26
17
|
return new _apolloClient.default({
|
|
@@ -43,23 +34,19 @@ var createApolloClient = function createApolloClient(_ref) {
|
|
|
43
34
|
* we cannot rely on having an `id` field.
|
|
44
35
|
*/
|
|
45
36
|
var getters = _plugins.plugins.byType(_ApolloCacheObjectIdPlugin.ApolloCacheObjectIdPlugin.type);
|
|
46
|
-
|
|
47
37
|
for (var i = 0; i < getters.length; i++) {
|
|
48
38
|
var id = getters[i].getObjectId(obj);
|
|
49
|
-
|
|
50
39
|
if (typeof id !== "undefined") {
|
|
51
40
|
return id;
|
|
52
41
|
}
|
|
53
42
|
}
|
|
43
|
+
|
|
54
44
|
/**
|
|
55
45
|
* As a fallback, try getting object's `id`.
|
|
56
46
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
47
|
return obj.id || null;
|
|
60
48
|
}
|
|
61
49
|
})
|
|
62
50
|
});
|
|
63
51
|
};
|
|
64
|
-
|
|
65
52
|
exports.createApolloClient = createApolloClient;
|
|
@@ -1 +1 @@
|
|
|
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":"
|
|
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,kBAAkB,OAA0C;EAAA,IAApCC,GAAG,QAAHA,GAAG;EACpC,OAAO,IAAIC,qBAAY,CAAC;IACpBC,IAAI,EAAEC,sBAAU,CAACC,IAAI,CAAC;IAClB;AACZ;AACA;IACY,IAAIC,oCAAiB,EAAE;IACvB;AACZ;AACA;IACY,IAAIC,kCAAa,CAAC;MAAEN,GAAG,EAAHA;IAAI,CAAC,CAAC,CAC7B,CAAC;IACFO,KAAK,EAAE,IAAIC,4BAAa,CAAC;MACrBC,WAAW,EAAE,IAAI;MACjBC,gBAAgB,EAAE,0BAAAC,GAAG,EAAI;QACrB;AAChB;AACA;AACA;QACgB,IAAMC,OAAO,GAAGC,gBAAO,CAACC,MAAM,CAC1BC,oDAAyB,CAACC,IAAI,CACjC;QAED,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,OAAO,CAACM,MAAM,EAAED,CAAC,EAAE,EAAE;UACrC,IAAME,EAAE,GAAGP,OAAO,CAACK,CAAC,CAAC,CAACG,WAAW,CAACT,GAAG,CAAC;UACtC,IAAI,OAAOQ,EAAE,KAAK,WAAW,EAAE;YAC3B,OAAOA,EAAE;UACb;QACJ;;QAEA;AAChB;AACA;QACgB,OAAOR,GAAG,CAACQ,EAAE,IAAI,IAAI;MACzB;IACJ,CAAC;EACL,CAAC,CAAC;AACN,CAAC;AAAC"}
|
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: (ConsoleLinkPlugin | NetworkErrorLinkPlugin | OmitTypenameLinkPlugin)[];
|
|
5
5
|
export default _default;
|
package/apolloLinks.js
CHANGED
|
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _ConsoleLinkPlugin = require("@webiny/app/plugins/ConsoleLinkPlugin");
|
|
9
|
-
|
|
10
8
|
var _NetworkErrorLinkPlugin = require("@webiny/app/plugins/NetworkErrorLinkPlugin");
|
|
11
|
-
|
|
12
9
|
var _OmitTypenameLinkPlugin = require("@webiny/app/plugins/OmitTypenameLinkPlugin");
|
|
13
|
-
|
|
14
10
|
var _default = [
|
|
15
11
|
/**
|
|
16
12
|
* This link removes `__typename` from the variables being sent to the API.
|
package/apolloLinks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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":"
|
|
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;AAAoF,eAErE;AACX;AACJ;AACA;AACI,IAAIA,8CAAsB,EAAE;AAC5B;AACJ;AACA;AACI,IAAIC,oCAAiB,EAAE;AACvB;AACJ;AACA;AACI,IAAIC,8CAAsB,EAAE,CAC/B;AAAA"}
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Admin } from "./Admin";
|
|
2
2
|
export type { AdminProps } from "./Admin";
|
|
3
|
-
export {
|
|
3
|
+
export { useApp, useWcp, useUserMenuItem, useUserMenu, useMenuItem, useNavigation, useTags, AddLogo, AddMenu, AddRoute, AddUserMenuItem, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, LocaleSelector, LocaleSelectorRenderer, Brand, BrandRenderer, Provider, Compose, CompositionScope, Plugins, Plugin, makeComposable, createComponentPlugin, createProviderPlugin, createProvider, MenuItem, MenuItemRenderer, MenuItems, Navigation, NavigationRenderer, Tags, UserMenu, UserMenuHandle, UserMenuHandleRenderer, UserMenuItems, UserMenuItem, UserMenuItemRenderer, AddGraphQLQuerySelection } from "@webiny/app-admin";
|
|
4
4
|
export type { ComposeProps, HigherOrderComponent, ProviderProps, LayoutProps, LoginScreenProps, MenuContext, MenuData, MenuItemsProps, MenuProps, UserMenuItemsProps, UserMenuItemProps, UserMenuItemData } from "@webiny/app-admin";
|
|
5
5
|
export { HasPermission, useSecurity, usePermission } from "@webiny/app-security";
|
|
6
6
|
export { useTenancy } from "@webiny/app-tenancy";
|
package/index.js
CHANGED
|
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "Compose", {
|
|
|
63
63
|
return _appAdmin.Compose;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
+
Object.defineProperty(exports, "CompositionScope", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _appAdmin.CompositionScope;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
66
72
|
Object.defineProperty(exports, "Dashboard", {
|
|
67
73
|
enumerable: true,
|
|
68
74
|
get: function get() {
|
|
@@ -147,6 +153,12 @@ Object.defineProperty(exports, "NavigationRenderer", {
|
|
|
147
153
|
return _appAdmin.NavigationRenderer;
|
|
148
154
|
}
|
|
149
155
|
});
|
|
156
|
+
Object.defineProperty(exports, "Plugin", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function get() {
|
|
159
|
+
return _appAdmin.Plugin;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
150
162
|
Object.defineProperty(exports, "Plugins", {
|
|
151
163
|
enumerable: true,
|
|
152
164
|
get: function get() {
|
|
@@ -207,6 +219,12 @@ Object.defineProperty(exports, "createComponentPlugin", {
|
|
|
207
219
|
return _appAdmin.createComponentPlugin;
|
|
208
220
|
}
|
|
209
221
|
});
|
|
222
|
+
Object.defineProperty(exports, "createProvider", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function get() {
|
|
225
|
+
return _appAdmin.createProvider;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
210
228
|
Object.defineProperty(exports, "createProviderPlugin", {
|
|
211
229
|
enumerable: true,
|
|
212
230
|
get: function get() {
|
|
@@ -219,10 +237,10 @@ Object.defineProperty(exports, "makeComposable", {
|
|
|
219
237
|
return _appAdmin.makeComposable;
|
|
220
238
|
}
|
|
221
239
|
});
|
|
222
|
-
Object.defineProperty(exports, "
|
|
240
|
+
Object.defineProperty(exports, "useApp", {
|
|
223
241
|
enumerable: true,
|
|
224
242
|
get: function get() {
|
|
225
|
-
return _appAdmin.
|
|
243
|
+
return _appAdmin.useApp;
|
|
226
244
|
}
|
|
227
245
|
});
|
|
228
246
|
Object.defineProperty(exports, "useMenuItem", {
|
|
@@ -273,13 +291,14 @@ Object.defineProperty(exports, "useUserMenuItem", {
|
|
|
273
291
|
return _appAdmin.useUserMenuItem;
|
|
274
292
|
}
|
|
275
293
|
});
|
|
276
|
-
|
|
294
|
+
Object.defineProperty(exports, "useWcp", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function get() {
|
|
297
|
+
return _appAdmin.useWcp;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
277
300
|
var _Admin = require("./Admin");
|
|
278
|
-
|
|
279
301
|
var _appAdmin = require("@webiny/app-admin");
|
|
280
|
-
|
|
281
302
|
var _appSecurity = require("@webiny/app-security");
|
|
282
|
-
|
|
283
303
|
var _appTenancy = require("@webiny/app-tenancy");
|
|
284
|
-
|
|
285
304
|
var _appPageBuilder = require("@webiny/app-page-builder");
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export { Admin } from \"./Admin\";\nexport type { AdminProps } from \"./Admin\";\nexport {\n
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export { Admin } from \"./Admin\";\nexport type { AdminProps } from \"./Admin\";\nexport {\n useApp,\n useWcp,\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 CompositionScope,\n Plugins,\n Plugin,\n makeComposable,\n createComponentPlugin,\n createProviderPlugin,\n createProvider,\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;AA4DA;AAEA;AAGA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-serverless-cms",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.99666aeb00",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,26 +9,29 @@
|
|
|
9
9
|
"author": "Webiny Ltd.",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@babel/runtime": "7.
|
|
13
|
-
"@emotion/
|
|
14
|
-
"@webiny/app": "0.0.0-unstable.
|
|
15
|
-
"@webiny/app-
|
|
16
|
-
"@webiny/app-admin
|
|
17
|
-
"@webiny/app-
|
|
18
|
-
"@webiny/app-
|
|
19
|
-
"@webiny/app-file-manager
|
|
20
|
-
"@webiny/app-
|
|
21
|
-
"@webiny/app-form-builder": "0.0.0-unstable.
|
|
22
|
-
"@webiny/app-graphql-playground": "0.0.0-unstable.
|
|
23
|
-
"@webiny/app-headless-cms": "0.0.0-unstable.
|
|
24
|
-
"@webiny/app-i18n": "0.0.0-unstable.
|
|
25
|
-
"@webiny/app-i18n-content": "0.0.0-unstable.
|
|
26
|
-
"@webiny/app-
|
|
27
|
-
"@webiny/app-
|
|
28
|
-
"@webiny/app-security
|
|
29
|
-
"@webiny/app-
|
|
30
|
-
"@webiny/app-
|
|
31
|
-
"@webiny/
|
|
12
|
+
"@babel/runtime": "7.20.13",
|
|
13
|
+
"@emotion/react": "11.10.8",
|
|
14
|
+
"@webiny/app": "0.0.0-unstable.99666aeb00",
|
|
15
|
+
"@webiny/app-aco": "0.0.0-unstable.99666aeb00",
|
|
16
|
+
"@webiny/app-admin": "0.0.0-unstable.99666aeb00",
|
|
17
|
+
"@webiny/app-admin-rmwc": "0.0.0-unstable.99666aeb00",
|
|
18
|
+
"@webiny/app-apw": "0.0.0-unstable.99666aeb00",
|
|
19
|
+
"@webiny/app-file-manager": "0.0.0-unstable.99666aeb00",
|
|
20
|
+
"@webiny/app-file-manager-s3": "0.0.0-unstable.99666aeb00",
|
|
21
|
+
"@webiny/app-form-builder": "0.0.0-unstable.99666aeb00",
|
|
22
|
+
"@webiny/app-graphql-playground": "0.0.0-unstable.99666aeb00",
|
|
23
|
+
"@webiny/app-headless-cms": "0.0.0-unstable.99666aeb00",
|
|
24
|
+
"@webiny/app-i18n": "0.0.0-unstable.99666aeb00",
|
|
25
|
+
"@webiny/app-i18n-content": "0.0.0-unstable.99666aeb00",
|
|
26
|
+
"@webiny/app-mailer": "0.0.0-unstable.99666aeb00",
|
|
27
|
+
"@webiny/app-page-builder": "0.0.0-unstable.99666aeb00",
|
|
28
|
+
"@webiny/app-security": "0.0.0-unstable.99666aeb00",
|
|
29
|
+
"@webiny/app-security-access-management": "0.0.0-unstable.99666aeb00",
|
|
30
|
+
"@webiny/app-tenancy": "0.0.0-unstable.99666aeb00",
|
|
31
|
+
"@webiny/app-tenant-manager": "0.0.0-unstable.99666aeb00",
|
|
32
|
+
"@webiny/lexical-editor-actions": "0.0.0-unstable.99666aeb00",
|
|
33
|
+
"@webiny/lexical-editor-pb-element": "0.0.0-unstable.99666aeb00",
|
|
34
|
+
"@webiny/plugins": "0.0.0-unstable.99666aeb00",
|
|
32
35
|
"apollo-cache": "1.3.5",
|
|
33
36
|
"apollo-client": "2.6.10",
|
|
34
37
|
"apollo-link": "1.2.14",
|
|
@@ -38,17 +41,17 @@
|
|
|
38
41
|
"react-dom": "17.0.2"
|
|
39
42
|
},
|
|
40
43
|
"devDependencies": {
|
|
41
|
-
"@babel/cli": "
|
|
42
|
-
"@babel/core": "
|
|
43
|
-
"@babel/preset-env": "
|
|
44
|
-
"@babel/preset-react": "
|
|
45
|
-
"@babel/preset-typescript": "
|
|
46
|
-
"@webiny/cli": "
|
|
47
|
-
"@webiny/project-utils": "
|
|
48
|
-
"babel-plugin-emotion": "
|
|
49
|
-
"babel-plugin-named-asset-import": "
|
|
50
|
-
"rimraf": "
|
|
51
|
-
"ttypescript": "
|
|
44
|
+
"@babel/cli": "7.20.7",
|
|
45
|
+
"@babel/core": "7.20.12",
|
|
46
|
+
"@babel/preset-env": "7.20.2",
|
|
47
|
+
"@babel/preset-react": "7.18.6",
|
|
48
|
+
"@babel/preset-typescript": "7.18.6",
|
|
49
|
+
"@webiny/cli": "0.0.0-unstable.99666aeb00",
|
|
50
|
+
"@webiny/project-utils": "0.0.0-unstable.99666aeb00",
|
|
51
|
+
"babel-plugin-emotion": "9.2.11",
|
|
52
|
+
"babel-plugin-named-asset-import": "1.0.0-next.fb6e6f70",
|
|
53
|
+
"rimraf": "3.0.2",
|
|
54
|
+
"ttypescript": "1.5.15",
|
|
52
55
|
"typescript": "4.7.4"
|
|
53
56
|
},
|
|
54
57
|
"publishConfig": {
|
|
@@ -64,5 +67,5 @@
|
|
|
64
67
|
"removeViewBox": false
|
|
65
68
|
}
|
|
66
69
|
},
|
|
67
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "99666aeb00056c56292eeb5dbb6aba7fda2439e2"
|
|
68
71
|
}
|