@webiny/app-serverless-cms 6.0.0-beta.0 → 6.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Admin.d.ts CHANGED
@@ -1,7 +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
- createApolloClient?: BaseAdminProps["createApolloClient"];
2
+ import type { AdminProps as BaseAdminProps } from "@webiny/app-admin";
3
+ export interface AdminProps extends Omit<BaseAdminProps, "createApolloClient" | "createLegacyPlugins"> {
5
4
  children?: React.ReactNode;
6
5
  }
7
6
  export declare const Admin: React.NamedExoticComponent<AdminProps>;
package/Admin.js CHANGED
@@ -1,54 +1,39 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.Admin = void 0;
9
- var _react = _interopRequireWildcard(require("react"));
10
- var _plugins = require("@webiny/plugins");
11
- var _appAdmin = require("@webiny/app-admin");
12
- var _appTenancy = require("@webiny/app-tenancy");
13
- var _appSecurity = require("@webiny/app-security");
14
- var _appI18n = require("@webiny/app-i18n");
15
- var _appI18nContent = require("@webiny/app-i18n-content");
16
- var _appPageBuilder = require("@webiny/app-page-builder");
17
- var _appFormBuilder = require("@webiny/app-form-builder");
18
- var _appHeadlessCms = require("@webiny/app-headless-cms");
19
- var _appAdminRmwc = require("@webiny/app-admin-rmwc");
20
- var _app = require("@webiny/app-file-manager/app");
21
- var _appGraphqlPlayground = require("@webiny/app-graphql-playground");
22
- var _appSecurityAccessManagement = require("@webiny/app-security-access-management");
23
- var _plugins2 = require("@webiny/app/plugins");
24
- var _appFileManagerS = _interopRequireDefault(require("@webiny/app-file-manager-s3"));
25
- var _apolloClientFactory = require("./apolloClientFactory");
26
- var _apolloLinks = _interopRequireDefault(require("./apolloLinks"));
27
- var _ViewCompositionProvider = require("@webiny/app-admin/base/providers/ViewCompositionProvider");
28
- var _appApw = require("@webiny/app-apw");
29
- var _appTenantManager = require("@webiny/app-tenant-manager");
30
- var _appAuditLogs = require("@webiny/app-audit-logs");
31
- var _lexicalEditorPbElement = require("@webiny/lexical-editor-pb-element");
32
- var _lexicalEditorActions = require("@webiny/lexical-editor-actions");
33
- var _appMailer = require("@webiny/app-mailer");
34
- var _appAco = require("@webiny/app-aco");
35
- var _appWebsockets = require("@webiny/app-websockets");
36
- var _appRecordLocking = require("@webiny/app-record-locking");
37
- var _appTrashBin = require("@webiny/app-trash-bin");
38
- var App = function App(props) {
39
- var createApolloClient = props.createApolloClient || _apolloClientFactory.createApolloClient;
40
- var ViewCompositionProvider = (0, _ViewCompositionProvider.createViewCompositionProvider)();
41
- _plugins.plugins.register((0, _plugins2.imagePlugin)(), (0, _appFileManagerS.default)(), _apolloLinks.default);
42
- return /*#__PURE__*/_react.default.createElement(_appAdmin.Admin, {
43
- createApolloClient: createApolloClient
44
- }, /*#__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, {
1
+ import React, { memo } from "react";
2
+ import { Admin as BaseAdmin, 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 { AccessManagement } from "@webiny/app-security-access-management";
8
+ import { imagePlugin } from "@webiny/app/plugins/index.js";
9
+ import fileStorageS3Plugin from "@webiny/app-file-manager-s3";
10
+ import { createApolloClient } from "./apolloClientFactory.js";
11
+ import apolloLinks from "./apolloLinks.js";
12
+ import { AuditLogs } from "@webiny/app-audit-logs";
13
+ import { LexicalEditorActions } from "@webiny/lexical-editor-actions";
14
+ import { Module as MailerSettings } from "@webiny/app-mailer";
15
+ import { Websockets } from "@webiny/app-websockets";
16
+ import { RecordLocking } from "@webiny/app-record-locking";
17
+ import { TrashBinConfigs } from "@webiny/app-trash-bin";
18
+ import { AdvancedContentOrganisation } from "@webiny/app-aco";
19
+ import { Extension as WebsiteBuilder } from "@webiny/app-website-builder/Extension.js";
20
+ import { SchedulerConfigs } from "@webiny/app-headless-cms-scheduler";
21
+ import { Components as WorkflowComponents } from "@webiny/app-workflows";
22
+ import { CmsWorkflows } from "@webiny/app-headless-cms-workflows";
23
+ import { WebsiteBuilderWorkflows } from "@webiny/app-website-builder-workflows";
24
+ const App = props => {
25
+ const createLegacyPlugins = container => {
26
+ return [imagePlugin(), fileStorageS3Plugin(), apolloLinks(container)];
27
+ };
28
+ return /*#__PURE__*/React.createElement(BaseAdmin, {
29
+ createApolloClient: createApolloClient,
30
+ createLegacyPlugins: createLegacyPlugins
31
+ }, /*#__PURE__*/React.createElement(AdminUI, null), /*#__PURE__*/React.createElement(AccessManagement, null), /*#__PURE__*/React.createElement(SystemInstallerProvider, null), /*#__PURE__*/React.createElement(FileManager, null), /*#__PURE__*/React.createElement(GraphQLPlayground, {
45
32
  createApolloClient: createApolloClient
46
- }), /*#__PURE__*/_react.default.createElement(_appI18n.I18N, null), /*#__PURE__*/_react.default.createElement(_appI18nContent.I18NContent, null), /*#__PURE__*/_react.default.createElement(_appAdmin.Provider, {
47
- hoc: ViewCompositionProvider
48
- }), /*#__PURE__*/_react.default.createElement(_appWebsockets.Websockets, null), /*#__PURE__*/_react.default.createElement(_appRecordLocking.RecordLocking, null), /*#__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, {
33
+ }), /*#__PURE__*/React.createElement(Websockets, null), /*#__PURE__*/React.createElement(RecordLocking, null), /*#__PURE__*/React.createElement(LexicalEditorActions, null), /*#__PURE__*/React.createElement(HeadlessCMS, {
49
34
  createApolloClient: createApolloClient
50
- }), /*#__PURE__*/_react.default.createElement(_appApw.AdvancedPublishingWorkflow, null), /*#__PURE__*/_react.default.createElement(_appTenantManager.TenantManager, null), /*#__PURE__*/_react.default.createElement(_appAuditLogs.AuditLogs, null), /*#__PURE__*/_react.default.createElement(_appMailer.Module, null), /*#__PURE__*/_react.default.createElement(_appTrashBin.TrashBinConfigs, null), props.children);
35
+ }), /*#__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), /*#__PURE__*/React.createElement(WorkflowComponents.App.WorkflowsAdminApp, null), /*#__PURE__*/React.createElement(CmsWorkflows, null), /*#__PURE__*/React.createElement(WebsiteBuilderWorkflows, null), props.children);
51
36
  };
52
- var Admin = exports.Admin = /*#__PURE__*/(0, _react.memo)(App);
37
+ export const Admin = /*#__PURE__*/memo(App);
53
38
 
54
39
  //# sourceMappingURL=Admin.js.map
package/Admin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_plugins","_appAdmin","_appTenancy","_appSecurity","_appI18n","_appI18nContent","_appPageBuilder","_appFormBuilder","_appHeadlessCms","_appAdminRmwc","_app","_appGraphqlPlayground","_appSecurityAccessManagement","_plugins2","_appFileManagerS","_interopRequireDefault","_apolloClientFactory","_apolloLinks","_ViewCompositionProvider","_appApw","_appTenantManager","_appAuditLogs","_lexicalEditorPbElement","_lexicalEditorActions","_appMailer","_appAco","_appWebsockets","_appRecordLocking","_appTrashBin","App","props","createApolloClient","defaultApolloClientFactory","ViewCompositionProvider","createViewCompositionProvider","plugins","register","imagePlugin","fileStorageS3Plugin","apolloLinks","default","createElement","Admin","RMWC","Tenancy","Security","AccessManagement","AppInstaller","Folders","FileManager","GraphQLPlayground","I18N","I18NContent","Provider","hoc","Websockets","RecordLocking","PageBuilder","LexicalEditorPlugin","LexicalEditorActions","FormBuilder","HeadlessCMS","AdvancedPublishingWorkflow","TenantManager","AuditLogs","Module","TrashBinConfigs","children","exports","memo"],"sources":["Admin.tsx"],"sourcesContent":["import React, { memo } from \"react\";\nimport { plugins } from \"@webiny/plugins\";\nimport {\n Admin as BaseAdmin,\n AdminProps as BaseAdminProps,\n AppInstaller,\n Provider\n} 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 { PageBuilder } from \"@webiny/app-page-builder\";\nimport { FormBuilder } from \"@webiny/app-form-builder\";\nimport { HeadlessCMS } from \"@webiny/app-headless-cms\";\nimport { RMWC } from \"@webiny/app-admin-rmwc\";\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 { LexicalEditorPlugin } from \"@webiny/lexical-editor-pb-element\";\nimport { LexicalEditorActions } from \"@webiny/lexical-editor-actions\";\nimport { Module as MailerSettings } from \"@webiny/app-mailer\";\nimport { Folders } from \"@webiny/app-aco\";\nimport { Websockets } from \"@webiny/app-websockets\";\nimport { RecordLocking } from \"@webiny/app-record-locking\";\nimport { TrashBinConfigs } from \"@webiny/app-trash-bin\";\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 <RMWC />\n <Tenancy />\n <Security />\n <AccessManagement />\n <AppInstaller />\n <Folders />\n <FileManager />\n <GraphQLPlayground createApolloClient={createApolloClient} />\n <I18N />\n <I18NContent />\n <Provider hoc={ViewCompositionProvider} />\n <Websockets />\n <RecordLocking />\n <PageBuilder />\n <LexicalEditorPlugin />\n <LexicalEditorActions />\n <FormBuilder />\n <HeadlessCMS createApolloClient={createApolloClient} />\n <AdvancedPublishingWorkflow />\n <TenantManager />\n <AuditLogs />\n <MailerSettings />\n <TrashBinConfigs />\n {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["React","memo","Admin","BaseAdmin","SystemInstallerProvider","HeadlessCMS","AdminUI","FileManager","GraphQLPlayground","AccessManagement","imagePlugin","fileStorageS3Plugin","createApolloClient","apolloLinks","AuditLogs","LexicalEditorActions","Module","MailerSettings","Websockets","RecordLocking","TrashBinConfigs","AdvancedContentOrganisation","Extension","WebsiteBuilder","SchedulerConfigs","Components","WorkflowComponents","CmsWorkflows","WebsiteBuilderWorkflows","App","props","createLegacyPlugins","container","createElement","WorkflowsAdminApp","children"],"sources":["Admin.tsx"],"sourcesContent":["import React, { memo } from \"react\";\nimport type { AdminProps as BaseAdminProps } from \"@webiny/app-admin\";\nimport { Admin as BaseAdmin, SystemInstallerProvider } from \"@webiny/app-admin\";\nimport { HeadlessCMS } from \"@webiny/app-headless-cms\";\nimport { AdminUI } from \"@webiny/app-admin-ui\";\nimport { FileManager } from \"@webiny/app-file-manager/app.js\";\nimport { GraphQLPlayground } from \"@webiny/app-graphql-playground\";\nimport { AccessManagement } from \"@webiny/app-security-access-management\";\nimport { imagePlugin } from \"@webiny/app/plugins/index.js\";\nimport fileStorageS3Plugin from \"@webiny/app-file-manager-s3\";\nimport { createApolloClient } from \"./apolloClientFactory.js\";\nimport apolloLinks from \"./apolloLinks.js\";\nimport { AuditLogs } from \"@webiny/app-audit-logs\";\nimport { LexicalEditorActions } from \"@webiny/lexical-editor-actions\";\nimport { Module as MailerSettings } from \"@webiny/app-mailer\";\nimport { Websockets } from \"@webiny/app-websockets\";\nimport { RecordLocking } from \"@webiny/app-record-locking\";\nimport { TrashBinConfigs } from \"@webiny/app-trash-bin\";\nimport { AdvancedContentOrganisation } from \"@webiny/app-aco\";\nimport { Extension as WebsiteBuilder } from \"@webiny/app-website-builder/Extension.js\";\nimport { SchedulerConfigs } from \"@webiny/app-headless-cms-scheduler\";\nimport { Components as WorkflowComponents } from \"@webiny/app-workflows\";\nimport { CmsWorkflows } from \"@webiny/app-headless-cms-workflows\";\nimport { WebsiteBuilderWorkflows } from \"@webiny/app-website-builder-workflows\";\nimport { Container } from \"@webiny/di\";\nimport type { PluginCollection } from \"@webiny/plugins/types.js\";\n\nexport interface AdminProps\n extends Omit<BaseAdminProps, \"createApolloClient\" | \"createLegacyPlugins\"> {\n children?: React.ReactNode;\n}\n\nconst App = (props: AdminProps) => {\n const createLegacyPlugins = (container: Container): PluginCollection => {\n return [imagePlugin(), fileStorageS3Plugin(), apolloLinks(container)];\n };\n\n return (\n <BaseAdmin\n createApolloClient={createApolloClient}\n createLegacyPlugins={createLegacyPlugins}\n >\n <AdminUI />\n <AccessManagement />\n <SystemInstallerProvider />\n <FileManager />\n <GraphQLPlayground createApolloClient={createApolloClient} />\n <Websockets />\n <RecordLocking />\n <LexicalEditorActions />\n <HeadlessCMS createApolloClient={createApolloClient} />\n <AuditLogs />\n <MailerSettings />\n <SchedulerConfigs />\n <TrashBinConfigs />\n <AdvancedContentOrganisation />\n <WebsiteBuilder />\n <WorkflowComponents.App.WorkflowsAdminApp />\n <CmsWorkflows />\n <WebsiteBuilderWorkflows />\n {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AAEnC,SAASC,KAAK,IAAIC,SAAS,EAAEC,uBAAuB,QAAQ,mBAAmB;AAC/E,SAASC,WAAW,QAAQ,0BAA0B;AACtD,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,WAAW,QAAQ,iCAAiC;AAC7D,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,gBAAgB,QAAQ,wCAAwC;AACzE,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,OAAOC,mBAAmB,MAAM,6BAA6B;AAC7D,SAASC,kBAAkB;AAC3B,OAAOC,WAAW;AAClB,SAASC,SAAS,QAAQ,wBAAwB;AAClD,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,MAAM,IAAIC,cAAc,QAAQ,oBAAoB;AAC7D,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAASC,2BAA2B,QAAQ,iBAAiB;AAC7D,SAASC,SAAS,IAAIC,cAAc,QAAQ,0CAA0C;AACtF,SAASC,gBAAgB,QAAQ,oCAAoC;AACrE,SAASC,UAAU,IAAIC,kBAAkB,QAAQ,uBAAuB;AACxE,SAASC,YAAY,QAAQ,oCAAoC;AACjE,SAASC,uBAAuB,QAAQ,uCAAuC;AAS/E,MAAMC,GAAG,GAAIC,KAAiB,IAAK;EAC/B,MAAMC,mBAAmB,GAAIC,SAAoB,IAAuB;IACpE,OAAO,CAACtB,WAAW,CAAC,CAAC,EAAEC,mBAAmB,CAAC,CAAC,EAAEE,WAAW,CAACmB,SAAS,CAAC,CAAC;EACzE,CAAC;EAED,oBACIhC,KAAA,CAAAiC,aAAA,CAAC9B,SAAS;IACNS,kBAAkB,EAAEA,kBAAmB;IACvCmB,mBAAmB,EAAEA;EAAoB,gBAEzC/B,KAAA,CAAAiC,aAAA,CAAC3B,OAAO,MAAE,CAAC,eACXN,KAAA,CAAAiC,aAAA,CAACxB,gBAAgB,MAAE,CAAC,eACpBT,KAAA,CAAAiC,aAAA,CAAC7B,uBAAuB,MAAE,CAAC,eAC3BJ,KAAA,CAAAiC,aAAA,CAAC1B,WAAW,MAAE,CAAC,eACfP,KAAA,CAAAiC,aAAA,CAACzB,iBAAiB;IAACI,kBAAkB,EAAEA;EAAmB,CAAE,CAAC,eAC7DZ,KAAA,CAAAiC,aAAA,CAACf,UAAU,MAAE,CAAC,eACdlB,KAAA,CAAAiC,aAAA,CAACd,aAAa,MAAE,CAAC,eACjBnB,KAAA,CAAAiC,aAAA,CAAClB,oBAAoB,MAAE,CAAC,eACxBf,KAAA,CAAAiC,aAAA,CAAC5B,WAAW;IAACO,kBAAkB,EAAEA;EAAmB,CAAE,CAAC,eACvDZ,KAAA,CAAAiC,aAAA,CAACnB,SAAS,MAAE,CAAC,eACbd,KAAA,CAAAiC,aAAA,CAAChB,cAAc,MAAE,CAAC,eAClBjB,KAAA,CAAAiC,aAAA,CAACT,gBAAgB,MAAE,CAAC,eACpBxB,KAAA,CAAAiC,aAAA,CAACb,eAAe,MAAE,CAAC,eACnBpB,KAAA,CAAAiC,aAAA,CAACZ,2BAA2B,MAAE,CAAC,eAC/BrB,KAAA,CAAAiC,aAAA,CAACV,cAAc,MAAE,CAAC,eAClBvB,KAAA,CAAAiC,aAAA,CAACP,kBAAkB,CAACG,GAAG,CAACK,iBAAiB,MAAE,CAAC,eAC5ClC,KAAA,CAAAiC,aAAA,CAACN,YAAY,MAAE,CAAC,eAChB3B,KAAA,CAAAiC,aAAA,CAACL,uBAAuB,MAAE,CAAC,EAC1BE,KAAK,CAACK,QACA,CAAC;AAEpB,CAAC;AAED,OAAO,MAAMjC,KAAK,gBAAGD,IAAI,CAAa4B,GAAG,CAAC","ignoreList":[]}
package/README.md CHANGED
@@ -1,42 +1,11 @@
1
- # @webiny/app-i18n
2
- [![](https://img.shields.io/npm/dw/@webiny/app-i18n.svg)](https://www.npmjs.com/package/@webiny/app-i18n)
3
- [![](https://img.shields.io/npm/v/@webiny/app-i18n.svg)](https://www.npmjs.com/package/@webiny/app-i18n)
4
- [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
5
- [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
1
+ # @webiny/app-serverless-cms
6
2
 
7
- An app for creating forms that can be embedded into pages created with [Webiny Page Builder](../api-page-builder).
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
- Use together with [@webiny/api-i18n](../api-i18n) package.
7
+ 📘 **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
10
8
 
11
- ## Install
12
- ```
13
- npm install --save @webiny/app-i18n
14
- ```
9
+ ---
15
10
 
16
- Or if you prefer yarn:
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._
@@ -1,54 +1,48 @@
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 _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
- var _apolloClient = _interopRequireDefault(require("apollo-client"));
10
- var _apolloLink = require("apollo-link");
11
- var _apolloLinkBatchHttp = require("apollo-link-batch-http");
12
- var _InMemoryCache = require("@webiny/app/apollo-client/InMemoryCache");
13
- var _plugins = require("@webiny/plugins");
14
- var _ApolloDynamicLink = require("@webiny/app/plugins/ApolloDynamicLink");
15
- var _ApolloCacheObjectIdPlugin = require("@webiny/app/plugins/ApolloCacheObjectIdPlugin");
16
- var _IntrospectionFragmentMatcher = require("@webiny/app/apollo-client/IntrospectionFragmentMatcher");
17
- var createApolloClient = exports.createApolloClient = function createApolloClient(_ref) {
18
- var uri = _ref.uri,
19
- batching = _ref.batching;
20
- var fragmentMatcher = new _IntrospectionFragmentMatcher.IntrospectionFragmentMatcher({
1
+ import ApolloClient from "apollo-client";
2
+ import { ApolloLink } from "apollo-link";
3
+ import { BatchHttpLink } from "apollo-link-batch-http";
4
+ import { InMemoryCache } from "@webiny/app/apollo-client/InMemoryCache.js";
5
+ import { plugins } from "@webiny/plugins";
6
+ import { ApolloDynamicLink } from "@webiny/app/plugins/ApolloDynamicLink.js";
7
+ import { ApolloCacheObjectIdPlugin } from "@webiny/app/plugins/ApolloCacheObjectIdPlugin.js";
8
+ import { IntrospectionFragmentMatcher } from "@webiny/app/apollo-client/IntrospectionFragmentMatcher.js";
9
+ export const createApolloClient = ({
10
+ uri,
11
+ batching
12
+ }) => {
13
+ const fragmentMatcher = new IntrospectionFragmentMatcher({
21
14
  introspectionQueryResultData: {
22
15
  __schema: {
23
16
  types: []
24
17
  }
25
18
  }
26
19
  });
27
- return new _apolloClient.default({
28
- link: _apolloLink.ApolloLink.from([
20
+ return new ApolloClient({
21
+ link: ApolloLink.from([
29
22
  /**
30
23
  * This will process links from plugins on every request.
31
24
  */
32
- new _ApolloDynamicLink.ApolloDynamicLink(),
25
+ new ApolloDynamicLink(),
33
26
  /**
34
27
  * This batches requests made to the API to pack multiple requests into a single HTTP request.
35
28
  * `credentials: "include"` is necessary to attach cookies to requests.
36
29
  */
37
- new _apolloLinkBatchHttp.BatchHttpLink((0, _objectSpread2.default)({
38
- uri: uri,
39
- credentials: "include"
40
- }, batching))]),
41
- cache: new _InMemoryCache.InMemoryCache({
30
+ new BatchHttpLink({
31
+ uri,
32
+ credentials: "include",
33
+ ...batching
34
+ })]),
35
+ cache: new InMemoryCache({
42
36
  addTypename: true,
43
- fragmentMatcher: fragmentMatcher,
44
- dataIdFromObject: function dataIdFromObject(obj) {
37
+ fragmentMatcher,
38
+ dataIdFromObject: obj => {
45
39
  /**
46
40
  * Since every data type coming from API can have a different data structure,
47
41
  * we cannot rely on having an `id` field.
48
42
  */
49
- var getters = _plugins.plugins.byType(_ApolloCacheObjectIdPlugin.ApolloCacheObjectIdPlugin.type);
50
- for (var i = 0; i < getters.length; i++) {
51
- var id = getters[i].getObjectId(obj);
43
+ const getters = plugins.byType(ApolloCacheObjectIdPlugin.type);
44
+ for (let i = 0; i < getters.length; i++) {
45
+ const id = getters[i].getObjectId(obj);
52
46
  if (typeof id !== "undefined") {
53
47
  return id;
54
48
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_apolloClient","_interopRequireDefault","require","_apolloLink","_apolloLinkBatchHttp","_InMemoryCache","_plugins","_ApolloDynamicLink","_ApolloCacheObjectIdPlugin","_IntrospectionFragmentMatcher","createApolloClient","exports","_ref","uri","batching","fragmentMatcher","IntrospectionFragmentMatcher","introspectionQueryResultData","__schema","types","ApolloClient","link","ApolloLink","from","ApolloDynamicLink","BatchHttpLink","_objectSpread2","default","credentials","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\";\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,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,0BAAA,GAAAN,OAAA;AACA,IAAAO,6BAAA,GAAAP,OAAA;AAOO,IAAMQ,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,SAArBA,kBAAkBA,CAAAE,IAAA,EAAoD;EAAA,IAA9CC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;EAC9C,IAAMC,eAAe,GAAG,IAAIC,0DAA4B,CAAC;IACrDC,4BAA4B,EAAE;MAC1BC,QAAQ,EAAE;QACNC,KAAK,EAAE;MACX;IACJ;EACJ,CAAC,CAAC;EAEF,OAAO,IAAIC,qBAAY,CAAC;IACpBC,IAAI,EAAEC,sBAAU,CAACC,IAAI,CAAC;IAClB;AACZ;AACA;IACY,IAAIC,oCAAiB,CAAC,CAAC;IACvB;AACZ;AACA;AACA;IACY,IAAIC,kCAAa,KAAAC,cAAA,CAAAC,OAAA;MAAGd,GAAG,EAAHA,GAAG;MAAEe,WAAW,EAAE;IAAS,GAAKd,QAAQ,CAAE,CAAC,CAClE,CAAC;IACFe,KAAK,EAAE,IAAIC,4BAAa,CAAC;MACrBC,WAAW,EAAE,IAAI;MACjBhB,eAAe,EAAfA,eAAe;MACfiB,gBAAgB,EAAE,SAAAA,iBAAAC,GAAG,EAAI;QACrB;AAChB;AACA;AACA;QACgB,IAAMC,OAAO,GAAGC,gBAAO,CAACC,MAAM,CAC1BC,oDAAyB,CAACC,IAC9B,CAAC;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","ignoreList":[]}
1
+ {"version":3,"names":["ApolloClient","ApolloLink","BatchHttpLink","InMemoryCache","plugins","ApolloDynamicLink","ApolloCacheObjectIdPlugin","IntrospectionFragmentMatcher","createApolloClient","uri","batching","fragmentMatcher","introspectionQueryResultData","__schema","types","link","from","credentials","cache","addTypename","dataIdFromObject","obj","getters","byType","type","i","length","id","getObjectId"],"sources":["apolloClientFactory.ts"],"sourcesContent":["import ApolloClient from \"apollo-client\";\nimport { ApolloLink } from \"apollo-link\";\nimport { BatchHttpLink } from \"apollo-link-batch-http\";\nimport { InMemoryCache } from \"@webiny/app/apollo-client/InMemoryCache.js\";\nimport { plugins } from \"@webiny/plugins\";\nimport { ApolloDynamicLink } from \"@webiny/app/plugins/ApolloDynamicLink.js\";\nimport { ApolloCacheObjectIdPlugin } from \"@webiny/app/plugins/ApolloCacheObjectIdPlugin.js\";\nimport { IntrospectionFragmentMatcher } from \"@webiny/app/apollo-client/IntrospectionFragmentMatcher.js\";\n\nexport interface CreateApolloClientParams {\n uri: string;\n batching?: Pick<BatchHttpLink.Options, \"batchMax\" | \"batchInterval\" | \"batchKey\">;\n}\n\nexport const createApolloClient = ({ uri, batching }: CreateApolloClientParams) => {\n const fragmentMatcher = new IntrospectionFragmentMatcher({\n introspectionQueryResultData: {\n __schema: {\n types: []\n }\n }\n });\n\n return new ApolloClient({\n link: ApolloLink.from([\n /**\n * This will process links from plugins on every request.\n */\n new ApolloDynamicLink(),\n /**\n * This batches requests made to the API to pack multiple requests into a single HTTP request.\n * `credentials: \"include\"` is necessary to attach cookies to requests.\n */\n new BatchHttpLink({ uri, credentials: \"include\", ...batching })\n ]),\n cache: new InMemoryCache({\n addTypename: true,\n fragmentMatcher,\n dataIdFromObject: obj => {\n /**\n * Since every data type coming from API can have a different data structure,\n * we cannot rely on having an `id` field.\n */\n const getters = plugins.byType<ApolloCacheObjectIdPlugin>(\n ApolloCacheObjectIdPlugin.type\n );\n\n for (let i = 0; i < getters.length; i++) {\n const id = getters[i].getObjectId(obj);\n if (typeof id !== \"undefined\") {\n return id;\n }\n }\n\n /**\n * As a fallback, try getting object's `id`.\n */\n return obj.id || null;\n }\n })\n });\n};\n"],"mappings":"AAAA,OAAOA,YAAY,MAAM,eAAe;AACxC,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,aAAa,QAAQ,4CAA4C;AAC1E,SAASC,OAAO,QAAQ,iBAAiB;AACzC,SAASC,iBAAiB,QAAQ,0CAA0C;AAC5E,SAASC,yBAAyB,QAAQ,kDAAkD;AAC5F,SAASC,4BAA4B,QAAQ,2DAA2D;AAOxG,OAAO,MAAMC,kBAAkB,GAAGA,CAAC;EAAEC,GAAG;EAAEC;AAAmC,CAAC,KAAK;EAC/E,MAAMC,eAAe,GAAG,IAAIJ,4BAA4B,CAAC;IACrDK,4BAA4B,EAAE;MAC1BC,QAAQ,EAAE;QACNC,KAAK,EAAE;MACX;IACJ;EACJ,CAAC,CAAC;EAEF,OAAO,IAAId,YAAY,CAAC;IACpBe,IAAI,EAAEd,UAAU,CAACe,IAAI,CAAC;IAClB;AACZ;AACA;IACY,IAAIX,iBAAiB,CAAC,CAAC;IACvB;AACZ;AACA;AACA;IACY,IAAIH,aAAa,CAAC;MAAEO,GAAG;MAAEQ,WAAW,EAAE,SAAS;MAAE,GAAGP;IAAS,CAAC,CAAC,CAClE,CAAC;IACFQ,KAAK,EAAE,IAAIf,aAAa,CAAC;MACrBgB,WAAW,EAAE,IAAI;MACjBR,eAAe;MACfS,gBAAgB,EAAEC,GAAG,IAAI;QACrB;AAChB;AACA;AACA;QACgB,MAAMC,OAAO,GAAGlB,OAAO,CAACmB,MAAM,CAC1BjB,yBAAyB,CAACkB,IAC9B,CAAC;QAED,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,OAAO,CAACI,MAAM,EAAED,CAAC,EAAE,EAAE;UACrC,MAAME,EAAE,GAAGL,OAAO,CAACG,CAAC,CAAC,CAACG,WAAW,CAACP,GAAG,CAAC;UACtC,IAAI,OAAOM,EAAE,KAAK,WAAW,EAAE;YAC3B,OAAOA,EAAE;UACb;QACJ;;QAEA;AAChB;AACA;QACgB,OAAON,GAAG,CAACM,EAAE,IAAI,IAAI;MACzB;IACJ,CAAC;EACL,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
package/apolloLinks.d.ts 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
- declare const _default: (OmitTypenameLinkPlugin | ConsoleLinkPlugin | NetworkErrorLinkPlugin)[];
1
+ import { ConsoleLinkPlugin } from "@webiny/app/plugins/ConsoleLinkPlugin.js";
2
+ import { NetworkErrorLinkPlugin } from "@webiny/app/plugins/NetworkErrorLinkPlugin.js";
3
+ import { OmitTypenameLinkPlugin } from "@webiny/app/plugins/OmitTypenameLinkPlugin.js";
4
+ import { Container } from "@webiny/di";
5
+ declare const _default: (container: Container) => (OmitTypenameLinkPlugin | ConsoleLinkPlugin | NetworkErrorLinkPlugin)[];
5
6
  export default _default;
package/apolloLinks.js CHANGED
@@ -1,24 +1,19 @@
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 = exports.default = [
1
+ import { ConsoleLinkPlugin } from "@webiny/app/plugins/ConsoleLinkPlugin.js";
2
+ import { NetworkErrorLinkPlugin } from "@webiny/app/plugins/NetworkErrorLinkPlugin.js";
3
+ import { OmitTypenameLinkPlugin } from "@webiny/app/plugins/OmitTypenameLinkPlugin.js";
4
+ import { EventPublisher } from "@webiny/app/features/eventPublisher/index.js";
5
+ export default container => [
11
6
  /**
12
7
  * This link removes `__typename` from the variables being sent to the API.
13
8
  */
14
- new _OmitTypenameLinkPlugin.OmitTypenameLinkPlugin(),
9
+ new OmitTypenameLinkPlugin(),
15
10
  /**
16
11
  * This link checks for presence of `extensions.console` in the response and logs all items to browser console.
17
12
  */
18
- new _ConsoleLinkPlugin.ConsoleLinkPlugin(),
13
+ new ConsoleLinkPlugin(),
19
14
  /**
20
15
  * This plugin creates an ApolloLink that checks for `NetworkError` and shows an ErrorOverlay in the browser.
21
16
  */
22
- new _NetworkErrorLinkPlugin.NetworkErrorLinkPlugin()];
17
+ new NetworkErrorLinkPlugin(() => container.resolve(EventPublisher))];
23
18
 
24
19
  //# sourceMappingURL=apolloLinks.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_ConsoleLinkPlugin","require","_NetworkErrorLinkPlugin","_OmitTypenameLinkPlugin","_default","exports","default","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,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AAAoF,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAErE;AACX;AACJ;AACA;AACI,IAAIC,8CAAsB,CAAC,CAAC;AAC5B;AACJ;AACA;AACI,IAAIC,oCAAiB,CAAC,CAAC;AACvB;AACJ;AACA;AACI,IAAIC,8CAAsB,CAAC,CAAC,CAC/B","ignoreList":[]}
1
+ {"version":3,"names":["ConsoleLinkPlugin","NetworkErrorLinkPlugin","OmitTypenameLinkPlugin","EventPublisher","container","resolve"],"sources":["apolloLinks.ts"],"sourcesContent":["import { ConsoleLinkPlugin } from \"@webiny/app/plugins/ConsoleLinkPlugin.js\";\nimport { NetworkErrorLinkPlugin } from \"@webiny/app/plugins/NetworkErrorLinkPlugin.js\";\nimport { OmitTypenameLinkPlugin } from \"@webiny/app/plugins/OmitTypenameLinkPlugin.js\";\nimport { Container } from \"@webiny/di\";\nimport { EventPublisher } from \"@webiny/app/features/eventPublisher/index.js\";\n\nexport default (container: Container) => [\n /**\n * This link removes `__typename` from the variables being sent to the API.\n */\n new OmitTypenameLinkPlugin(),\n /**\n * This link checks for presence of `extensions.console` in the response and logs all items to browser console.\n */\n new ConsoleLinkPlugin(),\n /**\n * This plugin creates an ApolloLink that checks for `NetworkError` and shows an ErrorOverlay in the browser.\n */\n new NetworkErrorLinkPlugin(() => container.resolve(EventPublisher))\n];\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,0CAA0C;AAC5E,SAASC,sBAAsB,QAAQ,+CAA+C;AACtF,SAASC,sBAAsB,QAAQ,+CAA+C;AAEtF,SAASC,cAAc,QAAQ,8CAA8C;AAE7E,eAAgBC,SAAoB,IAAK;AACrC;AACJ;AACA;AACI,IAAIF,sBAAsB,CAAC,CAAC;AAC5B;AACJ;AACA;AACI,IAAIF,iBAAiB,CAAC,CAAC;AACvB;AACJ;AACA;AACI,IAAIC,sBAAsB,CAAC,MAAMG,SAAS,CAACC,OAAO,CAACF,cAAc,CAAC,CAAC,CACtE","ignoreList":[]}
package/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- export { Admin } from "./Admin";
2
- export type { AdminProps } from "./Admin";
3
- export { useApp, useWcp, useUserMenuItem, useUserMenu, useMenuItem, useNavigation, useTags, AddLogo, AddMenu, AddRoute, AddUserMenuItem, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, LocaleSelector, LocaleSelectorRenderer, Brand, BrandRenderer, Provider, Compose, CompositionScope, Plugins, Plugin, makeComposable, makeDecoratable, createComponentPlugin, createProviderPlugin, createDecorator, createProvider, MenuItem, MenuItemRenderer, MenuItems, Navigation, NavigationRenderer, Tags, UserMenu, UserMenuHandle, UserMenuHandleRenderer, UserMenuItems, UserMenuItem, UserMenuItemRenderer, AddGraphQLQuerySelection } from "@webiny/app-admin";
4
- export type { ComposeProps, HigherOrderComponent, Decorator, ProviderProps, LayoutProps, LoginScreenProps, MenuContext, MenuData, MenuItemsProps, MenuProps, UserMenuItemsProps, UserMenuItemProps, UserMenuItemData } from "@webiny/app-admin";
5
- export { HasPermission, useSecurity, usePermission } from "@webiny/app-security";
6
- export { useTenancy } from "@webiny/app-tenancy";
7
- export type { Tenant } from "@webiny/app-tenancy";
8
- export * from "./apolloClientFactory";
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,375 +1,6 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- Admin: true,
8
- useApp: true,
9
- useWcp: true,
10
- useUserMenuItem: true,
11
- useUserMenu: true,
12
- useMenuItem: true,
13
- useNavigation: true,
14
- useTags: true,
15
- AddLogo: true,
16
- AddMenu: true,
17
- AddRoute: true,
18
- AddUserMenuItem: true,
19
- Dashboard: true,
20
- DashboardRenderer: true,
21
- Layout: true,
22
- LayoutRenderer: true,
23
- LoginScreen: true,
24
- LoginScreenRenderer: true,
25
- LocaleSelector: true,
26
- LocaleSelectorRenderer: true,
27
- Brand: true,
28
- BrandRenderer: true,
29
- Provider: true,
30
- Compose: true,
31
- CompositionScope: true,
32
- Plugins: true,
33
- Plugin: true,
34
- makeComposable: true,
35
- makeDecoratable: true,
36
- createComponentPlugin: true,
37
- createProviderPlugin: true,
38
- createDecorator: true,
39
- createProvider: true,
40
- MenuItem: true,
41
- MenuItemRenderer: true,
42
- MenuItems: true,
43
- Navigation: true,
44
- NavigationRenderer: true,
45
- Tags: true,
46
- UserMenu: true,
47
- UserMenuHandle: true,
48
- UserMenuHandleRenderer: true,
49
- UserMenuItems: true,
50
- UserMenuItem: true,
51
- UserMenuItemRenderer: true,
52
- AddGraphQLQuerySelection: true,
53
- HasPermission: true,
54
- useSecurity: true,
55
- usePermission: true,
56
- useTenancy: true
57
- };
58
- Object.defineProperty(exports, "AddGraphQLQuerySelection", {
59
- enumerable: true,
60
- get: function get() {
61
- return _appAdmin.AddGraphQLQuerySelection;
62
- }
63
- });
64
- Object.defineProperty(exports, "AddLogo", {
65
- enumerable: true,
66
- get: function get() {
67
- return _appAdmin.AddLogo;
68
- }
69
- });
70
- Object.defineProperty(exports, "AddMenu", {
71
- enumerable: true,
72
- get: function get() {
73
- return _appAdmin.AddMenu;
74
- }
75
- });
76
- Object.defineProperty(exports, "AddRoute", {
77
- enumerable: true,
78
- get: function get() {
79
- return _appAdmin.AddRoute;
80
- }
81
- });
82
- Object.defineProperty(exports, "AddUserMenuItem", {
83
- enumerable: true,
84
- get: function get() {
85
- return _appAdmin.AddUserMenuItem;
86
- }
87
- });
88
- Object.defineProperty(exports, "Admin", {
89
- enumerable: true,
90
- get: function get() {
91
- return _Admin.Admin;
92
- }
93
- });
94
- Object.defineProperty(exports, "Brand", {
95
- enumerable: true,
96
- get: function get() {
97
- return _appAdmin.Brand;
98
- }
99
- });
100
- Object.defineProperty(exports, "BrandRenderer", {
101
- enumerable: true,
102
- get: function get() {
103
- return _appAdmin.BrandRenderer;
104
- }
105
- });
106
- Object.defineProperty(exports, "Compose", {
107
- enumerable: true,
108
- get: function get() {
109
- return _appAdmin.Compose;
110
- }
111
- });
112
- Object.defineProperty(exports, "CompositionScope", {
113
- enumerable: true,
114
- get: function get() {
115
- return _appAdmin.CompositionScope;
116
- }
117
- });
118
- Object.defineProperty(exports, "Dashboard", {
119
- enumerable: true,
120
- get: function get() {
121
- return _appAdmin.Dashboard;
122
- }
123
- });
124
- Object.defineProperty(exports, "DashboardRenderer", {
125
- enumerable: true,
126
- get: function get() {
127
- return _appAdmin.DashboardRenderer;
128
- }
129
- });
130
- Object.defineProperty(exports, "HasPermission", {
131
- enumerable: true,
132
- get: function get() {
133
- return _appSecurity.HasPermission;
134
- }
135
- });
136
- Object.defineProperty(exports, "Layout", {
137
- enumerable: true,
138
- get: function get() {
139
- return _appAdmin.Layout;
140
- }
141
- });
142
- Object.defineProperty(exports, "LayoutRenderer", {
143
- enumerable: true,
144
- get: function get() {
145
- return _appAdmin.LayoutRenderer;
146
- }
147
- });
148
- Object.defineProperty(exports, "LocaleSelector", {
149
- enumerable: true,
150
- get: function get() {
151
- return _appAdmin.LocaleSelector;
152
- }
153
- });
154
- Object.defineProperty(exports, "LocaleSelectorRenderer", {
155
- enumerable: true,
156
- get: function get() {
157
- return _appAdmin.LocaleSelectorRenderer;
158
- }
159
- });
160
- Object.defineProperty(exports, "LoginScreen", {
161
- enumerable: true,
162
- get: function get() {
163
- return _appAdmin.LoginScreen;
164
- }
165
- });
166
- Object.defineProperty(exports, "LoginScreenRenderer", {
167
- enumerable: true,
168
- get: function get() {
169
- return _appAdmin.LoginScreenRenderer;
170
- }
171
- });
172
- Object.defineProperty(exports, "MenuItem", {
173
- enumerable: true,
174
- get: function get() {
175
- return _appAdmin.MenuItem;
176
- }
177
- });
178
- Object.defineProperty(exports, "MenuItemRenderer", {
179
- enumerable: true,
180
- get: function get() {
181
- return _appAdmin.MenuItemRenderer;
182
- }
183
- });
184
- Object.defineProperty(exports, "MenuItems", {
185
- enumerable: true,
186
- get: function get() {
187
- return _appAdmin.MenuItems;
188
- }
189
- });
190
- Object.defineProperty(exports, "Navigation", {
191
- enumerable: true,
192
- get: function get() {
193
- return _appAdmin.Navigation;
194
- }
195
- });
196
- Object.defineProperty(exports, "NavigationRenderer", {
197
- enumerable: true,
198
- get: function get() {
199
- return _appAdmin.NavigationRenderer;
200
- }
201
- });
202
- Object.defineProperty(exports, "Plugin", {
203
- enumerable: true,
204
- get: function get() {
205
- return _appAdmin.Plugin;
206
- }
207
- });
208
- Object.defineProperty(exports, "Plugins", {
209
- enumerable: true,
210
- get: function get() {
211
- return _appAdmin.Plugins;
212
- }
213
- });
214
- Object.defineProperty(exports, "Provider", {
215
- enumerable: true,
216
- get: function get() {
217
- return _appAdmin.Provider;
218
- }
219
- });
220
- Object.defineProperty(exports, "Tags", {
221
- enumerable: true,
222
- get: function get() {
223
- return _appAdmin.Tags;
224
- }
225
- });
226
- Object.defineProperty(exports, "UserMenu", {
227
- enumerable: true,
228
- get: function get() {
229
- return _appAdmin.UserMenu;
230
- }
231
- });
232
- Object.defineProperty(exports, "UserMenuHandle", {
233
- enumerable: true,
234
- get: function get() {
235
- return _appAdmin.UserMenuHandle;
236
- }
237
- });
238
- Object.defineProperty(exports, "UserMenuHandleRenderer", {
239
- enumerable: true,
240
- get: function get() {
241
- return _appAdmin.UserMenuHandleRenderer;
242
- }
243
- });
244
- Object.defineProperty(exports, "UserMenuItem", {
245
- enumerable: true,
246
- get: function get() {
247
- return _appAdmin.UserMenuItem;
248
- }
249
- });
250
- Object.defineProperty(exports, "UserMenuItemRenderer", {
251
- enumerable: true,
252
- get: function get() {
253
- return _appAdmin.UserMenuItemRenderer;
254
- }
255
- });
256
- Object.defineProperty(exports, "UserMenuItems", {
257
- enumerable: true,
258
- get: function get() {
259
- return _appAdmin.UserMenuItems;
260
- }
261
- });
262
- Object.defineProperty(exports, "createComponentPlugin", {
263
- enumerable: true,
264
- get: function get() {
265
- return _appAdmin.createComponentPlugin;
266
- }
267
- });
268
- Object.defineProperty(exports, "createDecorator", {
269
- enumerable: true,
270
- get: function get() {
271
- return _appAdmin.createDecorator;
272
- }
273
- });
274
- Object.defineProperty(exports, "createProvider", {
275
- enumerable: true,
276
- get: function get() {
277
- return _appAdmin.createProvider;
278
- }
279
- });
280
- Object.defineProperty(exports, "createProviderPlugin", {
281
- enumerable: true,
282
- get: function get() {
283
- return _appAdmin.createProviderPlugin;
284
- }
285
- });
286
- Object.defineProperty(exports, "makeComposable", {
287
- enumerable: true,
288
- get: function get() {
289
- return _appAdmin.makeComposable;
290
- }
291
- });
292
- Object.defineProperty(exports, "makeDecoratable", {
293
- enumerable: true,
294
- get: function get() {
295
- return _appAdmin.makeDecoratable;
296
- }
297
- });
298
- Object.defineProperty(exports, "useApp", {
299
- enumerable: true,
300
- get: function get() {
301
- return _appAdmin.useApp;
302
- }
303
- });
304
- Object.defineProperty(exports, "useMenuItem", {
305
- enumerable: true,
306
- get: function get() {
307
- return _appAdmin.useMenuItem;
308
- }
309
- });
310
- Object.defineProperty(exports, "useNavigation", {
311
- enumerable: true,
312
- get: function get() {
313
- return _appAdmin.useNavigation;
314
- }
315
- });
316
- Object.defineProperty(exports, "usePermission", {
317
- enumerable: true,
318
- get: function get() {
319
- return _appSecurity.usePermission;
320
- }
321
- });
322
- Object.defineProperty(exports, "useSecurity", {
323
- enumerable: true,
324
- get: function get() {
325
- return _appSecurity.useSecurity;
326
- }
327
- });
328
- Object.defineProperty(exports, "useTags", {
329
- enumerable: true,
330
- get: function get() {
331
- return _appAdmin.useTags;
332
- }
333
- });
334
- Object.defineProperty(exports, "useTenancy", {
335
- enumerable: true,
336
- get: function get() {
337
- return _appTenancy.useTenancy;
338
- }
339
- });
340
- Object.defineProperty(exports, "useUserMenu", {
341
- enumerable: true,
342
- get: function get() {
343
- return _appAdmin.useUserMenu;
344
- }
345
- });
346
- Object.defineProperty(exports, "useUserMenuItem", {
347
- enumerable: true,
348
- get: function get() {
349
- return _appAdmin.useUserMenuItem;
350
- }
351
- });
352
- Object.defineProperty(exports, "useWcp", {
353
- enumerable: true,
354
- get: function get() {
355
- return _appAdmin.useWcp;
356
- }
357
- });
358
- var _Admin = require("./Admin");
359
- var _appAdmin = require("@webiny/app-admin");
360
- var _appSecurity = require("@webiny/app-security");
361
- var _appTenancy = require("@webiny/app-tenancy");
362
- var _apolloClientFactory = require("./apolloClientFactory");
363
- Object.keys(_apolloClientFactory).forEach(function (key) {
364
- if (key === "default" || key === "__esModule") return;
365
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
366
- if (key in exports && exports[key] === _apolloClientFactory[key]) return;
367
- Object.defineProperty(exports, key, {
368
- enumerable: true,
369
- get: function get() {
370
- return _apolloClientFactory[key];
371
- }
372
- });
373
- });
1
+ export { Admin } from "./Admin.js";
2
+ export { useApp, useWcp, useTags, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, Brand, BrandRenderer, Provider, Compose, CompositionScope, Plugins, Plugin, AdminConfig, makeComposable, makeDecoratable, createComponentPlugin, createProviderPlugin, createDecorator, createProvider, Navigation, NavigationRenderer, Tags, UserMenu, UserMenuHandle, UserMenuHandleRenderer, UserMenuItem, UserMenuItemRenderer, AddGraphQLQuerySelection } from "@webiny/app-admin";
3
+ export { useTenantContext } from "@webiny/app-admin";
4
+ export * from "./apolloClientFactory.js";
374
5
 
375
6
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_Admin","require","_appAdmin","_appSecurity","_appTenancy","_apolloClientFactory","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"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 CompositionScope,\n Plugins,\n Plugin,\n makeComposable,\n makeDecoratable,\n createComponentPlugin,\n createProviderPlugin,\n createDecorator,\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 Decorator,\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 * from \"./apolloClientFactory\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AA+DA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,oBAAA,GAAAJ,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAF,oBAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,oBAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,oBAAA,CAAAI,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["Admin","useApp","useWcp","useTags","Dashboard","DashboardRenderer","Layout","LayoutRenderer","LoginScreen","LoginScreenRenderer","Brand","BrandRenderer","Provider","Compose","CompositionScope","Plugins","Plugin","AdminConfig","makeComposable","makeDecoratable","createComponentPlugin","createProviderPlugin","createDecorator","createProvider","Navigation","NavigationRenderer","Tags","UserMenu","UserMenuHandle","UserMenuHandleRenderer","UserMenuItem","UserMenuItemRenderer","AddGraphQLQuerySelection","useTenantContext"],"sources":["index.tsx"],"sourcesContent":["export { Admin } from \"./Admin.js\";\nexport type { AdminProps } from \"./Admin.js\";\nexport {\n useApp,\n useWcp,\n useTags,\n Dashboard,\n DashboardRenderer,\n Layout,\n LayoutRenderer,\n LoginScreen,\n LoginScreenRenderer,\n Brand,\n BrandRenderer,\n Provider,\n Compose,\n CompositionScope,\n Plugins,\n Plugin,\n AdminConfig,\n makeComposable,\n makeDecoratable,\n createComponentPlugin,\n createProviderPlugin,\n createDecorator,\n createProvider,\n Navigation,\n NavigationRenderer,\n Tags,\n UserMenu,\n UserMenuHandle,\n UserMenuHandleRenderer,\n UserMenuItem,\n UserMenuItemRenderer,\n AddGraphQLQuerySelection\n} from \"@webiny/app-admin\";\nexport type {\n ComposeProps,\n HigherOrderComponent,\n Decorator,\n ProviderProps,\n LayoutProps,\n LoginScreenProps\n} from \"@webiny/app-admin\";\n\nexport { useTenantContext } from \"@webiny/app-admin\";\nexport type { Tenant } from \"@webiny/app-admin\";\n\nexport * from \"./apolloClientFactory.js\";\n"],"mappings":"AAAA,SAASA,KAAK;AAEd,SACIC,MAAM,EACNC,MAAM,EACNC,OAAO,EACPC,SAAS,EACTC,iBAAiB,EACjBC,MAAM,EACNC,cAAc,EACdC,WAAW,EACXC,mBAAmB,EACnBC,KAAK,EACLC,aAAa,EACbC,QAAQ,EACRC,OAAO,EACPC,gBAAgB,EAChBC,OAAO,EACPC,MAAM,EACNC,WAAW,EACXC,cAAc,EACdC,eAAe,EACfC,qBAAqB,EACrBC,oBAAoB,EACpBC,eAAe,EACfC,cAAc,EACdC,UAAU,EACVC,kBAAkB,EAClBC,IAAI,EACJC,QAAQ,EACRC,cAAc,EACdC,sBAAsB,EACtBC,YAAY,EACZC,oBAAoB,EACpBC,wBAAwB,QACrB,mBAAmB;AAU1B,SAASC,gBAAgB,QAAQ,mBAAmB;AAGpD","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@webiny/app-serverless-cms",
3
- "version": "6.0.0-beta.0",
3
+ "version": "6.0.0-rc.0",
4
+ "type": "module",
4
5
  "main": "index.js",
5
6
  "repository": {
6
7
  "type": "git",
@@ -9,33 +10,30 @@
9
10
  "author": "Webiny Ltd.",
10
11
  "license": "MIT",
11
12
  "dependencies": {
12
- "@babel/runtime": "7.24.1",
13
13
  "@emotion/react": "11.10.8",
14
- "@webiny/app": "6.0.0-beta.0",
15
- "@webiny/app-aco": "6.0.0-beta.0",
16
- "@webiny/app-admin": "6.0.0-beta.0",
17
- "@webiny/app-admin-rmwc": "6.0.0-beta.0",
18
- "@webiny/app-apw": "6.0.0-beta.0",
19
- "@webiny/app-audit-logs": "6.0.0-beta.0",
20
- "@webiny/app-file-manager": "6.0.0-beta.0",
21
- "@webiny/app-file-manager-s3": "6.0.0-beta.0",
22
- "@webiny/app-form-builder": "6.0.0-beta.0",
23
- "@webiny/app-graphql-playground": "6.0.0-beta.0",
24
- "@webiny/app-headless-cms": "6.0.0-beta.0",
25
- "@webiny/app-i18n": "6.0.0-beta.0",
26
- "@webiny/app-i18n-content": "6.0.0-beta.0",
27
- "@webiny/app-mailer": "6.0.0-beta.0",
28
- "@webiny/app-page-builder": "6.0.0-beta.0",
29
- "@webiny/app-record-locking": "6.0.0-beta.0",
30
- "@webiny/app-security": "6.0.0-beta.0",
31
- "@webiny/app-security-access-management": "6.0.0-beta.0",
32
- "@webiny/app-tenancy": "6.0.0-beta.0",
33
- "@webiny/app-tenant-manager": "6.0.0-beta.0",
34
- "@webiny/app-trash-bin": "6.0.0-beta.0",
35
- "@webiny/app-websockets": "6.0.0-beta.0",
36
- "@webiny/lexical-editor-actions": "6.0.0-beta.0",
37
- "@webiny/lexical-editor-pb-element": "6.0.0-beta.0",
38
- "@webiny/plugins": "6.0.0-beta.0",
14
+ "@webiny/app": "6.0.0-rc.0",
15
+ "@webiny/app-aco": "6.0.0-rc.0",
16
+ "@webiny/app-admin": "6.0.0-rc.0",
17
+ "@webiny/app-admin-ui": "6.0.0-rc.0",
18
+ "@webiny/app-audit-logs": "6.0.0-rc.0",
19
+ "@webiny/app-file-manager": "6.0.0-rc.0",
20
+ "@webiny/app-file-manager-s3": "6.0.0-rc.0",
21
+ "@webiny/app-graphql-playground": "6.0.0-rc.0",
22
+ "@webiny/app-headless-cms": "6.0.0-rc.0",
23
+ "@webiny/app-headless-cms-scheduler": "6.0.0-rc.0",
24
+ "@webiny/app-headless-cms-workflows": "6.0.0-rc.0",
25
+ "@webiny/app-mailer": "6.0.0-rc.0",
26
+ "@webiny/app-record-locking": "6.0.0-rc.0",
27
+ "@webiny/app-security-access-management": "6.0.0-rc.0",
28
+ "@webiny/app-trash-bin": "6.0.0-rc.0",
29
+ "@webiny/app-website-builder": "6.0.0-rc.0",
30
+ "@webiny/app-website-builder-workflows": "6.0.0-rc.0",
31
+ "@webiny/app-websockets": "6.0.0-rc.0",
32
+ "@webiny/app-workflows": "6.0.0-rc.0",
33
+ "@webiny/di": "0.2.3",
34
+ "@webiny/lexical-editor-actions": "6.0.0-rc.0",
35
+ "@webiny/lexical-theme": "6.0.0-rc.0",
36
+ "@webiny/plugins": "6.0.0-rc.0",
39
37
  "apollo-cache": "1.3.5",
40
38
  "apollo-client": "2.6.10",
41
39
  "apollo-link": "1.2.14",
@@ -45,31 +43,26 @@
45
43
  "react-dom": "18.2.0"
46
44
  },
47
45
  "devDependencies": {
48
- "@babel/cli": "7.24.1",
49
- "@babel/core": "7.24.3",
50
- "@babel/preset-env": "7.24.3",
51
- "@babel/preset-react": "7.24.1",
52
- "@babel/preset-typescript": "7.24.1",
53
- "@emotion/babel-plugin": "11.11.0",
54
- "@webiny/cli": "6.0.0-beta.0",
55
- "@webiny/project-utils": "6.0.0-beta.0",
56
- "babel-plugin-named-asset-import": "1.0.0-next.fb6e6f70",
57
- "rimraf": "5.0.5",
58
- "ttypescript": "1.5.15",
59
- "typescript": "4.7.4"
46
+ "@emotion/babel-plugin": "11.13.5",
47
+ "@webiny/build-tools": "6.0.0-rc.0",
48
+ "rimraf": "6.1.3",
49
+ "typescript": "5.9.3"
60
50
  },
61
51
  "publishConfig": {
62
52
  "access": "public",
63
53
  "directory": "dist"
64
54
  },
65
- "scripts": {
66
- "build": "yarn webiny run build",
67
- "watch": "yarn webiny run watch"
68
- },
69
55
  "svgo": {
70
56
  "plugins": {
71
57
  "removeViewBox": false
72
58
  }
73
59
  },
74
- "gitHead": "aa8dbfbbd5ad13ec271adba6f2431e02991a300f"
60
+ "adio": {
61
+ "ignore": {
62
+ "dependencies": [
63
+ "@webiny/lexical-theme"
64
+ ]
65
+ }
66
+ },
67
+ "gitHead": "0f2aa699f4642e550ab62c96fcd050e8d02345c9"
75
68
  }
package/styles.scss CHANGED
@@ -1,9 +1,9 @@
1
- // Import admin app styles
2
- @import "~@webiny/app-admin/styles.scss";
3
- //
4
- // Import `RichTextEditor` styles
5
- @import "~@webiny/app-admin/components/RichTextEditor/styles.scss";
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 `ui` styles
5
+ // ⚠️ DEPRECATED but needed for backward compatibility ⚠️
6
+ @use "~@webiny/ui/styles.scss" as *;
7
+
8
+ // Import Lexical theme styles
9
+ @import "@webiny/lexical-theme/theme.css";