Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
✨ Highlights
Custom asset source support for files (#2678)
This feature aligns the File field with the Image field by adding asset source support — allowing you to select existing assets in addition to uploading directly.
Adding custom asset sources for the File field follows the same pattern as the Image field, by adding a new part:
{
"implements": "part:@sanity/form-builder/input/file/asset-sources",
"path": "./parts/assetSources.js"
}
Other notable features
- Default locales for Google Maps (#2663). Thanks to @PetterRuud!
- Global and reference search now includes Portable Text fields (#2679)
🐛 Notable bugfixes
- Proper type exports for
@sanity/desk-tool/structure-builder
(#2687)
📓 Full changelog
Author | Message | Commit |
---|---|---|
Magnus Holm | feat(client): support proxy in config + options (#2661)
| fbda7be |
Magnus Holm | fix(base): remove duplicate parts definition (#2642) | 875103c |
Magnus Holm | fix(cli): determine correct base path for sanity exec (#2641)
| 1a53440 |
Bjørge Næss | chore(default-layout): add missing project references | 96a6291 |
Petter | feat(google-maps-input): add defaultLocale config option (#2663)
| 8922046 |
Marius Lundgård | docs(cypress): update readme | 2abfa65 |
Bjørge Næss | chore(test-studio): add project reference to desk-tool | 98940d9 |
Bjørge Næss | chore(base): remove redundant typesVersion config | 2f097ea |
Bjørge Næss | refactor(desk-tool): add package exports directory and add proper type exports (#2687) | 11b7fac |
Per-Kristian Nordnes | chore(portable-text-editor): add portable-text-editor from external repo. | 1afe416 |
Bjørge Næss | refactor(portable-text-editor): replace next with vite in dev server | 8e1af58 |
Per-Kristian Nordnes | refactor(portable-text-editor): refactor demo app with Sanity UI | 69d3562 |
Per-Kristian Nordnes | chore(portable-text-editor): adapt package files to monorepo settings | 81ac5ed |
Per-Kristian Nordnes | chore: upgrade is-hotkey patch version | 2a2e0ee |
Fred Carlsen | feat(form-builder): Add asset source support and file select to file input (#2678) | 0ac5da7 |
Henrique Doro | docs(code-input): clarify languageAlternatives , theme (#1953)
| 448aabb |
Espen Hovlandsdal | feat(search): apply pt::text() when searching portable text fields (#2679) | 7f42215 |
Rico Kahler | refactor(validation): convert @sanity/validation to TypeScript (#2691) | 9abfef2 |
RitaDias | refactor(ActivateOnFocus) remake ActivateOnFocus to use sanity ui (#2693) | ad928c7 |
Espen Hovlandsdal | refactor(portable-text-editor): use type assignment over import assignment | f852266 |
Espen Hovlandsdal | fix(portable-text-editor): add npmignore | 6cfbe5c |