@plone/volto 16.20.7 → 16.20.8
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 +6 -11
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/packages/volto-slate/package.json +1 -1
- package/src/components/theme/NotFound/NotFound.jsx +55 -41
- package/src/components/theme/View/RenderBlocks.jsx +7 -1
- package/src/helpers/Api/Api.js +1 -1
package/.changelog.draft
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
## 16.20.
|
|
1
|
+
## 16.20.8 (2023-06-01)
|
|
2
2
|
|
|
3
3
|
### Bugfix
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
- Fix
|
|
7
|
-
- Fix
|
|
8
|
-
- Fix bug showing logs at the browsers when richtext widget is use @claytonc [#4780](https://github.com/plone/volto/issues/4780)
|
|
9
|
-
- Add guard in case of malformed blocks are present (at least id and title should be present) @sneridagh [#4802](https://github.com/plone/volto/issues/4802)
|
|
10
|
-
- Fix html tag lang attribute in SSR @sneridagh [#4803](https://github.com/plone/volto/issues/4803)
|
|
11
|
-
- Add newest supported languages to `Language` constants list @sneridagh [#4811](https://github.com/plone/volto/issues/4811)
|
|
5
|
+
- Fix special characters in request urls @pnicolli @mamico @luca-bellenghi @cekk [#4826](https://github.com/plone/volto/issues/4826)
|
|
6
|
+
- Fix block is undefined in StyleWrapper helper when building classnames @sneridagh [#4827](https://github.com/plone/volto/issues/4827)
|
|
7
|
+
- Fix navigation sections in 404 pages @sneridagh [#4836](https://github.com/plone/volto/issues/4836)
|
|
12
8
|
|
|
13
|
-
###
|
|
9
|
+
### Documentation
|
|
14
10
|
|
|
15
|
-
-
|
|
16
|
-
- Fix unannounced breaking change in cypress-io/github-action @sneridagh [#4795](https://github.com/plone/volto/issues/4795)
|
|
11
|
+
- Fix glossary warning due to lack of empty line before a term. @stevepiercy [#4820](https://github.com/plone/volto/issues/4820)
|
|
17
12
|
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,19 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 16.20.8 (2023-06-01)
|
|
12
|
+
|
|
13
|
+
### Bugfix
|
|
14
|
+
|
|
15
|
+
- Fix special characters in request urls @pnicolli @mamico @luca-bellenghi @cekk [#4826](https://github.com/plone/volto/issues/4826)
|
|
16
|
+
- Fix block is undefined in StyleWrapper helper when building classnames @sneridagh [#4827](https://github.com/plone/volto/issues/4827)
|
|
17
|
+
- Fix navigation sections in 404 pages @sneridagh [#4836](https://github.com/plone/volto/issues/4836)
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
- Fix glossary warning due to lack of empty line before a term. @stevepiercy [#4820](https://github.com/plone/volto/issues/4820)
|
|
22
|
+
|
|
23
|
+
|
|
11
24
|
## 16.20.7 (2023-05-24)
|
|
12
25
|
|
|
13
26
|
### Bugfix
|
package/package.json
CHANGED
|
@@ -1,53 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @module components/theme/NotFound/NotFound
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React from 'react';
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { BodyClass, toBackendLang } from '@plone/volto/helpers';
|
|
7
3
|
import { FormattedMessage } from 'react-intl';
|
|
8
4
|
import { Link } from 'react-router-dom';
|
|
9
5
|
import { Container } from 'semantic-ui-react';
|
|
10
6
|
import { withServerErrorCode } from '@plone/volto/helpers/Utils/Utils';
|
|
7
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
8
|
+
import { getNavigation } from '@plone/volto/actions';
|
|
9
|
+
import config from '@plone/volto/registry';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* Not found function.
|
|
14
13
|
* @function NotFound
|
|
15
14
|
* @returns {string} Markup of the not found page.
|
|
16
15
|
*/
|
|
17
|
-
const NotFound = () =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
16
|
+
const NotFound = () => {
|
|
17
|
+
const dispatch = useDispatch();
|
|
18
|
+
const lang = useSelector((state) => state.intl.locale);
|
|
19
|
+
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
dispatch(
|
|
22
|
+
getNavigation(
|
|
23
|
+
config.settings.isMultilingual ? `/${toBackendLang(lang)}` : '/',
|
|
24
|
+
config.settings.navDepth,
|
|
25
|
+
),
|
|
26
|
+
);
|
|
27
|
+
}, [dispatch, lang]);
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<Container className="view-wrapper">
|
|
31
|
+
<BodyClass className="page-not-found" />
|
|
32
|
+
<h1>
|
|
33
|
+
<FormattedMessage
|
|
34
|
+
id="This page does not seem to exist…"
|
|
35
|
+
defaultMessage="This page does not seem to exist…"
|
|
36
|
+
/>
|
|
37
|
+
</h1>
|
|
38
|
+
<p className="description">
|
|
39
|
+
<FormattedMessage
|
|
40
|
+
id="We apologize for the inconvenience, but the page you were trying to access is not at this address. You can use the links below to help you find what you are looking for."
|
|
41
|
+
defaultMessage="We apologize for the inconvenience, but the page you were trying to access is not at this address. You can use the links below to help you find what you are looking for."
|
|
42
|
+
/>
|
|
43
|
+
</p>
|
|
44
|
+
<p>
|
|
45
|
+
<FormattedMessage
|
|
46
|
+
id="If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}."
|
|
47
|
+
defaultMessage="If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}."
|
|
48
|
+
values={{
|
|
49
|
+
site_admin: (
|
|
50
|
+
<Link to="/contact-form">
|
|
51
|
+
<FormattedMessage
|
|
52
|
+
id="Site Administration"
|
|
53
|
+
defaultMessage="Site Administration"
|
|
54
|
+
/>
|
|
55
|
+
</Link>
|
|
56
|
+
),
|
|
57
|
+
}}
|
|
58
|
+
/>
|
|
59
|
+
</p>
|
|
60
|
+
<p>
|
|
61
|
+
<FormattedMessage id="Thank you." defaultMessage="Thank you." />
|
|
62
|
+
</p>
|
|
63
|
+
</Container>
|
|
64
|
+
);
|
|
65
|
+
};
|
|
52
66
|
|
|
53
67
|
export default withServerErrorCode(404)(NotFound);
|
|
@@ -44,7 +44,13 @@ const RenderBlocks = (props) => {
|
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
return Block ? (
|
|
47
|
-
<StyleWrapper
|
|
47
|
+
<StyleWrapper
|
|
48
|
+
key={block}
|
|
49
|
+
{...props}
|
|
50
|
+
id={block}
|
|
51
|
+
block={block}
|
|
52
|
+
data={blockData}
|
|
53
|
+
>
|
|
48
54
|
<Block
|
|
49
55
|
id={block}
|
|
50
56
|
metadata={metadata}
|
package/src/helpers/Api/Api.js
CHANGED