Skip to content

Commit 944de42

Browse files
committed
chore(web-devtools): upgraded Next to 15, React to 19, removed unused eslint-config-standard
1 parent 0071290 commit 944de42

File tree

10 files changed

+547
-484
lines changed

10 files changed

+547
-484
lines changed

eslint-config/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
"@typescript-eslint/eslint-plugin": "^8.15.0",
99
"@typescript-eslint/parser": "^8.15.0",
1010
"@typescript-eslint/utils": "^8.15.0",
11+
"eslint": "^9.15.0",
1112
"eslint-config-prettier": "^9.1.0",
12-
"eslint-config-standard": "^17.1.0",
1313
"eslint-plugin-import": "^2.31.0",
1414
"eslint-plugin-node": "^11.1.0",
1515
"eslint-plugin-prettier": "^5.2.1",
1616
"eslint-plugin-promise": "^6.6.0",
1717
"eslint-plugin-security": "^3.0.1",
18-
"eslint-utils": "^3.0.0"
18+
"eslint-utils": "^3.0.0",
19+
"prettier": "^3.3.3"
1920
},
2021
"devDependencies": {
2122
"@eslint/eslintrc": "^3.2.0",

web-devtools/package.json

+14-7
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,40 @@
2929
"@graphql-codegen/client-preset": "^4.5.0",
3030
"@svgr/webpack": "^8.1.0",
3131
"@types/node": "^20.17.6",
32-
"@types/react": "18.3.12",
33-
"@types/react-dom": "^18.3.1",
32+
"@types/react": "npm:[email protected]",
33+
"@types/react-dom": "npm:[email protected]",
34+
"@types/react-is": "^18.3.0",
35+
"@types/styled-components": "^5.1.34",
3436
"@typescript-eslint/eslint-plugin": "^8.15.0",
3537
"@typescript-eslint/parser": "^8.15.0",
3638
"@typescript-eslint/utils": "^8.15.0",
3739
"@wagmi/cli": "^2.1.18",
3840
"eslint": "^9.15.0",
39-
"eslint-config-next": "^14.2.18",
41+
"eslint-config-next": "15.0.3",
4042
"eslint-config-prettier": "^9.1.0",
4143
"eslint-import-resolver-typescript": "^3.6.3",
4244
"eslint-plugin-react": "^7.37.2",
43-
"eslint-plugin-react-hooks": "^4.6.2",
45+
"eslint-plugin-react-hooks": "^5.0.0",
4446
"rimraf": "^6.0.1",
4547
"ts-node": "^10.9.2",
4648
"typescript": "^5.6.3"
4749
},
4850
"dependencies": {
4951
"@kleros/kleros-sdk": "workspace:^",
5052
"@kleros/ui-components-library": "^2.15.0",
53+
"@tanstack/react-query": "^5.61.0",
54+
"@wagmi/connectors": "^5.5.0",
55+
"@wagmi/core": "^2.15.0",
5156
"@web3modal/wagmi": "^5.1.11",
5257
"graphql": "^16.9.0",
5358
"graphql-request": "^7.1.2",
54-
"next": "14.2.18",
55-
"react": "^18.3.1",
56-
"react-dom": "^18.3.1",
59+
"next": "15.0.3",
60+
"react": "19.0.0-rc-66855b96-20241106",
61+
"react-dom": "19.0.0-rc-66855b96-20241106",
62+
"react-is": "^18.3.1",
5763
"react-markdown": "^8.0.7",
5864
"react-toastify": "^10.0.6",
65+
"styled-components": "^5.3.11",
5966
"typewriter-effect": "^2.21.0",
6067
"vanilla-jsoneditor": "^0.21.6",
6168
"viem": "^2.21.48",

web-devtools/src/app/(main)/dispute-template/FetchDisputeRequestInput.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const InputContainer = styled.div`
2222
flex-wrap: wrap;
2323
gap: 8px;
2424
`;
25-
const StyledChainInput = styled(Field)`
25+
const StyledChainInput = styled(Field as any)`
2626
width: 120px;
2727
`;
2828
const StyledHeader = styled.h2`
@@ -115,7 +115,7 @@ const FetchDisputeRequestInput: React.FC<IFetchDisputeRequestInput> = ({ setPara
115115
value={chainId}
116116
placeholder="Enter chain Id"
117117
type="number"
118-
onChange={(e) => setChainId(Number(e.target.value))}
118+
onChange={(e: React.ChangeEvent<HTMLInputElement>) => setChainId(Number(e.target.value))}
119119
/>
120120
</InputContainer>
121121
<StyledH3>Presets</StyledH3>

web-devtools/src/app/(main)/dispute-template/FetchFromIdInput.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Container = styled.div`
1515
margin-left: 24px;
1616
`;
1717

18-
const StyledInput = styled(Field)``;
18+
const StyledInput = styled(Field as any)``;
1919
const StyledHeader = styled.h2`
2020
margin-top: 24px;
2121
`;
@@ -60,7 +60,7 @@ const FetchFromIDInput: React.FC<IFetchFromID> = ({
6060
value={templateId}
6161
placeholder="Enter template Id"
6262
message={isLoading ? "fetching ..." : ""}
63-
onChange={(e) => setTemplateId(e.target.value)}
63+
onChange={(e: React.ChangeEvent<HTMLInputElement>) => setTemplateId(e.target.value)}
6464
/>
6565
</Container>
6666
);

web-devtools/src/app/(main)/ruler/SelectArbitrable.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const SelectContainer = styled.div`
4848
position: relative;
4949
`;
5050

51-
const StyledField = styled(Field)`
51+
const StyledField = styled(Field as any)`
5252
width: auto;
5353
${landscapeStyle(
5454
() => css`

web-devtools/src/components/LabeledInput.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const InputContainer = styled.div<{ isField?: boolean }>`
5757
`}
5858
`;
5959

60-
const StyledField = styled(Field)<{ paddingLeft?: number }>`
60+
const StyledField = styled(Field as any)<{ paddingLeft?: number }>`
6161
width: 100%;
6262
> input {
6363
border: none;

web-devtools/src/layout/Header/navbar/Explore.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ const Title = styled.h1`
3838
)};
3939
`;
4040

41-
const StyledLink = styled(Link)<{ isActive: boolean }>`
41+
const StyledLink = styled(Link)<{ $isActive: boolean }>`
4242
color: ${({ theme }) => theme.klerosUIComponentsPrimaryText};
4343
text-decoration: none;
4444
font-size: 16px;
4545
46-
font-weight: ${({ isActive }) => (isActive ? "600" : "normal")};
46+
font-weight: ${({ $isActive }) => ($isActive ? "600" : "normal")};
4747
4848
${landscapeStyle(
4949
() => css`
@@ -70,7 +70,7 @@ const Explore: React.FC = () => {
7070
<StyledLink
7171
href={to}
7272
onClick={toggleIsOpen}
73-
isActive={to === "/" ? pathname === "/" : pathname.startsWith(to)}
73+
$isActive={to === "/" ? pathname === "/" : pathname.startsWith(to)}
7474
>
7575
{text}
7676
</StyledLink>

web-devtools/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"target": "ES2022",
34
"lib": [
45
"dom",
56
"dom.iterable",

web-devtools/wagmi.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { react, actions } from "@wagmi/cli/plugins";
66
import dotenv from "dotenv";
77
import { Abi, Chain } from "viem";
88

9-
import IArbitrableV2 from "@kleros/kleros-v2-contracts/artifacts/src/arbitration/interfaces/IArbitrableV2.sol/IArbitrableV2.json" assert { type: "json" };
10-
import IHomeGateway from "@kleros/kleros-v2-contracts/artifacts/src/gateway/interfaces/IHomeGateway.sol/IHomeGateway.json" assert { type: "json" };
9+
import IArbitrableV2 from "@kleros/kleros-v2-contracts/artifacts/src/arbitration/interfaces/IArbitrableV2.sol/IArbitrableV2.json" with { type: "json" };
10+
import IHomeGateway from "@kleros/kleros-v2-contracts/artifacts/src/gateway/interfaces/IHomeGateway.sol/IHomeGateway.json" with { type: "json" };
1111

1212
import { ArbitratorTypes, getArbitratorType } from "./src/consts/arbitratorTypes";
1313
import { arbitrum, arbitrumSepolia, gnosis, gnosisChiado, mainnet, sepolia } from "viem/chains";

0 commit comments

Comments
 (0)