@eeacms/volto-eea-design-system 1.40.3 → 1.50.0
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 +25 -12
- package/CHANGELOG.md +13 -34
- package/DEVELOP.md +19 -17
- package/README.md +33 -19
- package/docker-compose.yml +1 -1
- package/jest-addon.config.js +8 -4
- package/package.json +1 -1
- package/src/helpers/useFirstVisited.js +4 -2
- package/src/ui/Accordion/Accordion.stories.test.js +1 -1
- package/src/ui/Banner/Banner.test.jsx +1 -1
- package/src/ui/CallToAction/CallToAction.stories.test.jsx +1 -1
- package/src/ui/Card/Card.stories.test.jsx +1 -1
- package/src/ui/Card/IconCard/IconCard.stories.test.jsx +1 -1
- package/src/ui/Card/RelatedContent/RelatedContent.stories.test.jsx +1 -1
- package/src/ui/Confirm/Confirm.stories.test.js +1 -1
- package/src/ui/ContextNavigation/ContextNavigation.stories.test.jsx +1 -1
- package/src/ui/Divider/Divider.stories.test.jsx +1 -1
- package/src/ui/DownloadLabeledIcon/DownloadLabeledIcon.stories.test.jsx +1 -1
- package/src/ui/Footer/Description.test.jsx +1 -1
- package/src/ui/Footer/Footer.stories.test.js +1 -1
- package/src/ui/Footer/Social.test.jsx +1 -1
- package/src/ui/Form/Button/Button.stories.test.jsx +1 -1
- package/src/ui/Form/Checkbox.stories.test.js +1 -1
- package/src/ui/Form/Dropdown.stories.test.js +1 -1
- package/src/ui/Form/Radio.stories.test.js +1 -1
- package/src/ui/Form/Textarea.stories.test.js +1 -1
- package/src/ui/Form/input.stories.test.js +1 -1
- package/src/ui/Grid/ComponentGrid.stories.test.js +1 -1
- package/src/ui/Header/Header.jsx +1 -1
- package/src/ui/Header/Header.stories.test.js +1 -1
- package/src/ui/Header/Header.test.jsx +2 -2
- package/src/ui/Header/HeaderMenuPopUp.test.js +1 -1
- package/src/ui/Header/HeaderSearchPopUp.test.js +1 -1
- package/src/ui/Hero/Hero.stories.jsx +2 -4
- package/src/ui/Hero/Hero.stories.test.jsx +1 -1
- package/src/ui/InpageNavigation/InpageNavigation.stories.test.jsx +1 -1
- package/src/ui/InpageNavigation/InpageNavigation.test.jsx +1 -1
- package/src/ui/Item/Item.stories.test.js +1 -1
- package/src/ui/Item/ItemGroupWithIcons.stories.test.js +1 -1
- package/src/ui/Label/Label.stories.test.js +1 -1
- package/src/ui/LabeledIconGroup/LabeledIconGroup.stories.test.jsx +1 -1
- package/src/ui/LanguageLabeledIcon/LanguangeLabeledIcon.test.jsx +1 -1
- package/src/ui/Loader/Loader.stories.test.jsx +1 -1
- package/src/ui/Logo/Logo.stories.test.jsx +1 -1
- package/src/ui/Media/Image.stories.test.js +1 -1
- package/src/ui/Message/Message.stories.test.js +1 -1
- package/src/ui/Modal/Modal.stories.test.js +1 -1
- package/src/ui/Popup/Popup.test.jsx +1 -1
- package/src/ui/Progress/Progress.stories.test.js +1 -1
- package/src/ui/Quote/Testimonial/Testimonial.stories.test.jsx +1 -1
- package/src/ui/Statistic/Statistic.stories.test.js +1 -1
- package/src/ui/Tab/Tab.stories.test.js +1 -1
- package/src/ui/Table/Table.stories.test.js +1 -1
- package/src/ui/Timeline/Timeline.stories.test.jsx +1 -1
- package/theme/themes/eea/assets/images/Header/ai-search.svg +6 -0
package/.eslintrc.js
CHANGED
|
@@ -4,19 +4,21 @@ const path = require('path');
|
|
|
4
4
|
const projectRootPath = fs.existsSync('./project')
|
|
5
5
|
? fs.realpathSync('./project')
|
|
6
6
|
: fs.realpathSync(__dirname + '/../../../');
|
|
7
|
-
const jsConfig = require(
|
|
8
|
-
path.join(projectRootPath, 'jsconfig.json'),
|
|
9
|
-
).compilerOptions;
|
|
10
|
-
|
|
11
|
-
const pathsConfig = jsConfig.paths;
|
|
12
7
|
|
|
13
8
|
let voltoPath = path.join(projectRootPath, 'node_modules/@plone/volto');
|
|
9
|
+
let configFile;
|
|
10
|
+
if (fs.existsSync(`${projectRootPath}/tsconfig.json`))
|
|
11
|
+
configFile = `${projectRootPath}/tsconfig.json`;
|
|
12
|
+
else if (fs.existsSync(`${projectRootPath}/jsconfig.json`))
|
|
13
|
+
configFile = `${projectRootPath}/jsconfig.json`;
|
|
14
|
+
|
|
15
|
+
if (configFile) {
|
|
16
|
+
const jsConfig = require(configFile).compilerOptions;
|
|
17
|
+
const pathsConfig = jsConfig.paths;
|
|
18
|
+
if (pathsConfig['@plone/volto'])
|
|
19
|
+
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig['@plone/volto'][0]}`;
|
|
20
|
+
}
|
|
14
21
|
|
|
15
|
-
Object.keys(pathsConfig).forEach((pkg) => {
|
|
16
|
-
if (pkg === '@plone/volto') {
|
|
17
|
-
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig[pkg][0]}`;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
22
|
const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
|
|
21
23
|
const reg = new AddonConfigurationRegistry(projectRootPath);
|
|
22
24
|
|
|
@@ -26,15 +28,19 @@ const addonAliases = Object.keys(reg.packages).map((o) => [
|
|
|
26
28
|
reg.packages[o].modulePath,
|
|
27
29
|
]);
|
|
28
30
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
const addonExtenders = reg.getEslintExtenders().map((m) => require(m));
|
|
32
|
+
|
|
33
|
+
const defaultConfig = {
|
|
34
|
+
extends: `${voltoPath}/.eslintrc`,
|
|
31
35
|
settings: {
|
|
32
36
|
'import/resolver': {
|
|
33
37
|
alias: {
|
|
34
38
|
map: [
|
|
35
39
|
['@plone/volto', '@plone/volto/src'],
|
|
40
|
+
['@plone/volto-slate', '@plone/volto/packages/volto-slate/src'],
|
|
36
41
|
...addonAliases,
|
|
37
42
|
['@package', `${__dirname}/src`],
|
|
43
|
+
['@root', `${__dirname}/src`],
|
|
38
44
|
['~', `${__dirname}/src`],
|
|
39
45
|
],
|
|
40
46
|
extensions: ['.js', '.jsx', '.json'],
|
|
@@ -48,3 +54,10 @@ module.exports = {
|
|
|
48
54
|
'react/jsx-no-target-blank': 'off',
|
|
49
55
|
},
|
|
50
56
|
};
|
|
57
|
+
|
|
58
|
+
const config = addonExtenders.reduce(
|
|
59
|
+
(acc, extender) => extender.modify(acc),
|
|
60
|
+
defaultConfig,
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
module.exports = config;
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ 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
|
+
### [1.50.0](https://github.com/eea/volto-eea-design-system/compare/1.40.3...1.50.0) - 25 March 2026
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat: Volto 18 support - refs #287700 [Alin Voinea - [`6d4f49c`](https://github.com/eea/volto-eea-design-system/commit/6d4f49c3c2a2bfae2ff1b01df6c9e1ec3b13efc5)]
|
|
12
|
+
- feat(Header): replace search icon with ai variant [Miu Razvan - [`af211a9`](https://github.com/eea/volto-eea-design-system/commit/af211a933bb5499036b7be24b75a2949fa791cea)]
|
|
13
|
+
|
|
14
|
+
#### :house: Internal changes
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
#### :hammer_and_wrench: Others
|
|
18
|
+
|
|
19
|
+
- tests: Fix Sonar Qube tags - refs #297339 [Alin Voinea - [`248553d`](https://github.com/eea/volto-eea-design-system/commit/248553d47d053514f512178793f64d382711c57e)]
|
|
7
20
|
### [1.40.3](https://github.com/eea/volto-eea-design-system/compare/1.40.2...1.40.3) - 11 February 2026
|
|
8
21
|
|
|
9
22
|
#### :bug: Bug Fixes
|
|
@@ -36,7 +49,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
36
49
|
#### :hammer_and_wrench: Others
|
|
37
50
|
|
|
38
51
|
- add rule for eeacms/countup to jest-config.js [David Ichim - [`59244c2`](https://github.com/eea/volto-eea-design-system/commit/59244c2e85447766e9e2a051e080652d93f67458)]
|
|
39
|
-
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`314266b`](https://github.com/eea/volto-eea-design-system/commit/314266bd8131b8ade427f23f81a084714f0104af)]
|
|
40
52
|
### [1.40.0](https://github.com/eea/volto-eea-design-system/compare/1.39.1...1.40.0) - 4 November 2025
|
|
41
53
|
|
|
42
54
|
### [1.39.1](https://github.com/eea/volto-eea-design-system/compare/1.39.0...1.39.1) - 22 September 2025
|
|
@@ -112,10 +124,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
112
124
|
|
|
113
125
|
#### :hammer_and_wrench: Others
|
|
114
126
|
|
|
115
|
-
- Add Sonarqube tag using fise-frontend addons list [EEA Jenkins - [`d3a993f`](https://github.com/eea/volto-eea-design-system/commit/d3a993f7c9f687d709e1c8bc48b4972aca7a161e)]
|
|
116
127
|
- Fix with sed the issue from line 714 missing } [David Ichim - [`e4e10a0`](https://github.com/eea/volto-eea-design-system/commit/e4e10a0a8a82c1fa20dcff9fa8178a6a938a7fd5)]
|
|
117
128
|
- Fixed link for don't use more than six colors [David Ichim - [`f42c698`](https://github.com/eea/volto-eea-design-system/commit/f42c69895258291ef72c0299e348f5671b2c127b)]
|
|
118
|
-
- Add Sonarqube tag using ied-frontend addons list [EEA Jenkins - [`a8fa4e1`](https://github.com/eea/volto-eea-design-system/commit/a8fa4e157f6351939fd6ee126f733efc1adf6dfe)]
|
|
119
129
|
- lint fix [David Ichim - [`5d4d60a`](https://github.com/eea/volto-eea-design-system/commit/5d4d60ac305b8694fec64a9cce625a1015e8486f)]
|
|
120
130
|
### [1.36.3](https://github.com/eea/volto-eea-design-system/compare/1.36.2...1.36.3) - 4 March 2025
|
|
121
131
|
|
|
@@ -149,7 +159,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
149
159
|
#### :hammer_and_wrench: Others
|
|
150
160
|
|
|
151
161
|
- Update package.json [Ichim David - [`40ae6a7`](https://github.com/eea/volto-eea-design-system/commit/40ae6a70377c54256f7365a12bded4e25b0c322e)]
|
|
152
|
-
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`b433236`](https://github.com/eea/volto-eea-design-system/commit/b433236f3e264304c86082281da90384da7ab0ff)]
|
|
153
162
|
### [1.34.1](https://github.com/eea/volto-eea-design-system/compare/1.34.0...1.34.1) - 14 October 2024
|
|
154
163
|
|
|
155
164
|
### [1.34.0](https://github.com/eea/volto-eea-design-system/compare/1.33.1...1.34.0) - 11 October 2024
|
|
@@ -231,7 +240,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
231
240
|
|
|
232
241
|
#### :hammer_and_wrench: Others
|
|
233
242
|
|
|
234
|
-
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`dfa1d1b`](https://github.com/eea/volto-eea-design-system/commit/dfa1d1bd53ae63b20aa0ef64c37bf71faf376290)]
|
|
235
243
|
### [1.31.0](https://github.com/eea/volto-eea-design-system/compare/1.23.8...1.31.0) - 22 May 2024
|
|
236
244
|
|
|
237
245
|
#### :boom: Breaking Change
|
|
@@ -260,7 +268,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
260
268
|
|
|
261
269
|
#### :hammer_and_wrench: Others
|
|
262
270
|
|
|
263
|
-
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`2ccf437`](https://github.com/eea/volto-eea-design-system/commit/2ccf4372f93d56ce3cc8bfd66de5c9fbb2698cf4)]
|
|
264
271
|
### [1.23.5](https://github.com/eea/volto-eea-design-system/compare/1.23.4...1.23.5) - 5 April 2024
|
|
265
272
|
|
|
266
273
|
#### :nail_care: Enhancements
|
|
@@ -296,8 +303,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
296
303
|
- Update package.json version to 1.23.0 [David Ichim - [`4b2eeee`](https://github.com/eea/volto-eea-design-system/commit/4b2eeee398b771ac80111e1755f67273c8940ced)]
|
|
297
304
|
- fixed merge conflict [David Ichim - [`efe0f4b`](https://github.com/eea/volto-eea-design-system/commit/efe0f4b7df1782f5143e1bee31c997801427d35c)]
|
|
298
305
|
- Update react-slick version to 0.30.1 [David Ichim - [`62d4570`](https://github.com/eea/volto-eea-design-system/commit/62d457014866fc075a3203fd0f9e66354aa73fe5)]
|
|
299
|
-
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`c6c74f0`](https://github.com/eea/volto-eea-design-system/commit/c6c74f049ee787632b8ad0ec0f28531ac4d0f20f)]
|
|
300
|
-
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`d3d7793`](https://github.com/eea/volto-eea-design-system/commit/d3d779363caa10f384d829a7e4242c5d54268099)]
|
|
301
306
|
### [1.23.0](https://github.com/eea/volto-eea-design-system/compare/1.22.7...1.23.0) - 19 February 2024
|
|
302
307
|
|
|
303
308
|
### [1.22.7](https://github.com/eea/volto-eea-design-system/compare/1.22.6...1.22.7) - 22 January 2024
|
|
@@ -383,11 +388,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
383
388
|
- Add dropdown test case to Header component [David Ichim - [`9ea3234`](https://github.com/eea/volto-eea-design-system/commit/9ea3234c2c0f1c819c7c2b54a75c56cda7812c56)]
|
|
384
389
|
- Remove unused import in Header.test.jsx [David Ichim - [`082069e`](https://github.com/eea/volto-eea-design-system/commit/082069e1f057786e0f1fb00c98d54b8e03b5d9c5)]
|
|
385
390
|
- Added some tests for TopDropdownMenu mobile and dropdown interaction [David Ichim - [`9d24488`](https://github.com/eea/volto-eea-design-system/commit/9d24488c1e97b2b1b14bd9bd8cb6f5b68414794b)]
|
|
386
|
-
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`eadf018`](https://github.com/eea/volto-eea-design-system/commit/eadf018aa1f32d310619ce4ef08f9b11950a20dc)]
|
|
387
391
|
- Lint fix [David Ichim - [`e29fd50`](https://github.com/eea/volto-eea-design-system/commit/e29fd50ee73477007dcf94a268596e6c11176d7b)]
|
|
388
|
-
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`947cb92`](https://github.com/eea/volto-eea-design-system/commit/947cb929c01ebb6f46bf124833fe1fec0f385edb)]
|
|
389
|
-
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`8356dfe`](https://github.com/eea/volto-eea-design-system/commit/8356dfe929039dcd165af0692cbbfc771a0f7fb4)]
|
|
390
|
-
- test: [JENKINS] Improve cypress time [valentinab25 - [`e38f17e`](https://github.com/eea/volto-eea-design-system/commit/e38f17ed735e743e59df7d06ca723c1218bdb569)]
|
|
391
392
|
### [1.20.0](https://github.com/eea/volto-eea-design-system/compare/1.19.0...1.20.0) - 2 November 2023
|
|
392
393
|
|
|
393
394
|
#### :rocket: New Features
|
|
@@ -420,9 +421,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
420
421
|
|
|
421
422
|
#### :house: Internal changes
|
|
422
423
|
|
|
423
|
-
- chore: [JENKINS] do not run tests on PR comments [valentinab25 - [`51b68fc`](https://github.com/eea/volto-eea-design-system/commit/51b68fc76a956996e01521b784262c67e7094d35)]
|
|
424
|
-
- chore: [JENKINS] add comment step [valentinab25 - [`5022758`](https://github.com/eea/volto-eea-design-system/commit/50227587db2c72d17e26e7b66f28d4c09b760873)]
|
|
425
|
-
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`a70ca64`](https://github.com/eea/volto-eea-design-system/commit/a70ca642918f578d6737d975e4769bac8312f48d)]
|
|
426
424
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`59ecb8e`](https://github.com/eea/volto-eea-design-system/commit/59ecb8e28b259472303324f9655b0cbbcbbf9c23)]
|
|
427
425
|
|
|
428
426
|
#### :hammer_and_wrench: Others
|
|
@@ -548,7 +546,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
548
546
|
|
|
549
547
|
#### :hammer_and_wrench: Others
|
|
550
548
|
|
|
551
|
-
- test: Fix eslint and yarn i18n [Alin Voinea - [`331149f`](https://github.com/eea/volto-eea-design-system/commit/331149f5eb16a9cc6f2d996f7b793909773063c2)]
|
|
552
549
|
- i18n: Add en [Alin Voinea - [`4584295`](https://github.com/eea/volto-eea-design-system/commit/458429530d993c27cfb962ddfe2f376f3568bf01)]
|
|
553
550
|
- Release 1.17.0 [Alin Voinea - [`e3c25ee`](https://github.com/eea/volto-eea-design-system/commit/e3c25eeeca5e863244faae396b5aa915d0702633)]
|
|
554
551
|
- test: add unit tests for DS components - refs #254313 [ana-oprea - [`0c4d4d1`](https://github.com/eea/volto-eea-design-system/commit/0c4d4d118b8e13082c576dc5c2dce6a715f49006)]
|
|
@@ -658,7 +655,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
658
655
|
#### :hammer_and_wrench: Others
|
|
659
656
|
|
|
660
657
|
- Release 1.14.0 [Alin Voinea - [`cb9084f`](https://github.com/eea/volto-eea-design-system/commit/cb9084fb2246dc1b729e12a419a26daa12c26f7a)]
|
|
661
|
-
- test: [JENKINS] set pipe fail [valentinab25 - [`1cdfc39`](https://github.com/eea/volto-eea-design-system/commit/1cdfc39d08f1ae301dea57f1e4be5265c4a4c6f9)]
|
|
662
658
|
- test: try storybook upload [valentinab25 - [`6d5833d`](https://github.com/eea/volto-eea-design-system/commit/6d5833d4419d00f1ac04c9eb78a0884214f9a494)]
|
|
663
659
|
- test: remove useless code [valentinab25 - [`2c14b0c`](https://github.com/eea/volto-eea-design-system/commit/2c14b0ce4596cfc11a81b9762677596d1861acfe)]
|
|
664
660
|
### [1.13.2](https://github.com/eea/volto-eea-design-system/compare/1.13.1...1.13.2) - 13 June 2023
|
|
@@ -697,7 +693,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
697
693
|
|
|
698
694
|
#### :house: Internal changes
|
|
699
695
|
|
|
700
|
-
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`fb2b166`](https://github.com/eea/volto-eea-design-system/commit/fb2b166d64f95a1c183901abfe0fe0254d1bbc7a)]
|
|
701
696
|
|
|
702
697
|
#### :house: Documentation changes
|
|
703
698
|
|
|
@@ -1031,7 +1026,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1031
1026
|
|
|
1032
1027
|
- Release 1.0.0-beta.5 [Alin Voinea - [`e4417e1`](https://github.com/eea/volto-eea-design-system/commit/e4417e121477511c350ae3fbe4e70aadb445ed86)]
|
|
1033
1028
|
- better useOnScreen hook [Andrei Grigore - [`c214b6b`](https://github.com/eea/volto-eea-design-system/commit/c214b6b76443f81c795ce2f3aa457562ec088b30)]
|
|
1034
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b227cf8`](https://github.com/eea/volto-eea-design-system/commit/b227cf8a8c44b9d91e9fda8a7999fb0a42bacdca)]
|
|
1035
1029
|
- feature(mobile): increased performance by lazy loading footer images #303 from eea/increase_performance [ichim-david - [`80d1df1`](https://github.com/eea/volto-eea-design-system/commit/80d1df1c459680331d486f9e8e6a95c9db0adbf6)]
|
|
1036
1030
|
- prettier [David Ichim - [`a7f8384`](https://github.com/eea/volto-eea-design-system/commit/a7f838470c1bcc4e2be115d514d92a1b686a5e9b)]
|
|
1037
1031
|
- fixed less build failure due to changes in footer.less [David Ichim - [`190bc8c`](https://github.com/eea/volto-eea-design-system/commit/190bc8cfa88191b45808f1e27c6e2737ee3d15b1)]
|
|
@@ -1102,7 +1096,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1102
1096
|
|
|
1103
1097
|
#### :house: Internal changes
|
|
1104
1098
|
|
|
1105
|
-
- chore(docusaurus): ignore website/.yarn [Giorgos Stamatis - [`0b33ffd`](https://github.com/eea/volto-eea-design-system/commit/0b33ffd1dda61b126e3cc5ff48888124d6aee41b)]
|
|
1106
1099
|
- style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
|
|
1107
1100
|
|
|
1108
1101
|
#### :house: Documentation changes
|
|
@@ -1299,7 +1292,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1299
1292
|
|
|
1300
1293
|
- Release 1.0.0-alpha.10 [Alin Voinea - [`7014d08`](https://github.com/eea/volto-eea-design-system/commit/7014d080ce114bd0bc039abeecbd7229333b0971)]
|
|
1301
1294
|
- Add variable definitions [kreafox - [`293fe65`](https://github.com/eea/volto-eea-design-system/commit/293fe65e2f24e6290e1286229169a77f9be4750e)]
|
|
1302
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`ef58a6f`](https://github.com/eea/volto-eea-design-system/commit/ef58a6f5ad8deea26b1395a86778fe1159b7617b)]
|
|
1303
1295
|
- Back to dev [Alin Voinea - [`31d4616`](https://github.com/eea/volto-eea-design-system/commit/31d461662b9184a7bbe190e86f3c47fab39229fe)]
|
|
1304
1296
|
### [1.0.0-alpha.9](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.8...1.0.0-alpha.9) - 28 December 2022
|
|
1305
1297
|
|
|
@@ -1357,7 +1349,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1357
1349
|
- bump package version [David Ichim - [`b4628be`](https://github.com/eea/volto-eea-design-system/commit/b4628bed134abc76e38a243d4e98143e19cef989)]
|
|
1358
1350
|
- feature(docusaurus, storybook): logos selection for sites plus inverted options #253 from eea/doc-logo-page [ichim-david - [`dbfc90d`](https://github.com/eea/volto-eea-design-system/commit/dbfc90d035dc40e9d4054347f00fde4de486d63d)]
|
|
1359
1351
|
- (feat): Add ability to disable the language select from website top menu - refs #158616 [dobri1408 - [`411c8e4`](https://github.com/eea/volto-eea-design-system/commit/411c8e4afaf0b2b9edfdeeecdca22aa4cc41f329)]
|
|
1360
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`c4769e9`](https://github.com/eea/volto-eea-design-system/commit/c4769e987d525f5dcafac8e6cf8a89fd8111667d)]
|
|
1361
1352
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`92feea0`](https://github.com/eea/volto-eea-design-system/commit/92feea09796c9ef0530f65fa1d34139905133215)]
|
|
1362
1353
|
- Proof reading page header section [ichim-david - [`230239e`](https://github.com/eea/volto-eea-design-system/commit/230239e1b22734fb8606656985bc5e513731e244)]
|
|
1363
1354
|
### [1.0.0-alpha.7](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.6...1.0.0-alpha.7) - 16 December 2022
|
|
@@ -1389,7 +1380,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1389
1380
|
#### :hammer_and_wrench: Others
|
|
1390
1381
|
|
|
1391
1382
|
- Release 1.0.0-alpha.7 [Alin Voinea - [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)]
|
|
1392
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`ce47e9b`](https://github.com/eea/volto-eea-design-system/commit/ce47e9b163bcb4eda988e3a87718b54ffbd3f99f)]
|
|
1393
1383
|
- added back descriptionDistance variable until package release [David Ichim - [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)]
|
|
1394
1384
|
- Back to dev [Alin Voinea - [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)]
|
|
1395
1385
|
- Proper paths if the package is not installed, but in development [Tiberiu Ichim - [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)]
|
|
@@ -1477,7 +1467,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1477
1467
|
#### :hammer_and_wrench: Others
|
|
1478
1468
|
|
|
1479
1469
|
- feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
|
|
1480
|
-
- Upgrade Jenkinsfile storybook to yarn 3 [Alin Voinea - [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)]
|
|
1481
1470
|
- Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
|
|
1482
1471
|
- perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
|
|
1483
1472
|
### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 22 November 2022
|
|
@@ -1570,7 +1559,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1570
1559
|
- modified left value of full width classes with toolbars [David Ichim - [`70d82d4`](https://github.com/eea/volto-eea-design-system/commit/70d82d47fbc2c00a3a709de0d5c087c8443a1eae)]
|
|
1571
1560
|
- WIP settings column grid width when using full size class [David Ichim - [`affc7ac`](https://github.com/eea/volto-eea-design-system/commit/affc7ac99527aa92d5a192d90dc8c9ec46a66404)]
|
|
1572
1561
|
- fix eslint [Miu Razvan - [`30c52e4`](https://github.com/eea/volto-eea-design-system/commit/30c52e4eb443555ca44c1b35df064e73d52c0a8b)]
|
|
1573
|
-
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`76a41c7`](https://github.com/eea/volto-eea-design-system/commit/76a41c786995fd54afe4d1c345de939f683ffa70)]
|
|
1574
1562
|
- fix broken variable call for contentBox.variables introduced in previous commit by mistake [David Ichim - [`d249c11`](https://github.com/eea/volto-eea-design-system/commit/d249c1160d19bedb174a2fde3fdab48d9ce297d4)]
|
|
1575
1563
|
- clean up [Miu Razvan - [`89f3cb3`](https://github.com/eea/volto-eea-design-system/commit/89f3cb33d70a14806a953f0acd1807e94169ee5c)]
|
|
1576
1564
|
- Feature(container): flexible container size #260 from eea/feature-flexible-container [ichim-david - [`8f84c5b`](https://github.com/eea/volto-eea-design-system/commit/8f84c5b67afe9cbe01b2a44a8f92a9a554e1036a)]
|
|
@@ -1672,7 +1660,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1672
1660
|
|
|
1673
1661
|
#### :nail_care: Enhancements
|
|
1674
1662
|
|
|
1675
|
-
- change(jenkins): added yarn policy for storybook building [ichim-david - [`3d1b844`](https://github.com/eea/volto-eea-design-system/commit/3d1b844efeea40b99c00c9aa97089e0a0be58a57)]
|
|
1676
1663
|
- change(docusaurus): typography updates [ichim-david - [`60a93a4`](https://github.com/eea/volto-eea-design-system/commit/60a93a4aece4e478ae13c2dfe697fd3703aa178a)]
|
|
1677
1664
|
- change(accordion): allow customization of accordion title with css variables [David Ichim - [`15e7d27`](https://github.com/eea/volto-eea-design-system/commit/15e7d27f02c640df582f51a51ef36e645723f842)]
|
|
1678
1665
|
- change(content-box): added css variables that will set text color and background for children [David Ichim - [`86cac53`](https://github.com/eea/volto-eea-design-system/commit/86cac531cc94386b6022e1be80dba826b39f2443)]
|
|
@@ -1707,7 +1694,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1707
1694
|
#### :hammer_and_wrench: Others
|
|
1708
1695
|
|
|
1709
1696
|
- Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
|
|
1710
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a5be6e`](https://github.com/eea/volto-eea-design-system/commit/4a5be6eec78dae230626e61ea2c77e7f3c62510d)]
|
|
1711
1697
|
- Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
|
|
1712
1698
|
### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
|
|
1713
1699
|
|
|
@@ -2463,10 +2449,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2463
2449
|
#### :hammer_and_wrench: Others
|
|
2464
2450
|
|
|
2465
2451
|
- prettier changes [David Ichim - [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)]
|
|
2466
|
-
- [JENKINSFILE] remove debug, add error per stage [valentinab25 - [`903eecd`](https://github.com/eea/volto-eea-design-system/commit/903eecdb6bcbb8d73cff5e447d80c85e2a2c906d)]
|
|
2467
|
-
- [JENKINSFILE] mention comment author in comment [valentinab25 - [`39a26aa`](https://github.com/eea/volto-eea-design-system/commit/39a26aa1ff0f35e93e8df9f442c29c5ab79ff493)]
|
|
2468
|
-
- [JENKINSFILE] format PR comments [valentinab25 - [`739438c`](https://github.com/eea/volto-eea-design-system/commit/739438c64950c745d630d1998314a2bed595b23a)]
|
|
2469
|
-
- [JENKINSFILE] Add failure comment, no jenkins fail [valentinab25 - [`c325bf1`](https://github.com/eea/volto-eea-design-system/commit/c325bf14f3fb0da150f2a56cda0a9f03d8d8a628)]
|
|
2470
2452
|
### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3) - 29 April 2022
|
|
2471
2453
|
|
|
2472
2454
|
#### :rocket: New Features
|
|
@@ -2891,7 +2873,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2891
2873
|
- set profile section overflow to auto [nileshgulia1 - [`71ab47f`](https://github.com/eea/volto-eea-design-system/commit/71ab47f89a433233c14b394c3824e607dd18a393)]
|
|
2892
2874
|
- remove segment custom width [nileshgulia1 - [`1d3ea40`](https://github.com/eea/volto-eea-design-system/commit/1d3ea40f98bbdc1eab95b4da739a659b5e29ec16)]
|
|
2893
2875
|
- fix profile section css overflow [nileshgulia1 - [`db5126f`](https://github.com/eea/volto-eea-design-system/commit/db5126fc902e191d1e18fb7e4c54877c8d8786e6)]
|
|
2894
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`647a6e3`](https://github.com/eea/volto-eea-design-system/commit/647a6e3e2093f2c4884c356eb148453551c8f33f)]
|
|
2895
2876
|
- fix warning related to proptype [nileshgulia1 - [`946c6c6`](https://github.com/eea/volto-eea-design-system/commit/946c6c6bc9dece0985ae4b9f9cad6ece2be0ff2c)]
|
|
2896
2877
|
- removed override already present in card.less [ichim-david - [`50d2ab2`](https://github.com/eea/volto-eea-design-system/commit/50d2ab26f85c8f409da02ec128cc1df34848ca69)]
|
|
2897
2878
|
- update [Miu Razvan - [`bbcab87`](https://github.com/eea/volto-eea-design-system/commit/bbcab87ef4c8475f347f0daf4ab7e428e69c2316)]
|
|
@@ -2978,7 +2959,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2978
2959
|
- remove segment custom width [nileshgulia1 - [`4a60d84`](https://github.com/eea/volto-eea-design-system/commit/4a60d84d5fe76578b7760aa1dad6eef9a20916a7)]
|
|
2979
2960
|
- Reformat header.less [Tiberiu Ichim - [`1f99dfc`](https://github.com/eea/volto-eea-design-system/commit/1f99dfc82c165304ca5600ce5138c1233615ab69)]
|
|
2980
2961
|
- fix profile section css overflow [nileshgulia1 - [`8fd2654`](https://github.com/eea/volto-eea-design-system/commit/8fd265413149f1b5e033dffa0fbcb5ef5ecad15f)]
|
|
2981
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6051724`](https://github.com/eea/volto-eea-design-system/commit/6051724437a38675e659c797bb5586ef81286ec0)]
|
|
2982
2962
|
- fix warning related to proptype [nileshgulia1 - [`824b9be`](https://github.com/eea/volto-eea-design-system/commit/824b9beff77aae139882cd50a1d670a02ec6f723)]
|
|
2983
2963
|
- refactor breadcrumbs component, make it functional and customizable [nileshgulia1 - [`4ec374e`](https://github.com/eea/volto-eea-design-system/commit/4ec374e20565eb0a5aed0ff67a02cd6f77eba1f0)]
|
|
2984
2964
|
- removed override already present in card.less [ichim-david - [`93c4e5a`](https://github.com/eea/volto-eea-design-system/commit/93c4e5aac9cc85ff2cc6c04180f6655d5f5616dc)]
|
|
@@ -3547,7 +3527,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
3547
3527
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`3af46d2`](https://github.com/eea/volto-eea-design-system/commit/3af46d2b14fa0b1ef44736f25b0f9ac93b23d18d)]
|
|
3548
3528
|
- Refs #140454 updated eea-design-system readme with extra info on package contents [David Ichim - [`d2efc3d`](https://github.com/eea/volto-eea-design-system/commit/d2efc3ddae7b91efc82cf3bce8fb8e42d696a780)]
|
|
3549
3529
|
- Refs #140454 add h1 to the list of elements that are max 800px and centered [David Ichim - [`7d3c30f`](https://github.com/eea/volto-eea-design-system/commit/7d3c30f409aa4cb43810839f8960589456cc1b2e)]
|
|
3550
|
-
- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`8d657d0`](https://github.com/eea/volto-eea-design-system/commit/8d657d056cde5163cfe90ac66bc973f55d82e5e9)]
|
|
3551
3530
|
### [0.1.0](https://github.com/eea/volto-eea-design-system/compare/0.0.1...0.1.0) - 17 November 2021
|
|
3552
3531
|
|
|
3553
3532
|
#### :hammer_and_wrench: Others
|
package/DEVELOP.md
CHANGED
|
@@ -26,21 +26,20 @@
|
|
|
26
26
|
|
|
27
27
|
### Or add @eeacms/volto-eea-design-system to your Volto project
|
|
28
28
|
|
|
29
|
-
Before starting make sure your development environment is properly set. See [Volto
|
|
29
|
+
Before starting make sure your development environment is properly set. See the official Plone documentation for [creating a project with Cookieplone](https://6.docs.plone.org/install/create-project-cookieplone.html) and [installing an add-on in development mode in Volto 18 and 19](https://6.docs.plone.org/volto/development/add-ons/install-an-add-on-dev-18.html).
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
For new Volto 18+ projects, use Cookieplone. It includes `mrs-developer` by default.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
1. Create a new Volto project with Cookieplone
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
yo @plone/volto my-volto-project --addon @eeacms/volto-eea-design-system --skip-install
|
|
38
|
-
cd my-volto-project
|
|
35
|
+
uvx cookieplone project
|
|
36
|
+
cd project-title
|
|
39
37
|
|
|
40
38
|
1. Add the following to `mrs.developer.json`:
|
|
41
39
|
|
|
42
40
|
{
|
|
43
41
|
"volto-eea-design-system": {
|
|
42
|
+
"output": "packages",
|
|
44
43
|
"url": "https://github.com/eea/volto-eea-design-system.git",
|
|
45
44
|
"package": "@eeacms/volto-eea-design-system",
|
|
46
45
|
"branch": "develop",
|
|
@@ -48,28 +47,31 @@ Before starting make sure your development environment is properly set. See [Vol
|
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
1.
|
|
50
|
+
1. Add `@eeacms/volto-eea-design-system` to the `addons` key in your project `volto.config.js`
|
|
51
|
+
|
|
52
|
+
1. Install or refresh the project setup
|
|
52
53
|
|
|
53
|
-
make
|
|
54
|
-
yarn
|
|
54
|
+
make install
|
|
55
55
|
|
|
56
|
-
1. Start backend
|
|
56
|
+
1. Start backend in one terminal
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
make backend-start
|
|
59
59
|
|
|
60
|
-
...wait for backend to setup and start
|
|
60
|
+
...wait for backend to setup and start, ending with `Ready to handle requests`
|
|
61
61
|
|
|
62
62
|
...you can also check http://localhost:8080/Plone
|
|
63
63
|
|
|
64
|
-
1. Start frontend
|
|
64
|
+
1. Start frontend in a second terminal
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
make frontend-start
|
|
67
67
|
|
|
68
68
|
1. Go to http://localhost:3000
|
|
69
69
|
|
|
70
70
|
1. Happy hacking!
|
|
71
71
|
|
|
72
|
-
cd
|
|
72
|
+
cd packages/volto-eea-design-system
|
|
73
|
+
|
|
74
|
+
For legacy Volto 17 projects, keep using the yarn-based workflow from the Volto 17 documentation.
|
|
73
75
|
|
|
74
76
|
## Cypress
|
|
75
77
|
|
|
@@ -81,7 +83,7 @@ project where you added `volto-eea-design-system` to `mrs.developer.json`
|
|
|
81
83
|
Go to:
|
|
82
84
|
|
|
83
85
|
```BASH
|
|
84
|
-
cd
|
|
86
|
+
cd packages/volto-eea-design-system/
|
|
85
87
|
```
|
|
86
88
|
|
|
87
89
|
Start:
|
package/README.md
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
[](https://github.com/eea/volto-eea-design-system/releases)
|
|
4
4
|
|
|
5
5
|
[](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-eea-design-system/job/master/display/redirect)
|
|
6
|
-
[](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-eea-design-system
|
|
6
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-design-system)
|
|
7
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-design-system)
|
|
8
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-design-system)
|
|
9
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-design-system)
|
|
10
10
|
|
|
11
11
|
[](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-eea-design-system/job/develop/display/redirect)
|
|
12
|
-
[](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-eea-design-system
|
|
12
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-design-system&branch=develop)
|
|
13
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-design-system&branch=develop)
|
|
14
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-design-system&branch=develop)
|
|
15
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-design-system&branch=develop)
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
[Volto](https://github.com/plone/volto) EEA Design System
|
|
@@ -52,6 +52,11 @@ See [Storybook](https://eea.github.io/eea-storybook/).
|
|
|
52
52
|
|
|
53
53
|
Go to http://localhost:3000
|
|
54
54
|
|
|
55
|
+
`make start` now defaults to Volto 18. To run the same setup against Volto 17, use:
|
|
56
|
+
|
|
57
|
+
VOLTO_VERSION=17 make
|
|
58
|
+
VOLTO_VERSION=17 make start
|
|
59
|
+
|
|
55
60
|
### Add volto-eea-design-system to your Volto project
|
|
56
61
|
|
|
57
62
|
1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
|
|
@@ -65,30 +70,39 @@ Go to http://localhost:3000
|
|
|
65
70
|
* If you already have a volto project, just update `package.json`:
|
|
66
71
|
|
|
67
72
|
```JSON
|
|
68
|
-
"addons": [
|
|
69
|
-
"@eeacms/volto-eea-design-system"
|
|
70
|
-
],
|
|
71
|
-
|
|
72
73
|
"dependencies": {
|
|
73
74
|
"@eeacms/volto-eea-design-system": "*"
|
|
74
75
|
}
|
|
75
76
|
```
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
and `volto.config.js`:
|
|
79
|
+
|
|
80
|
+
```JavaScript
|
|
81
|
+
const addons = ['@eeacms/volto-eea-design-system'];
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
* If not, create one with Cookieplone, as recommended by the official Plone documentation for Volto 18+:
|
|
78
85
|
|
|
79
86
|
```
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
cd my-volto-project
|
|
87
|
+
uvx cookieplone project
|
|
88
|
+
cd project-title
|
|
83
89
|
```
|
|
84
90
|
|
|
85
|
-
1. Install
|
|
91
|
+
1. Install or update dependencies, then start the project:
|
|
86
92
|
|
|
87
93
|
```
|
|
88
|
-
|
|
89
|
-
yarn start
|
|
94
|
+
make install
|
|
90
95
|
```
|
|
91
96
|
|
|
97
|
+
For a Cookieplone project, start the backend and frontend in separate terminals:
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
make backend-start
|
|
101
|
+
make frontend-start
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
For a legacy Volto 17 project, install the package with `yarn` and restart the frontend as usual.
|
|
105
|
+
|
|
92
106
|
1. Go to http://localhost:3000
|
|
93
107
|
|
|
94
108
|
1. Happy editing!
|
package/docker-compose.yml
CHANGED
package/jest-addon.config.js
CHANGED
|
@@ -19,6 +19,12 @@ const path = require('path');
|
|
|
19
19
|
const fs = require('fs');
|
|
20
20
|
const fg = require('fast-glob');
|
|
21
21
|
|
|
22
|
+
const voltoSlatePath = fs.existsSync(
|
|
23
|
+
path.join(__dirname, '../../../node_modules/@plone/volto-slate/src'),
|
|
24
|
+
)
|
|
25
|
+
? '<rootDir>/node_modules/@plone/volto-slate/src'
|
|
26
|
+
: '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src';
|
|
27
|
+
|
|
22
28
|
// Get the addon name from the current file path
|
|
23
29
|
const pathParts = __filename.split(path.sep);
|
|
24
30
|
const addonsIdx = pathParts.lastIndexOf('addons');
|
|
@@ -424,10 +430,8 @@ module.exports = {
|
|
|
424
430
|
'@eeacms/countup': '<rootDir>/node_modules/@eeacms/countup/lib',
|
|
425
431
|
'@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
|
|
426
432
|
'@eeacms/(.*?)$': '<rootDir>/node_modules/@eeacms/$1/src',
|
|
427
|
-
'@plone/volto-slate$':
|
|
428
|
-
|
|
429
|
-
'@plone/volto-slate/(.*)$':
|
|
430
|
-
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src/$1',
|
|
433
|
+
'@plone/volto-slate$': voltoSlatePath,
|
|
434
|
+
'@plone/volto-slate/(.*)$': `${voltoSlatePath}/$1`,
|
|
431
435
|
'~/(.*)$': '<rootDir>/src/$1',
|
|
432
436
|
'load-volto-addons':
|
|
433
437
|
'<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
|
package/package.json
CHANGED
|
@@ -20,10 +20,12 @@ function useFirstVisited(ref, rootMargin = '0px') {
|
|
|
20
20
|
observer.observe(ref.current);
|
|
21
21
|
}
|
|
22
22
|
return () => {
|
|
23
|
-
if (ref?.current) {
|
|
23
|
+
if (ref?.current && typeof observer.unobserve === 'function') {
|
|
24
24
|
observer.unobserve(ref.current);
|
|
25
25
|
}
|
|
26
|
-
observer.disconnect
|
|
26
|
+
if (typeof observer.disconnect === 'function') {
|
|
27
|
+
observer.disconnect();
|
|
28
|
+
}
|
|
27
29
|
};
|
|
28
30
|
}, [ref, rootMargin, intersected]);
|
|
29
31
|
return intersected;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import { Default } from './Accordion.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Default component', () => {
|
|
7
7
|
it('renders correctly and fires keyDown Enter events', () => {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import Banner from './Banner';
|
|
4
4
|
import { sharePage, getImageSource } from './Banner';
|
|
5
|
-
import '@testing-library/jest-dom
|
|
5
|
+
import '@testing-library/jest-dom';
|
|
6
6
|
|
|
7
7
|
describe('Banner', () => {
|
|
8
8
|
it('renders without errors', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Default, Inverted, Link, Labeled } from './CallToAction.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Link', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { GridIconCard, Default } from './IconCard.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('GridIconCard component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import { Default } from './Confirm.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Default component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { DividerWithContent, Default } from './Divider.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('DividerWithContent component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Default } from './DownloadLabeledIcon.stories';
|
|
4
4
|
import DownloadLabeledIcon from './DownloadLabeledIcon';
|
|
5
|
-
import '@testing-library/jest-dom
|
|
5
|
+
import '@testing-library/jest-dom';
|
|
6
6
|
|
|
7
7
|
describe('Default component', () => {
|
|
8
8
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import Description from './Description';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Description component', () => {
|
|
7
7
|
it('renders corectly with children', () => {
|
|
@@ -5,7 +5,7 @@ import { Router } from 'react-router-dom';
|
|
|
5
5
|
import { Default } from './Footer.stories';
|
|
6
6
|
import { Provider } from 'react-redux';
|
|
7
7
|
import Footer from './Footer';
|
|
8
|
-
import '@testing-library/jest-dom
|
|
8
|
+
import '@testing-library/jest-dom';
|
|
9
9
|
import configureStore from 'redux-mock-store';
|
|
10
10
|
|
|
11
11
|
describe('Default', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import Social from './Social';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Social component', () => {
|
|
7
7
|
it('renders corectly with children', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { ErrorDropdown, Default } from './Dropdown.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('ErrorDropdown component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import { Default, invalid as Invalid, BinaryRadio } from './Radio.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('BinaryRadio component', () => {
|
|
7
7
|
it('renders corectly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { ErrorTextArea, LabeledTextArea, Default } from './Textarea.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('ErrorTextArea component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { GridExamples, Basic12 } from './ComponentGrid.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('GridExamples component', () => {
|
|
7
7
|
it('renders corectly', () => {
|
package/src/ui/Header/Header.jsx
CHANGED
|
@@ -9,7 +9,7 @@ import cx from 'classnames';
|
|
|
9
9
|
import { Container, Image, Menu, Grid, Dropdown } from 'semantic-ui-react'; // Dropdown,
|
|
10
10
|
|
|
11
11
|
import closeIcon from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Header/close-line.svg';
|
|
12
|
-
import searchIcon from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Header/search
|
|
12
|
+
import searchIcon from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Header/ai-search.svg';
|
|
13
13
|
import burgerIcon from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Header/menu-line.svg';
|
|
14
14
|
|
|
15
15
|
import HeaderSearchPopUp from './HeaderSearchPopUp';
|
|
@@ -3,7 +3,7 @@ import { createMemoryHistory } from 'history';
|
|
|
3
3
|
import { Router } from 'react-router-dom';
|
|
4
4
|
import { render, fireEvent, act } from '@testing-library/react';
|
|
5
5
|
import { Default } from './Header.stories';
|
|
6
|
-
import '@testing-library/jest-dom
|
|
6
|
+
import '@testing-library/jest-dom';
|
|
7
7
|
|
|
8
8
|
global.ResizeObserver = require('resize-observer-polyfill');
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
|
|
3
|
-
import '@testing-library/jest-dom
|
|
3
|
+
import '@testing-library/jest-dom';
|
|
4
4
|
|
|
5
5
|
import { createMemoryHistory } from 'history';
|
|
6
6
|
import { Router } from 'react-router-dom';
|
|
7
|
-
import '@testing-library/jest-dom
|
|
7
|
+
import '@testing-library/jest-dom';
|
|
8
8
|
|
|
9
9
|
// Mock subcomponents that pull in ESM helpers not transformed by Jest here
|
|
10
10
|
jest.doMock('./HeaderSearchPopUp', () => () => null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
|
|
3
|
-
import '@testing-library/jest-dom
|
|
3
|
+
import '@testing-library/jest-dom';
|
|
4
4
|
import { createMemoryHistory } from 'history';
|
|
5
5
|
import { Router } from 'react-router-dom';
|
|
6
6
|
import HeaderMenuPopUp, { StandardMegaMenuGrid } from './HeaderMenuPopUp';
|
|
@@ -3,7 +3,7 @@ import { render, screen, fireEvent } from '@testing-library/react';
|
|
|
3
3
|
import { createMemoryHistory } from 'history';
|
|
4
4
|
import { Router } from 'react-router-dom';
|
|
5
5
|
import HeaderSearchPopUp from './HeaderSearchPopUp';
|
|
6
|
-
import '@testing-library/jest-dom
|
|
6
|
+
import '@testing-library/jest-dom';
|
|
7
7
|
|
|
8
8
|
describe('HeaderSearchPopUp', () => {
|
|
9
9
|
let history;
|
|
@@ -120,8 +120,7 @@ Default.args = {
|
|
|
120
120
|
fullHeight: true,
|
|
121
121
|
image: true,
|
|
122
122
|
quoted: true,
|
|
123
|
-
text:
|
|
124
|
-
'Forests are a key part of the solution to combat climate change and biodiversity loss.',
|
|
123
|
+
text: 'Forests are a key part of the solution to combat climate change and biodiversity loss.',
|
|
125
124
|
textVariant: 'tertiary',
|
|
126
125
|
textAlign: 'left',
|
|
127
126
|
metaAlign: 'left',
|
|
@@ -158,8 +157,7 @@ Playground.args = {
|
|
|
158
157
|
fullHeight: true,
|
|
159
158
|
image: true,
|
|
160
159
|
quoted: false,
|
|
161
|
-
text:
|
|
162
|
-
'Forests are a key part of the solution to combat climate change and biodiversity loss.',
|
|
160
|
+
text: 'Forests are a key part of the solution to combat climate change and biodiversity loss.',
|
|
163
161
|
textVariant: 'tertiary',
|
|
164
162
|
textAlign: 'left',
|
|
165
163
|
metaAlign: 'left',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Playground, Default } from './Hero.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Playground component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Default } from './InpageNavigation.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Default component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import InpageNavigation from './InpageNavigation';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('InpageNavigation', () => {
|
|
7
7
|
let scrollToMock;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { DefaultGroup, DefaultItem, Default } from './Item.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('DefaultGroup Component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Default, Basic, Corner, Ribbon } from './Label.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Basic component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Default } from './LabeledIconGroup.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Default component', () => {
|
|
7
7
|
it('renders corectly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import LanguageLabeledIcon from './LanguageLabeledIcon';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
jest.mock('semantic-ui-react', () => {
|
|
7
7
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { FullPageLoader, Default } from './Loader.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('FullPageLoader component', () => {
|
|
7
7
|
it('renders corectly', () => {
|
|
@@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
|
|
|
3
3
|
import { Logo } from './Logo.stories';
|
|
4
4
|
import { createMemoryHistory } from 'history';
|
|
5
5
|
import { Router } from 'react-router-dom';
|
|
6
|
-
import '@testing-library/jest-dom
|
|
6
|
+
import '@testing-library/jest-dom';
|
|
7
7
|
|
|
8
8
|
describe('FluidGrid component', () => {
|
|
9
9
|
let history;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Playground, Link, Default } from './Image.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Playground component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { render, fireEvent } from '@testing-library/react';
|
|
2
2
|
import { Default } from './Modal.stories';
|
|
3
3
|
import { Button } from 'semantic-ui-react';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Default component', () => {
|
|
7
7
|
it('renders corectly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import Popup from './Popup';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
jest.mock('@popperjs/core', () => {
|
|
7
7
|
const originalModule = jest.requireActual('@popperjs/core');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Default, ProgressWithValue, CustomColor } from './Progress.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('CustomColor component', () => {
|
|
7
7
|
it('renders correctly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Inline } from './Testimonial.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Inline component', () => {
|
|
7
7
|
it('renders corectly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { Default } from './Tab.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('It renderes corectly', () => {
|
|
7
7
|
it('renders corectly', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import { Default, Sortable, Responsive } from './Table.stories';
|
|
4
|
-
import '@testing-library/jest-dom
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
5
|
|
|
6
6
|
describe('Responsive component', () => {
|
|
7
7
|
it('renders corectly', () => {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="20px" viewBox="0 -960 960 960" width="20px">
|
|
2
|
+
<path
|
|
3
|
+
d="M740-560q-1 0-8-6-16-61-60.5-105.5T566-732q-2-1-6-8 0-2 6-8 61-16 105.5-60.5T732-914q1-2 8-6 2 0 8 6 17 61 61 105.5T914-748q2 0 6 8 0 1-6 8-61 16-105.5 60.5T748-566q0 2-8 6Zm44 440L532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q29 0 57 6t53 18l-10 87q-22-15-47-23t-53-8q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400q66 0 115.5-42.5T557-555l72 50q-7 22-17.5 41T588-428l252 252-56 56Z"
|
|
4
|
+
fill="rgba(255,255,255,1)">
|
|
5
|
+
</path>
|
|
6
|
+
</svg>
|