@eeacms/volto-cca-policy 0.2.60 → 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,13 +4,18 @@ 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.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)]
7
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
17
  - Header row [Tiberiu Ichim - [`89be430`](https://github.com/eea/volto-cca-policy/commit/89be4302e461f9781e1ceda97e16b951e2d0dd08)]
12
18
  - Add fake row to satisfy sonarqube [Tiberiu Ichim - [`0136dc5`](https://github.com/eea/volto-cca-policy/commit/0136dc537e7d887f30955b3520fe5d39ac33baea)]
13
- - Use application/json for fetch [Tiberiu Ichim - [`ef539f8`](https://github.com/eea/volto-cca-policy/commit/ef539f8b32d64adfc435b68b75b83e6af5f3147c)]
14
19
  ### [0.2.59](https://github.com/eea/volto-cca-policy/compare/0.2.58...0.2.59) - 12 August 2024
15
20
 
16
21
  ### [0.2.58](https://github.com/eea/volto-cca-policy/compare/0.2.57...0.2.58) - 12 August 2024
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.60",
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,26 +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 }}>
58
- <thead>
59
- <tr>
60
- <th>fake row to satisfy sonarqube</th>
61
- </tr>
62
- </thead>
63
- <tbody>
64
- <tr>
65
- <td>fake row to satisfy sonarqube</td>
66
- </tr>
67
- </tbody>
68
- </table>
52
+ <div dangerouslySetInnerHTML={{ __html: element.value }}></div>
69
53
  );
70
54
  }
55
+
71
56
  if (element.type === 'div') {
72
57
  let _html_value = '';
73
58
  for (let i = 0; i < element.value.length; i++) {