@eeacms/volto-eea-website-policy 1.6.1 → 1.6.3

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,11 +4,20 @@ 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.6.1](https://github.com/eea/volto-eea-website-policy/compare/1.6.0...1.6.1) - 23 May 2023
7
+ ### [1.6.3](https://github.com/eea/volto-eea-website-policy/compare/1.6.2...1.6.3) - 13 June 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(notInEn): Fix regex to consider internal path only if the path starts with /en - refs #254258 [Alin Voinea - [`9e9ecd0`](https://github.com/eea/volto-eea-website-policy/commit/9e9ecd00a13ebe1767d11a145fc7869c36034e9e)]
12
+
13
+ ### [1.6.2](https://github.com/eea/volto-eea-website-policy/compare/1.6.1...1.6.2) - 13 June 2023
8
14
 
9
15
  #### :hammer_and_wrench: Others
10
16
 
11
- - other: restrict volto-datablocks blocks [Miu Razvan - [`6f39568`](https://github.com/eea/volto-eea-website-policy/commit/6f39568c8f53ce46707279715e57ee50c897d49f)]
17
+ - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`e18d541`](https://github.com/eea/volto-eea-website-policy/commit/e18d541daea12f175f78ff75ba8ef2d5a2e5f0b0)]
18
+ - test: Fix test config, coverage Refs #253277 [valentinab25 - [`da8efc5`](https://github.com/eea/volto-eea-website-policy/commit/da8efc51bf6938b6f5cecb522a164279b06b83af)]
19
+ ### [1.6.1](https://github.com/eea/volto-eea-website-policy/compare/1.6.0...1.6.1) - 23 May 2023
20
+
12
21
  ### [1.6.0](https://github.com/eea/volto-eea-website-policy/compare/1.5.0...1.6.0) - 22 May 2023
13
22
 
14
23
  #### :nail_care: Enhancements
@@ -5,19 +5,19 @@ module.exports = {
5
5
  '!src/**/*.d.ts',
6
6
  ],
7
7
  moduleNameMapper: {
8
+ '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
8
9
  '@plone/volto/cypress': '<rootDir>/node_modules/@plone/volto/cypress',
9
10
  '@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
10
11
  '@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
11
12
  '@package/(.*)$': '<rootDir>/src/$1',
12
13
  '@root/(.*)$': '<rootDir>/src/$1',
13
14
  '@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
14
- '@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
15
+ '@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
15
16
  '@plone/volto-slate':
16
17
  '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
17
18
  '~/(.*)$': '<rootDir>/src/$1',
18
19
  'load-volto-addons':
19
20
  '<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
20
- '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
21
21
  },
22
22
  transform: {
23
23
  '^.+\\.js(x)?$': 'babel-jest',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
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",
package/src/index.js CHANGED
@@ -17,7 +17,7 @@ const restrictedBlocks = [
17
17
 
18
18
  const applyConfig = (config) => {
19
19
  // #158717#note-25 any path that isn't static, en or controlpanel is treated as external
20
- const notInEN = /^(?!.*(#|\/en|\/static|\/controlpanel|\/cypress|\/login|\/logout|\/contact-form)).*$/;
20
+ const notInEN = /^(?!(#|\/en|\/static|\/controlpanel|\/cypress|\/login|\/logout|\/contact-form)).*$/;
21
21
  config.settings.externalRoutes = [
22
22
  ...(config.settings.externalRoutes || []),
23
23
  {