Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️(dependencies) update js dependencies #319

Merged
merged 4 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/frontend/apps/desk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,35 @@
"dependencies": {
"@gouvfr-lasuite/integration": "1.0.2",
"@hookform/resolvers": "3.9.0",
"@openfun/cunningham-react": "2.9.3",
"@tanstack/react-query": "5.51.16",
"i18next": "23.12.2",
"@openfun/cunningham-react": "2.9.4",
"@tanstack/react-query": "5.52.3",
"i18next": "23.14.0",
"lodash": "4.17.21",
"luxon": "3.4.4",
"next": "14.2.5",
"luxon": "3.5.0",
"next": "14.2.7",
"react": "*",
"react-aria-components": "1.3.1",
"react-aria-components": "1.3.3",
"react-dom": "*",
"react-hook-form": "7.52.1",
"react-i18next": "15.0.0",
"react-hook-form": "7.53.0",
"react-i18next": "15.0.1",
"react-select": "5.8.0",
"styled-components": "6.1.12",
"styled-components": "6.1.13",
"zod": "3.23.8",
"zustand": "4.5.4"
"zustand": "4.5.5"
},
"devDependencies": {
"@hookform/devtools": "4.3.1",
"@svgr/webpack": "8.1.0",
"@tanstack/react-query-devtools": "5.51.16",
"@tanstack/react-query-devtools": "5.52.3",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "16.0.0",
"@testing-library/jest-dom": "6.5.0",
"@testing-library/react": "16.0.1",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.12",
"@types/lodash": "4.17.7",
"@types/luxon": "3.4.2",
"@types/node": "*",
"@types/react": "18.3.3",
"@types/react": "18.3.4",
"@types/react-dom": "*",
"dotenv": "16.4.5",
"eslint-config-people": "*",
Expand All @@ -54,7 +54,7 @@
"jest-environment-jsdom": "29.7.0",
"node-fetch": "2.7.0",
"prettier": "3.3.3",
"stylelint": "16.8.1",
"stylelint": "16.9.0",
"stylelint-config-standard": "36.0.1",
"stylelint-prettier": "5.0.2",
"typescript": "*"
Expand Down
1 change: 0 additions & 1 deletion src/frontend/apps/desk/src/components/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export interface TextProps extends BoxProps {
>;
$weight?: CSSProperties['fontWeight'];
$textAlign?: CSSProperties['textAlign'];
// eslint-disable-next-line @typescript-eslint/ban-types
$size?: TextSizes | (string & {});
$theme?:
| 'primary'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ export const ModalDelete = ({ access, onClose, team }: ModalDeleteProps) => {

// If we remove ourselves, we redirect to the home page
// because we are no longer part of the team
isMyself ? router.push('/') : onClose();
if (isMyself) {
router.push('/');
} else {
onClose();
}
},
});

Expand Down
4 changes: 1 addition & 3 deletions src/frontend/apps/desk/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ const Page: NextPageWithLayout = () => {
const router = useNavigate();

useEffect(() => {
config?.FEATURES.TEAMS
? router.push('/teams/')
: router.push('/mail-domains/');
router.push(config?.FEATURES.TEAMS ? '/teams/' : '/mail-domains/');
}, [config?.FEATURES.TEAMS, router]);

return null;
Expand Down
1 change: 0 additions & 1 deletion src/frontend/apps/desk/src/utils/styleBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const spacings = {
};

type SpacingsKey = keyof typeof spacings;
// eslint-disable-next-line @typescript-eslint/ban-types
export type Spacings = SpacingsKey | (string & {});

export const spacingValue = (value?: Spacings) =>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/apps/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:ui": "yarn test --ui"
},
"devDependencies": {
"@playwright/test": "1.45.3",
"@playwright/test": "1.46.1",
"@types/node": "*",
"eslint-config-people": "*",
"typescript": "*"
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"i18n:test": "yarn I18N run test"
},
"resolutions": {
"@types/node": "20.14.13",
"@types/node": "20.16.2",
"@types/react-dom": "18.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
13 changes: 7 additions & 6 deletions src/frontend/packages/eslint-config-people/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
"lint": "eslint --ext .js ."
},
"dependencies": {
"@next/eslint-plugin-next": "14.2.5",
"@tanstack/eslint-plugin-query": "5.51.15",
"@typescript-eslint/eslint-plugin": "7.13.1",
"@next/eslint-plugin-next": "14.2.7",
"@tanstack/eslint-plugin-query": "5.52.3",
"@typescript-eslint/eslint-plugin": "8.3.0",
"@typescript-eslint/parser": "8.3.0",
"eslint": "8.57.0",
"eslint-config-next": "14.2.5",
"eslint-config-next": "14.2.7",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest": "28.6.0",
"eslint-plugin-jest": "28.8.1",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-playwright": "1.6.2",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-testing-library": "6.2.2"
"eslint-plugin-testing-library": "6.3.0"
}
}
2 changes: 1 addition & 1 deletion src/frontend/packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"eslint-plugin-import": "2.29.1",
"i18next-parser": "8.8.0",
"jest": "29.7.0",
"ts-jest": "29.2.3",
"ts-jest": "29.2.5",
"typescript": "*",
"yargs": "17.7.2"
}
Expand Down
Loading
Loading