@eeacms/volto-embed 5.0.1 → 5.0.3

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,22 @@ 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.3](https://github.com/eea/volto-embed/compare/5.0.2...5.0.3) - 29 May 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Add react-countup to resolutions [kreafox - [`36eb637`](https://github.com/eea/volto-embed/commit/36eb637c0cb9413b0b0e0ce53e621b2289929d65)]
12
+ - Move generic classes to privacy-protection [kreafox - [`715d559`](https://github.com/eea/volto-embed/commit/715d559e370bf7a3489b64d357b0a6cd7b1a3af2)]
13
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`5715b4d`](https://github.com/eea/volto-embed/commit/5715b4d3fcc14a34e031c383275c685d88f4db44)]
14
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`ef24ac0`](https://github.com/eea/volto-embed/commit/ef24ac05b17f4f4dbf05ceafbee677012a7f28f5)]
15
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`81f957b`](https://github.com/eea/volto-embed/commit/81f957b51aef7be59214530b774de8547bee3f5f)]
16
+ ### [5.0.2](https://github.com/eea/volto-embed/compare/5.0.1...5.0.2) - 20 March 2023
17
+
18
+ #### :hammer_and_wrench: Others
19
+
20
+ - Update Jenkinsfile: Use latest volto version [kreafox - [`06ae06f`](https://github.com/eea/volto-embed/commit/06ae06f9903e5106c6baa8b925c6f15cc2b6fd59)]
21
+ - Fix height in condition [kreafox - [`b1e7538`](https://github.com/eea/volto-embed/commit/b1e7538458f9cfcbe92cff06895f193bce66ce93)]
22
+ - Add default height value [kreafox - [`03573ac`](https://github.com/eea/volto-embed/commit/03573ac0871895b05fe53af1d896423a13f3ed6f)]
7
23
  ### [5.0.1](https://github.com/eea/volto-embed/compare/5.0.0...5.0.1) - 25 January 2023
8
24
 
9
25
  #### :hammer_and_wrench: Others
@@ -56,7 +72,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
56
72
  - Volto 15.x compatibility: updated react-cookie library [kreafox - [`a480372`](https://github.com/eea/volto-embed/commit/a480372f47e6e34d6f3e14d7b54b345dc83fd328)]
57
73
  ### [3.0.1](https://github.com/eea/volto-embed/compare/3.0.0...3.0.1) - 11 February 2022
58
74
 
59
- ### [3.0.0](https://github.com/eea/volto-embed/compare/3.0.0-beta.0...3.0.0) - 7 February 2022
75
+ ## [3.0.0](https://github.com/eea/volto-embed/compare/3.0.0-beta.0...3.0.0) - 7 February 2022
60
76
 
61
77
  ### [3.0.0-beta.0](https://github.com/eea/volto-embed/compare/2.0.11...3.0.0-beta.0) - 7 February 2022
62
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-embed",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "Embed external content",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -18,6 +18,9 @@
18
18
  "@eeacms/volto-corsproxy",
19
19
  "@eeacms/volto-datablocks"
20
20
  ],
21
+ "resolutions": {
22
+ "react-countup/countup.js": "2.5.0"
23
+ },
21
24
  "dependencies": {
22
25
  "@eeacms/volto-corsproxy": "*",
23
26
  "@eeacms/volto-datablocks": "*",
@@ -33,7 +33,9 @@ const View = ({ data, intl, id }) => {
33
33
  data.align,
34
34
  )}
35
35
  style={
36
- data.align === 'full' ? { position: 'static', height: '45vh' } : {}
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: '45vh' }}
54
+ style={{ height: data.height }}
53
55
  />
54
56
  </PrivacyProtection>
55
57
  </div>
@@ -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'],
@@ -15,6 +15,33 @@
15
15
  justify-content: center;
16
16
  background-color: #eee;
17
17
  text-align: center;
18
+
19
+ .wrapped {
20
+ // position: absolute;
21
+ // top: 50%;
22
+ // left: 50%;
23
+ width: 300px;
24
+ padding: 1.4rem;
25
+ margin: 0 auto;
26
+ background: white;
27
+ border-radius: 5px;
28
+ opacity: 1;
29
+ // -ms-transform: translate(-50%, -50%);
30
+ // transform: translate(-50%, -50%);
31
+ }
32
+
33
+ .discreet,
34
+ .discreet > p {
35
+ color: grey;
36
+ font-size: 14px;
37
+ }
38
+
39
+ .overlay {
40
+ width: 100%;
41
+ height: 100%;
42
+ padding: 2rem;
43
+ background-color: rgba(0, 0, 0, 0.35);
44
+ }
18
45
  }
19
46
 
20
47
  .privacy-button {
@@ -25,33 +52,6 @@
25
52
  margin: 0.8rem auto 2rem auto;
26
53
  }
27
54
 
28
- .wrapped {
29
- // position: absolute;
30
- // top: 50%;
31
- // left: 50%;
32
- width: 300px;
33
- padding: 1.4rem;
34
- margin: 0 auto;
35
- background: white;
36
- border-radius: 5px;
37
- opacity: 1;
38
- // -ms-transform: translate(-50%, -50%);
39
- // transform: translate(-50%, -50%);
40
- }
41
-
42
- .discreet,
43
- .discreet > p {
44
- color: grey;
45
- font-size: 14px;
46
- }
47
-
48
- .overlay {
49
- width: 100%;
50
- height: 100%;
51
- padding: 2rem;
52
- background-color: rgba(0, 0, 0, 0.35);
53
- }
54
-
55
55
  .slate-Widget {
56
56
  left: 855px !important;
57
57
  }