@eeacms/volto-eea-website-theme 3.6.2 → 3.6.3

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,12 @@ 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.6.3](https://github.com/eea/volto-eea-website-theme/compare/3.6.2...3.6.3) - 2 June 2025
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: IMS History diff is not showing charts- refs 286978 [Nilesh - [`7a8a3f7`](https://github.com/eea/volto-eea-website-theme/commit/7a8a3f771e2a8cad9df187e853c2aa255a39d91d)]
12
+
7
13
  ### [3.6.2](https://github.com/eea/volto-eea-website-theme/compare/3.6.1...3.6.2) - 2 June 2025
8
14
 
9
15
  #### :nail_care: Enhancements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "3.6.2",
3
+ "version": "3.6.3",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -11,7 +11,7 @@ import ReactDOMServer from 'react-dom/server';
11
11
  import { Provider } from 'react-intl-redux';
12
12
  import { createBrowserHistory } from 'history';
13
13
  import { ConnectedRouter } from 'connected-react-router';
14
- import { useSelector } from 'react-redux';
14
+ import { useSelector, useStore } from 'react-redux';
15
15
  import config from '@plone/volto/registry';
16
16
  import { Api } from '@plone/volto/helpers';
17
17
  import configureStore from '@plone/volto/store';
@@ -164,6 +164,7 @@ const DiffField = ({
164
164
  schema,
165
165
  diffLib,
166
166
  }) => {
167
+ const reduxStore = useStore();
167
168
  const language = useSelector((state) => state.intl.locale);
168
169
  const readable_date_format = {
169
170
  dateStyle: 'full',
@@ -198,7 +199,8 @@ const DiffField = ({
198
199
  case 'json': {
199
200
  const api = new Api();
200
201
  const history = createBrowserHistory();
201
- const store = configureStore(window.__data, history, api);
202
+ const currentState = reduxStore.getState();
203
+ const store = configureStore(currentState, history, api); //decouple the store from the redux store
202
204
  parts = diffWords(
203
205
  ReactDOMServer.renderToStaticMarkup(
204
206
  <Provider store={store}>
@@ -220,7 +222,8 @@ const DiffField = ({
220
222
  case 'slate': {
221
223
  const api = new Api();
222
224
  const history = createBrowserHistory();
223
- const store = configureStore(window.__data, history, api);
225
+ const currentState = reduxStore.getState();
226
+ const store = configureStore(currentState, history, api);
224
227
  parts = diffWords(
225
228
  ReactDOMServer.renderToStaticMarkup(
226
229
  <Provider store={store}>
@@ -246,7 +249,8 @@ const DiffField = ({
246
249
  if (Widget) {
247
250
  const api = new Api();
248
251
  const history = createBrowserHistory();
249
- const store = configureStore(window.__data, history, api);
252
+ const currentState = reduxStore.getState();
253
+ const store = configureStore(currentState, history, api);
250
254
  parts = diffWords(
251
255
  ReactDOMServer.renderToStaticMarkup(
252
256
  <Provider store={store}>