@webiny/app-serverless-cms 5.41.4-beta.6 → 5.42.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 +2 -1
- package/Admin.js.map +1 -1
- package/apolloClientFactory.js.map +1 -1
- package/package.json +31 -36
package/Admin.js
CHANGED
|
@@ -35,6 +35,7 @@ var _appAco = require("@webiny/app-aco");
|
|
|
35
35
|
var _appWebsockets = require("@webiny/app-websockets");
|
|
36
36
|
var _appRecordLocking = require("@webiny/app-record-locking");
|
|
37
37
|
var _appTrashBin = require("@webiny/app-trash-bin");
|
|
38
|
+
var _admin = require("@webiny/app-dynamic-pages/admin");
|
|
38
39
|
var App = function App(props) {
|
|
39
40
|
var createApolloClient = props.createApolloClient || _apolloClientFactory.createApolloClient;
|
|
40
41
|
var ViewCompositionProvider = (0, _ViewCompositionProvider.createViewCompositionProvider)();
|
|
@@ -47,7 +48,7 @@ var App = function App(props) {
|
|
|
47
48
|
hoc: ViewCompositionProvider
|
|
48
49
|
}), /*#__PURE__*/_react.default.createElement(_appWebsockets.Websockets, null), /*#__PURE__*/_react.default.createElement(_appRecordLocking.RecordLocking, null), /*#__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, {
|
|
49
50
|
createApolloClient: createApolloClient
|
|
50
|
-
}), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(_appAuditLogs.AuditLogs, null), /*#__PURE__*/_react.default.createElement(_appMailer.Module, null), /*#__PURE__*/_react.default.createElement(_appTrashBin.TrashBinConfigs, null), props.children);
|
|
51
|
+
}), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(_appAuditLogs.AuditLogs, null), /*#__PURE__*/_react.default.createElement(_appMailer.Module, null), /*#__PURE__*/_react.default.createElement(_appTrashBin.TrashBinConfigs, null), /*#__PURE__*/_react.default.createElement(_admin.DynamicPages, null), props.children);
|
|
51
52
|
};
|
|
52
53
|
var Admin = exports.Admin = /*#__PURE__*/(0, _react.memo)(App);
|
|
53
54
|
|
package/Admin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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","_appAuditLogs","_lexicalEditorPbElement","_lexicalEditorActions","_appMailer","_appAco","_appWebsockets","_appRecordLocking","_appTrashBin","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","Websockets","RecordLocking","PageBuilder","LexicalEditorPlugin","LexicalEditorActions","FormBuilder","HeadlessCMS","AdvancedPublishingWorkflow","TenantManager","AuditLogs","Module","TrashBinConfigs","children","exports","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 { AuditLogs } from \"@webiny/app-audit-logs\";\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 { Websockets } from \"@webiny/app-websockets\";\nimport { RecordLocking } from \"@webiny/app-record-locking\";\nimport { TrashBinConfigs } from \"@webiny/app-trash-bin\";\n\nexport interface AdminProps extends Omit<BaseAdminProps, \"createApolloClient\"> {\n createApolloClient?: BaseAdminProps[\"createApolloClient\"];\n children?: React.ReactNode;\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 <Websockets />\n <RecordLocking />\n <PageBuilder />\n <LexicalEditorPlugin />\n <LexicalEditorActions />\n <FormBuilder />\n <HeadlessCMS createApolloClient={createApolloClient} />\n <AdvancedPublishingWorkflow />\n <TenantManager />\n <AuditLogs />\n <MailerSettings />\n <TrashBinConfigs />\n {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAMA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,IAAA,GAAAX,OAAA;AACA,IAAAY,qBAAA,GAAAZ,OAAA;AACA,IAAAa,4BAAA,GAAAb,OAAA;AACA,IAAAc,SAAA,GAAAd,OAAA;AACA,IAAAe,gBAAA,GAAAC,sBAAA,CAAAhB,OAAA;AACA,IAAAiB,oBAAA,GAAAjB,OAAA;AACA,IAAAkB,YAAA,GAAAF,sBAAA,CAAAhB,OAAA;AACA,IAAAmB,wBAAA,GAAAnB,OAAA;AACA,IAAAoB,OAAA,GAAApB,OAAA;AACA,IAAAqB,iBAAA,GAAArB,OAAA;AACA,IAAAsB,aAAA,GAAAtB,OAAA;AACA,IAAAuB,uBAAA,GAAAvB,OAAA;AACA,IAAAwB,qBAAA,GAAAxB,OAAA;AACA,IAAAyB,UAAA,GAAAzB,OAAA;AACA,IAAA0B,OAAA,GAAA1B,OAAA;AACA,IAAA2B,cAAA,GAAA3B,OAAA;AACA,IAAA4B,iBAAA,GAAA5B,OAAA;AACA,IAAA6B,YAAA,GAAA7B,OAAA;AAOA,
|
|
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","_appAuditLogs","_lexicalEditorPbElement","_lexicalEditorActions","_appMailer","_appAco","_appWebsockets","_appRecordLocking","_appTrashBin","_admin","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","Websockets","RecordLocking","PageBuilder","LexicalEditorPlugin","LexicalEditorActions","FormBuilder","HeadlessCMS","AdvancedPublishingWorkflow","TenantManager","AuditLogs","Module","TrashBinConfigs","DynamicPages","children","exports","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 { AuditLogs } from \"@webiny/app-audit-logs\";\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 { Websockets } from \"@webiny/app-websockets\";\nimport { RecordLocking } from \"@webiny/app-record-locking\";\nimport { TrashBinConfigs } from \"@webiny/app-trash-bin\";\nimport { DynamicPages } from \"@webiny/app-dynamic-pages/admin\";\n\nexport interface AdminProps extends Omit<BaseAdminProps, \"createApolloClient\"> {\n createApolloClient?: BaseAdminProps[\"createApolloClient\"];\n children?: React.ReactNode;\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 <Websockets />\n <RecordLocking />\n <PageBuilder />\n <LexicalEditorPlugin />\n <LexicalEditorActions />\n <FormBuilder />\n <HeadlessCMS createApolloClient={createApolloClient} />\n <AdvancedPublishingWorkflow />\n <TenantManager />\n <AuditLogs />\n <MailerSettings />\n <TrashBinConfigs />\n <DynamicPages />\n {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAMA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,IAAA,GAAAX,OAAA;AACA,IAAAY,qBAAA,GAAAZ,OAAA;AACA,IAAAa,4BAAA,GAAAb,OAAA;AACA,IAAAc,SAAA,GAAAd,OAAA;AACA,IAAAe,gBAAA,GAAAC,sBAAA,CAAAhB,OAAA;AACA,IAAAiB,oBAAA,GAAAjB,OAAA;AACA,IAAAkB,YAAA,GAAAF,sBAAA,CAAAhB,OAAA;AACA,IAAAmB,wBAAA,GAAAnB,OAAA;AACA,IAAAoB,OAAA,GAAApB,OAAA;AACA,IAAAqB,iBAAA,GAAArB,OAAA;AACA,IAAAsB,aAAA,GAAAtB,OAAA;AACA,IAAAuB,uBAAA,GAAAvB,OAAA;AACA,IAAAwB,qBAAA,GAAAxB,OAAA;AACA,IAAAyB,UAAA,GAAAzB,OAAA;AACA,IAAA0B,OAAA,GAAA1B,OAAA;AACA,IAAA2B,cAAA,GAAA3B,OAAA;AACA,IAAA4B,iBAAA,GAAA5B,OAAA;AACA,IAAA6B,YAAA,GAAA7B,OAAA;AACA,IAAA8B,MAAA,GAAA9B,OAAA;AAOA,IAAM+B,GAAG,GAAG,SAANA,GAAGA,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B,CAAC;AAEM,IAAM1B,KAAK,GAAA2B,OAAA,CAAA3B,KAAA,gBAAG,IAAA4B,WAAI,EAAazC,GAAG,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_apolloClient","_interopRequireDefault","require","_apolloLink","_apolloLinkBatchHttp","_InMemoryCache","_plugins","_ApolloDynamicLink","_ApolloCacheObjectIdPlugin","_IntrospectionFragmentMatcher","createApolloClient","exports","_ref","uri","batching","fragmentMatcher","IntrospectionFragmentMatcher","introspectionQueryResultData","__schema","types","ApolloClient","link","ApolloLink","from","ApolloDynamicLink","BatchHttpLink","_objectSpread2","default","credentials","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\";\nimport { IntrospectionFragmentMatcher } from \"@webiny/app/apollo-client/IntrospectionFragmentMatcher\";\n\nexport interface CreateApolloClientParams {\n uri: string;\n batching?: Pick<BatchHttpLink.Options, \"batchMax\" | \"batchInterval\" | \"batchKey\">;\n}\n\nexport const createApolloClient = ({ uri, batching }: CreateApolloClientParams) => {\n const fragmentMatcher = new IntrospectionFragmentMatcher({\n introspectionQueryResultData: {\n __schema: {\n types: []\n }\n }\n });\n\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 * `credentials: \"include\"` is necessary to attach cookies to requests.\n */\n new BatchHttpLink({ uri, credentials: \"include\", ...batching })\n ]),\n cache: new InMemoryCache({\n addTypename: true,\n fragmentMatcher,\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;AACA,IAAAO,6BAAA,GAAAP,OAAA;AAOO,IAAMQ,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,SAArBA,kBAAkBA,CAAAE,IAAA,EAAoD;EAAA,IAA9CC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;EAC9C,IAAMC,eAAe,GAAG,IAAIC,0DAA4B,CAAC;IACrDC,4BAA4B,EAAE;MAC1BC,QAAQ,EAAE;QACNC,KAAK,EAAE;MACX;IACJ;EACJ,CAAC,CAAC;EAEF,OAAO,IAAIC,qBAAY,CAAC;IACpBC,IAAI,EAAEC,sBAAU,CAACC,IAAI,CAAC;IAClB;AACZ;AACA;IACY,IAAIC,oCAAiB,CAAC,CAAC;IACvB;AACZ;AACA;AACA;IACY,IAAIC,kCAAa,KAAAC,cAAA,CAAAC,OAAA;MAAGd,GAAG,EAAHA,GAAG;MAAEe,WAAW,EAAE;IAAS,GAAKd,QAAQ,CAAE,CAAC,CAClE,CAAC;IACFe,KAAK,EAAE,IAAIC,4BAAa,CAAC;MACrBC,WAAW,EAAE,IAAI;MACjBhB,eAAe,EAAfA,eAAe;MACfiB,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"names":["_apolloClient","_interopRequireDefault","require","_apolloLink","_apolloLinkBatchHttp","_InMemoryCache","_plugins","_ApolloDynamicLink","_ApolloCacheObjectIdPlugin","_IntrospectionFragmentMatcher","createApolloClient","exports","_ref","uri","batching","fragmentMatcher","IntrospectionFragmentMatcher","introspectionQueryResultData","__schema","types","ApolloClient","link","ApolloLink","from","ApolloDynamicLink","BatchHttpLink","_objectSpread2","default","credentials","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\";\nimport { IntrospectionFragmentMatcher } from \"@webiny/app/apollo-client/IntrospectionFragmentMatcher\";\n\nexport interface CreateApolloClientParams {\n uri: string;\n batching?: Pick<BatchHttpLink.Options, \"batchMax\" | \"batchInterval\" | \"batchKey\">;\n}\n\nexport const createApolloClient = ({ uri, batching }: CreateApolloClientParams) => {\n const fragmentMatcher = new IntrospectionFragmentMatcher({\n introspectionQueryResultData: {\n __schema: {\n types: []\n }\n }\n });\n\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 * `credentials: \"include\"` is necessary to attach cookies to requests.\n */\n new BatchHttpLink({ uri, credentials: \"include\", ...batching })\n ]),\n cache: new InMemoryCache({\n addTypename: true,\n fragmentMatcher,\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;AACA,IAAAO,6BAAA,GAAAP,OAAA;AAOO,IAAMQ,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,SAArBA,kBAAkBA,CAAAE,IAAA,EAAoD;EAAA,IAA9CC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;EAC9C,IAAMC,eAAe,GAAG,IAAIC,0DAA4B,CAAC;IACrDC,4BAA4B,EAAE;MAC1BC,QAAQ,EAAE;QACNC,KAAK,EAAE;MACX;IACJ;EACJ,CAAC,CAAC;EAEF,OAAO,IAAIC,qBAAY,CAAC;IACpBC,IAAI,EAAEC,sBAAU,CAACC,IAAI,CAAC;IAClB;AACZ;AACA;IACY,IAAIC,oCAAiB,CAAC,CAAC;IACvB;AACZ;AACA;AACA;IACY,IAAIC,kCAAa,KAAAC,cAAA,CAAAC,OAAA;MAAGd,GAAG,EAAHA,GAAG;MAAEe,WAAW,EAAE;IAAS,GAAKd,QAAQ,CAAE,CAAC,CAClE,CAAC;IACFe,KAAK,EAAE,IAAIC,4BAAa,CAAC;MACrBC,WAAW,EAAE,IAAI;MACjBhB,eAAe,EAAfA,eAAe;MACfiB,gBAAgB,EAAE,SAAlBA,gBAAgBA,CAAEC,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","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-serverless-cms",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.42.0-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,33 +9,33 @@
|
|
|
9
9
|
"author": "Webiny Ltd.",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@babel/runtime": "7.24.1",
|
|
13
12
|
"@emotion/react": "11.10.8",
|
|
14
|
-
"@webiny/app": "5.
|
|
15
|
-
"@webiny/app-aco": "5.
|
|
16
|
-
"@webiny/app-admin": "5.
|
|
17
|
-
"@webiny/app-admin-rmwc": "5.
|
|
18
|
-
"@webiny/app-apw": "5.
|
|
19
|
-
"@webiny/app-audit-logs": "5.
|
|
20
|
-
"@webiny/app-
|
|
21
|
-
"@webiny/app-file-manager
|
|
22
|
-
"@webiny/app-
|
|
23
|
-
"@webiny/app-
|
|
24
|
-
"@webiny/app-
|
|
25
|
-
"@webiny/app-
|
|
26
|
-
"@webiny/app-i18n
|
|
27
|
-
"@webiny/app-
|
|
28
|
-
"@webiny/app-
|
|
29
|
-
"@webiny/app-
|
|
30
|
-
"@webiny/app-
|
|
31
|
-
"@webiny/app-security
|
|
32
|
-
"@webiny/app-
|
|
33
|
-
"@webiny/app-
|
|
34
|
-
"@webiny/app-
|
|
35
|
-
"@webiny/app-
|
|
36
|
-
"@webiny/
|
|
37
|
-
"@webiny/lexical-editor-
|
|
38
|
-
"@webiny/
|
|
13
|
+
"@webiny/app": "5.42.0-beta.0",
|
|
14
|
+
"@webiny/app-aco": "5.42.0-beta.0",
|
|
15
|
+
"@webiny/app-admin": "5.42.0-beta.0",
|
|
16
|
+
"@webiny/app-admin-rmwc": "5.42.0-beta.0",
|
|
17
|
+
"@webiny/app-apw": "5.42.0-beta.0",
|
|
18
|
+
"@webiny/app-audit-logs": "5.42.0-beta.0",
|
|
19
|
+
"@webiny/app-dynamic-pages": "5.42.0-beta.0",
|
|
20
|
+
"@webiny/app-file-manager": "5.42.0-beta.0",
|
|
21
|
+
"@webiny/app-file-manager-s3": "5.42.0-beta.0",
|
|
22
|
+
"@webiny/app-form-builder": "5.42.0-beta.0",
|
|
23
|
+
"@webiny/app-graphql-playground": "5.42.0-beta.0",
|
|
24
|
+
"@webiny/app-headless-cms": "5.42.0-beta.0",
|
|
25
|
+
"@webiny/app-i18n": "5.42.0-beta.0",
|
|
26
|
+
"@webiny/app-i18n-content": "5.42.0-beta.0",
|
|
27
|
+
"@webiny/app-mailer": "5.42.0-beta.0",
|
|
28
|
+
"@webiny/app-page-builder": "5.42.0-beta.0",
|
|
29
|
+
"@webiny/app-record-locking": "5.42.0-beta.0",
|
|
30
|
+
"@webiny/app-security": "5.42.0-beta.0",
|
|
31
|
+
"@webiny/app-security-access-management": "5.42.0-beta.0",
|
|
32
|
+
"@webiny/app-tenancy": "5.42.0-beta.0",
|
|
33
|
+
"@webiny/app-tenant-manager": "5.42.0-beta.0",
|
|
34
|
+
"@webiny/app-trash-bin": "5.42.0-beta.0",
|
|
35
|
+
"@webiny/app-websockets": "5.42.0-beta.0",
|
|
36
|
+
"@webiny/lexical-editor-actions": "5.42.0-beta.0",
|
|
37
|
+
"@webiny/lexical-editor-pb-element": "5.42.0-beta.0",
|
|
38
|
+
"@webiny/plugins": "5.42.0-beta.0",
|
|
39
39
|
"apollo-cache": "1.3.5",
|
|
40
40
|
"apollo-client": "2.6.10",
|
|
41
41
|
"apollo-link": "1.2.14",
|
|
@@ -45,16 +45,11 @@
|
|
|
45
45
|
"react-dom": "18.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@babel/cli": "7.24.1",
|
|
49
|
-
"@babel/core": "7.24.3",
|
|
50
|
-
"@babel/preset-env": "7.24.3",
|
|
51
|
-
"@babel/preset-react": "7.24.1",
|
|
52
|
-
"@babel/preset-typescript": "7.24.1",
|
|
53
48
|
"@emotion/babel-plugin": "11.11.0",
|
|
54
|
-
"@webiny/cli": "5.
|
|
55
|
-
"@webiny/project-utils": "5.
|
|
49
|
+
"@webiny/cli": "5.42.0-beta.0",
|
|
50
|
+
"@webiny/project-utils": "5.42.0-beta.0",
|
|
56
51
|
"babel-plugin-named-asset-import": "1.0.0-next.fb6e6f70",
|
|
57
|
-
"rimraf": "
|
|
52
|
+
"rimraf": "6.0.1",
|
|
58
53
|
"ttypescript": "1.5.15",
|
|
59
54
|
"typescript": "4.9.5"
|
|
60
55
|
},
|
|
@@ -71,5 +66,5 @@
|
|
|
71
66
|
"removeViewBox": false
|
|
72
67
|
}
|
|
73
68
|
},
|
|
74
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "ebf90f62ed3f28114ffdb012b7e5f80988af53d3"
|
|
75
70
|
}
|