@webiny/app-serverless-cms 0.0.0-unstable.e6f0dc8ca7 → 0.0.0-unstable.eb81deee7e

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
@@ -1,42 +1,38 @@
1
- import React, { memo } from "react";
2
- import { Admin as BaseAdmin, SystemInstallerProvider } from "@webiny/app-admin";
1
+ import react, { memo } from "react";
2
+ import { Admin, SystemInstallerProvider } from "@webiny/app-admin";
3
3
  import { HeadlessCMS } from "@webiny/app-headless-cms";
4
4
  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 fileStorageS3Plugin 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 as MailerSettings } 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 as WebsiteBuilder } from "@webiny/app-website-builder/Extension.js";
21
- import { SchedulerConfigs } from "@webiny/app-scheduler";
16
+ import { Extension as Extension_js_Extension } from "@webiny/app-theme/Extension.js";
17
+ import { Extension as app_component_extraction_Extension_js_Extension } from "@webiny/app-component-extraction/Extension.js";
18
+ import { Extension as app_website_builder_Extension_js_Extension } from "@webiny/app-website-builder/Extension.js";
19
+ import { SchedulerModule } from "@webiny/app-scheduler";
22
20
  import { CmsScheduler } from "@webiny/app-headless-cms-scheduler";
23
- import { Components as WorkflowComponents } from "@webiny/app-workflows";
21
+ import { WorkflowsAdminApp } from "@webiny/app-workflows";
24
22
  import { CmsWorkflows } from "@webiny/app-headless-cms-workflows";
25
23
  import { WebsiteBuilderWorkflows } from "@webiny/app-website-builder-workflows";
26
24
  import { WbScheduler } from "@webiny/app-website-builder-scheduler";
27
- const App = props => {
28
- const createLegacyPlugins = container => {
29
- return [imagePlugin(), fileStorageS3Plugin(), apolloLinks(container)];
30
- };
31
- return /*#__PURE__*/React.createElement(BaseAdmin, {
32
- createApolloClient: createApolloClient,
33
- createLegacyPlugins: createLegacyPlugins
34
- }, /*#__PURE__*/React.createElement(AdminUI, null), /*#__PURE__*/React.createElement(AccessManagement, null), /*#__PURE__*/React.createElement(SystemInstallerProvider, null), /*#__PURE__*/React.createElement(FileManager, null), /*#__PURE__*/React.createElement(GraphQLPlayground, {
35
- createApolloClient: createApolloClient
36
- }), /*#__PURE__*/React.createElement(SdkPlayground, null), /*#__PURE__*/React.createElement(Websockets, null), /*#__PURE__*/React.createElement(RecordLocking, null), /*#__PURE__*/React.createElement(LexicalEditorActions, null), /*#__PURE__*/React.createElement(HeadlessCMS, {
37
- createApolloClient: createApolloClient
38
- }), /*#__PURE__*/React.createElement(AuditLogs, null), /*#__PURE__*/React.createElement(MailerSettings, null), /*#__PURE__*/React.createElement(SchedulerConfigs, null), /*#__PURE__*/React.createElement(CmsScheduler, null), /*#__PURE__*/React.createElement(TrashBinConfigs, null), /*#__PURE__*/React.createElement(AdvancedContentOrganisation, null), /*#__PURE__*/React.createElement(WebsiteBuilder, null), /*#__PURE__*/React.createElement(WorkflowComponents.App.WorkflowsAdminApp, null), /*#__PURE__*/React.createElement(CmsWorkflows, null), /*#__PURE__*/React.createElement(WebsiteBuilderWorkflows, null), /*#__PURE__*/React.createElement(WbScheduler, null), props.children);
25
+ import { Webhooks } from "@webiny/webhooks/admin";
26
+ import { BackgroundTasks } from "@webiny/background-tasks/admin";
27
+ const App = (props)=>{
28
+ const createLegacyPlugins = (_container)=>[
29
+ imagePlugin()
30
+ ];
31
+ return /*#__PURE__*/ react.createElement(Admin, {
32
+ createLegacyPlugins: createLegacyPlugins
33
+ }, /*#__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(app_component_extraction_Extension_js_Extension, null), /*#__PURE__*/ react.createElement(app_website_builder_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);
39
34
  };
40
- export const Admin = /*#__PURE__*/memo(App);
35
+ const Admin_Admin = /*#__PURE__*/ memo(App);
36
+ export { Admin_Admin as Admin };
41
37
 
42
38
  //# sourceMappingURL=Admin.js.map
package/Admin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["React","memo","Admin","BaseAdmin","SystemInstallerProvider","HeadlessCMS","AdminUI","FileManager","GraphQLPlayground","SdkPlayground","AccessManagement","imagePlugin","fileStorageS3Plugin","createApolloClient","apolloLinks","AuditLogs","LexicalEditorActions","Module","MailerSettings","Websockets","RecordLocking","TrashBinConfigs","AdvancedContentOrganisation","Extension","WebsiteBuilder","SchedulerConfigs","CmsScheduler","Components","WorkflowComponents","CmsWorkflows","WebsiteBuilderWorkflows","WbScheduler","App","props","createLegacyPlugins","container","createElement","WorkflowsAdminApp","children"],"sources":["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\";\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 {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AAEnC,SAASC,KAAK,IAAIC,SAAS,EAAEC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,OAAO,MAAMpC,KAAK,gBAAGD,IAAI,CAAa+B,GAAG,CAAC","ignoreList":[]}
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 Theme } from \"@webiny/app-theme/Extension.js\";\nimport { Extension as ComponentExtraction } from \"@webiny/app-component-extraction/Extension.js\";\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 <Theme />\n <ComponentExtraction />\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","Theme","ComponentExtraction","WebsiteBuilder","WorkflowsAdminApp","CmsWorkflows","WebsiteBuilderWorkflows","WbScheduler","Webhooks","BackgroundTasks","Admin","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,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,wBAAKA,OAAAA,WAAAA,GACN,oBAACC,iDAAmBA,OAAAA,WAAAA,GACpB,oBAACC,4CAAcA,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,OACf5B,MAAM,QAAQ;AAG3B;AAEO,MAAM6B,cAAQ,WAAHA,GAAGC,KAAiB/B"}
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, 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,6 +1,2 @@
1
1
  export { Admin } from "./Admin.js";
2
- 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 { useTenantContext } from "@webiny/app-admin";
4
- export * from "./apolloClientFactory.js";
5
-
6
- //# sourceMappingURL=index.js.map
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 } from "@webiny/app-admin";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-serverless-cms",
3
- "version": "0.0.0-unstable.e6f0dc8ca7",
3
+ "version": "0.0.0-unstable.eb81deee7e",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -14,49 +14,43 @@
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
16
  "@emotion/react": "11.14.0",
17
- "@webiny/app": "0.0.0-unstable.e6f0dc8ca7",
18
- "@webiny/app-aco": "0.0.0-unstable.e6f0dc8ca7",
19
- "@webiny/app-admin": "0.0.0-unstable.e6f0dc8ca7",
20
- "@webiny/app-admin-ui": "0.0.0-unstable.e6f0dc8ca7",
21
- "@webiny/app-audit-logs": "0.0.0-unstable.e6f0dc8ca7",
22
- "@webiny/app-file-manager": "0.0.0-unstable.e6f0dc8ca7",
23
- "@webiny/app-file-manager-s3": "0.0.0-unstable.e6f0dc8ca7",
24
- "@webiny/app-graphql-playground": "0.0.0-unstable.e6f0dc8ca7",
25
- "@webiny/app-headless-cms": "0.0.0-unstable.e6f0dc8ca7",
26
- "@webiny/app-headless-cms-scheduler": "0.0.0-unstable.e6f0dc8ca7",
27
- "@webiny/app-headless-cms-workflows": "0.0.0-unstable.e6f0dc8ca7",
28
- "@webiny/app-mailer": "0.0.0-unstable.e6f0dc8ca7",
29
- "@webiny/app-record-locking": "0.0.0-unstable.e6f0dc8ca7",
30
- "@webiny/app-scheduler": "0.0.0-unstable.e6f0dc8ca7",
31
- "@webiny/app-sdk-playground": "0.0.0-unstable.e6f0dc8ca7",
32
- "@webiny/app-security-access-management": "0.0.0-unstable.e6f0dc8ca7",
33
- "@webiny/app-trash-bin": "0.0.0-unstable.e6f0dc8ca7",
34
- "@webiny/app-website-builder": "0.0.0-unstable.e6f0dc8ca7",
35
- "@webiny/app-website-builder-scheduler": "0.0.0-unstable.e6f0dc8ca7",
36
- "@webiny/app-website-builder-workflows": "0.0.0-unstable.e6f0dc8ca7",
37
- "@webiny/app-websockets": "0.0.0-unstable.e6f0dc8ca7",
38
- "@webiny/app-workflows": "0.0.0-unstable.e6f0dc8ca7",
39
- "@webiny/di": "0.2.3",
40
- "@webiny/lexical-editor-actions": "0.0.0-unstable.e6f0dc8ca7",
41
- "@webiny/lexical-theme": "0.0.0-unstable.e6f0dc8ca7",
42
- "@webiny/plugins": "0.0.0-unstable.e6f0dc8ca7",
43
- "apollo-cache": "1.3.5",
44
- "apollo-client": "2.6.10",
45
- "apollo-link": "1.2.14",
46
- "apollo-link-batch-http": "1.2.14",
47
- "apollo-utilities": "1.3.4",
17
+ "@webiny/app": "0.0.0-unstable.eb81deee7e",
18
+ "@webiny/app-aco": "0.0.0-unstable.eb81deee7e",
19
+ "@webiny/app-admin": "0.0.0-unstable.eb81deee7e",
20
+ "@webiny/app-admin-ui": "0.0.0-unstable.eb81deee7e",
21
+ "@webiny/app-audit-logs": "0.0.0-unstable.eb81deee7e",
22
+ "@webiny/app-component-extraction": "0.0.0-unstable.eb81deee7e",
23
+ "@webiny/app-file-manager": "0.0.0-unstable.eb81deee7e",
24
+ "@webiny/app-graphql-playground": "0.0.0-unstable.eb81deee7e",
25
+ "@webiny/app-headless-cms": "0.0.0-unstable.eb81deee7e",
26
+ "@webiny/app-headless-cms-scheduler": "0.0.0-unstable.eb81deee7e",
27
+ "@webiny/app-headless-cms-workflows": "0.0.0-unstable.eb81deee7e",
28
+ "@webiny/app-mailer": "0.0.0-unstable.eb81deee7e",
29
+ "@webiny/app-record-locking": "0.0.0-unstable.eb81deee7e",
30
+ "@webiny/app-scheduler": "0.0.0-unstable.eb81deee7e",
31
+ "@webiny/app-sdk-playground": "0.0.0-unstable.eb81deee7e",
32
+ "@webiny/app-theme": "0.0.0-unstable.eb81deee7e",
33
+ "@webiny/app-website-builder": "0.0.0-unstable.eb81deee7e",
34
+ "@webiny/app-website-builder-scheduler": "0.0.0-unstable.eb81deee7e",
35
+ "@webiny/app-website-builder-workflows": "0.0.0-unstable.eb81deee7e",
36
+ "@webiny/app-websockets": "0.0.0-unstable.eb81deee7e",
37
+ "@webiny/app-workflows": "0.0.0-unstable.eb81deee7e",
38
+ "@webiny/background-tasks": "0.0.0-unstable.eb81deee7e",
39
+ "@webiny/di": "1.1.0",
40
+ "@webiny/lexical-editor-actions": "0.0.0-unstable.eb81deee7e",
41
+ "@webiny/lexical-theme": "0.0.0-unstable.eb81deee7e",
42
+ "@webiny/plugins": "0.0.0-unstable.eb81deee7e",
43
+ "@webiny/webhooks": "0.0.0-unstable.eb81deee7e",
48
44
  "react": "18.3.1",
49
45
  "react-dom": "18.3.1"
50
46
  },
51
47
  "devDependencies": {
52
- "@emotion/babel-plugin": "11.13.5",
53
- "@webiny/build-tools": "0.0.0-unstable.e6f0dc8ca7",
48
+ "@webiny/build-tools": "0.0.0-unstable.eb81deee7e",
54
49
  "rimraf": "6.1.3",
55
- "typescript": "6.0.3"
50
+ "typescript": "7.0.2"
56
51
  },
57
52
  "publishConfig": {
58
- "access": "public",
59
- "directory": "dist"
53
+ "access": "public"
60
54
  },
61
55
  "svgo": {
62
56
  "plugins": {
@@ -70,5 +64,7 @@
70
64
  ]
71
65
  }
72
66
  },
73
- "gitHead": "e6f0dc8ca741c1fcc3fec9a5b9e86fdd49544641"
67
+ "webiny": {
68
+ "publishFrom": "dist"
69
+ }
74
70
  }
@@ -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,60 +0,0 @@
1
- import ApolloClient 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
- export const createApolloClient = ({
10
- uri,
11
- batching
12
- }) => {
13
- const fragmentMatcher = new IntrospectionFragmentMatcher({
14
- introspectionQueryResultData: {
15
- __schema: {
16
- types: []
17
- }
18
- }
19
- });
20
- return new ApolloClient({
21
- link: ApolloLink.from([
22
- /**
23
- * This will process links from plugins on every request.
24
- */
25
- new ApolloDynamicLink(),
26
- /**
27
- * This batches requests made to the API to pack multiple requests into a single HTTP request.
28
- * `credentials: "include"` is necessary to attach cookies to requests.
29
- */
30
- new BatchHttpLink({
31
- uri,
32
- credentials: "include",
33
- ...batching
34
- })]),
35
- cache: new InMemoryCache({
36
- addTypename: true,
37
- fragmentMatcher,
38
- dataIdFromObject: obj => {
39
- /**
40
- * Since every data type coming from API can have a different data structure,
41
- * we cannot rely on having an `id` field.
42
- */
43
- const getters = plugins.byType(ApolloCacheObjectIdPlugin.type);
44
- for (let i = 0; i < getters.length; i++) {
45
- const id = getters[i].getObjectId(obj);
46
- if (typeof id !== "undefined") {
47
- return id;
48
- }
49
- }
50
-
51
- /**
52
- * As a fallback, try getting object's `id`.
53
- */
54
- return obj.id || null;
55
- }
56
- })
57
- });
58
- };
59
-
60
- //# sourceMappingURL=apolloClientFactory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ApolloClient","ApolloLink","BatchHttpLink","InMemoryCache","plugins","ApolloDynamicLink","ApolloCacheObjectIdPlugin","IntrospectionFragmentMatcher","createApolloClient","uri","batching","fragmentMatcher","introspectionQueryResultData","__schema","types","link","from","credentials","cache","addTypename","dataIdFromObject","obj","getters","byType","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.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"],"mappings":"AAAA,OAAOA,YAAY,MAAM,eAAe;AACxC,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,aAAa,QAAQ,4CAA4C;AAC1E,SAASC,OAAO,QAAQ,iBAAiB;AACzC,SAASC,iBAAiB,QAAQ,0CAA0C;AAC5E,SAASC,yBAAyB,QAAQ,kDAAkD;AAC5F,SAASC,4BAA4B,QAAQ,2DAA2D;AAOxG,OAAO,MAAMC,kBAAkB,GAAGA,CAAC;EAAEC,GAAG;EAAEC;AAAmC,CAAC,KAAK;EAC/E,MAAMC,eAAe,GAAG,IAAIJ,4BAA4B,CAAC;IACrDK,4BAA4B,EAAE;MAC1BC,QAAQ,EAAE;QACNC,KAAK,EAAE;MACX;IACJ;EACJ,CAAC,CAAC;EAEF,OAAO,IAAId,YAAY,CAAC;IACpBe,IAAI,EAAEd,UAAU,CAACe,IAAI,CAAC;IAClB;AACZ;AACA;IACY,IAAIX,iBAAiB,CAAC,CAAC;IACvB;AACZ;AACA;AACA;IACY,IAAIH,aAAa,CAAC;MAAEO,GAAG;MAAEQ,WAAW,EAAE,SAAS;MAAE,GAAGP;IAAS,CAAC,CAAC,CAClE,CAAC;IACFQ,KAAK,EAAE,IAAIf,aAAa,CAAC;MACrBgB,WAAW,EAAE,IAAI;MACjBR,eAAe;MACfS,gBAAgB,EAAEC,GAAG,IAAI;QACrB;AAChB;AACA;AACA;QACgB,MAAMC,OAAO,GAAGlB,OAAO,CAACmB,MAAM,CAC1BjB,yBAAyB,CAACkB,IAC9B,CAAC;QAED,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,OAAO,CAACI,MAAM,EAAED,CAAC,EAAE,EAAE;UACrC,MAAME,EAAE,GAAGL,OAAO,CAACG,CAAC,CAAC,CAACG,WAAW,CAACP,GAAG,CAAC;UACtC,IAAI,OAAOM,EAAE,KAAK,WAAW,EAAE;YAC3B,OAAOA,EAAE;UACb;QACJ;;QAEA;AAChB;AACA;QACgB,OAAON,GAAG,CAACM,EAAE,IAAI,IAAI;MACzB;IACJ,CAAC;EACL,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
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,19 +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
- export default container => [
6
- /**
7
- * This link removes `__typename` from the variables being sent to the API.
8
- */
9
- new OmitTypenameLinkPlugin(),
10
- /**
11
- * This link checks for presence of `extensions.console` in the response and logs all items to browser console.
12
- */
13
- new ConsoleLinkPlugin(),
14
- /**
15
- * This plugin creates an ApolloLink that checks for `NetworkError` and shows an ErrorOverlay in the browser.
16
- */
17
- new NetworkErrorLinkPlugin(() => container.resolve(EventPublisher))];
18
-
19
- //# sourceMappingURL=apolloLinks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ConsoleLinkPlugin","NetworkErrorLinkPlugin","OmitTypenameLinkPlugin","EventPublisher","container","resolve"],"sources":["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"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,0CAA0C;AAC5E,SAASC,sBAAsB,QAAQ,+CAA+C;AACtF,SAASC,sBAAsB,QAAQ,+CAA+C;AAEtF,SAASC,cAAc,QAAQ,8CAA8C;AAE7E,eAAgBC,SAAoB,IAAK;AACrC;AACJ;AACA;AACI,IAAIF,sBAAsB,CAAC,CAAC;AAC5B;AACJ;AACA;AACI,IAAIF,iBAAiB,CAAC,CAAC;AACvB;AACJ;AACA;AACI,IAAIC,sBAAsB,CAAC,MAAMG,SAAS,CAACC,OAAO,CAACF,cAAc,CAAC,CAAC,CACtE","ignoreList":[]}
package/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"names":["Admin","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","useTenantContext"],"sources":["index.tsx"],"sourcesContent":["export { Admin } from \"./Admin.js\";\nexport type { AdminProps } from \"./Admin.js\";\nexport {\n useApp,\n useWcp,\n useTags,\n Dashboard,\n DashboardRenderer,\n Layout,\n LayoutRenderer,\n LoginScreen,\n LoginScreenRenderer,\n Brand,\n BrandRenderer,\n Provider,\n Compose,\n CompositionScope,\n Plugins,\n Plugin,\n AdminConfig,\n makeComposable,\n makeDecoratable,\n createComponentPlugin,\n createProviderPlugin,\n createDecorator,\n createProvider,\n Navigation,\n NavigationRenderer,\n Tags,\n UserMenu,\n UserMenuHandle,\n UserMenuHandleRenderer,\n UserMenuItem,\n UserMenuItemRenderer,\n AddGraphQLQuerySelection\n} from \"@webiny/app-admin\";\nexport type {\n ComposeProps,\n HigherOrderComponent,\n Decorator,\n ProviderProps,\n LayoutProps,\n LoginScreenProps\n} from \"@webiny/app-admin\";\n\nexport { useTenantContext } from \"@webiny/app-admin\";\nexport type { Tenant } from \"@webiny/app-admin\";\n\nexport * from \"./apolloClientFactory.js\";\n"],"mappings":"AAAA,SAASA,KAAK;AAEd,SACIC,MAAM,EACNC,MAAM,EACNC,OAAO,EACPC,SAAS,EACTC,iBAAiB,EACjBC,MAAM,EACNC,cAAc,EACdC,WAAW,EACXC,mBAAmB,EACnBC,KAAK,EACLC,aAAa,EACbC,QAAQ,EACRC,OAAO,EACPC,gBAAgB,EAChBC,OAAO,EACPC,MAAM,EACNC,WAAW,EACXC,cAAc,EACdC,eAAe,EACfC,qBAAqB,EACrBC,oBAAoB,EACpBC,eAAe,EACfC,cAAc,EACdC,UAAU,EACVC,kBAAkB,EAClBC,IAAI,EACJC,QAAQ,EACRC,cAAc,EACdC,sBAAsB,EACtBC,YAAY,EACZC,oBAAoB,EACpBC,wBAAwB,QACrB,mBAAmB;AAU1B,SAASC,gBAAgB,QAAQ,mBAAmB;AAGpD","ignoreList":[]}