@webiny/app-serverless-cms 0.0.0-unstable.9bd236cf5e → 0.0.0-unstable.9f53ea597d

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
2
  import type { AdminProps as BaseAdminProps } from "@webiny/app-admin";
3
- export interface AdminProps extends Omit<BaseAdminProps, "createApolloClient"> {
4
- createApolloClient?: BaseAdminProps["createApolloClient"];
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,45 +1,40 @@
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";
1
+ import react, { memo } from "react";
2
+ import { Admin, SystemInstallerProvider } from "@webiny/app-admin";
8
3
  import { HeadlessCMS } from "@webiny/app-headless-cms";
9
4
  import { AdminUI } from "@webiny/app-admin-ui";
10
- import { FileManager } from "@webiny/app-file-manager/app";
5
+ import { FileManager } from "@webiny/app-file-manager/app.js";
11
6
  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";
7
+ import { SdkPlayground } from "@webiny/app-sdk-playground";
8
+ import { imagePlugin } from "@webiny/app/plugins/index.js";
9
+ import { createApolloClient } from "./apolloClientFactory.js";
10
+ import apolloLinks from "./apolloLinks.js";
20
11
  import { AuditLogs } from "@webiny/app-audit-logs";
21
12
  import { LexicalEditorActions } from "@webiny/lexical-editor-actions";
22
- import { Module as MailerSettings } from "@webiny/app-mailer";
13
+ import { Extension } from "@webiny/app-mailer";
23
14
  import { Websockets } from "@webiny/app-websockets";
24
15
  import { RecordLocking } from "@webiny/app-record-locking";
25
- import { TrashBinConfigs } from "@webiny/app-trash-bin";
16
+ import { TrashBinConfigs } from "@webiny/app-admin/presentation/trashBin/index.js";
26
17
  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, {
34
- createApolloClient: createApolloClient
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, {
36
- createApolloClient: createApolloClient
37
- }), /*#__PURE__*/React.createElement(I18N, null), /*#__PURE__*/React.createElement(I18NContent, null), /*#__PURE__*/React.createElement(Provider, {
38
- hoc: ViewCompositionProvider
39
- }), /*#__PURE__*/React.createElement(Websockets, null), /*#__PURE__*/React.createElement(RecordLocking, null), /*#__PURE__*/React.createElement(LexicalEditorActions, null), /*#__PURE__*/React.createElement(HeadlessCMS, {
40
- createApolloClient: createApolloClient
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);
18
+ import { Extension as Extension_js_Extension } from "@webiny/app-website-builder/Extension.js";
19
+ import { SchedulerModule } from "@webiny/app-scheduler";
20
+ import { CmsScheduler } from "@webiny/app-headless-cms-scheduler";
21
+ import { WorkflowsAdminApp } from "@webiny/app-workflows";
22
+ import { CmsWorkflows } from "@webiny/app-headless-cms-workflows";
23
+ import { WebsiteBuilderWorkflows } from "@webiny/app-website-builder-workflows";
24
+ import { WbScheduler } from "@webiny/app-website-builder-scheduler";
25
+ import { Webhooks } from "@webiny/webhooks/admin";
26
+ import { BackgroundTasks } from "@webiny/background-tasks/admin";
27
+ const App = (props)=>{
28
+ const createLegacyPlugins = (container)=>[
29
+ imagePlugin(),
30
+ apolloLinks(container)
31
+ ];
32
+ return /*#__PURE__*/ react.createElement(Admin, {
33
+ createApolloClient: createApolloClient,
34
+ createLegacyPlugins: createLegacyPlugins
35
+ }, /*#__PURE__*/ react.createElement(AdminUI, null), /*#__PURE__*/ react.createElement(SystemInstallerProvider, null), /*#__PURE__*/ react.createElement(GraphQLPlayground, null), /*#__PURE__*/ react.createElement(SdkPlayground, null), /*#__PURE__*/ react.createElement(Websockets, null), /*#__PURE__*/ react.createElement(RecordLocking, null), /*#__PURE__*/ react.createElement(LexicalEditorActions, null), /*#__PURE__*/ react.createElement(HeadlessCMS, null), /*#__PURE__*/ react.createElement(FileManager, null), /*#__PURE__*/ react.createElement(AuditLogs, null), /*#__PURE__*/ react.createElement(Extension, null), /*#__PURE__*/ react.createElement(SchedulerModule, null), /*#__PURE__*/ react.createElement(CmsScheduler, null), /*#__PURE__*/ react.createElement(TrashBinConfigs, null), /*#__PURE__*/ react.createElement(AdvancedContentOrganisation, null), /*#__PURE__*/ react.createElement(Extension_js_Extension, null), /*#__PURE__*/ react.createElement(WorkflowsAdminApp, null), /*#__PURE__*/ react.createElement(CmsWorkflows, null), /*#__PURE__*/ react.createElement(WebsiteBuilderWorkflows, null), /*#__PURE__*/ react.createElement(WbScheduler, null), /*#__PURE__*/ react.createElement(Webhooks, null), /*#__PURE__*/ react.createElement(BackgroundTasks, null), props.children);
42
36
  };
43
- export const Admin = /*#__PURE__*/memo(App);
37
+ const Admin_Admin = /*#__PURE__*/ memo(App);
38
+ export { Admin_Admin as Admin };
44
39
 
45
40
  //# sourceMappingURL=Admin.js.map
package/Admin.js.map CHANGED
@@ -1 +1 @@
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":[]}
1
+ {"version":3,"file":"Admin.js","sources":["../src/Admin.tsx"],"sourcesContent":["import React, { memo } from \"react\";\nimport type { AdminProps as BaseAdminProps } from \"@webiny/app-admin\";\nimport { Admin as BaseAdmin, SystemInstallerProvider } from \"@webiny/app-admin\";\nimport { HeadlessCMS } from \"@webiny/app-headless-cms\";\nimport { AdminUI } from \"@webiny/app-admin-ui\";\nimport { FileManager } from \"@webiny/app-file-manager/app.js\";\nimport { GraphQLPlayground } from \"@webiny/app-graphql-playground\";\nimport { SdkPlayground } from \"@webiny/app-sdk-playground\";\nimport { imagePlugin } from \"@webiny/app/plugins/index.js\";\nimport { createApolloClient } from \"./apolloClientFactory.js\";\nimport apolloLinks from \"./apolloLinks.js\";\nimport { AuditLogs } from \"@webiny/app-audit-logs\";\nimport { LexicalEditorActions } from \"@webiny/lexical-editor-actions\";\nimport { Extension as MailerSettings } from \"@webiny/app-mailer\";\nimport { Websockets } from \"@webiny/app-websockets\";\nimport { RecordLocking } from \"@webiny/app-record-locking\";\nimport { TrashBinConfigs } from \"@webiny/app-admin/presentation/trashBin/index.js\";\nimport { AdvancedContentOrganisation } from \"@webiny/app-aco\";\nimport { Extension as WebsiteBuilder } from \"@webiny/app-website-builder/Extension.js\";\nimport { SchedulerModule } from \"@webiny/app-scheduler\";\nimport { CmsScheduler } from \"@webiny/app-headless-cms-scheduler\";\nimport { WorkflowsAdminApp } from \"@webiny/app-workflows\";\nimport { CmsWorkflows } from \"@webiny/app-headless-cms-workflows\";\nimport { WebsiteBuilderWorkflows } from \"@webiny/app-website-builder-workflows\";\nimport { Container } from \"@webiny/di\";\nimport type { PluginCollection } from \"@webiny/plugins/types.js\";\nimport { WbScheduler } from \"@webiny/app-website-builder-scheduler\";\nimport { Webhooks } from \"@webiny/webhooks/admin\";\nimport { BackgroundTasks } from \"@webiny/background-tasks/admin\";\n\nexport interface AdminProps extends Omit<\n BaseAdminProps,\n \"createApolloClient\" | \"createLegacyPlugins\"\n> {\n children?: React.ReactNode;\n}\n\nconst App = (props: AdminProps) => {\n const createLegacyPlugins = (container: Container): PluginCollection => {\n return [imagePlugin(), apolloLinks(container)];\n };\n\n return (\n <BaseAdmin\n createApolloClient={createApolloClient}\n createLegacyPlugins={createLegacyPlugins}\n >\n <AdminUI />\n <SystemInstallerProvider />\n <GraphQLPlayground />\n <SdkPlayground />\n <Websockets />\n <RecordLocking />\n <LexicalEditorActions />\n <HeadlessCMS />\n <FileManager />\n <AuditLogs />\n <MailerSettings />\n <SchedulerModule />\n <CmsScheduler />\n <TrashBinConfigs />\n <AdvancedContentOrganisation />\n <WebsiteBuilder />\n <WorkflowsAdminApp />\n <CmsWorkflows />\n <WebsiteBuilderWorkflows />\n <WbScheduler />\n <Webhooks />\n <BackgroundTasks />\n {props.children}\n </BaseAdmin>\n );\n};\n\nexport const Admin = memo<AdminProps>(App);\n"],"names":["App","props","createLegacyPlugins","container","imagePlugin","apolloLinks","BaseAdmin","createApolloClient","AdminUI","SystemInstallerProvider","GraphQLPlayground","SdkPlayground","Websockets","RecordLocking","LexicalEditorActions","HeadlessCMS","FileManager","AuditLogs","MailerSettings","SchedulerModule","CmsScheduler","TrashBinConfigs","AdvancedContentOrganisation","WebsiteBuilder","WorkflowsAdminApp","CmsWorkflows","WebsiteBuilderWorkflows","WbScheduler","Webhooks","BackgroundTasks","Admin","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,MAAMA,MAAM,CAACC;IACT,MAAMC,sBAAsB,CAACC,YAClB;YAACC;YAAeC,YAAYF;SAAW;IAGlD,OAAO,WAAP,GACI,oBAACG,OAASA;QACN,oBAAoBC;QACpB,qBAAqBL;qBAErB,oBAACM,SAAOA,OAAAA,WAAAA,GACR,oBAACC,yBAAuBA,OAAAA,WAAAA,GACxB,oBAACC,mBAAiBA,OAAAA,WAAAA,GAClB,oBAACC,eAAaA,OAAAA,WAAAA,GACd,oBAACC,YAAUA,OAAAA,WAAAA,GACX,oBAACC,eAAaA,OAAAA,WAAAA,GACd,oBAACC,sBAAoBA,OAAAA,WAAAA,GACrB,oBAACC,aAAWA,OAAAA,WAAAA,GACZ,oBAACC,aAAWA,OAAAA,WAAAA,GACZ,oBAACC,WAASA,OAAAA,WAAAA,GACV,oBAACC,WAAcA,OAAAA,WAAAA,GACf,oBAACC,iBAAeA,OAAAA,WAAAA,GAChB,oBAACC,cAAYA,OAAAA,WAAAA,GACb,oBAACC,iBAAeA,OAAAA,WAAAA,GAChB,oBAACC,6BAA2BA,OAAAA,WAAAA,GAC5B,oBAACC,wBAAcA,OAAAA,WAAAA,GACf,oBAACC,mBAAiBA,OAAAA,WAAAA,GAClB,oBAACC,cAAYA,OAAAA,WAAAA,GACb,oBAACC,yBAAuBA,OAAAA,WAAAA,GACxB,oBAACC,aAAWA,OAAAA,WAAAA,GACZ,oBAACC,UAAQA,OAAAA,WAAAA,GACT,oBAACC,iBAAeA,OACf5B,MAAM,QAAQ;AAG3B;AAEO,MAAM6B,cAAQ,WAAHA,GAAGC,KAAiB/B"}
package/README.md CHANGED
@@ -1,42 +1,11 @@
1
- # @webiny/app-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,60 +1,42 @@
1
- import ApolloClient from "apollo-client";
1
+ import apollo_client from "apollo-client";
2
2
  import { ApolloLink } from "apollo-link";
3
3
  import { BatchHttpLink } from "apollo-link-batch-http";
4
- import { InMemoryCache } from "@webiny/app/apollo-client/InMemoryCache";
4
+ import { InMemoryCache } from "@webiny/app/apollo-client/InMemoryCache.js";
5
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([
22
- /**
23
- * This will process links from plugins on every request.
24
- */
25
- new ApolloDynamicLink(),
26
- /**
27
- * This batches requests made to the API to pack multiple requests into a single HTTP request.
28
- * `credentials: "include"` is necessary to attach cookies to requests.
29
- */
30
- new BatchHttpLink({
31
- uri,
32
- credentials: "include",
33
- ...batching
34
- })]),
35
- cache: new InMemoryCache({
36
- addTypename: true,
37
- fragmentMatcher,
38
- dataIdFromObject: obj => {
39
- /**
40
- * Since every data type coming from API can have a different data structure,
41
- * we cannot rely on having an `id` field.
42
- */
43
- const getters = plugins.byType(ApolloCacheObjectIdPlugin.type);
44
- for (let i = 0; i < getters.length; i++) {
45
- const id = getters[i].getObjectId(obj);
46
- if (typeof id !== "undefined") {
47
- return id;
48
- }
6
+ import { ApolloDynamicLink } from "@webiny/app/plugins/ApolloDynamicLink.js";
7
+ import { ApolloCacheObjectIdPlugin } from "@webiny/app/plugins/ApolloCacheObjectIdPlugin.js";
8
+ import { IntrospectionFragmentMatcher } from "@webiny/app/apollo-client/IntrospectionFragmentMatcher.js";
9
+ const createApolloClient = ({ uri, batching })=>{
10
+ const fragmentMatcher = new IntrospectionFragmentMatcher({
11
+ introspectionQueryResultData: {
12
+ __schema: {
13
+ types: []
14
+ }
49
15
  }
50
-
51
- /**
52
- * As a fallback, try getting object's `id`.
53
- */
54
- return obj.id || null;
55
- }
56
- })
57
- });
16
+ });
17
+ return new apollo_client({
18
+ link: ApolloLink.from([
19
+ new ApolloDynamicLink(),
20
+ new BatchHttpLink({
21
+ uri,
22
+ credentials: "include",
23
+ ...batching
24
+ })
25
+ ]),
26
+ cache: new InMemoryCache({
27
+ addTypename: true,
28
+ fragmentMatcher,
29
+ dataIdFromObject: (obj)=>{
30
+ const getters = plugins.byType(ApolloCacheObjectIdPlugin.type);
31
+ for(let i = 0; i < getters.length; i++){
32
+ const id = getters[i].getObjectId(obj);
33
+ if (void 0 !== id) return id;
34
+ }
35
+ return obj.id || null;
36
+ }
37
+ })
38
+ });
58
39
  };
40
+ export { createApolloClient };
59
41
 
60
42
  //# sourceMappingURL=apolloClientFactory.js.map
@@ -1 +1 @@
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":[]}
1
+ {"version":3,"file":"apolloClientFactory.js","sources":["../src/apolloClientFactory.ts"],"sourcesContent":["import ApolloClient from \"apollo-client\";\nimport { ApolloLink } from \"apollo-link\";\nimport { BatchHttpLink } from \"apollo-link-batch-http\";\nimport { InMemoryCache } from \"@webiny/app/apollo-client/InMemoryCache.js\";\nimport { plugins } from \"@webiny/plugins\";\nimport { ApolloDynamicLink } from \"@webiny/app/plugins/ApolloDynamicLink.js\";\nimport { ApolloCacheObjectIdPlugin } from \"@webiny/app/plugins/ApolloCacheObjectIdPlugin.js\";\nimport { IntrospectionFragmentMatcher } from \"@webiny/app/apollo-client/IntrospectionFragmentMatcher.js\";\n\nexport interface CreateApolloClientParams {\n uri: string;\n batching?: Pick<BatchHttpLink.Options, \"batchMax\" | \"batchInterval\" | \"batchKey\">;\n}\n\nexport const createApolloClient = ({ uri, batching }: CreateApolloClientParams) => {\n const fragmentMatcher = new IntrospectionFragmentMatcher({\n introspectionQueryResultData: {\n __schema: {\n types: []\n }\n }\n });\n\n return new ApolloClient({\n link: ApolloLink.from([\n /**\n * This will process links from plugins on every request.\n */\n new ApolloDynamicLink(),\n /**\n * This batches requests made to the API to pack multiple requests into a single HTTP request.\n * `credentials: \"include\"` is necessary to attach cookies to requests.\n */\n new BatchHttpLink({ uri, credentials: \"include\", ...batching })\n ]),\n cache: new InMemoryCache({\n addTypename: true,\n fragmentMatcher,\n dataIdFromObject: obj => {\n /**\n * Since every data type coming from API can have a different data structure,\n * we cannot rely on having an `id` field.\n */\n const getters = plugins.byType<ApolloCacheObjectIdPlugin>(\n ApolloCacheObjectIdPlugin.type\n );\n\n for (let i = 0; i < getters.length; i++) {\n const id = getters[i].getObjectId(obj);\n if (typeof id !== \"undefined\") {\n return id;\n }\n }\n\n /**\n * As a fallback, try getting object's `id`.\n */\n return obj.id || null;\n }\n })\n });\n};\n"],"names":["createApolloClient","uri","batching","fragmentMatcher","IntrospectionFragmentMatcher","ApolloClient","ApolloLink","ApolloDynamicLink","BatchHttpLink","InMemoryCache","obj","getters","plugins","ApolloCacheObjectIdPlugin","i","id"],"mappings":";;;;;;;;AAcO,MAAMA,qBAAqB,CAAC,EAAEC,GAAG,EAAEC,QAAQ,EAA4B;IAC1E,MAAMC,kBAAkB,IAAIC,6BAA6B;QACrD,8BAA8B;YAC1B,UAAU;gBACN,OAAO,EAAE;YACb;QACJ;IACJ;IAEA,OAAO,IAAIC,cAAa;QACpB,MAAMC,WAAW,IAAI,CAAC;YAIlB,IAAIC;YAKJ,IAAIC,cAAc;gBAAEP;gBAAK,aAAa;gBAAW,GAAGC,QAAQ;YAAC;SAChE;QACD,OAAO,IAAIO,cAAc;YACrB,aAAa;YACbN;YACA,kBAAkBO,CAAAA;gBAKd,MAAMC,UAAUC,QAAQ,MAAM,CAC1BC,0BAA0B,IAAI;gBAGlC,IAAK,IAAIC,IAAI,GAAGA,IAAIH,QAAQ,MAAM,EAAEG,IAAK;oBACrC,MAAMC,KAAKJ,OAAO,CAACG,EAAE,CAAC,WAAW,CAACJ;oBAClC,IAAI,AAAc,WAAPK,IACP,OAAOA;gBAEf;gBAKA,OAAOL,IAAI,EAAE,IAAI;YACrB;QACJ;IACJ;AACJ"}
package/apolloLinks.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { ConsoleLinkPlugin } from "@webiny/app/plugins/ConsoleLinkPlugin";
2
- import { NetworkErrorLinkPlugin } from "@webiny/app/plugins/NetworkErrorLinkPlugin";
3
- import { OmitTypenameLinkPlugin } from "@webiny/app/plugins/OmitTypenameLinkPlugin";
4
- declare const _default: (ConsoleLinkPlugin | NetworkErrorLinkPlugin | OmitTypenameLinkPlugin)[];
1
+ import { ConsoleLinkPlugin } from "@webiny/app/plugins/ConsoleLinkPlugin.js";
2
+ import { NetworkErrorLinkPlugin } from "@webiny/app/plugins/NetworkErrorLinkPlugin.js";
3
+ import { OmitTypenameLinkPlugin } from "@webiny/app/plugins/OmitTypenameLinkPlugin.js";
4
+ import { Container } from "@webiny/di";
5
5
  export default _default;
6
+ declare function _default(container: Container): (ConsoleLinkPlugin | NetworkErrorLinkPlugin | OmitTypenameLinkPlugin)[];
package/apolloLinks.js CHANGED
@@ -1,18 +1,12 @@
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 [
5
- /**
6
- * This link removes `__typename` from the variables being sent to the API.
7
- */
8
- new OmitTypenameLinkPlugin(),
9
- /**
10
- * This link checks for presence of `extensions.console` in the response and logs all items to browser console.
11
- */
12
- new ConsoleLinkPlugin(),
13
- /**
14
- * This plugin creates an ApolloLink that checks for `NetworkError` and shows an ErrorOverlay in the browser.
15
- */
16
- new 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 { EventPublisher } from "@webiny/app/features/eventPublisher/index.js";
5
+ const apolloLinks = (container)=>[
6
+ new OmitTypenameLinkPlugin(),
7
+ new ConsoleLinkPlugin(),
8
+ new NetworkErrorLinkPlugin(()=>container.resolve(EventPublisher))
9
+ ];
10
+ export default apolloLinks;
17
11
 
18
12
  //# sourceMappingURL=apolloLinks.js.map
@@ -1 +1 @@
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":[]}
1
+ {"version":3,"file":"apolloLinks.js","sources":["../src/apolloLinks.ts"],"sourcesContent":["import { ConsoleLinkPlugin } from \"@webiny/app/plugins/ConsoleLinkPlugin.js\";\nimport { NetworkErrorLinkPlugin } from \"@webiny/app/plugins/NetworkErrorLinkPlugin.js\";\nimport { OmitTypenameLinkPlugin } from \"@webiny/app/plugins/OmitTypenameLinkPlugin.js\";\nimport { Container } from \"@webiny/di\";\nimport { EventPublisher } from \"@webiny/app/features/eventPublisher/index.js\";\n\nexport default (container: Container) => [\n /**\n * This link removes `__typename` from the variables being sent to the API.\n */\n new OmitTypenameLinkPlugin(),\n /**\n * This link checks for presence of `extensions.console` in the response and logs all items to browser console.\n */\n new ConsoleLinkPlugin(),\n /**\n * This plugin creates an ApolloLink that checks for `NetworkError` and shows an ErrorOverlay in the browser.\n */\n new NetworkErrorLinkPlugin(() => container.resolve(EventPublisher))\n];\n"],"names":["container","OmitTypenameLinkPlugin","ConsoleLinkPlugin","NetworkErrorLinkPlugin","EventPublisher"],"mappings":";;;;AAMA,oBAAgB,CAAAA,YAAyB;QAIrC,IAAIC;QAIJ,IAAIC;QAIJ,IAAIC,uBAAuB,IAAMH,UAAU,OAAO,CAACI;KACvD"}
package/index.d.ts CHANGED
@@ -1,9 +1,7 @@
1
- export { Admin } from "./Admin";
2
- export type { AdminProps } from "./Admin";
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";
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
4
  export type { ComposeProps, HigherOrderComponent, Decorator, ProviderProps, LayoutProps, LoginScreenProps } 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 { IsTenant, IsRootTenant, IsNotRootTenant, useCurrentTenant } from "@webiny/app-tenant-manager";
9
- export * from "./apolloClientFactory";
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,8 +1,3 @@
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
1
+ export * from "./apolloClientFactory.js";
2
+ export { Admin } from "./Admin.js";
3
+ export { AddGraphQLQuerySelection, AdminConfig, Brand, BrandRenderer, Compose, CompositionScope, Dashboard, DashboardRenderer, Layout, LayoutRenderer, LoginScreen, LoginScreenRenderer, Navigation, NavigationRenderer, Plugin, Plugins, Provider, Tags, UserMenu, UserMenuHandle, UserMenuHandleRenderer, UserMenuItem, UserMenuItemRenderer, createComponentPlugin, createDecorator, createProvider, createProviderPlugin, makeComposable, makeDecoratable, useApp, useTags, useTenantContext, useWcp } from "@webiny/app-admin";
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@webiny/app-serverless-cms",
3
- "version": "0.0.0-unstable.9bd236cf5e",
4
- "main": "index.js",
3
+ "version": "0.0.0-unstable.9f53ea597d",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": "./index.js",
7
+ "./*": "./*"
8
+ },
5
9
  "repository": {
6
10
  "type": "git",
7
11
  "url": "https://github.com/webiny/webiny-js.git"
@@ -9,53 +13,47 @@
9
13
  "author": "Webiny Ltd.",
10
14
  "license": "MIT",
11
15
  "dependencies": {
12
- "@emotion/react": "11.10.8",
13
- "@webiny/app": "0.0.0-unstable.9bd236cf5e",
14
- "@webiny/app-aco": "0.0.0-unstable.9bd236cf5e",
15
- "@webiny/app-admin": "0.0.0-unstable.9bd236cf5e",
16
- "@webiny/app-admin-ui": "0.0.0-unstable.9bd236cf5e",
17
- "@webiny/app-apw": "0.0.0-unstable.9bd236cf5e",
18
- "@webiny/app-audit-logs": "0.0.0-unstable.9bd236cf5e",
19
- "@webiny/app-file-manager": "0.0.0-unstable.9bd236cf5e",
20
- "@webiny/app-file-manager-s3": "0.0.0-unstable.9bd236cf5e",
21
- "@webiny/app-graphql-playground": "0.0.0-unstable.9bd236cf5e",
22
- "@webiny/app-headless-cms": "0.0.0-unstable.9bd236cf5e",
23
- "@webiny/app-headless-cms-scheduler": "0.0.0-unstable.9bd236cf5e",
24
- "@webiny/app-i18n": "0.0.0-unstable.9bd236cf5e",
25
- "@webiny/app-i18n-content": "0.0.0-unstable.9bd236cf5e",
26
- "@webiny/app-mailer": "0.0.0-unstable.9bd236cf5e",
27
- "@webiny/app-record-locking": "0.0.0-unstable.9bd236cf5e",
28
- "@webiny/app-security": "0.0.0-unstable.9bd236cf5e",
29
- "@webiny/app-security-access-management": "0.0.0-unstable.9bd236cf5e",
30
- "@webiny/app-tenancy": "0.0.0-unstable.9bd236cf5e",
31
- "@webiny/app-tenant-manager": "0.0.0-unstable.9bd236cf5e",
32
- "@webiny/app-trash-bin": "0.0.0-unstable.9bd236cf5e",
33
- "@webiny/app-website-builder": "0.0.0-unstable.9bd236cf5e",
34
- "@webiny/app-websockets": "0.0.0-unstable.9bd236cf5e",
35
- "@webiny/lexical-editor-actions": "0.0.0-unstable.9bd236cf5e",
36
- "@webiny/lexical-theme": "0.0.0-unstable.9bd236cf5e",
37
- "@webiny/plugins": "0.0.0-unstable.9bd236cf5e",
16
+ "@emotion/react": "11.14.0",
17
+ "@webiny/app": "0.0.0-unstable.9f53ea597d",
18
+ "@webiny/app-aco": "0.0.0-unstable.9f53ea597d",
19
+ "@webiny/app-admin": "0.0.0-unstable.9f53ea597d",
20
+ "@webiny/app-admin-ui": "0.0.0-unstable.9f53ea597d",
21
+ "@webiny/app-audit-logs": "0.0.0-unstable.9f53ea597d",
22
+ "@webiny/app-file-manager": "0.0.0-unstable.9f53ea597d",
23
+ "@webiny/app-graphql-playground": "0.0.0-unstable.9f53ea597d",
24
+ "@webiny/app-headless-cms": "0.0.0-unstable.9f53ea597d",
25
+ "@webiny/app-headless-cms-scheduler": "0.0.0-unstable.9f53ea597d",
26
+ "@webiny/app-headless-cms-workflows": "0.0.0-unstable.9f53ea597d",
27
+ "@webiny/app-mailer": "0.0.0-unstable.9f53ea597d",
28
+ "@webiny/app-record-locking": "0.0.0-unstable.9f53ea597d",
29
+ "@webiny/app-scheduler": "0.0.0-unstable.9f53ea597d",
30
+ "@webiny/app-sdk-playground": "0.0.0-unstable.9f53ea597d",
31
+ "@webiny/app-website-builder": "0.0.0-unstable.9f53ea597d",
32
+ "@webiny/app-website-builder-scheduler": "0.0.0-unstable.9f53ea597d",
33
+ "@webiny/app-website-builder-workflows": "0.0.0-unstable.9f53ea597d",
34
+ "@webiny/app-websockets": "0.0.0-unstable.9f53ea597d",
35
+ "@webiny/app-workflows": "0.0.0-unstable.9f53ea597d",
36
+ "@webiny/background-tasks": "0.0.0-unstable.9f53ea597d",
37
+ "@webiny/di": "1.0.2",
38
+ "@webiny/lexical-editor-actions": "0.0.0-unstable.9f53ea597d",
39
+ "@webiny/lexical-theme": "0.0.0-unstable.9f53ea597d",
40
+ "@webiny/plugins": "0.0.0-unstable.9f53ea597d",
41
+ "@webiny/webhooks": "0.0.0-unstable.9f53ea597d",
38
42
  "apollo-cache": "1.3.5",
39
43
  "apollo-client": "2.6.10",
40
44
  "apollo-link": "1.2.14",
41
45
  "apollo-link-batch-http": "1.2.14",
42
46
  "apollo-utilities": "1.3.4",
43
- "react": "18.2.0",
44
- "react-dom": "18.2.0"
47
+ "react": "18.3.1",
48
+ "react-dom": "18.3.1"
45
49
  },
46
50
  "devDependencies": {
47
- "@emotion/babel-plugin": "11.11.0",
48
- "@webiny/project-utils": "0.0.0-unstable.9bd236cf5e",
49
- "rimraf": "6.0.1",
50
- "typescript": "5.3.3"
51
+ "@webiny/build-tools": "0.0.0-unstable.9f53ea597d",
52
+ "rimraf": "6.1.3",
53
+ "typescript": "7.0.2"
51
54
  },
52
55
  "publishConfig": {
53
- "access": "public",
54
- "directory": "dist"
55
- },
56
- "scripts": {
57
- "build": "node ../cli/bin.js run build",
58
- "watch": "node ../cli/bin.js run watch"
56
+ "access": "public"
59
57
  },
60
58
  "svgo": {
61
59
  "plugins": {
@@ -69,5 +67,7 @@
69
67
  ]
70
68
  }
71
69
  },
72
- "gitHead": "9bd236cf5e689f209a11bec089207dcc2d41a53c"
70
+ "webiny": {
71
+ "publishFrom": "dist"
72
+ }
73
73
  }
package/styles.scss CHANGED
@@ -1,16 +1,5 @@
1
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
-
8
- // Import `RichTextEditor` styles
9
- @import "~@webiny/app-admin/components/RichTextEditor/styles.scss";
10
- @import "~@webiny/app-admin/components/RichTextEditor/tools/header/styles.scss";
11
- @import "~@webiny/app-admin/components/RichTextEditor/tools/paragraph/styles.scss";
12
- @import "~@webiny/app-admin/components/RichTextEditor/tools/textColor/styles.scss";
13
- @import "~@webiny/app-admin/components/RichTextEditor/tools/image/styles.scss";
2
+ @use "~@webiny/app-admin-ui/styles.scss" as *;
14
3
 
15
4
  // Import Lexical theme styles
16
- @import "~@webiny/lexical-theme/theme.css";
5
+ @import "@webiny/lexical-theme/theme.css";
package/index.js.map DELETED
@@ -1 +0,0 @@
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":[]}