@eeacms/volto-embed 3.0.0 → 3.0.1

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,8 +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
+ #### [3.0.1](https://github.com/eea/volto-embed/compare/3.0.0...3.0.1)
8
+
9
+ - fix query case [`a4dbd50`](https://github.com/eea/volto-embed/commit/a4dbd50ca703efe31dd8a9deb386f668581aa136)
10
+
7
11
  #### [3.0.0](https://github.com/eea/volto-embed/compare/3.0.0-beta.0...3.0.0)
8
12
 
13
+ > 7 February 2022
14
+
15
+ - Make this compatible with volto-datablocks@3.x [`#19`](https://github.com/eea/volto-embed/pull/19)
9
16
 
10
17
  #### [3.0.0-beta.0](https://github.com/eea/volto-embed/compare/2.0.11...3.0.0-beta.0)
11
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-embed",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Embed external content",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -73,7 +73,7 @@ const getFilteredURL = (url, connected_data_parameters = []) => {
73
73
  if (!connected_data_parameters?.length) return url;
74
74
  let decodedURL = decodeURIComponent(url);
75
75
  const queries = decodedURL.match(/(?<=(<<))(.*?)(?=(>>))/g);
76
- if (!queries.length) return url;
76
+ if (!queries?.length) return url;
77
77
  const keys = connected_data_parameters.map((param) => param.i);
78
78
  for (let poz in queries) {
79
79
  const key = queries[poz];