@webiny/app-serverless-cms 0.0.0-unstable.085ff6572f → 0.0.0-unstable.0d717d18dd
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 +3 -3
- package/Admin.js +35 -49
- package/Admin.js.map +1 -1
- package/README.md +7 -38
- package/index.d.ts +6 -8
- package/index.js +2 -298
- package/package.json +48 -51
- package/styles.scss +5 -9
- package/apolloClientFactory.d.ts +0 -6
- package/apolloClientFactory.js +0 -52
- package/apolloClientFactory.js.map +0 -1
- package/apolloLinks.d.ts +0 -5
- package/apolloLinks.js +0 -23
- package/apolloLinks.js.map +0 -1
- package/index.js.map +0 -1
package/Admin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AdminProps as BaseAdminProps } from "@webiny/app-admin";
|
|
3
|
-
export interface AdminProps extends Omit<BaseAdminProps, "
|
|
4
|
-
|
|
2
|
+
import type { AdminProps as BaseAdminProps } from "@webiny/app-admin";
|
|
3
|
+
export interface AdminProps extends Omit<BaseAdminProps, "createLegacyPlugins"> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export declare const Admin: React.NamedExoticComponent<AdminProps>;
|
package/Admin.js
CHANGED
|
@@ -1,50 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var _appMailer = require("@webiny/app-mailer");
|
|
33
|
-
var _appAco = require("@webiny/app-aco");
|
|
34
|
-
var _utils = require("@webiny/app-page-builder/utils");
|
|
35
|
-
var App = function App(props) {
|
|
36
|
-
var createApolloClient = props.createApolloClient || _apolloClientFactory.createApolloClient;
|
|
37
|
-
var ViewCompositionProvider = (0, _ViewCompositionProvider.createViewCompositionProvider)();
|
|
38
|
-
_plugins.plugins.register((0, _plugins2.imagePlugin)(), (0, _appFileManagerS.default)(), _apolloLinks.default);
|
|
39
|
-
return /*#__PURE__*/_react.default.createElement(_appAdmin.Admin, {
|
|
40
|
-
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(_appAco.Folders, null), /*#__PURE__*/_react.default.createElement(_app.FileManager, null), /*#__PURE__*/_react.default.createElement(_appGraphqlPlayground.GraphQLPlayground, {
|
|
42
|
-
createApolloClient: createApolloClient
|
|
43
|
-
}), /*#__PURE__*/_react.default.createElement(_appI18n.I18N, null), /*#__PURE__*/_react.default.createElement(_appI18nContent.I18NContent, null), /*#__PURE__*/_react.default.createElement(_appAdmin.Provider, {
|
|
44
|
-
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, {
|
|
46
|
-
createApolloClient: createApolloClient
|
|
47
|
-
}), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(_appMailer.Module, null), props.children);
|
|
1
|
+
import react, { memo } from "react";
|
|
2
|
+
import { Admin, SystemInstallerProvider } from "@webiny/app-admin";
|
|
3
|
+
import { HeadlessCMS } from "@webiny/app-headless-cms";
|
|
4
|
+
import { AdminUI } from "@webiny/app-admin-ui";
|
|
5
|
+
import { FileManager } from "@webiny/app-file-manager/app.js";
|
|
6
|
+
import { GraphQLPlayground } from "@webiny/app-graphql-playground";
|
|
7
|
+
import { SdkPlayground } from "@webiny/app-sdk-playground";
|
|
8
|
+
import { imagePlugin } from "@webiny/app/plugins/index.js";
|
|
9
|
+
import { AuditLogs } from "@webiny/app-audit-logs";
|
|
10
|
+
import { LexicalEditorActions } from "@webiny/lexical-editor-actions";
|
|
11
|
+
import { Extension } from "@webiny/app-mailer";
|
|
12
|
+
import { Websockets } from "@webiny/app-websockets";
|
|
13
|
+
import { RecordLocking } from "@webiny/app-record-locking";
|
|
14
|
+
import { TrashBinConfigs } from "@webiny/app-admin/presentation/trashBin/index.js";
|
|
15
|
+
import { AdvancedContentOrganisation } from "@webiny/app-aco";
|
|
16
|
+
import { Extension as Extension_js_Extension } from "@webiny/app-website-builder/Extension.js";
|
|
17
|
+
import { SchedulerModule } from "@webiny/app-scheduler";
|
|
18
|
+
import { CmsScheduler } from "@webiny/app-headless-cms-scheduler";
|
|
19
|
+
import { WorkflowsAdminApp } from "@webiny/app-workflows";
|
|
20
|
+
import { CmsWorkflows } from "@webiny/app-headless-cms-workflows";
|
|
21
|
+
import { WebsiteBuilderWorkflows } from "@webiny/app-website-builder-workflows";
|
|
22
|
+
import { WbScheduler } from "@webiny/app-website-builder-scheduler";
|
|
23
|
+
import { Webhooks } from "@webiny/webhooks/admin";
|
|
24
|
+
import { BackgroundTasks } from "@webiny/background-tasks/admin";
|
|
25
|
+
const App = (props)=>{
|
|
26
|
+
const createLegacyPlugins = (_container)=>[
|
|
27
|
+
imagePlugin()
|
|
28
|
+
];
|
|
29
|
+
return /*#__PURE__*/ react.createElement(Admin, {
|
|
30
|
+
createLegacyPlugins: createLegacyPlugins
|
|
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);
|
|
48
32
|
};
|
|
49
|
-
|
|
50
|
-
|
|
33
|
+
const Admin_Admin = /*#__PURE__*/ memo(App);
|
|
34
|
+
export { Admin_Admin as Admin };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=Admin.js.map
|
package/Admin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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/README.md
CHANGED
|
@@ -1,42 +1,11 @@
|
|
|
1
|
-
# @webiny/app-
|
|
2
|
-
[](https://www.npmjs.com/package/@webiny/app-i18n)
|
|
3
|
-
[](https://www.npmjs.com/package/@webiny/app-i18n)
|
|
4
|
-
[](https://github.com/prettier/prettier)
|
|
5
|
-
[](http://makeapullrequest.com)
|
|
1
|
+
# @webiny/app-serverless-cms
|
|
6
2
|
|
|
7
|
-
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> This package is part of the [Webiny](https://www.webiny.com) monorepo.
|
|
5
|
+
> It’s **included in every Webiny project by default** and is not meant to be used as a standalone package.
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
📘 **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
npm install --save @webiny/app-i18n
|
|
14
|
-
```
|
|
9
|
+
---
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
yarn add @webiny/app-i18n
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Setup
|
|
22
|
-
To setup, you must register a set of plugins. For more information on
|
|
23
|
-
plugins, please visit [Webiny documentation](https://docs.webiny.com/docs/developer-tutorials/plugins-crash-course).
|
|
24
|
-
|
|
25
|
-
#### Admin
|
|
26
|
-
```
|
|
27
|
-
import { plugins } from "@webiny/plugins";
|
|
28
|
-
import i18nPlugins from "@webiny/app-i18n/admin/plugins";
|
|
29
|
-
|
|
30
|
-
plugins.register(i18nPlugins);
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Note: the `i18nCmsPlugins` contains plugins for the Page Builder, which will
|
|
34
|
-
enable you to embed i18n in your pages.
|
|
35
|
-
|
|
36
|
-
#### Site
|
|
37
|
-
```
|
|
38
|
-
import { plugins } from "@webiny/plugins";
|
|
39
|
-
import i18nPlugins from "@webiny/app-i18n/site/plugins";
|
|
40
|
-
|
|
41
|
-
plugins.register(i18nPlugins);
|
|
42
|
-
```
|
|
11
|
+
_This README file is automatically generated during the publish process._
|
package/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export { Admin } from "./Admin";
|
|
2
|
-
export type { AdminProps } from "./Admin";
|
|
3
|
-
export { useApp, useWcp,
|
|
4
|
-
export type { ComposeProps, HigherOrderComponent, ProviderProps, LayoutProps, LoginScreenProps
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export type { Tenant } from "@webiny/app-tenancy";
|
|
8
|
-
export { AddPbWebsiteSettings } from "@webiny/app-page-builder";
|
|
1
|
+
export { Admin } from "./Admin.js";
|
|
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 } from "@webiny/app-admin";
|
|
4
|
+
export type { ComposeProps, HigherOrderComponent, Decorator, ProviderProps, LayoutProps, LoginScreenProps } from "@webiny/app-admin";
|
|
5
|
+
export { useTenantContext } from "@webiny/app-admin";
|
|
6
|
+
export type { Tenant } from "@webiny/app-admin";
|
package/index.js
CHANGED
|
@@ -1,298 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "AddGraphQLQuerySelection", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _appAdmin.AddGraphQLQuerySelection;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "AddLogo", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _appAdmin.AddLogo;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "AddMenu", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _appAdmin.AddMenu;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "AddPbWebsiteSettings", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _appPageBuilder.AddPbWebsiteSettings;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "AddRoute", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _appAdmin.AddRoute;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "AddUserMenuItem", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _appAdmin.AddUserMenuItem;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "Admin", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _Admin.Admin;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "Brand", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _appAdmin.Brand;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "BrandRenderer", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _appAdmin.BrandRenderer;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "Compose", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _appAdmin.Compose;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "Dashboard", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _appAdmin.Dashboard;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "DashboardRenderer", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _appAdmin.DashboardRenderer;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "HasPermission", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function get() {
|
|
81
|
-
return _appSecurity.HasPermission;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "Layout", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function get() {
|
|
87
|
-
return _appAdmin.Layout;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(exports, "LayoutRenderer", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function get() {
|
|
93
|
-
return _appAdmin.LayoutRenderer;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, "LocaleSelector", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function get() {
|
|
99
|
-
return _appAdmin.LocaleSelector;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "LocaleSelectorRenderer", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function get() {
|
|
105
|
-
return _appAdmin.LocaleSelectorRenderer;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(exports, "LoginScreen", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function get() {
|
|
111
|
-
return _appAdmin.LoginScreen;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(exports, "LoginScreenRenderer", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function get() {
|
|
117
|
-
return _appAdmin.LoginScreenRenderer;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(exports, "MenuItem", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function get() {
|
|
123
|
-
return _appAdmin.MenuItem;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
Object.defineProperty(exports, "MenuItemRenderer", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function get() {
|
|
129
|
-
return _appAdmin.MenuItemRenderer;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, "MenuItems", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function get() {
|
|
135
|
-
return _appAdmin.MenuItems;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
Object.defineProperty(exports, "Navigation", {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function get() {
|
|
141
|
-
return _appAdmin.Navigation;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, "NavigationRenderer", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function get() {
|
|
147
|
-
return _appAdmin.NavigationRenderer;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
Object.defineProperty(exports, "Plugin", {
|
|
151
|
-
enumerable: true,
|
|
152
|
-
get: function get() {
|
|
153
|
-
return _appAdmin.Plugin;
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(exports, "Plugins", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function get() {
|
|
159
|
-
return _appAdmin.Plugins;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(exports, "Provider", {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function get() {
|
|
165
|
-
return _appAdmin.Provider;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(exports, "Tags", {
|
|
169
|
-
enumerable: true,
|
|
170
|
-
get: function get() {
|
|
171
|
-
return _appAdmin.Tags;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
Object.defineProperty(exports, "UserMenu", {
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function get() {
|
|
177
|
-
return _appAdmin.UserMenu;
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
Object.defineProperty(exports, "UserMenuHandle", {
|
|
181
|
-
enumerable: true,
|
|
182
|
-
get: function get() {
|
|
183
|
-
return _appAdmin.UserMenuHandle;
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
Object.defineProperty(exports, "UserMenuHandleRenderer", {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function get() {
|
|
189
|
-
return _appAdmin.UserMenuHandleRenderer;
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(exports, "UserMenuItem", {
|
|
193
|
-
enumerable: true,
|
|
194
|
-
get: function get() {
|
|
195
|
-
return _appAdmin.UserMenuItem;
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
Object.defineProperty(exports, "UserMenuItemRenderer", {
|
|
199
|
-
enumerable: true,
|
|
200
|
-
get: function get() {
|
|
201
|
-
return _appAdmin.UserMenuItemRenderer;
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
Object.defineProperty(exports, "UserMenuItems", {
|
|
205
|
-
enumerable: true,
|
|
206
|
-
get: function get() {
|
|
207
|
-
return _appAdmin.UserMenuItems;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
Object.defineProperty(exports, "createComponentPlugin", {
|
|
211
|
-
enumerable: true,
|
|
212
|
-
get: function get() {
|
|
213
|
-
return _appAdmin.createComponentPlugin;
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
Object.defineProperty(exports, "createProvider", {
|
|
217
|
-
enumerable: true,
|
|
218
|
-
get: function get() {
|
|
219
|
-
return _appAdmin.createProvider;
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
Object.defineProperty(exports, "createProviderPlugin", {
|
|
223
|
-
enumerable: true,
|
|
224
|
-
get: function get() {
|
|
225
|
-
return _appAdmin.createProviderPlugin;
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
Object.defineProperty(exports, "makeComposable", {
|
|
229
|
-
enumerable: true,
|
|
230
|
-
get: function get() {
|
|
231
|
-
return _appAdmin.makeComposable;
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
Object.defineProperty(exports, "useApp", {
|
|
235
|
-
enumerable: true,
|
|
236
|
-
get: function get() {
|
|
237
|
-
return _appAdmin.useApp;
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
Object.defineProperty(exports, "useMenuItem", {
|
|
241
|
-
enumerable: true,
|
|
242
|
-
get: function get() {
|
|
243
|
-
return _appAdmin.useMenuItem;
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
Object.defineProperty(exports, "useNavigation", {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
get: function get() {
|
|
249
|
-
return _appAdmin.useNavigation;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(exports, "usePermission", {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function get() {
|
|
255
|
-
return _appSecurity.usePermission;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
Object.defineProperty(exports, "useSecurity", {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
get: function get() {
|
|
261
|
-
return _appSecurity.useSecurity;
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
Object.defineProperty(exports, "useTags", {
|
|
265
|
-
enumerable: true,
|
|
266
|
-
get: function get() {
|
|
267
|
-
return _appAdmin.useTags;
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
Object.defineProperty(exports, "useTenancy", {
|
|
271
|
-
enumerable: true,
|
|
272
|
-
get: function get() {
|
|
273
|
-
return _appTenancy.useTenancy;
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
Object.defineProperty(exports, "useUserMenu", {
|
|
277
|
-
enumerable: true,
|
|
278
|
-
get: function get() {
|
|
279
|
-
return _appAdmin.useUserMenu;
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
Object.defineProperty(exports, "useUserMenuItem", {
|
|
283
|
-
enumerable: true,
|
|
284
|
-
get: function get() {
|
|
285
|
-
return _appAdmin.useUserMenuItem;
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
Object.defineProperty(exports, "useWcp", {
|
|
289
|
-
enumerable: true,
|
|
290
|
-
get: function get() {
|
|
291
|
-
return _appAdmin.useWcp;
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
var _Admin = require("./Admin");
|
|
295
|
-
var _appAdmin = require("@webiny/app-admin");
|
|
296
|
-
var _appSecurity = require("@webiny/app-security");
|
|
297
|
-
var _appTenancy = require("@webiny/app-tenancy");
|
|
298
|
-
var _appPageBuilder = require("@webiny/app-page-builder");
|
|
1
|
+
export { Admin } from "./Admin.js";
|
|
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,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-serverless-cms",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.0.0-unstable.0d717d18dd",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./index.js",
|
|
7
|
+
"./*": "./*"
|
|
8
|
+
},
|
|
5
9
|
"repository": {
|
|
6
10
|
"type": "git",
|
|
7
11
|
"url": "https://github.com/webiny/webiny-js.git"
|
|
@@ -9,63 +13,56 @@
|
|
|
9
13
|
"author": "Webiny Ltd.",
|
|
10
14
|
"license": "MIT",
|
|
11
15
|
"dependencies": {
|
|
12
|
-
"@
|
|
13
|
-
"@
|
|
14
|
-
"@webiny/app": "0.0.0-unstable.
|
|
15
|
-
"@webiny/app-
|
|
16
|
-
"@webiny/app-admin": "0.0.0-unstable.
|
|
17
|
-
"@webiny/app-
|
|
18
|
-
"@webiny/app-
|
|
19
|
-
"@webiny/app-
|
|
20
|
-
"@webiny/app-
|
|
21
|
-
"@webiny/app-
|
|
22
|
-
"@webiny/app-
|
|
23
|
-
"@webiny/app-
|
|
24
|
-
"@webiny/app-
|
|
25
|
-
"@webiny/app-
|
|
26
|
-
"@webiny/app-
|
|
27
|
-
"@webiny/app-
|
|
28
|
-
"@webiny/app-
|
|
29
|
-
"@webiny/app-
|
|
30
|
-
"@webiny/app-
|
|
31
|
-
"@webiny/app-
|
|
32
|
-
"@webiny/
|
|
33
|
-
"@webiny/
|
|
34
|
-
"@webiny/
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"react": "17.0.2",
|
|
41
|
-
"react-dom": "17.0.2"
|
|
16
|
+
"@emotion/react": "11.14.0",
|
|
17
|
+
"@webiny/app": "0.0.0-unstable.0d717d18dd",
|
|
18
|
+
"@webiny/app-aco": "0.0.0-unstable.0d717d18dd",
|
|
19
|
+
"@webiny/app-admin": "0.0.0-unstable.0d717d18dd",
|
|
20
|
+
"@webiny/app-admin-ui": "0.0.0-unstable.0d717d18dd",
|
|
21
|
+
"@webiny/app-audit-logs": "0.0.0-unstable.0d717d18dd",
|
|
22
|
+
"@webiny/app-file-manager": "0.0.0-unstable.0d717d18dd",
|
|
23
|
+
"@webiny/app-graphql-playground": "0.0.0-unstable.0d717d18dd",
|
|
24
|
+
"@webiny/app-headless-cms": "0.0.0-unstable.0d717d18dd",
|
|
25
|
+
"@webiny/app-headless-cms-scheduler": "0.0.0-unstable.0d717d18dd",
|
|
26
|
+
"@webiny/app-headless-cms-workflows": "0.0.0-unstable.0d717d18dd",
|
|
27
|
+
"@webiny/app-mailer": "0.0.0-unstable.0d717d18dd",
|
|
28
|
+
"@webiny/app-record-locking": "0.0.0-unstable.0d717d18dd",
|
|
29
|
+
"@webiny/app-scheduler": "0.0.0-unstable.0d717d18dd",
|
|
30
|
+
"@webiny/app-sdk-playground": "0.0.0-unstable.0d717d18dd",
|
|
31
|
+
"@webiny/app-website-builder": "0.0.0-unstable.0d717d18dd",
|
|
32
|
+
"@webiny/app-website-builder-scheduler": "0.0.0-unstable.0d717d18dd",
|
|
33
|
+
"@webiny/app-website-builder-workflows": "0.0.0-unstable.0d717d18dd",
|
|
34
|
+
"@webiny/app-websockets": "0.0.0-unstable.0d717d18dd",
|
|
35
|
+
"@webiny/app-workflows": "0.0.0-unstable.0d717d18dd",
|
|
36
|
+
"@webiny/background-tasks": "0.0.0-unstable.0d717d18dd",
|
|
37
|
+
"@webiny/di": "1.0.2",
|
|
38
|
+
"@webiny/lexical-editor-actions": "0.0.0-unstable.0d717d18dd",
|
|
39
|
+
"@webiny/lexical-theme": "0.0.0-unstable.0d717d18dd",
|
|
40
|
+
"@webiny/plugins": "0.0.0-unstable.0d717d18dd",
|
|
41
|
+
"@webiny/webhooks": "0.0.0-unstable.0d717d18dd",
|
|
42
|
+
"react": "18.3.1",
|
|
43
|
+
"react-dom": "18.3.1"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"@babel/preset-react": "7.18.6",
|
|
48
|
-
"@babel/preset-typescript": "7.18.6",
|
|
49
|
-
"@webiny/cli": "0.0.0-unstable.085ff6572f",
|
|
50
|
-
"@webiny/project-utils": "0.0.0-unstable.085ff6572f",
|
|
51
|
-
"babel-plugin-emotion": "9.2.11",
|
|
52
|
-
"babel-plugin-named-asset-import": "1.0.0-next.fb6e6f70",
|
|
53
|
-
"rimraf": "3.0.2",
|
|
54
|
-
"ttypescript": "1.5.15",
|
|
55
|
-
"typescript": "4.7.4"
|
|
46
|
+
"@webiny/build-tools": "0.0.0-unstable.0d717d18dd",
|
|
47
|
+
"rimraf": "6.1.3",
|
|
48
|
+
"typescript": "7.0.2"
|
|
56
49
|
},
|
|
57
50
|
"publishConfig": {
|
|
58
|
-
"access": "public"
|
|
59
|
-
"directory": "dist"
|
|
60
|
-
},
|
|
61
|
-
"scripts": {
|
|
62
|
-
"build": "yarn webiny run build",
|
|
63
|
-
"watch": "yarn webiny run watch"
|
|
51
|
+
"access": "public"
|
|
64
52
|
},
|
|
65
53
|
"svgo": {
|
|
66
54
|
"plugins": {
|
|
67
55
|
"removeViewBox": false
|
|
68
56
|
}
|
|
69
57
|
},
|
|
70
|
-
"
|
|
58
|
+
"adio": {
|
|
59
|
+
"ignore": {
|
|
60
|
+
"dependencies": [
|
|
61
|
+
"@webiny/lexical-theme"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"webiny": {
|
|
66
|
+
"publishFrom": "dist"
|
|
67
|
+
}
|
|
71
68
|
}
|
package/styles.scss
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
// Import admin
|
|
2
|
-
@
|
|
3
|
-
|
|
4
|
-
// Import
|
|
5
|
-
@import "
|
|
6
|
-
@import "~@webiny/app-admin/components/RichTextEditor/tools/header/styles.scss";
|
|
7
|
-
@import "~@webiny/app-admin/components/RichTextEditor/tools/paragraph/styles.scss";
|
|
8
|
-
@import "~@webiny/app-admin/components/RichTextEditor/tools/textColor/styles.scss";
|
|
9
|
-
@import "~@webiny/app-admin/components/RichTextEditor/tools/image/styles.scss";
|
|
1
|
+
// Import `app-admin-ui` styles
|
|
2
|
+
@use "~@webiny/app-admin-ui/styles.scss" as *;
|
|
3
|
+
|
|
4
|
+
// Import Lexical theme styles
|
|
5
|
+
@import "@webiny/lexical-theme/theme.css";
|
package/apolloClientFactory.d.ts
DELETED
package/apolloClientFactory.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.createApolloClient = void 0;
|
|
8
|
-
var _apolloClient = _interopRequireDefault(require("apollo-client"));
|
|
9
|
-
var _apolloLink = require("apollo-link");
|
|
10
|
-
var _apolloLinkBatchHttp = require("apollo-link-batch-http");
|
|
11
|
-
var _InMemoryCache = require("@webiny/app/apollo-client/InMemoryCache");
|
|
12
|
-
var _plugins = require("@webiny/plugins");
|
|
13
|
-
var _ApolloDynamicLink = require("@webiny/app/plugins/ApolloDynamicLink");
|
|
14
|
-
var _ApolloCacheObjectIdPlugin = require("@webiny/app/plugins/ApolloCacheObjectIdPlugin");
|
|
15
|
-
var createApolloClient = function createApolloClient(_ref) {
|
|
16
|
-
var uri = _ref.uri;
|
|
17
|
-
return new _apolloClient.default({
|
|
18
|
-
link: _apolloLink.ApolloLink.from([
|
|
19
|
-
/**
|
|
20
|
-
* This will process links from plugins on every request.
|
|
21
|
-
*/
|
|
22
|
-
new _ApolloDynamicLink.ApolloDynamicLink(),
|
|
23
|
-
/**
|
|
24
|
-
* This batches requests made to the API to pack multiple requests into a single HTTP request.
|
|
25
|
-
*/
|
|
26
|
-
new _apolloLinkBatchHttp.BatchHttpLink({
|
|
27
|
-
uri: uri
|
|
28
|
-
})]),
|
|
29
|
-
cache: new _InMemoryCache.InMemoryCache({
|
|
30
|
-
addTypename: true,
|
|
31
|
-
dataIdFromObject: function dataIdFromObject(obj) {
|
|
32
|
-
/**
|
|
33
|
-
* Since every data type coming from API can have a different data structure,
|
|
34
|
-
* we cannot rely on having an `id` field.
|
|
35
|
-
*/
|
|
36
|
-
var getters = _plugins.plugins.byType(_ApolloCacheObjectIdPlugin.ApolloCacheObjectIdPlugin.type);
|
|
37
|
-
for (var i = 0; i < getters.length; i++) {
|
|
38
|
-
var id = getters[i].getObjectId(obj);
|
|
39
|
-
if (typeof id !== "undefined") {
|
|
40
|
-
return id;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* As a fallback, try getting object's `id`.
|
|
46
|
-
*/
|
|
47
|
-
return obj.id || null;
|
|
48
|
-
}
|
|
49
|
-
})
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
exports.createApolloClient = createApolloClient;
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/apolloLinks.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ConsoleLinkPlugin } from "@webiny/app/plugins/ConsoleLinkPlugin";
|
|
2
|
-
import { NetworkErrorLinkPlugin } from "@webiny/app/plugins/NetworkErrorLinkPlugin";
|
|
3
|
-
import { OmitTypenameLinkPlugin } from "@webiny/app/plugins/OmitTypenameLinkPlugin";
|
|
4
|
-
declare const _default: (OmitTypenameLinkPlugin | ConsoleLinkPlugin | NetworkErrorLinkPlugin)[];
|
|
5
|
-
export default _default;
|
package/apolloLinks.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _ConsoleLinkPlugin = require("@webiny/app/plugins/ConsoleLinkPlugin");
|
|
8
|
-
var _NetworkErrorLinkPlugin = require("@webiny/app/plugins/NetworkErrorLinkPlugin");
|
|
9
|
-
var _OmitTypenameLinkPlugin = require("@webiny/app/plugins/OmitTypenameLinkPlugin");
|
|
10
|
-
var _default = [
|
|
11
|
-
/**
|
|
12
|
-
* This link removes `__typename` from the variables being sent to the API.
|
|
13
|
-
*/
|
|
14
|
-
new _OmitTypenameLinkPlugin.OmitTypenameLinkPlugin(),
|
|
15
|
-
/**
|
|
16
|
-
* This link checks for presence of `extensions.console` in the response and logs all items to browser console.
|
|
17
|
-
*/
|
|
18
|
-
new _ConsoleLinkPlugin.ConsoleLinkPlugin(),
|
|
19
|
-
/**
|
|
20
|
-
* This plugin creates an ApolloLink that checks for `NetworkError` and shows an ErrorOverlay in the browser.
|
|
21
|
-
*/
|
|
22
|
-
new _NetworkErrorLinkPlugin.NetworkErrorLinkPlugin()];
|
|
23
|
-
exports.default = _default;
|
package/apolloLinks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"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 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;AA2DA;AAEA;AAGA"}
|