Connect, collaborate, and grow with a community of TypeScript developers
add support to aot (#1613)
bautistaaaa859f947c13b
diff --git a/apps/aot/package.json b/apps/aot/package.jsonindex 134fe078..0e5b2397 100644--- a/apps/aot/package.json+++ b/apps/aot/package.json@@ -22,6 +22,8 @@"@repo/db": "workspace:*","@repo/monaco": "workspace:*","@repo/ui": "workspace:*",+ "@stripe/react-stripe-js": "^2.8.0",+ "@stripe/stripe-js": "^4.6.0","@tanstack/react-query": "5.51.21","@tanstack/react-query-devtools": "5.51.21","@tanstack/react-table": "^8.20.5",@@ -39,9 +41,11 @@"next": "14.2.5","next-themes": "^0.2.1","react": "18.2.0",+ "react-confetti": "^6.1.0","react-dom": "18.2.0","react-hook-form": "^7.45.1","server-only": "^0.0.1",+ "stripe": "^17.1.0","superjson": "^2.2.1","uploadthing": "6.3.1","zod": "3.23.3",diff --git a/apps/aot/src/app/support/_utils/stripe.ts b/apps/aot/src/app/support/_utils/stripe.tsnew file mode 100644index 00000000..1eb6706e--- /dev/null+++ b/apps/aot/src/app/support/_utils/stripe.ts@@ -0,0 +1,12 @@+import 'server-only';++import Stripe from 'stripe';++export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, {+ // https://github.com/stripe/stripe-node#configuration+ // apiVersion: '2023-10-16',+ appInfo: {+ name: 'Typhero',+ url: 'https://typehero.dev',+ },+});diff --git a/apps/aot/src/app/support/confirmation/content.tsx b/apps/aot/src/app/support/confirmation/content.tsxnew file mode 100644index 00000000..b16ca80d--- /dev/null+++ b/apps/aot/src/app/support/confirmation/content.tsx@@ -0,0 +1,32 @@+'use client';++import { useSession } from '@repo/auth/react';+import { Button } from '@repo/ui/components/button';+import Link from 'next/link';+import Confetti from 'react-confetti';++export default function Content() {+ const { data: session } = useSession();++ const thankYouMessage = session?.user?.name+ ? `Thank you ${session.user.name} for you donation!`+ : `Thank you for your support!`;++ return (+ <>+ <div className="container flex h-full flex-col items-center justify-center p-4">+ <h1 className="mb-8 text-4xl font-bold tracking-tight text-neutral-900 dark:text-white">+ {thankYouMessage}+ </h1>+ <div className="flex flex-col gap-4">+ <Link href="/events">+ <Button className="w-56" variant="default" size="lg">+ Explore Our Events+ </Button>+ </Link>+ </div>+ </div>+ <Confetti recycle={false} />+ </>+ );+}diff --git a/apps/aot/src/app/support/confirmation/page.tsx b/apps/aot/src/app/support/confirmation/page.tsxnew file mode 100644index 00000000..f71567aa--- /dev/null+++ b/apps/aot/src/app/support/confirmation/page.tsx@@ -0,0 +1,74 @@+import type { Stripe } from 'stripe';+import { stripe } from '../_utils/stripe';+import { auth } from '~/server/auth';+import { prisma } from '@repo/db';+import dynamic from 'next/dynamic';++const ContentNoSSR = dynamic(() => import('./content'), {+ ssr: false,+});++export default async function ResultPage({+ searchParams,+}: {+ searchParams: { checkout_id: string };+}) {+ if (!searchParams.checkout_id)+ throw new Error('Please provide a valid session_id (`cs_test_...`)');++ const session = await auth();++ const checkoutSession: Stripe.Checkout.Session = await stripe.checkout.sessions.retrieve(+ searchParams.checkout_id,+ {+ expand: ['line_items', 'payment_intent'],+ },+ );++ const paymentIntent = checkoutSession.payment_intent as Stripe.PaymentIntent;++ if (+ session &&+ paymentIntent.status === 'succeeded' &&+ checkoutSession.amount_total &&+ checkoutSession.amount_total > 0+ ) {+ await prisma.user.update({+ where: { id: session.user.id },+ data: {+ donations: {+ upsert: {+ where: { stripeCheckoutSessionId: checkoutSession.id },+ update: {},+ create: {+ stripeCheckoutSessionId: checkoutSession.id,+ amount: checkoutSession.amount_total,+ },+ },+ },+ roles: {+ connectOrCreate: {+ where: {+ role: 'SUPPORTER',+ },+ create: {+ role: 'SUPPORTER',+ },+ },+ },+ },+ });+ }++ if (paymentIntent.status !== 'succeeded') {+ return (+ <div className="container flex h-full flex-col items-center justify-center p-4">+ <h1 className="mb-8 text-4xl font-bold tracking-tight text-neutral-900 dark:text-white">+ Something went wrong.+ </h1>+ </div>+ );+ }++ return <ContentNoSSR />;+}diff --git a/apps/aot/src/app/support/page.tsx b/apps/aot/src/app/support/page.tsxnew file mode 100644index 00000000..f249c4fd--- /dev/null+++ b/apps/aot/src/app/support/page.tsx@@ -0,0 +1,68 @@+import type { Metadata } from 'next';+import { auth } from '~/server/auth';+import { Button } from '@repo/ui/components/button';+import styles from './support.module.css';+import { HeartHandshake } from '@repo/ui/icons';+// import { HandHeart } from '@repo/ui/icons/hand-heart';++export const metadata: Metadata = {+ title: 'Support the Platform | TypeHero',+};++export default async function DonatePage() {+ const session = await auth();+ return (+ // 3.5rem is the height of the navbar, thus -7rem to center vertically+ <div className="container relative flex min-h-[calc(100lvh-7rem)] flex-col p-4 py-8 sm:items-center sm:justify-center sm:text-center">+ <div className={`${styles.supportBackground} fixed left-0 -z-10 h-full w-full`} />+ <div className="mx-auto max-w-[69ch] text-lg leading-9 text-neutral-600 dark:text-white/50">+ <div className="mb-8 flex items-center gap-4 sm:flex-col">+ <div className="hidden h-12 w-12 place-items-center rounded-full bg-black/10 sm:grid dark:bg-gradient-to-b dark:from-white/10 dark:to-[#bea74b44]">+ <HeartHandshake className="h-8 w-8 stroke-1 text-neutral-900 dark:text-white" />+ </div>+ <h1 className="text-4xl font-bold tracking-tight text-neutral-900 dark:text-white">+ Support+ </h1>+ </div>+ <p className="mb-6 text-balance">+ <span className="bg-gradient-to-br from-blue-400 to-blue-600 bg-clip-text font-bold text-transparent duration-300 hover:underline">+ TypeHero+ </span>{' '}+ and{' '}+ <span className="bg-gradient-to-br from-rose-400 to-rose-600 bg-clip-text font-bold text-transparent duration-300 hover:underline">+ Advent of TypeScript+ </span>{' '}+ will always be <span className="font-semibold dark:text-neutral-200">free</span> platforms+ to use.+ </p>+ <p className="mb-6 text-balance">+ Contributions will go towards server costs, time spent maintaining the platform, Advent of+ TypeScript, and future development.+ </p>+ <Button+ asChild+ className={`${styles.donateStripeLinkBtn} group relative w-fit overflow-hidden rounded-xl border-none p-0 font-bold !ring-0 transition-all duration-300 hover:-translate-y-0.5 hover:shadow-xl active:translate-y-0 active:duration-75 dark:p-[1px]`}+ variant="outline"+ >+ <a href="https://donate.stripe.com/14k5kv1uv0e57yU4gh">+ <span className="inline-flex h-full w-fit items-center gap-2 rounded-xl bg-black px-4 py-2 text-white transition-all duration-300 dark:bg-neutral-900 dark:text-white">+ Click to Donate+ </span>+ </a>+ </Button>+ {session ? (+ <p className="mb-6 mt-8 max-w-[42ch] text-balance text-sm sm:mx-auto">+ Since you are logged in you will see a "Supporter" badge appear next to your name on+ both the TypeHero and Advent of TypeScript platforms.+ </p>+ ) : (+ <p className="mb-6 mt-8 max-w-[42ch] text-balance text-sm sm:mx-auto">+ <span className="font-semibold dark:text-neutral-200">You are not logged in!</span> If+ you would like to receive "Supporter" badge on both the TypeHero and Advent of+ TypeScript platforms, please log in, otherwise, your donation will be anonymous.+ </p>+ )}+ </div>+ </div>+ );+}diff --git a/apps/aot/src/app/support/support.module.css b/apps/aot/src/app/support/support.module.cssnew file mode 100644index 00000000..eb2a5b4f--- /dev/null+++ b/apps/aot/src/app/support/support.module.css@@ -0,0 +1,42 @@+/* The module for the Newsletter page background */+.supportBackground {+ animation: fade 5s linear infinite alternate;+ background:+ /* linear-gradient(0deg, hsl(var(--background)) 0%, rgba(9, 9, 11, 0) 50%), */ radial-gradient(+ ellipse 100% 55% at 50% 100%,+ #0000 0%,+ hsl(46 97% 65% / 0.13),+ #0000 150%+ );+}++.donateStripeLinkBtn {+ background: linear-gradient(+ var(--gradient-angle),+ hsla(46, 97%, 65%, 0.5),+ hsla(46, 97%, 65%, 0.1),+ hsla(46, 97%, 65%, 1),+ hsla(46, 97%, 65%, 0.3)+ ) !important;+ animation: gradient-rotate 5s linear infinite reverse;+}++@keyframes gradient-rotate {+ 0% {+ --gradient-angle: 360deg;+ }++ 100% {+ --gradient-angle: 0deg;+ }+}++@keyframes fade {+ 0% {+ opacity: 1;+ }++ 100% {+ opacity: 0.5;+ }+}diff --git a/apps/aot/src/utils/feature-flag.ts b/apps/aot/src/utils/feature-flag.tsindex d3f03b98..205bf5df 100644--- a/apps/aot/src/utils/feature-flag.ts+++ b/apps/aot/src/utils/feature-flag.ts@@ -8,6 +8,7 @@ export const mockFlags = {enableInChallengeTrack: true,enableHolidayEvent: true,enableAotPlatform: true,+ enableAotLandingPage: true,};export async function getAllFlags() {diff --git a/apps/web/src/app/support/_actions/stripe.ts b/apps/web/src/app/support/_actions/stripe.tsdeleted file mode 100644index 066a4b11..00000000--- a/apps/web/src/app/support/_actions/stripe.ts+++ /dev/null@@ -1,49 +0,0 @@-'use server';--import type { Stripe } from 'stripe';--import { headers } from 'next/headers';--import { CURRENCY } from '../_utils/config';-import { formatAmountForStripe } from '../_utils/stripe-helpers';-import { stripe } from '../_utils/stripe';--export async function createCheckoutSession(- amount: number,-): Promise<{ client_secret: string | null; url: string | null }> {- const origin: string = headers().get('origin')!;-- const checkoutSession: Stripe.Checkout.Session = await stripe.checkout.sessions.create({- mode: 'payment',- submit_type: 'donate',- line_items: [- {- quantity: 1,- price_data: {- currency: CURRENCY,- product_data: {- name: 'Custom amount donation',- },- unit_amount: formatAmountForStripe(amount, CURRENCY),- },- },- ],- success_url: `${origin}/support/confirmation?session_id={CHECKOUT_SESSION_ID}`,- cancel_url: `${origin}/support`,- });-- return {- client_secret: checkoutSession.client_secret,- url: checkoutSession.url,- };-}--export async function createPaymentIntent(data: FormData): Promise<{ client_secret: string }> {- const paymentIntent: Stripe.PaymentIntent = await stripe.paymentIntents.create({- amount: formatAmountForStripe(Number(data.get('customDonation') as string), CURRENCY),- automatic_payment_methods: { enabled: true },- currency: CURRENCY,- });-- return { client_secret: paymentIntent.client_secret! };-}diff --git a/apps/web/src/app/support/_components/checkout-form.tsx b/apps/web/src/app/support/_components/checkout-form.tsxdeleted file mode 100644index e58a8229..00000000--- a/apps/web/src/app/support/_components/checkout-form.tsx+++ /dev/null@@ -1,167 +0,0 @@-'use client';--import { useEffect, useState } from 'react';--import { zodResolver } from '@hookform/resolvers/zod';-import { Button } from '@repo/ui/components/button';-import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@repo/ui/components/card';-import {- Form,- FormControl,- FormField,- FormItem,- FormLabel,- FormMessage,-} from '@repo/ui/components/form';-import { Input } from '@repo/ui/components/input';-import { Label } from '@repo/ui/components/label';-import { RadioGroup, RadioGroupItem } from '@repo/ui/components/radio-group';-import { useForm } from 'react-hook-form';-import { NumericFormat } from 'react-number-format';-import { z } from 'zod';-import { createCheckoutSession } from '../_actions/stripe';--const AMOUNTS = ['5', '10', '25'];--export default function CheckoutForm() {- const [isCustomAmount, setIsCustomAmount] = useState(false);- const FormSchema = z.object({- amount: z.string().refine(- (val) => {- const number = parseFloat(val);-- if (val === 'custom') {- return true;- }-- return !isNaN(number) && number > 0;- },- {- message: 'Amount must be a positive number',- },- ),- customAmount: z.string().optional(),- });-- const form = useForm<z.infer<typeof FormSchema>>({- mode: 'onChange',- resolver: zodResolver(FormSchema),- defaultValues: {- amount: '5',- customAmount: '5',- },- });-- async function onSubmit(data: z.infer<typeof FormSchema>) {- const amount = parseFloat(data.amount);- const { url } = await createCheckoutSession(amount);- window.location.assign(url!);- }-- const watchAmount = form.watch('amount');-- // kill me- useEffect(() => {- if (!isCustomAmount) {- return;- }- form.setValue('amount', form.getValues('customAmount')!);- }, [isCustomAmount, form]);-- return (- <Card className="h-auto w-full border bg-transparent bg-gradient-to-br from-neutral-50 to-neutral-100 transition hover:border-transparent dark:from-neutral-900/95 dark:to-neutral-950/95">- <CardHeader>- <CardTitle>Select an amount</CardTitle>- </CardHeader>- <Form {...form}>- <form className="z-10 flex flex-col space-y-4" onSubmit={form.handleSubmit(onSubmit)}>- <CardContent className="space-y-4">- {Boolean(isCustomAmount) && (- <FormField- control={form.control}- name="customAmount"- render={({ field }) => (- <FormItem>- <FormLabel>Custom</FormLabel>- <FormControl>- <NumericFormat- {...field}- allowNegative={false}- defaultValue={field.value}- customInput={Input}- thousandSeparator=","- decimalScale={2}- fixedDecimalScale- prefix="$"- onValueChange={(values) => {- field.onChange(values.value);- form.setValue('amount', values.value);- }}- id="customAmount"- placeholder="Enter amount"- />- </FormControl>- </FormItem>- )}- />- )}- <FormField- control={form.control}- name="amount"- render={({ field }) => (- <FormItem>- <RadioGroup- onValueChange={(value) => {- field.onChange(value);- setIsCustomAmount(value === 'custom');- }}- defaultValue={field.value}- className="flex flex-wrap gap-2"- >- {AMOUNTS.map((amount) => (- <div key={amount}>- <RadioGroupItem- value={amount}- id={`amount-${amount}`}- className="peer sr-only"- />- <Label- htmlFor={`amount-${amount}`}- className="peer-data-[state=checked]:bg-primary peer-data-[state=checked]:text-primary-foreground flex cursor-pointer items-center justify-center rounded-md border px-4 py-2 text-sm"- >- ${amount}- </Label>- </div>- ))}- <div>- <RadioGroupItem value="custom" id="amount-custom" className="peer sr-only" />- <Label- htmlFor="amount-custom"- className="peer-data-[state=checked]:bg-primary peer-data-[state=checked]:text-primary-foreground flex cursor-pointer items-center justify-center rounded-md border px-4 py-2 text-sm"- >- Custom- </Label>- </div>- </RadioGroup>- <FormMessage />- </FormItem>- )}- />- </CardContent>- <CardFooter>- <Button- type="submit"- variant="secondary"- className="border border-slate-400 dark:border-slate-800"- >- Donate{' '}- {Number.isNaN(parseFloat(watchAmount))- ? `a valid amount!`- : `$${parseFloat(watchAmount).toFixed(2)}`}- </Button>- </CardFooter>- </form>- </Form>- </Card>- );-}diff --git a/apps/web/src/app/support/_utils/config.ts b/apps/web/src/app/support/_utils/config.tsdeleted file mode 100644index 7958991f..00000000--- a/apps/web/src/app/support/_utils/config.ts+++ /dev/null@@ -1 +0,0 @@-export const CURRENCY = 'usd';diff --git a/apps/web/src/app/support/_utils/get-stripejs.ts b/apps/web/src/app/support/_utils/get-stripejs.tsdeleted file mode 100644index cd7f38b6..00000000--- a/apps/web/src/app/support/_utils/get-stripejs.ts+++ /dev/null@@ -1,10 +0,0 @@-import type { Stripe } from '@stripe/stripe-js';-import { loadStripe } from '@stripe/stripe-js';--let stripePromise: Promise<Stripe | null>;-export const getStripe = () => {- if (!stripePromise) {- stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!);- }- return stripePromise;-};diff --git a/apps/web/src/app/support/_utils/stripe-helpers.ts b/apps/web/src/app/support/_utils/stripe-helpers.tsdeleted file mode 100644index 79d927fa..00000000--- a/apps/web/src/app/support/_utils/stripe-helpers.ts+++ /dev/null@@ -1,24 +0,0 @@-export function formatAmountForDisplay(amount: number, currency: string): string {- const numberFormat = new Intl.NumberFormat(['en-US'], {- style: 'currency',- currency,- currencyDisplay: 'symbol',- });- return numberFormat.format(amount);-}--export function formatAmountForStripe(amount: number, currency: string): number {- const numberFormat = new Intl.NumberFormat(['en-US'], {- style: 'currency',- currency,- currencyDisplay: 'symbol',- });- const parts = numberFormat.formatToParts(amount);- let zeroDecimalCurrency = true;- for (const part of parts) {- if (part.type === 'decimal') {- zeroDecimalCurrency = false;- }- }- return zeroDecimalCurrency ? amount : Math.round(amount * 100);-}diff --git a/apps/web/src/app/support/confirmation/error.tsx b/apps/web/src/app/support/confirmation/error.tsxdeleted file mode 100644index 50e602ca..00000000--- a/apps/web/src/app/support/confirmation/error.tsx+++ /dev/null@@ -1,5 +0,0 @@-'use client';--export default function Error({ error }: { error: Error }) {- return <h2>{error.message}</h2>;-}diff --git a/apps/web/src/app/support/page.tsx b/apps/web/src/app/support/page.tsxindex cddfd923..6f454e5c 100644--- a/apps/web/src/app/support/page.tsx+++ b/apps/web/src/app/support/page.tsx@@ -3,7 +3,6 @@ import { auth } from '~/server/auth';import { Button } from '@repo/ui/components/button';import styles from './support.module.css';import { HeartHandshake } from '@repo/ui/icons';-// import { HandHeart } from '@repo/ui/icons/hand-heart';export const metadata: Metadata = {title: 'Support the Platform | TypeHero',diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex deed8d7c..49a0d574 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -91,10 +91,10 @@ importers:version: 2.6.0-beta.12next:specifier: 14.2.5- version: 14.2.5(@babel/[email protected])([email protected]([email protected]))([email protected])+ version: 14.2.5(@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])next-themes:specifier: ^0.2.1- version: 0.2.1([email protected](@babel/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 0.2.1([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])react:specifier: 18.2.0version: 18.2.0@@ -158,7 +158,7 @@ importers:version: 13.4.10([email protected])([email protected])eslint-plugin-import:specifier: ^2.27.5- version: 2.27.5([email protected])+ version: 2.27.5(@typescript-eslint/[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])postcss:specifier: ^8.4.31version: 8.4.31@@ -195,6 +195,12 @@ importers:'@repo/ui':specifier: workspace:*version: link:../../packages/ui+ '@stripe/react-stripe-js':+ specifier: ^2.8.0+ version: 2.8.1(@stripe/[email protected])([email protected]([email protected]))([email protected])+ '@stripe/stripe-js':+ specifier: ^4.6.0+ version: 4.9.0'@tanstack/react-query':specifier: 5.51.21version: 5.51.21([email protected])@@ -239,13 +245,16 @@ importers:version: 5.0.7next:specifier: 14.2.5- version: 14.2.5(@playwright/[email protected])([email protected]([email protected]))([email protected])next-themes:specifier: ^0.2.1- version: 0.2.1([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 0.2.1([email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])react:specifier: 18.2.0version: 18.2.0+ react-confetti:+ specifier: ^6.1.0+ version: 6.1.0([email protected])react-dom:specifier: 18.2.0version: 18.2.0([email protected])@@ -255,6 +264,9 @@ importers:server-only:specifier: ^0.0.1version: 0.0.1+ stripe:+ specifier: ^17.1.0+ version: 17.2.1superjson:specifier: ^2.2.1version: 2.2.1@@ -352,7 +364,7 @@ importers:version: 1.0.0next:specifier: 14.2.5- version: 14.2.5(@playwright/[email protected])([email protected]([email protected]))([email protected])react:specifier: 18.2.0version: 18.2.0@@ -428,7 +440,7 @@ importers:version: link:../../packages/ui'@sentry/nextjs':specifier: ^7.73.0- version: 7.73.0([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])+ version: 7.73.0([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])'@stripe/react-stripe-js':specifier: ^2.8.0@@ -452,7 +464,7 @@ importers:'@uploadthing/react':specifier: ^6.2.2- version: 6.2.2(@uploadthing/[email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])+ version: 6.2.2(@uploadthing/[email protected])([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])'@vercel/analytics':specifier: ^1.1.1version: 1.1.1@@ -461,10 +473,10 @@ importers:version: 0.2.1'@vercel/speed-insights':specifier: ^1.0.12- version: 1.0.12([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 1.0.12([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])'@vercel/toolbar':specifier: ^0.1.18- version: 0.1.22([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 0.1.22([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])algoliasearch:specifier: ^4.20.0version: 4.20.0@@ -503,10 +515,10 @@ importers:version: 5.0.7next:specifier: 14.2.5- version: 14.2.5(@playwright/[email protected])([email protected]([email protected]))([email protected])+ version: 14.2.5(@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])next-themes:specifier: ^0.2.1- version: 0.2.1([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 0.2.1([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])react:specifier: 18.2.0version: 18.2.0@@ -533,7 +545,7 @@ importers:react-instantsearch-nextjs:specifier: ^0.1.5- version: 0.1.5([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected])([email protected]([email protected]))([email protected]))+ version: 0.1.5([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected])([email protected]([email protected]))([email protected]))react-intersection-observer:specifier: ^9.5.2version: 9.5.2([email protected])@@ -630,7 +642,7 @@ importers:version: 13.4.10([email protected])([email protected])eslint-plugin-import:specifier: ^2.27.5- version: 2.27.5([email protected])+ version: 2.27.5(@typescript-eslint/[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])postcss:specifier: ^8.4.31version: 8.4.31@@ -959,7 +971,7 @@ importers:dependencies:'@next/eslint-plugin-next':specifier: canary- version: 15.0.2-canary.9+ version: 15.0.2-canary.11'@repo/tsconfig':specifier: workspace:*version: link:../config-typescript@@ -971,7 +983,7 @@ importers:version: 5.62.0([email protected])([email protected])'@vercel/style-guide':specifier: ^4.0.2eslint:specifier: ^8.45.0version: 8.45.0@@ -2074,8 +2086,8 @@ packages:'@next/[email protected]':resolution: {integrity: sha512-YJqyq6vk39JQfvaNtN83t/p5Jy45+bazRL+V4QI8FPd3FBqFYMEsULiwRLgSJMgFqkk4t4JbeZurz+gILEAFpA==}- '@next/[email protected]':- resolution: {integrity: sha512-mE9uZfzhmaCotUjKmg+GVu/r/xH5FdKVlUMTG9QYqd5E6UbRsz9aHE+XkBOsFaILDmMjSVBRveit8moyw4F5Fg==}+ '@next/[email protected]':+ resolution: {integrity: sha512-1satM7xzx/+ckt7D1/eiXg7NLfhFcEy02SvAk7j4G+mwP+bHHFrU2rj0sf419AVd5nkKUp9JYzhI/yty2xjLNQ==}'@next/[email protected]':resolution: {integrity: sha512-/9zVxJ+K9lrzSGli1///ujyRfon/ZneeZ+v4ptpiPoOU+GKZnm8Wj8ELWU1Pm7GHltYRBklmXMTUqM/DqQ99FQ==}@@ -9645,7 +9657,7 @@ snapshots:dependencies:glob: 7.1.7- '@next/[email protected]':+ '@next/[email protected]':dependencies:fast-glob: 3.3.1@@ -11140,7 +11152,7 @@ snapshots:localforage: 1.10.0tslib: 2.6.0- '@sentry/[email protected]([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])':+ '@sentry/[email protected]([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])':dependencies:'@rollup/plugin-commonjs': 24.0.0([email protected])'@sentry/core': 7.73.0@@ -11152,7 +11164,7 @@ snapshots:'@sentry/vercel-edge': 7.73.0'@sentry/webpack-plugin': 1.20.0chalk: 3.0.0- next: 14.2.5(@playwright/[email protected])([email protected]([email protected]))([email protected])+ next: 14.2.5(@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])react: 18.2.0rollup: 2.78.0stacktrace-parser: 0.1.10@@ -11728,6 +11740,20 @@ snapshots:'@uploadthing/[email protected]': {}+ '@uploadthing/[email protected](@uploadthing/[email protected])([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])':+ dependencies:+ '@uploadthing/dropzone': 0.1.1+ '@uploadthing/shared': 6.2.0(@uploadthing/[email protected])+ attr-accept: 2.2.2+ file-selector: 0.6.0+ react: 18.2.0+ tailwind-merge: 1.14.0+ uploadthing: 6.3.1+ optionalDependencies:+ next: 14.2.5(@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])+ transitivePeerDependencies:+ - '@uploadthing/mime-types'+'@uploadthing/[email protected](@uploadthing/[email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])':dependencies:'@uploadthing/dropzone': 0.1.1@@ -11738,7 +11764,7 @@ snapshots:tailwind-merge: 1.14.0uploadthing: 6.3.1optionalDependencies:- next: 14.2.5(@playwright/[email protected])([email protected]([email protected]))([email protected])transitivePeerDependencies:- '@uploadthing/mime-types'@@ -11795,12 +11821,12 @@ snapshots:satori: 0.0.46yoga-wasm-web: 0.3.0- '@vercel/[email protected]([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])':+ '@vercel/[email protected]([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])':optionalDependencies:- next: 14.2.5(@playwright/[email protected])([email protected]([email protected]))([email protected])+ next: 14.2.5(@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])react: 18.2.0- '@vercel/[email protected](@next/[email protected])([email protected])([email protected])([email protected])':+ '@vercel/[email protected](@next/[email protected])([email protected])([email protected])([email protected])':dependencies:'@babel/core': 7.22.10'@babel/eslint-parser': 7.22.10(@babel/[email protected])([email protected])@@ -11822,7 +11848,7 @@ snapshots:eslint-plugin-unicorn: 43.0.2([email protected])prettier-plugin-packagejson: 2.4.3([email protected])optionalDependencies:- '@next/eslint-plugin-next': 15.0.2-canary.9+ '@next/eslint-plugin-next': 15.0.2-canary.11eslint: 8.45.0prettier: 3.1.1typescript: 5.3.3@@ -11832,7 +11858,7 @@ snapshots:- jest- supports-color- '@vercel/[email protected]([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])':+ '@vercel/[email protected]([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])':dependencies:'@tinyhttp/app': 1.3.0chokidar: 3.5.3@@ -11841,7 +11867,7 @@ snapshots:get-port: 5.1.1strip-ansi: 6.0.1optionalDependencies:- next: 14.2.5(@playwright/[email protected])([email protected]([email protected]))([email protected])+ next: 14.2.5(@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])react: 18.2.0'@vitest/[email protected]':@@ -13153,7 +13179,7 @@ snapshots:'@typescript-eslint/parser': 5.62.0([email protected])([email protected])eslint: 8.56.0eslint-import-resolver-node: 0.3.7- eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]))([email protected])eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])eslint-plugin-jsx-a11y: 6.7.1([email protected])eslint-plugin-react: 7.32.2([email protected])@@ -13191,7 +13217,7 @@ snapshots:enhanced-resolve: 5.15.0eslint: 8.45.0eslint-module-utils: 2.8.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])- eslint-plugin-import: 2.27.5([email protected])+ eslint-plugin-import: 2.27.5(@typescript-eslint/[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])get-tsconfig: 4.6.2globby: 13.2.2is-core-module: 2.12.1@@ -13221,7 +13247,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]([email protected]))([email protected]):dependencies:debug: 4.3.4enhanced-resolve: 5.15.0@@ -13268,7 +13294,7 @@ snapshots:'@typescript-eslint/parser': 5.62.0([email protected])([email protected])eslint: 8.56.0eslint-import-resolver-node: 0.3.7- eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]))([email protected])transitivePeerDependencies:- supports-color@@ -13353,29 +13379,6 @@ snapshots:- eslint-import-resolver-webpack- supports-color- dependencies:- array-includes: 3.1.6- array.prototype.flat: 1.3.1- array.prototype.flatmap: 1.3.1- debug: 3.2.7- doctrine: 2.1.0- eslint: 8.45.0- eslint-import-resolver-node: 0.3.7- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])- has: 1.0.3- is-core-module: 2.12.1- is-glob: 4.0.3- minimatch: 3.1.2- object.values: 1.1.6- resolve: 1.22.2- semver: 6.3.1- tsconfig-paths: 3.14.2- transitivePeerDependencies:- - eslint-import-resolver-typescript- - eslint-import-resolver-webpack- - supports-color-[email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected]):dependencies:'@typescript-eslint/utils': 5.59.1([email protected])([email protected])@@ -15247,15 +15250,15 @@ snapshots:react: 18.3.1- [email protected]([email protected](@babel/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected]([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:+ next: 14.2.5(@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])react: 18.2.0react-dom: 18.2.0([email protected])- [email protected]([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:- next: 14.2.5(@playwright/[email protected])([email protected]([email protected]))([email protected])react: 18.2.0react-dom: 18.2.0([email protected])@@ -15265,7 +15268,7 @@ snapshots:react: 18.2.0react-dom: 18.3.1([email protected])- [email protected](@babel/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 14.2.5'@swc/helpers': 0.5.5@@ -15286,11 +15289,12 @@ snapshots:'@next/swc-win32-arm64-msvc': 14.2.5'@next/swc-win32-ia32-msvc': 14.2.5'@next/swc-win32-x64-msvc': 14.2.5+ '@playwright/test': 1.38.0transitivePeerDependencies:- '@babel/core'- babel-plugin-macros- [email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 14.2.5'@swc/helpers': 0.5.5@@ -15311,7 +15315,6 @@ snapshots:'@next/swc-win32-arm64-msvc': 14.2.5'@next/swc-win32-ia32-msvc': 14.2.5'@next/swc-win32-x64-msvc': 14.2.5- '@playwright/test': 1.38.0transitivePeerDependencies:- '@babel/core'- babel-plugin-macros@@ -15974,9 +15977,9 @@ snapshots:react: 18.2.0use-sync-external-store: 1.2.0([email protected])- [email protected]([email protected](@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected])([email protected]([email protected]))([email protected])):+ [email protected]([email protected](@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected])([email protected]([email protected]))([email protected])):dependencies:- next: 14.2.5(@playwright/[email protected])([email protected]([email protected]))([email protected])+ next: 14.2.5(@babel/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])react-instantsearch: 7.3.0([email protected])([email protected]([email protected]))([email protected])