@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 CHANGED
@@ -1,17 +1,20 @@
1
- ## 16.25.0 (2023-10-16)
1
+ ## 16.26.0 (2023-10-27)
2
2
 
3
3
  ### Feature
4
4
 
5
- - Add external className to slate Link view. @iFlameing [#5109](https://github.com/plone/volto/issues/5109)
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
- - Fix empty slate text block in table of contents. @kreafox [#5156](https://github.com/plone/volto/issues/5156)
10
- - Fix standalone navigation action call if expander is set @sneridagh [#5197](https://github.com/plone/volto/issues/5197)
11
- - Added support for blocksConfig configuration in the listing block @sneridagh [#5310](https://github.com/plone/volto/issues/5310)
12
- - Fix adding multiple path criteria in search and listing blocks. @davisagli [#5317](https://github.com/plone/volto/issues/5317)
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
- - Fix Cypress ECONNREFUSED error in CI due to latest Chrome headless option handling for Cypress < 12.14.0 @sneridagh [#5233](https://github.com/plone/volto/issues/5233)
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
 
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.25.0",
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": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone/volto-slate",
3
- "version": "16.25.0",
3
+ "version": "16.26.0",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -31,8 +31,7 @@ export const customSelectStyles = {
31
31
  }),
32
32
  valueContainer: (styles) => ({
33
33
  ...styles,
34
- padding: '0px',
35
- paddingLeft: 0,
34
+ padding: '8px',
36
35
  }),
37
36
  dropdownIndicator: (styles) => ({
38
37
  paddingRight: 0,
@@ -35,7 +35,11 @@ import {
35
35
  getSchema,
36
36
  listActions,
37
37
  } from '@plone/volto/actions';
38
- import { getBaseUrl, hasBlocksData } from '@plone/volto/helpers';
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(content_id, null, 'compare_to', null);
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"
@@ -41,6 +41,7 @@ const Footer = ({ intl }) => {
41
41
  color="grey"
42
42
  textAlign="center"
43
43
  id="footer"
44
+ aria-label="Footer"
44
45
  >
45
46
  <Container>
46
47
  <Segment basic inverted color="grey" className="discreet">
@@ -128,7 +128,7 @@ class Navigation extends Component {
128
128
  */
129
129
  render() {
130
130
  return (
131
- <nav className="navigation" id="navigation" aria-label="navigation">
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="skiplinks"
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
- <MemoryRouter>
22
- <SkipLinks />
23
- </MemoryRouter>
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(