@webiny/app-headless-cms 0.0.0-unstable.e53eceafb5 → 0.0.0-unstable.f9f12f52a0
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/config/contentEntries/list/Browser/AdvancedSearch/FieldRenderer.d.ts +2 -2
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/FieldRenderer.js +1 -2
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/FieldRenderer.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/EntryAction.d.ts +2 -2
- package/admin/config/contentEntries/list/Browser/EntryAction.js +1 -2
- package/admin/config/contentEntries/list/Browser/EntryAction.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/FolderAction.d.ts +2 -2
- package/admin/config/contentEntries/list/Browser/FolderAction.js +1 -2
- package/admin/config/contentEntries/list/Browser/FolderAction.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/Table/Column.d.ts +2 -2
- package/admin/config/contentEntries/list/Browser/Table/Column.js +1 -2
- package/admin/config/contentEntries/list/Browser/Table/Column.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/index.js +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/index.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/SingletonContentEntry.js +2 -2
- package/admin/views/contentEntries/ContentEntry/SingletonContentEntry.js.map +1 -1
- package/package.json +30 -30
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AcoConfig, AdvancedSearchFieldRendererConfig as FieldRendererConfig } from "@webiny/app-aco";
|
|
3
|
-
export { FieldRendererConfig };
|
|
2
|
+
import { AcoConfig, type AdvancedSearchFieldRendererConfig as FieldRendererConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { FieldRendererConfig };
|
|
4
4
|
export interface FieldRendererProps extends React.ComponentProps<typeof AcoConfig.AdvancedSearch.FieldRenderer> {
|
|
5
5
|
modelIds?: string[];
|
|
6
6
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AcoConfig
|
|
2
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
3
3
|
import { useModel } from "../../../../../components/ModelProvider";
|
|
4
4
|
const {
|
|
5
5
|
AdvancedSearch
|
|
6
6
|
} = AcoConfig;
|
|
7
|
-
export { FieldRendererConfig };
|
|
8
7
|
const BaseFieldRenderer = ({
|
|
9
8
|
modelIds = [],
|
|
10
9
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","AcoConfig","
|
|
1
|
+
{"version":3,"names":["React","AcoConfig","useModel","AdvancedSearch","BaseFieldRenderer","modelIds","props","model","length","includes","modelId","createElement","FieldRenderer","Object","assign","useInputField","FieldType"],"sources":["FieldRenderer.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n AcoConfig,\n type AdvancedSearchFieldRendererConfig as FieldRendererConfig\n} from \"@webiny/app-aco\";\nimport { useModel } from \"~/admin/components/ModelProvider\";\n\nconst { AdvancedSearch } = AcoConfig;\n\nexport type { FieldRendererConfig };\n\nexport interface FieldRendererProps\n extends React.ComponentProps<typeof AcoConfig.AdvancedSearch.FieldRenderer> {\n modelIds?: string[];\n}\n\nconst BaseFieldRenderer = ({ modelIds = [], ...props }: FieldRendererProps) => {\n const { model } = useModel();\n\n if (modelIds.length > 0 && !modelIds.includes(model.modelId)) {\n return null;\n }\n\n return (\n <AcoConfig>\n <AdvancedSearch.FieldRenderer {...props} />\n </AcoConfig>\n );\n};\n\nexport const FieldRenderer = Object.assign(BaseFieldRenderer, {\n useInputField: AdvancedSearch.FieldRenderer.useInputField,\n FieldType: AdvancedSearch.FieldRenderer.FieldType\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,SAAS,QAEN,iBAAiB;AACxB,SAASC,QAAQ;AAEjB,MAAM;EAAEC;AAAe,CAAC,GAAGF,SAAS;AASpC,MAAMG,iBAAiB,GAAGA,CAAC;EAAEC,QAAQ,GAAG,EAAE;EAAE,GAAGC;AAA0B,CAAC,KAAK;EAC3E,MAAM;IAAEC;EAAM,CAAC,GAAGL,QAAQ,CAAC,CAAC;EAE5B,IAAIG,QAAQ,CAACG,MAAM,GAAG,CAAC,IAAI,CAACH,QAAQ,CAACI,QAAQ,CAACF,KAAK,CAACG,OAAO,CAAC,EAAE;IAC1D,OAAO,IAAI;EACf;EAEA,oBACIV,KAAA,CAAAW,aAAA,CAACV,SAAS,qBACND,KAAA,CAAAW,aAAA,CAACR,cAAc,CAACS,aAAa,EAAKN,KAAQ,CACnC,CAAC;AAEpB,CAAC;AAED,OAAO,MAAMM,aAAa,GAAGC,MAAM,CAACC,MAAM,CAACV,iBAAiB,EAAE;EAC1DW,aAAa,EAAEZ,cAAc,CAACS,aAAa,CAACG,aAAa;EACzDC,SAAS,EAAEb,cAAc,CAACS,aAAa,CAACI;AAC5C,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AcoConfig, RecordActionConfig } from "@webiny/app-aco";
|
|
3
|
-
export { RecordActionConfig as EntryActionConfig };
|
|
2
|
+
import { AcoConfig, type RecordActionConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { RecordActionConfig as EntryActionConfig };
|
|
4
4
|
export interface EntryActionProps extends React.ComponentProps<typeof AcoConfig.Record.Action> {
|
|
5
5
|
modelIds?: string[];
|
|
6
6
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { makeDecoratable } from "@webiny/react-composition";
|
|
3
|
-
import { AcoConfig
|
|
3
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
4
4
|
import { IsApplicableToCurrentModel } from "../../../IsApplicableToCurrentModel";
|
|
5
5
|
const {
|
|
6
6
|
Record
|
|
7
7
|
} = AcoConfig;
|
|
8
|
-
export { RecordActionConfig as EntryActionConfig };
|
|
9
8
|
const BaseEntryAction = makeDecoratable("EntryAction", ({
|
|
10
9
|
modelIds = [],
|
|
11
10
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","makeDecoratable","AcoConfig","
|
|
1
|
+
{"version":3,"names":["React","makeDecoratable","AcoConfig","IsApplicableToCurrentModel","Record","BaseEntryAction","modelIds","props","createElement","Action","EntryAction","Object","assign","OptionsMenuItem","OptionsMenuLink"],"sources":["EntryAction.tsx"],"sourcesContent":["import React from \"react\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\nimport { AcoConfig, type RecordActionConfig } from \"@webiny/app-aco\";\nimport { IsApplicableToCurrentModel } from \"~/admin/config/IsApplicableToCurrentModel\";\n\nconst { Record } = AcoConfig;\n\nexport type { RecordActionConfig as EntryActionConfig };\n\nexport interface EntryActionProps extends React.ComponentProps<typeof AcoConfig.Record.Action> {\n modelIds?: string[];\n}\n\nconst BaseEntryAction = makeDecoratable(\n \"EntryAction\",\n ({ modelIds = [], ...props }: EntryActionProps) => {\n return (\n <AcoConfig>\n <IsApplicableToCurrentModel modelIds={modelIds}>\n <Record.Action {...props} />\n </IsApplicableToCurrentModel>\n </AcoConfig>\n );\n }\n);\n\nexport const EntryAction = Object.assign(BaseEntryAction, {\n OptionsMenuItem: Record.Action.OptionsMenuItem,\n OptionsMenuLink: Record.Action.OptionsMenuLink\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,2BAA2B;AAC3D,SAASC,SAAS,QAAiC,iBAAiB;AACpE,SAASC,0BAA0B;AAEnC,MAAM;EAAEC;AAAO,CAAC,GAAGF,SAAS;AAQ5B,MAAMG,eAAe,GAAGJ,eAAe,CACnC,aAAa,EACb,CAAC;EAAEK,QAAQ,GAAG,EAAE;EAAE,GAAGC;AAAwB,CAAC,KAAK;EAC/C,oBACIP,KAAA,CAAAQ,aAAA,CAACN,SAAS,qBACNF,KAAA,CAAAQ,aAAA,CAACL,0BAA0B;IAACG,QAAQ,EAAEA;EAAS,gBAC3CN,KAAA,CAAAQ,aAAA,CAACJ,MAAM,CAACK,MAAM,EAAKF,KAAQ,CACH,CACrB,CAAC;AAEpB,CACJ,CAAC;AAED,OAAO,MAAMG,WAAW,GAAGC,MAAM,CAACC,MAAM,CAACP,eAAe,EAAE;EACtDQ,eAAe,EAAET,MAAM,CAACK,MAAM,CAACI,eAAe;EAC9CC,eAAe,EAAEV,MAAM,CAACK,MAAM,CAACK;AACnC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AcoConfig, FolderActionConfig } from "@webiny/app-aco";
|
|
3
|
-
export { FolderActionConfig };
|
|
2
|
+
import { AcoConfig, type FolderActionConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { FolderActionConfig };
|
|
4
4
|
export interface FolderActionProps extends React.ComponentProps<typeof AcoConfig.Folder.Action> {
|
|
5
5
|
modelIds?: string[];
|
|
6
6
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AcoConfig
|
|
2
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
3
3
|
import { useModel } from "../../../../hooks";
|
|
4
4
|
const {
|
|
5
5
|
Folder
|
|
6
6
|
} = AcoConfig;
|
|
7
|
-
export { FolderActionConfig };
|
|
8
7
|
const BaseFolderAction = ({
|
|
9
8
|
modelIds = [],
|
|
10
9
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","AcoConfig","
|
|
1
|
+
{"version":3,"names":["React","AcoConfig","useModel","Folder","BaseFolderAction","modelIds","props","model","length","includes","modelId","createElement","Action","FolderAction","Object","assign","OptionsMenuItem"],"sources":["FolderAction.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, type FolderActionConfig } from \"@webiny/app-aco\";\nimport { useModel } from \"~/admin/hooks\";\n\nconst { Folder } = AcoConfig;\n\nexport type { FolderActionConfig };\n\nexport interface FolderActionProps extends React.ComponentProps<typeof AcoConfig.Folder.Action> {\n modelIds?: string[];\n}\n\nconst BaseFolderAction = ({ modelIds = [], ...props }: FolderActionProps) => {\n const { model } = useModel();\n\n if (modelIds.length > 0 && !modelIds.includes(model.modelId)) {\n return null;\n }\n\n return (\n <AcoConfig>\n <Folder.Action {...props} />\n </AcoConfig>\n );\n};\n\nexport const FolderAction = Object.assign(BaseFolderAction, {\n OptionsMenuItem: Folder.Action.OptionsMenuItem\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAiC,iBAAiB;AACpE,SAASC,QAAQ;AAEjB,MAAM;EAAEC;AAAO,CAAC,GAAGF,SAAS;AAQ5B,MAAMG,gBAAgB,GAAGA,CAAC;EAAEC,QAAQ,GAAG,EAAE;EAAE,GAAGC;AAAyB,CAAC,KAAK;EACzE,MAAM;IAAEC;EAAM,CAAC,GAAGL,QAAQ,CAAC,CAAC;EAE5B,IAAIG,QAAQ,CAACG,MAAM,GAAG,CAAC,IAAI,CAACH,QAAQ,CAACI,QAAQ,CAACF,KAAK,CAACG,OAAO,CAAC,EAAE;IAC1D,OAAO,IAAI;EACf;EAEA,oBACIV,KAAA,CAAAW,aAAA,CAACV,SAAS,qBACND,KAAA,CAAAW,aAAA,CAACR,MAAM,CAACS,MAAM,EAAKN,KAAQ,CACpB,CAAC;AAEpB,CAAC;AAED,OAAO,MAAMO,YAAY,GAAGC,MAAM,CAACC,MAAM,CAACX,gBAAgB,EAAE;EACxDY,eAAe,EAAEb,MAAM,CAACS,MAAM,CAACI;AACnC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AcoConfig, TableColumnConfig as ColumnConfig } from "@webiny/app-aco";
|
|
2
|
+
import { AcoConfig, type TableColumnConfig as ColumnConfig } from "@webiny/app-aco";
|
|
3
3
|
import type { TableItem } from "../../../../../../types";
|
|
4
|
-
export { ColumnConfig };
|
|
4
|
+
export type { ColumnConfig };
|
|
5
5
|
export interface ColumnProps extends React.ComponentProps<typeof AcoConfig.Table.Column> {
|
|
6
6
|
modelIds?: string[];
|
|
7
7
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { makeDecoratable } from "@webiny/react-composition";
|
|
3
|
-
import { AcoConfig
|
|
3
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
4
4
|
import { IsApplicableToCurrentModel } from "../../../../IsApplicableToCurrentModel";
|
|
5
5
|
const {
|
|
6
6
|
Table
|
|
7
7
|
} = AcoConfig;
|
|
8
|
-
export { ColumnConfig };
|
|
9
8
|
const BaseColumnComponent = ({
|
|
10
9
|
modelIds = [],
|
|
11
10
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","makeDecoratable","AcoConfig","
|
|
1
|
+
{"version":3,"names":["React","makeDecoratable","AcoConfig","IsApplicableToCurrentModel","Table","BaseColumnComponent","modelIds","props","createElement","Column","BaseColumn","Object","assign","useTableRow","createUseTableRow","isFolderRow"],"sources":["Column.tsx"],"sourcesContent":["import React from \"react\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\nimport { AcoConfig, type TableColumnConfig as ColumnConfig } from \"@webiny/app-aco\";\nimport type { TableItem } from \"~/types\";\nimport { IsApplicableToCurrentModel } from \"~/admin/config/IsApplicableToCurrentModel\";\n\nconst { Table } = AcoConfig;\n\nexport type { ColumnConfig };\n\nexport interface ColumnProps extends React.ComponentProps<typeof AcoConfig.Table.Column> {\n modelIds?: string[];\n}\n\nconst BaseColumnComponent = ({ modelIds = [], ...props }: ColumnProps) => {\n return (\n <AcoConfig>\n <IsApplicableToCurrentModel modelIds={modelIds}>\n <Table.Column {...props} />\n </IsApplicableToCurrentModel>\n </AcoConfig>\n );\n};\n\nconst BaseColumn = makeDecoratable(\"Column\", BaseColumnComponent);\n\nexport const Column = Object.assign(BaseColumn, {\n useTableRow: Table.Column.createUseTableRow<TableItem>(),\n isFolderRow: Table.Column.isFolderRow\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,2BAA2B;AAC3D,SAASC,SAAS,QAAgD,iBAAiB;AAEnF,SAASC,0BAA0B;AAEnC,MAAM;EAAEC;AAAM,CAAC,GAAGF,SAAS;AAQ3B,MAAMG,mBAAmB,GAAGA,CAAC;EAAEC,QAAQ,GAAG,EAAE;EAAE,GAAGC;AAAmB,CAAC,KAAK;EACtE,oBACIP,KAAA,CAAAQ,aAAA,CAACN,SAAS,qBACNF,KAAA,CAAAQ,aAAA,CAACL,0BAA0B;IAACG,QAAQ,EAAEA;EAAS,gBAC3CN,KAAA,CAAAQ,aAAA,CAACJ,KAAK,CAACK,MAAM,EAAKF,KAAQ,CACF,CACrB,CAAC;AAEpB,CAAC;AAED,MAAMG,UAAU,GAAGT,eAAe,CAAC,QAAQ,EAAEI,mBAAmB,CAAC;AAEjE,OAAO,MAAMI,MAAM,GAAGE,MAAM,CAACC,MAAM,CAACF,UAAU,EAAE;EAC5CG,WAAW,EAAET,KAAK,CAACK,MAAM,CAACK,iBAAiB,CAAY,CAAC;EACxDC,WAAW,EAAEX,KAAK,CAACK,MAAM,CAACM;AAC9B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DynamicZoneContainerProps, DynamicZoneContainer } from "./dynamicZoneRenderer";
|
|
1
|
+
export { type DynamicZoneContainerProps, DynamicZoneContainer } from "./dynamicZoneRenderer";
|
|
2
2
|
export { TemplateGallery } from "./TemplateGallery";
|
|
3
3
|
export { MultiValueItemContainer, MultiValueContainer, MultiValueItem } from "./MultiValueDynamicZone";
|
|
4
4
|
export * from "./TemplateProvider";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { DynamicZoneContainer } from "./dynamicZoneRenderer";
|
|
2
2
|
export { TemplateGallery } from "./TemplateGallery";
|
|
3
3
|
export { MultiValueItemContainer, MultiValueContainer, MultiValueItem } from "./MultiValueDynamicZone";
|
|
4
4
|
export * from "./TemplateProvider";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["DynamicZoneContainer","TemplateGallery","MultiValueItemContainer","MultiValueContainer","MultiValueItem"],"sources":["index.tsx"],"sourcesContent":["export { type DynamicZoneContainerProps, DynamicZoneContainer } from \"./dynamicZoneRenderer\";\nexport { TemplateGallery } from \"./TemplateGallery\";\nexport {\n MultiValueItemContainer,\n MultiValueContainer,\n MultiValueItem\n} from \"./MultiValueDynamicZone\";\nexport * from \"./TemplateProvider\";\n"],"mappings":"AAAA,SAAyCA,oBAAoB;AAC7D,SAASC,eAAe;AACxB,SACIC,uBAAuB,EACvBC,mBAAmB,EACnBC,cAAc;AAElB","ignoreList":[]}
|
|
@@ -17,7 +17,7 @@ const Container = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "producti
|
|
|
17
17
|
} : {
|
|
18
18
|
name: "655yex",
|
|
19
19
|
styles: "#cms-content-form{padding:var(--padding-lg);}",
|
|
20
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNpbmdsZXRvbkNvbnRlbnRFbnRyeS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUzRCIiwiZmlsZSI6IlNpbmdsZXRvbkNvbnRlbnRFbnRyeS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG5pbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IEdyaWQsIE92ZXJsYXlMb2FkZXIgfSBmcm9tIFwiQHdlYmlueS9hZG1pbi11aVwiO1xuaW1wb3J0IHsgQ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ICAgIDxDb250ZW50RW50cnlGb3JtXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcj17PFNpbmdsZXRvbkhlYWRlciB0aXRsZT17Y29udGVudE1vZGVsLm5hbWV9IC8+fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbnRyeT17ZW50cnl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBlcnNpc3RFbnRyeT17ZW50cnkgPT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVwZGF0ZUVudHJ5KHsgZW50cnk6IGVudHJ5IGFzIFBhcnRpYWxDbXNDb250ZW50RW50cnlXaXRoSWQgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgPC9HcmlkLkNvbHVtbj5cbiAgICAgICAgICAgICAgICA8L0dyaWQ+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9Db250YWluZXI+XG4gICAgKTtcbn0pO1xuIl19 */",
|
|
21
21
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
22
22
|
});
|
|
23
23
|
export const SingletonContentEntry = makeDecoratable("SingletonContentEntry", () => {
|
|
@@ -33,7 +33,7 @@ export const SingletonContentEntry = makeDecoratable("SingletonContentEntry", ()
|
|
|
33
33
|
span: 10,
|
|
34
34
|
offset: 1
|
|
35
35
|
}, /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: "wby-border-sm wby-border-
|
|
36
|
+
className: "wby-border-sm wby-border-neutral-dimmed-darker wby-rounded-t-3xl wby-rounded-b-3xl"
|
|
37
37
|
}, loading && /*#__PURE__*/React.createElement(OverlayLoader, null), /*#__PURE__*/React.createElement(ContentEntryForm, {
|
|
38
38
|
header: /*#__PURE__*/React.createElement(SingletonHeader, {
|
|
39
39
|
title: contentModel.name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Grid","OverlayLoader","ContentEntryForm","makeDecoratable","useSingletonContentEntry","SingletonHeader","Container","_styled","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","SingletonContentEntry","loading","entry","updateEntry","contentModel","createElement","className","Column","span","offset","header","title","persistEntry"],"sources":["SingletonContentEntry.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { Grid, OverlayLoader } from \"@webiny/admin-ui\";\nimport { ContentEntryForm } from \"~/admin/components/ContentEntryForm/ContentEntryForm\";\nimport { makeDecoratable } from \"@webiny/app\";\nimport { useSingletonContentEntry } from \"../hooks/useSingletonContentEntry\";\nimport type { PartialCmsContentEntryWithId } from \"~/admin/contexts/Cms\";\nimport { SingletonHeader } from \"~/admin/components/ContentEntryForm/SingletonHeader\";\n\nconst Container = styled.div`\n // This is a workaround for the fact that the ContentEntryForm component is used by many views.\n // It has no padding, so we need to override it here.\n #cms-content-form {\n padding: var(--padding-lg);\n`;\n\nexport const SingletonContentEntry = makeDecoratable(\"SingletonContentEntry\", () => {\n const { loading, entry, updateEntry, contentModel } = useSingletonContentEntry();\n\n return (\n <Container>\n <div className={\"wby-container wby-pt-lg\"}>\n <Grid>\n <Grid.Column span={10} offset={1}>\n <div className=\"wby-border-sm wby-border-
|
|
1
|
+
{"version":3,"names":["React","Grid","OverlayLoader","ContentEntryForm","makeDecoratable","useSingletonContentEntry","SingletonHeader","Container","_styled","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","SingletonContentEntry","loading","entry","updateEntry","contentModel","createElement","className","Column","span","offset","header","title","persistEntry"],"sources":["SingletonContentEntry.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { Grid, OverlayLoader } from \"@webiny/admin-ui\";\nimport { ContentEntryForm } from \"~/admin/components/ContentEntryForm/ContentEntryForm\";\nimport { makeDecoratable } from \"@webiny/app\";\nimport { useSingletonContentEntry } from \"../hooks/useSingletonContentEntry\";\nimport type { PartialCmsContentEntryWithId } from \"~/admin/contexts/Cms\";\nimport { SingletonHeader } from \"~/admin/components/ContentEntryForm/SingletonHeader\";\n\nconst Container = styled.div`\n // This is a workaround for the fact that the ContentEntryForm component is used by many views.\n // It has no padding, so we need to override it here.\n #cms-content-form {\n padding: var(--padding-lg);\n`;\n\nexport const SingletonContentEntry = makeDecoratable(\"SingletonContentEntry\", () => {\n const { loading, entry, updateEntry, contentModel } = useSingletonContentEntry();\n\n return (\n <Container>\n <div className={\"wby-container wby-pt-lg\"}>\n <Grid>\n <Grid.Column span={10} offset={1}>\n <div className=\"wby-border-sm wby-border-neutral-dimmed-darker wby-rounded-t-3xl wby-rounded-b-3xl\">\n {loading && <OverlayLoader />}\n <ContentEntryForm\n header={<SingletonHeader title={contentModel.name} />}\n entry={entry}\n persistEntry={entry =>\n updateEntry({ entry: entry as PartialCmsContentEntryWithId })\n }\n />\n </div>\n </Grid.Column>\n </Grid>\n </div>\n </Container>\n );\n});\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,IAAI,EAAEC,aAAa,QAAQ,kBAAkB;AACtD,SAASC,gBAAgB;AACzB,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,wBAAwB;AAEjC,SAASC,eAAe;AAExB,MAAMC,SAAS,gBAAAC,OAAA,QAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAKd;AAED,OAAO,MAAMC,qBAAqB,GAAGf,eAAe,CAAC,uBAAuB,EAAE,MAAM;EAChF,MAAM;IAAEgB,OAAO;IAAEC,KAAK;IAAEC,WAAW;IAAEC;EAAa,CAAC,GAAGlB,wBAAwB,CAAC,CAAC;EAEhF,oBACIL,KAAA,CAAAwB,aAAA,CAACjB,SAAS,qBACNP,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAE;EAA0B,gBACtCzB,KAAA,CAAAwB,aAAA,CAACvB,IAAI,qBACDD,KAAA,CAAAwB,aAAA,CAACvB,IAAI,CAACyB,MAAM;IAACC,IAAI,EAAE,EAAG;IAACC,MAAM,EAAE;EAAE,gBAC7B5B,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAC;EAAoF,GAC9FL,OAAO,iBAAIpB,KAAA,CAAAwB,aAAA,CAACtB,aAAa,MAAE,CAAC,eAC7BF,KAAA,CAAAwB,aAAA,CAACrB,gBAAgB;IACb0B,MAAM,eAAE7B,KAAA,CAAAwB,aAAA,CAAClB,eAAe;MAACwB,KAAK,EAAEP,YAAY,CAACT;IAAK,CAAE,CAAE;IACtDO,KAAK,EAAEA,KAAM;IACbU,YAAY,EAAEV,KAAK,IACfC,WAAW,CAAC;MAAED,KAAK,EAAEA;IAAsC,CAAC;EAC/D,CACJ,CACA,CACI,CACX,CACL,CACE,CAAC;AAEpB,CAAC,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-headless-cms",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.f9f12f52a0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,33 +27,33 @@
|
|
|
27
27
|
"@lexical/utils": "0.23.1",
|
|
28
28
|
"@svgr/webpack": "6.5.1",
|
|
29
29
|
"@types/react": "18.2.79",
|
|
30
|
-
"@webiny/admin-ui": "0.0.0-unstable.
|
|
31
|
-
"@webiny/app": "0.0.0-unstable.
|
|
32
|
-
"@webiny/app-aco": "0.0.0-unstable.
|
|
33
|
-
"@webiny/app-admin": "0.0.0-unstable.
|
|
34
|
-
"@webiny/app-graphql-playground": "0.0.0-unstable.
|
|
35
|
-
"@webiny/app-headless-cms-common": "0.0.0-unstable.
|
|
36
|
-
"@webiny/app-headless-cms-scheduler": "0.0.0-unstable.
|
|
37
|
-
"@webiny/app-i18n": "0.0.0-unstable.
|
|
38
|
-
"@webiny/app-plugin-admin-welcome-screen": "0.0.0-unstable.
|
|
39
|
-
"@webiny/app-security": "0.0.0-unstable.
|
|
40
|
-
"@webiny/app-tenancy": "0.0.0-unstable.
|
|
41
|
-
"@webiny/app-trash-bin": "0.0.0-unstable.
|
|
42
|
-
"@webiny/error": "0.0.0-unstable.
|
|
43
|
-
"@webiny/feature-flags": "0.0.0-unstable.
|
|
44
|
-
"@webiny/form": "0.0.0-unstable.
|
|
45
|
-
"@webiny/icons": "0.0.0-unstable.
|
|
46
|
-
"@webiny/lexical-editor": "0.0.0-unstable.
|
|
47
|
-
"@webiny/lexical-nodes": "0.0.0-unstable.
|
|
48
|
-
"@webiny/lexical-theme": "0.0.0-unstable.
|
|
49
|
-
"@webiny/plugins": "0.0.0-unstable.
|
|
50
|
-
"@webiny/react-composition": "0.0.0-unstable.
|
|
51
|
-
"@webiny/react-properties": "0.0.0-unstable.
|
|
52
|
-
"@webiny/react-router": "0.0.0-unstable.
|
|
53
|
-
"@webiny/theme": "0.0.0-unstable.
|
|
54
|
-
"@webiny/ui": "0.0.0-unstable.
|
|
55
|
-
"@webiny/utils": "0.0.0-unstable.
|
|
56
|
-
"@webiny/validation": "0.0.0-unstable.
|
|
30
|
+
"@webiny/admin-ui": "0.0.0-unstable.f9f12f52a0",
|
|
31
|
+
"@webiny/app": "0.0.0-unstable.f9f12f52a0",
|
|
32
|
+
"@webiny/app-aco": "0.0.0-unstable.f9f12f52a0",
|
|
33
|
+
"@webiny/app-admin": "0.0.0-unstable.f9f12f52a0",
|
|
34
|
+
"@webiny/app-graphql-playground": "0.0.0-unstable.f9f12f52a0",
|
|
35
|
+
"@webiny/app-headless-cms-common": "0.0.0-unstable.f9f12f52a0",
|
|
36
|
+
"@webiny/app-headless-cms-scheduler": "0.0.0-unstable.f9f12f52a0",
|
|
37
|
+
"@webiny/app-i18n": "0.0.0-unstable.f9f12f52a0",
|
|
38
|
+
"@webiny/app-plugin-admin-welcome-screen": "0.0.0-unstable.f9f12f52a0",
|
|
39
|
+
"@webiny/app-security": "0.0.0-unstable.f9f12f52a0",
|
|
40
|
+
"@webiny/app-tenancy": "0.0.0-unstable.f9f12f52a0",
|
|
41
|
+
"@webiny/app-trash-bin": "0.0.0-unstable.f9f12f52a0",
|
|
42
|
+
"@webiny/error": "0.0.0-unstable.f9f12f52a0",
|
|
43
|
+
"@webiny/feature-flags": "0.0.0-unstable.f9f12f52a0",
|
|
44
|
+
"@webiny/form": "0.0.0-unstable.f9f12f52a0",
|
|
45
|
+
"@webiny/icons": "0.0.0-unstable.f9f12f52a0",
|
|
46
|
+
"@webiny/lexical-editor": "0.0.0-unstable.f9f12f52a0",
|
|
47
|
+
"@webiny/lexical-nodes": "0.0.0-unstable.f9f12f52a0",
|
|
48
|
+
"@webiny/lexical-theme": "0.0.0-unstable.f9f12f52a0",
|
|
49
|
+
"@webiny/plugins": "0.0.0-unstable.f9f12f52a0",
|
|
50
|
+
"@webiny/react-composition": "0.0.0-unstable.f9f12f52a0",
|
|
51
|
+
"@webiny/react-properties": "0.0.0-unstable.f9f12f52a0",
|
|
52
|
+
"@webiny/react-router": "0.0.0-unstable.f9f12f52a0",
|
|
53
|
+
"@webiny/theme": "0.0.0-unstable.f9f12f52a0",
|
|
54
|
+
"@webiny/ui": "0.0.0-unstable.f9f12f52a0",
|
|
55
|
+
"@webiny/utils": "0.0.0-unstable.f9f12f52a0",
|
|
56
|
+
"@webiny/validation": "0.0.0-unstable.f9f12f52a0",
|
|
57
57
|
"apollo-cache": "1.3.5",
|
|
58
58
|
"apollo-client": "2.6.10",
|
|
59
59
|
"apollo-link": "1.2.14",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@emotion/babel-plugin": "11.11.0",
|
|
84
|
-
"@webiny/project-utils": "0.0.0-unstable.
|
|
84
|
+
"@webiny/project-utils": "0.0.0-unstable.f9f12f52a0",
|
|
85
85
|
"babel-plugin-module-resolver": "5.0.2",
|
|
86
86
|
"rimraf": "6.0.1",
|
|
87
87
|
"typescript": "5.3.3"
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
]
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "f9f12f52a0e2f8e4a2987aa71b4104f70f5d68c8"
|
|
113
113
|
}
|