@eeacms/volto-bise-policy 1.1.0 → 1.2.0

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,21 @@ 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.0](https://github.com/eea/volto-bise-policy/compare/1.1.1...1.2.0) - 16 June 2023
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: redirect to error page if id_eunis is 0 on species page [Miu Razvan - [`383b20d`](https://github.com/eea/volto-bise-policy/commit/383b20d9ce870d8b79d671703476423610077183)]
12
+
13
+ #### :nail_care: Enhancements
14
+
15
+ - change(footer): complete logosHeader option for footer [David Ichim - [`2874bad`](https://github.com/eea/volto-bise-policy/commit/2874baddf237b7ed6db94b473e1385c3baafd95a)]
16
+
17
+ ### [1.1.1](https://github.com/eea/volto-bise-policy/compare/1.1.0...1.1.1) - 12 June 2023
18
+
19
+ #### :hammer_and_wrench: Others
20
+
21
+ - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`9122957`](https://github.com/eea/volto-bise-policy/commit/9122957938d28c8052c0057c12fcaaa0c4957267)]
7
22
  ### [1.1.0](https://github.com/eea/volto-bise-policy/compare/1.0.12...1.1.0) - 9 June 2023
8
23
 
9
24
  #### :nail_care: Enhancements
@@ -12,7 +12,7 @@ module.exports = {
12
12
  '@package/(.*)$': '<rootDir>/src/$1',
13
13
  '@root/(.*)$': '<rootDir>/src/$1',
14
14
  '@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
15
- '@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
15
+ '@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
16
16
  '@plone/volto-slate':
17
17
  '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
18
18
  '~/(.*)$': '<rootDir>/src/$1',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-bise-policy",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
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",
@@ -138,6 +138,13 @@ const EEAHeader = ({ token, history, subsite, content, ...props }) => {
138
138
  }
139
139
  }, [token, dispatch, pathname, previousToken]);
140
140
 
141
+ React.useEffect(() => {
142
+ if (isN2KSpecies && [0, '0'].includes(params.id_eunis)) {
143
+ history.push('/species-name-or-error-code');
144
+ }
145
+ /* eslint-disable-next-line */
146
+ }, [isN2KSpecies, params]);
147
+
141
148
  return (
142
149
  <Header menuItems={items}>
143
150
  {isHomePageInverse && <BodyClass className="homepage homepage-inverse" />}
package/src/index.js CHANGED
@@ -9,11 +9,7 @@ import biseLogo from '@eeacms/volto-bise-policy/../theme/assets/images/Header/bi
9
9
  import biseWhiteLogo from '@eeacms/volto-bise-policy/../theme/assets/images/Header/bise-logo-white.svg';
10
10
  import ecLogo from '@eeacms/volto-bise-policy/../theme/assets/logos/logo-ec-inverse.svg';
11
11
 
12
- const restrictedBlocks = [
13
- 'imagecards',
14
- 'embed_eea_tableau_block',
15
- 'embed_eea_map_block',
16
- ];
12
+ const restrictedBlocks = ['imagecards', 'embed_eea_tableau_block'];
17
13
 
18
14
  const customBlocks = [
19
15
  'html',
@@ -58,6 +54,8 @@ const applyConfig = (config) => {
58
54
  ],
59
55
  logoTargetUrl: '/',
60
56
  };
57
+
58
+ config.settings.eea.footerOpts.logosHeader = 'Managed by';
61
59
  config.settings.eea.footerOpts.managedBy[1] = {
62
60
  url: 'https://commission.europa.eu',
63
61
  src: ecLogo,