@webiny/app-headless-cms 5.39.0 → 5.39.1-beta.1

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.
Files changed (28) hide show
  1. package/admin/components/ContentEntries/Table/Cells/Cells.styled.d.ts +0 -2
  2. package/admin/components/ContentEntryForm/Header/RevisionSelector/RevisionSelector.styles.d.ts +1 -1
  3. package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/SaveAndPublishContent.d.ts +2 -5
  4. package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/SaveAndPublishContent.js +1 -1
  5. package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/SaveAndPublishContent.js.map +1 -1
  6. package/admin/components/ContentEntryForm/RenderFieldElement.d.ts +1 -5
  7. package/admin/components/ContentEntryForm/RenderFieldElement.js +1 -1
  8. package/admin/components/ContentEntryForm/RenderFieldElement.js.map +1 -1
  9. package/admin/components/DropZone/Center.d.ts +1 -1
  10. package/admin/config/contentEntries/list/Browser/Filter.d.ts +3 -3
  11. package/admin/config/contentEntries/list/Browser/Filter.js +1 -1
  12. package/admin/config/contentEntries/list/Browser/Filter.js.map +1 -1
  13. package/admin/config/contentEntries/list/Browser/Table/Column.d.ts +1 -1
  14. package/admin/config/contentEntries/list/Browser/Table/index.d.ts +1 -1
  15. package/admin/config/contentEntries/list/Browser/index.d.ts +4 -4
  16. package/admin/config/contentEntries/list/ContentEntryListConfig.d.ts +4 -4
  17. package/admin/plugins/index.d.ts +2 -2
  18. package/admin/plugins/routes.js +3 -3
  19. package/admin/plugins/routes.js.map +1 -1
  20. package/admin/views/contentEntries/ContentEntry/PublishEntryRevisionListItem.d.ts +2 -5
  21. package/admin/views/contentEntries/ContentEntry/PublishEntryRevisionListItem.js +1 -1
  22. package/admin/views/contentEntries/ContentEntry/PublishEntryRevisionListItem.js.map +1 -1
  23. package/admin/views/contentModels/OptionsMenu.d.ts +1 -4
  24. package/admin/views/contentModels/OptionsMenu.js +1 -1
  25. package/admin/views/contentModels/OptionsMenu.js.map +1 -1
  26. package/allPlugins.d.ts +3 -3
  27. package/index.d.ts +3 -3
  28. package/package.json +26 -26
@@ -4,8 +4,6 @@ export declare const RowTitle: import("@emotion/styled").StyledComponent<{
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const LinkTitle: import("@emotion/styled").StyledComponent<import("react-router-dom").LinkProps & {
7
- children?: import("react").ReactNode;
8
- } & {
9
7
  theme?: import("@emotion/react").Theme | undefined;
10
8
  }, {}, {}>;
11
9
  export declare const RowIcon: import("@emotion/styled").StyledComponent<{
@@ -21,7 +21,7 @@ export declare const Menu: import("@emotion/styled").StyledComponent<Pick<import
21
21
  onOpen?: (() => void) | undefined;
22
22
  onClose?: (() => void) | undefined;
23
23
  "data-testid"?: string | undefined;
24
- }, "anchor" | "className" | "disabled" | "data-testid" | "handle" | keyof import("@rmwc/menu").MenuProps>> & Partial<Pick<Partial<import("@rmwc/menu").MenuProps & {
24
+ }, "anchor" | "disabled" | "data-testid" | "className" | keyof import("@rmwc/menu").MenuProps | "handle">> & Partial<Pick<Partial<import("@rmwc/menu").MenuProps & {
25
25
  children: import("react").ReactNode;
26
26
  handle?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
27
27
  anchor?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "bottomEnd" | "bottomStart" | "topEnd" | "topStart" | undefined;
@@ -1,5 +1,2 @@
1
- import React from "react";
2
- export declare const SaveAndPublishButton: React.FunctionComponent<unknown> & {
3
- original: React.ComponentType<unknown>;
4
- originalName: string;
5
- };
1
+ /// <reference types="react" />
2
+ export declare const SaveAndPublishButton: import("@webiny/react-composition").DecoratableComponent<() => JSX.Element | null>;
@@ -31,7 +31,7 @@ var SaveAndPublishButtonComponent = function SaveAndPublishButtonComponent() {
31
31
  "data-testid": "cms-content-save-publish-content-button"
32
32
  }, "Save & Publish");
33
33
  };
34
- var SaveAndPublishButton = (0, _reactComposition.makeComposable)("SaveAndPublishButton", SaveAndPublishButtonComponent);
34
+ var SaveAndPublishButton = (0, _reactComposition.makeDecoratable)("SaveAndPublishButton", SaveAndPublishButtonComponent);
35
35
  exports.SaveAndPublishButton = SaveAndPublishButton;
36
36
 
37
37
  //# sourceMappingURL=SaveAndPublishContent.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactComposition","_contentEntries","_useContentEntry2","_usePermission2","_useSaveAndPublish2","SaveAndPublishButtonComponent","_useContentEntry","useContentEntry","loading","entry","_useSaveAndPublish","useSaveAndPublish","showConfirmationDialog","_ContentEntryEditorCo","ContentEntryEditorConfig","Actions","ButtonAction","useButtons","ButtonPrimary","_usePermission","usePermission","canEdit","canPublish","default","createElement","onAction","disabled","SaveAndPublishButton","makeComposable","exports"],"sources":["SaveAndPublishContent.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { makeComposable } from \"@webiny/react-composition\";\nimport { ContentEntryEditorConfig } from \"~/admin/config/contentEntries\";\nimport { useContentEntry } from \"~/admin/views/contentEntries/hooks/useContentEntry\";\nimport usePermission from \"~/admin/hooks/usePermission\";\nimport { useSaveAndPublish } from \"./useSaveAndPublish\";\n\nconst SaveAndPublishButtonComponent = () => {\n const { loading, entry } = useContentEntry();\n const { showConfirmationDialog } = useSaveAndPublish();\n const { ButtonPrimary } = ContentEntryEditorConfig.Actions.ButtonAction.useButtons();\n\n const { canEdit, canPublish } = usePermission();\n\n if (!canEdit(entry, \"cms.contentEntry\") || !canPublish(\"cms.contentEntry\")) {\n return null;\n }\n\n return (\n <ButtonPrimary\n onAction={showConfirmationDialog}\n disabled={loading}\n data-testid=\"cms-content-save-publish-content-button\"\n >\n {\"Save & Publish\"}\n </ButtonPrimary>\n );\n};\n\nexport const SaveAndPublishButton = makeComposable(\n \"SaveAndPublishButton\",\n SaveAndPublishButtonComponent\n);\n"],"mappings":";;;;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Default","require","_reactComposition","_contentEntries","_useContentEntry2","_usePermission2","_useSaveAndPublish2","SaveAndPublishButtonComponent","_useContentEntry","useContentEntry","loading","entry","_useSaveAndPublish","useSaveAndPublish","showConfirmationDialog","_ContentEntryEditorCo","ContentEntryEditorConfig","Actions","ButtonAction","useButtons","ButtonPrimary","_usePermission","usePermission","canEdit","canPublish","default","createElement","onAction","disabled","SaveAndPublishButton","makeDecoratable","exports"],"sources":["SaveAndPublishContent.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { makeDecoratable } from \"@webiny/react-composition\";\nimport { ContentEntryEditorConfig } from \"~/admin/config/contentEntries\";\nimport { useContentEntry } from \"~/admin/views/contentEntries/hooks/useContentEntry\";\nimport usePermission from \"~/admin/hooks/usePermission\";\nimport { useSaveAndPublish } from \"./useSaveAndPublish\";\n\nconst SaveAndPublishButtonComponent = () => {\n const { loading, entry } = useContentEntry();\n const { showConfirmationDialog } = useSaveAndPublish();\n const { ButtonPrimary } = ContentEntryEditorConfig.Actions.ButtonAction.useButtons();\n\n const { canEdit, canPublish } = usePermission();\n\n if (!canEdit(entry, \"cms.contentEntry\") || !canPublish(\"cms.contentEntry\")) {\n return null;\n }\n\n return (\n <ButtonPrimary\n onAction={showConfirmationDialog}\n disabled={loading}\n data-testid=\"cms-content-save-publish-content-button\"\n >\n {\"Save & Publish\"}\n </ButtonPrimary>\n );\n};\n\nexport const SaveAndPublishButton = makeDecoratable(\n \"SaveAndPublishButton\",\n SaveAndPublishButtonComponent\n);\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAEA,IAAMM,6BAA6B,GAAG,SAAhCA,6BAA6BA,CAAA,EAAS;EACxC,IAAAC,gBAAA,GAA2B,IAAAC,iCAAe,EAAC,CAAC;IAApCC,OAAO,GAAAF,gBAAA,CAAPE,OAAO;IAAEC,KAAK,GAAAH,gBAAA,CAALG,KAAK;EACtB,IAAAC,kBAAA,GAAmC,IAAAC,qCAAiB,EAAC,CAAC;IAA9CC,sBAAsB,GAAAF,kBAAA,CAAtBE,sBAAsB;EAC9B,IAAAC,qBAAA,GAA0BC,wCAAwB,CAACC,OAAO,CAACC,YAAY,CAACC,UAAU,CAAC,CAAC;IAA5EC,aAAa,GAAAL,qBAAA,CAAbK,aAAa;EAErB,IAAAC,cAAA,GAAgC,IAAAC,uBAAa,EAAC,CAAC;IAAvCC,OAAO,GAAAF,cAAA,CAAPE,OAAO;IAAEC,UAAU,GAAAH,cAAA,CAAVG,UAAU;EAE3B,IAAI,CAACD,OAAO,CAACZ,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAACa,UAAU,CAAC,kBAAkB,CAAC,EAAE;IACxE,OAAO,IAAI;EACf;EAEA,oBACIzB,MAAA,CAAA0B,OAAA,CAAAC,aAAA,CAACN,aAAa;IACVO,QAAQ,EAAEb,sBAAuB;IACjCc,QAAQ,EAAElB,OAAQ;IAClB,eAAY;EAAyC,GAEpD,gBACU,CAAC;AAExB,CAAC;AAEM,IAAMmB,oBAAoB,GAAG,IAAAC,iCAAe,EAC/C,sBAAsB,EACtBvB,6BACJ,CAAC;AAACwB,OAAA,CAAAF,oBAAA,GAAAA,oBAAA"}
@@ -1,11 +1,7 @@
1
- import React from "react";
2
1
  import { CmsModelField, CmsEditorContentModel, BindComponent } from "../../../types";
3
2
  export interface RenderFieldElementProps {
4
3
  field: CmsModelField;
5
4
  Bind: BindComponent;
6
5
  contentModel: CmsEditorContentModel;
7
6
  }
8
- export declare const RenderFieldElement: React.FunctionComponent<RenderFieldElementProps> & {
9
- original: React.ComponentType<RenderFieldElementProps>;
10
- originalName: string;
11
- };
7
+ export declare const RenderFieldElement: import("@webiny/app-admin").DecoratableComponent<(props: RenderFieldElementProps) => any>;
@@ -16,7 +16,7 @@ var _useRenderPlugins = require("./useRenderPlugins");
16
16
  var _ModelFieldProvider = require("../ModelFieldProvider");
17
17
  var _templateObject;
18
18
  var t = _i18n.i18n.ns("app-headless-cms/admin/components/content-form");
19
- var RenderFieldElement = (0, _appAdmin.makeComposable)("RenderFieldElement", function (props) {
19
+ var RenderFieldElement = (0, _appAdmin.makeDecoratable)("RenderFieldElement", function (props) {
20
20
  var renderPlugins = (0, _useRenderPlugins.useRenderPlugins)();
21
21
  var field = props.field,
22
22
  Bind = props.Bind,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_get","_appAdmin","_i18n","_Label","_useBind","_useRenderPlugins","_ModelFieldProvider","_templateObject","t","i18n","ns","RenderFieldElement","makeComposable","props","renderPlugins","useRenderPlugins","field","Bind","contentModel","getBind","useBind","renderer","default","createElement","ModelFieldProvider","Label","renderPlugin","find","plugin","rendererName","get","_taggedTemplateLiteral2","fieldName","fieldId","render","exports"],"sources":["RenderFieldElement.tsx"],"sourcesContent":["import React from \"react\";\nimport get from \"lodash/get\";\nimport { makeComposable } from \"@webiny/app-admin\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport { CmsModelField, CmsEditorContentModel, BindComponent } from \"~/types\";\nimport Label from \"./Label\";\nimport { useBind } from \"./useBind\";\nimport { useRenderPlugins } from \"./useRenderPlugins\";\nimport { ModelFieldProvider } from \"../ModelFieldProvider\";\n\nconst t = i18n.ns(\"app-headless-cms/admin/components/content-form\");\n\nexport interface RenderFieldElementProps {\n field: CmsModelField;\n Bind: BindComponent;\n contentModel: CmsEditorContentModel;\n}\n\nexport const RenderFieldElement = makeComposable<RenderFieldElementProps>(\n \"RenderFieldElement\",\n props => {\n const renderPlugins = useRenderPlugins();\n const { field, Bind, contentModel } = props;\n const getBind = useBind({ Bind, field });\n\n if (typeof field.renderer === \"function\") {\n return (\n <ModelFieldProvider field={field}>\n {field.renderer({ field, getBind, Label, contentModel })}\n </ModelFieldProvider>\n );\n }\n\n const renderPlugin = renderPlugins.find(\n plugin => plugin.renderer.rendererName === get(field, \"renderer.name\")\n );\n\n if (!renderPlugin) {\n return t`Cannot render \"{fieldName}\" field - field renderer missing.`({\n fieldName: <strong>{field.fieldId}</strong>\n });\n }\n\n return (\n <ModelFieldProvider field={field}>\n {renderPlugin.renderer.render({ field, getBind, Label, contentModel })}\n </ModelFieldProvider>\n );\n }\n);\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AAA2D,IAAAQ,eAAA;AAE3D,IAAMC,CAAC,GAAGC,UAAI,CAACC,EAAE,CAAC,gDAAgD,CAAC;AAQ5D,IAAMC,kBAAkB,GAAG,IAAAC,wBAAc,EAC5C,oBAAoB,EACpB,UAAAC,KAAK,EAAI;EACL,IAAMC,aAAa,GAAG,IAAAC,kCAAgB,EAAC,CAAC;EACxC,IAAQC,KAAK,GAAyBH,KAAK,CAAnCG,KAAK;IAAEC,IAAI,GAAmBJ,KAAK,CAA5BI,IAAI;IAAEC,YAAY,GAAKL,KAAK,CAAtBK,YAAY;EACjC,IAAMC,OAAO,GAAG,IAAAC,gBAAO,EAAC;IAAEH,IAAI,EAAJA,IAAI;IAAED,KAAK,EAALA;EAAM,CAAC,CAAC;EAExC,IAAI,OAAOA,KAAK,CAACK,QAAQ,KAAK,UAAU,EAAE;IACtC,oBACIxB,MAAA,CAAAyB,OAAA,CAAAC,aAAA,CAACjB,mBAAA,CAAAkB,kBAAkB;MAACR,KAAK,EAAEA;IAAM,GAC5BA,KAAK,CAACK,QAAQ,CAAC;MAAEL,KAAK,EAALA,KAAK;MAAEG,OAAO,EAAPA,OAAO;MAAEM,KAAK,EAALA,cAAK;MAAEP,YAAY,EAAZA;IAAa,CAAC,CACvC,CAAC;EAE7B;EAEA,IAAMQ,YAAY,GAAGZ,aAAa,CAACa,IAAI,CACnC,UAAAC,MAAM;IAAA,OAAIA,MAAM,CAACP,QAAQ,CAACQ,YAAY,KAAK,IAAAC,YAAG,EAACd,KAAK,EAAE,eAAe,CAAC;EAAA,CAC1E,CAAC;EAED,IAAI,CAACU,YAAY,EAAE;IACf,OAAOlB,CAAC,CAAAD,eAAA,KAAAA,eAAA,OAAAwB,uBAAA,CAAAT,OAAA,uEAA8D;MAClEU,SAAS,eAAEnC,MAAA,CAAAyB,OAAA,CAAAC,aAAA,iBAASP,KAAK,CAACiB,OAAgB;IAC9C,CAAC,CAAC;EACN;EAEA,oBACIpC,MAAA,CAAAyB,OAAA,CAAAC,aAAA,CAACjB,mBAAA,CAAAkB,kBAAkB;IAACR,KAAK,EAAEA;EAAM,GAC5BU,YAAY,CAACL,QAAQ,CAACa,MAAM,CAAC;IAAElB,KAAK,EAALA,KAAK;IAAEG,OAAO,EAAPA,OAAO;IAAEM,KAAK,EAALA,cAAK;IAAEP,YAAY,EAAZA;EAAa,CAAC,CACrD,CAAC;AAE7B,CACJ,CAAC;AAACiB,OAAA,CAAAxB,kBAAA,GAAAA,kBAAA"}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_get","_appAdmin","_i18n","_Label","_useBind","_useRenderPlugins","_ModelFieldProvider","_templateObject","t","i18n","ns","RenderFieldElement","makeDecoratable","props","renderPlugins","useRenderPlugins","field","Bind","contentModel","getBind","useBind","renderer","default","createElement","ModelFieldProvider","Label","renderPlugin","find","plugin","rendererName","get","_taggedTemplateLiteral2","fieldName","fieldId","render","exports"],"sources":["RenderFieldElement.tsx"],"sourcesContent":["import React from \"react\";\nimport get from \"lodash/get\";\nimport { makeDecoratable } from \"@webiny/app-admin\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport { CmsModelField, CmsEditorContentModel, BindComponent } from \"~/types\";\nimport Label from \"./Label\";\nimport { useBind } from \"./useBind\";\nimport { useRenderPlugins } from \"./useRenderPlugins\";\nimport { ModelFieldProvider } from \"../ModelFieldProvider\";\n\nconst t = i18n.ns(\"app-headless-cms/admin/components/content-form\");\n\nexport interface RenderFieldElementProps {\n field: CmsModelField;\n Bind: BindComponent;\n contentModel: CmsEditorContentModel;\n}\n\nexport const RenderFieldElement = makeDecoratable(\n \"RenderFieldElement\",\n (props: RenderFieldElementProps) => {\n const renderPlugins = useRenderPlugins();\n const { field, Bind, contentModel } = props;\n const getBind = useBind({ Bind, field });\n\n if (typeof field.renderer === \"function\") {\n return (\n <ModelFieldProvider field={field}>\n {field.renderer({ field, getBind, Label, contentModel })}\n </ModelFieldProvider>\n );\n }\n\n const renderPlugin = renderPlugins.find(\n plugin => plugin.renderer.rendererName === get(field, \"renderer.name\")\n );\n\n if (!renderPlugin) {\n return t`Cannot render \"{fieldName}\" field - field renderer missing.`({\n fieldName: <strong>{field.fieldId}</strong>\n });\n }\n\n return (\n <ModelFieldProvider field={field}>\n {renderPlugin.renderer.render({ field, getBind, Label, contentModel })}\n </ModelFieldProvider>\n );\n }\n);\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AAA2D,IAAAQ,eAAA;AAE3D,IAAMC,CAAC,GAAGC,UAAI,CAACC,EAAE,CAAC,gDAAgD,CAAC;AAQ5D,IAAMC,kBAAkB,GAA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KAAK,EAALA,KAAK;IAAEG,OAAO,EAAPA,OAAO;IAAEM,KAAK,EAALA,cAAK;IAAEP,YAAY,EAAZA;EAAa,CAAC,CACrD,CAAC;AAE7B,CACJ,CAAC;AAACiB,OAAA,CAAAxB,kBAAA,GAAAA,kBAAA"}
@@ -1,5 +1,5 @@
1
1
  import React, { CSSProperties } from "react";
2
- import { DroppableProps, OnDropCallable } from "../Droppable";
2
+ import { DroppableProps, OnDropCallable } from "./../Droppable";
3
3
  interface CenterProps {
4
4
  type?: string;
5
5
  onDrop: OnDropCallable;
@@ -15,9 +15,9 @@ export interface CreateDecoratorParams {
15
15
  name: string;
16
16
  modelIds?: string[];
17
17
  }
18
- export declare const Filter: React.FunctionComponent<FilterProps> & {
19
- original: React.ComponentType<FilterProps>;
18
+ export declare const Filter: ((args_0: FilterProps) => JSX.Element | null) & {
19
+ original: (args_0: FilterProps) => JSX.Element | null;
20
20
  originalName: string;
21
21
  } & {
22
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<FilterProps>) => (props: CreateDecoratorParams) => JSX.Element;
22
+ createDecorator: (decorator: import("@webiny/react-composition").Decorator<(args_0: FilterProps) => JSX.Element | null>) => (props: CreateDecoratorParams) => JSX.Element;
23
23
  };
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _reactProperties = require("@webiny/react-properties");
10
10
  var _reactComposition = require("@webiny/react-composition");
11
11
  var _hooks = require("../../../../hooks");
12
- var BaseFilter = (0, _reactComposition.makeComposable)("Filter", function (_ref) {
12
+ var BaseFilter = (0, _reactComposition.makeDecoratable)("Filter", function (_ref) {
13
13
  var name = _ref.name,
14
14
  element = _ref.element,
15
15
  _ref$modelIds = _ref.modelIds,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactProperties","_reactComposition","_hooks","BaseFilter","makeComposable","_ref","name","element","_ref$modelIds","modelIds","_ref$after","after","undefined","_ref$before","before","_ref$remove","remove","_useModel","useModel","model","getId","useIdGenerator","length","includes","modelId","placeAfter","placeBefore","default","createElement","Property","id","array","value","createDecorator","createDecoratorFactory","decoratorProps","componentProps","_useModel2","Filter","Object","assign","exports"],"sources":["Filter.tsx"],"sourcesContent":["import React from \"react\";\nimport { Property, useIdGenerator } from \"@webiny/react-properties\";\nimport { createDecoratorFactory, makeComposable } from \"@webiny/react-composition\";\nimport { useModel } from \"~/admin/hooks\";\n\nexport interface FilterConfig {\n name: string;\n element: React.ReactElement;\n}\n\nexport interface FilterProps {\n name: string;\n element?: React.ReactElement<unknown>;\n modelIds?: string[];\n remove?: boolean;\n before?: string;\n after?: string;\n}\n\nexport interface CreateDecoratorParams {\n name: string;\n modelIds?: string[];\n}\n\nconst BaseFilter = makeComposable<FilterProps>(\n \"Filter\",\n ({ name, element, modelIds = [], after = undefined, before = undefined, remove = false }) => {\n const { model } = useModel();\n const getId = useIdGenerator(\"filter\");\n\n if (modelIds.length > 0 && !modelIds.includes(model.modelId)) {\n return null;\n }\n\n const placeAfter = after !== undefined ? getId(after) : undefined;\n const placeBefore = before !== undefined ? getId(before) : undefined;\n\n return (\n <Property id=\"browser\" name={\"browser\"}>\n <Property\n id={getId(name)}\n name={\"filters\"}\n remove={remove}\n array={true}\n before={placeBefore}\n after={placeAfter}\n >\n <Property id={getId(name, \"name\")} name={\"name\"} value={name} />\n {element ? (\n <Property id={getId(name, \"element\")} name={\"element\"} value={element} />\n ) : null}\n </Property>\n </Property>\n );\n }\n);\n\nconst createDecorator = createDecoratorFactory<CreateDecoratorParams>()(\n BaseFilter,\n (decoratorProps, componentProps) => {\n const { model } = useModel();\n\n if (decoratorProps?.modelIds?.length && !decoratorProps.modelIds.includes(model.modelId)) {\n return false;\n }\n\n if (decoratorProps.name === \"*\") {\n return true;\n }\n\n return decoratorProps.name === componentProps.name;\n }\n);\n\nexport const Filter = Object.assign(BaseFilter, { createDecorator });\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC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C,MAAM,CAACrC,UAAU,EAAE;EAAE8B,eAAe,EAAfA;AAAgB,CAAC,CAAC;AAACQ,OAAA,CAAAH,MAAA,GAAAA,MAAA"}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactProperties","_reactComposition","_hooks","BaseFilter","makeDecoratable","_ref","name","element","_ref$modelIds","modelIds","_ref$after","after","undefined","_ref$before","before","_ref$remove","remove","_useModel","useModel","model","getId","useIdGenerator","length","includes","modelId","placeAfter","placeBefore","default","createElement","Property","id","array","value","createDecorator","createDecoratorFactory","decoratorProps","componentProps","_useModel2","Filter","Object","assign","exports"],"sources":["Filter.tsx"],"sourcesContent":["import React from \"react\";\nimport { Property, useIdGenerator } from \"@webiny/react-properties\";\nimport { createDecoratorFactory, makeDecoratable } from \"@webiny/react-composition\";\nimport { useModel } from \"~/admin/hooks\";\n\nexport interface FilterConfig {\n name: string;\n element: React.ReactElement;\n}\n\nexport interface FilterProps {\n name: string;\n element?: React.ReactElement<unknown>;\n modelIds?: string[];\n remove?: boolean;\n before?: string;\n after?: string;\n}\n\nexport interface CreateDecoratorParams {\n name: string;\n modelIds?: string[];\n}\n\nconst BaseFilter = makeDecoratable(\n \"Filter\",\n ({\n name,\n element,\n modelIds = [],\n after = undefined,\n before = undefined,\n remove = false\n }: FilterProps) => {\n const { model } = useModel();\n const getId = useIdGenerator(\"filter\");\n\n if (modelIds.length > 0 && !modelIds.includes(model.modelId)) {\n return null;\n }\n\n const placeAfter = after !== undefined ? getId(after) : undefined;\n const placeBefore = before !== undefined ? getId(before) : undefined;\n\n return (\n <Property id=\"browser\" name={\"browser\"}>\n <Property\n id={getId(name)}\n name={\"filters\"}\n remove={remove}\n array={true}\n before={placeBefore}\n after={placeAfter}\n >\n <Property id={getId(name, \"name\")} name={\"name\"} value={name} />\n {element ? (\n <Property id={getId(name, \"element\")} name={\"element\"} value={element} />\n ) : null}\n </Property>\n </Property>\n );\n }\n);\n\nconst createDecorator = createDecoratorFactory<CreateDecoratorParams>()(\n BaseFilter,\n (decoratorProps, componentProps) => {\n const { model } = useModel();\n\n if (decoratorProps?.modelIds?.length && !decoratorProps.modelIds.includes(model.modelId)) {\n return false;\n }\n\n if (decoratorProps.name === \"*\") {\n return true;\n }\n\n return decoratorProps.name === componentProps.name;\n }\n);\n\nexport const Filter = Object.assign(BaseFilter, { createDecorator });\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAqBA,IAAMI,UAAU,GAAG,IAAAC,iCAAe,EAC9B,QAAQ,EACR,UAAAC,IAAA,EAOmB;EAAA,IANfC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IAAAC,aAAA,GAAAH,IAAA,CACPI,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,EAAE,GAAAA,aAAA;IAAAE,UAAA,GAAAL,IAAA,CACbM,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAGE,SAAS,GAAAF,UAAA;IAAAG,WAAA,GAAAR,IAAA,CACjBS,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAGD,SAAS,GAAAC,WAAA;IAAAE,WAAA,GAAAV,IAAA,CAClBW,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,KAAK,GAAAA,WAAA;EAEd,IAAAE,SAAA,GAAkB,IAAAC,eAAQ,EAAC,CAAC;IAApBC,KAAK,GAAAF,SAAA,CAALE,KAAK;EACb,IAAMC,KAAK,GAAG,IAAAC,+BAAc,EAAC,QAAQ,CAAC;EAEtC,IAAIZ,QAAQ,CAACa,MAAM,GAAG,CAAC,IAAI,CAACb,QAAQ,CAACc,QAAQ,CAACJ,KAAK,CAACK,OAAO,CAAC,EAAE;IAC1D,OAAO,IAAI;EACf;EAEA,IAAMC,UAAU,GAAGd,KAAK,KAAKC,S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AAC1B,QAAQ,CAACc,QAAQ,CAACJ,KAAK,CAACK,OAAO,CAAC,EAAE;IACtF,OAAO,KAAK;EAChB;EAEA,IAAIW,cAAc,CAAC7B,IAAI,KAAK,GAAG,EAAE;IAC7B,OAAO,IAAI;EACf;EAEA,OAAO6B,cAAc,CAAC7B,IAAI,KAAK8B,cAAc,CAAC9B,IAAI;AACtD,CACJ,CAAC;AAEM,IAAMgC,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACrC,UAAU,EAAE;EAAE8B,eAAe,EAAfA;AAAgB,CAAC,CAAC;AAACQ,OAAA,CAAAH,MAAA,GAAAA,MAAA"}
@@ -7,5 +7,5 @@ export interface ColumnProps extends React.ComponentProps<typeof AcoConfig.Table
7
7
  }
8
8
  export declare const Column: (({ modelIds, ...props }: ColumnProps) => JSX.Element | null) & {
9
9
  useTableRow: () => import("@webiny/app-aco").TableRowContextData<TableItem>;
10
- isFolderRow: (row: import("@webiny/app-aco/types").BaseTableItem) => row is import("@webiny/app-aco/types").FolderTableItem;
10
+ isFolderRow: (row: import("@webiny/app-aco/table.types").BaseTableItem) => row is import("@webiny/app-aco/table.types").FolderTableItem;
11
11
  };
@@ -6,6 +6,6 @@ export interface TableConfig {
6
6
  export declare const Table: {
7
7
  Column: (({ modelIds, ...props }: import("./Column").ColumnProps) => JSX.Element | null) & {
8
8
  useTableRow: () => import("@webiny/app-aco").TableRowContextData<import("../../../../../../types").TableItem>;
9
- isFolderRow: (row: import("@webiny/app-aco/types").BaseTableItem) => row is import("@webiny/app-aco/types").FolderTableItem;
9
+ isFolderRow: (row: import("@webiny/app-aco/table.types").BaseTableItem) => row is import("@webiny/app-aco/table.types").FolderTableItem;
10
10
  };
11
11
  };
@@ -29,11 +29,11 @@ export declare const Browser: {
29
29
  OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => JSX.Element;
30
30
  OptionsMenuLink: (props: import("@webiny/app-admin").OptionsMenuLinkProps) => JSX.Element;
31
31
  };
32
- Filter: import("react").FunctionComponent<import("./Filter").FilterProps> & {
33
- original: import("react").ComponentType<import("./Filter").FilterProps>;
32
+ Filter: ((args_0: import("./Filter").FilterProps) => JSX.Element | null) & {
33
+ original: (args_0: import("./Filter").FilterProps) => JSX.Element | null;
34
34
  originalName: string;
35
35
  } & {
36
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<import("./Filter").FilterProps>) => (props: import("./Filter").CreateDecoratorParams) => JSX.Element;
36
+ createDecorator: (decorator: import("@webiny/react-composition").Decorator<(args_0: import("./Filter").FilterProps) => JSX.Element | null>) => (props: import("./Filter").CreateDecoratorParams) => JSX.Element;
37
37
  };
38
38
  FiltersToWhere: ({ converter, modelIds }: import("./FiltersToWhere").FiltersToWhereProps) => JSX.Element | null;
39
39
  FolderAction: (({ modelIds, ...props }: import("./FolderAction").FolderActionProps) => JSX.Element | null) & {
@@ -42,7 +42,7 @@ export declare const Browser: {
42
42
  Table: {
43
43
  Column: (({ modelIds, ...props }: import("./Table/Column").ColumnProps) => JSX.Element | null) & {
44
44
  useTableRow: () => import("@webiny/app-aco").TableRowContextData<import("../../../../../types").TableItem>;
45
- isFolderRow: (row: import("@webiny/app-aco/types").BaseTableItem) => row is import("@webiny/app-aco/types").FolderTableItem;
45
+ isFolderRow: (row: import("@webiny/app-aco/table.types").BaseTableItem) => row is import("@webiny/app-aco/table.types").FolderTableItem;
46
46
  };
47
47
  };
48
48
  };
@@ -18,11 +18,11 @@ export declare const ContentEntryListConfig: (({ children }: {
18
18
  OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => JSX.Element;
19
19
  OptionsMenuLink: (props: import("@webiny/app-admin").OptionsMenuLinkProps) => JSX.Element;
20
20
  };
21
- Filter: import("react").FunctionComponent<import("./Browser/Filter").FilterProps> & {
22
- original: import("react").ComponentType<import("./Browser/Filter").FilterProps>;
21
+ Filter: ((args_0: import("./Browser/Filter").FilterProps) => JSX.Element | null) & {
22
+ original: (args_0: import("./Browser/Filter").FilterProps) => JSX.Element | null;
23
23
  originalName: string;
24
24
  } & {
25
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<import("./Browser/Filter").FilterProps>) => (props: import("./Browser/Filter").CreateDecoratorParams) => JSX.Element;
25
+ createDecorator: (decorator: import("@webiny/react-composition").Decorator<(args_0: import("./Browser/Filter").FilterProps) => JSX.Element | null>) => (props: import("./Browser/Filter").CreateDecoratorParams) => JSX.Element;
26
26
  };
27
27
  FiltersToWhere: ({ converter, modelIds }: import("./Browser/FiltersToWhere").FiltersToWhereProps) => JSX.Element | null;
28
28
  FolderAction: (({ modelIds, ...props }: import("./Browser/FolderAction").FolderActionProps) => JSX.Element | null) & {
@@ -31,7 +31,7 @@ export declare const ContentEntryListConfig: (({ children }: {
31
31
  Table: {
32
32
  Column: (({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) => JSX.Element | null) & {
33
33
  useTableRow: () => import("@webiny/app-aco").TableRowContextData<import("../../../../types").TableItem>;
34
- isFolderRow: (row: import("@webiny/app-aco/types").BaseTableItem) => row is import("@webiny/app-aco/types").FolderTableItem;
34
+ isFolderRow: (row: import("@webiny/app-aco/table.types").BaseTableItem) => row is import("@webiny/app-aco/table.types").FolderTableItem;
35
35
  };
36
36
  };
37
37
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const _default: () => (import("@webiny/app-headless-cms-common/types").CmsEditorFormSettingsPlugin | import("@webiny/app-headless-cms-common/types").CmsIconsPlugin | import("@webiny/app-admin/types").AdminInstallationPlugin | import("@webiny/app-admin/types").AdminAppPermissionRendererPlugin | import("@webiny/app/types").RoutePlugin[] | import("@webiny/app-headless-cms-common/types").CmsFieldValueTransformer<{
2
+ declare const _default: () => (import("@webiny/app-headless-cms-common/types").CmsIconsPlugin | import("@webiny/app/types").RoutePlugin[] | import("@webiny/app-admin/types").AdminInstallationPlugin | import("@webiny/app-headless-cms-common/types").CmsFieldValueTransformer<{
3
3
  id: string;
4
4
  type: string;
5
5
  fieldId: string;
@@ -16,7 +16,7 @@ declare const _default: () => (import("@webiny/app-headless-cms-common/types").C
16
16
  name: string;
17
17
  } | ((props: import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererProps) => import("react").ReactNode);
18
18
  tags?: string[] | undefined;
19
- }>[] | import("@webiny/app").ApolloCacheObjectIdPlugin<import("@webiny/app/plugins/ApolloCacheObjectIdPlugin").ApolloCacheObject> | {
19
+ }>[] | import("@webiny/app-headless-cms-common/types").CmsEditorFormSettingsPlugin | import("@webiny/app-admin/types").AdminAppPermissionRendererPlugin | import("@webiny/app").ApolloCacheObjectIdPlugin<import("@webiny/app/plugins/ApolloCacheObjectIdPlugin").ApolloCacheObject> | {
20
20
  name: string;
21
21
  type: string;
22
22
  render(): JSX.Element;
@@ -31,17 +31,17 @@ var Loader = function Loader(_ref) {
31
31
  };
32
32
  var ContentModelEditor = /*#__PURE__*/(0, _react.lazy)(function () {
33
33
  return Promise.resolve().then(function () {
34
- return (0, _interopRequireWildcard2.default)(require("../views/contentModels/ContentModelEditor"));
34
+ return (0, _interopRequireWildcard2.default)(require( /* webpackChunkName: "ViewsContentModelsContentModelEditor" */"../views/contentModels/ContentModelEditor"));
35
35
  });
36
36
  });
37
37
  var ContentModelsView = /*#__PURE__*/(0, _react.lazy)(function () {
38
38
  return Promise.resolve().then(function () {
39
- return (0, _interopRequireWildcard2.default)(require("../views/contentModels/ContentModels"));
39
+ return (0, _interopRequireWildcard2.default)(require( /* webpackChunkName: "ViewsContentModelsContentModels" */"../views/contentModels/ContentModels"));
40
40
  });
41
41
  });
42
42
  var ContentModelGroupsView = /*#__PURE__*/(0, _react.lazy)(function () {
43
43
  return Promise.resolve().then(function () {
44
- return (0, _interopRequireWildcard2.default)(require("../views/contentModelGroups/ContentModelGroups"));
44
+ return (0, _interopRequireWildcard2.default)(require( /* webpackChunkName: "ViewsContentModelsContentModelGroups" */"../views/contentModelGroups/ContentModelGroups"));
45
45
  });
46
46
  });
47
47
  var plugins = [{
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard3","require","_reactHelmet","_interopRequireDefault","_components","_Progress","_reactRouter","_AdminLayout","_i18n","_ContentEntriesContainer","_ContentEntries","_reactComposition","_templateObject","_templateObject2","_templateObject3","_templateObject4","_excluded","t","i18n","ns","Loader","_ref","children","props","_objectWithoutProperties2","default","createElement","Suspense","fallback","CircularProgress","React","cloneElement","ContentModelEditor","lazy","Promise","resolve","then","_interopRequireWildcard2","ContentModelsView","ContentModelGroupsView","plugins","name","type","route","Route","exact","path","render","SecureRoute","permission","AdminLayout","_taggedTemplateLiteral2","ContentEntriesContainer","CompositionScope","ContentEntries","title","_default","exports"],"sources":["routes.tsx"],"sourcesContent":["import React, { lazy, Suspense } from \"react\";\nimport Helmet from \"react-helmet\";\nimport { SecureRoute } from \"@webiny/app-security/components\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\nimport { Route } from \"@webiny/react-router\";\nimport { AdminLayout } from \"@webiny/app-admin/components/AdminLayout\";\nimport { RoutePlugin } from \"@webiny/app/types\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport { ContentEntriesContainer } from \"~/admin/views/contentEntries/ContentEntriesContainer\";\nimport { ContentEntries } from \"~/admin/views/contentEntries/ContentEntries\";\nimport { CompositionScope } from \"@webiny/react-composition\";\n\nconst t = i18n.ns(\"app-headless-cms/admin/routes\");\n\ninterface LoaderProps {\n children: React.ReactNode;\n}\n\nconst Loader = ({ children, ...props }: LoaderProps) => (\n <Suspense fallback={<CircularProgress />}>\n {React.cloneElement(children as unknown as React.ReactElement, props)}\n </Suspense>\n);\n\nconst ContentModelEditor = lazy(() => import(\"../views/contentModels/ContentModelEditor\"));\nconst ContentModelsView = lazy(() => import(\"../views/contentModels/ContentModels\"));\nconst ContentModelGroupsView = lazy(() => import(\"../views/contentModelGroups/ContentModelGroups\"));\n\nconst plugins: RoutePlugin[] = [\n {\n name: \"route-cms-content-models-groups\",\n type: \"route\",\n route: (\n <Route\n exact\n path={\"/cms/content-model-groups\"}\n render={() => (\n <SecureRoute permission={\"cms.contentModelGroup\"}>\n <AdminLayout>\n <Helmet>\n <title>{t`Content Model Groups`}</title>\n </Helmet>\n <Loader>\n <ContentModelGroupsView />\n </Loader>\n </AdminLayout>\n </SecureRoute>\n )}\n />\n )\n },\n {\n name: \"route-cms-content-models-manage\",\n type: \"route\",\n route: (\n <Route\n exact\n path={\"/cms/content-entries/:modelId\"}\n render={() => (\n <SecureRoute permission={\"cms.contentModel\"}>\n <AdminLayout>\n <Helmet>\n <title>{t`Content`}</title>\n </Helmet>\n <ContentEntriesContainer>\n <CompositionScope name={\"cms\"}>\n <ContentEntries />\n </CompositionScope>\n </ContentEntriesContainer>\n </AdminLayout>\n </SecureRoute>\n )}\n />\n )\n },\n {\n name: \"route-cms-content-models-editor\",\n type: \"route\",\n route: (\n <Route\n exact\n path={\"/cms/content-models/:modelId\"}\n render={() => (\n <SecureRoute permission={\"cms.contentModel\"}>\n <Helmet>\n <title>{t`Edit Content Model`}</title>\n </Helmet>\n <CompositionScope name={\"cms\"}>\n <Loader>\n <ContentModelEditor />\n </Loader>\n </CompositionScope>\n </SecureRoute>\n )}\n />\n )\n },\n {\n name: \"route-cms-content-models\",\n type: \"route\",\n route: (\n <Route\n exact\n path=\"/cms/content-models\"\n render={() => (\n <SecureRoute permission={\"cms.contentModel\"}>\n <AdminLayout>\n <Helmet title={t`Content Models`} />\n <Loader>\n <ContentModelsView />\n </Loader>\n </AdminLayout>\n </SecureRoute>\n )}\n />\n )\n }\n];\n\nexport default plugins;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,wBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAEA,IAAAO,KAAA,GAAAP,OAAA;AACA,IAAAQ,wBAA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AA0B,OAAA,CAAAC,aAAA,CAACpB,YAAA,CAAAsC,KAAK;IACFC,KAAK;IACLC,IAAI,EAAC,qBAAqB;IAC1BC,MAAM,EAAE,SAAAA,OAAA;MAAA,oBACJhD,MAAA,CAAA0B,OAAA,CAAAC,aAAA,CAACtB,WAAA,CAAA4C,WAAW;QAACC,UAAU,EAAE;MAAmB,gBACxClD,MAAA,CAAA0B,OAAA,CAAAC,aAAA,CAACnB,YAAA,CAAA2C,WAAW,qBACRnD,MAAA,CAAA0B,OAAA,CAAAC,aAAA,CAACxB,YAAA,CAAAuB,OAAM;QAAC8B,KAAK,EAAEtC,CAAC,CAAAF,gBAAA,KAAAA,gBAAA,OAAAoC,uBAAA,CAAA1B,OAAA;MAAiB,CAAE,CAAC,eACpC1B,MAAA,CAAA0B,OAAA,CAAAC,aAAA,CAACN,MAAM,qBACHrB,MAAA,CAAA0B,OAAA,CAAAC,aAAA,CAACY,iBAAiB,MAAE,CAChB,CACC,CACJ,CAAC;IAAA;EAChB,CACL;AAET,CAAC,CACJ;AAAC,IAAAkB,QAAA,GAEahB,OAAO;AAAAiB,OAAA,CAAAhC,OAAA,GAAA+B,QAAA"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard3","require","_reactHelmet","_interopRequireDefault","_components","_Progress","_reactRouter","_AdminLayout","_i18n","_ContentEntriesContainer","_ContentEntries","_reactComposition","_templateObject","_templateObject2","_templateObject3","_templateObject4","_excluded","t","i18n","ns","Loader","_ref","children","props","_objectWithoutProperties2","default","createElement","Suspense","fallback","CircularProgress","React","cloneElement","ContentModelEditor","lazy","Promise","resolve","then","_interopRequireWildcard2","ContentModelsView","ContentModelGroupsView","plugins","name","type","route","Route","exact","path","render","SecureRoute","permission","AdminLayout","_taggedTemplateLiteral2","ContentEntriesContainer","CompositionScope","ContentEntries","title","_default","exports"],"sources":["routes.tsx"],"sourcesContent":["import React, { lazy, Suspense } from \"react\";\nimport Helmet from \"react-helmet\";\nimport { SecureRoute } from \"@webiny/app-security/components\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\nimport { Route } from \"@webiny/react-router\";\nimport { AdminLayout } from \"@webiny/app-admin/components/AdminLayout\";\nimport { RoutePlugin } from \"@webiny/app/types\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport { ContentEntriesContainer } from \"~/admin/views/contentEntries/ContentEntriesContainer\";\nimport { ContentEntries } from \"~/admin/views/contentEntries/ContentEntries\";\nimport { CompositionScope } from \"@webiny/react-composition\";\n\nconst t = i18n.ns(\"app-headless-cms/admin/routes\");\n\ninterface LoaderProps {\n children: React.ReactNode;\n}\n\nconst Loader = ({ children, ...props }: LoaderProps) => (\n <Suspense fallback={<CircularProgress />}>\n {React.cloneElement(children as unknown as React.ReactElement, props)}\n </Suspense>\n);\n\nconst ContentModelEditor = lazy(\n () =>\n import(\n /* webpackChunkName: \"ViewsContentModelsContentModelEditor\" */\n \"../views/contentModels/ContentModelEditor\"\n )\n);\nconst ContentModelsView = lazy(\n () =>\n import(\n /* webpackChunkName: \"ViewsContentModelsContentModels\" */\n \"../views/contentModels/ContentModels\"\n )\n);\nconst ContentModelGroupsView = lazy(\n () =>\n import(\n /* webpackChunkName: \"ViewsContentModelsContentModelGroups\" */\n \"../views/contentModelGroups/ContentModelGroups\"\n )\n);\n\nconst plugins: RoutePlugin[] = [\n {\n name: \"route-cms-content-models-groups\",\n type: \"route\",\n route: (\n <Route\n exact\n path={\"/cms/content-model-groups\"}\n render={() => (\n <SecureRoute permission={\"cms.contentModelGroup\"}>\n <AdminLayout>\n <Helmet>\n <title>{t`Content Model Groups`}</title>\n </Helmet>\n <Loader>\n <ContentModelGroupsView />\n </Loader>\n </AdminLayout>\n </SecureRoute>\n )}\n />\n )\n },\n {\n name: \"route-cms-content-models-manage\",\n type: \"route\",\n route: (\n <Route\n exact\n path={\"/cms/content-entries/:modelId\"}\n render={() => (\n <SecureRoute permission={\"cms.contentModel\"}>\n <AdminLayout>\n <Helmet>\n <title>{t`Content`}</title>\n </Helmet>\n <ContentEntriesContainer>\n <CompositionScope name={\"cms\"}>\n <ContentEntries />\n </CompositionScope>\n </ContentEntriesContainer>\n </AdminLayout>\n </SecureRoute>\n )}\n />\n )\n },\n {\n name: \"route-cms-content-models-editor\",\n type: \"route\",\n route: (\n <Route\n exact\n path={\"/cms/content-models/:modelId\"}\n render={() => (\n <SecureRoute permission={\"cms.contentModel\"}>\n <Helmet>\n <title>{t`Edit Content Model`}</title>\n </Helmet>\n <CompositionScope name={\"cms\"}>\n <Loader>\n <ContentModelEditor />\n </Loader>\n </CompositionScope>\n </SecureRoute>\n )}\n />\n )\n },\n {\n name: \"route-cms-content-models\",\n type: \"route\",\n route: (\n <Route\n exact\n path=\"/cms/content-models\"\n render={() => (\n <SecureRoute permission={\"cms.contentModel\"}>\n <AdminLayout>\n <Helmet title={t`Content Models`} />\n <Loader>\n <ContentModelsView />\n </Loader>\n </AdminLayout>\n </SecureRoute>\n )}\n />\n )\n }\n];\n\nexport default plugins;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,wBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAEA,IAAAO,KAAA,GAAAP,OAAA;AACA,IAAAQ,wBAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA;AAA6D,IAAAW,eAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA;AAAA,IAAAC,SAAA;AAE7D,IAAMC,CAAC,GAAGC,UAAI,CAACC,EAAE,CAAC,+BAA+B,CAAC;AAMlD,IAAMC,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,KAA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AAA,CAAAC,aAAA,CAACxB,YAAA,CAAAuB,OAAM;QAAC8B,KAAK,EAAEtC,CAAC,CAAAF,gBAAA,KAAAA,gBAAA,OAAAoC,uBAAA,CAAA1B,OAAA;MAAiB,CAAE,CAAC,eACpC1B,MAAA,CAAA0B,OAAA,CAAAC,aAAA,CAACN,MAAM,qBACHrB,MAAA,CAAA0B,OAAA,CAAAC,aAAA,CAACY,iBAAiB,MAAE,CAChB,CACC,CACJ,CAAC;IAAA;EAChB,CACL;AAET,CAAC,CACJ;AAAC,IAAAkB,QAAA,GAEahB,OAAO;AAAAiB,OAAA,CAAAhC,OAAA,GAAA+B,QAAA"}
@@ -1,5 +1,2 @@
1
- import React from "react";
2
- export declare const PublishEntryRevisionListItem: React.FunctionComponent<unknown> & {
3
- original: React.ComponentType<unknown>;
4
- originalName: string;
5
- };
1
+ /// <reference types="react" />
2
+ export declare const PublishEntryRevisionListItem: import("@webiny/react-composition").DecoratableComponent<() => JSX.Element | null>;
@@ -19,7 +19,7 @@ var PublishEntryRevisionListItemComponent = function PublishEntryRevisionListIte
19
19
  icon: /*#__PURE__*/_react.default.createElement(_publish.ReactComponent, null)
20
20
  })), t(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["Publish"]))));
21
21
  };
22
- var PublishEntryRevisionListItem = (0, _reactComposition.makeComposable)("PublishEntryRevisionListItem", PublishEntryRevisionListItemComponent);
22
+ var PublishEntryRevisionListItem = (0, _reactComposition.makeDecoratable)("PublishEntryRevisionListItem", PublishEntryRevisionListItemComponent);
23
23
  exports.PublishEntryRevisionListItem = PublishEntryRevisionListItem;
24
24
 
25
25
  //# sourceMappingURL=PublishEntryRevisionListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactComposition","require","_List","_Icon","_publish","_react","_interopRequireDefault","_i18n","_templateObject","t","i18n","ns","PublishEntryRevisionListItemComponent","default","createElement","Fragment","ListItemGraphic","Icon","icon","ReactComponent","_taggedTemplateLiteral2","PublishEntryRevisionListItem","makeComposable","exports"],"sources":["PublishEntryRevisionListItem.tsx"],"sourcesContent":["import { makeComposable } from \"@webiny/react-composition\";\nimport { ListItemGraphic } from \"@webiny/ui/List\";\nimport { Icon } from \"@webiny/ui/Icon\";\nimport { ReactComponent as PublishIcon } from \"~/admin/icons/publish.svg\";\nimport React from \"react\";\nimport { i18n } from \"@webiny/app/i18n\";\n\nconst t = i18n.ns(\"app-headless-cms/admin/plugins/content-details/content-revisions\");\n\nconst PublishEntryRevisionListItemComponent = () => {\n return (\n <>\n <ListItemGraphic>\n <Icon icon={<PublishIcon />} />\n </ListItemGraphic>\n {t`Publish`}\n </>\n );\n};\n\nexport const PublishEntryRevisionListItem = makeComposable(\n \"PublishEntryRevisionListItem\",\n PublishEntryRevisionListItemComponent\n);\n"],"mappings":";;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AAAwC,IAAAO,eAAA;AAExC,IAAMC,CAAC,GAAGC,UAAI,CAACC,EAAE,CAAC,kEAAkE,CAAC;AAErF,IAAMC,qCAAqC,GAAG,SAAxCA,qCAAqCA,CAAA,EAAS;EAChD,oBACIP,MAAA,CAAAQ,OAAA,CAAAC,aAAA,CAAAT,MAAA,CAAAQ,OAAA,CAAAE,QAAA,qBACIV,MAAA,CAAAQ,OAAA,CAAAC,aAAA,CAACZ,KAAA,CAAAc,eAAe,qBACZX,MAAA,CAAAQ,OAAA,CAAAC,aAAA,CAACX,KAAA,CAAAc,IAAI;IAACC,IAAI,eAAEb,MAAA,CAAAQ,OAAA,CAAAC,aAAA,CAACV,QAAA,CAAAe,cAAW,MAAE;EAAE,CAAE,CACjB,CAAC,EACjBV,CAAC,CAAAD,eAAA,KAAAA,eAAA,OAAAY,uBAAA,CAAAP,OAAA,gBACJ,CAAC;AAEX,CAAC;AAEM,IAAMQ,4BAA4B,GAAG,IAAAC,gCAAc,EACtD,8BAA8B,EAC9BV,qCACJ,CAAC;AAACW,OAAA,CAAAF,4BAAA,GAAAA,4BAAA"}
1
+ {"version":3,"names":["_reactComposition","require","_List","_Icon","_publish","_react","_interopRequireDefault","_i18n","_templateObject","t","i18n","ns","PublishEntryRevisionListItemComponent","default","createElement","Fragment","ListItemGraphic","Icon","icon","ReactComponent","_taggedTemplateLiteral2","PublishEntryRevisionListItem","makeDecoratable","exports"],"sources":["PublishEntryRevisionListItem.tsx"],"sourcesContent":["import { makeDecoratable } from \"@webiny/react-composition\";\nimport { ListItemGraphic } from \"@webiny/ui/List\";\nimport { Icon } from \"@webiny/ui/Icon\";\nimport { ReactComponent as PublishIcon } from \"~/admin/icons/publish.svg\";\nimport React from \"react\";\nimport { i18n } from \"@webiny/app/i18n\";\n\nconst t = i18n.ns(\"app-headless-cms/admin/plugins/content-details/content-revisions\");\n\nconst PublishEntryRevisionListItemComponent = () => {\n return (\n <>\n <ListItemGraphic>\n <Icon icon={<PublishIcon />} />\n </ListItemGraphic>\n {t`Publish`}\n </>\n );\n};\n\nexport const PublishEntryRevisionListItem = makeDecoratable(\n \"PublishEntryRevisionListItem\",\n PublishEntryRevisionListItemComponent\n);\n"],"mappings":";;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AAAwC,IAAAO,eAAA;AAExC,IAAMC,CAAC,GAAGC,UAAI,CAACC,EAAE,CAAC,kEAAkE,CAAC;AAErF,IAAMC,qCAAqC,GAAG,SAAxCA,qCAAqCA,CAAA,EAAS;EAChD,oBACIP,MAAA,CAAAQ,OAAA,CAAAC,aAAA,CAAAT,MAAA,CAAAQ,OAAA,CAAAE,QAAA,qBACIV,MAAA,CAAAQ,OAAA,CAAAC,aAAA,CAACZ,KAAA,CAAAc,eAAe,qBACZX,MAAA,CAAAQ,OAAA,CAAAC,aAAA,CAACX,KAAA,CAAAc,IAAI;IAACC,IAAI,eAAEb,MAAA,CAAAQ,OAAA,CAAAC,aAAA,CAACV,QAAA,CAAAe,cAAW,MAAE;EAAE,CAAE,CACjB,CAAC,EACjBV,CAAC,CAAAD,eAAA,KAAAA,eAAA,OAAAY,uBAAA,CAAAP,OAAA,gBACJ,CAAC;AAEX,CAAC;AAEM,IAAMQ,4BAA4B,GAAG,IAAAC,iCAAe,EACvD,8BAA8B,EAC9BV,qCACJ,CAAC;AAACW,OAAA,CAAAF,4BAAA,GAAAA,4BAAA"}
@@ -10,7 +10,4 @@ export interface OptionsMenuProps {
10
10
  items: OptionsMenuItem[];
11
11
  "data-testid"?: string;
12
12
  }
13
- export declare const OptionsMenu: React.FunctionComponent<OptionsMenuProps> & {
14
- original: React.ComponentType<OptionsMenuProps>;
15
- originalName: string;
16
- };
13
+ export declare const OptionsMenu: import("@webiny/app-admin").DecoratableComponent<(args_0: OptionsMenuProps) => JSX.Element | null>;
@@ -21,7 +21,7 @@ var menuStyles = /*#__PURE__*/(0, _emotion.css)({
21
21
  pointerEvents: "none"
22
22
  }
23
23
  }, "label:menuStyles;");
24
- var OptionsMenu = (0, _appAdmin.makeComposable)("CmsModelsOptionsMenu", function (_ref) {
24
+ var OptionsMenu = (0, _appAdmin.makeDecoratable)("CmsModelsOptionsMenu", function (_ref) {
25
25
  var items = _ref.items,
26
26
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
27
27
  if (!items.length) {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_emotion","_appAdmin","_Menu","_Button","_more_vert","_List","_Icon","_excluded","menuStyles","css","opacity","pointerEvents","OptionsMenu","makeComposable","_ref","items","props","_objectWithoutProperties2","default","length","createElement","Menu","Object","assign","className","handle","IconButton","icon","ReactComponent","anchor","map","item","MenuItem","key","label","disabled","onClick","ListItemGraphic","Icon","exports"],"sources":["OptionsMenu.tsx"],"sourcesContent":["import React from \"react\";\nimport { css } from \"emotion\";\nimport { makeComposable } from \"@webiny/app-admin\";\nimport { Menu, MenuItem } from \"@webiny/ui/Menu\";\nimport { IconButton } from \"@webiny/ui/Button\";\nimport { ReactComponent as MoreVerticalIcon } from \"@material-design-icons/svg/filled/more_vert.svg\";\nimport { ListItemGraphic } from \"@webiny/ui/List\";\nimport { Icon } from \"@webiny/ui/Icon\";\n\nconst menuStyles = css({\n \".disabled\": {\n opacity: 0.5,\n pointerEvents: \"none\"\n }\n});\n\nexport interface OptionsMenuItem {\n label: string;\n icon: React.ReactElement;\n onClick: () => void;\n disabled?: boolean;\n \"data-testid\"?: string;\n}\n\nexport interface OptionsMenuProps {\n items: OptionsMenuItem[];\n \"data-testid\"?: string;\n}\n\nexport const OptionsMenu = makeComposable<OptionsMenuProps>(\n \"CmsModelsOptionsMenu\",\n ({ items, ...props }) => {\n if (!items.length) {\n return null;\n }\n\n return (\n <Menu\n className={menuStyles}\n handle={<IconButton icon={<MoreVerticalIcon />} />}\n anchor={\"topLeft\"}\n {...props}\n >\n {items.map(item => (\n <MenuItem\n key={item.label}\n disabled={item.disabled ?? false}\n onClick={item.onClick}\n data-testid={item[\"data-testid\"]}\n >\n <ListItemGraphic>\n <Icon icon={item.icon} />\n </ListItemGraphic>\n {item.label}\n </MenuItem>\n ))}\n </Menu>\n );\n }\n);\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,K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,IAAI,CAACJ;IAAK,CAAE,CACX,CAAC,EACjBI,IAAI,CAACG,KACA,CAAC;EAAA,CACd,CACC,CAAC;AAEf,CACJ,CAAC;AAACK,OAAA,CAAA3B,WAAA,GAAAA,WAAA"}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_emotion","_appAdmin","_Menu","_Button","_more_vert","_List","_Icon","_excluded","menuStyles","css","opacity","pointerEvents","OptionsMenu","makeDecoratable","_ref","items","props","_objectWithoutProperties2","default","length","createElement","Menu","Object","assign","className","handle","IconButton","icon","ReactComponent","anchor","map","item","MenuItem","key","label","disabled","onClick","ListItemGraphic","Icon","exports"],"sources":["OptionsMenu.tsx"],"sourcesContent":["import React from \"react\";\nimport { css } from \"emotion\";\nimport { makeDecoratable } from \"@webiny/app-admin\";\nimport { Menu, MenuItem } from \"@webiny/ui/Menu\";\nimport { IconButton } from \"@webiny/ui/Button\";\nimport { ReactComponent as MoreVerticalIcon } from \"@material-design-icons/svg/filled/more_vert.svg\";\nimport { ListItemGraphic } from \"@webiny/ui/List\";\nimport { Icon } from \"@webiny/ui/Icon\";\n\nconst menuStyles = css({\n \".disabled\": {\n opacity: 0.5,\n pointerEvents: \"none\"\n }\n});\n\nexport interface OptionsMenuItem {\n label: string;\n icon: React.ReactElement;\n onClick: () => void;\n disabled?: boolean;\n \"data-testid\"?: string;\n}\n\nexport interface OptionsMenuProps {\n items: OptionsMenuItem[];\n \"data-testid\"?: string;\n}\n\nexport const OptionsMenu = makeDecoratable(\n \"CmsModelsOptionsMenu\",\n ({ items, ...props }: OptionsMenuProps) => {\n if (!items.length) {\n return null;\n }\n\n return (\n <Menu\n className={menuStyles}\n handle={<IconButton icon={<MoreVerticalIcon />} />}\n anchor={\"topLeft\"}\n {...props}\n >\n {items.map(item => (\n <MenuItem\n key={item.label}\n disabled={item.disabled ?? false}\n onClick={item.onClick}\n data-testid={item[\"data-testid\"]}\n >\n <ListItemGraphic>\n <Icon icon={item.icon} />\n </ListItemGraphic>\n {item.label}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IAAI,CAACG,KAAM;MAChBC,QAAQ,EAAEJ,IAAI,CAACI,QAAQ,IAAI,KAAM;MACjCC,OAAO,EAAEL,IAAI,CAACK,OAAQ;MACtB,eAAaL,IAAI,CAAC,aAAa;IAAE,gBAEjClC,MAAA,CAAAqB,OAAA,CAAAE,aAAA,CAACf,KAAA,CAAAgC,eAAe,qBACZxC,MAAA,CAAAqB,OAAA,CAAAE,aAAA,CAACd,KAAA,CAAAgC,IAAI;MAACX,IAAI,EAAEI,IAAI,CAACJ;IAAK,CAAE,CACX,CAAC,EACjBI,IAAI,CAACG,KACA,CAAC;EAAA,CACd,CACC,CAAC;AAEf,CACJ,CAAC;AAACK,OAAA,CAAA3B,WAAA,GAAAA,WAAA"}
package/allPlugins.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const _default: (import("@webiny/app-headless-cms-common/types").CmsModelFieldRegexValidatorExpressionPlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererPlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldTypePlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererPlugin[] | import("@webiny/app-headless-cms-common/types").CmsModelFieldValidatorPlugin<any> | (import("@webiny/app-headless-cms-common/types").CmsEditorFormSettingsPlugin | import("@webiny/app-headless-cms-common/types").CmsIconsPlugin | import("@webiny/app-admin/types").AdminInstallationPlugin | import("@webiny/app-admin/types").AdminAppPermissionRendererPlugin | import("@webiny/app/types").RoutePlugin[] | import("@webiny/app-headless-cms-common/types").CmsFieldValueTransformer<{
2
+ declare const _default: (import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererPlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldTypePlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererPlugin[] | import("@webiny/app-headless-cms-common/types").CmsModelFieldValidatorPlugin<any> | (import("@webiny/app-headless-cms-common/types").CmsIconsPlugin | import("@webiny/app/types").RoutePlugin[] | import("@webiny/app-admin/types").AdminInstallationPlugin | import("@webiny/app-headless-cms-common/types").CmsFieldValueTransformer<{
3
3
  id: string;
4
4
  type: string;
5
5
  fieldId: string;
@@ -16,9 +16,9 @@ declare const _default: (import("@webiny/app-headless-cms-common/types").CmsMode
16
16
  name: string;
17
17
  } | ((props: import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererProps) => import("react").ReactNode);
18
18
  tags?: string[] | undefined;
19
- }>[] | import("@webiny/app").ApolloCacheObjectIdPlugin<import("@webiny/app/plugins/ApolloCacheObjectIdPlugin").ApolloCacheObject> | {
19
+ }>[] | import("@webiny/app-headless-cms-common/types").CmsEditorFormSettingsPlugin | import("@webiny/app-admin/types").AdminAppPermissionRendererPlugin | import("@webiny/app").ApolloCacheObjectIdPlugin<import("@webiny/app/plugins/ApolloCacheObjectIdPlugin").ApolloCacheObject> | {
20
20
  name: string;
21
21
  type: string;
22
22
  render(): JSX.Element;
23
- }[])[] | import("@webiny/app-plugin-admin-welcome-screen/types").AdminWelcomeScreenWidgetPlugin)[];
23
+ }[])[] | import("@webiny/app-headless-cms-common/types").CmsModelFieldRegexValidatorExpressionPlugin | import("@webiny/app-plugin-admin-welcome-screen/types").AdminWelcomeScreenWidgetPlugin)[];
24
24
  export default _default;
package/index.d.ts CHANGED
@@ -13,11 +13,11 @@ interface LegacyContentEntriesViewConfigProps {
13
13
  * @deprecated Use ContentEntryListConfig instead
14
14
  */
15
15
  export declare const ContentEntriesViewConfig: (({ children }: LegacyContentEntriesViewConfigProps) => JSX.Element) & {
16
- Filter: React.FunctionComponent<import("./admin/config/contentEntries/list/Browser/Filter").FilterProps> & {
17
- original: React.ComponentType<import("./admin/config/contentEntries/list/Browser/Filter").FilterProps>;
16
+ Filter: ((args_0: import("./admin/config/contentEntries/list/Browser/Filter").FilterProps) => JSX.Element | null) & {
17
+ original: (args_0: import("./admin/config/contentEntries/list/Browser/Filter").FilterProps) => JSX.Element | null;
18
18
  originalName: string;
19
19
  } & {
20
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<import("./admin/config/contentEntries/list/Browser/Filter").FilterProps>) => (props: import("./admin/config/contentEntries/list/Browser/Filter").CreateDecoratorParams) => JSX.Element;
20
+ createDecorator: (decorator: import("@webiny/react-composition").Decorator<(args_0: import("./admin/config/contentEntries/list/Browser/Filter").FilterProps) => JSX.Element | null>) => (props: import("./admin/config/contentEntries/list/Browser/Filter").CreateDecoratorParams) => JSX.Element;
21
21
  };
22
22
  Sorter: (props: any) => null;
23
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-headless-cms",
3
- "version": "5.39.0",
3
+ "version": "5.39.1-beta.1",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,28 +28,28 @@
28
28
  "@material-design-icons/svg": "0.14.2",
29
29
  "@svgr/webpack": "6.5.1",
30
30
  "@types/react": "17.0.39",
31
- "@webiny/app": "5.39.0",
32
- "@webiny/app-aco": "5.39.0",
33
- "@webiny/app-admin": "5.39.0",
34
- "@webiny/app-graphql-playground": "5.39.0",
35
- "@webiny/app-headless-cms-common": "5.39.0",
36
- "@webiny/app-i18n": "5.39.0",
37
- "@webiny/app-plugin-admin-welcome-screen": "5.39.0",
38
- "@webiny/app-security": "5.39.0",
39
- "@webiny/error": "5.39.0",
40
- "@webiny/feature-flags": "5.39.0",
41
- "@webiny/form": "5.39.0",
42
- "@webiny/lexical-editor": "5.39.0",
43
- "@webiny/lexical-nodes": "5.39.0",
44
- "@webiny/lexical-theme": "5.39.0",
45
- "@webiny/plugins": "5.39.0",
46
- "@webiny/react-composition": "5.39.0",
47
- "@webiny/react-properties": "5.39.0",
48
- "@webiny/react-router": "5.39.0",
49
- "@webiny/theme": "5.39.0",
50
- "@webiny/ui": "5.39.0",
51
- "@webiny/utils": "5.39.0",
52
- "@webiny/validation": "5.39.0",
31
+ "@webiny/app": "5.39.1-beta.1",
32
+ "@webiny/app-aco": "5.39.1-beta.1",
33
+ "@webiny/app-admin": "5.39.1-beta.1",
34
+ "@webiny/app-graphql-playground": "5.39.1-beta.1",
35
+ "@webiny/app-headless-cms-common": "5.39.1-beta.1",
36
+ "@webiny/app-i18n": "5.39.1-beta.1",
37
+ "@webiny/app-plugin-admin-welcome-screen": "5.39.1-beta.1",
38
+ "@webiny/app-security": "5.39.1-beta.1",
39
+ "@webiny/error": "5.39.1-beta.1",
40
+ "@webiny/feature-flags": "5.39.1-beta.1",
41
+ "@webiny/form": "5.39.1-beta.1",
42
+ "@webiny/lexical-editor": "5.39.1-beta.1",
43
+ "@webiny/lexical-nodes": "5.39.1-beta.1",
44
+ "@webiny/lexical-theme": "5.39.1-beta.1",
45
+ "@webiny/plugins": "5.39.1-beta.1",
46
+ "@webiny/react-composition": "5.39.1-beta.1",
47
+ "@webiny/react-properties": "5.39.1-beta.1",
48
+ "@webiny/react-router": "5.39.1-beta.1",
49
+ "@webiny/theme": "5.39.1-beta.1",
50
+ "@webiny/ui": "5.39.1-beta.1",
51
+ "@webiny/utils": "5.39.1-beta.1",
52
+ "@webiny/validation": "5.39.1-beta.1",
53
53
  "apollo-cache": "1.3.5",
54
54
  "apollo-client": "2.6.10",
55
55
  "apollo-link": "1.2.14",
@@ -80,8 +80,8 @@
80
80
  "@babel/preset-env": "7.22.7",
81
81
  "@babel/preset-react": "7.22.5",
82
82
  "@babel/preset-typescript": "7.22.5",
83
- "@webiny/cli": "5.39.0",
84
- "@webiny/project-utils": "5.39.0",
83
+ "@webiny/cli": "5.39.1-beta.1",
84
+ "@webiny/project-utils": "5.39.1-beta.1",
85
85
  "babel-plugin-emotion": "9.2.11",
86
86
  "babel-plugin-module-resolver": "4.1.0",
87
87
  "rimraf": "3.0.2",
@@ -111,5 +111,5 @@
111
111
  ]
112
112
  }
113
113
  },
114
- "gitHead": "3846541fd9c1764e6a8041f0b4208d720eb9c314"
114
+ "gitHead": "6fc74b45740bd4123dcf9b5890bfacee594208bf"
115
115
  }