Skip to content

Commit 8f86bbf

Browse files
committed
adjust to new
1 parent c9b6d9a commit 8f86bbf

6 files changed

Lines changed: 4786 additions & 4043 deletions

File tree

‎app/(main)/layout.tsx‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Metadata } from "next";
55
import { SanityLive } from "@/sanity/lib/live";
66
import { Nunito } from "next/font/google";
77
import { Inter } from "next/font/google";
8-
import { draftMode } from "next/headers";
98
import { Suspense } from 'react'
109

1110
import NextTopLoader from "nextjs-toploader";
@@ -26,7 +25,8 @@ import AlgoliaDialog from "@/components/algolia-dialog";
2625
import { FaBars } from "react-icons/fa6";
2726
import PlayerFloating from "@/components/player-floating";
2827
import { PlayerProvider } from "@/components/player-context";
29-
import { toPlainText, VisualEditing } from "next-sanity";
28+
import { toPlainText } from "next-sanity";
29+
import {VisualEditing} from 'next-sanity/visual-editing'
3030
import { DisableDraftMode } from "@/components/disable-draft-mode";
3131
import MetaPixel from "./meta-pixel";
3232

@@ -146,12 +146,6 @@ export default async function RootLayout({
146146
</section>
147147
<PlayerFloating />
148148
<SanityLive />
149-
{(await draftMode()).isEnabled && (
150-
<>
151-
<DisableDraftMode />
152-
<VisualEditing />
153-
</>
154-
)}
155149
<SpeedInsights />
156150
</ThemeProvider>
157151
</PlayerProvider>

‎package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
"@radix-ui/react-toggle": "^1.1.2",
4545
"@radix-ui/react-toggle-group": "^1.1.2",
4646
"@radix-ui/react-tooltip": "^1.1.8",
47-
"@sanity/assist": "^3.1.0",
47+
"@sanity/assist": "^5.0.0",
4848
"@sanity/block-content-to-markdown": "^1.0.0",
49-
"@sanity/client": "^6.27.2",
49+
"@sanity/client": "^7.11.1",
5050
"@sanity/code-input": "^5.1.2",
5151
"@sanity/icons": "^3.5.7",
5252
"@sanity/image-url": "^1.1.0",
@@ -77,7 +77,7 @@
7777
"micromark": "^4.0.1",
7878
"next": "^15.1.6",
7979
"next-cloudinary": "^6.16.0",
80-
"next-sanity": "^9.8.54",
80+
"next-sanity": "^11.1.0",
8181
"next-themes": "^0.3.0",
8282
"nextjs-toploader": "^1.6.12",
8383
"postcss": "^8.5.1",
@@ -95,7 +95,7 @@
9595
"react-resizable-panels": "^2.1.7",
9696
"react-syntax-highlighter": "^15.6.1",
9797
"react-twitter-embed": "^4.0.4",
98-
"sanity": "^3.74.1",
98+
"sanity": "^4.8.1",
9999
"sanity-plugin-cloudinary": "^1.1.5",
100100
"server-only": "^0.0.1",
101101
"sonner": "^1.7.4",

0 commit comments

Comments
 (0)