@eeacms/volto-bise-policy 1.2.37 → 1.2.38

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,10 +4,16 @@ 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.2.38](https://github.com/eea/volto-bise-policy/compare/1.2.37...1.2.38) - 11 February 2026
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - fix richtext widget view [nileshgulia1 - [`e4b1e25`](https://github.com/eea/volto-bise-policy/commit/e4b1e25e9430456367a2d3cb5026092a0054608f)]
7
12
  ### [1.2.37](https://github.com/eea/volto-bise-policy/compare/1.2.36...1.2.37) - 4 February 2026
8
13
 
9
14
  #### :hammer_and_wrench: Others
10
15
 
16
+ - Merge pull request #70 from eea/develop [Nilesh - [`b4d955d`](https://github.com/eea/volto-bise-policy/commit/b4d955d00123444fb351d3f38b26aa1e4244c79a)]
11
17
  - fix eslint [nileshgulia1 - [`b1cdf89`](https://github.com/eea/volto-bise-policy/commit/b1cdf89b239d0406db87db3433b8c1591f9da32a)]
12
18
  - fix NRR widgets and Case studies Views refs #296409 [nileshgulia1 - [`8f5a5f5`](https://github.com/eea/volto-bise-policy/commit/8f5a5f57fbe1630839658850ec4f593e84836739)]
13
19
  ### [1.2.36](https://github.com/eea/volto-bise-policy/compare/1.2.35...1.2.36) - 3 February 2026
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-bise-policy",
3
- "version": "1.2.37",
3
+ "version": "1.2.38",
4
4
  "description": "@eeacms/volto-bise-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import cx from 'classnames';
3
+
4
+ const RichTextWidget = ({ value, className }) =>
5
+ value ? (
6
+ <div
7
+ className={cx(className, 'richtext', 'widget')}
8
+ dangerouslySetInnerHTML={{
9
+ __html: value.data,
10
+ }}
11
+ />
12
+ ) : (
13
+ ''
14
+ );
15
+
16
+ export default RichTextWidget;
package/src/index.js CHANGED
@@ -33,6 +33,7 @@ import {
33
33
  NRRrelatedCaseStudiesView,
34
34
  NRRMeasuresImplementedView,
35
35
  } from './components/Widgets/NRRWidgets';
36
+ import RichTextWidget from './components/Widgets/RichTextWidget';
36
37
 
37
38
  const restrictedBlocks = ['imagecards', 'embed_eea_tableau_block'];
38
39
 
@@ -289,6 +290,7 @@ const applyConfig = (config) => {
289
290
  config.widgets.views.id.eunis_code = EUNISCodeView;
290
291
  config.widgets.views.id.related_case_studies = NRRrelatedCaseStudiesView;
291
292
  config.widgets.views.id.nrr_measures_implemented = NRRMeasuresImplementedView;
293
+ config.widgets.views.widget.richtext = RichTextWidget;
292
294
  return config;
293
295
  };
294
296