@eeacms/volto-cca-policy 0.2.24 → 0.2.25

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,17 @@ 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
+ ### [0.2.25](https://github.com/eea/volto-cca-policy/compare/0.2.24...0.2.25) - 16 May 2024
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: facets order [kreafox - [`32b55a1`](https://github.com/eea/volto-cca-policy/commit/32b55a1f6db776d5ae6eef08eafa6daf463db34c)]
12
+ - fix: countries order in funding search [kreafox - [`51139f6`](https://github.com/eea/volto-cca-policy/commit/51139f63e56bfc332b29034bca6167e3f9460edb)]
13
+ - fix: warning messages [kreafox - [`e3e41a4`](https://github.com/eea/volto-cca-policy/commit/e3e41a42e491a4d1c0ebfcf60960254a01194e00)]
14
+
15
+ #### :hammer_and_wrench: Others
16
+
17
+ - test: update snapshots [kreafox - [`fcc582e`](https://github.com/eea/volto-cca-policy/commit/fcc582e6579e647e61c303cf6173045c0e13cc40)]
7
18
  ### [0.2.24](https://github.com/eea/volto-cca-policy/compare/0.2.23...0.2.24) - 15 May 2024
8
19
 
9
20
  #### :rocket: New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -25,7 +25,7 @@ export default function SearchAceContentView(props) {
25
25
  to="/en/help/share-your-info"
26
26
  className="ui button icon left labeled primary"
27
27
  >
28
- <Icon name="ri-share-line" />
28
+ <Icon className="ri-share-line" />
29
29
  <FormattedMessage
30
30
  id="Share your information"
31
31
  defaultMessage="Share your information"
@@ -15,7 +15,7 @@ const ShareInfoButton = (props) => {
15
15
  id="Share your information"
16
16
  defaultMessage="Share your information"
17
17
  />
18
- <Icon name="ri-share-line" />
18
+ <Icon className="ri-share-line" />
19
19
  </Button>
20
20
  </Link>
21
21
  </div>
@@ -226,9 +226,9 @@ function C3SIndicatorView(props) {
226
226
  >
227
227
  <span>Visualisation and Navigation</span>
228
228
  {activeAccIndex === 0 ? (
229
- <Icon name="ri-arrow-up-s-line" size="24px" />
229
+ <Icon className="ri-arrow-up-s-line" />
230
230
  ) : (
231
- <Icon name="ri-arrow-down-s-line" size="24px" />
231
+ <Icon className="ri-arrow-down-s-line" />
232
232
  )}
233
233
  </Accordion.Title>
234
234
  <Accordion.Content active={activeAccIndex === 0}>
@@ -227,7 +227,7 @@ const PhotoGallery = (props) => {
227
227
  />
228
228
  </span>
229
229
  <span> ({cca_gallery.length}) </span>
230
- <Icon name="ri-image-fill" />
230
+ <Icon className="ri-image-fill" />
231
231
  </div>
232
232
  <ImageGallery items={cca_gallery} />
233
233
  </div>
@@ -1,9 +1,9 @@
1
1
  import { multiTermFacet } from '@eeacms/search';
2
-
3
2
  import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
3
+ import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist';
4
4
  import { cca_adaptation_sectors } from './../common';
5
5
 
6
- const blacklist = ['IncludeArchived', 'issued.date'];
6
+ const blacklist = ['IncludeArchived', 'issued.date', 'spatial'];
7
7
 
8
8
  const facets = [
9
9
  multiTermFacet({
@@ -21,6 +21,17 @@ const facets = [
21
21
  alwaysVisible: false,
22
22
  }),
23
23
  cca_adaptation_sectors,
24
+ multiTermFacet({
25
+ field: 'spatial',
26
+ isFilterable: true,
27
+ isMulti: true,
28
+ label: 'Countries',
29
+ spatialWhitelist: spatialWhitelist,
30
+ show: 10000,
31
+ iconsFamily: 'Countries',
32
+ enableExact: true,
33
+ alwaysVisible: false,
34
+ }),
24
35
 
25
36
  ...globalSearchBaseConfig.facets.filter((f) => !blacklist.includes(f.field)),
26
37
  ];