Skip to content

Commit f6f5270

Browse files
dependabot[bot]sutne
authored andcommitted
build: bump the dependencies group with 7 updates
Bumps the dependencies group with 7 updates: | Package | From | To | | --- | --- | --- | | [@mui/icons-material](https://github.com/mui/material-ui/tree/HEAD/packages/mui-icons-material) | `7.3.7` | `7.3.8` | | [@mui/material](https://github.com/mui/material-ui/tree/HEAD/packages/mui-material) | `7.3.7` | `7.3.8` | | [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) | `7.13.0` | `7.13.1` | | [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) | `2.3.13` | `2.4.4` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `25.1.0` | `25.3.3` | | [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `19.2.10` | `19.2.14` | | [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) | `5.1.2` | `5.1.4` | Updates `@mui/icons-material` from 7.3.7 to 7.3.8 - [Release notes](https://github.com/mui/material-ui/releases) - [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui/material-ui/commits/v7.3.8/packages/mui-icons-material) Updates `@mui/material` from 7.3.7 to 7.3.8 - [Release notes](https://github.com/mui/material-ui/releases) - [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui/material-ui/commits/v7.3.8/packages/mui-material) Updates `react-router-dom` from 7.13.0 to 7.13.1 - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@7.13.1/packages/react-router-dom) Updates `@biomejs/biome` from 2.3.13 to 2.4.4 - [Release notes](https://github.com/biomejs/biome/releases) - [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md) - [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.4.4/packages/@biomejs/biome) Updates `@types/node` from 25.1.0 to 25.3.3 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `@types/react` from 19.2.10 to 19.2.14 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) Updates `@vitejs/plugin-react` from 5.1.2 to 5.1.4 - [Release notes](https://github.com/vitejs/vite-plugin-react/releases) - [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@5.1.4/packages/plugin-react) --- updated-dependencies: - dependency-name: "@mui/icons-material" dependency-version: 7.3.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: "@mui/material" dependency-version: 7.3.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: react-router-dom dependency-version: 7.13.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: "@biomejs/biome" dependency-version: 2.4.4 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: "@types/node" dependency-version: 25.3.3 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: "@types/react" dependency-version: 19.2.14 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: "@vitejs/plugin-react" dependency-version: 5.1.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 1557e87 commit f6f5270

9 files changed

Lines changed: 257 additions & 237 deletions

File tree

package-lock.json

Lines changed: 213 additions & 199 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
"dependencies": {
1313
"@emotion/react": "^11.14.0",
1414
"@emotion/styled": "^11.14.1",
15-
"@mui/icons-material": "^7.3.7",
15+
"@mui/icons-material": "^7.3.8",
1616
"@mui/material": "^7.0.2",
1717
"react": "^19.2.4",
1818
"react-dom": "^19.2.4",
19-
"react-router-dom": "^7.13.0",
19+
"react-router-dom": "^7.13.1",
2020
"universal-cookie": "^8.0.1"
2121
},
2222
"devDependencies": {
23-
"@biomejs/biome": "^2.3.13",
24-
"@types/node": "^25.1.0",
25-
"@types/react": "^19.2.10",
23+
"@biomejs/biome": "^2.4.4",
24+
"@types/node": "^25.3.3",
25+
"@types/react": "^19.2.14",
2626
"@types/react-dom": "^19.2.3",
2727
"@types/react-router-dom": "^5.3.3",
2828
"@vitejs/plugin-basic-ssl": "^2.1.4",
29-
"@vitejs/plugin-react": "^5.1.2",
29+
"@vitejs/plugin-react": "^5.1.4",
3030
"typescript": "^5.9.3",
3131
"vite": "^7.3.1"
3232
}

src/pages/Playstation/Main/AllTrophies/TrophyStats/EarnedTimePlot/EarnedTimePlot.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { alpha, Box, Stack, Typography, useTheme } from '@mui/material';
1+
import {
2+
alpha,
3+
Box,
4+
Stack,
5+
type Theme,
6+
Typography,
7+
useTheme,
8+
} from '@mui/material';
29
import { useMemo, useState } from 'react';
310
import { Shimmer } from '../../../../../../components/animated/shimmer';
411
import { GroupButton } from '../../../Game/components/GroupButton';
@@ -32,7 +39,7 @@ export function EarnedTimePlot(props: { timestamps: (Date | undefined)[] }) {
3239
throw new Error(`Missing sections for ${sectionBy}`);
3340
}, [sectionBy, validTimestamps]);
3441

35-
const sx = getSx();
42+
const sx = getSx(useTheme());
3643
return (
3744
<Stack sx={sx.container} spacing={{ xs: '8px', sm: '16px' }}>
3845
<Stack
@@ -66,16 +73,15 @@ export function EarnedTimePlot(props: { timestamps: (Date | undefined)[] }) {
6673
}
6774

6875
export function EarnedTimePlotShimmer() {
69-
const sx = getSx();
76+
const sx = getSx(useTheme());
7077
return (
7178
<Box sx={{ ...sx.container, padding: 0, aspectRatio: 1.5 }}>
7279
<Shimmer sx={{ width: '100%', height: '100%' }} />
7380
</Box>
7481
);
7582
}
7683

77-
function getSx() {
78-
const theme = useTheme();
84+
function getSx(theme: Theme) {
7985
return {
8086
container: {
8187
background: `radial-gradient(

src/pages/Playstation/Main/Game/components/CompleteTrophyCard.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
Box,
44
Stack,
55
type SxProps,
6+
type Theme,
67
Typography,
78
useTheme,
89
} from '@mui/material';
@@ -68,7 +69,7 @@ export function CompleteTrophyCard(props: {
6869
e.cancelBubble = true;
6970
}
7071

71-
const sx = getSx(props.trophy);
72+
const sx = getSx(useTheme(), props.trophy);
7273
return (
7374
<Box sx={sx.wrapper}>
7475
<Stack
@@ -143,7 +144,7 @@ export function CompleteTrophyCardShimmer(props: { earned?: boolean }) {
143144
import.meta.url,
144145
).href;
145146

146-
const sx = getSx();
147+
const sx = getSx(useTheme());
147148
return (
148149
<Box sx={sx.wrapper}>
149150
<Stack sx={sx.container} direction='row'>
@@ -172,8 +173,7 @@ export function CompleteTrophyCardShimmer(props: { earned?: boolean }) {
172173
);
173174
}
174175

175-
function getSx(trophy?: CompleteTrophy) {
176-
const theme = useTheme();
176+
function getSx(theme: Theme, trophy?: CompleteTrophy) {
177177
const iconShadow = {
178178
xs: 'drop-shadow(0 1px 2px rgba(0,0,0,50%))',
179179
sm: 'drop-shadow(0 3px 6px rgba(0,0,0,50%))',

src/pages/Playstation/Main/SingleTrophy/components/RarityPyramid.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
alpha,
33
Box,
44
type Breakpoint,
5+
type Theme,
56
useMediaQuery,
67
useTheme,
78
} from '@mui/material';
@@ -19,15 +20,15 @@ export function RarityPyramid(props: {
1920

2021
// equilateral triangle:
2122
// all sides have same length, all angles are 60 degrees
22-
const width = getWidth(props.pixelWidth);
23+
const theme = useTheme();
24+
const width = getWidth(theme, props.pixelWidth);
2325
const height = (Math.sqrt(3) / 2) * width;
2426

2527
// Derived from Area and Height formula to find height to make a triangle
2628
// with earnedPercentage Area of the full pyramid Area.
2729
const earnedPyramidHeight = Math.sqrt(3 * earnedRatio * width ** 2) / 2;
2830
const earnedHeightPercentage = 100 * (earnedPyramidHeight / height);
2931

30-
const theme = useTheme();
3132
const sx = getSx();
3233
return <Box sx={sx.pyramid} />;
3334
function getSx() {
@@ -54,8 +55,10 @@ export function RarityPyramid(props: {
5455
}
5556
}
5657

57-
function getWidth(pixelWidth: number | PartialBreakpoints): number {
58-
const theme = useTheme();
58+
function getWidth(
59+
theme: Theme,
60+
pixelWidth: number | PartialBreakpoints,
61+
): number {
5962
if (typeof pixelWidth === 'number') return pixelWidth;
6063
let breakpointWidth = 0;
6164
for (const [breakpoint, width] of Object.entries(pixelWidth)) {

src/pages/Playstation/Main/components/TrophyOverview.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { alpha, Box, Grid, useTheme } from '@mui/material';
1+
import { alpha, Box, Grid, type Theme, useTheme } from '@mui/material';
22
import { useNavigate } from 'react-router-dom';
33

44
import { Shimmer } from '../../../../components/animated/shimmer';
@@ -11,7 +11,7 @@ import { TrophyLevel } from './TrophyLevel';
1111

1212
export function TrophyOverview(props: { profile: Profile }) {
1313
const navigate = useNavigate();
14-
const sx = getSx();
14+
const sx = getSx(useTheme());
1515

1616
const trophy = (type: TrophyType) => {
1717
return (
@@ -44,7 +44,7 @@ export function TrophyOverview(props: { profile: Profile }) {
4444
}
4545

4646
export function TrophyOverviewShimmer() {
47-
const sx = getSx();
47+
const sx = getSx(useTheme());
4848

4949
const trophy = (type: TrophyType) => {
5050
return (
@@ -83,8 +83,7 @@ export function TrophyOverviewShimmer() {
8383
);
8484
}
8585

86-
function getSx() {
87-
const theme = useTheme();
86+
function getSx(theme: Theme) {
8887
return {
8988
card: {
9089
position: 'relative',

src/pages/Playstation/components/ProgressBar.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { alpha, Box, Typography, useTheme } from '@mui/material';
1+
import { alpha, Box, type Theme, Typography, useTheme } from '@mui/material';
22
import { Shimmer, ShimmerText } from '../../../components/animated/shimmer';
33

44
export function ProgressBar({ progress }: { progress: number }) {
5-
const sx = getSx(progress);
5+
const sx = getSx(useTheme(), progress);
66
return (
77
<Box sx={sx.container}>
88
<Typography sx={sx.percentage}>{progress}%</Typography>
@@ -12,7 +12,7 @@ export function ProgressBar({ progress }: { progress: number }) {
1212
}
1313

1414
export function ProgressBarShimmer() {
15-
const sx = getSx(0);
15+
const sx = getSx(useTheme(), 0);
1616
return (
1717
<Box sx={sx.container}>
1818
<ShimmerText fontSize={sx.percentage.fontSize} width='32px' />
@@ -23,8 +23,7 @@ export function ProgressBarShimmer() {
2323
);
2424
}
2525

26-
function getSx(progress: number) {
27-
const theme = useTheme();
26+
function getSx(theme: Theme, progress: number) {
2827
return {
2928
container: {
3029
width: '100%',

src/pages/Playstation/components/TrophyProgressCard.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
Box,
44
Collapse,
55
Stack,
6+
type Theme,
67
Typography,
78
useTheme,
89
} from '@mui/material';
@@ -77,7 +78,7 @@ export function TrophyProgressCard(props: {
7778
setExpanded((isExpanded) => !isExpanded);
7879
};
7980

80-
const sx = getSx(isInteractable);
81+
const sx = getSx(useTheme(), isInteractable);
8182
return (
8283
<>
8384
<Stack sx={sx.container} direction='row' onClick={handleClick}>
@@ -127,7 +128,7 @@ export function TrophyProgressCard(props: {
127128
}
128129

129130
export function TrophyProgressCardShimmer() {
130-
const sx = getSx(false);
131+
const sx = getSx(useTheme(), false);
131132
return (
132133
<Stack sx={sx.container} direction='row'>
133134
<ShimmerImage
@@ -153,8 +154,7 @@ export function TrophyProgressCardShimmer() {
153154
);
154155
}
155156

156-
function getSx(isInteractable: boolean) {
157-
const theme = useTheme();
157+
function getSx(theme: Theme, isInteractable: boolean) {
158158
return {
159159
container: {
160160
position: 'relative',

src/pages/Spotify/components/item-card.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { alpha, Box, Stack, useTheme } from '@mui/material';
1+
import { alpha, Box, Stack, type Theme, useTheme } from '@mui/material';
22
import { Image } from 'components/image';
33
import { useState } from 'react';
44
import { ShimmerText } from '../../../components/animated/shimmer';
@@ -18,7 +18,7 @@ export function ItemCard(props: {
1818
? undefined
1919
: () => window.open(props.href, '_blank');
2020

21-
const sx = getSx();
21+
const sx = getSx(useTheme());
2222
return (
2323
<Stack
2424
sx={sx.container}
@@ -42,7 +42,7 @@ export function ItemCard(props: {
4242
}
4343

4444
export function ItemCardShimmer() {
45-
const sx = getSx();
45+
const sx = getSx(useTheme());
4646
return (
4747
<Stack sx={sx.container} direction='column'>
4848
<Image sx={sx.image} src={undefined} />
@@ -54,8 +54,7 @@ export function ItemCardShimmer() {
5454
);
5555
}
5656

57-
function getSx() {
58-
const theme = useTheme();
57+
function getSx(theme: Theme) {
5958
return {
6059
container: [
6160
{

0 commit comments

Comments
 (0)