@webiny/app-serverless-cms 0.0.0-unstable.fcdad0bc61 → 0.0.0-unstable.fdd9228b5d
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 +2 -1
- package/Admin.js +39 -68
- package/Admin.js.map +1 -1
- package/apolloClientFactory.d.ts +4 -3
- package/apolloClientFactory.js +35 -40
- package/apolloClientFactory.js.map +1 -1
- package/apolloLinks.d.ts +1 -1
- package/apolloLinks.js +9 -18
- package/apolloLinks.js.map +1 -1
- package/index.d.ts +4 -3
- package/index.js +8 -285
- package/index.js.map +1 -1
- package/package.json +43 -37
- package/styles.scss +10 -3
package/Admin.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AdminProps as BaseAdminProps } from "@webiny/app-admin";
|
|
2
|
+
import type { AdminProps as BaseAdminProps } from "@webiny/app-admin";
|
|
3
3
|
export interface AdminProps extends Omit<BaseAdminProps, "createApolloClient"> {
|
|
4
4
|
createApolloClient?: BaseAdminProps["createApolloClient"];
|
|
5
|
+
children?: React.ReactNode;
|
|
5
6
|
}
|
|
6
7
|
export declare const Admin: React.NamedExoticComponent<AdminProps>;
|
package/Admin.js
CHANGED
|
@@ -1,74 +1,45 @@
|
|
|
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
|
-
var _appFileManager = require("@webiny/app-file-manager");
|
|
35
|
-
|
|
36
|
-
var _appGraphqlPlayground = require("@webiny/app-graphql-playground");
|
|
37
|
-
|
|
38
|
-
var _appSecurityAccessManagement = require("@webiny/app-security-access-management");
|
|
39
|
-
|
|
40
|
-
var _plugins2 = require("@webiny/app/plugins");
|
|
41
|
-
|
|
42
|
-
var _plugins3 = _interopRequireDefault(require("@webiny/app-file-manager/admin/plugins"));
|
|
43
|
-
|
|
44
|
-
var _appFileManagerS = _interopRequireDefault(require("@webiny/app-file-manager-s3"));
|
|
45
|
-
|
|
46
|
-
var _apolloClientFactory = require("./apolloClientFactory");
|
|
47
|
-
|
|
48
|
-
var _apolloLinks = _interopRequireDefault(require("./apolloLinks"));
|
|
49
|
-
|
|
50
|
-
var _ViewCompositionProvider = require("@webiny/app-admin/base/providers/ViewCompositionProvider");
|
|
51
|
-
|
|
52
|
-
var _appApw = require("@webiny/app-apw");
|
|
53
|
-
|
|
54
|
-
var _appTenantManager = require("@webiny/app-tenant-manager");
|
|
55
|
-
|
|
56
|
-
var App = function App(props) {
|
|
57
|
-
var createApolloClient = props.createApolloClient || _apolloClientFactory.createApolloClient;
|
|
58
|
-
var ViewCompositionProvider = (0, _ViewCompositionProvider.createViewCompositionProvider)();
|
|
59
|
-
|
|
60
|
-
_plugins.plugins.register((0, _plugins2.imagePlugin)(), (0, _plugins3.default)(), (0, _appFileManagerS.default)(), _apolloLinks.default);
|
|
61
|
-
|
|
62
|
-
return /*#__PURE__*/_react.default.createElement(_appAdmin.Admin, {
|
|
1
|
+
import React, { memo } from "react";
|
|
2
|
+
import { plugins } from "@webiny/plugins";
|
|
3
|
+
import { Admin as BaseAdmin, AppInstaller, Provider } from "@webiny/app-admin";
|
|
4
|
+
import { Tenancy } from "@webiny/app-tenancy";
|
|
5
|
+
import { Security } from "@webiny/app-security";
|
|
6
|
+
import { I18N } from "@webiny/app-i18n";
|
|
7
|
+
import { I18NContent } from "@webiny/app-i18n-content";
|
|
8
|
+
import { HeadlessCMS } from "@webiny/app-headless-cms";
|
|
9
|
+
import { AdminUI } from "@webiny/app-admin-ui";
|
|
10
|
+
import { FileManager } from "@webiny/app-file-manager/app";
|
|
11
|
+
import { GraphQLPlayground } from "@webiny/app-graphql-playground";
|
|
12
|
+
import { AccessManagement } from "@webiny/app-security-access-management";
|
|
13
|
+
import { imagePlugin } from "@webiny/app/plugins";
|
|
14
|
+
import fileStorageS3Plugin from "@webiny/app-file-manager-s3";
|
|
15
|
+
import { createApolloClient as defaultApolloClientFactory } from "./apolloClientFactory";
|
|
16
|
+
import apolloLinks from "./apolloLinks";
|
|
17
|
+
import { createViewCompositionProvider } from "@webiny/app-admin/base/providers/ViewCompositionProvider";
|
|
18
|
+
import { AdvancedPublishingWorkflow } from "@webiny/app-apw";
|
|
19
|
+
import { TenantManager } from "@webiny/app-tenant-manager";
|
|
20
|
+
import { AuditLogs } from "@webiny/app-audit-logs";
|
|
21
|
+
import { LexicalEditorActions } from "@webiny/lexical-editor-actions";
|
|
22
|
+
import { Module as MailerSettings } from "@webiny/app-mailer";
|
|
23
|
+
import { Websockets } from "@webiny/app-websockets";
|
|
24
|
+
import { RecordLocking } from "@webiny/app-record-locking";
|
|
25
|
+
import { TrashBinConfigs } from "@webiny/app-trash-bin";
|
|
26
|
+
import { AdvancedContentOrganisation } from "@webiny/app-aco";
|
|
27
|
+
import { Extension as WebsiteBuilder } from "@webiny/app-website-builder/Extension";
|
|
28
|
+
import { SchedulerConfigs } from "@webiny/app-headless-cms-scheduler/index.js";
|
|
29
|
+
const App = props => {
|
|
30
|
+
const createApolloClient = props.createApolloClient || defaultApolloClientFactory;
|
|
31
|
+
const ViewCompositionProvider = createViewCompositionProvider();
|
|
32
|
+
plugins.register(imagePlugin(), fileStorageS3Plugin(), apolloLinks);
|
|
33
|
+
return /*#__PURE__*/React.createElement(BaseAdmin, {
|
|
63
34
|
createApolloClient: createApolloClient
|
|
64
|
-
}, /*#__PURE__*/
|
|
35
|
+
}, /*#__PURE__*/React.createElement(AdminUI, null), /*#__PURE__*/React.createElement(Tenancy, null), /*#__PURE__*/React.createElement(Security, null), /*#__PURE__*/React.createElement(AccessManagement, null), /*#__PURE__*/React.createElement(AppInstaller, null), /*#__PURE__*/React.createElement(FileManager, null), /*#__PURE__*/React.createElement(GraphQLPlayground, {
|
|
65
36
|
createApolloClient: createApolloClient
|
|
66
|
-
}), /*#__PURE__*/
|
|
37
|
+
}), /*#__PURE__*/React.createElement(I18N, null), /*#__PURE__*/React.createElement(I18NContent, null), /*#__PURE__*/React.createElement(Provider, {
|
|
67
38
|
hoc: ViewCompositionProvider
|
|
68
|
-
}), /*#__PURE__*/
|
|
39
|
+
}), /*#__PURE__*/React.createElement(Websockets, null), /*#__PURE__*/React.createElement(RecordLocking, null), /*#__PURE__*/React.createElement(LexicalEditorActions, null), /*#__PURE__*/React.createElement(HeadlessCMS, {
|
|
69
40
|
createApolloClient: createApolloClient
|
|
70
|
-
}), /*#__PURE__*/
|
|
41
|
+
}), /*#__PURE__*/React.createElement(AdvancedPublishingWorkflow, null), /*#__PURE__*/React.createElement(TenantManager, null), /*#__PURE__*/React.createElement(AuditLogs, null), /*#__PURE__*/React.createElement(MailerSettings, null), /*#__PURE__*/React.createElement(SchedulerConfigs, null), /*#__PURE__*/React.createElement(TrashBinConfigs, null), /*#__PURE__*/React.createElement(AdvancedContentOrganisation, null), /*#__PURE__*/React.createElement(WebsiteBuilder, null), props.children);
|
|
71
42
|
};
|
|
43
|
+
export const Admin = /*#__PURE__*/memo(App);
|
|
72
44
|
|
|
73
|
-
|
|
74
|
-
exports.Admin = Admin;
|
|
45
|
+
//# sourceMappingURL=Admin.js.map
|
package/Admin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","memo","plugins","Admin","BaseAdmin","AppInstaller","Provider","Tenancy","Security","I18N","I18NContent","HeadlessCMS","AdminUI","FileManager","GraphQLPlayground","AccessManagement","imagePlugin","fileStorageS3Plugin","createApolloClient","defaultApolloClientFactory","apolloLinks","createViewCompositionProvider","AdvancedPublishingWorkflow","TenantManager","AuditLogs","LexicalEditorActions","Module","MailerSettings","Websockets","RecordLocking","TrashBinConfigs","AdvancedContentOrganisation","Extension","WebsiteBuilder","SchedulerConfigs","App","props","ViewCompositionProvider","register","createElement","hoc","children"],"sources":["Admin.tsx"],"sourcesContent":["import React, { memo } from \"react\";\nimport { plugins } from \"@webiny/plugins\";\nimport type { AdminProps as BaseAdminProps } from \"@webiny/app-admin\";\nimport { Admin as BaseAdmin, AppInstaller, Provider } from \"@webiny/app-admin\";\nimport { Tenancy } from \"@webiny/app-tenancy\";\nimport { Security } from \"@webiny/app-security\";\nimport { I18N } from \"@webiny/app-i18n\";\nimport { I18NContent } from \"@webiny/app-i18n-content\";\nimport { HeadlessCMS } from \"@webiny/app-headless-cms\";\nimport { AdminUI } from \"@webiny/app-admin-ui\";\nimport { FileManager } from \"@webiny/app-file-manager/app\";\nimport { GraphQLPlayground } from \"@webiny/app-graphql-playground\";\nimport { AccessManagement } from \"@webiny/app-security-access-management\";\nimport { imagePlugin } from \"@webiny/app/plugins\";\nimport fileStorageS3Plugin from \"@webiny/app-file-manager-s3\";\nimport { createApolloClient as defaultApolloClientFactory } from \"./apolloClientFactory\";\nimport apolloLinks from \"./apolloLinks\";\nimport { createViewCompositionProvider } from \"@webiny/app-admin/base/providers/ViewCompositionProvider\";\nimport { AdvancedPublishingWorkflow } from \"@webiny/app-apw\";\nimport { TenantManager } from \"@webiny/app-tenant-manager\";\nimport { AuditLogs } from \"@webiny/app-audit-logs\";\nimport { 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\";\nimport { SchedulerConfigs } from \"@webiny/app-headless-cms-scheduler/index.js\";\n\nexport interface AdminProps extends Omit<BaseAdminProps, \"createApolloClient\"> {\n createApolloClient?: BaseAdminProps[\"createApolloClient\"];\n children?: React.ReactNode;\n}\n\nconst App = (props: AdminProps) => {\n const createApolloClient = props.createApolloClient || defaultApolloClientFactory;\n const ViewCompositionProvider = createViewCompositionProvider();\n\n plugins.register(imagePlugin(), fileStorageS3Plugin(), apolloLinks);\n\n return (\n <BaseAdmin createApolloClient={createApolloClient}>\n <AdminUI />\n <Tenancy />\n <Security />\n <AccessManagement />\n <AppInstaller />\n <FileManager />\n <GraphQLPlayground createApolloClient={createApolloClient} />\n <I18N />\n <I18NContent />\n <Provider hoc={ViewCompositionProvider} />\n <Websockets />\n <RecordLocking />\n <LexicalEditorActions />\n <HeadlessCMS createApolloClient={createApolloClient} />\n <AdvancedPublishingWorkflow />\n <TenantManager />\n <AuditLogs />\n <MailerSettings />\n <SchedulerConfigs />\n <TrashBinConfigs />\n <AdvancedContentOrganisation />\n <WebsiteBuilder />\n {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"mappings":"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","ignoreList":[]}
|
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,65 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var _ApolloCacheObjectIdPlugin = require("@webiny/app/plugins/ApolloCacheObjectIdPlugin");
|
|
23
|
-
|
|
24
|
-
var createApolloClient = function createApolloClient(_ref) {
|
|
25
|
-
var uri = _ref.uri;
|
|
26
|
-
return new _apolloClient.default({
|
|
27
|
-
link: _apolloLink.ApolloLink.from([
|
|
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";
|
|
5
|
+
import { plugins } from "@webiny/plugins";
|
|
6
|
+
import { ApolloDynamicLink } from "@webiny/app/plugins/ApolloDynamicLink";
|
|
7
|
+
import { ApolloCacheObjectIdPlugin } from "@webiny/app/plugins/ApolloCacheObjectIdPlugin";
|
|
8
|
+
import { IntrospectionFragmentMatcher } from "@webiny/app/apollo-client/IntrospectionFragmentMatcher";
|
|
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([
|
|
28
22
|
/**
|
|
29
23
|
* This will process links from plugins on every request.
|
|
30
24
|
*/
|
|
31
|
-
new
|
|
25
|
+
new ApolloDynamicLink(),
|
|
32
26
|
/**
|
|
33
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.
|
|
34
29
|
*/
|
|
35
|
-
new
|
|
36
|
-
uri
|
|
30
|
+
new BatchHttpLink({
|
|
31
|
+
uri,
|
|
32
|
+
credentials: "include",
|
|
33
|
+
...batching
|
|
37
34
|
})]),
|
|
38
|
-
cache: new
|
|
35
|
+
cache: new InMemoryCache({
|
|
39
36
|
addTypename: true,
|
|
40
|
-
|
|
37
|
+
fragmentMatcher,
|
|
38
|
+
dataIdFromObject: obj => {
|
|
41
39
|
/**
|
|
42
40
|
* Since every data type coming from API can have a different data structure,
|
|
43
41
|
* we cannot rely on having an `id` field.
|
|
44
42
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
var id = getters[i].getObjectId(obj);
|
|
49
|
-
|
|
43
|
+
const getters = plugins.byType(ApolloCacheObjectIdPlugin.type);
|
|
44
|
+
for (let i = 0; i < getters.length; i++) {
|
|
45
|
+
const id = getters[i].getObjectId(obj);
|
|
50
46
|
if (typeof id !== "undefined") {
|
|
51
47
|
return id;
|
|
52
48
|
}
|
|
53
49
|
}
|
|
50
|
+
|
|
54
51
|
/**
|
|
55
52
|
* As a fallback, try getting object's `id`.
|
|
56
53
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
54
|
return obj.id || null;
|
|
60
55
|
}
|
|
61
56
|
})
|
|
62
57
|
});
|
|
63
58
|
};
|
|
64
59
|
|
|
65
|
-
|
|
60
|
+
//# sourceMappingURL=apolloClientFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createApolloClient","uri","
|
|
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\";\nimport { plugins } from \"@webiny/plugins\";\nimport { ApolloDynamicLink } from \"@webiny/app/plugins/ApolloDynamicLink\";\nimport { ApolloCacheObjectIdPlugin } from \"@webiny/app/plugins/ApolloCacheObjectIdPlugin\";\nimport { IntrospectionFragmentMatcher } from \"@webiny/app/apollo-client/IntrospectionFragmentMatcher\";\n\nexport interface CreateApolloClientParams {\n uri: string;\n batching?: Pick<BatchHttpLink.Options, \"batchMax\" | \"batchInterval\" | \"batchKey\">;\n}\n\nexport const createApolloClient = ({ uri, batching }: CreateApolloClientParams) => {\n const fragmentMatcher = new IntrospectionFragmentMatcher({\n introspectionQueryResultData: {\n __schema: {\n types: []\n }\n }\n });\n\n return new ApolloClient({\n link: ApolloLink.from([\n /**\n * This will process links from plugins on every request.\n */\n new ApolloDynamicLink(),\n /**\n * This batches requests made to the API to pack multiple requests into a single HTTP request.\n * `credentials: \"include\"` is necessary to attach cookies to requests.\n */\n new BatchHttpLink({ uri, credentials: \"include\", ...batching })\n ]),\n cache: new InMemoryCache({\n addTypename: true,\n fragmentMatcher,\n dataIdFromObject: obj => {\n /**\n * Since every data type coming from API can have a different data structure,\n * we cannot rely on having an `id` field.\n */\n const getters = plugins.byType<ApolloCacheObjectIdPlugin>(\n ApolloCacheObjectIdPlugin.type\n );\n\n for (let i = 0; i < getters.length; i++) {\n const id = getters[i].getObjectId(obj);\n if (typeof id !== \"undefined\") {\n return id;\n }\n }\n\n /**\n * As a fallback, try getting object's `id`.\n */\n return obj.id || null;\n }\n })\n });\n};\n"],"mappings":"AAAA,OAAOA,YAAY,MAAM,eAAe;AACxC,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,aAAa,QAAQ,yCAAyC;AACvE,SAASC,OAAO,QAAQ,iBAAiB;AACzC,SAASC,iBAAiB,QAAQ,uCAAuC;AACzE,SAASC,yBAAyB,QAAQ,+CAA+C;AACzF,SAASC,4BAA4B,QAAQ,wDAAwD;AAOrG,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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConsoleLinkPlugin } from "@webiny/app/plugins/ConsoleLinkPlugin";
|
|
2
2
|
import { NetworkErrorLinkPlugin } from "@webiny/app/plugins/NetworkErrorLinkPlugin";
|
|
3
3
|
import { OmitTypenameLinkPlugin } from "@webiny/app/plugins/OmitTypenameLinkPlugin";
|
|
4
|
-
declare const _default: (
|
|
4
|
+
declare const _default: (ConsoleLinkPlugin | NetworkErrorLinkPlugin | OmitTypenameLinkPlugin)[];
|
|
5
5
|
export default _default;
|
package/apolloLinks.js
CHANGED
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _ConsoleLinkPlugin = require("@webiny/app/plugins/ConsoleLinkPlugin");
|
|
9
|
-
|
|
10
|
-
var _NetworkErrorLinkPlugin = require("@webiny/app/plugins/NetworkErrorLinkPlugin");
|
|
11
|
-
|
|
12
|
-
var _OmitTypenameLinkPlugin = require("@webiny/app/plugins/OmitTypenameLinkPlugin");
|
|
13
|
-
|
|
14
|
-
var _default = [
|
|
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
|
+
export default [
|
|
15
5
|
/**
|
|
16
6
|
* This link removes `__typename` from the variables being sent to the API.
|
|
17
7
|
*/
|
|
18
|
-
new
|
|
8
|
+
new OmitTypenameLinkPlugin(),
|
|
19
9
|
/**
|
|
20
10
|
* This link checks for presence of `extensions.console` in the response and logs all items to browser console.
|
|
21
11
|
*/
|
|
22
|
-
new
|
|
12
|
+
new ConsoleLinkPlugin(),
|
|
23
13
|
/**
|
|
24
14
|
* This plugin creates an ApolloLink that checks for `NetworkError` and shows an ErrorOverlay in the browser.
|
|
25
15
|
*/
|
|
26
|
-
new
|
|
27
|
-
|
|
16
|
+
new NetworkErrorLinkPlugin()];
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=apolloLinks.js.map
|
package/apolloLinks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["ConsoleLinkPlugin","NetworkErrorLinkPlugin","OmitTypenameLinkPlugin"],"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,SAASA,iBAAiB,QAAQ,uCAAuC;AACzE,SAASC,sBAAsB,QAAQ,4CAA4C;AACnF,SAASC,sBAAsB,QAAQ,4CAA4C;AAEnF,eAAe;AACX;AACJ;AACA;AACI,IAAIA,sBAAsB,CAAC,CAAC;AAC5B;AACJ;AACA;AACI,IAAIF,iBAAiB,CAAC,CAAC;AACvB;AACJ;AACA;AACI,IAAIC,sBAAsB,CAAC,CAAC,CAC/B","ignoreList":[]}
|
package/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { Admin } from "./Admin";
|
|
2
2
|
export type { AdminProps } from "./Admin";
|
|
3
|
-
export {
|
|
4
|
-
export type { ComposeProps, HigherOrderComponent, ProviderProps, LayoutProps, LoginScreenProps
|
|
3
|
+
export { useApp, useWcp, useTags, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, LocaleSelector, LocaleSelectorRenderer, 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
5
|
export { HasPermission, useSecurity, usePermission } from "@webiny/app-security";
|
|
6
6
|
export { useTenancy } from "@webiny/app-tenancy";
|
|
7
7
|
export type { Tenant } from "@webiny/app-tenancy";
|
|
8
|
-
export {
|
|
8
|
+
export { IsTenant, IsRootTenant, IsNotRootTenant, useCurrentTenant } from "@webiny/app-tenant-manager";
|
|
9
|
+
export * from "./apolloClientFactory";
|
package/index.js
CHANGED
|
@@ -1,285 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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, "Plugins", {
|
|
151
|
-
enumerable: true,
|
|
152
|
-
get: function get() {
|
|
153
|
-
return _appAdmin.Plugins;
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(exports, "Provider", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function get() {
|
|
159
|
-
return _appAdmin.Provider;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(exports, "Tags", {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function get() {
|
|
165
|
-
return _appAdmin.Tags;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(exports, "UserMenu", {
|
|
169
|
-
enumerable: true,
|
|
170
|
-
get: function get() {
|
|
171
|
-
return _appAdmin.UserMenu;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
Object.defineProperty(exports, "UserMenuHandle", {
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function get() {
|
|
177
|
-
return _appAdmin.UserMenuHandle;
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
Object.defineProperty(exports, "UserMenuHandleRenderer", {
|
|
181
|
-
enumerable: true,
|
|
182
|
-
get: function get() {
|
|
183
|
-
return _appAdmin.UserMenuHandleRenderer;
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
Object.defineProperty(exports, "UserMenuItem", {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function get() {
|
|
189
|
-
return _appAdmin.UserMenuItem;
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(exports, "UserMenuItemRenderer", {
|
|
193
|
-
enumerable: true,
|
|
194
|
-
get: function get() {
|
|
195
|
-
return _appAdmin.UserMenuItemRenderer;
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
Object.defineProperty(exports, "UserMenuItems", {
|
|
199
|
-
enumerable: true,
|
|
200
|
-
get: function get() {
|
|
201
|
-
return _appAdmin.UserMenuItems;
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
Object.defineProperty(exports, "createComponentPlugin", {
|
|
205
|
-
enumerable: true,
|
|
206
|
-
get: function get() {
|
|
207
|
-
return _appAdmin.createComponentPlugin;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
Object.defineProperty(exports, "createProviderPlugin", {
|
|
211
|
-
enumerable: true,
|
|
212
|
-
get: function get() {
|
|
213
|
-
return _appAdmin.createProviderPlugin;
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
Object.defineProperty(exports, "makeComposable", {
|
|
217
|
-
enumerable: true,
|
|
218
|
-
get: function get() {
|
|
219
|
-
return _appAdmin.makeComposable;
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
Object.defineProperty(exports, "useAdmin", {
|
|
223
|
-
enumerable: true,
|
|
224
|
-
get: function get() {
|
|
225
|
-
return _appAdmin.useAdmin;
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
Object.defineProperty(exports, "useMenuItem", {
|
|
229
|
-
enumerable: true,
|
|
230
|
-
get: function get() {
|
|
231
|
-
return _appAdmin.useMenuItem;
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
Object.defineProperty(exports, "useNavigation", {
|
|
235
|
-
enumerable: true,
|
|
236
|
-
get: function get() {
|
|
237
|
-
return _appAdmin.useNavigation;
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
Object.defineProperty(exports, "usePermission", {
|
|
241
|
-
enumerable: true,
|
|
242
|
-
get: function get() {
|
|
243
|
-
return _appSecurity.usePermission;
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
Object.defineProperty(exports, "useSecurity", {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
get: function get() {
|
|
249
|
-
return _appSecurity.useSecurity;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(exports, "useTags", {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function get() {
|
|
255
|
-
return _appAdmin.useTags;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
Object.defineProperty(exports, "useTenancy", {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
get: function get() {
|
|
261
|
-
return _appTenancy.useTenancy;
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
Object.defineProperty(exports, "useUserMenu", {
|
|
265
|
-
enumerable: true,
|
|
266
|
-
get: function get() {
|
|
267
|
-
return _appAdmin.useUserMenu;
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
Object.defineProperty(exports, "useUserMenuItem", {
|
|
271
|
-
enumerable: true,
|
|
272
|
-
get: function get() {
|
|
273
|
-
return _appAdmin.useUserMenuItem;
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
|
|
277
|
-
var _Admin = require("./Admin");
|
|
278
|
-
|
|
279
|
-
var _appAdmin = require("@webiny/app-admin");
|
|
280
|
-
|
|
281
|
-
var _appSecurity = require("@webiny/app-security");
|
|
282
|
-
|
|
283
|
-
var _appTenancy = require("@webiny/app-tenancy");
|
|
284
|
-
|
|
285
|
-
var _appPageBuilder = require("@webiny/app-page-builder");
|
|
1
|
+
export { Admin } from "./Admin";
|
|
2
|
+
export { useApp, useWcp, useTags, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, LocaleSelector, LocaleSelectorRenderer, 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 { HasPermission, useSecurity, usePermission } from "@webiny/app-security";
|
|
4
|
+
export { useTenancy } from "@webiny/app-tenancy";
|
|
5
|
+
export { IsTenant, IsRootTenant, IsNotRootTenant, useCurrentTenant } from "@webiny/app-tenant-manager";
|
|
6
|
+
export * from "./apolloClientFactory";
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export { Admin } from \"./Admin\";\nexport type { AdminProps } from \"./Admin\";\nexport {\n
|
|
1
|
+
{"version":3,"names":["Admin","useApp","useWcp","useTags","Dashboard","DashboardRenderer","Layout","LayoutRenderer","LoginScreen","LoginScreenRenderer","LocaleSelector","LocaleSelectorRenderer","Brand","BrandRenderer","Provider","Compose","CompositionScope","Plugins","Plugin","AdminConfig","makeComposable","makeDecoratable","createComponentPlugin","createProviderPlugin","createDecorator","createProvider","Navigation","NavigationRenderer","Tags","UserMenu","UserMenuHandle","UserMenuHandleRenderer","UserMenuItem","UserMenuItemRenderer","AddGraphQLQuerySelection","HasPermission","useSecurity","usePermission","useTenancy","IsTenant","IsRootTenant","IsNotRootTenant","useCurrentTenant"],"sources":["index.tsx"],"sourcesContent":["export { Admin } from \"./Admin\";\nexport type { AdminProps } from \"./Admin\";\nexport {\n useApp,\n useWcp,\n useTags,\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 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 { HasPermission, useSecurity, usePermission } from \"@webiny/app-security\";\n\nexport { useTenancy } from \"@webiny/app-tenancy\";\nexport type { Tenant } from \"@webiny/app-tenancy\";\n\nexport {\n IsTenant,\n IsRootTenant,\n IsNotRootTenant,\n useCurrentTenant\n} from \"@webiny/app-tenant-manager\";\n\nexport * from \"./apolloClientFactory\";\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,cAAc,EACdC,sBAAsB,EACtBC,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,aAAa,EAAEC,WAAW,EAAEC,aAAa,QAAQ,sBAAsB;AAEhF,SAASC,UAAU,QAAQ,qBAAqB;AAGhD,SACIC,QAAQ,EACRC,YAAY,EACZC,eAAe,EACfC,gBAAgB,QACb,4BAA4B;AAEnC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-serverless-cms",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.fdd9228b5d",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,59 +9,65 @@
|
|
|
9
9
|
"author": "Webiny Ltd.",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@
|
|
13
|
-
"@
|
|
14
|
-
"@webiny/app": "0.0.0-unstable.
|
|
15
|
-
"@webiny/app-admin": "0.0.0-unstable.
|
|
16
|
-
"@webiny/app-admin-
|
|
17
|
-
"@webiny/app-apw": "0.0.0-unstable.
|
|
18
|
-
"@webiny/app-
|
|
19
|
-
"@webiny/app-file-manager
|
|
20
|
-
"@webiny/app-
|
|
21
|
-
"@webiny/app-graphql-playground": "0.0.0-unstable.
|
|
22
|
-
"@webiny/app-headless-cms": "0.0.0-unstable.
|
|
23
|
-
"@webiny/app-
|
|
24
|
-
"@webiny/app-i18n
|
|
25
|
-
"@webiny/app-
|
|
26
|
-
"@webiny/app-
|
|
27
|
-
"@webiny/app-
|
|
28
|
-
"@webiny/app-
|
|
29
|
-
"@webiny/app-
|
|
30
|
-
"@webiny/
|
|
12
|
+
"@emotion/react": "11.10.8",
|
|
13
|
+
"@webiny/app": "0.0.0-unstable.fdd9228b5d",
|
|
14
|
+
"@webiny/app-aco": "0.0.0-unstable.fdd9228b5d",
|
|
15
|
+
"@webiny/app-admin": "0.0.0-unstable.fdd9228b5d",
|
|
16
|
+
"@webiny/app-admin-ui": "0.0.0-unstable.fdd9228b5d",
|
|
17
|
+
"@webiny/app-apw": "0.0.0-unstable.fdd9228b5d",
|
|
18
|
+
"@webiny/app-audit-logs": "0.0.0-unstable.fdd9228b5d",
|
|
19
|
+
"@webiny/app-file-manager": "0.0.0-unstable.fdd9228b5d",
|
|
20
|
+
"@webiny/app-file-manager-s3": "0.0.0-unstable.fdd9228b5d",
|
|
21
|
+
"@webiny/app-graphql-playground": "0.0.0-unstable.fdd9228b5d",
|
|
22
|
+
"@webiny/app-headless-cms": "0.0.0-unstable.fdd9228b5d",
|
|
23
|
+
"@webiny/app-headless-cms-scheduler": "0.0.0-unstable.fdd9228b5d",
|
|
24
|
+
"@webiny/app-i18n": "0.0.0-unstable.fdd9228b5d",
|
|
25
|
+
"@webiny/app-i18n-content": "0.0.0-unstable.fdd9228b5d",
|
|
26
|
+
"@webiny/app-mailer": "0.0.0-unstable.fdd9228b5d",
|
|
27
|
+
"@webiny/app-record-locking": "0.0.0-unstable.fdd9228b5d",
|
|
28
|
+
"@webiny/app-security": "0.0.0-unstable.fdd9228b5d",
|
|
29
|
+
"@webiny/app-security-access-management": "0.0.0-unstable.fdd9228b5d",
|
|
30
|
+
"@webiny/app-tenancy": "0.0.0-unstable.fdd9228b5d",
|
|
31
|
+
"@webiny/app-tenant-manager": "0.0.0-unstable.fdd9228b5d",
|
|
32
|
+
"@webiny/app-trash-bin": "0.0.0-unstable.fdd9228b5d",
|
|
33
|
+
"@webiny/app-website-builder": "0.0.0-unstable.fdd9228b5d",
|
|
34
|
+
"@webiny/app-websockets": "0.0.0-unstable.fdd9228b5d",
|
|
35
|
+
"@webiny/lexical-editor-actions": "0.0.0-unstable.fdd9228b5d",
|
|
36
|
+
"@webiny/lexical-theme": "0.0.0-unstable.fdd9228b5d",
|
|
37
|
+
"@webiny/plugins": "0.0.0-unstable.fdd9228b5d",
|
|
31
38
|
"apollo-cache": "1.3.5",
|
|
32
39
|
"apollo-client": "2.6.10",
|
|
33
40
|
"apollo-link": "1.2.14",
|
|
34
41
|
"apollo-link-batch-http": "1.2.14",
|
|
35
42
|
"apollo-utilities": "1.3.4",
|
|
36
|
-
"react": "
|
|
37
|
-
"react-dom": "
|
|
43
|
+
"react": "18.2.0",
|
|
44
|
+
"react-dom": "18.2.0"
|
|
38
45
|
},
|
|
39
46
|
"devDependencies": {
|
|
40
|
-
"@babel
|
|
41
|
-
"@
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
45
|
-
"@webiny/cli": "^0.0.0-unstable.fcdad0bc61",
|
|
46
|
-
"@webiny/project-utils": "^0.0.0-unstable.fcdad0bc61",
|
|
47
|
-
"babel-plugin-emotion": "^9.2.8",
|
|
48
|
-
"babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
|
|
49
|
-
"rimraf": "^3.0.2",
|
|
50
|
-
"ttypescript": "^1.5.12",
|
|
51
|
-
"typescript": "4.7.4"
|
|
47
|
+
"@emotion/babel-plugin": "11.11.0",
|
|
48
|
+
"@webiny/project-utils": "0.0.0-unstable.fdd9228b5d",
|
|
49
|
+
"rimraf": "6.0.1",
|
|
50
|
+
"typescript": "5.3.3"
|
|
52
51
|
},
|
|
53
52
|
"publishConfig": {
|
|
54
53
|
"access": "public",
|
|
55
54
|
"directory": "dist"
|
|
56
55
|
},
|
|
57
56
|
"scripts": {
|
|
58
|
-
"build": "
|
|
59
|
-
"watch": "
|
|
57
|
+
"build": "node ../cli/bin.js run build",
|
|
58
|
+
"watch": "node ../cli/bin.js run watch"
|
|
60
59
|
},
|
|
61
60
|
"svgo": {
|
|
62
61
|
"plugins": {
|
|
63
62
|
"removeViewBox": false
|
|
64
63
|
}
|
|
65
64
|
},
|
|
66
|
-
"
|
|
65
|
+
"adio": {
|
|
66
|
+
"ignore": {
|
|
67
|
+
"dependencies": [
|
|
68
|
+
"@webiny/lexical-theme"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"gitHead": "fdd9228b5d2636463e8a34b6e0d26eea1e29c01d"
|
|
67
73
|
}
|
package/styles.scss
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
// Import admin
|
|
2
|
-
@import "~@webiny/app-admin/styles.scss";
|
|
3
|
-
|
|
1
|
+
// Import `app-admin-ui` styles
|
|
2
|
+
@import "~@webiny/app-admin-ui/styles.scss";
|
|
3
|
+
|
|
4
|
+
// Import `ui` styles
|
|
5
|
+
// ⚠️ DEPRECATED but needed for backward compatibility ⚠️
|
|
6
|
+
@import "~@webiny/ui/styles.scss";
|
|
7
|
+
|
|
4
8
|
// Import `RichTextEditor` styles
|
|
5
9
|
@import "~@webiny/app-admin/components/RichTextEditor/styles.scss";
|
|
6
10
|
@import "~@webiny/app-admin/components/RichTextEditor/tools/header/styles.scss";
|
|
7
11
|
@import "~@webiny/app-admin/components/RichTextEditor/tools/paragraph/styles.scss";
|
|
8
12
|
@import "~@webiny/app-admin/components/RichTextEditor/tools/textColor/styles.scss";
|
|
9
13
|
@import "~@webiny/app-admin/components/RichTextEditor/tools/image/styles.scss";
|
|
14
|
+
|
|
15
|
+
// Import Lexical theme styles
|
|
16
|
+
@import "~@webiny/lexical-theme/theme.css";
|