@scm-manager/ui-components 4.0.0-REACT19-20251104-162002 → 4.0.0-REACT19-20251105-104255
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-20251105-104255",
|
|
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-20251105-104255",
|
|
38
|
+
"@scm-manager/ui-types": "4.0.0-REACT19-20251105-104255",
|
|
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-20251105-104255",
|
|
70
|
+
"@scm-manager/ui-core": "4.0.0-REACT19-20251105-104255",
|
|
71
|
+
"@scm-manager/ui-extensions": "4.0.0-REACT19-20251105-104255",
|
|
72
72
|
"deepmerge": "^4.2.2",
|
|
73
73
|
"hast-util-sanitize": "^3.0.2",
|
|
74
74
|
"react-diff-view": "2.6.0",
|
|
@@ -58,12 +58,6 @@ 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
|
-
|
|
67
61
|
// create NavigationLink with translated label
|
|
68
62
|
const sanitizedTo = to.startsWith("/") ? to.substring(1) : to;
|
|
69
63
|
const ConfigNavLink = withTranslation(this.i18nNamespace)(({ t }) => {
|
|
@@ -71,7 +65,7 @@ class ConfigurationBinder {
|
|
|
71
65
|
});
|
|
72
66
|
|
|
73
67
|
// bind navigation link to extension point
|
|
74
|
-
binder.bind("admin.setting", ConfigNavLink,
|
|
68
|
+
binder.bind("admin.setting", ConfigNavLink, () => {}, sortKey ?? linkName);
|
|
75
69
|
|
|
76
70
|
// route for global configuration, passes the link from the index resource to component
|
|
77
71
|
const ConfigRoute = ({ ...additionalProps }: GlobalRouteProps = {} as GlobalRouteProps) => {
|