@eeacms/volto-tableau 4.1.0 → 5.0.0
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 +13 -3
- package/Jenkinsfile +1 -1
- package/package.json +1 -4
- package/src/Views/VisualizationView.jsx +18 -12
- package/src/Widgets/VisualizationViewWidget.jsx +20 -0
- package/src/Widgets/index.js +2 -1
- package/src/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,21 @@ 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
|
-
### [
|
|
7
|
+
### [5.0.0](https://github.com/eea/volto-tableau/compare/4.1.1...5.0.0) - 25 July 2023
|
|
8
|
+
|
|
9
|
+
#### :nail_care: Enhancements
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
- refactor: remove countup - refs #254634 [dobri1408 - [`8f08d1a`](https://github.com/eea/volto-tableau/commit/8f08d1ae5e4612a706cdb2f487db81b6b20a9c4f)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
10
14
|
|
|
11
|
-
-
|
|
15
|
+
- Release 5.0.0 [Alin Voinea - [`97c98e9`](https://github.com/eea/volto-tableau/commit/97c98e98b1295a4ad45756326dc20cd59517515f)]
|
|
16
|
+
### [4.1.1](https://github.com/eea/volto-tableau/compare/4.1.0...4.1.1) - 21 July 2023
|
|
17
|
+
|
|
18
|
+
#### :hammer_and_wrench: Others
|
|
19
|
+
|
|
20
|
+
- Add VisualizationViewWidget [Tiberiu Ichim - [`fa881cb`](https://github.com/eea/volto-tableau/commit/fa881cbc3643a46697fb16d1c86ada1d4121a46a)]
|
|
21
|
+
### [4.1.0](https://github.com/eea/volto-tableau/compare/4.0.0...4.1.0) - 15 June 2023
|
|
12
22
|
|
|
13
23
|
## [4.0.0](https://github.com/eea/volto-tableau/compare/3.0.8...4.0.0) - 13 June 2023
|
|
14
24
|
|
package/Jenkinsfile
CHANGED
|
@@ -4,7 +4,7 @@ pipeline {
|
|
|
4
4
|
environment {
|
|
5
5
|
GIT_NAME = "volto-tableau"
|
|
6
6
|
NAMESPACE = "@eeacms"
|
|
7
|
-
SONARQUBE_TAGS = "volto.eea.europa.eu,climate-energy.eea.europa.eu,forest.eea.europa.eu,biodiversity.europa.eu,water.europa.eu-freshwater,water.europa.eu-marine,industry.eea.europa.eu"
|
|
7
|
+
SONARQUBE_TAGS = "volto.eea.europa.eu,climate-energy.eea.europa.eu,forest.eea.europa.eu,biodiversity.europa.eu,water.europa.eu-freshwater,water.europa.eu-marine,industry.eea.europa.eu,demo-www.eea.europa.eu,www.eea.europa.eu-en"
|
|
8
8
|
DEPENDENCIES = ""
|
|
9
9
|
VOLTO = ""
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-tableau",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "@eeacms/volto-tableau: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -32,9 +32,6 @@
|
|
|
32
32
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
33
33
|
"md5": "^2.3.0"
|
|
34
34
|
},
|
|
35
|
-
"resolutions": {
|
|
36
|
-
"react-countup/countup.js": "2.5.0"
|
|
37
|
-
},
|
|
38
35
|
"scripts": {
|
|
39
36
|
"release": "release-it",
|
|
40
37
|
"release-major-beta": "release-it major --preRelease=beta",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { hasBlocksData } from '@plone/volto/helpers';
|
|
2
3
|
import { Container } from 'semantic-ui-react';
|
|
3
4
|
import config from '@plone/volto/registry';
|
|
5
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
4
6
|
import Tableau from '@eeacms/volto-tableau/Tableau/Tableau';
|
|
5
7
|
|
|
6
8
|
const VisualizationView = (props) => {
|
|
@@ -9,18 +11,22 @@ const VisualizationView = (props) => {
|
|
|
9
11
|
|
|
10
12
|
return (
|
|
11
13
|
<Container id="page-document">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
{hasBlocksData(content) ? (
|
|
15
|
+
<RenderBlocks {...props} />
|
|
16
|
+
) : (
|
|
17
|
+
<Tableau
|
|
18
|
+
data={{
|
|
19
|
+
...tableau_visualization,
|
|
20
|
+
with_sources: true,
|
|
21
|
+
with_download: true,
|
|
22
|
+
with_share: true,
|
|
23
|
+
}}
|
|
24
|
+
sources={data_provenance.data || []}
|
|
25
|
+
breakpoints={
|
|
26
|
+
config.blocks.blocksConfig.embed_tableau_visualization.breakpoints
|
|
27
|
+
}
|
|
28
|
+
/>
|
|
29
|
+
)}
|
|
24
30
|
</Container>
|
|
25
31
|
);
|
|
26
32
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Tableau from '@eeacms/volto-tableau/Tableau/Tableau';
|
|
2
|
+
import config from '@plone/volto/registry';
|
|
3
|
+
|
|
4
|
+
export default function VisualizationViewWidget(props) {
|
|
5
|
+
const { value = {} } = props;
|
|
6
|
+
return (
|
|
7
|
+
<Tableau
|
|
8
|
+
data={{
|
|
9
|
+
...value,
|
|
10
|
+
with_sources: true,
|
|
11
|
+
with_download: true,
|
|
12
|
+
with_share: true,
|
|
13
|
+
}}
|
|
14
|
+
sources={[]}
|
|
15
|
+
breakpoints={
|
|
16
|
+
config.blocks.blocksConfig.embed_tableau_visualization.breakpoints
|
|
17
|
+
}
|
|
18
|
+
/>
|
|
19
|
+
);
|
|
20
|
+
}
|
package/src/Widgets/index.js
CHANGED
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import installBlocks from './Blocks';
|
|
2
2
|
import { VisualizationView } from './Views';
|
|
3
|
-
import { VisualizationWidget } from './Widgets';
|
|
3
|
+
import { VisualizationWidget, VisualizationViewWidget } from './Widgets';
|
|
4
4
|
|
|
5
5
|
const applyConfig = (config) => {
|
|
6
6
|
config.settings.allowed_cors_destinations = [
|
|
@@ -12,6 +12,7 @@ const applyConfig = (config) => {
|
|
|
12
12
|
|
|
13
13
|
config.views.contentTypesViews.tableau_visualization = VisualizationView;
|
|
14
14
|
config.widgets.id.tableau_visualization = VisualizationWidget;
|
|
15
|
+
config.widgets.views.id.tableau_visualization = VisualizationViewWidget;
|
|
15
16
|
|
|
16
17
|
return [installBlocks].reduce((acc, apply) => apply(acc), config);
|
|
17
18
|
};
|