@eeacms/volto-cca-policy 0.1.21 → 0.1.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,11 +4,16 @@ 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.1.21](https://github.com/eea/volto-cca-policy/compare/0.1.20...0.1.21) - 8 June 2023
7
+ ### [0.1.23](https://github.com/eea/volto-cca-policy/compare/0.1.22...0.1.23) - 12 June 2023
8
8
 
9
9
  #### :hammer_and_wrench: Others
10
10
 
11
- - Fix cluster name [Tiberiu Ichim - [`9668597`](https://github.com/eea/volto-cca-policy/commit/9668597dd7e9c73e611baf17c4c92acb1a4e3153)]
11
+ - Fix external routes condition, env var. [GhitaB - [`abfb933`](https://github.com/eea/volto-cca-policy/commit/abfb933b5b39039a3a485d9378b4b340fc01d9e5)]
12
+ - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`77fece9`](https://github.com/eea/volto-cca-policy/commit/77fece9c1186ff7e8b789ae32c737ff7c8b98e97)]
13
+ ### [0.1.22](https://github.com/eea/volto-cca-policy/compare/0.1.21...0.1.22) - 9 June 2023
14
+
15
+ ### [0.1.21](https://github.com/eea/volto-cca-policy/compare/0.1.20...0.1.21) - 8 June 2023
16
+
12
17
  ### [0.1.20](https://github.com/eea/volto-cca-policy/compare/0.1.19...0.1.20) - 8 June 2023
13
18
 
14
19
  #### :hammer_and_wrench: Others
@@ -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-cca-policy",
3
- "version": "0.1.21",
3
+ "version": "0.1.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",
package/src/index.js CHANGED
@@ -25,7 +25,7 @@ import GeolocationWidget from './components/theme/Widgets/GeolocationWidget';
25
25
 
26
26
  const applyConfig = (config) => {
27
27
  const notInEnMission = /^(?!(\/en\/mission)).*$/;
28
- if (!__DEVELOPMENT__ || !process.env.RAZZLE_SET_EXTERNAL_ROUTES) {
28
+ if (!__DEVELOPMENT__ && !process.env.RAZZLE_DISABLE_EXTERNAL_ROUTES) {
29
29
  config.settings.externalRoutes = [
30
30
  ...(config.settings.externalRoutes || []),
31
31
  {