eionet2-dashboard 1.4.0 → 1.4.1
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 +10 -0
- package/package.json +1 -1
- package/tabs/package-lock.json +1 -1
- package/tabs/package.json +1 -1
- package/tabs/src/components/HtmlBox.jsx +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +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.4.1](https://github.com/eea/eionet2-dashboard/compare/1.4.0...1.4.1) - 8 September 2023
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: sanitize link in htmlBox(#253457) [Mihai Nicolae - [`f928a8a`](https://github.com/eea/eionet2-dashboard/commit/f928a8aeae686cc4286b9825d49e621bc96fd2d4)]
|
|
12
|
+
|
|
13
|
+
#### :house: Internal changes
|
|
14
|
+
|
|
15
|
+
- chore: new version [Mihai Nicolae - [`4c22ddf`](https://github.com/eea/eionet2-dashboard/commit/4c22ddf96f7bb6a4ff1e1c1c51345f9f7753bde1)]
|
|
16
|
+
|
|
7
17
|
### [1.4.0](https://github.com/eea/eionet2-dashboard/compare/1.3.9...1.4.0) - 7 September 2023
|
|
8
18
|
|
|
9
19
|
#### :rocket: New Features
|
package/package.json
CHANGED
package/tabs/package-lock.json
CHANGED
package/tabs/package.json
CHANGED
|
@@ -2,6 +2,14 @@ import { React } from 'react';
|
|
|
2
2
|
import { Box } from '@mui/material';
|
|
3
3
|
import DOMPurify from 'dompurify';
|
|
4
4
|
|
|
5
|
+
DOMPurify.addHook('afterSanitizeAttributes', function (node) {
|
|
6
|
+
// set all elements owning target to target=_blank
|
|
7
|
+
if ('target' in node) {
|
|
8
|
+
node.setAttribute('target', '_blank');
|
|
9
|
+
node.setAttribute('rel', 'noopener');
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
5
13
|
export function HtmlBox({ html }) {
|
|
6
14
|
return (
|
|
7
15
|
<div>
|