@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.
- package/.changelog.draft +28 -0
- package/.storybook/static/previewImage.svg +48 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +76 -2
- package/README.md +0 -31
- package/RELEASING.md +73 -0
- package/addon-registry.js +18 -4
- package/cypress/support/commands.js +9 -8
- package/docker-compose.yml +2 -2
- package/locales/ca/LC_MESSAGES/volto.po +2 -2
- package/locales/de/LC_MESSAGES/volto.po +169 -169
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +2 -2
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +30 -30
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +112 -112
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +4575 -0
- package/locales/fi.json +1 -0
- package/locales/fr/LC_MESSAGES/volto.po +454 -454
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +2 -2
- package/locales/ja/LC_MESSAGES/volto.po +2 -2
- package/locales/nl/LC_MESSAGES/volto.po +2 -2
- package/locales/pt/LC_MESSAGES/volto.po +2 -2
- package/locales/pt_BR/LC_MESSAGES/volto.po +2 -2
- package/locales/ro/LC_MESSAGES/volto.po +2 -2
- package/locales/volto.pot +3 -3
- package/locales/zh_CN/LC_MESSAGES/volto.po +4570 -0
- package/locales/zh_CN.json +1 -0
- package/news/.gitkeep +0 -0
- package/news/4051.bug +1 -0
- package/package.json +20 -9
- package/packages/volto-slate/package.json +2 -2
- package/packages/volto-slate/src/editor/config.jsx +3 -0
- package/packages/volto-slate/src/editor/deserialize.js +37 -24
- package/packages/volto-slate/src/utils/blocks.js +31 -0
- package/packages/volto-slate/src/widgets/HtmlSlateWidget.jsx +1 -1
- package/src/components/manage/Blocks/Block/DefaultView.jsx +1 -1
- package/src/components/manage/Contents/Contents.jsx +1 -1
- package/src/components/manage/Controlpanels/Groups/GroupsControlpanel.jsx +5 -2
- package/src/components/manage/Controlpanels/Users/UsersControlpanel.jsx +8 -3
- package/src/components/manage/Form/Form.jsx +10 -1
- package/src/components/manage/Widgets/ArrayWidget.jsx +3 -0
- package/src/components/manage/Widgets/RecurrenceWidget/Occurences.jsx +1 -1
- package/src/components/theme/Logo/Logo.stories.jsx +27 -0
- package/src/components/theme/SearchWidget/SearchWidget.jsx +4 -0
- package/src/components/theme/View/DefaultView.jsx +11 -3
- package/src/config/index.js +0 -1
- package/src/registry.js +0 -8
- package/theme/theme.config +3 -3
- package/towncrier.toml +33 -0
- 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 {
|
|
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
|
-
<
|
|
71
|
+
<Container id="page-document">
|
|
64
72
|
<RenderBlocks {...props} path={path} />
|
|
65
|
-
</
|
|
73
|
+
</Container>
|
|
66
74
|
) : (
|
|
67
75
|
<Container id="page-document">
|
|
68
76
|
{fieldsets?.map((fs) => {
|
package/src/config/index.js
CHANGED
|
@@ -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
|
}
|
package/theme/theme.config
CHANGED
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
*******************************/
|
|
83
83
|
|
|
84
84
|
/* Path to theme packages */
|
|
85
|
-
@themesFolder : '
|
|
85
|
+
@themesFolder : '~volto-themes';
|
|
86
86
|
|
|
87
87
|
/* Path to site override folder */
|
|
88
|
-
@siteFolder : "
|
|
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 : "
|
|
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
|