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.
The props accepted by this package's
VisualEditing
component (VisualEditingProps
) extend the options accepted by theenableVisualEditing
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.