@eeacms/volto-cca-policy 0.3.33 → 0.3.34

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
+ ### [0.3.34](https://github.com/eea/volto-cca-policy/compare/0.3.33...0.3.34) - 6 May 2025
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: production crash by using safe Item subcomponent access [kreafox - [`2e7b86e`](https://github.com/eea/volto-cca-policy/commit/2e7b86ee37834c316ac38813415b77f34c0ae92f)]
12
+
7
13
  ### [0.3.33](https://github.com/eea/volto-cca-policy/compare/0.3.32...0.3.33) - 5 May 2025
8
14
 
9
15
  #### :rocket: Dependency updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.33",
3
+ "version": "0.3.34",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,12 +1,5 @@
1
1
  import React from 'react';
2
- import {
3
- Tab,
4
- Image,
5
- Segment,
6
- Item,
7
- ItemGroup,
8
- ItemContent,
9
- } from 'semantic-ui-react';
2
+ import { Tab, Image, Segment, Item } from 'semantic-ui-react';
10
3
  import { Callout } from '@eeacms/volto-eea-design-system/ui';
11
4
  import AccordionList from '../AccordionList';
12
5
 
@@ -16,14 +9,14 @@ const ItemsSection = ({ items }) => {
16
9
  if (!items?.length) return null;
17
10
 
18
11
  return (
19
- <ItemGroup className="items-group">
12
+ <Item.Group className="items-group">
20
13
  {items.map((item, index) => (
21
14
  <Item key={index}>
22
15
  <Image size="small" src={image} />
23
- <ItemContent verticalAlign="middle">{item.Factor}</ItemContent>
16
+ <Item.Content verticalAlign="middle">{item.Factor}</Item.Content>
24
17
  </Item>
25
18
  ))}
26
- </ItemGroup>
19
+ </Item.Group>
27
20
  );
28
21
  };
29
22
 
@@ -1,14 +1,5 @@
1
1
  import React from 'react';
2
- import {
3
- Tab,
4
- Message,
5
- Segment,
6
- Grid,
7
- Item,
8
- ItemGroup,
9
- ItemContent,
10
- Image,
11
- } from 'semantic-ui-react';
2
+ import { Tab, Message, Segment, Grid, Item, Image } from 'semantic-ui-react';
12
3
  import { Callout } from '@eeacms/volto-eea-design-system/ui';
13
4
  import { HTMLField } from '@eeacms/volto-cca-policy/helpers';
14
5
  import {
@@ -22,14 +13,14 @@ const ItemsSection = ({ items }) => {
22
13
  if (!items?.length) return null;
23
14
 
24
15
  return (
25
- <ItemGroup className="items-group">
16
+ <Item.Group className="items-group">
26
17
  {items.map((sector, index) => (
27
18
  <Item key={index}>
28
19
  <Image size="small" src={image} />
29
- <ItemContent verticalAlign="middle">{sector}</ItemContent>
20
+ <Item.Content verticalAlign="middle">{sector}</Item.Content>
30
21
  </Item>
31
22
  ))}
32
- </ItemGroup>
23
+ </Item.Group>
33
24
  );
34
25
  };
35
26