@eeacms/volto-embed 4.0.3 → 4.0.4

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,12 @@ 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
- ### [4.0.3](https://github.com/eea/volto-embed/compare/4.0.2...4.0.3) - 6 October 2022
7
+ ### [4.0.4](https://github.com/eea/volto-embed/compare/4.0.3...4.0.4) - 19 October 2022
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Apply privacy container height only on privacy check. Default to auto [andreiggr - [`93a03fa`](https://github.com/eea/volto-embed/commit/93a03fa01f924d051c5e217f2ba2edf59cf58055)]
12
+ ### [4.0.3](https://github.com/eea/volto-embed/compare/4.0.2...4.0.3) - 7 October 2022
8
13
 
9
14
  #### :hammer_and_wrench: Others
10
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-embed",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Embed external content",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -155,7 +155,6 @@ const PrivacyProtection = (props) => {
155
155
  });
156
156
  }
157
157
  }, [enabled, url, path, dispatch, bgImg, show, intl, editable]);
158
-
159
158
  return (
160
159
  <VisibilitySensor
161
160
  onChange={(isVisible) => {
@@ -169,7 +168,7 @@ const PrivacyProtection = (props) => {
169
168
  className="privacy-protection-wrapper"
170
169
  style={{
171
170
  position: 'relative',
172
- height: height ? `${height}px` : 'auto',
171
+ height: height && (!enabled || !show) ? `${height}px` : 'auto',
173
172
  minHeight: '200px',
174
173
  overflow: 'hidden',
175
174
  }}