@eeacms/volto-eea-website-theme 3.9.0 → 3.9.2
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 +30 -0
- package/package.json +1 -1
- package/src/components/manage/Blocks/ContextNavigation/variations/Accordion.jsx +2 -2
- package/src/customizations/volto/components/theme/Header/Header.jsx +2 -0
- package/src/customizations/volto/components/theme/Image/Image.jsx +17 -5
- package/src/customizations/volto/components/theme/View/DefaultView.jsx +14 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ 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
|
+
### [3.9.2](https://github.com/eea/volto-eea-website-theme/compare/3.9.1...3.9.2) - 22 September 2025
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- feature(context-navigation): allow disabling of side nav per content type [David Ichim - [`5430166`](https://github.com/eea/volto-eea-website-theme/commit/54301668a9fdcffb9f17f509147e3e91d028964e)]
|
|
12
|
+
### [3.9.1](https://github.com/eea/volto-eea-website-theme/compare/3.9.0...3.9.1) - 26 August 2025
|
|
13
|
+
|
|
7
14
|
### [3.9.0](https://github.com/eea/volto-eea-website-theme/compare/3.8.0...3.9.0) - 20 August 2025
|
|
8
15
|
|
|
9
16
|
#### :rocket: New Features
|
|
@@ -67,6 +74,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
67
74
|
|
|
68
75
|
#### :hammer_and_wrench: Others
|
|
69
76
|
|
|
77
|
+
- Add Sonarqube tag using fise-frontend addons list [EEA Jenkins - [`3d50874`](https://github.com/eea/volto-eea-website-theme/commit/3d50874281ebcb91a1ae3727248f656a6f26c603)]
|
|
78
|
+
- Add Sonarqube tag using ied-frontend addons list [EEA Jenkins - [`a3f7676`](https://github.com/eea/volto-eea-website-theme/commit/a3f76767d99cb6dd93cc7fa0eafdea57e9000b2c)]
|
|
70
79
|
### [3.5.4](https://github.com/eea/volto-eea-website-theme/compare/3.5.3...3.5.4) - 30 January 2025
|
|
71
80
|
|
|
72
81
|
#### :bug: Bug Fixes
|
|
@@ -167,6 +176,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
167
176
|
|
|
168
177
|
#### :hammer_and_wrench: Others
|
|
169
178
|
|
|
179
|
+
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`e417f83`](https://github.com/eea/volto-eea-website-theme/commit/e417f839312045c56b67ab8134fe5b0622b3e2c3)]
|
|
170
180
|
## [3.0.0](https://github.com/eea/volto-eea-website-theme/compare/2.4.0...3.0.0) - 21 October 2024
|
|
171
181
|
|
|
172
182
|
#### :nail_care: Enhancements
|
|
@@ -252,6 +262,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
252
262
|
- Refs #269520 - other_organisation test [Tripon Eugen - [`7558b27`](https://github.com/eea/volto-eea-website-theme/commit/7558b27a9d1cd6d3480a32b296c7325c796006c9)]
|
|
253
263
|
- Refs #269520 - other_organisation token widget edit mode [Tripon Eugen - [`b6df127`](https://github.com/eea/volto-eea-website-theme/commit/b6df127bd91b6f55dda8f468e1107037d43752ff)]
|
|
254
264
|
- Refs #269520 - other_organisation token widget [Tripon Eugen - [`6fd7543`](https://github.com/eea/volto-eea-website-theme/commit/6fd7543894bd2c593a1729116befd95c82ea3c8f)]
|
|
265
|
+
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`cbc36c7`](https://github.com/eea/volto-eea-website-theme/commit/cbc36c74dfcd5f7cb1013a4c673d9c02e0023766)]
|
|
255
266
|
### [2.1.1](https://github.com/eea/volto-eea-website-theme/compare/2.1.0...2.1.1) - 28 May 2024
|
|
256
267
|
|
|
257
268
|
#### :bug: Bug Fixes
|
|
@@ -336,6 +347,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
336
347
|
|
|
337
348
|
#### :hammer_and_wrench: Others
|
|
338
349
|
|
|
350
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`adc6730`](https://github.com/eea/volto-eea-website-theme/commit/adc6730e21a37afb865b842182624401de6a29f5)]
|
|
339
351
|
### [1.33.1](https://github.com/eea/volto-eea-website-theme/compare/1.33.0...1.33.1) - 4 April 2024
|
|
340
352
|
|
|
341
353
|
#### :bug: Bug Fixes
|
|
@@ -469,6 +481,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
469
481
|
|
|
470
482
|
- bump version [Razvan - [`721e939`](https://github.com/eea/volto-eea-website-theme/commit/721e939d12e324b459ebfa78a2e656ee7142a3d6)]
|
|
471
483
|
- merge master into this branch [Razvan - [`586c8f9`](https://github.com/eea/volto-eea-website-theme/commit/586c8f910bac55a043bd8dda60e9444bd2ae1663)]
|
|
484
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`fd90044`](https://github.com/eea/volto-eea-website-theme/commit/fd9004442a9d1d465f7601ecdefe3e23c61e6a9c)]
|
|
485
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`4bc3dd3`](https://github.com/eea/volto-eea-website-theme/commit/4bc3dd3ae412a66befd04b5b80fab3716c929240)]
|
|
472
486
|
- test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`c4dbd28`](https://github.com/eea/volto-eea-website-theme/commit/c4dbd289358205bc2d849aab7edb11ccf3b89cee)]
|
|
473
487
|
- fix tests [Razvan - [`042330b`](https://github.com/eea/volto-eea-website-theme/commit/042330bc97d32ffe7ba769b4f2453f71cffed706)]
|
|
474
488
|
- remove RemoveSchema logic [Razvan - [`08d10f8`](https://github.com/eea/volto-eea-website-theme/commit/08d10f8bf6f75478260e4e4c66d7316ba87b907a)]
|
|
@@ -563,6 +577,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
563
577
|
- test: Add real image to cypress test [Alin Voinea - [`4ff591a`](https://github.com/eea/volto-eea-website-theme/commit/4ff591ae3318c9588b4e2114582c0fa6cfdf31ae)]
|
|
564
578
|
- test: Add cypress tests for Image block styling position and align [Alin Voinea - [`7341ef7`](https://github.com/eea/volto-eea-website-theme/commit/7341ef7b92714fc0cc3ab0c31c39033e7b3e19e7)]
|
|
565
579
|
- 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)]
|
|
580
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`6a3be30`](https://github.com/eea/volto-eea-website-theme/commit/6a3be3092589411af7808a235f76de5222fd3868)]
|
|
581
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`c3978f2`](https://github.com/eea/volto-eea-website-theme/commit/c3978f23375ef066e9fd6f6c2e34ba6c1c058f69)]
|
|
582
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`f672779`](https://github.com/eea/volto-eea-website-theme/commit/f672779e845bec9240ccc901e9f53ec80c5a1819)]
|
|
583
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`ae5d8e3`](https://github.com/eea/volto-eea-website-theme/commit/ae5d8e3f4e04dc2808d47ce2ee886e1b23b528da)]
|
|
584
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`170ff0c`](https://github.com/eea/volto-eea-website-theme/commit/170ff0c8e3b30e69479bdf1117e811fea94f1027)]
|
|
566
585
|
### [1.23.0](https://github.com/eea/volto-eea-website-theme/compare/1.22.1...1.23.0) - 2 November 2023
|
|
567
586
|
|
|
568
587
|
#### :rocket: New Features
|
|
@@ -575,6 +594,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
575
594
|
|
|
576
595
|
#### :house: Internal changes
|
|
577
596
|
|
|
597
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`f28fce3`](https://github.com/eea/volto-eea-website-theme/commit/f28fce3d1eb815f95fb9aa40de42b10b7e8e30c5)]
|
|
578
598
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`6d15088`](https://github.com/eea/volto-eea-website-theme/commit/6d150886c5aeb2ca0b569270486e60f7cc274e2c)]
|
|
579
599
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`20c0323`](https://github.com/eea/volto-eea-website-theme/commit/20c032380b33c0077c869a05136f93e2fb68e5d4)]
|
|
580
600
|
|
|
@@ -760,6 +780,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
760
780
|
|
|
761
781
|
#### :house: Internal changes
|
|
762
782
|
|
|
783
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
|
|
763
784
|
|
|
764
785
|
#### :hammer_and_wrench: Others
|
|
765
786
|
|
|
@@ -915,6 +936,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
915
936
|
|
|
916
937
|
#### :hammer_and_wrench: Others
|
|
917
938
|
|
|
939
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
|
|
918
940
|
### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
|
|
919
941
|
|
|
920
942
|
#### :bug: Bug Fixes
|
|
@@ -1061,6 +1083,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1061
1083
|
|
|
1062
1084
|
- For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
|
|
1063
1085
|
- Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
|
|
1086
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
|
|
1064
1087
|
### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
|
|
1065
1088
|
|
|
1066
1089
|
#### :hammer_and_wrench: Others
|
|
@@ -1094,6 +1117,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1094
1117
|
|
|
1095
1118
|
- Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
|
|
1096
1119
|
- bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
|
|
1120
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
|
|
1097
1121
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
|
|
1098
1122
|
### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
|
|
1099
1123
|
|
|
@@ -1103,6 +1127,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1103
1127
|
|
|
1104
1128
|
#### :hammer_and_wrench: Others
|
|
1105
1129
|
|
|
1130
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
|
|
1106
1131
|
- Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
|
|
1107
1132
|
- Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
|
|
1108
1133
|
### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
|
|
@@ -1113,6 +1138,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1113
1138
|
|
|
1114
1139
|
#### :hammer_and_wrench: Others
|
|
1115
1140
|
|
|
1141
|
+
- yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
|
|
1116
1142
|
### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
|
|
1117
1143
|
|
|
1118
1144
|
#### :rocket: New Features
|
|
@@ -1153,6 +1179,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1153
1179
|
- Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
|
|
1154
1180
|
- Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
|
|
1155
1181
|
- fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
|
|
1182
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
|
|
1156
1183
|
### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
|
|
1157
1184
|
|
|
1158
1185
|
#### :nail_care: Enhancements
|
|
@@ -1200,6 +1227,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1200
1227
|
|
|
1201
1228
|
#### :hammer_and_wrench: Others
|
|
1202
1229
|
|
|
1230
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
|
1203
1231
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
|
1204
1232
|
|
|
1205
1233
|
#### :hammer_and_wrench: Others
|
|
@@ -1467,6 +1495,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1467
1495
|
- Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
|
|
1468
1496
|
- Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
|
|
1469
1497
|
- 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)]
|
|
1498
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
|
|
1470
1499
|
- use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
|
|
1471
1500
|
- Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
|
|
1472
1501
|
- Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
|
|
@@ -1508,4 +1537,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1508
1537
|
|
|
1509
1538
|
#### :hammer_and_wrench: Others
|
|
1510
1539
|
|
|
1540
|
+
- yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
|
|
1511
1541
|
- Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
|
package/package.json
CHANGED
|
@@ -222,9 +222,9 @@ export default compose(
|
|
|
222
222
|
return (
|
|
223
223
|
<Enhanced
|
|
224
224
|
{...props}
|
|
225
|
-
targetParent="
|
|
225
|
+
targetParent="#eea-side-menu-host"
|
|
226
226
|
fixedVisibilitySwitchTarget=".main.bar"
|
|
227
|
-
insertBeforeOnMobile=".banner"
|
|
227
|
+
// insertBeforeOnMobile=".banner"
|
|
228
228
|
shouldRender={Boolean(props.navigation?.items?.length)}
|
|
229
229
|
/>
|
|
230
230
|
);
|
|
@@ -260,6 +260,8 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
|
|
|
260
260
|
</UniversalLink>
|
|
261
261
|
)}
|
|
262
262
|
></Header.Main>
|
|
263
|
+
{/* Stable portal host for EEA side menu on mobile/tablet */}
|
|
264
|
+
<div id="eea-side-menu-host" className="eea-side-menu-host" />
|
|
263
265
|
</Header>
|
|
264
266
|
);
|
|
265
267
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
1
|
import cx from 'classnames';
|
|
3
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { flattenScales, flattenToAppURL } from '@plone/volto/helpers';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Determines the image scale name based on the provided data.
|
|
@@ -70,15 +70,27 @@ export default function Image({
|
|
|
70
70
|
attrs.height = image.height;
|
|
71
71
|
attrs.className = cx(className, { responsive });
|
|
72
72
|
|
|
73
|
+
const original = {
|
|
74
|
+
download: `${image.download}`,
|
|
75
|
+
width: image.width,
|
|
76
|
+
height: image.height,
|
|
77
|
+
};
|
|
78
|
+
|
|
73
79
|
if (!isSvg && image.scales && Object.keys(image.scales).length > 0) {
|
|
80
|
+
const defaults = ['large', 'preview', 'mini'];
|
|
81
|
+
|
|
74
82
|
const filteredScales = [
|
|
75
|
-
|
|
76
|
-
'preview',
|
|
77
|
-
'large',
|
|
83
|
+
...defaults,
|
|
78
84
|
item.data?.align === 'full' ? 'huge' : undefined,
|
|
79
85
|
]
|
|
80
86
|
.map((key) => image.scales[key])
|
|
81
87
|
.filter(Boolean);
|
|
88
|
+
|
|
89
|
+
if (filteredScales.length < defaults.length) {
|
|
90
|
+
// ensure original is added if there's no large or huge
|
|
91
|
+
filteredScales.push(original);
|
|
92
|
+
}
|
|
93
|
+
|
|
82
94
|
const imageScale = image.scales[selectedScale];
|
|
83
95
|
if (imageScale) {
|
|
84
96
|
// set default image size, width and height to the selected scale
|
|
@@ -35,8 +35,12 @@ const DefaultView = (props) => {
|
|
|
35
35
|
const hasExistingSideMenu = React.useMemo(() => {
|
|
36
36
|
const hasSM = (node) => {
|
|
37
37
|
if (!node) return false;
|
|
38
|
-
if (
|
|
39
|
-
|
|
38
|
+
if (
|
|
39
|
+
node['@type'] === 'contextNavigation' &&
|
|
40
|
+
node['variation'] === 'accordion'
|
|
41
|
+
) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
40
44
|
if (node.blocks && node.blocks_layout?.items) {
|
|
41
45
|
return node.blocks_layout.items.some((id) => hasSM(node.blocks[id]));
|
|
42
46
|
}
|
|
@@ -93,6 +97,8 @@ const DefaultView = (props) => {
|
|
|
93
97
|
const Container =
|
|
94
98
|
config.getComponent({ name: 'Container' }).component || SemanticContainer;
|
|
95
99
|
|
|
100
|
+
const content_type = content?.['@type'];
|
|
101
|
+
|
|
96
102
|
// choose the longest matching navigation path (most specific prefix)
|
|
97
103
|
const matchingNavigationPath = React.useMemo(() => {
|
|
98
104
|
const navigation_paths = contextNavigationActions || [];
|
|
@@ -106,11 +112,15 @@ const DefaultView = (props) => {
|
|
|
106
112
|
);
|
|
107
113
|
if (!candidates.length) return null;
|
|
108
114
|
|
|
109
|
-
|
|
115
|
+
const candidate = candidates.reduce(
|
|
110
116
|
(best, np) => (!best || np.url.length > best.url.length ? np : best),
|
|
111
117
|
null,
|
|
112
118
|
);
|
|
113
|
-
|
|
119
|
+
const disabledTypes =
|
|
120
|
+
(candidate && candidate.disableContextNavigationFor) || [];
|
|
121
|
+
if (disabledTypes.includes(content_type)) return null;
|
|
122
|
+
return candidate;
|
|
123
|
+
}, [contextNavigationActions, content_type, path]);
|
|
114
124
|
|
|
115
125
|
return contentLoaded ? (
|
|
116
126
|
hasBlocksData(content) ? (
|