@scm-manager/ui-components 4.0.0-REACT19-20251105-104255 → 4.0.0-REACT19-20251105-143915

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scm-manager/ui-components",
3
- "version": "4.0.0-REACT19-20251105-104255",
3
+ "version": "4.0.0-REACT19-20251105-143915",
4
4
  "description": "UI Components for SCM-Manager and its plugins",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -34,8 +34,8 @@
34
34
  "@scm-manager/eslint-config": "^2.18.2",
35
35
  "@scm-manager/prettier-config": "^2.12.0",
36
36
  "@scm-manager/tsconfig": "^2.13.0",
37
- "@scm-manager/ui-syntaxhighlighting": "4.0.0-REACT19-20251105-104255",
38
- "@scm-manager/ui-types": "4.0.0-REACT19-20251105-104255",
37
+ "@scm-manager/ui-syntaxhighlighting": "4.0.0-REACT19-20251105-143915",
38
+ "@scm-manager/ui-types": "4.0.0-REACT19-20251105-143915",
39
39
  "@storybook/addon-actions": "^9.0.8",
40
40
  "@storybook/addon-docs": "^9.1.5",
41
41
  "@storybook/addon-essentials": "^9.0.0-alpha.12",
@@ -66,9 +66,9 @@
66
66
  "vitest": "^3.2.4"
67
67
  },
68
68
  "dependencies": {
69
- "@scm-manager/ui-api": "4.0.0-REACT19-20251105-104255",
70
- "@scm-manager/ui-core": "4.0.0-REACT19-20251105-104255",
71
- "@scm-manager/ui-extensions": "4.0.0-REACT19-20251105-104255",
69
+ "@scm-manager/ui-api": "4.0.0-REACT19-20251105-143915",
70
+ "@scm-manager/ui-core": "4.0.0-REACT19-20251105-143915",
71
+ "@scm-manager/ui-extensions": "4.0.0-REACT19-20251105-143915",
72
72
  "deepmerge": "^4.2.2",
73
73
  "hast-util-sanitize": "^3.0.2",
74
74
  "react-diff-view": "2.6.0",
@@ -58,6 +58,12 @@ class ConfigurationBinder {
58
58
  }
59
59
 
60
60
  bindAdminSetting(to: string, labelI18nKey: string, linkName: string, ConfigurationComponent: any, sortKey?: string) {
61
+ // create predicate based on the link name of the index resource
62
+ // if the linkname is not available, the navigation link and the route are not bound to the extension points
63
+ const configPredicate = (props: any) => {
64
+ return props.links && props.links[linkName];
65
+ };
66
+
61
67
  // create NavigationLink with translated label
62
68
  const sanitizedTo = to.startsWith("/") ? to.substring(1) : to;
63
69
  const ConfigNavLink = withTranslation(this.i18nNamespace)(({ t }) => {
@@ -65,7 +71,7 @@ class ConfigurationBinder {
65
71
  });
66
72
 
67
73
  // bind navigation link to extension point
68
- binder.bind("admin.setting", ConfigNavLink, () => {}, sortKey ?? linkName);
74
+ binder.bind("admin.setting", ConfigNavLink, configPredicate, sortKey ?? linkName);
69
75
 
70
76
  // route for global configuration, passes the link from the index resource to component
71
77
  const ConfigRoute = ({ ...additionalProps }: GlobalRouteProps = {} as GlobalRouteProps) => {