Merge pull request #742 from webadderallorg/chore/remove-unused-dependencies

chore(deps): remove legacy packages and patch direct findings
This commit is contained in:
PTMH-NMH
2026-07-11 10:57:40 +07:00
committed by GitHub
3 changed files with 885 additions and 3100 deletions
+879 -3089
View File
File diff suppressed because it is too large Load Diff
+2 -9
View File
@@ -56,8 +56,6 @@
"@biomejs/biome": "2.3.13",
"@electron/rebuild": "^4.0.3",
"@fix-webm-duration/fix": "^1.0.1",
"@pixi/filter-drop-shadow": "^5.2.0",
"@pixi/filter-motion-blur": "^5.1.1",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
@@ -73,7 +71,6 @@
"@types/node": "^25.0.3",
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.21",
"@types/uuid": "^10.0.0",
"@uiw/color-convert": "^2.9.2",
"@uiw/react-color-block": "^2.9.2",
"@vitejs/plugin-react": "^4.2.1",
@@ -81,14 +78,11 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dnd-timeline": "^2.2.0",
"electron": "^39.2.7",
"electron": "^39.8.10",
"electron-builder": "^26.7.0",
"electron-icon-builder": "^2.0.1",
"emoji-picker-react": "^4.16.1",
"fast-check": "^4.5.2",
"fix-webm-duration": "^1.0.6",
"gif.js": "^0.2.0",
"gsap": "^3.13.0",
"mediabunny": "^1.25.1",
"motion": "^12.23.24",
"mp4box": "^2.2.0",
@@ -106,11 +100,10 @@
"tailwindcss-animate": "^1.0.7",
"terser": "^5.44.1",
"typescript": "^5.2.2",
"uuid": "^13.0.0",
"vite": "^5.1.6",
"vite-plugin-electron": "^0.28.6",
"vite-plugin-electron-renderer": "^0.14.5",
"vitest": "^4.0.16",
"vitest": "^4.1.10",
"web-demuxer": "^4.0.0"
},
"main": "dist-electron/main.cjs"
@@ -1,5 +1,4 @@
import { useCallback, useMemo, useState } from "react";
import { v4 as uuidv4 } from "uuid";
import type { TimelineRegion } from "../core/timelineTypes";
interface UseTimelineSelectionParams {
@@ -56,7 +55,10 @@ export function useTimelineSelection({
if (totalMs === 0) return;
const time = Math.max(0, Math.min(currentTimeMs, totalMs));
if (keyframes.some((kf) => Math.abs(kf.time - time) < 1)) return;
setKeyframes((prev) => [...prev, { id: uuidv4(), time }]);
setKeyframes((prev) => [
...prev,
{ id: globalThis.crypto.randomUUID(), time },
]);
}, [currentTimeMs, totalMs, keyframes]);
const deleteSelectedKeyframe = useCallback(() => {