v0.125.0
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
UI Rebalance ☯
We've sanded down the interface and spent time rebalancing that which defines it (contrast, margins, typography, hover states, button shapes, etc, etc, etc). It felt great.
Link to preview on site 🎉
A frequent feature request has been to support a way to preview content in a production setting, e.g on the web site. We have now added support for adding a link from the Content Studio to your site for previewing documents and drafts. Read more about the shiny new feature here.
Modals are the new popovers 💯
The Sanity form builder supports editing embedded objects. Put them lists along with other types! Put objects inside objects inside objects! However complicated your model, we'll render it.
We initially decided to pop the editor for objects in-place, where you clicked. This was intuitive, but was brittle with complex objects sometimes finding a way off-screen. Object editing now pops in centred modals.
Goodbye popovers, we hardly knew ye.
Update notifier ⚠️
The studio now includes an update notifier which lets you know if your studio is up to date with the latest Sanity releases.
Faster previews ⚡️
List views are optimized to load items faster - in certain situations up to 10x faster!
🐛 Notable bugfixes
- Fixed a bug where running
sanity build
orsanity deploy
without having runsanity start
would fail because of missing plugin configuration files - Fixed a bug in the block editor regarding annotating a text with a reference that would throw an error.
- Robustified how the block editor creates an editor state to better be able to recover from invalid source data.
- Fixed a bug that caused the
_createdAt
field on documents to be reset upon publishing. - Fixed a bug causing fieldsets to be collapsed by default in some cases when they should not.
- Fixed a bug that could in some rare cases cause inconsistencies when publishing documents.
📓 Full changelog
Author | Message | Commit ------------ | ------------- | ------------- Bjørge Næss | [schema] Remove stray assertions (#476) | ff8f4d513 Bjørge Næss | [chore] Upgrade/normalize dependencies and get rid of cyclic dependencies (#474) | 0fa400f53 Per-Kristian Nordnes | [default-login] Allow overriding provider list through json config file (#461) | e2811e852 Espen Hovlandsdal | [base] Optimize preview snapshot fetching (#468) | 55e707bdd Espen Hovlandsdal | [core] Re-initialize plugin configs before building to static assets | c98f39dfa Bjørge Næss | [test-studio] Add default login config to test studio | df13bcf88 Bjørge Næss | [form-builder] Don't force scroll input into view on focus (#481) | 4c82ba1ed Bjørge Næss | [preview] Move preview related code to own package (#482) | c49298a28 Espen Hovlandsdal | [default-layout] Add update notifier for outdated modules | 01248c24c Kristoffer J. Sivertsen | [default-layout] Styling update notifier | 0c3b236b9 Bjørge Næss | [observable] Upgrade rxjs to 5.5.6 (#483) | 4309c6daf Bjørge Næss | [form-builder] Improve UX of PrimitiveArray (#484) | b20e7b1fc Kristoffer J. Sivertsen | [all] Visual improvements across studio (#486) | 1808bc298 Kristoffer J. Sivertsen | [components] Visual improvements - input components (#488) | cb6fd8dc4 Kristoffer J. Sivertsen | [form-builder] Use Dialog for editing array items (#487) | 2b6e68289 Kristoffer J. Sivertsen | [default-layout] Visual improvements - create screen (#489) | e2f6cfebb Bjørge Næss | [imagetool] Support onChangeEnd event and cache imagetool value in ImageToolInput (#490) | ec3c57c56 Bjørge Næss | [form-builder] Remove setTimeout hacks due to popover issues (#495) | 84a5eae2d Bjørge Næss | [form-builder] Make ArrayOfPrimitives tolerant of missing value (#496) | 003a04931 Bjørge Næss | [preview] Expose a default materializePaths function (#492) | 4eb8590dc Kristoffer J. Sivertsen | [all] Design tweaks (#493) | c32340b4b Espen Hovlandsdal | [chore] Travis: Sanity binary executable without full path | 1b38e0f7d Espen Hovlandsdal | [cli] Don't import data in unattended mode | 1eb50c1a3 Kristoffer J. Sivertsen | [form-builder] Moving over styling from rich-date and fixing datetime (#501) | 20deb5ff8 Bjørge Næss | [schema] Give image fields higher priority for media preview (#506) | 3c968dd91 Espen Hovlandsdal | [test-studio] Update vision | 62577efe5 Kristoffer J. Sivertsen | [design] Mobile fixes (#509) | ef49be817 Kristoffer J. Sivertsen | [vision] Fixing scroll problem | 02bb1896c Espen Hovlandsdal | [client] Make Promise polyfill details clearer, add help url to thrown error | 27fa1a7ae Kristoffer J. Sivertsen | [form-builder] Styling upload input progress (#511) | 8a15a1d20 Espen Hovlandsdal | [desk-tool] Add timestamp as title attribute on relative dates | 10e528707 Bjørge Næss | [desk-tool] Publish documents in a transaction (#517) | a9f00f3f7 Bjørge Næss | [desk-tool] Persist _createdAt between draft <=> published version of a document (#518) | a6f24d33f Kristoffer J. Sivertsen | [components] Design/bugfixes (#519) | b058e39db Bjørge Næss | [infrastructure] Add a command for deploying test studio | 9a400a866 Kristoffer J. Sivertsen | [components] Mobile bug. Remove padding from DefaultPane | 7a05b335f Bjørge Næss | [desk-tool] Provide a way to link from a document to a production preview (#521) | 7c87e0e94 Kristoffer J. Sivertsen | [form-builder] Link z-index bug | 72a4025bc Bjørge Næss | [chore] Remove sanity-plugin-vision from lerna.json | 20df70e6c Simen Svale Skogsrud | [mutator] Respect embedded _createdAt property on create patches. Fixes #520 (#525) | 75d7b615d Bjørge Næss | [test-studio] Add a test case for selecting array items for preview | f1ca66901 Bjørge Næss | [components] Stub a .focus() method on RadioSelect for now. | 27c6f19b4 Bjørge Næss | [desk-tool] Minor tweaks: production preview (#526) | 2f1c2c08d Bjørge Næss | [chore] Add example-studios for movies and blog templates (#529) | 304b2a8fa Espen Hovlandsdal | [mutator] Fix createOrReplace and createIfNotExists mutations | f65d19fdd Bjørge Næss | [chore] Hoist eslint, babel and flow setup (#533) | c0aaadfb1 Bjørge Næss | [document-window] Remove compiled files | 3c175e80a Bjørge Næss | [cli] Tweak moviedb template schema (#532) | 29b7fc955 Bjørge Næss | [preview] Ignore image cdn parameters from preview.imageUrl (#531) | e70b167fc Kristoffer J. Sivertsen | [components] Not stopPropagation on click outside | 9e160523e Kristoffer J. Sivertsen | [components] Show lane on split pane resizer | ea5b0ff4d Bjørge Næss | [chore] Use babel plugin env, set explicit env support (#534) | 7b1b4b48b Kristoffer J. Sivertsen | [form-builder] Fixes that content is selected when moving an item (#536) | b60b63373 Simen Svale Skogsrud | [image-url] Some additional tests validating that the url-builder works for images with no specified crop/hotspot | 296b74ee6 Bjørge Næss | [form-builder] Fix collapsible/collapsed defaults on fieldsets (#538) | e05026e5c Bjørge Næss | [form-builder] Display only 'add' on select type button (#539) | 883263d0c Bjørge Næss | [chore] Pin client + observable env support to IE11 | 75cad151d Bjørge Næss | [schema] Fix bug with map and default parameters | c29997b58 Bjørge Næss | [form-builder] Cleanup: remove prepublish task | 4201970b7 Bjørge Næss | [core] Use uglify-es instead of uglify-js for minifying (#541) | fa1477186 Bjørge Næss | [chore] Pin Edge support to 14 | fafc0c7a9 Bjørge Næss | [form-builder] Minor fixes (#544) | 38df4be24 Per-Kristian Nordnes | [block-tools] Robustify annotation conversion (#543) | d52b31c03 Per-Kristian Nordnes | [form-builder] Fix bug where annotations containing references didn't clean up properly (#542) | 9fc8d6f41