@eeacms/volto-marine-policy 3.0.0 → 3.0.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
@@ -4,7 +4,17 @@ 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
- ### [3.0.0](https://github.com/eea/volto-marine-policy/compare/2.0.41...3.0.0) - 24 April 2026
7
+ ### [3.0.1](https://github.com/eea/volto-marine-policy/compare/3.0.0...3.0.1) - 28 April 2026
8
+
9
+ #### :house: Internal changes
10
+
11
+ - style: Automated code fix [eea-jenkins - [`114ccd4`](https://github.com/eea/volto-marine-policy/commit/114ccd4ceefcd2c76e595762c84611120d0a4048)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - add @eeacms/volto-block-style to deps [nileshgulia1 - [`8ac077b`](https://github.com/eea/volto-marine-policy/commit/8ac077bd64842e99557ff7c1a3da4089bb594eef)]
16
+ - fix hydration warnings and remove unnecesary deps [nileshgulia1 - [`4cab29e`](https://github.com/eea/volto-marine-policy/commit/4cab29e0d0b27a571459e5098ede4460d6e01caf)]
17
+ ## [3.0.0](https://github.com/eea/volto-marine-policy/compare/2.0.41...3.0.0) - 27 April 2026
8
18
 
9
19
  #### :rocket: Dependency updates
10
20
 
@@ -38,6 +48,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
38
48
  #### :house: Internal changes
39
49
 
40
50
  - style: Automated code fix [eea-jenkins - [`0421290`](https://github.com/eea/volto-marine-policy/commit/0421290d7fdd9fdd0b6d483b53c424a0747137b3)]
51
+ - chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`fb1d0f0`](https://github.com/eea/volto-marine-policy/commit/fb1d0f083474b3a14b0ec36a329c7efc7499dd3d)]
52
+ - chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`40d0b36`](https://github.com/eea/volto-marine-policy/commit/40d0b368836d32544b46ae7c7b070ffb71989b55)]
41
53
 
42
54
  #### :hammer_and_wrench: Others
43
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-marine-policy",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "@eeacms/volto-marine-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -18,35 +18,29 @@
18
18
  },
19
19
  "addons": [
20
20
  "@eeacms/volto-openlayers-map",
21
- "@eeacms/volto-tabs-block",
22
21
  "@eeacms/volto-embed",
23
22
  "@eeacms/volto-eea-design-system",
24
23
  "@eeacms/volto-eea-website-theme",
25
24
  "@eeacms/volto-globalsearch",
26
25
  "@eeacms/volto-metadata-block",
27
26
  "@eeacms/volto-workflow-progress",
28
- "@plone-collective/volto-authomatic",
29
- "@eeacms/volto-group-block"
27
+ "@eeacms/volto-block-style"
30
28
  ],
31
29
  "resolutions": {
32
30
  "react-countup/countup.js": "2.5.0",
33
31
  "d3-array": "^2.12.1",
34
32
  "@eeacms/countup": "^2.0.6",
35
- "@elastic/search-ui": "1.21.2",
36
- "@eeacms/volto-group-block": "^9.0.0"
33
+ "@elastic/search-ui": "1.21.2"
37
34
  },
38
35
  "dependencies": {
39
36
  "@eeacms/volto-eea-design-system": "*",
40
37
  "@eeacms/volto-eea-website-theme": "*",
41
38
  "@eeacms/volto-embed": "*",
42
39
  "@eeacms/volto-globalsearch": "^2.0.0",
43
- "@eeacms/volto-group-block": "^9.0.0",
44
40
  "@eeacms/volto-metadata-block": "*",
45
41
  "@eeacms/volto-openlayers-map": "2.0.0",
46
- "@eeacms/volto-searchlib": "^2.0.2",
47
- "@eeacms/volto-tabs-block": "*",
48
42
  "@eeacms/volto-workflow-progress": "*",
49
- "@plone-collective/volto-authomatic": "2.0.1",
43
+ "@eeacms/volto-block-style": "9.0.1",
50
44
  "axios": "0.30.0",
51
45
  "d3-array": "^2.12.1",
52
46
  "jquery": "3.6.0",
@@ -82,7 +82,7 @@ function DemoSitesMap(props) {
82
82
  );
83
83
 
84
84
  React.useEffect(() => {
85
- if (!map) return null;
85
+ if (!map) return;
86
86
 
87
87
  if (activeItems) {
88
88
  pointsSource.clear();
@@ -93,7 +93,7 @@ function DemoSitesMap(props) {
93
93
  }, [map, activeItems, pointsSource, hideFilters, ol]);
94
94
 
95
95
  React.useEffect(() => {
96
- if (!map) return null;
96
+ if (!map) return;
97
97
 
98
98
  const moveendListener = (e) => {
99
99
  // console.log('map.getView()', map.getView());
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useState, useEffect } from 'react';
2
2
  import { Portal } from 'react-portal';
3
3
  import { compose } from 'redux';
4
4
  import { connect } from 'react-redux';
@@ -22,6 +22,11 @@ const PrintPage = (props) => {
22
22
  const { pathname } = props;
23
23
  const intl = useIntl();
24
24
  const cmsView = isCmsUi(pathname);
25
+ const [isMounted, setIsMounted] = useState(false);
26
+
27
+ useEffect(() => {
28
+ setIsMounted(true);
29
+ }, []);
25
30
 
26
31
  const printPage = () => {
27
32
  document.getElementById('main').classList.add('print');
@@ -34,8 +39,8 @@ const PrintPage = (props) => {
34
39
 
35
40
  return (
36
41
  <>
37
- {!cmsView && (
38
- <Portal node={__CLIENT__ && document.querySelector('.content-area')}>
42
+ {!cmsView && isMounted && (
43
+ <Portal node={document.querySelector('.content-area')}>
39
44
  <BodyClass className="has-print-button" />
40
45
  <div className="ui container">
41
46
  <div className="print-button">