@plone/volto 16.2.0 → 16.4.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 (54) hide show
  1. package/.changelog.draft +28 -0
  2. package/.storybook/static/previewImage.svg +48 -0
  3. package/.yarn/install-state.gz +0 -0
  4. package/CHANGELOG.md +76 -2
  5. package/README.md +0 -31
  6. package/RELEASING.md +73 -0
  7. package/addon-registry.js +18 -4
  8. package/cypress/support/commands.js +9 -8
  9. package/docker-compose.yml +2 -2
  10. package/locales/ca/LC_MESSAGES/volto.po +2 -2
  11. package/locales/de/LC_MESSAGES/volto.po +169 -169
  12. package/locales/de.json +1 -1
  13. package/locales/en/LC_MESSAGES/volto.po +2 -2
  14. package/locales/en.json +1 -1
  15. package/locales/es/LC_MESSAGES/volto.po +30 -30
  16. package/locales/es.json +1 -1
  17. package/locales/eu/LC_MESSAGES/volto.po +112 -112
  18. package/locales/eu.json +1 -1
  19. package/locales/fi/LC_MESSAGES/volto.po +4575 -0
  20. package/locales/fi.json +1 -0
  21. package/locales/fr/LC_MESSAGES/volto.po +454 -454
  22. package/locales/fr.json +1 -1
  23. package/locales/it/LC_MESSAGES/volto.po +2 -2
  24. package/locales/ja/LC_MESSAGES/volto.po +2 -2
  25. package/locales/nl/LC_MESSAGES/volto.po +2 -2
  26. package/locales/pt/LC_MESSAGES/volto.po +2 -2
  27. package/locales/pt_BR/LC_MESSAGES/volto.po +2 -2
  28. package/locales/ro/LC_MESSAGES/volto.po +2 -2
  29. package/locales/volto.pot +3 -3
  30. package/locales/zh_CN/LC_MESSAGES/volto.po +4570 -0
  31. package/locales/zh_CN.json +1 -0
  32. package/news/.gitkeep +0 -0
  33. package/news/4051.bug +1 -0
  34. package/package.json +20 -9
  35. package/packages/volto-slate/package.json +2 -2
  36. package/packages/volto-slate/src/editor/config.jsx +3 -0
  37. package/packages/volto-slate/src/editor/deserialize.js +37 -24
  38. package/packages/volto-slate/src/utils/blocks.js +31 -0
  39. package/packages/volto-slate/src/widgets/HtmlSlateWidget.jsx +1 -1
  40. package/src/components/manage/Blocks/Block/DefaultView.jsx +1 -1
  41. package/src/components/manage/Contents/Contents.jsx +1 -1
  42. package/src/components/manage/Controlpanels/Groups/GroupsControlpanel.jsx +5 -2
  43. package/src/components/manage/Controlpanels/Users/UsersControlpanel.jsx +8 -3
  44. package/src/components/manage/Form/Form.jsx +10 -1
  45. package/src/components/manage/Widgets/ArrayWidget.jsx +3 -0
  46. package/src/components/manage/Widgets/RecurrenceWidget/Occurences.jsx +1 -1
  47. package/src/components/theme/Logo/Logo.stories.jsx +27 -0
  48. package/src/components/theme/SearchWidget/SearchWidget.jsx +4 -0
  49. package/src/components/theme/View/DefaultView.jsx +11 -3
  50. package/src/config/index.js +0 -1
  51. package/src/registry.js +0 -8
  52. package/theme/theme.config +3 -3
  53. package/towncrier.toml +33 -0
  54. package/.storybook/static/previewImage.png +0 -0
@@ -7,7 +7,12 @@ import React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import { injectIntl } from 'react-intl';
9
9
 
10
- import { Container, Segment, Grid, Label } from 'semantic-ui-react';
10
+ import {
11
+ Container as SemanticContainer,
12
+ Segment,
13
+ Grid,
14
+ Label,
15
+ } from 'semantic-ui-react';
11
16
  import config from '@plone/volto/registry';
12
17
  import { getSchema } from '@plone/volto/actions';
13
18
  import { getWidget } from '@plone/volto/helpers/Widget/utils';
@@ -57,12 +62,15 @@ const DefaultView = (props) => {
57
62
  // eslint-disable-next-line react-hooks/exhaustive-deps
58
63
  }, []);
59
64
 
65
+ const Container =
66
+ config.getComponent({ name: 'Container' }).component || SemanticContainer;
67
+
60
68
  // If the content is not yet loaded, then do not show anything
61
69
  return contentLoaded ? (
62
70
  hasBlocksData(content) ? (
63
- <div id="page-document" className="ui container">
71
+ <Container id="page-document">
64
72
  <RenderBlocks {...props} path={path} />
65
- </div>
73
+ </Container>
66
74
  ) : (
67
75
  <Container id="page-document">
68
76
  {fieldsets?.map((fs) => {
@@ -206,7 +206,6 @@ ConfigRegistry.views = config.views;
206
206
  ConfigRegistry.widgets = config.widgets;
207
207
  ConfigRegistry.addonRoutes = config.addonRoutes;
208
208
  ConfigRegistry.addonReducers = config.addonReducers;
209
- ConfigRegistry.appExtras = config.appExtras;
210
209
  ConfigRegistry.components = config.components;
211
210
 
212
211
  applyAddonConfiguration(ConfigRegistry);
package/src/registry.js CHANGED
@@ -74,14 +74,6 @@ class Config {
74
74
  this._data.addonRoutes = addonRoutes;
75
75
  }
76
76
 
77
- get appExtras() {
78
- return this._data.appExtras;
79
- }
80
-
81
- set appExtras(appExtras) {
82
- this._data.appExtras = appExtras;
83
- }
84
-
85
77
  get slots() {
86
78
  return this._data.slots;
87
79
  }
@@ -82,10 +82,10 @@
82
82
  *******************************/
83
83
 
84
84
  /* Path to theme packages */
85
- @themesFolder : '../../theme/themes';
85
+ @themesFolder : '~volto-themes';
86
86
 
87
87
  /* Path to site override folder */
88
- @siteFolder : "../../theme";
88
+ @siteFolder : "~@root/../themes/site";
89
89
 
90
90
 
91
91
  /*******************************
@@ -93,6 +93,6 @@
93
93
  *******************************/
94
94
 
95
95
  @import (multiple) "~semantic-ui-less/theme.less";
96
- @fontPath : "../../@{theme}/assets/fonts";
96
+ @fontPath : "~volto-themes/@{theme}/assets/fonts";
97
97
 
98
98
  /* End Config */
package/towncrier.toml ADDED
@@ -0,0 +1,33 @@
1
+ [tool.towncrier]
2
+ filename = "CHANGELOG.md"
3
+ directory = "news/"
4
+ title_format = "## {version} ({project_date})"
5
+ underlines = ["", "", ""]
6
+ template = "packages/scripts/templates/towncrier_template.jinja"
7
+ start_string = "<!-- towncrier release notes start -->\n"
8
+ issue_format = "[#{issue}](https://github.com/plone/volto/issues/{issue})"
9
+
10
+ [[tool.towncrier.type]]
11
+ directory = "breaking"
12
+ name = "Breaking"
13
+ showcontent = true
14
+
15
+ [[tool.towncrier.type]]
16
+ directory = "feature"
17
+ name = "Feature"
18
+ showcontent = true
19
+
20
+ [[tool.towncrier.type]]
21
+ directory = "bugfix"
22
+ name = "Bugfix"
23
+ showcontent = true
24
+
25
+ [[tool.towncrier.type]]
26
+ directory = "internal"
27
+ name = "Internal"
28
+ showcontent = true
29
+
30
+ [[tool.towncrier.type]]
31
+ directory = "documentation"
32
+ name = "Documentation"
33
+ showcontent = true
Binary file