@eeacms/volto-cca-policy 0.3.7 → 0.3.8
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/CHANGELOG.md +18 -1
- package/package.json +1 -1
- package/src/helpers/index.js +0 -11
- package/src/index.js +30 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,16 @@ 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
|
-
### [0.3.
|
|
7
|
+
### [0.3.8](https://github.com/eea/volto-cca-policy/compare/0.3.7...0.3.8) - 20 February 2025
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix(menu): move long menu item lists in columns - refs #272268 [kreafox - [`0266134`](https://github.com/eea/volto-cca-policy/commit/02661345ccd52aba371b76f1f0c7b5de8fcc920b)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- code cleanup [kreafox - [`0087f9a`](https://github.com/eea/volto-cca-policy/commit/0087f9a6ef3518a4670458f0e3b224e1258e0ea2)]
|
|
16
|
+
### [0.3.7](https://github.com/eea/volto-cca-policy/compare/0.3.6...0.3.7) - 14 February 2025
|
|
8
17
|
|
|
9
18
|
#### :rocket: Dependency updates
|
|
10
19
|
|
|
@@ -1934,10 +1943,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1934
1943
|
- Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
|
|
1935
1944
|
- Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
|
|
1936
1945
|
- Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
|
|
1946
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
|
|
1947
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
|
|
1937
1948
|
### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
|
|
1938
1949
|
|
|
1939
1950
|
#### :house: Internal changes
|
|
1940
1951
|
|
|
1952
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
|
|
1941
1953
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
|
|
1942
1954
|
|
|
1943
1955
|
#### :hammer_and_wrench: Others
|
|
@@ -1954,6 +1966,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1954
1966
|
- Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
|
|
1955
1967
|
- Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
|
|
1956
1968
|
- Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
|
|
1969
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
|
|
1970
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
|
|
1971
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
|
|
1957
1972
|
- Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
|
|
1958
1973
|
- Refs #256681 - Fix error in CCA Event view menu. ([React Intl] An id must be provided to format a message.) [GhitaB - [`517eeb8`](https://github.com/eea/volto-cca-policy/commit/517eeb817264a47bbfd6b9b7d22aaf22d44ed224)]
|
|
1959
1974
|
- Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
|
|
@@ -2170,6 +2185,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2170
2185
|
|
|
2171
2186
|
#### :house: Internal changes
|
|
2172
2187
|
|
|
2188
|
+
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
|
|
2173
2189
|
|
|
2174
2190
|
#### :hammer_and_wrench: Others
|
|
2175
2191
|
|
|
@@ -2650,6 +2666,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2650
2666
|
#### :hammer_and_wrench: Others
|
|
2651
2667
|
|
|
2652
2668
|
- Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
|
|
2669
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
|
|
2653
2670
|
### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
|
|
2654
2671
|
|
|
2655
2672
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
package/src/helpers/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import config from '@plone/volto/registry';
|
|
2
|
-
import { isArray } from 'lodash';
|
|
3
|
-
import { serializeNodes } from '@plone/volto-slate/editor/render';
|
|
4
1
|
import { OBSERVATORY_PARTNERS } from './Constants';
|
|
5
2
|
export {
|
|
6
3
|
HTMLField,
|
|
@@ -27,14 +24,6 @@ export {
|
|
|
27
24
|
} from './Constants';
|
|
28
25
|
export clientOnly from './clientOnly';
|
|
29
26
|
|
|
30
|
-
export const createSlateParagraph = (text) => {
|
|
31
|
-
return isArray(text) ? text : config.settings.slate.defaultValue();
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export const serializeText = (text) => {
|
|
35
|
-
return isArray(text) ? serializeNodes(text) : text;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
27
|
export const capitalizeFirstLetter = (str) =>
|
|
39
28
|
str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
40
29
|
|
package/src/index.js
CHANGED
|
@@ -411,6 +411,36 @@ const applyConfig = (config) => {
|
|
|
411
411
|
{ cssClass: 'small-text', label: 'Small text' },
|
|
412
412
|
];
|
|
413
413
|
|
|
414
|
+
// TODO: fix in all languages
|
|
415
|
+
config.settings.menuItemsLayouts = {
|
|
416
|
+
'/en/countries-regions': {
|
|
417
|
+
menuItemColumns: [
|
|
418
|
+
'three wide column',
|
|
419
|
+
'six wide column',
|
|
420
|
+
'three wide column',
|
|
421
|
+
],
|
|
422
|
+
menuItemChildrenListColumns: [1, 4, 1],
|
|
423
|
+
},
|
|
424
|
+
'/en/eu-adaptation-policy': {
|
|
425
|
+
menuItemColumns: [
|
|
426
|
+
'two wide column',
|
|
427
|
+
'two wide column',
|
|
428
|
+
'six wide column',
|
|
429
|
+
'two wide column',
|
|
430
|
+
],
|
|
431
|
+
menuItemChildrenListColumns: [1, 1, 4, 1],
|
|
432
|
+
},
|
|
433
|
+
'/en/observatory/evidence-on-climate-and-health-menu': {
|
|
434
|
+
menuItemColumns: [
|
|
435
|
+
'six wide column',
|
|
436
|
+
'two wide column',
|
|
437
|
+
'two wide column',
|
|
438
|
+
'two wide column',
|
|
439
|
+
],
|
|
440
|
+
menuItemChildrenListColumns: [4, 1, 1, 1],
|
|
441
|
+
},
|
|
442
|
+
};
|
|
443
|
+
|
|
414
444
|
// we won't need the listing for Folders
|
|
415
445
|
delete config.views.layoutViews.listing_view;
|
|
416
446
|
|