v3.25.0
Installation and upgrading
To initiate a new Studio without installing the CLI globally:
npm create sanity@latest
To upgrade a v3 Studio, run this command in its folder:
npm install sanity@latest
✨ Highlights
New Documents Validate CLI Command (beta)
CleanShot.2024-01-16.at.11.48.39.mp4
The sanity documents validate
command is now available! This powerful tool checks your documents against your project's schema directly from your command line. It uses a mocked browser environment to validate all documents locally, perfect for ensuring data integrity.
Note: As this feature is currently in beta, some projects may not load correctly. We encourage users to report any issues encountered to help us improve here: #5510
Improved Copy-Paste experience from Google Docs and Notion
The Studio now preserves formatting more reliably when content is pasted from Google Docs in Safari, and no longer incorrectly applies underline decorators to pasted links. Additionally, the Studio now preserves formatting more reliably when content is copied from a single block in Notion.
User interface and experience updates
- Root page link: The workspace icon now consistently serves as a direct link to the 'root' page (the first configured tool), streamlining navigation.
- Improved Workspace Switcher: A new tooltip feature has been added to the workspace switcher for better clarity.
- Simplified Tool Menu: The tool menu will now be hidden when only one tool is installed, reducing clutter.
- Layout stability: We've resolved an issue with long workspace titles disrupting the navbar layout. Titles now truncate with ellipses to maintain a clean appearance.
- Localized tooltip text: The 'open menu' button tooltip text has been localized and is now more accessible on smaller screens.
- Intuitive icons: The help and resources button now features the correct icon, making it more intuitive and consistent with previous versions.
- PTE improvements: Ensures that clicking to edit in presentation mode correctly focuses the relevant block, improving the editing workflow.
🐛 Notable bugfixes
- Fixes a bug where logging out didn't invalidate the cookieless auth token.
- Fixes an issue in the Portable Text Editor where the 'Empty' placeholder placement was off.
- Fixes an issue where array item focus rings were cropped, ensuring they're now displayed in full.
- Fixes a bug where the workspace switcher tooltip wasn't displaying correctly.
📓 Full changelog
Author | Message | Commit |
---|---|---|
Fred Carlsen | feat(block-tools): add special notion handling for single block decorators (#5411) | a281061 |
Fred Carlsen | fix(block-tools): more robust formatting detection on copy paste in Safari (#5485) | 0cec72b |
Cody Olsen | fix(deps): update dependency @sanity/presentation to v1.5.3 (#5486) | 4a25ee9 |
renovate[bot] | fix(deps): update dependency @sanity/client to ^6.11.1 (#5488) | 0f51ba9 |
renovate[bot] | chore(deps): update dependency @sanity/ui to v2.0.0-beta.17 (#5487) | 48066a3 |
Rico Kahler | fix(test): use "runtime": "automatic" for "@babel/preset-react" (#5492) |
8023c33 |
shur | fix: mark builds as completed/errored and indicate empty cli runs (#5469) | a581d8d |
Ash | fix(core): include cookieless auth token in logout request if it exists (#5491) | ee9f89f |
Nina Andal Aarvik | fix(core): add missing inter fontface for weights 800+900 (#5490) | ec84a42 |
Bjørge Næss | fix(cli): telemetry: only log first 10 elements in args array (#5471) | 5281b42 |
Tommy Petty | chore(i18n): fixed missing translations with document status pulse (#5498) | c558040 |
Ash | test(cli): fix flaky dev server test (#5476) | 87cc62b |
Bjørge Næss | chore(deps): regenerate lockfile | 2fe7f09 |
Per-Kristian Nordnes | fix(form/inputs): include text blocks in PT-members when theya are focused (#5502) | f2a228f |
Robin Pyon | fix: use help icon for help + resources button (#5506) | 9105ec7 |
Robin Pyon | fix: ensure list array card focusRing isn't cropped and renders with correct radii (#5505) | ffb6268 |
Robin Pyon | fix(deps): update @sanity/ui to 2.0.0 and @sanity/color to 3.0.0 (#5507) | cc27cb8 |
Robin Pyon | fix: various navbar improvements (#5504) | 6c8dce9 |
Cody Olsen | fix(deps): update dependency @sanity/presentation to v1.6.0 (#5508) |
ddece4c |
Rico Kahler | feat(cli): new documents validate command (#5475) | 8369061 |