OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
feat: dashboard v2, esm, upgrades (#211)
Carl-Gerhard Lindesvärd81a7e5d62ec2
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.ymlindex 7db238c49..227352ece 100644--- a/.github/workflows/docker-build.yml+++ b/.github/workflows/docker-build.yml@@ -106,6 +106,16 @@ jobs:- name: Checkout repositoryuses: actions/checkout@v4+ - name: Generate tags+ id: tags+ run: |+ # Sanitize branch name by replacing / with -+ BRANCH_NAME=$(echo "${{ github.ref_name }}" | sed 's/\//-/g')+ # Get first 4 characters of commit SHA+ SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-4)+ echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT+ echo "short_sha=$SHORT_SHA" >> $GITHUB_OUTPUT+- name: Set up Docker Buildxuses: docker/setup-buildx-action@v3@@ -125,8 +135,7 @@ jobs:cache-from: type=ghacache-to: type=gha,mode=maxtags: |- ghcr.io/${{ env.repo_owner }}/api:latest- ghcr.io/${{ env.repo_owner }}/api:${{ github.sha }}+ ghcr.io/${{ env.repo_owner }}/api:${{ steps.tags.outputs.branch_name }}-${{ steps.tags.outputs.short_sha }}build-args: |DATABASE_URL=postgresql://dummy:dummy@localhost:5432/dummy@@ -140,6 +149,16 @@ jobs:- name: Checkout repositoryuses: actions/checkout@v4+ - name: Generate tags+ id: tags+ run: |+ # Sanitize branch name by replacing / with -+ BRANCH_NAME=$(echo "${{ github.ref_name }}" | sed 's/\//-/g')+ # Get first 4 characters of commit SHA+ SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-4)+ echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT+ echo "short_sha=$SHORT_SHA" >> $GITHUB_OUTPUT+- name: Set up Docker Buildxuses: docker/setup-buildx-action@v3@@ -159,7 +178,6 @@ jobs:cache-from: type=ghacache-to: type=gha,mode=maxtags: |- ghcr.io/${{ env.repo_owner }}/worker:latest- ghcr.io/${{ env.repo_owner }}/worker:${{ github.sha }}+ ghcr.io/${{ env.repo_owner }}/worker:${{ steps.tags.outputs.branch_name }}-${{ steps.tags.outputs.short_sha }}build-args: |DATABASE_URL=postgresql://dummy:dummy@localhost:5432/dummydiff --git a/.gitignore b/.gitignoreindex 96b7ab033..c2f170218 100644--- a/.gitignore+++ b/.gitignore@@ -1,4 +1,5 @@.secrets+packages/db/src/generated/prisma# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignorepackages/sdk/profileId.txt@@ -168,6 +169,9 @@ dist.vscode-test+# Wrangler build artifacts and cache+.wrangler/+# yarn v2.yarn/cachediff --git a/apps/api/Dockerfile b/apps/api/Dockerfileindex 292eda4ca..a4efad54d 100644--- a/apps/api/Dockerfile+++ b/apps/api/Dockerfile@@ -1,4 +1,4 @@-ARG NODE_VERSION=20.15.1+ARG NODE_VERSION=22.20.0FROM node:${NODE_VERSION}-slim AS base@@ -43,6 +43,7 @@ COPY packages/constants/package.json packages/constants/COPY packages/validation/package.json packages/validation/COPY packages/integrations/package.json packages/integrations/COPY packages/sdks/sdk/package.json packages/sdks/sdk/+COPY patches ./patches# BUILDFROM base AS build@@ -66,6 +67,8 @@ RUN pnpm codegen && \# PRODFROM base AS prod+ENV npm_config_build_from_source=true+RUN apt-get update && apt-get install -y --no-install-recommends \python3 \make \@@ -75,12 +78,14 @@ WORKDIR /appCOPY --from=build /app/package.json ./COPY --from=build /app/pnpm-lock.yaml ./RUN pnpm install --frozen-lockfile --prod && \+ pnpm rebuild && \pnpm store prune# FINALFROM base AS runnerENV NODE_ENV=production+ENV npm_config_build_from_source=trueWORKDIR /app@@ -106,6 +111,7 @@ COPY --from=build /app/packages/sdks/sdk ./packages/sdks/sdkCOPY --from=build /app/packages/constants ./packages/constantsCOPY --from=build /app/packages/validation ./packages/validationCOPY --from=build /app/packages/integrations ./packages/integrations+COPY --from=build /app/tooling/typescript ./tooling/typescriptRUN pnpm db:codegenWORKDIR /app/apps/apidiff --git a/apps/api/package.json b/apps/api/package.jsonindex 068143916..e42cc2435 100644--- a/apps/api/package.json+++ b/apps/api/package.json@@ -1,11 +1,12 @@{"name": "@openpanel/api","version": "0.0.4",+ "type": "module","scripts": {- "dev": "dotenv -e ../../.env -c -v WATCH=1 tsup",+ "dev": "dotenv -e ../../.env -c -v WATCH=1 tsdown","testing": "API_PORT=3333 pnpm dev",- "start": "node dist/index.js",- "build": "rm -rf dist && tsup",+ "start": "dotenv -e ../../.env node dist/index.js",+ "build": "rm -rf dist && tsdown","gen:bots": "jiti scripts/get-bots.ts && biome format --write src/bots/bots.ts","typecheck": "tsc --noEmit"},@@ -31,15 +32,13 @@"@openpanel/redis": "workspace:*","@openpanel/trpc": "workspace:*","@openpanel/validation": "workspace:*",- "@trpc/server": "^10.45.2",+ "@trpc/server": "^11.6.0","ai": "^4.2.10",- "bcrypt": "^5.1.1","fast-json-stable-hash": "^1.0.3","fastify": "^5.2.1","fastify-metrics": "^12.1.0","fastify-raw-body": "^5.0.0","groupmq": "1.0.0-next.19",- "ico-to-png": "^0.2.2","jsonwebtoken": "^9.0.2","ramda": "^0.29.1","request-ip": "^3.3.0",@@ -65,7 +64,7 @@"@types/uuid": "^10.0.0","@types/ws": "^8.5.14","js-yaml": "^4.1.0",- "tsup": "^7.2.0",- "typescript": "^5.2.2"+ "tsdown": "^0.14.2",+ "typescript": "catalog:"}}diff --git a/apps/api/scripts/get-bots.ts b/apps/api/scripts/get-bots.tsindex f72561ffd..992a0fe2b 100644--- a/apps/api/scripts/get-bots.ts+++ b/apps/api/scripts/get-bots.ts@@ -1,5 +1,10 @@import fs from 'node:fs';import path from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);import yaml from 'js-yaml';async function main() {diff --git a/apps/api/scripts/mock.ts b/apps/api/scripts/mock.tsindex 0e61a55ef..a4bdbf7c3 100644--- a/apps/api/scripts/mock.ts+++ b/apps/api/scripts/mock.ts@@ -493,9 +493,11 @@ async function main() {const [type, file = 'mock-basic.json'] = process.argv.slice(2);switch (type) {- case 'send':- await triggerEvents(require(`./${file}`));+ case 'send': {+ const data = await import(`./${file}`, { assert: { type: 'json' } });+ await triggerEvents(data.default);break;+ }case 'sim':await simultaneousRequests();break;diff --git a/apps/api/src/controllers/ai.controller.ts b/apps/api/src/controllers/ai.controller.tsindex 20631af64..6162d0362 100644--- a/apps/api/src/controllers/ai.controller.ts+++ b/apps/api/src/controllers/ai.controller.ts@@ -112,7 +112,7 @@ export async function chat(await db.chat.create({data: {- messages: messagesToSave.slice(-10),+ messages: messagesToSave.slice(-10) as any,projectId,},});diff --git a/apps/api/src/controllers/misc.controller.ts b/apps/api/src/controllers/misc.controller.tsindex 99323e33c..e441b4842 100644--- a/apps/api/src/controllers/misc.controller.ts+++ b/apps/api/src/controllers/misc.controller.ts@@ -1,53 +1,231 @@+import crypto from 'node:crypto';import { logger } from '@/utils/logger';import { parseUrlMeta } from '@/utils/parseUrlMeta';import type { FastifyReply, FastifyRequest } from 'fastify';-import icoToPng from 'ico-to-png';import sharp from 'sharp';import { getClientIp } from '@/utils/get-client-ip';-import { createHash } from '@openpanel/common/server';import { TABLE_NAMES, ch, chQuery, formatClickhouseDate } from '@openpanel/db';import { getGeoLocation } from '@openpanel/geo';-import { cacheable, getCache, getRedisCache } from '@openpanel/redis';+import { getCache, getRedisCache } from '@openpanel/redis';interface GetFaviconParams {url: string;}-async function getImageBuffer(url: string) {+// Configuration+const TTL_SECONDS = 60 * 60 * 24; // 24h+const MAX_BYTES = 1_000_000; // 1MB cap+const USER_AGENT = 'OpenPanel-FaviconProxy/1.0 (+https://openpanel.dev)';++// Helper functions+function createCacheKey(url: string, prefix = 'favicon'): string {+ const hash = crypto.createHash('sha256').update(url).digest('hex');+ return `${prefix}:v2:${hash}`;+}++function validateUrl(raw?: string): URL | null {+ try {+ if (!raw) throw new Error('Missing ?url');+ const url = new URL(raw);+ if (url.protocol !== 'http:' && url.protocol !== 'https:') {+ throw new Error('Only http/https URLs are allowed');+ }+ return url;+ } catch (error) {+ return null;+ }+}++// Binary cache functions (more efficient than base64)+async function getFromCacheBinary(+ key: string,+): Promise<{ buffer: Buffer; contentType: string } | null> {+ const redis = getRedisCache();+ const [bufferBase64, contentType] = await Promise.all([+ redis.get(key),+ redis.get(`${key}:ctype`),+ ]);++ if (!bufferBase64 || !contentType) return null;+ return { buffer: Buffer.from(bufferBase64, 'base64'), contentType };+}++async function setToCacheBinary(+ key: string,+ buffer: Buffer,+ contentType: string,+): Promise<void> {+ const redis = getRedisCache();+ await Promise.all([+ redis.set(key, buffer.toString('base64'), 'EX', TTL_SECONDS),+ redis.set(`${key}:ctype`, contentType, 'EX', TTL_SECONDS),+ ]);+}++// Fetch image with timeout and size limits+async function fetchImage(+ url: URL,+): Promise<{ buffer: Buffer; contentType: string; status: number }> {+ const controller = new AbortController();+ const timeout = setTimeout(() => controller.abort(), 10000); // 10s timeout+try {- const res = await fetch(url);- const contentType = res.headers.get('content-type');+ const response = await fetch(url.toString(), {+ redirect: 'follow',+ signal: controller.signal,+ headers: {+ 'user-agent': USER_AGENT,+ accept: 'image/*,*/*;q=0.8',+ },+ });++ clearTimeout(timeout);- if (!contentType?.includes('image')) {- return null;+ if (!response.ok) {+ return {+ buffer: Buffer.alloc(0),+ contentType: 'text/plain',+ status: response.status,+ };}- if (!res.ok) {- return null;+ // Size guard+ const contentLength = Number(response.headers.get('content-length') ?? '0');+ if (contentLength > MAX_BYTES) {+ throw new Error(`Remote file too large: ${contentLength} bytes`);}- if (contentType === 'image/x-icon' || url.endsWith('.ico')) {- const arrayBuffer = await res.arrayBuffer();- const buffer = Buffer.from(arrayBuffer);- return await icoToPng(buffer, 30);+ const arrayBuffer = await response.arrayBuffer();+ const buffer = Buffer.from(arrayBuffer);++ // Additional size check for actual content+ if (buffer.length > MAX_BYTES) {+ throw new Error('Remote file exceeded size limit');}- return await sharp(await res.arrayBuffer())+ const contentType =+ response.headers.get('content-type') || 'application/octet-stream';+ return { buffer, contentType, status: 200 };+ } catch (error) {+ clearTimeout(timeout);+ return { buffer: Buffer.alloc(0), contentType: 'text/plain', status: 500 };+ }+}++// Check if URL is an ICO file+function isIcoFile(url: string, contentType?: string): boolean {+ return url.toLowerCase().endsWith('.ico') || contentType === 'image/x-icon';+}+function isSvgFile(url: string, contentType?: string): boolean {+ return url.toLowerCase().endsWith('.svg') || contentType === 'image/svg+xml';+}++// Process image with Sharp (resize to 30x30 PNG)+async function processImage(+ buffer: Buffer,+ originalUrl?: string,+ contentType?: string,+): Promise<Buffer> {+ // If it's an ICO file, just return it as-is (no conversion needed)+ if (originalUrl && isIcoFile(originalUrl, contentType)) {+ logger.info('Serving ICO file directly', {+ originalUrl,+ bufferSize: buffer.length,+ });+ return buffer;+ }++ if (originalUrl && isSvgFile(originalUrl, contentType)) {+ logger.info('Serving SVG file directly', {+ originalUrl,+ bufferSize: buffer.length,+ });+ return buffer;+ }++ // If buffer isnt to big just return it as well+ if (buffer.length < 5000) {+ logger.info('Serving image directly without processing', {+ originalUrl,+ bufferSize: buffer.length,+ });+ return buffer;+ }++ try {+ // For other formats, process with Sharp+ return await sharp(buffer).resize(30, 30, {fit: 'cover',}).png().toBuffer();} catch (error) {- logger.error('Failed to get image from url', {- error,- url,+ logger.warn('Sharp failed to process image, trying fallback', {+ error: error instanceof Error ? error.message : 'Unknown error',+ originalUrl,+ bufferSize: buffer.length,+ });++ // If Sharp fails, try to create a simple fallback image+ return createFallbackImage();+ }+}++// Create a simple transparent fallback image when Sharp can't process the original+function createFallbackImage(): Buffer {+ // 1x1 transparent PNG+ return Buffer.from(+ 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=',+ 'base64',+ );+}++// Process OG image with Sharp (resize to 300px width)+async function processOgImage(+ buffer: Buffer,+ originalUrl?: string,+ contentType?: string,+): Promise<Buffer> {+ // If buffer is small enough, return it as-is+ if (buffer.length < 10000) {+ logger.info('Serving OG image directly without processing', {+ originalUrl,+ bufferSize: buffer.length,+ });+ return buffer;+ }++ try {+ // For OG images, process with Sharp to 300px width, maintaining aspect ratio+ return await sharp(buffer)+ .resize(300, null, {+ fit: 'inside',+ withoutEnlargement: true,+ })+ .png()+ .toBuffer();+ } catch (error) {+ logger.warn('Sharp failed to process OG image, trying fallback', {+ error: error instanceof Error ? error.message : 'Unknown error',+ originalUrl,+ bufferSize: buffer.length,});++ // If Sharp fails, try to create a simple fallback image+ return createFallbackImage();}}-const imageExtensions = ['svg', 'png', 'jpg', 'jpeg', 'gif', 'webp', 'ico'];+// Check if URL is a direct image+function isDirectImage(url: URL): boolean {+ const imageExtensions = ['svg', 'png', 'jpg', 'jpeg', 'gif', 'webp', 'ico'];+ return (+ imageExtensions.some((ext) => url.pathname.endsWith(`.${ext}`)) ||+ url.toString().includes('googleusercontent.com')+ );+}export async function getFavicon(request: FastifyRequest<{@@ -55,68 +233,110 @@ export async function getFavicon(}>,reply: FastifyReply,) {- function sendBuffer(buffer: Buffer, cacheKey?: string) {- if (cacheKey) {- getRedisCache().set(`favicon:${cacheKey}`, buffer.toString('base64'));+ try {+ const url = validateUrl(request.query.url);+ if (!url) {+ return createFallbackImage();}- reply.header('Cache-Control', 'public, max-age=604800');- reply.header('Expires', new Date(Date.now() + 604800000).toUTCString());- reply.type('image/png');- return reply.send(buffer);- }- if (!request.query.url) {- return reply.status(404).send('Not found');- }+ const cacheKey = createCacheKey(url.toString());- const url = decodeURIComponent(request.query.url);+ // Check cache first+ const cached = await getFromCacheBinary(cacheKey);+ if (cached) {+ reply.header('Content-Type', cached.contentType);+ reply.header('Cache-Control', 'public, max-age=604800, immutable');+ return reply.send(cached.buffer);+ }- if (imageExtensions.find((ext) => url.endsWith(ext))) {- const cacheKey = createHash(url, 32);- const cache = await getRedisCache().get(`favicon:${cacheKey}`);- if (cache) {- return sendBuffer(Buffer.from(cache, 'base64'));+ let imageUrl: URL;++ // If it's a direct image URL, use it directly+ if (isDirectImage(url)) {+ imageUrl = url;+ } else {+ // For website URLs, extract favicon from HTML+ const meta = await parseUrlMeta(url.toString());+ if (meta?.favicon) {+ imageUrl = new URL(meta.favicon);+ } else {+ // Fallback to Google's favicon service+ const { hostname } = url;+ imageUrl = new URL(+ `https://www.google.com/s2/favicons?domain=${hostname}&sz=256`,+ );+ }}- const buffer = await getImageBuffer(url);- if (buffer && buffer.byteLength > 0) {- return sendBuffer(buffer, cacheKey);++ // Fetch the image+ const { buffer, contentType, status } = await fetchImage(imageUrl);++ if (status !== 200 || buffer.length === 0) {+ return reply.send(createFallbackImage());}- }- const { hostname } = new URL(url);- const cache = await getRedisCache().get(`favicon:${hostname}`);+ // Process the image (resize to 30x30 PNG, or serve ICO as-is)+ const processedBuffer = await processImage(+ buffer,+ imageUrl.toString(),+ contentType,+ );- if (cache) {- return sendBuffer(Buffer.from(cache, 'base64'));- }+ // Determine the correct content type for caching and response+ const isIco = isIcoFile(imageUrl.toString(), contentType);+ const responseContentType = isIco ? 'image/x-icon' : contentType;- const meta = await parseUrlMeta(url);- if (meta?.favicon) {- const buffer = await getImageBuffer(meta.favicon);- if (buffer && buffer.byteLength > 0) {- return sendBuffer(buffer, hostname);- }+ // Cache the result with correct content type+ await setToCacheBinary(cacheKey, processedBuffer, responseContentType);++ reply.header('Content-Type', responseContentType);+ reply.header('Cache-Control', 'public, max-age=3600, immutable');+ return reply.send(processedBuffer);+ } catch (error: any) {+ logger.error('Favicon fetch error', {+ error: error.message,+ url: request.query.url,+ });++ const message =+ process.env.NODE_ENV === 'production'+ ? 'Bad request'+ : (error?.message ?? 'Error');+ reply.header('Cache-Control', 'no-store');+ return reply.status(400).send(message);}+}- const buffer = await getImageBuffer(- 'https://www.iconsdb.com/icons/download/orange/warning-128.png',- );- if (buffer && buffer.byteLength > 0) {- return sendBuffer(buffer, hostname);+export async function clearFavicons(+ request: FastifyRequest,+ reply: FastifyReply,+) {+ const redis = getRedisCache();+ const keys = await redis.keys('favicon:*');++ // Delete both the binary data and content-type keys+ for (const key of keys) {+ await redis.del(key);+ await redis.del(`${key}:ctype`);}- return reply.status(404).send('Not found');+ return reply.status(200).send('OK');}-export async function clearFavicons(+export async function clearOgImages(request: FastifyRequest,reply: FastifyReply,) {- const keys = await getRedisCache().keys('favicon:*');+ const redis = getRedisCache();+ const keys = await redis.keys('og:*');++ // Delete both the binary data and content-type keysfor (const key of keys) {- await getRedisCache().del(key);+ await redis.del(key);+ await redis.del(`${key}:ctype`);}- return reply.status(404).send('OK');++ return reply.status(200).send('OK');}export async function ping(@@ -181,3 +401,77 @@ export async function getGeo(request: FastifyRequest, reply: FastifyReply) {const geo = await getGeoLocation(ip);return reply.status(200).send(geo);}++export async function getOgImage(+ request: FastifyRequest<{+ Querystring: {+ url: string;+ };+ }>,+ reply: FastifyReply,+) {+ try {+ const url = validateUrl(request.query.url);+ if (!url) {+ return getFavicon(request, reply);+ }+ const cacheKey = createCacheKey(url.toString(), 'og');++ // Check cache first+ const cached = await getFromCacheBinary(cacheKey);+ if (cached) {+ reply.header('Content-Type', cached.contentType);+ reply.header('Cache-Control', 'public, max-age=604800, immutable');+ return reply.send(cached.buffer);+ }++ let imageUrl: URL;++ // If it's a direct image URL, use it directly+ if (isDirectImage(url)) {+ imageUrl = url;+ } else {+ // For website URLs, extract OG image from HTML+ const meta = await parseUrlMeta(url.toString());+ if (meta?.ogImage) {+ imageUrl = new URL(meta.ogImage);+ } else {+ // No OG image found, return a fallback+ return getFavicon(request, reply);+ }+ }++ // Fetch the image+ const { buffer, contentType, status } = await fetchImage(imageUrl);++ if (status !== 200 || buffer.length === 0) {+ return getFavicon(request, reply);+ }++ // Process the image (resize to 1200x630 for OG standards, or serve as-is if reasonable size)+ const processedBuffer = await processOgImage(+ buffer,+ imageUrl.toString(),+ contentType,+ );++ // Cache the result+ await setToCacheBinary(cacheKey, processedBuffer, 'image/png');++ reply.header('Content-Type', 'image/png');+ reply.header('Cache-Control', 'public, max-age=3600, immutable');+ return reply.send(processedBuffer);+ } catch (error: any) {+ logger.error('OG image fetch error', {+ error: error.message,+ url: request.query.url,+ });++ const message =+ process.env.NODE_ENV === 'production'+ ? 'Bad request'+ : (error?.message ?? 'Error');+ reply.header('Cache-Control', 'no-store');+ return reply.status(400).send(message);+ }+}diff --git a/apps/api/src/controllers/oauth-callback.controller.tsx b/apps/api/src/controllers/oauth-callback.controller.tsxindex 2b45adccf..77e79eca6 100644--- a/apps/api/src/controllers/oauth-callback.controller.tsx+++ b/apps/api/src/controllers/oauth-callback.controller.tsx@@ -76,7 +76,9 @@ async function handleExistingUser({sessionToken,session.expiresAt,);- return reply.redirect(process.env.NEXT_PUBLIC_DASHBOARD_URL!);+ return reply.redirect(+ process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL!,+ );}async function handleNewUser({@@ -138,7 +140,9 @@ async function handleNewUser({sessionToken,session.expiresAt,);- return reply.redirect(process.env.NEXT_PUBLIC_DASHBOARD_URL!);+ return reply.redirect(+ process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL!,+ );}// Provider-specific user fetching@@ -348,7 +352,9 @@ export async function googleCallback(req: FastifyRequest, reply: FastifyReply) {}function redirectWithError(reply: FastifyReply, error: LogError | unknown) {- const url = new URL(process.env.NEXT_PUBLIC_DASHBOARD_URL!);+ const url = new URL(+ process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL!,+ );url.pathname = '/login';if (error instanceof LogError) {url.searchParams.set('error', error.message);diff --git a/apps/api/src/controllers/webhook.controller.ts b/apps/api/src/controllers/webhook.controller.tsindex 70db830b3..36785c449 100644--- a/apps/api/src/controllers/webhook.controller.ts+++ b/apps/api/src/controllers/webhook.controller.ts@@ -1,5 +1,10 @@import fs from 'node:fs';import path from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);import { db, getOrganizationByProjectIdCached } from '@openpanel/db';import {sendSlackNotification,@@ -100,7 +105,7 @@ export async function slackWebhook(});return reply.redirect(- `${process.env.NEXT_PUBLIC_DASHBOARD_URL}/${organizationId}/${projectId}/settings/integrations?tab=installed`,+ `${process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL}/${organizationId}/${projectId}/settings/integrations?tab=installed`,);} catch (err) {request.log.error(err);@@ -184,7 +189,7 @@ export async function polarWebhook(data: {subscriptionId: event.data.id,subscriptionCustomerId: event.data.customer.id,- subscriptionPriceId: event.data.priceId,+ subscriptionPriceId: event.data.prices[0]?.id ?? null,subscriptionProductId: event.data.productId,subscriptionStatus: event.data.status,subscriptionStartsAt: event.data.currentPeriodStart,diff --git a/apps/api/src/hooks/request-logging.hook.ts b/apps/api/src/hooks/request-logging.hook.tsindex 5f3a81501..3d2c99619 100644--- a/apps/api/src/hooks/request-logging.hook.ts+++ b/apps/api/src/hooks/request-logging.hook.ts@@ -7,7 +7,7 @@ const ignoreMethods = ['OPTIONS'];const getTrpcInput = (request: FastifyRequest,): Record<string, unknown> | undefined => {- const input = path(['query', 'input'], request);+ const input = path<any>(['query', 'input'], request);try {return typeof input === 'string' ? JSON.parse(input).json : input;} catch (e) {diff --git a/apps/api/src/index.ts b/apps/api/src/index.tsindex e960f0d96..83680b720 100644--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@ -95,15 +95,13 @@ const startServer = async () => {if (isPrivatePath) {// Allow multiple dashboard domainsconst allowedOrigins = [- process.env.NEXT_PUBLIC_DASHBOARD_URL,+ process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL,...(process.env.API_CORS_ORIGINS?.split(',') ?? []),].filter(Boolean);const origin = req.headers.origin;const isAllowed = origin && allowedOrigins.includes(origin);- logger.info('Allowed origins', { allowedOrigins, origin, isAllowed });-return callback(null, {origin: isAllowed ? origin : false,credentials: true,@@ -160,6 +158,12 @@ const startServer = async () => {router: appRouter,createContext: createContext,onError(ctx) {+ if (+ ctx.error.code === 'UNAUTHORIZED' &&+ ctx.path === 'organization.list'+ ) {+ return;+ }ctx.req.log.error('trpc error', {error: ctx.error,path: ctx.path,@@ -191,7 +195,10 @@ const startServer = async () => {instance.get('/healthz/live', liveness);instance.get('/healthz/ready', readiness);instance.get('/', (_request, reply) =>- reply.send({ name: 'openpanel sdk api' }),+ reply.send({+ status: 'ok',+ message: 'Successfully running OpenPanel.dev API',+ }),);});diff --git a/apps/api/src/routes/misc.router.ts b/apps/api/src/routes/misc.router.tsindex 842c85d49..db5ffba6a 100644--- a/apps/api/src/routes/misc.router.ts+++ b/apps/api/src/routes/misc.router.ts@@ -20,6 +20,18 @@ const miscRouter: FastifyPluginCallback = async (fastify) => {handler: controller.getFavicon,});+ fastify.route({+ method: 'GET',+ url: '/og',+ handler: controller.getOgImage,+ });++ fastify.route({+ method: 'GET',+ url: '/og/clear',+ handler: controller.clearOgImages,+ });+fastify.route({method: 'GET',url: '/favicon/clear',diff --git a/apps/api/src/utils/parseUrlMeta.ts b/apps/api/src/utils/parseUrlMeta.tsindex cda031a04..b9de388c3 100644--- a/apps/api/src/utils/parseUrlMeta.ts+++ b/apps/api/src/utils/parseUrlMeta.ts@@ -5,12 +5,16 @@ function fallbackFavicon(url: string) {}function findBestFavicon(favicons: UrlMetaData['favicons']) {- const match = favicons.find(- (favicon) =>- favicon.rel === 'shortcut icon' ||- favicon.rel === 'icon' ||- favicon.rel === 'apple-touch-icon',- );+ const match = favicons+ .sort((a, b) => {+ return a.rel.length - b.rel.length;+ })+ .find(+ (favicon) =>+ favicon.rel === 'shortcut icon' ||+ favicon.rel === 'icon' ||+ favicon.rel === 'apple-touch-icon',+ );if (match) {return match.href;@@ -18,11 +22,32 @@ function findBestFavicon(favicons: UrlMetaData['favicons']) {return null;}+function findBestOgImage(data: UrlMetaData): string | null {+ // Priority order for OG images+ const candidates = [+ data['og:image:secure_url'],+ data['og:image:url'],+ data['og:image'],+ data['twitter:image:src'],+ data['twitter:image'],+ ];++ for (const candidate of candidates) {+ if (candidate?.trim()) {+ return candidate.trim();+ }+ }++ return null;+}+function transform(data: UrlMetaData, url: string) {const favicon = findBestFavicon(data.favicons);+ const ogImage = findBestOgImage(data);return {favicon: favicon ? new URL(favicon, url).toString() : fallbackFavicon(url),+ ogImage: ogImage ? new URL(ogImage, url).toString() : null,};}@@ -32,6 +57,11 @@ interface UrlMetaData {href: string;sizes: string;}[];+ 'og:image'?: string;+ 'og:image:url'?: string;+ 'og:image:secure_url'?: string;+ 'twitter:image'?: string;+ 'twitter:image:src'?: string;}export async function parseUrlMeta(url: string) {@@ -42,6 +72,7 @@ export async function parseUrlMeta(url: string) {} catch (err) {return {favicon: fallbackFavicon(url),+ ogImage: null,};}}diff --git a/apps/api/tsdown.config.ts b/apps/api/tsdown.config.tsnew file mode 100644index 000000000..80837b37e--- /dev/null+++ b/apps/api/tsdown.config.ts@@ -0,0 +1,23 @@+import { defineConfig } from 'tsdown';+import type { Options } from 'tsdown';++const options: Options = {+ clean: true,+ entry: ['src/index.ts'],+ noExternal: [/^@openpanel\/.*$/u, /^@\/.*$/u],+ external: ['@hyperdx/node-opentelemetry', 'winston', '@node-rs/argon2'],+ sourcemap: true,+ platform: 'node',+ shims: true,+ inputOptions: {+ jsx: 'react',+ },+};++if (process.env.WATCH) {+ options.watch = ['src', '../../packages'];+ options.onSuccess = 'node --enable-source-maps dist/index.js';+ options.minify = false;+}++export default defineConfig(options);diff --git a/apps/api/tsup.config.ts b/apps/api/tsup.config.tsdeleted file mode 100644index d1bf3ea88..000000000--- a/apps/api/tsup.config.ts+++ /dev/null@@ -1,26 +0,0 @@-import { defineConfig } from 'tsup';-import type { Options } from 'tsup';--const options: Options = {- clean: true,- entry: ['src/index.ts'],- noExternal: [/^@openpanel\/.*$/u, /^@\/.*$/u],- external: [- '@hyperdx/node-opentelemetry',- 'winston',- '@node-rs/argon2',- 'bcrypt',- ],- ignoreWatch: ['../../**/{.git,node_modules,dist}/**'],- sourcemap: true,- splitting: false,-};--if (process.env.WATCH) {- options.watch = ['src/**/*', '../../packages/**/*'];-- options.onSuccess = 'node dist/index.js';- options.minify = false;-}--export default defineConfig(options);diff --git a/apps/dashboard/.gitignore b/apps/dashboard/.gitignoredeleted file mode 100644index 04424e485..000000000--- a/apps/dashboard/.gitignore+++ /dev/null@@ -1,39 +0,0 @@-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.--# dependencies-/node_modules-/.pnp-.pnp.js--# testing-/coverage--# database-/prisma/db.sqlite-/prisma/db.sqlite-journal--# next.js-/.next/-/out/-next-env.d.ts--# production-/build--# misc-.DS_Store-*.pem--# debug-npm-debug.log*--# local env files-# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables-.env-.env*.local--# vercel-.vercel--# typescript-*.tsbuildinfodiff --git a/apps/dashboard/.sentryclirc b/apps/dashboard/.sentryclircdeleted file mode 100644index ddbffd3cb..000000000--- a/apps/dashboard/.sentryclirc+++ /dev/null@@ -1,3 +0,0 @@--[auth]-token=sntrys_eyJpYXQiOjE3MTEyMjUwNDguMjcyNDAxLCJ1cmwiOiJodHRwczovL3NlbnRyeS5pbyIsInJlZ2lvbl91cmwiOiJodHRwczovL3VzLnNlbnRyeS5pbyIsIm9yZyI6Im9wZW5wYW5lbGRldiJ9_D3QE5m1RIQ8RsYBeQZnUQsZDIgqoC/8sJUWbKEyzpjodiff --git a/apps/dashboard/Dockerfile b/apps/dashboard/Dockerfiledeleted file mode 100644index 3d25011ef..000000000--- a/apps/dashboard/Dockerfile+++ /dev/null@@ -1,103 +0,0 @@-ARG NODE_VERSION=20.15.1--FROM node:${NODE_VERSION}-slim AS base--# FIX: Bad workaround (https://github.com/nodejs/corepack/issues/612)-ENV COREPACK_INTEGRITY_KEYS=0--ENV SKIP_ENV_VALIDATION="1"--ARG DATABASE_URL-ENV DATABASE_URL=$DATABASE_URL--ARG ENABLE_INSTRUMENTATION_HOOK-ENV ENABLE_INSTRUMENTATION_HOOK=$ENABLE_INSTRUMENTATION_HOOK--ARG NEXT_PUBLIC_SELF_HOSTED-ENV NEXT_PUBLIC_SELF_HOSTED=$NEXT_PUBLIC_SELF_HOSTED--ENV PNPM_HOME="/pnpm"-ENV PATH="$PNPM_HOME:$PATH"--# Install necessary dependencies for prisma-RUN apt-get update && apt-get install -y \- openssl \- libssl3 \- curl \- && rm -rf /var/lib/apt/lists/*--RUN corepack enable--WORKDIR /app--ARG CACHE_BUST-RUN echo "CACHE BUSTER: $CACHE_BUST"--COPY package.json package.json-COPY pnpm-lock.yaml pnpm-lock.yaml-COPY pnpm-workspace.yaml pnpm-workspace.yaml-COPY apps/dashboard/package.json apps/dashboard/package.json-COPY packages/db/package.json packages/db/package.json-COPY packages/json/package.json packages/json/package.json-COPY packages/redis/package.json packages/redis/package.json-COPY packages/queue/package.json packages/queue/package.json-COPY packages/common/package.json packages/common/package.json-COPY packages/auth/package.json packages/auth/package.json-COPY packages/email/package.json packages/email/package.json-COPY packages/constants/package.json packages/constants/package.json-COPY packages/payments/package.json packages/payments/package.json-COPY packages/validation/package.json packages/validation/package.json-COPY packages/integrations/package.json packages/integrations/package.json-COPY packages/sdks/sdk/package.json packages/sdks/sdk/package.json--# BUILD-FROM base AS build--WORKDIR /app-RUN pnpm install --frozen-lockfile --ignore-scripts--COPY apps/dashboard apps/dashboard-COPY packages packages-COPY tooling tooling-RUN pnpm db:codegen--WORKDIR /app/apps/dashboard--# Will be replaced on runtime-ENV NEXT_PUBLIC_DASHBOARD_URL="__NEXT_PUBLIC_DASHBOARD_URL__"-ENV NEXT_PUBLIC_API_URL="__NEXT_PUBLIC_API_URL__"--RUN pnpm run build--# RUNNER-FROM base AS runner--WORKDIR /app--ENV NODE_ENV=production-ENV NEXT_TELEMETRY_DISABLED=1--RUN addgroup --system --gid 1001 nodejs-RUN adduser --system --uid 1001 nextjs--# Set the correct permission for prerender cache-RUN mkdir .next-RUN chown nextjs:nodejs .next--# Set the correct permissions for the entire /app directory-COPY --from=build --chown=nextjs:nodejs /app/apps/dashboard/.next/standalone ./-COPY --from=build --chown=nextjs:nodejs /app/apps/dashboard/.next/static ./apps/dashboard/.next/static-COPY --from=build --chown=nextjs:nodejs /app/apps/dashboard/public ./apps/dashboard/public--# Copy and set permissions for the entrypoint script-COPY --from=build --chown=nextjs:nodejs /app/apps/dashboard/entrypoint.sh ./entrypoint.sh-RUN chmod +x ./entrypoint.sh--USER nextjs--EXPOSE 3000--ENV PORT=3000-ENV HOSTNAME=0.0.0.0--ENTRYPOINT [ "/app/entrypoint.sh", "node", "/app/apps/dashboard/server.js"]\ No newline at end of filediff --git a/apps/dashboard/README.md b/apps/dashboard/README.mddeleted file mode 100644index 5c6b25c47..000000000--- a/apps/dashboard/README.md+++ /dev/null@@ -1 +0,0 @@-# Dashboarddiff --git a/apps/dashboard/components.json b/apps/dashboard/components.jsondeleted file mode 100644index 9750ef2ae..000000000--- a/apps/dashboard/components.json+++ /dev/null@@ -1,16 +0,0 @@-{- "$schema": "https://ui.shadcn.com/schema.json",- "style": "default",- "rsc": false,- "tsx": true,- "tailwind": {- "config": "tailwind.config.ts",- "css": "src/styles/globals.css",- "baseColor": "slate",- "cssVariables": true- },- "aliases": {- "components": "@/components",- "utils": "@/utils/cn"- }-}diff --git a/apps/dashboard/entrypoint.sh b/apps/dashboard/entrypoint.shdeleted file mode 100644index 666f6eb5c..000000000--- a/apps/dashboard/entrypoint.sh+++ /dev/null@@ -1,33 +0,0 @@-#!/bin/sh-set -e--echo "> Replace env variable placeholders with runtime values..."--# Define environment variables to check (space-separated string)-variables_to_replace="NEXT_PUBLIC_DASHBOARD_URL NEXT_PUBLIC_API_URL NEXT_PUBLIC_SELF_HOSTED"--# Replace env variable placeholders with real values-for key in $variables_to_replace; do- value=$(eval echo \$"$key")- if [ -n "$value" ]; then- echo " - Searching for $key with value $value..."- # Use standard placeholder format for all variables- placeholder="__${key}__"-- # Run the replacement- find /app -type f \( -name "*.js" -o -name "*.html" \) | while read -r file; do- if grep -q "$placeholder" "$file"; then- echo " - Replacing in file: $file"- sed -i "s|$placeholder|$value|g" "$file"- fi- done- else- echo " - Skipping $key as it has no value set."- fi-done--echo "> Done!"-echo "> Running $@"--# Execute the container's main process (CMD in Dockerfile)-exec "$@"\ No newline at end of filediff --git a/apps/dashboard/next.config.mjs b/apps/dashboard/next.config.mjsdeleted file mode 100644index 6553dbba7..000000000--- a/apps/dashboard/next.config.mjs+++ /dev/null@@ -1,47 +0,0 @@-// @ts-expect-error-import { PrismaPlugin } from '@prisma/nextjs-monorepo-workaround-plugin';--/** @type {import("next").NextConfig} */-const config = {- output: 'standalone',- webpack: (config, { isServer }) => {- if (isServer) {- config.plugins = [...config.plugins, new PrismaPlugin()];- }-- return config;- },- reactStrictMode: true,- transpilePackages: [- '@openpanel/queue',- '@openpanel/db',- '@openpanel/common',- '@openpanel/constants',- '@openpanel/redis',- '@openpanel/validation',- '@openpanel/email',- ],- eslint: { ignoreDuringBuilds: true },- typescript: { ignoreBuildErrors: true },- experimental: {- // Avoid "Critical dependency: the request of a dependency is an expression"- serverComponentsExternalPackages: [- 'bullmq',- 'ioredis',- '@hyperdx/node-opentelemetry',- '@node-rs/argon2',- ],- instrumentationHook: !!process.env.ENABLE_INSTRUMENTATION_HOOK,- },- /**- * If you are using `appDir` then you must comment the below `i18n` config out.- *- * @see https://github.com/vercel/next.js/issues/41980- */- i18n: {- locales: ['en'],- defaultLocale: 'en',- },-};--export default config;diff --git a/apps/dashboard/package.json b/apps/dashboard/package.jsondeleted file mode 100644index 372d9b18b..000000000--- a/apps/dashboard/package.json+++ /dev/null@@ -1,149 +0,0 @@-{- "name": "@openpanel/dashboard",- "version": "0.1.0",- "private": true,- "scripts": {- "dev": "rm -rf .next && pnpm with-env next dev",- "testing": "pnpm dev",- "build": "pnpm with-env next build",- "start": "pnpm with-env next start",- "typecheck": "tsc --noEmit",- "with-env": "dotenv -e ../../.env -c --"- },- "dependencies": {- "@ai-sdk/react": "^1.2.5",- "@clickhouse/client": "^1.2.0",- "@dnd-kit/core": "^6.3.1",- "@dnd-kit/sortable": "^10.0.0",- "@dnd-kit/utilities": "^3.2.2",- "@hookform/resolvers": "^3.3.4",- "@hyperdx/node-opentelemetry": "^0.8.1",- "@openpanel/auth": "workspace:^",- "@openpanel/common": "workspace:^",- "@openpanel/constants": "workspace:^",- "@openpanel/db": "workspace:^",- "@openpanel/integrations": "workspace:^",- "@openpanel/json": "workspace:*",- "@openpanel/nextjs": "1.0.3",- "@openpanel/queue": "workspace:^",- "@openpanel/sdk-info": "workspace:^",- "@openpanel/validation": "workspace:^",- "@prisma/nextjs-monorepo-workaround-plugin": "^5.12.1",- "@radix-ui/react-accordion": "^1.1.2",- "@radix-ui/react-alert-dialog": "^1.0.5",- "@radix-ui/react-aspect-ratio": "^1.0.3",- "@radix-ui/react-avatar": "^1.0.4",- "@radix-ui/react-checkbox": "^1.0.4",- "@radix-ui/react-dialog": "^1.0.5",- "@radix-ui/react-dropdown-menu": "^2.0.6",- "@radix-ui/react-label": "^2.0.2",- "@radix-ui/react-popover": "^1.0.7",- "@radix-ui/react-portal": "^1.1.1",- "@radix-ui/react-progress": "^1.0.3",- "@radix-ui/react-radio-group": "^1.1.3",- "@radix-ui/react-scroll-area": "^1.0.5",- "@radix-ui/react-slot": "^1.0.2",- "@radix-ui/react-switch": "^1.0.3",- "@radix-ui/react-tabs": "^1.0.4",- "@radix-ui/react-toast": "^1.1.5",- "@radix-ui/react-toggle": "^1.0.3",- "@radix-ui/react-toggle-group": "^1.0.4",- "@radix-ui/react-tooltip": "^1.0.7",- "@reduxjs/toolkit": "^1.9.7",- "@t3-oss/env-nextjs": "^0.7.3",- "@tailwindcss/container-queries": "^0.1.1",- "@tailwindcss/typography": "^0.5.15",- "@tanstack/react-query": "^4.36.1",- "@tanstack/react-table": "^8.11.8",- "@tanstack/react-virtual": "^3.13.2",- "@trpc/client": "^10.45.2",- "@trpc/next": "^10.45.2",- "@trpc/react-query": "^10.45.2",- "@trpc/server": "^10.45.2",- "@types/d3": "^7.4.3",- "ai": "^4.2.10",- "bcrypt": "^5.1.1",- "bind-event-listener": "^3.0.0",- "class-variance-authority": "^0.7.0",- "clsx": "^2.1.0",- "cmdk": "^0.2.1",- "d3": "^7.8.5",- "date-fns": "^3.3.1",- "embla-carousel-react": "8.0.0-rc22",- "flag-icons": "^7.1.0",- "framer-motion": "^11.0.28",- "geist": "^1.3.1",- "hamburger-react": "^2.5.0",- "input-otp": "^1.2.4",- "javascript-time-ago": "^2.5.9",- "katex": "^0.16.21",- "lodash.debounce": "^4.0.8",- "lodash.isequal": "^4.5.0",- "lodash.throttle": "^4.1.1",- "lottie-react": "^2.4.0",- "lucide-react": "^0.513.0",- "mathjs": "^12.3.2",- "mitt": "^3.0.1",- "next": "14.2.1",- "next-auth": "^4.24.5",- "next-themes": "^0.2.1",- "nextjs-toploader": "^1.6.11",- "nuqs": "^2.0.2",- "prisma-error-enum": "^0.1.3",- "pushmodal": "^1.0.3",- "ramda": "^0.29.1",- "random-animal-name": "^0.1.1",- "rc-virtual-list": "^3.14.5",- "react": "18.2.0",- "react-animate-height": "^3.2.3",- "react-animated-numbers": "^0.18.0",- "react-day-picker": "^8.10.0",- "react-dom": "18.2.0",- "react-hook-form": "^7.50.1",- "react-in-viewport": "1.0.0-alpha.30",- "react-markdown": "^10.1.0",- "react-redux": "^8.1.3",- "react-responsive": "^9.0.2",- "react-simple-maps": "3.0.0",- "react-svg-worldmap": "2.0.0-alpha.16",- "react-syntax-highlighter": "^15.5.0",- "react-use-websocket": "^4.7.0",- "react-virtualized-auto-sizer": "^1.0.22",- "recharts": "^2.12.0",- "rehype-katex": "^7.0.1",- "remark-gfm": "^4.0.1",- "remark-highlight": "^0.1.1",- "remark-math": "^6.0.0",- "remark-parse": "^11.0.0",- "remark-rehype": "^11.1.2",- "short-unique-id": "^5.0.3",- "slugify": "^1.6.6",- "sonner": "^1.4.0",- "sqlstring": "^2.3.3",- "superjson": "^1.13.3",- "tailwind-merge": "^1.14.0",- "tailwindcss-animate": "^1.0.7",- "usehooks-ts": "^2.14.0",- "zod": "catalog:"- },- "devDependencies": {- "@openpanel/payments": "workspace:*",- "@openpanel/trpc": "workspace:*",- "@openpanel/tsconfig": "workspace:*",- "@types/bcrypt": "^5.0.2",- "@types/lodash.debounce": "^4.0.9",- "@types/lodash.isequal": "^4.5.8",- "@types/lodash.throttle": "^4.1.9",- "@types/node": "20.14.8",- "@types/ramda": "^0.29.10",- "@types/react": "^18.2.20",- "@types/react-dom": "^18.2.7",- "@types/react-simple-maps": "^3.0.4",- "@types/react-syntax-highlighter": "^15.5.11",- "@types/sqlstring": "^2.3.2",- "autoprefixer": "^10.4.17",- "postcss": "^8.4.35",- "tailwindcss": "^3.4.1",- "typescript": "^5.3.3"- }-}diff --git a/apps/dashboard/postcss.config.cjs b/apps/dashboard/postcss.config.cjsdeleted file mode 100644index e305dd92a..000000000--- a/apps/dashboard/postcss.config.cjs+++ /dev/null@@ -1,8 +0,0 @@-const config = {- plugins: {- tailwindcss: {},- autoprefixer: {},- },-};--module.exports = config;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/chat/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/chat/page.tsxdeleted file mode 100644index 57dc22808..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/chat/page.tsx+++ /dev/null@@ -1,31 +0,0 @@-import Chat from '@/components/chat/chat';-import { db, getOrganizationById } from '@openpanel/db';-import type { UIMessage } from 'ai';--export default async function ChatPage({- params,-}: {- params: { organizationSlug: string; projectId: string };-}) {- const { projectId } = await params;- const [organization, chat] = await Promise.all([- getOrganizationById(params.organizationSlug),- db.chat.findFirst({- where: {- projectId,- },- orderBy: {- createdAt: 'desc',- },- }),- ]);-- const messages = ((chat?.messages as UIMessage[]) || []).slice(-10);- return (- <Chat- projectId={projectId}- initialMessages={messages}- organization={organization}- />- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/[dashboardId]/list-reports.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/[dashboardId]/list-reports.tsxdeleted file mode 100644index b6d322d69..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/[dashboardId]/list-reports.tsx+++ /dev/null@@ -1,181 +0,0 @@-'use client';--import { FullPageEmptyState } from '@/components/full-page-empty-state';-import { useOverviewOptions } from '@/components/overview/useOverviewOptions';-import { ReportChart } from '@/components/report-chart';-import { Button } from '@/components/ui/button';-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuGroup,- DropdownMenuItem,- DropdownMenuTrigger,-} from '@/components/ui/dropdown-menu';-import { useAppParams } from '@/hooks/useAppParams';-import { api, handleError } from '@/trpc/client';-import { cn } from '@/utils/cn';-import {- ChevronRight,- LayoutPanelTopIcon,- MoreHorizontal,- PlusIcon,- Trash,-} from 'lucide-react';-import Link from 'next/link';-import { useRouter } from 'next/navigation';-import { toast } from 'sonner';--import {- getDefaultIntervalByDates,- getDefaultIntervalByRange,- timeWindows,-} from '@openpanel/constants';-import type { IServiceDashboard, getReportsByDashboardId } from '@openpanel/db';--import { OverviewInterval } from '@/components/overview/overview-interval';-import { OverviewRange } from '@/components/overview/overview-range';--interface ListReportsProps {- reports: Awaited<ReturnType<typeof getReportsByDashboardId>>;- dashboard: IServiceDashboard;-}--export function ListReports({ reports, dashboard }: ListReportsProps) {- const router = useRouter();- const params = useAppParams<{ dashboardId: string }>();- const { range, startDate, endDate, interval } = useOverviewOptions();- const deletion = api.report.delete.useMutation({- onError: handleError,- onSuccess() {- router.refresh();- toast('Report deleted');- },- });- return (- <>- <div className="row mb-4 items-center justify-between">- <h1 className="text-3xl font-semibold">{dashboard.name}</h1>- <div className="flex items-center justify-end gap-2">- <OverviewRange />- <OverviewInterval />- <Button- icon={PlusIcon}- onClick={() => {- router.push(- `/${params.organizationId}/${- params.projectId- }/reports?${new URLSearchParams({- dashboardId: params.dashboardId,- }).toString()}`,- );- }}- >- <span className="max-sm:hidden">Create report</span>- <span className="sm:hidden">Report</span>- </Button>- </div>- </div>- <div className="flex max-w-6xl flex-col gap-8">- {reports.map((report) => {- const chartRange = report.range;- return (- <div className="card" key={report.id}>- <Link- href={`/${params.organizationId}/${params.projectId}/reports/${report.id}`}- className="flex items-center justify-between border-b border-border p-4 leading-none [&_svg]:hover:opacity-100"- shallow- >- <div>- <div className="font-medium">{report.name}</div>- {chartRange !== null && (- <div className="mt-2 flex gap-2 ">- <span- className={- (chartRange !== range && range !== null) ||- (startDate && endDate)- ? 'line-through'- : ''- }- >- {timeWindows[chartRange].label}- </span>- {startDate && endDate ? (- <span>Custom dates</span>- ) : (- range !== null &&- chartRange !== range && (- <span>{timeWindows[range].label}</span>- )- )}- </div>- )}- </div>- <div className="flex items-center gap-4">- <DropdownMenu>- <DropdownMenuTrigger className="flex h-8 w-8 items-center justify-center rounded hover:border">- <MoreHorizontal size={16} />- </DropdownMenuTrigger>- <DropdownMenuContent align="end" className="w-[200px]">- <DropdownMenuGroup>- <DropdownMenuItem- className="text-destructive"- onClick={(event) => {- event.stopPropagation();- deletion.mutate({- reportId: report.id,- });- }}- >- <Trash size={16} className="mr-2" />- Delete- </DropdownMenuItem>- </DropdownMenuGroup>- </DropdownMenuContent>- </DropdownMenu>- <ChevronRight- className="opacity-10 transition-opacity"- size={16}- />- </div>- </Link>- <div- className={cn('p-4', report.chartType === 'metric' && 'p-0')}- >- <ReportChart- {...report}- report={{- ...report,- range: range ?? report.range,- startDate: startDate ?? report.startDate,- endDate: endDate ?? report.endDate,- interval: interval ?? report.interval,- }}- />- </div>- </div>- );- })}- {reports.length === 0 && (- <FullPageEmptyState title="No reports" icon={LayoutPanelTopIcon}>- <p>You can visualize your data with a report</p>- <Button- onClick={() =>- router.push(- `/${params.organizationId}/${- params.projectId- }/reports?${new URLSearchParams({- dashboardId: params.dashboardId,- }).toString()}`,- )- }- className="mt-14"- icon={PlusIcon}- >- Create report- </Button>- </FullPageEmptyState>- )}- </div>- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/[dashboardId]/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/[dashboardId]/page.tsxdeleted file mode 100644index 5b5ef0773..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/[dashboardId]/page.tsx+++ /dev/null@@ -1,32 +0,0 @@-import { Padding } from '@/components/ui/padding';-import { notFound } from 'next/navigation';--import { getDashboardById, getReportsByDashboardId } from '@openpanel/db';--import { ListReports } from './list-reports';--interface PageProps {- params: {- projectId: string;- dashboardId: string;- };-}--export default async function Page({- params: { projectId, dashboardId },-}: PageProps) {- const [dashboard, reports] = await Promise.all([- getDashboardById(dashboardId, projectId),- getReportsByDashboardId(dashboardId),- ]);-- if (!dashboard) {- return notFound();- }-- return (- <Padding>- <ListReports reports={reports} dashboard={dashboard} />- </Padding>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/list-dashboards/header.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/list-dashboards/header.tsxdeleted file mode 100644index 9ddc769a3..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/list-dashboards/header.tsx+++ /dev/null@@ -1,22 +0,0 @@-'use client';--import { Button } from '@/components/ui/button';-import { pushModal } from '@/modals';-import { PlusIcon } from 'lucide-react';--export function HeaderDashboards() {- return (- <div className="mb-4 flex items-center justify-between">- <h1 className="text-3xl font-semibold">Dashboards</h1>- <Button- icon={PlusIcon}- onClick={() => {- pushModal('AddDashboard');- }}- >- <span className="max-sm:hidden">Create dashboard</span>- <span className="sm:hidden">Dashboard</span>- </Button>- </div>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/list-dashboards/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/list-dashboards/index.tsxdeleted file mode 100644index 30c13f127..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/list-dashboards/index.tsx+++ /dev/null@@ -1,25 +0,0 @@-import FullPageLoadingState from '@/components/full-page-loading-state';-import { Padding } from '@/components/ui/padding';-import withSuspense from '@/hocs/with-suspense';--import { getDashboardsByProjectId } from '@openpanel/db';--import { HeaderDashboards } from './header';-import { ListDashboards } from './list-dashboards';--interface Props {- projectId: string;-}--const ListDashboardsServer = async ({ projectId }: Props) => {- const dashboards = await getDashboardsByProjectId(projectId);-- return (- <Padding>- <HeaderDashboards />- <ListDashboards dashboards={dashboards} />- </Padding>- );-};--export default withSuspense(ListDashboardsServer, FullPageLoadingState);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/page.tsxdeleted file mode 100644index 8787f9c2d..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/page.tsx+++ /dev/null@@ -1,11 +0,0 @@-import ListDashboardsServer from './list-dashboards';--interface PageProps {- params: {- projectId: string;- };-}--export default function Page({ params: { projectId } }: PageProps) {- return <ListDashboardsServer projectId={projectId} />;-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/conversions.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/conversions.tsxdeleted file mode 100644index 30725de5d..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/conversions.tsx+++ /dev/null@@ -1,43 +0,0 @@-'use client';--import { TableButtons } from '@/components/data-table';-import { EventsTable } from '@/components/events/table';-import { EventsTableColumns } from '@/components/events/table/events-table-columns';-import { api } from '@/trpc/client';-import { Loader2Icon } from 'lucide-react';--type Props = {- projectId: string;- profileId?: string;-};--const Conversions = ({ projectId }: Props) => {- const query = api.event.conversions.useInfiniteQuery(- {- projectId,- },- {- getNextPageParam: (lastPage) => lastPage.meta.next,- keepPreviousData: true,- },- );-- return (- <div>- <TableButtons>- <EventsTableColumns />- {query.isRefetching && (- <div className="center-center size-8 rounded border bg-background">- <Loader2Icon- size={12}- className="size-4 shrink-0 animate-spin text-black text-highlight"- />- </div>- )}- </TableButtons>- <EventsTable query={query} />- </div>- );-};--export default Conversions;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/events.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/events.tsxdeleted file mode 100644index ab612730b..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/events.tsx+++ /dev/null@@ -1,93 +0,0 @@-'use client';--import { TableButtons } from '@/components/data-table';-import EventListener from '@/components/events/event-listener';-import { EventsTable } from '@/components/events/table';-import { EventsTableColumns } from '@/components/events/table/events-table-columns';-import { OverviewFiltersButtons } from '@/components/overview/filters/overview-filters-buttons';-import { OverviewFiltersDrawer } from '@/components/overview/filters/overview-filters-drawer';-import { Button } from '@/components/ui/button';-import {- useEventQueryFilters,- useEventQueryNamesFilter,-} from '@/hooks/useEventQueryFilters';-import { pushModal } from '@/modals';-import { api } from '@/trpc/client';-import { format } from 'date-fns';-import { CalendarIcon, Loader2Icon } from 'lucide-react';-import { parseAsIsoDateTime, useQueryState } from 'nuqs';--type Props = {- projectId: string;- profileId?: string;-};--const Events = ({ projectId, profileId }: Props) => {- const [filters] = useEventQueryFilters();- const [startDate, setStartDate] = useQueryState(- 'startDate',- parseAsIsoDateTime,- );- const [eventNames] = useEventQueryNamesFilter();-- const [endDate, setEndDate] = useQueryState('endDate', parseAsIsoDateTime);- const query = api.event.events.useInfiniteQuery(- {- projectId,- filters,- events: eventNames,- profileId,- startDate: startDate || undefined,- endDate: endDate || undefined,- },- {- getNextPageParam: (lastPage) => lastPage.meta.next,- keepPreviousData: true,- },- );-- return (- <div>- <TableButtons>- <EventListener onRefresh={() => query.refetch()} />- <Button- variant="outline"- size="sm"- icon={CalendarIcon}- onClick={() => {- pushModal('DateRangerPicker', {- onChange: ({ startDate, endDate }) => {- setStartDate(startDate);- setEndDate(endDate);- },- startDate: startDate || undefined,- endDate: endDate || undefined,- });- }}- >- {startDate && endDate- ? `${format(startDate, 'MMM d')} - ${format(endDate, 'MMM d')}`- : 'Date range'}- </Button>- <OverviewFiltersDrawer- mode="events"- projectId={projectId}- enableEventsFilter- />- <OverviewFiltersButtons className="justify-end p-0" />- <EventsTableColumns />- {query.isRefetching && (- <div className="center-center size-8 rounded border bg-background">- <Loader2Icon- size={12}- className="size-4 shrink-0 animate-spin text-black text-highlight"- />- </div>- )}- </TableButtons>- <EventsTable query={query} />- </div>- );-};--export default Events;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/page.tsxdeleted file mode 100644index 64c590f8b..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/page.tsx+++ /dev/null@@ -1,49 +0,0 @@-import { PageTabs, PageTabsLink } from '@/components/page-tabs';-import { Padding } from '@/components/ui/padding';-import { parseAsStringEnum } from 'nuqs/server';--import Charts from './charts';-import Conversions from './conversions';-import Events from './events';--interface PageProps {- params: {- projectId: string;- };- searchParams: Record<string, string>;-}--export default function Page({- params: { projectId },- searchParams,-}: PageProps) {- const tab = parseAsStringEnum(['events', 'conversions', 'charts'])- .withDefault('events')- .parseServerSide(searchParams.tab);-- return (- <>- <Padding>- <div className="mb-4">- <PageTabs>- <PageTabsLink href={'?tab=events'} isActive={tab === 'events'}>- Events- </PageTabsLink>- <PageTabsLink- href={'?tab=conversions'}- isActive={tab === 'conversions'}- >- Conversions- </PageTabsLink>- <PageTabsLink href={'?tab=charts'} isActive={tab === 'charts'}>- Charts- </PageTabsLink>- </PageTabs>- </div>- {tab === 'events' && <Events projectId={projectId} />}- {tab === 'conversions' && <Conversions projectId={projectId} />}- {tab === 'charts' && <Charts projectId={projectId} />}- </Padding>- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-content.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-content.tsxdeleted file mode 100644index 316392aae..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-content.tsx+++ /dev/null@@ -1,33 +0,0 @@-'use client';--import { cn } from '@/utils/cn';-import { useSelectedLayoutSegments } from 'next/navigation';--const NOT_MIGRATED_PAGES = ['reports'];--export default function LayoutContent({- children,-}: {- children: React.ReactNode;-}) {- const segments = useSelectedLayoutSegments();-- if (segments[0] && NOT_MIGRATED_PAGES.includes(segments[0])) {- return (- <div className="pb-20 transition-all lg:pl-72 max-w-screen-2xl">- {children}- </div>- );- }-- return (- <div- className={cn(- 'pb-20 transition-all max-lg:mt-12 lg:pl-72 max-w-screen-2xl',- segments.includes('chat') && 'pb-0',- )}- >- {children}- </div>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-menu.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-menu.tsxdeleted file mode 100644index 8111744e0..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-menu.tsx+++ /dev/null@@ -1,243 +0,0 @@-'use client';--import { Button } from '@/components/ui/button';-import { pushModal } from '@/modals';-import { cn } from '@/utils/cn';-import {- BanknoteIcon,- ChartLineIcon,- DollarSignIcon,- GanttChartIcon,- Globe2Icon,- HeartHandshakeIcon,- LayersIcon,- LayoutPanelTopIcon,- PlusIcon,- ScanEyeIcon,- ServerIcon,- SparklesIcon,- UsersIcon,- WallpaperIcon,-} from 'lucide-react';-import type { LucideIcon } from 'lucide-react';-import { usePathname } from 'next/navigation';--import { ProjectLink } from '@/components/links';-import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';-import { CommandShortcut } from '@/components/ui/command';-import { useNumber } from '@/hooks/useNumerFormatter';-import type { IServiceDashboards, IServiceOrganization } from '@openpanel/db';-import { differenceInDays, format } from 'date-fns';--function LinkWithIcon({- href,- icon: Icon,- label,- active: overrideActive,- className,-}: {- href: string;- icon: LucideIcon;- label: React.ReactNode;- active?: boolean;- className?: string;-}) {- const pathname = usePathname();- const active = overrideActive || href === pathname;- return (- <ProjectLink- className={cn(- 'text-text flex items-center gap-2 rounded-md px-3 py-2 font-medium transition-all hover:bg-def-200',- active && 'bg-def-200',- className,- )}- href={href}- >- <Icon size={20} />- <div className="flex-1">{label}</div>- </ProjectLink>- );-}--interface LayoutMenuProps {- dashboards: IServiceDashboards;- organization: IServiceOrganization;-}-export default function LayoutMenu({- dashboards,- organization,-}: LayoutMenuProps) {- const number = useNumber();- const {- isTrial,- isExpired,- isExceeded,- isCanceled,- subscriptionEndsAt,- subscriptionPeriodEventsCount,- subscriptionPeriodEventsLimit,- subscriptionProductId,- } = organization;- return (- <>- <div className="col border rounded mb-2 divide-y">- {(subscriptionProductId === '036efa2a-b3b4-4c75-b24a-9cac6bb8893b' ||- subscriptionProductId === 'a18b4bee-d3db-4404-be6f-fba2f042d9ed') && (- <ProjectLink- href={'/settings/organization?tab=billing'}- className={cn(- 'rounded p-2 row items-center gap-2 hover:bg-def-200 text-destructive',- )}- >- <BanknoteIcon size={20} />- <div className="flex-1 col gap-1">- <div className="font-medium">Free plan is removed</div>- <div className="text-sm opacity-80">- We've removed the free plan. You can upgrade to a paid plan to- continue using OpenPanel.- </div>- </div>- </ProjectLink>- )}- {process.env.NEXT_PUBLIC_SELF_HOSTED === 'true' && (- <a- className="rounded p-2 row items-center gap-2 hover:bg-def-200"- href="https://openpanel.dev/supporter"- >- <HeartHandshakeIcon size={20} />- <div className="flex-1 col gap-1">- <div className="font-medium">Become a supporter</div>- </div>- </a>- )}- {isTrial && subscriptionEndsAt && (- <ProjectLink- href={'/settings/organization?tab=billing'}- className={cn(- 'rounded p-2 row items-center gap-2 hover:bg-def-200 text-destructive',- )}- >- <BanknoteIcon size={20} />- <div className="flex-1 col gap-1">- <div className="font-medium">- Free trial ends in{' '}- {differenceInDays(subscriptionEndsAt, new Date())} days- </div>- </div>- </ProjectLink>- )}- {isExpired && subscriptionEndsAt && (- <ProjectLink- href={'/settings/organization?tab=billing'}- className={cn(- 'rounded p-2 row gap-2 hover:bg-def-200 text-red-600',- )}- >- <BanknoteIcon size={20} />- <div className="flex-1 col gap-0.5">- <div className="font-medium">Subscription expired</div>- <div className="text-sm opacity-80">- You can still use OpenPanel but you won't have access to new- incoming data.- </div>- </div>- </ProjectLink>- )}- {isCanceled && subscriptionEndsAt && (- <ProjectLink- href={'/settings/organization?tab=billing'}- className={cn(- 'rounded p-2 row gap-2 hover:bg-def-200 text-red-600',- )}- >- <BanknoteIcon size={20} />- <div className="flex-1 col gap-0.5">- <div className="font-medium">Subscription canceled</div>- <div className="text-sm opacity-80">- {differenceInDays(new Date(), subscriptionEndsAt)} days ago- </div>- </div>- </ProjectLink>- )}- {isExceeded && subscriptionEndsAt && (- <ProjectLink- href={'/settings/organization?tab=billing'}- className={cn(- 'rounded p-2 row gap-2 hover:bg-def-200 text-destructive',- )}- >- <BanknoteIcon size={20} />- <div className="flex-1 col gap-0.5">- <div className="font-medium">Events limit exceeded</div>- <div className="text-sm opacity-80">- {number.format(subscriptionPeriodEventsCount)} /{' '}- {number.format(subscriptionPeriodEventsLimit)}- </div>- </div>- </ProjectLink>- )}- <ProjectLink- href={'/chat'}- className={cn('rounded p-2 row gap-2 hover:bg-def-200 items-center')}- >- <SparklesIcon size={20} />- <div className="flex-1 col gap-1">- <div className="font-medium">Ask AI</div>- </div>- <CommandShortcut>⌘K</CommandShortcut>- </ProjectLink>- <ProjectLink- href={'/reports'}- className={cn('rounded p-2 row gap-2 hover:bg-def-200 items-center')}- >- <ChartLineIcon size={20} />- <div className="flex-1 col gap-1">- <div className="font-medium">Create report</div>- </div>- <CommandShortcut>⌘J</CommandShortcut>- </ProjectLink>- </div>- <LinkWithIcon icon={WallpaperIcon} label="Overview" href={'/'} />- <LinkWithIcon- icon={LayoutPanelTopIcon}- label="Dashboards"- href={'/dashboards'}- />- <LinkWithIcon icon={LayersIcon} label="Pages" href={'/pages'} />- <LinkWithIcon icon={Globe2Icon} label="Realtime" href={'/realtime'} />- <LinkWithIcon icon={GanttChartIcon} label="Events" href={'/events'} />- <LinkWithIcon icon={UsersIcon} label="Profiles" href={'/profiles'} />- <LinkWithIcon icon={ScanEyeIcon} label="Retention" href={'/retention'} />- <div className="mt-4">- <div className="mb-2 flex items-center justify-between">- <div className="text-muted-foreground">Your dashboards</div>- <Button- size="icon"- variant="ghost"- className="text-muted-foreground"- onClick={() => pushModal('AddDashboard')}- >- <PlusIcon size={16} />- </Button>- </div>- <div className="flex flex-col gap-2">- {dashboards.map((item) => (- <LinkWithIcon- key={item.id}- icon={LayoutPanelTopIcon}- label={item.name}- href={`/dashboards/${item.id}`}- />- ))}- </div>- </div>- {process.env.NEXT_PUBLIC_SELF_HOSTED === 'true' && (- <div className="mt-auto w-full ">- <div className={cn('text-sm w-full text-center')}>- Self-hosted instance- </div>- </div>- )}- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-organization-selector.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-organization-selector.tsxdeleted file mode 100644index 6eabdaba3..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-organization-selector.tsx+++ /dev/null@@ -1,43 +0,0 @@-'use client';--import { Combobox } from '@/components/ui/combobox';-import { useAppParams } from '@/hooks/useAppParams';-import { Building } from 'lucide-react';-import { useRouter } from 'next/navigation';--import type { IServiceOrganization } from '@openpanel/db';--interface LayoutOrganizationSelectorProps {- organizations: IServiceOrganization[];-}--export default function LayoutOrganizationSelector({- organizations,-}: LayoutOrganizationSelectorProps) {- const params = useAppParams();- const router = useRouter();-- const organization = organizations.find(- (item) => item.id === params.organizationId,- );-- return (- <Combobox- className="w-full"- placeholder="Select organization"- icon={Building}- value={organization?.id}- items={- organizations- .filter((item) => item.id)- .map((item) => ({- label: item.name,- value: item.id,- })) ?? []- }- onChange={(value) => {- router.push(`/${value}`);- }}- />- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-sidebar.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-sidebar.tsxdeleted file mode 100644index afcc92a53..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-sidebar.tsx+++ /dev/null@@ -1,90 +0,0 @@-'use client';--import { LogoSquare } from '@/components/logo';-import SettingsToggle from '@/components/settings-toggle';-import { Button } from '@/components/ui/button';-import { cn } from '@/utils/cn';-import { MenuIcon, XIcon } from 'lucide-react';-import { usePathname } from 'next/navigation';-import { useEffect, useState } from 'react';--import type {- IServiceDashboards,- IServiceOrganization,- getProjectsByOrganizationId,-} from '@openpanel/db';--import { useAppParams } from '@/hooks/useAppParams';-import Link from 'next/link';-import LayoutMenu from './layout-menu';-import LayoutProjectSelector from './layout-project-selector';--interface LayoutSidebarProps {- organizations: IServiceOrganization[];- dashboards: IServiceDashboards;- projectId: string;- projects: Awaited<ReturnType<typeof getProjectsByOrganizationId>>;-}-export function LayoutSidebar({- organizations,- dashboards,- projects,-}: LayoutSidebarProps) {- const [active, setActive] = useState(false);- const pathname = usePathname();- const { organizationId } = useAppParams();- const organization = organizations.find((o) => o.id === organizationId)!;-- useEffect(() => {- setActive(false);- }, [pathname]);-- return (- <>- <button- type="button"- onClick={() => setActive(false)}- className={cn(- 'fixed bottom-0 left-0 right-0 top-0 z-40 backdrop-blur-sm transition-opacity',- active- ? 'pointer-events-auto opacity-100'- : 'pointer-events-none opacity-0',- )}- />- <div- className={cn(- 'fixed left-0 top-0 z-40 flex h-screen w-72 flex-col border-r border-border bg-card transition-transform',- '-translate-x-72 lg:-translate-x-0', // responsive- active && 'translate-x-0', // force active on mobile- )}- >- <div className="absolute -right-12 flex h-16 items-center lg:hidden">- <Button- size="icon"- onClick={() => setActive((p) => !p)}- variant={'outline'}- >- {active ? <XIcon size={16} /> : <MenuIcon size={16} />}- </Button>- </div>- <div className="flex h-16 shrink-0 items-center gap-4 border-b border-border px-4">- <Link href="/">- <LogoSquare className="max-h-8" />- </Link>- <LayoutProjectSelector- align="start"- projects={projects}- organizations={organizations}- />- <SettingsToggle />- </div>- <div className="flex flex-grow flex-col gap-2 overflow-auto p-4">- <LayoutMenu dashboards={dashboards} organization={organization} />- </div>- <div className="fixed bottom-0 left-0 right-0">- <div className="h-8 w-full bg-gradient-to-t from-card to-card/0" />- </div>- </div>- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-sticky-below-header.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-sticky-below-header.tsxdeleted file mode 100644index 5c29c82d7..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-sticky-below-header.tsx+++ /dev/null@@ -1,22 +0,0 @@-import { cn } from '@/utils/cn';--interface StickyBelowHeaderProps {- children: React.ReactNode;- className?: string;-}--export function StickyBelowHeader({- children,- className,-}: StickyBelowHeaderProps) {- return (- <div- className={cn(- 'top-0 z-20 border-b border-border bg-card md:sticky',- className,- )}- >- {children}- </div>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout.tsxdeleted file mode 100644index c4e14f6dd..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout.tsx+++ /dev/null@@ -1,66 +0,0 @@-import { FullPageEmptyState } from '@/components/full-page-empty-state';--import {- getDashboardsByProjectId,- getOrganizations,- getProjects,-} from '@openpanel/db';--import { auth } from '@openpanel/auth/nextjs';-import LayoutContent from './layout-content';-import { LayoutSidebar } from './layout-sidebar';-import SideEffects from './side-effects';--interface AppLayoutProps {- children: React.ReactNode;- params: {- organizationSlug: string;- projectId: string;- };-}--export default async function AppLayout({- children,- params: { organizationSlug: organizationId, projectId },-}: AppLayoutProps) {- const { userId } = await auth();- const [organizations, projects, dashboards] = await Promise.all([- getOrganizations(userId),- getProjects({ organizationId, userId }),- getDashboardsByProjectId(projectId),- ]);-- const organization = organizations.find((item) => item.id === organizationId);-- if (!organization) {- return (- <FullPageEmptyState title="Not found" className="min-h-screen">- The organization you were looking for could not be found.- </FullPageEmptyState>- );- }-- if (!projects.find((item) => item.id === projectId)) {- return (- <FullPageEmptyState title="Not found" className="min-h-screen">- The project you were looking for could not be found.- </FullPageEmptyState>- );- }-- return (- <div id="dashboard">- <LayoutSidebar- {...{- organizationId,- projectId,- organizations,- projects,- dashboards,- }}- />- <LayoutContent>{children}</LayoutContent>- <SideEffects organization={organization} />- </div>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/page-layout.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/page-layout.tsxdeleted file mode 100644index 7589b4ef0..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/page-layout.tsx+++ /dev/null@@ -1,15 +0,0 @@-interface PageLayoutProps {- title: React.ReactNode;-}--function PageLayout({ title }: PageLayoutProps) {- return (- <>- <div className="sticky top-0 z-20 flex h-16 flex-shrink-0 items-center justify-between border-b border-border bg-card px-4 pl-14 lg:pl-4">- <div className="text-xl font-medium">{title}</div>- </div>- </>- );-}--export default PageLayout;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/pages/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/pages/page.tsxdeleted file mode 100644index 933771d03..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/pages/page.tsx+++ /dev/null@@ -1,34 +0,0 @@-import { PageTabs, PageTabsLink } from '@/components/page-tabs';-import { Padding } from '@/components/ui/padding';-import { parseAsStringEnum } from 'nuqs/server';--import { Pages } from './pages';--interface PageProps {- params: {- projectId: string;- };- searchParams: {- tab: string;- };-}--export default function Page({- params: { projectId },- searchParams,-}: PageProps) {- const tab = parseAsStringEnum(['pages', 'trends'])- .withDefault('pages')- .parseServerSide(searchParams.tab);-- return (- <Padding>- <PageTabs className="mb-4">- <PageTabsLink href="?tab=pages" isActive={tab === 'pages'}>- Pages- </PageTabsLink>- </PageTabs>- {tab === 'pages' && <Pages projectId={projectId} />}- </Padding>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/pages/pages.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/pages/pages.tsxdeleted file mode 100644index 3195af0f6..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/pages/pages.tsx+++ /dev/null@@ -1,193 +0,0 @@-'use client';--import { TableButtons } from '@/components/data-table';-import { Input } from '@/components/ui/input';-import { useDebounceValue } from '@/hooks/useDebounceValue';-import { type RouterOutputs, api } from '@/trpc/client';-import { parseAsInteger, useQueryState } from 'nuqs';--import { OverviewFiltersDrawer } from '@/components/overview/filters/overview-filters-drawer';-import { OverviewInterval } from '@/components/overview/overview-interval';-import { OverviewRange } from '@/components/overview/overview-range';-import { useOverviewOptions } from '@/components/overview/useOverviewOptions';-import { Pagination } from '@/components/pagination';-import { ReportChart } from '@/components/report-chart';-import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';-import { useNumber } from '@/hooks/useNumerFormatter';-import type { IChartRange, IInterval } from '@openpanel/validation';-import { memo } from 'react';--export function Pages({ projectId }: { projectId: string }) {- const take = 20;- const { range, interval } = useOverviewOptions();- const [filters, setFilters] = useEventQueryFilters();- const [cursor, setCursor] = useQueryState(- 'cursor',- parseAsInteger.withDefault(0),- );- const [search, setSearch] = useQueryState('search', {- defaultValue: '',- shallow: true,- });- const debouncedSearch = useDebounceValue(search, 500);- const query = api.event.pages.useQuery(- {- projectId,- cursor,- take,- search: debouncedSearch,- range,- interval,- filters,- },- {- keepPreviousData: true,- },- );- const data = query.data ?? [];-- return (- <>- <TableButtons>- <OverviewRange />- <OverviewInterval />- <OverviewFiltersDrawer projectId={projectId} mode="events" />- <Input- className="self-auto"- placeholder="Search path"- value={search ?? ''}- onChange={(e) => {- setSearch(e.target.value);- setCursor(0);- }}- />- </TableButtons>- <div className="grid grid-cols-1 md:grid-cols-2 gap-4">- {data.map((page) => {- return (- <PageCard- key={page.path}- page={page}- range={range}- interval={interval}- projectId={projectId}- />- );- })}- </div>- <div className="p-4">- <Pagination- take={20}- count={9999}- cursor={cursor}- setCursor={setCursor}- className="self-auto"- size="base"- loading={query.isFetching}- />- </div>- </>- );-}--const PageCard = memo(- ({- page,- range,- interval,- projectId,- }: {- page: RouterOutputs['event']['pages'][number];- range: IChartRange;- interval: IInterval;- projectId: string;- }) => {- const number = useNumber();- return (- <div className="card">- <div className="row gap-4 justify-between p-4 py-2 items-center">- <div className="col min-w-0">- <div className="font-medium leading-[28px] truncate">- {page.title}- </div>- <a- target="_blank"- rel="noreferrer"- href={`${page.origin}${page.path}`}- className="text-muted-foreground font-mono truncate hover:underline"- >- {page.path}- </a>- </div>- </div>- <div className="row border-y">- <div className="center-center col flex-1 p-4 py-2">- <div className="font-medium text-xl font-mono">- {number.formatWithUnit(page.avg_duration, 'min')}- </div>- <div className="text-muted-foreground whitespace-nowrap text-sm">- duration- </div>- </div>- <div className="center-center col flex-1 p-4 py-2">- <div className="font-medium text-xl font-mono">- {number.formatWithUnit(page.bounce_rate / 100, '%')}- </div>- <div className="text-muted-foreground whitespace-nowrap text-sm">- bounce rate- </div>- </div>- <div className="center-center col flex-1 p-4 py-2">- <div className="font-medium text-xl font-mono">- {number.format(page.sessions)}- </div>- <div className="text-muted-foreground whitespace-nowrap text-sm">- sessions- </div>- </div>- </div>- <ReportChart- options={{- hideID: true,- hideXAxis: true,- hideYAxis: true,- aspectRatio: 0.15,- }}- report={{- lineType: 'linear',- breakdowns: [],- name: 'screen_view',- metric: 'sum',- range,- interval,- previous: true,-- chartType: 'linear',- projectId,- events: [- {- id: 'A',- name: 'screen_view',- segment: 'event',- filters: [- {- id: 'path',- name: 'path',- value: [page.path],- operator: 'is',- },- {- id: 'origin',- name: 'origin',- value: [page.origin],- operator: 'is',- },- ],- },- ],- }}- />- </div>- );- },-);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/most-events/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/most-events/index.tsxdeleted file mode 100644index 7220cdae3..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/most-events/index.tsx+++ /dev/null@@ -1,20 +0,0 @@-import withLoadingWidget from '@/hocs/with-loading-widget';-import { escape } from 'sqlstring';--import { TABLE_NAMES, chQuery } from '@openpanel/db';--import MostEvents from './most-events';--type Props = {- projectId: string;- profileId: string;-};--const MostEventsServer = async ({ projectId, profileId }: Props) => {- const data = await chQuery<{ count: number; name: string }>(- `SELECT count(*) as count, name FROM ${TABLE_NAMES.events} WHERE name NOT IN ('screen_view', 'session_start', 'session_end') AND project_id = ${escape(projectId)} and profile_id = ${escape(profileId)} GROUP BY name ORDER BY count DESC`,- );- return <MostEvents data={data} />;-};--export default withLoadingWidget(MostEventsServer);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/page.tsxdeleted file mode 100644index 347296a44..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/page.tsx+++ /dev/null@@ -1,80 +0,0 @@-import ClickToCopy from '@/components/click-to-copy';-import { ProfileAvatar } from '@/components/profiles/profile-avatar';-import { Padding } from '@/components/ui/padding';-import { getProfileName } from '@/utils/getters';-import { notFound } from 'next/navigation';--import { getProfileById, getProfileByIdCached } from '@openpanel/db';--import MostEventsServer from './most-events';-import PopularRoutesServer from './popular-routes';-import ProfileActivityServer from './profile-activity';-import ProfileCharts from './profile-charts';-import Events from './profile-events';-import ProfileMetrics from './profile-metrics';--interface PageProps {- params: {- projectId: string;- profileId: string;- };- searchParams: {- events?: string;- cursor?: string;- f?: string;- startDate: string;- endDate: string;- };-}--export default async function Page({- params: { projectId, profileId },-}: PageProps) {- const profile = await getProfileById(- decodeURIComponent(profileId),- projectId,- );-- if (!profile) {- return notFound();- }-- return (- <Padding>- <div className="row mb-4 items-center gap-4">- <ProfileAvatar {...profile} />- <div className="min-w-0">- <ClickToCopy value={profile.id}>- <h1 className="max-w-full truncate text-3xl font-semibold">- {getProfileName(profile)}- </h1>- </ClickToCopy>- </div>- </div>- <div>- <div className="grid grid-cols-6 gap-4">- <div className="col-span-6">- <ProfileMetrics projectId={projectId} profile={profile} />- </div>- <div className="col-span-6">- <ProfileActivityServer- profileId={profileId}- projectId={projectId}- />- </div>- <div className="col-span-6 md:col-span-3">- <MostEventsServer profileId={profileId} projectId={projectId} />- </div>- <div className="col-span-6 md:col-span-3">- <PopularRoutesServer profileId={profileId} projectId={projectId} />- </div>-- <ProfileCharts profileId={profileId} projectId={projectId} />- </div>- <div className="mt-8">- <Events profileId={profileId} projectId={projectId} />- </div>- </div>- </Padding>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/popular-routes/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/popular-routes/index.tsxdeleted file mode 100644index c01eca227..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/popular-routes/index.tsx+++ /dev/null@@ -1,20 +0,0 @@-import withLoadingWidget from '@/hocs/with-loading-widget';-import { escape } from 'sqlstring';--import { TABLE_NAMES, chQuery } from '@openpanel/db';--import PopularRoutes from './popular-routes';--type Props = {- projectId: string;- profileId: string;-};--const PopularRoutesServer = async ({ projectId, profileId }: Props) => {- const data = await chQuery<{ count: number; path: string }>(- `SELECT count(*) as count, path FROM ${TABLE_NAMES.events} WHERE name = 'screen_view' AND project_id = ${escape(projectId)} and profile_id = ${escape(profileId)} GROUP BY path ORDER BY count DESC`,- );- return <PopularRoutes data={data} />;-};--export default withLoadingWidget(PopularRoutesServer);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-activity/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-activity/index.tsxdeleted file mode 100644index 61aa195f2..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-activity/index.tsx+++ /dev/null@@ -1,20 +0,0 @@-import withLoadingWidget from '@/hocs/with-loading-widget';-import { escape } from 'sqlstring';--import { TABLE_NAMES, chQuery } from '@openpanel/db';--import ProfileActivity from './profile-activity';--type Props = {- projectId: string;- profileId: string;-};--const ProfileActivityServer = async ({ projectId, profileId }: Props) => {- const data = await chQuery<{ count: number; date: string }>(- `SELECT count(*) as count, toStartOfDay(created_at) as date FROM ${TABLE_NAMES.events} WHERE project_id = ${escape(projectId)} and profile_id = ${escape(profileId)} GROUP BY date ORDER BY date DESC`,- );- return <ProfileActivity data={data} />;-};--export default withLoadingWidget(ProfileActivityServer);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-activity/profile-activity.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-activity/profile-activity.tsxdeleted file mode 100644index d6949c81b..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-activity/profile-activity.tsx+++ /dev/null@@ -1,164 +0,0 @@-'use client';--import { Button } from '@/components/ui/button';-import {- Widget,- WidgetBody,- WidgetHead,- WidgetTitle,-} from '@/components/widget';-import { cn } from '@/utils/cn';-import {- addMonths,- eachDayOfInterval,- endOfMonth,- format,- formatISO,- isSameMonth,- startOfMonth,- subMonths,-} from 'date-fns';-import { ActivityIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';-import { useState } from 'react';--type Props = {- data: { count: number; date: string }[];-};--const ProfileActivity = ({ data }: Props) => {- const [startDate, setStartDate] = useState(startOfMonth(new Date()));- const endDate = endOfMonth(startDate);- return (- <Widget className="w-full">- <WidgetHead className="flex justify-between">- <WidgetTitle icon={ActivityIcon}>Activity</WidgetTitle>- <div className="flex gap-2">- <Button- variant="outline"- size="icon"- onClick={() => setStartDate(subMonths(startDate, 1))}- >- <ChevronLeftIcon size={14} />- </Button>-- <Button- variant="outline"- size="icon"- disabled={isSameMonth(startDate, new Date())}- onClick={() => setStartDate(addMonths(startDate, 1))}- >- <ChevronRightIcon size={14} />- </Button>- </div>- </WidgetHead>- <WidgetBody>- <div className="grid grid-cols-2 gap-4 md:grid-cols-4">- <div>- <div className="mb-2 text-sm">- {format(subMonths(startDate, 3), 'MMMM yyyy')}- </div>- <div className="-m-1 grid grid-cols-7 gap-1 p-1">- {eachDayOfInterval({- start: startOfMonth(subMonths(startDate, 3)),- end: endOfMonth(subMonths(startDate, 3)),- }).map((date) => {- const hit = data.find((item) =>- item.date.includes(- formatISO(date, { representation: 'date' }),- ),- );- return (- <div- key={date.toISOString()}- className={cn(- 'aspect-square w-full rounded',- hit ? 'bg-highlight' : 'bg-def-200',- )}- />- );- })}- </div>- </div>- <div>- <div className="mb-2 text-sm">- {format(subMonths(startDate, 2), 'MMMM yyyy')}- </div>- <div className="-m-1 grid grid-cols-7 gap-1 p-1">- {eachDayOfInterval({- start: startOfMonth(subMonths(startDate, 2)),- end: endOfMonth(subMonths(startDate, 2)),- }).map((date) => {- const hit = data.find((item) =>- item.date.includes(- formatISO(date, { representation: 'date' }),- ),- );- return (- <div- key={date.toISOString()}- className={cn(- 'aspect-square w-full rounded',- hit ? 'bg-highlight' : 'bg-def-200',- )}- />- );- })}- </div>- </div>- <div>- <div className="mb-2 text-sm">- {format(subMonths(startDate, 1), 'MMMM yyyy')}- </div>- <div className="-m-1 grid grid-cols-7 gap-1 p-1">- {eachDayOfInterval({- start: startOfMonth(subMonths(startDate, 1)),- end: endOfMonth(subMonths(startDate, 1)),- }).map((date) => {- const hit = data.find((item) =>- item.date.includes(- formatISO(date, { representation: 'date' }),- ),- );- return (- <div- key={date.toISOString()}- className={cn(- 'aspect-square w-full rounded',- hit ? 'bg-highlight' : 'bg-def-200',- )}- />- );- })}- </div>- </div>- <div>- <div className="mb-2 text-sm">{format(startDate, 'MMMM yyyy')}</div>- <div className="-m-1 grid grid-cols-7 gap-1 p-1">- {eachDayOfInterval({- start: startDate,- end: endDate,- }).map((date) => {- const hit = data.find((item) =>- item.date.includes(- formatISO(date, { representation: 'date' }),- ),- );- return (- <div- key={date.toISOString()}- className={cn(- 'aspect-square w-full rounded',- hit ? 'bg-highlight' : 'bg-def-200',- )}- />- );- })}- </div>- </div>- </div>- </WidgetBody>- </Widget>- );-};--export default ProfileActivity;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsxdeleted file mode 100644index b293d6748..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx+++ /dev/null@@ -1,106 +0,0 @@-'use client';--import { ReportChart } from '@/components/report-chart';-import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { memo } from 'react';--import type { IChartProps } from '@openpanel/validation';--type Props = {- profileId: string;- projectId: string;-};--const ProfileCharts = ({ profileId, projectId }: Props) => {- const pageViewsChart: IChartProps = {- projectId,- chartType: 'linear',- events: [- {- segment: 'event',- filters: [- {- id: 'profile_id',- name: 'profile_id',- operator: 'is',- value: [profileId],- },- ],- id: 'A',- name: 'screen_view',- displayName: 'Events',- },- ],- breakdowns: [- {- id: 'path',- name: 'path',- },- ],- lineType: 'monotone',- interval: 'day',- name: 'Events',- range: '30d',- previous: false,- metric: 'sum',- };-- const eventsChart: IChartProps = {- projectId,- chartType: 'linear',- events: [- {- segment: 'event',- filters: [- {- id: 'profile_id',- name: 'profile_id',- operator: 'is',- value: [profileId],- },- ],- id: 'A',- name: '*',- displayName: 'Events',- },- ],- breakdowns: [- {- id: 'name',- name: 'name',- },- ],- lineType: 'monotone',- interval: 'day',- name: 'Events',- range: '30d',- previous: false,- metric: 'sum',- };-- return (- <>- <Widget className="col-span-6 md:col-span-3">- <WidgetHead>- <span className="title">Page views</span>- </WidgetHead>- <WidgetBody>- <ReportChart report={pageViewsChart} />- </WidgetBody>- </Widget>- <Widget className="col-span-6 md:col-span-3">- <WidgetHead>- <span className="title">Events per day</span>- </WidgetHead>- <WidgetBody>- <ReportChart report={eventsChart} />- </WidgetBody>- </Widget>- </>- );-};--// No clue why I need to check for equality here-export default memo(ProfileCharts, (a, b) => {- return a.profileId === b.profileId && a.projectId === b.projectId;-});diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-events.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-events.tsxdeleted file mode 100644index 586527b89..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-events.tsx+++ /dev/null@@ -1,55 +0,0 @@-'use client';--import { TableButtons } from '@/components/data-table';-import { EventsTable } from '@/components/events/table';-import { EventsTableColumns } from '@/components/events/table/events-table-columns';-import { OverviewFiltersButtons } from '@/components/overview/filters/overview-filters-buttons';-import { OverviewFiltersDrawer } from '@/components/overview/filters/overview-filters-drawer';-import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';-import { api } from '@/trpc/client';-import { Loader2Icon } from 'lucide-react';--type Props = {- projectId: string;- profileId: string;-};--const Events = ({ projectId, profileId }: Props) => {- const [filters] = useEventQueryFilters();- const query = api.event.events.useInfiniteQuery(- {- projectId,- filters,- profileId,- },- {- getNextPageParam: (lastPage) => lastPage.meta.next,- keepPreviousData: true,- },- );-- return (- <div>- <TableButtons>- <OverviewFiltersDrawer- mode="events"- projectId={projectId}- enableEventsFilter- />- <OverviewFiltersButtons className="justify-end p-0" />- <EventsTableColumns />- {query.isRefetching && (- <div className="center-center size-8 rounded border bg-background">- <Loader2Icon- size={12}- className="size-4 shrink-0 animate-spin text-black text-highlight"- />- </div>- )}- </TableButtons>- <EventsTable query={query} />- </div>- );-};--export default Events;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-metrics/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-metrics/index.tsxdeleted file mode 100644index 36900b689..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-metrics/index.tsx+++ /dev/null@@ -1,18 +0,0 @@-import withSuspense from '@/hocs/with-suspense';--import type { IServiceProfile } from '@openpanel/db';-import { getProfileMetrics } from '@openpanel/db';--import ProfileMetrics from './profile-metrics';--type Props = {- projectId: string;- profile: IServiceProfile;-};--const ProfileMetricsServer = async ({ projectId, profile }: Props) => {- const data = await getProfileMetrics(profile.id, projectId);- return <ProfileMetrics data={data} profile={profile} />;-};--export default withSuspense(ProfileMetricsServer, () => null);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-metrics/profile-metrics.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-metrics/profile-metrics.tsxdeleted file mode 100644index 73ec37fd6..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-metrics/profile-metrics.tsx+++ /dev/null@@ -1,123 +0,0 @@-'use client';--import { ListPropertiesIcon } from '@/components/events/list-properties-icon';-import { useNumber } from '@/hooks/useNumerFormatter';-import { cn } from '@/utils/cn';-import { formatDateTime, utc } from '@/utils/date';-import { formatDistanceToNow } from 'date-fns';-import { parseAsStringEnum, useQueryState } from 'nuqs';--import type { IProfileMetrics, IServiceProfile } from '@openpanel/db';--type Props = {- data: IProfileMetrics;- profile: IServiceProfile;-};--function Card({ title, value }: { title: string; value: string }) {- return (- <div className="col gap-2 p-4 ring-[0.5px] ring-border">- <div className="text-muted-foreground">{title}</div>- <div className="truncate font-mono text-2xl font-bold">{value}</div>- </div>- );-}--function Info({ title, value }: { title: string; value: string }) {- return (- <div className="col gap-2">- <div className="capitalize text-muted-foreground">{title}</div>- <div className="truncate font-mono">- {value- ? typeof value === 'string'- ? value- : JSON.stringify(value)- : '-'}- </div>- </div>- );-}--const ProfileMetrics = ({ data, profile }: Props) => {- const [tab, setTab] = useQueryState(- 'tab',- parseAsStringEnum(['profile', 'properties']).withDefault('profile'),- );- const number = useNumber();- return (- <div className="@container">- <div className="grid grid-cols-2 overflow-hidden whitespace-nowrap rounded-md border bg-background @xl:grid-cols-3 @4xl:grid-cols-6">- <div className="col-span-2 @xl:col-span-3 @4xl:col-span-6">- <div className="row border-b">- <button- type="button"- onClick={() => setTab('profile')}- className={cn(- 'p-4',- 'opacity-50',- tab === 'profile' &&- 'border-b border-foreground text-foreground opacity-100',- )}- >- Profile- </button>- <div className="h-full w-px bg-border" />- <button- type="button"- onClick={() => setTab('properties')}- className={cn(- 'p-4',- 'opacity-50',- tab === 'properties' &&- 'border-b border-foreground text-foreground opacity-100',- )}- >- Properties- </button>- </div>- <div className="grid grid-cols-2 gap-4 p-4">- {tab === 'profile' && (- <>- <Info title="ID" value={profile.id} />- <Info title="First name" value={profile.firstName} />- <Info title="Last name" value={profile.lastName} />- <Info title="Email" value={profile.email} />- <Info- title="Updated"- value={formatDateTime(new Date(profile.createdAt))}- />- <ListPropertiesIcon {...profile.properties} />- </>- )}- {tab === 'properties' &&- Object.entries(profile.properties)- .filter(([key, value]) => value !== undefined)- .map(([key, value]) => (- <Info key={key} title={key} value={value as string} />- ))}- </div>- </div>- <Card- title="First seen"- value={formatDistanceToNow(utc(data.firstSeen))}- />- <Card- title="Last seen"- value={formatDistanceToNow(utc(data.lastSeen))}- />- <Card title="Sessions" value={number.format(data.sessions)} />- <Card- title="Avg. Session"- value={number.formatWithUnit(data.durationAvg / 1000, 'min')}- />- <Card- title="P90. Session"- value={number.formatWithUnit(data.durationP90 / 1000, 'min')}- />- <Card title="Page views" value={number.format(data.screenViews)} />- </div>- </div>- );-};--export default ProfileMetrics;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/page.tsxdeleted file mode 100644index 1f1bb38be..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/page.tsx+++ /dev/null@@ -1,44 +0,0 @@-import { PageTabs, PageTabsLink } from '@/components/page-tabs';-import { Padding } from '@/components/ui/padding';-import { parseAsStringEnum } from 'nuqs/server';--import PowerUsers from './power-users';-import Profiles from './profiles';--interface PageProps {- params: {- projectId: string;- };- searchParams: Record<string, string>;-}--export default function Page({- params: { projectId },- searchParams,-}: PageProps) {- const tab = parseAsStringEnum(['profiles', 'power-users'])- .withDefault('profiles')- .parseServerSide(searchParams.tab);-- return (- <>- <Padding>- <div className="mb-4">- <PageTabs>- <PageTabsLink href={'?tab=profiles'} isActive={tab === 'profiles'}>- Profiles- </PageTabsLink>- <PageTabsLink- href={'?tab=power-users'}- isActive={tab === 'power-users'}- >- Power users- </PageTabsLink>- </PageTabs>- </div>- {tab === 'profiles' && <Profiles projectId={projectId} />}- {tab === 'power-users' && <PowerUsers projectId={projectId} />}- </Padding>- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/power-users.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/power-users.tsxdeleted file mode 100644index e4da65ebe..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/power-users.tsx+++ /dev/null@@ -1,41 +0,0 @@-'use client';--import { ProfilesTable } from '@/components/profiles/table';-import { api } from '@/trpc/client';-import { parseAsInteger, useQueryState } from 'nuqs';--type Props = {- projectId: string;- profileId?: string;-};--const Events = ({ projectId }: Props) => {- const [cursor, setCursor] = useQueryState(- 'cursor',- parseAsInteger.withDefault(0),- );- const query = api.profile.powerUsers.useQuery(- {- cursor,- projectId,- take: 50,- // filters,- },- {- keepPreviousData: true,- },- );-- return (- <div>- <ProfilesTable- query={query}- cursor={cursor}- setCursor={setCursor}- type="power-users"- />- </div>- );-};--export default Events;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-last-seen/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-last-seen/index.tsxdeleted file mode 100644index 2f74747f0..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-last-seen/index.tsx+++ /dev/null@@ -1,68 +0,0 @@-import {- Tooltip,- TooltipContent,- TooltipTrigger,-} from '@/components/ui/tooltip';-import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { cn } from '@/utils/cn';-import { escape } from 'sqlstring';--import { TABLE_NAMES, chQuery } from '@openpanel/db';--interface Props {- projectId: string;-}--export default async function ProfileLastSeenServer({ projectId }: Props) {- interface Row {- days: number;- count: number;- }- // Days since last event from users- // group by days- const res = await chQuery<Row>(- `SELECT age('days',created_at, now()) as days, count(distinct profile_id) as count FROM ${TABLE_NAMES.events} where project_id = ${escape(projectId)} group by days order by days ASC LIMIT 51`,- );-- const maxValue = Math.max(...res.map((x) => x.count));- const minValue = Math.min(...res.map((x) => x.count));- const calculateRatio = (currentValue: number) =>- Math.max(- 0.1,- Math.min(1, (currentValue - minValue) / (maxValue - minValue)),- );-- const renderItem = (item: Row) => (- <div className="flex w-1/12 flex-col items-center p-1">- <Tooltip>- <TooltipTrigger asChild>- <div- className={cn('aspect-square w-full shrink-0 rounded bg-highlight')}- style={{- opacity: calculateRatio(item.count),- }}- />- </TooltipTrigger>- <TooltipContent>- {item.count} profiles last seen{' '}- {item.days === 0 ? 'today' : `${item.days} days ago`}- </TooltipContent>- </Tooltip>- <div className="mt-1 text-[10px]">{item.days}</div>- </div>- );-- return (- <Widget className="w-full">- <WidgetHead>- <div className="title">Last seen</div>- </WidgetHead>- <WidgetBody>- <div className="flex w-full flex-wrap items-start justify-start">- {res.map(renderItem)}- </div>- <div className="text-center text-sm text-muted-foreground">DAYS</div>- </WidgetBody>- </Widget>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profiles.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profiles.tsxdeleted file mode 100644index e751ae264..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profiles.tsx+++ /dev/null@@ -1,51 +0,0 @@-'use client';--import { TableButtons } from '@/components/data-table';-import { ProfilesTable } from '@/components/profiles/table';-import { Input } from '@/components/ui/input';-import { useDebounceValue } from '@/hooks/useDebounceValue';-import { api } from '@/trpc/client';-import { parseAsInteger, useQueryState } from 'nuqs';--type Props = {- projectId: string;- profileId?: string;-};--const Events = ({ projectId }: Props) => {- const [cursor, setCursor] = useQueryState(- 'cursor',- parseAsInteger.withDefault(0),- );- const [search, setSearch] = useQueryState('search', {- defaultValue: '',- shallow: true,- });- const debouncedSearch = useDebounceValue(search, 500);- const query = api.profile.list.useQuery(- {- cursor,- projectId,- take: 50,- search: debouncedSearch,- },- {- keepPreviousData: true,- },- );-- return (- <div>- <TableButtons>- <Input- value={search}- onChange={(e) => setSearch(e.target.value)}- placeholder="Search profiles"- />- </TableButtons>- <ProfilesTable query={query} cursor={cursor} setCursor={setCursor} />- </div>- );-};--export default Events;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/coordinates.ts b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/coordinates.tsdeleted file mode 100644index 7e430cae7..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/coordinates.ts+++ /dev/null@@ -1,222 +0,0 @@-export type Coordinate = {- lat: number;- long: number;-};--export function haversineDistance(- coord1: Coordinate,- coord2: Coordinate,-): number {- const R = 6371; // Earth's radius in kilometers- const lat1Rad = coord1.lat * (Math.PI / 180);- const lat2Rad = coord2.lat * (Math.PI / 180);- const deltaLatRad = (coord2.lat - coord1.lat) * (Math.PI / 180);- const deltaLonRad = (coord2.long - coord1.long) * (Math.PI / 180);-- const a =- Math.sin(deltaLatRad / 2) * Math.sin(deltaLatRad / 2) +- Math.cos(lat1Rad) *- Math.cos(lat2Rad) *- Math.sin(deltaLonRad / 2) *- Math.sin(deltaLonRad / 2);- const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));-- return R * c; // Distance in kilometers-}--export function findFarthestPoints(- coordinates: Coordinate[],-): [Coordinate, Coordinate] {- if (coordinates.length < 2) {- throw new Error('At least two coordinates are required');- }-- let maxDistance = 0;- let point1: Coordinate = coordinates[0]!;- let point2: Coordinate = coordinates[1]!;-- for (let i = 0; i < coordinates.length; i++) {- for (let j = i + 1; j < coordinates.length; j++) {- const distance = haversineDistance(coordinates[i]!, coordinates[j]!);- if (distance > maxDistance) {- maxDistance = distance;- point1 = coordinates[i]!;- point2 = coordinates[j]!;- }- }- }-- return [point1, point2];-}--export function getAverageCenter(coordinates: Coordinate[]): Coordinate {- if (coordinates.length === 0) {- return { long: 0, lat: 20 };- }-- let sumLong = 0;- let sumLat = 0;-- for (const coord of coordinates) {- sumLong += coord.long;- sumLat += coord.lat;- }-- const avgLat = sumLat / coordinates.length;- const avgLong = sumLong / coordinates.length;-- return { long: avgLong, lat: avgLat };-}--function sortCoordinates(a: Coordinate, b: Coordinate): number {- return a.long === b.long ? a.lat - b.lat : a.long - b.long;-}--function cross(o: Coordinate, a: Coordinate, b: Coordinate): number {- return (- (a.long - o.long) * (b.lat - o.lat) - (a.lat - o.lat) * (b.long - o.long)- );-}--// convex hull-export function getOuterMarkers(coordinates: Coordinate[]): Coordinate[] {- const sorted = coordinates.sort(sortCoordinates);-- if (sorted.length <= 3) return sorted;-- const lower: Coordinate[] = [];- for (const coord of sorted) {- while (- lower.length >= 2 &&- cross(lower[lower.length - 2]!, lower[lower.length - 1]!, coord) <= 0- ) {- lower.pop();- }- lower.push(coord);- }-- const upper: Coordinate[] = [];- for (let i = coordinates.length - 1; i >= 0; i--) {- while (- upper.length >= 2 &&- cross(upper[upper.length - 2]!, upper[upper.length - 1]!, sorted[i]!) <= 0- ) {- upper.pop();- }- upper.push(sorted[i]!);- }-- upper.pop();- lower.pop();- return lower.concat(upper);-}--export function calculateCentroid(polygon: Coordinate[]): Coordinate {- if (polygon.length < 3) {- throw new Error('At least three points are required to form a polygon.');- }-- let area = 0;- let centroidLat = 0;- let centroidLong = 0;-- for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {- const x0 = polygon[j]!.long;- const y0 = polygon[j]!.lat;- const x1 = polygon[i]!.long;- const y1 = polygon[i]!.lat;- const a = x0 * y1 - x1 * y0;- area += a;- centroidLong += (x0 + x1) * a;- centroidLat += (y0 + y1) * a;- }-- area = area / 2;- if (area === 0) {- // This should not happen for a proper convex hull- throw new Error('Area of the polygon is zero, check the coordinates.');- }-- centroidLat /= 6 * area;- centroidLong /= 6 * area;-- return { lat: centroidLat, long: centroidLong };-}--export function calculateGeographicMidpoint(- coordinate: Coordinate[],-): Coordinate {- let minLat = Number.POSITIVE_INFINITY;- let maxLat = Number.NEGATIVE_INFINITY;- let minLong = Number.POSITIVE_INFINITY;- let maxLong = Number.NEGATIVE_INFINITY;-- for (const { lat, long } of coordinate) {- if (lat < minLat) minLat = lat;- if (lat > maxLat) maxLat = lat;- if (long < minLong) minLong = long;- if (long > maxLong) maxLong = long;- }-- // Handling the wrap around the international date line- let midLong: number;- if (maxLong > minLong) {- midLong = (maxLong + minLong) / 2;- } else {- // Adjust calculation when spanning the dateline- midLong = ((maxLong + 360 + minLong) / 2) % 360;- }-- const midLat = (maxLat + minLat) / 2;-- return { lat: midLat, long: midLong };-}--export function clusterCoordinates(coordinates: Coordinate[], radius = 25) {- const clusters: {- center: Coordinate;- count: number;- members: Coordinate[];- }[] = [];- const visited = new Set<number>();-- coordinates.forEach((coord, idx) => {- if (!visited.has(idx)) {- const cluster = {- members: [coord],- center: { lat: coord.lat, long: coord.long },- count: 0,- };-- coordinates.forEach((otherCoord, otherIdx) => {- if (- !visited.has(otherIdx) &&- haversineDistance(coord, otherCoord) <= radius- ) {- cluster.members.push(otherCoord);- visited.add(otherIdx);- cluster.count++;- }- });-- // Calculate geographic center for the cluster- cluster.center = cluster.members.reduce(- (center, cur) => {- return {- lat: center.lat + cur.lat / cluster.members.length,- long: center.long + cur.long / cluster.members.length,- };- },- { lat: 0, long: 0 },- );-- clusters.push(cluster);- }- });-- return clusters.map((cluster) => ({- center: cluster.center,- count: cluster.count,- members: cluster.members,- }));-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/index.tsxdeleted file mode 100644index 59700e8af..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/index.tsx+++ /dev/null@@ -1,20 +0,0 @@-import { subMinutes } from 'date-fns';-import { escape } from 'sqlstring';--import { TABLE_NAMES, chQuery, formatClickhouseDate } from '@openpanel/db';--import type { Coordinate } from './coordinates';-import Map from './map';--type Props = {- projectId: string;-};-const RealtimeMap = async ({ projectId }: Props) => {- const res = await chQuery<Coordinate>(- `SELECT DISTINCT city, longitude as long, latitude as lat FROM ${TABLE_NAMES.events} WHERE project_id = ${escape(projectId)} AND created_at >= '${formatClickhouseDate(subMinutes(new Date(), 30))}' ORDER BY created_at DESC`,- );-- return <Map markers={res} />;-};--export default RealtimeMap;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/map.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/map.tsxdeleted file mode 100644index 793031da9..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/map.tsx+++ /dev/null@@ -1,185 +0,0 @@-'use client';--import { useFullscreen } from '@/components/fullscreen-toggle';-import { Tooltiper } from '@/components/ui/tooltip';-import { cn } from '@/utils/cn';-import { bind } from 'bind-event-listener';-import { useTheme } from 'next-themes';-import { Fragment, useEffect, useRef, useState } from 'react';-import {- ComposableMap,- Geographies,- Geography,- Marker,-} from 'react-simple-maps';--import type { Coordinate } from './coordinates';-import {- calculateGeographicMidpoint,- clusterCoordinates,- getAverageCenter,- getOuterMarkers,-} from './coordinates';-import {- CustomZoomableGroup,- GEO_MAP_URL,- determineZoom,- getBoundingBox,- useAnimatedState,-} from './map.helpers';-import { calculateMarkerSize } from './markers';--type Props = {- markers: Coordinate[];-};-const Map = ({ markers }: Props) => {- const [isFullscreen] = useFullscreen();- const showCenterMarker = false;- const ref = useRef<HTMLDivElement>(null);- const [size, setSize] = useState<{ width: number; height: number } | null>(- null,- );-- // const { markers, toggle } = useActiveMarkers(_m);- const hull = getOuterMarkers(markers);- const center =- hull.length < 2- ? getAverageCenter(markers)- : calculateGeographicMidpoint(hull);- const boundingBox = getBoundingBox(hull);- const [zoom] = useAnimatedState(- markers.length === 1- ? 1- : determineZoom(boundingBox, size ? size?.height / size?.width : 1),- );-- const [long] = useAnimatedState(center.long);- const [lat] = useAnimatedState(center.lat);-- useEffect(() => {- return bind(window, {- type: 'resize',- listener() {- if (ref.current) {- setSize({- width: ref.current.clientWidth,- height: ref.current.clientHeight,- });- }- },- });- }, []);-- useEffect(() => {- if (ref.current) {- setSize({- width: ref.current.clientWidth,- height: ref.current.clientHeight,- });- }- }, []);-- const adjustSizeBasedOnZoom = (size: number) => {- const minMultiplier = 1;- const maxMultiplier = 7;-- // Linearly interpolate the multiplier based on the zoom level- const multiplier =- maxMultiplier - ((zoom - 1) * (maxMultiplier - minMultiplier)) / (20 - 1);-- return size * multiplier;- };-- const theme = useTheme();-- return (- <div className={cn('absolute bottom-0 left-0 right-0 top-0')} ref={ref}>- {size === null ? (- <></>- ) : (- <>- <ComposableMap- projection="geoMercator"- projectionConfig={{- rotate: [0, 0, 0],- scale: 100 * 20,- }}- >- <CustomZoomableGroup zoom={zoom * 0.06} center={[long, lat]}>- <Geographies geography={GEO_MAP_URL}>- {({ geographies }) =>- geographies.map((geo) => (- <Geography- key={geo.rsmKey}- geography={geo}- fill={theme.resolvedTheme === 'dark' ? '#000' : '#e5eef6'}- stroke={- theme.resolvedTheme === 'dark' ? '#333' : '#bcccda'- }- pointerEvents={'none'}- />- ))- }- </Geographies>- {showCenterMarker && (- <Marker coordinates={[center.long, center.lat]}>- <circle- r={adjustSizeBasedOnZoom(30)}- fill="green"- stroke="#fff"- strokeWidth={adjustSizeBasedOnZoom(2)}- />- </Marker>- )}- {clusterCoordinates(markers).map((marker) => {- const size = adjustSizeBasedOnZoom(- calculateMarkerSize(marker.count),- );- const coordinates: [number, number] = [- marker.center.long,- marker.center.lat,- ];- return (- <Fragment key={coordinates.join('-')}>- <Marker coordinates={coordinates}>- <circle- r={size}- fill={- theme.resolvedTheme === 'dark' ? '#3d79ff' : '#2266ec'- }- className="animate-ping opacity-20"- />- </Marker>- <Tooltiper asChild content={`${marker.count} visitors`}>- <Marker coordinates={coordinates}>- <circle- r={size}- fill={- theme.resolvedTheme === 'dark'- ? '#3d79ff'- : '#2266ec'- }- fillOpacity={0.5}- />- </Marker>- </Tooltiper>- </Fragment>- );- })}- </CustomZoomableGroup>- </ComposableMap>- </>- )}- {/* <Button- className="fixed bottom-[100px] left-[320px] z-50 opacity-0"- onClick={() => {- toggle();- }}- >- Toogle- </Button> */}- </div>- );-};--export default Map;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/page.tsxdeleted file mode 100644index 12e6485f2..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/page.tsx+++ /dev/null@@ -1,145 +0,0 @@-import {- Fullscreen,- FullscreenClose,- FullscreenOpen,-} from '@/components/fullscreen-toggle';-import { ReportChart } from '@/components/report-chart';-import { Suspense } from 'react';--import RealtimeMap from './map';-import RealtimeLiveEventsServer from './realtime-live-events';-import { RealtimeLiveHistogram } from './realtime-live-histogram';-import RealtimeReloader from './realtime-reloader';--type Props = {- params: {- projectId: string;- };-};-export default function Page({ params: { projectId } }: Props) {- return (- <>- <Fullscreen>- <FullscreenClose />- <RealtimeReloader projectId={projectId} />- <Suspense>- <RealtimeMap projectId={projectId} />- </Suspense>-- <div className="row relative z-10 min-h-screen items-start gap-4 overflow-hidden p-8">- <FullscreenOpen />- <div className="card min-w-52 bg-card/80 p-4 md:min-w-80">- <RealtimeLiveHistogram projectId={projectId} />- </div>- <div className="col-span-2">- <RealtimeLiveEventsServer projectId={projectId} limit={5} />- </div>- </div>- <div className="relative z-10 -mt-32 grid gap-4 p-8 md:grid-cols-3">- <div className="card p-4">- <div className="mb-6">- <div className="font-bold">Pages</div>- </div>- <ReportChart- options={{- hideID: true,- }}- report={{- projectId,- events: [- {- filters: [],- segment: 'event',- id: 'A',- name: 'screen_view',- },- ],- breakdowns: [- {- id: 'A',- name: 'path',- },- ],- chartType: 'bar',- lineType: 'monotone',- interval: 'minute',- name: 'Top sources',- range: '30min',- previous: false,- metric: 'sum',- }}- />- </div>- <div className="card p-4">- <div className="mb-6">- <div className="font-bold">Cities</div>- </div>- <ReportChart- options={{- hideID: true,- }}- report={{- projectId,- events: [- {- segment: 'event',- filters: [],- id: 'A',- name: 'session_start',- },- ],- breakdowns: [- {- id: 'A',- name: 'city',- },- ],- chartType: 'bar',- lineType: 'monotone',- interval: 'minute',- name: 'Top sources',- range: '30min',- previous: false,- metric: 'sum',- }}- />- </div>- <div className="card p-4">- <div className="mb-6">- <div className="font-bold">Referrers</div>- </div>- <ReportChart- options={{- hideID: true,- }}- report={{- projectId,- events: [- {- segment: 'event',- filters: [],- id: 'A',- name: 'session_start',- },- ],- breakdowns: [- {- id: 'A',- name: 'referrer_name',- },- ],- chartType: 'bar',- lineType: 'monotone',- interval: 'minute',- name: 'Top sources',- range: '30min',- previous: false,- metric: 'sum',- }}- />- </div>- </div>- </Fullscreen>- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-events/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-events/index.tsxdeleted file mode 100644index 6fc9523fc..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-events/index.tsx+++ /dev/null@@ -1,21 +0,0 @@-import { escape } from 'sqlstring';--import { TABLE_NAMES, getEvents } from '@openpanel/db';--import LiveEvents from './live-events';--type Props = {- projectId: string;- limit?: number;-};-const RealtimeLiveEventsServer = async ({ projectId, limit = 30 }: Props) => {- const events = await getEvents(- `SELECT * FROM ${TABLE_NAMES.events} WHERE created_at > now() - INTERVAL 2 HOUR AND project_id = ${escape(projectId)} ORDER BY created_at DESC LIMIT ${limit}`,- {- profile: true,- },- );- return <LiveEvents events={events} projectId={projectId} limit={limit} />;-};--export default RealtimeLiveEventsServer;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-events/live-events.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-events/live-events.tsxdeleted file mode 100644index 75cc06e68..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-events/live-events.tsx+++ /dev/null@@ -1,46 +0,0 @@-'use client';--import { EventListItem } from '@/components/events/event-list-item';-import useWS from '@/hooks/useWS';-import { AnimatePresence, motion } from 'framer-motion';-import { useState } from 'react';--import type { IServiceEvent, IServiceEventMinimal } from '@openpanel/db';--type Props = {- events: (IServiceEventMinimal | IServiceEvent)[];- projectId: string;- limit: number;-};--const RealtimeLiveEvents = ({ events, projectId, limit }: Props) => {- const [state, setState] = useState(events ?? []);- useWS<IServiceEventMinimal | IServiceEvent>(- `/live/events/${projectId}`,- (event) => {- setState((p) => [event, ...p].slice(0, limit));- },- );- return (- <AnimatePresence mode="popLayout" initial={false}>- <div className="flex gap-4">- {state.map((event) => (- <motion.div- key={event.id}- layout- initial={{ opacity: 0, y: -200, x: 0, scale: 0.5 }}- animate={{ opacity: 1, y: 0, x: 0, scale: 1 }}- exit={{ opacity: 0, y: 0, x: 200, scale: 1.2 }}- transition={{ duration: 0.6, type: 'spring' }}- >- <div className="w-[380px]">- <EventListItem {...event} />- </div>- </motion.div>- ))}- </div>- </AnimatePresence>- );-};--export default RealtimeLiveEvents;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-reloader.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-reloader.tsxdeleted file mode 100644index 688d9d9c2..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-reloader.tsx+++ /dev/null@@ -1,35 +0,0 @@-'use client';--import useWS from '@/hooks/useWS';-import { useQueryClient } from '@tanstack/react-query';-import { useRouter } from 'next/navigation';--type Props = {- projectId: string;-};--const RealtimeReloader = ({ projectId }: Props) => {- const client = useQueryClient();- const router = useRouter();-- useWS<number>(- `/live/events/${projectId}`,- () => {- if (!document.hidden) {- client.refetchQueries({- type: 'active',- });- }- },- {- debounce: {- maxWait: 60000,- delay: 60000,- },- },- );-- return null;-};--export default RealtimeReloader;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/reports/[reportId]/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/reports/[reportId]/page.tsxdeleted file mode 100644index 4e9a7bc32..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/reports/[reportId]/page.tsx+++ /dev/null@@ -1,29 +0,0 @@-import PageLayout from '@/app/(app)/[organizationSlug]/[projectId]/page-layout';-import EditReportName from '@/components/report/edit-report-name';-import { notFound } from 'next/navigation';--import { getReportById } from '@openpanel/db';--import ReportEditor from '../report-editor';--interface PageProps {- params: {- projectId: string;- reportId: string;- };-}--export default async function Page({ params: { reportId } }: PageProps) {- const report = await getReportById(reportId);-- if (!report) {- return notFound();- }-- return (- <>- <PageLayout title={<EditReportName name={report.name} />} />- <ReportEditor report={report} />- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/reports/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/reports/page.tsxdeleted file mode 100644index 9ac0223ea..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/reports/page.tsx+++ /dev/null@@ -1,13 +0,0 @@-import PageLayout from '@/app/(app)/[organizationSlug]/[projectId]/page-layout';-import EditReportName from '@/components/report/edit-report-name';--import ReportEditor from './report-editor';--export default function Page() {- return (- <>- <PageLayout title={<EditReportName name={undefined} />} />- <ReportEditor report={null} />- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/chart.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/chart.tsxdeleted file mode 100644index ca1659bb9..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/chart.tsx+++ /dev/null@@ -1,103 +0,0 @@-'use client';--import {- useXAxisProps,- useYAxisProps,-} from '@/components/report-chart/common/axis';-import { getChartColor } from '@/utils/theme';-import {- Area,- AreaChart,- Tooltip as RechartTooltip,- ResponsiveContainer,- XAxis,- YAxis,-} from 'recharts';--type Props = {- data: { users: number; days: number }[];-};--function Tooltip(props: any) {- const payload = props.payload?.[0]?.payload;-- if (!payload) {- return null;- }- return (- <div className="flex min-w-[180px] flex-col gap-2 rounded-xl border bg-card p-3 shadow-xl">- <div>- <div className="text-sm text-muted-foreground">- Days since last seen- </div>- <div className="text-lg font-semibold">{payload.days}</div>- </div>- <div>- <div className="text-sm text-muted-foreground">Active users</div>- <div className="text-lg font-semibold">{payload.users}</div>- </div>- </div>- );-}--const Chart = ({ data }: Props) => {- const xAxisProps = useXAxisProps();- const yAxisProps = useYAxisProps();- return (- <div className="aspect-video max-h-[300px] w-full p-4">- <ResponsiveContainer>- <AreaChart data={data}>- <defs>- <linearGradient id="bg" x1="0" y1="0" x2="0" y2="1">- <stop- offset="0%"- stopColor={getChartColor(0)}- stopOpacity={0.8}- />- <stop- offset="100%"- stopColor={getChartColor(0)}- stopOpacity={0.1}- />- </linearGradient>- </defs>-- <RechartTooltip content={<Tooltip />} />-- <Area- dataKey="users"- stroke={getChartColor(0)}- strokeWidth={2}- fill={'url(#bg)'}- isAnimationActive={false}- />- <XAxis- {...xAxisProps}- dataKey="days"- scale="auto"- type="category"- label={{- value: 'DAYS',- position: 'insideBottom',- offset: 0,- fontSize: 10,- }}- />- <YAxis- {...yAxisProps}- label={{- value: 'USERS',- angle: -90,- position: 'insideLeft',- offset: 0,- fontSize: 10,- }}- dataKey="users"- />- </AreaChart>- </ResponsiveContainer>- </div>- );-};--export default Chart;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/index.tsxdeleted file mode 100644index b654d3701..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/index.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { Widget, WidgetHead } from '@/components/widget';-import withLoadingWidget from '@/hocs/with-loading-widget';--import { getRetentionLastSeenSeries } from '@openpanel/db';--import Chart from './chart';--type Props = {- projectId: string;-};--const LastActiveUsersServer = async ({ projectId }: Props) => {- const res = await getRetentionLastSeenSeries({ projectId });-- return (- <Widget className="w-full">- <WidgetHead>- <span className="title">Last time in days a user was active</span>- </WidgetHead>- <Chart data={res} />- </Widget>- );-};--export default withLoadingWidget(LastActiveUsersServer);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/page.tsxdeleted file mode 100644index 39544215a..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/page.tsx+++ /dev/null@@ -1,65 +0,0 @@-import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';-import { Padding } from '@/components/ui/padding';-import { AlertCircleIcon } from 'lucide-react';--import LastActiveUsersServer from './last-active-users';-import RollingActiveUsers from './rolling-active-users';-import UsersRetentionSeries from './users-retention-series';-import WeeklyCohortsServer from './weekly-cohorts';--type Props = {- params: {- projectId: string;- };-};--const Retention = ({ params: { projectId } }: Props) => {- return (- <Padding>- <h1 className="mb-4 text-3xl font-semibold">Retention</h1>- <div className="flex max-w-6xl flex-col gap-8">- <Alert>- <AlertCircleIcon size={18} />- <AlertTitle>Experimental feature</AlertTitle>- <AlertDescription>- <p>- This page is an experimental feature and we'll be working- hard to make it even better. Stay tuned!- </p>- <p>- Please DM me on{' '}- <a- href="https://go.openpanel.dev/discord"- className="font-medium underline"- >- Discord- </a>{' '}- or{' '}- <a- href="https://x.com/OpenPanelDev"- className="font-medium underline"- >- X/Twitter- </a>{' '}- if you notice any issues.- </p>- </AlertDescription>- </Alert>- <RollingActiveUsers projectId={projectId} />- <Alert>- <AlertCircleIcon size={18} />- <AlertTitle>Retention info</AlertTitle>- <AlertDescription>- This information is only relevant if you supply a user ID to the- SDK!- </AlertDescription>- </Alert>- <LastActiveUsersServer projectId={projectId} />- {/* <UsersRetentionSeries projectId={projectId} /> */}- <WeeklyCohortsServer projectId={projectId} />- </div>- </Padding>- );-};--export default Retention;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/chart.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/chart.tsxdeleted file mode 100644index 6b01d8068..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/chart.tsx+++ /dev/null@@ -1,146 +0,0 @@-'use client';--import {- useXAxisProps,- useYAxisProps,-} from '@/components/report-chart/common/axis';-import { getChartColor } from '@/utils/theme';-import {- Area,- AreaChart,- Tooltip as RechartTooltip,- ResponsiveContainer,- XAxis,- YAxis,-} from 'recharts';--import type { IServiceRetentionRollingActiveUsers } from '@openpanel/db';--type Props = {- data: {- daily: IServiceRetentionRollingActiveUsers[];- weekly: IServiceRetentionRollingActiveUsers[];- monthly: IServiceRetentionRollingActiveUsers[];- };-};--function Tooltip(props: any) {- const payload = props.payload?.[2]?.payload;-- if (!payload) {- return null;- }- return (- <div className="flex min-w-[180px] flex-col gap-2 rounded-xl border bg-card p-3 shadow-xl">- <div className="text-sm text-muted-foreground">{payload.date}</div>- <div>- <div className="text-sm text-muted-foreground">- Monthly active users- </div>- <div className="text-lg font-semibold text-chart-2">{payload.mau}</div>- </div>- <div>- <div className="text-sm text-muted-foreground">Weekly active users</div>- <div className="text-lg font-semibold text-chart-1">{payload.wau}</div>- </div>- <div>- <div className="text-sm text-muted-foreground">Daily active users</div>- <div className="text-lg font-semibold text-chart-0">{payload.dau}</div>- </div>- </div>- );-}--const Chart = ({ data }: Props) => {- const rechartData = data.daily.map((d) => ({- date: new Date(d.date).getTime(),- dau: d.users,- wau: data.weekly.find((w) => w.date === d.date)?.users,- mau: data.monthly.find((m) => m.date === d.date)?.users,- }));- const xAxisProps = useXAxisProps({ interval: 'day' });- const yAxisProps = useYAxisProps();- return (- <div className="aspect-video max-h-[300px] w-full p-4">- <ResponsiveContainer>- <AreaChart data={rechartData}>- <defs>- <linearGradient id="dau" x1="0" y1="0" x2="0" y2="1">- <stop- offset="0%"- stopColor={getChartColor(0)}- stopOpacity={0.8}- />- <stop- offset="100%"- stopColor={getChartColor(0)}- stopOpacity={0.1}- />- </linearGradient>- <linearGradient id="wau" x1="0" y1="0" x2="0" y2="1">- <stop- offset="0%"- stopColor={getChartColor(1)}- stopOpacity={0.8}- />- <stop- offset="100%"- stopColor={getChartColor(1)}- stopOpacity={0.1}- />- </linearGradient>- <linearGradient id="mau" x1="0" y1="0" x2="0" y2="1">- <stop- offset="0%"- stopColor={getChartColor(2)}- stopOpacity={0.8}- />- <stop- offset="100%"- stopColor={getChartColor(2)}- stopOpacity={0.1}- />- </linearGradient>- </defs>-- <RechartTooltip content={<Tooltip />} />-- <Area- dataKey="dau"- stroke={getChartColor(0)}- strokeWidth={2}- fill={'url(#dau)'}- isAnimationActive={false}- />- <Area- dataKey="wau"- stroke={getChartColor(1)}- strokeWidth={2}- fill={'url(#wau)'}- isAnimationActive={false}- />- <Area- dataKey="mau"- stroke={getChartColor(2)}- strokeWidth={2}- fill={'url(#mau)'}- isAnimationActive={false}- />- <XAxis {...xAxisProps} dataKey="date" />- <YAxis- {...yAxisProps}- label={{- value: 'UNIQUE USERS',- angle: -90,- position: 'insideLeft',- offset: 0,- fontSize: 10,- }}- />- </AreaChart>- </ResponsiveContainer>- </div>- );-};--export default Chart;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/index.tsxdeleted file mode 100644index f0e1db08c..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/index.tsx+++ /dev/null@@ -1,35 +0,0 @@-import { Widget, WidgetHead } from '@/components/widget';-import withLoadingWidget from '@/hocs/with-loading-widget';--import { getRollingActiveUsers } from '@openpanel/db';--import Chart from './chart';--type Props = {- projectId: string;-};--const RollingActiveUsersServer = async ({ projectId }: Props) => {- const series = await Promise.all([- await getRollingActiveUsers({ projectId, days: 1 }),- await getRollingActiveUsers({ projectId, days: 7 }),- await getRollingActiveUsers({ projectId, days: 30 }),- ]);-- return (- <Widget className="w-full">- <WidgetHead>- <span className="title">Rolling active users</span>- </WidgetHead>- <Chart- data={{- daily: series[0],- weekly: series[1],- monthly: series[2],- }}- />- </Widget>- );-};--export default withLoadingWidget(RollingActiveUsersServer);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/chart.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/chart.tsxdeleted file mode 100644index 8ecd28e6c..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/chart.tsx+++ /dev/null@@ -1,117 +0,0 @@-'use client';--import {- useXAxisProps,- useYAxisProps,-} from '@/components/report-chart/common/axis';-import { useFormatDateInterval } from '@/hooks/useFormatDateInterval';-import { formatDate } from '@/utils/date';-import { getChartColor } from '@/utils/theme';-import {- Area,- AreaChart,- Tooltip as RechartTooltip,- ResponsiveContainer,- XAxis,- YAxis,-} from 'recharts';--import { round } from '@openpanel/common';--type Props = {- data: {- date: string;- active_users: number;- retained_users: number;- retention: number;- }[];-};--function Tooltip({ payload }: any) {- const { date, active_users, retained_users, retention } =- payload?.[0]?.payload || {};- const formatDate = useFormatDateInterval('day');- if (!date) {- return null;- }- return (- <div className="flex min-w-[180px] flex-col gap-2 rounded-xl border bg-card p-3 shadow-xl">- <div className="flex justify-between gap-8">- <div>{formatDate(new Date(date))}</div>- </div>- <div>- <div className="text-sm text-muted-foreground">Active Users</div>- <div className="text-lg font-semibold">{active_users}</div>- </div>- <div>- <div className="text-sm text-muted-foreground">Retained Users</div>- <div className="text-lg font-semibold">{retained_users}</div>- </div>- <div>- <div className="text-sm text-muted-foreground">Retention</div>- <div className="text-lg font-semibold">{round(retention, 2)}%</div>- </div>- </div>- );-}--const Chart = ({ data }: Props) => {- const xAxisProps = useXAxisProps();- const yAxisProps = useYAxisProps();- return (- <div className="aspect-video max-h-[300px] w-full p-4">- <ResponsiveContainer>- <AreaChart data={data}>- <defs>- <linearGradient id="bg" x1="0" y1="0" x2="0" y2="1">- <stop- offset="0%"- stopColor={getChartColor(0)}- stopOpacity={0.8}- />- <stop- offset="100%"- stopColor={getChartColor(0)}- stopOpacity={0.1}- />- </linearGradient>- </defs>-- <RechartTooltip content={<Tooltip />} />-- <Area- dataKey="retention"- stroke={getChartColor(0)}- strokeWidth={2}- fill={'url(#bg)'}- isAnimationActive={false}- />- <XAxis- {...xAxisProps}- dataKey="date"- tickFormatter={(m: string) => formatDate(new Date(m))}- allowDuplicatedCategory={false}- label={{- value: 'DATE',- position: 'insideBottom',- offset: 0,- fontSize: 10,- }}- />- <YAxis- {...yAxisProps}- label={{- value: 'RETENTION (%)',- angle: -90,- position: 'insideLeft',- offset: 0,- fontSize: 10,- }}- />- </AreaChart>- </ResponsiveContainer>- </div>- );-};--export default Chart;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/index.tsxdeleted file mode 100644index 9a87469ed..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/index.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { Widget, WidgetHead } from '@/components/widget';-import withLoadingWidget from '@/hocs/with-loading-widget';--import { getRetentionSeries } from '@openpanel/db';--import Chart from './chart';--type Props = {- projectId: string;-};--const UsersRetentionSeries = async ({ projectId }: Props) => {- const res = await getRetentionSeries({ projectId });-- return (- <Widget className="w-full">- <WidgetHead>- <span className="title">Stickyness / Retention (%)</span>- </WidgetHead>- <Chart data={res} />- </Widget>- );-};--export default withLoadingWidget(UsersRetentionSeries);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/weekly-cohorts/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/weekly-cohorts/index.tsxdeleted file mode 100644index db4c7a54e..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/weekly-cohorts/index.tsx+++ /dev/null@@ -1,132 +0,0 @@-import { Widget, WidgetHead } from '@/components/widget';-import { WidgetTableHead } from '@/components/widget-table';-import withLoadingWidget from '@/hocs/with-loading-widget';-import { cn } from '@/utils/cn';--import { getRetentionCohortTable } from '@openpanel/db';--type Props = {- projectId: string;-};--const Cell = ({ value, ratio }: { value: number; ratio: number }) => {- return (- <td- className={cn('relative h-8 border', ratio !== 0 && 'border-background')}- >- <div- className="absolute inset-0 z-0 bg-highlight"- style={{ opacity: ratio }}- />- <div className="relative z-10">{value}</div>- </td>- );-};--const WeeklyCohortsServer = async ({ projectId }: Props) => {- const res = await getRetentionCohortTable({ projectId });-- const minValue = 0;- const maxValue = Math.max(- ...res.flatMap((row) => [- row.period_0,- row.period_1,- row.period_2,- row.period_3,- row.period_4,- row.period_5,- row.period_6,- row.period_7,- row.period_8,- row.period_9,- ]),- );-- const calculateRatio = (currentValue: number) =>- currentValue === 0- ? 0- : Math.max(- 0.1,- Math.min(1, (currentValue - minValue) / (maxValue - minValue)),- );-- return (- <Widget>- <WidgetHead>- <span className="title">Weekly Cohorts</span>- </WidgetHead>- <div className="overflow-hidden rounded-b-xl">- <div className="-m-px">- <table className="w-full table-fixed border-collapse text-center">- <WidgetTableHead className="[&_th]:border-b-2 [&_th]:!text-center">- <tr>- <th>Week</th>- <th>0</th>- <th>1</th>- <th>2</th>- <th>3</th>- <th>4</th>- <th>5</th>- <th>6</th>- <th>7</th>- <th>8</th>- <th>9</th>- </tr>- </WidgetTableHead>- <tbody>- {res.map((row) => (- <tr key={row.first_seen}>- <td className="text-def-1000 bg-def-100 font-medium">- {row.first_seen}- </td>- <Cell- value={row.period_0}- ratio={calculateRatio(row.period_0)}- />- <Cell- value={row.period_1}- ratio={calculateRatio(row.period_1)}- />- <Cell- value={row.period_2}- ratio={calculateRatio(row.period_2)}- />- <Cell- value={row.period_3}- ratio={calculateRatio(row.period_3)}- />- <Cell- value={row.period_4}- ratio={calculateRatio(row.period_4)}- />- <Cell- value={row.period_5}- ratio={calculateRatio(row.period_5)}- />- <Cell- value={row.period_6}- ratio={calculateRatio(row.period_6)}- />- <Cell- value={row.period_7}- ratio={calculateRatio(row.period_7)}- />- <Cell- value={row.period_8}- ratio={calculateRatio(row.period_8)}- />- <Cell- value={row.period_9}- ratio={calculateRatio(row.period_9)}- />- </tr>- ))}- </tbody>- </table>- </div>- </div>- </Widget>- );-};--export default withLoadingWidget(WeeklyCohortsServer);diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/integrations/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/integrations/page.tsxdeleted file mode 100644index 538518473..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/integrations/page.tsx+++ /dev/null@@ -1,36 +0,0 @@-import { ActiveIntegrations } from '@/components/integrations/active-integrations';-import { AllIntegrations } from '@/components/integrations/all-integrations';-import { PageTabs, PageTabsLink } from '@/components/page-tabs';-import { Padding } from '@/components/ui/padding';-import { parseAsStringEnum } from 'nuqs/server';--interface PageProps {- params: {- projectId: string;- };- searchParams: {- tab: string;- };-}--export default function Page({- params: { projectId },- searchParams,-}: PageProps) {- const tab = parseAsStringEnum(['installed', 'available'])- .withDefault('available')- .parseServerSide(searchParams.tab);- return (- <Padding className="col gap-8">- <div className="col gap-4">- <h2 className="text-3xl font-semibold">Your integrations</h2>- <ActiveIntegrations />- </div>-- <div className="col gap-4">- <h2 className="text-3xl font-semibold">Available integrations</h2>- <AllIntegrations />- </div>- </Padding>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/loading.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/loading.tsxdeleted file mode 100644index 9cf2cf500..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/loading.tsx+++ /dev/null@@ -1,3 +0,0 @@-import FullPageLoadingState from '@/components/full-page-loading-state';--export default FullPageLoadingState;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/notifications/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/notifications/page.tsxdeleted file mode 100644index 93d209303..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/notifications/page.tsx+++ /dev/null@@ -1,40 +0,0 @@-import { NotificationRules } from '@/components/notifications/notification-rules';-import { Notifications } from '@/components/notifications/notifications';-import { PageTabs, PageTabsLink } from '@/components/page-tabs';-import { Padding } from '@/components/ui/padding';-import { parseAsStringEnum } from 'nuqs/server';--interface PageProps {- params: {- projectId: string;- };- searchParams: {- tab: string;- };-}--export default function Page({- params: { projectId },- searchParams,-}: PageProps) {- const tab = parseAsStringEnum(['notifications', 'rules'])- .withDefault('notifications')- .parseServerSide(searchParams.tab);- return (- <Padding>- <PageTabs className="mb-4">- <PageTabsLink- href="?tab=notifications"- isActive={tab === 'notifications'}- >- Notifications- </PageTabsLink>- <PageTabsLink href="?tab=rules" isActive={tab === 'rules'}>- Rules- </PageTabsLink>- </PageTabs>- {tab === 'notifications' && <Notifications />}- {tab === 'rules' && <NotificationRules />}- </Padding>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/invites/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/invites/index.tsxdeleted file mode 100644index 9484d973f..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/invites/index.tsx+++ /dev/null@@ -1,28 +0,0 @@-import { TableButtons } from '@/components/data-table';-import { InvitesTable } from '@/components/settings/invites';--import { getInvites, getProjectsByOrganizationId } from '@openpanel/db';--import CreateInvite from './create-invite';--interface Props {- organizationId: string;-}--const InvitesServer = async ({ organizationId }: Props) => {- const [invites, projects] = await Promise.all([- getInvites(organizationId),- getProjectsByOrganizationId(organizationId),- ]);-- return (- <div>- <TableButtons>- <CreateInvite projects={projects} />- </TableButtons>- <InvitesTable data={invites} projects={projects} />- </div>- );-};--export default InvitesServer;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/loading.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/loading.tsxdeleted file mode 100644index 9cf2cf500..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/loading.tsx+++ /dev/null@@ -1,3 +0,0 @@-import FullPageLoadingState from '@/components/full-page-loading-state';--export default FullPageLoadingState;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/members/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/members/index.tsxdeleted file mode 100644index 971809b0e..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/members/index.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { MembersTable } from '@/components/settings/members';--import { getMembers, getProjectsByOrganizationId } from '@openpanel/db';--interface Props {- organizationId: string;-}--const MembersServer = async ({ organizationId }: Props) => {- const [members, projects] = await Promise.all([- getMembers(organizationId),- getProjectsByOrganizationId(organizationId),- ]);-- return <MembersTable data={members} projects={projects} />;-};--export default MembersServer;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/billing.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/billing.tsxdeleted file mode 100644index ff2ba82c4..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/billing.tsx+++ /dev/null@@ -1,302 +0,0 @@-'use client';--import { Button } from '@/components/ui/button';-import {- Dialog,- DialogClose,- DialogContent,- DialogDescription,- DialogFooter,- DialogTitle,-} from '@/components/ui/dialog';-import { Switch } from '@/components/ui/switch';-import { Tooltiper } from '@/components/ui/tooltip';-import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { WidgetTable } from '@/components/widget-table';-import { useAppParams } from '@/hooks/useAppParams';-import useWS from '@/hooks/useWS';-import { showConfirm } from '@/modals';-import { api } from '@/trpc/client';-import type { IServiceOrganization } from '@openpanel/db';-import { useOpenPanel } from '@openpanel/nextjs';-import type { IPolarPrice } from '@openpanel/payments';-import { Loader2Icon } from 'lucide-react';-import { useRouter } from 'next/navigation';-import { useQueryState } from 'nuqs';-import { useEffect, useMemo, useState } from 'react';-import { toast } from 'sonner';--type Props = {- organization: IServiceOrganization;-};--export default function Billing({ organization }: Props) {- const router = useRouter();- const { projectId } = useAppParams();- const op = useOpenPanel();- const [customerSessionToken, setCustomerSessionToken] = useQueryState(- 'customer_session_token',- );- const productsQuery = api.subscription.products.useQuery({- organizationId: organization.id,- });-- useWS(`/live/organization/${organization.id}`, (event) => {- router.refresh();- });-- const [recurringInterval, setRecurringInterval] = useState<'year' | 'month'>(- (organization.subscriptionInterval as 'year' | 'month') || 'month',- );-- const products = useMemo(() => {- return (productsQuery.data || [])- .filter((product) => product.recurringInterval === recurringInterval)- .filter((product) => product.prices.some((p) => p.amountType !== 'free'));- }, [productsQuery.data, recurringInterval]);-- useEffect(() => {- if (organization.subscriptionInterval) {- setRecurringInterval(- organization.subscriptionInterval as 'year' | 'month',- );- }- }, [organization.subscriptionInterval]);-- useEffect(() => {- if (customerSessionToken) {- op.track('subscription_created');- }- }, [customerSessionToken]);-- function renderBillingTable() {- if (productsQuery.isLoading) {- return (- <div className="center-center p-8">- <Loader2Icon className="animate-spin" />- </div>- );- }- if (productsQuery.isError) {- return (- <div className="center-center p-8 font-medium">- Issues loading all tiers- </div>- );- }- return (- <WidgetTable- className="w-full max-w-full [&_.cell:first-child]:pl-4 [&_.cell:last-child]:pr-4"- columnClassName="!h-auto"- data={products}- keyExtractor={(item) => item.id}- columns={[- {- name: 'Tier',- className: 'text-left',- width: 'auto',- render(item) {- return <div className="font-medium">{item.name}</div>;- },- },- {- name: 'Price',- width: 'auto',- render(item) {- const price = item.prices[0];- if (!price) {- return null;- }-- if (price.amountType === 'free') {- return null;- // return (- // <div className="row gap-2 whitespace-nowrap">- // <div className="items-center text-right justify-end gap-4 flex-1 row">- // <span>Free</span>- // <CheckoutButton- // disabled={item.disabled}- // key={price.id}- // price={price}- // organization={organization}- // projectId={projectId}- // />- // </div>- // </div>- // );- }-- if (price.amountType !== 'fixed') {- return null;- }-- return (- <div className="row gap-2 whitespace-nowrap">- <div className="items-center text-right justify-end gap-4 flex-1 col md:row">- <span>- {new Intl.NumberFormat('en-US', {- style: 'currency',- currency: price.priceCurrency,- minimumFractionDigits: 0,- maximumFractionDigits: 1,- }).format(price.priceAmount / 100)}- {' / '}- {recurringInterval === 'year' ? 'year' : 'month'}- </span>- <CheckoutButton- disabled={item.disabled}- key={price.id}- price={price}- organization={organization}- projectId={projectId}- />- </div>- </div>- );- },- },- ]}- />- );- }-- return (- <>- <Widget className="w-full">- <WidgetHead className="flex items-center justify-between">- <span className="title">Billing</span>- <div className="flex items-center gap-2">- <span className="text-sm text-muted-foreground">- {recurringInterval === 'year'- ? 'Yearly (2 months free)'- : 'Monthly'}- </span>- <Switch- checked={recurringInterval === 'year'}- onCheckedChange={(checked) =>- setRecurringInterval(checked ? 'year' : 'month')- }- />- </div>- </WidgetHead>- <WidgetBody>- <div className="-m-4">- {renderBillingTable()}- <div className="text-center p-4 border-t">- <p>Do you need higher limits? </p>- <p>- Reach out to{' '}- <a- className="underline font-medium"- href="mailto:[email protected]"- >- </a>{' '}- and we'll help you out.- </p>- </div>- </div>- </WidgetBody>- </Widget>- <Dialog- open={!!customerSessionToken}- onOpenChange={(open) => {- setCustomerSessionToken(null);- if (!open) {- router.refresh();- }- }}- >- <DialogContent>- <DialogTitle>Subscription created</DialogTitle>- <DialogDescription>- We have registered your subscription. It'll be activated within a- couple of seconds.- </DialogDescription>- <DialogFooter>- <DialogClose asChild>- <Button>OK</Button>- </DialogClose>- </DialogFooter>- </DialogContent>- </Dialog>- </>- );-}--function CheckoutButton({- price,- organization,- projectId,- disabled,-}: {- price: IPolarPrice;- organization: IServiceOrganization;- projectId: string;- disabled?: string | null;-}) {- const op = useOpenPanel();- const isCurrentPrice = organization.subscriptionPriceId === price.id;- const checkout = api.subscription.checkout.useMutation({- onSuccess(data) {- if (data?.url) {- window.location.href = data.url;- } else {- toast.success('Subscription updated', {- description: 'It might take a few seconds to update',- });- }- },- });-- const isCanceled =- organization.subscriptionStatus === 'active' &&- isCurrentPrice &&- organization.subscriptionCanceledAt;- const isActive =- organization.subscriptionStatus === 'active' && isCurrentPrice;-- return (- <Tooltiper- content={disabled}- tooltipClassName="max-w-xs"- side="left"- disabled={!disabled}- >- <Button- disabled={disabled !== null || (isActive && !isCanceled)}- key={price.id}- onClick={() => {- const createCheckout = () =>- checkout.mutate({- projectId,- organizationId: organization.id,- productPriceId: price!.id,- productId: price.productId,- });-- if (organization.subscriptionStatus === 'active') {- showConfirm({- title: 'Are you sure?',- text: `You're about the change your subscription.`,- onConfirm: () => {- op.track('subscription_change');- createCheckout();- },- });- } else {- op.track('subscription_checkout', {- product: price.productId,- });- createCheckout();- }- }}- loading={checkout.isLoading}- className="w-28"- variant={isActive ? 'outline' : 'default'}- >- {isCanceled ? 'Reactivate' : isActive ? 'Active' : 'Activate'}- </Button>- </Tooltiper>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/usage.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/usage.tsxdeleted file mode 100644index 736cb0d25..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/usage.tsx+++ /dev/null@@ -1,288 +0,0 @@-'use client';--import {- useXAxisProps,- useYAxisProps,-} from '@/components/report-chart/common/axis';-import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { useNumber } from '@/hooks/useNumerFormatter';-import { api } from '@/trpc/client';-import { formatDate } from '@/utils/date';-import { getChartColor } from '@/utils/theme';-import { sum } from '@openpanel/common';-import type { IServiceOrganization } from '@openpanel/db';-import { Loader2Icon } from 'lucide-react';-import {- Bar,- BarChart,- CartesianGrid,- Tooltip as RechartTooltip,- ReferenceLine,- ResponsiveContainer,- XAxis,- YAxis,-} from 'recharts';--type Props = {- organization: IServiceOrganization;-};--function Card({ title, value }: { title: string; value: string }) {- return (- <div className="col gap-2 p-4 flex-1 min-w-0" title={`${title}: ${value}`}>- <div className="text-muted-foreground truncate">{title}</div>- <div className="font-mono text-xl font-bold truncate">{value}</div>- </div>- );-}--export default function Usage({ organization }: Props) {- const number = useNumber();- const xAxisProps = useXAxisProps({ interval: 'day' });- const yAxisProps = useYAxisProps({});- const usageQuery = api.subscription.usage.useQuery({- organizationId: organization.id,- });-- const wrapper = (node: React.ReactNode) => (- <Widget className="w-full">- <WidgetHead className="flex items-center justify-between">- <span className="title">Usage</span>- </WidgetHead>- <WidgetBody>{node}</WidgetBody>- </Widget>- );-- if (usageQuery.isLoading) {- return wrapper(- <div className="center-center p-8">- <Loader2Icon className="animate-spin" />- </div>,- );- }- if (usageQuery.isError) {- return wrapper(- <div className="center-center p-8 font-medium">- Issues loading usage data- </div>,- );- }-- const subscriptionPeriodEventsLimit = organization.hasSubscription- ? organization.subscriptionPeriodEventsLimit- : 0;- const subscriptionPeriodEventsCount = organization.hasSubscription- ? organization.subscriptionPeriodEventsCount- : 0;-- const domain = [- 0,- Math.max(- subscriptionPeriodEventsLimit,- subscriptionPeriodEventsCount,- ...usageQuery.data.map((item) => item.count),- ),- ] as [number, number];-- domain[1] += domain[1] * 0.05;-- return wrapper(- <>- <div className="border-b divide-x divide-border -m-4 mb-4 grid grid-cols-2 md:grid-cols-4">- {organization.hasSubscription ? (- <>- <Card- title="Period"- value={- organization.subscriptionCurrentPeriodStart &&- organization.subscriptionCurrentPeriodEnd- ? `${formatDate(organization.subscriptionCurrentPeriodStart)}-${formatDate(organization.subscriptionCurrentPeriodEnd)}`- : '🤷♂️'- }- />- <Card- title="Limit"- value={number.format(subscriptionPeriodEventsLimit)}- />- <Card- title="Events count"- value={number.format(subscriptionPeriodEventsCount)}- />- <Card- title="Left to use"- value={- subscriptionPeriodEventsLimit === 0- ? '👀'- : number.formatWithUnit(- 1 -- subscriptionPeriodEventsCount /- subscriptionPeriodEventsLimit,- '%',- )- }- />- </>- ) : (- <>- <div className="col-span-2">- <Card title="Subscription" value={'No active subscription'} />- </div>- <div className="col-span-2">- <Card- title="Events from last 30 days"- value={number.format(- sum(usageQuery.data.map((item) => item.count)),- )}- />- </div>- </>- )}- </div>- <div className="aspect-video max-h-[300px] w-full p-4">- <ResponsiveContainer>- <BarChart- data={usageQuery.data.map((item) => ({- date: new Date(item.day).getTime(),- count: item.count,- limit: subscriptionPeriodEventsLimit,- total: subscriptionPeriodEventsCount,- }))}- barSize={8}- >- <defs>- <linearGradient id="usage" x1="0" y1="0" x2="0" y2="1">- <stop- offset="0%"- stopColor={getChartColor(0)}- stopOpacity={0.8}- />- <stop- offset="100%"- stopColor={getChartColor(0)}- stopOpacity={0.1}- />- </linearGradient>- </defs>- <RechartTooltip- content={<Tooltip />}- cursor={{- stroke: 'hsl(var(--def-400))',- fill: 'hsl(var(--def-200))',- }}- />- {organization.hasSubscription && (- <>- <ReferenceLine- y={subscriptionPeriodEventsLimit}- stroke={getChartColor(1)}- strokeWidth={2}- strokeDasharray="3 3"- strokeOpacity={0.5}- strokeLinecap="round"- label={{- value: `Limit (${number.format(subscriptionPeriodEventsLimit)})`,- fill: getChartColor(1),- position: 'insideTopRight',- fontSize: 12,- }}- />- <ReferenceLine- y={subscriptionPeriodEventsCount}- stroke={getChartColor(2)}- strokeWidth={2}- strokeDasharray="3 3"- strokeOpacity={0.5}- strokeLinecap="round"- label={{- value: `Your events count (${number.format(subscriptionPeriodEventsCount)})`,- fill: getChartColor(2),- position:- subscriptionPeriodEventsCount > 1000- ? 'insideTop'- : 'insideBottom',- fontSize: 12,- }}- />- </>- )}- <Bar- dataKey="count"- stroke={getChartColor(0)}- strokeWidth={0.5}- fill={'url(#usage)'}- isAnimationActive={false}- />- <XAxis {...xAxisProps} dataKey="date" />- <YAxis- {...yAxisProps}- domain={domain}- interval={0}- ticks={[- 0,- subscriptionPeriodEventsLimit * 0.25,- subscriptionPeriodEventsLimit * 0.5,- subscriptionPeriodEventsLimit * 0.75,- subscriptionPeriodEventsLimit,- ]}- />- <CartesianGrid- horizontal={true}- vertical={false}- strokeDasharray="3 3"- strokeOpacity={0.5}- />- </BarChart>- </ResponsiveContainer>- </div>- </>,- );-}--function Tooltip(props: any) {- const number = useNumber();- const payload = props.payload?.[0]?.payload;-- if (!payload) {- return null;- }- return (- <div className="flex min-w-[180px] flex-col gap-2 rounded-xl border bg-card p-3 shadow-xl">- <div className="text-sm text-muted-foreground">- {formatDate(payload.date)}- </div>- {payload.limit !== 0 && (- <div className="flex items-center gap-2">- <div className="h-10 w-1 rounded-full border-2 border-dashed border-chart-1" />- <div className="col gap-1">- <div className="text-sm text-muted-foreground">Your tier limit</div>- <div className="text-lg font-semibold text-chart-1">- {number.format(payload.limit)}- </div>- </div>- </div>- )}- {payload.total !== 0 && (- <div className="flex items-center gap-2">- <div className="h-10 w-1 rounded-full border-2 border-dashed border-chart-2" />- <div className="col gap-1">- <div className="text-sm text-muted-foreground">- Total events count- </div>- <div className="text-lg font-semibold text-chart-2">- {number.format(payload.total)}- </div>- </div>- </div>- )}- <div className="flex items-center gap-2">- <div className="h-10 w-1 rounded-full bg-chart-0" />- <div className="col gap-1">- <div className="text-sm text-muted-foreground">Events this day</div>- <div className="text-lg font-semibold text-chart-0">- {number.format(payload.count)}- </div>- </div>- </div>- </div>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/page.tsxdeleted file mode 100644index b09e763c7..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/page.tsx+++ /dev/null@@ -1,107 +0,0 @@-import { FullPageEmptyState } from '@/components/full-page-empty-state';-import { PageTabs, PageTabsLink } from '@/components/page-tabs';-import { Padding } from '@/components/ui/padding';-import { ShieldAlertIcon } from 'lucide-react';-import { notFound } from 'next/navigation';-import { parseAsStringEnum } from 'nuqs/server';--import { auth } from '@openpanel/auth/nextjs';-import { db } from '@openpanel/db';--import InvitesServer from './invites';-import MembersServer from './members';-import Billing from './organization/billing';-import { BillingFaq } from './organization/billing-faq';-import CurrentSubscription from './organization/current-subscription';-import Organization from './organization/organization';-import Usage from './organization/usage';--interface PageProps {- params: {- organizationSlug: string;- };- searchParams: Record<string, string>;-}--export default async function Page({- params: { organizationSlug: organizationId },- searchParams,-}: PageProps) {- const isBillingEnabled = process.env.NEXT_PUBLIC_SELF_HOSTED !== 'true';- const tab = parseAsStringEnum(['org', 'billing', 'members', 'invites'])- .withDefault('org')- .parseServerSide(searchParams.tab);- const session = await auth();- const organization = await db.organization.findUnique({- where: {- id: organizationId,- members: {- some: {- userId: session.userId,- },- },- },- include: {- members: {- select: {- role: true,- userId: true,- },- },- },- });-- if (!organization) {- return notFound();- }-- const member = organization.members.find(- (member) => member.userId === session.userId,- );-- const hasAccess = member?.role === 'org:admin';-- if (!hasAccess) {- return (- <FullPageEmptyState icon={ShieldAlertIcon} title="No access">- You do not have access to this page. You need to be an admin of this- organization to access this page.- </FullPageEmptyState>- );- }-- return (- <Padding>- <PageTabs className="mb-4">- <PageTabsLink href={'?tab=org'} isActive={tab === 'org'}>- Organization- </PageTabsLink>- {isBillingEnabled && (- <PageTabsLink href={'?tab=billing'} isActive={tab === 'billing'}>- Billing- </PageTabsLink>- )}- <PageTabsLink href={'?tab=members'} isActive={tab === 'members'}>- Members- </PageTabsLink>- <PageTabsLink href={'?tab=invites'} isActive={tab === 'invites'}>- Invites- </PageTabsLink>- </PageTabs>-- {tab === 'org' && <Organization organization={organization} />}- {tab === 'billing' && isBillingEnabled && (- <div className="flex flex-col-reverse md:flex-row gap-8 max-w-screen-lg">- <div className="col gap-8 w-full">- <Billing organization={organization} />- <Usage organization={organization} />- <BillingFaq />- </div>- <CurrentSubscription organization={organization} />- </div>- )}- {tab === 'members' && <MembersServer organizationId={organizationId} />}- {tab === 'invites' && <InvitesServer organizationId={organizationId} />}- </Padding>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/page.tsxdeleted file mode 100644index 22b9c8b12..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/page.tsx+++ /dev/null@@ -1 +0,0 @@-export { default } from './organization/page';diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/edit-profile.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/edit-profile.tsxdeleted file mode 100644index fe8288871..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/edit-profile.tsx+++ /dev/null@@ -1,89 +0,0 @@-'use client';--import { InputWithLabel } from '@/components/forms/input-with-label';-import { Button } from '@/components/ui/button';-import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { api, handleError } from '@/trpc/client';-import { zodResolver } from '@hookform/resolvers/zod';-import { useRouter } from 'next/navigation';-import { useForm } from 'react-hook-form';-import { toast } from 'sonner';-import { z } from 'zod';--import type { getUserById } from '@openpanel/db';--const validator = z.object({- firstName: z.string().min(2),- lastName: z.string().min(2),- email: z.string().email(),-});--type IForm = z.infer<typeof validator>;-interface EditProfileProps {- profile: Awaited<ReturnType<typeof getUserById>>;-}-export default function EditProfile({ profile }: EditProfileProps) {- const router = useRouter();-- const { register, handleSubmit, reset, formState } = useForm<IForm>({- resolver: zodResolver(validator),- defaultValues: {- firstName: profile.firstName ?? '',- lastName: profile.lastName ?? '',- email: profile.email ?? '',- },- });-- const mutation = api.user.update.useMutation({- onSuccess(res) {- toast('Profile updated', {- description: 'Your profile has been updated.',- });- reset({- firstName: res.firstName ?? '',- lastName: res.lastName ?? '',- email: res.email,- });- router.refresh();- },- onError: handleError,- });-- return (- <form- onSubmit={handleSubmit((values) => {- mutation.mutate(values);- })}- >- <Widget>- <WidgetHead className="flex items-center justify-between">- <span className="title">Your profile</span>- <Button size="sm" type="submit" disabled={!formState.isDirty}>- Save- </Button>- </WidgetHead>- <WidgetBody className="flex flex-col gap-4">- <InputWithLabel- label="First name"- placeholder="Your first name"- defaultValue={profile.firstName ?? ''}- {...register('firstName')}- />- <InputWithLabel- label="Last name"- placeholder="Your last name"- defaultValue={profile.lastName ?? ''}- {...register('lastName')}- />- <InputWithLabel- disabled- label="Email"- placeholder="Your email"- defaultValue={profile.email ?? ''}- {...register('email')}- />- </WidgetBody>- </Widget>- </form>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/loading.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/loading.tsxdeleted file mode 100644index 9cf2cf500..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/loading.tsx+++ /dev/null@@ -1,3 +0,0 @@-import FullPageLoadingState from '@/components/full-page-loading-state';--export default FullPageLoadingState;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/logout.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/logout.tsxdeleted file mode 100644index 71578074f..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/logout.tsx+++ /dev/null@@ -1,18 +0,0 @@-'use client';--import SignOutButton from '@/components/sign-out-button';-import { Widget, WidgetBody, WidgetHead } from '@/components/widget';--export function Logout() {- return (- <Widget className="border-destructive">- <WidgetHead>- <span className="title">Sad part</span>- </WidgetHead>- <WidgetBody>- <p className="mb-4">Sometimes you need to go. See you next time</p>- <SignOutButton />- </WidgetBody>- </Widget>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/page.tsxdeleted file mode 100644index ee5865e3e..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/profile/page.tsx+++ /dev/null@@ -1,17 +0,0 @@-import { Padding } from '@/components/ui/padding';-import { auth } from '@openpanel/auth/nextjs';-import { getUserById } from '@openpanel/db';--import EditProfile from './edit-profile';--export default async function Page() {- const { userId } = await auth();- const profile = await getUserById(userId!);-- return (- <Padding>- <h1 className="mb-4 text-2xl font-bold">Profile</h1>- <EditProfile profile={profile} />- </Padding>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/loading.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/loading.tsxdeleted file mode 100644index 9cf2cf500..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/loading.tsx+++ /dev/null@@ -1,3 +0,0 @@-import FullPageLoadingState from '@/components/full-page-loading-state';--export default FullPageLoadingState;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/page.tsxdeleted file mode 100644index 37699219b..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/page.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { Padding } from '@/components/ui/padding';--import {- db,- getClientsByOrganizationId,- getProjectWithClients,- getProjectsByOrganizationId,-} from '@openpanel/db';--import { notFound } from 'next/navigation';-import DeleteProject from './delete-project';-import EditProjectDetails from './edit-project-details';-import EditProjectFilters from './edit-project-filters';-import ProjectClients from './project-clients';--interface PageProps {- params: {- projectId: string;- };-}--export default async function Page({ params: { projectId } }: PageProps) {- const project = await getProjectWithClients(projectId);-- if (!project) {- notFound();- }-- return (- <Padding>- <div className="col gap-4">- <div className="row justify-between items-center">- <h1 className="text-2xl font-bold">{project.name}</h1>- </div>- <EditProjectDetails project={project} />- <EditProjectFilters project={project} />- <ProjectClients project={project} />- <DeleteProject project={project} />- </div>- </Padding>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/project-clients.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/project-clients.tsxdeleted file mode 100644index e202ece96..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/project-clients.tsx+++ /dev/null@@ -1,45 +0,0 @@-'use client';--import { ClientsTable } from '@/components/clients/table';-import { Button } from '@/components/ui/button';-import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { pushModal } from '@/modals';-import type {- IServiceClientWithProject,- IServiceProjectWithClients,-} from '@openpanel/db';-import { PlusIcon } from 'lucide-react';-import { omit } from 'ramda';--type Props = { project: IServiceProjectWithClients };--export default function ProjectClients({ project }: Props) {- return (- <Widget className="max-w-screen-md w-full overflow-hidden">- <WidgetHead className="flex items-center justify-between">- <span className="title">Clients</span>- <Button- variant="outline"- icon={PlusIcon}- className="-my-1"- onClick={() => pushModal('AddClient')}- >- New client- </Button>- </WidgetHead>- <WidgetBody className="p-0 [&>div]:border-none [&>div]:rounded-none">- <ClientsTable- // @ts-expect-error- query={{- data: project.clients.map((item) => ({- ...item,- project: omit(['clients'], item),- })) as unknown as IServiceClientWithProject[],- isFetching: false,- isLoading: false,- }}- />- </WidgetBody>- </Widget>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/references/list-references.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/references/list-references.tsxdeleted file mode 100644index d493af55f..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/references/list-references.tsx+++ /dev/null@@ -1,29 +0,0 @@-'use client';--import { DataTable } from '@/components/data-table';-import { columns } from '@/components/references/table';-import { Button } from '@/components/ui/button';-import { Padding } from '@/components/ui/padding';-import { pushModal } from '@/modals';-import { PlusIcon } from 'lucide-react';--import type { IServiceReference } from '@openpanel/db';--interface ListProjectsProps {- data: IServiceReference[];-}--export default function ListReferences({ data }: ListProjectsProps) {- return (- <Padding>- <div className="mb-4 flex items-center justify-between">- <h1 className="text-2xl font-bold">References</h1>- <Button icon={PlusIcon} onClick={() => pushModal('AddReference')}>- <span className="max-sm:hidden">Create reference</span>- <span className="sm:hidden">Reference</span>- </Button>- </div>- <DataTable data={data} columns={columns} />- </Padding>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/references/loading.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/references/loading.tsxdeleted file mode 100644index 9cf2cf500..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/references/loading.tsx+++ /dev/null@@ -1,3 +0,0 @@-import FullPageLoadingState from '@/components/full-page-loading-state';--export default FullPageLoadingState;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/references/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/references/page.tsxdeleted file mode 100644index e32df231f..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/references/page.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { getReferences } from '@openpanel/db';--import ListReferences from './list-references';--interface PageProps {- params: {- projectId: string;- };-}--export default async function Page({ params: { projectId } }: PageProps) {- const references = await getReferences({- where: {- projectId,- },- take: 50,- skip: 0,- });-- return (- <>- <ListReferences data={references} />- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects-free-plan.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects-free-plan.tsxdeleted file mode 100644index 133cdfe36..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects-free-plan.tsx+++ /dev/null@@ -1,61 +0,0 @@-'use client';--import { differenceInHours } from 'date-fns';-import { useEffect, useState } from 'react';--import { ProjectLink } from '@/components/links';-import { Dialog, DialogContent } from '@/components/ui/dialog';-import { ModalHeader } from '@/modals/Modal/Container';-import type { IServiceOrganization } from '@openpanel/db';-import { useOpenPanel } from '@openpanel/nextjs';-import { FREE_PRODUCT_IDS } from '@openpanel/payments';-import Billing from './settings/organization/organization/billing';--interface SideEffectsProps {- organization: IServiceOrganization;-}--export default function SideEffectsFreePlan({- organization,-}: SideEffectsProps) {- const op = useOpenPanel();- const willEndInHours = organization.subscriptionEndsAt- ? differenceInHours(organization.subscriptionEndsAt, new Date())- : null;- const [isFreePlan, setIsFreePlan] = useState<boolean>(- !!organization.subscriptionProductId &&- FREE_PRODUCT_IDS.includes(organization.subscriptionProductId),- );-- useEffect(() => {- if (isFreePlan) {- op.track('free_plan_removed');- }- }, []);-- return (- <Dialog open={isFreePlan} onOpenChange={setIsFreePlan}>- <DialogContent className="max-w-xl">- <ModalHeader- onClose={() => setIsFreePlan(false)}- title={'Free plan has been removed'}- text={- <>- Please upgrade your plan to continue using OpenPanel. Select a- tier which is appropriate for your needs or{' '}- <ProjectLink- href="/settings/organization?tab=billing"- className="underline text-foreground"- >- manage billing- </ProjectLink>- </>- }- />- <div className="-mx-4 mt-4">- <Billing organization={organization} />- </div>- </DialogContent>- </Dialog>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects-timezone.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects-timezone.tsxdeleted file mode 100644index b5b46ebf6..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects-timezone.tsx+++ /dev/null@@ -1,91 +0,0 @@-'use client';--import { useState } from 'react';--import { Button } from '@/components/ui/button';-import { Combobox } from '@/components/ui/combobox';-import { Dialog, DialogContent, DialogFooter } from '@/components/ui/dialog';-import { ModalHeader } from '@/modals/Modal/Container';-import { api, handleError } from '@/trpc/client';-import { TIMEZONES } from '@openpanel/common';-import type { IServiceOrganization } from '@openpanel/db';-import { toast } from 'sonner';--interface SideEffectsProps {- organization: IServiceOrganization;-}--export default function SideEffectsTimezone({- organization,-}: SideEffectsProps) {- const [isMissingTimezone, setIsMissingTimezone] = useState<boolean>(- !organization.timezone,- );- const defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;- const [timezone, setTimezone] = useState<string>(- TIMEZONES.includes(defaultTimezone) ? defaultTimezone : '',- );-- const mutation = api.organization.update.useMutation({- onSuccess(res) {- toast('Timezone updated', {- description: 'Your timezone has been updated.',- });- window.location.reload();- },- onError: handleError,- });-- return (- <Dialog open={isMissingTimezone} onOpenChange={setIsMissingTimezone}>- <DialogContent- className="max-w-xl"- onEscapeKeyDown={(e) => {- e.preventDefault();- }}- onInteractOutside={(e) => {- e.preventDefault();- }}- >- <ModalHeader- onClose={false}- title="Select your timezone"- text={- <>- We have introduced new features that requires your timezone.- Please select the timezone you want to use for your organization.- </>- }- />- <Combobox- items={TIMEZONES.map((item) => ({- value: item,- label: item,- }))}- value={timezone}- onChange={setTimezone}- placeholder="Select a timezone"- searchable- size="lg"- className="w-full px-4"- />- <DialogFooter className="mt-4">- <Button- size="lg"- disabled={!TIMEZONES.includes(timezone)}- loading={mutation.isLoading}- onClick={() =>- mutation.mutate({- id: organization.id,- name: organization.name,- timezone: timezone ?? '',- })- }- >- Save- </Button>- </DialogFooter>- </DialogContent>- </Dialog>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects-trial.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects-trial.tsxdeleted file mode 100644index e557ae2aa..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects-trial.tsx+++ /dev/null@@ -1,67 +0,0 @@-'use client';--import { differenceInHours } from 'date-fns';-import { useEffect, useState } from 'react';--import { ProjectLink } from '@/components/links';-import { Dialog, DialogContent } from '@/components/ui/dialog';-import { ModalHeader } from '@/modals/Modal/Container';-import type { IServiceOrganization } from '@openpanel/db';-import { useOpenPanel } from '@openpanel/nextjs';-import Billing from './settings/organization/organization/billing';--interface SideEffectsProps {- organization: IServiceOrganization;-}--export default function SideEffectsTrial({ organization }: SideEffectsProps) {- const op = useOpenPanel();- const willEndInHours = organization.subscriptionEndsAt- ? differenceInHours(organization.subscriptionEndsAt, new Date())- : null;-- const [isTrialDialogOpen, setIsTrialDialogOpen] = useState<boolean>(- willEndInHours !== null &&- organization.subscriptionStatus === 'trialing' &&- organization.subscriptionEndsAt !== null &&- willEndInHours <= 48,- );-- useEffect(() => {- if (isTrialDialogOpen) {- op.track('trial_expires_soon');- }- }, [isTrialDialogOpen]);-- return (- <>- <Dialog open={isTrialDialogOpen} onOpenChange={setIsTrialDialogOpen}>- <DialogContent className="max-w-xl">- <ModalHeader- onClose={() => setIsTrialDialogOpen(false)}- title={- willEndInHours !== null && willEndInHours > 0- ? `Your trial is ending in ${willEndInHours} hours`- : 'Your trial has ended'- }- text={- <>- Please upgrade your plan to continue using OpenPanel. Select a- tier which is appropriate for your needs or{' '}- <ProjectLink- href="/settings/organization?tab=billing"- className="underline text-foreground"- >- manage billing- </ProjectLink>- </>- }- />- <div className="-mx-4 mt-4">- <Billing organization={organization} />- </div>- </DialogContent>- </Dialog>- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects.tsxdeleted file mode 100644index 07267c0dc..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/side-effects.tsx+++ /dev/null@@ -1,41 +0,0 @@-'use client';--import { differenceInHours } from 'date-fns';-import { useEffect, useState } from 'react';--import { ProjectLink } from '@/components/links';-import { Combobox } from '@/components/ui/combobox';-import { Dialog, DialogContent } from '@/components/ui/dialog';-import { ModalHeader } from '@/modals/Modal/Container';-import type { IServiceOrganization } from '@openpanel/db';-import { useOpenPanel } from '@openpanel/nextjs';-import { FREE_PRODUCT_IDS } from '@openpanel/payments';-import Billing from './settings/organization/organization/billing';-import SideEffectsFreePlan from './side-effects-free-plan';-import SideEffectsTimezone from './side-effects-timezone';-import SideEffectsTrial from './side-effects-trial';--interface SideEffectsProps {- organization: IServiceOrganization;-}--export default function SideEffects({ organization }: SideEffectsProps) {- const [mounted, setMounted] = useState(false);-- useEffect(() => {- setMounted(true);- }, []);-- // Avoids hydration errors- if (!mounted) {- return null;- }-- return (- <>- <SideEffectsTimezone organization={organization} />- <SideEffectsTrial organization={organization} />- <SideEffectsFreePlan organization={organization} />- </>- );-}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/page.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/page.tsxdeleted file mode 100644index 39946c913..000000000--- a/apps/dashboard/src/app/(app)/[organizationSlug]/page.tsx+++ /dev/null@@ -1,65 +0,0 @@-import { FullPageEmptyState } from '@/components/full-page-empty-state';-import FullWidthNavbar from '@/components/full-width-navbar';-import ProjectCard from '@/components/projects/project-card';-import { redirect } from 'next/navigation';--import SettingsToggle from '@/components/settings-toggle';-import { auth } from '@openpanel/auth/nextjs';-import { getOrganizations, getProjects } from '@openpanel/db';-import LayoutProjectSelector from './[projectId]/layout-project-selector';--interface PageProps {- params: {- organizationSlug: string;- };-}--export default async function Page({- params: { organizationSlug: organizationId },-}: PageProps) {- const { userId } = await auth();- const [organizations, projects] = await Promise.all([- getOrganizations(userId),- getProjects({ organizationId, userId }),- ]);-- const organization = organizations.find((org) => org.id === organizationId);-- if (!organization) {- return (- <FullPageEmptyState title="Not found" className="min-h-screen">- The organization you were looking for could not be found.- </FullPageEmptyState>- );- }-- if (projects.length === 0) {- return redirect('/onboarding/project');- }-- if (projects.length === 1 && projects[0]) {- return redirect(`/${organizationId}/${projects[0].id}`);- }-- return (- <div>- <FullWidthNavbar>- <div className="row gap-4">- <LayoutProjectSelector- align="start"- projects={projects}- organizations={organizations}- />- <SettingsToggle />- </div>- </FullWidthNavbar>- <div className="mx-auto flex flex-col gap-4 p-4 pt-20 md:w-[95vw] lg:w-[80vw] max-w-screen-2xl">- <div className="grid gap-4 md:grid-cols-2">- {projects.map((item) => (- <ProjectCard key={item.id} {...item} />- ))}- </div>- </div>- </div>- );-}diff --git a/apps/dashboard/src/app/(app)/page.tsx b/apps/dashboard/src/app/(app)/page.tsxdeleted file mode 100644index d32284452..000000000--- a/apps/dashboard/src/app/(app)/page.tsx+++ /dev/null@@ -1,15 +0,0 @@-import { redirect } from 'next/navigation';--import { auth } from '@openpanel/auth/nextjs';-import { getOrganizations } from '@openpanel/db';--export default async function Page() {- const { userId } = await auth();- const organizations = await getOrganizations(userId);-- if (organizations.length > 0) {- return redirect(`/${organizations[0]?.id}`);- }-- return redirect('/onboarding/project');-}diff --git a/apps/dashboard/src/app/(auth)/layout.tsx b/apps/dashboard/src/app/(auth)/layout.tsxdeleted file mode 100644index c1c2128ad..000000000--- a/apps/dashboard/src/app/(auth)/layout.tsx+++ /dev/null@@ -1,22 +0,0 @@-import LiveEventsServer from './live-events';--type Props = {- children: React.ReactNode;-};--const Page = ({ children }: Props) => {- return (- <>- <div className="bg-def-100">- <div className="grid h-full md:grid-cols-[min(400px,40vw)_1fr]">- <div className="min-h-screen border-r border-r-background bg-gradient-to-r from-background to-def-200 max-md:hidden">- <LiveEventsServer />- </div>- <div className="min-h-screen p-4">{children}</div>- </div>- </div>- </>- );-};--export default Page;diff --git a/apps/dashboard/src/app/(auth)/live-events/index.tsx b/apps/dashboard/src/app/(auth)/live-events/index.tsxdeleted file mode 100644index e056be648..000000000--- a/apps/dashboard/src/app/(auth)/live-events/index.tsx+++ /dev/null@@ -1,7 +0,0 @@-import LiveEvents from './live-events';--const LiveEventsServer = () => {- return <LiveEvents />;-};--export default LiveEventsServer;diff --git a/apps/dashboard/src/app/(auth)/login/page.tsx b/apps/dashboard/src/app/(auth)/login/page.tsxdeleted file mode 100644index 9cbc906eb..000000000--- a/apps/dashboard/src/app/(auth)/login/page.tsx+++ /dev/null@@ -1,64 +0,0 @@-import { Or } from '@/components/auth/or';-import { SignInEmailForm } from '@/components/auth/sign-in-email-form';-import { SignInGithub } from '@/components/auth/sign-in-github';-import { SignInGoogle } from '@/components/auth/sign-in-google';-import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';-import { LinkButton } from '@/components/ui/button';-import { auth } from '@openpanel/auth/nextjs';-import { AlertCircle } from 'lucide-react';-import { redirect } from 'next/navigation';--export default async function Page({- searchParams,-}: {- searchParams: { error?: string; correlationId?: string };-}) {- const session = await auth();- const error = searchParams.error;- const correlationId = searchParams.correlationId;-- if (session.userId) {- return redirect('/');- }-- return (- <div className="flex h-full center-center w-full">- <div className="col gap-8 max-w-md w-full">- {error && (- <Alert variant="destructive" className="text-left bg-background">- <AlertCircle className="h-4 w-4" />- <AlertTitle>Error</AlertTitle>- <AlertDescription>- <p>{error}</p>- {correlationId && (- <>- <p>Correlation ID: {correlationId}</p>- <p className="mt-2">- Contact us if you have any issues.{' '}- <a- className="underline font-medium"- href={`mailto:[email protected]?subject=Login%20Issue%20-%20Correlation%20ID%3A%20${correlationId}`}- >- hello[at]openpanel.dev- </a>- </p>- </>- )}- </AlertDescription>- </Alert>- )}- <div className="col md:row gap-4">- <SignInGithub type="sign-in" />- <SignInGoogle type="sign-in" />- </div>- <Or />- <div className="card p-8">- <SignInEmailForm />- </div>- <LinkButton variant={'outline'} size="lg" href="/onboarding">- No account? Sign up today- </LinkButton>- </div>- </div>- );-}diff --git a/apps/dashboard/src/app/(auth)/reset-password/page.tsx b/apps/dashboard/src/app/(auth)/reset-password/page.tsxdeleted file mode 100644index 84f472458..000000000--- a/apps/dashboard/src/app/(auth)/reset-password/page.tsx+++ /dev/null@@ -1,17 +0,0 @@-import { ResetPasswordForm } from '@/components/auth/reset-password-form';-import { auth } from '@openpanel/auth/nextjs';-import { redirect } from 'next/navigation';--export default async function Page() {- const session = await auth();-- if (session.userId) {- return redirect('/');- }-- return (- <div className="flex h-full center-center">- <ResetPasswordForm />- </div>- );-}diff --git a/apps/dashboard/src/app/(onboarding)/layout.tsx b/apps/dashboard/src/app/(onboarding)/layout.tsxdeleted file mode 100644index 348ce9988..000000000--- a/apps/dashboard/src/app/(onboarding)/layout.tsx+++ /dev/null@@ -1,42 +0,0 @@-import FullWidthNavbar from '@/components/full-width-navbar';--import SkipOnboarding from './skip-onboarding';-import Steps from './steps';--type Props = {- children: React.ReactNode;-};--const Page = ({ children }: Props) => {- return (- <>- <div className="fixed inset-0 hidden md:grid md:grid-cols-[30vw_1fr] lg:grid-cols-[30vw_1fr]">- <div className="" />- <div className="border-l border-border bg-card" />- </div>- <div className="relative min-h-screen bg-card md:bg-transparent">- <FullWidthNavbar>- <SkipOnboarding />- </FullWidthNavbar>- <div className="mx-auto w-full md:max-w-[95vw] lg:max-w-[80vw]">- <div className="grid md:grid-cols-[25vw_1fr] lg:grid-cols-[20vw_1fr]">- <div className="max-w-screen flex flex-col gap-4 overflow-hidden bg-def-200 p-4 pr-0 md:bg-transparent md:py-14">- <div>- <div className="text-sm font-bold uppercase text-[#7b94ac]">- Welcome to Openpanel- </div>- <div className="text-xl font-medium leading-loose">- Get started- </div>- </div>- <Steps />- </div>- <div className="h-full p-4 md:p-14">{children}</div>- </div>- </div>- </div>- </>- );-};--export default Page;diff --git a/apps/dashboard/src/app/(onboarding)/onboarding-layout.tsx b/apps/dashboard/src/app/(onboarding)/onboarding-layout.tsxdeleted file mode 100644index 7d3289406..000000000--- a/apps/dashboard/src/app/(onboarding)/onboarding-layout.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { cn } from '@/utils/cn';--type Props = {- children: React.ReactNode;- className?: string;- title: string;- description?: React.ReactNode;-};--export const OnboardingDescription = ({- children,- className,-}: Pick<Props, 'children' | 'className'>) => (- <div- className={cn(- 'font-medium text-muted-foreground leading-normal [&_a]:underline [&_a]:font-semibold',- className,- )}- >- {children}- </div>-);--const OnboardingLayout = ({- title,- description,- children,- className,-}: Props) => {- return (- <div className={cn('flex max-w-3xl flex-col gap-4', className)}>- <div className="mb-4">- <h1 className="mb-2 text-3xl font-medium">{title}</h1>- {description}- </div>-- {children}- </div>- );-};--export default OnboardingLayout;diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/onboarding-connect.tsx b/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/onboarding-connect.tsxdeleted file mode 100644index a1e8cf99e..000000000--- a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/onboarding-connect.tsx+++ /dev/null@@ -1,70 +0,0 @@-'use client';--import { ButtonContainer } from '@/components/button-container';-import CopyInput from '@/components/forms/copy-input';-import { LinkButton } from '@/components/ui/button';-import { useClientSecret } from '@/hooks/useClientSecret';-import { LockIcon } from 'lucide-react';--import type { IServiceProjectWithClients } from '@openpanel/db';--import OnboardingLayout, {- OnboardingDescription,-} from '../../../onboarding-layout';-import ConnectApp from './connect-app';-import ConnectBackend from './connect-backend';-import ConnectWeb from './connect-web';--type Props = {- project: IServiceProjectWithClients;-};--const Connect = ({ project }: Props) => {- const client = project.clients[0];- const [secret] = useClientSecret();-- if (!client) {- return <div>Hmm, something fishy is going on. Please reload the page.</div>;- }-- return (- <OnboardingLayout- title="Setup your data sources"- description={- <OnboardingDescription>- Let's connect your data sources to OpenPanel- </OnboardingDescription>- }- >- <div className="flex flex-col gap-4 rounded-xl border p-4 md:p-6">- <div className="flex items-center gap-2 text-2xl capitalize">- <LockIcon />- Credentials- </div>- <CopyInput label="Client ID" value={client.id} />- <CopyInput label="Secret" value={secret} />- </div>- {project.types.map((type) => {- const Component = {- website: ConnectWeb,- app: ConnectApp,- backend: ConnectBackend,- }[type];-- return <Component key={type} client={{ ...client, secret }} />;- })}- <ButtonContainer>- <div />- <LinkButton- href={`/onboarding/${project.id}/verify`}- size="lg"- className="min-w-28 self-start"- >- Next- </LinkButton>- </ButtonContainer>- </OnboardingLayout>- );-};--export default Connect;diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/page.tsx b/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/page.tsxdeleted file mode 100644index 9569c2fb1..000000000--- a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/page.tsx+++ /dev/null@@ -1,28 +0,0 @@-import { getOrganizations, getProjectWithClients } from '@openpanel/db';--import { auth } from '@openpanel/auth/nextjs';-import OnboardingConnect from './onboarding-connect';--type Props = {- params: {- projectId: string;- };-};--const Connect = async ({ params: { projectId } }: Props) => {- const { userId } = await auth();- const orgs = await getOrganizations(userId);- const organizationId = orgs[0]?.id;- if (!organizationId) {- throw new Error('No organization found');- }- const project = await getProjectWithClients(projectId);-- if (!project) {- return <div>Hmm, something fishy is going on. Please reload the page.</div>;- }-- return <OnboardingConnect project={project} />;-};--export default Connect;diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/verify/onboarding-verify.tsx b/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/verify/onboarding-verify.tsxdeleted file mode 100644index 8264cc9a2..000000000--- a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/verify/onboarding-verify.tsx+++ /dev/null@@ -1,155 +0,0 @@-'use client';--import { ButtonContainer } from '@/components/button-container';-import { LinkButton } from '@/components/ui/button';-import { cn } from '@/utils/cn';-import Link from 'next/link';-import { useEffect, useState } from 'react';--import type {- IServiceClient,- IServiceEvent,- IServiceProjectWithClients,-} from '@openpanel/db';--import Syntax from '@/components/syntax';-import {- Accordion,- AccordionContent,- AccordionItem,- AccordionTrigger,-} from '@/components/ui/accordion';-import { useClientSecret } from '@/hooks/useClientSecret';-import { clipboard } from '@/utils/clipboard';-import { local } from 'd3';-import OnboardingLayout, {- OnboardingDescription,-} from '../../../onboarding-layout';-import VerifyListener from './onboarding-verify-listener';--type Props = {- project: IServiceProjectWithClients;- events: IServiceEvent[];-};--const Verify = ({ project, events }: Props) => {- const [verified, setVerified] = useState(events.length > 0);- const client = project.clients[0];-- if (!client) {- return <div>Hmm, something fishy is going on. Please reload the page.</div>;- }-- return (- <OnboardingLayout- title="Verify that you get events"- description={- <OnboardingDescription>- Deploy your changes, as soon as you see events here, you're all- set!- </OnboardingDescription>- }- >- <VerifyListener- project={project}- client={client}- events={events}- onVerified={setVerified}- />-- <CurlPreview project={project} />-- <ButtonContainer>- <LinkButton- href={`/onboarding/${project.id}/connect`}- size="lg"- className="min-w-28 self-start"- variant={'secondary'}- >- Back- </LinkButton>-- <div className="flex items-center gap-8">- {!verified && (- <Link- href={`/${project.organizationId}/${project.id}`}- className=" text-muted-foreground underline"- >- Skip for now- </Link>- )}-- <LinkButton- href={`/${project.organizationId}/${project.id}`}- size="lg"- className={cn(- 'min-w-28 self-start',- !verified && 'pointer-events-none select-none opacity-20',- )}- >- Your dashboard- </LinkButton>- </div>- </ButtonContainer>- </OnboardingLayout>- );-};--export default Verify;--function CurlPreview({ project }: { project: IServiceProjectWithClients }) {- const [secret] = useClientSecret();- const client = project.clients[0];- if (!client) {- return null;- }-- const payload: Record<string, any> = {- type: 'track',- payload: {- name: 'screen_view',- properties: {- __title: `Testing OpenPanel - ${project.name}`,- __path: `${project.domain}`,- __referrer: `${process.env.NEXT_PUBLIC_DASHBOARD_URL}`,- },- },- };-- if (project.types.includes('app')) {- payload.payload.properties.__path = '/';- delete payload.payload.properties.__referrer;- }-- if (project.types.includes('backend')) {- payload.payload.name = 'test_event';- payload.payload.properties = {};- }-- const code = `curl -X POST ${process.env.NEXT_PUBLIC_API_URL}/track \\--H "Content-Type: application/json" \\--H "openpanel-client-id: ${client.id}" \\--H "openpanel-client-secret: ${secret}" \\--H "User-Agent: ${typeof window !== 'undefined' ? window.navigator.userAgent : ''}" \\--d '${JSON.stringify(payload)}'`;-- return (- <div className="card">- <Accordion type="single" collapsible>- <AccordionItem value="item-1">- <AccordionTrigger- className="px-6"- onClick={() => {- clipboard(code, null);- }}- >- Try out the curl command- </AccordionTrigger>- <AccordionContent className="p-0">- <Syntax code={code} />- </AccordionContent>- </AccordionItem>- </Accordion>- </div>- );-}diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/verify/page.tsx b/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/verify/page.tsxdeleted file mode 100644index 1d553e7f0..000000000--- a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/verify/page.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { cookies } from 'next/headers';-import { escape } from 'sqlstring';--import {- TABLE_NAMES,- getEvents,- getOrganizations,- getProjectWithClients,-} from '@openpanel/db';--import { auth } from '@openpanel/auth/nextjs';-import OnboardingVerify from './onboarding-verify';--type Props = {- params: {- projectId: string;- };-};--const Verify = async ({ params: { projectId } }: Props) => {- const { userId } = await auth();- const orgs = await getOrganizations(userId);- const organizationId = orgs[0]?.id;- if (!organizationId) {- throw new Error('No organization found');- }- const [project, events] = await Promise.all([- await getProjectWithClients(projectId),- getEvents(- `SELECT * FROM ${TABLE_NAMES.events} WHERE project_id = ${escape(projectId)} ORDER BY created_at DESC LIMIT 100`,- ),- ]);-- if (!project) {- return <div>Hmm, something fishy is going on. Please reload the page.</div>;- }-- return <OnboardingVerify project={project} events={events.reverse()} />;-};--export default Verify;diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/page.tsx b/apps/dashboard/src/app/(onboarding)/onboarding/page.tsxdeleted file mode 100644index b4d551308..000000000--- a/apps/dashboard/src/app/(onboarding)/onboarding/page.tsx+++ /dev/null@@ -1,78 +0,0 @@-import { Or } from '@/components/auth/or';-import { SignInGithub } from '@/components/auth/sign-in-github';-import { SignInGoogle } from '@/components/auth/sign-in-google';-import { SignUpEmailForm } from '@/components/auth/sign-up-email-form';-import { auth } from '@openpanel/auth/nextjs';-import { getInviteById } from '@openpanel/db';-import Link from 'next/link';-import { redirect } from 'next/navigation';-import OnboardingLayout, { OnboardingDescription } from '../onboarding-layout';--const Page = async ({- searchParams,-}: { searchParams: { inviteId: string } }) => {- const session = await auth();- const inviteId = await searchParams.inviteId;- const invite = inviteId ? await getInviteById(inviteId) : null;- const hasInviteExpired = invite?.expiresAt && invite.expiresAt < new Date();- if (session.userId) {- return redirect('/');- }-- return (- <div>- <OnboardingLayout- className="max-w-screen-sm"- title="Create an account"- description={- <OnboardingDescription>- Lets start with creating you account. By creating an account you- accept the{' '}- <Link target="_blank" href="https://openpanel.dev/terms">- Terms of Service- </Link>{' '}- and{' '}- <Link target="_blank" href="https://openpanel.dev/privacy">- Privacy Policy- </Link>- .- </OnboardingDescription>- }- >- {invite && !hasInviteExpired && (- <div className="card p-8 mb-8 col gap-2">- <h2 className="text-2xl font-medium">- Invitation to {invite.organization.name}- </h2>- <p>- After you have created your account, you will be added to the- organization.- </p>- </div>- )}- {invite && hasInviteExpired && (- <div className="card p-8 mb-8 col gap-2">- <h2 className="text-2xl font-medium">- Invitation to {invite.organization.name} has expired- </h2>- <p>- The invitation has expired. Please contact the organization owner- to get a new invitation.- </p>- </div>- )}- <div className="col md:row gap-4">- <SignInGithub type="sign-up" />- <SignInGoogle type="sign-up" />- </div>- <Or className="my-8" />- <div className="col gap-8 p-8 card">- <h2 className="text-2xl font-medium">Sign up with email</h2>- <SignUpEmailForm />- </div>- </OnboardingLayout>- </div>- );-};--export default Page;diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/project/page.tsx b/apps/dashboard/src/app/(onboarding)/onboarding/project/page.tsxdeleted file mode 100644index d25c25db3..000000000--- a/apps/dashboard/src/app/(onboarding)/onboarding/project/page.tsx+++ /dev/null@@ -1,11 +0,0 @@-import { auth } from '@openpanel/auth/nextjs';-import { getOrganizations } from '@openpanel/db';-import { OnboardingCreateProject } from './onboarding-create-project';--const Page = async () => {- const { userId } = await auth();- const organizations = await getOrganizations(userId);- return <OnboardingCreateProject organizations={organizations} />;-};--export default Page;diff --git a/apps/dashboard/src/app/(public)/share/overview/[id]/page.tsx b/apps/dashboard/src/app/(public)/share/overview/[id]/page.tsxdeleted file mode 100644index 70eff2eee..000000000--- a/apps/dashboard/src/app/(public)/share/overview/[id]/page.tsx+++ /dev/null@@ -1,87 +0,0 @@-import { StickyBelowHeader } from '@/app/(app)/[organizationSlug]/[projectId]/layout-sticky-below-header';-import { OverviewFiltersButtons } from '@/components/overview/filters/overview-filters-buttons';-import ServerLiveCounter from '@/components/overview/live-counter';-import OverviewMetrics from '@/components/overview/overview-metrics';-import OverviewTopDevices from '@/components/overview/overview-top-devices';-import OverviewTopEvents from '@/components/overview/overview-top-events';-import OverviewTopGeo from '@/components/overview/overview-top-geo';-import OverviewTopPages from '@/components/overview/overview-top-pages';-import OverviewTopSources from '@/components/overview/overview-top-sources';-import { notFound } from 'next/navigation';--import { ShareEnterPassword } from '@/components/auth/share-enter-password';-import { OverviewRange } from '@/components/overview/overview-range';-import { getOrganizationById, getShareOverviewById } from '@openpanel/db';-import { cookies } from 'next/headers';--interface PageProps {- params: {- id: string;- };- searchParams: {- header: string;- };-}--export default async function Page({- params: { id },- searchParams,-}: PageProps) {- const share = await getShareOverviewById(id);- if (!share) {- return notFound();- }- if (!share.public) {- return notFound();- }- const projectId = share.projectId;- const organization = await getOrganizationById(share.organizationId);-- if (share.password) {- const cookie = cookies().get(`shared-overview-${share.id}`)?.value;- if (!cookie) {- return <ShareEnterPassword shareId={share.id} />;- }- }-- return (- <div>- {searchParams.header !== '0' && (- <div className="flex items-center justify-between border-b border-border bg-background p-4">- <div className="col gap-1">- <span className="text-sm">{organization?.name}</span>- <h1 className="text-xl font-medium">{share.project?.name}</h1>- </div>- <a- href="https://openpanel.dev?utm_source=openpanel.dev&utm_medium=share"- className="col gap-1 items-end"- >- <span className="text-xs">POWERED BY</span>- <span className="text-xl font-medium">openpanel.dev</span>- </a>- </div>- )}- <div className="">- <StickyBelowHeader>- <div className="flex justify-between gap-2 p-4">- <div className="flex gap-2">- <OverviewRange />- </div>- <div className="flex gap-2">- <ServerLiveCounter projectId={projectId} />- </div>- </div>- <OverviewFiltersButtons />- </StickyBelowHeader>- <div className="mx-auto grid max-w-7xl grid-cols-6 gap-4 p-4">- <OverviewMetrics projectId={projectId} />- <OverviewTopSources projectId={projectId} />- <OverviewTopPages projectId={projectId} />- <OverviewTopDevices projectId={projectId} />- <OverviewTopEvents projectId={projectId} />- <OverviewTopGeo projectId={projectId} />- </div>- </div>- </div>- );-}diff --git a/apps/dashboard/src/app/api/healthcheck/route.tsx b/apps/dashboard/src/app/api/healthcheck/route.tsxdeleted file mode 100644index f8da93606..000000000--- a/apps/dashboard/src/app/api/healthcheck/route.tsx+++ /dev/null@@ -1,5 +0,0 @@-export const dynamic = 'force-dynamic'; // no caching--export async function GET(request: Request) {- return Response.json({ status: 'ok' });-}diff --git a/apps/dashboard/src/app/favicon.ico b/apps/dashboard/src/app/favicon.icodeleted file mode 100644index 403a07ef9..000000000Binary files a/apps/dashboard/src/app/favicon.ico and /dev/null differdiff --git a/apps/dashboard/src/app/global-error.tsx b/apps/dashboard/src/app/global-error.tsxdeleted file mode 100644index 2b7fa1b3b..000000000--- a/apps/dashboard/src/app/global-error.tsx+++ /dev/null@@ -1,20 +0,0 @@-'use client';--import { useEffect } from 'react';--export default function GlobalError({- error,-}: {- error: Error & { digest?: string };- reset: () => void;-}) {- useEffect(() => {}, [error]);-- return (- <html lang="en">- <body>- <h1>Something went wrong</h1>- </body>- </html>- );-}diff --git a/apps/dashboard/src/app/layout.tsx b/apps/dashboard/src/app/layout.tsxdeleted file mode 100644index a4f84b64b..000000000--- a/apps/dashboard/src/app/layout.tsx+++ /dev/null@@ -1,48 +0,0 @@-import { cn } from '@/utils/cn';-import NextTopLoader from 'nextjs-toploader';--import Providers from './providers';--import '@/styles/globals.css';-import 'flag-icons/css/flag-icons.min.css';-import 'katex/dist/katex.min.css';--import { GeistMono } from 'geist/font/mono';-import { GeistSans } from 'geist/font/sans';--export const metadata = {- title: 'Overview - Openpanel.dev',-};--export const viewport = {- width: 'device-width',- initialScale: 1,- maximumScale: 1,- userScalable: 1,-};--export default function RootLayout({- children,-}: {- children: React.ReactNode;-}) {- return (- <html lang="en" suppressHydrationWarning>- <body- className={cn(- 'grainy min-h-screen bg-def-100 font-sans text-base antialiased leading-normal',- GeistSans.variable,- GeistMono.variable,- )}- >- <NextTopLoader- showSpinner={false}- color="#2463EB"- height={2}- shadow={false}- />- <Providers>{children}</Providers>- </body>- </html>- );-}diff --git a/apps/dashboard/src/app/maintenance/page.tsx b/apps/dashboard/src/app/maintenance/page.tsxdeleted file mode 100644index a0529fadb..000000000--- a/apps/dashboard/src/app/maintenance/page.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { CalendarCogIcon } from 'lucide-react';--export default function Maintenance() {- return (- <div className="h-screen w-full center-center overflow-hidden">- <div className="relative z-10 col gap-2 center-center p-4">- <CalendarCogIcon className="size-32 mb-4 animate-wiggle text-def-300" />- <div className="text-[90px] sm:text-[150px] font-mono font-bold -mb-16 leading-[1] select-none pointer-events-none whitespace-nowrap bg-gradient-to-b from-def-300 to-def-100 bg-clip-text text-transparent">- Oh no!- </div>- <h1 className="text-5xl sm:text-6xl font-bold">Maintenance</h1>- <p className="text-xl text-muted-foreground leading-normal">- We're doing a planned maintenance. Please check back later.- </p>- </div>- </div>- );-}diff --git a/apps/dashboard/src/app/manifest.ts b/apps/dashboard/src/app/manifest.tsdeleted file mode 100644index 4fd3b21a8..000000000--- a/apps/dashboard/src/app/manifest.ts+++ /dev/null@@ -1,16 +0,0 @@-import type { MetadataRoute } from 'next';--export const dynamic = 'static';--export default function manifest(): MetadataRoute.Manifest {- return {- id: process.env.NEXT_PUBLIC_DASHBOARD_URL,- name: 'Openpanel.dev',- short_name: 'Openpanel.dev',- description: '',- start_url: '/',- display: 'standalone',- background_color: '#fff',- theme_color: '#fff',- };-}diff --git a/apps/dashboard/src/app/providers.tsx b/apps/dashboard/src/app/providers.tsxdeleted file mode 100644index 1ea1cbec2..000000000--- a/apps/dashboard/src/app/providers.tsx+++ /dev/null@@ -1,90 +0,0 @@-'use client';--import { NotificationProvider } from '@/components/notifications/notification-provider';-import { TooltipProvider } from '@/components/ui/tooltip';-import { ModalProvider } from '@/modals';-import type { AppStore } from '@/redux';-import makeStore from '@/redux';-import { api } from '@/trpc/client';-import { OpenPanelComponent } from '@openpanel/nextjs';-import { QueryClient, QueryClientProvider } from '@tanstack/react-query';-import { httpLink } from '@trpc/client';-import { ThemeProvider } from 'next-themes';-import { NuqsAdapter } from 'nuqs/adapters/next/app';-import { useRef, useState } from 'react';-import { Provider as ReduxProvider } from 'react-redux';-import { Toaster } from 'sonner';-import superjson from 'superjson';--function AllProviders({ children }: { children: React.ReactNode }) {- const [queryClient] = useState(- () =>- new QueryClient({- defaultOptions: {- queries: {- networkMode: 'always',- refetchOnMount: true,- refetchOnWindowFocus: false,- },- },- }),- );- const [trpcClient] = useState(() =>- api.createClient({- transformer: superjson,- links: [- httpLink({- url: `${process.env.NEXT_PUBLIC_API_URL}/trpc`,- fetch(url, options) {- return fetch(url, {- ...options,- credentials: 'include',- mode: 'cors',- });- },- }),- ],- }),- );-- const storeRef = useRef<AppStore>();- if (!storeRef.current) {- // Create the store instance the first time this renders- storeRef.current = makeStore();- }-- return (- <NuqsAdapter>- <ThemeProvider- attribute="class"- disableTransitionOnChange- defaultTheme="system"- >- {process.env.NEXT_PUBLIC_OP_CLIENT_ID && (- <OpenPanelComponent- clientId={process.env.NEXT_PUBLIC_OP_CLIENT_ID}- trackScreenViews- trackOutgoingLinks- trackAttributes- />- )}- <ReduxProvider store={storeRef.current}>- <api.Provider client={trpcClient} queryClient={queryClient}>- <QueryClientProvider client={queryClient}>- <TooltipProvider delayDuration={200}>- {children}- <NotificationProvider />- <Toaster />- <ModalProvider />- </TooltipProvider>- </QueryClientProvider>- </api.Provider>- </ReduxProvider>- </ThemeProvider>- </NuqsAdapter>- );-}--export default function Providers({ children }: { children: React.ReactNode }) {- return <AllProviders>{children}</AllProviders>;-}diff --git a/apps/dashboard/src/app/robots.txt b/apps/dashboard/src/app/robots.txtdeleted file mode 100644index 77470cb39..000000000--- a/apps/dashboard/src/app/robots.txt+++ /dev/null@@ -1,2 +0,0 @@-User-agent: *-Disallow: /\ No newline at end of filediff --git a/apps/dashboard/src/components/auth/or.tsx b/apps/dashboard/src/components/auth/or.tsxdeleted file mode 100644index c6bd24507..000000000--- a/apps/dashboard/src/components/auth/or.tsx+++ /dev/null@@ -1,11 +0,0 @@-import { cn } from '@/utils/cn';--export function Or({ className }: { className?: string }) {- return (- <div className={cn('row items-center gap-2', className)}>- <div className="h-px w-full bg-border" />- <span className="text-muted-foreground">OR</span>- <div className="h-px w-full bg-border" />- </div>- );-}diff --git a/apps/dashboard/src/components/auth/reset-password-form.tsx b/apps/dashboard/src/components/auth/reset-password-form.tsxdeleted file mode 100644index d696ef3b5..000000000--- a/apps/dashboard/src/components/auth/reset-password-form.tsx+++ /dev/null@@ -1,57 +0,0 @@-'use client';--import { InputWithLabel } from '@/components/forms/input-with-label';-import { Button } from '@/components/ui/button';-import { api } from '@/trpc/client';-import { zodResolver } from '@hookform/resolvers/zod';-import { zResetPassword } from '@openpanel/validation';-import { useRouter, useSearchParams } from 'next/navigation';-import { useForm } from 'react-hook-form';-import { toast } from 'sonner';-import type { z } from 'zod';--const validator = zResetPassword;-type IForm = z.infer<typeof validator>;--export function ResetPasswordForm() {- const searchParams = useSearchParams();- const token = searchParams.get('token') ?? null;- const router = useRouter();- const mutation = api.auth.resetPassword.useMutation({- onSuccess() {- toast.success('Password reset successfully', {- description: 'You can now login with your new password',- });- router.push('/login');- },- onError(error) {- toast.error(error.message);- },- });-- const form = useForm<IForm>({- resolver: zodResolver(validator),- defaultValues: {- token: token ?? '',- password: '',- },- });-- const onSubmit = form.handleSubmit(async (data) => {- mutation.mutate(data);- });-- return (- <div className="col gap-8">- <form onSubmit={onSubmit}>- <InputWithLabel- label="New password"- placeholder="New password"- type="password"- {...form.register('password')}- />- <Button type="submit">Reset password</Button>- </form>- </div>- );-}diff --git a/apps/dashboard/src/components/clients/client-actions.tsx b/apps/dashboard/src/components/clients/client-actions.tsxdeleted file mode 100644index f4bdc1517..000000000--- a/apps/dashboard/src/components/clients/client-actions.tsx+++ /dev/null@@ -1,73 +0,0 @@-'use client';--import { pushModal, showConfirm } from '@/modals';-import { api } from '@/trpc/client';-import { clipboard } from '@/utils/clipboard';-import { MoreHorizontal } from 'lucide-react';-import { useRouter } from 'next/navigation';-import { toast } from 'sonner';--import type { IServiceClientWithProject } from '@openpanel/db';--import { Button } from '../ui/button';-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuLabel,- DropdownMenuSeparator,- DropdownMenuTrigger,-} from '../ui/dropdown-menu';--export function ClientActions(client: IServiceClientWithProject) {- const { id } = client;- const router = useRouter();- const deletion = api.client.remove.useMutation({- onSuccess() {- toast('Success', {- description: 'Client revoked, incoming requests will be rejected.',- });- router.refresh();- },- });- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button variant="ghost" className="h-8 w-8 p-0">- <span className="sr-only">Open menu</span>- <MoreHorizontal className="h-4 w-4" />- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="end">- <DropdownMenuLabel>Actions</DropdownMenuLabel>- <DropdownMenuItem onClick={() => clipboard(id)}>- Copy client ID- </DropdownMenuItem>- <DropdownMenuItem- onClick={() => {- pushModal('EditClient', client);- }}- >- Edit- </DropdownMenuItem>- <DropdownMenuSeparator />- <DropdownMenuItem- className="text-destructive"- onClick={() => {- showConfirm({- title: 'Revoke client',- text: 'Are you sure you want to revoke this client? This action cannot be undone.',- onConfirm() {- deletion.mutate({- id,- });- },- });- }}- >- Revoke- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/dashboard/src/components/clients/table/columns.tsx b/apps/dashboard/src/components/clients/table/columns.tsxdeleted file mode 100644index fc3b70c8d..000000000--- a/apps/dashboard/src/components/clients/table/columns.tsx+++ /dev/null@@ -1,56 +0,0 @@-import { EventIcon } from '@/components/events/event-icon';-import { ProjectLink } from '@/components/links';-import { SerieIcon } from '@/components/report-chart/common/serie-icon';-import { TooltipComplete } from '@/components/tooltip-complete';-import { useNumber } from '@/hooks/useNumerFormatter';-import { pushModal } from '@/modals';-import { formatDateTime, formatTime } from '@/utils/date';-import { getProfileName } from '@/utils/getters';-import type { ColumnDef } from '@tanstack/react-table';-import { isToday } from 'date-fns';--import { ACTIONS } from '@/components/data-table';-import type { IServiceClientWithProject, IServiceEvent } from '@openpanel/db';-import { ClientActions } from '../client-actions';--export function useColumns() {- const number = useNumber();- const columns: ColumnDef<IServiceClientWithProject>[] = [- {- accessorKey: 'name',- header: 'Name',- cell: ({ row }) => {- return <div className="font-medium">{row.original.name}</div>;- },- },- {- accessorKey: 'id',- header: 'Client ID',- cell: ({ row }) => <div className="font-mono">{row.original.id}</div>,- },- // {- // accessorKey: 'secret',- // header: 'Secret',- // cell: (info) =>- // <div className="italic text-muted-foreground"></div>-- // },- {- accessorKey: 'createdAt',- header: 'Created at',- cell({ row }) {- const date = row.original.createdAt;- return (- <div>{isToday(date) ? formatTime(date) : formatDateTime(date)}</div>- );- },- },- {- id: ACTIONS,- header: 'Actions',- cell: ({ row }) => <ClientActions {...row.original} />,- },- ];-- return columns;-}diff --git a/apps/dashboard/src/components/clients/table/index.tsx b/apps/dashboard/src/components/clients/table/index.tsxdeleted file mode 100644index e92c1d9e9..000000000--- a/apps/dashboard/src/components/clients/table/index.tsx+++ /dev/null@@ -1,67 +0,0 @@-import { DataTable } from '@/components/data-table';-import { FullPageEmptyState } from '@/components/full-page-empty-state';-import { Pagination } from '@/components/pagination';-import { Button } from '@/components/ui/button';-import { TableSkeleton } from '@/components/ui/table';-import type { UseQueryResult } from '@tanstack/react-query';-import { GanttChartIcon, PlusIcon } from 'lucide-react';-import type { Dispatch, SetStateAction } from 'react';--import type { IServiceClientWithProject } from '@openpanel/db';--import { useAppParams } from '@/hooks/useAppParams';-import { pushModal } from '@/modals';-import { useColumns } from './columns';--type Props = {- query: UseQueryResult<IServiceClientWithProject[]>;- cursor: number;- setCursor: Dispatch<SetStateAction<number>>;-};--export const ClientsTable = ({ query, ...props }: Props) => {- const columns = useColumns();- const { data, isFetching, isLoading } = query;-- if (isLoading) {- return <TableSkeleton cols={columns.length} />;- }-- if (data?.length === 0) {- return (- <FullPageEmptyState title="No clients here" icon={GanttChartIcon}>- <p>Could not find any clients</p>- <div className="row gap-4 mt-4">- {'cursor' in props && props.cursor !== 0 && (- <Button- className="mt-8"- variant="outline"- onClick={() => props.setCursor((p) => p - 1)}- >- Go to previous page- </Button>- )}- <Button icon={PlusIcon} onClick={() => pushModal('AddClient')}>- Add client- </Button>- </div>- </FullPageEmptyState>- );- }-- return (- <>- <DataTable data={data ?? []} columns={columns} />- {'cursor' in props && (- <Pagination- className="mt-2"- setCursor={props.setCursor}- cursor={props.cursor}- count={Number.POSITIVE_INFINITY}- take={50}- loading={isFetching}- />- )}- </>- );-};diff --git a/apps/dashboard/src/components/dark-mode-toggle.tsx b/apps/dashboard/src/components/dark-mode-toggle.tsxdeleted file mode 100644index 428c6c31f..000000000--- a/apps/dashboard/src/components/dark-mode-toggle.tsx+++ /dev/null@@ -1,43 +0,0 @@-'use client';--import { Button } from '@/components/ui/button';-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuTrigger,-} from '@/components/ui/dropdown-menu';-import { MoonIcon, SunIcon } from 'lucide-react';-import { useTheme } from 'next-themes';-import * as React from 'react';--interface Props {- className?: string;-}--export default function DarkModeToggle({ className }: Props) {- const { setTheme } = useTheme();-- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button variant="outline" size="icon" className={className}>- <SunIcon className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />- <MoonIcon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />- <span className="sr-only">Toggle theme</span>- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="end">- <DropdownMenuItem onClick={() => setTheme('light')}>- Light- </DropdownMenuItem>- <DropdownMenuItem onClick={() => setTheme('dark')}>- Dark- </DropdownMenuItem>- {/* <DropdownMenuItem onClick={() => setTheme('system')}>- System- </DropdownMenuItem> */}- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/dashboard/src/components/data-table.tsx b/apps/dashboard/src/components/data-table.tsxdeleted file mode 100644index c4b106e25..000000000--- a/apps/dashboard/src/components/data-table.tsx+++ /dev/null@@ -1,120 +0,0 @@-'use client';--import { cn } from '@/utils/cn';-import {- flexRender,- getCoreRowModel,- useReactTable,-} from '@tanstack/react-table';-import type { ColumnDef, RowData } from '@tanstack/react-table';--import { Grid, GridBody, GridCell, GridHeader, GridRow } from './grid-table';--interface DataTableProps<TData> {- columns: ColumnDef<TData, any>[];- data: TData[];-}--declare module '@tanstack/react-table' {- // eslint-disable-next-line- interface ColumnMeta<TData extends RowData, TValue> {- className?: string;- }-}--export const ACTIONS = '__actions__';--export function TableButtons({- children,- className,-}: {- children: React.ReactNode;- className?: string;-}) {- return (- <div className={cn('mb-2 flex flex-wrap items-center gap-2', className)}>- {children}- </div>- );-}--export function DataTable<TData>({ columns, data }: DataTableProps<TData>) {- const table = useReactTable({- data,- columns,- getCoreRowModel: getCoreRowModel(),- });-- return (- <Grid columns={columns.length}>- <GridHeader>- {table.getHeaderGroups().map((headerGroup) => (- <GridRow key={headerGroup.id}>- {headerGroup.headers.map((header) => {- if (header.column.id === ACTIONS) {- return (- <GridCell- key={header.id}- isHeader- className="sticky right-0 center-center"- >- Actions- </GridCell>- );- }-- return (- <GridCell key={header.id} isHeader>- {header.isPlaceholder- ? null- : flexRender(- header.column.columnDef.header,- header.getContext(),- )}- </GridCell>- );- })}- </GridRow>- ))}- </GridHeader>- <GridBody>- {table.getRowModel().rows?.length ? (- table.getRowModel().rows.map((row) => (- <GridRow- key={row.id}- data-state={row.getIsSelected() && 'selected'}- >- {row.getVisibleCells().map((cell) => {- if (cell.column.id === ACTIONS) {- return (- <GridCell- key={cell.id}- className="sticky right-0 bg-background center-center"- >- {flexRender(- cell.column.columnDef.cell,- cell.getContext(),- )}- </GridCell>- );- }-- return (- <GridCell key={cell.id}>- {flexRender(cell.column.columnDef.cell, cell.getContext())}- </GridCell>- );- })}- </GridRow>- ))- ) : (- <GridRow>- <GridCell colSpan={columns.length}>- <div className="h-24 text-center">No results.</div>- </GridCell>- </GridRow>- )}- </GridBody>- </Grid>- );-}diff --git a/apps/dashboard/src/components/events/event-field-value.tsx b/apps/dashboard/src/components/events/event-field-value.tsxdeleted file mode 100644index 4d5845623..000000000--- a/apps/dashboard/src/components/events/event-field-value.tsx+++ /dev/null@@ -1,77 +0,0 @@-import { fancyMinutes } from '@/hooks/useNumerFormatter';-import { formatDateTime, formatTime } from '@/utils/date';-import type { IServiceEvent } from '@openpanel/db';-import { isToday } from 'date-fns';-import { SerieIcon } from '../report-chart/common/serie-icon';--export function EventFieldValue({- name,- value,- event,-}: {- name: keyof IServiceEvent;- value: any;- event: IServiceEvent;-}) {- if (!value) {- return null;- }-- if (value instanceof Date) {- return isToday(value) ? formatTime(value) : formatDateTime(value);- }-- switch (name) {- case 'osVersion':- return (- <div className="row gap-2 items-center">- <SerieIcon name={event.os} />- <span>{value}</span>- </div>- );- case 'browserVersion':- return (- <div className="row gap-2 items-center">- <SerieIcon name={event.browser} />- <span>{value}</span>- </div>- );- case 'city':- return (- <div className="row gap-2 items-center">- <SerieIcon name={event.country} />- <span>{value}</span>- </div>- );- case 'region':- return (- <div className="row gap-2 items-center">- <SerieIcon name={event.country} />- <span>{value}</span>- </div>- );- case 'properties':- return JSON.stringify(value);- case 'country':- case 'browser':- case 'os':- case 'brand':- case 'model':- case 'device':- return (- <div className="row gap-2 items-center">- <SerieIcon name={value} />- <span>{value}</span>- </div>- );- case 'duration':- return (- <div className="text-right">- <span className="text-muted-foreground">({value}ms)</span>{' '}- {fancyMinutes(value / 1000)}- </div>- );- default:- return value;- }-}diff --git a/apps/dashboard/src/components/events/table/events-data-table.tsx b/apps/dashboard/src/components/events/table/events-data-table.tsxdeleted file mode 100644index 9dc2dc3cd..000000000--- a/apps/dashboard/src/components/events/table/events-data-table.tsx+++ /dev/null@@ -1,160 +0,0 @@-'use client';--import { GridCell } from '@/components/grid-table';-import { cn } from '@/utils/cn';-import {- flexRender,- getCoreRowModel,- useReactTable,-} from '@tanstack/react-table';-import type { ColumnDef } from '@tanstack/react-table';-import { useWindowVirtualizer } from '@tanstack/react-virtual';-import throttle from 'lodash.throttle';-import { useEffect, useRef, useState } from 'react';-import { useEventsTableColumns } from './events-table-columns';--interface DataTableProps<TData> {- columns: ColumnDef<TData, any>[];- data: TData[];-}--export function EventsDataTable<TData>({- columns,- data,-}: DataTableProps<TData>) {- const [visibleColumns] = useEventsTableColumns();- const table = useReactTable({- data,- columns,- getCoreRowModel: getCoreRowModel(),- });-- const parentRef = useRef<HTMLDivElement>(null);- const [scrollMargin, setScrollMargin] = useState(0);- const { rows } = table.getRowModel();-- const virtualizer = useWindowVirtualizer({- count: rows.length,- estimateSize: () => 48,- scrollMargin,- overscan: 10,- });-- useEffect(() => {- const updateScrollMargin = throttle(() => {- if (parentRef.current) {- setScrollMargin(- parentRef.current.getBoundingClientRect().top + window.scrollY,- );- }- }, 500);-- // Initial calculation- updateScrollMargin();-- // Listen for scroll and resize events- window.addEventListener('scroll', updateScrollMargin);- window.addEventListener('resize', updateScrollMargin);-- return () => {- window.removeEventListener('scroll', updateScrollMargin);- window.removeEventListener('resize', updateScrollMargin);- };- }, []); // Empty dependency array since we're setting up listeners-- const visibleRows = virtualizer.getVirtualItems();-- return (- <div className="card">- <div className="relative w-full overflow-auto rounded-md">- <div- className="w-full"- style={{- width: 'max-content',- minWidth: '100%',- }}- >- {table.getHeaderGroups().map((headerGroup) => (- <div className="thead row h-12 sticky top-0" key={headerGroup.id}>- {headerGroup.headers- .filter((header) => visibleColumns.includes(header.id))- .map((header) => {- return (- <GridCell- key={header.id}- isHeader- style={{- minWidth: header.column.getSize(),- flexShrink: 1,- overflow: 'hidden',- flex: 1,- }}- >- {header.isPlaceholder- ? null- : flexRender(- header.column.columnDef.header,- header.getContext(),- )}- </GridCell>- );- })}- </div>- ))}- <div ref={parentRef} className="w-full">- <div- className="tbody [&>*:last-child]:border-0"- style={{- height: `${virtualizer.getTotalSize()}px`,- width: '100%',- position: 'relative',- }}- >- {visibleRows.map((virtualRow, index) => {- const row = rows[virtualRow.index]!;- if (!row) {- return null;- }-- return (- <div- key={row.id}- className={cn('absolute top-0 left-0 w-full h-12 row')}- style={{- transform: `translateY(${- virtualRow.start - virtualizer.options.scrollMargin- }px)`,- }}- >- {row- .getVisibleCells()- .filter((cell) => visibleColumns.includes(cell.column.id))- .map((cell) => {- return (- <GridCell- key={cell.id}- className={cell.column.columnDef.meta?.className}- style={{- minWidth: cell.column.getSize(),- flexShrink: 1,- overflow: 'hidden',- flex: 1,- }}- >- {flexRender(- cell.column.columnDef.cell,- cell.getContext(),- )}- </GridCell>- );- })}- </div>- );- })}- </div>- </div>- </div>- </div>- </div>- );-}diff --git a/apps/dashboard/src/components/events/table/events-table-columns.tsx b/apps/dashboard/src/components/events/table/events-table-columns.tsxdeleted file mode 100644index 8ff858b64..000000000--- a/apps/dashboard/src/components/events/table/events-table-columns.tsx+++ /dev/null@@ -1,70 +0,0 @@-import { Button } from '@/components/ui/button';-import {- DropdownMenu,- DropdownMenuCheckboxItem,- DropdownMenuContent,- DropdownMenuLabel,- DropdownMenuSeparator,- DropdownMenuTrigger,-} from '@/components/ui/dropdown-menu';-import { ColumnsIcon } from 'lucide-react';-import { useQueryState } from 'nuqs';-import { useLocalStorage } from 'usehooks-ts';--// Define available columns-const AVAILABLE_COLUMNS = [- { id: 'name', label: 'Name' },- { id: 'createdAt', label: 'Created at' },- { id: 'profileId', label: 'Profile' },- { id: 'country', label: 'Country' },- { id: 'os', label: 'OS' },- { id: 'browser', label: 'Browser' },- { id: 'properties', label: 'Properties' },- { id: 'sessionId', label: 'Session ID' },- { id: 'deviceId', label: 'Device ID' },-] as const;--export function useEventsTableColumns() {- return useLocalStorage<string[]>('@op:events-table-columns', [- 'name',- 'createdAt',- 'profileId',- 'country',- 'os',- 'browser',- ]);-}--export function EventsTableColumns() {- const [visibleColumns, setVisibleColumns] = useEventsTableColumns();-- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button variant="outline" size="sm">- <ColumnsIcon className="h-4 w-4 mr-2" />- Columns- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="end" className="w-[200px]">- <DropdownMenuLabel>Toggle columns</DropdownMenuLabel>- <DropdownMenuSeparator />- {AVAILABLE_COLUMNS.map((column) => (- <DropdownMenuCheckboxItem- key={column.id}- checked={visibleColumns.includes(column.id)}- onCheckedChange={(checked) => {- setVisibleColumns(- checked- ? [...visibleColumns, column.id]- : visibleColumns.filter((id) => id !== column.id),- );- }}- >- {column.label}- </DropdownMenuCheckboxItem>- ))}- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/dashboard/src/components/events/table/index.tsx b/apps/dashboard/src/components/events/table/index.tsxdeleted file mode 100644index d37b0f6d9..000000000--- a/apps/dashboard/src/components/events/table/index.tsx+++ /dev/null@@ -1,128 +0,0 @@-import { FullPageEmptyState } from '@/components/full-page-empty-state';-import { TableSkeleton } from '@/components/ui/table';-import type {- UseInfiniteQueryResult,- UseQueryResult,-} from '@tanstack/react-query';-import { GanttChartIcon, Loader2Icon } from 'lucide-react';-import { useEffect, useRef, useState } from 'react';--import { pushModal, replaceWithModal, useOnPushModal } from '@/modals';-import type { RouterOutputs } from '@/trpc/client';-import { cn } from '@/utils/cn';-import { shouldIgnoreKeypress } from '@/utils/should-ignore-keypress';-import { bind } from 'bind-event-listener';-import { useInViewport } from 'react-in-viewport';-import { useColumns } from './columns';-import { EventsDataTable } from './events-data-table';--type Props =- | {- query: UseInfiniteQueryResult<RouterOutputs['event']['events']>;- }- | {- query: UseQueryResult<RouterOutputs['event']['events']>;- };--export const EventsTable = ({ query, ...props }: Props) => {- const columns = useColumns();- const { isLoading } = query;- const ref = useRef<HTMLDivElement>(null);- const { inViewport, enterCount } = useInViewport(ref, undefined, {- disconnectOnLeave: true,- });- const isInfiniteQuery = 'fetchNextPage' in query;- const data =- (isInfiniteQuery- ? query.data?.pages?.flatMap((p) => p.items)- : query.data?.items) ?? [];-- const hasNextPage = isInfiniteQuery- ? query.data?.pages[query.data.pages.length - 1]?.meta.next- : query.data?.meta.next;-- const [eventId, setEventId] = useState<null | string>(null);- useOnPushModal('EventDetails', (isOpen, props) => {- setEventId(isOpen ? props.id : null);- });-- useEffect(() => {- return bind(window, {- type: 'keydown',- listener(event) {- if (shouldIgnoreKeypress(event)) {- return;- }-- if (event.key === 'ArrowLeft') {- const index = data.findIndex((p) => p.id === eventId);- if (index !== -1) {- const match = data[index - 1];- if (match) {- replaceWithModal('EventDetails', match);- }- }- }- if (event.key === 'ArrowRight') {- const index = data.findIndex((p) => p.id === eventId);- if (index !== -1) {- const match = data[index + 1];- if (match) {- replaceWithModal('EventDetails', match);- } else if (- hasNextPage &&- isInfiniteQuery &&- data.length > 0 &&- query.isFetchingNextPage === false- ) {- query.fetchNextPage();- }- }- }- },- });- }, [data, eventId]);-- useEffect(() => {- if (- hasNextPage &&- isInfiniteQuery &&- data.length > 0 &&- inViewport &&- enterCount > 0 &&- query.isFetchingNextPage === false- ) {- query.fetchNextPage();- }- }, [inViewport, enterCount, hasNextPage]);-- if (isLoading) {- return <TableSkeleton cols={columns.length} />;- }-- if (data.length === 0) {- return (- <FullPageEmptyState title="No events here" icon={GanttChartIcon}>- <p>Could not find any events</p>- </FullPageEmptyState>- );- }-- return (- <>- <EventsDataTable data={data} columns={columns} />- {isInfiniteQuery && (- <div className="w-full h-10 center-center pt-10" ref={ref}>- <div- className={cn(- 'size-8 bg-background rounded-full center-center border opacity-0 transition-opacity',- isInfiniteQuery && query.isFetchingNextPage && 'opacity-100',- )}- >- <Loader2Icon className="size-4 animate-spin" />- </div>- </div>- )}- </>- );-};diff --git a/apps/dashboard/src/components/links.tsx b/apps/dashboard/src/components/links.tsxdeleted file mode 100644index bb294943c..000000000--- a/apps/dashboard/src/components/links.tsx+++ /dev/null@@ -1,30 +0,0 @@-import { useAppParams } from '@/hooks/useAppParams';-import type { LinkProps } from 'next/link';-import Link from 'next/link';--export function ProjectLink({- children,- ...props-}: LinkProps & {- children: React.ReactNode;- className?: string;- title?: string;-}) {- const { organizationId, projectId } = useAppParams();- if (typeof props.href === 'string') {- return (- <Link- {...props}- href={`/${organizationId}/${projectId}/${props.href.replace(- /^\//,- '',- )}`}- prefetch- >- {children}- </Link>- );- }-- return <p>ProjectLink</p>;-}diff --git a/apps/dashboard/src/components/notifications/notification-provider.tsx b/apps/dashboard/src/components/notifications/notification-provider.tsxdeleted file mode 100644index fb50a6c2c..000000000--- a/apps/dashboard/src/components/notifications/notification-provider.tsx+++ /dev/null@@ -1,29 +0,0 @@-import { useAppParams } from '@/hooks/useAppParams';-import useWS from '@/hooks/useWS';-import type { Prisma } from '@openpanel/db';-import { BellIcon } from 'lucide-react';-import { toast } from 'sonner';--export function NotificationProvider() {- const { projectId } = useAppParams();-- if (!projectId) return null;-- return <InnerNotificationProvider projectId={projectId} />;-}--export function InnerNotificationProvider({- projectId,-}: { projectId: string }) {- useWS<Prisma.NotificationUncheckedCreateInput>(- `/live/notifications/${projectId}`,- (notification) => {- toast(notification.title, {- description: notification.message,- icon: <BellIcon className="size-4" />,- });- },- );-- return null;-}diff --git a/apps/dashboard/src/components/notifications/notifications.tsx b/apps/dashboard/src/components/notifications/notifications.tsxdeleted file mode 100644index 822960228..000000000--- a/apps/dashboard/src/components/notifications/notifications.tsx+++ /dev/null@@ -1,14 +0,0 @@-'use client';--import { useAppParams } from '@/hooks/useAppParams';-import { api } from '@/trpc/client';-import { NotificationsTable } from './table';--export function Notifications() {- const { projectId } = useAppParams();- const query = api.notification.list.useQuery({- projectId,- });-- return <NotificationsTable query={query} />;-}diff --git a/apps/dashboard/src/components/notifications/table/index.tsx b/apps/dashboard/src/components/notifications/table/index.tsxdeleted file mode 100644index 1c44f8b5d..000000000--- a/apps/dashboard/src/components/notifications/table/index.tsx+++ /dev/null@@ -1,63 +0,0 @@-import { DataTable } from '@/components/data-table';-import { FullPageEmptyState } from '@/components/full-page-empty-state';-import { Pagination } from '@/components/pagination';-import { Button } from '@/components/ui/button';-import { TableSkeleton } from '@/components/ui/table';-import type { UseQueryResult } from '@tanstack/react-query';-import { GanttChartIcon } from 'lucide-react';-import type { Dispatch, SetStateAction } from 'react';--import type { RouterOutputs } from '@/trpc/client';-import { useColumns } from './columns';--type Props =- | {- query: UseQueryResult<RouterOutputs['notification']['list'][number][]>;- }- | {- query: UseQueryResult<RouterOutputs['notification']['list'][number][]>;- cursor: number;- setCursor: Dispatch<SetStateAction<number>>;- };--export const NotificationsTable = ({ query, ...props }: Props) => {- const columns = useColumns();- const { data, isFetching, isLoading } = query;-- if (isLoading) {- return <TableSkeleton cols={columns.length} />;- }-- if (data?.length === 0) {- return (- <FullPageEmptyState title="No notifications here" icon={GanttChartIcon}>- <p>Could not find any notifications</p>- {'cursor' in props && props.cursor !== 0 && (- <Button- className="mt-8"- variant="outline"- onClick={() => props.setCursor((p) => p - 1)}- >- Go to previous page- </Button>- )}- </FullPageEmptyState>- );- }-- return (- <>- <DataTable data={data ?? []} columns={columns} />- {'cursor' in props && (- <Pagination- className="mt-2"- setCursor={props.setCursor}- cursor={props.cursor}- count={Number.POSITIVE_INFINITY}- take={50}- loading={isFetching}- />- )}- </>- );-};diff --git a/apps/dashboard/src/components/overview/live-counter/index.tsx b/apps/dashboard/src/components/overview/live-counter/index.tsxdeleted file mode 100644index 4ee4473c6..000000000--- a/apps/dashboard/src/components/overview/live-counter/index.tsx+++ /dev/null@@ -1,13 +0,0 @@-import withSuspense from '@/hocs/with-suspense';--import { eventBuffer } from '@openpanel/db';--import type { LiveCounterProps } from './live-counter';-import LiveCounter from './live-counter';--async function ServerLiveCounter(props: Omit<LiveCounterProps, 'data'>) {- const count = await eventBuffer.getActiveVisitorCount(props.projectId);- return <LiveCounter data={count} {...props} />;-}--export default withSuspense(ServerLiveCounter, () => <div />);diff --git a/apps/dashboard/src/components/overview/live-counter/live-counter.tsx b/apps/dashboard/src/components/overview/live-counter/live-counter.tsxdeleted file mode 100644index d03d91c26..000000000--- a/apps/dashboard/src/components/overview/live-counter/live-counter.tsx+++ /dev/null@@ -1,85 +0,0 @@-'use client';--import { TooltipComplete } from '@/components/tooltip-complete';-import {- Tooltip,- TooltipContent,- TooltipTrigger,-} from '@/components/ui/tooltip';-import { useDebounceState } from '@/hooks/useDebounceState';-import useWS from '@/hooks/useWS';-import { cn } from '@/utils/cn';-import { useQueryClient } from '@tanstack/react-query';-import dynamic from 'next/dynamic';-import { useRef, useState } from 'react';-import { toast } from 'sonner';--export interface LiveCounterProps {- data: number;- projectId: string;-}--const AnimatedNumbers = dynamic(() => import('react-animated-numbers'), {- ssr: false,- loading: () => <div>0</div>,-});--const FIFTEEN_SECONDS = 1000 * 30;--export default function LiveCounter({ data = 0, projectId }: LiveCounterProps) {- const client = useQueryClient();- const counter = useDebounceState(data, 1000, {- maxWait: 5000,- });- const lastRefresh = useRef(Date.now());-- useWS<number>(`/live/visitors/${projectId}`, (value) => {- if (!Number.isNaN(value)) {- counter.set(value);- if (Date.now() - lastRefresh.current > FIFTEEN_SECONDS) {- lastRefresh.current = Date.now();- if (!document.hidden) {- toast('Refreshed data');- client.refetchQueries({- type: 'active',- });- }- }- }- });-- return (- <TooltipComplete- content={`${counter.debounced} unique visitors last 5 minutes`}- >- <div className="flex h-8 items-center gap-2 rounded border border-border px-3 font-medium leading-none">- <div className="relative">- <div- className={cn(- 'h-3 w-3 animate-ping rounded-full bg-emerald-500 opacity-100 transition-all',- counter.debounced === 0 && 'bg-destructive opacity-0',- )}- />- <div- className={cn(- 'absolute left-0 top-0 h-3 w-3 rounded-full bg-emerald-500 transition-all',- counter.debounced === 0 && 'bg-destructive',- )}- />- </div>- <AnimatedNumbers- includeComma- transitions={(index) => ({- type: 'spring',- duration: index + 0.3,-- damping: 10,- stiffness: 200,- })}- animateToNumber={counter.debounced}- locale="en"- />- </div>- </TooltipComplete>- );-}diff --git a/apps/dashboard/src/components/overview/overview-hydrate-options.tsx b/apps/dashboard/src/components/overview/overview-hydrate-options.tsxdeleted file mode 100644index fe871aaff..000000000--- a/apps/dashboard/src/components/overview/overview-hydrate-options.tsx+++ /dev/null@@ -1,22 +0,0 @@-'use client';--import { getStorageItem } from '@/utils/storage';-import { useEffect, useRef } from 'react';-import { useOverviewOptions } from './useOverviewOptions';--export function OverviewHydrateOptions() {- const { setRange, range } = useOverviewOptions();- const ref = useRef<boolean>(false);-- useEffect(() => {- if (!ref.current) {- const range = getStorageItem('range', '7d');- if (range !== '7d') {- setRange(range);- }- ref.current = true;- }- }, []);-- return null;-}diff --git a/apps/dashboard/src/components/overview/overview-live-histogram.tsx b/apps/dashboard/src/components/overview/overview-live-histogram.tsxdeleted file mode 100644index 2f9c06ef3..000000000--- a/apps/dashboard/src/components/overview/overview-live-histogram.tsx+++ /dev/null@@ -1,140 +0,0 @@-'use client';--import { api } from '@/trpc/client';-import { cn } from '@/utils/cn';--import type { IChartProps } from '@openpanel/validation';--import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip';--interface OverviewLiveHistogramProps {- projectId: string;-}--export function OverviewLiveHistogram({- projectId,-}: OverviewLiveHistogramProps) {- const report: IChartProps = {- projectId,- events: [- {- segment: 'user',- filters: [- {- id: '1',- name: 'name',- operator: 'is',- value: ['screen_view', 'session_start'],- },- ],- id: 'A',- name: '*',- displayName: 'Active users',- },- ],- chartType: 'histogram',- interval: 'minute',- range: '30min',- name: '',- metric: 'sum',- breakdowns: [],- lineType: 'monotone',- previous: false,- };- const countReport: IChartProps = {- name: '',- projectId,- events: [- {- segment: 'user',- filters: [],- id: 'A',- name: 'session_start',- },- ],- breakdowns: [],- chartType: 'metric',- lineType: 'monotone',- interval: 'minute',- range: '30min',- previous: false,- metric: 'sum',- };-- const res = api.chart.chart.useQuery(report);- const countRes = api.chart.chart.useQuery(countReport);-- const metrics = res.data?.series[0]?.metrics;- const minutes = (res.data?.series[0]?.data || []).slice(-30);- const liveCount = countRes.data?.series[0]?.metrics?.sum ?? 0;-- if (res.isInitialLoading || countRes.isInitialLoading) {- const staticArray = [- 10, 25, 30, 45, 20, 5, 55, 18, 40, 12, 50, 35, 8, 22, 38, 42, 15, 28, 52,- 5, 48, 14, 32, 58, 7, 19, 33, 56, 24, 5,- ];-- return (- <Wrapper count={0}>- {staticArray.map((percent, i) => (- <div- key={i as number}- className="flex-1 animate-pulse rounded-t-sm bg-def-200"- style={{ height: `${percent}%` }}- />- ))}- </Wrapper>- );- }-- if (!res.isSuccess && !countRes.isSuccess) {- return null;- }-- return (- <Wrapper count={liveCount}>- {minutes.map((minute) => {- return (- <Tooltip key={minute.date}>- <TooltipTrigger asChild>- <div- className={cn(- 'flex-1 rounded-t-sm transition-all ease-in-out hover:scale-110',- minute.count === 0 ? 'bg-def-200' : 'bg-highlight',- )}- style={{- height:- minute.count === 0- ? '5%'- : `${(minute.count / metrics!.max) * 100}%`,- }}- />- </TooltipTrigger>- <TooltipContent side="top">- <div>{minute.count} active users</div>- <div>@ {new Date(minute.date).toLocaleTimeString()}</div>- </TooltipContent>- </Tooltip>- );- })}- </Wrapper>- );-}--interface WrapperProps {- children: React.ReactNode;- count: number;-}--function Wrapper({ children, count }: WrapperProps) {- return (- <div className="flex h-full flex-col">- <div className="relative mb-1 text-sm font-medium text-muted-foreground">- {count} unique vistors last 30 minutes- </div>- <div className="relative flex h-full w-full flex-1 items-end gap-1">- {children}- </div>- </div>- );-}diff --git a/apps/dashboard/src/components/overview/overview-share/index.tsx b/apps/dashboard/src/components/overview/overview-share/index.tsxdeleted file mode 100644index e962b96a0..000000000--- a/apps/dashboard/src/components/overview/overview-share/index.tsx+++ /dev/null@@ -1,19 +0,0 @@-import { Button } from '@/components/ui/button';-import withSuspense from '@/hocs/with-suspense';--import { getShareByProjectId } from '@openpanel/db';--import { OverviewShare } from './overview-share';--type Props = {- projectId: string;-};--const OverviewShareServer = async ({ projectId }: Props) => {- const share = await getShareByProjectId(projectId);- return <OverviewShare data={share} />;-};--export default withSuspense(OverviewShareServer, () => (- <Button>Private</Button>-));diff --git a/apps/dashboard/src/components/overview/overview-top-bots.tsx b/apps/dashboard/src/components/overview/overview-top-bots.tsxdeleted file mode 100644index c273ebec8..000000000--- a/apps/dashboard/src/components/overview/overview-top-bots.tsx+++ /dev/null@@ -1,80 +0,0 @@-import { api } from '@/trpc/client';-import { useState } from 'react';--import { Pagination } from '../pagination';-import { Tooltiper } from '../ui/tooltip';-import { WidgetTable } from '../widget-table';--interface Props {- projectId: string;-}--function getPath(path: string) {- try {- return new URL(path).pathname;- } catch {- return path;- }-}--const OverviewTopBots = ({ projectId }: Props) => {- const [cursor, setCursor] = useState<number>(0);- const res = api.event.bots.useQuery(- { projectId, cursor },- {- keepPreviousData: true,- },- );- const data = res.data?.data ?? [];- const count = res.data?.count ?? 0;-- return (- <>- <WidgetTable- className="max-w-full [&_td:first-child]:w-full [&_th]:text-sm [&_tr]:text-sm"- data={data}- keyExtractor={(item) => item.id}- columns={[- {- name: 'Path',- width: 'w-full',- render(item) {- return (- <Tooltiper asChild content={item.path}>- <span className="w-full">{getPath(item.path)}</span>- </Tooltiper>- );- },- },- {- name: 'Date',- width: '100px',- render(item) {- return (- <div className="flex gap-2 whitespace-nowrap">- <Tooltiper asChild content={`${item.type}`}>- <div>{item.name}</div>- </Tooltiper>- <Tooltiper- asChild- content={`${item.createdAt.toLocaleString()}`}- >- <div>{item.createdAt.toLocaleDateString()}</div>- </Tooltiper>- </div>- );- },- },- ]}- />- <Pagination- cursor={cursor}- setCursor={setCursor}- count={count}- take={8}- />- </>- );-};--export default OverviewTopBots;diff --git a/apps/dashboard/src/components/overview/overview-top-events/index.tsx b/apps/dashboard/src/components/overview/overview-top-events/index.tsxdeleted file mode 100644index 6c9601c13..000000000--- a/apps/dashboard/src/components/overview/overview-top-events/index.tsx+++ /dev/null@@ -1,16 +0,0 @@-import { getConversionEventNames } from '@openpanel/db';--import type { OverviewTopEventsProps } from './overview-top-events';-import OverviewTopEvents from './overview-top-events';--export default async function OverviewTopEventsServer({- projectId,-}: Omit<OverviewTopEventsProps, 'conversions'>) {- const eventNames = await getConversionEventNames(projectId);- return (- <OverviewTopEvents- projectId={projectId}- conversions={eventNames.map((item) => item.name)}- />- );-}diff --git a/apps/dashboard/src/components/page-tabs.tsx b/apps/dashboard/src/components/page-tabs.tsxdeleted file mode 100644index a17e9b64b..000000000--- a/apps/dashboard/src/components/page-tabs.tsx+++ /dev/null@@ -1,75 +0,0 @@-'use client';--import { cn } from '@/utils/cn';-import { motion } from 'framer-motion';-import Link from 'next/link';-import { useState } from 'react';--export function PageTabs({- children,- className,-}: {- children: React.ReactNode;- className?: string;-}) {- return (- <div className={cn('h-7 overflow-x-auto', className)}>- <div className="flex gap-4 whitespace-nowrap text-3xl font-semibold">- {children}- </div>- </div>- );-}--export function PageTabsLink({- href,- children,- isActive = false,-}: {- href: string;- children: React.ReactNode;- isActive?: boolean;-}) {- return (- <div className="relative">- <Link- className={cn(- 'inline-block opacity-100 transition-transform hover:translate-y-[-1px]',- isActive ? 'opacity-100' : 'opacity-50',- )}- href={href}- >- {children}- </Link>- {isActive && (- <motion.div- className="rounded-full absolute -bottom-1 left-0 right-0 h-0.5 bg-primary"- layoutId={'page-tabs-link'}- />- )}- </div>- );-}--export function PageTabsItem({- onClick,- children,- isActive = false,-}: {- onClick: () => void;- children: React.ReactNode;- isActive?: boolean;-}) {- return (- <button- type="button"- className={cn(- 'inline-block opacity-100 transition-transform hover:translate-y-[-1px]',- isActive ? 'opacity-100' : 'opacity-50',- )}- onClick={onClick}- >- {children}- </button>- );-}diff --git a/apps/dashboard/src/components/pagination.tsx b/apps/dashboard/src/components/pagination.tsxdeleted file mode 100644index 35a254b13..000000000--- a/apps/dashboard/src/components/pagination.tsx+++ /dev/null@@ -1,82 +0,0 @@-import { cn } from '@/utils/cn';-import {- ChevronLeftIcon,- ChevronRightIcon,- ChevronsLeftIcon,- ChevronsRightIcon,-} from 'lucide-react';-import type { Dispatch, SetStateAction } from 'react';-import { useState } from 'react';--import { Button } from './ui/button';--export function usePagination(take: number) {- const [page, setPage] = useState(0);- return {- take,- skip: page * take,- setPage,- page,- paginate: <T,>(data: T[]): T[] =>- data.slice(page * take, (page + 1) * take),- };-}--export function Pagination({- take,- count,- cursor,- setCursor,- className,- size = 'base',- loading,-}: {- take: number;- count: number;- cursor: number;- setCursor: Dispatch<SetStateAction<number>>;- className?: string;- size?: 'sm' | 'base';- loading?: boolean;-}) {- const lastCursor = Math.floor(count / take) - 1;- const isNextDisabled = count === 0 || lastCursor === cursor;- return (- <div- className={cn(- 'flex select-none items-center justify-end gap-1',- className,- )}- >- {size === 'base' && (- <Button- variant="outline"- size="icon"- onClick={() => setCursor(0)}- disabled={cursor === 0}- className="max-sm:hidden"- icon={ChevronsLeftIcon}- />- )}- <Button- variant="outline"- size="icon"- onClick={() => setCursor((p) => Math.max(0, p - 1))}- disabled={cursor === 0}- icon={ChevronLeftIcon}- />-- <Button loading={loading} disabled variant="outline" size="icon">- {loading ? '' : cursor}- </Button>-- <Button- variant="outline"- size="icon"- onClick={() => setCursor((p) => Math.min(lastCursor, p + 1))}- disabled={isNextDisabled}- icon={ChevronRightIcon}- />- </div>- );-}diff --git a/apps/dashboard/src/components/profiles/table/index.tsx b/apps/dashboard/src/components/profiles/table/index.tsxdeleted file mode 100644index b98e3e766..000000000--- a/apps/dashboard/src/components/profiles/table/index.tsx+++ /dev/null@@ -1,74 +0,0 @@-import { DataTable } from '@/components/data-table';-import { FullPageEmptyState } from '@/components/full-page-empty-state';-import { Pagination } from '@/components/pagination';-import { Button } from '@/components/ui/button';-import { TableSkeleton } from '@/components/ui/table';-import type { UseQueryResult } from '@tanstack/react-query';-import isEqual from 'lodash.isequal';-import { GanttChartIcon } from 'lucide-react';-import { memo } from 'react';-import type { Dispatch, SetStateAction } from 'react';--import type { IServiceProfile } from '@openpanel/db';--import { useColumns } from './columns';--type CommonProps = {- type?: 'profiles' | 'power-users';- query: UseQueryResult<IServiceProfile[]>;-};-type Props =- | CommonProps- | (CommonProps & {- cursor: number;- setCursor: Dispatch<SetStateAction<number>>;- });--export const ProfilesTable = memo(- ({ type, query, ...props }: Props) => {- const columns = useColumns(type);- const { data, isFetching, isLoading } = query;-- if (isLoading) {- return <TableSkeleton cols={columns.length} />;- }-- if (data?.length === 0) {- return (- <FullPageEmptyState title="No profiles here" icon={GanttChartIcon}>- <p>Could not find any profiles</p>- {'cursor' in props && props.cursor !== 0 && (- <Button- className="mt-8"- variant="outline"- onClick={() => props.setCursor((p) => p - 1)}- >- Go to previous page- </Button>- )}- </FullPageEmptyState>- );- }-- return (- <>- <DataTable data={data ?? []} columns={columns} />- {'cursor' in props && (- <Pagination- className="mt-2"- setCursor={props.setCursor}- cursor={props.cursor}- count={Number.POSITIVE_INFINITY}- take={50}- loading={isFetching}- />- )}- </>- );- },- (prevProps, nextProps) => {- return isEqual(prevProps.query.data, nextProps.query.data);- },-);--ProfilesTable.displayName = 'ProfilesTable';diff --git a/apps/dashboard/src/components/projects/project-card.tsx b/apps/dashboard/src/components/projects/project-card.tsxdeleted file mode 100644index 8953aa056..000000000--- a/apps/dashboard/src/components/projects/project-card.tsx+++ /dev/null@@ -1,114 +0,0 @@-import { shortNumber } from '@/hooks/useNumerFormatter';-import { Suspense } from 'react';-import { escape } from 'sqlstring';--import type { IServiceProject } from '@openpanel/db';-import { TABLE_NAMES, chQuery } from '@openpanel/db';--import { SettingsIcon } from 'lucide-react';-import Link from 'next/link';-import { ChartSSR } from '../chart-ssr';-import { FadeIn } from '../fade-in';-import { SerieIcon } from '../report-chart/common/serie-icon';-import { LinkButton } from '../ui/button';--function ProjectCard({ id, domain, name, organizationId }: IServiceProject) {- // For some unknown reason I get when navigating back to this page when using <Link />- // Should be solved: https://github.com/vercel/next.js/issues/61336- // But still get the error- return (- <div className="relative card hover:-translate-y-px hover:shadow-sm">- <a- href={`/${organizationId}/${id}`}- className="col p-4 transition-transform"- >- <div className="font-medium flex items-center gap-2 text-lg pb-2">- <div className="row gap-2 flex-1">- {domain && <SerieIcon name={domain ?? ''} />}- {name}- </div>- </div>- <div className="-mx-4 aspect-[8/1]">- <Suspense>- <ProjectChart id={id} />- </Suspense>- </div>- <div className="flex justify-end gap-4 h-9 md:h-4">- <Suspense>- <ProjectMetrics id={id} />- </Suspense>- </div>- </a>- <LinkButton- variant="ghost"- href={`/${organizationId}/${id}/settings/projects`}- className="text-muted-foreground absolute top-2 right-2"- >- <SettingsIcon size={16} />- </LinkButton>- </div>- );-}--async function ProjectChart({ id }: { id: string }) {- const chart = await chQuery<{ value: number; date: string }>(- `SELECT- uniqHLL12(profile_id) as value,- toStartOfDay(created_at) as date- FROM ${TABLE_NAMES.sessions}- WHERE- sign = 1 AND- project_id = ${escape(id)} AND- created_at >= now() - interval '1 month'- GROUP BY date- ORDER BY date ASC- WITH FILL FROM toStartOfDay(now() - interval '1 month')- TO toStartOfDay(now())- STEP INTERVAL 1 day- `,- );-- return (- <FadeIn className="h-full w-full">- <ChartSSR data={chart.map((d) => ({ ...d, date: new Date(d.date) }))} />- </FadeIn>- );-}--function Metric({ value, label }: { value: React.ReactNode; label: string }) {- return (- <div className="flex flex-col gap-2 md:flex-row">- <div className="text-muted-foreground">{label}</div>- <span className="font-medium">{value}</span>- </div>- );-}--async function ProjectMetrics({ id }: { id: string }) {- const [metrics] = await chQuery<{- months_3: number;- month: number;- day: number;- }>(- `- SELECT- uniqHLL12(if(created_at >= (now() - toIntervalMonth(6)), profile_id, null)) AS months_3,- uniqHLL12(if(created_at >= (now() - toIntervalMonth(1)), profile_id, null)) AS month,- uniqHLL12(if(created_at >= (now() - toIntervalDay(1)), profile_id, null)) AS day-FROM sessions-WHERE- project_id = ${escape(id)} AND- created_at >= (now() - toIntervalMonth(6))- `,- );-- return (- <FadeIn className="flex gap-4">- <Metric label="3 months" value={shortNumber('en')(metrics?.months_3)} />- <Metric label="Month" value={shortNumber('en')(metrics?.month)} />- <Metric label="24h" value={shortNumber('en')(metrics?.day)} />- </FadeIn>- );-}--export default ProjectCard;diff --git a/apps/dashboard/src/components/references/table.tsx b/apps/dashboard/src/components/references/table.tsxdeleted file mode 100644index 175617d97..000000000--- a/apps/dashboard/src/components/references/table.tsx+++ /dev/null@@ -1,27 +0,0 @@-import { formatDate, formatDateTime } from '@/utils/date';-import type { ColumnDef } from '@tanstack/react-table';--import type { IServiceReference } from '@openpanel/db';--export const columns: ColumnDef<IServiceReference>[] = [- {- accessorKey: 'title',- header: 'Title',- },- {- accessorKey: 'date',- header: 'Date',- cell({ row }) {- const date = row.original.date;- return <div>{formatDateTime(date)}</div>;- },- },- {- accessorKey: 'createdAt',- header: 'Created at',- cell({ row }) {- const date = row.original.createdAt;- return <div>{formatDate(date)}</div>;- },- },-];diff --git a/apps/dashboard/src/components/settings-toggle.tsx b/apps/dashboard/src/components/settings-toggle.tsxdeleted file mode 100644index 2bf8a7fd0..000000000--- a/apps/dashboard/src/components/settings-toggle.tsx+++ /dev/null@@ -1,113 +0,0 @@-'use client';--import { Button } from '@/components/ui/button';-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuLabel,- DropdownMenuSeparator,- DropdownMenuShortcut,- DropdownMenuSub,- DropdownMenuSubContent,- DropdownMenuSubTrigger,- DropdownMenuTrigger,-} from '@/components/ui/dropdown-menu';-import { CheckIcon, MoreHorizontalIcon, PlusIcon } from 'lucide-react';-import { useTheme } from 'next-themes';-import * as React from 'react';--import { useAppParams } from '@/hooks/useAppParams';-import { useLogout } from '@/hooks/useLogout';-import { api } from '@/trpc/client';-import { useRouter } from 'next/navigation';-import { ProjectLink } from './links';--interface Props {- className?: string;-}--export default function SettingsToggle({ className }: Props) {- const router = useRouter();- const { setTheme, theme } = useTheme();- const { projectId } = useAppParams();- const logout = useLogout();-- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button variant="outline" size="icon" className={className}>- <MoreHorizontalIcon className="h-[1.2rem] w-[1.2rem]" />- <span className="sr-only">Toggle settings</span>- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="center" className="w-56">- {projectId && (- <>- <DropdownMenuItem asChild>- <ProjectLink href="/reports">- Create report- <DropdownMenuShortcut>- <PlusIcon className="h-4 w-4" />- </DropdownMenuShortcut>- </ProjectLink>- </DropdownMenuItem>- <DropdownMenuSeparator />- <DropdownMenuLabel>Settings</DropdownMenuLabel>- <DropdownMenuItem asChild>- <ProjectLink href="/settings/organization">- Organization- </ProjectLink>- </DropdownMenuItem>- <DropdownMenuItem asChild>- <ProjectLink href="/settings/projects">- Project & Clients- </ProjectLink>- </DropdownMenuItem>- <DropdownMenuItem asChild>- <ProjectLink href="/settings/profile">Your profile</ProjectLink>- </DropdownMenuItem>- <DropdownMenuItem asChild>- <ProjectLink href="/settings/references">References</ProjectLink>- </DropdownMenuItem>- <DropdownMenuItem asChild>- <ProjectLink href="/settings/notifications">- Notifications- </ProjectLink>- </DropdownMenuItem>- <DropdownMenuItem asChild>- <ProjectLink href="/settings/integrations">- Integrations- </ProjectLink>- </DropdownMenuItem>- <DropdownMenuSeparator />- </>- )}- <DropdownMenuSub>- <DropdownMenuSubTrigger className="flex w-full items-center justify-between">- Theme- <DropdownMenuShortcut>{theme}</DropdownMenuShortcut>- </DropdownMenuSubTrigger>- <DropdownMenuSubContent className="p-0">- {['system', 'light', 'dark'].map((themeOption) => (- <DropdownMenuItem- key={themeOption}- onClick={() => setTheme(themeOption)}- className="capitalize"- >- {themeOption}- {theme === themeOption && (- <CheckIcon className="ml-2 h-4 w-4" />- )}- </DropdownMenuItem>- ))}- </DropdownMenuSubContent>- </DropdownMenuSub>- <DropdownMenuSeparator />- <DropdownMenuItem className="text-red-600" onClick={() => logout()}>- Logout- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/dashboard/src/components/settings/invites/columns.tsx b/apps/dashboard/src/components/settings/invites/columns.tsxdeleted file mode 100644index 2dbe319f2..000000000--- a/apps/dashboard/src/components/settings/invites/columns.tsx+++ /dev/null@@ -1,126 +0,0 @@-import { TooltipComplete } from '@/components/tooltip-complete';-import { Badge } from '@/components/ui/badge';-import { Button } from '@/components/ui/button';-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuTrigger,-} from '@/components/ui/dropdown-menu';-import { api } from '@/trpc/client';-import type { ColumnDef, Row } from '@tanstack/react-table';-import { MoreHorizontalIcon } from 'lucide-react';-import { useRouter } from 'next/navigation';-import { pathOr } from 'ramda';-import { toast } from 'sonner';--import { ACTIONS } from '@/components/data-table';-import { clipboard } from '@/utils/clipboard';-import type { IServiceInvite, IServiceProject } from '@openpanel/db';--export function useColumns(- projects: IServiceProject[],-): ColumnDef<IServiceInvite>[] {- return [- {- accessorKey: 'id',- },- {- accessorKey: 'email',- header: 'Mail',- cell: ({ row }) => (- <div className="font-medium">{row.original.email}</div>- ),- },- {- accessorKey: 'role',- header: 'Role',- },- {- accessorKey: 'createdAt',- header: 'Created',- cell: ({ row }) => (- <TooltipComplete- content={new Date(row.original.createdAt).toLocaleString()}- >- {new Date(row.original.createdAt).toLocaleDateString()}- </TooltipComplete>- ),- },- {- accessorKey: 'projectAccess',- header: 'Access',- cell: ({ row }) => {- const access = row.original.projectAccess;- return (- <>- {access.map((id) => {- const project = projects.find((p) => p.id === id);- if (!project) {- return (- <Badge key={id} className="mr-1">- Unknown- </Badge>- );- }- return (- <Badge key={id} color="blue" className="mr-1">- {project.name}- </Badge>- );- })}- {access.length === 0 && (- <Badge variant={'secondary'}>All projects</Badge>- )}- </>- );- },- },- {- id: ACTIONS,- cell: ({ row }) => {- return <ActionCell row={row} />;- },- },- ];-}--function ActionCell({ row }: { row: Row<IServiceInvite> }) {- const router = useRouter();- const revoke = api.organization.revokeInvite.useMutation({- onSuccess() {- toast.success(`Invite for ${row.original.email} revoked`);- router.refresh();- },- onError() {- toast.error(`Failed to revoke invite for ${row.original.email}`);- },- });-- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button icon={MoreHorizontalIcon} size="icon" variant={'outline'} />- </DropdownMenuTrigger>- <DropdownMenuContent>- <DropdownMenuItem- onClick={() => {- clipboard(- `${window.location.origin}/onboarding?inviteId=${row.original.id}`,- );- }}- >- Copy invite link- </DropdownMenuItem>- <DropdownMenuItem- className="text-destructive"- onClick={() => {- revoke.mutate({ inviteId: row.original.id });- }}- >- Revoke invite- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/dashboard/src/components/settings/invites/index.tsx b/apps/dashboard/src/components/settings/invites/index.tsxdeleted file mode 100644index e9cf7ebba..000000000--- a/apps/dashboard/src/components/settings/invites/index.tsx+++ /dev/null@@ -1,46 +0,0 @@-'use client';--import { DataTable } from '@/components/data-table';-import { FullPageEmptyState } from '@/components/full-page-empty-state';-import { GanttChartIcon } from 'lucide-react';--import type { IServiceInvite, IServiceProject } from '@openpanel/db';--import { useColumns } from './columns';--type CommonProps = {- projects: IServiceProject[];- data: IServiceInvite[];-};--type Props = CommonProps;--export const InvitesTable = ({ projects, data }: Props) => {- const columns = useColumns(projects);-- if (!data) {- return (- <div className="flex flex-col gap-2">- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- </div>- );- }-- if (data?.length === 0) {- return (- <FullPageEmptyState title="No members here" icon={GanttChartIcon}>- <p>Could not find any members</p>- </FullPageEmptyState>- );- }-- return (- <>- <DataTable data={data ?? []} columns={columns} />- </>- );-};diff --git a/apps/dashboard/src/components/settings/members/columns.tsx b/apps/dashboard/src/components/settings/members/columns.tsxdeleted file mode 100644index 642523c59..000000000--- a/apps/dashboard/src/components/settings/members/columns.tsx+++ /dev/null@@ -1,161 +0,0 @@-import { TooltipComplete } from '@/components/tooltip-complete';-import { Button } from '@/components/ui/button';-import { ComboboxAdvanced } from '@/components/ui/combobox-advanced';-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuTrigger,-} from '@/components/ui/dropdown-menu';-import { api } from '@/trpc/client';-import type { ColumnDef, Row } from '@tanstack/react-table';-import { MoreHorizontalIcon } from 'lucide-react';-import { useRouter } from 'next/navigation';-import { useRef, useState } from 'react';-import { toast } from 'sonner';--import { ACTIONS } from '@/components/data-table';-import { useAuth } from '@/hooks/useAuth';-import type { IServiceMember, IServiceProject } from '@openpanel/db';--export function useColumns(projects: IServiceProject[]) {- const columns: ColumnDef<IServiceMember>[] = [- {- accessorKey: 'user',- header: 'Name',- cell: ({ row }) => {- const user = row.original.user;- if (!user) return null;- return [user.firstName, user.lastName].filter(Boolean).join(' ');- },- },- {- accessorKey: 'email',- header: 'Email',- cell: ({ row }) => {- const user = row.original.user;- if (!user) return null;- return <div className="font-medium">{user.email}</div>;- },- },- {- accessorKey: 'role',- header: 'Role',- },- {- accessorKey: 'createdAt',- header: 'Created',- cell: ({ row }) => (- <TooltipComplete- content={new Date(row.original.createdAt).toLocaleString()}- >- {new Date(row.original.createdAt).toLocaleDateString()}- </TooltipComplete>- ),- },- {- accessorKey: 'access',- header: 'Access',- cell: ({ row }) => {- return <AccessCell row={row} projects={projects} />;- },- },- {- id: ACTIONS,- cell: ({ row }) => {- return <ActionsCell row={row} />;- },- },- ];-- return columns;-}--function AccessCell({- row,- projects,-}: {- row: Row<IServiceMember>;- projects: IServiceProject[];-}) {- const auth = useAuth();- const currentUserId = auth.data?.userId;- const initial = useRef(row.original.access.map((item) => item.projectId));- const [access, setAccess] = useState<string[]>(- row.original.access.map((item) => item.projectId),- );- const mutation = api.organization.updateMemberAccess.useMutation({- onError(error) {- toast.error(error.message);- setAccess(initial.current);- },- });-- if (auth.isLoading) {- return null;- }-- if (currentUserId === row.original.userId) {- return (- <div className="text-muted-foreground">Can't change your own access</div>- );- }-- return (- <ComboboxAdvanced- placeholder="Restrict access to projects"- value={access}- onChange={(newAccess) => {- setAccess(newAccess);- mutation.mutate({- userId: row.original.user!.id,- organizationId: row.original.organizationId,- access: newAccess as string[],- });- }}- items={projects.map((item) => ({- label: item.name,- value: item.id,- }))}- />- );-}--function ActionsCell({ row }: { row: Row<IServiceMember> }) {- const router = useRouter();- const revoke = api.organization.removeMember.useMutation({- onSuccess() {- toast.success(- `${row.original.user?.firstName} has been removed from the organization`,- );- router.refresh();- },- onError() {- toast.error(- `Failed to remove ${row.original.user?.firstName} from the organization`,- );- },- });-- return (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button icon={MoreHorizontalIcon} size="icon" variant={'outline'} />- </DropdownMenuTrigger>- <DropdownMenuContent>- <DropdownMenuItem- className="text-destructive"- onClick={() => {- revoke.mutate({- organizationId: row.original.organizationId,- userId: row.original.userId!,- id: row.original.id,- });- }}- >- Remove member- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- );-}diff --git a/apps/dashboard/src/components/settings/members/index.tsx b/apps/dashboard/src/components/settings/members/index.tsxdeleted file mode 100644index 41aed16de..000000000--- a/apps/dashboard/src/components/settings/members/index.tsx+++ /dev/null@@ -1,46 +0,0 @@-'use client';--import { DataTable } from '@/components/data-table';-import { FullPageEmptyState } from '@/components/full-page-empty-state';-import { GanttChartIcon } from 'lucide-react';--import type { IServiceMember, IServiceProject } from '@openpanel/db';--import { useColumns } from './columns';--type CommonProps = {- projects: IServiceProject[];- data: IServiceMember[];-};--type Props = CommonProps;--export const MembersTable = ({ projects, data }: Props) => {- const columns = useColumns(projects);-- if (!data) {- return (- <div className="flex flex-col gap-2">- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- <div className="card h-[74px] w-full animate-pulse items-center justify-between rounded-lg p-4" />- </div>- );- }-- if (data?.length === 0) {- return (- <FullPageEmptyState title="No members here" icon={GanttChartIcon}>- <p>Could not find any members</p>- </FullPageEmptyState>- );- }-- return (- <>- <DataTable data={data ?? []} columns={columns} />- </>- );-};diff --git a/apps/dashboard/src/components/sign-out-button.tsx b/apps/dashboard/src/components/sign-out-button.tsxdeleted file mode 100644index e7a654666..000000000--- a/apps/dashboard/src/components/sign-out-button.tsx+++ /dev/null@@ -1,17 +0,0 @@-'use client';--import { LogOutIcon } from 'lucide-react';--import { useLogout } from '@/hooks/useLogout';-import { Button } from './ui/button';--const SignOutButton = () => {- const logout = useLogout();- return (- <Button variant={'secondary'} icon={LogOutIcon} onClick={() => logout()}>- Sign out- </Button>- );-};--export default SignOutButton;diff --git a/apps/dashboard/src/components/ui/badge.tsx b/apps/dashboard/src/components/ui/badge.tsxdeleted file mode 100644index 0c56a7529..000000000--- a/apps/dashboard/src/components/ui/badge.tsx+++ /dev/null@@ -1,42 +0,0 @@-'use client';--import { cn } from '@/utils/cn';-import { cva } from 'class-variance-authority';-import type { VariantProps } from 'class-variance-authority';-import type * as React from 'react';--const badgeVariants = cva(- 'inline-flex h-[20px] items-center rounded border px-2 text-sm font-mono transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',- {- variants: {- variant: {- default:- 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',- secondary:- 'border-transparent bg-def-100 text-secondary-foreground hover:bg-def-100/80',- destructive:- 'border-transparent bg-destructive-foreground text-destructive hover:bg-destructive/80',- success:- 'border-transparent bg-emerald-500 text-emerald-100 hover:bg-emerald-500/80',- outline: 'text-foreground',- muted: 'bg-def-100 text-foreground',- foregroundish: 'bg-foregroundish text-foregroundish-foreground',- },- },- defaultVariants: {- variant: 'default',- },- },-);--export interface BadgeProps- extends React.HTMLAttributes<HTMLDivElement>,- VariantProps<typeof badgeVariants> {}--function Badge({ className, variant, ...props }: BadgeProps) {- return (- <div className={cn(badgeVariants({ variant }), className)} {...props} />- );-}--export { Badge, badgeVariants };diff --git a/apps/dashboard/src/components/ui/button.tsx b/apps/dashboard/src/components/ui/button.tsxdeleted file mode 100644index 5e85f4eac..000000000--- a/apps/dashboard/src/components/ui/button.tsx+++ /dev/null@@ -1,180 +0,0 @@-'use client';--import { cn } from '@/utils/cn';-import { Slot } from '@radix-ui/react-slot';-import { cva } from 'class-variance-authority';-import type { VariantProps } from 'class-variance-authority';-import type { LucideIcon } from 'lucide-react';-import { Loader2 } from 'lucide-react';-import Link from 'next/link';-import * as React from 'react';--const buttonVariants = cva(- 'inline-flex flex-shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md 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 hover:translate-y-[-1px]',- {- variants: {- variant: {- default: 'bg-primary text-primary-foreground hover:bg-primary/90',- cta: 'bg-highlight text-white hover:bg-highlight/80',- destructive:- 'bg-destructive text-destructive-foreground hover:bg-destructive/90',- outline:- 'border border-input bg-card hover:bg-accent hover:text-accent-foreground',- secondary: 'bg-def-100 text-secondary-foreground hover:bg-def-100/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-8 rounded-md px-2',- lg: 'h-11 rounded-md px-8',- icon: 'h-8 w-8',- },- },- defaultVariants: {- variant: 'default',- size: 'sm',- },- },-);--export interface ButtonProps- extends React.ButtonHTMLAttributes<HTMLButtonElement>,- VariantProps<typeof buttonVariants> {- asChild?: boolean;- loading?: boolean;- icon?: LucideIcon;- responsive?: boolean;- autoHeight?: boolean;-}--function fixHeight({- autoHeight,- size,-}: { autoHeight?: boolean; size: ButtonProps['size'] }) {- if (autoHeight) {- switch (size) {- case 'lg':- return 'h-auto min-h-11 py-2';- case 'icon':- return 'h-auto min-h-8 py-1';- case 'default':- return 'h-auto min-h-10 py-2';- default:- return 'h-auto min-h-8 py-1';- }- }- return '';-}--const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(- (- {- className,- variant,- size,- asChild = false,- children,- loading,- disabled,- icon,- responsive,- autoHeight,- ...props- },- ref,- ) => {- const Comp = asChild ? Slot : 'button';- const Icon = loading ? Loader2 : (icon ?? null);- return (- <Comp- className={cn(- buttonVariants({ variant, size, className }),- fixHeight({ autoHeight, size }),- )}- ref={ref}- disabled={loading || disabled}- {...props}- >- {Icon && (- <Icon- className={cn(- 'h-4 w-4 flex-shrink-0',- loading && 'animate-spin',- size !== 'icon' && responsive && 'mr-0 sm:mr-2',- size !== 'icon' && !responsive && 'mr-2',- )}- />- )}- {responsive ? (- <span className="hidden sm:block">{children}</span>- ) : (- children- )}- </Comp>- );- },-);-Button.displayName = 'Button';-Button.defaultProps = {- type: 'button',-};-export interface LinkButtonProps- extends React.AnchorHTMLAttributes<HTMLAnchorElement>,- VariantProps<typeof buttonVariants> {- asChild?: boolean;- loading?: boolean;- icon?: LucideIcon;- responsive?: boolean;- href: string;- prefetch?: boolean;-}--const LinkButton = React.forwardRef<- typeof Link,- React.PropsWithoutRef<LinkButtonProps>->(- (- {- className,- variant,- size,- children,- loading,- icon,- responsive,- href,- ...props- },- ref,- ) => {- const Icon = loading ? Loader2 : (icon ?? null);- return (- <Link- href={href}- className={cn(buttonVariants({ variant, size, className }))}- // @ts-expect-error- ref={ref}- {...props}- >- {Icon && (- <Icon- className={cn(- 'mr-2 h-4 w-4 flex-shrink-0',- responsive && 'mr-0 sm:mr-2',- loading && 'animate-spin',- )}- />- )}- {responsive ? (- <span className="hidden sm:block">{children}</span>- ) : (- children- )}- </Link>- );- },-);-LinkButton.displayName = 'LinkButton';--export { Button, LinkButton, buttonVariants };diff --git a/apps/dashboard/src/components/ui/calendar.tsx b/apps/dashboard/src/components/ui/calendar.tsxdeleted file mode 100644index 5f07ea357..000000000--- a/apps/dashboard/src/components/ui/calendar.tsx+++ /dev/null@@ -1,63 +0,0 @@-import { buttonVariants } from '@/components/ui/button';-import { cn } from '@/utils/cn';-import { ChevronLeft, ChevronRight } from 'lucide-react';-import type * as React from 'react';-import { DayPicker } from 'react-day-picker';--export type CalendarProps = React.ComponentProps<typeof DayPicker>;--function Calendar({- className,- classNames,- showOutsideDays = true,- ...props-}: CalendarProps) {- return (- <DayPicker- showOutsideDays={showOutsideDays}- className={cn('p-3', className)}- classNames={{- months: 'flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0',- month: 'space-y-4',- caption: 'flex justify-center pt-1 relative items-center',- caption_label: ' font-medium',- nav: 'space-x-1 flex items-center',- nav_button: cn(- buttonVariants({ variant: 'outline' }),- 'h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100',- ),- nav_button_previous: 'absolute left-1',- nav_button_next: 'absolute right-1',- table: 'w-full border-collapse space-y-1',- head_row: 'flex',- head_cell:- 'text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]',- row: 'flex w-full mt-2',- cell: 'h-9 w-9 text-center p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20',- day: cn(- buttonVariants({ variant: 'ghost' }),- 'h-9 w-9 p-0 font-normal aria-selected:opacity-100',- ),- day_range_end: 'day-range-end',- day_selected:- 'bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground',- day_today: 'bg-accent text-accent-foreground',- day_outside:- 'day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30',- day_disabled: 'text-muted-foreground opacity-50',- day_range_middle:- 'aria-selected:bg-accent aria-selected:text-accent-foreground',- day_hidden: 'invisible',- ...classNames,- }}- components={{- IconLeft: ({ ...props }) => <ChevronLeft className="h-4 w-4" />,- IconRight: ({ ...props }) => <ChevronRight className="h-4 w-4" />,- }}- {...props}- />- );-}-Calendar.displayName = 'Calendar';--export { Calendar };diff --git a/apps/dashboard/src/components/ui/command.tsx b/apps/dashboard/src/components/ui/command.tsxdeleted file mode 100644index 8c7d2b81c..000000000--- a/apps/dashboard/src/components/ui/command.tsx+++ /dev/null@@ -1,151 +0,0 @@-'use client';--import { Dialog, DialogContent } from '@/components/ui/dialog';-import { cn } from '@/utils/cn';-import type { DialogProps } from '@radix-ui/react-dialog';-import { Command as CommandPrimitive } from 'cmdk';-import { Search } from 'lucide-react';-import * as React from 'react';--const Command = React.forwardRef<- React.ElementRef<typeof CommandPrimitive>,- React.ComponentPropsWithoutRef<typeof CommandPrimitive>->(({ className, ...props }, ref) => (- <CommandPrimitive- ref={ref}- className={cn(- 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',- className,- )}- {...props}- />-));-Command.displayName = CommandPrimitive.displayName;--type CommandDialogProps = DialogProps;--const CommandDialog = ({ children, ...props }: CommandDialogProps) => {- return (- <Dialog {...props}>- <DialogContent className="overflow-hidden p-0 shadow-lg">- <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">- {children}- </Command>- </DialogContent>- </Dialog>- );-};--const CommandInput = React.forwardRef<- React.ElementRef<typeof CommandPrimitive.Input>,- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>->(({ className, ...props }, ref) => (- <div className="flex items-center border-b px-3" cmdk-input-wrapper="">- <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />- <CommandPrimitive.Input- ref={ref}- className={cn(- 'flex h-11 w-full rounded-md bg-transparent py-3 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',- className,- )}- {...props}- />- </div>-));--CommandInput.displayName = CommandPrimitive.Input.displayName;--const CommandList = React.forwardRef<- React.ElementRef<typeof CommandPrimitive.List>,- React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>->(({ className, ...props }, ref) => (- <CommandPrimitive.List- ref={ref}- className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}- {...props}- />-));--CommandList.displayName = CommandPrimitive.List.displayName;--const CommandEmpty = React.forwardRef<- React.ElementRef<typeof CommandPrimitive.Empty>,- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>->((props, ref) => (- <CommandPrimitive.Empty ref={ref} className="py-6 text-center " {...props} />-));--CommandEmpty.displayName = CommandPrimitive.Empty.displayName;--const CommandGroup = React.forwardRef<- React.ElementRef<typeof CommandPrimitive.Group>,- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>->(({ className, ...props }, ref) => (- <CommandPrimitive.Group- ref={ref}- className={cn(- 'overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground',- className,- )}- {...props}- />-));--CommandGroup.displayName = CommandPrimitive.Group.displayName;--const CommandSeparator = React.forwardRef<- React.ElementRef<typeof CommandPrimitive.Separator>,- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>->(({ className, ...props }, ref) => (- <CommandPrimitive.Separator- ref={ref}- className={cn('-mx-1 h-px bg-border', className)}- {...props}- />-));-CommandSeparator.displayName = CommandPrimitive.Separator.displayName;--const CommandItem = React.forwardRef<- React.ElementRef<typeof CommandPrimitive.Item>,- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>->(({ className, ...props }, ref) => (- <CommandPrimitive.Item- ref={ref}- className={cn(- 'relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',- className,- )}- data-disabled={props.disabled}- {...props}- />-));--CommandItem.displayName = CommandPrimitive.Item.displayName;--const CommandShortcut = ({- className,- ...props-}: React.HTMLAttributes<HTMLSpanElement>) => {- return (- <span- className={cn(- 'ml-auto text-sm tracking-widest text-muted-foreground',- className,- )}- {...props}- />- );-};-CommandShortcut.displayName = 'CommandShortcut';--export {- Command,- CommandDialog,- CommandInput,- CommandList,- CommandEmpty,- CommandGroup,- CommandItem,- CommandShortcut,- CommandSeparator,-};diff --git a/apps/dashboard/src/components/ui/dialog.tsx b/apps/dashboard/src/components/ui/dialog.tsxdeleted file mode 100644index bda486071..000000000--- a/apps/dashboard/src/components/ui/dialog.tsx+++ /dev/null@@ -1,120 +0,0 @@-'use client';--import { cn } from '@/utils/cn';-import * as DialogPrimitive from '@radix-ui/react-dialog';-import { X } from 'lucide-react';-import * as React from 'react';--const Dialog = DialogPrimitive.Root;--const DialogTrigger = DialogPrimitive.Trigger;--const DialogPortal = DialogPrimitive.Portal;--const DialogClose = DialogPrimitive.Close;--const DialogOverlay = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Overlay>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>->(({ className, ...props }, ref) => (- <DialogPrimitive.Overlay- ref={ref}- className={cn(- 'fixed inset-0 z-50 bg-black/20 backdrop-blur-[1px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',- className,- )}- {...props}- />-));-DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;--const DialogContent = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Content>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {- onClose?: () => void;- }->(({ className, children, onClose, ...props }, ref) => (- <DialogPortal>- <DialogOverlay />- <DialogPrimitive.Content- ref={ref}- className={cn(- 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] 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%] md:w-full p-2 sm:p-6',- 'max-h-screen overflow-y-auto overflow-x-hidden', // Ensure the dialog is scrollable if it exceeds the screen height- 'mt-auto', // Add margin-top: auto for all screen sizes- 'focus:outline-none focus:ring-0 transition-none',- 'border bg-background shadow-lg sm:rounded-lg md:max-h-[90vh]',- className,- )}- {...props}- >- {children}- </DialogPrimitive.Content>- </DialogPortal>-));-DialogContent.displayName = DialogPrimitive.Content.displayName;--const DialogHeader = ({- className,- ...props-}: React.HTMLAttributes<HTMLDivElement>) => (- <div- className={cn(- 'flex flex-col space-y-1.5 text-center sm:text-left',- className,- )}- {...props}- />-);-DialogHeader.displayName = 'DialogHeader';--const DialogFooter = ({- className,- ...props-}: React.HTMLAttributes<HTMLDivElement>) => (- <div- className={cn(- 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',- className,- )}- {...props}- />-);-DialogFooter.displayName = 'DialogFooter';--const DialogTitle = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Title>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>->(({ className, ...props }, ref) => (- <DialogPrimitive.Title- ref={ref}- className={cn('text-lg font-semibold tracking-tight', className)}- {...props}- />-));-DialogTitle.displayName = DialogPrimitive.Title.displayName;--const DialogDescription = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Description>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>->(({ className, ...props }, ref) => (- <DialogPrimitive.Description- ref={ref}- className={cn(' text-muted-foreground mt-2', className)}- {...props}- />-));-DialogDescription.displayName = DialogPrimitive.Description.displayName;--export {- Dialog,- DialogPortal,- DialogOverlay,- DialogClose,- DialogTrigger,- DialogContent,- DialogHeader,- DialogFooter,- DialogTitle,- DialogDescription,-};diff --git a/apps/dashboard/src/components/ui/scroll-area.tsx b/apps/dashboard/src/components/ui/scroll-area.tsxdeleted file mode 100644index 2775243e3..000000000--- a/apps/dashboard/src/components/ui/scroll-area.tsx+++ /dev/null@@ -1,56 +0,0 @@-'use client';--import { cn } from '@/utils/cn';-import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';-import * as React from 'react';--const ScrollArea = React.forwardRef<- React.ElementRef<typeof ScrollAreaPrimitive.Root>,- React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & {- orientation?: 'vertical' | 'horizontal';- }->(({ className, children, orientation = 'vertical', ...props }, ref) => (- <ScrollAreaPrimitive.Root- className={cn('relative overflow-hidden', className)}- {...props}- >- <ScrollAreaPrimitive.Viewport- className="h-full w-full rounded-[inherit]"- ref={ref}- >- {children}- </ScrollAreaPrimitive.Viewport>- <ScrollBar orientation={orientation} />- <ScrollAreaPrimitive.Corner />- </ScrollAreaPrimitive.Root>-));-ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;--const ScrollBar = React.forwardRef<- React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,- React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>->(({ className, orientation = 'vertical', ...props }, ref) => (- <ScrollAreaPrimitive.ScrollAreaScrollbar- ref={ref}- orientation={orientation}- className={cn(- 'flex touch-none select-none transition-colors',- orientation === 'vertical' &&- 'h-full w-2.5 border-l border-l-transparent p-[1px]',- orientation === 'horizontal' &&- 'h-2.5 flex-col border-t border-t-transparent p-[1px]',- className,- )}- {...props}- >- <ScrollAreaPrimitive.ScrollAreaThumb- className={cn(- 'relative rounded-full bg-border',- orientation === 'vertical' && 'flex-1',- )}- />- </ScrollAreaPrimitive.ScrollAreaScrollbar>-));-ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;--export { ScrollArea, ScrollBar };diff --git a/apps/dashboard/src/components/ui/table.tsx b/apps/dashboard/src/components/ui/table.tsxdeleted file mode 100644index 307c984e8..000000000--- a/apps/dashboard/src/components/ui/table.tsx+++ /dev/null@@ -1,155 +0,0 @@-'use client';--import { cn } from '@/utils/cn';-import * as React from 'react';--const Table = React.forwardRef<- HTMLTableElement,- React.HTMLAttributes<HTMLTableElement> & {- overflow?: boolean;- }->(({ className, overflow = true, ...props }, ref) => (- <div className={cn('card', className)}>- <div className={cn('relative w-full', overflow && 'overflow-auto')}>- <table- ref={ref}- className={cn('w-full caption-bottom', className)}- {...props}- />- </div>- </div>-));-Table.displayName = 'Table';--const TableHeader = React.forwardRef<- HTMLTableSectionElement,- React.HTMLAttributes<HTMLTableSectionElement>->(({ className, ...props }, ref) => (- <thead ref={ref} className={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('bg-primary font-medium text-primary-foreground', className)}- {...props}- />-));-TableFooter.displayName = 'TableFooter';--const TableRow = React.forwardRef<- HTMLTableRowElement,- React.HTMLAttributes<HTMLTableRowElement>->(({ className, ...props }, ref) => (- <tr- ref={ref}- className={cn(- '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-10 whitespace-nowrap border-b border-border bg-def-100 px-4 text-left align-middle font-semibold text-muted-foreground shadow-[0_0_0_0.5px] shadow-border [&: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(- 'h-12 whitespace-nowrap px-4 align-middle shadow-[0_0_0_0.5px] shadow-border',- className,- )}- {...props}- />-));-TableCell.displayName = 'TableCell';--const TableCaption = React.forwardRef<- HTMLTableCaptionElement,- React.HTMLAttributes<HTMLTableCaptionElement>->(({ className, ...props }, ref) => (- <caption- ref={ref}- className={cn('mt-4 text-muted-foreground', className)}- {...props}- />-));-TableCaption.displayName = 'TableCaption';--export function TableSkeleton({- rows = 10,- cols = 2,-}: {- rows?: number;- cols?: number;-}) {- return (- <Table>- <TableHeader>- <TableRow>- {Array.from({ length: cols }).map((_, j) => (- <TableHead key={j as number}>- <div className="h-4 w-1/4 animate-pulse rounded-full bg-def-300" />- </TableHead>- ))}- </TableRow>- </TableHeader>- <TableBody>- {Array.from({ length: rows }).map((_, i) => (- <TableRow key={i as number}>- {Array.from({ length: cols }).map((_, j) => (- <TableCell key={(j + i) as number}>- <div className="h-4 w-1/4 min-w-20 animate-pulse rounded-full bg-def-300" />- </TableCell>- ))}- </TableRow>- ))}- </TableBody>- </Table>- );-}--export {- Table,- TableHeader,- TableBody,- TableFooter,- TableHead,- TableRow,- TableCell,- TableCaption,-};diff --git a/apps/dashboard/src/env.mjs b/apps/dashboard/src/env.mjsdeleted file mode 100644index b25d1ae3c..000000000--- a/apps/dashboard/src/env.mjs+++ /dev/null@@ -1,47 +0,0 @@-import { createEnv } from '@t3-oss/env-nextjs';-import { z } from 'zod';--export const env = createEnv({- /**- * Specify your server-side environment variables schema here. This way you can ensure the app- * isn't built with invalid env vars.- */- server: {- DATABASE_URL: z- .string()- .url()- .refine(- (str) => !str.includes('DATABASE_URL'),- 'You forgot to change the default URL',- ),- NODE_ENV: z- .enum(['development', 'test', 'production'])- .default('development'),- },-- /**- * Specify your client-side environment variables schema here. This way you can ensure the app- * isn't built with invalid env vars. To expose them to the client, prefix them with- * `NEXT_PUBLIC_`.- */- client: {},-- /**- * You can't destruct `process.env` as a regular object in the Next.js edge runtimes (e.g.- * middlewares) or client-side so we need to destruct manually.- */- runtimeEnv: {- DATABASE_URL: process.env.DATABASE_URL,- NODE_ENV: process.env.NODE_ENV,- },- /**- * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially- * useful for Docker builds.- */- skipValidation: !!process.env.SKIP_ENV_VALIDATION,- /**- * Makes it so that empty strings are treated as undefined.- * `SOME_VAR: z.string()` and `SOME_VAR=''` will throw an error.- */- emptyStringAsUndefined: true,-});diff --git a/apps/dashboard/src/hocs/with-loading-widget.tsx b/apps/dashboard/src/hocs/with-loading-widget.tsxdeleted file mode 100644index aa2972fb6..000000000--- a/apps/dashboard/src/hocs/with-loading-widget.tsx+++ /dev/null@@ -1,37 +0,0 @@-import { Widget, WidgetHead } from '@/components/widget';-import { cn } from '@/utils/cn';-import { Suspense } from 'react';--const withLoadingWidget = <P,>(Component: React.ComponentType<P>) => {- const WithLoadingWidget: React.ComponentType<P> = (props) => {- return (- <Suspense- fallback={- <Widget- className={cn(- 'w-full',- props &&- typeof props === 'object' &&- 'className' in props &&- typeof props.className === 'string' &&- props?.className,- )}- >- <WidgetHead>- <span className="title">Loading...</span>- </WidgetHead>- <div className="aspect-video animate-pulse rounded bg-def-100" />- </Widget>- }- >- <Component {...(props as any)} />- </Suspense>- );- };-- WithLoadingWidget.displayName = `WithLoadingWidget(${Component.displayName})`;-- return WithLoadingWidget;-};--export default withLoadingWidget;diff --git a/apps/dashboard/src/hocs/with-suspense.tsx b/apps/dashboard/src/hocs/with-suspense.tsxdeleted file mode 100644index 3fb922737..000000000--- a/apps/dashboard/src/hocs/with-suspense.tsx+++ /dev/null@@ -1,22 +0,0 @@-import { Suspense } from 'react';--const withSuspense = <P,>(- Component: React.ComponentType<P>,- Fallback: React.ComponentType<P>,-) => {- const WithSuspense: React.ComponentType<P> = (props) => {- const fallback = <Fallback {...(props as any)} />;- // return <>{fallback}</>;- return (- <Suspense fallback={fallback}>- <Component {...(props as any)} />- </Suspense>- );- };-- WithSuspense.displayName = `WithSuspense(${Component.displayName})`;-- return WithSuspense;-};--export default withSuspense;diff --git a/apps/dashboard/src/hooks/useAppParams.ts b/apps/dashboard/src/hooks/useAppParams.tsdeleted file mode 100644index 83e3de547..000000000--- a/apps/dashboard/src/hooks/useAppParams.ts+++ /dev/null@@ -1,15 +0,0 @@-import { useParams } from 'next/navigation';--type AppParams = {- organizationId: string;- projectId: string;-};--export function useAppParams<T>() {- const params = useParams<T & AppParams & { organizationSlug: string }>();- return {- ...(params ?? {}),- organizationId: params?.organizationSlug,- projectId: params?.projectId,- } as T & AppParams;-}diff --git a/apps/dashboard/src/hooks/useAuth.tsx b/apps/dashboard/src/hooks/useAuth.tsxdeleted file mode 100644index 43504add5..000000000--- a/apps/dashboard/src/hooks/useAuth.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { api } from '@/trpc/client';--export function useAuth() {- return api.auth.session.useQuery();-}diff --git a/apps/dashboard/src/hooks/useCursor.ts b/apps/dashboard/src/hooks/useCursor.tsdeleted file mode 100644index 12e890eb2..000000000--- a/apps/dashboard/src/hooks/useCursor.ts+++ /dev/null@@ -1,34 +0,0 @@-import { parseAsInteger, useQueryState } from 'nuqs';-import { useTransition } from 'react';--import { useDebounceValue } from './useDebounceValue';--export function useCursor() {- const [loading, startTransition] = useTransition();- const [cursor, setCursor] = useQueryState(- 'cursor',- parseAsInteger- .withOptions({ shallow: false, history: 'push', startTransition })- .withDefault(0),- );- return {- cursor,- setCursor,- loading,- };-}--export type UseDebouncedCursor = ReturnType<typeof useDebouncedCursor>;--export function useDebouncedCursor() {- const [cursor, setCursor] = useQueryState(- 'cursor',- parseAsInteger.withDefault(0),- );- const debouncedCursor = useDebounceValue(cursor, 200);- return {- value: cursor,- set: setCursor,- debounced: debouncedCursor,- };-}diff --git a/apps/dashboard/src/hooks/useEventNames.ts b/apps/dashboard/src/hooks/useEventNames.tsdeleted file mode 100644index f98901c98..000000000--- a/apps/dashboard/src/hooks/useEventNames.ts+++ /dev/null@@ -1,10 +0,0 @@-import { api } from '@/trpc/client';--export function useEventNames(- params: Parameters<typeof api.chart.events.useQuery>[0],-) {- const query = api.chart.events.useQuery(params, {- staleTime: 1000 * 60 * 10,- });- return query.data ?? [];-}diff --git a/apps/dashboard/src/hooks/useEventProperties.ts b/apps/dashboard/src/hooks/useEventProperties.tsdeleted file mode 100644index 2b256db69..000000000--- a/apps/dashboard/src/hooks/useEventProperties.ts+++ /dev/null@@ -1,15 +0,0 @@-import type { RouterInputs } from '@/trpc/client';-import { api } from '@/trpc/client';-import type { UseQueryOptions } from '@tanstack/react-query';--export function useEventProperties(- params: RouterInputs['chart']['properties'],- options?: UseQueryOptions<RouterInputs['chart']['properties']>,-): string[] {- const query = api.chart.properties.useQuery(params, {- staleTime: 1000 * 60 * 10,- enabled: options?.enabled ?? true,- });-- return query.data ?? [];-}diff --git a/apps/dashboard/src/hooks/useLogout.ts b/apps/dashboard/src/hooks/useLogout.tsdeleted file mode 100644index 6b7cda6b0..000000000--- a/apps/dashboard/src/hooks/useLogout.ts+++ /dev/null@@ -1,15 +0,0 @@-import { api } from '@/trpc/client';-import { useRouter } from 'next/navigation';--export function useLogout() {- const router = useRouter();- const signOut = api.auth.signOut.useMutation({- onSuccess() {- setTimeout(() => {- router.push('/login');- }, 0);- },- });-- return () => signOut.mutate();-}diff --git a/apps/dashboard/src/hooks/useMappings.ts b/apps/dashboard/src/hooks/useMappings.tsdeleted file mode 100644index c32a1b4ee..000000000--- a/apps/dashboard/src/hooks/useMappings.ts+++ /dev/null@@ -1,13 +0,0 @@-import mappings from '@/mappings.json';--export function useMappings() {- return (val: string | string[]): string => {- if (Array.isArray(val)) {- return val- .map((v) => mappings.find((item) => item.id === v)?.name ?? v)- .join('');- }-- return mappings.find((item) => item.id === val)?.name ?? val;- };-}diff --git a/apps/dashboard/src/hooks/useProfileProperties.ts b/apps/dashboard/src/hooks/useProfileProperties.tsdeleted file mode 100644index f61ef0059..000000000--- a/apps/dashboard/src/hooks/useProfileProperties.ts+++ /dev/null@@ -1,9 +0,0 @@-import { api } from '@/trpc/client';--export function useProfileProperties(projectId: string) {- const query = api.profile.properties.useQuery({- projectId: projectId,- });-- return query.data ?? [];-}diff --git a/apps/dashboard/src/hooks/useProfileValues.ts b/apps/dashboard/src/hooks/useProfileValues.tsdeleted file mode 100644index d850f6fa4..000000000--- a/apps/dashboard/src/hooks/useProfileValues.ts+++ /dev/null@@ -1,15 +0,0 @@-import { api } from '@/trpc/client';--export function useProfileValues(projectId: string, property: string) {- const query = api.profile.values.useQuery(- {- projectId: projectId,- property,- },- {- staleTime: 1000 * 60 * 10,- },- );-- return query.data?.values ?? [];-}diff --git a/apps/dashboard/src/hooks/usePropertyValues.ts b/apps/dashboard/src/hooks/usePropertyValues.tsdeleted file mode 100644index 227b8e128..000000000--- a/apps/dashboard/src/hooks/usePropertyValues.ts+++ /dev/null@@ -1,11 +0,0 @@-import { api } from '@/trpc/client';--export function usePropertyValues(- params: Parameters<typeof api.chart.values.useQuery>[0],-) {- const query = api.chart.values.useQuery(params, {- staleTime: 1000 * 60 * 10,- });-- return query.data?.values ?? [];-}diff --git a/apps/dashboard/src/instrumentation.ts b/apps/dashboard/src/instrumentation.tsdeleted file mode 100644index c8c76462e..000000000--- a/apps/dashboard/src/instrumentation.ts+++ /dev/null@@ -1,10 +0,0 @@-export async function register() {- if (process.env.NEXT_RUNTIME === 'nodejs' && process.env.HYPERDX_API_KEY) {- const { initSDK } = await import('@hyperdx/node-opentelemetry');- initSDK({- consoleCapture: true,- apiKey: process.env.HYPERDX_API_KEY,- service: 'dashboard',- });- }-}diff --git a/apps/dashboard/src/mappings.json b/apps/dashboard/src/mappings.jsondeleted file mode 100644index f2d7122d8..000000000--- a/apps/dashboard/src/mappings.json+++ /dev/null@@ -1,6 +0,0 @@-[- {- "id": "123",- "name": "123"- }-]diff --git a/apps/dashboard/src/middleware.ts b/apps/dashboard/src/middleware.tsdeleted file mode 100644index d7154a5b7..000000000--- a/apps/dashboard/src/middleware.ts+++ /dev/null@@ -1,100 +0,0 @@-import { COOKIE_MAX_AGE, COOKIE_OPTIONS } from '@openpanel/auth/constants';-import { type NextRequest, NextResponse } from 'next/server';--function createRouteMatcher(patterns: string[]) {- // Convert route patterns to regex patterns- const regexPatterns = patterns.map((pattern) => {- // Replace route parameters (:id) with regex capture groups- const regexPattern = pattern- .replace(/\//g, '\\/') // Escape forward slashes- .replace(/:\w+/g, '([^/]+)') // Convert :param to capture groups- .replace(/\(\.\*\)\?/g, '(?:.*)?'); // Handle optional wildcards-- return new RegExp(`^${regexPattern}$`);- });-- // Return a matcher function- return (req: { url: string }) => {- const pathname = new URL(req.url).pathname;- return regexPatterns.some((regex) => regex.test(pathname));- };-}--// This example protects all routes including api/trpc routes-// Please edit this to allow other routes to be public as needed.-const isPublicRoute = createRouteMatcher([- '/share/overview/:id',- '/login(.*)?',- '/reset-password(.*)?',- '/sso-callback(.*)?',- '/onboarding',- '/maintenance',- '/api/headers',-]);--export default (request: NextRequest) => {- // Check for maintenance mode- if (- process.env.MAINTENANCE === 'true' &&- !request.nextUrl.pathname.startsWith('/maintenance')- ) {- return NextResponse.redirect(new URL('/maintenance', request.url));- }-- if (request.method === 'GET') {- const response = NextResponse.next();- const token = request.cookies.get('session')?.value ?? null;-- if (process.env.DEMO_USER_ID) {- return response;- }-- if (!isPublicRoute(request) && token === null) {- return NextResponse.redirect(new URL('/login', request.url));- }-- if (token !== null) {- // Only extend cookie expiration on GET requests since we can be sure- // a new session wasn't set when handling the request.- response.cookies.set('session', token, {- maxAge: COOKIE_MAX_AGE,- ...COOKIE_OPTIONS,- });- }- return response;- }-- const originHeader = request.headers.get('Origin');- // NOTE: You may need to use `X-Forwarded-Host` instead- const hostHeader = request.headers.get('Host');- if (originHeader === null || hostHeader === null) {- return new NextResponse(null, {- status: 403,- });- }- let origin: URL;- try {- origin = new URL(originHeader);- } catch {- return new NextResponse(null, {- status: 403,- });- }- if (origin.host !== hostHeader) {- return new NextResponse(null, {- status: 403,- });- }-- return NextResponse.next();-};--export const config = {- matcher: [- '/((?!.+\\.[\\w]+$|_next).*)',- '/',- '/(api)(.*)',- '/(api|trpc)(.*)',- '/api/trpc(.*)',- ],-};diff --git a/apps/dashboard/src/modals/SaveReport.tsx b/apps/dashboard/src/modals/SaveReport.tsxdeleted file mode 100644index e5b861e3b..000000000--- a/apps/dashboard/src/modals/SaveReport.tsx+++ /dev/null@@ -1,150 +0,0 @@-import { ButtonContainer } from '@/components/button-container';-import { InputWithLabel } from '@/components/forms/input-with-label';-import { Button } from '@/components/ui/button';-import { Combobox } from '@/components/ui/combobox';-import { Label } from '@/components/ui/label';-import { useAppParams } from '@/hooks/useAppParams';-import { api, handleError } from '@/trpc/client';-import { zodResolver } from '@hookform/resolvers/zod';-import { useRouter, useSearchParams } from 'next/navigation';-import { Controller, useForm } from 'react-hook-form';-import { toast } from 'sonner';-import { z } from 'zod';--import type { IChartProps } from '@openpanel/validation';--import { popModal } from '.';-import { ModalContent, ModalHeader } from './Modal/Container';--type SaveReportProps = {- report: IChartProps;- disableRedirect?: boolean;-};--const validator = z.object({- name: z.string().min(1, 'Required'),- dashboardId: z.string().min(1, 'Required'),-});--type IForm = z.infer<typeof validator>;--export default function SaveReport({- report,- disableRedirect,-}: SaveReportProps) {- const router = useRouter();- const { organizationId, projectId } = useAppParams();- const searchParams = useSearchParams();- const dashboardId = searchParams?.get('dashboardId') ?? undefined;-- const save = api.report.create.useMutation({- onError: handleError,- onSuccess(res) {- const goToReport = () => {- router.push(- `/${organizationId}/${projectId}/reports/${- res.id- }?${searchParams?.toString()}`,- );- };-- toast('Report created', {- description: `${res.name}`,- action: {- label: 'View report',- onClick: () => goToReport(),- },- });-- if (!disableRedirect) {- goToReport();- }-- popModal();- },- });-- const { register, handleSubmit, formState, control, setValue } =- useForm<IForm>({- resolver: zodResolver(validator),- defaultValues: {- name: report.name,- dashboardId,- },- });-- const dashboardMutation = api.dashboard.create.useMutation({- onError: handleError,- onSuccess(res) {- setValue('dashboardId', res.id);- dashboardQuery.refetch();- toast('Success', {- description: 'Dashboard created.',- });- },- });-- const dashboardQuery = api.dashboard.list.useQuery({- projectId,- });- const dashboards = (dashboardQuery.data ?? []).map((item) => ({- value: item.id,- label: item.name,- }));-- return (- <ModalContent>- <ModalHeader title="Create report" />- <form- className="flex flex-col gap-4"- onSubmit={handleSubmit(({ name, ...values }) => {- save.mutate({- report: {- ...report,- name,- },- ...values,- });- })}- >- <InputWithLabel- label="Report name"- placeholder="Name"- {...register('name')}- defaultValue={report.name}- />- <Controller- control={control}- name="dashboardId"- render={({ field }) => {- return (- <div>- <Label>Dashboard</Label>- <Combobox- {...field}- items={dashboards}- placeholder="Select a dashboard"- searchable- onCreate={(value) => {- dashboardMutation.mutate({- projectId,- name: value,- });- }}- />- </div>- );- }}- />- <ButtonContainer>- <Button type="button" variant="outline" onClick={() => popModal()}>- Cancel- </Button>- <Button type="submit" disabled={!formState.isValid}>- Save- </Button>- </ButtonContainer>- </form>- </ModalContent>- );-}diff --git a/apps/dashboard/src/modals/Testimonial.tsx b/apps/dashboard/src/modals/Testimonial.tsxdeleted file mode 100644index 950a36a56..000000000--- a/apps/dashboard/src/modals/Testimonial.tsx+++ /dev/null@@ -1,78 +0,0 @@-import { Button } from '@/components/ui/button';-import { Textarea } from '@/components/ui/textarea';-import { useAppParams } from '@/hooks/useAppParams';-import { api } from '@/trpc/client';-import { zodResolver } from '@hookform/resolvers/zod';-import { useForm } from 'react-hook-form';-import { toast } from 'sonner';-import { z } from 'zod';--import { useOpenPanel } from '@openpanel/nextjs';--import { popModal } from '.';-import { ModalContent } from './Modal/Container';--const validator = z.object({- body: z.string().min(3),-});--type IForm = z.infer<typeof validator>;--const Testimonial = () => {- const op = useOpenPanel();- const mutation = api.ticket.create.useMutation();- const params = useAppParams();- const form = useForm<IForm>({- resolver: zodResolver(validator),- });- return (- <ModalContent className="p-0">- <div className="w-full rounded-t-lg border-b border-border bg-def-100 p-4">- <h1 className="mb-2 text-2xl font-bold">Review time 🫶</h1>- <p className="mb-2">- Thank you so much for using Openpanel — it truly means a great deal to- me! If you're enjoying your experience, I'd be thrilled if- you could leave a quick review. 😇- </p>- <p>- If you have any feedback or suggestions, I'd love to hear them as- well! 🚀- </p>- </div>- <form- className="p-4"- onSubmit={form.handleSubmit(async ({ body }) => {- try {- await mutation.mutateAsync({- subject: 'New testimonial',- body,- meta: {- ...params,- },- });- toast.success('Thanks for your feedback 🚀');- op.track('testimonials_sent');- popModal();- } catch (e) {- toast.error('Something went wrong. Please try again later.');- }- })}- >- <Textarea- placeholder="Type your review here."- {...form.register('body')}- />- <div className="mt-4 flex justify-between gap-2">- <Button type="button" variant="secondary" onClick={() => popModal()}>- Maybe later- </Button>- <Button type="submit" loading={form.formState.isSubmitting}>- Send it- </Button>- </div>- </form>- </ModalContent>- );-};--export default Testimonial;diff --git a/apps/dashboard/src/modals/index.tsx b/apps/dashboard/src/modals/index.tsxdeleted file mode 100644index 1cc2b4b5e..000000000--- a/apps/dashboard/src/modals/index.tsx+++ /dev/null@@ -1,98 +0,0 @@-'use client';--import { Loader2Icon } from 'lucide-react';-import dynamic from 'next/dynamic';-import { createPushModal } from 'pushmodal';--import type { ConfirmProps } from './Confirm';-import { ModalContent } from './Modal/Container';--const Loading = () => (- <ModalContent className="flex items-center justify-center p-16">- <Loader2Icon className="animate-spin" size={40} />- </ModalContent>-);--const modals = {- OverviewTopPagesModal: dynamic(- () => import('../components/overview/overview-top-pages-modal'),- {- loading: Loading,- },- ),- OverviewTopGenericModal: dynamic(- () => import('../components/overview/overview-top-generic-modal'),- {- loading: Loading,- },- ),- RequestPasswordReset: dynamic(() => import('./request-reset-password'), {- loading: Loading,- }),- EditEvent: dynamic(() => import('./edit-event'), {- loading: Loading,- }),- EventDetails: dynamic(() => import('./event-details'), {- loading: Loading,- }),- EditClient: dynamic(() => import('./EditClient'), {- loading: Loading,- }),- AddProject: dynamic(() => import('./add-project'), {- loading: Loading,- }),- AddClient: dynamic(() => import('./AddClient'), {- loading: Loading,- }),- Confirm: dynamic(() => import('./Confirm'), {- loading: Loading,- }),- SaveReport: dynamic(() => import('./SaveReport'), {- loading: Loading,- }),- AddDashboard: dynamic(() => import('./AddDashboard'), {- loading: Loading,- }),- EditDashboard: dynamic(() => import('./EditDashboard'), {- loading: Loading,- }),- EditReport: dynamic(() => import('./EditReport'), {- loading: Loading,- }),- ShareOverviewModal: dynamic(() => import('./ShareOverviewModal'), {- loading: Loading,- }),- AddReference: dynamic(() => import('./AddReference'), {- loading: Loading,- }),- Instructions: dynamic(() => import('./Instructions'), {- loading: Loading,- }),- OnboardingTroubleshoot: dynamic(() => import('./OnboardingTroubleshoot'), {- loading: Loading,- }),- DateRangerPicker: dynamic(() => import('./DateRangerPicker'), {- loading: Loading,- }),- OverviewChartDetails: dynamic(() => import('./OverviewChartDetails'), {- loading: Loading,- }),- Testimonial: dynamic(() => import('./Testimonial'), {- loading: Loading,- }),- AddIntegration: dynamic(() => import('./add-integration')),- AddNotificationRule: dynamic(() => import('./add-notification-rule')),-};--export const {- pushModal,- popModal,- replaceWithModal,- popAllModals,- ModalProvider,- useOnPushModal,-} = createPushModal({- modals,-});--export const showConfirm = (props: ConfirmProps) => pushModal('Confirm', props);diff --git a/apps/dashboard/src/styles/globals.css b/apps/dashboard/src/styles/globals.cssdeleted file mode 100644index 26f9c0867..000000000--- a/apps/dashboard/src/styles/globals.css+++ /dev/null@@ -1,171 +0,0 @@-@tailwind base;-@tailwind components;-@tailwind utilities;--@layer base {- :root {- --highlight: 220 84% 53%; /* #2266ec */-- --def-100: 210 40% 98%; /* #F0F4F9 */- --def-200: 210 40% 96.1%; /* #E7ECF2 */- --def-300: 210 15.14% 89.41%; /* #DDE3E9 */- --def-400: 210 9.08% 75.05%; /* #B3BDC7 */-- --background: 0 0% 100%; /* #FFFFFF */- --foreground: 222.2 84% 4.9%; /* #0C162A */- --foregroundish: 226.49 3.06% 22.62%;-- --card: 0 0% 100%; /* #FFFFFF */- --card-foreground: 222.2 84% 4.9%; /* #0C162A */-- --popover: 0 0% 100%; /* #FFFFFF */- --popover-foreground: 222.2 84% 4.9%; /* #0C162A */-- --primary: 222.2 47.4% 11.2%; /* #163049 */- --primary-foreground: 210 40% 98%; /* #F0F4F9 */-- --secondary: 210 40% 96.1%; /* #E7ECF2 */- --secondary-foreground: 222.2 47.4% 11.2%; /* #163049 */-- --muted: 210 40% 96.1%; /* #E7ECF2 */- --muted-foreground: 215.4 16.3% 46.9%; /* #798290 */-- --accent: 210 40% 96.1%; /* #E7ECF2 */- --accent-foreground: 222.2 47.4% 11.2%; /* #163049 */-- --destructive: 0 84.2% 60.2%; /* #F2677D */- --destructive-foreground: 0 100% 97.25%; /* #F8F9FB */-- --border: 214.3 31.8% 91.4%; /* #E8EBF1 */- --input: 214.3 31.8% 91.4%; /* #E8EBF1 */- --ring: 212.73deg 26.83% 83.92%; /* #CDD6E2 */-- --radius: 0.5rem;-- --chart-0: #2563EB;- --chart-1: #ff7557;- --chart-2: #7fe1d8;- --chart-3: #f8bc3c;- --chart-4: #b3596e;- --chart-5: #72bef4;- --chart-6: #ffb27a;- --chart-7: #0f7ea0;- --chart-8: #3ba974;- --chart-9: #febbb2;- --chart-10: #cb80dc;- --chart-11: #5cb7af;- --chart-12: #7856ff;- }-- .dark {- --highlight: 221.44 100% 62.04%;-- --def-100: 0 0% 8%; /* #0f0f0f */- --def-200: 0 0% 13.12%; /* #212121 */- --def-300: 0 0% 15.1%; /* #262626 */- --def-400: 0 0% 25.23%; /* #404040 */-- --background: 0 0% 12.02%; /* #1e1e1e */- --foreground: 0 0% 98%; /* #fafafa */- --foregroundish: 0 0% 79.23%;-- --card: 0 0% 10%; /* #1a1a1a */- --card-foreground: 0 0% 98%; /* #fafafa */-- --popover: 0 0% 10%; /* #1a1a1a */- --popover-foreground: 0 0% 98%; /* #fafafa */-- --primary: 0 0% 98%; /* #fafafa */- --primary-foreground: 0 0% 11.2%; /* #1c1c1c */-- --secondary: 0 0% 15.1%; /* #262626 */- --secondary-foreground: 0 0% 98%; /* #fafafa */-- --muted: 0 0% 15.1%; /* #262626 */- --muted-foreground: 0 0% 65%; /* #fafafa */-- --accent: 0 0% 15.1%; /* #262626 */- --accent-foreground: 0 0% 98%; /* #fafafa */-- --destructive: 0 84.2% 60.2%; /* #F2677D */- --destructive-foreground: 0 100% 97.25%; /* #F8F9FB */-- --border: 0 0% 15.1%; /* #262626 */- --input: 0 0% 15.1%; /* #262626 */- --ring: 0 0% 83.9%; /* #d6d6d6 */- }-}--@layer base {- * {- @apply border-border;- }- body {- @apply bg-card text-foreground;- }-- .h1 {- @apply text-3xl font-medium;- }-- .h2 {- @apply text-xl font-medium;- }-- .h3 {- @apply text-lg font-medium;- }-- .h4 {- @apply font-medium;- }-- .ellipsis {- @apply overflow-hidden text-ellipsis whitespace-nowrap;- }-- .heading {- @apply text-3xl font-semibold;- }-- .title {- @apply text-lg font-semibold;- }-- .subtitle {- @apply text-md font-medium;- }-- .card {- @apply rounded-md border border-border bg-card;- }-- .center-center {- @apply flex items-center justify-center text-center;- }-- .col {- @apply flex flex-col;- }-- .row {- @apply flex flex-row;- }-}--/* Rechart */--.recharts-wrapper .recharts-cartesian-grid-horizontal line:first-child,-.recharts-wrapper .recharts-cartesian-grid-horizontal line:last-child {- stroke-opacity: 0;-}--.hide-scrollbar::-webkit-scrollbar {- display: none;-}--/* Hide scrollbar for IE, Edge and Firefox */-.hide-scrollbar {- -ms-overflow-style: none; /* IE and Edge */- scrollbar-width: none; /* Firefox */-}\ No newline at end of filediff --git a/apps/dashboard/src/trpc/client.tsx b/apps/dashboard/src/trpc/client.tsxdeleted file mode 100644index 9f47d04c3..000000000--- a/apps/dashboard/src/trpc/client.tsx+++ /dev/null@@ -1,40 +0,0 @@-import type { TRPCClientErrorBase } from '@trpc/react-query';-import { createTRPCReact } from '@trpc/react-query';-import type { inferRouterInputs, inferRouterOutputs } from '@trpc/server';-import type { ExternalToast } from 'sonner';-import { toast } from 'sonner';--import type { AppRouter } from '@openpanel/trpc';--export const api = createTRPCReact<AppRouter>({});--/**- * Inference helper for inputs.- *- * @example type HelloInput = RouterInputs['example']['hello']- */-export type RouterInputs = inferRouterInputs<AppRouter>;--/**- * Inference helper for outputs.- *- * @example type HelloOutput = RouterOutputs['example']['hello']- */-export type RouterOutputs = inferRouterOutputs<AppRouter>;-export type IChartData = RouterOutputs['chart']['chart'];-export type IChartSerieDataItem = IChartData['series'][number]['data'][number];--export function handleError(error: TRPCClientErrorBase<any>) {- toast('Error', {- description: error.message,- });-}--export function handleErrorToastOptions(options: ExternalToast) {- return (error: TRPCClientErrorBase<any>) => {- toast('Error', {- description: error.message,- ...options,- });- };-}diff --git a/apps/dashboard/src/utils/casing.ts b/apps/dashboard/src/utils/casing.tsdeleted file mode 100644index d9887a36a..000000000--- a/apps/dashboard/src/utils/casing.ts+++ /dev/null@@ -1,5 +0,0 @@-export const camelCaseToWords = (str: string) => {- return str- .replace(/([A-Z])/g, ' $1')- .replace(/^./, (str) => str.toUpperCase());-};diff --git a/apps/dashboard/src/utils/getters.ts b/apps/dashboard/src/utils/getters.tsdeleted file mode 100644index 4a00ce034..000000000--- a/apps/dashboard/src/utils/getters.ts+++ /dev/null@@ -1,27 +0,0 @@-import type { IServiceProfile } from '@openpanel/db';--export function getProfileName(- profile: IServiceProfile | undefined | null,- short = true,-) {- if (!profile) {- return '';- }-- if (!profile.isExternal) {- return 'Anonymous';- }-- const name =- [profile.firstName, profile.lastName].filter(Boolean).join(' ') ||- profile.email;-- if (!name) {- if (short && profile.id.length > 10) {- return `${profile.id.slice(0, 4)}...${profile.id.slice(-4)}`;- }- return profile.id;- }-- return name;-}diff --git a/apps/dashboard/src/utils/meta.ts b/apps/dashboard/src/utils/meta.tsdeleted file mode 100644index 03f39c773..000000000--- a/apps/dashboard/src/utils/meta.ts+++ /dev/null@@ -1,21 +0,0 @@-import type { Metadata } from 'next';--const title = 'Openpanel.dev | An open-source alternative to Mixpanel';-const description =- 'Unlock actionable insights effortlessly with Insightful, the open-source analytics library that combines the power of Mixpanel with the simplicity of Plausible. Enjoy a unified overview, predictable pricing, and a vibrant community. Join us in democratizing analytics today!';--export const defaultMeta: Metadata = {- title,- description,- openGraph: {- title,- images: [- {- url: 'https://openpanel.dev/ogimage.png',- width: 2011,- height: 1339,- alt: title,- },- ],- },-};diff --git a/apps/dashboard/src/utils/theme.ts b/apps/dashboard/src/utils/theme.tsdeleted file mode 100644index 6fccc0fae..000000000--- a/apps/dashboard/src/utils/theme.ts+++ /dev/null@@ -1,17 +0,0 @@-import resolveConfig from 'tailwindcss/resolveConfig';--import tailwinConfig from '../../tailwind.config';--export const resolvedTailwindConfig = resolveConfig(tailwinConfig);--export const theme = resolvedTailwindConfig.theme as Record<string, any>;--export function getChartColor(index: number): string {- const colors = theme?.colors ?? {};- const chartColors: string[] = Object.keys(colors)- .filter((key) => key.startsWith('chart-'))- .map((key) => colors[key])- .filter((item): item is string => typeof item === 'string');-- return chartColors[index % chartColors.length]!;-}diff --git a/apps/dashboard/tailwind.config.js b/apps/dashboard/tailwind.config.jsdeleted file mode 100644index 9b72211c8..000000000--- a/apps/dashboard/tailwind.config.js+++ /dev/null@@ -1,193 +0,0 @@-const colors = [- '#2563EB',- '#ff7557',- '#7fe1d8',- '#f8bc3c',- '#b3596e',- '#72bef4',- '#ffb27a',- '#0f7ea0',- '#3ba974',- '#febbb2',- '#cb80dc',- '#5cb7af',- '#7856ff',-];--const twColors = [- 'rose',- 'pink',- 'fuchsia',- 'purple',- 'violet',- 'indigo',- 'blue',- 'sky',- 'cyan',- 'teal',- 'emerald',- 'green',- 'lime',- 'yellow',- 'amber',- 'orange',- 'red',- 'stone',- 'neutral',- 'zinc',- 'grey',- 'slate',-];-const twColorVariants = ['50', '100', '200', '700', '800', '900'];--/** @type {import('tailwindcss').Config} */-const config = {- darkMode: 'class',- safelist: [- ...[...new Array(12)].flatMap((_, index) =>- ['text', 'bg'].map((prefix) => `${prefix}-chart-${index}`),- ),- ...twColors.flatMap((color) => {- return twColorVariants.flatMap((variant) => {- return [- `text-${color}-${variant}`,- `bg-${color}-${variant}`,- `hover:bg-${color}-${variant}`,- `border-${color}-${variant}`,- `dark:bg-${color}-${variant}`,- `dark:hover:bg-${color}-${variant}`,- ];- });- }),- ],- content: [- './pages/**/*.{ts,tsx}',- './components/**/*.{ts,tsx}',- './app/**/*.{ts,tsx}',- './src/**/*.{ts,tsx}',- ],- theme: {- fontFamily: {- sans: ['var(--font-geist-sans)'],- mono: ['var(--font-geist-mono)'],- },- fontSize: {- xs: ['10px', '10px'],- sm: ['12px', '12px'],- base: ['14px', '14px'],- lg: ['16px', '16px'],- xl: ['18px', '18px'],- '2xl': ['20px', '20px'],- '3xl': ['24px', '24px'],- '4xl': ['30px', '30px'],- '5xl': ['36px', '36px'],- '6xl': ['48px', '48px'],- '7xl': ['64px', '64px'],- '8xl': ['72px', '72px'],- '9xl': ['96px', '96px'],- },- extend: {- colors: {- 'chart-0': 'var(--chart-0)',- 'chart-1': 'var(--chart-1)',- 'chart-2': 'var(--chart-2)',- 'chart-3': 'var(--chart-3)',- 'chart-4': 'var(--chart-4)',- 'chart-5': 'var(--chart-5)',- 'chart-6': 'var(--chart-6)',- 'chart-7': 'var(--chart-7)',- 'chart-8': 'var(--chart-8)',- 'chart-9': 'var(--chart-9)',- 'chart-10': 'var(--chart-10)',- 'chart-11': 'var(--chart-11)',- 'chart-12': 'var(--chart-12)',- border: 'hsl(var(--border))',- input: 'hsl(var(--input))',- ring: 'hsl(var(--ring))',- background: 'hsl(var(--background))',- foreground: 'hsl(var(--foreground))',- 'def-100': 'hsl(var(--def-100))',- 'def-200': 'hsl(var(--def-200))',- 'def-300': 'hsl(var(--def-300))',- 'def-400': 'hsl(var(--def-400))',- 'def-500': 'hsl(var(--def-500))',- 'def-600': 'hsl(var(--def-600))',- highlight: {- DEFAULT: 'hsl(var(--highlight))',- },- primary: {- DEFAULT: 'hsl(var(--primary))',- foreground: 'hsl(var(--primary-foreground))',- },- secondary: {- DEFAULT: 'hsl(var(--secondary))',- foreground: 'hsl(var(--secondary-foreground))',- },- destructive: {- DEFAULT: 'hsl(var(--destructive))',- foreground: 'hsl(var(--destructive-foreground))',- },- muted: {- DEFAULT: 'hsl(var(--muted))',- foreground: 'hsl(var(--muted-foreground))',- },- accent: {- DEFAULT: 'hsl(var(--accent))',- foreground: 'hsl(var(--accent-foreground))',- },- popover: {- DEFAULT: 'hsl(var(--popover))',- foreground: 'hsl(var(--popover-foreground))',- },- card: {- DEFAULT: 'hsl(var(--card))',- foreground: 'hsl(var(--card-foreground))',- },- ...colors.reduce((acc, color, index) => {- return {- ...acc,- [`chart-${index}`]: color,- };- }, {}),- },- borderRadius: {- lg: 'var(--radius)',- md: 'calc(var(--radius) - 2px)',- sm: 'calc(var(--radius) - 4px)',- },- boxShadow: {- DEFAULT: '0 5px 10px rgb(0 0 0 / 5%)',- },- keyframes: {- 'accordion-down': {- from: { height: '0px' },- to: { height: 'var(--radix-accordion-content-height)' },- },- 'accordion-up': {- from: { height: 'var(--radix-accordion-content-height)' },- to: { height: '0px' },- },- wiggle: {- '0%': { transform: 'rotate(0deg)' },- '80%': { transform: 'rotate(0deg)' },- '85%': { transform: 'rotate(5deg)' },- '95%': { transform: 'rotate(-5deg)' },- '100%': { transform: 'rotate(0deg)' },- },- },- animation: {- 'accordion-down': 'accordion-down 0.2s ease-out',- 'accordion-up': 'accordion-up 0.2s ease-out',- wiggle: 'wiggle 2.5s ease-in-out infinite',- 'ping-slow': 'ping 1.5s ease-in-out infinite',- },- },- },- plugins: [- require('@tailwindcss/container-queries'),- require('tailwindcss-animate'),- require('@tailwindcss/typography'),- ],-};--export default config;diff --git a/apps/dashboard/tsconfig.json b/apps/dashboard/tsconfig.jsondeleted file mode 100644index d17f2ec20..000000000--- a/apps/dashboard/tsconfig.json+++ /dev/null@@ -1,18 +0,0 @@-{- "extends": "@openpanel/tsconfig/base.json",- "compilerOptions": {- "baseUrl": ".",- "paths": {- "@/*": ["./src/*"]- },- "plugins": [- {- "name": "next"- }- ],- "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",- "strictNullChecks": true- },- "include": [".", ".next/types/**/*.ts"],- "exclude": ["node_modules"]-}diff --git a/apps/docs/Dockerfile b/apps/docs/Dockerfiledeleted file mode 100644index fb68f34b6..000000000--- a/apps/docs/Dockerfile+++ /dev/null@@ -1,11 +0,0 @@-FROM node:18-alpine--WORKDIR /app--COPY apps/docs/package.json package.json-RUN npm install --production-COPY apps/docs/index.js index.js--EXPOSE 3000--CMD ["node", "index.js"]diff --git a/apps/docs/index.js b/apps/docs/index.jsdeleted file mode 100644index 46a5e9ba1..000000000--- a/apps/docs/index.js+++ /dev/null@@ -1,43 +0,0 @@-const express = require('express');-const app = express();-const redirects = [- ['/', 'https://openpanel.dev/'],- ['/docs', 'https://openpanel.dev/docs'],- ['/docs/sdks/script', 'https://openpanel.dev/docs/sdks/script'],- ['/docs/sdks/web', 'https://openpanel.dev/docs/sdks/script'],- ['/docs/sdks/javascript', 'https://openpanel.dev/docs/sdks/node'],- ['/docs/sdks/react', 'https://openpanel.dev/docs/sdks/react'],- ['/docs/sdks/nextjs', 'https://openpanel.dev/docs/sdks/nextjs'],- ['/docs/sdks/remix', 'https://openpanel.dev/docs/sdks/remix'],- ['/docs/sdks/vue', 'https://openpanel.dev/docs/sdks/vue'],- ['/docs/sdks/astro', 'https://openpanel.dev/docs/sdks/astro'],- ['/docs/sdks/react-native', 'https://openpanel.dev/docs/sdks/react-native'],- ['/docs/sdks/node', 'https://openpanel.dev/docs/sdks/node'],- ['/docs/sdks/express', 'https://openpanel.dev/docs/sdks/express'],- ['/docs/sdks/api', 'https://openpanel.dev/docs/api/track'],- ['/docs/sdks/export', 'https://openpanel.dev/docs/api/export'],- [- '/docs/self-hosting',- 'https://openpanel.dev/docs/self-hosting/self-hosting',- ],-];--// Handle redirects for all defined routes-redirects.forEach(([from, to]) => {- app.get(from, (req, res) => {- console.log('redirecting', {- from,- to,- });-- res.redirect(302, to);- });-});--// Optional: Catch-all route for undefined routes-app.get('*', (req, res) => {- console.log('fallback redirect', req.url);- res.redirect(302, 'https://openpanel.dev/docs');-});--app.listen(3000);diff --git a/apps/docs/package.json b/apps/docs/package.jsondeleted file mode 100644index 67a93bbe8..000000000--- a/apps/docs/package.json+++ /dev/null@@ -1,12 +0,0 @@-{- "name": "docs",- "version": "1.0.0",- "description": "",- "main": "index.js",- "keywords": [],- "author": "",- "license": "ISC",- "dependencies": {- "express": "^4.18.2"- }-}diff --git a/apps/public/app/docs/layout.tsx b/apps/public/app/docs/layout.tsxindex a91d55856..f73f4f1d4 100644--- a/apps/public/app/docs/layout.tsx+++ b/apps/public/app/docs/layout.tsx@@ -1,7 +1,7 @@-import { DocsLayout } from 'fumadocs-ui/layouts/docs';-import type { ReactNode } from 'react';import { baseOptions } from '@/app/layout.config';import { source } from '@/lib/source';+import { DocsLayout } from 'fumadocs-ui/layouts/docs';+import type { ReactNode } from 'react';export default function Layout({ children }: { children: ReactNode }) {return (diff --git a/apps/public/content/docs/self-hosting/changelog.mdx b/apps/public/content/docs/self-hosting/changelog.mdxindex d83aad2ff..78ec37b9a 100644--- a/apps/public/content/docs/self-hosting/changelog.mdx+++ b/apps/public/content/docs/self-hosting/changelog.mdx@@ -5,7 +5,7 @@ description: This is a list of changes that have been made to the self-hosting s## 1.2.0-We have renamed `SELF_HOSTED` to `NEXT_PUBLIC_SELF_HOSTED`. It's important to rename this env before your upgrade to this version.+We have renamed `SELF_HOSTED` to `VITE_SELF_HOSTED`. It's important to rename this env before your upgrade to this version.## 1.1.1diff --git a/apps/public/lib/utils.ts b/apps/public/lib/utils.tsindex 2819a830d..9ad0df426 100644--- a/apps/public/lib/utils.ts+++ b/apps/public/lib/utils.ts@@ -1,4 +1,4 @@-import { clsx, type ClassValue } from 'clsx';+import { type ClassValue, clsx } from 'clsx';import { twMerge } from 'tailwind-merge';export function cn(...inputs: ClassValue[]) {diff --git a/apps/public/package.json b/apps/public/package.jsonindex 6726f23c1..a264ba0a3 100644--- a/apps/public/package.json+++ b/apps/public/package.json@@ -31,8 +31,8 @@"geist": "1.3.1","lucide-react": "0.454.0","next": "15.0.3",- "react": "18.3.1",- "react-dom": "18.3.1",+ "react": "catalog:",+ "react-dom": "catalog:","rehype-external-links": "3.0.0","tailwind-merge": "1.14.0","tailwindcss-animate": "1.0.7",@@ -40,12 +40,12 @@},"devDependencies": {"@types/mdx": "^2.0.13",- "@types/node": "20.14.8",- "@types/react": "^18.3.12",- "@types/react-dom": "^18.3.1",+ "@types/node": "catalog:",+ "@types/react": "catalog:",+ "@types/react-dom": "catalog:","autoprefixer": "^10.4.20","postcss": "^8.4.47","tailwindcss": "3.4.17",- "typescript": "^5.6.3"+ "typescript": "catalog:"}}diff --git a/apps/public/postcss.config.js b/apps/public/postcss.config.jsindex 12a703d90..2aa7205d4 100644--- a/apps/public/postcss.config.js+++ b/apps/public/postcss.config.js@@ -1,4 +1,4 @@-module.exports = {+export default {plugins: {tailwindcss: {},autoprefixer: {},diff --git a/apps/public/tailwind.config.js b/apps/public/tailwind.config.jsindex 2aeb5ed4f..3e8e7c92f 100644--- a/apps/public/tailwind.config.js+++ b/apps/public/tailwind.config.js@@ -1,4 +1,5 @@import { createPreset } from 'fumadocs-ui/tailwind-plugin';+import animate from 'tailwindcss-animate';/** @type {import('tailwindcss').Config} */export default {@@ -11,7 +12,7 @@ export default {'./node_modules/fumadocs-ui/dist/**/*.js',],presets: [createPreset()],- plugins: [require('tailwindcss-animate')],+ plugins: [animate],corePlugins: {container: false,},diff --git a/apps/start/.cta.json b/apps/start/.cta.jsonnew file mode 100644index 000000000..082a6f9d9--- /dev/null+++ b/apps/start/.cta.json@@ -0,0 +1,20 @@+{+ "projectName": "start",+ "mode": "file-router",+ "typescript": true,+ "tailwind": true,+ "packageManager": "pnpm",+ "git": true,+ "version": 1,+ "framework": "react-cra",+ "chosenAddOns": [+ "biome",+ "start",+ "tRPC",+ "shadcn",+ "sentry",+ "tanstack-query",+ "store",+ "table"+ ]+}diff --git a/apps/start/.cursorrules b/apps/start/.cursorrulesnew file mode 100644index 000000000..56662cfb7--- /dev/null+++ b/apps/start/.cursorrules@@ -0,0 +1,337 @@+We use Sentry for watching for errors in our deployed application, as well as for instrumentation of our application.++## Error collection++Error collection is automatic and configured in `src/router.tsx`.++## Instrumentation++We want our server functions instrumented. So if you see a function name like `createServerFn`, you can instrument it with Sentry. You'll need to import `Sentry`:++```tsx+import * as Sentry from '@sentry/tanstackstart-react'+```++And then wrap the implementation of the server function with `Sentry.startSpan`, like so:++```tsx+Sentry.startSpan({ name: 'Requesting all the pokemon' }, async () => {+ // Some lengthy operation here+ await fetch('https://api.pokemon.com/data/')+})+```+# shadcn instructions++Use the latest version of Shadcn to install new components, like this command to add a button component:++```bash+pnpx shadcn@latest add button+```++# TanStack Router v1 — Routing Concepts (React) Cheat Sheet++> Quick, copy‑pastable reference for file‑based routing in TanStack Router v1 (React).++## TL;DR++* **Root route** is always matched; it wraps everything.+* **createFileRoute(path)** defines a route; the path is auto‑managed by the bundler/CLI.+* **Index routes** use a **trailing slash** (`/posts/`) to target the exact parent path.+* **Dynamic segments** use `$param` (e.g. `/posts/$postId`).+* **Splat (catch‑all)** route is a lone `$` segment, exposing `params._splat`.+* **Optional segments** use `{-$param}`.+* **Layout routes** are normal routes that render an `<Outlet/>` for children.+* **Pathless layout routes** start with `_` (e.g. `/_settingsShell`), wrap children but don’t match URL segments.+* **Non‑nested** routes suffix a segment with `_` to un-nest (e.g. `posts_.$postId.edit.tsx`).+* Prefix files/folders with `-` to **exclude** them from routing (colocation).+* Use `(group)` folders to **group** files only (no path impact).++---++## 1) Anatomy of a Route++```tsx+import { createFileRoute } from '@tanstack/react-router'++export const Route = createFileRoute('/')({+ component: PostsComponent,+})+```++* `createFileRoute(path)` → declare a route for this file.+* Path string is auto‑written/maintained by the bundler/CLI for type safety.++### Root Route++```tsx+import { createRootRoute } from '@tanstack/react-router'+export const Route = createRootRoute()+```++* No path; always matched; can host loaders, components, search param validation, etc.++**With context**:++```tsx+import { createRootRouteWithContext } from '@tanstack/react-router'+import type { QueryClient } from '@tanstack/react-query'++export interface MyRouterContext { queryClient: QueryClient }+export const Route = createRootRouteWithContext<MyRouterContext>()+```++---++## 2) Basic Routes++```tsx+// routes/about.tsx+import { createFileRoute } from '@tanstack/react-router'+export const Route = createFileRoute('/about')({+ component: () => <div>About</div>,+})+```++* Exact path match. Renders `component`.++### Index Routes (trailing slash)++```tsx+// routes/posts.index.tsx OR routes/posts/ index file+export const Route = createFileRoute('/posts/')({+ component: () => <div>Please select a post!</div>,+})+```++* Matches **exactly** `/posts`. The **trailing `/`** denotes an index.++---++## 3) Dynamic Segments++```tsx+// routes/posts.$postId.tsx+export const Route = createFileRoute('/posts/$postId')({+ loader: ({ params }) => fetchPost(params.postId),+ component: PostComponent,+})++function PostComponent() {+ const { postId } = Route.useParams()+ return <div>Post ID: {postId}</div>+}+```++* `$postId` captures `123` for `/posts/123` → `{ postId: '123' }`.+* You can chain: `/posts/$postId/$revisionId` → `{ postId, revisionId }`.++### Splat / Catch‑All++```tsx+// routes/files/$.tsx+export const Route = createFileRoute('/files/$')({ component: Files })+```++* Captures the rest of the path into `params._splat` (e.g. `documents/hello-world`).++### Optional Parameters++```tsx+// routes/posts.{-$category}.tsx+export const Route = createFileRoute('/posts/{-$category}')({ component: Posts })++function Posts() {+ const { category } = Route.useParams()+ return <div>{category ? `Posts in ${category}` : 'All Posts'}</div>+}+```++* Matches `/posts` and `/posts/tech`.+* **Priority note:** routes with optional params are ranked lower than exact matches (e.g. `/posts/featured` beats `/posts/{-$category}`).++---++## 4) Layout & Pathless Layout Routes++### Layout Routes++```tsx+// routes/app.tsx+import { Outlet, createFileRoute } from '@tanstack/react-router'+export const Route = createFileRoute('/app')({ component: AppLayout })++function AppLayout() {+ return (+ <div>+ <h1>App</h1>+ <Outlet />+ </div>+ )+}+```++**Rendering matrix**++* `/app` → `<AppLayout>`+* `/app/dashboard` → `<AppLayout><Dashboard/>`+* `/app/settings` → `<AppLayout><Settings/>`++### Pathless Layout Routes (no URL segment)++```tsx+// routes/_shell.tsx+import { Outlet, createFileRoute } from '@tanstack/react-router'+export const Route = createFileRoute('/_shell')({ component: Shell })++function Shell() {+ return (+ <div>+ <Header/>+ <Outlet />+ </div>+ )+}+```++* File/folder name starts with `_` → doesn’t match a URL segment; wraps children.+* **Cannot** include dynamic `$param` in the pathless segment name. Use a real `$param` directory **beside** your `_shell` if needed:++```+routes/+├─ $postId/+├─ _postShell/+```++---++## 5) Non‑Nested Routes ("un-nesting")++Append `_` after a segment name to un-nest a file so it renders its own tree:++```+routes/+├─ posts.tsx+├─ posts.$postId.tsx+├─ posts_.$postId.edit.tsx // un-nested+```++**Resulting renders**++* `/posts` → `<Posts>`+* `/posts/123` → `<Posts><Post id=123>`+* `/posts/123/edit` → `<PostEditor id=123>` (not wrapped by `<Posts>`)++---++## 6) Excluding Files & Colocation++Prefix with `-` to exclude from route generation and safely colocate utilities:++```+routes/+├─ posts.tsx+├─ -posts-table.tsx // ignored+├─ -components/ // ignored+│ ├─ header.tsx // ignored+│ └─ footer.tsx // ignored+```++```tsx+import { PostsTable } from './-posts-table'+```++* Excluded entries are not added to the generated `routeTree.gen.ts`.++---++## 7) Pathless Route Group Directories++Group routes for organization only using `(group)` folders — no effect on paths or nesting:++```+routes/+├─ index.tsx+├─ (app)/+│ ├─ dashboard.tsx+│ ├─ settings.tsx+│ └─ users.tsx+├─ (auth)/+│ ├─ login.tsx+│ └─ register.tsx+```++**URLs render as** `/dashboard`, `/settings`, `/users`, `/login`, `/register`.++---++## 8) Useful APIs & Hooks++* `Route.useParams()` — typed path params for the current file route.+* `Route.useLoaderData()` — typed data returned from the current route’s `loader`.+* `<Outlet/>` — placeholder for child routes.+* (See docs for: search param validation, data loading, mutations, type safety, preloading, SSR, etc.)++---++## 9) Common File Naming Patterns (file‑based routing)++* `__root.tsx` — root route file.+* `index.tsx` or trailing `/` in `createFileRoute` — index under a segment.+* `$param.tsx` — dynamic segment.+* `$.tsx` — splat (catch‑all) segment.+* `{-$param}.tsx` — optional segment.+* `_segment.tsx` or `/_segment/route.tsx` — pathless layout route.+* `segment_.tsx` — un-nest that segment from parents.+* `-utils.tsx`, `-components/` — excluded from routing.+* `(group)/` — pathless grouping-only folder.++---++## 10) Quick Reference Examples++```tsx+// Simple loader + params + component+export const Route = createFileRoute('/users/$userId')({+ loader: ({ params }) => getUser(params.userId),+ component: () => {+ const { userId } = Route.useParams()+ const user = Route.useLoaderData()+ return <UserCard id={userId} data={user} />+ },+})+```++```tsx+// Layout+export const Route = createFileRoute('/dashboard')({ component: Layout })+function Layout() {+ return <>+ <Sidebar />+ <Outlet />+ </>+}+```++```tsx+// Optional + Splat combo (illustrative)+export const Route = createFileRoute('/docs/{-$section}/$')({ component: Docs })+```++---++## 11) Gotchas & Tips++* Prefer **file‑based** routing for less boilerplate and excellent type safety.+* Remember the **trailing slash** for index routes.+* Optional routes are **lower priority** than exact matches.+* Pathless layout routes **cannot** be dynamic.+* Use `-` prefix liberally to colocate non‑route code near routes.+* Use `(group)` folders to tame big route directories.++---++### Further Reading++* Route Trees, Route Matching, File‑Based Routing, Outlets, Path/Search Params, Data Loading, SSR, etc.++Happy routing! 🚦diff --git a/apps/start/.gitignore b/apps/start/.gitignorenew file mode 100644index 000000000..029f7fba9--- /dev/null+++ b/apps/start/.gitignore@@ -0,0 +1,12 @@+node_modules+.DS_Store+dist+dist-ssr+*.local+count.txt+.env+.nitro+.tanstack+.output+.vinxi+todos.jsondiff --git a/apps/start/.vscode/settings.json b/apps/start/.vscode/settings.jsonnew file mode 100644index 000000000..e32c6a7a6--- /dev/null+++ b/apps/start/.vscode/settings.json@@ -0,0 +1,41 @@+{+ "files.watcherExclude": {+ "**/routeTree.gen.ts": true+ },+ "search.exclude": {+ "**/routeTree.gen.ts": true+ },+ "files.readonlyInclude": {+ "**/routeTree.gen.ts": true+ },+ "[javascript]": {+ "editor.defaultFormatter": "biomejs.biome"+ },+ "[javascriptreact]": {+ "editor.defaultFormatter": "biomejs.biome"+ },+ "[typescript]": {+ "editor.defaultFormatter": "biomejs.biome"+ },+ "[typescriptreact]": {+ "editor.defaultFormatter": "biomejs.biome"+ },+ "[json]": {+ "editor.defaultFormatter": "biomejs.biome"+ },+ "[jsonc]": {+ "editor.defaultFormatter": "biomejs.biome"+ },+ "[css]": {+ "editor.defaultFormatter": "biomejs.biome"+ },+ "editor.codeActionsOnSave": {+ "source.organizeImports.biome": "explicit"+ },+ "typescript.preferences.includePackageJsonAutoImports": "on",+ "typescript.suggest.autoImports": true,+ "typescript.validate.enable": true,+ "typescript.preferences.strictNullChecks": true,+ "typescript.preferences.noUnusedLocals": true,+ "typescript.preferences.noUnusedParameters": true+}diff --git a/apps/start/README.md b/apps/start/README.mdnew file mode 100644index 000000000..e820dd47b--- /dev/null+++ b/apps/start/README.md@@ -0,0 +1,310 @@+Welcome to your new TanStack app!++# Getting Started++To run this application:++```bash+pnpm install+pnpm start+```++# Building For Production++To build this application for production:++```bash+pnpm build+```++## Testing++This project uses [Vitest](https://vitest.dev/) for testing. You can run the tests with:++```bash+pnpm test+```++## Styling++This project uses [Tailwind CSS](https://tailwindcss.com/) for styling.+++## Linting & Formatting++This project uses [Biome](https://biomejs.dev/) for linting and formatting. The following scripts are available:+++```bash+pnpm lint+pnpm format+pnpm check+```+++## Shadcn++Add components using the latest version of [Shadcn](https://ui.shadcn.com/).++```bash+pnpx shadcn@latest add button+```++++## Routing+This project uses [TanStack Router](https://tanstack.com/router). The initial setup is a file based router. Which means that the routes are managed as files in `src/routes`.++### Adding A Route++To add a new route to your application just add another a new file in the `./src/routes` directory.++TanStack will automatically generate the content of the route file for you.++Now that you have two routes you can use a `Link` component to navigate between them.++### Adding Links++To use SPA (Single Page Application) navigation you will need to import the `Link` component from `@tanstack/react-router`.++```tsx+import { Link } from "@tanstack/react-router";+```++Then anywhere in your JSX you can use it like so:++```tsx+<Link to="/about">About</Link>+```++This will create a link that will navigate to the `/about` route.++More information on the `Link` component can be found in the [Link documentation](https://tanstack.com/router/v1/docs/framework/react/api/router/linkComponent).++### Using A Layout++In the File Based Routing setup the layout is located in `src/routes/__root.tsx`. Anything you add to the root route will appear in all the routes. The route content will appear in the JSX where you use the `<Outlet />` component.++Here is an example layout that includes a header:++```tsx+import { Outlet, createRootRoute } from '@tanstack/react-router'+import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'++import { Link } from "@tanstack/react-router";++export const Route = createRootRoute({+ component: () => (+ <>+ <header>+ <nav>+ <Link to="/">Home</Link>+ <Link to="/about">About</Link>+ </nav>+ </header>+ <Outlet />+ <TanStackRouterDevtools />+ </>+ ),+})+```++The `<TanStackRouterDevtools />` component is not required so you can remove it if you don't want it in your layout.++More information on layouts can be found in the [Layouts documentation](https://tanstack.com/router/latest/docs/framework/react/guide/routing-concepts#layouts).+++## Data Fetching++There are multiple ways to fetch data in your application. You can use TanStack Query to fetch data from a server. But you can also use the `loader` functionality built into TanStack Router to load the data for a route before it's rendered.++For example:++```tsx+const peopleRoute = createRoute({+ getParentRoute: () => rootRoute,+ path: "/people",+ loader: async () => {+ const response = await fetch("https://swapi.dev/api/people");+ return response.json() as Promise<{+ results: {+ name: string;+ }[];+ }>;+ },+ component: () => {+ const data = peopleRoute.useLoaderData();+ return (+ <ul>+ {data.results.map((person) => (+ <li key={person.name}>{person.name}</li>+ ))}+ </ul>+ );+ },+});+```++Loaders simplify your data fetching logic dramatically. Check out more information in the [Loader documentation](https://tanstack.com/router/latest/docs/framework/react/guide/data-loading#loader-parameters).++### React-Query++React-Query is an excellent addition or alternative to route loading and integrating it into you application is a breeze.++First add your dependencies:++```bash+pnpm add @tanstack/react-query @tanstack/react-query-devtools+```++Next we'll need to create a query client and provider. We recommend putting those in `main.tsx`.++```tsx+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";++// ...++const queryClient = new QueryClient();++// ...++if (!rootElement.innerHTML) {+ const root = ReactDOM.createRoot(rootElement);++ root.render(+ <QueryClientProvider client={queryClient}>+ <RouterProvider router={router} />+ </QueryClientProvider>+ );+}+```++You can also add TanStack Query Devtools to the root route (optional).++```tsx+import { ReactQueryDevtools } from "@tanstack/react-query-devtools";++const rootRoute = createRootRoute({+ component: () => (+ <>+ <Outlet />+ <ReactQueryDevtools buttonPosition="top-right" />+ <TanStackRouterDevtools />+ </>+ ),+});+```++Now you can use `useQuery` to fetch your data.++```tsx+import { useQuery } from "@tanstack/react-query";++import "./App.css";++function App() {+ const { data } = useQuery({+ queryKey: ["people"],+ queryFn: () =>+ fetch("https://swapi.dev/api/people")+ .then((res) => res.json())+ .then((data) => data.results as { name: string }[]),+ initialData: [],+ });++ return (+ <div>+ <ul>+ {data.map((person) => (+ <li key={person.name}>{person.name}</li>+ ))}+ </ul>+ </div>+ );+}++export default App;+```++You can find out everything you need to know on how to use React-Query in the [React-Query documentation](https://tanstack.com/query/latest/docs/framework/react/overview).++## State Management++Another common requirement for React applications is state management. There are many options for state management in React. TanStack Store provides a great starting point for your project.++First you need to add TanStack Store as a dependency:++```bash+pnpm add @tanstack/store+```++Now let's create a simple counter in the `src/App.tsx` file as a demonstration.++```tsx+import { useStore } from "@tanstack/react-store";+import { Store } from "@tanstack/store";+import "./App.css";++const countStore = new Store(0);++function App() {+ const count = useStore(countStore);+ return (+ <div>+ <button onClick={() => countStore.setState((n) => n + 1)}>+ Increment - {count}+ </button>+ </div>+ );+}++export default App;+```++One of the many nice features of TanStack Store is the ability to derive state from other state. That derived state will update when the base state updates.++Let's check this out by doubling the count using derived state.++```tsx+import { useStore } from "@tanstack/react-store";+import { Store, Derived } from "@tanstack/store";+import "./App.css";++const countStore = new Store(0);++const doubledStore = new Derived({+ fn: () => countStore.state * 2,+ deps: [countStore],+});+doubledStore.mount();++function App() {+ const count = useStore(countStore);+ const doubledCount = useStore(doubledStore);++ return (+ <div>+ <button onClick={() => countStore.setState((n) => n + 1)}>+ Increment - {count}+ </button>+ <div>Doubled - {doubledCount}</div>+ </div>+ );+}++export default App;+```++We use the `Derived` class to create a new store that is derived from another store. The `Derived` class has a `mount` method that will start the derived store updating.++Once we've created the derived store we can use it in the `App` component just like we would any other store using the `useStore` hook.++You can find out everything you need to know on how to use TanStack Store in the [TanStack Store documentation](https://tanstack.com/store/latest).++# Demo files++Files prefixed with `demo` can be safely deleted. They are there to provide a starting point for you to play around with the features you've installed.++# Learn More++You can learn more about all of the offerings from TanStack in the [TanStack documentation](https://tanstack.com).diff --git a/apps/start/ROUTING.md b/apps/start/ROUTING.mdnew file mode 100644index 000000000..7783e50b0--- /dev/null+++ b/apps/start/ROUTING.md@@ -0,0 +1,118 @@+# Routing Structure++This SaaS application uses TanStack Router with pathless routes (using underscore prefix) for better organization and shared layouts.++## Route Structure++### Landing Page+- **Route**: `/`+- **File**: `src/routes/index.tsx`+- **Purpose**: Landing page that redirects to latest organization or shows all organizations++### Authentication Routes (Pathless Layout: `_auth`)+- **Layout**: `src/routes/_auth.tsx` - Shared layout for auth pages+- **Login**: `/login` - `src/routes/_auth.login.tsx`+- **Onboarding**: `/onboarding` - `src/routes/_auth.onboarding.tsx`+ - **Index**: `/onboarding/` - `src/routes/_auth.onboarding.index.tsx`+ - **Step 1**: `/onboarding/step1` - `src/routes/_auth.onboarding.step1.tsx`++### App Routes (Pathless Layout: `_app`)+- **Layout**: `src/routes/_app.tsx` - Shared layout with sidebar for app pages+- **Organization**: `/$organizationId` - `src/routes/_app.$organizationId.tsx`+- **Project**: `/$organizationId/$projectId` - `src/routes/_app.$organizationId.$projectId.tsx`++## Pathless Routes++### `_auth` Layout+- **Purpose**: Groups authentication and onboarding routes+- **Shared Layout**: Clean, centered layout with white background+- **Routes**: `/login`, `/onboarding/*`++### `_app` Layout+- **Purpose**: Groups organization and project routes+- **Shared Layout**: Sidebar + main content layout+- **Routes**: `/$organizationId`, `/$organizationId/$projectId`++## Landing Page Behavior++The landing page (`/`) intelligently handles user state:++1. **If user has a latest organization**: Shows "Continue where you left off" button+2. **If no latest organization**: Shows login/onboarding options+3. **Always shows**: List of all user's organizations++## Sidebar Behavior++The sidebar in the `(app)` layout dynamically changes based on the route:++- **Organization level** (`/$organizationId`): Shows projects list+- **Project level** (`/$organizationId/$projectId`): Shows dashboard navigation++## Adding New Routes++### For Auth Routes+Create new files with the pattern `src/routes/_auth.your-route.tsx`:+```typescript+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute('/_auth/your-route')({+ component: YourComponent,+});+```++### For App Routes+Create new files with the pattern `src/routes/_app.your-route.tsx`:+```typescript+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute('/_app/your-route')({+ component: YourComponent,+});+```++### For Onboarding Nested Routes+Create new files with the pattern `src/routes/_auth.onboarding.your-step.tsx`:+```typescript+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute('/_auth/onboarding/your-step')({+ component: YourComponent,+});+```++## Route Parameters++- `$organizationId`: Dynamic organization identifier+- `$projectId`: Dynamic project identifier++These parameters are automatically available in the route components via the `useParams()` hook.++## Example Usage++```typescript+import { useParams } from '@tanstack/react-router';++function ProjectDashboard() {+ const { organizationId, projectId } = useParams({+ from: '/_app/$organizationId/$projectId'+ });++ // Use organizationId and projectId+}+```++## File Structure++```+src/routes/+├── __root.tsx # Root layout+├── index.tsx # Landing page+├── _auth.tsx # Auth layout (pathless)+├── _auth.login.tsx # Login page+├── _auth.onboarding.tsx # Onboarding layout+├── _auth.onboarding.index.tsx # Onboarding main page+├── _auth.onboarding.step1.tsx # Onboarding step 1+├── _app.tsx # App layout (pathless)+├── _app.$organizationId.tsx # Organization projects list+└── _app.$organizationId.$projectId.tsx # Project dashboard+```diff --git a/apps/start/biome.json b/apps/start/biome.jsonnew file mode 100644index 000000000..2e91202ec--- /dev/null+++ b/apps/start/biome.json@@ -0,0 +1,31 @@+{+ "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",+ "vcs": {+ "enabled": false,+ "clientKind": "git",+ "useIgnoreFile": false+ },+ "files": {+ "ignoreUnknown": false,+ "ignore": ["src/routeTree.gen.ts"],+ "include": ["src/*", ".vscode/*", "index.html", "vite.config.js"]+ },+ "formatter": {+ "enabled": true,+ "indentStyle": "tab"+ },+ "organizeImports": {+ "enabled": true+ },+ "linter": {+ "enabled": true,+ "rules": {+ "recommended": true+ }+ },+ "javascript": {+ "formatter": {+ "quoteStyle": "double"+ }+ }+}diff --git a/apps/start/components.json b/apps/start/components.jsonnew file mode 100644index 000000000..58bb3a273--- /dev/null+++ b/apps/start/components.json@@ -0,0 +1,21 @@+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "new-york",+ "rsc": false,+ "tsx": true,+ "tailwind": {+ "config": "",+ "css": "src/styles.css",+ "baseColor": "zinc",+ "cssVariables": true,+ "prefix": ""+ },+ "aliases": {+ "components": "@/components",+ "utils": "@/lib/utils",+ "ui": "@/components/ui",+ "lib": "@/lib",+ "hooks": "@/hooks"+ },+ "iconLibrary": "lucide"+}diff --git a/apps/start/package.json b/apps/start/package.jsonnew file mode 100644index 000000000..c7e93ddb9--- /dev/null+++ b/apps/start/package.json@@ -0,0 +1,174 @@+{+ "name": "start",+ "private": true,+ "type": "module",+ "scripts": {+ "dev": "pnpm with-env vite dev --port 3000",+ "start_deprecated": "pnpm with-env node .output/server/index.mjs",+ "preview": "vite preview",+ "deploy": "npx wrangler deploy",+ "cf-typegen": "wrangler types",+ "build": "vite build",+ "serve": "vite preview",+ "test": "vitest run",+ "format": "biome format",+ "lint": "biome lint",+ "check": "biome check",+ "typecheck": "tsc --noEmit",+ "with-env": "dotenv -e ../../.env -c --"+ },+ "dependencies": {+ "@ai-sdk/react": "^1.2.5",+ "@clickhouse/client": "^1.2.0",+ "@dnd-kit/core": "^6.3.1",+ "@dnd-kit/sortable": "^10.0.0",+ "@dnd-kit/utilities": "^3.2.2",+ "@faker-js/faker": "^9.6.0",+ "@hookform/resolvers": "^3.3.4",+ "@hyperdx/node-opentelemetry": "^0.8.1",+ "@number-flow/react": "0.3.5",+ "@openpanel/common": "workspace:^",+ "@openpanel/constants": "workspace:^",+ "@openpanel/integrations": "workspace:^",+ "@openpanel/json": "workspace:*",+ "@openpanel/payments": "workspace:*",+ "@openpanel/sdk-info": "workspace:^",+ "@openpanel/validation": "workspace:^",+ "@openpanel/web": "^1.0.1",+ "@radix-ui/react-accordion": "^1.2.12",+ "@radix-ui/react-alert-dialog": "^1.1.15",+ "@radix-ui/react-aspect-ratio": "^1.1.7",+ "@radix-ui/react-avatar": "^1.1.10",+ "@radix-ui/react-checkbox": "^1.3.3",+ "@radix-ui/react-dialog": "^1.1.15",+ "@radix-ui/react-dropdown-menu": "^2.1.16",+ "@radix-ui/react-label": "^2.1.7",+ "@radix-ui/react-popover": "^1.1.15",+ "@radix-ui/react-portal": "^1.1.9",+ "@radix-ui/react-progress": "^1.1.7",+ "@radix-ui/react-radio-group": "^1.3.8",+ "@radix-ui/react-scroll-area": "^1.2.10",+ "@radix-ui/react-select": "^2.2.6",+ "@radix-ui/react-separator": "^1.1.7",+ "@radix-ui/react-slider": "1.2.3",+ "@radix-ui/react-slot": "^1.2.3",+ "@radix-ui/react-switch": "^1.2.6",+ "@radix-ui/react-tabs": "^1.1.13",+ "@radix-ui/react-toast": "^1.2.15",+ "@radix-ui/react-toggle": "^1.1.10",+ "@radix-ui/react-toggle-group": "^1.1.11",+ "@radix-ui/react-tooltip": "^1.2.8",+ "@reduxjs/toolkit": "^2.8.2",+ "@sentry/tanstackstart-react": "^9.12.0",+ "@tailwindcss/container-queries": "^0.1.1",+ "@tailwindcss/typography": "^0.5.15",+ "@tailwindcss/vite": "^4.0.6",+ "@tanstack/match-sorter-utils": "^8.19.4",+ "@tanstack/react-devtools": "^0.7.6",+ "@tanstack/react-query": "^5.90.2",+ "@tanstack/react-query-devtools": "^5.90.2",+ "@tanstack/react-router": "^1.132.47",+ "@tanstack/react-router-devtools": "^1.132.51",+ "@tanstack/react-router-ssr-query": "^1.132.47",+ "@tanstack/react-start": "^1.132.56",+ "@tanstack/react-store": "^0.8.0",+ "@tanstack/react-table": "^8.21.3",+ "@tanstack/react-virtual": "^3.13.12",+ "@tanstack/router-plugin": "^1.132.56",+ "@tanstack/store": "^0.8.0",+ "@trpc/client": "^11.6.0",+ "@trpc/react-query": "^11.6.0",+ "@trpc/server": "^11.6.0",+ "@trpc/tanstack-react-query": "^11.6.0",+ "@types/d3": "^7.4.3",+ "ai": "^4.2.10",+ "bind-event-listener": "^3.0.0",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1",+ "cmdk": "^0.2.1",+ "d3": "^7.8.5",+ "date-fns": "^3.3.1",+ "debounce": "^2.2.0",+ "embla-carousel-autoplay": "^8.6.0",+ "embla-carousel-react": "8.0.0-rc22",+ "flag-icons": "^7.1.0",+ "framer-motion": "^11.0.28",+ "hamburger-react": "^2.5.0",+ "input-otp": "^1.2.4",+ "javascript-time-ago": "^2.5.9",+ "katex": "^0.16.21",+ "lodash.debounce": "^4.0.8",+ "lodash.isequal": "^4.5.0",+ "lodash.throttle": "^4.1.1",+ "lottie-react": "^2.4.0",+ "lucide-react": "^0.476.0",+ "mathjs": "^12.3.2",+ "mitt": "^3.0.1",+ "nuqs": "^2.5.2",+ "prisma-error-enum": "^0.1.3",+ "pushmodal": "^1.0.3",+ "ramda": "^0.29.1",+ "random-animal-name": "^0.1.1",+ "rc-virtual-list": "^3.14.5",+ "react": "catalog:",+ "react-animate-height": "^3.2.3",+ "react-animated-numbers": "^1.1.1",+ "react-day-picker": "^9.9.0",+ "react-dom": "catalog:",+ "react-grid-layout": "^1.5.2",+ "react-hook-form": "^7.50.1",+ "react-in-viewport": "1.0.0-beta.8",+ "react-markdown": "^10.1.0",+ "react-redux": "^8.1.3",+ "react-resizable": "^3.0.5",+ "react-responsive": "^9.0.2",+ "react-simple-maps": "3.0.0",+ "react-svg-worldmap": "2.0.0-alpha.16",+ "react-syntax-highlighter": "^15.5.0",+ "react-use-websocket": "^4.7.0",+ "react-virtualized-auto-sizer": "^1.0.22",+ "recharts": "^2.15.4",+ "rehype-katex": "^7.0.1",+ "remark-gfm": "^4.0.1",+ "remark-highlight": "^0.1.1",+ "remark-math": "^6.0.0",+ "remark-parse": "^11.0.0",+ "remark-rehype": "^11.1.2",+ "short-unique-id": "^5.0.3",+ "slugify": "^1.6.6",+ "sonner": "^1.4.0",+ "sqlstring": "^2.3.3",+ "superjson": "^2.2.2",+ "tailwind-merge": "^3.0.2",+ "tailwindcss": "^4.0.6",+ "tailwindcss-animate": "^1.0.7",+ "tw-animate-css": "^1.3.6",+ "usehooks-ts": "^2.14.0",+ "vite-tsconfig-paths": "^5.1.4",+ "zod": "catalog:"+ },+ "devDependencies": {+ "@biomejs/biome": "1.9.4",+ "@cloudflare/vite-plugin": "^1.13.12",+ "@openpanel/db": "workspace:*",+ "@openpanel/trpc": "workspace:*",+ "@tanstack/devtools-event-client": "^0.3.3",+ "@testing-library/dom": "^10.4.0",+ "@testing-library/react": "^16.2.0",+ "@types/lodash.debounce": "^4.0.9",+ "@types/lodash.isequal": "^4.5.8",+ "@types/lodash.throttle": "^4.1.9",+ "@types/ramda": "^0.31.0",+ "@types/react": "catalog:",+ "@types/react-dom": "catalog:",+ "@types/react-simple-maps": "^3.0.4",+ "@types/react-syntax-highlighter": "^15.5.11",+ "@vitejs/plugin-react": "^4.3.4",+ "jsdom": "^26.0.0",+ "typescript": "catalog:",+ "vite": "^6.3.5",+ "vitest": "^3.0.5",+ "web-vitals": "^4.2.4",+ "wrangler": "^4.42.2"+ }+}diff --git a/apps/dashboard/public/favicon.ico b/apps/start/public/favicon.icosimilarity index 100%rename from apps/dashboard/public/favicon.icorename to apps/start/public/favicon.icodiff --git a/apps/start/public/img-1.png b/apps/start/public/img-1.pngnew file mode 100644index 000000000..b8a205d9fBinary files /dev/null and b/apps/start/public/img-1.png differdiff --git a/apps/start/public/img-2.png b/apps/start/public/img-2.pngnew file mode 100644index 000000000..a4a714047Binary files /dev/null and b/apps/start/public/img-2.png differdiff --git a/apps/start/public/img-3.png b/apps/start/public/img-3.pngnew file mode 100644index 000000000..c0a5e6c99Binary files /dev/null and b/apps/start/public/img-3.png differdiff --git a/apps/start/public/img-4.png b/apps/start/public/img-4.pngnew file mode 100644index 000000000..2bee284c0Binary files /dev/null and b/apps/start/public/img-4.png differdiff --git a/apps/start/public/img-5.png b/apps/start/public/img-5.pngnew file mode 100644index 000000000..f6f297d8fBinary files /dev/null and b/apps/start/public/img-5.png differdiff --git a/apps/start/public/img-6.png b/apps/start/public/img-6.pngnew file mode 100644index 000000000..47b9cf163Binary files /dev/null and b/apps/start/public/img-6.png differdiff --git a/apps/dashboard/public/logo.svg b/apps/start/public/logo.svgsimilarity index 100%rename from apps/dashboard/public/logo.svgrename to apps/start/public/logo.svgdiff --git a/apps/start/public/logo192.png b/apps/start/public/logo192.pngnew file mode 100644index 000000000..fc44b0a37Binary files /dev/null and b/apps/start/public/logo192.png differdiff --git a/apps/start/public/logo512.png b/apps/start/public/logo512.pngnew file mode 100644index 000000000..a4e47a654Binary files /dev/null and b/apps/start/public/logo512.png differdiff --git a/apps/start/public/manifest.json b/apps/start/public/manifest.jsonnew file mode 100644index 000000000..078ef5011--- /dev/null+++ b/apps/start/public/manifest.json@@ -0,0 +1,25 @@+{+ "short_name": "TanStack App",+ "name": "Create TanStack App Sample",+ "icons": [+ {+ "src": "favicon.ico",+ "sizes": "64x64 32x32 24x24 16x16",+ "type": "image/x-icon"+ },+ {+ "src": "logo192.png",+ "type": "image/png",+ "sizes": "192x192"+ },+ {+ "src": "logo512.png",+ "type": "image/png",+ "sizes": "512x512"+ }+ ],+ "start_url": ".",+ "display": "standalone",+ "theme_color": "#000000",+ "background_color": "#ffffff"+}diff --git a/apps/start/public/robots.txt b/apps/start/public/robots.txtnew file mode 100644index 000000000..e9e57dc4d--- /dev/null+++ b/apps/start/public/robots.txt@@ -0,0 +1,3 @@+# https://www.robotstxt.org/robotstxt.html+User-agent: *+Disallow:diff --git a/apps/start/src/app/global-middleware.ts b/apps/start/src/app/global-middleware.tsnew file mode 100644index 000000000..53fe07265--- /dev/null+++ b/apps/start/src/app/global-middleware.ts@@ -0,0 +1,10 @@+// import * as Sentry from '@sentry/tanstackstart-react';+// import { createMiddleware } from '@tanstack/react-start';++// registerGlobalMiddleware({+// middleware: [+// createMiddleware({+// type: 'function',+// }).server(Sentry.sentryGlobalServerMiddlewareHandler()),+// ],+// });diff --git a/apps/dashboard/src/components/animate-height.tsx b/apps/start/src/components/animate-height.tsxsimilarity index 100%rename from apps/dashboard/src/components/animate-height.tsxrename to apps/start/src/components/animate-height.tsxdiff --git a/apps/start/src/components/animated-number.tsx b/apps/start/src/components/animated-number.tsxnew file mode 100644index 000000000..61f5e8b54--- /dev/null+++ b/apps/start/src/components/animated-number.tsx@@ -0,0 +1,20 @@+import type { NumberFlowProps } from '@number-flow/react';+import { useEffect, useState } from 'react';++// NumberFlow is breaking ssr and forces loaders to fetch twice+export function AnimatedNumber(props: NumberFlowProps) {+ const [Component, setComponent] =+ useState<React.ComponentType<NumberFlowProps> | null>(null);++ useEffect(() => {+ import('@number-flow/react').then(({ default: NumberFlow }) => {+ setComponent(NumberFlow);+ });+ }, []);++ if (!Component) {+ return <>{props.value}</>;+ }++ return <Component {...props} />;+}diff --git a/apps/start/src/components/auth/or.tsx b/apps/start/src/components/auth/or.tsxnew file mode 100644index 000000000..7463afdc9--- /dev/null+++ b/apps/start/src/components/auth/or.tsx@@ -0,0 +1,11 @@+import { cn } from '@/utils/cn';++export function Or({ className }: { className?: string }) {+ return (+ <div className={cn('row items-center gap-4', className)}>+ <div className="h-px w-full bg-def-300" />+ <span className="text-muted-foreground text-sm font-medium px-2">OR</span>+ <div className="h-px w-full bg-def-300" />+ </div>+ );+}diff --git a/apps/start/src/components/auth/reset-password-form.tsx b/apps/start/src/components/auth/reset-password-form.tsxnew file mode 100644index 000000000..a4d6dd4ca--- /dev/null+++ b/apps/start/src/components/auth/reset-password-form.tsx@@ -0,0 +1,68 @@+import { useTRPC } from '@/integrations/trpc/react';+import { zodResolver } from '@hookform/resolvers/zod';+import { zResetPassword } from '@openpanel/validation';+import { useMutation } from '@tanstack/react-query';+import { useNavigate } from '@tanstack/react-router';+import { useForm } from 'react-hook-form';+import { toast } from 'sonner';+import type { z } from 'zod';+import { InputWithLabel } from '../forms/input-with-label';+import { Button } from '../ui/button';++const validator = zResetPassword;+type IForm = z.infer<typeof validator>;++export function ResetPasswordForm({ token }: { token: string }) {+ const navigate = useNavigate();+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.auth.resetPassword.mutationOptions({+ onSuccess() {+ toast.success('Password reset successfully');+ navigate({+ to: '/login',+ });+ },+ onError(error) {+ toast.error(error.message);+ },+ }),+ );++ const form = useForm<IForm>({+ resolver: zodResolver(validator),+ defaultValues: {+ token: token ?? '',+ password: '',+ },+ });++ const onSubmit = form.handleSubmit(async (data) => {+ mutation.mutate(data);+ });++ return (+ <div className="col gap-8">+ <div>+ <h1 className="text-3xl font-bold text-foreground mb-2">+ Reset your password+ </h1>+ <p className="text-muted-foreground">+ Already have an account?{' '}+ <a href="/login" className="underline">+ Sign in+ </a>+ </p>+ </div>+ <form onSubmit={onSubmit} className="col gap-6">+ <InputWithLabel+ label="New password"+ placeholder="New password"+ type="password"+ {...form.register('password')}+ />+ <Button type="submit">Reset password</Button>+ </form>+ </div>+ );+}diff --git a/apps/dashboard/src/components/auth/share-enter-password.tsx b/apps/start/src/components/auth/share-enter-password.tsxsimilarity index 82%rename from apps/dashboard/src/components/auth/share-enter-password.tsxrename to apps/start/src/components/auth/share-enter-password.tsxindex ee6083b4a..4529a2b45 100644--- a/apps/dashboard/src/components/auth/share-enter-password.tsx+++ b/apps/start/src/components/auth/share-enter-password.tsx@@ -1,10 +1,7 @@-'use client';--import { ModalHeader } from '@/modals/Modal/Container';-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';import { type ISignInShare, zSignInShare } from '@openpanel/validation';-import { useRouter } from 'next/navigation';+import { useMutation } from '@tanstack/react-query';import { useForm } from 'react-hook-form';import { toast } from 'sonner';import { LogoSquare } from '../logo';@@ -12,15 +9,15 @@ import { Button } from '../ui/button';import { Input } from '../ui/input';export function ShareEnterPassword({ shareId }: { shareId: string }) {- const router = useRouter();- const mutation = api.auth.signInShare.useMutation({- onSuccess() {- router.refresh();- },- onError() {- toast.error('Incorrect password');- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.auth.signInShare.mutationOptions({+ onSuccess() {},+ onError() {+ toast.error('Incorrect password');+ },+ }),+ );const form = useForm<ISignInShare>({resolver: zodResolver(zSignInShare),defaultValues: {@@ -56,7 +53,7 @@ export function ShareEnterPassword({ shareId }: { shareId: string }) {<Button type="submit">Get access</Button></form></div>- <div className="p-6 text-xs max-w-sm col gap-0.5">+ <div className="p-6 text-sm max-w-sm col gap-0.5"><p>Powered by{' '}<a href="https://openpanel.dev" className="font-medium">diff --git a/apps/dashboard/src/components/auth/sign-in-email-form.tsx b/apps/start/src/components/auth/sign-in-email-form.tsxsimilarity index 56%rename from apps/dashboard/src/components/auth/sign-in-email-form.tsxrename to apps/start/src/components/auth/sign-in-email-form.tsxindex a9f5e37f2..8f00789ef 100644--- a/apps/dashboard/src/components/auth/sign-in-email-form.tsx+++ b/apps/start/src/components/auth/sign-in-email-form.tsx@@ -1,9 +1,9 @@-'use client';+import { useTRPC } from '@/integrations/trpc/react';import { pushModal } from '@/modals';-import { api } from '@/trpc/client';import { zodResolver } from '@hookform/resolvers/zod';import { zSignInEmail } from '@openpanel/validation';-import { useRouter } from 'next/navigation';+import { useMutation, useQueryClient } from '@tanstack/react-query';+import { useNavigate, useRouter } from '@tanstack/react-router';import { type SubmitHandler, useForm } from 'react-hook-form';import { toast } from 'sonner';import type { z } from 'zod';@@ -14,18 +14,24 @@ const validator = zSignInEmail;type IForm = z.infer<typeof validator>;export function SignInEmailForm() {- const router = useRouter();- const mutation = api.auth.signInEmail.useMutation({- onSuccess(res) {- toast.success('Successfully signed in');- router.push('/');- },- onError(error) {- toast.error(error.message);- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.auth.signInEmail.mutationOptions({+ async onSuccess() {+ toast.success('Successfully signed in');+ window.location.href = '/';+ },+ onError(error) {+ toast.error(error.message);+ },+ }),+ );const form = useForm<IForm>({resolver: zodResolver(validator),+ defaultValues: {+ email: '[email protected]',+ password: 'demodemo',+ },});const onSubmit: SubmitHandler<IForm> = (values) => {mutation.mutate({@@ -34,20 +40,23 @@ export function SignInEmailForm() {};return (- <form onSubmit={form.handleSubmit(onSubmit)} className="col gap-6">- <h3 className="text-2xl font-medium text-left">Sign in with email</h3>+ <form onSubmit={form.handleSubmit(onSubmit)} className="col gap-4"><InputWithLabel{...form.register('email')}error={form.formState.errors.email?.message}label="Email"+ className="bg-def-100/50 border-def-300 focus:border-highlight focus:ring-highlight/20"/><InputWithLabel{...form.register('password')}error={form.formState.errors.password?.message}label="Password"type="password"+ className="bg-def-100/50 border-def-300 focus:border-highlight focus:ring-highlight/20"/>- <Button type="submit">Sign in</Button>+ <Button type="submit" size="lg">+ Sign in+ </Button><buttontype="button"onClick={() =>@@ -55,7 +64,7 @@ export function SignInEmailForm() {email: form.getValues('email'),})}- className="text-sm text-muted-foreground hover:underline"+ className="text-sm text-muted-foreground hover:text-highlight hover:underline transition-colors duration-200 text-center mt-2">Forgot password?</button>diff --git a/apps/dashboard/src/components/auth/sign-in-github.tsx b/apps/start/src/components/auth/sign-in-github.tsxsimilarity index 69%rename from apps/dashboard/src/components/auth/sign-in-github.tsxrename to apps/start/src/components/auth/sign-in-github.tsxindex 670ead3a8..256e5d59f 100644--- a/apps/dashboard/src/components/auth/sign-in-github.tsx+++ b/apps/start/src/components/auth/sign-in-github.tsx@@ -1,26 +1,28 @@-'use client';--import { api } from '@/trpc/client';-import { useSearchParams } from 'next/navigation';+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation } from '@tanstack/react-query';import { Button } from '../ui/button';-export function SignInGithub({ type }: { type: 'sign-in' | 'sign-up' }) {- const searchParams = useSearchParams();- const inviteId = searchParams.get('inviteId');- const mutation = api.auth.signInOAuth.useMutation({- onSuccess(res) {- if (res.url) {- window.location.href = res.url;- }- },- });+export function SignInGithub({+ type,+ inviteId,+}: { type: 'sign-in' | 'sign-up'; inviteId?: string }) {+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.auth.signInOAuth.mutationOptions({+ onSuccess(res) {+ if (res.url) {+ window.location.href = res.url;+ }+ },+ }),+ );const title = () => {if (type === 'sign-in') return 'Sign in with Github';if (type === 'sign-up') return 'Sign up with Github';};return (<Button- className="md:flex-1"+ className="w-full bg-primary hover:bg-primary/90 text-primary-foreground shadow-sm hover:shadow-md transition-all duration-200 [&_svg]:shrink-0"size="lg"onClick={() =>mutation.mutate({diff --git a/apps/dashboard/src/components/auth/sign-in-google.tsx b/apps/start/src/components/auth/sign-in-google.tsxsimilarity index 68%rename from apps/dashboard/src/components/auth/sign-in-google.tsxrename to apps/start/src/components/auth/sign-in-google.tsxindex 530f6fa1f..42e1f9964 100644--- a/apps/dashboard/src/components/auth/sign-in-google.tsx+++ b/apps/start/src/components/auth/sign-in-google.tsx@@ -1,26 +1,28 @@-'use client';--import { api } from '@/trpc/client';-import { useSearchParams } from 'next/navigation';+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation } from '@tanstack/react-query';import { Button } from '../ui/button';-export function SignInGoogle({ type }: { type: 'sign-in' | 'sign-up' }) {- const searchParams = useSearchParams();- const inviteId = searchParams.get('inviteId');- const mutation = api.auth.signInOAuth.useMutation({- onSuccess(res) {- if (res.url) {- window.location.href = res.url;- }- },- });+export function SignInGoogle({+ type,+ inviteId,+}: { type: 'sign-in' | 'sign-up'; inviteId?: string }) {+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.auth.signInOAuth.mutationOptions({+ onSuccess(res) {+ if (res.url) {+ window.location.href = res.url;+ }+ },+ }),+ );const title = () => {if (type === 'sign-in') return 'Sign in with Google';if (type === 'sign-up') return 'Sign up with Google';};return (<Button- className="md:flex-1"+ className="w-full bg-background hover:bg-def-100 border border-def-300 text-foreground shadow-sm hover:shadow-md transition-all duration-200 [&_svg]:shrink-0"size="lg"onClick={() =>mutation.mutate({diff --git a/apps/dashboard/src/components/auth/sign-up-email-form.tsx b/apps/start/src/components/auth/sign-up-email-form.tsxsimilarity index 68%rename from apps/dashboard/src/components/auth/sign-up-email-form.tsxrename to apps/start/src/components/auth/sign-up-email-form.tsxindex 738a2904d..2ddde17c9 100644--- a/apps/dashboard/src/components/auth/sign-up-email-form.tsx+++ b/apps/start/src/components/auth/sign-up-email-form.tsx@@ -1,9 +1,9 @@-'use client';--import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';import { zSignUpEmail } from '@openpanel/validation';-import { useRouter, useSearchParams } from 'next/navigation';+import { useMutation } from '@tanstack/react-query';++import { useRouter } from '@tanstack/react-router';import { type SubmitHandler, useForm } from 'react-hook-form';import { toast } from 'sonner';import type { z } from 'zod';@@ -13,27 +13,34 @@ import { Button } from '../ui/button';const validator = zSignUpEmail;type IForm = z.infer<typeof validator>;-export function SignUpEmailForm() {+export function SignUpEmailForm({+ inviteId,+}: { inviteId: string | undefined }) {const router = useRouter();- const searchParams = useSearchParams();- const mutation = api.auth.signUpEmail.useMutation({- onSuccess(res) {- toast.success('Successfully signed up');- router.push('/');- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.auth.signUpEmail.mutationOptions({+ onSuccess() {+ toast.success('Successfully signed up');+ window.location.href = '/onboarding/project';+ },+ onError(error) {+ toast.error(error.message);+ },+ }),+ );const form = useForm<IForm>({resolver: zodResolver(validator),});const onSubmit: SubmitHandler<IForm> = (values) => {mutation.mutate({...values,- inviteId: searchParams.get('inviteId'),+ inviteId,});};return (- <form className="col gap-8" onSubmit={form.handleSubmit(onSubmit)}>- <div className="row gap-8 w-full flex-1">+ <form className="col gap-4" onSubmit={form.handleSubmit(onSubmit)}>+ <div className="row gap-4 w-full flex-1"><InputWithLabellabel="First name"className="flex-1"@@ -56,7 +63,7 @@ export function SignUpEmailForm() {{...form.register('email')}error={form.formState.errors.email?.message}/>- <div className="row gap-8 w-full">+ <div className="row gap-4 w-full"><InputWithLabellabel="Password"className="flex-1"@@ -72,12 +79,9 @@ export function SignUpEmailForm() {error={form.formState.errors.confirmPassword?.message}/></div>- <div className="grid grid-cols-2 gap-8">- <div />- <Button type="submit" className="w-full" size="lg">- Create account- </Button>- </div>+ <Button type="submit" className="w-full" size="lg">+ Create account+ </Button></form>);}diff --git a/apps/dashboard/src/components/button-container.tsx b/apps/start/src/components/button-container.tsxsimilarity index 100%rename from apps/dashboard/src/components/button-container.tsxrename to apps/start/src/components/button-container.tsxdiff --git a/apps/dashboard/src/components/card.tsx b/apps/start/src/components/card.tsxsimilarity index 98%rename from apps/dashboard/src/components/card.tsxrename to apps/start/src/components/card.tsxindex baff698bf..b3099f8c9 100644--- a/apps/dashboard/src/components/card.tsx+++ b/apps/start/src/components/card.tsx@@ -1,5 +1,3 @@-'use client';-import {DropdownMenu,DropdownMenuContent,diff --git a/apps/dashboard/src/components/chart-ssr.tsx b/apps/start/src/components/chart-ssr.tsxsimilarity index 79%rename from apps/dashboard/src/components/chart-ssr.tsxrename to apps/start/src/components/chart-ssr.tsxindex 52bd51a76..d3bdc57ad 100644--- a/apps/dashboard/src/components/chart-ssr.tsx+++ b/apps/start/src/components/chart-ssr.tsx@@ -3,8 +3,10 @@ import * as d3 from 'd3';export function ChartSSR({data,dots = false,+ color = 'blue',}: {dots?: boolean;+ color?: 'blue' | 'green' | 'red';data: { value: number; date: Date }[];}) {if (data.length === 0) {@@ -40,6 +42,8 @@ export function ChartSSR({return null;}+ const gradientId = `gradient-${color}`;+return (<div className="relative h-full w-full">{/* Chart area */}@@ -51,23 +55,23 @@ export function ChartSSR({><defs><linearGradient- id={'gradient'}+ id={gradientId}x1="0"y1="0"x2="0"y2="100%"gradientUnits="userSpaceOnUse">- <stop offset="0%" stopColor={'blue'} stopOpacity={0.2} />- <stop offset="50%" stopColor={'blue'} stopOpacity={0.05} />- <stop offset="100%" stopColor={'blue'} stopOpacity={0} />+ <stop offset="0%" stopColor={color} stopOpacity={0.2} />+ <stop offset="50%" stopColor={color} stopOpacity={0.05} />+ <stop offset="100%" stopColor={color} stopOpacity={0} /></linearGradient></defs>{/* Gradient area */}{pathArea && (<pathd={pathArea}- fill={'url(#gradient)'}+ fill={`url(#${gradientId})`}vectorEffect="non-scaling-stroke"/>)}@@ -75,7 +79,13 @@ export function ChartSSR({<pathd={pathLine}fill="none"- className="text-highlight"+ className={+ color === 'green'+ ? 'text-green-600'+ : color === 'red'+ ? 'text-red-600'+ : 'text-highlight'+ }stroke="currentColor"strokeWidth="2"vectorEffect="non-scaling-stroke"diff --git a/apps/dashboard/src/components/charts/chart-tooltip.tsx b/apps/start/src/components/charts/chart-tooltip.tsxsimilarity index 100%rename from apps/dashboard/src/components/charts/chart-tooltip.tsxrename to apps/start/src/components/charts/chart-tooltip.tsxdiff --git a/apps/start/src/components/charts/common-bar.tsx b/apps/start/src/components/charts/common-bar.tsxnew file mode 100644index 000000000..5bb3bdb19--- /dev/null+++ b/apps/start/src/components/charts/common-bar.tsx@@ -0,0 +1,47 @@+import { Bar } from 'recharts';++type Options = {+ borderHeight: number;+ border: string;+ fill: string;+ active: { border: string; fill: string };+};++export const BarWithBorder = (options: Options) => {+ return (props: any) => {+ const { x, y, width, height, value, isActive } = props;++ return (+ <g>+ <rect+ x={x}+ y={y}+ width={width}+ height={height}+ stroke="none"+ fill={isActive ? options.active.fill : options.fill}+ />+ {value > 0 && (+ <rect+ x={x}+ y={y - options.borderHeight - 2}+ width={width}+ height={options.borderHeight}+ stroke="none"+ fill={isActive ? options.active.border : options.border}+ />+ )}+ </g>+ );+ };+};++export const BarShapeBlue = BarWithBorder({+ borderHeight: 2,+ border: 'rgba(59, 121, 255, 1)',+ fill: 'rgba(59, 121, 255, 0.3)',+ active: {+ border: 'rgba(59, 121, 255, 1)',+ fill: 'rgba(59, 121, 255, 0.4)',+ },+});diff --git a/apps/dashboard/src/components/chat/chat-form.tsx b/apps/start/src/components/chat/chat-form.tsxsimilarity index 100%rename from apps/dashboard/src/components/chat/chat-form.tsxrename to apps/start/src/components/chat/chat-form.tsxdiff --git a/apps/dashboard/src/components/chat/chat-message.tsx b/apps/start/src/components/chat/chat-message.tsxsimilarity index 100%rename from apps/dashboard/src/components/chat/chat-message.tsxrename to apps/start/src/components/chat/chat-message.tsxdiff --git a/apps/dashboard/src/components/chat/chat-messages.tsx b/apps/start/src/components/chat/chat-messages.tsxsimilarity index 92%rename from apps/dashboard/src/components/chat/chat-messages.tsxrename to apps/start/src/components/chat/chat-messages.tsxindex 24622372c..c4797e8f6 100644--- a/apps/dashboard/src/components/chat/chat-messages.tsx+++ b/apps/start/src/components/chat/chat-messages.tsx@@ -1,13 +1,9 @@import { useScrollAnchor } from '@/hooks/use-scroll-anchor';-import type { IServiceOrganization, Organization } from '@openpanel/db';import type { UIMessage } from 'ai';import { Loader2Icon } from 'lucide-react';import { useEffect } from 'react';import { ProjectLink } from '../links';-import { Markdown } from '../markdown';-import { Skeleton } from '../skeleton';import { Alert, AlertDescription, AlertTitle } from '../ui/alert';-import { Button, LinkButton } from '../ui/button';import { ScrollArea } from '../ui/scroll-area';import { ChatMessage } from './chat-message';diff --git a/apps/dashboard/src/components/chat/chat-report.tsx b/apps/start/src/components/chat/chat-report.tsxsimilarity index 99%rename from apps/dashboard/src/components/chat/chat-report.tsxrename to apps/start/src/components/chat/chat-report.tsxindex f958083a0..f8538ccda 100644--- a/apps/dashboard/src/components/chat/chat-report.tsx+++ b/apps/start/src/components/chat/chat-report.tsx@@ -1,5 +1,3 @@-'use client';-import { pushModal } from '@/modals';import type {IChartInputAi,diff --git a/apps/dashboard/src/components/chat/chat.tsx b/apps/start/src/components/chat/chat.tsxsimilarity index 88%rename from apps/dashboard/src/components/chat/chat.tsxrename to apps/start/src/components/chat/chat.tsxindex 06677e7d4..3aab01d1d 100644--- a/apps/dashboard/src/components/chat/chat.tsx+++ b/apps/start/src/components/chat/chat.tsx@@ -1,7 +1,6 @@-'use client';-import { ChatForm } from '@/components/chat/chat-form';import { ChatMessages } from '@/components/chat/chat-messages';+import { useAppContext } from '@/hooks/use-app-context';import { useChat } from '@ai-sdk/react';import type { IServiceOrganization } from '@openpanel/db';import type { UIMessage } from 'ai';@@ -25,13 +24,15 @@ export default function Chat({projectId: string;organization: IServiceOrganization;}) {+ const context = useAppContext();+const { messages, input, handleInputChange, handleSubmit, status, append } =useChat({onError(error) {const message = getErrorMessage(error);toast.error(message);},- api: `${process.env.NEXT_PUBLIC_API_URL}/ai/chat?projectId=${projectId}`,+ api: `${context.apiUrl}/ai/chat?projectId=${projectId}`,initialMessages: (initialMessages ?? []) as any,fetch: (url, options) => {return fetch(url, {@@ -42,10 +43,7 @@ export default function Chat({},});- const [debug, setDebug] = useQueryState(- 'debug',- parseAsBoolean.withDefault(false),- );+ const [debug] = useQueryState('debug', parseAsBoolean.withDefault(false));const isLimited = Boolean(messages.length > 5 &&(organization.isCanceled ||diff --git a/apps/dashboard/src/components/click-to-copy.tsx b/apps/start/src/components/click-to-copy.tsxsimilarity index 97%rename from apps/dashboard/src/components/click-to-copy.tsxrename to apps/start/src/components/click-to-copy.tsxindex f33ae5a07..0d912918f 100644--- a/apps/dashboard/src/components/click-to-copy.tsx+++ b/apps/start/src/components/click-to-copy.tsx@@ -1,5 +1,3 @@-'use client';-import { clipboard } from '@/utils/clipboard';import { toast } from 'sonner';diff --git a/apps/dashboard/src/components/clients/create-client-success.tsx b/apps/start/src/components/clients/create-client-success.tsxsimilarity index 95%rename from apps/dashboard/src/components/clients/create-client-success.tsxrename to apps/start/src/components/clients/create-client-success.tsxindex 902483ae7..63b6ed70f 100644--- a/apps/dashboard/src/components/clients/create-client-success.tsx+++ b/apps/start/src/components/clients/create-client-success.tsx@@ -1,8 +1,6 @@import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';import { RocketIcon } from 'lucide-react';-import type { IServiceClient } from '@openpanel/db';-import CopyInput from '../forms/copy-input';type Props = { id: string; secret: string };diff --git a/apps/start/src/components/clients/table/columns.tsx b/apps/start/src/components/clients/table/columns.tsxnew file mode 100644index 000000000..6a2c22d4a--- /dev/null+++ b/apps/start/src/components/clients/table/columns.tsx@@ -0,0 +1,91 @@+import { formatDateTime, formatTime } from '@/utils/date';+import type { ColumnDef } from '@tanstack/react-table';+import { isToday } from 'date-fns';++import CopyInput from '@/components/forms/copy-input';+import { createActionColumn } from '@/components/ui/data-table/data-table-helpers';+import { DropdownMenuItem } from '@/components/ui/dropdown-menu';+import { handleError, useTRPC } from '@/integrations/trpc/react';+import { pushModal, showConfirm } from '@/modals';+import type { RouterOutputs } from '@/trpc/client';+import { clipboard } from '@/utils/clipboard';+import { DropdownMenuSeparator } from '@radix-ui/react-dropdown-menu';+import { useMutation, useQueryClient } from '@tanstack/react-query';+import { toast } from 'sonner';++export function useColumns() {+ const columns: ColumnDef<RouterOutputs['client']['list'][number]>[] = [+ {+ accessorKey: 'name',+ header: 'Name',+ cell: ({ row }) => {+ return <div className="font-medium">{row.original.name}</div>;+ },+ },+ {+ accessorKey: 'id',+ header: 'Client ID',+ cell: ({ row }) => <CopyInput label={null} value={row.original.id} />,+ },+ {+ accessorKey: 'createdAt',+ header: 'Created at',+ cell({ row }) {+ const date = row.original.createdAt;+ return (+ <div>{isToday(date) ? formatTime(date) : formatDateTime(date)}</div>+ );+ },+ },+ createActionColumn(({ row }) => {+ const client = row.original;+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const deletion = useMutation(+ trpc.client.remove.mutationOptions({+ onSuccess() {+ toast('Success', {+ description:+ 'Client revoked, incoming requests will be rejected.',+ });+ queryClient.invalidateQueries(trpc.client.list.pathFilter());+ },+ onError: handleError,+ }),+ );+ return (+ <>+ <DropdownMenuItem onClick={() => clipboard(client.id)}>+ Copy client ID+ </DropdownMenuItem>+ <DropdownMenuItem+ onClick={() => {+ pushModal('EditClient', client);+ }}+ >+ Edit+ </DropdownMenuItem>+ <DropdownMenuSeparator />+ <DropdownMenuItem+ variant="destructive"+ onClick={() => {+ showConfirm({+ title: 'Revoke client',+ text: 'Are you sure you want to revoke this client? This action cannot be undone.',+ onConfirm() {+ deletion.mutate({+ id: client.id,+ });+ },+ });+ }}+ >+ Revoke+ </DropdownMenuItem>+ </>+ );+ }),+ ];++ return columns;+}diff --git a/apps/start/src/components/clients/table/index.tsx b/apps/start/src/components/clients/table/index.tsxnew file mode 100644index 000000000..8945fbcbc--- /dev/null+++ b/apps/start/src/components/clients/table/index.tsx@@ -0,0 +1,30 @@+import type { UseQueryResult } from '@tanstack/react-query';++import { DataTable } from '@/components/ui/data-table/data-table';+import { DataTableToolbar } from '@/components/ui/data-table/data-table-toolbar';+import { useTable } from '@/components/ui/data-table/use-table';+import type { RouterOutputs } from '@/trpc/client';+import { useColumns } from './columns';++type Props = {+ query: UseQueryResult<RouterOutputs['client']['list'], unknown>;+};++export const ClientsTable = ({ query }: Props) => {+ const columns = useColumns();+ const { data, isLoading } = query;++ const { table } = useTable({+ columns,+ data: data ?? [],+ loading: isLoading,+ pageSize: 50,+ });++ return (+ <>+ <DataTableToolbar table={table} />+ <DataTable table={table} loading={isLoading} />+ </>+ );+};diff --git a/apps/dashboard/src/components/color-square.tsx b/apps/start/src/components/color-square.tsxsimilarity index 100%rename from apps/dashboard/src/components/color-square.tsxrename to apps/start/src/components/color-square.tsxdiff --git a/apps/dashboard/src/components/dot.tsx b/apps/start/src/components/dot.tsxsimilarity index 100%rename from apps/dashboard/src/components/dot.tsxrename to apps/start/src/components/dot.tsxdiff --git a/apps/dashboard/src/components/events/event-icon.tsx b/apps/start/src/components/events/event-icon.tsxsimilarity index 100%rename from apps/dashboard/src/components/events/event-icon.tsxrename to apps/start/src/components/events/event-icon.tsxdiff --git a/apps/dashboard/src/components/events/event-list-item.tsx b/apps/start/src/components/events/event-list-item.tsxsimilarity index 76%rename from apps/dashboard/src/components/events/event-list-item.tsxrename to apps/start/src/components/events/event-list-item.tsxindex c2c8f450f..aef74defa 100644--- a/apps/dashboard/src/components/events/event-list-item.tsx+++ b/apps/start/src/components/events/event-list-item.tsx@@ -1,12 +1,10 @@-'use client';-import { Tooltiper } from '@/components/ui/tooltip';-import { useAppParams } from '@/hooks/useAppParams';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useAppParams } from '@/hooks/use-app-params';+import { useNumber } from '@/hooks/use-numer-formatter';import { pushModal } from '@/modals';import { cn } from '@/utils/cn';import { getProfileName } from '@/utils/getters';-import Link from 'next/link';+import { Link } from '@tanstack/react-router';import type { IServiceEvent, IServiceEventMinimal } from '@openpanel/db';@@ -85,17 +83,24 @@ export function EventListItem(props: EventListItemProps) {</div></div><div className="flex gap-4">- <Tooltiper asChild content={getProfileName(profile)}>- <Link- onClick={(e) => {- e.stopPropagation();- }}- href={`/${organizationId}/${projectId}/profiles/${profile?.id}`}- className="max-w-[80px] overflow-hidden text-ellipsis whitespace-nowrap text-muted-foreground hover:underline"- >- {getProfileName(profile)}- </Link>- </Tooltiper>+ {profile && (+ <Tooltiper asChild content={getProfileName(profile)}>+ <Link+ onClick={(e) => {+ e.stopPropagation();+ }}+ to={'/$organizationId/$projectId/profiles/$profileId'}+ params={{+ organizationId,+ projectId,+ profileId: profile.id,+ }}+ className="max-w-[80px] overflow-hidden text-ellipsis whitespace-nowrap text-muted-foreground hover:underline"+ >+ {getProfileName(profile)}+ </Link>+ </Tooltiper>+ )}<Tooltiper asChild content={createdAt.toLocaleString()}><div className=" text-muted-foreground">diff --git a/apps/dashboard/src/components/events/event-listener.tsx b/apps/start/src/components/events/event-listener.tsxsimilarity index 53%rename from apps/dashboard/src/components/events/event-listener.tsxrename to apps/start/src/components/events/event-listener.tsxindex 4c20bb9ed..de5e5ed9b 100644--- a/apps/dashboard/src/components/events/event-listener.tsx+++ b/apps/start/src/components/events/event-listener.tsx@@ -1,22 +1,15 @@-'use client';-import {Tooltip,TooltipContent,TooltipTrigger,} from '@/components/ui/tooltip';-import { useAppParams } from '@/hooks/useAppParams';-import { useDebounceState } from '@/hooks/useDebounceState';-import useWS from '@/hooks/useWS';+import { useAppParams } from '@/hooks/use-app-params';+import { useDebounceState } from '@/hooks/use-debounce-state';+import useWS from '@/hooks/use-ws';import { cn } from '@/utils/cn';-import dynamic from 'next/dynamic';import type { IServiceEventMinimal } from '@openpanel/db';--const AnimatedNumbers = dynamic(() => import('react-animated-numbers'), {- ssr: false,- loading: () => <div>0</div>,-});+import { AnimatedNumber } from '../animated-number';export default function EventListener({onRefresh,@@ -24,15 +17,22 @@ export default function EventListener({onRefresh: () => void;}) {const { projectId } = useAppParams();- const counter = useDebounceState(0, 1000, {- maxWait: 5000,- });+ const counter = useDebounceState(0, 1000);- useWS<IServiceEventMinimal>(`/live/events/${projectId}`, (event) => {- if (event?.name) {- counter.set((prev) => prev + 1);- }- });+ useWS<IServiceEventMinimal>(+ `/live/events/${projectId}`,+ (event) => {+ if (event?.name) {+ counter.set((prev) => prev + 1);+ }+ },+ {+ debounce: {+ delay: 1000,+ maxWait: 5000,+ },+ },+ );return (<Tooltip>@@ -43,7 +43,7 @@ export default function EventListener({counter.set(0);onRefresh();}}- className="flex h-8 items-center gap-2 rounded border border-border bg-card px-3 font-medium leading-none"+ className="flex h-8 items-center gap-2 rounded-md border border-border bg-card px-3 font-medium leading-none"><div className="relative"><div@@ -60,20 +60,7 @@ export default function EventListener({{counter.debounced === 0 ? ('Listening') : (- <>- <AnimatedNumbers- includeComma- transitions={(index) => ({- type: 'spring',- duration: index + 0.3,- damping: 10,- stiffness: 200,- })}- animateToNumber={counter.debounced}- locale="en"- />- new events- </>+ <AnimatedNumber value={counter.debounced} suffix=" new events" />)}</button></TooltipTrigger>diff --git a/apps/dashboard/src/components/events/list-properties-icon.tsx b/apps/start/src/components/events/list-properties-icon.tsxsimilarity index 100%rename from apps/dashboard/src/components/events/list-properties-icon.tsxrename to apps/start/src/components/events/list-properties-icon.tsxdiff --git a/apps/dashboard/src/components/events/table/columns.tsx b/apps/start/src/components/events/table/columns.tsxsimilarity index 89%rename from apps/dashboard/src/components/events/table/columns.tsxrename to apps/start/src/components/events/table/columns.tsxindex 7b26e2e17..ec7454f56 100644--- a/apps/dashboard/src/components/events/table/columns.tsx+++ b/apps/start/src/components/events/table/columns.tsx@@ -1,14 +1,13 @@import { EventIcon } from '@/components/events/event-icon';import { ProjectLink } from '@/components/links';import { SerieIcon } from '@/components/report-chart/common/serie-icon';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';import { pushModal } from '@/modals';import { formatDateTime, formatTime } from '@/utils/date';import { getProfileName } from '@/utils/getters';import type { ColumnDef } from '@tanstack/react-table';import { isToday } from 'date-fns';-import { ScrollArea } from '@/components/ui/scroll-area';import type { IServiceEvent } from '@openpanel/db';export function useColumns() {@@ -194,9 +193,6 @@ export function useColumns() {accessorKey: 'properties',header: 'Properties',size: 400,- meta: {- className: 'p-0 [&_pre]:p-4',- },cell({ row }) {const { properties } = row.original;const filteredProperties = Object.fromEntries(@@ -204,10 +200,19 @@ export function useColumns() {([key]) => !key.startsWith('__'),),);+ const items = Object.entries(filteredProperties);return (- <ScrollArea orientation="horizontal">- <pre>{JSON.stringify(filteredProperties)}</pre>- </ScrollArea>+ <div className="row flex-wrap gap-x-4 gap-y-1 overflow-hidden text-sm">+ {items.slice(0, 4).map(([key, value]) => (+ <div key={key} className="row items-center gap-1 min-w-0">+ <span className="text-muted-foreground">{key}</span>+ <span className="truncate font-medium">{String(value)}</span>+ </div>+ ))}+ {items.length > 5 && (+ <span className="truncate">{items.length - 5} more</span>+ )}+ </div>);},},diff --git a/apps/start/src/components/events/table/index.tsx b/apps/start/src/components/events/table/index.tsxnew file mode 100644index 000000000..bb0b88aed--- /dev/null+++ b/apps/start/src/components/events/table/index.tsx@@ -0,0 +1,298 @@+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from '@/components/ui/command';+import {+ Popover,+ PopoverContent,+ PopoverPortal,+ PopoverTrigger,+} from '@/components/ui/popover';+import { Check, ChevronsUpDown, Settings2Icon } from 'lucide-react';++import { FullPageEmptyState } from '@/components/full-page-empty-state';+import { OverviewFiltersButtons } from '@/components/overview/filters/overview-filters-buttons';+import { OverviewFiltersDrawer } from '@/components/overview/filters/overview-filters-drawer';+import { Button } from '@/components/ui/button';+import { DataTableToolbarContainer } from '@/components/ui/data-table/data-table-toolbar';+import { useAppParams } from '@/hooks/use-app-params';+import { pushModal } from '@/modals';+import type { RouterInputs, RouterOutputs } from '@/trpc/client';+import { arePropsEqual } from '@/utils/are-props-equal';+import { cn } from '@/utils/cn';+import type { UseInfiniteQueryResult } from '@tanstack/react-query';+import { useWindowVirtualizer } from '@tanstack/react-virtual';+import type { TRPCInfiniteData } from '@trpc/tanstack-react-query';+import { format } from 'date-fns';+import throttle from 'lodash.throttle';+import { CalendarIcon, Loader2Icon } from 'lucide-react';+import { parseAsIsoDateTime, useQueryState } from 'nuqs';+import { last } from 'ramda';+import { memo, useEffect, useRef, useState } from 'react';+import { useInViewport } from 'react-in-viewport';+import { useLocalStorage } from 'usehooks-ts';+import EventListener from '../event-listener';+import { EventItem, EventItemSkeleton } from './item';++export const useEventsViewOptions = () => {+ return useLocalStorage<Record<string, boolean | undefined>>(+ '@op:events-table-view-options',+ {+ properties: false,+ },+ );+};++type Props = {+ query: UseInfiniteQueryResult<+ TRPCInfiniteData<+ RouterInputs['event']['events'],+ RouterOutputs['event']['events']+ >,+ unknown+ >;+};++export const EventsTable = memo(+ ({ query }: Props) => {+ const [viewOptions] = useEventsViewOptions();+ const { isLoading } = query;+ const parentRef = useRef<HTMLDivElement>(null);+ const [scrollMargin, setScrollMargin] = useState(0);+ const inViewportRef = useRef<HTMLDivElement>(null);+ const { inViewport, enterCount } = useInViewport(inViewportRef, undefined, {+ disconnectOnLeave: true,+ });++ const data = query.data?.pages?.flatMap((p) => p.data) ?? [];++ const virtualizer = useWindowVirtualizer({+ count: data.length,+ estimateSize: () => 55,+ scrollMargin,+ overscan: 10,+ });++ useEffect(() => {+ const updateScrollMargin = throttle(() => {+ if (parentRef.current) {+ setScrollMargin(+ parentRef.current.getBoundingClientRect().top + window.scrollY,+ );+ }+ }, 500);++ // Initial calculation+ updateScrollMargin();++ // Listen for resize events+ window.addEventListener('resize', updateScrollMargin);++ return () => {+ window.removeEventListener('resize', updateScrollMargin);+ };+ }, []);++ useEffect(() => {+ virtualizer.measure();+ }, [viewOptions, virtualizer]);++ const hasNextPage = last(query.data?.pages ?? [])?.meta.next;++ useEffect(() => {+ if (+ hasNextPage &&+ data.length > 0 &&+ inViewport &&+ enterCount > 0 &&+ query.isFetchingNextPage === false+ ) {+ query.fetchNextPage();+ }+ }, [inViewport, enterCount, hasNextPage]);++ const visibleItems = virtualizer.getVirtualItems();++ return (+ <>+ <EventsTableToolbar query={query} />+ <div ref={parentRef} className="w-full">+ {isLoading && (+ <div className="w-full gap-2 col">+ <EventItemSkeleton />+ <EventItemSkeleton />+ <EventItemSkeleton />+ <EventItemSkeleton />+ <EventItemSkeleton />+ <EventItemSkeleton />+ </div>+ )}+ {!isLoading && data.length === 0 && (+ <FullPageEmptyState+ title="No events"+ description={"Start sending events and you'll see them here"}+ />+ )}+ <div+ style={{+ height: `${virtualizer.getTotalSize()}px`,+ width: '100%',+ position: 'relative',+ }}+ >+ {visibleItems.map((virtualRow) => (+ <div+ key={virtualRow.index}+ data-index={virtualRow.index}+ ref={virtualizer.measureElement}+ style={{+ position: 'absolute',+ top: 0,+ left: 0,+ width: '100%',+ transform: `translateY(${+ virtualRow.start - virtualizer.options.scrollMargin+ }px)`,+ paddingBottom: '8px', // Gap between items+ }}+ >+ <EventItem+ event={data[virtualRow.index]!}+ viewOptions={viewOptions}+ />+ </div>+ ))}+ </div>+ </div>+ <div className="w-full h-10 center-center pt-4" ref={inViewportRef}>+ <div+ className={cn(+ 'size-8 bg-background rounded-full center-center border opacity-0 transition-opacity',+ query.isFetchingNextPage && 'opacity-100',+ )}+ >+ <Loader2Icon className="size-4 animate-spin" />+ </div>+ </div>+ </>+ );+ },+ arePropsEqual(['query.isLoading', 'query.data', 'query.isFetchingNextPage']),+);++function EventsTableToolbar({+ query,+}: {+ query: Props['query'];+}) {+ const { projectId } = useAppParams();+ const [startDate, setStartDate] = useQueryState(+ 'startDate',+ parseAsIsoDateTime,+ );+ const [endDate, setEndDate] = useQueryState('endDate', parseAsIsoDateTime);+ return (+ <DataTableToolbarContainer>+ <div className="flex flex-1 flex-wrap items-center gap-2">+ <EventListener onRefresh={() => query.refetch()} />+ <Button+ variant="outline"+ size="sm"+ icon={CalendarIcon}+ onClick={() => {+ pushModal('DateRangerPicker', {+ onChange: ({ startDate, endDate }) => {+ setStartDate(startDate);+ setEndDate(endDate);+ },+ startDate: startDate || undefined,+ endDate: endDate || undefined,+ });+ }}+ >+ {startDate && endDate+ ? `${format(startDate, 'MMM d')} - ${format(endDate, 'MMM d')}`+ : 'Date range'}+ </Button>+ <OverviewFiltersDrawer+ mode="events"+ projectId={projectId}+ enableEventsFilter+ />+ <OverviewFiltersButtons className="justify-end p-0" />+ </div>+ <EventsViewOptions />+ </DataTableToolbarContainer>+ );+}++export function EventsViewOptions() {+ const [viewOptions, setViewOptions] = useEventsViewOptions();+ const columns = {+ origin: 'Show origin',+ queryString: 'Show query string',+ referrer: 'Referrer',+ country: 'Country',+ os: 'OS',+ browser: 'Browser',+ profileId: 'Profile',+ createdAt: 'Created at',+ properties: 'Properties',+ };++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button+ aria-label="Toggle columns"+ role="combobox"+ variant="outline"+ size="sm"+ className="ml-auto hidden h-8 lg:flex"+ >+ <Settings2Icon className="size-4 mr-2" />+ View+ <ChevronsUpDown className="opacity-50 ml-2 size-4" />+ </Button>+ </PopoverTrigger>+ <PopoverPortal>+ <PopoverContent align="end" className="w-44 p-0">+ <Command>+ <CommandInput placeholder="Search columns..." />+ <CommandList>+ <CommandEmpty>No columns found.</CommandEmpty>+ <CommandGroup>+ {Object.entries(columns).map(([column, label]) => (+ <CommandItem+ key={column}+ onSelect={() =>+ setViewOptions({+ ...viewOptions,+ // biome-ignore lint/complexity/noUselessTernary: we need this this viewOptions[column] can be undefined+ [column]: viewOptions[column] === false ? true : false,+ })+ }+ >+ <span className="truncate">{label}</span>+ <Check+ className={cn(+ 'ml-auto size-4 shrink-0',+ viewOptions[column] !== false+ ? 'opacity-100'+ : 'opacity-0',+ )}+ />+ </CommandItem>+ ))}+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </PopoverPortal>+ </Popover>+ );+}diff --git a/apps/start/src/components/events/table/item.tsx b/apps/start/src/components/events/table/item.tsxnew file mode 100644index 000000000..e9a788167--- /dev/null+++ b/apps/start/src/components/events/table/item.tsx@@ -0,0 +1,178 @@+import { ProfileAvatar } from '@/components/profiles/profile-avatar';+import { SerieIcon } from '@/components/report-chart/common/serie-icon';+import { pushModal } from '@/modals';+import { cn } from '@/utils/cn';+import { formatTimeAgoOrDateTime } from '@/utils/date';+import { getProfileName } from '@/utils/getters';+import type { IServiceEvent } from '@openpanel/db';+import { memo } from 'react';+import { Skeleton } from '../../skeleton';+import { EventIcon } from '../event-icon';++interface EventItemProps {+ event: IServiceEvent | Record<string, never>;+ viewOptions: Record<string, boolean | undefined>;+ className?: string;+}++export const EventItem = memo<EventItemProps>(+ ({ event, viewOptions, className }) => {+ let url: string | null = '';+ if (event.path && event.origin) {+ if (viewOptions.origin !== false && event.origin) {+ url += event.origin;+ }+ url += event.path;+ const query = Object.entries(event.properties || {})+ .filter(([key]) => key.startsWith('__query'))+ .map(([key, value]) => [key.replace('__query.', ''), value]);+ if (viewOptions.queryString !== false && query.length) {+ query.forEach(([key, value], index) => {+ url += `${index === 0 ? '?' : '&'}${key}=${value}`;+ });+ }+ }++ return (+ <div className={cn('group card @container overflow-hidden', className)}>+ <div+ onClick={() => {+ pushModal('EventDetails', {+ id: event.id,+ projectId: event.projectId,+ createdAt: event.createdAt,+ });+ }}+ onKeyDown={(e) => {+ if (e.key === 'Enter') {+ pushModal('EventDetails', {+ id: event.id,+ projectId: event.projectId,+ createdAt: event.createdAt,+ });+ }+ }}+ data-slot="inner"+ className={cn(+ 'col gap-2 flex-1 p-2',+ // Desktop+ '@lg:row @lg:items-center',+ 'cursor-pointer',+ event.meta?.color+ ? `hover:bg-${event.meta.color}-50 dark:hover:bg-${event.meta.color}-900`+ : 'hover:bg-def-200',+ )}+ >+ <div className="min-w-0 flex-1 row items-center gap-4">+ <button+ type="button"+ className="transition-transform hover:scale-105"+ onClick={(e) => {+ e.stopPropagation();+ e.preventDefault();+ pushModal('EditEvent', {+ id: event.id,+ });+ }}+ >+ <EventIcon name={event.name} size="sm" meta={event.meta} />+ </button>+ <span className="min-w-0 whitespace-break-spaces wrap-break-word break-all">+ {event.name === 'screen_view' ? (+ <>+ <span className="text-muted-foreground mr-2">Visit:</span>+ <span className="font-medium min-w-0">+ {url ? url : event.path}+ </span>+ </>+ ) : (+ <>+ <span className="text-muted-foreground mr-2">Event:</span>+ <span className="font-medium">{event.name}</span>+ </>+ )}+ </span>+ </div>+ <div className="row gap-2 items-center @max-lg:pl-10">+ {event.referrerName && viewOptions.referrerName !== false && (+ <Pill+ icon={<SerieIcon className="mr-2" name={event.referrerName} />}+ >+ <span>{event.referrerName}</span>+ </Pill>+ )}+ {event.os && viewOptions.os !== false && (+ <Pill icon={<SerieIcon name={event.os} />}>{event.os}</Pill>+ )}+ {event.browser && viewOptions.browser !== false && (+ <Pill icon={<SerieIcon name={event.browser} />}>+ {event.browser}+ </Pill>+ )}+ {event.country && viewOptions.country !== false && (+ <Pill icon={<SerieIcon name={event.country} />}>+ {event.country}+ </Pill>+ )}+ {viewOptions.profileId !== false && (+ <Pill+ className="@max-xl:ml-auto @max-lg:[&>span]:inline mx-4"+ icon={<ProfileAvatar size="xs" {...event.profile} />}+ >+ {getProfileName(event.profile)}+ </Pill>+ )}+ {viewOptions.createdAt !== false && (+ <span className="text-sm text-neutral-500">+ {formatTimeAgoOrDateTime(event.createdAt)}+ </span>+ )}+ </div>+ </div>+ {viewOptions.properties !== false && (+ <div+ data-slot="extra"+ className="border-t border-neutral-200 p-4 py-2 bg-def-100"+ >+ <pre className="text-sm leading-tight">+ {JSON.stringify(event.properties, null, 2)}+ </pre>+ </div>+ )}+ </div>+ );+ },+);++export const EventItemSkeleton = () => {+ return (+ <div className="card h-10 p-2 gap-4 row items-center">+ <Skeleton className="size-6 rounded-full" />+ <Skeleton className="w-1/2 h-3" />+ <div className="row gap-2 ml-auto">+ <Skeleton className="size-4 rounded-full" />+ <Skeleton className="size-4 rounded-full" />+ <Skeleton className="size-4 rounded-full" />+ <Skeleton className="size-4 w-14" />+ </div>+ </div>+ );+};++function Pill({+ children,+ icon,+ className,+}: { children: React.ReactNode; icon?: React.ReactNode; className?: string }) {+ return (+ <div+ className={cn(+ 'shrink-0 whitespace-nowrap inline-flex gap-2 items-center rounded-full @3xl:text-muted-foreground h-6 text-xs font-mono',+ className,+ )}+ >+ {icon && <div className="size-4 center-center">{icon}</div>}+ <div className="hidden @3xl:inline">{children}</div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/fade-in.tsx b/apps/start/src/components/fade-in.tsxsimilarity index 97%rename from apps/dashboard/src/components/fade-in.tsxrename to apps/start/src/components/fade-in.tsxindex d273a1c6f..a5d1c1fb0 100644--- a/apps/dashboard/src/components/fade-in.tsx+++ b/apps/start/src/components/fade-in.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import { useEffect, useRef } from 'react';diff --git a/apps/start/src/components/feedback-button.tsx b/apps/start/src/components/feedback-button.tsxnew file mode 100644index 000000000..97a1a0514--- /dev/null+++ b/apps/start/src/components/feedback-button.tsx@@ -0,0 +1,27 @@+import { op } from '@/utils/op';+import { useLocation, useRouteContext } from '@tanstack/react-router';+import { SparklesIcon } from 'lucide-react';+import { Button } from './ui/button';++export function FeedbackButton() {+ const context = useRouteContext({ strict: false });+ return (+ <Button+ variant={'outline'}+ className="w-full text-left justify-start [&_svg]:mx-2"+ icon={SparklesIcon}+ onClick={() => {+ op.track('feedback_button_clicked');+ if ('uj' in window) {+ (window.uj as any).identify({+ id: context.session?.userId,+ firstName: context.session?.user?.firstName,+ });+ (window.uj as any).showWidget();+ }+ }}+ >+ Give feedback+ </Button>+ );+}diff --git a/apps/dashboard/src/components/forms/checkbox-item.tsx b/apps/start/src/components/forms/checkbox-item.tsxsimilarity index 100%rename from apps/dashboard/src/components/forms/checkbox-item.tsxrename to apps/start/src/components/forms/checkbox-item.tsxdiff --git a/apps/dashboard/src/components/forms/copy-input.tsx b/apps/start/src/components/forms/copy-input.tsxsimilarity index 93%rename from apps/dashboard/src/components/forms/copy-input.tsxrename to apps/start/src/components/forms/copy-input.tsxindex eea8147a9..f21413cf4 100644--- a/apps/dashboard/src/components/forms/copy-input.tsx+++ b/apps/start/src/components/forms/copy-input.tsx@@ -18,7 +18,7 @@ const CopyInput = ({ label, value, className }: Props) => {onClick={() => clipboard(value)}>{!!label && <Label>{label}</Label>}- <div className="font-mono flex items-center justify-between rounded border-input bg-card p-2 px-3 ">+ <div className="font-mono flex items-center justify-between rounded bg-muted p-2 px-3 ">{value}<CopyIcon size={16} /></div>diff --git a/apps/dashboard/src/components/forms/input-with-label.tsx b/apps/start/src/components/forms/input-with-label.tsxsimilarity index 100%rename from apps/dashboard/src/components/forms/input-with-label.tsxrename to apps/start/src/components/forms/input-with-label.tsxdiff --git a/apps/dashboard/src/components/forms/tag-input.tsx b/apps/start/src/components/forms/tag-input.tsxsimilarity index 99%rename from apps/dashboard/src/components/forms/tag-input.tsxrename to apps/start/src/components/forms/tag-input.tsxindex 4fe218d02..3a99455da 100644--- a/apps/dashboard/src/components/forms/tag-input.tsx+++ b/apps/start/src/components/forms/tag-input.tsx@@ -102,7 +102,7 @@ const TagInput = ({<divref={scope}className={cn(- 'inline-flex w-full flex-wrap items-center gap-2 rounded-md border border-input p-1 px-3 ring-offset-background has-[input:focus]:ring-2 has-[input:focus]:ring-ring has-[input:focus]:ring-offset-1',+ 'inline-flex w-full flex-wrap items-center gap-2 rounded-md border border-input p-1 px-3 ring-offset-background has-[input:focus]:ring-2 has-[input:focus]:ring-ring has-[input:focus]:ring-offset-1 bg-card',!!error && 'border-destructive',)}>diff --git a/apps/dashboard/src/components/full-page-empty-state.tsx b/apps/start/src/components/full-page-empty-state.tsxsimilarity index 83%rename from apps/dashboard/src/components/full-page-empty-state.tsxrename to apps/start/src/components/full-page-empty-state.tsxindex e0f70426a..846a2fcd3 100644--- a/apps/dashboard/src/components/full-page-empty-state.tsx+++ b/apps/start/src/components/full-page-empty-state.tsx@@ -1,10 +1,12 @@import { cn } from '@/utils/cn';import { BoxSelectIcon } from 'lucide-react';import type { LucideIcon } from 'lucide-react';+import { PageHeader } from './page-header';interface FullPageEmptyStateProps {icon?: LucideIcon;title: string;+ description?: string;children?: React.ReactNode;className?: string;}@@ -12,6 +14,7 @@ interface FullPageEmptyStateProps {export function FullPageEmptyState({icon: Icon = BoxSelectIcon,title,+ description,children,className,}: FullPageEmptyStateProps) {@@ -27,7 +30,7 @@ export function FullPageEmptyState({<Icon size={60} strokeWidth={1} /></div>- <h1 className="mb-1 text-xl font-medium">{title}</h1>+ <PageHeader title={title} description={description} className="mb-4" />{children}</div>diff --git a/apps/start/src/components/full-page-error-state.tsx b/apps/start/src/components/full-page-error-state.tsxnew file mode 100644index 000000000..c04c8ba55--- /dev/null+++ b/apps/start/src/components/full-page-error-state.tsx@@ -0,0 +1,20 @@+import { ServerCrashIcon } from 'lucide-react';++import { FullPageEmptyState } from './full-page-empty-state';++export const FullPageErrorState = ({+ title = 'Error...',+ description = 'Something went wrong...',+ children,+}: { title?: string; description?: string; children?: React.ReactNode }) => {+ return (+ <FullPageEmptyState+ className="min-h-[calc(100vh-theme(spacing.16))]"+ title={title}+ icon={ServerCrashIcon}+ >+ {description}+ {children && <div className="mt-4">{children}</div>}+ </FullPageEmptyState>+ );+};diff --git a/apps/dashboard/src/components/full-page-loading-state.tsx b/apps/start/src/components/full-page-loading-state.tsxsimilarity index 68%rename from apps/dashboard/src/components/full-page-loading-state.tsxrename to apps/start/src/components/full-page-loading-state.tsxindex dcd3c8bbe..2e1ecb58a 100644--- a/apps/dashboard/src/components/full-page-loading-state.tsx+++ b/apps/start/src/components/full-page-loading-state.tsx@@ -3,18 +3,21 @@ import { Loader2Icon } from 'lucide-react';import { FullPageEmptyState } from './full-page-empty-state';-const FullPageLoadingState = () => {+const FullPageLoadingState = ({+ title = 'Fetching...',+ description = 'Please wait while we fetch your data...',+}: { title?: string; description?: string }) => {return (<FullPageEmptyStateclassName="min-h-[calc(100vh-theme(spacing.16))]"- title="Fetching..."+ title={title}icon={((props) => (<Loader2Icon {...props} className="animate-spin" />)) as LucideIcon}>- Wait a moment while we fetch your dashboards+ {description}</FullPageEmptyState>);};diff --git a/apps/dashboard/src/components/full-width-navbar.tsx b/apps/start/src/components/full-width-navbar.tsxsimilarity index 89%rename from apps/dashboard/src/components/full-width-navbar.tsxrename to apps/start/src/components/full-width-navbar.tsxindex 493c79ef7..44edbae39 100644--- a/apps/dashboard/src/components/full-width-navbar.tsx+++ b/apps/start/src/components/full-width-navbar.tsx@@ -1,8 +1,6 @@-'use client';-import { cn } from '@/utils/cn';-import { Logo, LogoSquare } from './logo';+import { LogoSquare } from './logo';type Props = {children: React.ReactNode;diff --git a/apps/dashboard/src/components/fullscreen-toggle.tsx b/apps/start/src/components/fullscreen-toggle.tsxsimilarity index 95%rename from apps/dashboard/src/components/fullscreen-toggle.tsxrename to apps/start/src/components/fullscreen-toggle.tsxindex 929b7506a..b5674645c 100644--- a/apps/dashboard/src/components/fullscreen-toggle.tsx+++ b/apps/start/src/components/fullscreen-toggle.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import { bind } from 'bind-event-listener';import { ChevronLeftIcon, FullscreenIcon } from 'lucide-react';@@ -28,7 +26,9 @@ export const Fullscreen = (props: Props) => {return (<divclassName={cn(- isFullscreen && 'fixed inset-0 z-50 overflow-auto bg-def-200',+ isFullscreen+ ? 'fixed inset-0 z-50 overflow-auto bg-def-200'+ : 'w-full min-h-full col',)}>{props.children}diff --git a/apps/dashboard/src/components/grid-table.tsx b/apps/start/src/components/grid-table.tsxsimilarity index 100%rename from apps/dashboard/src/components/grid-table.tsxrename to apps/start/src/components/grid-table.tsxdiff --git a/apps/dashboard/src/components/integrations/active-integrations.tsx b/apps/start/src/components/integrations/active-integrations.tsxsimilarity index 85%rename from apps/dashboard/src/components/integrations/active-integrations.tsxrename to apps/start/src/components/integrations/active-integrations.tsxindex 6dd748392..f4db1f9f4 100644--- a/apps/dashboard/src/components/integrations/active-integrations.tsx+++ b/apps/start/src/components/integrations/active-integrations.tsx@@ -1,10 +1,8 @@-'use client';--import { useAppParams } from '@/hooks/useAppParams';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';import { pushModal, showConfirm } from '@/modals';-import { api } from '@/trpc/client';-import { useQueryClient } from '@tanstack/react-query';-import { getQueryKey } from '@trpc/react-query';+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';+import { AnimatePresence, motion } from 'framer-motion';import { BoxSelectIcon } from 'lucide-react';import { useMemo } from 'react';@@ -20,19 +18,24 @@ import { INTEGRATIONS } from './integrations';export function ActiveIntegrations() {const { organizationId } = useAppParams();- const query = api.integration.list.useQuery({- organizationId,- });+ const trpc = useTRPC();+ const query = useQuery(+ trpc.integration.list.queryOptions({+ organizationId: organizationId!,+ }),+ );const client = useQueryClient();- const deletion = api.integration.delete.useMutation({- onSuccess() {- client.refetchQueries(- getQueryKey(api.integration.list, {- organizationId,- }),- );- },- });+ const deletion = useMutation(+ trpc.integration.delete.mutationOptions({+ onSuccess() {+ client.refetchQueries(+ trpc.integration.list.queryFilter({+ organizationId,+ }),+ );+ },+ }),+ );const data = useMemo(() => {return (query.data || [])diff --git a/apps/dashboard/src/components/integrations/all-integrations.tsx b/apps/start/src/components/integrations/all-integrations.tsxsimilarity index 93%rename from apps/dashboard/src/components/integrations/all-integrations.tsxrename to apps/start/src/components/integrations/all-integrations.tsxindex 713c54322..b0db0cab0 100644--- a/apps/dashboard/src/components/integrations/all-integrations.tsx+++ b/apps/start/src/components/integrations/all-integrations.tsx@@ -1,8 +1,6 @@-'use client';-import { Button } from '@/components/ui/button';import { pushModal } from '@/modals';-import { PlugIcon, WebhookIcon } from 'lucide-react';+import { PlugIcon } from 'lucide-react';import { IntegrationCard, IntegrationCardFooter } from './integration-card';import { INTEGRATIONS } from './integrations';diff --git a/apps/dashboard/src/components/integrations/forms/discord-integration.tsx b/apps/start/src/components/integrations/forms/discord-integration.tsxsimilarity index 84%rename from apps/dashboard/src/components/integrations/forms/discord-integration.tsxrename to apps/start/src/components/integrations/forms/discord-integration.tsxindex 9e8740203..965bac973 100644--- a/apps/dashboard/src/components/integrations/forms/discord-integration.tsx+++ b/apps/start/src/components/integrations/forms/discord-integration.tsx@@ -1,10 +1,12 @@import { InputWithLabel } from '@/components/forms/input-with-label';import { Button } from '@/components/ui/button';-import { useAppParams } from '@/hooks/useAppParams';-import { type RouterOutputs, api } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import type { RouterOutputs } from '@/trpc/client';import { zodResolver } from '@hookform/resolvers/zod';import { sendTestDiscordNotification } from '@openpanel/integrations/src/discord';import { zCreateDiscordIntegration } from '@openpanel/validation';+import { useMutation } from '@tanstack/react-query';import { path, mergeDeepRight } from 'ramda';import { useForm } from 'react-hook-form';import { toast } from 'sonner';@@ -36,12 +38,15 @@ export function DiscordIntegrationForm({),resolver: zodResolver(zCreateDiscordIntegration),});- const mutation = api.integration.createOrUpdate.useMutation({- onSuccess,- onError() {- toast.error('Failed to create integration');- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.integration.createOrUpdate.mutationOptions({+ onSuccess,+ onError() {+ toast.error('Failed to create integration');+ },+ }),+ );const handleSubmit = (values: IForm) => {mutation.mutate(values);diff --git a/apps/dashboard/src/components/integrations/forms/slack-integration.tsx b/apps/start/src/components/integrations/forms/slack-integration.tsxsimilarity index 71%rename from apps/dashboard/src/components/integrations/forms/slack-integration.tsxrename to apps/start/src/components/integrations/forms/slack-integration.tsxindex 76f064176..adac8e177 100644--- a/apps/dashboard/src/components/integrations/forms/slack-integration.tsx+++ b/apps/start/src/components/integrations/forms/slack-integration.tsx@@ -1,11 +1,11 @@import { InputWithLabel } from '@/components/forms/input-with-label';import { Button } from '@/components/ui/button';-import { useAppParams } from '@/hooks/useAppParams';-import useWS from '@/hooks/useWS';-import { type RouterOutputs, api } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import type { RouterOutputs } from '@/trpc/client';import { zodResolver } from '@hookform/resolvers/zod';import { zCreateSlackIntegration } from '@openpanel/validation';-import { useRef } from 'react';+import { useMutation } from '@tanstack/react-query';import { useForm } from 'react-hook-form';import { toast } from 'sonner';import type { z } from 'zod';@@ -30,14 +30,18 @@ export function SlackIntegrationForm({},resolver: zodResolver(zCreateSlackIntegration),});- const mutation = api.integration.createOrUpdateSlack.useMutation({- async onSuccess(res) {- window.location.href = res.slackInstallUrl;- },- onError() {- toast.error('Failed to create integration');- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.integration.createOrUpdateSlack.mutationOptions({+ async onSuccess(res) {+ window.location.href = res.slackInstallUrl;+ onSuccess();+ },+ onError() {+ toast.error('Failed to create integration');+ },+ }),+ );const handleSubmit = (values: IForm) => {mutation.mutate(values);diff --git a/apps/dashboard/src/components/integrations/forms/webhook-integration.tsx b/apps/start/src/components/integrations/forms/webhook-integration.tsxsimilarity index 79%rename from apps/dashboard/src/components/integrations/forms/webhook-integration.tsxrename to apps/start/src/components/integrations/forms/webhook-integration.tsxindex 7eb020749..0d3053d10 100644--- a/apps/dashboard/src/components/integrations/forms/webhook-integration.tsx+++ b/apps/start/src/components/integrations/forms/webhook-integration.tsx@@ -1,11 +1,11 @@import { InputWithLabel } from '@/components/forms/input-with-label';import { Button } from '@/components/ui/button';-import { useAppParams } from '@/hooks/useAppParams';-import { popModal } from '@/modals';-import { type RouterOutputs, api } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import type { RouterOutputs } from '@/trpc/client';import { zodResolver } from '@hookform/resolvers/zod';import { zCreateWebhookIntegration } from '@openpanel/validation';-import { useQueryClient } from '@tanstack/react-query';+import { useMutation } from '@tanstack/react-query';import { path, mergeDeepRight } from 'ramda';import { useForm } from 'react-hook-form';import { toast } from 'sonner';@@ -37,13 +37,15 @@ export function WebhookIntegrationForm({),resolver: zodResolver(zCreateWebhookIntegration),});- const client = useQueryClient();- const mutation = api.integration.createOrUpdate.useMutation({- onSuccess,- onError() {- toast.error('Failed to create integration');- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.integration.createOrUpdate.mutationOptions({+ onSuccess,+ onError() {+ toast.error('Failed to create integration');+ },+ }),+ );const handleSubmit = (values: IForm) => {mutation.mutate(values);diff --git a/apps/dashboard/src/components/integrations/integration-card.tsx b/apps/start/src/components/integrations/integration-card.tsxsimilarity index 100%rename from apps/dashboard/src/components/integrations/integration-card.tsxrename to apps/start/src/components/integrations/integration-card.tsxdiff --git a/apps/dashboard/src/components/integrations/integrations.tsx b/apps/start/src/components/integrations/integrations.tsxsimilarity index 100%rename from apps/dashboard/src/components/integrations/integrations.tsxrename to apps/start/src/components/integrations/integrations.tsxdiff --git a/apps/start/src/components/lazy-component.tsx b/apps/start/src/components/lazy-component.tsxnew file mode 100644index 000000000..a10501282--- /dev/null+++ b/apps/start/src/components/lazy-component.tsx@@ -0,0 +1,79 @@+import { type ReactNode, type RefObject, useEffect, useRef } from 'react';+import { useInViewport } from 'react-in-viewport';++export interface LazyComponentProps {+ /**+ * Whether to enable lazy loading. If false, component renders immediately.+ * @default true+ */+ lazy?: boolean;++ /**+ * Content to render when the component is in viewport (or immediately if lazy=false)+ */+ children: ReactNode;++ /**+ * Optional loading placeholder to show while waiting for viewport intersection+ */+ fallback?: ReactNode;++ /**+ * Additional className for the wrapper div+ */+ className?: string;++ /**+ * Custom viewport options for intersection observer+ */+ viewportOptions?: {+ rootMargin?: string;+ threshold?: number | number[];+ };++ /**+ * Whether to disconnect the intersection observer after first load+ * @default true+ */+ disconnectOnLeave?: boolean;+}++/**+ * A reusable lazy loading component that renders its children only when+ * they come into the viewport (or immediately if lazy=false).+ *+ * Uses intersection observer under the hood for efficient viewport detection.+ */+export const LazyComponent = ({+ lazy = true,+ children,+ fallback = null,+ className,+ viewportOptions,+ disconnectOnLeave = true,+}: LazyComponentProps) => {+ const ref = useRef<HTMLDivElement>(null);+ const once = useRef(false);++ const { inViewport } = useInViewport(+ ref as RefObject<HTMLElement>,+ viewportOptions,+ {+ disconnectOnLeave,+ },+ );++ useEffect(() => {+ if (inViewport) {+ once.current = true;+ }+ }, [inViewport]);++ const shouldRender = lazy ? once.current || inViewport : true;++ return (+ <div ref={ref} className={className}>+ {shouldRender ? children : (fallback ?? <div />)}+ </div>+ );+};diff --git a/apps/start/src/components/links.tsx b/apps/start/src/components/links.tsxnew file mode 100644index 000000000..7636d0a03--- /dev/null+++ b/apps/start/src/components/links.tsx@@ -0,0 +1,36 @@+import { useAppParams } from '@/hooks/use-app-params';+import { Link, type LinkComponentProps } from '@tanstack/react-router';+import { omit } from 'ramda';++export function ProjectLink({+ children,+ ...props+}: LinkComponentProps & {+ children: React.ReactNode;+ className?: string;+ title?: string;+ exact?: boolean;+}) {+ const { organizationId, projectId } = useAppParams();+ if (typeof props.href === 'string') {+ return (+ <Link+ to={+ `/$organizationId/$projectId/${props.href.replace(/^\//, '')}` as any+ }+ activeOptions={{ exact: props.exact ?? true }}+ params={+ {+ organizationId,+ projectId,+ } as any+ }+ {...omit(['href'], props)}+ >+ {children}+ </Link>+ );+ }++ return <p>ProjectLink</p>;+}diff --git a/apps/start/src/components/login-left-panel.tsx b/apps/start/src/components/login-left-panel.tsxnew file mode 100644index 000000000..84bbd0b61--- /dev/null+++ b/apps/start/src/components/login-left-panel.tsx@@ -0,0 +1,104 @@+import { LogoSquare } from '@/components/logo';+import {+ Carousel,+ CarouselContent,+ CarouselItem,+ CarouselNext,+ CarouselPrevious,+} from '@/components/ui/carousel';+import { SellingPoint } from './selling-points';++const sellingPoints = [+ {+ key: 'welcome',+ render: () => (+ <SellingPoint+ bgImage="/img-1.png"+ title="Best open-source alternative"+ description="Mixpanel to expensive, Google Analytics has no privacy, Amplitude old and boring"+ />+ ),+ },+ {+ key: 'selling-point-2',+ render: () => (+ <SellingPoint+ bgImage="/img-2.png"+ title="Fast and reliable"+ description="Never miss a beat with our real-time analytics"+ />+ ),+ },+ {+ key: 'selling-point-3',+ render: () => (+ <SellingPoint+ bgImage="/img-3.png"+ title="Easy to use"+ description="Compared to other tools we have kept it simple"+ />+ ),+ },+ {+ key: 'selling-point-4',+ render: () => (+ <SellingPoint+ bgImage="/img-4.png"+ title="Privacy by default"+ description="We have built our platform with privacy at its heart"+ />+ ),+ },+ {+ key: 'selling-point-5',+ render: () => (+ <SellingPoint+ bgImage="/img-5.png"+ title="Open source"+ description="You can inspect the code and self-host if you choose"+ />+ ),+ },+];++export function LoginLeftPanel() {+ return (+ <div className="relative h-screen overflow-hidden">+ <div className="row justify-between items-center p-8">+ <LogoSquare className="h-8 w-8" />+ <a+ href="https://openpanel.dev"+ className="text-sm text-muted-foreground"+ >+ Back to website →+ </a>+ </div>++ {/* Carousel */}+ <div className="flex items-center justify-center h-full">+ <Carousel+ className="w-full h-full [&>div]:h-full [&>div]:min-h-full"+ opts={{+ loop: true,+ align: 'center',+ }}+ >+ <CarouselContent className="h-full">+ {sellingPoints.map((point, index) => (+ <CarouselItem+ key={`selling-point-${point.key}`}+ className="p-8 pb-32 pt-0"+ >+ <div className="rounded-xl min-h-full h-full overflow-hidden bg-card border border-border shadow-lg">+ {point.render()}+ </div>+ </CarouselItem>+ ))}+ </CarouselContent>+ <CarouselPrevious className="left-12 bottom-30 top-auto" />+ <CarouselNext className="right-12 bottom-30 top-auto" />+ </Carousel>+ </div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/logo.tsx b/apps/start/src/components/logo.tsxsimilarity index 100%rename from apps/dashboard/src/components/logo.tsxrename to apps/start/src/components/logo.tsxdiff --git a/apps/dashboard/src/components/markdown.tsx b/apps/start/src/components/markdown.tsxsimilarity index 100%rename from apps/dashboard/src/components/markdown.tsxrename to apps/start/src/components/markdown.tsxdiff --git a/apps/dashboard/src/app/(auth)/live-events/live-events.tsx b/apps/start/src/components/mock-event-list.tsxsimilarity index 96%rename from apps/dashboard/src/app/(auth)/live-events/live-events.tsxrename to apps/start/src/components/mock-event-list.tsxindex 668b2d560..9bf67045c 100644--- a/apps/dashboard/src/app/(auth)/live-events/live-events.tsx+++ b/apps/start/src/components/mock-event-list.tsx@@ -1,5 +1,3 @@-'use client';-import { EventListItem } from '@/components/events/event-list-item';import { AnimatePresence, motion } from 'framer-motion';import { useEffect, useState } from 'react';@@ -113,7 +111,7 @@ const useWebEventGenerator = () => {return events;};-const LiveEvents = () => {+export const MockEventList = () => {const state = useWebEventGenerator();return (@@ -123,7 +121,7 @@ const LiveEvents = () => {<br />at your fingertips</div>- <AnimatePresence mode="popLayout" initial={false}>+ <AnimatePresence mode="popLayout" initial><div className="flex flex-col gap-4 p-4">{state.map((event) => (<motion.div@@ -142,5 +140,3 @@ const LiveEvents = () => {</div>);};--export default LiveEvents;diff --git a/apps/start/src/components/notifications/notification-provider.tsx b/apps/start/src/components/notifications/notification-provider.tsxnew file mode 100644index 000000000..879d8b6d6--- /dev/null+++ b/apps/start/src/components/notifications/notification-provider.tsx@@ -0,0 +1,26 @@+import { useAppParams } from '@/hooks/use-app-params';+import useWS from '@/hooks/use-ws';+import type { Notification } from '@openpanel/db';+import { BellIcon } from 'lucide-react';+import { toast } from 'sonner';++export function NotificationProvider() {+ const { projectId } = useAppParams();++ if (!projectId) return null;++ return <InnerNotificationProvider projectId={projectId} />;+}++export function InnerNotificationProvider({+ projectId,+}: { projectId: string }) {+ useWS<Notification>(`/live/notifications/${projectId}`, (notification) => {+ toast(notification.title, {+ description: notification.message,+ icon: <BellIcon className="size-4" />,+ });+ });++ return null;+}diff --git a/apps/dashboard/src/components/notifications/notification-rules.tsx b/apps/start/src/components/notifications/notification-rules.tsxsimilarity index 81%rename from apps/dashboard/src/components/notifications/notification-rules.tsxrename to apps/start/src/components/notifications/notification-rules.tsxindex 1bb76fcc7..d8802d21c 100644--- a/apps/dashboard/src/components/notifications/notification-rules.tsx+++ b/apps/start/src/components/notifications/notification-rules.tsx@@ -1,25 +1,23 @@-'use client';--import { useAppParams } from '@/hooks/useAppParams';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';import { pushModal } from '@/modals';-import { api } from '@/trpc/client';+import { useQuery } from '@tanstack/react-query';import { AnimatePresence, motion } from 'framer-motion';-import { BoxSelectIcon, PencilRulerIcon, PlusIcon } from 'lucide-react';+import { PencilRulerIcon, PlusIcon } from 'lucide-react';import { useMemo } from 'react';import { FullPageEmptyState } from '../full-page-empty-state';-import {- IntegrationCard,- IntegrationCardLogo,- IntegrationCardSkeleton,-} from '../integrations/integration-card';+import { IntegrationCardSkeleton } from '../integrations/integration-card';import { Button } from '../ui/button';import { RuleCard } from './rule-card';export function NotificationRules() {const { projectId } = useAppParams();- const query = api.notification.rules.useQuery({- projectId,- });+ const trpc = useTRPC();+ const query = useQuery(+ trpc.notification.rules.queryOptions({+ projectId,+ }),+ );const data = useMemo(() => {return query.data || [];}, [query.data]);diff --git a/apps/start/src/components/notifications/notifications.tsx b/apps/start/src/components/notifications/notifications.tsxnew file mode 100644index 000000000..177cadf87--- /dev/null+++ b/apps/start/src/components/notifications/notifications.tsx@@ -0,0 +1,16 @@+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { NotificationsTable } from './table';++export function Notifications() {+ const { projectId } = useAppParams();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.notification.list.queryOptions({+ projectId,+ }),+ );++ return <NotificationsTable query={query} />;+}diff --git a/apps/dashboard/src/components/notifications/rule-card.tsx b/apps/start/src/components/notifications/rule-card.tsxsimilarity index 87%rename from apps/dashboard/src/components/notifications/rule-card.tsxrename to apps/start/src/components/notifications/rule-card.tsxindex 7e49e8056..82be1ef1c 100644--- a/apps/dashboard/src/components/notifications/rule-card.tsx+++ b/apps/start/src/components/notifications/rule-card.tsx@@ -1,11 +1,10 @@+import { useTRPC } from '@/integrations/trpc/react';import { pushModal, showConfirm } from '@/modals';-import { type RouterOutputs, api } from '@/trpc/client';+import type { RouterOutputs } from '@/trpc/client';import type { NotificationRule } from '@openpanel/db';-import type { IChartRange, IInterval } from '@openpanel/validation';-import { useQueryClient } from '@tanstack/react-query';-import { getQueryKey } from '@trpc/react-query';-import { AsteriskIcon, FilterIcon } from 'lucide-react';-import { Fragment } from 'react';+import { useMutation, useQueryClient } from '@tanstack/react-query';++import { FilterIcon } from 'lucide-react';import { toast } from 'sonner';import { ColorSquare } from '../color-square';import {@@ -46,13 +45,16 @@ function EventBadge({export function RuleCard({rule,}: { rule: RouterOutputs['notification']['rules'][number] }) {+ const trpc = useTRPC();const client = useQueryClient();- const deletion = api.notification.deleteRule.useMutation({- onSuccess() {- toast.success('Rule deleted');- client.refetchQueries(getQueryKey(api.notification.rules));- },- });+ const deletion = useMutation(+ trpc.notification.deleteRule.mutationOptions({+ onSuccess() {+ toast.success('Rule deleted');+ client.refetchQueries(trpc.notification.rules.pathFilter());+ },+ }),+ );const renderConfig = () => {switch (rule.config.type) {case 'events':diff --git a/apps/dashboard/src/components/notifications/table/columns.tsx b/apps/start/src/components/notifications/table/columns.tsxsimilarity index 77%rename from apps/dashboard/src/components/notifications/table/columns.tsxrename to apps/start/src/components/notifications/table/columns.tsxindex 94107cd6e..00129e33d 100644--- a/apps/dashboard/src/components/notifications/table/columns.tsx+++ b/apps/start/src/components/notifications/table/columns.tsx@@ -1,11 +1,10 @@-import { useNumber } from '@/hooks/useNumerFormatter';import { formatDateTime, formatTime } from '@/utils/date';import type { ColumnDef } from '@tanstack/react-table';import { isToday } from 'date-fns';import { ProjectLink } from '@/components/links';-import { PingBadge } from '@/components/ping';import { SerieIcon } from '@/components/report-chart/common/serie-icon';+import { createHeaderColumn } from '@/components/ui/data-table/data-table-helpers';import type { RouterOutputs } from '@/trpc/client';import type { INotificationPayload } from '@openpanel/db';@@ -25,7 +24,7 @@ export function useColumns() {accessorKey: 'title',header: 'Title',cell({ row }) {- const { title, isReadAt } = row.original;+ const { title } = row.original;return (<div className="row gap-2 items-center">{/* {isReadAt === null && <PingBadge>Unread</PingBadge>} */}@@ -33,6 +32,11 @@ export function useColumns() {</div>);},+ meta: {+ variant: 'text',+ placeholder: 'Search',+ label: 'Title',+ },},{accessorKey: 'message',@@ -45,6 +49,21 @@ export function useColumns() {</div>);},+ meta: {+ label: 'Message',+ hidden: true,+ },+ },+ {+ accessorKey: 'integration',+ header: 'Integration',+ cell({ row }) {+ const integration = row.original.integration;+ return <div>{integration?.name}</div>;+ },+ meta: {+ label: 'Integration',+ },},{accessorKey: 'notificationRule',@@ -53,6 +72,10 @@ export function useColumns() {const rule = row.original.notificationRule;return <div>{rule?.name}</div>;},+ meta: {+ label: 'Rule',+ hidden: true,+ },},{accessorKey: 'country',@@ -70,6 +93,9 @@ export function useColumns() {</div>);},+ meta: {+ label: 'Country',+ },},{accessorKey: 'os',@@ -87,6 +113,9 @@ export function useColumns() {</div>);},+ meta: {+ label: 'OS',+ },},{accessorKey: 'browser',@@ -104,10 +133,13 @@ export function useColumns() {</div>);},+ meta: {+ label: 'Browser',+ },},{accessorKey: 'profile',- header: 'Profile',+ header: createHeaderColumn('Profile'),cell({ row }) {const { payload } = row.original;const event = getEventFromPayload(payload);@@ -123,16 +155,28 @@ export function useColumns() {</ProjectLink>);},+ meta: {+ label: 'Profile',+ },},{accessorKey: 'createdAt',header: 'Created at',cell({ row }) {const date = row.original.createdAt;+ if (!date) {+ return null;+ }return (<div>{isToday(date) ? formatTime(date) : formatDateTime(date)}</div>);},+ filterFn: 'isWithinRange',+ meta: {+ variant: 'dateRange',+ placeholder: 'Created at',+ label: 'Created at',+ },},];diff --git a/apps/start/src/components/notifications/table/index.tsx b/apps/start/src/components/notifications/table/index.tsxnew file mode 100644index 000000000..42c9bba76--- /dev/null+++ b/apps/start/src/components/notifications/table/index.tsx@@ -0,0 +1,32 @@+import type { UseQueryResult } from '@tanstack/react-query';++import { DataTable } from '@/components/ui/data-table/data-table';+import { DataTableToolbar } from '@/components/ui/data-table/data-table-toolbar';+import { useTable } from '@/components/ui/data-table/use-table';+import type { RouterOutputs } from '@/trpc/client';+import { useColumns } from './columns';++type Props = {+ query: UseQueryResult<+ RouterOutputs['notification']['list'][number][],+ unknown+ >;+};++export const NotificationsTable = ({ query }: Props) => {+ const columns = useColumns();+ const { data, isLoading } = query;+ const { table } = useTable({+ columns,+ data: data ?? [],+ loading: isLoading,+ pageSize: 50,+ });++ return (+ <>+ <DataTableToolbar table={table} />+ <DataTable table={table} loading={isLoading} />;+ </>+ );+};diff --git a/apps/start/src/components/onboarding-left-panel.tsx b/apps/start/src/components/onboarding-left-panel.tsxnew file mode 100644index 000000000..14f7b74ad--- /dev/null+++ b/apps/start/src/components/onboarding-left-panel.tsx@@ -0,0 +1,132 @@+import { LogoSquare } from '@/components/logo';+import {+ Carousel,+ CarouselContent,+ CarouselItem,+ CarouselNext,+ CarouselPrevious,+} from '@/components/ui/carousel';+import { Link } from '@tanstack/react-router';+import { CodeIcon, CreditCardIcon, DollarSignIcon } from 'lucide-react';+import { SellingPoint } from './selling-points';++const onboardingSellingPoints = [+ {+ key: 'get-started',+ render: () => (+ <SellingPoint+ bgImage="/img-6.png"+ title="Get started in minutes"+ description={+ <>+ <p>+ <DollarSignIcon className="size-4 inline-block mr-1 relative -top-0.5" />+ Free trial+ </p>+ <p>+ <CreditCardIcon className="size-4 inline-block mr-1 relative -top-0.5" />+ No credit card required+ </p>+ <p>+ <CodeIcon className="size-4 inline-block mr-1 relative -top-0.5" />+ Add our tracking code and get insights in real-time.+ </p>+ </>+ }+ />+ ),+ },+ {+ key: 'welcome',+ render: () => (+ <SellingPoint+ bgImage="/img-1.png"+ title="Best open-source alternative"+ description="Mixpanel to expensive, Google Analytics has no privacy, Amplitude old and boring"+ />+ ),+ },+ {+ key: 'selling-point-2',+ render: () => (+ <SellingPoint+ bgImage="/img-2.png"+ title="Fast and reliable"+ description="Never miss a beat with our real-time analytics"+ />+ ),+ },+ {+ key: 'selling-point-3',+ render: () => (+ <SellingPoint+ bgImage="/img-3.png"+ title="Easy to use"+ description="Compared to other tools we have kept it simple"+ />+ ),+ },+ {+ key: 'selling-point-4',+ render: () => (+ <SellingPoint+ bgImage="/img-4.png"+ title="Privacy by default"+ description="We have built our platform with privacy at its heart"+ />+ ),+ },+ {+ key: 'selling-point-5',+ render: () => (+ <SellingPoint+ bgImage="/img-5.png"+ title="Open source"+ description="You can inspect the code and self-host if you choose"+ />+ ),+ },+];++export function OnboardingLeftPanel() {+ return (+ <div className="sticky top-0 h-screen overflow-hidden">+ <div className="row justify-between items-center p-8">+ <LogoSquare className="h-8 w-8" />++ <div className="text-sm text-muted-foreground">+ Already have an account?{' '}+ <Link to="/login" className="text-sm text-muted-foreground underline">+ Sign in+ </Link>+ </div>+ </div>++ {/* Carousel */}+ <div className="flex items-center justify-center h-full">+ <Carousel+ className="w-full h-full [&>div]:h-full [&>div]:min-h-full"+ opts={{+ loop: true,+ align: 'center',+ }}+ >+ <CarouselContent className="h-full">+ {onboardingSellingPoints.map((point, index) => (+ <CarouselItem+ key={`onboarding-point-${point.key}`}+ className="p-8 pb-32 pt-0"+ >+ <div className="rounded-xl min-h-full h-full overflow-hidden bg-card border border-border shadow-lg">+ {point.render()}+ </div>+ </CarouselItem>+ ))}+ </CarouselContent>+ <CarouselPrevious className="left-12 bottom-30 top-auto" />+ <CarouselNext className="right-12 bottom-30 top-auto" />+ </Carousel>+ </div>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/connect-app.tsx b/apps/start/src/components/onboarding/connect-app.tsxsimilarity index 87%rename from apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/connect-app.tsxrename to apps/start/src/components/onboarding/connect-app.tsxindex 387e5f7a4..8d6f2435c 100644--- a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/connect-app.tsx+++ b/apps/start/src/components/onboarding/connect-app.tsx@@ -10,14 +10,15 @@ type Props = {const ConnectApp = ({ client }: Props) => {return (- <div className="rounded-lg border p-4 md:p-6">- <div className="flex items-center gap-2 text-2xl capitalize">- <SmartphoneIcon />+ <div>+ <div className="flex items-center gap-2 text-xl font-bold capitalize mb-1">+ <SmartphoneIcon className="size-4" />App</div>- <p className="mt-2 text-muted-foreground">+ <div className="text-muted-foreground mb-2">Pick a framework below to get started.- </p>+ </div>+<div className="mt-4 grid gap-4 md:grid-cols-2">{frameworks.filter((framework) => framework.type.includes('app'))diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/connect-backend.tsx b/apps/start/src/components/onboarding/connect-backend.tsxsimilarity index 81%rename from apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/connect-backend.tsxrename to apps/start/src/components/onboarding/connect-backend.tsxindex 5c6ea0b19..cff866c57 100644--- a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/connect-backend.tsx+++ b/apps/start/src/components/onboarding/connect-backend.tsx@@ -2,6 +2,7 @@ import { pushModal } from '@/modals';import { ServerIcon } from 'lucide-react';import Syntax from '@/components/syntax';+import { useAppContext } from '@/hooks/use-app-context';import type { IServiceClient } from '@openpanel/db';import { frameworks } from '@openpanel/sdk-info';@@ -10,21 +11,24 @@ type Props = {};const ConnectBackend = ({ client }: Props) => {+ const context = useAppContext();return (- <div className="col gap-4 rounded-lg border p-4 md:p-6">- <div className="flex items-center gap-2 text-2xl capitalize">- <ServerIcon />- Backend- </div>-+ <><div>- <div className="text-lg font-medium mb-2">- Try with a basic curl command+ <div>+ <div className="flex items-center gap-2 text-xl font-bold capitalize mb-1">+ <ServerIcon className="size-4" />+ Backend+ </div>+ <div className="text-muted-foreground mb-2">+ Try with a basic curl command+ </div></div>+<Syntaxlanguage="bash"className="border"- code={`curl -X POST ${process.env.NEXT_PUBLIC_API_URL}/track \\+ code={`curl -X POST ${context.apiUrl}/track \\-H "Content-Type: application/json" \\-H "openpanel-client-id: ${client?.id}" \\-H "openpanel-client-secret: ${client?.secret}" \\@@ -75,7 +79,7 @@ const ConnectBackend = ({ client }: Props) => {</a></p></div>- </div>+ </>);};diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/connect-web.tsx b/apps/start/src/components/onboarding/connect-web.tsxsimilarity index 89%rename from apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/connect-web.tsxrename to apps/start/src/components/onboarding/connect-web.tsxindex 4ffadab5d..656807ba8 100644--- a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/connect/connect-web.tsx+++ b/apps/start/src/components/onboarding/connect-web.tsx@@ -11,16 +11,16 @@ type Props = {const ConnectWeb = ({ client }: Props) => {return (- <div className="rounded-lg border p-4 md:p-6 col gap-4">- <div className="flex items-center gap-2 text-2xl capitalize">- <MonitorIcon />- Website- </div>-+ <><div>- <div className="text-lg font-medium mb-2">+ <div className="flex items-center gap-2 text-xl font-bold capitalize mb-1">+ <MonitorIcon className="size-4" />+ Website+ </div>+ <div className="text-muted-foreground mb-2">Paste the script to your website</div>+<SyntaxclassName="border"code={`<script>@@ -71,7 +71,7 @@ const ConnectWeb = ({ client }: Props) => {</a></p></div>- </div>+ </>);};diff --git a/apps/start/src/components/onboarding/curl-preview.tsx b/apps/start/src/components/onboarding/curl-preview.tsxnew file mode 100644index 000000000..c2b3de0be--- /dev/null+++ b/apps/start/src/components/onboarding/curl-preview.tsx@@ -0,0 +1,72 @@+import { useAppContext } from '@/hooks/use-app-context';+import { useClientSecret } from '@/hooks/use-client-secret';+import { clipboard } from '@/utils/clipboard';+import type { IServiceProjectWithClients } from '@openpanel/db';+import Syntax from '../syntax';+import {+ Accordion,+ AccordionContent,+ AccordionItem,+ AccordionTrigger,+} from '../ui/accordion';++export function CurlPreview({+ project,+}: { project: IServiceProjectWithClients }) {+ const context = useAppContext();++ const [secret] = useClientSecret();+ const client = project.clients[0];+ if (!client) {+ return null;+ }++ const payload: Record<string, any> = {+ type: 'track',+ payload: {+ name: 'screen_view',+ properties: {+ __title: `Testing OpenPanel - ${project.name}`,+ __path: `${project.domain}`,+ __referrer: `${context.dashboardUrl}`,+ },+ },+ };++ if (project.types.includes('app')) {+ payload.payload.properties.__path = '/';+ delete payload.payload.properties.__referrer;+ }++ if (project.types.includes('backend')) {+ payload.payload.name = 'test_event';+ payload.payload.properties = {};+ }++ const code = `curl -X POST ${context.apiUrl}/track \\+-H "Content-Type: application/json" \\+-H "openpanel-client-id: ${client.id}" \\+-H "openpanel-client-secret: ${secret}" \\+-H "User-Agent: ${typeof window !== 'undefined' ? window.navigator.userAgent : ''}" \\+-d '${JSON.stringify(payload)}'`;++ return (+ <div className="card">+ <Accordion type="single" collapsible>+ <AccordionItem value="item-1">+ <AccordionTrigger+ className="px-6"+ onClick={() => {+ clipboard(code, null);+ }}+ >+ Try out the curl command+ </AccordionTrigger>+ <AccordionContent className="p-0">+ <Syntax code={code} language="bash" />+ </AccordionContent>+ </AccordionItem>+ </Accordion>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/verify/onboarding-verify-listener.tsx b/apps/start/src/components/onboarding/onboarding-verify-listener.tsxsimilarity index 76%rename from apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/verify/onboarding-verify-listener.tsxrename to apps/start/src/components/onboarding/onboarding-verify-listener.tsxindex 95749aa0d..75374596c 100644--- a/apps/dashboard/src/app/(onboarding)/onboarding/[projectId]/verify/onboarding-verify-listener.tsx+++ b/apps/start/src/components/onboarding/onboarding-verify-listener.tsx@@ -1,7 +1,4 @@-'use client';--import { Badge } from '@/components/ui/badge';-import useWS from '@/hooks/useWS';+import useWS from '@/hooks/use-ws';import { pushModal } from '@/modals';import { cn } from '@/utils/cn';import { timeAgo } from '@/utils/date';@@ -21,7 +18,12 @@ type Props = {onVerified: (verified: boolean) => void;};-const VerifyListener = ({ client, events: _events, onVerified }: Props) => {+const VerifyListener = ({+ client,+ events: _events,+ onVerified,+ project,+}: Props) => {const [events, setEvents] = useState<IServiceEvent[]>(_events ?? []);useWS<IServiceEvent>(`/live/events/${client?.projectId}?type=received`,@@ -50,22 +52,16 @@ const VerifyListener = ({ client, events: _events, onVerified }: Props) => {};return (- <div className="rounded-lg border p-4 md:p-6">- <div className="flex items-center gap-2 text-2xl capitalize">- {client?.name}- </div>-+ <div><divclassName={cn(- 'my-6 flex gap-6 rounded-xl p-4 md:p-6',- isConnected- ? 'bg-emerald-100 dark:bg-emerald-700'- : 'bg-blue-100 dark:bg-blue-700',+ 'flex gap-6 rounded-xl p-4 md:p-6',+ isConnected ? 'bg-emerald-100 dark:bg-emerald-700' : 'bg-blue-500/10',)}>{renderIcon()}<div className="flex-1">- <div className="text-lg font-semibold leading-normal">+ <div className="text-lg font-semibold leading-normal text-foreground/90">{isConnected ? 'Success' : 'Waiting for events'}</div>{isConnected ? (@@ -76,7 +72,7 @@ const VerifyListener = ({ client, events: _events, onVerified }: Props) => {<span>{events.length - 5} more events</span></div>)}- {events.slice(-5).map((event, index) => (+ {events.slice(-5).map((event) => (<div key={event.id} className="flex items-center gap-2 "><CheckIcon size={14} />{' '}<span className="font-medium">{event.name}</span>{' '}@@ -87,9 +83,8 @@ const VerifyListener = ({ client, events: _events, onVerified }: Props) => {))}</div>) : (- <div className="">- Verify that your events works before submitting any changes to App- Store/Google Play+ <div className="text-foreground/50">+ Verify that your implementation works.</div>)}</div>diff --git a/apps/dashboard/src/app/(onboarding)/skip-onboarding.tsx b/apps/start/src/components/onboarding/skip-onboarding.tsxsimilarity index 58%rename from apps/dashboard/src/app/(onboarding)/skip-onboarding.tsxrename to apps/start/src/components/onboarding/skip-onboarding.tsxindex 26fb74979..8166518b5 100644--- a/apps/dashboard/src/app/(onboarding)/skip-onboarding.tsx+++ b/apps/start/src/components/onboarding/skip-onboarding.tsx@@ -1,29 +1,28 @@-'use client';--import { useLogout } from '@/hooks/useLogout';+import { useLogout } from '@/hooks/use-logout';+import { useTRPC } from '@/integrations/trpc/react';import { showConfirm } from '@/modals';-import { api } from '@/trpc/client';+import { useQuery } from '@tanstack/react-query';+import { Link } from '@tanstack/react-router';+import { useLocation, useNavigate } from '@tanstack/react-router';import { ChevronLastIcon, LogInIcon } from 'lucide-react';-import Link from 'next/link';-import {- usePathname,- useRouter,- useSelectedLayoutSegments,-} from 'next/navigation';import { useEffect } from 'react';const PUBLIC_SEGMENTS = [['onboarding']];-const SkipOnboarding = () => {- const router = useRouter();- const pathname = usePathname();- const segments = useSelectedLayoutSegments();+export const SkipOnboarding = () => {+ const trpc = useTRPC();+ const navigate = useNavigate();+ const location = useLocation();+ const pathname = location.pathname;+ const segments = location.pathname.split('/').filter(Boolean);const isPublic = PUBLIC_SEGMENTS.some((segment) =>segments.every((s, index) => s === segment[index]),);- const res = api.onboarding.skipOnboardingCheck.useQuery(undefined, {- enabled: !isPublic,- });+ const res = useQuery(+ trpc.onboarding.skipOnboardingCheck.queryOptions(undefined, {+ enabled: !isPublic,+ }),+ );const logout = useLogout();useEffect(() => {@@ -34,7 +33,7 @@ const SkipOnboarding = () => {if (isPublic) {return (<Link- href="/login"+ to="/login"className="flex items-center gap-2 text-muted-foreground">Login@@ -43,18 +42,22 @@ const SkipOnboarding = () => {);}+ if (res.isLoading || res.isError) {+ return null;+ }+return (<buttontype="button"onClick={() => {- if (res.data?.canSkip && res.data?.url) {- router.push(res.data.url);+ if (res.data?.canSkip) {+ navigate({ to: '/' });} else {showConfirm({title: 'Skip onboarding?',text: 'Are you sure you want to skip onboarding? Since you do not have any projects, you will be logged out.',onConfirm() {- logout();+ logout.mutate();},});}@@ -66,5 +69,3 @@ const SkipOnboarding = () => {</button>);};--export default SkipOnboarding;diff --git a/apps/dashboard/src/app/(onboarding)/steps.tsx b/apps/start/src/components/onboarding/steps.tsxsimilarity index 93%rename from apps/dashboard/src/app/(onboarding)/steps.tsxrename to apps/start/src/components/onboarding/steps.tsxindex 864967ab1..a8089aa84 100644--- a/apps/dashboard/src/app/(onboarding)/steps.tsx+++ b/apps/start/src/components/onboarding/steps.tsx@@ -1,8 +1,6 @@-'use client';--import { cn } from '@/utils/cn';+import { cn } from '@/lib/utils';+import { useLocation } from '@tanstack/react-router';import { CheckCheckIcon } from 'lucide-react';-import { usePathname } from 'next/navigation';type Step = {name: string;@@ -38,6 +36,7 @@ function useSteps(path: string) {},];+ // @ts-ignoreconst matchIndex = steps.findLastIndex((step) =>path.match(new RegExp(step.match)),);@@ -53,8 +52,9 @@ function useSteps(path: string) {});}-const Steps = ({ className }: Props) => {- const path = usePathname();+export const OnboardingSteps = ({ className }: Props) => {+ const location = useLocation();+ const path = location.pathname;const steps = useSteps(path);const currentIndex = steps.findIndex((i) => i.status === 'current');return (@@ -115,5 +115,3 @@ const Steps = ({ className }: Props) => {</div>);};--export default Steps;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/billing-faq.tsx b/apps/start/src/components/organization/billing-faq.tsxsimilarity index 96%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/billing-faq.tsxrename to apps/start/src/components/organization/billing-faq.tsxindex 2f63b1c11..28b52bf74 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/billing-faq.tsx+++ b/apps/start/src/components/organization/billing-faq.tsx@@ -1,12 +1,10 @@-'use client';-import {Accordion,AccordionContent,AccordionItem,AccordionTrigger,} from '@/components/ui/accordion';-import { Widget, WidgetBody, WidgetHead } from '@/components/widget';+import { Widget, WidgetHead } from '@/components/widget';const questions = [{diff --git a/apps/start/src/components/organization/billing.tsx b/apps/start/src/components/organization/billing.tsxnew file mode 100644index 000000000..b73a89505--- /dev/null+++ b/apps/start/src/components/organization/billing.tsx@@ -0,0 +1,432 @@+'use client';++import { Button } from '@/components/ui/button';+import {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogTitle,+} from '@/components/ui/dialog';+import { Slider } from '@/components/ui/slider';+import { Switch } from '@/components/ui/switch';+import { Tooltiper } from '@/components/ui/tooltip';+import { Widget, WidgetBody, WidgetHead } from '@/components/widget';+import { useAppParams } from '@/hooks/use-app-params';+import useWS from '@/hooks/use-ws';+import { useTRPC } from '@/integrations/trpc/react';+import { showConfirm } from '@/modals';+import { op } from '@/utils/op';+import type { IServiceOrganization } from '@openpanel/db';+import type { IPolarPrice } from '@openpanel/payments';+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';+import { Loader2Icon } from 'lucide-react';+import { useQueryState } from 'nuqs';+import { useEffect, useMemo, useState } from 'react';+import { toast } from 'sonner';++type Props = {+ organization: IServiceOrganization;+};++export default function Billing({ organization }: Props) {+ const { projectId } = useAppParams();+ const queryClient = useQueryClient();+ const trpc = useTRPC();+ const [customerSessionToken, setCustomerSessionToken] = useQueryState(+ 'customer_session_token',+ );+ const productsQuery = useQuery(+ trpc.subscription.products.queryOptions({+ organizationId: organization.id,+ }),+ );++ useWS(`/live/organization/${organization.id}`, () => {+ queryClient.invalidateQueries(trpc.organization.pathFilter());+ });++ const [recurringInterval, setRecurringInterval] = useState<'year' | 'month'>(+ (organization.subscriptionInterval as 'year' | 'month') || 'month',+ );++ const products = useMemo(() => {+ return (productsQuery.data || [])+ .filter((product) => product.recurringInterval === recurringInterval)+ .filter((product) => product.prices.some((p) => p.amountType !== 'free'));+ }, [productsQuery.data, recurringInterval]);++ useEffect(() => {+ if (organization.subscriptionInterval) {+ setRecurringInterval(+ organization.subscriptionInterval as 'year' | 'month',+ );+ }+ }, [organization.subscriptionInterval]);++ useEffect(() => {+ if (customerSessionToken) {+ op.track('subscription_created');+ }+ }, [customerSessionToken]);++ const [selectedProductIndex, setSelectedProductIndex] = useState<number>(0);++ // Check if organization has a custom product+ const hasCustomProduct = useMemo(() => {+ return products.some((product) => product.metadata?.custom === true);+ }, [products]);++ // Find current subscription index+ const currentSubscriptionIndex = useMemo(() => {+ if (!organization.subscriptionProductId) {+ // Default to 100K events plan if no subscription+ const defaultIndex = products.findIndex(+ (product) => product.metadata?.eventsLimit === 100_000,+ );+ return defaultIndex >= 0 ? defaultIndex : 0;+ }+ return products.findIndex(+ (product) => product.id === organization.subscriptionProductId,+ );+ }, [products, organization.subscriptionProductId]);++ // Check if selected index is the "custom" option (beyond available products)+ const isCustomOption = selectedProductIndex >= products.length;++ // Find the highest event limit to make the custom option dynamic+ const highestEventLimit = useMemo(() => {+ const limits = products+ .map((product) => product.metadata?.eventsLimit)+ .filter((limit): limit is number => typeof limit === 'number');+ return Math.max(...limits, 0);+ }, [products]);++ // Format the custom option label dynamically+ const customOptionLabel = useMemo(() => {+ if (highestEventLimit >= 1_000_000) {+ return `+${(highestEventLimit / 1_000_000).toFixed(0)}M`;+ }+ if (highestEventLimit >= 1_000) {+ return `+${(highestEventLimit / 1_000).toFixed(0)}K`;+ }+ return `+${highestEventLimit}`;+ }, [highestEventLimit]);++ // Set initial slider position to current subscription+ useEffect(() => {+ if (currentSubscriptionIndex >= 0) {+ setSelectedProductIndex(currentSubscriptionIndex);+ }+ }, [currentSubscriptionIndex]);++ const selectedProduct = products[selectedProductIndex];+ const isUpgrade = selectedProductIndex > currentSubscriptionIndex;+ const isDowngrade = selectedProductIndex < currentSubscriptionIndex;+ const isCurrentPlan = selectedProductIndex === currentSubscriptionIndex;++ function renderBillingSlider() {+ if (productsQuery.isLoading) {+ return (+ <div className="center-center p-8">+ <Loader2Icon className="animate-spin" />+ </div>+ );+ }+ if (productsQuery.isError) {+ return (+ <div className="center-center p-8 font-medium">+ Issues loading all tiers+ </div>+ );+ }++ if (hasCustomProduct) {+ return (+ <div className="p-8 text-center">+ <div className="text-muted-foreground">+ Not applicable since custom product+ </div>+ </div>+ );+ }++ return (+ <div className="p-6 space-y-6">+ <div className="space-y-4">+ <div className="flex justify-between items-center">+ <span className="text-sm font-medium">Select your plan</span>+ <span className="text-sm text-muted-foreground">+ {selectedProduct?.name || 'No plan selected'}+ </span>+ </div>++ <Slider+ value={[selectedProductIndex]}+ onValueChange={([value]) => setSelectedProductIndex(value)}+ min={0}+ max={products.length} // +1 for the custom option+ step={1}+ className="w-full"+ disabled={hasCustomProduct}+ />++ <div className="flex justify-between text-xs text-muted-foreground">+ {products.map((product, index) => {+ const eventsLimit = product.metadata?.eventsLimit;+ return (+ <div key={product.id} className="text-center">+ <div className="font-medium">+ {eventsLimit && typeof eventsLimit === 'number'+ ? `${(eventsLimit / 1000).toFixed(0)}K`+ : 'Free'}+ </div>+ <div className="text-xs">events</div>+ </div>+ );+ })}+ {/* Add the custom option label */}+ <div className="text-center">+ <div className="font-medium">{customOptionLabel}</div>+ <div className="text-xs">events</div>+ </div>+ </div>+ </div>++ {(selectedProduct || isCustomOption) && (+ <div className="border rounded-lg p-4 space-y-4">+ {isCustomOption ? (+ // Custom option content+ <>+ <div className="flex justify-between items-center">+ <div>+ <h3 className="font-semibold">Custom Plan</h3>+ <p className="text-sm text-muted-foreground">+ {customOptionLabel} events per {recurringInterval}+ </p>+ </div>+ <div className="text-right">+ <span className="text-lg font-semibold">+ Custom Pricing+ </span>+ </div>+ </div>+ <div className="bg-muted/50 rounded-lg p-4 text-center">+ <p className="text-sm text-muted-foreground mb-2">+ Need higher limits?+ </p>+ <p className="text-sm">+ Reach out to{' '}+ <a+ className="underline font-medium"+ href="mailto:[email protected]"+ >+ </a>{' '}+ and we'll help you with a custom quota.+ </p>+ </div>+ </>+ ) : (+ // Regular product content+ <>+ <div className="flex justify-between items-center">+ <div>+ <h3 className="font-semibold">{selectedProduct.name}</h3>+ <p className="text-sm text-muted-foreground">+ {selectedProduct.metadata?.eventsLimit+ ? `${selectedProduct.metadata.eventsLimit.toLocaleString()} events per ${recurringInterval}`+ : 'Free tier'}+ </p>+ </div>+ <div className="text-right">+ {selectedProduct.prices[0]?.amountType === 'free' ? (+ <span className="text-lg font-semibold">Free</span>+ ) : (+ <span className="text-lg font-semibold">+ {new Intl.NumberFormat('en-US', {+ style: 'currency',+ currency:+ selectedProduct.prices[0]?.priceCurrency || 'USD',+ minimumFractionDigits: 0,+ maximumFractionDigits: 1,+ }).format(+ (selectedProduct.prices[0] &&+ 'priceAmount' in selectedProduct.prices[0]+ ? selectedProduct.prices[0].priceAmount+ : 0) / 100,+ )}+ <span className="text-sm text-muted-foreground">+ {' / '}+ {recurringInterval === 'year' ? 'year' : 'month'}+ </span>+ </span>+ )}+ </div>+ </div>++ {!isCurrentPlan && selectedProduct.prices[0] && (+ <div className="flex justify-end">+ <CheckoutButton+ disabled={selectedProduct.disabled}+ key={selectedProduct.prices[0].id}+ price={selectedProduct.prices[0]}+ organization={organization}+ projectId={projectId}+ buttonText={+ isUpgrade+ ? 'Upgrade'+ : isDowngrade+ ? 'Downgrade'+ : 'Activate'+ }+ />+ </div>+ )}++ {isCurrentPlan && (+ <div className="flex justify-end">+ <Button variant="outline" disabled>+ Current Plan+ </Button>+ </div>+ )}+ </>+ )}+ </div>+ )}+ </div>+ );+ }++ return (+ <>+ <Widget className="w-full">+ <WidgetHead className="flex items-center justify-between">+ <span className="title">Billing</span>+ <div className="flex items-center gap-2">+ <span className="text-sm text-muted-foreground">+ {recurringInterval === 'year'+ ? 'Yearly (2 months free)'+ : 'Monthly'}+ </span>+ <Switch+ checked={recurringInterval === 'year'}+ onCheckedChange={(checked) =>+ setRecurringInterval(checked ? 'year' : 'month')+ }+ />+ </div>+ </WidgetHead>+ <WidgetBody>+ <div className="-m-4">{renderBillingSlider()}</div>+ </WidgetBody>+ </Widget>+ <Dialog+ open={!!customerSessionToken}+ onOpenChange={(open) => {+ setCustomerSessionToken(null);+ if (!open) {+ queryClient.invalidateQueries(trpc.organization.pathFilter());+ }+ }}+ >+ <DialogContent>+ <DialogTitle>Subscription created</DialogTitle>+ <DialogDescription>+ We have registered your subscription. It'll be activated within a+ couple of seconds.+ </DialogDescription>+ <DialogFooter>+ <DialogClose asChild>+ <Button>OK</Button>+ </DialogClose>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ </>+ );+}++function CheckoutButton({+ price,+ organization,+ projectId,+ disabled,+ buttonText,+}: {+ price: IPolarPrice;+ organization: IServiceOrganization;+ projectId: string;+ disabled?: string | null;+ buttonText?: string;+}) {+ const trpc = useTRPC();+ const isCurrentPrice = organization.subscriptionPriceId === price.id;+ const checkout = useMutation(+ trpc.subscription.checkout.mutationOptions({+ onSuccess(data) {+ if (data?.url) {+ window.location.href = data.url;+ } else {+ toast.success('Subscription updated', {+ description: 'It might take a few seconds to update',+ });+ }+ },+ }),+ );++ const isCanceled =+ organization.subscriptionStatus === 'active' &&+ isCurrentPrice &&+ organization.subscriptionCanceledAt;+ const isActive =+ organization.subscriptionStatus === 'active' && isCurrentPrice;++ return (+ <Tooltiper+ content={disabled}+ tooltipClassName="max-w-xs"+ side="left"+ disabled={!disabled}+ >+ <Button+ disabled={disabled !== null || (isActive && !isCanceled)}+ key={price.id}+ onClick={() => {+ const createCheckout = () =>+ checkout.mutate({+ projectId,+ organizationId: organization.id,+ productPriceId: price!.id,+ productId: price.productId,+ });++ if (organization.subscriptionStatus === 'active') {+ showConfirm({+ title: 'Are you sure?',+ text: `You're about the change your subscription.`,+ onConfirm: () => {+ op.track('subscription_change');+ createCheckout();+ },+ });+ } else {+ op.track('subscription_checkout', {+ product: price.productId,+ });+ createCheckout();+ }+ }}+ loading={checkout.isPending}+ className="w-28"+ variant={isActive ? 'outline' : 'default'}+ >+ {buttonText ||+ (isCanceled ? 'Reactivate' : isActive ? 'Active' : 'Activate')}+ </Button>+ </Tooltiper>+ );+}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/current-subscription.tsx b/apps/start/src/components/organization/current-subscription.tsxsimilarity index 81%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/current-subscription.tsxrename to apps/start/src/components/organization/current-subscription.tsxindex 2f85beda5..62fe38f09 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/current-subscription.tsx+++ b/apps/start/src/components/organization/current-subscription.tsx@@ -2,33 +2,18 @@import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';import { Button } from '@/components/ui/button';-import {- Dialog,- DialogClose,- DialogContent,- DialogDescription,- DialogFooter,- DialogTitle,-} from '@/components/ui/dialog';-import { Switch } from '@/components/ui/switch';-import { Tooltiper } from '@/components/ui/tooltip';import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { WidgetTable } from '@/components/widget-table';-import { useAppParams } from '@/hooks/useAppParams';-import { useNumber } from '@/hooks/useNumerFormatter';-import useWS from '@/hooks/useWS';+import { useAppParams } from '@/hooks/use-app-params';+import { useNumber } from '@/hooks/use-numer-formatter';+import useWS from '@/hooks/use-ws';+import { useTRPC } from '@/integrations/trpc/react';import { showConfirm } from '@/modals';-import Confirm from '@/modals/Confirm';-import { api } from '@/trpc/client';import { cn } from '@/utils/cn';import type { IServiceOrganization } from '@openpanel/db';-import { FREE_PRODUCT_IDS, type IPolarPrice } from '@openpanel/payments';+import { FREE_PRODUCT_IDS } from '@openpanel/payments';+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';import { format } from 'date-fns';import { Loader2Icon } from 'lucide-react';-import { useRouter } from 'next/navigation';-import { useQueryState } from 'nuqs';-import { product } from 'ramda';-import { useEffect, useMemo, useState } from 'react';import { toast } from 'sonner';type Props = {@@ -36,46 +21,56 @@ type Props = {};export default function CurrentSubscription({ organization }: Props) {- const router = useRouter();const { projectId } = useAppParams();+ const queryClient = useQueryClient();const number = useNumber();- const [customerSessionToken, setCustomerSessionToken] = useQueryState(- 'customer_session_token',+ const trpc = useTRPC();+ const productQuery = useQuery(+ trpc.subscription.getCurrent.queryOptions({+ organizationId: organization.id,+ }),);- const productQuery = api.subscription.getCurrent.useQuery({- organizationId: organization.id,- });- const cancelSubscription = api.subscription.cancelSubscription.useMutation({- onSuccess(res) {- toast.success('Subscription cancelled', {- description: 'It might take a few seconds to update',- });- },- onError(error) {- toast.error(error.message);- },- });- const portalMutation = api.subscription.portal.useMutation({- onSuccess(data) {- if (data?.url) {- window.location.href = data.url;- }- },- });- const checkout = api.subscription.checkout.useMutation({- onSuccess(data) {- if (data?.url) {- window.location.href = data.url;- } else {- toast.success('Subscription updated', {+ const cancelSubscription = useMutation(+ trpc.subscription.cancelSubscription.mutationOptions({+ onSuccess() {+ toast.success('Subscription cancelled', {description: 'It might take a few seconds to update',});- }- },- });+ },+ onError(error) {+ toast.error(error.message);+ },+ }),+ );+ const portalMutation = useMutation(+ trpc.subscription.portal.mutationOptions({+ onSuccess(data) {+ if (data?.url) {+ window.location.href = data.url;+ }+ },+ }),+ );+ const checkout = useMutation(+ trpc.subscription.checkout.mutationOptions({+ onSuccess(data) {+ if (data?.url) {+ window.location.href = data.url;+ } else {+ toast.success('Subscription updated', {+ description: 'It might take a few seconds to update',+ });+ }+ },+ }),+ );useWS(`/live/organization/${organization.id}`, () => {- productQuery.refetch();+ queryClient.invalidateQueries(+ trpc.subscription.getCurrent.queryOptions({+ organizationId: organization.id,+ }),+ );});function render() {@@ -157,7 +152,7 @@ export default function CurrentSubscription({ organization }: Props) {<div className="col gap-2">{organization.isWillBeCanceled || organization.isCanceled ? (<Button- loading={checkout.isLoading}+ loading={checkout.isPending}onClick={() => {checkout.mutate({projectId,@@ -172,7 +167,7 @@ export default function CurrentSubscription({ organization }: Props) {) : (<Buttonvariant="destructive"- loading={cancelSubscription.isLoading}+ loading={cancelSubscription.isPending}onClick={() => {showConfirm({title: 'Cancel subscription',diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/edit-organization.tsx b/apps/start/src/components/organization/edit-organization.tsxsimilarity index 79%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/edit-organization.tsxrename to apps/start/src/components/organization/edit-organization.tsxindex 694e301cc..718a7dfc0 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/edit-organization.tsx+++ b/apps/start/src/components/organization/edit-organization.tsx@@ -3,8 +3,10 @@import { InputWithLabel, WithLabel } from '@/components/forms/input-with-label';import { Button } from '@/components/ui/button';import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { api, handleError } from '@/trpc/client';-import { useRouter } from 'next/navigation';+import { useTRPC } from '@/integrations/trpc/react';+import { handleError } from '@/trpc/client';+import { useMutation } from '@tanstack/react-query';+import { useRouter } from '@tanstack/react-router';import { Controller, useForm } from 'react-hook-form';import { toast } from 'sonner';import type { z } from 'zod';@@ -32,19 +34,22 @@ export default function EditOrganization({},});- const mutation = api.organization.update.useMutation({- onSuccess(res) {- toast('Organization updated', {- description: 'Your organization has been updated.',- });- reset({- ...res,- timezone: res.timezone!,- });- router.refresh();- },- onError: handleError,- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.organization.update.mutationOptions({+ onSuccess(res: any) {+ toast('Organization updated', {+ description: 'Your organization has been updated.',+ });+ reset({+ ...res,+ timezone: res.timezone!,+ });+ router.invalidate();+ },+ onError: handleError,+ }),+ );return (<formdiff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/organization.tsx b/apps/start/src/components/organization/organization.tsxsimilarity index 100%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/organization/organization.tsxrename to apps/start/src/components/organization/organization.tsxdiff --git a/apps/start/src/components/organization/usage.tsx b/apps/start/src/components/organization/usage.tsxnew file mode 100644index 000000000..e8be151da--- /dev/null+++ b/apps/start/src/components/organization/usage.tsx@@ -0,0 +1,374 @@+'use client';++import {+ X_AXIS_STYLE_PROPS,+ useXAxisProps,+ useYAxisProps,+} from '@/components/report-chart/common/axis';+import { Widget, WidgetBody, WidgetHead } from '@/components/widget';+import { useNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';+import { formatDate } from '@/utils/date';+import { getChartColor } from '@/utils/theme';+import { sum } from '@openpanel/common';+import type { IServiceOrganization } from '@openpanel/db';+import { useQuery } from '@tanstack/react-query';+import { Loader2Icon } from 'lucide-react';+import { pick } from 'ramda';+import {+ Bar,+ BarChart,+ CartesianGrid,+ Tooltip as RechartTooltip,+ ReferenceLine,+ ResponsiveContainer,+ XAxis,+ YAxis,+} from 'recharts';+import { BarShapeBlue } from '../charts/common-bar';++type Props = {+ organization: IServiceOrganization;+};++function Card({ title, value }: { title: string; value: string }) {+ return (+ <div className="col gap-2 p-4 flex-1 min-w-0" title={`${title}: ${value}`}>+ <div className="text-muted-foreground truncate">{title}</div>+ <div className="font-mono text-xl font-bold truncate">{value}</div>+ </div>+ );+}++export default function Usage({ organization }: Props) {+ const number = useNumber();+ const trpc = useTRPC();+ const usageQuery = useQuery(+ trpc.subscription.usage.queryOptions({+ organizationId: organization.id,+ }),+ );++ // Determine interval based on data range - use weekly if more than 30 days+ const getDataInterval = () => {+ if (!usageQuery.data || usageQuery.data.length === 0) return 'day';++ const dates = usageQuery.data.map((item) => new Date(item.day));+ const minDate = new Date(Math.min(...dates.map((d) => d.getTime())));+ const maxDate = new Date(Math.max(...dates.map((d) => d.getTime())));+ const daysDiff = Math.ceil(+ (maxDate.getTime() - minDate.getTime()) / (1000 * 60 * 60 * 24),+ );++ return daysDiff > 30 ? 'week' : 'day';+ };++ const interval = getDataInterval();+ const useWeeklyIntervals = interval === 'week';+ const xAxisProps = useXAxisProps({ interval });+ const yAxisProps = useYAxisProps({});++ const wrapper = (node: React.ReactNode) => (+ <Widget className="w-full">+ <WidgetHead className="flex items-center justify-between">+ <span className="title">Usage</span>+ </WidgetHead>+ <WidgetBody>{node}</WidgetBody>+ </Widget>+ );++ if (usageQuery.isLoading) {+ return wrapper(+ <div className="center-center p-8">+ <Loader2Icon className="animate-spin" />+ </div>,+ );+ }+ if (usageQuery.isError) {+ return wrapper(+ <div className="center-center p-8 font-medium">+ Issues loading usage data+ </div>,+ );+ }++ const subscriptionPeriodEventsLimit = organization.hasSubscription+ ? organization.subscriptionPeriodEventsLimit+ : 0;+ const subscriptionPeriodEventsCount = organization.hasSubscription+ ? organization.subscriptionPeriodEventsCount+ : 0;++ // Group daily data into weekly intervals if data spans more than 30 days+ const processChartData = () => {+ if (!usageQuery.data) return [];++ if (useWeeklyIntervals) {+ // Group daily data into weekly intervals+ const weeklyData: {+ [key: string]: { count: number; startDate: Date; endDate: Date };+ } = {};++ usageQuery.data.forEach((item) => {+ const date = new Date(item.day);+ // Get the start of the week (Monday)+ const startOfWeek = new Date(date);+ const dayOfWeek = date.getDay();+ const diff = date.getDate() - dayOfWeek + (dayOfWeek === 0 ? -6 : 1); // Adjust when day is Sunday+ startOfWeek.setDate(diff);+ startOfWeek.setHours(0, 0, 0, 0);++ const weekKey = startOfWeek.toISOString().split('T')[0];++ if (!weeklyData[weekKey]) {+ weeklyData[weekKey] = {+ count: 0,+ startDate: new Date(startOfWeek),+ endDate: new Date(startOfWeek),+ };+ }++ weeklyData[weekKey].count += item.count;+ weeklyData[weekKey].endDate = new Date(date);+ });++ return Object.values(weeklyData).map((week) => ({+ date: week.startDate.getTime(),+ count: week.count,+ weekRange: `${formatDate(week.startDate)} - ${formatDate(week.endDate)}`,+ }));+ }++ // Use daily data for monthly subscriptions+ return usageQuery.data.map((item) => ({+ date: new Date(item.day).getTime(),+ count: item.count,+ }));+ };++ const chartData = processChartData();++ const domain = [+ 0,+ Math.max(+ subscriptionPeriodEventsLimit,+ subscriptionPeriodEventsCount,+ ...chartData.map((item) => item.count),+ ),+ ] as [number, number];++ domain[1] += domain[1] * 0.05;++ return wrapper(+ <>+ <div className="border-b divide-x divide-border -m-4 mb-4 grid grid-cols-2 md:grid-cols-4">+ {organization.hasSubscription ? (+ <>+ <Card+ title="Period"+ value={+ organization.subscriptionCurrentPeriodStart &&+ organization.subscriptionCurrentPeriodEnd+ ? `${formatDate(organization.subscriptionCurrentPeriodStart)}-${formatDate(organization.subscriptionCurrentPeriodEnd)}`+ : '🤷♂️'+ }+ />+ <Card+ title="Limit"+ value={number.format(subscriptionPeriodEventsLimit)}+ />+ <Card+ title="Events count"+ value={number.format(subscriptionPeriodEventsCount)}+ />+ <Card+ title="Left to use"+ value={+ subscriptionPeriodEventsLimit === 0+ ? '👀'+ : number.formatWithUnit(+ 1 -+ subscriptionPeriodEventsCount /+ subscriptionPeriodEventsLimit,+ '%',+ )+ }+ />+ </>+ ) : (+ <>+ <div className="col-span-2">+ <Card title="Subscription" value={'No active subscription'} />+ </div>+ <div className="col-span-2">+ <Card+ title="Events from last 30 days"+ value={number.format(+ sum(usageQuery.data?.map((item) => item.count) ?? []),+ )}+ />+ </div>+ </>+ )}+ </div>+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-6">+ {/* Events Chart */}+ <div className="space-y-2">+ <h3 className="text-sm font-medium text-muted-foreground">+ {useWeeklyIntervals ? 'Weekly Events' : 'Daily Events'}+ </h3>+ <div className="max-h-[300px] h-[250px] w-full p-4">+ <ResponsiveContainer>+ <BarChart data={chartData} barSize={useWeeklyIntervals ? 20 : 8}>+ <RechartTooltip+ content={<EventsTooltip useWeekly={useWeeklyIntervals} />}+ />+ <Bar+ dataKey="count"+ isAnimationActive={false}+ shape={BarShapeBlue}+ />+ <XAxis {...xAxisProps} dataKey="date" />+ <YAxis {...yAxisProps} domain={[0, 'dataMax']} />+ <CartesianGrid+ horizontal={true}+ vertical={false}+ strokeDasharray="3 3"+ strokeOpacity={0.5}+ />+ </BarChart>+ </ResponsiveContainer>+ </div>+ </div>++ {/* Total Events vs Limit Chart */}+ <div className="space-y-2">+ <h3 className="text-sm font-medium text-muted-foreground">+ Total Events vs Limit+ </h3>+ <div className="max-h-[300px] h-[250px] w-full p-4">+ <ResponsiveContainer>+ <BarChart+ data={[+ {+ name: 'Total Events',+ count: subscriptionPeriodEventsCount,+ limit: subscriptionPeriodEventsLimit,+ },+ ]}+ >+ <RechartTooltip content={<TotalTooltip />} cursor={false} />+ {organization.hasSubscription &&+ subscriptionPeriodEventsLimit > 0 && (+ <ReferenceLine+ y={subscriptionPeriodEventsLimit}+ stroke={getChartColor(1)}+ strokeWidth={2}+ strokeDasharray="3 3"+ strokeOpacity={0.8}+ strokeLinecap="round"+ label={{+ value: `Limit (${number.format(subscriptionPeriodEventsLimit)})`,+ fill: getChartColor(1),+ position: 'insideTopRight',+ fontSize: 12,+ }}+ />+ )}+ <Bar+ dataKey="count"+ isAnimationActive={false}+ shape={BarShapeBlue}+ />+ <XAxis {...X_AXIS_STYLE_PROPS} dataKey="name" />+ <YAxis+ {...yAxisProps}+ domain={[+ 0,+ Math.max(+ subscriptionPeriodEventsLimit,+ subscriptionPeriodEventsCount,+ ) * 1.1,+ ]}+ />+ <CartesianGrid+ horizontal={true}+ vertical={false}+ strokeDasharray="3 3"+ strokeOpacity={0.5}+ />+ </BarChart>+ </ResponsiveContainer>+ </div>+ </div>+ </div>+ </>,+ );+}++function EventsTooltip({ useWeekly, ...props }: { useWeekly: boolean } & any) {+ const number = useNumber();+ const payload = props.payload?.[0]?.payload;++ if (!payload) {+ return null;+ }++ return (+ <div className="flex min-w-[180px] flex-col gap-2 rounded-xl border bg-card p-3 shadow-xl">+ <div className="text-sm text-muted-foreground">+ {useWeekly && payload.weekRange+ ? payload.weekRange+ : payload?.date+ ? formatDate(new Date(payload.date))+ : 'Unknown date'}+ </div>+ <div className="flex items-center gap-2">+ <div className="h-10 w-1 rounded-full bg-chart-0" />+ <div className="col gap-1">+ <div className="text-sm text-muted-foreground">+ Events {useWeekly ? 'this week' : 'this day'}+ </div>+ <div className="text-lg font-semibold text-chart-0">+ {number.format(payload.count)}+ </div>+ </div>+ </div>+ </div>+ );+}++function TotalTooltip(props: any) {+ const number = useNumber();+ const payload = props.payload?.[0]?.payload;++ if (!payload) {+ return null;+ }++ return (+ <div className="flex min-w-[180px] flex-col gap-2 rounded-xl border bg-card p-3 shadow-xl">+ <div className="text-sm text-muted-foreground">Total Events</div>+ <div className="flex items-center gap-2">+ <div className="h-10 w-1 rounded-full bg-chart-2" />+ <div className="col gap-1">+ <div className="text-sm text-muted-foreground">Your events count</div>+ <div className="text-lg font-semibold text-chart-2">+ {number.format(payload.count)}+ </div>+ </div>+ </div>+ {payload.limit > 0 && (+ <div className="flex items-center gap-2">+ <div className="h-10 w-1 rounded-full border-2 border-dashed border-chart-1" />+ <div className="col gap-1">+ <div className="text-sm text-muted-foreground">Your tier limit</div>+ <div className="text-lg font-semibold text-chart-1">+ {number.format(payload.limit)}+ </div>+ </div>+ </div>+ )}+ </div>+ );+}diff --git a/apps/dashboard/src/components/overview/filters/origin-filter.tsx b/apps/start/src/components/overview/filters/origin-filter.tsxsimilarity index 67%rename from apps/dashboard/src/components/overview/filters/origin-filter.tsxrename to apps/start/src/components/overview/filters/origin-filter.tsxindex 8e168d441..a1251985e 100644--- a/apps/dashboard/src/components/overview/filters/origin-filter.tsx+++ b/apps/start/src/components/overview/filters/origin-filter.tsx@@ -1,22 +1,26 @@import { Button } from '@/components/ui/button';-import { useAppParams } from '@/hooks/useAppParams';-import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';-import { api } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';+import { useTRPC } from '@/integrations/trpc/react';import { cn } from '@/utils/cn';+import { useQuery } from '@tanstack/react-query';import { GlobeIcon } from 'lucide-react';export function OriginFilter() {const { projectId } = useAppParams();const [filters, setFilter] = useEventQueryFilters();const originFilter = filters.find((item) => item.name === 'origin');+ const trpc = useTRPC();- const { data } = api.event.origin.useQuery(- {- projectId: projectId,- },- {- staleTime: 1000 * 60 * 60,- },+ const { data } = useQuery(+ trpc.event.origin.queryOptions(+ {+ projectId: projectId,+ },+ {+ staleTime: 1000 * 60 * 60,+ },+ ),);if (!data || data.length === 0) {diff --git a/apps/dashboard/src/components/overview/filters/overview-filters-buttons.tsx b/apps/start/src/components/overview/filters/overview-filters-buttons.tsxsimilarity index 94%rename from apps/dashboard/src/components/overview/filters/overview-filters-buttons.tsxrename to apps/start/src/components/overview/filters/overview-filters-buttons.tsxindex f24a03e0b..cbffb1718 100644--- a/apps/dashboard/src/components/overview/filters/overview-filters-buttons.tsx+++ b/apps/start/src/components/overview/filters/overview-filters-buttons.tsx@@ -1,10 +1,8 @@-'use client';-import { Button } from '@/components/ui/button';import {useEventQueryFilters,useEventQueryNamesFilter,-} from '@/hooks/useEventQueryFilters';+} from '@/hooks/use-event-query-filters';import { getPropertyLabel } from '@/translations/properties';import { cn } from '@/utils/cn';import { operators } from '@openpanel/constants';@@ -21,7 +19,7 @@ export function OverviewFiltersButtons({nuqsOptions,}: OverviewFiltersButtonsProps) {const [events, setEvents] = useEventQueryNamesFilter(nuqsOptions);- const [filters, setFilter, setFilters, removeFilter] =+ const [filters, _setFilter, _setFilters, removeFilter] =useEventQueryFilters(nuqsOptions);if (filters.length === 0 && events.length === 0) return null;return (diff --git a/apps/dashboard/src/components/overview/filters/overview-filters-drawer-content.tsx b/apps/start/src/components/overview/filters/overview-filters-drawer-content.tsxsimilarity index 91%rename from apps/dashboard/src/components/overview/filters/overview-filters-drawer-content.tsxrename to apps/start/src/components/overview/filters/overview-filters-drawer-content.tsxindex 4da12bbf3..1c9f03e16 100644--- a/apps/dashboard/src/components/overview/filters/overview-filters-drawer-content.tsx+++ b/apps/start/src/components/overview/filters/overview-filters-drawer-content.tsx@@ -1,17 +1,16 @@import { PureFilterItem } from '@/components/report/sidebar/filters/FilterItem';import { Button } from '@/components/ui/button';import { Combobox } from '@/components/ui/combobox';-import { ComboboxAdvanced } from '@/components/ui/combobox-advanced';import { SheetHeader, SheetTitle } from '@/components/ui/sheet';-import { useEventNames } from '@/hooks/useEventNames';-import { useEventProperties } from '@/hooks/useEventProperties';+import { useEventNames } from '@/hooks/use-event-names';+import { useEventProperties } from '@/hooks/use-event-properties';import {useEventQueryFilters,useEventQueryNamesFilter,-} from '@/hooks/useEventQueryFilters';-import { useProfileProperties } from '@/hooks/useProfileProperties';-import { useProfileValues } from '@/hooks/useProfileValues';-import { usePropertyValues } from '@/hooks/usePropertyValues';+} from '@/hooks/use-event-query-filters';+import { useProfileProperties } from '@/hooks/use-profile-properties';+import { useProfileValues } from '@/hooks/use-profile-values';+import { usePropertyValues } from '@/hooks/use-property-values';import { XIcon } from 'lucide-react';import type { Options as NuqsOptions } from 'nuqs';@@ -22,7 +21,6 @@ import type {} from '@openpanel/validation';import { ComboboxEvents } from '@/components/ui/combobox-events';-import { useOverviewOptions } from '../useOverviewOptions';import { OriginFilter } from './origin-filter';export interface OverviewFiltersDrawerContentProps {diff --git a/apps/dashboard/src/components/overview/filters/overview-filters-drawer.tsx b/apps/start/src/components/overview/filters/overview-filters-drawer.tsxsimilarity index 98%rename from apps/dashboard/src/components/overview/filters/overview-filters-drawer.tsxrename to apps/start/src/components/overview/filters/overview-filters-drawer.tsxindex 3ff0e3fce..8f94f9bb9 100644--- a/apps/dashboard/src/components/overview/filters/overview-filters-drawer.tsx+++ b/apps/start/src/components/overview/filters/overview-filters-drawer.tsx@@ -1,5 +1,3 @@-'use client';-import { Button } from '@/components/ui/button';import { Sheet, SheetContent, SheetTrigger } from '@/components/ui/sheet';import { FilterIcon } from 'lucide-react';diff --git a/apps/start/src/components/overview/live-counter.tsx b/apps/start/src/components/overview/live-counter.tsxnew file mode 100644index 000000000..5f3127158--- /dev/null+++ b/apps/start/src/components/overview/live-counter.tsx@@ -0,0 +1,81 @@+import { TooltipComplete } from '@/components/tooltip-complete';+import { useDebounceState } from '@/hooks/use-debounce-state';+import useWS from '@/hooks/use-ws';+import { useTRPC } from '@/integrations/trpc/react';+import { cn } from '@/utils/cn';+import { useQuery, useQueryClient } from '@tanstack/react-query';+import { useEffect, useRef } from 'react';+import { toast } from 'sonner';+import { AnimatedNumber } from '../animated-number';++export interface LiveCounterProps {+ projectId: string;+}++const FIFTEEN_SECONDS = 1000 * 30;++export function LiveCounter({ projectId }: LiveCounterProps) {+ const trpc = useTRPC();+ const client = useQueryClient();+ const counter = useDebounceState(0, 1000);+ const lastRefresh = useRef(Date.now());+ const query = useQuery(+ trpc.overview.liveVisitors.queryOptions({+ projectId,+ }),+ );++ useEffect(() => {+ if (query.data) {+ counter.set(query.data);+ }+ }, [query.data]);++ useWS<number>(+ `/live/visitors/${projectId}`,+ (value) => {+ if (!Number.isNaN(value)) {+ counter.set(value);+ if (Date.now() - lastRefresh.current > FIFTEEN_SECONDS) {+ lastRefresh.current = Date.now();+ if (!document.hidden) {+ toast('Refreshed data');+ client.refetchQueries({+ type: 'active',+ });+ }+ }+ }+ },+ {+ debounce: {+ delay: 1000,+ maxWait: 5000,+ },+ },+ );++ return (+ <TooltipComplete+ content={`${counter.debounced} unique visitors last 5 minutes`}+ >+ <div className="flex h-8 items-center gap-2 rounded border border-border px-3 font-medium leading-none">+ <div className="relative">+ <div+ className={cn(+ 'h-3 w-3 animate-ping rounded-full bg-emerald-500 opacity-100 transition-all',+ counter.debounced === 0 && 'bg-destructive opacity-0',+ )}+ />+ <div+ className={cn(+ 'absolute left-0 top-0 h-3 w-3 rounded-full bg-emerald-500 transition-all',+ counter.debounced === 0 && 'bg-destructive',+ )}+ />+ </div>+ <AnimatedNumber value={counter.debounced} />+ </div>+ </TooltipComplete>+ );+}diff --git a/apps/dashboard/src/components/overview/overview-chart-toggle.tsx b/apps/start/src/components/overview/overview-chart-toggle.tsxsimilarity index 100%rename from apps/dashboard/src/components/overview/overview-chart-toggle.tsxrename to apps/start/src/components/overview/overview-chart-toggle.tsxdiff --git a/apps/dashboard/src/components/overview/overview-constants.tsx b/apps/start/src/components/overview/overview-constants.tsxsimilarity index 100%rename from apps/dashboard/src/components/overview/overview-constants.tsxrename to apps/start/src/components/overview/overview-constants.tsxdiff --git a/apps/dashboard/src/components/overview/overview-details-button.tsx b/apps/start/src/components/overview/overview-details-button.tsxsimilarity index 100%rename from apps/dashboard/src/components/overview/overview-details-button.tsxrename to apps/start/src/components/overview/overview-details-button.tsxdiff --git a/apps/dashboard/src/components/overview/overview-interval.tsx b/apps/start/src/components/overview/overview-interval.tsxsimilarity index 89%rename from apps/dashboard/src/components/overview/overview-interval.tsxrename to apps/start/src/components/overview/overview-interval.tsxindex 7705f0b01..ba4984cce 100644--- a/apps/dashboard/src/components/overview/overview-interval.tsx+++ b/apps/start/src/components/overview/overview-interval.tsx@@ -1,12 +1,8 @@-'use client';-import { useOverviewOptions } from '@/components/overview/useOverviewOptions';-import { TimeWindowPicker } from '@/components/time-window-picker';import {isHourIntervalEnabledByRange,isMinuteIntervalEnabledByRange,} from '@openpanel/constants';-import { endOfDay, formatISO, startOfDay } from 'date-fns';import { ClockIcon } from 'lucide-react';import { Combobox } from '../ui/combobox';diff --git a/apps/start/src/components/overview/overview-live-histogram.tsx b/apps/start/src/components/overview/overview-live-histogram.tsxnew file mode 100644index 000000000..397b0ee77--- /dev/null+++ b/apps/start/src/components/overview/overview-live-histogram.tsx@@ -0,0 +1,251 @@+import { useTRPC } from '@/integrations/trpc/react';+import { cn } from '@/utils/cn';+import { useQuery } from '@tanstack/react-query';++import type { IChartProps } from '@openpanel/validation';++import { useNumber } from '@/hooks/use-numer-formatter';+import { getChartColor } from '@/utils/theme';+import React, { useEffect, useState } from 'react';+import { createPortal } from 'react-dom';+import {+ Bar,+ BarChart,+ CartesianGrid,+ Customized,+ ResponsiveContainer,+ Tooltip,+ XAxis,+ YAxis,+} from 'recharts';+import { BarShapeBlue } from '../charts/common-bar';++interface OverviewLiveHistogramProps {+ projectId: string;+}++export function OverviewLiveHistogram({+ projectId,+}: OverviewLiveHistogramProps) {+ const report: IChartProps = {+ projectId,+ events: [+ {+ segment: 'user',+ filters: [+ {+ id: '1',+ name: 'name',+ operator: 'is',+ value: ['screen_view', 'session_start'],+ },+ ],+ id: 'A',+ name: '*',+ displayName: 'Active users',+ },+ ],+ chartType: 'histogram',+ interval: 'minute',+ range: '30min',+ name: '',+ metric: 'sum',+ breakdowns: [],+ lineType: 'monotone',+ previous: false,+ };+ const countReport: IChartProps = {+ name: '',+ projectId,+ events: [+ {+ segment: 'user',+ filters: [],+ id: 'A',+ name: 'session_start',+ },+ ],+ breakdowns: [],+ chartType: 'metric',+ lineType: 'monotone',+ interval: 'minute',+ range: '30min',+ previous: false,+ metric: 'sum',+ };+ const trpc = useTRPC();++ const res = useQuery(trpc.chart.chart.queryOptions(report));+ const countRes = useQuery(trpc.chart.chart.queryOptions(countReport));++ const metrics = res.data?.series[0]?.metrics;+ const minutes = (res.data?.series[0]?.data || []).slice(-30);+ const liveCount = countRes.data?.series[0]?.metrics?.sum ?? 0;++ // Transform data for Recharts+ const chartData = minutes.map((minute) => ({+ ...minute,+ timestamp: new Date(minute.date).getTime(),+ time: new Date(minute.date).toLocaleTimeString([], {+ hour: '2-digit',+ minute: '2-digit',+ }),+ }));++ if (res.isInitialLoading || countRes.isInitialLoading) {+ return (+ <Wrapper count={0}>+ <div className="h-full w-full animate-pulse bg-def-200 rounded" />+ </Wrapper>+ );+ }++ if (!res.isSuccess && !countRes.isSuccess) {+ return null;+ }++ return (+ <Wrapper count={liveCount}>+ <div className="h-full w-full">+ <ResponsiveContainer width="100%" height="100%">+ <BarChart+ data={chartData}+ margin={{ top: 0, right: 0, left: 0, bottom: 0 }}+ >+ <Tooltip+ content={CustomTooltip}+ cursor={{+ fill: 'var(--def-200)',+ }}+ />+ <XAxis dataKey="time" axisLine={false} tickLine={false} hide />+ <YAxis hide />+ <Bar+ dataKey="count"+ fill="rgba(59, 121, 255, 0.2)"+ isAnimationActive={false}+ shape={BarShapeBlue}+ activeBar={BarShapeBlue}+ />+ </BarChart>+ </ResponsiveContainer>+ </div>+ </Wrapper>+ );+}++interface WrapperProps {+ children: React.ReactNode;+ count: number;+}++function Wrapper({ children, count }: WrapperProps) {+ return (+ <div className="flex h-full flex-col">+ <div className="relative mb-1 text-sm font-medium text-muted-foreground">+ {count} unique vistors last 30 minutes+ </div>+ <div className="relative flex h-full w-full flex-1 items-end justify-center gap-2">+ {children}+ </div>+ </div>+ );+}++// Custom tooltip component that uses portals to escape overflow hidden+const CustomTooltip = ({ active, payload, coordinate }: any) => {+ const [tooltipContainer] = useState(() => document.createElement('div'));+ const [mousePosition, setMousePosition] = useState({ x: 0, y: 0 });+ const number = useNumber();++ useEffect(() => {+ document.body.appendChild(tooltipContainer);++ const handleMouseMove = (e: MouseEvent) => {+ setMousePosition({ x: e.clientX, y: e.clientY });+ };++ document.addEventListener('mousemove', handleMouseMove);++ return () => {+ if (document.body.contains(tooltipContainer)) {+ document.body.removeChild(tooltipContainer);+ }+ document.removeEventListener('mousemove', handleMouseMove);+ };+ }, [tooltipContainer]);++ if (!active || !payload || !payload.length) {+ return null;+ }++ const data = payload[0].payload;++ // Smart positioning to avoid going out of bounds+ const tooltipWidth = 180; // min-w-[180px]+ const tooltipHeight = 80; // approximate height+ const offset = 10;++ let left = mousePosition.x + offset;+ let top = mousePosition.y - offset;++ // Check if tooltip would go off the right edge+ if (left + tooltipWidth > window.innerWidth) {+ left = mousePosition.x - tooltipWidth - offset;+ }++ // Check if tooltip would go off the left edge+ if (left < 0) {+ left = offset;+ }++ // Check if tooltip would go off the top edge+ if (top < 0) {+ top = mousePosition.y + offset;+ }++ // Check if tooltip would go off the bottom edge+ if (top + tooltipHeight > window.innerHeight) {+ top = window.innerHeight - tooltipHeight - offset;+ }++ const tooltipContent = (+ <div+ className="flex min-w-[180px] flex-col gap-2 rounded-xl border bg-background/80 p-3 shadow-xl backdrop-blur-sm"+ style={{+ position: 'fixed',+ top,+ left,+ pointerEvents: 'none',+ zIndex: 1000,+ }}+ >+ <div className="flex justify-between gap-8 text-muted-foreground">+ <div>+ {new Date(data.date).toLocaleTimeString([], {+ hour: '2-digit',+ minute: '2-digit',+ })}+ </div>+ </div>+ <React.Fragment>+ <div className="flex gap-2">+ <div+ className="w-[3px] rounded-full"+ style={{ background: getChartColor(0) }}+ />+ <div className="col flex-1 gap-1">+ <div className="flex items-center gap-1">Active users</div>+ <div className="flex justify-between gap-8 font-mono font-medium">+ <div className="row gap-1">+ {number.formatWithUnit(data.count)}+ </div>+ </div>+ </div>+ </div>+ </React.Fragment>+ </div>+ );++ return createPortal(tooltipContent, tooltipContainer);+};diff --git a/apps/dashboard/src/components/overview/overview-metric-card.tsx b/apps/start/src/components/overview/overview-metric-card.tsxsimilarity index 90%rename from apps/dashboard/src/components/overview/overview-metric-card.tsxrename to apps/start/src/components/overview/overview-metric-card.tsxindex 37f5bb84a..99b43a315 100644--- a/apps/dashboard/src/components/overview/overview-metric-card.tsx+++ b/apps/start/src/components/overview/overview-metric-card.tsx@@ -1,15 +1,11 @@-'use client';--import { fancyMinutes, useNumber } from '@/hooks/useNumerFormatter';-import type { IChartData, RouterOutputs } from '@/trpc/client';+import { fancyMinutes, useNumber } from '@/hooks/use-numer-formatter';import { cn } from '@/utils/cn';import AutoSizer from 'react-virtualized-auto-sizer';import { Area, AreaChart } from 'recharts';-import { average, getPreviousMetric, sum } from '@openpanel/common';-import type { IChartMetric, Metrics } from '@openpanel/validation';+import { formatDate, timeAgo } from '@/utils/date';+import { getPreviousMetric } from '@openpanel/common';import {- PreviousDiffIndicator,PreviousDiffIndicatorPure,getDiffIndicator,} from '../report-chart/common/previous-diff-indicator';@@ -26,7 +22,7 @@ interface MetricCardProps {current: number;previous?: number | null;};- unit?: string;+ unit?: '' | 'date' | 'timeAgo' | 'min' | '%';label: string;onClick?: () => void;active?: boolean;@@ -49,6 +45,14 @@ export function OverviewMetricCard({const { current, previous } = metric;const renderValue = (value: number, unitClassName?: string, short = true) => {+ if (unit === 'date') {+ return <>{formatDate(new Date(value))}</>;+ }++ if (unit === 'timeAgo') {+ return <>{timeAgo(new Date(value))}</>;+ }+if (unit === 'min') {return <>{fancyMinutes(value)}</>;}@@ -173,7 +177,7 @@ export function OverviewMetricCardNumber({<div className={cn('flex min-w-0 flex-col gap-2', className)}><div className="flex items-center justify-between gap-2"><div className="flex min-w-0 items-center gap-2 text-left">- <span className="truncate text-sm font-medium text-muted-foreground">+ <span className="truncate text-sm font-medium text-muted-foreground leading-[1.1]">{label}</span></div>@@ -185,7 +189,9 @@ export function OverviewMetricCardNumber({</div>) : (<div className="flex items-end justify-between gap-4">- <div className="truncate font-mono text-3xl font-bold">{value}</div>+ <div className="truncate font-mono text-3xl leading-[1.1] font-bold">+ {value}+ </div>{enhancer}</div>)}diff --git a/apps/dashboard/src/components/overview/overview-metrics.tsx b/apps/start/src/components/overview/overview-metrics.tsxsimilarity index 53%rename from apps/dashboard/src/components/overview/overview-metrics.tsxrename to apps/start/src/components/overview/overview-metrics.tsxindex 419e1bf5d..1a652667a 100644--- a/apps/dashboard/src/components/overview/overview-metrics.tsx+++ b/apps/start/src/components/overview/overview-metrics.tsx@@ -1,29 +1,30 @@-'use client';-import { useOverviewOptions } from '@/components/overview/useOverviewOptions';-import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';import { cn } from '@/utils/cn';import { useDashedStroke } from '@/hooks/use-dashed-stroke';-import { useFormatDateInterval } from '@/hooks/useFormatDateInterval';-import { useNumber } from '@/hooks/useNumerFormatter';-import { type RouterOutputs, api } from '@/trpc/client';+import { useFormatDateInterval } from '@/hooks/use-format-date-interval';+import { useNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';+import type { RouterOutputs } from '@/trpc/client';import { getChartColor } from '@/utils/theme';import { getPreviousMetric } from '@openpanel/common';import type { IInterval } from '@openpanel/validation';+import { useQuery } from '@tanstack/react-query';import { isSameDay, isSameHour, isSameMonth, isSameWeek } from 'date-fns';-import { last } from 'ramda';-import React from 'react';+import { last, omit } from 'ramda';+import React, { useState } from 'react';import {+ Bar,CartesianGrid,- Customized,+ ComposedChart,Line,- LineChart,ResponsiveContainer,XAxis,YAxis,} from 'recharts';import { createChartTooltip } from '../charts/chart-tooltip';+import { BarShapeBlue } from '../charts/common-bar';import { useXAxisProps, useYAxisProps } from '../report-chart/common/axis';import { PreviousDiffIndicatorPure } from '../report-chart/common/previous-diff-indicator';import { Skeleton } from '../skeleton';@@ -77,16 +78,19 @@ export default function OverviewMetrics({ projectId }: OverviewMetricsProps) {const { range, interval, metric, setMetric, startDate, endDate } =useOverviewOptions();const [filters] = useEventQueryFilters();+ const trpc = useTRPC();const activeMetric = TITLES[metric]!;- const overviewQuery = api.overview.stats.useQuery({- projectId,- range,- interval,- filters,- startDate,- endDate,- });+ const overviewQuery = useQuery(+ trpc.overview.stats.queryOptions({+ projectId,+ range,+ interval,+ filters,+ startDate,+ endDate,+ }),+ );const data =overviewQuery.data?.series?.map((item) => ({@@ -94,47 +98,6 @@ export default function OverviewMetrics({ projectId }: OverviewMetricsProps) {timestamp: new Date(item.date).getTime(),})) || [];- const xAxisProps = useXAxisProps({ interval });- const yAxisProps = useYAxisProps();-- let dotIndex = undefined;- if (range === 'today') {- // Find closest index based on times- dotIndex = data.findIndex((item) => {- return isSameHour(item.date, new Date());- });- }-- const { calcStrokeDasharray, handleAnimationEnd, getStrokeDasharray } =- useDashedStroke({- dotIndex,- });-- const lastSerieDataItem = last(data)?.date || new Date();- const useDashedLastLine = (() => {- if (range === 'today') {- return true;- }-- if (interval === 'hour') {- return isSameHour(lastSerieDataItem, new Date());- }-- if (interval === 'day') {- return isSameDay(lastSerieDataItem, new Date());- }-- if (interval === 'month') {- return isSameMonth(lastSerieDataItem, new Date());- }-- if (interval === 'week') {- return isSameWeek(lastSerieDataItem, new Date());- }-- return false;- })();-return (<><div className="relative -top-0.5 col-span-6 -m-4 mb-0 mt-0 md:m-0">@@ -174,91 +137,11 @@ export default function OverviewMetrics({ projectId }: OverviewMetricsProps) {</div><div className="w-full h-[150px]">{overviewQuery.isLoading && <Skeleton className="h-full w-full" />}- <TooltipProvider metric={activeMetric} interval={interval}>- <ResponsiveContainer width="100%" height="100%">- <LineChart data={data}>- <Customized component={calcStrokeDasharray} />- <Line- dataKey="calcStrokeDasharray"- legendType="none"- animationDuration={0}- onAnimationEnd={handleAnimationEnd}- />- <Tooltip />- <YAxis- {...yAxisProps}- domain={[- 0,- activeMetric.key === 'bounce_rate' ? 100 : 'dataMax',- ]}- width={25}- />- <XAxis {...xAxisProps} />-- <CartesianGrid- strokeDasharray="3 3"- horizontal={true}- vertical={false}- className="stroke-border"- />-- <Line- key={`prev_${activeMetric.key}`}- type="linear"- dataKey={`prev_${activeMetric.key}`}- stroke={'hsl(var(--foreground) / 0.1)'}- strokeWidth={2}- isAnimationActive={false}- dot={- data.length > 90- ? false- : {- stroke: 'hsl(var(--foreground) / 0.1)',- fill: 'hsl(var(--def-100))',- strokeWidth: 1.5,- r: 2,- }- }- activeDot={{- stroke: 'hsl(var(--foreground) / 0.2)',- fill: 'hsl(var(--def-100))',- strokeWidth: 1.5,- r: 3,- }}- />-- <Line- key={activeMetric.key}- type="linear"- dataKey={activeMetric.key}- stroke={getChartColor(0)}- strokeWidth={2}- strokeDasharray={- useDashedLastLine- ? getStrokeDasharray(activeMetric.key)- : undefined- }- isAnimationActive={false}- dot={- data.length > 90- ? false- : {- stroke: getChartColor(0),- fill: 'hsl(var(--def-100))',- strokeWidth: 1.5,- r: 3,- }- }- activeDot={{- stroke: getChartColor(0),- fill: 'hsl(var(--def-100))',- strokeWidth: 2,- r: 4,- }}- />- </LineChart>- </ResponsiveContainer>- </TooltipProvider>+ <Chart+ activeMetric={activeMetric}+ interval={interval}+ data={data}+ /></div></div></div>@@ -317,3 +200,76 @@ const { Tooltip, TooltipProvider } = createChartTooltip<</>);});++function Chart({+ activeMetric,+ interval,+ data,+}: {+ activeMetric: (typeof TITLES)[number];+ interval: IInterval;+ data: RouterOutputs['overview']['stats']['series'];+}) {+ const xAxisProps = useXAxisProps({ interval });+ const yAxisProps = useYAxisProps();+ const [activeBar, setActiveBar] = useState(-1);++ return (+ <TooltipProvider metric={activeMetric} interval={interval}>+ <ResponsiveContainer width="100%" height="100%">+ <ComposedChart+ data={data}+ margin={{ top: 0, right: 0, left: 0, bottom: 10 }}+ onMouseMove={(e) => {+ setActiveBar(e.activeTooltipIndex ?? -1);+ }}+ barCategoryGap={2}+ >+ <Tooltip+ cursor={{+ stroke: 'var(--def-200)',+ fill: 'var(--def-200)',+ }}+ />+ <YAxis+ {...yAxisProps}+ domain={[0, activeMetric.key === 'bounce_rate' ? 100 : 'auto']}+ width={25}+ />+ <XAxis {...omit(['scale', 'type'], xAxisProps)} />++ <CartesianGrid+ strokeDasharray="3 3"+ horizontal={true}+ vertical={false}+ className="stroke-border"+ />++ <Line+ key={`prev_${activeMetric.key}`}+ type="step"+ dataKey={`prev_${activeMetric.key}`}+ stroke={'var(--border)'}+ strokeWidth={2}+ isAnimationActive={false}+ dot={false}+ activeDot={{+ stroke: 'var(--foreground)',+ fill: 'var(--def-100)',+ strokeWidth: 1,+ r: 2,+ }}+ />+ <Bar+ key={activeMetric.key}+ dataKey={activeMetric.key}+ isAnimationActive={false}+ shape={(props: any) => (+ <BarShapeBlue isActive={activeBar === props.index} {...props} />+ )}+ />+ </ComposedChart>+ </ResponsiveContainer>+ </TooltipProvider>+ );+}diff --git a/apps/dashboard/src/components/overview/overview-range.tsx b/apps/start/src/components/overview/overview-range.tsxsimilarity index 97%rename from apps/dashboard/src/components/overview/overview-range.tsxrename to apps/start/src/components/overview/overview-range.tsxindex b1fe0c43b..d30c08647 100644--- a/apps/dashboard/src/components/overview/overview-range.tsx+++ b/apps/start/src/components/overview/overview-range.tsx@@ -1,5 +1,3 @@-'use client';-import { useOverviewOptions } from '@/components/overview/useOverviewOptions';import { TimeWindowPicker } from '@/components/time-window-picker';diff --git a/apps/dashboard/src/components/overview/overview-share/overview-share.tsx b/apps/start/src/components/overview/overview-share.tsxsimilarity index 67%rename from apps/dashboard/src/components/overview/overview-share/overview-share.tsxrename to apps/start/src/components/overview/overview-share.tsxindex 1a92d9bdb..0ec4a0855 100644--- a/apps/dashboard/src/components/overview/overview-share/overview-share.tsx+++ b/apps/start/src/components/overview/overview-share.tsx@@ -1,5 +1,3 @@-'use client';-import { Button } from '@/components/ui/button';import {DropdownMenu,@@ -8,25 +6,38 @@ import {DropdownMenuItem,DropdownMenuTrigger,} from '@/components/ui/dropdown-menu';+import { useTRPC } from '@/integrations/trpc/react';import { pushModal } from '@/modals';-import { api } from '@/trpc/client';+import { useMutation, useQuery } from '@tanstack/react-query';+import { Link } from '@tanstack/react-router';import { EyeIcon, Globe2Icon, LockIcon } from 'lucide-react';-import Link from 'next/link';-import { useRouter } from 'next/navigation';--import type { ShareOverview } from '@openpanel/db';interface OverviewShareProps {- data: ShareOverview | null;+ projectId: string;}-export function OverviewShare({ data }: OverviewShareProps) {- const router = useRouter();- const mutation = api.share.shareOverview.useMutation({- onSuccess() {- router.refresh();- },- });+export function OverviewShare({ projectId }: OverviewShareProps) {+ const trpc = useTRPC();+ const query = useQuery(+ trpc.share.overview.queryOptions(+ {+ projectId,+ },+ {+ retry(failureCount, error) {+ return error.message !== 'Share not found' && failureCount < 3;+ },+ },+ ),+ );+ const data = query.data;+ const mutation = useMutation(+ trpc.share.createOverview.mutationOptions({+ onSuccess() {+ query.refetch();+ },+ }),+ );return (<DropdownMenu>@@ -46,7 +57,8 @@ export function OverviewShare({ data }: OverviewShareProps) {{data?.public && (<DropdownMenuItem asChild><Link- href={`${process.env.NEXT_PUBLIC_DASHBOARD_URL}/share/overview/${data.id}`}+ to={'/share/overview/$shareId'}+ params={{ shareId: data.id }}><EyeIcon size={16} className="mr-2" />Viewdiff --git a/apps/dashboard/src/components/overview/overview-top-devices.tsx b/apps/start/src/components/overview/overview-top-devices.tsxsimilarity index 94%rename from apps/dashboard/src/components/overview/overview-top-devices.tsxrename to apps/start/src/components/overview/overview-top-devices.tsxindex b40810888..d94be03f5 100644--- a/apps/dashboard/src/components/overview/overview-top-devices.tsx+++ b/apps/start/src/components/overview/overview-top-devices.tsx@@ -1,15 +1,14 @@-'use client';--import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';import { cn } from '@/utils/cn';import { useState } from 'react';import { NOT_SET_VALUE } from '@openpanel/constants';import type { IChartType } from '@openpanel/validation';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';import { pushModal } from '@/modals';-import { api } from '@/trpc/client';+import { useQuery } from '@tanstack/react-query';import { SerieIcon } from '../report-chart/common/serie-icon';import { Widget, WidgetBody } from '../widget';import { OVERVIEW_COLUMNS_NAME } from './overview-constants';@@ -31,7 +30,7 @@ export default function OverviewTopDevices({const { interval, range, previous, startDate, endDate } =useOverviewOptions();const [filters, setFilter] = useEventQueryFilters();- const [chartType, setChartType] = useState<IChartType>('bar');+ const [chartType] = useState<IChartType>('bar');const isPageFilter = filters.find((filter) => filter.name === 'path');const [widget, setWidget, widgets] = useOverviewWidget('tech', {device: {@@ -309,16 +308,18 @@ export default function OverviewTopDevices({},});- const number = useNumber();+ const trpc = useTRPC();- const query = api.overview.topGeneric.useQuery({- projectId,- range,- filters,- column: widget.key,- startDate,- endDate,- });+ const query = useQuery(+ trpc.overview.topGeneric.queryOptions({+ projectId,+ range,+ filters,+ column: widget.key,+ startDate,+ endDate,+ }),+ );return (<>diff --git a/apps/dashboard/src/components/overview/overview-top-events/overview-top-events.tsx b/apps/start/src/components/overview/overview-top-events.tsxsimilarity index 84%rename from apps/dashboard/src/components/overview/overview-top-events/overview-top-events.tsxrename to apps/start/src/components/overview/overview-top-events.tsxindex a0fd0cfbe..e5d12ea67 100644--- a/apps/dashboard/src/components/overview/overview-top-events/overview-top-events.tsx+++ b/apps/start/src/components/overview/overview-top-events.tsx@@ -1,29 +1,31 @@-'use client';-import { ReportChart } from '@/components/report-chart';-import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';import { cn } from '@/utils/cn';import { useState } from 'react';import type { IChartType } from '@openpanel/validation';-import { Widget, WidgetBody } from '../../widget';-import { OverviewChartToggle } from '../overview-chart-toggle';-import { WidgetButtons, WidgetFooter, WidgetHead } from '../overview-widget';-import { useOverviewOptions } from '../useOverviewOptions';-import { useOverviewWidget } from '../useOverviewWidget';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { Widget, WidgetBody } from '../widget';+import { OverviewChartToggle } from './overview-chart-toggle';+import { WidgetButtons, WidgetFooter, WidgetHead } from './overview-widget';+import { useOverviewOptions } from './useOverviewOptions';+import { useOverviewWidget } from './useOverviewWidget';export interface OverviewTopEventsProps {projectId: string;- conversions: string[];}export default function OverviewTopEvents({projectId,- conversions,}: OverviewTopEventsProps) {const { interval, range, previous, startDate, endDate } =useOverviewOptions();const [filters] = useEventQueryFilters();+ const trpc = useTRPC();+ const { data: conversions } = useQuery(+ trpc.event.conversionNames.queryOptions({ projectId }),+ );const [chartType, setChartType] = useState<IChartType>('bar');const [widget, setWidget, widgets] = useOverviewWidget('ev', {your: {@@ -103,7 +105,7 @@ export default function OverviewTopEvents({conversions: {title: 'Conversions',btn: 'Conversions',- hide: conversions.length === 0,+ hide: !conversions || conversions.length === 0,chart: {report: {limit: 10,@@ -119,7 +121,7 @@ export default function OverviewTopEvents({id: 'conversion',name: 'name',operator: 'is',- value: conversions,+ value: conversions?.map((c) => c.name) ?? [],},],id: 'A',@@ -164,7 +166,7 @@ export default function OverviewTopEvents({))}</WidgetButtons></WidgetHead>- <WidgetBody>+ <WidgetBody className="p-3"><ReportChartoptions={{ hideID: true, columns: ['Event', 'Count'] }}report={{diff --git a/apps/dashboard/src/components/overview/overview-top-generic-modal.tsx b/apps/start/src/components/overview/overview-top-generic-modal.tsxsimilarity index 78%rename from apps/dashboard/src/components/overview/overview-top-generic-modal.tsxrename to apps/start/src/components/overview/overview-top-generic-modal.tsxindex 1f4c44439..9766a758f 100644--- a/apps/dashboard/src/components/overview/overview-top-generic-modal.tsx+++ b/apps/start/src/components/overview/overview-top-generic-modal.tsx@@ -1,10 +1,9 @@-'use client';--import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';+import { useTRPC } from '@/integrations/trpc/react';import { ModalContent, ModalHeader } from '@/modals/Modal/Container';-import { api } from '@/trpc/client';import type { IGetTopGenericInput } from '@openpanel/db';+import { useInfiniteQuery } from '@tanstack/react-query';import { ChevronRightIcon } from 'lucide-react';import { SerieIcon } from '../report-chart/common/serie-icon';import { Button } from '../ui/button';@@ -26,26 +25,29 @@ export default function OverviewTopGenericModal({column,}: OverviewTopGenericModalProps) {const [filters, setFilter] = useEventQueryFilters();- const { startDate, endDate, range, interval } = useOverviewOptions();- const query = api.overview.topGeneric.useInfiniteQuery(- {- projectId,- filters,- startDate,- endDate,- range,- limit: 50,- column,- },- {- getNextPageParam: (lastPage, pages) => {- if (lastPage.length === 0) {- return null;- }+ const { startDate, endDate, range } = useOverviewOptions();+ const trpc = useTRPC();+ const query = useInfiniteQuery(+ trpc.overview.topGeneric.infiniteQueryOptions(+ {+ projectId,+ filters,+ startDate,+ endDate,+ range,+ limit: 50,+ column,+ },+ {+ getNextPageParam: (lastPage, pages) => {+ if (lastPage.length === 0) {+ return null;+ }- return pages.length + 1;+ return pages.length + 1;+ },},- },+ ),);const data = query.data?.pages.flat() || [];diff --git a/apps/dashboard/src/components/overview/overview-top-geo.tsx b/apps/start/src/components/overview/overview-top-geo.tsxsimilarity index 89%rename from apps/dashboard/src/components/overview/overview-top-geo.tsxrename to apps/start/src/components/overview/overview-top-geo.tsxindex 40a240edd..eb5cde8ae 100644--- a/apps/dashboard/src/components/overview/overview-top-geo.tsx+++ b/apps/start/src/components/overview/overview-top-geo.tsx@@ -1,12 +1,14 @@-'use client';--import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';import { cn } from '@/utils/cn';+import { useState } from 'react';++import type { IChartType } from '@openpanel/validation';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';import { pushModal } from '@/modals';-import { api } from '@/trpc/client';import { NOT_SET_VALUE } from '@openpanel/constants';+import { useQuery } from '@tanstack/react-query';import { ChevronRightIcon } from 'lucide-react';import { ReportChart } from '../report-chart';import { SerieIcon } from '../report-chart/common/serie-icon';@@ -27,6 +29,7 @@ interface OverviewTopGeoProps {export default function OverviewTopGeo({ projectId }: OverviewTopGeoProps) {const { interval, range, previous, startDate, endDate } =useOverviewOptions();+ const [chartType, setChartType] = useState<IChartType>('bar');const [filters, setFilter] = useEventQueryFilters();const isPageFilter = filters.find((filter) => filter.name === 'path');const [widget, setWidget, widgets] = useOverviewWidgetV2('geo', {@@ -45,15 +48,18 @@ export default function OverviewTopGeo({ projectId }: OverviewTopGeoProps) {});const number = useNumber();+ const trpc = useTRPC();- const query = api.overview.topGeneric.useQuery({- projectId,- range,- filters,- column: widget.key,- startDate,- endDate,- });+ const query = useQuery(+ trpc.overview.topGeneric.queryOptions({+ projectId,+ range,+ filters,+ column: widget.key,+ startDate,+ endDate,+ }),+ );return (<>diff --git a/apps/dashboard/src/components/overview/overview-top-pages-modal.tsx b/apps/start/src/components/overview/overview-top-pages-modal.tsxsimilarity index 65%rename from apps/dashboard/src/components/overview/overview-top-pages-modal.tsxrename to apps/start/src/components/overview/overview-top-pages-modal.tsxindex 2c7aeb35f..6e6ce2017 100644--- a/apps/dashboard/src/components/overview/overview-top-pages-modal.tsx+++ b/apps/start/src/components/overview/overview-top-pages-modal.tsx@@ -1,9 +1,8 @@-'use client';--import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';+import { useTRPC } from '@/integrations/trpc/react';import { ModalContent, ModalHeader } from '@/modals/Modal/Container';-import { api } from '@/trpc/client';+import { useInfiniteQuery } from '@tanstack/react-query';import { Button } from '../ui/button';import { ScrollArea } from '../ui/scroll-area';import { OverviewWidgetTablePages } from './overview-widget-table';@@ -13,32 +12,27 @@ interface OverviewTopPagesProps {projectId: string;}-function getPath(path: string) {- try {- return new URL(path).pathname;- } catch {- return path;- }-}-export default function OverviewTopPagesModal({projectId,}: OverviewTopPagesProps) {const [filters, setFilter] = useEventQueryFilters();- const { startDate, endDate, range, interval } = useOverviewOptions();- const query = api.overview.topPages.useInfiniteQuery(- {- projectId,- filters,- startDate,- endDate,- mode: 'page',- range,- limit: 50,- },- {- getNextPageParam: (_, pages) => pages.length + 1,- },+ const { startDate, endDate, range } = useOverviewOptions();+ const trpc = useTRPC();+ const query = useInfiniteQuery(+ trpc.overview.topPages.infiniteQueryOptions(+ {+ projectId,+ filters,+ startDate,+ endDate,+ mode: 'page',+ range,+ limit: 50,+ },+ {+ getNextPageParam: (_, pages) => pages.length + 1,+ },+ ),);const data = query.data?.pages.flat();diff --git a/apps/dashboard/src/components/overview/overview-top-pages.tsx b/apps/start/src/components/overview/overview-top-pages.tsxsimilarity index 86%rename from apps/dashboard/src/components/overview/overview-top-pages.tsxrename to apps/start/src/components/overview/overview-top-pages.tsxindex 4061d120b..c5c83a905 100644--- a/apps/dashboard/src/components/overview/overview-top-pages.tsx+++ b/apps/start/src/components/overview/overview-top-pages.tsx@@ -1,12 +1,11 @@-'use client';--import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';import { cn } from '@/utils/cn';import { Globe2Icon } from 'lucide-react';import { parseAsBoolean, useQueryState } from 'nuqs';+import { useTRPC } from '@/integrations/trpc/react';import { pushModal } from '@/modals';-import { api } from '@/trpc/client';+import { useQuery } from '@tanstack/react-query';import { Button } from '../ui/button';import { Widget, WidgetBody } from '../widget';import OverviewDetailsButton from './overview-details-button';@@ -23,8 +22,7 @@ interface OverviewTopPagesProps {}export default function OverviewTopPages({ projectId }: OverviewTopPagesProps) {- const { interval, range, previous, startDate, endDate } =- useOverviewOptions();+ const { interval, range, startDate, endDate } = useOverviewOptions();const [filters] = useEventQueryFilters();const [domain, setDomain] = useQueryState('d', parseAsBoolean);const [widget, setWidget, widgets] = useOverviewWidgetV2('pages', {@@ -60,15 +58,18 @@ export default function OverviewTopPages({ projectId }: OverviewTopPagesProps) {// btn: 'Bots',// },});+ const trpc = useTRPC();- const query = api.overview.topPages.useQuery({- projectId,- filters,- startDate,- endDate,- mode: widget.key,- range,- });+ const query = useQuery(+ trpc.overview.topPages.queryOptions({+ projectId,+ filters,+ startDate,+ endDate,+ mode: widget.key,+ range,+ }),+ );const data = query.data;diff --git a/apps/dashboard/src/components/overview/overview-top-sources.tsx b/apps/start/src/components/overview/overview-top-sources.tsxsimilarity index 89%rename from apps/dashboard/src/components/overview/overview-top-sources.tsxrename to apps/start/src/components/overview/overview-top-sources.tsxindex cddbfe404..f4884fab0 100644--- a/apps/dashboard/src/components/overview/overview-top-sources.tsx+++ b/apps/start/src/components/overview/overview-top-sources.tsx@@ -1,11 +1,10 @@-'use client';--import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';import { cn } from '@/utils/cn';+import { useTRPC } from '@/integrations/trpc/react';import { pushModal } from '@/modals';-import { api } from '@/trpc/client';import { NOT_SET_VALUE } from '@openpanel/constants';+import { useQuery } from '@tanstack/react-query';import { SerieIcon } from '../report-chart/common/serie-icon';import { Widget, WidgetBody } from '../widget';import { OVERVIEW_COLUMNS_NAME } from './overview-constants';@@ -24,7 +23,7 @@ interface OverviewTopSourcesProps {export default function OverviewTopSources({projectId,}: OverviewTopSourcesProps) {- const { interval, range, startDate, endDate } = useOverviewOptions();+ const { range, startDate, endDate } = useOverviewOptions();const [filters, setFilter] = useEventQueryFilters();const [widget, setWidget, widgets] = useOverviewWidgetV2('sources', {referrer_name: {@@ -60,15 +59,18 @@ export default function OverviewTopSources({btn: 'Content',},});+ const trpc = useTRPC();- const query = api.overview.topGeneric.useQuery({- projectId,- range,- filters,- column: widget.key,- startDate,- endDate,- });+ const query = useQuery(+ trpc.overview.topGeneric.queryOptions({+ projectId,+ range,+ filters,+ column: widget.key,+ startDate,+ endDate,+ }),+ );return (<>diff --git a/apps/dashboard/src/components/overview/overview-widget-table.tsx b/apps/start/src/components/overview/overview-widget-table.tsxsimilarity index 98%rename from apps/dashboard/src/components/overview/overview-widget-table.tsxrename to apps/start/src/components/overview/overview-widget-table.tsxindex 694f9398d..f2e9cc53a 100644--- a/apps/dashboard/src/components/overview/overview-widget-table.tsx+++ b/apps/start/src/components/overview/overview-widget-table.tsx@@ -1,5 +1,5 @@-import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';+import { useNumber } from '@/hooks/use-numer-formatter';import type { RouterOutputs } from '@/trpc/client';import { cn } from '@/utils/cn';import { ExternalLinkIcon } from 'lucide-react';@@ -122,7 +122,7 @@ export function OverviewWidgetTablePages({}[];showDomain?: boolean;}) {- const [filters, setFilter] = useEventQueryFilters();+ const [_filters, setFilter] = useEventQueryFilters();const number = useNumber();const maxSessions = Math.max(...data.map((item) => item.sessions));return (diff --git a/apps/dashboard/src/components/overview/overview-widget.tsx b/apps/start/src/components/overview/overview-widget.tsxsimilarity index 79%rename from apps/dashboard/src/components/overview/overview-widget.tsxrename to apps/start/src/components/overview/overview-widget.tsxindex 34194dcb9..cb30c4312 100644--- a/apps/dashboard/src/components/overview/overview-widget.tsx+++ b/apps/start/src/components/overview/overview-widget.tsx@@ -1,8 +1,6 @@-'use client';--import { useThrottle } from '@/hooks/useThrottle';+import { useThrottle } from '@/hooks/use-throttle';import { cn } from '@/utils/cn';-import { ChevronsUpDownIcon } from 'lucide-react';+import { ChevronsUpDownIcon, Icon, type LucideIcon } from 'lucide-react';import { last } from 'ramda';import { Children, useEffect, useRef, useState } from 'react';@@ -13,14 +11,14 @@ import {DropdownMenuItem,DropdownMenuTrigger,} from '../ui/dropdown-menu';-import type { WidgetHeadProps } from '../widget';+import type { WidgetHeadProps, WidgetTitleProps } from '../widget';import { WidgetHead as WidgetHeadBase } from '../widget';export function WidgetHead({ className, ...props }: WidgetHeadProps) {return (<WidgetHeadBaseclassName={cn(- 'flex flex-col rounded-t-xl p-0 [&_.title]:flex [&_.title]:items-center [&_.title]:justify-between [&_.title]:p-4 [&_.title]:font-semibold',+ 'relative flex flex-col rounded-t-xl p-0 [&_.title]:flex [&_.title]:items-center [&_.title]:p-4 [&_.title]:font-semibold',className,)}{...props}@@ -28,6 +26,47 @@ export function WidgetHead({ className, ...props }: WidgetHeadProps) {);}+export function WidgetTitle({+ children,+ className,+ icon: Icon,+ ...props+}: WidgetTitleProps & {+ icon?: LucideIcon;+}) {+ return (+ <div+ className={cn('title text-left row justify-start', className)}+ {...props}+ >+ {Icon && (+ <div className="rounded-lg bg-def-200 p-1 mr-2">+ <Icon size={16} />+ </div>+ )}+ {children}+ </div>+ );+}++export function WidgetAbsoluteButtons({+ className,+ children,+ ...props+}: WidgetHeadProps) {+ return (+ <div+ className={cn(+ 'row gap-1 absolute right-4 top-1/2 -translate-y-1/2',+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}+export function WidgetButtons({className,children,diff --git a/apps/dashboard/src/components/overview/useOverviewOptions.ts b/apps/start/src/components/overview/useOverviewOptions.tssimilarity index 94%rename from apps/dashboard/src/components/overview/useOverviewOptions.tsrename to apps/start/src/components/overview/useOverviewOptions.tsindex 116802c04..b995cacf6 100644--- a/apps/dashboard/src/components/overview/useOverviewOptions.ts+++ b/apps/start/src/components/overview/useOverviewOptions.ts@@ -6,7 +6,7 @@ import {useQueryState,} from 'nuqs';-import { setStorageItem } from '@/utils/storage';+import { getStorageItem, setStorageItem } from '@/utils/storage';import {getDefaultIntervalByDates,getDefaultIntervalByRange,@@ -30,7 +30,7 @@ export function useOverviewOptions() {const [range, setRange] = useQueryState('range',parseAsStringEnum(mapKeys(timeWindows))- .withDefault('7d')+ .withDefault(getStorageItem('range', '7d')).withOptions({...nuqsOptions,clearOnDefault: false,diff --git a/apps/dashboard/src/components/overview/useOverviewWidget.tsx b/apps/start/src/components/overview/useOverviewWidget.tsxsimilarity index 100%rename from apps/dashboard/src/components/overview/useOverviewWidget.tsxrename to apps/start/src/components/overview/useOverviewWidget.tsxdiff --git a/apps/start/src/components/page-container.tsx b/apps/start/src/components/page-container.tsxnew file mode 100644index 000000000..1c9c2510e--- /dev/null+++ b/apps/start/src/components/page-container.tsx@@ -0,0 +1,18 @@+import { cn } from '@/utils/cn';++interface PageContainerProps {+ className?: string;+ children: React.ReactNode;+}++export function PageContainer({+ className,+ children,+ ...props+}: PageContainerProps) {+ return (+ <div className={cn('container p-8', className)} {...props}>+ {children}+ </div>+ );+}diff --git a/apps/start/src/components/page-header.tsx b/apps/start/src/components/page-header.tsxnew file mode 100644index 000000000..047cea3ff--- /dev/null+++ b/apps/start/src/components/page-header.tsx@@ -0,0 +1,25 @@+import { cn } from '@/utils/cn';++interface PageHeaderProps {+ title: React.ReactNode;+ description?: string;+ className?: string;+ children?: React.ReactNode;+}++export function PageHeader({+ title,+ description,+ className,+ children,+}: PageHeaderProps) {+ return (+ <div className={cn('space-y-1', className)}>+ <h1 className="text-2xl font-semibold">{title}</h1>+ {description && (+ <p className="text-muted-foreground font-medium">{description}</p>+ )}+ {children}+ </div>+ );+}diff --git a/apps/start/src/components/pagination-floating.tsx b/apps/start/src/components/pagination-floating.tsxnew file mode 100644index 000000000..abcb63652--- /dev/null+++ b/apps/start/src/components/pagination-floating.tsx@@ -0,0 +1,11 @@+import { Pagination, type Props } from './pagination';++export function FloatingPagination(props: Props) {+ return (+ <div className="fixed bottom-8 left-0 lg:left-72 right-0 row justify-center">+ <div className="card p-8 py-4 backdrop-blur-sm bg-background/50 shadow-lg">+ <Pagination {...props} />+ </div>+ </div>+ );+}diff --git a/apps/start/src/components/pagination.tsx b/apps/start/src/components/pagination.tsxnew file mode 100644index 000000000..87643f4df--- /dev/null+++ b/apps/start/src/components/pagination.tsx@@ -0,0 +1,106 @@+import { cn } from '@/utils/cn';+import {+ ChevronLeftIcon,+ ChevronRightIcon,+ ChevronsLeftIcon,+ ChevronsRightIcon,+} from 'lucide-react';+import { useState } from 'react';++import { useIsFetching } from '@tanstack/react-query';+import { Button } from './ui/button';++export function usePagination(take: number) {+ const [page, setPage] = useState(0);+ return {+ take,+ skip: page * take,+ setPage,+ page,+ paginate: <T,>(data: T[]): T[] =>+ data.slice(page * take, (page + 1) * take),+ };+}++export type Props = {+ canNextPage: boolean;+ canPreviousPage: boolean;+ pageIndex: number | string;+ nextPage: () => void;+ previousPage: () => void;+ className?: string;+ loading?: boolean;+ firstPage?: () => void;+ lastPage?: () => void;+};++export function Pagination({+ canNextPage,+ canPreviousPage,+ pageIndex,+ firstPage,+ lastPage,+ nextPage,+ previousPage,+ className,+}: Props) {+ const isFetching = useIsFetching() > 0;+ const isLoading = isFetching;+ return (+ <div+ className={cn(+ 'flex select-none items-center justify-end gap-1',+ className,+ )}+ >+ {typeof firstPage === 'function' && (+ <Button+ variant="outline"+ size="icon"+ onClick={() => firstPage?.()}+ disabled={!canPreviousPage}+ className="max-sm:hidden"+ icon={ChevronsLeftIcon}+ />+ )}+ <Button+ variant="outline"+ size="icon"+ onClick={() => previousPage()}+ disabled={!canPreviousPage}+ icon={ChevronLeftIcon}+ />++ <Button+ loading={isLoading}+ loadingAbsolute+ loadingType="ring"+ disabled+ variant="outline"+ size="icon"+ className={cn(typeof pageIndex === 'string' && 'min-w-8 w-auto px-2')}+ >+ {typeof pageIndex === 'number' ? pageIndex + 1 : pageIndex}+ </Button>++ <Button+ variant="outline"+ size="icon"+ onClick={() => nextPage()}+ disabled={!canNextPage}+ icon={ChevronRightIcon}+ />++ {typeof lastPage === 'function' && (+ <Button+ variant="outline"+ size="icon"+ onClick={() => lastPage?.()}+ disabled={!canNextPage}+ className="max-sm:hidden"+ icon={ChevronsRightIcon}+ />+ )}+ </div>+ );+}diff --git a/apps/dashboard/src/components/ping.tsx b/apps/start/src/components/ping.tsxsimilarity index 100%rename from apps/dashboard/src/components/ping.tsxrename to apps/start/src/components/ping.tsxdiff --git a/apps/start/src/components/profile-toggle.tsx b/apps/start/src/components/profile-toggle.tsxnew file mode 100644index 000000000..92f476b33--- /dev/null+++ b/apps/start/src/components/profile-toggle.tsx@@ -0,0 +1,70 @@+import { Button } from '@/components/ui/button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuSeparator,+ DropdownMenuShortcut,+ DropdownMenuSub,+ DropdownMenuSubContent,+ DropdownMenuSubTrigger,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { useTheme } from '@/hooks/use-theme';+import { CheckIcon, UserIcon } from 'lucide-react';++import { useLogout } from '@/hooks/use-logout';+import { themeConfig } from './theme-provider';++interface Props {+ className?: string;+}++export function ProfileToggle({ className }: Props) {+ const { setTheme, userTheme, themes } = useTheme();+ const logout = useLogout();++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="icon" className={className}>+ <UserIcon className="size-4" />+ <span className="sr-only">Profile</span>+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="center" className="w-56">+ <DropdownMenuSub>+ <DropdownMenuSubTrigger className="flex w-full items-center justify-between">+ Theme+ <DropdownMenuShortcut>+ <span className="mr-2">{themeConfig[userTheme].icon}</span>+ {themeConfig[userTheme].label}+ </DropdownMenuShortcut>+ </DropdownMenuSubTrigger>+ <DropdownMenuSubContent className="p-0">+ {themes.map((themeOption) => (+ <DropdownMenuItem+ key={themeOption.key}+ onClick={() => setTheme(themeOption.key)}+ className="capitalize"+ >+ <span className="mr-2">{themeOption.icon}</span>+ {themeOption.label}+ {userTheme === themeOption.key && (+ <CheckIcon className="ml-2 h-4 w-4" />+ )}+ </DropdownMenuItem>+ ))}+ </DropdownMenuSubContent>+ </DropdownMenuSub>+ <DropdownMenuSeparator />+ <DropdownMenuItem+ className="text-red-600"+ onClick={() => logout.mutate()}+ >+ Logout+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/apps/start/src/components/profiles/latest-events.tsx b/apps/start/src/components/profiles/latest-events.tsxnew file mode 100644index 000000000..9ec5ac9f9--- /dev/null+++ b/apps/start/src/components/profiles/latest-events.tsx@@ -0,0 +1,74 @@+'use client';++import { Button } from '@/components/ui/button';+import { Widget } from '@/components/widget';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { useRouter } from '@tanstack/react-router';+import { ActivityIcon } from 'lucide-react';+import { EventsViewOptions, useEventsViewOptions } from '../events/table';+import { EventItem } from '../events/table/item';+import {+ WidgetAbsoluteButtons,+ WidgetHead,+ WidgetTitle,+} from '../overview/overview-widget';+import { ScrollArea } from '../ui/scroll-area';++type Props = {+ profileId: string;+ projectId: string;+ organizationId: string;+};++export const LatestEvents = ({+ profileId,+ projectId,+ organizationId,+}: Props) => {+ const [viewOptions] = useEventsViewOptions();+ const router = useRouter();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.event.events.queryOptions({+ projectId,+ profileId,+ }),+ );++ const handleShowMore = () => {+ router.navigate({+ to: '/$organizationId/$projectId/profiles/$profileId/events',+ params: {+ organizationId,+ projectId,+ profileId,+ },+ });+ };++ return (+ <Widget className="w-full overflow-hidden">+ <WidgetHead>+ <WidgetTitle icon={ActivityIcon}>Latest Events</WidgetTitle>+ <WidgetAbsoluteButtons>+ <Button variant="outline" size="sm" onClick={handleShowMore}>+ All+ </Button>+ <EventsViewOptions />+ </WidgetAbsoluteButtons>+ </WidgetHead>++ <ScrollArea className="h-72">+ {query.data?.data?.map((event) => (+ <EventItem+ className="border-0 rounded-none border-b last:border-b-0 [&_[data-slot='inner']]:px-4"+ key={event.id}+ event={event}+ viewOptions={viewOptions}+ />+ ))}+ </ScrollArea>+ </Widget>+ );+};diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/most-events/most-events.tsx b/apps/start/src/components/profiles/most-events.tsxsimilarity index 75%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/most-events/most-events.tsxrename to apps/start/src/components/profiles/most-events.tsxindex fa8db293b..02341330e 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/most-events/most-events.tsx+++ b/apps/start/src/components/profiles/most-events.tsx@@ -1,18 +1,16 @@-'use client';--import { Widget, WidgetHead, WidgetTitle } from '@/components/widget';-import { BellIcon } from 'lucide-react';+import { Widget } from '@/components/widget';+import { WidgetHead, WidgetTitle } from '../overview/overview-widget';type Props = {data: { count: number; name: string }[];};-const MostEvents = ({ data }: Props) => {+export const MostEvents = ({ data }: Props) => {const max = Math.max(...data.map((item) => item.count));return (<Widget className="w-full"><WidgetHead>- <WidgetTitle icon={BellIcon}>Popular events</WidgetTitle>+ <WidgetTitle>Popular events</WidgetTitle></WidgetHead><div className="flex flex-col gap-1 p-1">{data.slice(0, 5).map((item) => (@@ -33,5 +31,3 @@ const MostEvents = ({ data }: Props) => {</Widget>);};--export default MostEvents;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/popular-routes/popular-routes.tsx b/apps/start/src/components/profiles/popular-routes.tsxsimilarity index 73%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/popular-routes/popular-routes.tsxrename to apps/start/src/components/profiles/popular-routes.tsxindex e72e94e32..17fb6bd45 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/popular-routes/popular-routes.tsx+++ b/apps/start/src/components/profiles/popular-routes.tsx@@ -1,18 +1,16 @@-'use client';--import { Widget, WidgetHead, WidgetTitle } from '@/components/widget';-import { BellIcon, MonitorPlayIcon } from 'lucide-react';+import { Widget } from '@/components/widget';+import { WidgetHead, WidgetTitle } from '../overview/overview-widget';type Props = {data: { count: number; path: string }[];};-const PopularRoutes = ({ data }: Props) => {+export const PopularRoutes = ({ data }: Props) => {const max = Math.max(...data.map((item) => item.count));return (<Widget className="w-full"><WidgetHead>- <WidgetTitle icon={MonitorPlayIcon}>Most visted pages</WidgetTitle>+ <WidgetTitle>Most visted pages</WidgetTitle></WidgetHead><div className="flex flex-col gap-1 p-1">{data.slice(0, 5).map((item) => (@@ -33,5 +31,3 @@ const PopularRoutes = ({ data }: Props) => {</Widget>);};--export default PopularRoutes;diff --git a/apps/start/src/components/profiles/profile-activity.tsx b/apps/start/src/components/profiles/profile-activity.tsxnew file mode 100644index 000000000..a4e4a21a8--- /dev/null+++ b/apps/start/src/components/profiles/profile-activity.tsx@@ -0,0 +1,92 @@+import { Widget, WidgetBody } from '@/components/widget';+import { cn } from '@/utils/cn';+import {+ addMonths,+ eachDayOfInterval,+ endOfMonth,+ format,+ formatISO,+ isSameMonth,+ startOfMonth,+ subMonths,+} from 'date-fns';+import { ActivityIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';+import { useState } from 'react';+import {+ WidgetAbsoluteButtons,+ WidgetHead,+ WidgetTitle,+} from '../overview/overview-widget';+import { Button } from '../ui/button';++type Props = {+ data: { count: number; date: string }[];+};++const MonthCalendar = ({+ month,+ data,+}: { month: Date; data: Props['data'] }) => (+ <div>+ <div className="mb-2 text-sm">{format(month, 'MMMM yyyy')}</div>+ <div className="-m-1 grid grid-cols-7 gap-1 p-1">+ {eachDayOfInterval({+ start: startOfMonth(month),+ end: endOfMonth(month),+ }).map((date) => {+ const hit = data.find((item) =>+ item.date.includes(formatISO(date, { representation: 'date' })),+ );+ return (+ <div+ key={date.toISOString()}+ className={cn(+ 'aspect-square w-full rounded',+ hit ? 'bg-highlight' : 'bg-def-200',+ )}+ />+ );+ })}+ </div>+ </div>+);++export const ProfileActivity = ({ data }: Props) => {+ const [startDate, setStartDate] = useState(startOfMonth(new Date()));++ return (+ <Widget className="w-full">+ <WidgetHead className="row justify-between relative">+ <WidgetTitle icon={ActivityIcon}>Activity</WidgetTitle>+ <WidgetAbsoluteButtons>+ <Button+ variant="outline"+ size="icon"+ onClick={() => setStartDate(subMonths(startDate, 1))}+ >+ <ChevronLeftIcon size={14} />+ </Button>+ <Button+ variant="outline"+ size="icon"+ disabled={isSameMonth(startDate, new Date())}+ onClick={() => setStartDate(addMonths(startDate, 1))}+ >+ <ChevronRightIcon size={14} />+ </Button>+ </WidgetAbsoluteButtons>+ </WidgetHead>+ <WidgetBody>+ <div className="grid grid-cols-1 gap-4 md:grid-cols-2">+ {[3, 2, 1, 0].map((offset) => (+ <MonthCalendar+ key={offset}+ month={subMonths(startDate, offset)}+ data={data}+ />+ ))}+ </div>+ </WidgetBody>+ </Widget>+ );+};diff --git a/apps/dashboard/src/components/profiles/profile-avatar.tsx b/apps/start/src/components/profiles/profile-avatar.tsxsimilarity index 75%rename from apps/dashboard/src/components/profiles/profile-avatar.tsxrename to apps/start/src/components/profiles/profile-avatar.tsxindex 0fc1d22d6..edd482887 100644--- a/apps/dashboard/src/components/profiles/profile-avatar.tsx+++ b/apps/start/src/components/profiles/profile-avatar.tsx@@ -1,18 +1,16 @@-'use client';-import { cn } from '@/utils/cn';import { AvatarImage } from '@radix-ui/react-avatar';import type { VariantProps } from 'class-variance-authority';import { cva } from 'class-variance-authority';-import type { IServiceProfile } from '@openpanel/db';-+import { type GetProfileNameProps, getProfileName } from '@/utils/getters';import { Avatar, AvatarFallback } from '../ui/avatar';interface ProfileAvatarPropsextends VariantProps<typeof variants>,- Partial<Pick<IServiceProfile, 'avatar' | 'firstName'>> {+ GetProfileNameProps {className?: string;+ avatar?: string;}const variants = cva('shrink-0', {@@ -31,15 +29,19 @@ const variants = cva('shrink-0', {export function ProfileAvatar({avatar,- firstName,className,size,+ ...profile}: ProfileAvatarProps) {+ const name = getProfileName(profile);+ const isValidAvatar = avatar?.startsWith('http');+return (<Avatar className={cn(variants({ className, size }), className)}>- {avatar && <AvatarImage src={avatar} />}+ {isValidAvatar && <AvatarImage src={avatar} className="rounded-full" />}<AvatarFallbackclassName={cn(+ 'rounded-full',size === 'lg'? 'text-lg': size === 'sm'@@ -50,7 +52,7 @@ export function ProfileAvatar({'bg-def-200 text-muted-foreground',)}>- {firstName?.at(0) ?? '🫣'}+ {name?.at(0)?.toUpperCase() ?? '🧔♂️'}</AvatarFallback></Avatar>);diff --git a/apps/start/src/components/profiles/profile-charts.tsx b/apps/start/src/components/profiles/profile-charts.tsxnew file mode 100644index 000000000..16d7ce202--- /dev/null+++ b/apps/start/src/components/profiles/profile-charts.tsx@@ -0,0 +1,105 @@+import { ReportChart } from '@/components/report-chart';+import { Widget, WidgetBody } from '@/components/widget';+import { memo } from 'react';++import type { IChartProps } from '@openpanel/validation';+import { WidgetHead } from '../overview/overview-widget';++type Props = {+ profileId: string;+ projectId: string;+};++export const ProfileCharts = memo(+ ({ profileId, projectId }: Props) => {+ const pageViewsChart: IChartProps = {+ projectId,+ chartType: 'linear',+ events: [+ {+ segment: 'event',+ filters: [+ {+ id: 'profile_id',+ name: 'profile_id',+ operator: 'is',+ value: [profileId],+ },+ ],+ id: 'A',+ name: 'screen_view',+ displayName: 'Events',+ },+ ],+ breakdowns: [+ {+ id: 'path',+ name: 'path',+ },+ ],+ lineType: 'monotone',+ interval: 'day',+ name: 'Events',+ range: '30d',+ previous: false,+ metric: 'sum',+ };++ const eventsChart: IChartProps = {+ projectId,+ chartType: 'linear',+ events: [+ {+ segment: 'event',+ filters: [+ {+ id: 'profile_id',+ name: 'profile_id',+ operator: 'is',+ value: [profileId],+ },+ ],+ id: 'A',+ name: '*',+ displayName: 'Events',+ },+ ],+ breakdowns: [+ {+ id: 'name',+ name: 'name',+ },+ ],+ lineType: 'monotone',+ interval: 'day',+ name: 'Events',+ range: '30d',+ previous: false,+ metric: 'sum',+ };++ return (+ <>+ <Widget className="col-span-6 md:col-span-3">+ <WidgetHead>+ <span className="title">Page views</span>+ </WidgetHead>+ <WidgetBody>+ <ReportChart report={pageViewsChart} />+ </WidgetBody>+ </Widget>+ <Widget className="col-span-6 md:col-span-3">+ <WidgetHead>+ <span className="title">Events per day</span>+ </WidgetHead>+ <WidgetBody>+ <ReportChart report={eventsChart} />+ </WidgetBody>+ </Widget>+ </>+ );+ },+ (a, b) => {+ return a.profileId === b.profileId && a.projectId === b.projectId;+ },+);diff --git a/apps/start/src/components/profiles/profile-metrics.tsx b/apps/start/src/components/profiles/profile-metrics.tsxnew file mode 100644index 000000000..03e8c145b--- /dev/null+++ b/apps/start/src/components/profiles/profile-metrics.tsx@@ -0,0 +1,110 @@+import { OverviewMetricCard } from '@/components/overview/overview-metric-card';++import type { IProfileMetrics } from '@openpanel/db';++type Props = {+ data: IProfileMetrics;+};++const PROFILE_METRICS = [+ {+ title: 'Total Events',+ key: 'totalEvents',+ unit: '',+ inverted: false,+ },+ {+ title: 'Sessions',+ key: 'sessions',+ unit: '',+ inverted: false,+ },+ {+ title: 'Page Views',+ key: 'screenViews',+ unit: '',+ inverted: false,+ },+ {+ title: 'Avg Events/Session',+ key: 'avgEventsPerSession',+ unit: '',+ inverted: false,+ },+ {+ title: 'Bounce Rate',+ key: 'bounceRate',+ unit: '%',+ inverted: true,+ },+ {+ title: 'Session Duration (Avg)',+ key: 'durationAvg',+ unit: 'min',+ inverted: false,+ },+ {+ title: 'Session Duration (P90)',+ key: 'durationP90',+ unit: 'min',+ inverted: false,+ },+ {+ title: 'First seen',+ key: 'firstSeen',+ unit: 'timeAgo',+ inverted: false,+ },+ {+ title: 'Last seen',+ key: 'lastSeen',+ unit: 'timeAgo',+ inverted: false,+ },+ {+ title: 'Days Active',+ key: 'uniqueDaysActive',+ unit: '',+ inverted: false,+ },+ {+ title: 'Conversion Events',+ key: 'conversionEvents',+ unit: '',+ inverted: false,+ },+ {+ title: 'Avg Time Between Sessions (h)',+ key: 'avgTimeBetweenSessions',+ unit: 'min',+ inverted: false,+ },+] as const;++export const ProfileMetrics = ({ data }: Props) => {+ return (+ <div className="relative col-span-6 -m-4 mb-0 mt-0 md:m-0">+ <div className="card grid grid-cols-2 overflow-hidden rounded-md md:grid-cols-4 lg:grid-cols-6">+ {PROFILE_METRICS.map((metric) => (+ <OverviewMetricCard+ key={metric.key}+ id={metric.key}+ label={metric.title}+ metric={{+ current:+ metric.unit === 'timeAgo' &&+ typeof data[metric.key] === 'string'+ ? new Date(data[metric.key] as string).getTime()+ : (data[metric.key] as number) || 0,+ previous: null, // Profile metrics don't have previous period comparison+ }}+ unit={metric.unit}+ data={[]}+ inverted={metric.inverted}+ isLoading={false}+ />+ ))}+ </div>+ </div>+ );+};diff --git a/apps/start/src/components/profiles/profile-properties.tsx b/apps/start/src/components/profiles/profile-properties.tsxnew file mode 100644index 000000000..b035f112b--- /dev/null+++ b/apps/start/src/components/profiles/profile-properties.tsx@@ -0,0 +1,114 @@+import { KeyValueGrid } from '@/components/ui/key-value-grid';+import { Widget } from '@/components/widget';+import { cn } from '@/utils/cn';+import { formatDateTime } from '@/utils/date';+import { parseAsStringEnum, useQueryState } from 'nuqs';++import type { IServiceEvent, IServiceProfile } from '@openpanel/db';+import { WidgetButtons, WidgetHead } from '../overview/overview-widget';++type Props = {+ profile: IServiceProfile;+};++export const ProfileProperties = ({ profile }: Props) => {+ const [tab, setTab] = useQueryState(+ 'tab',+ parseAsStringEnum(['profile', 'properties']).withDefault('profile'),+ );++ return (+ <Widget className="w-full">+ <WidgetHead>+ <div className="title">Profile Information</div>+ <WidgetButtons>+ {[+ {+ key: 'profile',+ btn: 'Profile',+ },+ {+ key: 'properties',+ btn: 'Properties',+ },+ ].map((w) => (+ <button+ type="button"+ key={w.key}+ onClick={() => setTab(w.key as 'profile' | 'properties')}+ className={cn(w.key === tab && 'active')}+ >+ {w.btn}+ </button>+ ))}+ </WidgetButtons>+ </WidgetHead>++ {tab === 'profile' && (+ <KeyValueGrid+ copyable+ className="border-0"+ columns={3}+ data={[+ { name: 'id', value: profile.id },+ { name: 'firstName', value: profile.firstName },+ { name: 'lastName', value: profile.lastName },+ { name: 'email', value: profile.email },+ { name: 'isExternal', value: profile.isExternal ? 'Yes' : 'No' },+ {+ name: 'createdAt',+ value: formatDateTime(new Date(profile.createdAt)),+ },+ ...(profile.properties.country+ ? [{ name: 'country', value: profile.properties.country }]+ : []),+ ...(profile.properties.city+ ? [{ name: 'city', value: profile.properties.city }]+ : []),+ ...(profile.properties.os+ ? [{ name: 'os', value: profile.properties.os }]+ : []),+ ...(profile.properties.browser+ ? [{ name: 'browser', value: profile.properties.browser }]+ : []),+ ...(profile.properties.device+ ? [{ name: 'device', value: profile.properties.device }]+ : []),+ ...(profile.properties.referrer_name+ ? [+ {+ name: 'referrerName',+ value: profile.properties.referrer_name,+ },+ ]+ : []),+ ].map((item) => ({+ ...item,+ event: {+ ...profile,+ ...profile.properties,+ } as unknown as IServiceEvent,+ }))}+ />+ )}++ {tab === 'properties' && (+ <KeyValueGrid+ copyable+ className="border-0"+ columns={3}+ data={Object.entries(profile.properties)+ .filter(([, value]) => value !== undefined && value !== '')+ .map(([key, value]) => ({+ name: key,+ value: value,+ event: {+ ...profile,+ ...profile.properties,+ } as unknown as IServiceEvent,+ }))}+ />+ )}+ </Widget>+ );+};diff --git a/apps/dashboard/src/components/profiles/table/columns.tsx b/apps/start/src/components/profiles/table/columns.tsxsimilarity index 87%rename from apps/dashboard/src/components/profiles/table/columns.tsxrename to apps/start/src/components/profiles/table/columns.tsxindex 33bb42710..cef783d87 100644--- a/apps/dashboard/src/components/profiles/table/columns.tsx+++ b/apps/start/src/components/profiles/table/columns.tsx@@ -10,7 +10,7 @@ import type { IServiceProfile } from '@openpanel/db';import { ProfileAvatar } from '../profile-avatar';-export function useColumns(type?: 'profiles' | 'power-users') {+export function useColumns(type: 'profiles' | 'power-users') {const columns: ColumnDef<IServiceProfile>[] = [{accessorKey: 'name',@@ -82,6 +82,21 @@ export function useColumns(type?: 'profiles' | 'power-users') {);},},+ {+ accessorKey: 'model',+ header: 'Model',+ cell({ row }) {+ const { model, brand } = row.original.properties;+ return (+ <div className="flex min-w-0 items-center gap-2">+ <SerieIcon name={brand} />+ <span className="truncate">+ {brand} / {model}+ </span>+ </div>+ );+ },+ },{accessorKey: 'createdAt',header: 'Last seen',diff --git a/apps/start/src/components/profiles/table/index.tsx b/apps/start/src/components/profiles/table/index.tsxnew file mode 100644index 000000000..daa4d3b72--- /dev/null+++ b/apps/start/src/components/profiles/table/index.tsx@@ -0,0 +1,94 @@+import type { UseQueryResult } from '@tanstack/react-query';++import { useDataTableColumnVisibility } from '@/components/ui/data-table/data-table-hooks';+import type { RouterOutputs } from '@/trpc/client';+import { useColumns } from './columns';++import { DataTable } from '@/components/ui/data-table/data-table';+import { useDataTablePagination } from '@/components/ui/data-table/data-table-hooks';+import {+ AnimatedSearchInput,+ DataTableToolbarContainer,+} from '@/components/ui/data-table/data-table-toolbar';+import { DataTableViewOptions } from '@/components/ui/data-table/data-table-view-options';+import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { arePropsEqual } from '@/utils/are-props-equal';+import type { IServiceProfile } from '@openpanel/db';+import type { PaginationState, Table, Updater } from '@tanstack/react-table';+import { getCoreRowModel, useReactTable } from '@tanstack/react-table';+import { memo } from 'react';++type Props = {+ query: UseQueryResult<RouterOutputs['profile']['list'], unknown>;+ type: 'profiles' | 'power-users';+};++const LOADING_DATA = [{}, {}, {}, {}, {}, {}, {}, {}, {}] as IServiceProfile[];++export const ProfilesTable = memo(+ ({ type, query }: Props) => {+ const { data, isLoading } = query;+ const columns = useColumns(type);++ const { setPage, state: pagination } = useDataTablePagination();+ const { columnVisibility, setColumnVisibility } =+ useDataTableColumnVisibility(columns);++ const table = useReactTable({+ data: isLoading ? LOADING_DATA : (data?.data ?? []),+ getCoreRowModel: getCoreRowModel(),+ manualPagination: true,+ manualFiltering: true,+ manualSorting: true,+ columns,+ rowCount: data?.meta.count,+ pageCount: Math.ceil(+ (data?.meta.count || 0) / (pagination.pageSize || 1),+ ),+ filterFns: {+ isWithinRange: () => true,+ },+ state: {+ pagination,+ columnVisibility,+ },+ onColumnVisibilityChange: setColumnVisibility,+ onPaginationChange: (updaterOrValue: Updater<PaginationState>) => {+ const nextPagination =+ typeof updaterOrValue === 'function'+ ? updaterOrValue(pagination)+ : updaterOrValue;+ setPage(nextPagination.pageIndex + 1);+ },+ });++ return (+ <>+ <ProfileTableToolbar table={table} />+ <DataTable+ table={table}+ loading={isLoading}+ empty={{+ title: 'No profiles',+ description: "Looks like you haven't identified any profiles yet.",+ }}+ />+ </>+ );+ },+ arePropsEqual(['query.isLoading', 'query.data', 'type']),+);++function ProfileTableToolbar({ table }: { table: Table<IServiceProfile> }) {+ const { search, setSearch } = useSearchQueryState();+ return (+ <DataTableToolbarContainer>+ <AnimatedSearchInput+ placeholder="Search profiles"+ value={search}+ onChange={setSearch}+ />+ <DataTableViewOptions table={table} />+ </DataTableToolbarContainer>+ );+}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-project-selector.tsx b/apps/start/src/components/project-selector.tsxsimilarity index 74%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-project-selector.tsxrename to apps/start/src/components/project-selector.tsxindex 62fcd8ede..ebd5a042a 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/layout-project-selector.tsx+++ b/apps/start/src/components/project-selector.tsx@@ -1,7 +1,6 @@'use client';import { Button } from '@/components/ui/button';-import { Combobox } from '@/components/ui/combobox';import {DropdownMenu,DropdownMenuContent,@@ -12,55 +11,63 @@ import {DropdownMenuShortcut,DropdownMenuTrigger,} from '@/components/ui/dropdown-menu';-import { useAppParams } from '@/hooks/useAppParams';-import { pushModal } from '@/modals';+import { useAppParams } from '@/hooks/use-app-params';+import { useRouter } from '@tanstack/react-router';+import { Link } from '@tanstack/react-router';import {Building2Icon,CheckIcon,ChevronsUpDownIcon,PlusIcon,} from 'lucide-react';-import { usePathname, useRouter } from 'next/navigation';import { useState } from 'react';-import type {- getOrganizations,- getProjectsByOrganizationId,-} from '@openpanel/db';-import Link from 'next/link';+import { pushModal } from '@/modals';+import type { IServiceOrganization } from '@openpanel/db';-interface LayoutProjectSelectorProps {- projects: Awaited<ReturnType<typeof getProjectsByOrganizationId>>;- organizations?: Awaited<ReturnType<typeof getOrganizations>>;+interface ProjectSelectorProps {+ projects: Array<{ id: string; name: string; organizationId: string }>;+ organizations?: IServiceOrganization[];align?: 'start' | 'end';}-export default function LayoutProjectSelector({++export default function ProjectSelector({projects,organizations,align = 'start',-}: LayoutProjectSelectorProps) {+}: ProjectSelectorProps) {const router = useRouter();const { organizationId, projectId } = useAppParams();- const pathname = usePathname() || '';const [open, setOpen] = useState(false);const changeProject = (newProjectId: string) => {if (organizationId && projectId) {- const split = pathname- .replace(- `/${organizationId}/${projectId}`,- `/${organizationId}/${newProjectId}`,- )- .split('/');- // slicing here will remove everything after /{orgId}/{projectId}/dashboards [slice here] /xxx/xxx/xxx- router.push(split.slice(0, 4).join('/'));+ // Navigate to the new project keeping the current path structure+ router.navigate({+ to: '/$organizationId/$projectId',+ params: {+ organizationId,+ projectId: newProjectId,+ },+ });} else {- router.push(`/${organizationId}/${newProjectId}`);+ router.navigate({+ to: '/$organizationId/$projectId',+ params: {+ organizationId: organizationId!,+ projectId: newProjectId,+ },+ });}};const changeOrganization = (newOrganizationId: string) => {- router.push(`/${newOrganizationId}`);+ router.navigate({+ to: '/$organizationId',+ params: {+ organizationId: newOrganizationId,+ },+ });};return (@@ -102,12 +109,21 @@ export default function LayoutProjectSelector({))}{projects.length > 10 && (<DropdownMenuItem asChild>- <Link href={`/${organizationId}`}>All projects</Link>+ <Link+ to={'/$organizationId'}+ params={{+ organizationId,+ }}+ >+ All projects+ </Link></DropdownMenuItem>)}<DropdownMenuItemclassName="text-emerald-600"- onClick={() => pushModal('AddProject')}+ onClick={() => {+ pushModal('AddProject');+ }}>Create new project<DropdownMenuShortcut>diff --git a/apps/start/src/components/projects/project-card.tsx b/apps/start/src/components/projects/project-card.tsxnew file mode 100644index 000000000..6ea8e73de--- /dev/null+++ b/apps/start/src/components/projects/project-card.tsx@@ -0,0 +1,155 @@+import { shortNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { Link } from '@tanstack/react-router';++import type { IServiceProject } from '@openpanel/db';++import { cn } from '@/utils/cn';+import { SettingsIcon, TrendingDownIcon, TrendingUpIcon } from 'lucide-react';+import { ChartSSR } from '../chart-ssr';+import { FadeIn } from '../fade-in';+import { SerieIcon } from '../report-chart/common/serie-icon';+import { Skeleton } from '../skeleton';+import { LinkButton } from '../ui/button';++export function ProjectCardRoot({+ children,+ className,+}: { children: React.ReactNode; className?: string }) {+ return (+ <div+ className={cn(+ 'relative card hover:-translate-y-px hover:shadow-sm',+ className,+ )}+ >+ {children}+ </div>+ );+}++export function ProjectCardSkeleton() {+ return (+ <ProjectCardRoot className="aspect-[340/116.25] p-4 col">+ <Skeleton className="h-5 w-full" />+ <div className="row mt-auto gap-4 w-1/2 ml-auto">+ <Skeleton className="h-3 w-full" />+ <Skeleton className="h-3 w-full" />+ <Skeleton className="h-3 w-full" />+ </div>+ </ProjectCardRoot>+ );+}++function ProjectCard({ id, domain, name, organizationId }: IServiceProject) {+ return (+ <ProjectCardRoot>+ <Link+ to="/$organizationId/$projectId"+ params={{+ organizationId,+ projectId: id,+ }}+ className="col p-4 transition-transform"+ >+ <div className="font-medium flex items-center gap-2 text-lg pb-2">+ <div className="row gap-2 flex-1">+ {domain && <SerieIcon name={domain ?? ''} />}+ {name}+ </div>+ </div>+ <div className="-mx-4 aspect-[8/1] mb-4">+ <ProjectChart id={id} />+ </div>+ <div className="flex flex-1 gap-4 h-9 md:h-4">+ <ProjectMetrics id={id} />+ </div>+ </Link>+ <LinkButton+ variant="ghost"+ href={`/${organizationId}/${id}/settings`}+ className="text-muted-foreground absolute top-2 right-2"+ >+ <SettingsIcon size={16} />+ </LinkButton>+ </ProjectCardRoot>+ );+}++function ProjectChart({ id }: { id: string }) {+ const trpc = useTRPC();+ const { data } = useQuery(+ trpc.chart.projectCard.queryOptions({+ projectId: id,+ }),+ );++ return (+ <FadeIn className="h-full w-full">+ <ChartSSR data={data?.chart || []} color={'blue'} />+ </FadeIn>+ );+}++function Metric({ value, label }: { value: React.ReactNode; label: string }) {+ return (+ <div className="flex flex-col gap-2 md:flex-row items-center">+ <div className="text-muted-foreground text-xs">{label}</div>+ <span className="font-semibold">{value}</span>+ </div>+ );+}++function ProjectMetrics({ id }: { id: string }) {+ const trpc = useTRPC();+ const { data } = useQuery(+ trpc.chart.projectCard.queryOptions({+ projectId: id,+ }),+ );++ return (+ <FadeIn className="flex gap-8 flex-1">+ <div className="flex-1 items-center gap-2 row">+ {typeof data?.trend?.percentage === 'number' && (+ <Metric+ label="3M DIFF"+ value={+ <span+ className={cn(+ 'font-semibold',+ 'row gap-1 items-center',+ data?.trend?.direction === 'up'+ ? 'text-emerald-300'+ : data?.trend?.direction === 'down'+ ? 'text-orange-300'+ : 'text-muted-foreground',+ )}+ >+ {data.trend.direction === 'up' && (+ <TrendingUpIcon className="size-4" />+ )}+ {data.trend.direction === 'down' && (+ <TrendingDownIcon className="size-4" />+ )}+ {Math.abs(data.trend.percentage)}%+ </span>+ }+ />+ )}+ </div>+ <Metric+ label="3M"+ value={shortNumber('en')(data?.metrics?.months_3 ?? 0)}+ />+ <Metric+ label="30D"+ value={shortNumber('en')(data?.metrics?.month ?? 0)}+ />+ <Metric label="24H" value={shortNumber('en')(data?.metrics?.day ?? 0)} />+ </FadeIn>+ );+}++export default ProjectCard;diff --git a/apps/start/src/components/providers.tsx b/apps/start/src/components/providers.tsxnew file mode 100644index 000000000..08fe98b2d--- /dev/null+++ b/apps/start/src/components/providers.tsx@@ -0,0 +1,41 @@+import { NotificationProvider } from '@/components/notifications/notification-provider';+import { TooltipProvider } from '@/components/ui/tooltip';+import { ModalProvider } from '@/modals';+import type { AppStore } from '@/redux';+import makeStore from '@/redux';+import { NuqsAdapter } from 'nuqs/adapters/tanstack-router';+import { useRef } from 'react';+import { Provider as ReduxProvider } from 'react-redux';+import { Toaster } from 'sonner';+import { ThemeProvider } from './theme-provider';++export function Providers({ children }: { children: React.ReactNode }) {+ const storeRef = useRef<AppStore>(undefined);+ if (!storeRef.current) {+ // Create the store instance the first time this renders+ storeRef.current = makeStore();+ }++ return (+ <NuqsAdapter>+ <ThemeProvider>+ {/* {import.meta.env.VITE_OP_CLIENT_ID && (+ <OpenPanelComponent+ clientId={import.meta.env.VITE_OP_CLIENT_ID}+ trackScreenViews+ trackOutgoingLinks+ trackAttributes+ />+ )} */}+ <ReduxProvider store={storeRef.current}>+ <TooltipProvider delayDuration={200}>+ {children}+ <NotificationProvider />+ <Toaster />+ <ModalProvider />+ </TooltipProvider>+ </ReduxProvider>+ </ThemeProvider>+ </NuqsAdapter>+ );+}diff --git a/apps/dashboard/src/components/react-virtualized-auto-sizer.tsx b/apps/start/src/components/react-virtualized-auto-sizer.tsxsimilarity index 100%rename from apps/dashboard/src/components/react-virtualized-auto-sizer.tsxrename to apps/start/src/components/react-virtualized-auto-sizer.tsxdiff --git a/apps/start/src/components/realtime/map/coordinates.ts b/apps/start/src/components/realtime/map/coordinates.tsnew file mode 100644index 000000000..d103ca152--- /dev/null+++ b/apps/start/src/components/realtime/map/coordinates.ts@@ -0,0 +1,397 @@+export type Coordinate = {+ lat: number;+ long: number;+ city?: string;+ country?: string;+};++export function haversineDistance(+ coord1: Coordinate,+ coord2: Coordinate,+): number {+ const R = 6371; // Earth's radius in kilometers+ const lat1Rad = coord1.lat * (Math.PI / 180);+ const lat2Rad = coord2.lat * (Math.PI / 180);+ const deltaLatRad = (coord2.lat - coord1.lat) * (Math.PI / 180);+ const deltaLonRad = (coord2.long - coord1.long) * (Math.PI / 180);++ const a =+ Math.sin(deltaLatRad / 2) * Math.sin(deltaLatRad / 2) ++ Math.cos(lat1Rad) *+ Math.cos(lat2Rad) *+ Math.sin(deltaLonRad / 2) *+ Math.sin(deltaLonRad / 2);+ const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));++ return R * c; // Distance in kilometers+}++export function findFarthestPoints(+ coordinates: Coordinate[],+): [Coordinate, Coordinate] {+ if (coordinates.length < 2) {+ throw new Error('At least two coordinates are required');+ }++ let maxDistance = 0;+ let point1: Coordinate = coordinates[0]!;+ let point2: Coordinate = coordinates[1]!;++ for (let i = 0; i < coordinates.length; i++) {+ for (let j = i + 1; j < coordinates.length; j++) {+ const distance = haversineDistance(coordinates[i]!, coordinates[j]!);+ if (distance > maxDistance) {+ maxDistance = distance;+ point1 = coordinates[i]!;+ point2 = coordinates[j]!;+ }+ }+ }++ return [point1, point2];+}++export function getAverageCenter(coordinates: Coordinate[]): Coordinate {+ if (coordinates.length === 0) {+ return { long: 0, lat: 20 };+ }++ let sumLong = 0;+ let sumLat = 0;++ for (const coord of coordinates) {+ sumLong += coord.long;+ sumLat += coord.lat;+ }++ const avgLat = sumLat / coordinates.length;+ const avgLong = sumLong / coordinates.length;++ return { long: avgLong, lat: avgLat };+}++function sortCoordinates(a: Coordinate, b: Coordinate): number {+ return a.long === b.long ? a.lat - b.lat : a.long - b.long;+}++function cross(o: Coordinate, a: Coordinate, b: Coordinate): number {+ return (+ (a.long - o.long) * (b.lat - o.lat) - (a.lat - o.lat) * (b.long - o.long)+ );+}++// convex hull+export function getOuterMarkers(coordinates: Coordinate[]): Coordinate[] {+ const sorted = coordinates.sort(sortCoordinates);++ if (sorted.length <= 3) return sorted;++ const lower: Coordinate[] = [];+ for (const coord of sorted) {+ while (+ lower.length >= 2 &&+ cross(lower[lower.length - 2]!, lower[lower.length - 1]!, coord) <= 0+ ) {+ lower.pop();+ }+ lower.push(coord);+ }++ const upper: Coordinate[] = [];+ for (let i = coordinates.length - 1; i >= 0; i--) {+ while (+ upper.length >= 2 &&+ cross(upper[upper.length - 2]!, upper[upper.length - 1]!, sorted[i]!) <= 0+ ) {+ upper.pop();+ }+ upper.push(sorted[i]!);+ }++ upper.pop();+ lower.pop();+ return lower.concat(upper);+}++export function calculateCentroid(polygon: Coordinate[]): Coordinate {+ if (polygon.length < 3) {+ throw new Error('At least three points are required to form a polygon.');+ }++ let area = 0;+ let centroidLat = 0;+ let centroidLong = 0;++ for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {+ const x0 = polygon[j]!.long;+ const y0 = polygon[j]!.lat;+ const x1 = polygon[i]!.long;+ const y1 = polygon[i]!.lat;+ const a = x0 * y1 - x1 * y0;+ area += a;+ centroidLong += (x0 + x1) * a;+ centroidLat += (y0 + y1) * a;+ }++ area = area / 2;+ if (area === 0) {+ // This should not happen for a proper convex hull+ throw new Error('Area of the polygon is zero, check the coordinates.');+ }++ centroidLat /= 6 * area;+ centroidLong /= 6 * area;++ return { lat: centroidLat, long: centroidLong };+}++export function calculateGeographicMidpoint(+ coordinate: Coordinate[],+): Coordinate {+ let minLat = Number.POSITIVE_INFINITY;+ let maxLat = Number.NEGATIVE_INFINITY;+ let minLong = Number.POSITIVE_INFINITY;+ let maxLong = Number.NEGATIVE_INFINITY;++ for (const { lat, long } of coordinate) {+ if (lat < minLat) minLat = lat;+ if (lat > maxLat) maxLat = lat;+ if (long < minLong) minLong = long;+ if (long > maxLong) maxLong = long;+ }++ // Handling the wrap around the international date line+ let midLong: number;+ if (maxLong > minLong) {+ midLong = (maxLong + minLong) / 2;+ } else {+ // Adjust calculation when spanning the dateline+ midLong = ((maxLong + 360 + minLong) / 2) % 360;+ }++ const midLat = (maxLat + minLat) / 2;++ return { lat: midLat, long: midLong };+}++export function clusterCoordinates(+ coordinates: Coordinate[],+ radius = 25,+ options: {+ useOptimizedClustering?: boolean;+ zoom?: number;+ stability?: boolean;+ adaptiveRadius?: boolean;+ viewport?: {+ center: Coordinate;+ bounds: {+ minLat: number;+ maxLat: number;+ minLong: number;+ maxLong: number;+ };+ };+ } = {},+) {+ const { zoom = 1, adaptiveRadius = true, viewport } = options;++ // Calculate adaptive radius based on zoom level and coordinate density+ let adjustedRadius = radius;++ if (adaptiveRadius) {+ // Much more aggressive clustering at lower zoom levels+ // At zoom 1: use 3x larger radius for very aggressive clustering+ // At zoom 2: use 2x radius+ // At zoom 4: use 1x radius+ // At zoom 8: use 0.2x radius for precision+ const zoomFactor = Math.max(0.1, 4 / (zoom + 1));+ adjustedRadius = radius * zoomFactor;++ // Further adjust based on coordinate density if viewport is provided+ if (viewport && coordinates.length > 0) {+ const viewportCoords = coordinates.filter(+ (coord) =>+ coord.lat >= viewport.bounds.minLat &&+ coord.lat <= viewport.bounds.maxLat &&+ coord.long >= viewport.bounds.minLong &&+ coord.long <= viewport.bounds.maxLong,+ );++ if (viewportCoords.length > 0) {+ const viewportArea =+ (viewport.bounds.maxLat - viewport.bounds.minLat) *+ (viewport.bounds.maxLong - viewport.bounds.minLong);++ const density = viewportCoords.length / viewportArea;++ // Adjust radius based on density - higher density = larger radius for more aggressive clustering+ const densityFactor = Math.max(+ 0.5,+ Math.min(5, Math.sqrt(density * 1000) + 1),+ );+ adjustedRadius *= densityFactor;+ }+ }+ } else {+ // Simple zoom-based adjustment when adaptive is disabled+ adjustedRadius = radius * Math.max(0.5, 1 / Math.sqrt(zoom));+ }++ // Always use basic clustering for now to ensure it works correctly+ // TODO: Re-enable optimized clustering after thorough testing+ const result = basicClusterCoordinates(coordinates, adjustedRadius);++ // Debug: Log clustering results+ if (coordinates.length > 0) {+ console.log(+ `Clustering ${coordinates.length} coordinates with radius ${adjustedRadius.toFixed(2)}km resulted in ${result.length} clusters`,+ );+ }++ return result;+}++// Aggressive clustering algorithm with iterative expansion+function basicClusterCoordinates(coordinates: Coordinate[], radius: number) {+ if (coordinates.length === 0) return [];++ const clusters: {+ center: Coordinate;+ count: number;+ members: Coordinate[];+ }[] = [];+ const visited = new Set<number>();++ // Sort coordinates by density (coordinates near others first)+ const coordinatesWithDensity = coordinates+ .map((coord, idx) => {+ const nearbyCount = coordinates.filter(+ (other) => haversineDistance(coord, other) <= radius * 0.5,+ ).length;+ return { ...coord, originalIdx: idx, nearbyCount };+ })+ .sort((a, b) => b.nearbyCount - a.nearbyCount);++ coordinatesWithDensity.forEach(+ ({ lat, long, city, country, originalIdx }) => {+ if (!visited.has(originalIdx)) {+ const cluster = {+ members: [{ lat, long, city, country }],+ center: { lat, long },+ count: 1,+ };++ // Mark the initial coordinate as visited+ visited.add(originalIdx);++ // Iteratively expand the cluster to include nearby points+ let expandedInLastIteration = true;+ while (expandedInLastIteration) {+ expandedInLastIteration = false;++ // For each existing cluster member, find nearby unvisited coordinates+ for (const member of [...cluster.members]) {+ coordinatesWithDensity.forEach(+ ({+ lat: otherLat,+ long: otherLong,+ city: otherCity,+ country: otherCountry,+ originalIdx: otherIdx,+ }) => {+ if (!visited.has(otherIdx)) {+ const distance = haversineDistance(member, {+ lat: otherLat,+ long: otherLong,+ });++ if (distance <= radius) {+ cluster.members.push({+ lat: otherLat,+ long: otherLong,+ city: otherCity,+ country: otherCountry,+ });+ visited.add(otherIdx);+ cluster.count++;+ expandedInLastIteration = true;+ }+ }+ },+ );+ }+ }++ // Calculate the proper center for the cluster+ cluster.center = calculateClusterCenter(cluster.members);++ clusters.push(cluster);+ }+ },+ );++ return clusters;+}++// Note: Optimized clustering algorithm was removed temporarily+// TODO: Re-implement optimized clustering after basic algorithm is working well++// Utility function to get clustering statistics for debugging+export function getClusteringStats(+ coordinates: Coordinate[],+ clusters: ReturnType<typeof clusterCoordinates>,+) {+ const totalPoints = coordinates.length;+ const totalClusters = clusters.length;+ const singletonClusters = clusters.filter((c) => c.count === 1).length;+ const avgClusterSize = totalPoints > 0 ? totalPoints / totalClusters : 0;+ const maxClusterSize = Math.max(...clusters.map((c) => c.count));+ const compressionRatio = totalClusters > 0 ? totalPoints / totalClusters : 1;++ return {+ totalPoints,+ totalClusters,+ singletonClusters,+ avgClusterSize: Math.round(avgClusterSize * 100) / 100,+ maxClusterSize,+ compressionRatio: Math.round(compressionRatio * 100) / 100,+ };+}++// Helper function to calculate cluster center with longitude wrapping+function calculateClusterCenter(members: Coordinate[]): Coordinate {+ if (members.length === 1) {+ return { ...members[0]! };+ }++ // Check if we need to handle longitude wrapping around the dateline+ const longitudes = members.map((m) => m.long);+ const minLong = Math.min(...longitudes);+ const maxLong = Math.max(...longitudes);++ let avgLat = 0;+ let avgLong = 0;++ if (maxLong - minLong > 180) {+ // Handle dateline crossing+ let adjustedLongSum = 0;+ for (const member of members) {+ avgLat += member.lat;+ const adjustedLong = member.long < 0 ? member.long + 360 : member.long;+ adjustedLongSum += adjustedLong;+ }+ avgLat /= members.length;+ avgLong = (adjustedLongSum / members.length) % 360;+ if (avgLong > 180) avgLong -= 360;+ } else {+ // Normal case - no dateline crossing+ for (const member of members) {+ avgLat += member.lat;+ avgLong += member.long;+ }+ avgLat /= members.length;+ avgLong /= members.length;+ }++ return { lat: avgLat, long: avgLong };+}diff --git a/apps/start/src/components/realtime/map/index.tsx b/apps/start/src/components/realtime/map/index.tsxnew file mode 100644index 000000000..b10795758--- /dev/null+++ b/apps/start/src/components/realtime/map/index.tsx@@ -0,0 +1,352 @@+import { Tooltiper } from '@/components/ui/tooltip';+import { bind } from 'bind-event-listener';+import {+ Fragment,+ useCallback,+ useEffect,+ useMemo,+ useRef,+ useState,+} from 'react';+import {+ ComposableMap,+ Geographies,+ Geography,+ Marker,+ ZoomableGroup,+} from 'react-simple-maps';++import { SerieIcon } from '@/components/report-chart/common/serie-icon';+import { useTheme } from '@/hooks/use-theme';+import type { Coordinate } from './coordinates';++// Interpolate function similar to React Native Reanimated+const interpolate = (+ value: number,+ inputRange: [number, number],+ outputRange: [number, number],+ extrapolate?: 'clamp' | 'extend' | 'identity',+): number => {+ const [inputMin, inputMax] = inputRange;+ const [outputMin, outputMax] = outputRange;++ // Handle edge cases+ if (inputMin === inputMax) return outputMin;++ const progress = (value - inputMin) / (inputMax - inputMin);++ // Apply extrapolation+ if (extrapolate === 'clamp') {+ const clampedProgress = Math.max(0, Math.min(1, progress));+ return outputMin + clampedProgress * (outputMax - outputMin);+ }++ return outputMin + progress * (outputMax - outputMin);+};+import {+ calculateGeographicMidpoint,+ clusterCoordinates,+ getAverageCenter,+ getOuterMarkers,+} from './coordinates';+import { GEO_MAP_URL, determineZoom, getBoundingBox } from './map.helpers';+import { calculateMarkerSize } from './markers';++type Props = {+ markers: Coordinate[];+ sidebarConfig?: {+ width: number;+ position: 'left' | 'right';+ };+};+const Map = ({ markers, sidebarConfig }: Props) => {+ const showCenterMarker = false;+ const ref = useRef<HTMLDivElement>(null);+ const [size, setSize] = useState<{ width: number; height: number } | null>(+ null,+ );+ const [currentZoom, setCurrentZoom] = useState(1);+ const [debouncedZoom, setDebouncedZoom] = useState(1);+ const zoomTimeoutRef = useRef<NodeJS.Timeout | null>(null);++ // Memoize expensive calculations+ const { hull, center, initialZoom } = useMemo(() => {+ const hull = getOuterMarkers(markers);+ const center =+ hull.length < 2+ ? getAverageCenter(markers)+ : calculateGeographicMidpoint(hull);++ // Calculate initial zoom based on markers distribution+ const boundingBox = getBoundingBox(hull.length > 0 ? hull : markers);+ const minZoom = 1;+ const maxZoom = 20;++ const aspectRatio = size ? size.width / size.height : 1;+ const autoZoom = Math.max(+ minZoom,+ Math.min(maxZoom, determineZoom(boundingBox, aspectRatio) * 0.4),+ );++ // Use calculated zoom if we have markers, otherwise default to 1+ const initialZoom = markers.length > 0 ? autoZoom : 1;++ return { hull, center, initialZoom };+ }, [markers, size]);++ // Update current zoom when initial zoom changes (when new markers are loaded)+ useEffect(() => {+ setCurrentZoom(initialZoom);+ setDebouncedZoom(initialZoom);+ }, [initialZoom]);++ // Debounced zoom update for marker clustering+ const updateDebouncedZoom = useCallback((newZoom: number) => {+ if (zoomTimeoutRef.current) {+ clearTimeout(zoomTimeoutRef.current);+ }++ zoomTimeoutRef.current = setTimeout(() => {+ setDebouncedZoom(newZoom);+ }, 100); // 100ms debounce delay+ }, []);++ // Cleanup timeout on unmount+ useEffect(() => {+ return () => {+ if (zoomTimeoutRef.current) {+ clearTimeout(zoomTimeoutRef.current);+ }+ };+ }, []);++ // Memoize center coordinates adjustment for sidebar+ const { long, lat } = useMemo(() => {+ let adjustedLong = center.long;++ if (sidebarConfig && size) {+ // Calculate how much to shift the map to center content in visible area+ const sidebarOffset =+ sidebarConfig.position === 'left'+ ? sidebarConfig.width / 2+ : -sidebarConfig.width / 2;++ // Convert pixel offset to longitude degrees+ // This is a rough approximation - degrees per pixel at current zoom+ const longitudePerPixel = 360 / (size.width * initialZoom);+ const longitudeOffset = sidebarOffset * longitudePerPixel;++ adjustedLong = center.long - longitudeOffset; // Subtract to shift map right for left sidebar+ }++ return { long: adjustedLong, lat: center.lat };+ }, [center.long, center.lat, sidebarConfig, size, initialZoom]);++ const minZoom = 1;+ const maxZoom = 20;++ useEffect(() => {+ return bind(window, {+ type: 'resize',+ listener() {+ if (ref.current) {+ const parentRect = ref.current.parentElement?.getBoundingClientRect();+ setSize({+ width: parentRect?.width ?? 0,+ height: parentRect?.height ?? 0,+ });+ }+ },+ });+ }, []);++ useEffect(() => {+ if (ref.current) {+ const parentRect = ref.current.parentElement?.getBoundingClientRect();+ setSize({+ width: parentRect?.width ?? 0,+ height: parentRect?.height ?? 0,+ });+ }+ }, []);++ // Dynamic marker size based on zoom level - balanced scaling for new size range+ const getMarkerSize = useCallback(+ (baseSize: number) => {+ // Interpolate the adjustment value from zoom 1 to 20+ // At zoom 1: adjustThisValue = 1+ // At zoom 20: adjustThisValue = 0.5+ const adjustThisValue = interpolate(+ currentZoom,+ [1, 20],+ [1.5, 0.6],+ 'clamp',+ );+ const scaleFactor = (1 / Math.sqrt(currentZoom)) * adjustThisValue;++ // Ensure minimum size for visibility, but allow smaller sizes for precision+ const minSize = baseSize * 0.05;+ const scaledSize = baseSize * scaleFactor;++ return Math.max(minSize, scaledSize);+ },+ [currentZoom],+ );++ const getBorderWidth = useCallback(() => {+ const map = {+ 0.1: [15, 20],+ 0.15: [10, 15],+ 0.25: [5, 10],+ 0.5: [0, 5],+ };+ const found = Object.entries(map).find(([, value]) => {+ if (currentZoom >= value[0] && currentZoom <= value[1]) {+ return true;+ }+ });+ return found ? Number.parseFloat(found[0]) : 0.1;+ }, [currentZoom]);++ const theme = useTheme();++ // Memoize clustered markers+ const clusteredMarkers = useMemo(() => {+ return clusterCoordinates(markers, 150, {+ zoom: debouncedZoom,+ adaptiveRadius: true,+ });+ }, [markers, debouncedZoom]);++ return (+ <div ref={ref} className="relative">+ <div className="bg-gradient-to-t from-def-100 to-transparent h-1/10 absolute bottom-0 left-0 right-0" />+ {size === null ? (+ <></>+ ) : (+ <>+ <ComposableMap+ projection="geoMercator"+ width={size?.width || 800}+ height={size?.height || 400}+ >+ <ZoomableGroup+ center={[long, lat]}+ zoom={initialZoom}+ minZoom={minZoom}+ maxZoom={maxZoom}+ onMove={(event) => {+ if (currentZoom !== event.zoom) {+ setCurrentZoom(event.zoom);+ updateDebouncedZoom(event.zoom);+ }+ }}+ >+ <Geographies geography={GEO_MAP_URL}>+ {({ geographies }) =>+ geographies+ .filter((geo) => {+ return geo.properties.name !== 'Antarctica';+ })+ .map((geo) => (+ <Geography+ key={geo.rsmKey}+ geography={geo}+ fill={theme.theme === 'dark' ? '#000' : '#f0f0f0'}+ stroke={theme.theme === 'dark' ? '#333' : '#999'}+ strokeWidth={getBorderWidth()}+ pointerEvents={'none'}+ />+ ))+ }+ </Geographies>+ {showCenterMarker && (+ <Marker coordinates={[center.long, center.lat]}>+ <circle r={getMarkerSize(10)} fill="green" stroke="#fff" />+ </Marker>+ )}+ {clusteredMarkers.map((marker, index) => {+ const size = getMarkerSize(calculateMarkerSize(marker.count));+ const coordinates: [number, number] = [+ marker.center.long,+ marker.center.lat,+ ];++ return (+ <Fragment+ key={`cluster-${index}-${marker.center.long}-${marker.center.lat}`}+ >+ {/* Animated ping effect */}+ <Marker coordinates={coordinates}>+ <circle+ r={size}+ fill={theme.theme === 'dark' ? '#3d79ff' : '#2266ec'}+ className="animate-ping opacity-20"+ />+ </Marker>+ {/* Main marker with tooltip */}+ <Tooltiper+ asChild+ content={+ <div className="flex min-w-[200px] flex-col gap-2">+ <h3 className="font-semibold capitalize">+ {`${marker.count} visitor${marker.count !== 1 ? 's' : ''}`}+ </h3>++ {marker.members+ .slice(0, 5)+ .filter((item) => item.country || item.city)+ .map((item) => (+ <div+ className="row items-center gap-2"+ key={`${item.long}-${item.lat}`}+ >+ <SerieIcon+ name={+ item.country || `${item.lat}, ${item.long}`+ }+ />+ {item.city || 'Unknown'}+ </div>+ ))}+ {marker.members.length > 5 && (+ <div className="text-sm text-gray-500">+ + {marker.members.length - 5} more+ </div>+ )}+ </div>+ }+ >+ <Marker coordinates={coordinates}>+ <circle+ r={size}+ fill={theme.theme === 'dark' ? '#3d79ff' : '#2266ec'}+ fillOpacity={0.8}+ stroke="#fff"+ strokeWidth={getBorderWidth() * 0.5}+ />+ <text+ x={0}+ y={0}+ fill="#fff"+ textAnchor="middle"+ dominantBaseline="middle"+ fontSize={size * 0.6}+ fontWeight="bold"+ >+ {marker.count}+ </text>+ </Marker>+ </Tooltiper>+ </Fragment>+ );+ })}+ </ZoomableGroup>+ </ComposableMap>+ </>+ )}+ </div>+ );+};++export default Map;diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/map.helpers.tsx b/apps/start/src/components/realtime/map/map.helpers.tsxsimilarity index 98%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/map.helpers.tsxrename to apps/start/src/components/realtime/map/map.helpers.tsxindex 0ce40bbf1..33c46f0e1 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/map.helpers.tsx+++ b/apps/start/src/components/realtime/map/map.helpers.tsx@@ -9,7 +9,7 @@ export const GEO_MAP_URL =export function useAnimatedState(initialValue: number) {const [value, setValue] = useState(initialValue);const [target, setTarget] = useState(initialValue);- const ref = useRef<number>();+ const ref = useRef<number>(0);const animate = useCallback(() => {ref.current = requestAnimationFrame(() => {setValue((prevValue) => {diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/markers.ts b/apps/start/src/components/realtime/map/markers.tssimilarity index 62%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/markers.tsrename to apps/start/src/components/realtime/map/markers.tsindex 9513dd0df..a52ec8ac6 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/map/markers.ts+++ b/apps/start/src/components/realtime/map/markers.ts@@ -22,12 +22,21 @@ const useActiveMarkers = (initialMarkers: Coordinate[]) => {export default useActiveMarkers;export function calculateMarkerSize(count: number) {- const minSize = 8; // Minimum size of the marker- const maxSize = 40; // Maximum size allowed for the marker-- if (count <= 1) return minSize; // Ensure that we handle count=0 or 1 gracefully- const scaledSize =- minSize + (Math.log(count) / Math.log(1000)) * (maxSize - minSize);+ const minSize = 3; // Minimum size for single visitor (reduced from 4)+ const maxSize = 14; // Maximum size for very large clusters (reduced from 20)++ if (count <= 1) return minSize;++ // Use square root scaling for better visual differentiation+ // This creates more noticeable size differences for common visitor counts+ // Examples:+ // 1 visitor: 3px+ // 2 visitors: ~5px+ // 5 visitors: ~7px+ // 10 visitors: ~9px+ // 25 visitors: ~12px+ // 50+ visitors: ~14px (max)+ const scaledSize = minSize + Math.sqrt(count - 1) * 1.8;// Ensure size does not exceed maxSize or fall below minSizereturn Math.max(minSize, Math.min(scaledSize, maxSize));diff --git a/apps/start/src/components/realtime/realtime-active-sessions.tsx b/apps/start/src/components/realtime/realtime-active-sessions.tsxnew file mode 100644index 000000000..6716db908--- /dev/null+++ b/apps/start/src/components/realtime/realtime-active-sessions.tsx@@ -0,0 +1,87 @@+'use client';++import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { AnimatePresence, motion } from 'framer-motion';+import { useEffect, useState } from 'react';++import useWS from '@/hooks/use-ws';+import type { IServiceEvent } from '@openpanel/db';+import { EventItem } from '../events/table/item';++interface RealtimeActiveSessionsProps {+ projectId: string;+ limit?: number;+}++export function RealtimeActiveSessions({+ projectId,+ limit = 10,+}: RealtimeActiveSessionsProps) {+ const trpc = useTRPC();+ const activeSessionsQuery = useQuery(+ trpc.realtime.activeSessions.queryOptions({+ projectId,+ }),+ );++ const [state, setState] = useState<IServiceEvent[]>([]);++ // Update state when initial data loads+ useEffect(() => {+ if (activeSessionsQuery.data && state.length === 0) {+ setState(activeSessionsQuery.data);+ }+ }, [activeSessionsQuery.data, state]);++ // Set up WebSocket connection for real-time updates+ useWS<IServiceEvent>(+ `/live/events/${projectId}`,+ (session) => {+ setState((prev) => {+ // Add new session and remove duplicates, keeping most recent+ const filtered = prev.filter((s) => s.id !== session.id);+ return [session, ...filtered].slice(0, limit);+ });+ },+ {+ debounce: {+ delay: 1000,+ maxWait: 5000,+ },+ },+ );++ const sessions = state.length > 0 ? state : (activeSessionsQuery.data ?? []);++ return (+ <div className="col h-full">+ <div className="hide-scrollbar h-full overflow-y-auto pb-10">+ <AnimatePresence mode="popLayout" initial={false}>+ <div className="col gap-4">+ {sessions.map((session) => (+ <motion.div+ key={session.id}+ layout+ // initial={{ opacity: 0, x: -200, scale: 0.8 }}+ animate={{ opacity: 1, x: 0, scale: 1 }}+ exit={{ opacity: 0, x: 200, scale: 0.8 }}+ transition={{ duration: 0.4, type: 'spring', stiffness: 300 }}+ >+ <EventItem+ event={session}+ viewOptions={{+ properties: false,+ origin: false,+ queryString: false,+ }}+ className="w-full"+ />+ </motion.div>+ ))}+ </div>+ </AnimatePresence>+ </div>+ </div>+ );+}diff --git a/apps/start/src/components/realtime/realtime-geo.tsx b/apps/start/src/components/realtime/realtime-geo.tsxnew file mode 100644index 000000000..1acede2f1--- /dev/null+++ b/apps/start/src/components/realtime/realtime-geo.tsx@@ -0,0 +1,95 @@+'use client';++import { useNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';+import { countries } from '@/translations/countries';+import { useQuery } from '@tanstack/react-query';+import { prop, uniqBy } from 'ramda';+import { OverviewWidgetTable } from '../overview/overview-widget-table';+import { SerieIcon } from '../report-chart/common/serie-icon';+import { Tooltiper } from '../ui/tooltip';++interface RealtimeGeoProps {+ projectId: string;+}++export function RealtimeGeo({ projectId }: RealtimeGeoProps) {+ const trpc = useTRPC();+ const query = useQuery(+ trpc.realtime.geo.queryOptions({+ projectId,+ }),+ );++ const data = query.data ?? [];+ const maxCount = Math.max(...data.map((item) => item.count));+ const number = useNumber();++ // Get unique countries for header icons+ const unique = uniqBy(prop('country'), data)+ .filter((i) => !!i.country.trim())+ .slice(0, 8);++ return (+ <div className="col h-full card">+ <div className="row justify-between items-center p-4 pb-0">+ <div className="font-medium text-muted-foreground">Geo</div>+ <div className="row gap-1">+ {unique.map((item) => (+ <Tooltiper+ key={item.country}+ content={countries[item.country as keyof typeof countries]}+ >+ <SerieIcon key={item.country} name={item.country} />+ </Tooltiper>+ ))}+ </div>+ </div>+ <OverviewWidgetTable+ data={data ?? []}+ keyExtractor={(item) => item.country + item.city}+ getColumnPercentage={(item) => item.count / maxCount}+ columns={[+ {+ name: 'Country / City',+ width: 'w-full',+ render(item) {+ return (+ <Tooltiper+ asChild+ content={`${item.country} / ${item.city}`}+ side="left"+ >+ <div className="row items-center gap-2 min-w-0 relative">+ <SerieIcon name={item.country} />+ {item.city || '(Not set)'}+ </div>+ </Tooltiper>+ );+ },+ },+ {+ name: 'Duration',+ width: '75px',+ render(item) {+ return number.shortWithUnit(item.avg_duration, 'min');+ },+ },+ {+ name: 'Events',+ width: '84px',+ render(item) {+ return (+ <div className="row gap-2 justify-end">+ <span className="font-semibold">+ {number.short(item.count)}+ </span>+ </div>+ );+ },+ },+ ]}+ />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-histogram.tsx b/apps/start/src/components/realtime/realtime-live-histogram.tsxsimilarity index 78%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-histogram.tsxrename to apps/start/src/components/realtime/realtime-live-histogram.tsxindex f86d6aa7a..eba53b985 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-histogram.tsx+++ b/apps/start/src/components/realtime/realtime-live-histogram.tsx@@ -1,35 +1,26 @@-'use client';-import {Tooltip,TooltipContent,TooltipTrigger,} from '@/components/ui/tooltip';-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';import { cn } from '@/utils/cn';-import dynamic from 'next/dynamic';+import { useQuery } from '@tanstack/react-query';import type { IChartProps } from '@openpanel/validation';+import { AnimatedNumber } from '../animated-number';interface RealtimeLiveHistogramProps {projectId: string;}-export function RealtimeLiveHistogram({- projectId,-}: RealtimeLiveHistogramProps) {- const report: IChartProps = {+export const getReport = (projectId: string): IChartProps => {+ return {projectId,events: [{segment: 'user',- filters: [- {- name: 'name',- operator: 'is',- value: ['screen_view', 'session_start'],- },- ],+ filters: [],name: '*',displayName: 'Active users',},@@ -43,7 +34,10 @@ export function RealtimeLiveHistogram({lineType: 'monotone',previous: false,};- const countReport: IChartProps = {+};++export const getCountReport = (projectId: string): IChartProps => {+ return {name: '',projectId,events: [@@ -62,9 +56,17 @@ export function RealtimeLiveHistogram({previous: false,metric: 'sum',};+};- const res = api.chart.chart.useQuery(report);- const countRes = api.chart.chart.useQuery(countReport);+export function RealtimeLiveHistogram({+ projectId,+}: RealtimeLiveHistogramProps) {+ const report = getReport(projectId);+ const countReport = getCountReport(projectId);++ const trpc = useTRPC();+ const res = useQuery(trpc.chart.chart.queryOptions(report));+ const countRes = useQuery(trpc.chart.chart.queryOptions(countReport));const metrics = res.data?.series[0]?.metrics;const minutes = (res.data?.series[0]?.data || []).slice(-30);@@ -128,11 +130,6 @@ interface WrapperProps {count: number;}-const AnimatedNumbers = dynamic(() => import('react-animated-numbers'), {- ssr: false,- loading: () => <div>0</div>,-});-function Wrapper({ children, count }: WrapperProps) {return (<div className="flex flex-col">@@ -141,17 +138,7 @@ function Wrapper({ children, count }: WrapperProps) {Unique vistors last 30 minutes</div><div className="font-mono text-6xl font-bold">- <AnimatedNumbers- includeComma- transitions={(index) => ({- type: 'spring',- duration: index + 0.3,- damping: 10,- stiffness: 200,- })}- animateToNumber={count}- locale="en"- />+ <AnimatedNumber value={count} /></div></div><div className="relative flex aspect-[6/1] w-full flex-1 items-end gap-0.5">diff --git a/apps/start/src/components/realtime/realtime-paths.tsx b/apps/start/src/components/realtime/realtime-paths.tsxnew file mode 100644index 000000000..639417b9e--- /dev/null+++ b/apps/start/src/components/realtime/realtime-paths.tsx@@ -0,0 +1,102 @@+'use client';++import { useNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { ExternalLinkIcon } from 'lucide-react';+import { prop, uniqBy } from 'ramda';+import { OverviewWidgetTable } from '../overview/overview-widget-table';+import { SerieIcon } from '../report-chart/common/serie-icon';+import { Tooltiper } from '../ui/tooltip';++interface RealtimePathsProps {+ projectId: string;+}++export function RealtimePaths({ projectId }: RealtimePathsProps) {+ const trpc = useTRPC();+ const query = useQuery(+ trpc.realtime.paths.queryOptions({+ projectId,+ }),+ );++ const data = query.data ?? [];+ const maxCount = Math.max(...data.map((item) => item.count));+ const number = useNumber();++ // Get unique origins for header icons+ const unique = uniqBy(prop('origin'), data)+ .filter((i) => !!i.origin.trim())+ .slice(0, 5);++ return (+ <div className="col h-full card">+ <div className="row justify-between items-center p-4 pb-0">+ <div className="font-medium text-muted-foreground">Paths</div>+ <div className="row gap-1">+ {unique.map((item) => (+ <Tooltiper key={item.origin} content={item.origin}>+ <SerieIcon key={item.origin} name={item.origin} />+ </Tooltiper>+ ))}+ </div>+ </div>+ <OverviewWidgetTable+ data={data ?? []}+ keyExtractor={(item) => item.path + item.origin}+ getColumnPercentage={(item) => item.count / maxCount}+ columns={[+ {+ name: 'Path',+ width: 'w-full',+ render(item) {+ return (+ <Tooltiper+ asChild+ content={item.origin + item.path}+ side="left"+ disabled={item.origin === ''}+ >+ <div className="row items-center gap-2 min-w-0 relative">+ <SerieIcon name={item.origin} />+ <span className="truncate">{item.path || '(Not set)'}</span>+ {item.origin && (+ <a+ href={item.origin + item.path}+ target="_blank"+ rel="noreferrer"+ >+ <ExternalLinkIcon className="size-3 group-hover/row:opacity-100 opacity-0 transition-opacity" />+ </a>+ )}+ </div>+ </Tooltiper>+ );+ },+ },+ {+ name: 'Duration',+ width: '75px',+ render(item) {+ return number.shortWithUnit(item.avg_duration, 'min');+ },+ },+ {+ name: 'Events',+ width: '84px',+ render(item) {+ return (+ <div className="row gap-2 justify-end">+ <span className="font-semibold">+ {number.short(item.count)}+ </span>+ </div>+ );+ },+ },+ ]}+ />+ </div>+ );+}diff --git a/apps/start/src/components/realtime/realtime-referrals.tsx b/apps/start/src/components/realtime/realtime-referrals.tsxnew file mode 100644index 000000000..ffd334594--- /dev/null+++ b/apps/start/src/components/realtime/realtime-referrals.tsx@@ -0,0 +1,85 @@+'use client';++import { useNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { prop, uniqBy } from 'ramda';+import { OverviewWidgetTable } from '../overview/overview-widget-table';+import { SerieIcon } from '../report-chart/common/serie-icon';+import { Tooltiper } from '../ui/tooltip';++interface RealtimeReferralsProps {+ projectId: string;+}++export function RealtimeReferrals({ projectId }: RealtimeReferralsProps) {+ const trpc = useTRPC();+ const query = useQuery(+ trpc.realtime.referrals.queryOptions({+ projectId,+ }),+ );++ const data = query.data ?? [];+ const maxCount = Math.max(...data.map((item) => item.count));+ const number = useNumber();+ const unique = uniqBy(prop('referrer_name'), data)+ .filter((i) => !!i.referrer_name.trim())+ .slice(0, 8);++ return (+ <div className="col h-full card">+ <div className="row justify-between items-center p-4 pb-0">+ <div className="font-medium text-muted-foreground">Referrals</div>+ <div className="row gap-1">+ {unique.map((item) => (+ <Tooltiper key={item.referrer_name} content={item.referrer_name}>+ <SerieIcon key={item.referrer_name} name={item.referrer_name} />+ </Tooltiper>+ ))}+ </div>+ </div>+ <OverviewWidgetTable+ data={data ?? []}+ keyExtractor={(item) => item.referrer_name}+ getColumnPercentage={(item) => item.count / maxCount}+ columns={[+ {+ name: 'Referrer',+ width: 'w-full',+ render(item) {+ return (+ <Tooltiper asChild content={item.referrer_name} side="left">+ <div className="row items-center gap-2 min-w-0 relative">+ <SerieIcon name={item.referrer_name} />+ {item.referrer_name || '(Not set)'}+ </div>+ </Tooltiper>+ );+ },+ },+ {+ name: 'Duration',+ width: '75px',+ render(item) {+ return number.shortWithUnit(item.avg_duration, 'min');+ },+ },+ {+ name: 'Events',+ width: '84px',+ render(item) {+ return (+ <div className="row gap-2 justify-end">+ <span className="font-semibold">+ {number.short(item.count)}+ </span>+ </div>+ );+ },+ },+ ]}+ />+ </div>+ );+}diff --git a/apps/start/src/components/realtime/realtime-reloader.tsx b/apps/start/src/components/realtime/realtime-reloader.tsxnew file mode 100644index 000000000..f6aee2ca2--- /dev/null+++ b/apps/start/src/components/realtime/realtime-reloader.tsx@@ -0,0 +1,40 @@+'use client';++import useWS from '@/hooks/use-ws';+import { useTRPC } from '@/integrations/trpc/react';+import { useQueryClient } from '@tanstack/react-query';+import { getCountReport, getReport } from './realtime-live-histogram';++type Props = {+ projectId: string;+};++const RealtimeReloader = ({ projectId }: Props) => {+ const client = useQueryClient();+ const trpc = useTRPC();++ useWS<number>(+ `/live/events/${projectId}`,+ () => {+ if (!document.hidden) {+ client.refetchQueries(trpc.realtime.pathFilter());+ client.refetchQueries(+ trpc.chart.chart.queryFilter(getReport(projectId)),+ );+ client.refetchQueries(+ trpc.chart.chart.queryFilter(getCountReport(projectId)),+ );+ }+ },+ {+ debounce: {+ delay: 1000,+ maxWait: 60000,+ },+ },+ );++ return null;+};++export default RealtimeReloader;diff --git a/apps/dashboard/src/components/report-chart/area/chart.tsx b/apps/start/src/components/report-chart/area/chart.tsxsimilarity index 92%rename from apps/dashboard/src/components/report-chart/area/chart.tsxrename to apps/start/src/components/report-chart/area/chart.tsxindex 518aa5f8d..cbe20c4e6 100644--- a/apps/dashboard/src/components/report-chart/area/chart.tsx+++ b/apps/start/src/components/report-chart/area/chart.tsx@@ -1,11 +1,10 @@-'use client';--import { useRechartDataModel } from '@/hooks/useRechartDataModel';-import { useVisibleSeries } from '@/hooks/useVisibleSeries';+import { useRechartDataModel } from '@/hooks/use-rechart-data-model';+import { useVisibleSeries } from '@/hooks/use-visible-series';+import { useTRPC } from '@/integrations/trpc/react';import type { IChartData } from '@/trpc/client';-import { api } from '@/trpc/client';import { cn } from '@/utils/cn';import { getChartColor } from '@/utils/theme';+import { useQuery } from '@tanstack/react-query';import { isSameDay, isSameHour, isSameMonth } from 'date-fns';import { last } from 'ramda';import React, { useCallback } from 'react';@@ -47,16 +46,19 @@ export function Chart({ data }: Props) {isEditMode,options: { hideXAxis, hideYAxis },} = useReportChartContext();- const references = api.reference.getChartReferences.useQuery(- {- projectId,- startDate,- endDate,- range,- },- {- staleTime: 1000 * 60 * 10,- },+ const trpc = useTRPC();+ const references = useQuery(+ trpc.reference.getChartReferences.queryOptions(+ {+ projectId,+ startDate,+ endDate,+ range,+ },+ {+ staleTime: 1000 * 60 * 10,+ },+ ),);const { series, setVisibleSeries } = useVisibleSeries(data);const rechartData = useRechartDataModel(series);diff --git a/apps/dashboard/src/components/report-chart/area/index.tsx b/apps/start/src/components/report-chart/area/index.tsxsimilarity index 72%rename from apps/dashboard/src/components/report-chart/area/index.tsxrename to apps/start/src/components/report-chart/area/index.tsxindex 0b9269f06..c8d3f74a4 100644--- a/apps/dashboard/src/components/report-chart/area/index.tsx+++ b/apps/start/src/components/report-chart/area/index.tsx@@ -1,4 +1,5 @@-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { keepPreviousData, useQuery } from '@tanstack/react-query';import { AspectContainer } from '../aspect-container';import { ReportChartEmpty } from '../common/empty';@@ -9,12 +10,15 @@ import { Chart } from './chart';export function ReportAreaChart() {const { isLazyLoading, report } = useReportChartContext();+ const trpc = useTRPC();- const res = api.chart.chart.useQuery(report, {- keepPreviousData: true,- staleTime: 1000 * 60 * 1,- enabled: !isLazyLoading,- });+ const res = useQuery(+ trpc.chart.chart.queryOptions(report, {+ placeholderData: keepPreviousData,+ staleTime: 1000 * 60 * 1,+ enabled: !isLazyLoading,+ }),+ );if (isLazyLoading ||@@ -28,7 +32,7 @@ export function ReportAreaChart() {return <Error />;}- if (res.data.series.length === 0) {+ if (!res.data || res.data?.series.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/components/report-chart/aspect-container.tsx b/apps/start/src/components/report-chart/aspect-container.tsxsimilarity index 97%rename from apps/dashboard/src/components/report-chart/aspect-container.tsxrename to apps/start/src/components/report-chart/aspect-container.tsxindex 673e9bac8..a331ce54b 100644--- a/apps/dashboard/src/components/report-chart/aspect-container.tsx+++ b/apps/start/src/components/report-chart/aspect-container.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import { DEFAULT_ASPECT_RATIO } from '@openpanel/constants';diff --git a/apps/dashboard/src/components/report-chart/bar/chart.tsx b/apps/start/src/components/report-chart/bar/chart.tsxsimilarity index 53%rename from apps/dashboard/src/components/report-chart/bar/chart.tsxrename to apps/start/src/components/report-chart/bar/chart.tsxindex 7c020651b..b85cc0e50 100644--- a/apps/dashboard/src/components/report-chart/bar/chart.tsx+++ b/apps/start/src/components/report-chart/bar/chart.tsx@@ -1,12 +1,10 @@-'use client';-import {DropdownMenu,DropdownMenuContent,DropdownMenuItem,DropdownMenuTrigger,} from '@/components/ui/dropdown-menu';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';import type { IChartData } from '@/trpc/client';import { cn } from '@/utils/cn';import { DropdownMenuPortal } from '@radix-ui/react-dropdown-menu';@@ -15,6 +13,7 @@ import { useMemo, useState } from 'react';import { round } from '@openpanel/common';import { NOT_SET_VALUE } from '@openpanel/constants';+import { OverviewWidgetTable } from '../../overview/overview-widget-table';import { PreviousDiffIndicator } from '../common/previous-diff-indicator';import { SerieIcon } from '../common/serie-icon';import { SerieName } from '../common/serie-name';@@ -28,7 +27,7 @@ export function Chart({ data }: Props) {const [isOpen, setOpen] = useState<string | null>(null);const {isEditMode,- report: { metric, limit },+ report: { metric, limit, previous },options: { onClick, dropdownMenuContent, columns },} = useReportChartContext();const number = useNumber();@@ -38,32 +37,11 @@ export function Chart({ data }: Props) {);const maxCount = Math.max(...series.map((serie) => serie.metrics[metric]));- return (- <div- className={cn(- 'flex flex-col text-sm',- isEditMode ? 'card gap-2 p-4 text-base' : '-m-3 gap-1',- )}- >- {columns && columns.length > 0 && (- <div className="relative z-10 flex w-full flex-1 items-center gap-4 overflow-hidden px-3 pt-2 pb-1">- {columns.map((column, index) => {- const isLast = columns.length - 1 <= index;- return (- <div- key={column?.toString()}- className={cn(- 'flex flex-1 items-center gap-2 break-all font-medium',- isLast && 'justify-end text-right',- )}- >- {column}- </div>- );- })}- </div>- )}- {series.map((serie) => {+ const tableColumns = [+ {+ name: columns?.[0] || 'Name',+ width: 'w-full',+ render: (serie: (typeof series)[0]) => {const isClickable = !serie.names.includes(NOT_SET_VALUE) && onClick;const isDropDownEnabled =!serie.names.includes(NOT_SET_VALUE) &&@@ -71,7 +49,6 @@ export function Chart({ data }: Props) {return (<DropdownMenu- key={serie.id}onOpenChange={() =>setOpen((p) => (p === serie.id ? null : serie.id))}@@ -82,10 +59,6 @@ export function Chart({ data }: Props) {disabled={!isDropDownEnabled}{...(isDropDownEnabled? {- // We need to disable onPointerDown event to prevent the- // dropdown from opening when the user is scrolling (mobile/tablet).- // We also need to handle open/closed state and chnage this- // when onClick happensonPointerDown: (e) => e.preventDefault(),onClick: () => setOpen(serie.id),}@@ -93,7 +66,7 @@ export function Chart({ data }: Props) {><divclassName={cn(- 'relative',+ 'flex items-center gap-2 break-all font-medium',(isClickable || isDropDownEnabled) && 'cursor-pointer',)}{...(isClickable && !isDropDownEnabled@@ -102,33 +75,8 @@ export function Chart({ data }: Props) {}: {})}>- <div- className="absolute bottom-0.5 left-1 right-1 top-0.5 rounded bg-def-200"- style={{- width: `calc(${(serie.metrics.sum / maxCount) * 100}% - 8px)`,- }}- />- <div className="relative z-10 flex w-full flex-1 items-center gap-4 overflow-hidden px-3 py-2">- <div className="flex flex-1 items-center gap-2 break-all font-medium">- <SerieIcon name={serie.names[0]} />- <SerieName name={serie.names} />- </div>- <div className="flex flex-shrink-0 items-center justify-end gap-4 font-mono">- <PreviousDiffIndicator- {...serie.metrics.previous?.[metric]}- />- {serie.metrics.previous?.[metric]?.value}- <div className="text-muted-foreground">- {number.format(- round((serie.metrics.sum / data.metrics.sum) * 100, 2),- )}- %- </div>- <div className="font-bold">- {number.format(serie.metrics.sum)}- </div>- </div>- </div>+ <SerieIcon name={serie.names[0]} />+ <SerieName name={serie.names} /></div></DropdownMenuTrigger><DropdownMenuPortal>@@ -143,7 +91,71 @@ export function Chart({ data }: Props) {</DropdownMenuPortal></DropdownMenu>);- })}+ },+ },+ // Percentage column+ {+ name: '%',+ width: '70px',+ render: (serie: (typeof series)[0]) => (+ <div className="text-muted-foreground font-mono">+ {number.format(+ round((serie.metrics.sum / data.metrics.sum) * 100, 2),+ )}+ %+ </div>+ ),+ },++ // Previous value column+ {+ name: 'Previous',+ width: '130px',+ render: (serie: (typeof series)[0]) => (+ <div className="flex items-center gap-2 font-mono justify-end">+ <div className="font-bold">+ {number.format(serie.metrics.previous?.[metric]?.value)}+ </div>+ <PreviousDiffIndicator+ {...serie.metrics.previous?.[metric]}+ size="xs"+ className="text-muted-foreground"+ />+ </div>+ ),+ },++ // Main count column (always last)+ {+ name: 'Count',+ width: '80px',+ render: (serie: (typeof series)[0]) => (+ <div className="font-bold font-mono">+ {number.format(serie.metrics.sum)}+ </div>+ ),+ },+ ];++ return (+ <div+ className={cn(+ 'text-sm',+ isEditMode ? 'card gap-2 p-4 text-base' : '-m-3',+ )}+ >+ <OverviewWidgetTable+ data={series}+ keyExtractor={(serie) => serie.id}+ columns={tableColumns.filter((column) => {+ if (!previous && column.name === 'Previous') {+ return false;+ }+ return true;+ })}+ getColumnPercentage={(serie) => serie.metrics.sum / maxCount}+ className={cn(isEditMode ? 'min-h-[358px]' : 'min-h-0')}+ /></div>);}diff --git a/apps/dashboard/src/components/report-chart/bar/index.tsx b/apps/start/src/components/report-chart/bar/index.tsxsimilarity index 78%rename from apps/dashboard/src/components/report-chart/bar/index.tsxrename to apps/start/src/components/report-chart/bar/index.tsxindex 006903929..28f2779b9 100644--- a/apps/dashboard/src/components/report-chart/bar/index.tsx+++ b/apps/start/src/components/report-chart/bar/index.tsx@@ -1,4 +1,5 @@-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { keepPreviousData, useQuery } from '@tanstack/react-query';import { AspectContainer } from '../aspect-container';import { ReportChartEmpty } from '../common/empty';@@ -8,12 +9,15 @@ import { Chart } from './chart';export function ReportBarChart() {const { isLazyLoading, report } = useReportChartContext();+ const trpc = useTRPC();- const res = api.chart.chart.useQuery(report, {- keepPreviousData: true,- staleTime: 1000 * 60 * 1,- enabled: !isLazyLoading,- });+ const res = useQuery(+ trpc.chart.chart.queryOptions(report, {+ placeholderData: keepPreviousData,+ staleTime: 1000 * 60 * 1,+ enabled: !isLazyLoading,+ }),+ );if (isLazyLoading ||@@ -27,7 +31,7 @@ export function ReportBarChart() {return <Error />;}- if (res.data.series.length === 0) {+ if (!res.data || res.data?.series.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/components/report-chart/common/axis.tsx b/apps/start/src/components/report-chart/common/axis.tsxsimilarity index 83%rename from apps/dashboard/src/components/report-chart/common/axis.tsxrename to apps/start/src/components/report-chart/common/axis.tsxindex fbb597b90..97daa1b34 100644--- a/apps/dashboard/src/components/report-chart/common/axis.tsx+++ b/apps/start/src/components/report-chart/common/axis.tsx@@ -1,6 +1,6 @@-import { useDebounceFn } from '@/hooks/useDebounceFn';-import { useFormatDateInterval } from '@/hooks/useFormatDateInterval';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useDebounceFn } from '@/hooks/use-debounce-fn';+import { useFormatDateInterval } from '@/hooks/use-format-date-interval';+import { useNumber } from '@/hooks/use-numer-formatter';import { isNil } from 'ramda';import { useRef, useState } from 'react';import type { AxisDomain } from 'recharts/types/util/types';@@ -49,6 +49,14 @@ export const useYAxisProps = (options?: {};};+export const X_AXIS_STYLE_PROPS = {+ height: 14,+ tickSize: 10,+ axisLine: false,+ tickLine: false,+ ...AXIS_FONT_PROPS,+};+export const useXAxisProps = ({interval = 'auto',@@ -65,9 +73,8 @@ export const useXAxisProps = (interval === 'auto' ? 'day' : interval,);return {- height: hide ? 0 : 14,- tickSize: 10,- axisLine: false,+ ...X_AXIS_STYLE_PROPS,+ height: hide ? 0 : X_AXIS_STYLE_PROPS.height,dataKey: 'timestamp',scale: 'utc',domain: ['dataMin', 'dataMax'] as AxisDomain,@@ -82,8 +89,5 @@ export const useXAxisProps = (return formatDate(new Date(m));},type: 'number' as const,- tickLine: false,- minTickGap: 20,- ...AXIS_FONT_PROPS,} as const;};diff --git a/apps/dashboard/src/components/report-chart/common/empty.tsx b/apps/start/src/components/report-chart/common/empty.tsxsimilarity index 100%rename from apps/dashboard/src/components/report-chart/common/empty.tsxrename to apps/start/src/components/report-chart/common/empty.tsxdiff --git a/apps/dashboard/src/components/report-chart/common/error.tsx b/apps/start/src/components/report-chart/common/error.tsxsimilarity index 100%rename from apps/dashboard/src/components/report-chart/common/error.tsxrename to apps/start/src/components/report-chart/common/error.tsxdiff --git a/apps/dashboard/src/components/report-chart/common/linear-gradient.tsx b/apps/start/src/components/report-chart/common/linear-gradient.tsxsimilarity index 100%rename from apps/dashboard/src/components/report-chart/common/linear-gradient.tsxrename to apps/start/src/components/report-chart/common/linear-gradient.tsxdiff --git a/apps/dashboard/src/components/report-chart/common/loading.tsx b/apps/start/src/components/report-chart/common/loading.tsxsimilarity index 100%rename from apps/dashboard/src/components/report-chart/common/loading.tsxrename to apps/start/src/components/report-chart/common/loading.tsxdiff --git a/apps/dashboard/src/components/report-chart/common/previous-diff-indicator.tsx b/apps/start/src/components/report-chart/common/previous-diff-indicator.tsxsimilarity index 94%rename from apps/dashboard/src/components/report-chart/common/previous-diff-indicator.tsxrename to apps/start/src/components/report-chart/common/previous-diff-indicator.tsxindex c54567886..17be3bf91 100644--- a/apps/dashboard/src/components/report-chart/common/previous-diff-indicator.tsx+++ b/apps/start/src/components/report-chart/common/previous-diff-indicator.tsx@@ -1,4 +1,4 @@-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';import { cn } from '@/utils/cn';import { ArrowDownIcon, ArrowUpIcon } from 'lucide-react';@@ -29,7 +29,7 @@ interface PreviousDiffIndicatorProps {children?: React.ReactNode;inverted?: boolean;className?: string;- size?: 'sm' | 'lg' | 'md';+ size?: 'sm' | 'lg' | 'md' | 'xs';}export function PreviousDiffIndicator({@@ -81,6 +81,7 @@ export function PreviousDiffIndicator({variant,size === 'lg' && 'size-8',size === 'md' && 'size-6',+ size === 'xs' && 'size-3',)}>{renderIcon()}@@ -96,7 +97,7 @@ interface PreviousDiffIndicatorPureProps {diff?: number | null | undefined;state?: string | null | undefined;inverted?: boolean;- size?: 'sm' | 'lg' | 'md';+ size?: 'sm' | 'lg' | 'md' | 'xs';className?: string;showPrevious?: boolean;}@@ -145,6 +146,7 @@ export function PreviousDiffIndicatorPure({variant,size === 'lg' && 'size-8',size === 'md' && 'size-6',+ size === 'xs' && 'size-3',)}>{renderIcon()}diff --git a/apps/dashboard/src/components/report-chart/common/report-chart-tooltip.tsx b/apps/start/src/components/report-chart/common/report-chart-tooltip.tsxsimilarity index 95%rename from apps/dashboard/src/components/report-chart/common/report-chart-tooltip.tsxrename to apps/start/src/components/report-chart/common/report-chart-tooltip.tsxindex b837059f0..d4661a459 100644--- a/apps/dashboard/src/components/report-chart/common/report-chart-tooltip.tsx+++ b/apps/start/src/components/report-chart/common/report-chart-tooltip.tsx@@ -1,6 +1,6 @@-import { useFormatDateInterval } from '@/hooks/useFormatDateInterval';-import { useNumber } from '@/hooks/useNumerFormatter';-import type { IRechartPayloadItem } from '@/hooks/useRechartDataModel';+import { useFormatDateInterval } from '@/hooks/use-format-date-interval';+import { useNumber } from '@/hooks/use-numer-formatter';+import type { IRechartPayloadItem } from '@/hooks/use-rechart-data-model';import type { IToolTipProps } from '@/types';import * as Portal from '@radix-ui/react-portal';import { bind } from 'bind-event-listener';diff --git a/apps/dashboard/src/components/report-chart/common/report-table.tsx b/apps/start/src/components/report-chart/common/report-table.tsxsimilarity index 97%rename from apps/dashboard/src/components/report-chart/common/report-table.tsxrename to apps/start/src/components/report-chart/common/report-table.tsxindex b279fc252..5fb61c4b6 100644--- a/apps/dashboard/src/components/report-chart/common/report-table.tsx+++ b/apps/start/src/components/report-chart/common/report-table.tsx@@ -11,8 +11,8 @@ import {TableRow,} from '@/components/ui/table';import { Tooltiper } from '@/components/ui/tooltip';-import { useFormatDateInterval } from '@/hooks/useFormatDateInterval';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useFormatDateInterval } from '@/hooks/use-format-date-interval';+import { useNumber } from '@/hooks/use-numer-formatter';import { useSelector } from '@/redux';import { getPropertyLabel } from '@/translations/properties';import type { IChartData } from '@/trpc/client';@@ -177,14 +177,14 @@ export function ReportTable({</div></div>- <div className="row mt-4 justify-end">+ {/* <div className="row mt-4 justify-end"><Paginationcursor={page}setCursor={setPage}take={ROWS_LIMIT}count={data.series.length}/>- </div>+ </div> */}</>);}diff --git a/apps/dashboard/src/components/report-chart/common/serie-icon.flags.tsx b/apps/start/src/components/report-chart/common/serie-icon.flags.tsxsimilarity index 100%rename from apps/dashboard/src/components/report-chart/common/serie-icon.flags.tsxrename to apps/start/src/components/report-chart/common/serie-icon.flags.tsxdiff --git a/apps/dashboard/src/components/report-chart/common/serie-icon.tsx b/apps/start/src/components/report-chart/common/serie-icon.tsxsimilarity index 82%rename from apps/dashboard/src/components/report-chart/common/serie-icon.tsxrename to apps/start/src/components/report-chart/common/serie-icon.tsxindex 2975a9905..741978356 100644--- a/apps/dashboard/src/components/report-chart/common/serie-icon.tsx+++ b/apps/start/src/components/report-chart/common/serie-icon.tsx@@ -18,6 +18,7 @@ import { useMemo } from 'react';import { NOT_SET_VALUE } from '@openpanel/constants';+import { useAppContext } from '@/hooks/use-app-context';import flags from './serie-icon.flags';import iconsWithUrls from './serie-icon.urls';@@ -26,17 +27,22 @@ type SerieIconProps = Omit<LucideProps, 'name'> & {};function getProxyImage(url: string) {- return `${String(process.env.NEXT_PUBLIC_API_URL)}/misc/favicon?url=${encodeURIComponent(url)}`;+ return `/misc/favicon?url=${encodeURIComponent(url)}`;}const createImageIcon = (url: string) => {- return ((_props: LucideProps) => (- <img- alt="serie icon"- className="max-h-4 rounded-[2px] object-contain"- src={url}- />- )) as LucideIcon;+ return ((_props: LucideProps) => {+ const context = useAppContext();+ return (+ <img+ alt="serie icon"+ className="max-h-4 rounded-[2px] object-contain"+ src={context.apiUrl?.replace(/\/$/, '') + url}+ loading="lazy"+ decoding="async"+ />+ );+ }) as LucideIcon;};const mapper: Record<string, LucideIcon> = {diff --git a/apps/dashboard/src/components/report-chart/common/serie-icon.urls.ts b/apps/start/src/components/report-chart/common/serie-icon.urls.tssimilarity index 89%rename from apps/dashboard/src/components/report-chart/common/serie-icon.urls.tsrename to apps/start/src/components/report-chart/common/serie-icon.urls.tsindex 8ea6a90c6..03b489068 100644--- a/apps/dashboard/src/components/report-chart/common/serie-icon.urls.ts+++ b/apps/start/src/components/report-chart/common/serie-icon.urls.ts@@ -52,6 +52,12 @@ const data = {microlaunch: 'https://microlaunch.net',openalternative: 'https://openalternative.co',opera: 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Opera_2015_icon.svg/1920px-Opera_2015_icon.svg.png',+ 'opera touch': 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Opera_2015_icon.svg/1920px-Opera_2015_icon.svg.png',+ 'miui browser': 'https://www.apkmirror.com/wp-content/themes/APKMirror/ap_resize/ap_resize.php?src=https%3A%2F%2Fdownloadr2.apkmirror.com%2Fwp-content%2Fuploads%2F2020%2F07%2F79%2F5f06abb0c532a.png',+ 'huawei browser': 'https://www.apkmirror.com/wp-content/themes/APKMirror/ap_resize/ap_resize.php?src=https%3A%2F%2Fdownloadr2.apkmirror.com%2Fwp-content%2Fuploads%2F2021%2F09%2F49%2F613e45827fe31.png',+ 'vivo browser': 'https://play-lh.googleusercontent.com/SYGXsBZOFsI4p72IoWtJiuAdp2Acv0WB4e6R1jxNcQdPcOdP1sXk_Cfcr1KBt2lzZQ=w480-h960-rw',+ 'qqbrowser': 'https://cdn6.aptoide.com/imgs/6/1/4/614713aba4f9ca93a4e20257014d0713_icon.png',+ 'quark': 'https://play-lh.googleusercontent.com/o__Uwu3TEsDVJ92m6zacy2GXotP2faFAlLQJOgOxYFsgoDkDYwODQ4STHY1fe0n_imlpiiUiE-QgRQaWdyi99w=w240-h480-rw',pinterest: 'https://www.pinterest.se',producthunt: 'https://www.producthunt.com',reddit: 'https://reddit.com',diff --git a/apps/dashboard/src/components/report-chart/common/serie-name.tsx b/apps/start/src/components/report-chart/common/serie-name.tsxsimilarity index 100%rename from apps/dashboard/src/components/report-chart/common/serie-name.tsxrename to apps/start/src/components/report-chart/common/serie-name.tsxdiff --git a/apps/dashboard/src/components/report-chart/context.tsx b/apps/start/src/components/report-chart/context.tsxsimilarity index 100%rename from apps/dashboard/src/components/report-chart/context.tsxrename to apps/start/src/components/report-chart/context.tsxdiff --git a/apps/dashboard/src/components/report-chart/conversion/chart.tsx b/apps/start/src/components/report-chart/conversion/chart.tsxsimilarity index 92%rename from apps/dashboard/src/components/report-chart/conversion/chart.tsxrename to apps/start/src/components/report-chart/conversion/chart.tsxindex a523c360c..8710fdac8 100644--- a/apps/dashboard/src/components/report-chart/conversion/chart.tsx+++ b/apps/start/src/components/report-chart/conversion/chart.tsx@@ -1,7 +1,4 @@-'use client';-import type { RouterOutputs } from '@/trpc/client';-import { api } from '@/trpc/client';import { cn } from '@/utils/cn';import { getChartColor } from '@/utils/theme';import {@@ -15,10 +12,12 @@ import {} from 'recharts';import { createChartTooltip } from '@/components/charts/chart-tooltip';-import { useFormatDateInterval } from '@/hooks/useFormatDateInterval';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useFormatDateInterval } from '@/hooks/use-format-date-interval';+import { useNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';import { average, getPreviousMetric, round } from '@openpanel/common';import type { IInterval } from '@openpanel/validation';+import { useQuery } from '@tanstack/react-query';import { Fragment } from 'react';import { useXAxisProps, useYAxisProps } from '../common/axis';import { PreviousDiffIndicatorPure } from '../common/previous-diff-indicator';@@ -44,16 +43,19 @@ export function Chart({ data }: Props) {options: { hideXAxis, hideYAxis, maxDomain },} = useReportChartContext();const dataLength = data.current.length || 0;- const references = api.reference.getChartReferences.useQuery(- {- projectId,- startDate,- endDate,- range,- },- {- staleTime: 1000 * 60 * 10,- },+ const trpc = useTRPC();+ const references = useQuery(+ trpc.reference.getChartReferences.queryOptions(+ {+ projectId,+ startDate,+ endDate,+ range,+ },+ {+ staleTime: 1000 * 60 * 10,+ },+ ),);const xAxisProps = useXAxisProps({ interval, hide: hideXAxis });diff --git a/apps/dashboard/src/components/report-chart/conversion/index.tsx b/apps/start/src/components/report-chart/conversion/index.tsxsimilarity index 75%rename from apps/dashboard/src/components/report-chart/conversion/index.tsxrename to apps/start/src/components/report-chart/conversion/index.tsxindex 72492f4da..f46a89bdb 100644--- a/apps/dashboard/src/components/report-chart/conversion/index.tsx+++ b/apps/start/src/components/report-chart/conversion/index.tsx@@ -1,4 +1,5 @@-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { keepPreviousData, useQuery } from '@tanstack/react-query';import { cn } from '@/utils/cn';import { AspectContainer } from '../aspect-container';@@ -11,12 +12,15 @@ import { Summary } from './summary';export function ReportConversionChart() {const { isLazyLoading, report } = useReportChartContext();+ const trpc = useTRPC();- const res = api.chart.conversion.useQuery(report, {- keepPreviousData: true,- staleTime: 1000 * 60 * 1,- enabled: !isLazyLoading,- });+ const res = useQuery(+ trpc.chart.conversion.queryOptions(report, {+ placeholderData: keepPreviousData,+ staleTime: 1000 * 60 * 1,+ enabled: !isLazyLoading,+ }),+ );if (isLazyLoading ||@@ -30,7 +34,7 @@ export function ReportConversionChart() {return <Error />;}- if (res.data.current.length === 0) {+ if (!res.data || res.data?.current.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/components/report-chart/conversion/summary.tsx b/apps/start/src/components/report-chart/conversion/summary.tsxsimilarity index 99%rename from apps/dashboard/src/components/report-chart/conversion/summary.tsxrename to apps/start/src/components/report-chart/conversion/summary.tsxindex 163eabd83..683d8fc17 100644--- a/apps/dashboard/src/components/report-chart/conversion/summary.tsx+++ b/apps/start/src/components/report-chart/conversion/summary.tsx@@ -1,9 +1,8 @@-'use client';import type { RouterOutputs } from '@/trpc/client';import React, { useMemo } from 'react';import { Stats, StatsCard } from '@/components/stats';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';import { formatDate } from '@/utils/date';import { average, getPreviousMetric, sum } from '@openpanel/common';import { ChevronRightIcon } from 'lucide-react';diff --git a/apps/dashboard/src/components/report-chart/funnel/chart.tsx b/apps/start/src/components/report-chart/funnel/chart.tsxsimilarity index 98%rename from apps/dashboard/src/components/report-chart/funnel/chart.tsxrename to apps/start/src/components/report-chart/funnel/chart.tsxindex c2f553d76..57a248851 100644--- a/apps/dashboard/src/components/report-chart/funnel/chart.tsx+++ b/apps/start/src/components/report-chart/funnel/chart.tsx@@ -1,5 +1,3 @@-'use client';-import { ColorSquare } from '@/components/color-square';import type { RouterOutputs } from '@/trpc/client';import { cn } from '@/utils/cn';@@ -10,7 +8,7 @@ import { alphabetIds } from '@openpanel/constants';import { createChartTooltip } from '@/components/charts/chart-tooltip';import { Tooltiper } from '@/components/ui/tooltip';import { WidgetTable } from '@/components/widget-table';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';import { getChartColor } from '@/utils/theme';import { getPreviousMetric } from '@openpanel/common';import {@@ -273,11 +271,10 @@ const useRechartData = ({return {...acc,[`step:percent:${index}`]: item.steps[stepIndex]?.percent ?? null,- [`step:data:${index}`]:- {- ...item,- step: item.steps[stepIndex],- } ?? null,+ [`step:data:${index}`]: {+ ...item,+ step: item.steps[stepIndex],+ },[`prev_step:percent:${index}`]:diff?.steps[stepIndex]?.percent ?? null,[`prev_step:data:${index}`]: diffdiff --git a/apps/dashboard/src/components/report-chart/funnel/index.tsx b/apps/start/src/components/report-chart/funnel/index.tsxsimilarity index 83%rename from apps/dashboard/src/components/report-chart/funnel/index.tsxrename to apps/start/src/components/report-chart/funnel/index.tsxindex d64e99cfc..c9483f0fb 100644--- a/apps/dashboard/src/components/report-chart/funnel/index.tsx+++ b/apps/start/src/components/report-chart/funnel/index.tsx@@ -1,6 +1,6 @@-'use client';--import { type RouterOutputs, api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import type { RouterOutputs } from '@/trpc/client';+import { useQuery } from '@tanstack/react-query';import type { IChartInput } from '@openpanel/validation';@@ -41,9 +41,12 @@ export function ReportFunnelChart() {startDate,endDate,};- const res = api.chart.funnel.useQuery(input, {- enabled: !isLazyLoading,- });+ const trpc = useTRPC();+ const res = useQuery(+ trpc.chart.funnel.queryOptions(input, {+ enabled: !isLazyLoading,+ }),+ );if (isLazyLoading || res.isLoading) {return <Loading />;@@ -53,7 +56,7 @@ export function ReportFunnelChart() {return <Error />;}- if (res.data.current.length === 0) {+ if (!res.data || res.data.current.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/components/report-chart/histogram/chart.tsx b/apps/start/src/components/report-chart/histogram/chart.tsxsimilarity index 70%rename from apps/dashboard/src/components/report-chart/histogram/chart.tsxrename to apps/start/src/components/report-chart/histogram/chart.tsxindex c7d91cf5c..67e3c5e85 100644--- a/apps/dashboard/src/components/report-chart/histogram/chart.tsx+++ b/apps/start/src/components/report-chart/histogram/chart.tsx@@ -1,9 +1,9 @@-import { useRechartDataModel } from '@/hooks/useRechartDataModel';-import { useVisibleSeries } from '@/hooks/useVisibleSeries';+import { useRechartDataModel } from '@/hooks/use-rechart-data-model';+import { useTheme } from '@/hooks/use-theme';+import { useVisibleSeries } from '@/hooks/use-visible-series';import type { IChartData } from '@/trpc/client';import { cn } from '@/utils/cn';-import { getChartColor, theme } from '@/utils/theme';-import { useTheme } from 'next-themes';+import { getChartColor } from '@/utils/theme';import React from 'react';import {Bar,@@ -26,10 +26,10 @@ interface Props {function BarHover({ x, y, width, height, top, left, right, bottom }: any) {const themeMode = useTheme();- const bg =- themeMode?.theme === 'dark'- ? theme.colors['def-100']- : theme.colors['def-300'];+ const styles = getComputedStyle(document.documentElement);+ const def100 = styles.getPropertyValue('--def-100');+ const def300 = styles.getPropertyValue('--def-300');+ const bg = themeMode?.theme === 'dark' ? def100 : def300;return (<rect{...{ x, y, width, height, top, left, right, bottom }}@@ -68,30 +68,30 @@ export function Chart({ data }: Props) {<Tooltip content={<ReportChartTooltip />} cursor={<BarHover />} /><YAxis {...yAxisProps} /><XAxis {...xAxisProps} scale={'auto'} type="category" />- {series.map((serie) => {- return (- <React.Fragment key={serie.id}>- {previous && (+ {previous+ ? series.map((serie) => {+ return (<Barkey={`${serie.id}:prev`}name={`${serie.id}:prev`}dataKey={`${serie.id}:prev:count`}fill={getChartColor(serie.index)}- fillOpacity={0.1}- radius={3}- barSize={5} // Adjust the bar width here+ fillOpacity={0.3}+ radius={5}/>- )}- <Bar- key={serie.id}- name={serie.id}- dataKey={`${serie.id}:count`}- fill={getChartColor(serie.index)}- radius={3}- fillOpacity={1}- barSize={5} // Adjust the bar width here- />- </React.Fragment>+ );+ })+ : null}+ {series.map((serie) => {+ return (+ <Bar+ key={serie.id}+ name={serie.id}+ dataKey={`${serie.id}:count`}+ fill={getChartColor(serie.index)}+ radius={5}+ fillOpacity={1}+ />);})}</BarChart>diff --git a/apps/dashboard/src/components/report-chart/histogram/index.tsx b/apps/start/src/components/report-chart/histogram/index.tsxsimilarity index 73%rename from apps/dashboard/src/components/report-chart/histogram/index.tsxrename to apps/start/src/components/report-chart/histogram/index.tsxindex c578ed1a3..1f6d01468 100644--- a/apps/dashboard/src/components/report-chart/histogram/index.tsx+++ b/apps/start/src/components/report-chart/histogram/index.tsx@@ -1,4 +1,5 @@-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { keepPreviousData, useQuery } from '@tanstack/react-query';import { AspectContainer } from '../aspect-container';import { ReportChartEmpty } from '../common/empty';@@ -9,12 +10,15 @@ import { Chart } from './chart';export function ReportHistogramChart() {const { isLazyLoading, report } = useReportChartContext();+ const trpc = useTRPC();- const res = api.chart.chart.useQuery(report, {- keepPreviousData: true,- staleTime: 1000 * 60 * 1,- enabled: !isLazyLoading,- });+ const res = useQuery(+ trpc.chart.chart.queryOptions(report, {+ placeholderData: keepPreviousData,+ staleTime: 1000 * 60 * 1,+ enabled: !isLazyLoading,+ }),+ );if (isLazyLoading ||@@ -28,7 +32,7 @@ export function ReportHistogramChart() {return <Error />;}- if (res.data.series.length === 0) {+ if (!res.data || res.data?.series.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/components/report-chart/index.tsx b/apps/start/src/components/report-chart/index.tsxsimilarity index 90%rename from apps/dashboard/src/components/report-chart/index.tsxrename to apps/start/src/components/report-chart/index.tsxindex 4f203f183..f116cf1f7 100644--- a/apps/dashboard/src/components/report-chart/index.tsx+++ b/apps/start/src/components/report-chart/index.tsx@@ -1,7 +1,5 @@-'use client';-import { mergeDeepRight } from 'ramda';-import React, { memo, useEffect, useRef } from 'react';+import React, { memo, type RefObject, useEffect, useRef } from 'react';import { useInViewport } from 'react-in-viewport';import { shallowEqual } from 'react-redux';@@ -21,9 +19,13 @@ import { ReportRetentionChart } from './retention';export const ReportChart = ({ lazy = true, ...props }: ReportChartProps) => {const ref = useRef<HTMLDivElement>(null);const once = useRef(false);- const { inViewport } = useInViewport(ref, undefined, {- disconnectOnLeave: true,- });+ const { inViewport } = useInViewport(+ ref as RefObject<HTMLElement>,+ undefined,+ {+ disconnectOnLeave: true,+ },+ );useEffect(() => {if (inViewport) {diff --git a/apps/dashboard/src/components/report-chart/line/chart.tsx b/apps/start/src/components/report-chart/line/chart.tsxsimilarity index 69%rename from apps/dashboard/src/components/report-chart/line/chart.tsxrename to apps/start/src/components/report-chart/line/chart.tsxindex 7661afaf6..a2fae48a5 100644--- a/apps/dashboard/src/components/report-chart/line/chart.tsx+++ b/apps/start/src/components/report-chart/line/chart.tsx@@ -1,20 +1,13 @@-'use client';--import { useRechartDataModel } from '@/hooks/useRechartDataModel';-import { useVisibleSeries } from '@/hooks/useVisibleSeries';-import { api } from '@/trpc/client';+import { useRechartDataModel } from '@/hooks/use-rechart-data-model';+import { useVisibleSeries } from '@/hooks/use-visible-series';+import { useTRPC } from '@/integrations/trpc/react';import type { IChartData } from '@/trpc/client';import { cn } from '@/utils/cn';import { getChartColor } from '@/utils/theme';-import {- isFuture,- isSameDay,- isSameHour,- isSameMonth,- isSameWeek,-} from 'date-fns';+import { useQuery } from '@tanstack/react-query';+import { isSameDay, isSameHour, isSameMonth, isSameWeek } from 'date-fns';import { last } from 'ramda';-import React, { useCallback, useState } from 'react';+import React, { useCallback } from 'react';import {Area,CartesianGrid,@@ -29,9 +22,8 @@ import {YAxis,} from 'recharts';-import { useDashedStroke, useStrokeDasharray } from '@/hooks/use-dashed-stroke';+import { useDashedStroke } from '@/hooks/use-dashed-stroke';import { useXAxisProps, useYAxisProps } from '../common/axis';-import { SolidToDashedGradient } from '../common/linear-gradient';import { ReportChartTooltip } from '../common/report-chart-tooltip';import { ReportTable } from '../common/report-table';import { SerieIcon } from '../common/serie-icon';@@ -57,16 +49,19 @@ export function Chart({ data }: Props) {options: { hideXAxis, hideYAxis, maxDomain },} = useReportChartContext();const dataLength = data.series[0]?.data?.length || 0;- const references = api.reference.getChartReferences.useQuery(- {- projectId,- startDate,- endDate,- range,- },- {- staleTime: 1000 * 60 * 10,- },+ const trpc = useTRPC();+ const references = useQuery(+ trpc.reference.getChartReferences.queryOptions(+ {+ projectId,+ startDate,+ endDate,+ range,+ },+ {+ staleTime: 1000 * 60 * 10,+ },+ ),);const { series, setVisibleSeries } = useVisibleSeries(data);const rechartData = useRechartDataModel(series);@@ -121,15 +116,13 @@ export function Chart({ data }: Props) {}}><SerieIcon name={serie.names} />- <SerieName name={serie.names} />+ <SerieName name={serie.names} className="font-semibold" /></div>))}</div>);}, [series]);- const isAreaStyle = series.length === 1;-const xAxisProps = useXAxisProps({ interval, hide: hideXAxis });const yAxisProps = useYAxisProps({hide: hideYAxis,@@ -174,7 +167,7 @@ export function Chart({ data }: Props) {<XAxis {...xAxisProps} />{series.length > 1 && <Legend content={<CustomLegend />} />}<Tooltip content={<ReportChartTooltip />} />- {series.map((serie) => {+ {/* {series.map((serie) => {const color = getChartColor(serie.index);return (<React.Fragment key={serie.id}>@@ -212,18 +205,6 @@ export function Chart({ data }: Props) {// Use for legendfill={color}/>- {isAreaStyle && (- <Area- dot={false}- name={`${serie.id}:area:noTooltip`}- dataKey={`${serie.id}:count`}- fill={`url(#color${color})`}- type={lineType}- isAnimationActive={false}- strokeWidth={0}- fillOpacity={0.1}- />- )}{previous && (<Linetype={lineType}@@ -239,7 +220,72 @@ export function Chart({ data }: Props) {)}</React.Fragment>);+ })} */}++ <defs>+ <filter+ id="rainbow-line-glow"+ x="-20%"+ y="-20%"+ width="140%"+ height="140%"+ >+ <feGaussianBlur stdDeviation="5" result="blur" />+ <feComponentTransfer in="blur" result="dimmedBlur">+ <feFuncA type="linear" slope="0.5" />+ </feComponentTransfer>+ <feComposite+ in="SourceGraphic"+ in2="dimmedBlur"+ operator="over"+ />+ </filter>+ </defs>++ {series.map((serie) => {+ const color = getChartColor(serie.index);+ return (+ <Line+ key={serie.id}+ dot={dataLength <= 8}+ type={lineType}+ name={serie.id}+ isAnimationActive={false}+ strokeWidth={2}+ dataKey={`${serie.id}:count`}+ stroke={color}+ strokeDasharray={+ useDashedLastLine+ ? getStrokeDasharray(`${serie.id}:count`)+ : undefined+ }+ // Use for legend+ fill={color}+ filter="url(#rainbow-line-glow)"+ />+ );})}++ {/* Previous */}+ {previous+ ? series.map((serie) => {+ const color = getChartColor(serie.index);+ return (+ <Line+ key={`${serie.id}:prev`}+ type={lineType}+ name={`${serie.id}:prev`}+ isAnimationActive+ dot={false}+ strokeOpacity={0.3}+ dataKey={`${serie.id}:prev:count`}+ stroke={color}+ // Use for legend+ fill={color}+ />+ );+ })+ : null}</ComposedChart></ResponsiveContainer></div>diff --git a/apps/dashboard/src/components/report-chart/line/index.tsx b/apps/start/src/components/report-chart/line/index.tsxsimilarity index 73%rename from apps/dashboard/src/components/report-chart/line/index.tsxrename to apps/start/src/components/report-chart/line/index.tsxindex 10bfa00c7..5c11c5d78 100644--- a/apps/dashboard/src/components/report-chart/line/index.tsx+++ b/apps/start/src/components/report-chart/line/index.tsx@@ -1,4 +1,5 @@-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { keepPreviousData, useQuery } from '@tanstack/react-query';import { cn } from '@/utils/cn';import { AspectContainer } from '../aspect-container';@@ -10,12 +11,15 @@ import { Chart } from './chart';export function ReportLineChart() {const { isLazyLoading, report } = useReportChartContext();+ const trpc = useTRPC();- const res = api.chart.chart.useQuery(report, {- keepPreviousData: true,- staleTime: 1000 * 60 * 1,- enabled: !isLazyLoading,- });+ const res = useQuery(+ trpc.chart.chart.queryOptions(report, {+ placeholderData: keepPreviousData,+ staleTime: 1000 * 60 * 1,+ enabled: !isLazyLoading,+ }),+ );if (isLazyLoading ||@@ -29,7 +33,7 @@ export function ReportLineChart() {return <Error />;}- if (res.data.series.length === 0) {+ if (!res.data || res.data?.series.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/components/report-chart/map/chart.tsx b/apps/start/src/components/report-chart/map/chart.tsxsimilarity index 78%rename from apps/dashboard/src/components/report-chart/map/chart.tsxrename to apps/start/src/components/report-chart/map/chart.tsxindex f1fa89e04..45c0d81f5 100644--- a/apps/dashboard/src/components/report-chart/map/chart.tsx+++ b/apps/start/src/components/report-chart/map/chart.tsx@@ -1,12 +1,10 @@-import { useVisibleSeries } from '@/hooks/useVisibleSeries';+import { useVisibleSeries } from '@/hooks/use-visible-series';import type { IChartData } from '@/trpc/client';-import { theme } from '@/utils/theme';import { useMemo } from 'react';import WorldMap from 'react-svg-worldmap';import AutoSizer from 'react-virtualized-auto-sizer';-import { useOverviewOptions } from '@/components/overview/useOverviewOptions';-import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';import { useReportChartContext } from '../context';interface Props {@@ -41,7 +39,7 @@ export function Chart({ data }: Props) {size={width}data={mapData}color={'var(--chart-0)'}- borderColor={'hsl(var(--foreground))'}+ borderColor={'var(--foreground)'}value-suffix={unit}/>)}diff --git a/apps/dashboard/src/components/report-chart/map/index.tsx b/apps/start/src/components/report-chart/map/index.tsxsimilarity index 71%rename from apps/dashboard/src/components/report-chart/map/index.tsxrename to apps/start/src/components/report-chart/map/index.tsxindex 0c3cc172c..d6ca11c74 100644--- a/apps/dashboard/src/components/report-chart/map/index.tsx+++ b/apps/start/src/components/report-chart/map/index.tsx@@ -1,4 +1,5 @@-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { keepPreviousData, useQuery } from '@tanstack/react-query';import { AspectContainer } from '../aspect-container';import { ReportChartEmpty } from '../common/empty';@@ -9,12 +10,15 @@ import { Chart } from './chart';export function ReportMapChart() {const { isLazyLoading, report } = useReportChartContext();+ const trpc = useTRPC();- const res = api.chart.chart.useQuery(report, {- keepPreviousData: true,- staleTime: 1000 * 60 * 1,- enabled: !isLazyLoading,- });+ const res = useQuery(+ trpc.chart.chart.queryOptions(report, {+ placeholderData: keepPreviousData,+ staleTime: 1000 * 60 * 1,+ enabled: !isLazyLoading,+ }),+ );if (isLazyLoading ||@@ -28,7 +32,7 @@ export function ReportMapChart() {return <Error />;}- if (res.data.series.length === 0) {+ if (!res.data || res.data?.series.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/components/report-chart/metric/chart.tsx b/apps/start/src/components/report-chart/metric/chart.tsxsimilarity index 91%rename from apps/dashboard/src/components/report-chart/metric/chart.tsxrename to apps/start/src/components/report-chart/metric/chart.tsxindex c961d1b1a..9079c6375 100644--- a/apps/dashboard/src/components/report-chart/metric/chart.tsx+++ b/apps/start/src/components/report-chart/metric/chart.tsx@@ -1,6 +1,4 @@-'use client';--import { useVisibleSeries } from '@/hooks/useVisibleSeries';+import { useVisibleSeries } from '@/hooks/use-visible-series';import type { IChartData } from '@/trpc/client';import { cn } from '@/utils/cn';diff --git a/apps/dashboard/src/components/report-chart/metric/index.tsx b/apps/start/src/components/report-chart/metric/index.tsxsimilarity index 79%rename from apps/dashboard/src/components/report-chart/metric/index.tsxrename to apps/start/src/components/report-chart/metric/index.tsxindex bea88f05a..ade245d03 100644--- a/apps/dashboard/src/components/report-chart/metric/index.tsx+++ b/apps/start/src/components/report-chart/metric/index.tsx@@ -1,16 +1,20 @@-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { keepPreviousData, useQuery } from '@tanstack/react-query';import { useReportChartContext } from '../context';import { Chart } from './chart';export function ReportMetricChart() {const { isLazyLoading, report } = useReportChartContext();+ const trpc = useTRPC();- const res = api.chart.chart.useQuery(report, {- keepPreviousData: true,- staleTime: 1000 * 60 * 1,- enabled: !isLazyLoading,- });+ const res = useQuery(+ trpc.chart.chart.queryOptions(report, {+ placeholderData: keepPreviousData,+ staleTime: 1000 * 60 * 1,+ enabled: !isLazyLoading,+ }),+ );if (isLazyLoading ||@@ -24,7 +28,7 @@ export function ReportMetricChart() {return <Error />;}- if (res.data.series.length === 0) {+ if (!res.data || res.data?.series.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/components/report-chart/metric/metric-card.tsx b/apps/start/src/components/report-chart/metric/metric-card.tsxsimilarity index 97%rename from apps/dashboard/src/components/report-chart/metric/metric-card.tsxrename to apps/start/src/components/report-chart/metric/metric-card.tsxindex 0e53c669c..6a6dc94dd 100644--- a/apps/dashboard/src/components/report-chart/metric/metric-card.tsx+++ b/apps/start/src/components/report-chart/metric/metric-card.tsx@@ -1,6 +1,4 @@-'use client';--import { fancyMinutes, useNumber } from '@/hooks/useNumerFormatter';+import { fancyMinutes, useNumber } from '@/hooks/use-numer-formatter';import type { IChartData } from '@/trpc/client';import { cn } from '@/utils/cn';import AutoSizer from 'react-virtualized-auto-sizer';diff --git a/apps/dashboard/src/components/report-chart/pie/chart.tsx b/apps/start/src/components/report-chart/pie/chart.tsxsimilarity index 98%rename from apps/dashboard/src/components/report-chart/pie/chart.tsxrename to apps/start/src/components/report-chart/pie/chart.tsxindex c57665e1e..52b7fc37c 100644--- a/apps/dashboard/src/components/report-chart/pie/chart.tsx+++ b/apps/start/src/components/report-chart/pie/chart.tsx@@ -1,4 +1,4 @@-import { useVisibleSeries } from '@/hooks/useVisibleSeries';+import { useVisibleSeries } from '@/hooks/use-visible-series';import type { IChartData } from '@/trpc/client';import { cn } from '@/utils/cn';import { round } from '@/utils/math';diff --git a/apps/dashboard/src/components/report-chart/pie/index.tsx b/apps/start/src/components/report-chart/pie/index.tsxsimilarity index 72%rename from apps/dashboard/src/components/report-chart/pie/index.tsxrename to apps/start/src/components/report-chart/pie/index.tsxindex 621f91af3..58f7edcc7 100644--- a/apps/dashboard/src/components/report-chart/pie/index.tsx+++ b/apps/start/src/components/report-chart/pie/index.tsx@@ -1,4 +1,5 @@-import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { keepPreviousData, useQuery } from '@tanstack/react-query';import { AspectContainer } from '../aspect-container';import { ReportChartEmpty } from '../common/empty';@@ -9,12 +10,15 @@ import { Chart } from './chart';export function ReportPieChart() {const { isLazyLoading, report } = useReportChartContext();+ const trpc = useTRPC();- const res = api.chart.chart.useQuery(report, {- keepPreviousData: true,- staleTime: 1000 * 60 * 1,- enabled: !isLazyLoading,- });+ const res = useQuery(+ trpc.chart.chart.queryOptions(report, {+ placeholderData: keepPreviousData,+ staleTime: 1000 * 60 * 1,+ enabled: !isLazyLoading,+ }),+ );if (isLazyLoading ||@@ -28,7 +32,7 @@ export function ReportPieChart() {return <Error />;}- if (res.data.series.length === 0) {+ if (!res.data || res.data?.series.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/reports/report-editor.tsx b/apps/start/src/components/report-chart/report-editor.tsxsimilarity index 92%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/reports/report-editor.tsxrename to apps/start/src/components/report-chart/report-editor.tsxindex 77b73cd8a..aeede1458 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/reports/report-editor.tsx+++ b/apps/start/src/components/report-chart/report-editor.tsx@@ -1,6 +1,3 @@-'use client';--import { StickyBelowHeader } from '@/app/(app)/[organizationSlug]/[projectId]/layout-sticky-below-header';import { ReportChart } from '@/components/report-chart';import { ReportChartType } from '@/components/report/ReportChartType';import { ReportInterval } from '@/components/report/ReportInterval';@@ -21,7 +18,7 @@ import { ReportSidebar } from '@/components/report/sidebar/ReportSidebar';import { TimeWindowPicker } from '@/components/time-window-picker';import { Button } from '@/components/ui/button';import { Sheet, SheetContent, SheetTrigger } from '@/components/ui/sheet';-import { useAppParams } from '@/hooks/useAppParams';+import { useAppParams } from '@/hooks/use-app-params';import { useDispatch, useSelector } from '@/redux';import { bind } from 'bind-event-listener';import { GanttChartSquareIcon } from 'lucide-react';@@ -66,7 +63,7 @@ export default function ReportEditor({return (<Sheet>- <StickyBelowHeader className="grid grid-cols-2 gap-2 p-4 md:grid-cols-6">+ <div className="grid grid-cols-2 gap-2 p-4 md:grid-cols-6"><SheetTrigger asChild><div><Button icon={GanttChartSquareIcon} variant="cta">@@ -105,7 +102,7 @@ export default function ReportEditor({<div className="col-start-2 row-start-1 text-right md:col-start-6"><ReportSaveButton /></div>- </StickyBelowHeader>+ </div><div className="flex flex-col gap-4 p-4" id="report-editor">{report.ready && (<ReportChart report={{ ...report, projectId }} isEditMode />diff --git a/apps/dashboard/src/components/report-chart/retention/chart.tsx b/apps/start/src/components/report-chart/retention/chart.tsxsimilarity index 99%rename from apps/dashboard/src/components/report-chart/retention/chart.tsxrename to apps/start/src/components/report-chart/retention/chart.tsxindex bd22c4ce8..aa772a702 100644--- a/apps/dashboard/src/components/report-chart/retention/chart.tsx+++ b/apps/start/src/components/report-chart/retention/chart.tsx@@ -1,5 +1,3 @@-'use client';-import type { RouterOutputs } from '@/trpc/client';import { cn } from '@/utils/cn';import { getChartColor } from '@/utils/theme';diff --git a/apps/dashboard/src/components/report-chart/retention/index.tsx b/apps/start/src/components/report-chart/retention/index.tsxsimilarity index 76%rename from apps/dashboard/src/components/report-chart/retention/index.tsxrename to apps/start/src/components/report-chart/retention/index.tsxindex 27b835c99..ff2d777d9 100644--- a/apps/dashboard/src/components/report-chart/retention/index.tsx+++ b/apps/start/src/components/report-chart/retention/index.tsx@@ -1,6 +1,5 @@-'use client';--import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { keepPreviousData, useQuery } from '@tanstack/react-query';import { AspectContainer } from '../aspect-container';import { ReportChartEmpty } from '../common/empty';@@ -27,22 +26,25 @@ export function ReportRetentionChart() {const secondEvent = (events[1]?.filters[0]?.value ?? []).map(String);const isEnabled =firstEvent.length > 0 && secondEvent.length > 0 && !isLazyLoading;- const res = api.chart.cohort.useQuery(- {- firstEvent,- secondEvent,- projectId,- range,- startDate,- endDate,- criteria,- interval,- },- {- keepPreviousData: true,- staleTime: 1000 * 60 * 1,- enabled: isEnabled,- },+ const trpc = useTRPC();+ const res = useQuery(+ trpc.chart.cohort.queryOptions(+ {+ firstEvent,+ secondEvent,+ projectId,+ range,+ startDate,+ endDate,+ criteria,+ interval,+ },+ {+ placeholderData: keepPreviousData,+ staleTime: 1000 * 60 * 1,+ enabled: isEnabled,+ },+ ),);if (!isEnabled) {@@ -57,7 +59,7 @@ export function ReportRetentionChart() {return <Error />;}- if (res.data.length === 0) {+ if (!res.data || res.data?.length === 0) {return <Empty />;}diff --git a/apps/dashboard/src/components/report-chart/retention/table.tsx b/apps/start/src/components/report-chart/retention/table.tsxsimilarity index 98%rename from apps/dashboard/src/components/report-chart/retention/table.tsxrename to apps/start/src/components/report-chart/retention/table.tsxindex cae85b0cc..f81e65376 100644--- a/apps/dashboard/src/components/report-chart/retention/table.tsx+++ b/apps/start/src/components/report-chart/retention/table.tsx@@ -1,4 +1,4 @@-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';import type { RouterOutputs } from '@/trpc/client';import { cn } from '@/utils/cn';import { max, min } from '@openpanel/common';diff --git a/apps/dashboard/src/components/report-chart/retention/tooltip.tsx b/apps/start/src/components/report-chart/retention/tooltip.tsxsimilarity index 95%rename from apps/dashboard/src/components/report-chart/retention/tooltip.tsxrename to apps/start/src/components/report-chart/retention/tooltip.tsxindex 7015eab85..25ef298aa 100644--- a/apps/dashboard/src/components/report-chart/retention/tooltip.tsx+++ b/apps/start/src/components/report-chart/retention/tooltip.tsx@@ -1,4 +1,4 @@-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';import type { RouterOutputs } from '@/trpc/client';import { useReportChartContext } from '../context';diff --git a/apps/dashboard/src/components/report-chart/shortcut.tsx b/apps/start/src/components/report-chart/shortcut.tsxsimilarity index 100%rename from apps/dashboard/src/components/report-chart/shortcut.tsxrename to apps/start/src/components/report-chart/shortcut.tsxdiff --git a/apps/dashboard/src/components/report/ReportChartType.tsx b/apps/start/src/components/report/ReportChartType.tsxsimilarity index 100%rename from apps/dashboard/src/components/report/ReportChartType.tsxrename to apps/start/src/components/report/ReportChartType.tsxdiff --git a/apps/dashboard/src/components/report/ReportInterval.tsx b/apps/start/src/components/report/ReportInterval.tsxsimilarity index 100%rename from apps/dashboard/src/components/report/ReportInterval.tsxrename to apps/start/src/components/report/ReportInterval.tsxdiff --git a/apps/dashboard/src/components/report/ReportLineType.tsx b/apps/start/src/components/report/ReportLineType.tsxsimilarity index 100%rename from apps/dashboard/src/components/report/ReportLineType.tsxrename to apps/start/src/components/report/ReportLineType.tsxdiff --git a/apps/dashboard/src/components/report/ReportSaveButton.tsx b/apps/start/src/components/report/ReportSaveButton.tsxsimilarity index 58%rename from apps/dashboard/src/components/report/ReportSaveButton.tsxrename to apps/start/src/components/report/ReportSaveButton.tsxindex a2c80b27e..fd8c7fd08 100644--- a/apps/dashboard/src/components/report/ReportSaveButton.tsx+++ b/apps/start/src/components/report/ReportSaveButton.tsx@@ -1,45 +1,47 @@-'use client';-import { Button } from '@/components/ui/button';-import { useAppParams } from '@/hooks/useAppParams';+import { handleError } from '@/integrations/trpc/react';import { pushModal } from '@/modals';import { useDispatch, useSelector } from '@/redux';-import { api, handleError } from '@/trpc/client';import { SaveIcon } from 'lucide-react';import { toast } from 'sonner';-import { useIsFetching } from '@tanstack/react-query';-import { getQueryKey } from '@trpc/react-query';+import { useTRPC } from '@/integrations/trpc/react';+import { useIsFetching, useMutation } from '@tanstack/react-query';++import { useParams } from '@tanstack/react-router';import { resetDirty } from './reportSlice';interface ReportSaveButtonProps {className?: string;}export function ReportSaveButton({ className }: ReportSaveButtonProps) {+ const trpc = useTRPC();const fetching = [- useIsFetching(getQueryKey(api.chart.chart)),- useIsFetching(getQueryKey(api.chart.cohort)),+ useIsFetching(trpc.chart.chart.pathFilter()),+ useIsFetching(trpc.chart.cohort.pathFilter()),];- const { reportId } = useAppParams<{ reportId: string | undefined }>();+ const { reportId } = useParams({ strict: false });const dispatch = useDispatch();- const update = api.report.update.useMutation({- onSuccess() {- dispatch(resetDirty());- toast('Success', {- description: 'Report updated.',- });- },- onError: handleError,- });+ const update = useMutation(+ trpc.report.update.mutationOptions({+ onSuccess() {+ dispatch(resetDirty());+ toast('Success', {+ description: 'Report updated.',+ });+ },+ onError: handleError,+ }),+ );const report = useSelector((state) => state.report);- const isLoading = update.isLoading || fetching.some((f) => f !== 0);+ const isLoading = update.isPending || fetching.some((f) => f !== 0);if (reportId) {return (<ButtonclassName={className}disabled={!report.dirty}- loading={update.isLoading || isLoading}+ loading={update.isPending || isLoading}onClick={() => {update.mutate({reportId: reportId,diff --git a/apps/dashboard/src/components/report/ReportSegment.tsx b/apps/start/src/components/report/ReportSegment.tsxsimilarity index 100%rename from apps/dashboard/src/components/report/ReportSegment.tsxrename to apps/start/src/components/report/ReportSegment.tsxdiff --git a/apps/dashboard/src/components/report/edit-report-name.tsx b/apps/start/src/components/report/edit-report-name.tsxsimilarity index 99%rename from apps/dashboard/src/components/report/edit-report-name.tsxrename to apps/start/src/components/report/edit-report-name.tsxindex 6c7359dd2..df2d18537 100644--- a/apps/dashboard/src/components/report/edit-report-name.tsx+++ b/apps/start/src/components/report/edit-report-name.tsx@@ -1,5 +1,3 @@-'use client';-import { PencilIcon } from 'lucide-react';import { useEffect, useRef, useState } from 'react';diff --git a/apps/dashboard/src/components/report/reportSlice.ts b/apps/start/src/components/report/reportSlice.tssimilarity index 100%rename from apps/dashboard/src/components/report/reportSlice.tsrename to apps/start/src/components/report/reportSlice.tsdiff --git a/apps/dashboard/src/components/report/sidebar/EventPropertiesCombobox.tsx b/apps/start/src/components/report/sidebar/EventPropertiesCombobox.tsxsimilarity index 92%rename from apps/dashboard/src/components/report/sidebar/EventPropertiesCombobox.tsxrename to apps/start/src/components/report/sidebar/EventPropertiesCombobox.tsxindex 0648ee621..fe7020876 100644--- a/apps/dashboard/src/components/report/sidebar/EventPropertiesCombobox.tsx+++ b/apps/start/src/components/report/sidebar/EventPropertiesCombobox.tsx@@ -1,6 +1,6 @@import { Combobox } from '@/components/ui/combobox';-import { useAppParams } from '@/hooks/useAppParams';-import { useEventProperties } from '@/hooks/useEventProperties';+import { useAppParams } from '@/hooks/use-app-params';+import { useEventProperties } from '@/hooks/use-event-properties';import { useDispatch, useSelector } from '@/redux';import { api } from '@/trpc/client';import { cn } from '@/utils/cn';diff --git a/apps/dashboard/src/components/report/sidebar/PropertiesCombobox.tsx b/apps/start/src/components/report/sidebar/PropertiesCombobox.tsxsimilarity index 98%rename from apps/dashboard/src/components/report/sidebar/PropertiesCombobox.tsxrename to apps/start/src/components/report/sidebar/PropertiesCombobox.tsxindex d3615122d..20fa2c150 100644--- a/apps/dashboard/src/components/report/sidebar/PropertiesCombobox.tsx+++ b/apps/start/src/components/report/sidebar/PropertiesCombobox.tsx@@ -8,8 +8,8 @@ import {DropdownMenuTrigger,} from '@/components/ui/dropdown-menu';import { Input } from '@/components/ui/input';-import { useAppParams } from '@/hooks/useAppParams';-import { useEventProperties } from '@/hooks/useEventProperties';+import { useAppParams } from '@/hooks/use-app-params';+import { useEventProperties } from '@/hooks/use-event-properties';import type { IChartEvent } from '@openpanel/validation';import { AnimatePresence, motion } from 'framer-motion';import { ArrowLeftIcon, DatabaseIcon, UserIcon } from 'lucide-react';diff --git a/apps/dashboard/src/components/report/sidebar/ReportBreakdownMore.tsx b/apps/start/src/components/report/sidebar/ReportBreakdownMore.tsxsimilarity index 100%rename from apps/dashboard/src/components/report/sidebar/ReportBreakdownMore.tsxrename to apps/start/src/components/report/sidebar/ReportBreakdownMore.tsxdiff --git a/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx b/apps/start/src/components/report/sidebar/ReportBreakdowns.tsxsimilarity index 96%rename from apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsxrename to apps/start/src/components/report/sidebar/ReportBreakdowns.tsxindex d070af91b..628db5def 100644--- a/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx+++ b/apps/start/src/components/report/sidebar/ReportBreakdowns.tsx@@ -1,9 +1,7 @@-'use client';-import { ColorSquare } from '@/components/color-square';import { Combobox } from '@/components/ui/combobox';-import { useAppParams } from '@/hooks/useAppParams';-import { useEventProperties } from '@/hooks/useEventProperties';+import { useAppParams } from '@/hooks/use-app-params';+import { useEventProperties } from '@/hooks/use-event-properties';import { useDispatch, useSelector } from '@/redux';import { ChevronsUpDownIcon, SplitIcon } from 'lucide-react';diff --git a/apps/dashboard/src/components/report/sidebar/ReportEventMore.tsx b/apps/start/src/components/report/sidebar/ReportEventMore.tsxsimilarity index 100%rename from apps/dashboard/src/components/report/sidebar/ReportEventMore.tsxrename to apps/start/src/components/report/sidebar/ReportEventMore.tsxdiff --git a/apps/dashboard/src/components/report/sidebar/ReportEvents.tsx b/apps/start/src/components/report/sidebar/ReportEvents.tsxsimilarity index 98%rename from apps/dashboard/src/components/report/sidebar/ReportEvents.tsxrename to apps/start/src/components/report/sidebar/ReportEvents.tsxindex 7da7bdebf..f24c52b82 100644--- a/apps/dashboard/src/components/report/sidebar/ReportEvents.tsx+++ b/apps/start/src/components/report/sidebar/ReportEvents.tsx@@ -1,11 +1,9 @@-'use client';-import { ColorSquare } from '@/components/color-square';import { ComboboxEvents } from '@/components/ui/combobox-events';import { Input } from '@/components/ui/input';-import { useAppParams } from '@/hooks/useAppParams';-import { useDebounceFn } from '@/hooks/useDebounceFn';-import { useEventNames } from '@/hooks/useEventNames';+import { useAppParams } from '@/hooks/use-app-params';+import { useDebounceFn } from '@/hooks/use-debounce-fn';+import { useEventNames } from '@/hooks/use-event-names';import { useDispatch, useSelector } from '@/redux';import {DndContext,diff --git a/apps/dashboard/src/components/report/sidebar/ReportFormula.tsx b/apps/start/src/components/report/sidebar/ReportFormula.tsxsimilarity index 97%rename from apps/dashboard/src/components/report/sidebar/ReportFormula.tsxrename to apps/start/src/components/report/sidebar/ReportFormula.tsxindex 82b4995a0..a828de63a 100644--- a/apps/dashboard/src/components/report/sidebar/ReportFormula.tsx+++ b/apps/start/src/components/report/sidebar/ReportFormula.tsx@@ -1,5 +1,3 @@-'use client';-import { useDispatch, useSelector } from '@/redux';import { InputEnter } from '@/components/ui/input-enter';diff --git a/apps/dashboard/src/components/report/sidebar/ReportSettings.tsx b/apps/start/src/components/report/sidebar/ReportSettings.tsxsimilarity index 99%rename from apps/dashboard/src/components/report/sidebar/ReportSettings.tsxrename to apps/start/src/components/report/sidebar/ReportSettings.tsxindex 97fd5a33e..589da9ae9 100644--- a/apps/dashboard/src/components/report/sidebar/ReportSettings.tsx+++ b/apps/start/src/components/report/sidebar/ReportSettings.tsx@@ -1,5 +1,3 @@-'use client';-import { Combobox } from '@/components/ui/combobox';import { useDispatch, useSelector } from '@/redux';diff --git a/apps/dashboard/src/components/report/sidebar/ReportSidebar.tsx b/apps/start/src/components/report/sidebar/ReportSidebar.tsxsimilarity index 100%rename from apps/dashboard/src/components/report/sidebar/ReportSidebar.tsxrename to apps/start/src/components/report/sidebar/ReportSidebar.tsxdiff --git a/apps/dashboard/src/components/report/sidebar/filters/FilterItem.tsx b/apps/start/src/components/report/sidebar/filters/FilterItem.tsxsimilarity index 92%rename from apps/dashboard/src/components/report/sidebar/filters/FilterItem.tsxrename to apps/start/src/components/report/sidebar/filters/FilterItem.tsxindex 763ac2175..f0ec13247 100644--- a/apps/dashboard/src/components/report/sidebar/filters/FilterItem.tsx+++ b/apps/start/src/components/report/sidebar/filters/FilterItem.tsx@@ -4,10 +4,9 @@ import { Button } from '@/components/ui/button';import { ComboboxAdvanced } from '@/components/ui/combobox-advanced';import { DropdownMenuComposed } from '@/components/ui/dropdown-menu';import { InputEnter } from '@/components/ui/input-enter';-import { useAppParams } from '@/hooks/useAppParams';-import { useMappings } from '@/hooks/useMappings';-import { usePropertyValues } from '@/hooks/usePropertyValues';-import { useDispatch, useSelector } from '@/redux';+import { useAppParams } from '@/hooks/use-app-params';+import { usePropertyValues } from '@/hooks/use-property-values';+import { useDispatch } from '@/redux';import { operators } from '@openpanel/constants';import type {IChartEvent,@@ -40,9 +39,9 @@ interface PureFilterProps {}export function FilterItem({ filter, event }: FilterProps) {- const { range, startDate, endDate, interval } = useSelector(- (state) => state.report,- );+ // const { range, startDate, endDate, interval } = useSelector(+ // (state) => state.report,+ // );const onRemove = ({ id }: IChartEventFilter) => {dispatch(changeEvent({@@ -117,7 +116,6 @@ export function PureFilterItem({className,}: PureFilterProps) {const { projectId } = useAppParams();- const getLabel = useMappings();const potentialValues = usePropertyValues({event: eventName,@@ -128,7 +126,7 @@ export function PureFilterItem({const valuesCombobox =potentialValues.map((item) => ({value: item,- label: getLabel(item),+ label: item,})) ?? [];const removeFilter = () => {diff --git a/apps/dashboard/src/components/report/sidebar/filters/FiltersList.tsx b/apps/start/src/components/report/sidebar/filters/FiltersList.tsxsimilarity index 100%rename from apps/dashboard/src/components/report/sidebar/filters/FiltersList.tsxrename to apps/start/src/components/report/sidebar/filters/FiltersList.tsxdiff --git a/apps/start/src/components/selling-points.tsx b/apps/start/src/components/selling-points.tsxnew file mode 100644index 000000000..75cd91b81--- /dev/null+++ b/apps/start/src/components/selling-points.tsx@@ -0,0 +1,49 @@+import { motion } from 'framer-motion';+import type { LucideIcon } from 'lucide-react';++function SellingPointIcon({ icon: Icon }: { icon: LucideIcon }) {+ return (+ <div className="size-22 center-center rounded-xl bg-gradient-to-br from-green-500 to-emerald-600">+ <Icon className="h-8 w-8 text-white" />+ </div>+ );+}++function SellingPoint({+ title,+ description,+ bgImage,+}: {+ title: string;+ description: React.ReactNode;+ bgImage: string;+}) {+ return (+ <div className="flex flex-col justify-center h-full p-8 select-none relative">+ <img+ src={bgImage}+ className="absolute inset-0 w-full h-full object-cover"+ />+ <div className="relative z-10 center-center col">+ <motion.div+ initial={{ opacity: 0, y: 20 }}+ animate={{ opacity: 1, y: 0 }}+ transition={{ duration: 0.6 }}+ >+ <h2 className="text-6xl font-bold text-white drop-shadow-2xl drop-shadow-highlight mb-2">+ {title}+ </h2>+ </motion.div>+ <motion.div+ initial={{ opacity: 0, y: 20 }}+ animate={{ opacity: 1, y: 0 }}+ transition={{ duration: 0.6 }}+ >+ <p className="text-lg text-white/70 leading-relaxed">{description}</p>+ </motion.div>+ </div>+ </div>+ );+}++export { SellingPoint, SellingPointIcon };diff --git a/apps/start/src/components/sessions/table/columns.tsx b/apps/start/src/components/sessions/table/columns.tsxnew file mode 100644index 000000000..53302198e--- /dev/null+++ b/apps/start/src/components/sessions/table/columns.tsx@@ -0,0 +1,271 @@+import { ProjectLink } from '@/components/links';+import { SerieIcon } from '@/components/report-chart/common/serie-icon';+import { formatDateTime, formatTimeAgoOrDateTime } from '@/utils/date';+import type { ColumnDef } from '@tanstack/react-table';++import { getProfileName } from '@/utils/getters';+import { round } from '@openpanel/common';+import type { IServiceSession } from '@openpanel/db';++function formatDuration(milliseconds: number): string {+ const seconds = milliseconds / 1000;+ if (seconds < 60) {+ return `${round(seconds, 1)}s`;+ }+ const minutes = Math.floor(seconds / 60);+ const remainingSeconds = seconds % 60;+ if (minutes < 60) {+ return remainingSeconds > 0+ ? `${minutes}m ${round(remainingSeconds, 0)}s`+ : `${minutes}m`;+ }+ const hours = Math.floor(minutes / 60);+ const remainingMinutes = minutes % 60;+ return `${hours}h ${round(remainingMinutes, 0)}m`;+}++export function useColumns() {+ const columns: ColumnDef<IServiceSession>[] = [+ {+ accessorKey: 'createdAt',+ header: 'Started',+ size: 140,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="relative">+ <div className="absolute inset-0 opacity-0 group-hover/row:opacity-100 transition-opacity duration-100">+ {formatDateTime(session.createdAt)}+ </div>+ <div className="text-muted-foreground group-hover/row:opacity-0 transition-opacity duration-100">+ {formatTimeAgoOrDateTime(session.createdAt)}+ </div>+ </div>+ );+ },+ },+ {+ accessorKey: 'id',+ header: 'Session ID',+ size: 120,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <ProjectLink+ href={`/sessions/${session.id}`}+ className="font-medium"+ title={session.id}+ >+ {session.id.slice(0, 8)}...+ </ProjectLink>+ );+ },+ },+ {+ accessorKey: 'profileId',+ header: 'Profile',+ size: 150,+ cell: ({ row }) => {+ const session = row.original;+ if (session.profile) {+ return (+ <ProjectLink+ href={`/profiles/${session.profile.id}`}+ className="font-medium"+ >+ {getProfileName(session.profile)}+ </ProjectLink>+ );+ }+ return (+ <ProjectLink+ href={`/profiles/${session.profileId}`}+ className="font-mono font-medium"+ >+ {session.profileId}+ </ProjectLink>+ );+ },+ },+ {+ accessorKey: 'entryPath',+ header: 'Entry Page',+ size: 200,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="min-w-0">+ <span className="font-mono">{session.entryPath || '/'}</span>+ </div>+ );+ },+ },+ {+ accessorKey: 'exitPath',+ header: 'Exit Page',+ size: 200,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="min-w-0">+ <span className="font-mono">+ {session.exitPath || session.entryPath || '/'}+ </span>+ </div>+ );+ },+ },+ {+ accessorKey: 'duration',+ header: 'Duration',+ size: 100,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="font-medium">{formatDuration(session.duration)}</div>+ );+ },+ },+ {+ accessorKey: 'isBounce',+ header: 'Bounce',+ size: 80,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="text-center">+ {session.isBounce ? (+ <span className="text-orange-600">Yes</span>+ ) : (+ <span className="text-green-600">No</span>+ )}+ </div>+ );+ },+ },+ {+ accessorKey: 'referrerName',+ header: 'Referrer',+ size: 150,+ cell: ({ row }) => {+ const session = row.original;+ const ref = session.referrerName || session.referrer || 'Direct';+ return (+ <div className="flex min-w-0 items-center gap-2">+ <SerieIcon name={ref} />+ <span className="truncate">{ref}</span>+ </div>+ );+ },+ },+ {+ accessorKey: 'country',+ header: 'Location',+ size: 150,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="flex min-w-0 items-center gap-2">+ <SerieIcon name={session.country} />+ <span className="truncate">{session.city || session.country}</span>+ </div>+ );+ },+ },+ {+ accessorKey: 'os',+ header: 'OS',+ size: 120,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="flex min-w-0 items-center gap-2">+ <SerieIcon name={session.os} />+ <span className="truncate">{session.os}</span>+ </div>+ );+ },+ },+ {+ accessorKey: 'browser',+ header: 'Browser',+ size: 120,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="flex min-w-0 items-center gap-2">+ <SerieIcon name={session.browser} />+ <span className="truncate">{session.browser}</span>+ </div>+ );+ },+ },+ {+ accessorKey: 'device',+ header: 'Device',+ size: 150,+ cell: ({ row }) => {+ const session = row.original;+ let deviceInfo =+ session.brand || session.model+ ? [session.brand, session.model].filter(Boolean).join(' / ')+ : session.device;+ if (deviceInfo === 'K') {+ deviceInfo = session.device;+ }+ return (+ <div className="flex min-w-0 items-center gap-2">+ <SerieIcon name={session.device} />+ <span className="truncate">{deviceInfo}</span>+ </div>+ );+ },+ },+ {+ accessorKey: 'screenViewCount',+ header: 'Page views',+ size: 100,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="text-center font-medium">+ {session.screenViewCount}+ </div>+ );+ },+ },+ {+ accessorKey: 'eventCount',+ header: 'Events',+ size: 90,+ cell: ({ row }) => {+ const session = row.original;+ return (+ <div className="text-center font-medium">{session.eventCount}</div>+ );+ },+ },+ {+ accessorKey: 'revenue',+ header: 'Revenue',+ size: 100,+ cell: ({ row }) => {+ const session = row.original;+ return session.revenue > 0 ? (+ <div className="font-medium text-green-600">+ ${session.revenue.toFixed(2)}+ </div>+ ) : (+ <div className="text-muted-foreground">-</div>+ );+ },+ },+ {+ accessorKey: 'deviceId',+ header: 'Device ID',+ size: 120,+ },+ ];++ return columns;+}diff --git a/apps/start/src/components/sessions/table/index.tsx b/apps/start/src/components/sessions/table/index.tsxnew file mode 100644index 000000000..5115b255b--- /dev/null+++ b/apps/start/src/components/sessions/table/index.tsx@@ -0,0 +1,304 @@+import type { UseInfiniteQueryResult } from '@tanstack/react-query';++import { useDataTableColumnVisibility } from '@/components/ui/data-table/data-table-hooks';+import type { RouterInputs, RouterOutputs } from '@/trpc/client';+import { useColumns } from './columns';++import { FullPageEmptyState } from '@/components/full-page-empty-state';+import { Skeleton } from '@/components/skeleton';+import {+ AnimatedSearchInput,+ DataTableToolbarContainer,+} from '@/components/ui/data-table/data-table-toolbar';+import { DataTableViewOptions } from '@/components/ui/data-table/data-table-view-options';+import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { arePropsEqual } from '@/utils/are-props-equal';+import { cn } from '@/utils/cn';+import type { IServiceSession } from '@openpanel/db';+import type { Table } from '@tanstack/react-table';+import { getCoreRowModel, useReactTable } from '@tanstack/react-table';+import { useWindowVirtualizer } from '@tanstack/react-virtual';+import type { TRPCInfiniteData } from '@trpc/tanstack-react-query';+import { Loader2Icon } from 'lucide-react';+import { last } from 'ramda';+import { memo, useEffect, useMemo, useRef } from 'react';+import { useInViewport } from 'react-in-viewport';++type Props = {+ query: UseInfiniteQueryResult<+ TRPCInfiniteData<+ RouterInputs['session']['list'],+ RouterOutputs['session']['list']+ >,+ unknown+ >;+};++const LOADING_DATA = [{}, {}, {}, {}, {}, {}, {}, {}, {}] as IServiceSession[];+const ROW_HEIGHT = 40;++interface VirtualizedSessionsTableProps {+ table: Table<IServiceSession>;+ data: IServiceSession[];+ isLoading: boolean;+}++interface VirtualRowProps {+ row: any;+ virtualRow: any;+ headerColumns: any[];+ scrollMargin: number;+ isLoading: boolean;+}++const VirtualRow = memo(+ function VirtualRow({+ row,+ virtualRow,+ headerColumns,+ scrollMargin,+ isLoading,+ }: VirtualRowProps) {+ return (+ <div+ key={virtualRow.key}+ data-index={virtualRow.index}+ ref={virtualRow.measureElement}+ className="absolute top-0 left-0 w-full border-b hover:bg-muted/50 transition-colors group/row"+ style={{+ transform: `translateY(${virtualRow.start - scrollMargin}px)`,+ display: 'grid',+ gridTemplateColumns: headerColumns+ .map((col) => `${col.getSize()}px`)+ .join(' '),+ minWidth: 'fit-content',+ minHeight: ROW_HEIGHT,+ }}+ >+ {row.getVisibleCells().map((cell: any) => {+ const width = `${cell.column.getSize()}px`;+ return (+ <div+ key={cell.id}+ className="flex items-center p-2 px-4 align-middle whitespace-nowrap"+ style={{+ width,+ overflow: 'hidden',+ }}+ >+ {isLoading ? (+ <Skeleton className="h-4 w-3/5" />+ ) : cell.column.columnDef.cell ? (+ typeof cell.column.columnDef.cell === 'function' ? (+ cell.column.columnDef.cell(cell.getContext())+ ) : (+ cell.column.columnDef.cell+ )+ ) : (+ (cell.getValue() as React.ReactNode)+ )}+ </div>+ );+ })}+ </div>+ );+ },+ (prevProps, nextProps) => {+ return (+ prevProps.row.id === nextProps.row.id &&+ prevProps.virtualRow.index === nextProps.virtualRow.index &&+ prevProps.virtualRow.start === nextProps.virtualRow.start &&+ prevProps.virtualRow.size === nextProps.virtualRow.size &&+ prevProps.isLoading === nextProps.isLoading+ );+ },+);++const VirtualizedSessionsTable = memo(+ function VirtualizedSessionsTable({+ table,+ data,+ isLoading,+ }: VirtualizedSessionsTableProps) {+ const parentRef = useRef<HTMLDivElement>(null);++ const headerColumns = useMemo(+ () =>+ table.getAllLeafColumns().filter((col) => {+ return table.getState().columnVisibility[col.id] !== false;+ }),+ [table],+ );++ const rowVirtualizer = useWindowVirtualizer({+ count: data.length,+ estimateSize: () => ROW_HEIGHT, // Estimated row height+ overscan: 10,+ scrollMargin: parentRef.current?.offsetTop ?? 0,+ });++ const virtualRows = rowVirtualizer.getVirtualItems();++ return (+ <div+ ref={parentRef}+ className="w-full overflow-x-auto border rounded-md bg-card"+ >+ {/* Table Header */}+ <div+ className="sticky top-0 z-10 bg-card border-b"+ style={{+ display: 'grid',+ gridTemplateColumns: headerColumns+ .map((col) => `${col.getSize()}px`)+ .join(' '),+ minWidth: 'fit-content',+ }}+ >+ {headerColumns.map((column) => {+ const header = column.columnDef.header;+ const width = `${column.getSize()}px`;+ return (+ <div+ key={column.id}+ className="flex items-center h-10 px-4 text-left text-[10px] uppercase text-foreground font-semibold whitespace-nowrap"+ style={{+ width,+ }}+ >+ {typeof header === 'function' ? header({} as any) : header}+ </div>+ );+ })}+ </div>++ {!isLoading && data.length === 0 && (+ <FullPageEmptyState+ title="No sessions found"+ description="Looks like you haven't inserted any events yet."+ />+ )}++ {/* Table Body */}+ <div+ className="relative w-full"+ style={{+ height: `${rowVirtualizer.getTotalSize()}px`,+ minHeight: 'fit-content',+ minWidth: 'fit-content',+ }}+ >+ {virtualRows.map((virtualRow) => {+ const row = table.getRowModel().rows[virtualRow.index];+ if (!row) return null;++ return (+ <VirtualRow+ key={virtualRow.key}+ row={row}+ virtualRow={{+ ...virtualRow,+ measureElement: rowVirtualizer.measureElement,+ }}+ headerColumns={headerColumns}+ scrollMargin={rowVirtualizer.options.scrollMargin}+ isLoading={isLoading}+ />+ );+ })}+ </div>+ </div>+ );+ },+ arePropsEqual(['data', 'isLoading']),+);++export const SessionsTable = ({ query }: Props) => {+ const { isLoading } = query;+ const columns = useColumns();++ const data = useMemo(() => {+ if (isLoading) {+ return LOADING_DATA;+ }++ return query.data?.pages?.flatMap((p) => p.data) ?? [];+ }, [query.data]);++ // const { setPage, state: pagination } = useDataTablePagination();+ const { columnVisibility, setColumnVisibility } =+ useDataTableColumnVisibility(columns);++ const table = useReactTable({+ data,+ getCoreRowModel: getCoreRowModel(),+ manualPagination: true,+ manualFiltering: true,+ manualSorting: true,+ columns,+ rowCount: 50,+ pageCount: 1,+ filterFns: {+ isWithinRange: () => true,+ },+ state: {+ columnVisibility,+ },+ onColumnVisibilityChange: setColumnVisibility,+ });++ const inViewportRef = useRef<HTMLDivElement>(null);+ const { inViewport, enterCount } = useInViewport(inViewportRef, undefined, {+ disconnectOnLeave: true,+ });++ const hasNextPage = last(query.data?.pages ?? [])?.meta.next;++ useEffect(() => {+ if (+ hasNextPage &&+ data.length > 0 &&+ inViewport &&+ enterCount > 0 &&+ query.isFetchingNextPage === false+ ) {+ console.log('fetching next page');+ query.fetchNextPage();+ }+ }, [inViewport, enterCount, hasNextPage]);++ return (+ <>+ <SessionTableToolbar table={table} />+ <VirtualizedSessionsTable+ table={table}+ data={data}+ isLoading={isLoading}+ />+ <div className="w-full h-10 center-center pt-4" ref={inViewportRef}>+ <div+ className={cn(+ 'size-8 bg-background rounded-full center-center border opacity-0 transition-opacity',+ query.isFetchingNextPage && 'opacity-100',+ )}+ >+ <Loader2Icon className="size-4 animate-spin" />+ </div>+ </div>+ </>+ );+};++function SessionTableToolbar({ table }: { table: Table<IServiceSession> }) {+ const { search, setSearch } = useSearchQueryState();+ return (+ <DataTableToolbarContainer>+ <AnimatedSearchInput+ placeholder="Search sessions by path, referrer..."+ value={search}+ onChange={setSearch}+ />+ <DataTableViewOptions table={table} />+ </DataTableToolbarContainer>+ );+}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/delete-project.tsx b/apps/start/src/components/settings/delete-project.tsxsimilarity index 72%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/delete-project.tsxrename to apps/start/src/components/settings/delete-project.tsxindex be188034d..ee9518aaa 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/delete-project.tsx+++ b/apps/start/src/components/settings/delete-project.tsx@@ -3,40 +3,47 @@import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';import { Button } from '@/components/ui/button';import { Widget, WidgetBody, WidgetHead } from '@/components/widget';+import { handleError, useTRPC } from '@/integrations/trpc/react';import { showConfirm } from '@/modals';-import { api, handleError } from '@/trpc/client';import type { IServiceProjectWithClients } from '@openpanel/db';-import { useQueryClient } from '@tanstack/react-query';-import { router } from '@trpc/server';+import { useMutation } from '@tanstack/react-query';+import { useRouter } from '@tanstack/react-router';import { addHours, format, startOfHour } from 'date-fns';-import { useRouter } from 'next/navigation';+import { TrashIcon } from 'lucide-react';import { toast } from 'sonner';type Props = { project: IServiceProjectWithClients };export default function DeleteProject({ project }: Props) {const router = useRouter();- const mutation = api.project.delete.useMutation({- onError: handleError,- onSuccess: () => {- toast.success('Project updated');- router.refresh();- },- });- const cancelDeletionMutation = api.project.cancelDeletion.useMutation({- onError: handleError,- onSuccess: () => {- toast.success('Project updated');- router.refresh();- },- });+ const trpc = useTRPC();++ const mutation = useMutation(+ trpc.project.delete.mutationOptions({+ onError: handleError,+ onSuccess: () => {+ toast.success('Project updated');+ router.invalidate();+ },+ }),+ );++ const cancelDeletionMutation = useMutation(+ trpc.project.cancelDeletion.mutationOptions({+ onError: handleError,+ onSuccess: () => {+ toast.success('Project updated');+ router.invalidate();+ },+ }),+ );return (<Widget className="max-w-screen-md w-full"><WidgetHead><span className="title">Delete Project</span></WidgetHead>- <WidgetBody className="col gap-4">+ <WidgetBody className="space-y-4"><p>Deleting your project will remove it from your organization and all ofits data. It'll be permanently deleted after 24 hours.@@ -60,13 +67,14 @@ export default function DeleteProject({ project }: Props) {</AlertDescription></Alert>)}- <div className="row gap-4 justify-end">+ <div className="flex gap-4 justify-start">{project?.deleteAt && (<Buttonvariant="outline"onClick={() => {cancelDeletionMutation.mutate({ projectId: project.id });}}+ loading={cancelDeletionMutation.isPending}>Cancel deletion</Button>@@ -74,6 +82,8 @@ export default function DeleteProject({ project }: Props) {<Buttondisabled={!!project?.deleteAt}variant="destructive"+ icon={TrashIcon}+ loading={mutation.isPending}onClick={() => {showConfirm({title: 'Delete Project',diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/edit-project-details.tsx b/apps/start/src/components/settings/edit-project-details.tsxsimilarity index 90%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/edit-project-details.tsxrename to apps/start/src/components/settings/edit-project-details.tsxindex 31d5c4dd6..9f011f5dc 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/edit-project-details.tsx+++ b/apps/start/src/components/settings/edit-project-details.tsx@@ -9,14 +9,14 @@ import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';import { Switch } from '@/components/ui/switch';import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { useAppParams } from '@/hooks/useAppParams';-import { api, handleError } from '@/trpc/client';+import { handleError, useTRPC } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';import type { IServiceProjectWithClients } from '@openpanel/db';-import { type IProjectEdit, zProject } from '@openpanel/validation';+import { zProject } from '@openpanel/validation';+import { useMutation } from '@tanstack/react-query';import { SaveIcon } from 'lucide-react';import { useState } from 'react';-import { Controller, UseFormReturn, useForm, useWatch } from 'react-hook-form';+import { Controller, useForm } from 'react-hook-form';import { toast } from 'sonner';import type { z } from 'zod';@@ -43,12 +43,15 @@ export default function EditProjectDetails({ project }: Props) {crossDomain: project.crossDomain,},});- const mutation = api.project.update.useMutation({- onError: handleError,- onSuccess: () => {- toast.success('Project updated');- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.project.update.mutationOptions({+ onError: handleError,+ onSuccess: () => {+ toast.success('Project updated');+ },+ }),+ );const onSubmit = (values: IForm) => {if (hasDomain) {@@ -161,10 +164,10 @@ export default function EditProjectDetails({ project }: Props) {</AnimateHeight><Button- loading={mutation.isLoading}+ loading={mutation.isPending}type="submit"icon={SaveIcon}- className="self-end"+ className="self-start">Save</Button>diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/edit-project-filters.tsx b/apps/start/src/components/settings/edit-project-filters.tsxsimilarity index 84%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/edit-project-filters.tsxrename to apps/start/src/components/settings/edit-project-filters.tsxindex cf4cba0ba..36d7bddda 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/projects/edit-project-filters.tsx+++ b/apps/start/src/components/settings/edit-project-filters.tsx@@ -4,19 +4,22 @@ import { WithLabel } from '@/components/forms/input-with-label';import TagInput from '@/components/forms/tag-input';import { Button } from '@/components/ui/button';import { Widget, WidgetBody, WidgetHead } from '@/components/widget';-import { api, handleError } from '@/trpc/client';+import { handleError, useTRPC } from '@/integrations/trpc/react';+import type { RouterOutputs } from '@/trpc/client';import { zodResolver } from '@hookform/resolvers/zod';-import type { IServiceProjectWithClients } from '@openpanel/db';import type {IProjectFilterIp,IProjectFilterProfileId,} from '@openpanel/validation';+import { useMutation } from '@tanstack/react-query';import { SaveIcon } from 'lucide-react';import { Controller, useForm } from 'react-hook-form';import { toast } from 'sonner';import { z } from 'zod';-type Props = { project: IServiceProjectWithClients };+type Props = {+ project: NonNullable<RouterOutputs['project']['getProjectWithClients']>;+};const validator = z.object({ips: z.array(z.string()),@@ -39,12 +42,16 @@ export default function EditProjectFilters({ project }: Props) {.map((item) => item.profileId),},});- const mutation = api.project.update.useMutation({- onError: handleError,- onSuccess: () => {- toast.success('Project filters updated');- },- });++ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.project.update.mutationOptions({+ onError: handleError,+ onSuccess: () => {+ toast.success('Project filters updated');+ },+ }),+ );const onSubmit = (values: IForm) => {mutation.mutate({@@ -61,14 +68,14 @@ export default function EditProjectFilters({ project }: Props) {return (<Widget className="max-w-screen-md w-full">- <WidgetHead className="col gap-2">+ <WidgetHead className="space-y-2"><span className="title">Exclude events</span><p className="text-muted-foreground">Exclude events from being tracked by adding filters.</p></WidgetHead><WidgetBody>- <form onSubmit={form.handleSubmit(onSubmit)} className="col gap-4">+ <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4"><Controllername="ips"control={form.control}@@ -104,7 +111,7 @@ export default function EditProjectFilters({ project }: Props) {/><Button- loading={mutation.isLoading}+ loading={mutation.isPending}type="submit"icon={SaveIcon}className="self-end"diff --git a/apps/start/src/components/settings/invites/columns.tsx b/apps/start/src/components/settings/invites/columns.tsxnew file mode 100644index 000000000..36264ead1--- /dev/null+++ b/apps/start/src/components/settings/invites/columns.tsx@@ -0,0 +1,141 @@+import { TooltipComplete } from '@/components/tooltip-complete';+import { Badge } from '@/components/ui/badge';+import { DropdownMenuItem } from '@/components/ui/dropdown-menu';+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';+import type { ColumnDef, Row } from '@tanstack/react-table';+import { toast } from 'sonner';++import { createActionColumn } from '@/components/ui/data-table/data-table-helpers';+import type { RouterOutputs } from '@/trpc/client';+import { clipboard } from '@/utils/clipboard';++export function useColumns(): ColumnDef<+ RouterOutputs['organization']['invitations'][number]+>[] {+ return [+ {+ accessorKey: 'id',+ },+ {+ accessorKey: 'email',+ header: 'Mail',+ cell: ({ row }) => (+ <div className="font-medium">{row.original.email}</div>+ ),+ meta: {+ label: 'Email',+ placeholder: 'Search email',+ variant: 'text',+ },+ },+ {+ accessorKey: 'role',+ header: 'Role',+ meta: {+ label: 'Role',+ },+ },+ {+ accessorKey: 'createdAt',+ header: 'Created',+ cell: ({ row }) => (+ <TooltipComplete+ content={new Date(row.original.createdAt).toLocaleString()}+ >+ {new Date(row.original.createdAt).toLocaleDateString()}+ </TooltipComplete>+ ),+ meta: {+ label: 'Created',+ },+ },+ {+ accessorKey: 'projectAccess',+ header: 'Access',+ cell: ({ row }) => {+ return <AccessCell row={row} />;+ },+ meta: {+ label: 'Access',+ },+ },+ createActionColumn(({ row }) => {+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const revoke = useMutation(+ trpc.organization.revokeInvite.mutationOptions({+ onSuccess() {+ toast.success(`Invite for ${row.original.email} revoked`);+ queryClient.invalidateQueries(+ trpc.organization.invitations.queryFilter({+ organizationId: row.original.organizationId,+ }),+ );+ },+ onError() {+ toast.error(`Failed to revoke invite for ${row.original.email}`);+ },+ }),+ );++ return (+ <>+ <DropdownMenuItem+ onClick={() => {+ clipboard(+ `${window.location.origin}/onboarding?inviteId=${row.original.id}`,+ );+ }}+ >+ Copy invite link+ </DropdownMenuItem>+ <DropdownMenuItem+ className="text-destructive"+ onClick={() => {+ revoke.mutate({ inviteId: row.original.id });+ }}+ >+ Revoke invite+ </DropdownMenuItem>+ </>+ );+ }),+ ];+}++function AccessCell({+ row,+}: {+ row: Row<RouterOutputs['organization']['invitations'][number]>;+}) {+ const trpc = useTRPC();+ const projectsQuery = useQuery(+ trpc.project.list.queryOptions({+ organizationId: row.original.organizationId,+ }),+ );+ const projects = projectsQuery.data ?? [];+ const access = row.original.projectAccess ?? [];++ return (+ <>+ {access.map((id) => {+ const project = projects.find((p) => p.id === id);+ if (!project) {+ return (+ <Badge key={id} className="mr-1">+ Unknown+ </Badge>+ );+ }+ return (+ <Badge key={id} color="blue" className="mr-1">+ {project.name}+ </Badge>+ );+ })}+ {access.length === 0 && <Badge variant={'secondary'}>All projects</Badge>}+ </>+ );+}diff --git a/apps/start/src/components/settings/invites/index.tsx b/apps/start/src/components/settings/invites/index.tsxnew file mode 100644index 000000000..14d53785d--- /dev/null+++ b/apps/start/src/components/settings/invites/index.tsx@@ -0,0 +1,41 @@+import type { RouterOutputs } from '@/trpc/client';++import { Button } from '@/components/ui/button';+import { DataTable } from '@/components/ui/data-table/data-table';+import { DataTableToolbar } from '@/components/ui/data-table/data-table-toolbar';+import { useTable } from '@/components/ui/data-table/use-table';+import { pushModal } from '@/modals';+import type { UseQueryResult } from '@tanstack/react-query';+import { PlusIcon } from 'lucide-react';+import { useColumns } from './columns';+type CommonProps = {+ query: UseQueryResult<RouterOutputs['organization']['invitations'], unknown>;+};++type Props = CommonProps;++export const InvitesTable = ({ query }: Props) => {+ const columns = useColumns();+ const { data, isLoading } = query;+ const { table } = useTable({+ columns,+ data: data ?? [],+ loading: isLoading,+ pageSize: 50,+ });+ return (+ <>+ <DataTableToolbar table={table}>+ <Button+ icon={PlusIcon}+ onClick={() => {+ pushModal('CreateInvite');+ }}+ >+ Invite user+ </Button>+ </DataTableToolbar>+ <DataTable table={table} loading={isLoading} />+ </>+ );+};diff --git a/apps/start/src/components/settings/members/columns.tsx b/apps/start/src/components/settings/members/columns.tsxnew file mode 100644index 000000000..57ed5fda9--- /dev/null+++ b/apps/start/src/components/settings/members/columns.tsx@@ -0,0 +1,136 @@+import { TooltipComplete } from '@/components/tooltip-complete';+import { DropdownMenuItem } from '@/components/ui/dropdown-menu';+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation, useQueryClient } from '@tanstack/react-query';+import type { ColumnDef } from '@tanstack/react-table';+import { toast } from 'sonner';++import { Badge } from '@/components/ui/badge';+import { createActionColumn } from '@/components/ui/data-table/data-table-helpers';+import { pushModal } from '@/modals';+import type { IServiceMember } from '@openpanel/db';++export function useColumns() {+ const columns: ColumnDef<IServiceMember>[] = [+ {+ accessorKey: 'user',+ header: 'Name',+ cell: ({ row }) => {+ const user = row.original.user;+ if (!user) return null;+ return [user.firstName, user.lastName].filter(Boolean).join(' ');+ },+ meta: {+ label: 'Name',+ },+ },+ {+ accessorKey: 'email',+ header: 'Email',+ cell: ({ row }) => {+ const user = row.original.user;+ if (!user) return null;+ return <div className="font-medium">{user.email}</div>;+ },+ meta: {+ label: 'Email',+ placeholder: 'Search email',+ variant: 'text',+ },+ },+ {+ accessorKey: 'role',+ header: 'Role',+ cell: ({ row }) => {+ const role = row.original.role;+ return <Badge variant={'outline'}>{role}</Badge>;+ },+ meta: {+ label: 'Role',+ },+ },+ {+ accessorKey: 'createdAt',+ header: 'Created',+ cell: ({ row }) => (+ <TooltipComplete+ content={new Date(row.original.createdAt).toLocaleString()}+ >+ {new Date(row.original.createdAt).toLocaleDateString()}+ </TooltipComplete>+ ),+ meta: {+ label: 'Created',+ },+ },+ {+ accessorKey: 'access',+ header: 'Access',+ cell: ({ row }) => {+ const access = row.original.access ?? [];+ if (access.length === 0) {+ return <div className="text-muted-foreground">All projects</div>;+ }+ return (+ <div className="row flex-wrap gap-2">+ {row.original.access?.map((item) => (+ <Badge variant={'outline'} key={item.projectId}>+ {item.projectId}+ </Badge>+ ))}+ </div>+ );+ },+ meta: {+ label: 'Access',+ },+ },+ createActionColumn(({ row }) => {+ const queryClient = useQueryClient();+ const trpc = useTRPC();+ const revoke = useMutation(+ trpc.organization.removeMember.mutationOptions({+ onSuccess() {+ toast.success(+ `${row.original.user?.firstName} has been removed from the organization`,+ );+ queryClient.invalidateQueries(+ trpc.organization.members.pathFilter(),+ );+ },+ onError() {+ toast.error(+ `Failed to remove ${row.original.user?.firstName} from the organization`,+ );+ },+ }),+ );++ return (+ <>+ <DropdownMenuItem+ onClick={() => {+ pushModal('EditMember', row.original);+ }}+ >+ Edit access+ </DropdownMenuItem>+ <DropdownMenuItem+ className="text-destructive"+ onClick={() => {+ revoke.mutate({+ organizationId: row.original.organizationId,+ userId: row.original.userId!,+ id: row.original.id,+ });+ }}+ >+ Remove member+ </DropdownMenuItem>+ </>+ );+ }),+ ];++ return columns;+}diff --git a/apps/start/src/components/settings/members/index.tsx b/apps/start/src/components/settings/members/index.tsxnew file mode 100644index 000000000..520f5247b--- /dev/null+++ b/apps/start/src/components/settings/members/index.tsx@@ -0,0 +1,31 @@+import type { IServiceMember } from '@openpanel/db';++import { DataTable } from '@/components/ui/data-table/data-table';+import { DataTableToolbar } from '@/components/ui/data-table/data-table-toolbar';+import { useTable } from '@/components/ui/data-table/use-table';+import type { UseQueryResult } from '@tanstack/react-query';+import { useColumns } from './columns';++type CommonProps = {+ query: UseQueryResult<IServiceMember[], unknown>;+};++type Props = CommonProps;++export const MembersTable = ({ query }: Props) => {+ const columns = useColumns();+ const { data, isLoading } = query;+ const { table } = useTable({+ columns,+ data: data ?? [],+ loading: isLoading,+ pageSize: 50,+ });++ return (+ <>+ <DataTableToolbar table={table} />+ <DataTable table={table} loading={isLoading} />;+ </>+ );+};diff --git a/apps/start/src/components/sidebar-link.tsx b/apps/start/src/components/sidebar-link.tsxnew file mode 100644index 000000000..4c7d498a5--- /dev/null+++ b/apps/start/src/components/sidebar-link.tsx@@ -0,0 +1,32 @@+import { cn } from '@/utils/cn';+import type { LucideIcon } from 'lucide-react';++import { ProjectLink } from '@/components/links';++export function SidebarLink({+ href,+ icon: Icon,+ label,+ className,+ exact,+}: {+ href: string;+ icon: LucideIcon;+ label: React.ReactNode;+ className?: string;+ exact?: boolean;+}) {+ return (+ <ProjectLink+ className={cn(+ 'flex items-center gap-2 rounded-md px-3 py-2 font-medium transition-all hover:bg-def-200 text-[13px]',+ className,+ )}+ href={href}+ exact={exact}+ >+ <Icon size={20} />+ <div className="flex-1">{label}</div>+ </ProjectLink>+ );+}diff --git a/apps/start/src/components/sidebar-organization-menu.tsx b/apps/start/src/components/sidebar-organization-menu.tsxnew file mode 100644index 000000000..eb9818bb5--- /dev/null+++ b/apps/start/src/components/sidebar-organization-menu.tsx@@ -0,0 +1,174 @@+import {+ CogIcon,+ CreditCardIcon,+ LayoutListIcon,+ UsersIcon,+ WorkflowIcon,+} from 'lucide-react';++import { Button } from '@/components/ui/button';+import { useAppParams } from '@/hooks/use-app-params';+import { pushModal } from '@/modals';+import type { RouterOutputs } from '@/trpc/client';+import { cn } from '@/utils/cn';+import { Link, useNavigate } from '@tanstack/react-router';+import { AnimatePresence, motion } from 'framer-motion';+import { ChevronDownIcon, PlusIcon } from 'lucide-react';+import { useCallback, useEffect, useState } from 'react';+import { Badge } from './ui/badge';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from './ui/dropdown-menu';++export default function SidebarOrganizationMenu({+ organization,+}: {+ organization: RouterOutputs['organization']['list'][number];+}) {+ return (+ <>+ <Link+ className={cn(+ 'flex items-center gap-2 rounded-md px-3 py-2 font-medium transition-all hover:bg-def-200 text-[13px]',+ )}+ activeOptions={{ exact: true }}+ to="/$organizationId"+ from="/$organizationId"+ >+ <LayoutListIcon size={20} />+ <div className="flex-1">Projects</div>+ </Link>+ <Link+ className={cn(+ 'flex items-center gap-2 rounded-md px-3 py-2 font-medium transition-all hover:bg-def-200 text-[13px]',+ )}+ activeOptions={{ exact: true }}+ to="/$organizationId/settings"+ from="/$organizationId"+ >+ <CogIcon size={20} />+ <div className="flex-1">Settings</div>+ </Link>+ <Link+ className={cn(+ 'flex items-center gap-2 rounded-md px-3 py-2 font-medium transition-all hover:bg-def-200 text-[13px]',+ )}+ activeOptions={{ exact: true }}+ to="/$organizationId/billing"+ from="/$organizationId"+ >+ <CreditCardIcon size={20} />+ <div className="flex-1">Billing</div>+ {organization?.isTrial && <Badge>Trial</Badge>}+ {organization?.isExpired && <Badge>Expired</Badge>}+ {organization?.isWillBeCanceled && <Badge>Canceled</Badge>}+ {organization?.isCanceled && <Badge>Canceled</Badge>}+ </Link>+ <Link+ className={cn(+ 'flex items-center gap-2 rounded-md px-3 py-2 font-medium transition-all hover:bg-def-200 text-[13px]',+ )}+ to="/$organizationId/members"+ from="/$organizationId"+ >+ <UsersIcon size={20} />+ <div className="flex-1">Members</div>+ </Link>+ <Link+ className={cn(+ 'flex items-center gap-2 rounded-md px-3 py-2 font-medium transition-all hover:bg-def-200 text-[13px]',+ )}+ to="/$organizationId/integrations"+ from="/$organizationId"+ >+ <WorkflowIcon size={20} />+ <div className="flex-1">Integrations</div>+ </Link>+ </>+ );+}++export function ActionCTAButton() {+ const navigate = useNavigate();++ const ACTIONS = [+ {+ label: 'Create a project',+ icon: PlusIcon,+ onClick: () => pushModal('AddProject'),+ },+ {+ label: 'Invite a user',+ icon: UsersIcon,+ onClick: () => pushModal('CreateInvite'),+ },+ {+ label: 'Add integration',+ icon: WorkflowIcon,+ onClick: () =>+ navigate({+ to: '/$organizationId/integrations',+ from: '/$organizationId',+ }),+ },+ ];++ const [currentActionIndex, setCurrentActionIndex] = useState(0);++ useEffect(() => {+ const interval = setInterval(() => {+ setCurrentActionIndex((prevIndex) => (prevIndex + 1) % ACTIONS.length);+ }, 2000);++ return () => clearInterval(interval);+ }, []);++ return (+ <div className="mb-4">+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button className="w-full justify-between" size="default">+ <div className="flex items-center gap-2">+ <PlusIcon size={16} />+ <div className="relative h-5 flex items-center">+ <AnimatePresence mode="popLayout">+ <motion.span+ key={currentActionIndex}+ initial={{ y: 20, opacity: 0 }}+ animate={{ y: 0, opacity: 1 }}+ exit={{ y: -20, opacity: 0 }}+ transition={{+ type: 'spring',+ stiffness: 300,+ damping: 25,+ duration: 0.3,+ }}+ className="absolute whitespace-nowrap"+ >+ {ACTIONS[currentActionIndex].label}+ </motion.span>+ </AnimatePresence>+ </div>+ </div>+ <ChevronDownIcon size={16} />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent className="w-56" align="start">+ {ACTIONS.map((action) => (+ <DropdownMenuItem+ onClick={action.onClick}+ className="cursor-pointer"+ key={action.label}+ >+ <action.icon className="mr-2 h-4 w-4" />+ {action.label}+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ );+}diff --git a/apps/start/src/components/sidebar-project-menu.tsx b/apps/start/src/components/sidebar-project-menu.tsxnew file mode 100644index 000000000..da3456160--- /dev/null+++ b/apps/start/src/components/sidebar-project-menu.tsx@@ -0,0 +1,171 @@+import { Button } from '@/components/ui/button';+import { pushModal } from '@/modals';+import type { IServiceDashboards } from '@openpanel/db';+import { useNavigate } from '@tanstack/react-router';+import { AnimatePresence, motion } from 'framer-motion';+import {+ BellIcon,+ BookOpenIcon,+ ChartLineIcon,+ ChevronDownIcon,+ CogIcon,+ GanttChartIcon,+ Globe2Icon,+ GridIcon,+ LayersIcon,+ LayoutDashboardIcon,+ LayoutPanelTopIcon,+ PlusIcon,+ SparklesIcon,+ UndoDotIcon,+ UsersIcon,+ WallpaperIcon,+} from 'lucide-react';+import { useEffect, useState } from 'react';+import { SidebarLink } from './sidebar-link';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from './ui/dropdown-menu';++interface SidebarProjectMenuProps {+ dashboards: IServiceDashboards;+}++export default function SidebarProjectMenu({+ dashboards,+}: SidebarProjectMenuProps) {+ return (+ <>+ <div className="mb-2 font-medium text-muted-foreground">Insights</div>+ <SidebarLink icon={WallpaperIcon} label="Overview" href={'/'} />+ <SidebarLink+ icon={LayoutPanelTopIcon}+ label="Dashboards"+ href={'/dashboards'}+ />+ <SidebarLink icon={LayersIcon} label="Pages" href={'/pages'} />+ <SidebarLink icon={Globe2Icon} label="Realtime" href={'/realtime'} />+ <SidebarLink icon={GanttChartIcon} label="Events" href={'/events'} />+ <SidebarLink icon={UsersIcon} label="Sessions" href={'/sessions'} />+ <SidebarLink icon={UsersIcon} label="Profiles" href={'/profiles'} />+ <div className="mt-4 mb-2 font-medium text-muted-foreground">Manage</div>+ <SidebarLink+ exact={false}+ icon={CogIcon}+ label="Settings"+ href={'/settings'}+ />+ <SidebarLink icon={GridIcon} label="References" href={'/references'} />+ <SidebarLink+ exact={false}+ icon={BellIcon}+ label="Notifications"+ href={'/notifications'}+ />+ <SidebarLink icon={UndoDotIcon} label="Back to workspace" href={'..'} />+ </>+ );+}++export function ActionCTAButton() {+ const navigate = useNavigate();++ const ACTIONS = [+ {+ label: 'Create report',+ icon: ChartLineIcon,+ onClick: () =>+ navigate({+ to: '/$organizationId/$projectId/reports',+ from: '/$organizationId/$projectId',+ }),+ },+ {+ label: 'Create reference',+ icon: BookOpenIcon,+ onClick: () => pushModal('AddReference'),+ },+ {+ label: 'Ask AI',+ icon: SparklesIcon,+ onClick: () =>+ navigate({+ to: '/$organizationId/$projectId/chat',+ from: '/$organizationId/$projectId',+ }),+ },+ {+ label: 'Create dashboard',+ icon: LayoutDashboardIcon,+ onClick: () => pushModal('AddDashboard'),+ },+ {+ label: 'Create notification rule',+ icon: BellIcon,+ onClick: () =>+ navigate({+ to: '/$organizationId/$projectId/notifications/rules',+ from: '/$organizationId/$projectId',+ }),+ },+ ];++ const [currentActionIndex, setCurrentActionIndex] = useState(0);++ useEffect(() => {+ const interval = setInterval(() => {+ setCurrentActionIndex((prevIndex) => (prevIndex + 1) % ACTIONS.length);+ }, 2000);++ return () => clearInterval(interval);+ }, []);++ return (+ <div className="mb-4">+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button className="w-full justify-between" size="default">+ <div className="flex items-center gap-2">+ <PlusIcon size={16} />+ <div className="relative h-5 flex items-center">+ <AnimatePresence mode="popLayout">+ <motion.span+ key={currentActionIndex}+ initial={{ y: 20, opacity: 0 }}+ animate={{ y: 0, opacity: 1 }}+ exit={{ y: -20, opacity: 0 }}+ transition={{+ type: 'spring',+ stiffness: 300,+ damping: 25,+ duration: 0.3,+ }}+ className="absolute whitespace-nowrap"+ >+ {ACTIONS[currentActionIndex].label}+ </motion.span>+ </AnimatePresence>+ </div>+ </div>+ <ChevronDownIcon size={16} />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent className="w-56" align="start">+ {ACTIONS.map((action) => (+ <DropdownMenuItem+ onClick={action.onClick}+ className="cursor-pointer"+ key={action.label}+ >+ <action.icon className="mr-2 h-4 w-4" />+ {action.label}+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ );+}diff --git a/apps/start/src/components/sidebar.tsx b/apps/start/src/components/sidebar.tsxnew file mode 100644index 000000000..cea71d605--- /dev/null+++ b/apps/start/src/components/sidebar.tsx@@ -0,0 +1,151 @@+import { useTRPC } from '@/integrations/trpc/react';+import { cn } from '@/utils/cn';+import type { IServiceOrganization } from '@openpanel/db';+import { useQuery } from '@tanstack/react-query';+import {+ Link,+ useLocation,+ useParams,+ useRouteContext,+} from '@tanstack/react-router';+import { MenuIcon, XIcon } from 'lucide-react';+import { useEffect, useState } from 'react';+import { FeedbackButton } from './feedback-button';+import { LogoSquare } from './logo';+import { ProfileToggle } from './profile-toggle';+import ProjectSelector from './project-selector';+import SidebarOrganizationMenu, {+ ActionCTAButton as ActionOrganizationCTAButton,+} from './sidebar-organization-menu';+import SidebarProjectMenu, {+ ActionCTAButton as ActionProjectCTAButton,+} from './sidebar-project-menu';+import { Button } from './ui/button';++export function Sidebar() {+ const { organizationId, projectId } = useParams({ strict: false });+ const trpc = useTRPC();++ // Get organizations data+ const { data: organizations = [] } = useQuery(+ trpc.organization.list.queryOptions(),+ );++ // Get projects data when we have an organization+ const { data: projects = [] } = useQuery({+ ...trpc.project.list.queryOptions({+ organizationId: organizationId || null,+ }),+ enabled: !!organizationId,+ });++ // Get dashboards data when we have a project+ const { data: dashboards = [] } = useQuery({+ ...trpc.dashboard.list.queryOptions({+ projectId: projectId || '',+ }),+ enabled: !!projectId,+ });++ if (projectId && organizationId) {+ return (+ <SidebarContainer organizations={organizations} projects={projects}>+ <ActionProjectCTAButton />+ <SidebarProjectMenu dashboards={dashboards} />+ </SidebarContainer>+ );+ }++ // Otherwise show the original sidebar structure+ return (+ <SidebarContainer organizations={organizations} projects={projects}>+ <ActionOrganizationCTAButton />+ <div className="mb-2 font-medium text-muted-foreground">Organization</div>+ <SidebarOrganizationMenu+ organization={organizations.find((o) => o.id === organizationId)!}+ />+ </SidebarContainer>+ );+}++interface SidebarContainerProps {+ organizations: IServiceOrganization[];+ projects: Array<{ id: string; name: string; organizationId: string }>;+ children: React.ReactNode;+}++export function SidebarContainer({+ organizations,+ projects,+ children,+}: SidebarContainerProps) {+ const [active, setActive] = useState(false);+ const location = useLocation();++ useEffect(() => {+ setActive(false);+ }, [location]);++ return (+ <>+ <button+ type="button"+ onClick={() => setActive(false)}+ className={cn(+ 'fixed bottom-0 left-0 right-0 top-0 z-40 backdrop-blur-sm transition-opacity',+ active+ ? 'pointer-events-auto opacity-100'+ : 'pointer-events-none opacity-0',+ )}+ />+ <div+ className={cn(+ 'fixed left-0 top-0 z-40 flex h-screen w-72 flex-col border-r border-border bg-card transition-transform',+ '-translate-x-72 lg:-translate-x-0', // responsive+ active && 'translate-x-0', // force active on mobile+ )}+ >+ <div className="absolute -right-12 flex h-16 items-center lg:hidden">+ <Button+ size="icon"+ onClick={() => setActive((p) => !p)}+ variant={'outline'}+ >+ {active ? <XIcon size={16} /> : <MenuIcon size={16} />}+ </Button>+ </div>+ <div className="flex h-16 shrink-0 items-center gap-4 border-b border-border px-4">+ <Link to="/">+ <LogoSquare className="max-h-8" />+ </Link>+ <ProjectSelector+ align="start"+ projects={projects}+ organizations={organizations}+ />+ <ProfileToggle />+ </div>+ <div+ className={cn([+ 'flex flex-grow col gap-1 overflow-auto p-4',+ "[&_a[data-status='active']]:bg-def-200",+ ])}+ >+ {children}++ <div className="mt-auto w-full ">+ <FeedbackButton />+ {import.meta.env.VITE_SELF_HOSTED === 'true' && (+ <div className={cn('text-sm w-full text-center')}>+ Self-hosted instance+ </div>+ )}+ </div>+ </div>+ <div className="fixed bottom-0 left-0 right-0 pointer-events-none">+ <div className="h-8 w-full bg-gradient-to-t from-card to-card/0" />+ </div>+ </div>+ </>+ );+}diff --git a/apps/start/src/components/skeleton-dashboard.tsx b/apps/start/src/components/skeleton-dashboard.tsxnew file mode 100644index 000000000..ed07410e7--- /dev/null+++ b/apps/start/src/components/skeleton-dashboard.tsx@@ -0,0 +1,130 @@+export function SkeletonDashboard() {+ return (+ <div className="fixed inset-0 bg-gradient-to-br from-def-100 to-def-200 overflow-hidden">+ <div className="inset-0 fixed backdrop-blur-xs bg-background/10 z-10" />+ {/* Sidebar Skeleton */}+ <div className="fixed left-0 top-0 w-72 h-full bg-background/80 border-r border-def-300/50 backdrop-blur-sm">+ {/* Logo area */}+ <div className="h-16 border-b border-def-300/50 flex items-center px-4">+ <div className="w-8 h-8 bg-def-300/60 rounded-lg" />+ <div className="ml-3 w-24 h-4 bg-def-300/60 rounded" />+ </div>++ {/* Navigation items */}+ <div className="p-4 space-y-3">+ {[+ 'Dashboard',+ 'Analytics',+ 'Reports',+ 'Settings',+ 'Users',+ 'Projects',+ ].map((item, i) => (+ <div+ key={`nav-${item.toLowerCase()}`}+ className="flex items-center space-x-3 p-2 rounded-lg"+ >+ <div className="w-5 h-5 bg-def-300/60 rounded" />+ <div className="w-20 h-3 bg-def-300/60 rounded" />+ </div>+ ))}+ </div>++ {/* Project section */}+ <div className="px-4 py-2">+ <div className="w-16 h-3 bg-def-300/60 rounded mb-3" />+ {['Project Alpha', 'Project Beta', 'Project Gamma'].map(+ (project, i) => (+ <div+ key={`project-${project.toLowerCase().replace(' ', '-')}`}+ className="flex items-center space-x-3 p-2 rounded-lg mb-2"+ >+ <div className="w-4 h-4 bg-def-300/60 rounded" />+ <div className="w-24 h-3 bg-def-300/60 rounded" />+ </div>+ ),+ )}+ </div>+ </div>++ {/* Main content area skeleton */}+ <div className="ml-72 p-8">+ {/* Header area */}+ <div className="mb-8">+ <div className="flex justify-between items-center mb-4">+ <div className="w-48 h-6 bg-def-300/60 rounded" />+ <div className="flex space-x-2">+ <div className="w-20 h-8 bg-def-300/60 rounded" />+ <div className="w-20 h-8 bg-def-300/60 rounded" />+ </div>+ </div>+ </div>++ {/* Dashboard grid */}+ <div className="grid grid-cols-3 gap-6 mb-8">+ {[+ 'Total Users',+ 'Active Sessions',+ 'Page Views',+ 'Bounce Rate',+ 'Conversion',+ 'Revenue',+ ].map((metric, i) => (+ <div+ key={`metric-${metric.toLowerCase().replace(' ', '-')}`}+ className="bg-card/60 rounded-xl p-6 border border-def-300/50"+ >+ <div className="w-16 h-4 bg-def-300/60 rounded mb-3" />+ <div className="w-24 h-8 bg-def-300/60 rounded mb-2" />+ <div className="w-32 h-3 bg-def-300/60 rounded" />+ </div>+ ))}+ </div>++ {/* Chart area */}+ <div className="grid grid-cols-2 gap-6">+ <div className="bg-card/60 rounded-xl p-6 border border-def-300/50 h-64">+ <div className="w-20 h-4 bg-def-300/60 rounded mb-4" />+ <div className="space-y-3">+ {['Desktop', 'Mobile', 'Tablet', 'Other'].map((device, i) => (+ <div+ key={`chart-${device.toLowerCase()}`}+ className="flex items-center space-x-3"+ >+ <div className="w-3 h-3 bg-def-300/60 rounded-full" />+ <div className="flex-1 h-2 bg-def-300/60 rounded" />+ <div className="w-8 h-3 bg-def-300/60 rounded" />+ </div>+ ))}+ </div>+ </div>++ <div className="bg-card/60 rounded-xl p-6 border border-def-300/50 h-64">+ <div className="w-20 h-4 bg-def-300/60 rounded mb-4" />+ <div className="space-y-3">+ {[+ 'John Doe',+ 'Jane Smith',+ 'Bob Johnson',+ 'Alice Brown',+ 'Charlie Wilson',+ ].map((user, i) => (+ <div+ key={`user-${user.toLowerCase().replace(' ', '-')}`}+ className="flex items-center space-x-3"+ >+ <div className="w-8 h-8 bg-def-300/60 rounded-full" />+ <div className="flex-1">+ <div className="w-24 h-3 bg-def-300/60 rounded mb-1" />+ <div className="w-16 h-2 bg-def-300/60 rounded" />+ </div>+ <div className="w-12 h-3 bg-def-300/60 rounded" />+ </div>+ ))}+ </div>+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/skeleton.tsx b/apps/start/src/components/skeleton.tsxsimilarity index 100%rename from apps/dashboard/src/components/skeleton.tsxrename to apps/start/src/components/skeleton.tsxdiff --git a/apps/dashboard/src/components/stats.tsx b/apps/start/src/components/stats.tsxsimilarity index 100%rename from apps/dashboard/src/components/stats.tsxrename to apps/start/src/components/stats.tsxdiff --git a/apps/dashboard/src/components/syntax.tsx b/apps/start/src/components/syntax.tsxsimilarity index 99%rename from apps/dashboard/src/components/syntax.tsxrename to apps/start/src/components/syntax.tsxindex 5d9139cb2..2769c1577 100644--- a/apps/dashboard/src/components/syntax.tsx+++ b/apps/start/src/components/syntax.tsx@@ -1,5 +1,3 @@-'use client';-import { clipboard } from '@/utils/clipboard';import { cn } from '@/utils/cn';import { CopyIcon } from 'lucide-react';diff --git a/apps/start/src/components/theme-provider.tsx b/apps/start/src/components/theme-provider.tsxnew file mode 100644index 000000000..5b5a4c840--- /dev/null+++ b/apps/start/src/components/theme-provider.tsx@@ -0,0 +1,164 @@+import { mapKeys } from '@openpanel/validation';+import { ScriptOnce } from '@tanstack/react-router';+import { createIsomorphicFn } from '@tanstack/react-start';+import { type ReactNode, createContext, use, useEffect, useState } from 'react';+import { z } from 'zod';++const UserThemeSchema = z.enum(['light', 'dark', 'system']).catch('system');+const AppThemeSchema = z.enum(['light', 'dark']).catch('light');++const clientOnly = <T extends (...args: any[]) => void>(fn: T) => {+ if (typeof window === 'undefined') return (() => {}) as unknown as T;+ return fn;+};++export type UserTheme = z.infer<typeof UserThemeSchema>;+export type AppTheme = z.infer<typeof AppThemeSchema>;++const themeStorageKey = 'ui-theme';++const getStoredUserTheme = createIsomorphicFn()+ .server((): UserTheme => 'system')+ .client((): UserTheme => {+ const stored = localStorage.getItem(themeStorageKey);+ return UserThemeSchema.parse(stored);+ });++const setStoredTheme = clientOnly((theme: UserTheme) => {+ const validatedTheme = UserThemeSchema.parse(theme);+ localStorage.setItem(themeStorageKey, validatedTheme);+});++const getSystemTheme = createIsomorphicFn()+ .server((): AppTheme => 'light')+ .client((): AppTheme => {+ return window.matchMedia('(prefers-color-scheme: dark)').matches+ ? 'dark'+ : 'light';+ });++const handleThemeChange = clientOnly((userTheme: UserTheme) => {+ const validatedTheme = UserThemeSchema.parse(userTheme);++ const root = document.documentElement;+ root.classList.remove('light', 'dark', 'system');++ if (validatedTheme === 'system') {+ const systemTheme = getSystemTheme();+ root.classList.add(systemTheme, 'system');+ } else {+ root.classList.add(validatedTheme);+ }+});++const setupPreferredListener = clientOnly(() => {+ const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');+ const handler = () => handleThemeChange('system');+ mediaQuery.addEventListener('change', handler);+ return () => mediaQuery.removeEventListener('change', handler);+});++export const themeConfig: Record<UserTheme, { icon: string; label: string }> = {+ light: { icon: '☀️', label: 'Light' },+ dark: { icon: '🌒', label: 'Dark' },+ system: { icon: '💻', label: 'System' },+};++const themes = mapKeys(themeConfig).map((key) => ({+ key,+ ...themeConfig[key],+}));++const themeScript = (() => {+ function themeFn() {+ try {+ const storedTheme = localStorage.getItem('ui-theme') || 'system';+ const validTheme = ['light', 'dark', 'system'].includes(storedTheme)+ ? storedTheme+ : 'system';++ if (validTheme === 'system') {+ const systemTheme = window.matchMedia('(prefers-color-scheme: dark)')+ .matches+ ? 'dark'+ : 'light';+ document.documentElement.classList.add(systemTheme, 'system');+ } else {+ document.documentElement.classList.add(validTheme);+ }+ } catch (e) {+ const systemTheme = window.matchMedia('(prefers-color-scheme: dark)')+ .matches+ ? 'dark'+ : 'light';+ document.documentElement.classList.add(systemTheme, 'system');+ }+ }+ return `(${themeFn.toString()})();`;+})();++export const ThemeScriptOnce = () => {+ return <ScriptOnce>{themeScript}</ScriptOnce>;+};++type ThemeContextProps = {+ userTheme: UserTheme;+ appTheme: AppTheme;+ theme: AppTheme;+ setTheme: (theme: UserTheme) => void;+ getNextTheme: () => UserTheme;+ themes: typeof themes;+};+const ThemeContext = createContext<ThemeContextProps | undefined>(undefined);++type ThemeProviderProps = {+ children: ReactNode;+};+export function ThemeProvider({ children }: ThemeProviderProps) {+ const [userTheme, setUserTheme] = useState<UserTheme>(getStoredUserTheme);++ useEffect(() => {+ if (userTheme !== 'system') return;+ return setupPreferredListener();+ }, [userTheme]);++ const appTheme = userTheme === 'system' ? getSystemTheme() : userTheme;++ const setTheme = (newUserTheme: UserTheme) => {+ const validatedTheme = UserThemeSchema.parse(newUserTheme);+ setUserTheme(validatedTheme);+ setStoredTheme(validatedTheme);+ handleThemeChange(validatedTheme);+ };++ const getNextTheme = () => {+ const themes = Object.keys(themeConfig) as UserTheme[];+ const currentIndex = themes.indexOf(userTheme);+ const nextIndex = (currentIndex + 1) % themes.length;+ return themes[nextIndex];+ };++ return (+ <ThemeContext+ value={{+ userTheme,+ appTheme,+ theme: appTheme,+ setTheme,+ getNextTheme,+ themes,+ }}+ >+ {children}+ </ThemeContext>+ );+}++export const useTheme = () => {+ const context = use(ThemeContext);+ if (!context) {+ throw new Error('useTheme must be used within a ThemeProvider');+ }++ return context;+};diff --git a/apps/dashboard/src/components/time-window-picker.tsx b/apps/start/src/components/time-window-picker.tsxsimilarity index 100%rename from apps/dashboard/src/components/time-window-picker.tsxrename to apps/start/src/components/time-window-picker.tsxdiff --git a/apps/dashboard/src/components/tooltip-complete.tsx b/apps/start/src/components/tooltip-complete.tsxsimilarity index 100%rename from apps/dashboard/src/components/tooltip-complete.tsxrename to apps/start/src/components/tooltip-complete.tsxdiff --git a/apps/dashboard/src/components/ui/RenderDots.tsx b/apps/start/src/components/ui/RenderDots.tsxsimilarity index 99%rename from apps/dashboard/src/components/ui/RenderDots.tsxrename to apps/start/src/components/ui/RenderDots.tsxindex 6fbd1c61c..343d73dfc 100644--- a/apps/dashboard/src/components/ui/RenderDots.tsx+++ b/apps/start/src/components/ui/RenderDots.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import { Asterisk, ChevronRight } from 'lucide-react';diff --git a/apps/dashboard/src/components/ui/accordion.tsx b/apps/start/src/components/ui/accordion.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/accordion.tsxrename to apps/start/src/components/ui/accordion.tsxdiff --git a/apps/dashboard/src/components/ui/alert-dialog.tsx b/apps/start/src/components/ui/alert-dialog.tsxsimilarity index 99%rename from apps/dashboard/src/components/ui/alert-dialog.tsxrename to apps/start/src/components/ui/alert-dialog.tsxindex 4dda51914..52196732f 100644--- a/apps/dashboard/src/components/ui/alert-dialog.tsx+++ b/apps/start/src/components/ui/alert-dialog.tsx@@ -1,5 +1,3 @@-'use client';-import { buttonVariants } from '@/components/ui/button';import { cn } from '@/utils/cn';import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';diff --git a/apps/dashboard/src/components/ui/alert.tsx b/apps/start/src/components/ui/alert.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/alert.tsxrename to apps/start/src/components/ui/alert.tsxdiff --git a/apps/dashboard/src/components/ui/aspect-ratio.tsx b/apps/start/src/components/ui/aspect-ratio.tsxsimilarity index 90%rename from apps/dashboard/src/components/ui/aspect-ratio.tsxrename to apps/start/src/components/ui/aspect-ratio.tsxindex aaabffbc4..5dfdf1e67 100644--- a/apps/dashboard/src/components/ui/aspect-ratio.tsx+++ b/apps/start/src/components/ui/aspect-ratio.tsx@@ -1,5 +1,3 @@-'use client';-import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';const AspectRatio = AspectRatioPrimitive.Root;diff --git a/apps/dashboard/src/components/ui/avatar.tsx b/apps/start/src/components/ui/avatar.tsxsimilarity index 98%rename from apps/dashboard/src/components/ui/avatar.tsxrename to apps/start/src/components/ui/avatar.tsxindex 24ffd735b..b20339ea0 100644--- a/apps/dashboard/src/components/ui/avatar.tsx+++ b/apps/start/src/components/ui/avatar.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import * as AvatarPrimitive from '@radix-ui/react-avatar';import * as React from 'react';diff --git a/apps/start/src/components/ui/badge.tsx b/apps/start/src/components/ui/badge.tsxnew file mode 100644index 000000000..e63ad31fb--- /dev/null+++ b/apps/start/src/components/ui/badge.tsx@@ -0,0 +1,46 @@+import { Slot } from '@radix-ui/react-slot';+import { type VariantProps, cva } from 'class-variance-authority';+import type * as React from 'react';++import { cn } from '@/lib/utils';++const badgeVariants = cva(+ 'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden',+ {+ variants: {+ variant: {+ default:+ 'border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90',+ secondary:+ 'border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90',+ destructive:+ 'border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',+ outline:+ 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',+ },+ },+ defaultVariants: {+ variant: 'default',+ },+ },+);++function Badge({+ className,+ variant,+ asChild = false,+ ...props+}: React.ComponentProps<'span'> &+ VariantProps<typeof badgeVariants> & { asChild?: boolean }) {+ const Comp = asChild ? Slot : 'span';++ return (+ <Comp+ data-slot="badge"+ className={cn(badgeVariants({ variant }), className)}+ {...props}+ />+ );+}++export { Badge, badgeVariants };diff --git a/apps/start/src/components/ui/button.tsx b/apps/start/src/components/ui/button.tsxnew file mode 100644index 000000000..9f7f95f70--- /dev/null+++ b/apps/start/src/components/ui/button.tsx@@ -0,0 +1,219 @@+import { cn } from '@/utils/cn';+import { Slot } from '@radix-ui/react-slot';+import { Link, type LinkComponentProps } from '@tanstack/react-router';+import type { VariantProps } from 'class-variance-authority';+import { cva } from 'class-variance-authority';+import type { LucideIcon } from 'lucide-react';+import * as React from 'react';+import { Spinner, type SpinnerProps } from './spinner';++const buttonVariants = cva(+ 'inline-flex flex-shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:translate-y-[-0.5px] transition-all',+ {+ variants: {+ variant: {+ default: 'bg-primary text-primary-foreground hover:bg-primary/90',+ cta: 'bg-highlight text-white hover:bg-highlight/80',+ destructive:+ 'bg-destructive text-destructive-foreground hover:bg-destructive/90',+ outline:+ 'border border-input bg-card hover:bg-accent hover:text-accent-foreground',+ secondary: 'bg-def-100 text-secondary-foreground hover:bg-def-100/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-8 rounded-md px-2',+ lg: 'h-11 rounded-md px-8',+ icon: 'h-8 w-8',+ },+ },+ defaultVariants: {+ variant: 'default',+ size: 'sm',+ },+ },+);++export interface ButtonProps+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,+ VariantProps<typeof buttonVariants> {+ asChild?: boolean;+ loading?: boolean;+ loadingType?: SpinnerProps['type'];+ loadingSpeed?: SpinnerProps['speed'];+ icon?: LucideIcon;+ responsive?: boolean;+ autoHeight?: boolean;+ loadingAbsolute?: boolean;+}++function fixHeight({+ autoHeight,+ size,+}: { autoHeight?: boolean; size: ButtonProps['size'] }) {+ if (autoHeight) {+ switch (size) {+ case 'lg':+ return 'h-auto min-h-11 py-2';+ case 'icon':+ return 'h-auto min-h-8 py-1';+ case 'default':+ return 'h-auto min-h-10 py-2';+ default:+ return 'h-auto min-h-8 py-1';+ }+ }+ return '';+}++const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(+ (+ {+ className,+ variant,+ size,+ asChild = false,+ children,+ loading,+ loadingType = 'circle',+ loadingSpeed = 'normal',+ disabled,+ icon,+ responsive,+ autoHeight,+ loadingAbsolute,+ ...props+ },+ ref,+ ) => {+ const Comp = asChild ? Slot : 'button';+ const Icon = loading ? null : (icon ?? null);++ // Determine spinner size based on button size+ const spinnerSize = size === 'lg' ? 'md' : size === 'icon' ? 'sm' : 'sm';++ return (+ <Comp+ className={cn(+ buttonVariants({ variant, size, className }),+ fixHeight({ autoHeight, size }),+ loadingAbsolute && 'relative',+ )}+ ref={ref}+ disabled={loading || disabled}+ {...props}+ >+ {loading && (+ <div+ className={cn(+ loadingAbsolute &&+ 'absolute top-0 left-0 right-0 bottom-0 center-center backdrop-blur bg-background/10',+ )}+ >+ <Spinner+ type={loadingType}+ size={spinnerSize}+ speed={loadingSpeed}+ variant={+ variant === 'default' || variant === 'cta' ? 'white' : 'default'+ }+ className={cn(+ 'flex-shrink-0',+ size !== 'icon' && responsive && 'mr-0 sm:mr-2',+ size !== 'icon' && !responsive && 'mr-2',+ )}+ />+ </div>+ )}+ {Icon && (+ <Icon+ className={cn(+ 'h-4 w-4 flex-shrink-0',+ size !== 'icon' && responsive && 'mr-0 sm:mr-2',+ size !== 'icon' && !responsive && 'mr-2',+ )}+ />+ )}+ {responsive ? (+ <span className="hidden sm:block">{children}</span>+ ) : (+ children+ )}+ </Comp>+ );+ },+);+Button.displayName = 'Button';++const LinkButton = ({+ className,+ variant,+ size,+ children,+ loading,+ loadingType = 'circle',+ loadingSpeed = 'normal',+ icon,+ responsive,+ ...props+}: LinkComponentProps &+ VariantProps<typeof buttonVariants> & {+ loading?: boolean;+ loadingType?: SpinnerProps['type'];+ loadingSpeed?: SpinnerProps['speed'];+ icon?: LucideIcon;+ responsive?: boolean;+ }) => {+ const Icon = loading ? null : (icon ?? null);++ // Determine spinner size based on button size+ const spinnerSize = size === 'lg' ? 'md' : size === 'icon' ? 'sm' : 'sm';++ return (+ <Link+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ >+ {(linkProps) => (+ <>+ {loading && (+ <Spinner+ type={loadingType}+ size={spinnerSize}+ speed={loadingSpeed}+ variant={+ variant === 'default' || variant === 'cta' ? 'white' : 'default'+ }+ className={cn(+ 'flex-shrink-0',+ responsive && 'mr-0 sm:mr-2',+ !responsive && 'mr-2',+ )}+ />+ )}+ {Icon && (+ <Icon+ className={cn(+ 'mr-2 h-4 w-4 flex-shrink-0',+ responsive && 'mr-0 sm:mr-2',+ )}+ />+ )}+ {responsive ? (+ <span className="hidden sm:block">+ {typeof children === 'function' ? children(linkProps) : children}+ </span>+ ) : typeof children === 'function' ? (+ children(linkProps)+ ) : (+ children+ )}+ </>+ )}+ </Link>+ );+};++export { Button, LinkButton, buttonVariants };diff --git a/apps/start/src/components/ui/calendar.tsx b/apps/start/src/components/ui/calendar.tsxnew file mode 100644index 000000000..c3742167f--- /dev/null+++ b/apps/start/src/components/ui/calendar.tsx@@ -0,0 +1,215 @@+import {+ ChevronDownIcon,+ ChevronLeftIcon,+ ChevronRightIcon,+} from 'lucide-react';+import * as React from 'react';+import {+ type DayButton,+ DayPicker,+ getDefaultClassNames,+} from 'react-day-picker';++import { Button, buttonVariants } from '@/components/ui/button';+import { cn } from '@/lib/utils';++function Calendar({+ className,+ classNames,+ showOutsideDays = true,+ captionLayout = 'label',+ buttonVariant = 'ghost',+ formatters,+ components,+ ...props+}: React.ComponentProps<typeof DayPicker> & {+ buttonVariant?: React.ComponentProps<typeof Button>['variant'];+}) {+ const defaultClassNames = getDefaultClassNames();++ return (+ <DayPicker+ showOutsideDays={showOutsideDays}+ className={cn(+ 'bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,+ className,+ )}+ captionLayout={captionLayout}+ formatters={{+ formatMonthDropdown: (date) =>+ date.toLocaleString('default', { month: 'short' }),+ ...formatters,+ }}+ classNames={{+ root: cn('w-fit', defaultClassNames.root),+ months: cn(+ 'flex gap-4 flex-col sm:flex-row relative',+ defaultClassNames.months,+ ),+ month: cn('flex flex-col w-full gap-4', defaultClassNames.month),+ nav: cn(+ 'flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between',+ defaultClassNames.nav,+ ),+ button_previous: cn(+ buttonVariants({ variant: buttonVariant }),+ 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none',+ defaultClassNames.button_previous,+ ),+ button_next: cn(+ buttonVariants({ variant: buttonVariant }),+ 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none',+ defaultClassNames.button_next,+ ),+ month_caption: cn(+ 'flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)',+ defaultClassNames.month_caption,+ ),+ dropdowns: cn(+ 'w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5',+ defaultClassNames.dropdowns,+ ),+ dropdown_root: cn(+ 'relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md',+ defaultClassNames.dropdown_root,+ ),+ dropdown: cn(+ 'absolute bg-popover inset-0 opacity-0',+ defaultClassNames.dropdown,+ ),+ caption_label: cn(+ 'select-none font-medium',+ captionLayout === 'label'+ ? 'text-sm'+ : 'rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5',+ defaultClassNames.caption_label,+ ),+ table: 'w-full border-collapse',+ weekdays: cn('flex', defaultClassNames.weekdays),+ weekday: cn(+ 'text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none',+ defaultClassNames.weekday,+ ),+ week: cn('flex w-full mt-2', defaultClassNames.week),+ week_number_header: cn(+ 'select-none w-(--cell-size)',+ defaultClassNames.week_number_header,+ ),+ week_number: cn(+ 'text-[0.8rem] select-none text-muted-foreground',+ defaultClassNames.week_number,+ ),+ day: cn(+ 'relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none',+ defaultClassNames.day,+ ),+ range_start: cn(+ 'rounded-l-md bg-accent',+ defaultClassNames.range_start,+ ),+ range_middle: cn('rounded-none', defaultClassNames.range_middle),+ range_end: cn('rounded-r-md bg-accent', defaultClassNames.range_end),+ today: cn(+ 'bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none',+ defaultClassNames.today,+ ),+ outside: cn(+ 'text-muted-foreground aria-selected:text-muted-foreground',+ defaultClassNames.outside,+ ),+ disabled: cn(+ 'text-muted-foreground opacity-50',+ defaultClassNames.disabled,+ ),+ hidden: cn('invisible', defaultClassNames.hidden),+ ...classNames,+ }}+ components={{+ Root: ({ className, rootRef, ...props }) => {+ return (+ <div+ data-slot="calendar"+ ref={rootRef}+ className={cn(className)}+ {...props}+ />+ );+ },+ Chevron: ({ className, orientation, ...props }) => {+ if (orientation === 'left') {+ return (+ <ChevronLeftIcon className={cn('size-4', className)} {...props} />+ );+ }++ if (orientation === 'right') {+ return (+ <ChevronRightIcon+ className={cn('size-4', className)}+ {...props}+ />+ );+ }++ return (+ <ChevronDownIcon className={cn('size-4', className)} {...props} />+ );+ },+ DayButton: CalendarDayButton,+ WeekNumber: ({ children, ...props }) => {+ return (+ <td {...props}>+ <div className="flex size-(--cell-size) items-center justify-center text-center">+ {children}+ </div>+ </td>+ );+ },+ ...components,+ }}+ {...props}+ />+ );+}++function CalendarDayButton({+ className,+ day,+ modifiers,+ ...props+}: React.ComponentProps<typeof DayButton>) {+ const defaultClassNames = getDefaultClassNames();++ const ref = React.useRef<HTMLButtonElement>(null);+ React.useEffect(() => {+ if (modifiers.focused) ref.current?.focus();+ }, [modifiers.focused]);++ return (+ <Button+ ref={ref}+ variant="ghost"+ size="icon"+ data-day={day.date.toLocaleDateString()}+ data-selected-single={+ modifiers.selected &&+ !modifiers.range_start &&+ !modifiers.range_end &&+ !modifiers.range_middle+ }+ data-range-start={modifiers.range_start}+ data-range-end={modifiers.range_end}+ data-range-middle={modifiers.range_middle}+ className={cn(+ 'data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70',+ defaultClassNames.day,+ className,+ )}+ {...props}+ />+ );+}++export { Calendar, CalendarDayButton };diff --git a/apps/dashboard/src/components/ui/carousel.tsx b/apps/start/src/components/ui/carousel.tsxsimilarity index 94%rename from apps/dashboard/src/components/ui/carousel.tsxrename to apps/start/src/components/ui/carousel.tsxindex 3e4a93823..68a123a11 100644--- a/apps/dashboard/src/components/ui/carousel.tsx+++ b/apps/start/src/components/ui/carousel.tsx@@ -1,5 +1,6 @@import { Button } from '@/components/ui/button';import { cn } from '@/utils/cn';+import Autoplay from 'embla-carousel-autoplay';import useEmblaCarousel from 'embla-carousel-react';import type { UseEmblaCarouselType } from 'embla-carousel-react';import { ArrowLeft, ArrowRight } from 'lucide-react';@@ -128,6 +129,11 @@ const Carousel = React.forwardRef<scrollNext,canScrollPrev,canScrollNext,+ plugins: [+ Autoplay({+ delay: 2000,+ }),+ ],}}><div@@ -202,7 +208,7 @@ const CarouselPrevious = React.forwardRef<variant={variant}size={size}className={cn(- 'absolute h-10 w-10 rounded-full',+ 'absolute h-10 w-10 rounded-full hover:scale-100 hover:translate-y-[-50%] transition-all duration-200',orientation === 'horizontal'? 'left-6 top-1/2 -translate-y-1/2': '-top-12 left-1/2 -translate-x-1/2 rotate-90',@@ -231,7 +237,7 @@ const CarouselNext = React.forwardRef<variant={variant}size={size}className={cn(- 'absolute h-10 w-10 rounded-full',+ 'absolute h-10 w-10 rounded-full hover:scale-100 hover:translate-y-[-50%] transition-all duration-200',orientation === 'horizontal'? 'right-6 top-1/2 -translate-y-1/2': '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',diff --git a/apps/dashboard/src/components/ui/checkbox.tsx b/apps/start/src/components/ui/checkbox.tsxsimilarity index 99%rename from apps/dashboard/src/components/ui/checkbox.tsxrename to apps/start/src/components/ui/checkbox.tsxindex 29bcbcd9a..97dccbc38 100644--- a/apps/dashboard/src/components/ui/checkbox.tsx+++ b/apps/start/src/components/ui/checkbox.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import * as CheckboxPrimitive from '@radix-ui/react-checkbox';import { Check } from 'lucide-react';diff --git a/apps/dashboard/src/components/ui/combobox-advanced.tsx b/apps/start/src/components/ui/combobox-advanced.tsxsimilarity index 80%rename from apps/dashboard/src/components/ui/combobox-advanced.tsxrename to apps/start/src/components/ui/combobox-advanced.tsxindex ec883fb91..926bc83a3 100644--- a/apps/dashboard/src/components/ui/combobox-advanced.tsx+++ b/apps/start/src/components/ui/combobox-advanced.tsx@@ -8,7 +8,12 @@ import { useOnClickOutside } from 'usehooks-ts';import { Button, type ButtonProps } from './button';import { Checkbox, DumpCheckbox } from './checkbox';-import { Popover, PopoverContent, PopoverTrigger } from './popover';+import {+ Popover,+ PopoverContent,+ PopoverPortal,+ PopoverTrigger,+} from './popover';type IValue = any;type IItem = Record<'value' | 'label', IValue>;@@ -32,8 +37,8 @@ export function ComboboxAdvanced({}: ComboboxAdvancedProps) {const [open, setOpen] = React.useState(false);const [inputValue, setInputValue] = React.useState('');- const ref = React.useRef<HTMLDivElement | null>(null);- useOnClickOutside(ref, () => setOpen(false));+ const ref = React.useRef<HTMLDivElement>(null);+ useOnClickOutside(ref as React.RefObject<HTMLElement>, () => setOpen(false));const selectables = items.filter((item) => !value.find((s) => s === item.value))@@ -118,23 +123,25 @@ export function ComboboxAdvanced({<ChevronsUpDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" /></Button></PopoverTrigger>- <PopoverContent className="w-full max-w-md p-0" align="start">- <Command shouldFilter={false}>- <CommandInput- placeholder="Search"- value={inputValue}- onValueChange={setInputValue}- />- <VirtualList- height={Math.min(items.length * 32, 300)}- data={data}- itemHeight={32}- itemKey="value"- >- {renderItem}- </VirtualList>- </Command>- </PopoverContent>+ <PopoverPortal>+ <PopoverContent className="w-full max-w-md p-0" align="start">+ <Command shouldFilter={false}>+ <CommandInput+ placeholder="Search"+ value={inputValue}+ onValueChange={setInputValue}+ />+ <VirtualList+ height={Math.min(items.length * 32, 300)}+ data={data}+ itemHeight={32}+ itemKey="value"+ >+ {renderItem}+ </VirtualList>+ </Command>+ </PopoverContent>+ </PopoverPortal></Popover>);}diff --git a/apps/dashboard/src/components/ui/combobox-events.tsx b/apps/start/src/components/ui/combobox-events.tsxsimilarity index 95%rename from apps/dashboard/src/components/ui/combobox-events.tsxrename to apps/start/src/components/ui/combobox-events.tsxindex 2c34f0174..c9b3fd015 100644--- a/apps/dashboard/src/components/ui/combobox-events.tsx+++ b/apps/start/src/components/ui/combobox-events.tsx@@ -11,16 +11,14 @@ import {PopoverContent,PopoverTrigger,} from '@/components/ui/popover';-import { useNumber } from '@/hooks/useNumerFormatter';+import { useNumber } from '@/hooks/use-numer-formatter';import type { RouterOutputs } from '@/trpc/client';import { cn } from '@/utils/cn';import { PopoverPortal } from '@radix-ui/react-popover';-import type { LucideIcon } from 'lucide-react';-import { Check, CheckIcon, ChevronsUpDown, GanttChartIcon } from 'lucide-react';+import { CheckIcon, ChevronsUpDown, GanttChartIcon } from 'lucide-react';import VirtualList from 'rc-virtual-list';import * as React from 'react';-import { EventIcon, EventIconMapper } from '../events/event-icon';-import { TooltipComplete } from '../tooltip-complete';+import { EventIcon } from '../events/event-icon';/*** Type-safe ComboboxEvents component that supports both single and multiple selection.diff --git a/apps/dashboard/src/components/ui/combobox.tsx b/apps/start/src/components/ui/combobox.tsxsimilarity index 99%rename from apps/dashboard/src/components/ui/combobox.tsxrename to apps/start/src/components/ui/combobox.tsxindex ec9eaa04f..c9b8525d0 100644--- a/apps/dashboard/src/components/ui/combobox.tsx+++ b/apps/start/src/components/ui/combobox.tsx@@ -1,5 +1,3 @@-'use client';-import type { ButtonProps } from '@/components/ui/button';import { Button } from '@/components/ui/button';import {diff --git a/apps/start/src/components/ui/command.tsx b/apps/start/src/components/ui/command.tsxnew file mode 100644index 000000000..a3e80d7c6--- /dev/null+++ b/apps/start/src/components/ui/command.tsx@@ -0,0 +1,184 @@+'use client';++import { Command as CommandPrimitive } from 'cmdk';+import { SearchIcon } from 'lucide-react';+import type * as React from 'react';++import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from '@/components/ui/dialog';+import { cn } from '@/lib/utils';++function Command({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive>) {+ return (+ <CommandPrimitive+ data-slot="command"+ className={cn(+ 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',+ className,+ )}+ {...props}+ />+ );+}++function CommandDialog({+ title = 'Command Palette',+ description = 'Search for a command to run...',+ children,+ className,+ showCloseButton = true,+ ...props+}: React.ComponentProps<typeof Dialog> & {+ title?: string;+ description?: string;+ className?: string;+ showCloseButton?: boolean;+}) {+ return (+ <Dialog {...props}>+ <DialogHeader className="sr-only">+ <DialogTitle>{title}</DialogTitle>+ <DialogDescription>{description}</DialogDescription>+ </DialogHeader>+ <DialogContent+ className={cn('overflow-hidden p-0', className)}+ showCloseButton={showCloseButton}+ >+ <Command className="[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">+ {children}+ </Command>+ </DialogContent>+ </Dialog>+ );+}++function CommandInput({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Input>) {+ return (+ <div+ data-slot="command-input-wrapper"+ className="flex h-9 items-center gap-2 border-b px-3"+ >+ <SearchIcon className="size-4 shrink-0 opacity-50" />+ <CommandPrimitive.Input+ data-slot="command-input"+ className={cn(+ 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50',+ className,+ )}+ {...props}+ />+ </div>+ );+}++function CommandList({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.List>) {+ return (+ <CommandPrimitive.List+ data-slot="command-list"+ className={cn(+ 'max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto',+ className,+ )}+ {...props}+ />+ );+}++function CommandEmpty({+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Empty>) {+ return (+ <CommandPrimitive.Empty+ data-slot="command-empty"+ className="py-6 text-center text-sm"+ {...props}+ />+ );+}++function CommandGroup({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Group>) {+ return (+ <CommandPrimitive.Group+ data-slot="command-group"+ className={cn(+ 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',+ className,+ )}+ {...props}+ />+ );+}++function CommandSeparator({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Separator>) {+ return (+ <CommandPrimitive.Separator+ data-slot="command-separator"+ className={cn('bg-border -mx-1 h-px', className)}+ {...props}+ />+ );+}++function CommandItem({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Item>) {+ return (+ <CommandPrimitive.Item+ data-slot="command-item"+ className={cn(+ "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ />+ );+}++function CommandShortcut({+ className,+ ...props+}: React.ComponentProps<'span'>) {+ return (+ <span+ data-slot="command-shortcut"+ className={cn(+ 'text-muted-foreground ml-auto text-xs tracking-widest',+ className,+ )}+ {...props}+ />+ );+}++export {+ Command,+ CommandDialog,+ CommandInput,+ CommandList,+ CommandEmpty,+ CommandGroup,+ CommandItem,+ CommandShortcut,+ CommandSeparator,+};diff --git a/apps/start/src/components/ui/data-table/data-table-column-header.tsx b/apps/start/src/components/ui/data-table/data-table-column-header.tsxnew file mode 100644index 000000000..6f3b1d342--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-column-header.tsx@@ -0,0 +1,104 @@+'use client';++import type { Column } from '@tanstack/react-table';+import {+ ChevronDown,+ ChevronDownIcon,+ ChevronUp,+ ChevronUpIcon,+ ChevronsUpDown,+ ChevronsUpDownIcon,+ EyeOff,+ EyeOffIcon,+ X,+ XIcon,+} from 'lucide-react';++import {+ DropdownMenu,+ DropdownMenuCheckboxItem,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { cn } from '@/lib/utils';++interface DataTableColumnHeaderProps<TData, TValue>+ extends React.ComponentProps<typeof DropdownMenuTrigger> {+ column: Column<TData, TValue>;+ title: string;+}++export function DataTableColumnHeader<TData, TValue>({+ column,+ title,+ className,+ ...props+}: DataTableColumnHeaderProps<TData, TValue>) {+ if (!column.getCanSort() && !column.getCanHide()) {+ return <div className={cn(className)}>{title}</div>;+ }++ return (+ <DropdownMenu>+ <DropdownMenuTrigger+ className={cn(+ 'text-[10px] uppercase -ml-1.5 flex h-8 items-center gap-1.5 rounded-md px-2 py-1.5 hover:bg-accent focus:outline-none focus:ring-1 focus:ring-ring data-[state=open]:bg-accent [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground',+ className,+ )}+ {...props}+ >+ {title}+ {column.getCanSort() &&+ (column.getIsSorted() === 'desc' ? (+ <ChevronDownIcon />+ ) : column.getIsSorted() === 'asc' ? (+ <ChevronUpIcon />+ ) : (+ <ChevronsUpDownIcon />+ ))}+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="w-28">+ {column.getCanSort() && (+ <>+ <DropdownMenuCheckboxItem+ className="relative pr-8 pl-2 [&>span:first-child]:right-2 [&>span:first-child]:left-auto [&_svg]:text-muted-foreground"+ checked={column.getIsSorted() === 'asc'}+ onClick={() => column.toggleSorting(false)}+ >+ <ChevronUpIcon className="size-4" />+ Asc+ </DropdownMenuCheckboxItem>+ <DropdownMenuCheckboxItem+ className="relative pr-8 pl-2 [&>span:first-child]:right-2 [&>span:first-child]:left-auto [&_svg]:text-muted-foreground"+ checked={column.getIsSorted() === 'desc'}+ onClick={() => column.toggleSorting(true)}+ >+ <ChevronDownIcon className="size-4" />+ Desc+ </DropdownMenuCheckboxItem>+ {column.getIsSorted() && (+ <DropdownMenuItem+ className="pl-2 [&_svg]:text-muted-foreground"+ onClick={() => column.clearSorting()}+ >+ <XIcon className="size-4" />+ Reset+ </DropdownMenuItem>+ )}+ </>+ )}+ {column.getCanHide() && (+ <DropdownMenuCheckboxItem+ className="relative pr-8 pl-2 [&>span:first-child]:right-2 [&>span:first-child]:left-auto [&_svg]:text-muted-foreground"+ checked={!column.getIsVisible()}+ onClick={() => column.toggleVisibility(false)}+ >+ <EyeOffIcon className="size-4" />+ Hide+ </DropdownMenuCheckboxItem>+ )}+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/apps/start/src/components/ui/data-table/data-table-config.ts b/apps/start/src/components/ui/data-table/data-table-config.tsnew file mode 100644index 000000000..f81c417c0--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-config.ts@@ -0,0 +1,82 @@+export type DataTableConfig = typeof dataTableConfig;++export const dataTableConfig = {+ textOperators: [+ { label: 'Contains', value: 'iLike' as const },+ { label: 'Does not contain', value: 'notILike' as const },+ { label: 'Is', value: 'eq' as const },+ { label: 'Is not', value: 'ne' as const },+ { label: 'Is empty', value: 'isEmpty' as const },+ { label: 'Is not empty', value: 'isNotEmpty' as const },+ ],+ numericOperators: [+ { label: 'Is', value: 'eq' as const },+ { label: 'Is not', value: 'ne' as const },+ { label: 'Is less than', value: 'lt' as const },+ { label: 'Is less than or equal to', value: 'lte' as const },+ { label: 'Is greater than', value: 'gt' as const },+ { label: 'Is greater than or equal to', value: 'gte' as const },+ { label: 'Is between', value: 'isBetween' as const },+ { label: 'Is empty', value: 'isEmpty' as const },+ { label: 'Is not empty', value: 'isNotEmpty' as const },+ ],+ dateOperators: [+ { label: 'Is', value: 'eq' as const },+ { label: 'Is not', value: 'ne' as const },+ { label: 'Is before', value: 'lt' as const },+ { label: 'Is after', value: 'gt' as const },+ { label: 'Is on or before', value: 'lte' as const },+ { label: 'Is on or after', value: 'gte' as const },+ { label: 'Is between', value: 'isBetween' as const },+ { label: 'Is relative to today', value: 'isRelativeToToday' as const },+ { label: 'Is empty', value: 'isEmpty' as const },+ { label: 'Is not empty', value: 'isNotEmpty' as const },+ ],+ selectOperators: [+ { label: 'Is', value: 'eq' as const },+ { label: 'Is not', value: 'ne' as const },+ { label: 'Is empty', value: 'isEmpty' as const },+ { label: 'Is not empty', value: 'isNotEmpty' as const },+ ],+ multiSelectOperators: [+ { label: 'Has any of', value: 'inArray' as const },+ { label: 'Has none of', value: 'notInArray' as const },+ { label: 'Is empty', value: 'isEmpty' as const },+ { label: 'Is not empty', value: 'isNotEmpty' as const },+ ],+ booleanOperators: [+ { label: 'Is', value: 'eq' as const },+ { label: 'Is not', value: 'ne' as const },+ ],+ sortOrders: [+ { label: 'Asc', value: 'asc' as const },+ { label: 'Desc', value: 'desc' as const },+ ],+ filterVariants: [+ 'text',+ 'number',+ 'range',+ 'date',+ 'dateRange',+ 'boolean',+ 'select',+ 'multiSelect',+ ] as const,+ operators: [+ 'iLike',+ 'notILike',+ 'eq',+ 'ne',+ 'inArray',+ 'notInArray',+ 'isEmpty',+ 'isNotEmpty',+ 'lt',+ 'lte',+ 'gt',+ 'gte',+ 'isBetween',+ 'isRelativeToToday',+ ] as const,+ joinOperators: ['and', 'or'] as const,+};diff --git a/apps/start/src/components/ui/data-table/data-table-date-filter.tsx b/apps/start/src/components/ui/data-table/data-table-date-filter.tsxnew file mode 100644index 000000000..678fcef67--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-date-filter.tsx@@ -0,0 +1,224 @@+'use client';++import type { Column } from '@tanstack/react-table';+import { CalendarIcon, XCircle, XCircleIcon } from 'lucide-react';+import * as React from 'react';+import type { DateRange } from 'react-day-picker';++import { Button } from '@/components/ui/button';+import { Calendar } from '@/components/ui/calendar';+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from '@/components/ui/popover';+import { Separator } from '@/components/ui/separator';+import { formatDate } from '@/utils/date';++type DateSelection = Date[] | DateRange;++function getIsDateRange(value: DateSelection): value is DateRange {+ return value && typeof value === 'object' && !Array.isArray(value);+}++function parseAsDate(timestamp: number | string | undefined): Date | undefined {+ if (!timestamp) return undefined;+ const numericTimestamp =+ typeof timestamp === 'string' ? Number(timestamp) : timestamp;+ const date = new Date(numericTimestamp);+ return !Number.isNaN(date.getTime()) ? date : undefined;+}++function parseColumnFilterValue(value: unknown) {+ if (value === null || value === undefined) {+ return [];+ }++ if (Array.isArray(value)) {+ return value.map((item) => {+ if (typeof item === 'number' || typeof item === 'string') {+ return item;+ }+ return undefined;+ });+ }++ if (typeof value === 'string' || typeof value === 'number') {+ return [value];+ }++ return [];+}++interface DataTableDateFilterProps<TData> {+ column: Column<TData, unknown>;+ title?: string;+ multiple?: boolean;+}++export function DataTableDateFilter<TData>({+ column,+ title,+ multiple,+}: DataTableDateFilterProps<TData>) {+ const columnFilterValue = column.getFilterValue();++ const selectedDates = React.useMemo<DateSelection>(() => {+ if (!columnFilterValue) {+ return multiple ? { from: undefined, to: undefined } : [];+ }++ if (multiple) {+ const timestamps = parseColumnFilterValue(columnFilterValue);+ return {+ from: parseAsDate(timestamps[0]),+ to: parseAsDate(timestamps[1]),+ };+ }++ const timestamps = parseColumnFilterValue(columnFilterValue);+ const date = parseAsDate(timestamps[0]);+ return date ? [date] : [];+ }, [columnFilterValue, multiple]);++ const onSelect = React.useCallback(+ (date: Date | DateRange | undefined) => {+ if (!date) {+ column.setFilterValue(undefined);+ return;+ }++ if (multiple && !('getTime' in date)) {+ const from = date.from?.getTime();+ const to = date.to?.getTime();+ column.setFilterValue(from || to ? [from, to] : undefined);+ } else if (!multiple && 'getTime' in date) {+ column.setFilterValue(date.getTime());+ }+ },+ [column, multiple],+ );++ const onReset = React.useCallback(+ (event: React.MouseEvent | React.KeyboardEvent) => {+ event.stopPropagation();+ column.setFilterValue(undefined);+ },+ [column],+ );++ const hasValue = React.useMemo(() => {+ if (multiple) {+ if (!getIsDateRange(selectedDates)) return false;+ return selectedDates.from || selectedDates.to;+ }+ if (!Array.isArray(selectedDates)) return false;+ return selectedDates.length > 0;+ }, [multiple, selectedDates]);++ const formatDateRange = React.useCallback((range: DateRange) => {+ if (!range.from && !range.to) return '';+ if (range.from && range.to) {+ return `${formatDate(range.from)} - ${formatDate(range.to)}`;+ }+ return formatDate(range.from ?? range.to ?? new Date());+ }, []);++ const label = React.useMemo(() => {+ if (multiple) {+ if (!getIsDateRange(selectedDates)) return null;++ const hasSelectedDates = selectedDates.from || selectedDates.to;+ const dateText = hasSelectedDates+ ? formatDateRange(selectedDates)+ : 'Select date range';++ return (+ <span className="flex items-center gap-2">+ <span>{title}</span>+ {hasSelectedDates && (+ <>+ <Separator+ orientation="vertical"+ className="mx-0.5 data-[orientation=vertical]:h-4"+ />+ <span>{dateText}</span>+ </>+ )}+ </span>+ );+ }++ if (getIsDateRange(selectedDates)) return null;++ const hasSelectedDate = selectedDates.length > 0;+ const dateText = hasSelectedDate+ ? formatDate(selectedDates[0])+ : 'Select date';++ return (+ <span className="flex items-center gap-2">+ <span>{title}</span>+ {hasSelectedDate && (+ <>+ <Separator+ orientation="vertical"+ className="mx-0.5 data-[orientation=vertical]:h-4"+ />+ <span>{dateText}</span>+ </>+ )}+ </span>+ );+ }, [selectedDates, multiple, formatDateRange, title]);++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button variant="outline" size="sm" className="border-dashed">+ {hasValue ? (+ <div+ onKeyDown={onReset}+ role="button"+ aria-label={`Clear ${title} filter`}+ tabIndex={0}+ onClick={onReset}+ className="rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ >+ <XCircleIcon className="size-4 mr-2" />+ </div>+ ) : (+ <CalendarIcon className="size-4 mr-2" />+ )}+ {label}+ </Button>+ </PopoverTrigger>+ <PopoverContent+ className="w-auto p-0 rounded-lg overflow-hidden"+ align="start"+ >+ {multiple ? (+ <Calendar+ initialFocus+ mode="range"+ selected={+ getIsDateRange(selectedDates)+ ? selectedDates+ : { from: undefined, to: undefined }+ }+ onSelect={onSelect}+ />+ ) : (+ <Calendar+ initialFocus+ mode="single"+ selected={+ !getIsDateRange(selectedDates) ? selectedDates[0] : undefined+ }+ onSelect={onSelect}+ />+ )}+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/start/src/components/ui/data-table/data-table-faceted-filter.tsx b/apps/start/src/components/ui/data-table/data-table-faceted-filter.tsxnew file mode 100644index 000000000..24724a769--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-faceted-filter.tsx@@ -0,0 +1,193 @@+'use client';++import type { Column } from '@tanstack/react-table';+import {+ Check,+ CheckIcon,+ PlusCircle,+ PlusCircleIcon,+ XCircle,+ XCircleIcon,+} from 'lucide-react';+import * as React from 'react';++import { Badge } from '@/components/ui/badge';+import { Button } from '@/components/ui/button';+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+ CommandSeparator,+} from '@/components/ui/command';+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from '@/components/ui/popover';+import { Separator } from '@/components/ui/separator';+import { cn } from '@/lib/utils';+import type { Option } from '@/types/data-table';++interface DataTableFacetedFilterProps<TData, TValue> {+ column?: Column<TData, TValue>;+ title?: string;+ options: Option[];+ multiple?: boolean;+}++export function DataTableFacetedFilter<TData, TValue>({+ column,+ title,+ options,+ multiple,+}: DataTableFacetedFilterProps<TData, TValue>) {+ const [open, setOpen] = React.useState(false);++ const columnFilterValue = column?.getFilterValue();+ const selectedValues = new Set(+ Array.isArray(columnFilterValue) ? columnFilterValue : [],+ );++ const onItemSelect = React.useCallback(+ (option: Option, isSelected: boolean) => {+ if (!column) return;++ if (multiple) {+ const newSelectedValues = new Set(selectedValues);+ if (isSelected) {+ newSelectedValues.delete(option.value);+ } else {+ newSelectedValues.add(option.value);+ }+ const filterValues = Array.from(newSelectedValues);+ column.setFilterValue(filterValues.length ? filterValues : undefined);+ } else {+ column.setFilterValue(isSelected ? undefined : [option.value]);+ setOpen(false);+ }+ },+ [column, multiple, selectedValues],+ );++ const onReset = React.useCallback(+ (event?: React.MouseEvent | React.KeyboardEvent) => {+ event?.stopPropagation();+ column?.setFilterValue(undefined);+ },+ [column],+ );++ return (+ <Popover open={open} onOpenChange={setOpen}>+ <PopoverTrigger asChild>+ <Button variant="outline" size="sm" className="border-dashed">+ {selectedValues?.size > 0 ? (+ <div+ role="button"+ aria-label={`Clear ${title} filter`}+ tabIndex={0}+ onClick={onReset}+ onKeyDown={onReset}+ className="rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ >+ <XCircleIcon className="size-4 mr-2" />+ </div>+ ) : (+ <PlusCircleIcon className="size-4 mr-2" />+ )}+ {title}+ {selectedValues?.size > 0 && (+ <>+ <Separator+ orientation="vertical"+ className="mx-0.5 data-[orientation=vertical]:h-4"+ />+ <Badge+ variant="secondary"+ className="rounded-sm px-1 font-normal lg:hidden"+ >+ {selectedValues.size}+ </Badge>+ <div className="hidden items-center gap-1 lg:flex">+ {selectedValues.size > 2 ? (+ <Badge+ variant="secondary"+ className="rounded-sm px-1 font-normal"+ >+ {selectedValues.size} selected+ </Badge>+ ) : (+ options+ .filter((option) => selectedValues.has(option.value))+ .map((option) => (+ <Badge+ variant="secondary"+ key={option.value}+ className="rounded-sm px-1 font-normal"+ >+ {option.label}+ </Badge>+ ))+ )}+ </div>+ </>+ )}+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-[12.5rem] p-0" align="start">+ <Command>+ <CommandInput placeholder={title} />+ <CommandList className="max-h-full">+ <CommandEmpty>No results found.</CommandEmpty>+ <CommandGroup className="max-h-[18.75rem] overflow-y-auto overflow-x-hidden">+ {options.map((option) => {+ const isSelected = selectedValues.has(option.value);++ return (+ <CommandItem+ key={option.value}+ onSelect={() => onItemSelect(option, isSelected)}+ >+ <div+ className={cn(+ 'flex size-4 items-center justify-center rounded-sm border border-primary',+ isSelected+ ? 'bg-primary'+ : 'opacity-50 [&_svg]:invisible',+ )}+ >+ <CheckIcon className="size-4" />+ </div>+ {option.icon && <option.icon className="size-4 mr-2" />}+ <span className="truncate">{option.label}</span>+ {option.count && (+ <span className="ml-auto font-mono text-xs">+ {option.count}+ </span>+ )}+ </CommandItem>+ );+ })}+ </CommandGroup>+ {selectedValues.size > 0 && (+ <>+ <CommandSeparator />+ <CommandGroup>+ <CommandItem+ onSelect={() => onReset()}+ className="justify-center text-center"+ >+ Clear filters+ </CommandItem>+ </CommandGroup>+ </>+ )}+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/start/src/components/ui/data-table/data-table-helpers.tsx b/apps/start/src/components/ui/data-table/data-table-helpers.tsxnew file mode 100644index 000000000..0d81c4df2--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-helpers.tsx@@ -0,0 +1,77 @@+import type { Column, ColumnDef, Row } from '@tanstack/react-table';+import { MoreHorizontalIcon } from 'lucide-react';+import { Button } from '../button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuTrigger,+} from '../dropdown-menu';+import { DataTableColumnHeader } from './data-table-column-header';++export function createHeaderColumn<TData>(+ title: string,+): ColumnDef<TData>['header'] {+ return ({ column }) => (+ <DataTableColumnHeader column={column} title={title} />+ );+}++export function createActionColumn<TData>(+ Component: ({ row }: { row: Row<TData> }) => React.ReactNode,+): ColumnDef<TData> {+ return {+ id: 'actions',+ header: '',+ enablePinning: true,+ meta: {+ pinned: 'right',+ },+ size: 40,+ cell: ({ row }) => {+ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button icon={MoreHorizontalIcon} size="icon" variant={'ghost'} />+ </DropdownMenuTrigger>+ <DropdownMenuContent side="bottom" align="end">+ <Component row={row} />+ </DropdownMenuContent>+ </DropdownMenu>+ );+ },+ };+}++export function getCommonPinningStyles<TData>({+ column,+}: {+ column: Column<TData>;+}): React.CSSProperties {+ const pinnedColumnWidth = 40;+ const isPinned = column.getIsPinned();+ const isLastLeftPinnedColumn =+ isPinned === 'left' && column.getIsLastColumn('left');+ const isFirstRightPinnedColumn =+ isPinned === 'right' && column.getIsFirstColumn('right');++ return {+ boxShadow: isLastLeftPinnedColumn+ ? '-4px 0 4px -4px var(--border) inset'+ : isFirstRightPinnedColumn+ ? '4px 0 4px -4px var(--border) inset'+ : undefined,+ textAlign: isPinned && isFirstRightPinnedColumn ? 'right' : undefined,+ left: isPinned === 'left' ? `${column.getStart('left')}px` : undefined,+ right: isPinned === 'right' ? `${column.getAfter('right')}px` : undefined,+ opacity: isPinned ? 0.97 : 1,+ position: isPinned ? 'sticky' : 'relative',+ zIndex: isPinned ? 1 : 0,+ // Force fixed width for pinned columns, let others auto-size+ width: isPinned ? `${pinnedColumnWidth}px` : 'auto',+ minWidth: isPinned ? `${pinnedColumnWidth}px` : undefined,+ maxWidth: isPinned ? `${pinnedColumnWidth}px` : undefined,+ flexShrink: isPinned ? 0 : undefined,+ flexGrow: isPinned ? 0 : undefined,+ padding: isPinned ? 4 : undefined,+ };+}diff --git a/apps/start/src/components/ui/data-table/data-table-hooks.tsx b/apps/start/src/components/ui/data-table/data-table-hooks.tsxnew file mode 100644index 000000000..fa9944a70--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-hooks.tsx@@ -0,0 +1,34 @@+import type {+ ColumnDef,+ PaginationState,+ VisibilityState,+} from '@tanstack/react-table';+import { parseAsInteger, useQueryState } from 'nuqs';+import { useState } from 'react';++export const useDataTablePagination = (pageSize = 10) => {+ const [page, setPage] = useQueryState(+ 'page',+ parseAsInteger.withDefault(1).withOptions({+ clearOnDefault: true,+ history: 'push',+ }),+ );+ const state: PaginationState = {+ pageIndex: page - 1,+ pageSize: pageSize,+ };+ return { page, setPage, state };+};++export const useDataTableColumnVisibility = <TData,>(+ columns: ColumnDef<TData>[],+) => {+ const [columnVisibility, setColumnVisibility] = useState<VisibilityState>(+ columns.reduce((acc, column) => {+ acc[column.id!] = column.meta?.hidden ?? false;+ return acc;+ }, {} as VisibilityState),+ );+ return { columnVisibility, setColumnVisibility };+};diff --git a/apps/start/src/components/ui/data-table/data-table-parsers.ts b/apps/start/src/components/ui/data-table/data-table-parsers.tsnew file mode 100644index 000000000..16fcb52ea--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-parsers.ts@@ -0,0 +1,99 @@+import { createParser } from 'nuqs/server';+import { z } from 'zod';++import { dataTableConfig } from '@/components/ui/data-table/data-table-config';++import type {+ ExtendedColumnFilter,+ ExtendedColumnSort,+} from '@/types/data-table';++const sortingItemSchema = z.object({+ id: z.string(),+ desc: z.boolean(),+});++export const getSortingStateParser = <TData>(+ columnIds?: string[] | Set<string>,+) => {+ const validKeys = columnIds+ ? columnIds instanceof Set+ ? columnIds+ : new Set(columnIds)+ : null;++ return createParser({+ parse: (value) => {+ try {+ const parsed = JSON.parse(value);+ const result = z.array(sortingItemSchema).safeParse(parsed);++ if (!result.success) return null;++ if (validKeys && result.data.some((item) => !validKeys.has(item.id))) {+ return null;+ }++ return result.data as ExtendedColumnSort<TData>[];+ } catch {+ return null;+ }+ },+ serialize: (value) => JSON.stringify(value),+ eq: (a, b) =>+ a.length === b.length &&+ a.every(+ (item, index) =>+ item.id === b[index]?.id && item.desc === b[index]?.desc,+ ),+ });+};++const filterItemSchema = z.object({+ id: z.string(),+ value: z.union([z.string(), z.array(z.string())]),+ variant: z.enum(dataTableConfig.filterVariants),+ operator: z.enum(dataTableConfig.operators),+ filterId: z.string(),+});++export type FilterItemSchema = z.infer<typeof filterItemSchema>;++export const getFiltersStateParser = <TData>(+ columnIds?: string[] | Set<string>,+) => {+ const validKeys = columnIds+ ? columnIds instanceof Set+ ? columnIds+ : new Set(columnIds)+ : null;++ return createParser({+ parse: (value) => {+ try {+ const parsed = JSON.parse(value);+ const result = z.array(filterItemSchema).safeParse(parsed);++ if (!result.success) return null;++ if (validKeys && result.data.some((item) => !validKeys.has(item.id))) {+ return null;+ }++ return result.data as ExtendedColumnFilter<TData>[];+ } catch {+ return null;+ }+ },+ serialize: (value) => JSON.stringify(value),+ eq: (a, b) =>+ a.length === b.length &&+ a.every(+ (filter, index) =>+ filter.id === b[index]?.id &&+ filter.value === b[index]?.value &&+ filter.variant === b[index]?.variant &&+ filter.operator === b[index]?.operator,+ ),+ });+};diff --git a/apps/start/src/components/ui/data-table/data-table-slider-filter.tsx b/apps/start/src/components/ui/data-table/data-table-slider-filter.tsxnew file mode 100644index 000000000..e85951c92--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-slider-filter.tsx@@ -0,0 +1,239 @@+'use client';++import { Button } from '@/components/ui/button';+import { Input } from '@/components/ui/input';+import { Label } from '@/components/ui/label';+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from '@/components/ui/popover';+import { Separator } from '@/components/ui/separator';+import { Slider } from '@/components/ui/slider';+import { cn } from '@/lib/utils';+import type { Column } from '@tanstack/react-table';+import { PlusCircle, XCircle } from 'lucide-react';+import * as React from 'react';++interface Range {+ min: number;+ max: number;+}++type RangeValue = [number, number];++function getIsValidRange(value: unknown): value is RangeValue {+ return (+ Array.isArray(value) &&+ value.length === 2 &&+ typeof value[0] === 'number' &&+ typeof value[1] === 'number'+ );+}++interface DataTableSliderFilterProps<TData> {+ column: Column<TData, unknown>;+ title?: string;+}++export function DataTableSliderFilter<TData>({+ column,+ title,+}: DataTableSliderFilterProps<TData>) {+ const id = React.useId();++ const columnFilterValue = getIsValidRange(column.getFilterValue())+ ? (column.getFilterValue() as RangeValue)+ : undefined;++ const defaultRange = column.columnDef.meta?.range;+ const unit = column.columnDef.meta?.unit;++ const { min, max, step } = React.useMemo<Range & { step: number }>(() => {+ let minValue = 0;+ let maxValue = 100;++ if (defaultRange && getIsValidRange(defaultRange)) {+ [minValue, maxValue] = defaultRange;+ } else {+ const values = column.getFacetedMinMaxValues();+ if (values && Array.isArray(values) && values.length === 2) {+ const [facetMinValue, facetMaxValue] = values;+ if (+ typeof facetMinValue === 'number' &&+ typeof facetMaxValue === 'number'+ ) {+ minValue = facetMinValue;+ maxValue = facetMaxValue;+ }+ }+ }++ const rangeSize = maxValue - minValue;+ const step =+ rangeSize <= 20+ ? 1+ : rangeSize <= 100+ ? Math.ceil(rangeSize / 20)+ : Math.ceil(rangeSize / 50);++ return { min: minValue, max: maxValue, step };+ }, [column, defaultRange]);++ const range = React.useMemo((): RangeValue => {+ return columnFilterValue ?? [min, max];+ }, [columnFilterValue, min, max]);++ const formatValue = React.useCallback((value: number) => {+ return value.toLocaleString(undefined, { maximumFractionDigits: 0 });+ }, []);++ const onFromInputChange = React.useCallback(+ (event: React.ChangeEvent<HTMLInputElement>) => {+ const numValue = Number(event.target.value);+ if (!Number.isNaN(numValue) && numValue >= min && numValue <= range[1]) {+ column.setFilterValue([numValue, range[1]]);+ }+ },+ [column, min, range],+ );++ const onToInputChange = React.useCallback(+ (event: React.ChangeEvent<HTMLInputElement>) => {+ const numValue = Number(event.target.value);+ if (!Number.isNaN(numValue) && numValue <= max && numValue >= range[0]) {+ column.setFilterValue([range[0], numValue]);+ }+ },+ [column, max, range],+ );++ const onSliderValueChange = React.useCallback(+ (value: RangeValue) => {+ if (Array.isArray(value) && value.length === 2) {+ column.setFilterValue(value);+ }+ },+ [column],+ );++ const onReset = React.useCallback(+ (event: React.MouseEvent) => {+ if (event.target instanceof HTMLDivElement) {+ event.stopPropagation();+ }+ column.setFilterValue(undefined);+ },+ [column],+ );++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button variant="outline" size="sm" className="border-dashed">+ {columnFilterValue ? (+ <div+ role="button"+ aria-label={`Clear ${title} filter`}+ tabIndex={0}+ className="rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ onClick={onReset}+ >+ <XCircle />+ </div>+ ) : (+ <PlusCircle />+ )}+ <span>{title}</span>+ {columnFilterValue ? (+ <>+ <Separator+ orientation="vertical"+ className="mx-0.5 data-[orientation=vertical]:h-4"+ />+ {formatValue(columnFilterValue[0])} -{' '}+ {formatValue(columnFilterValue[1])}+ {unit ? ` ${unit}` : ''}+ </>+ ) : null}+ </Button>+ </PopoverTrigger>+ <PopoverContent align="start" className="flex w-auto flex-col gap-4">+ <div className="flex flex-col gap-3">+ <p className="font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">+ {title}+ </p>+ <div className="flex items-center gap-4">+ <Label htmlFor={`${id}-from`} className="sr-only">+ From+ </Label>+ <div className="relative">+ <Input+ id={`${id}-from`}+ type="number"+ aria-valuemin={min}+ aria-valuemax={max}+ inputMode="numeric"+ pattern="[0-9]*"+ placeholder={min.toString()}+ min={min}+ max={max}+ value={range[0]?.toString()}+ onChange={onFromInputChange}+ className={cn('h-8 w-24', unit && 'pr-8')}+ />+ {unit && (+ <span className="absolute top-0 right-0 bottom-0 flex items-center rounded-r-md bg-accent px-2 text-muted-foreground text-sm">+ {unit}+ </span>+ )}+ </div>+ <Label htmlFor={`${id}-to`} className="sr-only">+ to+ </Label>+ <div className="relative">+ <Input+ id={`${id}-to`}+ type="number"+ aria-valuemin={min}+ aria-valuemax={max}+ inputMode="numeric"+ pattern="[0-9]*"+ placeholder={max.toString()}+ min={min}+ max={max}+ value={range[1]?.toString()}+ onChange={onToInputChange}+ className={cn('h-8 w-24', unit && 'pr-8')}+ />+ {unit && (+ <span className="absolute top-0 right-0 bottom-0 flex items-center rounded-r-md bg-accent px-2 text-muted-foreground text-sm">+ {unit}+ </span>+ )}+ </div>+ </div>+ <Label htmlFor={`${id}-slider`} className="sr-only">+ {title} slider+ </Label>+ <Slider+ id={`${id}-slider`}+ min={min}+ max={max}+ step={step}+ value={range}+ onValueChange={onSliderValueChange}+ />+ </div>+ <Button+ aria-label={`Clear ${title} filter`}+ variant="outline"+ size="sm"+ onClick={onReset}+ >+ Clear+ </Button>+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/start/src/components/ui/data-table/data-table-toolbar.tsx b/apps/start/src/components/ui/data-table/data-table-toolbar.tsxnew file mode 100644index 000000000..c1bad4054--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-toolbar.tsx@@ -0,0 +1,237 @@+'use client';++import type { Column, Table } from '@tanstack/react-table';+import { SearchIcon, X, XIcon } from 'lucide-react';+import * as React from 'react';++import { Button } from '@/components/ui/button';+import { DataTableDateFilter } from '@/components/ui/data-table/data-table-date-filter';+import { DataTableFacetedFilter } from '@/components/ui/data-table/data-table-faceted-filter';+import { DataTableSliderFilter } from '@/components/ui/data-table/data-table-slider-filter';+import { DataTableViewOptions } from '@/components/ui/data-table/data-table-view-options';+import { Input } from '@/components/ui/input';+import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { cn } from '@/lib/utils';++interface DataTableToolbarProps<TData> extends React.ComponentProps<'div'> {+ table: Table<TData>;+ globalSearchKey?: string;+ globalSearchPlaceholder?: string;+}++export function DataTableToolbarContainer({+ className,+ ...props+}: React.ComponentProps<'div'>) {+ return (+ <div+ role="toolbar"+ aria-orientation="horizontal"+ className={cn(+ 'flex flex-1 items-start justify-between gap-2 mb-2',+ className,+ )}+ {...props}+ />+ );+}++export function DataTableToolbar<TData>({+ table,+ children,+ className,+ globalSearchKey,+ globalSearchPlaceholder,+ ...props+}: DataTableToolbarProps<TData>) {+ const { search, setSearch } = useSearchQueryState({+ searchKey: globalSearchKey,+ });+ const isFiltered = table.getState().columnFilters.length > 0;++ const columns = React.useMemo(+ () => table.getAllColumns().filter((column) => column.getCanFilter()),+ [table],+ );++ const onReset = React.useCallback(() => {+ table.resetColumnFilters();+ }, [table]);++ return (+ <DataTableToolbarContainer className={className} {...props}>+ <div className="flex flex-1 flex-wrap items-center gap-2">+ {globalSearchKey && (+ <AnimatedSearchInput+ placeholder={globalSearchPlaceholder ?? 'Search'}+ value={search}+ onChange={setSearch}+ />+ )}+ {columns.map((column) => (+ <DataTableToolbarFilter key={column.id} column={column} />+ ))}+ {isFiltered && (+ <Button+ aria-label="Reset filters"+ variant="outline"+ size="sm"+ className="border-dashed"+ onClick={onReset}+ >+ <XIcon className="size-4 mr-2" />+ Reset+ </Button>+ )}+ </div>+ <div className="flex items-center gap-2">+ {children}+ <DataTableViewOptions table={table} />+ </div>+ </DataTableToolbarContainer>+ );+}+interface DataTableToolbarFilterProps<TData> {+ column: Column<TData>;+}++function DataTableToolbarFilter<TData>({+ column,+}: DataTableToolbarFilterProps<TData>) {+ {+ const columnMeta = column.columnDef.meta;++ const getTitle = React.useCallback(() => {+ return columnMeta?.label ?? columnMeta?.placeholder ?? column.id;+ }, [columnMeta, column]);++ const onFilterRender = React.useCallback(() => {+ if (!columnMeta?.variant) return null;++ switch (columnMeta.variant) {+ case 'text':+ return (+ <AnimatedSearchInput+ placeholder={columnMeta.placeholder ?? columnMeta.label}+ value={(column.getFilterValue() as string) ?? ''}+ onChange={(value) => column.setFilterValue(value)}+ />+ );++ case 'number':+ return (+ <div className="relative">+ <Input+ type="number"+ inputMode="numeric"+ placeholder={getTitle()}+ value={(column.getFilterValue() as string) ?? ''}+ onChange={(event) => column.setFilterValue(event.target.value)}+ className={cn('h-8 w-[120px]', columnMeta.unit && 'pr-8')}+ />+ {columnMeta.unit && (+ <span className="absolute top-0 right-0 bottom-0 flex items-center rounded-r-md bg-accent px-2 text-muted-foreground text-sm">+ {columnMeta.unit}+ </span>+ )}+ </div>+ );++ case 'range':+ return <DataTableSliderFilter column={column} title={getTitle()} />;++ case 'date':+ case 'dateRange':+ return (+ <DataTableDateFilter+ column={column}+ title={getTitle()}+ multiple={columnMeta.variant === 'dateRange'}+ />+ );++ case 'select':+ case 'multiSelect':+ return (+ <DataTableFacetedFilter+ column={column}+ title={getTitle()}+ options={columnMeta.options ?? []}+ multiple={columnMeta.variant === 'multiSelect'}+ />+ );++ default:+ return null;+ }+ }, [column, columnMeta]);++ return onFilterRender();+ }+}++interface AnimatedSearchInputProps {+ placeholder?: string;+ value: string;+ onChange: (value: string) => void;+}++export function AnimatedSearchInput({+ placeholder,+ value,+ onChange,+}: AnimatedSearchInputProps) {+ const [isFocused, setIsFocused] = React.useState(false);+ const inputRef = React.useRef<HTMLInputElement | null>(null);+ const isExpanded = isFocused || (value?.length ?? 0) > 0;++ const handleClear = React.useCallback(() => {+ onChange('');+ // Re-focus after clearing+ requestAnimationFrame(() => inputRef.current?.focus());+ }, [onChange]);++ return (+ <div+ className={cn(+ 'relative flex h-8 items-center rounded-md border border-input bg-background text-sm transition-[width] duration-300 ease-out',+ 'focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background',+ isExpanded ? 'w-56 lg:w-72' : 'w-32',+ )}+ role="search"+ aria-label={placeholder ?? 'Search'}+ >+ <SearchIcon className="size-4 ml-2 shrink-0" />++ <Input+ ref={inputRef}+ value={value}+ onChange={(e) => onChange(e.target.value)}+ placeholder={placeholder}+ className={cn(+ 'absolute inset-0 -top-px h-8 w-full rounded-md border-0 bg-transparent pl-7 pr-7 shadow-none',+ 'focus-visible:ring-0 focus-visible:ring-offset-0',+ 'transition-opacity duration-200',+ 'font-medium text-[14px] truncate align-baseline',+ )}+ onFocus={() => setIsFocused(true)}+ onBlur={() => setIsFocused(false)}+ />++ {isExpanded && value && (+ <button+ type="button"+ aria-label="Clear search"+ className="absolute right-1 flex size-6 items-center justify-center rounded-sm text-muted-foreground hover:bg-accent hover:text-foreground"+ onClick={(e) => {+ e.preventDefault();+ e.stopPropagation();+ handleClear();+ }}+ >+ <X className="size-4" />+ </button>+ )}+ </div>+ );+}diff --git a/apps/start/src/components/ui/data-table/data-table-view-options.tsx b/apps/start/src/components/ui/data-table/data-table-view-options.tsxnew file mode 100644index 000000000..f807a62a1--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table-view-options.tsx@@ -0,0 +1,87 @@+'use client';++import { Button } from '@/components/ui/button';+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from '@/components/ui/command';+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from '@/components/ui/popover';+import { cn } from '@/lib/utils';+import type { Table } from '@tanstack/react-table';+import { Check, ChevronsUpDown, Settings2Icon } from 'lucide-react';+import * as React from 'react';++interface DataTableViewOptionsProps<TData> {+ table: Table<TData>;+}++export function DataTableViewOptions<TData>({+ table,+}: DataTableViewOptionsProps<TData>) {+ const columns = React.useMemo(+ () =>+ table+ .getAllColumns()+ .filter(+ (column) =>+ typeof column.accessorFn !== 'undefined' && column.getCanHide(),+ ),+ [table],+ );++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button+ aria-label="Toggle columns"+ role="combobox"+ variant="outline"+ size="sm"+ className="ml-auto hidden h-8 lg:flex"+ >+ <Settings2Icon className="size-4 mr-2" />+ View+ <ChevronsUpDown className="opacity-50 ml-2 size-4" />+ </Button>+ </PopoverTrigger>+ <PopoverContent align="end" className="w-44 p-0">+ <Command>+ <CommandInput placeholder="Search columns..." />+ <CommandList>+ <CommandEmpty>No columns found.</CommandEmpty>+ <CommandGroup>+ {columns.map((column) => (+ <CommandItem+ key={column.id}+ onSelect={() =>+ column.toggleVisibility(!column.getIsVisible())+ }+ >+ <span className="truncate">+ {typeof column.columnDef.header === 'string'+ ? column.columnDef.header+ : (column.columnDef.meta?.label ?? column.id)}+ </span>+ <Check+ className={cn(+ 'ml-auto size-4 shrink-0',+ column.getIsVisible() ? 'opacity-100' : 'opacity-0',+ )}+ />+ </CommandItem>+ ))}+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/start/src/components/ui/data-table/data-table.tsx b/apps/start/src/components/ui/data-table/data-table.tsxnew file mode 100644index 000000000..6cf1e7f59--- /dev/null+++ b/apps/start/src/components/ui/data-table/data-table.tsx@@ -0,0 +1,138 @@+import { FullPageEmptyState } from '@/components/full-page-empty-state';+import { FloatingPagination } from '@/components/pagination-floating';+import { Skeleton } from '@/components/skeleton';+import { cn } from '@/utils/cn';+import type { Table as ITable } from '@tanstack/react-table';+import { flexRender } from '@tanstack/react-table';+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from '../table';+import { getCommonPinningStyles } from './data-table-helpers';++export interface DataTableProps<TData> {+ table: ITable<TData>;+ className?: string;+ loading?: boolean;+ empty?: {+ title: string;+ description: string;+ };+}++declare module '@tanstack/react-table' {+ interface ColumnMeta<TData, TValue> {+ pinned?: 'left' | 'right';+ bold?: boolean;+ }+}++export function DataTable<TData>({+ table,+ loading,+ className,+ empty = {+ title: 'No data',+ description: 'We could not find any data here yet',+ },+ ...props+}: DataTableProps<TData>) {+ return (+ <div+ className={cn('flex w-full flex-col gap-2.5 overflow-auto', className)}+ {...props}+ >+ <div className="overflow-hidden rounded-md border">+ <Table>+ <TableHeader>+ {table.getHeaderGroups().map((headerGroup) => (+ <TableRow key={headerGroup.id}>+ {headerGroup.headers.map((header) => (+ <TableHead+ key={header.id}+ colSpan={header.colSpan}+ style={{+ ...getCommonPinningStyles({+ column: header.column,+ }),+ }}+ >+ {header.isPlaceholder+ ? null+ : flexRender(+ header.column.columnDef.header,+ header.getContext(),+ )}+ </TableHead>+ ))}+ </TableRow>+ ))}+ </TableHeader>+ <TableBody>+ {table.getRowModel().rows?.length ? (+ table.getRowModel().rows.map((row) => (+ <TableRow+ key={row.id}+ data-state={row.getIsSelected() && 'selected'}+ >+ {row.getVisibleCells().map((cell) => (+ <TableCell+ key={cell.id}+ style={{+ ...getCommonPinningStyles({+ column: cell.column,+ }),+ }}+ className={cn(+ cell.column.columnDef.meta?.bold && 'font-medium',+ )}+ >+ {loading ? (+ <Skeleton className="h-4 w-3/5" />+ ) : (+ flexRender(+ cell.column.columnDef.cell,+ cell.getContext(),+ )+ )}+ </TableCell>+ ))}+ </TableRow>+ ))+ ) : (+ <TableRow>+ <TableCell+ colSpan={table.getAllColumns().length}+ className="h-24 text-center"+ >+ <FullPageEmptyState+ title={empty.title}+ description={empty.description}+ />+ </TableCell>+ </TableRow>+ )}+ </TableBody>+ </Table>+ </div>+ {table.getPageCount() > 1 && (+ <>+ <FloatingPagination+ canNextPage={table.getCanNextPage()}+ canPreviousPage={table.getCanPreviousPage()}+ pageIndex={table.getState().pagination.pageIndex}+ nextPage={table.nextPage}+ previousPage={table.previousPage}+ firstPage={table.firstPage}+ lastPage={table.lastPage}+ />+ <div className="h-20" />+ </>+ )}+ </div>+ );+}diff --git a/apps/start/src/components/ui/data-table/use-table.tsx b/apps/start/src/components/ui/data-table/use-table.tsxnew file mode 100644index 000000000..8e453e650--- /dev/null+++ b/apps/start/src/components/ui/data-table/use-table.tsx@@ -0,0 +1,227 @@+import {+ type ColumnDef,+ type ColumnPinningState,+ type Updater,+ getCoreRowModel,+ getFilteredRowModel,+ getPaginationRowModel,+ getSortedRowModel,+ useReactTable,+} from '@tanstack/react-table';+import type {+ ColumnFiltersState,+ PaginationState,+} from '@tanstack/react-table';+import type { Row } from '@tanstack/react-table';+import {+ type Options,+ type Parser,+ parseAsArrayOf,+ parseAsInteger,+ parseAsString,+ useQueryState,+ useQueryStates,+} from 'nuqs';+import React, { useMemo, useState } from 'react';++const nuqsOptions: Options = {+ shallow: true,+ history: 'push',+ clearOnDefault: true,+};++export function useTable<TData>({+ columns,+ pageSize,+ data,+ loading,+}: {+ columns: ColumnDef<TData>[];+ pageSize: number;+ data: TData[];+ loading: boolean;+}) {+ const [page, setPage] = useQueryState(+ 'page',+ parseAsInteger.withDefault(1).withOptions(nuqsOptions),+ );+ const [perPage, setPerPage] = useQueryState(+ 'perPage',+ parseAsInteger.withDefault(pageSize ?? 10).withOptions(nuqsOptions),+ );+ const pagination: PaginationState = {+ pageIndex: page - 1,+ pageSize: perPage,+ };++ const [columnPinning, setColumnPinning] = useState<ColumnPinningState>({+ left: [+ ...columns+ .filter((column) => column.meta?.pinned === 'left')+ .map((column) => column.id!),+ ],+ right: columns+ .filter((column) => column.meta?.pinned === 'right')+ .map((column) => column.id!),+ });++ // Build per-key query parsers based on column metadata+ const filterParsers = useMemo(() => {+ return columns.reduce<+ Record<string, Parser<string> | Parser<string[]> | Parser<number[]>>+ >((acc, column) => {+ const columnId = (column.id ?? (column as any).accessorKey)?.toString();+ if (!columnId) return acc;+ const variant = column.meta?.variant;++ switch (variant) {+ case 'text':+ case 'number':+ acc[columnId] = parseAsString.withDefault('');+ break;+ case 'select':+ acc[columnId] = parseAsString.withDefault('');+ break;+ case 'multiSelect':+ acc[columnId] = parseAsArrayOf(parseAsString).withDefault([]);+ break;+ case 'date':+ case 'dateRange':+ case 'range':+ acc[columnId] = parseAsArrayOf(parseAsInteger).withDefault([]);+ break;+ default:+ // Non-filterable or unspecified variant -> skip+ break;+ }++ return acc;+ }, {});+ }, [columns]);++ const [qsFilters, setQsFilters] = useQueryStates(filterParsers, nuqsOptions);++ const initialColumnFilters: ColumnFiltersState = useMemo(() => {+ return Object.entries(qsFilters).reduce<ColumnFiltersState>(+ (filters, [key, value]) => {+ if (value === null || value === undefined) return filters;+ if (Array.isArray(value)) {+ if (value.length > 0) filters.push({ id: key, value });+ } else if (value !== '') {+ filters.push({ id: key, value });+ }+ return filters;+ },+ [],+ );+ }, [qsFilters]);++ const [columnFilters, setColumnFilters] =+ useState<ColumnFiltersState>(initialColumnFilters);++ // Keep table filters in sync when the URL-driven query state changes+ // (e.g., back/forward navigation or external updates)+ React.useEffect(() => {+ setColumnFilters(initialColumnFilters);+ }, [initialColumnFilters]);+ const isWithinRange = (+ row: Row<TData>,+ columnId: string,+ value: [number, number],+ ) => {+ const cellDate = row.getValue<Date>(columnId);+ if (!cellDate) return false;++ const [rawStart, rawEnd] = value; // epoch ms from date inputs (local)++ // Normalize to full-day local bounds to avoid timezone truncation+ const startDate = new Date(rawStart ?? rawEnd);+ const endDate = new Date(rawEnd ?? rawStart);+ if (Number.isNaN(startDate.getTime()) || Number.isNaN(endDate.getTime())) {+ return false;+ }++ startDate.setHours(0, 0, 0, 0);+ endDate.setHours(23, 59, 59, 999);++ const time = new Date(cellDate).getTime();+ return time >= startDate.getTime() && time <= endDate.getTime();+ };++ const table = useReactTable({+ columns,+ data: useMemo(+ () =>+ loading ? ([{}, {}, {}, {}, {}, {}, {}, {}, {}, {}] as TData[]) : data,+ [loading, data],+ ),+ debugTable: false,+ filterFns: {+ isWithinRange,+ },+ getCoreRowModel: getCoreRowModel(),+ getSortedRowModel: getSortedRowModel(),+ getFilteredRowModel: getFilteredRowModel(),+ getPaginationRowModel: getPaginationRowModel(),+ autoResetPageIndex: false,+ onPaginationChange: (updaterOrValue: Updater<PaginationState>) => {+ const nextPagination =+ typeof updaterOrValue === 'function'+ ? updaterOrValue(pagination)+ : updaterOrValue;++ const nextPage = nextPagination.pageIndex + 1;+ const nextPerPage = nextPagination.pageSize;++ // Only write to the URL when values truly change to avoid reload loops+ if (nextPage !== page) void setPage(nextPage);+ if (nextPerPage !== perPage) void setPerPage(nextPerPage);+ },+ state: {+ pagination,+ columnPinning,+ columnFilters: loading ? [] : columnFilters,+ },+ onColumnPinningChange: setColumnPinning,+ onColumnFiltersChange: (updaterOrValue: Updater<ColumnFiltersState>) => {+ setColumnFilters((prev) => {+ const next =+ typeof updaterOrValue === 'function'+ ? updaterOrValue(prev)+ : updaterOrValue;++ const updates: Record<string, string | string[] | number[] | null> = {};+ const validKeys = new Set(Object.keys(filterParsers));++ for (const filter of next) {+ if (validKeys.has(filter.id)) {+ const value = filter.value as any;+ if (Array.isArray(value)) {+ const cleaned = value.filter(+ (v) => v !== undefined && v !== null,+ );+ updates[filter.id] = cleaned as any;+ } else {+ updates[filter.id] = value;+ }+ }+ }++ for (const prevFilter of prev) {+ if (+ !next.some((f) => f.id === prevFilter.id) &&+ validKeys.has(prevFilter.id)+ ) {+ updates[prevFilter.id] = null;+ }+ }++ void setPage(1);+ void setQsFilters(updates);+ return next;+ });+ },+ });++ return { table, loading };+}diff --git a/apps/start/src/components/ui/data-table/virtualized-data-table.tsx b/apps/start/src/components/ui/data-table/virtualized-data-table.tsxnew file mode 100644index 000000000..2666943df--- /dev/null+++ b/apps/start/src/components/ui/data-table/virtualized-data-table.tsx@@ -0,0 +1,181 @@+import { FloatingPagination } from '@/components/pagination-floating';+import { Skeleton } from '@/components/skeleton';+import { cn } from '@/utils/cn';+import type { Table as ITable, Row } from '@tanstack/react-table';+import { flexRender } from '@tanstack/react-table';+import {+ type VirtualItem,+ useWindowVirtualizer,+} from '@tanstack/react-virtual';+import throttle from 'lodash.throttle';+import { useEffect, useRef, useState } from 'react';+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from '../table';+import { DataTableColumnHeader } from './data-table-column-header';+import { getCommonPinningStyles } from './data-table-helpers';++export interface DataTableProps<TData> {+ table: ITable<TData>;+ className?: string;+ loading?: boolean;+}++declare module '@tanstack/react-table' {+ interface ColumnMeta<TData, TValue> {+ pinned?: 'left' | 'right';+ bold?: boolean;+ }+}++export function VirtualizedDataTable<TData>({+ table,+ loading,+ className,+ ...props+}: DataTableProps<TData>) {+ const parentRef = useRef<HTMLDivElement>(null);+ const [scrollMargin, setScrollMargin] = useState(0);+ const { rows } = table.getRowModel();++ const virtualizer = useWindowVirtualizer({+ count: rows.length,+ estimateSize: () => 60,+ scrollMargin,+ overscan: 10,+ });++ useEffect(() => {+ const updateScrollMargin = throttle(() => {+ if (parentRef.current) {+ setScrollMargin(+ parentRef.current.getBoundingClientRect().top + window.scrollY,+ );+ }+ }, 500);++ // Initial calculation+ updateScrollMargin();++ // Listen for scroll and resize events+ // window.addEventListener('scroll', updateScrollMargin);+ window.addEventListener('resize', updateScrollMargin);++ return () => {+ // window.removeEventListener('scroll', updateScrollMargin);+ window.removeEventListener('resize', updateScrollMargin);+ };+ }, []);++ const visibleRows = virtualizer.getVirtualItems();++ const renderTableRow = (row: Row<TData>, virtualRow: VirtualItem) => {+ return (+ <TableRow+ data-index={virtualRow.index}+ // ref={virtualizer.measureElement}+ className={cn('absolute top-0 left-0 w-full')}+ style={{+ transform: `translateY(${+ virtualRow.start - virtualizer.options.scrollMargin+ }px)`,+ height: `${virtualRow.size}px`,+ display: 'flex',+ }}+ key={row.id}+ >+ {row.getVisibleCells().map((cell) => (+ <TableCell+ key={cell.id}+ style={{+ ...getCommonPinningStyles({ column: cell.column }),+ width: cell.column.getSize(),+ minWidth: cell.column.getSize(),+ maxWidth: cell.column.getSize(),+ display: 'flex',+ alignItems: 'center',+ }}+ className={cn(cell.column.columnDef.meta?.bold && 'font-medium')}+ >+ {loading ? (+ <Skeleton className="h-4 w-3/5" />+ ) : (+ flexRender(cell.column.columnDef.cell, cell.getContext())+ )}+ </TableCell>+ ))}+ </TableRow>+ );+ };++ return (+ <div+ className={cn('flex w-full flex-col gap-2.5 overflow-auto', className)}+ {...props}+ >+ <div className="overflow-hidden rounded-md border">+ <Table>+ <TableHeader>+ {table.getHeaderGroups().map((headerGroup) => (+ <TableRow key={headerGroup.id} style={{ display: 'flex' }}>+ {headerGroup.headers.map((header) => (+ <TableHead+ key={header.id}+ colSpan={header.colSpan}+ style={{+ ...getCommonPinningStyles({ column: header.column }),+ width: header.column.getSize(),+ minWidth: header.column.getSize(),+ maxWidth: header.column.getSize(),+ display: 'flex',+ alignItems: 'center',+ }}+ >+ {header.isPlaceholder ? null : typeof header.column+ .columnDef.header === 'function' ? (+ flexRender(+ header.column.columnDef.header,+ header.getContext(),+ )+ ) : (+ <DataTableColumnHeader+ column={header.column}+ title={header.column.columnDef.header ?? ''}+ />+ )}+ </TableHead>+ ))}+ </TableRow>+ ))}+ </TableHeader>+ <TableBody+ style={{+ height: `${virtualizer.getTotalSize()}px`,+ width: '100%',+ position: 'relative',+ }}+ >+ {visibleRows.length ? (+ visibleRows.map((row) => renderTableRow(rows[row.index]!, row))+ ) : (+ <TableRow style={{ display: 'flex', height: '96px' }}>+ <TableCell+ colSpan={table.getAllColumns().length}+ className="h-24 text-center flex items-center justify-center"+ style={{ width: '100%' }}+ >+ No results.+ </TableCell>+ </TableRow>+ )}+ </TableBody>+ </Table>+ </div>+ </div>+ );+}diff --git a/apps/start/src/components/ui/date-time.tsx b/apps/start/src/components/ui/date-time.tsxnew file mode 100644index 000000000..71e070d1b--- /dev/null+++ b/apps/start/src/components/ui/date-time.tsx@@ -0,0 +1,121 @@+'use client';++import { format } from 'date-fns';++import { Button } from '@/components/ui/button';+import { Calendar } from '@/components/ui/calendar';+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from '@/components/ui/popover';+import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area';+import { cn } from '@/lib/utils';+import { PopoverPortal } from '@radix-ui/react-popover';+import { CalendarIcon } from 'lucide-react';++export function DateTimePicker({+ value,+ onChange,+}: { value: Date; onChange: (date: Date) => void }) {+ function handleDateSelect(date: Date | undefined) {+ if (date) {+ onChange(date);+ }+ }++ function handleTimeChange(type: 'hour' | 'minute', value: string) {+ const currentDate = value || new Date();+ const newDate = new Date(currentDate);++ if (type === 'hour') {+ const hour = Number.parseInt(value, 10);+ newDate.setHours(hour);+ } else if (type === 'minute') {+ newDate.setMinutes(Number.parseInt(value, 10));+ }++ onChange(newDate);+ }++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button+ variant={'outline'}+ className={cn(+ 'w-full pl-3 text-left font-normal',+ !value && 'text-muted-foreground',+ )}+ >+ {value ? (+ format(value, 'MM/dd/yyyy HH:mm')+ ) : (+ <span>MM/DD/YYYY HH:mm</span>+ )}+ <CalendarIcon className="ml-auto h-4 w-4 opacity-50" />+ </Button>+ </PopoverTrigger>+ <PopoverPortal>+ <PopoverContent className="w-auto p-0">+ <div className="sm:flex">+ <Calendar+ mode="single"+ selected={value}+ onSelect={handleDateSelect}+ initialFocus+ />+ <div className="flex flex-col sm:flex-row sm:h-[300px] divide-y sm:divide-y-0 sm:divide-x">+ <ScrollArea className="w-64 sm:w-auto">+ <div className="flex sm:flex-col p-2">+ {Array.from({ length: 24 }, (_, i) => i)+ .reverse()+ .map((hour) => (+ <Button+ key={hour}+ size="icon"+ variant={+ value && value.getHours() === hour+ ? 'default'+ : 'ghost'+ }+ className="sm:w-full shrink-0 aspect-square"+ onClick={() =>+ handleTimeChange('hour', hour.toString())+ }+ >+ {hour}+ </Button>+ ))}+ </div>+ <ScrollBar orientation="horizontal" className="sm:hidden" />+ </ScrollArea>+ <ScrollArea className="w-64 sm:w-auto">+ <div className="flex sm:flex-col p-2">+ {Array.from({ length: 12 }, (_, i) => i * 5).map((minute) => (+ <Button+ key={minute}+ size="icon"+ variant={+ value && value.getMinutes() === minute+ ? 'default'+ : 'ghost'+ }+ className="sm:w-full shrink-0 aspect-square"+ onClick={() =>+ handleTimeChange('minute', minute.toString())+ }+ >+ {minute.toString().padStart(2, '0')}+ </Button>+ ))}+ </div>+ <ScrollBar orientation="horizontal" className="sm:hidden" />+ </ScrollArea>+ </div>+ </div>+ </PopoverContent>+ </PopoverPortal>+ </Popover>+ );+}diff --git a/apps/start/src/components/ui/dialog.tsx b/apps/start/src/components/ui/dialog.tsxnew file mode 100644index 000000000..bbe6bd508--- /dev/null+++ b/apps/start/src/components/ui/dialog.tsx@@ -0,0 +1,146 @@+import * as DialogPrimitive from '@radix-ui/react-dialog';+import { XIcon } from 'lucide-react';+import type * as React from 'react';++import { cn } from '@/lib/utils';++function Dialog({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />;+}++function DialogTrigger({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;+}++function DialogPortal({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;+}++function DialogClose({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;+}++function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"+ className={cn(+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',+ className,+ )}+ {...props}+ />+ );+}++function DialogContent({+ className,+ children,+ showCloseButton = false,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Content> & {+ showCloseButton?: boolean;+}) {+ // Not using DialogPortal because it's breaking useRef's for some reason+ return (+ <div data-slot="dialog-portal">+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={cn(+ 'max-h-screen overflow-y-auto overflow-x-hidden', // Ensure the dialog is scrollable if it exceeds the screen height+ 'mt-auto', // Add margin-top: auto for all screen sizes+ 'focus:outline-none focus:ring-0 transition-none',+ 'border bg-background shadow-lg sm:rounded-lg md:max-h-[90vh]',+ 'bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg',+ className,+ )}+ {...props}+ >+ {children}+ {showCloseButton && (+ <DialogPrimitive.Close+ data-slot="dialog-close"+ className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"+ >+ <XIcon />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ )}+ </DialogPrimitive.Content>+ </div>+ );+}++function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="dialog-header"+ className={cn('flex flex-col gap-2 text-center sm:text-left', className)}+ {...props}+ />+ );+}++function DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="dialog-footer"+ className={cn(+ 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',+ className,+ )}+ {...props}+ />+ );+}++function DialogTitle({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={cn('text-lg leading-none font-semibold', className)}+ {...props}+ />+ );+}++function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={cn('text-muted-foreground text-sm', className)}+ {...props}+ />+ );+}++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+};diff --git a/apps/dashboard/src/components/ui/dropdown-menu.tsx b/apps/start/src/components/ui/dropdown-menu.tsxsimilarity index 95%rename from apps/dashboard/src/components/ui/dropdown-menu.tsxrename to apps/start/src/components/ui/dropdown-menu.tsxindex 65b27b8b9..9f0b95d78 100644--- a/apps/dashboard/src/components/ui/dropdown-menu.tsx+++ b/apps/start/src/components/ui/dropdown-menu.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';import { Check, ChevronRight, Circle } from 'lucide-react';@@ -78,13 +76,16 @@ const DropdownMenuItem = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.Item>,React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {inset?: boolean;+ variant?: 'destructive';}->(({ className, inset, ...props }, ref) => (+>(({ className, inset, variant, ...props }, ref) => (<DropdownMenuPrimitive.Itemref={ref}className={cn('relative flex min-h-8 cursor-pointer select-none items-center rounded-sm px-2 py-1.5 outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:mr-2',inset && 'pl-8',+ variant === 'destructive' &&+ 'text-destructive hover:text-destructive-foreground',className,)}{...props}@@ -99,7 +100,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<<DropdownMenuPrimitive.CheckboxItemref={ref}className={cn(- 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',+ 'cursor-pointer relative flex select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:mr-2',className,)}checked={checked}@@ -123,7 +124,7 @@ const DropdownMenuRadioItem = React.forwardRef<<DropdownMenuPrimitive.RadioItemref={ref}className={cn(- 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',+ 'relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',className,)}{...props}diff --git a/apps/dashboard/src/components/ui/gradient-background.tsx b/apps/start/src/components/ui/gradient-background.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/gradient-background.tsxrename to apps/start/src/components/ui/gradient-background.tsxdiff --git a/apps/start/src/components/ui/input-date-time.tsx b/apps/start/src/components/ui/input-date-time.tsxnew file mode 100644index 000000000..394445ed5--- /dev/null+++ b/apps/start/src/components/ui/input-date-time.tsx@@ -0,0 +1,88 @@+import { pushModal } from '@/modals';+import { format, isValid, parseISO } from 'date-fns';+import { CalendarIcon } from 'lucide-react';+import { type InputHTMLAttributes, useEffect, useState } from 'react';+import { WithLabel } from '../forms/input-with-label';+import { Input } from './input';++export function InputDateTime({+ value,+ onChange,+ placeholder = 'Select date and time',+ label,+ ...props+}: {+ value: string | undefined;+ onChange: (value: string) => void;+ label: string;+} & InputHTMLAttributes<HTMLInputElement>) {+ const [internalValue, setInternalValue] = useState(value ?? '');++ useEffect(() => {+ if (value !== internalValue) {+ setInternalValue(value ?? '');+ }+ }, [value]);++ // Convert string to Date for modal+ const getDateFromValue = (dateString: string): Date => {+ if (!dateString) return new Date();++ try {+ const date = parseISO(dateString);+ return isValid(date) ? date : new Date();+ } catch {+ return new Date();+ }+ };++ // Format date for display+ const getDisplayValue = (dateString: string): string => {+ if (!dateString) return '';++ try {+ const date = parseISO(dateString);+ return isValid(date) ? format(date, 'MM/dd/yyyy HH:mm') : dateString;+ } catch {+ return dateString;+ }+ };++ const handleDateTimeSelect = () => {+ pushModal('DateTimePicker', {+ initialDate: getDateFromValue(value || ''),+ title: 'Select Date & Time',+ onChange: (selectedDate: Date) => {+ const isoString = selectedDate.toISOString();+ setInternalValue(isoString);+ onChange(isoString);+ },+ });+ };++ return (+ <WithLabel label={label}>+ <div+ className="relative w-full cursor-pointer"+ onClick={handleDateTimeSelect}+ onKeyDown={(e) => {+ if (e.key === 'Enter' || e.key === ' ') {+ handleDateTimeSelect();+ }+ }}+ >+ <Input+ {...props}+ value={getDisplayValue(value || '')}+ placeholder={placeholder}+ readOnly+ className="cursor-pointer pr-10"+ size="default"+ />+ <div className="absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none">+ <CalendarIcon className="h-4 w-4 text-muted-foreground" />+ </div>+ </div>+ </WithLabel>+ );+}diff --git a/apps/dashboard/src/components/ui/input-enter.tsx b/apps/start/src/components/ui/input-enter.tsxsimilarity index 97%rename from apps/dashboard/src/components/ui/input-enter.tsxrename to apps/start/src/components/ui/input-enter.tsxindex 068c99d45..ad2617ee5 100644--- a/apps/dashboard/src/components/ui/input-enter.tsx+++ b/apps/start/src/components/ui/input-enter.tsx@@ -45,7 +45,7 @@ export function InputEnter({exit={{ opacity: 0, scale: 0.8 }}onClick={() => onChangeValue(internalValue)}>- <Badge variant="muted">+ <Badge variant="secondary">Press enter<RefreshCcwIcon className="ml-1 h-3 w-3" /></Badge>diff --git a/apps/dashboard/src/components/ui/input-otp.tsx b/apps/start/src/components/ui/input-otp.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/input-otp.tsxrename to apps/start/src/components/ui/input-otp.tsxdiff --git a/apps/dashboard/src/components/ui/input-with-toggle.tsx b/apps/start/src/components/ui/input-with-toggle.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/input-with-toggle.tsxrename to apps/start/src/components/ui/input-with-toggle.tsxdiff --git a/apps/dashboard/src/components/ui/input.tsx b/apps/start/src/components/ui/input.tsxsimilarity index 94%rename from apps/dashboard/src/components/ui/input.tsxrename to apps/start/src/components/ui/input.tsxindex 795416d69..3010604e8 100644--- a/apps/dashboard/src/components/ui/input.tsx+++ b/apps/start/src/components/ui/input.tsx@@ -1,12 +1,10 @@-'use client';-import { cn } from '@/utils/cn';import type { VariantProps } from 'class-variance-authority';import { cva } from 'class-variance-authority';import * as React from 'react';const inputVariant = cva(- 'file: flex w-full rounded-md border border-input bg-card ring-offset-background file:border-0 file:bg-transparent file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50',+ 'file: flex w-full rounded-md border border-input bg-card ring-offset-background file:border-0 file:bg-transparent file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50',{variants: {size: {diff --git a/apps/start/src/components/ui/key-value-grid.tsx b/apps/start/src/components/ui/key-value-grid.tsxnew file mode 100644index 000000000..47b4284cf--- /dev/null+++ b/apps/start/src/components/ui/key-value-grid.tsx@@ -0,0 +1,221 @@+import { fancyMinutes } from '@/hooks/use-numer-formatter';+import { countries } from '@/translations/countries';+import { camelCaseToWords } from '@/utils/casing';+import { clipboard } from '@/utils/clipboard';+import { cn } from '@/utils/cn';+import { formatDateTime, formatTime } from '@/utils/date';+import type { IServiceEvent } from '@openpanel/db';+import { isToday } from 'date-fns';+import { CopyIcon } from 'lucide-react';+import { SerieIcon } from '../report-chart/common/serie-icon';++export interface KeyValueItem {+ name: string;+ value: any;+ event?: IServiceEvent;+}++interface KeyValueGridProps {+ data: KeyValueItem[];+ columns?: 1 | 2 | 3 | 4;+ className?: string;+ rowClassName?: string;+ keyClassName?: string;+ valueClassName?: string;+ renderKey?: (item: KeyValueItem) => React.ReactNode;+ renderValue?: (item: KeyValueItem) => React.ReactNode;+ onItemClick?: (item: KeyValueItem) => void;+ copyable?: boolean;+}++export function KeyValueGrid({+ data,+ columns = 1,+ className,+ rowClassName,+ keyClassName,+ valueClassName,+ renderKey,+ renderValue,+ onItemClick,+ copyable = false,+}: KeyValueGridProps) {+ const defaultRenderKey = (item: KeyValueItem) => {+ const splitKey = item.name.split('.');+ return (+ <div className="flex items-center gap-1">+ {splitKey.map((name, index) => (+ <span+ key={name}+ className={+ index === splitKey.length - 1+ ? 'text-foreground'+ : 'text-muted-foreground'+ }+ >+ {camelCaseToWords(name)}+ {index < splitKey.length - 1 && (+ <span className="text-muted-foreground">.</span>+ )}+ </span>+ ))}+ </div>+ );+ };++ const defaultRenderValue = (item: KeyValueItem) => {+ return (+ <FieldValue name={item.name} value={item.value} event={item.event} />+ );+ };++ const gridCols = {+ 1: 'grid-cols-1',+ 2: 'grid-cols-1 md:grid-cols-2',+ 3: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3',+ 4: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-4',+ };++ return (+ <div+ className={cn('grid card overflow-hidden', gridCols[columns], className)}+ >+ {data.map((item, index) => (+ <div+ key={`${item.name}-${index}`}+ className={cn(+ 'relative flex items-center justify-between gap-4 p-4 py-3 shadow-[0_0_0_0.5px] shadow-border group',+ onItemClick && 'cursor-pointer hover:bg-muted/50',+ rowClassName,+ )}+ onClick={() => onItemClick?.(item)}+ onKeyDown={(e) => {+ if (onItemClick && (e.key === 'Enter' || e.key === ' ')) {+ e.preventDefault();+ onItemClick(item);+ }+ }}+ tabIndex={onItemClick ? 0 : undefined}+ role={onItemClick ? 'button' : undefined}+ >+ {copyable && (+ <button+ onClick={(e) => {+ e.stopPropagation();+ clipboard(item.value);+ }}+ type="button"+ className="absolute left-2 top-1/2 -translate-y-1/2 -translate-x-full opacity-0 group-hover:translate-x-0 group-hover:opacity-100 transition-all duration-200 ease-out bg-background border border-border rounded p-1 shadow-sm z-10"+ >+ <CopyIcon className="size-3 shrink-0" />+ </button>+ )}+ <div className={cn('flex-1 min-w-0 text-sm', keyClassName)}>+ {renderKey ? renderKey(item) : defaultRenderKey(item)}+ </div>+ <div className={cn('text-right text-sm font-mono', valueClassName)}>+ {renderValue ? renderValue(item) : defaultRenderValue(item)}+ </div>+ </div>+ ))}++ {data.length === 0 && (+ <div className="text-center text-muted-foreground py-8 col-span-full">+ No data available+ </div>+ )}+ </div>+ );+}++export function FieldValue({+ name,+ value,+ event,+}: {+ name: string;+ value: any;+ event?: IServiceEvent;+}) {+ if (!value) {+ return null;+ }++ if (value instanceof Date) {+ return isToday(value) ? formatTime(value) : formatDateTime(value);+ }++ if (event) {+ switch (name) {+ case 'osVersion':+ return (+ <div className="row gap-2 items-center">+ <SerieIcon name={event.os} />+ <span>{value}</span>+ </div>+ );+ case 'browserVersion':+ return (+ <div className="row gap-2 items-center">+ <SerieIcon name={event.browser} />+ <span>{value}</span>+ </div>+ );+ case 'city':+ return (+ <div className="row gap-2 items-center">+ <SerieIcon name={event.country} />+ <span>{value}</span>+ </div>+ );+ case 'region':+ return (+ <div className="row gap-2 items-center">+ <SerieIcon name={event.country} />+ <span>{value}</span>+ </div>+ );+ case 'properties':+ return JSON.stringify(value);+ case 'country':+ return (+ <div className="row gap-2 items-center">+ <SerieIcon name={value} />+ <span>{countries[value as keyof typeof countries] ?? value}</span>+ </div>+ );+ case 'browser':+ case 'os':+ case 'brand':+ case 'model':+ case 'device':+ return (+ <div className="row gap-2 items-center">+ <SerieIcon name={value} />+ <span>{value}</span>+ </div>+ );+ case 'duration':+ return (+ <div className="text-right">+ <span className="text-muted-foreground">({value}ms)</span>{' '}+ {fancyMinutes(value / 1000)}+ </div>+ );+ }+ }++ if (value === null || value === undefined) {+ return <span className="text-muted-foreground">-</span>;+ }++ if (typeof value === 'boolean') {+ return <span>{value ? 'true' : 'false'}</span>;+ }++ if (typeof value === 'object') {+ return <span>{JSON.stringify(value)}</span>;+ }++ return <span>{String(value)}</span>;+}diff --git a/apps/dashboard/src/components/ui/key-value.tsx b/apps/start/src/components/ui/key-value.tsxsimilarity index 95%rename from apps/dashboard/src/components/ui/key-value.tsxrename to apps/start/src/components/ui/key-value.tsxindex aeef479b7..27a927dc8 100644--- a/apps/dashboard/src/components/ui/key-value.tsx+++ b/apps/start/src/components/ui/key-value.tsx@@ -1,5 +1,5 @@import { cn } from '@/utils/cn';-import Link from 'next/link';+import { Link } from '@tanstack/react-router';interface KeyValueProps {name: string;diff --git a/apps/dashboard/src/components/ui/label.tsx b/apps/start/src/components/ui/label.tsxsimilarity index 85%rename from apps/dashboard/src/components/ui/label.tsxrename to apps/start/src/components/ui/label.tsxindex 015145f0b..6f7cea77f 100644--- a/apps/dashboard/src/components/ui/label.tsx+++ b/apps/start/src/components/ui/label.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import * as LabelPrimitive from '@radix-ui/react-label';import { cva } from 'class-variance-authority';@@ -7,7 +5,7 @@ import type { VariantProps } from 'class-variance-authority';import * as React from 'react';const labelVariants = cva(- 'mb-2 block font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',+ 'mb-3 text-sm block font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',);const Label = React.forwardRef<diff --git a/apps/dashboard/src/components/ui/padding.tsx b/apps/start/src/components/ui/padding.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/padding.tsxrename to apps/start/src/components/ui/padding.tsxdiff --git a/apps/dashboard/src/components/ui/popover.tsx b/apps/start/src/components/ui/popover.tsxsimilarity index 92%rename from apps/dashboard/src/components/ui/popover.tsxrename to apps/start/src/components/ui/popover.tsxindex 0f0b24a38..562263202 100644--- a/apps/dashboard/src/components/ui/popover.tsx+++ b/apps/start/src/components/ui/popover.tsx@@ -6,6 +6,8 @@ const Popover = PopoverPrimitive.Root;const PopoverTrigger = PopoverPrimitive.Trigger;+const PopoverPortal = PopoverPrimitive.Portal;+const PopoverContent = React.forwardRef<React.ElementRef<typeof PopoverPrimitive.Content>,React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {@@ -36,4 +38,4 @@ const PopoverContent = React.forwardRef<});PopoverContent.displayName = PopoverPrimitive.Content.displayName;-export { Popover, PopoverTrigger, PopoverContent };+export { Popover, PopoverTrigger, PopoverContent, PopoverPortal };diff --git a/apps/dashboard/src/components/ui/progress.tsx b/apps/start/src/components/ui/progress.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/progress.tsxrename to apps/start/src/components/ui/progress.tsxdiff --git a/apps/dashboard/src/components/ui/radio-group.tsx b/apps/start/src/components/ui/radio-group.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/radio-group.tsxrename to apps/start/src/components/ui/radio-group.tsxdiff --git a/apps/start/src/components/ui/scroll-area.tsx b/apps/start/src/components/ui/scroll-area.tsxnew file mode 100644index 000000000..141e99009--- /dev/null+++ b/apps/start/src/components/ui/scroll-area.tsx@@ -0,0 +1,61 @@+import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';+import type * as React from 'react';++import { cn } from '@/lib/utils';++function ScrollArea({+ className,+ children,+ ref,+ orientation = 'vertical',+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.Root> & {+ orientation?: 'vertical' | 'horizontal';+}) {+ return (+ <ScrollAreaPrimitive.Root+ data-slot="scroll-area"+ className={cn('relative', className)}+ {...props}+ >+ <ScrollAreaPrimitive.Viewport+ data-slot="scroll-area-viewport"+ className="focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"+ ref={ref}+ >+ {children}+ </ScrollAreaPrimitive.Viewport>+ <ScrollBar orientation={orientation} />+ <ScrollAreaPrimitive.Corner />+ </ScrollAreaPrimitive.Root>+ );+}++function ScrollBar({+ className,+ orientation = 'vertical',+ ...props+}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {+ return (+ <ScrollAreaPrimitive.ScrollAreaScrollbar+ data-slot="scroll-area-scrollbar"+ orientation={orientation}+ className={cn(+ 'flex touch-none p-px transition-colors select-none',+ orientation === 'vertical' &&+ 'h-full w-2.5 border-l border-l-transparent',+ orientation === 'horizontal' &&+ 'h-2.5 flex-col border-t border-t-transparent',+ className,+ )}+ {...props}+ >+ <ScrollAreaPrimitive.ScrollAreaThumb+ data-slot="scroll-area-thumb"+ className="bg-border relative flex-1 rounded-full"+ />+ </ScrollAreaPrimitive.ScrollAreaScrollbar>+ );+}++export { ScrollArea, ScrollBar };diff --git a/apps/start/src/components/ui/select.tsx b/apps/start/src/components/ui/select.tsxnew file mode 100644index 000000000..6dff04731--- /dev/null+++ b/apps/start/src/components/ui/select.tsx@@ -0,0 +1,185 @@+'use client';++import * as SelectPrimitive from '@radix-ui/react-select';+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';+import type * as React from 'react';++import { cn } from '@/lib/utils';++function Select({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Root>) {+ return <SelectPrimitive.Root data-slot="select" {...props} />;+}++function SelectGroup({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Group>) {+ return <SelectPrimitive.Group data-slot="select-group" {...props} />;+}++function SelectValue({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Value>) {+ return <SelectPrimitive.Value data-slot="select-value" {...props} />;+}++function SelectTrigger({+ className,+ size = 'default',+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {+ size?: 'sm' | 'default';+}) {+ return (+ <SelectPrimitive.Trigger+ data-slot="select-trigger"+ data-size={size}+ className={cn(+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDownIcon className="size-4 opacity-50" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+ );+}++function SelectContent({+ className,+ children,+ position = 'popper',+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Content>) {+ return (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ data-slot="select-content"+ className={cn(+ 'bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md',+ position === 'popper' &&+ 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',+ className,+ )}+ position={position}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ className={cn(+ 'p-1',+ position === 'popper' &&+ 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1',+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+ );+}++function SelectLabel({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Label>) {+ return (+ <SelectPrimitive.Label+ data-slot="select-label"+ className={cn('text-muted-foreground px-2 py-1.5 text-xs', className)}+ {...props}+ />+ );+}++function SelectItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Item>) {+ return (+ <SelectPrimitive.Item+ data-slot="select-item"+ className={cn(+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",+ className,+ )}+ {...props}+ >+ <span className="absolute right-2 flex size-3.5 items-center justify-center">+ <SelectPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </SelectPrimitive.ItemIndicator>+ </span>+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+ );+}++function SelectSeparator({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {+ return (+ <SelectPrimitive.Separator+ data-slot="select-separator"+ className={cn('bg-border pointer-events-none -mx-1 my-1 h-px', className)}+ {...props}+ />+ );+}++function SelectScrollUpButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {+ return (+ <SelectPrimitive.ScrollUpButton+ data-slot="select-scroll-up-button"+ className={cn(+ 'flex cursor-default items-center justify-center py-1',+ className,+ )}+ {...props}+ >+ <ChevronUpIcon className="size-4" />+ </SelectPrimitive.ScrollUpButton>+ );+}++function SelectScrollDownButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {+ return (+ <SelectPrimitive.ScrollDownButton+ data-slot="select-scroll-down-button"+ className={cn(+ 'flex cursor-default items-center justify-center py-1',+ className,+ )}+ {...props}+ >+ <ChevronDownIcon className="size-4" />+ </SelectPrimitive.ScrollDownButton>+ );+}++export {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+ SelectLabel,+ SelectScrollDownButton,+ SelectScrollUpButton,+ SelectSeparator,+ SelectTrigger,+ SelectValue,+};diff --git a/apps/start/src/components/ui/separator.tsx b/apps/start/src/components/ui/separator.tsxnew file mode 100644index 000000000..c6e1fff75--- /dev/null+++ b/apps/start/src/components/ui/separator.tsx@@ -0,0 +1,26 @@+import * as SeparatorPrimitive from '@radix-ui/react-separator';+import type * as React from 'react';++import { cn } from '@/lib/utils';++function Separator({+ className,+ orientation = 'horizontal',+ decorative = true,+ ...props+}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {+ return (+ <SeparatorPrimitive.Root+ data-slot="separator"+ decorative={decorative}+ orientation={orientation}+ className={cn(+ 'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',+ className,+ )}+ {...props}+ />+ );+}++export { Separator };diff --git a/apps/dashboard/src/components/ui/sheet.tsx b/apps/start/src/components/ui/sheet.tsxsimilarity index 99%rename from apps/dashboard/src/components/ui/sheet.tsxrename to apps/start/src/components/ui/sheet.tsxindex e7143424a..7b662906f 100644--- a/apps/dashboard/src/components/ui/sheet.tsx+++ b/apps/start/src/components/ui/sheet.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import * as SheetPrimitive from '@radix-ui/react-dialog';import { cva } from 'class-variance-authority';diff --git a/apps/start/src/components/ui/slider.tsx b/apps/start/src/components/ui/slider.tsxnew file mode 100644index 000000000..99b59fd80--- /dev/null+++ b/apps/start/src/components/ui/slider.tsx@@ -0,0 +1,63 @@+'use client';++import * as SliderPrimitive from '@radix-ui/react-slider';+import * as React from 'react';++import { cn } from '@/lib/utils';++function Slider({+ className,+ defaultValue,+ value,+ min = 0,+ max = 100,+ ...props+}: React.ComponentProps<typeof SliderPrimitive.Root>) {+ const _values = React.useMemo(+ () =>+ Array.isArray(value)+ ? value+ : Array.isArray(defaultValue)+ ? defaultValue+ : [min, max],+ [value, defaultValue, min, max],+ );++ return (+ <SliderPrimitive.Root+ data-slot="slider"+ defaultValue={defaultValue}+ value={value}+ min={min}+ max={max}+ className={cn(+ 'relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col',+ className,+ )}+ {...props}+ >+ <SliderPrimitive.Track+ data-slot="slider-track"+ className={cn(+ 'bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5',+ )}+ >+ <SliderPrimitive.Range+ data-slot="slider-range"+ className={cn(+ 'bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full',+ )}+ />+ </SliderPrimitive.Track>+ {Array.from({ length: _values.length }, (_, index) => (+ <SliderPrimitive.Thumb+ data-slot="slider-thumb"+ key={index}+ className="border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"+ />+ ))}+ </SliderPrimitive.Root>+ );+}++export { Slider };diff --git a/apps/dashboard/src/components/ui/sonner.tsx b/apps/start/src/components/ui/sonner.tsxsimilarity index 94%rename from apps/dashboard/src/components/ui/sonner.tsxrename to apps/start/src/components/ui/sonner.tsxindex b0ef07172..6917da527 100644--- a/apps/dashboard/src/components/ui/sonner.tsx+++ b/apps/start/src/components/ui/sonner.tsx@@ -1,4 +1,4 @@-import { useTheme } from 'next-themes';+import { useTheme } from '@/hooks/use-theme';import { Toaster as Sonner } from 'sonner';type ToasterProps = React.ComponentProps<typeof Sonner>;diff --git a/apps/start/src/components/ui/spinner.tsx b/apps/start/src/components/ui/spinner.tsxnew file mode 100644index 000000000..2bc66809e--- /dev/null+++ b/apps/start/src/components/ui/spinner.tsx@@ -0,0 +1,301 @@+import { cn } from '@/utils/cn';+import { type VariantProps, cva } from 'class-variance-authority';+import type * as React from 'react';++const spinnerVariants = cva('', {+ variants: {+ size: {+ xs: 'h-3 w-3',+ sm: 'h-4 w-4',+ md: 'h-6 w-6',+ lg: 'h-8 w-8',+ xl: 'h-12 w-12',+ },+ variant: {+ default: 'text-muted-foreground',+ primary: 'text-primary',+ white: 'text-white',+ destructive: 'text-destructive',+ },+ speed: {+ slow: '[animation-duration:2s]',+ normal: '[animation-duration:1s]',+ fast: '[animation-duration:0.5s]',+ },+ },+ defaultVariants: {+ size: 'sm',+ variant: 'default',+ speed: 'normal',+ },+});++export interface SpinnerProps+ extends Omit<React.SVGProps<SVGSVGElement>, 'size' | 'speed'>,+ VariantProps<typeof spinnerVariants> {+ type?: 'circle' | 'dots' | 'pulse' | 'bars' | 'ring';+ className?: string;+}++const Spinner = ({+ className,+ size,+ variant,+ speed,+ type = 'circle',+ ref,+ ...props+}: SpinnerProps) => {+ const baseClasses = spinnerVariants({ size, variant, speed });+ const animationClass = type === 'pulse' ? 'animate-pulse' : 'animate-spin';+ const spinnerClasses = cn(baseClasses, animationClass, className);++ switch (type) {+ case 'circle':+ return (+ <svg+ ref={ref}+ className={spinnerClasses}+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ {...props}+ >+ <circle+ className="opacity-25"+ cx="12"+ cy="12"+ r="10"+ stroke="currentColor"+ strokeWidth="4"+ />+ <path+ className="opacity-75"+ fill="currentColor"+ d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"+ />+ </svg>+ );++ case 'dots':+ return (+ <svg+ ref={ref}+ className={baseClasses}+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ viewBox="0 0 24 24"+ {...props}+ >+ <circle cx="4" cy="12" r="3">+ <animate+ attributeName="opacity"+ dur="1s"+ repeatCount="indefinite"+ values="0;1;0"+ begin="0s"+ />+ </circle>+ <circle cx="12" cy="12" r="3">+ <animate+ attributeName="opacity"+ dur="1s"+ repeatCount="indefinite"+ values="0;1;0"+ begin="0.2s"+ />+ </circle>+ <circle cx="20" cy="12" r="3">+ <animate+ attributeName="opacity"+ dur="1s"+ repeatCount="indefinite"+ values="0;1;0"+ begin="0.4s"+ />+ </circle>+ </svg>+ );++ case 'pulse':+ return (+ <div+ ref={ref as unknown as React.RefObject<HTMLDivElement>}+ className={cn(+ 'rounded-full bg-current animate-pulse',+ spinnerClasses,+ )}+ style={{+ animationDuration:+ speed === 'slow' ? '2s' : speed === 'fast' ? '0.5s' : '1s',+ }}+ {...(props as React.HTMLAttributes<HTMLDivElement>)}+ />+ );++ case 'bars':+ return (+ <svg+ ref={ref}+ className={spinnerClasses}+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ viewBox="0 0 24 24"+ {...props}+ >+ <rect x="1" y="6" width="2.8" height="12">+ <animate+ attributeName="height"+ dur="1s"+ repeatCount="indefinite"+ values="12;4;12"+ begin="0s"+ />+ <animate+ attributeName="y"+ dur="1s"+ repeatCount="indefinite"+ values="6;10;6"+ begin="0s"+ />+ </rect>+ <rect x="5.8" y="6" width="2.8" height="12">+ <animate+ attributeName="height"+ dur="1s"+ repeatCount="indefinite"+ values="12;4;12"+ begin="0.2s"+ />+ <animate+ attributeName="y"+ dur="1s"+ repeatCount="indefinite"+ values="6;10;6"+ begin="0.2s"+ />+ </rect>+ <rect x="10.6" y="6" width="2.8" height="12">+ <animate+ attributeName="height"+ dur="1s"+ repeatCount="indefinite"+ values="12;4;12"+ begin="0.4s"+ />+ <animate+ attributeName="y"+ dur="1s"+ repeatCount="indefinite"+ values="6;10;6"+ begin="0.4s"+ />+ </rect>+ <rect x="15.4" y="6" width="2.8" height="12">+ <animate+ attributeName="height"+ dur="1s"+ repeatCount="indefinite"+ values="12;4;12"+ begin="0.6s"+ />+ <animate+ attributeName="y"+ dur="1s"+ repeatCount="indefinite"+ values="6;10;6"+ begin="0.6s"+ />+ </rect>+ <rect x="20.2" y="6" width="2.8" height="12">+ <animate+ attributeName="height"+ dur="1s"+ repeatCount="indefinite"+ values="12;4;12"+ begin="0.8s"+ />+ <animate+ attributeName="y"+ dur="1s"+ repeatCount="indefinite"+ values="6;10;6"+ begin="0.8s"+ />+ </rect>+ </svg>+ );++ case 'ring':+ return (+ <svg+ ref={ref}+ className={spinnerClasses}+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ {...props}+ >+ <circle+ className="opacity-25"+ cx="12"+ cy="12"+ r="10"+ stroke="currentColor"+ strokeWidth="4"+ />+ <circle+ className="opacity-75"+ cx="12"+ cy="12"+ r="10"+ stroke="currentColor"+ strokeWidth="4"+ strokeDasharray="32"+ strokeDashoffset="32"+ >+ <animate+ attributeName="stroke-dasharray"+ dur="2s"+ repeatCount="indefinite"+ values="0 32;16 16;0 32;0 32"+ />+ <animate+ attributeName="stroke-dashoffset"+ dur="2s"+ repeatCount="indefinite"+ values="0;-16;-32;-32"+ />+ </circle>+ </svg>+ );++ default:+ return (+ <svg+ ref={ref}+ className={spinnerClasses}+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ {...props}+ >+ <circle+ className="opacity-25"+ cx="12"+ cy="12"+ r="10"+ stroke="currentColor"+ strokeWidth="4"+ />+ <path+ className="opacity-75"+ fill="currentColor"+ d="m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"+ />+ </svg>+ );+ }+};++export { Spinner, spinnerVariants };diff --git a/apps/dashboard/src/components/ui/switch.tsx b/apps/start/src/components/ui/switch.tsxsimilarity index 98%rename from apps/dashboard/src/components/ui/switch.tsxrename to apps/start/src/components/ui/switch.tsxindex 81ea33cf3..24e5b48b2 100644--- a/apps/dashboard/src/components/ui/switch.tsx+++ b/apps/start/src/components/ui/switch.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import * as SwitchPrimitives from '@radix-ui/react-switch';import * as React from 'react';diff --git a/apps/start/src/components/ui/table.tsx b/apps/start/src/components/ui/table.tsxnew file mode 100644index 000000000..04e90c0d7--- /dev/null+++ b/apps/start/src/components/ui/table.tsx@@ -0,0 +1,128 @@+import type * as React from 'react';++import { cn } from '@/lib/utils';++export function TableButtons({+ children,+ className,+}: {+ children: React.ReactNode;+ className?: string;+}) {+ return (+ <div className={cn('mb-2 row flex-wrap items-center gap-2', className)}>+ {children}+ </div>+ );+}++function Table({ className, ...props }: React.ComponentProps<'table'>) {+ return (+ <div+ data-slot="table-container"+ className="relative w-full overflow-x-auto"+ >+ <table+ data-slot="table"+ className={cn('w-full caption-bottom bg-card', className)}+ {...props}+ />+ </div>+ );+}++function TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {+ return (+ <thead+ data-slot="table-header"+ className={cn('[&_tr]:border-b', className)}+ {...props}+ />+ );+}++function TableBody({ className, ...props }: React.ComponentProps<'tbody'>) {+ return (+ <tbody+ data-slot="table-body"+ className={cn('[&_tr:last-child]:border-0', className)}+ {...props}+ />+ );+}++function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) {+ return (+ <tfoot+ data-slot="table-footer"+ className={cn(+ 'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',+ className,+ )}+ {...props}+ />+ );+}++function TableRow({ className, ...props }: React.ComponentProps<'tr'>) {+ return (+ <tr+ data-slot="table-row"+ className={cn(+ 'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',+ className,+ )}+ {...props}+ />+ );+}++function TableHead({ className, ...props }: React.ComponentProps<'th'>) {+ return (+ <th+ data-slot="table-head"+ className={cn(+ 'text-[10px] uppercase text-foreground h-10 px-4 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',+ className,+ )}+ {...props}+ />+ );+}++function TableCell({ className, ...props }: React.ComponentProps<'td'>) {+ return (+ <td+ data-slot="table-cell"+ className={cn(+ 'p-2 px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] max-w-94',+ className,+ )}+ {...props}+ />+ );+}++function TableCaption({+ className,+ ...props+}: React.ComponentProps<'caption'>) {+ return (+ <caption+ data-slot="table-caption"+ className={cn('text-muted-foreground mt-4 text-sm', className)}+ {...props}+ />+ );+}++export {+ Table,+ TableHeader,+ TableBody,+ TableFooter,+ TableHead,+ TableRow,+ TableCell,+ TableCaption,+};diff --git a/apps/dashboard/src/components/ui/tabs.tsx b/apps/start/src/components/ui/tabs.tsxsimilarity index 67%rename from apps/dashboard/src/components/ui/tabs.tsxrename to apps/start/src/components/ui/tabs.tsxindex c7c493c0a..e8f51b7fd 100644--- a/apps/dashboard/src/components/ui/tabs.tsx+++ b/apps/start/src/components/ui/tabs.tsx@@ -11,7 +11,7 @@ const TabsList = React.forwardRef<<TabsPrimitive.Listref={ref}className={cn(- 'inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground',+ 'inline-flex w-full h-auto items-center justify-start border-b border-border text-muted-foreground',className,)}{...props}@@ -26,11 +26,15 @@ const TabsTrigger = React.forwardRef<<TabsPrimitive.Triggerref={ref}className={cn(- 'inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-card data-[state=active]:text-foreground data-[state=active]:shadow-sm',+ 'group inline-flex items-center justify-center whitespace-nowrap px-3 py-1 font-medium text-muted-foreground transition-all border-b-2 border-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground data-[state=active]:border-foreground',className,)}{...props}- />+ >+ <span className="group-hover:bg-def-300 group-hover:text-foreground p-0.5 px-1.5 rounded-sm">+ {props.children}+ </span>+ </TabsPrimitive.Trigger>));TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;diff --git a/apps/dashboard/src/components/ui/textarea.tsx b/apps/start/src/components/ui/textarea.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/textarea.tsxrename to apps/start/src/components/ui/textarea.tsxdiff --git a/apps/dashboard/src/components/ui/toast.tsx b/apps/start/src/components/ui/toast.tsxsimilarity index 99%rename from apps/dashboard/src/components/ui/toast.tsxrename to apps/start/src/components/ui/toast.tsxindex e2b69fa5c..de72e4fbc 100644--- a/apps/dashboard/src/components/ui/toast.tsx+++ b/apps/start/src/components/ui/toast.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import * as ToastPrimitives from '@radix-ui/react-toast';import { cva } from 'class-variance-authority';diff --git a/apps/dashboard/src/components/ui/toaster.tsx b/apps/start/src/components/ui/toaster.tsxsimilarity index 93%rename from apps/dashboard/src/components/ui/toaster.tsxrename to apps/start/src/components/ui/toaster.tsxindex 9c940411e..6917da527 100644--- a/apps/dashboard/src/components/ui/toaster.tsx+++ b/apps/start/src/components/ui/toaster.tsx@@ -1,6 +1,4 @@-'use client';--import { useTheme } from 'next-themes';+import { useTheme } from '@/hooks/use-theme';import { Toaster as Sonner } from 'sonner';type ToasterProps = React.ComponentProps<typeof Sonner>;diff --git a/apps/dashboard/src/components/ui/toggle-group.tsx b/apps/start/src/components/ui/toggle-group.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/toggle-group.tsxrename to apps/start/src/components/ui/toggle-group.tsxdiff --git a/apps/dashboard/src/components/ui/toggle.tsx b/apps/start/src/components/ui/toggle.tsxsimilarity index 100%rename from apps/dashboard/src/components/ui/toggle.tsxrename to apps/start/src/components/ui/toggle.tsxdiff --git a/apps/dashboard/src/components/ui/tooltip.tsx b/apps/start/src/components/ui/tooltip.tsxsimilarity index 99%rename from apps/dashboard/src/components/ui/tooltip.tsxrename to apps/start/src/components/ui/tooltip.tsxindex 2060b3dc6..c668150ac 100644--- a/apps/dashboard/src/components/ui/tooltip.tsx+++ b/apps/start/src/components/ui/tooltip.tsx@@ -1,5 +1,3 @@-'use client';-import { cn } from '@/utils/cn';import * as TooltipPrimitive from '@radix-ui/react-tooltip';import * as React from 'react';diff --git a/apps/dashboard/src/components/widget-table.tsx b/apps/start/src/components/widget-table.tsxsimilarity index 100%rename from apps/dashboard/src/components/widget-table.tsxrename to apps/start/src/components/widget-table.tsxdiff --git a/apps/dashboard/src/components/widget.tsx b/apps/start/src/components/widget.tsxsimilarity index 100%rename from apps/dashboard/src/components/widget.tsxrename to apps/start/src/components/widget.tsxdiff --git a/apps/start/src/hooks/use-app-context.ts b/apps/start/src/hooks/use-app-context.tsnew file mode 100644index 000000000..fcbe992d8--- /dev/null+++ b/apps/start/src/hooks/use-app-context.ts@@ -0,0 +1,16 @@+import { useRouteContext } from '@tanstack/react-router';++export function useAppContext() {+ const params = useRouteContext({+ strict: false,+ });++ if (!params.apiUrl || !params.dashboardUrl) {+ throw new Error('API URL or dashboard URL is not set');+ }++ return {+ apiUrl: params.apiUrl,+ dashboardUrl: params.dashboardUrl,+ };+}diff --git a/apps/start/src/hooks/use-app-params.ts b/apps/start/src/hooks/use-app-params.tsnew file mode 100644index 000000000..ec441c834--- /dev/null+++ b/apps/start/src/hooks/use-app-params.ts@@ -0,0 +1,11 @@+import { useParams } from '@tanstack/react-router';++export function useAppParams() {+ const params = useParams({+ strict: false,+ });+ return params as {+ organizationId: string;+ projectId: string;+ };+}diff --git a/apps/dashboard/src/hooks/useBreakpoint.ts b/apps/start/src/hooks/use-breakpoint.tssimilarity index 77%rename from apps/dashboard/src/hooks/useBreakpoint.tsrename to apps/start/src/hooks/use-breakpoint.tsindex 4bfd83c78..4c840a092 100644--- a/apps/dashboard/src/hooks/useBreakpoint.ts+++ b/apps/start/src/hooks/use-breakpoint.ts@@ -1,8 +1,9 @@-import { theme } from '@/utils/theme';import { useMediaQuery } from 'react-responsive';-import type { ScreensConfig } from 'tailwindcss/types/config';+// import type { ScreensConfig } from 'tailwindcss/types/config';-const breakpoints = theme?.screens ?? {+// TODO: Ensure we have same breakpoints as tailwind+// const breakpoints = theme?.screens ?? {+const breakpoints = {xs: '480px',sm: '640px',md: '768px',@@ -10,6 +11,8 @@ const breakpoints = theme?.screens ?? {xl: '1280px',};+type ScreensConfig = typeof breakpoints;+export function useBreakpoint<K extends string>(breakpointKey: K) {const breakpointValue = breakpoints[breakpointKey as keyof ScreensConfig];const bool = useMediaQuery({diff --git a/apps/start/src/hooks/use-callback-ref.ts b/apps/start/src/hooks/use-callback-ref.tsnew file mode 100644index 000000000..ea0dd8f2d--- /dev/null+++ b/apps/start/src/hooks/use-callback-ref.ts@@ -0,0 +1,27 @@+import * as React from 'react';++/**+ * @see https://github.com/radix-ui/primitives/blob/main/packages/react/use-callback-ref/src/useCallbackRef.tsx+ */++/**+ * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a+ * prop or avoid re-executing effects when passed as a dependency+ */+function useCallbackRef<T extends (...args: never[]) => unknown>(+ callback: T | undefined,+): T {+ const callbackRef = React.useRef(callback);++ React.useEffect(() => {+ callbackRef.current = callback;+ });++ // https://github.com/facebook/react/issues/19240+ return React.useMemo(+ () => ((...args) => callbackRef.current?.(...args)) as T,+ [],+ );+}++export { useCallbackRef };diff --git a/apps/dashboard/src/hooks/useClientSecret.ts b/apps/start/src/hooks/use-client-secret.tssimilarity index 100%rename from apps/dashboard/src/hooks/useClientSecret.tsrename to apps/start/src/hooks/use-client-secret.tsdiff --git a/apps/dashboard/src/hooks/use-dashed-stroke.tsx b/apps/start/src/hooks/use-dashed-stroke.tsxsimilarity index 100%rename from apps/dashboard/src/hooks/use-dashed-stroke.tsxrename to apps/start/src/hooks/use-dashed-stroke.tsxdiff --git a/apps/dashboard/src/hooks/useDebounceFn.ts b/apps/start/src/hooks/use-debounce-fn.tssimilarity index 76%rename from apps/dashboard/src/hooks/useDebounceFn.tsrename to apps/start/src/hooks/use-debounce-fn.tsindex 0afb6871d..69725c07d 100644--- a/apps/dashboard/src/hooks/useDebounceFn.ts+++ b/apps/start/src/hooks/use-debounce-fn.ts@@ -1,4 +1,4 @@-import debounce from 'lodash.debounce';+import debounce from 'debounce';import { useEffect } from 'react';export function useDebounceFn<T>(fn: T, ms = 500): T {@@ -6,7 +6,7 @@ export function useDebounceFn<T>(fn: T, ms = 500): T {useEffect(() => {return () => {- debouncedFn.cancel();+ debouncedFn.clear();};});diff --git a/apps/dashboard/src/hooks/useDebounceState.ts b/apps/start/src/hooks/use-debounce-state.tssimilarity index 85%rename from apps/dashboard/src/hooks/useDebounceState.tsrename to apps/start/src/hooks/use-debounce-state.tsindex 87c03e488..bed71192f 100644--- a/apps/dashboard/src/hooks/useDebounceState.ts+++ b/apps/start/src/hooks/use-debounce-state.ts@@ -1,5 +1,5 @@-import debounce from 'lodash.debounce';-import { useCallback, useEffect, useMemo, useState } from 'react';+import debounce from 'debounce';+import { useEffect, useMemo, useState } from 'react';interface DebouncedState<T> {value: T;diff --git a/apps/dashboard/src/hooks/useDebounceValue.ts b/apps/start/src/hooks/use-debounce-value.tssimilarity index 100%rename from apps/dashboard/src/hooks/useDebounceValue.tsrename to apps/start/src/hooks/use-debounce-value.tsdiff --git a/apps/start/src/hooks/use-debounced-callback.ts b/apps/start/src/hooks/use-debounced-callback.tsnew file mode 100644index 000000000..8f5ef5f52--- /dev/null+++ b/apps/start/src/hooks/use-debounced-callback.ts@@ -0,0 +1,28 @@+import * as React from 'react';++import { useCallbackRef } from '@/hooks/use-callback-ref';++export function useDebouncedCallback<T extends (...args: never[]) => unknown>(+ callback: T,+ delay: number,+) {+ const handleCallback = useCallbackRef(callback);+ const debounceTimerRef = React.useRef(0);+ React.useEffect(+ () => () => window.clearTimeout(debounceTimerRef.current),+ [],+ );++ const setValue = React.useCallback(+ (...args: Parameters<T>) => {+ window.clearTimeout(debounceTimerRef.current);+ debounceTimerRef.current = window.setTimeout(+ () => handleCallback(...args),+ delay,+ );+ },+ [handleCallback, delay],+ );++ return setValue;+}diff --git a/apps/start/src/hooks/use-event-names.ts b/apps/start/src/hooks/use-event-names.tsnew file mode 100644index 000000000..c81d54f5c--- /dev/null+++ b/apps/start/src/hooks/use-event-names.ts@@ -0,0 +1,13 @@+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';++export function useEventNames(params: any) {+ const trpc = useTRPC();+ const query = useQuery(+ trpc.chart.events.queryOptions(params, {+ enabled: !!params.projectId,+ staleTime: 1000 * 60 * 10,+ }),+ );+ return query.data ?? [];+}diff --git a/apps/start/src/hooks/use-event-properties.ts b/apps/start/src/hooks/use-event-properties.tsnew file mode 100644index 000000000..75e42c2f0--- /dev/null+++ b/apps/start/src/hooks/use-event-properties.ts@@ -0,0 +1,21 @@+import { useTRPC } from '@/integrations/trpc/react';+import type { RouterInputs } from '@/trpc/client';+import { useQuery } from '@tanstack/react-query';++export function useEventProperties(+ params: RouterInputs['chart']['properties'],+ options?: {+ enabled: boolean;+ },+) {+ const trpc = useTRPC();+ const query = useQuery(+ trpc.chart.properties.queryOptions(params, {+ enabled:+ !!params.projectId && typeof options?.enabled !== 'undefined'+ ? options.enabled+ : true,+ }),+ );+ return query.data ?? [];+}diff --git a/apps/dashboard/src/hooks/useEventQueryFilters.ts b/apps/start/src/hooks/use-event-query-filters.tssimilarity index 100%rename from apps/dashboard/src/hooks/useEventQueryFilters.tsrename to apps/start/src/hooks/use-event-query-filters.tsdiff --git a/apps/dashboard/src/hooks/useFormatDateInterval.ts b/apps/start/src/hooks/use-format-date-interval.tssimilarity index 100%rename from apps/dashboard/src/hooks/useFormatDateInterval.tsrename to apps/start/src/hooks/use-format-date-interval.tsdiff --git a/apps/start/src/hooks/use-logout.ts b/apps/start/src/hooks/use-logout.tsnew file mode 100644index 000000000..9fd38e578--- /dev/null+++ b/apps/start/src/hooks/use-logout.ts@@ -0,0 +1,14 @@+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation } from '@tanstack/react-query';++export function useLogout() {+ const trpc = useTRPC();+ const signOut = useMutation(+ trpc.auth.signOut.mutationOptions({+ onSuccess() {+ window.location.href = '/';+ },+ }),+ );+ return signOut;+}diff --git a/apps/dashboard/src/hooks/useNumerFormatter.ts b/apps/start/src/hooks/use-numer-formatter.tssimilarity index 92%rename from apps/dashboard/src/hooks/useNumerFormatter.tsrename to apps/start/src/hooks/use-numer-formatter.tsindex b5e7feb4c..62b0fdbbd 100644--- a/apps/dashboard/src/hooks/useNumerFormatter.ts+++ b/apps/start/src/hooks/use-numer-formatter.ts@@ -3,6 +3,11 @@ import { isNil } from 'ramda';export function fancyMinutes(time: number) {const minutes = Math.floor(time / 60);+ if (minutes > 60) {+ const hours = Math.floor(minutes / 60);+ const remainingMinutes = minutes % 60;+ return `${hours}h ${remainingMinutes}m`;+ }const seconds = round(time - minutes * 60, 0);if (minutes === 0) return `${seconds}s`;return `${minutes}m ${seconds}s`;diff --git a/apps/start/src/hooks/use-page-tabs.ts b/apps/start/src/hooks/use-page-tabs.tsnew file mode 100644index 000000000..b76b95061--- /dev/null+++ b/apps/start/src/hooks/use-page-tabs.ts@@ -0,0 +1,27 @@+import { useLocation } from '@tanstack/react-router';++export function usePageTabs(tabs: { id: string; label: string }[]) {+ const location = useLocation();+ const tab = location.pathname.split('/').pop();++ if (!tab) {+ return {+ activeTab: tabs[0].id,+ tabs,+ };+ }++ const match = tabs.find((t) => t.id === tab);++ if (!match) {+ return {+ activeTab: tabs[0].id,+ tabs,+ };+ }++ return {+ activeTab: match.id,+ tabs,+ };+}diff --git a/apps/start/src/hooks/use-profile-properties.ts b/apps/start/src/hooks/use-profile-properties.tsnew file mode 100644index 000000000..6867eb288--- /dev/null+++ b/apps/start/src/hooks/use-profile-properties.ts@@ -0,0 +1,12 @@+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';++export function useProfileProperties(projectId: string) {+ const trpc = useTRPC();+ const query = useQuery(+ trpc.profile.properties.queryOptions({+ projectId,+ }),+ );+ return query.data ?? [];+}diff --git a/apps/start/src/hooks/use-profile-values.ts b/apps/start/src/hooks/use-profile-values.tsnew file mode 100644index 000000000..71e3feb07--- /dev/null+++ b/apps/start/src/hooks/use-profile-values.ts@@ -0,0 +1,13 @@+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';++export function useProfileValues(projectId: string, property: string) {+ const trpc = useTRPC();+ const query = useQuery(+ trpc.profile.values.queryOptions({+ projectId: projectId,+ property,+ }),+ );+ return query.data?.values ?? [];+}diff --git a/apps/start/src/hooks/use-property-values.ts b/apps/start/src/hooks/use-property-values.tsnew file mode 100644index 000000000..22f0d542c--- /dev/null+++ b/apps/start/src/hooks/use-property-values.ts@@ -0,0 +1,12 @@+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';++export function usePropertyValues(params: any) {+ const trpc = useTRPC();+ const query = useQuery(+ trpc.chart.values.queryOptions(params, {+ enabled: !!params.projectId,+ }),+ );+ return query.data?.values ?? [];+}diff --git a/apps/dashboard/src/hooks/useRechartDataModel.ts b/apps/start/src/hooks/use-rechart-data-model.tssimilarity index 99%rename from apps/dashboard/src/hooks/useRechartDataModel.tsrename to apps/start/src/hooks/use-rechart-data-model.tsindex 08e3e1b6b..320b8d324 100644--- a/apps/dashboard/src/hooks/useRechartDataModel.ts+++ b/apps/start/src/hooks/use-rechart-data-model.ts@@ -1,5 +1,3 @@-'use client';-import type { IChartData } from '@/trpc/client';import { getChartColor } from '@/utils/theme';import { useMemo } from 'react';diff --git a/apps/dashboard/src/hooks/use-scroll-anchor.ts b/apps/start/src/hooks/use-scroll-anchor.tssimilarity index 100%rename from apps/dashboard/src/hooks/use-scroll-anchor.tsrename to apps/start/src/hooks/use-scroll-anchor.tsdiff --git a/apps/start/src/hooks/use-search-query-state.ts b/apps/start/src/hooks/use-search-query-state.tsnew file mode 100644index 000000000..f41746290--- /dev/null+++ b/apps/start/src/hooks/use-search-query-state.ts@@ -0,0 +1,32 @@+import { useDataTablePagination } from '@/components/ui/data-table/data-table-hooks';+import { useQueryState } from 'nuqs';+import { useDebounceValue } from './use-debounce-value';++export function useSearchQueryState(props?: {+ searchKey?: string;+ debounceMs?: number;+}) {+ const searchKey = props?.searchKey ?? 'search';+ const debounceMs = props?.debounceMs ?? 500;+ const { page, setPage } = useDataTablePagination();+ const [search, setSearch] = useQueryState(searchKey, {+ defaultValue: '',+ clearOnDefault: true,+ limitUrlUpdates: {+ method: 'debounce',+ timeMs: debounceMs,+ },+ });+ const debouncedSearch = useDebounceValue(search, debounceMs);++ return {+ search,+ debouncedSearch,+ setSearch: (value: string) => {+ if (page !== 1) {+ void setPage(1);+ }+ setSearch(value);+ },+ };+}diff --git a/apps/start/src/hooks/use-session-extension.ts b/apps/start/src/hooks/use-session-extension.tsnew file mode 100644index 000000000..fa33e48b8--- /dev/null+++ b/apps/start/src/hooks/use-session-extension.ts@@ -0,0 +1,35 @@+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation, useQuery } from '@tanstack/react-query';+import { useRouteContext, useRouter } from '@tanstack/react-router';+import { useEffect, useRef } from 'react';++export function useSessionExtension() {+ const trpc = useTRPC();+ const context = useRouteContext({+ strict: false,+ });+ const extendMutation = useMutation(trpc.auth.extendSession.mutationOptions());+ const intervalRef = useRef<NodeJS.Timeout>(null);+ const session = context.session?.session;++ useEffect(() => {+ if (!session) return;++ const extendSessionFn = () => extendMutation.mutate();++ intervalRef.current = setInterval(+ () => {+ extendMutation.mutate();+ },+ 1000 * 60 * 5,+ );++ extendSessionFn();++ return () => {+ if (intervalRef.current) {+ clearInterval(intervalRef.current);+ }+ };+ }, [session]);+}diff --git a/apps/start/src/hooks/use-theme.ts b/apps/start/src/hooks/use-theme.tsnew file mode 100644index 000000000..1bb95f21a--- /dev/null+++ b/apps/start/src/hooks/use-theme.ts@@ -0,0 +1 @@+export { useTheme } from '@/components/theme-provider';diff --git a/apps/dashboard/src/hooks/useThrottle.ts b/apps/start/src/hooks/use-throttle.tssimilarity index 100%rename from apps/dashboard/src/hooks/useThrottle.tsrename to apps/start/src/hooks/use-throttle.tsdiff --git a/apps/dashboard/src/hooks/useVisibleSeries.ts b/apps/start/src/hooks/use-visible-series.tssimilarity index 98%rename from apps/dashboard/src/hooks/useVisibleSeries.tsrename to apps/start/src/hooks/use-visible-series.tsindex 27e6bbd56..2b6b5cbc1 100644--- a/apps/dashboard/src/hooks/useVisibleSeries.ts+++ b/apps/start/src/hooks/use-visible-series.ts@@ -1,5 +1,3 @@-'use client';-import type { IChartData } from '@/trpc/client';import { useEffect, useMemo, useState } from 'react';diff --git a/apps/dashboard/src/hooks/useWS.ts b/apps/start/src/hooks/use-ws.tssimilarity index 75%rename from apps/dashboard/src/hooks/useWS.tsrename to apps/start/src/hooks/use-ws.tsindex 542b26b0b..b3f01b0eb 100644--- a/apps/dashboard/src/hooks/useWS.ts+++ b/apps/start/src/hooks/use-ws.ts@@ -1,15 +1,15 @@-'use client';-import debounce from 'lodash.debounce';-import { use, useEffect, useMemo, useState } from 'react';-import useWebSocket from 'react-use-websocket';+import { useEffect, useMemo, useState } from 'react';+import { useWebSocket } from 'react-use-websocket/dist/lib/use-websocket';import { getSuperJson } from '@openpanel/json';+import { useAppContext } from './use-app-context';type UseWSOptions = {debounce?: {delay: number;- } & Parameters<typeof debounce>[2];+ maxWait?: number;+ };};export default function useWS<T>(@@ -17,9 +17,8 @@ export default function useWS<T>(onMessage: (event: T) => void,options?: UseWSOptions,) {- const ws = String(process.env.NEXT_PUBLIC_API_URL)- .replace(/^https/, 'wss')- .replace(/^http/, 'ws');+ const context = useAppContext();+ const ws = context.apiUrl.replace(/^https/, 'wss').replace(/^http/, 'ws');const [baseUrl, setBaseUrl] = useState(`${ws}${path}`);const debouncedOnMessage = useMemo(() => {diff --git a/apps/start/src/integrations/tanstack-query/devtools.tsx b/apps/start/src/integrations/tanstack-query/devtools.tsxnew file mode 100644index 000000000..e1c0fcf0c--- /dev/null+++ b/apps/start/src/integrations/tanstack-query/devtools.tsx@@ -0,0 +1,6 @@+import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools';++export default {+ name: 'Tanstack Query',+ render: <ReactQueryDevtoolsPanel />,+};diff --git a/apps/start/src/integrations/tanstack-query/root-provider.tsx b/apps/start/src/integrations/tanstack-query/root-provider.tsxnew file mode 100644index 000000000..2e53bdf2c--- /dev/null+++ b/apps/start/src/integrations/tanstack-query/root-provider.tsx@@ -0,0 +1,86 @@+import { QueryClient } from '@tanstack/react-query';+import { createTRPCClient, httpLink } from '@trpc/client';+import { createTRPCOptionsProxy } from '@trpc/tanstack-react-query';+import superjson from 'superjson';++import { TRPCProvider } from '@/integrations/trpc/react';+import type { AppRouter } from '@openpanel/trpc';+import { createIsomorphicFn } from '@tanstack/react-start';+import { getRequestHeaders } from '@tanstack/react-start/server';+import { useMemo } from 'react';++type Headers = ReturnType<typeof getRequestHeaders>;++export const getIsomorphicHeaders = createIsomorphicFn()+ .server(() => {+ return getRequestHeaders();+ })+ .client(() => ({}) as Headers);++// Create a function that returns a tRPC client with optional cookies+export function createTRPCClientWithHeaders(apiUrl: string) {+ return createTRPCClient<AppRouter>({+ links: [+ httpLink({+ transformer: superjson,+ url: `${apiUrl}/trpc`,+ headers: () => getIsomorphicHeaders(),+ fetch: (url, options) => {+ return fetch(url, {+ ...options,+ mode: 'cors',+ credentials: 'include',+ });+ },+ }),+ ],+ });+}++export function getContext(apiUrl: string) {+ const queryClient = new QueryClient({+ defaultOptions: {+ queries: {+ staleTime: 1000 * 60 * 5,+ gcTime: 1000 * 60 * 10,+ refetchOnWindowFocus: false,+ refetchOnMount: false,+ refetchOnReconnect: false,+ },+ dehydrate: { serializeData: superjson.serialize },+ hydrate: { deserializeData: superjson.deserialize },+ },+ });++ // Create a tRPC client with cookies if provided+ const client = createTRPCClientWithHeaders(apiUrl);++ const serverHelpers = createTRPCOptionsProxy({+ client: client,+ queryClient: queryClient,+ });+ return {+ queryClient,+ trpc: serverHelpers,+ };+}++export function Provider({+ children,+ queryClient,+ apiUrl,+}: {+ children: React.ReactNode;+ queryClient: QueryClient;+ apiUrl: string;+}) {+ const trpcClient = useMemo(+ () => createTRPCClientWithHeaders(apiUrl),+ [apiUrl],+ );+ return (+ <TRPCProvider trpcClient={trpcClient} queryClient={queryClient}>+ {children}+ </TRPCProvider>+ );+}diff --git a/apps/start/src/integrations/trpc/react.ts b/apps/start/src/integrations/trpc/react.tsnew file mode 100644index 000000000..5bec27132--- /dev/null+++ b/apps/start/src/integrations/trpc/react.ts@@ -0,0 +1,21 @@+import type { AppRouter } from '@openpanel/trpc';+import type { TRPCClientErrorBase } from '@trpc/client';+import { createTRPCContext } from '@trpc/tanstack-react-query';+import { type ExternalToast, toast } from 'sonner';++export const { TRPCProvider, useTRPC } = createTRPCContext<AppRouter>();++export function handleError(error: TRPCClientErrorBase<any>) {+ toast('Error', {+ description: error.message,+ });+}++export function handleErrorToastOptions(options: ExternalToast) {+ return (error: TRPCClientErrorBase<any>) => {+ toast('Error', {+ description: error.message,+ ...options,+ });+ };+}diff --git a/apps/start/src/lib/utils.ts b/apps/start/src/lib/utils.tsnew file mode 100644index 000000000..9ad0df426--- /dev/null+++ b/apps/start/src/lib/utils.ts@@ -0,0 +1,6 @@+import { type ClassValue, clsx } from 'clsx';+import { twMerge } from 'tailwind-merge';++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs));+}diff --git a/apps/start/src/logo.svg b/apps/start/src/logo.svgnew file mode 100644index 000000000..d6c2da204--- /dev/null+++ b/apps/start/src/logo.svg@@ -0,0 +1,44 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg id="Layer_1"+ xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 841.9 595.3">+ <!-- Generator: Adobe Illustrator 29.3.0, SVG Export Plug-In . SVG Version: 2.1.0 Build 146) -->+ <defs>+ <style>+ .st0 {+ fill: #9ae7fc;+ }++ .st1 {+ fill: #61dafb;+ }+ </style>+ </defs>+ <g>+ <path class="st1" d="M666.3,296.5c0-32.5-40.7-63.3-103.1-82.4,14.4-63.6,8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6,0,8.3.9,11.4,2.6,13.6,7.8,19.5,37.5,14.9,75.7-1.1,9.4-2.9,19.3-5.1,29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50,32.6-30.3,63.2-46.9,84-46.9v-22.3c-27.5,0-63.5,19.6-99.9,53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7,0,51.4,16.5,84,46.6-14,14.7-28,31.4-41.3,49.9-22.6,2.4-44,6.1-63.6,11-2.3-10-4-19.7-5.2-29-4.7-38.2,1.1-67.9,14.6-75.8,3-1.8,6.9-2.6,11.5-2.6v-22.3c-8.4,0-16,1.8-22.6,5.6-28.1,16.2-34.4,66.7-19.9,130.1-62.2,19.2-102.7,49.9-102.7,82.3s40.7,63.3,103.1,82.4c-14.4,63.6-8,114.2,20.2,130.4,6.5,3.8,14.1,5.6,22.5,5.6,27.5,0,63.5-19.6,99.9-53.6,36.4,33.8,72.4,53.2,99.9,53.2,8.4,0,16-1.8,22.6-5.6,28.1-16.2,34.4-66.7,19.9-130.1,62-19.1,102.5-49.9,102.5-82.3zm-130.2-66.7c-3.7,12.9-8.3,26.2-13.5,39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4,14.2,2.1,27.9,4.7,41,7.9zm-45.8,106.5c-7.8,13.5-15.8,26.3-24.1,38.2-14.9,1.3-30,2-45.2,2s-30.2-.7-45-1.9c-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8,6.2-13.4,13.2-26.8,20.7-39.9,7.8-13.5,15.8-26.3,24.1-38.2,14.9-1.3,30-2,45.2-2s30.2.7,45,1.9c8.3,11.9,16.4,24.6,24.2,38,7.6,13.1,14.5,26.4,20.8,39.8-6.3,13.4-13.2,26.8-20.7,39.9zm32.3-13c5.4,13.4,10,26.8,13.8,39.8-13.1,3.2-26.9,5.9-41.2,8,4.9-7.7,9.8-15.6,14.4-23.7,4.6-8,8.9-16.1,13-24.1zm-101.4,106.7c-9.3-9.6-18.6-20.3-27.8-32,9,.4,18.2.7,27.5.7s18.7-.2,27.8-.7c-9,11.7-18.3,22.4-27.5,32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9,3.7-12.9,8.3-26.2,13.5-39.5,4.1,8,8.4,16,13.1,24s9.5,15.8,14.4,23.4zm73.9-208.1c9.3,9.6,18.6,20.3,27.8,32-9-.4-18.2-.7-27.5-.7s-18.7.2-27.8.7c9-11.7,18.3-22.4,27.5-32zm-74,58.9c-4.9,7.7-9.8,15.6-14.4,23.7-4.6,8-8.9,16-13,24-5.4-13.4-10-26.8-13.8-39.8,13.1-3.1,26.9-5.8,41.2-7.9zm-90.5,125.2c-35.4-15.1-58.3-34.9-58.3-50.6s22.9-35.6,58.3-50.6c8.6-3.7,18-7,27.7-10.1,5.7,19.6,13.2,40,22.5,60.9-9.2,20.8-16.6,41.1-22.2,60.6-9.9-3.1-19.3-6.5-28-10.2zm53.8,142.9c-13.6-7.8-19.5-37.5-14.9-75.7,1.1-9.4,2.9-19.3,5.1-29.4,19.6,4.8,41,8.5,63.5,10.9,13.5,18.5,27.5,35.3,41.6,50-32.6,30.3-63.2,46.9-84,46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7,38.2-1.1,67.9-14.6,75.8-3,1.8-6.9,2.6-11.5,2.6-20.7,0-51.4-16.5-84-46.6,14-14.7,28-31.4,41.3-49.9,22.6-2.4,44-6.1,63.6-11,2.3,10.1,4.1,19.8,5.2,29.1zm38.5-66.7c-8.6,3.7-18,7-27.7,10.1-5.7-19.6-13.2-40-22.5-60.9,9.2-20.8,16.6-41.1,22.2-60.6,9.9,3.1,19.3,6.5,28.1,10.2,35.4,15.1,58.3,34.9,58.3,50.6,0,15.7-23,35.6-58.4,50.6zm-264.9-268.7z"/>+ <circle class="st1" cx="420.9" cy="296.5" r="45.7"/>+ <path class="st1" d="M520.5,78.1"/>+ </g>+ <circle class="st0" cx="420.8" cy="296.6" r="43"/>+ <path class="st1" d="M466.1,296.6c0,25-20.2,45.2-45.2,45.2s-45.2-20.2-45.2-45.2,20.2-45.2,45.2-45.2,45.2,20.2,45.2,45.2ZM386,295.6v-6.3c0-1.1,1.2-5.1,1.8-6.2,1-1.9,2.9-3.5,4.6-4.7l-3.4-3.4c4-3.6,9.4-3.7,13.7-.7,1.9-4.7,6.6-7.1,11.6-6.7l-.8,4.2c5.9.2,13.1,4.1,13.1,10.8s0,.5-.7.7c-1.7.3-3.4-.4-5-.6s-1.2-.4-1.2.3,2.5,4.1,3,5.5,1,3.5.8,5.3c-5.6-.8-10.5-3.2-14.8-6.7.3,2.6,4.1,21.7,5.3,21.9s.8-.6,1-1.1,1.3-6.3,1.3-6.7c0-1-1.7-1.8-2.2-2.8-1.2-2.7,1.3-4.7,3.7-3.3s5.2,6.2,7.5,7.3,13,1.4,14.8,3.3-2.9,4.6-1.5,7.6c6.7-2.6,13.5-3.3,20.6-2.5,3.1-9.7,3.1-20.3-.9-29.8-7.3,0-14.7-3.6-17.2-10.8-2.5-7.2-.7-8.6-1.3-9.3-.8-1-6.3.6-7.4-1.5s.3-1.1-.2-1.4-1.9-.6-2.6-.8c-26-6.4-51.3,15.7-49.7,42.1,0,1.6,1.6,10.3,2.4,11.1s4.8,0,6.3,0,3.7.3,5,.5c2.9.4,7.2,2.4,9.4,2.5s2.4-.8,2.7-2.4c.4-2.6.5-7.4.5-10.1s-1-7.8-1.3-11.6c-.9-.2-.7,0-.9.5-.7,1.3-1.1,3.2-1.9,4.8s-5.2,8.7-5.7,9-.7-.5-.8-.8c-1.6-3.5-2-7.9-1.9-11.8-.9-1-5.4,4.9-6.7,5.3l-.8-.4v-.3h-.2ZM455.6,276.4c1.1-1.2-6-8.9-7.2-10-3-2.7-5.4-4.5-3.5,1.4s5.7,7.8,10.6,8.5h.1ZM410.9,270.1c-.4-.5-6.1,2.9-5.5,4.6,1.9-1.3,5.9-1.7,5.5-4.6ZM400.4,276.4c-.3-2.4-6.3-2.7-7.2-1s1.6,1.4,1.9,1.4c1.8.3,3.5-.6,5.2-.4h.1ZM411.3,276.8c3.8,1.3,6.6,3.6,10.9,3.7s0-3-1.2-3.9c-2.2-1.7-5.1-2.4-7.8-2.4s-1.6-.3-1.4.4c2.8.6,7.3.7,8.4,3.8-2.3-.3-3.9-1.6-6.2-2s-2.5-.5-2.6.3h0ZM420.6,290.3c-.8-5.1-5.7-10.8-10.9-11.6s-1.3-.4-.8.5,4.7,3.2,5.7,4,4.5,4.2,2.1,3.8-8.4-7.8-9.4-6.7c.2.9,1.1,1.9,1.7,2.7,3,3.8,6.9,6.8,11.8,7.4h-.2ZM395.3,279.8c-5,1.1-6.9,6.3-6.7,11,.7.8,5-3.8,5.4-4.5s2.7-4.6,1.1-4-2.9,4.4-4.2,4.6.2-2.1.4-2.5c1.1-1.6,2.9-3.1,4-4.6h0ZM400.4,281.5c-.4-.5-2,1.3-2.3,1.7-2.9,3.9-2.6,10.2-1.5,14.8.8.2.8-.3,1.2-.7,3-3.8,5.5-10.5,4.5-15.4-2.1,3.1-3.1,7.3-3.6,11h-1.3c0-4,1.9-7.7,3-11.4h0ZM426.9,305.9c0-1.7-1.7-1.4-2.5-1.9s-1.3-1.9-3-1.4c1.3,2.1,3,3.2,5.5,3.4h0ZM417.2,308.5c7.6.7,5.5-1.9,1.4-5.5-1.3-.3-1.5,4.5-1.4,5.5ZM437,309.7c-3.5-.3-7.8-2-11.2-2.1s-1.3,0-1.9.7c4,1.3,8.4,1.7,12.1,4l1-2.5h0ZM420.5,312.8c-7.3,0-15.1,3.7-20.4,8.8s-4.8,5.3-4.8,6.2c0,1.8,8.6,6.2,10.5,6.8,12.1,4.8,27.5,3.5,38.2-4.2s3.1-2.7,0-6.2c-5.7-6.6-14.7-11.4-23.4-11.3h-.1ZM398.7,316.9c-1.4-1.4-5-1.9-7-2.1s-5.3-.3-6.9.6l13.9,1.4h0ZM456.9,314.8h-7.4c-.9,0-4.9,1.1-6,1.6s-.8.6,0,.5c2.4,0,5.1-1,7.6-1.3s3.5.2,5.1,0,1.3-.3.6-.8h0Z"/>+ <path class="st0" d="M386,295.6l.8.4c1.3-.3,5.8-6.2,6.7-5.3,0,3.9.3,8.3,1.9,11.8s0,1.2.8.8,5.1-7.8,5.7-9,1.3-3.5,1.9-4.8,0-.7.9-.5c.3,3.8,1.2,7.8,1.3,11.6s0,7.5-.5,10.1-1.1,2.4-2.7,2.4-6.5-2.1-9.4-2.5-3.7-.5-5-.5-5.4,1.1-6.3,0-2.2-9.5-2.4-11.1c-1.5-26.4,23.7-48.5,49.7-42.1s2.2.4,2.6.8,0,1,.2,1.4c1.1,2,6.5.5,7.4,1.5s.4,6.9,1.3,9.3c2.5,7.2,10,10.9,17.2,10.8,4,9.4,4,20.1.9,29.8-7.2-.7-13.9,0-20.6,2.5-1.3-3.1,4.1-5.1,1.5-7.6s-11.8-1.9-14.8-3.3-5.4-6.1-7.5-7.3-4.9.6-3.7,3.3,2.1,1.8,2.2,2.8-1,6.2-1.3,6.7-.3,1.3-1,1.1c-1.1-.3-5-19.3-5.3-21.9,4.3,3.5,9.2,5.9,14.8,6.7.2-1.9-.3-3.5-.8-5.3s-3-5.1-3-5.5c0-.8.9-.3,1.2-.3,1.6,0,3.3.8,5,.6s.7.3.7-.7c0-6.6-7.2-10.6-13.1-10.8l.8-4.2c-5.1-.3-9.6,2-11.6,6.7-4.3-3-9.8-3-13.7.7l3.4,3.4c-1.8,1.3-3.5,2.8-4.6,4.7s-1.8,5.1-1.8,6.2v6.6h.2ZM431.6,265c7.8,2.1,8.7-3.5.2-1.3l-.2,1.3ZM432.4,270.9c.3.6,6.4-.4,5.8-2.3s-4.6.6-5.7.6l-.2,1.7h.1ZM434.5,276c.8,1.2,5.7-1.8,5.5-2.7-.4-1.9-6.6,1.2-5.5,2.7ZM442.9,276.4c-.9-.9-5,2.8-4.6,4,.6,2.4,5.7-3,4.6-4ZM445.1,279.9c-.3.2-3.1,4.6-1.5,5s3.5-3.4,3.5-4-1.3-1.3-2-.9h0ZM448.9,287.4c2.1.8,3.8-5.1,2.3-5.5-1.9-.6-2.6,5.1-2.3,5.5ZM457.3,288.6c.5-1.7,1.1-4.7-1-5.5-1,.3-.6,3.9-.6,4.8l.3.5,1.3.2h0Z"/>+ <path class="st0" d="M455.6,276.4c-5-.8-9.1-3.6-10.6-8.5s.5-4,3.5-1.4,8.3,8.7,7.2,10h-.1Z"/>+ <path class="st0" d="M420.6,290.3c-4.9-.6-8.9-3.6-11.8-7.4s-1.5-1.8-1.7-2.7c1-1,8.5,6.6,9.4,6.7,2.4.4-1.8-3.5-2.1-3.8-1-.8-5.4-3.5-5.7-4-.4-.8.5-.5.8-.5,5.2.8,10.1,6.6,10.9,11.6h.2Z"/>+ <path class="st0" d="M400.4,281.5c-1.1,3.7-3,7.3-3,11.4h1.3c.5-3.7,1.5-7.8,3.6-11,1,4.8-1.5,11.6-4.5,15.4s-.4.8-1.2.7c-1.1-4.5-1.3-10.8,1.5-14.8s1.9-2.2,2.3-1.7h0Z"/>+ <path class="st0" d="M411.3,276.8c0-.8,2.1-.4,2.6-.3,2.4.4,4,1.7,6.2,2-1.2-3.1-5.7-3.2-8.4-3.8,0-.8.9-.4,1.4-.4,2.8,0,5.6.7,7.8,2.4,2.2,1.7,4,4,1.2,3.9-4.3,0-7.1-2.4-10.9-3.7h0Z"/>+ <path class="st0" d="M395.3,279.8c-1.1,1.6-3,3-4,4.6s-1.9,2.8-.4,2.5,2.8-4,4.2-4.6-.9,3.6-1.1,4c-.4.7-4.7,5.2-5.4,4.5-.2-4.6,1.8-9.9,6.7-11h0Z"/>+ <path class="st0" d="M437,309.7l-1,2.5c-3.6-2.3-8-2.8-12.1-4,.5-.7,1.1-.7,1.9-.7,3.4,0,7.8,1.8,11.2,2.1h0Z"/>+ <path class="st0" d="M417.2,308.5c0-1,0-5.8,1.4-5.5,4,3.5,6.1,6.2-1.4,5.5Z"/>+ <path class="st0" d="M400.4,276.4c-1.8-.3-3.5.7-5.2.4s-2.3-.8-1.9-1.4c.8-1.6,6.9-1.4,7.2,1h-.1Z"/>+ <path class="st0" d="M410.9,270.1c.4,3-3.6,3.3-5.5,4.6-.6-1.8,5-5.1,5.5-4.6Z"/>+ <path class="st0" d="M426.9,305.9c-2.5-.2-4.1-1.3-5.5-3.4,1.7-.4,2,.8,3,1.4s2.6.3,2.5,1.9h0Z"/>+ <path class="st1" d="M432.4,270.9l.2-1.7c1.1,0,5.1-2.2,5.7-.6s-5.5,2.9-5.8,2.3h-.1Z"/>+ <path class="st1" d="M431.6,265l.2-1.3c8.4-2.1,7.7,3.4-.2,1.3Z"/>+ <path class="st1" d="M434.5,276c-1.1-1.5,5.1-4.6,5.5-2.7s-4.6,4-5.5,2.7Z"/>+ <path class="st1" d="M442.9,276.4c1.1,1.1-4,6.4-4.6,4s3.7-4.9,4.6-4Z"/>+ <path class="st1" d="M445.1,279.9c.7-.4,2.1,0,2,.9s-2.4,4.4-3.5,4,1.3-4.8,1.5-5h0Z"/>+ <path class="st1" d="M448.9,287.4c-.3-.3.4-6.1,2.3-5.5,1.4.4-.2,6.2-2.3,5.5Z"/>+ <path class="st1" d="M457.3,288.6l-1.3-.2-.3-.5c0-.9-.4-4.6.6-4.8,2.1.8,1.5,3.8,1,5.5h0Z"/>+ <path class="st0" d="M420.5,312.8c8.9,0,17.9,4.7,23.4,11.3,5.6,6.6,3.8,3.5,0,6.2-10.7,7.7-26.1,9-38.2,4.2-1.9-.8-10.5-5.1-10.5-6.8s4-5.3,4.8-6.2c5.3-5,13.1-8.6,20.4-8.8h.1Z"/>+ <path class="st0" d="M398.7,316.9l-13.9-1.4c1.7-1,5-.8,6.9-.6s5.6.7,7,2.1h0Z"/>+ <path class="st0" d="M456.9,314.8c.7.5,0,.8-.6.8-1.6.2-3.5-.2-5.1,0-2.4.3-5.2,1.2-7.6,1.3s-1.1,0,0-.5,5.1-1.6,6-1.6h7.4,0Z"/>+</svg>\ No newline at end of filediff --git a/apps/dashboard/src/modals/Instructions.tsx b/apps/start/src/modals/Instructions.tsxsimilarity index 100%rename from apps/dashboard/src/modals/Instructions.tsxrename to apps/start/src/modals/Instructions.tsxdiff --git a/apps/dashboard/src/modals/Modal/Container.tsx b/apps/start/src/modals/Modal/Container.tsxsimilarity index 82%rename from apps/dashboard/src/modals/Modal/Container.tsxrename to apps/start/src/modals/Modal/Container.tsxindex bf6855581..568b66e2a 100644--- a/apps/dashboard/src/modals/Modal/Container.tsx+++ b/apps/start/src/modals/Modal/Container.tsx@@ -1,7 +1,5 @@-'use client';-import { Button } from '@/components/ui/button';-import { DialogContent } from '@/components/ui/dialog';+import { DialogContent, DialogTitle } from '@/components/ui/dialog';import { cn } from '@/utils/cn';import type { DialogContentProps } from '@radix-ui/react-dialog';import { X } from 'lucide-react';@@ -35,11 +33,10 @@ export function ModalHeader({'relative -m-6 mb-4 flex justify-between rounded-t-lg p-6 pb-0',className,)}- style={{}}>- <div className="row relative w-full items-start justify-between gap-4">- <div className="col mt-1 flex-1 gap-2">- <div className="text-xl font-semibold">{title}</div>+ <div className="row relative w-full justify-between gap-4">+ <div className="col flex-1 gap-2">+ <DialogTitle>{title}</DialogTitle>{!!text && (<div className="text-lg text-muted-foreground leading-normal">{text}@@ -51,6 +48,7 @@ export function ModalHeader({variant="ghost"size="sm"onClick={() => (onClose ? onClose() : popModal())}+ className="-mt-2"><X className="h-4 w-4" /><span className="sr-only">Close</span>diff --git a/apps/dashboard/src/modals/AddClient.tsx b/apps/start/src/modals/add-client.tsxsimilarity index 87%rename from apps/dashboard/src/modals/AddClient.tsxrename to apps/start/src/modals/add-client.tsxindex 7e1bc88a8..12d8e9b00 100644--- a/apps/dashboard/src/modals/AddClient.tsx+++ b/apps/start/src/modals/add-client.tsx@@ -1,22 +1,21 @@-'use client';-import { CreateClientSuccess } from '@/components/clients/create-client-success';import { Button, buttonVariants } from '@/components/ui/button';import { Combobox } from '@/components/ui/combobox';import { DialogFooter } from '@/components/ui/dialog';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';-import { useAppParams } from '@/hooks/useAppParams';-import { api, handleError } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { handleError } from '@/integrations/trpc/react';import { cn } from '@/utils/cn';import { zodResolver } from '@hookform/resolvers/zod';import { SaveIcon } from 'lucide-react';-import { useRouter } from 'next/navigation';import type { SubmitHandler } from 'react-hook-form';import { Controller, useForm } from 'react-hook-form';import { toast } from 'sonner';import { z } from 'zod';+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation, useQueryClient } from '@tanstack/react-query';import { popModal } from '.';import { ModalContent, ModalHeader } from './Modal/Container';@@ -29,7 +28,6 @@ type IForm = z.infer<typeof validation>;export default function AddClient() {const { organizationId, projectId } = useAppParams();- const router = useRouter();const form = useForm<IForm>({resolver: zodResolver(validation),defaultValues: {@@ -37,16 +35,20 @@ export default function AddClient() {type: 'write',},});- const mutation = api.client.create.useMutation({- onError: handleError,- onSuccess() {- toast.success('Client created');- router.refresh();- },- });- const query = api.project.list.useQuery({- organizationId,- });+ const queryClient = useQueryClient();+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.client.create.mutationOptions({+ onSuccess() {+ toast.success('Client created successfully');+ queryClient.invalidateQueries(+ trpc.project.getProjectWithClients.pathFilter(),+ );+ },+ onError: handleError,+ }),+ );+const onSubmit: SubmitHandler<IForm> = (values) => {mutation.mutate({name: values.name,@@ -146,7 +148,7 @@ export default function AddClient() {<Buttontype="submit"icon={SaveIcon}- loading={mutation.isLoading}+ loading={mutation.isPending}>Create</Button>diff --git a/apps/dashboard/src/modals/AddDashboard.tsx b/apps/start/src/modals/add-dashboard.tsxsimilarity index 63%rename from apps/dashboard/src/modals/AddDashboard.tsxrename to apps/start/src/modals/add-dashboard.tsxindex 9dc5b5183..0e2fe0081 100644--- a/apps/dashboard/src/modals/AddDashboard.tsx+++ b/apps/start/src/modals/add-dashboard.tsx@@ -1,10 +1,12 @@import { ButtonContainer } from '@/components/button-container';import { InputWithLabel } from '@/components/forms/input-with-label';import { Button } from '@/components/ui/button';-import { useAppParams } from '@/hooks/useAppParams';-import { api, handleError } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import { handleError } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';-import { useRouter } from 'next/navigation';+import { useMutation, useQueryClient } from '@tanstack/react-query';+import { useRouter } from '@tanstack/react-router';import { useForm } from 'react-hook-form';import { toast } from 'sonner';import { z } from 'zod';@@ -21,6 +23,8 @@ type IForm = z.infer<typeof validator>;export default function AddDashboard() {const { projectId, organizationId } = useAppParams();const router = useRouter();+ const trpc = useTRPC();+ const queryClient = useQueryClient();const { register, handleSubmit, formState } = useForm<IForm>({resolver: zodResolver(validator),@@ -29,17 +33,26 @@ export default function AddDashboard() {},});- const mutation = api.dashboard.create.useMutation({- onError: handleError,- onSuccess(res) {- router.push(`/${organizationId}/${projectId}/dashboards/${res.id}`);- toast('Success', {- description: 'Dashboard created.',- });- popModal();- router.refresh();- },- });+ const mutation = useMutation(+ trpc.dashboard.create.mutationOptions({+ onSuccess(res) {+ router.navigate({+ to: '/$organizationId/$projectId/dashboards/$dashboardId',+ params: {+ organizationId,+ projectId,+ dashboardId: res.id,+ },+ });+ toast('Success', {+ description: 'Dashboard created.',+ });+ queryClient.invalidateQueries(trpc.dashboard.pathFilter());+ popModal();+ },+ onError: handleError,+ }),+ );return (<ModalContent>diff --git a/apps/dashboard/src/modals/add-integration.tsx b/apps/start/src/modals/add-integration.tsxsimilarity index 82%rename from apps/dashboard/src/modals/add-integration.tsxrename to apps/start/src/modals/add-integration.tsxindex 1981c2c6d..abd077fdd 100644--- a/apps/dashboard/src/modals/add-integration.tsx+++ b/apps/start/src/modals/add-integration.tsx@@ -1,6 +1,4 @@-'use client';--import { api } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';import { DiscordIntegrationForm } from '@/components/integrations/forms/discord-integration';import { SlackIntegrationForm } from '@/components/integrations/forms/slack-integration';@@ -9,8 +7,7 @@ import { IntegrationCardContent } from '@/components/integrations/integration-caimport { INTEGRATIONS } from '@/components/integrations/integrations';import { SheetContent } from '@/components/ui/sheet';import type { IIntegrationConfig } from '@openpanel/validation';-import { useQueryClient } from '@tanstack/react-query';-import { getQueryKey } from '@trpc/react-query';+import { useQuery, useQueryClient } from '@tanstack/react-query';import { useQueryState } from 'nuqs';import { toast } from 'sonner';import { popModal } from '.';@@ -21,13 +18,16 @@ interface Props {type: IIntegrationConfig['type'];}export default function AddIntegration(props: Props) {- const query = api.integration.get.useQuery(- {- id: props.id ?? '',- },- {- enabled: !!props.id,- },+ const trpc = useTRPC();+ const query = useQuery(+ trpc.integration.get.queryOptions(+ {+ id: props.id ?? '',+ },+ {+ enabled: !!props.id,+ },+ ),);const integration = INTEGRATIONS.find((i) => i.type === props.type);@@ -50,10 +50,10 @@ export default function AddIntegration(props: Props) {const handleSuccess = () => {toast.success('Integration created');popModal();- client.refetchQueries([- getQueryKey(api.integration.list),- getQueryKey(api.integration.get, { id: props.id }),- ]);+ client.invalidateQueries(trpc.integration.list.queryFilter());+ client.invalidateQueries(+ trpc.integration.get.queryFilter({ id: props.id }),+ );if (tab !== undefined) {setTab('installed');}diff --git a/apps/dashboard/src/modals/add-notification-rule.tsx b/apps/start/src/modals/add-notification-rule.tsxsimilarity index 91%rename from apps/dashboard/src/modals/add-notification-rule.tsxrename to apps/start/src/modals/add-notification-rule.tsxindex 4cab85351..fd5542f34 100644--- a/apps/dashboard/src/modals/add-notification-rule.tsx+++ b/apps/start/src/modals/add-notification-rule.tsx@@ -1,10 +1,8 @@-'use client';--import { type RouterOutputs, api } from '@/trpc/client';+import type { RouterOutputs } from '@/trpc/client';import { SheetContent } from '@/components/ui/sheet';import { useQueryClient } from '@tanstack/react-query';-import { getQueryKey } from '@trpc/react-query';+import { toast } from 'sonner';import { popModal } from '.';import { ModalHeader } from './Modal/Container';@@ -17,12 +15,14 @@ import { Combobox } from '@/components/ui/combobox';import { ComboboxAdvanced } from '@/components/ui/combobox-advanced';import { ComboboxEvents } from '@/components/ui/combobox-events';import { Textarea } from '@/components/ui/textarea';-import { useAppParams } from '@/hooks/useAppParams';-import { useEventNames } from '@/hooks/useEventNames';-import { useEventProperties } from '@/hooks/useEventProperties';+import { useAppParams } from '@/hooks/use-app-params';+import { useEventNames } from '@/hooks/use-event-names';+import { useEventProperties } from '@/hooks/use-event-properties';+import { useTRPC } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';import { shortId } from '@openpanel/common';import { zCreateNotificationRule } from '@openpanel/validation';+import { useMutation, useQuery } from '@tanstack/react-query';import { FilterIcon, PlusIcon, SaveIcon, TrashIcon } from 'lucide-react';import {Controller,@@ -66,19 +66,27 @@ export default function AddNotificationRule({ rule }: Props) {},},});- const mutation = api.notification.createOrUpdateRule.useMutation({- onSuccess() {- toast.success(- rule ? 'Notification rule updated' : 'Notification rule created',- );- client.refetchQueries(- getQueryKey(api.notification.rules, {- projectId,- }),- );- popModal();- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.notification.createOrUpdateRule.mutationOptions({+ onSuccess() {+ toast.success(+ rule ? 'Notification rule updated' : 'Notification rule created',+ );+ client.refetchQueries(+ trpc.notification.rules.queryFilter({+ projectId,+ }),+ );+ popModal();+ },+ }),+ );+ const integrationsQuery = useQuery(+ trpc.integration.list.queryOptions({+ organizationId: organizationId!,+ }),+ );const eventsArray = useFieldArray({control: form.control,@@ -93,9 +101,6 @@ export default function AddNotificationRule({ rule }: Props) {mutation.mutate(data);};- const integrationsQuery = api.integration.list.useQuery({- organizationId,- });const integrations = integrationsQuery.data ?? [];return (diff --git a/apps/dashboard/src/modals/add-project.tsx b/apps/start/src/modals/add-project.tsxsimilarity index 88%rename from apps/dashboard/src/modals/add-project.tsxrename to apps/start/src/modals/add-project.tsxindex eb44dc2a7..c0bebdb08 100644--- a/apps/dashboard/src/modals/add-project.tsx+++ b/apps/start/src/modals/add-project.tsx@@ -1,5 +1,3 @@-'use client';-import AnimateHeight from '@/components/animate-height';import { ButtonContainer } from '@/components/button-container';import { CreateClientSuccess } from '@/components/clients/create-client-success';@@ -7,10 +5,13 @@ import { CheckboxItem } from '@/components/forms/checkbox-item';import { InputWithLabel, WithLabel } from '@/components/forms/input-with-label';import TagInput from '@/components/forms/tag-input';import { Button } from '@/components/ui/button';-import { useAppParams } from '@/hooks/useAppParams';-import { api, handleError } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import { handleError } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';import { zOnboardingProject } from '@openpanel/validation';+import { useMutation } from '@tanstack/react-query';+import { useNavigate } from '@tanstack/react-router';import {MonitorIcon,SaveIcon,@@ -29,6 +30,7 @@ type IForm = z.infer<typeof validator>;export default function AddProject() {const { organizationId } = useAppParams();+ const navigate = useNavigate();const form = useForm<IForm>({resolver: zodResolver(validator),defaultValues: {@@ -42,12 +44,28 @@ export default function AddProject() {backend: false,},});- const mutation = api.project.create.useMutation({- onError: handleError,- onSuccess: () => {- toast.success('Project created');- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.project.create.mutationOptions({+ onError: handleError,+ onSuccess: (res) => {+ toast.success('Project created', {+ description: `${res.name}`,+ action: {+ label: 'View project',+ onClick: () =>+ navigate({+ to: '/$organizationId/$projectId',+ params: {+ organizationId,+ projectId: res.id,+ },+ }),+ },+ });+ },+ }),+ );const onSubmit = (values: IForm) => {mutation.mutate(values);@@ -207,7 +225,7 @@ export default function AddProject() {<ButtonContainer className="justify-end"><Button- loading={mutation.isLoading}+ loading={mutation.isPending}type="submit"icon={SaveIcon}>diff --git a/apps/dashboard/src/modals/AddReference.tsx b/apps/start/src/modals/add-reference.tsxsimilarity index 58%rename from apps/dashboard/src/modals/AddReference.tsxrename to apps/start/src/modals/add-reference.tsxindex 0bfcbf32e..fce6d27a8 100644--- a/apps/dashboard/src/modals/AddReference.tsx+++ b/apps/start/src/modals/add-reference.tsx@@ -1,16 +1,18 @@import { ButtonContainer } from '@/components/button-container';import { InputWithLabel } from '@/components/forms/input-with-label';import { Button } from '@/components/ui/button';-import { useAppParams } from '@/hooks/useAppParams';-import { api, handleError } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { handleError } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';-import { useRouter } from 'next/navigation';-import { useForm } from 'react-hook-form';+import { Controller, useForm } from 'react-hook-form';import { toast } from 'sonner';import type { z } from 'zod';import { zCreateReference } from '@openpanel/validation';+import { InputDateTime } from '@/components/ui/input-date-time';+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation, useQueryClient } from '@tanstack/react-query';import { popModal } from '.';import { ModalContent, ModalHeader } from './Modal/Container';@@ -18,9 +20,8 @@ type IForm = z.infer<typeof zCreateReference>;export default function AddReference() {const { projectId } = useAppParams();- const router = useRouter();-- const { register, handleSubmit, formState } = useForm<IForm>({+ const queryClient = useQueryClient();+ const { register, handleSubmit, formState, control } = useForm<IForm>({resolver: zodResolver(zCreateReference),defaultValues: {title: '',@@ -30,16 +31,19 @@ export default function AddReference() {},});- const mutation = api.reference.create.useMutation({- onError: handleError,- onSuccess() {- router.refresh();- toast('Success', {- description: 'Reference created.',- });- popModal();- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.reference.create.mutationOptions({+ onSuccess() {+ queryClient.invalidateQueries(trpc.reference.pathFilter());+ toast('Success', {+ description: 'Reference created.',+ });+ popModal();+ },+ onError: handleError,+ }),+ );return (<ModalContent>@@ -50,7 +54,13 @@ export default function AddReference() {><InputWithLabel label="Title" {...register('title')} /><InputWithLabel label="Description" {...register('description')} />- <InputWithLabel label="Datetime" {...register('datetime')} />+ <Controller+ control={control}+ name="datetime"+ render={({ field }) => (+ <InputDateTime {...field} label="Date and time" />+ )}+ /><ButtonContainer><Button type="button" variant="outline" onClick={() => popModal()}>Canceldiff --git a/apps/dashboard/src/modals/Confirm.tsx b/apps/start/src/modals/confirm.tsxsimilarity index 100%rename from apps/dashboard/src/modals/Confirm.tsxrename to apps/start/src/modals/confirm.tsxdiff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/invites/create-invite.tsx b/apps/start/src/modals/create-invite.tsxsimilarity index 83%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/invites/create-invite.tsxrename to apps/start/src/modals/create-invite.tsxindex b8e53c48d..ed0e9543c 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/invites/create-invite.tsx+++ b/apps/start/src/modals/create-invite.tsx@@ -6,36 +6,38 @@ import { ComboboxAdvanced } from '@/components/ui/combobox-advanced';import { Label } from '@/components/ui/label';import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';import {- Sheet,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetTitle,- SheetTrigger,closeSheet,} from '@/components/ui/sheet';-import { useAppParams } from '@/hooks/useAppParams';-import { api } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';import { zodResolver } from '@hookform/resolvers/zod';-import { PlusIcon, SendIcon } from 'lucide-react';-import { useRouter } from 'next/navigation';+import { SendIcon } from 'lucide-react';import { Controller, useForm } from 'react-hook-form';import { toast } from 'sonner';import type { z } from 'zod';+import { useTRPC } from '@/integrations/trpc/react';import type { IServiceProject } from '@openpanel/db';import { zInviteUser } from '@openpanel/validation';+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';type IForm = z.infer<typeof zInviteUser>;-interface Props {- projects: IServiceProject[];-}--export default function CreateInvite({ projects }: Props) {- const router = useRouter();+export default function CreateInvite() {const { organizationId } = useAppParams();+ const trpc = useTRPC();+ const projectsQuery = useQuery(+ trpc.project.list.queryOptions({+ organizationId,+ }),+ );+ const projects = projectsQuery.data ?? [];++ const queryClient = useQueryClient();const { register, handleSubmit, formState, reset, control } = useForm<IForm>({resolver: zodResolver(zInviteUser),@@ -46,24 +48,25 @@ export default function CreateInvite({ projects }: Props) {},});- const mutation = api.organization.inviteUser.useMutation({- onSuccess() {- toast.success('User has been invited');- reset();- router.refresh();- },- onError(error) {- toast.error('Failed to invite user', {- description: error.message,- });- },- });+ const mutation = useMutation(+ trpc.organization.inviteUser.mutationOptions({+ onSuccess() {+ toast.success('User has been invited');+ reset();+ queryClient.invalidateQueries(+ trpc.organization.invitations.queryFilter({ organizationId }),+ );+ },+ onError(error) {+ toast.error('Failed to invite user', {+ description: error.message,+ });+ },+ }),+ );return (- <Sheet onOpenChange={() => mutation.reset()}>- <SheetTrigger asChild>- <Button icon={PlusIcon}>Invite user</Button>- </SheetTrigger>+ <>{mutation.isSuccess ? (<SheetContent><SheetHeader>@@ -171,7 +174,7 @@ export default function CreateInvite({ projects }: Props) {<Buttonicon={SendIcon}type="submit"- loading={mutation.isLoading}+ loading={mutation.isPending}>Invite user</Button>@@ -179,6 +182,6 @@ export default function CreateInvite({ projects }: Props) {</form></SheetContent>)}- </Sheet>+ </>);}diff --git a/apps/dashboard/src/modals/DateRangerPicker.tsx b/apps/start/src/modals/date-ranger-picker.tsxsimilarity index 51%rename from apps/dashboard/src/modals/DateRangerPicker.tsxrename to apps/start/src/modals/date-ranger-picker.tsxindex 11dca618b..7c1142291 100644--- a/apps/dashboard/src/modals/DateRangerPicker.tsx+++ b/apps/start/src/modals/date-ranger-picker.tsx@@ -1,9 +1,12 @@import { Button } from '@/components/ui/button';import { Calendar } from '@/components/ui/calendar';-import { useBreakpoint } from '@/hooks/useBreakpoint';+import { useBreakpoint } from '@/hooks/use-breakpoint';import { subMonths } from 'date-fns';import { useState } from 'react';+import { Input } from '@/components/ui/input';+import { formatDate } from '@/utils/date';+import { CheckIcon, XIcon } from 'lucide-react';import { popModal } from '.';import { ModalContent, ModalHeader } from './Modal/Container';@@ -20,9 +23,9 @@ export default function DateRangerPicker({const { isBelowSm } = useBreakpoint('sm');const [startDate, setStartDate] = useState(initialStartDate);const [endDate, setEndDate] = useState(initialEndDate);+return (- <ModalContent className="max-w-[600px]">- <ModalHeader title="Pick a date range" className="mb-0" />+ <ModalContent className="p-4 md:p-8 min-w-fit"><CalendarinitialFocusmode="range"@@ -44,22 +47,39 @@ export default function DateRangerPicker({}}}numberOfMonths={isBelowSm ? 1 : 2}- className="min-h-[350px] [&_table]:mx-auto [&_table]:w-auto"+ className="mx-auto min-h-[310px] [&_table]:mx-auto [&_table]:w-auto p-0"/>- <Button- className="mt-8"- onClick={() => {- popModal();- if (startDate && endDate) {- onChange({- startDate: startDate,- endDate: endDate,- });- }- }}- >- Select- </Button>+ <div className="col flex-col-reverse md:row gap-2">+ <Button+ type="button"+ variant="outline"+ onClick={() => popModal()}+ icon={XIcon}+ >+ Cancel+ </Button>++ {startDate && endDate && (+ <Button+ type="button"+ className="md:ml-auto"+ onClick={() => {+ popModal();+ if (startDate && endDate) {+ onChange({+ startDate: startDate,+ endDate: endDate,+ });+ }+ }}+ icon={startDate && endDate ? CheckIcon : XIcon}+ >+ {startDate && endDate+ ? `Select ${formatDate(startDate)} - ${formatDate(endDate)}`+ : 'Cancel'}+ </Button>+ )}+ </div></ModalContent>);}diff --git a/apps/start/src/modals/date-time-picker.tsx b/apps/start/src/modals/date-time-picker.tsxnew file mode 100644index 000000000..94de220a8--- /dev/null+++ b/apps/start/src/modals/date-time-picker.tsx@@ -0,0 +1,193 @@+import { Button } from '@/components/ui/button';+import { Calendar } from '@/components/ui/calendar';+import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area';+import { cn } from '@/lib/utils';+import { format } from 'date-fns';+import { CalendarIcon, ClockIcon } from 'lucide-react';+import { useEffect, useRef, useState } from 'react';++import { popModal } from '.';+import { ModalContent, ModalHeader } from './Modal/Container';++// Utility function to round date to nearest 5-minute interval+function roundToNearestFiveMinutes(date: Date): Date {+ const roundedDate = new Date(date);+ const minutes = roundedDate.getMinutes();+ const remainder = minutes % 5;++ if (remainder === 0) {+ return roundedDate;+ }++ // Round to nearest 5-minute interval+ if (remainder >= 2.5) {+ // Round up+ roundedDate.setMinutes(minutes + (5 - remainder));+ } else {+ // Round down+ roundedDate.setMinutes(minutes - remainder);+ }++ // Reset seconds and milliseconds+ roundedDate.setSeconds(0);+ roundedDate.setMilliseconds(0);++ return roundedDate;+}++type Props = {+ onChange: (date: Date) => void;+ initialDate?: Date;+ title?: string;+};++export default function DateTimePicker({+ onChange,+ initialDate,+ title = 'Select Date & Time',+}: Props) {+ const scrollRef = useRef<HTMLDivElement>(null);+ const [selectedDate, setSelectedDate] = useState<Date>(+ roundToNearestFiveMinutes(initialDate || new Date()),+ );++ // Generate all time options with 5-minute intervals+ const generateTimeOptions = () => {+ const times = [];+ for (let hour = 0; hour < 24; hour++) {+ for (let minute = 0; minute < 60; minute += 5) {+ const timeString = `${hour.toString().padStart(2, '0')}:${minute.toString().padStart(2, '0')}`;+ const displayTime = format(new Date(2000, 0, 1, hour, minute), 'HH:mm');+ times.push({ value: timeString, label: displayTime });+ }+ }+ return times;+ };++ const timeOptions = generateTimeOptions();++ function handleDateSelect(date: Date | undefined) {+ if (date) {+ // Preserve the existing time when changing date+ const newDate = new Date(date);+ newDate.setHours(selectedDate.getHours());+ newDate.setMinutes(selectedDate.getMinutes());+ // Round to nearest 5-minute interval+ setSelectedDate(roundToNearestFiveMinutes(newDate));+ }+ }++ function handleTimeSelect(timeValue: string) {+ const [hours, minutes] = timeValue.split(':').map(Number);+ const newDate = new Date(selectedDate);+ newDate.setHours(hours);+ newDate.setMinutes(minutes);+ // Ensure alignment to 5-minute intervals (safety measure)+ setSelectedDate(roundToNearestFiveMinutes(newDate));+ }++ const currentTimeValue = `${selectedDate.getHours().toString().padStart(2, '0')}:${selectedDate.getMinutes().toString().padStart(2, '0')}`;++ // Scroll to selected time when modal opens+ useEffect(() => {+ const buttonSize = 32;+ const buttonMargin = 2;+ const containerPadding = 4;++ const scrollContainer = scrollRef.current;+ const buttonIndex = timeOptions.findIndex(+ (time) => time.value === currentTimeValue,+ );+ const calculatedScrollTo =+ Math.max(0, buttonIndex - 4) * (buttonSize + buttonMargin) ++ containerPadding;++ if (scrollContainer) {+ scrollContainer.scrollTo({+ top: calculatedScrollTo,+ behavior: 'instant',+ });+ }+ }, []); // Empty dependency array to run only on mount++ return (+ <ModalContent className="max-w-[400px]">+ <ModalHeader title={title} />++ <div className="space-y-4">+ {/* Selected Date/Time Display */}+ <div className="rounded-lg border border-dashed bg-muted/50 p-4">+ <div className="flex items-center justify-center space-x-2 text-sm">+ <CalendarIcon className="h-4 w-4 text-muted-foreground" />+ <span className="font-medium">+ {format(selectedDate, 'EEEE, MMMM d, yyyy')}+ </span>+ <div className="h-4 w-px bg-border" />+ <ClockIcon className="h-4 w-4 text-muted-foreground" />+ <span className="font-medium font-mono">+ {format(selectedDate, 'HH:mm')}+ </span>+ </div>+ </div>++ {/* Calendar Section */}+ <div className="row gap-2 h-[333px]">+ <Calendar+ mode="single"+ selected={selectedDate}+ onSelect={handleDateSelect}+ initialFocus+ className="[&_table]:mx-auto [&_table]:w-auto border rounded-lg"+ />+ <ScrollArea+ className="h-full w-full border rounded-lg bg-background/50"+ ref={scrollRef}+ >+ <div className="flex flex-col p-1">+ {timeOptions.map((time) => (+ <Button+ key={time.value}+ size="sm"+ data-value={time.value}+ variant={+ currentTimeValue === time.value ? 'default' : 'ghost'+ }+ className={cn(+ 'w-full mb-0.5 h-8 text-xs font-mono transition-all duration-200 justify-start',+ currentTimeValue === time.value+ ? 'bg-primary text-primary-foreground shadow-sm'+ : 'hover:bg-muted',+ )}+ onClick={() => handleTimeSelect(time.value)}+ >+ {time.label}+ </Button>+ ))}+ </div>+ <ScrollBar orientation="vertical" />+ </ScrollArea>+ </div>++ {/* Action Buttons */}+ <div className="flex gap-3 pt-2">+ <Button+ variant="outline"+ className="flex-1"+ onClick={() => popModal()}+ >+ Cancel+ </Button>+ <Button+ className="flex-1"+ onClick={() => {+ popModal();+ onChange(selectedDate);+ }}+ >+ Confirm Selection+ </Button>+ </div>+ </div>+ </ModalContent>+ );+}diff --git a/apps/dashboard/src/modals/EditClient.tsx b/apps/start/src/modals/edit-client.tsxsimilarity index 69%rename from apps/dashboard/src/modals/EditClient.tsxrename to apps/start/src/modals/edit-client.tsxindex b41d04abc..c88fe41cd 100644--- a/apps/dashboard/src/modals/EditClient.tsx+++ b/apps/start/src/modals/edit-client.tsx@@ -1,9 +1,11 @@import { ButtonContainer } from '@/components/button-container';import { InputWithLabel } from '@/components/forms/input-with-label';import { Button } from '@/components/ui/button';-import { api, handleError } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { handleError } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';-import { useRouter } from 'next/navigation';+import { useMutation, useQueryClient } from '@tanstack/react-query';+import { useRouter } from '@tanstack/react-router';import { useForm } from 'react-hook-form';import { toast } from 'sonner';import { z } from 'zod';@@ -23,7 +25,7 @@ const validator = z.object({type IForm = z.infer<typeof validator>;export default function EditClient({ id, name }: EditClientProps) {- const router = useRouter();+ const queryClient = useQueryClient();const { register, handleSubmit, reset, formState, control, setError } =useForm<IForm>({resolver: zodResolver(validator),@@ -33,17 +35,20 @@ export default function EditClient({ id, name }: EditClientProps) {},});- const mutation = api.client.update.useMutation({- onError: handleError,- onSuccess() {- reset();- toast('Success', {- description: 'Client updated.',- });- popModal();- router.refresh();- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.client.update.mutationOptions({+ onError: handleError,+ onSuccess() {+ reset();+ toast('Success', {+ description: 'Client updated.',+ });+ popModal();+ queryClient.invalidateQueries(trpc.client.list.pathFilter());+ },+ }),+ );return (<ModalContent>diff --git a/apps/dashboard/src/modals/EditDashboard.tsx b/apps/start/src/modals/edit-dashboard.tsxsimilarity index 72%rename from apps/dashboard/src/modals/EditDashboard.tsxrename to apps/start/src/modals/edit-dashboard.tsxindex 1bdad906a..557f463ca 100644--- a/apps/dashboard/src/modals/EditDashboard.tsx+++ b/apps/start/src/modals/edit-dashboard.tsx@@ -1,9 +1,11 @@import { ButtonContainer } from '@/components/button-container';import { InputWithLabel } from '@/components/forms/input-with-label';import { Button } from '@/components/ui/button';-import { api, handleError } from '@/trpc/client';+import { useTRPC } from '@/integrations/trpc/react';+import { handleError } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';-import { useRouter } from 'next/navigation';+import { useMutation, useQueryClient } from '@tanstack/react-query';+import { useRouter } from '@tanstack/react-router';import { useForm } from 'react-hook-form';import { toast } from 'sonner';import { z } from 'zod';@@ -23,7 +25,6 @@ const validator = z.object({type IForm = z.infer<typeof validator>;export default function EditDashboard({ id, name }: EditDashboardProps) {- const router = useRouter();const { register, handleSubmit, reset, formState } = useForm<IForm>({resolver: zodResolver(validator),defaultValues: {@@ -32,17 +33,20 @@ export default function EditDashboard({ id, name }: EditDashboardProps) {},});- const mutation = api.dashboard.update.useMutation({- onError: handleError,- onSuccess() {- reset();- toast('Success', {- description: 'Dashboard updated.',- });- popModal();- router.refresh();- },- });+ const queryClient = useQueryClient();+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.dashboard.update.mutationOptions({+ onSuccess() {+ reset();+ toast('Success', {+ description: 'Dashboard updated.',+ });+ popModal();+ queryClient.invalidateQueries(trpc.dashboard.list.pathFilter());+ },+ }),+ );return (<ModalContent>diff --git a/apps/dashboard/src/modals/edit-event.tsx b/apps/start/src/modals/edit-event.tsxsimilarity index 80%rename from apps/dashboard/src/modals/edit-event.tsxrename to apps/start/src/modals/edit-event.tsxindex 5a246d43e..be2a4d82f 100644--- a/apps/dashboard/src/modals/edit-event.tsx+++ b/apps/start/src/modals/edit-event.tsx@@ -7,13 +7,13 @@ import { Badge } from '@/components/ui/badge';import { Button } from '@/components/ui/button';import { Checkbox } from '@/components/ui/checkbox';import { Label } from '@/components/ui/label';-import { useAppParams } from '@/hooks/useAppParams';-import { api } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';import { cn } from '@/utils/cn';-import { useQueryClient } from '@tanstack/react-query';-import { getQueryKey } from '@trpc/react-query';+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';+import { AnimatePresence, motion } from 'framer-motion';-import { UndoIcon } from 'lucide-react';+import { PaintBucketIcon, UndoIcon } from 'lucide-react';import { useEffect, useState } from 'react';import { toast } from 'sonner';@@ -27,11 +27,14 @@ interface Props {export default function EditEvent({ id }: Props) {const { projectId } = useAppParams();+ const trpc = useTRPC();const client = useQueryClient();- const { data: event } = api.event.byId.useQuery({ id, projectId });+ const { data: event } = useQuery(+ trpc.event.byId.queryOptions({ id, projectId }),+ );- const [selectedIcon, setIcon] = useState(EventIconRecords.default!.icon);+ const [selectedIcon, setIcon] = useState<string | null>(null);const [selectedColor, setColor] = useState(EventIconRecords.default!.color);const [conversion, setConversion] = useState(false);const [step, setStep] = useState<'icon' | 'color'>('icon');@@ -47,17 +50,17 @@ export default function EditEvent({ id }: Props) {}}, [event]);- const SelectedIcon = EventIconMapper[selectedIcon]!;+ const SelectedIcon = selectedIcon ? EventIconMapper[selectedIcon] : null;- const mutation = api.event.updateEventMeta.useMutation({- onSuccess() {- toast('Event updated');- client.refetchQueries({- queryKey: getQueryKey(api.event.events),- });- popModal();- },- });+ const mutation = useMutation(+ trpc.event.updateEventMeta.mutationOptions({+ onSuccess() {+ toast('Event updated');+ client.invalidateQueries(trpc.event.pathFilter());+ popModal();+ },+ }),+ );const getBg = (color: string) => `bg-${color}-200`;const getText = (color: string) => `text-${color}-700`;const iconGrid = 'grid grid-cols-10 gap-4';@@ -67,7 +70,6 @@ export default function EditEvent({ id }: Props) {<ModalHeadertitle={`Edit: ${event?.name}`}text={`Changes here will affect all "${event?.name}" events`}- onClose={() => popModal()}/><div className="col gap-4"><div>@@ -94,7 +96,17 @@ export default function EditEvent({ id }: Props) {exit={{ opacity: 0, x: -20 }}transition={{ duration: 0.15 }}>- <Label className="mb-2 block">Pick an icon</Label>+ <div className="row mb-4 items-center justify-between">+ <div className="font-medium leading-none">Pick an icon</div>+ {+ <button type="button" onClick={() => setStep('color')}>+ <Badge variant="outline">+ Select color+ <PaintBucketIcon className="ml-1 h-3 w-3" />+ </Badge>+ </button>+ }+ </div><InputclassName="mb-4"value={search}@@ -137,7 +149,7 @@ export default function EditEvent({ id }: Props) {<div className="row mb-4 items-center justify-between"><div className="font-medium leading-none">Pick a color</div><button type="button" onClick={() => setStep('icon')}>- <Badge variant="muted">+ <Badge variant="outline">Select icon<UndoIcon className="ml-1 h-3 w-3" /></Badge>@@ -183,13 +195,13 @@ export default function EditEvent({ id }: Props) {<ButtonclassName="mt-8 w-full"- disabled={mutation.isLoading || !event}+ disabled={mutation.isPending || !event}onClick={() =>mutation.mutate({projectId,name: event!.name,- icon: selectedIcon,- color: selectedColor,+ icon: selectedIcon ?? EventIconRecords.default!.icon,+ color: selectedColor ?? EventIconRecords.default!.color,conversion,})}diff --git a/apps/start/src/modals/edit-member.tsx b/apps/start/src/modals/edit-member.tsxnew file mode 100644index 000000000..c1f1bb0e6--- /dev/null+++ b/apps/start/src/modals/edit-member.tsx@@ -0,0 +1,86 @@+import { ButtonContainer } from '@/components/button-container';+import { Button } from '@/components/ui/button';+import { ComboboxAdvanced } from '@/components/ui/combobox-advanced';+import { useTRPC } from '@/integrations/trpc/react';+import { handleError } from '@/integrations/trpc/react';+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';+import { useState } from 'react';+import { toast } from 'sonner';++import type { IServiceMember } from '@openpanel/db';++import { popModal } from '.';+import { ModalContent, ModalHeader } from './Modal/Container';++type EditMemberProps = IServiceMember;++export default function EditMember(member: EditMemberProps) {+ const queryClient = useQueryClient();+ const trpc = useTRPC();++ const [access, setAccess] = useState<string[]>(+ member.access?.map((a) => a.projectId) ?? [],+ );++ const projectsQuery = useQuery(+ trpc.project.list.queryOptions({ organizationId: member.organizationId }),+ );++ const mutation = useMutation(+ trpc.organization.updateMemberAccess.mutationOptions({+ onError(error) {+ handleError(error);+ setAccess(member.access?.map((a) => a.projectId) ?? []);+ },+ onSuccess() {+ toast.success('Access updated');+ // Refresh members list so access column reflects changes+ queryClient.invalidateQueries(trpc.organization.members.pathFilter());+ popModal();+ },+ }),+ );++ const projects = projectsQuery.data ?? [];++ return (+ <ModalContent>+ <ModalHeader+ title={+ member.user+ ? `Edit access for ${[member.user.firstName, member.user.lastName]+ .filter(Boolean)+ .join(' ')}`+ : 'Edit member access'+ }+ />++ <div className="col gap-4">+ <ComboboxAdvanced+ placeholder="Restrict access to projects"+ value={access}+ onChange={(newAccess) => setAccess(newAccess as string[])}+ items={projects.map((p) => ({ label: p.name, value: p.id }))}+ />++ <ButtonContainer>+ <Button type="button" variant="outline" onClick={() => popModal()}>+ Cancel+ </Button>+ <Button+ onClick={() =>+ mutation.mutate({+ userId: member.user!.id,+ organizationId: member.organizationId,+ access: access,+ })+ }+ disabled={mutation.isPending}+ >+ Save+ </Button>+ </ButtonContainer>+ </div>+ </ModalContent>+ );+}diff --git a/apps/start/src/modals/edit-reference.tsx b/apps/start/src/modals/edit-reference.tsxnew file mode 100644index 000000000..f2cc58b27--- /dev/null+++ b/apps/start/src/modals/edit-reference.tsx@@ -0,0 +1,96 @@+import { ButtonContainer } from '@/components/button-container';+import { InputWithLabel } from '@/components/forms/input-with-label';+import { Button } from '@/components/ui/button';+import { InputDateTime } from '@/components/ui/input-date-time';+import { useTRPC } from '@/integrations/trpc/react';+import { handleError } from '@/integrations/trpc/react';+import { zodResolver } from '@hookform/resolvers/zod';+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';+import { Controller, useForm } from 'react-hook-form';+import { toast } from 'sonner';+import { z } from 'zod';++import type { IServiceReference } from '@openpanel/db';++import { popModal } from '.';+import { ModalContent, ModalHeader } from './Modal/Container';++const validator = z.object({+ id: z.string().min(1),+ title: z.string().min(1),+ description: z.string().nullish(),+ datetime: z.string().min(1),+});++type IForm = z.infer<typeof validator>;++type EditReferenceProps = Pick<+ IServiceReference,+ 'id' | 'title' | 'description' | 'date'+>;++export default function EditReference({+ id,+ title,+ description,+ date,+}: EditReferenceProps) {+ const trpc = useTRPC();+ const { handleSubmit, register, control, formState, reset } = useForm<IForm>({+ resolver: zodResolver(validator),+ defaultValues: {+ id,+ title: title ?? '',+ description: description ?? undefined,+ datetime: new Date(date).toISOString(),+ },+ });+ const queryClient = useQueryClient();++ const mutation = useMutation(+ trpc.reference.update.mutationOptions({+ onSuccess() {+ toast('Success', { description: 'Reference updated.' });+ reset();+ queryClient.invalidateQueries(+ trpc.reference.getReferences.pathFilter(),+ );+ queryClient.invalidateQueries(+ trpc.reference.getChartReferences.pathFilter(),+ );+ popModal();+ },+ onError: handleError,+ }),+ );++ return (+ <ModalContent>+ <ModalHeader title="Edit reference" />+ <form+ className="flex flex-col gap-4"+ onSubmit={handleSubmit((values) => {+ mutation.mutate(values);+ })}+ >+ <InputWithLabel label="Title" {...register('title')} />+ <InputWithLabel label="Description" {...register('description')} />+ <Controller+ control={control}+ name="datetime"+ render={({ field }) => (+ <InputDateTime {...field} label="Date and time" />+ )}+ />+ <ButtonContainer>+ <Button type="button" variant="outline" onClick={() => popModal()}>+ Cancel+ </Button>+ <Button type="submit" disabled={!formState.isDirty}>+ Update+ </Button>+ </ButtonContainer>+ </form>+ </ModalContent>+ );+}diff --git a/apps/dashboard/src/modals/EditReport.tsx b/apps/start/src/modals/edit-report.tsxsimilarity index 100%rename from apps/dashboard/src/modals/EditReport.tsxrename to apps/start/src/modals/edit-report.tsxdiff --git a/apps/dashboard/src/modals/event-details.tsx b/apps/start/src/modals/event-details.tsxsimilarity index 55%rename from apps/dashboard/src/modals/event-details.tsxrename to apps/start/src/modals/event-details.tsxindex fae469da2..e0484048d 100644--- a/apps/dashboard/src/modals/event-details.tsx+++ b/apps/start/src/modals/event-details.tsx@@ -2,10 +2,8 @@ import { ReportChartShortcut } from '@/components/report-chart/shortcut';import {useEventQueryFilters,useEventQueryNamesFilter,-} from '@/hooks/useEventQueryFilters';-import { api } from '@/trpc/client';+} from '@/hooks/use-event-query-filters';-import { EventFieldValue } from '@/components/events/event-field-value';import { ProjectLink } from '@/components/links';import {WidgetButtons,@@ -13,14 +11,21 @@ import {} from '@/components/overview/overview-widget';import { SerieIcon } from '@/components/report-chart/common/serie-icon';import { Button } from '@/components/ui/button';+import { FieldValue, KeyValueGrid } from '@/components/ui/key-value-grid';import { Widget, WidgetBody } from '@/components/widget';-import { WidgetTable } from '@/components/widget-table';-import { fancyMinutes } from '@/hooks/useNumerFormatter';-import { camelCaseToWords } from '@/utils/casing';+import { fancyMinutes } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';import { cn } from '@/utils/cn';import { getProfileName } from '@/utils/getters';import type { IClickhouseEvent, IServiceEvent } from '@openpanel/db';-import { ArrowLeftIcon, ArrowRightIcon, FilterIcon, XIcon } from 'lucide-react';+import { useQuery, useSuspenseQuery } from '@tanstack/react-query';+import {+ ArrowLeftIcon,+ ArrowRightIcon,+ FilterIcon,+ Loader2Icon,+ XIcon,+} from 'lucide-react';import { omit } from 'ramda';import { useState } from 'react';import { popModal } from '.';@@ -67,16 +72,29 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {},};const [widget, setWidget] = useState(TABS.essentials);- const [{ event, session }] = api.event.details.useSuspenseQuery({- id,- projectId,- createdAt,- });+ const trpc = useTRPC();+ const query = useQuery(+ trpc.event.details.queryOptions({+ id,+ projectId,+ createdAt,+ }),+ );++ if (!query.data) {+ return <EventDetailsSkeleton />;+ }++ const { event, session } = query.data;const profile = event.profile;const data = (() => {- const data: { name: keyof IServiceEvent; value: any }[] = [+ const data: {+ name: keyof IServiceEvent | string;+ value: any;+ event: IServiceEvent;+ }[] = [{name: 'createdAt',value: event.createdAt,@@ -125,7 +143,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {name: 'model',value: event.model,},- ];+ ].map((item) => ({ ...item, event }));if (widget.id === TABS.detailed.id) {data.length = 0;@@ -135,6 +153,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {data.push({name: name as keyof IServiceEvent,value: value as any,+ event,});}},@@ -153,8 +172,9 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {const properties = Object.entries(event.properties).filter(([name]) => !name.startsWith('__')).map(([name, value]) => ({- name: name as keyof IServiceEvent,- value: value,+ name,+ value,+ event,}));return (@@ -164,7 +184,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {<div className="row items-center justify-between"><div className="title">{event.name}</div><div className="row items-center gap-2 pr-2">- <Button+ {/* <Buttonsize="icon"variant={'ghost'}onClick={() => {@@ -187,7 +207,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {}}><ArrowRightIcon className="size-4" />- </Button>+ </Button> */}<Button size="icon" variant={'ghost'} onClick={() => popModal()}><XIcon className="size-4" /></Button>@@ -195,7 +215,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {</div><WidgetButtons>- {Object.entries(TABS).map(([key, tab]) => (+ {Object.entries(TABS).map(([, tab]) => (<buttonkey={tab.id}type="button"@@ -210,7 +230,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {<WidgetBody className="col gap-4 bg-def-100">{profile && (<ProjectLink- onClick={(e) => popModal()}+ onClick={() => popModal()}href={`/profiles/${profile.id}`}className="card p-4 py-2 col gap-2 hover:bg-def-100">@@ -239,8 +259,8 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {</div>{!!session && (<div className="text-sm">- This session has {session.screen_view_count} screen views and{' '}- {session.event_count} events. Visit duration is{' '}+ This session has {session.screenViewCount} screen views and{' '}+ {session.eventCount} events. Visit duration is{' '}{fancyMinutes(session.duration / 1000)}.</div>)}@@ -252,64 +272,19 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {<div className="mb-2 flex justify-between font-medium"><div>Properties</div></div>- <WidgetTable- className={'card [&>div:first-child]:hidden'}- columnClassName="[&_.cell:first-child]:pl-4 [&_.cell:last-child]:pr-4 h-auto"+ <KeyValueGrid+ columns={1}data={properties}- keyExtractor={(item) => item.name}- columns={[- {- name: 'Name',- className: 'text-left',- width: 'auto',- render(item) {- const splitKey = item.name.split('.');- return (- <div className="row items-center gap-2">- {splitKey.map((name, index) => (- <div- key={name}- className={- index === splitKey.length - 1- ? 'text-foreground'- : 'text-muted-foreground'- }- >- {camelCaseToWords(name)}- </div>- ))}- </div>- );- },- },- {- name: 'Value',- className: 'text-right font-mono font-medium',- width: 'w-full',- render(item) {- return (- <button- className="row items-center gap-2 text-right"- type="button"- onClick={() => {- popModal();- setFilter(- `properties.${item.name}`,- item.value as any,- );- }}- >- <EventFieldValue- name={item.name}- value={item.value}- event={event}- />- <FilterIcon className="size-3 shrink-0" />- </button>- );- },- },- ]}+ renderValue={(item) => (+ <div className="flex items-center gap-2">+ <span className="font-mono">{String(item.value)}</span>+ <FilterIcon className="size-3 shrink-0" />+ </div>+ )}+ onItemClick={(item) => {+ popModal();+ setFilter(`properties.${item.name}`, item.value as any);+ }}/></section>)}@@ -317,71 +292,41 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {<div className="mb-2 flex justify-between font-medium"><div>Information</div></div>- <WidgetTable- className={'card [&>div:first-child]:hidden'}- columnClassName="[&_.cell:first-child]:pl-4 [&_.cell:last-child]:pr-4 h-auto"+ <KeyValueGrid+ columns={1}data={data}- keyExtractor={(item) => item.name}- columns={[- {- name: 'Name',- className: 'text-left',- width: 'auto',- render(item) {- const splitKey = item.name.split('.');- return (- <div className="row items-center gap-2">- {splitKey.map((name, index) => (- <div- key={name}- className={- index === splitKey.length - 1- ? 'text-foreground'- : 'text-muted-foreground'- }- >- {camelCaseToWords(name)}- </div>- ))}- </div>- );- },- },- {- name: 'Value',- className: 'text-right font-mono font-medium',- width: 'w-full',- render(item) {- if (item.value && filterable[item.name]) {- return (- <button- className="row items-center gap-2 text-right"- type="button"- onClick={() => {- popModal();- setFilter(item.name, item.value);- }}- >- <EventFieldValue- name={item.name}- value={item.value}- event={event}- />- <FilterIcon className="size-3 shrink-0" />- </button>- );- }-- return (- <EventFieldValue+ renderValue={(item) => {+ const isFilterable =+ item.value && (filterable as any)[item.name];+ if (isFilterable) {+ return (+ <div className="flex items-center gap-2">+ <FieldValuename={item.name}value={item.value}event={event}/>- );- },- },- ]}+ <FilterIcon className="size-3 shrink-0" />+ </div>+ );+ }++ return (+ <FieldValue+ name={item.name}+ value={item.value}+ event={event}+ />+ );+ }}+ onItemClick={(item) => {+ const isFilterable =+ item.value && (filterable as any)[item.name];+ if (isFilterable) {+ popModal();+ setFilter(item.name as keyof IServiceEvent, item.value);+ }+ }}/></section><section>@@ -419,3 +364,94 @@ export default function EventDetails({ id, createdAt, projectId }: Props) {</ModalContent>);}++function EventDetailsSkeleton() {+ return (+ <ModalContent className="!p-0">+ <Widget className="bg-transparent border-0 min-w-0">+ <WidgetHead>+ <div className="row items-center justify-between">+ <div className="h-6 w-32 bg-muted animate-pulse rounded" />+ <div className="row items-center gap-2 pr-2">+ <div className="h-8 w-8 bg-muted animate-pulse rounded" />+ <div className="h-8 w-8 bg-muted animate-pulse rounded" />+ <div className="h-8 w-8 bg-muted animate-pulse rounded" />+ </div>+ </div>++ <WidgetButtons>+ <div className="h-8 w-20 bg-muted animate-pulse rounded" />+ <div className="h-8 w-20 bg-muted animate-pulse rounded" />+ </WidgetButtons>+ </WidgetHead>+ <WidgetBody className="col gap-4 bg-def-100">+ {/* Profile skeleton */}+ <div className="card p-4 py-2 col gap-2">+ <div className="row items-center gap-2 justify-between">+ <div className="row items-center gap-2 min-w-0">+ <div className="size-4 bg-muted animate-pulse rounded-full" />+ <div className="h-4 w-24 bg-muted animate-pulse rounded" />+ </div>+ <div className="row items-center gap-2 shrink-0">+ <div className="row gap-1 items-center">+ <div className="size-4 bg-muted animate-pulse rounded" />+ <div className="size-4 bg-muted animate-pulse rounded" />+ <div className="size-4 bg-muted animate-pulse rounded" />+ </div>+ <div className="h-4 w-32 bg-muted animate-pulse rounded" />+ </div>+ </div>+ <div className="h-4 w-64 bg-muted animate-pulse rounded" />+ </div>++ {/* Properties skeleton */}+ <section>+ <div className="mb-2 flex justify-between font-medium">+ <div className="h-5 w-20 bg-muted animate-pulse rounded" />+ </div>+ <div className="space-y-2">+ {Array.from({ length: 3 }).map((_, i) => (+ <div+ key={i.toString()}+ className="flex items-center justify-between p-3 bg-muted/50 rounded"+ >+ <div className="h-4 w-24 bg-muted animate-pulse rounded" />+ <div className="h-4 w-32 bg-muted animate-pulse rounded" />+ </div>+ ))}+ </div>+ </section>++ {/* Information skeleton */}+ <section>+ <div className="mb-2 flex justify-between font-medium">+ <div className="h-5 w-24 bg-muted animate-pulse rounded" />+ </div>+ <div className="space-y-2">+ {Array.from({ length: 6 }).map((_, i) => (+ <div+ key={i.toString()}+ className="flex items-center justify-between p-3 bg-muted/50 rounded"+ >+ <div className="h-4 w-20 bg-muted animate-pulse rounded" />+ <div className="h-4 w-28 bg-muted animate-pulse rounded" />+ </div>+ ))}+ </div>+ </section>++ {/* Chart skeleton */}+ <section>+ <div className="mb-2 flex justify-between font-medium">+ <div className="h-5 w-40 bg-muted animate-pulse rounded" />+ <div className="h-4 w-16 bg-muted animate-pulse rounded" />+ </div>+ <div className="card p-4">+ <div className="h-32 w-full bg-muted animate-pulse rounded" />+ </div>+ </section>+ </WidgetBody>+ </Widget>+ </ModalContent>+ );+}diff --git a/apps/start/src/modals/index.tsx b/apps/start/src/modals/index.tsxnew file mode 100644index 000000000..a2e64eeb2--- /dev/null+++ b/apps/start/src/modals/index.tsx@@ -0,0 +1,69 @@+import { createPushModal } from 'pushmodal';++import OverviewTopGenericModal from '@/components/overview/overview-top-generic-modal';+import OverviewTopPagesModal from '@/components/overview/overview-top-pages-modal';+import Instructions from './Instructions';+import AddClient from './add-client';+import AddDashboard from './add-dashboard';+import AddIntegration from './add-integration';+import AddNotificationRule from './add-notification-rule';+import AddProject from './add-project';+import AddReference from './add-reference';+import Confirm from './confirm';+import type { ConfirmProps } from './confirm';+import CreateInvite from './create-invite';+import DateRangerPicker from './date-ranger-picker';+import DateTimePicker from './date-time-picker';+import EditClient from './edit-client';+import EditDashboard from './edit-dashboard';+import EditEvent from './edit-event';+import EditMember from './edit-member';+import EditReference from './edit-reference';+import EditReport from './edit-report';+import EventDetails from './event-details';+import OnboardingTroubleshoot from './onboarding-troubleshoot';+import OverviewChartDetails from './overview-chart-details';+import RequestPasswordReset from './request-reset-password';+import SaveReport from './save-report';+import ShareOverviewModal from './share-overview-modal';++const modals = {+ OverviewTopPagesModal: OverviewTopPagesModal,+ OverviewTopGenericModal: OverviewTopGenericModal,+ RequestPasswordReset: RequestPasswordReset,+ EditEvent: EditEvent,+ EditMember: EditMember,+ EventDetails: EventDetails,+ EditClient: EditClient,+ AddProject: AddProject,+ AddClient: AddClient,+ Confirm: Confirm,+ SaveReport: SaveReport,+ AddDashboard: AddDashboard,+ EditDashboard: EditDashboard,+ EditReport: EditReport,+ EditReference: EditReference,+ ShareOverviewModal: ShareOverviewModal,+ AddReference: AddReference,+ Instructions: Instructions,+ OnboardingTroubleshoot: OnboardingTroubleshoot,+ DateRangerPicker: DateRangerPicker,+ DateTimePicker: DateTimePicker,+ OverviewChartDetails: OverviewChartDetails,+ AddIntegration: AddIntegration,+ AddNotificationRule: AddNotificationRule,+ CreateInvite: CreateInvite,+};++export const {+ pushModal,+ popModal,+ replaceWithModal,+ popAllModals,+ ModalProvider,+ useOnPushModal,+} = createPushModal({+ modals,+});++export const showConfirm = (props: ConfirmProps) => pushModal('Confirm', props);diff --git a/apps/dashboard/src/modals/OnboardingTroubleshoot.tsx b/apps/start/src/modals/onboarding-troubleshoot.tsxsimilarity index 100%rename from apps/dashboard/src/modals/OnboardingTroubleshoot.tsxrename to apps/start/src/modals/onboarding-troubleshoot.tsxdiff --git a/apps/dashboard/src/modals/OverviewChartDetails.tsx b/apps/start/src/modals/overview-chart-details.tsxsimilarity index 100%rename from apps/dashboard/src/modals/OverviewChartDetails.tsxrename to apps/start/src/modals/overview-chart-details.tsxdiff --git a/apps/dashboard/src/modals/request-reset-password.tsx b/apps/start/src/modals/request-reset-password.tsxsimilarity index 77%rename from apps/dashboard/src/modals/request-reset-password.tsxrename to apps/start/src/modals/request-reset-password.tsxindex cc8c84174..89f695bc4 100644--- a/apps/dashboard/src/modals/request-reset-password.tsx+++ b/apps/start/src/modals/request-reset-password.tsx@@ -1,17 +1,17 @@-'use client';-import { Button } from '@/components/ui/button';import { DialogFooter } from '@/components/ui/dialog';-import { api, handleError } from '@/trpc/client';+import { handleError } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';+import { useRouter } from '@tanstack/react-router';import { SendIcon } from 'lucide-react';-import { useRouter } from 'next/navigation';import { useForm } from 'react-hook-form';import { toast } from 'sonner';import type { z } from 'zod';import { InputWithLabel } from '@/components/forms/input-with-label';+import { useTRPC } from '@/integrations/trpc/react';import { zRequestResetPassword } from '@openpanel/validation';+import { useMutation } from '@tanstack/react-query';import { popModal } from '.';import { ModalContent, ModalHeader } from './Modal/Container';@@ -30,13 +30,16 @@ export default function RequestPasswordReset({ email }: Props) {email: email ?? '',},});- const mutation = api.auth.requestResetPassword.useMutation({- onError: handleError,- onSuccess() {- toast.success('You should receive an email shortly!');- popModal();- },- });+ const trpc = useTRPC();+ const mutation = useMutation(+ trpc.auth.requestResetPassword.mutationOptions({+ onSuccess() {+ toast.success('You should receive an email shortly!');+ popModal();+ },+ onError: handleError,+ }),+ );const onSubmit = form.handleSubmit((values) => {mutation.mutate({@@ -63,7 +66,7 @@ export default function RequestPasswordReset({ email }: Props) {>Cancel</Button>- <Button type="submit" icon={SendIcon} loading={mutation.isLoading}>+ <Button type="submit" icon={SendIcon} loading={mutation.isPending}>Continue</Button></DialogFooter>diff --git a/apps/start/src/modals/save-report.tsx b/apps/start/src/modals/save-report.tsxnew file mode 100644index 000000000..b8c1fa04a--- /dev/null+++ b/apps/start/src/modals/save-report.tsx@@ -0,0 +1,299 @@+import { ButtonContainer } from '@/components/button-container';+import { InputWithLabel } from '@/components/forms/input-with-label';+import { Button } from '@/components/ui/button';+import { Combobox } from '@/components/ui/combobox';+import { Label } from '@/components/ui/label';+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from '@/components/ui/select';+import { useAppParams } from '@/hooks/use-app-params';+import { handleError } from '@/integrations/trpc/react';+import { zodResolver } from '@hookform/resolvers/zod';+import { useRouter, useSearch } from '@tanstack/react-router';+import { Controller, useForm } from 'react-hook-form';+import { toast } from 'sonner';+import { z } from 'zod';++import type { IChartProps } from '@openpanel/validation';++import { Input } from '@/components/ui/input';+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';+import { ArrowLeftIcon, PlusIcon, SaveIcon } from 'lucide-react';+import { useState } from 'react';+import { popModal } from '.';+import { ModalContent, ModalHeader } from './Modal/Container';++type SaveReportProps = {+ report: IChartProps;+ disableRedirect?: boolean;+};++const validator = z.object({+ name: z.string().min(1, 'Required'),+ dashboardId: z.string().min(1, 'Required'),+});++type IForm = z.infer<typeof validator>;++export default function SaveReport({+ report,+ disableRedirect,+}: SaveReportProps) {+ const router = useRouter();+ const queryClient = useQueryClient();+ const { organizationId, projectId } = useAppParams();+ const searchParams = useSearch({+ from: '/_app/$organizationId/$projectId_/reports',+ shouldThrow: false,+ });+ const dashboardId = searchParams?.dashboardId;++ const trpc = useTRPC();+ const save = useMutation(+ trpc.report.create.mutationOptions({+ onError: handleError,+ onSuccess(res) {+ const goToReport = () => {+ router.navigate({+ to: '/$organizationId/$projectId/reports/$reportId',+ params: {+ organizationId,+ projectId,+ reportId: res.id,+ },+ search: searchParams,+ });+ };++ toast('Report created', {+ description: `${res.name}`,+ action: {+ label: 'View report',+ onClick: () => goToReport(),+ },+ });++ if (!disableRedirect) {+ goToReport();+ }++ popModal();+ },+ }),+ );+ const dashboardMutation = useMutation(+ trpc.dashboard.create.mutationOptions({+ onError: handleError,+ onSuccess(res) {+ setValue('dashboardId', res.id);+ dashboardQuery.refetch();+ queryClient.invalidateQueries(trpc.report.list.pathFilter());+ toast('Success', {+ description: 'Dashboard created.',+ });+ },+ }),+ );+ const dashboardQuery = useQuery(+ trpc.dashboard.list.queryOptions({+ projectId: projectId!,+ }),+ );++ const { register, handleSubmit, formState, control, setValue } =+ useForm<IForm>({+ resolver: zodResolver(validator),+ defaultValues: {+ name: report.name,+ dashboardId,+ },+ });++ const dashboards = (dashboardQuery.data ?? []).map((item) => ({+ value: item.id,+ label: item.name,+ }));++ return (+ <ModalContent>+ <ModalHeader title="Create report" />+ <form+ className="flex flex-col gap-4"+ onSubmit={handleSubmit(({ name, ...values }) => {+ save.mutate({+ report: {+ ...report,+ name,+ },+ ...values,+ });+ })}+ >+ <InputWithLabel+ label="Report name"+ placeholder="Name"+ {...register('name')}+ defaultValue={report.name}+ />+ <Controller+ control={control}+ name="dashboardId"+ render={({ field }) => {+ return (+ <SelectDashboard+ value={field.value}+ onChange={field.onChange}+ projectId={projectId!}+ />+ );+ }}+ />+ <ButtonContainer>+ <Button+ type="button"+ variant="outline"+ onClick={() => popModal()}+ size="default"+ >+ Cancel+ </Button>+ <Button type="submit" disabled={!formState.isValid} size="default">+ Save+ </Button>+ </ButtonContainer>+ </form>+ </ModalContent>+ );+}++function SelectDashboard({+ value,+ onChange,+ projectId,+}: {+ value: string;+ onChange: (value: string) => void;+ projectId: string;+}) {+ const trpc = useTRPC();+ const [isCreatingNew, setIsCreatingNew] = useState(false);+ const [newDashboardName, setNewDashboardName] = useState('');++ const form = useForm({+ resolver: zodResolver(z.object({ name: z.string().min(1, 'Required') })),+ defaultValues: {+ name: '',+ },+ });++ const dashboardQuery = useQuery(+ trpc.dashboard.list.queryOptions({+ projectId: projectId!,+ }),+ );++ const dashboardMutation = useMutation(+ trpc.dashboard.create.mutationOptions({+ onError: handleError,+ async onSuccess(res) {+ await dashboardQuery.refetch();+ onChange(res.id);+ setIsCreatingNew(false);+ setNewDashboardName('');+ form.reset();+ },+ }),+ );++ const handleSelectChange = (selectedValue: string) => {+ if (selectedValue === 'create-new') {+ setIsCreatingNew(true);+ onChange(''); // Clear the current selection+ } else {+ setIsCreatingNew(false);+ onChange(selectedValue);+ }+ };++ const handleCreateDashboard = () => {+ if (newDashboardName.trim()) {+ dashboardMutation.mutate({+ name: newDashboardName.trim(),+ projectId,+ });+ }+ };++ const selectedDashboard = dashboardQuery.data?.find((d) => d.id === value);++ return (+ <div className="space-y-3">+ <Label>Dashboard</Label>++ {!isCreatingNew ? (+ <div className="row gap-2 flex-wrap">+ {dashboardQuery.data?.map((dashboard) => (+ <Button+ type="button"+ key={dashboard.id}+ variant={value === dashboard.id ? 'default' : 'outline'}+ onClick={() => onChange(dashboard.id)}+ >+ {dashboard.name}+ </Button>+ ))}+ <Button+ type="button"+ variant="outline"+ onClick={() => {+ setIsCreatingNew(true);+ onChange('');+ }}+ icon={PlusIcon}+ >+ Create new dashboard+ </Button>+ </div>+ ) : (+ <div className="flex gap-2">+ <Button+ type="button"+ variant="outline"+ size="icon"+ icon={ArrowLeftIcon}+ onClick={() => {+ setIsCreatingNew(false);+ setNewDashboardName('');+ form.reset();+ }}+ />+ <Input+ placeholder="Enter dashboard name"+ value={newDashboardName}+ onChange={(e) => setNewDashboardName(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === 'Enter') {+ e.preventDefault();+ handleCreateDashboard();+ }+ }}+ />+ <Button+ type="button"+ onClick={handleCreateDashboard}+ disabled={!newDashboardName.trim() || dashboardMutation.isPending}+ variant="outline"+ icon={SaveIcon}+ >+ {dashboardMutation.isPending ? 'Creating...' : 'Create'}+ </Button>+ </div>+ )}+ </div>+ );+}diff --git a/apps/dashboard/src/modals/ShareOverviewModal.tsx b/apps/start/src/modals/share-overview-modal.tsxsimilarity index 64%rename from apps/dashboard/src/modals/ShareOverviewModal.tsxrename to apps/start/src/modals/share-overview-modal.tsxindex 656eb5d4e..c705035bd 100644--- a/apps/dashboard/src/modals/ShareOverviewModal.tsx+++ b/apps/start/src/modals/share-overview-modal.tsx@@ -1,18 +1,18 @@import { ButtonContainer } from '@/components/button-container';-import { InputWithLabel } from '@/components/forms/input-with-label';import { Button } from '@/components/ui/button';-import { Checkbox } from '@/components/ui/checkbox';-import { useAppParams } from '@/hooks/useAppParams';-import { api, handleError } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { handleError } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';-import { useRouter } from 'next/navigation';-import { Controller, useForm, useWatch } from 'react-hook-form';+import { useRouter } from '@tanstack/react-router';+import { useForm } from 'react-hook-form';import { toast } from 'sonner';import type { z } from 'zod';import { zShareOverview } from '@openpanel/validation';import { Input } from '@/components/ui/input';+import { useTRPC } from '@/integrations/trpc/react';+import { useMutation, useQueryClient } from '@tanstack/react-query';import { popModal } from '.';import { ModalContent, ModalHeader } from './Modal/Container';@@ -22,7 +22,6 @@ type IForm = z.infer<typeof validator>;export default function ShareOverviewModal() {const { projectId, organizationId } = useAppParams();- const router = useRouter();const { register, handleSubmit } = useForm<IForm>({resolver: zodResolver(validator),@@ -34,18 +33,22 @@ export default function ShareOverviewModal() {},});- const mutation = api.share.shareOverview.useMutation({- onError: handleError,- onSuccess(res) {- router.refresh();- toast('Success', {- description: `Your overview is now ${- res.public ? 'public' : 'private'- }`,- });- popModal();- },- });+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const mutation = useMutation(+ trpc.share.createOverview.mutationOptions({+ onError: handleError,+ onSuccess(res) {+ queryClient.invalidateQueries(trpc.share.overview.pathFilter());+ toast('Success', {+ description: `Your overview is now ${+ res.public ? 'public' : 'private'+ }`,+ });+ popModal();+ },+ }),+ );return (<ModalContent className="max-w-md">@@ -67,7 +70,7 @@ export default function ShareOverviewModal() {<Button type="button" variant="outline" onClick={() => popModal()}>Cancel</Button>- <Button type="submit" loading={mutation.isLoading}>+ <Button type="submit" loading={mutation.isPending}>Make it public</Button></ButtonContainer>diff --git a/apps/dashboard/src/redux/index.ts b/apps/start/src/redux/index.tssimilarity index 100%rename from apps/dashboard/src/redux/index.tsrename to apps/start/src/redux/index.tsdiff --git a/apps/start/src/routeTree.gen.ts b/apps/start/src/routeTree.gen.tsnew file mode 100644index 000000000..3d266171f--- /dev/null+++ b/apps/start/src/routeTree.gen.ts@@ -0,0 +1,1647 @@+/* eslint-disable */++// @ts-nocheck++// noinspection JSUnusedGlobalSymbols++// This file was automatically generated by TanStack Router.+// You should NOT make any changes in this file as it will be overwritten.+// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.++import { createFileRoute } from '@tanstack/react-router'++import { Route as rootRouteImport } from './routes/__root'+import { Route as StepsRouteImport } from './routes/_steps'+import { Route as PublicRouteImport } from './routes/_public'+import { Route as LoginRouteImport } from './routes/_login'+import { Route as AppRouteImport } from './routes/_app'+import { Route as IndexRouteImport } from './routes/index'+import { Route as PublicOnboardingRouteImport } from './routes/_public.onboarding'+import { Route as LoginResetPasswordRouteImport } from './routes/_login.reset-password'+import { Route as LoginLoginRouteImport } from './routes/_login.login'+import { Route as AppOrganizationIdRouteImport } from './routes/_app.$organizationId'+import { Route as AppOrganizationIdIndexRouteImport } from './routes/_app.$organizationId.index'+import { Route as ShareOverviewShareIdRouteImport } from './routes/share.overview.$shareId'+import { Route as StepsOnboardingProjectRouteImport } from './routes/_steps.onboarding.project'+import { Route as AppOrganizationIdSettingsRouteImport } from './routes/_app.$organizationId.settings'+import { Route as AppOrganizationIdBillingRouteImport } from './routes/_app.$organizationId.billing'+import { Route as AppOrganizationIdProjectIdRouteImport } from './routes/_app.$organizationId.$projectId'+import { Route as StepsOnboardingProjectIdVerifyRouteImport } from './routes/_steps.onboarding.$projectId.verify'+import { Route as StepsOnboardingProjectIdConnectRouteImport } from './routes/_steps.onboarding.$projectId.connect'+import { Route as AppOrganizationIdMembersTabsRouteImport } from './routes/_app.$organizationId.members._tabs'+import { Route as AppOrganizationIdIntegrationsTabsRouteImport } from './routes/_app.$organizationId.integrations._tabs'+import { Route as AppOrganizationIdProjectIdSessionsRouteImport } from './routes/_app.$organizationId.$projectId_.sessions'+import { Route as AppOrganizationIdProjectIdReportsRouteImport } from './routes/_app.$organizationId.$projectId_.reports'+import { Route as AppOrganizationIdProjectIdReferencesRouteImport } from './routes/_app.$organizationId.$projectId_.references'+import { Route as AppOrganizationIdProjectIdRealtimeRouteImport } from './routes/_app.$organizationId.$projectId_.realtime'+import { Route as AppOrganizationIdProjectIdPagesRouteImport } from './routes/_app.$organizationId.$projectId_.pages'+import { Route as AppOrganizationIdProjectIdDashboardsRouteImport } from './routes/_app.$organizationId.$projectId_.dashboards'+import { Route as AppOrganizationIdProjectIdChatRouteImport } from './routes/_app.$organizationId.$projectId_.chat'+import { Route as AppOrganizationIdMembersTabsIndexRouteImport } from './routes/_app.$organizationId.members._tabs.index'+import { Route as AppOrganizationIdIntegrationsTabsIndexRouteImport } from './routes/_app.$organizationId.integrations._tabs.index'+import { Route as AppOrganizationIdMembersTabsMembersRouteImport } from './routes/_app.$organizationId.members._tabs.members'+import { Route as AppOrganizationIdMembersTabsInvitationsRouteImport } from './routes/_app.$organizationId.members._tabs.invitations'+import { Route as AppOrganizationIdIntegrationsTabsInstalledRouteImport } from './routes/_app.$organizationId.integrations._tabs.installed'+import { Route as AppOrganizationIdIntegrationsTabsAvailableRouteImport } from './routes/_app.$organizationId.integrations._tabs.available'+import { Route as AppOrganizationIdProjectIdSettingsTabsRouteImport } from './routes/_app.$organizationId.$projectId_.settings._tabs'+import { Route as AppOrganizationIdProjectIdSessionsSessionIdRouteImport } from './routes/_app.$organizationId.$projectId_.sessions_.$sessionId'+import { Route as AppOrganizationIdProjectIdReportsReportIdRouteImport } from './routes/_app.$organizationId.$projectId_.reports_.$reportId'+import { Route as AppOrganizationIdProjectIdProfilesTabsRouteImport } from './routes/_app.$organizationId.$projectId_.profiles._tabs'+import { Route as AppOrganizationIdProjectIdNotificationsTabsRouteImport } from './routes/_app.$organizationId.$projectId_.notifications._tabs'+import { Route as AppOrganizationIdProjectIdEventsTabsRouteImport } from './routes/_app.$organizationId.$projectId_.events._tabs'+import { Route as AppOrganizationIdProjectIdDashboardsDashboardIdRouteImport } from './routes/_app.$organizationId.$projectId_.dashboards_.$dashboardId'+import { Route as AppOrganizationIdProjectIdSettingsTabsIndexRouteImport } from './routes/_app.$organizationId.$projectId_.settings._tabs.index'+import { Route as AppOrganizationIdProjectIdProfilesTabsIndexRouteImport } from './routes/_app.$organizationId.$projectId_.profiles._tabs.index'+import { Route as AppOrganizationIdProjectIdNotificationsTabsIndexRouteImport } from './routes/_app.$organizationId.$projectId_.notifications._tabs.index'+import { Route as AppOrganizationIdProjectIdEventsTabsIndexRouteImport } from './routes/_app.$organizationId.$projectId_.events._tabs.index'+import { Route as AppOrganizationIdProjectIdSettingsTabsEventsRouteImport } from './routes/_app.$organizationId.$projectId_.settings._tabs.events'+import { Route as AppOrganizationIdProjectIdSettingsTabsDetailsRouteImport } from './routes/_app.$organizationId.$projectId_.settings._tabs.details'+import { Route as AppOrganizationIdProjectIdSettingsTabsClientsRouteImport } from './routes/_app.$organizationId.$projectId_.settings._tabs.clients'+import { Route as AppOrganizationIdProjectIdProfilesTabsPowerUsersRouteImport } from './routes/_app.$organizationId.$projectId_.profiles._tabs.power-users'+import { Route as AppOrganizationIdProjectIdProfilesTabsIdentifiedRouteImport } from './routes/_app.$organizationId.$projectId_.profiles._tabs.identified'+import { Route as AppOrganizationIdProjectIdProfilesTabsAnonymousRouteImport } from './routes/_app.$organizationId.$projectId_.profiles._tabs.anonymous'+import { Route as AppOrganizationIdProjectIdProfilesProfileIdTabsRouteImport } from './routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs'+import { Route as AppOrganizationIdProjectIdNotificationsTabsRulesRouteImport } from './routes/_app.$organizationId.$projectId_.notifications._tabs.rules'+import { Route as AppOrganizationIdProjectIdNotificationsTabsNotificationsRouteImport } from './routes/_app.$organizationId.$projectId_.notifications._tabs.notifications'+import { Route as AppOrganizationIdProjectIdEventsTabsStatsRouteImport } from './routes/_app.$organizationId.$projectId_.events._tabs.stats'+import { Route as AppOrganizationIdProjectIdEventsTabsEventsRouteImport } from './routes/_app.$organizationId.$projectId_.events._tabs.events'+import { Route as AppOrganizationIdProjectIdEventsTabsConversionsRouteImport } from './routes/_app.$organizationId.$projectId_.events._tabs.conversions'+import { Route as AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRouteImport } from './routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.index'+import { Route as AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRouteImport } from './routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.events'++const AppOrganizationIdMembersRouteImport = createFileRoute(+ '/_app/$organizationId/members',+)()+const AppOrganizationIdIntegrationsRouteImport = createFileRoute(+ '/_app/$organizationId/integrations',+)()+const AppOrganizationIdProjectIdSettingsRouteImport = createFileRoute(+ '/_app/$organizationId/$projectId_/settings',+)()+const AppOrganizationIdProjectIdProfilesRouteImport = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles',+)()+const AppOrganizationIdProjectIdNotificationsRouteImport = createFileRoute(+ '/_app/$organizationId/$projectId_/notifications',+)()+const AppOrganizationIdProjectIdEventsRouteImport = createFileRoute(+ '/_app/$organizationId/$projectId_/events',+)()+const AppOrganizationIdProjectIdProfilesProfileIdRouteImport = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles/$profileId',+)()++const StepsRoute = StepsRouteImport.update({+ id: '/_steps',+ getParentRoute: () => rootRouteImport,+} as any)+const PublicRoute = PublicRouteImport.update({+ id: '/_public',+ getParentRoute: () => rootRouteImport,+} as any)+const LoginRoute = LoginRouteImport.update({+ id: '/_login',+ getParentRoute: () => rootRouteImport,+} as any)+const AppRoute = AppRouteImport.update({+ id: '/_app',+ getParentRoute: () => rootRouteImport,+} as any)+const IndexRoute = IndexRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () => rootRouteImport,+} as any)+const PublicOnboardingRoute = PublicOnboardingRouteImport.update({+ id: '/onboarding',+ path: '/onboarding',+ getParentRoute: () => PublicRoute,+} as any)+const LoginResetPasswordRoute = LoginResetPasswordRouteImport.update({+ id: '/reset-password',+ path: '/reset-password',+ getParentRoute: () => LoginRoute,+} as any)+const LoginLoginRoute = LoginLoginRouteImport.update({+ id: '/login',+ path: '/login',+ getParentRoute: () => LoginRoute,+} as any)+const AppOrganizationIdRoute = AppOrganizationIdRouteImport.update({+ id: '/$organizationId',+ path: '/$organizationId',+ getParentRoute: () => AppRoute,+} as any)+const AppOrganizationIdMembersRoute =+ AppOrganizationIdMembersRouteImport.update({+ id: '/members',+ path: '/members',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdIntegrationsRoute =+ AppOrganizationIdIntegrationsRouteImport.update({+ id: '/integrations',+ path: '/integrations',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdIndexRoute = AppOrganizationIdIndexRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () => AppOrganizationIdRoute,+} as any)+const ShareOverviewShareIdRoute = ShareOverviewShareIdRouteImport.update({+ id: '/share/overview/$shareId',+ path: '/share/overview/$shareId',+ getParentRoute: () => rootRouteImport,+} as any)+const StepsOnboardingProjectRoute = StepsOnboardingProjectRouteImport.update({+ id: '/onboarding/project',+ path: '/onboarding/project',+ getParentRoute: () => StepsRoute,+} as any)+const AppOrganizationIdSettingsRoute =+ AppOrganizationIdSettingsRouteImport.update({+ id: '/settings',+ path: '/settings',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdBillingRoute =+ AppOrganizationIdBillingRouteImport.update({+ id: '/billing',+ path: '/billing',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdRoute =+ AppOrganizationIdProjectIdRouteImport.update({+ id: '/$projectId',+ path: '/$projectId',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdSettingsRoute =+ AppOrganizationIdProjectIdSettingsRouteImport.update({+ id: '/$projectId_/settings',+ path: '/$projectId/settings',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesRoute =+ AppOrganizationIdProjectIdProfilesRouteImport.update({+ id: '/$projectId_/profiles',+ path: '/$projectId/profiles',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdNotificationsRoute =+ AppOrganizationIdProjectIdNotificationsRouteImport.update({+ id: '/$projectId_/notifications',+ path: '/$projectId/notifications',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdEventsRoute =+ AppOrganizationIdProjectIdEventsRouteImport.update({+ id: '/$projectId_/events',+ path: '/$projectId/events',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const StepsOnboardingProjectIdVerifyRoute =+ StepsOnboardingProjectIdVerifyRouteImport.update({+ id: '/onboarding/$projectId/verify',+ path: '/onboarding/$projectId/verify',+ getParentRoute: () => StepsRoute,+ } as any)+const StepsOnboardingProjectIdConnectRoute =+ StepsOnboardingProjectIdConnectRouteImport.update({+ id: '/onboarding/$projectId/connect',+ path: '/onboarding/$projectId/connect',+ getParentRoute: () => StepsRoute,+ } as any)+const AppOrganizationIdMembersTabsRoute =+ AppOrganizationIdMembersTabsRouteImport.update({+ id: '/_tabs',+ getParentRoute: () => AppOrganizationIdMembersRoute,+ } as any)+const AppOrganizationIdIntegrationsTabsRoute =+ AppOrganizationIdIntegrationsTabsRouteImport.update({+ id: '/_tabs',+ getParentRoute: () => AppOrganizationIdIntegrationsRoute,+ } as any)+const AppOrganizationIdProjectIdSessionsRoute =+ AppOrganizationIdProjectIdSessionsRouteImport.update({+ id: '/$projectId_/sessions',+ path: '/$projectId/sessions',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdReportsRoute =+ AppOrganizationIdProjectIdReportsRouteImport.update({+ id: '/$projectId_/reports',+ path: '/$projectId/reports',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdReferencesRoute =+ AppOrganizationIdProjectIdReferencesRouteImport.update({+ id: '/$projectId_/references',+ path: '/$projectId/references',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdRealtimeRoute =+ AppOrganizationIdProjectIdRealtimeRouteImport.update({+ id: '/$projectId_/realtime',+ path: '/$projectId/realtime',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdPagesRoute =+ AppOrganizationIdProjectIdPagesRouteImport.update({+ id: '/$projectId_/pages',+ path: '/$projectId/pages',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdDashboardsRoute =+ AppOrganizationIdProjectIdDashboardsRouteImport.update({+ id: '/$projectId_/dashboards',+ path: '/$projectId/dashboards',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdChatRoute =+ AppOrganizationIdProjectIdChatRouteImport.update({+ id: '/$projectId_/chat',+ path: '/$projectId/chat',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesProfileIdRoute =+ AppOrganizationIdProjectIdProfilesProfileIdRouteImport.update({+ id: '/$profileId',+ path: '/$profileId',+ getParentRoute: () => AppOrganizationIdProjectIdProfilesRoute,+ } as any)+const AppOrganizationIdMembersTabsIndexRoute =+ AppOrganizationIdMembersTabsIndexRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () => AppOrganizationIdMembersTabsRoute,+ } as any)+const AppOrganizationIdIntegrationsTabsIndexRoute =+ AppOrganizationIdIntegrationsTabsIndexRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () => AppOrganizationIdIntegrationsTabsRoute,+ } as any)+const AppOrganizationIdMembersTabsMembersRoute =+ AppOrganizationIdMembersTabsMembersRouteImport.update({+ id: '/members',+ path: '/members',+ getParentRoute: () => AppOrganizationIdMembersTabsRoute,+ } as any)+const AppOrganizationIdMembersTabsInvitationsRoute =+ AppOrganizationIdMembersTabsInvitationsRouteImport.update({+ id: '/invitations',+ path: '/invitations',+ getParentRoute: () => AppOrganizationIdMembersTabsRoute,+ } as any)+const AppOrganizationIdIntegrationsTabsInstalledRoute =+ AppOrganizationIdIntegrationsTabsInstalledRouteImport.update({+ id: '/installed',+ path: '/installed',+ getParentRoute: () => AppOrganizationIdIntegrationsTabsRoute,+ } as any)+const AppOrganizationIdIntegrationsTabsAvailableRoute =+ AppOrganizationIdIntegrationsTabsAvailableRouteImport.update({+ id: '/available',+ path: '/available',+ getParentRoute: () => AppOrganizationIdIntegrationsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdSettingsTabsRoute =+ AppOrganizationIdProjectIdSettingsTabsRouteImport.update({+ id: '/_tabs',+ getParentRoute: () => AppOrganizationIdProjectIdSettingsRoute,+ } as any)+const AppOrganizationIdProjectIdSessionsSessionIdRoute =+ AppOrganizationIdProjectIdSessionsSessionIdRouteImport.update({+ id: '/$projectId_/sessions_/$sessionId',+ path: '/$projectId/sessions/$sessionId',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdReportsReportIdRoute =+ AppOrganizationIdProjectIdReportsReportIdRouteImport.update({+ id: '/$projectId_/reports_/$reportId',+ path: '/$projectId/reports/$reportId',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesTabsRoute =+ AppOrganizationIdProjectIdProfilesTabsRouteImport.update({+ id: '/_tabs',+ getParentRoute: () => AppOrganizationIdProjectIdProfilesRoute,+ } as any)+const AppOrganizationIdProjectIdNotificationsTabsRoute =+ AppOrganizationIdProjectIdNotificationsTabsRouteImport.update({+ id: '/_tabs',+ getParentRoute: () => AppOrganizationIdProjectIdNotificationsRoute,+ } as any)+const AppOrganizationIdProjectIdEventsTabsRoute =+ AppOrganizationIdProjectIdEventsTabsRouteImport.update({+ id: '/_tabs',+ getParentRoute: () => AppOrganizationIdProjectIdEventsRoute,+ } as any)+const AppOrganizationIdProjectIdDashboardsDashboardIdRoute =+ AppOrganizationIdProjectIdDashboardsDashboardIdRouteImport.update({+ id: '/$projectId_/dashboards_/$dashboardId',+ path: '/$projectId/dashboards/$dashboardId',+ getParentRoute: () => AppOrganizationIdRoute,+ } as any)+const AppOrganizationIdProjectIdSettingsTabsIndexRoute =+ AppOrganizationIdProjectIdSettingsTabsIndexRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () => AppOrganizationIdProjectIdSettingsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesTabsIndexRoute =+ AppOrganizationIdProjectIdProfilesTabsIndexRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () => AppOrganizationIdProjectIdProfilesTabsRoute,+ } as any)+const AppOrganizationIdProjectIdNotificationsTabsIndexRoute =+ AppOrganizationIdProjectIdNotificationsTabsIndexRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () => AppOrganizationIdProjectIdNotificationsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdEventsTabsIndexRoute =+ AppOrganizationIdProjectIdEventsTabsIndexRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () => AppOrganizationIdProjectIdEventsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdSettingsTabsEventsRoute =+ AppOrganizationIdProjectIdSettingsTabsEventsRouteImport.update({+ id: '/events',+ path: '/events',+ getParentRoute: () => AppOrganizationIdProjectIdSettingsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdSettingsTabsDetailsRoute =+ AppOrganizationIdProjectIdSettingsTabsDetailsRouteImport.update({+ id: '/details',+ path: '/details',+ getParentRoute: () => AppOrganizationIdProjectIdSettingsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdSettingsTabsClientsRoute =+ AppOrganizationIdProjectIdSettingsTabsClientsRouteImport.update({+ id: '/clients',+ path: '/clients',+ getParentRoute: () => AppOrganizationIdProjectIdSettingsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesTabsPowerUsersRoute =+ AppOrganizationIdProjectIdProfilesTabsPowerUsersRouteImport.update({+ id: '/power-users',+ path: '/power-users',+ getParentRoute: () => AppOrganizationIdProjectIdProfilesTabsRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesTabsIdentifiedRoute =+ AppOrganizationIdProjectIdProfilesTabsIdentifiedRouteImport.update({+ id: '/identified',+ path: '/identified',+ getParentRoute: () => AppOrganizationIdProjectIdProfilesTabsRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesTabsAnonymousRoute =+ AppOrganizationIdProjectIdProfilesTabsAnonymousRouteImport.update({+ id: '/anonymous',+ path: '/anonymous',+ getParentRoute: () => AppOrganizationIdProjectIdProfilesTabsRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesProfileIdTabsRoute =+ AppOrganizationIdProjectIdProfilesProfileIdTabsRouteImport.update({+ id: '/_tabs',+ getParentRoute: () => AppOrganizationIdProjectIdProfilesProfileIdRoute,+ } as any)+const AppOrganizationIdProjectIdNotificationsTabsRulesRoute =+ AppOrganizationIdProjectIdNotificationsTabsRulesRouteImport.update({+ id: '/rules',+ path: '/rules',+ getParentRoute: () => AppOrganizationIdProjectIdNotificationsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdNotificationsTabsNotificationsRoute =+ AppOrganizationIdProjectIdNotificationsTabsNotificationsRouteImport.update({+ id: '/notifications',+ path: '/notifications',+ getParentRoute: () => AppOrganizationIdProjectIdNotificationsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdEventsTabsStatsRoute =+ AppOrganizationIdProjectIdEventsTabsStatsRouteImport.update({+ id: '/stats',+ path: '/stats',+ getParentRoute: () => AppOrganizationIdProjectIdEventsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdEventsTabsEventsRoute =+ AppOrganizationIdProjectIdEventsTabsEventsRouteImport.update({+ id: '/events',+ path: '/events',+ getParentRoute: () => AppOrganizationIdProjectIdEventsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdEventsTabsConversionsRoute =+ AppOrganizationIdProjectIdEventsTabsConversionsRouteImport.update({+ id: '/conversions',+ path: '/conversions',+ getParentRoute: () => AppOrganizationIdProjectIdEventsTabsRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRoute =+ AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () => AppOrganizationIdProjectIdProfilesProfileIdTabsRoute,+ } as any)+const AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRoute =+ AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRouteImport.update({+ id: '/events',+ path: '/events',+ getParentRoute: () => AppOrganizationIdProjectIdProfilesProfileIdTabsRoute,+ } as any)++export interface FileRoutesByFullPath {+ '/': typeof IndexRoute+ '/$organizationId': typeof AppOrganizationIdRouteWithChildren+ '/login': typeof LoginLoginRoute+ '/reset-password': typeof LoginResetPasswordRoute+ '/onboarding': typeof PublicOnboardingRoute+ '/$organizationId/$projectId': typeof AppOrganizationIdProjectIdRoute+ '/$organizationId/billing': typeof AppOrganizationIdBillingRoute+ '/$organizationId/settings': typeof AppOrganizationIdSettingsRoute+ '/onboarding/project': typeof StepsOnboardingProjectRoute+ '/share/overview/$shareId': typeof ShareOverviewShareIdRoute+ '/$organizationId/': typeof AppOrganizationIdIndexRoute+ '/$organizationId/$projectId/chat': typeof AppOrganizationIdProjectIdChatRoute+ '/$organizationId/$projectId/dashboards': typeof AppOrganizationIdProjectIdDashboardsRoute+ '/$organizationId/$projectId/pages': typeof AppOrganizationIdProjectIdPagesRoute+ '/$organizationId/$projectId/realtime': typeof AppOrganizationIdProjectIdRealtimeRoute+ '/$organizationId/$projectId/references': typeof AppOrganizationIdProjectIdReferencesRoute+ '/$organizationId/$projectId/reports': typeof AppOrganizationIdProjectIdReportsRoute+ '/$organizationId/$projectId/sessions': typeof AppOrganizationIdProjectIdSessionsRoute+ '/$organizationId/integrations': typeof AppOrganizationIdIntegrationsTabsRouteWithChildren+ '/$organizationId/members': typeof AppOrganizationIdMembersTabsRouteWithChildren+ '/onboarding/$projectId/connect': typeof StepsOnboardingProjectIdConnectRoute+ '/onboarding/$projectId/verify': typeof StepsOnboardingProjectIdVerifyRoute+ '/$organizationId/$projectId/dashboards/$dashboardId': typeof AppOrganizationIdProjectIdDashboardsDashboardIdRoute+ '/$organizationId/$projectId/events': typeof AppOrganizationIdProjectIdEventsTabsRouteWithChildren+ '/$organizationId/$projectId/notifications': typeof AppOrganizationIdProjectIdNotificationsTabsRouteWithChildren+ '/$organizationId/$projectId/profiles': typeof AppOrganizationIdProjectIdProfilesTabsRouteWithChildren+ '/$organizationId/$projectId/reports/$reportId': typeof AppOrganizationIdProjectIdReportsReportIdRoute+ '/$organizationId/$projectId/sessions/$sessionId': typeof AppOrganizationIdProjectIdSessionsSessionIdRoute+ '/$organizationId/$projectId/settings': typeof AppOrganizationIdProjectIdSettingsTabsRouteWithChildren+ '/$organizationId/integrations/available': typeof AppOrganizationIdIntegrationsTabsAvailableRoute+ '/$organizationId/integrations/installed': typeof AppOrganizationIdIntegrationsTabsInstalledRoute+ '/$organizationId/members/invitations': typeof AppOrganizationIdMembersTabsInvitationsRoute+ '/$organizationId/members/members': typeof AppOrganizationIdMembersTabsMembersRoute+ '/$organizationId/integrations/': typeof AppOrganizationIdIntegrationsTabsIndexRoute+ '/$organizationId/members/': typeof AppOrganizationIdMembersTabsIndexRoute+ '/$organizationId/$projectId/events/conversions': typeof AppOrganizationIdProjectIdEventsTabsConversionsRoute+ '/$organizationId/$projectId/events/events': typeof AppOrganizationIdProjectIdEventsTabsEventsRoute+ '/$organizationId/$projectId/events/stats': typeof AppOrganizationIdProjectIdEventsTabsStatsRoute+ '/$organizationId/$projectId/notifications/notifications': typeof AppOrganizationIdProjectIdNotificationsTabsNotificationsRoute+ '/$organizationId/$projectId/notifications/rules': typeof AppOrganizationIdProjectIdNotificationsTabsRulesRoute+ '/$organizationId/$projectId/profiles/$profileId': typeof AppOrganizationIdProjectIdProfilesProfileIdTabsRouteWithChildren+ '/$organizationId/$projectId/profiles/anonymous': typeof AppOrganizationIdProjectIdProfilesTabsAnonymousRoute+ '/$organizationId/$projectId/profiles/identified': typeof AppOrganizationIdProjectIdProfilesTabsIdentifiedRoute+ '/$organizationId/$projectId/profiles/power-users': typeof AppOrganizationIdProjectIdProfilesTabsPowerUsersRoute+ '/$organizationId/$projectId/settings/clients': typeof AppOrganizationIdProjectIdSettingsTabsClientsRoute+ '/$organizationId/$projectId/settings/details': typeof AppOrganizationIdProjectIdSettingsTabsDetailsRoute+ '/$organizationId/$projectId/settings/events': typeof AppOrganizationIdProjectIdSettingsTabsEventsRoute+ '/$organizationId/$projectId/events/': typeof AppOrganizationIdProjectIdEventsTabsIndexRoute+ '/$organizationId/$projectId/notifications/': typeof AppOrganizationIdProjectIdNotificationsTabsIndexRoute+ '/$organizationId/$projectId/profiles/': typeof AppOrganizationIdProjectIdProfilesTabsIndexRoute+ '/$organizationId/$projectId/settings/': typeof AppOrganizationIdProjectIdSettingsTabsIndexRoute+ '/$organizationId/$projectId/profiles/$profileId/events': typeof AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRoute+ '/$organizationId/$projectId/profiles/$profileId/': typeof AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRoute+}+export interface FileRoutesByTo {+ '/': typeof IndexRoute+ '/login': typeof LoginLoginRoute+ '/reset-password': typeof LoginResetPasswordRoute+ '/onboarding': typeof PublicOnboardingRoute+ '/$organizationId/$projectId': typeof AppOrganizationIdProjectIdRoute+ '/$organizationId/billing': typeof AppOrganizationIdBillingRoute+ '/$organizationId/settings': typeof AppOrganizationIdSettingsRoute+ '/onboarding/project': typeof StepsOnboardingProjectRoute+ '/share/overview/$shareId': typeof ShareOverviewShareIdRoute+ '/$organizationId': typeof AppOrganizationIdIndexRoute+ '/$organizationId/$projectId/chat': typeof AppOrganizationIdProjectIdChatRoute+ '/$organizationId/$projectId/dashboards': typeof AppOrganizationIdProjectIdDashboardsRoute+ '/$organizationId/$projectId/pages': typeof AppOrganizationIdProjectIdPagesRoute+ '/$organizationId/$projectId/realtime': typeof AppOrganizationIdProjectIdRealtimeRoute+ '/$organizationId/$projectId/references': typeof AppOrganizationIdProjectIdReferencesRoute+ '/$organizationId/$projectId/reports': typeof AppOrganizationIdProjectIdReportsRoute+ '/$organizationId/$projectId/sessions': typeof AppOrganizationIdProjectIdSessionsRoute+ '/$organizationId/integrations': typeof AppOrganizationIdIntegrationsTabsIndexRoute+ '/$organizationId/members': typeof AppOrganizationIdMembersTabsIndexRoute+ '/onboarding/$projectId/connect': typeof StepsOnboardingProjectIdConnectRoute+ '/onboarding/$projectId/verify': typeof StepsOnboardingProjectIdVerifyRoute+ '/$organizationId/$projectId/dashboards/$dashboardId': typeof AppOrganizationIdProjectIdDashboardsDashboardIdRoute+ '/$organizationId/$projectId/events': typeof AppOrganizationIdProjectIdEventsTabsIndexRoute+ '/$organizationId/$projectId/notifications': typeof AppOrganizationIdProjectIdNotificationsTabsIndexRoute+ '/$organizationId/$projectId/profiles': typeof AppOrganizationIdProjectIdProfilesTabsIndexRoute+ '/$organizationId/$projectId/reports/$reportId': typeof AppOrganizationIdProjectIdReportsReportIdRoute+ '/$organizationId/$projectId/sessions/$sessionId': typeof AppOrganizationIdProjectIdSessionsSessionIdRoute+ '/$organizationId/$projectId/settings': typeof AppOrganizationIdProjectIdSettingsTabsIndexRoute+ '/$organizationId/integrations/available': typeof AppOrganizationIdIntegrationsTabsAvailableRoute+ '/$organizationId/integrations/installed': typeof AppOrganizationIdIntegrationsTabsInstalledRoute+ '/$organizationId/members/invitations': typeof AppOrganizationIdMembersTabsInvitationsRoute+ '/$organizationId/members/members': typeof AppOrganizationIdMembersTabsMembersRoute+ '/$organizationId/$projectId/events/conversions': typeof AppOrganizationIdProjectIdEventsTabsConversionsRoute+ '/$organizationId/$projectId/events/events': typeof AppOrganizationIdProjectIdEventsTabsEventsRoute+ '/$organizationId/$projectId/events/stats': typeof AppOrganizationIdProjectIdEventsTabsStatsRoute+ '/$organizationId/$projectId/notifications/notifications': typeof AppOrganizationIdProjectIdNotificationsTabsNotificationsRoute+ '/$organizationId/$projectId/notifications/rules': typeof AppOrganizationIdProjectIdNotificationsTabsRulesRoute+ '/$organizationId/$projectId/profiles/$profileId': typeof AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRoute+ '/$organizationId/$projectId/profiles/anonymous': typeof AppOrganizationIdProjectIdProfilesTabsAnonymousRoute+ '/$organizationId/$projectId/profiles/identified': typeof AppOrganizationIdProjectIdProfilesTabsIdentifiedRoute+ '/$organizationId/$projectId/profiles/power-users': typeof AppOrganizationIdProjectIdProfilesTabsPowerUsersRoute+ '/$organizationId/$projectId/settings/clients': typeof AppOrganizationIdProjectIdSettingsTabsClientsRoute+ '/$organizationId/$projectId/settings/details': typeof AppOrganizationIdProjectIdSettingsTabsDetailsRoute+ '/$organizationId/$projectId/settings/events': typeof AppOrganizationIdProjectIdSettingsTabsEventsRoute+ '/$organizationId/$projectId/profiles/$profileId/events': typeof AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRoute+}+export interface FileRoutesById {+ __root__: typeof rootRouteImport+ '/': typeof IndexRoute+ '/_app': typeof AppRouteWithChildren+ '/_login': typeof LoginRouteWithChildren+ '/_public': typeof PublicRouteWithChildren+ '/_steps': typeof StepsRouteWithChildren+ '/_app/$organizationId': typeof AppOrganizationIdRouteWithChildren+ '/_login/login': typeof LoginLoginRoute+ '/_login/reset-password': typeof LoginResetPasswordRoute+ '/_public/onboarding': typeof PublicOnboardingRoute+ '/_app/$organizationId/$projectId': typeof AppOrganizationIdProjectIdRoute+ '/_app/$organizationId/billing': typeof AppOrganizationIdBillingRoute+ '/_app/$organizationId/settings': typeof AppOrganizationIdSettingsRoute+ '/_steps/onboarding/project': typeof StepsOnboardingProjectRoute+ '/share/overview/$shareId': typeof ShareOverviewShareIdRoute+ '/_app/$organizationId/': typeof AppOrganizationIdIndexRoute+ '/_app/$organizationId/$projectId_/chat': typeof AppOrganizationIdProjectIdChatRoute+ '/_app/$organizationId/$projectId_/dashboards': typeof AppOrganizationIdProjectIdDashboardsRoute+ '/_app/$organizationId/$projectId_/pages': typeof AppOrganizationIdProjectIdPagesRoute+ '/_app/$organizationId/$projectId_/realtime': typeof AppOrganizationIdProjectIdRealtimeRoute+ '/_app/$organizationId/$projectId_/references': typeof AppOrganizationIdProjectIdReferencesRoute+ '/_app/$organizationId/$projectId_/reports': typeof AppOrganizationIdProjectIdReportsRoute+ '/_app/$organizationId/$projectId_/sessions': typeof AppOrganizationIdProjectIdSessionsRoute+ '/_app/$organizationId/integrations': typeof AppOrganizationIdIntegrationsRouteWithChildren+ '/_app/$organizationId/integrations/_tabs': typeof AppOrganizationIdIntegrationsTabsRouteWithChildren+ '/_app/$organizationId/members': typeof AppOrganizationIdMembersRouteWithChildren+ '/_app/$organizationId/members/_tabs': typeof AppOrganizationIdMembersTabsRouteWithChildren+ '/_steps/onboarding/$projectId/connect': typeof StepsOnboardingProjectIdConnectRoute+ '/_steps/onboarding/$projectId/verify': typeof StepsOnboardingProjectIdVerifyRoute+ '/_app/$organizationId/$projectId_/dashboards_/$dashboardId': typeof AppOrganizationIdProjectIdDashboardsDashboardIdRoute+ '/_app/$organizationId/$projectId_/events': typeof AppOrganizationIdProjectIdEventsRouteWithChildren+ '/_app/$organizationId/$projectId_/events/_tabs': typeof AppOrganizationIdProjectIdEventsTabsRouteWithChildren+ '/_app/$organizationId/$projectId_/notifications': typeof AppOrganizationIdProjectIdNotificationsRouteWithChildren+ '/_app/$organizationId/$projectId_/notifications/_tabs': typeof AppOrganizationIdProjectIdNotificationsTabsRouteWithChildren+ '/_app/$organizationId/$projectId_/profiles': typeof AppOrganizationIdProjectIdProfilesRouteWithChildren+ '/_app/$organizationId/$projectId_/profiles/_tabs': typeof AppOrganizationIdProjectIdProfilesTabsRouteWithChildren+ '/_app/$organizationId/$projectId_/reports_/$reportId': typeof AppOrganizationIdProjectIdReportsReportIdRoute+ '/_app/$organizationId/$projectId_/sessions_/$sessionId': typeof AppOrganizationIdProjectIdSessionsSessionIdRoute+ '/_app/$organizationId/$projectId_/settings': typeof AppOrganizationIdProjectIdSettingsRouteWithChildren+ '/_app/$organizationId/$projectId_/settings/_tabs': typeof AppOrganizationIdProjectIdSettingsTabsRouteWithChildren+ '/_app/$organizationId/integrations/_tabs/available': typeof AppOrganizationIdIntegrationsTabsAvailableRoute+ '/_app/$organizationId/integrations/_tabs/installed': typeof AppOrganizationIdIntegrationsTabsInstalledRoute+ '/_app/$organizationId/members/_tabs/invitations': typeof AppOrganizationIdMembersTabsInvitationsRoute+ '/_app/$organizationId/members/_tabs/members': typeof AppOrganizationIdMembersTabsMembersRoute+ '/_app/$organizationId/integrations/_tabs/': typeof AppOrganizationIdIntegrationsTabsIndexRoute+ '/_app/$organizationId/members/_tabs/': typeof AppOrganizationIdMembersTabsIndexRoute+ '/_app/$organizationId/$projectId_/events/_tabs/conversions': typeof AppOrganizationIdProjectIdEventsTabsConversionsRoute+ '/_app/$organizationId/$projectId_/events/_tabs/events': typeof AppOrganizationIdProjectIdEventsTabsEventsRoute+ '/_app/$organizationId/$projectId_/events/_tabs/stats': typeof AppOrganizationIdProjectIdEventsTabsStatsRoute+ '/_app/$organizationId/$projectId_/notifications/_tabs/notifications': typeof AppOrganizationIdProjectIdNotificationsTabsNotificationsRoute+ '/_app/$organizationId/$projectId_/notifications/_tabs/rules': typeof AppOrganizationIdProjectIdNotificationsTabsRulesRoute+ '/_app/$organizationId/$projectId_/profiles/$profileId': typeof AppOrganizationIdProjectIdProfilesProfileIdRouteWithChildren+ '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs': typeof AppOrganizationIdProjectIdProfilesProfileIdTabsRouteWithChildren+ '/_app/$organizationId/$projectId_/profiles/_tabs/anonymous': typeof AppOrganizationIdProjectIdProfilesTabsAnonymousRoute+ '/_app/$organizationId/$projectId_/profiles/_tabs/identified': typeof AppOrganizationIdProjectIdProfilesTabsIdentifiedRoute+ '/_app/$organizationId/$projectId_/profiles/_tabs/power-users': typeof AppOrganizationIdProjectIdProfilesTabsPowerUsersRoute+ '/_app/$organizationId/$projectId_/settings/_tabs/clients': typeof AppOrganizationIdProjectIdSettingsTabsClientsRoute+ '/_app/$organizationId/$projectId_/settings/_tabs/details': typeof AppOrganizationIdProjectIdSettingsTabsDetailsRoute+ '/_app/$organizationId/$projectId_/settings/_tabs/events': typeof AppOrganizationIdProjectIdSettingsTabsEventsRoute+ '/_app/$organizationId/$projectId_/events/_tabs/': typeof AppOrganizationIdProjectIdEventsTabsIndexRoute+ '/_app/$organizationId/$projectId_/notifications/_tabs/': typeof AppOrganizationIdProjectIdNotificationsTabsIndexRoute+ '/_app/$organizationId/$projectId_/profiles/_tabs/': typeof AppOrganizationIdProjectIdProfilesTabsIndexRoute+ '/_app/$organizationId/$projectId_/settings/_tabs/': typeof AppOrganizationIdProjectIdSettingsTabsIndexRoute+ '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/events': typeof AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRoute+ '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/': typeof AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRoute+}+export interface FileRouteTypes {+ fileRoutesByFullPath: FileRoutesByFullPath+ fullPaths:+ | '/'+ | '/$organizationId'+ | '/login'+ | '/reset-password'+ | '/onboarding'+ | '/$organizationId/$projectId'+ | '/$organizationId/billing'+ | '/$organizationId/settings'+ | '/onboarding/project'+ | '/share/overview/$shareId'+ | '/$organizationId/'+ | '/$organizationId/$projectId/chat'+ | '/$organizationId/$projectId/dashboards'+ | '/$organizationId/$projectId/pages'+ | '/$organizationId/$projectId/realtime'+ | '/$organizationId/$projectId/references'+ | '/$organizationId/$projectId/reports'+ | '/$organizationId/$projectId/sessions'+ | '/$organizationId/integrations'+ | '/$organizationId/members'+ | '/onboarding/$projectId/connect'+ | '/onboarding/$projectId/verify'+ | '/$organizationId/$projectId/dashboards/$dashboardId'+ | '/$organizationId/$projectId/events'+ | '/$organizationId/$projectId/notifications'+ | '/$organizationId/$projectId/profiles'+ | '/$organizationId/$projectId/reports/$reportId'+ | '/$organizationId/$projectId/sessions/$sessionId'+ | '/$organizationId/$projectId/settings'+ | '/$organizationId/integrations/available'+ | '/$organizationId/integrations/installed'+ | '/$organizationId/members/invitations'+ | '/$organizationId/members/members'+ | '/$organizationId/integrations/'+ | '/$organizationId/members/'+ | '/$organizationId/$projectId/events/conversions'+ | '/$organizationId/$projectId/events/events'+ | '/$organizationId/$projectId/events/stats'+ | '/$organizationId/$projectId/notifications/notifications'+ | '/$organizationId/$projectId/notifications/rules'+ | '/$organizationId/$projectId/profiles/$profileId'+ | '/$organizationId/$projectId/profiles/anonymous'+ | '/$organizationId/$projectId/profiles/identified'+ | '/$organizationId/$projectId/profiles/power-users'+ | '/$organizationId/$projectId/settings/clients'+ | '/$organizationId/$projectId/settings/details'+ | '/$organizationId/$projectId/settings/events'+ | '/$organizationId/$projectId/events/'+ | '/$organizationId/$projectId/notifications/'+ | '/$organizationId/$projectId/profiles/'+ | '/$organizationId/$projectId/settings/'+ | '/$organizationId/$projectId/profiles/$profileId/events'+ | '/$organizationId/$projectId/profiles/$profileId/'+ fileRoutesByTo: FileRoutesByTo+ to:+ | '/'+ | '/login'+ | '/reset-password'+ | '/onboarding'+ | '/$organizationId/$projectId'+ | '/$organizationId/billing'+ | '/$organizationId/settings'+ | '/onboarding/project'+ | '/share/overview/$shareId'+ | '/$organizationId'+ | '/$organizationId/$projectId/chat'+ | '/$organizationId/$projectId/dashboards'+ | '/$organizationId/$projectId/pages'+ | '/$organizationId/$projectId/realtime'+ | '/$organizationId/$projectId/references'+ | '/$organizationId/$projectId/reports'+ | '/$organizationId/$projectId/sessions'+ | '/$organizationId/integrations'+ | '/$organizationId/members'+ | '/onboarding/$projectId/connect'+ | '/onboarding/$projectId/verify'+ | '/$organizationId/$projectId/dashboards/$dashboardId'+ | '/$organizationId/$projectId/events'+ | '/$organizationId/$projectId/notifications'+ | '/$organizationId/$projectId/profiles'+ | '/$organizationId/$projectId/reports/$reportId'+ | '/$organizationId/$projectId/sessions/$sessionId'+ | '/$organizationId/$projectId/settings'+ | '/$organizationId/integrations/available'+ | '/$organizationId/integrations/installed'+ | '/$organizationId/members/invitations'+ | '/$organizationId/members/members'+ | '/$organizationId/$projectId/events/conversions'+ | '/$organizationId/$projectId/events/events'+ | '/$organizationId/$projectId/events/stats'+ | '/$organizationId/$projectId/notifications/notifications'+ | '/$organizationId/$projectId/notifications/rules'+ | '/$organizationId/$projectId/profiles/$profileId'+ | '/$organizationId/$projectId/profiles/anonymous'+ | '/$organizationId/$projectId/profiles/identified'+ | '/$organizationId/$projectId/profiles/power-users'+ | '/$organizationId/$projectId/settings/clients'+ | '/$organizationId/$projectId/settings/details'+ | '/$organizationId/$projectId/settings/events'+ | '/$organizationId/$projectId/profiles/$profileId/events'+ id:+ | '__root__'+ | '/'+ | '/_app'+ | '/_login'+ | '/_public'+ | '/_steps'+ | '/_app/$organizationId'+ | '/_login/login'+ | '/_login/reset-password'+ | '/_public/onboarding'+ | '/_app/$organizationId/$projectId'+ | '/_app/$organizationId/billing'+ | '/_app/$organizationId/settings'+ | '/_steps/onboarding/project'+ | '/share/overview/$shareId'+ | '/_app/$organizationId/'+ | '/_app/$organizationId/$projectId_/chat'+ | '/_app/$organizationId/$projectId_/dashboards'+ | '/_app/$organizationId/$projectId_/pages'+ | '/_app/$organizationId/$projectId_/realtime'+ | '/_app/$organizationId/$projectId_/references'+ | '/_app/$organizationId/$projectId_/reports'+ | '/_app/$organizationId/$projectId_/sessions'+ | '/_app/$organizationId/integrations'+ | '/_app/$organizationId/integrations/_tabs'+ | '/_app/$organizationId/members'+ | '/_app/$organizationId/members/_tabs'+ | '/_steps/onboarding/$projectId/connect'+ | '/_steps/onboarding/$projectId/verify'+ | '/_app/$organizationId/$projectId_/dashboards_/$dashboardId'+ | '/_app/$organizationId/$projectId_/events'+ | '/_app/$organizationId/$projectId_/events/_tabs'+ | '/_app/$organizationId/$projectId_/notifications'+ | '/_app/$organizationId/$projectId_/notifications/_tabs'+ | '/_app/$organizationId/$projectId_/profiles'+ | '/_app/$organizationId/$projectId_/profiles/_tabs'+ | '/_app/$organizationId/$projectId_/reports_/$reportId'+ | '/_app/$organizationId/$projectId_/sessions_/$sessionId'+ | '/_app/$organizationId/$projectId_/settings'+ | '/_app/$organizationId/$projectId_/settings/_tabs'+ | '/_app/$organizationId/integrations/_tabs/available'+ | '/_app/$organizationId/integrations/_tabs/installed'+ | '/_app/$organizationId/members/_tabs/invitations'+ | '/_app/$organizationId/members/_tabs/members'+ | '/_app/$organizationId/integrations/_tabs/'+ | '/_app/$organizationId/members/_tabs/'+ | '/_app/$organizationId/$projectId_/events/_tabs/conversions'+ | '/_app/$organizationId/$projectId_/events/_tabs/events'+ | '/_app/$organizationId/$projectId_/events/_tabs/stats'+ | '/_app/$organizationId/$projectId_/notifications/_tabs/notifications'+ | '/_app/$organizationId/$projectId_/notifications/_tabs/rules'+ | '/_app/$organizationId/$projectId_/profiles/$profileId'+ | '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs'+ | '/_app/$organizationId/$projectId_/profiles/_tabs/anonymous'+ | '/_app/$organizationId/$projectId_/profiles/_tabs/identified'+ | '/_app/$organizationId/$projectId_/profiles/_tabs/power-users'+ | '/_app/$organizationId/$projectId_/settings/_tabs/clients'+ | '/_app/$organizationId/$projectId_/settings/_tabs/details'+ | '/_app/$organizationId/$projectId_/settings/_tabs/events'+ | '/_app/$organizationId/$projectId_/events/_tabs/'+ | '/_app/$organizationId/$projectId_/notifications/_tabs/'+ | '/_app/$organizationId/$projectId_/profiles/_tabs/'+ | '/_app/$organizationId/$projectId_/settings/_tabs/'+ | '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/events'+ | '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/'+ fileRoutesById: FileRoutesById+}+export interface RootRouteChildren {+ IndexRoute: typeof IndexRoute+ AppRoute: typeof AppRouteWithChildren+ LoginRoute: typeof LoginRouteWithChildren+ PublicRoute: typeof PublicRouteWithChildren+ StepsRoute: typeof StepsRouteWithChildren+ ShareOverviewShareIdRoute: typeof ShareOverviewShareIdRoute+}++declare module '@tanstack/react-router' {+ interface FileRoutesByPath {+ '/_steps': {+ id: '/_steps'+ path: ''+ fullPath: ''+ preLoaderRoute: typeof StepsRouteImport+ parentRoute: typeof rootRouteImport+ }+ '/_public': {+ id: '/_public'+ path: ''+ fullPath: ''+ preLoaderRoute: typeof PublicRouteImport+ parentRoute: typeof rootRouteImport+ }+ '/_login': {+ id: '/_login'+ path: ''+ fullPath: ''+ preLoaderRoute: typeof LoginRouteImport+ parentRoute: typeof rootRouteImport+ }+ '/_app': {+ id: '/_app'+ path: ''+ fullPath: ''+ preLoaderRoute: typeof AppRouteImport+ parentRoute: typeof rootRouteImport+ }+ '/': {+ id: '/'+ path: '/'+ fullPath: '/'+ preLoaderRoute: typeof IndexRouteImport+ parentRoute: typeof rootRouteImport+ }+ '/_public/onboarding': {+ id: '/_public/onboarding'+ path: '/onboarding'+ fullPath: '/onboarding'+ preLoaderRoute: typeof PublicOnboardingRouteImport+ parentRoute: typeof PublicRoute+ }+ '/_login/reset-password': {+ id: '/_login/reset-password'+ path: '/reset-password'+ fullPath: '/reset-password'+ preLoaderRoute: typeof LoginResetPasswordRouteImport+ parentRoute: typeof LoginRoute+ }+ '/_login/login': {+ id: '/_login/login'+ path: '/login'+ fullPath: '/login'+ preLoaderRoute: typeof LoginLoginRouteImport+ parentRoute: typeof LoginRoute+ }+ '/_app/$organizationId': {+ id: '/_app/$organizationId'+ path: '/$organizationId'+ fullPath: '/$organizationId'+ preLoaderRoute: typeof AppOrganizationIdRouteImport+ parentRoute: typeof AppRoute+ }+ '/_app/$organizationId/members': {+ id: '/_app/$organizationId/members'+ path: '/members'+ fullPath: '/$organizationId/members'+ preLoaderRoute: typeof AppOrganizationIdMembersRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/integrations': {+ id: '/_app/$organizationId/integrations'+ path: '/integrations'+ fullPath: '/$organizationId/integrations'+ preLoaderRoute: typeof AppOrganizationIdIntegrationsRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/': {+ id: '/_app/$organizationId/'+ path: '/'+ fullPath: '/$organizationId/'+ preLoaderRoute: typeof AppOrganizationIdIndexRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/share/overview/$shareId': {+ id: '/share/overview/$shareId'+ path: '/share/overview/$shareId'+ fullPath: '/share/overview/$shareId'+ preLoaderRoute: typeof ShareOverviewShareIdRouteImport+ parentRoute: typeof rootRouteImport+ }+ '/_steps/onboarding/project': {+ id: '/_steps/onboarding/project'+ path: '/onboarding/project'+ fullPath: '/onboarding/project'+ preLoaderRoute: typeof StepsOnboardingProjectRouteImport+ parentRoute: typeof StepsRoute+ }+ '/_app/$organizationId/settings': {+ id: '/_app/$organizationId/settings'+ path: '/settings'+ fullPath: '/$organizationId/settings'+ preLoaderRoute: typeof AppOrganizationIdSettingsRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/billing': {+ id: '/_app/$organizationId/billing'+ path: '/billing'+ fullPath: '/$organizationId/billing'+ preLoaderRoute: typeof AppOrganizationIdBillingRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId': {+ id: '/_app/$organizationId/$projectId'+ path: '/$projectId'+ fullPath: '/$organizationId/$projectId'+ preLoaderRoute: typeof AppOrganizationIdProjectIdRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/settings': {+ id: '/_app/$organizationId/$projectId_/settings'+ path: '/$projectId/settings'+ fullPath: '/$organizationId/$projectId/settings'+ preLoaderRoute: typeof AppOrganizationIdProjectIdSettingsRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/profiles': {+ id: '/_app/$organizationId/$projectId_/profiles'+ path: '/$projectId/profiles'+ fullPath: '/$organizationId/$projectId/profiles'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/notifications': {+ id: '/_app/$organizationId/$projectId_/notifications'+ path: '/$projectId/notifications'+ fullPath: '/$organizationId/$projectId/notifications'+ preLoaderRoute: typeof AppOrganizationIdProjectIdNotificationsRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/events': {+ id: '/_app/$organizationId/$projectId_/events'+ path: '/$projectId/events'+ fullPath: '/$organizationId/$projectId/events'+ preLoaderRoute: typeof AppOrganizationIdProjectIdEventsRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_steps/onboarding/$projectId/verify': {+ id: '/_steps/onboarding/$projectId/verify'+ path: '/onboarding/$projectId/verify'+ fullPath: '/onboarding/$projectId/verify'+ preLoaderRoute: typeof StepsOnboardingProjectIdVerifyRouteImport+ parentRoute: typeof StepsRoute+ }+ '/_steps/onboarding/$projectId/connect': {+ id: '/_steps/onboarding/$projectId/connect'+ path: '/onboarding/$projectId/connect'+ fullPath: '/onboarding/$projectId/connect'+ preLoaderRoute: typeof StepsOnboardingProjectIdConnectRouteImport+ parentRoute: typeof StepsRoute+ }+ '/_app/$organizationId/members/_tabs': {+ id: '/_app/$organizationId/members/_tabs'+ path: '/members'+ fullPath: '/$organizationId/members'+ preLoaderRoute: typeof AppOrganizationIdMembersTabsRouteImport+ parentRoute: typeof AppOrganizationIdMembersRoute+ }+ '/_app/$organizationId/integrations/_tabs': {+ id: '/_app/$organizationId/integrations/_tabs'+ path: '/integrations'+ fullPath: '/$organizationId/integrations'+ preLoaderRoute: typeof AppOrganizationIdIntegrationsTabsRouteImport+ parentRoute: typeof AppOrganizationIdIntegrationsRoute+ }+ '/_app/$organizationId/$projectId_/sessions': {+ id: '/_app/$organizationId/$projectId_/sessions'+ path: '/$projectId/sessions'+ fullPath: '/$organizationId/$projectId/sessions'+ preLoaderRoute: typeof AppOrganizationIdProjectIdSessionsRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/reports': {+ id: '/_app/$organizationId/$projectId_/reports'+ path: '/$projectId/reports'+ fullPath: '/$organizationId/$projectId/reports'+ preLoaderRoute: typeof AppOrganizationIdProjectIdReportsRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/references': {+ id: '/_app/$organizationId/$projectId_/references'+ path: '/$projectId/references'+ fullPath: '/$organizationId/$projectId/references'+ preLoaderRoute: typeof AppOrganizationIdProjectIdReferencesRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/realtime': {+ id: '/_app/$organizationId/$projectId_/realtime'+ path: '/$projectId/realtime'+ fullPath: '/$organizationId/$projectId/realtime'+ preLoaderRoute: typeof AppOrganizationIdProjectIdRealtimeRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/pages': {+ id: '/_app/$organizationId/$projectId_/pages'+ path: '/$projectId/pages'+ fullPath: '/$organizationId/$projectId/pages'+ preLoaderRoute: typeof AppOrganizationIdProjectIdPagesRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/dashboards': {+ id: '/_app/$organizationId/$projectId_/dashboards'+ path: '/$projectId/dashboards'+ fullPath: '/$organizationId/$projectId/dashboards'+ preLoaderRoute: typeof AppOrganizationIdProjectIdDashboardsRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/chat': {+ id: '/_app/$organizationId/$projectId_/chat'+ path: '/$projectId/chat'+ fullPath: '/$organizationId/$projectId/chat'+ preLoaderRoute: typeof AppOrganizationIdProjectIdChatRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/profiles/$profileId': {+ id: '/_app/$organizationId/$projectId_/profiles/$profileId'+ path: '/$profileId'+ fullPath: '/$organizationId/$projectId/profiles/$profileId'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdProfilesRoute+ }+ '/_app/$organizationId/members/_tabs/': {+ id: '/_app/$organizationId/members/_tabs/'+ path: '/'+ fullPath: '/$organizationId/members/'+ preLoaderRoute: typeof AppOrganizationIdMembersTabsIndexRouteImport+ parentRoute: typeof AppOrganizationIdMembersTabsRoute+ }+ '/_app/$organizationId/integrations/_tabs/': {+ id: '/_app/$organizationId/integrations/_tabs/'+ path: '/'+ fullPath: '/$organizationId/integrations/'+ preLoaderRoute: typeof AppOrganizationIdIntegrationsTabsIndexRouteImport+ parentRoute: typeof AppOrganizationIdIntegrationsTabsRoute+ }+ '/_app/$organizationId/members/_tabs/members': {+ id: '/_app/$organizationId/members/_tabs/members'+ path: '/members'+ fullPath: '/$organizationId/members/members'+ preLoaderRoute: typeof AppOrganizationIdMembersTabsMembersRouteImport+ parentRoute: typeof AppOrganizationIdMembersTabsRoute+ }+ '/_app/$organizationId/members/_tabs/invitations': {+ id: '/_app/$organizationId/members/_tabs/invitations'+ path: '/invitations'+ fullPath: '/$organizationId/members/invitations'+ preLoaderRoute: typeof AppOrganizationIdMembersTabsInvitationsRouteImport+ parentRoute: typeof AppOrganizationIdMembersTabsRoute+ }+ '/_app/$organizationId/integrations/_tabs/installed': {+ id: '/_app/$organizationId/integrations/_tabs/installed'+ path: '/installed'+ fullPath: '/$organizationId/integrations/installed'+ preLoaderRoute: typeof AppOrganizationIdIntegrationsTabsInstalledRouteImport+ parentRoute: typeof AppOrganizationIdIntegrationsTabsRoute+ }+ '/_app/$organizationId/integrations/_tabs/available': {+ id: '/_app/$organizationId/integrations/_tabs/available'+ path: '/available'+ fullPath: '/$organizationId/integrations/available'+ preLoaderRoute: typeof AppOrganizationIdIntegrationsTabsAvailableRouteImport+ parentRoute: typeof AppOrganizationIdIntegrationsTabsRoute+ }+ '/_app/$organizationId/$projectId_/settings/_tabs': {+ id: '/_app/$organizationId/$projectId_/settings/_tabs'+ path: '/$projectId/settings'+ fullPath: '/$organizationId/$projectId/settings'+ preLoaderRoute: typeof AppOrganizationIdProjectIdSettingsTabsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdSettingsRoute+ }+ '/_app/$organizationId/$projectId_/sessions_/$sessionId': {+ id: '/_app/$organizationId/$projectId_/sessions_/$sessionId'+ path: '/$projectId/sessions/$sessionId'+ fullPath: '/$organizationId/$projectId/sessions/$sessionId'+ preLoaderRoute: typeof AppOrganizationIdProjectIdSessionsSessionIdRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/reports_/$reportId': {+ id: '/_app/$organizationId/$projectId_/reports_/$reportId'+ path: '/$projectId/reports/$reportId'+ fullPath: '/$organizationId/$projectId/reports/$reportId'+ preLoaderRoute: typeof AppOrganizationIdProjectIdReportsReportIdRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/profiles/_tabs': {+ id: '/_app/$organizationId/$projectId_/profiles/_tabs'+ path: '/$projectId/profiles'+ fullPath: '/$organizationId/$projectId/profiles'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesTabsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdProfilesRoute+ }+ '/_app/$organizationId/$projectId_/notifications/_tabs': {+ id: '/_app/$organizationId/$projectId_/notifications/_tabs'+ path: '/$projectId/notifications'+ fullPath: '/$organizationId/$projectId/notifications'+ preLoaderRoute: typeof AppOrganizationIdProjectIdNotificationsTabsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdNotificationsRoute+ }+ '/_app/$organizationId/$projectId_/events/_tabs': {+ id: '/_app/$organizationId/$projectId_/events/_tabs'+ path: '/$projectId/events'+ fullPath: '/$organizationId/$projectId/events'+ preLoaderRoute: typeof AppOrganizationIdProjectIdEventsTabsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdEventsRoute+ }+ '/_app/$organizationId/$projectId_/dashboards_/$dashboardId': {+ id: '/_app/$organizationId/$projectId_/dashboards_/$dashboardId'+ path: '/$projectId/dashboards/$dashboardId'+ fullPath: '/$organizationId/$projectId/dashboards/$dashboardId'+ preLoaderRoute: typeof AppOrganizationIdProjectIdDashboardsDashboardIdRouteImport+ parentRoute: typeof AppOrganizationIdRoute+ }+ '/_app/$organizationId/$projectId_/settings/_tabs/': {+ id: '/_app/$organizationId/$projectId_/settings/_tabs/'+ path: '/'+ fullPath: '/$organizationId/$projectId/settings/'+ preLoaderRoute: typeof AppOrganizationIdProjectIdSettingsTabsIndexRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdSettingsTabsRoute+ }+ '/_app/$organizationId/$projectId_/profiles/_tabs/': {+ id: '/_app/$organizationId/$projectId_/profiles/_tabs/'+ path: '/'+ fullPath: '/$organizationId/$projectId/profiles/'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesTabsIndexRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdProfilesTabsRoute+ }+ '/_app/$organizationId/$projectId_/notifications/_tabs/': {+ id: '/_app/$organizationId/$projectId_/notifications/_tabs/'+ path: '/'+ fullPath: '/$organizationId/$projectId/notifications/'+ preLoaderRoute: typeof AppOrganizationIdProjectIdNotificationsTabsIndexRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdNotificationsTabsRoute+ }+ '/_app/$organizationId/$projectId_/events/_tabs/': {+ id: '/_app/$organizationId/$projectId_/events/_tabs/'+ path: '/'+ fullPath: '/$organizationId/$projectId/events/'+ preLoaderRoute: typeof AppOrganizationIdProjectIdEventsTabsIndexRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdEventsTabsRoute+ }+ '/_app/$organizationId/$projectId_/settings/_tabs/events': {+ id: '/_app/$organizationId/$projectId_/settings/_tabs/events'+ path: '/events'+ fullPath: '/$organizationId/$projectId/settings/events'+ preLoaderRoute: typeof AppOrganizationIdProjectIdSettingsTabsEventsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdSettingsTabsRoute+ }+ '/_app/$organizationId/$projectId_/settings/_tabs/details': {+ id: '/_app/$organizationId/$projectId_/settings/_tabs/details'+ path: '/details'+ fullPath: '/$organizationId/$projectId/settings/details'+ preLoaderRoute: typeof AppOrganizationIdProjectIdSettingsTabsDetailsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdSettingsTabsRoute+ }+ '/_app/$organizationId/$projectId_/settings/_tabs/clients': {+ id: '/_app/$organizationId/$projectId_/settings/_tabs/clients'+ path: '/clients'+ fullPath: '/$organizationId/$projectId/settings/clients'+ preLoaderRoute: typeof AppOrganizationIdProjectIdSettingsTabsClientsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdSettingsTabsRoute+ }+ '/_app/$organizationId/$projectId_/profiles/_tabs/power-users': {+ id: '/_app/$organizationId/$projectId_/profiles/_tabs/power-users'+ path: '/power-users'+ fullPath: '/$organizationId/$projectId/profiles/power-users'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesTabsPowerUsersRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdProfilesTabsRoute+ }+ '/_app/$organizationId/$projectId_/profiles/_tabs/identified': {+ id: '/_app/$organizationId/$projectId_/profiles/_tabs/identified'+ path: '/identified'+ fullPath: '/$organizationId/$projectId/profiles/identified'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesTabsIdentifiedRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdProfilesTabsRoute+ }+ '/_app/$organizationId/$projectId_/profiles/_tabs/anonymous': {+ id: '/_app/$organizationId/$projectId_/profiles/_tabs/anonymous'+ path: '/anonymous'+ fullPath: '/$organizationId/$projectId/profiles/anonymous'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesTabsAnonymousRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdProfilesTabsRoute+ }+ '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs': {+ id: '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs'+ path: '/$profileId'+ fullPath: '/$organizationId/$projectId/profiles/$profileId'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdTabsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdRoute+ }+ '/_app/$organizationId/$projectId_/notifications/_tabs/rules': {+ id: '/_app/$organizationId/$projectId_/notifications/_tabs/rules'+ path: '/rules'+ fullPath: '/$organizationId/$projectId/notifications/rules'+ preLoaderRoute: typeof AppOrganizationIdProjectIdNotificationsTabsRulesRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdNotificationsTabsRoute+ }+ '/_app/$organizationId/$projectId_/notifications/_tabs/notifications': {+ id: '/_app/$organizationId/$projectId_/notifications/_tabs/notifications'+ path: '/notifications'+ fullPath: '/$organizationId/$projectId/notifications/notifications'+ preLoaderRoute: typeof AppOrganizationIdProjectIdNotificationsTabsNotificationsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdNotificationsTabsRoute+ }+ '/_app/$organizationId/$projectId_/events/_tabs/stats': {+ id: '/_app/$organizationId/$projectId_/events/_tabs/stats'+ path: '/stats'+ fullPath: '/$organizationId/$projectId/events/stats'+ preLoaderRoute: typeof AppOrganizationIdProjectIdEventsTabsStatsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdEventsTabsRoute+ }+ '/_app/$organizationId/$projectId_/events/_tabs/events': {+ id: '/_app/$organizationId/$projectId_/events/_tabs/events'+ path: '/events'+ fullPath: '/$organizationId/$projectId/events/events'+ preLoaderRoute: typeof AppOrganizationIdProjectIdEventsTabsEventsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdEventsTabsRoute+ }+ '/_app/$organizationId/$projectId_/events/_tabs/conversions': {+ id: '/_app/$organizationId/$projectId_/events/_tabs/conversions'+ path: '/conversions'+ fullPath: '/$organizationId/$projectId/events/conversions'+ preLoaderRoute: typeof AppOrganizationIdProjectIdEventsTabsConversionsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdEventsTabsRoute+ }+ '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/': {+ id: '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/'+ path: '/'+ fullPath: '/$organizationId/$projectId/profiles/$profileId/'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdTabsRoute+ }+ '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/events': {+ id: '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/events'+ path: '/events'+ fullPath: '/$organizationId/$projectId/profiles/$profileId/events'+ preLoaderRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRouteImport+ parentRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdTabsRoute+ }+ }+}++interface AppOrganizationIdIntegrationsTabsRouteChildren {+ AppOrganizationIdIntegrationsTabsAvailableRoute: typeof AppOrganizationIdIntegrationsTabsAvailableRoute+ AppOrganizationIdIntegrationsTabsInstalledRoute: typeof AppOrganizationIdIntegrationsTabsInstalledRoute+ AppOrganizationIdIntegrationsTabsIndexRoute: typeof AppOrganizationIdIntegrationsTabsIndexRoute+}++const AppOrganizationIdIntegrationsTabsRouteChildren: AppOrganizationIdIntegrationsTabsRouteChildren =+ {+ AppOrganizationIdIntegrationsTabsAvailableRoute:+ AppOrganizationIdIntegrationsTabsAvailableRoute,+ AppOrganizationIdIntegrationsTabsInstalledRoute:+ AppOrganizationIdIntegrationsTabsInstalledRoute,+ AppOrganizationIdIntegrationsTabsIndexRoute:+ AppOrganizationIdIntegrationsTabsIndexRoute,+ }++const AppOrganizationIdIntegrationsTabsRouteWithChildren =+ AppOrganizationIdIntegrationsTabsRoute._addFileChildren(+ AppOrganizationIdIntegrationsTabsRouteChildren,+ )++interface AppOrganizationIdIntegrationsRouteChildren {+ AppOrganizationIdIntegrationsTabsRoute: typeof AppOrganizationIdIntegrationsTabsRouteWithChildren+}++const AppOrganizationIdIntegrationsRouteChildren: AppOrganizationIdIntegrationsRouteChildren =+ {+ AppOrganizationIdIntegrationsTabsRoute:+ AppOrganizationIdIntegrationsTabsRouteWithChildren,+ }++const AppOrganizationIdIntegrationsRouteWithChildren =+ AppOrganizationIdIntegrationsRoute._addFileChildren(+ AppOrganizationIdIntegrationsRouteChildren,+ )++interface AppOrganizationIdMembersTabsRouteChildren {+ AppOrganizationIdMembersTabsInvitationsRoute: typeof AppOrganizationIdMembersTabsInvitationsRoute+ AppOrganizationIdMembersTabsMembersRoute: typeof AppOrganizationIdMembersTabsMembersRoute+ AppOrganizationIdMembersTabsIndexRoute: typeof AppOrganizationIdMembersTabsIndexRoute+}++const AppOrganizationIdMembersTabsRouteChildren: AppOrganizationIdMembersTabsRouteChildren =+ {+ AppOrganizationIdMembersTabsInvitationsRoute:+ AppOrganizationIdMembersTabsInvitationsRoute,+ AppOrganizationIdMembersTabsMembersRoute:+ AppOrganizationIdMembersTabsMembersRoute,+ AppOrganizationIdMembersTabsIndexRoute:+ AppOrganizationIdMembersTabsIndexRoute,+ }++const AppOrganizationIdMembersTabsRouteWithChildren =+ AppOrganizationIdMembersTabsRoute._addFileChildren(+ AppOrganizationIdMembersTabsRouteChildren,+ )++interface AppOrganizationIdMembersRouteChildren {+ AppOrganizationIdMembersTabsRoute: typeof AppOrganizationIdMembersTabsRouteWithChildren+}++const AppOrganizationIdMembersRouteChildren: AppOrganizationIdMembersRouteChildren =+ {+ AppOrganizationIdMembersTabsRoute:+ AppOrganizationIdMembersTabsRouteWithChildren,+ }++const AppOrganizationIdMembersRouteWithChildren =+ AppOrganizationIdMembersRoute._addFileChildren(+ AppOrganizationIdMembersRouteChildren,+ )++interface AppOrganizationIdProjectIdEventsTabsRouteChildren {+ AppOrganizationIdProjectIdEventsTabsConversionsRoute: typeof AppOrganizationIdProjectIdEventsTabsConversionsRoute+ AppOrganizationIdProjectIdEventsTabsEventsRoute: typeof AppOrganizationIdProjectIdEventsTabsEventsRoute+ AppOrganizationIdProjectIdEventsTabsStatsRoute: typeof AppOrganizationIdProjectIdEventsTabsStatsRoute+ AppOrganizationIdProjectIdEventsTabsIndexRoute: typeof AppOrganizationIdProjectIdEventsTabsIndexRoute+}++const AppOrganizationIdProjectIdEventsTabsRouteChildren: AppOrganizationIdProjectIdEventsTabsRouteChildren =+ {+ AppOrganizationIdProjectIdEventsTabsConversionsRoute:+ AppOrganizationIdProjectIdEventsTabsConversionsRoute,+ AppOrganizationIdProjectIdEventsTabsEventsRoute:+ AppOrganizationIdProjectIdEventsTabsEventsRoute,+ AppOrganizationIdProjectIdEventsTabsStatsRoute:+ AppOrganizationIdProjectIdEventsTabsStatsRoute,+ AppOrganizationIdProjectIdEventsTabsIndexRoute:+ AppOrganizationIdProjectIdEventsTabsIndexRoute,+ }++const AppOrganizationIdProjectIdEventsTabsRouteWithChildren =+ AppOrganizationIdProjectIdEventsTabsRoute._addFileChildren(+ AppOrganizationIdProjectIdEventsTabsRouteChildren,+ )++interface AppOrganizationIdProjectIdEventsRouteChildren {+ AppOrganizationIdProjectIdEventsTabsRoute: typeof AppOrganizationIdProjectIdEventsTabsRouteWithChildren+}++const AppOrganizationIdProjectIdEventsRouteChildren: AppOrganizationIdProjectIdEventsRouteChildren =+ {+ AppOrganizationIdProjectIdEventsTabsRoute:+ AppOrganizationIdProjectIdEventsTabsRouteWithChildren,+ }++const AppOrganizationIdProjectIdEventsRouteWithChildren =+ AppOrganizationIdProjectIdEventsRoute._addFileChildren(+ AppOrganizationIdProjectIdEventsRouteChildren,+ )++interface AppOrganizationIdProjectIdNotificationsTabsRouteChildren {+ AppOrganizationIdProjectIdNotificationsTabsNotificationsRoute: typeof AppOrganizationIdProjectIdNotificationsTabsNotificationsRoute+ AppOrganizationIdProjectIdNotificationsTabsRulesRoute: typeof AppOrganizationIdProjectIdNotificationsTabsRulesRoute+ AppOrganizationIdProjectIdNotificationsTabsIndexRoute: typeof AppOrganizationIdProjectIdNotificationsTabsIndexRoute+}++const AppOrganizationIdProjectIdNotificationsTabsRouteChildren: AppOrganizationIdProjectIdNotificationsTabsRouteChildren =+ {+ AppOrganizationIdProjectIdNotificationsTabsNotificationsRoute:+ AppOrganizationIdProjectIdNotificationsTabsNotificationsRoute,+ AppOrganizationIdProjectIdNotificationsTabsRulesRoute:+ AppOrganizationIdProjectIdNotificationsTabsRulesRoute,+ AppOrganizationIdProjectIdNotificationsTabsIndexRoute:+ AppOrganizationIdProjectIdNotificationsTabsIndexRoute,+ }++const AppOrganizationIdProjectIdNotificationsTabsRouteWithChildren =+ AppOrganizationIdProjectIdNotificationsTabsRoute._addFileChildren(+ AppOrganizationIdProjectIdNotificationsTabsRouteChildren,+ )++interface AppOrganizationIdProjectIdNotificationsRouteChildren {+ AppOrganizationIdProjectIdNotificationsTabsRoute: typeof AppOrganizationIdProjectIdNotificationsTabsRouteWithChildren+}++const AppOrganizationIdProjectIdNotificationsRouteChildren: AppOrganizationIdProjectIdNotificationsRouteChildren =+ {+ AppOrganizationIdProjectIdNotificationsTabsRoute:+ AppOrganizationIdProjectIdNotificationsTabsRouteWithChildren,+ }++const AppOrganizationIdProjectIdNotificationsRouteWithChildren =+ AppOrganizationIdProjectIdNotificationsRoute._addFileChildren(+ AppOrganizationIdProjectIdNotificationsRouteChildren,+ )++interface AppOrganizationIdProjectIdProfilesTabsRouteChildren {+ AppOrganizationIdProjectIdProfilesTabsAnonymousRoute: typeof AppOrganizationIdProjectIdProfilesTabsAnonymousRoute+ AppOrganizationIdProjectIdProfilesTabsIdentifiedRoute: typeof AppOrganizationIdProjectIdProfilesTabsIdentifiedRoute+ AppOrganizationIdProjectIdProfilesTabsPowerUsersRoute: typeof AppOrganizationIdProjectIdProfilesTabsPowerUsersRoute+ AppOrganizationIdProjectIdProfilesTabsIndexRoute: typeof AppOrganizationIdProjectIdProfilesTabsIndexRoute+}++const AppOrganizationIdProjectIdProfilesTabsRouteChildren: AppOrganizationIdProjectIdProfilesTabsRouteChildren =+ {+ AppOrganizationIdProjectIdProfilesTabsAnonymousRoute:+ AppOrganizationIdProjectIdProfilesTabsAnonymousRoute,+ AppOrganizationIdProjectIdProfilesTabsIdentifiedRoute:+ AppOrganizationIdProjectIdProfilesTabsIdentifiedRoute,+ AppOrganizationIdProjectIdProfilesTabsPowerUsersRoute:+ AppOrganizationIdProjectIdProfilesTabsPowerUsersRoute,+ AppOrganizationIdProjectIdProfilesTabsIndexRoute:+ AppOrganizationIdProjectIdProfilesTabsIndexRoute,+ }++const AppOrganizationIdProjectIdProfilesTabsRouteWithChildren =+ AppOrganizationIdProjectIdProfilesTabsRoute._addFileChildren(+ AppOrganizationIdProjectIdProfilesTabsRouteChildren,+ )++interface AppOrganizationIdProjectIdProfilesProfileIdTabsRouteChildren {+ AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRoute+ AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRoute+}++const AppOrganizationIdProjectIdProfilesProfileIdTabsRouteChildren: AppOrganizationIdProjectIdProfilesProfileIdTabsRouteChildren =+ {+ AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRoute:+ AppOrganizationIdProjectIdProfilesProfileIdTabsEventsRoute,+ AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRoute:+ AppOrganizationIdProjectIdProfilesProfileIdTabsIndexRoute,+ }++const AppOrganizationIdProjectIdProfilesProfileIdTabsRouteWithChildren =+ AppOrganizationIdProjectIdProfilesProfileIdTabsRoute._addFileChildren(+ AppOrganizationIdProjectIdProfilesProfileIdTabsRouteChildren,+ )++interface AppOrganizationIdProjectIdProfilesProfileIdRouteChildren {+ AppOrganizationIdProjectIdProfilesProfileIdTabsRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdTabsRouteWithChildren+}++const AppOrganizationIdProjectIdProfilesProfileIdRouteChildren: AppOrganizationIdProjectIdProfilesProfileIdRouteChildren =+ {+ AppOrganizationIdProjectIdProfilesProfileIdTabsRoute:+ AppOrganizationIdProjectIdProfilesProfileIdTabsRouteWithChildren,+ }++const AppOrganizationIdProjectIdProfilesProfileIdRouteWithChildren =+ AppOrganizationIdProjectIdProfilesProfileIdRoute._addFileChildren(+ AppOrganizationIdProjectIdProfilesProfileIdRouteChildren,+ )++interface AppOrganizationIdProjectIdProfilesRouteChildren {+ AppOrganizationIdProjectIdProfilesTabsRoute: typeof AppOrganizationIdProjectIdProfilesTabsRouteWithChildren+ AppOrganizationIdProjectIdProfilesProfileIdRoute: typeof AppOrganizationIdProjectIdProfilesProfileIdRouteWithChildren+}++const AppOrganizationIdProjectIdProfilesRouteChildren: AppOrganizationIdProjectIdProfilesRouteChildren =+ {+ AppOrganizationIdProjectIdProfilesTabsRoute:+ AppOrganizationIdProjectIdProfilesTabsRouteWithChildren,+ AppOrganizationIdProjectIdProfilesProfileIdRoute:+ AppOrganizationIdProjectIdProfilesProfileIdRouteWithChildren,+ }++const AppOrganizationIdProjectIdProfilesRouteWithChildren =+ AppOrganizationIdProjectIdProfilesRoute._addFileChildren(+ AppOrganizationIdProjectIdProfilesRouteChildren,+ )++interface AppOrganizationIdProjectIdSettingsTabsRouteChildren {+ AppOrganizationIdProjectIdSettingsTabsClientsRoute: typeof AppOrganizationIdProjectIdSettingsTabsClientsRoute+ AppOrganizationIdProjectIdSettingsTabsDetailsRoute: typeof AppOrganizationIdProjectIdSettingsTabsDetailsRoute+ AppOrganizationIdProjectIdSettingsTabsEventsRoute: typeof AppOrganizationIdProjectIdSettingsTabsEventsRoute+ AppOrganizationIdProjectIdSettingsTabsIndexRoute: typeof AppOrganizationIdProjectIdSettingsTabsIndexRoute+}++const AppOrganizationIdProjectIdSettingsTabsRouteChildren: AppOrganizationIdProjectIdSettingsTabsRouteChildren =+ {+ AppOrganizationIdProjectIdSettingsTabsClientsRoute:+ AppOrganizationIdProjectIdSettingsTabsClientsRoute,+ AppOrganizationIdProjectIdSettingsTabsDetailsRoute:+ AppOrganizationIdProjectIdSettingsTabsDetailsRoute,+ AppOrganizationIdProjectIdSettingsTabsEventsRoute:+ AppOrganizationIdProjectIdSettingsTabsEventsRoute,+ AppOrganizationIdProjectIdSettingsTabsIndexRoute:+ AppOrganizationIdProjectIdSettingsTabsIndexRoute,+ }++const AppOrganizationIdProjectIdSettingsTabsRouteWithChildren =+ AppOrganizationIdProjectIdSettingsTabsRoute._addFileChildren(+ AppOrganizationIdProjectIdSettingsTabsRouteChildren,+ )++interface AppOrganizationIdProjectIdSettingsRouteChildren {+ AppOrganizationIdProjectIdSettingsTabsRoute: typeof AppOrganizationIdProjectIdSettingsTabsRouteWithChildren+}++const AppOrganizationIdProjectIdSettingsRouteChildren: AppOrganizationIdProjectIdSettingsRouteChildren =+ {+ AppOrganizationIdProjectIdSettingsTabsRoute:+ AppOrganizationIdProjectIdSettingsTabsRouteWithChildren,+ }++const AppOrganizationIdProjectIdSettingsRouteWithChildren =+ AppOrganizationIdProjectIdSettingsRoute._addFileChildren(+ AppOrganizationIdProjectIdSettingsRouteChildren,+ )++interface AppOrganizationIdRouteChildren {+ AppOrganizationIdProjectIdRoute: typeof AppOrganizationIdProjectIdRoute+ AppOrganizationIdBillingRoute: typeof AppOrganizationIdBillingRoute+ AppOrganizationIdSettingsRoute: typeof AppOrganizationIdSettingsRoute+ AppOrganizationIdIndexRoute: typeof AppOrganizationIdIndexRoute+ AppOrganizationIdProjectIdChatRoute: typeof AppOrganizationIdProjectIdChatRoute+ AppOrganizationIdProjectIdDashboardsRoute: typeof AppOrganizationIdProjectIdDashboardsRoute+ AppOrganizationIdProjectIdPagesRoute: typeof AppOrganizationIdProjectIdPagesRoute+ AppOrganizationIdProjectIdRealtimeRoute: typeof AppOrganizationIdProjectIdRealtimeRoute+ AppOrganizationIdProjectIdReferencesRoute: typeof AppOrganizationIdProjectIdReferencesRoute+ AppOrganizationIdProjectIdReportsRoute: typeof AppOrganizationIdProjectIdReportsRoute+ AppOrganizationIdProjectIdSessionsRoute: typeof AppOrganizationIdProjectIdSessionsRoute+ AppOrganizationIdIntegrationsRoute: typeof AppOrganizationIdIntegrationsRouteWithChildren+ AppOrganizationIdMembersRoute: typeof AppOrganizationIdMembersRouteWithChildren+ AppOrganizationIdProjectIdDashboardsDashboardIdRoute: typeof AppOrganizationIdProjectIdDashboardsDashboardIdRoute+ AppOrganizationIdProjectIdEventsRoute: typeof AppOrganizationIdProjectIdEventsRouteWithChildren+ AppOrganizationIdProjectIdNotificationsRoute: typeof AppOrganizationIdProjectIdNotificationsRouteWithChildren+ AppOrganizationIdProjectIdProfilesRoute: typeof AppOrganizationIdProjectIdProfilesRouteWithChildren+ AppOrganizationIdProjectIdReportsReportIdRoute: typeof AppOrganizationIdProjectIdReportsReportIdRoute+ AppOrganizationIdProjectIdSessionsSessionIdRoute: typeof AppOrganizationIdProjectIdSessionsSessionIdRoute+ AppOrganizationIdProjectIdSettingsRoute: typeof AppOrganizationIdProjectIdSettingsRouteWithChildren+}++const AppOrganizationIdRouteChildren: AppOrganizationIdRouteChildren = {+ AppOrganizationIdProjectIdRoute: AppOrganizationIdProjectIdRoute,+ AppOrganizationIdBillingRoute: AppOrganizationIdBillingRoute,+ AppOrganizationIdSettingsRoute: AppOrganizationIdSettingsRoute,+ AppOrganizationIdIndexRoute: AppOrganizationIdIndexRoute,+ AppOrganizationIdProjectIdChatRoute: AppOrganizationIdProjectIdChatRoute,+ AppOrganizationIdProjectIdDashboardsRoute:+ AppOrganizationIdProjectIdDashboardsRoute,+ AppOrganizationIdProjectIdPagesRoute: AppOrganizationIdProjectIdPagesRoute,+ AppOrganizationIdProjectIdRealtimeRoute:+ AppOrganizationIdProjectIdRealtimeRoute,+ AppOrganizationIdProjectIdReferencesRoute:+ AppOrganizationIdProjectIdReferencesRoute,+ AppOrganizationIdProjectIdReportsRoute:+ AppOrganizationIdProjectIdReportsRoute,+ AppOrganizationIdProjectIdSessionsRoute:+ AppOrganizationIdProjectIdSessionsRoute,+ AppOrganizationIdIntegrationsRoute:+ AppOrganizationIdIntegrationsRouteWithChildren,+ AppOrganizationIdMembersRoute: AppOrganizationIdMembersRouteWithChildren,+ AppOrganizationIdProjectIdDashboardsDashboardIdRoute:+ AppOrganizationIdProjectIdDashboardsDashboardIdRoute,+ AppOrganizationIdProjectIdEventsRoute:+ AppOrganizationIdProjectIdEventsRouteWithChildren,+ AppOrganizationIdProjectIdNotificationsRoute:+ AppOrganizationIdProjectIdNotificationsRouteWithChildren,+ AppOrganizationIdProjectIdProfilesRoute:+ AppOrganizationIdProjectIdProfilesRouteWithChildren,+ AppOrganizationIdProjectIdReportsReportIdRoute:+ AppOrganizationIdProjectIdReportsReportIdRoute,+ AppOrganizationIdProjectIdSessionsSessionIdRoute:+ AppOrganizationIdProjectIdSessionsSessionIdRoute,+ AppOrganizationIdProjectIdSettingsRoute:+ AppOrganizationIdProjectIdSettingsRouteWithChildren,+}++const AppOrganizationIdRouteWithChildren =+ AppOrganizationIdRoute._addFileChildren(AppOrganizationIdRouteChildren)++interface AppRouteChildren {+ AppOrganizationIdRoute: typeof AppOrganizationIdRouteWithChildren+}++const AppRouteChildren: AppRouteChildren = {+ AppOrganizationIdRoute: AppOrganizationIdRouteWithChildren,+}++const AppRouteWithChildren = AppRoute._addFileChildren(AppRouteChildren)++interface LoginRouteChildren {+ LoginLoginRoute: typeof LoginLoginRoute+ LoginResetPasswordRoute: typeof LoginResetPasswordRoute+}++const LoginRouteChildren: LoginRouteChildren = {+ LoginLoginRoute: LoginLoginRoute,+ LoginResetPasswordRoute: LoginResetPasswordRoute,+}++const LoginRouteWithChildren = LoginRoute._addFileChildren(LoginRouteChildren)++interface PublicRouteChildren {+ PublicOnboardingRoute: typeof PublicOnboardingRoute+}++const PublicRouteChildren: PublicRouteChildren = {+ PublicOnboardingRoute: PublicOnboardingRoute,+}++const PublicRouteWithChildren =+ PublicRoute._addFileChildren(PublicRouteChildren)++interface StepsRouteChildren {+ StepsOnboardingProjectRoute: typeof StepsOnboardingProjectRoute+ StepsOnboardingProjectIdConnectRoute: typeof StepsOnboardingProjectIdConnectRoute+ StepsOnboardingProjectIdVerifyRoute: typeof StepsOnboardingProjectIdVerifyRoute+}++const StepsRouteChildren: StepsRouteChildren = {+ StepsOnboardingProjectRoute: StepsOnboardingProjectRoute,+ StepsOnboardingProjectIdConnectRoute: StepsOnboardingProjectIdConnectRoute,+ StepsOnboardingProjectIdVerifyRoute: StepsOnboardingProjectIdVerifyRoute,+}++const StepsRouteWithChildren = StepsRoute._addFileChildren(StepsRouteChildren)++const rootRouteChildren: RootRouteChildren = {+ IndexRoute: IndexRoute,+ AppRoute: AppRouteWithChildren,+ LoginRoute: LoginRouteWithChildren,+ PublicRoute: PublicRouteWithChildren,+ StepsRoute: StepsRouteWithChildren,+ ShareOverviewShareIdRoute: ShareOverviewShareIdRoute,+}+export const routeTree = rootRouteImport+ ._addFileChildren(rootRouteChildren)+ ._addFileTypes<FileRouteTypes>()++import type { getRouter } from './router.tsx'+import type { createStart } from '@tanstack/react-start'+declare module '@tanstack/react-start' {+ interface Register {+ ssr: true+ router: Awaited<ReturnType<typeof getRouter>>+ }+}diff --git a/apps/start/src/router.tsx b/apps/start/src/router.tsxnew file mode 100644index 000000000..47bb2255f--- /dev/null+++ b/apps/start/src/router.tsx@@ -0,0 +1,40 @@+import { createRouter as createTanstackRouter } from '@tanstack/react-router';+import { setupRouterSsrQueryIntegration } from '@tanstack/react-router-ssr-query';+import * as TanstackQuery from './integrations/tanstack-query/root-provider';++import { routeTree } from './routeTree.gen';+import { getServerEnvs } from './server/get-envs';++export const getRouter = async () => {+ const envs = await getServerEnvs();+ const rqContext = TanstackQuery.getContext(envs.apiUrl);++ const router = createTanstackRouter({+ routeTree,+ context: {+ ...rqContext,+ ...envs,+ },+ defaultPreload: 'intent',+ Wrap: (props: { children: React.ReactNode }) => {+ return (+ <TanstackQuery.Provider {...rqContext} apiUrl={envs.apiUrl}>+ {props.children}+ </TanstackQuery.Provider>+ );+ },+ });++ setupRouterSsrQueryIntegration({+ router,+ queryClient: rqContext.queryClient,+ });++ return router;+};++declare module '@tanstack/react-router' {+ interface Register {+ router: ReturnType<typeof getRouter>;+ }+}diff --git a/apps/start/src/routes/__root.tsx b/apps/start/src/routes/__root.tsxnew file mode 100644index 000000000..d40161dd2--- /dev/null+++ b/apps/start/src/routes/__root.tsx@@ -0,0 +1,249 @@+import {+ HeadContent,+ Scripts,+ createRootRouteWithContext,+} from '@tanstack/react-router';++import 'flag-icons/css/flag-icons.min.css';+import 'katex/dist/katex.min.css';+import 'react-grid-layout/css/styles.css';+import 'react-resizable/css/styles.css';+import appCss from '../styles.css?url';++import type { QueryClient } from '@tanstack/react-query';++import { FullPageErrorState } from '@/components/full-page-error-state';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { Providers } from '@/components/providers';+import { ThemeScriptOnce } from '@/components/theme-provider';+import { LinkButton } from '@/components/ui/button';+import { useSessionExtension } from '@/hooks/use-session-extension';+import { op } from '@/utils/op';+import type { AppRouter } from '@openpanel/trpc';+import type { TRPCOptionsProxy } from '@trpc/tanstack-react-query';++op.init();++interface MyRouterContext {+ queryClient: QueryClient;+ trpc: TRPCOptionsProxy<AppRouter>;+ apiUrl: string;+ dashboardUrl: string;+}++export const Route = createRootRouteWithContext<MyRouterContext>()({+ beforeLoad: async ({ context }) => {+ const session = await context.queryClient.ensureQueryData(+ context.trpc.auth.session.queryOptions(undefined, {+ staleTime: 1000 * 60 * 5,+ gcTime: 1000 * 60 * 10,+ refetchOnWindowFocus: false,+ refetchOnMount: false,+ refetchOnReconnect: false,+ }),+ );++ return { session };+ },+ head: () => ({+ meta: [+ {+ charSet: 'utf-8',+ },+ {+ name: 'viewport',+ content: 'width=device-width, initial-scale=1',+ },+ ],+ title: 'OpenPanel.dev',+ links: [+ {+ rel: 'stylesheet',+ href: appCss,+ },+ ],+ }),+ shellComponent: RootDocument,+ errorComponent: ({ error }) => (+ <FullPageErrorState+ title={'Something went wrong'}+ description={error.message}+ >+ <LinkButton href="/">Go back to home</LinkButton>+ </FullPageErrorState>+ ),+ pendingComponent: FullPageLoadingState,+});++function RootDocument({ children }: { children: React.ReactNode }) {+ useSessionExtension();++ return (+ <html lang="en" suppressHydrationWarning>+ <head>+ <HeadContent />+ <script+ dangerouslySetInnerHTML={{+ __html: `window.$ujq=window.$ujq||[];window.uj=window.uj||new Proxy({},{get:(_,p)=>(...a)=>window.$ujq.push([p,...a])});document.head.appendChild(Object.assign(document.createElement('script'),{src:'https://cdn.userjot.com/sdk/v2/uj.js',type:'module',async:!0}));`,+ }}+ />+ <script+ dangerouslySetInnerHTML={{+ __html: `window.uj.init('cm6thlmwr03xr13jghznx87gk', { widget: true, trigger: 'custom' });`,+ }}+ />+ </head>+ <body className="grainy min-h-screen bg-def-100 font-sans text-base antialiased leading-normal">+ <Providers>{children}</Providers>+ <ThemeScriptOnce />+ <Scripts />+ <div className="hidden">+ <div className="text-chart-0 bg-chart-0" />+ <div className="text-chart-1 bg-chart-1" />+ <div className="text-chart-2 bg-chart-2" />+ <div className="text-chart-3 bg-chart-3" />+ <div className="text-chart-4 bg-chart-4" />+ <div className="text-chart-5 bg-chart-5" />+ <div className="text-chart-6 bg-chart-6" />+ <div className="text-chart-7 bg-chart-7" />+ <div className="text-chart-8 bg-chart-8" />+ <div className="text-chart-9 bg-chart-9" />+ <div className="text-chart-10 bg-chart-10" />+ <div className="text-chart-11 bg-chart-11" />+ <div className="text-rose-50 bg-rose-50 hover:bg-rose-50 border-rose-50 dark:bg-rose-50 dark:hover:bg-rose-50" />+ <div className="text-rose-100 bg-rose-100 hover:bg-rose-100 border-rose-100 dark:bg-rose-100 dark:hover:bg-rose-100" />+ <div className="text-rose-200 bg-rose-200 hover:bg-rose-200 border-rose-200 dark:bg-rose-200 dark:hover:bg-rose-200" />+ <div className="text-rose-700 bg-rose-700 hover:bg-rose-700 border-rose-700 dark:bg-rose-700 dark:hover:bg-rose-700" />+ <div className="text-rose-800 bg-rose-800 hover:bg-rose-800 border-rose-800 dark:bg-rose-800 dark:hover:bg-rose-800" />+ <div className="text-rose-900 bg-rose-900 hover:bg-rose-900 border-rose-900 dark:bg-rose-900 dark:hover:bg-rose-900" />+ <div className="text-pink-50 bg-pink-50 hover:bg-pink-50 border-pink-50 dark:bg-pink-50 dark:hover:bg-pink-50" />+ <div className="text-pink-100 bg-pink-100 hover:bg-pink-100 border-pink-100 dark:bg-pink-100 dark:hover:bg-pink-100" />+ <div className="text-pink-200 bg-pink-200 hover:bg-pink-200 border-pink-200 dark:bg-pink-200 dark:hover:bg-pink-200" />+ <div className="text-pink-700 bg-pink-700 hover:bg-pink-700 border-pink-700 dark:bg-pink-700 dark:hover:bg-pink-700" />+ <div className="text-pink-800 bg-pink-800 hover:bg-pink-800 border-pink-800 dark:bg-pink-800 dark:hover:bg-pink-800" />+ <div className="text-pink-900 bg-pink-900 hover:bg-pink-900 border-pink-900 dark:bg-pink-900 dark:hover:bg-pink-900" />+ <div className="text-fuchsia-50 bg-fuchsia-50 hover:bg-fuchsia-50 border-fuchsia-50 dark:bg-fuchsia-50 dark:hover:bg-fuchsia-50" />+ <div className="text-fuchsia-100 bg-fuchsia-100 hover:bg-fuchsia-100 border-fuchsia-100 dark:bg-fuchsia-100 dark:hover:bg-fuchsia-100" />+ <div className="text-fuchsia-200 bg-fuchsia-200 hover:bg-fuchsia-200 border-fuchsia-200 dark:bg-fuchsia-200 dark:hover:bg-fuchsia-200" />+ <div className="text-fuchsia-700 bg-fuchsia-700 hover:bg-fuchsia-700 border-fuchsia-700 dark:bg-fuchsia-700 dark:hover:bg-fuchsia-700" />+ <div className="text-fuchsia-800 bg-fuchsia-800 hover:bg-fuchsia-800 border-fuchsia-800 dark:bg-fuchsia-800 dark:hover:bg-fuchsia-800" />+ <div className="text-fuchsia-900 bg-fuchsia-900 hover:bg-fuchsia-900 border-fuchsia-900 dark:bg-fuchsia-900 dark:hover:bg-fuchsia-900" />+ <div className="text-purple-50 bg-purple-50 hover:bg-purple-50 border-purple-50 dark:bg-purple-50 dark:hover:bg-purple-50" />+ <div className="text-purple-100 bg-purple-100 hover:bg-purple-100 border-purple-100 dark:bg-purple-100 dark:hover:bg-purple-100" />+ <div className="text-purple-200 bg-purple-200 hover:bg-purple-200 border-purple-200 dark:bg-purple-200 dark:hover:bg-purple-200" />+ <div className="text-purple-700 bg-purple-700 hover:bg-purple-700 border-purple-700 dark:bg-purple-700 dark:hover:bg-purple-700" />+ <div className="text-purple-800 bg-purple-800 hover:bg-purple-800 border-purple-800 dark:bg-purple-800 dark:hover:bg-purple-800" />+ <div className="text-purple-900 bg-purple-900 hover:bg-purple-900 border-purple-900 dark:bg-purple-900 dark:hover:bg-purple-900" />+ <div className="text-violet-50 bg-violet-50 hover:bg-violet-50 border-violet-50 dark:bg-violet-50 dark:hover:bg-violet-50" />+ <div className="text-violet-100 bg-violet-100 hover:bg-violet-100 border-violet-100 dark:bg-violet-100 dark:hover:bg-violet-100" />+ <div className="text-violet-200 bg-violet-200 hover:bg-violet-200 border-violet-200 dark:bg-violet-200 dark:hover:bg-violet-200" />+ <div className="text-violet-700 bg-violet-700 hover:bg-violet-700 border-violet-700 dark:bg-violet-700 dark:hover:bg-violet-700" />+ <div className="text-violet-800 bg-violet-800 hover:bg-violet-800 border-violet-800 dark:bg-violet-800 dark:hover:bg-violet-800" />+ <div className="text-violet-900 bg-violet-900 hover:bg-violet-900 border-violet-900 dark:bg-violet-900 dark:hover:bg-violet-900" />+ <div className="text-indigo-50 bg-indigo-50 hover:bg-indigo-50 border-indigo-50 dark:bg-indigo-50 dark:hover:bg-indigo-50" />+ <div className="text-indigo-100 bg-indigo-100 hover:bg-indigo-100 border-indigo-100 dark:bg-indigo-100 dark:hover:bg-indigo-100" />+ <div className="text-indigo-200 bg-indigo-200 hover:bg-indigo-200 border-indigo-200 dark:bg-indigo-200 dark:hover:bg-indigo-200" />+ <div className="text-indigo-700 bg-indigo-700 hover:bg-indigo-700 border-indigo-700 dark:bg-indigo-700 dark:hover:bg-indigo-700" />+ <div className="text-indigo-800 bg-indigo-800 hover:bg-indigo-800 border-indigo-800 dark:bg-indigo-800 dark:hover:bg-indigo-800" />+ <div className="text-indigo-900 bg-indigo-900 hover:bg-indigo-900 border-indigo-900 dark:bg-indigo-900 dark:hover:bg-indigo-900" />+ <div className="text-blue-50 bg-blue-50 hover:bg-blue-50 border-blue-50 dark:bg-blue-50 dark:hover:bg-blue-50" />+ <div className="text-blue-100 bg-blue-100 hover:bg-blue-100 border-blue-100 dark:bg-blue-100 dark:hover:bg-blue-100" />+ <div className="text-blue-200 bg-blue-200 hover:bg-blue-200 border-blue-200 dark:bg-blue-200 dark:hover:bg-blue-200" />+ <div className="text-blue-700 bg-blue-700 hover:bg-blue-700 border-blue-700 dark:bg-blue-700 dark:hover:bg-blue-700" />+ <div className="text-blue-800 bg-blue-800 hover:bg-blue-800 border-blue-800 dark:bg-blue-800 dark:hover:bg-blue-800" />+ <div className="text-blue-900 bg-blue-900 hover:bg-blue-900 border-blue-900 dark:bg-blue-900 dark:hover:bg-blue-900" />+ <div className="text-sky-50 bg-sky-50 hover:bg-sky-50 border-sky-50 dark:bg-sky-50 dark:hover:bg-sky-50" />+ <div className="text-sky-100 bg-sky-100 hover:bg-sky-100 border-sky-100 dark:bg-sky-100 dark:hover:bg-sky-100" />+ <div className="text-sky-200 bg-sky-200 hover:bg-sky-200 border-sky-200 dark:bg-sky-200 dark:hover:bg-sky-200" />+ <div className="text-sky-700 bg-sky-700 hover:bg-sky-700 border-sky-700 dark:bg-sky-700 dark:hover:bg-sky-700" />+ <div className="text-sky-800 bg-sky-800 hover:bg-sky-800 border-sky-800 dark:bg-sky-800 dark:hover:bg-sky-800" />+ <div className="text-sky-900 bg-sky-900 hover:bg-sky-900 border-sky-900 dark:bg-sky-900 dark:hover:bg-sky-900" />+ <div className="text-cyan-50 bg-cyan-50 hover:bg-cyan-50 border-cyan-50 dark:bg-cyan-50 dark:hover:bg-cyan-50" />+ <div className="text-cyan-100 bg-cyan-100 hover:bg-cyan-100 border-cyan-100 dark:bg-cyan-100 dark:hover:bg-cyan-100" />+ <div className="text-cyan-200 bg-cyan-200 hover:bg-cyan-200 border-cyan-200 dark:bg-cyan-200 dark:hover:bg-cyan-200" />+ <div className="text-cyan-700 bg-cyan-700 hover:bg-cyan-700 border-cyan-700 dark:bg-cyan-700 dark:hover:bg-cyan-700" />+ <div className="text-cyan-800 bg-cyan-800 hover:bg-cyan-800 border-cyan-800 dark:bg-cyan-800 dark:hover:bg-cyan-800" />+ <div className="text-cyan-900 bg-cyan-900 hover:bg-cyan-900 border-cyan-900 dark:bg-cyan-900 dark:hover:bg-cyan-900" />+ <div className="text-teal-50 bg-teal-50 hover:bg-teal-50 border-teal-50 dark:bg-teal-50 dark:hover:bg-teal-50" />+ <div className="text-teal-100 bg-teal-100 hover:bg-teal-100 border-teal-100 dark:bg-teal-100 dark:hover:bg-teal-100" />+ <div className="text-teal-200 bg-teal-200 hover:bg-teal-200 border-teal-200 dark:bg-teal-200 dark:hover:bg-teal-200" />+ <div className="text-teal-700 bg-teal-700 hover:bg-teal-700 border-teal-700 dark:bg-teal-700 dark:hover:bg-teal-700" />+ <div className="text-teal-800 bg-teal-800 hover:bg-teal-800 border-teal-800 dark:bg-teal-800 dark:hover:bg-teal-800" />+ <div className="text-teal-900 bg-teal-900 hover:bg-teal-900 border-teal-900 dark:bg-teal-900 dark:hover:bg-teal-900" />+ <div className="text-emerald-50 bg-emerald-50 hover:bg-emerald-50 border-emerald-50 dark:bg-emerald-50 dark:hover:bg-emerald-50" />+ <div className="text-emerald-100 bg-emerald-100 hover:bg-emerald-100 border-emerald-100 dark:bg-emerald-100 dark:hover:bg-emerald-100" />+ <div className="text-emerald-200 bg-emerald-200 hover:bg-emerald-200 border-emerald-200 dark:bg-emerald-200 dark:hover:bg-emerald-200" />+ <div className="text-emerald-700 bg-emerald-700 hover:bg-emerald-700 border-emerald-700 dark:bg-emerald-700 dark:hover:bg-emerald-700" />+ <div className="text-emerald-800 bg-emerald-800 hover:bg-emerald-800 border-emerald-800 dark:bg-emerald-800 dark:hover:bg-emerald-800" />+ <div className="text-emerald-900 bg-emerald-900 hover:bg-emerald-900 border-emerald-900 dark:bg-emerald-900 dark:hover:bg-emerald-900" />+ <div className="text-green-50 bg-green-50 hover:bg-green-50 border-green-50 dark:bg-green-50 dark:hover:bg-green-50" />+ <div className="text-green-100 bg-green-100 hover:bg-green-100 border-green-100 dark:bg-green-100 dark:hover:bg-green-100" />+ <div className="text-green-200 bg-green-200 hover:bg-green-200 border-green-200 dark:bg-green-200 dark:hover:bg-green-200" />+ <div className="text-green-700 bg-green-700 hover:bg-green-700 border-green-700 dark:bg-green-700 dark:hover:bg-green-700" />+ <div className="text-green-800 bg-green-800 hover:bg-green-800 border-green-800 dark:bg-green-800 dark:hover:bg-green-800" />+ <div className="text-green-900 bg-green-900 hover:bg-green-900 border-green-900 dark:bg-green-900 dark:hover:bg-green-900" />+ <div className="text-lime-50 bg-lime-50 hover:bg-lime-50 border-lime-50 dark:bg-lime-50 dark:hover:bg-lime-50" />+ <div className="text-lime-100 bg-lime-100 hover:bg-lime-100 border-lime-100 dark:bg-lime-100 dark:hover:bg-lime-100" />+ <div className="text-lime-200 bg-lime-200 hover:bg-lime-200 border-lime-200 dark:bg-lime-200 dark:hover:bg-lime-200" />+ <div className="text-lime-700 bg-lime-700 hover:bg-lime-700 border-lime-700 dark:bg-lime-700 dark:hover:bg-lime-700" />+ <div className="text-lime-800 bg-lime-800 hover:bg-lime-800 border-lime-800 dark:bg-lime-800 dark:hover:bg-lime-800" />+ <div className="text-lime-900 bg-lime-900 hover:bg-lime-900 border-lime-900 dark:bg-lime-900 dark:hover:bg-lime-900" />+ <div className="text-yellow-50 bg-yellow-50 hover:bg-yellow-50 border-yellow-50 dark:bg-yellow-50 dark:hover:bg-yellow-50" />+ <div className="text-yellow-100 bg-yellow-100 hover:bg-yellow-100 border-yellow-100 dark:bg-yellow-100 dark:hover:bg-yellow-100" />+ <div className="text-yellow-200 bg-yellow-200 hover:bg-yellow-200 border-yellow-200 dark:bg-yellow-200 dark:hover:bg-yellow-200" />+ <div className="text-yellow-700 bg-yellow-700 hover:bg-yellow-700 border-yellow-700 dark:bg-yellow-700 dark:hover:bg-yellow-700" />+ <div className="text-yellow-800 bg-yellow-800 hover:bg-yellow-800 border-yellow-800 dark:bg-yellow-800 dark:hover:bg-yellow-800" />+ <div className="text-yellow-900 bg-yellow-900 hover:bg-yellow-900 border-yellow-900 dark:bg-yellow-900 dark:hover:bg-yellow-900" />+ <div className="text-amber-50 bg-amber-50 hover:bg-amber-50 border-amber-50 dark:bg-amber-50 dark:hover:bg-amber-50" />+ <div className="text-amber-100 bg-amber-100 hover:bg-amber-100 border-amber-100 dark:bg-amber-100 dark:hover:bg-amber-100" />+ <div className="text-amber-200 bg-amber-200 hover:bg-amber-200 border-amber-200 dark:bg-amber-200 dark:hover:bg-amber-200" />+ <div className="text-amber-700 bg-amber-700 hover:bg-amber-700 border-amber-700 dark:bg-amber-700 dark:hover:bg-amber-700" />+ <div className="text-amber-800 bg-amber-800 hover:bg-amber-800 border-amber-800 dark:bg-amber-800 dark:hover:bg-amber-800" />+ <div className="text-amber-900 bg-amber-900 hover:bg-amber-900 border-amber-900 dark:bg-amber-900 dark:hover:bg-amber-900" />+ <div className="text-orange-50 bg-orange-50 hover:bg-orange-50 border-orange-50 dark:bg-orange-50 dark:hover:bg-orange-50" />+ <div className="text-orange-100 bg-orange-100 hover:bg-orange-100 border-orange-100 dark:bg-orange-100 dark:hover:bg-orange-100" />+ <div className="text-orange-200 bg-orange-200 hover:bg-orange-200 border-orange-200 dark:bg-orange-200 dark:hover:bg-orange-200" />+ <div className="text-orange-700 bg-orange-700 hover:bg-orange-700 border-orange-700 dark:bg-orange-700 dark:hover:bg-orange-700" />+ <div className="text-orange-800 bg-orange-800 hover:bg-orange-800 border-orange-800 dark:bg-orange-800 dark:hover:bg-orange-800" />+ <div className="text-orange-900 bg-orange-900 hover:bg-orange-900 border-orange-900 dark:bg-orange-900 dark:hover:bg-orange-900" />+ <div className="text-red-50 bg-red-50 hover:bg-red-50 border-red-50 dark:bg-red-50 dark:hover:bg-red-50" />+ <div className="text-red-100 bg-red-100 hover:bg-red-100 border-red-100 dark:bg-red-100 dark:hover:bg-red-100" />+ <div className="text-red-200 bg-red-200 hover:bg-red-200 border-red-200 dark:bg-red-200 dark:hover:bg-red-200" />+ <div className="text-red-700 bg-red-700 hover:bg-red-700 border-red-700 dark:bg-red-700 dark:hover:bg-red-700" />+ <div className="text-red-800 bg-red-800 hover:bg-red-800 border-red-800 dark:bg-red-800 dark:hover:bg-red-800" />+ <div className="text-red-900 bg-red-900 hover:bg-red-900 border-red-900 dark:bg-red-900 dark:hover:bg-red-900" />+ <div className="text-stone-50 bg-stone-50 hover:bg-stone-50 border-stone-50 dark:bg-stone-50 dark:hover:bg-stone-50" />+ <div className="text-stone-100 bg-stone-100 hover:bg-stone-100 border-stone-100 dark:bg-stone-100 dark:hover:bg-stone-100" />+ <div className="text-stone-200 bg-stone-200 hover:bg-stone-200 border-stone-200 dark:bg-stone-200 dark:hover:bg-stone-200" />+ <div className="text-stone-700 bg-stone-700 hover:bg-stone-700 border-stone-700 dark:bg-stone-700 dark:hover:bg-stone-700" />+ <div className="text-stone-800 bg-stone-800 hover:bg-stone-800 border-stone-800 dark:bg-stone-800 dark:hover:bg-stone-800" />+ <div className="text-stone-900 bg-stone-900 hover:bg-stone-900 border-stone-900 dark:bg-stone-900 dark:hover:bg-stone-900" />+ <div className="text-neutral-50 bg-neutral-50 hover:bg-neutral-50 border-neutral-50 dark:bg-neutral-50 dark:hover:bg-neutral-50" />+ <div className="text-neutral-100 bg-neutral-100 hover:bg-neutral-100 border-neutral-100 dark:bg-neutral-100 dark:hover:bg-neutral-100" />+ <div className="text-neutral-200 bg-neutral-200 hover:bg-neutral-200 border-neutral-200 dark:bg-neutral-200 dark:hover:bg-neutral-200" />+ <div className="text-neutral-700 bg-neutral-700 hover:bg-neutral-700 border-neutral-700 dark:bg-neutral-700 dark:hover:bg-neutral-700" />+ <div className="text-neutral-800 bg-neutral-800 hover:bg-neutral-800 border-neutral-800 dark:bg-neutral-800 dark:hover:bg-neutral-800" />+ <div className="text-neutral-900 bg-neutral-900 hover:bg-neutral-900 border-neutral-900 dark:bg-neutral-900 dark:hover:bg-neutral-900" />+ <div className="text-zinc-50 bg-zinc-50 hover:bg-zinc-50 border-zinc-50 dark:bg-zinc-50 dark:hover:bg-zinc-50" />+ <div className="text-zinc-100 bg-zinc-100 hover:bg-zinc-100 border-zinc-100 dark:bg-zinc-100 dark:hover:bg-zinc-100" />+ <div className="text-zinc-200 bg-zinc-200 hover:bg-zinc-200 border-zinc-200 dark:bg-zinc-200 dark:hover:bg-zinc-200" />+ <div className="text-zinc-700 bg-zinc-700 hover:bg-zinc-700 border-zinc-700 dark:bg-zinc-700 dark:hover:bg-zinc-700" />+ <div className="text-zinc-800 bg-zinc-800 hover:bg-zinc-800 border-zinc-800 dark:bg-zinc-800 dark:hover:bg-zinc-800" />+ <div className="text-zinc-900 bg-zinc-900 hover:bg-zinc-900 border-zinc-900 dark:bg-zinc-900 dark:hover:bg-zinc-900" />+ <div className="text-grey-50 bg-grey-50 hover:bg-grey-50 border-grey-50 dark:bg-grey-50 dark:hover:bg-grey-50" />+ <div className="text-grey-100 bg-grey-100 hover:bg-grey-100 border-grey-100 dark:bg-grey-100 dark:hover:bg-grey-100" />+ <div className="text-grey-200 bg-grey-200 hover:bg-grey-200 border-grey-200 dark:bg-grey-200 dark:hover:bg-grey-200" />+ <div className="text-grey-700 bg-grey-700 hover:bg-grey-700 border-grey-700 dark:bg-grey-700 dark:hover:bg-grey-700" />+ <div className="text-grey-800 bg-grey-800 hover:bg-grey-800 border-grey-800 dark:bg-grey-800 dark:hover:bg-grey-800" />+ <div className="text-grey-900 bg-grey-900 hover:bg-grey-900 border-grey-900 dark:bg-grey-900 dark:hover:bg-grey-900" />+ <div className="text-slate-50 bg-slate-50 hover:bg-slate-50 border-slate-50 dark:bg-slate-50 dark:hover:bg-slate-50" />+ <div className="text-slate-100 bg-slate-100 hover:bg-slate-100 border-slate-100 dark:bg-slate-100 dark:hover:bg-slate-100" />+ <div className="text-slate-200 bg-slate-200 hover:bg-slate-200 border-slate-200 dark:bg-slate-200 dark:hover:bg-slate-200" />+ <div className="text-slate-700 bg-slate-700 hover:bg-slate-700 border-slate-700 dark:bg-slate-700 dark:hover:bg-slate-700" />+ <div className="text-slate-800 bg-slate-800 hover:bg-slate-800 border-slate-800 dark:bg-slate-800 dark:hover:bg-slate-800" />+ <div className="text-slate-900 bg-slate-900 hover:bg-slate-900 border-slate-900 dark:bg-slate-900 dark:hover:bg-slate-900" />+ </div>+ </body>+ </html>+ );+}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/page.tsx b/apps/start/src/routes/_app.$organizationId.$projectId.tsxsimilarity index 69%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/page.tsxrename to apps/start/src/routes/_app.$organizationId.$projectId.tsxindex 6291277ff..fa9e40dc5 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/page.tsx+++ b/apps/start/src/routes/_app.$organizationId.$projectId.tsx@@ -1,28 +1,35 @@import { OverviewFiltersButtons } from '@/components/overview/filters/overview-filters-buttons';import { OverviewFiltersDrawer } from '@/components/overview/filters/overview-filters-drawer';-import ServerLiveCounter from '@/components/overview/live-counter';-import OverviewShareServer from '@/components/overview/overview-share';+import { LiveCounter } from '@/components/overview/live-counter';+import { OverviewInterval } from '@/components/overview/overview-interval';+import OverviewMetrics from '@/components/overview/overview-metrics';+import { OverviewRange } from '@/components/overview/overview-range';+import { OverviewShare } from '@/components/overview/overview-share';import OverviewTopDevices from '@/components/overview/overview-top-devices';import OverviewTopEvents from '@/components/overview/overview-top-events';import OverviewTopGeo from '@/components/overview/overview-top-geo';import OverviewTopPages from '@/components/overview/overview-top-pages';import OverviewTopSources from '@/components/overview/overview-top-sources';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import { createFileRoute } from '@tanstack/react-router';-import { OverviewHydrateOptions } from '@/components/overview/overview-hydrate-options';-import { OverviewInterval } from '@/components/overview/overview-interval';-import OverviewMetrics from '@/components/overview/overview-metrics';-import { OverviewRange } from '@/components/overview/overview-range';--interface PageProps {- params: {- projectId: string;- };-}+export const Route = createFileRoute('/_app/$organizationId/$projectId')({+ component: ProjectDashboard,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.DASHBOARD),+ },+ ],+ };+ },+});-export default function Page({ params: { projectId } }: PageProps) {+function ProjectDashboard() {+ const { projectId } = Route.useParams();return (- <>- <OverviewHydrateOptions />+ <div><div className="col gap-2 p-4"><div className="flex justify-between gap-2"><div className="flex gap-2">@@ -31,8 +38,8 @@ export default function Page({ params: { projectId } }: PageProps) {<OverviewFiltersDrawer projectId={projectId} mode="events" /></div><div className="flex gap-2">- <ServerLiveCounter projectId={projectId} />- <OverviewShareServer projectId={projectId} />+ <LiveCounter projectId={projectId} />+ <OverviewShare projectId={projectId} /></div></div><OverviewFiltersButtons />@@ -45,6 +52,6 @@ export default function Page({ params: { projectId } }: PageProps) {<OverviewTopEvents projectId={projectId} /><OverviewTopGeo projectId={projectId} /></div>- </>+ </div>);}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.chat.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.chat.tsxnew file mode 100644index 000000000..f14a5c842--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.chat.tsx@@ -0,0 +1,54 @@+import Chat from '@/components/chat/chat';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import { keepPreviousData, useSuspenseQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import type { UIMessage } from 'ai';++export const Route = createFileRoute('/_app/$organizationId/$projectId_/chat')({+ component: Component,+ pendingComponent: FullPageLoadingState,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.CHAT),+ },+ ],+ };+ },+});++function Component() {+ const { organizationId, projectId } = Route.useParams();+ const trpc = useTRPC();+ const { data } = useSuspenseQuery(+ trpc.chat.get.queryOptions(+ {+ projectId,+ },+ {+ placeholderData: keepPreviousData,+ },+ ),+ );++ const { data: organization } = useSuspenseQuery(+ trpc.organization.get.queryOptions({+ organizationId,+ }),+ );++ const messages = ((data?.messages as unknown as UIMessage[]) || []).slice(+ -10,+ );++ return (+ <Chat+ projectId={projectId}+ initialMessages={messages}+ organization={organization}+ />+ );+}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/list-dashboards/list-dashboards.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.dashboards.tsxsimilarity index 67%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/list-dashboards/list-dashboards.tsxrename to apps/start/src/routes/_app.$organizationId.$projectId_.dashboards.tsxindex 6c5c3dbb9..b24099719 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/dashboards/list-dashboards/list-dashboards.tsx+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.dashboards.tsx@@ -1,12 +1,10 @@-'use client';-import { Card, CardActions, CardActionsItem } from '@/components/card';import { FullPageEmptyState } from '@/components/full-page-empty-state';import { Button } from '@/components/ui/button';-import { useAppParams } from '@/hooks/useAppParams';-import { pushModal } from '@/modals';-import { api, handleErrorToastOptions } from '@/trpc/client';+import { useAppParams } from '@/hooks/use-app-params';+import { pushModal, showConfirm } from '@/modals';import { cn } from '@/utils/cn';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';import { format } from 'date-fns';import {AreaChartIcon,@@ -15,7 +13,6 @@ import {ChartScatterIcon,ConeIcon,Globe2Icon,- Grid3X3Icon,HashIcon,LayoutPanelTopIcon,LineChartIcon,@@ -25,41 +22,70 @@ import {Trash,TrendingUpIcon,} from 'lucide-react';-import Link from 'next/link';-import { useRouter } from 'next/navigation';import { toast } from 'sonner';-import type { IServiceDashboards } from '@openpanel/db';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { PageContainer } from '@/components/page-container';+import { PageHeader } from '@/components/page-header';+import { handleErrorToastOptions, useTRPC } from '@/integrations/trpc/react';+import { useMutation, useQuery } from '@tanstack/react-query';+import { Link, createFileRoute } from '@tanstack/react-router';-interface ListDashboardsProps {- dashboards: IServiceDashboards;-}+export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/dashboards',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle('Dashboards'),+ },+ ],+ };+ },+ async loader({ context, params }) {+ await context.queryClient.prefetchQuery(+ context.trpc.dashboard.list.queryOptions({+ projectId: params.projectId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+});-export function ListDashboards({ dashboards }: ListDashboardsProps) {- const router = useRouter();- const params = useAppParams();- const { organizationId, projectId } = params;- const deletion = api.dashboard.delete.useMutation({- onError: (error, variables) => {- return handleErrorToastOptions({- action: {- label: 'Force delete',- onClick: () => {- deletion.mutate({- forceDelete: true,- id: variables.id,- });+function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.dashboard.list.queryOptions({+ projectId,+ }),+ );+ const dashboards = query.data ?? [];+ const deletion = useMutation(+ trpc.dashboard.delete.mutationOptions({+ onError: (error, variables) => {+ return handleErrorToastOptions({+ action: {+ label: 'Force delete',+ onClick: () => {+ deletion.mutate({+ forceDelete: true,+ id: variables.id,+ });+ },},- },- })(error);- },- onSuccess() {- router.refresh();- toast('Success', {- description: 'Dashboard deleted.',- });- },- });+ })(error);+ },+ onSuccess() {+ query.refetch();+ toast('Success', {+ description: 'Dashboard deleted.',+ });+ },+ }),+ );if (dashboards.length === 0) {return (@@ -77,7 +103,12 @@ export function ListDashboards({ dashboards }: ListDashboardsProps) {}return (- <>+ <PageContainer>+ <PageHeader+ title="Dashboards"+ description="Access all your dashboards here"+ className="mb-8"+ /><div className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3">{dashboards.map((item) => {const visibleReports = item.reports.slice(@@ -88,7 +119,8 @@ export function ListDashboards({ dashboards }: ListDashboardsProps) {<Card key={item.id} hover><div><Link- href={`/${organizationId}/${projectId}/dashboards/${item.id}`}+ from={Route.fullPath}+ to={`${item.id}`}className="flex flex-col p-4 @container"><div className="col gap-2">@@ -163,8 +195,10 @@ export function ListDashboards({ dashboards }: ListDashboardsProps) {<buttontype="button"onClick={() => {- deletion.mutate({- id: item.id,+ showConfirm({+ title: 'Delete dashboard',+ text: 'Are you sure you want to delete this dashboard? All your reports will be deleted!',+ onConfirm: () => deletion.mutate({ id: item.id }),});}}>@@ -177,6 +211,6 @@ export function ListDashboards({ dashboards }: ListDashboardsProps) {);})}</div>- </>+ </PageContainer>);}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.dashboards_.$dashboardId.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.dashboards_.$dashboardId.tsxnew file mode 100644index 000000000..7c748d53e--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.dashboards_.$dashboardId.tsx@@ -0,0 +1,580 @@+import { FullPageEmptyState } from '@/components/full-page-empty-state';+import { useOverviewOptions } from '@/components/overview/useOverviewOptions';+import { ReportChart } from '@/components/report-chart';+import { Button, LinkButton } from '@/components/ui/button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { cn } from '@/utils/cn';+import { createProjectTitle } from '@/utils/title';+import {+ ChevronRight,+ LayoutPanelTopIcon,+ MoreHorizontal,+ PlusIcon,+ RotateCcw,+ Trash,+ TrashIcon,+} from 'lucide-react';+import { toast } from 'sonner';++import { timeWindows } from '@openpanel/constants';++import FullPageLoadingState from '@/components/full-page-loading-state';+import { OverviewInterval } from '@/components/overview/overview-interval';+import { OverviewRange } from '@/components/overview/overview-range';+import { PageContainer } from '@/components/page-container';+import { PageHeader } from '@/components/page-header';+import { handleErrorToastOptions, useTRPC } from '@/integrations/trpc/react';+import { useMutation, useQuery } from '@tanstack/react-query';+import { createFileRoute, useRouter } from '@tanstack/react-router';+import { useCallback, useEffect, useMemo, useState } from 'react';+// @ts-ignore - types will be installed separately+import { Responsive, WidthProvider } from 'react-grid-layout';+import 'react-grid-layout/css/styles.css';+import 'react-resizable/css/styles.css';+import { ReportChartLoading } from '@/components/report-chart/common/loading';+import { ReportChartProvider } from '@/components/report-chart/context';+import { showConfirm } from '@/modals';++const ResponsiveGridLayout = WidthProvider(Responsive);++type Layout = {+ i: string;+ x: number;+ y: number;+ w: number;+ h: number;+ minW?: number;+ minH?: number;+ maxW?: number;+ maxH?: number;+};++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/dashboards_/$dashboardId',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle('Dashboard'),+ },+ ],+ };+ },+ loader: async ({ context, params }) => {+ await Promise.all([+ context.queryClient.prefetchQuery(+ context.trpc.dashboard.byId.queryOptions({+ id: params.dashboardId,+ projectId: params.projectId,+ }),+ ),+ context.queryClient.prefetchQuery(+ context.trpc.report.list.queryOptions({+ dashboardId: params.dashboardId,+ projectId: params.projectId,+ }),+ ),+ context.queryClient.prefetchQuery(+ context.trpc.project.getProjectWithClients.queryOptions({+ projectId: params.projectId,+ }),+ ),+ context.queryClient.prefetchQuery(+ context.trpc.organization.get.queryOptions({+ organizationId: params.organizationId,+ }),+ ),+ ]);+ },+ pendingComponent: FullPageLoadingState,+});++// Report Skeleton Component+function ReportSkeleton() {+ return (+ <div className="card h-full flex flex-col animate-pulse">+ <div className="flex items-center justify-between border-b border-border p-4">+ <div className="flex-1">+ <div className="h-5 w-32 bg-muted rounded mb-2" />+ <div className="h-4 w-24 bg-muted/50 rounded" />+ </div>+ <div className="flex items-center gap-2">+ <div className="w-8 h-8 bg-muted rounded" />+ <div className="w-8 h-8 bg-muted rounded" />+ </div>+ </div>+ <div className="p-4 flex-1 flex items-center justify-center aspect-video" />+ </div>+ );+}++// Report Item Component+function ReportItem({+ report,+ organizationId,+ projectId,+ range,+ startDate,+ endDate,+ interval,+ onDelete,+}: {+ report: any;+ organizationId: string;+ projectId: string;+ range: any;+ startDate: any;+ endDate: any;+ interval: any;+ onDelete: (reportId: string) => void;+}) {+ const router = useRouter();+ const chartRange = report.range;++ return (+ <div className="card h-full flex flex-col">+ <div className="flex items-center hover:bg-muted/50 justify-between border-b border-border p-4 leading-none [&_svg]:hover:opacity-100">+ <div+ className="flex-1 cursor-pointer -m-4 p-4"+ onClick={(event) => {+ if (event.metaKey) {+ window.open(+ `/${organizationId}/${projectId}/reports/${report.id}`,+ '_blank',+ );+ return;+ }+ router.navigate({+ from: Route.fullPath,+ to: '/$organizationId/$projectId/reports/$reportId',+ params: {+ reportId: report.id,+ },+ });+ }}+ onKeyUp={(e) => {+ if (e.key === 'Enter' || e.key === ' ') {+ router.navigate({+ from: Route.fullPath,+ to: '/$organizationId/$projectId/reports/$reportId',+ params: {+ reportId: report.id,+ },+ });+ }+ }}+ role="button"+ tabIndex={0}+ >+ <div className="font-medium">{report.name}</div>+ {chartRange !== null && (+ <div className="mt-2 flex gap-2 ">+ <span+ className={+ (chartRange !== range && range !== null) ||+ (startDate && endDate)+ ? 'line-through'+ : ''+ }+ >+ {timeWindows[chartRange as keyof typeof timeWindows]?.label}+ </span>+ {startDate && endDate ? (+ <span>Custom dates</span>+ ) : (+ range !== null &&+ chartRange !== range && (+ <span>+ {timeWindows[range as keyof typeof timeWindows]?.label}+ </span>+ )+ )}+ </div>+ )}+ </div>+ <div className="flex items-center gap-2">+ <div className="drag-handle cursor-move p-2 hover:bg-muted rounded">+ <svg+ width="16"+ height="16"+ viewBox="0 0 16 16"+ fill="currentColor"+ className="opacity-30 hover:opacity-100"+ >+ <circle cx="4" cy="4" r="1.5" />+ <circle cx="4" cy="8" r="1.5" />+ <circle cx="4" cy="12" r="1.5" />+ <circle cx="12" cy="4" r="1.5" />+ <circle cx="12" cy="8" r="1.5" />+ <circle cx="12" cy="12" r="1.5" />+ </svg>+ </div>+ <DropdownMenu>+ <DropdownMenuTrigger className="flex h-8 w-8 items-center justify-center rounded hover:border">+ <MoreHorizontal size={16} />+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="w-[200px]">+ <DropdownMenuGroup>+ <DropdownMenuItem+ className="text-destructive"+ onClick={(event) => {+ event.stopPropagation();+ onDelete(report.id);+ }}+ >+ <Trash size={16} className="mr-2" />+ Delete+ </DropdownMenuItem>+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ </div>+ <div+ className={cn(+ 'p-4 overflow-auto flex-1',+ report.chartType === 'metric' && 'p-0',+ )}+ >+ <ReportChart+ report={+ {+ ...report,+ range: range ?? report.range,+ startDate: startDate ?? null,+ endDate: endDate ?? null,+ interval: interval ?? report.interval,+ } as any+ }+ />+ </div>+ </div>+ );+}++function Component() {+ const router = useRouter();+ const { organizationId, dashboardId, projectId } = Route.useParams();+ const trpc = useTRPC();+ const { range, startDate, endDate, interval } = useOverviewOptions();++ const dashboardQuery = useQuery(+ trpc.dashboard.byId.queryOptions({+ id: dashboardId,+ projectId,+ }),+ );++ const reportsQuery = useQuery(+ trpc.report.list.queryOptions({+ dashboardId,+ projectId,+ }),+ );++ const dashboardDeletion = useMutation(+ trpc.dashboard.delete.mutationOptions({+ onError: handleErrorToastOptions({}),+ onSuccess() {+ toast('Dashboard deleted');+ router.navigate({+ to: '/$organizationId/$projectId/dashboards',+ params: {+ organizationId,+ projectId,+ },+ });+ },+ }),+ );++ const reports = reportsQuery.data ?? [];+ const dashboard = dashboardQuery.data;+ const [isGridReady, setIsGridReady] = useState(false);+ const [enableTransitions, setEnableTransitions] = useState(false);++ // Wait for initial render to ensure grid has proper dimensions+ useEffect(() => {+ if (reports.length > 0 && !isGridReady) {+ // Small delay to ensure container has rendered with proper width+ const timer = setTimeout(() => {+ setIsGridReady(true);+ // Enable transitions after initial render+ setTimeout(() => setEnableTransitions(true), 100);+ }, 0);+ return () => clearTimeout(timer);+ }+ }, [reports.length, isGridReady]);++ const reportDeletion = useMutation(+ trpc.report.delete.mutationOptions({+ onError: handleErrorToastOptions({}),+ onSuccess() {+ reportsQuery.refetch();+ toast('Report deleted');+ },+ }),+ );++ const updateLayout = useMutation(+ trpc.report.updateLayout.mutationOptions({+ onError: handleErrorToastOptions({}),+ onSuccess() {+ // Silently refetch reports (which includes layouts)+ reportsQuery.refetch();+ },+ }),+ );++ const resetLayout = useMutation(+ trpc.report.resetLayout.mutationOptions({+ onError: handleErrorToastOptions({}),+ onSuccess() {+ toast('Layout reset to default');+ reportsQuery.refetch();+ },+ }),+ );++ // Convert reports to grid layout format for all breakpoints+ const layouts = useMemo(() => {+ const baseLayout = reports.map((report, index) => ({+ i: report.id,+ x: report.layout?.x ?? (index % 2) * 6,+ y: report.layout?.y ?? Math.floor(index / 2) * 4,+ w: report.layout?.w ?? 6,+ h: report.layout?.h ?? 4,+ minW: 3,+ minH: 3,+ }));++ // Create responsive layouts for different breakpoints+ return {+ lg: baseLayout,+ md: baseLayout,+ sm: baseLayout.map((item) => ({ ...item, w: Math.min(item.w, 6) })),+ xs: baseLayout.map((item) => ({ ...item, w: 4, x: 0 })),+ xxs: baseLayout.map((item) => ({ ...item, w: 2, x: 0 })),+ };+ }, [reports]);++ const handleLayoutChange = useCallback((newLayout: Layout[]) => {+ // This is called during dragging/resizing, we'll save on drag/resize stop+ }, []);++ const handleDragStop = useCallback(+ (newLayout: Layout[]) => {+ // Save each changed layout after drag stops+ newLayout.forEach((item) => {+ const report = reports.find((r) => r.id === item.i);+ if (report) {+ const oldLayout = report.layout;+ // Only update if layout actually changed+ if (+ !oldLayout ||+ oldLayout.x !== item.x ||+ oldLayout.y !== item.y ||+ oldLayout.w !== item.w ||+ oldLayout.h !== item.h+ ) {+ updateLayout.mutate({+ reportId: item.i,+ layout: {+ x: item.x,+ y: item.y,+ w: item.w,+ h: item.h,+ minW: item.minW ?? 3,+ minH: item.minH ?? 3,+ },+ });+ }+ }+ });+ },+ [reports, updateLayout],+ );++ const handleResizeStop = useCallback(+ (newLayout: Layout[]) => {+ // Save each changed layout after resize stops+ newLayout.forEach((item) => {+ const report = reports.find((r) => r.id === item.i);+ if (report) {+ const oldLayout = report.layout;+ // Only update if layout actually changed+ if (+ !oldLayout ||+ oldLayout.x !== item.x ||+ oldLayout.y !== item.y ||+ oldLayout.w !== item.w ||+ oldLayout.h !== item.h+ ) {+ updateLayout.mutate({+ reportId: item.i,+ layout: {+ x: item.x,+ y: item.y,+ w: item.w,+ h: item.h,+ minW: item.minW ?? 3,+ minH: item.minH ?? 3,+ },+ });+ }+ }+ });+ },+ [reports, updateLayout],+ );++ if (!dashboard) {+ return null; // Loading handled by suspense+ }++ return (+ <PageContainer>+ <div className="row mb-4 items-center justify-between">+ <PageHeader+ title={dashboard.name}+ description="View and manage your reports"+ className="mb-0"+ />+ <div className="flex items-center justify-end gap-2">+ <OverviewRange />+ <OverviewInterval />+ <LinkButton+ from={Route.fullPath}+ to={'/$organizationId/$projectId/reports'}+ icon={PlusIcon}+ >+ <span className="max-sm:hidden">Create report</span>+ <span className="sm:hidden">Report</span>+ </LinkButton>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline">+ <MoreHorizontal />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="w-[200px]">+ <DropdownMenuGroup>+ <DropdownMenuItem+ onClick={() =>+ showConfirm({+ title: 'Reset layout',+ text: 'Are you sure you want to reset the layout to default? This will clear all custom positioning and sizing.',+ onConfirm: () =>+ resetLayout.mutate({ dashboardId, projectId }),+ })+ }+ >+ <RotateCcw className="mr-2 size-4" />+ Reset layout+ </DropdownMenuItem>+ <DropdownMenuItem+ variant="destructive"+ onClick={() =>+ showConfirm({+ title: 'Delete dashboard',+ text: 'Are you sure you want to delete this dashboard? All your reports will be deleted!',+ onConfirm: () =>+ dashboardDeletion.mutate({ id: dashboardId }),+ })+ }+ >+ <TrashIcon className="mr-2 size-4" />+ Delete dashboard+ </DropdownMenuItem>+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ </div>++ {reports.length === 0 ? (+ <FullPageEmptyState title="No reports" icon={LayoutPanelTopIcon}>+ <p>You can visualize your data with a report</p>+ <LinkButton+ from={Route.fullPath}+ to={'/$organizationId/$projectId/reports'}+ className="mt-14"+ icon={PlusIcon}+ >+ Create report+ </LinkButton>+ </FullPageEmptyState>+ ) : !isGridReady || reportsQuery.isLoading ? (+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">+ <ReportSkeleton />+ <ReportSkeleton />+ <ReportSkeleton />+ <ReportSkeleton />+ <ReportSkeleton />+ <ReportSkeleton />+ </div>+ ) : (+ <div className="w-full overflow-hidden -mx-4">+ <style>{`+ .react-grid-item {+ transition: ${enableTransitions ? 'transform 200ms ease, width 200ms ease, height 200ms ease' : 'none'} !important;+ }+ .react-grid-item.react-grid-placeholder {+ background: none !important;+ opacity: 0.5;+ transition-duration: 100ms;+ border-radius: 0.5rem;+ border: 1px dashed var(--primary);+ }+ .react-grid-item.resizing {+ transition: none !important;+ }+ `}</style>+ <ResponsiveGridLayout+ className="layout"+ layouts={layouts}+ breakpoints={{ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }}+ cols={{ lg: 12, md: 12, sm: 6, xs: 4, xxs: 2 }}+ rowHeight={100}+ onLayoutChange={handleLayoutChange}+ onDragStop={handleDragStop}+ onResizeStop={handleResizeStop}+ draggableHandle=".drag-handle"+ compactType="vertical"+ preventCollision={false}+ isDraggable={true}+ isResizable={true}+ margin={[16, 16]}+ transformScale={1}+ useCSSTransforms={true}+ >+ {reports.map((report) => (+ <div key={report.id}>+ <ReportItem+ report={report}+ organizationId={organizationId}+ projectId={projectId}+ range={range}+ startDate={startDate}+ endDate={endDate}+ interval={interval}+ onDelete={(reportId) => {+ reportDeletion.mutate({ reportId });+ }}+ />+ </div>+ ))}+ </ResponsiveGridLayout>+ </div>+ )}+ </PageContainer>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.conversions.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.conversions.tsxnew file mode 100644index 000000000..5125067e6--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.conversions.tsx@@ -0,0 +1,35 @@+import { EventsTable } from '@/components/events/table';+import { useTRPC } from '@/integrations/trpc/react';+import { useInfiniteQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { parseAsIsoDateTime, useQueryState } from 'nuqs';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/events/_tabs/conversions',+)({+ component: Component,+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const [startDate, setStartDate] = useQueryState(+ 'startDate',+ parseAsIsoDateTime,+ );+ const [endDate, setEndDate] = useQueryState('endDate', parseAsIsoDateTime);+ const query = useInfiniteQuery(+ trpc.event.conversions.infiniteQueryOptions(+ {+ projectId,+ startDate: startDate || undefined,+ endDate: endDate || undefined,+ },+ {+ getNextPageParam: (lastPage) => lastPage.meta.next,+ },+ ),+ );++ return <EventsTable query={query} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.events.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.events.tsxnew file mode 100644index 000000000..095f3f4ee--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.events.tsx@@ -0,0 +1,41 @@+import { EventsTable } from '@/components/events/table';+import {+ useEventQueryFilters,+ useEventQueryNamesFilter,+} from '@/hooks/use-event-query-filters';+import { useTRPC } from '@/integrations/trpc/react';+import { useInfiniteQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { parseAsIsoDateTime, useQueryState } from 'nuqs';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/events/_tabs/events',+)({+ component: Component,+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const [filters] = useEventQueryFilters();+ const [startDate] = useQueryState('startDate', parseAsIsoDateTime);+ const [endDate] = useQueryState('endDate', parseAsIsoDateTime);+ const [eventNames] = useEventQueryNamesFilter();+ const query = useInfiniteQuery(+ trpc.event.events.infiniteQueryOptions(+ {+ projectId,+ filters,+ events: eventNames,+ profileId: '',+ startDate: startDate || undefined,+ endDate: endDate || undefined,+ },+ {+ getNextPageParam: (lastPage) => lastPage.meta.next,+ },+ ),+ );++ return <EventsTable query={query} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.index.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.index.tsxnew file mode 100644index 000000000..97cda1258--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.index.tsx@@ -0,0 +1,17 @@+import { createFileRoute, redirect } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/events/_tabs/',+)({+ component: Component,+ beforeLoad({ params }) {+ throw redirect({+ to: '/$organizationId/$projectId/events/events',+ params,+ });+ },+});++function Component() {+ return null;+}diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/charts.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.stats.tsxsimilarity index 94%rename from apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/charts.tsxrename to apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.stats.tsxindex 42789fcb6..867271cc9 100644--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/charts.tsx+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.stats.tsx@@ -1,5 +1,3 @@-'use client';-import { OverviewFiltersButtons } from '@/components/overview/filters/overview-filters-buttons';import { OverviewFiltersDrawer } from '@/components/overview/filters/overview-filters-drawer';import { ReportChartShortcut } from '@/components/report-chart/shortcut';@@ -7,15 +5,20 @@ import { Widget, WidgetBody, WidgetHead } from '@/components/widget';import {useEventQueryFilters,useEventQueryNamesFilter,-} from '@/hooks/useEventQueryFilters';+} from '@/hooks/use-event-query-filters';import type { IChartEvent } from '@openpanel/validation';-interface Props {- projectId: string;-}+import { createFileRoute } from '@tanstack/react-router';-function Charts({ projectId }: Props) {+export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/events/_tabs/stats',+)({+ component: Component,+});++function Component() {+ const { projectId } = Route.useParams();const [filters] = useEventQueryFilters();const [events] = useEventQueryNamesFilter();const fallback: IChartEvent[] = [@@ -177,5 +180,3 @@ function Charts({ projectId }: Props) {</div>);}--export default Charts;diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.tsxnew file mode 100644index 000000000..de0ff39d7--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.events._tabs.tsx@@ -0,0 +1,62 @@+import { PageHeader } from '@/components/page-header';+import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';+import { usePageTabs } from '@/hooks/use-page-tabs';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import { Outlet, createFileRoute, useRouter } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/events/_tabs',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.EVENTS),+ },+ ],+ };+ },+});++function Component() {+ const router = useRouter();++ const { activeTab, tabs } = usePageTabs([+ { id: 'events', label: 'Events' },+ { id: 'conversions', label: 'Conversions' },+ { id: 'stats', label: 'Stats' },+ ]);++ const handleTabChange = (tabId: string) => {+ console.log('tabId', tabId, tabs[0].id === tabId);+ router.navigate({+ from: Route.fullPath,+ to: tabId,+ });+ };++ return (+ <div className="container p-8">+ <PageHeader+ title="Events"+ description="Paginate through your events, conversions and overall stats"+ />++ <Tabs+ value={activeTab}+ onValueChange={handleTabChange}+ className="mt-2 mb-8"+ >+ <TabsList>+ {tabs.map((tab) => (+ <TabsTrigger key={tab.id} value={tab.id}>+ {tab.label}+ </TabsTrigger>+ ))}+ </TabsList>+ </Tabs>+ <Outlet />+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.index.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.index.tsxnew file mode 100644index 000000000..2e4603a6e--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.index.tsx@@ -0,0 +1,17 @@+import { createFileRoute, redirect } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/notifications/_tabs/',+)({+ component: Component,+ beforeLoad({ params }) {+ throw redirect({+ to: '/$organizationId/$projectId/notifications/notifications',+ params,+ });+ },+});++function Component() {+ return null;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.notifications.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.notifications.tsxnew file mode 100644index 000000000..f8acebff4--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.notifications.tsx@@ -0,0 +1,31 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import { NotificationsTable } from '@/components/notifications/table';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/notifications/_tabs/notifications',+)({+ component: Component,+ loader: async ({ context, params }) => {+ await context.queryClient.prefetchQuery(+ context.trpc.notification.list.queryOptions({+ projectId: params.projectId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.notification.list.queryOptions({+ projectId,+ }),+ );++ return <NotificationsTable query={query} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.rules.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.rules.tsxnew file mode 100644index 000000000..6a7ffff9b--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.rules.tsx@@ -0,0 +1,99 @@+import { FullPageEmptyState } from '@/components/full-page-empty-state';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { IntegrationCardSkeleton } from '@/components/integrations/integration-card';+import { RuleCard } from '@/components/notifications/rule-card';+import { Button } from '@/components/ui/button';+import { useTRPC } from '@/integrations/trpc/react';+import { pushModal } from '@/modals';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { AnimatePresence, motion } from 'framer-motion';+import { PencilRulerIcon, PlusIcon } from 'lucide-react';+import { useMemo } from 'react';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/notifications/_tabs/rules',+)({+ component: Component,+ loader: async ({ context, params }) => {+ await context.queryClient.prefetchQuery(+ context.trpc.notification.rules.queryOptions({+ projectId: params.projectId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.notification.rules.queryOptions({+ projectId,+ }),+ );+ const data = useMemo(() => {+ return query.data || [];+ }, [query.data]);++ const isLoading = query.isLoading;++ if (!isLoading && data.length === 0) {+ return (+ <FullPageEmptyState title="No rules yet" icon={PencilRulerIcon}>+ <p>+ You have not created any rules yet. Create a rule to start getting+ notifications.+ </p>+ <Button+ className="mt-8"+ variant="outline"+ onClick={() =>+ pushModal('AddNotificationRule', {+ rule: undefined,+ })+ }+ >+ Add Rule+ </Button>+ </FullPageEmptyState>+ );+ }++ return (+ <div>+ <div className="mb-2">+ <Button+ icon={PlusIcon}+ variant="outline"+ onClick={() =>+ pushModal('AddNotificationRule', {+ rule: undefined,+ })+ }+ >+ Add Rule+ </Button>+ </div>+ <div className="col gap-4 w-full grid md:grid-cols-2">+ {isLoading && (+ <>+ <IntegrationCardSkeleton />+ <IntegrationCardSkeleton />+ <IntegrationCardSkeleton />+ </>+ )}+ <AnimatePresence mode="popLayout">+ {data.map((item) => {+ return (+ <motion.div key={item.id} layout="position">+ <RuleCard rule={item} />+ </motion.div>+ );+ })}+ </AnimatePresence>+ </div>+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.tsxnew file mode 100644index 000000000..2e360dd13--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.notifications._tabs.tsx@@ -0,0 +1,61 @@+import { PageHeader } from '@/components/page-header';+import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';+import { usePageTabs } from '@/hooks/use-page-tabs';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import { Outlet, createFileRoute, useRouter } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/notifications/_tabs',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.NOTIFICATIONS),+ },+ ],+ };+ },+});++function Component() {+ const router = useRouter();++ const { activeTab, tabs } = usePageTabs([+ { id: 'notifications', label: 'Notifications' },+ { id: 'rules', label: 'Rules' },+ ]);++ const handleTabChange = (tabId: string) => {+ console.log('tabId', tabId, tabs[0].id === tabId);+ router.navigate({+ from: Route.fullPath,+ to: tabId,+ });+ };++ return (+ <div className="container p-8">+ <PageHeader+ title="Notifications"+ description="See notifications and manage your rules when to get notifications"+ />++ <Tabs+ value={activeTab}+ onValueChange={handleTabChange}+ className="mt-2 mb-8"+ >+ <TabsList>+ {tabs.map((tab) => (+ <TabsTrigger key={tab.id} value={tab.id}>+ {tab.label}+ </TabsTrigger>+ ))}+ </TabsList>+ </Tabs>+ <Outlet />+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.pages.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.pages.tsxnew file mode 100644index 000000000..0b2f6ad3a--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.pages.tsx@@ -0,0 +1,282 @@+import { FullPageEmptyState } from '@/components/full-page-empty-state';+import { OverviewFiltersDrawer } from '@/components/overview/filters/overview-filters-drawer';+import { OverviewInterval } from '@/components/overview/overview-interval';+import { OverviewRange } from '@/components/overview/overview-range';+import { useOverviewOptions } from '@/components/overview/useOverviewOptions';+import { PageContainer } from '@/components/page-container';+import { PageHeader } from '@/components/page-header';+import { Pagination } from '@/components/pagination';+import { FloatingPagination } from '@/components/pagination-floating';+import { ReportChart } from '@/components/report-chart';+import { Skeleton } from '@/components/skeleton';+import { Input } from '@/components/ui/input';+import { TableButtons } from '@/components/ui/table';+import { useAppContext } from '@/hooks/use-app-context';+import { useEventQueryFilters } from '@/hooks/use-event-query-filters';+import { useNumber } from '@/hooks/use-numer-formatter';+import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { useTRPC } from '@/integrations/trpc/react';+import type { RouterOutputs } from '@/trpc/client';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import type { IChartRange, IInterval } from '@openpanel/validation';+import { keepPreviousData, useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { parseAsInteger, useQueryState } from 'nuqs';+import { memo } from 'react';++export const Route = createFileRoute('/_app/$organizationId/$projectId_/pages')(+ {+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.PAGES),+ },+ ],+ };+ },+ },+);++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const take = 20;+ const { range, interval } = useOverviewOptions();+ const [filters] = useEventQueryFilters();+ const [cursor, setCursor] = useQueryState(+ 'cursor',+ parseAsInteger.withDefault(1),+ );++ const { debouncedSearch, setSearch, search } = useSearchQueryState();+ const query = useQuery(+ trpc.event.pages.queryOptions(+ {+ projectId,+ cursor,+ take,+ search: debouncedSearch,+ range,+ interval,+ filters,+ },+ {+ placeholderData: keepPreviousData,+ },+ ),+ );+ const data = query.data ?? [];++ return (+ <PageContainer>+ <PageHeader+ title="Pages"+ description="Access all your pages here"+ className="mb-8"+ />+ <TableButtons>+ <OverviewRange />+ <OverviewInterval />+ <OverviewFiltersDrawer projectId={projectId} mode="events" />+ <Input+ className="self-auto"+ placeholder="Search path"+ value={search ?? ''}+ onChange={(e) => {+ setSearch(e.target.value);+ setCursor(0);+ }}+ />+ </TableButtons>+ {data.length === 0 && !query.isLoading && (+ <FullPageEmptyState+ title="No pages"+ description={'Integrate our web sdk to your site to get pages here.'}+ />+ )}+ {query.isLoading && (+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">+ <PageCardSkeleton />+ <PageCardSkeleton />+ <PageCardSkeleton />+ </div>+ )}+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">+ {data.map((page) => {+ return (+ <PageCard+ key={page.path}+ page={page}+ range={range}+ interval={interval}+ projectId={projectId}+ />+ );+ })}+ </div>+ {data.length !== 0 && (+ <div className="p-4">+ <FloatingPagination+ firstPage={cursor > 1 ? () => setCursor(1) : undefined}+ canNextPage={true}+ canPreviousPage={cursor > 0}+ pageIndex={cursor - 1}+ nextPage={() => {+ setCursor((p) => p + 1);+ }}+ previousPage={() => {+ setCursor((p) => p - 1);+ }}+ />+ </div>+ )}+ </PageContainer>+ );+}++const PageCard = memo(+ ({+ page,+ range,+ interval,+ projectId,+ }: {+ page: RouterOutputs['event']['pages'][number];+ range: IChartRange;+ interval: IInterval;+ projectId: string;+ }) => {+ const number = useNumber();+ const { apiUrl } = useAppContext();+ return (+ <div className="card">+ <div className="row gap-4 justify-between p-4 py-2 items-center">+ <div className="row gap-2 items-center h-16">+ <img+ src={`${apiUrl}/misc/og?url=${page.origin}${page.path}`}+ alt={page.title}+ className="size-10 rounded-sm object-cover"+ loading="lazy"+ decoding="async"+ />+ <div className="col min-w-0">+ <div className="font-medium leading-[28px] truncate">+ {page.title}+ </div>+ <a+ target="_blank"+ rel="noreferrer"+ href={`${page.origin}${page.path}`}+ className="text-muted-foreground font-mono truncate hover:underline"+ >+ {page.path}+ </a>+ </div>+ </div>+ </div>+ <div className="row border-y">+ <div className="center-center col flex-1 p-4 py-2">+ <div className="font-medium text-xl font-mono">+ {number.formatWithUnit(page.avg_duration, 'min')}+ </div>+ <div className="text-muted-foreground whitespace-nowrap text-sm">+ duration+ </div>+ </div>+ <div className="center-center col flex-1 p-4 py-2">+ <div className="font-medium text-xl font-mono">+ {number.formatWithUnit(page.bounce_rate / 100, '%')}+ </div>+ <div className="text-muted-foreground whitespace-nowrap text-sm">+ bounce rate+ </div>+ </div>+ <div className="center-center col flex-1 p-4 py-2">+ <div className="font-medium text-xl font-mono">+ {number.format(page.sessions)}+ </div>+ <div className="text-muted-foreground whitespace-nowrap text-sm">+ sessions+ </div>+ </div>+ </div>+ <ReportChart+ options={{+ hideID: true,+ hideXAxis: true,+ hideYAxis: true,+ aspectRatio: 0.15,+ }}+ report={{+ lineType: 'linear',+ breakdowns: [],+ name: 'screen_view',+ metric: 'sum',+ range,+ interval,+ previous: true,++ chartType: 'linear',+ projectId,+ events: [+ {+ id: 'A',+ name: 'screen_view',+ segment: 'event',+ filters: [+ {+ id: 'path',+ name: 'path',+ value: [page.path],+ operator: 'is',+ },+ {+ id: 'origin',+ name: 'origin',+ value: [page.origin],+ operator: 'is',+ },+ ],+ },+ ],+ }}+ />+ </div>+ );+ },+);++const PageCardSkeleton = memo(() => {+ return (+ <div className="card">+ <div className="row gap-4 justify-between p-4 py-2 items-center">+ <div className="row gap-2 items-center h-16">+ <Skeleton className="size-10 rounded-sm" />+ <div className="col min-w-0">+ <Skeleton className="h-3 w-32 mb-2" />+ <Skeleton className="h-3 w-24" />+ </div>+ </div>+ </div>+ <div className="row border-y">+ <div className="center-center col flex-1 p-4 py-2">+ <Skeleton className="h-6 w-16 mb-1" />+ <Skeleton className="h-4 w-12" />+ </div>+ <div className="center-center col flex-1 p-4 py-2">+ <Skeleton className="h-6 w-12 mb-1" />+ <Skeleton className="h-4 w-16" />+ </div>+ <div className="center-center col flex-1 p-4 py-2">+ <Skeleton className="h-6 w-14 mb-1" />+ <Skeleton className="h-4 w-14" />+ </div>+ </div>+ <div className="p-4">+ <Skeleton className="h-16 w-full rounded" />+ </div>+ </div>+ );+});diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.events.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.events.tsxnew file mode 100644index 000000000..2343b520d--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.events.tsx@@ -0,0 +1,41 @@+import { EventsTable } from '@/components/events/table';+import {+ useEventQueryFilters,+ useEventQueryNamesFilter,+} from '@/hooks/use-event-query-filters';+import { useTRPC } from '@/integrations/trpc/react';+import { useInfiniteQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { parseAsIsoDateTime, useQueryState } from 'nuqs';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/events',+)({+ component: Component,+});++function Component() {+ const { projectId, profileId } = Route.useParams();+ const trpc = useTRPC();+ const [filters] = useEventQueryFilters();+ const [startDate] = useQueryState('startDate', parseAsIsoDateTime);+ const [endDate] = useQueryState('endDate', parseAsIsoDateTime);+ const [eventNames] = useEventQueryNamesFilter();+ const query = useInfiniteQuery(+ trpc.event.events.infiniteQueryOptions(+ {+ projectId,+ profileId,+ filters,+ startDate: startDate || undefined,+ endDate: endDate || undefined,+ events: eventNames,+ },+ {+ getNextPageParam: (lastPage) => lastPage.meta.next,+ },+ ),+ );++ return <EventsTable query={query} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.index.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.index.tsxnew file mode 100644index 000000000..f50b07c5a--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.index.tsx@@ -0,0 +1,140 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import { LatestEvents } from '@/components/profiles/latest-events';+import { MostEvents } from '@/components/profiles/most-events';+import { PopularRoutes } from '@/components/profiles/popular-routes';+import { ProfileActivity } from '@/components/profiles/profile-activity';+import { ProfileCharts } from '@/components/profiles/profile-charts';+import { ProfileMetrics } from '@/components/profiles/profile-metrics';+import { ProfileProperties } from '@/components/profiles/profile-properties';+import { useTRPC } from '@/integrations/trpc/react';+import { useSuspenseQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs/',+)({+ component: Component,+ loader: async ({ context, params }) => {+ // Prefetch all profile data+ await Promise.all([+ context.queryClient.prefetchQuery(+ context.trpc.profile.metrics.queryOptions({+ profileId: params.profileId,+ projectId: params.projectId,+ }),+ ),+ context.queryClient.prefetchQuery(+ context.trpc.profile.activity.queryOptions({+ profileId: params.profileId,+ projectId: params.projectId,+ }),+ ),+ context.queryClient.prefetchQuery(+ context.trpc.profile.mostEvents.queryOptions({+ profileId: params.profileId,+ projectId: params.projectId,+ }),+ ),+ context.queryClient.prefetchQuery(+ context.trpc.profile.popularRoutes.queryOptions({+ profileId: params.profileId,+ projectId: params.projectId,+ }),+ ),+ context.queryClient.prefetchQuery(+ context.trpc.event.events.queryOptions({+ profileId: params.profileId,+ projectId: params.projectId,+ }),+ ),+ ]);+ },+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const { profileId, projectId, organizationId } = Route.useParams();+ const trpc = useTRPC();++ // Get profile data from parent route+ const profile = useSuspenseQuery(+ trpc.profile.byId.queryOptions({+ profileId,+ projectId,+ }),+ );++ const metrics = useSuspenseQuery(+ trpc.profile.metrics.queryOptions({+ profileId,+ projectId,+ }),+ );++ const activity = useSuspenseQuery(+ trpc.profile.activity.queryOptions({+ profileId,+ projectId,+ }),+ );++ const mostEvents = useSuspenseQuery(+ trpc.profile.mostEvents.queryOptions({+ profileId,+ projectId,+ }),+ );++ const popularRoutes = useSuspenseQuery(+ trpc.profile.popularRoutes.queryOptions({+ profileId,+ projectId,+ }),+ );++ return (+ <>+ {/* Main content grid */}+ <div className="grid grid-cols-1 gap-6 md:grid-cols-2">+ <div className="col-span-1 md:col-span-2">+ <ProfileMetrics data={metrics.data} />+ </div>+ {/* Profile properties - full width */}+ <div className="col-span-1 md:col-span-2">+ <ProfileProperties profile={profile.data!} />+ </div>++ {/* Heatmap / Activity */}+ <div className="col-span-1">+ <ProfileActivity data={activity.data} />+ </div>++ {/* Latest events */}+ <div className="col-span-1">+ <LatestEvents+ profileId={profileId}+ projectId={projectId}+ organizationId={organizationId}+ />+ </div>++ {/* Most events */}+ <div className="col-span-1">+ <MostEvents data={mostEvents.data} />+ </div>++ {/* Popular routes */}+ <div className="col-span-1">+ <PopularRoutes data={popularRoutes.data} />+ </div>++ {/* Charts - spans both columns */}+ <div className="col-span-1 md:col-span-2">+ <div className="grid grid-cols-1 gap-6 md:grid-cols-2">+ <ProfileCharts profileId={profileId} projectId={projectId} />+ </div>+ </div>+ </div>+ </>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.tsxnew file mode 100644index 000000000..d87255dfb--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles.$profileId._tabs.tsx@@ -0,0 +1,124 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import { PageContainer } from '@/components/page-container';+import { PageHeader } from '@/components/page-header';+import { ProfileAvatar } from '@/components/profiles/profile-avatar';+import { SerieIcon } from '@/components/report-chart/common/serie-icon';+import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';+import { usePageTabs } from '@/hooks/use-page-tabs';+import { useTRPC } from '@/integrations/trpc/react';+import { cn } from '@/utils/cn';+import { getProfileName } from '@/utils/getters';+import { useSuspenseQuery } from '@tanstack/react-query';+import { Outlet, createFileRoute, useRouter } from '@tanstack/react-router';+import { CheckIcon, CopyIcon } from 'lucide-react';+import { useState } from 'react';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles/$profileId/_tabs',+)({+ component: Component,+ loader: async ({ context, params }) => {+ await context.queryClient.prefetchQuery(+ context.trpc.profile.byId.queryOptions({+ profileId: params.profileId,+ projectId: params.projectId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const router = useRouter();+ const { profileId, projectId } = Route.useParams();+ const trpc = useTRPC();++ const profile = useSuspenseQuery(+ trpc.profile.byId.queryOptions({+ profileId,+ projectId,+ }),+ );++ const { activeTab, tabs } = usePageTabs([+ {+ id: '/$organizationId/$projectId/profiles/$profileId',+ label: 'Overview',+ },+ { id: 'events', label: 'Events' },+ ]);++ const handleTabChange = (tabId: string) => {+ router.navigate({+ from: Route.fullPath,+ to: tabId,+ });+ };++ return (+ <PageContainer>+ <PageHeader+ title={+ <div className="row items-center gap-4">+ <ProfileAvatar {...profile.data} />+ {getProfileName(profile.data, false)}+ </div>+ }+ >+ <div className="row gap-4 mb-6">+ {profile.data?.properties.country && (+ <div className="row gap-2 items-center">+ <SerieIcon name={profile.data.properties.country} />+ <span>+ {profile.data.properties.country}+ {profile.data.properties.city &&+ ` / ${profile.data.properties.city}`}+ </span>+ </div>+ )}+ {profile.data?.properties.device && (+ <div className="row gap-2 items-center">+ <SerieIcon name={profile.data.properties.device} />+ <span className="capitalize">+ {profile.data.properties.device}+ </span>+ </div>+ )}+ {profile.data?.properties.os && (+ <div className="row gap-2 items-center">+ <SerieIcon name={profile.data.properties.os} />+ <span>{profile.data.properties.os}</span>+ </div>+ )}+ {profile.data?.properties.model && (+ <div className="row gap-2 items-center">+ <SerieIcon name={profile.data.properties.model} />+ <span>{profile.data.properties.model}</span>+ </div>+ )}+ {profile.data?.properties.browser && (+ <div className="row gap-2 items-center">+ <SerieIcon name={profile.data.properties.browser} />+ <span>{profile.data.properties.browser}</span>+ </div>+ )}+ </div>+ </PageHeader>++ <Tabs+ value={activeTab}+ onValueChange={handleTabChange}+ className="mt-2 mb-8"+ >+ <TabsList>+ {tabs.map((tab) => (+ <TabsTrigger key={tab.id} value={tab.id}>+ {tab.label}+ </TabsTrigger>+ ))}+ </TabsList>+ </Tabs>+ <Outlet />+ </PageContainer>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.anonymous.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.anonymous.tsxnew file mode 100644index 000000000..2fbff3e2c--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.anonymous.tsx@@ -0,0 +1,45 @@+import { ProfilesTable } from '@/components/profiles/table';+import { useDataTablePagination } from '@/components/ui/data-table/data-table-hooks';+import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createEntityTitle } from '@/utils/title';+import { keepPreviousData, useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles/_tabs/anonymous',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createEntityTitle('Anonymous', PAGE_TITLES.PROFILES),+ },+ ],+ };+ },+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const { page } = useDataTablePagination();+ const { debouncedSearch } = useSearchQueryState();+ const query = useQuery(+ trpc.profile.list.queryOptions(+ {+ cursor: (page - 1) * 50,+ projectId,+ take: 50,+ search: debouncedSearch,+ isExternal: false,+ },+ {+ placeholderData: keepPreviousData,+ },+ ),+ );++ return <ProfilesTable query={query} type="profiles" />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.identified.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.identified.tsxnew file mode 100644index 000000000..5ce82831e--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.identified.tsx@@ -0,0 +1,47 @@+import { ProfilesTable } from '@/components/profiles/table';+import { useDataTablePagination } from '@/components/ui/data-table/data-table-hooks';+import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createEntityTitle } from '@/utils/title';+import { keepPreviousData, useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles/_tabs/identified',+)({+ head: () => {+ return {+ meta: [+ {+ title: createEntityTitle('Identified', PAGE_TITLES.PROFILES),+ },+ ],+ };+ },+ component: Component,+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();++ const { page } = useDataTablePagination(50);+ const { debouncedSearch } = useSearchQueryState();++ const query = useQuery(+ trpc.profile.list.queryOptions(+ {+ cursor: (page - 1) * 50,+ projectId,+ take: 50,+ search: debouncedSearch,+ isExternal: true,+ },+ {+ placeholderData: keepPreviousData,+ },+ ),+ );++ return <ProfilesTable type="profiles" query={query} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.index.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.index.tsxnew file mode 100644index 000000000..a8d8046bd--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.index.tsx@@ -0,0 +1,17 @@+import { createFileRoute, redirect } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles/_tabs/',+)({+ component: Component,+ beforeLoad({ params }) {+ throw redirect({+ to: '/$organizationId/$projectId/profiles/identified',+ params,+ });+ },+});++function Component() {+ return null;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.power-users.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.power-users.tsxnew file mode 100644index 000000000..80e96057a--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.power-users.tsx@@ -0,0 +1,41 @@+import { ProfilesTable } from '@/components/profiles/table';+import { useDataTablePagination } from '@/components/ui/data-table/data-table-hooks';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createEntityTitle } from '@/utils/title';+import { keepPreviousData, useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles/_tabs/power-users',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createEntityTitle('Power Users', PAGE_TITLES.PROFILES),+ },+ ],+ };+ },+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const { page } = useDataTablePagination();+ const query = useQuery(+ trpc.profile.powerUsers.queryOptions(+ {+ cursor: (page - 1) * 50,+ projectId,+ take: 50,+ },+ {+ placeholderData: keepPreviousData,+ },+ ),+ );++ return <ProfilesTable query={query} type="power-users" />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.tsxnew file mode 100644index 000000000..fc397c376--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.profiles._tabs.tsx@@ -0,0 +1,62 @@+import { PageHeader } from '@/components/page-header';+import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';+import { usePageTabs } from '@/hooks/use-page-tabs';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import { Outlet, createFileRoute, useRouter } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/profiles/_tabs',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.PROFILES),+ },+ ],+ };+ },+});++function Component() {+ const router = useRouter();++ const { activeTab, tabs } = usePageTabs([+ { id: 'identified', label: 'Identified' },+ { id: 'anonymous', label: 'Anonymous' },+ { id: 'power-users', label: 'Power users' },+ ]);++ const handleTabChange = (tabId: string) => {+ console.log('tabId', tabId, tabs[0].id === tabId);+ router.navigate({+ from: Route.fullPath,+ to: tabId,+ });+ };++ return (+ <div className="container p-8">+ <PageHeader+ title="Profiles"+ description="If you haven't called identify your profiles will be anonymous"+ />++ <Tabs+ value={activeTab}+ onValueChange={handleTabChange}+ className="mt-2 mb-8"+ >+ <TabsList>+ {tabs.map((tab) => (+ <TabsTrigger key={tab.id} value={tab.id}>+ {tab.label}+ </TabsTrigger>+ ))}+ </TabsList>+ </Tabs>+ <Outlet />+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.realtime.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.realtime.tsxnew file mode 100644index 000000000..20a038f36--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.realtime.tsx@@ -0,0 +1,84 @@+import { Fullscreen, FullscreenClose } from '@/components/fullscreen-toggle';+import RealtimeMap from '@/components/realtime/map';+import { RealtimeActiveSessions } from '@/components/realtime/realtime-active-sessions';+import { RealtimeGeo } from '@/components/realtime/realtime-geo';+import { RealtimeLiveHistogram } from '@/components/realtime/realtime-live-histogram';+import { RealtimePaths } from '@/components/realtime/realtime-paths';+import { RealtimeReferrals } from '@/components/realtime/realtime-referrals';+import RealtimeReloader from '@/components/realtime/realtime-reloader';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import { keepPreviousData, useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/realtime',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.REALTIME),+ },+ ],+ };+ },+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const coordinatesQuery = useQuery(+ trpc.realtime.coordinates.queryOptions(+ {+ projectId,+ },+ {+ placeholderData: keepPreviousData,+ },+ ),+ );++ return (+ <>+ <Fullscreen>+ <FullscreenClose />+ <RealtimeReloader projectId={projectId} />++ <div className="row relative">+ <div className="overflow-hidden aspect-[4/2] w-full">+ <RealtimeMap+ markers={coordinatesQuery.data ?? []}+ sidebarConfig={{+ width: 280, // w-96 = 384px+ position: 'left',+ }}+ />+ </div>+ <div className="absolute top-8 left-8 bottom-0 col gap-4">+ <div className="card p-4 w-72 bg-background/90">+ <RealtimeLiveHistogram projectId={projectId} />+ </div>+ <div className="w-72 flex-1 min-h-0 relative">+ <RealtimeActiveSessions projectId={projectId} />+ <div className="absolute bottom-0 left-0 right-0 h-10 bg-gradient-to-t from-def-100 to-transparent" />+ </div>+ </div>+ </div>++ <div className="grid grid-cols-3 gap-4 p-8 pt-0">+ <div>+ <RealtimeGeo projectId={projectId} />+ </div>+ <div>+ <RealtimeReferrals projectId={projectId} />+ </div>+ <div>+ <RealtimePaths projectId={projectId} />+ </div>+ </div>+ </Fullscreen>+ </>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.references.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.references.tsxnew file mode 100644index 000000000..dc5e88a84--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.references.tsx@@ -0,0 +1,188 @@+import { PageContainer } from '@/components/page-container';+import { PageHeader } from '@/components/page-header';+import { Button } from '@/components/ui/button';+import { DataTable } from '@/components/ui/data-table/data-table';+import {+ createActionColumn,+ createHeaderColumn,+} from '@/components/ui/data-table/data-table-helpers';+import { DataTableToolbar } from '@/components/ui/data-table/data-table-toolbar';+import { useTable } from '@/components/ui/data-table/use-table';+import {+ DropdownMenuItem,+ DropdownMenuSeparator,+} from '@/components/ui/dropdown-menu';+// import { Input } from '@/components/ui/input';+// import { TableButtons } from '@/components/ui/table';+// import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { useTRPC } from '@/integrations/trpc/react';+import { pushModal, showConfirm } from '@/modals';+import { formatDate, formatDateTime } from '@/utils/date';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import type { IServiceReference } from '@openpanel/db';+import {+ keepPreviousData,+ useMutation,+ useQuery,+ useQueryClient,+} from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import type { ColumnDef } from '@tanstack/react-table';+import { PlusIcon } from 'lucide-react';+import { toast } from 'sonner';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/references',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.REFERENCES),+ },+ ],+ };+ },+});++export const columnDefs: ColumnDef<IServiceReference>[] = [+ {+ accessorKey: 'title',+ header: createHeaderColumn('Title'),+ cell: ({ row }) => {+ return (+ <div>+ <div className="font-medium">{row.original.title}</div>+ {!!row.original.description && (+ <div className="text-muted-foreground break-words whitespace-normal">+ {row.original.description}+ </div>+ )}+ </div>+ );+ },+ meta: {+ variant: 'text',+ placeholder: 'Search',+ label: 'Title',+ },+ },+ {+ accessorKey: 'date',+ header: createHeaderColumn('Occurrence'),+ cell({ row }) {+ const date = row.original.date;+ return formatDateTime(date);+ },+ filterFn: 'isWithinRange',+ sortingFn: 'datetime',+ meta: {+ variant: 'dateRange',+ placeholder: 'Occurrence',+ label: 'Occurrence',+ hidden: true,+ },+ },+ {+ accessorKey: 'createdAt',+ header: createHeaderColumn('Created at'),+ cell({ row }) {+ const date = row.original.createdAt;+ return formatDate(date);+ },+ filterFn: 'isWithinRange',+ sortingFn: 'datetime',+ meta: {+ variant: 'dateRange',+ placeholder: 'Created at',+ label: 'Created at',+ },+ },+ createActionColumn(({ row }) => {+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const deletion = useMutation(+ trpc.reference.delete.mutationOptions({+ onSuccess() {+ toast.success('Reference deleted');+ queryClient.invalidateQueries(trpc.reference.pathFilter());+ },+ }),+ );+ const ref = row.original;+ return (+ <>+ <DropdownMenuItem+ onClick={() =>+ pushModal('EditReference', {+ id: ref.id,+ title: ref.title,+ description: ref.description,+ date: ref.date,+ })+ }+ >+ Edit+ </DropdownMenuItem>+ <DropdownMenuSeparator />+ <DropdownMenuItem+ variant="destructive"+ onClick={() =>+ showConfirm({+ title: 'Delete reference',+ text: 'Are you sure you want to delete this reference? This action cannot be undone.',+ onConfirm() {+ deletion.mutate({+ id: ref.id,+ });+ },+ })+ }+ >+ Delete+ </DropdownMenuItem>+ </>+ );+ }),+];++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.reference.getReferences.queryOptions(+ {+ projectId,+ },+ {+ placeholderData: keepPreviousData,+ },+ ),+ );+ const data = query.data ?? [];++ const { table, loading } = useTable({+ columns: columnDefs,+ data,+ pageSize: 30,+ loading: query.isLoading,+ });++ return (+ <PageContainer>+ <PageHeader+ title="References"+ description="References is a good way to keep track of important events. They will show up in your reports."+ className="mb-8"+ />+ <DataTableToolbar table={table}>+ <Button icon={PlusIcon} onClick={() => pushModal('AddReference')}>+ <span className="max-sm:hidden">Create reference</span>+ <span className="sm:hidden">Reference</span>+ </Button>+ </DataTableToolbar>+ <DataTable table={table} loading={loading} />+ </PageContainer>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.reports.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.reports.tsxnew file mode 100644index 000000000..5a7a7845b--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.reports.tsx@@ -0,0 +1,26 @@+import ReportEditor from '@/components/report-chart/report-editor';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import { createFileRoute } from '@tanstack/react-router';+import { z } from 'zod';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/reports',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.REPORTS),+ },+ ],+ };+ },+ validateSearch: z.object({+ dashboardId: z.string().optional(),+ }),+});++function Component() {+ return <ReportEditor report={null} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.reports_.$reportId.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.reports_.$reportId.tsxnew file mode 100644index 000000000..317cc1bde--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.reports_.$reportId.tsx@@ -0,0 +1,40 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import ReportEditor from '@/components/report-chart/report-editor';+import { useTRPC } from '@/integrations/trpc/react';+import { createProjectTitle } from '@/utils/title';+import { useSuspenseQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { z } from 'zod';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/reports_/$reportId',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle('Report'),+ },+ ],+ };+ },+ loader: async ({ context, params }) => {+ await context.queryClient.prefetchQuery(+ context.trpc.report.get.queryOptions({+ reportId: params.reportId,+ }),+ );+ },+ validateSearch: z.object({+ dashboardId: z.string().optional(),+ }),+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const { reportId } = Route.useParams();+ const trpc = useTRPC();+ const query = useSuspenseQuery(trpc.report.get.queryOptions({ reportId }));+ return <ReportEditor report={query.data} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.sessions.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.sessions.tsxnew file mode 100644index 000000000..610f94220--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.sessions.tsx@@ -0,0 +1,58 @@+import { PageContainer } from '@/components/page-container';+import { PageHeader } from '@/components/page-header';+import { SessionsTable } from '@/components/sessions/table';+import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import {+ keepPreviousData,+ useInfiniteQuery,+ useQuery,+} from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { parseAsString, parseAsStringEnum, useQueryState } from 'nuqs';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/sessions',+)({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.SESSIONS),+ },+ ],+ };+ },+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const { debouncedSearch } = useSearchQueryState();++ const query = useInfiniteQuery(+ trpc.session.list.infiniteQueryOptions(+ {+ projectId,+ take: 50,+ search: debouncedSearch,+ },+ {+ getNextPageParam: (lastPage) => lastPage.meta.next,+ },+ ),+ );++ return (+ <PageContainer>+ <PageHeader+ title="Sessions"+ description="Access all your sessions here"+ className="mb-8"+ />+ <SessionsTable query={query} />+ </PageContainer>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.sessions_.$sessionId.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.sessions_.$sessionId.tsxnew file mode 100644index 000000000..f795cbf5a--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.sessions_.$sessionId.tsx@@ -0,0 +1,124 @@+import { EventsTable } from '@/components/events/table';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { PageContainer } from '@/components/page-container';+import { PageHeader } from '@/components/page-header';+import { SerieIcon } from '@/components/report-chart/common/serie-icon';+import { useDataTablePagination } from '@/components/ui/data-table/data-table-hooks';+import {+ useEventQueryFilters,+ useEventQueryNamesFilter,+} from '@/hooks/use-event-query-filters';+import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { useTRPC } from '@/integrations/trpc/react';+import { createProjectTitle } from '@/utils/title';+import { useInfiniteQuery, useSuspenseQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { parseAsIsoDateTime, useQueryState } from 'nuqs';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/sessions_/$sessionId',+)({+ component: Component,+ loader: async ({ context, params }) => {+ await Promise.all([+ context.queryClient.prefetchQuery(+ context.trpc.session.byId.queryOptions({+ sessionId: params.sessionId,+ projectId: params.projectId,+ }),+ ),+ ]);+ },+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle('Sessions'),+ },+ ],+ };+ },+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const { projectId, sessionId } = Route.useParams();+ const trpc = useTRPC();++ const LIMIT = 50;+ const { page } = useDataTablePagination(LIMIT);+ const { debouncedSearch } = useSearchQueryState();++ const { data: session } = useSuspenseQuery(+ trpc.session.byId.queryOptions({+ sessionId,+ projectId,+ }),+ );++ const [filters] = useEventQueryFilters();+ const [startDate] = useQueryState('startDate', parseAsIsoDateTime);+ const [endDate] = useQueryState('endDate', parseAsIsoDateTime);+ const [eventNames] = useEventQueryNamesFilter();++ const query = useInfiniteQuery(+ trpc.event.events.infiniteQueryOptions(+ {+ projectId,+ sessionId,+ filters,+ events: eventNames,+ startDate: startDate || undefined,+ endDate: endDate || undefined,+ },+ {+ getNextPageParam: (lastPage) => lastPage.meta.next,+ },+ ),+ );++ return (+ <PageContainer>+ <PageHeader+ title={`Session: ${session.id.slice(0, 4)}...${session.id.slice(-4)}`}+ >+ <div className="row gap-4 mb-6">+ {session.country && (+ <div className="row gap-2 items-center">+ <SerieIcon name={session.country} />+ <span>+ {session.country}+ {session.city && ` / ${session.city}`}+ </span>+ </div>+ )}+ {session.device && (+ <div className="row gap-2 items-center">+ <SerieIcon name={session.device} />+ <span className="capitalize">{session.device}</span>+ </div>+ )}+ {session.os && (+ <div className="row gap-2 items-center">+ <SerieIcon name={session.os} />+ <span>{session.os}</span>+ </div>+ )}+ {session.model && (+ <div className="row gap-2 items-center">+ <SerieIcon name={session.model} />+ <span>{session.model}</span>+ </div>+ )}+ {session.browser && (+ <div className="row gap-2 items-center">+ <SerieIcon name={session.browser} />+ <span>{session.browser}</span>+ </div>+ )}+ </div>+ </PageHeader>+ <EventsTable query={query} />+ </PageContainer>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.clients.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.clients.tsxnew file mode 100644index 000000000..c899b09d5--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.clients.tsx@@ -0,0 +1,19 @@+import { ClientsTable } from '@/components/clients/table';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/settings/_tabs/clients',+)({+ component: Component,+});++function Component() {+ const { projectId } = useAppParams();+ const trpc = useTRPC();+ const query = useQuery(trpc.client.list.queryOptions({ projectId }));++ return <ClientsTable query={query} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.details.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.details.tsxnew file mode 100644index 000000000..d42c0a3d5--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.details.tsx@@ -0,0 +1,36 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import DeleteProject from '@/components/settings/delete-project';+import EditProjectDetails from '@/components/settings/edit-project-details';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/settings/_tabs/details',+)({+ component: Component,+});++function Component() {+ const { projectId } = useAppParams();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.project.getProjectWithClients.queryOptions({ projectId }),+ );++ if (query.isLoading) {+ return <FullPageLoadingState />;+ }++ if (!query.data) {+ return <div>Project not found</div>;+ }++ return (+ <div className="space-y-6">+ <EditProjectDetails project={query.data} />+ <DeleteProject project={query.data} />+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.events.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.events.tsxnew file mode 100644index 000000000..7f04c53c2--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.events.tsx@@ -0,0 +1,30 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import EditProjectFilters from '@/components/settings/edit-project-filters';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/settings/_tabs/events',+)({+ component: Component,+});++function Component() {+ const { projectId } = useAppParams();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.project.getProjectWithClients.queryOptions({ projectId }),+ );++ if (query.isLoading) {+ return <FullPageLoadingState />;+ }++ if (!query.data) {+ return <div>Project not found</div>;+ }++ return <EditProjectFilters project={query.data} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.index.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.index.tsxnew file mode 100644index 000000000..daf22f3aa--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.index.tsx@@ -0,0 +1,17 @@+import { createFileRoute, redirect } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/settings/_tabs/',+)({+ component: Component,+ beforeLoad: ({ params }) => {+ throw redirect({+ to: '/$organizationId/$projectId/settings/details',+ params,+ });+ },+});++function Component() {+ return null;+}diff --git a/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.tsx b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.tsxnew file mode 100644index 000000000..39dc0cb31--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.$projectId_.settings._tabs.tsx@@ -0,0 +1,73 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import { PageHeader } from '@/components/page-header';+import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';+import { PAGE_TITLES, createProjectTitle } from '@/utils/title';+import {+ Outlet,+ createFileRoute,+ useLocation,+ useRouter,+} from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/$projectId_/settings/_tabs',+)({+ component: ProjectDashboard,+ head: () => {+ return {+ meta: [+ {+ title: createProjectTitle(PAGE_TITLES.SETTINGS),+ },+ ],+ };+ },+ loader: async ({ context, params }) => {+ const { trpc, queryClient } = context;+ await queryClient.prefetchQuery(+ trpc.project.getProjectWithClients.queryOptions({+ projectId: params.projectId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+});++function ProjectDashboard() {+ const router = useRouter();+ const location = useLocation();+ const tab = location.pathname.split('/').pop();++ const settingsTabs = [+ { id: 'details', label: 'Details' },+ { id: 'events', label: 'Events' },+ { id: 'clients', label: 'Clients' },+ ];++ const handleTabChange = (tabId: string) => {+ router.navigate({+ from: Route.fullPath,+ to: `/$organizationId/$projectId/settings/${tabId}`,+ });+ };++ return (+ <div className="container p-8">+ <PageHeader+ title="Project settings"+ description="Manage your project settings here"+ />++ <Tabs value={tab} onValueChange={handleTabChange} className="mt-2 mb-8">+ <TabsList>+ {settingsTabs.map((tab) => (+ <TabsTrigger key={tab.id} value={tab.id}>+ {tab.label}+ </TabsTrigger>+ ))}+ </TabsList>+ </Tabs>+ <Outlet />+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.billing.tsx b/apps/start/src/routes/_app.$organizationId.billing.tsxnew file mode 100644index 000000000..7a8157395--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.billing.tsx@@ -0,0 +1,64 @@+import { FullPageEmptyState } from '@/components/full-page-empty-state';+import FullPageLoadingState from '@/components/full-page-loading-state';+import Billing from '@/components/organization/billing';+import { BillingFaq } from '@/components/organization/billing-faq';+import CurrentSubscription from '@/components/organization/current-subscription';+import Usage from '@/components/organization/usage';+import { PageHeader } from '@/components/page-header';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createOrganizationTitle } from '@/utils/title';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { BoxSelectIcon } from 'lucide-react';++export const Route = createFileRoute('/_app/$organizationId/billing')({+ component: OrganizationPage,+ head: () => {+ return {+ meta: [+ {+ title: createOrganizationTitle(PAGE_TITLES.BILLING),+ },+ ],+ };+ },+});++function OrganizationPage() {+ const { organizationId } = Route.useParams();+ const trpc = useTRPC();+ const { data: organization, isLoading } = useQuery(+ trpc.organization.get.queryOptions({+ organizationId,+ }),+ );++ if (isLoading) {+ return <FullPageLoadingState />;+ }++ if (!organization) {+ return (+ <FullPageEmptyState title="Organization not found" icon={BoxSelectIcon} />+ );+ }++ return (+ <div className="container p-8">+ <PageHeader+ title="Billing"+ description="Manage your billing here"+ className="mb-8"+ />++ <div className="flex flex-col-reverse md:flex-row gap-8 max-w-screen-lg">+ <div className="col gap-8 w-full">+ <Billing organization={organization} />+ <Usage organization={organization} />+ <BillingFaq />+ </div>+ <CurrentSubscription organization={organization} />+ </div>+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.index.tsx b/apps/start/src/routes/_app.$organizationId.index.tsxnew file mode 100644index 000000000..e73225db5--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.index.tsx@@ -0,0 +1,97 @@+import { FullPageEmptyState } from '@/components/full-page-empty-state';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { LazyComponent } from '@/components/lazy-component';+import { PageHeader } from '@/components/page-header';+import ProjectCard, {+ ProjectCardSkeleton,+} from '@/components/projects/project-card';+import { LinkButton } from '@/components/ui/button';+import { AnimatedSearchInput } from '@/components/ui/data-table/data-table-toolbar';+import { TableButtons } from '@/components/ui/table';+import { useSearchQueryState } from '@/hooks/use-search-query-state';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createOrganizationTitle } from '@/utils/title';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { BoxSelectIcon, PlusIcon } from 'lucide-react';++export const Route = createFileRoute('/_app/$organizationId/')({+ component: OrganizationPage,+ loader: async ({ context, params }) => {+ await context.queryClient.prefetchQuery(+ context.trpc.project.list.queryOptions({+ organizationId: params.organizationId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+ head: () => {+ return {+ meta: [+ {+ title: createOrganizationTitle(PAGE_TITLES.PROJECTS),+ },+ ],+ };+ },+});++function OrganizationPage() {+ const { organizationId } = Route.useParams();+ const trpc = useTRPC();+ const { data: projects } = useQuery(+ trpc.project.list.queryOptions({+ organizationId,+ }),+ );+ const { setSearch, search } = useSearchQueryState();++ if (!projects?.length) {+ return (+ <FullPageEmptyState+ title="No projects found"+ description="Create your first project to get started with analytics."+ icon={BoxSelectIcon}+ >+ <LinkButton icon={PlusIcon} to=".">+ Create project+ </LinkButton>+ </FullPageEmptyState>+ );+ }++ return (+ <div className="container p-8">+ <PageHeader+ title="Projects"+ description="All your projects in this workspace"+ className="mb-8"+ />++ <TableButtons>+ <AnimatedSearchInput+ placeholder="Search projects"+ value={search}+ onChange={setSearch}+ />+ </TableButtons>++ <div className="grid gap-6 md:grid-cols-2">+ {projects+ .filter((project) => {+ if (!search) return true;+ return project.name.toLowerCase().includes(search.toLowerCase());+ })+ .map((project, index) => (+ <LazyComponent+ lazy={index >= 6}+ key={project.id}+ fallback={<ProjectCardSkeleton />}+ >+ <ProjectCard {...project} organizationId={organizationId} />+ </LazyComponent>+ ))}+ </div>+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.integrations._tabs.available.tsx b/apps/start/src/routes/_app.$organizationId.integrations._tabs.available.tsxnew file mode 100644index 000000000..d9c66d13a--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.integrations._tabs.available.tsx@@ -0,0 +1,12 @@+import { AllIntegrations } from '@/components/integrations/all-integrations';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/integrations/_tabs/available',+)({+ component: Component,+});++function Component() {+ return <AllIntegrations />;+}diff --git a/apps/start/src/routes/_app.$organizationId.integrations._tabs.index.tsx b/apps/start/src/routes/_app.$organizationId.integrations._tabs.index.tsxnew file mode 100644index 000000000..7e2ed4a51--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.integrations._tabs.index.tsx@@ -0,0 +1,18 @@+import { redirect } from '@tanstack/react-router';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/integrations/_tabs/',+)({+ component: Component,+ beforeLoad: ({ params }) => {+ throw redirect({+ to: '/$organizationId/integrations/installed',+ params,+ });+ },+});++function Component() {+ return null;+}diff --git a/apps/start/src/routes/_app.$organizationId.integrations._tabs.installed.tsx b/apps/start/src/routes/_app.$organizationId.integrations._tabs.installed.tsxnew file mode 100644index 000000000..f55928297--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.integrations._tabs.installed.tsx@@ -0,0 +1,12 @@+import { ActiveIntegrations } from '@/components/integrations/active-integrations';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/integrations/_tabs/installed',+)({+ component: Component,+});++function Component() {+ return <ActiveIntegrations />;+}diff --git a/apps/start/src/routes/_app.$organizationId.integrations._tabs.tsx b/apps/start/src/routes/_app.$organizationId.integrations._tabs.tsxnew file mode 100644index 000000000..27ea87a54--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.integrations._tabs.tsx@@ -0,0 +1,73 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import { PageHeader } from '@/components/page-header';+import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';+import { usePageTabs } from '@/hooks/use-page-tabs';+import { PAGE_TITLES, createOrganizationTitle } from '@/utils/title';+import { Outlet, createFileRoute, useRouter } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/integrations/_tabs',+)({+ component: Component,+ loader: async ({ context, params }) => {+ const organization = await context.queryClient.fetchQuery(+ context.trpc.organization.get.queryOptions({+ organizationId: params.organizationId,+ }),+ );+ return { organization };+ },+ head: ({ loaderData }) => {+ return {+ meta: [+ {+ title: createOrganizationTitle(+ PAGE_TITLES.INTEGRATIONS,+ loaderData?.organization?.name,+ ),+ },+ ],+ };+ },+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const router = useRouter();++ const { activeTab, tabs } = usePageTabs([+ { id: 'installed', label: 'Installed' },+ { id: 'available', label: 'Available' },+ ]);++ const handleTabChange = (tabId: string) => {+ router.navigate({+ from: Route.fullPath,+ to: tabId,+ });+ };++ return (+ <div className="container p-8">+ <PageHeader+ title="Integrations"+ description="Manage your integrations here"+ />++ <Tabs+ value={activeTab}+ onValueChange={handleTabChange}+ className="mt-2 mb-8"+ >+ <TabsList>+ {tabs.map((tab) => (+ <TabsTrigger key={tab.id} value={tab.id}>+ {tab.label}+ </TabsTrigger>+ ))}+ </TabsList>+ </Tabs>+ <Outlet />+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.members._tabs.index.tsx b/apps/start/src/routes/_app.$organizationId.members._tabs.index.tsxnew file mode 100644index 000000000..94f11b0e8--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.members._tabs.index.tsx@@ -0,0 +1,15 @@+import { createFileRoute, redirect } from '@tanstack/react-router';++export const Route = createFileRoute('/_app/$organizationId/members/_tabs/')({+ component: Component,+ beforeLoad: ({ params }) => {+ throw redirect({+ to: '/$organizationId/members/members',+ params,+ });+ },+});++function Component() {+ return null;+}diff --git a/apps/start/src/routes/_app.$organizationId.members._tabs.invitations.tsx b/apps/start/src/routes/_app.$organizationId.members._tabs.invitations.tsxnew file mode 100644index 000000000..7fc547a40--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.members._tabs.invitations.tsx@@ -0,0 +1,23 @@+import { InvitesTable } from '@/components/settings/invites';+import { Button } from '@/components/ui/button';+import { useTRPC } from '@/integrations/trpc/react';+import { pushModal } from '@/modals';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { PlusIcon } from 'lucide-react';++export const Route = createFileRoute(+ '/_app/$organizationId/members/_tabs/invitations',+)({+ component: Component,+});++function Component() {+ const { organizationId } = Route.useParams();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.organization.invitations.queryOptions({ organizationId }),+ );++ return <InvitesTable query={query} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.members._tabs.members.tsx b/apps/start/src/routes/_app.$organizationId.members._tabs.members.tsxnew file mode 100644index 000000000..b6a398051--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.members._tabs.members.tsx@@ -0,0 +1,21 @@+import { MembersTable } from '@/components/settings/members';+import { useAppParams } from '@/hooks/use-app-params';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';++export const Route = createFileRoute(+ '/_app/$organizationId/members/_tabs/members',+)({+ component: Component,+});++function Component() {+ const { organizationId } = useAppParams();+ const trpc = useTRPC();+ const query = useQuery(+ trpc.organization.members.queryOptions({ organizationId }),+ );++ return <MembersTable query={query} />;+}diff --git a/apps/start/src/routes/_app.$organizationId.members._tabs.tsx b/apps/start/src/routes/_app.$organizationId.members._tabs.tsxnew file mode 100644index 000000000..d55082530--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.members._tabs.tsx@@ -0,0 +1,54 @@+import { PageHeader } from '@/components/page-header';+import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';+import { usePageTabs } from '@/hooks/use-page-tabs';+import { PAGE_TITLES, createOrganizationTitle } from '@/utils/title';+import { Outlet, createFileRoute, useRouter } from '@tanstack/react-router';++export const Route = createFileRoute('/_app/$organizationId/members/_tabs')({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createOrganizationTitle(PAGE_TITLES.MEMBERS),+ },+ ],+ };+ },+});++function Component() {+ const router = useRouter();+ const { activeTab, tabs } = usePageTabs([+ { id: 'members', label: 'Members' },+ { id: 'invitations', label: 'Invitations' },+ ]);++ const handleTabChange = (tabId: string) => {+ router.navigate({+ from: Route.fullPath,+ to: tabId,+ });+ };++ return (+ <div className="container p-8">+ <PageHeader title="Members" description="Manage your members here" />++ <Tabs+ value={activeTab}+ onValueChange={handleTabChange}+ className="mt-2 mb-8"+ >+ <TabsList>+ {tabs.map((tab) => (+ <TabsTrigger key={tab.id} value={tab.id}>+ {tab.label}+ </TabsTrigger>+ ))}+ </TabsList>+ </Tabs>+ <Outlet />+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.settings.tsx b/apps/start/src/routes/_app.$organizationId.settings.tsxnew file mode 100644index 000000000..04034f255--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.settings.tsx@@ -0,0 +1,134 @@+import { InputWithLabel, WithLabel } from '@/components/forms/input-with-label';+import { FullPageEmptyState } from '@/components/full-page-empty-state';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { PageHeader } from '@/components/page-header';+import { Button } from '@/components/ui/button';+import { Combobox } from '@/components/ui/combobox';+import { Widget, WidgetBody, WidgetHead } from '@/components/widget';+import { handleError, useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createOrganizationTitle } from '@/utils/title';+import { zEditOrganization } from '@openpanel/validation';+import { useMutation, useQuery } from '@tanstack/react-query';+import { createFileRoute } from '@tanstack/react-router';+import { Controller, useForm } from 'react-hook-form';+import { toast } from 'sonner';+import type { z } from 'zod';++const validator = zEditOrganization;++type IForm = z.infer<typeof validator>;++export const Route = createFileRoute('/_app/$organizationId/settings')({+ component: Component,+ head: () => {+ return {+ meta: [+ {+ title: createOrganizationTitle(PAGE_TITLES.SETTINGS),+ },+ ],+ };+ },+});++function Component() {+ const { organizationId } = Route.useParams();+ const trpc = useTRPC();+ const {+ data: organization,+ isLoading,+ refetch,+ } = useQuery(+ trpc.organization.get.queryOptions({+ organizationId,+ }),+ );++ if (isLoading) {+ return <FullPageLoadingState />;+ }++ if (!organization) {+ return <FullPageEmptyState title="Organization not found" />;+ }++ const { register, handleSubmit, formState, reset, control } = useForm<IForm>({+ defaultValues: {+ id: organization.id,+ name: organization.name,+ timezone: organization.timezone ?? undefined,+ },+ });++ const mutation = useMutation(+ trpc.organization.update.mutationOptions({+ onSuccess(res) {+ toast('Organization updated', {+ description: 'Your organization has been updated.',+ });+ reset({+ ...res,+ timezone: res.timezone!,+ });+ refetch();+ },+ onError: handleError,+ }),+ );++ return (+ <div className="container p-8">+ <PageHeader+ title="Workspace settings"+ description="Manage your workspace settings here"+ className="mb-8"+ />++ <form+ onSubmit={handleSubmit((values) => {+ mutation.mutate(values);+ })}+ >+ <Widget>+ <WidgetHead className="flex items-center justify-between">+ <span className="title">Details</span>+ </WidgetHead>+ <WidgetBody className="gap-4 col">+ <InputWithLabel+ className="flex-1"+ label="Name"+ {...register('name')}+ defaultValue={organization?.name}+ />+ <Controller+ name="timezone"+ control={control}+ render={({ field }) => (+ <WithLabel label="Timezone">+ <Combobox+ placeholder="Select timezone"+ items={Intl.supportedValuesOf('timeZone').map((item) => ({+ value: item,+ label: item,+ }))}+ value={field.value}+ onChange={field.onChange}+ className="w-full"+ />+ </WithLabel>+ )}+ />+ <Button+ size="sm"+ type="submit"+ disabled={!formState.isDirty}+ className="self-end"+ >+ Save+ </Button>+ </WidgetBody>+ </Widget>+ </form>+ </div>+ );+}diff --git a/apps/start/src/routes/_app.$organizationId.tsx b/apps/start/src/routes/_app.$organizationId.tsxnew file mode 100644index 000000000..6679a8e87--- /dev/null+++ b/apps/start/src/routes/_app.$organizationId.tsx@@ -0,0 +1,162 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import { LinkButton } from '@/components/ui/button';+import { useTRPC } from '@/integrations/trpc/react';+import { cn } from '@/utils/cn';+import { FREE_PRODUCT_IDS } from '@openpanel/payments';+import { useSuspenseQuery } from '@tanstack/react-query';+import {+ Outlet,+ createFileRoute,+ notFound,+ useLocation,+} from '@tanstack/react-router';+import { format } from 'date-fns';++const IGNORE_ORGANIZATION_IDS = [+ '.well-known',+ 'robots.txt',+ 'sitemap.xml',+ 'favicon.ico',+ 'manifest.json',+ 'sw.js',+ 'service-worker.js',+ 'onboarding',+];++export const Route = createFileRoute('/_app/$organizationId')({+ component: Component,+ beforeLoad: async ({ context, params }) => {+ if (IGNORE_ORGANIZATION_IDS.includes(params.organizationId)) {+ throw notFound();+ }+ },+ loader: async ({ context, params }) => {+ await context.queryClient.prefetchQuery(+ context.trpc.organization.get.queryOptions({+ organizationId: params.organizationId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+});++function Alert({+ title,+ description,+ children,+ className,+}: {+ title: string;+ description: string;+ children: React.ReactNode;+ className?: string;+}) {+ const location = useLocation();++ // Hide on billing page+ if (location.pathname.match(/\/.+\/billing/)) {+ return null;+ }++ return (+ <div className={cn('p-4 lg:p-8 bg-card border-b col gap-1', className)}>+ <div className="text-lg font-medium">{title}</div>+ <div className="mb-1">{description}</div>+ <div className="row gap-2">{children}</div>+ </div>+ );+}++function Component() {+ const { organizationId } = Route.useParams();+ const trpc = useTRPC();+ const { data: organization } = useSuspenseQuery(+ trpc.organization.get.queryOptions({+ organizationId,+ }),+ );++ return (+ <>+ {organization.subscriptionEndsAt && organization.isTrial && (+ <Alert+ title="Free trial"+ description={`Your organization is on a free trial. It ends on ${format(organization.subscriptionEndsAt, 'PPP')}`}+ >+ <LinkButton+ to="/$organizationId/billing"+ params={{+ organizationId: organizationId,+ }}+ >+ Upgrade from $2.5/month+ </LinkButton>+ </Alert>+ )}+ {organization.subscriptionEndsAt && organization.isExpired && (+ <Alert+ title="Subscription expired"+ description={`Your subscription has expired. You can reactivate it by choosing a new plan below. It expired on ${format(organization.subscriptionEndsAt, 'PPP')}`}+ >+ <LinkButton+ to="/$organizationId/billing"+ params={{+ organizationId: organizationId,+ }}+ >+ Reactivate+ </LinkButton>+ </Alert>+ )}+ {organization.subscriptionEndsAt && organization.isWillBeCanceled && (+ <Alert+ title="Subscription will becanceled"+ description={`You have canceled your subscription. You can reactivate it by choosing a new plan below. It'll expire on ${format(organization.subscriptionEndsAt, 'PPP')}`}+ >+ <LinkButton+ to="/$organizationId/billing"+ params={{+ organizationId: organizationId,+ }}+ >+ Reactivate+ </LinkButton>+ </Alert>+ )}+ {organization.subscriptionCanceledAt && organization.isCanceled && (+ <Alert+ title="Subscription canceled"+ description={`Your subscription was canceled on ${format(organization.subscriptionCanceledAt, 'PPP')}`}+ >+ <LinkButton+ to="/$organizationId/billing"+ params={{+ organizationId: organizationId,+ }}+ >+ Reactivate+ </LinkButton>+ </Alert>+ )}+ {organization.subscriptionProductId &&+ FREE_PRODUCT_IDS.includes(organization.subscriptionProductId) && (+ <Alert+ title="Free plan is removed"+ description="We've removed the free plan. You can upgrade to a paid plan to continue using OpenPanel."+ className="bg-orange-400/40 border-orange-400/50"+ >+ <LinkButton+ className="bg-orange-400 text-white hover:bg-orange-400/80"+ to="/$organizationId/billing"+ params={{+ organizationId: organizationId,+ }}+ >+ Upgrade+ </LinkButton>+ </Alert>+ )}+ <Outlet />+ </>+ );+}diff --git a/apps/start/src/routes/_app.tsx b/apps/start/src/routes/_app.tsxnew file mode 100644index 000000000..d06f21d17--- /dev/null+++ b/apps/start/src/routes/_app.tsx@@ -0,0 +1,24 @@+import { Sidebar } from '@/components/sidebar';+import { Outlet, createFileRoute, redirect } from '@tanstack/react-router';++export const Route = createFileRoute('/_app')({+ beforeLoad: async ({ context }) => {+ if (!context.session.session) {+ throw redirect({ to: '/login' });+ }+ },+ component: AppLayout,+});++function AppLayout() {+ return (+ <div className="flex h-screen w-full">+ <Sidebar />+ <div className="lg:pl-72 w-full">+ <div className="block lg:hidden bg-background h-16 w-full fixed top-0 z-10 border-b" />+ <div className="block lg:hidden h-16" />+ <Outlet />+ </div>+ </div>+ );+}diff --git a/apps/start/src/routes/_login.login.tsx b/apps/start/src/routes/_login.login.tsxnew file mode 100644index 000000000..3aaf6e02e--- /dev/null+++ b/apps/start/src/routes/_login.login.tsx@@ -0,0 +1,73 @@+import { Or } from '@/components/auth/or';+import { SignInEmailForm } from '@/components/auth/sign-in-email-form';+import { SignInGithub } from '@/components/auth/sign-in-github';+import { SignInGoogle } from '@/components/auth/sign-in-google';+import { LogoSquare } from '@/components/logo';+import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';+import { PAGE_TITLES, createTitle } from '@/utils/title';+import { createFileRoute, redirect } from '@tanstack/react-router';+import { AlertCircle } from 'lucide-react';+import { z } from 'zod';++export const Route = createFileRoute('/_login/login')({+ component: LoginPage,+ head: () => ({+ meta: [{ title: createTitle(PAGE_TITLES.LOGIN) }],+ }),+ validateSearch: z.object({+ error: z.string().optional(),+ correlationId: z.string().optional(),+ }),+});++function LoginPage() {+ const { error, correlationId } = Route.useSearch();++ return (+ <div className="col gap-8 w-full text-left">+ <div>+ <LogoSquare className="size-12 mb-8 md:hidden" />+ <h1 className="text-3xl font-bold text-foreground mb-2">Sign in</h1>+ <p className="text-muted-foreground">+ Don't have an account?{' '}+ <a href="/onboarding" className="underline">+ Create one today+ </a>+ </p>+ </div>+ {error && (+ <Alert+ variant="destructive"+ className="text-left bg-destructive/10 border-destructive/20 mb-6"+ >+ <AlertCircle className="h-4 w-4" />+ <AlertTitle>Error</AlertTitle>+ <AlertDescription>+ <p>{error}</p>+ {correlationId && (+ <>+ <p>Correlation ID: {correlationId}</p>+ <p className="mt-2">+ Contact us if you have any issues.{' '}+ <a+ className="underline font-medium"+ href={`mailto:[email protected]?subject=Login%20Issue%20-%20Correlation%20ID%3A%20${correlationId}`}+ >+ hello[at]openpanel.dev+ </a>+ </p>+ </>+ )}+ </AlertDescription>+ </Alert>+ )}++ <div className="space-y-4">+ <SignInGoogle type="sign-in" />+ <SignInGithub type="sign-in" />+ </div>+ <Or />+ <SignInEmailForm />+ </div>+ );+}diff --git a/apps/start/src/routes/_login.reset-password.tsx b/apps/start/src/routes/_login.reset-password.tsxnew file mode 100644index 000000000..1e0b2a342--- /dev/null+++ b/apps/start/src/routes/_login.reset-password.tsx@@ -0,0 +1,28 @@+import { ResetPasswordForm } from '@/components/auth/reset-password-form';+import { FullPageErrorState } from '@/components/full-page-error-state';+import { PAGE_TITLES, createTitle } from '@/utils/title';+import { createFileRoute } from '@tanstack/react-router';+import { z } from 'zod';++export const Route = createFileRoute('/_login/reset-password')({+ head: () => ({+ meta: [{ title: createTitle(PAGE_TITLES.RESET_PASSWORD) }],+ }),+ component: Component,+ validateSearch: z.object({+ token: z.string(),+ }),+ errorComponent: () => (+ <FullPageErrorState description="Missing reset password token" />+ ),+});++function Component() {+ const { token } = Route.useSearch();++ return (+ <div className="col gap-8 w-full text-left">+ <ResetPasswordForm token={token} />+ </div>+ );+}diff --git a/apps/start/src/routes/_login.tsx b/apps/start/src/routes/_login.tsxnew file mode 100644index 000000000..df975b66d--- /dev/null+++ b/apps/start/src/routes/_login.tsx@@ -0,0 +1,25 @@+import { LoginLeftPanel } from '@/components/login-left-panel';+import { SkeletonDashboard } from '@/components/skeleton-dashboard';+import { Outlet, createFileRoute, redirect } from '@tanstack/react-router';++export const Route = createFileRoute('/_login')({+ beforeLoad: async ({ context }) => {+ if (context.session.session) {+ throw redirect({ to: '/' });+ }+ },+ component: AuthLayout,+});++function AuthLayout() {+ return (+ <div className="relative min-h-screen grid md:grid-cols-2">+ <div className="hidden md:block">+ <LoginLeftPanel />+ </div>+ <div className="center-center w-full max-w-md mx-auto px-4">+ <Outlet />+ </div>+ </div>+ );+}diff --git a/apps/start/src/routes/_public.onboarding.tsx b/apps/start/src/routes/_public.onboarding.tsxnew file mode 100644index 000000000..1561c15c3--- /dev/null+++ b/apps/start/src/routes/_public.onboarding.tsx@@ -0,0 +1,126 @@+import { Or } from '@/components/auth/or';+import { SignInGithub } from '@/components/auth/sign-in-github';+import { SignInGoogle } from '@/components/auth/sign-in-google';+import { SignUpEmailForm } from '@/components/auth/sign-up-email-form';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { LogoSquare } from '@/components/logo';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createEntityTitle } from '@/utils/title';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute, redirect } from '@tanstack/react-router';+import { motion } from 'framer-motion';+import { MailIcon } from 'lucide-react';+import { z } from 'zod';+const validateSearch = z.object({+ inviteId: z.string().optional(),+});+export const Route = createFileRoute('/_public/onboarding')({+ head: () => ({+ meta: [+ { title: createEntityTitle('Create an account', PAGE_TITLES.ONBOARDING) },+ ],+ }),+ beforeLoad: async ({ context }) => {+ if (context.session.session) {+ throw redirect({ to: '/' });+ }+ },+ component: Component,+ validateSearch,+ loader: async ({ context, location }) => {+ const search = validateSearch.safeParse(location.search);+ if (search.success && search.data.inviteId) {+ await context.queryClient.prefetchQuery(+ context.trpc.organization.getInvite.queryOptions({+ inviteId: search.data.inviteId,+ }),+ );+ }+ },+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const { inviteId } = Route.useSearch();+ const trpc = useTRPC();+ const { data: invite } = useQuery(+ trpc.organization.getInvite.queryOptions(+ {+ inviteId: inviteId,+ },+ {+ enabled: !!inviteId,+ },+ ),+ );+ return (+ <div className="col gap-8 w-full text-left">+ <div>+ <LogoSquare className="size-12 mb-8 md:hidden" />+ <h1 className="text-3xl font-bold text-foreground mb-2">+ Create an account+ </h1>+ <p className="text-muted-foreground">+ Let's start with creating your account. By creating an account you+ accept the{' '}+ <a+ target="_blank"+ href="https://openpanel.dev/terms"+ rel="noreferrer"+ className="underline hover:text-foreground transition-colors"+ >+ Terms of Service+ </a>{' '}+ and{' '}+ <a+ target="_blank"+ href="https://openpanel.dev/privacy"+ rel="noreferrer"+ className="underline hover:text-foreground transition-colors"+ >+ Privacy Policy+ </a>+ .+ </p>+ </div>++ {invite && !invite.isExpired && (+ <div className="bg-card border border-border rounded-lg p-6 mb-6">+ <h2 className="text-xl font-semibold mb-2">+ Invitation to {invite.organization?.name}+ </h2>+ <p className="text-muted-foreground">+ After you have created your account, you will be added to the+ organization.+ </p>+ </div>+ )}+ {invite?.isExpired && (+ <div className="bg-destructive/10 border border-destructive/20 rounded-lg p-6 mb-6">+ <h2 className="text-xl font-semibold mb-2 text-destructive">+ Invitation to {invite.organization?.name} has expired+ </h2>+ <p className="text-muted-foreground">+ The invitation has expired. Please contact the organization owner to+ get a new invitation.+ </p>+ </div>+ )}++ <div className="space-y-6">+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">+ <SignInGithub type="sign-up" inviteId={inviteId} />+ <SignInGoogle type="sign-up" inviteId={inviteId} />+ </div>++ <Or className="my-6" />++ <div className="flex items-center gap-2 font-semibold mb-4 text-lg">+ <MailIcon className="size-4" />+ Sign up with email+ </div>+ <SignUpEmailForm inviteId={inviteId} />+ </div>+ </div>+ );+}diff --git a/apps/start/src/routes/_public.tsx b/apps/start/src/routes/_public.tsxnew file mode 100644index 000000000..8b736d9d1--- /dev/null+++ b/apps/start/src/routes/_public.tsx@@ -0,0 +1,19 @@+import { OnboardingLeftPanel } from '@/components/onboarding-left-panel';+import { Outlet, createFileRoute, redirect } from '@tanstack/react-router';++export const Route = createFileRoute('/_public')({+ component: OnboardingLayout,+});++function OnboardingLayout() {+ return (+ <div className="relative min-h-screen grid md:grid-cols-2">+ <div className="hidden md:block">+ <OnboardingLeftPanel />+ </div>+ <div className="center-center w-full max-w-md mx-auto px-4">+ <Outlet />+ </div>+ </div>+ );+}diff --git a/apps/start/src/routes/_steps.onboarding.$projectId.connect.tsx b/apps/start/src/routes/_steps.onboarding.$projectId.connect.tsxnew file mode 100644index 000000000..9ab2daceb--- /dev/null+++ b/apps/start/src/routes/_steps.onboarding.$projectId.connect.tsx@@ -0,0 +1,90 @@+import { ButtonContainer } from '@/components/button-container';+import CopyInput from '@/components/forms/copy-input';+import { FullPageEmptyState } from '@/components/full-page-empty-state';+import FullPageLoadingState from '@/components/full-page-loading-state';+import ConnectApp from '@/components/onboarding/connect-app';+import ConnectBackend from '@/components/onboarding/connect-backend';+import ConnectWeb from '@/components/onboarding/connect-web';+import { LinkButton } from '@/components/ui/button';+import { useClientSecret } from '@/hooks/use-client-secret';+import { useTRPC } from '@/integrations/trpc/react';+import { PAGE_TITLES, createEntityTitle } from '@/utils/title';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute, redirect } from '@tanstack/react-router';+import { LockIcon, XIcon } from 'lucide-react';++export const Route = createFileRoute('/_steps/onboarding/$projectId/connect')({+ head: () => ({+ meta: [+ { title: createEntityTitle('Connect data', PAGE_TITLES.ONBOARDING) },+ ],+ }),+ beforeLoad: async ({ context }) => {+ if (!context.session.session) {+ throw redirect({ to: '/onboarding' });+ }+ },+ component: Component,+ loader: async ({ context, params }) => {+ await context.queryClient.prefetchQuery(+ context.trpc.project.getProjectWithClients.queryOptions({+ projectId: params.projectId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const { data: project } = useQuery(+ trpc.project.getProjectWithClients.queryOptions({ projectId }),+ );+ const client = project?.clients[0];+ const [secret] = useClientSecret();++ if (!client) {+ return (+ <FullPageEmptyState+ title="No project found"+ description="The project you are looking for does not exist. Please reload the page."+ icon={XIcon}+ />+ );+ }++ return (+ <div className="p-4 col gap-8">+ <div className="flex flex-col gap-4">+ <div className="flex items-center gap-2 text-xl font-bold capitalize">+ <LockIcon className="size-4" />+ Credentials+ </div>+ <CopyInput label="Client ID" value={client.id} />+ <CopyInput label="Secret" value={secret} />+ </div>+ <div className="h-px bg-muted -mx-4" />+ {project?.types?.map((type) => {+ const Component = {+ website: ConnectWeb,+ app: ConnectApp,+ backend: ConnectBackend,+ }[type];++ return <Component key={type} client={{ ...client, secret }} />;+ })}+ <ButtonContainer>+ <div />+ <LinkButton+ href={'/onboarding/$projectId/verify'}+ params={{ projectId }}+ size="lg"+ className="min-w-28 self-start"+ >+ Next+ </LinkButton>+ </ButtonContainer>+ </div>+ );+}diff --git a/apps/start/src/routes/_steps.onboarding.$projectId.verify.tsx b/apps/start/src/routes/_steps.onboarding.$projectId.verify.tsxnew file mode 100644index 000000000..d12e85038--- /dev/null+++ b/apps/start/src/routes/_steps.onboarding.$projectId.verify.tsx@@ -0,0 +1,110 @@+import { ButtonContainer } from '@/components/button-container';+import { FullPageEmptyState } from '@/components/full-page-empty-state';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { CurlPreview } from '@/components/onboarding/curl-preview';+import VerifyListener from '@/components/onboarding/onboarding-verify-listener';+import { LinkButton } from '@/components/ui/button';+import { useTRPC } from '@/integrations/trpc/react';+import { cn } from '@/lib/utils';+import { PAGE_TITLES, createEntityTitle } from '@/utils/title';+import { useQuery } from '@tanstack/react-query';+import { Link, createFileRoute, redirect } from '@tanstack/react-router';+import { BoxSelectIcon } from 'lucide-react';++export const Route = createFileRoute('/_steps/onboarding/$projectId/verify')({+ head: () => ({+ meta: [{ title: createEntityTitle('Verify', PAGE_TITLES.ONBOARDING) }],+ }),+ beforeLoad: async ({ context }) => {+ if (!context.session.session) {+ throw redirect({ to: '/onboarding' });+ }+ },+ component: Component,+ loader: async ({ context, params }) => {+ await context.queryClient.prefetchQuery(+ context.trpc.event.events.queryOptions({+ projectId: params.projectId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+});++function Component() {+ const { projectId } = Route.useParams();+ const trpc = useTRPC();+ const { data: events, refetch } = useQuery(+ trpc.event.events.queryOptions({ projectId }),+ );+ const { data: project } = useQuery(+ trpc.project.getProjectWithClients.queryOptions({ projectId }),+ );++ const isVerified = events && events.data.length > 0;++ if (!project) {+ return (+ <FullPageEmptyState title="Project not found" icon={BoxSelectIcon} />+ );+ }++ const client = project.clients[0];+ if (!client) {+ return <FullPageEmptyState title="Client not found" icon={BoxSelectIcon} />;+ }++ return (+ <div className="p-4 col gap-8">+ <VerifyListener+ project={project}+ client={client}+ events={events?.data ?? []}+ onVerified={() => refetch()}+ />++ <CurlPreview project={project} />++ <ButtonContainer>+ <LinkButton+ href={`/onboarding/${project.id}/connect`}+ size="lg"+ className="min-w-28 self-start"+ variant={'secondary'}+ >+ Back+ </LinkButton>++ <div className="flex items-center gap-8">+ {!isVerified && (+ <Link+ to={'/$organizationId/$projectId'}+ params={{+ organizationId: project!.organizationId,+ projectId: project!.id,+ }}+ className=" text-muted-foreground underline"+ >+ Skip for now+ </Link>+ )}++ <LinkButton+ to={'/$organizationId/$projectId'}+ params={{+ organizationId: project!.organizationId,+ projectId: project!.id,+ }}+ size="lg"+ className={cn(+ 'min-w-28 self-start',+ !isVerified && 'pointer-events-none select-none opacity-20',+ )}+ >+ Your dashboard+ </LinkButton>+ </div>+ </ButtonContainer>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(onboarding)/onboarding/project/onboarding-create-project.tsx b/apps/start/src/routes/_steps.onboarding.project.tsxsimilarity index 78%rename from apps/dashboard/src/app/(onboarding)/onboarding/project/onboarding-create-project.tsxrename to apps/start/src/routes/_steps.onboarding.project.tsxindex 2fc70e540..94044da7b 100644--- a/apps/dashboard/src/app/(onboarding)/onboarding/project/onboarding-create-project.tsx+++ b/apps/start/src/routes/_steps.onboarding.project.tsx@@ -1,51 +1,80 @@-'use client';-import AnimateHeight from '@/components/animate-height';import { ButtonContainer } from '@/components/button-container';import { CheckboxItem } from '@/components/forms/checkbox-item';import { InputWithLabel, WithLabel } from '@/components/forms/input-with-label';import TagInput from '@/components/forms/tag-input';+import FullPageLoadingState from '@/components/full-page-loading-state';import { Button } from '@/components/ui/button';import { Combobox } from '@/components/ui/combobox';import { Label } from '@/components/ui/label';-import { useClientSecret } from '@/hooks/useClientSecret';-import { api, handleError } from '@/trpc/client';+import { useClientSecret } from '@/hooks/use-client-secret';+import { handleError, useTRPC } from '@/integrations/trpc/react';import { zodResolver } from '@hookform/resolvers/zod';+import { zOnboardingProject } from '@openpanel/validation';+import { useMutation, useQuery } from '@tanstack/react-query';+import { createFileRoute, redirect, useNavigate } from '@tanstack/react-router';import {- Building,+ BuildingIcon,MonitorIcon,ServerIcon,SmartphoneIcon,} from 'lucide-react';-import { useRouter } from 'next/navigation';import { useEffect } from 'react';-import type { SubmitHandler } from 'react-hook-form';-import { Controller, useForm, useWatch } from 'react-hook-form';-import type { z } from 'zod';--import type { IServiceOrganization } from '@openpanel/db';-import { zOnboardingProject } from '@openpanel/validation';+import {+ Controller,+ type SubmitHandler,+ useForm,+ useWatch,+} from 'react-hook-form';+import { z } from 'zod';-import OnboardingLayout, {- OnboardingDescription,-} from '../../onboarding-layout';+const validateSearch = z.object({+ inviteId: z.string().optional(),+});+export const Route = createFileRoute('/_steps/onboarding/project')({+ component: Component,+ validateSearch,+ beforeLoad: async ({ context }) => {+ if (!context.session.session) {+ throw redirect({ to: '/onboarding' });+ }+ },+ loader: async ({ context, location }) => {+ const search = validateSearch.safeParse(location.search);+ if (search.success && search.data.inviteId) {+ await context.queryClient.prefetchQuery(+ context.trpc.organization.getInvite.queryOptions({+ inviteId: search.data.inviteId,+ }),+ );+ }+ },+ pendingComponent: FullPageLoadingState,+});type IForm = z.infer<typeof zOnboardingProject>;-export const OnboardingCreateProject = ({- organizations,-}: {- organizations: IServiceOrganization[];-}) => {+function Component() {+ const trpc = useTRPC();+ const { data: organizations } = useQuery(+ trpc.organization.list.queryOptions(undefined, { initialData: [] }),+ );const [, setSecret] = useClientSecret();- const router = useRouter();- const mutation = api.onboarding.project.useMutation({- onError: handleError,- onSuccess(res) {- setSecret(res.secret);- router.push(`/onboarding/${res.projectId}/connect`);- },- });+ const navigate = useNavigate();+ const mutation = useMutation(+ trpc.onboarding.project.mutationOptions({+ onError: handleError,+ onSuccess(res) {+ setSecret(res.secret);+ navigate({+ to: '/onboarding/$projectId/connect',+ params: {+ projectId: res.projectId!,+ },+ });+ },+ }),+ );const form = useForm<IForm>({resolver: zodResolver(zOnboardingProject),@@ -93,14 +122,7 @@ export const OnboardingCreateProject = ({return (<form onSubmit={form.handleSubmit(onSubmit)}>- <OnboardingLayout- title="What are you tracking?"- description={- <OnboardingDescription>- Let us know what you want to track so we can help you get started.- </OnboardingDescription>- }- >+ <div className="p-4"><div className="grid gap-4 md:grid-cols-2">{organizations.length > 0 ? (<Controller@@ -113,7 +135,7 @@ export const OnboardingCreateProject = ({<ComboboxclassName="w-full"placeholder="Select workspace"- icon={Building}+ icon={BuildingIcon}error={formState.errors.organizationId?.message}value={field.value}items={@@ -164,9 +186,10 @@ export const OnboardingCreateProject = ({placeholder="Eg. The Music App"error={form.formState.errors.project?.message}{...form.register('project')}+ className="col-span-2"/></div>- <div className="flex flex-col divide-y">+ <div className="flex flex-col divide-y mt-4"><Controllername="website"control={form.control}@@ -266,19 +289,19 @@ export const OnboardingCreateProject = ({)}/></div>+ </div>- <ButtonContainer>- <div />- <Button- type="submit"- size="lg"- className="min-w-28 self-start"- loading={mutation.isLoading}- >- Next- </Button>- </ButtonContainer>- </OnboardingLayout>+ <ButtonContainer className="p-4 border-t">+ <div />+ <Button+ type="submit"+ size="lg"+ className="min-w-28 self-start"+ loading={mutation.isPending}+ >+ Next+ </Button>+ </ButtonContainer></form>);-};+}diff --git a/apps/start/src/routes/_steps.tsx b/apps/start/src/routes/_steps.tsxnew file mode 100644index 000000000..b5ec61a26--- /dev/null+++ b/apps/start/src/routes/_steps.tsx@@ -0,0 +1,75 @@+import { OnboardingLeftPanel } from '@/components/onboarding-left-panel';+import { SkeletonDashboard } from '@/components/skeleton-dashboard';+import { cn } from '@/utils/cn';+import { PAGE_TITLES, createEntityTitle } from '@/utils/title';+import {+ Outlet,+ createFileRoute,+ redirect,+ useLocation,+ useMatchRoute,+} from '@tanstack/react-router';++export const Route = createFileRoute('/_steps')({+ component: OnboardingLayout,+ head: () => ({+ meta: [{ title: createEntityTitle('Project', PAGE_TITLES.ONBOARDING) }],+ }),+});++function OnboardingLayout() {+ return (+ <div className="relative min-h-screen pt-32 pb-8">+ <div className="fixed inset-0 hidden md:block">+ <SkeletonDashboard />+ </div>+ <div className="relative z-10 border bg-background rounded-lg shadow-xl shadow-muted/50 max-w-xl mx-auto">+ <Progress />+ <Outlet />+ </div>+ </div>+ );+}++function Progress() {+ const steps = [+ {+ name: 'Create project',+ match: '/onboarding/project',+ },+ {+ name: 'Connect data',+ match: '/onboarding/$projectId/connect',+ },+ {+ name: 'Verify',+ match: '/onboarding/$projectId/verify',+ },+ ];+ const matchRoute = useMatchRoute();++ const currentStep = steps.find((step) =>+ matchRoute({+ // @ts-expect-error+ from: step.match,+ fuzzy: false,+ }),+ );++ return (+ <div className="row gap-4 p-4 border-b justify-between items-center flex-1 w-full">+ <div className="font-bold">{currentStep?.name ?? 'Onboarding'}</div>+ <div className="row gap-4">+ {steps.map((step) => (+ <div+ className={cn(+ 'w-10 h-2 rounded-full bg-muted',+ currentStep === step && 'w-20 bg-primary',+ )}+ key={step.match}+ />+ ))}+ </div>+ </div>+ );+}diff --git a/apps/start/src/routes/index.tsx b/apps/start/src/routes/index.tsxnew file mode 100644index 000000000..4327dd5ac--- /dev/null+++ b/apps/start/src/routes/index.tsx@@ -0,0 +1,99 @@+import FullPageLoadingState from '@/components/full-page-loading-state';+import { LogoSquare } from '@/components/logo';+import { PageHeader } from '@/components/page-header';+import { Button } from '@/components/ui/button';+import { useLogout } from '@/hooks/use-logout';+import { useNumber } from '@/hooks/use-numer-formatter';+import { useTRPC } from '@/integrations/trpc/react';+import { createTitle } from '@/utils/title';+import { useQuery, useSuspenseQuery } from '@tanstack/react-query';+import { Link, createFileRoute, redirect } from '@tanstack/react-router';++export const Route = createFileRoute('/')({+ beforeLoad: async ({ context }) => {+ if (!context.session.session) {+ throw redirect({ to: '/login' });+ }+ },+ component: LandingPage,+ head: () => ({+ meta: [{ title: createTitle('Welcome') }],+ }),+ loader: async ({ context }) => {+ // Unsure why not using ensureQueryData here works+ // We need to put staleTime and gcTime to 0 to get the latest data+ // Even tho this query has never been called before+ const organizations = await context.queryClient+ .fetchQuery(+ context.trpc.organization.list.queryOptions(undefined, {+ staleTime: 0,+ gcTime: 0,+ }),+ )+ .catch(() => []);++ if (organizations.length === 0) {+ throw redirect({ to: '/onboarding/project' });+ }++ if (organizations.length === 1) {+ throw redirect({+ to: '/$organizationId',+ params: { organizationId: organizations[0].id },+ });+ }+ },+ pendingComponent: FullPageLoadingState,+});++function LandingPage() {+ const trpc = useTRPC();+ const logout = useLogout();+ const { data: organizations } = useSuspenseQuery(+ trpc.organization.list.queryOptions(),+ );+ const number = useNumber();++ return (+ <div className="min-h-screen flex flex-col items-center justify-center">+ <div className="max-w-2xl mx-auto px-4 col gap-12">+ <div className="col gap-4">+ <LogoSquare className="w-full max-w-24" />+ <PageHeader+ title="Welcome to OpenPanel.dev"+ description="The best web and product analytics tool out there (our honest opinion)."+ />+ </div>++ <div className="col gap-2">+ {organizations?.map((org) => (+ <Link+ key={org.id}+ to={'/$organizationId'}+ params={{ organizationId: org.id }}+ className="row justify-between items-center p-3 rounded-lg border bg-card hover:border-primary hover:shadow-md transition-all hover:translate-x-1"+ >+ <div className="col gap-2">+ <span className="font-medium text-lg">{org.name}</span>+ <span className="text-muted-foreground text-sm">+ ({org.id})+ </span>+ </div>+ <span>+ {number.format(org.subscriptionPeriodEventsCount)}+ <span className="mx-1 opacity-50">/</span>+ {number.format(org.subscriptionPeriodEventsLimit)}+ </span>+ </Link>+ ))}+ </div>++ <div className="row gap-4">+ <Button onClick={() => logout.mutate()} loading={logout.isPending}>+ Log out+ </Button>+ </div>+ </div>+ </div>+ );+}diff --git a/apps/start/src/routes/share.overview.$shareId.tsx b/apps/start/src/routes/share.overview.$shareId.tsxnew file mode 100644index 000000000..e522dc32e--- /dev/null+++ b/apps/start/src/routes/share.overview.$shareId.tsx@@ -0,0 +1,107 @@+import { ShareEnterPassword } from '@/components/auth/share-enter-password';+import FullPageLoadingState from '@/components/full-page-loading-state';+import { OverviewFiltersButtons } from '@/components/overview/filters/overview-filters-buttons';+import { LiveCounter } from '@/components/overview/live-counter';+import OverviewMetrics from '@/components/overview/overview-metrics';+import { OverviewRange } from '@/components/overview/overview-range';+import OverviewTopDevices from '@/components/overview/overview-top-devices';+import OverviewTopEvents from '@/components/overview/overview-top-events';+import OverviewTopGeo from '@/components/overview/overview-top-geo';+import OverviewTopPages from '@/components/overview/overview-top-pages';+import OverviewTopSources from '@/components/overview/overview-top-sources';+import { useTRPC } from '@/integrations/trpc/react';+import { useQuery } from '@tanstack/react-query';+import { createFileRoute, notFound, useSearch } from '@tanstack/react-router';+import { z } from 'zod';++const shareSearchSchema = z.object({+ header: z.optional(z.number().or(z.string().or(z.boolean()))),+});++export const Route = createFileRoute('/share/overview/$shareId')({+ component: RouteComponent,+ validateSearch: shareSearchSchema,+ loader: async ({ context, params }) => {+ await context.queryClient.prefetchQuery(+ context.trpc.share.overview.queryOptions({+ shareId: params.shareId,+ }),+ );+ },+ pendingComponent: FullPageLoadingState,+});++function RouteComponent() {+ const { shareId } = Route.useParams();+ const { header } = useSearch({ from: '/share/overview/$shareId' });+ const trpc = useTRPC();+ const shareQuery = useQuery(+ trpc.share.overview.queryOptions({+ shareId,+ }),+ );++ const hasAccess = shareQuery.data?.hasAccess;+ // Check if share exists and is public+ if (shareQuery.isLoading) {+ return <div>Loading...</div>;+ }++ if (!shareQuery.data) {+ throw notFound();+ }++ if (!shareQuery.data.public) {+ throw notFound();+ }++ const share = shareQuery.data;+ const projectId = share.projectId;++ // Handle password protection+ if (share.password && !hasAccess) {+ return <ShareEnterPassword shareId={share.id} />;+ }++ const isHeaderVisible =+ header !== '0' && header !== 0 && header !== 'false' && header !== false;++ return (+ <div>+ {isHeaderVisible && (+ <div className="flex items-center justify-between border-b border-border bg-background p-4">+ <div className="col gap-1">+ <span className="text-sm">{share.organization?.name}</span>+ <h1 className="text-xl font-medium">{share.project?.name}</h1>+ </div>+ <a+ href="https://openpanel.dev?utm_source=openpanel.dev&utm_medium=share"+ className="col gap-1 items-end"+ >+ <span className="text-xs">POWERED BY</span>+ <span className="text-xl font-medium">openpanel.dev</span>+ </a>+ </div>+ )}+ <div className="">+ <div className="mx-auto max-w-7xl justify-between row gap-4 p-4 pb-0">+ <div className="flex gap-2">+ <OverviewRange />+ </div>+ <div className="flex gap-2">+ <LiveCounter projectId={projectId} />+ </div>+ </div>+ <OverviewFiltersButtons />+ <div className="mx-auto grid max-w-7xl grid-cols-6 gap-4 p-4">+ <OverviewMetrics projectId={projectId} />+ <OverviewTopSources projectId={projectId} />+ <OverviewTopPages projectId={projectId} />+ <OverviewTopDevices projectId={projectId} />+ <OverviewTopEvents projectId={projectId} />+ <OverviewTopGeo projectId={projectId} />+ </div>+ </div>+ </div>+ );+}diff --git a/apps/start/src/server/get-envs.ts b/apps/start/src/server/get-envs.tsnew file mode 100644index 000000000..3e830bc1b--- /dev/null+++ b/apps/start/src/server/get-envs.ts@@ -0,0 +1,19 @@+import { queryOptions } from '@tanstack/react-query';+import { createServerFn } from '@tanstack/react-start';++export const getServerEnvs = createServerFn().handler(async () => {+ const envs = {+ apiUrl: String(process.env.API_URL || process.env.NEXT_PUBLIC_API_URL),+ dashboardUrl: String(+ process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL,+ ),+ };++ return envs;+});++export const getServerEnvsQueryOptions = queryOptions({+ queryKey: ['server-envs'],+ queryFn: getServerEnvs,+ staleTime: Number.POSITIVE_INFINITY,+});diff --git a/apps/start/src/styles.css b/apps/start/src/styles.cssnew file mode 100644index 000000000..ea40cab87--- /dev/null+++ b/apps/start/src/styles.css@@ -0,0 +1,330 @@+@import 'tailwindcss';++@import 'tw-animate-css';++@custom-variant dark (&:is(.dark *));+@custom-variant light (&:is(.light *));+@custom-variant system (&:is(.system *));++body {+ @apply m-0;+ font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+}++code {+ font-family:+ source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;+}++:root {+ /* Core colors converted from HSL to OKLCH using convert-to-oklch tool */+ --highlight: oklch(55.1% 0.21 262); /* hsl(220, 84%, 53%) -> #2266ec */++ /* def- color scale converted from HSL to OKLCH */+ --def-100: oklch(98.4% 0 248); /* hsl(210, 40%, 98%) -> #F0F4F9 */+ --def-200: oklch(96.8% 0 248); /* hsl(210, 40%, 96.1%) -> #E7ECF2 */+ --def-300: oklch(91.7% 0 248); /* hsl(210, 15.14%, 89.41%) -> #DDE3E9 */+ --def-400: oklch(80.3% 0 248); /* hsl(210, 9.08%, 75.05%) -> #B3BDC7 */++ /* foregroundish converted from HSL to OKLCH */+ --foregroundish: oklch(34.4% 0 273); /* hsl(226.49, 3.06%, 22.62%) */++ --background: oklch(100% 0 0); /* hsl(0, 0%, 100%) -> #FFFFFF */+ --foreground: oklch(13.7% 0.04 259); /* hsl(222.2, 84%, 4.9%) -> #0C162A */+ --card: oklch(100% 0 0); /* hsl(0, 0%, 100%) -> #FFFFFF */+ --card-foreground: oklch(13.7% 0.04 259); /* hsl(222.2, 84%, 4.9%) -> #0C162A */+ --popover: oklch(100% 0 0); /* hsl(0, 0%, 100%) -> #FFFFFF */+ --popover-foreground: oklch(13.7% 0.04 259); /* hsl(222.2, 84%, 4.9%) -> #0C162A */+ --primary: oklch(20.8% 0.04 266); /* hsl(222.2, 47.4%, 11.2%) -> #163049 */+ --primary-foreground: oklch(98.4% 0 248); /* hsl(210, 40%, 98%) -> #F0F4F9 */+ --secondary: oklch(96.8% 0.01 248); /* hsl(210, 40%, 96.1%) -> #E7ECF2 */+ --secondary-foreground: oklch(20.8% 0.04 266); /* hsl(222.2, 47.4%, 11.2%) -> #163049 */+ --muted: oklch(96.8% 0.01 248); /* hsl(210, 40%, 96.1%) -> #E7ECF2 */+ --muted-foreground: oklch(55.5% 0.04 257); /* hsl(215.4, 16.3%, 46.9%) -> #798290 */+ --accent: oklch(96.8% 0.01 248); /* hsl(210, 40%, 96.1%) -> #E7ECF2 */+ --accent-foreground: oklch(20.8% 0.04 266); /* hsl(222.2, 47.4%, 11.2%) -> #163049 */+ --destructive: oklch(63.7% 0.21 25.3); /* hsl(0, 84.2%, 60.2%) -> #F2677D */+ --destructive-foreground: oklch(96.9% 0.02 17.4); /* hsl(0, 100%, 97.25%) -> #F8F9FB */+ --border: oklch(92.9% 0.01 256); /* hsl(214.3, 31.8%, 91.4%) -> #E8EBF1 */+ --input: oklch(92.9% 0.01 256); /* hsl(214.3, 31.8%, 91.4%) -> #E8EBF1 */+ --ring: oklch(86.9% 0.02 253); /* hsl(212.73, 26.83%, 83.92%) -> #CDD6E2 */++ /* Chart colors converted to OKLCH for consistency */+ --chart-0: oklch(54.6% 0.22 263); /* #2563EB */+ --chart-1: oklch(72.2% 0.17 33.7); /* #ff7557 */+ --chart-2: oklch(84.7% 0.09 188); /* #7fe1d8 */+ --chart-3: oklch(82.9% 0.15 82); /* #f8bc3c */+ --chart-4: oklch(57.8% 0.12 6.72); /* #b3596e */+ --chart-5: oklch(77.3% 0.11 241); /* #72bef4 */+ --chart-6: oklch(82.5% 0.12 56.4); /* #ffb27a */+ --chart-7: oklch(55.3% 0.1 226); /* #0f7ea0 */+ --chart-8: oklch(65.8% 0.13 159); /* #3ba974 */+ --chart-9: oklch(85.1% 0.08 27.5); /* #febbb2 */+ --chart-10: oklch(71.1% 0.15 320); /* #cb80dc */+ --chart-11: oklch(72.1% 0.09 188); /* #5cb7af */+ --chart-12: oklch(58.7% 0.24 286); /* #7856ff */++ --radius: 0.5rem;+}++.dark {+ /* Core colors converted from HSL to OKLCH for dark mode using convert-to-oklch tool */+ --highlight: oklch(61.3% 0.21 263); /* hsl(221.44, 100%, 62.04%) */++ /* def- color scale converted from HSL to OKLCH for dark mode */+ --def-100: oklch(19.3% 0 0); /* hsl(0, 0%, 8%) -> #0f0f0f */+ --def-200: oklch(25% 0 0); /* hsl(0, 0%, 13.12%) -> #212121 */+ --def-300: oklch(27.1% 0 0); /* hsl(0, 0%, 15.1%) -> #262626 */+ --def-400: oklch(37.3% 0 0); /* hsl(0, 0%, 25.23%) -> #404040 */++ --foregroundish: oklch(83.9% 0 0); /* hsl(0, 0%, 79.23%) */++ --background: oklch(23.8% 0 0); /* hsl(0, 0%, 12.02%) -> #1e1e1e */+ --foreground: oklch(98.5% 0 0); /* hsl(0, 0%, 98%) -> #fafafa */+ --card: oklch(21.6% 0 0); /* hsl(0, 0%, 10%) -> #1a1a1a */+ --card-foreground: oklch(98.5% 0 0); /* hsl(0, 0%, 98%) -> #fafafa */+ --popover: oklch(21.6% 0 0); /* hsl(0, 0%, 10%) -> #1a1a1a */+ --popover-foreground: oklch(98.5% 0 0); /* hsl(0, 0%, 98%) -> #fafafa */+ --primary: oklch(98.5% 0 0); /* hsl(0, 0%, 98%) -> #fafafa */+ --primary-foreground: oklch(22.9% 0 0); /* hsl(0, 0%, 11.2%) -> #1c1c1c */+ --secondary: oklch(27.1% 0 0); /* hsl(0, 0%, 15.1%) -> #262626 */+ --secondary-foreground: oklch(98.5% 0 0); /* hsl(0, 0%, 98%) -> #fafafa */+ --muted: oklch(27.1% 0 0); /* hsl(0, 0%, 15.1%) -> #262626 */+ --muted-foreground: oklch(72.4% 0 0); /* hsl(0, 0%, 65%) */+ --accent: oklch(27.1% 0 0); /* hsl(0, 0%, 15.1%) -> #262626 */+ --accent-foreground: oklch(98.5% 0 0); /* hsl(0, 0%, 98%) -> #fafafa */+ --destructive: oklch(63.7% 0.21 25.3); /* hsl(0, 84.2%, 60.2%) -> #F2677D */+ --destructive-foreground: oklch(96.9% 0.02 17.4); /* hsl(0, 100%, 97.25%) -> #F8F9FB */+ --border: oklch(27.1% 0 0); /* hsl(0, 0%, 15.1%) -> #262626 */+ --input: oklch(27.1% 0 0); /* hsl(0, 0%, 15.1%) -> #262626 */+ --ring: oklch(87.6% 0 0); /* hsl(0, 0%, 83.9%) -> #d6d6d6 */+}++@theme {+ /* Font sizes matching dashboard config */+ --text-xs: 10px;+ --text-xs--line-height: 10px;+ --text-sm: 12px;+ --text-sm--line-height: 12px;+ --text-base: 14px;+ --text-base--line-height: 14px;+ --text-lg: 16px;+ --text-lg--line-height: 16px;+ --text-xl: 18px;+ --text-xl--line-height: 18px;+ --text-2xl: 20px;+ --text-2xl--line-height: 20px;+ --text-3xl: 24px;+ --text-3xl--line-height: 24px;+ --text-4xl: 30px;+ --text-4xl--line-height: 30px;+ --text-5xl: 36px;+ --text-5xl--line-height: 36px;+ --text-6xl: 48px;+ --text-6xl--line-height: 48px;+ --text-7xl: 64px;+ --text-7xl--line-height: 64px;+ --text-8xl: 72px;+ --text-8xl--line-height: 72px;+ --text-9xl: 96px;+ --text-9xl--line-height: 96px;++ /* Color variables */+ --color-background: var(--background);+ --color-foreground: var(--foreground);+ --color-card: var(--card);+ --color-card-foreground: var(--card-foreground);+ --color-popover: var(--popover);+ --color-popover-foreground: var(--popover-foreground);+ --color-primary: var(--primary);+ --color-primary-foreground: var(--primary-foreground);+ --color-secondary: var(--secondary);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-muted: var(--muted);+ --color-muted-foreground: var(--muted-foreground);+ --color-accent: var(--accent);+ --color-accent-foreground: var(--accent-foreground);+ --color-destructive: var(--destructive);+ --color-destructive-foreground: var(--destructive-foreground);+ --color-border: var(--border);+ --color-input: var(--input);+ --color-ring: var(--ring);++ /* Extended chart colors */+ --color-chart-0: var(--chart-0);+ --color-chart-1: var(--chart-1);+ --color-chart-2: var(--chart-2);+ --color-chart-3: var(--chart-3);+ --color-chart-4: var(--chart-4);+ --color-chart-5: var(--chart-5);+ --color-chart-6: var(--chart-6);+ --color-chart-7: var(--chart-7);+ --color-chart-8: var(--chart-8);+ --color-chart-9: var(--chart-9);+ --color-chart-10: var(--chart-10);+ --color-chart-11: var(--chart-11);+ --color-chart-12: var(--chart-12);++ /* Additional colors */+ --color-highlight: var(--highlight);+ --color-foregroundish: var(--foregroundish);++ /* def color scale - properly defined for all variants */+ --color-def-100: var(--def-100);+ --color-def-200: var(--def-200);+ --color-def-300: var(--def-300);+ --color-def-400: var(--def-400);++ /* Radius variables */+ --radius-sm: calc(var(--radius) - 4px);+ --radius-md: calc(var(--radius) - 2px);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) + 4px);++ /* Sidebar colors */+ --color-sidebar: var(--sidebar);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-ring: var(--sidebar-ring);+}++@layer base {+ * {+ @apply border-border outline-ring/50;+ }+ body {+ @apply bg-background text-foreground;+ }++ /* Typography classes from globals.css */+ .h1 {+ @apply text-3xl font-medium;+ }++ .h2 {+ @apply text-xl font-medium;+ }++ .h3 {+ @apply text-lg font-medium;+ }++ .h4 {+ @apply font-medium;+ }++ .ellipsis {+ @apply overflow-hidden text-ellipsis whitespace-nowrap;+ }++ .heading {+ @apply text-3xl font-semibold;+ }++ .title {+ @apply text-lg font-semibold;+ }++ .subtitle {+ @apply text-base font-medium;+ }++ .card {+ @apply rounded-md border border-border bg-card;+ }+}++@utility center-center {+ @apply flex items-center justify-center text-center;+}++@utility col {+ @apply flex flex-col;+}++@utility row {+ @apply flex flex-row;+}++@utility text-text {+ @apply text-foreground;+}++@utility scrollbar-hidden {+ &::-webkit-scrollbar {+ display: none;+ }+}++/* Rechart styles from globals.css */+.recharts-wrapper .recharts-cartesian-grid-horizontal line:first-child,+.recharts-wrapper .recharts-cartesian-grid-horizontal line:last-child {+ stroke-opacity: 0;+}++button {+ @apply cursor-pointer;+}+++.hide-scrollbar::-webkit-scrollbar {+ display: none;+}++/* Hide scrollbar for IE, Edge and Firefox */+.hide-scrollbar {+ -ms-overflow-style: none; /* IE and Edge */+ scrollbar-width: none; /* Firefox */+}++/* Custom slow pulse animation */+@keyframes slow-pulse {+ 0%, 100% {+ opacity: 0.5;+ }+ 50% {+ opacity: 1;+ }+}++.animate-slow-pulse {+ animation: slow-pulse 4s ease-in-out infinite;+}++/* Floating element animations */+@keyframes float-1 {+ 0%, 100% {+ transform: scale(1);+ opacity: 0.3;+ }+ 50% {+ transform: scale(1.2);+ opacity: 0.6;+ }+}++@keyframes float-2 {+ 0%, 100% {+ transform: scale(1.2);+ opacity: 0.4;+ }+ 50% {+ transform: scale(1);+ opacity: 0.7;+ }+}++.animate-float-1 {+ animation: float-1 4s ease-in-out infinite;+}++.animate-float-2 {+ animation: float-2 3.5s ease-in-out infinite;+ animation-delay: 1s;+}\ No newline at end of filediff --git a/apps/dashboard/src/translations/countries.ts b/apps/start/src/translations/countries.tssimilarity index 100%rename from apps/dashboard/src/translations/countries.tsrename to apps/start/src/translations/countries.tsdiff --git a/apps/dashboard/src/translations/properties.ts b/apps/start/src/translations/properties.tssimilarity index 100%rename from apps/dashboard/src/translations/properties.tsrename to apps/start/src/translations/properties.tsdiff --git a/apps/start/src/trpc/client.ts b/apps/start/src/trpc/client.tsnew file mode 100644index 000000000..57a4e8cc3--- /dev/null+++ b/apps/start/src/trpc/client.ts@@ -0,0 +1,16 @@+import { useTRPC } from '@/integrations/trpc/react';+import type { AppRouter } from '@openpanel/trpc';+import type {+ inferRouterInputs,+ inferRouterOutputs,+ inferTRPCClientTypes,+} from '@trpc/server';++export const api = useTRPC();++export { handleError } from '@/integrations/trpc/react';++export type RouterOutputs = inferRouterOutputs<AppRouter>;+export type RouterInputs = inferRouterInputs<AppRouter>;++export type IChartData = RouterOutputs['chart']['chart'];diff --git a/apps/start/src/types/data-table.ts b/apps/start/src/types/data-table.tsnew file mode 100644index 000000000..6d5b6cfb1--- /dev/null+++ b/apps/start/src/types/data-table.ts@@ -0,0 +1,46 @@+import type { DataTableConfig } from '@/components/ui/data-table/data-table-config';+import type { FilterItemSchema } from '@/components/ui/data-table/data-table-parsers';+import type { ColumnSort, FilterFn, Row, RowData } from '@tanstack/react-table';++declare module '@tanstack/react-table' {+ interface ColumnMeta<TData extends RowData, TValue> {+ label?: string;+ placeholder?: string;+ variant?: FilterVariant;+ options?: Option[];+ range?: [number, number];+ unit?: string;+ icon?: React.FC<React.SVGProps<SVGSVGElement>>;+ pinned?: 'left' | 'right';+ bold?: boolean;+ hidden?: boolean;+ }++ interface FilterFns {+ isWithinRange: FilterFn<unknown>;+ }+}++export interface Option {+ label: string;+ value: string;+ count?: number;+ icon?: React.FC<React.SVGProps<SVGSVGElement>>;+}++export type FilterOperator = DataTableConfig['operators'][number];+export type FilterVariant = DataTableConfig['filterVariants'][number];+export type JoinOperator = DataTableConfig['joinOperators'][number];++export interface ExtendedColumnSort<TData> extends Omit<ColumnSort, 'id'> {+ id: Extract<keyof TData, string>;+}++export interface ExtendedColumnFilter<TData> extends FilterItemSchema {+ id: Extract<keyof TData, string>;+}++export interface DataTableRowAction<TData> {+ row: Row<TData>;+ variant: 'update' | 'delete';+}diff --git a/apps/dashboard/src/types/index.ts b/apps/start/src/types/index.tssimilarity index 100%rename from apps/dashboard/src/types/index.tsrename to apps/start/src/types/index.tsdiff --git a/apps/dashboard/src/types/react-simple-map.d.ts b/apps/start/src/types/react-simple-map.d.tssimilarity index 100%rename from apps/dashboard/src/types/react-simple-map.d.tsrename to apps/start/src/types/react-simple-map.d.tsdiff --git a/apps/start/src/utils/are-props-equal.ts b/apps/start/src/utils/are-props-equal.tsnew file mode 100644index 000000000..d0c54d700--- /dev/null+++ b/apps/start/src/utils/are-props-equal.ts@@ -0,0 +1,12 @@+import { pathOr } from 'ramda';+import { shallowEqual } from 'react-redux';++export function arePropsEqual(paths: string[]) {+ return (prevProps: any, nextProps: any) =>+ paths.every((path) =>+ shallowEqual(+ pathOr(undefined, path.split('.'), prevProps),+ pathOr(undefined, path.split('.'), nextProps),+ ),+ );+}diff --git a/apps/start/src/utils/casing.ts b/apps/start/src/utils/casing.tsnew file mode 100644index 000000000..fa278cbb6--- /dev/null+++ b/apps/start/src/utils/casing.ts@@ -0,0 +1,9 @@+export const camelCaseToWords = (str: string) => {+ return str+ .replaceAll('_', ' ')+ .trim()+ .replaceAll(/([A-Z])/g, ' $1')+ .trim()+ .replace(/^./, (str) => str.toUpperCase())+ .replaceAll(/\s./g, (str) => str.toUpperCase());+};diff --git a/apps/dashboard/src/utils/clipboard.ts b/apps/start/src/utils/clipboard.tssimilarity index 100%rename from apps/dashboard/src/utils/clipboard.tsrename to apps/start/src/utils/clipboard.tsdiff --git a/apps/dashboard/src/utils/cn.ts b/apps/start/src/utils/cn.tssimilarity index 100%rename from apps/dashboard/src/utils/cn.tsrename to apps/start/src/utils/cn.tsdiff --git a/apps/dashboard/src/utils/date.ts b/apps/start/src/utils/date.tssimilarity index 62%rename from apps/dashboard/src/utils/date.tsrename to apps/start/src/utils/date.tsindex ddc78223c..36163b077 100644--- a/apps/dashboard/src/utils/date.ts+++ b/apps/start/src/utils/date.ts@@ -1,4 +1,4 @@-import { isSameYear } from 'date-fns';+import { differenceInDays, differenceInHours, isSameDay } from 'date-fns';import type { FormatStyleName } from 'javascript-time-ago';import TimeAgo from 'javascript-time-ago';import en from 'javascript-time-ago/locale/en';@@ -17,26 +17,24 @@ export function getLocale() {}export function formatDate(date: Date) {- const options: Intl.DateTimeFormatOptions = {- day: 'numeric',- month: 'numeric',- };+ const day = date.getDate();+ const month = new Intl.DateTimeFormat(getLocale(), { month: 'short' })+ .format(date)+ .replace('.', '')+ .toLowerCase();- if (!isSameYear(date, new Date())) {- options.year = 'numeric';- }-- return new Intl.DateTimeFormat(getLocale(), options).format(date);+ return `${day} ${month}`;}export function formatDateTime(date: Date) {- return new Intl.DateTimeFormat(getLocale(), {- day: 'numeric',- month: 'numeric',- year: 'numeric',- hour: 'numeric',- minute: 'numeric',+ const datePart = formatDate(date);+ const timePart = new Intl.DateTimeFormat(getLocale(), {+ hour: '2-digit',+ minute: '2-digit',+ hour12: false,}).format(date);++ return `${datePart}, ${timePart}`;}export function formatTime(date: Date) {@@ -54,6 +52,14 @@ export function timeAgo(date: Date, style?: FormatStyleName) {return ta.format(new Date(date), style);}+export function formatTimeAgoOrDateTime(date: Date) {+ if (Math.abs(differenceInHours(date, new Date())) < 3) {+ return timeAgo(date);+ }++ return isSameDay(date, new Date()) ? formatTime(date) : formatDateTime(date);+}+export function utc(date: string) {if (date.match(/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}$/)) {return new Date(`${date}Z`);diff --git a/apps/dashboard/src/utils/getDbId.ts b/apps/start/src/utils/getDbId.tssimilarity index 100%rename from apps/dashboard/src/utils/getDbId.tsrename to apps/start/src/utils/getDbId.tsdiff --git a/apps/start/src/utils/getters.ts b/apps/start/src/utils/getters.tsnew file mode 100644index 000000000..411dc9448--- /dev/null+++ b/apps/start/src/utils/getters.ts@@ -0,0 +1,33 @@+import type { IServiceProfile } from '@openpanel/db';++export type GetProfileNameProps = Partial<+ Pick<+ IServiceProfile,+ 'firstName' | 'lastName' | 'email' | 'isExternal' | 'id'+ >+>;+export function getProfileName(+ profile: GetProfileNameProps | undefined | null,+ short = true,+) {+ if (!profile) {+ return '';+ }++ if (!profile.isExternal) {+ return 'Anonymous';+ }++ const name =+ [profile.firstName, profile.lastName].filter(Boolean).join(' ') ||+ profile.email;++ if (!name) {+ if (short && profile?.id && profile.id.length > 10) {+ return `${profile?.id?.slice(0, 4)}...${profile?.id?.slice(-4)}`;+ }+ return profile?.id ?? 'Unknown';+ }++ return name;+}diff --git a/apps/dashboard/src/utils/math.ts b/apps/start/src/utils/math.tssimilarity index 100%rename from apps/dashboard/src/utils/math.tsrename to apps/start/src/utils/math.tsdiff --git a/apps/start/src/utils/op.ts b/apps/start/src/utils/op.tsnew file mode 100644index 000000000..42699e5af--- /dev/null+++ b/apps/start/src/utils/op.ts@@ -0,0 +1,8 @@+import { OpenPanel } from '@openpanel/web';++export const op = new OpenPanel({+ clientId: '301c6dc1-424c-4bc3-9886-a8beab09b615',+ trackScreenViews: true,+ trackOutgoingLinks: true,+ trackAttributes: true,+});diff --git a/apps/dashboard/src/utils/should-ignore-keypress.ts b/apps/start/src/utils/should-ignore-keypress.tssimilarity index 60%rename from apps/dashboard/src/utils/should-ignore-keypress.tsrename to apps/start/src/utils/should-ignore-keypress.tsindex 9b184e8ba..76e1f7e5b 100644--- a/apps/dashboard/src/utils/should-ignore-keypress.ts+++ b/apps/start/src/utils/should-ignore-keypress.ts@@ -1,9 +1,13 @@export function shouldIgnoreKeypress(event: KeyboardEvent) {+ const feedbackWidget =+ typeof window !== 'undefined' && 'uj' in window+ ? (window.uj as any).getWidgetState()+ : null;const tagName = (event?.target as HTMLElement)?.tagName;const modifierPressed =event.ctrlKey || event.metaKey || event.altKey || event.keyCode === 229;const isTyping =event.isComposing || tagName === 'INPUT' || tagName === 'TEXTAREA';- return modifierPressed || isTyping;+ return modifierPressed || isTyping || feedbackWidget?.isOpen === true;}diff --git a/apps/dashboard/src/utils/slug.ts b/apps/start/src/utils/slug.tssimilarity index 100%rename from apps/dashboard/src/utils/slug.tsrename to apps/start/src/utils/slug.tsdiff --git a/apps/dashboard/src/utils/storage.ts b/apps/start/src/utils/storage.tssimilarity index 100%rename from apps/dashboard/src/utils/storage.tsrename to apps/start/src/utils/storage.tsdiff --git a/apps/start/src/utils/theme.ts b/apps/start/src/utils/theme.tsnew file mode 100644index 000000000..419bedd15--- /dev/null+++ b/apps/start/src/utils/theme.ts@@ -0,0 +1,33 @@+// import resolveConfig from 'tailwindcss/resolveConfig';++// import tailwinConfig from '../../tailwind.config';++// export const resolvedTailwindConfig = resolveConfig(tailwinConfig);++// export const theme = resolvedTailwindConfig.theme as Record<string, any>;++const chartColors = [+ '#2563EB',+ '#ff7557',+ '#7fe1d8',+ '#f8bc3c',+ '#b3596e',+ '#72bef4',+ '#ffb27a',+ '#0f7ea0',+ '#3ba974',+ '#febbb2',+ '#cb80dc',+ '#5cb7af',+ '#7856ff',+];++export function getChartColor(index: number): string {+ // const colors = theme?.colors ?? {};+ // const chartColors: string[] = Object.keys(colors)+ // .filter((key) => key.startsWith('chart-'))+ // .map((key) => colors[key])+ // .filter((item): item is string => typeof item === 'string');++ return chartColors[index % chartColors.length]!;+}diff --git a/apps/start/src/utils/title.ts b/apps/start/src/utils/title.tsnew file mode 100644index 000000000..a76eeae7c--- /dev/null+++ b/apps/start/src/utils/title.ts@@ -0,0 +1,125 @@+/**+ * Utility functions for generating page titles+ */++const BASE_TITLE = 'OpenPanel.dev';++/**+ * Creates a hierarchical title with the format: "Page Title | Section | OpenPanel.dev"+ */+export function createTitle(+ pageTitle: string,+ section?: string,+ baseTitle = BASE_TITLE,+): string {+ const parts = [pageTitle];+ if (section) {+ parts.push(section);+ }+ parts.push(baseTitle);+ return parts.join(' | ');+}++/**+ * Creates a title for organization-level pages+ */+export function createOrganizationTitle(+ pageTitle: string,+ organizationName?: string,+): string {+ if (organizationName) {+ return createTitle(pageTitle, organizationName);+ }+ return createTitle(pageTitle, 'Organization');+}++/**+ * Creates a title for project-level pages+ */+export function createProjectTitle(+ pageTitle: string,+ projectName?: string,+ organizationName?: string,+): string {+ const parts = [pageTitle];+ if (projectName) {+ parts.push(projectName);+ }+ if (organizationName) {+ parts.push(organizationName);+ }+ parts.push(BASE_TITLE);+ return parts.join(' | ');+}++/**+ * Creates a title for specific entity pages (reports, sessions, etc.)+ */+export function createEntityTitle(+ entityName: string,+ entityType: string,+ projectName?: string,+ organizationName?: string,+): string {+ const parts = [entityName, entityType];+ if (projectName) {+ parts.push(projectName);+ }+ if (organizationName) {+ parts.push(organizationName);+ }+ parts.push(BASE_TITLE);+ return parts.join(' | ');+}++/**+ * Common page titles+ */+export const PAGE_TITLES = {+ // Main sections+ DASHBOARD: 'Dashboard',+ EVENTS: 'Events',+ SESSIONS: 'Sessions',+ PROFILES: 'Profiles',+ PAGES: 'Pages',+ REPORTS: 'Reports',+ NOTIFICATIONS: 'Notifications',+ SETTINGS: 'Settings',+ INTEGRATIONS: 'Integrations',+ MEMBERS: 'Members',+ BILLING: 'Billing',+ CHAT: 'AI Assistant',+ REALTIME: 'Realtime',+ REFERENCES: 'References',++ // Sub-sections+ CONVERSIONS: 'Conversions',+ STATS: 'Statistics',+ ANONYMOUS: 'Anonymous',+ IDENTIFIED: 'Identified',+ POWER_USERS: 'Power Users',+ CLIENTS: 'Clients',+ DETAILS: 'Details',+ AVAILABLE: 'Available',+ INSTALLED: 'Installed',+ INVITATIONS: 'Invitations',++ // Actions+ CREATE: 'Create',+ EDIT: 'Edit',+ DELETE: 'Delete',++ // Onboarding+ ONBOARDING: 'Getting Started',+ CONNECT: 'Connect',+ VERIFY: 'Verify',+ PROJECT: 'Project',+ PROJECTS: 'Projects',++ // Auth+ LOGIN: 'Login',+ RESET_PASSWORD: 'Reset Password',++ // Share+ SHARE: 'Shared Dashboard',+} as const;diff --git a/apps/dashboard/src/utils/truncate.ts b/apps/start/src/utils/truncate.tssimilarity index 100%rename from apps/dashboard/src/utils/truncate.tsrename to apps/start/src/utils/truncate.tsdiff --git a/apps/start/tsconfig.json b/apps/start/tsconfig.jsonnew file mode 100644index 000000000..a61bbee44--- /dev/null+++ b/apps/start/tsconfig.json@@ -0,0 +1,28 @@+{+ "include": ["**/*.ts", "**/*.tsx"],+ "exclude": ["node_modules", "dist"],+ "compilerOptions": {+ "target": "ES2022",+ "jsx": "react-jsx",+ "module": "ESNext",+ "lib": ["ES2022", "DOM", "DOM.Iterable"],+ "types": ["vite/client"],++ /* Bundler mode */+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "verbatimModuleSyntax": false,+ "noEmit": true,++ /* Linting */+ "skipLibCheck": true,+ "strict": true,+ "noUnusedLocals": false,+ "noUnusedParameters": false,+ "noFallthroughCasesInSwitch": true,+ "baseUrl": ".",+ "paths": {+ "@/*": ["./src/*"]+ }+ }+}diff --git a/apps/start/vite.config.ts b/apps/start/vite.config.tsnew file mode 100644index 000000000..818ca79ec--- /dev/null+++ b/apps/start/vite.config.ts@@ -0,0 +1,28 @@+import { cloudflare } from '@cloudflare/vite-plugin';+import { wrapVinxiConfigWithSentry } from '@sentry/tanstackstart-react';+import tailwindcss from '@tailwindcss/vite';+import { tanstackStart } from '@tanstack/react-start/plugin/vite';+import viteReact from '@vitejs/plugin-react';+import { defineConfig } from 'vite';+import viteTsConfigPaths from 'vite-tsconfig-paths';++const config = defineConfig({+ plugins: [+ cloudflare({ viteEnvironment: { name: 'ssr' } }),+ viteTsConfigPaths({+ projects: ['./tsconfig.json'],+ }),+ tailwindcss(),+ tanstackStart(),+ viteReact(),+ ],+});++export default wrapVinxiConfigWithSentry(config, {+ org: process.env.VITE_SENTRY_ORG,+ project: process.env.VITE_SENTRY_PROJECT,+ authToken: process.env.SENTRY_AUTH_TOKEN,+ // Only print logs for uploading source maps in CI+ // Set to `true` to suppress logs+ silent: !process.env.CI,+});diff --git a/apps/start/wrangler.jsonc b/apps/start/wrangler.jsoncnew file mode 100644index 000000000..c90d8207e--- /dev/null+++ b/apps/start/wrangler.jsonc@@ -0,0 +1,20 @@+{+ "$schema": "node_modules/wrangler/config-schema.json",+ "name": "openpanel-dashboard",+ "account_id": "ff15074258b1981316524df0b09047df",+ "compatibility_date": "2025-09-02",+ "compatibility_flags": ["nodejs_compat"],+ "main": "@tanstack/react-start/server-entry",+ "routes": [+ {+ "pattern": "start.openpanel.dev/*",+ "zone_name": "openpanel.dev"+ }+ ],+ "vars": {+ "API_URL": "https://api.staging.k8s.openpanel.dev",+ "DASHBOARD_URL": "https://start.openpanel.dev",+ "NODE_ENV": "production",+ "APP_VERSION": "1.0.0"+ }+}diff --git a/apps/worker/Dockerfile b/apps/worker/Dockerfileindex cbb6da308..7f953f59a 100644--- a/apps/worker/Dockerfile+++ b/apps/worker/Dockerfile@@ -1,4 +1,4 @@-ARG NODE_VERSION=20.15.1+ARG NODE_VERSION=22.20.0FROM node:${NODE_VERSION}-slim AS base@@ -38,6 +38,7 @@ COPY packages/common/package.json ./packages/common/COPY packages/constants/package.json ./packages/constants/COPY packages/validation/package.json ./packages/validation/COPY packages/integrations/package.json packages/integrations/+COPY patches ./patches# BUILDFROM base AS build@@ -84,6 +85,7 @@ COPY --from=build /app/packages/queue ./packages/queueCOPY --from=build /app/packages/common ./packages/commonCOPY --from=build /app/packages/validation ./packages/validationCOPY --from=build /app/packages/integrations ./packages/integrations+COPY --from=build /app/tooling/typescript ./tooling/typescriptRUN pnpm db:codegenWORKDIR /app/apps/workerdiff --git a/apps/worker/package.json b/apps/worker/package.jsonindex d8a8a1197..85fa5cbfc 100644--- a/apps/worker/package.json+++ b/apps/worker/package.json@@ -1,12 +1,13 @@{"name": "@openpanel/worker","version": "0.0.3",+ "type": "module","scripts": {"test": "vitest",- "dev": "dotenv -e ../../.env -c -v WATCH=1 tsup",+ "dev": "dotenv -e ../../.env -c -v WATCH=1 tsdown","testing": "WORKER_PORT=9999 pnpm dev","start": "node dist/index.js",- "build": "rm -rf dist && tsup",+ "build": "rm -rf dist && tsdown","typecheck": "tsc --noEmit","gen:referrers": "jiti scripts/get-referrers.ts && biome format --write ./src/referrers/index.ts"},@@ -37,7 +38,7 @@"@types/source-map-support": "^0.5.10","@types/sqlstring": "^2.3.2","@types/uuid": "^9.0.8",- "tsup": "^7.2.0",- "typescript": "^5.2.2"+ "tsdown": "^0.14.2",+ "typescript": "catalog:"}}diff --git a/apps/worker/scripts/get-referrers.ts b/apps/worker/scripts/get-referrers.tsindex bc53c2e5c..27302eb79 100644--- a/apps/worker/scripts/get-referrers.ts+++ b/apps/worker/scripts/get-referrers.ts@@ -1,5 +1,10 @@import fs from 'node:fs';import path from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);// extrasconst extraReferrers = {diff --git a/apps/worker/src/boot-cron.ts b/apps/worker/src/boot-cron.tsindex 7958ff6a4..e9869081a 100644--- a/apps/worker/src/boot-cron.ts+++ b/apps/worker/src/boot-cron.ts@@ -37,8 +37,7 @@ export async function bootCron() {];if (- (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true' ||- process.env.SELF_HOSTED) &&+ (process.env.VITE_SELF_HOSTED === 'true' || process.env.SELF_HOSTED) &&process.env.NODE_ENV === 'production') {jobs.push({diff --git a/apps/worker/src/index.ts b/apps/worker/src/index.tsindex 659536088..af6eee6f5 100644--- a/apps/worker/src/index.ts+++ b/apps/worker/src/index.ts@@ -1,5 +1,5 @@import { createBullBoard } from '@bull-board/api';-import { BullMQAdapter } from '@bull-board/api/bullMQAdapter';+import { BullMQAdapter } from '@bull-board/api/dist/src/queueAdapters/bullMQ.js';import { ExpressAdapter } from '@bull-board/express';import express from 'express';@@ -13,6 +13,8 @@ import {} from '@openpanel/queue';import client from 'prom-client';+import { getRedisQueue } from '@openpanel/redis';+import { Queue, Worker } from 'bullmq';import { BullBoardGroupMQAdapter } from 'groupmq';import sourceMapSupport from 'source-map-support';import { bootCron } from './boot-cron';@@ -22,6 +24,28 @@ import { logger } from './utils/logger';sourceMapSupport.install();+const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));+const test = new Worker(+ 'duplicateEvents',+ async (job) => {+ await sleep(5000);++ return 'done';+ },+ {+ connection: getRedisQueue(),+ },+);++const testQueue = new Queue('duplicateEvents', {+ connection: getRedisQueue(),+ defaultJobOptions: {+ removeOnComplete: {+ age: 10,+ },+ },+});+async function start() {const collectDefaultMetrics = client.collectDefaultMetrics;collectDefaultMetrics({ register });@@ -46,6 +70,33 @@ async function start() {app.use('/', serverAdapter.getRouter());}+ const hashPayload = (payload: Record<string, unknown>) => {+ return 'event-hash-here...';+ };++ app.get('/test', async (req, res) => {+ try {+ const job = await testQueue.add(+ 'test',+ {+ message: 'Test job!',+ },+ {+ jobId: hashPayload(req.body),+ },+ );+ res.json({ jobId: job.id, opts: job.opts, status: await job.getState() });+ } catch (error) {+ console.log('error', error);++ if (error instanceof Error) {+ res.status(500).json({ error: error.message });+ } else {+ res.status(500).json({ error: 'Unknown error' });+ }+ }+ });+app.get('/metrics', (req, res) => {res.set('Content-Type', register.contentType);registerdiff --git a/apps/worker/src/jobs/cron.delete-projects.ts b/apps/worker/src/jobs/cron.delete-projects.tsindex 169e1720f..da82341e8 100644--- a/apps/worker/src/jobs/cron.delete-projects.ts+++ b/apps/worker/src/jobs/cron.delete-projects.ts@@ -2,7 +2,7 @@ import { logger } from '@/utils/logger';import { TABLE_NAMES, ch, db } from '@openpanel/db';import type { CronQueuePayload } from '@openpanel/queue';import type { Job } from 'bullmq';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';export async function deleteProjects(job: Job<CronQueuePayload>) {const projects = await db.project.findMany({@@ -33,7 +33,7 @@ export async function deleteProjects(job: Job<CronQueuePayload>) {job.log(`Delete project: "${project.id}"`);});- const where = `project_id IN (${projects.map((project) => escape(project.id)).join(',')})`;+ const where = `project_id IN (${projects.map((project) => sqlstring.escape(project.id)).join(',')})`;const tables = [TABLE_NAMES.events,TABLE_NAMES.profiles,@@ -47,7 +47,7 @@ export async function deleteProjects(job: Job<CronQueuePayload>) {for (const table of tables) {const query =- process.env.NEXT_PUBLIC_SELF_HOSTED === 'true'+ process.env.VITE_SELF_HOSTED === 'true'? `ALTER TABLE ${table} DELETE WHERE ${where};`: `ALTER TABLE ${table}_replicated ON CLUSTER '{cluster}' DELETE WHERE ${where};`;diff --git a/apps/worker/src/jobs/cron.ping.ts b/apps/worker/src/jobs/cron.ping.tsindex 65263b78d..8252702ba 100644--- a/apps/worker/src/jobs/cron.ping.ts+++ b/apps/worker/src/jobs/cron.ping.ts@@ -12,7 +12,8 @@ export async function ping() {'Content-Type': 'application/json',},body: JSON.stringify({- domain: process.env.NEXT_PUBLIC_DASHBOARD_URL,+ domain:+ process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL,count: res?.count,}),});diff --git a/apps/worker/tsdown.config.ts b/apps/worker/tsdown.config.tsnew file mode 100644index 000000000..80837b37e--- /dev/null+++ b/apps/worker/tsdown.config.ts@@ -0,0 +1,23 @@+import { defineConfig } from 'tsdown';+import type { Options } from 'tsdown';++const options: Options = {+ clean: true,+ entry: ['src/index.ts'],+ noExternal: [/^@openpanel\/.*$/u, /^@\/.*$/u],+ external: ['@hyperdx/node-opentelemetry', 'winston', '@node-rs/argon2'],+ sourcemap: true,+ platform: 'node',+ shims: true,+ inputOptions: {+ jsx: 'react',+ },+};++if (process.env.WATCH) {+ options.watch = ['src', '../../packages'];+ options.onSuccess = 'node --enable-source-maps dist/index.js';+ options.minify = false;+}++export default defineConfig(options);diff --git a/apps/worker/tsup.config.ts b/apps/worker/tsup.config.tsdeleted file mode 100644index 9e1c93dd9..000000000--- a/apps/worker/tsup.config.ts+++ /dev/null@@ -1,19 +0,0 @@-import { defineConfig } from 'tsup';-import type { Options } from 'tsup';--const options: Options = {- clean: true,- entry: ['src/index.ts'],- noExternal: [/^@openpanel\/.*$/u, /^@\/.*$/u],- external: ['@hyperdx/node-opentelemetry', 'winston'],- ignoreWatch: ['../../**/{.git,node_modules,dist}/**'],- sourcemap: true,- splitting: false,-};--if (process.env.WATCH) {- options.watch = ['src/**/*', '../../packages/**/*'];- options.onSuccess = 'node dist/index.js';-}--export default defineConfig(options);diff --git a/package.json b/package.jsonindex c0efdb269..a9f725d5d 100644--- a/package.json+++ b/package.json@@ -1,10 +1,11 @@{"name": "@openpanel/root","version": "1.0.0",+ "type": "module","private": true,"license": "MIT","author": "Carl-Gerhard Lindesvärd",- "packageManager": "[email protected]",+ "packageManager": "[email protected]","scripts": {"test": "vitest run","gen:bots": "pnpm -r --filter api gen:bots",@@ -25,7 +26,8 @@"lint:fix": "biome check --write .","lint:workspace": "pnpm dlx sherif@latest","typecheck": "pnpm -r typecheck",- "update-simple-git-hooks": "npx simple-git-hooks"+ "update-simple-git-hooks": "npx simple-git-hooks",+ "deps:unused": "node tooling/unused-deps.mjs"},"simple-git-hooks": {"pre-push": "pnpm typecheck && pnpm test"@@ -34,7 +36,7 @@"@hyperdx/node-opentelemetry": "^0.8.1","dotenv-cli": "^7.3.0","semver": "^7.5.4",- "typescript": "^5.2.2",+ "typescript": "catalog:","winston": "^3.14.2"},"trustedDependencies": [@@ -51,7 +53,13 @@],"devDependencies": {"@biomejs/biome": "1.9.1",+ "depcheck": "^1.4.7","simple-git-hooks": "^2.12.1","vitest": "^3.0.4"+ },+ "pnpm": {+ "patchedDependencies": {+ "nuqs": "patches/nuqs.patch"+ }}}diff --git a/packages/auth/constants.ts b/packages/auth/constants.tsindex fc549e91d..d801a97ea 100644--- a/packages/auth/constants.ts+++ b/packages/auth/constants.ts@@ -1,6 +1,8 @@import { parseCookieDomain } from './parse-cookie-domain';-const parsed = parseCookieDomain(process.env.NEXT_PUBLIC_DASHBOARD_URL ?? '');+const parsed = parseCookieDomain(+ (process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL) ?? '',+);export const COOKIE_MAX_AGE = 60 * 60 * 24 * 30;export const COOKIE_OPTIONS = {diff --git a/packages/auth/package.json b/packages/auth/package.jsonindex 0e2193ae8..9af1b9e1b 100644--- a/packages/auth/package.json+++ b/packages/auth/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/auth","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"@@ -15,13 +16,13 @@},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",- "@types/react": "^18.2.0",+ "@types/node": "catalog:",+ "@types/react": "catalog:","prisma": "^5.1.1",- "typescript": "^5.2.2"+ "typescript": "catalog:"},"peerDependencies": {"next": "14.2.1",- "react": "18.2.0"+ "react": "catalog:"}}diff --git a/packages/auth/parse-cookie-domain.ts b/packages/auth/parse-cookie-domain.tsindex 36b3f7e86..fee151eab 100644--- a/packages/auth/parse-cookie-domain.ts+++ b/packages/auth/parse-cookie-domain.ts@@ -111,14 +111,3 @@ export const parseCookieDomain = (url: string) => {secure: domain.protocol === 'https:',};};--const parsed = parseCookieDomain(process.env.NEXT_PUBLIC_DASHBOARD_URL ?? '');--export const COOKIE_MAX_AGE = 60 * 60 * 24 * 30;-export const COOKIE_OPTIONS = {- domain: parsed.domain,- secure: parsed.secure,- sameSite: 'lax',- httpOnly: true,- path: '/',-} as const;diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 896e4265f..d352ce721 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/cli","version": "0.0.1-beta",+ "type": "module","module": "index.ts","bin": {"openpanel": "dist/bin/cli.js"@@ -23,10 +24,10 @@"@openpanel/db": "workspace:^","@openpanel/sdk": "workspace:*","@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",+ "@types/node": "catalog:","@types/progress": "^2.0.7","@types/ramda": "^0.30.1","tsup": "^7.2.0",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/cli/src/importer/importer.ts b/packages/cli/src/importer/importer.tsindex 9076566f3..27be17af6 100644--- a/packages/cli/src/importer/importer.ts+++ b/packages/cli/src/importer/importer.ts@@ -336,7 +336,7 @@ async function sendBatchToAPI('openpanel-client-id': clientId,'openpanel-client-secret': clientSecret,},- body: zlib.gzipSync(JSON.stringify(batch)),+ body: Buffer.from(zlib.gzipSync(JSON.stringify(batch))),});if (!res.ok) {throw new Error(`Failed to send batch: ${await res.text()}`);diff --git a/packages/common/package.json b/packages/common/package.jsonindex d307325b6..a8c914f7c 100644--- a/packages/common/package.json+++ b/packages/common/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/common","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"test": "vitest",@@ -22,10 +23,10 @@"@openpanel/tsconfig": "workspace:*","@openpanel/validation": "workspace:*","@types/luxon": "^3.6.2",- "@types/node": "20.14.8",+ "@types/node": "catalog:","@types/ramda": "^0.29.6","@types/ua-parser-js": "^0.7.39","prisma": "^5.1.1",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/constants/package.json b/packages/constants/package.jsonindex e49fc6717..f121f9b59 100644--- a/packages/constants/package.json+++ b/packages/constants/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/constants","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"@@ -8,7 +9,6 @@"devDependencies": {"@openpanel/tsconfig": "workspace:*","date-fns": "^3.3.1",- "prisma": "^5.1.1",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/db/code-migrations/2-accounts.ts b/packages/db/code-migrations/2-accounts.tsindex 1961e7cab..c6b39230e 100644--- a/packages/db/code-migrations/2-accounts.ts+++ b/packages/db/code-migrations/2-accounts.ts@@ -1,5 +1,10 @@import fs from 'node:fs/promises';import path from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);import { db } from '../index';import { printBoxMessage } from './helpers';diff --git a/packages/db/code-migrations/3-init-ch.ts b/packages/db/code-migrations/3-init-ch.tsindex 1eea8e5f0..040c039f3 100644--- a/packages/db/code-migrations/3-init-ch.ts+++ b/packages/db/code-migrations/3-init-ch.ts@@ -1,5 +1,10 @@import fs from 'node:fs';import path from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);import { formatClickhouseDate } from '../src/clickhouse/client';import {createDatabase,diff --git a/packages/db/code-migrations/helpers.ts b/packages/db/code-migrations/helpers.tsindex f3d0f23e6..59b353072 100644--- a/packages/db/code-migrations/helpers.ts+++ b/packages/db/code-migrations/helpers.ts@@ -24,9 +24,7 @@ export function getIsCluster() {}export function getIsSelfHosting() {- return (- process.env.NEXT_PUBLIC_SELF_HOSTED === 'true' || !!process.env.SELF_HOSTED- );+ return process.env.VITE_SELF_HOSTED === 'true' || !!process.env.SELF_HOSTED;}export function getIsDry() {diff --git a/packages/db/code-migrations/migrate.ts b/packages/db/code-migrations/migrate.tsindex bbff525dc..139f9554a 100644--- a/packages/db/code-migrations/migrate.ts+++ b/packages/db/code-migrations/migrate.ts@@ -1,5 +1,10 @@import fs from 'node:fs';import path from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);import { db } from '../index';import { getIsDry, getIsSelfHosting, printBoxMessage } from './helpers';diff --git a/packages/db/package.json b/packages/db/package.jsonindex df9e98325..56826516f 100644--- a/packages/db/package.json+++ b/packages/db/package.json@@ -1,9 +1,10 @@{"name": "@openpanel/db","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {- "codegen": "pnpm with-env prisma generate",+ "codegen": "pnpm with-env prisma generate && jiti prisma/prisma-json-types.ts","migrate": "pnpm with-env prisma migrate dev","migrate:deploy:code": "pnpm with-env jiti ./code-migrations/migrate.ts","migrate:deploy:db": "pnpm with-env prisma migrate deploy",@@ -20,8 +21,8 @@"@openpanel/queue": "workspace:^","@openpanel/redis": "workspace:*","@openpanel/validation": "workspace:*",- "@prisma/client": "^5.1.1",- "@prisma/extension-read-replicas": "^0.4.0",+ "@prisma/client": "^6.14.0",+ "@prisma/extension-read-replicas": "^0.4.1","fast-deep-equal": "^3.1.3","jiti": "^2.4.1","prisma-json-types-generator": "^3.1.1",@@ -33,11 +34,11 @@},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",+ "@types/node": "catalog:","@types/ramda": "^0.29.6","@types/sqlstring": "^2.3.2","@types/uuid": "^9.0.8",- "prisma": "^5.1.1",- "typescript": "^5.2.2"+ "prisma": "^6.14.0",+ "typescript": "catalog:"}}diff --git a/packages/db/prisma/migrations/20251013121758_report_layout/migration.sql b/packages/db/prisma/migrations/20251013121758_report_layout/migration.sqlnew file mode 100644index 000000000..4030026fc--- /dev/null+++ b/packages/db/prisma/migrations/20251013121758_report_layout/migration.sql@@ -0,0 +1,29 @@+-- AlterTable+ALTER TABLE "public"."_IntegrationToNotificationRule" ADD CONSTRAINT "_IntegrationToNotificationRule_AB_pkey" PRIMARY KEY ("A", "B");++-- DropIndex+DROP INDEX "public"."_IntegrationToNotificationRule_AB_unique";++-- CreateTable+CREATE TABLE "public"."report_layouts" (+ "id" UUID NOT NULL DEFAULT gen_random_uuid(),+ "reportId" UUID NOT NULL,+ "x" INTEGER NOT NULL DEFAULT 0,+ "y" INTEGER NOT NULL DEFAULT 0,+ "w" INTEGER NOT NULL DEFAULT 4,+ "h" INTEGER NOT NULL DEFAULT 3,+ "minW" INTEGER DEFAULT 2,+ "minH" INTEGER DEFAULT 2,+ "maxW" INTEGER,+ "maxH" INTEGER,+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,+ "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,++ CONSTRAINT "report_layouts_pkey" PRIMARY KEY ("id")+);++-- CreateIndex+CREATE UNIQUE INDEX "report_layouts_reportId_key" ON "public"."report_layouts"("reportId");++-- AddForeignKey+ALTER TABLE "public"."report_layouts" ADD CONSTRAINT "report_layouts_reportId_fkey" FOREIGN KEY ("reportId") REFERENCES "public"."reports"("id") ON DELETE CASCADE ON UPDATE CASCADE;diff --git a/packages/db/prisma/migrations/migration_lock.toml b/packages/db/prisma/migrations/migration_lock.tomlindex fbffa92c2..044d57cdb 100644--- a/packages/db/prisma/migrations/migration_lock.toml+++ b/packages/db/prisma/migrations/migration_lock.toml@@ -1,3 +1,3 @@# Please do not edit this file manually-# It should be added in your version-control system (i.e. Git)-provider = "postgresql"\ No newline at end of file+# It should be added in your version-control system (e.g., Git)+provider = "postgresql"diff --git a/packages/db/prisma/prisma-json-types.ts b/packages/db/prisma/prisma-json-types.tsnew file mode 100644index 000000000..a76868835--- /dev/null+++ b/packages/db/prisma/prisma-json-types.ts@@ -0,0 +1,210 @@+import { readFileSync, readdirSync, writeFileSync } from 'node:fs';+import { join } from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);++interface JsonFieldMapping {+ model: string;+ field: string;+ type: string;+}++function parseSchemaForJsonTypes(schemaPath: string): JsonFieldMapping[] {+ const schemaContent = readFileSync(schemaPath, 'utf-8');+ const lines = schemaContent.split('\n');+ const mappings: JsonFieldMapping[] = [];++ let currentModel = '';++ for (let i = 0; i < lines.length; i++) {+ const line = lines[i]?.trim() || '';++ // Track current model+ if (line.startsWith('model ')) {+ const parts = line.split(' ');+ currentModel = parts[1] || '';+ continue;+ }++ // Look for Json fields with type comments+ if (line.includes('Json') && i > 0) {+ const prevLine = lines[i - 1]?.trim() || '';+ const typeMatch = prevLine.match(/\/\/\/ \[([^\]]+)\]/);++ if (typeMatch) {+ const fieldMatch = line.match(/(\w+)\s+Json/);+ if (fieldMatch?.[1] && typeMatch[1]) {+ mappings.push({+ model: currentModel,+ field: fieldMatch[1],+ type: typeMatch[1],+ });+ }+ }+ }+ }++ return mappings;+}++function processGeneratedFiles(+ generatedDir: string,+ mappings: JsonFieldMapping[],+): void {+ // Process the main files in the generated directory+ const mainFiles = [+ 'client.ts',+ 'commonInputTypes.ts',+ 'enums.ts',+ 'models.ts',+ ];++ for (const fileName of mainFiles) {+ const filePath = join(generatedDir, fileName);+ try {+ replaceJsonValueInFileForModel(filePath, mappings);+ } catch (error) {+ console.log(`Skipping ${filePath}: ${error}`);+ }+ }++ // Process files in the models subdirectory - each file corresponds to one model+ const modelsDir = join(generatedDir, 'models');+ try {+ const modelFiles = readdirSync(modelsDir);+ for (const fileName of modelFiles) {+ if (fileName.endsWith('.ts')) {+ const filePath = join(modelsDir, fileName);+ try {+ // Extract model name from filename (e.g., "Notification.ts" -> "Notification")+ const modelName = fileName.replace('.ts', '');++ // Only process mappings for this specific model+ const modelMappings = mappings.filter((m) => m.model === modelName);++ if (modelMappings.length > 0) {+ replaceJsonValueInFileForModel(filePath, modelMappings);+ }+ } catch (error) {+ console.log(`Skipping ${filePath}: ${error}`);+ }+ }+ }+ } catch (error) {+ console.log(`Could not read models directory: ${error}`);+ }+}++function replaceJsonValueInFileForModel(+ filePath: string,+ mappings: JsonFieldMapping[],+): void {+ let content = readFileSync(filePath, 'utf-8');+ let modified = false;++ for (const mapping of mappings) {+ // Pattern 1: Simple runtime.JsonValue replacement (for select/return types)+ const simpleJsonValueRegex = new RegExp(+ `\\b${mapping.field}:\\s*runtime\\.JsonValue\\b`,+ 'g',+ );+ if (simpleJsonValueRegex.test(content)) {+ content = content.replace(+ simpleJsonValueRegex,+ `${mapping.field}: PrismaJson.${mapping.type}`,+ );+ modified = true;+ }++ // Pattern 2: runtime.InputJsonValue with optional JsonNullValueInput (for create/update inputs)+ const inputJsonValueRegex = new RegExp(+ `\\b${mapping.field}:\\s*(?:Prisma\\.JsonNullValueInput\\s*\\|\\s*)?runtime\\.InputJsonValue\\b`,+ 'g',+ );+ if (inputJsonValueRegex.test(content)) {+ content = content.replace(+ inputJsonValueRegex,+ `${mapping.field}: PrismaJson.${mapping.type}`,+ );+ modified = true;+ }++ // Pattern 3: Optional runtime.InputJsonValue with optional JsonNullValueInput+ const optionalInputJsonValueRegex = new RegExp(+ `\\b${mapping.field}\\?:\\s*(?:Prisma\\.JsonNullValueInput\\s*\\|\\s*)?runtime\\.InputJsonValue\\b`,+ 'g',+ );+ if (optionalInputJsonValueRegex.test(content)) {+ content = content.replace(+ optionalInputJsonValueRegex,+ `${mapping.field}?: PrismaJson.${mapping.type}`,+ );+ modified = true;+ }++ // Pattern 4: Union types with JsonNullValueInput | runtime.InputJsonValue+ const unionJsonValueRegex =+ /(Prisma\.JsonNullValueInput\s*\|\s*)runtime\.InputJsonValue/g;+ if (unionJsonValueRegex.test(content)) {+ content = content.replace(+ unionJsonValueRegex,+ `$1PrismaJson.${mapping.type}`,+ );+ modified = true;+ }++ // Pattern 5: Just runtime.InputJsonValue in unions+ const simpleInputJsonValueRegex = /\|\s*runtime\.InputJsonValue/g;+ if (simpleInputJsonValueRegex.test(content)) {+ content = content.replace(+ simpleInputJsonValueRegex,+ `| PrismaJson.${mapping.type}`,+ );+ modified = true;+ }++ // Pattern 6: Optional union types with JsonNullValueInput | runtime.InputJsonValue+ const optionalUnionJsonValueRegex = new RegExp(+ `\\b${mapping.field}\\?:\\s*(?:Prisma\\.JsonNullValueInput\\s*\\|\\s*)?runtime\\.InputJsonValue\\b`,+ 'g',+ );+ if (optionalUnionJsonValueRegex.test(content)) {+ content = content.replace(+ optionalUnionJsonValueRegex,+ `${mapping.field}?: PrismaJson.${mapping.type}`,+ );+ modified = true;+ }+ }++ if (modified) {+ writeFileSync(filePath, content, 'utf-8');+ console.log(`Updated ${filePath}`);+ }+}++function main() {+ const schemaPath = join(__dirname, '../prisma/schema.prisma');+ const generatedDir = join(__dirname, '../src/generated/prisma');++ console.log('Parsing schema for Json type mappings...');+ const mappings = parseSchemaForJsonTypes(schemaPath);++ console.log('Found Json type mappings:');+ mappings.forEach((m) => console.log(` ${m.model}.${m.field} -> ${m.type}`));++ if (mappings.length === 0) {+ console.log('No mappings found!');+ return;+ }++ console.log('Processing generated files...');+ processGeneratedFiles(generatedDir, mappings);++ console.log('Post-codegen script completed!');+}++main();diff --git a/packages/db/prisma/schema.prisma b/packages/db/prisma/schema.prismaindex 7eede0702..72e45bd81 100644--- a/packages/db/prisma/schema.prisma+++ b/packages/db/prisma/schema.prisma@@ -2,12 +2,16 @@// learn more about it in the docs: https://pris.ly/d/prisma-schemagenerator client {- provider = "prisma-client-js"+ provider = "prisma-client"+ output = "../src/generated/prisma"+ moduleFormat = "esm"+ generatedFileExtension = "ts"+ importFileExtension = "ts"}-generator json {- provider = "prisma-json-types-generator"-}+// generator json {+// provider = "prisma-json-types-generator"+// }datasource db {provider = "postgresql"@@ -315,7 +319,8 @@ model Report {funnelWindow Float?dashboardId String- dashboard Dashboard @relation(fields: [dashboardId], references: [id], onDelete: Cascade)+ dashboard Dashboard @relation(fields: [dashboardId], references: [id], onDelete: Cascade)+ layout ReportLayout?createdAt DateTime @default(now())updatedAt DateTime @default(now()) @updatedAt@@ -323,6 +328,29 @@ model Report {@@map("reports")}+model ReportLayout {+ id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid+ reportId String @unique @db.Uuid+ report Report @relation(fields: [reportId], references: [id], onDelete: Cascade)++ // Grid position and size+ x Int @default(0)+ y Int @default(0)+ w Int @default(4)+ h Int @default(3)++ // Optional: store additional layout preferences+ minW Int? @default(2)+ minH Int? @default(2)+ maxW Int?+ maxH Int?++ createdAt DateTime @default(now())+ updatedAt DateTime @default(now()) @updatedAt++ @@map("report_layouts")+}+model ShareOverview {id String @uniqueprojectId String @uniquediff --git a/packages/db/src/clickhouse/client.ts b/packages/db/src/clickhouse/client.tsindex 79227c802..b363cb44e 100644--- a/packages/db/src/clickhouse/client.ts+++ b/packages/db/src/clickhouse/client.ts@@ -1,6 +1,6 @@import type { ClickHouseSettings, ResponseJSON } from '@clickhouse/client';import { ClickHouseLogLevel, createClient } from '@clickhouse/client';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import type { NodeClickHouseClientConfigOptions } from '@clickhouse/client/dist/config';import { createLogger } from '@openpanel/logger';@@ -201,14 +201,14 @@ export function toDate(str: string, interval?: IInterval) {// If it does not match the regex it's a column name eg 'created_at'if (!interval || interval === 'minute' || interval === 'hour') {if (str.match(/\d{4}-\d{2}-\d{2}/)) {- return escape(str);+ return sqlstring.escape(str);}return str;}if (str.match(/\d{4}-\d{2}-\d{2}/)) {- return `toDate(${escape(str.split(' ')[0])})`;+ return `toDate(${sqlstring.escape(str.split(' ')[0])})`;}return `toDate(${str})`;diff --git a/packages/db/src/clickhouse/query-builder.ts b/packages/db/src/clickhouse/query-builder.tsindex 67da224f8..789422789 100644--- a/packages/db/src/clickhouse/query-builder.ts+++ b/packages/db/src/clickhouse/query-builder.ts@@ -1,6 +1,6 @@import type { ClickHouseClient, ResponseJSON } from '@clickhouse/client';import type { IInterval } from '@openpanel/validation';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';type SqlValue = string | number | boolean | Date | null | Expression;type SqlParam = SqlValue | SqlValue[];@@ -133,7 +133,7 @@ export class Query<T = any> {return this.escapeDate(value);}- return escape(value);+ return sqlstring.escape(value);}where(column: string, operator: Operator, value?: SqlParam): this {@@ -258,11 +258,11 @@ export class Query<T = any> {private escapeDate(value: string | Date): string {if (value instanceof Date) {- return escape(clix.datetime(value));+ return sqlstring.escape(clix.datetime(value));}return value.replaceAll(this._dateRegex, (match) => {- return escape(match);+ return sqlstring.escape(match);});}diff --git a/packages/db/src/generated/empty b/packages/db/src/generated/emptynew file mode 100644index 000000000..e69de29bbdiff --git a/packages/db/src/prisma-client.ts b/packages/db/src/prisma-client.tsindex 675a197a3..e7e2d86ad 100644--- a/packages/db/src/prisma-client.ts+++ b/packages/db/src/prisma-client.ts@@ -1,8 +1,8 @@import { createLogger } from '@openpanel/logger';-import { type Organization, PrismaClient } from '@prisma/client';import { readReplicas } from '@prisma/extension-read-replicas';+import { type Organization, PrismaClient } from './generated/prisma/client';-export * from '@prisma/client';+export * from './generated/prisma/client';const logger = createLogger({ name: 'db' });@@ -59,7 +59,7 @@ const getPrismaClient = () => {subscriptionStatus: {needs: { subscriptionStatus: true, subscriptionCanceledAt: true },compute(org) {- if (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true') {+ if (process.env.VITE_SELF_HOSTED === 'true') {return 'active';}@@ -69,7 +69,7 @@ const getPrismaClient = () => {hasSubscription: {needs: { subscriptionStatus: true, subscriptionEndsAt: true },compute(org) {- if (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true') {+ if (process.env.VITE_SELF_HOSTED === 'true') {return false;}@@ -94,7 +94,7 @@ const getPrismaClient = () => {subscriptionPeriodEventsCountExceededAt: true,},compute(org) {- if (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true') {+ if (process.env.VITE_SELF_HOSTED === 'true') {return null;}@@ -131,7 +131,7 @@ const getPrismaClient = () => {isCanceled: {needs: { subscriptionStatus: true, subscriptionCanceledAt: true },compute(org) {- if (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true') {+ if (process.env.VITE_SELF_HOSTED === 'true') {return false;}@@ -145,7 +145,7 @@ const getPrismaClient = () => {subscriptionEndsAt: true,},compute(org) {- if (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true') {+ if (process.env.VITE_SELF_HOSTED === 'true') {return false;}@@ -159,7 +159,7 @@ const getPrismaClient = () => {subscriptionCanceledAt: true,},compute(org) {- if (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true') {+ if (process.env.VITE_SELF_HOSTED === 'true') {return false;}@@ -182,7 +182,7 @@ const getPrismaClient = () => {subscriptionPeriodEventsLimit: true,},compute(org) {- if (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true') {+ if (process.env.VITE_SELF_HOSTED === 'true') {return false;}@@ -195,7 +195,7 @@ const getPrismaClient = () => {subscriptionCurrentPeriodStart: {needs: { subscriptionStartsAt: true, subscriptionInterval: true },compute(org) {- if (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true') {+ if (process.env.VITE_SELF_HOSTED === 'true') {return null;}@@ -229,7 +229,7 @@ const getPrismaClient = () => {subscriptionInterval: true,},compute(org) {- if (process.env.NEXT_PUBLIC_SELF_HOSTED === 'true') {+ if (process.env.VITE_SELF_HOSTED === 'true') {return null;}diff --git a/packages/db/src/services/chart.service.ts b/packages/db/src/services/chart.service.tsindex 38c7813e0..9deca5d3c 100644--- a/packages/db/src/services/chart.service.ts+++ b/packages/db/src/services/chart.service.ts@@ -1,4 +1,4 @@-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { DateTime, stripLeadingAndTrailingSlashes } from '@openpanel/common';import type {@@ -45,7 +45,7 @@ export function getSelectPropertyKey(property: string) {if (!match) return property;if (property.includes('*')) {- return `arrayMap(x -> trim(x), mapValues(mapExtractKeyLike(${match}, ${escape(+ return `arrayMap(x -> trim(x), mapValues(mapExtractKeyLike(${match}, ${sqlstring.escape(transformPropertyKey(property),)})))`;}@@ -76,11 +76,11 @@ export function getChartSql({} = createSqlBuilder();sb.where = getEventFiltersWhereClause(event.filters);- sb.where.projectId = `project_id = ${escape(projectId)}`;+ sb.where.projectId = `project_id = ${sqlstring.escape(projectId)}`;if (event.name !== '*') {- sb.select.label_0 = `${escape(event.name)} as label_0`;- sb.where.eventName = `name = ${escape(event.name)}`;+ sb.select.label_0 = `${sqlstring.escape(event.name)} as label_0`;+ sb.where.eventName = `name = ${sqlstring.escape(event.name)}`;} else {sb.select.label_0 = `'*' as label_0`;}@@ -99,7 +99,7 @@ export function getChartSql({first_name as "profile.first_name",last_name as "profile.last_name",properties as "profile.properties"- FROM ${TABLE_NAMES.profiles} FINAL WHERE project_id = ${escape(projectId)}) as profile on profile.id = profile_id`;+ FROM ${TABLE_NAMES.profiles} FINAL WHERE project_id = ${sqlstring.escape(projectId)}) as profile on profile.id = profile_id`;}sb.select.count = 'count(*) as count';@@ -251,14 +251,15 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {case 'is': {if (isWildcard) {where[id] = `arrayExists(x -> ${value- .map((val) => `x = ${escape(String(val).trim())}`)+ .map((val) => `x = ${sqlstring.escape(String(val).trim())}`).join(' OR ')}, ${whereFrom})`;} else {if (value.length === 1) {- where[id] = `${whereFrom} = ${escape(String(value[0]).trim())}`;+ where[id] =+ `${whereFrom} = ${sqlstring.escape(String(value[0]).trim())}`;} else {where[id] = `${whereFrom} IN (${value- .map((val) => escape(String(val).trim()))+ .map((val) => sqlstring.escape(String(val).trim())).join(', ')})`;}}@@ -267,14 +268,15 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {case 'isNot': {if (isWildcard) {where[id] = `arrayExists(x -> ${value- .map((val) => `x != ${escape(String(val).trim())}`)+ .map((val) => `x != ${sqlstring.escape(String(val).trim())}`).join(' OR ')}, ${whereFrom})`;} else {if (value.length === 1) {- where[id] = `${whereFrom} != ${escape(String(value[0]).trim())}`;+ where[id] =+ `${whereFrom} != ${sqlstring.escape(String(value[0]).trim())}`;} else {where[id] = `${whereFrom} NOT IN (${value- .map((val) => escape(String(val).trim()))+ .map((val) => sqlstring.escape(String(val).trim())).join(', ')})`;}}@@ -283,13 +285,16 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {case 'contains': {if (isWildcard) {where[id] = `arrayExists(x -> ${value- .map((val) => `x LIKE ${escape(`%${String(val).trim()}%`)}`)+ .map(+ (val) =>+ `x LIKE ${sqlstring.escape(`%${String(val).trim()}%`)}`,+ ).join(' OR ')}, ${whereFrom})`;} else {where[id] = `(${value.map((val) =>- `${whereFrom} LIKE ${escape(`%${String(val).trim()}%`)}`,+ `${whereFrom} LIKE ${sqlstring.escape(`%${String(val).trim()}%`)}`,).join(' OR ')})`;}@@ -298,13 +303,16 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {case 'doesNotContain': {if (isWildcard) {where[id] = `arrayExists(x -> ${value- .map((val) => `x NOT LIKE ${escape(`%${String(val).trim()}%`)}`)+ .map(+ (val) =>+ `x NOT LIKE ${sqlstring.escape(`%${String(val).trim()}%`)}`,+ ).join(' OR ')}, ${whereFrom})`;} else {where[id] = `(${value.map((val) =>- `${whereFrom} NOT LIKE ${escape(`%${String(val).trim()}%`)}`,+ `${whereFrom} NOT LIKE ${sqlstring.escape(`%${String(val).trim()}%`)}`,).join(' OR ')})`;}@@ -313,13 +321,15 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {case 'startsWith': {if (isWildcard) {where[id] = `arrayExists(x -> ${value- .map((val) => `x LIKE ${escape(`${String(val).trim()}%`)}`)+ .map(+ (val) => `x LIKE ${sqlstring.escape(`${String(val).trim()}%`)}`,+ ).join(' OR ')}, ${whereFrom})`;} else {where[id] = `(${value.map((val) =>- `${whereFrom} LIKE ${escape(`${String(val).trim()}%`)}`,+ `${whereFrom} LIKE ${sqlstring.escape(`${String(val).trim()}%`)}`,).join(' OR ')})`;}@@ -328,13 +338,15 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {case 'endsWith': {if (isWildcard) {where[id] = `arrayExists(x -> ${value- .map((val) => `x LIKE ${escape(`%${String(val).trim()}`)}`)+ .map(+ (val) => `x LIKE ${sqlstring.escape(`%${String(val).trim()}`)}`,+ ).join(' OR ')}, ${whereFrom})`;} else {where[id] = `(${value.map((val) =>- `${whereFrom} LIKE ${escape(`%${String(val).trim()}`)}`,+ `${whereFrom} LIKE ${sqlstring.escape(`%${String(val).trim()}`)}`,).join(' OR ')})`;}@@ -343,12 +355,13 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {case 'regex': {if (isWildcard) {where[id] = `arrayExists(x -> ${value- .map((val) => `match(x, ${escape(String(val).trim())})`)+ .map((val) => `match(x, ${sqlstring.escape(String(val).trim())})`).join(' OR ')}, ${whereFrom})`;} else {where[id] = `(${value.map(- (val) => `match(${whereFrom}, ${escape(String(val).trim())})`,+ (val) =>+ `match(${whereFrom}, ${sqlstring.escape(String(val).trim())})`,).join(' OR ')})`;}@@ -376,10 +389,11 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {switch (operator) {case 'is': {if (value.length === 1) {- where[id] = `${name} = ${escape(String(value[0]).trim())}`;+ where[id] =+ `${name} = ${sqlstring.escape(String(value[0]).trim())}`;} else {where[id] = `${name} IN (${value- .map((val) => escape(String(val).trim()))+ .map((val) => sqlstring.escape(String(val).trim())).join(', ')})`;}break;@@ -394,37 +408,48 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {}case 'isNot': {if (value.length === 1) {- where[id] = `${name} != ${escape(String(value[0]).trim())}`;+ where[id] =+ `${name} != ${sqlstring.escape(String(value[0]).trim())}`;} else {where[id] = `${name} NOT IN (${value- .map((val) => escape(String(val).trim()))+ .map((val) => sqlstring.escape(String(val).trim())).join(', ')})`;}break;}case 'contains': {where[id] = `(${value- .map((val) => `${name} LIKE ${escape(`%${String(val).trim()}%`)}`)+ .map(+ (val) =>+ `${name} LIKE ${sqlstring.escape(`%${String(val).trim()}%`)}`,+ ).join(' OR ')})`;break;}case 'doesNotContain': {where[id] = `(${value.map(- (val) => `${name} NOT LIKE ${escape(`%${String(val).trim()}%`)}`,+ (val) =>+ `${name} NOT LIKE ${sqlstring.escape(`%${String(val).trim()}%`)}`,).join(' OR ')})`;break;}case 'startsWith': {where[id] = `(${value- .map((val) => `${name} LIKE ${escape(`${String(val).trim()}%`)}`)+ .map(+ (val) =>+ `${name} LIKE ${sqlstring.escape(`${String(val).trim()}%`)}`,+ ).join(' OR ')})`;break;}case 'endsWith': {where[id] = `(${value- .map((val) => `${name} LIKE ${escape(`%${String(val).trim()}`)}`)+ .map(+ (val) =>+ `${name} LIKE ${sqlstring.escape(`%${String(val).trim()}`)}`,+ ).join(' OR ')})`;break;}@@ -432,7 +457,7 @@ export function getEventFiltersWhereClause(filters: IChartEventFilter[]) {where[id] = `(${value.map((val) =>- `match(${name}, ${escape(stripLeadingAndTrailingSlashes(String(val)).trim())})`,+ `match(${name}, ${sqlstring.escape(stripLeadingAndTrailingSlashes(String(val)).trim())})`,).join(' OR ')})`;break;diff --git a/packages/db/src/services/event.service.ts b/packages/db/src/services/event.service.tsindex 8a018d37a..c146904c6 100644--- a/packages/db/src/services/event.service.ts+++ b/packages/db/src/services/event.service.ts@@ -1,5 +1,5 @@import { path, assocPath, last, mergeDeepRight } from 'ramda';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { v4 as uuid } from 'uuid';import { DateTime, toDots } from '@openpanel/common';@@ -17,10 +17,17 @@ import {import { type Query, clix } from '../clickhouse/query-builder';import type { EventMeta, Prisma } from '../prisma-client';import { db } from '../prisma-client';-import { createSqlBuilder } from '../sql-builder';+import { type SqlBuilderObject, createSqlBuilder } from '../sql-builder';import { getEventFiltersWhereClause } from './chart.service';+import { getOrganizationByProjectIdCached } from './organization.service';import type { IServiceProfile, IServiceUpsertProfile } from './profile.service';-import { getProfileById, getProfiles, upsertProfile } from './profile.service';+import {+ getProfileById,+ getProfileByIdCached,+ getProfiles,+ getProfilesCached,+ upsertProfile,+} from './profile.service';export type IImportedEvent = Omit<IClickhouseEvent,@@ -258,7 +265,7 @@ export async function getEvents(const ids = events.filter((e) => e.device_id !== e.profile_id).map((e) => e.profile_id);- const profiles = await getProfiles(ids, projectId);+ const profiles = await getProfilesCached(ids, projectId);const map = new Map<string, IServiceProfile>();for (const profile of profiles) {@@ -266,7 +273,17 @@ export async function getEvents(}for (const event of events) {- event.profile = map.get(event.profile_id);+ event.profile = map.get(event.profile_id) ?? {+ id: event.profile_id,+ email: '',+ avatar: '',+ firstName: '',+ lastName: '',+ createdAt: new Date(),+ projectId,+ isExternal: false,+ properties: {},+ };}}@@ -365,6 +382,7 @@ export async function createEvent(payload: IServiceCreateEventPayload) {export interface GetEventListOptions {projectId: string;profileId?: string;+ sessionId?: string;take: number;cursor?: number | Date;events?: string[] | null;@@ -372,29 +390,46 @@ export interface GetEventListOptions {startDate?: Date;endDate?: Date;select?: SelectHelper<IServiceEvent>;+ custom?: (sb: SqlBuilderObject) => void;}-export async function getEventList({- cursor,- take,- projectId,- profileId,- events,- filters,- startDate,- endDate,- select: incomingSelect,-}: GetEventListOptions) {+export async function getEventList(options: GetEventListOptions) {+ const {+ cursor,+ take,+ projectId,+ profileId,+ sessionId,+ events,+ filters,+ startDate,+ endDate,+ select: incomingSelect,+ custom,+ } = options;const { sb, getSql, join } = createSqlBuilder();+ const organization = await getOrganizationByProjectIdCached(projectId);+ // This will speed up the query quite a lot for big organizations+ const dateIntervalInDays =+ organization?.subscriptionPeriodEventsLimit &&+ organization?.subscriptionPeriodEventsLimit > 1_000_000+ ? 1+ : 7;+if (typeof cursor === 'number') {sb.offset = Math.max(0, (cursor ?? 0) * take);} else if (cursor instanceof Date) {- sb.where.cursor = `created_at <= '${formatClickhouseDate(cursor)}'`;+ sb.where.cursorWindow = `created_at >= toDateTime64(${sqlstring.escape(formatClickhouseDate(cursor))}, 3) - INTERVAL ${dateIntervalInDays} DAY`;+ sb.where.cursor = `created_at <= ${sqlstring.escape(formatClickhouseDate(cursor))}`;+ }++ if (!cursor) {+ sb.where.cursorWindow = `created_at >= toDateTime64(${sqlstring.escape(formatClickhouseDate(new Date()))}, 3) - INTERVAL ${dateIntervalInDays} DAY`;}sb.limit = take;- sb.where.projectId = `project_id = ${escape(projectId)}`;+ sb.where.projectId = `project_id = ${sqlstring.escape(projectId)}`;const select = mergeDeepRight({id: true,@@ -503,7 +538,11 @@ export async function getEventList({}if (profileId) {- sb.where.deviceId = `(device_id IN (SELECT device_id as did FROM ${TABLE_NAMES.events} WHERE project_id = ${escape(projectId)} AND device_id != '' AND profile_id = ${escape(profileId)} group by did) OR profile_id = ${escape(profileId)})`;+ sb.where.deviceId = `(device_id IN (SELECT device_id as did FROM ${TABLE_NAMES.events} WHERE project_id = ${sqlstring.escape(projectId)} AND device_id != '' AND profile_id = ${sqlstring.escape(profileId)} group by did) OR profile_id = ${sqlstring.escape(profileId)})`;+ }++ if (sessionId) {+ sb.where.sessionId = `session_id = ${sqlstring.escape(sessionId)}`;}if (startDate && endDate) {@@ -527,10 +566,29 @@ export async function getEventList({sb.orderBy.created_at ='toDate(created_at) DESC, created_at DESC, profile_id DESC, name DESC';- return getEvents(getSql(), {+ if (custom) {+ custom(sb);+ }++ console.log('getSql()', getSql());++ const data = await getEvents(getSql(), {profile: select.profile ?? true,meta: select.meta ?? true,});++ // If we dont get any events, try without the cursor window+ if (data.length === 0 && sb.where.cursorWindow) {+ return getEventList({+ ...options,+ custom(sb) {+ options.custom?.(sb);+ delete sb.where.cursorWindow;+ },+ });+ }++ return data;}export const getEventsCountCached = cacheable(getEventsCount, 60 * 10);@@ -543,9 +601,9 @@ export async function getEventsCount({endDate,}: Omit<GetEventListOptions, 'cursor' | 'take'>) {const { sb, getSql, join } = createSqlBuilder();- sb.where.projectId = `project_id = ${escape(projectId)}`;+ sb.where.projectId = `project_id = ${sqlstring.escape(projectId)}`;if (profileId) {- sb.where.profileId = `profile_id = ${escape(profileId)}`;+ sb.where.profileId = `profile_id = ${sqlstring.escape(profileId)}`;}if (startDate && endDate) {@@ -614,7 +672,7 @@ export async function getTopPages({SELECT path, count(*) as count, project_id, first_value(created_at) as first_seen, last_value(properties['__title']) as title, originFROM ${TABLE_NAMES.events}WHERE name = 'screen_view'- AND project_id = ${escape(projectId)}+ AND project_id = ${sqlstring.escape(projectId)}AND created_at > now() - INTERVAL 30 DAY${search ? `AND path ILIKE '%${search}%'` : ''}GROUP BY path, project_id, origin@@ -824,36 +882,43 @@ class EventService {id: string;createdAt?: Date;}) {- const event = await clix(this.client)- .select<IClickhouseEvent>(['*'])- .from('events')- .where('project_id', '=', projectId)- .when(!!createdAt, (q) => {- if (createdAt) {- q.where('created_at', 'BETWEEN', [- new Date(createdAt.getTime() - 1000),- new Date(createdAt.getTime() + 1000),- ]);- }- })- .where('id', '=', id)- .limit(1)- .execute()- .then((res) => {- if (!res[0]) {- return null;- }+ const [event, metas] = await Promise.all([+ clix(this.client)+ .select<IClickhouseEvent>(['*'])+ .from('events')+ .where('project_id', '=', projectId)+ .when(!!createdAt, (q) => {+ if (createdAt) {+ q.where('created_at', 'BETWEEN', [+ new Date(createdAt.getTime() - 1000),+ new Date(createdAt.getTime() + 1000),+ ]);+ }+ })+ .where('id', '=', id)+ .limit(1)+ .execute()+ .then((res) => {+ if (!res[0]) {+ return null;+ }- return transformEvent(res[0]);- });+ return transformEvent(res[0]);+ }),+ getEventMetasCached(projectId),+ ]);if (event?.profileId) {- const profile = await getProfileById(event?.profileId, projectId);+ const profile = await getProfileByIdCached(event?.profileId, projectId);if (profile) {event.profile = profile;}}+ if (event) {+ event.meta = metas.find((meta) => meta.name === event.name);+ }+return event;}diff --git a/packages/db/src/services/funnel.service.ts b/packages/db/src/services/funnel.service.tsindex 04f74bdad..e60b08e6d 100644--- a/packages/db/src/services/funnel.service.ts+++ b/packages/db/src/services/funnel.service.ts@@ -1,7 +1,7 @@import { ifNaN } from '@openpanel/common';import type { IChartEvent, IChartInput } from '@openpanel/validation';import { last, reverse } from 'ramda';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { ch } from '../clickhouse/client';import { TABLE_NAMES } from '../clickhouse/client';import { clix } from '../clickhouse/query-builder';@@ -24,7 +24,7 @@ export class FunnelService {return events.map((event) => {const { sb, getWhere } = createSqlBuilder();sb.where = getEventFiltersWhereClause(event.filters);- sb.where.name = `name = ${escape(event.name)}`;+ sb.where.name = `name = ${sqlstring.escape(event.name)}`;return getWhere().replace('WHERE ', '');});}diff --git a/packages/db/src/services/organization.service.ts b/packages/db/src/services/organization.service.tsindex bc4a582b7..e20c6185b 100644--- a/packages/db/src/services/organization.service.ts+++ b/packages/db/src/services/organization.service.ts@@ -1,6 +1,6 @@import { DateTime } from '@openpanel/common';import { cacheable } from '@openpanel/redis';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { chQuery, formatClickhouseDate } from '../clickhouse/client';import type { Invite, Prisma, ProjectAccess, User } from '../prisma-client';import { db } from '../prisma-client';@@ -69,11 +69,14 @@ export async function getInvites(organizationId: string) {where: {organizationId,},+ orderBy: {+ createdAt: 'desc',+ },});}-export function getInviteById(inviteId: string) {- return db.invite.findUnique({+export async function getInviteById(inviteId: string) {+ const res = await db.invite.findUnique({where: {id: inviteId,},@@ -86,6 +89,11 @@ export function getInviteById(inviteId: string) {},},});++ return {+ ...res,+ isExpired: res?.expiresAt && res.expiresAt < new Date(),+ };}export async function getMembers(organizationId: string) {@@ -201,8 +209,8 @@ export async function getOrganizationBillingEventsCount(const { sb, getSql } = createSqlBuilder();sb.select.count = 'COUNT(*) AS count';- sb.where.projectIds = `project_id IN (${organization.projects.map((project) => escape(project.id)).join(',')})`;- sb.where.createdAt = `created_at BETWEEN ${escape(formatClickhouseDate(organization.subscriptionCurrentPeriodStart))} AND ${escape(formatClickhouseDate(organization.subscriptionCurrentPeriodEnd))}`;+ sb.where.projectIds = `project_id IN (${organization.projects.map((project) => sqlstring.escape(project.id)).join(',')})`;+ sb.where.createdAt = `created_at BETWEEN ${sqlstring.escape(formatClickhouseDate(organization.subscriptionCurrentPeriodStart))} AND ${sqlstring.escape(formatClickhouseDate(organization.subscriptionCurrentPeriodEnd))}`;const res = await chQuery<{ count: number }>(getSql());return res[0]?.count;@@ -224,9 +232,9 @@ export async function getOrganizationBillingEventsCountSerie(sb.select.count = 'COUNT(*) AS count';sb.select.day = `toDate(toStartOf${interval.slice(0, 1).toUpperCase() + interval.slice(1)}(created_at)) AS ${interval}`;sb.groupBy.day = interval;- sb.orderBy.day = `${interval} WITH FILL FROM toDate(${escape(formatClickhouseDate(startDate, true))}) TO toDate(${escape(formatClickhouseDate(endDate, true))}) STEP INTERVAL 1 ${interval.toUpperCase()}`;- sb.where.projectIds = `project_id IN (${organization.projects.map((project) => escape(project.id)).join(',')})`;- sb.where.createdAt = `${interval} BETWEEN ${escape(formatClickhouseDate(startDate, true))} AND ${escape(formatClickhouseDate(endDate, true))}`;+ sb.orderBy.day = `${interval} WITH FILL FROM toDate(${sqlstring.escape(formatClickhouseDate(startDate, true))}) TO toDate(${sqlstring.escape(formatClickhouseDate(endDate, true))}) STEP INTERVAL 1 ${interval.toUpperCase()}`;+ sb.where.projectIds = `project_id IN (${organization.projects.map((project) => sqlstring.escape(project.id)).join(',')})`;+ sb.where.createdAt = `${interval} BETWEEN ${sqlstring.escape(formatClickhouseDate(startDate, true))} AND ${sqlstring.escape(formatClickhouseDate(endDate, true))}`;const res = await chQuery<{ count: number; day: string }>(getSql());return res;diff --git a/packages/db/src/services/profile.service.ts b/packages/db/src/services/profile.service.tsindex bb7e152fb..c9a49bf29 100644--- a/packages/db/src/services/profile.service.ts+++ b/packages/db/src/services/profile.service.ts@@ -1,5 +1,5 @@import { omit, uniq } from 'ramda';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { strip, toObject } from '@openpanel/common';import { cacheable } from '@openpanel/redis';@@ -21,25 +21,69 @@ export type IProfileMetrics = {sessions: number;durationAvg: number;durationP90: number;+ totalEvents: number;+ uniqueDaysActive: number;+ bounceRate: number;+ avgEventsPerSession: number;+ conversionEvents: number;+ avgTimeBetweenSessions: number;};export function getProfileMetrics(profileId: string, projectId: string) {return chQuery<IProfileMetrics>(`WITH lastSeen AS (- SELECT max(created_at) as lastSeen FROM ${TABLE_NAMES.events} WHERE profile_id = ${escape(profileId)} AND project_id = ${escape(projectId)}+ SELECT max(created_at) as lastSeen FROM ${TABLE_NAMES.events} WHERE profile_id = ${sqlstring.escape(profileId)} AND project_id = ${sqlstring.escape(projectId)}),firstSeen AS (- SELECT min(created_at) as firstSeen FROM ${TABLE_NAMES.events} WHERE profile_id = ${escape(profileId)} AND project_id = ${escape(projectId)}+ SELECT min(created_at) as firstSeen FROM ${TABLE_NAMES.events} WHERE profile_id = ${sqlstring.escape(profileId)} AND project_id = ${sqlstring.escape(projectId)}),screenViews AS (- SELECT count(*) as screenViews FROM ${TABLE_NAMES.events} WHERE name = 'screen_view' AND profile_id = ${escape(profileId)} AND project_id = ${escape(projectId)}+ SELECT count(*) as screenViews FROM ${TABLE_NAMES.events} WHERE name = 'screen_view' AND profile_id = ${sqlstring.escape(profileId)} AND project_id = ${sqlstring.escape(projectId)}),sessions AS (- SELECT count(*) as sessions FROM ${TABLE_NAMES.events} WHERE name = 'session_start' AND profile_id = ${escape(profileId)} AND project_id = ${escape(projectId)}+ SELECT count(*) as sessions FROM ${TABLE_NAMES.events} WHERE name = 'session_start' AND profile_id = ${sqlstring.escape(profileId)} AND project_id = ${sqlstring.escape(projectId)}),duration AS (- SELECT avg(duration) as durationAvg, quantilesExactInclusive(0.9)(duration)[1] as durationP90 FROM ${TABLE_NAMES.events} WHERE name = 'session_end' AND duration != 0 AND profile_id = ${escape(profileId)} AND project_id = ${escape(projectId)}+ SELECT+ round(avg(duration) / 1000 / 60, 2) as durationAvg,+ round(quantilesExactInclusive(0.9)(duration)[1] / 1000 / 60, 2) as durationP90+ FROM ${TABLE_NAMES.events}+ WHERE name = 'session_end' AND duration != 0 AND profile_id = ${sqlstring.escape(profileId)} AND project_id = ${sqlstring.escape(projectId)}+ ),+ totalEvents AS (+ SELECT count(*) as totalEvents FROM ${TABLE_NAMES.events} WHERE profile_id = ${sqlstring.escape(profileId)} AND project_id = ${sqlstring.escape(projectId)}+ ),+ uniqueDaysActive AS (+ SELECT count(DISTINCT toDate(created_at)) as uniqueDaysActive FROM ${TABLE_NAMES.events} WHERE profile_id = ${sqlstring.escape(profileId)} AND project_id = ${sqlstring.escape(projectId)}+ ),+ bounceRate AS (+ SELECT round(avg(properties['__bounce'] = '1') * 100, 4) as bounceRate FROM ${TABLE_NAMES.events} WHERE name = 'session_end' AND profile_id = ${sqlstring.escape(profileId)} AND project_id = ${sqlstring.escape(projectId)}+ ),+ avgEventsPerSession AS (+ SELECT round((SELECT totalEvents FROM totalEvents) / nullIf((SELECT sessions FROM sessions), 0), 2) as avgEventsPerSession+ ),+ conversionEvents AS (+ SELECT count(*) as conversionEvents FROM ${TABLE_NAMES.events} WHERE name NOT IN ('screen_view', 'session_start', 'session_end') AND profile_id = ${sqlstring.escape(profileId)} AND project_id = ${sqlstring.escape(projectId)}+ ),+ avgTimeBetweenSessions AS (+ SELECT+ CASE+ WHEN (SELECT sessions FROM sessions) <= 1 THEN 0+ ELSE round(dateDiff('second', (SELECT firstSeen FROM firstSeen), (SELECT lastSeen FROM lastSeen)) / nullIf((SELECT sessions FROM sessions) - 1, 0), 1)+ END as avgTimeBetweenSessions)- SELECT lastSeen, firstSeen, screenViews, sessions, durationAvg, durationP90 FROM lastSeen, firstSeen, screenViews,sessions, duration+ SELECT+ (SELECT lastSeen FROM lastSeen) as lastSeen,+ (SELECT firstSeen FROM firstSeen) as firstSeen,+ (SELECT screenViews FROM screenViews) as screenViews,+ (SELECT sessions FROM sessions) as sessions,+ (SELECT durationAvg FROM duration) as durationAvg,+ (SELECT durationP90 FROM duration) as durationP90,+ (SELECT totalEvents FROM totalEvents) as totalEvents,+ (SELECT uniqueDaysActive FROM uniqueDaysActive) as uniqueDaysActive,+ (SELECT bounceRate FROM bounceRate) as bounceRate,+ (SELECT avgEventsPerSession FROM avgEventsPerSession) as avgEventsPerSession,+ (SELECT conversionEvents FROM conversionEvents) as conversionEvents,+ (SELECT avgTimeBetweenSessions FROM avgTimeBetweenSessions) as avgTimeBetweenSessions`).then((data) => data[0]!);}@@ -59,7 +103,7 @@ export async function getProfileById(id: string, projectId: string) {last_value(is_external) as is_external,last_value(properties) as properties,last_value(created_at) as created_at- FROM ${TABLE_NAMES.profiles} FINAL WHERE id = ${escape(String(id))} AND project_id = ${escape(projectId)} GROUP BY id, project_id ORDER BY created_at DESC LIMIT 1`,+ FROM ${TABLE_NAMES.profiles} FINAL WHERE id = ${sqlstring.escape(String(id))} AND project_id = ${sqlstring.escape(projectId)} GROUP BY id, project_id ORDER BY created_at DESC LIMIT 1`,);if (!profile) {@@ -77,6 +121,7 @@ interface GetProfileListOptions {cursor?: number;filters?: IChartEventFilter[];search?: string;+ isExternal?: boolean;}export async function getProfiles(ids: string[], projectId: string) {@@ -99,8 +144,8 @@ export async function getProfiles(ids: string[], projectId: string) {any(created_at) as created_atFROM ${TABLE_NAMES.profiles}WHERE- project_id = ${escape(projectId)} AND- id IN (${filteredIds.map((id) => escape(id)).join(',')})+ project_id = ${sqlstring.escape(projectId)} AND+ id IN (${filteredIds.map((id) => sqlstring.escape(id)).join(',')})GROUP BY id, project_id`,);@@ -108,36 +153,48 @@ export async function getProfiles(ids: string[], projectId: string) {return data.map(transformProfile);}+export const getProfilesCached = cacheable(getProfiles, 60 * 5);+export async function getProfileList({take,cursor,projectId,- filters,search,+ isExternal,}: GetProfileListOptions) {const { sb, getSql } = createSqlBuilder();sb.from = `${TABLE_NAMES.profiles} FINAL`;sb.select.all = '*';- sb.where.project_id = `project_id = ${escape(projectId)}`;+ sb.where.project_id = `project_id = ${sqlstring.escape(projectId)}`;sb.limit = take;sb.offset = Math.max(0, (cursor ?? 0) * take);sb.orderBy.created_at = 'created_at DESC';if (search) {sb.where.search = `(email ILIKE '%${search}%' OR first_name ILIKE '%${search}%' OR last_name ILIKE '%${search}%')`;}+ if (isExternal !== undefined) {+ sb.where.external = `is_external = ${isExternal ? 'true' : 'false'}`;+ }const data = await chQuery<IClickhouseProfile>(getSql());return data.map(transformProfile);}export async function getProfileListCount({projectId,- filters,+ isExternal,+ search,}: Omit<GetProfileListOptions, 'cursor' | 'take'>) {const { sb, getSql } = createSqlBuilder();sb.from = 'profiles';sb.select.count = 'count(id) as count';- sb.where.project_id = `project_id = ${escape(projectId)}`;+ sb.where.project_id = `project_id = ${sqlstring.escape(projectId)}`;sb.groupBy.project_id = 'project_id';+ if (search) {+ sb.where.search = `(email ILIKE '%${search}%' OR first_name ILIKE '%${search}%' OR last_name ILIKE '%${search}%')`;+ }+ if (isExternal !== undefined) {+ sb.where.external = `is_external = ${isExternal ? 'true' : 'false'}`;+ }const data = await chQuery<{ count: number }>(getSql());return data[0]?.count ?? 0;}diff --git a/packages/db/src/services/project.service.ts b/packages/db/src/services/project.service.tsindex 2dffdb170..ab5fded4b 100644--- a/packages/db/src/services/project.service.ts+++ b/packages/db/src/services/project.service.ts@@ -1,5 +1,5 @@import { cacheable } from '@openpanel/redis';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { TABLE_NAMES, chQuery } from '../clickhouse/client';import type { Prisma, Project } from '../prisma-client';import { db } from '../prisma-client';@@ -50,7 +50,7 @@ export async function getProjectsByOrganizationId(organizationId: string) {organizationId,},orderBy: {- createdAt: 'desc',+ eventsCount: 'desc',},});}@@ -104,7 +104,7 @@ export async function getProjects({export const getProjectEventsCount = async (projectId: string) => {const res = await chQuery<{ count: number }>(- `SELECT count(*) as count FROM ${TABLE_NAMES.events} WHERE project_id = ${escape(projectId)}`,+ `SELECT count(*) as count FROM ${TABLE_NAMES.events} WHERE project_id = ${sqlstring.escape(projectId)}`,);return res[0]?.count;};diff --git a/packages/db/src/services/reference.service.ts b/packages/db/src/services/reference.service.tsindex 951fe5b46..c589b05b8 100644--- a/packages/db/src/services/reference.service.ts+++ b/packages/db/src/services/reference.service.ts@@ -16,19 +16,3 @@ export async function getReferenceById(id: string) {return reference;}--export async function getReferences({- where,- take,- skip,-}: {- where: Prisma.ReferenceWhereInput;- take?: number;- skip?: number;-}) {- return db.reference.findMany({- where,- take: take ?? 50,- skip,- });-}diff --git a/packages/db/src/services/reports.service.ts b/packages/db/src/services/reports.service.tsindex 8870fccfd..f704043ad 100644--- a/packages/db/src/services/reports.service.ts+++ b/packages/db/src/services/reports.service.ts@@ -14,7 +14,7 @@ import type {} from '@openpanel/validation';import { db } from '../prisma-client';-import type { Report as DbReport } from '../prisma-client';+import type { Report as DbReport, ReportLayout } from '../prisma-client';export type IServiceReport = Awaited<ReturnType<typeof getReportById>>;@@ -46,8 +46,8 @@ export function transformReportEvent(}export function transformReport(- report: DbReport,-): IChartProps & { id: string } {+ report: DbReport & { layout?: ReportLayout | null },+): IChartProps & { id: string; layout?: ReportLayout | null } {return {id: report.id,projectId: report.projectId,@@ -68,6 +68,7 @@ export function transformReport(criteria: (report.criteria as ICriteria) ?? undefined,funnelGroup: report.funnelGroup ?? undefined,funnelWindow: report.funnelWindow ?? undefined,+ layout: report.layout ?? undefined,};}@@ -77,6 +78,9 @@ export function getReportsByDashboardId(dashboardId: string) {where: {dashboardId,},+ include: {+ layout: true,+ },}).then((reports) => reports.map(transformReport));}@@ -86,6 +90,9 @@ export async function getReportById(id: string) {where: {id,},+ include: {+ layout: true,+ },});if (!report) {diff --git a/packages/db/src/services/retention.service.ts b/packages/db/src/services/retention.service.tsindex b7ce62b9a..d164b2c2e 100644--- a/packages/db/src/services/retention.service.ts+++ b/packages/db/src/services/retention.service.ts@@ -1,4 +1,4 @@-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { TABLE_NAMES, chQuery } from '../clickhouse/client';@@ -16,7 +16,7 @@ WITHprofile_id,max(toWeek(created_at)) AS last_seenFROM ${TABLE_NAMES.events}- WHERE (project_id = ${escape(projectId)}) AND (profile_id != device_id)+ WHERE (project_id = ${sqlstring.escape(projectId)}) AND (profile_id != device_id)GROUP BY profile_id),n AS@@ -25,7 +25,7 @@ WITHprofile_id,min(toWeek(created_at)) AS first_seenFROM ${TABLE_NAMES.events}- WHERE (project_id = ${escape(projectId)}) AND (profile_id != device_id)+ WHERE (project_id = ${sqlstring.escape(projectId)}) AND (profile_id != device_id)GROUP BY profile_id),a AS@@ -85,7 +85,7 @@ export function getRetentionSeries({ projectId }: IGetWeekRetentionInput) {AND toStartOfWeek(events.created_at) = toStartOfWeek(future_events.created_at - toIntervalWeek(1))AND future_events.profile_id != future_events.device_idWHERE- project_id = ${escape(projectId)}+ project_id = ${sqlstring.escape(projectId)}AND events.profile_id != events.device_idGROUP BY 1ORDER BY date ASC`;@@ -122,11 +122,11 @@ export function getRollingActiveUsers({(SELECT *FROM ${TABLE_NAMES.dau_mv}- WHERE project_id = ${escape(projectId)}+ WHERE project_id = ${sqlstring.escape(projectId)})ARRAY JOIN range(${days}) AS n)- WHERE project_id = ${escape(projectId)}+ WHERE project_id = ${sqlstring.escape(projectId)}GROUP BY date`;return chQuery<IServiceRetentionRollingActiveUsers>(sql);@@ -141,7 +141,7 @@ export function getRetentionLastSeenSeries({max(created_at) AS last_active,profile_idFROM ${TABLE_NAMES.events}- WHERE (project_id = ${escape(projectId)}) AND (device_id != profile_id)+ WHERE (project_id = ${sqlstring.escape(projectId)}) AND (device_id != profile_id)GROUP BY profile_id)SELECTdiff --git a/packages/db/src/services/session.service.ts b/packages/db/src/services/session.service.tsindex 07caefe37..016e478e3 100644--- a/packages/db/src/services/session.service.ts+++ b/packages/db/src/services/session.service.ts@@ -1,5 +1,18 @@-import { TABLE_NAMES, ch } from '../clickhouse/client';+import { cacheable } from '@openpanel/redis';+import type { IChartEventFilter } from '@openpanel/validation';+import { uniq } from 'ramda';+import sqlstring from 'sqlstring';+import {+ TABLE_NAMES,+ ch,+ chQuery,+ formatClickhouseDate,+} from '../clickhouse/client';import { clix } from '../clickhouse/query-builder';+import { createSqlBuilder } from '../sql-builder';+import { getEventFiltersWhereClause } from './chart.service';+import { getOrganizationByProjectIdCached } from './organization.service';+import { type IServiceProfile, getProfilesCached } from './profile.service';export type IClickhouseSession = {id: string;@@ -43,17 +56,291 @@ export type IClickhouseSession = {properties: Record<string, string>;};+export interface IServiceSession {+ id: string;+ profileId: string;+ eventCount: number;+ screenViewCount: number;+ entryPath: string;+ entryOrigin: string;+ exitPath: string;+ exitOrigin: string;+ createdAt: Date;+ endedAt: Date;+ referrer: string;+ referrerName: string;+ referrerType: string;+ os: string;+ osVersion: string;+ browser: string;+ browserVersion: string;+ device: string;+ brand: string;+ model: string;+ country: string;+ region: string;+ city: string;+ longitude: number | null;+ latitude: number | null;+ isBounce: boolean;+ projectId: string;+ deviceId: string;+ duration: number;+ utmMedium: string;+ utmSource: string;+ utmCampaign: string;+ utmContent: string;+ utmTerm: string;+ revenue: number;+ properties: Record<string, string>;+ profile?: IServiceProfile;+}++export interface GetSessionListOptions {+ projectId: string;+ profileId?: string;+ take: number;+ filters?: IChartEventFilter[];+ startDate?: Date;+ endDate?: Date;+ search?: string;+ cursor?: Cursor | null;+}++export function transformSession(session: IClickhouseSession): IServiceSession {+ return {+ id: session.id,+ profileId: session.profile_id,+ eventCount: session.event_count,+ screenViewCount: session.screen_view_count,+ entryPath: session.entry_path,+ entryOrigin: session.entry_origin,+ exitPath: session.exit_path,+ exitOrigin: session.exit_origin,+ createdAt: new Date(session.created_at),+ endedAt: new Date(session.ended_at),+ referrer: session.referrer,+ referrerName: session.referrer_name,+ referrerType: session.referrer_type,+ os: session.os,+ osVersion: session.os_version,+ browser: session.browser,+ browserVersion: session.browser_version,+ device: session.device,+ brand: session.brand,+ model: session.model,+ country: session.country,+ region: session.region,+ city: session.city,+ longitude: session.longitude,+ latitude: session.latitude,+ isBounce: session.is_bounce,+ projectId: session.project_id,+ deviceId: session.device_id,+ duration: session.duration,+ utmMedium: session.utm_medium,+ utmSource: session.utm_source,+ utmCampaign: session.utm_campaign,+ utmContent: session.utm_content,+ utmTerm: session.utm_term,+ revenue: session.revenue,+ properties: session.properties,+ profile: undefined,+ };+}++type Direction = 'initial' | 'next' | 'prev';++type PageInfo = {+ next?: Cursor; // use last row+};++type Cursor = {+ createdAt: string; // ISO 8601 with ms+ id: string;+};++export async function getSessionList({+ cursor,+ take,+ projectId,+ profileId,+ filters,+ startDate,+ endDate,+ search,+}: GetSessionListOptions) {+ const { sb, getSql } = createSqlBuilder();++ sb.from = `${TABLE_NAMES.sessions} FINAL`;+ sb.limit = take;+ sb.where.projectId = `project_id = ${sqlstring.escape(projectId)}`;++ if (startDate && endDate) {+ sb.where.range = `created_at BETWEEN toDateTime('${formatClickhouseDate(startDate)}') AND toDateTime('${formatClickhouseDate(endDate)}')`;+ }++ if (profileId)+ sb.where.profileId = `profile_id = ${sqlstring.escape(profileId)}`;+ if (search) {+ const s = sqlstring.escape(`%${search}%`);+ sb.where.search = `(entry_path ILIKE ${s} OR exit_path ILIKE ${s} OR referrer ILIKE ${s} OR referrer_name ILIKE ${s})`;+ }+ if (filters?.length) {+ Object.assign(sb.where, getEventFiltersWhereClause(filters));+ }++ const organization = await getOrganizationByProjectIdCached(projectId);+ // This will speed up the query quite a lot for big organizations+ const dateIntervalInDays =+ organization?.subscriptionPeriodEventsLimit &&+ organization?.subscriptionPeriodEventsLimit > 1_000_000+ ? 1+ : 7;++ if (cursor) {+ const cAt = sqlstring.escape(cursor.createdAt);+ const cId = sqlstring.escape(cursor.id);+ sb.where.cursor = `(created_at < toDateTime64(${cAt}, 3) OR (created_at = toDateTime64(${cAt}, 3) AND id < ${cId}))`;+ sb.where.cursorWindow = `created_at >= toDateTime64(${cAt}, 3) - INTERVAL ${dateIntervalInDays} DAY`;+ sb.orderBy.created_at = 'toDate(created_at) DESC, created_at DESC, id DESC';+ } else {+ sb.orderBy.created_at = 'toDate(created_at) DESC, created_at DESC, id DESC';+ sb.where.created_at = `created_at > now() - INTERVAL ${dateIntervalInDays} DAY`;+ }++ // ==== Select columns (as you had) ====+ // sb.select.id = 'id'; sb.select.project_id = 'project_id'; ... etc.+ const columns = [+ 'created_at',+ 'ended_at',+ 'id',+ 'profile_id',+ 'entry_path',+ 'exit_path',+ 'duration',+ 'is_bounce',+ 'referrer_name',+ 'referrer',+ 'country',+ 'city',+ 'os',+ 'browser',+ 'brand',+ 'model',+ 'device',+ 'screen_view_count',+ 'event_count',+ 'revenue',+ ];++ columns.forEach((column) => {+ sb.select[column] = column;+ });++ const sql = getSql();+ const data = await chQuery<+ IClickhouseSession & {+ latestCreatedAt: string;+ }+ >(sql);++ // Compute cursors from page edges+ const last = data[take - 1];++ const meta: PageInfo = {+ next: last+ ? {+ createdAt: last.created_at,+ id: last.id,+ }+ : undefined,+ };++ // Profile hydration (unchanged)+ const profileIds = data+ .filter((e) => e.device_id !== e.profile_id)+ .map((e) => e.profile_id);+ const profiles = await getProfilesCached(profileIds, projectId);+ const map = new Map<string, IServiceProfile>(profiles.map((p) => [p.id, p]));++ const items = data.map(transformSession).map((item) => ({+ ...item,+ profile: map.get(item.profileId) ?? {+ id: item.profileId,+ email: '',+ avatar: '',+ firstName: '',+ lastName: '',+ createdAt: new Date(),+ projectId,+ isExternal: false,+ properties: {},+ },+ }));++ return { items, meta };+}++export async function getSessionsCount({+ projectId,+ profileId,+ filters,+ startDate,+ endDate,+ search,+}: Omit<GetSessionListOptions, 'take' | 'cursor'>) {+ const { sb, getSql } = createSqlBuilder();++ sb.select.count = 'count(*) as count';+ sb.where.projectId = `project_id = ${sqlstring.escape(projectId)}`;+ sb.where.sign = 'sign = 1';++ if (profileId) {+ sb.where.profileId = `profile_id = ${sqlstring.escape(profileId)}`;+ }++ if (startDate && endDate) {+ sb.where.created_at = `toDate(created_at) BETWEEN toDate('${formatClickhouseDate(startDate)}') AND toDate('${formatClickhouseDate(endDate)}')`;+ }++ if (search) {+ sb.where.search = `(entry_path ILIKE '%${search}%' OR exit_path ILIKE '%${search}%' OR referrer ILIKE '%${search}%' OR referrer_name ILIKE '%${search}%')`;+ }++ if (filters && filters.length > 0) {+ const sessionFilters = getEventFiltersWhereClause(filters);+ sb.where = {+ ...sb.where,+ ...sessionFilters,+ };+ }++ sb.from = TABLE_NAMES.sessions;++ const result = await chQuery<{ count: number }>(getSql());+ return result[0]?.count ?? 0;+}++export const getSessionsCountCached = cacheable(getSessionsCount, 60 * 10);+class SessionService {constructor(private client: typeof ch) {}- byId(sessionId: string, projectId: string) {- return clix(this.client)+ async byId(sessionId: string, projectId: string) {+ const result = await clix(this.client).select<IClickhouseSession>(['*']).from(TABLE_NAMES.sessions).where('id', '=', sessionId).where('project_id', '=', projectId)- .execute()- .then((res) => res[0]);+ .where('sign', '=', 1)+ .execute();++ if (!result[0]) {+ throw new Error('Session not found');+ }++ return transformSession(result[0]);}}diff --git a/packages/email/package.json b/packages/email/package.jsonindex 41d86e31e..a5664bcb0 100644--- a/packages/email/package.json+++ b/packages/email/package.json@@ -1,24 +1,25 @@{"name": "@openpanel/email","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"dev": "email dev --dir src/emails -p 3939","typecheck": "tsc --noEmit"},"dependencies": {- "@react-email/components": "^0.0.30",- "react": "18.2.0",- "react-dom": "18.2.0",+ "@react-email/components": "^0.5.6",+ "react": "catalog:",+ "react-dom": "catalog:","resend": "^4.0.1","responsive-react-email": "^0.0.5","zod": "catalog:"},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",- "@types/react": "^18.2.0",+ "@types/node": "catalog:",+ "@types/react": "catalog:","react-email": "3.0.4",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/email/src/emails/email-invite.tsx b/packages/email/src/emails/email-invite.tsxindex a2adeda91..f3e662621 100644--- a/packages/email/src/emails/email-invite.tsx+++ b/packages/email/src/emails/email-invite.tsx@@ -1,5 +1,5 @@-import React from 'react';import { Button, Link, Text } from '@react-email/components';+import React from 'react';import { z } from 'zod';import { Layout } from '../components/layout';diff --git a/packages/email/src/emails/email-reset-password.tsx b/packages/email/src/emails/email-reset-password.tsxindex a94740a1c..56a6fe762 100644--- a/packages/email/src/emails/email-reset-password.tsx+++ b/packages/email/src/emails/email-reset-password.tsx@@ -1,5 +1,5 @@-import React from 'react';import { Button, Link, Text } from '@react-email/components';+import React from 'react';import { z } from 'zod';import { Layout } from '../components/layout';diff --git a/packages/geo/package.json b/packages/geo/package.jsonindex 6f9616437..65d6dcbda 100644--- a/packages/geo/package.json+++ b/packages/geo/package.json@@ -11,10 +11,10 @@},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",+ "@types/node": "catalog:","fast-extract": "^1.4.3","tar": "^7.4.3",- "typescript": "^5.2.2",+ "typescript": "catalog:","jiti": "^2.4.1"}}diff --git a/packages/geo/scripts/download.ts b/packages/geo/scripts/download.tsindex 025f778a9..a7b77912b 100644--- a/packages/geo/scripts/download.ts+++ b/packages/geo/scripts/download.ts@@ -1,6 +1,11 @@import fs from 'node:fs';import https from 'node:https';import path from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);import zlib from 'node:zlib';import * as tar from 'tar';import type { Parser } from 'tar';diff --git a/packages/geo/src/geo.ts b/packages/geo/src/geo.tsindex fd0a1189c..bd2ac7f9a 100644--- a/packages/geo/src/geo.ts+++ b/packages/geo/src/geo.ts@@ -1,5 +1,10 @@import { readFile } from 'node:fs/promises';import path from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);import type { ReaderModel } from '@maxmind/geoip2-node';import { Reader } from '@maxmind/geoip2-node';diff --git a/packages/integrations/package.json b/packages/integrations/package.jsonindex 2ff404f8b..59acc578f 100644--- a/packages/integrations/package.json+++ b/packages/integrations/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/integrations","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"@@ -12,7 +13,7 @@"devDependencies": {"@openpanel/tsconfig": "workspace:*","@openpanel/validation": "workspace:*",- "@types/node": "20.14.8",- "typescript": "^5.2.2"+ "@types/node": "catalog:",+ "typescript": "catalog:"}}diff --git a/packages/integrations/src/slack.ts b/packages/integrations/src/slack.tsindex b6d32e777..2f6de644c 100644--- a/packages/integrations/src/slack.ts+++ b/packages/integrations/src/slack.ts@@ -1,6 +1,7 @@// Cred to (@c_alares) https://github.com/christianalares/seventy-seven/blob/main/packages/integrations/src/slack/index.ts-import { LogLevel, App as SlackApp } from '@slack/bolt';+import * as Slack from '@slack/bolt';+const { LogLevel, App: SlackApp } = Slack;import { InstallProvider } from '@slack/oauth';const SLACK_CLIENT_ID = process.env.SLACK_CLIENT_ID;diff --git a/packages/json/package.json b/packages/json/package.jsonindex 3e6db3464..7986f4e7a 100644--- a/packages/json/package.json+++ b/packages/json/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/json","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"@@ -11,7 +12,7 @@"devDependencies": {"@openpanel/tsconfig": "workspace:*","@openpanel/validation": "workspace:*",- "@types/node": "20.14.8",- "typescript": "^5.2.2"+ "@types/node": "catalog:",+ "typescript": "catalog:"}}diff --git a/packages/logger/package.json b/packages/logger/package.jsonindex 8b4a6edd1..7316ef2bc 100644--- a/packages/logger/package.json+++ b/packages/logger/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/logger","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"@@ -13,6 +14,6 @@"@openpanel/tsconfig": "workspace:*","date-fns": "^3.3.1","prisma": "^5.1.1",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/payments/package.json b/packages/payments/package.jsonindex ca1ebac8a..af8843b67 100644--- a/packages/payments/package.json+++ b/packages/payments/package.json@@ -1,22 +1,23 @@{"name": "@openpanel/payments","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"},"dependencies": {- "@polar-sh/sdk": "^0.26.1"+ "@polar-sh/sdk": "^0.35.4"},"devDependencies": {"@openpanel/db": "workspace:*","@openpanel/tsconfig": "workspace:*","@types/inquirer": "^9.0.7","@types/inquirer-autocomplete-prompt": "^3.0.3",- "@types/node": "20.14.8",- "@types/react": "^18.2.0",+ "@types/node": "catalog:",+ "@types/react": "catalog:","inquirer": "^9.3.5","inquirer-autocomplete-prompt": "^3.0.1",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/payments/scripts/create-custom-pricing.ts b/packages/payments/scripts/create-custom-pricing.tsindex 693882b1e..35fa23227 100644--- a/packages/payments/scripts/create-custom-pricing.ts+++ b/packages/payments/scripts/create-custom-pricing.ts@@ -1,10 +1,8 @@import { db } from '@openpanel/db';import { Polar } from '@polar-sh/sdk';-import type { ProductCreate } from '@polar-sh/sdk/models/components/productcreate';import inquirer from 'inquirer';import inquirerAutocomplete from 'inquirer-autocomplete-prompt';-import { PRICING, getProducts, getSuccessUrl, polar } from '..';-import { formatEventsCount } from './create-products';+import { getSuccessUrl } from '..';// Register the autocomplete promptinquirer.registerPrompt('autocomplete', inquirerAutocomplete);@@ -222,6 +220,7 @@ async function main() {});const checkoutLink = await polar.checkoutLinks.create({+ paymentProcessor: 'stripe',productId: product.id,allowDiscountCodes: false,metadata: {diff --git a/packages/payments/scripts/create-products.ts b/packages/payments/scripts/create-products.tsindex d49feb9b1..91b5b52d4 100644--- a/packages/payments/scripts/create-products.ts+++ b/packages/payments/scripts/create-products.ts@@ -1,5 +1,6 @@import { Polar } from '@polar-sh/sdk';-import type { ProductCreate } from '@polar-sh/sdk/models/components/productcreate';+import type { Product } from '@polar-sh/sdk/dist/esm/models/components/product';+import type { ProductCreate } from '@polar-sh/sdk/dist/esm/models/components/productcreate';import inquirer from 'inquirer';import { PRICING } from '../';@@ -69,7 +70,7 @@ async function main() {const isDry = process.argv.includes('--dry');const products = await getProducts();- const createProducts = [];+ const createProducts: Product[] = [];for (const price of PRICING) {if (price.price === 0) {const exists = products.find(diff --git a/packages/payments/src/polar.ts b/packages/payments/src/polar.tsindex 7265785a1..854c16db1 100644--- a/packages/payments/src/polar.ts+++ b/packages/payments/src/polar.ts@@ -50,13 +50,13 @@ export async function createPortal({}export async function createCheckout({- priceId,+ productId,organizationId,projectId,user,ipAddress,}: {- priceId: string;+ productId: string;organizationId: string;projectId?: string;user: {@@ -68,9 +68,10 @@ export async function createCheckout({ipAddress: string;}) {return polar.checkouts.create({- productPriceId: priceId,+ // productPriceId: priceId,+ products: [productId],successUrl: getSuccessUrl(- process.env.NEXT_PUBLIC_DASHBOARD_URL!,+ process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL!,organizationId,projectId,),@@ -90,7 +91,6 @@ export async function cancelSubscription(subscriptionId: string) {id: subscriptionId,subscriptionUpdate: {cancelAtPeriodEnd: true,- revoke: null,},});} catch (error) {@@ -110,7 +110,6 @@ export function reactivateSubscription(subscriptionId: string) {id: subscriptionId,subscriptionUpdate: {cancelAtPeriodEnd: false,- revoke: null,},});}diff --git a/packages/payments/src/prices.ts b/packages/payments/src/prices.tsindex c9a32259b..c1846ab32 100644--- a/packages/payments/src/prices.ts+++ b/packages/payments/src/prices.ts@@ -26,7 +26,7 @@ export const PRICING: IPrice[] = [},{ price: 180, events: 2_500_000 },{ price: 250, events: 5_000_000 },- { price: 400, events: 10_000_000 },+ { price: 300, events: 10_000_000 },];export const FREE_PRODUCT_IDS = [diff --git a/packages/payments/tsconfig.json b/packages/payments/tsconfig.jsonindex a291eef2f..6b96dd41c 100644--- a/packages/payments/tsconfig.json+++ b/packages/payments/tsconfig.json@@ -1,12 +1,16 @@{- "extends": "@openpanel/tsconfig/base.json","compilerOptions": {- "baseUrl": ".",- "paths": {- "@/*": ["./src/*"]- },- "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"+ "target": "ES2022",+ "module": "NodeNext",+ "moduleResolution": "NodeNext",+ "outDir": "./dist",+ "rootDir": "./src",+ "esModuleInterop": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "strict": true,+ "resolveJsonModule": true,+ "allowJs": true},- "include": ["."],- "exclude": ["node_modules"]+ "include": ["src/**/*"]}diff --git a/packages/queue/package.json b/packages/queue/package.jsonindex f98f3e3c3..75a96f917 100644--- a/packages/queue/package.json+++ b/packages/queue/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/queue","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"@@ -15,7 +16,7 @@"devDependencies": {"@openpanel/sdk": "workspace:*","@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",- "typescript": "^5.2.2"+ "@types/node": "catalog:",+ "typescript": "catalog:"}}diff --git a/packages/redis/package.json b/packages/redis/package.jsonindex 978de71bc..f958f1d73 100644--- a/packages/redis/package.json+++ b/packages/redis/package.json@@ -1,19 +1,20 @@{"name": "@openpanel/redis","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"},"dependencies": {"@openpanel/json": "workspace:*",- "ioredis": "^5.4.1"+ "ioredis": "^5.7.0"},"devDependencies": {"@openpanel/db": "workspace:*","@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",+ "@types/node": "catalog:","prisma": "^5.1.1",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/redis/redis.ts b/packages/redis/redis.tsindex 769164ba7..be23b99ec 100644--- a/packages/redis/redis.ts+++ b/packages/redis/redis.ts@@ -1,6 +1,6 @@import { getSuperJson, setSuperJson } from '@openpanel/json';import type { RedisOptions } from 'ioredis';-import Redis from 'ioredis';+import { Redis } from 'ioredis';const options: RedisOptions = {connectTimeout: 10000,diff --git a/packages/sdks/_info/package.json b/packages/sdks/_info/package.jsonindex 705a42d91..f23eae2bd 100644--- a/packages/sdks/_info/package.json+++ b/packages/sdks/_info/package.json@@ -6,12 +6,12 @@"typecheck": "tsc --noEmit"},"dependencies": {- "react": "18.2.0"+ "react": "catalog:"},"devDependencies": {- "@types/react": "^18.2.20",+ "@types/react": "catalog:","@openpanel/tsconfig": "workspace:*","prisma": "^5.1.1",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/sdks/astro/src/OpenPanelComponent.astro b/packages/sdks/astro/src/OpenPanelComponent.astroindex e982f916e..c711cb8de 100644--- a/packages/sdks/astro/src/OpenPanelComponent.astro+++ b/packages/sdks/astro/src/OpenPanelComponent.astro@@ -1,8 +1,5 @@----import type {-OpenPanelMethodNames,-OpenPanelOptions-} from '@openpanel/web';+import type { OpenPanelMethodNames, OpenPanelOptions } from '@openpanel/web';type Props = Omit<OpenPanelOptions, 'filter'> & {profileId?: string;diff --git a/packages/sdks/express/package.json b/packages/sdks/express/package.jsonindex c7a9b3958..a40b6bf62 100644--- a/packages/sdks/express/package.json+++ b/packages/sdks/express/package.json@@ -18,6 +18,6 @@"@types/express": "^5.0.3","@types/request-ip": "^0.0.41","tsup": "^7.2.0",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/sdks/nextjs/package.json b/packages/sdks/nextjs/package.jsonindex a16b004ed..48e4c3bd4 100644--- a/packages/sdks/nextjs/package.json+++ b/packages/sdks/nextjs/package.json@@ -16,8 +16,8 @@},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/react": "^18.2.20",+ "@types/react": "catalog:","tsup": "^7.2.0",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/sdks/react-native/package.json b/packages/sdks/react-native/package.jsonindex 3c281b692..751986512 100644--- a/packages/sdks/react-native/package.json+++ b/packages/sdks/react-native/package.json@@ -11,9 +11,9 @@},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",+ "@types/node": "catalog:","tsup": "^7.2.0",- "typescript": "^5.2.2"+ "typescript": "catalog:"},"peerDependencies": {"expo-application": "5 - 6",diff --git a/packages/sdks/sdk/package.json b/packages/sdks/sdk/package.jsonindex cc15c0da6..586915578 100644--- a/packages/sdks/sdk/package.json+++ b/packages/sdks/sdk/package.json@@ -9,8 +9,8 @@"dependencies": {},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",+ "@types/node": "catalog:","tsup": "^7.2.0",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/sdks/web/package.json b/packages/sdks/web/package.jsonindex 70c1ee4c1..96d0dfdd0 100644--- a/packages/sdks/web/package.json+++ b/packages/sdks/web/package.json@@ -11,8 +11,8 @@},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",+ "@types/node": "catalog:","tsup": "^7.2.0",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/sdks/web/src/types.d.ts b/packages/sdks/web/src/types.d.tsindex 4c83e168f..69ee0bef2 100644--- a/packages/sdks/web/src/types.d.ts+++ b/packages/sdks/web/src/types.d.ts@@ -1,7 +1,5 @@+import type { TrackProperties } from '@openpanel/sdk';import type { OpenPanel, OpenPanelOptions } from './';-import type {- TrackProperties,-} from '@openpanel/sdk';type ExposedMethodsNames =| 'track'@@ -22,7 +20,11 @@ export type OpenPanelMethodNames = ExposedMethodsNames | 'init' | 'screenView';export type OpenPanelMethods =| ExposedMethods| ['init', OpenPanelOptions]- | ['screenView', string | TrackProperties | undefined, TrackProperties | undefined];+ | [+ 'screenView',+ string | TrackProperties | undefined,+ TrackProperties | undefined,+ ];declare global {interface Window {diff --git a/packages/trpc/package.json b/packages/trpc/package.jsonindex 9728086f0..630e74d96 100644--- a/packages/trpc/package.json+++ b/packages/trpc/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/trpc","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"@@ -15,11 +16,9 @@"@openpanel/payments": "workspace:^","@openpanel/redis": "workspace:*","@openpanel/validation": "workspace:*",- "@seventy-seven/sdk": "0.0.0-beta.2","@trpc-limiter/redis": "^0.0.2",- "@trpc/server": "^10.45.2",- "@trpc/client": "^10.45.2",- "bcrypt": "^5.1.1",+ "@trpc/client": "^11.6.0",+ "@trpc/server": "^11.6.0","date-fns": "^3.3.1","mathjs": "^12.3.2","prisma-error-enum": "^0.1.3",@@ -32,11 +31,10 @@},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/bcrypt": "^5.0.2",- "@types/node": "20.14.8",+ "@types/node": "catalog:","@types/ramda": "^0.29.6","@types/sqlstring": "^2.3.2","prisma": "^5.1.1",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/packages/trpc/src/root.ts b/packages/trpc/src/root.tsindex 7a9437e32..2d7888372 100644--- a/packages/trpc/src/root.ts+++ b/packages/trpc/src/root.ts@@ -1,5 +1,6 @@import { authRouter } from './routers/auth';import { chartRouter } from './routers/chart';+import { chatRouter } from './routers/chat';import { clientRouter } from './routers/client';import { dashboardRouter } from './routers/dashboard';import { eventRouter } from './routers/event';@@ -10,11 +11,12 @@ import { organizationRouter } from './routers/organization';import { overviewRouter } from './routers/overview';import { profileRouter } from './routers/profile';import { projectRouter } from './routers/project';+import { realtimeRouter } from './routers/realtime';import { referenceRouter } from './routers/reference';import { reportRouter } from './routers/report';+import { sessionRouter } from './routers/session';import { shareRouter } from './routers/share';import { subscriptionRouter } from './routers/subscription';-import { ticketRouter } from './routers/ticket';import { userRouter } from './routers/user';import { createTRPCRouter } from './trpc';/**@@ -32,15 +34,17 @@ export const appRouter = createTRPCRouter({client: clientRouter,event: eventRouter,profile: profileRouter,+ session: sessionRouter,share: shareRouter,onboarding: onboardingRouter,reference: referenceRouter,- ticket: ticketRouter,notification: notificationRouter,integration: integrationRouter,auth: authRouter,subscription: subscriptionRouter,overview: overviewRouter,+ realtime: realtimeRouter,+ chat: chatRouter,});// export type definition of APIdiff --git a/packages/trpc/src/routers/auth.ts b/packages/trpc/src/routers/auth.tsindex 3aecfc00a..5d139d3e4 100644--- a/packages/trpc/src/routers/auth.ts+++ b/packages/trpc/src/routers/auth.ts@@ -9,6 +9,7 @@ import {hashPassword,invalidateSession,setSessionTokenCookie,+ validateSessionToken,verifyPasswordHash,} from '@openpanel/auth';import { generateSecureId } from '@openpanel/common/server/id';@@ -26,7 +27,6 @@ import {zSignInShare,zSignUpEmail,} from '@openpanel/validation';-import * as bcrypt from 'bcrypt';import { z } from 'zod';import { TRPCAccessError, TRPCNotFoundError } from '../errors';import {@@ -216,21 +216,17 @@ export const authRouter = createTRPCRouter({throw TRPCAccessError('Incorrect email or password');}} else {- const validPassword = await bcrypt.compare(- password,- user.account.password ?? '',+ throw TRPCAccessError(+ 'Reset your password, old password has expired',);-- if (!validPassword) {- throw TRPCAccessError('Incorrect email or password');- }}}const token = generateSessionToken();const session = await createSession(token, user.id);-+ console.log('session', session);setSessionTokenCookie(ctx.setCookie, token, session.expiresAt);+ console.log('ctx.setCookie', ctx.setCookie);return {type: 'email',};@@ -318,7 +314,7 @@ export const authRouter = createTRPCRouter({await sendEmail('reset-password', {to: input.email,data: {- url: `${process.env.NEXT_PUBLIC_DASHBOARD_URL}/reset-password?token=${token}`,+ url: `${process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL}/reset-password?token=${token}`,},});@@ -328,6 +324,26 @@ export const authRouter = createTRPCRouter({return ctx.session;}),+ extendSession: publicProcedure.mutation(async ({ ctx }) => {+ if (!ctx.session.session || !ctx.cookies.session) {+ return { extended: false };+ }++ const token = ctx.cookies.session;+ const session = await validateSessionToken(token);++ if (session.session) {+ // Re-set the cookie with updated expiration+ setSessionTokenCookie(ctx.setCookie, token, session.session.expiresAt);+ return {+ extended: true,+ expiresAt: session.session.expiresAt,+ };+ }++ return { extended: false };+ }),+signInShare: publicProcedure.use(rateLimitMiddleware({diff --git a/packages/trpc/src/routers/chart.helpers.ts b/packages/trpc/src/routers/chart.helpers.tsindex ce94e6b72..09a40f839 100644--- a/packages/trpc/src/routers/chart.helpers.ts+++ b/packages/trpc/src/routers/chart.helpers.ts@@ -1,6 +1,6 @@import * as mathjs from 'mathjs';import { last, pluck, reverse, uniq } from 'ramda';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import type { ISerieDataItem } from '@openpanel/common';import {@@ -162,11 +162,11 @@ export async function getFunnelData({const funnels = payload.events.map((event) => {const { sb, getWhere } = createSqlBuilder();sb.where = getEventFiltersWhereClause(event.filters);- sb.where.name = `name = ${escape(event.name)}`;+ sb.where.name = `name = ${sqlstring.escape(event.name)}`;return getWhere().replace('WHERE ', '');});- const commonWhere = `project_id = ${escape(projectId)} AND+ const commonWhere = `project_id = ${sqlstring.escape(projectId)} ANDcreated_at >= '${formatClickhouseDate(startDate)}' ANDcreated_at <= '${formatClickhouseDate(endDate)}'`;@@ -177,7 +177,7 @@ export async function getFunnelData({${funnelGroup[0] === 'session_id' ? '' : `LEFT JOIN (SELECT profile_id, id FROM sessions WHERE ${commonWhere}) AS s ON s.id = e.session_id`}WHERE${commonWhere} AND- name IN (${payload.events.map((event) => escape(event.name)).join(', ')})+ name IN (${payload.events.map((event) => sqlstring.escape(event.name)).join(', ')})GROUP BY ${funnelGroup[0]}`;const sql = `SELECT level, count() AS count FROM (${innerSql}) WHERE level != 0 GROUP BY level ORDER BY level DESC`;diff --git a/packages/trpc/src/routers/chart.ts b/packages/trpc/src/routers/chart.tsindex 056e440e7..6fb305721 100644--- a/packages/trpc/src/routers/chart.ts+++ b/packages/trpc/src/routers/chart.ts@@ -1,5 +1,5 @@import { flatten, map, pipe, prop, range, sort, uniq } from 'ramda';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { z } from 'zod';import {@@ -52,6 +52,80 @@ function utc(date: string | Date) {const cacher = cacheMiddleware(60);export const chartRouter = createTRPCRouter({+ projectCard: protectedProcedure+ .use(cacheMiddleware(60 * 5))+ .input(+ z.object({+ projectId: z.string(),+ }),+ )+ .query(async ({ input: { projectId } }) => {+ const chartPromise = chQuery<{ value: number; date: Date }>(+ `SELECT+ uniqHLL12(profile_id) as value,+ toStartOfDay(created_at) as date+ FROM ${TABLE_NAMES.sessions}+ WHERE+ sign = 1 AND+ project_id = ${sqlstring.escape(projectId)} AND+ created_at >= now() - interval '3 month'+ GROUP BY date+ ORDER BY date ASC+ WITH FILL FROM toStartOfDay(now() - interval '1 month')+ TO toStartOfDay(now())+ STEP INTERVAL 1 day+ `,+ );++ const metricsPromise = clix(ch)+ .select<{+ months_3: number;+ months_3_prev: number;+ month: number;+ day: number;+ day_prev: number;+ }>([+ 'uniqHLL12(if(created_at >= (now() - toIntervalMonth(3)), profile_id, null)) AS months_3',+ 'uniqHLL12(if(created_at >= (now() - toIntervalMonth(6)) AND created_at < (now() - toIntervalMonth(3)), profile_id, null)) AS months_3_prev',+ 'uniqHLL12(if(created_at >= (now() - toIntervalMonth(1)), profile_id, null)) AS month',+ 'uniqHLL12(if(created_at >= (now() - toIntervalDay(1)), profile_id, null)) AS day',+ 'uniqHLL12(if(created_at >= (now() - toIntervalDay(2)) AND created_at < (now() - toIntervalDay(1)), profile_id, null)) AS day_prev',+ ])+ .from(TABLE_NAMES.sessions)+ .where('project_id', '=', projectId)+ .where('created_at', '>=', clix.exp('now() - toIntervalMonth(6)'))+ .execute();++ const [chart, [metrics]] = await Promise.all([+ chartPromise,+ metricsPromise,+ ]);++ const change =+ metrics && metrics.months_3_prev > 0 && metrics.months_3 > 0+ ? Math.round(+ ((metrics.months_3 - metrics.months_3_prev) /+ metrics.months_3_prev) *+ 100,+ )+ : null;++ const trend =+ change === null+ ? { direction: 'neutral' as const, percentage: null as number | null }+ : change > 0+ ? { direction: 'up' as const, percentage: change }+ : change < 0+ ? { direction: 'down' as const, percentage: Math.abs(change) }+ : { direction: 'neutral' as const, percentage: 0 };++ return {+ chart: chart.map((d) => ({ ...d, date: new Date(d.date) })),+ metrics,+ trend,+ };+ }),+events: protectedProcedure.input(z.object({@@ -61,7 +135,7 @@ export const chartRouter = createTRPCRouter({.query(async ({ input: { projectId } }) => {const [events, meta] = await Promise.all([chQuery<{ name: string; count: number }>(- `SELECT name, count(name) as count FROM ${TABLE_NAMES.event_names_mv} WHERE project_id = ${escape(projectId)} GROUP BY name ORDER BY count DESC, name ASC`,+ `SELECT name, count(name) as count FROM ${TABLE_NAMES.event_names_mv} WHERE project_id = ${sqlstring.escape(projectId)} GROUP BY name ORDER BY count DESC, name ASC`,),getEventMetasCached(projectId),]);@@ -376,9 +450,9 @@ export const chartRouter = createTRPCRouter({const whereEventNameIs = (event: string[]) => {if (event.length === 1) {- return `name = ${escape(event[0])}`;+ return `name = ${sqlstring.escape(event[0])}`;}- return `name IN (${event.map((e) => escape(e)).join(',')})`;+ return `name IN (${event.map((e) => sqlstring.escape(e)).join(',')})`;};const cohortQuery = `@@ -390,7 +464,7 @@ export const chartRouter = createTRPCRouter({${sqlToStartOf}(created_at) AS cohort_intervalFROM ${TABLE_NAMES.cohort_events_mv}WHERE ${whereEventNameIs(firstEvent)}- AND project_id = ${escape(projectId)}+ AND project_id = ${sqlstring.escape(projectId)}AND created_at BETWEEN toDate('${utc(dates.startDate)}') AND toDate('${utc(dates.endDate)}')),last_event AS@@ -401,7 +475,7 @@ export const chartRouter = createTRPCRouter({toDate(created_at) AS event_dateFROM cohort_events_mvWHERE ${whereEventNameIs(secondEvent)}- AND project_id = ${escape(projectId)}+ AND project_id = ${sqlstring.escape(projectId)}AND created_at BETWEEN toDate('${utc(dates.startDate)}') AND toDate('${utc(dates.endDate)}') + INTERVAL ${diffInterval} ${sqlInterval}),retention_matrix ASdiff --git a/packages/trpc/src/routers/chat.ts b/packages/trpc/src/routers/chat.tsnew file mode 100644index 000000000..2ee348740--- /dev/null+++ b/packages/trpc/src/routers/chat.ts@@ -0,0 +1,20 @@+import { z } from 'zod';++import { db } from '@openpanel/db';++import { createTRPCRouter, protectedProcedure } from '../trpc';++export const chatRouter = createTRPCRouter({+ get: protectedProcedure+ .input(z.object({ projectId: z.string() }))+ .query(async ({ input }) => {+ return db.chat.findFirst({+ where: {+ projectId: input.projectId,+ },+ orderBy: {+ createdAt: 'desc',+ },+ });+ }),+});diff --git a/packages/trpc/src/routers/client.ts b/packages/trpc/src/routers/client.tsindex 0a39078d3..7cb443d9f 100644--- a/packages/trpc/src/routers/client.ts+++ b/packages/trpc/src/routers/client.ts@@ -10,6 +10,19 @@ import { TRPCAccessError } from '../errors';import { createTRPCRouter, protectedProcedure } from '../trpc';export const clientRouter = createTRPCRouter({+ list: protectedProcedure+ .input(+ z.object({+ projectId: z.string(),+ }),+ )+ .query(async ({ input }) => {+ return db.client.findMany({+ where: {+ projectId: input.projectId,+ },+ });+ }),update: protectedProcedure.input(z.object({diff --git a/packages/trpc/src/routers/dashboard.ts b/packages/trpc/src/routers/dashboard.tsindex 315eec3df..1decfe99c 100644--- a/packages/trpc/src/routers/dashboard.ts+++ b/packages/trpc/src/routers/dashboard.ts@@ -3,6 +3,7 @@ import { z } from 'zod';import {db,+ getDashboardById,getDashboardsByProjectId,getId,getProjectById,@@ -23,6 +24,31 @@ export const dashboardRouter = createTRPCRouter({.query(({ input }) => {return getDashboardsByProjectId(input.projectId);}),+ byId: protectedProcedure+ .input(+ z.object({+ id: z.string(),+ projectId: z.string(),+ }),+ )+ .query(async ({ input, ctx }) => {+ const access = await getProjectAccess({+ projectId: input.projectId,+ userId: ctx.session.userId,+ });++ if (!access) {+ throw TRPCAccessError('You do not have access to this project');+ }++ const dashboard = await getDashboardById(input.id, input.projectId);++ if (!dashboard) {+ throw TRPCNotFoundError('Dashboard not found');+ }++ return dashboard;+ }),create: protectedProcedure.input(z.object({diff --git a/packages/trpc/src/routers/event.ts b/packages/trpc/src/routers/event.tsindex 5496a768f..d710df976 100644--- a/packages/trpc/src/routers/event.ts+++ b/packages/trpc/src/routers/event.ts@@ -1,5 +1,5 @@import { TRPCError } from '@trpc/server';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { z } from 'zod';import {@@ -117,6 +117,7 @@ export const eventRouter = createTRPCRouter({z.object({projectId: z.string(),profileId: z.string().optional(),+ sessionId: z.string().optional(),cursor: z.string().optional(),filters: z.array(zChartEventFilter).default([]),startDate: z.date().optional(),@@ -130,10 +131,15 @@ export const eventRouter = createTRPCRouter({take: 50,cursor: input.cursor ? new Date(input.cursor) : undefined,select: {+ profile: true,properties: true,sessionId: true,deviceId: true,profileId: true,+ referrerName: true,+ referrerType: true,+ referrer: true,+ origin: true,},});@@ -159,7 +165,7 @@ export const eventRouter = createTRPCRouter({const lastItem = items[items.length - 1];return {- items,+ data: items,meta: {next:items.length === 50 && lastItem@@ -168,39 +174,80 @@ export const eventRouter = createTRPCRouter({},};}),+ conversionNames: protectedProcedure+ .input(z.object({ projectId: z.string() }))+ .query(async ({ input: { projectId } }) => {+ return getConversionEventNames(projectId);+ }),conversions: protectedProcedure.input(z.object({projectId: z.string(),cursor: z.string().optional(),+ startDate: z.date().optional(),+ endDate: z.date().optional(),}),)- .query(async ({ input: { projectId, cursor } }) => {- const conversions = await getConversionEventNames(projectId);+ .query(async ({ input }) => {+ const conversions = await getConversionEventNames(input.projectId);if (conversions.length === 0) {return {- items: [],+ data: [],meta: {next: null,},};}- const items = await getEvents(- `SELECT * FROM ${TABLE_NAMES.events} WHERE ${cursor ? `created_at <= '${formatClickhouseDate(cursor)}' AND` : ''} project_id = ${escape(projectId)} AND name IN (${conversions.map((c) => escape(c.name)).join(', ')}) ORDER BY toDate(created_at) DESC, created_at DESC LIMIT 50;`,- {+ const items = await getEventList({+ ...input,+ take: 50,+ cursor: input.cursor ? new Date(input.cursor) : undefined,+ select: {profile: true,- meta: true,+ properties: true,+ sessionId: true,+ deviceId: true,+ profileId: true,+ referrerName: true,+ referrerType: true,+ referrer: true,+ origin: true,},- );+ custom: (sb) => {+ sb.where.name = `name IN (${conversions.map((event) => sqlstring.escape(event.name)).join(',')})`;+ },+ });++ // Hacky join to get profile for entire session+ // TODO: Replace this with a join on the session table+ const map = new Map<string, IServiceProfile>(); // sessionId -> profileId+ for (const item of items) {+ if (item.sessionId && item.profile?.isExternal === true) {+ map.set(item.sessionId, item.profile);+ }+ }++ for (const item of items) {+ const profile = map.get(item.sessionId);+ if (profile && (item.profile?.isExternal === false || !item.profile)) {+ item.profile = clone(profile);+ if (item?.profile?.firstName) {+ item.profile.firstName = `* ${item.profile.firstName}`;+ }+ }+ }const lastItem = items[items.length - 1];return {- items,+ data: items,meta: {- next: lastItem ? lastItem.createdAt.toISOString() : null,+ next:+ items.length === 50 && lastItem+ ? lastItem.createdAt.toISOString()+ : null,},};}),@@ -243,12 +290,12 @@ export const eventRouter = createTRPCRouter({path: string;created_at: string;}>(- `SELECT * FROM ${TABLE_NAMES.events_bots} WHERE project_id = ${escape(projectId)} ORDER BY created_at DESC LIMIT ${limit} OFFSET ${(cursor ?? 0) * limit}`,+ `SELECT * FROM ${TABLE_NAMES.events_bots} WHERE project_id = ${sqlstring.escape(projectId)} ORDER BY created_at DESC LIMIT ${limit} OFFSET ${(cursor ?? 0) * limit}`,),chQuery<{count: number;}>(- `SELECT count(*) as count FROM ${TABLE_NAMES.events_bots} WHERE project_id = ${escape(projectId)}`,+ `SELECT count(*) as count FROM ${TABLE_NAMES.events_bots} WHERE project_id = ${sqlstring.escape(projectId)}`,),]);@@ -303,7 +350,7 @@ export const eventRouter = createTRPCRouter({).query(async ({ input }) => {const res = await chQuery<{ origin: string }>(- `SELECT DISTINCT origin FROM ${TABLE_NAMES.events} WHERE project_id = ${escape(+ `SELECT DISTINCT origin FROM ${TABLE_NAMES.events} WHERE project_id = ${sqlstring.escape(input.projectId,)} AND origin IS NOT NULL AND origin != '' AND toDate(created_at) > now() - INTERVAL 30 DAY ORDER BY origin ASC`,);diff --git a/packages/trpc/src/routers/notification.ts b/packages/trpc/src/routers/notification.tsindex c8cd9f56a..04fce5850 100644--- a/packages/trpc/src/routers/notification.ts+++ b/packages/trpc/src/routers/notification.ts@@ -37,7 +37,7 @@ export const notificationRouter = createTRPCRouter({},},},- take: 100,+ take: 5000,});}),rules: protectedProcedurediff --git a/packages/trpc/src/routers/onboarding.ts b/packages/trpc/src/routers/onboarding.tsindex 191bf7808..59e14373c 100644--- a/packages/trpc/src/routers/onboarding.ts+++ b/packages/trpc/src/routers/onboarding.ts@@ -33,10 +33,7 @@ async function createOrGetOrganization(},});- if (- process.env.NEXT_PUBLIC_SELF_HOSTED !== 'true' &&- !process.env.SELF_HOSTED- ) {+ if (process.env.VITE_SELF_HOSTED !== 'true' && !process.env.SELF_HOSTED) {await addTrialEndingSoonJob(organization.id,1000 * 60 * 60 * 24 * TRIAL_DURATION_IN_DAYS * 0.9,@@ -64,7 +61,6 @@ export const onboardingRouter = createTRPCRouter({if (members.length > 0) {return {canSkip: true,- url: `/${members[0]?.organizationId}`,};}@@ -77,11 +73,10 @@ export const onboardingRouter = createTRPCRouter({if (projectAccess.length > 0) {return {canSkip: true,- url: `/${projectAccess[0]?.organizationId}/${projectAccess[0]?.projectId}`,};}- return { canSkip: false, url: null };+ return { canSkip: false };}),project: protectedProcedure.input(zOnboardingProject)diff --git a/packages/trpc/src/routers/organization.ts b/packages/trpc/src/routers/organization.tsindex c2839c7d7..21bf029a9 100644--- a/packages/trpc/src/routers/organization.ts+++ b/packages/trpc/src/routers/organization.ts@@ -1,6 +1,14 @@import { z } from 'zod';-import { connectUserToOrganization, db } from '@openpanel/db';+import {+ connectUserToOrganization,+ db,+ getInviteById,+ getInvites,+ getMembers,+ getOrganizationById,+ getOrganizations,+} from '@openpanel/db';import { zEditOrganization, zInviteUser } from '@openpanel/validation';import { generateSecureId } from '@openpanel/common/server/id';@@ -8,9 +16,24 @@ import { sendEmail } from '@openpanel/email';import { addDays } from 'date-fns';import { getOrganizationAccess } from '../access';import { TRPCAccessError, TRPCBadRequestError } from '../errors';-import { createTRPCRouter, protectedProcedure } from '../trpc';+import {+ createTRPCRouter,+ protectedProcedure,+ publicProcedure,+ rateLimitMiddleware,+} from '../trpc';export const organizationRouter = createTRPCRouter({+ get: protectedProcedure+ .input(z.object({ organizationId: z.string() }))+ .query(async ({ input }) => {+ return getOrganizationById(input.organizationId);+ }),++ list: protectedProcedure.query(async ({ ctx }) => {+ return getOrganizations(ctx.session.userId);+ }),+update: protectedProcedure.input(zEditOrganization).mutation(async ({ input, ctx }) => {@@ -116,7 +139,7 @@ export const organizationRouter = createTRPCRouter({await sendEmail('invite', {to: email,data: {- url: `${process.env.NEXT_PUBLIC_DASHBOARD_URL}/onboarding?inviteId=${invite.id}`,+ url: `${process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL}/onboarding?inviteId=${invite.id}`,organizationName: invite.organization.name,},});@@ -240,4 +263,31 @@ export const organizationRouter = createTRPCRouter({}),]);}),++ members: protectedProcedure+ .input(z.object({ organizationId: z.string() }))+ .query(async ({ input }) => {+ return getMembers(input.organizationId);+ }),++ invitations: protectedProcedure+ .input(z.object({ organizationId: z.string() }))+ .query(async ({ input }) => {+ return getInvites(input.organizationId);+ }),++ getInvite: publicProcedure+ .use(+ rateLimitMiddleware({+ max: 5,+ windowMs: 30_000,+ }),+ )+ .input(z.object({ inviteId: z.string().optional() }))+ .query(async ({ input }) => {+ if (!input.inviteId) {+ throw TRPCBadRequestError('Invite ID is required');+ }+ return getInviteById(input.inviteId);+ }),});diff --git a/packages/trpc/src/routers/overview.ts b/packages/trpc/src/routers/overview.tsindex 807820b83..881415fce 100644--- a/packages/trpc/src/routers/overview.ts+++ b/packages/trpc/src/routers/overview.ts@@ -1,4 +1,5 @@import {+ eventBuffer,getChartPrevStartEndDate,getChartStartEndDate,getOrganizationSubscriptionChartEndDate,@@ -76,6 +77,11 @@ function getCurrentAndPrevious<}export const overviewRouter = createTRPCRouter({+ liveVisitors: publicProcedure+ .input(z.object({ projectId: z.string() }))+ .query(async ({ input }) => {+ return eventBuffer.getActiveVisitorCount(input.projectId);+ }),stats: publicProcedure.input(zGetMetricsInput.omit({ startDate: true, endDate: true }).extend({diff --git a/packages/trpc/src/routers/profile.ts b/packages/trpc/src/routers/profile.tsindex 53d38fee3..f8bdb4f82 100644--- a/packages/trpc/src/routers/profile.ts+++ b/packages/trpc/src/routers/profile.ts@@ -1,23 +1,62 @@import { flatten, map, pipe, prop, sort, uniq } from 'ramda';-import { escape } from 'sqlstring';+import sqlstring from 'sqlstring';import { z } from 'zod';import {TABLE_NAMES,chQuery,createSqlBuilder,+ getProfileByIdCached,getProfileList,+ getProfileListCount,+ getProfileMetrics,getProfiles,} from '@openpanel/db';import { createTRPCRouter, protectedProcedure } from '../trpc';export const profileRouter = createTRPCRouter({+ byId: protectedProcedure+ .input(z.object({ profileId: z.string(), projectId: z.string() }))+ .query(async ({ input: { profileId, projectId } }) => {+ return getProfileByIdCached(profileId, projectId);+ }),++ metrics: protectedProcedure+ .input(z.object({ profileId: z.string(), projectId: z.string() }))+ .query(async ({ input: { profileId, projectId } }) => {+ return getProfileMetrics(profileId, projectId);+ }),++ activity: protectedProcedure+ .input(z.object({ profileId: z.string(), projectId: z.string() }))+ .query(async ({ input: { profileId, projectId } }) => {+ return chQuery<{ count: number; date: string }>(+ `SELECT count(*) as count, toStartOfDay(created_at) as date FROM ${TABLE_NAMES.events} WHERE project_id = ${sqlstring.escape(projectId)} and profile_id = ${sqlstring.escape(profileId)} GROUP BY date ORDER BY date DESC`,+ );+ }),++ mostEvents: protectedProcedure+ .input(z.object({ profileId: z.string(), projectId: z.string() }))+ .query(async ({ input: { profileId, projectId } }) => {+ return chQuery<{ count: number; name: string }>(+ `SELECT count(*) as count, name FROM ${TABLE_NAMES.events} WHERE name NOT IN ('screen_view', 'session_start', 'session_end') AND project_id = ${sqlstring.escape(projectId)} and profile_id = ${sqlstring.escape(profileId)} GROUP BY name ORDER BY count DESC`,+ );+ }),++ popularRoutes: protectedProcedure+ .input(z.object({ profileId: z.string(), projectId: z.string() }))+ .query(async ({ input: { profileId, projectId } }) => {+ return chQuery<{ count: number; path: string }>(+ `SELECT count(*) as count, path FROM ${TABLE_NAMES.events} WHERE name = 'screen_view' AND project_id = ${sqlstring.escape(projectId)} and profile_id = ${sqlstring.escape(profileId)} GROUP BY path ORDER BY count DESC LIMIT 10`,+ );+ }),+properties: protectedProcedure.input(z.object({ projectId: z.string() })).query(async ({ input: { projectId } }) => {const events = await chQuery<{ keys: string[] }>(- `SELECT distinct mapKeys(properties) as keys from ${TABLE_NAMES.profiles} where project_id = ${escape(projectId)};`,+ `SELECT distinct mapKeys(properties) as keys from ${TABLE_NAMES.profiles} where project_id = ${sqlstring.escape(projectId)};`,);const properties = events@@ -41,11 +80,21 @@ export const profileRouter = createTRPCRouter({cursor: z.number().optional(),take: z.number().default(50),search: z.string().optional(),- // filters: z.array(zChartEventFilter).default([]),+ isExternal: z.boolean().optional(),}),)- .query(async ({ input: { projectId, cursor, take, search } }) => {- return getProfileList({ projectId, cursor, take, search });+ .query(async ({ input }) => {+ const [data, count] = await Promise.all([+ getProfileList(input),+ getProfileListCount(input),+ ]);+ return {+ data,+ meta: {+ count,+ pageCount: input.take,+ },+ };}),powerUsers: protectedProcedure@@ -54,28 +103,42 @@ export const profileRouter = createTRPCRouter({projectId: z.string(),cursor: z.number().optional(),take: z.number().default(50),- // filters: z.array(zChartEventFilter).default([]),}),).query(async ({ input: { projectId, cursor, take } }) => {const res = await chQuery<{ profile_id: string; count: number }>(- `SELECT profile_id, count(*) as count from ${TABLE_NAMES.events} where profile_id != '' and project_id = ${escape(projectId)} group by profile_id order by count() DESC LIMIT ${take} ${cursor ? `OFFSET ${cursor * take}` : ''}`,+ `+ SELECT profile_id, count(*) as count+ FROM ${TABLE_NAMES.events}+ WHERE+ profile_id != ''+ AND project_id = ${sqlstring.escape(projectId)}+ GROUP BY profile_id+ ORDER BY count() DESC+ LIMIT ${take} ${cursor ? `OFFSET ${cursor * take}` : ''}`,);const profiles = await getProfiles(res.map((r) => r.profile_id),projectId,);- return (- res- .map((item) => {- return {- count: item.count,- ...(profiles.find((p) => p.id === item.profile_id)! ?? {}),- };- })- // Make sure we return actual profiles- .filter((item) => item.id)- );++ const data = res+ .map((item) => {+ return {+ count: item.count,+ ...(profiles.find((p) => p.id === item.profile_id)! ?? {}),+ };+ })+ // Make sure we return actual profiles+ .filter((item) => item.id);++ return {+ data,+ meta: {+ count: data.length,+ pageCount: take,+ },+ };}),values: protectedProcedure@@ -88,9 +151,9 @@ export const profileRouter = createTRPCRouter({.query(async ({ input: { property, projectId } }) => {const { sb, getSql } = createSqlBuilder();sb.from = TABLE_NAMES.profiles;- sb.where.project_id = `project_id = ${escape(projectId)}`;+ sb.where.project_id = `project_id = ${sqlstring.escape(projectId)}`;if (property.startsWith('properties.')) {- sb.select.values = `distinct arrayMap(x -> trim(x), mapValues(mapExtractKeyLike(properties, ${escape(+ sb.select.values = `distinct arrayMap(x -> trim(x), mapValues(mapExtractKeyLike(properties, ${sqlstring.escape(property.replace(/^properties\./, '').replace('.*.', '.%.'),)}))) as values`;} else {diff --git a/packages/trpc/src/routers/project.ts b/packages/trpc/src/routers/project.tsindex 31fbce960..eab67648d 100644--- a/packages/trpc/src/routers/project.ts+++ b/packages/trpc/src/routers/project.ts@@ -6,19 +6,38 @@ import { hashPassword } from '@openpanel/common/server';import {type Prisma,db,- getClientById,getClientByIdCached,getId,getProjectByIdCached,+ getProjectWithClients,getProjectsByOrganizationId,} from '@openpanel/db';import { zOnboardingProject, zProject } from '@openpanel/validation';-import { addDays, addHours } from 'date-fns';+import { addHours } from 'date-fns';import { getProjectAccess } from '../access';import { TRPCAccessError, TRPCBadRequestError } from '../errors';import { createTRPCRouter, protectedProcedure } from '../trpc';export const projectRouter = createTRPCRouter({+ getProjectWithClients: protectedProcedure+ .input(+ z.object({+ projectId: z.string(),+ }),+ )+ .query(async ({ input: { projectId }, ctx }) => {+ const access = await getProjectAccess({+ userId: ctx.session.userId,+ projectId,+ });++ if (!access) {+ throw TRPCAccessError('You do not have access to this project');+ }++ return getProjectWithClients(projectId);+ }),+list: protectedProcedure.input(z.object({diff --git a/packages/trpc/src/routers/realtime.ts b/packages/trpc/src/routers/realtime.tsnew file mode 100644index 000000000..336f541eb--- /dev/null+++ b/packages/trpc/src/routers/realtime.ts@@ -0,0 +1,143 @@+import { z } from 'zod';++import {+ type EventMeta,+ TABLE_NAMES,+ ch,+ chQuery,+ clix,+ db,+ formatClickhouseDate,+ getEventList,+} from '@openpanel/db';++import { subMinutes } from 'date-fns';+import sqlstring from 'sqlstring';+import { createTRPCRouter, protectedProcedure } from '../trpc';++export const realtimeRouter = createTRPCRouter({+ coordinates: protectedProcedure+ .input(z.object({ projectId: z.string() }))+ .query(async ({ input }) => {+ const res = await chQuery<{+ city: string;+ country: string;+ long: number;+ lat: number;+ }>(+ `SELECT DISTINCT country, city, longitude as long, latitude as lat FROM ${TABLE_NAMES.events} WHERE project_id = ${sqlstring.escape(input.projectId)} AND created_at >= '${formatClickhouseDate(subMinutes(new Date(), 30))}' ORDER BY created_at DESC`,+ );++ return res;+ }),+ activeSessions: protectedProcedure+ .input(z.object({ projectId: z.string() }))+ .query(async ({ input }) => {+ return getEventList({+ projectId: input.projectId,+ take: 30,+ select: {+ name: true,+ path: true,+ origin: true,+ referrer: true,+ referrerName: true,+ referrerType: true,+ country: true,+ device: true,+ os: true,+ browser: true,+ createdAt: true,+ profile: true,+ meta: true,+ },+ });+ }),+ paths: protectedProcedure+ .input(z.object({ projectId: z.string() }))+ .query(async ({ input }) => {+ const res = await clix(ch)+ .select<{+ origin: string;+ path: string;+ count: number;+ avg_duration: number;+ }>([+ 'origin',+ 'path',+ 'COUNT(*) as count',+ 'round(avg(duration)/1000, 2) as avg_duration',+ ])+ .from(TABLE_NAMES.events)+ .where('project_id', '=', input.projectId)+ .where('path', '!=', '')+ .where(+ 'created_at',+ '>=',+ formatClickhouseDate(subMinutes(new Date(), 30)),+ )+ .groupBy(['path', 'origin'])+ .orderBy('count', 'DESC')+ .limit(100)+ .execute();++ return res;+ }),+ referrals: protectedProcedure+ .input(z.object({ projectId: z.string() }))+ .query(async ({ input }) => {+ const res = await clix(ch)+ .select<{+ referrer_name: string;+ count: number;+ avg_duration: number;+ }>([+ 'referrer_name',+ 'COUNT(*) as count',+ 'round(avg(duration)/1000, 2) as avg_duration',+ ])+ .from(TABLE_NAMES.events)+ .where('project_id', '=', input.projectId)+ .where('referrer_name', 'IS NOT NULL')+ .where(+ 'created_at',+ '>=',+ formatClickhouseDate(subMinutes(new Date(), 30)),+ )+ .groupBy(['referrer_name'])+ .orderBy('count', 'DESC')+ .limit(100)+ .execute();++ return res;+ }),+ geo: protectedProcedure+ .input(z.object({ projectId: z.string() }))+ .query(async ({ input }) => {+ const res = await clix(ch)+ .select<{+ country: string;+ city: string;+ count: number;+ avg_duration: number;+ }>([+ 'country',+ 'city',+ 'COUNT(*) as count',+ 'round(avg(duration)/1000, 2) as avg_duration',+ ])+ .from(TABLE_NAMES.events)+ .where('project_id', '=', input.projectId)+ .where(+ 'created_at',+ '>=',+ formatClickhouseDate(subMinutes(new Date(), 30)),+ )+ .groupBy(['country', 'city'])+ .orderBy('count', 'DESC')+ .limit(100)+ .execute();++ return res;+ }),+});diff --git a/packages/trpc/src/routers/reference.ts b/packages/trpc/src/routers/reference.tsindex 7fbbf2dda..16578bf8c 100644--- a/packages/trpc/src/routers/reference.ts+++ b/packages/trpc/src/routers/reference.ts@@ -1,11 +1,6 @@import { z } from 'zod';-import {- db,- getChartStartEndDate,- getReferences,- getSettingsForProject,-} from '@openpanel/db';+import { db, getChartStartEndDate, getSettingsForProject } from '@openpanel/db';import { zCreateReference, zRange } from '@openpanel/validation';import { getProjectAccess } from '../access';@@ -13,6 +8,32 @@ import { TRPCAccessError } from '../errors';import { createTRPCRouter, protectedProcedure, publicProcedure } from '../trpc';export const referenceRouter = createTRPCRouter({+ getReferences: protectedProcedure+ .input(+ z.object({+ projectId: z.string(),+ cursor: z.number().optional(),+ }),+ )+ .query(async ({ input: { projectId, cursor }, ctx }) => {+ const access = await getProjectAccess({+ userId: ctx.session.userId,+ projectId,+ });++ if (!access) {+ throw TRPCAccessError('You do not have access to this project');+ }++ return db.reference.findMany({+ where: {+ projectId,+ },+ take: 50,+ skip: cursor ? cursor * 50 : 0,+ });+ }),+create: protectedProcedure.input(zCreateReference).mutation(@@ -27,6 +48,38 @@ export const referenceRouter = createTRPCRouter({});},),+ update: protectedProcedure+ .input(+ z.object({+ id: z.string(),+ title: z.string(),+ description: z.string().nullish(),+ datetime: z.string(),+ }),+ )+ .mutation(async ({ input, ctx }) => {+ const existing = await db.reference.findUniqueOrThrow({+ where: { id: input.id },+ });++ const access = await getProjectAccess({+ userId: ctx.session.userId,+ projectId: existing.projectId,+ });++ if (!access) {+ throw TRPCAccessError('You do not have access to this project');+ }++ return db.reference.update({+ where: { id: input.id },+ data: {+ title: input.title,+ description: input.description ?? null,+ date: new Date(input.datetime),+ },+ });+ }),delete: protectedProcedure.input(z.object({ id: z.string() })).mutation(async ({ input: { id }, ctx }) => {@@ -63,7 +116,7 @@ export const referenceRouter = createTRPCRouter({.query(async ({ input: { projectId, ...input } }) => {const { timezone } = await getSettingsForProject(projectId);const { startDate, endDate } = getChartStartEndDate(input, timezone);- return getReferences({+ return db.reference.findMany({where: {projectId,date: {diff --git a/packages/trpc/src/routers/report.ts b/packages/trpc/src/routers/report.tsindex a1ef76ae6..7d5f75b31 100644--- a/packages/trpc/src/routers/report.ts+++ b/packages/trpc/src/routers/report.ts@@ -1,6 +1,6 @@import { z } from 'zod';-import { db } from '@openpanel/db';+import { db, getReportById, getReportsByDashboardId } from '@openpanel/db';import { zReportInput } from '@openpanel/validation';import { getProjectAccess } from '../access';@@ -8,6 +8,16 @@ import { TRPCAccessError } from '../errors';import { createTRPCRouter, protectedProcedure } from '../trpc';export const reportRouter = createTRPCRouter({+ list: protectedProcedure+ .input(+ z.object({+ dashboardId: z.string(),+ projectId: z.string(),+ }),+ )+ .query(async ({ input: { dashboardId, projectId }, ctx }) => {+ return getReportsByDashboardId(dashboardId);+ }),create: protectedProcedure.input(z.object({@@ -125,4 +135,127 @@ export const reportRouter = createTRPCRouter({},});}),+ get: protectedProcedure+ .input(+ z.object({+ reportId: z.string(),+ }),+ )+ .query(async ({ input: { reportId }, ctx }) => {+ return getReportById(reportId);+ }),+ updateLayout: protectedProcedure+ .input(+ z.object({+ reportId: z.string(),+ layout: z.object({+ x: z.number(),+ y: z.number(),+ w: z.number(),+ h: z.number(),+ minW: z.number().optional(),+ minH: z.number().optional(),+ maxW: z.number().optional(),+ maxH: z.number().optional(),+ }),+ }),+ )+ .mutation(async ({ input: { reportId, layout }, ctx }) => {+ const report = await db.report.findUniqueOrThrow({+ where: {+ id: reportId,+ },+ });++ const access = await getProjectAccess({+ userId: ctx.session.userId,+ projectId: report.projectId,+ });++ if (!access) {+ throw TRPCAccessError('You do not have access to this project');+ }++ // Upsert the layout (create if doesn't exist, update if it does)+ return db.reportLayout.upsert({+ where: {+ reportId: reportId,+ },+ create: {+ reportId: reportId,+ x: layout.x,+ y: layout.y,+ w: layout.w,+ h: layout.h,+ minW: layout.minW,+ minH: layout.minH,+ maxW: layout.maxW,+ maxH: layout.maxH,+ },+ update: {+ x: layout.x,+ y: layout.y,+ w: layout.w,+ h: layout.h,+ minW: layout.minW,+ minH: layout.minH,+ maxW: layout.maxW,+ maxH: layout.maxH,+ },+ });+ }),+ getLayouts: protectedProcedure+ .input(+ z.object({+ dashboardId: z.string(),+ projectId: z.string(),+ }),+ )+ .query(async ({ input: { dashboardId, projectId }, ctx }) => {+ const access = await getProjectAccess({+ userId: ctx.session.userId,+ projectId: projectId,+ });++ if (!access) {+ throw TRPCAccessError('You do not have access to this project');+ }++ return db.reportLayout.findMany({+ where: {+ report: {+ dashboardId: dashboardId,+ },+ },+ include: {+ report: true,+ },+ });+ }),+ resetLayout: protectedProcedure+ .input(+ z.object({+ dashboardId: z.string(),+ projectId: z.string(),+ }),+ )+ .mutation(async ({ input: { dashboardId, projectId }, ctx }) => {+ const access = await getProjectAccess({+ userId: ctx.session.userId,+ projectId: projectId,+ });++ if (!access) {+ throw TRPCAccessError('You do not have access to this project');+ }++ // Delete all layout data for reports in this dashboard+ return db.reportLayout.deleteMany({+ where: {+ report: {+ dashboardId: dashboardId,+ },+ },+ });+ }),});diff --git a/packages/trpc/src/routers/session.ts b/packages/trpc/src/routers/session.tsnew file mode 100644index 000000000..1dc98792b--- /dev/null+++ b/packages/trpc/src/routers/session.ts@@ -0,0 +1,64 @@+import { z } from 'zod';++import { getSessionList, sessionService } from '@openpanel/db';+import { zChartEventFilter } from '@openpanel/validation';++import { createTRPCRouter, protectedProcedure } from '../trpc';++export function encodeCursor(cursor: {+ createdAt: string;+ id: string;+}): string {+ const json = JSON.stringify(cursor);+ return Buffer.from(json, 'utf8').toString('base64url'); // URL-safe+}++export function decodeCursor(+ encoded: string,+): { createdAt: string; id: string } | null {+ try {+ const json = Buffer.from(encoded, 'base64url').toString('utf8');+ const obj = JSON.parse(json);+ if (typeof obj.createdAt === 'string' && typeof obj.id === 'string') {+ return obj;+ }+ return null;+ } catch {+ return null;+ }+}++export const sessionRouter = createTRPCRouter({+ list: protectedProcedure+ .input(+ z.object({+ projectId: z.string(),+ profileId: z.string().optional(),+ cursor: z.string().nullish(),+ filters: z.array(zChartEventFilter).default([]),+ startDate: z.date().optional(),+ endDate: z.date().optional(),+ search: z.string().optional(),+ take: z.number().default(50),+ }),+ )+ .query(async ({ input }) => {+ const cursor = input.cursor ? decodeCursor(input.cursor) : null;+ const data = await getSessionList({+ ...input,+ cursor,+ });+ return {+ data: data.items,+ meta: {+ next: data.meta.next ? encodeCursor(data.meta.next) : undefined,+ },+ };+ }),++ byId: protectedProcedure+ .input(z.object({ sessionId: z.string(), projectId: z.string() }))+ .query(async ({ input: { sessionId, projectId } }) => {+ return sessionService.byId(sessionId, projectId);+ }),+});diff --git a/packages/trpc/src/routers/share.ts b/packages/trpc/src/routers/share.tsindex 356c46ef3..ecc4a6b6c 100644--- a/packages/trpc/src/routers/share.ts+++ b/packages/trpc/src/routers/share.ts@@ -4,12 +4,59 @@ import { db } from '@openpanel/db';import { zShareOverview } from '@openpanel/validation';import { hashPassword } from '@openpanel/auth';+import { z } from 'zod';+import { TRPCNotFoundError } from '../errors';import { createTRPCRouter, protectedProcedure } from '../trpc';const uid = new ShortUniqueId({ length: 6 });export const shareRouter = createTRPCRouter({- shareOverview: protectedProcedure+ overview: protectedProcedure+ .input(+ z+ .object({+ projectId: z.string(),+ })+ .or(+ z.object({+ shareId: z.string(),+ }),+ ),+ )+ .query(async ({ input, ctx }) => {+ const share = await db.shareOverview.findUnique({+ include: {+ organization: {+ select: {+ name: true,+ },+ },+ project: {+ select: {+ name: true,+ },+ },+ },+ where:+ 'projectId' in input+ ? {+ projectId: input.projectId,+ }+ : {+ id: input.shareId,+ },+ });++ if (!share) {+ throw TRPCNotFoundError('Share not found');+ }++ return {+ ...share,+ hasAccess: !!ctx.cookies[`shared-overview-${share?.id}`],+ };+ }),+ createOverview: protectedProcedure.input(zShareOverview).mutation(async ({ input }) => {const passwordHash = input.passworddiff --git a/packages/trpc/src/routers/subscription.ts b/packages/trpc/src/routers/subscription.tsindex e3d210a95..4c3e38e4c 100644--- a/packages/trpc/src/routers/subscription.ts+++ b/packages/trpc/src/routers/subscription.ts@@ -75,7 +75,7 @@ export const subscriptionRouter = createTRPCRouter({}const checkout = await createCheckout({- priceId: input.productPriceId,+ productId: input.productId,organizationId: input.organizationId,projectId: input.projectId ?? undefined,user,diff --git a/packages/trpc/src/routers/ticket.ts b/packages/trpc/src/routers/ticket.tsdeleted file mode 100644index 0870d29e5..000000000--- a/packages/trpc/src/routers/ticket.ts+++ /dev/null@@ -1,37 +0,0 @@-import { SeventySevenClient } from '@seventy-seven/sdk';-import { z } from 'zod';--import { getUserById } from '@openpanel/db';--import { createTRPCRouter, protectedProcedure } from '../trpc';--const API_KEY = process.env.SEVENTY_SEVEN_API_KEY!;-const client = new SeventySevenClient(API_KEY);--export const ticketRouter = createTRPCRouter({- create: protectedProcedure- .input(- z.object({- subject: z.string(),- body: z.string(),- meta: z.record(z.string(), z.unknown()),- }),- )- .mutation(async ({ input, ctx }) => {- if (!API_KEY) {- throw new Error('Ticket system not configured');- }-- const user = await getUserById(ctx.session.userId);-- return client.createTicket({- subject: input.subject,- body: input.body,- meta: input.meta,- senderEmail: user?.email || 'none',- senderFullName: user?.firstName- ? [user?.firstName, user?.lastName].filter(Boolean).join(' ')- : 'none',- });- }),-});diff --git a/packages/trpc/src/routers/user.ts b/packages/trpc/src/routers/user.tsindex f74a428a1..fc83a34f2 100644--- a/packages/trpc/src/routers/user.ts+++ b/packages/trpc/src/routers/user.ts@@ -5,6 +5,12 @@ import { db } from '@openpanel/db';import { createTRPCRouter, protectedProcedure, publicProcedure } from '../trpc';export const userRouter = createTRPCRouter({+ test: publicProcedure.query(async ({ ctx }) => {+ const user = await db.user.findFirst();+ return {+ user,+ };+ }),update: protectedProcedure.input(z.object({diff --git a/packages/trpc/src/trpc.ts b/packages/trpc/src/trpc.tsindex 10f709d27..652816fb0 100644--- a/packages/trpc/src/trpc.ts+++ b/packages/trpc/src/trpc.ts@@ -4,8 +4,12 @@ import { has } from 'ramda';import superjson from 'superjson';import { ZodError } from 'zod';-import { COOKIE_OPTIONS, validateSessionToken } from '@openpanel/auth';-import { getRedisCache } from '@openpanel/redis';+import {+ COOKIE_OPTIONS,+ EMPTY_SESSION,+ validateSessionToken,+} from '@openpanel/auth';+import { getCache, getRedisCache } from '@openpanel/redis';import type { ISetCookie } from '@openpanel/validation';import {createTrpcRedisLimiter,@@ -31,6 +35,7 @@ export const rateLimitMiddleware = ({});export async function createContext({ req, res }: CreateFastifyContextOptions) {+ const cookies = (req as any).cookies as Record<string, string | undefined>;const setCookie: ISetCookie = (key, value, options) => {// @ts-ignoreres.setCookie(key, value, {@@ -39,8 +44,17 @@ export async function createContext({ req, res }: CreateFastifyContextOptions) {});};- // @ts-ignore- const session = await validateSessionToken(req.cookies?.session);+ const session = cookies?.session+ ? await getCache(`session:${cookies?.session}`, 1000 * 60 * 5, async () => {+ return validateSessionToken(cookies.session!);+ })+ : EMPTY_SESSION;++ if (process.env.NODE_ENV !== 'production') {+ await new Promise((res) =>+ setTimeout(() => res(1), Math.min(Math.random() * 500, 200)),+ );+ }return {req,@@ -49,6 +63,7 @@ export async function createContext({ req, res }: CreateFastifyContextOptions) {// we do not get types for `setCookie` from fastify// so define it here and be safe in routerssetCookie,+ cookies,};}export type Context = Awaited<ReturnType<typeof createContext>>;@@ -88,7 +103,8 @@ const enforceUserIsAuthed = t.middleware(async ({ ctx, next }) => {});// Only used on protected routes-const enforceAccess = t.middleware(async ({ ctx, next, rawInput, type }) => {+const enforceAccess = t.middleware(async ({ ctx, next, type, getRawInput }) => {+ const rawInput = await getRawInput();if (type === 'mutation' && process.env.DEMO_USER_ID) {throw new TRPCError({code: 'UNAUTHORIZED',@@ -124,7 +140,8 @@ const enforceAccess = t.middleware(async ({ ctx, next, rawInput, type }) => {export const createTRPCRouter = t.router;const loggerMiddleware = t.middleware(- async ({ ctx, next, rawInput, path, input, type }) => {+ async ({ ctx, next, getRawInput, path, input, type }) => {+ const rawInput = await getRawInput();// Only log mutationsif (type === 'mutation') {ctx.req.log.info('TRPC mutation', {@@ -153,7 +170,8 @@ const middlewareMarker = 'middlewareMarker' as 'middlewareMarker' & {};export const cacheMiddleware = (cbOrTtl: number | ((input: any) => number)) =>- t.middleware(async ({ ctx, next, path, type, rawInput, input }) => {+ t.middleware(async ({ ctx, next, path, type, getRawInput, input }) => {+ const rawInput = await getRawInput();if (type !== 'query') {return next();}diff --git a/packages/validation/package.json b/packages/validation/package.jsonindex 7a841536d..a92b4c6ba 100644--- a/packages/validation/package.json+++ b/packages/validation/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/validation","version": "0.0.1",+ "type": "module","main": "index.ts","scripts": {"typecheck": "tsc --noEmit"@@ -11,8 +12,8 @@},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",+ "@types/node": "catalog:","prisma": "^5.1.1",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/patches/nuqs.patch b/patches/nuqs.patchnew file mode 100644index 000000000..4ee986dfb--- /dev/null+++ b/patches/nuqs.patch@@ -0,0 +1,18 @@+diff --git a/package.json b/package.json+index b8472a122d4a0c0e1650a082d72fb05bf567ddd1..721ffb9e46665f179171e336c26864098f24fb76 100644+--- a/package.json++++ b/package.json+@@ -141,12 +141,7 @@+ "@standard-schema/spec": "1.0.0"+ },+ "peerDependencies": {+- "@remix-run/react": ">=2",+- "@tanstack/react-router": "^1",+- "next": ">=14.2.0",+- "react": ">=18.2.0 || ^19.0.0-0",+- "react-router": "^6 || ^7",+- "react-router-dom": "^6 || ^7"++ "@tanstack/react-router": "^1"+ },+ "peerDependenciesMeta": {+ "@remix-run/react": {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 115beca39..7ba509518 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -6,10 +6,33 @@ settings:catalogs:default:+ '@types/node':+ specifier: ^24.7.1+ version: 24.7.1+ '@types/react':+ specifier: ^19.0.0+ version: 19.1.11+ '@types/react-dom':+ specifier: ^19.0.0+ version: 19.1.8+ react:+ specifier: ^19.0.0+ version: 19.1.1+ react-dom:+ specifier: ^19.0.0+ version: 19.1.1+ typescript:+ specifier: ^5.9.3+ version: 5.9.3zod:specifier: ^3.24.2version: 3.24.2+patchedDependencies:+ nuqs:+ hash: 4f93812bf7a04685f9477b2935e3acbf2aa24dfbb1b00b9ae0ed8f7a2877a98e+ path: patches/nuqs.patch+importers:.:@@ -24,8 +47,8 @@ importers:specifier: ^7.5.4version: 7.6.0typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3winston:specifier: ^3.14.2version: 3.14.2@@ -33,12 +56,15 @@ importers:'@biomejs/biome':specifier: 1.9.1version: 1.9.1+ depcheck:+ specifier: ^1.4.7+ version: 1.4.7simple-git-hooks:specifier: ^2.12.1version: 2.12.1vitest:specifier: ^3.0.4- version: 3.1.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ version: 3.1.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])apps/api:dependencies:@@ -106,14 +132,11 @@ importers:specifier: workspace:*version: link:../../packages/validation'@trpc/server':- specifier: ^10.45.2- version: 10.45.2+ specifier: ^11.6.0+ version: 11.6.0([email protected])ai:specifier: ^4.2.10- version: 4.2.10([email protected])([email protected])- bcrypt:- specifier: ^5.1.1- version: 5.1.1+ version: 4.2.10([email protected])([email protected])fast-json-stable-hash:specifier: ^1.0.3version: 1.0.3@@ -128,10 +151,7 @@ importers:version: 5.0.0groupmq:specifier: 1.0.0-next.19- version: 1.0.0-next.19([email protected])- ico-to-png:- specifier: ^0.2.2- version: 0.2.2+ version: 1.0.0-next.19([email protected])jsonwebtoken:specifier: ^9.0.2version: 9.0.2@@ -202,207 +222,352 @@ importers:js-yaml:specifier: ^4.1.0version: 4.1.0- tsup:- specifier: ^7.2.0- version: 7.3.0([email protected])([email protected])+ tsdown:+ specifier: ^0.14.2+ version: 0.14.2([email protected])+ typescript:+ specifier: 'catalog:'+ version: 5.9.3++ apps/public:+ dependencies:+ '@hyperdx/node-opentelemetry':+ specifier: ^0.8.1+ version: 0.8.1+ '@number-flow/react':+ specifier: 0.3.5+ '@openpanel/nextjs':+ specifier: ^1.0.5+ version: 1.0.5([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ '@openpanel/payments':+ specifier: workspace:^+ version: link:../../packages/payments+ '@openpanel/sdk-info':+ specifier: workspace:^+ version: link:../../packages/sdks/_info+ '@openstatus/react':+ specifier: 0.0.3+ version: 0.0.3([email protected])+ '@radix-ui/react-accordion':+ specifier: 1.2.3+ version: 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slider':+ specifier: 1.2.3+ version: 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot':+ specifier: 1.1.2+ version: 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-tooltip':+ specifier: 1.1.8+ version: 1.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ class-variance-authority:+ specifier: 0.7.1+ version: 0.7.1+ clsx:+ specifier: 2.1.1+ version: 2.1.1+ dotted-map:+ specifier: 2.2.3+ version: 2.2.3+ framer-motion:+ specifier: 11.18.2+ version: 11.18.2(@emotion/[email protected])([email protected]([email protected]))([email protected])+ fumadocs-core:+ specifier: 14.1.1+ version: 14.1.1(@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ fumadocs-mdx:+ specifier: 11.1.1+ version: 11.1.1([email protected])([email protected](@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))+ fumadocs-ui:+ specifier: 14.1.1+ version: 14.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ geist:+ specifier: 1.3.1+ version: 1.3.1([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))+ lucide-react:+ specifier: 0.454.0+ version: 0.454.0([email protected])+ next:+ specifier: 15.0.3+ version: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ react:+ specifier: 'catalog:'+ version: 19.1.1+ react-dom:+ specifier: 'catalog:'+ version: 19.1.1([email protected])+ rehype-external-links:+ specifier: 3.0.0+ version: 3.0.0+ tailwind-merge:+ specifier: 1.14.0+ version: 1.14.0+ tailwindcss-animate:+ specifier: 1.0.7+ version: 1.0.7([email protected])+ zod:+ specifier: 'catalog:'+ version: 3.24.2+ devDependencies:+ '@types/mdx':+ specifier: ^2.0.13+ version: 2.0.13+ '@types/node':+ specifier: 'catalog:'+ version: 24.7.1+ '@types/react':+ specifier: 'catalog:'+ version: 19.1.11+ '@types/react-dom':+ specifier: 'catalog:'+ version: 19.1.8(@types/[email protected])+ autoprefixer:+ specifier: ^10.4.20+ version: 10.4.20([email protected])+ postcss:+ specifier: ^8.4.47+ version: 8.4.47+ tailwindcss:+ specifier: 3.4.17+ version: 3.4.17typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3- apps/dashboard:+ apps/start:dependencies:'@ai-sdk/react':specifier: ^1.2.5- version: 1.2.5([email protected])([email protected])+ version: 1.2.5([email protected])([email protected])'@clickhouse/client':specifier: ^1.2.0version: 1.2.0'@dnd-kit/core':specifier: ^6.3.1'@dnd-kit/sortable':specifier: ^10.0.0- version: 10.0.0(@dnd-kit/[email protected]([email protected]([email protected]))([email protected]))([email protected])+ version: 10.0.0(@dnd-kit/[email protected]([email protected]([email protected]))([email protected]))([email protected])'@dnd-kit/utilities':specifier: ^3.2.2- version: 3.2.2([email protected])+ version: 3.2.2([email protected])+ '@faker-js/faker':+ specifier: ^9.6.0+ version: 9.9.0'@hookform/resolvers':specifier: ^3.3.4- version: 3.3.4([email protected]([email protected]))+ version: 3.3.4([email protected]([email protected]))'@hyperdx/node-opentelemetry':specifier: ^0.8.1version: 0.8.1- '@openpanel/auth':- specifier: workspace:^- version: link:../../packages/auth+ '@number-flow/react':+ specifier: 0.3.5'@openpanel/common':specifier: workspace:^version: link:../../packages/common'@openpanel/constants':specifier: workspace:^version: link:../../packages/constants- '@openpanel/db':- specifier: workspace:^- version: link:../../packages/db'@openpanel/integrations':specifier: workspace:^version: link:../../packages/integrations'@openpanel/json':specifier: workspace:*version: link:../../packages/json- '@openpanel/nextjs':- specifier: 1.0.3- version: 1.0.3([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- '@openpanel/queue':- specifier: workspace:^- version: link:../../packages/queue+ '@openpanel/payments':+ specifier: workspace:*+ version: link:../../packages/payments'@openpanel/sdk-info':specifier: workspace:^version: link:../../packages/sdks/_info'@openpanel/validation':specifier: workspace:^version: link:../../packages/validation- '@prisma/nextjs-monorepo-workaround-plugin':- specifier: ^5.12.1- version: 5.16.1+ '@openpanel/web':+ specifier: ^1.0.1+ version: 1.0.1'@radix-ui/react-accordion':- specifier: ^1.1.2- version: 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.2.12+ version: 1.2.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([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]))([email protected])+ specifier: ^1.1.15+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-aspect-ratio':- specifier: ^1.0.3- version: 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.1.7+ version: 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-avatar':- specifier: ^1.0.4- version: 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.1.10+ version: 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-checkbox':- specifier: ^1.0.4- version: 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.3.3+ version: 1.3.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-dialog':- specifier: ^1.0.5- version: 1.0.5(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.1.15+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([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]))([email protected])+ specifier: ^2.1.16+ version: 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-label':- specifier: ^2.0.2- version: 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^2.1.7+ version: 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-popover':- specifier: ^1.0.7- version: 1.0.7(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.1.15+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-portal':- specifier: ^1.1.1- version: 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.1.9+ version: 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-progress':- specifier: ^1.0.3- version: 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.1.7+ version: 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-radio-group':- specifier: ^1.1.3- version: 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.3.8+ version: 1.3.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-scroll-area':- specifier: ^1.0.5- version: 1.0.5(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.2.10+ version: 1.2.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-select':+ specifier: ^2.2.6+ version: 2.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator':+ specifier: ^1.1.7+ version: 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slider':+ specifier: 1.2.3+ version: 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-slot':- specifier: ^1.0.2- version: 1.0.2(@types/[email protected])([email protected])+ specifier: ^1.2.3+ version: 1.2.3(@types/[email protected])([email protected])'@radix-ui/react-switch':- specifier: ^1.0.3- version: 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.2.6+ version: 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-tabs':- specifier: ^1.0.4- version: 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.1.13+ version: 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([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]))([email protected])+ specifier: ^1.2.15+ version: 1.2.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-toggle':- specifier: ^1.0.3- version: 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.1.10+ version: 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-toggle-group':- specifier: ^1.0.4- version: 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.1.11+ version: 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-tooltip':- specifier: ^1.0.7- version: 1.0.7(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^1.2.8+ version: 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@reduxjs/toolkit':- specifier: ^1.9.7- version: 1.9.7([email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected]))([email protected])- '@t3-oss/env-nextjs':- specifier: ^0.7.3- version: 0.7.3([email protected])([email protected])+ specifier: ^2.8.2+ version: 2.8.2([email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected]))([email protected])+ '@sentry/tanstackstart-react':+ specifier: ^9.12.0+ version: 9.46.0([email protected])'@tailwindcss/container-queries':specifier: ^0.1.1- version: 0.1.1([email protected])+ version: 0.1.1([email protected])'@tailwindcss/typography':specifier: ^0.5.15- version: 0.5.15([email protected])+ version: 0.5.15([email protected])+ '@tailwindcss/vite':+ specifier: ^4.0.6+ version: 4.1.12([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tanstack/match-sorter-utils':+ specifier: ^8.19.4+ version: 8.19.4+ '@tanstack/react-devtools':+ specifier: ^0.7.6+ version: 0.7.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])'@tanstack/react-query':- specifier: ^4.36.1- version: 4.36.1([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])+ specifier: ^5.90.2+ version: 5.90.2([email protected])+ '@tanstack/react-query-devtools':+ specifier: ^5.90.2+ '@tanstack/react-router':+ specifier: ^1.132.47+ '@tanstack/react-router-devtools':+ specifier: ^1.132.51+ version: 1.132.51(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@tanstack/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ '@tanstack/react-router-ssr-query':+ specifier: ^1.132.47+ version: 1.132.47(@tanstack/[email protected])(@tanstack/[email protected]([email protected]))(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@tanstack/[email protected])([email protected]([email protected]))([email protected])+ '@tanstack/react-start':+ specifier: ^1.132.56+ version: 1.132.56([email protected]([email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tanstack/react-store':+ specifier: ^0.8.0'@tanstack/react-table':- specifier: ^8.11.8+ specifier: ^8.21.3'@tanstack/react-virtual':- specifier: ^3.13.2+ specifier: ^3.13.12+ '@tanstack/router-plugin':+ specifier: ^1.132.56+ version: 1.132.56(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tanstack/store':+ specifier: ^0.8.0+ version: 0.8.0'@trpc/client':- specifier: ^10.45.2- version: 10.45.2(@trpc/[email protected])- '@trpc/next':- specifier: ^10.45.2- version: 10.45.2(@tanstack/[email protected]([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected]))(@trpc/[email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ specifier: ^11.6.0'@trpc/react-query':- specifier: ^10.45.2- version: 10.45.2(@tanstack/[email protected]([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^11.6.0+ version: 11.6.0(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])'@trpc/server':- specifier: ^10.45.2- version: 10.45.2+ specifier: ^11.6.0+ version: 11.6.0([email protected])+ '@trpc/tanstack-react-query':+ specifier: ^11.6.0+ version: 11.6.0(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])'@types/d3':specifier: ^7.4.3version: 7.4.3ai:specifier: ^4.2.10- version: 4.2.10([email protected])([email protected])- bcrypt:- specifier: ^5.1.1- version: 5.1.1+ version: 4.2.10([email protected])([email protected])bind-event-listener:specifier: ^3.0.0version: 3.0.0class-variance-authority:- specifier: ^0.7.0- version: 0.7.0+ specifier: ^0.7.1+ version: 0.7.1clsx:- specifier: ^2.1.0- version: 2.1.0+ specifier: ^2.1.1+ version: 2.1.1cmdk:specifier: ^0.2.1d3:specifier: ^7.8.5version: 7.8.5date-fns:specifier: ^3.3.1version: 3.3.1+ debounce:+ specifier: ^2.2.0+ version: 2.2.0+ embla-carousel-autoplay:+ specifier: ^8.6.0+ version: 8.6.0([email protected])embla-carousel-react:specifier: 8.0.0-rc22- version: 8.0.0-rc22([email protected])+ version: 8.0.0-rc22([email protected])flag-icons:specifier: ^7.1.0version: 7.1.0framer-motion:specifier: ^11.0.28- version: 11.0.28(@emotion/[email protected])([email protected]([email protected]))([email protected])- geist:- specifier: ^1.3.1- version: 1.3.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))+ version: 11.18.2(@emotion/[email protected])([email protected]([email protected]))([email protected])hamburger-react:specifier: ^2.5.0- version: 2.5.0([email protected])+ version: 2.5.0([email protected])input-otp:specifier: ^1.2.4javascript-time-ago:specifier: ^2.5.9version: 2.5.9@@ -420,37 +585,25 @@ importers:version: 4.1.1lottie-react:specifier: ^2.4.0lucide-react:- specifier: ^0.513.0- version: 0.513.0([email protected])+ specifier: ^0.476.0+ version: 0.476.0([email protected])mathjs:specifier: ^12.3.2version: 12.3.2mitt:specifier: ^3.0.1version: 3.0.1- next:- specifier: 14.2.1- version: 14.2.1(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- next-auth:- specifier: ^4.24.5- version: 4.24.6([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- next-themes:- specifier: ^0.2.1- version: 0.2.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- nextjs-toploader:- specifier: ^1.6.11- version: 1.6.11([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])nuqs:- specifier: ^2.0.2- version: 2.0.2([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ specifier: ^2.5.2+ version: 2.5.2(patch_hash=4f93812bf7a04685f9477b2935e3acbf2aa24dfbb1b00b9ae0ed8f7a2877a98e)(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])prisma-error-enum:specifier: ^0.1.3version: 0.1.3pushmodal:specifier: ^1.0.3- version: 1.0.3(@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 1.0.3(@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])ramda:specifier: ^0.29.1version: 0.29.1@@ -459,55 +612,61 @@ importers:version: 0.1.1rc-virtual-list:specifier: ^3.14.5react:- specifier: 18.2.0- version: 18.2.0+ specifier: 'catalog:'+ version: 19.1.1react-animate-height:specifier: ^3.2.3react-animated-numbers:- specifier: ^0.18.0+ specifier: ^1.1.1+ version: 1.1.1(@emotion/[email protected])([email protected]([email protected]))([email protected])react-day-picker:- specifier: ^8.10.0- version: 8.10.0([email protected])([email protected])+ specifier: ^9.9.0+ version: 9.9.0([email protected])react-dom:- specifier: 18.2.0- version: 18.2.0([email protected])+ specifier: 'catalog:'+ version: 19.1.1([email protected])+ react-grid-layout:+ specifier: ^1.5.2react-hook-form:specifier: ^7.50.1- version: 7.50.1([email protected])+ version: 7.50.1([email protected])react-in-viewport:- specifier: 1.0.0-alpha.30+ specifier: 1.0.0-beta.8react-markdown:specifier: ^10.1.0- version: 10.1.0(@types/[email protected])([email protected])+ version: 10.1.0(@types/[email protected])([email protected])react-redux:specifier: ^8.1.3- version: 8.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected])+ version: 8.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected])+ react-resizable:+ specifier: ^3.0.5react-responsive:specifier: ^9.0.2- version: 9.0.2([email protected])+ version: 9.0.2([email protected])react-simple-maps:specifier: 3.0.0react-svg-worldmap:specifier: 2.0.0-alpha.16react-syntax-highlighter:specifier: ^15.5.0- version: 15.5.0([email protected])+ version: 15.5.0([email protected])react-use-websocket:specifier: ^4.7.0react-virtualized-auto-sizer:specifier: ^1.0.22recharts:- specifier: ^2.12.0+ specifier: ^2.15.4rehype-katex:specifier: ^7.0.1version: 7.0.1@@ -534,38 +693,56 @@ importers:version: 1.6.6sonner:specifier: ^1.4.0sqlstring:specifier: ^2.3.3version: 2.3.3superjson:- specifier: ^1.13.3- version: 1.13.3+ specifier: ^2.2.2+ version: 2.2.2tailwind-merge:- specifier: ^1.14.0- version: 1.14.0+ specifier: ^3.0.2+ version: 3.3.1+ tailwindcss:+ specifier: ^4.0.6+ version: 4.1.12tailwindcss-animate:specifier: ^1.0.7- version: 1.0.7([email protected])+ version: 1.0.7([email protected])+ tw-animate-css:+ specifier: ^1.3.6+ version: 1.3.7usehooks-ts:specifier: ^2.14.0- version: 2.14.0([email protected])+ version: 2.14.0([email protected])+ vite-tsconfig-paths:+ specifier: ^5.1.4+ version: 5.1.4([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))zod:specifier: 'catalog:'version: 3.24.2devDependencies:- '@openpanel/payments':+ '@biomejs/biome':+ specifier: 1.9.4+ version: 1.9.4+ '@cloudflare/vite-plugin':+ specifier: ^1.13.12+ version: 1.13.12([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])+ '@openpanel/db':specifier: workspace:*- version: link:../../packages/payments+ version: link:../../packages/db'@openpanel/trpc':specifier: workspace:*version: link:../../packages/trpc- '@openpanel/tsconfig':- specifier: workspace:*- version: link:../../tooling/typescript- '@types/bcrypt':- specifier: ^5.0.2- version: 5.0.2+ '@tanstack/devtools-event-client':+ specifier: ^0.3.3+ version: 0.3.3+ '@testing-library/dom':+ specifier: ^10.4.0+ version: 10.4.1+ '@testing-library/react':+ specifier: ^16.2.0+ version: 16.3.0(@testing-library/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@types/lodash.debounce':specifier: ^4.0.9version: 4.0.9@@ -575,151 +752,42 @@ importers:'@types/lodash.throttle':specifier: ^4.1.9version: 4.1.9- '@types/node':- specifier: 20.14.8- version: 20.14.8'@types/ramda':- specifier: ^0.29.10- version: 0.29.10+ specifier: ^0.31.0+ version: 0.31.0'@types/react':- specifier: ^18.2.20- version: 18.2.56+ specifier: 'catalog:'+ version: 19.1.11'@types/react-dom':- specifier: ^18.2.7- version: 18.2.19+ specifier: 'catalog:'+ version: 19.1.8(@types/[email protected])'@types/react-simple-maps':specifier: ^3.0.4version: 3.0.4'@types/react-syntax-highlighter':specifier: ^15.5.11version: 15.5.11- '@types/sqlstring':- specifier: ^2.3.2- version: 2.3.2- autoprefixer:- specifier: ^10.4.17- version: 10.4.18([email protected])- postcss:- specifier: ^8.4.35- version: 8.4.35- tailwindcss:- specifier: ^3.4.1- version: 3.4.1+ '@vitejs/plugin-react':+ specifier: ^4.3.4+ version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ jsdom:+ specifier: ^26.0.0+ version: 26.1.0typescript:- specifier: ^5.3.3- version: 5.3.3-- apps/docs:- dependencies:- express:- specifier: ^4.18.2- version: 4.19.2-- apps/public:- dependencies:- '@hyperdx/node-opentelemetry':- specifier: ^0.8.1- version: 0.8.1- '@number-flow/react':- specifier: 0.3.5- '@openpanel/nextjs':- specifier: ^1.0.5- version: 1.0.5([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- '@openpanel/payments':- specifier: workspace:^- version: link:../../packages/payments- '@openpanel/sdk-info':- specifier: workspace:^- version: link:../../packages/sdks/_info- '@openstatus/react':- specifier: 0.0.3- version: 0.0.3([email protected])- '@radix-ui/react-accordion':- specifier: 1.2.3- version: 1.2.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slider':- specifier: 1.2.3- version: 1.2.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot':- specifier: 1.1.2- version: 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-tooltip':- specifier: 1.1.8- version: 1.1.8(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- class-variance-authority:- specifier: 0.7.1- version: 0.7.1- clsx:- specifier: 2.1.1- version: 2.1.1- dotted-map:- specifier: 2.2.3- version: 2.2.3- framer-motion:- specifier: 11.18.2- version: 11.18.2(@emotion/[email protected])([email protected]([email protected]))([email protected])- fumadocs-core:- specifier: 14.1.1- version: 14.1.1(@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- fumadocs-mdx:- specifier: 11.1.1- version: 11.1.1([email protected])([email protected](@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))- fumadocs-ui:- specifier: 14.1.1- version: 14.1.1(@types/[email protected])(@types/[email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- geist:- specifier: 1.3.1- version: 1.3.1([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))- lucide-react:- specifier: 0.454.0- version: 0.454.0([email protected])- next:- specifier: 15.0.3- version: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- react:- specifier: 18.3.1- version: 18.3.1- react-dom:- specifier: 18.3.1- version: 18.3.1([email protected])- rehype-external-links:- specifier: 3.0.0- version: 3.0.0- tailwind-merge:- specifier: 1.14.0- version: 1.14.0- tailwindcss-animate:- specifier: 1.0.7- version: 1.0.7([email protected])- zod:specifier: 'catalog:'- version: 3.24.2- devDependencies:- '@types/mdx':- specifier: ^2.0.13- version: 2.0.13- '@types/node':- specifier: 20.14.8- version: 20.14.8- '@types/react':- specifier: ^18.3.12- version: 18.3.12- '@types/react-dom':- specifier: ^18.3.1- version: 18.3.1- autoprefixer:- specifier: ^10.4.20- version: 10.4.20([email protected])- postcss:- specifier: ^8.4.47- version: 8.4.47- tailwindcss:- specifier: 3.4.17- version: 3.4.17- typescript:- specifier: ^5.6.3- version: 5.6.3+ version: 5.9.3+ vite:+ specifier: ^6.3.5+ version: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vitest:+ specifier: ^3.0.5+ version: 3.1.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ web-vitals:+ specifier: ^4.2.4+ version: 4.2.4+ wrangler:+ specifier: ^4.42.2+ version: 4.42.2apps/worker:dependencies:@@ -761,7 +829,7 @@ importers:version: 4.18.2groupmq:specifier: 1.0.0-next.19- version: 1.0.0-next.19([email protected])+ version: 1.0.0-next.19([email protected])prom-client:specifier: ^15.1.3version: 15.1.3@@ -796,12 +864,12 @@ importers:'@types/uuid':specifier: ^9.0.8version: 9.0.8- tsup:- specifier: ^7.2.0- version: 7.3.0([email protected])([email protected])+ tsdown:+ specifier: ^0.14.2+ version: 0.14.2([email protected])typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/auth:dependencies:@@ -825,26 +893,26 @@ importers:version: 2.3.0next:specifier: 14.2.1- version: 14.2.1(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 14.2.1(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react:- specifier: 18.2.0- version: 18.2.0+ specifier: 'catalog:'+ version: 19.1.1devDependencies:'@openpanel/tsconfig':specifier: workspace:*version: link:../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1'@types/react':- specifier: ^18.2.0- version: 18.3.12+ specifier: 'catalog:'+ version: 19.1.11prisma:specifier: ^5.1.1version: 5.9.1typescript:- specifier: ^5.2.2- version: 5.6.3+ specifier: 'catalog:'+ version: 5.9.3packages/cli:dependencies:@@ -883,8 +951,8 @@ importers:specifier: workspace:*version: link:../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1'@types/progress':specifier: ^2.0.7version: 2.0.7@@ -893,10 +961,10 @@ importers:version: 0.30.1tsup:specifier: ^7.2.0- version: 7.3.0([email protected])([email protected])+ version: 7.3.0([email protected])([email protected])typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/common:dependencies:@@ -941,8 +1009,8 @@ importers:specifier: ^3.6.2version: 3.6.2'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1'@types/ramda':specifier: ^0.29.6version: 0.29.10@@ -953,8 +1021,8 @@ importers:specifier: ^5.1.1version: 5.9.1typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/constants:devDependencies:@@ -964,12 +1032,9 @@ importers:date-fns:specifier: ^3.3.1version: 3.3.1- prisma:- specifier: ^5.1.1- version: 5.9.1typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/db:dependencies:@@ -998,11 +1063,11 @@ importers:specifier: workspace:*version: link:../validation'@prisma/client':- specifier: ^5.1.1- version: 5.9.1([email protected])+ specifier: ^6.14.0'@prisma/extension-read-replicas':- specifier: ^0.4.0- version: 0.4.0(@prisma/[email protected]([email protected]))+ specifier: ^0.4.1+ version: 0.4.1(@prisma/[email protected]([email protected]([email protected])([email protected]))([email protected]))fast-deep-equal:specifier: ^3.1.3version: 3.1.3@@ -1011,7 +1076,7 @@ importers:version: 2.4.1prisma-json-types-generator:specifier: ^3.1.1- version: 3.1.1([email protected])([email protected])ramda:specifier: ^0.29.1version: 0.29.1@@ -1032,8 +1097,8 @@ importers:specifier: workspace:*version: link:../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1'@types/ramda':specifier: ^0.29.6version: 0.29.10@@ -1044,29 +1109,29 @@ importers:specifier: ^9.0.8version: 9.0.8prisma:- specifier: ^5.1.1- version: 5.9.1+ specifier: ^6.14.0+ version: 6.14.0([email protected])([email protected])typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/email:dependencies:'@react-email/components':- specifier: ^0.0.30+ specifier: ^0.5.6react:- specifier: 18.2.0- version: 18.2.0+ specifier: 'catalog:'+ version: 19.1.1react-dom:- specifier: 18.2.0- version: 18.2.0([email protected])+ specifier: 'catalog:'+ version: 19.1.1([email protected])resend:specifier: ^4.0.1responsive-react-email:specifier: ^0.0.5- version: 0.0.5([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 0.0.5([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])zod:specifier: 'catalog:'version: 3.24.2@@ -1075,17 +1140,17 @@ importers:specifier: workspace:*version: link:../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1'@types/react':- specifier: ^18.2.0- version: 18.3.12+ specifier: 'catalog:'+ version: 19.1.11react-email:specifier: 3.0.4- version: 3.0.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 3.0.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])typescript:- specifier: ^5.2.2- version: 5.6.3+ specifier: 'catalog:'+ version: 5.9.3packages/geo:dependencies:@@ -1097,8 +1162,8 @@ importers:specifier: workspace:*version: link:../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1fast-extract:specifier: ^1.4.3version: 1.4.3([email protected])@@ -1109,8 +1174,8 @@ importers:specifier: ^7.4.3version: 7.4.3typescript:- specifier: ^5.2.2- version: 5.6.3+ specifier: 'catalog:'+ version: 5.9.3packages/integrations:dependencies:@@ -1128,11 +1193,11 @@ importers:specifier: workspace:*version: link:../validation'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/json:dependencies:@@ -1147,11 +1212,11 @@ importers:specifier: workspace:*version: link:../validation'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1typescript:- specifier: ^5.2.2- version: 5.6.3+ specifier: 'catalog:'+ version: 5.9.3packages/logger:dependencies:@@ -1172,14 +1237,14 @@ importers:specifier: ^5.1.1version: 5.9.1typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/payments:dependencies:'@polar-sh/sdk':- specifier: ^0.26.1- version: 0.26.1([email protected])+ specifier: ^0.35.4+ version: 0.35.4devDependencies:'@openpanel/db':specifier: workspace:*@@ -1194,11 +1259,11 @@ importers:specifier: ^3.0.3version: 3.0.3'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1'@types/react':- specifier: ^18.2.0- version: 18.3.12+ specifier: 'catalog:'+ version: 19.1.11inquirer:specifier: ^9.3.5version: 9.3.6@@ -1206,8 +1271,8 @@ importers:specifier: ^3.0.1version: 3.0.1([email protected])typescript:- specifier: ^5.2.2- version: 5.6.3+ specifier: 'catalog:'+ version: 5.9.3packages/queue:dependencies:@@ -1225,7 +1290,7 @@ importers:version: 5.8.7groupmq:specifier: 1.0.0-next.19- version: 1.0.0-next.19([email protected])+ version: 1.0.0-next.19([email protected])devDependencies:'@openpanel/sdk':specifier: workspace:*@@ -1234,11 +1299,11 @@ importers:specifier: workspace:*version: link:../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/redis:dependencies:@@ -1246,8 +1311,8 @@ importers:specifier: workspace:*version: link:../jsonioredis:- specifier: ^5.4.1- version: 5.4.1+ specifier: ^5.7.0+ version: 5.7.0devDependencies:'@openpanel/db':specifier: workspace:*@@ -1256,33 +1321,33 @@ importers:specifier: workspace:*version: link:../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1prisma:specifier: ^5.1.1version: 5.9.1typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/sdks/_info:dependencies:react:- specifier: 18.2.0- version: 18.2.0+ specifier: 'catalog:'+ version: 19.1.1devDependencies:'@openpanel/tsconfig':specifier: workspace:*version: link:../../../tooling/typescript'@types/react':- specifier: ^18.2.20- version: 18.3.12+ specifier: 'catalog:'+ version: 19.1.11prisma:specifier: ^5.1.1version: 5.9.1typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/sdks/astro:dependencies:@@ -1292,7 +1357,7 @@ importers:devDependencies:astro:specifier: ^5.7.7- version: 5.7.8(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 5.7.8(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])packages/sdks/express:dependencies:@@ -1317,10 +1382,10 @@ importers:version: 0.0.41tsup:specifier: ^7.2.0- version: 7.3.0([email protected])([email protected])+ version: 7.3.0([email protected])([email protected])typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/sdks/nextjs:dependencies:@@ -1329,26 +1394,26 @@ importers:version: link:../webnext:specifier: ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0- version: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react:specifier: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0- version: 18.3.1+ version: 19.1.1react-dom:specifier: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0- version: 18.3.1([email protected])+ version: 19.1.1([email protected])devDependencies:'@openpanel/tsconfig':specifier: workspace:*version: link:../../../tooling/typescript'@types/react':- specifier: ^18.2.20- version: 18.2.56+ specifier: 'catalog:'+ version: 19.1.11tsup:specifier: ^7.2.0- version: 7.3.0([email protected])([email protected])+ version: 7.3.0([email protected])([email protected])typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/sdks/react-native:dependencies:@@ -1357,26 +1422,26 @@ importers:version: link:../sdkexpo-application:specifier: 5 - 6- version: 5.3.1([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))+ version: 5.3.1([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))expo-constants:specifier: 14 - 17- version: 15.4.5([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))+ version: 15.4.5([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))react-native:specifier: '*'- version: 0.73.6(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected])+ version: 0.73.6(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected])devDependencies:'@openpanel/tsconfig':specifier: workspace:*version: link:../../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1tsup:specifier: ^7.2.0- version: 7.3.0([email protected])([email protected])+ version: 7.3.0([email protected])([email protected])typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/sdks/sdk:devDependencies:@@ -1384,14 +1449,14 @@ importers:specifier: workspace:*version: link:../../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1tsup:specifier: ^7.2.0- version: 7.3.0([email protected])([email protected])+ version: 7.3.0([email protected])([email protected])typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/sdks/web:dependencies:@@ -1403,14 +1468,14 @@ importers:specifier: workspace:*version: link:../../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1tsup:specifier: ^7.2.0- version: 7.3.0([email protected])([email protected])+ version: 7.3.0([email protected])([email protected])typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/trpc:dependencies:@@ -1441,21 +1506,15 @@ importers:'@openpanel/validation':specifier: workspace:*version: link:../validation- '@seventy-seven/sdk':- specifier: 0.0.0-beta.2- version: 0.0.0-beta.2'@trpc-limiter/redis':specifier: ^0.0.2- version: 0.0.2(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected])+ version: 0.0.2(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected])'@trpc/client':- specifier: ^10.45.2- version: 10.45.2(@trpc/[email protected])+ specifier: ^11.6.0'@trpc/server':- specifier: ^10.45.2- version: 10.45.2- bcrypt:- specifier: ^5.1.1- version: 5.1.1+ specifier: ^11.6.0+ version: 11.6.0([email protected])date-fns:specifier: ^3.3.1version: 3.3.1@@ -1487,12 +1546,9 @@ importers:'@openpanel/tsconfig':specifier: workspace:*version: link:../../tooling/typescript- '@types/bcrypt':- specifier: ^5.0.2- version: 5.0.2'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1'@types/ramda':specifier: ^0.29.6version: 0.29.10@@ -1503,8 +1559,8 @@ importers:specifier: ^5.1.1version: 5.9.1typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3packages/validation:dependencies:@@ -1519,14 +1575,14 @@ importers:specifier: workspace:*version: link:../../tooling/typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1prisma:specifier: ^5.1.1version: 5.9.1typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3tooling/publish:dependencies:@@ -1541,20 +1597,20 @@ importers:specifier: workspace:*version: link:../typescript'@types/node':- specifier: 20.14.8- version: 20.14.8+ specifier: 'catalog:'+ version: 24.7.1'@types/semver':specifier: ^7.5.4version: 7.5.7typescript:- specifier: ^5.2.2- version: 5.3.3+ specifier: 'catalog:'+ version: 5.9.3tooling/typescript:devDependencies:tsup:specifier: ^7.2.0- version: 7.3.0([email protected])([email protected])+ version: 7.3.0([email protected])([email protected])packages:@@ -1659,6 +1715,9 @@ packages:resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==}engines: {node: '>=6.0.0'}+ '@asamuzakjp/[email protected]':+ resolution: {integrity: sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==}+'@astrojs/[email protected]':resolution: {integrity: sha512-zZOO7i+JhojO8qmlyR/URui6LyfHJY6m+L9nwyX5GiKD78YoRaZ5tzz6X0fkl+5bD3uwlDHayf6Oe8Fu36RKNg==}@@ -1683,22 +1742,42 @@ packages:resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==}engines: {node: '>=6.9.0'}@@ -1707,12 +1786,22 @@ packages:resolution: {integrity: sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-2XpP2XhkXzgxecPNEEK8Vz8Asj9aRxt08oKOqtiZoqV2UGZ5T+EkyP9sXQ9nwMxBIG34a7jmasVqoMop7VdPUw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0+ '@babel/[email protected]':+ resolution: {integrity: sha512-V9f6ZFIYSLNEbuGA/92uOvYsGCJNsuA8ESZ4ldc09bWk/j8H8TKiPw8Mk1eG6olpnO0ALHJmYfZvF4MEE4gajg==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0+'@babel/[email protected]':resolution: {integrity: sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==}engines: {node: '>=6.9.0'}@@ -1732,6 +1821,10 @@ packages:resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==}engines: {node: '>=6.9.0'}@@ -1740,22 +1833,40 @@ packages:resolution: {integrity: sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0+ '@babel/[email protected]':+ resolution: {integrity: sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0+'@babel/[email protected]':resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==}engines: {node: '>=6.9.0'}'@babel/[email protected]':@@ -1770,6 +1881,12 @@ packages:peerDependencies:'@babel/core': ^7.0.0+ '@babel/[email protected]':+ resolution: {integrity: sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0+'@babel/[email protected]':resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==}engines: {node: '>=6.9.0'}@@ -1778,30 +1895,30 @@ packages:resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==}- engines: {node: '>=6.9.0'}-- '@babel/[email protected]':- resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==}engines: {node: '>=6.9.0'}'@babel/[email protected]':resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==}engines: {node: '>=6.9.0'}@@ -1810,6 +1927,10 @@ packages:resolution: {integrity: sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==}engines: {node: '>=6.9.0'}@@ -1824,6 +1945,11 @@ packages:engines: {node: '>=6.0.0'}hasBin: true+ '@babel/[email protected]':+ resolution: {integrity: sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==}+ engines: {node: '>=6.0.0'}+ hasBin: true+'@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3':resolution: {integrity: sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==}engines: {node: '>=6.9.0'}@@ -1975,8 +2101,8 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0@@ -2023,8 +2149,8 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0@@ -2179,6 +2305,12 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0+ '@babel/[email protected]':+ resolution: {integrity: sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0+'@babel/[email protected]':resolution: {integrity: sha512-KDlPRM6sLo4o1FkiSlXoAa8edLXFsKKIda779fbLrvmeuc3itnjCtaO6RrtoaANsIJANj+Vk1zqbZIMhkCAHVw==}engines: {node: '>=6.9.0'}@@ -2281,12 +2413,24 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0+ '@babel/[email protected]':+ resolution: {integrity: sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0+'@babel/[email protected]':resolution: {integrity: sha512-91RS0MDnAWDNvGC6Wio5XYkyWI39FMFO+JK9+4AlgaTH+yWwVTsw7/sn6LK0lH7c5F+TFkpv/3LfCJ1Ydwof/g==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0+ '@babel/[email protected]':+ resolution: {integrity: sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0+'@babel/[email protected]':resolution: {integrity: sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==}engines: {node: '>=6.9.0'}@@ -2353,6 +2497,12 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0+ '@babel/[email protected]':+ resolution: {integrity: sha512-4AEiDEBPIZvLQaWlc9liCavE0xRM0dNca41WtBeM3jgFptfUOSG9z0uteLhq6+3rq+WB6jIvUwKDTpXEHPJ2Vg==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0+'@babel/[email protected]':resolution: {integrity: sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==}engines: {node: '>=6.9.0'}@@ -2400,8 +2550,8 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-l7WfQfX0WK4M0v2RudjuQK4u99BS6yLHYEmdtVPP7lKV013zr9DygFuWNlnbvQ9LR+LS0Egz/XAvGx5U9MX0fQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0@@ -2419,20 +2569,16 @@ packages:resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==}- engines: {node: '>=6.9.0'}-- '@babel/[email protected]':- resolution: {integrity: sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==}engines: {node: '>=6.9.0'}'@biomejs/[email protected]':@@ -2440,54 +2586,107 @@ packages:engines: {node: '>=14.21.3'}hasBin: true+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog==}+ engines: {node: '>=14.21.3'}+ hasBin: true+'@biomejs/[email protected]':resolution: {integrity: sha512-js0brHswq/BoeKgfSEUJYOjUOlML6p65Nantti+PsoQ61u9+YVGIZ7325LK7iUpDH8KVJT+Bx7K2b/6Q//W1Pw==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [darwin]+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw==}+ engines: {node: '>=14.21.3'}+ cpu: [arm64]+ os: [darwin]+'@biomejs/[email protected]':resolution: {integrity: sha512-2zVyjUg5rN0k8XrytkubQWLbp2r/AS5wPhXs4vgVjvqbLnzo32EGX8p61gzroF2dH9DCUCfskdrigCGqNdEbpg==}engines: {node: '>=14.21.3'}cpu: [x64]os: [darwin]+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg==}+ engines: {node: '>=14.21.3'}+ cpu: [x64]+ os: [darwin]+'@biomejs/[email protected]':resolution: {integrity: sha512-L/JmXKvhsZ1lTgqOr3tWkzuY/NRppdIscHeC9aaiR72WjnBgJS94mawl9BWmGB3aWBc0q6oSDWnBS7617EMMmA==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [linux]+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==}+ engines: {node: '>=14.21.3'}+ cpu: [arm64]+ os: [linux]+'@biomejs/[email protected]':resolution: {integrity: sha512-QgxwfnG+r2aer5RNGR67Ey91Tv7xXW8E9YckHhwuyWjdLEvKWkrSJrhVG/6ub0kVvTSNkYOuT/7/jMOFBuUbRA==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [linux]+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==}+ engines: {node: '>=14.21.3'}+ cpu: [arm64]+ os: [linux]+'@biomejs/[email protected]':resolution: {integrity: sha512-gY+eFLIAW45v3WicQHicvjRfA0ntMZHx7h937bXwBMFNFoKmB6rMi6+fKQ6/hiS6juhsFxZdZIz20m15s49J6A==}engines: {node: '>=14.21.3'}cpu: [x64]os: [linux]+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==}+ engines: {node: '>=14.21.3'}+ cpu: [x64]+ os: [linux]+'@biomejs/[email protected]':resolution: {integrity: sha512-F0INygtzI2L2n2R1KtYHGr3YWDt9Up1zrUluwembM+iJ1dXN3qzlSb7deFUsSJm4FaIPriqs6Xa56ukdQW6UeQ==}engines: {node: '>=14.21.3'}cpu: [x64]os: [linux]+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==}+ engines: {node: '>=14.21.3'}+ cpu: [x64]+ os: [linux]+'@biomejs/[email protected]':resolution: {integrity: sha512-7Jahxar3OB+aTPOgXisMJmMKMsjcK+UmdlG3UIOQjzN/ZFEsPV+GT3bfrVjZDQaCw/zes0Cqd7VTWFjFTC/+MQ==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [win32]+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==}+ engines: {node: '>=14.21.3'}+ cpu: [arm64]+ os: [win32]+'@biomejs/[email protected]':resolution: {integrity: sha512-liSRWjWzFhyG7s1jg/Bbv9FL+ha/CEd5tFO3+dFIJNplL4TnvAivtyfRVi/tu/pNjISbV1k9JwdBewtAKAgA0w==}engines: {node: '>=14.21.3'}cpu: [x64]os: [win32]+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA==}+ engines: {node: '>=14.21.3'}+ cpu: [x64]+ os: [win32]+'@bull-board/[email protected]':resolution: {integrity: sha512-27tjptwgRgP1G5jT+POjiZZOP3LgdIM4XdfEWfa6t5E0CYImL4EjmdiFo5lhbHhYKZ842VhIpHuNcPk8nY3K9A==}peerDependencies:@@ -2499,9 +2698,6 @@ packages:'@bull-board/[email protected]':resolution: {integrity: sha512-eH8QQwIHgCXxNEmlg9EZr3fSvno/bdbgBGfSQO5s9c9n9eDEaKX46ambKSPvgFPtwSdiV1AYQEa/3fGSebVIxg==}- '@canvas/[email protected]':- resolution: {integrity: sha512-BxOqI5LgsIQP1odU5KMwV9yoijleOPzHL18/YvNqF9KFSGF2K/DLlYAbDQsWqd/1nbaFuSkYD/191dpMtNh4vw==}-'@capsizecss/[email protected]':resolution: {integrity: sha512-GrSU71meACqcmIUxPYOJvGKF0yryjN/L1aCuE9DViCTJI7bfkjgYDPD1zbNDcINJwSSP6UaBZY9GAbYDO7re0Q==}@@ -2512,13 +2708,97 @@ packages:resolution: {integrity: sha512-zMp2EhMfp1IrFKr/NjDwNiLsf7nq68nW8lGKszwFe7Iglc6Z5PY9ZA9Hd0XqAk75Q1NmFrkGCP1r3JCM1Nm1Bw==}engines: {node: '>=16'}+ '@cloudflare/[email protected]':+ resolution: {integrity: sha512-+tv3z+SPp+gqTIcImN9o0hqE9xyfQjI1XD9pL6NuKjua9B1y7mNYv0S9cP+QEbA4ppVgGZEmKOvHX5G5Ei1CVA==}+ engines: {node: '>=18.0.0'}++ '@cloudflare/[email protected]':+ resolution: {integrity: sha512-HtZuh166y0Olbj9bqqySckz0Rw9uHjggJeoGbDx5x+sgezBXlxO6tQSig2RZw5tgObF8mWI8zaPvQMkQZtAODw==}+ peerDependencies:+ unenv: 2.0.0-rc.21+ workerd: ^1.20250927.0+ peerDependenciesMeta:+ workerd:+ optional: true++ '@cloudflare/[email protected]':+ resolution: {integrity: sha512-JEcrUF1uXxMQfp+RcGw7ov5K8uOGX0arFYdyO3QfHrjWspHnsw0zOYL+4083itEInRVnZjS5LunpsNpxSVbCEw==}+ peerDependencies:+ vite: ^6.1.0 || ^7.0.0+ wrangler: ^4.42.2++ '@cloudflare/[email protected]':+ resolution: {integrity: sha512-yph0H+8mMOK5Z9oDwjb8rI96oTVt4no5lZ43aorcbzsWG9VUIaXSXlBBoB3von6p4YCRW+J3n36fBM9XZ6TLaA==}+ engines: {node: '>=16'}+ cpu: [x64]+ os: [darwin]++ '@cloudflare/[email protected]':+ resolution: {integrity: sha512-Yc4lMGSbM4AEtYRpyDpmk77MsHb6X2BSwJgMgGsLVPmckM7ZHivZkJChfcNQjZ/MGR6nkhYc4iF6TcVS+UMEVw==}+ engines: {node: '>=16'}+ cpu: [arm64]+ os: [darwin]++ '@cloudflare/[email protected]':+ resolution: {integrity: sha512-AjoQnylw4/5G6SmfhZRsli7EuIK7ZMhmbxtU0jkpciTlVV8H01OsFOgS1d8zaTXMfkWamEfMouy8oH/L7B9YcQ==}+ engines: {node: '>=16'}+ cpu: [x64]+ os: [linux]++ '@cloudflare/[email protected]':+ resolution: {integrity: sha512-hRy9yyvzVq1HsqHZUmFkAr0C8JGjAD/PeeVEGCKL3jln3M9sNCKIrbDXiL+efe+EwajJNNlDxpO+s30uVWVaRg==}+ engines: {node: '>=16'}+ cpu: [arm64]+ os: [linux]++ '@cloudflare/[email protected]':+ resolution: {integrity: sha512-Gm0RR+ehfNMsScn2pUcn3N9PDUpy7FyvV9ecHEyclKttvztyFOcmsF14bxEaSVv7iM4TxWEBn1rclmYHxDM4ow==}+ engines: {node: '>=16'}+ cpu: [x64]+ os: [win32]+'@colors/[email protected]':resolution: {integrity: sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==}engines: {node: '>=0.1.90'}+ '@cspotcode/[email protected]':+ resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}+ engines: {node: '>=12'}++ '@csstools/[email protected]':+ resolution: {integrity: sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==}+ engines: {node: '>=18'}++ '@csstools/[email protected]':+ resolution: {integrity: sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==}+ engines: {node: '>=18'}+ peerDependencies:+ '@csstools/css-parser-algorithms': ^3.0.5+ '@csstools/css-tokenizer': ^3.0.4++ '@csstools/[email protected]':+ resolution: {integrity: sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==}+ engines: {node: '>=18'}+ peerDependencies:+ '@csstools/css-parser-algorithms': ^3.0.5+ '@csstools/css-tokenizer': ^3.0.4++ '@csstools/[email protected]':+ resolution: {integrity: sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==}+ engines: {node: '>=18'}+ peerDependencies:+ '@csstools/css-tokenizer': ^3.0.4++ '@csstools/[email protected]':+ resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==}+ engines: {node: '>=18'}+'@dabh/[email protected]':resolution: {integrity: sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==}+ '@date-fns/[email protected]':+ resolution: {integrity: sha512-P5LUNhtbj6YfI3iJjw5EL9eUAG6OitD0W3fWQcpQjDRc/QIsL0tRNuO1PcDvPccWL1fSTXXdE1ds+l95DV/OFA==}+'@dnd-kit/[email protected]':resolution: {integrity: sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==}peerDependencies:@@ -2544,12 +2824,21 @@ packages:'@emnapi/[email protected]':resolution: {integrity: sha512-pVGjBIt1Y6gg3EJN8jTcfpP/+uuRksIo055oE/OBkDNcjZqVbfkWCksG1Jp4yZnj3iKWyWX8fdG/j6UDYPbFog==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg==}+'@emnapi/[email protected]':resolution: {integrity: sha512-kEBmG8KyqtxJZv+ygbEim+KCGtIq1fC22Ms3S4ziXmYKm8uyoLX0MHONVKwp+9opg390VaKRNt4a7A9NwmpNhw==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ==}+'@emnapi/[email protected]':resolution: {integrity: sha512-iIBu7mwkq4UQGeMEM8bLwNK962nXdhodeScX4slfQnRhEMMzvYivHhutCIk8uojvmASXXPC2WNEjwxFWk72Oqw==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==}+'@emotion/[email protected]':resolution: {integrity: sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==}@@ -2580,6 +2869,18 @@ packages:cpu: [ppc64]os: [aix]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [aix]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [aix]+'@esbuild/[email protected]':resolution: {integrity: sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==}engines: {node: '>=12'}@@ -2604,6 +2905,18 @@ packages:cpu: [arm64]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-IDrddSmpSv51ftWslJMvl3Q2ZT98fUSL2/rlUXuVqRXHCs5EUF1/f+jbjF5+NG9UffUDMCiTyh8iec7u8RlTLg==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==}engines: {node: '>=12'}@@ -2628,6 +2941,18 @@ packages:cpu: [arm]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-5WNI1DaMtxQ7t7B6xa572XMXpHAaI/9Hnhk8lcxF4zVN4xstUgTlvuGDorBguKEnZO70qwEcLpfifMLoxiPqHQ==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==}engines: {node: '>=12'}@@ -2652,6 +2977,18 @@ packages:cpu: [x64]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-I853iMZ1hWZdNllhVZKm34f4wErd4lMyeV7BLzEExGEIZYsOzqDWDf+y082izYUE8gtJnYHdeDpN/6tUdwvfiw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==}engines: {node: '>=12'}@@ -2676,6 +3013,18 @@ packages:cpu: [arm64]os: [darwin]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-XIpIDMAjOELi/9PB30vEbVMs3GV1v2zkkPnuyRRURbhqjyzIINwj+nbQATh4H9GxUgH1kFsEyQMxwiLFKUS6Rg==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [darwin]+'@esbuild/[email protected]':resolution: {integrity: sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==}engines: {node: '>=12'}@@ -2700,6 +3049,18 @@ packages:cpu: [x64]os: [darwin]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-jhHfBzjYTA1IQu8VyrjCX4ApJDnH+ez+IYVEoJHeqJm9VhG9Dh2BYaJritkYK3vMaXrf7Ogr/0MQ8/MeIefsPQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [darwin]+'@esbuild/[email protected]':resolution: {integrity: sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==}engines: {node: '>=12'}@@ -2724,6 +3085,18 @@ packages:cpu: [arm64]os: [freebsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-z93DmbnY6fX9+KdD4Ue/H6sYs+bhFQJNCPZsi4XWJoYblUqT06MQUdBCpcSfuiN72AbqeBFu5LVQTjfXDE2A6Q==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [freebsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==}engines: {node: '>=12'}@@ -2748,7 +3121,19 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-mrKX6H/vOyo5v71YfXWJxLVxgy1kyt1MQaD8wZJgJfG4gq4DpQGpgTB74e5yBeQdyMTbgxp0YtNj7NuHN0PoZg==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [freebsd]++ '@esbuild/[email protected]':resolution: {integrity: sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==}engines: {node: '>=12'}cpu: [arm64]@@ -2772,6 +3157,18 @@ packages:cpu: [arm64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-BlB7bIcLT3G26urh5Dmse7fiLmLXnRlopw4s8DalgZ8ef79Jj4aUcYbk90g8iCa2467HX8SAIidbL7gsqXHdRw==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==}engines: {node: '>=12'}@@ -2796,6 +3193,18 @@ packages:cpu: [arm]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-HBU2Xv78SMgaydBmdor38lg8YDnFKSARg1Q6AT0/y2ezUAKiZvc211RDFHlEZRFNRVhcMamiToo7bDx3VEOYQw==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==}engines: {node: '>=12'}@@ -2820,6 +3229,18 @@ packages:cpu: [ia32]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-e7S3MOJPZGp2QW6AK6+Ly81rC7oOSerQ+P8L0ta4FhVi+/j/v2yZzx5CqqDaWjtPFfYz21Vi1S0auHrap3Ma3A==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==}engines: {node: '>=12'}@@ -2844,6 +3265,18 @@ packages:cpu: [loong64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==}+ engines: {node: '>=18'}+ cpu: [loong64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Sbe10Bnn0oUAB2AalYztvGcK+o6YFFA/9829PhOCUS9vkJElXGdphz0A3DbMdP8gmKkqPmPcMJmJOrI3VYB1JQ==}+ engines: {node: '>=18'}+ cpu: [loong64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==}engines: {node: '>=12'}@@ -2868,6 +3301,18 @@ packages:cpu: [mips64el]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==}+ engines: {node: '>=18'}+ cpu: [mips64el]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-YcM5br0mVyZw2jcQeLIkhWtKPeVfAerES5PvOzaDxVtIyZ2NUBZKNLjC5z3/fUlDgT6w89VsxP2qzNipOaaDyA==}+ engines: {node: '>=18'}+ cpu: [mips64el]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==}engines: {node: '>=12'}@@ -2892,6 +3337,18 @@ packages:cpu: [ppc64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-++0HQvasdo20JytyDpFvQtNrEsAgNG2CY1CLMwGXfFTKGBGQT3bOeLSYE2l1fYdvML5KUuwn9Z8L1EWe2tzs1w==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==}engines: {node: '>=12'}@@ -2916,6 +3373,18 @@ packages:cpu: [riscv64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==}+ engines: {node: '>=18'}+ cpu: [riscv64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-uNIBa279Y3fkjV+2cUjx36xkx7eSjb8IvnL01eXUKXez/CBHNRw5ekCGMPM0BcmqBxBcdgUWuUXmVWwm4CH9kg==}+ engines: {node: '>=18'}+ cpu: [riscv64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==}engines: {node: '>=12'}@@ -2940,6 +3409,18 @@ packages:cpu: [s390x]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==}+ engines: {node: '>=18'}+ cpu: [s390x]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Mfiphvp3MjC/lctb+7D287Xw1DGzqJPb/J2aHHcHxflUo+8tmN/6d4k6I2yFR7BVo5/g7x2Monq4+Yew0EHRIA==}+ engines: {node: '>=18'}+ cpu: [s390x]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==}engines: {node: '>=12'}@@ -2964,12 +3445,36 @@ packages:cpu: [x64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-1QaLtOWq0mzK6tzzp0jRN3eccmN3hezey7mhLnzC6oNlJoUJz4nym5ZD7mDnS/LZQgkrhEbEiTn515lPeLpgWA==}engines: {node: '>=18'}cpu: [arm64]os: [netbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [netbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-9jNJl6FqaUG+COdQMjSCGW4QiMHH88xWbvZ+kRVblZsWrkXlABuGdFJ1E9L7HK+T0Yqd4akKNa/lO0+jDxQD4Q==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [netbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==}engines: {node: '>=12'}@@ -2994,6 +3499,18 @@ packages:cpu: [x64]os: [netbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [netbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-RLLdkflmqRG8KanPGOU7Rpg829ZHu8nFy5Pqdi9U01VYtG9Y0zOG6Vr2z4/S+/3zIyOxiK6cCeYNWOFR9QP87g==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [netbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg==}engines: {node: '>=18'}@@ -3006,6 +3523,18 @@ packages:cpu: [arm64]os: [openbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-YaFBlPGeDasft5IIM+CQAhJAqS3St3nJzDEgsgFixcfZeyGPCd6eJBWzke5piZuZ7CtL656eOSYKk4Ls2C0FRQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==}engines: {node: '>=12'}@@ -3030,6 +3559,24 @@ packages:cpu: [x64]os: [openbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [openbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-1MkgTCuvMGWuqVtAvkpkXFmtL8XhWy+j4jaSO2wxfJtilVCi0ZE37b8uOdMItIHz4I6z1bWWtEX4CJwcKYLcuA==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [openbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-4Xd0xNiMVXKh6Fa7HEJQbrpP3m3DDn43jKxMjxLLRjWnRsfxjORYJlXPO4JNcXtOyfajXorRKY9NkOpTHptErg==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openharmony]+'@esbuild/[email protected]':resolution: {integrity: sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==}engines: {node: '>=12'}@@ -3054,6 +3601,18 @@ packages:cpu: [x64]os: [sunos]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [sunos]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-WjH4s6hzo00nNezhp3wFIAfmGZ8U7KtrJNlFMRKxiI9mxEK1scOMAaa9i4crUtu+tBr+0IN6JCuAcSBJZfnphw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [sunos]+'@esbuild/[email protected]':resolution: {integrity: sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==}engines: {node: '>=12'}@@ -3078,6 +3637,18 @@ packages:cpu: [arm64]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-mGFrVJHmZiRqmP8xFOc6b84/7xa5y5YvR1x8djzXpJBSv/UsNK6aqec+6JDjConTgvvQefdGhFDAs2DLAds6gQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==}engines: {node: '>=12'}@@ -3102,6 +3673,18 @@ packages:cpu: [ia32]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-b33gLVU2k11nVx1OhX3C8QQP6UHQK4ZtN56oFWvVXvz2VkDoe6fbG8TOgHFxEvqeqohmRnIHe5A1+HADk4OQww==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==}engines: {node: '>=12'}@@ -3126,6 +3709,18 @@ packages:cpu: [x64]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [win32]+'@expo/[email protected]':resolution: {integrity: sha512-Ydf4LidRB/EBI+YrB+cVLqIseiRfjUI/AeHBgjGMtq3GroraDu81OV7zqophRgupngoL3iS3JUMDMnxO7g39qA==}engines: {'0': node >=0.10.0}@@ -3209,6 +3804,10 @@ packages:engines: {node: '>=18.0.0', npm: '>=9.0.0'}deprecated: Please update to a newer version+ '@faker-js/[email protected]':+ resolution: {integrity: sha512-OEl393iCOoo/z8bMezRlJu+GlRGlsKbUAN7jKB6LhnKoqKve5DXRpalbItIIcwnCjs1k/FOPjFzcA6Qn+H+YbA==}+ engines: {node: '>=18.0.0', npm: '>=9.0.0'}+'@fastify/[email protected]':resolution: {integrity: sha512-/c/TW2bO/v9JeEgoD/g1G5GxGeCF1Hafdf79WPmUlgYiBXummY0oX3VVq4yFkKKVBKDNlaDUYoab7g38RpPqCQ==}@@ -3414,8 +4013,8 @@ packages:resolution: {integrity: sha512-R7Gsg6elpuqdn55fBH2y9oYzrU/yKrSmIsDX4ROT51vohrECFzTf2zw9BfUbOW8xjfmM2QbVoVYdTwhrtEKWSQ==}engines: {node: '>=18'}- '@ioredis/[email protected]':- resolution: {integrity: sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg==}+ '@ioredis/[email protected]':+ resolution: {integrity: sha512-M/T6Zewn7sDaBQEqIZ8Rb+i9y8qfGmq+5SDFSf9sA2lUZTmdDLVdOiQaeDp+Q4wElZ9HG1GAX5KhDaidp6LQsQ==}'@isaacs/[email protected]':resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}@@ -3453,6 +4052,9 @@ packages:resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}+'@jridgewell/[email protected]':resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==}engines: {node: '>=6.0.0'}@@ -3461,6 +4063,9 @@ packages:resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==}engines: {node: '>=6.0.0'}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}+'@jridgewell/[email protected]':resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}engines: {node: '>=6.0.0'}@@ -3488,6 +4093,12 @@ packages:'@jridgewell/[email protected]':resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}+'@js-sdsl/[email protected]':resolution: {integrity: sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==}@@ -3495,10 +4106,6 @@ packages:resolution: {integrity: sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==}engines: {node: '>=8'}- '@mapbox/[email protected]':- resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}- hasBin: true-'@maxmind/[email protected]':resolution: {integrity: sha512-yJWQNxKRqPaGKorzpDKZBAR+gLk80XnZ3w/fhLEdfGnqls+Rv3ui0qQSd3akpvAC2NX8cjn7VJ5xxrlVw7i6KA==}@@ -3538,6 +4145,9 @@ packages:'@napi-rs/[email protected]':resolution: {integrity: sha512-kwUxR7J9WLutBbulqg1dfOrMTwhMdXLdcGUhcbCcGwnPLt3gz19uHVdwH1syKVDbE022ZS2vZxOWflFLS0YTjw==}+ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==}+'@next/[email protected]':resolution: {integrity: sha512-qsHJle3GU3CmVx7pUoXcghX4sRN+vINkbLdH611T8ZlsP//grzqVW87BSUgOZeSAD4q7ZdZicdwNe/20U2janA==}@@ -3813,12 +4423,21 @@ packages:'@one-ini/[email protected]':resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==}- '@openpanel/[email protected]':- resolution: {integrity: sha512-Fu6hG8rm4rT7IudYL/o7RSBzZZ3L2AWyxzba/eDDxaYjrPMsoGZl5CC/VOrp27WePua49bduS/mq+oIp4RgR5g==}- peerDependencies:- next: ^12.0.0 || ^13.0.0 || ^14.0.0- react: ^16.8.0 || ^17.0.0 || ^18.0.0- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0+ '@oozcitak/[email protected]':+ resolution: {integrity: sha512-0JT29/LaxVgRcGKvHmSrUTEvZ8BXvZhGl2LASRUgHqDTC1M5g1pLmVv56IYNyt3bG2CUjDkc67wnyZC14pbQrQ==}+ engines: {node: '>=8.0'}++ '@oozcitak/[email protected]':+ resolution: {integrity: sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==}+ engines: {node: '>=6.0'}++ '@oozcitak/[email protected]':+ resolution: {integrity: sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==}+ engines: {node: '>=8.0'}++ '@oozcitak/[email protected]':+ resolution: {integrity: sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ==}+ engines: {node: '>=8.0'}'@openpanel/[email protected]':resolution: {integrity: sha512-+Zdrl5fC8Iczub/pVvX8Xp9q6mQvApNXGenCEkdiAZk9nT7xpaLfzkdHnwx7XHxp5H50zdwgqWDGiwLMqRWjKA==}@@ -3830,9 +4449,6 @@ packages:'@openpanel/[email protected]':resolution: {integrity: sha512-FNmmfjdXoC/VHEjA+WkrQ4lyM5lxEmV7xDd57uj4E+lIS0sU3DLG2mV/dpS8AscnZbUvuMn3kPhiLCqYzuv/gg==}- '@openpanel/[email protected]':- resolution: {integrity: sha512-ipY5hYWWrzPDwi1BtzyNn1d+Ly1gjujpmLvqO6oMKOhbNT8CwV9dIObZjyhzckaSMS8qYII9pLDIU1HCRysEDg==}-'@openpanel/[email protected]':resolution: {integrity: sha512-cVZ7Kr9SicczJ/RDIfEtZs8+1iGDzwkabVA/j3NqSl8VSucsC8m1+LVbjmCDzCJNnK4yVn6tEcc9PJRi2rtllw==}@@ -3845,6 +4461,10 @@ packages:resolution: {integrity: sha512-E3skn949Pk1z2XtXu/lxf6QAZpawuTM/IUEXcAzpiUkTd73Hmvw26FiN3cJuTmkpM5hZzHwkomVdtrh/n/zzwA==}engines: {node: '>=14'}+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-uIX52NnTM0iBh84MShlpouI7UKqkZ7MrUszTmaypHBu4r7NofznSnQRfJ+uUeDtQDj6w8eFGg5KBLDAwAPz1+A==}+ engines: {node: '>=14'}+'@opentelemetry/[email protected]':resolution: {integrity: sha512-I/s6F7yKUDdtMsoBWXJe8Qz40Tui5vsuKCWJEWVL+5q9sSWRzzx6v2KeNsOBEwd94j0eWkpWCH4yB6rZg9Mf0w==}engines: {node: '>=8.0.0'}@@ -3865,6 +4485,12 @@ packages:peerDependencies:'@opentelemetry/api': '>=1.0.0 <1.9.0'+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-s5vvxXPVdjqS3kTLKMeBMvop9hbWkwzBpu+mUO2M7sZtlkyDJGwFe33wRKnbaYDo8ExRVBIIdwIGrqpxHuKttA==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': '>=1.0.0 <1.10.0'+'@opentelemetry/[email protected]':resolution: {integrity: sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==}engines: {node: '>=14'}@@ -3877,6 +4503,12 @@ packages:peerDependencies:'@opentelemetry/api': '>=1.0.0 <1.10.0'+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-OOCM2C/QIURhJMuKaekP3TRBxBKxG/TWWA0TL2J6nXUtDnuCtccy49LUJF8xPFXMX+0LMcxFpCo8M9cGY1W6rQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': '>=1.0.0 <1.10.0'+'@opentelemetry/[email protected]':resolution: {integrity: sha512-cd6GZ9IqCrmvOJwi1HjRR7o9ihF7xhZTekgxUsoyTsPF+SjKMsLF9ur6HeBYkYhk+YjZ1ken3XUMH47oUTvu8Q==}engines: {node: '>=14'}@@ -3925,6 +4557,12 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-AyXVnlCf/xV3K/rNumzKxZqsULyITJH6OVLiW6730JPRqWA7Zc9bvYoVNpN6iOpTU8CasH34SU/ksVJmObFibQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-/BLG+0DQr2tCILFGJKJH2Fg6eyjhqOlVflYpNddUEXnzyQ/PAhTdgirkqbICFgeSW2XYcEY9zXpuRldrVNw9cA==}engines: {node: '>=14'}@@ -3955,12 +4593,24 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-ht7YGWQuV5BopMcw5Q2hXn3I8eG8TH0J/kc/GMcW4CuNTgiP6wCu44BOnucJWL3CmFWaRHI//vWyAhaC8BwePw==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-90eAF2JPSbPAsOuGfYyctYaoYXqy4Clbxt0j/uUgg6dto4oqwUw3AvTyHQEztLGxeXwEzC1EQigDtVPg5ZexYA==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.0.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-K/qU4CjnzOpNkkKO4DfCLSQshejRNAJtd4esgigo/50nxCB6XCyi1dhAblUHM9jG5dRm8eu0FB+t87nIo99LYQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-fiyCOAw+tlbneok1x7P5UseoGW5nS60CWWx7NXzYW+WOexpSmDQQW7olttGa8fqE6/sVCoi1l+QdfVoETZi/NQ==}engines: {node: '>=14'}@@ -3979,6 +4629,12 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-QNXPTWteDclR2B4pDFpz0TNghgB33UMjUt14B+BZPmtH1MwUFAfLHBaP5If0Z5NZC+jaH8oF2glgYjrmhZWmSw==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-3Nfm43PI0I+3EX+1YbSy6xbDu276R1Dh1tqAk68yd4yirnIh52Kd5B+nJ8CgHA7o3UKakpBjj6vSzi5vNCzJIA==}engines: {node: '>=14'}@@ -3991,18 +4647,36 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-6g0FhB3B9UobAR60BGTcXg4IHZ6aaYJzp0Ki5FhnxyAPt8Ns+9SSvgcrnsN2eGmk3RWG5vYycUGOEApycQL24A==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-CExAEqJvK8jYxrhN8cl6EaGg57EGJi+qsSKouLC5lndXi68gZLOKbZIMZg4pF0kNfp/D4BFaGmA6Ap7d5WoPTw==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-M6qGYsp1cURtvVLGDrPPZemMFEbuMmCXgQYTReC/IbimV5sGrLBjB+/hANUpRZjX67nGLdKSVLZuQQAiNz+sww==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-LVRdEHWACWOczv2imD+mhUrLMxsEjPPi32vIZJT57zygR5aUiA4em8X3aiGOCycgbMWkIu8xOSGSxdx3JmzN+w==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-EGQRWMGqwiuVma8ZLAZnExQ7sBvbOx0N/AE/nlafISPs8S+QtXX+Viy6dcQwVWwYHQPAcuY3bFt3xgoAwb4ZNQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-coRTugFL7De/VNH/1NqPlxnfik87jS+jBXsny+Y/lMhXIA3x8t71IyL9ihuewkD+lNtIxIz6Y7Sq6kPuOqz5dQ==}engines: {node: '>=14'}@@ -4015,36 +4689,78 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-7Ehow/7Wp3aoyCrZwQpU7a2CnoMq0XhIcioFuKjBb0PLYfBfmTsFTUyatlHu0fRxhwcRsSQRTvEhmZu8CppBpQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-6b3nZnFFEz/3xZ6w8bVxctPUWIPWiXuPQ725530JgxnN1cvYFd8CJ75PrHZNjynmzSSnqBkN3ef4R9N+RpMh8Q==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-1Uz5iJ9ZAlFOiPuwYg29Bf7bJJc/GeoeJIFKJYQf67nTVKFe8RHbEtxgkOmK4UGZNHKXcpW4P8cWBYzBn1USpg==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-Jv/fH7KhpWe4KBirsiqeUJIYrsdR2iu2l4nWhfOlRvaZ+zYIiLEzTQR6QhBbyRoAbU4OuYJzjWusOmmpGBnwng==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-OtFGSN+kgk/aoKgdkKQnBsQFDiG8WdCxu+UrHr0bXScdAmtSzLSraLo7wFIb25RVHfRWvzI5kZomqJYEg/l1iA==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0++ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-OtjaKs8H7oysfErajdYr1yuWSjMAectT7Dwr+axIoZqT9lmEOkD/H/3rgAs8h/NIuEi2imSXD+vL4MZtOuJfqQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-6bEuiI+yMf3D0+ZWZE2AKmXhIhBvZ0brdO/0A8lUqeqeS+sS4fTcjA1F2CclsCNxYWEgcs8o3QyQqPceBeVRlg==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-U4dQxkNhvPexffjEmGwCq68FuftFK15JgUF05y/HlK3M6W/G2iEaACIfXdSnwVNe9Qh0sPfw8LbOPxrWzGWGMQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-dJc3H/bKMcgUYcQpLF+1IbmUKus0e5Fnn/+ru/3voIRHwMADT3rFSUcGLWSczkg68BCgz0vFWGDTvPtcWIFr7A==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-l/c+Z9F86cOiPJUllUCt09v+kICKvT+Vg1vOAJHtHPsJIzurGayucfCMq2acd/A/yxeNWunl9d9eqZ0G+XiI6A==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-dHLrn55qVWsHJQYdForPWPUWDk2HZ2jjzkT+WoQSqpYT1j4HxfoiLfBTF+I3EbEYFAJnDRmRAUfA6nU5GPdCLQ==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-5MPkYCvG2yw7WONEjYj5lr5JFehTobW7wX+ZUFy81oF2lr9IPfZk9qO+FTaM0bGEiymwfLwKe6jE15nHn1nmHg==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-5efkT8ZfN8il5z+yfKYFGm2YR3mhlhaJoGfNOAylKE/6tUH3WDTTWaP7nrURtWGc+fuvDktcEch18Se8qsGS7w==}engines: {node: '>=14'}@@ -4057,24 +4773,48 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-1xmAqOtRUQGR7QfJFfGV/M2kC7wmI2WgZdpru8hJl3S0r4hW0n3OQpEHlSGXJAaNFyvT+ilnwkT+g5L4ljHR6g==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-zaeiasdnRjXe6VhYCBMdkmAVh1S5MmXC/0spet+yqoaViGnYst/DOxPvhwg3yT4Yag5crZNWsVXnA538UjP6Ow==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-3kINtW1LUTPkiXFRSSBmva1SXzS/72we/jL22N+BnF3DFcoewkdkHPYOIdAAk9gSicJ4d5Ojtt1/HeibEc5OQg==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-qkpHMgWSDTYVB1vlZ9sspf7l2wdS5DDq/rbIepDwX5BA0N0068JTQqh0CgAh34tdFqSCnWXIhcyOXC2TtRb0sg==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-h6Ad60FjCYdJZ5DTz1Lk2VmQsShiViKe0G7sYikb0GHI0NVvApp2XQNRHNjEMz87roFttGPLHOYVPlfy+yVIhQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-+iBAawUaTfX/HAlvySwozx0C2B6LBfNPXX1W8Z2On1Uva33AGkw2UjL9XgIg1Pj4eLZ9R4EoJ/aFz+Xj4E/7Fw==}engines: {node: '>=14'}peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-TKp4hQ8iKQsY7vnp/j0yJJ4ZsP109Ht6l4RHTj0lNEG1TfgTrIH5vJMbgmoYXWzNHAqBH2e7fncN12p3BP8LFg==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-ebYQjHZEmGHWEALwwDGhSQVLBaurFnuLIkZD5igPXrt7ohfF4lc5/4al1LO+vKc0NHk8SJWStuRueT86ISA8Vg==}engines: {node: '>=14'}@@ -4093,6 +4833,12 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-QxgjSrxyWZc7Vk+qGSfsejPVFL1AgAJdSBMYZdDUbwg730D09ub3PXScB9d04vIqPriZ+0dqzjmQx0yWKiCi2Q==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-uA17F2iP77o3NculB63QD2zv3jkJ093Gfb0GxHLEqTIqpYs1ToJ53ybWwjJwqFByxk7GrliaxaxVtWC23PKzBg==}engines: {node: '>=14'}@@ -4105,7 +4851,13 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0- '@opentelemetry/[email protected]':+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-UMqleEoabYMsWoTkqyt9WAzXwZ4BlFZHO40wr3d5ZvtjKCHlD4YXLm+6OLCeIi/HkX7EXvQaz8gtAwkwwSEvcQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0++ '@opentelemetry/[email protected]':resolution: {integrity: sha512-HUjTerD84jRJnSyDrRPqn6xQ7K91o9qLflRPZqzRvq0GRj5PMfc6TJ/z3q/ayWy/2Kzffhrp7HCIVp0u0TkgUg==}engines: {node: '>=14'}peerDependencies:@@ -4141,6 +4893,18 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-5Cuy/nj0HBaH+ZJ4leuD7RjgvA844aY2WW+B5uLcWtxGjRZl3MNLuxnNg5DYWZNPO+NafSSnra0q49KWAHsKBg==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0++ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-rkOGikPEyRpMCmNu9AQuV5dtRlDmJp2dK5sw8roVshAGoB6hH/3QjDtRhdwd75SsJwgynWUNRUYe0wAkTo16tQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.7.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-RH9WdVRtpnyp8kvya2RYqKsJouPxvHl7jKPsIfrbL8u2QCKloAGi0uEqDHoOS15ZRYPQTDXZ7d8jSpUgSQmvpA==}engines: {node: '>=14'}@@ -4159,6 +4923,12 @@ packages:peerDependencies:'@opentelemetry/api': ^1.3.0+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-BdBGhQBh8IjZ2oIIX6F2/Q3LKm/FDDKi6ccYKcBTeilh6SNdNKveDOLk73BkSJjQLJk6qe4Yh+hHw1UPhCDdrg==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': ^1.3.0+'@opentelemetry/[email protected]':resolution: {integrity: sha512-UYlnOYyDdzo1Gw559EHCzru0RwhvuXCwoH8jGo9J4gO1TE58GjnEmIjomMsKBCym3qWNJfIQXw+9SZCV0DdQNg==}engines: {node: '>=14'}@@ -4253,6 +5023,12 @@ packages:peerDependencies:'@opentelemetry/api': '>=1.0.0 <1.10.0'+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-5UxZqiAgLYGFjS4s9qm5mBVo433u+dSPUFWVWXmLAD4wB65oMCoXaJP1KJa9DIYYMeHu3z4BZcStG3LC593cWA==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': '>=1.0.0 <1.10.0'+'@opentelemetry/[email protected]':resolution: {integrity: sha512-ULQQtl82b673PpZc5/0EtH4V+BrwVOgKJZEB7tYZnGTG3I98tQVk89S9/JSixomDr++F4ih+LSJTCqIKBz+MQQ==}engines: {node: '>=14'}@@ -4290,6 +5066,12 @@ packages:peerDependencies:'@opentelemetry/api': '>=1.0.0 <1.10.0'+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-jVPgBbH1gCy2Lb7X0AVQ8XAfgg0pJ4nvl8/IiQA6nxOsPvS+0zMJaFSs2ltXe0J6C8dqjcnpyqINDJmU30+uOg==}+ engines: {node: '>=14'}+ peerDependencies:+ '@opentelemetry/api': '>=1.0.0 <1.10.0'+'@opentelemetry/[email protected]':resolution: {integrity: sha512-/FZX8uWaGIAwsDhqI8VvQ+qWtfMNlXjaFYGc+vmxgdRFppCSSIRwrPyIhJO1qx61okyYhoyxVEZAfoiNxrfJCg==}engines: {node: '>=14'}@@ -4304,6 +5086,14 @@ packages:resolution: {integrity: sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==}engines: {node: '>=14'}+ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==}+ engines: {node: '>=14'}++ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==}+ engines: {node: '>=14'}+'@opentelemetry/[email protected]':resolution: {integrity: sha512-nSDlnHSqzC3pXn/wZEZVLuAuJ1MYMXPBwtv2qAbCa3847SaHItdE7SzUq/Jtb0KZmh1zfAbNi3AAMjztTT4Ugg==}engines: {node: '>=14'}@@ -4332,26 +5122,45 @@ packages:'@oslojs/[email protected]':resolution: {integrity: sha512-bLE7BtHrURedCn4Mco3ma9L4Y1GR2SMBuIvjWr7rmQ4/W/4Jy70TIAgZ+0nIlk0xHz1vNP8x8DCns45Sb2XRbg==}- '@panva/[email protected]':- resolution: {integrity: sha512-dhPeilub1NuIG0X5Kvhh9lH4iW3ZsHlnzwgwbOlgwQ2wG1IqFzsgHqmKPk3WzsdWAeaxKJxgM0+W433RmN45GA==}+ '@oxc-project/[email protected]':+ resolution: {integrity: sha512-+UgQT/4o59cZfH6Cp7G0hwmqEQ0wE+AdIwhikdwnhWI9Dp8CgSY081+Q3O67/wq3VJu8mgUEB93J9EHHn70fOw==}'@pkgjs/[email protected]':resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}engines: {node: '>=14'}- '@polar-sh/[email protected]':- resolution: {integrity: sha512-OEaxiNJaxpeNi7LANHR5S71BAyORk6W0lwkfHcrGyMGS9VDdgXnZjB8QZ3tFSXbQvt3yZdHShX6pPC8xOxNvFw==}+ '@polar-sh/[email protected]':+ resolution: {integrity: sha512-vv4Ptl5jNsHIZoLvzKr0wR+dGXJOpz8VWOOTEGqaiYx6YJvzIvrayg52qp8ZtBjsRBkySLZS2EVTV3wDHTACwA==}+ hasBin: truepeerDependencies:- zod: '>= 3'+ '@modelcontextprotocol/sdk': '>=1.5.0 <1.10.0'+ peerDependenciesMeta:+ '@modelcontextprotocol/sdk':+ optional: true- '@prisma/[email protected]':- resolution: {integrity: sha512-caSOnG4kxcSkhqC/2ShV7rEoWwd3XrftokxJqOCMVvia4NYV/TPtJlS9C2os3Igxw/Qyxumj9GBQzcStzECvtQ==}- engines: {node: '>=16.13'}+ '@poppinss/[email protected]':+ resolution: {integrity: sha512-FvdDqtcRCtz6hThExcFOgW0cWX+xwSMWcRuQe5ZEb2m7cVQOAVZOIMt+/v9RxGiD9/OY16qJBXK4CVKWAPalBw==}++ '@poppinss/[email protected]':+ resolution: {integrity: sha512-iG0TIdqv8xJ3Lt9O8DrPRxw1MRLjNpoqiSGU03P/wNLP/s0ra0udPJ1J2Tx5M0J3H/cVyEgpbn8xUKRY9j59kQ==}++ '@poppinss/[email protected]':+ resolution: {integrity: sha512-m7bpKCD4QMlFCjA/nKTs23fuvoVFoA83brRKmObCUNmi/9tVu8Ve3w4YQAnJu4q3Tjf5fr685HYIC/IA2zHRSg==}++ '@prisma/[email protected]':+ resolution: {integrity: sha512-8E/Nk3eL5g7RQIg/LUj1ICyDmhD053STjxrPxUtCRybs2s/2sOEcx9NpITuAOPn07HEpWBfhAVe1T/HYWXUPOw==}+ engines: {node: '>=18.18'}peerDependencies:prisma: '*'+ typescript: '>=5.1.0'peerDependenciesMeta:prisma:optional: true+ typescript:+ optional: true++ '@prisma/[email protected]':+ resolution: {integrity: sha512-IwC7o5KNNGhmblLs23swnfBjADkacBb7wvyDXUWLwuvUQciKJZqyecU0jw0d7JRkswrj+XTL8fdr0y2/VerKQQ==}'@prisma/[email protected]':resolution: {integrity: sha512-oCx79MJ4HSujokA8S1g0xgZUGybD4SyIOydoHMngFYiwEwYDQ5tBQkK5XoEHuwOYDKUOKRn/J0MEymckc4IgsQ==}@@ -4359,28 +5168,45 @@ packages:'@prisma/[email protected]':resolution: {integrity: sha512-yAHFSFCg8KVoL0oRUno3m60GAjsUKYUDkQ+9BA2X2JfVR3kRVSJFc/GpQ2fSORi4pSHZR9orfM4UC9OVXIFFTA==}+ '@prisma/[email protected]':+ resolution: {integrity: sha512-j4Lf+y+5QIJgQD4sJWSbkOD7geKx9CakaLp/TyTy/UDu9Wo0awvWCBH/BAxTHUaCpIl9USA5VS/KJhDqKJSwug==}+'@prisma/engines-version@5.9.0-32.23fdc5965b1e05fc54e5f26ed3de66776b93de64':resolution: {integrity: sha512-HFl7275yF0FWbdcNvcSRbbu9JCBSLMcurYwvWc8WGDnpu7APxQo2ONtZrUggU3WxLxUJ2uBX+0GOFIcJeVeOOQ==}+ '@prisma/engines-version@6.14.0-25.717184b7b35ea05dfa71a3236b7af656013e1e49':+ resolution: {integrity: sha512-EgN9ODJpiX45yvwcngoStp3uQPJ3l+AEVoQ6dMMO2QvmwIlnxfApzKmJQExzdo7/hqQANrz5txHJdGYHzOnGHA==}+'@prisma/[email protected]':resolution: {integrity: sha512-gkdXmjxQ5jktxWNdDA5aZZ6R8rH74JkoKq6LD5mACSvxd2vbqWeWIOV0Py5wFC8vofOYShbt6XUeCIUmrOzOnQ==}- '@prisma/[email protected]':- resolution: {integrity: sha512-0KVjOgYJO9ymOACwLXebXB1XZCrfXXZMDkZrdZQOm9rqraC1rguwpPzXUdgv2txMLyJNSe+i5DOruDCU4FfvCA==}+ '@prisma/[email protected]':+ resolution: {integrity: sha512-LhJjqsALFEcoAtF07nSaOkVguaxw/ZsgfROIYZ8bAZDobe7y8Wy+PkYQaPOK1iLSsFgV2MhCO/eNrI1gdSOj6w==}++ '@prisma/[email protected]':+ resolution: {integrity: sha512-mCMDloqUKUwx2o5uedTs1FHX3Nxdt1GdRMoeyp1JggjiwOALmIYWhxfIN08M2BZ0w8SKwvJqicJZMjkQYkkijw==}peerDependencies:- '@prisma/client': ^5.2.0+ '@prisma/client': ^6.5.0'@prisma/[email protected]':resolution: {integrity: sha512-l0goQOMcNVOJs1kAcwqpKq3ylvkD9F04Ioe1oJoCqmz05mw22bNAKKGWuDd3zTUoUZr97va0c/UfLNru+PDmNA==}+ '@prisma/[email protected]':+ resolution: {integrity: sha512-MPzYPOKMENYOaY3AcAbaKrfvXVlvTc6iHmTXsp9RiwCX+bPyfDMqMFVUSVXPYrXnrvEzhGHfyiFy0PRLHPysNg==}+'@prisma/[email protected]':resolution: {integrity: sha512-37Aibw0wVRQgQVtCdNAIN71YFnSQfvetok7vd95KKkYkQRbEx94gsvPDpyN9Mw7p3IwA3nFgPfLc3jBRztUkKw==}'@prisma/[email protected]':resolution: {integrity: sha512-6OQsNxTyhvG+T2Ksr8FPFpuPeL4r9u0JF0OZHUBI/Uy9SS43sPyAIutt4ZEAyqWQt104ERh70EZedkHZKsnNbg==}- '@prisma/[email protected]':- resolution: {integrity: sha512-uX2nFUt1+qDU6za4lU6vFu6Ww2dD6XnQ3TLu3Eo4eVKhpa8h6qLbYiA5F9Y0yCOxutw12hA/eFU9TEOAa9Zgfg==}+ '@prisma/[email protected]':+ resolution: {integrity: sha512-7VjuxKNwjnBhKfqPpMeWiHEa2sVjYzmHdl1slW6STuUCe9QnOY0OY1ljGSvz6wpG4U8DfbDqkG1yofd/1GINww==}++ '@prisma/[email protected]':+ resolution: {integrity: sha512-mrZOev24EDhnefmnZX7WVVT7v+r9LttPRqf54ONvj6re4XMF7wFTpK2tLJi4XHB7fFp/6xhYbgRel8YV7gQiyA==}+ peerDependencies:+ '@opentelemetry/api': ^1.8'@protobufjs/[email protected]':resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}@@ -4412,12 +5238,15 @@ packages:'@protobufjs/[email protected]':resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==}- '@radix-ui/[email protected]':- resolution: {integrity: sha512-T5gIdVO2mmPW3NNhjNgEP3cqMXjXL9UbO0BzWcXfvdBs+BohbQxvd/K5hSVKmn9/lbTdsQVKbUcP5WLCwvUbBg==}+ '@quansync/[email protected]':+ resolution: {integrity: sha512-lNS9hL2aS2NZgNW7BBj+6EBl4rOf8l+tQ0eRY6JWCI8jI2kc53gSoqbjojU0OnAWhzoXiOjFyGsHcDGePB3lhA==}'@radix-ui/[email protected]':resolution: {integrity: sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}+'@radix-ui/[email protected]':resolution: {integrity: sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==}@@ -4430,13 +5259,16 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-SJ31y+Q/zAyShtXJc8x83i9TYdbAfHZ++tUZnvjJJqFjzsdUnKsxPL6IEtBlxKkU7yzer//GQtZSV4GbldL3YA==}- '@radix-ui/[email protected]':- resolution: {integrity: sha512-fDG7jcoNKVjSK6yfmuAs0EnPDro0WMXIhMtXdTBWqEioVW206ku+4Lw07e+13lUkFkpoEQ2PdeMIAGpdqEAmDg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -4456,34 +5288,34 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-OrVIOcZL0tl6xibeuGt5/+UxoT2N27KCFOPjFyfXMnchxSHZ/OW7cCX2nGlIYJrbHK/fczPcFzAwvNBB6XBNMA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-wSP+pHsB/jQRaL6voubsQ/ZlrGBHHrOjmBnr19hxYgtS0WvAFwZhK2WP/YY5yF9uKECCEEDGxuLxq1NBK51wFA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-FmlW1rCg7hBpEBwFbjHwCW6AmWLQM6g/v0Sn8XbP9NvmSZ2San1FpQeyPtufzOMSIx7Y4dzjlHoifhp+7NkZhw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-FmlW1rCg7hBpEBwFbjHwCW6AmWLQM6g/v0Sn8XbP9NvmSZ2San1FpQeyPtufzOMSIx7Y4dzjlHoifhp+7NkZhw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-G+KcpzXHq24iH0uGG/pF8LyzpFJYGD4RfLjCIBfGdSLXvjLHST31RUiRVrupIBMvIppMgSzQ6l66iAxl03tdlg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -4495,8 +5327,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-G+KcpzXHq24iH0uGG/pF8LyzpFJYGD4RfLjCIBfGdSLXvjLHST31RUiRVrupIBMvIppMgSzQ6l66iAxl03tdlg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -4508,60 +5340,60 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-fXR5kbMan9oQqMuacfzlGG/SQMcmMlZ4wrvpckv8SgUulD0MMpspxJrxg/Gp/ISV3JfV1AeSWTYK9GvxA4ySwA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Yq6lvO9HQyPwev1onK1daHCHqXVLzPhSVjmsNjCa2Zcxy2f7uJD2itDtxknv6FzAKCwD1qQkeVDmX/cev13n/g==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-kVK2K7ZD3wwj3qhle0ElXhOjbezIgyl2hVvgwfIdexL3rN6zJmy5AqqIf+D31lxVppdzV8CjAfZ6PklkmInZLw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-CBuGQa52aAYnADZVt/KBQzXrwx6TqnlwtcIPGtVt5JkkzQwMOLJjPukimhfKEr4GQNd43C+djUh5Ikopj8pSLg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-UBmVDkmR6IvDsloHVN+3rtx4Mi5TFvylYXpluuv0f37dtaz3H99bp8No0LGXRigVpl3UAT4l9j6bIchh42S/Gg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-1///SnrfQHJEofLokyczERxQbWfCGQlQ2XsCZMucVs6it+lq9iw4vXy+uDn1edlb58cOZOWSldnfPAYcT4O/Yg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-1///SnrfQHJEofLokyczERxQbWfCGQlQ2XsCZMucVs6it+lq9iw4vXy+uDn1edlb58cOZOWSldnfPAYcT4O/Yg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -4586,21 +5418,21 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-3SzW+0PW7yBBoQlT8wNcGtaxaD0XSu0uLUFgrtHY08Acx05TaHaOmVLR73c0j/cqpDy53KBMO7s0dx2wmOIDIA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-GZsZslMJEyo1VKm5L1ZJY8tGDxZNPAoUeQUIbKeJfoi7Q4kmig5AsgLMYYuyYbfjd8fBmFORAIwYAkXMnXZgZw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-GZsZslMJEyo1VKm5L1ZJY8tGDxZNPAoUeQUIbKeJfoi7Q4kmig5AsgLMYYuyYbfjd8fBmFORAIwYAkXMnXZgZw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-9z54IEKRxIa9VityapoEYMuByaG42iSy1ZXlY2KcuLSEtq8x4987/N6m15ppoMffgZX72gER2uHe1D9Y6Unlcw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -4612,8 +5444,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-9z54IEKRxIa9VityapoEYMuByaG42iSy1ZXlY2KcuLSEtq8x4987/N6m15ppoMffgZX72gER2uHe1D9Y6Unlcw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -4657,6 +5489,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==}peerDependencies:@@ -4689,6 +5530,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Yn9YU+QlHYLWwV1XfKiqnGVpWYWk6MeBVM6x/bcoyPvxgjQGoeT35482viLPctTMWoMw0PoHgqfSox7Ig+957Q==}peerDependencies:@@ -4708,8 +5558,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-Yj4dZtqa2o+kG61fzB0H2qUvmwBA2oyQroGLyNtBj1beo1khoQ3q1a2AO8rrQYjd8256CO9+N8L9tvsS+bnIyA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -4721,14 +5571,18 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-RXcvnXgyvYvBEOhCBuddKecVkoMiI10Jcm5cTI7abJRAHYfFxeu+FBQs/DvdxSYucxR5mna0dNsL6QFlds5TMA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Yj4dZtqa2o+kG61fzB0H2qUvmwBA2oyQroGLyNtBj1beo1khoQ3q1a2AO8rrQYjd8256CO9+N8L9tvsS+bnIyA==}peerDependencies:'@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true'@radix-ui/[email protected]':resolution: {integrity: sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}@@ -4739,6 +5593,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-n7kDRfx+LB1zLueRDvZ1Pd0bxdJWDUZNQ/GWoxDn2prnuJKRdxsjulejX/ePkOsLi2tTm6P24mDqlMSgQpsT6g==}peerDependencies:@@ -4771,6 +5634,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-E4TywXY6UsXNRhFrECa5HAvE5/4BFcGyfTyK36gP+pAW1ed7UTK4vKwdr53gAJYwqbfCWC6ATvJa3J3R/9+Qrg==}peerDependencies:@@ -4784,13 +5660,13 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-i6TuFOoWmLWq+M/eCLGd/bQ2HfAX1RJgvrBQ6AQLmzfvsLdefxbWu8G9zczcPFfcSPehz9GcpF6K9QYreFV8hA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -4820,6 +5696,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-C4SWtsULLGf/2L4oGeIHlvWQx7Rf+7cX/vKOAD2dXW0A1b5QXwi3wWeaEgW+wn+SEVrraMUk05vLU9fZZz5HbQ==}peerDependencies:@@ -4852,6 +5737,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==}peerDependencies:@@ -4875,26 +5773,35 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-N5ehvlM7qoTLx7nWPodsPYPgMzA5WM8zZChQg8nyFJKnDO5WHdba1vv5/H6IO5LtJMfD2Q3wh1qHFGNtK0w3bQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-BVkFLS+bUC8HcImkRKPSiVumA1VPOOEC5WBMiT+QAVsPzW1FJzI9KnqgGxVDPBcql5xXrHkD3JOVoXWEXD8SYA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -4914,13 +5821,13 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-shtvVnlsxT6faMnK/a7n0wptwBD23xc1Z5mdrtKLwVEfsEMXodS0r5s0/g5P0hX//EKYZS2sxUjqfzlg52ZSnQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -4940,21 +5847,21 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-cKpopj/5RHZWjrbF2846jBNacjQVwkP068DfmgrNJXpvVWrOvlAmE9xSiy5OqeE+Gi8D9fP+oDhUnPqNMY8/5w==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ZnRMshKF43aBxVWPWvbj21+7TQCvhuULWJ4gNIKYpRlQt5xGRhLx66tMp8pya2UkGHTSlhpXwmjqltDYHhw7Vg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-ZnRMshKF43aBxVWPWvbj21+7TQCvhuULWJ4gNIKYpRlQt5xGRhLx66tMp8pya2UkGHTSlhpXwmjqltDYHhw7Vg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Rvqc3nOpwseCyj/rgjlJDYAgyfw7OC1tTkKn2ivhaMGcYt8FSBlahHOZak2i3QwkRXUXgGgzeEe2RuqeEHuHgA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -4966,8 +5873,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-Rvqc3nOpwseCyj/rgjlJDYAgyfw7OC1tTkKn2ivhaMGcYt8FSBlahHOZak2i3QwkRXUXgGgzeEe2RuqeEHuHgA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -4998,8 +5905,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-A3UtLk85UtqhzFqtoC8Q0KvR2GbXF3mtPgACSazajqq6A41mEQgo53iPzY4i6BwDxlIFqWIhiQ2G729n+2aw/g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-WeDYLGPxJb/5EGBoedyJbT0MpoULmwnIPMJMSldkuiMsBAv7N1cRdsTWZWht9vpPOiN3qyiGAtbK2is47/uMFg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -5011,8 +5918,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-WeDYLGPxJb/5EGBoedyJbT0MpoULmwnIPMJMSldkuiMsBAv7N1cRdsTWZWht9vpPOiN3qyiGAtbK2is47/uMFg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-sn2O9k1rPFYVyKd5LAJfo96JlSGVFpa1fS6UuBJfrZadudiw5tAmru+n1x7aMRQ84qDM71Zh1+SzK5QwU0tJfA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -5024,8 +5931,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-sn2O9k1rPFYVyKd5LAJfo96JlSGVFpa1fS6UuBJfrZadudiw5tAmru+n1x7aMRQ84qDM71Zh1+SzK5QwU0tJfA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -5082,6 +5989,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-EyXe6mnRlHZ8b6f4ilTDrXmkLShICIuOTTj0GX4w1rp+wSxf3+TD05u1UOITC8VsJ2a9nwHvdXtOXEOl0Cw/zQ==}peerDependencies:@@ -5127,39 +6047,39 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-5G6Om/tYSxjSeEdrb1VfKkfZfn/1IlPWd731h2RfPuSbIfNUgfqAwbKfJCg/PP6nuUCTrYzalwHSpSinoWoCag==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-x+yELayyefNeKeTx4fjK6j99Fs6c4qKm3aY38G3swQVTN6xMpsrbigC0uHs2L//g8q4qR7qOcww8430jJmi2ag==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-2mUg5Mgcu001VkGy+FfzZyzbmuUWzgWkj3rvv4yu+mLw03+mTzbxZHvfcGyFp2b8EkQeMkpRQ5FiA2Vr2O6TeQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -5179,13 +6099,13 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-b6PAgH4GQf9QEn8zbT2XUHpW5z8BzqEc7Kl11TwDrvuTrxlkcjTD5qa/bxgKr+nmuXKu4L/W5UZ4mlP/VG/5Gw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -5205,8 +6125,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-nNrLAWLjGESnhqBqcCNW4w2nn7LxudyMzeB6VgdyAnFLC6kfQgnAjSL2v6UkQTnDctJBlxrmxfplWS4iYjdUTw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -5218,58 +6138,93 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==}- peerDependencies:- react: ^16.8 || ^17.0 || ^18.0-- '@radix-ui/[email protected]':- resolution: {integrity: sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==}peerDependencies:'@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==}peerDependencies:'@types/react': '*'+ '@types/react-dom': '*'react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-YAKxaiGsSQJ38VzKH86/BPRC4rh+b1Jpa+JneA5LRE7skmLPNAyeG8kPJj/oo4STLvlrs8vkf/iYyc3A5stYCQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-nNrLAWLjGESnhqBqcCNW4w2nn7LxudyMzeB6VgdyAnFLC6kfQgnAjSL2v6UkQTnDctJBlxrmxfplWS4iYjdUTw==}peerDependencies:'@types/react': '*'+ '@types/react-dom': '*'react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==}+ peerDependencies:+ react: ^16.8 || ^17.0 || ^18.0- '@radix-ui/[email protected]':- resolution: {integrity: sha512-mxm87F88HyHztsI7N+ZUmEoARGkC22YVW5CaC+Byc+HRpuvCrOBPTAnXgf+tZ/7i0Sg/eOePGdMhUKhPaQEqow==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==}peerDependencies:'@types/react': '*'- '@types/react-dom': '*'react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0peerDependenciesMeta:'@types/react':optional: true- '@types/react-dom':++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-YAKxaiGsSQJ38VzKH86/BPRC4rh+b1Jpa+JneA5LRE7skmLPNAyeG8kPJj/oo4STLvlrs8vkf/iYyc3A5stYCQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-egZfYY/+wRNCflXNHx+dePvnz9FbmssDTJBtgRfDY7e8SE5oIo3Py2eCB1ckAbh1Q7cQ/6yJZThJ++sgbxibog==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -5289,52 +6244,52 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-fRLn227WHIBRSzuRzGJ8W+5YALxofH23y0MlPLddaIpLpCDqdE0NZlS2NRQDRiptfxDeeCjgFIpexB1/zkxDlw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-Uaj/M/cMyiyT9Bx6fOZO0SAG4Cls0GptBWiBmBxofmDbNVnYYoyRWj/2M/6VCi/7qcXFWnHhRUfdfZFvvkuu8A==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-Pkqg3+Bc98ftZGsl60CLANXQBBQ4W3mTFS9EJvNxKMZ7magklKV69/id1mlAlOFDDfHvlCms0fx8fA4CMKDJHg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-lPh5iKNFVQ/jav/j6ZrWq3blfDJ0OH9R6FlNUHPMqdLuQ9vwDgFsRxvl8b7Asuy5c8xmoojHUxKHQSOAvMHxyw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -5354,6 +6309,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg==}peerDependencies:@@ -5377,6 +6345,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==}peerDependencies:@@ -5400,6 +6377,24 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-JwfBCUIfhXRxKExgIqGa4CQsiMemo1Xt0W/B4ei3fpzpvPENKpMKQ8mZSB6Acj3ebrAEgi2xiQvcI1PAAodvyg==}peerDependencies:@@ -5423,6 +6418,24 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-6Tpkq+R6LOlmQb1R5NNETLG0B4YP0wc+klfXafpUCj6JGyaUc8il7/kUZ7m59rGbXGczE9Bs+iz2qloqsZBduQ==}peerDependencies:@@ -5446,11 +6459,11 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-cV5La9DPwiQ7S0gf/0qiD6YgNqM5Fk97Kdrlc5yBcrF3jyEZQwm7vYFqMo4IfeHgJXsRaMvLABFtd0OVEmZhDw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}peerDependencies:'@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -5464,11 +6477,11 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-Cq5DLuSiuYVKNU8orzJMbl15TXilTnJKUCltMVQg53BQOF1/C5toAaGrowkgksdBQ9H+SRL23g0HDmg9tvmxXw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==}peerDependencies:'@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -5482,11 +6495,11 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-ibay+VqrgcaI6veAojjofPATwledXiSmX+C0KrBk/xgpX9rBzPV3OsfwlhQdUOFbh+LKQorLYT+xTXW9V8yd0g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==}peerDependencies:'@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true@@ -5500,18 +6513,14 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-D4w41yN5YRKtu464TLnByKzMDG/JlMPHtfZgQAu9v6mNakUqGUI9vUrfQKz8NK41VMm/xbZbh76NUTVtIYqOMA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==}peerDependencies:'@types/react': '*'- '@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rcpeerDependenciesMeta:'@types/react':optional: true- '@types/react-dom':- optional: true'@radix-ui/[email protected]':resolution: {integrity: sha512-N8MDZqtgCgG5S3aV60INAB475osJousYpZ4cTJ2cFbMpdHS5Y6loLTH8LPtkj2QN0x93J30HT/M3qJXM0+lyeQ==}@@ -5539,25 +6548,38 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true'@radix-ui/[email protected]':resolution: {integrity: sha512-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg==}- '@react-email/[email protected]':- resolution: {integrity: sha512-ZSD2SxVSgUjHGrB0Wi+4tu3MEpB4fYSbezsFNEJk2xCWDBkFiOeEsjTmR5dvi+CxTK691hQTQlHv0XWuP7ENTg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}++ '@react-email/[email protected]':+ resolution: {integrity: sha512-o1bcSAmDYNNHECbkeyceCVPGmVsYvT+O3sSO/Ct7apKUu3JphTi31hu+0Nwqr/pgV5QFqdoT5vdS3SW5DJFHgQ==}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc- '@react-email/[email protected]':- resolution: {integrity: sha512-HYHrhyVGt7rdM/ls6FuuD6XE7fa7bjZTJqB2byn6/oGsfiEZaogY77OtoLL/mrQHjHjZiJadtAMSik9XLcm7+A==}+ '@react-email/[email protected]':+ resolution: {integrity: sha512-8i+v6cMxr2emz4ihCrRiYJPp2/sdYsNNsBzXStlcA+/B9Umpm5Jj3WJKYpgTPM+aeyiqlG/MMI1AucnBm4f1oQ==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc- '@react-email/[email protected]':- resolution: {integrity: sha512-4D43p+LIMjDzm66gTDrZch0Flkip5je91mAT7iGs6+SbPyalHgIA+lFQoQwhz/VzHHLxuD0LV6gwmU/WUQ2WEg==}+ '@react-email/[email protected]':+ resolution: {integrity: sha512-jSpHFsgqnQXxDIssE4gvmdtFncaFQz5D6e22BnVjcCPk/udK+0A9jRwGFEG8JD2si9ZXBmU4WsuqQEczuZn4ww==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc@@ -5574,8 +6596,8 @@ packages:peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc- '@react-email/[email protected]':- resolution: {integrity: sha512-JkPcGE/r3WsHMVO4kjkaQzAyXiSPATg5TgzTImypjGHbwrdLaDMVEBZz1SuLV8GexqCnmzo1qmhVHtHq8E7UWg==}+ '@react-email/[email protected]':+ resolution: {integrity: sha512-3o9ellDaF3bBcVMWeos9HI0iUIT1zGygPRcn9WSfI5JREORiN6ViEJIvz5SKWEn1KPNZtw/iaW8ct7PpVyhomg==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc@@ -5627,14 +6649,14 @@ packages:peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc- '@react-email/[email protected]':- resolution: {integrity: sha512-5IsobCyPkb4XwnQO8uFfGcNOxnsg3311GRXhJ3uKv51P7Jxme4ycC/MITnwIZ10w2zx7HIyTiqVzTj4XbuIHbg==}+ '@react-email/[email protected]':+ resolution: {integrity: sha512-UQA9pVm5sbflgtg3EX3FquUP4aMBzmLReLbGJ6DZQZnAskBF36aI56cRykDq1o+1jT+CKIK1CducPYziaXliag==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc- '@react-email/[email protected]':- resolution: {integrity: sha512-g/H5fa9PQPDK6WUEG7iTlC19sAktI23qyoiJtMLqQiXFCfWeQMhqjLGKeLSKkfzszqmfJCjZtpSiKtBoOdxp3Q==}+ '@react-email/[email protected]':+ resolution: {integrity: sha512-F7j9FJ0JN/A4d7yr+aw28p4uX7VLWs7hTHtLo7WRyw4G+Lit6Zucq4UWKRxJC8lpsUdzVmG7aBJnKOT+urqs/w==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc@@ -5646,8 +6668,8 @@ packages:react: ^18.0 || ^19.0 || ^19.0.0-rcreact-dom: ^18.0 || ^19.0 || ^19.0.0-rc- '@react-email/[email protected]':- resolution: {integrity: sha512-VQ8g4SuIq/jWdfBTdTjb7B8Np0jj+OoD7VebfdHhLTZzVQKesR2aigpYqE/ZXmwj4juVxDm8T2b6WIIu48rPCg==}+ '@react-email/[email protected]':+ resolution: {integrity: sha512-oq8/BD/I/YspeuBjjdLJG6xaf9tsPYk+VWu8/mX9xWbRN0t0ExKSVm9sEBL6RsCpndQA2jbY2VgPEreIrzUgqw==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc@@ -5665,14 +6687,14 @@ packages:peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc- '@react-email/[email protected]':- resolution: {integrity: sha512-VwRft4u/c0KuD6YlGWr+pltfzLzHS6Qt/L0XvdJf6ij6Iz6kKtuc7ZVZp/CJVbGnkUgWl/uiDlJ4FIAF6IzWTQ==}+ '@react-email/[email protected]':+ resolution: {integrity: sha512-heO9Khaqxm6Ulm6p7HQ9h01oiiLRrZuuEQuYds/O7Iyp3c58sMVHZGIxiRXO/kSs857NZQycpjewEVKF3jhNTw==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc- '@react-email/[email protected]':- resolution: {integrity: sha512-a7nl/2KLpRHOYx75YbYZpWspUbX1DFY7JIZbOv5x0QU8SvwDbJt+Hm01vG34PffFyYvHEXrc6Qnip2RTjljNjg==}+ '@react-email/[email protected]':+ resolution: {integrity: sha512-o5PNHFSE085VMXayxH+SJ1LSOtGsTv+RpNKnTiJDrJUwoBu77G3PlKOsZZQHCNyD28WsQpl9v2WcJLbQudqwPg==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc@@ -5773,30 +6795,6 @@ packages:peerDependencies:react-native: '*'- '@react-spring/[email protected]':- resolution: {integrity: sha512-5CWeNJt9pNgyvuSzQH+uy2pvTg8Y4/OisoscZIR8/ZNLIOI+CatFBhGZpDGTF/OzdNFsAoGk3wiUYTwoJ0YIvw==}- peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0-- '@react-spring/[email protected]':- resolution: {integrity: sha512-IqFdPVf3ZOC1Cx7+M0cXf4odNLxDC+n7IN3MDcVCTIOSBfqEcBebSv+vlY5AhM0zw05PDbjKrNmBpzv/AqpjnQ==}- peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0-- '@react-spring/[email protected]':- resolution: {integrity: sha512-NEopD+9S5xYyQ0pGtioacLhL2luflh6HACSSDUZOwLHoxA5eku1UPuqcJqjwSD6luKjjLfiLOspxo43FUHKKSA==}- peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0-- '@react-spring/[email protected]':- resolution: {integrity: sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==}-- '@react-spring/[email protected]':- 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-'@redis/[email protected]':resolution: {integrity: sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==}peerDependencies:@@ -5826,17 +6824,112 @@ packages:peerDependencies:'@redis/client': ^1.0.0- '@reduxjs/[email protected]':- resolution: {integrity: sha512-t7v8ZPxhhKgOKtU+uyJT13lu4vL7az5aFi4IdoDs/eS548edn2M8Ik9h8fxgvMjGoAUVFSt6ZC1P5cWmQ014QQ==}+ '@reduxjs/[email protected]':+ resolution: {integrity: sha512-MYlOhQ0sLdw4ud48FoC5w0dH9VfWQjtCjreKwYTT3l+r427qYC5Y8PihNutepr8XrNaBUDQo9khWUwQxZaqt5A==}peerDependencies:- react: ^16.9.0 || ^17.0.0 || ^18- react-redux: ^7.2.1 || ^8.0.2+ react: ^16.9.0 || ^17.0.0 || ^18 || ^19+ react-redux: ^7.2.1 || ^8.1.3 || ^9.0.0peerDependenciesMeta:react:optional: truereact-redux:optional: true+ '@remix-run/[email protected]':+ resolution: {integrity: sha512-J1dev372wtJqmqn9U/qbpbZxbJSQrogNN2+Qv1lKlpATpe/WQ9aCZfl/xSb9d2Rgh1IyLSvNxZAXPZxruO6Xig==}++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-TP8bcPOb1s6UmY5syhXrDn9k0XkYcw+XaoylTN4cJxf0JOVS2j682I3aTcpfT51hOFGr2bRwNKN9RZ19XxeQbA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [android]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-kuVWnZsE4vEjMF/10SbSUyzucIW2zmdsqFghYMqy+fsjXnRHg0luTU6qWF8IqJf4Cbpm9NEZRnjIEPpAbdiSNQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [darwin]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-u9Ps4sh6lcmJ3vgLtyEg/x4jlhI64U0mM93Ew+tlfFdLDe7yKyA+Fe80cpr2n1mNCeZXrvTSbZluKpXQ0GxLjw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [darwin]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-h9lUtVtXgfbk/tnicMpbFfZ3DJvk5Zn2IvmlC1/e0+nUfwoc/TFqpfrRRqcNBXk/e+xiWMSKv6b0MF8N+Rtvlg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [freebsd]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-IX2C6bA6wM2rX/RvD75ko+ix9yxPKjKGGq7pOhB8wGI4Z4fqX5B1nDHga/qMDmAdCAR1m9ymzxkmqhm/AFYf7A==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-mcjd57vEj+CEQbZAzUiaxNzNgwwgOpFtZBWcINm8DNscvkXl5b/s622Z1dqGNWSdrZmdjdC6LWMvu8iHM6v9sQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-Pa8QMwlkrztTo/1mVjZmPIQ44tCSci10TBqxzVBvXVA5CFh5EpiEi99fPSll2dHG2uT4dCOMeC6fIhyDdb0zXA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-BgynXKMjeaX4AfWLARhOKDetBOOghnSiVRjAHVvhiAaDXgdQN8e65mSmXRiVoVtD3cHXx/cfU8Gw0p0K+qYKVQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-VIsoPlOB/tDSAw9CySckBYysoIBqLeps1/umNSYUD8pMtalJyzMTneAVI1HrUdf4ceFmQ5vARoLIXSsPwVFxNg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-YDXTxVJG67PqTQMKyjVJSddoPbSWJ4yRz/E3xzTLHqNrTDGY0UuhG8EMr8zsYnfH/0cPFJ3wjQd/hJWHuR6nkA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [openharmony]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-3M+2DmorXvDuAIGYQ9Z93Oy1G9ETkejLwdXXb1uRTgKN9pMcu7N+KG2zDrJwqyxeeLIFE22AZGtSJm3PJbNu9Q==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-/B1j1pJs33y9ywtslOMxryUPHq8zIGu/OGEc2gyed0slimJ8fX2uR/SaJVhB4+NEgCFIeYDR4CX6jynAkeRuCA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [win32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-29oG1swCz7hNP+CQYrsM4EtylsKwuYzM8ljqbqC5TsQwmKat7P8ouDpImsqg/GZxFSXcPP9ezQm0Q0wQwGM3JA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [ia32]+ os: [win32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-eWBV1Ef3gfGNehxVGCyXs7wLayRIgCmyItuCZwYYXW5bsk4EvR4n2GP5m3ohjnx7wdiY3nLmwQfH2Knb5gbNZw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [win32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==}++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-s3GeJKSQOwBlzdUrj4ISjJj5SfSh+aqn0wjOar4Bx95iV1ETI7F6S/5hLcfAxZ9kXDcyrAkxPlqmd1ZITttf+w==}++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-5Uxg7fQUCmfhax7FJke2+8B6cqgeUJUD9o2uXIKXhD+mG0mL6NObmVoi9wXEU1tY89mZKgAYA6fTbftx3q2ZPQ==}+'@rollup/[email protected]':resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}engines: {node: '>=14.0.0'}@@ -5856,6 +6949,11 @@ packages:cpu: [arm]os: [android]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-rGmb8qoG/zdmKoYELCBwu7vt+9HxZ7Koos3pD0+sH5fR3u3Wb/jGcpnqxcnWsPEKDUyzeLSqksN8LJtgXjqBYw==}+ cpu: [arm]+ os: [android]+'@rollup/[email protected]':resolution: {integrity: sha512-OBqcX2BMe6nvjQ0Nyp7cC90cnumt8PXmO7Dp3gfAju/6YwG0Tj74z1vKrfRz7qAv23nBcYM8BCbhrsWqO7PzQQ==}cpu: [arm64]@@ -5866,6 +6964,11 @@ packages:cpu: [arm64]os: [android]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-4e9WtTxrk3gu1DFE+imNJr4WsL13nWbD/Y6wQcyku5qadlKHY3OQ3LJ/INrrjngv2BJIHnIzbqMk1GTAC2P8yQ==}+ cpu: [arm64]+ os: [android]+'@rollup/[email protected]':resolution: {integrity: sha512-X64tZd8dRE/QTrBIEs63kaOBG0b5GVEd3ccoLtyf6IdXtHdh8h+I56C2yC3PtC9Ucnv0CpNFJLqKFVgCYe0lOQ==}cpu: [arm64]@@ -5876,6 +6979,11 @@ packages:cpu: [arm64]os: [darwin]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-+XjmyChHfc4TSs6WUQGmVf7Hkg8ferMAE2aNYYWjiLzAS/T62uOsdfnqv+GHRjq7rKRnYh4mwWb4Hz7h/alp8A==}+ cpu: [arm64]+ os: [darwin]+'@rollup/[email protected]':resolution: {integrity: sha512-cc71KUZoVbUJmGP2cOuiZ9HSOP14AzBAThn3OU+9LcA1+IUqswJyR1cAJj3Mg55HbjZP6OLAIscbQsQLrpgTOg==}cpu: [x64]@@ -5886,16 +6994,31 @@ packages:cpu: [x64]os: [darwin]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-upGEY7Ftw8M6BAJyGwnwMw91rSqXTcOKZnnveKrVWsMTF8/k5mleKSuh7D4v4IV1pLxKAk3Tbs0Lo9qYmii5mQ==}+ cpu: [x64]+ os: [darwin]+'@rollup/[email protected]':resolution: {integrity: sha512-BdrLJ2mHTrIYdaS2I99mriyJfGGenSaP+UwGi1kB9BLOCu9SR8ZpbkmmalKIALnRw24kM7qCN0IOm6L0S44iWw==}cpu: [arm64]os: [freebsd]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-P9ViWakdoynYFUOZhqq97vBrhuvRLAbN/p2tAVJvhLb8SvN7rbBnJQcBu8e/rQts42pXGLVhfsAP0k9KXWa3nQ==}+ cpu: [arm64]+ os: [freebsd]+'@rollup/[email protected]':resolution: {integrity: sha512-VXeo/puqvCG8JBPNZXZf5Dqq7BzElNJzHRRw3vjBE27WujdzuOPecDPc/+1DcdcTptNBep3861jNq0mYkT8Z6Q==}cpu: [x64]os: [freebsd]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-VLKIwIpnBya5/saccM8JshpbxfyJt0Dsli0PjXozHwbSVaHTvWXJH1bbCwPXxnMzU4zVEfgD1HpW3VQHomi2AQ==}+ cpu: [x64]+ os: [freebsd]+'@rollup/[email protected]':resolution: {integrity: sha512-a6w/Y3hyyO6GlpKL2xJ4IOh/7d+APaqLYdMf86xnczU3nurFTaVN9s9jOXQg97BE4nYm/7Ga51rjec5nfRdrvA==}cpu: [arm]@@ -5906,11 +7029,21 @@ packages:cpu: [arm]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-3zEuZsXfKaw8n/yF7t8N6NNdhyFw3s8xJTqjbTDXlipwrEHo4GtIKcMJr5Ed29leLpB9AugtAQpAHW0jvtKKaQ==}+ cpu: [arm]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-m39iO/aaurh5FVIu/F4/Zsl8xppd76S4qoID8E+dSRQvTyZTOI2gVk3T4oqzfq1PtcvOfAVlwLMK3KRQMaR8lg==}cpu: [arm]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-leo9tOIlKrcBmmEypzunV/2w946JeLbTdDlwEZ7OnnsUyelZ72NMnT4B2vsikSgwQifjnJUbdXzuW4ToN1wV+Q==}+ cpu: [arm]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-0fZBq27b+D7Ar5CQMofVN8sggOVhEtzFUwOwPppQt0k+VR+7UHMZZY4y+64WJ06XOhBTKXtQB/Sv0NwQMXyNAA==}cpu: [arm64]@@ -5921,6 +7054,11 @@ packages:cpu: [arm64]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-Vy/WS4z4jEyvnJm+CnPfExIv5sSKqZrUr98h03hpAMbE2aI0aD2wvK6GiSe8Gx2wGp3eD81cYDpLLBqNb2ydwQ==}+ cpu: [arm64]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-eTvzUS3hhhlgeAv6bfigekzWZjaEX9xP9HhxB0Dvrdbkk5w/b+1Sxct2ZuDxNJKzsRStSq1EaEkVSEe7A7ipgQ==}cpu: [arm64]@@ -5931,16 +7069,31 @@ packages:cpu: [arm64]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-x5Kzn7XTwIssU9UYqWDB9VpLpfHYuXw5c6bJr4Mzv9kIv242vmJHbI5PJJEnmBYitUIfoMCODDhR7KoZLot2VQ==}+ cpu: [arm64]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-ySyWikVhNzv+BV/IDCsrraOAZ3UaC8SZB67FZlqVwXwnFhPihOso9rPOxzZbjp81suB1O2Topw+6Ug3JNegejQ==}cpu: [loong64]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-yzCaBbwkkWt/EcgJOKDUdUpMHjhiZT/eDktOPWvSRpqrVE04p0Nd6EGV4/g7MARXXeOqstflqsKuXVM3H9wOIQ==}+ cpu: [loong64]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-BvvA64QxZlh7WZWqDPPdt0GH4bznuL6uOO1pmgPnnv86rpUpc8ZxgZwcEgXvo02GRIZX1hQ0j0pAnhwkhwPqWg==}cpu: [ppc64]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-UK0WzWUjMAJccHIeOpPhPcKBqax7QFg47hwZTp6kiMhQHeOYJeaMwzeRZe1q5IiTKsaLnHu9s6toSYVUlZ2QtQ==}+ cpu: [ppc64]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-ix+qAB9qmrCRiaO71VFfY8rkiAZJL8zQRXveS27HS+pKdjwUfEhqo2+YF2oI+H/22Xsiski+qqwIBxVewLK7sw==}cpu: [riscv64]@@ -5951,16 +7104,31 @@ packages:cpu: [riscv64]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-3NADEIlt+aCdCbWVZ7D3tBjBX1lHpXxcvrLt/kdXTiBrOds8APTdtk2yRL2GgmnSVeX4YS1JIf0imFujg78vpw==}+ cpu: [riscv64]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-n/vQ4xRZXKuIpqukkMXZt9RWdl+2zgGNx7Uda8NtmLJ06NL8jiHxUawbwC+hdSq1rrw/9CghCpEONor+l1e2gA==}cpu: [riscv64]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-euuwm/QTXAMOcyiFCcrx0/S2jGvFlKJ2Iro8rsmYL53dlblp3LkUQVFzEidHhvIPPvcIsxDhl2wkBE+I6YVGzA==}+ cpu: [riscv64]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-h8d28xzYb98fMQKUz0w2fMc1XuGzLLjdyxVIbhbil4ELfk5/orZlSTpF/xdI9C8K0I8lCkq+1En2RJsawZekkg==}cpu: [s390x]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-w8mULUjmPdWLJgmTYJx/W6Qhln1a+yqvgwmGXcQl2vFBkWsKGUBRbtLRuKJUln8Uaimf07zgJNxOhHOvjSQmBQ==}+ cpu: [s390x]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-TenQhZVOtw/3qKOPa7d+QgkeM6xY0LtwzR8OplmyL5LrgTWIXpTQg2Q2ycBf8jm+SFW2Wt/DTn1gf7nFp3ssVA==}cpu: [x64]@@ -5971,6 +7139,11 @@ packages:cpu: [x64]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-90taWXCWxTbClWuMZD0DKYohY1EovA+W5iytpE89oUPmT5O1HFdf8cuuVIylE6vCbrGdIGv85lVRzTcpTRZ+kA==}+ cpu: [x64]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-LfFdRhNnW0zdMvdCb5FNuWlls2WbbSridJvxOvYWgSBOYZtgBfW9UGNJG//rwMqTX1xQE9BAodvMH9tAusKDUw==}cpu: [x64]@@ -5981,6 +7154,11 @@ packages:cpu: [x64]os: [linux]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-2Gu29SkFh1FfTRuN1GR1afMuND2GKzlORQUP3mNMJbqdndOg7gNsa81JnORctazHRokiDzQ5+MLE5XYmZW5VWg==}+ cpu: [x64]+ os: [linux]+'@rollup/[email protected]':resolution: {integrity: sha512-JPDxovheWNp6d7AHCgsUlkuCKvtu3RB55iNEkaQcf0ttsDU/JZF+iQnYcQJSk/7PtT4mjjVG8N1kpwnI9SLYaw==}cpu: [arm64]@@ -5991,6 +7169,11 @@ packages:cpu: [arm64]os: [win32]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-6kQFR1WuAO50bxkIlAVeIYsz3RUx+xymwhTo9j94dJ+kmHe9ly7muH23sdfWduD0BA8pD9/yhonUvAjxGh34jQ==}+ cpu: [arm64]+ os: [win32]+'@rollup/[email protected]':resolution: {integrity: sha512-fjtuvMWRGJn1oZacG8IPnzIV6GF2/XG+h71FKn76OYFqySXInJtseAqdprVTDTyqPxQOG9Exak5/E9Z3+EJ8ZA==}cpu: [ia32]@@ -6001,6 +7184,11 @@ packages:cpu: [ia32]os: [win32]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-RUyZZ/mga88lMI3RlXFs4WQ7n3VyU07sPXmMG7/C1NOi8qisUg57Y7LRarqoGoAiopmGmChUhSwfpvQ3H5iGSQ==}+ cpu: [ia32]+ os: [win32]+'@rollup/[email protected]':resolution: {integrity: sha512-ZYmr5mS2wd4Dew/JjT0Fqi2NPB/ZhZ2VvPp7SmvPZb4Y1CG/LRcS6tcRo2cYU7zLK5A7cdbhWnnWmUjoI4qapg==}cpu: [x64]@@ -6011,27 +7199,89 @@ packages:cpu: [x64]os: [win32]+ '@rollup/[email protected]':+ resolution: {integrity: sha512-8a/caCUN4vkTChxkaIJcMtwIVcBhi4X2PQRoT+yCK3qRYaZ7cURrmJFL5Ux9H9RaMIXj9RuihckdmkBX3zZsgg==}+ cpu: [x64]+ os: [win32]+'@segment/[email protected]':resolution: {integrity: sha512-ZMCSfztDBqwotkl848ODgVcAmN4OItEWDCkshcKz0/W6gGSQayuuCtWV/MlodFivAZD793d6UgANd6wCXUfrIw==}'@selderee/[email protected]':resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==}+ '@sentry-internal/[email protected]':+ resolution: {integrity: sha512-Q0CeHym9wysku8mYkORXmhtlBE0IrafAI+NiPSqxOBKXGOCWKVCvowHuAF56GwPFic2rSrRnub5fWYv7T1jfEQ==}+ engines: {node: '>=18'}++ '@sentry-internal/[email protected]':+ resolution: {integrity: sha512-KLRy3OolDkGdPItQ3obtBU2RqDt9+KE8z7r7Gsu7c6A6A89m8ZVlrxee3hPQt6qp0YY0P8WazpedU3DYTtaT8w==}+ engines: {node: '>=18'}++ '@sentry-internal/[email protected]':+ resolution: {integrity: sha512-QcBjrdRWFJrrrjbmrr2bbrp2R9RYj1KMEbhHNT2Lm1XplIQw+tULEKOHxNtkUFSLR1RNje7JQbxhzM1j95FxVQ==}+ engines: {node: '>=18'}++ '@sentry-internal/[email protected]':+ resolution: {integrity: sha512-+8JUblxSSnN0FXcmOewbN+wIc1dt6/zaSeAvt2xshrfrLooVullcGsuLAiPhY0d/e++Fk06q1SAl9g4V0V13gg==}+ engines: {node: '>=18'}++ '@sentry/[email protected]':+ resolution: {integrity: sha512-NOnCTQCM0NFuwbyt4DYWDNO2zOTj1mCf43hJqGDFb1XM9F++7zAmSNnCx4UrEoBTiFOy40McJwBBk9D1blSktA==}+ engines: {node: '>=18'}+'@sentry/[email protected]':resolution: {integrity: sha512-CJ/FuWLw0QEKGKXGL/nm9eaOdajEcmPekLuHAuOCxID7N07R9l9laz3vFbAkUZ97GGDv3sYrJZgywfY3Moropg==}engines: {node: '>=14.18'}- '@sentry/[email protected]':- resolution: {integrity: sha512-kgWW2BCjBmVlSQRG32GonHEVyeDbys74xf9mLPvynwHTgw3+NUlNAlEdu05xnb2ow4bCTHfbkS5G1zRgyv5k4Q==}+ '@sentry/[email protected]':+ resolution: {integrity: sha512-it7JMFqxVproAgEtbLgCVBYtQ9fIb+Bu0JD+cEplTN/Ukpe6GaolyYib5geZqslVxhp2sQgT+58aGvfd/k0N8Q==}+ engines: {node: '>=18'}++ '@sentry/[email protected]':+ resolution: {integrity: sha512-XRVu5pqoklZeh4wqhxCLZkz/ipoKhitctgEFXX9Yh1e1BoHM2pIxT52wf+W6hHM676TFmFXW3uKBjsmRM3AjgA==}+ engines: {node: '>=18'}+ peerDependencies:+ '@opentelemetry/api': ^1.9.0+ '@opentelemetry/context-async-hooks': ^1.30.1 || ^2.0.0+ '@opentelemetry/core': ^1.30.1 || ^2.0.0+ '@opentelemetry/instrumentation': '>=0.57.1 <1'+ '@opentelemetry/resources': ^1.30.1 || ^2.0.0+ '@opentelemetry/sdk-trace-base': ^1.30.1 || ^2.0.0+ '@opentelemetry/semantic-conventions': ^1.34.0++ '@sentry/[email protected]':+ resolution: {integrity: sha512-pRLqAcd7GTGvN8gex5FtkQR5Mcol8gOy1WlyZZFq4rBbVtMbqKOQRhohwqnb+YrnmtFpj7IZ7KNDo077MvNeOQ==}+ engines: {node: '>=18'}++ '@sentry/[email protected]':+ resolution: {integrity: sha512-w2zTxqrdmwRok0cXBoh+ksXdGRUHUZhlpfL/H2kfTodOL+Mk8rW72qUmfqQceXoqgbz8UyK8YgJbyt+XS5H4Qg==}+ engines: {node: '>=18'}+ peerDependencies:+ '@opentelemetry/api': ^1.9.0+ '@opentelemetry/context-async-hooks': ^1.30.1 || ^2.0.0+ '@opentelemetry/core': ^1.30.1 || ^2.0.0+ '@opentelemetry/sdk-trace-base': ^1.30.1 || ^2.0.0+ '@opentelemetry/semantic-conventions': ^1.34.0++ '@sentry/[email protected]':+ resolution: {integrity: sha512-2NTlke1rKAJO2JIY1RCrv8EjfXXkLc+AC61PpgF1QjH/cz0NuCZ6gpQi6M5qS7anAGPjaOE1t3QdLeOEI/Q3kA==}+ engines: {node: '>=18'}+ peerDependencies:+ react: ^16.14.0 || 17.x || 18.x || 19.x++ '@sentry/[email protected]':+ resolution: {integrity: sha512-xk11JLczvzeE6Nkedc0xbsTylv9bfZ3iJ1W7tGI10kYsj8Ww1dg+pHePOt3Jz/LnHd51Ton3Yf/R5zRKhpGUCg==}+ engines: {node: '>=18'}++ '@sentry/[email protected]':+ resolution: {integrity: sha512-kgWW2BCjBmVlSQRG32GonHEVyeDbys74xf9mLPvynwHTgw3+NUlNAlEdu05xnb2ow4bCTHfbkS5G1zRgyv5k4Q==}engines: {node: '>=14.18'}'@sentry/[email protected]':resolution: {integrity: sha512-wZxU2HWlzsnu8214Xy7S7cRIuD6h8Z5DnnkojJfX0i0NLooepZQk2824el1Q13AakLb7/S8CHSHXOMnCtoSduw==}engines: {node: '>=14.18'}- '@seventy-seven/[email protected]':- resolution: {integrity: sha512-aqRk1zvfEiq0yn20UwGvcQ1PGOLrGo3fSKZmhgKOesh8HFnimrduJ4uGJjpJUSmvvKafL/rC7wXCrMuwtSiYQg==}-'@shikijs/[email protected]':resolution: {integrity: sha512-bvIQcd8BEeR1yFvOYv6HDiyta2FFVePbzeowf5pPS1avczrPK+cjmaxxh0nx5QzbON7+Sv0sQfQVciO7bN72sg==}@@ -6083,6 +7333,10 @@ packages:'@sinclair/[email protected]':resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}+ '@sindresorhus/[email protected]':+ resolution: {integrity: sha512-d9xRovfKNz1SKieM0qJdO+PQonjnnIfSNWfHYnBSJ9hkjm0ZPw6HlxscDXYstp3z+7V2GOFHc+J0CYrYTjqCJw==}+ engines: {node: '>=18'}+'@sinonjs/[email protected]':resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==}@@ -6128,9 +7382,38 @@ packages:'@socket.io/[email protected]':resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==}+ '@solid-primitives/[email protected]':+ resolution: {integrity: sha512-h4VqkYFv6Gf+L7SQj+Y6puigL/5DIi7x5q07VZET7AWcS+9/G3WfIE9WheniHWJs51OEkRB43w6lDys5YeFceg==}+ peerDependencies:+ solid-js: ^1.6.12++ '@solid-primitives/[email protected]':+ resolution: {integrity: sha512-9dQHTTgLBqyAI7aavtO+HnpTVJgWQA1ghBSrmLtMu1SMxLPDuLfuNr+Tk5udb4AL4Ojg7h9JrKOGEEDqsJXWJA==}+ peerDependencies:+ solid-js: ^1.6.12++ '@solid-primitives/[email protected]':+ resolution: {integrity: sha512-9HULb0QAzL2r47CCad0M+NKFtQ+LrGGNHZfteX/ThdGvKIg2o2GYhBooZubTCd/RTu2l2+Nw4s+dEfiDGvdrrQ==}+ peerDependencies:+ solid-js: ^1.6.12++ '@solid-primitives/[email protected]':+ resolution: {integrity: sha512-hZ/M/qr25QOCcwDPOHtGjxTD8w2mNyVAYvcfgwzBHq2RwNqHNdDNsMZYap20+ruRwW4A3Cdkczyoz0TSxLCAPQ==}+ peerDependencies:+ solid-js: ^1.6.12++ '@speed-highlight/[email protected]':+ resolution: {integrity: sha512-0dxmVj4gxg3Jg879kvFS/msl4s9F3T9UXC1InxgOf7t5NvcPD97u/WTA5vL/IxWHMn7qSxBozqrnnE2wvl1m8g==}+'@stablelib/[email protected]':resolution: {integrity: sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==}+ '@standard-schema/[email protected]':+ resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==}++ '@standard-schema/[email protected]':+ resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==}+'@swc/[email protected]':resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}@@ -6140,68 +7423,347 @@ packages:'@swc/[email protected]':resolution: {integrity: sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==}- '@t3-oss/[email protected]':- resolution: {integrity: sha512-hhtj59TKC6TKVdwJ0CcbKsvkr9R8Pc/SNKd4IgGUIC9T9X6moB8EZZ3FTJdABA/h9UABCK4J+KsF8gzmvMvHPg==}- peerDependencies:- typescript: '>=4.7.2'- zod: ^3.0.0- peerDependenciesMeta:- typescript:- optional: true-- '@t3-oss/[email protected]':- resolution: {integrity: sha512-90TNffS17vjkQwfYyMUb4Zw9yqHwFV40f78qFug4JiQa5+N6DydTdlLOpzOcj8Cna/qpAVDwMSypofF/TVQDuA==}- peerDependencies:- typescript: '>=4.7.2'- zod: ^3.0.0- peerDependenciesMeta:- typescript:- optional: true-'@tailwindcss/[email protected]':resolution: {integrity: sha512-p18dswChx6WnTSaJCSGx6lTmrGzNNvm2FtXmiO6AuA1V4U5REyoqwmT6kgAsIMdjo07QdAfYXHJ4hnMtfHzWgA==}peerDependencies:tailwindcss: '>=3.2.0'+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-3hm9brwvQkZFe++SBt+oLjo4OLDtkvlE8q2WalaD/7QWaeM7KEJbAiY/LJZUaCs7Xa8aUu4xy3uoyX4q54UVdQ==}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-oNY5pq+1gc4T6QVTsZKwZaGpBb2N1H1fsc1GD4o7yinFySqIuRZ2E4NvGasWc6PhYJwGK2+5YT1f9Tp80zUQZQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [android]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-cq1qmq2HEtDV9HvZlTtrj671mCdGB93bVY6J29mwCyaMYCP/JaUBXxrQQQm7Qn33AXXASPUb2HFZlWiiHWFytw==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-6UCsIeFUcBfpangqlXay9Ffty9XhFH1QuUFn0WV83W8lGdX8cD5/+2ONLluALJD5+yJ7k8mVtwy3zMZmzEfbLg==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-JOH/f7j6+nYXIrHobRYCtoArJdMJh5zy5lr0FV0Qu47MID/vqJAY3r/OElPzx1C/wdT1uS7cPq+xdYYelny1ww==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [freebsd]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-v4Ghvi9AU1SYgGr3/j38PD8PEe6bRfTnNSUE3YCMIRrrNigCFtHZ2TCm8142X8fcSqHBZBceDx+JlFJEfNg5zQ==}+ engines: {node: '>= 10'}+ cpu: [arm]+ os: [linux]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-YP5s1LmetL9UsvVAKusHSyPlzSRqYyRB0f+Kl/xcYQSPLEw/BvGfxzbH+ihUciePDjiXwHh+p+qbSP3SlJw+6g==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-V8pAM3s8gsrXcCv6kCHSuwyb/gPsd863iT+v1PGXC4fSL/OJqsKhfK//v8P+w9ThKIoqNbEnsZqNy+WDnwQqCA==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-xYfqYLjvm2UQ3TZggTGrwxjYaLB62b1Wiysw/YE3Yqbh86sOMoTn0feF98PonP7LtjsWOWcXEbGqDL7zv0uW8Q==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-ha0pHPamN+fWZY7GCzz5rKunlv9L5R8kdh+YNvP5awe3LtuXb5nRi/H27GeL2U+TdhDOptU7T6Is7mdwh5Ar3A==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-4tSyu3dW+ktzdEpuk6g49KdEangu3eCYoqPhWNsZgUhyegEda3M9rG0/j1GV/JjVVsj+lG7jWAyrTlLzd/WEBg==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]+ bundledDependencies:+ - '@napi-rs/wasm-runtime'+ - '@emnapi/core'+ - '@emnapi/runtime'+ - '@tybys/wasm-util'+ - '@emnapi/wasi-threads'+ - tslib++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-iGLyD/cVP724+FGtMWslhcFyg4xyYyM+5F4hGvKA7eifPkXHRAUDFaimu53fpNg9X8dfP75pXx/zFt/jlNF+lg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-NKIh5rzw6CpEodv/++r0hGLlfgT/gFN+5WNdZtvh6wpU2BpGNgdjvj6H2oFc8nCM839QM1YOhjpgbAONUb4IxA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-gM5EoKHW/ukmlEtphNwaGx45fGoEmP10v51t9unv55voWh6WrOL19hfuIdo2FjxIaZzw776/BUQg7Pck++cIVw==}+ engines: {node: '>= 10'}+'@tailwindcss/[email protected]':resolution: {integrity: sha512-AqhlCXl+8grUz8uqExv5OTtgpjuVIwFTSXTrh8y9/pw6q2ek7fJ+Y8ZEVw7EB2DCcuCOtEjf9w3+J3rzts01uA==}peerDependencies:tailwindcss: '>=3.0.0 || insiders || >=4.0.0-alpha.20'- '@tanstack/[email protected]':- resolution: {integrity: sha512-DJSilV5+ytBP1FbFcEJovv4rnnm/CokuVvrBEtW/Va9DvuJ3HksbXUJEpI0aV1KtuL4ZoO9AVE6PyNLzF7tLeA==}+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-4pt0AMFDx7gzIrAOIYgYP0KCBuKWqyW8ayrdiLEjoJTT4pKTjrzG/e4uzWtTLDziC+66R9wbUqZBccJalSE5vQ==}+ peerDependencies:+ vite: ^5.2.0 || ^6 || ^7++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-yJT2As/drc+Epu0nsqCsJaKaLcaNGufiNxSlp/+/oeTD0jsBxF9/PJBfh66XVpYXkKr97b8689mSu7QMef0Rrw==}+ engines: {node: '>=18'}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-RfV+OPV/M3CGryYqTue684u10jUt55PEqeBOnOtCe6tAmHI9Iqyc8nHeDhWPEV9715gShuauFVaMc9RiUVNdwg==}+ engines: {node: '>=18'}- '@tanstack/[email protected]':- resolution: {integrity: sha512-y7ySVHFyyQblPl3J3eQBWpXZkliroki3ARnBKsdJchlgt7yJLRDUcf4B8soufgiYt3pEQIkBWBx1N9/ZPIeUWw==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-xvALRLeD+TYjaLx9f9OrRBBZITAYPIk7RH8LRiESUQHw7lZO/sBU1ggrcSePh7TwKWXl9zLmtUi+7xVIS+j/dQ==}+ engines: {node: '>=18'}peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0- react-native: '*'+ solid-js: '>=1.9.7'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-7Sw6bWvwKsHDNLg+8v7xOXhE5tzwx6/KgLWSSP55pJ86wpSXYdIm89vvXm4ED1lgKfEU5l3f4Y6QVagU4rgRiQ==}+ engines: {node: '>=18'}+ peerDependencies:+ solid-js: '>=1.9.7'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-ZMg2XMLFoci83zM0c707cXRygj+bXZl1jG9BOlqK5ggrRzsyAO78USuyhq/EUo67uEkEWM4JIlwmzLTAjprDyg==}+ engines: {node: '>=12'}+ peerDependencies:+ vite: '>=6.0.0 || >=7.0.0'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-UCHM2uS0t/uSszqPEo+SBSSoQVeQ+LlOWAVBl5SA7+AedeAbKafIPjFn8huZCXNLAYb0WKV2+wETr7lDK9uz7g==}+ engines: {node: '>=12'}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-Wo1iKt2b9OT7d+YGhvEPD3DXvPv2etTusIMhMUoG7fbhmxcXCtIjJDEygy91Y2JFlwGyjqiBPRozme7UD8hoqg==}+ engines: {node: '>=12'}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-k/TcR3YalnzibscALLwxeiLUub6jN5EDLwKDiO7q5f4ICEoptJ+n9+7vcEFy5/x/i6Q+Lb/tXrsKCggf5uQJXQ==}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-GtINOPjPUH0OegJExZ70UahT9ykmAhmtNVcmtdnOZbxLwT7R5OmRztR5Ahe3/Cu7LArEmR6/588tAycuaWb1xQ==}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-fP0jY7yed0HVIEhs+rjn8wZqABD/6TUiq6SV8jlyYP8NBK2Jfq3ce+IRw5w+N7KBzEokveLQFktxoLNpt3ZOkA==}+ engines: {node: '>=18'}+ peerDependencies:+ '@types/react': '>=16.8'+ '@types/react-dom': '>=16.8'+ react: '>=16.8'+ react-dom: '>=16.8'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-vAXJzZuBXtCQtrY3F/yUNJCV4obT/A/n81kb3+YqLbro5Z2+phdAbceO+deU3ywPw8B42oyJlp4FhO0SoivDFQ==}+ peerDependencies:+ '@tanstack/react-query': ^5.90.2+ react: ^18 || ^19++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-CLABiR+h5PYfOWr/z+vWFt5VsOA2ekQeRQBFSKlcoW6Ndx/f8rfyVmq4LbgOM4GG2qtxAxjLYLOpCNTYm4uKzw==}+ peerDependencies:+ react: ^18 || ^19++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-09gHGUE9BVE6O+7u4ICnKigdPP0vZAYI70dKNqGp8bEy9jaMmHGlUxVV6pKqBLVgcPmwT9YMRAeJ5+QrcznXGA==}+ engines: {node: '>=12'}+ peerDependencies:+ '@tanstack/react-router': ^1.132.47+ react: '>=18.0.0 || >=19.0.0'+ react-dom: '>=18.0.0 || >=19.0.0'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-cCjyn6u54ADvn0b+iJfmfoSgyCEbE6qhXcrvb0KdEeOMNXYG6syfxmJ5E3TTfW51khadv9tTqxu/0tPZ91RfMQ==}+ engines: {node: '>=12'}+ peerDependencies:+ '@tanstack/query-core': '>=5.66.0'+ '@tanstack/react-query': '>=5.66.2'+ '@tanstack/react-router': '>=1.127.0'+ react: '>=18.0.0 || >=19.0.0'+ react-dom: '>=18.0.0 || >=19.0.0'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-mjCN1ueVLHBOK1gqLeacCrUPBZietMKTkr7xZlC32dCGn4e+83zMSlRTS2TrEl7+wEH+bqjnoyx8ALYTSiQ1Cg==}+ engines: {node: '>=12'}+ peerDependencies:+ react: '>=18.0.0 || >=19.0.0'+ react-dom: '>=18.0.0 || >=19.0.0'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-lz4oA54SgTBWqdZIUpAtmu7kDpcjQEuoi7kQh9sSUc7z5ECp1E1EJG+Nbzo6i7B1cqmNyuPYiJ+2GqTus22dmw==}+ engines: {node: '>=22.12.0'}+ peerDependencies:+ react: '>=18.0.0 || >=19.0.0'+ react-dom: '>=18.0.0 || >=19.0.0'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-Kec2BtXsqbeIpaeqk29b7nm2TGgwGKUIxyZleO1SkvnXWDWLlU2Ok/wFJz/7rz5Qe2SYtIhOX7K/t5DTrVBnpQ==}+ engines: {node: '>=22.12.0'}+ peerDependencies:+ react: '>=18.0.0 || >=19.0.0'+ react-dom: '>=18.0.0 || >=19.0.0'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-Lu0/FrjdYHCeDQpQ1UuuCaZsslwBmHy0eiahwSE0TgqS1YfT6IN2Iu4AkpuEOvV0Fv5aYASmukTkGShOfpCZrA==}+ engines: {node: '>=22.12.0'}+ peerDependencies:+ react: '>=18.0.0 || >=19.0.0'+ react-dom: '>=18.0.0 || >=19.0.0'+ vite: '>=7.0.0'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-qqT0ufegFRDGSof9D/VqaZgjNgp4tRPHZIJq2+QIHkMUtHjaJ0lYrrXjeIUJvjnTbgPfSD1XgOMEt0lmANn6Zg==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-1vG9beLIuB7q69skxK9r5xiLN3ztzIPfSQSs0GfeqWGO2tGIyInZx0x1COhpx97RKaONSoAb8C3dxacWksm1ow==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-5nNMTSETP4ykGegmVkhjcS8tTLW6Vl4axfEGQN3v0zdHYbK4UfoqfPChclTrJ4EoK9QynqAu9oUf8VEmrpZ5Ww==}+ engines: {node: '>=12'}+ peerDependencies:+ react: '>=16.8'+ react-dom: '>=16.8'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-Gd13QdxPSukP8ZrkbgS2RwoZseTTbQPLnQEn7HY/rqtM+8Zt95f7xKC7N0EsKs7aoz0WzZ+fditZux+F8EzYxA==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-8YKFHmG6VUqXaWAJzEqjyW6w31dARS2USd2mtI5ZeZcihqMbskK28N4iotBXNn+sSKJnPRjc7A4jTnnEf8Mn8Q==}+ engines: {node: '>=12'}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-uhbk4rSeUpYaqOJLZwOwfyysSoeedIEiRWz37sTVM4tUBFsWqA/p9gO2kVSx/Xmcu8grLy512KNDDeji3QhdwQ==}+ engines: {node: '>=12'}+ peerDependencies:+ '@tanstack/router-core': ^1.132.47+ csstype: ^3.0.10+ solid-js: '>=1.9.5'+ tiny-invariant: ^1.3.3peerDependenciesMeta:- react-dom:+ csstype:optional: true- react-native:++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-iAGz2IZ2rr38o+7cgE33qPyNFJFx7PcPOvUXk5kcX1TtXeyTgVLoe7vqQzKYbungZmht2V8xSFmy6kakUJhxOA==}+ engines: {node: '>=12'}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-kwW2NWMoxMMOoxbRPAxYoEjB+iy4vnYTS9VctKMcwYDtIGK1pQuLR3XtpdhNt0S5reKXfqJG2hEj6yTHUcJs7g==}+ engines: {node: '>=12'}+ peerDependencies:+ '@rsbuild/core': '>=1.0.2'+ '@tanstack/react-router': ^1.132.47+ vite: '>=5.0.0 || >=6.0.0 || >=7.0.0'+ vite-plugin-solid: ^2.11.8+ webpack: '>=5.92.0'+ peerDependenciesMeta:+ '@rsbuild/core':+ optional: true+ '@tanstack/react-router':+ optional: true+ vite:+ optional: true+ vite-plugin-solid:+ optional: true+ webpack:optional: true- '@tanstack/[email protected]':- resolution: {integrity: sha512-LlEQ1Gpz4bfpiET+qmle4BhKDgKN3Y/sssc+O/wLqX8HRtjV+nhusYbllZlutZfMR8oeef83whKTj/VhaV8EeA==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-naDXetw6B2zEn+LkY7uhm8m0ZcxXASGlRETnRhHFwfSsO8llZ4oG+0Zajek3aYBNRGWbgimVTfom/sCWc/9l5Q==}engines: {node: '>=12'}peerDependencies:- react: '>=16'- react-dom: '>=16'+ '@tanstack/query-core': '>=5.66.0'+ '@tanstack/router-core': '>=1.127.0'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-8wmYmc8LY0MhgNw1jfwjTdpYgl5CmvvkamoHOUcz4odFiAWOXLhwo3UBOwKihw+6SxJ/M7l9tEcq5PdLUOUi0Q==}+ engines: {node: '>=12'}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-g3RXrk8DQ48Xl3jwoqHODivxshxfgiJ+OI2rgQUCvXW2U6J0Jy+UbTKcjMl2oUbeOTs1egG84jjvPCd1KH0ZSg==}+ engines: {node: '>=12'}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-BdtmJ3jShjmKDltzfycGccaN0aKCId1c4djQ9GeLQ6yYCTI702r7Ki1bMbsnYVyhV7DIvmRY9IR5ttbaLUxsTQ==}+ engines: {node: '>=22.12.0'}- '@tanstack/[email protected]':- resolution: {integrity: sha512-jPWC3BXvVLHsMX67NEHpJaZ+/FySoNxFfBEiF4GBc1+/nVwdRm+UcSCYnKP3pXQr0eEsDpXi/PQZhNfJNopH0g==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-mhsudcD84bON2Saqr5sMmQRpnJSTWLodb9EWGyalM+J8Y4LGafT1gdMz+LZnAE6DtcFLH7ARXrEQPAcyviLN/Q==}+ engines: {node: '>=22.12.0'}peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ vite: '>=7.0.0'- '@tanstack/[email protected]':- resolution: {integrity: sha512-cq/ylWVrOwixmwNXQjgZaQw1Izf7+nPxjczum7paAnMtwPg1S2qRAJU+Jb8rEBUWm69voC/zcChmePlk2hc6ug==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-wBr9lrODxWmjGzyb59ERfjjNpWTmSTtiENoSpOANdy5GSQ7q79Wrf2BAhfBP8Y/zrj+AarAuslxC6hE3JGnyFA==}+ engines: {node: '>=22.12.0'}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-+QC2fXEHrcNhMoPojE18qf58kdd9kuja24xCpzuwSVq/3a8JAHvjj5H6bucZxydGbkD0MEnT3B+7wWx+8zM7Hw==}+ engines: {node: '>=22.12.0'}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-xa6pTan1bcaqYDS9BDpSiS63qa6EoDkPN9RsRaxHuDdVDNntzq3xNwR5YKTU/V3SkSyC9T4YVOPh2zRQN0nhIQ==}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-Om+BO0YfMZe//X2z0uLF2j+75nQga6TpTJgLJQBiq85aOyZNIhkCgleNcud2KQg4k4v9Y9l+Uhru3qWMPGTOzQ==}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==}engines: {node: '>=12'}- '@tanstack/[email protected]':- resolution: {integrity: sha512-fNGO9fjjSLns87tlcto106enQQLycCKR4DPNpgq3djP5IdcPFdPAmaKjsgzIeRhH7hWrELgW12hYnRthS5kLUw==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-1YBOJfRHV4sXUmWsFSf5rQor4Ss82G8dQWLRbnk3GA4jeP8hQt1hxXh0tmflpC0dz3VgEv/1+qwPyLeWkQuPFA==}++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-rxS8Cm2nIXroLqkm9pE/8X2lFNuvcTIIiFi5VH4PwzvKscAuaW3YRMN1WmaGDI2mVEn+GLaoY6Kc3jOczL5i4w==}+ engines: {node: '>=12'}++ '@testing-library/[email protected]':+ resolution: {integrity: sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==}+ engines: {node: '>=18'}++ '@testing-library/[email protected]':+ resolution: {integrity: sha512-kFSyxiEDwv1WLl2fgsq6pPBbw5aWKrsY2/noi1Id0TK0UParSF62oFQFGHXIyaG4pp2tEub/Zlel+fjjZILDsw==}+ engines: {node: '>=18'}+ peerDependencies:+ '@testing-library/dom': ^10.0.0+ '@types/react': ^18.0.0 || ^19.0.0+ '@types/react-dom': ^18.0.0 || ^19.0.0+ react: ^18.0.0 || ^19.0.0+ react-dom: ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true'@trpc-limiter/[email protected]':resolution: {integrity: sha512-Wjq2oTCmCdwNbZKRfKpzpl1Um9QXGE8OHXOab+EUSj5Wk+26I/V6Vs2p0VBFAz6eEsBn36982cCC/vaaznA8+Q==}@@ -6218,33 +7780,36 @@ packages:'@trpc/server': nextredis: ^4.6.13- '@trpc/[email protected]':- resolution: {integrity: sha512-ykALM5kYWTLn1zYuUOZ2cPWlVfrXhc18HzBDyRhoPYN0jey4iQHEFSEowfnhg1RvYnrAVjNBgHNeSAXjrDbGwg==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-DyWbYk2hd50BaVrXWVkaUnaSwgAF5g/lfBkXtkF1Aqlk6BtSzGUo3owPkgqQO2I5LwWy1+ra9TsSfBBvIZpTwg==}peerDependencies:- '@trpc/server': 10.45.2+ '@trpc/server': 11.6.0+ typescript: '>=5.7.2'- '@trpc/[email protected]':- resolution: {integrity: sha512-RSORmfC+/nXdmRY1pQ0AalsVgSzwNAFbZLYHiTvPM5QQ8wmMEHilseCYMXpu0se/TbPt9zVR6Ka2d7O6zxKkXg==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-xljUCzROa23cC89SEd5fwbKiWrGus2NDwtg8zszPlsFvaByWW50Jx6y5sLPXhp/g1FBsEtCInNNhEEL0UCHwGw==}peerDependencies:- '@tanstack/react-query': ^4.18.0- '@trpc/client': 10.45.2- '@trpc/react-query': 10.45.2- '@trpc/server': 10.45.2- next: '*'- react: '>=16.8.0'- react-dom: '>=16.8.0'+ '@tanstack/react-query': ^5.80.3+ '@trpc/client': 11.6.0+ '@trpc/server': 11.6.0+ react: '>=18.2.0'+ react-dom: '>=18.2.0'+ typescript: '>=5.7.2'- '@trpc/[email protected]':- resolution: {integrity: sha512-BAqb9bGZIscroradlNx+Cc9522R+idY3BOSf5z0jHUtkxdMbjeGKxSSMxxu7JzoLqSIEC+LVzL3VvF8sdDWaZQ==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-skTso0AWbOZck40jwNeYv++AMZXNWLUWdyk+pB5iVaYmEKTuEeMoPrEudR12VafbEU6tZa8HK3QhBfTYYHDCdg==}peerDependencies:- '@tanstack/react-query': ^4.18.0- '@trpc/client': 10.45.2- '@trpc/server': 10.45.2- react: '>=16.8.0'- react-dom: '>=16.8.0'+ typescript: '>=5.7.2'- '@trpc/[email protected]':- resolution: {integrity: sha512-wOrSThNNE4HUnuhJG6PfDRp4L2009KDVxsd+2VYH8ro6o/7/jwYZ8Uu5j+VaW+mOmc8EHerHzGcdbGNQSAUPgg==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-254OpGV2RT9Djl6HRJmokDMT4pZz3beLs+8/T35ySfBxiC5OdEsOeESIJpC302YaZcCGwkOZ+d+FKFXgpy0YtQ==}+ peerDependencies:+ '@tanstack/react-query': ^5.80.3+ '@trpc/client': 11.6.0+ '@trpc/server': 11.6.0+ react: '>=18.2.0'+ react-dom: '>=18.2.0'+ typescript: '>=5.7.2''@turf/[email protected]':resolution: {integrity: sha512-DtSuVFB26SI+hj0SjrvXowGTUCHlgevPAIsukssW6BG5MlNSBQAo70wpICBNJL6RjukXg8d2eXaAWuD/CqL00A==}@@ -6255,6 +7820,9 @@ packages:'@turf/[email protected]':resolution: {integrity: sha512-Wv8PRNCtPD31UVbdJE/KVAWKe7l6US+lJItRR/HOEW3eh+U/JwRCSUl/KZ7bmjM/C+zLNoreM2TU6OoLACs4eg==}+ '@tybys/[email protected]':+ resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}+'@tybys/[email protected]':resolution: {integrity: sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==}@@ -6264,11 +7832,23 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}+'@types/[email protected]':resolution: {integrity: sha512-vBkIh9AY22kVOCEKo5CJlyCgmSWvasC+SWUxL/x/vOwRobMpI/HG1xp/Ae3AqmSiZeLUbOhW0FCD3ZjqqUxmXw==}- '@types/[email protected]':- resolution: {integrity: sha512-6atioO8Y75fNcbmj0G7UjI9lXN2pQ/IGJ2FWT4a/btd0Lk9lQalHLKhkgKVZ3r+spnmWUKfbMi1GEe9wyHQfNQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==}++ '@types/[email protected]':+ resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==}'@types/[email protected]':resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==}@@ -6417,11 +7997,14 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}+'@types/[email protected]':resolution: {integrity: sha512-oaYtiBirUOPQGSWNGPWnzyAFJ0BP3cwvN4oWZQY+zUBwpVIGsKUkpBpSztp74drYcjavs7SKFZ4DX1V2QeN8rg==}- '@types/[email protected]':- resolution: {integrity: sha512-R+33OsgWw7rOhD1emjU7dzCDHucJrgJXMA5PYCzJxVil0dsyx5iBEPHqpPfiKNJQb7lZ1vxwoLR4Z87bBUpeGQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-jnHMsrd0Mwa9Cf4IdOzbz543y4XJepXrbia2T4b6+spXC2We3t1y6K44D3mR8XMFSXMCf3/l7rCgddfx7UNVBA==}'@types/[email protected]':resolution: {integrity: sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==}@@ -6522,24 +8105,39 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-iJt33IQnVRkqeqC7PzBHPTC6fDlRNRW8vjrgqtScAhrmMwe8c4Eo7+fUGTa+XdWrpEgpyKWMYmi2dIwMAYRzPw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==}+'@types/[email protected]':resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}'@types/[email protected]':resolution: {integrity: sha512-wK1pzsJVVAjYCSZWQoWHziQZbNggXFDUEIGf54g4ZM/ERuP86uGdWeKZWMYlqTPMZfHJJvLPyogXGvCOg87yLQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-DSLCOXhkvfS5WNNPbfn2KdICAmk8lLc+/PNvnPnF7gOdMZCxopXduqv0OQ13y/yA/zXTSikZZqVgybUxOEg6YQ==}+'@types/[email protected]':resolution: {integrity: sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA==}'@types/[email protected]':resolution: {integrity: sha512-DO+2/jZinXfROG7j7WKFn/3C6nFwxy2lLpgLjEXJz+0XKphZlTLJ14mo8Vfg8X5BWN6XjyESXq+LcYdT7tR3bA==}- '@types/[email protected]':- resolution: {integrity: sha512-k7kRA033QNtC+gLc4VPlfnue58CM1iQLgn1IMAU8VPHGOj7oIHPp9UlhedEnD/Gl8evoCjwkZjlBORtZ3JByUA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-m5ObIqwsUp6BZzyiy4RdZpzWGub9bqLJMvZDD0QMXhxjqMHMENlj+SqF5QxoUwaQNFe+8kz8XM8ZQhqkQPTgMQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-CmyhGZanP88uuC5GpWU9q+fI61j2SkhO3UGMUdfYRE6Bcy0ccyzn1Rqj9YAB/ZY4kOXmNf0ocah5GtphmLMP6Q==}++ '@types/[email protected]':+ resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==}'@types/[email protected]':resolution: {integrity: sha512-qZAvkv1K3QbmHHFYSNRYPkRjOWRLBYrL4B9c+wG0GSVGBw0NtJwPcgx/DSddeDJvRGMHCEQ4VMEVfuJ/0gZ3XQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-TaAUE5rq2VQYxab5Ts7WZhKNmuN78Q6PiFonTDdpbx8a1H0M1vhy3rhiMjl+e2iHmogyMw7jZF4FrE6eJUy5HQ==}+'@types/[email protected]':resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==}@@ -6564,14 +8162,16 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-PyzHvjCalm2BRYjAU6nIB3TprYwMNOUY/7P/N8bSzp9W/yM2YrtGtAnnVtaCNSeOZ8DzKyFDvaqQs7LnWwwmBA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-1lWWZ/2YiNttGcIUxQwnvMuh55GIEbn/zlpzzEojAsbxquI/TXQZCRaXsfxG1CHjlqGoqxWePkvaM/5qYHNuvQ==}+'@types/[email protected]':resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==}- '@types/[email protected]':- resolution: {integrity: sha512-aZvQL6uUbIJpjZk4U8JZGbau9KDeAwMfmhyWorxgBkqDIEf6ROjRozcmPIicqsUwPUjbkDfHKgGee1Lq65APcA==}-- '@types/[email protected]':- resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-xG7xaBMJCpcK0RpN8jDbAACQo54ycO6h4dSSmgv8+fu6ZIAdANkx/WsawASUjVXYfy+J9AbUpRMNNEsXCDfDBQ==}+ peerDependencies:+ '@types/react': ^19.0.0'@types/[email protected]':resolution: {integrity: sha512-U9qnX0wVhxldrTpsase44fIoLpyO1OT/hgNMRoJTixj1qjpMRdSRIfih93mR3D/Tss/8CmM7dPwKMjtaGkDpmw==}@@ -6579,21 +8179,18 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-ZqIJl+Pg8kD+47kxUjvrlElrraSUrYa4h0dauY/U/FTUuprSCqvUj+9PNQNQzVc6AJgIWUUxn87/gqsMHNbRjw==}- '@types/[email protected]':- resolution: {integrity: sha512-NpwHDMkS/EFZF2dONFQHgkPRwhvgq/OAvIaGQzxGSBmaeR++kTg6njr15Vatz0/2VcCEwJQFi6Jf4Q0qBu0rLA==}-'@types/[email protected]':resolution: {integrity: sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-lr3jdBw/BGj49Eps7EvqlUaoeA0xpj3pc0RoJkHpYaCHkVK7i28dKyImLQb3JVlqs3aYSXf7qYuWOW/fgZnTXQ==}+'@types/[email protected]':resolution: {integrity: sha512-Qzz0PM2nSZej4lsLzzNfADIORZhhxO7PED0fXpg4FjXiHuJ/lMyUg+YFF5q8x9HPZH3Gl6N+NOM8QZjItNgGKg==}'@types/[email protected]':resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==}- '@types/[email protected]':- resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==}-'@types/[email protected]':resolution: {integrity: sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg==}@@ -6673,6 +8270,12 @@ packages:peerDependencies:graphql: ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0+ '@vitejs/[email protected]':+ resolution: {integrity: sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==}+ engines: {node: ^14.18.0 || >=16.0.0}+ peerDependencies:+ vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0+'@vitest/[email protected]':resolution: {integrity: sha512-7FTQQuuLKmN1Ig/h+h/GO+44Q1IlglPlR2es4ab7Yvfx+Uk5xsv+Ykk+MEt/M2Yn/xGmzaLKxGw2lgy2bwuYqg==}@@ -6702,6 +8305,21 @@ packages:'@vitest/[email protected]':resolution: {integrity: sha512-2Ltrpht4OmHO9+c/nmHtF09HWiyWdworqnHIwjfvDyWjuwKbdkcS9AnhsDn+8E2RM4x++foD1/tNuLPVvWG1Rg==}+ '@vue/[email protected]':+ resolution: {integrity: sha512-8TWXUyiqFd3GmP4JTX9hbiTFRwYHgVL/vr3cqhr4YQ258+9FADwvj7golk2sWNGHR67QgmCZ8gz80nQcMokhwg==}++ '@vue/[email protected]':+ resolution: {integrity: sha512-whB44M59XKjqUEYOMPYU0ijUV0G+4fdrHVKDe32abNdX/kJe1NUEMqsi4cwzXa9kyM9w5S8WqFsrfo1ogtBZGQ==}++ '@vue/[email protected]':+ resolution: {integrity: sha512-SFcxapQc0/feWiSBfkGsa1v4DOrnMAQSYuvDMpEaxbpH5dKbnEM5KobSNSgU+1MbHCl+9ftm7oQWxvwDB6iBfw==}++ '@vue/[email protected]':+ resolution: {integrity: sha512-RSl5XAMc5YFUXpDQi+UQDdVjH9FnEpLDHIALg5J0ITHxkEzJ8uQLlo7CIbjPYqmZtt6w0TsIPbo1izYXwDG7JA==}++ '@vue/[email protected]':+ resolution: {integrity: sha512-SoRGP596KU/ig6TfgkCMbXkr4YJ91n/QSdMuqeP5r3hVIYA3CPHUBCc7Skak0EAKV+5lL4KyIh61VA/pK1CIAA==}+'@xmldom/[email protected]':resolution: {integrity: sha512-lm2GW5PkosIzccsaZIz7tp8cPADSIlIHWDFTR1N0SzfinhhYgeIQjFMz4rYzanCScr3DqQLeomUDArp6MWKm+g==}engines: {node: '>=10.0.0'}@@ -6711,9 +8329,6 @@ packages:resolution: {integrity: sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==}engines: {node: '>=10.0.0'}- resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}-resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -6739,8 +8354,12 @@ packages:peerDependencies:acorn: ^6.0.0 || ^7.0.0 || ^8.0.0- resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}+ resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==}+ engines: {node: '>=0.4.0'}++ resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==}engines: {node: '>=0.4.0'}hasBin: true@@ -6749,6 +8368,11 @@ packages:engines: {node: '>=0.4.0'}hasBin: true+ resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}+ engines: {node: '>=0.4.0'}+ hasBin: true+resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}engines: {node: '>= 6.0.0'}@@ -6757,6 +8381,10 @@ packages:resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==}engines: {node: '>= 14'}+ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}+ engines: {node: '>= 14'}+resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==}engines: {node: '>=8'}@@ -6830,6 +8458,14 @@ packages:resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}engines: {node: '>=12'}+ resolution: {integrity: sha512-BGcItUBWSMRgOCe+SVZJ+S7yTRG0eGt9cXAHev72yuGcY23hnLA7Bky5L/xLyPINoSN95geovfBkqoTlNZYa7w==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==}+ engines: {node: '>=14'}+resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}@@ -6843,17 +8479,9 @@ packages:resolution: {integrity: sha512-zy9cHePtMP0YhwG+CfHm0bgwdnga2X3gZexpdCwEj//dpb+TKajtiC8REEUJUSq6Ab4f9cgNy2l8ObXzCXFkEw==}- resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==}-resolution: {integrity: sha512-ImueY1iKm044nMVxQGsLvzSFLrLsqCIpsvohZprK2l8o3ypXjoSKiMBlxBBdoFpAG0iC78cJ6J/vyLpvdLQlkw==}- resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==}- engines: {node: '>=10'}- deprecated: This package is no longer supported.-resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}@@ -6867,6 +8495,13 @@ packages:resolution: {integrity: sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==}engines: {node: '>=10'}+ resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}+resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}engines: {node: '>= 0.4'}@@ -6875,6 +8510,10 @@ packages:resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==}@@ -6893,6 +8532,10 @@ packages:resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==}@@ -6900,10 +8543,18 @@ packages:resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}engines: {node: '>=12'}+ resolution: {integrity: sha512-cl76xfBQM6pztbrFWRnxbrDm9EOqDr1BF6+qQnnDZG2Co2LjyUktkN9GTJfBAfdae+DbT2nJf2nCGAdDDN7W2g==}+ engines: {node: '>=20.18.0'}+resolution: {integrity: sha512-c27loCv9QkZinsa5ProX751khO9DJl/AcB5c2KNtA6NRvHKS0PgLfcftz72KVq504vB0Gku5s2kUZzDBvQWvHg==}engines: {node: '>=4'}+ resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==}engines: {node: '>=4'}@@ -6938,13 +8589,6 @@ packages:resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==}engines: {node: '>=8.0.0'}- resolution: {integrity: sha512-1DKbDfsr6KUElM6wg+0zRNkB/Q7WcKYAaK+pzXn+Xqmszm/5Xa9coeNdtP88Vi+dPzZnMjhge8GIV49ZQkDa+g==}- engines: {node: ^10 || ^12 || >=14}- hasBin: true- peerDependencies:- postcss: ^8.1.0-resolution: {integrity: sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==}engines: {node: ^10 || ^12 || >=14}@@ -6975,6 +8619,9 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0+ resolution: {integrity: sha512-DV5bdJZTzZ0zn0DC24v3jD7Mnidh6xhKa4GfKCbq3sfW8kaWhDdZjP3i81geA8T33tdYqWKw4D3fVv0CwEgKVA==}+resolution: {integrity: sha512-OtIuQfafSzpo/LhnJaykc0R/MMnuLSSVjVYy9mHArIZ9qTCSZ6TpWCuEKZYVoN//t8HqBNScHrOtCrIK5IaGLg==}peerDependencies:@@ -7027,10 +8674,6 @@ packages:resolution: {integrity: sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==}engines: {node: ^4.5.0 || >= 5.9}- resolution: {integrity: sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==}- engines: {node: '>= 10.0.0'}-resolution: {integrity: sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==}engines: {node: '>=12.0.0'}@@ -7052,6 +8695,9 @@ packages:resolution: {integrity: sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==}+ resolution: {integrity: sha512-VSWO/W6nNQdyP520F1mhf+Lc2f8pjGQOtoHHm7Ze8Go1kX7akpVIrtTa0fn+HB0QJEDVacl6aO08YE0PgXfdnQ==}+resolution: {integrity: sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==}@@ -7061,6 +8707,9 @@ packages:resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}+ resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==}+resolution: {integrity: sha512-BF033y5fN6OCofD3vgHmNtwZWRcq9NLyyxyILx9hfMy1sXYy4ojFl765hJ2lP0YaN2fuxPaLO2Vzzoxy0FLFFA==}@@ -7113,11 +8762,6 @@ packages:resolution: {integrity: sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg==}- resolution: {integrity: sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==}- engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}- hasBin: true-resolution: {integrity: sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==}engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}@@ -7174,6 +8818,14 @@ packages:resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-uWoS8OU1MEIsOv8p/5a82c3H31LsWVR5qiyXVfBNOzfffjUWtPnhAb4BYI2uG2HfGmZmFjCtui5XNWaps+iFuw==}+ peerDependencies:+ magicast: ^0.3.5+ peerDependenciesMeta:+ magicast:+ optional: true+resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}engines: {node: '>=8'}@@ -7182,18 +8834,10 @@ packages:resolution: {integrity: sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==}engines: {node: '>= 10'}- resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}- engines: {node: '>= 0.4'}-resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}- engines: {node: '>= 0.4'}-resolution: {integrity: sha512-aSu6eFg1N+L81d6RFbzfQ6I9AZVwxx5aK+4CpEtMtNEG+DOefqA+qmph0GAuBHVpBayK7IKhXzB2dLIa2D8CiA==}engines: {node: '>=0.8'}@@ -7206,10 +8850,17 @@ packages:resolution: {integrity: sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A==}engines: {node: '>=4'}+ resolution: {integrity: sha512-0vdNRFXn5q+dtOqjfFtmtlI9N2eVZ7LMyEV2iKC5mEEFvSg/69Ml6b/WU2qF8W1nLRa0wiSrDT3Y5jOHZCwKPQ==}+resolution: {integrity: sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==}engines: {node: '>=4'}+ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}engines: {node: '>= 6'}@@ -7226,9 +8877,6 @@ packages:resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==}engines: {node: '>=16'}- resolution: {integrity: sha512-zpkZ+kEr6We7w63ORkoJ2pOfBwBkY/bJrG/UZ90qNb45Isblu8wzDgevEOrRL1r9dWayHjYiiyCMEXPn4DweGQ==}-resolution: {integrity: sha512-jOsKlZVRnzfhLojb+Ykb+gyUSp9Xb57So+fAiFlLzzTKpqg8xxSav0e40c8/4F/v9N8QSvrRRaLeVzQbLqomYw==}@@ -7289,6 +8937,10 @@ packages:resolution: {integrity: sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==}engines: {node: '>= 6'}+ resolution: {integrity: sha512-IkxPpb5rS/d1IiLbHMgfPuS0FgiWTtFIm/Nj+2woXDLTZ7fOT2eqzgYbdMlLweqlHbsZjxEChoVK+7iph7jyQg==}+ engines: {node: '>=20.18.1'}+resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}engines: {node: '>= 8.10.0'}@@ -7328,12 +8980,12 @@ packages:resolution: {integrity: sha512-cYY9mypksY8NRqgDB1XD1RiJL338v/551niynFTGkZOO2LHuB2OmOYxDIe/ttN9AHwrqdum1360G3ald0W9kCg==}engines: {node: '>=8'}+ resolution: {integrity: sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==}+resolution: {integrity: sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA==}- resolution: {integrity: sha512-jFI8IQw4hczaL4ALINxqLEXQbWcNjoSkloa4IaufXCJr6QawJyw7tuRysRsrE8w2p/4gGaxKIt/hX3qz/IbD1A==}-resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}@@ -7370,6 +9022,9 @@ packages:resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==}+ resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}+resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}engines: {node: '>=12'}@@ -7386,14 +9041,6 @@ packages:resolution: {integrity: sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==}engines: {node: '>=0.8'}- resolution: {integrity: sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==}- engines: {node: '>=6'}-- resolution: {integrity: sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg==}- engines: {node: '>=6'}-resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}engines: {node: '>=6'}@@ -7433,10 +9080,6 @@ packages:resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==}- resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==}- hasBin: true-resolution: {integrity: sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==}@@ -7516,6 +9159,9 @@ packages:resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}+ resolution: {integrity: sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==}+resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}@@ -7523,8 +9169,9 @@ packages:resolution: {integrity: sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==}engines: {node: '>= 0.10.0'}- resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}+ resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==}+ engines: {node: ^14.18.0 || >=16.10.0}resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==}@@ -7540,6 +9187,9 @@ packages:resolution: {integrity: sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==}+ resolution: {integrity: sha512-RAj4E421UYRgqokKUmotqAwuplYw15qtdXfY+hGzgCJ/MBjCVZcSoHK/kH9kocfjRjcDME7IiDWR/1WX1TM2Pg==}+resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==}@@ -7577,6 +9227,10 @@ packages:resolution: {integrity: sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==}engines: {node: '>=4'}+ resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==}engines: {node: '>=12.0.0'}@@ -7625,6 +9279,10 @@ packages:engines: {node: '>=4'}hasBin: true+ resolution: {integrity: sha512-2z+rWdzbbSZv6/rhtvzvqeZQHrBaqgogqt85sqFNbabZOuFbCVFb8kPeEtZjiKkbrm395irpNKiYeFeLiQnFPg==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}@@ -7797,6 +9455,10 @@ packages:resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}engines: {node: '>= 12'}+ resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==}engines: {node: '>= 0.4'}@@ -7809,16 +9471,49 @@ packages:resolution: {integrity: sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg==}+resolution: {integrity: sha512-y8e109LYGgoQDveiEBD3DYXKba1jWf5BA8YU1FL5Tvm0BTdEfy54WLCwnuYWZNnzzvALy/QQ4Hov+Q9RVRv+Zw==}+ resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==}+resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==}+ resolution: {integrity: sha512-xzWNQ6jk/+NtdfLyXEipbX55dmDSeteLFt/ayF+wZUU5bzKgmrDOxmInUTbyVRp46YwnJdkDA1KhB7WIXFofJw==}+ peerDependencies:+ '@electric-sql/pglite': '*'+ '@libsql/client': '*'+ better-sqlite3: '*'+ drizzle-orm: '*'+ mysql2: '*'+ sqlite3: '*'+ peerDependenciesMeta:+ '@electric-sql/pglite':+ optional: true+ '@libsql/client':+ optional: true+ better-sqlite3:+ optional: true+ drizzle-orm:+ optional: true+ mysql2:+ optional: true+ sqlite3:+ optional: true+resolution: {integrity: sha512-xRetU6gL1VJbs85Mc4FoEGSjQxzpdxRyFhe3lmWFyy2EzydIcD4xzUvRJMD+NPDfMwKNhxa3PvsIOU32luIWeA==}engines: {node: '>=18'}+ resolution: {integrity: sha512-Xks6RUDLZFdz8LIdR6q0MTH44k7FikOmnh5xkSjMig6ch45afc8sjTjRQf3P6ax8dMgcQrYO/AR2RGWURrruqw==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}peerDependencies:@@ -7853,6 +9548,15 @@ packages:supports-color:optional: true+ resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==}+ engines: {node: '>=6.0'}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: true+resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==}engines: {node: '>=0.10.0'}@@ -7863,13 +9567,8 @@ packages:resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==}- resolution: {integrity: sha512-NiOaGe+GN0KJqi2STf24hfMkFitDUaIoUU3eKvP/wAbLe8o6FuW5n/x7MHPR0HKvBokp6MQY/j7w8lewEeVCIA==}- engines: {node: '>=8.6.0'}-- resolution: {integrity: sha512-69NZfbKIzux1vBOd31al3XnMnH+2mqDhEgLdpygErm4d60N+UwA5Sq5WFjmEDQzumgB9fElojGwWG0vybVfFmA==}- engines: {node: '>=8.6'}+ resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==}resolution: {integrity: sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==}@@ -7882,6 +9581,10 @@ packages:resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}engines: {node: '>=4.0.0'}+ resolution: {integrity: sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw==}+ engines: {node: '>=16.0.0'}+resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}engines: {node: '>=0.10.0'}@@ -7919,9 +9622,6 @@ packages:resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}engines: {node: '>=0.4.0'}- resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==}-resolution: {integrity: sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg==}@@ -7929,6 +9629,11 @@ packages:resolution: {integrity: sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==}engines: {node: '>=0.10'}+ resolution: {integrity: sha512-1lklS/bV5chOxwNKA/2XUUk/hPORp8zihZsXflr8x0kLwmcZ9Y9BsS6Hs3ssvA+2wUVbG0U2Ciqvm1SokNjPkA==}+ engines: {node: '>=10'}+ hasBin: true+resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}engines: {node: '>= 0.8'}@@ -7937,6 +9642,9 @@ packages:resolution: {integrity: sha512-cIK8KYiiGVOFsKdPMmm1L3tA/Gl+JopXL6F5+C7x39MyPsQYnP57Im/D6bNUzcborD7fcMwiwZqcBdBXXZucYQ==}engines: {node: '>=18'}+ resolution: {integrity: sha512-PwuBojGMQAYbWkMXOY9Pd/NWCDNHVH12pnS7WHqZkTSeMESe4hwnKKRp0yR87g37113x4JPbo/oIvXY+s/f56Q==}+resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}engines: {node: '>=6'}@@ -7948,6 +9656,10 @@ packages:resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==}engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}+ resolution: {integrity: sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==}engines: {node: '>=0.10'}@@ -7957,6 +9669,10 @@ packages:resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}@@ -7983,6 +9699,10 @@ packages:resolution: {integrity: sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==}engines: {node: '>=0.3.1'}+ resolution: {integrity: sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg==}+ engines: {node: '>=0.3.1'}+resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}engines: {node: '>=8'}@@ -7990,6 +9710,9 @@ packages:resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}+ resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==}+resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==}@@ -8006,6 +9729,9 @@ packages:resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==}+ resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==}+resolution: {integrity: sha512-314CA4TyK34YEJ6ntBf80eUY+t1XaFLyem1k9P0sX1gn30qThZ5qZr/ZwE318gEnzyYP9yj9HJk6SqwE0upkfw==}hasBin: true@@ -8022,6 +9748,10 @@ packages:resolution: {integrity: sha512-XvPXc8XAQThSjAbY6cQ/9PcBXmFoWuw1sQ3b8HqUCR6ziGXjkTi//kB9SWa2UwqlgdAIuRqAa/9hVljzPehbYg==}engines: {node: '>=12'}+ resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-8hyOOHHLLVCcCisM3yb9hqp+3bJ7TSMcr1SfrUw8Wxp5UMqih35jIvUyagweCooJbz/EH1nC9GGuPysh7+YlAg==}@@ -8029,9 +9759,14 @@ packages:resolution: {integrity: sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==}engines: {node: '>=4'}- resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}- engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-xeXHBQkn2ISSXxbJWD828PFjtyg+/UrMDo7W4Ffcs7+YWCquxU8YjV1KoxuiL+eJ5pg3ll+bC6flVv61L3LKZg==}+ engines: {node: '>=20.18.0'}+ peerDependencies:+ oxc-resolver: '>=11.0.0'+ peerDependenciesMeta:+ oxc-resolver:+ optional: trueresolution: {integrity: sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==}@@ -8053,17 +9788,22 @@ packages:resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}+ resolution: {integrity: sha512-N39iBk0K71F9nb442TLbTkjl24FLUzuvx2i1I2RsEAQsdAdUTuUoW0vlfUXgkMTUOnYqKnWcFfqw4hK4Pw27hg==}+resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==}engines: {node: '>=0.10.0'}hasBin: true- resolution: {integrity: sha512-zjqzx4N7xGdl5468G+vcgzDhaHkaYgVcf9MqgexcTqsl2UHSCmOj/Bi3HAprg4BZCpC7HyD8a6nZl6QAZf72gw==}-resolution: {integrity: sha512-ZXfs1Of8fDb6z7WEYZjXpgIRF6MEu8JdeGA0A40aZq6OQbS+eJpnnV49epZRna2DU/YsEjSQuGtQPPtvt6J65A==}+ resolution: {integrity: sha512-OBu5G3nwaSXkZCo1A6LTaFMZ8EpkYbwIaH+bPqdBnDGQ2fh4+NbzjXjs2SktoPNKCtflfVMc75njaDHOYXcrsA==}+ peerDependencies:+ embla-carousel: 8.6.0+resolution: {integrity: sha512-NwmISV0Cw9XVo76Vquz3hJaeZe7qoCRtrzStxlEY7qfZD8WR/f4JlQAso35URTs1BeYVhcuClflelioo+Zmidg==}peerDependencies:@@ -8086,6 +9826,10 @@ packages:resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}+ resolution: {integrity: sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==}+ engines: {node: '>=14'}+resolution: {integrity: sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==}@@ -8093,6 +9837,9 @@ packages:resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==}+resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==}@@ -8104,10 +9851,18 @@ packages:resolution: {integrity: sha512-gmNvsYi9C8iErnZdVcJnvCpSKbWTt1E8+JZo8b+daLninywUWi5NQ5STSHZ9rFjFO7imNcvb8Pc5pe/wMR5xEw==}engines: {node: '>=10.2.0'}+ resolution: {integrity: sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==}+ engines: {node: '>=10.13.0'}+resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}engines: {node: '>=0.12'}+ resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==}+ engines: {node: '>=0.12'}+resolution: {integrity: sha512-ObFo8v4rQJAE59M69QzwloxPZtd33TpYEIjtKD1rrFDcM1Gd7IkDxEBU+HriziN6HSHQnBJi8Dmy+JWkav5HKA==}engines: {node: '>=8'}@@ -8123,6 +9878,9 @@ packages:resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}+ resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==}+resolution: {integrity: sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==}@@ -8141,8 +9899,8 @@ packages:resolution: {integrity: sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==}- resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}+ resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==}engines: {node: '>= 0.4'}@@ -8155,8 +9913,8 @@ packages:resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}- resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}+ resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==}engines: {node: '>= 0.4'}@@ -8200,9 +9958,15 @@ packages:engines: {node: '>=18'}hasBin: true- resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==}- engines: {node: '>=6'}+ resolution: {integrity: sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==}+ engines: {node: '>=18'}+ hasBin: true++ resolution: {integrity: sha512-CRbODhYyQx3qp7ZEwzxOk4JBqmD/seJrzPa/cGjY1VtIn5E09Oi9/dB4JwctnfZ8Q8iT7rioVv5k/FNT/uf54g==}+ engines: {node: '>=18'}+ hasBin: trueresolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}@@ -8301,6 +10065,14 @@ packages:resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}engines: {node: '>=10'}+ resolution: {integrity: sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==}engines: {node: '>=12.0.0'}@@ -8352,6 +10124,9 @@ packages:resolution: {integrity: sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==}engines: {node: '>= 0.10.0'}+ resolution: {integrity: sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw==}+resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==}engines: {node: '>=0.10.0'}@@ -8367,6 +10142,10 @@ packages:resolution: {integrity: sha512-GqgTxPCueENknfj0jCVa7IulNwVGRd4Qfw92XlHSjuKKyUX6NV1g1+3uUk4+6FmwDL5gjyPL53/8Z/kwUbFGpw==}engines: {node: '>=0.8'}+ resolution: {integrity: sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==}+ engines: {node: '>=8.0.0'}+resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==}@@ -8376,6 +10155,9 @@ packages:resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}+ resolution: {integrity: sha512-G3BSX9cfKttjr+2o1O22tYMLq0DPluZnYtq1rXumE1SpL/F/SLIfHx08WYQoWSIpeMYf8sRbJ8++71+v6Pnxfg==}+resolution: {integrity: sha512-WF1Wi8PwwSY7/6Kx0vKXtw8RwuSGoM1bvDaJbu7MxDlR1vovZjIAKrnzyrThgAjm6JDTu0fVgWXDlMGspodfoQ==}engines: {node: '>=6.0.0'}@@ -8393,6 +10175,10 @@ packages:resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}engines: {node: '>=8.6.0'}+ resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}+ engines: {node: '>=8.6.0'}+resolution: {integrity: sha512-iLK3Tq2J/KbiUn/5OHyhxikHqzwFXSM2e803Dp2JtBdQjsCVuZwWvL+WqWXPPRUEuDX4c0kqID1SU84RCfxs3A==}@@ -8457,6 +10243,15 @@ packages:picomatch:optional: true+ resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}+ engines: {node: '>=12.0.0'}+ peerDependencies:+ picomatch: ^3 || ^4+ peerDependenciesMeta:+ picomatch:+ optional: true+resolution: {integrity: sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==}@@ -8467,6 +10262,9 @@ packages:resolution: {integrity: sha512-e6eB7zN6UBSwGVwrbWVH+gdLnkW9WwHhmq2YDK1Sh30pzx1onRVGBvogTlUeWxwTa+L86NYdo4hFkh7O8ZjSnA==}+ resolution: {integrity: sha512-YoZjBdafyLIop9lSxXVI33oLD5kN31q4Td+CasofLLYeLXRFeOsuOw0Uo+XNRi9PZlbfdlN2GmRtm4tCEQ9/KA==}+resolution: {integrity: sha512-XTbUCNmo54Jav0hcL6VxDuY4x1eCQH61HEF80C2Oww283pfjQ2C8avZeyq4v43sW2S2403kmzssE9j4lbF66Sg==}@@ -8516,6 +10314,10 @@ packages:resolution: {integrity: sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==}+ resolution: {integrity: sha512-MzwXju70AuyflbgeOhzvQWAvvQdo1XL0A9bVvlXsYcFEBM87WR4OakL4OfZq+QRmr+duJubio+UtNQCPsVESzQ==}+ engines: {node: '>= 10.13.0'}+resolution: {integrity: sha512-3l+5/1tuw616Lgb0QBimxfdd2TqaDGpfCBpfX6EqtFmqUV3FtQnVEX4Aa62DagYEqnsTIjZcTfbq9msDbXYgyA==}@@ -8581,6 +10383,9 @@ packages:resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}engines: {node: '>=12.20.0'}+ resolution: {integrity: sha512-alTFZZQDKMporBH77856pXgzhEzaUVmLCDk+egLgIgHst3Tpndzz8MnKe+GzRJRfvVdn69HhpW7cmXzvtLvJAw==}+resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}engines: {node: '>= 0.6'}@@ -8591,31 +10396,6 @@ packages:resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}- resolution: {integrity: sha512-oGlDh1Q1XqYPksuTD/usb0I70hq95OUzmL9+6Zd+Hs4XV0oaISBa/UUMSjYiq6m8EUF32132mOJ8xVZS+I0S6w==}- peerDependencies:- react: ^18.0.0- react-dom: ^18.0.0- peerDependenciesMeta:- react:- optional: true- react-dom:- optional: true-- resolution: {integrity: sha512-j/vNYTCH5MX5sY/3dwMs00z1+qAqKX3iIHF762bwqlU814ooD5dDbuj3pA0LmIT5YqyryCkXEb/q+zRblin0lw==}- peerDependencies:- '@emotion/is-prop-valid': '*'- react: ^18.0.0- react-dom: ^18.0.0- peerDependenciesMeta:- '@emotion/is-prop-valid':- optional: true- react:- optional: true- react-dom:- optional: true-resolution: {integrity: sha512-5F5Och7wrvtLVElIpclDT0CBzMVg3dL22B64aZwHtsIY8RB4mXICLrkajK4G9R+ieSAGcgrLeae2SeUTg2pr6w==}peerDependencies:@@ -8706,11 +10486,6 @@ packages:resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}- resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==}- engines: {node: '>=10'}- deprecated: This package is no longer supported.-resolution: {integrity: sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==}engines: {node: '>=14'}@@ -8740,8 +10515,8 @@ packages:resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==}engines: {node: '>=18'}- resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}+ resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==}engines: {node: '>= 0.4'}@@ -8752,9 +10527,9 @@ packages:resolution: {integrity: sha512-x5UJKlgeUiNT8nyo/AcnwLnZuZNcSjSw0kogRB+Whd1fjjFq4B1hySFxSFWWSn4mIBzg3sRNUDFYc4g5gjPoLg==}engines: {node: '>=4'}- resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}- engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-QB9NKEeDg3xxVwCCwJQ9+xycaz6pBB6iQ76wiWMl1927n0Kir6alPiP+yuiICLLU4jpMe08dXfpebuQppFA2zw==}+ engines: {node: '>=16'}resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==}@@ -8768,10 +10543,17 @@ packages:resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==}+resolution: {integrity: sha512-7yetJWqbS9sbn0vIfliPsFgoXMKn/YMF+Wuiog97x+urnSRRRZ7xB+uVkwGKzRgq9CDFfMQnE9ruL5DHv9c6Xg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==}+ hasBin: true+resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==}@@ -8783,6 +10565,9 @@ packages:resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}engines: {node: '>=10.13.0'}+ resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}+resolution: {integrity: sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==}engines: {node: '>=16 || 14 >=14.17'}@@ -8804,6 +10589,14 @@ packages:resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}deprecated: Glob versions prior to v9 are no longer supported+ resolution: {integrity: sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}engines: {node: '>=4'}@@ -8816,9 +10609,16 @@ packages:resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}engines: {node: '>=10'}- resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}- engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}++ resolution: {integrity: sha512-erjk19y1U33+XAMe1VTvIONHYoSqE4iS7BYUZfHaqeohLmnC0FdxEh7rQU+6MZ4OajItzjZFSRtVANrQwNq6/g==}+ peerDependencies:+ csstype: ^3.0.10++ resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}@@ -8846,6 +10646,15 @@ packages:resolution: {integrity: sha512-z6GknHqyX0h9aQaTx22VZDf6QyZn+0Nh+Ym8O/u0SGSkyF5cuTJYKlc8MkzW3Nzf9LE1ivcpmYC3FUGpywhuUQ==}+ resolution: {integrity: sha512-/JdwHUGuHjbBXAVxQN7T7QeI9cVlhsqMKVNFHebZVs9RoEYH85Ogh9O1DEy/1ZiJkmMwa1gNg6bBcGhc1Itjdg==}+ engines: {node: '>=20.11.1'}+ peerDependencies:+ crossws: ^0.4.1+ peerDependenciesMeta:+ crossws:+ optional: true+resolution: {integrity: sha512-5GSXe+ucxTPJ0SkhIsPQ/PRDweZPIKya1lfahAuExx31SdheeUA4uOPfQIAirbKona8hvo79VDr5LJQzPXsdpw==}peerDependencies:@@ -8865,24 +10674,29 @@ packages:resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}+ resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==}+ engines: {node: '>= 0.4'}+resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}+ resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==}engines: {node: '>= 0.4'}resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==}-resolution: {integrity: sha512-dtNNyxXobzHavayZwOwRWhBTqS9GX4jDjIMsGc0fDyaN2A+4zMn5Ua9ODDCggN6w3Spma6mAHL3ImmW3BkWDmQ==}+ resolution: {integrity: sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==}+ engines: {node: '>= 0.4'}+resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}engines: {node: '>= 0.4'}@@ -8963,10 +10777,21 @@ packages:resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==}+ resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==}+resolution: {integrity: sha512-aXpmwoOhRBrw6X3j0h5RloK4x1OzsxMPyxqIHyNfSe2pypkVTZFpEiRoSipPEPlMrh0HW/XsjkJ5WgnCirpNUw==}engines: {node: '>=10'}+ resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==}@@ -8980,6 +10805,9 @@ packages:resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==}+ resolution: {integrity: sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==}+resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}@@ -8990,6 +10818,10 @@ packages:resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}+ engines: {node: '>= 14'}+resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}engines: {node: '>= 6'}@@ -8998,6 +10830,10 @@ packages:resolution: {integrity: sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==}engines: {node: '>= 14'}+ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}+ engines: {node: '>= 14'}+resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}engines: {node: '>=10.17.0'}@@ -9005,10 +10841,6 @@ packages:resolution: {integrity: sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==}- resolution: {integrity: sha512-LzpFSnb3mq5O0/ONXyZKtZPXTS7S8BFM+Ns4NKDLn6WEoDGxLdjRCaapAfcBPYXdE4J3GSp9UBDVWp5eNqOSVg==}- engines: {node: '>=8.6.0'}-resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}engines: {node: '>=0.10.0'}@@ -9029,13 +10861,20 @@ packages:engines: {node: '>=16.x'}hasBin: true- resolution: {integrity: sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==}+ resolution: {integrity: sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw==}resolution: {integrity: sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==}engines: {node: '>=4'}+ resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==}+resolution: {integrity: sha512-Lk+qzWmiQuRPPulGQeK5qq0v32k2bHnWrRPFgqyvhw7Kkov5L6MOLOIU3pcWeujc9W4q54Cp3Q2WV16eQkc7Bg==}@@ -9103,8 +10942,8 @@ packages:resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==}- resolution: {integrity: sha512-2YZsvl7jopIa1gaePkeMtd9rAcSjOOjPtpcLlOeusyO+XH2SK5ZcT+UCrElPP+WVIInh2TzeI4XW9ENaSLVVHA==}+ resolution: {integrity: sha512-NUcA93i1lukyXU+riqEyPtSEkyFq8tX90uL659J+qpCZ3rEdViB/APC58oAhIh3+bJln2hzdlZbBZsGNrlsR8g==}engines: {node: '>=12.22.0'}@@ -9293,6 +11132,9 @@ packages:resolution: {integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}+resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}@@ -9379,6 +11221,10 @@ packages:resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}+ resolution: {integrity: sha512-3wVJEonAns1OETX83uWsk5IAne2S5zfDcntD2hbtU23LelSqNXzXs9zKjMPOLMzroCgIjCfjYAEHrd2D6FOkiA==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}@@ -9441,10 +11287,6 @@ packages:resolution: {integrity: sha512-dZ6Ra7u1G8c4Letq/B5EzAxj4tLFHL+cGtdpR+PVm4yzPDj+lCk+AbivWt1eOM+ikzkowtyV7qSqX6qr3t71Ww==}- resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==}- hasBin: true-resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==}hasBin: true@@ -9463,9 +11305,6 @@ packages:resolution: {integrity: sha512-bF7vcQxbODoGK1imE2P9GS9aw4zD0Sd+Hni68IMZLj7zRnquH7dXUmMw9hDI5S/Jzt7q+IyTXN0rSg2GI0IKhQ==}- resolution: {integrity: sha512-W+oqK4H+r5sITxfxpSU+MMdr/YSWGvgZMQDIsNoBDGGy4i7GBPTtvFKibQzW06n3U3TqHjhvBJsirShsEJ6eeQ==}-resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}engines: {node: '>=10'}@@ -9502,6 +11341,15 @@ packages:peerDependencies:'@babel/preset-env': ^7.1.6+ resolution: {integrity: sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==}+ engines: {node: '>=18'}+ peerDependencies:+ canvas: ^3.0.0+ peerDependenciesMeta:+ canvas:+ optional: true+resolution: {integrity: sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==}hasBin: true@@ -9517,6 +11365,9 @@ packages:resolution: {integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==}+ resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}+resolution: {integrity: sha512-YBOEogm5w9Op337yb6pAT6ZXDqlxAsQCanM3grid8lMWNxRJO/zWEJi3ZzqDL8boWfwhTFym5EFrNgWwpqcBRg==}engines: {node: '>=6.0.0'}@@ -9600,55 +11451,115 @@ packages:cpu: [arm64]os: [darwin]+ resolution: {integrity: sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [darwin]+resolution: {integrity: sha512-Lif1wD6P4poaw9c/4Uh2z+gmrWhw/HtXFoeZ3bEsv6Ia4tt8rOJBdkfVaUJ6VXmpKHALve+iTyP2+50xY1wKPw==}engines: {node: '>= 12.0.0'}cpu: [x64]os: [darwin]+ resolution: {integrity: sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [darwin]++ resolution: {integrity: sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [freebsd]+resolution: {integrity: sha512-P15VXY5682mTXaiDtbnLYQflc8BYb774j2R84FgDLJTN6Qp0ZjWEFyN1SPqyfTj2B2TFjRHRUvQSSZ7qN4Weig==}engines: {node: '>= 12.0.0'}cpu: [arm]os: [linux]+ resolution: {integrity: sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm]+ os: [linux]+resolution: {integrity: sha512-zwXRjWqpev8wqO0sv0M1aM1PpjHz6RVIsBcxKszIG83Befuh4yNysjgHVplF9RTU7eozGe3Ts7r6we1+Qkqsww==}engines: {node: '>= 12.0.0'}cpu: [arm64]os: [linux]+ resolution: {integrity: sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+resolution: {integrity: sha512-vSCKO7SDnZaFN9zEloKSZM5/kC5gbzUjoJQ43BvUpyTFUX7ACs/mDfl2Eq6fdz2+uWhUh7vf92c4EaaP4udEtA==}engines: {node: '>= 12.0.0'}cpu: [arm64]os: [linux]+ resolution: {integrity: sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+resolution: {integrity: sha512-0AFQKvVzXf9byrXUq9z0anMGLdZJS+XSDqidyijI5njIwj6MdbvX2UZK/c4FfNmeRa2N/8ngTffoIuOUit5eIQ==}engines: {node: '>= 12.0.0'}cpu: [x64]os: [linux]+ resolution: {integrity: sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+resolution: {integrity: sha512-SJoM8CLPt6ECCgSuWe+g0qo8dqQYVcPiW2s19dxkmSI5+Uu1GIRzyKA0b7QqmEXolA+oSJhQqCmJpzjY4CuZAg==}engines: {node: '>= 12.0.0'}cpu: [x64]os: [linux]+ resolution: {integrity: sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]++ resolution: {integrity: sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [win32]+resolution: {integrity: sha512-C+VuUTeSUOAaBZZOPT7Etn/agx/MatzJzGRkeV+zEABmPuntv1zihncsi+AyGmjkkzq3wVedEy7h0/4S84mUtg==}engines: {node: '>= 12.0.0'}cpu: [x64]os: [win32]+ resolution: {integrity: sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [win32]+resolution: {integrity: sha512-yV5UR7og+Og7lQC+70DA7a8ta1uiOPnWPJfxa0wnxylev5qfo4P+4iMpzWAdYWOca4jdNQZii+bDL/l+4hUXIA==}engines: {node: '>= 12.0.0'}- resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==}- engines: {node: '>=10'}+ resolution: {integrity: sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==}+ engines: {node: '>= 12.0.0'}resolution: {integrity: sha512-p3cz0JV5vw/XeouBU3Ldnp+ZkBjE+n8ydJ4mcwBrOiXXPqNlrzGBqWs9X4MWF7f+iKUBu794Y8Hh8yawiJbCjw==}@@ -9736,10 +11647,6 @@ packages:resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}- resolution: {integrity: sha512-5sq2pmnehly+wMOvWr9CMlsLI0L8ZHDde1a/Ueu/mOu5E3laD3txFQv6tNwH2BSSaYKtyWfWV1+k6+FN5gnoHw==}- engines: {node: '>=8.6.0'}-resolution: {integrity: sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==}engines: {node: '>=4'}@@ -9800,8 +11707,8 @@ packages:peerDependencies:react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc- resolution: {integrity: sha512-CJZKq2g8Y8yN4Aq002GahSXbG2JpFv9kXwyiOAMvUBv7pxeOFHUWKB0mO7MiY4ZVFCV4aNjv2BJFq/z3DgKPQg==}+ resolution: {integrity: sha512-x6cLTk8gahdUPje0hSgLN1/MgiJH+Xl90Xoxy9bkPAsMPOUiyRSKR4JCDPGVCEpyqnZXH3exFWNItcvra9WzUQ==}peerDependencies:react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0@@ -9809,6 +11716,10 @@ packages:resolution: {integrity: sha512-tJLxrKJhO2ukZ5z0gyjY1zPh3Rh88Ej9P7jNrZiHMUXHae1yvI2imgOZtL1TO8TW6biMMKfTtAOoEJANgtWBMQ==}engines: {node: '>=12'}+ resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}+ hasBin: true+resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}@@ -9819,10 +11730,6 @@ packages:resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==}engines: {node: '>=6'}- resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}- engines: {node: '>=8'}-resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==}@@ -9844,10 +11751,6 @@ packages:resolution: {integrity: sha512-Hlk20WQHRIm9EE9luN1kjRjYXAQToHOIAHPJn9buxBwuhfTHoKUcX+lXBbxc85DVQfXYbEQ4HcwQdd128E3qHQ==}- resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}- engines: {node: '>= 0.4'}-resolution: {integrity: sha512-o+HwBVD71MHdYpdScDd6CEcdd6CJOF2eXQJE0kNuIkfTjffPyqoeYdYkzVqimTUr1YgIQkNbL8MakHCZ2Ml7mg==}engines: {node: '>= 18'}@@ -10156,6 +12059,11 @@ packages:engines: {node: '>=4.0.0'}hasBin: true+ resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==}+ engines: {node: '>=10.0.0'}+ hasBin: true+resolution: {integrity: sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==}engines: {node: '>=4'}@@ -10164,6 +12072,11 @@ packages:resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-sKCNYNzXG6l8qg0Oo7y8WcDKcpbgw0qwZsxNpdZilFTR4EavRow2TlcwuPSVN99jqAjhz0M4VXvTdSGdtJ2VfQ==}+ engines: {node: '>=18.0.0'}+ hasBin: true+resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}@@ -10171,6 +12084,10 @@ packages:resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==}engines: {node: '>=10'}+ resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==}engines: {node: '>=16 || 14 >=14.17'}@@ -10254,12 +12171,26 @@ packages:resolution: {integrity: sha512-49Kt+HKjtbJKLtgO/LKj9Ld+6vw9BjH5d9sc40R/kVyH8GLAXgT42M2NnuPcJNuA3s9ZfZBUcwIgpmZWGEE+hA==}- resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==}- engines: {node: '>=10'}-- resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}+ resolution: {integrity: sha512-JLjvFDuFr42NFtcVoMAyC2sEjnpA8xpy6qWPyzQvCloznAyQ8FIXioxWfHiLtgYhoVpfUqSWpn1h9++skj9+Wg==}+ peerDependencies:+ '@emotion/is-prop-valid': '*'+ react: ^18.0.0 || ^19.0.0+ react-dom: ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@emotion/is-prop-valid':+ optional: true+ react:+ optional: true+ react-dom:+ optional: true++ resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}@@ -10271,6 +12202,10 @@ packages:resolution: {integrity: sha512-r5VRLv9qouXuLiIBrLpl2d5ZvPt8svdQTl5/vMvE4nzDMyEX4sgW5yWhuBBj5UmgwOTWj8CIdSXn5sAfsHAWIQ==}+ resolution: {integrity: sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -10319,24 +12254,6 @@ packages:resolution: {integrity: sha512-SrQrok4CATudVzBS7coSz26QRSmlK9TzzoFbeKfcPBUFPjcQM9Rqvr/DlJkOrwI/0KcgvMub1n1g5Jt9EgRn4A==}- resolution: {integrity: sha512-djQt3ZEaWEIxcsuh3HTW2uuzLfXMRjHH+ugAsichlQSbH4iA5MRcgMA2HvTNvsDTDLh44tyU72+/gWsxgTbAKg==}- peerDependencies:- next: ^12.2.5 || ^13 || ^14- nodemailer: ^6.6.5- react: ^17.0.2 || ^18- react-dom: ^17.0.2 || ^18- peerDependenciesMeta:- nodemailer:- optional: true-- resolution: {integrity: sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==}- peerDependencies:- next: '*'- react: '*'- react-dom: '*'-resolution: {integrity: sha512-/QHIrsYpd6Kfk7xakK4svpDI5mmXP0gfvCoJdGpZQ2TOrQZmsW0QxjaiLn8wbIKjtm4BTSqLoix4lxYYOnLJ/w==}peerDependencies:@@ -10406,13 +12323,6 @@ packages:sass:optional: true- resolution: {integrity: sha512-2mt+YDj3I7s8JGv136TRdJo9amd2BBeb2u1U4tyvZpR08eqeBgqp3xsw2Yu1AUT7C3NZQhbQN11EXwnlqsPEIA==}- peerDependencies:- next: '>= 6.0.0'- react: '>= 16.0.0'- react-dom: '>= 16.0.0'-resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==}@@ -10426,9 +12336,6 @@ packages:resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==}- resolution: {integrity: sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==}-resolution: {integrity: sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==}engines: {node: '>= 0.10.5'}@@ -10468,9 +12375,6 @@ packages:resolution: {integrity: sha512-0uGYQ1WQL1M5kKvGRXWQ3uZCHtLTO8hln3oBjIusM75WoesZ909uQJs/Hb946i2SS+Gsrhkaa6iAO17jRIv6DQ==}- resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==}-resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==}@@ -10478,11 +12382,6 @@ packages:resolution: {integrity: sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==}engines: {node: '>=0.12.0'}- resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==}- engines: {node: '>=6'}- hasBin: true-resolution: {integrity: sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -10507,13 +12406,6 @@ packages:resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}engines: {node: '>=8'}- resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==}- deprecated: This package is no longer supported.-- resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==}-resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}@@ -10523,23 +12415,34 @@ packages:resolution: {integrity: sha512-BpNMhQnRAHOFbi0giD+dMnDoaPibVW22Vl2CWfZZIlpgTtixmbPm+Cv7a7F7FrEc/dTOECMS/T8V5rltIGI0tw==}- resolution: {integrity: sha512-m9o8avj1CI6ryO0jhjFi8dhFA8jLXb+6esZbkki8tJixBnexPFoVZ5wFgmANVumbyeLemZ/ujhYn23iERRYwlA==}+ resolution: {integrity: sha512-vzKeoYlMRmNYPWECdn53Nmh/jM+r/iSezEin342EVXPogT6KzALwdnYbZxASE5vTdXRUtOymtPkgsarLipKetg==}peerDependencies:- '@remix-run/react': '>= 2'- next: '>= 14.2.0'- react: '>= 18.2.0'- react-router-dom: '>= 6'+ '@remix-run/react': '>=2'+ '@tanstack/react-router': ^1+ next: '>=14.2.0'+ react: '>=18.2.0 || ^19.0.0-0'+ react-router: ^6 || ^7+ react-router-dom: ^6 || ^7peerDependenciesMeta:'@remix-run/react':optional: true+ '@tanstack/react-router':+ optional: truenext:optional: true+ react-router:+ optional: truereact-router-dom:optional: true- resolution: {integrity: sha512-a5ERWK1kh38ExDEfoO6qUHJb32rd7aYmPHuyCu3Fta/cnICvYmgd2uhuKXvPD+PXB+gCEYYEaQdIRAjCOwAKNA==}+ resolution: {integrity: sha512-o6nIY3qwiSXl7/LuOU0Dmuctd34Yay0yeuZRLFmDPrrdHpXKFndPj3hM+YEPVHYC5fx2otBx4Ilc/gyYSAUaIA==}++ resolution: {integrity: sha512-hlacBiRiv1k9hZFiphPUkfSQ/ZfQzZDzC+8z0wL3lvDAOUu/2NnChkKuMoMjNur/9OpKuz2QsIeiPVN0xM5Q0w==}+ engines: {node: ^14.16.0 || >=16.10.0}+ hasBin: trueresolution: {integrity: sha512-nlLGZPMQ/kbmkdIb5yvVzep1jKUII2x6ehNsHpgy71jpnJMW7V+KsB3AjYI2Ajb7UqMAMNjlssg6FUodrEMYzg==}@@ -10549,17 +12452,12 @@ packages:resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==}- engines: {node: '>= 6'}-resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}engines: {node: '>= 6'}- resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}- engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==}resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}@@ -10578,10 +12476,6 @@ packages:resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==}- resolution: {integrity: sha512-IF4PcGgzAr6XXSff26Sk/+P4KZFJVuHAJZj3wgO3vX2bMdNVp/QXTP3P7CEm9V1IdG8lDLY3HhiqpsE/nOwpPw==}- engines: {node: ^10.13.0 || >=12.0.0}-resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==}engines: {node: '>=14.0.0'}@@ -10637,9 +12531,6 @@ packages:resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}engines: {node: '>=12'}- resolution: {integrity: sha512-T1h3B10BRPKfcObdBklX639tVz+xh34O7GjofqrqiAQdm7eHsQ00ih18x6wuJ/E6FxdtS2u3FmUGPDeEcMwzNA==}-resolution: {integrity: sha512-eNwHudNbO1folBP3JsZ19v9azXWtQZjICdr3Q0TDPIaeBQ3mXLrh54wM+er0+hSp+dWKf+Z8KM58CYzEyIYxYg==}engines: {node: '>=6'}@@ -10733,6 +12624,10 @@ packages:resolution: {integrity: sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==}+ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==}@@ -10743,9 +12638,17 @@ packages:resolution: {integrity: sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==}engines: {node: '>=4'}+ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-mhHgobPPua5kZ98EF4HWiH167JWBfl4pvAIXXdbaVohtK7a6YBOy56kvhCqduqyo/f3yrHFWmqmiMg/BkBkYYQ==}+ resolution: {integrity: sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-Nt/a5SfCLiTnQAjx3fHlqp8hRgTL3z7kTQZzvIMS9uCAepnCyjpdEc6M/sz69WqMBdaDBw9sF1F1UaHROYzGkQ==}engines: {node: '>=10'}@@ -10753,9 +12656,18 @@ packages:resolution: {integrity: sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==}+ resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==}++ resolution: {integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==}+resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==}+ resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}+resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==}@@ -10796,6 +12708,9 @@ packages:resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==}+ resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==}+resolution: {integrity: sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==}engines: {node: '>=16'}@@ -10817,6 +12732,9 @@ packages:resolution: {integrity: sha512-FhJ+YbOSBb9/rIl2ZeE/QHEsWn7PqNYt8ARAY3kIgNGOk13g9FGyIY6JIl/xB/3TFRVoTv5as0l11weORrTekA==}+ resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==}+resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==}engines: {node: '>=4.0.0'}@@ -10828,9 +12746,6 @@ packages:resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==}engines: {node: '>=4'}- resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}-resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}@@ -10846,6 +12761,10 @@ packages:resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}engines: {node: '>=12'}+ resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}engines: {node: '>=0.10.0'}@@ -10875,6 +12794,12 @@ packages:resolution: {integrity: sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==}engines: {node: '>=6'}+ resolution: {integrity: sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==}++ resolution: {integrity: sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==}+resolution: {integrity: sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==}engines: {node: '>=10.4.0'}@@ -10911,12 +12836,6 @@ packages:ts-node:optional: true- resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==}- engines: {node: '>=12.0'}- peerDependencies:- postcss: ^8.2.14-resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}engines: {node: '>=12.0'}@@ -10927,10 +12846,6 @@ packages:resolution: {integrity: sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==}engines: {node: '>=4'}- resolution: {integrity: sha512-rEYkQOMUCEMhsKbK66tbEU9QVIxbhN18YiniAwA7XQYTVBqrBy+P2p5JcdqsHgKM2zWylp8d7J6eszocfds5Sw==}- engines: {node: '>=4'}-resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==}engines: {node: '>=4'}@@ -10942,10 +12857,6 @@ packages:resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}engines: {node: ^10 || ^12 || >=14}- resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==}- engines: {node: ^10 || ^12 || >=14}-resolution: {integrity: sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==}engines: {node: ^10 || ^12 || >=14}@@ -10954,6 +12865,10 @@ packages:resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==}engines: {node: ^10 || ^12 || >=14}+ resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}+ engines: {node: ^10 || ^12 || >=14}+resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==}engines: {node: '>=4'}@@ -10970,16 +12885,8 @@ packages:resolution: {integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-JyhErpYOvBV1hEPwIxc/fHWXPfnEGdRKxc8gFdAZ7XV4tlzyzG847XAyEZqoDnynP88akM4eaHcSOzNcLWFguw==}- peerDependencies:- preact: '>=10'-- resolution: {integrity: sha512-OPELkDmSVbKjbFqF9tgvOowiiQ9TmsJljIzXRyNE8nGiis94pwv1siF78rQkAP1Q1738Ce6pellRg/Ns/CtHqQ==}-- resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==}+ resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}engines: {node: '>=14'}hasBin: true@@ -10991,13 +12898,14 @@ packages:resolution: {integrity: sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==}engines: {node: '>= 10'}+ resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}+ engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}+resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}- resolution: {integrity: sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==}-resolution: {integrity: sha512-Ybu1gnxsj4IMCdGjOqdQ7Jaf9XnDzrnnVK+LBOCQBG9OCUuBxUikgwUzBeJX3oKvZ0ni//lHqsTga0Qvh3ZfCQ==}engines: {node: '>=10'}@@ -11015,6 +12923,16 @@ packages:engines: {node: '>=16.13'}hasBin: true+ resolution: {integrity: sha512-QEuCwxu+Uq9BffFw7in8In+WfbSUN0ewnaSUKloLkbJd42w6EyFckux4M0f7VwwHlM3A8ssaz4OyniCXlsn0WA==}+ engines: {node: '>=18.18'}+ hasBin: true+ peerDependencies:+ typescript: '>=5.1.0'+ peerDependenciesMeta:+ typescript:+ optional: true+resolution: {integrity: sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==}engines: {node: '>=6'}@@ -11023,6 +12941,10 @@ packages:resolution: {integrity: sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==}engines: {node: '>=6'}+ resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}@@ -11105,6 +13027,9 @@ packages:resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==}+resolution: {integrity: sha512-p8HxdCoXfwDU7V3uUxGpbZzK0/nHWey/A8wgfVrUDMSJC3XXEC+Hx8c+UsrTHRXw60ZJSjSoAgldyEh35UPsog==}peerDependencies:@@ -11120,6 +13045,9 @@ packages:resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==}engines: {node: '>=0.6'}+ resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==}+resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==}@@ -11183,6 +13111,9 @@ packages:react: '>=16.9.0'react-dom: '>=16.9.0'+ resolution: {integrity: sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==}+resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}hasBin: true@@ -11194,47 +13125,54 @@ packages:react: '>=16.8.0'react-dom: '>=16.8.0'- resolution: {integrity: sha512-o/4ho2p5B3FfXpjDpwjYwNq6fTCbHvuQbrHRRJ+SZ3g0+OVssFVIrQBTJ16pVbWXOkjtw61wgCcbJN2VZmuKzg==}+ resolution: {integrity: sha512-Jr2vbDWjo5wW+X8wBYRBACpuKdPkLa4A2ZYfxlAR0oc/gXWVeWyAmAWzZj73276IQxycxrTL7aGn4quWV7+l2Q==}peerDependencies:react: '>=16.8.0'react-dom: '>=16.8.0'- resolution: {integrity: sha512-mz+qeyrOM7++1NCb1ARXmkjMkzWVh2GL9YiPbRjKe0zHccvekk4HE+0MPOZOrosn8r8zTHIIeOUXTmXRqmkRmg==}+ resolution: {integrity: sha512-NtkJbuX6cl/VaGNb3sVVhmMA6LSMnL5G3xNL+61IyoZj0mUZFWTg4hmj7PHjIQ8MXN9dHWhUHFoJWG6y60DKSg==}+ engines: {node: '>=18'}peerDependencies:- date-fns: ^2.28.0 || ^3.0.0- react: ^16.8.0 || ^17.0.0 || ^18.0.0+ react: '>=16.8.0'resolution: {integrity: sha512-cq/o30z9W2Wb4rzBefjv5fBalHU0rJGZCHAkf/RHSBWSSYwh8PlQTqqOJmgIIbBtpj27T6FIPXeomIjZtCNVqA==}- resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==}+ resolution: {integrity: sha512-Dlq/5LAZgF0Gaz6yiqZCf6VCcZs1ghAJyrsu84Q/GT0gV+mCxbfmKNoGRKBYMJ8IEdGPqu49YWXD02GCknEDkw==}peerDependencies:- react: ^18.2.0+ react: ^19.1.1- resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==}+ resolution: {integrity: sha512-VC+HBLEZ0XJxnOxVAZsdRi8rD04Iz3SiiKOoYzamjylUcju/hP9np/aZdLHf/7WOD268WMoNJMvYfB5yAK45cw==}peerDependencies:- react: ^18.3.1+ react: '>= 16.3.0'+ react-dom: '>= 16.3.0'resolution: {integrity: sha512-nXdo9P3V+qYSW6m5yN3XpFGhHb/bflX86m0EDQEqDIgayprj6InmBJoBnMSIyC5EP4tPtoAljlclJns4lJG/MQ==}engines: {node: '>=18.0.0'}hasBin: true+ resolution: {integrity: sha512-vT7xmQqszTT+sQw/LfisrEO4le1EPNnSEMVHy6sBZyzS3yGkMywdOd+5iEFFwQwt0NSaGkxuRmYwa1JsP6OJdw==}+ peerDependencies:+ react: '>= 16.3.0'+ react-dom: '>= 16.3.0'+resolution: {integrity: sha512-3PCY82oE0WgeOgUtIr3nYNNtNvqtJ7BZjsbxh6TnYNbXButaD5WpjOmTjdxZfheuHKR68qfeFnEDVYoSSFPMTQ==}engines: {node: '>=12.22.0'}peerDependencies:react: ^16.8.0 || ^17 || ^18- resolution: {integrity: sha512-fmjnsfWM+D739UKgQNY9E03Bjf+q9iTwMqwqXboThlfYZ7yLWXEGvTNsCPKwDYlrPinDX8/nZl4wAABsc5OH7w==}+ resolution: {integrity: sha512-vcQLHOBNHdbB9sIdtDW6LnbGPlY+WDDYbv/uWL3x/Fk61vMK1ugw1cwDwo9hpD4oNF6SAaToXLbMJ8l8KOntXQ==}peerDependencies:- react: ^16.8.3 || ^17.0.0 || ^18.0.0- react-dom: ^16.8.3 || ^17.0.0 || ^18.0.0+ react: ^16.8.3 || ^17.0.0 || ^18.0.0 || ^19.0.0+ react-dom: ^16.8.3 || ^17.0.0 || ^18.0.0 || ^19.0.0resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}@@ -11245,6 +13183,9 @@ packages:resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==}+ resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}+resolution: {integrity: sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==}peerDependencies:@@ -11299,6 +13240,10 @@ packages:resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==}engines: {node: '>=10'}@@ -11319,6 +13264,16 @@ packages:'@types/react':optional: true+ resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+resolution: {integrity: sha512-xGVKJJr0SJGQVirVFAUZ2k1QLyO6m+2fy0l8Qawbp5Jgrv3DeLalrfMNBFSlmz5kriGGzsVBtGVnf4pTKIhhWA==}engines: {node: '>=10'}@@ -11349,6 +13304,21 @@ packages:'@types/react':optional: true+ resolution: {integrity: sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-vKpeHhI5OZvYn82kXOs1bC8aOXktGU5AmKAgaZS4F5JPburCtbmDPqE7Pzp+1kN4+Wb81LlF33VpGwWwtXem+w==}+ peerDependencies:+ react: '>= 16.3'+resolution: {integrity: sha512-+4CCab7z8G8glgJoRjAwocsgsv6VA2w7JPxFWHRc7kvz8mec1/K5LutNC2MG28Mn8mu6+bu04XZxHv5gyfT7xQ==}engines: {node: '>=0.10'}@@ -11367,11 +13337,11 @@ packages:react: ^16.8.0 || 17.x || 18.xreact-dom: ^16.8.0 || 17.x || 18.x- resolution: {integrity: sha512-2NMXOBY1uVUQx1jBeENGA497HK20y6CPGYL1ZnJLeoQ8rrc3UfmOM82sRxtzpcoCkUMy4CS0RGylfuVhuFjBgg==}+ resolution: {integrity: sha512-gnGKTpYwqL0Iii09gHobNolvX4Kiq4PKx6eWBCYYix+8cdw+cGo3do906l1NBPKkSWx1DghC1dlWG9L2uGd61Q==}peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==}@@ -11383,6 +13353,16 @@ packages:'@types/react':optional: true+ resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+resolution: {integrity: sha512-yztQgcshmUjN6GQ5irTuEiO54iWzY/iZsPP7vygEc+yY1IFlbXWOffRaZW7cHm9oBBmSk+/UNaaDI9iCQlHQ8g==}engines: {node: '>=14.16'}@@ -11413,12 +13393,8 @@ packages:react: ^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0react-dom: ^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0- resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==}- engines: {node: '>=0.10.0'}-- resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}+ resolution: {integrity: sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==}engines: {node: '>=0.10.0'}@@ -11454,15 +13430,19 @@ packages:resolution: {integrity: sha512-hjMmLaUXAm1hIuTqOdeYObMslq/q+Xff6QE3Y2P+uoHAg2nmVlLBps2hzh1UJDdMtDTMXOFewK6ky51JQIeECg==}engines: {node: '>= 4'}+ resolution: {integrity: sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==}+ engines: {node: '>= 4'}+resolution: {integrity: sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==}- resolution: {integrity: sha512-rVNcdNQ5b7+40Ue7mcEKZJyEv+3SUk2bDEVvOyXPDXXVE7TU3lrvnJUgAvO36hSzhRP2DnAamKXvHLFIFOU0Ww==}+ resolution: {integrity: sha512-UT/q6fwS3c1dHbXv2uFgYJ9BMFHu3fwnd7AYZaEQhXuYQ4hgsxLvsUXzGdKeZrW5xopzDCvuA2N41WJ88I7zIw==}engines: {node: '>=14'}peerDependencies:- react: ^16.0.0 || ^17.0.0 || ^18.0.0- react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0+ react: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0resolution: {integrity: sha512-8GtdyqaBcDfva+GUKDr3nev3VpKAhup1+RvkMvUxURHpW7QyIvk9F5wz7Vzo06CEMSilw6uArgRqhpiUcWp8ew==}@@ -11490,13 +13470,13 @@ packages:resolution: {integrity: sha512-zvmkHEAdGMn+hMRXuMBtu4Vo5P6rHQjLoHftu+lBqq8ZTA3RCVC/WzD790bkKKiNFp7d5/9PcSD19fJyyRvOdQ==}- resolution: {integrity: sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==}+ resolution: {integrity: sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==}peerDependencies:- redux: ^4+ redux: ^5.0.0- resolution: {integrity: sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==}+ resolution: {integrity: sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==}resolution: {integrity: sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA==}@@ -11584,9 +13564,6 @@ packages:resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==}- resolution: {integrity: sha512-g/osARvjkBXb6Wo0XvAeXQohVta8i84ACbenPpoSsxTOQH/Ae0/RGP4WZgnMH5pMLpsj4FG7OHmcIcXxpza8eQ==}-resolution: {integrity: sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==}@@ -11600,6 +13577,9 @@ packages:resolution: {integrity: sha512-Eht5w30ruCXgFmxVUSlNWQ9iiimq07URKeFS3hNc8cUWy1llX4KDWfyEDZRycMc+znsN9Ux5/tJ/BFdgdOwA3A==}+ resolution: {integrity: sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A==}+resolution: {integrity: sha512-o4S4Qh6L2jpnCy83ysZDau+VORNvnFw07CKSAymkd6ICNVEPisMyzlc00KlvvicsxKck94SEwhDnMNdICzO+tA==}@@ -11621,6 +13601,9 @@ packages:resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==}+ resolution: {integrity: sha512-uuoJ1hU/k6M0779t3VMVIYpb2VMJk05cehCaABFhXaibcbvfgR8wKiozLjVFSzJPmQMRqIcO0HMyTFqfV09V6Q==}+resolution: {integrity: sha512-qhM/y57enGWHAe3v/NcwML6a3/vfESLe/sGM2dII+gEO0BpKRUkWZow/tyloNqJyN6kXSl3RyyM8Ll5D/sJP8g==}@@ -11631,20 +13614,20 @@ packages:resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}- resolution: {integrity: sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==}+ resolution: {integrity: sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==}resolution: {integrity: sha512-EkCRfzKw9JX7N75L+0BC8oXohDBLhlhl4w7AgrkEW2TAsOMBsVcbQHPe8cRWP6Ea7KDhD158TsNjbCBcohed5A==}engines: {node: '>=18'}- resolution: {integrity: sha512-6hVRn2S6W1cdycreA6Vth5XRN2NnGs7/RnVpxNw/1OCK8aCoevRFH2WprmQRZDnnH3e6awLv2tTIPuv7/7xeGg==}- engines: {node: '>=8.6.0'}-resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==}+ resolution: {integrity: sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-qpFcKaXsq8+oRoLilkwyc7zHGF5i9Q2/25NIgLQQ/+VVv9rU4qvr6nXVAw1DsnXJyQkZsR4Ytfbtg5ehfcUssQ==}engines: {node: '>=0.10.0'}@@ -11653,10 +13636,17 @@ packages:resolution: {integrity: sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==}engines: {node: '>=4'}+ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}+resolution: {integrity: sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==}engines: {node: '>=10'}@@ -11744,6 +13734,27 @@ packages:resolution: {integrity: sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==}+ resolution: {integrity: sha512-S2pPcC8h0C8a0ZLDdUTqqtTR9jlryThF3SmH8eZw97FQwgY+hd0x07Zm5algBkmj25S4nvvOusliR1YpImK3LA==}+ engines: {node: '>=20.18.0'}+ peerDependencies:+ '@typescript/native-preview': '>=7.0.0-dev.20250601.1'+ rolldown: ^1.0.0-beta.9+ typescript: ^5.0.0+ vue-tsc: ~3.0.3+ peerDependenciesMeta:+ '@typescript/native-preview':+ optional: true+ typescript:+ optional: true+ vue-tsc:+ optional: true++ resolution: {integrity: sha512-6RcqyRx0tY1MlRLnjXPp/849Rl/CPFhzpGGwNPEPjKwqBMqPq/Rbbkxasa8s0x+IkUk46ty4jazb5skZ/Vgdhw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true+resolution: {integrity: sha512-wz66wn4t1OHIJw3+XU7mJJQV/2NAfw5OAk6G6Hoo3zcvz/XOfQ52Vgi+AN4Uxoxi0KBBwk2g8zPrTDA4btSB/Q==}engines: {node: '>=18.0.0', npm: '>=8.0.0'}@@ -11754,6 +13765,17 @@ packages:engines: {node: '>=18.0.0', npm: '>=8.0.0'}hasBin: true+ resolution: {integrity: sha512-jVG20NvbhTYDkGAty2/Yh7HK6/q3DGSRH4o8ALKGArmMuaauM9kLfoMZ+WliPwA5+JHr2lTn3g557FxBV87ifg==}+ engines: {node: '>=18.0.0', npm: '>=8.0.0'}+ hasBin: true++ resolution: {integrity: sha512-z+6o7c3DarUbuBMLIdhzj2CqJLtUWrGk4fZlf07dIMitX3UpBXeInJ3lMD9huxj9yh9eo1RqtXf9aL0YzkDDUA==}++ resolution: {integrity: sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==}+resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==}engines: {node: '>=0.12.0'}@@ -11805,12 +13827,16 @@ packages:resolution: {integrity: sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==}- resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}+ resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}+ engines: {node: '>=v12.22.7'}resolution: {integrity: sha512-ABvovCDe/k9IluqSh4/ISoq8tIJnW8euVAWYt5j/bg6dRnqwQwiGO1F/V4AyK96NGF/FB04FhOUDuWj8IKfABA==}+ resolution: {integrity: sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==}+resolution: {integrity: sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==}@@ -11830,6 +13856,9 @@ packages:resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}+ resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==}+resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==}hasBin: true@@ -11863,6 +13892,11 @@ packages:engines: {node: '>=10'}hasBin: true+ resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==}+ engines: {node: '>=10'}+ hasBin: true+resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==}engines: {node: '>= 0.8.0'}@@ -11871,6 +13905,16 @@ packages:resolution: {integrity: sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-0QvCV2lM3aj/U3YozDiVwx9zpH0q8A60CTWIv4Jszj/givcudPb48B+rkU5D51NJ0pTpweGMttHjboPa9/zoIQ==}+ engines: {node: '>=10'}+ peerDependencies:+ seroval: ^1.0++ resolution: {integrity: sha512-RbcPH1n5cfwKrru7v7+zrZvjLurgHhGyso3HTyGtRivGWgYjbOmGuivCQaORNELjNONoK35nj28EoWul9sb1zQ==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==}engines: {node: '>= 0.8.0'}@@ -11941,20 +13985,8 @@ packages:resolution: {integrity: sha512-yhniEILouC0s4lpH0h7rJsfylZdca10W9mDJRAFh3EpcSUanCHGb0R7kcFOIUCZYSAPo0PUD5ZxWQdW0T4xaug==}hasBin: true- resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==}- engines: {node: '>= 0.4'}-- resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}- engines: {node: '>= 0.4'}-- resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}- engines: {node: '>= 0.4'}-- resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}+ resolution: {integrity: sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==}engines: {node: '>= 0.4'}@@ -12007,6 +14039,9 @@ packages:resolution: {integrity: sha512-8U6BEgGjQOfGz3HHTYaC/L1GaxDCJ/KM0XTkJly0EhZ5U/du9uNEZy4ZgYzEzIqlx2CMm25CrCqr1ck899eLNA==}engines: {node: '>=10.2.0'}+ resolution: {integrity: sha512-A0ZBPJQldAeGCTW0YRYJmt7RCeh5rbFfPZ2aOttgYnctHE7HgKeHCBB/PVc2P7eOfmNXqMFFFoYYdm3S4dcbkA==}+resolution: {integrity: sha512-INb7TM37/mAcsGmc9hyyI6+QR3rR1zVRu36B0NeGXKnOOLiZOfER5SA+N7X7k3yUYRzLWafduTDvJAfDswwEww==}@@ -12016,10 +14051,6 @@ packages:react: ^18.0.0react-dom: ^18.0.0- resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}engines: {node: '>=0.10.0'}@@ -12067,6 +14098,11 @@ packages:resolution: {integrity: sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==}engines: {node: '>= 0.6'}+ resolution: {integrity: sha512-poPs1GuctQLpiJ/1Pb8e+5b5lju9hQU7wxJ6NkYVUw7ZZExeRoYwyiaOekal+rDZc99MO/J2y9+SGFpHBKRSpQ==}+ engines: {node: '>=20.16.0'}+ hasBin: true+resolution: {integrity: sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==}engines: {node: '>= 8'}@@ -12113,6 +14149,10 @@ packages:resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==}+ engines: {node: '>=4', npm: '>=6'}+resolution: {integrity: sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==}engines: {node: '>= 0.10.0'}@@ -12258,6 +14298,14 @@ packages:resolution: {integrity: sha512-mJiVjfd2vokfDxsQPOwJ/PtanO87LhpYY88ubI5dUB1Ab58Txbyje3+jpm+/83R/fevaq/107NNhtYBLuoTrFg==}engines: {node: '>=10'}+ resolution: {integrity: sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==}+ engines: {node: '>=16'}++ resolution: {integrity: sha512-5eG9FQjEjDbAlI5+kdpdyPIBMRH4GfTVDGREVupaZHmVoppknhM29b/S9BkQz7cathp85BVgRi/As3Siln7e0Q==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}engines: {node: '>=4'}@@ -12289,27 +14337,35 @@ packages:peerDependencies:react: ^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}+resolution: {integrity: sha512-3mFKyCo/MBcgyOTlrY8T7odzZFx+w+qKSMAmdFzRvqBfLlSigU6TZnlFHK0lkMwj9Bj8OYU+9yW9lmGuS0QEnQ==}- resolution: {integrity: sha512-0q8cfZHMu9nuYP/b5Shb7Y7Sh1B7Nnl5GqNr1U+n2p6+mybvRtayrQ+0042Z5byvTA8ihjlP8Odo8/VnHbZu4Q==}+ resolution: {integrity: sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA==}++ resolution: {integrity: sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g==}resolution: {integrity: sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==}peerDependencies:tailwindcss: '>=3.0.0 || insiders'- resolution: {integrity: sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==}- engines: {node: '>=14.0.0'}- hasBin: true-resolution: {integrity: sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==}engines: {node: '>=14.0.0'}hasBin: true+ resolution: {integrity: sha512-DzFtxOi+7NsFf7DBtI3BJsynR+0Yp6etH+nRPTbpWnS2pZBaSksv/JGctNwSWzbFjp0vxSqknaUylseZqMDGrA==}++ resolution: {integrity: sha512-ZL6DDuAlRlLGghwcfmSn9sK3Hr6ArtyudlSAiCqQ6IfE+b+HHbydbYDIG15IfS5do+7XQQBdBiubF/cV2dnDzg==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-3qMUT7GWQXEpxwJdo4GUR5GZmG6Ing0vCfzrXnXtHy8ltOjh32F4D1M5niSDGVh08eMTrsrgJfAGYD/EZLwEAA==}engines: {node: '>=0.8'}@@ -12397,23 +14453,37 @@ packages:resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==}- resolution: {integrity: sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==}+ resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}resolution: {integrity: sha512-27BIW0dIWTYYoWNnqSmoNMKe5WIbkXsc0xaCQHd3/3xT2XMuMJrzHdrO9QBFR14emBz1Bu0dOAs2sCBBrvgPQA==}engines: {node: '>=12'}+ resolution: {integrity: sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==}+resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}+ resolution: {integrity: sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==}+resolution: {integrity: sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}+ engines: {node: '>=12.0.0'}++ resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}+ engines: {node: '>=12.0.0'}+resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==}engines: {node: ^18.0.0 || >=20.0.0}@@ -12426,6 +14496,13 @@ packages:resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==}engines: {node: '>=14.0.0'}+ resolution: {integrity: sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==}++ resolution: {integrity: sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==}+ hasBin: true+resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==}engines: {node: '>=0.6.0'}@@ -12433,13 +14510,6 @@ packages:resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==}- resolution: {integrity: sha512-1eAdufMg6mwgmlojAx3QeMnzB/BTVp7Tbndi3U7ftcT2zCZadjxkkmLmd97zmaxWi+sgGcgWrokmpEoy0Dn0vQ==}-- resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}- engines: {node: '>=4'}-resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}engines: {node: '>=8.0'}@@ -12459,12 +14529,20 @@ packages:resolution: {integrity: sha512-605uxS6bcYxGXw9qi62XyrV6Q3xwbndjachmNxu8HWTtVPxZfEJN9fd/SZS1Q54Sn2y0TMyMxFj/cJINqGHrKw==}hasBin: true+ resolution: {integrity: sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==}+ engines: {node: '>=16'}+resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==}+ resolution: {integrity: sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-aXJDbk6SnumuaZSANd21XAo15ucCDE38H4fkqiGsc3MhCK+wOlZvLP9cB/TvpHT0mOyWgC4Z8EwRlzqYSUzdsA==}engines: {node: '>= 0.4'}@@ -12499,6 +14577,28 @@ packages:typescript:optional: true+ resolution: {integrity: sha512-6ThtxVZoTlR5YJov5rYvH8N1+/S/rD/pGfehdCLGznGgbxz+73EASV1tsIIZkLw2n+SXcERqHhcB/OkyxdKv3A==}+ engines: {node: '>=20.19.0'}+ hasBin: true+ peerDependencies:+ '@arethetypeswrong/core': ^0.18.1+ publint: ^0.3.0+ typescript: ^5.0.0+ unplugin-lightningcss: ^0.4.0+ unplugin-unused: ^0.5.0+ peerDependenciesMeta:+ '@arethetypeswrong/core':+ optional: true+ publint:+ optional: true+ typescript:+ optional: true+ unplugin-lightningcss:+ optional: true+ unplugin-unused:+ optional: true+resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}@@ -12526,6 +14626,14 @@ packages:typescript:optional: true+ resolution: {integrity: sha512-+wKjMNU9w/EaQayHXb7WA7ZaHY6hN8WgfvHNQ3t1PnU91/7O8TcTnIhCDYTZwnt8JsO9IBqZ30Ln1r7pPF52Aw==}+ engines: {node: '>=18.0.0'}+ hasBin: true++ resolution: {integrity: sha512-lvLb3hTIpB5oGsk8JmLoAjeCHV58nKa2zHYn8yWOoG5JJusH3bhJlF2DLAZ/5NmJ+jyH3ssiAx/2KmbhavJy/A==}+resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==}engines: {node: '>=4'}@@ -12595,13 +14703,11 @@ packages:resolution: {integrity: sha512-1HTsf5/QVRmLzcGfldPFvkVsAdi1db1BBKzi7iW3KBUlOICg/nKnFS+jGqDJS3YD8VsWbAh7JiHeBvbsw8RPxA==}- resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==}- engines: {node: '>=14.17'}- hasBin: true+ resolution: {integrity: sha512-vaoC35CRC3xvL8Z6HkshDbi6KWM1ezK0LHN0YyxXWUn9HKzBNg/T3xSGlJZjCYspnOD3jE7bcizsp0bUXZDxnQ==}- resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==}+ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}engines: {node: '>=14.17'}hasBin: true@@ -12624,12 +14730,32 @@ packages:resolution: {integrity: sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-QCkQoOnJF8L107gxfHL0uavn7WD9b3dpBcFX6HtfQYmjw2YzWxGuFQ0N0J6tE9oguCBJn9KOvfqYDCMPHIZrBA==}+resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==}resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}+ resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}++ resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==}++ resolution: {integrity: sha512-Vqs8HTzjpQXZeXdpsfChQTlafcMQaaIwnGwLam1wudSSjlJeQ3bw1j+TLPePgrCnCpUXx7Ba5Pdpf5OBih62NQ==}+ engines: {node: '>=20.18.1'}++ resolution: {integrity: sha512-7oZJCPvvMvTd0OlqWsIxTuItTpJBpU1tcbVl24FMn3xt3+VSunwUasmfPJRE57oNO1KsZ4PgA1xTdAX4hq8NyQ==}+ engines: {node: '>=20.18.1'}++ resolution: {integrity: sha512-Wj7/AMtE9MRnAXa6Su3Lk0LNCfqDYgfwVjwRFVum9U7wsto1imuHqk4kTm7Jni+5A0Hn7dttL6O/zjvUvoo+8A==}+resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==}engines: {node: '>=4'}@@ -12722,6 +14848,10 @@ packages:resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-lkaSIlxceytPyt9yfb1h7L9jDFqwMqvUZeGsKB7Z8QrvAO3xZv2S+xMQQYzxk0AGJHcQhbcvhKEstrMy99jnuQ==}+ engines: {node: '>=18.12.0'}+resolution: {integrity: sha512-WQ37/H5A7LcRPWfYOrDa1Ys02xAbpPJq6q5GkO88FBXVSQzHd7+BjEwfRqyaSWCv9MbsJy058GWjjPjcJ16GGA==}peerDependencies:@@ -12781,12 +14911,6 @@ packages:uploadthing:optional: true- resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}- hasBin: true- peerDependencies:- browserslist: '>= 4.21.0'-resolution: {integrity: sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==}hasBin: true@@ -12816,6 +14940,16 @@ packages:'@types/react':optional: true+ resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+resolution: {integrity: sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==}engines: {node: '>=10'}@@ -12826,6 +14960,16 @@ packages:'@types/react':optional: true+ resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==}peerDependencies:@@ -12836,6 +14980,11 @@ packages:peerDependencies:react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+resolution: {integrity: sha512-jnhrjTRJoJS7cFxz63tRYc5mzTKf/h+Ii8P0PDHymT9qDe4ZA2/gzDRmDR4WGausg5X8wMIdghwi3BBCN9JKow==}engines: {node: '>=16.15.0'}@@ -12891,6 +15040,14 @@ packages:engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}hasBin: true+ resolution: {integrity: sha512-cYj0LRuLV2c2sMqhqhGpaO3LretdtMn/BVX4cPLanIZuwwrkVl+lK84E/miEXkCHWXuq65rhNN4rXsBcOB3S4w==}+ peerDependencies:+ vite: '*'+ peerDependenciesMeta:+ vite:+ optional: true+resolution: {integrity: sha512-5nXH+QsELbFKhsEfWLkHrvgRpTdGJzqOZ+utSdmPTvwHmvU6ITTm3xx+mRusihkcI8GeC7lCDyn3kDtiki9scw==}engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}@@ -12931,14 +15088,102 @@ packages:yaml:optional: true- resolution: {integrity: sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA==}+ resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==}+ engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}+ hasBin: true+ peerDependencies:+ '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0+ jiti: '>=1.21.0'+ less: '*'+ lightningcss: ^1.21.0+ sass: '*'+ sass-embedded: '*'+ stylus: '*'+ sugarss: '*'+ terser: ^5.16.0+ tsx: ^4.8.1+ yaml: ^2.4.2+ peerDependenciesMeta:+ '@types/node':+ optional: true+ jiti:+ optional: true+ less:+ optional: true+ lightningcss:+ optional: true+ sass:+ optional: true+ sass-embedded:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+ tsx:+ optional: true+ yaml:+ optional: true++ resolution: {integrity: sha512-4nVGliEpxmhCL8DslSAUdxlB6+SMrhB0a1v5ijlh1xB1nEPuy1mxaHxysVucLHuWryAxLWg6a5ei+U4TLn/rFg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true+ peerDependencies:+ '@types/node': ^20.19.0 || >=22.12.0+ jiti: '>=1.21.0'+ less: ^4.0.0+ lightningcss: ^1.21.0+ sass: ^1.70.0+ sass-embedded: ^1.70.0+ stylus: '>=0.54.8'+ sugarss: ^5.0.0+ terser: ^5.16.0+ tsx: ^4.8.1+ yaml: ^2.4.2+ peerDependenciesMeta:+ '@types/node':+ optional: true+ jiti:+ optional: true+ less:+ optional: true+ lightningcss:+ optional: true+ sass:+ optional: true+ sass-embedded:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+ tsx:+ optional: true+ yaml:+ optional: true++ resolution: {integrity: sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA==}peerDependencies:vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0peerDependenciesMeta:vite:optional: true+ resolution: {integrity: sha512-B/Fegf3i8zh0yFbpzZ21amWzHmuNlLlmJT6n7bu5e+pCHUKQIfXSYokrqOBGEMMe9UG2sostKQF9mml/vYaWJQ==}+ peerDependencies:+ vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0+ peerDependenciesMeta:+ vite:+ optional: true+resolution: {integrity: sha512-188iM4hAHQ0km23TN/adso1q5hhwKqUpv+Sd6p5sOuh6FhQnRNW3IsiIpvxqahtBabsJ2SLZgmGSpcYK4wQYJw==}engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}@@ -12970,6 +15215,10 @@ packages:resolution: {integrity: sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==}+ resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==}@@ -12983,6 +15232,9 @@ packages:resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}engines: {node: '>= 8'}+ resolution: {integrity: sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw==}+resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}@@ -12993,13 +15245,32 @@ packages:resolution: {integrity: sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==}engines: {node: '>=8'}+ resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==}++ resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==}+ resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-HoKuzZrUlgpz35YO27XgD28uh/WJH4B0+3ttFqRo//lmq+9T/mIOJ6kqmINI9HpUpz1imRC/nR/lxKpJiv0uig==}engines: {node: '>=10'}+ resolution: {integrity: sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}@@ -13038,9 +15309,6 @@ packages:engines: {node: '>=8'}hasBin: true- resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==}-resolution: {integrity: sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==}engines: {node: '>=18'}@@ -13059,6 +15327,21 @@ packages:resolution: {integrity: sha512-U0IUQHKXXn6PFo9nqsHphVCE5m3IntqZNB9Jjn7EB1lrR7YTDY3YWgFvEvwniTzXSvOH/XMzAZaIfJF/LvHYXg==}+ resolution: {integrity: sha512-HwaJmXO3M1r4S8x2ea2vy8Rw/y/38HRQuK/gNDRQ7w9cJXn6xSl1sIIqKCffULSUjul3wV3I3Nd/GfbmsRReEA==}+ engines: {node: '>=16'}+ hasBin: true++ resolution: {integrity: sha512-1iTnbjB4F12KSP1zbfxQL495xarS+vdrZnulQP2SEcAxDTUGn7N9zk1O2WtFOc+Fhcgl+9/sdz/4AL9pF34Pwg==}+ engines: {node: '>=18.0.0'}+ hasBin: true+ peerDependencies:+ '@cloudflare/workers-types': ^4.20251008.0+ peerDependenciesMeta:+ '@cloudflare/workers-types':+ optional: true+resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==}engines: {node: '>=8'}@@ -13116,14 +15399,46 @@ packages:utf-8-validate:optional: true+ resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==}+ engines: {node: '>=10.0.0'}+ peerDependencies:+ bufferutil: ^4.0.1+ utf-8-validate: '>=5.0.2'+ peerDependenciesMeta:+ bufferutil:+ optional: true+ utf-8-validate:+ optional: true++ resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==}+ engines: {node: '>=10.0.0'}+ peerDependencies:+ bufferutil: ^4.0.1+ utf-8-validate: '>=5.0.2'+ peerDependenciesMeta:+ bufferutil:+ optional: true+ utf-8-validate:+ optional: true+resolution: {integrity: sha512-kCz5k7J7XbJtjABOvkc5lJmkiDh8VhjVCGNiqdKCscmVpdVUpEAyXv1xmCLkQJ5dsHqx3IPO4XW+NTDhU/fatA==}engines: {node: '>=10.0.0'}+ resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-eLTh0kA8uHceqesPqSE+VvO1CDDJWMwlQfB6LuN6T8w6MaDJ8Txm8P7s5cHD0miF0V+GGTZrDQfxPZQVsur33w==}engines: {node: '>=4.0.0'}+ resolution: {integrity: sha512-WCSfbfZnQDdLQLiMdGUQpMxxckeQ4oZNMNhLVkcekTu7xhD4tuUDyAPoY8CwXvBYE6LwBHd6QW2WZXlOWr1vCw==}+ engines: {node: '>=12.0'}+resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==}engines: {node: '>=4.0'}@@ -13136,6 +15451,9 @@ packages:resolution: {integrity: sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==}engines: {node: '>=8.0'}+ resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}+resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}engines: {node: '>=0.4'}@@ -13160,6 +15478,10 @@ packages:resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==}engines: {node: '>=18'}+ resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}+ engines: {node: '>= 6'}+resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==}engines: {node: '>= 14'}@@ -13168,6 +15490,10 @@ packages:resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==}engines: {node: '>=6'}+ resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}engines: {node: '>=12'}@@ -13176,6 +15502,10 @@ packages:resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==}engines: {node: '>=8'}+ resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}engines: {node: '>=12'}@@ -13200,6 +15530,12 @@ packages:resolution: {integrity: sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==}engines: {node: '>=18'}+ resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==}++ resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==}+resolution: {integrity: sha512-dm0WYknZQP1FZ1ZfturvUbqjtj0OSr2npuxYW5FaYdXTf2WFlUPE8+dO3cYD7uf0JWAb7wNPSQBQlGcN/hiH/Q==}engines: {node: '>=0.8'}@@ -13218,9 +15554,15 @@ packages:typescript: ^4.9.4 || ^5.0.2zod: ^3+ resolution: {integrity: sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==}+resolution: {integrity: sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==}+ resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}+resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}@@ -13260,22 +15602,12 @@ snapshots:dependencies:json-schema: 0.4.0- dependencies:- '@ai-sdk/provider-utils': 2.2.3([email protected])- '@ai-sdk/ui-utils': 1.2.4([email protected])- react: 18.2.0- swr: 2.3.3([email protected])- throttleit: 2.1.0- optionalDependencies:- zod: 3.24.2-dependencies:'@ai-sdk/provider-utils': 2.2.3([email protected])'@ai-sdk/ui-utils': 1.2.4([email protected])- react: 18.3.1- swr: 2.3.3([email protected])+ react: 19.1.1+ swr: 2.3.3([email protected])throttleit: 2.1.0optionalDependencies:zod: 3.24.2@@ -13385,6 +15717,14 @@ snapshots:'@jridgewell/gen-mapping': 0.3.5'@jridgewell/trace-mapping': 0.3.25+ '@asamuzakjp/[email protected]':+ dependencies:+ '@csstools/css-calc': 2.1.4(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])+ '@csstools/css-color-parser': 3.1.0(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])+ '@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])+ '@csstools/css-tokenizer': 3.0.4+ lru-cache: 10.4.3+'@astrojs/[email protected]': {}'@astrojs/[email protected]': {}@@ -13422,7 +15762,7 @@ snapshots:'@astrojs/[email protected]':dependencies:ci-info: 4.2.0- debug: 4.4.0+ debug: 4.4.1dlv: 1.1.3dset: 3.1.4is-docker: 3.0.0@@ -13437,12 +15777,20 @@ snapshots:'@babel/[email protected]':dependencies:- '@babel/helper-validator-identifier': 7.25.9+ '@babel/helper-validator-identifier': 7.27.1+ js-tokens: 4.0.0+ picocolors: 1.1.1++ '@babel/[email protected]':+ dependencies:+ '@babel/helper-validator-identifier': 7.27.1js-tokens: 4.0.0picocolors: 1.1.1'@babel/[email protected]': {}+ '@babel/[email protected]': {}+'@babel/[email protected]':dependencies:'@ampproject/remapping': 2.2.1@@ -13452,11 +15800,31 @@ snapshots:'@babel/helper-module-transforms': 7.26.0(@babel/[email protected])'@babel/helpers': 7.26.0'@babel/parser': 7.26.3- '@babel/template': 7.25.9- '@babel/traverse': 7.26.4- '@babel/types': 7.26.3+ '@babel/template': 7.27.2+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2convert-source-map: 2.0.0- debug: 4.4.0+ debug: 4.4.1+ gensync: 1.0.0-beta.2+ json5: 2.2.3+ semver: 6.3.1+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@ampproject/remapping': 2.2.1+ '@babel/code-frame': 7.27.1+ '@babel/generator': 7.28.3+ '@babel/helper-compilation-targets': 7.27.2+ '@babel/helper-module-transforms': 7.28.3(@babel/[email protected])+ '@babel/helpers': 7.28.3+ '@babel/parser': 7.28.3+ '@babel/template': 7.27.2+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2+ convert-source-map: 2.0.0+ debug: 4.4.1gensync: 1.0.0-beta.2json5: 2.2.3semver: 6.3.1@@ -13465,19 +15833,31 @@ snapshots:'@babel/[email protected]':dependencies:- '@babel/parser': 7.26.3- '@babel/types': 7.26.3+ '@babel/parser': 7.28.3+ '@babel/types': 7.28.2'@jridgewell/gen-mapping': 0.3.5'@jridgewell/trace-mapping': 0.3.25jsesc: 3.0.2+ '@babel/[email protected]':+ dependencies:+ '@babel/parser': 7.28.3+ '@babel/types': 7.28.2+ '@jridgewell/gen-mapping': 0.3.13+ '@jridgewell/trace-mapping': 0.3.30+ jsesc: 3.0.2+'@babel/[email protected]':dependencies:- '@babel/types': 7.26.3+ '@babel/types': 7.28.2++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.28.2'@babel/[email protected]':dependencies:- '@babel/types': 7.26.3+ '@babel/types': 7.28.2'@babel/[email protected]':dependencies:@@ -13487,32 +15867,53 @@ snapshots:lru-cache: 5.1.1semver: 6.3.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected]':dependencies:- '@babel/core': 7.24.5+ '@babel/compat-data': 7.28.0+ '@babel/helper-validator-option': 7.27.1+ browserslist: 4.24.2+ lru-cache: 5.1.1+ semver: 6.3.1++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3'@babel/helper-annotate-as-pure': 7.22.5'@babel/helper-environment-visitor': 7.22.20'@babel/helper-function-name': 7.23.0'@babel/helper-member-expression-to-functions': 7.23.0'@babel/helper-optimise-call-expression': 7.22.5- '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])+ '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])'@babel/helper-skip-transparent-expression-wrappers': 7.22.5'@babel/helper-split-export-declaration': 7.22.6semver: 6.3.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3+ '@babel/helper-annotate-as-pure': 7.27.3+ '@babel/helper-member-expression-to-functions': 7.27.1+ '@babel/helper-optimise-call-expression': 7.27.1+ '@babel/helper-replace-supers': 7.27.1(@babel/[email protected])+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1+ '@babel/traverse': 7.28.3+ semver: 6.3.1+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3'@babel/helper-annotate-as-pure': 7.22.5regexpu-core: 5.3.2semver: 6.3.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-compilation-targets': 7.23.6- '@babel/helper-plugin-utils': 7.22.5- debug: 4.4.0+ '@babel/core': 7.28.3+ '@babel/helper-compilation-targets': 7.27.2+ '@babel/helper-plugin-utils': 7.27.1+ debug: 4.4.1lodash.debounce: 4.0.8resolve: 1.22.8transitivePeerDependencies:@@ -13522,21 +15923,37 @@ snapshots:'@babel/[email protected]':dependencies:- '@babel/template': 7.25.9- '@babel/types': 7.26.3+ '@babel/template': 7.27.2+ '@babel/types': 7.28.2++ '@babel/[email protected]': {}'@babel/[email protected]':dependencies:- '@babel/types': 7.26.3+ '@babel/types': 7.28.2'@babel/[email protected]':dependencies:- '@babel/types': 7.26.3+ '@babel/types': 7.28.2++ '@babel/[email protected]':+ dependencies:+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2+ transitivePeerDependencies:+ - supports-color'@babel/[email protected]':dependencies:- '@babel/traverse': 7.26.4- '@babel/types': 7.26.3+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2transitivePeerDependencies:- supports-color@@ -13544,770 +15961,849 @@ snapshots:dependencies:'@babel/core': 7.24.5'@babel/helper-module-imports': 7.25.9- '@babel/helper-validator-identifier': 7.25.9- '@babel/traverse': 7.26.4+ '@babel/helper-validator-identifier': 7.27.1+ '@babel/traverse': 7.28.3+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/helper-module-imports': 7.27.1+ '@babel/helper-validator-identifier': 7.27.1+ '@babel/traverse': 7.28.3transitivePeerDependencies:- supports-color'@babel/[email protected]':dependencies:- '@babel/types': 7.26.3+ '@babel/types': 7.28.2++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.28.2- '@babel/[email protected]': {}+ '@babel/[email protected]': {}- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-annotate-as-pure': 7.22.5'@babel/helper-environment-visitor': 7.22.20'@babel/helper-wrap-function': 7.22.20- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-environment-visitor': 7.22.20'@babel/helper-member-expression-to-functions': 7.23.0'@babel/helper-optimise-call-expression': 7.22.5+ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/helper-member-expression-to-functions': 7.27.1+ '@babel/helper-optimise-call-expression': 7.27.1+ '@babel/traverse': 7.28.3+ transitivePeerDependencies:+ - supports-color+'@babel/[email protected]':dependencies:- '@babel/types': 7.26.3+ '@babel/types': 7.28.2'@babel/[email protected]':dependencies:- '@babel/types': 7.26.3+ '@babel/types': 7.28.2- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/types': 7.26.3-- '@babel/[email protected]': {}+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2+ transitivePeerDependencies:+ - supports-color- '@babel/[email protected]': {}+ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.28.2- '@babel/[email protected]': {}+ '@babel/[email protected]': {}- '@babel/[email protected]': {}+ '@babel/[email protected]': {}'@babel/[email protected]': {}+ '@babel/[email protected]': {}+'@babel/[email protected]':dependencies:'@babel/helper-function-name': 7.23.0- '@babel/template': 7.25.9- '@babel/types': 7.26.3+ '@babel/template': 7.27.2+ '@babel/types': 7.28.2'@babel/[email protected]':dependencies:- '@babel/template': 7.25.9- '@babel/types': 7.26.3+ '@babel/template': 7.27.2+ '@babel/types': 7.28.2++ '@babel/[email protected]':+ dependencies:+ '@babel/template': 7.27.2+ '@babel/types': 7.28.2'@babel/[email protected]':dependencies:- '@babel/helper-validator-identifier': 7.22.20+ '@babel/helper-validator-identifier': 7.27.1chalk: 2.4.2js-tokens: 4.0.0'@babel/[email protected]':dependencies:- '@babel/types': 7.23.9+ '@babel/types': 7.28.2'@babel/[email protected]':dependencies:- '@babel/types': 7.26.3+ '@babel/types': 7.28.2- '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3(@babel/[email protected])':+ '@babel/[email protected]':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/types': 7.28.2- '@babel/[email protected](@babel/[email protected])':+ '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3(@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-skip-transparent-expression-wrappers': 7.22.5- '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1+ '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3'@babel/helper-environment-visitor': 7.22.20- '@babel/helper-plugin-utils': 7.22.5+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-environment-visitor': 7.22.20- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])- '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])+ '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-decorators': 7.23.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-create-class-features-plugin': 7.28.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-decorators': 7.23.3(@babel/[email protected])+ transitivePeerDependencies:+ - supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-export-default-from': 7.23.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-export-default-from': 7.23.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/compat-data': 7.23.5- '@babel/core': 7.24.5- '@babel/helper-compilation-targets': 7.23.6- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])- '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-compilation-targets': 7.27.2+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])+ '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1'@babel/helper-skip-transparent-expression-wrappers': 7.22.5- '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])- '@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/[email protected])':+ '@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-environment-visitor': 7.22.20- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])- '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])+ '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-module-imports': 7.25.9- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-create-class-features-plugin': 7.28.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ transitivePeerDependencies:+ - supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-create-class-features-plugin': 7.28.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/[email protected])+ transitivePeerDependencies:+ - supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-annotate-as-pure': 7.22.5- '@babel/helper-compilation-targets': 7.23.6+ '@babel/helper-compilation-targets': 7.27.2'@babel/helper-environment-visitor': 7.22.20'@babel/helper-function-name': 7.23.0- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])'@babel/helper-split-export-declaration': 7.22.6globals: 11.12.0- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/template': 7.25.9+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/template': 7.27.2- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15- '@babel/helper-plugin-utils': 7.22.5+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-skip-transparent-expression-wrappers': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1+ transitivePeerDependencies:+ - supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-compilation-targets': 7.23.6+ '@babel/core': 7.28.3+ '@babel/helper-compilation-targets': 7.27.2'@babel/helper-function-name': 7.23.0- '@babel/helper-plugin-utils': 7.22.5+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-json-strings': 7.8.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-json-strings': 7.8.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-module-transforms': 7.26.0(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-module-transforms': 7.28.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-module-transforms': 7.26.0(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-module-transforms': 7.28.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1'@babel/helper-simple-access': 7.22.5transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3+ '@babel/helper-module-transforms': 7.28.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3'@babel/helper-hoist-variables': 7.22.5- '@babel/helper-module-transforms': 7.26.0(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-validator-identifier': 7.25.9+ '@babel/helper-module-transforms': 7.28.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-validator-identifier': 7.27.1transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-module-transforms': 7.26.0(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-module-transforms': 7.28.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/compat-data': 7.23.5- '@babel/core': 7.24.5- '@babel/helper-compilation-targets': 7.23.6- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])- '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])+ '@babel/compat-data': 7.28.0+ '@babel/core': 7.28.3+ '@babel/helper-compilation-targets': 7.27.2+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])+ '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-replace-supers': 7.22.20(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-replace-supers': 7.27.1(@babel/[email protected])+ transitivePeerDependencies:+ - supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-skip-transparent-expression-wrappers': 7.22.5- '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1+ '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])+ transitivePeerDependencies:+ - supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-annotate-as-pure': 7.22.5- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/[email protected])+ '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/plugin-transform-react-jsx': 7.23.4(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/plugin-transform-react-jsx': 7.23.4(@babel/[email protected])transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3'@babel/helper-annotate-as-pure': 7.22.5'@babel/helper-module-imports': 7.25.9- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])- '@babel/types': 7.26.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-jsx': 7.27.1(@babel/[email protected])+ '@babel/types': 7.28.2transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-annotate-as-pure': 7.22.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-annotate-as-pure': 7.27.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1regenerator-transform: 0.15.2- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-module-imports': 7.25.9- '@babel/helper-plugin-utils': 7.22.5- babel-plugin-polyfill-corejs2: 0.4.8(@babel/[email protected])- babel-plugin-polyfill-corejs3: 0.9.0(@babel/[email protected])- babel-plugin-polyfill-regenerator: 0.5.5(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ babel-plugin-polyfill-corejs2: 0.4.8(@babel/[email protected])+ babel-plugin-polyfill-corejs3: 0.9.0(@babel/[email protected])+ babel-plugin-polyfill-regenerator: 0.5.5(@babel/[email protected])semver: 6.3.1transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1'@babel/helper-skip-transparent-expression-wrappers': 7.22.5- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3'@babel/helper-annotate-as-pure': 7.22.5- '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5- '@babel/plugin-syntax-typescript': 7.23.3(@babel/[email protected])-- '@babel/[email protected](@babel/[email protected])':- dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5-- '@babel/[email protected](@babel/[email protected])':- dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5-- '@babel/[email protected](@babel/[email protected])':- dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5-- '@babel/[email protected](@babel/[email protected])':- dependencies:- '@babel/core': 7.24.5- '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])- '@babel/helper-plugin-utils': 7.22.5+ '@babel/helper-create-class-features-plugin': 7.23.10(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-syntax-typescript': 7.27.1(@babel/[email protected])++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/helper-annotate-as-pure': 7.27.3+ '@babel/helper-create-class-features-plugin': 7.28.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1+ '@babel/plugin-syntax-typescript': 7.27.1(@babel/[email protected])+ transitivePeerDependencies:+ - supports-color- '@babel/[email protected](@babel/[email protected])':- dependencies:- '@babel/compat-data': 7.23.5- '@babel/core': 7.24.5- '@babel/helper-compilation-targets': 7.23.6- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-validator-option': 7.23.5- '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.23.3(@babel/[email protected])- '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.23.3(@babel/[email protected])- '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.23.7(@babel/[email protected])- '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/[email protected])- '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])- '@babel/plugin-syntax-class-properties': 7.12.13(@babel/[email protected])- '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/[email protected])- '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])- '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/[email protected])- '@babel/plugin-syntax-import-assertions': 7.23.3(@babel/[email protected])- '@babel/plugin-syntax-import-attributes': 7.23.3(@babel/[email protected])- '@babel/plugin-syntax-import-meta': 7.10.4(@babel/[email protected])- '@babel/plugin-syntax-json-strings': 7.8.3(@babel/[email protected])- '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/[email protected])- '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])- '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])- '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])- '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])- '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])- '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/[email protected])- '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/[email protected])- '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/[email protected])- '@babel/plugin-transform-arrow-functions': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-async-generator-functions': 7.23.9(@babel/[email protected])- '@babel/plugin-transform-async-to-generator': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-block-scoped-functions': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-block-scoping': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-class-properties': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-class-static-block': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-classes': 7.23.8(@babel/[email protected])- '@babel/plugin-transform-computed-properties': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-destructuring': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-dotall-regex': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-duplicate-keys': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-dynamic-import': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-exponentiation-operator': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-export-namespace-from': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-for-of': 7.23.6(@babel/[email protected])- '@babel/plugin-transform-function-name': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-json-strings': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-literals': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-logical-assignment-operators': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-member-expression-literals': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-modules-amd': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-modules-systemjs': 7.23.9(@babel/[email protected])- '@babel/plugin-transform-modules-umd': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/[email protected])- '@babel/plugin-transform-new-target': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-numeric-separator': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-object-rest-spread': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-object-super': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-optional-catch-binding': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-private-methods': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-private-property-in-object': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-property-literals': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-regenerator': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-reserved-words': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-shorthand-properties': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-spread': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-sticky-regex': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-template-literals': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-typeof-symbol': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-unicode-escapes': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-unicode-property-regex': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-unicode-regex': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-unicode-sets-regex': 7.23.3(@babel/[email protected])- '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/[email protected])- babel-plugin-polyfill-corejs2: 0.4.8(@babel/[email protected])- babel-plugin-polyfill-corejs3: 0.9.0(@babel/[email protected])- babel-plugin-polyfill-regenerator: 0.5.5(@babel/[email protected])+ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/compat-data': 7.28.0+ '@babel/core': 7.28.3+ '@babel/helper-compilation-targets': 7.27.2+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-validator-option': 7.27.1+ '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.23.3(@babel/[email protected])+ '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.23.3(@babel/[email protected])+ '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.23.7(@babel/[email protected])+ '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/[email protected])+ '@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])+ '@babel/plugin-syntax-class-properties': 7.12.13(@babel/[email protected])+ '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/[email protected])+ '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-import-assertions': 7.23.3(@babel/[email protected])+ '@babel/plugin-syntax-import-attributes': 7.23.3(@babel/[email protected])+ '@babel/plugin-syntax-import-meta': 7.10.4(@babel/[email protected])+ '@babel/plugin-syntax-json-strings': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/[email protected])+ '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])+ '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/[email protected])+ '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/[email protected])+ '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/[email protected])+ '@babel/plugin-transform-arrow-functions': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-async-generator-functions': 7.23.9(@babel/[email protected])+ '@babel/plugin-transform-async-to-generator': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-block-scoped-functions': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-block-scoping': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-class-properties': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-class-static-block': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-classes': 7.23.8(@babel/[email protected])+ '@babel/plugin-transform-computed-properties': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-destructuring': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-dotall-regex': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-duplicate-keys': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-dynamic-import': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-exponentiation-operator': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-export-namespace-from': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-for-of': 7.23.6(@babel/[email protected])+ '@babel/plugin-transform-function-name': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-json-strings': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-literals': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-logical-assignment-operators': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-member-expression-literals': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-modules-amd': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-modules-systemjs': 7.23.9(@babel/[email protected])+ '@babel/plugin-transform-modules-umd': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/[email protected])+ '@babel/plugin-transform-new-target': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-numeric-separator': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-object-rest-spread': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-object-super': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-optional-catch-binding': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-private-methods': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-private-property-in-object': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-property-literals': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-regenerator': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-reserved-words': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-shorthand-properties': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-spread': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-sticky-regex': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-template-literals': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-typeof-symbol': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-unicode-escapes': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-unicode-property-regex': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-unicode-regex': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-unicode-sets-regex': 7.23.3(@babel/[email protected])+ '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/[email protected])+ babel-plugin-polyfill-corejs2: 0.4.8(@babel/[email protected])+ babel-plugin-polyfill-corejs3: 0.9.0(@babel/[email protected])+ babel-plugin-polyfill-regenerator: 0.5.5(@babel/[email protected])core-js-compat: 3.36.0semver: 6.3.1transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1'@babel/helper-validator-option': 7.23.5- '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/[email protected])- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/types': 7.26.3+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/types': 7.28.2esutils: 2.0.3- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-validator-option': 7.23.5- '@babel/plugin-transform-react-display-name': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-react-jsx': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-react-jsx-development': 7.22.5(@babel/[email protected])- '@babel/plugin-transform-react-pure-annotations': 7.23.3(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-validator-option': 7.27.1+ '@babel/plugin-transform-react-display-name': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-react-jsx': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-react-jsx-development': 7.22.5(@babel/[email protected])+ '@babel/plugin-transform-react-pure-annotations': 7.23.3(@babel/[email protected])transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5- '@babel/helper-plugin-utils': 7.22.5- '@babel/helper-validator-option': 7.23.5- '@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-typescript': 7.23.6(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-validator-option': 7.27.1+ '@babel/plugin-syntax-jsx': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-typescript': 7.28.0(@babel/[email protected])transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3clone-deep: 4.0.1find-cache-dir: 2.1.0make-dir: 2.1.0@@ -14320,34 +16816,28 @@ snapshots:dependencies:regenerator-runtime: 0.14.1- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/code-frame': 7.26.2- '@babel/parser': 7.26.3- '@babel/types': 7.26.3+ '@babel/code-frame': 7.27.1+ '@babel/parser': 7.28.3+ '@babel/types': 7.28.2- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/code-frame': 7.26.2- '@babel/generator': 7.26.3- '@babel/parser': 7.26.3- '@babel/template': 7.25.9- '@babel/types': 7.26.3- debug: 4.4.0- globals: 11.12.0+ '@babel/code-frame': 7.27.1+ '@babel/generator': 7.28.3+ '@babel/helper-globals': 7.28.0+ '@babel/parser': 7.28.3+ '@babel/template': 7.27.2+ '@babel/types': 7.28.2+ debug: 4.4.1transitivePeerDependencies:- supports-color- '@babel/[email protected]':- dependencies:- '@babel/helper-string-parser': 7.23.4- '@babel/helper-validator-identifier': 7.22.20- to-fast-properties: 2.0.0-- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/helper-string-parser': 7.25.9- '@babel/helper-validator-identifier': 7.25.9+ '@babel/helper-string-parser': 7.27.1+ '@babel/helper-validator-identifier': 7.27.1'@biomejs/[email protected]':optionalDependencies:@@ -14360,30 +16850,65 @@ snapshots:'@biomejs/cli-win32-arm64': 1.9.1'@biomejs/cli-win32-x64': 1.9.1+ '@biomejs/[email protected]':+ optionalDependencies:+ '@biomejs/cli-darwin-arm64': 1.9.4+ '@biomejs/cli-darwin-x64': 1.9.4+ '@biomejs/cli-linux-arm64': 1.9.4+ '@biomejs/cli-linux-arm64-musl': 1.9.4+ '@biomejs/cli-linux-x64': 1.9.4+ '@biomejs/cli-linux-x64-musl': 1.9.4+ '@biomejs/cli-win32-arm64': 1.9.4+ '@biomejs/cli-win32-x64': 1.9.4+'@biomejs/[email protected]':optional: true+ '@biomejs/[email protected]':+ optional: true+'@biomejs/[email protected]':optional: true+ '@biomejs/[email protected]':+ optional: true+'@biomejs/[email protected]':optional: true+ '@biomejs/[email protected]':+ optional: true+'@biomejs/[email protected]':optional: true+ '@biomejs/[email protected]':+ optional: true+'@biomejs/[email protected]':optional: true+ '@biomejs/[email protected]':+ optional: true+'@biomejs/[email protected]':optional: true+ '@biomejs/[email protected]':+ optional: true+'@biomejs/[email protected]':optional: true+ '@biomejs/[email protected]':+ optional: true+'@biomejs/[email protected]':optional: true+ '@biomejs/[email protected]':+ optional: true+'@bull-board/[email protected](@bull-board/[email protected])':dependencies:'@bull-board/ui': 5.21.0@@ -14402,8 +16927,6 @@ snapshots:dependencies:'@bull-board/api': 5.21.0(@bull-board/[email protected])- '@canvas/[email protected]': {}-'@capsizecss/[email protected]':dependencies:blob-to-buffer: 1.2.9@@ -14418,37 +16941,105 @@ snapshots:dependencies:'@clickhouse/client-common': 1.2.0+ '@cloudflare/[email protected]':+ dependencies:+ mime: 3.0.0++ dependencies:+ unenv: 2.0.0-rc.21+ optionalDependencies:+ workerd: 1.20251008.0++ '@cloudflare/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])':+ dependencies:+ '@cloudflare/unenv-preset': 2.7.7([email protected])([email protected])+ '@remix-run/node-fetch-server': 0.8.1+ get-port: 7.1.0+ miniflare: 4.20251008.0+ picocolors: 1.1.1+ tinyglobby: 0.2.14+ unenv: 2.0.0-rc.21+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ wrangler: 4.42.2+ ws: 8.18.0+ transitivePeerDependencies:+ - bufferutil+ - utf-8-validate+ - workerd++ '@cloudflare/[email protected]':+ optional: true++ '@cloudflare/[email protected]':+ optional: true++ '@cloudflare/[email protected]':+ optional: true++ '@cloudflare/[email protected]':+ optional: true++ '@cloudflare/[email protected]':+ optional: true+'@colors/[email protected]': {}+ '@cspotcode/[email protected]':+ dependencies:+ '@jridgewell/trace-mapping': 0.3.9++ '@csstools/[email protected]': {}++ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':+ dependencies:+ '@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])+ '@csstools/css-tokenizer': 3.0.4++ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':+ dependencies:+ '@csstools/color-helpers': 5.1.0+ '@csstools/css-calc': 2.1.4(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])+ '@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])+ '@csstools/css-tokenizer': 3.0.4++ '@csstools/[email protected](@csstools/[email protected])':+ dependencies:+ '@csstools/css-tokenizer': 3.0.4++ '@csstools/[email protected]': {}+'@dabh/[email protected]':dependencies:colorspace: 1.1.4enabled: 2.0.0kuler: 2.0.0- '@dnd-kit/[email protected]([email protected])':+ '@date-fns/[email protected]': {}++ '@dnd-kit/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1tslib: 2.7.0dependencies:- '@dnd-kit/accessibility': 3.1.1([email protected])- '@dnd-kit/utilities': 3.2.2([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@dnd-kit/accessibility': 3.1.1([email protected])+ '@dnd-kit/utilities': 3.2.2([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])tslib: 2.7.0- '@dnd-kit/[email protected](@dnd-kit/[email protected]([email protected]([email protected]))([email protected]))([email protected])':+ '@dnd-kit/[email protected](@dnd-kit/[email protected]([email protected]([email protected]))([email protected]))([email protected])':dependencies:- '@dnd-kit/utilities': 3.2.2([email protected])- react: 18.2.0+ '@dnd-kit/utilities': 3.2.2([email protected])+ react: 19.1.1tslib: 2.7.0- '@dnd-kit/[email protected]([email protected])':+ '@dnd-kit/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1tslib: 2.7.0'@emnapi/[email protected]':@@ -14457,16 +17048,32 @@ snapshots:tslib: 2.7.0optional: true+ '@emnapi/[email protected]':+ dependencies:+ '@emnapi/wasi-threads': 1.1.0+ tslib: 2.7.0+ optional: true+'@emnapi/[email protected]':dependencies:tslib: 2.7.0optional: true+ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.7.0+ optional: true+'@emnapi/[email protected]':dependencies:tslib: 2.7.0optional: true+ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.7.0+ optional: true+'@emotion/[email protected]':dependencies:'@emotion/memoize': 0.7.4@@ -14487,6 +17094,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14499,6 +17112,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14511,6 +17130,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14523,6 +17148,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14535,6 +17166,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14547,6 +17184,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14559,6 +17202,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14571,6 +17220,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14583,6 +17238,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14595,6 +17256,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14607,6 +17274,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14619,6 +17292,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14631,6 +17310,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14643,6 +17328,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14655,6 +17346,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14667,6 +17364,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14679,9 +17382,21 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14694,12 +17409,24 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14712,6 +17439,15 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14724,6 +17460,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14736,6 +17478,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14748,6 +17496,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -14760,6 +17514,12 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@expo/[email protected]':dependencies:uuid: 8.3.2@@ -14767,7 +17527,7 @@ snapshots:mv: 2.1.1safe-json-stringify: 1.2.0- '@expo/[email protected](@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))([email protected])':+ '@expo/[email protected](@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))([email protected])':dependencies:'@babel/runtime': 7.23.9'@expo/code-signing-certificates': 0.0.5@@ -14777,7 +17537,7 @@ snapshots:'@expo/env': 0.2.1'@expo/image-utils': 0.4.1'@expo/json-file': 8.3.0- '@expo/metro-config': 0.17.4(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))+ '@expo/metro-config': 0.17.4(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))'@expo/osascript': 2.1.0'@expo/package-manager': 1.4.2'@expo/plist': 0.1.0@@ -14796,7 +17556,7 @@ snapshots:chalk: 4.1.2ci-info: 3.9.0connect: 3.7.0- debug: 4.4.0+ debug: 4.4.1env-editor: 0.4.2find-yarn-workspace-root: 2.0.0form-data: 3.0.1@@ -14831,7 +17591,7 @@ snapshots:resolve: 1.22.8resolve-from: 5.0.0resolve.exports: 2.0.2- semver: 7.7.1+ semver: 7.7.2send: 0.18.0slugify: 1.6.6source-map-support: 0.5.21@@ -14844,7 +17604,7 @@ snapshots:text-table: 0.2.0url-join: 4.0.0wrap-ansi: 7.0.0- ws: 8.17.1+ ws: 8.18.3transitivePeerDependencies:- '@react-native/babel-preset'- bluebird@@ -14868,12 +17628,12 @@ snapshots:'@expo/sdk-runtime-versions': 1.0.0'@react-native/normalize-color': 2.1.0chalk: 4.1.2- debug: 4.4.0+ debug: 4.4.1find-up: 5.0.0getenv: 1.0.0glob: 7.1.6resolve-from: 5.0.0- semver: 7.7.1+ semver: 7.7.2slash: 3.0.0slugify: 1.6.6xcode: 3.0.1@@ -14920,7 +17680,7 @@ snapshots:'@expo/[email protected]':dependencies:chalk: 4.1.2- debug: 4.4.0+ debug: 4.4.1dotenv: 16.0.3dotenv-expand: 10.0.0getenv: 1.0.0@@ -14931,7 +17691,7 @@ snapshots:dependencies:'@expo/spawn-async': 1.7.2chalk: 4.1.2- debug: 4.4.0+ debug: 4.4.1find-up: 5.0.0minimatch: 3.1.2p-limit: 3.1.0@@ -14960,20 +17720,20 @@ snapshots:json5: 2.2.3write-file-atomic: 2.4.3- '@expo/[email protected](@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))':+ '@expo/[email protected](@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))':dependencies:- '@babel/core': 7.24.5- '@babel/generator': 7.26.3- '@babel/parser': 7.26.3- '@babel/types': 7.26.3+ '@babel/core': 7.28.3+ '@babel/generator': 7.28.3+ '@babel/parser': 7.28.3+ '@babel/types': 7.28.2'@expo/config': 8.5.4'@expo/env': 0.2.1'@expo/json-file': 8.3.0'@expo/spawn-async': 1.7.2- '@react-native/babel-preset': 0.73.21(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))- babel-preset-fbjs: 3.4.0(@babel/[email protected])+ '@react-native/babel-preset': 0.73.21(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))+ babel-preset-fbjs: 3.4.0(@babel/[email protected])chalk: 4.1.2- debug: 4.4.0+ debug: 4.4.1find-yarn-workspace-root: 2.0.0fs-extra: 9.1.0getenv: 1.0.0@@ -15019,7 +17779,7 @@ snapshots:'@expo/config-types': 50.0.0'@expo/image-utils': 0.4.1'@expo/json-file': 8.3.0- debug: 4.4.0+ debug: 4.4.1expo-modules-autolinking: 1.10.3fs-extra: 9.1.0resolve-from: 5.0.0@@ -15062,6 +17822,8 @@ snapshots:'@faker-js/[email protected]': {}+ '@faker-js/[email protected]': {}+'@fastify/[email protected]': {}'@fastify/[email protected]':@@ -15132,17 +17894,11 @@ snapshots:'@floating-ui/core': 1.6.0'@floating-ui/utils': 0.2.1- dependencies:- '@floating-ui/dom': 1.6.3- react: 18.2.0- react-dom: 18.2.0([email protected])-dependencies:'@floating-ui/dom': 1.6.3- react: 18.3.1- react-dom: 18.3.1([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])'@floating-ui/[email protected]': {}@@ -15174,9 +17930,9 @@ snapshots:dependencies:'@hapi/hoek': 9.3.0dependencies:- react-hook-form: 7.50.1([email protected])+ react-hook-form: 7.50.1([email protected])'@hyperdx/[email protected](@opentelemetry/[email protected])':dependencies:@@ -15320,7 +18076,7 @@ snapshots:'@inquirer/[email protected]': {}- '@ioredis/[email protected]': {}+ '@ioredis/[email protected]': {}'@isaacs/[email protected]':dependencies:@@ -15345,14 +18101,14 @@ snapshots:dependencies:'@jest/fake-timers': 29.7.0'@jest/types': 29.6.3- '@types/node': 20.14.8+ '@types/node': 24.7.1jest-mock: 29.7.0'@jest/[email protected]':dependencies:'@jest/types': 29.6.3'@sinonjs/fake-timers': 10.3.0- '@types/node': 20.14.8+ '@types/node': 24.7.1jest-message-util: 29.7.0jest-mock: 29.7.0jest-util: 29.7.0@@ -15365,7 +18121,7 @@ snapshots:dependencies:'@types/istanbul-lib-coverage': 2.0.6'@types/istanbul-reports': 3.0.4- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/yargs': 15.0.19chalk: 4.1.2@@ -15374,10 +18130,15 @@ snapshots:'@jest/schemas': 29.6.3'@types/istanbul-lib-coverage': 2.0.6'@types/istanbul-reports': 3.0.4- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/yargs': 17.0.32chalk: 4.1.2+ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/trace-mapping': 0.3.30+'@jridgewell/[email protected]':dependencies:'@jridgewell/set-array': 1.1.2@@ -15388,7 +18149,12 @@ snapshots:dependencies:'@jridgewell/set-array': 1.2.1'@jridgewell/sourcemap-codec': 1.5.0- '@jridgewell/trace-mapping': 0.3.25+ '@jridgewell/trace-mapping': 0.3.30++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/gen-mapping': 0.3.13+ '@jridgewell/trace-mapping': 0.3.30'@jridgewell/[email protected]': {}@@ -15398,8 +18164,8 @@ snapshots:'@jridgewell/[email protected]':dependencies:- '@jridgewell/gen-mapping': 0.3.5- '@jridgewell/trace-mapping': 0.3.25+ '@jridgewell/gen-mapping': 0.3.13+ '@jridgewell/trace-mapping': 0.3.30'@jridgewell/[email protected]': {}@@ -15415,30 +18181,25 @@ snapshots:'@jridgewell/resolve-uri': 3.1.2'@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.5.0++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.5.0+'@js-sdsl/[email protected]': {}'@lukeed/[email protected]': {}- '@mapbox/[email protected]':- dependencies:- detect-libc: 2.0.3- https-proxy-agent: 5.0.1- make-dir: 3.1.0- node-fetch: 2.7.0- nopt: 5.0.0- npmlog: 5.0.1- rimraf: 3.0.2- semver: 7.6.3- tar: 6.2.0- transitivePeerDependencies:- - encoding- - supports-color-'@maxmind/[email protected]':dependencies:maxmind: 4.3.25- '@mdx-js/[email protected]([email protected])':+ '@mdx-js/[email protected]([email protected])':dependencies:'@types/estree': 1.0.5'@types/estree-jsx': 1.0.5@@ -15452,12 +18213,12 @@ snapshots:hast-util-to-jsx-runtime: 2.3.2markdown-extensions: 2.0.0recma-build-jsx: 1.0.0- recma-jsx: 1.0.0([email protected])+ recma-jsx: 1.0.0([email protected])recma-stringify: 1.0.0rehype-recma: 1.0.0remark-mdx: 3.1.0remark-parse: 11.0.0- remark-rehype: 11.1.1+ remark-rehype: 11.1.2source-map: 0.7.4unified: 11.0.5unist-util-position-from-estree: 2.0.0@@ -15493,6 +18254,13 @@ snapshots:'@tybys/wasm-util': 0.9.0optional: true+ '@napi-rs/[email protected]':+ dependencies:+ '@emnapi/core': 1.5.0+ '@emnapi/runtime': 1.5.0+ '@tybys/wasm-util': 0.10.1+ optional: true+'@next/[email protected]': {}'@next/[email protected]': {}@@ -15650,54 +18418,64 @@ snapshots:'@npmcli/[email protected]':dependencies:'@gar/promisify': 1.1.3- semver: 7.7.1+ semver: 7.7.2'@npmcli/[email protected]':dependencies:mkdirp: 1.0.4rimraf: 3.0.2dependencies:esm-env: 1.2.2number-flow: 0.3.10- react: 18.3.1- react-dom: 18.3.1([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])'@one-ini/[email protected]': {}- '@openpanel/[email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':+ '@oozcitak/[email protected]':dependencies:- '@openpanel/web': 1.0.0- next: 14.2.1(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@oozcitak/infra': 1.0.8+ '@oozcitak/url': 1.0.4+ '@oozcitak/util': 8.3.8- '@openpanel/[email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':+ '@oozcitak/[email protected]':dependencies:- '@openpanel/web': 1.0.1- next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@oozcitak/util': 8.3.8- '@openpanel/[email protected]': {}+ '@oozcitak/[email protected]':+ dependencies:+ '@oozcitak/infra': 1.0.8+ '@oozcitak/util': 8.3.8- '@openpanel/[email protected]':+ '@oozcitak/[email protected]': {}++ '@openpanel/[email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':dependencies:- '@openpanel/sdk': 1.0.0+ '@openpanel/web': 1.0.1+ next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])++ '@openpanel/[email protected]': {}'@openpanel/[email protected]':dependencies:'@openpanel/sdk': 1.0.0- '@openstatus/[email protected]([email protected])':+ '@openstatus/[email protected]([email protected])':dependencies:- react: 18.3.1+ react: 19.1.1'@opentelemetry/[email protected]':dependencies:'@opentelemetry/api': 1.9.0+ '@opentelemetry/[email protected]':+ dependencies:+ '@opentelemetry/api': 1.9.0+'@opentelemetry/[email protected]': {}'@opentelemetry/[email protected]': {}@@ -15759,6 +18537,10 @@ snapshots:dependencies:'@opentelemetry/api': 1.8.0+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15769,6 +18551,16 @@ snapshots:'@opentelemetry/api': 1.8.0'@opentelemetry/semantic-conventions': 1.27.0+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/semantic-conventions': 1.27.0++ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/semantic-conventions': 1.28.0+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15844,6 +18636,15 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15892,6 +18693,16 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ '@types/connect': 3.4.38+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15900,6 +18711,13 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15912,7 +18730,7 @@ snapshots:'@opentelemetry/api': 1.8.0'@opentelemetry/instrumentation': 0.51.1(@opentelemetry/[email protected])'@opentelemetry/semantic-conventions': 1.27.0- semver: 7.7.1+ semver: 7.7.2transitivePeerDependencies:- supports-color@@ -15925,6 +18743,15 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15942,6 +18769,14 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15950,6 +18785,13 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15957,6 +18799,13 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15974,6 +18823,15 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15984,6 +18842,17 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.28.0+ forwarded-parse: 2.1.2+ semver: 7.7.2+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -15993,6 +18862,23 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/redis-common': 0.36.2+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color++ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16001,6 +18887,14 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16012,6 +18906,15 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16019,6 +18922,13 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16037,6 +18947,14 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16046,6 +18964,15 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16055,6 +18982,15 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ '@opentelemetry/sql-common': 0.40.1(@opentelemetry/[email protected])+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16064,6 +19000,15 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ '@types/mysql': 2.15.26+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16091,6 +19036,18 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ '@opentelemetry/sql-common': 0.40.1(@opentelemetry/[email protected])+ '@types/pg': 8.6.1+ '@types/pg-pool': 2.0.6+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16107,6 +19064,15 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/redis-common': 0.36.2+ '@opentelemetry/semantic-conventions': 1.36.0+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16157,6 +19123,23 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ '@types/tedious': 4.0.14+ transitivePeerDependencies:+ - supports-color++ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16185,6 +19168,18 @@ snapshots:transitivePeerDependencies:- supports-color+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/api-logs': 0.57.2+ '@types/shimmer': 1.2.0+ import-in-the-middle: 1.14.2+ require-in-the-middle: 7.4.0+ semver: 7.7.2+ shimmer: 1.2.1+ transitivePeerDependencies:+ - supports-color+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16285,6 +19280,12 @@ snapshots:'@opentelemetry/core': 1.26.0(@opentelemetry/[email protected])'@opentelemetry/semantic-conventions': 1.27.0+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.28.0+'@opentelemetry/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16338,6 +19339,13 @@ snapshots:'@opentelemetry/resources': 1.26.0(@opentelemetry/[email protected])'@opentelemetry/semantic-conventions': 1.27.0+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/resources': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.28.0+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0@@ -16346,17 +19354,26 @@ snapshots:'@opentelemetry/propagator-b3': 1.24.1(@opentelemetry/[email protected])'@opentelemetry/propagator-jaeger': 1.24.1(@opentelemetry/[email protected])'@opentelemetry/sdk-trace-base': 1.24.1(@opentelemetry/[email protected])- semver: 7.7.1+ semver: 7.7.2'@opentelemetry/[email protected]': {}'@opentelemetry/[email protected]': {}+ '@opentelemetry/[email protected]': {}++ '@opentelemetry/[email protected]': {}+'@opentelemetry/[email protected](@opentelemetry/[email protected])':dependencies:'@opentelemetry/api': 1.8.0'@opentelemetry/core': 1.26.0(@opentelemetry/[email protected])+ '@opentelemetry/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/core': 1.26.0(@opentelemetry/[email protected])+'@orama/[email protected]': {}'@oslojs/[email protected]':@@ -16378,26 +19395,52 @@ snapshots:dependencies:'@oslojs/encoding': 0.4.1- '@panva/[email protected]': {}+ '@oxc-project/[email protected]': {}'@pkgjs/[email protected]':optional: true- '@polar-sh/[email protected]([email protected])':+ '@polar-sh/[email protected]':dependencies:standardwebhooks: 1.0.0- zod: 3.24.2+ zod: 3.25.76++ '@poppinss/[email protected]':+ dependencies:+ kleur: 4.1.5++ '@poppinss/[email protected]':+ dependencies:+ '@poppinss/colors': 4.1.5+ '@sindresorhus/is': 7.0.2+ supports-color: 10.2.0- '@prisma/[email protected]([email protected])':+ '@poppinss/[email protected]': {}++ '@prisma/[email protected]([email protected]([email protected])([email protected]))([email protected])':optionalDependencies:- prisma: 5.9.1+ prisma: 6.14.0([email protected])([email protected])+ typescript: 5.9.3++ '@prisma/[email protected]([email protected])':+ dependencies:+ c12: 3.1.0([email protected])+ deepmerge-ts: 7.1.5+ effect: 3.16.12+ empathic: 2.0.0+ transitivePeerDependencies:+ - magicast'@prisma/[email protected]': {}'@prisma/[email protected]': {}+ '@prisma/[email protected]': {}+'@prisma/engines-version@5.9.0-32.23fdc5965b1e05fc54e5f26ed3de66776b93de64': {}+ '@prisma/engines-version@6.14.0-25.717184b7b35ea05dfa71a3236b7af656013e1e49': {}+'@prisma/[email protected]':dependencies:'@prisma/debug': 5.9.1@@ -16405,9 +19448,16 @@ snapshots:'@prisma/fetch-engine': 5.9.1'@prisma/get-platform': 5.9.1+ '@prisma/[email protected]':+ dependencies:+ '@prisma/debug': 6.14.0+ '@prisma/engines-version': 6.14.0-25.717184b7b35ea05dfa71a3236b7af656013e1e49+ '@prisma/fetch-engine': 6.14.0+ '@prisma/get-platform': 6.14.0++ '@prisma/[email protected](@prisma/[email protected]([email protected]([email protected])([email protected]))([email protected]))':dependencies:- '@prisma/client': 5.9.1([email protected])+ '@prisma/client': 6.14.0([email protected]([email protected])([email protected]))([email protected])'@prisma/[email protected]':dependencies:@@ -16415,6 +19465,12 @@ snapshots:'@prisma/engines-version': 5.9.0-32.23fdc5965b1e05fc54e5f26ed3de66776b93de64'@prisma/get-platform': 5.9.1+ '@prisma/[email protected]':+ dependencies:+ '@prisma/debug': 6.14.0+ '@prisma/engines-version': 6.14.0-25.717184b7b35ea05dfa71a3236b7af656013e1e49+ '@prisma/get-platform': 6.14.0+'@prisma/[email protected]':dependencies:'@prisma/debug': 5.20.0@@ -16423,7 +19479,16 @@ snapshots:dependencies:'@prisma/debug': 5.9.1- '@prisma/[email protected]': {}+ '@prisma/[email protected]':+ dependencies:+ '@prisma/debug': 6.14.0++ '@prisma/[email protected](@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ transitivePeerDependencies:+ - supports-color'@protobufjs/[email protected]': {}@@ -16448,12 +19513,14 @@ snapshots:'@protobufjs/[email protected]': {}- '@radix-ui/[email protected]':+ '@quansync/[email protected]':dependencies:- '@babel/runtime': 7.23.9+ quansync: 0.2.11'@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}+'@radix-ui/[email protected]':dependencies:'@babel/runtime': 7.23.9@@ -16466,1493 +19533,1467 @@ snapshots:'@radix-ui/[email protected]': {}- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/primitive': 1.0.1- '@radix-ui/react-collapsible': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([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]))([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/[email protected]': {}++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-collapsible': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-collection': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])- optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@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]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-collapsible': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@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]))([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])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@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-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-previous': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@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-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([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])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.0- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ optionalDependencies:+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@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]))([email protected])- '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected]([email protected])':+ '@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.9- react: 18.2.0-- dependencies:- '@babel/runtime': 7.23.9- react: 18.2.0- optionalDependencies:- '@types/react': 18.2.56+ react: 19.1.1dependencies:'@babel/runtime': 7.23.9- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.2.0+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11- '@radix-ui/[email protected]([email protected])':+ '@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.9- react: 18.2.0+ react: 19.1.1dependencies:'@babel/runtime': 7.23.9- react: 18.2.0+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- '@babel/runtime': 7.23.9- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11- '@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.9'@radix-ui/primitive': 1.0.0- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-context': 1.0.0([email protected])- '@radix-ui/react-dismissable-layer': 1.0.0([email protected]([email protected]))([email protected])- '@radix-ui/react-focus-guards': 1.0.0([email protected])- '@radix-ui/react-id': 1.0.0([email protected])- '@radix-ui/react-slot': 1.0.0([email protected])- '@radix-ui/react-use-controllable-state': 1.0.0([email protected])+ '@radix-ui/react-compose-refs': 1.0.0([email protected])+ '@radix-ui/react-context': 1.0.0([email protected])+ '@radix-ui/react-dismissable-layer': 1.0.0([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.0.0([email protected])+ '@radix-ui/react-id': 1.0.0([email protected])+ '@radix-ui/react-slot': 1.0.0([email protected])+ '@radix-ui/react-use-controllable-state': 1.0.0([email protected])aria-hidden: 1.2.3- react: 18.2.0- react-dom: 18.2.0([email protected])- react-remove-scroll: 2.5.4(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ react-remove-scroll: 2.5.4(@types/[email protected])([email protected])transitivePeerDependencies:- '@types/react'- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.9'@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]))([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]))([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]))([email protected])- '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-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]))(@types/[email protected])([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]))(@types/[email protected])([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]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([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])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])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ react-remove-scroll: 2.5.5(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@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]))([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]))([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]))([email protected])- '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([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])- aria-hidden: 1.2.3- react: 18.3.1- react-dom: 18.3.1([email protected])- react-remove-scroll: 2.5.5(@types/[email protected])([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.0- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-portal': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- aria-hidden: 1.2.3- react: 18.3.1- react-dom: 18.3.1([email protected])- react-remove-scroll: 2.6.0(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ react-remove-scroll: 2.6.0(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])dependencies:- '@babel/runtime': 7.23.9- react: 18.2.0+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:'@babel/runtime': 7.23.9'@radix-ui/primitive': 1.0.0- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-use-callback-ref': 1.0.0([email protected])- '@radix-ui/react-use-escape-keydown': 1.0.0([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@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]))([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])- react: 18.2.0- react-dom: 18.2.0([email protected])- optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@radix-ui/react-compose-refs': 1.0.0([email protected])+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])+ '@radix-ui/react-use-escape-keydown': 1.0.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.9'@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]))([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])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@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]))(@types/[email protected])([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])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.0- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-escape-keydown': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ optionalDependencies:+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-escape-keydown': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@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]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected]([email protected])':+ '@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.9- react: 18.2.0+ react: 19.1.1dependencies:'@babel/runtime': 7.23.9- react: 18.2.0+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- '@babel/runtime': 7.23.9- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-use-callback-ref': 1.0.0([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-compose-refs': 1.0.0([email protected])+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.9- '@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]))([email protected])- '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@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]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@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]))([email protected])- '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected]([email protected])':+ '@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-use-layout-effect': 1.0.0([email protected])- react: 18.2.0+ '@radix-ui/react-use-layout-effect': 1.0.0([email protected])+ react: 19.1.1dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0+ '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])- react: 18.3.1+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/primitive': 1.0.1- '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([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]))([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]))([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]))([email protected])- '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-roving-focus': 1.0.4(@types/[email protected])(@types/[email protected])([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])- 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])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.0- '@radix-ui/react-collection': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-visually-hidden': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-collection': 1.1.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.1.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@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]))([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]))([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]))([email protected])- '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([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])- 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])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.0- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-popper': 1.2.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-portal': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- aria-hidden: 1.2.3- react: 18.3.1- react-dom: 18.3.1([email protected])- react-remove-scroll: 2.6.0(@types/[email protected])([email protected])- optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-arrow': 1.0.3(@types/[email protected])(@types/[email protected])([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]))([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- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ react-remove-scroll: 2.6.0(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@radix-ui/react-arrow': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-rect': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])'@radix-ui/rect': 1.1.0- react: 18.3.1- react-dom: 18.3.1([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@radix-ui/react-arrow': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-rect': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])'@radix-ui/rect': 1.1.0- react: 18.3.1- react-dom: 18.3.1([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1-- dependencies:- '@babel/runtime': 7.23.9- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.1+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ optionalDependencies:+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ react: 19.1.1+ react-dom: 19.1.1([email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-compose-refs': 1.0.0([email protected])- '@radix-ui/react-use-layout-effect': 1.0.0([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-compose-refs': 1.0.0([email protected])+ '@radix-ui/react-use-layout-effect': 1.0.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-slot': 1.0.0([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-slot': 1.0.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@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]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@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-direction': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-roving-focus': 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-previous': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/primitive': 1.1.0+ '@radix-ui/react-collection': 1.1.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/primitive': 1.0.1- '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([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]))([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])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:+ '@radix-ui/number': 1.1.0'@radix-ui/primitive': 1.1.0- '@radix-ui/react-collection': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/number': 1.0.1- '@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-direction': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([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])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ aria-hidden: 1.2.6+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/number': 1.1.0- '@radix-ui/primitive': 1.1.0- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/number': 1.1.0'@radix-ui/primitive': 1.1.1- '@radix-ui/react-collection': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-collection': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected]([email protected])':+ '@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-compose-refs': 1.0.0([email protected])- react: 18.2.0+ '@radix-ui/react-compose-refs': 1.0.0([email protected])+ react: 19.1.1dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])- react: 18.3.1+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- react: 18.2.0+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12-- dependencies:- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- react: 18.3.1+ '@types/react': 19.1.11++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@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-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-previous': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/primitive': 1.1.0+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/primitive': 1.0.1- '@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-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-roving-focus': 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ optionalDependencies:+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ optionalDependencies:+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/primitive': 1.1.0- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-roving-focus': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/primitive': 1.0.1- '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([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]))([email protected])- '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([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]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ optionalDependencies:+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/primitive': 1.0.1- '@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-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-roving-focus': 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-toggle': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ react: 19.1.1- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/primitive': 1.0.1- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@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]))([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]))([email protected])- '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-visually-hidden': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.5(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-popper': 1.2.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-portal': 1.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-visually-hidden': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@types/react': 19.1.11- '@radix-ui/[email protected]([email protected])':+ '@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.9- react: 18.2.0+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])+ react: 19.1.1dependencies:'@babel/runtime': 7.23.9- react: 18.2.0+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- '@babel/runtime': 7.23.9- react: 18.3.1+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1+ optionalDependencies:+ '@types/react': 19.1.11- '@radix-ui/[email protected]([email protected])':+ '@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-use-callback-ref': 1.0.0([email protected])- react: 18.2.0+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])+ react: 19.1.1dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])- react: 18.3.1+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11- '@radix-ui/[email protected]([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-use-callback-ref': 1.0.0([email protected])- react: 18.2.0+ react: 19.1.1+ use-sync-external-store: 1.5.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.11+ '@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- optionalDependencies:- '@types/react': 18.2.56+ react: 19.1.1dependencies:'@babel/runtime': 7.23.9- '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11- '@radix-ui/[email protected]([email protected])':dependencies:- '@babel/runtime': 7.23.9- react: 18.2.0+ react: 19.1.1+ optionalDependencies:+ '@types/react': 19.1.11dependencies:- '@babel/runtime': 7.23.9- react: 18.2.0+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- '@babel/runtime': 7.23.9- react: 18.3.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.2.0+ '@radix-ui/rect': 1.1.0+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ '@radix-ui/rect': 1.1.1+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- '@babel/runtime': 7.23.9- react: 18.2.0+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.1optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/rect': 1.0.1- react: 18.2.0+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/rect': 1.1.0- react: 18.3.1+ '@radix-ui/react-primitive': 2.0.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])- react: 18.2.0- optionalDependencies:- '@types/react': 18.2.56-- dependencies:- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- react: 18.3.1- optionalDependencies:- '@types/react': 18.3.12-- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])- optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@radix-ui/[email protected]': {}- '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])- optionalDependencies:- '@types/react': 18.3.12- '@types/react-dom': 18.3.1+ '@radix-ui/[email protected]': {}- '@radix-ui/[email protected]':+ '@react-email/[email protected]([email protected])':dependencies:- '@babel/runtime': 7.23.9-- '@radix-ui/[email protected]': {}+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ prismjs: 1.30.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- prismjs: 1.29.0- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0-- dependencies:- '@react-email/body': 0.0.11([email protected])- '@react-email/button': 0.0.19([email protected])- '@react-email/code-block': 0.0.11([email protected])- '@react-email/code-inline': 0.0.5([email protected])- '@react-email/column': 0.0.13([email protected])- '@react-email/container': 0.0.15([email protected])- '@react-email/font': 0.0.9([email protected])- '@react-email/head': 0.0.12([email protected])- '@react-email/heading': 0.0.15([email protected])- '@react-email/hr': 0.0.11([email protected])- '@react-email/html': 0.0.11([email protected])- '@react-email/img': 0.0.11([email protected])- '@react-email/link': 0.0.12([email protected])- '@react-email/markdown': 0.0.14([email protected])- '@react-email/preview': 0.0.12([email protected])- '@react-email/row': 0.0.12([email protected])- '@react-email/section': 0.0.16([email protected])- '@react-email/tailwind': 1.0.3([email protected])- '@react-email/text': 0.0.11([email protected])- react: 18.2.0+ '@react-email/body': 0.1.0([email protected])+ '@react-email/button': 0.2.0([email protected])+ '@react-email/code-block': 0.1.0([email protected])+ '@react-email/code-inline': 0.0.5([email protected])+ '@react-email/column': 0.0.13([email protected])+ '@react-email/container': 0.0.15([email protected])+ '@react-email/font': 0.0.9([email protected])+ '@react-email/head': 0.0.12([email protected])+ '@react-email/heading': 0.0.15([email protected])+ '@react-email/hr': 0.0.11([email protected])+ '@react-email/html': 0.0.11([email protected])+ '@react-email/img': 0.0.11([email protected])+ '@react-email/link': 0.0.12([email protected])+ '@react-email/markdown': 0.0.15([email protected])+ '@react-email/preview': 0.0.13([email protected])+ '@react-email/row': 0.0.12([email protected])+ '@react-email/section': 0.0.16([email protected])+ '@react-email/tailwind': 1.2.2([email protected])+ '@react-email/text': 0.1.5([email protected])+ react: 19.1.1transitivePeerDependencies:- react-dom- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- md-to-react-email: 5.0.5([email protected])- react: 18.2.0+ md-to-react-email: 5.0.5([email protected])+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1dependencies:html-to-text: 9.0.5js-beautify: 1.15.1- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])react-promise-suspense: 0.3.4dependencies:html-to-text: 9.0.5- prettier: 3.3.3- react: 18.2.0- react-dom: 18.2.0([email protected])+ prettier: 3.6.2+ react: 19.1.1+ react-dom: 19.1.1([email protected])react-promise-suspense: 0.3.4- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1- '@react-email/[email protected]([email protected])':+ '@react-email/[email protected]([email protected])':dependencies:- react: 18.2.0+ react: 19.1.1'@react-native-community/[email protected]':dependencies:@@ -17993,7 +21034,7 @@ snapshots:hermes-profile-transformer: 0.0.6node-stream-zip: 1.15.0ora: 5.4.1- semver: 7.7.1+ semver: 7.7.2strip-ansi: 5.2.0wcwidth: 1.0.1yaml: 2.3.4@@ -18059,7 +21100,7 @@ snapshots:node-fetch: 2.7.0open: 6.4.0ora: 5.4.1- semver: 7.7.1+ semver: 7.7.2shell-quote: 1.8.1sudo-prompt: 9.2.1transitivePeerDependencies:@@ -18088,7 +21129,7 @@ snapshots:fs-extra: 8.1.0graceful-fs: 4.2.11prompts: 2.4.2- semver: 7.7.1+ semver: 7.7.2transitivePeerDependencies:- bufferutil- encoding@@ -18097,80 +21138,80 @@ snapshots:'@react-native/[email protected]': {}dependencies:- '@react-native/codegen': 0.73.3(@babel/[email protected](@babel/[email protected]))+ '@react-native/codegen': 0.73.3(@babel/[email protected](@babel/[email protected]))transitivePeerDependencies:- '@babel/preset-env'- supports-color- '@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))':- dependencies:- '@babel/core': 7.24.5- '@babel/plugin-proposal-async-generator-functions': 7.20.7(@babel/[email protected])- '@babel/plugin-proposal-class-properties': 7.18.6(@babel/[email protected])- '@babel/plugin-proposal-export-default-from': 7.23.3(@babel/[email protected])- '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6(@babel/[email protected])- '@babel/plugin-proposal-numeric-separator': 7.18.6(@babel/[email protected])- '@babel/plugin-proposal-object-rest-spread': 7.20.7(@babel/[email protected])- '@babel/plugin-proposal-optional-catch-binding': 7.18.6(@babel/[email protected])- '@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/[email protected])- '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])- '@babel/plugin-syntax-export-default-from': 7.23.3(@babel/[email protected])- '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])- '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])- '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])- '@babel/plugin-transform-arrow-functions': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-async-to-generator': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-block-scoping': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-classes': 7.23.8(@babel/[email protected])- '@babel/plugin-transform-computed-properties': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-destructuring': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-function-name': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-literals': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/[email protected])- '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-private-methods': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-private-property-in-object': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-react-display-name': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-react-jsx': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-runtime': 7.23.9(@babel/[email protected])- '@babel/plugin-transform-shorthand-properties': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-spread': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-sticky-regex': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-typescript': 7.23.6(@babel/[email protected])- '@babel/plugin-transform-unicode-regex': 7.23.3(@babel/[email protected])- '@babel/template': 7.25.9- '@react-native/babel-plugin-codegen': 0.73.4(@babel/[email protected](@babel/[email protected]))- babel-plugin-transform-flow-enums: 0.0.2(@babel/[email protected])+ '@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/plugin-proposal-async-generator-functions': 7.20.7(@babel/[email protected])+ '@babel/plugin-proposal-class-properties': 7.18.6(@babel/[email protected])+ '@babel/plugin-proposal-export-default-from': 7.23.3(@babel/[email protected])+ '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6(@babel/[email protected])+ '@babel/plugin-proposal-numeric-separator': 7.18.6(@babel/[email protected])+ '@babel/plugin-proposal-object-rest-spread': 7.20.7(@babel/[email protected])+ '@babel/plugin-proposal-optional-catch-binding': 7.18.6(@babel/[email protected])+ '@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/[email protected])+ '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-export-default-from': 7.23.3(@babel/[email protected])+ '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])+ '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])+ '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])+ '@babel/plugin-transform-arrow-functions': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-async-to-generator': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-block-scoping': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-classes': 7.23.8(@babel/[email protected])+ '@babel/plugin-transform-computed-properties': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-destructuring': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-function-name': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-literals': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/[email protected])+ '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-private-methods': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-private-property-in-object': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-react-display-name': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-react-jsx': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-runtime': 7.23.9(@babel/[email protected])+ '@babel/plugin-transform-shorthand-properties': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-spread': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-sticky-regex': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-typescript': 7.23.6(@babel/[email protected])+ '@babel/plugin-transform-unicode-regex': 7.23.3(@babel/[email protected])+ '@babel/template': 7.27.2+ '@react-native/babel-plugin-codegen': 0.73.4(@babel/[email protected](@babel/[email protected]))+ babel-plugin-transform-flow-enums: 0.0.2(@babel/[email protected])react-refresh: 0.14.0transitivePeerDependencies:- '@babel/preset-env'- supports-colordependencies:'@babel/parser': 7.26.3- '@babel/preset-env': 7.23.9(@babel/[email protected])+ '@babel/preset-env': 7.23.9(@babel/[email protected])flow-parser: 0.206.0glob: 7.2.3invariant: 2.2.4- jscodeshift: 0.14.0(@babel/[email protected](@babel/[email protected]))+ jscodeshift: 0.14.0(@babel/[email protected](@babel/[email protected]))mkdirp: 0.5.6nullthrows: 1.1.1transitivePeerDependencies:- supports-color- '@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))':+ '@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))':dependencies:'@react-native-community/cli-server-api': 12.3.6'@react-native-community/cli-tools': 12.3.6'@react-native/dev-middleware': 0.73.8- '@react-native/metro-babel-transformer': 0.73.15(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))+ '@react-native/metro-babel-transformer': 0.73.15(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))chalk: 4.1.2execa: 5.1.1metro: 0.80.6@@ -18211,10 +21252,10 @@ snapshots:'@react-native/[email protected]': {}- '@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))':+ '@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))':dependencies:- '@babel/core': 7.24.5- '@react-native/babel-preset': 0.73.21(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))+ '@babel/core': 7.28.3+ '@react-native/babel-preset': 0.73.21(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))hermes-parser: 0.15.0nullthrows: 1.1.1transitivePeerDependencies:@@ -18225,47 +21266,11 @@ snapshots:'@react-native/[email protected]': {}- '@react-native/[email protected]([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))':+ '@react-native/[email protected]([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))':dependencies:invariant: 2.2.4nullthrows: 1.1.1- react-native: 0.73.6(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected])- optional: true-- '@react-native/[email protected]([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))':- dependencies:- invariant: 2.2.4- nullthrows: 1.1.1- react-native: 0.73.6(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected])-- '@react-spring/[email protected]([email protected])':- dependencies:- '@react-spring/shared': 9.7.3([email protected])- '@react-spring/types': 9.7.3- react: 18.2.0-- '@react-spring/[email protected]([email protected])':- 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-- '@react-spring/[email protected]([email protected])':- dependencies:- '@react-spring/types': 9.7.3- react: 18.2.0-- '@react-spring/[email protected]': {}-- 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])+ react-native: 0.73.6(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected])'@redis/[email protected](@redis/[email protected])':dependencies:@@ -18293,23 +21298,77 @@ snapshots:dependencies:'@redis/client': 1.6.0- '@reduxjs/[email protected]([email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected]))([email protected])':+ '@reduxjs/[email protected]([email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected]))([email protected])':dependencies:- immer: 9.0.21- redux: 4.2.1- redux-thunk: 2.4.2([email protected])- reselect: 4.1.8+ '@standard-schema/spec': 1.0.0+ '@standard-schema/utils': 0.3.0+ immer: 10.1.1+ redux: 5.0.1+ redux-thunk: 3.1.0([email protected])+ reselect: 5.1.1optionalDependencies:- react: 18.2.0- react-redux: 8.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected])+ react: 19.1.1+ react-redux: 8.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected])++ '@remix-run/[email protected]': {}++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ dependencies:+ '@napi-rs/wasm-runtime': 1.0.7+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true- '@rollup/[email protected]([email protected])':+ '@rolldown/[email protected]': {}++ '@rolldown/[email protected]': {}++ '@rolldown/[email protected]': {}++ '@rollup/[email protected]([email protected])':dependencies:'@types/estree': 1.0.5estree-walker: 2.0.2picomatch: 4.0.2optionalDependencies:- rollup: 4.40.1+ rollup: 4.48.1'@rollup/[email protected]':optional: true@@ -18317,99 +21376,159 @@ snapshots:'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@rollup/[email protected]':optional: true'@rollup/[email protected]':optional: true+ '@rollup/[email protected]':+ optional: true+'@segment/[email protected]':dependencies:component-type: 1.2.2@@ -18420,19 +21539,126 @@ snapshots:domhandler: 5.0.3selderee: 0.11.0+ '@sentry-internal/[email protected]':+ dependencies:+ '@sentry/core': 9.46.0++ '@sentry-internal/[email protected]':+ dependencies:+ '@sentry/core': 9.46.0++ '@sentry-internal/[email protected]':+ dependencies:+ '@sentry-internal/replay': 9.46.0+ '@sentry/core': 9.46.0++ '@sentry-internal/[email protected]':+ dependencies:+ '@sentry-internal/browser-utils': 9.46.0+ '@sentry/core': 9.46.0++ '@sentry/[email protected]':+ dependencies:+ '@sentry-internal/browser-utils': 9.46.0+ '@sentry-internal/feedback': 9.46.0+ '@sentry-internal/replay': 9.46.0+ '@sentry-internal/replay-canvas': 9.46.0+ '@sentry/core': 9.46.0+'@sentry/[email protected]':dependencies:'@sentry/types': 8.30.0'@sentry/utils': 8.30.0+ '@sentry/[email protected]': {}++ '@sentry/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/context-async-hooks': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/resources': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/sdk-trace-base': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ '@sentry/core': 9.46.0+ '@sentry/opentelemetry': 9.46.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])+ import-in-the-middle: 1.14.2++ '@sentry/[email protected]':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/context-async-hooks': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-amqplib': 0.46.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-connect': 0.43.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-dataloader': 0.16.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-express': 0.47.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-fs': 0.19.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-generic-pool': 0.43.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-graphql': 0.47.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-hapi': 0.45.2(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-http': 0.57.2(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-ioredis': 0.47.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-kafkajs': 0.7.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-knex': 0.44.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-koa': 0.47.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-lru-memoizer': 0.44.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-mongodb': 0.52.0(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-mongoose': 0.46.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-mysql': 0.45.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-mysql2': 0.45.2(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-pg': 0.51.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-redis-4': 0.46.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-tedious': 0.18.1(@opentelemetry/[email protected])+ '@opentelemetry/instrumentation-undici': 0.10.1(@opentelemetry/[email protected])+ '@opentelemetry/resources': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/sdk-trace-base': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ '@prisma/instrumentation': 6.11.1(@opentelemetry/[email protected])+ '@sentry/core': 9.46.0+ '@sentry/node-core': 9.46.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])+ '@sentry/opentelemetry': 9.46.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])+ import-in-the-middle: 1.14.2+ minimatch: 9.0.5+ transitivePeerDependencies:+ - supports-color++ '@sentry/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/context-async-hooks': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/sdk-trace-base': 1.30.1(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions': 1.36.0+ '@sentry/core': 9.46.0++ '@sentry/[email protected]([email protected])':+ dependencies:+ '@sentry/browser': 9.46.0+ '@sentry/core': 9.46.0+ hoist-non-react-statics: 3.3.2+ react: 19.1.1++ '@sentry/[email protected]([email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/semantic-conventions': 1.36.0+ '@sentry-internal/browser-utils': 9.46.0+ '@sentry/core': 9.46.0+ '@sentry/node': 9.46.0+ '@sentry/react': 9.46.0([email protected])+ transitivePeerDependencies:+ - react+ - supports-color+'@sentry/[email protected]': {}'@sentry/[email protected]':dependencies:'@sentry/types': 8.30.0- '@seventy-seven/[email protected]': {}-'@shikijs/[email protected]':dependencies:'@shikijs/engine-javascript': 1.22.2@@ -18512,6 +21738,8 @@ snapshots:'@sinclair/[email protected]': {}+ '@sindresorhus/[email protected]': {}+'@sinonjs/[email protected]':dependencies:type-detect: 4.0.8@@ -18544,18 +21772,18 @@ snapshots:'@slack/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1'@slack/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1'@slack/[email protected]':dependencies:'@slack/logger': 3.0.0'@slack/web-api': 6.12.1'@types/jsonwebtoken': 8.5.9- '@types/node': 20.14.8+ '@types/node': 24.7.1jsonwebtoken: 9.0.2lodash.isstring: 4.0.1transitivePeerDependencies:@@ -18566,7 +21794,7 @@ snapshots:'@slack/logger': 4.0.0'@slack/web-api': 7.5.0'@types/jsonwebtoken': 9.0.9- '@types/node': 20.14.8+ '@types/node': 24.7.1jsonwebtoken: 9.0.2lodash.isstring: 4.0.1transitivePeerDependencies:@@ -18576,7 +21804,7 @@ snapshots:dependencies:'@slack/logger': 3.0.0'@slack/web-api': 6.12.1- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/ws': 7.4.7eventemitter3: 5.0.1finity: 0.5.4@@ -18593,7 +21821,7 @@ snapshots:'@slack/logger': 3.0.0'@slack/types': 2.14.0'@types/is-stream': 1.1.0- '@types/node': 20.14.8+ '@types/node': 24.7.1axios: 1.7.7eventemitter3: 3.1.2form-data: 2.5.1@@ -18608,7 +21836,7 @@ snapshots:dependencies:'@slack/logger': 4.0.0'@slack/types': 2.14.0- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/retry': 0.12.0axios: 1.7.7eventemitter3: 5.0.1@@ -18623,115 +21851,557 @@ snapshots:'@socket.io/[email protected]': {}+ '@solid-primitives/[email protected]([email protected])':+ dependencies:+ '@solid-primitives/utils': 6.3.2([email protected])+ solid-js: 1.9.9++ '@solid-primitives/[email protected]([email protected])':+ dependencies:+ '@solid-primitives/event-listener': 2.4.3([email protected])+ '@solid-primitives/rootless': 1.5.2([email protected])+ '@solid-primitives/utils': 6.3.2([email protected])+ solid-js: 1.9.9++ '@solid-primitives/[email protected]([email protected])':+ dependencies:+ '@solid-primitives/utils': 6.3.2([email protected])+ solid-js: 1.9.9++ '@solid-primitives/[email protected]([email protected])':+ dependencies:+ solid-js: 1.9.9++ '@speed-highlight/[email protected]': {}+'@stablelib/[email protected]': {}- '@swc/[email protected]': {}+ '@standard-schema/[email protected]': {}++ '@standard-schema/[email protected]': {}++ '@swc/[email protected]': {}++ '@swc/[email protected]':+ dependencies:+ tslib: 2.7.0++ '@swc/[email protected]':+ dependencies:+ '@swc/counter': 0.1.3+ tslib: 2.7.0++ '@tailwindcss/[email protected]([email protected])':+ dependencies:+ tailwindcss: 4.1.12++ '@tailwindcss/[email protected]':+ dependencies:+ '@jridgewell/remapping': 2.3.5+ enhanced-resolve: 5.18.3+ jiti: 2.5.1+ lightningcss: 1.30.1+ magic-string: 0.30.17+ source-map-js: 1.2.1+ tailwindcss: 4.1.12++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ dependencies:+ detect-libc: 2.0.4+ tar: 7.4.3+ optionalDependencies:+ '@tailwindcss/oxide-android-arm64': 4.1.12+ '@tailwindcss/oxide-darwin-arm64': 4.1.12+ '@tailwindcss/oxide-darwin-x64': 4.1.12+ '@tailwindcss/oxide-freebsd-x64': 4.1.12+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.12+ '@tailwindcss/oxide-linux-arm64-gnu': 4.1.12+ '@tailwindcss/oxide-linux-arm64-musl': 4.1.12+ '@tailwindcss/oxide-linux-x64-gnu': 4.1.12+ '@tailwindcss/oxide-linux-x64-musl': 4.1.12+ '@tailwindcss/oxide-wasm32-wasi': 4.1.12+ '@tailwindcss/oxide-win32-arm64-msvc': 4.1.12+ '@tailwindcss/oxide-win32-x64-msvc': 4.1.12++ '@tailwindcss/[email protected]([email protected])':+ dependencies:+ lodash.castarray: 4.4.0+ lodash.isplainobject: 4.0.6+ lodash.merge: 4.6.2+ postcss-selector-parser: 6.0.10+ tailwindcss: 3.4.17++ '@tailwindcss/[email protected]([email protected])':+ dependencies:+ lodash.castarray: 4.4.0+ lodash.isplainobject: 4.0.6+ lodash.merge: 4.6.2+ postcss-selector-parser: 6.0.10+ tailwindcss: 4.1.12++ '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@tailwindcss/node': 4.1.12+ '@tailwindcss/oxide': 4.1.12+ tailwindcss: 4.1.12+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])++ '@tanstack/[email protected]':+ dependencies:+ ws: 8.18.3+ transitivePeerDependencies:+ - bufferutil+ - utf-8-validate++ '@tanstack/[email protected]': {}++ dependencies:+ clsx: 2.1.1+ goober: 2.1.16([email protected])+ solid-js: 1.9.9+ transitivePeerDependencies:+ - csstype++ dependencies:+ '@solid-primitives/keyboard': 1.3.3([email protected])+ '@tanstack/devtools-event-bus': 0.3.2+ '@tanstack/devtools-ui': 0.4.2([email protected])([email protected])+ clsx: 2.1.1+ goober: 2.1.16([email protected])+ solid-js: 1.9.9+ transitivePeerDependencies:+ - bufferutil+ - csstype+ - utf-8-validate++ '@tanstack/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@babel/code-frame': 7.27.1+ '@babel/core': 7.28.3+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2+ '@tanstack/router-utils': 1.132.51+ babel-dead-code-elimination: 1.0.10+ pathe: 2.0.3+ tiny-invariant: 1.3.3+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - supports-color++ '@tanstack/[email protected]': {}++ '@tanstack/[email protected]':+ dependencies:+ remove-accents: 0.5.0++ '@tanstack/[email protected]': {}++ '@tanstack/[email protected]': {}++ '@tanstack/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])':+ dependencies:+ '@tanstack/devtools': 0.6.20([email protected])([email protected])+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ transitivePeerDependencies:+ - bufferutil+ - csstype+ - solid-js+ - utf-8-validate++ dependencies:+ '@tanstack/query-devtools': 5.90.1+ '@tanstack/react-query': 5.90.2([email protected])+ react: 19.1.1++ '@tanstack/[email protected]([email protected])':+ dependencies:+ '@tanstack/query-core': 5.90.2+ react: 19.1.1++ '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@tanstack/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':+ dependencies:+ '@tanstack/router-devtools-core': 1.132.51(@tanstack/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ vite: 7.1.9(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - '@tanstack/router-core'+ - '@types/node'+ - csstype+ - jiti+ - less+ - lightningcss+ - sass+ - sass-embedded+ - solid-js+ - stylus+ - sugarss+ - terser+ - tiny-invariant+ - tsx+ - yaml++ '@tanstack/[email protected](@tanstack/[email protected])(@tanstack/[email protected]([email protected]))(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@tanstack/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@tanstack/query-core': 5.90.2+ '@tanstack/react-query': 5.90.2([email protected])+ '@tanstack/router-ssr-query-core': 1.132.47(@tanstack/[email protected])(@tanstack/[email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ transitivePeerDependencies:+ - '@tanstack/router-core'++ dependencies:+ '@tanstack/history': 1.132.31+ '@tanstack/router-core': 1.132.47+ isbot: 5.1.30+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ tiny-invariant: 1.3.3+ tiny-warning: 1.0.3++ dependencies:+ '@tanstack/router-core': 1.132.47+ '@tanstack/start-client-core': 1.132.54+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ tiny-invariant: 1.3.3+ tiny-warning: 1.0.3++ dependencies:+ '@tanstack/history': 1.132.31+ '@tanstack/router-core': 1.132.47+ '@tanstack/start-client-core': 1.132.54+ '@tanstack/start-server-core': 1.132.54+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ transitivePeerDependencies:+ - crossws++ '@tanstack/[email protected]([email protected]([email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@tanstack/router-utils': 1.132.51+ '@tanstack/start-client-core': 1.132.54+ '@tanstack/start-plugin-core': 1.132.56(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tanstack/start-server-core': 1.132.54+ pathe: 2.0.3+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - '@rsbuild/core'+ - crossws+ - supports-color+ - vite-plugin-solid+ - webpack++ dependencies:+ '@tanstack/store': 0.7.7+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ use-sync-external-store: 1.5.0([email protected])++ dependencies:+ '@tanstack/store': 0.8.0+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ use-sync-external-store: 1.6.0([email protected])- '@swc/[email protected]':dependencies:- tslib: 2.7.0+ '@tanstack/table-core': 8.21.3+ react: 19.1.1+ react-dom: 19.1.1([email protected])- '@swc/[email protected]':dependencies:- '@swc/counter': 0.1.3- tslib: 2.7.0+ '@tanstack/virtual-core': 3.13.12+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ '@tanstack/[email protected]':dependencies:- zod: 3.24.2- optionalDependencies:- typescript: 5.3.3+ '@tanstack/history': 1.132.31+ '@tanstack/store': 0.7.7+ cookie-es: 2.0.0+ seroval: 1.3.2+ seroval-plugins: 1.3.2([email protected])+ tiny-invariant: 1.3.3+ tiny-warning: 1.0.3+ '@tanstack/[email protected](@tanstack/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])':dependencies:- '@t3-oss/env-core': 0.7.3([email protected])([email protected])- zod: 3.24.2+ '@tanstack/router-core': 1.132.47+ clsx: 2.1.1+ goober: 2.1.16([email protected])+ solid-js: 1.9.9+ tiny-invariant: 1.3.3+ vite: 7.1.9(@types/[email protected])([email protected])([email protected])([email protected])([email protected])optionalDependencies:- typescript: 5.3.3+ csstype: 3.1.3+ transitivePeerDependencies:+ - '@types/node'+ - jiti+ - less+ - lightningcss+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - terser+ - tsx+ - yaml- '@tailwindcss/[email protected]([email protected])':+ '@tanstack/[email protected]':dependencies:- tailwindcss: 3.4.1+ '@tanstack/router-core': 1.132.47+ '@tanstack/router-utils': 1.132.51+ '@tanstack/virtual-file-routes': 1.132.31+ prettier: 3.6.2+ recast: 0.23.11+ source-map: 0.7.4+ tsx: 4.20.5+ zod: 3.25.76+ transitivePeerDependencies:+ - supports-color++ '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/plugin-syntax-jsx': 7.27.1(@babel/[email protected])+ '@babel/plugin-syntax-typescript': 7.27.1(@babel/[email protected])+ '@babel/template': 7.27.2+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2+ '@tanstack/router-core': 1.132.47+ '@tanstack/router-generator': 1.132.51+ '@tanstack/router-utils': 1.132.51+ '@tanstack/virtual-file-routes': 1.132.31+ babel-dead-code-elimination: 1.0.10+ chokidar: 3.6.0+ unplugin: 2.3.8+ zod: 3.25.76+ optionalDependencies:+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - supports-color- '@tailwindcss/[email protected]([email protected])':dependencies:- lodash.castarray: 4.4.0- lodash.isplainobject: 4.0.6- lodash.merge: 4.6.2- postcss-selector-parser: 6.0.10- tailwindcss: 3.4.1+ '@tanstack/query-core': 5.90.2+ '@tanstack/router-core': 1.132.47- '@tailwindcss/[email protected]([email protected])':+ '@tanstack/[email protected]':dependencies:- lodash.castarray: 4.4.0- lodash.isplainobject: 4.0.6- lodash.merge: 4.6.2- postcss-selector-parser: 6.0.10- tailwindcss: 3.4.17+ '@babel/core': 7.28.3+ '@babel/generator': 7.28.3+ '@babel/parser': 7.28.3+ '@babel/preset-typescript': 7.27.1(@babel/[email protected])+ ansis: 4.2.0+ diff: 8.0.2+ pathe: 2.0.3+ tinyglobby: 0.2.15+ transitivePeerDependencies:+ - supports-color- '@tanstack/[email protected]': {}+ '@tanstack/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@babel/code-frame': 7.27.1+ '@babel/core': 7.28.3+ '@babel/plugin-syntax-jsx': 7.27.1(@babel/[email protected])+ '@babel/plugin-syntax-typescript': 7.27.1(@babel/[email protected])+ '@babel/template': 7.27.2+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2+ '@tanstack/directive-functions-plugin': 1.132.53([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ babel-dead-code-elimination: 1.0.10+ tiny-invariant: 1.3.3+ transitivePeerDependencies:+ - supports-color+ - vite- '@tanstack/[email protected]([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])':+ '@tanstack/[email protected]':dependencies:- '@tanstack/query-core': 4.36.1- react: 18.2.0- use-sync-external-store: 1.2.0([email protected])- optionalDependencies:- react-dom: 18.2.0([email protected])- react-native: 0.73.6(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected])+ '@tanstack/router-core': 1.132.47+ '@tanstack/start-storage-context': 1.132.48+ seroval: 1.3.2+ tiny-invariant: 1.3.3+ tiny-warning: 1.0.3+ '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:- '@tanstack/table-core': 8.12.0- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@babel/code-frame': 7.26.2+ '@babel/core': 7.28.3+ '@babel/types': 7.28.2+ '@rolldown/pluginutils': 1.0.0-beta.40+ '@tanstack/router-core': 1.132.47+ '@tanstack/router-generator': 1.132.51+ '@tanstack/router-plugin': 1.132.56(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tanstack/router-utils': 1.132.51+ '@tanstack/server-functions-plugin': 1.132.53([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tanstack/start-client-core': 1.132.54+ '@tanstack/start-server-core': 1.132.54+ babel-dead-code-elimination: 1.0.10+ cheerio: 1.1.2+ exsolve: 1.0.7+ pathe: 2.0.3+ srvx: 0.8.15+ tinyglobby: 0.2.15+ ufo: 1.6.1+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vitefu: 1.1.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ xmlbuilder2: 3.1.1+ zod: 3.25.76+ transitivePeerDependencies:+ - '@rsbuild/core'+ - '@tanstack/react-router'+ - crossws+ - supports-color+ - vite-plugin-solid+ - webpack++ '@tanstack/[email protected]':+ dependencies:+ '@tanstack/history': 1.132.31+ '@tanstack/router-core': 1.132.47+ '@tanstack/start-client-core': 1.132.54+ '@tanstack/start-storage-context': 1.132.48+ h3-v2: [email protected]+ seroval: 1.3.2+ tiny-invariant: 1.3.3+ transitivePeerDependencies:+ - crossws+ '@tanstack/[email protected]':dependencies:- '@tanstack/virtual-core': 3.13.4- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@tanstack/router-core': 1.132.47++ '@tanstack/[email protected]': {}++ '@tanstack/[email protected]': {}++ '@tanstack/[email protected]': {}- '@tanstack/[email protected]': {}+ '@tanstack/[email protected]': {}++ '@tanstack/[email protected]': {}++ '@testing-library/[email protected]':+ dependencies:+ '@babel/code-frame': 7.27.1+ '@babel/runtime': 7.23.9+ '@types/aria-query': 5.0.4+ aria-query: 5.3.0+ dom-accessibility-api: 0.5.16+ lz-string: 1.5.0+ picocolors: 1.1.1+ pretty-format: 27.5.1- '@tanstack/[email protected]': {}+ '@testing-library/[email protected](@testing-library/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@babel/runtime': 7.23.9+ '@testing-library/dom': 10.4.1+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ optionalDependencies:+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])- '@trpc-limiter/[email protected](@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])':+ '@trpc-limiter/[email protected](@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))':dependencies:- '@trpc/client': 10.45.2(@trpc/[email protected])- '@trpc/server': 10.45.2+ '@trpc/server': 11.6.0([email protected])- '@trpc-limiter/[email protected](@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected])':+ '@trpc-limiter/[email protected](@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected])':dependencies:- '@trpc-limiter/core': 1.0.0(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])- '@trpc/client': 10.45.2(@trpc/[email protected])- '@trpc/server': 10.45.2+ '@trpc-limiter/core': 1.0.0(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))+ '@trpc/server': 11.6.0([email protected])rate-limiter-flexible: 5.0.4redis: 4.7.0- '@trpc/[email protected](@trpc/[email protected])':dependencies:- '@trpc/server': 10.45.2+ '@trpc/server': 11.6.0([email protected])+ typescript: 5.9.3- '@trpc/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected]))(@trpc/[email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':+ '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])':dependencies:- '@tanstack/react-query': 4.36.1([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])- '@trpc/client': 10.45.2(@trpc/[email protected])- '@trpc/react-query': 10.45.2(@tanstack/[email protected]([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected])- '@trpc/server': 10.45.2- next: 14.2.1(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@tanstack/react-query': 5.90.2([email protected])+ '@trpc/server': 11.6.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ typescript: 5.9.3- '@trpc/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected])':+ '@trpc/[email protected]([email protected])':dependencies:- '@tanstack/react-query': 4.36.1([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])- '@trpc/client': 10.45.2(@trpc/[email protected])- '@trpc/server': 10.45.2- react: 18.2.0- react-dom: 18.2.0([email protected])+ typescript: 5.9.3- '@trpc/[email protected]': {}+ '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])':+ dependencies:+ '@tanstack/react-query': 5.90.2([email protected])+ '@trpc/server': 11.6.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ typescript: 5.9.3'@turf/[email protected]':dependencies:@@ -18744,6 +22414,11 @@ snapshots:dependencies:'@turf/helpers': 6.5.0+ '@tybys/[email protected]':+ dependencies:+ tslib: 2.7.0+ optional: true+'@tybys/[email protected]':dependencies:tslib: 2.7.0@@ -18751,34 +22426,53 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]':dependencies:'@types/estree': 1.0.5+ '@types/[email protected]': {}+'@types/[email protected]': {}- '@types/[email protected]':+ '@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@babel/parser': 7.28.3+ '@babel/types': 7.28.2+ '@types/babel__generator': 7.27.0+ '@types/babel__template': 7.4.4+ '@types/babel__traverse': 7.28.0++ '@types/[email protected]':+ dependencies:+ '@babel/types': 7.28.2++ '@types/[email protected]':+ dependencies:+ '@babel/parser': 7.28.3+ '@babel/types': 7.28.2++ '@types/[email protected]':+ dependencies:+ '@babel/types': 7.28.2'@types/[email protected]':dependencies:'@types/connect': 3.4.38- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]': {}@@ -18789,11 +22483,11 @@ snapshots:'@types/connect': 3.4.38'@types/express': 4.17.21'@types/keygrip': 1.0.6- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/[email protected]': {}@@ -18943,16 +22637,18 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/qs': 6.9.11'@types/range-parser': 1.2.7'@types/send': 0.17.4- '@types/[email protected]':+ '@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/qs': 6.9.11'@types/range-parser': 1.2.7'@types/send': 0.17.4@@ -18967,7 +22663,7 @@ snapshots:'@types/[email protected]':dependencies:'@types/body-parser': 1.19.5- '@types/express-serve-static-core': 5.0.7+ '@types/express-serve-static-core': 5.1.0'@types/serve-static': 1.15.5'@types/[email protected]': {}@@ -18982,7 +22678,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11hoist-non-react-statics: 3.3.2'@types/[email protected]': {}@@ -19000,7 +22696,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/[email protected]': {}@@ -19016,7 +22712,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/[email protected]':dependencies:@@ -19040,7 +22736,7 @@ snapshots:'@types/http-errors': 2.0.4'@types/keygrip': 1.0.6'@types/koa-compose': 3.2.8- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]':dependencies:@@ -19074,17 +22770,23 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]': {}'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0++ '@types/[email protected]':+ dependencies:+ '@types/node': 22.18.0'@types/[email protected]':dependencies:@@ -19094,21 +22796,33 @@ snapshots:dependencies:undici-types: 5.26.5- '@types/[email protected]': {}+ '@types/[email protected]':+ dependencies:+ undici-types: 6.21.0++ '@types/[email protected]':+ dependencies:+ undici-types: 7.14.0++ '@types/[email protected]': {}'@types/[email protected]':dependencies:'@types/pg': 8.6.1+ '@types/[email protected]':+ dependencies:+ '@types/pg': 8.6.1+'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0pg-protocol: 1.6.1pg-types: 2.2.0'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/[email protected]': {}@@ -19128,15 +22842,15 @@ snapshots:dependencies:types-ramda: 0.30.1- '@types/[email protected]': {}-- '@types/[email protected]':+ '@types/[email protected]':dependencies:- '@types/react': 18.3.12+ types-ramda: 0.31.0++ '@types/[email protected]': {}- '@types/[email protected]':+ '@types/[email protected](@types/[email protected])':dependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11'@types/[email protected]':dependencies:@@ -19149,15 +22863,13 @@ snapshots:dependencies:'@types/react': 18.3.12- '@types/[email protected]':+ '@types/[email protected]':dependencies:'@types/prop-types': 15.7.11- '@types/scheduler': 0.16.8csstype: 3.1.3- '@types/[email protected]':+ '@types/[email protected]':dependencies:- '@types/prop-types': 15.7.11csstype: 3.1.3'@types/[email protected]':@@ -19166,20 +22878,18 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}-'@types/[email protected]': {}'@types/[email protected]':dependencies:'@types/mime': 1.3.5- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]':dependencies:'@types/http-errors': 2.0.4'@types/mime': 3.0.4- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]': {}@@ -19193,11 +22903,11 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 22.18.0'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/[email protected]': {}@@ -19217,7 +22927,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1'@types/[email protected]':dependencies:@@ -19247,6 +22957,18 @@ snapshots:graphql: 15.8.0wonka: 4.0.15+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@babel/core': 7.28.3+ '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/[email protected])+ '@rolldown/pluginutils': 1.0.0-beta.27+ '@types/babel__core': 7.20.5+ react-refresh: 0.17.0+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - supports-color+'@vitest/[email protected]':dependencies:'@vitest/spy': 3.1.3@@ -19254,13 +22976,13 @@ snapshots:chai: 5.2.0tinyrainbow: 2.0.0- '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 3.1.3estree-walker: 3.0.3magic-string: 0.30.17optionalDependencies:+ vite: 6.3.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])'@vitest/[email protected]':dependencies:@@ -19287,12 +23009,42 @@ snapshots:loupe: 3.1.3tinyrainbow: 2.0.0+ '@vue/[email protected]':+ dependencies:+ '@babel/parser': 7.28.3+ '@vue/shared': 3.5.20+ entities: 4.5.0+ estree-walker: 2.0.2+ source-map-js: 1.2.1++ '@vue/[email protected]':+ dependencies:+ '@vue/compiler-core': 3.5.20+ '@vue/shared': 3.5.20++ '@vue/[email protected]':+ dependencies:+ '@babel/parser': 7.28.3+ '@vue/compiler-core': 3.5.20+ '@vue/compiler-dom': 3.5.20+ '@vue/compiler-ssr': 3.5.20+ '@vue/shared': 3.5.20+ estree-walker: 2.0.2+ magic-string: 0.30.17+ postcss: 8.5.6+ source-map-js: 1.2.1++ '@vue/[email protected]':+ dependencies:+ '@vue/compiler-dom': 3.5.20+ '@vue/shared': 3.5.20++ '@vue/[email protected]': {}+'@xmldom/[email protected]': {}'@xmldom/[email protected]': {}- [email protected]: {}-@@ -19306,58 +23058,52 @@ snapshots:mime-types: 2.1.35negotiator: 0.6.3dependencies:- acorn: 8.11.3+ acorn: 8.15.0dependencies:- acorn: 8.11.3+ acorn: 8.15.0- [email protected]: {}+ [email protected]: {}++ [email protected]: {}+ [email protected]: {}+dependencies:- debug: 4.4.0+ debug: 4.4.1transitivePeerDependencies:- supports-colordependencies:- debug: 4.4.0+ debug: 4.4.1transitivePeerDependencies:- supports-color+ [email protected]: {}+dependencies:clean-stack: 2.2.0indent-string: 4.0.0- dependencies:- '@ai-sdk/provider': 1.1.0- '@ai-sdk/provider-utils': 2.2.3([email protected])- '@ai-sdk/react': 1.2.5([email protected])([email protected])- '@ai-sdk/ui-utils': 1.2.4([email protected])- '@opentelemetry/api': 1.9.0- jsondiffpatch: 0.6.0- zod: 3.24.2- optionalDependencies:- react: 18.2.0-dependencies:'@ai-sdk/provider': 1.1.0'@ai-sdk/provider-utils': 2.2.3([email protected])- '@ai-sdk/react': 1.2.5([email protected])([email protected])+ '@ai-sdk/react': 1.2.5([email protected])([email protected])'@ai-sdk/ui-utils': 1.2.4([email protected])'@opentelemetry/api': 1.9.0jsondiffpatch: 0.6.0zod: 3.24.2optionalDependencies:- react: 18.3.1+ react: 19.1.1optionalDependencies:@@ -19425,6 +23171,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+@@ -19436,19 +23186,12 @@ snapshots:- [email protected]: {}-dependencies:'@oslojs/crypto': 1.0.1'@oslojs/encoding': 1.1.0'@oslojs/jwt': 0.2.0- dependencies:- delegates: 1.0.0- readable-stream: 3.6.2-@@ -19461,6 +23204,14 @@ snapshots:dependencies:tslib: 2.7.0+ dependencies:+ tslib: 2.7.0++ dependencies:+ dequal: 2.0.3+@@ -19468,6 +23219,8 @@ snapshots:call-bind: 1.0.7is-array-buffer: 3.0.4+ [email protected]: {}+@@ -19480,7 +23233,7 @@ snapshots:define-properties: 1.2.1es-abstract: 1.23.3es-array-method-boxes-properly: 1.0.0- es-object-atoms: 1.1.1+ es-object-atoms: 1.0.0is-string: 1.0.7@@ -19490,23 +23243,34 @@ snapshots:define-properties: 1.2.1es-abstract: 1.22.4es-errors: 1.3.0- get-intrinsic: 1.3.0+ get-intrinsic: 1.2.4is-array-buffer: 3.0.4is-shared-array-buffer: 1.0.2+ [email protected]: {}++ dependencies:+ '@babel/parser': 7.28.3+ pathe: 2.0.3+dependencies:tslib: 2.7.0+ dependencies:+ tslib: 2.7.0+- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:'@astrojs/compiler': 2.11.0'@astrojs/internal-helpers': 0.6.1@@ -19514,7 +23278,7 @@ snapshots:'@astrojs/telemetry': 3.2.1'@capsizecss/unpack': 2.4.0'@oslojs/encoding': 1.1.0- '@rollup/pluginutils': 5.1.4([email protected])+ '@rollup/pluginutils': 5.1.4([email protected])acorn: 8.14.1aria-query: 5.3.2axobject-query: 4.1.0@@ -19553,20 +23317,20 @@ snapshots:shiki: 3.3.0tinyexec: 0.3.2tinyglobby: 0.2.13- tsconfck: 3.1.5([email protected])+ tsconfck: 3.1.5([email protected])ultrahtml: 1.6.0unifont: 0.4.1unist-util-visit: 5.0.0- unstorage: 1.16.0+ unstorage: 1.16.0([email protected])([email protected])vfile: 6.0.3+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vitefu: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))xxhash-wasm: 1.1.0yargs-parser: 21.1.1yocto-spinner: 0.2.2zod: 3.24.2zod-to-json-schema: 3.24.5([email protected])- zod-to-ts: 1.2.0([email protected])([email protected])+ zod-to-ts: 1.2.0([email protected])([email protected])optionalDependencies:sharp: 0.33.5transitivePeerDependencies:@@ -19619,16 +23383,6 @@ snapshots:- dependencies:- browserslist: 4.23.0- caniuse-lite: 1.0.30001596- fraction.js: 4.3.7- normalize-range: 0.1.2- picocolors: 1.0.0- postcss: 8.4.35- postcss-value-parser: 4.2.0-dependencies:browserslist: 4.24.2@@ -19660,31 +23414,40 @@ snapshots:- [email protected](@babel/[email protected]):+ [email protected](@babel/[email protected]):dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3++ dependencies:+ '@babel/core': 7.28.3+ '@babel/parser': 7.28.3+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2+ transitivePeerDependencies:+ - supports-color- [email protected](@babel/[email protected]):+ [email protected](@babel/[email protected]):dependencies:'@babel/compat-data': 7.23.5- '@babel/core': 7.24.5- '@babel/helper-define-polyfill-provider': 0.5.0(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-define-polyfill-provider': 0.5.0(@babel/[email protected])semver: 6.3.1transitivePeerDependencies:- supports-color- [email protected](@babel/[email protected]):+ [email protected](@babel/[email protected]):dependencies:- '@babel/core': 7.24.5- '@babel/helper-define-polyfill-provider': 0.5.0(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-define-polyfill-provider': 0.5.0(@babel/[email protected])core-js-compat: 3.36.0transitivePeerDependencies:- supports-color- [email protected](@babel/[email protected]):+ [email protected](@babel/[email protected]):dependencies:- '@babel/core': 7.24.5- '@babel/helper-define-polyfill-provider': 0.5.0(@babel/[email protected])+ '@babel/core': 7.28.3+ '@babel/helper-define-polyfill-provider': 0.5.0(@babel/[email protected])transitivePeerDependencies:- supports-color@@ -19692,56 +23455,56 @@ snapshots:- [email protected](@babel/[email protected]):+ [email protected](@babel/[email protected]):dependencies:- '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])+ '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])transitivePeerDependencies:- '@babel/core'- [email protected](@babel/[email protected]):+ [email protected](@babel/[email protected]):dependencies:- '@babel/plugin-proposal-decorators': 7.23.9(@babel/[email protected])- '@babel/plugin-transform-export-namespace-from': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-object-rest-spread': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])- '@babel/preset-env': 7.23.9(@babel/[email protected])- '@babel/preset-react': 7.23.3(@babel/[email protected])- '@react-native/babel-preset': 0.73.21(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))+ '@babel/plugin-proposal-decorators': 7.23.9(@babel/[email protected])+ '@babel/plugin-transform-export-namespace-from': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-object-rest-spread': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])+ '@babel/preset-env': 7.23.9(@babel/[email protected])+ '@babel/preset-react': 7.23.3(@babel/[email protected])+ '@react-native/babel-preset': 0.73.21(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))babel-plugin-react-native-web: 0.18.12react-refresh: 0.14.0transitivePeerDependencies:- '@babel/core'- supports-color- [email protected](@babel/[email protected]):- dependencies:- '@babel/core': 7.24.5- '@babel/plugin-proposal-class-properties': 7.18.6(@babel/[email protected])- '@babel/plugin-proposal-object-rest-spread': 7.20.7(@babel/[email protected])- '@babel/plugin-syntax-class-properties': 7.12.13(@babel/[email protected])- '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])- '@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])- '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])- '@babel/plugin-transform-arrow-functions': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-block-scoped-functions': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-block-scoping': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-classes': 7.23.8(@babel/[email protected])- '@babel/plugin-transform-computed-properties': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-destructuring': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-for-of': 7.23.6(@babel/[email protected])- '@babel/plugin-transform-function-name': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-literals': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-member-expression-literals': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-object-super': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-property-literals': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-react-display-name': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-react-jsx': 7.23.4(@babel/[email protected])- '@babel/plugin-transform-shorthand-properties': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-spread': 7.23.3(@babel/[email protected])- '@babel/plugin-transform-template-literals': 7.23.3(@babel/[email protected])+ [email protected](@babel/[email protected]):+ dependencies:+ '@babel/core': 7.28.3+ '@babel/plugin-proposal-class-properties': 7.18.6(@babel/[email protected])+ '@babel/plugin-proposal-object-rest-spread': 7.20.7(@babel/[email protected])+ '@babel/plugin-syntax-class-properties': 7.12.13(@babel/[email protected])+ '@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])+ '@babel/plugin-syntax-jsx': 7.27.1(@babel/[email protected])+ '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])+ '@babel/plugin-transform-arrow-functions': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-block-scoped-functions': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-block-scoping': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-classes': 7.23.8(@babel/[email protected])+ '@babel/plugin-transform-computed-properties': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-destructuring': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-for-of': 7.23.6(@babel/[email protected])+ '@babel/plugin-transform-function-name': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-literals': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-member-expression-literals': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-object-super': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-property-literals': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-react-display-name': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-react-jsx': 7.23.4(@babel/[email protected])+ '@babel/plugin-transform-shorthand-properties': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-spread': 7.23.3(@babel/[email protected])+ '@babel/plugin-transform-template-literals': 7.23.3(@babel/[email protected])babel-plugin-syntax-trailing-function-commas: 7.0.0-beta.0transitivePeerDependencies:- supports-color@@ -19758,14 +23521,6 @@ snapshots:- dependencies:- '@mapbox/node-pre-gyp': 1.0.11- node-addon-api: 5.1.0- transitivePeerDependencies:- - encoding- - supports-color-dependencies:open: 8.4.2@@ -19780,6 +23535,8 @@ snapshots:+ [email protected]: {}+dependencies:readable-stream: 2.3.8@@ -19795,6 +23552,8 @@ snapshots:inherits: 2.0.4readable-stream: 3.6.2+ [email protected]: {}+@@ -19884,13 +23643,6 @@ snapshots:dependencies:base64-js: 1.5.1- dependencies:- caniuse-lite: 1.0.30001596- electron-to-chromium: 1.4.673- node-releases: 2.0.14- update-browserslist-db: 1.0.13([email protected])-dependencies:caniuse-lite: 1.0.30001674@@ -19932,7 +23684,7 @@ snapshots:dependencies:cron-parser: 4.9.0- ioredis: 5.4.1+ ioredis: 5.7.0msgpackr: 1.10.1node-abort-controller: 3.1.1semver: 7.6.0@@ -19954,6 +23706,23 @@ snapshots:+ dependencies:+ chokidar: 4.0.3+ confbox: 0.2.2+ defu: 6.1.4+ dotenv: 16.6.1+ exsolve: 1.0.7+ giget: 2.0.0+ jiti: 2.5.1+ ohash: 2.0.11+ pathe: 2.0.3+ perfect-debounce: 1.0.0+ pkg-types: 2.3.0+ rc9: 2.1.2+ optionalDependencies:+ magicast: 0.3.5+@@ -19979,24 +23748,14 @@ snapshots:transitivePeerDependencies:- bluebird- dependencies:- es-errors: 1.3.0- function-bind: 1.1.2-dependencies:- es-define-property: 1.0.1+ es-define-property: 1.0.0es-errors: 1.3.0function-bind: 1.1.2- get-intrinsic: 1.3.0+ get-intrinsic: 1.2.4set-function-length: 1.2.1- dependencies:- call-bind-apply-helpers: 1.0.2- get-intrinsic: 1.3.0-@@ -20007,8 +23766,12 @@ snapshots:dependencies:caller-callsite: 2.0.0+ [email protected]: {}++ [email protected]: {}+@@ -20017,8 +23780,6 @@ snapshots:- [email protected]: {}-@@ -20083,6 +23844,20 @@ snapshots:parse5: 7.1.2parse5-htmlparser2-tree-adapter: 7.0.0+ dependencies:+ cheerio-select: 2.1.0+ dom-serializer: 2.0.0+ domhandler: 5.0.3+ domutils: 3.2.2+ encoding-sniffer: 0.2.1+ htmlparser2: 10.0.0+ parse5: 7.3.0+ parse5-htmlparser2-tree-adapter: 7.1.0+ parse5-parser-stream: 7.1.2+ undici: 7.15.0+ whatwg-mimetype: 4.0.0+dependencies:anymatch: 3.1.3@@ -20109,7 +23884,7 @@ snapshots:dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1escape-string-regexp: 4.0.0is-wsl: 2.2.0lighthouse-logger: 1.4.2@@ -20118,7 +23893,7 @@ snapshots:dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1escape-string-regexp: 4.0.0is-wsl: 2.2.0lighthouse-logger: 1.4.2@@ -20133,11 +23908,11 @@ snapshots:- [email protected]: {}-dependencies:- clsx: 2.0.0+ consola: 3.4.2++ [email protected]: {}dependencies:@@ -20169,6 +23944,12 @@ snapshots:strip-ansi: 6.0.1wrap-ansi: 6.2.0+ dependencies:+ string-width: 4.2.3+ strip-ansi: 6.0.1+ wrap-ansi: 7.0.0+dependencies:string-width: 4.2.3@@ -20185,28 +23966,24 @@ snapshots:- [email protected]: {}-- [email protected]: {}-- [email protected](@types/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@types/[email protected])([email protected]([email protected]))([email protected]):dependencies:- '@radix-ui/react-dialog': 1.0.0(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@radix-ui/react-dialog': 1.0.0(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])transitivePeerDependencies:- '@types/react'- [email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):dependencies:- '@radix-ui/react-dialog': 1.0.5(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ '@radix-ui/react-dialog': 1.0.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])transitivePeerDependencies:- '@types/react'- '@types/react-dom'@@ -20230,8 +24007,6 @@ snapshots:color-name: 1.1.4simple-swizzle: 0.2.2- [email protected]: {}-dependencies:color-convert: 1.9.3@@ -20301,6 +24076,8 @@ snapshots:+ [email protected]: {}+dependencies:ini: 1.3.8@@ -20315,7 +24092,7 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]: {}+ [email protected]: {}dependencies:@@ -20327,6 +24104,8 @@ snapshots:+ [email protected]: {}+@@ -20359,6 +24138,14 @@ snapshots:js-yaml: 3.14.1parse-json: 4.0.0+ dependencies:+ '@types/parse-json': 4.0.2+ import-fresh: 3.3.1+ parse-json: 5.2.0+ path-type: 4.0.0+ yaml: 1.10.2+dependencies:luxon: 3.6.1@@ -20412,6 +24199,11 @@ snapshots:+ dependencies:+ '@asamuzakjp/css-color': 3.2.0+ rrweb-cssom: 0.8.0+@@ -20614,6 +24406,11 @@ snapshots:+ dependencies:+ whatwg-mimetype: 4.0.0+ whatwg-url: 14.2.0+dependencies:call-bind: 1.0.7@@ -20632,12 +24429,21 @@ snapshots:es-errors: 1.3.0is-data-view: 1.0.1+ [email protected]: {}++ [email protected]: {}++ optional: true++ [email protected]: {}+dependencies:ms: 2.0.0@@ -20654,22 +24460,17 @@ snapshots:dependencies:ms: 2.1.3+ dependencies:+ ms: 2.1.3+- dependencies:- '@canvas/image-data': 1.0.0- to-data-view: 1.1.0-- dependencies:- '@canvas/image-data': 1.0.0- decode-bmp: 0.2.1- to-data-view: 1.1.0+ [email protected]: {}dependencies:@@ -20679,6 +24480,8 @@ snapshots:+ [email protected]: {}+@@ -20692,9 +24495,9 @@ snapshots:dependencies:- es-define-property: 1.0.1+ es-define-property: 1.0.0es-errors: 1.3.0- gopd: 1.2.0+ gopd: 1.0.1@@ -20723,12 +24526,38 @@ snapshots:- [email protected]: {}-+ dependencies:+ '@babel/parser': 7.28.3+ '@babel/traverse': 7.28.3+ '@vue/compiler-sfc': 3.5.20+ callsite: 1.0.0+ camelcase: 6.3.0+ cosmiconfig: 7.1.0+ debug: 4.4.1+ deps-regex: 0.2.0+ findup-sync: 5.0.0+ ignore: 5.3.1+ is-core-module: 2.13.1+ js-yaml: 3.14.1+ json5: 2.2.3+ lodash: 4.17.21+ minimatch: 7.4.6+ multimatch: 5.0.0+ please-upgrade-node: 3.2.0+ readdirp: 3.6.0+ require-package-name: 2.0.1+ resolve: 1.22.8+ resolve-from: 5.0.0+ semver: 7.7.2+ yargs: 16.2.0+ transitivePeerDependencies:+ - supports-color+@@ -20737,16 +24566,22 @@ snapshots:invariant: 2.2.4prop-types: 15.8.1+ [email protected]: {}++ [email protected]: {}++ [email protected]: {}+@@ -20767,12 +24602,16 @@ snapshots:+ [email protected]: {}+dependencies:path-type: 4.0.0+ [email protected]: {}+dependencies:'@babel/runtime': 7.23.9@@ -20796,6 +24635,12 @@ snapshots:domelementtype: 2.3.0domhandler: 5.0.3+ dependencies:+ dom-serializer: 2.0.0+ domelementtype: 2.3.0+ domhandler: 5.0.3+dependencies:cross-spawn: 7.0.3@@ -20809,6 +24654,8 @@ snapshots:+ [email protected]: {}+dependencies:'@turf/boolean-point-in-polygon': 6.5.0@@ -20816,11 +24663,7 @@ snapshots:- dependencies:- call-bind-apply-helpers: 1.0.2- es-errors: 1.3.0- gopd: 1.2.0+ [email protected]: {}dependencies:@@ -20847,23 +24690,30 @@ snapshots:'@one-ini/wasm': 0.1.1commander: 10.0.1minimatch: 9.0.1- semver: 7.7.1+ semver: 7.7.2+ dependencies:+ '@standard-schema/spec': 1.0.0+ fast-check: 3.23.2+dependencies:jake: 10.8.7- [email protected]: {}-+ dependencies:+ embla-carousel: 8.0.0-rc22+dependencies:embla-carousel: 8.0.0-rc22embla-carousel-reactive-utils: 8.0.0-rc22([email protected])- react: 18.2.0+ react: 19.1.1dependencies:@@ -20877,10 +24727,17 @@ snapshots:+ [email protected]: {}++ dependencies:+ iconv-lite: 0.6.3+ whatwg-encoding: 3.1.1+dependencies:once: 1.4.0@@ -20891,7 +24748,7 @@ snapshots:dependencies:'@types/cookie': 0.4.1'@types/cors': 2.8.17- '@types/node': 20.14.8+ '@types/node': 24.7.1accepts: 1.3.8base64id: 2.0.0cookie: 0.7.2@@ -20904,8 +24761,15 @@ snapshots:- supports-color- utf-8-validate+ dependencies:+ graceful-fs: 4.2.11+ tapable: 2.2.3++ [email protected]: {}+@@ -20916,6 +24780,8 @@ snapshots:dependencies:is-arrayish: 0.2.1+ [email protected]: {}+dependencies:stackframe: 1.3.4@@ -20931,18 +24797,18 @@ snapshots:arraybuffer.prototype.slice: 1.0.3available-typed-arrays: 1.0.6call-bind: 1.0.7- es-define-property: 1.0.1+ es-define-property: 1.0.0es-errors: 1.3.0es-set-tostringtag: 2.0.2es-to-primitive: 1.2.1function.prototype.name: 1.1.6- get-intrinsic: 1.3.0+ get-intrinsic: 1.2.4get-symbol-description: 1.0.2globalthis: 1.0.3- gopd: 1.2.0+ gopd: 1.0.1has-property-descriptors: 1.0.2has-proto: 1.0.3- has-symbols: 1.1.0+ has-symbols: 1.0.3hasown: 2.0.2internal-slot: 1.0.7is-array-buffer: 3.0.4@@ -20953,7 +24819,7 @@ snapshots:is-string: 1.0.7is-typed-array: 1.1.13is-weakref: 1.0.2- object-inspect: 1.13.4+ object-inspect: 1.13.1object-keys: 1.1.1object.assign: 4.1.5regexp.prototype.flags: 1.5.2@@ -20978,19 +24844,19 @@ snapshots:data-view-buffer: 1.0.1data-view-byte-length: 1.0.1data-view-byte-offset: 1.0.0- es-define-property: 1.0.1+ es-define-property: 1.0.0es-errors: 1.3.0- es-object-atoms: 1.1.1+ es-object-atoms: 1.0.0es-set-tostringtag: 2.0.3es-to-primitive: 1.2.1function.prototype.name: 1.1.6- get-intrinsic: 1.3.0+ get-intrinsic: 1.2.4get-symbol-description: 1.0.2globalthis: 1.0.3- gopd: 1.2.0+ gopd: 1.0.1has-property-descriptors: 1.0.2has-proto: 1.0.3- has-symbols: 1.1.0+ has-symbols: 1.0.3hasown: 2.0.2internal-slot: 1.0.7is-array-buffer: 3.0.4@@ -21002,7 +24868,7 @@ snapshots:is-string: 1.0.7is-typed-array: 1.1.13is-weakref: 1.0.2- object-inspect: 1.13.4+ object-inspect: 1.13.1object-keys: 1.1.1object.assign: 4.1.5regexp.prototype.flags: 1.5.2@@ -21020,15 +24886,17 @@ snapshots:- [email protected]: {}+ dependencies:+ get-intrinsic: 1.2.4dependencies:call-bind: 1.0.7- get-intrinsic: 1.3.0- has-symbols: 1.1.0+ get-intrinsic: 1.2.4+ has-symbols: 1.0.3is-arguments: 1.1.1is-map: 2.0.2is-set: 2.0.2@@ -21038,19 +24906,19 @@ snapshots:dependencies:es-errors: 1.3.0dependencies:- get-intrinsic: 1.3.0+ get-intrinsic: 1.2.4has-tostringtag: 1.0.2hasown: 2.0.2dependencies:- get-intrinsic: 1.3.0+ get-intrinsic: 1.2.4has-tostringtag: 1.0.2hasown: 2.0.2@@ -21072,7 +24940,7 @@ snapshots:dependencies:'@types/estree-jsx': 1.0.5- acorn: 8.11.3+ acorn: 8.15.0esast-util-from-estree: 2.0.0vfile-message: 4.0.2@@ -21183,7 +25051,62 @@ snapshots:'@esbuild/win32-ia32': 0.25.3'@esbuild/win32-x64': 0.25.3- [email protected]: {}+ optionalDependencies:+ '@esbuild/aix-ppc64': 0.25.4+ '@esbuild/android-arm': 0.25.4+ '@esbuild/android-arm64': 0.25.4+ '@esbuild/android-x64': 0.25.4+ '@esbuild/darwin-arm64': 0.25.4+ '@esbuild/darwin-x64': 0.25.4+ '@esbuild/freebsd-arm64': 0.25.4+ '@esbuild/freebsd-x64': 0.25.4+ '@esbuild/linux-arm': 0.25.4+ '@esbuild/linux-arm64': 0.25.4+ '@esbuild/linux-ia32': 0.25.4+ '@esbuild/linux-loong64': 0.25.4+ '@esbuild/linux-mips64el': 0.25.4+ '@esbuild/linux-ppc64': 0.25.4+ '@esbuild/linux-riscv64': 0.25.4+ '@esbuild/linux-s390x': 0.25.4+ '@esbuild/linux-x64': 0.25.4+ '@esbuild/netbsd-arm64': 0.25.4+ '@esbuild/netbsd-x64': 0.25.4+ '@esbuild/openbsd-arm64': 0.25.4+ '@esbuild/openbsd-x64': 0.25.4+ '@esbuild/sunos-x64': 0.25.4+ '@esbuild/win32-arm64': 0.25.4+ '@esbuild/win32-ia32': 0.25.4+ '@esbuild/win32-x64': 0.25.4++ optionalDependencies:+ '@esbuild/aix-ppc64': 0.25.9+ '@esbuild/android-arm': 0.25.9+ '@esbuild/android-arm64': 0.25.9+ '@esbuild/android-x64': 0.25.9+ '@esbuild/darwin-arm64': 0.25.9+ '@esbuild/darwin-x64': 0.25.9+ '@esbuild/freebsd-arm64': 0.25.9+ '@esbuild/freebsd-x64': 0.25.9+ '@esbuild/linux-arm': 0.25.9+ '@esbuild/linux-arm64': 0.25.9+ '@esbuild/linux-ia32': 0.25.9+ '@esbuild/linux-loong64': 0.25.9+ '@esbuild/linux-mips64el': 0.25.9+ '@esbuild/linux-ppc64': 0.25.9+ '@esbuild/linux-riscv64': 0.25.9+ '@esbuild/linux-s390x': 0.25.9+ '@esbuild/linux-x64': 0.25.9+ '@esbuild/netbsd-arm64': 0.25.9+ '@esbuild/netbsd-x64': 0.25.9+ '@esbuild/openbsd-arm64': 0.25.9+ '@esbuild/openbsd-x64': 0.25.9+ '@esbuild/openharmony-arm64': 0.25.9+ '@esbuild/sunos-x64': 0.25.9+ '@esbuild/win32-arm64': 0.25.9+ '@esbuild/win32-ia32': 0.25.9+ '@esbuild/win32-x64': 0.25.9@@ -21280,50 +25203,56 @@ snapshots:signal-exit: 3.0.7strip-final-newline: 2.0.0+ [email protected]: {}++ dependencies:+ homedir-polyfill: 1.0.3+- [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):+ [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):dependencies:- expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))+ expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))- [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):+ [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):dependencies:'@react-native/assets-registry': 0.73.1blueimp-md5: 2.19.0- expo-constants: 15.4.5([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))- expo-file-system: 16.0.6([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))+ expo-constants: 15.4.5([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))+ expo-file-system: 16.0.6([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))invariant: 2.2.4md5-file: 3.2.3transitivePeerDependencies:- expo- supports-color- [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):+ [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):dependencies:'@expo/config': 8.5.4- expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))+ expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))transitivePeerDependencies:- supports-color- [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):+ [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):dependencies:- expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))+ expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))- [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):+ [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):dependencies:- expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))+ expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))fontfaceobserver: 2.3.0- [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):+ [email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))):dependencies:- expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))+ expo: 50.0.7(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))dependencies:'@expo/config': 8.5.4chalk: 4.1.2commander: 7.2.0- fast-glob: 3.3.2+ fast-glob: 3.3.3find-up: 5.0.0fs-extra: 9.1.0transitivePeerDependencies:@@ -21333,19 +25262,19 @@ snapshots:dependencies:invariant: 2.2.4- [email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))):+ [email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))):dependencies:'@babel/runtime': 7.23.9- '@expo/cli': 0.17.5(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))([email protected])+ '@expo/cli': 0.17.5(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))([email protected])'@expo/config': 8.5.4'@expo/config-plugins': 7.8.4- '@expo/metro-config': 0.17.4(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))+ '@expo/metro-config': 0.17.4(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))'@expo/vector-icons': 14.0.0- babel-preset-expo: 10.0.1(@babel/[email protected])- expo-asset: 9.0.2([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))- expo-file-system: 16.0.6([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))- expo-font: 11.10.3([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))- expo-keep-awake: 12.8.2([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))+ babel-preset-expo: 10.0.1(@babel/[email protected])+ expo-asset: 9.0.2([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))+ expo-file-system: 16.0.6([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))+ expo-font: 11.10.3([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))+ expo-keep-awake: 12.8.2([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))expo-modules-autolinking: 1.10.3expo-modules-core: 1.11.9fbemitter: 3.0.0@@ -21431,6 +25360,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+dependencies:is-extendable: 0.1.1@@ -21456,12 +25387,18 @@ snapshots:transitivePeerDependencies:- glob+ dependencies:+ pure-rand: 6.1.0++ [email protected]: {}+@@ -21498,6 +25435,14 @@ snapshots:merge2: 1.4.1micromatch: 4.0.5+ dependencies:+ '@nodelib/fs.stat': 2.0.5+ '@nodelib/fs.walk': 1.2.8+ glob-parent: 5.1.2+ merge2: 1.4.1+ micromatch: 4.0.8+@@ -21591,6 +25536,10 @@ snapshots:optionalDependencies:picomatch: 4.0.2+ optionalDependencies:+ picomatch: 4.0.3+@@ -21600,6 +25549,8 @@ snapshots:+ [email protected]: {}+@@ -21673,6 +25624,13 @@ snapshots:dependencies:micromatch: 4.0.8+ dependencies:+ detect-file: 1.0.0+ is-glob: 4.0.3+ micromatch: 4.0.8+ resolve-dir: 1.0.1+@@ -21739,37 +25697,23 @@ snapshots:dependencies:fetch-blob: 3.2.0+ [email protected]: {}+- dependencies:- tslib: 2.7.0- optionalDependencies:- '@emotion/is-prop-valid': 0.8.8- react: 18.2.0- react-dom: 18.2.0([email protected])-- [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):- dependencies:- tslib: 2.7.0- optionalDependencies:- '@emotion/is-prop-valid': 0.8.8- react: 18.2.0- react-dom: 18.2.0([email protected])-- [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):dependencies:motion-dom: 11.18.1motion-utils: 11.18.1tslib: 2.7.0optionalDependencies:'@emotion/is-prop-valid': 0.8.8- react: 18.3.1- react-dom: 18.3.1([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])@@ -21806,7 +25750,7 @@ snapshots:optional: true- [email protected](@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:'@formatjs/intl-localematcher': 0.5.6'@orama/orama': 3.0.1@@ -21816,7 +25760,7 @@ snapshots:hast-util-to-jsx-runtime: 2.3.2image-size: 1.1.1negotiator: 1.0.0- react-remove-scroll: 2.6.0(@types/[email protected])([email protected])+ react-remove-scroll: 2.6.0(@types/[email protected])([email protected])remark: 15.0.1remark-gfm: 4.0.0scroll-into-view-if-needed: 3.1.0@@ -21824,51 +25768,51 @@ snapshots:unist-util-visit: 5.0.0optionalDependencies:algoliasearch: 4.24.0- next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])+ next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])transitivePeerDependencies:- '@types/react'- supports-color- [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])):+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])):dependencies:- '@mdx-js/mdx': 3.1.0([email protected])+ '@mdx-js/mdx': 3.1.0([email protected])chokidar: 4.0.1cross-spawn: 7.0.3esbuild: 0.24.0estree-util-value-to-estree: 3.1.2fast-glob: 3.3.2- fumadocs-core: 14.1.1(@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ fumadocs-core: 14.1.1(@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])gray-matter: 4.0.3micromatch: 4.0.8- next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])zod: 3.24.2transitivePeerDependencies:- acorn- supports-color- [email protected](@types/[email protected])(@types/[email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):- dependencies:- '@radix-ui/react-accordion': 1.2.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-collapsible': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-dialog': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-navigation-menu': 1.2.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-popover': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-scroll-area': 1.2.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-tabs': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-accordion': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-navigation-menu': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-scroll-area': 1.2.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-tabs': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@tailwindcss/typography': 0.5.15([email protected])class-variance-authority: 0.7.1- cmdk: 1.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- fumadocs-core: 14.1.1(@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- react: 18.3.1- react-dom: 18.3.1([email protected])- tailwind-merge: 2.5.4+ cmdk: 1.0.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ fumadocs-core: 14.1.1(@types/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ tailwind-merge: 2.6.0optionalDependencies:'@algolia/client-search': 4.24.0algoliasearch: 4.24.0@@ -21890,18 +25834,6 @@ snapshots:- dependencies:- aproba: 2.0.0- color-support: 1.1.3- console-control-strings: 1.1.0- has-unicode: 2.0.1- object-assign: 4.1.1- signal-exit: 3.0.7- string-width: 4.2.3- strip-ansi: 6.0.1- wide-align: 1.1.5-dependencies:extend: 3.0.2@@ -21921,13 +25853,9 @@ snapshots:- encoding- supports-color- [email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])):- dependencies:- next: 14.2.1(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])-- [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])):+ [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])):dependencies:- next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.0.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])@@ -21937,27 +25865,19 @@ snapshots:dependencies:- call-bind-apply-helpers: 1.0.2- es-define-property: 1.0.1es-errors: 1.3.0- es-object-atoms: 1.1.1function-bind: 1.1.2- get-proto: 1.0.1- gopd: 1.2.0- has-symbols: 1.1.0- hasown: 2.0.2- math-intrinsics: 1.1.0+ has-proto: 1.0.1+ has-symbols: 1.0.3+ hasown: 2.0.1- dependencies:- dunder-proto: 1.0.1- es-object-atoms: 1.1.1+ [email protected]: {}dependencies:@@ -21969,10 +25889,23 @@ snapshots:dependencies:call-bind: 1.0.7es-errors: 1.3.0- get-intrinsic: 1.3.0+ get-intrinsic: 1.2.4++ dependencies:+ resolve-pkg-maps: 1.0.0+ dependencies:+ citty: 0.1.6+ consola: 3.4.2+ defu: 6.1.4+ node-fetch-native: 1.6.6+ nypm: 0.6.1+ pathe: 2.0.3+@@ -21983,6 +25916,8 @@ snapshots:dependencies:is-glob: 4.0.3+ [email protected]: {}+dependencies:foreground-child: 3.1.1@@ -22027,6 +25962,20 @@ snapshots:once: 1.4.0path-is-absolute: 1.0.1+ dependencies:+ global-prefix: 1.0.2+ is-windows: 1.0.2+ resolve-dir: 1.0.1++ dependencies:+ expand-tilde: 2.0.2+ homedir-polyfill: 1.0.3+ ini: 1.3.8+ is-windows: 1.0.2+ which: 1.3.1+@@ -22042,7 +25991,15 @@ snapshots:merge2: 1.4.1slash: 3.0.0- [email protected]: {}+ [email protected]: {}++ dependencies:+ csstype: 3.1.3++ dependencies:+ get-intrinsic: 1.2.4@@ -22060,10 +26017,10 @@ snapshots:section-matter: 1.0.0strip-bom-string: 1.0.0dependencies:cron-parser: 4.9.0- ioredis: 5.4.1+ ioredis: 5.7.0dependencies:@@ -22077,9 +26034,16 @@ snapshots:ufo: 1.6.1uncrypto: 0.1.3dependencies:- react: 18.2.0+ cookie-es: 2.0.0+ fetchdts: 0.1.7+ rou3: 0.7.7+ srvx: 0.8.15++ dependencies:+ react: 19.1.1@@ -22089,20 +26053,24 @@ snapshots:dependencies:- es-define-property: 1.0.1+ es-define-property: 1.0.0++ [email protected]: {}- [email protected]: {}+ [email protected]: {}dependencies:- has-symbols: 1.1.0-- [email protected]: {}+ has-symbols: 1.0.3+ dependencies:+ function-bind: 1.1.2+dependencies:function-bind: 1.1.2@@ -22125,7 +26093,7 @@ snapshots:'@types/hast': 3.0.4devlop: 1.1.0hast-util-from-parse5: 8.0.3- parse5: 7.1.2+ parse5: 7.3.0vfile: 6.0.1vfile-message: 4.0.2@@ -22159,7 +26127,7 @@ snapshots:hast-util-to-parse5: 8.0.0html-void-elements: 3.0.0mdast-util-to-hast: 13.1.0- parse5: 7.1.2+ parse5: 7.3.0unist-util-position: 5.0.0unist-util-visit: 5.0.0vfile: 6.0.3@@ -22298,10 +26266,20 @@ snapshots:dependencies:react-is: 16.13.1+ dependencies:+ parse-passwd: 1.0.0++ [email protected]: {}+dependencies:lru-cache: 6.0.0+ dependencies:+ whatwg-encoding: 3.1.1+@@ -22316,6 +26294,13 @@ snapshots:+ dependencies:+ domelementtype: 2.3.0+ domhandler: 5.0.3+ domutils: 3.2.2+ entities: 6.0.1+dependencies:domelementtype: 2.3.0@@ -22333,17 +26318,31 @@ snapshots:statuses: 2.0.1toidentifier: 1.0.1+ dependencies:+ agent-base: 7.1.1+ debug: 4.4.1+ transitivePeerDependencies:+ - supports-color+dependencies:agent-base: 6.0.2- debug: 4.4.0+ debug: 4.4.1transitivePeerDependencies:- supports-colordependencies:agent-base: 7.1.1- debug: 4.4.0+ debug: 4.4.1+ transitivePeerDependencies:+ - supports-color++ dependencies:+ agent-base: 7.1.4+ debug: 4.4.1transitivePeerDependencies:- supports-color@@ -22351,12 +26350,6 @@ snapshots:- dependencies:- decode-ico: 0.4.1- lodepng: 2.2.0- resize-image-data: 0.3.1-dependencies:safer-buffer: 2.1.2@@ -22373,17 +26366,29 @@ snapshots:dependencies:queue: 6.0.2- [email protected]: {}+ [email protected]: {}dependencies:caller-path: 2.0.0resolve-from: 3.0.0+ dependencies:+ parent-module: 1.0.1+ resolve-from: 4.0.0++ dependencies:+ acorn: 8.15.0+ acorn-import-attributes: 1.9.5([email protected])+ cjs-module-lexer: 1.4.1+ module-details-from-path: 1.0.3+dependencies:- acorn: 8.11.3- acorn-import-attributes: 1.9.5([email protected])+ acorn: 8.15.0+ acorn-import-attributes: 1.9.5([email protected])cjs-module-lexer: 1.4.1module-details-from-path: 1.0.3@@ -22408,10 +26413,10 @@ snapshots:dependencies:- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])dependencies:@@ -22446,7 +26451,7 @@ snapshots:dependencies:es-errors: 1.3.0hasown: 2.0.2- side-channel: 1.1.0+ side-channel: 1.0.5@@ -22456,9 +26461,9 @@ snapshots:dependencies:loose-envify: 1.4.0dependencies:- '@ioredis/commands': 1.2.0+ '@ioredis/commands': 1.3.0cluster-key-slot: 1.1.2debug: 4.4.0denque: 2.1.0@@ -22507,7 +26512,7 @@ snapshots:dependencies:call-bind: 1.0.7- get-intrinsic: 1.3.0+ get-intrinsic: 1.2.4@@ -22610,6 +26615,8 @@ snapshots:dependencies:isobject: 3.0.1+ [email protected]: {}+@@ -22641,7 +26648,7 @@ snapshots:dependencies:- has-symbols: 1.1.0+ has-symbols: 1.0.3dependencies:@@ -22681,6 +26688,8 @@ snapshots:+ [email protected]: {}+@@ -22722,7 +26731,7 @@ snapshots:'@jest/environment': 29.7.0'@jest/fake-timers': 29.7.0'@jest/types': 29.6.3- '@types/node': 20.14.8+ '@types/node': 24.7.1jest-mock: 29.7.0jest-util: 29.7.0@@ -22730,7 +26739,7 @@ snapshots:dependencies:- '@babel/code-frame': 7.26.2+ '@babel/code-frame': 7.27.1'@jest/types': 29.6.3'@types/stack-utils': 2.0.3chalk: 4.1.2@@ -22743,13 +26752,13 @@ snapshots:dependencies:'@jest/types': 29.6.3- '@types/node': 20.14.8+ '@types/node': 24.7.1jest-util: 29.7.0dependencies:'@jest/types': 29.6.3- '@types/node': 20.14.8+ '@types/node': 24.7.1chalk: 4.1.2ci-info: 3.9.0graceful-fs: 4.2.11@@ -22766,21 +26775,18 @@ snapshots:dependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1jest-util: 29.7.0merge-stream: 2.0.0supports-color: 8.1.1- [email protected]: {}-- optional: true+ [email protected]: {}dependencies:@@ -22792,8 +26798,6 @@ snapshots:- [email protected]: {}-@@ -22821,19 +26825,19 @@ snapshots:- dependencies:- '@babel/core': 7.24.5- '@babel/parser': 7.26.3- '@babel/plugin-proposal-class-properties': 7.18.6(@babel/[email protected])- '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6(@babel/[email protected])- '@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/[email protected])- '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])- '@babel/preset-env': 7.23.9(@babel/[email protected])- '@babel/preset-flow': 7.23.3(@babel/[email protected])- '@babel/preset-typescript': 7.23.3(@babel/[email protected])- '@babel/register': 7.23.7(@babel/[email protected])- babel-core: 7.0.0-bridge.0(@babel/[email protected])+ dependencies:+ '@babel/core': 7.28.3+ '@babel/parser': 7.28.3+ '@babel/plugin-proposal-class-properties': 7.18.6(@babel/[email protected])+ '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6(@babel/[email protected])+ '@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/[email protected])+ '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])+ '@babel/preset-env': 7.23.9(@babel/[email protected])+ '@babel/preset-flow': 7.23.3(@babel/[email protected])+ '@babel/preset-typescript': 7.27.1(@babel/[email protected])+ '@babel/register': 7.23.7(@babel/[email protected])+ babel-core: 7.0.0-bridge.0(@babel/[email protected])chalk: 4.1.2flow-parser: 0.206.0graceful-fs: 4.2.11@@ -22846,6 +26850,33 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ cssstyle: 4.6.0+ data-urls: 5.0.0+ decimal.js: 10.6.0+ html-encoding-sniffer: 4.0.0+ http-proxy-agent: 7.0.2+ https-proxy-agent: 7.0.6+ is-potential-custom-element-name: 1.0.1+ nwsapi: 2.2.21+ parse5: 7.3.0+ rrweb-cssom: 0.8.0+ saxes: 6.0.0+ symbol-tree: 3.2.4+ tough-cookie: 5.1.2+ w3c-xmlserializer: 5.0.0+ webidl-conversions: 7.0.0+ whatwg-encoding: 3.1.1+ whatwg-mimetype: 4.0.0+ whatwg-url: 14.2.0+ ws: 8.18.3+ xml-name-validator: 5.0.0+ transitivePeerDependencies:+ - bufferutil+ - supports-color+ - utf-8-validate+@@ -22856,6 +26887,8 @@ snapshots:+ [email protected]: {}+dependencies:clone: 2.1.2@@ -22953,27 +26986,57 @@ snapshots:optional: true+ optional: true+optional: true+ optional: true++ optional: true+optional: true+ optional: true+optional: true+ optional: true+optional: true+ optional: true+optional: true+ optional: true+optional: true+ optional: true++ optional: true+optional: true+ optional: true+dependencies:detect-libc: 1.0.3@@ -22987,7 +27050,20 @@ snapshots:lightningcss-linux-x64-musl: 1.19.0lightningcss-win32-x64-msvc: 1.19.0- [email protected]: {}+ dependencies:+ detect-libc: 2.0.3+ optionalDependencies:+ lightningcss-darwin-arm64: 1.30.1+ lightningcss-darwin-x64: 1.30.1+ lightningcss-freebsd-x64: 1.30.1+ lightningcss-linux-arm-gnueabihf: 1.30.1+ lightningcss-linux-arm64-gnu: 1.30.1+ lightningcss-linux-arm64-musl: 1.30.1+ lightningcss-linux-x64-gnu: 1.30.1+ lightningcss-linux-x64-musl: 1.30.1+ lightningcss-win32-arm64-msvc: 1.30.1+ lightningcss-win32-x64-msvc: 1.30.1@@ -23048,10 +27124,6 @@ snapshots:- dependencies:- '@canvas/image-data': 1.0.0-dependencies:chalk: 2.4.2@@ -23084,11 +27156,11 @@ snapshots:dependencies:js-tokens: 4.0.0dependencies:lottie-web: 5.12.2- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])@@ -23111,24 +27183,26 @@ snapshots:dependencies:yallist: 4.0.0dependencies:- react: 18.3.1+ react: 19.1.1dependencies:- react: 18.2.0+ react: 19.1.1+ [email protected]: {}+dependencies:'@jridgewell/sourcemap-codec': 1.5.0dependencies:- '@babel/parser': 7.26.3- '@babel/types': 7.26.3+ '@babel/parser': 7.28.3+ '@babel/types': 7.28.2source-map-js: 1.2.1@@ -23136,10 +27210,6 @@ snapshots:pify: 4.0.1semver: 5.7.2- dependencies:- semver: 6.3.1-dependencies:tmpl: 1.0.5@@ -23156,8 +27226,6 @@ snapshots:dependencies:css-mediaquery: 0.1.2- [email protected]: {}-dependencies:'@babel/runtime': 7.23.9@@ -23175,10 +27243,10 @@ snapshots:mmdb-lib: 2.2.0tiny-lru: 11.2.11dependencies:marked: 7.0.4- react: 18.2.0+ react: 19.1.1dependencies:@@ -23397,7 +27465,7 @@ snapshots:dependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3hermes-parser: 0.19.1nullthrows: 1.1.1transitivePeerDependencies:@@ -23459,8 +27527,8 @@ snapshots:dependencies:- '@babel/traverse': 7.26.4- '@babel/types': 7.26.3+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2invariant: 2.2.4metro-symbolicate: 0.80.6nullthrows: 1.1.1@@ -23483,20 +27551,20 @@ snapshots:dependencies:- '@babel/core': 7.24.5- '@babel/generator': 7.26.3- '@babel/template': 7.25.9- '@babel/traverse': 7.26.4+ '@babel/core': 7.28.3+ '@babel/generator': 7.28.3+ '@babel/template': 7.27.2+ '@babel/traverse': 7.28.3nullthrows: 1.1.1transitivePeerDependencies:- supports-colordependencies:- '@babel/core': 7.24.5- '@babel/generator': 7.26.3- '@babel/parser': 7.26.3- '@babel/types': 7.26.3+ '@babel/core': 7.28.3+ '@babel/generator': 7.28.3+ '@babel/parser': 7.28.3+ '@babel/types': 7.28.2metro: 0.80.6metro-babel-transformer: 0.80.6metro-cache: 0.80.6@@ -23513,13 +27581,13 @@ snapshots:dependencies:- '@babel/code-frame': 7.26.2- '@babel/core': 7.24.5- '@babel/generator': 7.26.3- '@babel/parser': 7.26.3- '@babel/template': 7.25.9- '@babel/traverse': 7.26.4- '@babel/types': 7.26.3+ '@babel/code-frame': 7.27.1+ '@babel/core': 7.28.3+ '@babel/generator': 7.28.3+ '@babel/parser': 7.28.3+ '@babel/template': 7.27.2+ '@babel/traverse': 7.28.3+ '@babel/types': 7.28.2accepts: 1.3.8chalk: 4.1.2ci-info: 2.0.0@@ -23694,8 +27762,8 @@ snapshots:dependencies:- acorn: 8.11.3- acorn-jsx: 5.3.2([email protected])+ acorn: 8.15.0+ acorn-jsx: 5.3.2([email protected])micromark-extension-mdx-expression: 3.0.0micromark-extension-mdx-jsx: 3.0.1micromark-extension-mdx-md: 2.0.0@@ -23821,7 +27889,7 @@ snapshots:dependencies:'@types/debug': 4.1.12- debug: 4.4.0+ debug: 4.4.1decode-named-character-reference: 1.0.2devlop: 1.1.0micromark-core-commonmark: 2.0.1@@ -23862,10 +27930,30 @@ snapshots:+ [email protected]: {}++ dependencies:+ '@cspotcode/source-map-support': 0.8.1+ acorn: 8.14.0+ acorn-walk: 8.3.2+ exit-hook: 2.2.1+ glob-to-regexp: 0.4.1+ sharp: 0.33.5+ stoppable: 1.1.0+ undici: 7.14.0+ workerd: 1.20251008.0+ ws: 8.18.0+ youch: 4.1.0-beta.10+ zod: 3.22.3+ transitivePeerDependencies:+ - bufferutil+ - utf-8-validate+dependencies:brace-expansion: 1.1.11@@ -23874,6 +27962,10 @@ snapshots:dependencies:brace-expansion: 2.0.1+ dependencies:+ brace-expansion: 2.0.1+dependencies:brace-expansion: 2.0.1@@ -23944,6 +28036,15 @@ snapshots:+ [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ framer-motion: 11.18.2(@emotion/[email protected])([email protected]([email protected]))([email protected])+ tslib: 2.7.0+ optionalDependencies:+ '@emotion/is-prop-valid': 0.8.8+ react: 19.1.1+ react-dom: 19.1.1([email protected])+@@ -23966,6 +28067,14 @@ snapshots:optionalDependencies:msgpackr-extract: 3.0.2+ dependencies:+ '@types/minimatch': 3.0.5+ array-differ: 3.0.0+ array-union: 2.1.0+ arrify: 2.0.1+ minimatch: 3.1.2+@@ -23998,63 +28107,16 @@ snapshots:- [email protected]: {}-- [email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):- dependencies:- '@babel/runtime': 7.23.9- '@panva/hkdf': 1.1.1- cookie: 0.5.0- jose: 4.15.4- next: 14.2.1(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- oauth: 0.9.15- openid-client: 5.6.4- preact: 10.19.5- preact-render-to-string: 5.2.6([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- uuid: 8.3.2-- [email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):- dependencies:- next: 14.2.1(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])-+ [email protected]: {}+dependencies:- react: 18.3.1- react-dom: 18.3.1([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])- [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):- dependencies:- '@next/env': 14.2.1- '@swc/helpers': 0.5.5- busboy: 1.6.0- caniuse-lite: 1.0.30001674- graceful-fs: 4.2.11- postcss: 8.4.31- react: 18.2.0- react-dom: 18.2.0([email protected])- styled-jsx: 5.1.1(@babel/[email protected])([email protected])- optionalDependencies:- '@next/swc-darwin-arm64': 14.2.1- '@next/swc-darwin-x64': 14.2.1- '@next/swc-linux-arm64-gnu': 14.2.1- '@next/swc-linux-arm64-musl': 14.2.1- '@next/swc-linux-x64-gnu': 14.2.1- '@next/swc-linux-x64-musl': 14.2.1- '@next/swc-win32-arm64-msvc': 14.2.1- '@next/swc-win32-ia32-msvc': 14.2.1- '@next/swc-win32-x64-msvc': 14.2.1- '@opentelemetry/api': 1.9.0- transitivePeerDependencies:- - '@babel/core'- - babel-plugin-macros-- [email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 14.2.1'@swc/helpers': 0.5.5@@ -24062,9 +28124,9 @@ snapshots:caniuse-lite: 1.0.30001674graceful-fs: 4.2.11postcss: 8.4.31- react: 18.2.0- react-dom: 18.3.1([email protected])- styled-jsx: 5.1.1(@babel/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ styled-jsx: 5.1.1([email protected])optionalDependencies:'@next/swc-darwin-arm64': 14.2.1'@next/swc-darwin-x64': 14.2.1@@ -24080,7 +28142,7 @@ snapshots:- '@babel/core'- babel-plugin-macros- [email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 15.0.3'@swc/counter': 0.1.3@@ -24088,9 +28150,9 @@ snapshots:busboy: 1.6.0caniuse-lite: 1.0.30001674postcss: 8.4.31- react: 18.3.1- react-dom: 18.3.1([email protected])- styled-jsx: 5.1.6([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ styled-jsx: 5.1.6([email protected])optionalDependencies:'@next/swc-darwin-arm64': 15.0.3'@next/swc-darwin-x64': 15.0.3@@ -24106,7 +28168,7 @@ snapshots:- '@babel/core'- babel-plugin-macros- [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 15.0.4'@swc/counter': 0.1.3@@ -24114,9 +28176,9 @@ snapshots:busboy: 1.6.0caniuse-lite: 1.0.30001674postcss: 8.4.31- react: 18.2.0- react-dom: 18.2.0([email protected])- styled-jsx: 5.1.6(@babel/[email protected])([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])optionalDependencies:'@next/swc-darwin-arm64': 15.0.4'@next/swc-darwin-x64': 15.0.4@@ -24132,14 +28194,32 @@ snapshots:- '@babel/core'- babel-plugin-macros- [email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):dependencies:- '@types/nprogress': 0.2.3- next: 14.2.1(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- nprogress: 0.2.0- prop-types: 15.8.1- react: 18.2.0- react-dom: 18.2.0([email protected])+ '@next/env': 15.0.4+ '@swc/counter': 0.1.3+ '@swc/helpers': 0.5.13+ busboy: 1.6.0+ caniuse-lite: 1.0.30001674+ postcss: 8.4.31+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])+ optionalDependencies:+ '@next/swc-darwin-arm64': 15.0.4+ '@next/swc-darwin-x64': 15.0.4+ '@next/swc-linux-arm64-gnu': 15.0.4+ '@next/swc-linux-arm64-musl': 15.0.4+ '@next/swc-linux-x64-gnu': 15.0.4+ '@next/swc-linux-x64-musl': 15.0.4+ '@next/swc-win32-arm64-msvc': 15.0.4+ '@next/swc-win32-x64-msvc': 15.0.4+ '@opentelemetry/api': 1.9.0+ sharp: 0.33.5+ transitivePeerDependencies:+ - '@babel/core'+ - babel-plugin-macros+ optional: true@@ -24151,8 +28231,6 @@ snapshots:- [email protected]: {}-dependencies:minimatch: 3.1.2@@ -24180,16 +28258,10 @@ snapshots:- [email protected]: {}-- dependencies:- abbrev: 1.1.1-dependencies:abbrev: 2.0.0@@ -24213,15 +28285,6 @@ snapshots:dependencies:path-key: 3.1.1- dependencies:- are-we-there-yet: 2.0.0- console-control-strings: 1.1.0- gauge: 3.0.2- set-blocking: 2.0.0-- [email protected]: {}-dependencies:boolbase: 1.0.0@@ -24232,24 +28295,31 @@ snapshots:dependencies:esm-env: 1.2.2- [email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected](patch_hash=4f93812bf7a04685f9477b2935e3acbf2aa24dfbb1b00b9ae0ed8f7a2877a98e)(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:- mitt: 3.0.1- react: 18.2.0+ '@standard-schema/spec': 1.0.0+ react: 19.1.1optionalDependencies:- next: 14.2.1(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.0.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- [email protected]: {}+ [email protected]: {}++ dependencies:+ citty: 0.1.6+ consola: 3.4.2+ pathe: 2.0.3+ pkg-types: 2.3.0+ tinyexec: 1.0.1- [email protected]: {}-- [email protected]: {}+ [email protected]: {}@@ -24257,7 +28327,7 @@ snapshots:dependencies:call-bind: 1.0.7define-properties: 1.2.1- has-symbols: 1.1.0+ has-symbols: 1.0.3object-keys: 1.1.1@@ -24270,8 +28340,6 @@ snapshots:- [email protected]: {}-@@ -24329,13 +28397,6 @@ snapshots:is-docker: 2.2.1is-wsl: 2.2.0- dependencies:- jose: 4.15.4- lru-cache: 6.0.0- object-hash: 2.2.0- oidc-token-hash: 5.0.3-dependencies:chalk: 2.4.2@@ -24431,6 +28492,10 @@ snapshots:+ dependencies:+ callsites: 3.1.0+dependencies:character-entities: 1.2.4@@ -24456,6 +28521,13 @@ snapshots:error-ex: 1.3.2json-parse-better-errors: 1.0.2+ dependencies:+ '@babel/code-frame': 7.27.1+ error-ex: 1.3.2+ json-parse-even-better-errors: 2.3.1+ lines-and-columns: 1.2.4+dependencies:'@types/nlcst': 2.0.3@@ -24465,6 +28537,8 @@ snapshots:unist-util-visit-children: 3.0.0vfile: 6.0.3+ [email protected]: {}+dependencies:pngjs: 3.4.0@@ -24472,12 +28546,25 @@ snapshots:dependencies:domhandler: 5.0.3- parse5: 7.1.2+ parse5: 7.3.0++ dependencies:+ domhandler: 5.0.3+ parse5: 7.3.0++ dependencies:+ parse5: 7.3.0dependencies:entities: 4.5.0+ dependencies:+ entities: 6.0.1+dependencies:leac: 0.6.0@@ -24509,6 +28596,8 @@ snapshots:+ [email protected]: {}+@@ -24525,6 +28614,8 @@ snapshots:duplexify: 3.7.1through2: 2.0.5+ [email protected]: {}+@@ -24537,8 +28628,6 @@ snapshots:postgres-date: 1.0.7postgres-interval: 1.2.0- [email protected]: {}-@@ -24547,6 +28636,8 @@ snapshots:+ [email protected]: {}+@@ -24582,6 +28673,16 @@ snapshots:dependencies:find-up: 3.0.0+ dependencies:+ confbox: 0.2.2+ exsolve: 1.0.7+ pathe: 2.0.3++ dependencies:+ semver-compare: 1.0.0+dependencies:'@xmldom/xmldom': 0.8.10@@ -24592,59 +28693,35 @@ snapshots:- dependencies:- postcss: 8.4.35- postcss-value-parser: 4.2.0- read-cache: 1.0.0- resolve: 1.22.8-dependencies:- postcss: 8.4.47+ postcss: 8.5.3postcss-value-parser: 4.2.0read-cache: 1.0.0resolve: 1.22.8- dependencies:- camelcase-css: 2.0.1- postcss: 8.4.35-dependencies:camelcase-css: 2.0.1- postcss: 8.4.47+ postcss: 8.5.3dependencies:lilconfig: 3.1.0yaml: 2.3.4optionalDependencies:- postcss: 8.4.35+ postcss: 8.5.3dependencies:lilconfig: 3.1.0yaml: 2.3.4optionalDependencies:- postcss: 8.4.47+ postcss: 8.5.6dependencies:- lilconfig: 3.1.0- yaml: 2.3.4- optionalDependencies:postcss: 8.5.3-- dependencies:- postcss: 8.4.35- postcss-selector-parser: 6.0.15-- dependencies:- postcss: 8.4.47postcss-selector-parser: 6.1.2@@ -24652,11 +28729,6 @@ snapshots:cssesc: 3.0.0util-deprecate: 1.0.2- dependencies:- cssesc: 3.0.0- util-deprecate: 1.0.2-dependencies:cssesc: 3.0.0@@ -24670,12 +28742,6 @@ snapshots:picocolors: 1.1.1source-map-js: 1.2.1- dependencies:- nanoid: 3.3.7- picocolors: 1.0.0- source-map-js: 1.0.2-dependencies:nanoid: 3.3.7@@ -24688,6 +28754,12 @@ snapshots:picocolors: 1.1.1source-map-js: 1.2.1+ dependencies:+ nanoid: 3.3.11+ picocolors: 1.1.1+ source-map-js: 1.2.1+@@ -24698,14 +28770,7 @@ snapshots:dependencies:xtend: 4.0.2- dependencies:- preact: 10.19.5- pretty-format: 3.8.0-- [email protected]: {}-- [email protected]: {}+ [email protected]: {}@@ -24716,31 +28781,46 @@ snapshots:ansi-styles: 4.3.0react-is: 17.0.2+ dependencies:+ ansi-regex: 5.0.1+ ansi-styles: 5.2.0+ react-is: 17.0.2+dependencies:'@jest/schemas': 29.6.3ansi-styles: 5.2.0- react-is: 18.2.0-- [email protected]: {}+ react-is: 18.3.1dependencies:'@prisma/generator-helper': 5.20.0- prisma: 5.9.1+ prisma: 6.14.0([email protected])([email protected])tslib: 2.7.0- typescript: 5.3.3+ typescript: 5.9.3dependencies:'@prisma/engines': 5.9.1+ dependencies:+ '@prisma/config': 6.14.0([email protected])+ '@prisma/engines': 6.14.0+ optionalDependencies:+ typescript: 5.9.3+ transitivePeerDependencies:+ - magicast++ [email protected]: {}+@@ -24772,7 +28852,7 @@ snapshots:call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.23.3- get-intrinsic: 1.3.0+ get-intrinsic: 1.2.4iterate-value: 1.0.2@@ -24816,7 +28896,7 @@ snapshots:'@protobufjs/path': 1.1.2'@protobufjs/pool': 1.1.0'@protobufjs/utf8': 1.1.0- '@types/node': 20.14.8+ '@types/node': 22.18.0long: 5.2.3@@ -24839,18 +28919,22 @@ snapshots:- [email protected](@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected]: {}++ [email protected](@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:- '@radix-ui/react-dialog': 1.0.5(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])mitt: 3.0.1- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])dependencies:- side-channel: 1.1.0+ side-channel: 1.0.5++ [email protected]: {}@@ -24895,30 +28979,35 @@ snapshots:iconv-lite: 0.6.3unpipe: 1.0.0dependencies:'@babel/runtime': 7.23.9classnames: 2.5.1- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])resize-observer-polyfill: 1.5.1dependencies:'@babel/runtime': 7.23.9- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])react-is: 18.2.0dependencies:'@babel/runtime': 7.23.9classnames: 2.5.1- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])++ dependencies:+ defu: 6.1.4+ destr: 2.0.5dependencies:@@ -24927,22 +29016,25 @@ snapshots:minimist: 1.2.8strip-json-comments: 2.0.1dependencies:- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):dependencies:- react: 18.2.0- react-dom: 18.2.0([email protected])+ motion: 11.18.2(@emotion/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ transitivePeerDependencies:+ - '@emotion/is-prop-valid'dependencies:- date-fns: 3.3.1- react: 18.2.0+ '@date-fns/tz': 1.4.1+ date-fns: 4.1.0+ date-fns-jalali: 4.1.0-0+ react: 19.1.1dependencies:@@ -24952,25 +29044,19 @@ snapshots:- bufferutil- utf-8-validate- dependencies:- loose-envify: 1.4.0- react: 18.2.0- scheduler: 0.23.2-dependencies:- loose-envify: 1.4.0- react: 18.2.0- scheduler: 0.23.2+ react: 19.1.1+ scheduler: 0.26.0dependencies:- loose-envify: 1.4.0- react: 18.3.1- scheduler: 0.23.2+ clsx: 2.1.1+ prop-types: 15.8.1+ react: 19.1.1+ react-dom: 19.1.1([email protected])- [email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@babel/core': 7.24.5'@babel/parser': 7.24.5@@ -24982,7 +29068,7 @@ snapshots:glob: 10.3.4log-symbols: 4.1.0mime-types: 2.1.35- next: 15.0.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.0.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])normalize-path: 3.0.0ora: 5.4.1socket.io: 4.8.0@@ -24998,15 +29084,26 @@ snapshots:- supports-color- utf-8-validatedependencies:- react: 18.2.0+ clsx: 2.1.1+ fast-equals: 4.0.3+ prop-types: 15.8.1+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ resize-observer-polyfill: 1.5.1++ dependencies:+ react: 19.1.1dependencies:hoist-non-react-statics: 3.3.2- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])@@ -25014,16 +29111,18 @@ snapshots:+ [email protected]: {}+dependencies:'@types/hast': 3.0.4'@types/mdast': 4.0.3- '@types/react': 18.2.56+ '@types/react': 19.1.11devlop: 1.1.0hast-util-to-jsx-runtime: 2.3.2html-url-attributes: 3.0.1mdast-util-to-hast: 13.1.0- react: 18.2.0+ react: 19.1.1remark-parse: 11.0.0remark-rehype: 11.1.2unified: 11.0.5@@ -25032,74 +29131,24 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:- react: 18.3.1- react-dom: 18.3.1([email protected])-- [email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]):- dependencies:- '@jest/create-cache-key-function': 29.7.0- '@react-native-community/cli': 12.3.6- '@react-native-community/cli-platform-android': 12.3.6- '@react-native-community/cli-platform-ios': 12.3.6- '@react-native/assets-registry': 0.73.1- '@react-native/codegen': 0.73.3(@babel/[email protected](@babel/[email protected]))- '@react-native/community-cli-plugin': 0.73.17(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))- '@react-native/gradle-plugin': 0.73.4- '@react-native/js-polyfills': 0.73.1- '@react-native/normalize-colors': 0.73.2- '@react-native/virtualized-lists': 0.73.4([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))- abort-controller: 3.0.0- anser: 1.4.10- ansi-regex: 5.0.1- base64-js: 1.5.1- chalk: 4.1.2- deprecated-react-native-prop-types: 5.0.0- event-target-shim: 5.0.1- flow-enums-runtime: 0.0.6- invariant: 2.2.4- jest-environment-node: 29.7.0- jsc-android: 250231.0.0- memoize-one: 5.2.1- metro-runtime: 0.80.6- metro-source-map: 0.80.6- mkdirp: 0.5.6- nullthrows: 1.1.1- pretty-format: 26.6.2- promise: 8.3.0- react: 18.2.0- react-devtools-core: 4.28.5- react-refresh: 0.14.0- react-shallow-renderer: 16.15.0([email protected])- regenerator-runtime: 0.13.11- scheduler: 0.24.0-canary-efb381bbf-20230505- stacktrace-parser: 0.1.10- whatwg-fetch: 3.6.20- ws: 6.2.2- yargs: 17.7.2- transitivePeerDependencies:- - '@babel/core'- - '@babel/preset-env'- - bufferutil- - encoding- - supports-color- - utf-8-validate- optional: true+ react: 19.1.1+ react-dom: 19.1.1([email protected])- [email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]):+ [email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]):dependencies:'@jest/create-cache-key-function': 29.7.0'@react-native-community/cli': 12.3.6'@react-native-community/cli-platform-android': 12.3.6'@react-native-community/cli-platform-ios': 12.3.6'@react-native/assets-registry': 0.73.1- '@react-native/codegen': 0.73.3(@babel/[email protected](@babel/[email protected]))- '@react-native/community-cli-plugin': 0.73.17(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))+ '@react-native/codegen': 0.73.3(@babel/[email protected](@babel/[email protected]))+ '@react-native/community-cli-plugin': 0.73.17(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))'@react-native/gradle-plugin': 0.73.4'@react-native/js-polyfills': 0.73.1'@react-native/normalize-colors': 0.73.2- '@react-native/virtualized-lists': 0.73.4([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))+ '@react-native/virtualized-lists': 0.73.4([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))abort-controller: 3.0.0anser: 1.4.10ansi-regex: 5.0.1@@ -25118,10 +29167,10 @@ snapshots:nullthrows: 1.1.1pretty-format: 26.6.2promise: 8.3.0- react: 18.3.1+ react: 19.1.1react-devtools-core: 4.28.5react-refresh: 0.14.0- react-shallow-renderer: 16.15.0([email protected])+ react-shallow-renderer: 16.15.0([email protected])regenerator-runtime: 0.13.11scheduler: 0.24.0-canary-efb381bbf-20230505stacktrace-parser: 0.1.10@@ -25136,201 +29185,197 @@ snapshots:- supports-color- utf-8-validatedependencies:- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])dependencies:fast-deep-equal: 2.0.1- [email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected]):+ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])([email protected]):dependencies:'@babel/runtime': 7.23.9'@types/hoist-non-react-statics': 3.3.5'@types/use-sync-external-store': 0.0.3hoist-non-react-statics: 3.3.2- react: 18.2.0+ react: 19.1.1react-is: 18.2.0- use-sync-external-store: 1.2.0([email protected])+ use-sync-external-store: 1.2.0([email protected])optionalDependencies:- '@types/react': 18.2.56- '@types/react-dom': 18.2.19- react-dom: 18.2.0([email protected])- react-native: 0.73.6(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected])- redux: 4.2.1+ '@types/react': 19.1.11+ '@types/react-dom': 19.1.8(@types/[email protected])+ react-dom: 19.1.1([email protected])+ react-native: 0.73.6(@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected])+ redux: 5.0.1+ [email protected]: {}+dependencies:- react: 18.2.0- react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])tslib: 2.7.0optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- react: 18.3.1- react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])tslib: 2.7.0optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.3.1- react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])tslib: 2.7.0optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.2.0- react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])- react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-remove-scroll-bar: 2.3.6(@types/[email protected])([email protected])+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])tslib: 2.7.0- use-callback-ref: 1.3.1(@types/[email protected])([email protected])- use-sidecar: 1.1.2(@types/[email protected])([email protected])+ use-callback-ref: 1.3.1(@types/[email protected])([email protected])+ use-sidecar: 1.1.2(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- react: 18.2.0- react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])- react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])tslib: 2.7.0- use-callback-ref: 1.3.1(@types/[email protected])([email protected])- use-sidecar: 1.1.2(@types/[email protected])([email protected])+ use-callback-ref: 1.3.1(@types/[email protected])([email protected])+ use-sidecar: 1.1.2(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- react: 18.3.1- react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])- react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-remove-scroll-bar: 2.3.6(@types/[email protected])([email protected])+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])tslib: 2.7.0- use-callback-ref: 1.3.1(@types/[email protected])([email protected])- use-sidecar: 1.1.2(@types/[email protected])([email protected])+ use-callback-ref: 1.3.1(@types/[email protected])([email protected])+ use-sidecar: 1.1.2(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.3.1- react-remove-scroll-bar: 2.3.6(@types/[email protected])([email protected])- react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ react: 19.1.1+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])tslib: 2.7.0- use-callback-ref: 1.3.1(@types/[email protected])([email protected])- use-sidecar: 1.1.2(@types/[email protected])([email protected])+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.3(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11++ dependencies:+ prop-types: 15.8.1+ react: 19.1.1+ transitivePeerDependencies:+ - react-domdependencies:hyphenate-style-name: 1.0.4matchmediaquery: 0.3.1prop-types: 15.8.1- react: 18.2.0+ react: 19.1.1shallow-equal: 1.2.1- dependencies:- object-assign: 4.1.1- react: 18.2.0- react-is: 18.2.0- optional: true-dependencies:object-assign: 4.1.1- react: 18.3.1+ react: 19.1.1react-is: 18.2.0dependencies:d3-geo: 2.0.2d3-selection: 2.0.0d3-zoom: 2.0.0prop-types: 15.8.1- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])topojson-client: 3.1.0dependencies:fast-equals: 5.0.1prop-types: 15.8.1- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])dependencies:get-nonce: 1.0.1invariant: 2.2.4- react: 18.2.0+ react: 19.1.1tslib: 2.7.0optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:get-nonce: 1.0.1- invariant: 2.2.4- react: 18.3.1+ react: 19.1.1tslib: 2.7.0optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:d3-geo: 2.0.2- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])tslib: 2.6.2dependencies:'@babel/runtime': 7.23.9highlight.js: 10.7.3lowlight: 1.20.0prismjs: 1.29.0- react: 18.2.0+ react: 19.1.1refractor: 3.6.0dependencies:'@babel/runtime': 7.23.9dom-helpers: 5.2.1- loose-envify: 1.4.0- prop-types: 15.8.1- react: 18.2.0- react-dom: 18.2.0([email protected])-- dependencies:- react: 18.2.0- react-dom: 18.2.0([email protected])+ loose-envify: 1.4.0+ prop-types: 15.8.1+ react: 19.1.1+ react-dom: 19.1.1([email protected])dependencies:- react: 18.2.0- react-dom: 18.2.0([email protected])+ react: 19.1.1+ react-dom: 19.1.1([email protected])dependencies:- loose-envify: 1.4.0+ react: 19.1.1+ react-dom: 19.1.1([email protected])- dependencies:- loose-envify: 1.4.0+ [email protected]: {}dependencies:@@ -25377,21 +29422,29 @@ snapshots:source-map: 0.6.1tslib: 2.7.0+ dependencies:+ ast-types: 0.16.1+ esprima: 4.0.1+ source-map: 0.6.1+ tiny-invariant: 1.3.3+ tslib: 2.7.0+dependencies:decimal.js-light: 2.5.1dependencies:- clsx: 2.1.0+ clsx: 2.1.1eventemitter3: 4.0.7lodash: 4.17.21- react: 18.2.0- react-dom: 18.2.0([email protected])- react-is: 16.13.1+ react: 19.1.1+ react-dom: 19.1.1([email protected])+ react-is: 18.3.1recharts-scale: 0.4.5- tiny-invariant: 1.3.1+ tiny-invariant: 1.3.3victory-vendor: 36.9.1@@ -25400,9 +29453,9 @@ snapshots:estree-util-build-jsx: 3.0.1vfile: 6.0.1dependencies:- acorn-jsx: 5.3.2([email protected])+ acorn-jsx: 5.3.2([email protected])estree-util-to-js: 2.0.0recma-parse: 1.0.0recma-stringify: 1.0.0@@ -25443,13 +29496,11 @@ snapshots:'@redis/search': 1.2.0(@redis/[email protected])'@redis/time-series': 1.1.0(@redis/[email protected])dependencies:- redux: 4.2.1+ redux: 5.0.1- dependencies:- '@babel/runtime': 7.23.9+ [email protected]: {}dependencies:@@ -25611,14 +29662,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@types/hast': 3.0.4- '@types/mdast': 4.0.4- mdast-util-to-hast: 13.1.0- unified: 11.0.5- vfile: 6.0.1-dependencies:'@types/hast': 3.0.4@@ -25649,6 +29692,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+@@ -25659,7 +29704,7 @@ snapshots:dependencies:- debug: 4.4.0+ debug: 4.4.1module-details-from-path: 1.0.3resolve: 1.22.8transitivePeerDependencies:@@ -25667,6 +29712,8 @@ snapshots:+ [email protected]: {}+dependencies:resolve-from: 2.0.0@@ -25680,27 +29727,32 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:transitivePeerDependencies:- react- react-dom- dependencies:- '@canvas/image-data': 1.0.0-+ dependencies:+ expand-tilde: 2.0.2+ global-modules: 1.0.0++ [email protected]: {}++ [email protected]: {}+@@ -25713,10 +29765,10 @@ snapshots:dependencies:path-parse: 1.0.7- [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:- react: 18.2.0- react-email: 3.0.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.1+ react-email: 3.0.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])dependencies:@@ -25786,6 +29838,44 @@ snapshots:+ dependencies:+ '@babel/generator': 7.28.3+ '@babel/parser': 7.28.3+ '@babel/types': 7.28.2+ ast-kit: 2.1.2+ birpc: 2.5.0+ debug: 4.4.1+ dts-resolver: 2.1.2+ get-tsconfig: 4.10.1+ rolldown: 1.0.0-beta.43+ optionalDependencies:+ typescript: 5.9.3+ transitivePeerDependencies:+ - oxc-resolver+ - supports-color++ dependencies:+ '@oxc-project/types': 0.94.0+ '@rolldown/pluginutils': 1.0.0-beta.43+ ansis: 4.2.0+ optionalDependencies:+ '@rolldown/binding-android-arm64': 1.0.0-beta.43+ '@rolldown/binding-darwin-arm64': 1.0.0-beta.43+ '@rolldown/binding-darwin-x64': 1.0.0-beta.43+ '@rolldown/binding-freebsd-x64': 1.0.0-beta.43+ '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.43+ '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.43+ '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.43+ '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.43+ '@rolldown/binding-linux-x64-musl': 1.0.0-beta.43+ '@rolldown/binding-openharmony-arm64': 1.0.0-beta.43+ '@rolldown/binding-wasm32-wasi': 1.0.0-beta.43+ '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.43+ '@rolldown/binding-win32-ia32-msvc': 1.0.0-beta.43+ '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.43+dependencies:'@types/estree': 1.0.5@@ -25831,6 +29921,36 @@ snapshots:'@rollup/rollup-win32-x64-msvc': 4.40.1fsevents: 2.3.3+ dependencies:+ '@types/estree': 1.0.8+ optionalDependencies:+ '@rollup/rollup-android-arm-eabi': 4.48.1+ '@rollup/rollup-android-arm64': 4.48.1+ '@rollup/rollup-darwin-arm64': 4.48.1+ '@rollup/rollup-darwin-x64': 4.48.1+ '@rollup/rollup-freebsd-arm64': 4.48.1+ '@rollup/rollup-freebsd-x64': 4.48.1+ '@rollup/rollup-linux-arm-gnueabihf': 4.48.1+ '@rollup/rollup-linux-arm-musleabihf': 4.48.1+ '@rollup/rollup-linux-arm64-gnu': 4.48.1+ '@rollup/rollup-linux-arm64-musl': 4.48.1+ '@rollup/rollup-linux-loongarch64-gnu': 4.48.1+ '@rollup/rollup-linux-ppc64-gnu': 4.48.1+ '@rollup/rollup-linux-riscv64-gnu': 4.48.1+ '@rollup/rollup-linux-riscv64-musl': 4.48.1+ '@rollup/rollup-linux-s390x-gnu': 4.48.1+ '@rollup/rollup-linux-x64-gnu': 4.48.1+ '@rollup/rollup-linux-x64-musl': 4.48.1+ '@rollup/rollup-win32-arm64-msvc': 4.48.1+ '@rollup/rollup-win32-ia32-msvc': 4.48.1+ '@rollup/rollup-win32-x64-msvc': 4.48.1+ fsevents: 2.3.3++ [email protected]: {}++ [email protected]: {}+@@ -25848,15 +29968,15 @@ snapshots:dependencies:call-bind: 1.0.7- get-intrinsic: 1.3.0- has-symbols: 1.1.0+ get-intrinsic: 1.2.4+ has-symbols: 1.0.3isarray: 2.0.5dependencies:call-bind: 1.0.7- get-intrinsic: 1.3.0- has-symbols: 1.1.0+ get-intrinsic: 1.2.4+ has-symbols: 1.0.3isarray: 2.0.5@@ -25882,14 +30002,16 @@ snapshots:dependencies:- loose-envify: 1.4.0+ xmlchars: 2.2.0dependencies:loose-envify: 1.4.0+ [email protected]: {}+dependencies:compute-scroll-into-view: 3.1.0@@ -25909,6 +30031,8 @@ snapshots:dependencies:parseley: 0.12.1+ [email protected]: {}+@@ -25927,6 +30051,8 @@ snapshots:+ [email protected]: {}+dependencies:debug: 2.6.9@@ -25947,6 +30073,12 @@ snapshots:+ dependencies:+ seroval: 1.3.2++ [email protected]: {}+dependencies:encodeurl: 1.0.2@@ -25965,8 +30097,8 @@ snapshots:define-data-property: 1.1.4es-errors: 1.3.0function-bind: 1.1.2- get-intrinsic: 1.3.0- gopd: 1.2.0+ get-intrinsic: 1.2.4+ gopd: 1.0.1has-property-descriptors: 1.0.2@@ -26053,33 +30185,12 @@ snapshots:- dependencies:- es-errors: 1.3.0- object-inspect: 1.13.4-- dependencies:- call-bound: 1.0.4- es-errors: 1.3.0- get-intrinsic: 1.3.0- object-inspect: 1.13.4-- dependencies:- call-bound: 1.0.4- es-errors: 1.3.0- get-intrinsic: 1.3.0- object-inspect: 1.13.4- side-channel-map: 1.0.1-dependencies:+ call-bind: 1.0.7es-errors: 1.3.0- object-inspect: 1.13.4- side-channel-list: 1.0.0- side-channel-map: 1.0.1- side-channel-weakmap: 1.0.2+ get-intrinsic: 1.2.4+ object-inspect: 1.13.1@@ -26143,16 +30254,20 @@ snapshots:- supports-color- utf-8-validate+ dependencies:+ csstype: 3.1.3+ seroval: 1.3.2+ seroval-plugins: 1.3.2([email protected])+dependencies:atomic-sleep: 1.0.0dependencies:- react: 18.2.0- react-dom: 18.2.0([email protected])-- [email protected]: {}+ react: 19.1.1+ react-dom: 19.1.1([email protected])@@ -26187,6 +30302,10 @@ snapshots:+ dependencies:+ cookie-es: 2.0.0+dependencies:minipass: 3.3.6@@ -26229,6 +30348,8 @@ snapshots:dependencies:internal-slot: 1.0.7+ [email protected]: {}+@@ -26264,7 +30385,7 @@ snapshots:call-bind: 1.0.7define-properties: 1.2.1es-abstract: 1.23.3- es-object-atoms: 1.1.1+ es-object-atoms: 1.0.0dependencies:@@ -26276,7 +30397,7 @@ snapshots:dependencies:call-bind: 1.0.7define-properties: 1.2.1- es-object-atoms: 1.1.1+ es-object-atoms: 1.0.0dependencies:@@ -26288,7 +30409,7 @@ snapshots:dependencies:call-bind: 1.0.7define-properties: 1.2.1- es-object-atoms: 1.1.1+ es-object-atoms: 1.0.0dependencies:@@ -26335,24 +30456,30 @@ snapshots:dependencies:inline-style-parser: 0.2.4dependencies:client-only: 0.0.1- react: 18.2.0+ react: 19.1.1++ dependencies:+ client-only: 0.0.1+ react: 19.1.1optionalDependencies:'@babel/core': 7.24.5dependencies:client-only: 0.0.1- react: 18.2.0+ react: 19.1.1optionalDependencies:- '@babel/core': 7.24.5+ '@babel/core': 7.28.3+ optional: truedependencies:client-only: 0.0.1- react: 18.3.1+ react: 19.1.1dependencies:@@ -26384,6 +30511,12 @@ snapshots:dependencies:copy-anything: 3.0.5+ dependencies:+ copy-anything: 3.0.5++ [email protected]: {}+dependencies:has-flag: 3.0.0@@ -26420,56 +30553,27 @@ snapshots:transitivePeerDependencies:- encodingdependencies:dequal: 2.0.3- react: 18.2.0- use-sync-external-store: 1.5.0([email protected])+ react: 19.1.1+ use-sync-external-store: 1.5.0([email protected])- dependencies:- dequal: 2.0.3- react: 18.3.1- use-sync-external-store: 1.5.0([email protected])+ [email protected]: {}- [email protected]: {}+ [email protected]: {}- dependencies:- tailwindcss: 3.4.1+ [email protected]: {}dependencies:tailwindcss: 3.4.17dependencies:- '@alloc/quick-lru': 5.2.0- arg: 5.0.2- chokidar: 3.6.0- didyoumean: 1.2.2- dlv: 1.1.3- fast-glob: 3.3.2- glob-parent: 6.0.2- is-glob: 4.0.3- jiti: 1.21.0- lilconfig: 2.1.0- micromatch: 4.0.5- normalize-path: 3.0.0- object-hash: 3.0.0- picocolors: 1.0.0- postcss: 8.4.35- postcss-import: 15.1.0([email protected])- postcss-js: 4.0.1([email protected])- postcss-load-config: 4.0.2([email protected])- postcss-nested: 6.0.1([email protected])- postcss-selector-parser: 6.0.15- resolve: 1.22.8- sucrase: 3.35.0- transitivePeerDependencies:- - ts-node+ tailwindcss: 4.1.12dependencies:@@ -26487,17 +30591,21 @@ snapshots:normalize-path: 3.0.0object-hash: 3.0.0picocolors: 1.1.1- postcss: 8.4.47- postcss-import: 15.1.0([email protected])- postcss-js: 4.0.1([email protected])- postcss-load-config: 4.0.2([email protected])- postcss-nested: 6.2.0([email protected])+ postcss: 8.5.3+ postcss-import: 15.1.0([email protected])+ postcss-js: 4.0.1([email protected])+ postcss-load-config: 4.0.2([email protected])+ postcss-nested: 6.2.0([email protected])postcss-selector-parser: 6.1.2resolve: 1.22.8sucrase: 3.35.0transitivePeerDependencies:- ts-node+ [email protected]: {}++ [email protected]: {}+dependencies:call-once-fn: 1.0.17@@ -26576,7 +30684,7 @@ snapshots:dependencies:'@jridgewell/source-map': 0.3.5- acorn: 8.11.3+ acorn: 8.15.0commander: 2.20.3source-map-support: 0.5.21@@ -26611,35 +30719,51 @@ snapshots:- [email protected]: {}+ [email protected]: {}+ [email protected]: {}++ [email protected]: {}+dependencies:fdir: 6.4.4([email protected])picomatch: 4.0.2+ dependencies:+ fdir: 6.4.4([email protected])+ picomatch: 4.0.2++ dependencies:+ fdir: 6.5.0([email protected])+ picomatch: 4.0.3++ [email protected]: {}++ dependencies:+ tldts-core: 6.1.86+dependencies:os-tmpdir: 1.0.2- [email protected]: {}-- [email protected]: {}-dependencies:is-number: 7.0.0@@ -26654,12 +30778,20 @@ snapshots:dependencies:commander: 2.20.3+ dependencies:+ tldts: 6.1.86+dependencies:punycode: 2.3.1+ dependencies:+ punycode: 2.3.1+@@ -26674,9 +30806,33 @@ snapshots:+ optionalDependencies:+ typescript: 5.9.3++ dependencies:+ ansis: 4.1.0+ cac: 6.7.14+ chokidar: 4.0.3+ debug: 4.4.1+ diff: 8.0.2+ empathic: 2.0.0+ hookable: 5.5.3+ rolldown: 1.0.0-beta.43+ rolldown-plugin-dts: 0.15.9([email protected])([email protected])+ semver: 7.7.2+ tinyexec: 1.0.1+ tinyglobby: 0.2.14+ tree-kill: 1.2.2+ unconfig: 7.3.3optionalDependencies:- typescript: 5.6.3+ typescript: 5.9.3+ transitivePeerDependencies:+ - '@typescript/native-preview'+ - oxc-resolver+ - supports-color+ - vue-tsc@@ -26684,7 +30840,7 @@ snapshots:dependencies:bundle-require: 4.0.2([email protected])cac: 6.7.14@@ -26694,41 +30850,27 @@ snapshots:execa: 5.1.1globby: 11.1.0joycon: 3.1.1- postcss-load-config: 4.0.2([email protected])+ postcss-load-config: 4.0.2([email protected])resolve-from: 5.0.0rollup: 4.12.0source-map: 0.8.0-beta.0sucrase: 3.35.0tree-kill: 1.2.2optionalDependencies:- postcss: 8.5.3- typescript: 5.3.3+ postcss: 8.5.6+ typescript: 5.9.3transitivePeerDependencies:- supports-color- ts-nodedependencies:- bundle-require: 4.0.2([email protected])- cac: 6.7.14- chokidar: 3.6.0- debug: 4.3.7- esbuild: 0.19.12- execa: 5.1.1- globby: 11.1.0- joycon: 3.1.1- postcss-load-config: 4.0.2([email protected])- resolve-from: 5.0.0- rollup: 4.12.0- source-map: 0.8.0-beta.0- sucrase: 3.35.0- tree-kill: 1.2.2+ esbuild: 0.25.9+ get-tsconfig: 4.10.1optionalDependencies:- postcss: 8.5.3- typescript: 5.6.3- transitivePeerDependencies:- - supports-color- - ts-node+ fsevents: 2.3.3++ [email protected]: {}@@ -26770,7 +30912,7 @@ snapshots:dependencies:call-bind: 1.0.7for-each: 0.3.3- gopd: 1.2.0+ gopd: 1.0.1has-proto: 1.0.3is-typed-array: 1.1.13@@ -26787,7 +30929,7 @@ snapshots:available-typed-arrays: 1.0.7call-bind: 1.0.7for-each: 0.3.3- gopd: 1.2.0+ gopd: 1.0.1has-proto: 1.0.3is-typed-array: 1.1.13@@ -26801,7 +30943,7 @@ snapshots:dependencies:call-bind: 1.0.7for-each: 0.3.3- gopd: 1.2.0+ gopd: 1.0.1has-proto: 1.0.3is-typed-array: 1.1.13possible-typed-array-names: 1.0.0@@ -26816,9 +30958,11 @@ snapshots:dependencies:ts-toolbelt: 9.6.0- [email protected]: {}+ dependencies:+ ts-toolbelt: 9.6.0- [email protected]: {}+ [email protected]: {}@@ -26830,7 +30974,7 @@ snapshots:dependencies:call-bind: 1.0.7has-bigints: 1.0.2- has-symbols: 1.1.0+ has-symbols: 1.0.3which-boxed-primitive: 1.0.2@@ -26840,10 +30984,33 @@ snapshots:+ dependencies:+ '@quansync/fs': 0.1.5+ defu: 6.1.4+ jiti: 2.5.1+ quansync: 0.2.11++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ defu: 6.1.4+ exsolve: 1.0.7+ ohash: 2.0.11+ pathe: 2.0.3+ ufo: 1.6.1+@@ -26952,7 +31119,14 @@ snapshots:+ dependencies:+ '@jridgewell/remapping': 2.3.5+ acorn: 8.15.0+ picomatch: 4.0.3+ webpack-virtual-modules: 0.6.2+dependencies:anymatch: 3.1.3chokidar: 4.0.3@@ -26962,12 +31136,9 @@ snapshots:node-fetch-native: 1.6.6ofetch: 1.4.1ufo: 1.6.1-- dependencies:- browserslist: 4.23.0- escalade: 3.1.2- picocolors: 1.1.1+ optionalDependencies:+ db0: 0.3.2+ ioredis: 5.7.0dependencies:@@ -26991,52 +31162,52 @@ snapshots:querystringify: 2.2.0requires-port: 1.0.0dependencies:- react: 18.2.0+ react: 19.1.1tslib: 2.7.0optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:- react: 18.3.1+ react: 19.1.1tslib: 2.7.0optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:detect-node-es: 1.1.0- react: 18.2.0+ react: 19.1.1tslib: 2.7.0optionalDependencies:- '@types/react': 18.2.56+ '@types/react': 19.1.11dependencies:detect-node-es: 1.1.0- react: 18.3.1+ react: 19.1.1tslib: 2.7.0optionalDependencies:- '@types/react': 18.3.12+ '@types/react': 19.1.11dependencies:- react: 18.2.0+ react: 19.1.1dependencies:- react: 18.2.0+ react: 19.1.1dependencies:- react: 18.3.1+ react: 19.1.1dependencies:lodash.debounce: 4.0.8- react: 18.2.0+ react: 19.1.1@@ -27094,13 +31265,13 @@ snapshots:d3-time: 3.1.0d3-timer: 3.0.1+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:cac: 6.7.14debug: 4.4.0es-module-lexer: 1.7.0pathe: 2.0.3+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- '@types/node'- jiti@@ -27115,28 +31286,77 @@ snapshots:- tsx- yaml+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:- esbuild: 0.25.3+ debug: 4.4.1+ globrex: 0.1.2+ tsconfck: 3.1.5([email protected])+ optionalDependencies:+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - supports-color+ - typescript++ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ dependencies:+ esbuild: 0.25.9fdir: 6.4.4([email protected])picomatch: 4.0.2postcss: 8.5.3rollup: 4.40.1tinyglobby: 0.2.13optionalDependencies:- '@types/node': 20.14.8+ '@types/node': 24.7.1fsevents: 2.3.3jiti: 2.5.1+ lightningcss: 1.30.1terser: 5.27.1+ tsx: 4.20.5- [email protected]([email protected](@types/[email protected])([email protected])([email protected])):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ dependencies:+ esbuild: 0.25.3+ fdir: 6.4.4([email protected])+ picomatch: 4.0.2+ postcss: 8.5.3+ rollup: 4.40.1+ tinyglobby: 0.2.14+ optionalDependencies:+ '@types/node': 24.7.1+ fsevents: 2.3.3+ jiti: 2.5.1+ lightningcss: 1.30.1+ terser: 5.27.1+ tsx: 4.20.5++ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ dependencies:+ esbuild: 0.25.9+ fdir: 6.5.0([email protected])+ picomatch: 4.0.3+ postcss: 8.5.6+ rollup: 4.48.1+ tinyglobby: 0.2.15+ optionalDependencies:+ '@types/node': 24.7.1+ fsevents: 2.3.3+ jiti: 2.5.1+ lightningcss: 1.30.1+ terser: 5.27.1+ tsx: 4.20.5++ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ optionalDependencies:+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])++ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):optionalDependencies:+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- [email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:'@vitest/expect': 3.1.3- '@vitest/mocker': 3.1.3([email protected](@types/[email protected])([email protected])([email protected]))+ '@vitest/mocker': 3.1.3([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 3.1.3'@vitest/runner': 3.1.3'@vitest/snapshot': 3.1.3@@ -27153,12 +31373,13 @@ snapshots:tinyglobby: 0.2.13tinypool: 1.0.2tinyrainbow: 2.0.0+ vite: 6.3.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite-node: 3.1.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@types/debug': 4.1.12- '@types/node': 20.14.8+ '@types/node': 24.7.1+ jsdom: 26.1.0transitivePeerDependencies:- jiti- less@@ -27175,6 +31396,10 @@ snapshots:+ dependencies:+ xml-name-validator: 5.0.0+dependencies:makeerror: 1.0.12@@ -27187,20 +31412,37 @@ snapshots:+ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ iconv-lite: 0.6.3++ [email protected]: {}+dependencies:buffer: 5.7.1punycode: 2.3.1webidl-conversions: 5.0.0+ dependencies:+ tr46: 5.1.1+ webidl-conversions: 7.0.0+dependencies:tr46: 0.0.3@@ -27229,7 +31471,7 @@ snapshots:available-typed-arrays: 1.0.6call-bind: 1.0.7for-each: 0.3.3- gopd: 1.2.0+ gopd: 1.0.1has-tostringtag: 1.0.2@@ -27237,7 +31479,7 @@ snapshots:available-typed-arrays: 1.0.7call-bind: 1.0.7for-each: 0.3.3- gopd: 1.2.0+ gopd: 1.0.1has-tostringtag: 1.0.2@@ -27253,10 +31495,6 @@ snapshots:siginfo: 2.0.0stackback: 0.0.2- dependencies:- string-width: 4.2.3-dependencies:string-width: 7.2.0@@ -27285,6 +31523,30 @@ snapshots:+ optionalDependencies:+ '@cloudflare/workerd-darwin-64': 1.20251008.0+ '@cloudflare/workerd-darwin-arm64': 1.20251008.0+ '@cloudflare/workerd-linux-64': 1.20251008.0+ '@cloudflare/workerd-linux-arm64': 1.20251008.0+ '@cloudflare/workerd-windows-64': 1.20251008.0++ dependencies:+ '@cloudflare/kv-asset-handler': 0.4.0+ '@cloudflare/unenv-preset': 2.7.7([email protected])([email protected])+ blake3-wasm: 2.1.5+ esbuild: 0.25.4+ miniflare: 4.20251008.0+ path-to-regexp: 6.3.0+ unenv: 2.0.0-rc.21+ workerd: 1.20251008.0+ optionalDependencies:+ fsevents: 2.3.3+ transitivePeerDependencies:+ - bufferutil+ - utf-8-validate+dependencies:ansi-styles: 4.3.0@@ -27325,22 +31587,37 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+dependencies:simple-plist: 1.3.1uuid: 7.0.3+ [email protected]: {}+dependencies:sax: 1.3.0xmlbuilder: 11.0.1+ dependencies:+ '@oozcitak/dom': 1.15.10+ '@oozcitak/infra': 1.0.8+ '@oozcitak/util': 8.3.8+ js-yaml: 3.14.1++ [email protected]: {}+@@ -27355,6 +31632,8 @@ snapshots:+ [email protected]: {}+@@ -27362,6 +31641,8 @@ snapshots:camelcase: 5.3.1decamelize: 1.2.0+ [email protected]: {}+@@ -27378,6 +31659,16 @@ snapshots:y18n: 4.0.3yargs-parser: 18.1.3+ dependencies:+ cliui: 7.0.4+ escalade: 3.2.0+ get-caller-file: 2.0.5+ require-directory: 2.1.1+ string-width: 4.2.3+ y18n: 5.0.8+ yargs-parser: 20.2.9+dependencies:cliui: 8.0.1@@ -27400,6 +31691,19 @@ snapshots:+ dependencies:+ '@poppinss/exception': 1.2.2+ error-stack-parser-es: 1.0.5++ dependencies:+ '@poppinss/colors': 4.1.5+ '@poppinss/dumper': 0.6.4+ '@speed-highlight/core': 1.2.7+ cookie: 1.0.2+ youch-core: 0.3.3+dependencies:buffer-v6-polyfill: 1.0.5@@ -27427,11 +31731,15 @@ snapshots:dependencies:zod: 3.24.2dependencies:- typescript: 5.6.3+ typescript: 5.9.3zod: 3.24.2+ [email protected]: {}++ [email protected]: {}+diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 73b3f4f16..eda3c9c7e 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -6,3 +6,9 @@ packages:# Define a catalog of version ranges.catalog:zod: ^3.24.2+ react: ^19.0.0+ "@types/react": ^19.0.0+ "react-dom": ^19.0.0+ "@types/react-dom": ^19.0.0+ "@types/node": ^24.7.1+ typescript: ^5.9.3diff --git a/self-hosting/.env.template b/self-hosting/.env.templateindex 2279bec48..c681a6fdb 100644--- a/self-hosting/.env.template+++ b/self-hosting/.env.template@@ -1,6 +1,5 @@NODE_ENV="production"-NEXT_PUBLIC_SELF_HOSTED="true"-GEO_IP_HOST="http://op-geo:8080"+VITE_SELF_HOSTED="true"BATCH_SIZE="5000"BATCH_INTERVAL="10000"ALLOW_REGISTRATION="false"@@ -10,8 +9,8 @@ REDIS_URL="$REDIS_URL"CLICKHOUSE_URL="$CLICKHOUSE_URL"DATABASE_URL="$DATABASE_URL"DATABASE_URL_DIRECT="$DATABASE_URL_DIRECT"-NEXT_PUBLIC_DASHBOARD_URL="$NEXT_PUBLIC_DASHBOARD_URL"-NEXT_PUBLIC_API_URL="$NEXT_PUBLIC_API_URL"+DASHBOARD_URL="$DASHBOARD_URL"+API_URL="$API_URL"COOKIE_SECRET="$COOKIE_SECRET"EMAIL_SENDER="$EMAIL_SENDER"RESEND_API_KEY="$RESEND_API_KEY"\ No newline at end of filediff --git a/self-hosting/coolify.yml b/self-hosting/coolify.ymlindex df5c46be3..b40029b8d 100644--- a/self-hosting/coolify.yml+++ b/self-hosting/coolify.yml@@ -135,7 +135,7 @@ services:environment:# Common- NODE_ENV=production- - NEXT_PUBLIC_SELF_HOSTED=true+ - VITE_SELF_HOSTED=true# URLs- DATABASE_URL=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@opdb:5432/${OPENPANEL_POSTGRES_DB:-openpanel-db}?schema=public- DATABASE_URL_DIRECT=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@opdb:5432/${OPENPANEL_POSTGRES_DB:-openpanel-db}?schema=public@@ -143,8 +143,8 @@ services:- CLICKHOUSE_URL=${OPENPANEL_CLICKHOUSE_URL:-http://opch:8123/openpanel}- SERVICE_FQDN_OPAPI=/api# Set coolify FQDN domain- - NEXT_PUBLIC_API_URL=$SERVICE_FQDN_OPAPI- - NEXT_PUBLIC_DASHBOARD_URL=$SERVICE_FQDN_OPDASHBOARD+ - API_URL=$SERVICE_FQDN_OPAPI+ - DASHBOARD_URL=$SERVICE_FQDN_OPDASHBOARD# Others- COOKIE_SECRET=${SERVICE_BASE64_COOKIESECRET}- ALLOW_REGISTRATION=${OPENPANEL_ALLOW_REGISTRATION:-false}@@ -166,15 +166,15 @@ services:environment:# Common- NODE_ENV=production- - NEXT_PUBLIC_SELF_HOSTED=true+ - VITE_SELF_HOSTED=true# URLs- DATABASE_URL=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@opdb:5432/${OPENPANEL_POSTGRES_DB:-openpanel-db}?schema=public- REDIS_URL=redis://default:${SERVICE_PASSWORD_REDIS}@opkv:6379- CLICKHOUSE_URL=${OPENPANEL_CLICKHOUSE_URL:-http://opch:8123/openpanel}- SERVICE_FQDN_OPDASHBOARD# Set coolify FQDN domain- - NEXT_PUBLIC_API_URL=$SERVICE_FQDN_OPAPI- - NEXT_PUBLIC_DASHBOARD_URL=$SERVICE_FQDN_OPDASHBOARD+ - API_URL=$SERVICE_FQDN_OPAPI+ - DASHBOARD_URL=$SERVICE_FQDN_OPDASHBOARDhealthcheck:test:["CMD-SHELL", "curl -f http://localhost:3000/api/healthcheck || exit 1"]@@ -193,14 +193,14 @@ services:- SERVICE_FQDN_OPBULLBOARD# Common- NODE_ENV=production- - NEXT_PUBLIC_SELF_HOSTED=true+ - VITE_SELF_HOSTED=true# URLs- DATABASE_URL=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@opdb:5432/${OPENPANEL_POSTGRES_DB:-openpanel-db}?schema=public- DATABASE_URL_DIRECT=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@opdb:5432/${OPENPANEL_POSTGRES_DB:-openpanel-db}?schema=public- REDIS_URL=redis://default:${SERVICE_PASSWORD_REDIS}@opkv:6379- CLICKHOUSE_URL=${OPENPANEL_CLICKHOUSE_URL:-http://opch:8123/openpanel}# Set coolify FQDN domain- - NEXT_PUBLIC_API_URL=$SERVICE_FQDN_OPAPI+ - API_URL=$SERVICE_FQDN_OPAPIhealthcheck:test: ["CMD-SHELL", "curl -f http://localhost:3000/healthcheck || exit 1"]interval: 10sdiff --git a/self-hosting/quiz.ts b/self-hosting/quiz.tsindex 20ecfa177..e7b4ee8a0 100644--- a/self-hosting/quiz.ts+++ b/self-hosting/quiz.ts@@ -149,11 +149,8 @@ function writeEnvFile(envs: EnvVars) {.replace('$REDIS_URL', envs.REDIS_URL).replace('$DATABASE_URL', envs.DATABASE_URL).replace('$DATABASE_URL_DIRECT', envs.DATABASE_URL)- .replace('$NEXT_PUBLIC_DASHBOARD_URL', stripTrailingSlash(envs.DOMAIN_NAME))- .replace(- '$NEXT_PUBLIC_API_URL',- `${stripTrailingSlash(envs.DOMAIN_NAME)}/api`,- )+ .replace('$DASHBOARD_URL', stripTrailingSlash(envs.DOMAIN_NAME))+ .replace('$API_URL', `${stripTrailingSlash(envs.DOMAIN_NAME)}/api`).replace('$RESEND_API_KEY', envs.RESEND_API_KEY).replace('$EMAIL_SENDER', envs.EMAIL_SENDER);diff --git a/sh/docker-build b/sh/docker-buildindex 4e2690ca8..c95e0797a 100755--- a/sh/docker-build+++ b/sh/docker-build@@ -46,7 +46,7 @@ build_image() {--platform linux/amd64,linux/arm64 \-t "$full_version" \--build-arg DATABASE_URL="postgresql://p@p:5432/p" \- --build-arg NEXT_PUBLIC_SELF_HOSTED="true" \+ --build-arg VITE_SELF_HOSTED="true" \-f "apps/$app/Dockerfile" \--push \.@@ -57,7 +57,7 @@ build_image() {-t "$full_version" \-t "$image_name:latest" \--build-arg DATABASE_URL="postgresql://p@p:5432/p" \- --build-arg NEXT_PUBLIC_SELF_HOSTED="true" \+ --build-arg VITE_SELF_HOSTED="true" \-f "apps/$app/Dockerfile" \--push \.diff --git a/tooling/publish/package.json b/tooling/publish/package.jsonindex 26a65c465..616de43f7 100644--- a/tooling/publish/package.json+++ b/tooling/publish/package.json@@ -13,8 +13,8 @@},"devDependencies": {"@openpanel/tsconfig": "workspace:*",- "@types/node": "20.14.8",+ "@types/node": "catalog:","@types/semver": "^7.5.4",- "typescript": "^5.2.2"+ "typescript": "catalog:"}}diff --git a/tooling/publish/publish.ts b/tooling/publish/publish.tsindex 5378852a8..ba2e775e9 100644--- a/tooling/publish/publish.ts+++ b/tooling/publish/publish.ts@@ -1,6 +1,11 @@import { execSync } from 'node:child_process';import fs from 'node:fs';import { join, resolve } from 'node:path';+import { dirname } from 'node:path';+import { fileURLToPath } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);import arg from 'arg';import type { ReleaseType } from 'semver';import semver, { RELEASE_TYPES } from 'semver';diff --git a/tooling/typescript/base.json b/tooling/typescript/base.jsonindex 59a801dac..390b81b5c 100644--- a/tooling/typescript/base.json+++ b/tooling/typescript/base.json@@ -10,14 +10,16 @@"forceConsistentCasingInFileNames": true,"noEmit": true,"esModuleInterop": true,- "module": "esnext",- "moduleResolution": "bundler",- "resolveJsonModule": true,- "isolatedModules": true,"jsx": "preserve","incremental": true,"noUncheckedIndexedAccess": true,- "allowUnreachableCode": true+ "allowUnreachableCode": true,+ "module": "ESNext",+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "resolveJsonModule": true,+ "isolatedModules": true,+ "verbatimModuleSyntax": true},"exclude": ["node_modules", "build", "dist"]}diff --git a/tooling/typescript/package.json b/tooling/typescript/package.jsonindex 07508dd83..47fd9a89a 100644--- a/tooling/typescript/package.json+++ b/tooling/typescript/package.json@@ -1,6 +1,7 @@{"name": "@openpanel/tsconfig","version": "0.1.0",+ "type": "module","private": true,"files": ["base.json", "sdk.json", "tsup.config.json"],"devDependencies": {diff --git a/tooling/unused-deps.mjs b/tooling/unused-deps.mjsnew file mode 100644index 000000000..0db9793b7--- /dev/null+++ b/tooling/unused-deps.mjs@@ -0,0 +1,201 @@+#!/usr/bin/env node++import { spawn } from 'node:child_process';+import { promises as fs } from 'node:fs';+import path from 'node:path';+import url from 'node:url';++// Lazy import depcheck to avoid hard crash if not installed+async function loadDepcheck() {+ try {+ const mod = await import('depcheck');+ return mod.default ?? mod;+ } catch (err) {+ console.error(+ 'depcheck is not installed. Install it with: pnpm -w add -D depcheck',+ );+ process.exitCode = 1;+ process.exit(1);+ }+}++const __dirname = path.dirname(url.fileURLToPath(import.meta.url));+const repoRoot = path.resolve(__dirname, '..');++const DEFAULT_IGNORE_DIRS = [+ 'node_modules',+ 'dist',+ 'build',+ '.next',+ '.nuxt',+ '.svelte-kit',+ '.output',+ '.turbo',+ 'coverage',+ '.vercel',+ '.cache',+ '.astro',+ '.pnpm',+];++function parseArgs() {+ const args = new Set(process.argv.slice(2));+ return {+ json: args.has('--json') || args.has('-j'),+ };+}++async function fileExists(p) {+ try {+ await fs.access(p);+ return true;+ } catch {+ return false;+ }+}++async function readWorkspacePatterns() {+ const workspaceFile = path.join(repoRoot, 'pnpm-workspace.yaml');+ if (!(await fileExists(workspaceFile))) return [];+ const content = await fs.readFile(workspaceFile, 'utf8');+ const patterns = [];+ for (const line of content.split(/\r?\n/)) {+ const m = line.match(/^\s*-\s*"?([^"#]+)"?\s*(?:#.*)?$/);+ if (m) {+ patterns.push(m[1].trim());+ }+ }+ return patterns.filter(Boolean);+}++async function isPackageDir(dir) {+ const pkgPath = path.join(dir, 'package.json');+ return fileExists(pkgPath);+}++async function listSubdirs(dir) {+ const entries = await fs.readdir(dir, { withFileTypes: true });+ return entries+ .filter((e) => e.isDirectory())+ .map((e) => path.join(dir, e.name));+}++async function findPackagesFromPattern(pattern) {+ // Normalize pattern relative to repo root+ const absolutePattern = path.resolve(repoRoot, pattern);+ if (pattern.endsWith('/**')) {+ const baseDir = absolutePattern.slice(0, -3); // remove /**+ return await findPackagesRecursively(baseDir);+ }+ if (pattern.endsWith('/*')) {+ const baseDir = absolutePattern.slice(0, -2); // remove /*+ return (await listSubdirs(baseDir)).filterAsync(isPackageDir);+ }+ // Direct path+ return (await isPackageDir(absolutePattern)) ? [absolutePattern] : [];+}++async function findPackagesRecursively(startDir) {+ const results = [];+ async function walk(dir) {+ if (!(await fileExists(dir))) return;+ if (await isPackageDir(dir)) results.push(dir);+ const subdirs = await listSubdirs(dir);+ for (const sub of subdirs) {+ await walk(sub);+ }+ }+ await walk(startDir);+ return results;+}++// Add filterAsync utility on arrays+Object.defineProperty(Array.prototype, 'filterAsync', {+ value: async function (predicate) {+ const results = await Promise.all(this.map(predicate));+ return this.filter((_, i) => results[i]);+ },+ enumerable: false,+});++async function discoverWorkspacePackageDirs() {+ const patterns = await readWorkspacePatterns();+ const discovered = new Set();+ for (const pattern of patterns) {+ const pkgs = await findPackagesFromPattern(pattern);+ for (const p of pkgs) discovered.add(path.resolve(p));+ }+ // Always include repo root as well+ discovered.add(repoRoot);+ return Array.from(discovered);+}++async function runDepcheckOnDir(depcheck, dir) {+ const result = await depcheck(dir, {+ ignoreBinPackage: false,+ ignoreDirs: DEFAULT_IGNORE_DIRS,+ ignoreMatches: [],+ specials: [+ depcheck.special.eslint,+ depcheck.special.typescript,+ depcheck.special.webpack,+ depcheck.special.rollup,+ depcheck.special.babel,+ depcheck.special.postcss,+ ],+ });+ return {+ dir,+ unused: {+ dependencies: result.dependencies ?? [],+ devDependencies: result.devDependencies ?? [],+ },+ };+}++function relative(p) {+ return path.relative(repoRoot, p) || '.';+}++function printHuman(results) {+ let any = false;+ for (const { dir, unused } of results) {+ if (unused.dependencies.length + unused.devDependencies.length === 0)+ continue;+ any = true;+ console.log(`\n${relative(dir)}:`);+ if (unused.dependencies.length) {+ console.log(` unused dependencies (${unused.dependencies.length}):`);+ for (const d of unused.dependencies) console.log(` - ${d}`);+ }+ if (unused.devDependencies.length) {+ console.log(+ ` unused devDependencies (${unused.devDependencies.length}):`,+ );+ for (const d of unused.devDependencies) console.log(` - ${d}`);+ }+ }+ if (!any) console.log('No unused dependencies found.');+}++async function main() {+ const args = parseArgs();+ const depcheck = await loadDepcheck();+ const packageDirs = await discoverWorkspacePackageDirs();+ const checks = await Promise.all(+ packageDirs.map((dir) => runDepcheckOnDir(depcheck, dir)),+ );+ if (args.json) {+ const compact = checks+ .map(({ dir, unused }) => ({ dir: relative(dir), ...unused }))+ .filter((r) => r.dependencies.length || r.devDependencies.length);+ console.log(JSON.stringify(compact, null, 2));+ } else {+ printHuman(checks);+ }+}++main().catch((err) => {+ console.error(err);+ process.exitCode = 1;+});