@eeacms/volto-embed 10.0.0 → 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,13 +4,55 @@ 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.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
|
+
|
|
14
|
+
### [10.0.1](https://github.com/eea/volto-embed/compare/10.0.0...10.0.1) - 4 June 2024
|
|
15
|
+
|
|
16
|
+
#### :bug: Bug Fixes
|
|
17
|
+
|
|
18
|
+
- fix: do not use props.height on every render [nileshgulia1 - [`9ea9155`](https://github.com/eea/volto-embed/commit/9ea91552f90da332a9358c7f57a83359493b42f4)]
|
|
19
|
+
- fix: use parseInt [nileshgulia1 - [`8bdfb95`](https://github.com/eea/volto-embed/commit/8bdfb95708b263b48f801b241a0941f889023e46)]
|
|
20
|
+
- fix: Number parsing [nileshgulia1 - [`388705b`](https://github.com/eea/volto-embed/commit/388705b04a5140e305224fbd9229cacbdf3b2f84)]
|
|
21
|
+
- fix: unnecessary re-render due to useMemo [nileshgulia1 - [`c485d05`](https://github.com/eea/volto-embed/commit/c485d055c8a94337d26c66dfd03b127a196f6ca3)]
|
|
22
|
+
|
|
23
|
+
#### :hammer_and_wrench: Others
|
|
24
|
+
|
|
25
|
+
- Merge pull request #62 from eea/develop [Nilesh - [`1b1d820`](https://github.com/eea/volto-embed/commit/1b1d820b206b35b6522866d7427563e69f10cc12)]
|
|
26
|
+
- test: add cypress 13 to devdependencies [ana-oprea - [`b341aaf`](https://github.com/eea/volto-embed/commit/b341aaf1d0a1c0e2b15c77b725481ca50943c190)]
|
|
27
|
+
## [10.0.0](https://github.com/eea/volto-embed/compare/9.1.4...10.0.0) - 23 April 2024
|
|
8
28
|
|
|
9
29
|
#### :rocket: New Features
|
|
10
30
|
|
|
11
31
|
- feat: Release 10.0.0 - Volto 17 support [alin - [`bea6fba`](https://github.com/eea/volto-embed/commit/bea6fba260bf0551ac17f7c2e30ddd5717756733)]
|
|
12
32
|
- feat: Volto 17 support - refs #264527 [EEA Jenkins - [`fd4b412`](https://github.com/eea/volto-embed/commit/fd4b412405a32abfb680383c2769013974184371)]
|
|
13
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)]
|
|
14
56
|
### [9.1.1](https://github.com/eea/volto-embed/compare/9.1.0...9.1.1) - 6 February 2024
|
|
15
57
|
|
|
16
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.
|
|
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",
|
|
@@ -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,14 @@ 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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
if (!props.height) return 'auto';
|
|
118
|
+
try {
|
|
119
|
+
const height = parseInt(props.height);
|
|
120
|
+
if (isNumber(height) && !isNaN(height)) return `${props.height}px`;
|
|
121
|
+
} catch {}
|
|
122
|
+
return 'auto';
|
|
123
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
124
|
+
}, [props.height]);
|
|
121
125
|
|
|
122
126
|
React.useEffect(() => {
|
|
123
127
|
if (bgImg) {
|