@scm-manager/ui-components 4.0.0-REACT19-20251115-163310 → 4.0.0-REACT19-20260005-080205
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-
|
|
3
|
+
"version": "4.0.0-REACT19-20260005-080205",
|
|
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-
|
|
38
|
-
"@scm-manager/ui-types": "4.0.0-REACT19-
|
|
37
|
+
"@scm-manager/ui-syntaxhighlighting": "4.0.0-REACT19-20260005-080205",
|
|
38
|
+
"@scm-manager/ui-types": "4.0.0-REACT19-20260005-080205",
|
|
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-
|
|
70
|
-
"@scm-manager/ui-core": "4.0.0-REACT19-
|
|
71
|
-
"@scm-manager/ui-extensions": "4.0.0-REACT19-
|
|
69
|
+
"@scm-manager/ui-api": "4.0.0-REACT19-20260005-080205",
|
|
70
|
+
"@scm-manager/ui-core": "4.0.0-REACT19-20260005-080205",
|
|
71
|
+
"@scm-manager/ui-extensions": "4.0.0-REACT19-20260005-080205",
|
|
72
72
|
"deepmerge": "^4.2.2",
|
|
73
73
|
"hast-util-sanitize": "^3.0.2",
|
|
74
74
|
"react-diff-view": "2.6.0",
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
TitledRepositorySettingComponent,
|
|
27
27
|
} from "./TitledSettings";
|
|
28
28
|
import { NAMESPACE_SUB_ROUTES, REPOSITORY_SUB_ROUTES } from "@scm-manager/ui-core";
|
|
29
|
+
import { useIndexLinks } from "@scm-manager/ui-api";
|
|
29
30
|
|
|
30
31
|
type GlobalRouteProps = {
|
|
31
32
|
url: string;
|
|
@@ -75,10 +76,13 @@ class ConfigurationBinder {
|
|
|
75
76
|
|
|
76
77
|
// route for global configuration, passes the link from the index resource to component
|
|
77
78
|
const ConfigRoute = ({ ...additionalProps }: GlobalRouteProps = {} as GlobalRouteProps) => {
|
|
79
|
+
const links = useIndexLinks();
|
|
80
|
+
const link = links[linkName];
|
|
81
|
+
|
|
78
82
|
return this.route(
|
|
79
83
|
sanitizedTo,
|
|
80
84
|
<TitledGlobalSettingComponent i18nNamespace={this.i18nNamespace} label={labelI18nKey}>
|
|
81
|
-
<ConfigurationComponent {...additionalProps} />
|
|
85
|
+
<ConfigurationComponent link={(link as Link)?.href} {...additionalProps} />
|
|
82
86
|
</TitledGlobalSettingComponent>,
|
|
83
87
|
);
|
|
84
88
|
};
|