✨ Highlights
Improvements to Visual Editing
This release includes several changes across the @sanity/astro
and @sanity/visual-editing
packages, resulting in a more stable Visual Editing experience with Astro and a smoother initial setup:
- A React 19 peer dependency issue was fixed in
@sanity/astro
version3.1.9
that caused errors in new projects setup using Astro’s CLI tool. - Added support for libraries publishing pre-compiled code with the React Compiler to the Astro codebase.
- Previously, Visual Editing overlays would lose their titles/preview information after a change had been made when working with an Astro project. This is now fixed.
Other features
- The
sanity
package now exports an experimentalEditPortal
component, which allows users to createDialog
orPopover
components that include Presence and scroll virtualization out of the box, like so:
import React, {useRef, useState} from 'react'
+import {EditPortal} from 'sanity'
export const CustomFormDialog: React.FC<Props> = ({parentProps, paths, onClose}) => {
return (
- <Dialog header="Edit Link" id="edit-link" animate width={600} onClose={onClose} zOffset={1000}>
+ <EditPortal header="Edit Link" id="edit-link" animate width={600} onClose={onClose} zOffset={1000}>
...rest
- </Dialog>
+ </EditPortal>
🐛 Notable bugfixes
- Fixes a case where the commands
schema extract
,manifest extract
,graphql deploy
,documents validate
orschema validate
would never complete. - Fixes an issue in Vision where the cursor would sometimes jump to the beginning of the editor.
Install or upgrade Sanity Studio
To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.
If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.
📓 Full changelog
Author | Message | Commit |
---|---|---|
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.20.2 (#8219) | 5ddfe63 |
renovate[bot] | chore(deps): update typescript-tooling (#8210) | fb1cf5b |
renovate[bot] | fix(deps): update dependency get-it to ^8.6.6 (#8221) | 17e10ca |
renovate[bot] | fix(deps): update dependency @sanity/insert-menu to v1.0.19 (#8222) | 07651a5 |
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.20.3 (#8223) | a363bba |
renovate[bot] | fix(deps): update dependency @sanity/client to ^6.24.3 (#8213) | 47577ea |
renovate[bot] | fix(deps): update dependency @portabletext/editor to ^1.21.0 (#8227) | 5c28f4f |
Rostislav Melkumyan | feat(cli): skip directories without .env.example when bootstrapping remote template (#8216) | 86c6ab1 |
Snorre Eskeland Brekke | fix: ensures singleworkspace falls back to the name 'default' as expected in all contexts (#8228) | fe708e8 |
renovate[bot] | fix(deps): update dependency @portabletext/editor to ^1.21.1 (#8234) | 26b64c7 |
Pedro Bonamin | chore(core): export EditPortal from sanity (#8229) | ab31417 |
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.21.1 (#8230) | 9e624fa |
Bjørge Næss | fix(ci): pin ubuntu version for e2e component tests to 22.04 (#8245) | b3cce81 |
Pedro Bonamin | fix(core): support serverDocumentActions flag in plugins (#8247) | 78318f3 |
Rostislav Melkumyan | feat(cli): slim down remote test template (#8224) | 41580c4 |
ecospark[bot] | fix(deps): update React Compiler dependencies 🤖 ✨ (#8244) | 256ffac |
renovate[bot] | fix(deps): update dependency react-rx to ^4.1.14 (#8246) | 2664f0f |
renovate[bot] | fix(deps): update dependency @sanity/ui to ^2.11.2 (#8248) | f3151c3 |
Magnus Holm | fix(cli): explicitly exit workers when they're done (#8226) | 104b74c |
Christian Grøngaard | fix(block-tools): "soft" deprecate in favour of @portabletext/block-tools (#8254) | 885cfe0 |
Pedro Bonamin | chore(core): add <AvatarSkeleton /> component (#8249) |
0ab9c5b |
Pedro Bonamin | fix(vision): debounce type setState to fix cursor jump (#8238) | 15cba9a |
Ash | feat(sanity): include _id field in groq2024 searches (#8237) |
e0a2b6d |
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.21.2 (#8253) | 39f8900 |
renovate[bot] | fix(deps): update dependency react-rx to ^4.1.15 (#8259) | 9d362e1 |
renovate[bot] | chore(deps): update dev-non-major (#8240) | 8299462 |
Christian Grøngaard | test: fix @portabletext/block-tools alias (#8262) | 7c2a68b |
ecospark[bot] | chore(prettier): fix unformatted files 🤖 ✨ (#8263) | 5505240 |
renovate[bot] | fix(deps): update dependency @sanity/presentation to v1.21.3 (#8265) | df392a4 |
Christian Grøngaard | fix(deps): update dependency @portabletext/editor to ^1.21.5 (#8264) | 1938999 |
ecospark[bot] | chore(deps): dedupe pnpm-lock.yaml (#8266) | c453b1f |
Rostislav Melkumyan | chore(cli): bump @sanity/template-validator to latest (2.3.2) (#8220) |
9266e11 |
Pedro Bonamin | fix(core): export EditPortal as beta (#8270) | c65b13c |