@eeacms/volto-cca-policy 0.2.21 → 0.2.23
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,27 @@ 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.2.23](https://github.com/eea/volto-cca-policy/compare/0.2.22...0.2.23) - 14 May 2024
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: remove resolutions, it is ignored anyway [kreafox - [`b525e25`](https://github.com/eea/volto-cca-policy/commit/b525e251ed2063c5bd84a03f205bf7e4bbebb3c4)]
|
|
12
|
+
- fix: add @elastic/search-ui to dependencies [kreafox - [`6627c75`](https://github.com/eea/volto-cca-policy/commit/6627c75a232eb98597953fe833f55f4d2c7183aa)]
|
|
13
|
+
- fix: pin @elastic/search-ui to stable version [kreafox - [`af8bc78`](https://github.com/eea/volto-cca-policy/commit/af8bc78837c5fee48c172e4f10e5e02fe6cbb1a7)]
|
|
14
|
+
- fix: test [kreafox - [`78e2ea0`](https://github.com/eea/volto-cca-policy/commit/78e2ea01efd2e64b8ccc1d1d401f510e5aaa3616)]
|
|
15
|
+
- fix(block): dont show the title if there are no items [kreafox - [`34edd03`](https://github.com/eea/volto-cca-policy/commit/34edd0396d58f8734a765e81c030dd82f23be3ba)]
|
|
16
|
+
|
|
17
|
+
#### :hammer_and_wrench: Others
|
|
18
|
+
|
|
19
|
+
- Pin dependencies [kreafox - [`67dfe0d`](https://github.com/eea/volto-cca-policy/commit/67dfe0d2179e257f2a2c79d2f122e9c6ec3d7014)]
|
|
20
|
+
- Pin @eeacms/volto-eea-website-theme [kreafox - [`8d7ec71`](https://github.com/eea/volto-cca-policy/commit/8d7ec713abbdc77aba915714f27dea932336b155)]
|
|
21
|
+
- Update package.json [kreafox - [`ea67d31`](https://github.com/eea/volto-cca-policy/commit/ea67d315ac968e696aa948a858a23d85d1e1104d)]
|
|
22
|
+
### [0.2.22](https://github.com/eea/volto-cca-policy/compare/0.2.21...0.2.22) - 9 May 2024
|
|
23
|
+
|
|
24
|
+
#### :nail_care: Enhancements
|
|
25
|
+
|
|
26
|
+
- change(views): add link to download event calendar [kreafox - [`fa6f364`](https://github.com/eea/volto-cca-policy/commit/fa6f36420dc432eb5f7b6bf6195d7614a264fb21)]
|
|
27
|
+
|
|
7
28
|
### [0.2.21](https://github.com/eea/volto-cca-policy/compare/0.2.20...0.2.21) - 9 May 2024
|
|
8
29
|
|
|
9
30
|
#### :rocket: New Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-cca-policy",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
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",
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"addons": [
|
|
20
20
|
"@eeacms/volto-openlayers-map",
|
|
21
|
-
"@eeacms/volto-widget-temporal-coverage",
|
|
22
|
-
"@eeacms/volto-widget-geolocation",
|
|
23
|
-
"@eeacms/volto-widget-dataprovenance",
|
|
24
|
-
"@eeacms/volto-accordion-block",
|
|
25
21
|
"@eeacms/volto-slate-label",
|
|
26
22
|
"@eeacms/volto-datablocks",
|
|
27
23
|
"@eeacms/volto-eea-design-system",
|
|
@@ -30,29 +26,26 @@
|
|
|
30
26
|
"@eeacms/volto-globalsearch"
|
|
31
27
|
],
|
|
32
28
|
"dependencies": {
|
|
33
|
-
"@eeacms/volto-
|
|
34
|
-
"@eeacms/volto-block-style": "*",
|
|
29
|
+
"@eeacms/volto-block-style": "^6.1.0",
|
|
35
30
|
"@eeacms/volto-datablocks": "*",
|
|
36
31
|
"@eeacms/volto-eea-design-system": "*",
|
|
37
|
-
"@eeacms/volto-eea-website-theme": "
|
|
38
|
-
"@eeacms/volto-globalsearch": "
|
|
32
|
+
"@eeacms/volto-eea-website-theme": "^1.33.2",
|
|
33
|
+
"@eeacms/volto-globalsearch": "^1.1.0",
|
|
39
34
|
"@eeacms/volto-openlayers-map": "*",
|
|
40
|
-
"@eeacms/volto-searchlib": "
|
|
41
|
-
"@eeacms/volto-slate-label": "
|
|
42
|
-
"@eeacms/volto-tabs-block": "
|
|
43
|
-
"@
|
|
44
|
-
"@eeacms/volto-widget-geolocation": "*",
|
|
45
|
-
"@eeacms/volto-widget-temporal-coverage": "*",
|
|
35
|
+
"@eeacms/volto-searchlib": "^0.9.3",
|
|
36
|
+
"@eeacms/volto-slate-label": "^0.6.0",
|
|
37
|
+
"@eeacms/volto-tabs-block": "^7.5.1",
|
|
38
|
+
"@elastic/search-ui": "1.21.2",
|
|
46
39
|
"d3-array": "^2.12.1",
|
|
47
40
|
"jotai": "^1.6.0",
|
|
48
41
|
"query-string": "7.1.0",
|
|
49
42
|
"react-visibility-sensor": "5.1.1"
|
|
50
43
|
},
|
|
51
44
|
"devDependencies": {
|
|
52
|
-
"cypress": "13.1.0",
|
|
53
45
|
"@cypress/code-coverage": "^3.10.0",
|
|
54
46
|
"@plone/scripts": "*",
|
|
55
47
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
48
|
+
"cypress": "13.1.0",
|
|
56
49
|
"cypress-fail-fast": "^5.0.1",
|
|
57
50
|
"dotenv": "^16.3.2",
|
|
58
51
|
"husky": "^8.0.3",
|
|
@@ -5,7 +5,7 @@ import ContentLinksView from './ContentLinksView';
|
|
|
5
5
|
export default function installBlock(config) {
|
|
6
6
|
config.blocks.blocksConfig.contentLinks = {
|
|
7
7
|
id: 'contentLinks',
|
|
8
|
-
title: 'Content
|
|
8
|
+
title: 'Content Links',
|
|
9
9
|
icon: listSVG,
|
|
10
10
|
group: 'site',
|
|
11
11
|
view: ContentLinksView,
|
|
@@ -22,7 +22,7 @@ const RelevantAceContentView = (props) => {
|
|
|
22
22
|
(list) => list?.length > 0,
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
-
return (
|
|
25
|
+
return (items && items.length > 0) || results.length > 0 ? (
|
|
26
26
|
<div className="block relevant-acecontent-block">
|
|
27
27
|
{title && <h4>{title}</h4>}
|
|
28
28
|
|
|
@@ -69,9 +69,9 @@ const RelevantAceContentView = (props) => {
|
|
|
69
69
|
)}
|
|
70
70
|
</>
|
|
71
71
|
)}
|
|
72
|
-
|
|
73
|
-
{isEdit && <div>Relevant AceContent Block</div>}
|
|
74
72
|
</div>
|
|
73
|
+
) : (
|
|
74
|
+
<>{isEdit && <div>No items</div>}</>
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
77
|
|
|
@@ -4,12 +4,21 @@ import {
|
|
|
4
4
|
PortalMessage,
|
|
5
5
|
} from '@eeacms/volto-cca-policy/components';
|
|
6
6
|
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
7
|
-
import { Grid, Container, Segment } from 'semantic-ui-react';
|
|
8
|
-
import { FormattedMessage } from 'react-intl';
|
|
7
|
+
import { Grid, Container, Segment, Button, Icon } from 'semantic-ui-react';
|
|
8
|
+
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
|
9
9
|
import { SubjectTags, EventDetails } from '@eeacms/volto-cca-policy/helpers';
|
|
10
|
+
import { expandToBackendURL } from '@plone/volto/helpers';
|
|
11
|
+
|
|
12
|
+
const messages = defineMessages({
|
|
13
|
+
downloadEvent: {
|
|
14
|
+
id: 'Download this event in iCal format',
|
|
15
|
+
defaultMessage: 'Download this event in iCal format',
|
|
16
|
+
},
|
|
17
|
+
});
|
|
10
18
|
|
|
11
19
|
function CcaEventView(props) {
|
|
12
20
|
const { content } = props;
|
|
21
|
+
const intl = useIntl();
|
|
13
22
|
|
|
14
23
|
return (
|
|
15
24
|
<div className="cca-event-view">
|
|
@@ -41,6 +50,26 @@ function CcaEventView(props) {
|
|
|
41
50
|
</p>
|
|
42
51
|
</>
|
|
43
52
|
)}
|
|
53
|
+
|
|
54
|
+
<div className="download-event">
|
|
55
|
+
<a
|
|
56
|
+
className="ics-download"
|
|
57
|
+
target="_blank"
|
|
58
|
+
rel="noreferrer"
|
|
59
|
+
href={`${expandToBackendURL(content['@id'])}/ics_view`}
|
|
60
|
+
>
|
|
61
|
+
<Button
|
|
62
|
+
className="icon inverted primary labeled"
|
|
63
|
+
title={intl.formatMessage(messages.downloadEvent)}
|
|
64
|
+
>
|
|
65
|
+
<Icon name="calendar alternate outline" />
|
|
66
|
+
<FormattedMessage
|
|
67
|
+
id="Download Event"
|
|
68
|
+
defaultMessage="Download Event"
|
|
69
|
+
/>
|
|
70
|
+
</Button>
|
|
71
|
+
</a>
|
|
72
|
+
</div>
|
|
44
73
|
</Segment>
|
|
45
74
|
</Grid.Column>
|
|
46
75
|
</Grid.Row>
|