diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 4ff8703..3c21312 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -13,8 +13,8 @@ "@fontsource-variable/jetbrains-mono": "^5.3.0", "hls.js": "^1.7.4", "lucide-react": "^1.70.0", - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^19.3.0", + "react-dom": "^19.3.0" }, "devDependencies": { "@eslint/js": "^10.0.1", @@ -22,8 +22,8 @@ "@testing-library/jest-dom": "^7.0.1", "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.8", - "@types/react": "^18.3.11", - "@types/react-dom": "^18.3.1", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", "@typescript-eslint/eslint-plugin": "^8.72.1", "@typescript-eslint/parser": "^8.72.1", "@vitejs/plugin-react": "^4.3.2", @@ -2283,32 +2283,24 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/prop-types": { - "version": "15.7.15", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", - "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", - "devOptional": true, - "license": "MIT" - }, "node_modules/@types/react": { - "version": "18.3.31", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.31.tgz", - "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==", + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz", + "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==", "devOptional": true, "license": "MIT", "dependencies": { - "@types/prop-types": "*", "csstype": "^3.2.2" } }, "node_modules/@types/react-dom": { - "version": "18.3.7", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", - "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz", + "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==", "dev": true, "license": "MIT", "peerDependencies": { - "@types/react": "^18.0.0" + "@types/react": "^19.3.0" } }, "node_modules/@typescript-eslint/eslint-plugin": { @@ -3598,6 +3590,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, "license": "MIT" }, "node_modules/jsdom": { @@ -4003,18 +3996,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -4393,28 +4374,24 @@ "license": "MIT" }, "node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", + "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - }, "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz", + "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", "license": "MIT", "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" + "scheduler": "^0.28.0" }, "peerDependencies": { - "react": "^18.3.1" + "react": "^19.3.1" } }, "node_modules/react-is": { @@ -4518,13 +4495,10 @@ } }, "node_modules/scheduler": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", - "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - } + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", + "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", + "license": "MIT" }, "node_modules/semver": { "version": "7.8.4", diff --git a/frontend/package.json b/frontend/package.json index 1c13951..cea32d2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,8 +21,8 @@ "@fontsource-variable/jetbrains-mono": "^5.3.0", "hls.js": "^1.7.4", "lucide-react": "^1.70.0", - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^19.3.0", + "react-dom": "^19.3.0" }, "devDependencies": { "@eslint/js": "^10.0.1", @@ -30,8 +30,8 @@ "@testing-library/jest-dom": "^7.0.1", "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.8", - "@types/react": "^18.3.11", - "@types/react-dom": "^18.3.1", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", "@typescript-eslint/eslint-plugin": "^8.72.1", "@typescript-eslint/parser": "^8.72.1", "@vitejs/plugin-react": "^4.3.2", diff --git a/frontend/src/replay/VideoControls.tsx b/frontend/src/replay/VideoControls.tsx index a2cffb8..c55e51d 100644 --- a/frontend/src/replay/VideoControls.tsx +++ b/frontend/src/replay/VideoControls.tsx @@ -76,7 +76,7 @@ export function VideoControls({ storyboard = null, settings = [], }: { - video: RefObject; + video: RefObject; source: string; theater: boolean; onTheater: () => void; diff --git a/frontend/src/replay/useChatReplay.ts b/frontend/src/replay/useChatReplay.ts index b99f582..12c69ba 100644 --- a/frontend/src/replay/useChatReplay.ts +++ b/frontend/src/replay/useChatReplay.ts @@ -41,7 +41,7 @@ export interface ChatReplay { held: boolean; setHeld: (value: boolean) => void; setFollowing: (value: boolean) => void; - log: RefObject; + log: RefObject; /** Clear the rendered window and any pending search, e.g. after a seek. */ reset: () => void; /** Clear only the rendered window, keeping an active search. */ diff --git a/frontend/src/replay/useHls.ts b/frontend/src/replay/useHls.ts index 78ed5b5..71aff01 100644 --- a/frontend/src/replay/useHls.ts +++ b/frontend/src/replay/useHls.ts @@ -11,7 +11,7 @@ import type Hls from "hls.js"; * null when the source is not live or hls.js is not the one playing it. */ export function useHls( - video: RefObject, + video: RefObject, url: string, active: boolean, onError: (message: string) => void, diff --git a/frontend/src/replay/usePositionPersistence.ts b/frontend/src/replay/usePositionPersistence.ts index cb3a286..3b2e2df 100644 --- a/frontend/src/replay/usePositionPersistence.ts +++ b/frontend/src/replay/usePositionPersistence.ts @@ -8,7 +8,7 @@ import { useCallback, useEffect, useRef, type RefObject } from "react"; */ export function usePositionPersistence( storageKey: string, - video: RefObject, + video: RefObject, onSave?: (time: number, duration: number) => void, ) { const lastSaved = useRef(0);