@plone/volto 16.25.0 → 16.26.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 +10 -7
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +19 -0
- package/package.json +4 -1
- package/packages/volto-slate/package.json +1 -1
- package/src/components/manage/Blocks/Search/components/SelectStyling.jsx +1 -2
- package/src/components/manage/Edit/Edit.jsx +11 -2
- package/src/components/manage/Widgets/DatetimeWidget.jsx +2 -0
- package/src/components/theme/Footer/Footer.jsx +1 -0
- package/src/components/theme/Navigation/Navigation.jsx +1 -1
- package/src/components/theme/SkipLinks/SkipLinks.jsx +3 -1
- package/src/components/theme/SkipLinks/SkipLinks.test.jsx +6 -3
- package/src/helpers/Html/Html.jsx +1 -1
package/.changelog.draft
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
## 16.
|
|
1
|
+
## 16.26.0 (2023-10-27)
|
|
2
2
|
|
|
3
3
|
### Feature
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Updated aria-label for landmarks @ichim-david
|
|
6
|
+
Added landmark on sidebar @ichim-david
|
|
7
|
+
Added Pluggable section for skiplinks @ichim-david [#5290](https://github.com/plone/volto/issues/5290)
|
|
6
8
|
|
|
7
9
|
### Bugfix
|
|
8
10
|
|
|
9
|
-
-
|
|
10
|
-
- Fix
|
|
11
|
-
-
|
|
12
|
-
|
|
11
|
+
- (FIX): put padding so the text is not clipped #5305 @dobri1408 [#5305](https://github.com/plone/volto/issues/5305)
|
|
12
|
+
- Fix compare translations view @sneridagh [#5327](https://github.com/plone/volto/issues/5327)
|
|
13
|
+
- Fix DatetimeWidget on FF, the button default if no type is set is sending the form. @sneridagh
|
|
14
|
+
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formmethod [#5343](https://github.com/plone/volto/issues/5343)
|
|
13
15
|
|
|
14
16
|
### Internal
|
|
15
17
|
|
|
16
|
-
-
|
|
18
|
+
- Add a new set of acceptance tests with the multilingual fixture using seamless mode. @sneridagh [#5332](https://github.com/plone/volto/issues/5332)
|
|
19
|
+
|
|
17
20
|
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,25 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 16.26.0 (2023-10-27)
|
|
12
|
+
|
|
13
|
+
### Feature
|
|
14
|
+
|
|
15
|
+
- Updated aria-label for landmarks @ichim-david
|
|
16
|
+
Added landmark on sidebar @ichim-david
|
|
17
|
+
Added Pluggable section for skiplinks @ichim-david [#5290](https://github.com/plone/volto/issues/5290)
|
|
18
|
+
|
|
19
|
+
### Bugfix
|
|
20
|
+
|
|
21
|
+
- (FIX): put padding so the text is not clipped #5305 @dobri1408 [#5305](https://github.com/plone/volto/issues/5305)
|
|
22
|
+
- Fix compare translations view @sneridagh [#5327](https://github.com/plone/volto/issues/5327)
|
|
23
|
+
- Fix DatetimeWidget on FF, the button default if no type is set is sending the form. @sneridagh
|
|
24
|
+
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formmethod [#5343](https://github.com/plone/volto/issues/5343)
|
|
25
|
+
|
|
26
|
+
### Internal
|
|
27
|
+
|
|
28
|
+
- Add a new set of acceptance tests with the multilingual fixture using seamless mode. @sneridagh [#5332](https://github.com/plone/volto/issues/5332)
|
|
29
|
+
|
|
11
30
|
## 16.25.0 (2023-10-16)
|
|
12
31
|
|
|
13
32
|
### Feature
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "16.
|
|
12
|
+
"version": "16.26.0",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -197,6 +197,9 @@
|
|
|
197
197
|
"release": true,
|
|
198
198
|
"releaseName": "${version}",
|
|
199
199
|
"releaseNotes": "cat .changelog.draft"
|
|
200
|
+
},
|
|
201
|
+
"npm": {
|
|
202
|
+
"tag": "lts"
|
|
200
203
|
}
|
|
201
204
|
},
|
|
202
205
|
"lint-staged": {
|
|
@@ -35,7 +35,11 @@ import {
|
|
|
35
35
|
getSchema,
|
|
36
36
|
listActions,
|
|
37
37
|
} from '@plone/volto/actions';
|
|
38
|
-
import {
|
|
38
|
+
import {
|
|
39
|
+
flattenToAppURL,
|
|
40
|
+
getBaseUrl,
|
|
41
|
+
hasBlocksData,
|
|
42
|
+
} from '@plone/volto/helpers';
|
|
39
43
|
import { preloadLazyLibs } from '@plone/volto/helpers/Loadable';
|
|
40
44
|
|
|
41
45
|
import saveSVG from '@plone/volto/icons/save.svg';
|
|
@@ -260,7 +264,12 @@ class Edit extends Component {
|
|
|
260
264
|
|
|
261
265
|
setComparingLanguage(lang, content_id) {
|
|
262
266
|
this.setState({ comparingLanguage: lang });
|
|
263
|
-
this.props.getContent(
|
|
267
|
+
this.props.getContent(
|
|
268
|
+
flattenToAppURL(content_id),
|
|
269
|
+
null,
|
|
270
|
+
'compare_to',
|
|
271
|
+
null,
|
|
272
|
+
);
|
|
264
273
|
}
|
|
265
274
|
|
|
266
275
|
form = React.createRef();
|
|
@@ -246,6 +246,8 @@ export class DatetimeWidgetComponent extends Component {
|
|
|
246
246
|
)}
|
|
247
247
|
{resettable && (
|
|
248
248
|
<button
|
|
249
|
+
// FF needs that the type is "button" in order to not POST the form
|
|
250
|
+
type="button"
|
|
249
251
|
disabled={this.props.isDisabled || !datetime}
|
|
250
252
|
onClick={() => this.onResetDates()}
|
|
251
253
|
className="item ui noborder button"
|
|
@@ -128,7 +128,7 @@ class Navigation extends Component {
|
|
|
128
128
|
*/
|
|
129
129
|
render() {
|
|
130
130
|
return (
|
|
131
|
-
<nav className="navigation" id="navigation" aria-label="
|
|
131
|
+
<nav className="navigation" id="navigation" aria-label="Site">
|
|
132
132
|
<div className="hamburger-wrapper mobile tablet only">
|
|
133
133
|
<button
|
|
134
134
|
className={cx('hamburger hamburger--spin', {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl, defineMessages } from 'react-intl';
|
|
3
|
+
import { Pluggable } from '@plone/volto/components/manage/Pluggable';
|
|
3
4
|
|
|
4
5
|
const messages = defineMessages({
|
|
5
6
|
mainView: {
|
|
@@ -23,7 +24,7 @@ const SkipLinks = () => {
|
|
|
23
24
|
<div
|
|
24
25
|
className="skiplinks-wrapper"
|
|
25
26
|
role="complementary"
|
|
26
|
-
aria-label="
|
|
27
|
+
aria-label="Skiplinks"
|
|
27
28
|
>
|
|
28
29
|
<a className="skiplink" href="#view">
|
|
29
30
|
{intl.formatMessage(messages.mainView)}
|
|
@@ -34,6 +35,7 @@ const SkipLinks = () => {
|
|
|
34
35
|
<a className="skiplink" href="#footer">
|
|
35
36
|
{intl.formatMessage(messages.footer)}
|
|
36
37
|
</a>
|
|
38
|
+
<Pluggable name="main.skiplinks" />
|
|
37
39
|
</div>
|
|
38
40
|
);
|
|
39
41
|
};
|
|
@@ -3,6 +3,7 @@ import renderer from 'react-test-renderer';
|
|
|
3
3
|
import configureStore from 'redux-mock-store';
|
|
4
4
|
import { Provider } from 'react-intl-redux';
|
|
5
5
|
import { MemoryRouter } from 'react-router-dom';
|
|
6
|
+
import { PluggablesProvider } from '@plone/volto/components/manage/Pluggable';
|
|
6
7
|
|
|
7
8
|
import SkipLinks from './SkipLinks';
|
|
8
9
|
|
|
@@ -18,9 +19,11 @@ describe('SkipLinks', () => {
|
|
|
18
19
|
});
|
|
19
20
|
const component = renderer.create(
|
|
20
21
|
<Provider store={store}>
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
|
|
22
|
+
<PluggablesProvider>
|
|
23
|
+
<MemoryRouter>
|
|
24
|
+
<SkipLinks />
|
|
25
|
+
</MemoryRouter>
|
|
26
|
+
</PluggablesProvider>
|
|
24
27
|
</Provider>,
|
|
25
28
|
);
|
|
26
29
|
const json = component.toJSON();
|
|
@@ -183,7 +183,7 @@ class Html extends Component {
|
|
|
183
183
|
<body className={bodyClass}>
|
|
184
184
|
<div role="navigation" aria-label="Toolbar" id="toolbar" />
|
|
185
185
|
<div id="main" dangerouslySetInnerHTML={{ __html: markup }} />
|
|
186
|
-
<div id="sidebar" />
|
|
186
|
+
<div role="complementary" aria-label="Sidebar" id="sidebar" />
|
|
187
187
|
<script
|
|
188
188
|
dangerouslySetInnerHTML={{
|
|
189
189
|
__html: `window.__data=${serialize(
|