@eeacms/volto-eea-website-policy 1.9.0 → 1.9.2

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.
@@ -0,0 +1,2 @@
1
+ [ -n "$CI" ] && exit 0
2
+ yarn lint-staged
package/CHANGELOG.md CHANGED
@@ -4,6 +4,25 @@ 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
+ ### [1.9.2](https://github.com/eea/volto-eea-website-policy/compare/1.9.1...1.9.2) - 29 September 2023
8
+
9
+ #### :house: Documentation changes
10
+
11
+ - docs: Update README and DEVELOP [Alin Voinea - [`552a79b`](https://github.com/eea/volto-eea-website-policy/commit/552a79ba30db6327bbf102e33650b24df7f71161)]
12
+
13
+ ### [1.9.1](https://github.com/eea/volto-eea-website-policy/compare/1.9.0...1.9.1) - 22 September 2023
14
+
15
+ #### :bug: Bug Fixes
16
+
17
+ - fix: disable tableau and ArcGIS blocks - refs #257723 [Crețu Mihaela - [`b3cad61`](https://github.com/eea/volto-eea-website-policy/commit/b3cad61d168c05b6779ad0fe61d4f00da5da1dc4)]
18
+
19
+ #### :house: Internal changes
20
+
21
+ - style: lint-staged reorder in package.json [Alin Voinea - [`f8992b0`](https://github.com/eea/volto-eea-website-policy/commit/f8992b09c3f578fb7c16b7ddc7094319ec7602b2)]
22
+
23
+ #### :hammer_and_wrench: Others
24
+
25
+ - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`06e1fcf`](https://github.com/eea/volto-eea-website-policy/commit/06e1fcfdb77b676f815ac59c55abbf9ae94e53b8)]
7
26
  ### [1.9.0](https://github.com/eea/volto-eea-website-policy/compare/1.8.0...1.9.0) - 1 September 2023
8
27
 
9
28
  #### :rocket: New Features
@@ -102,6 +121,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
102
121
 
103
122
  - Release 1.5.0 [Alin Voinea - [`a3dea8e`](https://github.com/eea/volto-eea-website-policy/commit/a3dea8ea15cb8d2a876dc10da926ece3a5707ea9)]
104
123
  - test(Jenkinsfile): Use latest stable volto for testing [Alin Voinea - [`a8f7123`](https://github.com/eea/volto-eea-website-policy/commit/a8f712364187f9638886667c249fa102cb49b5c0)]
124
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`124a8f8`](https://github.com/eea/volto-eea-website-policy/commit/124a8f8ad4ced507aeec27012d725f2e2b977e08)]
105
125
  ### [1.4.0](https://github.com/eea/volto-eea-website-policy/compare/1.3.4...1.4.0) - 21 February 2023
106
126
 
107
127
  #### :rocket: New Features
@@ -181,6 +201,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
181
201
  #### :hammer_and_wrench: Others
182
202
 
183
203
  - Release 1.1.0 [Alin Voinea - [`0291b3b`](https://github.com/eea/volto-eea-website-policy/commit/0291b3bb7b4c6ab09ca98728885cea4051eac8e3)]
204
+ - yarn 3 [Alin Voinea - [`593aa58`](https://github.com/eea/volto-eea-website-policy/commit/593aa58eaa4d28aced0603b7f7dd125c857a6f54)]
184
205
  ### [1.0.4](https://github.com/eea/volto-eea-website-policy/compare/1.0.3...1.0.4) - 22 November 2022
185
206
 
186
207
  #### :nail_care: Enhancements
@@ -226,6 +247,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
226
247
 
227
248
  #### :hammer_and_wrench: Others
228
249
 
250
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`d153f54`](https://github.com/eea/volto-eea-website-policy/commit/d153f54e55e918fa4746e05488c734624eaf14a9)]
229
251
  ### [0.4.0](https://github.com/eea/volto-eea-website-policy/compare/0.3.3...0.4.0) - 19 September 2022
230
252
 
231
253
  #### :hammer_and_wrench: Others
@@ -301,6 +323,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
301
323
  - format index.js [Andrei Grigore - [`db4481a`](https://github.com/eea/volto-eea-website-policy/commit/db4481aeeba59a769272659f33278c902fc69bec)]
302
324
  - Update index.js [Alexandru Ghica - [`dc09886`](https://github.com/eea/volto-eea-website-policy/commit/dc0988640a76a9914381b120f58bb61a9ab1eb39)]
303
325
  - Added externalRoutes [Alexandru Ghica - [`b68135b`](https://github.com/eea/volto-eea-website-policy/commit/b68135b013fafa93a41ea602ea2fad30879abe0f)]
326
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`575cca6`](https://github.com/eea/volto-eea-website-policy/commit/575cca674602ca2e1c2a41300c47ba594ff49aa0)]
304
327
  ### [0.1.1](https://github.com/eea/volto-eea-website-policy/compare/0.1.0...0.1.1) - 4 March 2022
305
328
 
306
329
  #### :hammer_and_wrench: Others
@@ -313,4 +336,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
313
336
 
314
337
  #### :hammer_and_wrench: Others
315
338
 
339
+ - yarn bootstrap [Alin Voinea - [`9b4d197`](https://github.com/eea/volto-eea-website-policy/commit/9b4d197cbc7992566cb36524d190078d5ad21a44)]
316
340
  - Initial commit [Alin Voinea - [`3800692`](https://github.com/eea/volto-eea-website-policy/commit/3800692f7a4de6460815bd6061facacb986cbef0)]
package/DEVELOP.md CHANGED
@@ -16,12 +16,14 @@
16
16
 
17
17
  1. Go to http://localhost:3000
18
18
 
19
- 1. Happy hacking!
19
+ 1. Initialize git hooks
20
20
 
21
21
  ```Bash
22
- cd src/addons/volto-eea-website-policy/
22
+ yarn prepare
23
23
  ```
24
24
 
25
+ 1. Happy hacking!
26
+
25
27
  ### Or add @eeacms/volto-eea-website-policy to your Volto project
26
28
 
27
29
  Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
@@ -48,18 +50,15 @@ Before starting make sure your development environment is properly set. See [Vol
48
50
 
49
51
  1. Install
50
52
 
51
- yarn develop
53
+ make develop
52
54
  yarn
53
55
 
54
56
  1. Start backend
55
57
 
56
- docker pull plone
57
- docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
58
+ docker run --pull always -it --rm --name plone -p 8080:8080 -e SITE=Plone plone/plone-backend
58
59
 
59
60
  ...wait for backend to setup and start - `Ready to handle requests`:
60
61
 
61
- docker logs -f plone
62
-
63
62
  ...you can also check http://localhost:8080/Plone
64
63
 
65
64
  1. Start frontend
package/README.md CHANGED
@@ -50,7 +50,7 @@ Go to http://localhost:3000
50
50
  ],
51
51
 
52
52
  "dependencies": {
53
- "@eeacms/volto-eea-website-policy": "^1.0.0"
53
+ "@eeacms/volto-eea-website-policy": "*"
54
54
  }
55
55
  ```
56
56
 
@@ -58,7 +58,7 @@ Go to http://localhost:3000
58
58
 
59
59
  ```
60
60
  npm install -g yo @plone/generator-volto
61
- yo @plone/volto my-volto-project --addon @eeacms/volto-eea-website-policy
61
+ yo @plone/volto my-volto-project --canary --addon @eeacms/volto-eea-website-policy
62
62
  cd my-volto-project
63
63
  ```
64
64
 
package/cypress.config.js CHANGED
@@ -2,12 +2,12 @@ const { defineConfig } = require('cypress');
2
2
 
3
3
  module.exports = defineConfig({
4
4
  viewportWidth: 1280,
5
- defaultCommandTimeout: 8888,
5
+ defaultCommandTimeout: 5000,
6
6
  chromeWebSecurity: false,
7
7
  reporter: 'junit',
8
8
  video: true,
9
9
  retries: {
10
- runMode: 8,
10
+ runMode: 1,
11
11
  openMode: 0,
12
12
  },
13
13
  reporterOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "@eeacms/volto-eea-website-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -26,8 +26,31 @@
26
26
  "@cypress/code-coverage": "^3.10.0",
27
27
  "@plone/scripts": "*",
28
28
  "babel-plugin-transform-class-properties": "^6.24.1",
29
+ "husky": "*",
30
+ "lint-staged": "*",
29
31
  "md5": "^2.3.0"
30
32
  },
33
+ "lint-staged": {
34
+ "src/**/*.{js,jsx,ts,tsx,json}": [
35
+ "make lint-fix",
36
+ "make prettier-fix"
37
+ ],
38
+ "src/**/*.{jsx}": [
39
+ "make i18n"
40
+ ],
41
+ "theme/**/*.{css,less}": [
42
+ "make stylelint-fix"
43
+ ],
44
+ "src/**/*.{css,less}": [
45
+ "make stylelint-fix"
46
+ ],
47
+ "theme/**/*.overrides": [
48
+ "make stylelint-fix"
49
+ ],
50
+ "src/**/*.overrides": [
51
+ "make stylelint-fix"
52
+ ]
53
+ },
31
54
  "scripts": {
32
55
  "release": "release-it",
33
56
  "release-major-beta": "release-it major --preRelease=beta",
@@ -45,6 +68,7 @@
45
68
  "lint:fix": "make lint-fix",
46
69
  "i18n": "make i18n",
47
70
  "cypress:run": "make cypress-run",
48
- "cypress:open": "make cypress-open"
71
+ "cypress:open": "make cypress-open",
72
+ "prepare": "husky install"
49
73
  }
50
74
  }
package/src/index.js CHANGED
@@ -18,12 +18,15 @@ const restrictedBlocks = [
18
18
  const overrideBlocks = {
19
19
  embed_tableau_visualization: {
20
20
  group: 'data_visualizations',
21
+ restricted: true,
21
22
  },
22
23
  tableau_block: {
23
24
  group: 'data_visualizations',
25
+ restricted: true,
24
26
  },
25
27
  embed_eea_map_block: {
26
28
  group: 'data_visualizations',
29
+ restricted: true,
27
30
  },
28
31
  dataFigure: {
29
32
  group: 'data_visualizations',