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

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,19 @@ 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.1](https://github.com/eea/volto-eea-website-policy/compare/1.9.0...1.9.1) - 22 September 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: disable tableau and ArcGIS blocks - refs #257723 [Crețu Mihaela - [`b3cad61`](https://github.com/eea/volto-eea-website-policy/commit/b3cad61d168c05b6779ad0fe61d4f00da5da1dc4)]
12
+
13
+ #### :house: Internal changes
14
+
15
+ - style: lint-staged reorder in package.json [Alin Voinea - [`f8992b0`](https://github.com/eea/volto-eea-website-policy/commit/f8992b09c3f578fb7c16b7ddc7094319ec7602b2)]
16
+
17
+ #### :hammer_and_wrench: Others
18
+
19
+ - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`06e1fcf`](https://github.com/eea/volto-eea-website-policy/commit/06e1fcfdb77b676f815ac59c55abbf9ae94e53b8)]
7
20
  ### [1.9.0](https://github.com/eea/volto-eea-website-policy/compare/1.8.0...1.9.0) - 1 September 2023
8
21
 
9
22
  #### :rocket: New Features
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.1",
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',