@plone/volto 19.3.0 → 19.3.1
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
CHANGED
|
@@ -17,6 +17,18 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 19.3.1 (2026-08-26)
|
|
21
|
+
|
|
22
|
+
### Bugfix
|
|
23
|
+
|
|
24
|
+
- Fix path used for rendering blocks in the `NewsItemView`. @TimoBroeskamp [#8397](https://github.com/plone/volto/issues/8397)
|
|
25
|
+
|
|
26
|
+
### Internal
|
|
27
|
+
|
|
28
|
+
- Added support for the `.chore` extension for a change log entry. This satisfies the requirement of its presence, but doesn't display them in the change log. @stevepiercy [#8401](https://github.com/plone/volto/issues/8401)
|
|
29
|
+
- Remove deprecated and redundant Read the Docs pull request preview workflow. @stevepiercy
|
|
30
|
+
- Remove redundant and deprecated pull request preview build workflow. @stevepiercy
|
|
31
|
+
|
|
20
32
|
## 19.3.0 (2026-07-22)
|
|
21
33
|
|
|
22
34
|
### Feature
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "19.3.
|
|
12
|
+
"version": "19.3.1",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -175,10 +175,10 @@
|
|
|
175
175
|
"url": "^0.11.3",
|
|
176
176
|
"use-deep-compare-effect": "1.8.1",
|
|
177
177
|
"uuid": "^14.0.0",
|
|
178
|
-
"@plone/
|
|
178
|
+
"@plone/components": "4.2.1",
|
|
179
179
|
"@plone/volto-slate": "19.0.4",
|
|
180
180
|
"@plone/scripts": "4.0.1",
|
|
181
|
-
"@plone/
|
|
181
|
+
"@plone/registry": "3.0.1"
|
|
182
182
|
},
|
|
183
183
|
"devDependencies": {
|
|
184
184
|
"@babel/core": "^7.28.5",
|
|
@@ -288,8 +288,8 @@
|
|
|
288
288
|
"webpack-node-externals": "3.0.0",
|
|
289
289
|
"@plone/babel-preset-razzle": "^1.0.1",
|
|
290
290
|
"@plone/razzle-dev-utils": "1.0.0",
|
|
291
|
-
"@plone/razzle": "1.0.0",
|
|
292
291
|
"@plone/volto-coresandbox": "1.0.0",
|
|
292
|
+
"@plone/razzle": "1.0.1",
|
|
293
293
|
"@plone/types": "2.0.1"
|
|
294
294
|
},
|
|
295
295
|
"scripts": {
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { Container as SemanticContainer } from 'semantic-ui-react';
|
|
9
9
|
import { hasBlocksData } from '@plone/volto/helpers/Blocks/Blocks';
|
|
10
|
-
import { flattenHTMLToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
10
|
+
import { flattenHTMLToAppURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
11
11
|
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
12
12
|
import config from '@plone/volto/registry';
|
|
13
13
|
|
|
@@ -17,14 +17,16 @@ import config from '@plone/volto/registry';
|
|
|
17
17
|
* @params {object} content Content object.
|
|
18
18
|
* @returns {string} Markup of the component.
|
|
19
19
|
*/
|
|
20
|
-
const NewsItemView = (
|
|
20
|
+
const NewsItemView = (props) => {
|
|
21
|
+
const { content, location } = props;
|
|
22
|
+
const path = getBaseUrl(location?.pathname || '');
|
|
21
23
|
const Image = config.getComponent({ name: 'Image' }).component;
|
|
22
24
|
const Container =
|
|
23
25
|
config.getComponent({ name: 'Container' }).component || SemanticContainer;
|
|
24
26
|
|
|
25
27
|
return hasBlocksData(content) ? (
|
|
26
28
|
<Container id="page-document" className="view-wrapper newsitem-view">
|
|
27
|
-
<RenderBlocks
|
|
29
|
+
<RenderBlocks {...props} path={path} />
|
|
28
30
|
</Container>
|
|
29
31
|
) : (
|
|
30
32
|
<Container className="view-wrapper">
|
|
@@ -5,9 +5,7 @@ export default NewsItemView;
|
|
|
5
5
|
* @params {object} content Content object.
|
|
6
6
|
* @returns {string} Markup of the component.
|
|
7
7
|
*/
|
|
8
|
-
declare function NewsItemView(
|
|
9
|
-
content: any;
|
|
10
|
-
}): string;
|
|
8
|
+
declare function NewsItemView(props: any): string;
|
|
11
9
|
declare namespace NewsItemView {
|
|
12
10
|
namespace propTypes {
|
|
13
11
|
let content: any;
|