@plone/volto 18.4.0 → 18.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +8 -8
  3. package/locales/ca/LC_MESSAGES/volto.po +5 -0
  4. package/locales/ca.json +1 -1
  5. package/locales/de/LC_MESSAGES/volto.po +5 -0
  6. package/locales/de.json +1 -1
  7. package/locales/en/LC_MESSAGES/volto.po +5 -0
  8. package/locales/en.json +1 -1
  9. package/locales/es/LC_MESSAGES/volto.po +5 -0
  10. package/locales/es.json +1 -1
  11. package/locales/eu/LC_MESSAGES/volto.po +5 -0
  12. package/locales/eu.json +1 -1
  13. package/locales/fi/LC_MESSAGES/volto.po +5 -0
  14. package/locales/fi.json +1 -1
  15. package/locales/fr/LC_MESSAGES/volto.po +5 -0
  16. package/locales/fr.json +1 -1
  17. package/locales/hi/LC_MESSAGES/volto.po +5 -0
  18. package/locales/hi.json +1 -1
  19. package/locales/it/LC_MESSAGES/volto.po +5 -0
  20. package/locales/it.json +1 -1
  21. package/locales/ja/LC_MESSAGES/volto.po +5 -0
  22. package/locales/ja.json +1 -1
  23. package/locales/nl/LC_MESSAGES/volto.po +5 -0
  24. package/locales/nl.json +1 -1
  25. package/locales/pt/LC_MESSAGES/volto.po +5 -0
  26. package/locales/pt.json +1 -1
  27. package/locales/pt_BR/LC_MESSAGES/volto.po +5 -0
  28. package/locales/pt_BR.json +1 -1
  29. package/locales/ro/LC_MESSAGES/volto.po +5 -0
  30. package/locales/ro.json +1 -1
  31. package/locales/sv.json +1 -0
  32. package/locales/volto.pot +5 -0
  33. package/locales/zh_CN/LC_MESSAGES/volto.po +5 -0
  34. package/locales/zh_CN.json +1 -1
  35. package/package.json +5 -5
  36. package/src/components/manage/Blocks/Search/hocs/withSearch.jsx +3 -0
  37. package/src/components/manage/Contents/Contents.jsx +6 -0
  38. package/src/components/theme/App/App.jsx +5 -2
  39. package/src/components/theme/RelatedItems/RelatedItems.jsx +70 -0
  40. package/src/components/theme/RelatedItems/RelatedItems.test.jsx +83 -0
  41. package/src/config/index.js +1 -0
  42. package/src/config/slots.js +5 -0
  43. package/src/helpers/Robots/Robots.js +3 -1
  44. package/test-setup-config.jsx +1 -0
  45. package/theme/themes/pastanaga/extras/main.less +5 -0
  46. package/types/components/theme/Navigation/ContextNavigation.d.ts +1 -1
  47. package/types/components/theme/RelatedItems/RelatedItems.d.ts +13 -0
  48. package/types/components/theme/RelatedItems/RelatedItems.test.d.ts +1 -0
  49. package/types/components/theme/View/RenderBlocks.d.ts +1 -1
  50. package/types/components/theme/Widgets/ArrayWidget.d.ts +1 -1
  51. package/types/components/theme/Widgets/DateWidget.d.ts +1 -1
  52. package/types/components/theme/Widgets/DatetimeWidget.d.ts +1 -1
  53. package/types/components/theme/Widgets/DescriptionWidget.d.ts +1 -1
  54. package/types/components/theme/Widgets/EmailWidget.d.ts +1 -1
  55. package/types/components/theme/Widgets/FileWidget.d.ts +1 -1
  56. package/types/components/theme/Widgets/ImageWidget.d.ts +1 -1
  57. package/types/components/theme/Widgets/PasswordWidget.d.ts +1 -1
  58. package/types/components/theme/Widgets/RelationWidget.d.ts +1 -1
  59. package/types/components/theme/Widgets/RelationsWidget.d.ts +1 -1
  60. package/types/components/theme/Widgets/RichTextWidget.d.ts +1 -1
  61. package/types/components/theme/Widgets/SelectWidget.d.ts +1 -1
  62. package/types/components/theme/Widgets/TextWidget.d.ts +1 -1
  63. package/types/components/theme/Widgets/TitleWidget.d.ts +1 -1
  64. package/types/components/theme/Widgets/TokenWidget.d.ts +1 -1
  65. package/types/components/theme/Widgets/UrlWidget.d.ts +1 -1
  66. package/types/config/slots.d.ts +10 -2
@@ -0,0 +1,13 @@
1
+ export default RelatedItems;
2
+ /**
3
+ * Related Items component.
4
+ * @function RelatedItems
5
+ * @param {array} relatedItems Array of related items.
6
+ * @returns {JSX.Element} Markup of the component.
7
+ */
8
+ declare function RelatedItems({ content }: any[]): JSX.Element;
9
+ declare namespace RelatedItems {
10
+ namespace propTypes {
11
+ let content: any;
12
+ }
13
+ }
@@ -1,2 +1,2 @@
1
1
  export default RenderBlocks;
2
- declare function RenderBlocks(props: any): import("react/jsx-runtime").JSX.Element | "";
2
+ declare function RenderBlocks(props: any): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function ArrayWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ declare function DateWidget({ value, children, className, format }: {
4
4
  children: any;
5
5
  className: any;
6
6
  format?: string;
7
- }): import("react/jsx-runtime").JSX.Element | "";
7
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ declare function DatetimeWidget({ value, children, className, format }: {
4
4
  children: any;
5
5
  className: any;
6
6
  format?: string;
7
- }): import("react/jsx-runtime").JSX.Element | "";
7
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function DescriptionWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function EmailWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function FileWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,4 @@ export default ImageWidget;
2
2
  declare function ImageWidget({ value, className }: {
3
3
  value: any;
4
4
  className: any;
5
- }): import("react/jsx-runtime").JSX.Element | "";
5
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function PasswordWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function RelationWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function RelationsWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,4 @@ export default RichTextWidget;
2
2
  declare function RichTextWidget({ value, className }: {
3
3
  value: any;
4
4
  className: any;
5
- }): import("react/jsx-runtime").JSX.Element | "";
5
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function SelectWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function TextWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function TitleWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function TokenWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ declare function UrlWidget({ value, children, className }: {
3
3
  value: any;
4
4
  children: any;
5
5
  className: any;
6
- }): import("react/jsx-runtime").JSX.Element | "";
6
+ }): "" | import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  export default slots;
2
2
  declare namespace slots {
3
- let belowContent: {
3
+ let belowContent: ({
4
4
  name: string;
5
5
  component: {
6
6
  ({ content }: {
@@ -17,5 +17,13 @@ declare namespace slots {
17
17
  };
18
18
  };
19
19
  };
20
- }[];
20
+ } | {
21
+ name: string;
22
+ component: {
23
+ ({ content }: any[]): JSX.Element;
24
+ propTypes: {
25
+ content: any;
26
+ };
27
+ };
28
+ })[];
21
29
  }