@eeacms/volto-cca-policy 0.3.50 → 0.3.52

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,7 +4,19 @@ 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.3.50](https://github.com/eea/volto-cca-policy/compare/0.3.49...0.3.50) - 24 May 2025
7
+ ### [0.3.52](https://github.com/eea/volto-cca-policy/compare/0.3.51...0.3.52) - 27 May 2025
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Lazy loading for spotlight tab icons [Tiberiu Ichim - [`51e336d`](https://github.com/eea/volto-cca-policy/commit/51e336da740e7beefe08c396afaf5af2184ad8e7)]
12
+ - Use get for querystats; nuke voltoCustom.css [Tiberiu Ichim - [`be618b0`](https://github.com/eea/volto-cca-policy/commit/be618b097fece28822bbbd261288f74cbcb90e0a)]
13
+ ### [0.3.51](https://github.com/eea/volto-cca-policy/compare/0.3.50...0.3.51) - 26 May 2025
14
+
15
+ #### :hammer_and_wrench: Others
16
+
17
+ - Let's serialize in one line [Tiberiu Ichim - [`bd44758`](https://github.com/eea/volto-cca-policy/commit/bd44758dae105604632f8aa8f54a485681c95f73)]
18
+ - Show the download button to the anonymous users [Tiberiu Ichim - [`394fec5`](https://github.com/eea/volto-cca-policy/commit/394fec59a62ec8836ad0a7a840b5c3e748b2ef5a)]
19
+ ### [0.3.50](https://github.com/eea/volto-cca-policy/compare/0.3.49...0.3.50) - 25 May 2025
8
20
 
9
21
  #### :house: Internal changes
10
22
 
@@ -14,7 +26,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
14
26
  #### :hammer_and_wrench: Others
15
27
 
16
28
  - Fix eslint [Tiberiu Ichim - [`56c0e38`](https://github.com/eea/volto-cca-policy/commit/56c0e38085bf9c6bbcd6cc9775d8306afb94492b)]
17
- - Fix country map block [Tiberiu Ichim - [`b7e58e1`](https://github.com/eea/volto-cca-policy/commit/b7e58e1b80896f7c142f186f271006c9c0692091)]
18
29
  ### [0.3.49](https://github.com/eea/volto-cca-policy/compare/0.3.48...0.3.49) - 23 May 2025
19
30
 
20
31
  ### [0.3.48](https://github.com/eea/volto-cca-policy/compare/0.3.47...0.3.48) - 22 May 2025
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.50",
3
+ "version": "0.3.52",
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",
@@ -54,6 +54,7 @@ export const AssetTab = ({ props, tabIndex, tabTitle }) => {
54
54
 
55
55
  {assetType === 'image' && imageObject && (
56
56
  <Image
57
+ loading="lazy"
57
58
  src={
58
59
  isInternalURL(imageObject['@id'])
59
60
  ? `${flattenToAppURL(imageObject['@id'])}/${
@@ -0,0 +1,3 @@
1
+ export default function CustomCSS() {
2
+ return null;
3
+ }
@@ -0,0 +1 @@
1
+ Customized to obliterate this. It brings no value and only worsens performance
@@ -114,20 +114,17 @@ class Html extends Component {
114
114
  {React.createElement('script', {
115
115
  nonce: nonce,
116
116
  dangerouslySetInnerHTML: {
117
- __html: `window.env = ${serialize(
118
- {
119
- ...runtimeConfig,
120
- // Seamless mode requirement, the client need to know where the API is located
121
- // if not set in the API_PATH
122
- ...(apiPath && {
123
- apiPath,
124
- }),
125
- ...(publicURL && {
126
- publicURL,
127
- }),
128
- },
129
- { space: 2 },
130
- )};`,
117
+ __html: `window.env = ${serialize({
118
+ ...runtimeConfig,
119
+ // Seamless mode requirement, the client need to know where the API is located
120
+ // if not set in the API_PATH
121
+ ...(apiPath && {
122
+ apiPath,
123
+ }),
124
+ ...(publicURL && {
125
+ publicURL,
126
+ }),
127
+ })};`,
131
128
  },
132
129
  })}
133
130
 
@@ -195,7 +192,6 @@ class Html extends Component {
195
192
  dangerouslySetInnerHTML: {
196
193
  __html: `window.__data=${serialize(
197
194
  loadReducers(store.getState()),
198
- { space: 2 },
199
195
  )};`,
200
196
  },
201
197
  charSet: 'UTF-8',
@@ -1,13 +1,13 @@
1
1
  import { GET_QUERY_STATS } from '../constants';
2
2
 
3
3
  export function getQueryStats(url, id, data) {
4
+ const query = encodeURIComponent(JSON.stringify(data));
4
5
  return {
5
6
  type: GET_QUERY_STATS,
6
7
  id,
7
8
  request: {
8
- op: 'post',
9
- path: `${url}/@querystats`,
10
- data,
9
+ op: 'get',
10
+ path: `${url}/@querystats?query=${query}`,
11
11
  },
12
12
  };
13
13
  }
@@ -11,12 +11,6 @@ body.searchlib-page .searchlib-block {
11
11
  }
12
12
  }
13
13
 
14
- body.is-anonymous .searchlib-block .search-body-footer {
15
- button.download-btn {
16
- display: none;
17
- }
18
- }
19
-
20
14
  .searchlib-page .content-section-tabs.menu .item i.icon.small {
21
15
  width: 32px;
22
16
  height: 32px;