@eeacms/volto-globalsearch 1.0.1 → 1.0.2

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.2](https://github.com/eea/volto-globalsearch/compare/1.0.1...1.0.2) - 29 December 2022
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Revert "Automated release 1.0.2" [Alin Voinea - [`2164d79`](https://github.com/eea/volto-globalsearch/commit/2164d798ab3a71fca4769a37aa0f9116f032c16a)]
12
+ - Tweak Published filter [Tiberiu Ichim - [`8e4bafa`](https://github.com/eea/volto-globalsearch/commit/8e4bafa53658b84fac3cc5434680128d891ab427)]
13
+ - Make last 2 years default [Tiberiu Ichim - [`ff765e2`](https://github.com/eea/volto-globalsearch/commit/ff765e24a1d93c60f091aeffa7c3156d8fb98e49)]
14
+ - Add compact listing, placeholder for now [Tiberiu Ichim - [`3f6104f`](https://github.com/eea/volto-globalsearch/commit/3f6104fb1725f7e3c22736a30629f64e4882242a)]
15
+ - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`8120264`](https://github.com/eea/volto-globalsearch/commit/812026495c31b272e6ae6415642cf1a6b2f783cf)]
16
+ - yarn 3 [Alin Voinea - [`b61ad50`](https://github.com/eea/volto-globalsearch/commit/b61ad5075a79bebfce1044a6cd4978c92d98fbdc)]
7
17
  ### [1.0.1](https://github.com/eea/volto-globalsearch/compare/1.0.0...1.0.1) - 16 November 2022
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.1",
3
+ "version": "1.0.2",
4
4
  "description": "@eeacms/volto-globalsearch: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -21,12 +21,12 @@
21
21
  "@eeacms/volto-listing-block"
22
22
  ],
23
23
  "dependencies": {
24
- "@eeacms/volto-searchlib": "*",
25
- "@eeacms/volto-listing-block": "*"
24
+ "@eeacms/volto-listing-block": "*",
25
+ "@eeacms/volto-searchlib": "*"
26
26
  },
27
27
  "devDependencies": {
28
- "@plone/scripts": "*",
29
28
  "@cypress/code-coverage": "^3.10.0",
29
+ "@plone/scripts": "*",
30
30
  "babel-plugin-transform-class-properties": "^6.24.1",
31
31
  "md5": "^2.3.0"
32
32
  },
@@ -219,6 +219,7 @@ const facets = [
219
219
  dateRangeFacet({
220
220
  field: 'issued.date',
221
221
  label: ' ',
222
+ activeFilterLabel: 'Published',
222
223
  isFilter: true, // filters don't need facet options to show up
223
224
  showInFacetsList: false,
224
225
  showInSecondaryFacetsList: true,
@@ -234,7 +235,7 @@ const facets = [
234
235
  ],
235
236
  factory: 'DropdownRangeFilter',
236
237
  default: {
237
- values: ['All time'],
238
+ values: ['Last 2 years'],
238
239
  type: 'any',
239
240
  },
240
241
  }),
@@ -24,7 +24,19 @@ export default {
24
24
  item: 'CardItem',
25
25
  },
26
26
  },
27
+ {
28
+ id: 'compactListing',
29
+ title: 'Compact listing',
30
+ icon: 'th',
31
+ render: null,
32
+ isDefault: false,
33
+ factories: {
34
+ view: 'HorizontalCard.Group',
35
+ item: 'HorizontalCardItem',
36
+ },
37
+ },
27
38
  ],
39
+
28
40
  cardViewParams: {
29
41
  urlField: 'about',
30
42
  titleField: 'title',
@@ -51,6 +63,19 @@ export default {
51
63
  clusterIcons,
52
64
  },
53
65
 
66
+ compactListingViewParams: {
67
+ urlField: 'about',
68
+ titleField: 'title',
69
+ metatypeField: 'objectProvides',
70
+ descriptionField: 'description',
71
+ tagsField: 'topic',
72
+ issuedField: 'issued',
73
+ enabled: false,
74
+ getThumbnailUrl: 'getGlobalsearchThumbUrl',
75
+ getIconUrl: 'getGlobalsearchIconUrl',
76
+ clusterIcons,
77
+ },
78
+
54
79
  initialView: {
55
80
  factory: 'TilesLandingPage',
56
81
  tilesLandingPageParams: {