@eeacms/volto-datahub 3.0.2 → 5.0.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,11 +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
- ### [3.0.2](https://github.com/eea/volto-datahub/compare/3.0.1...3.0.2) - 12 May 2026
7
+ ### [5.0.0](https://github.com/eea/volto-datahub/compare/4.0.0...5.0.0) - 20 November 2026
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: Volto 19 support - refs #297832 [Alin Voinea - [`7a8b3fb`](https://github.com/eea/volto-datahub/commit/7a8b3fb163612eee1d4976e9a81df11b176806af)]
12
+
13
+ #### :bug: Bug Fixes
14
+
15
+ - fix: Add betterleaks github action - refs #304517 [dobri1408 - [`42203bb`](https://github.com/eea/volto-datahub/commit/42203bb48f0c723a54568bfc30d7d1e7dc9753ab)]
8
16
 
9
17
  #### :hammer_and_wrench: Others
10
18
 
11
- - fixed EEA_DATAHUB location [Zoltan Szabo - [`705c3ff`](https://github.com/eea/volto-datahub/commit/705c3ff1d55db4a0e14bbb22121e2fa1162bfee3)]
19
+ - test: pin Chromium version 149 to work with Cypress [valentinab25 - [`da88cab`](https://github.com/eea/volto-datahub/commit/da88cab9875654680c9ad49fa0ca7ca0aa2084da)]
20
+ ## [4.0.0](https://github.com/eea/volto-datahub/compare/3.0.2...4.0.0) - 24 June 2026
21
+
22
+ #### :nail_care: Enhancements
23
+
24
+ - refactor: Remove RAZZLE_ prefix from env vars in order not to expose values on the client side - refs #305014 [Tiberiu Ichim - [`42ea941`](https://github.com/eea/volto-datahub/commit/42ea94196d1bcac9462463fcbc1637c124e1153e)]
25
+
26
+ ### [3.0.2](https://github.com/eea/volto-datahub/compare/3.0.1...3.0.2) - 14 May 2026
27
+
12
28
  ### [3.0.1](https://github.com/eea/volto-datahub/compare/3.0.0...3.0.1) - 9 April 2026
13
29
 
14
30
  #### :bug: Bug Fixes
@@ -21,11 +37,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
21
37
 
22
38
  - feat: Volto 18 support - refs #287700 [Alin Voinea - [`ac2b36c`](https://github.com/eea/volto-datahub/commit/ac2b36c35bcd12d7558e1b40c56c6553199feffa)]
23
39
 
24
- #### :house: Internal changes
25
-
26
- - chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`5e7b692`](https://github.com/eea/volto-datahub/commit/5e7b6923049dab3df919a00b01de13a4c55d1035)]
27
- - chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`7e8048c`](https://github.com/eea/volto-datahub/commit/7e8048cec178e5efc73e30b30ef77f5f79e7f2ac)]
28
-
29
40
  #### :hammer_and_wrench: Others
30
41
 
31
42
  - tests: Fix Sonar Qube tags - refs #297339 [Alin Voinea - [`54937c6`](https://github.com/eea/volto-datahub/commit/54937c65d18a64477dcaf886f6e31a66675e2b1e)]
@@ -60,7 +71,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
60
71
  #### :hammer_and_wrench: Others
61
72
 
62
73
  - add volto-eea-design-system as dependency [Teodor - [`fa4fa9e`](https://github.com/eea/volto-datahub/commit/fa4fa9e2b763b1b9399d728185e6de5a59046d1d)]
63
- - update Jenkinsfile to skip Volto 16 tests [Teodor - [`426b48f`](https://github.com/eea/volto-datahub/commit/426b48fb0b81f820d051234777ae22d9cff1d397)]
64
74
  - Update label [Teodor - [`9bd7ef6`](https://github.com/eea/volto-datahub/commit/9bd7ef6ee7aa9c1af13334f354ac17203599b8f2)]
65
75
  ### [2.0.1](https://github.com/eea/volto-datahub/compare/2.0.0...2.0.1) - 7 August 2024
66
76
 
@@ -83,7 +93,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
83
93
 
84
94
  #### :house: Internal changes
85
95
 
86
- - chore: [JENKINS] Refactor automated testing [valentinab25 - [`8438e52`](https://github.com/eea/volto-datahub/commit/8438e52e811c46aa542a601b75f4198b214b5ffd)]
87
96
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`da129fb`](https://github.com/eea/volto-datahub/commit/da129fb1259a26c87259f380a37db688281b192d)]
88
97
 
89
98
  #### :hammer_and_wrench: Others
@@ -93,11 +102,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
93
102
  - remove eslint file from ignoring [Teodor - [`39f6633`](https://github.com/eea/volto-datahub/commit/39f66338f2f7d1797343b88aa20dea9425f37014)]
94
103
  - change eslint rule [Teodor - [`73e4bc2`](https://github.com/eea/volto-datahub/commit/73e4bc217e9aa9804f0f57cf9e3488cb2e1e85b8)]
95
104
  - Ref #263008 [Teodor - [`9d58c52`](https://github.com/eea/volto-datahub/commit/9d58c52b6bc207c5c622c0428be39ae18875cf64)]
96
- - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`524fcc6`](https://github.com/eea/volto-datahub/commit/524fcc6a40e1437dac449543607089b4ba4feb21)]
97
- - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`98c01ac`](https://github.com/eea/volto-datahub/commit/98c01ac599087cf5a9011d3384483d023a4d12bb)]
98
- - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`bdcc59c`](https://github.com/eea/volto-datahub/commit/bdcc59c2d4cfd8beba4386d6f23f220c777f0513)]
99
- - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`5d12d14`](https://github.com/eea/volto-datahub/commit/5d12d1428a547b8628231dc38110a55b806edebb)]
100
- - test: [JENKINS] Improve cypress time [valentinab25 - [`dba984e`](https://github.com/eea/volto-datahub/commit/dba984e6b840c451b8de15d40de0e49c1dd09a9b)]
101
105
  ### [1.0.32](https://github.com/eea/volto-datahub/compare/1.0.31...1.0.32) - 11 October 2023
102
106
 
103
107
  #### :house: Internal changes
@@ -143,7 +147,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
143
147
  - Fix content type for rss feed [Tiberiu Ichim - [`65b73a7`](https://github.com/eea/volto-datahub/commit/65b73a79d73e626f652716305e80d9a2b017c85c)]
144
148
  - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`ead1c04`](https://github.com/eea/volto-datahub/commit/ead1c042d1358b385c19ec66ec84d7c736574b1d)]
145
149
  - Added 'DOI' links to datahub [Zoltan Szabo - [`b33a657`](https://github.com/eea/volto-datahub/commit/b33a657096eaec4caa641379e69e941a3b2c1583)]
146
- - test: Fix eslint and yarn i18n [Alin Voinea - [`39a4a69`](https://github.com/eea/volto-datahub/commit/39a4a695733514890075886753b9d7b91d853646)]
147
150
  - i18n: Add en [Alin Voinea - [`cdb303f`](https://github.com/eea/volto-datahub/commit/cdb303f2ac5e1f9eb22eda46bb58087c62af6ba5)]
148
151
  ### [1.0.27](https://github.com/eea/volto-datahub/compare/1.0.26...1.0.27) - 25 August 2023
149
152
 
@@ -159,14 +162,12 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
159
162
 
160
163
  - Update tests [kreafox - [`b452535`](https://github.com/eea/volto-datahub/commit/b452535adabf75488d6c82725152d497c6758cd4)]
161
164
  - Add tests [kreafox - [`3ef3c6f`](https://github.com/eea/volto-datahub/commit/3ef3c6f3ea11eff95d091fb5112f3e5c4a981e0d)]
162
- - Update Jenkinsfile [kreafox - [`2202f7f`](https://github.com/eea/volto-datahub/commit/2202f7f4de801a209753b0abe159c974fc0da754)]
163
165
  - Add test [kreafox - [`fcec0ba`](https://github.com/eea/volto-datahub/commit/fcec0ba7c8054d7973421428dd36d59c3a7fb2ba)]
164
166
  - Add test [kreafox - [`5061ab7`](https://github.com/eea/volto-datahub/commit/5061ab71928e4e352635c49ba7b53bf204a5b797)]
165
167
  - Code cleanup [kreafox - [`a0031be`](https://github.com/eea/volto-datahub/commit/a0031be9884b18fbbf247b0a2276b12df28bb6f1)]
166
168
  - Update dependencies [kreafox - [`955fec2`](https://github.com/eea/volto-datahub/commit/955fec2f7b7acd84dd40b195fd5dc098a8e9a11c)]
167
169
  - Fix icon size on firefox [kreafox - [`b49744d`](https://github.com/eea/volto-datahub/commit/b49744d1667988a93a5f3c43535136c3ca7f833a)]
168
170
  - Fixes on datahub view [kreafox - [`32e91a0`](https://github.com/eea/volto-datahub/commit/32e91a0f92fb1c1297a9ff3d7aa36f993d2d547b)]
169
- - test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`9a9cfca`](https://github.com/eea/volto-datahub/commit/9a9cfca01faf04b5545a33e4657003dcdc3b72f6)]
170
171
  - Add datasets filtering option [kreafox - [`3064341`](https://github.com/eea/volto-datahub/commit/30643419cab961809926c5e9221dfdb59ddf59ea)]
171
172
  - Improve accordion on datahub view [kreafox - [`dd7716a`](https://github.com/eea/volto-datahub/commit/dd7716a4913a820e3031925e6af5d6f9add0d3c5)]
172
173
  ### [1.0.25](https://github.com/eea/volto-datahub/compare/1.0.24...1.0.25) - 16 August 2023
@@ -177,7 +178,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
177
178
 
178
179
  #### :hammer_and_wrench: Others
179
180
 
180
- - Update Jenkinsfile [kreafox - [`4a950b1`](https://github.com/eea/volto-datahub/commit/4a950b19149a6ecc1d04e974b94c242d563731e1)]
181
181
  - Fix sonarqube issues to improve code quality [kreafox - [`8bd8364`](https://github.com/eea/volto-datahub/commit/8bd83646fb39611d5fb93a342d562dfa255f264c)]
182
182
  - Configure externals [Tiberiu Ichim - [`72eef0f`](https://github.com/eea/volto-datahub/commit/72eef0fcaf30440b9a0eb2523975a2a0d6e011a6)]
183
183
  - Add rss middleware [Tiberiu Ichim - [`61b215b`](https://github.com/eea/volto-datahub/commit/61b215b64bf6908421ce5c411f0a834bff11929e)]
@@ -189,10 +189,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
189
189
  - Add redirect middleware [Tiberiu Ichim - [`7f739bd`](https://github.com/eea/volto-datahub/commit/7f739bd9aab070b4eb8dc196efb238985f930784)]
190
190
  ### [1.0.23](https://github.com/eea/volto-datahub/compare/1.0.22...1.0.23) - 12 June 2023
191
191
 
192
- #### :house: Internal changes
193
-
194
- - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`e5933ce`](https://github.com/eea/volto-datahub/commit/e5933ce8879d98aabe0bab56980dbd50ce856a36)]
195
-
196
192
  #### :hammer_and_wrench: Others
197
193
 
198
194
  - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`864b75b`](https://github.com/eea/volto-datahub/commit/864b75b7f9a51d50b0aee7c0df8cccc098985f39)]
@@ -236,7 +232,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
236
232
 
237
233
  #### :hammer_and_wrench: Others
238
234
 
239
- - test(Jenkinsfile): Use latest stable volto for testing [Zoltan Szabo - [`7aed7a1`](https://github.com/eea/volto-datahub/commit/7aed7a124289f3b39b479fda1bbedd72de88d95b)]
240
235
  - Move labels inside <a> [kreafox - [`4273ece`](https://github.com/eea/volto-datahub/commit/4273ece5870b6661b1a66da91f6678923649a3cb)]
241
236
  - updates on archived items [Zoltan Szabo - [`627225d`](https://github.com/eea/volto-datahub/commit/627225d726ef48cfbcebddbf574abbe46c2c844d)]
242
237
  ### [1.0.16](https://github.com/eea/volto-datahub/compare/1.0.15...1.0.16) - 6 March 2023
@@ -246,7 +241,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
246
241
  - added utils.js [Zoltan Szabo - [`fdb33c3`](https://github.com/eea/volto-datahub/commit/fdb33c37e1af2fe071dbe8f4f5dcd2b82932edc8)]
247
242
  - Show 'Obsolete' info in the metadata section in the banner [Zoltan Szabo - [`fddfd2a`](https://github.com/eea/volto-datahub/commit/fddfd2aea63d1a1d1567c163ab29dd7119781117)]
248
243
  - Show 'More information' section only if it's not empty [Zoltan Szabo - [`612f035`](https://github.com/eea/volto-datahub/commit/612f03509c6adf143631ae6dee5ca2bd48a501c3)]
249
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b9100f6`](https://github.com/eea/volto-datahub/commit/b9100f6b2b2e9e9a26b9c11708c8fda94137cecc)]
250
244
  ### [1.0.15](https://github.com/eea/volto-datahub/compare/1.0.14...1.0.15) - 1 March 2023
251
245
 
252
246
  ### [1.0.14](https://github.com/eea/volto-datahub/compare/1.0.13...1.0.14) - 1 March 2023
@@ -285,9 +279,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
285
279
  - Remove unused import [Tiberiu Ichim - [`49bbbc8`](https://github.com/eea/volto-datahub/commit/49bbbc87a5f6235aa2f258a1712db4a8c93dfb80)]
286
280
  ### [1.0.9](https://github.com/eea/volto-datahub/compare/1.0.8...1.0.9) - 17 January 2023
287
281
 
288
- #### :hammer_and_wrench: Others
289
-
290
- - updated Jenkinsfile [Zoltan Szabo - [`b2efcf6`](https://github.com/eea/volto-datahub/commit/b2efcf636c03321d53cf9d1a3cc511132a4dcf1c)]
291
282
  ### [1.0.8](https://github.com/eea/volto-datahub/compare/1.0.7...1.0.8) - 16 January 2023
292
283
 
293
284
  #### :hammer_and_wrench: Others
@@ -299,9 +290,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
299
290
 
300
291
  ### [1.0.6](https://github.com/eea/volto-datahub/compare/1.0.5...1.0.6) - 6 January 2023
301
292
 
302
- #### :hammer_and_wrench: Others
303
-
304
- - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`9e5dee2`](https://github.com/eea/volto-datahub/commit/9e5dee2052462d8ee06da0195bcb34b0e26d34d2)]
305
293
  ### [1.0.5](https://github.com/eea/volto-datahub/compare/1.0.4...1.0.5) - 2 December 2022
306
294
 
307
295
  #### :hammer_and_wrench: Others
@@ -339,11 +327,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
339
327
  #### :hammer_and_wrench: Others
340
328
 
341
329
  - Fix eslintrc: add @eeacms/search [kreafox - [`465816f`](https://github.com/eea/volto-datahub/commit/465816feb8f58095ab4b5b3168cd29ebede3a10c)]
342
- - Use latest Volto before yarn 3 [Tiberiu Ichim - [`69f5859`](https://github.com/eea/volto-datahub/commit/69f585980fd9a38ff99d0c7875704671857720f7)]
343
330
  - Reorder sections on landing page [kreafox - [`46fac8d`](https://github.com/eea/volto-datahub/commit/46fac8d821cf93fe1b2c380380719de130c3f1cb)]
344
331
  - Fix project eslintrc [kreafox - [`5baa150`](https://github.com/eea/volto-datahub/commit/5baa1505ec38ed313269f5608c186c6a6a8bbfc4)]
345
332
  - Open dataset links in new tab [kreafox - [`bbed914`](https://github.com/eea/volto-datahub/commit/bbed914dc2edf6c749d1d73d93a423bc642e680c)]
346
- - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`380a2a9`](https://github.com/eea/volto-datahub/commit/380a2a9625c6f799df7a7c343fad3f3b3d959f96)]
347
333
  ## [1.0.0](https://github.com/eea/volto-datahub/compare/0.1.12...1.0.0) - 28 October 2022
348
334
 
349
335
  #### :nail_care: Enhancements
@@ -368,7 +354,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
368
354
  #### :hammer_and_wrench: Others
369
355
 
370
356
  - fixed query for related items [Zoltan Szabo - [`b66faee`](https://github.com/eea/volto-datahub/commit/b66faee1f8a1922cd22b3a36eccc9c7b92e377d4)]
371
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`158fe1a`](https://github.com/eea/volto-datahub/commit/158fe1a0b1767452e2e51a3e2ef97169589a50e8)]
372
357
  ### [0.1.10](https://github.com/eea/volto-datahub/compare/0.1.9...0.1.10) - 21 September 2022
373
358
 
374
359
  #### :hammer_and_wrench: Others
@@ -457,7 +442,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
457
442
  #### :hammer_and_wrench: Others
458
443
 
459
444
  - Hide questions & fix landing page [kreafox - [`a1ef303`](https://github.com/eea/volto-datahub/commit/a1ef3033df0e84f3a72dd0f984c8717dff2a771c)]
460
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`910688e`](https://github.com/eea/volto-datahub/commit/910688e3ddf2f8cda4f941595ae9a6ee0ec0ea3b)]
461
445
  ### [0.1.1](https://github.com/eea/volto-datahub/compare/0.1.0...0.1.1) - 10 June 2022
462
446
 
463
447
  ### [0.1.0](https://github.com/eea/volto-datahub/compare/0.0.1...0.1.0) - 9 June 2022
@@ -481,7 +465,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
481
465
 
482
466
  - Use Callout instead of Quote [kreafox - [`52158a3`](https://github.com/eea/volto-datahub/commit/52158a3fdb14f8228c83fbc8d32dbbb1e9c296e0)]
483
467
  - Update BlockQuote [kreafox - [`a66cc90`](https://github.com/eea/volto-datahub/commit/a66cc900a2ba7452c7a0dfa54b678b45fbbb5c44)]
484
- - Fix Jenkinsfile [kreafox - [`def0c67`](https://github.com/eea/volto-datahub/commit/def0c6786711b1f8a1448f4093b89b5da7e86c30)]
485
468
  - Prettier [kreafox - [`50b2a67`](https://github.com/eea/volto-datahub/commit/50b2a679229c994d256d99818c318c999d1980b6)]
486
469
  - WIP Datahub item view [kreafox - [`5c42f6f`](https://github.com/eea/volto-datahub/commit/5c42f6fac74dd6895a281397977a0879c4471519)]
487
470
  - Remove the index if not enableNLP [Tiberiu Ichim - [`3a3f399`](https://github.com/eea/volto-datahub/commit/3a3f399b4b7c117465358c9ca42ff6f0d3626d6d)]
package/README.md CHANGED
@@ -1,19 +1,8 @@
1
- # volto-datahub
1
+ # @eeacms/volto-datahub
2
2
 
3
3
  [![Releases](https://img.shields.io/github/v/release/eea/volto-datahub)](https://github.com/eea/volto-datahub/releases)
4
-
5
4
  [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-datahub%2Fmaster&subject=master)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-datahub/job/master/display/redirect)
6
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub)
7
5
  [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub)
8
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub)
9
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub)
10
-
11
- [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-datahub%2Fdevelop&subject=develop)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-datahub/job/develop/display/redirect)
12
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub&branch=develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub&branch=develop)
13
- [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub&branch=develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub&branch=develop)
14
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub&branch=develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub&branch=develop)
15
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub&branch=develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub&branch=develop)
16
-
17
6
 
18
7
  EEA DataHub search [Volto](https://github.com/plone/volto) add-on
19
8
 
@@ -21,23 +10,58 @@ EEA DataHub search [Volto](https://github.com/plone/volto) add-on
21
10
 
22
11
  - https://demo-www.eea.europa.eu/en/datahub
23
12
 
24
- ## Getting started
13
+ ### Environment variables
14
+
15
+ The Elasticsearch middleware proxy uses the following environment variables:
16
+
17
+ - `PROXY_ES_DSN` — default Elasticsearch DSN (e.g. `http://localhost:9200/_all`)
18
+ - `PROXY_ES_DSN_${appName}` — per-app DSN override (e.g. `PROXY_ES_DSN_datahub`)
19
+
20
+ #### Upgrading from 3.x to 4.x
21
+
22
+ The `RAZZLE_` prefix has been removed from the Elasticsearch middleware environment variable. Update your deployment configuration:
23
+
24
+ - `RAZZLE_PROXY_ES_DSN` → `PROXY_ES_DSN`
25
+ - `RAZZLE_PROXY_ES_DSN_${appName}` → `PROXY_ES_DSN_${appName}`
26
+
27
+ - https://demo-www.eea.europa.eu/en/datahub
28
+
29
+ ## Upgrade
30
+
31
+ ### Upgrading to 5.x
25
32
 
26
- ### Try volto-datahub with Docker
33
+ > This version requires `Volto 18` or `Volto 19` and Node.js 22.
27
34
 
28
- git clone https://github.com/eea/volto-datahub.git
29
- cd volto-datahub
30
- make
31
- make start
35
+ No API change: the block ids, the schema fields, the API path and the stored block data are the same
36
+ as 4.x, so an upgrade renders the same items. The release adds Volto 19 support and moves the
37
+ repository to the Volto 19 layout, where the published package lives in
38
+ `packages/volto-datahub`.
32
39
 
33
- Go to http://localhost:3000
40
+ #### Fix
34
41
 
35
- `make start` now defaults to Volto 18. To run the same setup against Volto 17, use:
42
+ - External dataset links in the item view open with `rel="noopener noreferrer"` instead of
43
+ `rel="noopener"`, so the target page cannot reach back through `window.opener`.
36
44
 
37
- VOLTO_VERSION=17 make
38
- VOLTO_VERSION=17 make start
45
+ #### Breaking changes
39
46
 
40
- ### Add volto-datahub to your Volto project
47
+ - **Node.js 22 or newer is required** (`engines.node >= 22`), 4.x declared no engine.
48
+ - **React 18 is required.** The package declares `react` and `react-dom` as `^18.2.0` peers, 4.x
49
+ declared no peers.
50
+ - **The package no longer ships the repository tooling.** The Cypress specs and the Jest setup are
51
+ gone and the unit tests moved to Vitest next to the add-on, so nothing a site imports was removed.
52
+
53
+ ## Requirements
54
+
55
+ ### Backend
56
+
57
+ - [Plone](https://plone.org/download)
58
+ - [plone.restapi](https://pypi.org/project/plone.restapi/)
59
+
60
+ ### Frontend
61
+
62
+ - Node.js: `>=22.0.0`
63
+
64
+ ## Installation
41
65
 
42
66
  1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
43
67
 
@@ -81,26 +105,13 @@ Go to http://localhost:3000
81
105
  make frontend-start
82
106
  ```
83
107
 
84
- For a legacy Volto 17 project, install the package with `yarn` and restart the frontend as usual.
85
-
86
108
  1. Go to http://localhost:3000
87
109
 
88
110
  1. Happy editing!
89
111
 
90
- ## Release
91
-
92
- See [RELEASE.md](https://github.com/eea/volto-datahub/blob/master/RELEASE.md).
93
-
94
- ## How to contribute
95
-
96
- See [DEVELOP.md](https://github.com/eea/volto-datahub/blob/master/DEVELOP.md).
97
-
98
- ## Copyright and license
99
-
100
- The Initial Owner of the Original Code is European Environment Agency (EEA).
101
- All Rights Reserved.
112
+ ## License
102
113
 
103
- See [LICENSE.md](https://github.com/eea/volto-datahub/blob/master/LICENSE.md) for details.
114
+ See [LICENSE.md](LICENSE.md) for details.
104
115
 
105
116
  ## Funding
106
117
 
package/babel.config.js CHANGED
@@ -1,17 +1 @@
1
- module.exports = function (api) {
2
- api.cache(true);
3
- const presets = ['razzle'];
4
- const plugins = [
5
- [
6
- 'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
7
- {
8
- messagesDir: './build/messages/',
9
- },
10
- ],
11
- ];
12
-
13
- return {
14
- plugins,
15
- presets,
16
- };
17
- };
1
+ module.exports = require('@plone/volto/babel');
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@eeacms/volto-datahub",
3
- "version": "3.0.2",
3
+ "version": "5.0.0",
4
4
  "description": "@eeacms/volto-datahub: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
7
7
  "license": "MIT",
8
+ "packageManager": "pnpm@10.20.0",
9
+ "engines": {
10
+ "node": ">=22.0.0"
11
+ },
8
12
  "homepage": "https://github.com/eea/volto-datahub",
9
13
  "keywords": [
10
14
  "volto-addon",
@@ -21,17 +25,31 @@
21
25
  "@eeacms/volto-eea-design-system": "*",
22
26
  "@eeacms/volto-globalsearch": "*",
23
27
  "@eeacms/volto-listing-block": "*",
24
- "feed": "4.2.2"
28
+ "feed": "4.2.2",
29
+ "react-portal": "^4.3.0",
30
+ "remixicon": "4.6.0"
25
31
  },
26
32
  "devDependencies": {
27
33
  "@cypress/code-coverage": "^3.10.0",
28
- "@plone/scripts": "*",
34
+ "@testing-library/jest-dom": "6.9.1",
35
+ "@testing-library/react": "^16.3.2",
36
+ "@vitejs/plugin-react": "4.7.0",
37
+ "@vitest/coverage-istanbul": "3.2.7",
29
38
  "babel-plugin-transform-class-properties": "^6.24.1",
30
39
  "cypress": "13.1.0",
31
40
  "dotenv": "^16.3.2",
32
41
  "husky": "^8.0.3",
42
+ "jsdom": "23.0.0",
33
43
  "lint-staged": "^14.0.1",
34
- "md5": "^2.3.0"
44
+ "md5": "^2.3.0",
45
+ "vite": "6.4.3",
46
+ "vitest": "3.2.7",
47
+ "@types/react": "^18.3.1",
48
+ "@types/react-dom": "^18.3.1",
49
+ "redux-mock-store": "1.5.4",
50
+ "redux-thunk": "^2.4.2",
51
+ "release-it": "^19.0.5",
52
+ "typescript": "^5.7.3"
35
53
  },
36
54
  "addons": [
37
55
  "@eeacms/volto-globalsearch",
@@ -64,20 +82,19 @@
64
82
  "release": "release-it",
65
83
  "release-major-beta": "release-it major --preRelease=beta",
66
84
  "release-beta": "release-it --preRelease=beta",
67
- "bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
68
- "test": "make test",
69
- "test:fix": "make test-update",
70
- "pre-commit": "yarn stylelint:fix && yarn prettier:fix && yarn lint:fix",
71
- "stylelint": "make stylelint",
72
- "stylelint:overrides": "make stylelint-overrides",
73
- "stylelint:fix": "make stylelint-fix",
74
- "prettier": "make prettier",
75
- "prettier:fix": "make prettier-fix",
76
- "lint": "make lint",
77
- "lint:fix": "make lint-fix",
78
- "i18n": "make i18n",
79
- "cypress:run": "make cypress-run",
80
- "cypress:open": "make cypress-open",
81
- "prepare": "husky install"
85
+ "test": "vitest --config ./vitest.config.mjs run --passWithNoTests",
86
+ "test:fix": "vitest --config ./vitest.config.mjs run --passWithNoTests --update",
87
+ "i18n": "rm -rf build/messages && NODE_ENV=production i18n --addon",
88
+ "prepare": "cd ../.. && husky install || true",
89
+ "dry-release": "release-it --dry-run",
90
+ "release-major-alpha": "release-it major --preRelease=alpha",
91
+ "release-alpha": "release-it --preRelease=alpha"
92
+ },
93
+ "publishConfig": {
94
+ "access": "public"
95
+ },
96
+ "peerDependencies": {
97
+ "react": "^18.2.0",
98
+ "react-dom": "^18.2.0"
82
99
  }
83
100
  }
@@ -10,7 +10,12 @@ const ItemLink = ({ item }) => (
10
10
  <List.Content>
11
11
  <div className="dataset-item">
12
12
  <SVGIcon name={servicesSVG} size="20px" />
13
- <a className="item-link" href={item.url} target="_blank" rel="noopener">
13
+ <a
14
+ className="item-link"
15
+ href={item.url}
16
+ target="_blank"
17
+ rel="noopener noreferrer"
18
+ >
14
19
  {item.protocol} {item.name || item.description}
15
20
  </a>
16
21
  {isInternalURL(item.url) ? (
@@ -4,7 +4,9 @@ import '@testing-library/jest-dom';
4
4
 
5
5
  import DatasetEsri from './DatasetEsri';
6
6
 
7
- jest.mock('remixicon/icons/System/lock-line.svg', () => 'MockLockIcon');
7
+ vi.mock('remixicon/icons/System/lock-line.svg', () => ({
8
+ default: 'MockLockIcon',
9
+ }));
8
10
 
9
11
  describe('DatasetEsri', () => {
10
12
  const dataset = {
@@ -9,7 +9,12 @@ const renderListItem = (item, index, iconClass) => (
9
9
  <List.Content>
10
10
  <div className="dataset-item">
11
11
  <Icon className={iconClass} />
12
- <a href={item.url} className="item-link" target="_blank" rel="noopener">
12
+ <a
13
+ href={item.url}
14
+ className="item-link"
15
+ target="_blank"
16
+ rel="noopener noreferrer"
17
+ >
13
18
  <span>{item.name || item.url}</span>
14
19
  </a>
15
20
  {isInternalURL(item.url) ? (
@@ -5,15 +5,17 @@ import { isInternalURL } from '@eeacms/volto-datahub/utils';
5
5
 
6
6
  import DatasetHttpLinks from './DatasetHttpLinks';
7
7
 
8
- jest.mock('@eeacms/search', () => ({
9
- runRequest: jest.fn(),
8
+ vi.mock('@eeacms/search', () => ({
9
+ runRequest: vi.fn(),
10
10
  }));
11
11
 
12
- jest.mock('@eeacms/volto-datahub/utils', () => ({
13
- isInternalURL: jest.fn(),
12
+ vi.mock('@eeacms/volto-datahub/utils', () => ({
13
+ isInternalURL: vi.fn(),
14
14
  }));
15
15
 
16
- jest.mock('remixicon/icons/System/lock-line.svg', () => 'MockLockIcon');
16
+ vi.mock('remixicon/icons/System/lock-line.svg', () => ({
17
+ default: 'MockLockIcon',
18
+ }));
17
19
 
18
20
  describe('DatasetHttpLinks', () => {
19
21
  const dataset = {
@@ -9,13 +9,13 @@ import '@testing-library/jest-dom';
9
9
 
10
10
  import DatasetItemDownloadList from './DatasetItemDownloadList';
11
11
 
12
- jest.mock('@eeacms/search', () => ({
13
- runRequest: jest.fn(),
12
+ vi.mock('@eeacms/search', () => ({
13
+ runRequest: vi.fn(),
14
14
  }));
15
- jest.mock('./DatasetUrls', () => jest.fn(() => null));
16
- jest.mock('./DatasetLinks', () => jest.fn(() => null));
17
- jest.mock('./DatasetEsri', () => jest.fn(() => null));
18
- jest.mock('./DatasetHttpLinks', () => jest.fn(() => null));
15
+ vi.mock('./DatasetUrls', () => ({ default: vi.fn(() => null) }));
16
+ vi.mock('./DatasetLinks', () => ({ default: vi.fn(() => null) }));
17
+ vi.mock('./DatasetEsri', () => ({ default: vi.fn(() => null) }));
18
+ vi.mock('./DatasetHttpLinks', () => ({ default: vi.fn(() => null) }));
19
19
 
20
20
  describe('DatasetItemDownloadList', () => {
21
21
  const link = [
@@ -5,9 +5,11 @@ import '@testing-library/jest-dom';
5
5
 
6
6
  import DatasetLinks from './DatasetLinks';
7
7
 
8
- jest.mock('remixicon/icons/System/lock-line.svg', () => 'MockLockIcon');
9
- jest.mock('@eeacms/volto-datahub/utils', () => ({
10
- isInternalURL: jest.fn(),
8
+ vi.mock('remixicon/icons/System/lock-line.svg', () => ({
9
+ default: 'MockLockIcon',
10
+ }));
11
+ vi.mock('@eeacms/volto-datahub/utils', () => ({
12
+ isInternalURL: vi.fn(),
11
13
  }));
12
14
 
13
15
  describe('DatasetLinks', () => {
@@ -5,9 +5,11 @@ import '@testing-library/jest-dom';
5
5
 
6
6
  import DatasetUrls from './DatasetUrls';
7
7
 
8
- jest.mock('remixicon/icons/System/lock-line.svg', () => 'MockLockIcon');
9
- jest.mock('@eeacms/volto-datahub/utils', () => ({
10
- isInternalURL: jest.fn(),
8
+ vi.mock('remixicon/icons/System/lock-line.svg', () => ({
9
+ default: 'MockLockIcon',
10
+ }));
11
+ vi.mock('@eeacms/volto-datahub/utils', () => ({
12
+ isInternalURL: vi.fn(),
11
13
  }));
12
14
 
13
15
  describe('DatasetUrls', () => {
@@ -84,7 +84,7 @@ const MetadataSection = (props) => {
84
84
  `${appConfig.indexBaseUrl}/catalogue/datahub/api/records/` +
85
85
  `${docid}/formatters/xsl-view?output=pdf&language=eng&approved=true`
86
86
  }
87
- rel="noopener"
87
+ rel="noopener noreferrer"
88
88
  >
89
89
  Metadata Factsheet
90
90
  </a>
@@ -95,7 +95,7 @@ const MetadataSection = (props) => {
95
95
  <a
96
96
  target="_blank"
97
97
  href={`${appConfig.indexBaseUrl}/catalogue/srv/eng/catalog.search#/metadata/${docid}`}
98
- rel="noopener"
98
+ rel="noopener noreferrer"
99
99
  >
100
100
  Metadata catalogue
101
101
  </a>
@@ -5,10 +5,10 @@ import '@testing-library/jest-dom';
5
5
 
6
6
  import MoreLikeThis from './MoreLikeThis';
7
7
 
8
- jest.mock('@eeacms/search', () => {
8
+ vi.mock('@eeacms/search', () => {
9
9
  return {
10
- runRequest: jest.fn(),
11
- firstWords: jest.fn((word, length) =>
10
+ runRequest: vi.fn(),
11
+ firstWords: vi.fn((word, length) =>
12
12
  word.split(' ').slice(0, length).join(' '),
13
13
  ),
14
14
  };
@@ -90,7 +90,7 @@ describe('SVGIcon', () => {
90
90
  afterEach(cleanup);
91
91
 
92
92
  it('should call onClick when clicked', () => {
93
- const onClick = jest.fn();
93
+ const onClick = vi.fn();
94
94
  const { container } = render(
95
95
  <SVGIcon
96
96
  name={{
@@ -16,8 +16,8 @@ const EEA_DATAHUB = `https://www.eea.europa.eu/en/datahub`;
16
16
 
17
17
  const getUrlES = (appName) => {
18
18
  return (
19
- process.env[`RAZZLE_PROXY_ES_DSN_${appName}`] ||
20
- process.env.RAZZLE_PROXY_ES_DSN ||
19
+ process.env[`PROXY_ES_DSN_${appName}`] ||
20
+ process.env.PROXY_ES_DSN ||
21
21
  'http://localhost:9200/_all'
22
22
  );
23
23
  };
package/tsconfig.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "compilerOptions": {
3
+ "esModuleInterop": true,
4
+ "skipLibCheck": true,
5
+ "target": "es2022",
6
+ "allowJs": true,
7
+ "resolveJsonModule": true,
8
+ "moduleDetection": "force",
9
+ "isolatedModules": true,
10
+ "verbatimModuleSyntax": true,
11
+ "module": "preserve",
12
+ "noEmit": true,
13
+ "lib": [
14
+ "es2022",
15
+ "dom",
16
+ "dom.iterable"
17
+ ],
18
+ "jsx": "react-jsx",
19
+ "paths": {
20
+ "@plone/volto/*": [
21
+ "../../core/packages/volto/src/*"
22
+ ],
23
+ "@eeacms/volto-datahub/*": [
24
+ "./src/*"
25
+ ]
26
+ }
27
+ },
28
+ "include": [
29
+ "**/*.ts",
30
+ "**/*.tsx",
31
+ "**/*.js",
32
+ "**/*.jsx"
33
+ ],
34
+ "exclude": [
35
+ "node_modules",
36
+ "build",
37
+ "public",
38
+ "coverage",
39
+ "**/*.test.{js,jsx,ts,tsx}",
40
+ "**/*.spec.{js,jsx,ts,tsx}",
41
+ "**/*.stories.{js,jsx,ts,tsx}"
42
+ ]
43
+ }