@webiny/app-serverless-cms 6.4.5 → 6.6.0-alpha.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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { AdminProps as BaseAdminProps } from "@webiny/app-admin";
3
- export interface AdminProps extends Omit<BaseAdminProps, "createApolloClient" | "createLegacyPlugins"> {
3
+ export interface AdminProps extends Omit<BaseAdminProps, "createLegacyPlugins"> {
4
4
  children?: React.ReactNode;
5
5
  }
6
6
  export declare const Admin: React.NamedExoticComponent<AdminProps>;
package/Admin.js CHANGED
@@ -5,41 +5,30 @@ import { AdminUI } from "@webiny/app-admin-ui";
5
5
  import { FileManager } from "@webiny/app-file-manager/app.js";
6
6
  import { GraphQLPlayground } from "@webiny/app-graphql-playground";
7
7
  import { SdkPlayground } from "@webiny/app-sdk-playground";
8
- import { AccessManagement } from "@webiny/app-security-access-management";
9
8
  import { imagePlugin } from "@webiny/app/plugins/index.js";
10
- import app_file_manager_s3 from "@webiny/app-file-manager-s3";
11
- import { createApolloClient } from "./apolloClientFactory.js";
12
- import apolloLinks from "./apolloLinks.js";
13
9
  import { AuditLogs } from "@webiny/app-audit-logs";
14
10
  import { LexicalEditorActions } from "@webiny/lexical-editor-actions";
15
- import { Module } from "@webiny/app-mailer";
11
+ import { Extension } from "@webiny/app-mailer";
16
12
  import { Websockets } from "@webiny/app-websockets";
17
13
  import { RecordLocking } from "@webiny/app-record-locking";
18
- import { TrashBinConfigs } from "@webiny/app-trash-bin";
14
+ import { TrashBinConfigs } from "@webiny/app-admin/presentation/trashBin/index.js";
19
15
  import { AdvancedContentOrganisation } from "@webiny/app-aco";
20
- import { Extension } from "@webiny/app-website-builder/Extension.js";
21
- import { SchedulerConfigs } from "@webiny/app-scheduler";
16
+ import { Extension as Extension_js_Extension } from "@webiny/app-website-builder/Extension.js";
17
+ import { SchedulerModule } from "@webiny/app-scheduler";
22
18
  import { CmsScheduler } from "@webiny/app-headless-cms-scheduler";
23
- import { Components } from "@webiny/app-workflows";
19
+ import { WorkflowsAdminApp } from "@webiny/app-workflows";
24
20
  import { CmsWorkflows } from "@webiny/app-headless-cms-workflows";
25
21
  import { WebsiteBuilderWorkflows } from "@webiny/app-website-builder-workflows";
26
22
  import { WbScheduler } from "@webiny/app-website-builder-scheduler";
27
23
  import { Webhooks } from "@webiny/webhooks/admin";
28
24
  import { BackgroundTasks } from "@webiny/background-tasks/admin";
29
25
  const App = (props)=>{
30
- const createLegacyPlugins = (container)=>[
31
- imagePlugin(),
32
- app_file_manager_s3(),
33
- apolloLinks(container)
26
+ const createLegacyPlugins = (_container)=>[
27
+ imagePlugin()
34
28
  ];
35
29
  return /*#__PURE__*/ react.createElement(Admin, {
36
- createApolloClient: createApolloClient,
37
30
  createLegacyPlugins: createLegacyPlugins
38
- }, /*#__PURE__*/ react.createElement(AdminUI, null), /*#__PURE__*/ react.createElement(AccessManagement, null), /*#__PURE__*/ react.createElement(SystemInstallerProvider, null), /*#__PURE__*/ react.createElement(FileManager, null), /*#__PURE__*/ react.createElement(GraphQLPlayground, {
39
- createApolloClient: createApolloClient
40
- }), /*#__PURE__*/ react.createElement(SdkPlayground, null), /*#__PURE__*/ react.createElement(Websockets, null), /*#__PURE__*/ react.createElement(RecordLocking, null), /*#__PURE__*/ react.createElement(LexicalEditorActions, null), /*#__PURE__*/ react.createElement(HeadlessCMS, {
41
- createApolloClient: createApolloClient
42
- }), /*#__PURE__*/ react.createElement(AuditLogs, null), /*#__PURE__*/ react.createElement(Module, null), /*#__PURE__*/ react.createElement(SchedulerConfigs, null), /*#__PURE__*/ react.createElement(CmsScheduler, null), /*#__PURE__*/ react.createElement(TrashBinConfigs, null), /*#__PURE__*/ react.createElement(AdvancedContentOrganisation, null), /*#__PURE__*/ react.createElement(Extension, null), /*#__PURE__*/ react.createElement(Components.App.WorkflowsAdminApp, null), /*#__PURE__*/ react.createElement(CmsWorkflows, null), /*#__PURE__*/ react.createElement(WebsiteBuilderWorkflows, null), /*#__PURE__*/ react.createElement(WbScheduler, null), /*#__PURE__*/ react.createElement(Webhooks, null), /*#__PURE__*/ react.createElement(BackgroundTasks, null), props.children);
31
+ }, /*#__PURE__*/ react.createElement(AdminUI, null), /*#__PURE__*/ react.createElement(SystemInstallerProvider, null), /*#__PURE__*/ react.createElement(GraphQLPlayground, null), /*#__PURE__*/ react.createElement(SdkPlayground, null), /*#__PURE__*/ react.createElement(Websockets, null), /*#__PURE__*/ react.createElement(RecordLocking, null), /*#__PURE__*/ react.createElement(LexicalEditorActions, null), /*#__PURE__*/ react.createElement(HeadlessCMS, null), /*#__PURE__*/ react.createElement(FileManager, null), /*#__PURE__*/ react.createElement(AuditLogs, null), /*#__PURE__*/ react.createElement(Extension, null), /*#__PURE__*/ react.createElement(SchedulerModule, null), /*#__PURE__*/ react.createElement(CmsScheduler, null), /*#__PURE__*/ react.createElement(TrashBinConfigs, null), /*#__PURE__*/ react.createElement(AdvancedContentOrganisation, null), /*#__PURE__*/ react.createElement(Extension_js_Extension, null), /*#__PURE__*/ react.createElement(WorkflowsAdminApp, null), /*#__PURE__*/ react.createElement(CmsWorkflows, null), /*#__PURE__*/ react.createElement(WebsiteBuilderWorkflows, null), /*#__PURE__*/ react.createElement(WbScheduler, null), /*#__PURE__*/ react.createElement(Webhooks, null), /*#__PURE__*/ react.createElement(BackgroundTasks, null), props.children);
43
32
  };
44
33
  const Admin_Admin = /*#__PURE__*/ memo(App);
45
34
  export { Admin_Admin as Admin };
package/Admin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Admin.js","sources":["../src/Admin.tsx"],"sourcesContent":["import React, { memo } from \"react\";\nimport type { AdminProps as BaseAdminProps } from \"@webiny/app-admin\";\nimport { Admin as BaseAdmin, SystemInstallerProvider } from \"@webiny/app-admin\";\nimport { HeadlessCMS } from \"@webiny/app-headless-cms\";\nimport { AdminUI } from \"@webiny/app-admin-ui\";\nimport { FileManager } from \"@webiny/app-file-manager/app.js\";\nimport { GraphQLPlayground } from \"@webiny/app-graphql-playground\";\nimport { SdkPlayground } from \"@webiny/app-sdk-playground\";\nimport { AccessManagement } from \"@webiny/app-security-access-management\";\nimport { imagePlugin } from \"@webiny/app/plugins/index.js\";\nimport fileStorageS3Plugin from \"@webiny/app-file-manager-s3\";\nimport { createApolloClient } from \"./apolloClientFactory.js\";\nimport apolloLinks from \"./apolloLinks.js\";\nimport { AuditLogs } from \"@webiny/app-audit-logs\";\nimport { LexicalEditorActions } from \"@webiny/lexical-editor-actions\";\nimport { Module as MailerSettings } from \"@webiny/app-mailer\";\nimport { Websockets } from \"@webiny/app-websockets\";\nimport { RecordLocking } from \"@webiny/app-record-locking\";\nimport { TrashBinConfigs } from \"@webiny/app-trash-bin\";\nimport { AdvancedContentOrganisation } from \"@webiny/app-aco\";\nimport { Extension as WebsiteBuilder } from \"@webiny/app-website-builder/Extension.js\";\nimport { SchedulerConfigs } from \"@webiny/app-scheduler\";\nimport { CmsScheduler } from \"@webiny/app-headless-cms-scheduler\";\nimport { Components as WorkflowComponents } from \"@webiny/app-workflows\";\nimport { CmsWorkflows } from \"@webiny/app-headless-cms-workflows\";\nimport { WebsiteBuilderWorkflows } from \"@webiny/app-website-builder-workflows\";\nimport { Container } from \"@webiny/di\";\nimport type { PluginCollection } from \"@webiny/plugins/types.js\";\nimport { WbScheduler } from \"@webiny/app-website-builder-scheduler\";\nimport { Webhooks } from \"@webiny/webhooks/admin\";\nimport { BackgroundTasks } from \"@webiny/background-tasks/admin\";\n\nexport interface AdminProps extends Omit<\n BaseAdminProps,\n \"createApolloClient\" | \"createLegacyPlugins\"\n> {\n children?: React.ReactNode;\n}\n\nconst App = (props: AdminProps) => {\n const createLegacyPlugins = (container: Container): PluginCollection => {\n return [imagePlugin(), fileStorageS3Plugin(), apolloLinks(container)];\n };\n\n return (\n <BaseAdmin\n createApolloClient={createApolloClient}\n createLegacyPlugins={createLegacyPlugins}\n >\n <AdminUI />\n <AccessManagement />\n <SystemInstallerProvider />\n <FileManager />\n <GraphQLPlayground createApolloClient={createApolloClient} />\n <SdkPlayground />\n <Websockets />\n <RecordLocking />\n <LexicalEditorActions />\n <HeadlessCMS createApolloClient={createApolloClient} />\n <AuditLogs />\n <MailerSettings />\n <SchedulerConfigs />\n <CmsScheduler />\n <TrashBinConfigs />\n <AdvancedContentOrganisation />\n <WebsiteBuilder />\n <WorkflowComponents.App.WorkflowsAdminApp />\n <CmsWorkflows />\n <WebsiteBuilderWorkflows />\n <WbScheduler />\n <Webhooks />\n <BackgroundTasks />\n {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"names":["App","props","createLegacyPlugins","container","imagePlugin","fileStorageS3Plugin","apolloLinks","BaseAdmin","createApolloClient","AdminUI","AccessManagement","SystemInstallerProvider","FileManager","GraphQLPlayground","SdkPlayground","Websockets","RecordLocking","LexicalEditorActions","HeadlessCMS","AuditLogs","MailerSettings","SchedulerConfigs","CmsScheduler","TrashBinConfigs","AdvancedContentOrganisation","WebsiteBuilder","WorkflowComponents","CmsWorkflows","WebsiteBuilderWorkflows","WbScheduler","Webhooks","BackgroundTasks","Admin","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAMA,MAAM,CAACC;IACT,MAAMC,sBAAsB,CAACC,YAClB;YAACC;YAAeC;YAAuBC,YAAYH;SAAW;IAGzE,OAAO,WAAP,GACI,oBAACI,OAASA;QACN,oBAAoBC;QACpB,qBAAqBN;qBAErB,oBAACO,SAAOA,OAAAA,WAAAA,GACR,oBAACC,kBAAgBA,OAAAA,WAAAA,GACjB,oBAACC,yBAAuBA,OAAAA,WAAAA,GACxB,oBAACC,aAAWA,OAAAA,WAAAA,GACZ,oBAACC,mBAAiBA;QAAC,oBAAoBL;sBACvC,oBAACM,eAAaA,OAAAA,WAAAA,GACd,oBAACC,YAAUA,OAAAA,WAAAA,GACX,oBAACC,eAAaA,OAAAA,WAAAA,GACd,oBAACC,sBAAoBA,OAAAA,WAAAA,GACrB,oBAACC,aAAWA;QAAC,oBAAoBV;sBACjC,oBAACW,WAASA,OAAAA,WAAAA,GACV,oBAACC,QAAcA,OAAAA,WAAAA,GACf,oBAACC,kBAAgBA,OAAAA,WAAAA,GACjB,oBAACC,cAAYA,OAAAA,WAAAA,GACb,oBAACC,iBAAeA,OAAAA,WAAAA,GAChB,oBAACC,6BAA2BA,OAAAA,WAAAA,GAC5B,oBAACC,WAAcA,OAAAA,WAAAA,GACf,oBAACC,WAAAA,GAAAA,CAAAA,iBAAwC,uBACzC,oBAACC,cAAYA,OAAAA,WAAAA,GACb,oBAACC,yBAAuBA,OAAAA,WAAAA,GACxB,oBAACC,aAAWA,OAAAA,WAAAA,GACZ,oBAACC,UAAQA,OAAAA,WAAAA,GACT,oBAACC,iBAAeA,OACf9B,MAAM,QAAQ;AAG3B;AAEO,MAAM+B,cAAQ,WAAHA,GAAGC,KAAiBjC"}
1
+ {"version":3,"file":"Admin.js","sources":["../src/Admin.tsx"],"sourcesContent":["import React, { memo } from \"react\";\nimport type { AdminProps as BaseAdminProps } from \"@webiny/app-admin\";\nimport { Admin as BaseAdmin, SystemInstallerProvider } from \"@webiny/app-admin\";\nimport { HeadlessCMS } from \"@webiny/app-headless-cms\";\nimport { AdminUI } from \"@webiny/app-admin-ui\";\nimport { FileManager } from \"@webiny/app-file-manager/app.js\";\nimport { GraphQLPlayground } from \"@webiny/app-graphql-playground\";\nimport { SdkPlayground } from \"@webiny/app-sdk-playground\";\nimport { imagePlugin } from \"@webiny/app/plugins/index.js\";\nimport { AuditLogs } from \"@webiny/app-audit-logs\";\nimport { LexicalEditorActions } from \"@webiny/lexical-editor-actions\";\nimport { Extension as MailerSettings } from \"@webiny/app-mailer\";\nimport { Websockets } from \"@webiny/app-websockets\";\nimport { RecordLocking } from \"@webiny/app-record-locking\";\nimport { TrashBinConfigs } from \"@webiny/app-admin/presentation/trashBin/index.js\";\nimport { AdvancedContentOrganisation } from \"@webiny/app-aco\";\nimport { Extension as WebsiteBuilder } from \"@webiny/app-website-builder/Extension.js\";\nimport { SchedulerModule } from \"@webiny/app-scheduler\";\nimport { CmsScheduler } from \"@webiny/app-headless-cms-scheduler\";\nimport { WorkflowsAdminApp } from \"@webiny/app-workflows\";\nimport { CmsWorkflows } from \"@webiny/app-headless-cms-workflows\";\nimport { WebsiteBuilderWorkflows } from \"@webiny/app-website-builder-workflows\";\nimport type { Container } from \"@webiny/di\";\nimport type { PluginCollection } from \"@webiny/plugins/types.js\";\nimport { WbScheduler } from \"@webiny/app-website-builder-scheduler\";\nimport { Webhooks } from \"@webiny/webhooks/admin\";\nimport { BackgroundTasks } from \"@webiny/background-tasks/admin\";\n\nexport interface AdminProps extends Omit<BaseAdminProps, \"createLegacyPlugins\"> {\n children?: React.ReactNode;\n}\n\nconst App = (props: AdminProps) => {\n const createLegacyPlugins = (_container: Container): PluginCollection => {\n return [imagePlugin()];\n };\n\n return (\n <BaseAdmin createLegacyPlugins={createLegacyPlugins}>\n <AdminUI />\n <SystemInstallerProvider />\n <GraphQLPlayground />\n <SdkPlayground />\n <Websockets />\n <RecordLocking />\n <LexicalEditorActions />\n <HeadlessCMS />\n <FileManager />\n <AuditLogs />\n <MailerSettings />\n <SchedulerModule />\n <CmsScheduler />\n <TrashBinConfigs />\n <AdvancedContentOrganisation />\n <WebsiteBuilder />\n <WorkflowsAdminApp />\n <CmsWorkflows />\n <WebsiteBuilderWorkflows />\n <WbScheduler />\n <Webhooks />\n <BackgroundTasks />\n {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"names":["App","props","createLegacyPlugins","_container","imagePlugin","BaseAdmin","AdminUI","SystemInstallerProvider","GraphQLPlayground","SdkPlayground","Websockets","RecordLocking","LexicalEditorActions","HeadlessCMS","FileManager","AuditLogs","MailerSettings","SchedulerModule","CmsScheduler","TrashBinConfigs","AdvancedContentOrganisation","WebsiteBuilder","WorkflowsAdminApp","CmsWorkflows","WebsiteBuilderWorkflows","WbScheduler","Webhooks","BackgroundTasks","Admin","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAMA,MAAM,CAACC;IACT,MAAMC,sBAAsB,CAACC,aAClB;YAACC;SAAc;IAG1B,OAAO,WAAP,GACI,oBAACC,OAASA;QAAC,qBAAqBH;qBAC5B,oBAACI,SAAOA,OAAAA,WAAAA,GACR,oBAACC,yBAAuBA,OAAAA,WAAAA,GACxB,oBAACC,mBAAiBA,OAAAA,WAAAA,GAClB,oBAACC,eAAaA,OAAAA,WAAAA,GACd,oBAACC,YAAUA,OAAAA,WAAAA,GACX,oBAACC,eAAaA,OAAAA,WAAAA,GACd,oBAACC,sBAAoBA,OAAAA,WAAAA,GACrB,oBAACC,aAAWA,OAAAA,WAAAA,GACZ,oBAACC,aAAWA,OAAAA,WAAAA,GACZ,oBAACC,WAASA,OAAAA,WAAAA,GACV,oBAACC,WAAcA,OAAAA,WAAAA,GACf,oBAACC,iBAAeA,OAAAA,WAAAA,GAChB,oBAACC,cAAYA,OAAAA,WAAAA,GACb,oBAACC,iBAAeA,OAAAA,WAAAA,GAChB,oBAACC,6BAA2BA,OAAAA,WAAAA,GAC5B,oBAACC,wBAAcA,OAAAA,WAAAA,GACf,oBAACC,mBAAiBA,OAAAA,WAAAA,GAClB,oBAACC,cAAYA,OAAAA,WAAAA,GACb,oBAACC,yBAAuBA,OAAAA,WAAAA,GACxB,oBAACC,aAAWA,OAAAA,WAAAA,GACZ,oBAACC,UAAQA,OAAAA,WAAAA,GACT,oBAACC,iBAAeA,OACf1B,MAAM,QAAQ;AAG3B;AAEO,MAAM2B,cAAQ,WAAHA,GAAGC,KAAiB7B"}
package/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export { Admin } from "./Admin.js";
2
2
  export type { AdminProps } from "./Admin.js";
3
- export { useApp, useWcp, useTags, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, Brand, BrandRenderer, Provider, Compose, CompositionScope, Plugins, Plugin, AdminConfig, makeComposable, makeDecoratable, createComponentPlugin, createProviderPlugin, createDecorator, createProvider, Navigation, NavigationRenderer, Tags, UserMenu, UserMenuHandle, UserMenuHandleRenderer, UserMenuItem, UserMenuItemRenderer, AddGraphQLQuerySelection } from "@webiny/app-admin";
3
+ export { useApp, useWcp, useTags, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, Brand, BrandRenderer, Provider, Compose, CompositionScope, Plugins, Plugin, AdminConfig, makeComposable, makeDecoratable, createComponentPlugin, createProviderPlugin, createDecorator, createProvider, Navigation, NavigationRenderer, Tags, UserMenu, UserMenuHandle, UserMenuHandleRenderer, UserMenuItem, UserMenuItemRenderer } from "@webiny/app-admin";
4
4
  export type { ComposeProps, HigherOrderComponent, Decorator, ProviderProps, LayoutProps, LoginScreenProps } from "@webiny/app-admin";
5
5
  export { useTenantContext } from "@webiny/app-admin";
6
6
  export type { Tenant } from "@webiny/app-admin";
7
- export * from "./apolloClientFactory.js";
package/index.js CHANGED
@@ -1,3 +1,2 @@
1
- export * from "./apolloClientFactory.js";
2
1
  export { Admin } from "./Admin.js";
3
- export { AddGraphQLQuerySelection, AdminConfig, Brand, BrandRenderer, Compose, CompositionScope, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, Navigation, NavigationRenderer, Plugin, Plugins, Provider, Tags, UserMenu, UserMenuHandle, UserMenuHandleRenderer, UserMenuItem, UserMenuItemRenderer, createComponentPlugin, createDecorator, createProvider, createProviderPlugin, makeComposable, makeDecoratable, useApp, useTags, useTenantContext, useWcp } from "@webiny/app-admin";
2
+ export { AdminConfig, Brand, BrandRenderer, Compose, CompositionScope, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, Navigation, NavigationRenderer, Plugin, Plugins, Provider, Tags, UserMenu, UserMenuHandle, UserMenuHandleRenderer, UserMenuItem, UserMenuItemRenderer, createComponentPlugin, createDecorator, createProvider, createProviderPlugin, makeComposable, makeDecoratable, useApp, useTags, useTenantContext, useWcp } from "@webiny/app-admin";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-serverless-cms",
3
- "version": "6.4.5",
3
+ "version": "6.6.0-alpha.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -14,46 +14,38 @@
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
16
  "@emotion/react": "11.14.0",
17
- "@webiny/app": "6.4.5",
18
- "@webiny/app-aco": "6.4.5",
19
- "@webiny/app-admin": "6.4.5",
20
- "@webiny/app-admin-ui": "6.4.5",
21
- "@webiny/app-audit-logs": "6.4.5",
22
- "@webiny/app-file-manager": "6.4.5",
23
- "@webiny/app-file-manager-s3": "6.4.5",
24
- "@webiny/app-graphql-playground": "6.4.5",
25
- "@webiny/app-headless-cms": "6.4.5",
26
- "@webiny/app-headless-cms-scheduler": "6.4.5",
27
- "@webiny/app-headless-cms-workflows": "6.4.5",
28
- "@webiny/app-mailer": "6.4.5",
29
- "@webiny/app-record-locking": "6.4.5",
30
- "@webiny/app-scheduler": "6.4.5",
31
- "@webiny/app-sdk-playground": "6.4.5",
32
- "@webiny/app-security-access-management": "6.4.5",
33
- "@webiny/app-trash-bin": "6.4.5",
34
- "@webiny/app-website-builder": "6.4.5",
35
- "@webiny/app-website-builder-scheduler": "6.4.5",
36
- "@webiny/app-website-builder-workflows": "6.4.5",
37
- "@webiny/app-websockets": "6.4.5",
38
- "@webiny/app-workflows": "6.4.5",
39
- "@webiny/background-tasks": "6.4.5",
17
+ "@webiny/app": "6.6.0-alpha.0",
18
+ "@webiny/app-aco": "6.6.0-alpha.0",
19
+ "@webiny/app-admin": "6.6.0-alpha.0",
20
+ "@webiny/app-admin-ui": "6.6.0-alpha.0",
21
+ "@webiny/app-audit-logs": "6.6.0-alpha.0",
22
+ "@webiny/app-file-manager": "6.6.0-alpha.0",
23
+ "@webiny/app-graphql-playground": "6.6.0-alpha.0",
24
+ "@webiny/app-headless-cms": "6.6.0-alpha.0",
25
+ "@webiny/app-headless-cms-scheduler": "6.6.0-alpha.0",
26
+ "@webiny/app-headless-cms-workflows": "6.6.0-alpha.0",
27
+ "@webiny/app-mailer": "6.6.0-alpha.0",
28
+ "@webiny/app-record-locking": "6.6.0-alpha.0",
29
+ "@webiny/app-scheduler": "6.6.0-alpha.0",
30
+ "@webiny/app-sdk-playground": "6.6.0-alpha.0",
31
+ "@webiny/app-website-builder": "6.6.0-alpha.0",
32
+ "@webiny/app-website-builder-scheduler": "6.6.0-alpha.0",
33
+ "@webiny/app-website-builder-workflows": "6.6.0-alpha.0",
34
+ "@webiny/app-websockets": "6.6.0-alpha.0",
35
+ "@webiny/app-workflows": "6.6.0-alpha.0",
36
+ "@webiny/background-tasks": "6.6.0-alpha.0",
40
37
  "@webiny/di": "1.0.2",
41
- "@webiny/lexical-editor-actions": "6.4.5",
42
- "@webiny/lexical-theme": "6.4.5",
43
- "@webiny/plugins": "6.4.5",
44
- "@webiny/webhooks": "6.4.5",
45
- "apollo-cache": "1.3.5",
46
- "apollo-client": "2.6.10",
47
- "apollo-link": "1.2.14",
48
- "apollo-link-batch-http": "1.2.14",
49
- "apollo-utilities": "1.3.4",
38
+ "@webiny/lexical-editor-actions": "6.6.0-alpha.0",
39
+ "@webiny/lexical-theme": "6.6.0-alpha.0",
40
+ "@webiny/plugins": "6.6.0-alpha.0",
41
+ "@webiny/webhooks": "6.6.0-alpha.0",
50
42
  "react": "18.3.1",
51
43
  "react-dom": "18.3.1"
52
44
  },
53
45
  "devDependencies": {
54
- "@webiny/build-tools": "6.4.5",
46
+ "@webiny/build-tools": "6.6.0-alpha.0",
55
47
  "rimraf": "6.1.3",
56
- "typescript": "6.0.3"
48
+ "typescript": "7.0.2"
57
49
  },
58
50
  "publishConfig": {
59
51
  "access": "public"
@@ -1,7 +0,0 @@
1
- import ApolloClient from "apollo-client";
2
- import { BatchHttpLink } from "apollo-link-batch-http";
3
- export interface CreateApolloClientParams {
4
- uri: string;
5
- batching?: Pick<BatchHttpLink.Options, "batchMax" | "batchInterval" | "batchKey">;
6
- }
7
- export declare const createApolloClient: ({ uri, batching }: CreateApolloClientParams) => ApolloClient<import("apollo-cache-inmemory").NormalizedCacheObject>;
@@ -1,42 +0,0 @@
1
- import apollo_client from "apollo-client";
2
- import { ApolloLink } from "apollo-link";
3
- import { BatchHttpLink } from "apollo-link-batch-http";
4
- import { InMemoryCache } from "@webiny/app/apollo-client/InMemoryCache.js";
5
- import { plugins } from "@webiny/plugins";
6
- import { ApolloDynamicLink } from "@webiny/app/plugins/ApolloDynamicLink.js";
7
- import { ApolloCacheObjectIdPlugin } from "@webiny/app/plugins/ApolloCacheObjectIdPlugin.js";
8
- import { IntrospectionFragmentMatcher } from "@webiny/app/apollo-client/IntrospectionFragmentMatcher.js";
9
- const createApolloClient = ({ uri, batching })=>{
10
- const fragmentMatcher = new IntrospectionFragmentMatcher({
11
- introspectionQueryResultData: {
12
- __schema: {
13
- types: []
14
- }
15
- }
16
- });
17
- return new apollo_client({
18
- link: ApolloLink.from([
19
- new ApolloDynamicLink(),
20
- new BatchHttpLink({
21
- uri,
22
- credentials: "include",
23
- ...batching
24
- })
25
- ]),
26
- cache: new InMemoryCache({
27
- addTypename: true,
28
- fragmentMatcher,
29
- dataIdFromObject: (obj)=>{
30
- const getters = plugins.byType(ApolloCacheObjectIdPlugin.type);
31
- for(let i = 0; i < getters.length; i++){
32
- const id = getters[i].getObjectId(obj);
33
- if (void 0 !== id) return id;
34
- }
35
- return obj.id || null;
36
- }
37
- })
38
- });
39
- };
40
- export { createApolloClient };
41
-
42
- //# sourceMappingURL=apolloClientFactory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apolloClientFactory.js","sources":["../src/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.js\";\nimport { plugins } from \"@webiny/plugins\";\nimport { ApolloDynamicLink } from \"@webiny/app/plugins/ApolloDynamicLink.js\";\nimport { ApolloCacheObjectIdPlugin } from \"@webiny/app/plugins/ApolloCacheObjectIdPlugin.js\";\nimport { IntrospectionFragmentMatcher } from \"@webiny/app/apollo-client/IntrospectionFragmentMatcher.js\";\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"],"names":["createApolloClient","uri","batching","fragmentMatcher","IntrospectionFragmentMatcher","ApolloClient","ApolloLink","ApolloDynamicLink","BatchHttpLink","InMemoryCache","obj","getters","plugins","ApolloCacheObjectIdPlugin","i","id"],"mappings":";;;;;;;;AAcO,MAAMA,qBAAqB,CAAC,EAAEC,GAAG,EAAEC,QAAQ,EAA4B;IAC1E,MAAMC,kBAAkB,IAAIC,6BAA6B;QACrD,8BAA8B;YAC1B,UAAU;gBACN,OAAO,EAAE;YACb;QACJ;IACJ;IAEA,OAAO,IAAIC,cAAa;QACpB,MAAMC,WAAW,IAAI,CAAC;YAIlB,IAAIC;YAKJ,IAAIC,cAAc;gBAAEP;gBAAK,aAAa;gBAAW,GAAGC,QAAQ;YAAC;SAChE;QACD,OAAO,IAAIO,cAAc;YACrB,aAAa;YACbN;YACA,kBAAkBO,CAAAA;gBAKd,MAAMC,UAAUC,QAAQ,MAAM,CAC1BC,0BAA0B,IAAI;gBAGlC,IAAK,IAAIC,IAAI,GAAGA,IAAIH,QAAQ,MAAM,EAAEG,IAAK;oBACrC,MAAMC,KAAKJ,OAAO,CAACG,EAAE,CAAC,WAAW,CAACJ;oBAClC,IAAI,AAAc,WAAPK,IACP,OAAOA;gBAEf;gBAKA,OAAOL,IAAI,EAAE,IAAI;YACrB;QACJ;IACJ;AACJ"}
package/apolloLinks.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { ConsoleLinkPlugin } from "@webiny/app/plugins/ConsoleLinkPlugin.js";
2
- import { NetworkErrorLinkPlugin } from "@webiny/app/plugins/NetworkErrorLinkPlugin.js";
3
- import { OmitTypenameLinkPlugin } from "@webiny/app/plugins/OmitTypenameLinkPlugin.js";
4
- import { Container } from "@webiny/di";
5
- declare const _default: (container: Container) => (OmitTypenameLinkPlugin | ConsoleLinkPlugin | NetworkErrorLinkPlugin)[];
6
- export default _default;
package/apolloLinks.js DELETED
@@ -1,12 +0,0 @@
1
- import { ConsoleLinkPlugin } from "@webiny/app/plugins/ConsoleLinkPlugin.js";
2
- import { NetworkErrorLinkPlugin } from "@webiny/app/plugins/NetworkErrorLinkPlugin.js";
3
- import { OmitTypenameLinkPlugin } from "@webiny/app/plugins/OmitTypenameLinkPlugin.js";
4
- import { EventPublisher } from "@webiny/app/features/eventPublisher/index.js";
5
- const apolloLinks = (container)=>[
6
- new OmitTypenameLinkPlugin(),
7
- new ConsoleLinkPlugin(),
8
- new NetworkErrorLinkPlugin(()=>container.resolve(EventPublisher))
9
- ];
10
- export default apolloLinks;
11
-
12
- //# sourceMappingURL=apolloLinks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apolloLinks.js","sources":["../src/apolloLinks.ts"],"sourcesContent":["import { ConsoleLinkPlugin } from \"@webiny/app/plugins/ConsoleLinkPlugin.js\";\nimport { NetworkErrorLinkPlugin } from \"@webiny/app/plugins/NetworkErrorLinkPlugin.js\";\nimport { OmitTypenameLinkPlugin } from \"@webiny/app/plugins/OmitTypenameLinkPlugin.js\";\nimport { Container } from \"@webiny/di\";\nimport { EventPublisher } from \"@webiny/app/features/eventPublisher/index.js\";\n\nexport default (container: Container) => [\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(() => container.resolve(EventPublisher))\n];\n"],"names":["container","OmitTypenameLinkPlugin","ConsoleLinkPlugin","NetworkErrorLinkPlugin","EventPublisher"],"mappings":";;;;AAMA,oBAAgB,CAAAA,YAAyB;QAIrC,IAAIC;QAIJ,IAAIC;QAIJ,IAAIC,uBAAuB,IAAMH,UAAU,OAAO,CAACI;KACvD"}