Merge pull request #1 from iamsyg/dependency-issue

fix: peer dependency conflicts
This commit is contained in:
Swayam Gupta 2025-10-03 02:06:37 +05:30 committed by GitHub
commit 38b25702bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
54 changed files with 17628 additions and 11356 deletions

View file

@ -9,4 +9,4 @@ const page = () => {
) )
} }
export default page export default page

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { format } from "date-fns"; import { format } from "date-fns";
import { AnimatePresence, motion, type Variants } from "motion/react"; import { AnimatePresence, motion, type Variants } from "framer-motion";
import { import {
Calendar, Calendar,
CheckCircle, CheckCircle,

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { format } from "date-fns"; import { format } from "date-fns";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { Calendar as CalendarIcon, Edit, Plus, RefreshCw, Trash2 } from "lucide-react"; import { Calendar as CalendarIcon, Edit, Plus, RefreshCw, Trash2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useEffect } from "react"; import { useEffect } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, ExternalLink, Loader2 } from "lucide-react"; import { ArrowLeft, Check, ExternalLink, Loader2 } from "lucide-react";
import Link from "next/link"; import Link from "next/link";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, CircleAlert, Github, Info, ListChecks, Loader2 } from "lucide-react"; import { ArrowLeft, Check, CircleAlert, Github, Info, ListChecks, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, ExternalLink, Loader2 } from "lucide-react"; import { ArrowLeft, Check, ExternalLink, Loader2 } from "lucide-react";
import Link from "next/link"; import Link from "next/link";
import { useParams, useRouter, useSearchParams } from "next/navigation"; import { useParams, useRouter, useSearchParams } from "next/navigation";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, ExternalLink, Loader2 } from "lucide-react"; import { ArrowLeft, Check, ExternalLink, Loader2 } from "lucide-react";
import Link from "next/link"; import Link from "next/link";
import { useParams, useRouter, useSearchParams } from "next/navigation"; import { useParams, useRouter, useSearchParams } from "next/navigation";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Key, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Key, Loader2 } from "lucide-react";
import Link from "next/link"; import Link from "next/link";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -6,7 +6,7 @@ import {
IconChevronDown, IconChevronDown,
IconChevronRight, IconChevronRight,
} from "@tabler/icons-react"; } from "@tabler/icons-react";
import { AnimatePresence, motion, type Variants } from "motion/react"; import { AnimatePresence, motion, type Variants } from "framer-motion";
import Link from "next/link"; import Link from "next/link";
import { useParams } from "next/navigation"; import { useParams } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ArrowLeft, Check, Info, Loader2 } from "lucide-react"; import { ArrowLeft, Check, Info, Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { AnimatePresence, motion, type Variants } from "motion/react"; import { AnimatePresence, motion, type Variants } from "framer-motion";
import { CircleAlert, CircleX, Columns3, Filter, ListFilter, Trash } from "lucide-react"; import { CircleAlert, CircleX, Columns3, Filter, ListFilter, Trash } from "lucide-react";
import React, { useMemo, useRef } from "react"; import React, { useMemo, useRef } from "react";
import { import {

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ChevronDown, ChevronUp, FileX } from "lucide-react"; import { ChevronDown, ChevronUp, FileX } from "lucide-react";
import React from "react"; import React from "react";
import { DocumentViewer } from "@/components/document-viewer"; import { DocumentViewer } from "@/components/document-viewer";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { ChevronFirst, ChevronLast, ChevronLeft, ChevronRight } from "lucide-react"; import { ChevronFirst, ChevronLast, ChevronLeft, ChevronRight } from "lucide-react";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label"; import { Label } from "@/components/ui/label";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { useParams } from "next/navigation"; import { useParams } from "next/navigation";
import { useEffect, useId, useMemo, useState } from "react"; import { useEffect, useId, useMemo, useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { AnimatePresence, motion } from "motion/react"; import { AnimatePresence, motion } from "framer-motion";
import { CheckCircle2, FileType, Info, Tag, Upload, X } from "lucide-react"; import { CheckCircle2, FileType, Info, Tag, Upload, X } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useCallback, useState } from "react"; import { useCallback, useState } from "react";

View file

@ -2,7 +2,7 @@
import { IconBrandYoutube } from "@tabler/icons-react"; import { IconBrandYoutube } from "@tabler/icons-react";
import { type Tag, TagInput } from "emblor"; import { type Tag, TagInput } from "emblor";
import { motion, type Variants } from "motion/react"; import { motion, type Variants } from "framer-motion";
import { Loader2 } from "lucide-react"; import { Loader2 } from "lucide-react";
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";

View file

@ -15,7 +15,7 @@ import {
useReactTable, useReactTable,
type VisibilityState, type VisibilityState,
} from "@tanstack/react-table"; } from "@tanstack/react-table";
import { AnimatePresence, motion, type Variants } from "motion/react"; import { AnimatePresence, motion, type Variants } from "framer-motion";
import { import {
Activity, Activity,
AlertCircle, AlertCircle,

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { IconCheck, IconCopy, IconKey } from "@tabler/icons-react"; import { IconCheck, IconCopy, IconKey } from "@tabler/icons-react";
import { AnimatePresence, motion } from "motion/react"; import { AnimatePresence, motion } from "framer-motion";
import { ArrowLeft } from "lucide-react"; import { ArrowLeft } from "lucide-react";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { motion, type Variants } from "motion/react"; import { motion, type Variants } from "framer-motion";
import { AlertCircle, Loader2, Plus, Search, Trash2 } from "lucide-react"; import { AlertCircle, Loader2, Plus, Search, Trash2 } from "lucide-react";
import Image from "next/image"; import Image from "next/image";
import Link from "next/link"; import Link from "next/link";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { toast } from "sonner"; import { toast } from "sonner";
import { SearchSpaceForm } from "@/components/search-space-form"; import { SearchSpaceForm } from "@/components/search-space-form";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { IconBrandGoogleFilled } from "@tabler/icons-react"; import { IconBrandGoogleFilled } from "@tabler/icons-react";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { Logo } from "@/components/Logo"; import { Logo } from "@/components/Logo";
import { AmbientBackground } from "./AmbientBackground"; import { AmbientBackground } from "./AmbientBackground";

View file

@ -1,5 +1,5 @@
"use client"; "use client";
import { AnimatePresence, motion } from "motion/react"; import { AnimatePresence, motion } from "framer-motion";
import Link from "next/link"; import Link from "next/link";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { AnimatePresence, motion } from "motion/react"; import { AnimatePresence, motion } from "framer-motion";
import { Loader2 } from "lucide-react"; import { Loader2 } from "lucide-react";
import { useSearchParams } from "next/navigation"; import { useSearchParams } from "next/navigation";
import { Suspense, useEffect, useState } from "react"; import { Suspense, useEffect, useState } from "react";

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { AnimatePresence, motion } from "motion/react"; import { AnimatePresence, motion } from "framer-motion";
import { ArrowLeft, ArrowRight, Bot, CheckCircle, Sparkles } from "lucide-react"; import { ArrowLeft, ArrowRight, Bot, CheckCircle, Sparkles } from "lucide-react";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";

View file

@ -9,4 +9,4 @@ const page = () => {
) )
} }
export default page export default page

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { AnimatePresence, motion } from "motion/react"; import { AnimatePresence, motion } from "framer-motion";
import Link from "next/link"; import Link from "next/link";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";

View file

@ -3,6 +3,7 @@ import { IconBrandDiscord, IconBrandGithub, IconFileTypeDoc, IconMail } from "@t
import Link from "next/link"; import Link from "next/link";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { Logo } from "./Logo"; import { Logo } from "./Logo";
import { motion, type Variants } from "framer-motion";
export function ModernHeroWithGradients() { export function ModernHeroWithGradients() {
return ( return (

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { IconMail, IconMenu2, IconUser, IconX } from "@tabler/icons-react"; import { IconMail, IconMenu2, IconUser, IconX } from "@tabler/icons-react";
import { AnimatePresence, motion, useMotionValueEvent, useScroll } from "motion/react"; import { AnimatePresence, motion, useMotionValueEvent, useScroll } from "framer-motion";
import Link from "next/link"; import Link from "next/link";
import { useRef, useState } from "react"; import { useRef, useState } from "react";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
@ -39,7 +39,7 @@ export const Navbar = () => {
}); });
const [visible, setVisible] = useState<boolean>(false); const [visible, setVisible] = useState<boolean>(false);
useMotionValueEvent(scrollY, "change", (latest) => { useMotionValueEvent(scrollY, "change", (latest: any) => {
if (latest > 100) { if (latest > 100) {
setVisible(true); setVisible(true);
} else { } else {

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { useInView } from "motion/react"; import { useInView } from "framer-motion";
import { Manrope } from "next/font/google"; import { Manrope } from "next/font/google";
import { useEffect, useMemo, useReducer, useRef } from "react"; import { useEffect, useMemo, useReducer, useRef } from "react";
import { RoughNotation, RoughNotationGroup } from "react-rough-notation"; import { RoughNotation, RoughNotationGroup } from "react-rough-notation";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { IconMailFilled } from "@tabler/icons-react"; import { IconMailFilled } from "@tabler/icons-react";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import Image from "next/image"; import Image from "next/image";
import Link from "next/link"; import Link from "next/link";
import type React from "react"; import type React from "react";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { AlertCircle, Bot, Plus, Trash2 } from "lucide-react"; import { AlertCircle, Bot, Plus, Trash2 } from "lucide-react";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { useState } from "react"; import { useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";
import { Alert, AlertDescription } from "@/components/ui/alert"; import { Alert, AlertDescription } from "@/components/ui/alert";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { AlertCircle, Bot, Brain, CheckCircle, Zap } from "lucide-react"; import { AlertCircle, Bot, Brain, CheckCircle, Zap } from "lucide-react";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { Alert, AlertDescription } from "@/components/ui/alert"; import { Alert, AlertDescription } from "@/components/ui/alert";
import { Badge } from "@/components/ui/badge"; import { Badge } from "@/components/ui/badge";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { ArrowRight, Bot, Brain, CheckCircle, Sparkles, Zap } from "lucide-react"; import { ArrowRight, Bot, Brain, CheckCircle, Sparkles, Zap } from "lucide-react";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { Badge } from "@/components/ui/badge"; import { Badge } from "@/components/ui/badge";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
import { useLLMConfigs, useLLMPreferences } from "@/hooks/use-llm-configs"; import { useLLMConfigs, useLLMPreferences } from "@/hooks/use-llm-configs";

View file

@ -2,7 +2,7 @@
import NumberFlow from "@number-flow/react"; import NumberFlow from "@number-flow/react";
import confetti from "canvas-confetti"; import confetti from "canvas-confetti";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { Check, Star } from "lucide-react"; import { Check, Star } from "lucide-react";
import Link from "next/link"; import Link from "next/link";
import { useRef, useState } from "react"; import { useRef, useState } from "react";

View file

@ -2,7 +2,7 @@
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { MoveLeftIcon, Plus, Search, Trash2 } from "lucide-react"; import { MoveLeftIcon, Plus, Search, Trash2 } from "lucide-react";
import { motion, type Variants } from "motion/react"; import { motion, type Variants } from "framer-motion";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { useState } from "react"; import { useState } from "react";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";

View file

@ -12,7 +12,7 @@ import {
Settings2, Settings2,
Zap, Zap,
} from "lucide-react"; } from "lucide-react";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";
import { Alert, AlertDescription } from "@/components/ui/alert"; import { Alert, AlertDescription } from "@/components/ui/alert";

View file

@ -14,7 +14,7 @@ import {
Settings2, Settings2,
Trash2, Trash2,
} from "lucide-react"; } from "lucide-react";
import { AnimatePresence, motion } from "motion/react"; import { AnimatePresence, motion } from "framer-motion";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";
import { Alert, AlertDescription } from "@/components/ui/alert"; import { Alert, AlertDescription } from "@/components/ui/alert";

View file

@ -1,7 +1,7 @@
"use client"; "use client";
import { MoonIcon, SunIcon } from "lucide-react"; import { MoonIcon, SunIcon } from "lucide-react";
import { motion } from "motion/react"; import { motion } from "framer-motion";
import { useTheme } from "next-themes"; import { useTheme } from "next-themes";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";

View file

@ -1,28 +1,25 @@
"use client"; "use client"
import { useTheme } from "next-themes"; import { useTheme } from "next-themes"
import { Toaster as Sonner, type ToasterProps } from "sonner"; import { Toaster as Sonner, ToasterProps } from "sonner"
const Toaster = ({ ...props }: ToasterProps) => { const Toaster = ({ ...props }: ToasterProps) => {
const { theme = "system" } = useTheme(); const { theme = "system" } = useTheme()
return ( return (
<Sonner <Sonner
theme={theme as ToasterProps["theme"]} theme={theme as ToasterProps["theme"]}
className="toaster group" className="toaster group"
toastOptions={{ style={
classNames: { {
toast: "--normal-bg": "var(--popover)",
"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg", "--normal-text": "var(--popover-foreground)",
description: "group-[.toast]:text-muted-foreground", "--normal-border": "var(--border)",
actionButton: } as React.CSSProperties
"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground font-medium", }
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground font-medium", {...props}
}, />
}} )
{...props} }
/>
);
};
export { Toaster }; export { Toaster }

View file

@ -1,5 +1,5 @@
"use client"; "use client";
import { motion, type SpringOptions, useSpring, useTransform } from "motion/react"; import { motion, type SpringOptions, useSpring, useTransform } from "framer-motion";
import { useCallback, useEffect, useRef, useState } from "react"; import { useCallback, useEffect, useRef, useState } from "react";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";

View file

@ -8,7 +8,7 @@ import {
useMotionValue, useMotionValue,
useSpring, useSpring,
useTransform, useTransform,
} from "motion/react"; } from "framer-motion";
import type React from "react"; import type React from "react";
import { useRef } from "react"; import { useRef } from "react";

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@
"private": true, "private": true,
"description": "SurfSense Frontend", "description": "SurfSense Frontend",
"scripts": { "scripts": {
"dev": "next dev --turbopack", "dev": "next dev",
"dev:turbo": "next dev --turbopack", "dev:turbo": "next dev --turbopack",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
@ -54,12 +54,12 @@
"dotenv": "^17.2.3", "dotenv": "^17.2.3",
"drizzle-orm": "^0.44.5", "drizzle-orm": "^0.44.5",
"emblor": "^1.4.8", "emblor": "^1.4.8",
"framer-motion": "^12.23.22",
"fumadocs-core": "^15.6.6", "fumadocs-core": "^15.6.6",
"fumadocs-mdx": "^11.7.1", "fumadocs-mdx": "^11.7.1",
"fumadocs-ui": "^15.6.6", "fumadocs-ui": "^15.6.6",
"geist": "^1.4.2", "geist": "^1.4.2",
"lucide-react": "^0.477.0", "lucide-react": "^0.477.0",
"motion": "^12.23.22",
"next": "^15.4.4", "next": "^15.4.4",
"next-themes": "^0.4.6", "next-themes": "^0.4.6",
"pg": "^8.16.3", "pg": "^8.16.3",
@ -77,7 +77,7 @@
"rehype-raw": "^7.0.0", "rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0", "rehype-sanitize": "^6.0.0",
"remark-gfm": "^4.0.1", "remark-gfm": "^4.0.1",
"sonner": "^2.0.6", "sonner": "^2.0.7",
"tailwind-merge": "^3.3.1", "tailwind-merge": "^3.3.1",
"tailwindcss-animate": "^1.0.7", "tailwindcss-animate": "^1.0.7",
"zod": "^3.25.76" "zod": "^3.25.76"

View file

@ -183,8 +183,8 @@ importers:
specifier: ^4.0.1 specifier: ^4.0.1
version: 4.0.1 version: 4.0.1
sonner: sonner:
specifier: ^2.0.6 specifier: ^2.0.7
version: 2.0.6(react-dom@19.1.0(react@19.1.0))(react@19.1.0) version: 2.0.7(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
tailwind-merge: tailwind-merge:
specifier: ^3.3.1 specifier: ^3.3.1
version: 3.3.1 version: 3.3.1
@ -5013,8 +5013,8 @@ packages:
simple-swizzle@0.2.2: simple-swizzle@0.2.2:
resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==} resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}
sonner@2.0.6: sonner@2.0.7:
resolution: {integrity: sha512-yHFhk8T/DK3YxjFQXIrcHT1rGEeTLliVzWbO0xN8GberVun2RiBnxAjXAYpZrqwEVHBG9asI/Li8TAAhN9m59Q==} resolution: {integrity: sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==}
peerDependencies: peerDependencies:
react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
@ -11482,7 +11482,7 @@ snapshots:
is-arrayish: 0.3.2 is-arrayish: 0.3.2
optional: true optional: true
sonner@2.0.6(react-dom@19.1.0(react@19.1.0))(react@19.1.0): sonner@2.0.7(react-dom@19.1.0(react@19.1.0))(react@19.1.0):
dependencies: dependencies:
react: 19.1.0 react: 19.1.0
react-dom: 19.1.0(react@19.1.0) react-dom: 19.1.0(react@19.1.0)