@webiny/app-serverless-cms 0.0.0-unstable.b14eaecf38 → 0.0.0-unstable.b6d7105cee
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 +39 -48
- package/Admin.js.map +1 -1
- package/README.md +7 -38
- package/apolloClientFactory.d.ts +4 -3
- package/apolloClientFactory.js +40 -50
- package/apolloClientFactory.js.map +1 -1
- package/apolloLinks.d.ts +5 -4
- package/apolloLinks.js +11 -22
- package/apolloLinks.js.map +1 -1
- package/index.d.ts +7 -8
- package/index.js +3 -292
- package/package.json +48 -46
- package/styles.scss +5 -9
- 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, "createApolloClient"> {
|
|
4
|
-
|
|
2
|
+
import type { AdminProps as BaseAdminProps } from "@webiny/app-admin";
|
|
3
|
+
export interface AdminProps extends Omit<BaseAdminProps, "createApolloClient" | "createLegacyPlugins"> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export declare const Admin: React.NamedExoticComponent<AdminProps>;
|
package/Admin.js
CHANGED
|
@@ -1,49 +1,40 @@
|
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var ViewCompositionProvider = (0, _ViewCompositionProvider.createViewCompositionProvider)();
|
|
37
|
-
_plugins.plugins.register((0, _plugins2.imagePlugin)(), (0, _appFileManagerS.default)(), _apolloLinks.default);
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_appAdmin.Admin, {
|
|
39
|
-
createApolloClient: createApolloClient
|
|
40
|
-
}, /*#__PURE__*/_react.default.createElement(_appAdminRmwc.RMWC, null), /*#__PURE__*/_react.default.createElement(_appTenancy.Tenancy, null), /*#__PURE__*/_react.default.createElement(_appSecurity.Security, null), /*#__PURE__*/_react.default.createElement(_appSecurityAccessManagement.AccessManagement, null), /*#__PURE__*/_react.default.createElement(_appAdmin.AppInstaller, null), /*#__PURE__*/_react.default.createElement(_app.FileManager, null), /*#__PURE__*/_react.default.createElement(_appGraphqlPlayground.GraphQLPlayground, {
|
|
41
|
-
createApolloClient: createApolloClient
|
|
42
|
-
}), /*#__PURE__*/_react.default.createElement(_appI18n.I18N, null), /*#__PURE__*/_react.default.createElement(_appI18nContent.I18NContent, null), /*#__PURE__*/_react.default.createElement(_appAdmin.Provider, {
|
|
43
|
-
hoc: ViewCompositionProvider
|
|
44
|
-
}), /*#__PURE__*/_react.default.createElement(_appPageBuilder.PageBuilder, null), /*#__PURE__*/_react.default.createElement(_lexicalEditorPbElement.LexicalEditorPlugin, null), /*#__PURE__*/_react.default.createElement(_lexicalEditorActions.LexicalEditorActions, null), /*#__PURE__*/_react.default.createElement(_appFormBuilder.FormBuilder, null), /*#__PURE__*/_react.default.createElement(_appHeadlessCms.HeadlessCMS, {
|
|
45
|
-
createApolloClient: createApolloClient
|
|
46
|
-
}), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(_appMailer.Module, null), /*#__PURE__*/_react.default.createElement(_appAco.ACOProvider, null), props.children);
|
|
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 { createApolloClient } from "./apolloClientFactory.js";
|
|
10
|
+
import apolloLinks from "./apolloLinks.js";
|
|
11
|
+
import { AuditLogs } from "@webiny/app-audit-logs";
|
|
12
|
+
import { LexicalEditorActions } from "@webiny/lexical-editor-actions";
|
|
13
|
+
import { Extension } from "@webiny/app-mailer";
|
|
14
|
+
import { Websockets } from "@webiny/app-websockets";
|
|
15
|
+
import { RecordLocking } from "@webiny/app-record-locking";
|
|
16
|
+
import { TrashBinConfigs } from "@webiny/app-admin/presentation/trashBin/index.js";
|
|
17
|
+
import { AdvancedContentOrganisation } from "@webiny/app-aco";
|
|
18
|
+
import { Extension as Extension_js_Extension } from "@webiny/app-website-builder/Extension.js";
|
|
19
|
+
import { SchedulerModule } from "@webiny/app-scheduler";
|
|
20
|
+
import { CmsScheduler } from "@webiny/app-headless-cms-scheduler";
|
|
21
|
+
import { WorkflowsAdminApp } from "@webiny/app-workflows";
|
|
22
|
+
import { CmsWorkflows } from "@webiny/app-headless-cms-workflows";
|
|
23
|
+
import { WebsiteBuilderWorkflows } from "@webiny/app-website-builder-workflows";
|
|
24
|
+
import { WbScheduler } from "@webiny/app-website-builder-scheduler";
|
|
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
|
+
apolloLinks(container)
|
|
31
|
+
];
|
|
32
|
+
return /*#__PURE__*/ react.createElement(Admin, {
|
|
33
|
+
createApolloClient: createApolloClient,
|
|
34
|
+
createLegacyPlugins: createLegacyPlugins
|
|
35
|
+
}, /*#__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);
|
|
47
36
|
};
|
|
48
|
-
|
|
49
|
-
|
|
37
|
+
const Admin_Admin = /*#__PURE__*/ memo(App);
|
|
38
|
+
export { Admin_Admin as Admin };
|
|
39
|
+
|
|
40
|
+
//# 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 { createApolloClient } from \"./apolloClientFactory.js\";\nimport apolloLinks from \"./apolloLinks.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 { 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(), apolloLinks(container)];\n };\n\n return (\n <BaseAdmin\n createApolloClient={createApolloClient}\n createLegacyPlugins={createLegacyPlugins}\n >\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","apolloLinks","BaseAdmin","createApolloClient","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":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,MAAMA,MAAM,CAACC;IACT,MAAMC,sBAAsB,CAACC,YAClB;YAACC;YAAeC,YAAYF;SAAW;IAGlD,OAAO,WAAP,GACI,oBAACG,OAASA;QACN,oBAAoBC;QACpB,qBAAqBL;qBAErB,oBAACM,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,OACf5B,MAAM,QAAQ;AAG3B;AAEO,MAAM6B,cAAQ,WAAHA,GAAGC,KAAiB/B"}
|
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/apolloClientFactory.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ApolloClient from "apollo-client";
|
|
2
|
-
|
|
2
|
+
import { BatchHttpLink } from "apollo-link-batch-http";
|
|
3
|
+
export interface CreateApolloClientParams {
|
|
3
4
|
uri: string;
|
|
5
|
+
batching?: Pick<BatchHttpLink.Options, "batchMax" | "batchInterval" | "batchKey">;
|
|
4
6
|
}
|
|
5
|
-
export declare const createApolloClient: ({ uri }: CreateApolloClientParams) => ApolloClient<import("apollo-cache-inmemory").NormalizedCacheObject>;
|
|
6
|
-
export {};
|
|
7
|
+
export declare const createApolloClient: ({ uri, batching }: CreateApolloClientParams) => ApolloClient<import("apollo-cache-inmemory").NormalizedCacheObject>;
|
package/apolloClientFactory.js
CHANGED
|
@@ -1,52 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
}
|
|
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
|
+
}
|
|
42
15
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
+
});
|
|
51
39
|
};
|
|
52
|
-
|
|
40
|
+
export { createApolloClient };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=apolloClientFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
|
-
|
|
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
5
|
export default _default;
|
|
6
|
+
declare function _default(container: Container): (ConsoleLinkPlugin | NetworkErrorLinkPlugin | OmitTypenameLinkPlugin)[];
|
package/apolloLinks.js
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
|
|
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;
|
|
2
11
|
|
|
3
|
-
|
|
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;
|
|
12
|
+
//# sourceMappingURL=apolloLinks.js.map
|
package/apolloLinks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
package/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export { Admin } from "./Admin";
|
|
2
|
-
export type { AdminProps } from "./Admin";
|
|
3
|
-
export { useApp,
|
|
4
|
-
export type { ComposeProps, HigherOrderComponent, ProviderProps, LayoutProps, LoginScreenProps
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
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, AddGraphQLQuerySelection } 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";
|
|
7
|
+
export * from "./apolloClientFactory.js";
|
package/index.js
CHANGED
|
@@ -1,292 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
var _Admin = require("./Admin");
|
|
289
|
-
var _appAdmin = require("@webiny/app-admin");
|
|
290
|
-
var _appSecurity = require("@webiny/app-security");
|
|
291
|
-
var _appTenancy = require("@webiny/app-tenancy");
|
|
292
|
-
var _appPageBuilder = require("@webiny/app-page-builder");
|
|
1
|
+
export * from "./apolloClientFactory.js";
|
|
2
|
+
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";
|
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.b6d7105cee",
|
|
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,61 @@
|
|
|
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/
|
|
16
|
+
"@emotion/react": "11.14.0",
|
|
17
|
+
"@webiny/app": "0.0.0-unstable.b6d7105cee",
|
|
18
|
+
"@webiny/app-aco": "0.0.0-unstable.b6d7105cee",
|
|
19
|
+
"@webiny/app-admin": "0.0.0-unstable.b6d7105cee",
|
|
20
|
+
"@webiny/app-admin-ui": "0.0.0-unstable.b6d7105cee",
|
|
21
|
+
"@webiny/app-audit-logs": "0.0.0-unstable.b6d7105cee",
|
|
22
|
+
"@webiny/app-file-manager": "0.0.0-unstable.b6d7105cee",
|
|
23
|
+
"@webiny/app-graphql-playground": "0.0.0-unstable.b6d7105cee",
|
|
24
|
+
"@webiny/app-headless-cms": "0.0.0-unstable.b6d7105cee",
|
|
25
|
+
"@webiny/app-headless-cms-scheduler": "0.0.0-unstable.b6d7105cee",
|
|
26
|
+
"@webiny/app-headless-cms-workflows": "0.0.0-unstable.b6d7105cee",
|
|
27
|
+
"@webiny/app-mailer": "0.0.0-unstable.b6d7105cee",
|
|
28
|
+
"@webiny/app-record-locking": "0.0.0-unstable.b6d7105cee",
|
|
29
|
+
"@webiny/app-scheduler": "0.0.0-unstable.b6d7105cee",
|
|
30
|
+
"@webiny/app-sdk-playground": "0.0.0-unstable.b6d7105cee",
|
|
31
|
+
"@webiny/app-website-builder": "0.0.0-unstable.b6d7105cee",
|
|
32
|
+
"@webiny/app-website-builder-scheduler": "0.0.0-unstable.b6d7105cee",
|
|
33
|
+
"@webiny/app-website-builder-workflows": "0.0.0-unstable.b6d7105cee",
|
|
34
|
+
"@webiny/app-websockets": "0.0.0-unstable.b6d7105cee",
|
|
35
|
+
"@webiny/app-workflows": "0.0.0-unstable.b6d7105cee",
|
|
36
|
+
"@webiny/background-tasks": "0.0.0-unstable.b6d7105cee",
|
|
37
|
+
"@webiny/di": "1.0.2",
|
|
38
|
+
"@webiny/lexical-editor-actions": "0.0.0-unstable.b6d7105cee",
|
|
39
|
+
"@webiny/lexical-theme": "0.0.0-unstable.b6d7105cee",
|
|
40
|
+
"@webiny/plugins": "0.0.0-unstable.b6d7105cee",
|
|
41
|
+
"@webiny/webhooks": "0.0.0-unstable.b6d7105cee",
|
|
35
42
|
"apollo-cache": "1.3.5",
|
|
36
43
|
"apollo-client": "2.6.10",
|
|
37
44
|
"apollo-link": "1.2.14",
|
|
38
45
|
"apollo-link-batch-http": "1.2.14",
|
|
39
46
|
"apollo-utilities": "1.3.4",
|
|
40
|
-
"react": "
|
|
41
|
-
"react-dom": "
|
|
47
|
+
"react": "18.3.1",
|
|
48
|
+
"react-dom": "18.3.1"
|
|
42
49
|
},
|
|
43
50
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"@babel/preset-react": "^7.0.0",
|
|
48
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
49
|
-
"@webiny/cli": "^0.0.0-unstable.b14eaecf38",
|
|
50
|
-
"@webiny/project-utils": "^0.0.0-unstable.b14eaecf38",
|
|
51
|
-
"babel-plugin-emotion": "^9.2.8",
|
|
52
|
-
"babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
|
|
53
|
-
"rimraf": "^3.0.2",
|
|
54
|
-
"ttypescript": "^1.5.12",
|
|
55
|
-
"typescript": "4.7.4"
|
|
51
|
+
"@webiny/build-tools": "0.0.0-unstable.b6d7105cee",
|
|
52
|
+
"rimraf": "6.1.3",
|
|
53
|
+
"typescript": "7.0.2"
|
|
56
54
|
},
|
|
57
55
|
"publishConfig": {
|
|
58
|
-
"access": "public"
|
|
59
|
-
"directory": "dist"
|
|
60
|
-
},
|
|
61
|
-
"scripts": {
|
|
62
|
-
"build": "yarn webiny run build",
|
|
63
|
-
"watch": "yarn webiny run watch"
|
|
56
|
+
"access": "public"
|
|
64
57
|
},
|
|
65
58
|
"svgo": {
|
|
66
59
|
"plugins": {
|
|
67
60
|
"removeViewBox": false
|
|
68
61
|
}
|
|
69
62
|
},
|
|
70
|
-
"
|
|
63
|
+
"adio": {
|
|
64
|
+
"ignore": {
|
|
65
|
+
"dependencies": [
|
|
66
|
+
"@webiny/lexical-theme"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"webiny": {
|
|
71
|
+
"publishFrom": "dist"
|
|
72
|
+
}
|
|
71
73
|
}
|
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/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 useUserMenuItem,\n useUserMenu,\n useMenuItem,\n useNavigation,\n useTags,\n AddLogo,\n AddMenu,\n AddRoute,\n AddUserMenuItem,\n Dashboard,\n DashboardRenderer,\n Layout,\n LayoutRenderer,\n LoginScreen,\n LoginScreenRenderer,\n LocaleSelector,\n LocaleSelectorRenderer,\n Brand,\n BrandRenderer,\n Provider,\n Compose,\n Plugins,\n Plugin,\n makeComposable,\n createComponentPlugin,\n createProviderPlugin,\n createProvider,\n MenuItem,\n MenuItemRenderer,\n MenuItems,\n Navigation,\n NavigationRenderer,\n Tags,\n UserMenu,\n UserMenuHandle,\n UserMenuHandleRenderer,\n UserMenuItems,\n UserMenuItem,\n UserMenuItemRenderer,\n AddGraphQLQuerySelection\n} from \"@webiny/app-admin\";\nexport type {\n ComposeProps,\n HigherOrderComponent,\n ProviderProps,\n LayoutProps,\n LoginScreenProps,\n MenuContext,\n MenuData,\n MenuItemsProps,\n MenuProps,\n UserMenuItemsProps,\n UserMenuItemProps,\n UserMenuItemData\n} from \"@webiny/app-admin\";\n\nexport { HasPermission, useSecurity, usePermission } from \"@webiny/app-security\";\n\nexport { useTenancy } from \"@webiny/app-tenancy\";\nexport type { Tenant } from \"@webiny/app-tenancy\";\n\nexport { AddPbWebsiteSettings } from \"@webiny/app-page-builder\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAEA;AA0DA;AAEA;AAGA"}
|