⬆️(dependencies) update js dependencies (#591)

* ⬆️(dependencies) update js dependencies

* ⬆️(dependencies) fixes for React 19

* ⬆️(dependencies) unit test fixes for React 19

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Laurent Bossavit <laurent@MacBook-Pro-de-Laurent.local>
This commit is contained in:
renovate[bot]
2025-01-10 15:25:38 +01:00
committed by GitHub
parent 6962953625
commit a28bb5e2a2
11 changed files with 2370 additions and 1894 deletions

View File

@@ -16,45 +16,45 @@
}, },
"dependencies": { "dependencies": {
"@gouvfr-lasuite/integration": "1.0.2", "@gouvfr-lasuite/integration": "1.0.2",
"@hookform/resolvers": "3.9.1", "@hookform/resolvers": "3.10.0",
"@openfun/cunningham-react": "2.9.4", "@openfun/cunningham-react": "3.0.0",
"@tanstack/react-query": "5.62.0", "@tanstack/react-query": "5.63.0",
"i18next": "24.0.2", "i18next": "24.2.1",
"lodash": "4.17.21", "lodash": "4.17.21",
"luxon": "3.5.0", "luxon": "3.5.0",
"next": "15.1.2", "next": "15.1.4",
"react": "*", "react": "*",
"react-dom": "*", "react-dom": "*",
"react-hook-form": "7.53.2", "react-hook-form": "7.54.2",
"react-i18next": "15.1.3", "react-i18next": "15.4.0",
"react-select": "5.8.3", "react-select": "5.9.0",
"sass": "1.81.0", "sass": "1.83.1",
"styled-components": "6.1.13", "styled-components": "6.1.14",
"zod": "3.23.8", "zod": "3.24.1",
"zustand": "5.0.1" "zustand": "5.0.3"
}, },
"devDependencies": { "devDependencies": {
"@hookform/devtools": "4.3.1", "@hookform/devtools": "4.3.3",
"@svgr/webpack": "8.1.0", "@svgr/webpack": "8.1.0",
"@tanstack/react-query-devtools": "5.62.0", "@tanstack/react-query-devtools": "5.63.0",
"@testing-library/dom": "10.4.0", "@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.3", "@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.0.1", "@testing-library/react": "16.1.0",
"@testing-library/user-event": "14.5.2", "@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.14", "@types/jest": "29.5.14",
"@types/lodash": "4.17.13", "@types/lodash": "4.17.14",
"@types/luxon": "3.4.2", "@types/luxon": "3.4.2",
"@types/node": "*", "@types/node": "*",
"@types/react": "18.3.12", "@types/react": "19.0.4",
"@types/react-dom": "*", "@types/react-dom": "*",
"dotenv": "16.4.5", "dotenv": "16.4.7",
"eslint-config-people": "*", "eslint-config-people": "*",
"fetch-mock": "9.11.0", "fetch-mock": "9.11.0",
"jest": "29.7.0", "jest": "29.7.0",
"jest-environment-jsdom": "29.7.0", "jest-environment-jsdom": "29.7.0",
"node-fetch": "2.7.0", "node-fetch": "2.7.0",
"prettier": "3.4.1", "prettier": "3.4.2",
"stylelint": "16.11.0", "stylelint": "16.12.0",
"stylelint-config-standard": "36.0.1", "stylelint-config-standard": "36.0.1",
"stylelint-prettier": "5.0.2", "stylelint-prettier": "5.0.2",
"typescript": "*" "typescript": "*"

View File

@@ -1,4 +1,4 @@
import { ComponentPropsWithRef, ReactHTML } from 'react'; import { ComponentPropsWithRef } from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
import { CSSProperties } from 'styled-components/dist/types'; import { CSSProperties } from 'styled-components/dist/types';
@@ -9,7 +9,7 @@ import {
} from '@/utils/styleBuilder'; } from '@/utils/styleBuilder';
export interface BoxProps { export interface BoxProps {
as?: keyof ReactHTML; as?: keyof HTMLElementTagNameMap;
$align?: CSSProperties['alignItems']; $align?: CSSProperties['alignItems'];
$background?: CSSProperties['background']; $background?: CSSProperties['background'];
$color?: CSSProperties['color']; $color?: CSSProperties['color'];

View File

@@ -17,7 +17,7 @@ export const InfiniteScroll = ({
scrollContainer, scrollContainer,
...boxProps ...boxProps
}: PropsWithChildren<InfiniteScrollProps>) => { }: PropsWithChildren<InfiniteScrollProps>) => {
const timeout = useRef<ReturnType<typeof setTimeout>>(); const timeout = useRef<ReturnType<typeof setTimeout>>(null);
useEffect(() => { useEffect(() => {
if (!scrollContainer) { if (!scrollContainer) {

View File

@@ -1,4 +1,4 @@
import { CSSProperties, ComponentPropsWithRef, ReactHTML } from 'react'; import { CSSProperties, ComponentPropsWithRef } from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
import { tokens } from '@/cunningham'; import { tokens } from '@/cunningham';
@@ -10,7 +10,7 @@ type TextSizes = keyof typeof sizes;
export interface TextProps extends BoxProps { export interface TextProps extends BoxProps {
as?: keyof Pick< as?: keyof Pick<
ReactHTML, HTMLElementTagNameMap,
'p' | 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' 'p' | 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
>; >;
$weight?: CSSProperties['fontWeight']; $weight?: CSSProperties['fontWeight'];

View File

@@ -126,7 +126,7 @@ describe('MailDomainAccessesPage', () => {
mailDomain: mockMailDomain, mailDomain: mockMailDomain,
currentRole: Role.OWNER, currentRole: Role.OWNER,
}, },
{}, // adding this empty object is necessary to load jest context undefined, // adding this undefined value is necessary to load jest context
); );
}); });
}); });

View File

@@ -119,7 +119,7 @@ describe('AccessAction', () => {
slug: mockMailDomain.slug, slug: mockMailDomain.slug,
onClose: expect.any(Function), onClose: expect.any(Function),
}), }),
{}, undefined,
); );
}); });
@@ -161,7 +161,7 @@ describe('AccessAction', () => {
mailDomain: mockMailDomain, mailDomain: mockMailDomain,
onClose: expect.any(Function), onClose: expect.any(Function),
}), }),
{}, undefined,
); );
}); });

View File

@@ -9,7 +9,7 @@
"test:ui": "yarn test --ui" "test:ui": "yarn test --ui"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "1.49.0", "@playwright/test": "1.49.1",
"@types/node": "*", "@types/node": "*",
"eslint-config-people": "*", "eslint-config-people": "*",
"typescript": "*" "typescript": "*"

View File

@@ -24,10 +24,10 @@
"i18n:test": "yarn I18N run test" "i18n:test": "yarn I18N run test"
}, },
"resolutions": { "resolutions": {
"@types/node": "22.10.1", "@types/node": "22.10.5",
"@types/react-dom": "18.3.1", "@types/react-dom": "19.0.2",
"react": "18.3.1", "react": "19.0.0",
"react-dom": "18.3.1", "react-dom": "19.0.0",
"typescript": "5.7.2" "typescript": "5.7.3"
} }
} }

View File

@@ -6,19 +6,19 @@
"lint": "eslint --ext .js ." "lint": "eslint --ext .js ."
}, },
"dependencies": { "dependencies": {
"@next/eslint-plugin-next": "15.0.3", "@next/eslint-plugin-next": "15.1.4",
"@tanstack/eslint-plugin-query": "5.61.6", "@tanstack/eslint-plugin-query": "5.62.16",
"@typescript-eslint/eslint-plugin": "8.16.0", "@typescript-eslint/eslint-plugin": "8.19.1",
"@typescript-eslint/parser": "8.16.0", "@typescript-eslint/parser": "8.19.1",
"eslint": "8.57.0", "eslint": "8.57.0",
"eslint-config-next": "15.0.3", "eslint-config-next": "15.1.4",
"eslint-config-prettier": "9.1.0", "eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0", "eslint-plugin-import": "2.31.0",
"eslint-plugin-jest": "28.9.0", "eslint-plugin-jest": "28.10.0",
"eslint-plugin-jsx-a11y": "6.10.2", "eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-playwright": "2.1.0", "eslint-plugin-playwright": "2.1.0",
"eslint-plugin-prettier": "5.2.1", "eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.2", "eslint-plugin-react": "7.37.3",
"eslint-plugin-testing-library": "7.0.0" "eslint-plugin-testing-library": "7.1.1"
} }
} }

View File

@@ -15,7 +15,7 @@
"@types/node": "*", "@types/node": "*",
"eslint-config-people": "*", "eslint-config-people": "*",
"eslint-plugin-import": "2.31.0", "eslint-plugin-import": "2.31.0",
"i18next-parser": "9.0.2", "i18next-parser": "9.1.0",
"jest": "29.7.0", "jest": "29.7.0",
"ts-jest": "29.2.5", "ts-jest": "29.2.5",
"typescript": "*", "typescript": "*",

File diff suppressed because it is too large Load Diff