@eeacms/volto-cca-policy 0.3.99 → 0.3.101
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 +32 -0
- package/package.json +3 -3
- package/src/components/manage/Blocks/CountryMapProfile/OLView.jsx +1 -1
- package/src/components/manage/Blocks/CountryMapProfile/styles.less +2 -2
- package/src/components/theme/Views/BrokenLinks.jsx +4 -2
- package/src/constants.js +48 -0
- package/src/customizations/volto/components/theme/View/View.jsx +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,38 @@ 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.101](https://github.com/eea/volto-cca-policy/compare/0.3.100...0.3.101) - 28 January 2026
|
|
8
|
+
|
|
9
|
+
#### :rocket: Dependency updates
|
|
10
|
+
|
|
11
|
+
- Release @eeacms/volto-globalsearch@3.0.0 [EEA Jenkins - [`62c50cf`](https://github.com/eea/volto-cca-policy/commit/62c50cff99907900980ad7f71a46091207fa3a23)]
|
|
12
|
+
|
|
13
|
+
#### :bug: Bug Fixes
|
|
14
|
+
|
|
15
|
+
- fix: external url redirection - refs #297070 [kreafox - [`f113128`](https://github.com/eea/volto-cca-policy/commit/f113128b1d1b41c5b935be06b9c8951a3ac0fc17)]
|
|
16
|
+
|
|
17
|
+
#### :house: Internal changes
|
|
18
|
+
|
|
19
|
+
- style: use semantic UI input on broken links view [kreafox - [`417fd36`](https://github.com/eea/volto-cca-policy/commit/417fd36c5470bf5019e53998774545b03f202137)]
|
|
20
|
+
|
|
21
|
+
### [0.3.100](https://github.com/eea/volto-cca-policy/compare/0.3.99...0.3.100) - 21 January 2026
|
|
22
|
+
|
|
23
|
+
#### :rocket: Dependency updates
|
|
24
|
+
|
|
25
|
+
- Release @eeacms/volto-searchlib@3.0.0 [EEA Jenkins - [`e92a121`](https://github.com/eea/volto-cca-policy/commit/e92a121e00e3e2092614d11754f569c6149535e2)]
|
|
26
|
+
|
|
27
|
+
#### :bug: Bug Fixes
|
|
28
|
+
|
|
29
|
+
- fix: typo [kreafox - [`caecae1`](https://github.com/eea/volto-cca-policy/commit/caecae197c46a0a53bfde15004e624a82bef2a3b)]
|
|
30
|
+
- fix: long gap in blocks chooser - refs #296754 [kreafox - [`de50c33`](https://github.com/eea/volto-cca-policy/commit/de50c333d68b0faed7be373f1ae4beebbb9f5d1d)]
|
|
31
|
+
|
|
32
|
+
#### :nail_care: Enhancements
|
|
33
|
+
|
|
34
|
+
- refactor: add commented-out download fields for mission content types [kreafox - [`7b46f70`](https://github.com/eea/volto-cca-policy/commit/7b46f7016e18dd473689729af867fd9f2c08aa38)]
|
|
35
|
+
|
|
36
|
+
#### :hammer_and_wrench: Others
|
|
37
|
+
|
|
38
|
+
- core: pin volto-searchlib to stable version [kreafox - [`47b54fc`](https://github.com/eea/volto-cca-policy/commit/47b54fc27f3f4cff632c143d3626dc2c38f92f47)]
|
|
7
39
|
### [0.3.99](https://github.com/eea/volto-cca-policy/compare/0.3.98...0.3.99) - 19 January 2026
|
|
8
40
|
|
|
9
41
|
#### :rocket: Dependency updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-cca-policy",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.101",
|
|
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",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@eeacms/volto-eea-design-system": "*",
|
|
33
33
|
"@eeacms/volto-eea-website-theme": "*",
|
|
34
34
|
"@eeacms/volto-embed": "*",
|
|
35
|
-
"@eeacms/volto-globalsearch": "
|
|
35
|
+
"@eeacms/volto-globalsearch": "3.0.0",
|
|
36
36
|
"@eeacms/volto-openlayers-map": "1.0.1",
|
|
37
|
-
"@eeacms/volto-searchlib": "2.1.10",
|
|
37
|
+
"@eeacms/volto-searchlib": "^2.1.10",
|
|
38
38
|
"@eeacms/volto-slate-label": "1.0.1",
|
|
39
39
|
"@eeacms/volto-tabs-block": "9.0.3",
|
|
40
40
|
"@elastic/search-ui": "1.21.2",
|
|
@@ -165,7 +165,7 @@ const View = (props) => {
|
|
|
165
165
|
export default compose(
|
|
166
166
|
clientOnly,
|
|
167
167
|
withGeoJsonData(true),
|
|
168
|
-
withResponsiveContainer('
|
|
168
|
+
withResponsiveContainer('countryMapProfileBlock'),
|
|
169
169
|
withVisibilitySensor(),
|
|
170
170
|
withOpenLayers,
|
|
171
171
|
)(View);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@height: 600px;
|
|
2
2
|
@fpHeight: 450px;
|
|
3
3
|
|
|
4
|
-
.
|
|
4
|
+
.countryMapProfileBlock {
|
|
5
5
|
height: @height;
|
|
6
6
|
min-height: @height;
|
|
7
7
|
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
.cca-main-homepage .tabs-block {
|
|
302
|
-
.
|
|
302
|
+
.countryMapProfileBlock {
|
|
303
303
|
min-height: @fpHeight;
|
|
304
304
|
|
|
305
305
|
.ol-map-wrapper,
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
TableHeader,
|
|
10
10
|
TableHeaderCell,
|
|
11
11
|
TableRow,
|
|
12
|
+
Input,
|
|
12
13
|
} from 'semantic-ui-react';
|
|
13
14
|
|
|
14
15
|
function Filter({ column }) {
|
|
@@ -80,6 +81,7 @@ function DebouncedInput({
|
|
|
80
81
|
value: initialValue,
|
|
81
82
|
onChange,
|
|
82
83
|
debounce = 500,
|
|
84
|
+
className,
|
|
83
85
|
...props
|
|
84
86
|
}) {
|
|
85
87
|
const [value, setValue] = React.useState(initialValue);
|
|
@@ -97,10 +99,10 @@ function DebouncedInput({
|
|
|
97
99
|
}, [value, debounce, onChange]);
|
|
98
100
|
|
|
99
101
|
return (
|
|
100
|
-
<
|
|
102
|
+
<Input
|
|
101
103
|
{...props}
|
|
102
104
|
value={value}
|
|
103
|
-
onChange={(
|
|
105
|
+
onChange={(_, data) => setValue(data.value)}
|
|
104
106
|
/>
|
|
105
107
|
);
|
|
106
108
|
}
|
package/src/constants.js
CHANGED
|
@@ -88,6 +88,54 @@ export const download_mission_funding_fields = [
|
|
|
88
88
|
},
|
|
89
89
|
];
|
|
90
90
|
|
|
91
|
+
// Download fields for mission content types
|
|
92
|
+
// Don't delete - might be needed later (ticket refs #295149)
|
|
93
|
+
// export const download_mission_stories_fields = [
|
|
94
|
+
// { field: 'about', name: 'About' },
|
|
95
|
+
// { field: 'title', name: 'Title' },
|
|
96
|
+
// { field: 'main_content', name: 'Content' },
|
|
97
|
+
// { field: 'created', name: 'Creation Date' },
|
|
98
|
+
// { field: 'issued', name: 'Issued Date' },
|
|
99
|
+
// { field: 'cca_climate_impacts', name: 'Climate impact' },
|
|
100
|
+
// { field: 'cca_adaptation_sectors', name: 'Sectors' },
|
|
101
|
+
// { field: 'key_system', name: 'Key Community Systems' },
|
|
102
|
+
// { field: 'cca_funding_programme', name: 'Funding programme' },
|
|
103
|
+
// {
|
|
104
|
+
// field: 'spatial',
|
|
105
|
+
// name: 'Countries ',
|
|
106
|
+
// },
|
|
107
|
+
// { field: 'cca_keywords', name: 'Keywords' },
|
|
108
|
+
// ];
|
|
109
|
+
|
|
110
|
+
// export const download_mission_projects_fields = [
|
|
111
|
+
// { field: 'about', name: 'About' },
|
|
112
|
+
// { field: 'title', name: 'Title' },
|
|
113
|
+
// { field: 'main_content', name: 'Content' },
|
|
114
|
+
// { field: 'created', name: 'Creation Date' },
|
|
115
|
+
// { field: 'issued', name: 'Issued Date' },
|
|
116
|
+
// { field: 'cca_keywords', name: 'Keywords' },
|
|
117
|
+
// { field: 'cca_funding_programme', name: 'Funding Programme' },
|
|
118
|
+
// { field: 'cca_climate_impacts', name: 'Climate impact' },
|
|
119
|
+
// { field: 'cca_adaptation_elements', name: 'Adaptation Approaches' },
|
|
120
|
+
// { field: 'cca_adaptation_sectors', name: 'Sectors' },
|
|
121
|
+
// { field: 'cca_geographic_countries', name: 'Countries' },
|
|
122
|
+
// ];
|
|
123
|
+
|
|
124
|
+
// export const download_mission_tools_fields = [
|
|
125
|
+
// { field: 'about', name: 'About' },
|
|
126
|
+
// { field: 'title', name: 'Title' },
|
|
127
|
+
// { field: 'main_content', name: 'Content' },
|
|
128
|
+
// { field: 'created', name: 'Creation Date' },
|
|
129
|
+
// { field: 'issued', name: 'Issued Date' },
|
|
130
|
+
// { field: 'cca_rast_steps', name: 'RAST step(s) of relevance' },
|
|
131
|
+
// { field: 'cca_geographical_scale', name: 'Geographical scale' },
|
|
132
|
+
// { field: 'cca_climate_impacts', name: 'Climate impact' },
|
|
133
|
+
// { field: 'cca_tool_language', name: 'Language(s) of the tool' },
|
|
134
|
+
// { field: 'cca_adaptation_sectors', name: 'Sectors' },
|
|
135
|
+
// { field: 'cca_most_useful_for', name: 'Most useful for' },
|
|
136
|
+
// { field: 'cca_user_requirements', name: 'User requirements' },
|
|
137
|
+
// ];
|
|
138
|
+
|
|
91
139
|
export const eea_languages = [
|
|
92
140
|
{ name: 'български', code: 'bg' },
|
|
93
141
|
{ name: 'Español', code: 'es' },
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
flattenToAppURL,
|
|
27
27
|
getLayoutFieldname,
|
|
28
28
|
hasApiExpander,
|
|
29
|
+
isInternalURL,
|
|
29
30
|
} from '@plone/volto/helpers';
|
|
30
31
|
|
|
31
32
|
import config from '@plone/volto/registry';
|
|
@@ -216,6 +217,18 @@ class View extends Component {
|
|
|
216
217
|
});
|
|
217
218
|
|
|
218
219
|
if (redirectData) {
|
|
220
|
+
const isExternal = !isInternalURL(redirectData.url);
|
|
221
|
+
|
|
222
|
+
if (isExternal) {
|
|
223
|
+
if (this.props.staticContext) {
|
|
224
|
+
this.props.staticContext.error_code = redirectData.status || 302;
|
|
225
|
+
this.props.staticContext.url = redirectData.url;
|
|
226
|
+
} else if (typeof window !== 'undefined') {
|
|
227
|
+
window.location.replace(redirectData.url);
|
|
228
|
+
}
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
|
|
219
232
|
const redirect = flattenToAppURL(redirectData.url)
|
|
220
233
|
.replace('/++api++', '')
|
|
221
234
|
.replaceAll('//', '/')
|