Sanity Studio Update: Search weight no longer experimental, Document Actions API improved ++
Published: March 12, 2024
v3.33.0
Sanity Studio
Installation and upgrading
To initiate a new Studio without installing the CLI globally:
To upgrade a Sanity Studio, run this command in its folder:
npm create sanity@latest npm install sanity@latest
pnpm create sanity@latest pnpm add sanity@latest
yarn create sanity@latest yarn add sanity@latest
bun create sanity@latest bun add sanity@latest
🐛 Notable bugfixes
- Resolves an issue where users were not redirected to their original destination after re-authenticating, ensuring seamless access to linked content within the Studio.
_projectIdand_strengthenOnPublishare now valid values for Initial Value Templates, allowing for Cross Dataset Reference values in templates.- Fixes a type bug where the type for
defineTypeanddefineFieldwas not being captured correctly.
Other Features
__experimental_searchis deprecated in favor of field-level search options for strings and Portable Text arrays. You should now be able to define search weights in your schema, like:
defineField({
name: 'title',
type: 'string',
options: {
search: {
weight: 10,
},
},
})- Document Actions can now specify a
group, which will allow users to specify whether a specific document action should appear in the footer or in the document's context menu. - Adds ability to open the hotspot and crop dialog by double-clicking image preview.