@eeacms/volto-widget-toggle 5.0.0 → 5.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
|
|
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,12 @@ 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
|
-
### [5.0.
|
|
7
|
+
### [5.0.1](https://github.com/eea/volto-widget-toggle/compare/5.0.0...5.0.1) - 8 April 2026
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- test: Fix make test [Alin V. (Claudiu) - [`8cf30a1`](https://github.com/eea/volto-widget-toggle/commit/8cf30a17057899a44781075fdf7ed962d9607920)]
|
|
12
|
+
## [5.0.0](https://github.com/eea/volto-widget-toggle/compare/4.0.0...5.0.0) - 25 March 2026
|
|
8
13
|
|
|
9
14
|
#### :rocket: New Features
|
|
10
15
|
|
|
@@ -12,10 +17,18 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
12
17
|
|
|
13
18
|
#### :house: Internal changes
|
|
14
19
|
|
|
20
|
+
- chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`691da0c`](https://github.com/eea/volto-widget-toggle/commit/691da0c9f93f118ed6170984a3ae379ed5fe3757)]
|
|
21
|
+
- chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`b15a0a7`](https://github.com/eea/volto-widget-toggle/commit/b15a0a778364dad6918fa4a3f932a168c2fb099c)]
|
|
15
22
|
|
|
16
23
|
#### :hammer_and_wrench: Others
|
|
17
24
|
|
|
18
25
|
- tests: Fix Sonar Qube tags - refs #297339 [Alin Voinea - [`ed169f3`](https://github.com/eea/volto-widget-toggle/commit/ed169f3c6e44d0b109d69440b67db55ad3c09864)]
|
|
26
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`350b65a`](https://github.com/eea/volto-widget-toggle/commit/350b65af9951fbcb9a8fb54a7aed8d786edd8ae6)]
|
|
27
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`a992ac5`](https://github.com/eea/volto-widget-toggle/commit/a992ac5f81f7c2a3b9cbc5b9b33a88429125529d)]
|
|
28
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`19d59fc`](https://github.com/eea/volto-widget-toggle/commit/19d59fc2538ea4062eb66af3fa1e759855eae5d7)]
|
|
29
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`e171afa`](https://github.com/eea/volto-widget-toggle/commit/e171afad2a5fc90fc2ee284021e419291c4336bf)]
|
|
30
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`d5af697`](https://github.com/eea/volto-widget-toggle/commit/d5af697b6918ad93832fc2bfa29195653fe2941e)]
|
|
31
|
+
- Add Sonarqube tag using ied-frontend addons list [EEA Jenkins - [`e007d29`](https://github.com/eea/volto-widget-toggle/commit/e007d29544dc1bf94ba433dcac1ab4cf66167513)]
|
|
19
32
|
## [4.0.0](https://github.com/eea/volto-widget-toggle/compare/3.1.4...4.0.0) - 22 April 2024
|
|
20
33
|
|
|
21
34
|
#### :rocket: New Features
|
|
@@ -25,10 +38,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
25
38
|
|
|
26
39
|
#### :house: Internal changes
|
|
27
40
|
|
|
41
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`ecd9264`](https://github.com/eea/volto-widget-toggle/commit/ecd9264bbf3eaef23e09e7323c264ec1d5954c53)]
|
|
28
42
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`78c47fe`](https://github.com/eea/volto-widget-toggle/commit/78c47fea7a704d1addd796ac5f515d262379da92)]
|
|
29
43
|
|
|
30
44
|
#### :hammer_and_wrench: Others
|
|
31
45
|
|
|
46
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`46ff8ad`](https://github.com/eea/volto-widget-toggle/commit/46ff8ad8fb0c50ffb7527ac292a3b4b7a8d0edc0)]
|
|
47
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`a9b8e96`](https://github.com/eea/volto-widget-toggle/commit/a9b8e967be630d5893bf8b5134124cf07137f99b)]
|
|
48
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`4684626`](https://github.com/eea/volto-widget-toggle/commit/4684626e63b7103fc4d132d91b9696d91cc968ec)]
|
|
49
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0e8e6e5`](https://github.com/eea/volto-widget-toggle/commit/0e8e6e5b4dc2b183cb77734c7b9dbcace0428a42)]
|
|
50
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`8daf138`](https://github.com/eea/volto-widget-toggle/commit/8daf138f2a820d27111bbbae878d35c1eb514e70)]
|
|
51
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`7f73f01`](https://github.com/eea/volto-widget-toggle/commit/7f73f01bddfb9d1bc52d1d13fcd322f8659527ed)]
|
|
52
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`45d1523`](https://github.com/eea/volto-widget-toggle/commit/45d1523d342925b6e61200f96e44e898df39c51d)]
|
|
53
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`cd49aca`](https://github.com/eea/volto-widget-toggle/commit/cd49aca874da556ce3d18e8c259cbbe9a1d93c8b)]
|
|
32
54
|
### [3.1.4](https://github.com/eea/volto-widget-toggle/compare/3.1.3...3.1.4) - 16 October 2023
|
|
33
55
|
|
|
34
56
|
#### :house: Internal changes
|
|
@@ -53,6 +75,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
53
75
|
|
|
54
76
|
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`b2f509e`](https://github.com/eea/volto-widget-toggle/commit/b2f509eb236e0beeccfc8bc89f4c6527a3fca223)]
|
|
55
77
|
- test: Fix package.json scripts to use makefile [Alin Voinea - [`72e8245`](https://github.com/eea/volto-widget-toggle/commit/72e8245a4741988849eaa73e5fd238ff6d340fa9)]
|
|
78
|
+
- test: Fix eslint and yarn i18n [Alin Voinea - [`034eaf8`](https://github.com/eea/volto-widget-toggle/commit/034eaf890faa3a9c09aa6f4ddca1bc04e46782a8)]
|
|
56
79
|
- i18n: Add en [Alin Voinea - [`e60d799`](https://github.com/eea/volto-widget-toggle/commit/e60d799a64230544e37e1f4796dc73bbc0e674c6)]
|
|
57
80
|
- test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`f86b2f7`](https://github.com/eea/volto-widget-toggle/commit/f86b2f7119f24b637e8bc8101effc2c2c3416a65)]
|
|
58
81
|
### [3.1.2](https://github.com/eea/volto-widget-toggle/compare/3.1.1...3.1.2) - 24 July 2023
|
|
@@ -63,11 +86,20 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
63
86
|
|
|
64
87
|
- test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`da228a9`](https://github.com/eea/volto-widget-toggle/commit/da228a925ea784b4b418f37ea07418de87759670)]
|
|
65
88
|
- test: Fix test config, coverage Refs #253277 [valentinab25 - [`b4f3492`](https://github.com/eea/volto-widget-toggle/commit/b4f3492448826968dfbb979fad00f0b65d644017)]
|
|
89
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`08bfec1`](https://github.com/eea/volto-widget-toggle/commit/08bfec176ebdf6dff13a7db969a73ca9d8415ee8)]
|
|
90
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`1324cce`](https://github.com/eea/volto-widget-toggle/commit/1324cceab3305bf02ab2004a4ff77d492f44481e)]
|
|
91
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`13d684d`](https://github.com/eea/volto-widget-toggle/commit/13d684daf218103723779a470ff3dc7f101e93c1)]
|
|
66
92
|
### [3.1.0](https://github.com/eea/volto-widget-toggle/compare/3.0.1...3.1.0) - 27 March 2023
|
|
67
93
|
|
|
68
94
|
#### :hammer_and_wrench: Others
|
|
69
95
|
|
|
96
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`11a80c7`](https://github.com/eea/volto-widget-toggle/commit/11a80c7ce1f66aa0c7ec600c626875ab7ac8c1cb)]
|
|
97
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`c353ca1`](https://github.com/eea/volto-widget-toggle/commit/c353ca1794b99b2e5f6681ad93ab844ef33e117e)]
|
|
98
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`143e5be`](https://github.com/eea/volto-widget-toggle/commit/143e5be8400af60658baa34a7934f707df121f83)]
|
|
70
99
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`c658d9f`](https://github.com/eea/volto-widget-toggle/commit/c658d9f0fc0fc6cc4b26041b79c93c0982b152c5)]
|
|
100
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`6f8b43e`](https://github.com/eea/volto-widget-toggle/commit/6f8b43e0fe92d2065725be355b800446fedf2992)]
|
|
101
|
+
- yarn 3 [Alin Voinea - [`02d53da`](https://github.com/eea/volto-widget-toggle/commit/02d53daff4ee2886f5533ce8afd0d4e67cd0a9f1)]
|
|
102
|
+
- Add Sonarqube tag using demo-kitkat-frontend addons list [EEA Jenkins - [`42059ef`](https://github.com/eea/volto-widget-toggle/commit/42059efe39cf11c31b1a48ddf6503aaf9da14db7)]
|
|
71
103
|
### [3.0.1](https://github.com/eea/volto-widget-toggle/compare/3.0.0...3.0.1) - 16 November 2022
|
|
72
104
|
|
|
73
105
|
#### :hammer_and_wrench: Others
|
|
@@ -80,15 +112,21 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
80
112
|
- Cleanup [Alin Voinea - [`f0bfe89`](https://github.com/eea/volto-widget-toggle/commit/f0bfe892db782472d0911b3562346d80bed2fb94)]
|
|
81
113
|
- Typo [Miu Razvan - [`f1faa3d`](https://github.com/eea/volto-widget-toggle/commit/f1faa3d1c0239d377a75b375dcf092cea048c121)]
|
|
82
114
|
- Use latest cypress [Miu Razvan - [`165ef4a`](https://github.com/eea/volto-widget-toggle/commit/165ef4a017833e757a69da734985acd18155228e)]
|
|
115
|
+
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`45037b0`](https://github.com/eea/volto-widget-toggle/commit/45037b01295d0593929af9ff6f53823e51129f43)]
|
|
116
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`de17f98`](https://github.com/eea/volto-widget-toggle/commit/de17f983029cda87580f39b6ab7b1a0139e080cd)]
|
|
83
117
|
- update(jest): add @plone/volto-slate resolver refs- #153447 [nileshgulia1 - [`b5e6889`](https://github.com/eea/volto-widget-toggle/commit/b5e6889bc22efaeec2025bd79dfe2a839650e4a6)]
|
|
84
118
|
### [2.2.7](https://github.com/eea/volto-widget-toggle/compare/2.2.6...2.2.7) - 30 June 2022
|
|
85
119
|
|
|
86
120
|
#### :hammer_and_wrench: Others
|
|
87
121
|
|
|
122
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`78e846a`](https://github.com/eea/volto-widget-toggle/commit/78e846a63de32fc42db181a07859a886b10d8b4e)]
|
|
123
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`75191c3`](https://github.com/eea/volto-widget-toggle/commit/75191c366506d17db335e2b305e5ea8f058e9dfb)]
|
|
124
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`3806c6c`](https://github.com/eea/volto-widget-toggle/commit/3806c6c481c069ab939b7603c7d3e102563276dd)]
|
|
88
125
|
### [2.2.6](https://github.com/eea/volto-widget-toggle/compare/2.2.5...2.2.6) - 3 January 2022
|
|
89
126
|
|
|
90
127
|
#### :hammer_and_wrench: Others
|
|
91
128
|
|
|
129
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`c2e3484`](https://github.com/eea/volto-widget-toggle/commit/c2e3484b3396dbabf38a8b9e8f6df0b89d4aa663)]
|
|
92
130
|
### [2.2.5](https://github.com/eea/volto-widget-toggle/compare/2.2.4...2.2.5) - 16 December 2021
|
|
93
131
|
|
|
94
132
|
### [2.2.4](https://github.com/eea/volto-widget-toggle/compare/2.2.3...2.2.4) - 10 December 2021
|
|
@@ -96,6 +134,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
96
134
|
#### :hammer_and_wrench: Others
|
|
97
135
|
|
|
98
136
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`2bd2039`](https://github.com/eea/volto-widget-toggle/commit/2bd203979963ee5cb15592470e1d341d1bd65291)]
|
|
137
|
+
- Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`af5afe1`](https://github.com/eea/volto-widget-toggle/commit/af5afe1263aff21801bbb8239163ac01644f2a7e)]
|
|
138
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`2d60373`](https://github.com/eea/volto-widget-toggle/commit/2d60373b280dcb2f902e4dc6fff0bdb8ea7d7ac7)]
|
|
139
|
+
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`80527c1`](https://github.com/eea/volto-widget-toggle/commit/80527c1f72bd8cc325ff1c072def18d24c3e99ae)]
|
|
140
|
+
- Add Sonarqube tag using sustainability-frontend addons list [EEA Jenkins - [`bc52e72`](https://github.com/eea/volto-widget-toggle/commit/bc52e72e32197ca82f93bac645f0094bc7db7ab1)]
|
|
141
|
+
- Add Sonarqube tag using climate-energy-frontend addons list [EEA Jenkins - [`30397bd`](https://github.com/eea/volto-widget-toggle/commit/30397bde9a045be3c2e6614af798ce11f18e3039)]
|
|
142
|
+
- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`dd3fb67`](https://github.com/eea/volto-widget-toggle/commit/dd3fb67693900db1ce6d8f631c61a2a5c25d9b70)]
|
|
143
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`54d09d1`](https://github.com/eea/volto-widget-toggle/commit/54d09d164591f1cf3d47a69838ccbd9abb8f22b6)]
|
|
99
144
|
### [2.2.3](https://github.com/eea/volto-widget-toggle/compare/2.2.2...2.2.3) - 28 June 2021
|
|
100
145
|
|
|
101
146
|
#### :hammer_and_wrench: Others
|
|
@@ -129,6 +174,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
129
174
|
|
|
130
175
|
- Release 1.0.1 [Alin Voinea - [`454220f`](https://github.com/eea/volto-widget-toggle/commit/454220fa61495427f874fb9b56401fe69689f4fe)]
|
|
131
176
|
- Auto-release npm [Alin Voinea - [`10b31b3`](https://github.com/eea/volto-widget-toggle/commit/10b31b3b64330d41f69a033a45030e49d20c16b5)]
|
|
177
|
+
- yarn prettier [Alin Voinea - [`5136059`](https://github.com/eea/volto-widget-toggle/commit/51360595bf452c815e526ce10f15aa8a84ad186f)]
|
|
132
178
|
## [1.0.0](https://github.com/eea/volto-widget-toggle/compare/0.1.0...1.0.0) - 29 September 2020
|
|
133
179
|
|
|
134
180
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { Checkbox } from 'semantic-ui-react';
|
|
9
9
|
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
|
-
import
|
|
11
|
+
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* CheckboxWidget component class.
|