@eeacms/volto-bise-policy 1.3.4 → 1.3.5

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
- ### [1.3.4](https://github.com/eea/volto-bise-policy/compare/1.3.3...1.3.4) - 9 July 2026
7
+ ### [1.3.5](https://github.com/eea/volto-bise-policy/compare/1.3.4...1.3.5) - 5 August 2026
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat(widgets): add fallback url for EUNIS code [laszlocseh - [`2ad4400`](https://github.com/eea/volto-bise-policy/commit/2ad4400ac0dbb17ff7e207125d8b40c5b4a268cf)]
12
+
13
+ #### :bug: Bug Fixes
14
+
15
+ - fix(css): fix Marine EUNIS Habitat content type css [laszlocseh - [`e818c10`](https://github.com/eea/volto-bise-policy/commit/e818c10d5806f42b181f1ab3c51a565de5bb36e9)]
16
+
17
+ ### [1.3.4](https://github.com/eea/volto-bise-policy/compare/1.3.3...1.3.4) - 10 July 2026
8
18
 
9
19
  #### :hammer_and_wrench: Others
10
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-bise-policy",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "@eeacms/volto-bise-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -14,6 +14,7 @@ import deleteSVG from '@plone/volto/icons/delete.svg';
14
14
  import addSVG from '@plone/volto/icons/add.svg';
15
15
  import dragSVG from '@plone/volto/icons/drag.svg';
16
16
  import { v4 as uuid } from 'uuid';
17
+ import { useSelector } from 'react-redux';
17
18
 
18
19
  import { EuropeanRedListVocab, countryCodesVocab } from './vocabularies';
19
20
  import './styles.less';
@@ -254,16 +255,17 @@ export const EUNISMSFDView = ({ value }) => {
254
255
  );
255
256
  };
256
257
 
257
- export const EUNISCodeView = ({ value }) => {
258
+ export const EUNISCodeView = ({ value, content }) => {
259
+ const storeData = useSelector((state) => state.content?.data);
258
260
  if (!value) return value;
259
261
 
262
+ const contentData = content ?? storeData;
263
+ const altUrl = contentData?.['eunis_code_alt_url']?.trim();
264
+ const href = altUrl || `/habitats_eunis_revised/EUNISrev_${value}`;
265
+
260
266
  return (
261
267
  <span>
262
- <a
263
- href={`/habitats_eunis_revised/EUNISrev_${value}`}
264
- target="_blank"
265
- rel="noopener"
266
- >
268
+ <a href={href} target="_blank" rel="noopener">
267
269
  {value}
268
270
  </a>
269
271
  </span>
@@ -22,23 +22,40 @@
22
22
  box-shadow: none;
23
23
  }
24
24
 
25
- .contenttype-marine_eunis_habitat .help.slate_wysiwyg p.help {
26
- white-space: break-spaces;
25
+ .is-adding-contenttype-marine_eunis_habitat {
26
+ .slate_wysiwyg_box {
27
+ background-color: white;
28
+ padding: 5px;
29
+ border: 1px solid #c7d5d8;
30
+ }
27
31
  }
28
32
 
29
- .contenttype-marine_eunis_habitat .bise-objectlist-widget p.help {
30
- white-space: break-spaces;
33
+ .contenttype-marine_eunis_habitat,
34
+ .is-adding-contenttype-marine_eunis_habitat {
35
+ .help.slate_wysiwyg p.help {
36
+ white-space: break-spaces;
37
+ }
31
38
  }
32
39
 
33
- .contenttype-marine_eunis_habitat .eea.banner .gradient {
34
- background: none;
40
+ .is-adding-contenttype-marine_eunis_habitat,
41
+ .contenttype-marine_eunis_habitat {
42
+ .bise-objectlist-widget p.help {
43
+ white-space: break-spaces;
44
+ }
45
+ }
46
+
47
+ .is-adding-contenttype-marine_eunis_habitat,
48
+ .contenttype-marine_eunis_habitat {
49
+ .eea.banner .gradient {
50
+ background: none;
51
+ }
35
52
  }
36
53
 
37
54
  .contenttype-nrr_measure .eea.banner .gradient {
38
55
  background: none;
39
56
  }
40
57
 
41
- .bise-objectlist-widget .inline.field > .ui.grid {
58
+ .bise-objectlist-widget .inline.field>.ui.grid {
42
59
  margin: 0;
43
60
  }
44
61
 
@@ -46,7 +63,6 @@
46
63
  color: var(--text-color-secondary, #289588);
47
64
  }
48
65
 
49
- .contenttype-nrr_measure
50
- .top.aligned.four.wide.computer.twelve.wide.mobile.four.wide.column {
66
+ .contenttype-nrr_measure .top.aligned.four.wide.computer.twelve.wide.mobile.four.wide.column {
51
67
  background-color: #f9f9f9;
52
- }
68
+ }