@eeacms/volto-design-tokens 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 ADDED
@@ -0,0 +1,65 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const projectRootPath = fs.realpathSync(__dirname + '/../../../');
4
+
5
+ let voltoPath = path.join(projectRootPath, 'node_modules/@plone/volto');
6
+ let configFile;
7
+ if (fs.existsSync(`${projectRootPath}/tsconfig.json`))
8
+ configFile = `${projectRootPath}/tsconfig.json`;
9
+ else if (fs.existsSync(`${projectRootPath}/jsconfig.json`))
10
+ configFile = `${projectRootPath}/jsconfig.json`;
11
+
12
+ if (configFile) {
13
+ const jsConfig = require(configFile).compilerOptions;
14
+ const pathsConfig = jsConfig.paths;
15
+ if (pathsConfig['@plone/volto'])
16
+ voltoPath = `./${jsConfig.baseUrl}/${pathsConfig['@plone/volto'][0]}`;
17
+ }
18
+
19
+ const { AddonRegistry } = require('@plone/registry/addon-registry');
20
+ const { registry } = AddonRegistry.init(projectRootPath);
21
+
22
+ // Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
23
+ const addonAliases = Object.keys(registry.packages).map((o) => [
24
+ o,
25
+ registry.packages[o].modulePath,
26
+ ]);
27
+
28
+ const addonExtenders = registry.getEslintExtenders().map((m) => require(m));
29
+
30
+ const defaultConfig = {
31
+ extends: `${voltoPath}/.eslintrc`,
32
+ settings: {
33
+ 'import/resolver': {
34
+ alias: {
35
+ map: [
36
+ ['@plone/volto', '@plone/volto/src'],
37
+ ['@plone/volto-slate', '@plone/volto-slate/src'],
38
+ ...addonAliases,
39
+ ['@package', `${__dirname}/src`],
40
+ ['@root', `${__dirname}/src`],
41
+ ['~', `${__dirname}/src`],
42
+ ],
43
+ extensions: ['.js', '.jsx', '.json'],
44
+ },
45
+ 'babel-plugin-root-import': {
46
+ rootPathSuffix: 'src',
47
+ },
48
+ },
49
+ },
50
+ rules: {
51
+ 'react/jsx-no-target-blank': [
52
+ 'error',
53
+ {
54
+ allowReferrer: true,
55
+ },
56
+ ],
57
+ }
58
+ };
59
+
60
+ const config = addonExtenders.reduce(
61
+ (acc, extender) => extender.modify(acc),
62
+ defaultConfig,
63
+ );
64
+
65
+ module.exports = config;
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-design-tokens/compare/1.1.1...2.0.0) - 25 March 2026
7
+ ### [2.0.1](https://github.com/eea/volto-design-tokens/compare/2.0.0...2.0.1) - 8 April 2026
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: make test [Alin V. (Claudiu) - [`c6ddc7c`](https://github.com/eea/volto-design-tokens/commit/c6ddc7cb7030a245e255caf3483b48aea2724ec2)]
12
+
13
+ ## [2.0.0](https://github.com/eea/volto-design-tokens/compare/1.1.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 - [`dd52d6f`](https://github.com/eea/volto-design-tokens/commit/dd52d6fca21cdb6acd30ebd3cb3faadd86a48a39)]
22
+ - chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`c84b6fd`](https://github.com/eea/volto-design-tokens/commit/c84b6fde35ba1b69e8edd0a53d66dc6a2c96eda4)]
15
23
 
16
24
  ### [1.1.1](https://github.com/eea/volto-design-tokens/compare/1.1.0...1.1.1) - 4 November 2025
17
25
 
@@ -22,6 +30,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
22
30
  #### :house: Internal changes
23
31
 
24
32
  - style: Automated code fix [eea-jenkins - [`795da6e`](https://github.com/eea/volto-design-tokens/commit/795da6e5af0dc81e7eb3e292a4e6c43f5284da4e)]
33
+ - chore: [JENKINS] Refactor automated testing [valentinab25 - [`a7e5415`](https://github.com/eea/volto-design-tokens/commit/a7e54158d90d743a7999faf0415c4e7b51ed59da)]
25
34
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`d5c8f91`](https://github.com/eea/volto-design-tokens/commit/d5c8f9110d3e806ff89c5030503e6263f4e7cac1)]
26
35
  - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`23a3ae9`](https://github.com/eea/volto-design-tokens/commit/23a3ae9ed0ca323126d2685175603552a690e50b)]
27
36
 
@@ -33,6 +42,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
33
42
  - split programatic colors and non-programatic colors [Dobricean Ioan Dorian - [`397ddfb`](https://github.com/eea/volto-design-tokens/commit/397ddfb1773e00a36000be9c509001b2ef83c277)]
34
43
  - update tokens [Dobricean Ioan Dorian - [`09a9a29`](https://github.com/eea/volto-design-tokens/commit/09a9a29c0fae310021b2c157a9819e516448022c)]
35
44
  - update tokens [Dobricean Ioan Dorian - [`5301dff`](https://github.com/eea/volto-design-tokens/commit/5301dff94035a6407a4a1a0d563ce29a7e2225eb)]
45
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`20dd754`](https://github.com/eea/volto-design-tokens/commit/20dd754c90ca146332366774c50901664434aea1)]
46
+ - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`e1f13f8`](https://github.com/eea/volto-design-tokens/commit/e1f13f834cadc1927adcec1c6051965fdd28f55e)]
47
+ - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`98040ce`](https://github.com/eea/volto-design-tokens/commit/98040cec2bd1921988deb69f08edd173df85ace8)]
48
+ - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`1e8be8e`](https://github.com/eea/volto-design-tokens/commit/1e8be8edd4dfe5c7da015461fba0aedc6615b3c6)]
49
+ - test: [JENKINS] Improve cypress time [valentinab25 - [`f94335d`](https://github.com/eea/volto-design-tokens/commit/f94335da5fc295876a563b3c81af680e45c7a200)]
36
50
  - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`8d486a1`](https://github.com/eea/volto-design-tokens/commit/8d486a1739cc3239c163c75795361402ad175daf)]
37
51
  ### [1.1.0](https://github.com/eea/volto-design-tokens/compare/1.0.2...1.1.0) - 18 August 2025
38
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-design-tokens",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "@eeacms/volto-design-tokens: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,48 +0,0 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
-
4
- const projectRootPath = fs.existsSync('./project')
5
- ? fs.realpathSync('./project')
6
- : fs.realpathSync('./../../../');
7
- const packageJson = require(path.join(projectRootPath, 'package.json'));
8
- const jsConfig = require(path.join(projectRootPath, 'jsconfig.json')).compilerOptions;
9
-
10
- const pathsConfig = jsConfig.paths;
11
-
12
- let voltoPath = path.join(projectRootPath, 'node_modules/@plone/volto');
13
-
14
- Object.keys(pathsConfig).forEach(pkg => {
15
- if (pkg === '@plone/volto') {
16
- voltoPath = `./${jsConfig.baseUrl}/${pathsConfig[pkg][0]}`;
17
- }
18
- });
19
- const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
20
- const reg = new AddonConfigurationRegistry(projectRootPath);
21
-
22
- // Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
23
- const addonAliases = Object.keys(reg.packages).map(o => [
24
- o,
25
- reg.packages[o].modulePath,
26
- ]);
27
-
28
-
29
- module.exports = {
30
- extends: `${projectRootPath}/node_modules/@plone/volto/.eslintrc`,
31
- settings: {
32
- 'import/resolver': {
33
- alias: {
34
- map: [
35
- ['@plone/volto', '@plone/volto/src'],
36
- ...addonAliases,
37
- ['@package', `${__dirname}/src`],
38
- ['~', `${__dirname}/src`],
39
- ],
40
- extensions: ['.js', '.jsx', '.json'],
41
- },
42
- 'babel-plugin-root-import': {
43
- rootPathSuffix: 'src',
44
- },
45
- },
46
- },
47
- };
48
-