@eeacms/volto-cca-policy 0.1.56 → 0.1.58

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,18 @@ 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.1.58](https://github.com/eea/volto-cca-policy/compare/0.1.57...0.1.58) - 4 January 2024
8
+
9
+ #### :house: Internal changes
10
+
11
+ - style: Automated code fix [eea-jenkins - [`b095dfe`](https://github.com/eea/volto-cca-policy/commit/b095dfe43952d40e4d1f1103ba134bf1319e4568)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - Move event.preventDefault to proper location [Tiberiu Ichim - [`69731f2`](https://github.com/eea/volto-cca-policy/commit/69731f2e80179359884d961c5bc2af3eefe1fead)]
16
+ - Don't open external links in new tabs [Tiberiu Ichim - [`a29895f`](https://github.com/eea/volto-cca-policy/commit/a29895f6dd238abc5c82fccec256b871067cf2ba)]
17
+ ### [0.1.57](https://github.com/eea/volto-cca-policy/compare/0.1.56...0.1.57) - 4 January 2024
18
+
7
19
  ### [0.1.56](https://github.com/eea/volto-cca-policy/compare/0.1.55...0.1.56) - 3 January 2024
8
20
 
9
21
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
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",
@@ -24,7 +24,7 @@ export default function RASTMap(props) {
24
24
  const items = props.items;
25
25
 
26
26
  return (
27
- <div className="block rast-block">
27
+ <div className="rast-map-block">
28
28
  <svg
29
29
  width="290"
30
30
  height="280"
@@ -3,6 +3,19 @@
3
3
 
4
4
  @import (multiple, reference, optional) '../../theme.config';
5
5
 
6
+ a rect.circle:hover {
7
+ fill: #183 !important;
8
+ }
9
+
10
+ a rect.circle {
11
+ pointer-events: all !important;
12
+ }
13
+
14
+ svg,
15
+ svg * {
16
+ pointer-events: none;
17
+ }
18
+
6
19
  .link-active {
7
20
  .circle,
8
21
  .circle:hover {
@@ -277,7 +277,7 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
277
277
  href={item.url || '/'}
278
278
  title={item.title}
279
279
  onClick={(e) => {
280
- e.preventDefault();
280
+ // debugger;
281
281
  onClick(e, item);
282
282
  }}
283
283
  >
@@ -230,9 +230,11 @@ const Main = ({
230
230
  setMenuIsActive(true);
231
231
  } else {
232
232
  if (isInternalURL(item.url)) {
233
+ e.preventDefault();
233
234
  history.push(item.url);
234
235
  } else if (isClient) {
235
- window.location.replace(item.url);
236
+ // window.location.href = item.url;
237
+ // window.location.replace(item.url);
236
238
  }
237
239
  }
238
240
  };