Skip to content

Commit 9278bf2

Browse files
committed
feat(dependencies): bump dependencies
See https://nextjs.org/blog/CVE-2025-66478
1 parent 6763634 commit 9278bf2

File tree

27 files changed

+982
-978
lines changed

27 files changed

+982
-978
lines changed

app/(welcome)/Articles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export const Articles = ({ articles }: Props) => {
3131
container
3232
ref={root}
3333
spacing={2}
34-
sx={({ spacing }) => ({
34+
sx={(theme) => ({
3535
flexDirection: 'column',
36-
scrollMarginBottom: spacing(2),
36+
scrollMarginBottom: theme.spacing(2),
3737
})}
3838
>
3939
{articles.slice(0, size).map((article) => (

components/Banner/Banner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export const Banner = ({ author, banner, minutes, title, sx }: Props) => (
4646
/>
4747
<Box
4848
role="presentation"
49-
sx={({ mixins }) => ({
50-
...mixins.blur('weak'),
49+
sx={(theme) => ({
50+
...theme.mixins.blur('weak'),
5151
inset: 0,
5252
position: 'absolute',
5353
})}

components/Card/Card.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { mdiCached } from '@mdi/js';
44
import { Icon } from '@mdi/react';
55
import { Box, IconButton } from '@mui/material';
6-
import { useState, type FunctionComponent, type ReactNode } from 'react';
6+
import { useState, type ReactNode } from 'react';
77

88
import { CardFace } from '@/components/Card/CardFace';
99
import { type ScryCard } from '@/tools/scryfall/types';
@@ -12,7 +12,7 @@ type Props = {
1212
data: ScryCard[];
1313
};
1414

15-
export const Card: FunctionComponent<Props> = ({ data }) => {
15+
export const Card = ({ data }: Props) => {
1616
const [selectedFace, setSelectedFace] = useState(0);
1717

1818
/** Toggle index between 0 and 1 */
@@ -23,9 +23,9 @@ export const Card: FunctionComponent<Props> = ({ data }) => {
2323
<IconButton
2424
className="light"
2525
onClick={onFlip}
26-
sx={({ mixins, vars }) => ({
27-
...mixins.blur('weakest'),
28-
bgcolor: `rgba(${vars.palette.background.paperChannel} / .4)`,
26+
sx={(theme) => ({
27+
...theme.mixins.blur('weakest'),
28+
bgcolor: `rgba(${theme.vars.palette.background.paperChannel} / .4)`,
2929
boxShadow: 1,
3030
height: [40, 48],
3131
left: 'unset',
@@ -34,7 +34,7 @@ export const Card: FunctionComponent<Props> = ({ data }) => {
3434
top: '13%',
3535
width: [40, 48],
3636
'&:hover': {
37-
bgcolor: `rgba(${vars.palette.background.paperChannel} / .5)`,
37+
bgcolor: `rgba(${theme.vars.palette.background.paperChannel} / .5)`,
3838
},
3939
})}
4040
title="Flip"

components/Card/CardFace.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Box, Fade, Tooltip, type SxProps } from '@mui/material';
2-
import { type FunctionComponent } from 'react';
32

43
import { type ScryCard } from '@/tools/scryfall/types';
54

@@ -9,7 +8,7 @@ type Props = {
98
sx?: SxProps;
109
};
1110

12-
export const CardFace: FunctionComponent<Props> = ({ active, data, sx }) => {
11+
export const CardFace = ({ active, data, sx }: Props) => {
1312
const { artist, images, name, setName } = data;
1413
const image = images.full;
1514

components/Decklist/Column.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { Box, Typography } from '@mui/material';
2-
import { type FunctionComponent } from 'react';
32

43
import { type Card } from '@/tools/decklists/types';
54

65
type Props = {
76
cards: Card[];
87
};
98

10-
export const Column: FunctionComponent<Props> = ({ cards }) => {
9+
export const Column = ({ cards }: Props) => {
1110
if (!cards.length) return null;
1211
return (
1312
<Box component="ul" sx={{ m: 0, p: 0 }}>

components/Decklist/Decklist.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
AccordionSummary as MuiAccordionSummary,
99
Typography,
1010
} from '@mui/material';
11-
import { type FunctionComponent } from 'react';
1211

1312
import { Column } from '@/components/Decklist/Column';
1413
import { Summary } from '@/components/Decklist/Summary';
@@ -25,7 +24,7 @@ type Props = {
2524
title: string;
2625
};
2726

28-
export const Decklist: FunctionComponent<Props> = ({
27+
export const Decklist = ({
2928
authors,
3029
colors,
3130
main,
@@ -34,7 +33,7 @@ export const Decklist: FunctionComponent<Props> = ({
3433
side,
3534
sideCount,
3635
title,
37-
}) => (
36+
}: Props) => (
3837
<MuiAccordion>
3938
<MuiAccordionSummary
4039
expandIcon={<Icon path={mdiChevronDown} size={1} />}

components/Mana/Mana.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import { Box } from '@mui/material';
2-
import { type FunctionComponent } from 'react';
32

43
import 'mana-font/css/mana.min.css';
54

65
type Props = {
76
pattern: string;
87
};
98

10-
export const Mana: FunctionComponent<Props> = ({ pattern }) => (
9+
export const Mana = ({ pattern }: Props) => (
1110
<Box
12-
aria-label={`Mana symbol: "${pattern}"`}
13-
component="span"
11+
aria-label={`Mana symbol "${pattern}"`}
1412
className={`ms ms-cost ms-${pattern.toLowerCase()}`}
13+
component="span"
1514
sx={{ fontSize: '.9em', mx: 0.25, verticalAlign: 'text-bottom' }}
1615
/>
1716
);

components/Markdown/Markdown.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
tableClasses,
55
type SxProps,
66
} from '@mui/material';
7-
import { type FunctionComponent } from 'react';
87
import ReactMarkdown, { type Components } from 'react-markdown';
98
import rehypeSlug from 'rehype-slug';
109
import remarkDirective from 'remark-directive';
@@ -81,10 +80,10 @@ type Props = {
8180
sx?: SxProps;
8281
};
8382

84-
export const Markdown: FunctionComponent<Props> = ({
83+
export const Markdown = ({
8584
markdown: { decklists, file, scries, text },
8685
sx,
87-
}) => (
86+
}: Props) => (
8887
<Box
8988
sx={[
9089
{

components/Markdown/renderers/Card.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { type FunctionComponent } from 'react';
21
import { type ExtraProps } from 'react-markdown';
32

43
import { Link } from '@/components/Link/Link';
@@ -13,7 +12,7 @@ type Props = ExtraProps & {
1312

1413
// TODO Rename to `CardLink`?
1514

16-
export const Card: FunctionComponent<Props> = ({ file, name, node }) => {
15+
export const Card = ({ file, name, node }: Props) => {
1716
if (!name) throw new RemarkError('Missing card name', { file, node });
1817
return <Link href={`${SCRYFALL_SEARCH}?q=!"${name}"`}>{name}</Link>;
1918
};

components/Markdown/renderers/Code.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import { Box, useTheme, type PaletteMode } from '@mui/material';
4-
import { type FunctionComponent, type PropsWithChildren } from 'react';
4+
import { type PropsWithChildren } from 'react';
55
import { type Components } from 'react-markdown';
66
import { Prism, type SyntaxHighlighterProps } from 'react-syntax-highlighter';
77
import {
@@ -14,10 +14,10 @@ const THEMES: Record<PaletteMode, SyntaxHighlighterProps['style']> = {
1414
light,
1515
};
1616

17-
const CodeBlock: FunctionComponent<PropsWithChildren<{ language: string }>> = ({
17+
const CodeBlock = ({
1818
children,
1919
language,
20-
}) => {
20+
}: PropsWithChildren<{ language: string }>) => {
2121
const theme = useTheme();
2222
return (
2323
<Box
@@ -41,7 +41,7 @@ const CodeBlock: FunctionComponent<PropsWithChildren<{ language: string }>> = ({
4141
);
4242
};
4343

44-
const CodeInline: FunctionComponent<PropsWithChildren> = ({ children }) => (
44+
const CodeInline = ({ children }: PropsWithChildren) => (
4545
<Box
4646
component="code"
4747
sx={{

0 commit comments

Comments
 (0)