@eeacms/volto-bise-policy 1.2.16 → 1.2.18
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,22 @@ 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.2.
|
|
7
|
+
### [1.2.18](https://github.com/eea/volto-bise-policy/compare/1.2.17...1.2.18) - 23 June 2025
|
|
8
|
+
|
|
9
|
+
#### :house: Internal changes
|
|
10
|
+
|
|
11
|
+
- style: Automated code fix [eea-jenkins - [`58c352b`](https://github.com/eea/volto-bise-policy/commit/58c352b8c54e2c62795f2a468b02ee4b71aa6030)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- hide expert view header link on national and emerald sites [Claudia Ifrim - [`a65b6b4`](https://github.com/eea/volto-bise-policy/commit/a65b6b407a51d93bfe150b62e2bff7dd63f4e423)]
|
|
16
|
+
### [1.2.17](https://github.com/eea/volto-bise-policy/compare/1.2.16...1.2.17) - 26 May 2025
|
|
17
|
+
|
|
18
|
+
#### :bug: Bug Fixes
|
|
19
|
+
|
|
20
|
+
- fix(toc): padding on ul items [nileshgulia1 - [`c510eb9`](https://github.com/eea/volto-bise-policy/commit/c510eb951a6a7f867e4b667363d65ba4d521a188)]
|
|
21
|
+
|
|
22
|
+
### [1.2.16](https://github.com/eea/volto-bise-policy/compare/1.2.15...1.2.16) - 22 May 2025
|
|
8
23
|
|
|
9
24
|
#### :house: Internal changes
|
|
10
25
|
|
package/package.json
CHANGED
|
@@ -74,7 +74,18 @@ const EEAHeader = ({ token, history, subsite, content, screen, ...props }) => {
|
|
|
74
74
|
|
|
75
75
|
const isN2KSite = useMemo(() => {
|
|
76
76
|
return !!matchPath(pathname, {
|
|
77
|
-
path: [
|
|
77
|
+
path: [
|
|
78
|
+
'/natura2000/sites/site',
|
|
79
|
+
'/natura2000/sites/site_cdda',
|
|
80
|
+
'/natura2000/sites/emerald',
|
|
81
|
+
],
|
|
82
|
+
exact: false,
|
|
83
|
+
});
|
|
84
|
+
}, [pathname]);
|
|
85
|
+
|
|
86
|
+
const hideExpertView = useMemo(() => {
|
|
87
|
+
return !!matchPath(pathname, {
|
|
88
|
+
path: ['/natura2000/sites/site_cdda', '/natura2000/sites/emerald'],
|
|
78
89
|
exact: false,
|
|
79
90
|
});
|
|
80
91
|
}, [pathname]);
|
|
@@ -343,7 +354,10 @@ const EEAHeader = ({ token, history, subsite, content, screen, ...props }) => {
|
|
|
343
354
|
className: 'deep-dive',
|
|
344
355
|
target: params.site_code ? '_blank' : null,
|
|
345
356
|
},
|
|
346
|
-
]
|
|
357
|
+
].filter(
|
|
358
|
+
(item) =>
|
|
359
|
+
item.title !== 'GO TO EXPERT VIEW' || !hideExpertView,
|
|
360
|
+
)
|
|
347
361
|
: isSubsite && !subsite.isRoot && !isN2KSpecies && !isN2KHabitat
|
|
348
362
|
? getSubsiteItems()
|
|
349
363
|
: items.filter((item) => item.url !== '/natura2000')
|
package/theme/extras/tocnav.less
CHANGED