Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Keyboard navigation improvements
A recurring annoyance in the content studio has been the ability to move focus between fields using the tab key, and also restore focus in list items after completed editing. We have rewritten the way we handle focus and made sure all input fields can be focused.
This should also improve the overall accessibility of the Content Studio. As a bonus, this change also unlocks the possibility to deep link to any input field in the content studio, which is something we plan to introduced in a near-future release.
Paste from clipboard to upload
You can now upload image data directly from the clipboard to an image field by pasting into the image field.
Pasting is still not implemented for block text, but works for image fields and image arrays.
Note: Today's browsers has very limited support for pasting files copied from the file system, so for now pasting images only works for image data, e.g. screenshots or if copy is done from an image editor.
More customizable preview
The previews are now more easy to customize. All preview props [title, subtitle, description, media, status] now take string, react nodes and functions and render them properly. The media prop is now preferred over the earlier imageUrl prop, as you might want the thumbnail to be a custom component instead of just an image.
Improved hotspot UI
Hotspot UI now uses smaller images and debounced update patches to rid us of jank.
New loading screen
The loading screen is now dark and monochrome.
🐛 Notable bugfixes
- Hotspot selection for images now works in Firefox
- Fixed a bug where the view mode of the list of documents were not persisted between page loads
- Fixed a bug that made certain links to studio content not work
- Fixed potential bug where markDefs for a block could contain orphaned entries
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [form-builder] Make inputs focusable and manage form builder focus (#393) | 8588a39 |
Bjørge Næss | [components] Clean up tags textfield and make focusable (#369) | 64157d0 |
Bjørge Næss | [components] Cleanup fieldset - support isExpanded by default (#398) | dd80131 |
Espen Hovlandsdal | [components] Fix warnings caused by stray isSelected being passed to input | 590da1e |
Kristoffer J. Sivertsen | [infrastructure] More customizable preview (#414) | 8c3e151 |
Kristoffer J. Sivertsen | [base] Loading screen and animated Content Studio Logo (with CSS) (#416) | 819aa1a |
Kristoffer J. Sivertsen | [imagetool] Better UX on image tool (#426) | fc0cc62 |
Simen Svale Skogsrud | [mutator] Added a few more test cases for insert/replace patches | 9faee41 |
Kristoffer J. Sivertsen | [components] Fix "input inside button"-issue, solves upload button not working in Firefox | 1ebb269 |
Espen Hovlandsdal | [imagetool] Fix hotspot drag not working in Firefox | cd4cfd6 |
Kristoffer J. Sivertsen | [components] Design/tweaks (#439) | 2a2b147 |
Espen Hovlandsdal | [cli] Enable prepublish script | 9370cc1 |
Kristoffer J. Sivertsen | [base] Set spinner zIndex (#443) | 9e0459f |
Bjørge Næss | [deps] Upgrade @sanity/image-url (#444) | 9628a77 |
Per-Kristian Nordnes | [block-tools] Start block markDefs from empty array (#441) | 026b198 |
Bjørge Næss | [components] Fix ellipsis in array preview (#447) | 2d0ed48 |
Bjørge Næss | [test-studio] Refine image test document types (#446) | 6611d86 |
Kristoffer J. Sivertsen | [desk-tool] Force update of documents pane with key (#448) | 9e19510 |
Per-Kristian Nordnes | [base/form-builder] Fix/blockquote css (#451) | c90674e |
Bjørge Næss | [test-studio] Define a media preview to array of predefined colors | d32c54e |
Bjørge Næss | [form-builder] Remove scroll into view offset on FormBuilderInput (#453) | 0ba58da |
Bjørge Næss | [cli] Fix eslint error | 4618e7a |
Bjørge Næss | [default-layout] Fix external intent links not working. Fixes #404 (#460) | 2e9888f |
Bjørge Næss | [base] Use span instead of div as wrapper element in PreviewSubscriber (#465) | 4120dde |
Bjørge Næss | [components] Fix: unable to close reference search popover (#463) | 4d95af1 |
Bjørge Næss | [components] Make DefaultTextArea focusable (#462) | 6fd1b6a |
Bjørge Næss | [components] Reduce amount of duplicated code for button variants (#464) | c0bc12d |
Bjørge Næss | [form-builder] Refactor file and image fields (#401) | 3bdae0f |
Kristoffer J. Sivertsen | [design] Monochrome loading screen. Not bold (#466) | e963d9b |