@eeacms/volto-embed 10.0.0 → 10.0.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
CHANGED
|
@@ -4,7 +4,19 @@ 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
|
-
### [10.0.
|
|
7
|
+
### [10.0.1](https://github.com/eea/volto-embed/compare/10.0.0...10.0.1) - 4 June 2024
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: do not use props.height on every render [nileshgulia1 - [`9ea9155`](https://github.com/eea/volto-embed/commit/9ea91552f90da332a9358c7f57a83359493b42f4)]
|
|
12
|
+
- fix: use parseInt [nileshgulia1 - [`8bdfb95`](https://github.com/eea/volto-embed/commit/8bdfb95708b263b48f801b241a0941f889023e46)]
|
|
13
|
+
- fix: Number parsing [nileshgulia1 - [`388705b`](https://github.com/eea/volto-embed/commit/388705b04a5140e305224fbd9229cacbdf3b2f84)]
|
|
14
|
+
- fix: unnecessary re-render due to useMemo [nileshgulia1 - [`c485d05`](https://github.com/eea/volto-embed/commit/c485d055c8a94337d26c66dfd03b127a196f6ca3)]
|
|
15
|
+
|
|
16
|
+
#### :hammer_and_wrench: Others
|
|
17
|
+
|
|
18
|
+
- test: add cypress 13 to devdependencies [ana-oprea - [`b341aaf`](https://github.com/eea/volto-embed/commit/b341aaf1d0a1c0e2b15c77b725481ca50943c190)]
|
|
19
|
+
## [10.0.0](https://github.com/eea/volto-embed/compare/9.1.1...10.0.0) - 23 April 2024
|
|
8
20
|
|
|
9
21
|
#### :rocket: New Features
|
|
10
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-embed",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Embed external content",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"@eeacms/volto-datablocks": "*"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
+
"cypress": "13.1.0",
|
|
26
27
|
"@cypress/code-coverage": "^3.10.0",
|
|
27
28
|
"@plone/scripts": "*",
|
|
28
29
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
@@ -114,10 +114,11 @@ const PrivacyProtection = (props) => {
|
|
|
114
114
|
const url = getFilteredURL(mapUrl, connected_data_parameters);
|
|
115
115
|
|
|
116
116
|
const height = React.useMemo(() => {
|
|
117
|
-
if (!props.height
|
|
118
|
-
if (isNumber(props.height)) return `${props.height}px`;
|
|
117
|
+
if (!props.height) return 'auto';
|
|
118
|
+
if (isNumber(parseInt(props.height))) return `${props.height}px`;
|
|
119
119
|
return props.height;
|
|
120
|
-
|
|
120
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
121
|
+
}, []);
|
|
121
122
|
|
|
122
123
|
React.useEffect(() => {
|
|
123
124
|
if (bgImg) {
|