@eeacms/volto-marine-policy 2.0.38 → 2.0.40

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,15 @@ 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
- ### [2.0.38](https://github.com/eea/volto-marine-policy/compare/2.0.37...2.0.38) - 8 January 2026
7
+ ### [2.0.40](https://github.com/eea/volto-marine-policy/compare/2.0.39...2.0.40) - 14 January 2026
8
8
 
9
- #### :bug: Bug Fixes
9
+ #### :nail_care: Enhancements
10
+
11
+ - change: update blueparks projects for demo sites [laszlocseh - [`b41ab25`](https://github.com/eea/volto-marine-policy/commit/b41ab2594004b722024eeca1ede201cbb2173e5c)]
10
12
 
11
- - fix: total count in demo sites map chart [laszlocseh - [`99a8412`](https://github.com/eea/volto-marine-policy/commit/99a84122dc472ffff2989eb801b2c919b426326d)]
13
+ ### [2.0.39](https://github.com/eea/volto-marine-policy/compare/2.0.38...2.0.39) - 12 January 2026
14
+
15
+ ### [2.0.38](https://github.com/eea/volto-marine-policy/compare/2.0.37...2.0.38) - 8 January 2026
12
16
 
13
17
  ### [2.0.37](https://github.com/eea/volto-marine-policy/compare/2.0.36...2.0.37) - 27 November 2025
14
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-marine-policy",
3
- "version": "2.0.38",
3
+ "version": "2.0.40",
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",
@@ -15,6 +15,7 @@ import InfoOverlay from './InfoOverlay';
15
15
  import FeatureInteraction from './FeatureInteraction';
16
16
 
17
17
  import {
18
+ BLUEPARKProjects,
18
19
  centerAndResetMapZoom,
19
20
  clearFilters,
20
21
  getFeatures,
@@ -255,7 +256,7 @@ const selectedClusterStyle = ({ selectedFeature, ol, mapVariation }) => {
255
256
  iconSize = 'tiny';
256
257
 
257
258
  if (
258
- ['BioProtect', 'BLUE CONNECT', 'BLUE4ALL', 'EFFECTIVE'].includes(
259
+ BLUEPARKProjects.includes(
259
260
  feature.values_.features[0].values_['project'],
260
261
  )
261
262
  ) {
@@ -53,7 +53,7 @@ function FeatureInteraction({ onFeatureSelect, ol }) {
53
53
 
54
54
  features.forEach((feature) => {
55
55
  const subfeatures = feature.values_.features;
56
- if (subfeatures.length === 1) {
56
+ if (subfeatures.length >= 1) {
57
57
  const selectedFeature = subfeatures[0].values_;
58
58
  // if (hideFilters) {
59
59
  // const url = window.location.origin + selectedFeature.path;
@@ -1,3 +1,11 @@
1
+ export const BLUEPARKProjects = [
2
+ 'OCEAN CITIZEN',
3
+ 'BLUE CONNECT',
4
+ 'BLUE4ALL',
5
+ 'EFFECTIVE',
6
+ 'SEAMPHONI',
7
+ ];
8
+
1
9
  export const objectivesCustomOrder = [
2
10
  'Objective 1: Protect and restore marine and freshwater ecosystems and biodiversity',
3
11
  'Objective 2: Prevent and eliminate pollution of our oceans, seas and waters',
@@ -206,12 +214,7 @@ export function filterCases(cases, activeFilters, indicatorOnly, mapVariation) {
206
214
  // BioProtect, BLUE CONNECT, BLUE4ALL, EFFECTIVE
207
215
  if (['blueParks'].includes(mapVariation)) {
208
216
  let project = _case.properties.project;
209
- if (
210
- ['BioProtect', 'BLUE CONNECT', 'BLUE4ALL', 'EFFECTIVE'].includes(
211
- project,
212
- )
213
- )
214
- flag_project = true;
217
+ if (BLUEPARKProjects.includes(project)) flag_project = true;
215
218
  } else if (!activeFilters.project_filter.length) {
216
219
  flag_project = true;
217
220
  } else {