@eeacms/volto-embed 5.0.3 → 6.0.0

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,15 +4,31 @@ 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
+ ### [6.0.0](https://github.com/eea/volto-embed/compare/5.0.4...6.0.0) - 25 July 2023
8
+
9
+ #### :nail_care: Enhancements
10
+
11
+ - refactor: remove countup - refs #254634 [Alin Voinea - [`386028c`](https://github.com/eea/volto-embed/commit/386028cff5f347981123dc96fefa4aa60b47d898)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - Release 6.0.0 [Alin Voinea - [`fd9518c`](https://github.com/eea/volto-embed/commit/fd9518c2e07292562ea0fa409209518ee63650cc)]
16
+ - remove react-countup [Dobricean Ioan Dorian - [`8713115`](https://github.com/eea/volto-embed/commit/8713115396fef6d952891ba142085e559240c2ba)]
17
+ ### [5.0.4](https://github.com/eea/volto-embed/compare/5.0.3...5.0.4) - 13 June 2023
18
+
19
+ #### :hammer_and_wrench: Others
20
+
21
+ - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`43a3461`](https://github.com/eea/volto-embed/commit/43a34615c31e53da84d68afe8bb9312729e72b4d)]
22
+ - test: Fix test config, coverage Refs #253277 [valentinab25 - [`2d7757a`](https://github.com/eea/volto-embed/commit/2d7757ad98ac23785851f564f1f7cd635e9ace0b)]
23
+ - fix cypress [Dobricean Ioan Dorian - [`7620358`](https://github.com/eea/volto-embed/commit/762035851ca5bdad7b4522740895809ddea6337e)]
24
+ - fix cypress [Dobricean Ioan Dorian - [`e13959e`](https://github.com/eea/volto-embed/commit/e13959e8a910f18682620479f0b069557896e794)]
25
+ - check if url is undefined [Dobricean Ioan Dorian - [`0c50d92`](https://github.com/eea/volto-embed/commit/0c50d920feb3fb69278dbaf2f1a06b0c85121077)]
7
26
  ### [5.0.3](https://github.com/eea/volto-embed/compare/5.0.2...5.0.3) - 29 May 2023
8
27
 
9
28
  #### :hammer_and_wrench: Others
10
29
 
11
30
  - Add react-countup to resolutions [kreafox - [`36eb637`](https://github.com/eea/volto-embed/commit/36eb637c0cb9413b0b0e0ce53e621b2289929d65)]
12
31
  - 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
32
  ### [5.0.2](https://github.com/eea/volto-embed/compare/5.0.1...5.0.2) - 20 March 2023
17
33
 
18
34
  #### :hammer_and_wrench: Others
@@ -27,7 +43,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
27
43
  - update .project.eslintrc.js [Miu Razvan - [`628fd40`](https://github.com/eea/volto-embed/commit/628fd402b00d075ce319b9be92ff5f0e4d0ca2c4)]
28
44
  - rename schema.jsx [Miu Razvan - [`62794e3`](https://github.com/eea/volto-embed/commit/62794e398eab5117132e5622cab735f6cf4f79fd)]
29
45
  - improving code quality as per sonarqube reported issues [tedw87 - [`c7842f7`](https://github.com/eea/volto-embed/commit/c7842f7795f344e9d30538ddf2da04e97e319ebe)]
30
- - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`fe3a2de`](https://github.com/eea/volto-embed/commit/fe3a2de6180796c3d6b569733d2b9365a669c23e)]
31
46
  ## [5.0.0](https://github.com/eea/volto-embed/compare/4.0.4...5.0.0) - 31 October 2022
32
47
 
33
48
  #### :hammer_and_wrench: Others
@@ -47,8 +62,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
47
62
 
48
63
  - use specific alpha for addon test [andreiggr - [`e6df633`](https://github.com/eea/volto-embed/commit/e6df633aa4d2b0ee7eeb6b5aafa21528f14cd1df)]
49
64
  - add optional height to privacy container [andreiggr - [`e2ac711`](https://github.com/eea/volto-embed/commit/e2ac711db4e461b474cade42109346a73bb8ecbd)]
50
- - Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`9f3f358`](https://github.com/eea/volto-embed/commit/9f3f35882fb367d72c7916abe7cbf366dbd8d5b6)]
51
- - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`7677140`](https://github.com/eea/volto-embed/commit/767714006abf7cbe336c5ab00d76c7232d5bc798)]
52
65
  ### [4.0.2](https://github.com/eea/volto-embed/compare/4.0.1...4.0.2) - 15 July 2022
53
66
 
54
67
  #### :hammer_and_wrench: Others
@@ -88,7 +101,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
88
101
 
89
102
  - Update package.json [Nilesh - [`0ec673a`](https://github.com/eea/volto-embed/commit/0ec673a8178731b8c1e010101caee2a3c9fafaca)]
90
103
  - Update package.json [Nilesh - [`b8b94ec`](https://github.com/eea/volto-embed/commit/b8b94ec64672229f464b9108b4ac01a848827c00)]
91
- - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`cfe04d8`](https://github.com/eea/volto-embed/commit/cfe04d885255bb8e472a3b268b98e3d7b9022437)]
92
104
  - Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`bf197dd`](https://github.com/eea/volto-embed/commit/bf197dd6516f9c18994add19b1141e061a96e2b6)]
93
105
  - no hardcoded text [Daniela Mormocea - [`4001bb4`](https://github.com/eea/volto-embed/commit/4001bb414df05c1516f95e4dcec4a328406dc63f)]
94
106
  - fix [Daniela Mormocea - [`a41ca9a`](https://github.com/eea/volto-embed/commit/a41ca9a2795a59f2633fb97938244e335dca8c43)]
@@ -162,8 +174,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
162
174
  - revert use of custom bg image [nileshgulia1 - [`63a74b7`](https://github.com/eea/volto-embed/commit/63a74b7e671d85b602b0190c7a18e6d6ad71341b)]
163
175
  - PrivacyProtection update & accept bg image [Andrei Grigore - [`f3f05d1`](https://github.com/eea/volto-embed/commit/f3f05d1d21fc88b90de3f68a995242b6c359e03a)]
164
176
  - fix loading of cookies [nileshgulia1 - [`46348d8`](https://github.com/eea/volto-embed/commit/46348d8321b4633a3d5fdcbfb2c4f01912d7ed2a)]
165
- - Add Sonarqube tag using frontend addons list [EEA Jenkins - [`a1e1f50`](https://github.com/eea/volto-embed/commit/a1e1f50db8a1ebc11261c3a24c39687c00ca7eea)]
166
- - Add Sonarqube tag using frontend addons list [EEA Jenkins - [`1e1471e`](https://github.com/eea/volto-embed/commit/1e1471ebab5ba6e5bf0c231ddd0de94d8fe6c846)]
167
177
  ### [2.0.1](https://github.com/eea/volto-embed/compare/2.0.0...2.0.1) - 28 May 2021
168
178
 
169
179
  #### :hammer_and_wrench: Others
@@ -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.3",
3
+ "version": "6.0.0",
4
4
  "description": "Embed external content",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -18,9 +18,6 @@
18
18
  "@eeacms/volto-corsproxy",
19
19
  "@eeacms/volto-datablocks"
20
20
  ],
21
- "resolutions": {
22
- "react-countup/countup.js": "2.5.0"
23
- },
24
21
  "dependencies": {
25
22
  "@eeacms/volto-corsproxy": "*",
26
23
  "@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
  '',