Skip to content

Commit 07262b8

Browse files
Dependency(deps): Bump react-resizable-panels from 3.0.6 to 4.0.2 (#16)
* Dependency(deps): Bump react-resizable-panels from 3.0.6 to 4.0.2 Bumps [react-resizable-panels](https://github.com/bvaughn/react-resizable-panels) from 3.0.6 to 4.0.2. - [Release notes](https://github.com/bvaughn/react-resizable-panels/releases) - [Changelog](https://github.com/bvaughn/react-resizable-panels/blob/main/CHANGELOG.md) - [Commits](bvaughn/react-resizable-panels@3.0.6...4.0.2) --- updated-dependencies: - dependency-name: react-resizable-panels dependency-version: 4.0.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update react resizeable * Update middleware.ts -> proxy.ts --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dominik Fuchß <dominik.fuchss@kit.edu>
1 parent 5a5c359 commit 07262b8

File tree

5 files changed

+33
-19
lines changed

5 files changed

+33
-19
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react": "^19.2.3",
1919
"react-dom": "^19.2.1",
2020
"react-icons": "^5.5.0",
21-
"react-resizable-panels": "^3.0.6",
21+
"react-resizable-panels": "^4.0.7",
2222
"uuid": "^13.0.0"
2323
},
2424
"devDependencies": {

src/components/traceLinksResultViewer/ResultDisplay.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {TraceLinkType} from "@/components/dataTypes/TraceLinkTypes";
66
import FullScreenResultDialog from "@/components/traceLinksResultViewer/FullScreenResult";
77
import {SearchResultMessage} from "@/components/traceLinksResultViewer/SearchResultMessage";
88
import ResultPanel from "@/components/traceLinksResultViewer/ResultPanel";
9-
import {PanelGroup, PanelResizeHandle} from "react-resizable-panels";
9+
import {Group, Separator} from "react-resizable-panels";
1010

1111
interface ResultDisplayProps {
1212
id: string;
@@ -22,7 +22,7 @@ export function ResultDisplay({id, traceLinkType, displayOptions}: ResultDisplay
2222
<div className="bg-white z-1 relative h-full">
2323

2424
{/*panel*/}
25-
<PanelGroup direction="horizontal" className="h-full">
25+
<Group orientation="horizontal" className="h-full">
2626
{panelsToRender.map((resultViewOption, index) => (
2727
<React.Fragment key={index}>
2828
<ResultPanel
@@ -33,10 +33,10 @@ export function ResultDisplay({id, traceLinkType, displayOptions}: ResultDisplay
3333
id={id}
3434
traceLinkType={traceLinkType}
3535
/>
36-
{index !== panelsToRender.length - 1 && <PanelResizeHandle className="w-0.5 bg-gruen"/>}
36+
{index !== panelsToRender.length - 1 && <Separator className="w-0.5 bg-gruen"/>}
3737
</React.Fragment>
3838
))}
39-
</PanelGroup>
39+
</Group>
4040

4141
<FullScreenResultDialog
4242
selectedView={selectedDialogView}

src/middleware.ts renamed to src/proxy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type {NextRequest} from 'next/server';
22
import {NextResponse} from 'next/server';
33

4-
// the middleware will run for any request to /api/*
4+
// Run for any /api/* request
55
export const config = {
66
matcher: '/api/:path*',
77
};
88

9-
export function middleware(request: NextRequest) {
9+
export function proxy(request: NextRequest) {
1010
const targetApiUrlString = request.headers.get('X-Target-API');
1111

1212
if (!targetApiUrlString) {
@@ -32,4 +32,4 @@ export function middleware(request: NextRequest) {
3232
headers: request.headers,
3333
},
3434
});
35-
}
35+
}

tsconfig.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "ES2017",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": true,
@@ -11,17 +15,27 @@
1115
"moduleResolution": "bundler",
1216
"resolveJsonModule": true,
1317
"isolatedModules": true,
14-
"jsx": "preserve",
18+
"jsx": "react-jsx",
1519
"incremental": true,
1620
"plugins": [
1721
{
1822
"name": "next"
1923
}
2024
],
2125
"paths": {
22-
"@/*": ["./src/*"]
26+
"@/*": [
27+
"./src/*"
28+
]
2329
}
2430
},
25-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
26-
"exclude": ["node_modules"]
31+
"include": [
32+
"next-env.d.ts",
33+
"**/*.ts",
34+
"**/*.tsx",
35+
".next/types/**/*.ts",
36+
".next/dev/types/**/*.ts"
37+
],
38+
"exclude": [
39+
"node_modules"
40+
]
2741
}

0 commit comments

Comments
 (0)