@eeacms/volto-eea-website-policy 4.0.2 → 4.0.4

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,7 @@ 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.0.2](https://github.com/eea/volto-eea-website-policy/compare/4.0.1...4.0.2) - 16 July 2026
7
+ ### [4.0.4](https://github.com/eea/volto-eea-website-policy/compare/4.0.3...4.0.4) - 20 August 2026
8
8
 
9
9
  #### :bug: Bug Fixes
10
10
 
@@ -15,10 +15,24 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
15
15
 
16
16
  #### :hammer_and_wrench: Others
17
17
 
18
+ - Release 4.0.4 [Alin Voinea - [`0c2f4d3`](https://github.com/eea/volto-eea-website-policy/commit/0c2f4d3314a8b78057debb646bf25e4a372ed1ab)]
19
+ - Remove publication type configuration [dobri1408 - [`318a0df`](https://github.com/eea/volto-eea-website-policy/commit/318a0dfe04b313b8cbc17e91ec2cf87e4c8850b0)]
20
+ - Remove @eeacms/volto-globalsearch from package.json [dobri1408 - [`0e0f88a`](https://github.com/eea/volto-eea-website-policy/commit/0e0f88a7083b7de338d900ed4de00725fec4ac99)]
21
+ - Remove publication type settings from index.js [dobri1408 - [`bc2c6a0`](https://github.com/eea/volto-eea-website-policy/commit/bc2c6a022691b799c9b8cd81a2d55426ce706182)]
18
22
  - Fix syntax error in package.json dependencies [dobri1408 - [`e5f6b15`](https://github.com/eea/volto-eea-website-policy/commit/e5f6b150a86cd66dad5c00c29720a76ac6b0db97)]
19
23
  - Add volto-globalsearch to package.json [dobri1408 - [`f8ff6bd`](https://github.com/eea/volto-eea-website-policy/commit/f8ff6bd3f2e1f0c10cfa7137f8bbb82eb515154d)]
20
24
  - publication facets [Dobricean Ioan Dorian - [`2f233d7`](https://github.com/eea/volto-eea-website-policy/commit/2f233d71f83bdb6f74fd73624a27968dc670bb50)]
21
25
  - test: pin Chromium version 149 to work with Cypress [valentinab25 - [`362df3b`](https://github.com/eea/volto-eea-website-policy/commit/362df3b7f2ba297193f58d28b8d3aeaa375a3668)]
26
+ ### [4.0.3](https://github.com/eea/volto-eea-website-policy/compare/4.0.2...4.0.3) - 16 July 2026
27
+
28
+ #### :hammer_and_wrench: Others
29
+
30
+ - Remove publication facet [dobri1408 - [`aa688e9`](https://github.com/eea/volto-eea-website-policy/commit/aa688e99a2f41aed2606511d79ec0262f844152b)]
31
+ ### [4.0.2](https://github.com/eea/volto-eea-website-policy/compare/4.0.1...4.0.2) - 16 July 2026
32
+
33
+ #### :hammer_and_wrench: Others
34
+
35
+ - Add publication facet [dobri1408 - [`978fc92`](https://github.com/eea/volto-eea-website-policy/commit/978fc922cbc4475cc98c2c2c9cfb5c25d29c8477)]
22
36
  ### [4.0.1](https://github.com/eea/volto-eea-website-policy/compare/4.0.0...4.0.1) - 9 April 2026
23
37
 
24
38
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
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",
@@ -22,9 +22,9 @@
22
22
  "@plone-collective/volto-authomatic"
23
23
  ],
24
24
  "dependencies": {
25
+ "@eeacms/volto-globalsearch": "*",
25
26
  "@eeacms/volto-widget-dataprovenance": "*",
26
- "@plone-collective/volto-authomatic": "*",
27
- "@eeacms/volto-globalsearch": "*"
27
+ "@plone-collective/volto-authomatic": "*"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@cypress/code-coverage": "^3.10.0",
package/src/index.js CHANGED
@@ -2,37 +2,6 @@ import { appendGroup, getAsyncData } from './helpers';
2
2
  import { FrequencyOfDissemination } from '@eeacms/volto-eea-website-policy/components/Widgets/FrequencyOfDissemination';
3
3
  import ErrorView from '@eeacms/volto-eea-website-policy/components/ErrorView/ErrorView';
4
4
 
5
- const publicationTypeValues = [
6
- 'briefing',
7
- 'report',
8
- 'corporate-report',
9
- 'joint-report',
10
- ];
11
-
12
- const publicationTypeFacet = {
13
- field: 'publication_type.keyword',
14
- factory: 'MultiTermFacet',
15
- label: 'Publication type',
16
- showInFacetsList: true,
17
- filterType: 'any',
18
- isFilterable: false,
19
- isMulti: true,
20
- show: 10000,
21
- whitelist: publicationTypeValues,
22
- facetValues: publicationTypeValues,
23
- sortOn: 'custom',
24
- sortOrder: 'ascending',
25
- showAllOptions: true,
26
- };
27
-
28
- const publicationTypeVocabulary = {
29
- briefing: 'Briefing',
30
- report: 'Report',
31
- 'corporate-report': 'Corporate report',
32
- 'joint-report': 'Joint report',
33
- 'technical-paper': 'Technical paper',
34
- };
35
-
36
5
  const restrictedBlocks = [
37
6
  'imagecards',
38
7
  // TODO: use what is needed from volto-datablocks after clean-up
@@ -201,22 +170,6 @@ const applyConfig = (config) => {
201
170
  ];
202
171
 
203
172
  // Done
204
- const { searchui } = config.settings.searchlib;
205
-
206
- ['globalsearch', 'globalsearchbase'].forEach((appName) => {
207
- const searchConfig = searchui[appName];
208
-
209
- if (
210
- !searchConfig.facets.some(
211
- (facet) => facet.field === publicationTypeFacet.field,
212
- )
213
- ) {
214
- searchConfig.facets.push(publicationTypeFacet);
215
- }
216
-
217
- searchConfig.vocab[publicationTypeFacet.field] = publicationTypeVocabulary;
218
- });
219
-
220
173
  return config;
221
174
  };
222
175