Skip to content

Commit cc869f0

Browse files
authored
Upgrade frontend dependencies (#360)
Signed-off-by: Cintia Sánchez García <[email protected]>
1 parent 67c1b91 commit cc869f0

File tree

7 files changed

+1563
-1494
lines changed

7 files changed

+1563
-1494
lines changed

web/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SASS_SILENCE_DEPRECATIONS=legacy-js-api,import,global-builtin,color-functions,unit

web/eslint.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import simpleImportSort from 'eslint-plugin-simple-import-sort';
66
import tseslint from 'typescript-eslint';
77
import globals from "globals";
88

9+
const tsRecommended = tseslint.plugin.configs['flat/recommended'];
10+
911
const config = [
1012
js.configs.recommended,
11-
...tseslint.configs.recommended,
13+
...tsRecommended,
1214
{
1315
linterOptions: {
1416
reportUnusedDisableDirectives: 'error',

web/package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,42 @@
66
"type": "module",
77
"dependencies": {
88
"classnames": "^2.5.1",
9-
"clo-ui": "https://github.com/cncf/clo-ui.git#v0.4.2",
9+
"clo-ui": "https://github.com/cncf/clo-ui.git#v0.4.5",
1010
"lodash": "^4.17.21",
1111
"moment": "^2.30.1",
1212
"react": "^18.3.1",
1313
"react-dom": "^18.3.1",
1414
"react-icons": "^5.4.0",
15-
"react-router-dom": "^7.3.0",
15+
"react-router-dom": "^7.9.2",
1616
"source-map-explorer": "^2.5.3"
1717
},
1818
"devDependencies": {
1919
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
20-
"@eslint/js": "^9.20.0",
21-
"@testing-library/jest-dom": "^6.6.3",
22-
"@testing-library/react": "^16.2.0",
20+
"@eslint/js": "^9.36.0",
21+
"@testing-library/jest-dom": "^6.8.0",
22+
"@testing-library/react": "^16.3.0",
2323
"@testing-library/user-event": "^14.6.1",
24-
"@types/jest": "^29.5.14",
25-
"@types/lodash": "^4.17.15",
26-
"@types/node": "^22.13.1",
27-
"@types/react": "^18.3.18",
28-
"@types/react-dom": "^18.3.5",
29-
"eslint": "^9.20.0",
30-
"eslint-config-prettier": "^10.1.1",
31-
"eslint-plugin-prettier": "^5.2.3",
24+
"@types/jest": "^30.0.0",
25+
"@types/lodash": "^4.17.20",
26+
"@types/node": "^24.5.2",
27+
"@types/react": "^19.1.13",
28+
"@types/react-dom": "^19.1.9",
29+
"eslint": "^9.36.0",
30+
"eslint-config-prettier": "^10.1.8",
31+
"eslint-plugin-prettier": "^5.5.4",
3232
"eslint-plugin-react-hooks": "^5.1.0",
3333
"eslint-plugin-simple-import-sort": "^12.1.1",
34-
"globals": "^16.0.0",
35-
"postcss": "^8.5.2",
36-
"prettier": "^3.5.0",
34+
"globals": "^16.4.0",
35+
"postcss": "^8.5.6",
36+
"prettier": "^3.6.2",
3737
"react-scripts": "5.0.1",
38-
"sass": "^1.84.0",
38+
"sass": "^1.93.2",
3939
"shx": "^0.4.0",
40-
"typescript": "^5.7.3",
41-
"typescript-eslint": "^8.24.0"
40+
"typescript": "^5.9.2",
41+
"typescript-eslint": "^8.44.1"
4242
},
4343
"resolutions": {
44-
"react-scripts/**/core-js-pure": "3.41.0"
44+
"react-scripts/**/core-js-pure": "3.45.1"
4545
},
4646
"scripts": {
4747
"copy:static": "shx rm -rf src/static && shx mkdir src/static && shx cp -r public/static/* src",

web/src/context/AppContextProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { detectActiveThemeMode, useSystemThemeMode } from 'clo-ui';
22
import { isNull } from 'lodash';
3-
import { createContext, Dispatch, useContext, useEffect, useReducer, useState } from 'react';
3+
import { createContext, Dispatch, ReactNode, useContext, useEffect, useReducer, useState } from 'react';
44

55
import { Prefs, SortBy, SortDirection } from '../types';
66
import lsStorage from '../utils/localStoragePreferences';
@@ -10,7 +10,7 @@ interface AppState {
1010
}
1111

1212
interface Props {
13-
children: JSX.Element;
13+
children: ReactNode;
1414
}
1515

1616
const initialState: AppState = {

web/src/layout/navigation/MobileSettings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import classNames from 'classnames';
22
import { ExternalLink, useOutsideClick } from 'clo-ui';
3-
import { useRef, useState } from 'react';
3+
import { RefObject, useRef, useState } from 'react';
44
import { BsList } from 'react-icons/bs';
55
import { FaGithub } from 'react-icons/fa';
66

@@ -9,8 +9,8 @@ import ThemeMode from './ThemeMode';
99

1010
const MobileSettings = () => {
1111
const [visibleDropdown, setVisibleDropdown] = useState(false);
12-
const ref = useRef(null);
13-
useOutsideClick([ref], visibleDropdown, () => setVisibleDropdown(false));
12+
const ref = useRef<HTMLDivElement | null>(null);
13+
useOutsideClick([ref as unknown as RefObject<HTMLElement>], visibleDropdown, () => setVisibleDropdown(false));
1414

1515
return (
1616
<div ref={ref} className="d-flex d-md-none ms-auto position-relative">

web/src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export interface ReconciliationStatus {
116116
}
117117

118118
export interface SearchTipItem {
119-
content: JSX.Element | string;
119+
content: ReactNode;
120120
example: string;
121121
}
122+
import { ReactNode } from 'react';

0 commit comments

Comments
 (0)