@eeacms/volto-embed 2.0.6 → 2.0.7
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
|
+
#### [2.0.7](https://github.com/eea/volto-embed/compare/2.0.6...2.0.7)
|
|
8
|
+
|
|
9
|
+
- encode url to have the right country screenshot [`#9`](https://github.com/eea/volto-embed/pull/9)
|
|
10
|
+
|
|
7
11
|
#### [2.0.6](https://github.com/eea/volto-embed/compare/2.0.5...2.0.6)
|
|
8
12
|
|
|
13
|
+
> 12 October 2021
|
|
14
|
+
|
|
15
|
+
- `waitforselector` attribute while querying factsheet pages in screenshot api [`#8`](https://github.com/eea/volto-embed/pull/8)
|
|
9
16
|
- decreased wait time [`0686e19`](https://github.com/eea/volto-embed/commit/0686e19518dfb8e53a64300badb13887575b031a)
|
|
10
17
|
- more specific selector [`9707bab`](https://github.com/eea/volto-embed/commit/9707bab87cad8bb98b9ff780b501e6b32882bddc)
|
|
11
18
|
- add param to dep array [`6927395`](https://github.com/eea/volto-embed/commit/6927395bd8ee3535768d211895b503787de5a63e)
|
package/package.json
CHANGED
|
@@ -134,9 +134,9 @@ export default injectIntl(
|
|
|
134
134
|
fetch(
|
|
135
135
|
`${getBaseUrl(
|
|
136
136
|
'',
|
|
137
|
-
)}/cors-proxy/https://screenshot.eea.europa.eu/api/v1/retrieve_image_for_url?url=${
|
|
138
|
-
|
|
139
|
-
}`,
|
|
137
|
+
)}/cors-proxy/https://screenshot.eea.europa.eu/api/v1/retrieve_image_for_url?url=${encodeURIComponent(
|
|
138
|
+
url,
|
|
139
|
+
)}&w=1920&waitfor=4000`,
|
|
140
140
|
)
|
|
141
141
|
.then((e) => e.blob())
|
|
142
142
|
.then((blob) => {
|
|
@@ -152,7 +152,7 @@ export default injectIntl(
|
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
}, [enabled, url, path,
|
|
155
|
+
}, [enabled, url, path, dispatch, bgImg, show, intl, isEditMode]);
|
|
156
156
|
|
|
157
157
|
return (
|
|
158
158
|
<VisibilitySensor
|