@plone/volto 17.0.0-alpha.11 → 17.0.0-alpha.12
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.md +12 -0
- package/package.json +1 -1
- package/packages/volto-slate/package.json +1 -1
- package/src/components/manage/Contents/Contents.jsx +5 -1
- package/src/components/manage/History/History.jsx +11 -1
- package/src/components/manage/Sharing/Sharing.jsx +5 -1
- package/src/components/manage/Widgets/ColorPickerWidget.jsx +6 -1
- package/src/components/theme/View/NewsItemView.jsx +10 -5
- package/theme/themes/pastanaga/extras/contents.less +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 17.0.0-alpha.12 (2023-06-14)
|
|
12
|
+
|
|
13
|
+
### Feature
|
|
14
|
+
|
|
15
|
+
- Allow to deselect color in ColorPickerWidget. @ksuess [#4838](https://github.com/plone/volto/issues/4838)
|
|
16
|
+
- Configurable Container component from registry for some key route views. @sneridagh [#4871](https://github.com/plone/volto/issues/4871)
|
|
17
|
+
|
|
18
|
+
### Bugfix
|
|
19
|
+
|
|
20
|
+
- Fix regression in horizontal scroll in contents view, add it back @sneridagh [#4872](https://github.com/plone/volto/issues/4872)
|
|
21
|
+
|
|
22
|
+
|
|
11
23
|
## 17.0.0-alpha.11 (2023-06-09)
|
|
12
24
|
|
|
13
25
|
### Bugfix
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ import { Link } from 'react-router-dom';
|
|
|
12
12
|
import {
|
|
13
13
|
Button,
|
|
14
14
|
Confirm,
|
|
15
|
-
Container,
|
|
15
|
+
Container as SemanticContainer,
|
|
16
16
|
Divider,
|
|
17
17
|
Dropdown,
|
|
18
18
|
Menu,
|
|
@@ -70,6 +70,7 @@ import {
|
|
|
70
70
|
|
|
71
71
|
import { Helmet, getBaseUrl } from '@plone/volto/helpers';
|
|
72
72
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
73
|
+
import config from '@plone/volto/registry';
|
|
73
74
|
|
|
74
75
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
75
76
|
import cutSVG from '@plone/volto/icons/cut.svg';
|
|
@@ -1177,6 +1178,9 @@ class Contents extends Component {
|
|
|
1177
1178
|
(this.props.orderRequest?.loading && !this.props.orderRequest?.error) ||
|
|
1178
1179
|
(this.props.searchRequest?.loading && !this.props.searchRequest?.error);
|
|
1179
1180
|
|
|
1181
|
+
const Container =
|
|
1182
|
+
config.getComponent({ name: 'Container' }).component || SemanticContainer;
|
|
1183
|
+
|
|
1180
1184
|
return this.props.token && this.props.objectActions?.length > 0 ? (
|
|
1181
1185
|
<>
|
|
1182
1186
|
{folderContentsAction ? (
|
|
@@ -9,7 +9,13 @@ import { Helmet } from '@plone/volto/helpers';
|
|
|
9
9
|
import { Link } from 'react-router-dom';
|
|
10
10
|
import { connect } from 'react-redux';
|
|
11
11
|
import { compose } from 'redux';
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
Container as SemanticContainer,
|
|
14
|
+
Dropdown,
|
|
15
|
+
Icon,
|
|
16
|
+
Segment,
|
|
17
|
+
Table,
|
|
18
|
+
} from 'semantic-ui-react';
|
|
13
19
|
import { concat, map, reverse, find } from 'lodash';
|
|
14
20
|
import { Portal } from 'react-portal';
|
|
15
21
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
@@ -24,6 +30,7 @@ import {
|
|
|
24
30
|
} from '@plone/volto/components';
|
|
25
31
|
import { getHistory, revertHistory, listActions } from '@plone/volto/actions';
|
|
26
32
|
import { getBaseUrl } from '@plone/volto/helpers';
|
|
33
|
+
import config from '@plone/volto/registry';
|
|
27
34
|
|
|
28
35
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
29
36
|
|
|
@@ -147,6 +154,9 @@ class History extends Component {
|
|
|
147
154
|
});
|
|
148
155
|
const entries = this.processHistoryEntries();
|
|
149
156
|
|
|
157
|
+
const Container =
|
|
158
|
+
config.getComponent({ name: 'Container' }).component || SemanticContainer;
|
|
159
|
+
|
|
150
160
|
return !historyAction ? (
|
|
151
161
|
<>
|
|
152
162
|
{this.props.token ? (
|
|
@@ -14,7 +14,7 @@ import { Portal } from 'react-portal';
|
|
|
14
14
|
import {
|
|
15
15
|
Button,
|
|
16
16
|
Checkbox,
|
|
17
|
-
Container,
|
|
17
|
+
Container as SemanticContainer,
|
|
18
18
|
Form,
|
|
19
19
|
Icon as IconOld,
|
|
20
20
|
Input,
|
|
@@ -28,6 +28,7 @@ import { updateSharing, getSharing } from '@plone/volto/actions';
|
|
|
28
28
|
import { getBaseUrl } from '@plone/volto/helpers';
|
|
29
29
|
import { Icon, Toolbar, Toast } from '@plone/volto/components';
|
|
30
30
|
import { toast } from 'react-toastify';
|
|
31
|
+
import config from '@plone/volto/registry';
|
|
31
32
|
|
|
32
33
|
import aheadSVG from '@plone/volto/icons/ahead.svg';
|
|
33
34
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
@@ -288,6 +289,9 @@ class SharingComponent extends Component {
|
|
|
288
289
|
* @returns {string} Markup for the component.
|
|
289
290
|
*/
|
|
290
291
|
render() {
|
|
292
|
+
const Container =
|
|
293
|
+
config.getComponent({ name: 'Container' }).component || SemanticContainer;
|
|
294
|
+
|
|
291
295
|
return (
|
|
292
296
|
<Container id="page-sharing">
|
|
293
297
|
<Helmet title={this.props.intl.formatMessage(messages.sharing)} />
|
|
@@ -51,7 +51,12 @@ const ColorPickerWidget = (props) => {
|
|
|
51
51
|
onClick={(e) => {
|
|
52
52
|
e.preventDefault();
|
|
53
53
|
e.stopPropagation();
|
|
54
|
-
onChange(
|
|
54
|
+
onChange(
|
|
55
|
+
id,
|
|
56
|
+
value === color.name
|
|
57
|
+
? props.missing_value
|
|
58
|
+
: color.name,
|
|
59
|
+
);
|
|
55
60
|
}}
|
|
56
61
|
active={value === color.name}
|
|
57
62
|
circular
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { Container, Image } from 'semantic-ui-react';
|
|
8
|
+
import { Container as SemanticContainer, Image } from 'semantic-ui-react';
|
|
9
9
|
import {
|
|
10
10
|
hasBlocksData,
|
|
11
11
|
flattenToAppURL,
|
|
12
12
|
flattenHTMLToAppURL,
|
|
13
13
|
} from '@plone/volto/helpers';
|
|
14
14
|
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
15
|
+
import config from '@plone/volto/registry';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* NewsItemView view component class.
|
|
@@ -19,11 +20,14 @@ import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
|
19
20
|
* @params {object} content Content object.
|
|
20
21
|
* @returns {string} Markup of the component.
|
|
21
22
|
*/
|
|
22
|
-
const NewsItemView = ({ content }) =>
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const NewsItemView = ({ content }) => {
|
|
24
|
+
const Container =
|
|
25
|
+
config.getComponent({ name: 'Container' }).component || SemanticContainer;
|
|
26
|
+
|
|
27
|
+
return hasBlocksData(content) ? (
|
|
28
|
+
<Container id="page-document" className="view-wrapper newsitem-view">
|
|
25
29
|
<RenderBlocks content={content} />
|
|
26
|
-
</
|
|
30
|
+
</Container>
|
|
27
31
|
) : (
|
|
28
32
|
<Container className="view-wrapper">
|
|
29
33
|
{content.title && (
|
|
@@ -57,6 +61,7 @@ const NewsItemView = ({ content }) =>
|
|
|
57
61
|
)}
|
|
58
62
|
</Container>
|
|
59
63
|
);
|
|
64
|
+
};
|
|
60
65
|
|
|
61
66
|
/**
|
|
62
67
|
* Property types.
|