@eeacms/volto-embed 5.0.1 → 5.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 +8 -0
- package/package.json +1 -1
- package/src/Iframe/ViewIframe.jsx +4 -2
- package/src/Iframe/schema.js +14 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ 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
|
+
### [5.0.2](https://github.com/eea/volto-embed/compare/5.0.1...5.0.2) - 20 March 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Update Jenkinsfile: Use latest volto version [kreafox - [`06ae06f`](https://github.com/eea/volto-embed/commit/06ae06f9903e5106c6baa8b925c6f15cc2b6fd59)]
|
|
12
|
+
- Fix height in condition [kreafox - [`b1e7538`](https://github.com/eea/volto-embed/commit/b1e7538458f9cfcbe92cff06895f193bce66ce93)]
|
|
13
|
+
- Add default height value [kreafox - [`03573ac`](https://github.com/eea/volto-embed/commit/03573ac0871895b05fe53af1d896423a13f3ed6f)]
|
|
14
|
+
- Add option of CSS height [kreafox - [`507df4f`](https://github.com/eea/volto-embed/commit/507df4fec24da8f7999faeabd98fb6ba779c97fa)]
|
|
7
15
|
### [5.0.1](https://github.com/eea/volto-embed/compare/5.0.0...5.0.1) - 25 January 2023
|
|
8
16
|
|
|
9
17
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -33,7 +33,9 @@ const View = ({ data, intl, id }) => {
|
|
|
33
33
|
data.align,
|
|
34
34
|
)}
|
|
35
35
|
style={
|
|
36
|
-
data.align === 'full'
|
|
36
|
+
data.align === 'full'
|
|
37
|
+
? { position: 'static', height: data.height }
|
|
38
|
+
: { height: data.height }
|
|
37
39
|
}
|
|
38
40
|
>
|
|
39
41
|
<div
|
|
@@ -49,7 +51,7 @@ const View = ({ data, intl, id }) => {
|
|
|
49
51
|
className="google-map"
|
|
50
52
|
frameBorder="0"
|
|
51
53
|
allowFullScreen
|
|
52
|
-
style={{ height:
|
|
54
|
+
style={{ height: data.height }}
|
|
53
55
|
/>
|
|
54
56
|
</PrivacyProtection>
|
|
55
57
|
</div>
|
package/src/Iframe/schema.js
CHANGED
|
@@ -5,7 +5,7 @@ const schema = {
|
|
|
5
5
|
{
|
|
6
6
|
id: 'default',
|
|
7
7
|
title: 'Default',
|
|
8
|
-
fields: ['url', 'align'],
|
|
8
|
+
fields: ['url', 'align', 'height'],
|
|
9
9
|
},
|
|
10
10
|
],
|
|
11
11
|
|
|
@@ -18,6 +18,19 @@ const schema = {
|
|
|
18
18
|
widget: 'align',
|
|
19
19
|
type: 'string',
|
|
20
20
|
},
|
|
21
|
+
height: {
|
|
22
|
+
title: (
|
|
23
|
+
<a
|
|
24
|
+
rel="noreferrer"
|
|
25
|
+
target="_blank"
|
|
26
|
+
href="https://developer.mozilla.org/en-US/docs/Web/CSS/height"
|
|
27
|
+
>
|
|
28
|
+
CSS height
|
|
29
|
+
</a>
|
|
30
|
+
),
|
|
31
|
+
default: '45vh',
|
|
32
|
+
description: 'Iframe height',
|
|
33
|
+
},
|
|
21
34
|
},
|
|
22
35
|
|
|
23
36
|
required: ['url'],
|