@eeacms/volto-embed 5.0.2 → 5.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,6 +4,24 @@ 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.4](https://github.com/eea/volto-embed/compare/5.0.3...5.0.4) - 13 June 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`43a3461`](https://github.com/eea/volto-embed/commit/43a34615c31e53da84d68afe8bb9312729e72b4d)]
12
+ - test: Fix test config, coverage Refs #253277 [valentinab25 - [`2d7757a`](https://github.com/eea/volto-embed/commit/2d7757ad98ac23785851f564f1f7cd635e9ace0b)]
13
+ - fix cypress [Dobricean Ioan Dorian - [`7620358`](https://github.com/eea/volto-embed/commit/762035851ca5bdad7b4522740895809ddea6337e)]
14
+ - fix cypress [Dobricean Ioan Dorian - [`e13959e`](https://github.com/eea/volto-embed/commit/e13959e8a910f18682620479f0b069557896e794)]
15
+ - check if url is undefined [Dobricean Ioan Dorian - [`0c50d92`](https://github.com/eea/volto-embed/commit/0c50d920feb3fb69278dbaf2f1a06b0c85121077)]
16
+ ### [5.0.3](https://github.com/eea/volto-embed/compare/5.0.2...5.0.3) - 29 May 2023
17
+
18
+ #### :hammer_and_wrench: Others
19
+
20
+ - Add react-countup to resolutions [kreafox - [`36eb637`](https://github.com/eea/volto-embed/commit/36eb637c0cb9413b0b0e0ce53e621b2289929d65)]
21
+ - Move generic classes to privacy-protection [kreafox - [`715d559`](https://github.com/eea/volto-embed/commit/715d559e370bf7a3489b64d357b0a6cd7b1a3af2)]
22
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`5715b4d`](https://github.com/eea/volto-embed/commit/5715b4d3fcc14a34e031c383275c685d88f4db44)]
23
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`ef24ac0`](https://github.com/eea/volto-embed/commit/ef24ac05b17f4f4dbf05ceafbee677012a7f28f5)]
24
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`81f957b`](https://github.com/eea/volto-embed/commit/81f957b51aef7be59214530b774de8547bee3f5f)]
7
25
  ### [5.0.2](https://github.com/eea/volto-embed/compare/5.0.1...5.0.2) - 20 March 2023
8
26
 
9
27
  #### :hammer_and_wrench: Others
@@ -11,7 +29,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
11
29
  - Update Jenkinsfile: Use latest volto version [kreafox - [`06ae06f`](https://github.com/eea/volto-embed/commit/06ae06f9903e5106c6baa8b925c6f15cc2b6fd59)]
12
30
  - Fix height in condition [kreafox - [`b1e7538`](https://github.com/eea/volto-embed/commit/b1e7538458f9cfcbe92cff06895f193bce66ce93)]
13
31
  - 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)]
15
32
  ### [5.0.1](https://github.com/eea/volto-embed/compare/5.0.0...5.0.1) - 25 January 2023
16
33
 
17
34
  #### :hammer_and_wrench: Others
@@ -64,7 +81,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
64
81
  - Volto 15.x compatibility: updated react-cookie library [kreafox - [`a480372`](https://github.com/eea/volto-embed/commit/a480372f47e6e34d6f3e14d7b54b345dc83fd328)]
65
82
  ### [3.0.1](https://github.com/eea/volto-embed/compare/3.0.0...3.0.1) - 11 February 2022
66
83
 
67
- ### [3.0.0](https://github.com/eea/volto-embed/compare/3.0.0-beta.0...3.0.0) - 7 February 2022
84
+ ## [3.0.0](https://github.com/eea/volto-embed/compare/3.0.0-beta.0...3.0.0) - 7 February 2022
68
85
 
69
86
  ### [3.0.0-beta.0](https://github.com/eea/volto-embed/compare/2.0.11...3.0.0-beta.0) - 7 February 2022
70
87
 
@@ -5,19 +5,19 @@ module.exports = {
5
5
  '!src/**/*.d.ts',
6
6
  ],
7
7
  moduleNameMapper: {
8
+ '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
8
9
  '@plone/volto/cypress': '<rootDir>/node_modules/@plone/volto/cypress',
9
10
  '@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
10
11
  '@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
11
12
  '@package/(.*)$': '<rootDir>/src/$1',
12
13
  '@root/(.*)$': '<rootDir>/src/$1',
13
14
  '@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
14
- '@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
15
+ '@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
15
16
  '@plone/volto-slate':
16
17
  '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
17
18
  '~/(.*)$': '<rootDir>/src/$1',
18
19
  'load-volto-addons':
19
20
  '<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
20
- '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
21
21
  },
22
22
  transform: {
23
23
  '^.+\\.js(x)?$': 'babel-jest',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-embed",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
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": "*",
@@ -129,7 +129,7 @@ const PrivacyProtection = (props) => {
129
129
 
130
130
  //screenshot api
131
131
  React.useEffect(() => {
132
- if (enabled && !bgImg && !show) {
132
+ if (enabled && !bgImg && !show && url) {
133
133
  fetch(
134
134
  `${getBaseUrl(
135
135
  '',
@@ -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
  }