@webiny/app-serverless-cms 5.36.2 → 5.37.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Admin.js CHANGED
@@ -31,20 +31,19 @@ var _lexicalEditorPbElement = require("@webiny/lexical-editor-pb-element");
31
31
  var _lexicalEditorActions = require("@webiny/lexical-editor-actions");
32
32
  var _appMailer = require("@webiny/app-mailer");
33
33
  var _appAco = require("@webiny/app-aco");
34
- var _utils = require("@webiny/app-page-builder/utils");
35
34
  var App = function App(props) {
36
35
  var createApolloClient = props.createApolloClient || _apolloClientFactory.createApolloClient;
37
36
  var ViewCompositionProvider = (0, _ViewCompositionProvider.createViewCompositionProvider)();
38
37
  _plugins.plugins.register((0, _plugins2.imagePlugin)(), (0, _appFileManagerS.default)(), _apolloLinks.default);
39
38
  return /*#__PURE__*/_react.default.createElement(_appAdmin.Admin, {
40
39
  createApolloClient: createApolloClient
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(_app.FileManager, null), /*#__PURE__*/_react.default.createElement(_appGraphqlPlayground.GraphQLPlayground, {
40
+ }, /*#__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, {
42
41
  createApolloClient: createApolloClient
43
42
  }), /*#__PURE__*/_react.default.createElement(_appI18n.I18N, null), /*#__PURE__*/_react.default.createElement(_appI18nContent.I18NContent, null), /*#__PURE__*/_react.default.createElement(_appAdmin.Provider, {
44
43
  hoc: ViewCompositionProvider
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, {
44
+ }), /*#__PURE__*/_react.default.createElement(_appPageBuilder.PageBuilder, null), /*#__PURE__*/_react.default.createElement(_lexicalEditorPbElement.LexicalEditorPlugin, null), /*#__PURE__*/_react.default.createElement(_lexicalEditorActions.LexicalEditorActions, null), /*#__PURE__*/_react.default.createElement(_appFormBuilder.FormBuilder, null), /*#__PURE__*/_react.default.createElement(_appHeadlessCms.HeadlessCMS, {
46
45
  createApolloClient: createApolloClient
47
- }), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(_appMailer.Module, null), /*#__PURE__*/_react.default.createElement(_appAco.ACOProvider, null), props.children);
46
+ }), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(_appMailer.Module, null), props.children);
48
47
  };
49
48
  var Admin = /*#__PURE__*/(0, _react.memo)(App);
50
49
  exports.Admin = Admin;
package/Admin.js.map CHANGED
@@ -1 +1 @@
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 { ACOProvider } 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 <FileManager />\n <GraphQLPlayground createApolloClient={createApolloClient} />\n <I18N />\n <I18NContent />\n <Provider hoc={ViewCompositionProvider} />\n <PageBuilder />\n\n {!isLegacyRenderingEngine && <LexicalEditorPlugin />}\n {!isLegacyRenderingEngine && <LexicalEditorActions />}\n\n <FormBuilder />\n <HeadlessCMS createApolloClient={createApolloClient} />\n <AdvancedPublishingWorkflow />\n <TenantManager />\n <MailerSettings />\n <ACOProvider />\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,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,EAEd,CAACO,8BAAuB,iBAAI,6BAAC,2CAAmB,OAAG,EACnD,CAACA,8BAAuB,iBAAI,6BAAC,0CAAoB,OAAG,eAErD,6BAAC,2BAAW,OAAG,eACf,6BAAC,2BAAW;IAAC,kBAAkB,EAAET;EAAmB,EAAG,eACvD,6BAAC,kCAA0B,OAAG,eAC9B,6BAAC,+BAAa,OAAG,eACjB,6BAAC,iBAAc,OAAG,eAClB,6BAAC,mBAAW,OAAG,EACdD,KAAK,CAACW,QAAQ,CACP;AAEpB,CAAC;AAEM,IAAMC,KAAK,gBAAG,IAAAC,WAAI,EAAad,GAAG,CAAC;AAAC"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_plugins","_appAdmin","_appTenancy","_appSecurity","_appI18n","_appI18nContent","_appPageBuilder","_appFormBuilder","_appHeadlessCms","_appAdminRmwc","_app","_appGraphqlPlayground","_appSecurityAccessManagement","_plugins2","_appFileManagerS","_interopRequireDefault","_apolloClientFactory","_apolloLinks","_ViewCompositionProvider","_appApw","_appTenantManager","_lexicalEditorPbElement","_lexicalEditorActions","_appMailer","_appAco","App","props","createApolloClient","defaultApolloClientFactory","ViewCompositionProvider","createViewCompositionProvider","plugins","register","imagePlugin","fileStorageS3Plugin","apolloLinks","default","createElement","Admin","RMWC","Tenancy","Security","AccessManagement","AppInstaller","Folders","FileManager","GraphQLPlayground","I18N","I18NContent","Provider","hoc","PageBuilder","LexicalEditorPlugin","LexicalEditorActions","FormBuilder","HeadlessCMS","AdvancedPublishingWorkflow","TenantManager","Module","children","memo","exports"],"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\";\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 <LexicalEditorPlugin />\n <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":"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"}
@@ -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":["_apolloClient","_interopRequireDefault","require","_apolloLink","_apolloLinkBatchHttp","_InMemoryCache","_plugins","_ApolloDynamicLink","_ApolloCacheObjectIdPlugin","createApolloClient","_ref","uri","ApolloClient","link","ApolloLink","from","ApolloDynamicLink","BatchHttpLink","cache","InMemoryCache","addTypename","dataIdFromObject","obj","getters","plugins","byType","ApolloCacheObjectIdPlugin","type","i","length","id","getObjectId","exports"],"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,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,0BAAA,GAAAN,OAAA;AAKO,IAAMO,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAA0C;EAAA,IAApCC,GAAG,GAAAD,IAAA,CAAHC,GAAG;EACpC,OAAO,IAAIC,qBAAY,CAAC;IACpBC,IAAI,EAAEC,sBAAU,CAACC,IAAI,CAAC;IAClB;AACZ;AACA;IACY,IAAIC,oCAAiB,CAAC,CAAC;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,SAAAA,iBAAAC,GAAG,EAAI;QACrB;AAChB;AACA;AACA;QACgB,IAAMC,OAAO,GAAGC,gBAAO,CAACC,MAAM,CAC1BC,oDAAyB,CAACC,IAC9B,CAAC;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;AAACE,OAAA,CAAAvB,kBAAA,GAAAA,kBAAA"}
@@ -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":["_ConsoleLinkPlugin","require","_NetworkErrorLinkPlugin","_OmitTypenameLinkPlugin","_default","OmitTypenameLinkPlugin","ConsoleLinkPlugin","NetworkErrorLinkPlugin","exports","default"],"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,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AAAoF,IAAAG,QAAA,GAErE;AACX;AACJ;AACA;AACI,IAAIC,8CAAsB,CAAC,CAAC;AAC5B;AACJ;AACA;AACI,IAAIC,oCAAiB,CAAC,CAAC;AACvB;AACJ;AACA;AACI,IAAIC,8CAAsB,CAAC,CAAC,CAC/B;AAAAC,OAAA,CAAAC,OAAA,GAAAL,QAAA"}
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Admin } from "./Admin";
2
2
  export type { AdminProps } from "./Admin";
3
- export { useApp, useUserMenuItem, useUserMenu, useMenuItem, useNavigation, useTags, AddLogo, AddMenu, AddRoute, AddUserMenuItem, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, LocaleSelector, LocaleSelectorRenderer, Brand, BrandRenderer, Provider, Compose, Plugins, Plugin, makeComposable, createComponentPlugin, createProviderPlugin, createProvider, MenuItem, MenuItemRenderer, MenuItems, Navigation, NavigationRenderer, Tags, UserMenu, UserMenuHandle, UserMenuHandleRenderer, UserMenuItems, UserMenuItem, UserMenuItemRenderer, AddGraphQLQuerySelection } from "@webiny/app-admin";
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() {
@@ -285,6 +291,12 @@ Object.defineProperty(exports, "useUserMenuItem", {
285
291
  return _appAdmin.useUserMenuItem;
286
292
  }
287
293
  });
294
+ Object.defineProperty(exports, "useWcp", {
295
+ enumerable: true,
296
+ get: function get() {
297
+ return _appAdmin.useWcp;
298
+ }
299
+ });
288
300
  var _Admin = require("./Admin");
289
301
  var _appAdmin = require("@webiny/app-admin");
290
302
  var _appSecurity = require("@webiny/app-security");
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 useApp,\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 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;AA0DA;AAEA;AAGA"}
1
+ {"version":3,"names":["_Admin","require","_appAdmin","_appSecurity","_appTenancy","_appPageBuilder"],"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,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AA4DA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,eAAA,GAAAJ,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-serverless-cms",
3
- "version": "5.36.2",
3
+ "version": "5.37.0-beta.1",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,29 +9,29 @@
9
9
  "author": "Webiny Ltd.",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@babel/runtime": "7.20.13",
12
+ "@babel/runtime": "7.22.6",
13
13
  "@emotion/react": "11.10.8",
14
- "@webiny/app": "5.36.2",
15
- "@webiny/app-aco": "5.36.2",
16
- "@webiny/app-admin": "5.36.2",
17
- "@webiny/app-admin-rmwc": "5.36.2",
18
- "@webiny/app-apw": "5.36.2",
19
- "@webiny/app-file-manager": "5.36.2",
20
- "@webiny/app-file-manager-s3": "5.36.2",
21
- "@webiny/app-form-builder": "5.36.2",
22
- "@webiny/app-graphql-playground": "5.36.2",
23
- "@webiny/app-headless-cms": "5.36.2",
24
- "@webiny/app-i18n": "5.36.2",
25
- "@webiny/app-i18n-content": "5.36.2",
26
- "@webiny/app-mailer": "5.36.2",
27
- "@webiny/app-page-builder": "5.36.2",
28
- "@webiny/app-security": "5.36.2",
29
- "@webiny/app-security-access-management": "5.36.2",
30
- "@webiny/app-tenancy": "5.36.2",
31
- "@webiny/app-tenant-manager": "5.36.2",
32
- "@webiny/lexical-editor-actions": "5.36.2",
33
- "@webiny/lexical-editor-pb-element": "5.36.2",
34
- "@webiny/plugins": "5.36.2",
14
+ "@webiny/app": "5.37.0-beta.1",
15
+ "@webiny/app-aco": "5.37.0-beta.1",
16
+ "@webiny/app-admin": "5.37.0-beta.1",
17
+ "@webiny/app-admin-rmwc": "5.37.0-beta.1",
18
+ "@webiny/app-apw": "5.37.0-beta.1",
19
+ "@webiny/app-file-manager": "5.37.0-beta.1",
20
+ "@webiny/app-file-manager-s3": "5.37.0-beta.1",
21
+ "@webiny/app-form-builder": "5.37.0-beta.1",
22
+ "@webiny/app-graphql-playground": "5.37.0-beta.1",
23
+ "@webiny/app-headless-cms": "5.37.0-beta.1",
24
+ "@webiny/app-i18n": "5.37.0-beta.1",
25
+ "@webiny/app-i18n-content": "5.37.0-beta.1",
26
+ "@webiny/app-mailer": "5.37.0-beta.1",
27
+ "@webiny/app-page-builder": "5.37.0-beta.1",
28
+ "@webiny/app-security": "5.37.0-beta.1",
29
+ "@webiny/app-security-access-management": "5.37.0-beta.1",
30
+ "@webiny/app-tenancy": "5.37.0-beta.1",
31
+ "@webiny/app-tenant-manager": "5.37.0-beta.1",
32
+ "@webiny/lexical-editor-actions": "5.37.0-beta.1",
33
+ "@webiny/lexical-editor-pb-element": "5.37.0-beta.1",
34
+ "@webiny/plugins": "5.37.0-beta.1",
35
35
  "apollo-cache": "1.3.5",
36
36
  "apollo-client": "2.6.10",
37
37
  "apollo-link": "1.2.14",
@@ -41,13 +41,13 @@
41
41
  "react-dom": "17.0.2"
42
42
  },
43
43
  "devDependencies": {
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": "5.36.2",
50
- "@webiny/project-utils": "5.36.2",
44
+ "@babel/cli": "7.22.6",
45
+ "@babel/core": "7.22.8",
46
+ "@babel/preset-env": "7.22.7",
47
+ "@babel/preset-react": "7.22.5",
48
+ "@babel/preset-typescript": "7.22.5",
49
+ "@webiny/cli": "5.37.0-beta.1",
50
+ "@webiny/project-utils": "5.37.0-beta.1",
51
51
  "babel-plugin-emotion": "9.2.11",
52
52
  "babel-plugin-named-asset-import": "1.0.0-next.fb6e6f70",
53
53
  "rimraf": "3.0.2",
@@ -67,5 +67,5 @@
67
67
  "removeViewBox": false
68
68
  }
69
69
  },
70
- "gitHead": "908c591cd08d81da267ed6152e880b52e1157c8b"
70
+ "gitHead": "176c29425477d1daaca1b7da79bacc79a1d35f6e"
71
71
  }