Skip to content

Commit dd57dc2

Browse files
chore: update critical deps (#190)
* chore(deps): update react, next, sanity delete react-confetti * chore: delete unnecesry files and implementation * chore: actually commit package-lock * chore(autofix): apply formatting * chore(autofix): apply formatting (attempt 2/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 54d1521 commit dd57dc2

File tree

10 files changed

+13654
-9410
lines changed

10 files changed

+13654
-9410
lines changed

package-lock.json

Lines changed: 13634 additions & 9366 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
"@radix-ui/react-slot": "^1.1.0",
4141
"@react-email/components": "^0.0.31",
4242
"@react-email/render": "^1.0.3",
43-
"@sanity/code-input": "^5.1.1",
44-
"@sanity/color-input": "^4.0.1",
45-
"@sanity/google-maps-input": "^4.0.1",
43+
"@sanity/code-input": "^6.0.3",
44+
"@sanity/color-input": "^5.0.2",
45+
"@sanity/google-maps-input": "^4.2.0",
4646
"@sanity/image-url": "^1.1.0",
47-
"@sanity/orderable-document-list": "^1.2.2",
48-
"@sanity/vision": "^3.67.1",
47+
"@sanity/orderable-document-list": "^1.4.0",
48+
"@sanity/vision": "^4.20.3",
4949
"@sanity/webhook": "^4.0.4",
5050
"@t3-oss/env-nextjs": "^0.10.1",
5151
"@tanstack/react-query": "^5.50.0",
@@ -63,16 +63,16 @@
6363
"hugeicons-react": "^0.3.0",
6464
"lucide-react": "^0.459.0",
6565
"motion": "^11.15.0",
66-
"next": "^15.1.0",
67-
"next-sanity": "^9.10.2",
68-
"react": "^18.3.1",
69-
"react-confetti": "^6.1.0",
70-
"react-dom": "^18.3.1",
66+
"next": "^15.5.7",
67+
"next-sanity": "^11.6.10",
68+
"react": "^19.2.1",
69+
"react-dom": "^19.2.1",
7170
"react-email": "^3.0.4",
7271
"react-hook-form": "^7.53.2",
72+
"react-is": "^19.2.1",
7373
"react-syntax-highlighter": "^15.6.1",
7474
"resend": "^4.1.1",
75-
"sanity": "^3.67.1",
75+
"sanity": "^4.20.3",
7676
"server-only": "^0.0.1",
7777
"stripe": "^17.3.1",
7878
"styled-components": "^6.1.13",

search-implementation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ This document outlines how to set up a global search feature powered by Algolia
55
## Components Created
66

77
1. **UI Components**:
8-
98
- `src/components/ui/command.tsx` - Command menu component using CMDK
109
- `src/components/molecules/search-command.tsx` - Search component with keyboard shortcut listener
1110
- `src/components/organisms/global-search.tsx` - Wrapper for the search component
@@ -45,10 +44,13 @@ ALGOLIA_ADMIN_API_KEY="your-algolia-admin-api-key"
4544
- **HTTP Method**: POST
4645
- **Trigger on**: Create, Update, Delete
4746
- **Filter**:
47+
4848
```
4949
_type == 'post'
5050
```
51+
5152
- **Projection**:
53+
5254
```
5355
{
5456
"transactionId": _rev,
@@ -86,7 +88,6 @@ This will fetch all published documents from Sanity and index them in Algolia.
8688
## How It Works
8789

8890
1. **Content Indexing**:
89-
9091
- When content is published, updated, or deleted in Sanity, a webhook is triggered
9192
- The webhook calls our API route with details about the operation
9293
- The API route updates the Algolia index accordingly

src/app/(website)/association/join/success/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getStripe, isStripeAvailable } from "@/lib/stripe"
22
import { Heading } from "@/components/atoms/typography/Heading"
33
import { Paragraph } from "@/components/atoms/typography/Paragraph"
4-
import { SuccessConfetti } from "./success-confetti"
54
import { CheckmarkBadge01Icon, UserMultipleIcon, WavingHand01Icon } from "hugeicons-react"
65
import { SectionContainer } from "@/components/atoms/layout/SectionContainer"
76
import { BlurredBackground } from "@/components/organisms/blurred-background"
@@ -23,7 +22,7 @@ export default async function SuccessPage({ searchParams }: SuccessPageProps) {
2322
return (
2423
<main className="relative">
2524
<div className="absolute inset-0 overflow-hidden">
26-
<SuccessConfetti />
25+
<h1>Success!</h1>
2726
</div>
2827

2928
{/* Header Section */}

src/app/(website)/association/join/success/success-confetti.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/components/molecules/button.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ const buttonVariants = cva(
3131
)
3232

3333
export interface ButtonProps
34-
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
35-
VariantProps<typeof buttonVariants> {
34+
extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
3635
asChild?: boolean
3736
}
3837

src/components/molecules/sheet.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ const sheetVariants = cva(
5050
)
5151

5252
interface SheetContentProps
53-
extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
54-
VariantProps<typeof sheetVariants> {}
53+
extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {}
5554

5655
const SheetContent = React.forwardRef<React.ElementRef<typeof SheetPrimitive.Content>, SheetContentProps>(
5756
({ side = "right", className, children, ...props }, ref) => (

src/components/ui/badge.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ const badgeVariants = cva(
2323
)
2424

2525
export interface BadgeProps
26-
extends React.HTMLAttributes<HTMLDivElement>,
27-
VariantProps<typeof badgeVariants> {}
26+
extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
2827

2928
function Badge({ className, variant, ...props }: BadgeProps) {
3029
return <div className={cn(badgeVariants({ variant }), className)} {...props} />

src/components/ui/button.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ const buttonVariants = cva(
3333
)
3434

3535
export interface ButtonProps
36-
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
37-
VariantProps<typeof buttonVariants> {
36+
extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
3837
asChild?: boolean
3938
}
4039

src/components/ui/sheet.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ const sheetVariants = cva("fixed z-50 gap-4 bg-background p-6 shadow-lg", {
3636
})
3737

3838
interface SheetContentProps
39-
extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
40-
VariantProps<typeof sheetVariants> {}
39+
extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {}
4140

4241
const SheetContent = React.forwardRef<React.ElementRef<typeof SheetPrimitive.Content>, SheetContentProps>(
4342
({ side = "right", className, children, ...props }, ref) => (

0 commit comments

Comments
 (0)