@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 +6 -6
- package/CHANGELOG.md +9 -1
- package/package.json +1 -1
- package/src/customizations/volto/components/manage/Blocks/HTML/Edit.jsx +2 -2
- package/src/helpers.js +3 -3
- package/src/helpers.test.js +1 -1
- /package/src/components/Widgets/{FrequencyOfDissemination.test.js → FrequencyOfDissemination.test.jsx} +0 -0
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
|
|
20
|
-
const
|
|
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(
|
|
23
|
+
const addonAliases = Object.keys(registry.packages).map((o) => [
|
|
24
24
|
o,
|
|
25
|
-
|
|
25
|
+
registry.packages[o].modulePath,
|
|
26
26
|
]);
|
|
27
27
|
|
|
28
|
-
const addonExtenders =
|
|
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
|
|
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.
|
|
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
|
@@ -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
|
|
12
|
+
import isEqual from 'lodash/isEqual';
|
|
13
13
|
|
|
14
|
-
import
|
|
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
|
|
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) => {
|
package/src/helpers.test.js
CHANGED
|
@@ -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
|
|
4
|
+
import isArray from 'lodash/isArray';
|
|
5
5
|
import '@testing-library/jest-dom';
|
|
6
6
|
|
|
7
7
|
jest.mock('@plone/volto/registry', () => ({
|
|
File without changes
|