chore(deps): remove unused legacy packages

This commit is contained in:
wiiiii123
2026-07-10 19:00:22 +07:00
parent 3d9212f349
commit ed3c4e9dc4
3 changed files with 10 additions and 2885 deletions
+6 -2876
View File
File diff suppressed because it is too large Load Diff
-7
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",
@@ -83,12 +80,9 @@
"dnd-timeline": "^2.2.0",
"electron": "^39.2.7",
"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,7 +100,6 @@
"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",
@@ -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(() => {