@eeacms/volto-eea-versions 2.0.0 → 2.0.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.
package/.eslintrc.js CHANGED
@@ -16,16 +16,16 @@ if (configFile) {
16
16
  voltoPath = `./${jsConfig.baseUrl}/${pathsConfig['@plone/volto'][0]}`;
17
17
  }
18
18
 
19
- const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
20
- const reg = new AddonConfigurationRegistry(projectRootPath);
19
+ const { AddonRegistry } = require('@plone/registry/addon-registry');
20
+ const { registry } = AddonRegistry.init(projectRootPath);
21
21
 
22
22
  // Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
23
- const addonAliases = Object.keys(reg.packages).map((o) => [
23
+ const addonAliases = Object.keys(registry.packages).map((o) => [
24
24
  o,
25
- reg.packages[o].modulePath,
25
+ registry.packages[o].modulePath,
26
26
  ]);
27
27
 
28
- const addonExtenders = reg.getEslintExtenders().map((m) => require(m));
28
+ const addonExtenders = registry.getEslintExtenders().map((m) => require(m));
29
29
 
30
30
  const defaultConfig = {
31
31
  extends: `${voltoPath}/.eslintrc`,
@@ -34,7 +34,7 @@ const defaultConfig = {
34
34
  alias: {
35
35
  map: [
36
36
  ['@plone/volto', '@plone/volto/src'],
37
- ['@plone/volto-slate', '@plone/volto/packages/volto-slate/src'],
37
+ ['@plone/volto-slate', '@plone/volto-slate/src'],
38
38
  ...addonAliases,
39
39
  ['@package', `${__dirname}/src`],
40
40
  ['@root', `${__dirname}/src`],
package/CHANGELOG.md CHANGED
@@ -4,7 +4,13 @@ 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
- ### [2.0.0](https://github.com/eea/volto-eea-versions/compare/1.0.1...2.0.0) - 25 March 2026
7
+ ### [2.0.1](https://github.com/eea/volto-eea-versions/compare/2.0.0...2.0.1) - 8 April 2026
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: make test [Alin V. (Claudiu) - [`82b0c44`](https://github.com/eea/volto-eea-versions/commit/82b0c449ce958c43d7725dab63bdf2c98afb8c52)]
12
+
13
+ ## [2.0.0](https://github.com/eea/volto-eea-versions/compare/1.0.1...2.0.0) - 25 March 2026
8
14
 
9
15
  #### :rocket: New Features
10
16
 
@@ -12,6 +18,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
12
18
 
13
19
  #### :house: Internal changes
14
20
 
21
+ - chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`2f4a62d`](https://github.com/eea/volto-eea-versions/commit/2f4a62d39d30b2e2bc44d367517121d39252b037)]
22
+ - chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`75259dc`](https://github.com/eea/volto-eea-versions/commit/75259dcd39e2ae84ede23a47b50721654f7fe34f)]
15
23
 
16
24
  #### :hammer_and_wrench: Others
17
25
 
@@ -31,6 +39,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
31
39
  #### :hammer_and_wrench: Others
32
40
 
33
41
  - Release #4 from eea/develop [David Ichim - [`c649076`](https://github.com/eea/volto-eea-versions/commit/c64907618c948834331d98aa219809e3159289f4)]
42
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`68bb33d`](https://github.com/eea/volto-eea-versions/commit/68bb33d275e5484b022cf0aad5084f8da8f98de3)]
43
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`0abf06b`](https://github.com/eea/volto-eea-versions/commit/0abf06b6e67152960582e993d79e9c401e04cd1e)]
44
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`aaedb59`](https://github.com/eea/volto-eea-versions/commit/aaedb59a81591f6db124cf27ae3a074f05444a27)]
34
45
  ## [1.0.0](https://github.com/eea/volto-eea-versions/compare/0.2.0...1.0.0) - 18 December 2024
35
46
 
36
47
  #### :nail_care: Enhancements
@@ -67,4 +78,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
67
78
  - Removed next and previous versions components since we only need latest and all versions logic [David Ichim - [`4df102f`](https://github.com/eea/volto-eea-versions/commit/4df102f95744e7e95e26ccd386307973e9dcf90d)]
68
79
  - Started adding latest version and all version blocks while maintaining the previous logic for previous components [David Ichim - [`9f9d04b`](https://github.com/eea/volto-eea-versions/commit/9f9d04b4fda0b9606ffb038bdd4c53615ce54d3e)]
69
80
  - initial import of boilerplate code needed to have the 2 version blocks available [David Ichim - [`e631e27`](https://github.com/eea/volto-eea-versions/commit/e631e273ce4f7782f0d721815e6d8f0305fa7d32)]
81
+ - Fixed error from package.json after error in yarn bootstrap [David Ichim - [`fb1810b`](https://github.com/eea/volto-eea-versions/commit/fb1810b0dfa3c2bbdfe09a18efa4836d2be2d2eb)]
82
+ - yarn bootstrap [David Ichim - [`63d4d93`](https://github.com/eea/volto-eea-versions/commit/63d4d934aa14c5df966a0e443f648bb8eb7b2619)]
70
83
  - Initial commit [Alin Voinea - [`0c11208`](https://github.com/eea/volto-eea-versions/commit/0c11208f3fae44b66b185de3dd2994ebae91dc9b)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-versions",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "@eeacms/volto-eea-versions: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { withEEAVersions } from './withEEAVersions';
3
3
  import { formattedDate } from './helpers';
4
- import { UniversalLink } from '@plone/volto/components';
4
+ import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
5
5
 
6
6
  const propsAreEqual = (prevProps, nextProps) => {
7
7
  return prevProps['@id'] === nextProps['@id'];
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { withEEAVersions } from './withEEAVersions';
3
3
  import { formattedDate } from './helpers';
4
- import { UniversalLink } from '@plone/volto/components';
4
+ import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
5
5
 
6
6
  const propsAreEqual = (prevProps, nextProps) => {
7
7
  return prevProps['@id'] === nextProps['@id'];
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { useDispatch, useSelector } from 'react-redux';
3
3
  import useDeepCompareEffect from 'use-deep-compare-effect';
4
4
 
5
- import { getBaseUrl } from '@plone/volto/helpers';
6
- import { getEEAVersions } from '../actions';
5
+ import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
6
+ import { getEEAVersions } from '@eeacms/volto-eea-versions/actions';
7
7
 
8
8
  export function withEEAVersions(WrappedComponent) {
9
9
  function memoizedSelector(prev, next) {