update peer dependencies

This commit is contained in:
PhilReact 2025-06-30 21:06:05 +03:00
parent 0933cb33ae
commit 9e6c1b2bb5
4 changed files with 854 additions and 578 deletions

1424
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "qapp-core", "name": "qapp-core",
"version": "1.0.37", "version": "1.0.39",
"description": "Qortal's core React library with global state, UI components, and utilities", "description": "Qortal's core React library with global state, UI components, and utilities",
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.mjs", "module": "dist/index.mjs",

View File

@ -319,6 +319,7 @@ export const VideoPlayer = ({
useVideoPlayerHotKeys(hotkeyHandlers); useVideoPlayerHotKeys(hotkeyHandlers);
const updateProgress = useCallback(() => { const updateProgress = useCallback(() => {
if(!isPlaying) return
const player = playerRef?.current; const player = playerRef?.current;
if (!player || typeof player?.currentTime !== "function") return; if (!player || typeof player?.currentTime !== "function") return;
@ -327,7 +328,7 @@ export const VideoPlayer = ({
setProgress(videoLocation, currentTime); setProgress(videoLocation, currentTime);
setLocalProgress(currentTime); setLocalProgress(currentTime);
} }
}, [videoLocation]); }, [videoLocation, isPlaying]);
useEffect(() => { useEffect(() => {
if (videoLocation) { if (videoLocation) {

View File

@ -9,6 +9,7 @@ export default defineConfig({
'@mui/material', '@mui/material',
'@mui/system', '@mui/system',
'@emotion/react', '@emotion/react',
'@emotion/styled' '@emotion/styled',
'react-dom', 'react-router-dom'
], ],
}); });