@eeacms/volto-cca-policy 0.2.95 → 0.2.96

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
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.2.96](https://github.com/eea/volto-cca-policy/compare/0.2.95...0.2.96) - 24 January 2025
8
+
9
+ #### :nail_care: Enhancements
10
+
11
+ - change: remove copyright override from News item - refs #283317 [kreafox - [`729e63e`](https://github.com/eea/volto-cca-policy/commit/729e63e90c543faf8676197df358d06895ab38a2)]
12
+
13
+ #### :house: Internal changes
14
+
15
+ - style: Automated code fix [eea-jenkins - [`2de41fb`](https://github.com/eea/volto-cca-policy/commit/2de41fb12852c89baa4295f7895ad082a55f2e36)]
16
+
17
+ #### :hammer_and_wrench: Others
18
+
19
+ - Fix regex [Tiberiu Ichim - [`b731ac7`](https://github.com/eea/volto-cca-policy/commit/b731ac790a37bc512a043ee3f1d7f169c4eb5034)]
7
20
  ### [0.2.95](https://github.com/eea/volto-cca-policy/compare/0.2.94...0.2.95) - 21 January 2025
8
21
 
9
22
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.95",
3
+ "version": "0.2.96",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -26,13 +26,6 @@ const DescriptionText = ({ content }) => {
26
26
  function NewsItemView(props) {
27
27
  const { content } = props;
28
28
 
29
- const titleBlock = Object.values(content.blocks).find(
30
- (block) => block['@type'] === 'title',
31
- );
32
- if (titleBlock && !titleBlock.copyright && content.image_caption) {
33
- titleBlock.copyright = content.image_caption;
34
- }
35
-
36
29
  // These blocks are used in the Edit View for dexterity layout.
37
30
  // We don't want to display them in the View mode.
38
31
  const {
package/src/index.js CHANGED
@@ -456,7 +456,7 @@ const applyConfig = (config) => {
456
456
  },
457
457
  {
458
458
  match: {
459
- path: /(.*)\/add/,
459
+ path: /(.*)\/add$/,
460
460
  },
461
461
  component: RedirectToLogin,
462
462
  },