Sanity Studio v5.25.0: Document list ordering fix, Presentation Mode with Content Agent improvements, and multiple crash fixes

This release fixes crashes when opening certain documents, improves reference handling in modals, corrects document list ordering, and tightens timezone handling and UI layering in the Studio.

🐛 Notable bugfixes and improvements

Fixes an issue where clicking a reference inside an open array-item modal would close the modal instead of opening the referenced document.

Fixes a crash on the document pane (Cannot read properties of null (reading 'schemaType')) that could occur when opening documents whose schema relies on hidden callbacks. Divergences are now disabled until form state is fully resolved.

Release publish dates now follow the user’s selected Content Releases timezone.

Fixes an issue where studios running on localhost would suggest registering with Sanity.

Fixes a bug where popovers, like the Portable Text Edit Link editor, could render over the document pane’s version chips and actions bar.

Fixes Presentation Mode so documents created by Content Agent are now viewable. The preview perspective cookie now always updates to match the current workspace perspective, not a stale value from when the preview loaded.

Fixes a regression introduced in 5.23.0 that could cause the studio to crash during server-side rendering.

Version documents now show the “saving” and “saved” indicators when editing them.

Fixes an issue with the incorrect ordering in document lists that are ordered by a field in an array of objects, or a dereferenced field in an array of references.