@eeacms/volto-eea-website-policy 2.5.0 → 2.6.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,27 @@ 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.6.0](https://github.com/eea/volto-eea-website-policy/compare/2.5.1...2.6.0) - 6 August 2025
8
+
9
+ #### :nail_care: Enhancements
10
+
11
+ - refactor: remove unsed classes - refs #288509 [dobri1408 - [`adfa7c4`](https://github.com/eea/volto-eea-website-policy/commit/adfa7c45e8d54c8d2095b227d5fe851586a214c2)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - Release 2.6.0 [alin - [`c1ad9aa`](https://github.com/eea/volto-eea-website-policy/commit/c1ad9aab4fcaf3b58618b379603fbd4fb4793144)]
16
+ ### [2.5.1](https://github.com/eea/volto-eea-website-policy/compare/2.5.0...2.5.1) - 7 July 2025
17
+
18
+ #### :nail_care: Enhancements
19
+
20
+ - refactor: move code to volto-eea-website-theme [nileshgulia1 - [`fa894be`](https://github.com/eea/volto-eea-website-policy/commit/fa894beba428d7eeb0ea67465184e70787c248ab)]
21
+
22
+ #### :hammer_and_wrench: Others
23
+
24
+ - remove readme.md [nileshgulia1 - [`d60dca9`](https://github.com/eea/volto-eea-website-policy/commit/d60dca9baec362c1ebaaf55213438ad4b8a711e9)]
25
+ - Serialize formatted json; disable server etag [Tiberiu Ichim - [`0d82bcd`](https://github.com/eea/volto-eea-website-policy/commit/0d82bcd2d0ced3dc9406af82668dc80ef89a19c3)]
26
+ - Make them work [Tiberiu Ichim - [`2de8737`](https://github.com/eea/volto-eea-website-policy/commit/2de87379b97aebf12354d181a9f9de32a34a02fc)]
27
+ - WIP on csp headers [Tiberiu Ichim - [`135b67a`](https://github.com/eea/volto-eea-website-policy/commit/135b67a50cc22f4372bcc0fd1f1ac9485157a177)]
7
28
  ### [2.5.0](https://github.com/eea/volto-eea-website-policy/compare/2.4.1...2.5.0) - 6 June 2025
8
29
 
9
30
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "@eeacms/volto-eea-website-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -54,6 +54,15 @@ const applyConfig = (config) => {
54
54
  // #160689 Redirect contact-form to contact-us
55
55
  config.settings.contactForm = '/en/about/contact-us';
56
56
 
57
+ if (__SERVER__) {
58
+ const devsource = __DEVELOPMENT__
59
+ ? ` http://localhost:${parseInt(process.env.PORT || '3000') + 1}`
60
+ : '';
61
+ config.settings.serverConfig.csp = {
62
+ 'script-src': `'self' {nonce}${devsource}`,
63
+ };
64
+ }
65
+
57
66
  // #137187 Keycloak integration
58
67
  if (runtimeConfig['RAZZLE_KEYCLOAK'] === 'Yes') {
59
68
  config.settings.externalRoutes = [
@@ -112,10 +121,7 @@ const applyConfig = (config) => {
112
121
  config.settings.menuItemsLayouts = {
113
122
  '/en/topics': {
114
123
  menuItemChildrenListColumns: [1, 4],
115
- menuItemColumns: [
116
- 'at-a-glance three wide column',
117
- 'topics-right-column nine wide column',
118
- ],
124
+ menuItemColumns: ['three wide column', 'nine wide column'],
119
125
  hideChildrenFromNavigation: false,
120
126
  },
121
127
  '/en/countries': {