@eeacms/volto-datahub 1.0.8 → 1.0.9

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,12 @@ 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.9](https://github.com/eea/volto-datahub/compare/1.0.8...1.0.9) - 17 January 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - updated Jenkinsfile [Zoltan Szabo - [`b2efcf6`](https://github.com/eea/volto-datahub/commit/b2efcf636c03321d53cf9d1a3cc511132a4dcf1c)]
12
+ - Fix loading landing page data [Tiberiu Ichim - [`faefaa5`](https://github.com/eea/volto-datahub/commit/faefaa540ec79b5a0005f518b1125fc4e985c792)]
7
13
  ### [1.0.8](https://github.com/eea/volto-datahub/compare/1.0.7...1.0.8) - 16 January 2023
8
14
 
9
15
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-datahub",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "@eeacms/volto-datahub: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -8,10 +8,6 @@ import { useAtom } from 'jotai';
8
8
  // import { getFacetCounts } from '@eeacms/search/components/LandingPage/request';
9
9
  // import buildStateFacets from '@eeacms/search/lib/search/state/facets';
10
10
  // import { customOrder } from '@eeacms/search/lib/utils';
11
- // import {
12
- // landingPageDataAtom,
13
- // isRequestedAtom,
14
- // } from '@eeacms/search/components/LandingPage/state';
15
11
  // import { Icon, Term } from '@eeacms/search/components';
16
12
 
17
13
  import {
@@ -19,8 +15,8 @@ import {
19
15
  showFacetsAsideAtom,
20
16
  getFacetCounts,
21
17
  buildStateFacets,
22
- landingPageDataAtom,
23
- isRequestedAtom,
18
+ useLandingPageData,
19
+ useLandingPageRequest,
24
20
  Icon,
25
21
  Term,
26
22
  } from '@eeacms/search';
@@ -52,6 +48,7 @@ const sortedTiles = (tiles, sectionConfig, appConfig) => {
52
48
 
53
49
  const LandingPage = (props) => {
54
50
  const { appConfig, children, setFilter, setSort } = props;
51
+ const { appName } = appConfig;
55
52
  const { onlyLandingPage = false } = appConfig;
56
53
  // const facetsConfig = appConfig.facets;
57
54
 
@@ -69,8 +66,11 @@ const LandingPage = (props) => {
69
66
 
70
67
  const [, setShowFacets] = useAtom(showFacetsAsideAtom);
71
68
 
72
- const [landingPageData, setLandingPageData] = useAtom(landingPageDataAtom);
73
- const [isRequested, setIsRequested] = useAtom(isRequestedAtom);
69
+ const [landingPageData, setLandingPageData] = useLandingPageData(appName);
70
+ const [isRequested, setIsRequested] = useLandingPageRequest(appName);
71
+
72
+ // const [landingPageData, setLandingPageData] = useAtom(landingPageDataAtom);
73
+ // const [isRequested, setIsRequested] = useAtom(isRequestedAtom);
74
74
 
75
75
  const getTiles = (maxPerSection) => {
76
76
  let result = landingPageData?.[activeSection]?.[0]?.data || [];