@eeacms/volto-globalsearch 1.0.4 → 1.0.6

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,16 @@ 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.0.6](https://github.com/eea/volto-globalsearch/compare/1.0.5...1.0.6) - 17 January 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Set a whitelist for the countries to be displayed on the landingpage [Zoltan Szabo - [`42a50b9`](https://github.com/eea/volto-globalsearch/commit/42a50b9b25683e93ba303126a0faf6d5bf234e34)]
12
+ ### [1.0.5](https://github.com/eea/volto-globalsearch/compare/1.0.4...1.0.5) - 17 January 2023
13
+
14
+ #### :hammer_and_wrench: Others
15
+
16
+ - Merge [Tiberiu Ichim - [`0bac812`](https://github.com/eea/volto-globalsearch/commit/0bac81246d3909cd30b214cf1be6e736220fa0ef)]
7
17
  ### [1.0.4](https://github.com/eea/volto-globalsearch/compare/1.0.3...1.0.4) - 16 January 2023
8
18
 
9
19
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-globalsearch",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "@eeacms/volto-globalsearch: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -23,6 +23,7 @@ const globalSearchConfig = {
23
23
  useSearchPhrases: false,
24
24
  searchAsYouType: false,
25
25
  landingPageURL: '/en/advanced-search',
26
+ getActiveFilters: 'getGlobalSearchActiveFilters',
26
27
 
27
28
  ...vocabs,
28
29
  ...facets,
@@ -112,8 +112,6 @@ export default function install(config) {
112
112
  };
113
113
 
114
114
  config.resolve.getGlobalSearchActiveFilters = getActiveFilters;
115
- config.searchui.globalsearch.getActiveFilters =
116
- 'getGlobalSearchActiveFilters';
117
115
 
118
116
  // config.resolve.WebsiteFilterListComponent = {
119
117
  // component: WebsiteFilterListComponent,
@@ -96,6 +96,46 @@ export default {
96
96
  facetField: 'spatial',
97
97
  filterType: 'any:exact',
98
98
  sortOn: 'alpha',
99
+ whitelist: [
100
+ 'Austria',
101
+ 'Belgium',
102
+ 'Bulgaria',
103
+ 'Croatia',
104
+ 'Cyprus',
105
+ 'Czechia',
106
+ 'Denmark',
107
+ 'Estonia',
108
+ 'Finland',
109
+ 'France',
110
+ 'Germany',
111
+ 'Greece',
112
+ 'Hungary',
113
+ 'Iceland',
114
+ 'Ireland',
115
+ 'Italy',
116
+ 'Latvia',
117
+ 'Liechtenstein',
118
+ 'Lithuania',
119
+ 'Luxembourg',
120
+ 'Malta',
121
+ 'Netherlands',
122
+ 'Norway',
123
+ 'Poland',
124
+ 'Portugal',
125
+ 'Romania',
126
+ 'Slovakia',
127
+ 'Slovenia',
128
+ 'Spain',
129
+ 'Sweden',
130
+ 'Switzerland',
131
+ 'Turkey',
132
+ 'Albania',
133
+ 'Bosnia and Herzegovina',
134
+ 'Kosovo',
135
+ 'Montenegro',
136
+ 'North Macedonia',
137
+ 'Serbia',
138
+ ],
99
139
  icon: {
100
140
  family: 'CountryFlags',
101
141
  className: 'facet-option-icon',