@eeacms/volto-eea-design-system 1.60.1 → 1.60.2

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,11 +4,13 @@ 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
- ### [1.60.1](https://github.com/eea/volto-eea-design-system/compare/1.60.0...1.60.1) - 17 April 2026
7
+ ### [1.60.2](https://github.com/eea/volto-eea-design-system/compare/1.60.1...1.60.2) - 22 April 2026
8
8
 
9
9
  #### :hammer_and_wrench: Others
10
10
 
11
- - filter header search box settings by path [Miu Razvan - [`4d752c6`](https://github.com/eea/volto-eea-design-system/commit/4d752c6f589cb0ccf49885a3b3a02fdf3875fb72)]
11
+ - use proper state of header settings [Miu Razvan - [`03f2182`](https://github.com/eea/volto-eea-design-system/commit/03f2182e1248308ef4c406dbffab1d1433a2d510)]
12
+ ### [1.60.1](https://github.com/eea/volto-eea-design-system/compare/1.60.0...1.60.1) - 17 April 2026
13
+
12
14
  ### [1.60.0](https://github.com/eea/volto-eea-design-system/compare/1.50.2...1.60.0) - 17 April 2026
13
15
 
14
16
  #### :house: Documentation changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.60.1",
3
+ "version": "1.60.2",
4
4
  "description": "@eeacms/volto-eea-design-system: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -161,11 +161,12 @@ const Main = ({
161
161
  const [burger, setBurger] = React.useState('');
162
162
  const searchInputRef = React.useRef(null);
163
163
  const [isClient, setIsClient] = React.useState();
164
- const headerSettings = useSelector(
165
- (state) => state.eeaSettings?.data?.header || {},
164
+ const useAISearchIcon = useSelector(
165
+ (state) =>
166
+ state.reduxAsyncConnect?.headerSettings?.useAISearchIcon || false,
166
167
  );
167
168
 
168
- const searchIcon = headerSettings.useAISearchIcon ? aiSearchIcon : searchSVG;
169
+ const searchIcon = useAISearchIcon ? aiSearchIcon : searchSVG;
169
170
 
170
171
  const itemsLayouts =
171
172
  menuItemsLayouts || config.settings?.menuItemsLayouts || {};
@@ -8,7 +8,7 @@ import { Default } from './Header.stories';
8
8
  import '@testing-library/jest-dom';
9
9
 
10
10
  const mockStore = createStore(() => ({
11
- eeaSettings: { data: { header: {} } },
11
+ reduxAsyncConnect: { headerSettings: {} },
12
12
  }));
13
13
 
14
14
  global.ResizeObserver = require('resize-observer-polyfill');
@@ -8,11 +8,9 @@ import { Provider } from 'react-redux';
8
8
  import '@testing-library/jest-dom';
9
9
 
10
10
  const mockState = {
11
- eeaSettings: {
12
- data: {
13
- header: {
14
- useAISearchIcon: false,
15
- },
11
+ reduxAsyncConnect: {
12
+ headerSettings: {
13
+ useAISearchIcon: false,
16
14
  },
17
15
  },
18
16
  };
@@ -91,11 +91,12 @@ function HeaderSearchPopUp({
91
91
  getRandomItems(suggestions, maxToShow),
92
92
  );
93
93
 
94
- const headerSettings = useSelector(
95
- (state) => state.eeaSettings?.data?.header || {},
94
+ const useAISearchIcon = useSelector(
95
+ (state) =>
96
+ state.reduxAsyncConnect?.headerSettings?.useAISearchIcon || false,
96
97
  );
97
98
 
98
- const searchIcon = headerSettings.useAISearchIcon ? aiSearchIcon : searchSVG;
99
+ const searchIcon = useAISearchIcon ? aiSearchIcon : searchSVG;
99
100
 
100
101
  useEffect(() => {
101
102
  setVisibileSuggestions(getRandomItems(suggestions, maxToShow));
@@ -7,11 +7,9 @@ import HeaderSearchPopUp from './HeaderSearchPopUp';
7
7
  import '@testing-library/jest-dom';
8
8
 
9
9
  const mockState = {
10
- eeaSettings: {
11
- data: {
12
- header: {
13
- useAISearchIcon: false,
14
- },
10
+ reduxAsyncConnect: {
11
+ headerSettings: {
12
+ useAISearchIcon: false,
15
13
  },
16
14
  },
17
15
  };