@scm-manager/ui-components 3.9.0 → 4.0.0-REACT18-20250701-125025

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": "3.9.0",
3
+ "version": "4.0.0-REACT18-20250701-125025",
4
4
  "description": "UI Components for SCM-Manager and its plugins",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -23,17 +23,17 @@
23
23
  "@headlessui/react": "^1.7.17",
24
24
  "classnames": "^2.3.1",
25
25
  "date-fns": "^2.4.1",
26
- "react": "^17.0.1",
27
- "react-dom": "^17.0.1",
26
+ "react": "^18.3.1",
27
+ "react-dom": "^18.3.1",
28
28
  "react-i18next": "11",
29
- "react-router-dom": "^5.3.1",
29
+ "react-router-dom": "^5.3.3",
30
30
  "styled-components": "^5.3.5",
31
31
  "i18next": "21",
32
32
  "react-query": "^3.39.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@scm-manager/ui-tests": "3.9.0",
36
- "@scm-manager/ui-types": "3.9.0",
35
+ "@scm-manager/ui-tests": "4.0.0-REACT18-20250701-125025",
36
+ "@scm-manager/ui-types": "4.0.0-REACT18-20250701-125025",
37
37
  "@types/fetch-mock": "^7.3.1",
38
38
  "@types/react-select": "^2.0.19",
39
39
  "@types/unist": "^2.0.3",
@@ -51,7 +51,7 @@
51
51
  "storybook-addon-i18next": "^1.3.0",
52
52
  "storybook-addon-themes": "^6.1.0",
53
53
  "@types/classnames": "^2.3.1",
54
- "@types/react": "^17.0.1",
54
+ "@types/react": "^18.3.1",
55
55
  "@types/react-dom": "^17.0.1",
56
56
  "@types/react-router-dom": "^5.3.3",
57
57
  "@types/styled-components": "^5.1.25",
@@ -59,26 +59,26 @@
59
59
  "fetch-mock": "^7.5.1",
60
60
  "html-webpack-plugin": "^5.5.0",
61
61
  "mini-css-extract-plugin": "^2.4.3",
62
- "react-test-renderer": "^17.0.1",
62
+ "react-test-renderer": "^18.2.0",
63
63
  "sass-loader": "^12.3.0",
64
- "@types/react-test-renderer": "^17.0.1",
64
+ "@types/react-test-renderer": "^18.2.0",
65
65
  "decode-named-character-reference": "^1.0.1",
66
66
  "@scm-manager/babel-preset": "^2.13.1",
67
67
  "@scm-manager/eslint-config": "^2.17.0",
68
68
  "@scm-manager/jest-preset": "^2.14.1",
69
69
  "@scm-manager/prettier-config": "^2.12.0",
70
70
  "@scm-manager/tsconfig": "^2.13.0",
71
- "@scm-manager/ui-syntaxhighlighting": "3.9.0",
72
- "@scm-manager/ui-shortcuts": "3.9.0",
73
- "@scm-manager/ui-text": "3.9.0"
71
+ "@scm-manager/ui-syntaxhighlighting": "4.0.0-REACT18-20250701-125025",
72
+ "@scm-manager/ui-shortcuts": "4.0.0-REACT18-20250701-125025",
73
+ "@scm-manager/ui-text": "4.0.0-REACT18-20250701-125025"
74
74
  },
75
75
  "dependencies": {
76
- "@scm-manager/ui-core": "3.9.0",
77
- "@scm-manager/ui-overlays": "3.9.0",
78
- "@scm-manager/ui-layout": "3.9.0",
79
- "@scm-manager/ui-buttons": "3.9.0",
80
- "@scm-manager/ui-api": "3.9.0",
81
- "@scm-manager/ui-extensions": "3.9.0",
76
+ "@scm-manager/ui-core": "4.0.0-REACT18-20250701-125025",
77
+ "@scm-manager/ui-overlays": "4.0.0-REACT18-20250701-125025",
78
+ "@scm-manager/ui-layout": "4.0.0-REACT18-20250701-125025",
79
+ "@scm-manager/ui-buttons": "4.0.0-REACT18-20250701-125025",
80
+ "@scm-manager/ui-api": "4.0.0-REACT18-20250701-125025",
81
+ "@scm-manager/ui-extensions": "4.0.0-REACT18-20250701-125025",
82
82
  "deepmerge": "^4.2.2",
83
83
  "hast-util-sanitize": "^3.0.2",
84
84
  "react-diff-view": "^2.4.10",
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import ActiveModalCountContext from "./activeModalCountContext";
18
- import React, { FC, useCallback, useState } from "react";
18
+ import React, { FC, ReactNode, useCallback, useState } from "react";
19
19
 
20
20
  /**
21
21
  * A simple counter that allows developers to keep track of how many modals are currently open.
@@ -24,7 +24,7 @@ import React, { FC, useCallback, useState } from "react";
24
24
  *
25
25
  * Required by {@link useActiveModals}.
26
26
  */
27
- const ActiveModalCountContextProvider: FC = ({ children }) => {
27
+ const ActiveModalCountContextProvider: FC<{ children: ReactNode }> = ({ children }) => {
28
28
  const [activeModalCount, setActiveModalCount] = useState(0);
29
29
  const incrementModalCount = useCallback(() => setActiveModalCount((prev) => prev + 1), []);
30
30
  const decrementModalCount = useCallback(() => setActiveModalCount((prev) => prev - 1), []);