@eeacms/volto-cca-policy 0.2.59 → 0.2.61

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,11 +4,20 @@ 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.59](https://github.com/eea/volto-cca-policy/compare/0.2.58...0.2.59) - 12 August 2024
7
+ ### [0.2.61](https://github.com/eea/volto-cca-policy/compare/0.2.60...0.2.61) - 22 August 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Remove console.log [Tiberiu Ichim - [`f6b6561`](https://github.com/eea/volto-cca-policy/commit/f6b65615ac46fa6a632fd0631ede4ea061151609)]
12
+ - Pass down table directly [Tiberiu Ichim - [`88dd7a4`](https://github.com/eea/volto-cca-policy/commit/88dd7a40a3724d392e4651312fae3312ee768059)]
13
+ ### [0.2.60](https://github.com/eea/volto-cca-policy/compare/0.2.59...0.2.60) - 19 August 2024
8
14
 
9
15
  #### :hammer_and_wrench: Others
10
16
 
11
- - Don't hardcode to last 5 years [Tiberiu Ichim - [`475d7e1`](https://github.com/eea/volto-cca-policy/commit/475d7e17a8faeec9115298bd38f30db51b038a36)]
17
+ - Header row [Tiberiu Ichim - [`89be430`](https://github.com/eea/volto-cca-policy/commit/89be4302e461f9781e1ceda97e16b951e2d0dd08)]
18
+ - Add fake row to satisfy sonarqube [Tiberiu Ichim - [`0136dc5`](https://github.com/eea/volto-cca-policy/commit/0136dc537e7d887f30955b3520fe5d39ac33baea)]
19
+ ### [0.2.59](https://github.com/eea/volto-cca-policy/compare/0.2.58...0.2.59) - 12 August 2024
20
+
12
21
  ### [0.2.58](https://github.com/eea/volto-cca-policy/compare/0.2.57...0.2.58) - 12 August 2024
13
22
 
14
23
  #### :house: Internal changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.59",
3
+ "version": "0.2.61",
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",
@@ -48,15 +48,11 @@ export default function CountryTabPane(props) {
48
48
  });
49
49
  }
50
50
  if (element.type === 'table') {
51
- let _html_value = '';
52
- for (let i = 0; i < element.value.length; i++) {
53
- _html_value += element.value[i];
54
- }
55
- // return <table>{_html_value}</table>;
56
51
  return (
57
- <table dangerouslySetInnerHTML={{ __html: _html_value }}></table>
52
+ <div dangerouslySetInnerHTML={{ __html: element.value }}></div>
58
53
  );
59
54
  }
55
+
60
56
  if (element.type === 'div') {
61
57
  let _html_value = '';
62
58
  for (let i = 0; i < element.value.length; i++) {
@@ -117,7 +117,12 @@ export function BrokenLinksComponent({ reactTable }) {
117
117
  let isMounted = true;
118
118
  async function handler() {
119
119
  try {
120
- const response = await fetch(url);
120
+ const response = await fetch(url, {
121
+ method: 'GET',
122
+ headers: {
123
+ Accept: 'application/json',
124
+ },
125
+ });
121
126
  const results = await response.json();
122
127
  const data = Array.from(Object.values(results.broken_links));
123
128
  if (isMounted) setResults(data);