npm @sanity/vision 3.66.0
v3.66.0

latest releases: 3.68.3, 3.68.2, 3.68.1...
15 days ago

✨ Highlights

React Compiler for auto-updating studios

Studios that have opted in to the auto-updating feature will now use code optimized by the React Compiler. In many cases, this results in a faster user interface.

Other features

Configurable slug field weight

It's now possible to configure search weights for slug fields using the options.search.weight field option:

defineField({
  name: 'slug',
  type: 'slug',
+ options: {
+   search: {
+     weight: 50,
+   },
+ },
}),

The slug field's weight will now be respected when using global search with "Best match" sorting selected, and when using reference search. Learn more about search weights in the Studio Search Configuration documentation.

Crop/hotspot vector format warning

When using vector formats (like SVG), any crop/hotspot defined for the image will only be applied if the image is delivered in a raster format. To make this clear, a warning is now displayed when setting a crop/hotspot on vector images.

Document links in Vision

When using the @sanity/vision plugin, if query results contain either _id or _ref attributes, a link icon is displayed next to the value making it easier to find and edit the document.

Note: This is currently only displayed if the queried dataset matches the dataset of the active workspace.

Sanity v2 CLI commands removed

v2 has been end-of-life since April 2024 and the CLI commands for v2 will no longer display a removed error.

You can still use @sanity/cli@^2 should you need to run CLI commands against the an old studio project. See the guide for more details on migrating from v2 to v3.

🐛 Notable bugfixes

  • Annotations in the Portable Text Editor will now autofocus on the first input when being created.
  • Fixed a regression in v3.65.0 that caused the document editor panel header to look slightly misaligned with presentation tool's URL bar, and the Tasks panel header.
  • Fixes an issue where editing an annotation in the Portable Text Editor could result in multiple editing dialogs being opened.

Install or upgrade Sanity Studio

To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.

If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.

📓 Full changelog

Author Message Commit
Snorre Eskeland Brekke feat: Start in Create button is now enabled by default (#7884) 723f7fe
Snorre Eskeland Brekke Revert "feat: Start in Create button is now enabled by default (#7884)" e515f9e
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.12.0 (#7883) 1dc2a68
renovate[bot] chore(deps): update typescript-tooling (#7882) aebe3ce
Ash refactor(sanity): clarify variable name fcff773
Ash chore(sanity): remove duplicate test ee3f331
Ash feat: support search weight configuration for slug fields 022c910
renovate[bot] fix(deps): Update dev-non-major (#7893) 3f7892e
renovate[bot] chore(lockfile): update dependency @sanity/react-loader to v1.10.22 (#7896) b13265d
renovate[bot] chore(deps): update dependency @sanity/code-input to v5 (#7901) a323ddd
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.2 (#7899) e432e37
renovate[bot] fix(deps): Update dev-non-major (#7902) 56ed6cb
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.0 (#7900) 1ed427e
Pedro Bonamin fix(core): portable text annotations slow to show (#7588) ef50844
renovate[bot] fix(deps): update dependency groq-js to ^1.14.1 (#7910) 037a2f4
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.12.2 (#7909) b2f1ff2
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.8.26 (#7906) 5b58ced
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.3 (#7914) e609391
renovate[bot] fix(deps): update dependency @sanity/insert-menu to v1.0.15 (#7913) d91efd9
Cody Olsen fix: vertically center pane header when no tabs (#7912) 481febd
Marius Lundgård fix(sanity): support future UI tones (#7916) f5e85ae
renovate[bot] fix(deps): Update dev-non-major (#7905) b4c157c
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.9.0 (#7918) d3a4a1f
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.9.0 (#7919) b28b160
Rostislav Melkumyan feat(cli): add test-template for testing --template flag (#7877) 52ab8b2
renovate[bot] fix(deps): update dependency @sanity/client to ^6.23.0 (#7931) 90f884d
renovate[bot] chore(deps): update typescript-tooling (#7928) 755cd44
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.4 (#7930) ee5f3b6
renovate[bot] fix(deps): Update dev-non-major (#7920) 5b25212
Cody Olsen fix: support react compiler for auto updating studios (#7897) e40d5b6
Rostislav Melkumyan feat(cli): remove v2 init messaging (#7887) 2333027
RitaDias test(e2e): add unpublish e2e test (#7927) 079824e
Rostislav Melkumyan feat(cli): add support for remote templates with --template (#7867) 1f59825
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#7933) 4fff528
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.0 (#7929) 8ee3384
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.12.3 (#7921) 1e6a839
renovate[bot] fix(deps): update dependency @sanity/client to ^6.24.0 (#7935) 5bce66e
Yang Yu fix(deps): bump sentry/react to 8.33 (#7932) e855a41
Bjørge Næss fix(vision): add a warning about unsupported perspective when pasting (#7937) bd2b3cf
renovate[bot] fix(deps): update dependency @sanity/client to ^6.24.1 (#7938) 4bc55d6
Rostislav Melkumyan feat: add CI specific token label (#7934) 4b64fbb
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.13.0 (#7939) ad43939
Bjørge Næss chore(vision): revert accidental file rename (#7945) b4df341
renovate[bot] fix(deps): update dependency @sanity/insert-menu to v1.0.16 (#7942) 2aac70c
renovate[bot] fix(deps): Update dev-non-major (#7946) 59ebd9b
Bjørge Næss fix: add svg hotspot+crop warning to image tool dialog (#7917) 3bd79af
RitaDias test(e2e): restore last e2e tests (#7926) b74b50e
Pedro Bonamin fix(core): disable scheduledPublishing and tasks if /features returns error (#7517) a20fb8f
Sindre Gulseth feat(vision): link to edit documents on _id, _ref attributes (#6124) 2379f2b
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.9.1 (#7948) 561e7fc
renovate[bot] fix(deps): update dependency @sanity/mutate to ^0.11.1 (#7903) 08d3686
Rostislav Melkumyan feat(cli): generate read token conditionally for remote template (#7953) ff90128
Bjørge Næss fix(cli): remove v2 commands (#5750) d98873c
Christian Grøngaard fix(core): only open one annotation object edit modal at a time (#7898) fbecbc8
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.5 (#7957) 7c5a231
Bjørge Næss fix(core): add telemetry debug/noop logger (#7958) 4767ac7
renovate[bot] fix(deps): Update dev-non-major (#7959) c06deef
Espen Hovlandsdal fix: reword warning about vector images not support crop/hotspot (#7960) eecd0c5

Don't miss a new vision release

NewReleases is sending notifications on new releases.