@eeacms/volto-tabs-block 10.0.0 → 10.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 -30
- package/CHANGELOG.md +42 -1
- package/package.json +1 -1
- package/src/components/Edit.jsx +8 -10
- package/src/components/Edit.test.jsx +19 -6
- package/src/components/layoutSchema.js +1 -1
- package/src/components/variations/accordion/View.jsx +3 -3
- package/src/components/variations/carousel/HorizontalView.jsx +2 -1
- package/src/components/variations/carousel/VerticalView.jsx +1 -1
- package/src/components/variations/default/Edit.jsx +3 -3
- package/src/components/variations/default/View.jsx +2 -2
- package/src/components/variations/horizontal-responsive/Edit.jsx +3 -3
- package/src/components/variations/horizontal-responsive/View.jsx +1 -1
- package/src/helpers.js +1 -1
- package/src/widgets/TabsWidget.jsx +5 -2
package/.eslintrc.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
|
+
const { AddonRegistry } = require('@plone/registry/addon-registry');
|
|
3
4
|
const projectRootPath = fs.realpathSync(__dirname + '/../../../');
|
|
4
5
|
|
|
5
6
|
let voltoPath = path.join(projectRootPath, 'node_modules/@plone/volto');
|
|
@@ -16,41 +17,16 @@ if (configFile) {
|
|
|
16
17
|
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig['@plone/volto'][0]}`;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
const
|
|
20
|
-
projectRootPath,
|
|
21
|
-
'node_modules/@plone/registry/dist/addon-registry/addon-registry.cjs',
|
|
22
|
-
);
|
|
23
|
-
const registrySrcPath = path.join(
|
|
24
|
-
projectRootPath,
|
|
25
|
-
'node_modules/@plone/registry/src/addon-registry',
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
let AddonConfigurationRegistry;
|
|
29
|
-
if (fs.existsSync(registryDistPath)) {
|
|
30
|
-
AddonConfigurationRegistry = require(registryDistPath).AddonRegistry;
|
|
31
|
-
} else if (
|
|
32
|
-
fs.existsSync(registrySrcPath) ||
|
|
33
|
-
fs.existsSync(`${registrySrcPath}.js`)
|
|
34
|
-
) {
|
|
35
|
-
AddonConfigurationRegistry = require(registrySrcPath);
|
|
36
|
-
} else {
|
|
37
|
-
AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const reg = new AddonConfigurationRegistry(projectRootPath);
|
|
20
|
+
const { registry } = AddonRegistry.init(projectRootPath);
|
|
41
21
|
|
|
42
22
|
// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
|
|
43
|
-
const addonAliases = Object.keys(
|
|
23
|
+
const addonAliases = Object.keys(registry.packages).map((o) => [
|
|
44
24
|
o,
|
|
45
|
-
|
|
25
|
+
registry.packages[o].modulePath,
|
|
46
26
|
]);
|
|
47
27
|
|
|
48
|
-
const addonExtenders =
|
|
49
|
-
const voltoSlatePath =
|
|
50
|
-
path.join(projectRootPath, 'node_modules/@plone/volto-slate/src'),
|
|
51
|
-
)
|
|
52
|
-
? '@plone/volto-slate/src'
|
|
53
|
-
: '@plone/volto/packages/volto-slate/src';
|
|
28
|
+
const addonExtenders = registry.getEslintExtenders().map((m) => require(m));
|
|
29
|
+
const voltoSlatePath = '@plone/volto-slate/src';
|
|
54
30
|
|
|
55
31
|
const defaultConfig = {
|
|
56
32
|
extends: `${voltoPath}/.eslintrc`,
|
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,9 @@ 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
|
-
### [10.0.
|
|
7
|
+
### [10.0.1](https://github.com/eea/volto-tabs-block/compare/10.0.0...10.0.1) - 8 April 2026
|
|
8
|
+
|
|
9
|
+
## [10.0.0](https://github.com/eea/volto-tabs-block/compare/9.1.0...10.0.0) - 27 March 2026
|
|
8
10
|
|
|
9
11
|
#### :rocket: New Features
|
|
10
12
|
|
|
@@ -12,9 +14,12 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
12
14
|
|
|
13
15
|
#### :house: Internal changes
|
|
14
16
|
|
|
17
|
+
- chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`1e18835`](https://github.com/eea/volto-tabs-block/commit/1e18835ff2d59579de5dc9bb8ec6056a90dd7f77)]
|
|
18
|
+
- chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`1b14a57`](https://github.com/eea/volto-tabs-block/commit/1b14a57d39aa4685294068fff78275a1f6248964)]
|
|
15
19
|
|
|
16
20
|
#### :hammer_and_wrench: Others
|
|
17
21
|
|
|
22
|
+
- Release 10.0.0: Volto 18 support [Alin Voinea - [`3f509ae`](https://github.com/eea/volto-tabs-block/commit/3f509aed7cff2e43d4d50f64bf24b6244602fd95)]
|
|
18
23
|
- test: Fix make test [Alin V. (Claudiu) - [`c29c5bc`](https://github.com/eea/volto-tabs-block/commit/c29c5bcc5f0e24ce636dc12c87a8579eb93bd56d)]
|
|
19
24
|
- tests: Fix Sonar Qube tags - refs #297339 [Alin Voinea - [`89ca2ae`](https://github.com/eea/volto-tabs-block/commit/89ca2ae4bc3821bed8012188e94930ae4457accf)]
|
|
20
25
|
### [9.1.0](https://github.com/eea/volto-tabs-block/compare/9.0.3...9.1.0) - 24 July 2025
|
|
@@ -22,6 +27,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
22
27
|
#### :hammer_and_wrench: Others
|
|
23
28
|
|
|
24
29
|
- Release 9.1.0 [Alin Voinea - [`4396e37`](https://github.com/eea/volto-tabs-block/commit/4396e3740694d99cbb66414783c3fbbef7ed2022)]
|
|
30
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`20aaf70`](https://github.com/eea/volto-tabs-block/commit/20aaf70fec13c977a805caeec043457867e62c36)]
|
|
31
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`d516041`](https://github.com/eea/volto-tabs-block/commit/d516041244ee793504833b38033e75df20a8fa13)]
|
|
32
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`ae5b123`](https://github.com/eea/volto-tabs-block/commit/ae5b123036ab3ec9d225228206016d78ab6dcaa4)]
|
|
33
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`74fb410`](https://github.com/eea/volto-tabs-block/commit/74fb410ec9e3657e55fc5ea35c6717a737ddc375)]
|
|
25
34
|
### [9.0.3](https://github.com/eea/volto-tabs-block/compare/9.0.2...9.0.3) - 7 May 2025
|
|
26
35
|
|
|
27
36
|
#### :bug: Bug Fixes
|
|
@@ -30,6 +39,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
30
39
|
|
|
31
40
|
#### :hammer_and_wrench: Others
|
|
32
41
|
|
|
42
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`01b5632`](https://github.com/eea/volto-tabs-block/commit/01b563271bd04f4329d9f876278324b970443413)]
|
|
43
|
+
- Add Sonarqube tag using ied-frontend addons list [EEA Jenkins - [`d457e25`](https://github.com/eea/volto-tabs-block/commit/d457e25d8a97b080eb8eb32ae4b85db530049e96)]
|
|
33
44
|
### [9.0.2](https://github.com/eea/volto-tabs-block/compare/9.0.1...9.0.2) - 27 January 2025
|
|
34
45
|
|
|
35
46
|
#### :house: Internal changes
|
|
@@ -80,6 +91,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
80
91
|
|
|
81
92
|
#### :hammer_and_wrench: Others
|
|
82
93
|
|
|
94
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`cb58ea7`](https://github.com/eea/volto-tabs-block/commit/cb58ea7417e8dd237b66908fd53f1f3ca8726566)]
|
|
95
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`4377ffc`](https://github.com/eea/volto-tabs-block/commit/4377ffc350a92f62cbe77b17b67dd331c71cbcd7)]
|
|
83
96
|
### [7.5.1](https://github.com/eea/volto-tabs-block/compare/7.5.0...7.5.1) - 28 March 2024
|
|
84
97
|
|
|
85
98
|
#### :nail_care: Enhancements
|
|
@@ -122,6 +135,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
122
135
|
- Update react-slick version to 0.30.1 [David Ichim - [`3369176`](https://github.com/eea/volto-tabs-block/commit/33691768899e7f91d2cd15319dbe3ebe66cf1513)]
|
|
123
136
|
- update [Razvan - [`61b19e8`](https://github.com/eea/volto-tabs-block/commit/61b19e8584ff6023320b3671414392ea11449ff0)]
|
|
124
137
|
- use DefaultEdit variation for responsive accordion, refs #266327 [Razvan - [`11acf6c`](https://github.com/eea/volto-tabs-block/commit/11acf6ce5afe022ddd30bff42c9a3321d1284da6)]
|
|
138
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`5045757`](https://github.com/eea/volto-tabs-block/commit/5045757a275477ba382551b301998d835741b716)]
|
|
125
139
|
### [7.0.5](https://github.com/eea/volto-tabs-block/compare/7.0.4...7.0.5) - 10 December 2023
|
|
126
140
|
|
|
127
141
|
#### :rocket: New Features
|
|
@@ -153,6 +167,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
153
167
|
|
|
154
168
|
#### :hammer_and_wrench: Others
|
|
155
169
|
|
|
170
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`3b87d12`](https://github.com/eea/volto-tabs-block/commit/3b87d12df4d01031231b15eb4196f6ff6937706b)]
|
|
171
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`f5f3430`](https://github.com/eea/volto-tabs-block/commit/f5f343024b45bb0206e0169cce6dd0e8472b6795)]
|
|
156
172
|
### [7.0.1](https://github.com/eea/volto-tabs-block/compare/7.0.0...7.0.1) - 9 November 2023
|
|
157
173
|
|
|
158
174
|
#### :bug: Bug Fixes
|
|
@@ -162,10 +178,14 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
162
178
|
|
|
163
179
|
#### :hammer_and_wrench: Others
|
|
164
180
|
|
|
181
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`bd6ffd4`](https://github.com/eea/volto-tabs-block/commit/bd6ffd42a00a2d77ff59545d9adaab7a45361446)]
|
|
182
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`d481e25`](https://github.com/eea/volto-tabs-block/commit/d481e25c4d61d7ff6ea11ff75c99fbdd730ecd82)]
|
|
183
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`6c39efc`](https://github.com/eea/volto-tabs-block/commit/6c39efcc30bddfebb6c61f8a8cd714f61828ec69)]
|
|
165
184
|
## [7.0.0](https://github.com/eea/volto-tabs-block/compare/6.0.3...7.0.0) - 31 October 2023
|
|
166
185
|
|
|
167
186
|
#### :house: Internal changes
|
|
168
187
|
|
|
188
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`f2e3d39`](https://github.com/eea/volto-tabs-block/commit/f2e3d3973c026f0331b82e0f691ec9bdc5899672)]
|
|
169
189
|
|
|
170
190
|
#### :hammer_and_wrench: Others
|
|
171
191
|
|
|
@@ -378,6 +398,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
378
398
|
|
|
379
399
|
#### :house: Internal changes
|
|
380
400
|
|
|
401
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`820aaa9`](https://github.com/eea/volto-tabs-block/commit/820aaa963e978a893a23b77f694bb011f3d768c1)]
|
|
381
402
|
|
|
382
403
|
#### :hammer_and_wrench: Others
|
|
383
404
|
|
|
@@ -468,6 +489,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
468
489
|
|
|
469
490
|
#### :hammer_and_wrench: Others
|
|
470
491
|
|
|
492
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`52bc1b0`](https://github.com/eea/volto-tabs-block/commit/52bc1b0fbd4611173b8ca9dc2cf4033b31474420)]
|
|
471
493
|
## [4.0.0](https://github.com/eea/volto-tabs-block/compare/3.0.1...4.0.0) - 10 March 2023
|
|
472
494
|
|
|
473
495
|
#### :house: Internal changes
|
|
@@ -478,7 +500,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
478
500
|
#### :hammer_and_wrench: Others
|
|
479
501
|
|
|
480
502
|
- Release 4.0.0 [Alin Voinea - [`8fc4cc9`](https://github.com/eea/volto-tabs-block/commit/8fc4cc9d8dc71e623e6586b95871cb3b98dc385f)]
|
|
503
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`22d5bdc`](https://github.com/eea/volto-tabs-block/commit/22d5bdc1b3579cc46c73ce855041ca09154eb502)]
|
|
504
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`fde4324`](https://github.com/eea/volto-tabs-block/commit/fde4324f962cde8e8de0d76a44bee4b67d216bf8)]
|
|
505
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9175e47`](https://github.com/eea/volto-tabs-block/commit/9175e470d793edc63b62a99940aed25dd45f3713)]
|
|
481
506
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`3348950`](https://github.com/eea/volto-tabs-block/commit/334895036f8e367281abb35a20879c32dfbfc292)]
|
|
507
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`39bfb39`](https://github.com/eea/volto-tabs-block/commit/39bfb39fa6e8483e639491ff998293e758ac6384)]
|
|
508
|
+
- yarn 3 [Alin Voinea - [`7e98df5`](https://github.com/eea/volto-tabs-block/commit/7e98df59669d71945be461e86e282b913538b805)]
|
|
509
|
+
- Add Sonarqube tag using demo-kitkat-frontend addons list [EEA Jenkins - [`079d7a4`](https://github.com/eea/volto-tabs-block/commit/079d7a43480e92fe280a9372399ff2d4d28537ae)]
|
|
482
510
|
### [3.0.1](https://github.com/eea/volto-tabs-block/compare/3.0.0...3.0.1) - 16 November 2022
|
|
483
511
|
|
|
484
512
|
#### :hammer_and_wrench: Others
|
|
@@ -502,7 +530,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
502
530
|
|
|
503
531
|
#### :hammer_and_wrench: Others
|
|
504
532
|
|
|
533
|
+
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`a00e419`](https://github.com/eea/volto-tabs-block/commit/a00e419aef4c82a25f277f5e25e3d512c7838264)]
|
|
505
534
|
- lint fix [David Ichim - [`c0a898c`](https://github.com/eea/volto-tabs-block/commit/c0a898c54461478baed2ac2f149ae580d4c89aeb)]
|
|
535
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`3b284e6`](https://github.com/eea/volto-tabs-block/commit/3b284e65e0eafa9b5ad8c92b4cb77628ffcc8103)]
|
|
506
536
|
### [2.2.0](https://github.com/eea/volto-tabs-block/compare/2.1.0...2.2.0) - 25 August 2022
|
|
507
537
|
|
|
508
538
|
#### :hammer_and_wrench: Others
|
|
@@ -518,6 +548,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
518
548
|
|
|
519
549
|
- Release 2.1.0 [Alin Voinea - [`3cdfa30`](https://github.com/eea/volto-tabs-block/commit/3cdfa30d4d03d864be8ad63f0648b4717298734a)]
|
|
520
550
|
- Squashed commit of the following: [Alin Voinea - [`ca241f5`](https://github.com/eea/volto-tabs-block/commit/ca241f56a96817679a1948154e2a8cc0e17b96fe)]
|
|
551
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`68ea5a6`](https://github.com/eea/volto-tabs-block/commit/68ea5a6b971fc36840cf5716a04f68316b229b2b)]
|
|
521
552
|
### [2.0.2](https://github.com/eea/volto-tabs-block/compare/2.0.1...2.0.2) - 16 June 2022
|
|
522
553
|
|
|
523
554
|
### [2.0.1](https://github.com/eea/volto-tabs-block/compare/2.0.0...2.0.1) - 10 June 2022
|
|
@@ -561,6 +592,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
561
592
|
- Let theme addon to set default values for default template schema [Miu Razvan - [`55f148d`](https://github.com/eea/volto-tabs-block/commit/55f148d1a95417f8a0b55681ce250acde8463c1c)]
|
|
562
593
|
- Render pane as container if tabs-block has full-width class [Miu Razvan - [`bbffb96`](https://github.com/eea/volto-tabs-block/commit/bbffb96b908476ddee447af3ce79bafb1a12f9a8)]
|
|
563
594
|
- Refactor default template [Miu Razvan - [`58eff52`](https://github.com/eea/volto-tabs-block/commit/58eff5281adb08a5f8fe6d21fd43330252012277)]
|
|
595
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`72a6735`](https://github.com/eea/volto-tabs-block/commit/72a6735cbbc0e7d57b4bb7ea83fea9becc317018)]
|
|
596
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`e928da1`](https://github.com/eea/volto-tabs-block/commit/e928da1df7e4680bd4be9b5d46406800d721b8c5)]
|
|
564
597
|
### [1.2.12](https://github.com/eea/volto-tabs-block/compare/1.2.11...1.2.12) - 21 January 2022
|
|
565
598
|
|
|
566
599
|
### [1.2.11](https://github.com/eea/volto-tabs-block/compare/1.2.10...1.2.11) - 4 January 2022
|
|
@@ -575,11 +608,17 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
575
608
|
|
|
576
609
|
#### :hammer_and_wrench: Others
|
|
577
610
|
|
|
611
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`cd2e2ac`](https://github.com/eea/volto-tabs-block/commit/cd2e2ac1d127bfc688ecf16e17734603ab727a34)]
|
|
578
612
|
### [1.2.8](https://github.com/eea/volto-tabs-block/compare/1.2.7...1.2.8) - 10 December 2021
|
|
579
613
|
|
|
580
614
|
#### :hammer_and_wrench: Others
|
|
581
615
|
|
|
582
616
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`d10c0b3`](https://github.com/eea/volto-tabs-block/commit/d10c0b3d35d25c530d19eebde38dfe5da8fda01b)]
|
|
617
|
+
- Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`1a7187f`](https://github.com/eea/volto-tabs-block/commit/1a7187f10b2bd9e1307dabf51823f63ccd766864)]
|
|
618
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`72a7550`](https://github.com/eea/volto-tabs-block/commit/72a755025b38e1d8dd7fe206273a70585e4b9ac8)]
|
|
619
|
+
- Add Sonarqube tag using forests-frontend addons list [EEA Jenkins - [`022b277`](https://github.com/eea/volto-tabs-block/commit/022b2779a5d7fd7217c2d8a559eafab0bd86ce23)]
|
|
620
|
+
- Add Sonarqube tag using sustainability-frontend addons list [EEA Jenkins - [`84c9bea`](https://github.com/eea/volto-tabs-block/commit/84c9bea7a0aba2fe9ef9713e7131de6da6e0bcce)]
|
|
621
|
+
- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`020aa97`](https://github.com/eea/volto-tabs-block/commit/020aa97bc70a643ea3857566c5a1dc3a5200c2be)]
|
|
583
622
|
### [1.2.7](https://github.com/eea/volto-tabs-block/compare/1.2.6...1.2.7) - 27 August 2021
|
|
584
623
|
|
|
585
624
|
#### :hammer_and_wrench: Others
|
|
@@ -596,6 +635,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
596
635
|
|
|
597
636
|
- Move less import in View instead of Edit [Tiberiu Ichim - [`84aeff0`](https://github.com/eea/volto-tabs-block/commit/84aeff04a980076f54687c546691d37b6e790478)]
|
|
598
637
|
- gitignore tweaks [Tiberiu Ichim - [`f4c993d`](https://github.com/eea/volto-tabs-block/commit/f4c993d004b126f08f16651ab9460546fa9e9cad)]
|
|
638
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`865906a`](https://github.com/eea/volto-tabs-block/commit/865906a0deb261d44cc23e26bfd2d1dd0e319640)]
|
|
639
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`5383861`](https://github.com/eea/volto-tabs-block/commit/538386100adbc868e693c1c2a5ba13461307ffee)]
|
|
599
640
|
- Style update [razvanMiu - [`323aaaf`](https://github.com/eea/volto-tabs-block/commit/323aaafcad01d8fdf0e713a1fc254ae9fe319f43)]
|
|
600
641
|
- Fix 'scroll to' feature on carousel [razvanMiu - [`16c6a08`](https://github.com/eea/volto-tabs-block/commit/16c6a08f6db687542ea38e07a92b265e592f6173)]
|
|
601
642
|
- Better accesibility [razvanMiu - [`3511611`](https://github.com/eea/volto-tabs-block/commit/351161197270a4807f01d85a7055cbaadae72f8e)]
|
package/package.json
CHANGED
package/src/components/Edit.jsx
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
SidebarPortal,
|
|
7
|
-
BlocksToolbar,
|
|
8
|
-
BlockDataForm,
|
|
9
|
-
} from '@plone/volto/components';
|
|
10
|
-
import { getBlocksLayoutFieldname } from '@plone/volto/helpers';
|
|
1
|
+
import BlocksToolbar from '@plone/volto/components/manage/Form/BlocksToolbar';
|
|
2
|
+
import BlockDataForm from '@plone/volto/components/manage/Form/BlockDataForm';
|
|
3
|
+
import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal';
|
|
4
|
+
import { getBlocksLayoutFieldname } from '@plone/volto/helpers/Blocks/Blocks';
|
|
11
5
|
import { TABS_BLOCK } from '@eeacms/volto-tabs-block/constants';
|
|
12
6
|
import { empty, emptyTab } from '@eeacms/volto-tabs-block/helpers';
|
|
13
7
|
import { StyleWrapperView } from '@eeacms/volto-block-style/StyleWrapper';
|
|
14
8
|
import { BlockStyleWrapperEdit } from '@eeacms/volto-block-style/BlockStyleWrapper';
|
|
15
9
|
import { getVariation } from '@eeacms/volto-tabs-block/helpers';
|
|
16
10
|
import { DefaultEdit } from './variations/default';
|
|
11
|
+
import config from '@plone/volto/registry';
|
|
12
|
+
import cx from 'classnames';
|
|
13
|
+
import without from 'lodash/without';
|
|
14
|
+
import React from 'react';
|
|
17
15
|
import { useIntl } from 'react-intl';
|
|
18
16
|
|
|
19
17
|
import '@eeacms/volto-tabs-block/less/edit.less';
|
|
@@ -6,7 +6,7 @@ import { Provider } from 'react-intl-redux';
|
|
|
6
6
|
import { MemoryRouter } from 'react-router-dom';
|
|
7
7
|
import config from '@plone/volto/registry';
|
|
8
8
|
import Edit from './Edit';
|
|
9
|
-
import { TABS_BLOCK } from '
|
|
9
|
+
import { TABS_BLOCK } from '@eeacms/volto-tabs-block/constants';
|
|
10
10
|
|
|
11
11
|
jest.mock('uuid', () => ({
|
|
12
12
|
v4: () => 'test-uuid-1234',
|
|
@@ -73,8 +73,14 @@ jest.mock('./variations/default', () => ({
|
|
|
73
73
|
DefaultEdit: jest.requireActual('./variations/default/Edit').default,
|
|
74
74
|
}));
|
|
75
75
|
|
|
76
|
-
jest.mock('@plone/volto/components', () => ({
|
|
77
|
-
|
|
76
|
+
jest.mock('@plone/volto/components/manage/Sidebar/SidebarPortal', () => ({
|
|
77
|
+
__esModule: true,
|
|
78
|
+
default: ({ children }) => <div>{children}</div>,
|
|
79
|
+
}));
|
|
80
|
+
|
|
81
|
+
jest.mock('@plone/volto/components/manage/Blocks/Block/BlocksForm', () => ({
|
|
82
|
+
__esModule: true,
|
|
83
|
+
default: jest.fn(
|
|
78
84
|
({ multiSelected, onSelectBlock, properties, selectedBlock }) => {
|
|
79
85
|
const blockList = properties.blocks
|
|
80
86
|
? Object.entries(properties.blocks)
|
|
@@ -100,15 +106,22 @@ jest.mock('@plone/volto/components', () => ({
|
|
|
100
106
|
);
|
|
101
107
|
},
|
|
102
108
|
),
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
}));
|
|
110
|
+
|
|
111
|
+
jest.mock('@plone/volto/components/manage/Form/BlocksToolbar', () => ({
|
|
112
|
+
__esModule: true,
|
|
113
|
+
default: ({ selectedBlock, selectedBlocks }) => (
|
|
105
114
|
<div
|
|
106
115
|
data-testid="blocks-toolbar"
|
|
107
116
|
data-selected-block={selectedBlock || ''}
|
|
108
117
|
data-selected-blocks={(selectedBlocks || []).join(',')}
|
|
109
118
|
/>
|
|
110
119
|
),
|
|
111
|
-
|
|
120
|
+
}));
|
|
121
|
+
|
|
122
|
+
jest.mock('@plone/volto/components/manage/Form/BlockDataForm', () => ({
|
|
123
|
+
__esModule: true,
|
|
124
|
+
default: () => <div>BlockDataForm</div>,
|
|
112
125
|
}));
|
|
113
126
|
|
|
114
127
|
jest.mock(
|
|
@@ -6,8 +6,8 @@ import cx from 'classnames';
|
|
|
6
6
|
import noop from 'lodash/noop';
|
|
7
7
|
|
|
8
8
|
import { Icon } from 'semantic-ui-react';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import VoltoIcon from '@plone/volto/components/theme/Icon/Icon';
|
|
10
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
11
11
|
import config from '@plone/volto/registry';
|
|
12
12
|
|
|
13
13
|
import Tabs from 'react-responsive-tabs';
|
|
@@ -17,7 +17,7 @@ import { getParentTabFromHash } from '@eeacms/volto-tabs-block/helpers';
|
|
|
17
17
|
import { withScrollToTarget } from '@eeacms/volto-tabs-block/hocs';
|
|
18
18
|
|
|
19
19
|
import '@eeacms/volto-tabs-block/less/menu.less';
|
|
20
|
-
import { getVariation } from '
|
|
20
|
+
import { getVariation } from '@eeacms/volto-tabs-block/helpers';
|
|
21
21
|
|
|
22
22
|
class Tab extends React.Component {
|
|
23
23
|
render() {
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { withRouter } from 'react-router';
|
|
3
3
|
import loadable from '@loadable/component';
|
|
4
4
|
import cx from 'classnames';
|
|
5
|
-
import
|
|
5
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
6
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
6
7
|
|
|
7
8
|
import rightArrowSVG from '@eeacms/volto-tabs-block/icons/right-key.svg';
|
|
8
9
|
import leftArrowSVG from '@eeacms/volto-tabs-block/icons/left-key.svg';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { withRouter } from 'react-router';
|
|
3
3
|
import loadable from '@loadable/component';
|
|
4
4
|
import cx from 'classnames';
|
|
5
|
-
import
|
|
5
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
6
6
|
import 'slick-carousel/slick/slick.css';
|
|
7
7
|
import 'slick-carousel/slick/slick-theme.css';
|
|
8
8
|
import '@eeacms/volto-tabs-block/less/carousel.less';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import
|
|
3
|
+
import isEmpty from 'lodash/isEmpty';
|
|
4
4
|
import { v4 as uuid } from 'uuid';
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import { Menu, Tab, Input, Container } from 'semantic-ui-react';
|
|
7
|
-
import
|
|
8
|
-
import { emptyBlocksForm } from '@plone/volto/helpers';
|
|
7
|
+
import BlocksForm from '@plone/volto/components/manage/Blocks/Block/BlocksForm';
|
|
8
|
+
import { emptyBlocksForm } from '@plone/volto/helpers/Blocks/Blocks';
|
|
9
9
|
import { defaultSchemaEnhancer } from '@eeacms/volto-tabs-block/components/variations/default/schema';
|
|
10
10
|
import { AssetTab } from '@eeacms/volto-tabs-block/components';
|
|
11
11
|
import {
|
|
@@ -3,14 +3,14 @@ import { compose } from 'redux';
|
|
|
3
3
|
import { withRouter } from 'react-router';
|
|
4
4
|
import cx from 'classnames';
|
|
5
5
|
import { Menu, Tab, Container, Icon, Image } from 'semantic-ui-react';
|
|
6
|
-
import
|
|
6
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
7
7
|
import { withScrollToTarget } from '@eeacms/volto-tabs-block/hocs';
|
|
8
8
|
import {
|
|
9
9
|
SimpleMarkdown,
|
|
10
10
|
getMenuPosition,
|
|
11
11
|
} from '@eeacms/volto-tabs-block/utils';
|
|
12
12
|
|
|
13
|
-
import { isInternalURL, flattenToAppURL } from '@plone/volto/helpers';
|
|
13
|
+
import { isInternalURL, flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
14
14
|
|
|
15
15
|
import '@eeacms/volto-tabs-block/less/menu.less';
|
|
16
16
|
|
|
@@ -4,11 +4,11 @@ import { compose } from 'redux';
|
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import { withRouter } from 'react-router';
|
|
6
6
|
import { v4 as uuid } from 'uuid';
|
|
7
|
-
import
|
|
7
|
+
import isEmpty from 'lodash/isEmpty';
|
|
8
8
|
import cx from 'classnames';
|
|
9
9
|
import { Menu, Tab, Container, Dropdown, Input } from 'semantic-ui-react';
|
|
10
|
-
import { emptyBlocksForm } from '@plone/volto/helpers';
|
|
11
|
-
import
|
|
10
|
+
import { emptyBlocksForm } from '@plone/volto/helpers/Blocks/Blocks';
|
|
11
|
+
import BlocksForm from '@plone/volto/components/manage/Blocks/Block/BlocksForm';
|
|
12
12
|
import { defaultSchemaEnhancer } from '@eeacms/volto-tabs-block/components/variations/default/schema';
|
|
13
13
|
import {
|
|
14
14
|
SimpleMarkdown,
|
|
@@ -4,7 +4,7 @@ import { compose } from 'redux';
|
|
|
4
4
|
import { withRouter } from 'react-router';
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import { Menu, Tab, Container, Dropdown, Button } from 'semantic-ui-react';
|
|
7
|
-
import
|
|
7
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
8
8
|
import {
|
|
9
9
|
SimpleMarkdown,
|
|
10
10
|
getMenuPosition,
|
package/src/helpers.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { v4 as uuid } from 'uuid';
|
|
3
|
-
import
|
|
3
|
+
import omit from 'lodash/omit';
|
|
4
|
+
import without from 'lodash/without';
|
|
4
5
|
import move from 'lodash-move';
|
|
5
|
-
import
|
|
6
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
7
|
+
import DragDropList from '@plone/volto/components/manage/DragDropList/DragDropList';
|
|
8
|
+
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
6
9
|
import { emptyTab } from '@eeacms/volto-tabs-block/helpers';
|
|
7
10
|
import { StyleWrapperEdit } from '@eeacms/volto-block-style/StyleWrapper';
|
|
8
11
|
import ObjectWidget from '@plone/volto/components/manage/Widgets/ObjectWidget';
|