@eeacms/volto-embed 10.0.1 → 10.0.2

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,6 +4,13 @@ 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.2](https://github.com/eea/volto-embed/compare/10.0.1...10.0.2) - 7 June 2024
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: re-add parseInt with a check for NaN [nileshgulia1 - [`f7dd30c`](https://github.com/eea/volto-embed/commit/f7dd30c47aa2cc31726e49b8eb4cb40aae624941)]
12
+ - fix: remove parseInt [nileshgulia1 - [`0b981b4`](https://github.com/eea/volto-embed/commit/0b981b4035b247ce8bd086ab90fc5dd4a23865c8)]
13
+
7
14
  ### [10.0.1](https://github.com/eea/volto-embed/compare/10.0.0...10.0.1) - 4 June 2024
8
15
 
9
16
  #### :bug: Bug Fixes
@@ -15,14 +22,37 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
15
22
 
16
23
  #### :hammer_and_wrench: Others
17
24
 
25
+ - Merge pull request #62 from eea/develop [Nilesh - [`1b1d820`](https://github.com/eea/volto-embed/commit/1b1d820b206b35b6522866d7427563e69f10cc12)]
18
26
  - 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
27
+ ## [10.0.0](https://github.com/eea/volto-embed/compare/9.1.4...10.0.0) - 23 April 2024
20
28
 
21
29
  #### :rocket: New Features
22
30
 
23
31
  - feat: Release 10.0.0 - Volto 17 support [alin - [`bea6fba`](https://github.com/eea/volto-embed/commit/bea6fba260bf0551ac17f7c2e30ddd5717756733)]
24
32
  - feat: Volto 17 support - refs #264527 [EEA Jenkins - [`fd4b412`](https://github.com/eea/volto-embed/commit/fd4b412405a32abfb680383c2769013974184371)]
25
33
 
34
+ ### [9.1.4](https://github.com/eea/volto-embed/compare/9.1.2...9.1.4) - 4 June 2024
35
+
36
+ #### :bug: Bug Fixes
37
+
38
+ - fix: update snapshots [nileshgulia1 - [`bf3578c`](https://github.com/eea/volto-embed/commit/bf3578c38c48c0053aca06bd13958f49bcbab49c)]
39
+ - fix: remove parseInt [nileshgulia1 - [`ba532ee`](https://github.com/eea/volto-embed/commit/ba532eea34905ade2a54d623dc2a11646ad52ce6)]
40
+
41
+ #### :hammer_and_wrench: Others
42
+
43
+ - Release 9.1.4 [nileshgulia1 - [`f4c7053`](https://github.com/eea/volto-embed/commit/f4c7053e5baae054ab36792b60f57382ee810796)]
44
+ - Release 9.1.3 [nileshgulia1 - [`ee6135e`](https://github.com/eea/volto-embed/commit/ee6135eaaedf3f881476a650b100ace1727b9e3f)]
45
+ - pin cypress to"13.1.0" [nileshgulia1 - [`2ba5b25`](https://github.com/eea/volto-embed/commit/2ba5b25aff2f4e1388e5482f4f71de7b3dcd2e76)]
46
+ - update snapshot [nileshgulia1 - [`14191dc`](https://github.com/eea/volto-embed/commit/14191dc5f0a9b841cb6f0cbf51ae6426a20bfa7a)]
47
+ ### [9.1.2](https://github.com/eea/volto-embed/compare/9.1.1...9.1.2) - 4 June 2024
48
+
49
+ #### :bug: Bug Fixes
50
+
51
+ - fix: unnecessary rerenders due to props.height [nileshgulia1 - [`36c012d`](https://github.com/eea/volto-embed/commit/36c012d8ea1b251a1d5a012f7b27cfa9d9436464)]
52
+
53
+ #### :hammer_and_wrench: Others
54
+
55
+ - Release 9.1.2 [nileshgulia1 - [`3da0041`](https://github.com/eea/volto-embed/commit/3da0041f0d8ebcaa614f1cc01dd0e6cc011a42a9)]
26
56
  ### [9.1.1](https://github.com/eea/volto-embed/compare/9.1.0...9.1.1) - 6 February 2024
27
57
 
28
58
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-embed",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "Embed external content",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -115,10 +115,13 @@ const PrivacyProtection = (props) => {
115
115
 
116
116
  const height = React.useMemo(() => {
117
117
  if (!props.height) return 'auto';
118
- if (isNumber(parseInt(props.height))) return `${props.height}px`;
119
- return props.height;
118
+ try {
119
+ const height = parseInt(props.height);
120
+ if (isNumber(height) && !isNaN(height)) return `${props.height}px`;
121
+ } catch {}
122
+ return 'auto';
120
123
  // eslint-disable-next-line react-hooks/exhaustive-deps
121
- }, []);
124
+ }, [props.height]);
122
125
 
123
126
  React.useEffect(() => {
124
127
  if (bgImg) {