@webiny/app-serverless-cms 0.0.0-unstable.990c3ab1b6 → 0.0.0-unstable.d4f203fa97

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 CHANGED
@@ -1,38 +1,66 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
4
5
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
6
+
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
8
10
  exports.Admin = void 0;
11
+
9
12
  var _react = _interopRequireWildcard(require("react"));
13
+
10
14
  var _plugins = require("@webiny/plugins");
15
+
11
16
  var _appAdmin = require("@webiny/app-admin");
17
+
12
18
  var _appTenancy = require("@webiny/app-tenancy");
19
+
13
20
  var _appSecurity = require("@webiny/app-security");
21
+
14
22
  var _appI18n = require("@webiny/app-i18n");
23
+
15
24
  var _appI18nContent = require("@webiny/app-i18n-content");
25
+
16
26
  var _appPageBuilder = require("@webiny/app-page-builder");
27
+
17
28
  var _appFormBuilder = require("@webiny/app-form-builder");
29
+
18
30
  var _appHeadlessCms = require("@webiny/app-headless-cms");
31
+
19
32
  var _appAdminRmwc = require("@webiny/app-admin-rmwc");
33
+
20
34
  var _appFileManager = require("@webiny/app-file-manager");
35
+
21
36
  var _appGraphqlPlayground = require("@webiny/app-graphql-playground");
37
+
22
38
  var _appSecurityAccessManagement = require("@webiny/app-security-access-management");
39
+
23
40
  var _plugins2 = require("@webiny/app/plugins");
41
+
24
42
  var _plugins3 = _interopRequireDefault(require("@webiny/app-file-manager/admin/plugins"));
43
+
25
44
  var _appFileManagerS = _interopRequireDefault(require("@webiny/app-file-manager-s3"));
45
+
26
46
  var _apolloClientFactory = require("./apolloClientFactory");
47
+
27
48
  var _apolloLinks = _interopRequireDefault(require("./apolloLinks"));
49
+
28
50
  var _ViewCompositionProvider = require("@webiny/app-admin/base/providers/ViewCompositionProvider");
51
+
29
52
  var _appApw = require("@webiny/app-apw");
53
+
30
54
  var _appTenantManager = require("@webiny/app-tenant-manager");
55
+
31
56
  var _appFolders = require("@webiny/app-folders");
57
+
32
58
  var App = function App(props) {
33
59
  var createApolloClient = props.createApolloClient || _apolloClientFactory.createApolloClient;
34
60
  var ViewCompositionProvider = (0, _ViewCompositionProvider.createViewCompositionProvider)();
61
+
35
62
  _plugins.plugins.register((0, _plugins2.imagePlugin)(), (0, _plugins3.default)(), (0, _appFileManagerS.default)(), _apolloLinks.default);
63
+
36
64
  return /*#__PURE__*/_react.default.createElement(_appAdmin.Admin, {
37
65
  createApolloClient: createApolloClient
38
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(_appFileManager.FileManager, null), /*#__PURE__*/_react.default.createElement(_appGraphqlPlayground.GraphQLPlayground, {
@@ -43,5 +71,6 @@ var App = function App(props) {
43
71
  createApolloClient: createApolloClient
44
72
  }), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(_appFolders.FoldersProvider, null), props.children);
45
73
  };
74
+
46
75
  var Admin = /*#__PURE__*/(0, _react.memo)(App);
47
76
  exports.Admin = Admin;
package/Admin.js.map CHANGED
@@ -1 +1 @@
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 { AdvancedPublishingWorkflow } from \"@webiny/app-apw\";\nimport { TenantManager } from \"@webiny/app-tenant-manager\";\nimport { FoldersProvider } from \"@webiny/app-folders\";\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 <AdvancedPublishingWorkflow />\n <TenantManager />\n <FoldersProvider />\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;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,iBAAkB,GAAE,EAAE,IAAAC,wBAAmB,GAAE,EAAEC,oBAAW,CAAC;EAEzF,oBACI,6BAAC,eAAS;IAAC,kBAAkB,EAAET;EAAmB,gBAC9C,6BAAC,kBAAI,OAAG,eACR,6BAAC,mBAAO,OAAG,eACX,6BAAC,qBAAQ,OAAG,eACZ,6BAAC,6CAAgB,OAAG,eACpB,6BAAC,sBAAY,OAAG,eAChB,6BAAC,2BAAW,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,eACf,6BAAC,2BAAW,OAAG,eACf,6BAAC,2BAAW;IAAC,kBAAkB,EAAEF;EAAmB,EAAG,eACvD,6BAAC,kCAA0B,OAAG,eAC9B,6BAAC,+BAAa,OAAG,eACjB,6BAAC,2BAAe,OAAG,EAClBD,KAAK,CAACW,QAAQ,CACP;AAEpB,CAAC;AAEM,IAAMC,KAAK,gBAAG,IAAAC,WAAI,EAAad,GAAG,CAAC;AAAC"}
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 { AdvancedPublishingWorkflow } from \"@webiny/app-apw\";\nimport { TenantManager } from \"@webiny/app-tenant-manager\";\nimport { FoldersProvider } from \"@webiny/app-folders\";\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 <AdvancedPublishingWorkflow />\n <TenantManager />\n <FoldersProvider />\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;;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,kCAAD,OAdJ,eAeI,6BAAC,+BAAD,OAfJ,eAgBI,6BAAC,2BAAD,OAhBJ,EAiBKD,KAAK,CAACW,QAjBX,CADJ;AAqBH,CA3BD;;AA6BO,IAAMC,KAAK,gBAAG,IAAAC,WAAA,EAAiBd,GAAjB,CAAd"}
@@ -1,17 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.createApolloClient = void 0;
9
+
8
10
  var _apolloClient = _interopRequireDefault(require("apollo-client"));
11
+
9
12
  var _apolloLink = require("apollo-link");
13
+
10
14
  var _apolloLinkBatchHttp = require("apollo-link-batch-http");
15
+
11
16
  var _InMemoryCache = require("@webiny/app/apollo-client/InMemoryCache");
17
+
12
18
  var _plugins = require("@webiny/plugins");
19
+
13
20
  var _ApolloDynamicLink = require("@webiny/app/plugins/ApolloDynamicLink");
21
+
14
22
  var _ApolloCacheObjectIdPlugin = require("@webiny/app/plugins/ApolloCacheObjectIdPlugin");
23
+
15
24
  var createApolloClient = function createApolloClient(_ref) {
16
25
  var uri = _ref.uri;
17
26
  return new _apolloClient.default({
@@ -34,19 +43,23 @@ var createApolloClient = function createApolloClient(_ref) {
34
43
  * we cannot rely on having an `id` field.
35
44
  */
36
45
  var getters = _plugins.plugins.byType(_ApolloCacheObjectIdPlugin.ApolloCacheObjectIdPlugin.type);
46
+
37
47
  for (var i = 0; i < getters.length; i++) {
38
48
  var id = getters[i].getObjectId(obj);
49
+
39
50
  if (typeof id !== "undefined") {
40
51
  return id;
41
52
  }
42
53
  }
43
-
44
54
  /**
45
55
  * As a fallback, try getting object's `id`.
46
56
  */
57
+
58
+
47
59
  return obj.id || null;
48
60
  }
49
61
  })
50
62
  });
51
63
  };
64
+
52
65
  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":";;;;;;;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"}
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.js CHANGED
@@ -4,9 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+
7
8
  var _ConsoleLinkPlugin = require("@webiny/app/plugins/ConsoleLinkPlugin");
9
+
8
10
  var _NetworkErrorLinkPlugin = require("@webiny/app/plugins/NetworkErrorLinkPlugin");
11
+
9
12
  var _OmitTypenameLinkPlugin = require("@webiny/app/plugins/OmitTypenameLinkPlugin");
13
+
10
14
  var _default = [
11
15
  /**
12
16
  * This link removes `__typename` from the variables being sent to the API.
@@ -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":";;;;;;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"}
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
@@ -273,8 +273,13 @@ Object.defineProperty(exports, "useUserMenuItem", {
273
273
  return _appAdmin.useUserMenuItem;
274
274
  }
275
275
  });
276
+
276
277
  var _Admin = require("./Admin");
278
+
277
279
  var _appAdmin = require("@webiny/app-admin");
280
+
278
281
  var _appSecurity = require("@webiny/app-security");
282
+
279
283
  var _appTenancy = require("@webiny/app-tenancy");
284
+
280
285
  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 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 createComponentPlugin,\n createProviderPlugin,\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;AAwDA;AAEA;AAGA"}
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 createComponentPlugin,\n createProviderPlugin,\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;;AAwDA;;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.990c3ab1b6",
3
+ "version": "0.0.0-unstable.d4f203fa97",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,26 +9,26 @@
9
9
  "author": "Webiny Ltd.",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@babel/runtime": "7.20.1",
12
+ "@babel/runtime": "7.19.0",
13
13
  "@emotion/core": "10.3.1",
14
- "@webiny/app": "0.0.0-unstable.990c3ab1b6",
15
- "@webiny/app-admin": "0.0.0-unstable.990c3ab1b6",
16
- "@webiny/app-admin-rmwc": "0.0.0-unstable.990c3ab1b6",
17
- "@webiny/app-apw": "0.0.0-unstable.990c3ab1b6",
18
- "@webiny/app-file-manager": "0.0.0-unstable.990c3ab1b6",
19
- "@webiny/app-file-manager-s3": "0.0.0-unstable.990c3ab1b6",
20
- "@webiny/app-folders": "0.0.0-unstable.990c3ab1b6",
21
- "@webiny/app-form-builder": "0.0.0-unstable.990c3ab1b6",
22
- "@webiny/app-graphql-playground": "0.0.0-unstable.990c3ab1b6",
23
- "@webiny/app-headless-cms": "0.0.0-unstable.990c3ab1b6",
24
- "@webiny/app-i18n": "0.0.0-unstable.990c3ab1b6",
25
- "@webiny/app-i18n-content": "0.0.0-unstable.990c3ab1b6",
26
- "@webiny/app-page-builder": "0.0.0-unstable.990c3ab1b6",
27
- "@webiny/app-security": "0.0.0-unstable.990c3ab1b6",
28
- "@webiny/app-security-access-management": "0.0.0-unstable.990c3ab1b6",
29
- "@webiny/app-tenancy": "0.0.0-unstable.990c3ab1b6",
30
- "@webiny/app-tenant-manager": "0.0.0-unstable.990c3ab1b6",
31
- "@webiny/plugins": "0.0.0-unstable.990c3ab1b6",
14
+ "@webiny/app": "0.0.0-unstable.d4f203fa97",
15
+ "@webiny/app-admin": "0.0.0-unstable.d4f203fa97",
16
+ "@webiny/app-admin-rmwc": "0.0.0-unstable.d4f203fa97",
17
+ "@webiny/app-apw": "0.0.0-unstable.d4f203fa97",
18
+ "@webiny/app-file-manager": "0.0.0-unstable.d4f203fa97",
19
+ "@webiny/app-file-manager-s3": "0.0.0-unstable.d4f203fa97",
20
+ "@webiny/app-folders": "0.0.0-unstable.d4f203fa97",
21
+ "@webiny/app-form-builder": "0.0.0-unstable.d4f203fa97",
22
+ "@webiny/app-graphql-playground": "0.0.0-unstable.d4f203fa97",
23
+ "@webiny/app-headless-cms": "0.0.0-unstable.d4f203fa97",
24
+ "@webiny/app-i18n": "0.0.0-unstable.d4f203fa97",
25
+ "@webiny/app-i18n-content": "0.0.0-unstable.d4f203fa97",
26
+ "@webiny/app-page-builder": "0.0.0-unstable.d4f203fa97",
27
+ "@webiny/app-security": "0.0.0-unstable.d4f203fa97",
28
+ "@webiny/app-security-access-management": "0.0.0-unstable.d4f203fa97",
29
+ "@webiny/app-tenancy": "0.0.0-unstable.d4f203fa97",
30
+ "@webiny/app-tenant-manager": "0.0.0-unstable.d4f203fa97",
31
+ "@webiny/plugins": "0.0.0-unstable.d4f203fa97",
32
32
  "apollo-cache": "1.3.5",
33
33
  "apollo-client": "2.6.10",
34
34
  "apollo-link": "1.2.14",
@@ -43,8 +43,8 @@
43
43
  "@babel/preset-env": "^7.19.4",
44
44
  "@babel/preset-react": "^7.0.0",
45
45
  "@babel/preset-typescript": "^7.18.6",
46
- "@webiny/cli": "^0.0.0-unstable.990c3ab1b6",
47
- "@webiny/project-utils": "^0.0.0-unstable.990c3ab1b6",
46
+ "@webiny/cli": "^0.0.0-unstable.d4f203fa97",
47
+ "@webiny/project-utils": "^0.0.0-unstable.d4f203fa97",
48
48
  "babel-plugin-emotion": "^9.2.8",
49
49
  "babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
50
50
  "rimraf": "^3.0.2",
@@ -64,5 +64,5 @@
64
64
  "removeViewBox": false
65
65
  }
66
66
  },
67
- "gitHead": "87e7b4d0a643f65b31d029d6bf2a81902fb940a8"
67
+ "gitHead": "d4f203fa97feba84cd90ccb002963fca40d9b677"
68
68
  }