@eeacms/volto-embed 5.0.3 → 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,15 @@ 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)]
7
16
  ### [5.0.3](https://github.com/eea/volto-embed/compare/5.0.2...5.0.3) - 29 May 2023
8
17
 
9
18
  #### :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": "5.0.4",
4
4
  "description": "Embed external content",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -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
  '',