@eeacms/volto-eea-website-theme 4.1.0 → 4.1.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/CHANGELOG.md CHANGED
@@ -4,6 +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
+ ### [4.1.1](https://github.com/eea/volto-eea-website-theme/compare/4.1.0...4.1.1) - 17 April 2026
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(order-sidebar): respect required and fixed block restrictions - refs #302095 [Alin Voinea - [`51557f2`](https://github.com/eea/volto-eea-website-theme/commit/51557f220fbe3992110e96862f4ab0ba987d42ed)]
12
+
7
13
  ### [4.1.0](https://github.com/eea/volto-eea-website-theme/compare/4.0.5...4.1.0) - 17 April 2026
8
14
 
9
15
  #### :house: Internal changes
@@ -57,6 +63,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
57
63
 
58
64
  #### :house: Internal changes
59
65
 
66
+ - chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`b15b302`](https://github.com/eea/volto-eea-website-theme/commit/b15b302ff88ec6afa6901ee7e1726cc4e04a8739)]
67
+ - chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`36f2e1e`](https://github.com/eea/volto-eea-website-theme/commit/36f2e1e176471b3753d77ab8aaf0cba577b43b36)]
60
68
 
61
69
  ### [3.19.0](https://github.com/eea/volto-eea-website-theme/compare/3.18.1...3.19.0) - 11 February 2026
62
70
 
@@ -119,6 +127,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
119
127
  #### :hammer_and_wrench: Others
120
128
 
121
129
  - Release 3.12.0 [Alin Voinea - [`ea1e961`](https://github.com/eea/volto-eea-website-theme/commit/ea1e96144684b2a8238ae476fd8d47de82ff42b4)]
130
+ - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`2cac56e`](https://github.com/eea/volto-eea-website-theme/commit/2cac56e22e580e042d368b69254172539ed33b65)]
122
131
  ### [3.11.0](https://github.com/eea/volto-eea-website-theme/compare/3.10.1...3.11.0) - 29 September 2025
123
132
 
124
133
  #### :bug: Bug Fixes
@@ -212,6 +221,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
212
221
 
213
222
  #### :hammer_and_wrench: Others
214
223
 
224
+ - Add Sonarqube tag using fise-frontend addons list [EEA Jenkins - [`3d50874`](https://github.com/eea/volto-eea-website-theme/commit/3d50874281ebcb91a1ae3727248f656a6f26c603)]
225
+ - Add Sonarqube tag using ied-frontend addons list [EEA Jenkins - [`a3f7676`](https://github.com/eea/volto-eea-website-theme/commit/a3f76767d99cb6dd93cc7fa0eafdea57e9000b2c)]
215
226
  ### [3.5.4](https://github.com/eea/volto-eea-website-theme/compare/3.5.3...3.5.4) - 30 January 2025
216
227
 
217
228
  #### :bug: Bug Fixes
@@ -312,6 +323,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
312
323
 
313
324
  #### :hammer_and_wrench: Others
314
325
 
326
+ - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`e417f83`](https://github.com/eea/volto-eea-website-theme/commit/e417f839312045c56b67ab8134fe5b0622b3e2c3)]
315
327
  ## [3.0.0](https://github.com/eea/volto-eea-website-theme/compare/2.4.0...3.0.0) - 21 October 2024
316
328
 
317
329
  #### :nail_care: Enhancements
@@ -397,6 +409,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
397
409
  - Refs #269520 - other_organisation test [Tripon Eugen - [`7558b27`](https://github.com/eea/volto-eea-website-theme/commit/7558b27a9d1cd6d3480a32b296c7325c796006c9)]
398
410
  - Refs #269520 - other_organisation token widget edit mode [Tripon Eugen - [`b6df127`](https://github.com/eea/volto-eea-website-theme/commit/b6df127bd91b6f55dda8f468e1107037d43752ff)]
399
411
  - Refs #269520 - other_organisation token widget [Tripon Eugen - [`6fd7543`](https://github.com/eea/volto-eea-website-theme/commit/6fd7543894bd2c593a1729116befd95c82ea3c8f)]
412
+ - Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`cbc36c7`](https://github.com/eea/volto-eea-website-theme/commit/cbc36c74dfcd5f7cb1013a4c673d9c02e0023766)]
400
413
  ### [2.1.1](https://github.com/eea/volto-eea-website-theme/compare/2.1.0...2.1.1) - 28 May 2024
401
414
 
402
415
  #### :bug: Bug Fixes
@@ -481,6 +494,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
481
494
 
482
495
  #### :hammer_and_wrench: Others
483
496
 
497
+ - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`adc6730`](https://github.com/eea/volto-eea-website-theme/commit/adc6730e21a37afb865b842182624401de6a29f5)]
484
498
  ### [1.33.1](https://github.com/eea/volto-eea-website-theme/compare/1.33.0...1.33.1) - 4 April 2024
485
499
 
486
500
  #### :bug: Bug Fixes
@@ -614,6 +628,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
614
628
 
615
629
  - bump version [Razvan - [`721e939`](https://github.com/eea/volto-eea-website-theme/commit/721e939d12e324b459ebfa78a2e656ee7142a3d6)]
616
630
  - merge master into this branch [Razvan - [`586c8f9`](https://github.com/eea/volto-eea-website-theme/commit/586c8f910bac55a043bd8dda60e9444bd2ae1663)]
631
+ - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`fd90044`](https://github.com/eea/volto-eea-website-theme/commit/fd9004442a9d1d465f7601ecdefe3e23c61e6a9c)]
632
+ - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`4bc3dd3`](https://github.com/eea/volto-eea-website-theme/commit/4bc3dd3ae412a66befd04b5b80fab3716c929240)]
617
633
  - test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`c4dbd28`](https://github.com/eea/volto-eea-website-theme/commit/c4dbd289358205bc2d849aab7edb11ccf3b89cee)]
618
634
  - fix tests [Razvan - [`042330b`](https://github.com/eea/volto-eea-website-theme/commit/042330bc97d32ffe7ba769b4f2453f71cffed706)]
619
635
  - remove RemoveSchema logic [Razvan - [`08d10f8`](https://github.com/eea/volto-eea-website-theme/commit/08d10f8bf6f75478260e4e4c66d7316ba87b907a)]
@@ -708,6 +724,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
708
724
  - test: Add real image to cypress test [Alin Voinea - [`4ff591a`](https://github.com/eea/volto-eea-website-theme/commit/4ff591ae3318c9588b4e2114582c0fa6cfdf31ae)]
709
725
  - test: Add cypress tests for Image block styling position and align [Alin Voinea - [`7341ef7`](https://github.com/eea/volto-eea-website-theme/commit/7341ef7b92714fc0cc3ab0c31c39033e7b3e19e7)]
710
726
  - Revert "change(tests): commented out rss test since title block config is missing" [Alin Voinea - [`fb61191`](https://github.com/eea/volto-eea-website-theme/commit/fb611918d6ca380b89b594f283dcf9f685a4b294)]
727
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`6a3be30`](https://github.com/eea/volto-eea-website-theme/commit/6a3be3092589411af7808a235f76de5222fd3868)]
728
+ - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`c3978f2`](https://github.com/eea/volto-eea-website-theme/commit/c3978f23375ef066e9fd6f6c2e34ba6c1c058f69)]
729
+ - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`f672779`](https://github.com/eea/volto-eea-website-theme/commit/f672779e845bec9240ccc901e9f53ec80c5a1819)]
730
+ - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`ae5d8e3`](https://github.com/eea/volto-eea-website-theme/commit/ae5d8e3f4e04dc2808d47ce2ee886e1b23b528da)]
731
+ - test: [JENKINS] Improve cypress time [valentinab25 - [`170ff0c`](https://github.com/eea/volto-eea-website-theme/commit/170ff0c8e3b30e69479bdf1117e811fea94f1027)]
711
732
  ### [1.23.0](https://github.com/eea/volto-eea-website-theme/compare/1.22.1...1.23.0) - 2 November 2023
712
733
 
713
734
  #### :rocket: New Features
@@ -720,6 +741,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
720
741
 
721
742
  #### :house: Internal changes
722
743
 
744
+ - chore: [JENKINS] Refactor automated testing [valentinab25 - [`f28fce3`](https://github.com/eea/volto-eea-website-theme/commit/f28fce3d1eb815f95fb9aa40de42b10b7e8e30c5)]
723
745
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`6d15088`](https://github.com/eea/volto-eea-website-theme/commit/6d150886c5aeb2ca0b569270486e60f7cc274e2c)]
724
746
  - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`20c0323`](https://github.com/eea/volto-eea-website-theme/commit/20c032380b33c0077c869a05136f93e2fb68e5d4)]
725
747
 
@@ -905,6 +927,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
905
927
 
906
928
  #### :house: Internal changes
907
929
 
930
+ - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
908
931
 
909
932
  #### :hammer_and_wrench: Others
910
933
 
@@ -1060,6 +1083,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1060
1083
 
1061
1084
  #### :hammer_and_wrench: Others
1062
1085
 
1086
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
1063
1087
  ### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
1064
1088
 
1065
1089
  #### :bug: Bug Fixes
@@ -1206,6 +1230,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1206
1230
 
1207
1231
  - For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
1208
1232
  - Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
1233
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
1209
1234
  ### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
1210
1235
 
1211
1236
  #### :hammer_and_wrench: Others
@@ -1239,6 +1264,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1239
1264
 
1240
1265
  - Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
1241
1266
  - bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
1267
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
1242
1268
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
1243
1269
  ### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
1244
1270
 
@@ -1248,6 +1274,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1248
1274
 
1249
1275
  #### :hammer_and_wrench: Others
1250
1276
 
1277
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
1251
1278
  - Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
1252
1279
  - Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
1253
1280
  ### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
@@ -1258,6 +1285,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1258
1285
 
1259
1286
  #### :hammer_and_wrench: Others
1260
1287
 
1288
+ - yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
1261
1289
  ### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
1262
1290
 
1263
1291
  #### :rocket: New Features
@@ -1298,6 +1326,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1298
1326
  - Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
1299
1327
  - Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
1300
1328
  - fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
1329
+ - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
1301
1330
  ### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
1302
1331
 
1303
1332
  #### :nail_care: Enhancements
@@ -1345,6 +1374,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1345
1374
 
1346
1375
  #### :hammer_and_wrench: Others
1347
1376
 
1377
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
1348
1378
  ### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
1349
1379
 
1350
1380
  #### :hammer_and_wrench: Others
@@ -1612,6 +1642,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1612
1642
  - Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
1613
1643
  - Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
1614
1644
  - feature(breadcrumbs): implement eea-design-system breadcrumb as Volto component #32 #7 [ichim-david - [`181af41`](https://github.com/eea/volto-eea-website-theme/commit/181af4125ce2b9ddac56dab4723cb11c26633221)]
1645
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
1615
1646
  - use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
1616
1647
  - Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
1617
1648
  - Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
@@ -1653,4 +1684,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1653
1684
 
1654
1685
  #### :hammer_and_wrench: Others
1655
1686
 
1687
+ - yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
1656
1688
  - Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -0,0 +1,146 @@
1
+ import React, { forwardRef } from 'react';
2
+ import classNames from 'classnames';
3
+ import { useDispatch, useSelector } from 'react-redux';
4
+ import includes from 'lodash/includes';
5
+ import isBoolean from 'lodash/isBoolean';
6
+ import cx from 'classnames';
7
+ import Icon from '@plone/volto/components/theme/Icon/Icon';
8
+ import { setUIState } from '@plone/volto/actions/form/form';
9
+ import config from '@plone/volto/registry';
10
+
11
+ import deleteSVG from '@plone/volto/icons/delete.svg';
12
+ import dragSVG from '@plone/volto/icons/drag.svg';
13
+
14
+ // TEMPORARY PATCH (Volto issue #6481):
15
+ // Remove this customization once the upstream fixes are released and adopted.
16
+ // Upstream PRs: https://github.com/plone/volto/pull/8124 and
17
+ // https://github.com/plone/volto/pull/8125
18
+ export const Item = forwardRef(
19
+ (
20
+ {
21
+ clone,
22
+ data,
23
+ depth,
24
+ disableSelection,
25
+ disableInteraction,
26
+ ghost,
27
+ id,
28
+ handleProps,
29
+ indentationWidth,
30
+ onRemove,
31
+ onSelectBlock,
32
+ parentId,
33
+ parentType,
34
+ style,
35
+ value,
36
+ wrapperRef,
37
+ errors,
38
+ ...props
39
+ },
40
+ ref,
41
+ ) => {
42
+ const selected = useSelector((state) => state.form.ui.selected);
43
+ const hovered = useSelector((state) => state.form.ui.hovered);
44
+ const multiSelected = useSelector((state) => state.form.ui.multiSelected);
45
+ const gridSelected = useSelector((state) => state.form.ui.gridSelected);
46
+ const dispatch = useDispatch();
47
+
48
+ const icon =
49
+ config.blocks.blocksConfig[data?.['@type']]?.icon ||
50
+ config.blocks.blocksConfig.title?.icon;
51
+
52
+ const required = isBoolean(data?.required)
53
+ ? data.required
54
+ : includes(config.blocks.requiredBlocks, data?.['@type']);
55
+ const fixed = !!data?.fixed;
56
+
57
+ return (
58
+ <li
59
+ className={classNames(
60
+ 'tree-item-wrapper',
61
+ clone && 'clone',
62
+ ghost && 'ghost',
63
+ disableSelection && 'disable-selection',
64
+ disableInteraction && 'disable-interaction',
65
+ )}
66
+ role="presentation"
67
+ onMouseOver={() => dispatch(setUIState({ hovered: id }))}
68
+ onFocus={() => dispatch(setUIState({ hovered: id }))}
69
+ onMouseLeave={() => dispatch(setUIState({ hovered: null }))}
70
+ onClick={(e) => {
71
+ if (depth === 0) {
72
+ const isMultipleSelection = e.shiftKey || e.ctrlKey || e.metaKey;
73
+ selected !== id &&
74
+ onSelectBlock(
75
+ id,
76
+ selected === id ? false : isMultipleSelection,
77
+ e,
78
+ );
79
+ } else {
80
+ dispatch(
81
+ setUIState({
82
+ selected: parentId,
83
+ multiSelected: [],
84
+ gridSelected: id,
85
+ }),
86
+ );
87
+ }
88
+ }}
89
+ ref={wrapperRef}
90
+ style={{
91
+ '--spacing': `${indentationWidth * depth}px`,
92
+ }}
93
+ {...props}
94
+ >
95
+ <div
96
+ className={classNames(
97
+ 'tree-item',
98
+ (selected === id || gridSelected === id) && 'selected',
99
+ hovered === id && 'hovered',
100
+ includes(multiSelected, id) && 'multiSelected',
101
+ `depth-${depth}`,
102
+ )}
103
+ ref={ref}
104
+ style={style}
105
+ >
106
+ {!fixed && (
107
+ <button
108
+ ref={ref}
109
+ {...handleProps}
110
+ className={classNames('action', 'drag')}
111
+ tabIndex={0}
112
+ data-cypress="draggable-handle"
113
+ >
114
+ <Icon name={dragSVG} size="16px" />
115
+ </button>
116
+ )}
117
+ <span
118
+ className={cx('text', {
119
+ errored: errors && Object.keys(errors).length > 0,
120
+ })}
121
+ >
122
+ {icon && (
123
+ <Icon
124
+ name={icon}
125
+ size="20px"
126
+ style={{ verticalAlign: 'middle' }}
127
+ />
128
+ )}{' '}
129
+ {data?.plaintext ||
130
+ config.blocks.blocksConfig[data?.['@type']]?.title ||
131
+ data?.title}
132
+ </span>
133
+ {!clone && onRemove && !required && (
134
+ <button
135
+ onClick={onRemove}
136
+ className={classNames('action', 'delete')}
137
+ tabIndex={0}
138
+ >
139
+ <Icon name={deleteSVG} size="18" />
140
+ </button>
141
+ )}
142
+ </div>
143
+ </li>
144
+ );
145
+ },
146
+ );