sanity-io / next-sanity

Sanity.io toolkit for Next.js
https://www.sanity.io/
MIT License
756 stars 91 forks source link

fix: pass additional visual editing props #1616

Closed rdunk closed 3 months ago

rdunk commented 3 months ago

The props accepted by this package's VisualEditing component (VisualEditingProps) extend the options accepted by the enableVisualEditing function exported from @sanity/visual-editing (VisualEditingOptions) .

Any additional options we add to the underlying visual editing function currently won't be passed by next-sanity's visual editing component. This PR just ensures any additional props are passed, so we can iterate on @sanity/visual-editing without having to manually propagate the same changes in this package.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-sanity-static ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2024 4:43pm