@eeacms/volto-cca-policy 0.2.91 → 0.2.92

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,11 +4,21 @@ 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.91](https://github.com/eea/volto-cca-policy/compare/0.2.90...0.2.91) - 8 January 2025
7
+ ### [0.2.92](https://github.com/eea/volto-cca-policy/compare/0.2.91...0.2.92) - 9 January 2025
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat(views): show weblink on news item view [kreafox - [`f7eca29`](https://github.com/eea/volto-cca-policy/commit/f7eca29965531fbc6743cfb4d9b2c58b87bf1560)]
12
+
13
+ #### :house: Internal changes
14
+
15
+ - style: fix weblink styling [kreafox - [`a481232`](https://github.com/eea/volto-cca-policy/commit/a481232d7be1e071844705227b887e379c0fd24c)]
8
16
 
9
17
  #### :hammer_and_wrench: Others
10
18
 
11
- - Add include_archived facet [Tiberiu Ichim - [`376681d`](https://github.com/eea/volto-cca-policy/commit/376681d7f7d7bba1925cf5454504d2139853df66)]
19
+ - Retry tests [kreafox - [`674992e`](https://github.com/eea/volto-cca-policy/commit/674992efc22196c7890370d3e64634f32aa45ead)]
20
+ ### [0.2.91](https://github.com/eea/volto-cca-policy/compare/0.2.90...0.2.91) - 9 January 2025
21
+
12
22
  ### [0.2.90](https://github.com/eea/volto-cca-policy/compare/0.2.89...0.2.90) - 8 January 2025
13
23
 
14
24
  #### :rocket: New Features
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-cca-policy-develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-cca-policy-develop)
15
15
  [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-cca-policy-develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-cca-policy-develop)
16
16
 
17
- Climate-ADAPT Frontend Policy
17
+ Climate-ADAPT Frontend Policy
18
18
 
19
19
  [Volto](https://github.com/plone/volto) add-on
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.91",
3
+ "version": "0.2.92",
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",
@@ -4,12 +4,21 @@ import { filterBlocks } from '@eeacms/volto-cca-policy/utils';
4
4
  import { PortalMessage } from '@eeacms/volto-cca-policy/components';
5
5
  import { HTMLField, SubjectTags } from '@eeacms/volto-cca-policy/helpers';
6
6
  import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
7
+ import { UniversalLink } from '@plone/volto/components';
7
8
 
8
9
  const DescriptionText = ({ content }) => {
9
10
  return (
10
11
  <>
11
12
  <p className="documentDescription">{content.description}</p>
12
13
  <HTMLField value={content.text} className="content-text" />
14
+ {content.remoteUrl && (
15
+ <div className="news-link">
16
+ <span>Read more on </span>
17
+ <UniversalLink href={content.remoteUrl}>
18
+ {content.remoteUrl}
19
+ </UniversalLink>
20
+ </div>
21
+ )}
13
22
  </>
14
23
  );
15
24
  };
@@ -93,6 +93,10 @@ hr {
93
93
  }
94
94
  }
95
95
 
96
+ .news-link {
97
+ margin: 0em 0em 1em 0em;
98
+ }
99
+
96
100
  .db-item-view {
97
101
  position: relative;
98
102