@eeacms/volto-cca-policy 0.3.51 → 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,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
+ ### [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)]
7
13
  ### [0.3.51](https://github.com/eea/volto-cca-policy/compare/0.3.50...0.3.51) - 26 May 2025
8
14
 
9
15
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.51",
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
@@ -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
  }