@eeacms/volto-eea-website-theme 4.0.5 → 4.1.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,18 @@ 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
+ ### [4.1.0](https://github.com/eea/volto-eea-website-theme/compare/4.0.5...4.1.0) - 17 April 2026
8
+
9
+ #### :house: Internal changes
10
+
11
+ - style: Automated code fix [eea-jenkins - [`791197c`](https://github.com/eea/volto-eea-website-theme/commit/791197cdab091e73cd4ddc5a7c6f7a4fc777642a)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - update config [Miu Razvan - [`863717b`](https://github.com/eea/volto-eea-website-theme/commit/863717bec385ac98a69cf86578efef6377de3189)]
16
+ - change default settings for headerSearchBox [Miu Razvan - [`8343209`](https://github.com/eea/volto-eea-website-theme/commit/834320954a7b358dd112641fbf8e5ede2cae4085)]
17
+ - update [Miu Razvan - [`16b13d0`](https://github.com/eea/volto-eea-website-theme/commit/16b13d0a40ce14d9cc40f9a3b22b3b1486037178)]
18
+ - update [Miu Razvan - [`3602223`](https://github.com/eea/volto-eea-website-theme/commit/3602223822f0346551fd13c196c89015621a1833)]
7
19
  ### [4.0.5](https://github.com/eea/volto-eea-website-theme/compare/4.0.4...4.0.5) - 16 April 2026
8
20
 
9
21
  ### [4.0.4](https://github.com/eea/volto-eea-website-theme/compare/4.0.3...4.0.4) - 10 April 2026
@@ -45,8 +57,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
45
57
 
46
58
  #### :house: Internal changes
47
59
 
48
- - chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`b15b302`](https://github.com/eea/volto-eea-website-theme/commit/b15b302ff88ec6afa6901ee7e1726cc4e04a8739)]
49
- - chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`36f2e1e`](https://github.com/eea/volto-eea-website-theme/commit/36f2e1e176471b3753d77ab8aaf0cba577b43b36)]
50
60
 
51
61
  ### [3.19.0](https://github.com/eea/volto-eea-website-theme/compare/3.18.1...3.19.0) - 11 February 2026
52
62
 
@@ -109,7 +119,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
109
119
  #### :hammer_and_wrench: Others
110
120
 
111
121
  - Release 3.12.0 [Alin Voinea - [`ea1e961`](https://github.com/eea/volto-eea-website-theme/commit/ea1e96144684b2a8238ae476fd8d47de82ff42b4)]
112
- - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`2cac56e`](https://github.com/eea/volto-eea-website-theme/commit/2cac56e22e580e042d368b69254172539ed33b65)]
113
122
  ### [3.11.0](https://github.com/eea/volto-eea-website-theme/compare/3.10.1...3.11.0) - 29 September 2025
114
123
 
115
124
  #### :bug: Bug Fixes
@@ -203,8 +212,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
203
212
 
204
213
  #### :hammer_and_wrench: Others
205
214
 
206
- - Add Sonarqube tag using fise-frontend addons list [EEA Jenkins - [`3d50874`](https://github.com/eea/volto-eea-website-theme/commit/3d50874281ebcb91a1ae3727248f656a6f26c603)]
207
- - Add Sonarqube tag using ied-frontend addons list [EEA Jenkins - [`a3f7676`](https://github.com/eea/volto-eea-website-theme/commit/a3f76767d99cb6dd93cc7fa0eafdea57e9000b2c)]
208
215
  ### [3.5.4](https://github.com/eea/volto-eea-website-theme/compare/3.5.3...3.5.4) - 30 January 2025
209
216
 
210
217
  #### :bug: Bug Fixes
@@ -305,7 +312,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
305
312
 
306
313
  #### :hammer_and_wrench: Others
307
314
 
308
- - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`e417f83`](https://github.com/eea/volto-eea-website-theme/commit/e417f839312045c56b67ab8134fe5b0622b3e2c3)]
309
315
  ## [3.0.0](https://github.com/eea/volto-eea-website-theme/compare/2.4.0...3.0.0) - 21 October 2024
310
316
 
311
317
  #### :nail_care: Enhancements
@@ -391,7 +397,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
391
397
  - Refs #269520 - other_organisation test [Tripon Eugen - [`7558b27`](https://github.com/eea/volto-eea-website-theme/commit/7558b27a9d1cd6d3480a32b296c7325c796006c9)]
392
398
  - Refs #269520 - other_organisation token widget edit mode [Tripon Eugen - [`b6df127`](https://github.com/eea/volto-eea-website-theme/commit/b6df127bd91b6f55dda8f468e1107037d43752ff)]
393
399
  - Refs #269520 - other_organisation token widget [Tripon Eugen - [`6fd7543`](https://github.com/eea/volto-eea-website-theme/commit/6fd7543894bd2c593a1729116befd95c82ea3c8f)]
394
- - Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`cbc36c7`](https://github.com/eea/volto-eea-website-theme/commit/cbc36c74dfcd5f7cb1013a4c673d9c02e0023766)]
395
400
  ### [2.1.1](https://github.com/eea/volto-eea-website-theme/compare/2.1.0...2.1.1) - 28 May 2024
396
401
 
397
402
  #### :bug: Bug Fixes
@@ -476,7 +481,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
476
481
 
477
482
  #### :hammer_and_wrench: Others
478
483
 
479
- - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`adc6730`](https://github.com/eea/volto-eea-website-theme/commit/adc6730e21a37afb865b842182624401de6a29f5)]
480
484
  ### [1.33.1](https://github.com/eea/volto-eea-website-theme/compare/1.33.0...1.33.1) - 4 April 2024
481
485
 
482
486
  #### :bug: Bug Fixes
@@ -610,8 +614,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
610
614
 
611
615
  - bump version [Razvan - [`721e939`](https://github.com/eea/volto-eea-website-theme/commit/721e939d12e324b459ebfa78a2e656ee7142a3d6)]
612
616
  - merge master into this branch [Razvan - [`586c8f9`](https://github.com/eea/volto-eea-website-theme/commit/586c8f910bac55a043bd8dda60e9444bd2ae1663)]
613
- - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`fd90044`](https://github.com/eea/volto-eea-website-theme/commit/fd9004442a9d1d465f7601ecdefe3e23c61e6a9c)]
614
- - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`4bc3dd3`](https://github.com/eea/volto-eea-website-theme/commit/4bc3dd3ae412a66befd04b5b80fab3716c929240)]
615
617
  - test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`c4dbd28`](https://github.com/eea/volto-eea-website-theme/commit/c4dbd289358205bc2d849aab7edb11ccf3b89cee)]
616
618
  - fix tests [Razvan - [`042330b`](https://github.com/eea/volto-eea-website-theme/commit/042330bc97d32ffe7ba769b4f2453f71cffed706)]
617
619
  - remove RemoveSchema logic [Razvan - [`08d10f8`](https://github.com/eea/volto-eea-website-theme/commit/08d10f8bf6f75478260e4e4c66d7316ba87b907a)]
@@ -706,11 +708,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
706
708
  - test: Add real image to cypress test [Alin Voinea - [`4ff591a`](https://github.com/eea/volto-eea-website-theme/commit/4ff591ae3318c9588b4e2114582c0fa6cfdf31ae)]
707
709
  - test: Add cypress tests for Image block styling position and align [Alin Voinea - [`7341ef7`](https://github.com/eea/volto-eea-website-theme/commit/7341ef7b92714fc0cc3ab0c31c39033e7b3e19e7)]
708
710
  - Revert "change(tests): commented out rss test since title block config is missing" [Alin Voinea - [`fb61191`](https://github.com/eea/volto-eea-website-theme/commit/fb611918d6ca380b89b594f283dcf9f685a4b294)]
709
- - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`6a3be30`](https://github.com/eea/volto-eea-website-theme/commit/6a3be3092589411af7808a235f76de5222fd3868)]
710
- - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`c3978f2`](https://github.com/eea/volto-eea-website-theme/commit/c3978f23375ef066e9fd6f6c2e34ba6c1c058f69)]
711
- - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`f672779`](https://github.com/eea/volto-eea-website-theme/commit/f672779e845bec9240ccc901e9f53ec80c5a1819)]
712
- - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`ae5d8e3`](https://github.com/eea/volto-eea-website-theme/commit/ae5d8e3f4e04dc2808d47ce2ee886e1b23b528da)]
713
- - test: [JENKINS] Improve cypress time [valentinab25 - [`170ff0c`](https://github.com/eea/volto-eea-website-theme/commit/170ff0c8e3b30e69479bdf1117e811fea94f1027)]
714
711
  ### [1.23.0](https://github.com/eea/volto-eea-website-theme/compare/1.22.1...1.23.0) - 2 November 2023
715
712
 
716
713
  #### :rocket: New Features
@@ -723,7 +720,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
723
720
 
724
721
  #### :house: Internal changes
725
722
 
726
- - chore: [JENKINS] Refactor automated testing [valentinab25 - [`f28fce3`](https://github.com/eea/volto-eea-website-theme/commit/f28fce3d1eb815f95fb9aa40de42b10b7e8e30c5)]
727
723
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`6d15088`](https://github.com/eea/volto-eea-website-theme/commit/6d150886c5aeb2ca0b569270486e60f7cc274e2c)]
728
724
  - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`20c0323`](https://github.com/eea/volto-eea-website-theme/commit/20c032380b33c0077c869a05136f93e2fb68e5d4)]
729
725
 
@@ -909,7 +905,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
909
905
 
910
906
  #### :house: Internal changes
911
907
 
912
- - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
913
908
 
914
909
  #### :hammer_and_wrench: Others
915
910
 
@@ -1065,7 +1060,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1065
1060
 
1066
1061
  #### :hammer_and_wrench: Others
1067
1062
 
1068
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
1069
1063
  ### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
1070
1064
 
1071
1065
  #### :bug: Bug Fixes
@@ -1212,7 +1206,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1212
1206
 
1213
1207
  - For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
1214
1208
  - Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
1215
- - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
1216
1209
  ### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
1217
1210
 
1218
1211
  #### :hammer_and_wrench: Others
@@ -1246,7 +1239,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1246
1239
 
1247
1240
  - Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
1248
1241
  - bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
1249
- - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
1250
1242
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
1251
1243
  ### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
1252
1244
 
@@ -1256,7 +1248,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1256
1248
 
1257
1249
  #### :hammer_and_wrench: Others
1258
1250
 
1259
- - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
1260
1251
  - Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
1261
1252
  - Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
1262
1253
  ### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
@@ -1267,7 +1258,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1267
1258
 
1268
1259
  #### :hammer_and_wrench: Others
1269
1260
 
1270
- - yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
1271
1261
  ### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
1272
1262
 
1273
1263
  #### :rocket: New Features
@@ -1308,7 +1298,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1308
1298
  - Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
1309
1299
  - Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
1310
1300
  - fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
1311
- - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
1312
1301
  ### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
1313
1302
 
1314
1303
  #### :nail_care: Enhancements
@@ -1356,7 +1345,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1356
1345
 
1357
1346
  #### :hammer_and_wrench: Others
1358
1347
 
1359
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
1360
1348
  ### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
1361
1349
 
1362
1350
  #### :hammer_and_wrench: Others
@@ -1624,7 +1612,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1624
1612
  - Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
1625
1613
  - Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
1626
1614
  - feature(breadcrumbs): implement eea-design-system breadcrumb as Volto component #32 #7 [ichim-david - [`181af41`](https://github.com/eea/volto-eea-website-theme/commit/181af4125ce2b9ddac56dab4723cb11c26633221)]
1627
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
1628
1615
  - use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
1629
1616
  - Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
1630
1617
  - Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
@@ -1666,5 +1653,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1666
1653
 
1667
1654
  #### :hammer_and_wrench: Others
1668
1655
 
1669
- - yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
1670
1656
  - Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
package/README.md CHANGED
@@ -18,6 +18,10 @@ EEA Website [Volto](https://github.com/plone/volto) Theme
18
18
 
19
19
  ## Upgrade
20
20
 
21
+ ### Upgrading to ^4.1.x
22
+
23
+ * This version requires `^eea.volto.policy@12.0`
24
+
21
25
  ### Upgrading to 3.x.x
22
26
 
23
27
  * This version removes some Volto customizations and it requires **Volto 17.20.0+**. See [CHANGELOG.md](https://github.com/eea/volto-eea-website-theme/blob/master/CHANGELOG.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "4.0.5",
3
+ "version": "4.1.0",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -0,0 +1,9 @@
1
+ import { GET_EEA_SETTINGS } from '../constants/ActionTypes';
2
+
3
+ export const getEEASettings = () => ({
4
+ type: GET_EEA_SETTINGS,
5
+ request: {
6
+ op: 'get',
7
+ path: '/@eea.settings',
8
+ },
9
+ });
@@ -1,2 +1,3 @@
1
1
  export * from './print';
2
2
  export * from './navigation';
3
+ export * from './eea-settings';
package/src/config.js CHANGED
@@ -289,31 +289,44 @@ export const logoTargetUrl = '/';
289
289
 
290
290
  export const headerSearchBox = [
291
291
  {
292
- isDefault: true,
292
+ type: 'search-input',
293
+ searchSuggestions: {},
293
294
  path: '/en/advanced-search',
294
295
  placeholder: 'Search or ask your question...',
295
- description: 'For more search options',
296
- buttonTitle: 'Go to advanced search',
297
- searchSuggestions: {
298
- maxToShow: 6,
299
- suggestionsTitle: 'Try our suggestions',
300
- suggestions: [
301
- 'What is PFAS?',
302
- 'Which transport mode has the lowest pollution?',
303
- 'Which countries use most renewable energy?',
304
- 'How many premature deaths are attributed to PM2.5?',
305
- 'How many premature deaths are attributed to air pollution?',
306
- 'How much have new cars co2 emissions decreased?',
307
- 'What countries had the highest land take in the EEA-39?',
308
- 'How many people are exposed to air pollution?',
309
- ],
310
- },
296
+ maxToShow: 6,
297
+ suggestionsTitle: 'Try our suggestions',
298
+ suggestions: [
299
+ 'What is PFAS?',
300
+ 'Which transport mode has the lowest pollution?',
301
+ 'Which countries use most renewable energy?',
302
+ 'How many premature deaths are attributed to PM2.5?',
303
+ 'How many premature deaths are attributed to air pollution?',
304
+ 'How much have new cars co2 emissions decreased?',
305
+ 'What countries had the highest land take in the EEA-39?',
306
+ 'How many people are exposed to air pollution?',
307
+ ],
311
308
  },
312
309
  {
310
+ type: 'search-input',
313
311
  path: '/en/datahub',
314
312
  placeholder: 'Search Datahub...',
315
- description: 'Looking for more information?',
316
- buttonTitle: 'Go to advanced search',
313
+ },
314
+ {
315
+ type: 'info',
316
+ content: [
317
+ { text: 'For more search options' },
318
+ { text: 'Looking for more information?', path: '/en/datahub' },
319
+ ],
320
+ },
321
+ {
322
+ type: 'button-link',
323
+ title: 'Go to advanced search',
324
+ url: '/en/advanced-search',
325
+ },
326
+ {
327
+ type: 'button-link',
328
+ title: 'Ask AI',
329
+ url: '/en/ask-ai',
317
330
  },
318
331
  ];
319
332
 
@@ -6,3 +6,4 @@
6
6
  export const SET_ISPRINT = 'SET_ISPRINT';
7
7
  export const SET_PRINT_LOADING = 'SET_PRINT_LOADING';
8
8
  export const GET_NAVIGATION_SETTINGS = 'GET_NAVIGATION_SETTINGS';
9
+ export const GET_EEA_SETTINGS = 'GET_EEA_SETTINGS';
@@ -57,10 +57,13 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
57
57
 
58
58
  const { eea } = config.settings;
59
59
  const headerOpts = eea.headerOpts || {};
60
- const headerSearchBox = eea.headerSearchBox || [];
61
60
  const { logo, logoWhite } = headerOpts;
62
61
  const width = useSelector((state) => state.screen?.width);
63
62
  const dispatch = useDispatch();
63
+
64
+ const eeaSettings = useSelector((state) => state.eeaSettings?.data);
65
+ const headerSearchBox =
66
+ eeaSettings?.header?.searchBox || eea.headerSearchBox || [];
64
67
  const previousToken = usePrevious(token);
65
68
  const navigationSettings =
66
69
  useSelector((state) => state.navigationSettings?.settings) ||
@@ -33,6 +33,8 @@ import {
33
33
  import { changeLanguage } from '@plone/volto/actions/language/language';
34
34
 
35
35
  import userSession from '@plone/volto/reducers/userSession/userSession';
36
+ import { getEEASettings } from '@eeacms/volto-eea-website-theme/actions';
37
+
36
38
  import configureStore from '@plone/volto/store';
37
39
  import ErrorPage from '@plone/volto/error';
38
40
  import {
@@ -262,6 +264,7 @@ server.get('/*', (req, res) => {
262
264
  const location = parseUrl(url);
263
265
 
264
266
  loadOnServer({ store, location, routes, api })
267
+ .then(() => Promise.all([store.dispatch(getEEASettings())]).catch(() => {}))
265
268
  .then(() => {
266
269
  const initialLang =
267
270
  req.universalCookies.get('I18N_LANGUAGE') ||
package/src/index.js CHANGED
@@ -49,7 +49,7 @@ import okMiddleware from './middleware/ok';
49
49
  import voltoCustomCSSMiddleware from './middleware/voltoCustom';
50
50
  import { voltoCustomJsMiddleware } from './middleware/voltoCustom';
51
51
  import installSlate from './slate';
52
- import { print, navigationSettings } from './reducers';
52
+ import { print, navigationSettings, eeaSettings } from './reducers';
53
53
 
54
54
  import * as eea from './config';
55
55
 
@@ -676,6 +676,7 @@ const applyConfig = (config) => {
676
676
  ...(config.addonReducers || {}),
677
677
  print,
678
678
  navigationSettings,
679
+ eeaSettings,
679
680
  };
680
681
 
681
682
  // Mega menu object
@@ -0,0 +1,33 @@
1
+ import { GET_EEA_SETTINGS } from '../constants/ActionTypes';
2
+
3
+ const initialState = {
4
+ error: null,
5
+ loaded: false,
6
+ loading: false,
7
+ data: {},
8
+ };
9
+
10
+ export default function eeaSettings(state = initialState, action = {}) {
11
+ switch (action.type) {
12
+ case `${GET_EEA_SETTINGS}_PENDING`:
13
+ return { ...state, error: null, loaded: false, loading: true };
14
+ case `${GET_EEA_SETTINGS}_SUCCESS`:
15
+ return {
16
+ ...state,
17
+ error: null,
18
+ loaded: true,
19
+ loading: false,
20
+ data: action.result || {},
21
+ };
22
+ case `${GET_EEA_SETTINGS}_FAIL`:
23
+ return {
24
+ ...state,
25
+ error: action.error,
26
+ loaded: false,
27
+ loading: false,
28
+ data: {},
29
+ };
30
+ default:
31
+ return state;
32
+ }
33
+ }
@@ -1,4 +1,5 @@
1
1
  import print from './print';
2
2
  import navigationSettings from './navigation';
3
+ import eeaSettings from './eea-settings';
3
4
 
4
- export { print, navigationSettings };
5
+ export { print, navigationSettings, eeaSettings };