@eeacms/volto-cca-policy 0.2.11 → 0.2.12

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,24 @@ 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.12](https://github.com/eea/volto-cca-policy/compare/0.2.11...0.2.12) - 29 April 2024
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(search): cleanup [kreafox - [`6436c4e`](https://github.com/eea/volto-cca-policy/commit/6436c4e8fb98236253ef08dc2357a419bf4f1070)]
12
+
13
+ #### :nail_care: Enhancements
14
+
15
+ - change(search): move common facets [kreafox - [`c3375f3`](https://github.com/eea/volto-cca-policy/commit/c3375f3846ae9788a0f620575e3b1f0bc0302783)]
16
+
17
+ #### :house: Internal changes
18
+
19
+ - style: fix listings [kreafox - [`5782507`](https://github.com/eea/volto-cca-policy/commit/578250758523cf33b495959eb65d8e8b6a255fe3)]
20
+ - style: fix alignment in tabs [kreafox - [`a1bdcc4`](https://github.com/eea/volto-cca-policy/commit/a1bdcc41a80ca53b070e0e21f66b8b0ff3c0184e)]
21
+
22
+ #### :hammer_and_wrench: Others
23
+
24
+ - Pin cypress version to 13 [kreafox - [`53cc434`](https://github.com/eea/volto-cca-policy/commit/53cc434057ce26caab5c46d20bae903250a05663)]
7
25
  ### [0.2.11](https://github.com/eea/volto-cca-policy/compare/0.2.10...0.2.11) - 26 April 2024
8
26
 
9
27
  #### :house: Internal changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
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",
@@ -49,6 +49,7 @@
49
49
  "react-visibility-sensor": "5.1.1"
50
50
  },
51
51
  "devDependencies": {
52
+ "cypress": "13.1.0",
52
53
  "@cypress/code-coverage": "^3.10.0",
53
54
  "@plone/scripts": "*",
54
55
  "babel-plugin-transform-class-properties": "^6.24.1",
@@ -23,7 +23,7 @@
23
23
 
24
24
  .image.icon {
25
25
  width: 48px;
26
- max-height: 48px;
26
+ height: 48px;
27
27
  object-fit: contain;
28
28
  }
29
29
 
@@ -12,6 +12,28 @@ export const geographic_countries = {
12
12
  isMulti: true,
13
13
  };
14
14
 
15
+ export const cca_climate_impacts = {
16
+ field: 'cca_climate_impacts.keyword',
17
+ factory: 'MultiTermFacet',
18
+ label: 'Climate Impacts',
19
+ showInFacetsList: true,
20
+ filterType: 'any',
21
+ isFilterable: false,
22
+ show: 10000,
23
+ isMulti: true,
24
+ };
25
+
26
+ export const cca_adaptation_sectors = {
27
+ field: 'cca_adaptation_sectors.keyword',
28
+ factory: 'MultiTermFacet',
29
+ label: 'Adaptation Sectors',
30
+ showInFacetsList: true,
31
+ filterType: 'any',
32
+ isFilterable: false,
33
+ show: 10000,
34
+ isMulti: true,
35
+ };
36
+
15
37
  export const include_archived = booleanFacet(() => ({
16
38
  field: 'IncludeArchived',
17
39
  label: 'Include archived content',
@@ -5,6 +5,8 @@ import {
5
5
  language,
6
6
  issued_date,
7
7
  geographic_countries,
8
+ cca_climate_impacts,
9
+ cca_adaptation_sectors,
8
10
  } from './../common';
9
11
 
10
12
  const facets = [
@@ -16,20 +18,8 @@ const facets = [
16
18
  iconsFamily: 'Funding Programme',
17
19
  alwaysVisible: false,
18
20
  }),
19
- multiTermFacet({
20
- field: 'cca_climate_impacts.keyword',
21
- isFilterable: false,
22
- isMulti: true,
23
- label: 'Climate Impacts',
24
- alwaysVisible: false,
25
- }),
26
- multiTermFacet({
27
- field: 'cca_adaptation_sectors.keyword',
28
- isFilterable: false,
29
- isMulti: true,
30
- label: 'Adaptation Sectors',
31
- alwaysVisible: false,
32
- }),
21
+ cca_climate_impacts,
22
+ cca_adaptation_sectors,
33
23
  multiTermFacet({
34
24
  field: 'cca_adaptation_elements.keyword',
35
25
  isFilterable: false,
@@ -1,24 +1,11 @@
1
1
  import { multiTermFacet } from '@eeacms/search';
2
2
 
3
3
  import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
4
+ import { cca_climate_impacts, cca_adaptation_sectors } from './../common';
4
5
 
5
6
  const facets = [
6
- multiTermFacet({
7
- field: 'cca_climate_impacts.keyword',
8
- isFilterable: false,
9
- isMulti: true,
10
- label: 'Climate Impacts',
11
- iconsFamily: 'Climate Impacts',
12
- alwaysVisible: false,
13
- }),
14
- multiTermFacet({
15
- field: 'cca_adaptation_sectors.keyword',
16
- isFilterable: false,
17
- isMulti: true,
18
- label: 'Adaptation Sectors',
19
- iconsFamily: 'Adaptation Sectors',
20
- alwaysVisible: false,
21
- }),
7
+ cca_climate_impacts,
8
+ cca_adaptation_sectors,
22
9
  multiTermFacet({
23
10
  field: 'key_system.keyword',
24
11
  isFilterable: false,
@@ -38,11 +38,7 @@ export function getClientProxyAddress() {
38
38
  export const getSearchThumbUrl = () => (result, config, fallback) => {
39
39
  let image = fallback;
40
40
 
41
- if (
42
- result.about?.raw?.indexOf('://cca-p6.devel5cph.eionet.europa.eu') !== -1 ||
43
- result.about?.raw?.indexOf('://cca.devel5cph.eionet.europa.eu') !== -1 ||
44
- result.about?.raw?.indexOf('://climate-adapt.eea.europa.eu') !== -1
45
- ) {
41
+ if (result.about?.raw?.indexOf('://climate-adapt.eea.europa.eu') !== -1) {
46
42
  if (result.cca_preview_image) {
47
43
  image = result?.about?.raw + '/@@images/preview_image/preview';
48
44
  }
@@ -0,0 +1,3 @@
1
+ ol.ui.list, .ui.bulleted.list {
2
+ margin-left: 0;
3
+ }
@@ -17,6 +17,14 @@
17
17
  @green-2 97.12%
18
18
  );
19
19
 
20
+ [id='page-document'] > .ui.list,
21
+ .view-wrapper > .ui.list,
22
+ [id='page-document'] > .ui.bulleted.list,
23
+ .view-wrapper > .ui.bulleted.list {
24
+ margin-left: auto !important;
25
+ margin-right: auto !important;
26
+ }
27
+
20
28
  .ui.ordered.list,
21
29
  .ui.ordered.list .list,
22
30
  ol.ui.list,
@@ -185,8 +193,3 @@ body.subsite {
185
193
  font-size: 23px;
186
194
  }
187
195
  }
188
-
189
-
190
- ol.ui.list, .ui.bulleted.list {
191
- margin-left: 0 !important;
192
- }