@eeacms/volto-tableau 8.1.2 → 8.1.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,19 @@ 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
+ ### [8.1.4](https://github.com/eea/volto-tableau/compare/8.1.3...8.1.4) - 8 April 2025
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: preview image network access for infinite - refs #286675 [dobri1408 - [`f427993`](https://github.com/eea/volto-tableau/commit/f427993d1debdb7443d42b446598e26d635bbc24)]
12
+
13
+ ### [8.1.3](https://github.com/eea/volto-tableau/compare/8.1.2...8.1.3) - 28 November 2024
14
+
15
+ #### :bug: Bug Fixes
16
+
17
+ - fix(upload): of files through contents modal where action.request.data is undefined #81 [Ichim David - [`e5f41f5`](https://github.com/eea/volto-tableau/commit/e5f41f57bc4001edf704b1e4b03d3416c3d8965f)]
18
+ - fix(upload): of files through contents modal where action.request.data is undefined [David Ichim - [`80bfb8e`](https://github.com/eea/volto-tableau/commit/80bfb8efbde41488cd99eacb82e8a1dc85e98d3f)]
19
+
7
20
  ### [8.1.2](https://github.com/eea/volto-tableau/compare/8.1.1...8.1.2) - 14 November 2024
8
21
 
9
22
  #### :hammer_and_wrench: Others
@@ -11,7 +24,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
11
24
  - add test [Miu Razvan - [`862b32c`](https://github.com/eea/volto-tableau/commit/862b32c6d2760cc2169eef9f900491e6afb9a00a)]
12
25
  - add VisualizationView test [Miu Razvan - [`b4bea0a`](https://github.com/eea/volto-tableau/commit/b4bea0a6fc9814927b0b471ceebf4a9d4bfc50f2)]
13
26
  - Disable tableau editor actions while loading the tableau [Miu Razvan - [`9f33c3c`](https://github.com/eea/volto-tableau/commit/9f33c3c2c3bcb0a3e36ba21e40cbb86f2dfc6150)]
14
- - Extract parameters from tableau url, ref #279989 [Miu Razvan - [`f3c00d1`](https://github.com/eea/volto-tableau/commit/f3c00d124bd9417f44d9e9a6b054687de0859bbd)]
15
27
  ### [8.1.1](https://github.com/eea/volto-tableau/compare/8.1.0...8.1.1) - 11 October 2024
16
28
 
17
29
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-tableau",
3
- "version": "8.1.2",
3
+ "version": "8.1.4",
4
4
  "description": "@eeacms/volto-tableau: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -178,7 +178,12 @@ const VisualizationWidget = (props) => {
178
178
  .then((e) => e.blob())
179
179
  .then((myBlob) => {
180
180
  blobToBase64(myBlob).then((base64String) => {
181
- onChange(id, {
181
+ setValue({
182
+ ...value,
183
+ preview: base64String,
184
+ preview_url_loaded: value.url,
185
+ });
186
+ props.onChange(props.id, {
182
187
  ...value,
183
188
  preview: base64String,
184
189
  preview_url_loaded: value.url,
@@ -187,7 +192,7 @@ const VisualizationWidget = (props) => {
187
192
  })
188
193
  .catch(() => {});
189
194
  }
190
- }, [value, onChange, id]);
195
+ }, [props, value, onChange, id]);
191
196
 
192
197
  return (
193
198
  <FormFieldWrapper {...props}>
@@ -37,7 +37,7 @@ export const preview_image = (middlewares) => [
37
37
  }
38
38
  const state = store.getState();
39
39
  const contentData = state.content.data;
40
- const lastPreviewImage = Object.keys(action?.request?.data).includes(
40
+ const lastPreviewImage = Object.keys(action?.request?.data || {}).includes(
41
41
  'preview_image',
42
42
  )
43
43
  ? action?.request?.data.preview_image