Released Jan 9th 2018

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. Keyboard navigation 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. Paste to 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

Bjørge Næssform-builder Make inputs focusable and manage form builder focus (#393)8588a3974
Bjørge Næsscomponents Clean up tags textfield and make focusable (#369)64157d07f
Bjørge Næsscomponents Cleanup fieldset - support isExpanded by default (#398)dd80131f6
Espen Hovlandsdalcomponents Fix warnings caused by stray isSelected being passed to input590da1e73
Kristoffer J. Sivertseninfrastructure More customizable preview (#414)8c3e15152
Kristoffer J. Sivertsenbase Loading screen and animated Content Studio Logo (with CSS) (#416)819aa1abe
Kristoffer J. Sivertsenimagetool Better UX on image tool (#426)fc0cc625a
Simen Svale Skogsrudmutator Added a few more test cases for insert/replace patches9faee41ef
Kristoffer J. Sivertsencomponents Fix "input inside button"-issue, solves upload button not working in Firefox1ebb26943
Espen Hovlandsdalimagetool Fix hotspot drag not working in Firefoxcd4cfd61c
Kristoffer J. Sivertsencomponents Design/tweaks (#439)2a2b147af
Espen Hovlandsdalcli Enable prepublish script9370cc14d
Kristoffer J. Sivertsenbase Set spinner zIndex (#443)9e0459f43
Bjørge Næssdeps Upgrade @sanity/image-url (#444)9628a77f5
Per-Kristian Nordnesblock-tools Start block markDefs from empty array (#441)026b198c3
Bjørge Næsscomponents Fix ellipsis in array preview (#447)2d0ed4819
Bjørge Næsstest-studio Refine image test document types (#446)6611d8601
Kristoffer J. Sivertsendesk-tool Force update of documents pane with key (#448)9e1951078
Per-Kristian Nordnesbase/form-builder Fix/blockquote css (#451)c90674ec5
Bjørge Næsstest-studio Define a media preview to array of predefined colorsd32c54e48
Bjørge Næssform-builder Remove scroll into view offset on FormBuilderInput (#453)0ba58da10
Bjørge Næsscli Fix eslint error4618e7ad5
Bjørge Næssdefault-layout Fix external intent links not working. Fixes #404 (#460)2e9888fbc
Bjørge Næssbase Use span instead of div as wrapper element in PreviewSubscriber (#465)4120dde28
Bjørge Næsscomponents Fix: unable to close reference search popover (#463)4d95af1af
Bjørge Næsscomponents Make DefaultTextArea focusable (#462)6fd1b6afe
Bjørge Næsscomponents Reduce amount of duplicated code for button variants (#464)c0bc12d8d
Bjørge Næssform-builder Refactor file and image fields (#401)3bdae0f57
Kristoffer J. Sivertsendesign Monochrome loading screen. Not bold (#466)e963d9b9c