The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
added tooltip previews
Steven Tey0d05860c46db
diff --git a/apps/web/app/api/links/info/route.ts b/apps/web/app/api/links/info/route.tsindex 5b8a8a2778..32e29c73d2 100644--- a/apps/web/app/api/links/info/route.ts+++ b/apps/web/app/api/links/info/route.ts@@ -12,6 +12,9 @@ export const GET = withAuth(async ({ headers, searchParams }) => {key,},},+ include: {+ user: true,+ },});return NextResponse.json(response, {headers,diff --git a/apps/web/app/api/projects/[slug]/domains/[domain]/route.ts b/apps/web/app/api/projects/[slug]/domains/[domain]/route.tsindex 3645bab732..cc2f794f37 100644--- a/apps/web/app/api/projects/[slug]/domains/[domain]/route.ts+++ b/apps/web/app/api/projects/[slug]/domains/[domain]/route.ts@@ -12,6 +12,30 @@ import {} from "@/lib/api/domains";import { NextResponse } from "next/server";+// GET /api/projects/[slug]/domains/[domain] – get a project's domain+export const GET = withAuth(async ({ domain }) => {+ const data = await prisma.domain.findUnique({+ where: {+ slug: domain,+ },+ select: {+ slug: true,+ verified: true,+ primary: true,+ target: true,+ type: true,+ clicks: true,+ },+ });+ if (!data) {+ return new Response("Domain not found", { status: 404 });+ }+ return NextResponse.json({+ ...data,+ url: data.target,+ });+});+// PUT /api/projects/[slug]/domains/[domain] – edit a project's domainexport const PUT = withAuth(async ({ req, project, domain }) => {const { slug: newDomain, target, type, primary } = await req.json();diff --git a/apps/web/lib/swr/use-links.ts b/apps/web/lib/swr/use-links.tsindex 313fe8a7d6..79009f4c4e 100644--- a/apps/web/lib/swr/use-links.ts+++ b/apps/web/lib/swr/use-links.ts@@ -13,7 +13,7 @@ export default function useLinks() {user: UserProps;})[]>(- `/api${slug ? `/projects/${slug}/links` : "/links"}${getQueryString({+ `/api${slug ? `/projects/${slug}` : ""}/links${getQueryString({searchParams,})}`,fetcher,diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsxindex 9e3aa0d2f0..664f7f508d 100644--- a/apps/web/ui/links/link-card.tsx+++ b/apps/web/ui/links/link-card.tsx@@ -42,12 +42,7 @@ import {QrCode,} from "lucide-react";import Link from "next/link";-import {- useParams,- usePathname,- useRouter,- useSearchParams,-} from "next/navigation";+import { useParams } from "next/navigation";import punycode from "punycode/";import { useContext, useEffect, useMemo, useRef, useState } from "react";import useSWR from "swr";diff --git a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx b/apps/web/ui/modals/add-edit-link-modal/og-section.tsxindex 2d1af232ea..6b43a41783 100644--- a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/og-section.tsx@@ -70,8 +70,16 @@ export default function OGSection({}}, [proxy]);+ const [cooldown, setCooldown] = useState(false);const [openPopover, setOpenPopover] = useState(false);-+ function handleSet() {+ if (cooldown) return;+ setOpenPopover(!openPopover);+ setCooldown(true);+ setTimeout(() => {+ setCooldown(false);+ }, 200);+ }return (<div className="relative grid gap-5 border-b border-gray-200 pb-5"><div className="flex items-center justify-between">@@ -127,14 +135,14 @@ export default function OGSection({content={<UnsplashSearchsetData={setData}- setOpenPopover={setOpenPopover}+ setOpenPopover={handleSet}/>}openPopover={openPopover}- setOpenPopover={setOpenPopover}+ setOpenPopover={handleSet}><div- onClick={() => setOpenPopover(true)}+ onClick={handleSet}className="flex h-6 w-6 cursor-pointer items-center justify-center rounded-md transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200"><Unsplash className="h-3 w-3 text-gray-500" />diff --git a/apps/web/ui/stats/bar-list.tsx b/apps/web/ui/stats/bar-list.tsxindex 5caf88166e..08a30da7ea 100644--- a/apps/web/ui/stats/bar-list.tsx+++ b/apps/web/ui/stats/bar-list.tsx@@ -1,11 +1,25 @@"use client";-import { NumberTooltip } from "@dub/ui";-import { cn, nFormatter } from "@dub/utils";+import { UserProps } from "@/lib/types";+import { Avatar, CopyButton, NumberTooltip, Tooltip } from "@dub/ui";+import {+ GOOGLE_FAVICON_URL,+ cn,+ fetcher,+ getApexDomain,+ linkConstructor,+ nFormatter,+ timeAgo,+} from "@dub/utils";+import { Link as LinkProps } from "@prisma/client";import { motion } from "framer-motion";-import { Search } from "lucide-react";+import { Archive, EyeOff, Globe, Search, Trash } from "lucide-react";import Link from "next/link";+import { useParams } from "next/navigation";import { Dispatch, ReactNode, SetStateAction, useMemo, useState } from "react";+import useSWR from "swr";+import { BlurImage } from "../shared/blur-image";+import punycode from "punycode/";export default function BarList({tab,@@ -19,7 +33,7 @@ export default function BarList({data: {icon?: ReactNode;title: string;- href?: string;+ href: string;clicks: number;}[];maxClicks: number;@@ -44,53 +58,64 @@ export default function BarList({const bars = (<div className="grid gap-4">{filteredData.map(({ icon, title, href, clicks }, idx) => {- const bar = (- <div key={idx} className="group flex items-center justify-between">- <div className="relative z-10 flex w-full max-w-[calc(100%-2rem)] items-center">- <span className="z-10 flex items-center space-x-2 px-2">- {icon}- <p+ const lineItem = (+ <div className="z-10 flex items-center space-x-2 px-2">+ {icon}+ <p+ className={cn(+ "text-sm text-gray-800",+ href && "underline-offset-4 group-hover:underline",+ )}+ >+ {title}+ </p>+ </div>+ );++ return (+ <Link+ key={idx}+ href={href}+ scroll={false}+ onClick={() => setShowModal(false)}+ >+ <div key={idx} className="group flex items-center justify-between">+ <div className="relative z-10 flex w-full max-w-[calc(100%-2rem)] items-center">+ {tab === "Top Links" ? (+ <Tooltip+ content={+ <LinkPreviewTooltip+ domain={title.split("/")[0]}+ _key={title.split("/")[1]}+ />+ }+ >+ {lineItem}+ </Tooltip>+ ) : (+ lineItem+ )}+ <motion.div+ style={{+ width: `${(clicks / (maxClicks || 0)) * 100}%`,+ }}className={cn(- "text-sm text-gray-800",- href && "underline-offset-4 group-hover:underline",+ "absolute h-8 origin-left rounded-sm",+ barBackground,)}- >- {title}+ transition={{ ease: "easeOut", duration: 0.3 }}+ initial={{ transform: "scaleX(0)" }}+ animate={{ transform: "scaleX(1)" }}+ />+ </div>+ <NumberTooltip value={clicks}>+ <p className="z-10 text-sm text-gray-600">+ {nFormatter(clicks)}</p>- </span>- <motion.div- style={{- width: `${(clicks / (maxClicks || 0)) * 100}%`,- }}- className={cn(- "absolute h-8 origin-left rounded-sm",- barBackground,- )}- transition={{ ease: "easeOut", duration: 0.3 }}- initial={{ transform: "scaleX(0)" }}- animate={{ transform: "scaleX(1)" }}- />+ </NumberTooltip></div>- <NumberTooltip value={clicks}>- <p className="z-10 text-sm text-gray-600">{nFormatter(clicks)}</p>- </NumberTooltip>- </div>+ </Link>);-- if (href) {- return (- <Link- key={idx}- href={href}- scroll={false}- onClick={() => setShowModal(false)}- >- {bar}- </Link>- );- }-- return bar;})}</div>);@@ -127,3 +152,157 @@ export default function BarList({);}}++const LinkPreviewTooltip = ({+ domain,+ _key,+}: {+ domain: string;+ _key?: string;+}) => {+ const key = _key;+ const { slug } = useParams() as { slug?: string };+ const { data, isLoading } = useSWR<+ LinkProps & {+ user: UserProps;+ }+ >(+ key+ ? `/api${+ slug ? `/projects/${slug}` : ""+ }/links/info?domain=${domain}&key=${key}`+ : `/api/projects/${slug}/domains/${domain}`,+ fetcher,+ {+ dedupingInterval: 60000,+ },+ );+ if (isLoading) {+ return (+ <div className="relative flex w-[28rem] items-center px-4 py-2">+ <div className="mr-2 h-8 w-8 animate-pulse rounded-full bg-gray-200 sm:h-10 sm:w-10" />+ <div className="flex flex-col space-y-2">+ <div className="flex items-center space-x-2">+ <div className="h-5 w-40 animate-pulse rounded-md bg-gray-200" />+ <div className="h-5 w-5 animate-pulse rounded-full bg-gray-200" />+ </div>+ <div className="flex items-center space-x-2">+ <div className="h-5 w-5 animate-pulse rounded-full bg-gray-200" />+ <div className="h-5 w-20 animate-pulse rounded-md bg-gray-200" />+ <div className="h-5 w-48 animate-pulse rounded-md bg-gray-200" />+ </div>+ </div>+ </div>+ );+ }+ if (!data) {+ return (+ <div className="relative flex w-[28rem] items-center space-x-3 px-4 py-2">+ <div className="flex h-8 w-8 items-center justify-center rounded-full bg-gray-300 px-0 sm:h-10 sm:w-10">+ <Trash className="h-4 w-4 text-gray-500 sm:h-5 sm:w-5" />+ </div>+ <div className="flex flex-col space-y-1">+ <p className="w-full max-w-[140px] truncate text-sm font-semibold text-gray-500 line-through sm:max-w-[300px] sm:text-base md:max-w-[360px] xl:max-w-[500px]">+ {linkConstructor({+ domain: punycode.toUnicode(domain || ""),+ key,+ pretty: true,+ })}+ </p>+ <p className="text-sm text-gray-500">This link has been deleted.</p>+ </div>+ </div>+ );+ }++ const { url, rewrite, createdAt, archived, user } = data;+ const apexDomain = getApexDomain(url);++ return (+ <div className="relative flex w-[28rem] items-center justify-between px-4 py-2">+ <div className="relative flex shrink items-center">+ {archived ? (+ <div className="flex h-8 w-8 items-center justify-center rounded-full bg-gray-300 px-0 sm:h-10 sm:w-10">+ <Archive className="h-4 w-4 text-gray-500 sm:h-5 sm:w-5" />+ </div>+ ) : url ? (+ <BlurImage+ src={`${GOOGLE_FAVICON_URL}${apexDomain}`}+ alt={apexDomain}+ className="h-8 w-8 rounded-full sm:h-10 sm:w-10"+ width={20}+ height={20}+ />+ ) : (+ <div className="flex h-8 w-8 items-center justify-center rounded-full border border-gray-300 px-0 sm:h-10 sm:w-10">+ <Globe className="h-4 w-4 text-gray-500 sm:h-5 sm:w-5" />+ </div>+ )}+ {/*+ Here, we're manually setting ml-* values because if we do space-x-* in the parent div,+ it messes up the tooltip positioning.+ */}+ <div className="ml-2 sm:ml-4">+ <div className="flex max-w-fit items-center space-x-2">+ <a+ className={cn(+ "w-full max-w-[140px] truncate text-sm font-semibold text-blue-800 sm:max-w-[300px] sm:text-base md:max-w-[360px] xl:max-w-[500px]",+ {+ "text-gray-500": archived,+ },+ )}+ href={linkConstructor({ domain, key })}+ target="_blank"+ rel="noreferrer"+ onClick={(e) => e.stopPropagation()}+ >+ {linkConstructor({+ domain: punycode.toUnicode(domain || ""),+ key,+ pretty: true,+ })}+ </a>+ <CopyButton value={linkConstructor({ domain, key })} />+ </div>+ <div className="flex max-w-fit items-center space-x-1">+ {user && (+ <>+ <Avatar user={user} className="h-4 w-4" />+ <p>•</p>+ </>+ )}+ {createdAt && (+ <>+ <p+ className="whitespace-nowrap text-sm text-gray-500"+ suppressHydrationWarning+ >+ {timeAgo(createdAt)}+ </p>+ <p>•</p>+ </>+ )}+ {rewrite && (+ <EyeOff className="xs:block hidden h-4 w-4 text-gray-500" />+ )}+ {url ? (+ <a+ href={url}+ target="_blank"+ rel="noopener noreferrer"+ onClick={(e) => e.stopPropagation()}+ className="xs:block hidden max-w-[240px] truncate text-sm font-medium text-gray-700 underline-offset-2 hover:underline"+ >+ {url}+ </a>+ ) : (+ <p className="xs:block hidden max-w-[240px] truncate text-sm font-medium text-gray-700 underline-offset-2 hover:underline">+ No redirect configured+ </p>+ )}+ </div>+ </div>+ </div>+ </div>+ );+};diff --git a/apps/web/ui/stats/devices.tsx b/apps/web/ui/stats/devices.tsxindex ce708d9eee..a434c18710 100644--- a/apps/web/ui/stats/devices.tsx+++ b/apps/web/ui/stats/devices.tsx@@ -34,7 +34,7 @@ export default function Devices() {[tab]: d[tab],},getNewPath: true,- }),+ }) as string,clicks: d.clicks,})) || []}diff --git a/apps/web/ui/stats/index.tsx b/apps/web/ui/stats/index.tsxindex 070026bf02..19a19b9433 100644--- a/apps/web/ui/stats/index.tsx+++ b/apps/web/ui/stats/index.tsx@@ -25,6 +25,7 @@ import Toggle from "./toggle";import Feedback from "./feedback";import useSWR from "swr";import { fetcher } from "@dub/utils";+import { VALID_STATS_FILTERS } from "@/lib/stats";export const StatsContext = createContext<{basePath: string;@@ -62,12 +63,6 @@ export default function Stats({const domainSlug = searchParams?.get("domain");// key can be a path param (public stats pages) or a query param (stats pages in app)key = searchParams?.get("key") || key;- const country = searchParams?.get("country");- const city = searchParams?.get("city");- const device = searchParams?.get("device");- const browser = searchParams?.get("browser");- const os = searchParams?.get("os");- const referer = searchParams?.get("referer");const interval = searchParams?.get("interval") || "24h";const { basePath, domain, baseApiPath } = useMemo(() => {@@ -96,18 +91,22 @@ export default function Stats({}, [slug, pathname, staticDomain, domainSlug, key]);const queryString = useMemo(() => {+ const availableFilterParams = VALID_STATS_FILTERS.reduce(+ (acc, filter) => ({+ ...acc,+ ...(searchParams?.get(filter) && {+ [filter]: searchParams.get(filter),+ }),+ }),+ {},+ );return new URLSearchParams({...(domain && { domain }),...(key && { key }),- ...(country && { country }),- ...(city && { city }),- ...(device && { device }),- ...(browser && { browser }),- ...(os && { os }),- ...(referer && { referer }),+ ...availableFilterParams,...(interval && { interval }),}).toString();- }, [domain, key, country, city, device, browser, os, referer, interval]);+ }, [slug, domain, key, searchParams, interval]);const { data: totalClicks } = useSWR<number>(`${baseApiPath}/clicks?${queryString}`,diff --git a/apps/web/ui/stats/locations.tsx b/apps/web/ui/stats/locations.tsxindex 12450bbd36..dc23806205 100644--- a/apps/web/ui/stats/locations.tsx+++ b/apps/web/ui/stats/locations.tsx@@ -38,7 +38,7 @@ export default function Locations() {[tab]: d[tab],},getNewPath: true,- }),+ }) as string,clicks: d.clicks,})) || []}diff --git a/apps/web/ui/stats/referer.tsx b/apps/web/ui/stats/referer.tsxindex b84b1d9e2f..d2fc40fcc6 100644--- a/apps/web/ui/stats/referer.tsx+++ b/apps/web/ui/stats/referer.tsx@@ -42,7 +42,7 @@ export default function Referer() {referer: d.referer,},getNewPath: true,- }),+ }) as string,clicks: d.clicks,})) || []}diff --git a/apps/web/ui/stats/top-links.tsx b/apps/web/ui/stats/top-links.tsxindex cd9c79f9cb..c2090b7ec7 100644--- a/apps/web/ui/stats/top-links.tsx+++ b/apps/web/ui/stats/top-links.tsx@@ -33,7 +33,7 @@ export default function TopLinks() {key: d.key,},getNewPath: true,- }),+ }) as string,clicks: d.clicks,})) || []}diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 00d7c24c0e..b6232f41f6 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -1,7 +1,7 @@{"name": "@dub/ui","description": "UI components for Dub.co",- "version": "0.0.16",+ "version": "0.0.18","sideEffects": false,"main": "./dist/index.js","module": "./dist/index.mjs",@@ -35,11 +35,11 @@},"dependencies": {"@radix-ui/react-accordion": "^1.0.1",- "@radix-ui/react-dialog": "1.0.3",+ "@radix-ui/react-dialog": "1.0.5","@radix-ui/react-navigation-menu": "^1.1.2",- "@radix-ui/react-popover": "1.0.5",+ "@radix-ui/react-popover": "1.0.7","@radix-ui/react-switch": "^1.0.1",- "@radix-ui/react-tooltip": "^1.0.2",+ "@radix-ui/react-tooltip": "^1.0.7","class-variance-authority": "^0.7.0","lucide-react": "^0.284.0","sonner": "^0.5.0",diff --git a/packages/ui/src/tooltip.tsx b/packages/ui/src/tooltip.tsxindex 92f73d093c..dcee8ae194 100644--- a/packages/ui/src/tooltip.tsx+++ b/packages/ui/src/tooltip.tsx@@ -59,23 +59,21 @@ export function Tooltip({<TooltipPrimitive.Trigger className="md:inline-flex" asChild>{children}</TooltipPrimitive.Trigger>- {/*- We don't use TooltipPrimitive.Portal here because for some reason it- prevents you from selecting the contents of a tooltip when used inside a modal- */}- <TooltipPrimitive.Content- sideOffset={8}- side={side}- className="animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md md:block"- >- {typeof content === "string" ? (- <div className="block max-w-xs px-4 py-2 text-center text-sm text-gray-700">- {content}- </div>- ) : (- content- )}- </TooltipPrimitive.Content>+ <TooltipPrimitive.Portal>+ <TooltipPrimitive.Content+ sideOffset={8}+ side={side}+ className="animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md md:block"+ >+ {typeof content === "string" ? (+ <div className="block max-w-xs px-4 py-2 text-center text-sm text-gray-700">+ {content}+ </div>+ ) : (+ content+ )}+ </TooltipPrimitive.Content>+ </TooltipPrimitive.Portal></TooltipPrimitive.Root></TooltipPrimitive.Provider>);diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.tsindex 77a8b66507..0f966cad6b 100644--- a/packages/utils/src/index.ts+++ b/packages/utils/src/index.ts@@ -137,21 +137,21 @@ export const chunk = <T>(array: T[], chunk_size: number): T[][] => {};export function linkConstructor({- key,domain = "dub.sh",+ key,localhost,pretty,noDomain,}: {- key: string;domain?: string;+ key?: string;localhost?: boolean;pretty?: boolean;noDomain?: boolean;}) {const link = `${localhost ? "http://home.localhost:8888" : `https://${domain}`- }${key !== "_root" ? `/${key}` : ""}`;+ }${key && key !== "_root" ? `/${key}` : ""}`;if (noDomain) return `/${key}`;return pretty ? link.replace(/^https?:\/\//, "") : link;diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 28ca2c523b..a9136ff1ea 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -342,20 +342,20 @@ importers:specifier: ^1.0.1version: 1.0.1([email protected])([email protected])'@radix-ui/react-dialog':- specifier: 1.0.3+ specifier: 1.0.5+ version: 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])'@radix-ui/react-navigation-menu':specifier: ^1.1.2version: 1.1.2([email protected])([email protected])'@radix-ui/react-popover':- specifier: 1.0.5+ specifier: 1.0.7'@radix-ui/react-switch':specifier: ^1.0.1version: 1.0.1([email protected])([email protected])'@radix-ui/react-tooltip':- specifier: ^1.0.2+ specifier: ^1.0.7'@vercel/analytics':specifier: ^1.0.0version: 1.0.0([email protected])@@ -450,7 +450,7 @@ importers:version: link:../tsconfigtsup:specifier: ^6.1.3- version: 6.1.3([email protected])([email protected])+ version: 6.1.3([email protected])typescript:specifier: ^5.1.6version: 5.1.6@@ -3830,28 +3830,32 @@ packages:engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}dev: true- /@floating-ui/[email protected]:- resolution: {integrity: sha512-buc8BXHmG9l82+OQXOFU3Kr2XQx9ys01U/Q9HMIrZ300iLc8HLMgh7dcCqgYzAzf4BkoQvDcXf5Y+CuEZ5JBYg==}+ /@floating-ui/[email protected]:+ resolution: {integrity: sha512-kK1h4m36DQ0UHGj5Ah4db7R0rHemTqqO0QLvUqi1/mUUp3LuAWbWxdxSIf/XsnH9VS6rRVPLJCncjRzUvyCLXg==}+ dependencies:+ '@floating-ui/utils': 0.1.6dev: false- /@floating-ui/[email protected]:- resolution: {integrity: sha512-419BMceRLq0RrmTSDxn8hf9R3VCJv2K9PUfugh5JyEFmdjzDo+e8U5EdR8nzKq8Yj1htzLm3b6eQEEam3/rrtg==}+ /@floating-ui/[email protected]:+ resolution: {integrity: sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==}dependencies:- '@floating-ui/core': 0.7.3+ '@floating-ui/core': 1.5.0+ '@floating-ui/utils': 0.1.6dev: false- resolution: {integrity: sha512-1T0sJcpHgX/u4I1OzIEhlcrvkUN8ln39nz7fMoE/2HDHrPiMFoOGR7++GYyfUmIQHkkrTinaeQsO3XWubjSvGg==}+ resolution: {integrity: sha512-5qhlDvjaLmAst/rKb3VdlCinwTF4EYMiVxuuc/HVUjs46W0zgtbMmAZ1UTsDrRTxRmUEzl92mOtWbeeXL26lSQ==}peerDependencies:react: '>=16.8.0'react-dom: '>=16.8.0'dependencies:- '@floating-ui/dom': 0.5.4+ '@floating-ui/dom': 1.5.3react: 18.2.0react-dom: 18.2.0([email protected])- use-isomorphic-layout-effect: 1.1.2(@types/[email protected])([email protected])- transitivePeerDependencies:- - '@types/react'+ dev: false++ /@floating-ui/[email protected]:+ resolution: {integrity: sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==}dev: false/@googleapis/[email protected]([email protected]):@@ -4754,26 +4758,22 @@ packages:react-dom: 18.2.0([email protected])dev: false- resolution: {integrity: sha512-1yientwXqXcErDHEv8av9ZVNEBldH8L9scVR3is20lL+jOCfcJyMFZFEY5cgIrgexsq1qggSXqiEL/d/4f+QXA==}- peerDependencies:- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0- dependencies:- '@babel/runtime': 7.23.1- '@radix-ui/react-primitive': 1.0.1([email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-- resolution: {integrity: sha512-fqYwhhI9IarZ0ll2cUSfKuXHlJK0qE4AfnRrPBbRwEH/4mGQn04/QFGomLi8TXWIdv9WJk//KgGm+aDxVIr1wA==}+ resolution: {integrity: sha512-wSP+pHsB/jQRaL6voubsQ/ZlrGBHHrOjmBnr19hxYgtS0WvAFwZhK2WP/YY5yF9uKECCEEDGxuLxq1NBK51wFA==}peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'react: ^16.8 || ^17.0 || ^18.0react-dom: ^16.8 || ^17.0 || ^18.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: truedependencies:'@babel/runtime': 7.23.1- '@radix-ui/react-primitive': 1.0.2([email protected])([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@types/react': 18.2.14react: 18.2.0react-dom: 18.2.0([email protected])dev: false@@ -4900,33 +4900,6 @@ packages:- '@types/react'dev: false- resolution: {integrity: sha512-owNhq36kNPqC2/a+zJRioPg6HHnTn5B/sh/NjTY8r4W9g1L5VJlrzZIVcBr7R9Mg8iLjVmh6MGgMlfoVf/WO/A==}- peerDependencies:- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0- dependencies:- '@babel/runtime': 7.23.1- '@radix-ui/primitive': 1.0.0- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-context': 1.0.0([email protected])- '@radix-ui/react-dismissable-layer': 1.0.3([email protected])([email protected])- '@radix-ui/react-focus-guards': 1.0.0([email protected])- '@radix-ui/react-focus-scope': 1.0.2([email protected])([email protected])- '@radix-ui/react-id': 1.0.0([email protected])- '@radix-ui/react-portal': 1.0.2([email protected])([email protected])- '@radix-ui/react-presence': 1.0.0([email protected])([email protected])- '@radix-ui/react-primitive': 1.0.2([email protected])([email protected])- '@radix-ui/react-slot': 1.0.1([email protected])- '@radix-ui/react-use-controllable-state': 1.0.0([email protected])- aria-hidden: 1.2.3- react: 18.2.0- react-dom: 18.2.0([email protected])- react-remove-scroll: 2.5.5(@types/[email protected])([email protected])- transitivePeerDependencies:- - '@types/react'- dev: false-/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-GjWJX/AUpB703eEBanuBnIWdIXg6NvJFCXcNlSZk4xdszCdhrJgBoUd1cGk67vFO+WdA2pfI/plOpqz/5GUP6Q==}peerDependencies:@@ -4986,22 +4959,6 @@ packages:react-dom: 18.2.0([email protected])dev: false- resolution: {integrity: sha512-WjJzMrTWROozDqLB0uRWYvj4UuXsM/2L19EmQ3Au+IJWqwvwq9Bwd+P8ivo0Deg9JDPArR1I6MbWNi1CmXsskg==}- peerDependencies:- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0- dependencies:- '@babel/runtime': 7.23.1- '@radix-ui/primitive': 1.0.0- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-primitive': 1.0.1([email protected])([email protected])- '@radix-ui/react-use-callback-ref': 1.0.0([email protected])- '@radix-ui/react-use-escape-keydown': 1.0.2([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-resolution: {integrity: sha512-nXZOvFjOuHS1ovumntGV7NNoLaEp9JEvTht3MBjP44NSW5hUKj/8OnfN3+8WmB+CEhN44XaGhpHoSsUIEl5P7Q==}peerDependencies:@@ -5080,20 +5037,6 @@ packages:react-dom: 18.2.0([email protected])dev: false- resolution: {integrity: sha512-spwXlNTfeIprt+kaEWE/qYuYT3ZAqJiAGjN/JgdvgVDTu8yc+HuX+WOWXrKliKnLnwck0F6JDkqIERncnih+4A==}- peerDependencies:- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0- dependencies:- '@babel/runtime': 7.23.1- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-primitive': 1.0.2([email protected])([email protected])- '@radix-ui/react-use-callback-ref': 1.0.0([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA==}peerDependencies:@@ -5167,77 +5110,67 @@ packages:react-dom: 18.2.0([email protected])dev: false- resolution: {integrity: sha512-GRHZ8yD12MrN2NLobHPE8Rb5uHTxd9x372DE9PPNnBjpczAQHcZ5ne0KXG4xpf+RDdXSzdLv9ym6mYJCDTaUZg==}+ resolution: {integrity: sha512-shtvVnlsxT6faMnK/a7n0wptwBD23xc1Z5mdrtKLwVEfsEMXodS0r5s0/g5P0hX//EKYZS2sxUjqfzlg52ZSnQ==}peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'react: ^16.8 || ^17.0 || ^18.0react-dom: ^16.8 || ^17.0 || ^18.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: truedependencies:'@babel/runtime': 7.23.1- '@radix-ui/primitive': 1.0.0- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-context': 1.0.0([email protected])- '@radix-ui/react-dismissable-layer': 1.0.3([email protected])([email protected])- '@radix-ui/react-focus-guards': 1.0.0([email protected])- '@radix-ui/react-focus-scope': 1.0.2([email protected])([email protected])- '@radix-ui/react-id': 1.0.0([email protected])- '@radix-ui/react-portal': 1.0.2([email protected])([email protected])- '@radix-ui/react-presence': 1.0.0([email protected])([email protected])- '@radix-ui/react-primitive': 1.0.2([email protected])([email protected])- '@radix-ui/react-slot': 1.0.1([email protected])- '@radix-ui/react-use-controllable-state': 1.0.0([email protected])+ '@radix-ui/primitive': 1.0.1+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-focus-guards': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])+ '@types/react': 18.2.14aria-hidden: 1.2.3react: 18.2.0react-dom: 18.2.0([email protected])react-remove-scroll: 2.5.5(@types/[email protected])([email protected])- transitivePeerDependencies:- - '@types/react'dev: false- resolution: {integrity: sha512-J4Vj7k3k+EHNWgcKrE+BLlQfpewxA7Zd76h5I0bIa+/EqaIZ3DuwrbPj49O3wqN+STnXsBuxiHLiF0iU3yfovw==}- peerDependencies:- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0- dependencies:- '@babel/runtime': 7.23.1- '@radix-ui/react-arrow': 1.0.1([email protected])([email protected])- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-context': 1.0.0([email protected])- '@radix-ui/react-primitive': 1.0.1([email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.0.0([email protected])- '@radix-ui/react-use-rect': 1.0.0([email protected])- '@radix-ui/react-use-size': 1.0.0([email protected])- '@radix-ui/rect': 1.0.0- react: 18.2.0- react-dom: 18.2.0([email protected])- transitivePeerDependencies:- - '@types/react'- dev: false-- resolution: {integrity: sha512-keYDcdMPNMjSC8zTsZ8wezUMiWM9Yj14wtF3s0PTIs9srnEPC9Kt2Gny1T3T81mmSeyDjZxsD9N5WCwNNb712w==}+ resolution: {integrity: sha512-cKpopj/5RHZWjrbF2846jBNacjQVwkP068DfmgrNJXpvVWrOvlAmE9xSiy5OqeE+Gi8D9fP+oDhUnPqNMY8/5w==}peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'react: ^16.8 || ^17.0 || ^18.0react-dom: ^16.8 || ^17.0 || ^18.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: truedependencies:'@babel/runtime': 7.23.1- '@radix-ui/react-arrow': 1.0.2([email protected])([email protected])- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-context': 1.0.0([email protected])- '@radix-ui/react-primitive': 1.0.2([email protected])([email protected])- '@radix-ui/react-use-callback-ref': 1.0.0([email protected])- '@radix-ui/react-use-layout-effect': 1.0.0([email protected])- '@radix-ui/react-use-rect': 1.0.0([email protected])- '@radix-ui/react-use-size': 1.0.0([email protected])- '@radix-ui/rect': 1.0.0+ '@floating-ui/react-dom': 2.0.2([email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.0.1+ '@types/react': 18.2.14react: 18.2.0react-dom: 18.2.0([email protected])- transitivePeerDependencies:- - '@types/react'dev: false@@ -5252,30 +5185,6 @@ packages:react-dom: 18.2.0([email protected])dev: false- resolution: {integrity: sha512-NY2vUWI5WENgAT1nfC6JS7RU5xRYBfjZVLq0HmgEN1Ezy3rk/UruMV4+Rd0F40PEaFC5SrLS1ixYvcYIQrb4Ig==}- peerDependencies:- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0- dependencies:- '@babel/runtime': 7.23.1- '@radix-ui/react-primitive': 1.0.1([email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-- resolution: {integrity: sha512-swu32idoCW7KA2VEiUZGBSu9nB6qwGdV6k6HYhUoOo3M1FFpD+VgLzUqtt3mwL1ssz7r2x8MggpLSQach2Xy/Q==}- peerDependencies:- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0- dependencies:- '@babel/runtime': 7.23.1- '@radix-ui/react-primitive': 1.0.2([email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==}peerDependencies:@@ -5442,29 +5351,35 @@ packages:react-dom: 18.2.0([email protected])dev: false- resolution: {integrity: sha512-11gUlok2rv5mu+KBtxniOKKNKjqC/uTbgFHWoQdbF46vMV+zjDaBvCtVDK9+MTddlpmlisGPGvvojX7Qm0yr+g==}+ resolution: {integrity: sha512-lPh5iKNFVQ/jav/j6ZrWq3blfDJ0OH9R6FlNUHPMqdLuQ9vwDgFsRxvl8b7Asuy5c8xmoojHUxKHQSOAvMHxyw==}peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'react: ^16.8 || ^17.0 || ^18.0react-dom: ^16.8 || ^17.0 || ^18.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: truedependencies:'@babel/runtime': 7.23.1- '@radix-ui/primitive': 1.0.0- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-context': 1.0.0([email protected])- '@radix-ui/react-dismissable-layer': 1.0.2([email protected])([email protected])- '@radix-ui/react-id': 1.0.0([email protected])- '@radix-ui/react-portal': 1.0.1([email protected])([email protected])- '@radix-ui/react-presence': 1.0.0([email protected])([email protected])- '@radix-ui/react-primitive': 1.0.1([email protected])([email protected])- '@radix-ui/react-slot': 1.0.1([email protected])- '@radix-ui/react-use-controllable-state': 1.0.0([email protected])- '@radix-ui/react-visually-hidden': 1.0.1([email protected])([email protected])+ '@radix-ui/primitive': 1.0.1+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.0.3(@types/[email protected])([email protected])([email protected])+ '@types/react': 18.2.14react: 18.2.0react-dom: 18.2.0([email protected])- transitivePeerDependencies:- - '@types/react'dev: false/@radix-ui/[email protected]([email protected]):@@ -5582,13 +5497,18 @@ packages:react: 18.2.0dev: false- /@radix-ui/[email protected]([email protected]):- resolution: {integrity: sha512-TB7pID8NRMEHxb/qQJpvSt3hQU4sqNPM1VCTjTRjEOa7cEop/QMuq8S6fb/5Tsz64kqSvB9WnwsDHtjnrM9qew==}+ resolution: {integrity: sha512-Cq5DLuSiuYVKNU8orzJMbl15TXilTnJKUCltMVQg53BQOF1/C5toAaGrowkgksdBQ9H+SRL23g0HDmg9tvmxXw==}peerDependencies:+ '@types/react': '*'react: ^16.8 || ^17.0 || ^18.0+ peerDependenciesMeta:+ '@types/react':+ optional: truedependencies:'@babel/runtime': 7.23.1- '@radix-ui/rect': 1.0.0+ '@radix-ui/rect': 1.0.1+ '@types/react': 18.2.14react: 18.2.0dev: false@@ -5602,16 +5522,19 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-K1hJcCMfWfiYUibRqf3V8r5Drpyf7rh44jnrwAbdvI5iCCijilBBeyQv9SKidYNZIopMdCyR9FnIjkHxHN0FcQ==}+ resolution: {integrity: sha512-ibay+VqrgcaI6veAojjofPATwledXiSmX+C0KrBk/xgpX9rBzPV3OsfwlhQdUOFbh+LKQorLYT+xTXW9V8yd0g==}peerDependencies:+ '@types/react': '*'react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ peerDependenciesMeta:+ '@types/react':+ optional: truedependencies:'@babel/runtime': 7.23.1- '@radix-ui/react-primitive': 1.0.1([email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])+ '@types/react': 18.2.14react: 18.2.0- react-dom: 18.2.0([email protected])dev: false@@ -5626,8 +5549,28 @@ packages:react-dom: 18.2.0([email protected])dev: false- /@radix-ui/[email protected]:- resolution: {integrity: sha512-d0O68AYy/9oeEy1DdC07bz1/ZXX+DqCskRd3i4JzLSTXwefzaepQrKjXC7aNM8lTHjFLDO0pDgaEiQ7jEk+HVg==}+ resolution: {integrity: sha512-D4w41yN5YRKtu464TLnByKzMDG/JlMPHtfZgQAu9v6mNakUqGUI9vUrfQKz8NK41VMm/xbZbh76NUTVtIYqOMA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0+ react-dom: ^16.8 || ^17.0 || ^18.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+ dependencies:+ '@babel/runtime': 7.23.1+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@types/react': 18.2.14+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false++ /@radix-ui/[email protected]:+ resolution: {integrity: sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==}dependencies:'@babel/runtime': 7.23.1dev: false@@ -12671,7 +12614,6 @@ packages:lilconfig: 2.1.0postcss: 8.4.21yaml: 1.10.2- dev: falseresolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==}@@ -12759,7 +12701,6 @@ packages:nanoid: 3.3.6picocolors: 1.0.0source-map-js: 1.0.2- dev: falseresolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}@@ -14593,6 +14534,42 @@ packages:- ts-nodedev: true+ resolution: {integrity: sha512-eRpBnbfpDFng+EJNTQ90N7QAf4HAGGC7O3buHIjroKWK7D1ibk9/YnR/3cS8HsMU5T+6Oi+cnF+yU5WmCnB//Q==}+ engines: {node: '>=14'}+ hasBin: true+ peerDependencies:+ '@swc/core': ^1+ postcss: ^8.4.12+ typescript: ^4.1.0+ peerDependenciesMeta:+ '@swc/core':+ optional: true+ postcss:+ optional: true+ typescript:+ optional: true+ dependencies:+ bundle-require: 3.1.2([email protected])+ cac: 6.7.14+ chokidar: 3.5.3+ debug: 4.3.4+ esbuild: 0.14.54+ execa: 5.1.1+ globby: 11.1.0+ joycon: 3.1.1+ postcss-load-config: 3.1.4([email protected])+ resolve-from: 5.0.0+ rollup: 2.79.1+ source-map: 0.8.0-beta.0+ sucrase: 3.34.0+ tree-kill: 1.2.2+ typescript: 5.1.6+ transitivePeerDependencies:+ - supports-color+ - ts-node+ dev: true+resolution: {integrity: sha512-xHtFaKtHxM9LOklMmJdI3BEnQq/D5F73Of2E1GDrITi9sgoVkvIsrQUTY1G8FlmGtA+awCI4EBlTRRYxkL2sRg==}hasBin: true