Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
dashboard
ErikKaumka784a2757c92
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjsindex 28e6f5a1b..3c0fb56f6 100644--- a/apps/docs/next.config.mjs+++ b/apps/docs/next.config.mjs@@ -47,35 +47,34 @@ const codeSnippetsDir = path.resolve('./src/code')/** @type {import('next').NextConfig} */const nextConfig = {pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],- basePath: '/docs',webpack: config => {const codeFilesHash = getFilesHash(codeSnippetsDir)config.cache.version = config.cache.version + delimiter + codeFilesHashreturn config},- async rewrites() {- return {- afterFiles: [- {- source: '/ingest/:path*',- destination: 'https://app.posthog.com/:path*',- // BEWARE: setting basePath will break the analytics proxy- },- { source: '/:path*', destination: '/_404/:path*' },- ]- }+ // async rewrites() {+ // return {+ // afterFiles: [+ // {+ // source: '/ingest/:path*',+ // destination: 'https://app.posthog.com/:path*',+ // // BEWARE: setting basePath will break the analytics proxy+ // },+ // { source: '/:path*', destination: '/_404/:path*' },+ // ]+ // }- },- async redirects() {- return [- {- source: '/',- destination: '/docs',- permanent: false,- basePath: false,- },- ]- },+ // },+ // async redirects() {+ // return [+ // {+ // source: '/',+ // destination: '/docs',+ // permanent: false,+ // basePath: false,+ // },+ // ]+ // },}export default withSearch(diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex 05b23eaa0..9662893e4 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -18,7 +18,12 @@"@mdx-js/loader": "^2.1.5","@mdx-js/react": "^2.1.5","@next/mdx": "^13.0.3",+ "@nivo/bar": "^0.87.0",+ "@radix-ui/react-alert-dialog": "^1.0.5",+ "@radix-ui/react-dropdown-menu": "^2.0.6","@radix-ui/react-popover": "^1.0.6",+ "@radix-ui/react-slot": "^1.0.2",+ "@radix-ui/react-toast": "^1.1.5","@sentry/nextjs": "^7.64.0","@sindresorhus/slugify": "^2.1.1","@supabase/auth-helpers-nextjs": "^0.7.4",@@ -64,6 +69,7 @@"unist-util-filter": "^4.0.1","unist-util-visit": "^4.1.1","usehooks-ts": "^2.9.1",+ "uuid": "^9.0.1","zustand": "^4.3.2"},"devDependencies": {diff --git a/apps/docs/src/app/cli/commands/page.mdx b/apps/docs/src/app/(docs)/docs/cli/commands/page.mdxsimilarity index 100%rename from apps/docs/src/app/cli/commands/page.mdxrename to apps/docs/src/app/(docs)/docs/cli/commands/page.mdxdiff --git a/apps/docs/src/app/cli/installation/page.mdx b/apps/docs/src/app/(docs)/docs/cli/installation/page.mdxsimilarity index 100%rename from apps/docs/src/app/cli/installation/page.mdxrename to apps/docs/src/app/(docs)/docs/cli/installation/page.mdxdiff --git a/apps/docs/src/app/code-interpreter/examples/page.mdx b/apps/docs/src/app/(docs)/docs/code-interpreter/examples/page.mdxsimilarity index 100%rename from apps/docs/src/app/code-interpreter/examples/page.mdxrename to apps/docs/src/app/(docs)/docs/code-interpreter/examples/page.mdxdiff --git a/apps/docs/src/app/code-interpreter/execution/page.mdx b/apps/docs/src/app/(docs)/docs/code-interpreter/execution/page.mdxsimilarity index 100%rename from apps/docs/src/app/code-interpreter/execution/page.mdxrename to apps/docs/src/app/(docs)/docs/code-interpreter/execution/page.mdxdiff --git a/apps/docs/src/app/code-interpreter/installation/page.mdx b/apps/docs/src/app/(docs)/docs/code-interpreter/installation/page.mdxsimilarity index 100%rename from apps/docs/src/app/code-interpreter/installation/page.mdxrename to apps/docs/src/app/(docs)/docs/code-interpreter/installation/page.mdxdiff --git a/apps/docs/src/app/code-interpreter/kernels/page.mdx b/apps/docs/src/app/(docs)/docs/code-interpreter/kernels/page.mdxsimilarity index 100%rename from apps/docs/src/app/code-interpreter/kernels/page.mdxrename to apps/docs/src/app/(docs)/docs/code-interpreter/kernels/page.mdxdiff --git a/apps/docs/src/app/code-interpreter/template/page.mdx b/apps/docs/src/app/(docs)/docs/code-interpreter/template/page.mdxsimilarity index 100%rename from apps/docs/src/app/code-interpreter/template/page.mdxrename to apps/docs/src/app/(docs)/docs/code-interpreter/template/page.mdxdiff --git a/apps/docs/src/app/examples/clone-repo/page.mdx b/apps/docs/src/app/(docs)/docs/examples/clone-repo/page.mdxsimilarity index 100%rename from apps/docs/src/app/examples/clone-repo/page.mdxrename to apps/docs/src/app/(docs)/docs/examples/clone-repo/page.mdxdiff --git a/apps/docs/src/app/getting-help/page.mdx b/apps/docs/src/app/(docs)/docs/getting-help/page.mdxsimilarity index 100%rename from apps/docs/src/app/getting-help/page.mdxrename to apps/docs/src/app/(docs)/docs/getting-help/page.mdxdiff --git a/apps/docs/src/app/getting-started/api-key/APIKey.tsx b/apps/docs/src/app/(docs)/docs/getting-started/api-key/APIKey.tsxsimilarity index 100%rename from apps/docs/src/app/getting-started/api-key/APIKey.tsxrename to apps/docs/src/app/(docs)/docs/getting-started/api-key/APIKey.tsxdiff --git a/apps/docs/src/app/getting-started/api-key/page.mdx b/apps/docs/src/app/(docs)/docs/getting-started/api-key/page.mdxsimilarity index 100%rename from apps/docs/src/app/getting-started/api-key/page.mdxrename to apps/docs/src/app/(docs)/docs/getting-started/api-key/page.mdxdiff --git a/apps/docs/src/app/getting-started/installation/page.mdx b/apps/docs/src/app/(docs)/docs/getting-started/installation/page.mdxsimilarity index 100%rename from apps/docs/src/app/getting-started/installation/page.mdxrename to apps/docs/src/app/(docs)/docs/getting-started/installation/page.mdxdiff --git a/apps/docs/src/app/guide/connect-bucket/page.mdx b/apps/docs/src/app/(docs)/docs/guide/connect-bucket/page.mdxsimilarity index 100%rename from apps/docs/src/app/guide/connect-bucket/page.mdxrename to apps/docs/src/app/(docs)/docs/guide/connect-bucket/page.mdxdiff --git a/apps/docs/src/app/guide/custom-sandbox/page.mdx b/apps/docs/src/app/(docs)/docs/guide/custom-sandbox/page.mdxsimilarity index 100%rename from apps/docs/src/app/guide/custom-sandbox/page.mdxrename to apps/docs/src/app/(docs)/docs/guide/custom-sandbox/page.mdxdiff --git a/apps/docs/src/app/hello-world/js/page.mdx b/apps/docs/src/app/(docs)/docs/hello-world/js/page.mdxsimilarity index 100%rename from apps/docs/src/app/hello-world/js/page.mdxrename to apps/docs/src/app/(docs)/docs/hello-world/js/page.mdxdiff --git a/apps/docs/src/app/hello-world/py/page.mdx b/apps/docs/src/app/(docs)/docs/hello-world/py/page.mdxsimilarity index 100%rename from apps/docs/src/app/hello-world/py/page.mdxrename to apps/docs/src/app/(docs)/docs/hello-world/py/page.mdxdiff --git a/apps/docs/src/app/layout.tsx b/apps/docs/src/app/(docs)/docs/layout.tsxsimilarity index 91%rename from apps/docs/src/app/layout.tsxrename to apps/docs/src/app/(docs)/docs/layout.tsxindex 91c8c2825..51b0e3a2e 100644--- a/apps/docs/src/app/layout.tsx+++ b/apps/docs/src/app/(docs)/docs/layout.tsx@@ -3,7 +3,7 @@ import { Metadata } from 'next'import glob from 'fast-glob'import { Analytics } from '@vercel/analytics/react'-import { Providers } from '@/app/providers'+import { Providers } from '@/app/(docs)/docs/providers'import { Layout } from '@/components/Layout'import '@/styles/tailwind.css'@@ -39,15 +39,15 @@ export const metadata: Metadata = {}export default async function RootLayout({ children }) {- const pages = await glob('**/*.mdx', { cwd: 'src/app' })+ const pages = await glob('**/*.mdx', { cwd: 'src/app/(docs)/docs' })const allSectionsEntries = (await Promise.all(pages.map(async filename => [- '/' + filename.replace(/(^|\/)page\.mdx$/, ''),+ '/docs/' + filename.replace(/\(docs\)\/?|(^|\/)page\.mdx$/, ''),(await import(`./${filename}`)).sections,]),)) as Array<[string, Array<Section>]>const allSections = Object.fromEntries(allSectionsEntries)-+return (<htmllang="en"diff --git a/apps/docs/src/app/open-source/page.mdx b/apps/docs/src/app/(docs)/docs/open-source/page.mdxsimilarity index 100%rename from apps/docs/src/app/open-source/page.mdxrename to apps/docs/src/app/(docs)/docs/open-source/page.mdxdiff --git a/apps/docs/src/app/page.mdx b/apps/docs/src/app/(docs)/docs/page.mdxsimilarity index 100%rename from apps/docs/src/app/page.mdxrename to apps/docs/src/app/(docs)/docs/page.mdxdiff --git a/apps/docs/src/app/pricing/Promo.tsx b/apps/docs/src/app/(docs)/docs/pricing/Promo.tsxsimilarity index 100%rename from apps/docs/src/app/pricing/Promo.tsxrename to apps/docs/src/app/(docs)/docs/pricing/Promo.tsxdiff --git a/apps/docs/src/app/pricing/SwitchToHobbyButton.tsx b/apps/docs/src/app/(docs)/docs/pricing/SwitchToHobbyButton.tsxsimilarity index 100%rename from apps/docs/src/app/pricing/SwitchToHobbyButton.tsxrename to apps/docs/src/app/(docs)/docs/pricing/SwitchToHobbyButton.tsxdiff --git a/apps/docs/src/app/pricing/SwitchToProButton.tsx b/apps/docs/src/app/(docs)/docs/pricing/SwitchToProButton.tsxsimilarity index 90%rename from apps/docs/src/app/pricing/SwitchToProButton.tsxrename to apps/docs/src/app/(docs)/docs/pricing/SwitchToProButton.tsxindex 1883a7563..bc5fef55e 100644--- a/apps/docs/src/app/pricing/SwitchToProButton.tsx+++ b/apps/docs/src/app/(docs)/docs/pricing/SwitchToProButton.tsx@@ -78,6 +78,14 @@ function SwitchTierButton() {Switch to Pro</Button>)}++ {(user.pricingTier.id === tiers.pro.id && !user.teams[0].team_billing[0].credit_card_added) && (+ <Button+ onClick={createCheckoutSession}+ >+ Add Credit Card+ </Button>+ )}</div>{error && (diff --git a/apps/docs/src/app/pricing/TierActiveTag.tsx b/apps/docs/src/app/(docs)/docs/pricing/TierActiveTag.tsxsimilarity index 100%rename from apps/docs/src/app/pricing/TierActiveTag.tsxrename to apps/docs/src/app/(docs)/docs/pricing/TierActiveTag.tsxdiff --git a/apps/docs/src/app/pricing/page.mdx b/apps/docs/src/app/(docs)/docs/pricing/page.mdxsimilarity index 100%rename from apps/docs/src/app/pricing/page.mdxrename to apps/docs/src/app/(docs)/docs/pricing/page.mdxdiff --git a/apps/docs/src/app/pricing/promo/route.ts b/apps/docs/src/app/(docs)/docs/pricing/promo/route.tssimilarity index 89%rename from apps/docs/src/app/pricing/promo/route.tsrename to apps/docs/src/app/(docs)/docs/pricing/promo/route.tsindex e0b7af912..8cfa87b57 100644--- a/apps/docs/src/app/pricing/promo/route.ts+++ b/apps/docs/src/app/(docs)/docs/pricing/promo/route.ts@@ -1,11 +1,20 @@import { NextResponse as Response } from 'next/server'import { createClient } from '@supabase/supabase-js'+// const NEXT_PUBLIC_SUPABASE_URL = 'http://127.0.0.1:54321'+// const SUPABASE_SERVICE_ROLE_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU'++const supabase = createClient(process.env.NEXT_PUBLIC_SUPABASE_URL!,process.env.SUPABASE_SERVICE_ROLE_KEY!,)+// const supabase = createClient(+// NEXT_PUBLIC_SUPABASE_URL,+// SUPABASE_SERVICE_ROLE_KEY,+// )+export const dynamic = 'force-dynamic' // defaults to force-staticexport async function POST(request: Request) {// Read json data from requestdiff --git a/apps/docs/src/app/providers.tsx b/apps/docs/src/app/(docs)/docs/providers.tsxsimilarity index 100%rename from apps/docs/src/app/providers.tsxrename to apps/docs/src/app/(docs)/docs/providers.tsxdiff --git a/apps/docs/src/app/sandbox/api/cwd/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/cwd/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/cwd/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/cwd/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/debugging/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/debugging/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/debugging/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/debugging/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/download/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/download/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/download/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/download/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/envs/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/envs/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/envs/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/envs/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/filesystem/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/filesystem/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/filesystem/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/filesystem/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/metadata/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/metadata/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/metadata/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/metadata/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/process/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/process/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/process/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/process/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/reconnect/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/reconnect/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/reconnect/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/reconnect/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/timeouts/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/timeouts/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/timeouts/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/timeouts/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/upload/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/upload/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/upload/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/upload/page.mdxdiff --git a/apps/docs/src/app/sandbox/api/url/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/url/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/api/url/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/api/url/page.mdxdiff --git a/apps/docs/src/app/sandbox/compute/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/compute/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/compute/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/compute/page.mdxdiff --git a/apps/docs/src/app/sandbox/custom/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/custom/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/custom/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/custom/page.mdxdiff --git a/apps/docs/src/app/sandbox/overview/features.tsx b/apps/docs/src/app/(docs)/docs/sandbox/overview/features.tsxsimilarity index 100%rename from apps/docs/src/app/sandbox/overview/features.tsxrename to apps/docs/src/app/(docs)/docs/sandbox/overview/features.tsxdiff --git a/apps/docs/src/app/sandbox/overview/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/overview/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/overview/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/overview/page.mdxdiff --git a/apps/docs/src/app/sandbox/templates/overview/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/templates/overview/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/templates/overview/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/templates/overview/page.mdxdiff --git a/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/templates/start-cmd/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/templates/start-cmd/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/templates/start-cmd/page.mdxdiff --git a/apps/docs/src/app/sandbox/templates/template-file/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/templates/template-file/page.mdxsimilarity index 100%rename from apps/docs/src/app/sandbox/templates/template-file/page.mdxrename to apps/docs/src/app/(docs)/docs/sandbox/templates/template-file/page.mdxdiff --git a/apps/docs/src/app/supported/page.mdx b/apps/docs/src/app/(docs)/docs/supported/page.mdxsimilarity index 100%rename from apps/docs/src/app/supported/page.mdxrename to apps/docs/src/app/(docs)/docs/supported/page.mdxdiff --git a/apps/docs/src/app/usage/Credits.tsx b/apps/docs/src/app/(docs)/docs/usage/Credits.tsxsimilarity index 100%rename from apps/docs/src/app/usage/Credits.tsxrename to apps/docs/src/app/(docs)/docs/usage/Credits.tsxdiff --git a/apps/docs/src/app/usage/page.mdx b/apps/docs/src/app/(docs)/docs/usage/page.mdxsimilarity index 100%rename from apps/docs/src/app/usage/page.mdxrename to apps/docs/src/app/(docs)/docs/usage/page.mdxdiff --git a/apps/docs/src/app/(main)/dashboard/page.tsx b/apps/docs/src/app/(main)/dashboard/page.tsxnew file mode 100644index 000000000..0f19dd1e5--- /dev/null+++ b/apps/docs/src/app/(main)/dashboard/page.tsx@@ -0,0 +1,134 @@+'use client'++import { useState } from 'react'+import { ChevronRight, CreditCard, LayoutPanelTop, LucideIcon, Package, PlusCircle, Settings, Users } from 'lucide-react'++import { GeneralContent } from '@/components/Dashboard/General'+import { BillingContent } from '@/components/Dashboard/Billing'+import { SandboxesContent } from '@/components/Dashboard/Sandboxes'++import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu'+++const menuLabels = ['General', 'Billing', 'Sandboxes', 'People', 'Templates'] as const+type MenuLabel = typeof menuLabels[number]++export default function Dashboard() {+ const [selectedItem, setSelectedItem] = useState<MenuLabel>('General')++ return (+ <div className="flex flex-row m-32">+ <Sidebar selectedItem={selectedItem} setSelectedItem={setSelectedItem} />+ <div className="flex-1 pl-10">+ <h2 className='text-2xl mb-2 font-bold'>{selectedItem}</h2>+ <div className='border border-white/5 w-full h-[1px] mb-10'/>+ <MainContent selectedItem={selectedItem} />+ </div>+ </div>+ )+}++const Sidebar = ({ selectedItem, setSelectedItem }) => (+ <div className="h-full w-48 space-y-2">++ <AccountSelectItem />++ <MenuItem+ icon={Settings}+ label="General"+ selected={selectedItem === 'General'}+ onClick={() => setSelectedItem('General')}+ />+ <MenuItem+ icon={CreditCard}+ label="Billing"+ selected={selectedItem === 'Billing'}+ onClick={() => setSelectedItem('Billing')}+ />+ <MenuItem+ icon={Package}+ label="Sandboxes"+ selected={selectedItem === 'Sandboxes'}+ onClick={() => setSelectedItem('Sandboxes')}+ />+ <MenuItem+ icon={Users}+ label="People"+ selected={selectedItem === 'People'}+ onClick={() => setSelectedItem('People')}+ />+ <MenuItem+ icon={LayoutPanelTop}+ label="Templates"+ selected={selectedItem === 'Templates'}+ onClick={() => setSelectedItem('Templates')}+ />+ </div>+)++const MenuItem = ({ icon: Icon, label , selected, onClick }: { icon: LucideIcon; label: MenuLabel; selected: boolean; onClick: () => void }) => (+ <div+ className={`flex w-full hover:bg-orange-500/30 hover:cursor-pointer rounded-lg items-center p-2 space-x-2 ${selected ? 'bg-orange-500/30' : ''}`}+ onClick={onClick}+ >+ <Icon width={20} height={20} />+ <p>{label}</p>+ </div>+)++const AccountSelectItem = () => {+ return(+ <DropdownMenu>+ <DropdownMenuTrigger+ className='dropdown-trigger group outline-none flex w-full items-center justify-between rounded-lg p-2 mb-6 hover:bg-zinc-800 hover:cursor-pointer'+ >+ <div className='flex items-start flex-col'>+ <h3 className='font-bold'>Default Team</h3>+ <p className='text-sm'>Team account</p>+ </div>+ <ChevronRight className='transform transition-transform duration-300 group-hover:rotate-90' />+++ </DropdownMenuTrigger>+ <DropdownMenuContent className='flex flex-col w-48 bg-zinc-900 border border-white/30'>+ <DropdownMenuItem>Personal Account</DropdownMenuItem>+ <DropdownMenuSeparator/>+ <DropdownMenuItem>Default Team</DropdownMenuItem>+ <DropdownMenuItem>Other Team</DropdownMenuItem>+ <DropdownMenuSeparator />+ <DropdownMenuItem className='flex items-center space-x-1'>+ <PlusCircle width={15} height={15} />+ <p>Create Team</p>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ )+}++const MainContent = ({ selectedItem }) => {+ switch (selectedItem) {+ case 'General':+ return <GeneralContent />+ case 'Billing':+ return <BillingContent />+ case 'Sandboxes':+ return <SandboxesContent />+ case 'People':+ return <PeopleContent />+ case 'Templates':+ return <TemplatesContent />+ default:+ return <ErrorContent />+ }+}++const PeopleContent = () => <div>People Content</div>+const TemplatesContent = () => <div>Templates Content</div>+const ErrorContent = () => <div>Error Content</div>+diff --git a/apps/docs/src/app/(main)/layout.tsx b/apps/docs/src/app/(main)/layout.tsxnew file mode 100644index 000000000..72d8440af--- /dev/null+++ b/apps/docs/src/app/(main)/layout.tsx@@ -0,0 +1,56 @@+import { Metadata } from 'next'+import { Analytics } from '@vercel/analytics/react'++import { Providers } from '@/app/(docs)/docs/providers'++import '@/styles/tailwind.css'+import { PostHogAnalytics } from '@/utils/usePostHog'+import Canonical from '@/components/Navigation/canonical'+import { LayoutMain } from '@/components/LayoutMain'+import { Toaster } from '@/components/ui/toaster'++export const metadata: Metadata = {+ // TODO: Add metadataBase+ // metadataBase: ''+ title: {+ template: '%s - E2B',+ default: 'E2B - Code Interpreting for AI apps',+ },+ description: 'Open-source secure sandboxes for AI code execution',+ twitter: {+ title: 'E2B - Code Interpreting for AI apps',+ description: 'Open-source secure sandboxes for AI code execution',+ },+ openGraph: {+ title: 'E2B - Code Interpreting for AI apps',+ description: 'Open-source secure sandboxes for AI code execution',+ },+}++export default async function RootLayout({ children }) {+++ return (+ <html+ lang="en"+ className="h-full"+ suppressHydrationWarning+ >+ <head>+ <Canonical />+ </head>+ <body className="flex min-h-full bg-white antialiased dark:bg-zinc-900">+ <Providers>+ <div className="w-full">+ <LayoutMain>+ {children}+ <Toaster />+ <PostHogAnalytics />+ <Analytics />+ </LayoutMain>+ </div>+ </Providers>+ </body>+ </html>+ )+}diff --git a/apps/docs/src/app/(main)/page.tsx b/apps/docs/src/app/(main)/page.tsxnew file mode 100644index 000000000..b339dec91--- /dev/null+++ b/apps/docs/src/app/(main)/page.tsx@@ -0,0 +1,69 @@+'use client'++import { BentoCard, BentoGrid } from '@/components/BentoGrid'+import { Button } from '@/components/Button'+import RetroGrid from '@/components/RetroGrid'++export default function Page() {+ return (+ <div className="flex flex-col w-full h-full">++ {/* Hero */}+ <div className="w-full h-screen flex justify-center items-center">++ <div className="flex flex-col z-10 space-y-5 items-center justify-center">+ <Button variant='outline'>We're hiring 👉</Button>+ <h1 className="font-bold p-2 text-6xl bg-clip-text text-transparent bg-gradient-to-r from-white to-orange-500 via-white to-[95%]">Code Interpreting for AI Apps</h1>+ <div className='flex space-x-4'>+ <Button variant='filled'>Sign Up</Button>+ <Button>Docs</Button>+ </div>+ </div>++ <RetroGrid />+ </div>++ {/* Features section */}+ <div className="w-full h-screen flex flex-col items-center bg-gradient-to-b to-90% from-black/50 to-transparent">+ <h1 className="font-bold pb-10 text-4xl">+ Try the Python & JS/TS SDKs+ </h1>+ <BentoGrid className="w-2/3 flex flex-col space-y-10 pb-10">+ <BentoCard+ name="Step 1"+ description="Install the Code Interpreter SDK"+ href="/"+ cta="Learn more"+ Icon={LockIcon}+ className="col-span-3 lg:col-span-1 "+ background={<Background />}+ />+ <BentoCard+ name="Step 2"+ description="Execute AI-generated code"+ href="/"+ cta="Learn more"+ Icon={LockIcon}+ className="col-span-3 lg:col-span-1"+ background={<Background />}+ />+ </BentoGrid>+ <Button variant='filled'>Get Started</Button>+ </div>++ </div>+ )+}++const LockIcon = () => <span className="text-neutral-400">1️⃣</span>++const Background = () => (+ <div className="w-full h-full flex flex-col items-center justify-center">+ <div className='flex m-2 border rounded-lg flex-col items-center justify-center'>+ {/* <code className="text-neutral-400 text-sm">+ {"import { CodeInterpreter } from '@e2b/code-interpreter'\nconst sandbox = await CodeInterpreter.create()\nawait sandbox.notebook.execCell(x = 1)"}+ </code> */}+ </div>+ </div>+)+diff --git a/apps/docs/src/app/(main)/sign-in/layout.tsx b/apps/docs/src/app/(main)/sign-in/layout.tsxnew file mode 100644index 000000000..a14e64fcd--- /dev/null+++ b/apps/docs/src/app/(main)/sign-in/layout.tsx@@ -0,0 +1,16 @@+export const metadata = {+ title: 'Next.js',+ description: 'Generated by Next.js',+}++export default function RootLayout({+ children,+}: {+ children: React.ReactNode+}) {+ return (+ <html lang="en">+ <body>{children}</body>+ </html>+ )+}diff --git a/apps/docs/src/app/sign-in/page.tsx b/apps/docs/src/app/(main)/sign-in/page.tsxsimilarity index 100%rename from apps/docs/src/app/sign-in/page.tsxrename to apps/docs/src/app/(main)/sign-in/page.tsxdiff --git a/apps/docs/src/components/BentoGrid.tsx b/apps/docs/src/components/BentoGrid.tsxnew file mode 100644index 000000000..8e1336910--- /dev/null+++ b/apps/docs/src/components/BentoGrid.tsx@@ -0,0 +1,78 @@+import { Button } from './Button'+import { cn } from '@/lib/utils'+// import { ArrowRightIcon } from '@radix-ui/react-icons'+import { ReactNode } from 'react'++const BentoGrid = ({+ children,+ className,+}: {+ children: ReactNode;+ className?: string;+}) => {+ return (+ <div+ className={cn(+ '',+ className,+ )}+ >+ {children}+ </div>+ )+}++const BentoCard = ({+ name,+ className,+ background,+ Icon,+ description,+ href,+ cta,+}: {+ name: string;+ className: string;+ background: React.ReactNode;+ Icon: any;+ description: string;+ href: string;+ cta: string;+}) => (+ <div+ key={name}+ className={cn(+ 'group relative col-span-3 flex flex-col justify-between overflow-hidden rounded-xl',+ // light styles+ 'bg-white [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)]',+ // dark styles+ 'transform-gpu dark:bg-black dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]',+ className,+ )}+ >+ <div>{background}</div>+ <div className="pointer-events-none z-10 flex transform-gpu flex-col gap-1 p-6 transition-all duration-300 group-hover:-translate-y-10">+ <Icon className="h-12 w-12 origin-left transform-gpu text-neutral-700 transition-all duration-300 ease-in-out group-hover:scale-75" />+ <h3 className="text-xl font-semibold text-neutral-700 dark:text-neutral-300">+ {name}+ </h3>+ <p className="max-w-lg text-neutral-400">{description}</p>+ </div>++ <div+ className={cn(+ 'pointer-events-none absolute bottom-0 flex w-full translate-y-10 transform-gpu flex-row items-center p-4 opacity-0 transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100',+ )}+ >+ <Button variant="outline" className="pointer-events-auto">+ <a href={href}>+ {cta}+ {/* <ArrowRightIcon className="ml-2 h-4 w-4" /> */}+ </a>+ </Button>+ </div>+ <div className="pointer-events-none absolute inset-0 transform-gpu transition-all duration-300 group-hover:bg-black/[.03] group-hover:dark:bg-neutral-800/10" />+ </div>+)++export { BentoCard, BentoGrid }diff --git a/apps/docs/src/components/Dashboard/Billing.tsx b/apps/docs/src/components/Dashboard/Billing.tsxnew file mode 100644index 000000000..152950d3b--- /dev/null+++ b/apps/docs/src/components/Dashboard/Billing.tsx@@ -0,0 +1,68 @@+import { ResponsiveBar } from '@nivo/bar'++export const BillingContent = () => {+ return (+ <div className="flex flex-col w-full h-full">+ <div>+ <h2 className='font-bold pb-10 text-xl'>Billing history</h2>+ </div>+ <BarChart className="aspect-[6/3] w-2/3"/>+ </div>+ )+}++function BarChart(props: any) {+ return (+ <div {...props}>+ <ResponsiveBar+ data={[+ { name: 'Jan', amount: 111 },+ { name: 'Feb', amount: 157 },+ { name: 'Mar', amount: 129 },+ { name: 'Apr', amount: 150 },+ { name: 'May', amount: 119 },+ { name: 'Jun', amount: 72 },+ ]}+ keys={['amount']}+ indexBy="name"+ margin={{ top: 0, right: 0, bottom: 40, left: 40 }}+ padding={0.2}+ colors={['#FFAF78']}+ axisBottom={{+ tickSize: 0,+ tickPadding: 16,+ }}+ axisLeft={{+ tickSize: 0,+ tickValues: 4,+ tickPadding: 16,+ }}+ gridYValues={4}+ theme={{+ tooltip: {+ chip: {+ borderRadius: '9999px',+ },+ container: {+ fontSize: '12px',+ borderRadius: '6px',+ color: 'black',+ },+ },+ grid: {+ line: {+ stroke: '#f3f4f6',+ },+ },+ }}+ borderRadius={4} // Apply a border radius to the top corners of the bars+ tooltipLabel={({ id }) => `${id}`}+ enableLabel={false}+ role="application"+ ariaLabel="A bar chart showing data"+ />+ </div>+ )+}++diff --git a/apps/docs/src/components/Dashboard/General.tsx b/apps/docs/src/components/Dashboard/General.tsxnew file mode 100644index 000000000..8ff8b78b9--- /dev/null+++ b/apps/docs/src/components/Dashboard/General.tsx@@ -0,0 +1,113 @@+'use client'++import { useState } from 'react'+import { useToast } from '../ui/use-toast'+import uuidv4 from 'uuid'+import { Copy, Delete } from 'lucide-react'+import { Button } from '../Button'++import {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+ AlertDialogTrigger,+} from '@/components/ui/alert-dialog'++const fakeApiKeys = [+ {+ id: '1',+ key: '3728621b-10ca-4153-99f5-e8b7080117f7',+ createdAt: '2022-10-04T04:45:00.000Z',+ updatedAt: '2022-10-04T04:45:00.000Z',+ },+ {+ id: '2',+ key: '16eea788-3927-4501-b5c5-b3eeb170bc38',+ createdAt: '2022-10-04T04:45:00.000Z',+ updatedAt: '2022-10-04T04:45:00.000Z',+ },+]++export const GeneralContent = () => {+ const { toast } = useToast()+ const [isDialogOpen, setIsDialogOpen] = useState(false)+ const [apiKeys, setApiKeys] = useState(fakeApiKeys)+ const [currentKeyId, setCurrentKeyId] = useState<string | null>(null)++ const closeDialog = () => setIsDialogOpen(false)+ const openDialog = (id: string) => {+ setCurrentKeyId(id)+ setIsDialogOpen(true)+ }++ const deleteApiKey = () => {+ setApiKeys(apiKeys.filter(apiKey => apiKey.id !== currentKeyId))+ closeDialog()+ }++ const addApiKey = () => {++ toast({+ title: 'API key created',+ })++ const newKey = {+ id: uuidv4(),+ key: uuidv4(),+ createdAt: new Date().toISOString(),+ updatedAt: new Date().toISOString(),+ }+ setApiKeys([...apiKeys, newKey])+ }+ return(+ <div className="flex flex-col w-full h-full">+ <div className="flex flex-col w-fit h-full">++ <h1 className="font-bold pb-10 text-xl">+ API Keys+ </h1>++ <p className='text-neutral-300 pb-2'>Active keys:</p>++ {apiKeys.map((apiKey) => (+ <div key={apiKey.id} className='flex w-full justify-between items-center border border-white/5 rounded-lg p-2 mb-4 space-x-4'>+ <div>{apiKey.key}</div>+ <div className='flex items-center space-x-2'>+ <Copy className='hover:cursor-pointer' width={18} height={18} />+ <Delete className='hover:cursor-pointer' color='red' width={20} height={20} onClick={() => openDialog(apiKey.id)} />+ </div>+ </div>+ ))}++ <Button className='w-fit' onClick={addApiKey}>Add API Key</Button>++ </div>++ <AlertDialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>+ <AlertDialogTrigger asChild>+ <Button variant="outline" style={{ display: 'none' }}>Show Dialog</Button>+ </AlertDialogTrigger>+ <AlertDialogContent className="bg-inherit text-white border-black">+ <AlertDialogHeader>+ <AlertDialogTitle>You are about to delete an API key</AlertDialogTitle>+ <AlertDialogDescription className='text-white/90'>+ This action cannot be undone. This will permanently delete the+ API key with immediate effect.+ </AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogCancel className='border-white/10' onClick={closeDialog}>Cancel</AlertDialogCancel>+ <AlertDialogAction className='bg-red-500 text-white hover:bg-red-600' onClick={deleteApiKey}>Continue</AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>++ </div>+ )+}+diff --git a/apps/docs/src/components/Dashboard/Sandboxes.tsx b/apps/docs/src/components/Dashboard/Sandboxes.tsxnew file mode 100644index 000000000..fc30d16b4--- /dev/null+++ b/apps/docs/src/components/Dashboard/Sandboxes.tsx@@ -0,0 +1,107 @@+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from '@/components/ui/table'++import { useState } from 'react'+import { useEffect } from 'react'++const fakeSandboxes = [+ {+ id: '1',+ template: 'base',+ cpuCount: 2,+ memoryMB: 512,+ startedAt: '2023-11-12T10:21:33.000Z',+ clientID: '1',+ },+ {+ id: '2',+ template: 'base',+ cpuCount: 2,+ memoryMB: 512,+ startedAt: '2023-05-16T10:01:23.000Z',+ clientID: '1',+ },+]++export const SandboxesContent = () => {+ const [runningSandboxes, setRunningSandboxes] = useState(fakeSandboxes)+ useSimulateSandboxLifecycle(runningSandboxes, setRunningSandboxes)++ return (+ <div className="flex flex-col justify-center">++ <h2 className="text-xl font-bold pb-4">Total Running Sandboxes: {runningSandboxes.length}</h2>++ <Table>+ <TableHeader>+ <TableRow className='hover:bg-orange-500/10 dark:hover:bg-orange-500/10 border-b border-white/5 '>+ <TableHead>ID</TableHead>+ <TableHead>Template</TableHead>+ <TableHead>CPU Count</TableHead>+ <TableHead>Memory (MB)</TableHead>+ <TableHead>Started At</TableHead>+ <TableHead>Client ID</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {runningSandboxes.map((sandbox) => (+ <TableRow+ className='hover:bg-orange-300/10 dark:hover:bg-orange-300/10 border-b border-white/5'+ key={sandbox.id}>+ <TableCell>{sandbox.id}</TableCell>+ <TableCell>{sandbox.template}</TableCell>+ <TableCell>{sandbox.cpuCount}</TableCell>+ <TableCell>{sandbox.memoryMB}</TableCell>+ <TableCell>{new Date(sandbox.startedAt).toLocaleString('en-UK', {timeZoneName: 'short'})}</TableCell>+ <TableCell>{sandbox.clientID}</TableCell>+ </TableRow>+ ))}+ </TableBody>+ </Table>++ </div>+ )+}++const useSimulateSandboxLifecycle = (runningSandboxes, setRunningSandboxes) => {+ useEffect(() => {+ const interval = setInterval(() => {+ setRunningSandboxes((prevSandboxes) => {+ // Decide randomly to add or remove a sandbox+ const shouldAdd = Math.random() > 0.5+ if (shouldAdd) {+ // Add a new sandbox+ const newSandbox = generateNewSandbox()+ return [...prevSandboxes, newSandbox]+ } else if (prevSandboxes.length > 0) {+ // Remove a random sandbox+ const randomIndex = Math.floor(Math.random() * prevSandboxes.length)+ return prevSandboxes.filter((_, index) => index !== randomIndex)+ }+ return prevSandboxes+ })+ }, 1000) // Run every second++ // Cleanup interval on component unmount+ return () => clearInterval(interval)+ }, [setRunningSandboxes])+}+++const generateNewSandbox = () => {+ return {+ id: (Math.random() * 10000).toFixed(0),+ template: 'base',+ cpuCount: Math.floor(Math.random() * 4) + 1,+ memoryMB: Math.floor(Math.random() * 2048) + 512,+ startedAt: new Date().toISOString(),+ clientID: (Math.random() * 10).toFixed(0),+ }+}+diff --git a/apps/docs/src/components/Dashboard/Usage.tsx b/apps/docs/src/components/Dashboard/Usage.tsxnew file mode 100644index 000000000..e69de29bbdiff --git a/apps/docs/src/components/Footer.tsx b/apps/docs/src/components/Footer.tsxindex a15e87bcc..ffcc2d179 100644--- a/apps/docs/src/components/Footer.tsx+++ b/apps/docs/src/components/Footer.tsx@@ -100,8 +100,7 @@ function SocialLink({function SmallPrint() {return (- <div- className="flex flex-col items-start items-center justify-between gap-5 border-t border-zinc-900/5 pt-8 dark:border-white/5 sm:flex-row">+ <div className="flex flex-col w-full items-center px-10 justify-between gap-5 pt-8 dark:border-white/5 sm:flex-row"><div className="flex flex-col items-center justify-start lg:items-start"><p className="text-xs text-zinc-600 dark:text-zinc-400">© FoundryLabs, Inc. {new Date().getFullYear()}. All rights reserved.@@ -142,3 +141,13 @@ export function Footer() {</footer>)}++export function FooterMain() {+ return (+ <footer className="flex w-full space-y-10 pb-16">+ <div className="flex flex-col w-full items-center justify-center border-t border-zinc-900/5 dark:border-white/5">+ <SmallPrint/>+ </div>+ </footer>+ )+}\ No newline at end of filediff --git a/apps/docs/src/components/HeaderMain.tsx b/apps/docs/src/components/HeaderMain.tsxnew file mode 100644index 000000000..ac4e7033f--- /dev/null+++ b/apps/docs/src/components/HeaderMain.tsx@@ -0,0 +1,58 @@+import { forwardRef } from 'react'+import Link from 'next/link'+import clsx from 'clsx'+import { motion, useScroll, useTransform } from 'framer-motion'+import { useIsInsideMobileNavigation } from '@/components/MobileNavigation'+import { Logo } from '@/components/Logo'+import { Auth } from '@/components/Auth'+import { HeaderSeparator } from '@/components/HeaderUtils'+++// @ts-ignore+export const HeaderMain = forwardRef(function Header({ className }, ref) {+ const isInsideMobileNavigation = useIsInsideMobileNavigation()+++ const { scrollY } = useScroll()+ const bgOpacityLight = useTransform(scrollY, [0, 72], [0.5, 0.9])+ const bgOpacityDark = useTransform(scrollY, [0, 72], [0.2, 0.8])++ return (+ <motion.div+ // @ts-ignore+ ref={ref}+ className={clsx(+ className,+ 'fixed inset-x-0 top-0 z-50 border border-zinc-900/5 dark:border-white/5 flex h-14 items-center justify-between gap-12 px-4 transition sm:px-6 lg:z-30 lg:px-8',+ !isInsideMobileNavigation && 'backdrop-blur-sm dark:backdrop-blur',+ )}+ style={+ {+ '--bg-opacity-light': bgOpacityLight,+ '--bg-opacity-dark': bgOpacityDark,+ } as React.CSSProperties+ }+ >+ <div className="relative top-1 hidden items-start justify-start lg:flex">+ <Link href="/" aria-label="Home">+ <Logo className="h-6" />+ </Link>+ </div>++ <div className="flex justify-center items-center space-x-5">++ <div className="flex items-center justify-center text-sm space-x-3 text-neutral-400">+ <p className='hover:text-white hover:cursor-pointer'>Changelog</p>+ <p className='hover:text-white hover:cursor-pointer'>Docs</p>+ <p className='hover:text-white hover:cursor-pointer'>Blog</p>+ </div>++ <div className="flex items-center gap-5">+ <HeaderSeparator />+ <Auth />+ </div>+ </div>++ </motion.div>+ )+})diff --git a/apps/docs/src/components/LayoutMain.tsx b/apps/docs/src/components/LayoutMain.tsxnew file mode 100644index 000000000..5a571eab0--- /dev/null+++ b/apps/docs/src/components/LayoutMain.tsx@@ -0,0 +1,41 @@+'use client'++import clsx from 'clsx'+import { usePathname } from 'next/navigation'++import { FooterMain } from '@/components/Footer'+import { Banner } from '@/components/Banner'+import { useUser } from '@/utils/useUser'+import { HeaderMain } from './HeaderMain'++export function LayoutMain({+ children,+}: {+ children: React.ReactNode+}) {+ const { user } = useUser()+ const pathname = usePathname()+ const relativePathname = pathname?.replace(new RegExp('^/docs'), '')+ const shouldShowBanner = user?.pricingTier.isPromo+ const isAuth = relativePathname?.startsWith('/sign-in')++ return (+ <div className={clsx('h-full w-full flex flex-col')}>++ {/* @ts-ignore */}+ <HeaderMain isAuth={isAuth} />+ {/* {!isAuth && <Navigation className="hidden lg:my-4 lg:block" />} */}++ {shouldShowBanner && <Banner />}++ <main className="w-full h-full flex flex-col">+ {children}+ </main>++ <FooterMain />++ </div>+ )+}++diff --git a/apps/docs/src/components/RetroGrid.tsx b/apps/docs/src/components/RetroGrid.tsxnew file mode 100644index 000000000..504cd2703--- /dev/null+++ b/apps/docs/src/components/RetroGrid.tsx@@ -0,0 +1,32 @@+import { cn } from '@/lib/utils'++export default function RetroGrid({ className }: { className?: string }) {+return (+ <div+ className={cn(+ 'pointer-events-none absolute h-full w-full overflow-hidden opacity-50 [perspective:200px]',+ className,+ )}+ >+ {/* Grid */}+ <div className="absolute inset-0 [transform:rotateX(35deg)]">+ <div+ className={cn(+ 'animate-grid',++ '[background-repeat:repeat] [background-size:60px_60px] [height:300vh] [inset:0%_0px] [margin-left:-50%] [transform-origin:100%_0_0] [width:600vw]',++ // Light Styles+ '[background-image:linear-gradient(to_right,rgba(0,0,0,0.3)_1px,transparent_0),linear-gradient(to_bottom,rgba(0,0,0,0.3)_1px,transparent_0)]',++ // Dark styles+ 'dark:[background-image:linear-gradient(to_right,rgba(255,255,255,0.2)_1px,transparent_0),linear-gradient(to_bottom,rgba(255,255,255,0.2)_1px,transparent_0)]',+ )}+ />+ </div>++ {/* Background Gradient */}+ <div className="absolute inset-0 bg-gradient-to-t from-white to-transparent to-90% dark:from-black" />+ </div>+)+}diff --git a/apps/docs/src/components/Search.tsx b/apps/docs/src/components/Search.tsxindex 294735232..d97769c0e 100644--- a/apps/docs/src/components/Search.tsx+++ b/apps/docs/src/components/Search.tsx@@ -54,7 +54,7 @@ function useAutocomplete({ close }: { close: () => void }) {React.KeyboardEvent>({id,- placeholder: 'Find something...',+ placeholder: 'Search in docs...',defaultActiveItemId: 0,onStateChange({ state }) {setAutocompleteState(state)@@ -467,7 +467,7 @@ export function Search() {{...buttonProps}><SearchIcon className="h-5 w-5 stroke-current"/>- Find something...+ Search in docs...<kbd className="ml-auto text-2xs text-zinc-400 dark:text-zinc-500"><kbd className="font-sans">{modifierKey}</kbd><kbd className="font-sans">K</kbd>@@ -491,7 +491,7 @@ export function MobileSearch() {<buttontype="button"className="flex h-6 w-6 items-center justify-center rounded-md transition hover:bg-zinc-900/5 ui-not-focus-visible:outline-none dark:hover:bg-white/5 lg:hidden"- aria-label="Find something..."+ aria-label="Search in docs..."{...buttonProps}><SearchIcon className="h-5 w-5 stroke-zinc-900 dark:stroke-white"/>diff --git a/apps/docs/src/components/ui/alert-dialog.tsx b/apps/docs/src/components/ui/alert-dialog.tsxnew file mode 100644index 000000000..25e7b4744--- /dev/null+++ b/apps/docs/src/components/ui/alert-dialog.tsx@@ -0,0 +1,141 @@+"use client"++import * as React from "react"+import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"++import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"++const AlertDialog = AlertDialogPrimitive.Root++const AlertDialogTrigger = AlertDialogPrimitive.Trigger++const AlertDialogPortal = AlertDialogPrimitive.Portal++const AlertDialogOverlay = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Overlay>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Overlay+ className={cn(+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",+ className+ )}+ {...props}+ ref={ref}+ />+))+AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName++const AlertDialogContent = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>+>(({ className, ...props }, ref) => (+ <AlertDialogPortal>+ <AlertDialogOverlay />+ <AlertDialogPrimitive.Content+ ref={ref}+ className={cn(+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",+ className+ )}+ {...props}+ />+ </AlertDialogPortal>+))+AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName++const AlertDialogHeader = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col space-y-2 text-center sm:text-left",+ className+ )}+ {...props}+ />+)+AlertDialogHeader.displayName = "AlertDialogHeader"++const AlertDialogFooter = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",+ className+ )}+ {...props}+ />+)+AlertDialogFooter.displayName = "AlertDialogFooter"++const AlertDialogTitle = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Title>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Title+ ref={ref}+ className={cn("text-lg font-semibold", className)}+ {...props}+ />+))+AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName++const AlertDialogDescription = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Description>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Description+ ref={ref}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+))+AlertDialogDescription.displayName =+ AlertDialogPrimitive.Description.displayName++const AlertDialogAction = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Action>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Action+ ref={ref}+ className={cn(buttonVariants(), className)}+ {...props}+ />+))+AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName++const AlertDialogCancel = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Cancel>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Cancel+ ref={ref}+ className={cn(+ buttonVariants({ variant: "outline" }),+ "mt-2 sm:mt-0",+ className+ )}+ {...props}+ />+))+AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName++export {+ AlertDialog,+ AlertDialogPortal,+ AlertDialogOverlay,+ AlertDialogTrigger,+ AlertDialogContent,+ AlertDialogHeader,+ AlertDialogFooter,+ AlertDialogTitle,+ AlertDialogDescription,+ AlertDialogAction,+ AlertDialogCancel,+}diff --git a/apps/docs/src/components/ui/button.tsx b/apps/docs/src/components/ui/button.tsxnew file mode 100644index 000000000..0ba427735--- /dev/null+++ b/apps/docs/src/components/ui/button.tsx@@ -0,0 +1,56 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const buttonVariants = cva(+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",+ {+ variants: {+ variant: {+ default: "bg-primary text-primary-foreground hover:bg-primary/90",+ destructive:+ "bg-destructive text-destructive-foreground hover:bg-destructive/90",+ outline:+ "border border-input bg-background hover:bg-accent hover:text-accent-foreground",+ secondary:+ "bg-secondary text-secondary-foreground hover:bg-secondary/80",+ ghost: "hover:bg-accent hover:text-accent-foreground",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-10 px-4 py-2",+ sm: "h-9 rounded-md px-3",+ lg: "h-11 rounded-md px-8",+ icon: "h-10 w-10",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++export interface ButtonProps+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,+ VariantProps<typeof buttonVariants> {+ asChild?: boolean+}++const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(+ ({ className, variant, size, asChild = false, ...props }, ref) => {+ const Comp = asChild ? Slot : "button"+ return (+ <Comp+ className={cn(buttonVariants({ variant, size, className }))}+ ref={ref}+ {...props}+ />+ )+ }+)+Button.displayName = "Button"++export { Button, buttonVariants }diff --git a/apps/docs/src/components/ui/card.tsx b/apps/docs/src/components/ui/card.tsxnew file mode 100644index 000000000..afa13ecfa--- /dev/null+++ b/apps/docs/src/components/ui/card.tsx@@ -0,0 +1,79 @@+import * as React from "react"++import { cn } from "@/lib/utils"++const Card = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn(+ "rounded-lg border bg-card text-card-foreground shadow-sm",+ className+ )}+ {...props}+ />+))+Card.displayName = "Card"++const CardHeader = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn("flex flex-col space-y-1.5 p-6", className)}+ {...props}+ />+))+CardHeader.displayName = "CardHeader"++const CardTitle = React.forwardRef<+ HTMLParagraphElement,+ React.HTMLAttributes<HTMLHeadingElement>+>(({ className, ...props }, ref) => (+ <h3+ ref={ref}+ className={cn(+ "text-2xl font-semibold leading-none tracking-tight",+ className+ )}+ {...props}+ />+))+CardTitle.displayName = "CardTitle"++const CardDescription = React.forwardRef<+ HTMLParagraphElement,+ React.HTMLAttributes<HTMLParagraphElement>+>(({ className, ...props }, ref) => (+ <p+ ref={ref}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+))+CardDescription.displayName = "CardDescription"++const CardContent = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />+))+CardContent.displayName = "CardContent"++const CardFooter = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn("flex items-center p-6 pt-0", className)}+ {...props}+ />+))+CardFooter.displayName = "CardFooter"++export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }diff --git a/apps/docs/src/components/ui/dropdown-menu.tsx b/apps/docs/src/components/ui/dropdown-menu.tsxnew file mode 100644index 000000000..34d0f110c--- /dev/null+++ b/apps/docs/src/components/ui/dropdown-menu.tsx@@ -0,0 +1,200 @@+'use client'++import * as React from 'react'+import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'+import { Check, ChevronRight, Circle } from 'lucide-react'++import { cn } from '@/lib/utils'++const DropdownMenu = DropdownMenuPrimitive.Root++const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger++const DropdownMenuGroup = DropdownMenuPrimitive.Group++const DropdownMenuPortal = DropdownMenuPrimitive.Portal++const DropdownMenuSub = DropdownMenuPrimitive.Sub++const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup++const DropdownMenuSubTrigger = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {+ inset?: boolean+ }+>(({ className, inset, children, ...props }, ref) => (+ <DropdownMenuPrimitive.SubTrigger+ ref={ref}+ className={cn(+ 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent',+ inset && 'pl-8',+ className+ )}+ {...props}+ >+ {children}+ <ChevronRight className="ml-auto h-4 w-4" />+ </DropdownMenuPrimitive.SubTrigger>+))+DropdownMenuSubTrigger.displayName =+ DropdownMenuPrimitive.SubTrigger.displayName++const DropdownMenuSubContent = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>+>(({ className, ...props }, ref) => (+ <DropdownMenuPrimitive.SubContent+ ref={ref}+ className={cn(+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',+ className+ )}+ {...props}+ />+))+DropdownMenuSubContent.displayName =+ DropdownMenuPrimitive.SubContent.displayName++const DropdownMenuContent = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>+>(({ className, sideOffset = 4, ...props }, ref) => (+ <DropdownMenuPrimitive.Portal>+ <DropdownMenuPrimitive.Content+ ref={ref}+ sideOffset={sideOffset}+ className={cn(+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',+ className+ )}+ {...props}+ />+ </DropdownMenuPrimitive.Portal>+))+DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName++const DropdownMenuItem = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <DropdownMenuPrimitive.Item+ ref={ref}+ className={cn(+ 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-orange-500/30 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',+ inset && 'pl-8',+ className+ )}+ {...props}+ />+))+DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName++const DropdownMenuCheckboxItem = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>+>(({ className, children, checked, ...props }, ref) => (+ <DropdownMenuPrimitive.CheckboxItem+ ref={ref}+ className={cn(+ 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',+ className+ )}+ checked={checked}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <Check className="h-4 w-4" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.CheckboxItem>+))+DropdownMenuCheckboxItem.displayName =+ DropdownMenuPrimitive.CheckboxItem.displayName++const DropdownMenuRadioItem = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>+>(({ className, children, ...props }, ref) => (+ <DropdownMenuPrimitive.RadioItem+ ref={ref}+ className={cn(+ 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',+ className+ )}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <Circle className="h-2 w-2 fill-current" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.RadioItem>+))+DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName++const DropdownMenuLabel = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Label>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <DropdownMenuPrimitive.Label+ ref={ref}+ className={cn(+ 'px-2 py-1.5 text-sm font-semibold',+ inset && 'pl-8',+ className+ )}+ {...props}+ />+))+DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName++const DropdownMenuSeparator = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <DropdownMenuPrimitive.Separator+ ref={ref}+ className={cn('-mx-1 my-1 h-px bg-white/20', className)}+ {...props}+ />+))+DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName++const DropdownMenuShortcut = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLSpanElement>) => {+ return (+ <span+ className={cn('ml-auto text-xs tracking-widest opacity-60', className)}+ {...props}+ />+ )+}+DropdownMenuShortcut.displayName = 'DropdownMenuShortcut'++export {+ DropdownMenu,+ DropdownMenuTrigger,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuCheckboxItem,+ DropdownMenuRadioItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuShortcut,+ DropdownMenuGroup,+ DropdownMenuPortal,+ DropdownMenuSub,+ DropdownMenuSubContent,+ DropdownMenuSubTrigger,+ DropdownMenuRadioGroup,+}diff --git a/apps/docs/src/components/ui/table.tsx b/apps/docs/src/components/ui/table.tsxnew file mode 100644index 000000000..7f3502f8b--- /dev/null+++ b/apps/docs/src/components/ui/table.tsx@@ -0,0 +1,117 @@+import * as React from "react"++import { cn } from "@/lib/utils"++const Table = React.forwardRef<+ HTMLTableElement,+ React.HTMLAttributes<HTMLTableElement>+>(({ className, ...props }, ref) => (+ <div className="relative w-full overflow-auto">+ <table+ ref={ref}+ className={cn("w-full caption-bottom text-sm", className)}+ {...props}+ />+ </div>+))+Table.displayName = "Table"++const TableHeader = React.forwardRef<+ HTMLTableSectionElement,+ React.HTMLAttributes<HTMLTableSectionElement>+>(({ className, ...props }, ref) => (+ <thead ref={ref} className={cn("[&_tr]:border-b", className)} {...props} />+))+TableHeader.displayName = "TableHeader"++const TableBody = React.forwardRef<+ HTMLTableSectionElement,+ React.HTMLAttributes<HTMLTableSectionElement>+>(({ className, ...props }, ref) => (+ <tbody+ ref={ref}+ className={cn("[&_tr:last-child]:border-0", className)}+ {...props}+ />+))+TableBody.displayName = "TableBody"++const TableFooter = React.forwardRef<+ HTMLTableSectionElement,+ React.HTMLAttributes<HTMLTableSectionElement>+>(({ className, ...props }, ref) => (+ <tfoot+ ref={ref}+ className={cn(+ "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",+ className+ )}+ {...props}+ />+))+TableFooter.displayName = "TableFooter"++const TableRow = React.forwardRef<+ HTMLTableRowElement,+ React.HTMLAttributes<HTMLTableRowElement>+>(({ className, ...props }, ref) => (+ <tr+ ref={ref}+ className={cn(+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",+ className+ )}+ {...props}+ />+))+TableRow.displayName = "TableRow"++const TableHead = React.forwardRef<+ HTMLTableCellElement,+ React.ThHTMLAttributes<HTMLTableCellElement>+>(({ className, ...props }, ref) => (+ <th+ ref={ref}+ className={cn(+ "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",+ className+ )}+ {...props}+ />+))+TableHead.displayName = "TableHead"++const TableCell = React.forwardRef<+ HTMLTableCellElement,+ React.TdHTMLAttributes<HTMLTableCellElement>+>(({ className, ...props }, ref) => (+ <td+ ref={ref}+ className={cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)}+ {...props}+ />+))+TableCell.displayName = "TableCell"++const TableCaption = React.forwardRef<+ HTMLTableCaptionElement,+ React.HTMLAttributes<HTMLTableCaptionElement>+>(({ className, ...props }, ref) => (+ <caption+ ref={ref}+ className={cn("mt-4 text-sm text-muted-foreground", className)}+ {...props}+ />+))+TableCaption.displayName = "TableCaption"++export {+ Table,+ TableHeader,+ TableBody,+ TableFooter,+ TableHead,+ TableRow,+ TableCell,+ TableCaption,+}diff --git a/apps/docs/src/components/ui/toast.tsx b/apps/docs/src/components/ui/toast.tsxnew file mode 100644index 000000000..3066803ab--- /dev/null+++ b/apps/docs/src/components/ui/toast.tsx@@ -0,0 +1,129 @@+'use client'++import * as React from 'react'+import * as ToastPrimitives from '@radix-ui/react-toast'+import { cva, type VariantProps } from 'class-variance-authority'+import { X } from 'lucide-react'++import { cn } from '@/lib/utils'++const ToastProvider = ToastPrimitives.Provider++const ToastViewport = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Viewport>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Viewport+ ref={ref}+ className={cn(+ 'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]',+ className+ )}+ {...props}+ />+))+ToastViewport.displayName = ToastPrimitives.Viewport.displayName++const toastVariants = cva(+ 'group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',+ {+ variants: {+ variant: {+ default: 'bg-orange-500/50 border border-white/20 text-foreground',+ destructive:+ 'destructive group border-destructive bg-destructive text-destructive-foreground',+ },+ },+ defaultVariants: {+ variant: 'default',+ },+ }+)++const Toast = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Root>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &+ VariantProps<typeof toastVariants>+>(({ className, variant, ...props }, ref) => {+ return (+ <ToastPrimitives.Root+ ref={ref}+ className={cn(toastVariants({ variant }), className)}+ {...props}+ />+ )+})+Toast.displayName = ToastPrimitives.Root.displayName++const ToastAction = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Action>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Action+ ref={ref}+ className={cn(+ 'inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive',+ className+ )}+ {...props}+ />+))+ToastAction.displayName = ToastPrimitives.Action.displayName++const ToastClose = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Close>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Close+ ref={ref}+ className={cn(+ 'absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',+ className+ )}+ toast-close=""+ {...props}+ >+ <X className="h-4 w-4" />+ </ToastPrimitives.Close>+))+ToastClose.displayName = ToastPrimitives.Close.displayName++const ToastTitle = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Title>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Title+ ref={ref}+ className={cn('text-sm font-semibold', className)}+ {...props}+ />+))+ToastTitle.displayName = ToastPrimitives.Title.displayName++const ToastDescription = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Description>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Description+ ref={ref}+ className={cn('text-sm opacity-90', className)}+ {...props}+ />+))+ToastDescription.displayName = ToastPrimitives.Description.displayName++type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>++type ToastActionElement = React.ReactElement<typeof ToastAction>++export {+ type ToastProps,+ type ToastActionElement,+ ToastProvider,+ ToastViewport,+ Toast,+ ToastTitle,+ ToastDescription,+ ToastClose,+ ToastAction,+}diff --git a/apps/docs/src/components/ui/toaster.tsx b/apps/docs/src/components/ui/toaster.tsxnew file mode 100644index 000000000..e2233852a--- /dev/null+++ b/apps/docs/src/components/ui/toaster.tsx@@ -0,0 +1,35 @@+"use client"++import {+ Toast,+ ToastClose,+ ToastDescription,+ ToastProvider,+ ToastTitle,+ ToastViewport,+} from "@/components/ui/toast"+import { useToast } from "@/components/ui/use-toast"++export function Toaster() {+ const { toasts } = useToast()++ return (+ <ToastProvider>+ {toasts.map(function ({ id, title, description, action, ...props }) {+ return (+ <Toast key={id} {...props}>+ <div className="grid gap-1">+ {title && <ToastTitle>{title}</ToastTitle>}+ {description && (+ <ToastDescription>{description}</ToastDescription>+ )}+ </div>+ {action}+ <ToastClose />+ </Toast>+ )+ })}+ <ToastViewport />+ </ToastProvider>+ )+}diff --git a/apps/docs/src/components/ui/use-toast.ts b/apps/docs/src/components/ui/use-toast.tsnew file mode 100644index 000000000..02e111d81--- /dev/null+++ b/apps/docs/src/components/ui/use-toast.ts@@ -0,0 +1,194 @@+"use client"++// Inspired by react-hot-toast library+import * as React from "react"++import type {+ ToastActionElement,+ ToastProps,+} from "@/components/ui/toast"++const TOAST_LIMIT = 1+const TOAST_REMOVE_DELAY = 1000000++type ToasterToast = ToastProps & {+ id: string+ title?: React.ReactNode+ description?: React.ReactNode+ action?: ToastActionElement+}++const actionTypes = {+ ADD_TOAST: "ADD_TOAST",+ UPDATE_TOAST: "UPDATE_TOAST",+ DISMISS_TOAST: "DISMISS_TOAST",+ REMOVE_TOAST: "REMOVE_TOAST",+} as const++let count = 0++function genId() {+ count = (count + 1) % Number.MAX_SAFE_INTEGER+ return count.toString()+}++type ActionType = typeof actionTypes++type Action =+ | {+ type: ActionType["ADD_TOAST"]+ toast: ToasterToast+ }+ | {+ type: ActionType["UPDATE_TOAST"]+ toast: Partial<ToasterToast>+ }+ | {+ type: ActionType["DISMISS_TOAST"]+ toastId?: ToasterToast["id"]+ }+ | {+ type: ActionType["REMOVE_TOAST"]+ toastId?: ToasterToast["id"]+ }++interface State {+ toasts: ToasterToast[]+}++const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()++const addToRemoveQueue = (toastId: string) => {+ if (toastTimeouts.has(toastId)) {+ return+ }++ const timeout = setTimeout(() => {+ toastTimeouts.delete(toastId)+ dispatch({+ type: "REMOVE_TOAST",+ toastId: toastId,+ })+ }, TOAST_REMOVE_DELAY)++ toastTimeouts.set(toastId, timeout)+}++export const reducer = (state: State, action: Action): State => {+ switch (action.type) {+ case "ADD_TOAST":+ return {+ ...state,+ toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),+ }++ case "UPDATE_TOAST":+ return {+ ...state,+ toasts: state.toasts.map((t) =>+ t.id === action.toast.id ? { ...t, ...action.toast } : t+ ),+ }++ case "DISMISS_TOAST": {+ const { toastId } = action++ // ! Side effects ! - This could be extracted into a dismissToast() action,+ // but I'll keep it here for simplicity+ if (toastId) {+ addToRemoveQueue(toastId)+ } else {+ state.toasts.forEach((toast) => {+ addToRemoveQueue(toast.id)+ })+ }++ return {+ ...state,+ toasts: state.toasts.map((t) =>+ t.id === toastId || toastId === undefined+ ? {+ ...t,+ open: false,+ }+ : t+ ),+ }+ }+ case "REMOVE_TOAST":+ if (action.toastId === undefined) {+ return {+ ...state,+ toasts: [],+ }+ }+ return {+ ...state,+ toasts: state.toasts.filter((t) => t.id !== action.toastId),+ }+ }+}++const listeners: Array<(state: State) => void> = []++let memoryState: State = { toasts: [] }++function dispatch(action: Action) {+ memoryState = reducer(memoryState, action)+ listeners.forEach((listener) => {+ listener(memoryState)+ })+}++type Toast = Omit<ToasterToast, "id">++function toast({ ...props }: Toast) {+ const id = genId()++ const update = (props: ToasterToast) =>+ dispatch({+ type: "UPDATE_TOAST",+ toast: { ...props, id },+ })+ const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })++ dispatch({+ type: "ADD_TOAST",+ toast: {+ ...props,+ id,+ open: true,+ onOpenChange: (open) => {+ if (!open) dismiss()+ },+ },+ })++ return {+ id: id,+ dismiss,+ update,+ }+}++function useToast() {+ const [state, setState] = React.useState<State>(memoryState)++ React.useEffect(() => {+ listeners.push(setState)+ return () => {+ const index = listeners.indexOf(setState)+ if (index > -1) {+ listeners.splice(index, 1)+ }+ }+ }, [state])++ return {+ ...state,+ toast,+ dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),+ }+}++export { useToast, toast }diff --git a/apps/docs/src/utils/useUser.tsx b/apps/docs/src/utils/useUser.tsxindex 3df8bae0b..e845474de 100644--- a/apps/docs/src/utils/useUser.tsx+++ b/apps/docs/src/utils/useUser.tsx@@ -12,6 +12,9 @@ type Team = {tier: stringis_default: booleanemail: string+ team_billing: {+ credit_card_added: boolean+ }[]}type UserContextType = {@@ -101,7 +104,7 @@ export const CustomUserContextProvider = (props) => {// @ts-ignoreconst { data: userTeams, teamsError } = await supabase.from('users_teams')- .select('teams (id, name, is_default, tier, email)')+ .select('teams (id, name, is_default, tier, email, team_billing (credit_card_added))').eq('user_id', session?.user.id) // Due to RLS, we could also safely just fetch all, but let's be explicit for sureif (teamsError) Sentry.captureException(teamsError)diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e7f63a62f..4f7dddda3 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -51,9 +51,24 @@ importers:'@next/mdx':specifier: ^13.0.3version: 13.5.1(@mdx-js/[email protected])(@mdx-js/[email protected])+ '@nivo/bar':+ specifier: ^0.87.0+ version: 0.87.0([email protected])([email protected])+ '@radix-ui/react-alert-dialog':+ specifier: ^1.0.5+ version: 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-dropdown-menu':+ specifier: ^2.0.6+ version: 2.0.6(@types/[email protected])(@types/[email protected])([email protected])([email protected])'@radix-ui/react-popover':specifier: ^1.0.6version: 1.0.6(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-slot':+ specifier: ^1.0.2+ version: 1.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-toast':+ specifier: ^1.1.5+ version: 1.1.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])'@sentry/nextjs':specifier: ^7.64.0@@ -189,6 +204,9 @@ importers:usehooks-ts:specifier: ^2.9.1version: 2.9.1([email protected])([email protected])+ uuid:+ specifier: ^9.0.1+ version: 9.0.1zustand:specifier: ^4.3.2version: 4.4.1(@types/[email protected])([email protected])@@ -232,10 +250,10 @@ importers:devDependencies:'@types/node':specifier: latest- version: 20.12.11+ version: 20.12.12'@types/react':specifier: latest- version: 18.3.1+ version: 18.3.2'@types/react-dom':specifier: latestversion: 18.3.0@@ -1649,6 +1667,140 @@ packages:dev: falseoptional: true+ resolution: {integrity: sha512-4Xk/soEmi706iOKszjX1EcGLBNIvhMifCYXOuLIFlMAXqhw1x2YS7PxickVSskdSzJCwJX4NgQ/R/9u6nxc5OA==}+ peerDependencies:+ react: '>= 16.14.0 < 19.0.0'+ dependencies:+ '@nivo/colors': 0.87.0([email protected])([email protected])+ '@nivo/core': 0.87.0([email protected])([email protected])+ '@react-spring/web': 9.7.3([email protected])([email protected])+ lodash: 4.17.21+ react: 18.2.0+ transitivePeerDependencies:+ - react-dom+ dev: false++ resolution: {integrity: sha512-zCRBfiRKJi+xOxwxH5Pxq/8+yv3fAYDl4a1F2Ssnp5gMIobwzVsdearvsm5B04e9bfy3ZXTL7KgbkEkSAwu6SA==}+ peerDependencies:+ react: '>= 16.14.0 < 19.0.0'+ dependencies:+ '@nivo/core': 0.87.0([email protected])([email protected])+ '@nivo/scales': 0.87.0+ '@react-spring/web': 9.7.3([email protected])([email protected])+ '@types/d3-format': 1.4.5+ '@types/d3-time-format': 2.3.4+ d3-format: 1.4.5+ d3-time-format: 3.0.0+ react: 18.2.0+ transitivePeerDependencies:+ - react-dom+ dev: false++ resolution: {integrity: sha512-r/MEVCNAHKfmsy1Fb+JztVczOhIEtAx4VFs2XUbn9YpEDgxydavUJyfoy5/nGq6h5jG1/t47cfB4nZle7c0fyQ==}+ peerDependencies:+ react: '>= 16.14.0 < 19.0.0'+ dependencies:+ '@nivo/annotations': 0.87.0([email protected])([email protected])+ '@nivo/axes': 0.87.0([email protected])([email protected])+ '@nivo/colors': 0.87.0([email protected])([email protected])+ '@nivo/core': 0.87.0([email protected])([email protected])+ '@nivo/legends': 0.87.0([email protected])([email protected])+ '@nivo/scales': 0.87.0+ '@nivo/tooltip': 0.87.0([email protected])([email protected])+ '@react-spring/web': 9.7.3([email protected])([email protected])+ '@types/d3-scale': 4.0.8+ '@types/d3-shape': 3.1.6+ d3-scale: 4.0.2+ d3-shape: 3.2.0+ lodash: 4.17.21+ react: 18.2.0+ transitivePeerDependencies:+ - react-dom+ dev: false++ resolution: {integrity: sha512-S4pZzRGKK23t8XAjQMhML6wwsfKO9nH03xuyN4SvCodNA/Dmdys9xV+9Dg/VILTzvzsBTBGTX0dFBg65WoKfVg==}+ peerDependencies:+ react: '>= 16.14.0 < 19.0.0'+ dependencies:+ '@nivo/core': 0.87.0([email protected])([email protected])+ '@types/d3-color': 3.1.3+ '@types/d3-scale': 4.0.8+ '@types/d3-scale-chromatic': 3.0.3+ '@types/prop-types': 15.7.6+ d3-color: 3.1.0+ d3-scale: 4.0.2+ d3-scale-chromatic: 3.1.0+ lodash: 4.17.21+ prop-types: 15.8.1+ react: 18.2.0+ transitivePeerDependencies:+ - react-dom+ dev: false++ resolution: {integrity: sha512-yEQWJn7QjWnbmCZccBCo4dligNyNyz3kgyV9vEtcaB1iGeKhg55RJEAlCOul+IDgSCSPFci2SxTmipE6LZEZCg==}+ peerDependencies:+ react: '>= 16.14.0 < 19.0.0'+ dependencies:+ '@nivo/tooltip': 0.87.0([email protected])([email protected])+ '@react-spring/web': 9.7.3([email protected])([email protected])+ '@types/d3-shape': 3.1.6+ d3-color: 3.1.0+ d3-format: 1.4.5+ d3-interpolate: 3.0.1+ d3-scale: 4.0.2+ d3-scale-chromatic: 3.1.0+ d3-shape: 3.2.0+ d3-time-format: 3.0.0+ lodash: 4.17.21+ prop-types: 15.8.1+ react: 18.2.0+ transitivePeerDependencies:+ - react-dom+ dev: false++ resolution: {integrity: sha512-bVJCeqEmK4qHrxNaPU/+hXUd/yaKlcQ0yrsR18ewoknVX+pgvbe/+tRKJ+835JXlvRijYIuqwK1sUJQIxyB7oA==}+ peerDependencies:+ react: '>= 16.14.0 < 19.0.0'+ dependencies:+ '@nivo/colors': 0.87.0([email protected])([email protected])+ '@nivo/core': 0.87.0([email protected])([email protected])+ '@types/d3-scale': 4.0.8+ d3-scale: 4.0.2+ react: 18.2.0+ transitivePeerDependencies:+ - react-dom+ dev: false++ /@nivo/[email protected]:+ resolution: {integrity: sha512-IHdY9w2em/xpWurcbhUR3cUA1dgbY06rU8gmA/skFCwf3C4Da3Rqwr0XqvxmkDC+EdT/iFljMbLst7VYiCnSdw==}+ dependencies:+ '@types/d3-scale': 4.0.8+ '@types/d3-time': 1.1.4+ '@types/d3-time-format': 3.0.4+ d3-scale: 4.0.2+ d3-time: 1.1.0+ d3-time-format: 3.0.0+ lodash: 4.17.21+ dev: false++ resolution: {integrity: sha512-nZJWyRIt/45V/JBdJ9ksmNm1LFfj59G1Dy9wB63Icf2YwyBT+J+zCzOGXaY7gxCxgF1mnSL3dC7fttcEdXyN/g==}+ peerDependencies:+ react: '>= 16.14.0 < 19.0.0'+ dependencies:+ '@nivo/core': 0.87.0([email protected])([email protected])+ '@react-spring/web': 9.7.3([email protected])([email protected])+ react: 18.2.0+ transitivePeerDependencies:+ - react-dom+ dev: false+/@nodelib/[email protected]:resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}engines: {node: '>= 8'}@@ -1917,6 +2069,32 @@ packages:'@babel/runtime': 7.22.15dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-OrVIOcZL0tl6xibeuGt5/+UxoT2N27KCFOPjFyfXMnchxSHZ/OW7cCX2nGlIYJrbHK/fczPcFzAwvNBB6XBNMA==}+ 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.22.15+ '@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-dialog': 1.0.5(@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])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ 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-wSP+pHsB/jQRaL6voubsQ/ZlrGBHHrOjmBnr19hxYgtS0WvAFwZhK2WP/YY5yF9uKECCEEDGxuLxq1NBK51wFA==}peerDependencies:@@ -1938,6 +2116,30 @@ packages: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-3SzW+0PW7yBBoQlT8wNcGtaxaD0XSu0uLUFgrtHY08Acx05TaHaOmVLR73c0j/cqpDy53KBMO7s0dx2wmOIDIA==}+ 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.22.15+ '@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-slot': 1.0.2(@types/[email protected])([email protected])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+resolution: {integrity: sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==}peerDependencies:@@ -1966,6 +2168,54 @@ packages:react: 18.2.0dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-GjWJX/AUpB703eEBanuBnIWdIXg6NvJFCXcNlSZk4xdszCdhrJgBoUd1cGk67vFO+WdA2pfI/plOpqz/5GUP6Q==}+ 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.22.15+ '@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.48+ '@types/react-dom': 18.2.7+ 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])+ dev: false++ resolution: {integrity: sha512-RXcvnXgyvYvBEOhCBuddKecVkoMiI10Jcm5cTI7abJRAHYfFxeu+FBQs/DvdxSYucxR5mna0dNsL6QFlds5TMA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ dependencies:+ '@babel/runtime': 7.22.15+ '@types/react': 18.2.48+ react: 18.2.0+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-7UpBa/RKMoHJYjie1gkF1DlK8l1fdU/VKDpoS3rCCo8YBJR294GwcEHyxHw72yvphJ7ld0AXEcSLAzY2F/WyCg==}peerDependencies:@@ -1991,6 +2241,58 @@ packages: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-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g==}+ 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.22.15+ '@radix-ui/primitive': 1.0.1+ '@radix-ui/react-compose-refs': 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-escape-keydown': 1.0.3(@types/[email protected])([email protected])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ 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-i6TuFOoWmLWq+M/eCLGd/bQ2HfAX1RJgvrBQ6AQLmzfvsLdefxbWu8G9zczcPFfcSPehz9GcpF6K9QYreFV8hA==}+ 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.22.15+ '@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-id': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.0.6(@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-use-controllable-state': 1.0.1(@types/[email protected])([email protected])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+resolution: {integrity: sha512-Rect2dWbQ8waGzhMavsIbmSVCgYxkXLxxR3ZvCX79JOglzdEy4JXMb98lq4hPxUbLr77nP0UOGf4rcMU+s1pUA==}peerDependencies:@@ -2028,6 +2330,29 @@ packages: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:+ '@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.22.15+ '@radix-ui/react-compose-refs': 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])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+resolution: {integrity: sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==}peerDependencies:@@ -2043,6 +2368,44 @@ packages:react: 18.2.0dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-BVkFLS+bUC8HcImkRKPSiVumA1VPOOEC5WBMiT+QAVsPzW1FJzI9KnqgGxVDPBcql5xXrHkD3JOVoXWEXD8SYA==}+ 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.22.15+ '@radix-ui/primitive': 1.0.1+ '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([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-direction': 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-popper': 1.1.3(@types/[email protected])(@types/[email protected])([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-roving-focus': 1.0.4(@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-callback-ref': 1.0.1(@types/[email protected])([email protected])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ 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])+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-cZ4defGpkZ0qTRtlIBzJLSzL6ht7ofhhW4i1+pkemjV1IKXm0wgCRnee154qlV6r9Ttunmh2TNZhMfV2bavUyA==}peerDependencies:@@ -2108,6 +2471,36 @@ packages: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-cKpopj/5RHZWjrbF2846jBNacjQVwkP068DfmgrNJXpvVWrOvlAmE9xSiy5OqeE+Gi8D9fP+oDhUnPqNMY8/5w==}+ 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.22.15+ '@floating-ui/react-dom': 2.0.2([email protected])([email protected])+ '@radix-ui/react-arrow': 1.0.3(@types/[email protected])(@types/[email protected])([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.48+ '@types/react-dom': 18.2.7+ 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-xLYZeHrWoPmA5mEKEfZZevoVRK/Q43GfzRXkWV6qawIWWK8t6ifIiLQdd7rmQ4Vk1bmI21XhqF9BN3jWf+phpA==}peerDependencies:@@ -2129,6 +2522,27 @@ packages: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:+ '@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.22.15+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ 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-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==}peerDependencies:@@ -2172,6 +2586,35 @@ packages: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-2mUg5Mgcu001VkGy+FfzZyzbmuUWzgWkj3rvv4yu+mLw03+mTzbxZHvfcGyFp2b8EkQeMkpRQ5FiA2Vr2O6TeQ==}+ 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.22.15+ '@radix-ui/primitive': 1.0.1+ '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([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-direction': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 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-controllable-state': 1.0.1(@types/[email protected])([email protected])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+resolution: {integrity: sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==}peerDependencies:@@ -2187,6 +2630,38 @@ packages:react: 18.2.0dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-fRLn227WHIBRSzuRzGJ8W+5YALxofH23y0MlPLddaIpLpCDqdE0NZlS2NRQDRiptfxDeeCjgFIpexB1/zkxDlw==}+ 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.22.15+ '@radix-ui/primitive': 1.0.1+ '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([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-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([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-use-callback-ref': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 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-visually-hidden': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+resolution: {integrity: sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==}peerDependencies:@@ -2275,12 +2750,81 @@ packages:react: 18.2.0dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ 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.22.15+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@types/react': 18.2.48+ '@types/react-dom': 18.2.7+ 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.22.15dev: false+ /@react-spring/[email protected]([email protected]):+ resolution: {integrity: sha512-5CWeNJt9pNgyvuSzQH+uy2pvTg8Y4/OisoscZIR8/ZNLIOI+CatFBhGZpDGTF/OzdNFsAoGk3wiUYTwoJ0YIvw==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0+ dependencies:+ '@react-spring/shared': 9.7.3([email protected])+ '@react-spring/types': 9.7.3+ react: 18.2.0+ dev: false++ /@react-spring/[email protected]([email protected]):+ resolution: {integrity: sha512-IqFdPVf3ZOC1Cx7+M0cXf4odNLxDC+n7IN3MDcVCTIOSBfqEcBebSv+vlY5AhM0zw05PDbjKrNmBpzv/AqpjnQ==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0+ dependencies:+ '@react-spring/animated': 9.7.3([email protected])+ '@react-spring/shared': 9.7.3([email protected])+ '@react-spring/types': 9.7.3+ react: 18.2.0+ dev: false++ /@react-spring/[email protected]([email protected]):+ resolution: {integrity: sha512-NEopD+9S5xYyQ0pGtioacLhL2luflh6HACSSDUZOwLHoxA5eku1UPuqcJqjwSD6luKjjLfiLOspxo43FUHKKSA==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0+ dependencies:+ '@react-spring/types': 9.7.3+ react: 18.2.0+ dev: false++ /@react-spring/[email protected]:+ resolution: {integrity: sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==}+ dev: false++ resolution: {integrity: sha512-BXt6BpS9aJL/QdVqEIX9YoUy8CE6TJrU0mNCqSoxdXlIeNcEBWOfIyE6B14ENNsyQKS3wOWkiJfco0tCr/9tUg==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0+ react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0+ dependencies:+ '@react-spring/animated': 9.7.3([email protected])+ '@react-spring/core': 9.7.3([email protected])+ '@react-spring/shared': 9.7.3([email protected])+ '@react-spring/types': 9.7.3+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+/@rollup/[email protected]([email protected]):resolution: {integrity: sha512-0w0wyykzdyRRPHOb0cQt14mIBLujfAv6GgP6g8nvg/iBxEm112t3YPPq+Buqe2+imvElTka+bjNlJ/gB56TD8g==}engines: {node: '>=14.0.0'}@@ -2830,6 +3374,50 @@ packages:resolution: {integrity: sha512-ML2U2xzN6PwCh1I6QgWI3TdzS7CRLsv5DSCLX4/Wfg+f30JF60WgS9ZbVOOrTk+N67WTCSUKm6Q7k6M/BjbXQw==}dev: true+ /@types/[email protected]:+ resolution: {integrity: sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==}+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-mLxrC1MSWupOSncXN/HOlWUAAIffAEBaI4+PKy2uMPsKe4FNZlk7qrbTjmzJXITQQqBHivaks4Td18azgqnotA==}+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-P2dlU/q51fkOc/Gfl3Ul9kicV7l+ra934qBFXCFhrZMOL6du1TM0pm1ThYvENukyOn5h9v+yMJ9Fn5JK4QozrQ==}+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-laXM4+1o5ImZv3RpFAsTRn3TEkzqkytiOY0Dz0sq5cnd1dtNlk6sHLon4OvqaiJb28T0S/TdsBI3Sjsy+keJrw==}+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-gkK1VVTr5iNiYJ7vWDI+yUFFlszhNMtVeneJ6lUTKPjprsvLLI9/tgEGiXJOnlINJA8FyA88gfnQsHbybVZrYQ==}+ dependencies:+ '@types/d3-time': 3.0.3+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-5KKk5aKGu2I+O6SONMYSNflgiP0WfZIQvVUMan50wHsLG1G94JlxEVnCpQARfTtzytuY0p/9PXXZb3I7giofIA==}+ dependencies:+ '@types/d3-path': 3.1.0+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-xdDXbpVO74EvadI3UDxjxTdR6QIxm1FKzEA/+F8tL4GWWUg/hgvBqf6chql64U5A9ZUGWo7pEu4eNlyLwbKdhg==}+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-or9DiDnYI1h38J9hxKEsw513+KVuFbEVhl7qdxcaudoiqWWepapUen+2vAriFGexr6W5+P4l9+HJrB39GG+oRg==}+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-JIvy2HjRInE+TXOmIGN5LCmeO0hkFZx5f9FZ7kiN+D+YTcc8pptsiLiuHsvwxwC7VVKmJ2ExHUgNlAiV7vQM9g==}+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-2p6olUZ4w3s+07q3Tm2dbiMZy5pCDfYwtLXXHUnVzXgQlZ/OyPtUz6OL382BkOuGlLXqfT+wqv8Fw2v8/0geBw==}+ dev: false+/@types/[email protected]:resolution: {integrity: sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==}dependencies:@@ -2891,7 +3479,7 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==}dependencies:- '@types/node': 18.18.6+ '@types/node': 20.12.12dev: false/@types/[email protected]:@@ -2917,12 +3505,12 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w==}+ dev: true- /@types/[email protected]:- resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==}+ /@types/[email protected]:+ resolution: {integrity: sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==}dependencies:undici-types: 5.26.5- dev: true/@types/[email protected]:resolution: {integrity: sha512-HksnYH4Ljr4VQgEy2lTStbCKv/P590tmPe5HqOnv9Gprffgv5WXAY+Y5Gqniu0GGqeTCUdBnzC3QSrzPkBkAMA==}@@ -2960,7 +3548,7 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==}dependencies:- '@types/react': 18.3.1+ '@types/react': 18.3.2dev: true/@types/[email protected]:@@ -2977,8 +3565,8 @@ packages:csstype: 3.1.2dev: false- /@types/[email protected]:- resolution: {integrity: sha512-V0kuGBX3+prX+DQ/7r2qsv1NsdfnCLnTgnRJ1pYnxykBhGMz+qj+box5lq7XsO5mtZsBqpjwwTu/7wszPfMBcw==}+ /@types/[email protected]:+ resolution: {integrity: sha512-Btgg89dAnqD4vV7R3hlwOxgqobUQKgx3MmrQRi0yYbs/P0ym8XozIAlkqVilPqHQwXs4e9Tf63rrCgl58BcO4w==}dependencies:'@types/prop-types': 15.7.6csstype: 3.1.2@@ -2987,7 +3575,7 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-/4YQT5Kp6HxUDb4yhRkm0bJ7TbjvTddqX7PZ5hz6qV3pxSo72f/6YPRo+Mu2DU307tm9IioO69l7uAwn5XNcFA==}dependencies:- '@types/node': 18.18.6+ '@types/node': 20.12.12dev: false/@types/[email protected]:@@ -3000,7 +3588,7 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==}dependencies:- '@types/node': 18.18.6+ '@types/node': 20.12.12dev: true/@types/[email protected]:@@ -3017,13 +3605,13 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-JXkliwz93B2cMWOI1ukElQBPN88vMg3CruvW4KVSKpflt3NyNCJImnhIuB/f97rG7kakqRJGFiwkA895Kn02Dg==}dependencies:- '@types/node': 18.18.6+ '@types/node': 20.12.12dev: false/@types/[email protected]:resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==}dependencies:- '@types/node': 18.18.6+ '@types/node': 20.12.12dev: true/@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):@@ -4585,6 +5173,101 @@ packages:stream-transform: 2.1.3dev: false+ resolution: {integrity: sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==}+ dependencies:+ internmap: 1.0.1+ dev: false++ resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==}+ engines: {node: '>=12'}+ dependencies:+ internmap: 2.0.3+ dev: false++ resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==}+ engines: {node: '>=12'}+ dev: false++ resolution: {integrity: sha512-J0piedu6Z8iB6TbIGfZgDzfXxUFN3qQRMofy2oPdXzQibYGqPB/9iMcxr/TGalU+2RsyDO+U4f33id8tbnSRMQ==}+ dev: false++ resolution: {integrity: sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==}+ engines: {node: '>=12'}+ dev: false++ resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==}+ engines: {node: '>=12'}+ dependencies:+ d3-color: 3.1.0+ dev: false++ resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==}+ engines: {node: '>=12'}+ dev: false++ resolution: {integrity: sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==}+ engines: {node: '>=12'}+ dependencies:+ d3-color: 3.1.0+ d3-interpolate: 3.0.1+ dev: false++ resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==}+ engines: {node: '>=12'}+ dependencies:+ d3-array: 3.2.4+ d3-format: 3.1.0+ d3-interpolate: 3.0.1+ d3-time: 3.1.0+ d3-time-format: 4.1.0+ dev: false++ resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==}+ engines: {node: '>=12'}+ dependencies:+ d3-path: 3.1.0+ dev: false++ resolution: {integrity: sha512-UXJh6EKsHBTjopVqZBhFysQcoXSv/5yLONZvkQ5Kk3qbwiUYkdX17Xa1PT6U1ZWXGGfB1ey5L8dKMlFq2DO0Ag==}+ dependencies:+ d3-time: 2.1.1+ dev: false++ resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==}+ engines: {node: '>=12'}+ dependencies:+ d3-time: 3.1.0+ dev: false++ resolution: {integrity: sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==}+ dev: false++ resolution: {integrity: sha512-/eIQe/eR4kCQwq7yxi7z4c6qEXf2IYGcjoWB5OOQy4Tq9Uv39/947qlDcN2TLkiTzQWzvnsuYPB9TrWaNfipKQ==}+ dependencies:+ d3-array: 2.12.1+ dev: false++ resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==}+ engines: {node: '>=12'}+ dependencies:+ d3-array: 3.2.4+ dev: false+resolution: {integrity: sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==}dependencies:@@ -6380,6 +7063,15 @@ packages:has: 1.0.3side-channel: 1.0.4+ resolution: {integrity: sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==}+ dev: false++ resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==}+ engines: {node: '>=12'}+ dev: false+resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==}dependencies:@@ -6763,7 +7455,7 @@ packages:resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}engines: {node: '>= 10.13.0'}dependencies:- '@types/node': 18.18.6+ '@types/node': 20.12.12merge-stream: 2.0.0supports-color: 8.1.1dev: false@@ -10755,7 +11447,6 @@ packages:resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}- dev: trueresolution: {integrity: sha512-OG+QOf0fTLtazL9P9X7yqWxQ+Z0395Wk6DSkyTxtaq3wQEjIroVe7Y4asCX/vcCxYpNGMnwz8F0qbRYUoaQVMw==}@@ -11013,6 +11704,11 @@ packages:resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}+ resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}+ hasBin: true+ dev: false+resolution: {integrity: sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==}engines: {node: '>=8'}@@ -11067,7 +11763,7 @@ packages:vfile-message: 3.1.4dev: false- /[email protected](@types/[email protected]):+ /[email protected](@types/[email protected]):resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==}engines: {node: '>=v14.18.0'}hasBin: true@@ -11077,7 +11773,7 @@ packages:mlly: 1.4.2pathe: 1.1.1picocolors: 1.0.0- vite: 4.5.0(@types/[email protected])+ vite: 4.5.0(@types/[email protected])transitivePeerDependencies:- '@types/node'- less@@ -11089,7 +11785,7 @@ packages:- terserdev: true- /[email protected](@types/[email protected]):+ /[email protected](@types/[email protected]):resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==}engines: {node: ^14.18.0 || >=16.0.0}hasBin: true@@ -11117,7 +11813,7 @@ packages:terser:optional: truedependencies:- '@types/node': 18.18.6+ '@types/node': 20.12.12esbuild: 0.18.20postcss: 8.4.31rollup: 3.29.4@@ -11158,7 +11854,7 @@ packages:dependencies:'@types/chai': 4.3.9'@types/chai-subset': 1.3.4- '@types/node': 18.18.6+ '@types/node': 20.12.12'@vitest/expect': 0.34.6'@vitest/runner': 0.34.6'@vitest/snapshot': 0.34.6@@ -11177,8 +11873,8 @@ packages:strip-literal: 1.3.0tinybench: 2.5.1tinypool: 0.7.0- vite: 4.5.0(@types/[email protected])- vite-node: 0.34.6(@types/[email protected])+ vite: 4.5.0(@types/[email protected])+ vite-node: 0.34.6(@types/[email protected])why-is-node-running: 2.2.2transitivePeerDependencies:- lessdiff --git a/supabase/seed.sql b/supabase/seed.sqlindex 81d49c4d6..53302307f 100644--- a/supabase/seed.sql+++ b/supabase/seed.sql@@ -4,11 +4,11 @@INSERT INTO auth.users (instance_id, id, aud, role, email, encrypted_password, email_confirmed_at, invited_at, confirmation_token, confirmation_sent_at, recovery_token, recovery_sent_at, email_change_token_new, email_change, email_change_sent_at, last_sign_in_at, raw_app_meta_data, raw_user_meta_data, is_super_admin, created_at, updated_at, phone, phone_confirmed_at, phone_change, phone_change_token, phone_change_sent_at, email_change_token_current, email_change_confirm_status, banned_until, reauthentication_token, reauthentication_sent_at)VALUES- ('00000000-0000-0000-0000-000000000000', '5899f99d-a449-4bfa-8769-19c097aaf1f5', 'authenticated', 'authenticated', '[email protected]', '$2a$10$yLZXHGHl7mgJ.Ax3cBhQ6uJ77CBuqTkt3EnF2hj26KAgMuBPUWekS', '2022-10-04 03:41:27.39308+00', NULL, '', NULL, '', NULL, '', '', NULL, NULL, '{"provider": "email", "providers": ["email"]}', '{}', NULL, '2022-10-04 03:41:27.391146+00', '2022-10-04 03:41:27.39308+00', NULL, NULL, '', '', NULL, '', 0, NULL, '', NULL);+ ('00000000-0000-0000-0000-000000000000', '5899f99d-a449-4bfa-8769-19c097aaf1f5', 'authenticated', 'authenticated', '[email protected]', '$2a$12$1f9CpolPKQUmH7.wyiq3deC9NdXd6AqpiMSOdmVYT4XbW4VxrfMK6', '2022-10-04 03:41:27.39308+00', NULL, '', NULL, '', NULL, '', '', NULL, NULL, '{"provider": "email", "providers": ["email"]}', '{}', NULL, '2022-10-04 03:41:27.391146+00', '2022-10-04 03:41:27.39308+00', NULL, NULL, '', '', NULL, '', 0, NULL, '', NULL);-INSERT INTO auth.identities (id,user_id,identity_data,provider,last_sign_in_at,created_at,updated_at)+INSERT INTO auth.identities (id, user_id, identity_data, provider, provider_id, last_sign_in_at, created_at, updated_at)VALUES- ('5899f99d-a449-4bfa-8769-19c097aaf1f5', '5899f99d-a449-4bfa-8769-19c097aaf1f5'::uuid, '{"sub": "5899f99d-a449-4bfa-8769-19c097aaf1f5"}', 'email', '2022-10-04 04:45:00.000+00', '2022-10-04 03:41:27.391146+00', '2022-10-04 03:41:27.39308+00');+ ('5899f99d-a449-4bfa-8769-19c097aaf1f5', '5899f99d-a449-4bfa-8769-19c097aaf1f5'::uuid, '{"sub": "5899f99d-a449-4bfa-8769-19c097aaf1f5"}', 'email', 'email_provider_id', '2022-10-04 04:45:00.000+00', '2022-10-04 03:41:27.391146+00', '2022-10-04 03:41:27.39308+00');INSERT INTO "public"."teams" (id, created_at, name, is_default)VALUES ('21d2e330-95fa-4b78-b677-47d0713de3da', NOW(), '[email protected]', true);