@eeacms/volto-cca-policy 0.3.108 → 0.3.109

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,14 @@ 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.109](https://github.com/eea/volto-cca-policy/compare/0.3.108...0.3.109) - 1 April 2026
8
+
9
+ #### :nail_care: Enhancements
10
+
11
+ - change: update gridBlock configuration - refs #302003 [kreafox - [`86e8002`](https://github.com/eea/volto-cca-policy/commit/86e80026e0f5bda7d0dd137aeeac0ebe2bef9063)]
12
+ - change: add info message on AdaptationOptionView - refs #296805 [kreafox - [`e7a8710`](https://github.com/eea/volto-cca-policy/commit/e7a8710d74b235a5254b938549dcf781343a7793)]
13
+ - refactor: move blocks configuration [kreafox - [`34f9415`](https://github.com/eea/volto-cca-policy/commit/34f94157d77524f57c2f7d2b7ab98d40f424c6a6)]
14
+
7
15
  ### [0.3.108](https://github.com/eea/volto-cca-policy/compare/0.3.107...0.3.108) - 31 March 2026
8
16
 
9
17
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.108",
3
+ "version": "0.3.109",
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,4 +1,5 @@
1
1
  import { compose } from 'redux';
2
+ import { blockAvailableInMission } from '@eeacms/volto-cca-policy/utils';
2
3
 
3
4
  import installECDEIndicatorsBlock from './ECDEIndicators';
4
5
  import installCaseStudyExplorerBlock from './CaseStudyExplorer';
@@ -21,14 +22,46 @@ import installContentLinks from './ContentLinks';
21
22
  import installASTNavigation from './ASTNavigation';
22
23
  import installFlourishEmbedBlock from './FlourishEmbedBlock';
23
24
  import installDataConnectedEmbed from './DataConnectedEmbedBlock';
24
-
25
- // import installCountryMapHeatIndex from './CountryMapHeatIndex';
26
25
  import installCountryMapProfile from './CountryMapProfile';
27
26
 
28
27
  export default function installBlocks(config) {
29
28
  config.blocks.blocksConfig.title.restricted = false;
30
29
  config.blocks.blocksConfig.layoutSettings.restricted = false;
31
30
 
31
+ if (config.blocks.blocksConfig.maps) {
32
+ config.blocks.blocksConfig.maps.restricted = false;
33
+ }
34
+
35
+ if (config.blocks.blocksConfig.layoutSettings) {
36
+ config.blocks.blocksConfig.layoutSettings.blockHasOwnFocusManagement = false;
37
+ }
38
+
39
+ if (config.blocks.blocksConfig.video) {
40
+ config.blocks.blocksConfig.video.restricted = false;
41
+ }
42
+
43
+ config.blocks.blocksConfig.nextCloudVideo = {
44
+ ...config.blocks.blocksConfig.nextCloudVideo,
45
+ whiteList: [
46
+ 'https://cmshare.eea.europa.eu',
47
+ 'https://shareit.eea.europa.eu',
48
+ ],
49
+ };
50
+
51
+ if (config.blocks.blocksConfig.countryFlag) {
52
+ config.blocks.blocksConfig.countryFlag = {
53
+ ...config.blocks.blocksConfig.countryFlag,
54
+ restricted: ({ properties, block }) => {
55
+ return blockAvailableInMission(properties, block);
56
+ },
57
+ };
58
+ }
59
+
60
+ config.blocks.blocksConfig.gridBlock = {
61
+ ...config.blocks.blocksConfig.gridBlock,
62
+ maxLength: 6,
63
+ };
64
+
32
65
  // override the noResultsComponent to avoid the "No results" text
33
66
  config.blocks.blocksConfig['listing'].noResultsComponent = () => null;
34
67
 
@@ -55,7 +88,5 @@ export default function installBlocks(config) {
55
88
  installCountryMapProfile,
56
89
  installFlourishEmbedBlock,
57
90
  installDataConnectedEmbed,
58
- // installMKHMap,
59
- // installCountryMapHeatIndex,
60
91
  )(config);
61
92
  }
@@ -184,6 +184,17 @@ function AdaptationOptionView(props) {
184
184
 
185
185
  <Container>
186
186
  <PortalMessage content={content} />
187
+
188
+ <div className="styled-group info-section">
189
+ <p>
190
+ <span className="small-text">
191
+ This page is currently under construction, so it may look a bit
192
+ different than you're used to. We're in the process of preparing a
193
+ new layout to improve your experience. A fresh new look for the
194
+ adaptation options pages is coming soon.
195
+ </span>
196
+ </p>
197
+ </div>
187
198
  <Grid>
188
199
  <Grid.Row columns={12}>
189
200
  <Grid.Column
package/src/index.js CHANGED
@@ -11,7 +11,6 @@ import {
11
11
  MissionSignatoryProfileView,
12
12
  ImageWidget,
13
13
  } from '@eeacms/volto-cca-policy/components';
14
- import { blockAvailableInMission } from '@eeacms/volto-cca-policy/utils';
15
14
 
16
15
  import CcaEventView from './components/theme/Views/CcaEventView';
17
16
  import NewsItemView from './components/theme/Views/NewsItemView';
@@ -312,30 +311,6 @@ const applyConfig = (config) => {
312
311
  websiteTitle: 'Climate-ADAPT',
313
312
  };
314
313
 
315
- // Enable volto-embed
316
- if (config.blocks.blocksConfig.maps) {
317
- config.blocks.blocksConfig.maps.restricted = false;
318
- }
319
-
320
- if (config.blocks.blocksConfig.layoutSettings) {
321
- config.blocks.blocksConfig.layoutSettings.blockHasOwnFocusManagement = false;
322
- }
323
-
324
- // Enable video
325
- if (config.blocks.blocksConfig.video) {
326
- config.blocks.blocksConfig.video.restricted = false;
327
- }
328
-
329
- // Disable blocks on Mission
330
- if (config.blocks.blocksConfig.countryFlag) {
331
- config.blocks.blocksConfig.countryFlag = {
332
- ...config.blocks.blocksConfig.countryFlag,
333
- restricted: ({ properties, block }) => {
334
- return blockAvailableInMission(properties, block);
335
- },
336
- };
337
- }
338
-
339
314
  const { facetWidgets } = config.blocks.blocksConfig.search.extensions;
340
315
  const { rewriteOptions } = facetWidgets;
341
316
  const origin_website_blacklist = ['AdapteCCA', 'DRMKC'];
@@ -372,14 +347,6 @@ const applyConfig = (config) => {
372
347
  }
373
348
  }
374
349
 
375
- config.blocks.blocksConfig.nextCloudVideo = {
376
- ...config.blocks.blocksConfig.nextCloudVideo,
377
- whiteList: [
378
- 'https://cmshare.eea.europa.eu',
379
- 'https://shareit.eea.europa.eu',
380
- ],
381
- };
382
-
383
350
  config.blocks.groupBlocksOrder.push({ id: 'site', title: 'Site' });
384
351
 
385
352
  config.views.contentTypesViews = {
@@ -416,3 +416,18 @@ iframe {
416
416
  text-align: left;
417
417
  }
418
418
  }
419
+
420
+ .info-section {
421
+ padding: 0.7rem;
422
+ margin-top: 0 !important;
423
+ margin-bottom: 1.5em !important;
424
+ background-color: #f9f9f9;
425
+ box-shadow:
426
+ 0px 0px 0px 1px #d2d2d2 inset,
427
+ 0px 0px 0px 0px rgba(0, 0, 0, 0);
428
+
429
+ p,
430
+ p .small-text {
431
+ font-size: 15px !important;
432
+ }
433
+ }