@eeacms/volto-eea-website-policy 4.0.0 → 4.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,15 @@ 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
- ### [4.0.0](https://github.com/eea/volto-eea-website-policy/compare/3.0.0...4.0.0) - 25 March 2026
7
+ ### [4.0.1](https://github.com/eea/volto-eea-website-policy/compare/4.0.0...4.0.1) - 8 April 2026
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: make test [Alin V. (Claudiu) - [`d052416`](https://github.com/eea/volto-eea-website-policy/commit/d052416ff062c97e5ef9324bb776bdad0526fce7)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ ## [4.0.0](https://github.com/eea/volto-eea-website-policy/compare/3.0.0...4.0.0) - 25 March 2026
8
16
 
9
17
  #### :rocket: New Features
10
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "4.0.0",
3
+ "version": "4.0.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",
@@ -9,9 +9,9 @@ import PropTypes from 'prop-types';
9
9
  import { Button, Popup } from 'semantic-ui-react';
10
10
  import { defineMessages, injectIntl } from 'react-intl';
11
11
  import loadable from '@loadable/component';
12
- import { isEqual } from 'lodash';
12
+ import isEqual from 'lodash/isEqual';
13
13
 
14
- import { Icon } from '@plone/volto/components';
14
+ import Icon from '@plone/volto/components/theme/Icon/Icon';
15
15
  import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
16
16
  import showSVG from '@plone/volto/icons/show.svg';
17
17
  // import clearSVG from '@plone/volto/icons/clear.svg';
package/src/helpers.js CHANGED
@@ -1,7 +1,7 @@
1
- import { isArray } from 'lodash';
1
+ import isArray from 'lodash/isArray';
2
2
  import config from '@plone/volto/registry';
3
- import { getContent } from '@plone/volto/actions';
4
- import { flattenToAppURL } from '@plone/volto/helpers';
3
+ import { getContent } from '@plone/volto/actions/content/content';
4
+ import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
5
5
  import { serializeNodes } from '@plone/volto-slate/editor/render';
6
6
 
7
7
  export const createSlateParagraph = (text) => {
@@ -1,7 +1,7 @@
1
1
  import * as helpers from './helpers';
2
2
  import config from '@plone/volto/registry';
3
3
  import { serializeNodes } from '@plone/volto-slate/editor/render';
4
- import { isArray } from 'lodash';
4
+ import isArray from 'lodash/isArray';
5
5
  import '@testing-library/jest-dom';
6
6
 
7
7
  jest.mock('@plone/volto/registry', () => ({