Skip to content

Releases: sanity-io/sanity

v0.124.2

10 Jan 12:54
Compare
Choose a tag to compare

Bugfix release

This release fixes a bug that caused preview of images in block text to not display.

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

📓 Changelog

Author Message Commit
Kristoffer J. Sivertsen [components] Adding support for new media in block preview (#477) 1492ab1

v0.124.1

09 Jan 18:45
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

📓 Changelog

Author Message Commit
Bjørge Næss [form-builder] Remove onblur handler on ConfirmButton. Fixes #473 df1e5dc

Keyboard nav - Paste images - Better Previews

09 Jan 16:28
Compare
Choose a tag to compare

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

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

v0.123.1

20 Dec 12:57
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fix bug where certain studio errors (uncaught schema errors, for instance) would not give any indication or error message
  • Vision no longer switches dataset for entire studio, but rather just for that tool
  • When importing assets from a URL and the response is a redirect from http->https or https->http, the requests no longer fail
  • Couple of issues with how the CLI tool treated numeric datasets is now fixed

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [block-tools] Fix bug which expected node.children which is not always the case 84f2439
Espen Hovlandsdal [import] Use forked get-uri with redirect fix bd14638
Espen Hovlandsdal [form-builder] Fix crash when input/preview component could not be resolved 993fc09
Espen Hovlandsdal [core] Fix numeric datasets being treated as missing 1e0969f
Simen Svale Skogsrud [image-url] Added support for the fit-parameter 00f30d9
Espen Hovlandsdal [image-url] Throw on invalid fit mode 5860a65
Espen Hovlandsdal [schema] Remove stray test code from array schema type f2d8b5a
Espen Hovlandsdal [schema] Validate that type name is a string b0736b2
Espen Hovlandsdal [base] Asynchronously publish resolved user to bubble errors up b8cb075
Espen Hovlandsdal [vision] Clone client on startup to prevent us from configuring the main studio client bf5c98a
Espen Hovlandsdal [base] Solve swallowed error without defering to next tick a73ef77

v0.123.0

07 Dec 11:44
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

New CLI login method

Logging in through the Sanity CLI tool no longer requires you to open a browser from the same machine/terminal. This allows you to run Sanity on a remote server somewhere, but still log in through a local browser.

New plugin template: Chess input

By running sanity init plugin, you will get a list of plugin templates to start from. Included in this release is an example of how to build a chess board input, which highlights how to model a more complex data structure with arrays, and how to write fine-grained patches that will work in a real-time setting.

🐛 Notable bugfixes

  • CLI tool no longer hangs after running sanity docs and sanity manage
  • sanity import now assigns document IDs on the client side if they are missing, which solves problems with asset uploads and creating strong references on documents without an ID
  • Fixed a bug where block quotes containing child blocks would not be deserialized properly when pasting into the block content editor

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [cli] Add listener-based login flow e9cddad
Kristoffer J. Sivertsen Make the dark theme plugin work (#360) 556bff7
Espen Hovlandsdal [cli] Restructure and clean up init command b033986
Espen Hovlandsdal [infrastructure] Package CLI on build 9b201e4
Espen Hovlandsdal [client] Make npm badge in readme use https af5acf4
Espen Hovlandsdal [cli] Add chess board input as plugin template f65ee0d
Espen Hovlandsdal [cli] Don't wait for browser to close before resolving 1079edc
Espen Hovlandsdal [cli] Whitelist fsevents module when packing 20c4d34
Espen Hovlandsdal [import] Generate document IDs on client side dd796bd
Per-Kristian Nordnes [block-tools] Fix deserialization of blockquotes containing block elements (#410) 3a7a56a

v0.122.7

06 Dec 21:21
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed bug where "new item"-dialog would only work once per session

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [default-layout] Check for prevEvent before attempting to use it 581f2c9

v0.122.5

01 Dec 14:21
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • A new version of uglify-js had a compression bug that might prevent deployed studios from

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [core] Lock uglify-js to version 3.1.10 8ab906f

v0.122.4

01 Dec 14:19
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed bug where JSONPath selectors on array items might match the last element in the array instead of none
  • Fixed bug where block content might not have keys set properly

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [webpack-integration] Allow passing options to CSSNext/Lost 6e4af6a
Espen Hovlandsdal [resolver] Fix sync functions being forced to async 137bcbc
Espen Hovlandsdal [plugin-loader] Use postcss plugins, improved resolving 494e6bf
Espen Hovlandsdal [form-builder] Set project ID for tests, allow local module resolution 31c6ada
Espen Hovlandsdal [form-builder] Fix array index resolving bug 93be532
Espen Hovlandsdal [form-builder] Make out-of-sync warning full-width 1725b47
Bjørge Næss [form-builder] Fix false weak mismatch false positive (#390) 99eb597
Per-Kristian Nordnes [block-tools] Set keys on blocks and spans (#387) 32b5d09
Bjørge Næss [test-studio] Minor cleanup 468c89c
Bjørge Næss [form-builder] Support skipping directly to block editor (#386) db5aabe
Bjørge Næss [default-layout] Extract url state into its own store and support tool precedence for intent links (#388) d0f1ddb
Bjørge Næss Experimental feature: Spaces (#389) 9c465dc
Bjørge Næss [test-studio] Tweak test cases and add a few more (#391) f2aeaf3
Bjørge Næss [default-layout] Prevent unnecessary rerenders of Search component (#394) 65ec018
Bjørge Næss [form-builder] Memoize hot methods (#395) 3c55877

v0.122.2

24 Nov 15:10
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [cli] Upgrade yarn to latest version b9639db

v0.122.1

24 Nov 12:07
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed a bug where new users sometimes would have to run sanity init twice when not authenticated

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [cli] Move resolving of login action to an earlier stage 4b1d8c9