@eeacms/volto-cca-policy 0.3.11 → 0.3.13

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,24 @@ 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.13](https://github.com/eea/volto-cca-policy/compare/0.3.12...0.3.13) - 5 March 2025
8
+
9
+ #### :rocket: Dependency updates
10
+
11
+ - Release @eeacms/volto-searchlib@2.0.12 [EEA Jenkins - [`9ac289c`](https://github.com/eea/volto-cca-policy/commit/9ac289c5758e11fbb81900623bd5d60179eec718)]
12
+
13
+ #### :nail_care: Enhancements
14
+
15
+ - change(menu): adjust menu columns - refs #272268 [kreafox - [`d64cbbd`](https://github.com/eea/volto-cca-policy/commit/d64cbbdb9adeff84feac58e47c94f0fb05b208a0)]
16
+
17
+ ### [0.3.12](https://github.com/eea/volto-cca-policy/compare/0.3.11...0.3.12) - 24 February 2025
18
+
19
+ #### :bug: Bug Fixes
20
+
21
+ - fix(style): prevent column break in main menu [kreafox - [`3fb7a9f`](https://github.com/eea/volto-cca-policy/commit/3fb7a9f8347e229acb896bd807fb658570ff615f)]
22
+ - fix(listing): code cleanup [kreafox - [`19d48f3`](https://github.com/eea/volto-cca-policy/commit/19d48f33afcbab5de0475c145fedb9c4121e397c)]
23
+ - fix(listing): remove organisation logo from mission events - refs #271085 [kreafox - [`4e6c459`](https://github.com/eea/volto-cca-policy/commit/4e6c4592d434c626b1e4fc0ddffdf8814a83c318)]
24
+
7
25
  ### [0.3.11](https://github.com/eea/volto-cca-policy/compare/0.3.10...0.3.11) - 21 February 2025
8
26
 
9
27
  #### :rocket: Dependency updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
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.8",
36
36
  "@eeacms/volto-hero-block": "^7.1.0",
37
37
  "@eeacms/volto-openlayers-map": "*",
38
- "@eeacms/volto-searchlib": "2.0.11",
38
+ "@eeacms/volto-searchlib": "2.0.12",
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,14 +1,14 @@
1
1
  import React from 'react';
2
- import { compose } from 'redux';
3
2
  import PropTypes from 'prop-types';
4
3
  import { FormattedMessage } from 'react-intl';
5
- import { connect, useSelector } from 'react-redux';
4
+ import { useSelector } from 'react-redux';
6
5
  import { Card, Grid, Icon, Label, Image } from 'semantic-ui-react';
7
6
  import { ConditionalLink, UniversalLink } from '@plone/volto/components';
8
7
  import { When } from '@plone/volto/components/theme/View/EventDatesInfo';
9
- import eeaLogo from '@eeacms/volto-cca-policy/../theme/assets/images/eea-logo.svg';
10
8
  import { capitalizeFirstLetter } from '@eeacms/volto-cca-policy/helpers';
11
9
  import config from '@plone/volto/registry';
10
+
11
+ import eeaLogo from '@eeacms/volto-cca-policy/../theme/assets/images/eea-logo.svg';
12
12
  import './styles.less';
13
13
 
14
14
  const goToContact = (contactInfo) =>
@@ -97,10 +97,11 @@ const BottomInfo = ({ item, isEditMode }) => {
97
97
  const { '@type': itemType, event_url, subjects, contact_email } = item || {};
98
98
  const isCcaEventType = itemType === 'cca-event';
99
99
  const isExternal = event_url && !event_url.includes(config.settings.apiPath);
100
+ const isMissionEvent = item['@id'].includes('/en/mission');
100
101
 
101
102
  return (
102
103
  <>
103
- {(!isExternal || isCcaEventType) && (
104
+ {!isMissionEvent && (!isExternal || isCcaEventType) && (
104
105
  <div className="event-organisation">
105
106
  <FormattedMessage
106
107
  id="Organised by EEA"
@@ -166,8 +167,4 @@ EventCardsListingView.propTypes = {
166
167
  isEditMode: PropTypes.bool,
167
168
  };
168
169
 
169
- export default compose(
170
- connect((state) => ({
171
- token: state.userSession.token,
172
- })),
173
- )(EventCardsListingView);
170
+ export default EventCardsListingView;
@@ -1,10 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { connect } from 'react-redux';
4
- import { compose } from 'redux';
5
- import cx from 'classnames';
6
3
  import { ConditionalLink } from '@plone/volto/components';
7
4
  import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers';
5
+
8
6
  import './styles.less';
9
7
 
10
8
  const fixedTitles = {
@@ -16,14 +14,11 @@ const fixTitle = (title) => {
16
14
  return fixedTitles[title] || title;
17
15
  };
18
16
 
19
- const IndicatorCardsListingView = ({ items, isEditMode, token }) => {
17
+ const IndicatorCardsListingView = ({ items, isEditMode }) => {
20
18
  return (
21
- <div className={cx('ui fluid indicatorCards')}>
19
+ <div className="ui fluid indicatorCards">
22
20
  {items.map((item, index) => (
23
- <div
24
- className={cx('u-item listing-item simple-listing-item')}
25
- key={item['@id']}
26
- >
21
+ <div className="u-item listing-item simple-listing-item" key={index}>
27
22
  <div className="wrapper">
28
23
  <div className="slot-top">
29
24
  <ConditionalLink
@@ -31,7 +26,7 @@ const IndicatorCardsListingView = ({ items, isEditMode, token }) => {
31
26
  condition={!isEditMode}
32
27
  >
33
28
  <div className="listing-body">
34
- <h4 className={'listing-header'}>
29
+ <h4 className="listing-header">
35
30
  {item.title ? item.title : item.id}
36
31
  </h4>
37
32
  </div>
@@ -61,8 +56,4 @@ IndicatorCardsListingView.propTypes = {
61
56
  isEditMode: PropTypes.bool,
62
57
  };
63
58
 
64
- export default compose(
65
- connect((state) => ({
66
- token: state.userSession.token,
67
- })),
68
- )(IndicatorCardsListingView);
59
+ export default IndicatorCardsListingView;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { makeContributionsSearchQuery } from '@eeacms/volto-cca-policy/helpers';
4
3
  import { UniversalLink } from '@plone/volto/components';
4
+ import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
5
+ import { makeContributionsSearchQuery } from '@eeacms/volto-cca-policy/helpers';
5
6
 
6
7
  import './styles.less';
7
- import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
8
8
 
9
9
  const messages = defineMessages({
10
10
  website: {
@@ -19,7 +19,7 @@ const OrganisationCardsListingView = ({ items }) => {
19
19
  return (
20
20
  <div className="ui fluid four cards">
21
21
  {items.map((item, index) => (
22
- <div className="ui fluid card u-card" key={item['@id']}>
22
+ <div className="ui fluid card u-card" key={index}>
23
23
  <div className="content">
24
24
  <div className="header">
25
25
  <UniversalLink className="image" href={item['@id']}>
@@ -34,7 +34,7 @@ div.organisationCards {
34
34
  // Indicators Cards Listing
35
35
  div.indicatorCards {
36
36
  a {
37
- color: #006bb8 !important;
37
+ color: @linkColor !important;
38
38
  }
39
39
 
40
40
  h4 {
@@ -91,10 +91,6 @@ div.indicatorCards {
91
91
  justify-content: flex-start;
92
92
  gap: 1em;
93
93
 
94
- .sep {
95
- color: #ddd;
96
- }
97
-
98
94
  .email-info {
99
95
  display: flex;
100
96
  align-items: center;
@@ -125,7 +121,6 @@ div.indicatorCards {
125
121
  align-items: center;
126
122
  margin: 1em 0;
127
123
  gap: 0.5em;
128
- // flex-direction: column;
129
124
  }
130
125
  }
131
126
  }
package/src/index.js CHANGED
@@ -428,7 +428,7 @@ const applyConfig = (config) => {
428
428
  'six wide column',
429
429
  'two wide column',
430
430
  ],
431
- menuItemChildrenListColumns: [1, 1, 4, 1],
431
+ menuItemChildrenListColumns: [1, 1, 3, 1],
432
432
  },
433
433
  '/en/observatory/evidence': {
434
434
  menuItemColumns: [
@@ -437,7 +437,7 @@ const applyConfig = (config) => {
437
437
  'two wide column',
438
438
  'two wide column',
439
439
  ],
440
- menuItemChildrenListColumns: [4, 1, 1, 1],
440
+ menuItemChildrenListColumns: [2, 1, 1, 1],
441
441
  },
442
442
  };
443
443
 
@@ -8,11 +8,6 @@
8
8
  @import './blocks.less';
9
9
  @import './print.less';
10
10
 
11
- // [class~='view-defaultview'] [id='page-document'] > *,
12
- // [class~='view-viewview'] [id='page-document'] > * {
13
- // --container-text-width: 628px;
14
- // }
15
-
16
11
  @subsiteBackgroundGradient: linear-gradient(
17
12
  248.86deg,
18
13
  @green-1 24.22%,
@@ -237,3 +232,11 @@ iframe {
237
232
  }
238
233
  }
239
234
  }
235
+
236
+ #mega-menu {
237
+ .ui.list.has--4--columns {
238
+ a.item {
239
+ break-inside: avoid-column;
240
+ }
241
+ }
242
+ }