Skip to content

Commit 90fb9f0

Browse files
Merge pull request #1725 from curvefi/dependabot/npm_and_yarn/minor-updates-d569fc7a15
chore(deps): bump the minor-updates group across 4 directories with 40 updates
2 parents 914d01a + 86f861c commit 90fb9f0

File tree

14 files changed

+622
-559
lines changed

14 files changed

+622
-559
lines changed

apps/main/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
"@hookform/error-message": "^2.0.1",
2323
"@hookform/resolvers": "^5.2.2",
2424
"@supercharge/promise-pool": "^3.2.0",
25-
"@tanstack/react-router": "^1.134.9",
26-
"@tanstack/react-router-devtools": "^1.134.9",
25+
"@tanstack/react-router": "^1.139.12",
26+
"@tanstack/react-router-devtools": "^1.139.12",
2727
"@types/memoizee": "^0.4.12",
2828
"curve-ui-kit": "*",
2929
"echarts": "^6.0.0",
30-
"echarts-for-react": "^3.0.2",
30+
"echarts-for-react": "^3.0.5",
3131
"external-rewards": "*",
3232
"fuse.js": "^7.1.0",
3333
"lightweight-charts": "^5.0.9",
3434
"memoizee": "^0.4.17",
35-
"react-hook-form": "7.66.0",
35+
"react-hook-form": "7.67.0",
3636
"recharts": "2.15.4",
3737
"solid-js": "^1.9.10",
3838
"ui": "*",
@@ -54,7 +54,7 @@
5454
"devDependencies": {
5555
"@curvefi/api": "*",
5656
"@eslint/js": "*",
57-
"@types/lodash": "^4.17.20",
57+
"@types/lodash": "^4.17.21",
5858
"@types/memoizee": "^0.4.12",
5959
"@types/node": "*",
6060
"@types/react": "*",
@@ -66,7 +66,7 @@
6666
"globals": "^16.5.0",
6767
"pinst": "^3.0.0",
6868
"typescript": "*",
69-
"typescript-eslint": "^8.46.2",
69+
"typescript-eslint": "^8.48.0",
7070
"vite": "*"
7171
}
7272
}

apps/main/src/lend/types/lend.types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ export type NetworkUrlParams = { network: NetworkEnum }
2222
export type MarketUrlParams = NetworkUrlParams & { market: string; formType?: RFormType }
2323
export type UrlParams = NetworkUrlParams & Partial<MarketUrlParams>
2424

25-
export interface NetworkConfig<TId extends string = string, TChainId extends number = number>
26-
extends BaseConfig<TId, TChainId> {
25+
export interface NetworkConfig<TId extends string = string, TChainId extends number = number> extends BaseConfig<
26+
TId,
27+
TChainId
28+
> {
2729
smallMarketAmount: number
2830
isActiveNetwork: boolean
2931
showInSelectNetwork: boolean

apps/router-api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test:watch": "vitest"
1515
},
1616
"dependencies": {
17-
"fastify": "^5.6.1"
17+
"fastify": "^5.6.2"
1818
},
1919
"peerDependencies": {
2020
"@curvefi/api": "*"
@@ -24,7 +24,7 @@
2424
"@types/node": "*",
2525
"eslint": "*",
2626
"eslint-config-custom": "*",
27-
"tsx": "4.20.6",
27+
"tsx": "4.21.0",
2828
"typescript": "*",
2929
"vitest": "*"
3030
}

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const config = [
1919
{
2020
languageOptions: {
2121
parserOptions: {
22-
project: ['./tsconfig.json'],
2322
tsconfigRootDir: __dirname,
2423
projectService: true,
2524
},

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"ethers": "*",
3939
"husky": "^9.1.7",
4040
"immer": "*",
41-
"lint-staged": "16.2.6",
41+
"lint-staged": "16.2.7",
4242
"lodash": "*",
43-
"prettier": "^3.6.2",
43+
"prettier": "^3.7.3",
4444
"react": "*",
4545
"react-dom": "*",
4646
"styled-components": "*",
@@ -58,25 +58,25 @@
5858
},
5959
"resolutions": {
6060
"@curvefi/api": "2.68.17",
61-
"@eslint/eslintrc": "3.3.1",
62-
"@eslint/js": "9.39.0",
61+
"@eslint/eslintrc": "3.3.3",
62+
"@eslint/js": "9.39.1",
6363
"@types/node": "24.10.0",
64-
"@types/react": "19.2.2",
65-
"@types/react-dom": "19.2.2",
66-
"@vitejs/plugin-react": "^5.1.0",
64+
"@types/react": "19.2.7",
65+
"@types/react-dom": "19.2.3",
66+
"@vitejs/plugin-react": "^5.1.1",
6767
"bignumber.js": "9.3.1",
68-
"eslint": "9.39.0",
68+
"eslint": "9.39.1",
6969
"ethers": "6.15.0",
7070
"immer": "11.0.1",
7171
"lodash": "4.17.21",
7272
"react": "19.2.0",
7373
"react-dom": "19.2.0",
7474
"styled-components": "6.1.19",
7575
"typescript": "5.9.3",
76-
"vite": "7.1.12",
77-
"vitest": "^4.0.6",
76+
"vite": "7.2.6",
77+
"vitest": "^4.0.14",
7878
"esbuild": "0.25.9",
7979
"path-to-regexp": "6.3.0",
80-
"zustand": "5.0.8"
80+
"zustand": "5.0.9"
8181
}
8282
}

packages/curve-ui-kit/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"dependencies": {
1616
"@emotion/react": "^11.14.0",
1717
"@emotion/styled": "^11.14.1",
18-
"@mui/icons-material": "^7.3.4",
19-
"@mui/material": "^7.3.4",
20-
"@mui/utils": "^7.3.3",
21-
"@tanstack/query-sync-storage-persister": "5.90.8",
22-
"@tanstack/react-query": "5.90.6",
23-
"@tanstack/react-query-devtools": "5.90.2",
24-
"@tanstack/react-query-persist-client": "5.90.8",
18+
"@mui/icons-material": "^7.3.5",
19+
"@mui/material": "^7.3.5",
20+
"@mui/utils": "^7.3.5",
21+
"@tanstack/query-sync-storage-persister": "5.90.13",
22+
"@tanstack/react-query": "5.90.11",
23+
"@tanstack/react-query-devtools": "5.91.1",
24+
"@tanstack/react-query-persist-client": "5.90.13",
2525
"@tanstack/react-table": "8.21.3",
2626
"dayjs": "^1.11.19",
27-
"viem": "^2.38.6",
27+
"viem": "^2.40.3",
2828
"wagmi": "^2.19.2"
2929
},
3030
"peerDependencies": {
@@ -37,17 +37,17 @@
3737
"devDependencies": {
3838
"@babel/core": "^7.28.5",
3939
"@babel/runtime": "^7.28.4",
40-
"@chromatic-com/storybook": "^4.1.2",
41-
"@storybook/addon-a11y": "10.0.2",
42-
"@storybook/addon-docs": "10.0.2",
43-
"@storybook/addon-themes": "10.0.2",
44-
"@storybook/react-vite": "10.0.2",
40+
"@chromatic-com/storybook": "^4.1.3",
41+
"@storybook/addon-a11y": "10.1.2",
42+
"@storybook/addon-docs": "10.1.2",
43+
"@storybook/addon-themes": "10.1.2",
44+
"@storybook/react-vite": "10.1.2",
4545
"@types/react": "*",
4646
"@types/react-dom": "*",
4747
"@vitejs/plugin-react": "*",
4848
"eslint": "*",
4949
"eslint-config-custom": "*",
50-
"storybook": "10.0.2",
50+
"storybook": "10.1.2",
5151
"type-fest": "5.2.0",
5252
"typescript": "*",
5353
"vite": "*",

packages/curve-ui-kit/src/themes/basic-theme/basic-theme.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference path="./basic-theme.d.ts" />
2-
import { recordEntries } from '@curvefi/prices-api/objects.util'
2+
import { fromEntries, mapRecord } from '@curvefi/prices-api/objects.util'
33
import { Breakpoint } from '@mui/material'
44
import { createTheme as createMuiTheme } from '@mui/material/styles'
55
import { CSSObject } from '@mui/styled-engine'
@@ -28,7 +28,7 @@ export const basicMuiTheme = createMuiTheme({
2828
},
2929
})
3030

31-
export type Responsive = Record<Breakpoint, string>
31+
export type Responsive<T = string> = Record<Breakpoint, T>
3232

3333
/**
3434
* Create a responsive object based on the breakpoints defined in the basicMuiTheme.
@@ -40,20 +40,19 @@ export type Responsive = Record<Breakpoint, string>
4040
* '@media (min-width: 1200px)': { width: 100, height: '300px' }
4141
* }
4242
*/
43-
export const handleBreakpoints = (values: Record<keyof CSSObject, number | string | Responsive>): CSSObject =>
44-
Object.fromEntries(
43+
export const handleBreakpoints = (values: {
44+
[P in keyof CSSObject]: CSSObject[P] | Responsive<CSSObject[P]>
45+
}): CSSObject =>
46+
fromEntries(
4547
basicMuiTheme.breakpoints.keys.map((breakpoint) => {
4648
const selector = basicMuiTheme.breakpoints.up(breakpoint)
4749
return [
4850
selector,
4951
{
5052
// in case the selector is already present, merge the values
5153
...((values[selector] as CSSObject) ?? {}),
52-
...Object.fromEntries(
53-
Object.entries(values).map(([key, value]) => [
54-
key,
55-
typeof value === 'string' || typeof value === 'number' || value == null ? value : value[breakpoint],
56-
]),
54+
...mapRecord(values, (_, value) =>
55+
value && typeof value === 'object' ? (value as Responsive)[breakpoint] : value,
5756
),
5857
},
5958
]
@@ -63,5 +62,4 @@ export const handleBreakpoints = (values: Record<keyof CSSObject, number | strin
6362
export const mapBreakpoints = (
6463
values: Responsive,
6564
callback: (value: string, breakpoint: Breakpoint) => string,
66-
): CSSObject =>
67-
Object.fromEntries(recordEntries(values).map(([breakpoint, value]) => [breakpoint, callback(value, breakpoint)]))
65+
): CSSObject => mapRecord(values, (breakpoint, value) => callback(value, breakpoint))

packages/curve-ui-kit/src/themes/components/card-header/mui-card-header.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,12 @@ export const defineMuiCardHeader = (
2727
minHeight: 'auto',
2828
maxHeight: Sizing.md.desktop,
2929
padding: `${Spacing.md.desktop} ${Spacing.md.desktop} ${Spacing.sm.desktop}`,
30+
'& .MuiCardHeader-title': typography.headingXsBold,
3031
},
3132
},
3233
],
3334
},
3435
action: { alignContent: 'center', alignSelf: 'center', margin: 0 },
35-
title: {
36-
...typography.headingSBold,
37-
variants: [
38-
{
39-
props: { size: 'small' },
40-
style: {
41-
...typography.headingXsBold,
42-
},
43-
},
44-
],
45-
},
36+
title: typography.headingSBold,
4637
},
4738
})

packages/curve-ui-kit/src/themes/components/typography/mui-typography.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import type { CSSProperties } from 'react'
1+
import type { CSSObject } from '@mui/system'
22
import type { TypographyVariantKey, DisabledTypographyVariantKey } from '../../typography'
33

44
type NewTypographyVariants<T> = { [key in TypographyVariantKey]: T }
55
type DisabledTypographyVariants = { [key in DisabledTypographyVariantKey[number]]: false }
66

77
declare module '@mui/material/styles' {
8-
interface TypographyVariants extends NewTypographyVariants<CSSProperties> {}
9-
interface TypographyVariantsOptions extends Partial<NewTypographyVariants<CSSProperties>> {}
8+
interface TypographyVariants extends NewTypographyVariants<CSSObject> {}
9+
interface TypographyVariantsOptions extends Partial<NewTypographyVariants<CSSObject>> {}
1010
}
1111

1212
declare module '@mui/material/Typography' {

packages/eslint-config-custom/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"devDependencies": {
88
"@eslint/js": "*",
99
"@tanstack/eslint-plugin-query": "5.91.2",
10-
"@typescript-eslint/eslint-plugin": "^8.46.2",
11-
"@typescript-eslint/parser": "^8.46.2",
10+
"@typescript-eslint/eslint-plugin": "^8.48.0",
11+
"@typescript-eslint/parser": "^8.48.0",
1212
"eslint": "*",
1313
"eslint-config-prettier": "^10.1.8",
1414
"eslint-import-resolver-typescript": "4.4.4",
@@ -17,7 +17,7 @@
1717
"eslint-plugin-react": "7.37.5",
1818
"eslint-plugin-react-hooks": "^7.0.1",
1919
"eslint-plugin-react-refresh": "^0.4.24",
20-
"eslint-plugin-storybook": "10.0.2",
20+
"eslint-plugin-storybook": "10.1.2",
2121
"eslint-plugin-unused-imports": "^4.3.0",
2222
"prettier-eslint": "^16.4.2",
2323
"typescript": "*"

0 commit comments

Comments
 (0)