@eeacms/volto-cca-policy 0.3.32 → 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,23 @@ 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
+
13
+ ### [0.3.33](https://github.com/eea/volto-cca-policy/compare/0.3.32...0.3.33) - 5 May 2025
14
+
15
+ #### :rocket: Dependency updates
16
+
17
+ - Release @eeacms/volto-searchlib@2.0.16 [EEA Jenkins - [`dba0f63`](https://github.com/eea/volto-cca-policy/commit/dba0f63b7800d064f16b7f7a4278b3a820c71591)]
18
+
19
+ #### :nail_care: Enhancements
20
+
21
+ - change: update tests - refs #287273 [kreafox - [`c79837c`](https://github.com/eea/volto-cca-policy/commit/c79837c907c5d4daecede23dcfe5ab93f7232a01)]
22
+ - change: remove Introduction tab - refs #287273 [kreafox - [`4791f04`](https://github.com/eea/volto-cca-policy/commit/4791f0410b5abaf3bb25b325a268b4868f801215)]
23
+
7
24
  ### [0.3.32](https://github.com/eea/volto-cca-policy/compare/0.3.31...0.3.32) - 30 April 2025
8
25
 
9
26
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.32",
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",
@@ -35,7 +35,7 @@
35
35
  "@eeacms/volto-globalsearch": "2.0.11",
36
36
  "@eeacms/volto-hero-block": "^7.1.0",
37
37
  "@eeacms/volto-openlayers-map": "*",
38
- "@eeacms/volto-searchlib": "2.0.15",
38
+ "@eeacms/volto-searchlib": "2.0.16",
39
39
  "@eeacms/volto-slate-label": "^0.6.0",
40
40
  "@eeacms/volto-tabs-block": "^7.5.1",
41
41
  "@elastic/search-ui": "1.21.2",
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Tab, Container } from 'semantic-ui-react';
3
3
  import { BannerTitle } from '@eeacms/volto-cca-policy/helpers';
4
- import IntroductionTab from './TabSections/IntroductionTab';
5
4
  import GovernanceTab from './TabSections/GovernanceTab';
6
5
  import AssessmentTab from './TabSections/AssessmentTab';
7
6
  import PlanningTab from './TabSections/PlanningTab';
@@ -53,10 +52,6 @@ const MissionSignatoryProfileView = (props) => {
53
52
  activeIndex={activeIndex}
54
53
  onTabChange={(e, { activeIndex }) => setActiveIndex(activeIndex)}
55
54
  panes={[
56
- {
57
- menuItem: 'Introduction',
58
- render: () => <IntroductionTab activeIndex={activeIndex} />,
59
- },
60
55
  {
61
56
  menuItem: 'Governance',
62
57
  render: () => <GovernanceTab result={governance} />,
@@ -4,9 +4,6 @@ import '@testing-library/jest-dom';
4
4
  import MissionSignatoryProfileView from './MissionSignatoryProfileView';
5
5
 
6
6
  // Mock the tab components with minimal placeholders
7
- jest.mock('./TabSections/IntroductionTab', () => () => (
8
- <div>Mocked Introduction</div>
9
- ));
10
7
  jest.mock('./TabSections/GovernanceTab', () => () => (
11
8
  <div>Mocked Governance</div>
12
9
  ));
@@ -33,14 +30,10 @@ describe('MissionSignatoryProfileView', () => {
33
30
  render(<MissionSignatoryProfileView data={data} />);
34
31
 
35
32
  // Tab labels
36
- expect(screen.getByText('Introduction')).toBeInTheDocument();
37
33
  expect(screen.getByText('Governance')).toBeInTheDocument();
38
34
  expect(screen.getByText('Assessment')).toBeInTheDocument();
39
35
  expect(screen.getByText('Planning')).toBeInTheDocument();
40
36
  expect(screen.getByText('Action')).toBeInTheDocument();
41
-
42
- // Default selected tab content (Introduction)
43
- expect(screen.getByText('Mocked Introduction')).toBeInTheDocument();
44
37
  });
45
38
 
46
39
  it('switches tabs and renders corresponding content', () => {
@@ -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