@eui/tools 6.21.44 → 6.21.46

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.
@@ -1 +1 @@
1
- 6.21.44
1
+ 6.21.46
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.46 (2025-03-05)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * folio icon not showing up on route replacements for older MWP host version - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([e802dccc](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e802dcccb2d251ffb912a23bb4c3ab6d0704696c))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.45 (2025-03-04)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted route replacement links icon for supporting iconSvgName for menu items - MWP-11274 [MWP-11274](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11274) ([aec4cb93](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/aec4cb939f408636f3c9e4e7ea5d8fcd8d07a86b))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.44 (2025-03-04)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.44",
3
+ "version": "6.21.46",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -520,6 +520,8 @@ const generateLazyFeatureLibs = (project, routes) => {
520
520
  const generateLinks = (project, routes, envTargetFinal) => {
521
521
  tools.logInfo('Processing links generation');
522
522
 
523
+ const euiVersion = configUtils.projects.getProjectEuiVersion(project);
524
+
523
525
  let routeDefsBaseLinksFileName;
524
526
 
525
527
  if (
@@ -556,7 +558,7 @@ const generateLinks = (project, routes, envTargetFinal) => {
556
558
  workspaceDefsBaseJSON = require(path.join(project.paths.assetsPath, workspaceDefsBaseFilename));
557
559
  }
558
560
 
559
- const getRouteMenuDef = (link) => {
561
+ const getRouteMenuDef = (link, euiVersion) => {
560
562
  let routeDef = null;
561
563
 
562
564
  if (link.url) {
@@ -582,6 +584,15 @@ const generateLinks = (project, routes, envTargetFinal) => {
582
584
  routeDef.alwaysDisplayed = link.alwaysDisplayed;
583
585
  }
584
586
 
587
+ // temporary fix during v17 / v19 host transition (as the exception that folio is using iconSvgName (custom icon) in v17 already)
588
+ if (parseInt(euiVersion) >= 18) {
589
+ delete routeDef['iconClass'];
590
+ } else {
591
+ if (routeDef.url !== '/folio-fo/home') {
592
+ delete routeDef['iconSvgName'];
593
+ }
594
+ }
595
+
585
596
  return;
586
597
  }
587
598
  });
@@ -653,7 +664,7 @@ const generateLinks = (project, routes, envTargetFinal) => {
653
664
 
654
665
  link.children.forEach((subLink) => {
655
666
  if (isLinkAllowed(subLink)) {
656
- const defRoute = getRouteMenuDef(subLink);
667
+ const defRoute = getRouteMenuDef(subLink, euiVersion);
657
668
 
658
669
  if (defRoute) {
659
670
  if (project.name.indexOf('playground') > 0) {
@@ -676,7 +687,7 @@ const generateLinks = (project, routes, envTargetFinal) => {
676
687
  }
677
688
  } else {
678
689
  if (isLinkAllowed(link)) {
679
- const defRoute = getRouteMenuDef(link);
690
+ const defRoute = getRouteMenuDef(link, euiVersion);
680
691
 
681
692
  if (defRoute) {
682
693
  if (project.name.indexOf('playground') > 0) {