♻️ refactor(deps): Update

This commit is contained in:
web@ppanel
2024-12-13 23:42:23 +07:00
parent 37d408f6bd
commit 19837a1032
23 changed files with 2746 additions and 2333 deletions
@@ -10,7 +10,7 @@ import { cn } from '@shadcn/ui/lib/utils';
import { useQuery } from '@tanstack/react-query';
import { AnimatePresence, motion } from 'framer-motion';
import { useTranslations } from 'next-intl';
import { useEffect, useId, useRef, useState } from 'react';
import { RefObject, useEffect, useId, useRef, useState } from 'react';
export function DocumentButton({ items }: { items: API.Document[] }) {
const t = useTranslations('document');
@@ -46,7 +46,7 @@ export function DocumentButton({ items }: { items: API.Document[] }) {
return () => window.removeEventListener('keydown', onKeyDown);
}, [active]);
useOutsideClick(ref, () => setActive(null));
useOutsideClick(ref as RefObject<HTMLDivElement>, () => setActive(null));
return (
<>
@@ -9,7 +9,7 @@ import { cn } from '@shadcn/ui/lib/utils';
import { useQuery } from '@tanstack/react-query';
import { AnimatePresence, motion } from 'framer-motion';
import { useTranslations } from 'next-intl';
import { useEffect, useId, useRef, useState } from 'react';
import { RefObject, useEffect, useId, useRef, useState } from 'react';
interface Item {
path: string;
@@ -48,7 +48,7 @@ export function TutorialButton({ items }: { items: Item[] }) {
return () => window.removeEventListener('keydown', onKeyDown);
}, [active]);
useOutsideClick(ref, () => setActive(null));
useOutsideClick(ref as RefObject<HTMLDivElement>, () => setActive(null));
return (
<>
+1 -1
View File
@@ -70,7 +70,7 @@ export default function Page() {
}, 66);
}, [ticket?.follow?.length]);
const ref = useRef<ProListActions>();
const ref = useRef<ProListActions>(null);
const [create, setCreate] = useState<Partial<API.CreateUserTicketRequest & { open: boolean }>>();
return (
+20 -20
View File
@@ -10,40 +10,40 @@
"start": "next start"
},
"dependencies": {
"@iconify/react": "^5.0.2",
"@iconify/react": "^5.1.0",
"@repo/ui": "workspace:*",
"@shadcn/ui": "workspace:*",
"@stripe/react-stripe-js": "^3.0.0",
"@stripe/stripe-js": "^5.2.0",
"@tanstack/react-query": "^5.61.3",
"@tanstack/react-query-next-experimental": "^5.61.3",
"ahooks": "^3.8.1",
"axios": "^1.7.8",
"@stripe/react-stripe-js": "^3.1.0",
"@stripe/stripe-js": "^5.3.0",
"@tanstack/react-query": "^5.62.7",
"@tanstack/react-query-next-experimental": "^5.62.7",
"ahooks": "^3.8.4",
"axios": "^1.7.9",
"crypto-js": "^4.2.0",
"framer-motion": "^11.11.17",
"lucide-react": "^0.461.0",
"mathjs": "^14.0.0",
"next": "^15.0.3",
"next-intl": "^3.25.3",
"framer-motion": "^11.14.4",
"lucide-react": "^0.468.0",
"mathjs": "^14.0.1",
"next": "^15.1.0",
"next-intl": "^3.26.1",
"next-runtime-env": "^3.2.2",
"next-themes": "^0.4.3",
"next-themes": "^0.4.4",
"nextjs-toploader": "^3.7.15",
"qrcode.react": "^4.1.0",
"qrcode.react": "^4.2.0",
"radash": "^12.1.0",
"react": "rc",
"react": "^19.0.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "rc",
"react-dom": "^19.0.0",
"react-turnstile": "^1.1.4",
"universal-cookie": "^7.2.2",
"zustand": "^5.0.1"
"zustand": "^5.0.2"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@types/node": "^22.10.0",
"@types/react": "^18.3.12",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^18.3.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.7.2"
}
}