@eeacms/volto-cca-policy 0.2.91 → 0.2.93

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,27 @@ 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.93](https://github.com/eea/volto-cca-policy/compare/0.2.92...0.2.93) - 9 January 2025
8
8
 
9
9
  #### :hammer_and_wrench: Others
10
10
 
11
- - Add include_archived facet [Tiberiu Ichim - [`376681d`](https://github.com/eea/volto-cca-policy/commit/376681d7f7d7bba1925cf5454504d2139853df66)]
11
+ - Refs #282332 - remove old include_archive_content [Tripon Eugen - [`5fd76f0`](https://github.com/eea/volto-cca-policy/commit/5fd76f0eee21cad3ea43d007d2006b1297631c55)]
12
+ - Refs #282332 - remove old include_archive_content [Tripon Eugen - [`29703b0`](https://github.com/eea/volto-cca-policy/commit/29703b00247cbd2b0afb9b5d2e2e0cef9a381a18)]
13
+ ### [0.2.92](https://github.com/eea/volto-cca-policy/compare/0.2.91...0.2.92) - 9 January 2025
14
+
15
+ #### :rocket: New Features
16
+
17
+ - feat(views): show weblink on news item view [kreafox - [`f7eca29`](https://github.com/eea/volto-cca-policy/commit/f7eca29965531fbc6743cfb4d9b2c58b87bf1560)]
18
+
19
+ #### :house: Internal changes
20
+
21
+ - style: fix weblink styling [kreafox - [`a481232`](https://github.com/eea/volto-cca-policy/commit/a481232d7be1e071844705227b887e379c0fd24c)]
22
+
23
+ #### :hammer_and_wrench: Others
24
+
25
+ - Retry tests [kreafox - [`674992e`](https://github.com/eea/volto-cca-policy/commit/674992efc22196c7890370d3e64634f32aa45ead)]
26
+ ### [0.2.91](https://github.com/eea/volto-cca-policy/compare/0.2.90...0.2.91) - 9 January 2025
27
+
12
28
  ### [0.2.90](https://github.com/eea/volto-cca-policy/compare/0.2.89...0.2.90) - 8 January 2025
13
29
 
14
30
  #### :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.93",
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
  };
@@ -49,7 +49,9 @@ const facets = [
49
49
  }),
50
50
  language,
51
51
  include_archived,
52
- ...globalSearchBaseConfig.facets.filter((f) => f.field !== 'language'),
52
+ ...globalSearchBaseConfig.facets.filter(
53
+ (f) => !['language', 'IncludeArchived'].includes(f.field),
54
+ ),
53
55
  ];
54
56
 
55
57
  export default facets;
@@ -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