Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat: new emails + resend bump
Richie McIlroy5607406a308d
diff --git a/apps/web/app/api/desktop/video/create/route.ts b/apps/web/app/api/desktop/video/create/route.tsindex 3c7ce3f04..818c9a854 100644--- a/apps/web/app/api/desktop/video/create/route.ts+++ b/apps/web/app/api/desktop/video/create/route.ts@@ -1,13 +1,15 @@import type { NextRequest } from "next/server";import { db } from "@cap/database";-import { s3Buckets, videos, users } from "@cap/database/schema";+import { s3Buckets, videos, users, emailNotifications } from "@cap/database/schema";import { getCurrentUser } from "@cap/database/auth/session";import { nanoId } from "@cap/database/helpers";import { cookies } from "next/headers";import { dub } from "@/utils/dub";-import { eq } from "drizzle-orm";+import { eq, count, and } from "drizzle-orm";import { getS3Bucket, getS3Config } from "@/utils/s3";import { clientEnv, NODE_ENV } from "@cap/env";+import { sendEmail } from "@cap/database/emails/config";+import { FirstShareableLink } from "@cap/database/emails/first-shareable-link";const allowedOrigins = [clientEnv.NEXT_PUBLIC_WEB_URL,@@ -196,6 +198,62 @@ export async function GET(req: NextRequest) {});}+ // Check if this is the user's first video and send the first shareable link email+ try {+ const videoCount = await db+ .select({ count: count() })+ .from(videos)+ .where(eq(videos.ownerId, user.id));++ if (videoCount && videoCount[0] && videoCount[0].count === 1 && user.email) {+ // Check if we've already sent this email+ const existingNotifications = await db+ .select({ id: emailNotifications.id })+ .from(emailNotifications)+ .where(+ and(+ eq(emailNotifications.userId, user.id),+ eq(emailNotifications.type, "first_shareable_link")+ )+ )+ .limit(1);++ // If we've already sent this email, don't send it again+ if (!existingNotifications || existingNotifications.length === 0) {+ console.log("[SendFirstShareableLinkEmail] Sending first shareable link email with 5-minute delay");++ const videoUrl = clientEnv.NEXT_PUBLIC_IS_CAP+ ? `https://cap.link/${id}`+ : `${clientEnv.NEXT_PUBLIC_WEB_URL}/s/${id}`;++ // Record that we're sending this email+ const shortId = nanoId().substring(0, 15);+ await db.insert(emailNotifications).values({+ id: shortId,+ userId: user.id,+ type: "first_shareable_link",+ });++ // Send email with 5-minute delay using Resend's scheduling feature+ await sendEmail({+ email: user.email,+ subject: "You created your first Cap! 🥳",+ react: FirstShareableLink({+ email: user.email,+ url: videoUrl,+ videoName: videoData.name,+ }),+ marketing: true,+ scheduledAt: "in 5 min"+ });++ console.log("[SendFirstShareableLinkEmail] First shareable link email scheduled to be sent in 5 minutes");+ }+ }+ } catch (error) {+ console.error("Error checking for first video or sending email:", error);+ }+return new Response(JSON.stringify({id,diff --git a/apps/web/app/api/email/new-comment/route.ts b/apps/web/app/api/email/new-comment/route.tsnew file mode 100644index 000000000..ea7aaaa56--- /dev/null+++ b/apps/web/app/api/email/new-comment/route.ts@@ -0,0 +1,238 @@+import { type NextRequest } from "next/server";+import { getCurrentUser } from "@cap/database/auth/session";+import { videos, comments, users } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq, and, gt, ne } from "drizzle-orm";+import { sendEmail } from "@cap/database/emails/config";+import { NewComment } from "@cap/database/emails/new-comment";+import { clientEnv } from "@cap/env";++// Cache to store the last email sent time for each user+const lastEmailSentCache = new Map<string, Date>();++export async function POST(request: NextRequest) {+ console.log("Processing new comment email notification");+ const { commentId } = await request.json();++ if (!commentId) {+ console.error("Missing required field: commentId");+ return Response.json(+ { error: "Missing required fields: commentId" },+ { status: 400 }+ );+ }++ try {+ console.log(`Fetching comment details for commentId: ${commentId}`);+ // Get the comment details+ const commentDetails = await db+ .select({+ id: comments.id,+ content: comments.content,+ type: comments.type,+ videoId: comments.videoId,+ authorId: comments.authorId,+ createdAt: comments.createdAt,+ })+ .from(comments)+ .where(eq(comments.id, commentId))+ .limit(1);++ if (!commentDetails || commentDetails.length === 0) {+ console.error(`Comment not found for commentId: ${commentId}`);+ return Response.json(+ { error: "Comment not found" },+ { status: 404 }+ );+ }++ const comment = commentDetails[0];+ if (comment) {+ console.log(`Found comment: ${comment.id}, type: ${comment.type}, videoId: ${comment.videoId}`);+ }++ // Only send email notifications for text comments+ if (!comment || comment.type !== "text" || !comment.videoId || !comment.content) {+ console.log("Skipping email notification - invalid comment data or non-text comment");+ return Response.json(+ { success: false, reason: "Invalid comment data" },+ { status: 200 }+ );+ }++ console.log(`Fetching video details for videoId: ${comment.videoId}`);+ // Get the video details+ const videoDetails = await db+ .select({+ id: videos.id,+ name: videos.name,+ ownerId: videos.ownerId,+ })+ .from(videos)+ .where(eq(videos.id, comment.videoId))+ .limit(1);++ if (!videoDetails || videoDetails.length === 0) {+ console.error(`Video not found for videoId: ${comment.videoId}`);+ return Response.json(+ { error: "Video not found" },+ { status: 404 }+ );+ }++ const video = videoDetails[0];+ if (video) {+ console.log(`Found video: ${video.id}, name: ${video.name}, ownerId: ${video.ownerId}`);+ }++ if (!video || !video.ownerId || !video.id || !video.name) {+ console.error("Invalid video data");+ return Response.json(+ { error: "Invalid video data" },+ { status: 500 }+ );+ }++ console.log(`Fetching owner details for userId: ${video.ownerId}`);+ // Get the video owner's email+ const ownerDetails = await db+ .select({+ id: users.id,+ email: users.email,+ })+ .from(users)+ .where(eq(users.id, video.ownerId))+ .limit(1);++ if (!ownerDetails || !ownerDetails.length || !ownerDetails[0] || !ownerDetails[0].email) {+ console.error(`Video owner not found for userId: ${video.ownerId}`);+ return Response.json(+ { error: "Video owner not found" },+ { status: 404 }+ );+ }++ const owner = ownerDetails[0];+ console.log(`Found owner: ${owner.id}, email: ${owner.email}`);++ if (!owner || !owner.email || !owner.id) {+ console.error("Invalid owner data");+ return Response.json(+ { error: "Invalid owner data" },+ { status: 500 }+ );+ }++ // Get the commenter's name+ let commenterName = "Anonymous";+ if (comment.authorId) {+ console.log(`Fetching commenter details for userId: ${comment.authorId}`);+ const commenterDetails = await db+ .select({+ id: users.id,+ name: users.name,+ })+ .from(users)+ .where(eq(users.id, comment.authorId))+ .limit(1);++ if (commenterDetails && commenterDetails.length > 0 && commenterDetails[0] && commenterDetails[0].name) {+ commenterName = commenterDetails[0].name;+ console.log(`Found commenter name: ${commenterName}`);+ } else {+ console.log("Commenter details not found, using 'Anonymous'");+ }+ } else {+ console.log("No authorId provided, using 'Anonymous'");+ }++ // Check if we've sent an email to this user in the last 15 minutes+ const now = new Date();+ const lastEmailSent = lastEmailSentCache.get(owner.id);++ if (lastEmailSent) {+ const fifteenMinutesAgo = new Date(now.getTime() - 15 * 60 * 1000);++ if (lastEmailSent > fifteenMinutesAgo) {+ console.log(`Rate limiting email to user ${owner.id} - last email sent at ${lastEmailSent.toISOString()}`);+ return Response.json(+ { success: false, reason: "Email rate limited" },+ { status: 200 }+ );+ }+ }++ // Also check the database for recent comments that might have triggered emails+ // This handles cases where the server restarts and the cache is cleared+ const fifteenMinutesAgo = new Date(now.getTime() - 15 * 60 * 1000);+ console.log(`Checking for recent comments since ${fifteenMinutesAgo.toISOString()}`);+ const recentComments = await db+ .select({+ id: comments.id,+ })+ .from(comments)+ .where(+ and(+ eq(comments.videoId, comment.videoId),+ eq(comments.type, "text"),+ gt(comments.createdAt, fifteenMinutesAgo),+ ne(comments.id, commentId) // Exclude the current comment+ )+ )+ .limit(1);++ // If there are recent comments (other than this one), don't send another email+ if (recentComments && recentComments.length > 0 && recentComments[0]) {+ console.log(`Found recent comment ${recentComments[0].id}, skipping email notification`);+ return Response.json(+ { success: false, reason: "Recent comment found" },+ { status: 200 }+ );+ }++ // Generate the video URL+ const videoUrl = clientEnv.NEXT_PUBLIC_IS_CAP+ ? `https://cap.link/${video.id}`+ : `${clientEnv.NEXT_PUBLIC_WEB_URL}/s/${video.id}`;+ console.log(`Generated video URL: ${videoUrl}`);++ // Send the email+ console.log(`Sending email to ${owner.email} about comment on video "${video.name}"`);++ try {+ const emailResult = await sendEmail({+ email: owner.email,+ subject: `New comment on your Cap: ${video.name}`,+ react: NewComment({+ email: owner.email,+ url: videoUrl,+ videoName: video.name,+ commenterName,+ commentContent: comment.content,+ }),+ marketing: true,+ });++ console.log("Email send result:", emailResult);+ console.log("Email sent successfully");++ // Update the cache+ lastEmailSentCache.set(owner.id, now);+ console.log(`Updated email cache for user ${owner.id}`);++ return Response.json({ success: true }, { status: 200 });+ } catch (emailError) {+ console.error("Error sending email via Resend:", emailError);+ return Response.json(+ { error: "Failed to send email", details: String(emailError) },+ { status: 500 }+ );+ }+ } catch (error) {+ console.error("Error sending new comment email:", error);+ return Response.json(+ { error: "Failed to send email" },+ { status: 500 }+ );+ }+}\ No newline at end of filediff --git a/apps/web/app/api/video/comment/route.ts b/apps/web/app/api/video/comment/route.tsindex 997d32f35..e14d5e995 100644--- a/apps/web/app/api/video/comment/route.ts+++ b/apps/web/app/api/video/comment/route.ts@@ -5,6 +5,7 @@ import { comments } from "@cap/database/schema";import { db } from "@cap/database";import { rateLimitMiddleware } from "@/utils/helpers";import { headers } from "next/headers";+import { clientEnv } from "@cap/env";async function handlePost(request: NextRequest) {const user = await getCurrentUser();@@ -45,6 +46,26 @@ async function handlePost(request: NextRequest) {await db.insert(comments).values(newComment);+ // Trigger email notification for new comment+ if (type === "text" && userId !== "anonymous") {+ try {+ // Don't await this to avoid blocking the response+ const absoluteUrl = new URL("/api/email/new-comment", clientEnv.NEXT_PUBLIC_WEB_URL).toString();+ fetch(absoluteUrl, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ commentId: id,+ }),+ });+ } catch (error) {+ console.error("Error triggering comment notification:", error);+ // Don't fail the comment creation if notification fails+ }+ }+return Response.json({...newComment,@@ -68,3 +89,7 @@ export const POST = (request: NextRequest) => {const headersList = headers();return rateLimitMiddleware(10, handlePost(request), headersList);};++export async function GET() {+ return Response.json({ error: true }, { status: 405 });+}diff --git a/apps/web/package.json b/apps/web/package.jsonindex ea362acc8..dd61cc9e1 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -72,7 +72,7 @@"react-rnd": "^10.4.1","react-scroll-parallax": "^3.4.5","react-tooltip": "^5.26.3",- "resend": "1.1.0",+ "resend": "4.1.2","server-only": "^0.0.1","subtitles-parser-vtt": "^0.1.0","tailwind-merge": "^2.1.0",diff --git a/package.json b/package.jsonindex 1d4042c20..8ef2aff9c 100644--- a/package.json+++ b/package.json@@ -10,8 +10,8 @@"dev:manual": "pnpm run docker:up && trap 'pnpm run docker:stop' EXIT && dotenv -e .env -- turbo run dev --filter=!@cap/storybook --no-cache --concurrency 1","lint": "turbo run lint","format": "prettier --write \"**/*.{ts,tsx,md}\"",- "db:push": "(pnpm run docker:up &) && sleep 5 && trap 'pnpm run docker:stop' EXIT && dotenv -e .env -- turbo run db:push",- "db:generate": "dotenv -e .env -- turbo run db:generate",+ "db:push": "dotenv -e .env -- pnpm --dir packages/database db:push",+ "db:generate": "dotenv -e .env -- pnpm --dir packages/database db:generate","tauri:build": "dotenv -e .env -- pnpm --dir apps/desktop tauri build --verbose","typecheck": "pnpm tsc -b","docker:up": "turbo run docker:up",diff --git a/packages/database/emails/config.ts b/packages/database/emails/config.tsindex 96ab4090a..bd29ee15c 100644--- a/packages/database/emails/config.ts+++ b/packages/database/emails/config.ts@@ -6,32 +6,43 @@ export const resend = serverEnv.RESEND_API_KEY? new Resend(serverEnv.RESEND_API_KEY): null;+// Augment the CreateEmailOptions type to include scheduledAt+type EmailOptions = {+ from: string;+ to: string | string[];+ subject: string;+ react: ReactElement<any, string | JSXElementConstructor<any>>;+ scheduledAt?: string;+};+export const sendEmail = async ({email,subject,react,marketing,test,+ scheduledAt,}: {email: string;subject: string;react: ReactElement<any, string | JSXElementConstructor<any>>;marketing?: boolean;test?: boolean;+ scheduledAt?: string;}) => {if (!resend) {- console.info(`Email to ${email} with subject ${subject} sent from Cap`);return Promise.resolve();}return resend.emails.send({from: marketing- ? "Richie from Cap.so <[email protected]>"+ ? "Richie from Cap <[email protected]>": clientEnv.NEXT_PUBLIC_IS_CAP? "Cap Auth <[email protected]>": `auth@${clientEnv.NEXT_PUBLIC_WEB_URL}`,to: test ? "[email protected]" : email,subject,react,- }) as any;+ scheduledAt,+ } as EmailOptions) as any;};diff --git a/packages/database/emails/first-shareable-link.tsx b/packages/database/emails/first-shareable-link.tsxnew file mode 100644index 000000000..ca38b252d--- /dev/null+++ b/packages/database/emails/first-shareable-link.tsx@@ -0,0 +1,76 @@+import { CAP_LOGO_URL } from "@cap/utils";+import {+ Body,+ Container,+ Head,+ Heading,+ Html,+ Img,+ Link,+ Preview,+ Section,+ Tailwind,+ Text,+} from "@react-email/components";+import Footer from "./components/Footer";++export function FirstShareableLink({+ email = "",+ url = "",+ videoName = "",+}: {+ email: string;+ url: string;+ videoName: string;+}) {+ return (+ <Html>+ <Head />+ <Preview>Your first Cap shareable link is ready!</Preview>+ <Tailwind>+ <Body className="mx-auto my-auto bg-white font-sans">+ <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">+ <Section className="mt-8">+ <Img+ src={CAP_LOGO_URL}+ width="40"+ height="40"+ alt="Cap"+ className="mx-auto my-0"+ />+ </Section>+ <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">+ You've created your first Cap link!+ </Heading>+ <Text className="text-sm leading-6 text-black">+ Your video "{videoName}" is now ready to share with anyone.+ </Text>+ <Text className="text-sm leading-6 text-black">+ Click the button below to view your Cap and share it with others.+ </Text>+ <Section className="my-8 text-center">+ <Link+ className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"+ href={url}+ >+ View Your Cap+ </Link>+ </Section>+ <Text className="text-sm leading-6 text-black">+ or copy and paste this URL into your browser:+ </Text>+ <Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline">+ {url.replace(/^https?:\/\//, "")}+ </Text>+ <Text className="text-sm leading-6 text-black mt-6">+ With Cap, you can easily share your screen recordings, get+ feedback, and collaborate with others. We're excited to see what+ you create!+ </Text>+ <Footer email={email} marketing={true} />+ </Container>+ </Body>+ </Tailwind>+ </Html>+ );+}diff --git a/packages/database/emails/new-comment.tsx b/packages/database/emails/new-comment.tsxnew file mode 100644index 000000000..e98314aba--- /dev/null+++ b/packages/database/emails/new-comment.tsx@@ -0,0 +1,80 @@+import { CAP_LOGO_URL } from "@cap/utils";+import {+ Body,+ Container,+ Head,+ Heading,+ Html,+ Img,+ Link,+ Preview,+ Section,+ Tailwind,+ Text,+} from "@react-email/components";+import Footer from "./components/Footer";++export function NewComment({+ email = "",+ url = "",+ videoName = "",+ commenterName = "",+ commentContent = "",+}: {+ email: string;+ url: string;+ videoName: string;+ commenterName: string;+ commentContent: string;+}) {+ return (+ <Html>+ <Head />+ <Preview>New comment on your Cap: {videoName}</Preview>+ <Tailwind>+ <Body className="mx-auto my-auto bg-white font-sans">+ <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">+ <Section className="mt-8">+ <Img+ src={CAP_LOGO_URL}+ width="40"+ height="40"+ alt="Cap"+ className="mx-auto my-0"+ />+ </Section>+ <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">+ New comment on your Cap+ </Heading>+ <Text className="text-sm leading-6 text-black">+ {commenterName} left a comment on your Cap "{videoName}":+ </Text>+ <Section className="my-4 p-4 bg-gray-50 rounded-lg">+ <Text className="text-sm leading-6 text-gray-700 italic">+ "{commentContent}"+ </Text>+ </Section>+ <Text className="text-sm leading-6 text-black">+ Click the button below to view the comment and respond.+ </Text>+ <Section className="my-8 text-center">+ <Link+ className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"+ href={url}+ >+ View Comment+ </Link>+ </Section>+ <Text className="text-sm leading-6 text-black">+ or copy and paste this URL into your browser:+ </Text>+ <Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline">+ {url.replace(/^https?:\/\//, "")}+ </Text>+ <Footer email={email} />+ </Container>+ </Body>+ </Tailwind>+ </Html>+ );+}diff --git a/packages/database/package.json b/packages/database/package.jsonindex 8d4affc05..09dc492be 100644--- a/packages/database/package.json+++ b/packages/database/package.json@@ -23,7 +23,7 @@"next": "14.2.9","next-auth": "^4.24.5","react-email": "^1.10.1",- "resend": "3.0.0"+ "resend": "4.1.2"},"devDependencies": {"@cap/ui": "workspace:*",diff --git a/packages/database/schema.ts b/packages/database/schema.tsindex 5bff02c02..3293ed64c 100644--- a/packages/database/schema.ts+++ b/packages/database/schema.ts@@ -268,6 +268,20 @@ export const comments = mysqlTable(}));+// Add a new table to track email notifications+export const emailNotifications = mysqlTable(+ "email_notifications",+ {+ id: nanoId("id").notNull().primaryKey().unique(),+ userId: nanoId("userId").notNull(),+ type: varchar("type", { length: 255 }).notNull(),+ sentAt: timestamp("sentAt").notNull().defaultNow(),+ },+ (table) => ({+ userIdTypeIndex: index("user_id_type_idx").on(table.userId, table.type),+ })+);+export const s3Buckets = mysqlTable("s3_buckets", {id: nanoId("id").notNull().primaryKey().unique(),ownerId: nanoId("ownerId").notNull(),diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 07123d8af..e4b831df9 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -6,7 +6,7 @@ settings:patchedDependencies:'@kobalte/[email protected]':- hash: daf56e70aa12211e66d61eca48f0538cc1963c967982714f3abc09110083cf0d+ hash: kzigaefucz2gzue42hjqb5kxbapath: patches/@[email protected]importers:@@ -60,7 +60,7 @@ importers:version: 0.0.14'@kobalte/core':specifier: ^0.13.7- version: 0.13.7(patch_hash=daf56e70aa12211e66d61eca48f0538cc1963c967982714f3abc09110083cf0d)([email protected])+ version: 0.13.7(patch_hash=kzigaefucz2gzue42hjqb5kxba)([email protected])'@solid-primitives/bounds':specifier: ^0.0.122version: 0.0.122([email protected])@@ -373,7 +373,7 @@ importers:version: 8.57.1eslint-config-airbnb-typescript:specifier: ^18.0.0- version: 18.0.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ version: 18.0.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])eslint-import-resolver-typescript:specifier: ^3.6.1version: 3.6.3(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])@@ -585,8 +585,8 @@ importers:specifier: ^5.26.3resend:- specifier: 1.1.0- version: 1.1.0+ specifier: 4.1.2server-only:specifier: ^0.0.1version: 0.0.1@@ -728,8 +728,8 @@ importers:specifier: ^1.10.1version: 1.10.1resend:- specifier: 3.0.0- version: 3.0.0+ specifier: 4.1.2devDependencies:'@cap/ui':specifier: workspace:*@@ -901,7 +901,7 @@ importers:dependencies:'@kobalte/core':specifier: ^0.13.7- version: 0.13.7(patch_hash=daf56e70aa12211e66d61eca48f0538cc1963c967982714f3abc09110083cf0d)([email protected])+ version: 0.13.7(patch_hash=kzigaefucz2gzue42hjqb5kxba)([email protected])cva:specifier: npm:class-variance-authority@^0.7.0version: [email protected]@@ -4026,9 +4026,12 @@ packages:resolution: {integrity: sha512-Ec4vLkVbxoQhThBK1H++FdO4NgCeucg57qmwQ8A9xbozA2hWJiT2jJb5IA/bLE0YdixK8BeucXghJp84YZIG7A==}engines: {node: '>=18.0.0'}- '@react-email/[email protected]':- resolution: {integrity: sha512-hMMhxk6TpOcDC5qnKzXPVJoVGEwfm+U5bGOPH+MyTTlx0F02RLQygcATBKsbP7aI/mvkmBAZoFbgPIHop7ovug==}- engines: {node: '>=16.0.0'}+ '@react-email/[email protected]':+ resolution: {integrity: sha512-W3gTrcmLOVYnG80QuUp22ReIT/xfLsVJ+n7ghSlG2BITB8evNABn1AO2rGQoXuK84zKtDAlxCdm3hRyIpZdGSA==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-h7pwrLVGk5CIx7Ai/oPxBgCCAGY7BEpCUQ7FCzi4+eThcs5IdjSwDPefLEkwaFS8KZc56UNwTAH92kNq5B7blg==}@@ -4220,9 +4223,6 @@ packages:'@rushstack/[email protected]':resolution: {integrity: sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==}- '@selderee/[email protected]':- resolution: {integrity: sha512-gW69MEamZ4wk1OsOq1nG1jcyhXIQcnrsX5JwixVw/9xaiav8TCyjESAruu1Rz9yyInhgBXxkNwMeygKnN2uxNA==}-'@selderee/[email protected]':resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==}@@ -4643,10 +4643,10 @@ packages:react-dom:optional: true- '@storybook/[email protected]':- resolution: {integrity: sha512-uIcc85jwjZNHJuUrWqs5ADB2ge+4mMTIblJf+6gvqYMMj53MyzDtpci7pkT2daKcO03n2VB6pcjW21T/LEqL3g==}+ '@storybook/[email protected]':+ resolution: {integrity: sha512-j+yUaBzLrssR6dPkXj/IYubFgr3JYUovW5tneiNAJigFIcH9xNQ08m4z6pYXGKUYOqcvVLm5S5o8STg/BQjZ8Q==}peerDependencies:- storybook: ^9.0.0-alpha.1+ storybook: ^9.0.0-alpha.2vite: ^4.0.0 || ^5.0.0 || ^6.0.0'@storybook/[email protected]':@@ -4657,10 +4657,10 @@ packages:peerDependencies:storybook: ^8.3.3- '@storybook/[email protected]':- resolution: {integrity: sha512-ax1VSSbm/5k2XQWe15A4VItG5iUM85pQmRP2p4tlS76bDIOLCuHwzYKuGmb4ILOQFM3UQAH3obHFeOaKpcTuog==}+ '@storybook/[email protected]':+ resolution: {integrity: sha512-AAyHIaL6NIalFKI7gBzad85jg5vZ6RBzboQXup3qxEz4d0BrPEJva9XQf63F90SP/I4kaBQA9gURXJX8ZJ86bg==}peerDependencies:- storybook: ^9.0.0-alpha.1+ storybook: ^9.0.0-alpha.2'@storybook/[email protected]':resolution: {integrity: sha512-dHYFQH3mA+EtnCkHXzicbLgsvzYjcDJ1JWsogbItZogkPHgSJM/Wr71uMkcvw8v9mmCyP4NpXJuu6bPoVsOnzg==}@@ -6222,10 +6222,6 @@ packages:resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}- resolution: {integrity: sha512-P7X+QL9Hb9B/c8HI5BFFKmjgBu2XpQuF98WZ9XkO+dBGgk5XgwiQz7o1SmpglNWId3581UcS0SFAWfoIhMHPfg==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==}@@ -7254,6 +7250,9 @@ packages:engines: {node: '>= 10.17.0'}hasBin: true+ resolution: {integrity: sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==}+resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}@@ -7751,10 +7750,6 @@ packages:resolution: {integrity: sha512-9gux8QhvjRO/erSnDPv28noDZcPZmYE7e1vFsBLKLlRlKDSqNJYebj6Qz1TGd5lsRV+X+xYyjCKjuZdABinWjA==}- resolution: {integrity: sha512-hxDF1kVCF2uw4VUJ3vr2doc91pXf2D5ngKcNviSitNkhP9OMOaJkDrFIFL6RMvko7NisWTEiqGpQ9LAxcVok1w==}- engines: {node: '>=14'}-resolution: {integrity: sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg==}engines: {node: '>=14'}@@ -7967,9 +7962,6 @@ packages:resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==}-resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==}engines: {node: '>=4'}@@ -8159,10 +8151,6 @@ packages:resolution: {integrity: sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==}engines: {node: '>=12.13'}- resolution: {integrity: sha512-RydPhl4S6JwAyj0JJjshWJEFG6hNye3pZFBRZaTUfZFwGHxzppNaNOVgQuS/E/SlhrApuMXrpnK1EEIXfdo3Dg==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}engines: {node: '>=8'}@@ -8475,10 +8463,6 @@ packages:resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}- resolution: {integrity: sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}engines: {node: '>=0.10.0'}@@ -9579,9 +9563,6 @@ packages:resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==}- resolution: {integrity: sha512-VfcwXlBWgTF+unPcr7yu3HSSA6QUdDaDnrHcytVfj5Z8azAyKBDrYnSIfeSxlrEayndNcLmrXzg+Vxbo6DWRXQ==}-resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==}@@ -9645,9 +9626,6 @@ packages:resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}engines: {node: '>= 14.16'}- resolution: {integrity: sha512-YYEs+eauIjDH5nUEGi18EohWE0nV2QbGTqmxQcqgZ/0g+laPCQmuIqq7EBLVi9uim9zMgfJv0QBZEnQ3uHw/Tw==}-resolution: {integrity: sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ==}@@ -9798,10 +9776,6 @@ packages:resolution: {integrity: sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==}- resolution: {integrity: sha512-G9xUchgTEiNpormdYBl+Pha50gOUovT18IvAe7EYMZ1/f9W/WWMPRn+xI68yXNMUk3QXHDwo/1wV/4NejVNe1w==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-dKp+C4iXWK4vVYZmYSd0KBH5F/h1HoZRsbJ82AVKRO3PEo8L4lBS/vLwhVtpwwuYcoIsVY+1JYKR268yn480uQ==}@@ -9987,6 +9961,9 @@ packages:peerDependencies:react: '>=16.6.0'+ resolution: {integrity: sha512-I42jl7L3Ze6kZaq+7zXWSunBa3b1on5yfvUW6Eo/3fFOj6dZ5Bqmcd264nJbTK/gn1HjjILAjSwnZbV4RpSaNQ==}+resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==}engines: {node: '>=0.10.0'}@@ -10208,12 +10185,8 @@ packages:resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}- resolution: {integrity: sha512-it8TIDVT+/gAiJsUlv2tdHuvzwCCv4Zwu+udDqIm/dIuByQwe68TtFDcPccxqpSVVrNCBxxXLzsdT1tsV+P3GA==}- engines: {node: '>=18'}-- resolution: {integrity: sha512-LpQVIX5tFqQOtTSco8Q0NxP16zh35Sqla5LqLKIQ1PNv3BRwGMeP84cQ6feIg+JWJ3Xk/1yVoqxJJ0C+iUucbA==}+ resolution: {integrity: sha512-km0btrAj/BqIaRlS+SoLNMaCAUUWEgcEvZpycfVvoXEwAHCxU+vp/ikxPgKRkyKyiR2iDcdUq5uIBTDK9oSSSQ==}engines: {node: '>=18'}@@ -10341,9 +10314,6 @@ packages:resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}engines: {node: '>=4'}- resolution: {integrity: sha512-DEL/RW/f4qLw/NrVg97xKaEBC8IpzIG2fvxnzCp3Z4yk4jQ3MXom+Imav9wApjxX2dfS3eW7x0DXafJr85i39A==}-resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}@@ -11159,10 +11129,6 @@ packages:resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}engines: {node: '>=12.20'}- resolution: {integrity: sha512-Gur3yQGM9qiLNs0KPP7LPgeRbio2QTt4xXouobMCarR0/wyW3F+F/+OWwshg3NG0Adon7uQfSZBpB46NfhoF1A==}- engines: {node: '>=14.16'}-resolution: {integrity: sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==}engines: {node: '>=14.16'}@@ -13994,7 +13960,7 @@ snapshots:dependencies:tslib: 2.8.1- '@kobalte/[email protected](patch_hash=daf56e70aa12211e66d61eca48f0538cc1963c967982714f3abc09110083cf0d)([email protected])':+ '@kobalte/[email protected](patch_hash=kzigaefucz2gzue42hjqb5kxba)([email protected])':dependencies:'@floating-ui/dom': 1.6.12'@internationalized/date': 3.5.6@@ -15204,12 +15170,13 @@ snapshots:react: 18.2.0react-dom: 18.2.0([email protected])- '@react-email/[email protected]':dependencies:- html-to-text: 9.0.3- pretty: 2.0.0- react: 18.2.0- react-dom: 18.2.0([email protected])+ html-to-text: 9.0.5+ js-beautify: 1.15.1+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ react-promise-suspense: 0.3.4'@react-email/[email protected]([email protected])':dependencies:@@ -15348,11 +15315,6 @@ snapshots:'@rushstack/[email protected]': {}- '@selderee/[email protected]':- dependencies:- domhandler: 5.0.3- selderee: 0.10.0-'@selderee/[email protected]':dependencies:domhandler: 5.0.3@@ -15967,9 +15929,9 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])- '@storybook/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))':+ '@storybook/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))':dependencies:- '@storybook/csf-plugin': 9.0.0-alpha.1([email protected])+ '@storybook/csf-plugin': 9.0.0-alpha.2([email protected])browser-assert: 1.2.1storybook: 8.3.3ts-dedent: 2.2.0@@ -16000,7 +15962,7 @@ snapshots:storybook: 8.3.3unplugin: 1.16.1- '@storybook/[email protected]([email protected])':+ '@storybook/[email protected]([email protected])':dependencies:storybook: 8.3.3unplugin: 1.16.1@@ -17867,12 +17829,6 @@ snapshots:- dependencies:- extend-shallow: 2.0.1- is-whitespace: 0.3.0- kind-of: 3.2.2-@@ -18713,7 +18669,7 @@ snapshots:optionalDependencies:source-map: 0.6.1+ [email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]):dependencies:confusing-browser-globals: 1.0.11eslint: 8.57.1@@ -18722,12 +18678,12 @@ snapshots:object.entries: 1.1.8semver: 6.3.1- [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]):dependencies:'@typescript-eslint/eslint-plugin': 7.18.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])'@typescript-eslint/parser': 7.18.0([email protected])([email protected])eslint: 8.57.1- eslint-config-airbnb-base: 15.0.0([email protected])([email protected])+ eslint-config-airbnb-base: 15.0.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])transitivePeerDependencies:- eslint-plugin-import@@ -18792,7 +18748,7 @@ snapshots:debug: 4.3.7([email protected])enhanced-resolve: 5.17.1eslint: 8.57.1- eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]))([email protected]))([email protected])fast-glob: 3.3.2get-tsconfig: 4.8.1is-bun-module: 1.2.1@@ -18811,7 +18767,7 @@ snapshots:debug: 4.3.7([email protected])enhanced-resolve: 5.17.1eslint: 8.57.1- eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])fast-glob: 3.3.2get-tsconfig: 4.8.1is-bun-module: 1.2.1@@ -18830,7 +18786,7 @@ snapshots:debug: 4.3.7([email protected])enhanced-resolve: 5.17.1eslint: 8.57.1- eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])fast-glob: 3.3.2get-tsconfig: 4.8.1is-bun-module: 1.2.1@@ -18843,7 +18799,7 @@ snapshots:- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:debug: 3.2.7optionalDependencies:@@ -18854,7 +18810,18 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected]):+ dependencies:+ debug: 3.2.7+ optionalDependencies:+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])+ eslint: 8.57.1+ eslint-import-resolver-node: 0.3.9+ eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - supports-color++ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]):dependencies:debug: 3.2.7optionalDependencies:@@ -18876,7 +18843,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.1eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]))([email protected]))([email protected])hasown: 2.0.2is-core-module: 2.15.1is-glob: 4.0.3@@ -18904,7 +18871,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.1eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])hasown: 2.0.2is-core-module: 2.15.1is-glob: 4.0.3@@ -19313,6 +19280,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+@@ -19944,14 +19913,6 @@ snapshots:- dependencies:- '@selderee/plugin-htmlparser2': 0.10.0- deepmerge: 4.3.1- dom-serializer: 2.0.0- htmlparser2: 8.0.2- selderee: 0.10.0-dependencies:'@selderee/plugin-htmlparser2': 0.11.0@@ -20198,8 +20159,6 @@ snapshots:call-bind: 1.0.7has-tostringtag: 1.0.2- [email protected]: {}-@@ -20342,8 +20301,6 @@ snapshots:- [email protected]: {}-dependencies:is-docker: 2.2.1@@ -20866,10 +20823,6 @@ snapshots:dependencies:json-buffer: 3.0.1- dependencies:- is-buffer: 1.1.6-@@ -22613,11 +22566,6 @@ snapshots:dependencies:entities: 4.5.0- dependencies:- leac: 0.6.0- peberminta: 0.8.0-dependencies:leac: 0.6.0@@ -22668,8 +22616,6 @@ snapshots:- [email protected]: {}-@@ -22821,12 +22767,6 @@ snapshots:- dependencies:- condense-newlines: 0.2.1- extend-shallow: 2.0.1- js-beautify: 1.15.1-@@ -23037,6 +22977,10 @@ snapshots:react: 18.3.1react-fast-compare: 3.2.2+ dependencies:+ fast-deep-equal: 2.0.1+@@ -23363,14 +23307,12 @@ snapshots:dependencies:- '@react-email/render': 0.0.7- type-fest: 3.13.0-- dependencies:- '@react-email/render': 0.0.11+ transitivePeerDependencies:+ - react+ - react-domdependencies:@@ -23512,10 +23454,6 @@ snapshots:extend-shallow: 2.0.1kind-of: 6.0.3- dependencies:- parseley: 0.11.0-dependencies:parseley: 0.12.1@@ -23827,7 +23765,7 @@ snapshots:[email protected]([email protected])([email protected](@types/[email protected])([email protected])):dependencies:- '@storybook/builder-vite': 9.0.0-alpha.1([email protected])([email protected](@types/[email protected])([email protected]))+ '@storybook/builder-vite': 9.0.0-alpha.2([email protected])([email protected](@types/[email protected])([email protected]))transitivePeerDependencies:- storybook- vite@@ -24427,8 +24365,6 @@ snapshots:- [email protected]: {}-