sanity-io/sanity
### [`v2.13.1`](https://togithub.com/sanity-io/sanity/releases/v2.13.1)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.13.0...v2.13.1)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Upgrading to `@sanity/ui@0.34.5` fixes an issue that caused unwanted CSS overrides of core UI layout primitives in certain situations.
- Fixes an issue where the preview of a string field with predefined list options used the value of the field when selecting it for previewing instead of the title specified in the list options ([#769](https://togithub.com/sanity-io/sanity/issues/769)).
- Fixes an issue that could prevent drafts from being edited even in cases where a grant rule would permit it.
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Marius Lundgård | build: update dependencies | [`ab6ee8b`](https://togithub.com/sanity-io/sanity/commit/ab6ee8be8)
Victoria Bergquist | fix(base): use title, not value in prepare preview when field has predefined string options ([#2618](https://togithub.com/sanity-io/sanity/issues/2618)) | [`c1d9d8f`](https://togithub.com/sanity-io/sanity/commit/c1d9d8fee)
Bjørge Næss | fix(base): fallback to published version if no draft exists | [`d4bcad1`](https://togithub.com/sanity-io/sanity/commit/d4bcad1f62)
Bjørge Næss | docs(sanity): improve placeholder package readme text | [`f91a62c`](https://togithub.com/sanity-io/sanity/commit/f91a62c6fc)
Simeon Griggs | chore(data-aspects): remove todo comment ([#2623](https://togithub.com/sanity-io/sanity/issues/2623)) | [`0e0b3f8`](https://togithub.com/sanity-io/sanity/commit/0e0b3f89dc)
### [`v2.13.0`](https://togithub.com/sanity-io/sanity/releases/v2.13.0)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.12.2...v2.13.0)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Migrated [@sanity/field](https://togithub.com/sanity/field) to Sanity UI and styled-components
- Migrated [@sanity/dashboard](https://togithub.com/sanity/dashboard) to [@sanity/ui](https://togithub.com/sanity/ui) and styled-components
- Migrated studio-hints to [@sanity/ui](https://togithub.com/sanity/ui)
- Fixed an issue where the inspected document version is always the latest version and not the current selected version.
- Migrated default-login to [@sanity/ui](https://togithub.com/sanity/ui)
- Added typings for the Sanity CDN image URL parameters
- Migrated @sanity/desk-tool/tool to styled-components
- Fixed an issue where readOnly fields and documents would still be editable in the review changes panel
- Fixed an issue where hidden fields would still be visible in the review changes panel
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Espen Hovlandsdal | build(ci): skip cypress binary install on non-cypress workflows | [`1489196`](https://togithub.com/sanity-io/sanity/commit/1489196ca)
Victoria Bergquist | refactor(field): migrate layout components to sanity ui ([#2550](https://togithub.com/sanity-io/sanity/issues/2550)) | [`94f29c3`](https://togithub.com/sanity-io/sanity/commit/94f29c3cf)
Espen Hovlandsdal | feat(server): allow hacking studio webpack configuration | [`391e615`](https://togithub.com/sanity-io/sanity/commit/391e61588)
Espen Hovlandsdal | fix(diff): correct typing for (currently empty) DiffOptions | [`31ca9b6`](https://togithub.com/sanity-io/sanity/commit/31ca9b6df)
vicbergquist | refactor(field): migrate revert changes button to sanity ui | [`87c485e`](https://togithub.com/sanity-io/sanity/commit/87c485e36)
vicbergquist | refactor(field): migrate value error to sanity ui | [`5bd960b`](https://togithub.com/sanity-io/sanity/commit/5bd960b0a)
vicbergquist | refactor(field): migrate metainfo to sanity ui | [`5b65015`](https://togithub.com/sanity-io/sanity/commit/5b6501506)
vicbergquist | feat(field): migrate fieldchange, groupchange to sanity ui | [`a8e59d5`](https://togithub.com/sanity-io/sanity/commit/a8e59d507)
vicbergquist | fix(field): make revert changes button span full width instead of inlining with diff component | [`f07b6b6`](https://togithub.com/sanity-io/sanity/commit/f07b6b62b)
Herman Wikner | refactor(code-input): migrate code-input to `@sanity/ui` ([#2580](https://togithub.com/sanity-io/sanity/issues/2580)) | [`b6e04aa`](https://togithub.com/sanity-io/sanity/commit/b6e04aa7c)
Simeon Griggs | docs(form-builder): adjust tone of voice | [`9875227`](https://togithub.com/sanity-io/sanity/commit/9875227c4)
Simeon Griggs | docs(client): fix typo on asset upload method | [`6c6ce4f`](https://togithub.com/sanity-io/sanity/commit/6c6ce4f09)
Espen Hovlandsdal | feat(types): add image url query parameter types | [`767dc98`](https://togithub.com/sanity-io/sanity/commit/767dc98ac)
Marius Lundgård | refactor(validation): convert to ES modules | [`ed7c8de`](https://togithub.com/sanity-io/sanity/commit/ed7c8dee4)
Per-Kristian Nordnes | fix(desk-tool): use the document revision you are currently looking at as value for inspect dialog | [`ea9a57f`](https://togithub.com/sanity-io/sanity/commit/ea9a57f15)
vicbergquist | refactor(desk-tool): use styled-components in `tool/` | [`a770663`](https://togithub.com/sanity-io/sanity/commit/a770663b3)
vicbergquist | refactor(field): migrate boolean diff type to [@sanity/ui](https://togithub.com/sanity/ui) | [`d649f42`](https://togithub.com/sanity-io/sanity/commit/d649f420f)
vicbergquist | refactor(field): migrate number diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`0ac2377`](https://togithub.com/sanity-io/sanity/commit/0ac237784)
vicbergquist | refactor(field): migrate string, url diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`6099f45`](https://togithub.com/sanity-io/sanity/commit/6099f4558)
vicbergquist | refactor(field): migrate slug diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`51915ca`](https://togithub.com/sanity-io/sanity/commit/51915caa6)
vicbergquist | refactor(field): migrate datetime diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`7518562`](https://togithub.com/sanity-io/sanity/commit/75185627a)
Herman Wikner | refactor(default-login): migrate to `@sanity/ui` ([#2608](https://togithub.com/sanity-io/sanity/issues/2608)) | [`b762503`](https://togithub.com/sanity-io/sanity/commit/b762503d0)
Herman Wikner | refactor(studio-hints): migrate to `@sanity/ui` ([#2604](https://togithub.com/sanity-io/sanity/issues/2604)) | [`e1c7ea0`](https://togithub.com/sanity-io/sanity/commit/e1c7ea003)
Arthur Denner | fix(schema): add blockEditor to list of overridable fields ([#2273](https://togithub.com/sanity-io/sanity/issues/2273)) | [`d14ccd0`](https://togithub.com/sanity-io/sanity/commit/d14ccd08d)
Arthur Denner | feat(form-builder): allow custom icon for built-in decorators ([#2272](https://togithub.com/sanity-io/sanity/issues/2272)) | [`ff785f3`](https://togithub.com/sanity-io/sanity/commit/ff785f3d3)
vicbergquist | refactor(field): migrate reference diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`e89cd7d`](https://togithub.com/sanity-io/sanity/commit/e89cd7dc1)
vicbergquist | refactor(field): migrate array of options diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`f84f0bf`](https://togithub.com/sanity-io/sanity/commit/f84f0bf51)
vicbergquist | refactor(field): migrate image and file diffs to [@sanity/ui](https://togithub.com/sanity/ui) | [`55c3229`](https://togithub.com/sanity-io/sanity/commit/55c32296b)
vicbergquist | refactor(field): migrate ptdiff annotation, inline-object components to [@sanity/ui](https://togithub.com/sanity/ui) | [`942a0a3`](https://togithub.com/sanity-io/sanity/commit/942a0a3a2)
vicbergquist | refactor(field): migrate ptdiff paragraph to [@sanity/ui](https://togithub.com/sanity/ui) | [`2c6f33a`](https://togithub.com/sanity-io/sanity/commit/2c6f33ac0)
vicbergquist | refactor(field): migrate ptdiff header to [@sanity/ui](https://togithub.com/sanity/ui) | [`c414b18`](https://togithub.com/sanity-io/sanity/commit/c414b1861)
vicbergquist | refactor(field): migrate ptdiff text to [@sanity/io](https://togithub.com/sanity/io) | [`697e36f`](https://togithub.com/sanity-io/sanity/commit/697e36fff)
vicbergquist | refactor(field): migrate ptdiff blockquote to styled-components | [`468117a`](https://togithub.com/sanity-io/sanity/commit/468117a20)
vicbergquist | refactor(field): migrate ptdiff decorator to styled-components | [`53c1258`](https://togithub.com/sanity-io/sanity/commit/53c12582f)
vicbergquist | refactor(field): migrate ptdiff block to [@ssanity/ui](https://togithub.com/ssanity/ui) | [`e18dc72`](https://togithub.com/sanity-io/sanity/commit/e18dc7289)
vicbergquist | refactor(field): remove css from ptdiff | [`f776a56`](https://togithub.com/sanity-io/sanity/commit/f776a5655)
Herman Wikner | refactor(dashboard): migrate to `@sanity/ui` ([#2590](https://togithub.com/sanity-io/sanity/issues/2590)) | [`81b6149`](https://togithub.com/sanity-io/sanity/commit/81b6149d3)
Sindre Gulseth | feature(grants): add support for validating built-in $identity param | [`5a55971`](https://togithub.com/sanity-io/sanity/commit/5a55971ac)
Victoria Bergquist | fix(field): disable revert changes on read-only fields and documents and hide fields from review changes if `hidden: true` ([#2619](https://togithub.com/sanity-io/sanity/issues/2619)) | [`78d1bb3`](https://togithub.com/sanity-io/sanity/commit/78d1bb342)
### [`v2.12.2`](https://togithub.com/sanity-io/sanity/releases/v2.12.2)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.12.0...v2.12.2)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Fixes a bug introduced in v2.12.0 that made hidden fields visible
- Fixes an issue that caused some plugins to error with the message "Cannot read property 'from' of undefined".
- Fixes a bug where review changes might crash when showing change in a reference that could target more than one schema type
- Fixes a bug which caused the create menu to be disabled in cases where the current user actually had access to create the type of document
- Fixes an issue that caused field validations on object types to be written on individual field types, causing unintentional re-use of validation rules.
- Migrates components in [@sanity/field](https://togithub.com/sanity/field) to Sanity UI and styled-components
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
vicbergquist | refactor(field): migrate no changes component to sanity ui | [`c1a2401`](https://togithub.com/sanity-io/sanity/commit/c1a240153)
vicbergquist | refactor(field): migrate ChangeList to sanity ui | [`0db2989`](https://togithub.com/sanity-io/sanity/commit/0db29890f)
vicbergquist | refactor(field): migrate diff tooltip to sanity ui | [`500184a`](https://togithub.com/sanity-io/sanity/commit/500184a3e)
vicbergquist | refactor(field): migrate differrorboundary to sanity ui | [`c64f739`](https://togithub.com/sanity-io/sanity/commit/c64f7394e)
vicbergquist | refactor(field): migrate breadcrumbs to sanity ui | [`b114b39`](https://togithub.com/sanity-io/sanity/commit/b114b3997)
vicbergquist | refactor(field): migrate fallback diff to sanity ui | [`99eab5a`](https://togithub.com/sanity-io/sanity/commit/99eab5a94)
vicbergquist | refactor(field): migrate fromto to sanity ui | [`028308d`](https://togithub.com/sanity-io/sanity/commit/028308d21)
Bjørge Næss | fix(base): guard against missing user roles in InsufficientPermissionsMessage | [`41f63a3`](https://togithub.com/sanity-io/sanity/commit/41f63a3f3)
Bjørge Næss | fix(form-builder): reexport PatchEvent default export | [`2cdc645`](https://togithub.com/sanity-io/sanity/commit/2cdc64585)
Bjørge Næss | Revert "feat(base): add basic permission check to default pane menu" | [`02ded86`](https://togithub.com/sanity-io/sanity/commit/02ded8685)
Espen Hovlandsdal | fix(cli): add missing undeclared dependency | [`d7bc2cf`](https://togithub.com/sanity-io/sanity/commit/d7bc2cfd4)
Espen Hovlandsdal | fix(field): prevent crash when unable to resolve reference type | [`09a9c4b`](https://togithub.com/sanity-io/sanity/commit/09a9c4b21)
Bjørge Næss | fix(types): allow 'hidden' property on object field types | [`0288602`](https://togithub.com/sanity-io/sanity/commit/0288602a1)
Bjørge Næss | test(form-builder): add test case for hidden and filtered fields | [`2787300`](https://togithub.com/sanity-io/sanity/commit/278730077)
Bjørge Næss | fix(form-builder): make sure hidden/filtered fields are actually hidden | [`964d65b`](https://togithub.com/sanity-io/sanity/commit/964d65bbc)
Bjørge Næss | chore(test-studio): add repro case for field validation issue | [`bef4da6`](https://togithub.com/sanity-io/sanity/commit/bef4da638)
Bjørge Næss | test(validation): add a failing test case for leaky field validation rules issue | [`efe8315`](https://togithub.com/sanity-io/sanity/commit/efe831504)
Bjørge Næss | fix(validation): fix issue where object field validation were written on individual fields, causing unintended validation rule leakage | [`934bdf6`](https://togithub.com/sanity-io/sanity/commit/934bdf68f)
### [`v2.12.0`](https://togithub.com/sanity-io/sanity/releases/v2.12.0)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.11.2...v2.12.0)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### ✨ Highlights
- The `sanity users invite` CLI command now supports the [new role names](https://www.sanity.io/blog/announcing-new-subscription-plans)
- The default object input in Sanity Studio has been refactored to use [Sanity UI](https://www.sanity.io/ui).
##### 🐛 Notable bugfixes
- Fixes a problem where a Portable Text editor with too many toolbar items inside of a object inside of a modal caused the content to overflow and be clipped
- Fixes issue with combining multiple block-tools HTML deserializers.
- Fixes various visual issues related to presence and change indicators in the code input
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Bjørge Næss | chore: add repro case for portable text toolbar causing dialog content overflow | [`e145214`](https://togithub.com/sanity-io/sanity/commit/e145214ec4)
Per-Kristian Nordnes | test(block-tools): add from the wild test | [`30cce85`](https://togithub.com/sanity-io/sanity/commit/30cce8564a)
Per-Kristian Nordnes | fix(block-tools): \_markDefs must be class var | [`79ad07c`](https://togithub.com/sanity-io/sanity/commit/79ad07cab6)
Per-Kristian Nordnes | chore(block-tools): add dev package [@types/jsdom](https://togithub.com/types/jsdom) | [`c0a247d`](https://togithub.com/sanity-io/sanity/commit/c0a247d8ee)
Per-Kristian Nordnes | fix(block-tools): fix lint errors | [`88bfdc8`](https://togithub.com/sanity-io/sanity/commit/88bfdc8d06)
Marius Lundgård | refactor(form-builder): remove workaround in `FileInputButton` | [`3d29c0d`](https://togithub.com/sanity-io/sanity/commit/3d29c0d7ad)
Fred Carlsen | fix(form-builder): Fix overflowing PT toolbar menu inside of dialog ([#2560](https://togithub.com/sanity-io/sanity/issues/2560)) | [`e7b9244`](https://togithub.com/sanity-io/sanity/commit/e7b9244ea6)
Marius Lundgård | feat(base): migrate `components/Document` to TypeScript ([#2544](https://togithub.com/sanity-io/sanity/issues/2544)) | [`98712b7`](https://togithub.com/sanity-io/sanity/commit/98712b76f7)
Espen Hovlandsdal | fix(desk-tool): prevent crash if roles property does not exist on current user | [`65ea503`](https://togithub.com/sanity-io/sanity/commit/65ea50380a)
Espen Hovlandsdal | feat(cli): add help for missing [@sanity/core](https://togithub.com/sanity/core) commands | [`3e86168`](https://togithub.com/sanity-io/sanity/commit/3e86168c9b)
Espen Hovlandsdal | feat(core): support new roles api in user invite command | [`a2f9f50`](https://togithub.com/sanity-io/sanity/commit/a2f9f503e6)
Bjørge Næss | fix(form-builder): update element focus for ImageInput when focus path targets the asset field | [`cb4777d`](https://togithub.com/sanity-io/sanity/commit/cb4777d8b7)
Bjørge Næss | refactor(form-builder): move focus check to componentDidUpdate | [`f99e011`](https://togithub.com/sanity-io/sanity/commit/f99e011ddc)
Bjørge Næss | refactor(form-builder): make 'readOnly' an optional prop for FormBuilderInput | [`f35ed06`](https://togithub.com/sanity-io/sanity/commit/f35ed06b00)
Bjørge Næss | chore(form-builder): fix lint errors | [`747365c`](https://togithub.com/sanity-io/sanity/commit/747365c43e)
Bjørge Næss | chore(form-builder): improve typings for input resolver | [`5f90e87`](https://togithub.com/sanity-io/sanity/commit/5f90e8710c)
Bjørge Næss | refactor(form-builder): move all implemented parts into a separate folder | [`3a3030d`](https://togithub.com/sanity-io/sanity/commit/3a3030d748)
Bjørge Næss | fix(form-builder): update element focus for ReferenceInput when focus path targets it | [`b9c7750`](https://togithub.com/sanity-io/sanity/commit/b9c7750cc3)
Bjørge Næss | test(form-builder): setup required plumbing for object input test | [`a3e9b9f`](https://togithub.com/sanity-io/sanity/commit/a3e9b9f4c7)
Bjørge Næss | chore(test-studio): add preview selection to objects test | [`f52b6c8`](https://togithub.com/sanity-io/sanity/commit/f52b6c8ff7)
Bjørge Næss | feat(base): add support for lazy children to FormFieldSet | [`2e93f36`](https://togithub.com/sanity-io/sanity/commit/2e93f367e0)
Bjørge Næss | refactor(base): remove focus path handling from base/FormFieldSet | [`20c56d4`](https://togithub.com/sanity-io/sanity/commit/20c56d49cf)
Marius Lundgård | refactor(form-builder): migrate InvalidValueInput to Sanity UI | [`f317fd8`](https://togithub.com/sanity-io/sanity/commit/f317fd8c86)
Bjørge Næss | refactor(form-builder): migrate UnknownFields to Sanity UI | [`9942d6f`](https://togithub.com/sanity-io/sanity/commit/9942d6f9f2)
Bjørge Næss | chore(form-builder): export ObjectInput props | [`6468918`](https://togithub.com/sanity-io/sanity/commit/6468918c4c)
Bjørge Næss | test(form-builder): add more test cases for ObjectInput | [`ae9e863`](https://togithub.com/sanity-io/sanity/commit/ae9e863709)
Bjørge Næss | refactor(form-builder): migrate ObjectInput to Sanity UI | [`79d91c0`](https://togithub.com/sanity-io/sanity/commit/79d91c0dfa)
Bjørge Næss | test(form-builder): add tests for ObjectFieldSets | [`3b4ef5c`](https://togithub.com/sanity-io/sanity/commit/3b4ef5caa7)
Bjørge Næss | refactor(form-builder): sort out fieldset/focus conundrum | [`3349bda`](https://togithub.com/sanity-io/sanity/commit/3349bda688)
Bjørge Næss | fix(base): memoize FormFieldSet content and always wrap in a Grid | [`fcc9c32`](https://togithub.com/sanity-io/sanity/commit/fcc9c32008)
Bjørge Næss | fix(form-builder): use Stack with space instead of ul in invalid value/untyped value inputs | [`d0f6f59`](https://togithub.com/sanity-io/sanity/commit/d0f6f59ca0)
Herman Wikner | fix(code-input): fix change indicator and presence issues ([#2551](https://togithub.com/sanity-io/sanity/issues/2551)) | [`0e7c2ae`](https://togithub.com/sanity-io/sanity/commit/0e7c2ae2ba)
Bjørge Næss | fix(form-builder): fix wrong export | [`6a27b6c`](https://togithub.com/sanity-io/sanity/commit/6a27b6c0e5)
### [`v2.11.2`](https://togithub.com/sanity-io/sanity/releases/v2.11.2)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.11.1...v2.11.2)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Update `@sanity/ui` which fixes issue with backwards compatible theming.
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Marius Lundgård | build: update dependencies | [`c655081`](https://togithub.com/sanity-io/sanity/commit/c655081fc)
### [`v2.11.1`](https://togithub.com/sanity-io/sanity/releases/v2.11.1)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.11.0...v2.11.1)
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Fixes a bug where running `sanity graphql deploy` or `sanity exec` might crash if certain plugins or custom components were installed
- Fixes a warning being printed to the console about usage of an experimental API version
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Espen Hovlandsdal | fix(default-login): use non-experimental api version | [`cfcbd96`](https://togithub.com/sanity-io/sanity/commit/cfcbd96b5)
Espen Hovlandsdal | fix(base): prevent user store crashing in node environment | [`f3e0a16`](https://togithub.com/sanity-io/sanity/commit/f3e0a16be)
### [`v2.11.0`](https://togithub.com/sanity-io/sanity/releases/v2.11.0)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.10.5...v2.11.0)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### ✨ Highlights
##### Roles-aware studio
When using the studio as a user without write access to some or all documents, the user interface will now reflect this and mark fields as read-only, as well as hide or disable actions that cannot be performed.
Read-only states have also been given a visual upgrade as part of this release.
##### 🐛 Notable bugfixes
- Fixes certain issues with incorrect `node_modules` after running `sanity upgrade`
- Fixes bug where studio might crash when navigating/opening new tabs
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Bjørge Næss | build(tsconfig): add es2020 to lib | [`62ec3f2`](https://togithub.com/sanity-io/sanity/commit/62ec3f223)
Bjørge Næss | chore: upgrade [@sanity/icons](https://togithub.com/sanity/icons) | [`b4d45fb`](https://togithub.com/sanity-io/sanity/commit/b4d45fb1b)
Bjørge Næss | chore: upgrade [@sanity/ui](https://togithub.com/sanity/ui) | [`8593950`](https://togithub.com/sanity-io/sanity/commit/859395047)
Espen Hovlandsdal | feat(cli): upgrade to yarn v1.22.10 | [`47186e2`](https://togithub.com/sanity-io/sanity/commit/47186e206)
Rico Kahler | fix(client): make projectId optional; combine config types | [`dd995f0`](https://togithub.com/sanity-io/sanity/commit/dd995f06d)
Marius Lundgård | fix(form-builder): render array item menu in a portal ([#2528](https://togithub.com/sanity-io/sanity/issues/2528)) | [`1dd802c`](https://togithub.com/sanity-io/sanity/commit/1dd802ce6)
Marius Lundgård | build: fix lerna warnings ([#2530](https://togithub.com/sanity-io/sanity/issues/2530)) | [`2be7e6f`](https://togithub.com/sanity-io/sanity/commit/2be7e6fca)
Marius Lundgård | build: update dependencies | [`86fa23e`](https://togithub.com/sanity-io/sanity/commit/86fa23e54)
Bjørge Næss | fix(form-builder): show presence for readOnly fields | [`608f504`](https://togithub.com/sanity-io/sanity/commit/608f504c6)
Bjørge Næss | fix(base): add proper support for disabling IntentLinks | [`8744404`](https://togithub.com/sanity-io/sanity/commit/874440427)
Bjørge Næss | fix(imagetool): avoid calling callbacks when read only | [`95a68e5`](https://togithub.com/sanity-io/sanity/commit/95a68e5e1)
Marius Lundgård | feat(base): improve theming of read-only and placeholder in inputs | [`ea6e2a5`](https://togithub.com/sanity-io/sanity/commit/ea6e2a541)
Bjørge Næss | fix(form-builder): hide item drag handle on read-only array of primitives | [`6e84e41`](https://togithub.com/sanity-io/sanity/commit/6e84e4189)
Bjørge Næss | fix(form-builder): disable placeholder for reference inputs in read-only mode | [`c3d1fc7`](https://togithub.com/sanity-io/sanity/commit/c3d1fc767)
Bjørge Næss | fix(color-input): disable create button when in readOnly mode | [`c761aee`](https://togithub.com/sanity-io/sanity/commit/c761aee23)
Bjørge Næss | fix(form-builder): make text field readOnly instead of disabled for readOnly date inputs | [`c8313f1`](https://togithub.com/sanity-io/sanity/commit/c8313f10e)
Bjørge Næss | fix(form-builder): show header on read-only array item dialogs for types without a title | [`5543a7b`](https://togithub.com/sanity-io/sanity/commit/5543a7b63)
Bjørge Næss | fix(form-builder): use readOnly instead of disabled state for checkboxes in readOnly options array | [`257f91b`](https://togithub.com/sanity-io/sanity/commit/257f91b40)
Bjørge Næss | fix(google-maps-input): hide edit/delete buttons when readOnly | [`9bdc7ef`](https://togithub.com/sanity-io/sanity/commit/9bdc7efd5)
Bjørge Næss | fix(imagetool): disable cursor + hover effect when readOnly | [`1faa01d`](https://togithub.com/sanity-io/sanity/commit/1faa01dc0)
Bjørge Næss | build(base): enable opt-in strict mode | [`f8910bf`](https://togithub.com/sanity-io/sanity/commit/f8910bf40)
Bjørge Næss | refactor(base): refactor/clean up user-store | [`8f78f21`](https://togithub.com/sanity-io/sanity/commit/8f78f2174)
Bjørge Næss | refactor: move to userStore.me internally | [`2d8bd74`](https://togithub.com/sanity-io/sanity/commit/2d8bd7497)
Dain Cilke | fix(default-layout): protect against undefined state tool | [`9226e75`](https://togithub.com/sanity-io/sanity/commit/9226e7507)
Marius Lundgård | build: update dependencies | [`adce009`](https://togithub.com/sanity-io/sanity/commit/adce009ec)
Marius Lundgård | feat(base): add `skeleton` colors to theme | [`4a47133`](https://togithub.com/sanity-io/sanity/commit/4a4713383)
Bjørge Næss | chore(base): add project reference to initial-value-templates | [`adbac3b`](https://togithub.com/sanity-io/sanity/commit/adbac3b9d)
Bjørge Næss | chore: disable import/no-unresolved for typescript files | [`d39de13`](https://togithub.com/sanity-io/sanity/commit/d39de1327)
Bjørge Næss | chore(base): fix typescript compile errors | [`caaceb7`](https://togithub.com/sanity-io/sanity/commit/caaceb76a)
Bjørge Næss | chore: replace use-observable et al with react-rx | [`5cae932`](https://togithub.com/sanity-io/sanity/commit/5cae93243)
Bjørge Næss | feat(base): add support for sticky debug params | [`c2e09c1`](https://togithub.com/sanity-io/sanity/commit/c2e09c166)
Bjørge Næss | feat(base): support roles array for current user | [`61247bc`](https://togithub.com/sanity-io/sanity/commit/61247bcb9)
Bjørge Næss | feat(initial-value-templates): export resolveInitialValueForType | [`ed5f943`](https://togithub.com/sanity-io/sanity/commit/ed5f943ab)
Bjørge Næss | feat(base): add datastore and support hooks for grants | [`ec45156`](https://togithub.com/sanity-io/sanity/commit/ec451563a)
Bjørge Næss | feat(default-login): use API vX (for now) | [`d318a1c`](https://togithub.com/sanity-io/sanity/commit/d318a1cee)
Bjørge Næss | feat(desk-tool): consider permissions in default document actions | [`2b04f50`](https://togithub.com/sanity-io/sanity/commit/2b04f5068)
Bjørge Næss | feat(base): add shared insufficient permissions message component | [`88626f2`](https://togithub.com/sanity-io/sanity/commit/88626f2f4)
Bjørge Næss | fix(desk-tool): fix visual glitch in publish button tooltip | [`a505dee`](https://togithub.com/sanity-io/sanity/commit/a505dee33)
Bjørge Næss | feat(base): consider permissions in global create document dialog | [`13c9aa8`](https://togithub.com/sanity-io/sanity/commit/13c9aa8a7)
Bjørge Næss | feat(desk-tool): add permission check banner to document panel | [`afe267c`](https://togithub.com/sanity-io/sanity/commit/afe267c5c)
Bjørge Næss | feat(base): add basic permission check to default pane menu | [`8680eea`](https://togithub.com/sanity-io/sanity/commit/8680eea9b)
Bjørge Næss | fix(desk-tool): improve tooltip rendering of statusbar menus | [`7c9c601`](https://togithub.com/sanity-io/sanity/commit/7c9c60198)
Bjørge Næss | feat(field): toggle revert buttons based on current user permissions | [`fca4900`](https://togithub.com/sanity-io/sanity/commit/fca490027)
Bjørge Næss | feat: disable global create button if user can't create any documents | [`dcea216`](https://togithub.com/sanity-io/sanity/commit/dcea2161c)
Bjørge Næss | fix(base): work around issues with circular imports causing errors | [`e8a833c`](https://togithub.com/sanity-io/sanity/commit/e8a833cee)
Bjørge Næss | fix(form-builder): workaround circular require issues | [`8fdc708`](https://togithub.com/sanity-io/sanity/commit/8fdc7086a)
Rico Kahler | refactor(base): update to new acl endpoint | [`5280c51`](https://togithub.com/sanity-io/sanity/commit/5280c5193)
Rico Kahler | test: add wildcard to cy.intercept | [`f91e788`](https://togithub.com/sanity-io/sanity/commit/f91e788f0)
Rico Kahler | chore: remove vX client | [`cd36d3c`](https://togithub.com/sanity-io/sanity/commit/cd36d3ce1)
Bjørge Næss | fix(base): add tag to acl request | [`36b5f57`](https://togithub.com/sanity-io/sanity/commit/36b5f5775)
### [`v2.10.5`](https://togithub.com/sanity-io/sanity/releases/v2.10.5)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.10.2...v2.10.5)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Fixes issue where dates might show incorrect value when reviewing changes if date format was customized
- Fixes issue where CLI might use `.env.production` instead of `.env.development` when running `sanity start`, `sanity exec` and similar
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Espen Hovlandsdal | feat: add support for tagged requests ([#2501](https://togithub.com/sanity-io/sanity/issues/2501)) | [`de18d61`](https://togithub.com/sanity-io/sanity/commit/de18d612c)
Bjørge Næss | fix: fix moment/date-fns parse error in diff component | [`1cc1c6a`](https://togithub.com/sanity-io/sanity/commit/1cc1c6a9a)
Espen Hovlandsdal | fix(cli): unset NODE_ENV for CLI bundle (don't assume production) ([#2502](https://togithub.com/sanity-io/sanity/issues/2502)) | [`308543d`](https://togithub.com/sanity-io/sanity/commit/308543d82)
### [`v2.10.2`](https://togithub.com/sanity-io/sanity/releases/v2.10.2)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.10.0...v2.10.2)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
### 🐛 Notable bugfixes
- Reduces the size of mutations when editing documents in the Studio
- Fixes a bug that caused out of bounds values for hotspot/crop to be saved to the data store
### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Magnus Holm | perf(mutator): remove duplicated createIfNotExists | [`4e2150f`](https://togithub.com/sanity-io/sanity/commit/4e2150f19d)
Bjørge Næss | fix(imagetool): pass final value to onChangeEnd | [`e02116a`](https://togithub.com/sanity-io/sanity/commit/e02116a63b)
Bjørge Næss | fix(form-builder): use final value from onChangeEnd | [`4eb35ee`](https://togithub.com/sanity-io/sanity/commit/4eb35ee49a)
Bjørge Næss | fix(imagetool): normalize crop before emitting onChangeEnd | [`4f080b5`](https://togithub.com/sanity-io/sanity/commit/4f080b5ee9)
### [`v2.10.0`](https://togithub.com/sanity-io/sanity/releases/v2.10.0)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.9.1...v2.10.0)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### ✨ Highlights
##### Initial values for any type
This upgrade extends support for [*initial values*](https://www.sanity.io/docs/initial-value-templates) to any field, not just the document type. You can now set initial values on a field that's shared between schema types. It also allows for initial values for fields inside of arrays and the Portable Text editor, which has been a frequent request. Initial values still supports promises if you need to set values from external data sources.
[Go to the docs to learn how you can configure initial values.](https://www.sanity.io/docs/initial-value-templates)
![initial-values-2021-04-28](https://user-images.githubusercontent.com/876086/116404523-007c2f80-a82f-11eb-883f-87d22c666750.gif)
##### 🐛 Notable bugfixes
- Fixes a few performance regressions in the array input
- Fixes an issue where the "revert changes"-dialog confirmation would sometimes be hidden behind the form dialog
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Marius Lundgård | fix(field): fix z-index issues of tooltip and revert dialog ([#2449](https://togithub.com/sanity-io/sanity/issues/2449)) | [`ba32ea1`](https://togithub.com/sanity-io/sanity/commit/ba32ea113)
Marius Lundgård | build(examples): update `@sanity/ui` | [`abf6417`](https://togithub.com/sanity-io/sanity/commit/abf64172d)
Bjørge Næss | perf(form-builder): move array presence and markers filtering to array item component and memoize | [`2b63c91`](https://togithub.com/sanity-io/sanity/commit/2b63c91f8)
Bjørge Næss | perf(base): memoize change indicator paths | [`7a2ffa6`](https://togithub.com/sanity-io/sanity/commit/7a2ffa668)
Bjørge Næss | perf(form-builder): memoize fileTarget event handlers | [`bc7d122`](https://togithub.com/sanity-io/sanity/commit/bc7d1228f)
Marius Lundgård | build: update `@sanity/color` dependency ([#2452](https://togithub.com/sanity-io/sanity/issues/2452)) | [`5f8977d`](https://togithub.com/sanity-io/sanity/commit/5f8977d99)
Bjørge Næss | refactor: move a few shared utilities form form-builder to util package | [`a391a1c`](https://togithub.com/sanity-io/sanity/commit/a391a1c13)
Bjørge Næss | refactor(form-builder): inject ArrayFunctions as prop instead of importing | [`828fc45`](https://togithub.com/sanity-io/sanity/commit/828fc4587)
Bjørge Næss | chore(desk-tool): fix lint errors | [`7bce53c`](https://togithub.com/sanity-io/sanity/commit/7bce53c81)
Bjørge Næss | feat(types): add isArraySchemaType asserter | [`ea7446a`](https://togithub.com/sanity-io/sanity/commit/ea7446ac7)
Bjørge Næss | feat(types): add initialValue type property | [`5394961`](https://togithub.com/sanity-io/sanity/commit/539496197)
Bjørge Næss | fix(types): add options property to BaseSchemaType | [`7978946`](https://togithub.com/sanity-io/sanity/commit/7978946a5)
Bjørge Næss | chore(eslint): add .snap files to eslintignore | [`57b4ed8`](https://togithub.com/sanity-io/sanity/commit/57b4ed8a3)
Bjørge Næss | chore(test-studio): add a document type for testing initial values | [`95a122b`](https://togithub.com/sanity-io/sanity/commit/95a122bf1)
Espen Hovlandsdal | feat(schema): add initialValue as overridable schema property | [`63d090e`](https://togithub.com/sanity-io/sanity/commit/63d090e30)
Rex Isaac Raphael | feat(schema): allow objects with initial values | [`041913b`](https://togithub.com/sanity-io/sanity/commit/041913b54)
Rex Isaac Raphael | fix(schema): fix lint errors | [`0717b58`](https://togithub.com/sanity-io/sanity/commit/0717b5838)
Bjørge Næss | feat: add support for defining initial values for all schema types | [`28593a0`](https://togithub.com/sanity-io/sanity/commit/28593a003)
Bjørge Næss | fix(initial-value-templates): comment out check for \_type | [`96416de`](https://togithub.com/sanity-io/sanity/commit/96416ded6)
Bjørge Næss | feat(form-builder): add support for resolving initial values in array input | [`959bdb4`](https://togithub.com/sanity-io/sanity/commit/959bdb414)
Bjørge Næss | feat(form-builder): add support for initial values in portable text editor | [`1bd6332`](https://togithub.com/sanity-io/sanity/commit/1bd633283)
Bjørge Næss | chore(test-studio): add an example of initial value on type referenced by name | [`b0e9aa2`](https://togithub.com/sanity-io/sanity/commit/b0e9aa2ef)
### [`v2.9.1`](https://togithub.com/sanity-io/sanity/releases/v2.9.1)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.9.0...v2.9.1)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
This release reverts the `v2.9.0` studio search update due to an unexpected issue in studios with complex schemas. We are working on a fix and hope to reintroduce the change soon.
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Bjørge Næss | Revert "feat(search): apply pt::text() when searching portable text fields" | [`c02ba5e`](https://togithub.com/sanity-io/sanity/commit/c02ba5e04)
### [`v2.9.0`](https://togithub.com/sanity-io/sanity/releases/v2.9.0)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.8.1...v2.9.0)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
### ✨ Highlights
#### Improved studio search
The Sanity Studio search now supports searching [Portable Text](https://togithub.com/portabletext/portabletext) fields by using the recently introduced [`pt::text()`](https://www.sanity.io/docs/groq-functions#1467558a0339) GROQ function.
#### Improved image fields
The image fields has seen a number of bugfixes and now properly display presence and change indicators, including for hotspot/crop fields and other image fields that opens in dialogs.
#### Sanity UI powered reference input
The default reference input in Sanity Studio has been refactored to use the `Autocomplete` component from [Sanity UI](https://sanity.io/ui) which improves overall accessibility and fixes keyboard navigation bugs.
##### Other features
- The language filter can now be configured with an array of document types to control which schemas the filter will appear on (thanks [@spacedawwg](https://togithub.com/spacedawwg)!).
### 🐛 Notable bugfixes
- Fixes false positive with image fields in dialogs, indicating that there's a change when there is none
- The code input now wraps text inside the input so that all the code is visible without having to scroll horizontally (thanks [@katherinepeterson](https://togithub.com/katherinepeterson)!)
### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Bjørge Næss | chore: update pull request template | [`53ddb27`](https://togithub.com/sanity-io/sanity/commit/53ddb27e2)
Espen Hovlandsdal | feat(search): apply pt::text() when searching portable text fields | [`ba30e92`](https://togithub.com/sanity-io/sanity/commit/ba30e9270)
Bjørge Næss | fix(form-builder): skip href for disabled intent buttons | [`3f33244`](https://togithub.com/sanity-io/sanity/commit/3f3324418)
Bjørge Næss | fix(form-builder): navigate intentlink / button using router (pushstate) rather than regular page navigation | [`716499d`](https://togithub.com/sanity-io/sanity/commit/716499d2a)
Bjørge Næss | chore(test-studio): add example of reference fields with async and invalid filters | [`a4af37a`](https://togithub.com/sanity-io/sanity/commit/a4af37aa7)
Bjørge Næss | chore: upgrade [@sanity/ui](https://togithub.com/sanity/ui) | [`89b0bc9`](https://togithub.com/sanity-io/sanity/commit/89b0bc988)
Bjørge Næss | refactor(form-builder): migrate reference input to use Sanity UI | [`43a192b`](https://togithub.com/sanity-io/sanity/commit/43a192b30)
Bjørge Næss | fix(form-builder): make change indicator for reference input managed | [`f596e10`](https://togithub.com/sanity-io/sanity/commit/f596e109c)
Marius Lundgård | refactor(form-builder): visually adjust ReferenceInput | [`7b052df`](https://togithub.com/sanity-io/sanity/commit/7b052dfe0)
katherinepeterson | fix(code-input): wrap text inside code input | [`717becf`](https://togithub.com/sanity-io/sanity/commit/717becfc7)
Paul Welsh | feat(language-filter): add documentTypes option | [`58df909`](https://togithub.com/sanity-io/sanity/commit/58df909b1)
Bjørge Næss | fix(base): add transaction-collator path reference | [`9c9fe9b`](https://togithub.com/sanity-io/sanity/commit/9c9fe9b2a)
Bjørge Næss | chore(imagetool): partially migrate imagetool to ts | [`cc05414`](https://togithub.com/sanity-io/sanity/commit/cc0541453)
Bjørge Næss | fix(imagetool): export type definitions for constants | [`9dfc1f8`](https://togithub.com/sanity-io/sanity/commit/9dfc1f87e)
Bjørge Næss | fix(types): make \_type on hotspot/crop optional | [`98e6133`](https://togithub.com/sanity-io/sanity/commit/98e6133f8)
Bjørge Næss | refactor(form-builder): hoist checkerboard component | [`57a61aa`](https://togithub.com/sanity-io/sanity/commit/57a61aac4)
Bjørge Næss | refactor(form-builder): move focus ring utils/hoc to components | [`796e5f0`](https://togithub.com/sanity-io/sanity/commit/796e5f01b)
Bjørge Næss | refactor(form-builder): extract RatioBox to a reusable component | [`afad1b8`](https://togithub.com/sanity-io/sanity/commit/afad1b84b)
Bjørge Næss | feat(base): add a variant of change indicator for relative paths with passed isChanged value | [`1d7c1ae`](https://togithub.com/sanity-io/sanity/commit/1d7c1ae3b)
Bjørge Næss | fix(schema): add custom fields after asset + hotspot crop | [`3e450cd`](https://togithub.com/sanity-io/sanity/commit/3e450cd75)
Bjørge Næss | fix(form-builder): support presence & support deep linking for image tool and pass compareValue to dialog | [`81e39e7`](https://togithub.com/sanity-io/sanity/commit/81e39e7d0)
Bjørge Næss | refactor(form-builder): migrate ImageToolInput to Sanity UI | [`3864408`](https://togithub.com/sanity-io/sanity/commit/38644082f)
Bjørge Næss | fix(form-builder): show presence for users at fields behind dialogs at image field | [`eeaea31`](https://togithub.com/sanity-io/sanity/commit/eeaea3140)
Bjørge Næss | fix(form-builder): show change indicator on image when any of the dialog field has changed | [`184eadf`](https://togithub.com/sanity-io/sanity/commit/184eadf52)
Bjørge Næss | fix(form-builder): prevent Sanity UI autofocus behavior for image input dialog | [`009ce54`](https://togithub.com/sanity-io/sanity/commit/009ce5409)
Bjørge Næss | fix(base): strip semicolon when tokenizing search terms | [`1a40da9`](https://togithub.com/sanity-io/sanity/commit/1a40da9ef)
Marius Lundgård | build(base): add missing `@juggle/resize-observer` dependency | [`a0b17e1`](https://togithub.com/sanity-io/sanity/commit/a0b17e148)
Marius Lundgård | fix(form-builder): remove BoundaryElementProvider in dialogs | [`8d663a7`](https://togithub.com/sanity-io/sanity/commit/8d663a712)
### [`v2.8.1`](https://togithub.com/sanity-io/sanity/releases/v2.8.1)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.8.0...v2.8.1)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Fixes a bug that accidentally permitted referencing drafts
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Bjørge Næss | fix(base): fix regression causing drafts to be included as results in reference search ([#2441](https://togithub.com/sanity-io/sanity/issues/2441)) | [`02bd577`](https://togithub.com/sanity-io/sanity/commit/02bd57728)
### [`v2.8.0`](https://togithub.com/sanity-io/sanity/releases/v2.8.0)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.7.4...v2.8.0)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### ✨ Highlights
##### Improved Sanity UI based array inputs
We have refactored the default inputs used for array types in the Sanity Studio to [Sanity UI](https://www.sanity.io/ui). As an added bonus, the array inputs now supports keyboard reordering by pressing space followed by arrow keys when the drag handle has focus.
##### 🐛 Notable bugfixes
- Fixes issue where the validation list got hidden behind the fullscreen Portable Text Editor
##### 📓 Full changelog
Author | Message | Commit
\------------ | ------------- | -------------
Espen Hovlandsdal | fix(default-login): render passed children for CorsCheck component | [`c0f29fa`](https://togithub.com/sanity-io/sanity/commit/c0f29fa543)
Knut Melvær | chore(client): fix link and add clarification about getDocuments | [`6c57bfd`](https://togithub.com/sanity-io/sanity/commit/6c57bfd14e)
Espen Hovlandsdal | refactor(base): transition search utilities to typescript | [`8cd5788`](https://togithub.com/sanity-io/sanity/commit/8cd5788f02)
Bjørge Næss | fix: use portal for validation menu ([#2425](https://togithub.com/sanity-io/sanity/issues/2425)) | [`4e99c34`](https://togithub.com/sanity-io/sanity/commit/4e99c346d4)
Bjørge Næss | test(form-builder): restore test script | [`438137c`](https://togithub.com/sanity-io/sanity/commit/438137c367)
Bjørge Næss | test(form-builder): update test file pattern regex | [`8a3ce7a`](https://togithub.com/sanity-io/sanity/commit/8a3ce7ae28)
Bjørge Næss | refactor(form-builder): migrate default asset source to Sanity UI | [`d12ad80`](https://togithub.com/sanity-io/sanity/commit/d12ad8030b)
Bjørge Næss | chore(form-builder): use strict mode for transitional components | [`1902832`](https://togithub.com/sanity-io/sanity/commit/1902832191)
Bjørge Næss | chore: add css files to eslint ignore pattern | [`a04d0f7`](https://togithub.com/sanity-io/sanity/commit/a04d0f76e8)
Bjørge Næss | chore: fix lint errors | [`bcc7b10`](https://togithub.com/sanity-io/sanity/commit/bcc7b1052f)
Marius Lundgård | feat(form-builder) add TagInput | [`03d4a03`](https://togithub.com/sanity-io/sanity/commit/03d4a03a26)
Bjørge Næss | perf(form-builder): avoid the use of nested ::placeholder selector in TagInput | [`ed14734`](https://togithub.com/sanity-io/sanity/commit/ed147342b6)
Marius Lundgård | feat(form-builder): add default placeholder to TagInput | [`eb3062f`](https://togithub.com/sanity-io/sanity/commit/eb3062fbe9)
Marius Lundgård | fix(form-builder): disable TagInput when in read-only mode | [`7828c61`](https://togithub.com/sanity-io/sanity/commit/7828c6102e)
Bjørge Næss | refactor(form-builder): migrate Details component to Sanity UI | [`08bd4fe`](https://togithub.com/sanity-io/sanity/commit/08bd4fec4b)
Bjørge Næss | refactor(form-builder): initial migration of different variations of array inputs to Sanity UI | [`884f576`](https://togithub.com/sanity-io/sanity/commit/884f576f86)
Benedicte Emilie Brækken | fix(form-builder) adjust presence margins in array of primitives | [`e5d8770`](https://togithub.com/sanity-io/sanity/commit/e5d8770ddb)
Bjørge Næss | fix(form-builder) hide validation tooltip if empty markers | [`6a938e1`](https://togithub.com/sanity-io/sanity/commit/6a938e1329)
Bjørge Næss | fix(form-builder) Fix rendering of array of predefined items with legacy format | [`3b13ff9`](https://togithub.com/sanity-io/sanity/commit/3b13ff984a)
Bjørge Næss | chore(form-builder) lint: fix unused type variable | [`cb88f61`](https://togithub.com/sanity-io/sanity/commit/cb88f61de7)
Marius Lundgård | refactor(form-builder): increase padding and improve button labels of ArrayInput | [`c855506`](https://togithub.com/sanity-io/sanity/commit/c8555068b6)
Marius Lundgård | feat(form-builder): improve ArrayOfPrimitivesInput | [`f617ff2`](https://togithub.com/sanity-io/sanity/commit/f617ff217c)
Marius Lundgård | test(examples): add example of validation of string as primitive array item | [`50fffb9`](https://togithub.com/sanity-io/sanity/commit/50fffb9ed6)
Marius Lundgård | refactor(form-builder): adjust padding of primitive array items | [`5218279`](https://togithub.com/sanity-io/sanity/commit/5218279d70)
Bjørge Næss | refactor(form-builder) port scroll fixes from main release line | [`cd080ec`](https://togithub.com/sanity-io/sanity/commit/cd080ec21f)
Bjørge Næss | fix(form-builder): hide validation status when no validation items | [`2e8ef33`](https://togithub.com/sanity-io/sanity/commit/2e8ef3390c)
Bjørge Næss | fix(form-builder): don't hide validation errors for array items when readonly | [`731f00e`](https://togithub.com/sanity-io/sanity/commit/731f00e027)
Bjørge Næss | chore(form-builder): cleanup comments and unused code | [`32cb01b`](https://togithub.com/sanity-io/sanity/commit/32cb01bca9)
Bjørge Næss | fix(form-builder): remove box-shadow around moved array items | [`05fd9af`](https://togithub.com/sanity-io/sanity/commit/05fd9af7b8)
Marius Lundgård | refactor(form-builder): adjust spacing and fix lint warnings | [`676976c`](https://togithub.com/sanity-io/sanity/commit/676976c9e8)
Marius Lundgård | chore(form-builder): disable `import/no-unresolved` in TS file | [`99beb7e`](https://togithub.com/sanity-io/sanity/commit/99beb7ec32)
Marius Lundgård | refactor(form-builder): add boundary element provider and deprecate EditItemFold | [`7edf026`](https://togithub.com/sanity-io/sanity/commit/7edf026239)
Marius Lundgård | refactor(form-builder): add trash icon to confirm delete button | [`2a61514`](https://togithub.com/sanity-io/sanity/commit/2a61514ba1)
Marius Lundgård | refactor(form-builder): adjust spacing and add comments to array grid item | [`a69631c`](https://togithub.com/sanity-io/sanity/commit/a69631c918)
Marius Lundgård | perf(form-builder): use memoization to prevent unecessary rerendering | [`9533ebb`](https://togithub.com/sanity-io/sanity/commit/9533ebb8ce)
Marius Lundgård | refactor(form-builder): adjust border radius of array items | [`63782f8`](https://togithub.com/sanity-io/sanity/commit/63782f869a)
Bjørge Næss | fix(form-builder): fix issue where change indicators on primitive array inputs are displayed even when there are no changes | [`6331622`](https://togithub.com/sanity-io/sanity/commit/633162202f)
Bjørge Næss | fix(form-builder): use index as item key instead of type name in "add array item meny button" | [`4df8491`](https://togithub.com/sanity-io/sanity/commit/4df84912c6)
Bjørge Næss | fix(form-builder): don't absolute position edit dialogs for array items | [`ccbea93`](https://togithub.com/sanity-io/sanity/commit/ccbea934de)
Bjørge Næss | fix: add an offset to FormFieldSet focus ring | [`a768eaf`](https://togithub.com/sanity-io/sanity/commit/a768eaf261)
Bjørge Næss | chore: upgrade [@sanity/ui](https://togithub.com/sanity/ui) | [`39e0dab`](https://togithub.com/sanity-io/sanity/commit/39e0dab683)
Bjørge Næss | chore(test-studio): add some more test-fields to reference tests | [`df0afae`](https://togithub.com/sanity-io/sanity/commit/df0afaeb6a)
Bjørge Næss | fix(client): add missing 'visibility' property on mutation event type | [`1a22c92`](https://togithub.com/sanity-io/sanity/commit/1a22c924d7)
Bjørge Næss | chore(form-builder): fix minor TS issue | [`9891a95`](https://togithub.com/sanity-io/sanity/commit/9891a95ee1)
Bjørge Næss | fix(form-builder): remove empty value on array item dialog close | [`714b1f3`](https://togithub.com/sanity-io/sanity/commit/714b1f3fe2)
Bjørge Næss | chore(server): remove normalize.css from webpack entries | [`0930ac2`](https://togithub.com/sanity-io/sanity/commit/0930ac22f1)
Bjørge Næss | chore(form-builder): remove normalize.css workaround from FileInputButton | [`19ebbc1`](https://togithub.com/sanity-io/sanity/commit/19ebbc1cdd)
Bjørge Næss | chore(storybook): remove normalize.css | [`5b3522e`](https://togithub.com/sanity-io/sanity/commit/5b3522e9c0
Configuration
📅 Schedule: "before 3am on the first day of the month" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box.
This PR contains the following updates:
2.6.2
->2.13.1
2.7.0
->2.13.0
2.2.6
->2.13.0
2.6.2
->2.13.1
2.6.2
->2.13.1
2.2.6
->2.13.1
2.6.3
->2.13.1
2.6.2
->2.13.1
2.2.6
->2.13.1
Release Notes
sanity-io/sanity
### [`v2.13.1`](https://togithub.com/sanity-io/sanity/releases/v2.13.1) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.13.0...v2.13.1) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Upgrading to `@sanity/ui@0.34.5` fixes an issue that caused unwanted CSS overrides of core UI layout primitives in certain situations. - Fixes an issue where the preview of a string field with predefined list options used the value of the field when selecting it for previewing instead of the title specified in the list options ([#769](https://togithub.com/sanity-io/sanity/issues/769)). - Fixes an issue that could prevent drafts from being edited even in cases where a grant rule would permit it. ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Marius Lundgård | build: update dependencies | [`ab6ee8b`](https://togithub.com/sanity-io/sanity/commit/ab6ee8be8) Victoria Bergquist | fix(base): use title, not value in prepare preview when field has predefined string options ([#2618](https://togithub.com/sanity-io/sanity/issues/2618)) | [`c1d9d8f`](https://togithub.com/sanity-io/sanity/commit/c1d9d8fee) Bjørge Næss | fix(base): fallback to published version if no draft exists | [`d4bcad1`](https://togithub.com/sanity-io/sanity/commit/d4bcad1f62) Bjørge Næss | docs(sanity): improve placeholder package readme text | [`f91a62c`](https://togithub.com/sanity-io/sanity/commit/f91a62c6fc) Simeon Griggs | chore(data-aspects): remove todo comment ([#2623](https://togithub.com/sanity-io/sanity/issues/2623)) | [`0e0b3f8`](https://togithub.com/sanity-io/sanity/commit/0e0b3f89dc) ### [`v2.13.0`](https://togithub.com/sanity-io/sanity/releases/v2.13.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.12.2...v2.13.0) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Migrated [@sanity/field](https://togithub.com/sanity/field) to Sanity UI and styled-components - Migrated [@sanity/dashboard](https://togithub.com/sanity/dashboard) to [@sanity/ui](https://togithub.com/sanity/ui) and styled-components - Migrated studio-hints to [@sanity/ui](https://togithub.com/sanity/ui) - Fixed an issue where the inspected document version is always the latest version and not the current selected version. - Migrated default-login to [@sanity/ui](https://togithub.com/sanity/ui) - Added typings for the Sanity CDN image URL parameters - Migrated @sanity/desk-tool/tool to styled-components - Fixed an issue where readOnly fields and documents would still be editable in the review changes panel - Fixed an issue where hidden fields would still be visible in the review changes panel ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Espen Hovlandsdal | build(ci): skip cypress binary install on non-cypress workflows | [`1489196`](https://togithub.com/sanity-io/sanity/commit/1489196ca) Victoria Bergquist | refactor(field): migrate layout components to sanity ui ([#2550](https://togithub.com/sanity-io/sanity/issues/2550)) | [`94f29c3`](https://togithub.com/sanity-io/sanity/commit/94f29c3cf) Espen Hovlandsdal | feat(server): allow hacking studio webpack configuration | [`391e615`](https://togithub.com/sanity-io/sanity/commit/391e61588) Espen Hovlandsdal | fix(diff): correct typing for (currently empty) DiffOptions | [`31ca9b6`](https://togithub.com/sanity-io/sanity/commit/31ca9b6df) vicbergquist | refactor(field): migrate revert changes button to sanity ui | [`87c485e`](https://togithub.com/sanity-io/sanity/commit/87c485e36) vicbergquist | refactor(field): migrate value error to sanity ui | [`5bd960b`](https://togithub.com/sanity-io/sanity/commit/5bd960b0a) vicbergquist | refactor(field): migrate metainfo to sanity ui | [`5b65015`](https://togithub.com/sanity-io/sanity/commit/5b6501506) vicbergquist | feat(field): migrate fieldchange, groupchange to sanity ui | [`a8e59d5`](https://togithub.com/sanity-io/sanity/commit/a8e59d507) vicbergquist | fix(field): make revert changes button span full width instead of inlining with diff component | [`f07b6b6`](https://togithub.com/sanity-io/sanity/commit/f07b6b62b) Herman Wikner | refactor(code-input): migrate code-input to `@sanity/ui` ([#2580](https://togithub.com/sanity-io/sanity/issues/2580)) | [`b6e04aa`](https://togithub.com/sanity-io/sanity/commit/b6e04aa7c) Simeon Griggs | docs(form-builder): adjust tone of voice | [`9875227`](https://togithub.com/sanity-io/sanity/commit/9875227c4) Simeon Griggs | docs(client): fix typo on asset upload method | [`6c6ce4f`](https://togithub.com/sanity-io/sanity/commit/6c6ce4f09) Espen Hovlandsdal | feat(types): add image url query parameter types | [`767dc98`](https://togithub.com/sanity-io/sanity/commit/767dc98ac) Marius Lundgård | refactor(validation): convert to ES modules | [`ed7c8de`](https://togithub.com/sanity-io/sanity/commit/ed7c8dee4) Per-Kristian Nordnes | fix(desk-tool): use the document revision you are currently looking at as value for inspect dialog | [`ea9a57f`](https://togithub.com/sanity-io/sanity/commit/ea9a57f15) vicbergquist | refactor(desk-tool): use styled-components in `tool/` | [`a770663`](https://togithub.com/sanity-io/sanity/commit/a770663b3) vicbergquist | refactor(field): migrate boolean diff type to [@sanity/ui](https://togithub.com/sanity/ui) | [`d649f42`](https://togithub.com/sanity-io/sanity/commit/d649f420f) vicbergquist | refactor(field): migrate number diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`0ac2377`](https://togithub.com/sanity-io/sanity/commit/0ac237784) vicbergquist | refactor(field): migrate string, url diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`6099f45`](https://togithub.com/sanity-io/sanity/commit/6099f4558) vicbergquist | refactor(field): migrate slug diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`51915ca`](https://togithub.com/sanity-io/sanity/commit/51915caa6) vicbergquist | refactor(field): migrate datetime diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`7518562`](https://togithub.com/sanity-io/sanity/commit/75185627a) Herman Wikner | refactor(default-login): migrate to `@sanity/ui` ([#2608](https://togithub.com/sanity-io/sanity/issues/2608)) | [`b762503`](https://togithub.com/sanity-io/sanity/commit/b762503d0) Herman Wikner | refactor(studio-hints): migrate to `@sanity/ui` ([#2604](https://togithub.com/sanity-io/sanity/issues/2604)) | [`e1c7ea0`](https://togithub.com/sanity-io/sanity/commit/e1c7ea003) Arthur Denner | fix(schema): add blockEditor to list of overridable fields ([#2273](https://togithub.com/sanity-io/sanity/issues/2273)) | [`d14ccd0`](https://togithub.com/sanity-io/sanity/commit/d14ccd08d) Arthur Denner | feat(form-builder): allow custom icon for built-in decorators ([#2272](https://togithub.com/sanity-io/sanity/issues/2272)) | [`ff785f3`](https://togithub.com/sanity-io/sanity/commit/ff785f3d3) vicbergquist | refactor(field): migrate reference diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`e89cd7d`](https://togithub.com/sanity-io/sanity/commit/e89cd7dc1) vicbergquist | refactor(field): migrate array of options diff to [@sanity/ui](https://togithub.com/sanity/ui) | [`f84f0bf`](https://togithub.com/sanity-io/sanity/commit/f84f0bf51) vicbergquist | refactor(field): migrate image and file diffs to [@sanity/ui](https://togithub.com/sanity/ui) | [`55c3229`](https://togithub.com/sanity-io/sanity/commit/55c32296b) vicbergquist | refactor(field): migrate ptdiff annotation, inline-object components to [@sanity/ui](https://togithub.com/sanity/ui) | [`942a0a3`](https://togithub.com/sanity-io/sanity/commit/942a0a3a2) vicbergquist | refactor(field): migrate ptdiff paragraph to [@sanity/ui](https://togithub.com/sanity/ui) | [`2c6f33a`](https://togithub.com/sanity-io/sanity/commit/2c6f33ac0) vicbergquist | refactor(field): migrate ptdiff header to [@sanity/ui](https://togithub.com/sanity/ui) | [`c414b18`](https://togithub.com/sanity-io/sanity/commit/c414b1861) vicbergquist | refactor(field): migrate ptdiff text to [@sanity/io](https://togithub.com/sanity/io) | [`697e36f`](https://togithub.com/sanity-io/sanity/commit/697e36fff) vicbergquist | refactor(field): migrate ptdiff blockquote to styled-components | [`468117a`](https://togithub.com/sanity-io/sanity/commit/468117a20) vicbergquist | refactor(field): migrate ptdiff decorator to styled-components | [`53c1258`](https://togithub.com/sanity-io/sanity/commit/53c12582f) vicbergquist | refactor(field): migrate ptdiff block to [@ssanity/ui](https://togithub.com/ssanity/ui) | [`e18dc72`](https://togithub.com/sanity-io/sanity/commit/e18dc7289) vicbergquist | refactor(field): remove css from ptdiff | [`f776a56`](https://togithub.com/sanity-io/sanity/commit/f776a5655) Herman Wikner | refactor(dashboard): migrate to `@sanity/ui` ([#2590](https://togithub.com/sanity-io/sanity/issues/2590)) | [`81b6149`](https://togithub.com/sanity-io/sanity/commit/81b6149d3) Sindre Gulseth | feature(grants): add support for validating built-in $identity param | [`5a55971`](https://togithub.com/sanity-io/sanity/commit/5a55971ac) Victoria Bergquist | fix(field): disable revert changes on read-only fields and documents and hide fields from review changes if `hidden: true` ([#2619](https://togithub.com/sanity-io/sanity/issues/2619)) | [`78d1bb3`](https://togithub.com/sanity-io/sanity/commit/78d1bb342) ### [`v2.12.2`](https://togithub.com/sanity-io/sanity/releases/v2.12.2) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.12.0...v2.12.2) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Fixes a bug introduced in v2.12.0 that made hidden fields visible - Fixes an issue that caused some plugins to error with the message "Cannot read property 'from' of undefined". - Fixes a bug where review changes might crash when showing change in a reference that could target more than one schema type - Fixes a bug which caused the create menu to be disabled in cases where the current user actually had access to create the type of document - Fixes an issue that caused field validations on object types to be written on individual field types, causing unintentional re-use of validation rules. - Migrates components in [@sanity/field](https://togithub.com/sanity/field) to Sanity UI and styled-components ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- vicbergquist | refactor(field): migrate no changes component to sanity ui | [`c1a2401`](https://togithub.com/sanity-io/sanity/commit/c1a240153) vicbergquist | refactor(field): migrate ChangeList to sanity ui | [`0db2989`](https://togithub.com/sanity-io/sanity/commit/0db29890f) vicbergquist | refactor(field): migrate diff tooltip to sanity ui | [`500184a`](https://togithub.com/sanity-io/sanity/commit/500184a3e) vicbergquist | refactor(field): migrate differrorboundary to sanity ui | [`c64f739`](https://togithub.com/sanity-io/sanity/commit/c64f7394e) vicbergquist | refactor(field): migrate breadcrumbs to sanity ui | [`b114b39`](https://togithub.com/sanity-io/sanity/commit/b114b3997) vicbergquist | refactor(field): migrate fallback diff to sanity ui | [`99eab5a`](https://togithub.com/sanity-io/sanity/commit/99eab5a94) vicbergquist | refactor(field): migrate fromto to sanity ui | [`028308d`](https://togithub.com/sanity-io/sanity/commit/028308d21) Bjørge Næss | fix(base): guard against missing user roles in InsufficientPermissionsMessage | [`41f63a3`](https://togithub.com/sanity-io/sanity/commit/41f63a3f3) Bjørge Næss | fix(form-builder): reexport PatchEvent default export | [`2cdc645`](https://togithub.com/sanity-io/sanity/commit/2cdc64585) Bjørge Næss | Revert "feat(base): add basic permission check to default pane menu" | [`02ded86`](https://togithub.com/sanity-io/sanity/commit/02ded8685) Espen Hovlandsdal | fix(cli): add missing undeclared dependency | [`d7bc2cf`](https://togithub.com/sanity-io/sanity/commit/d7bc2cfd4) Espen Hovlandsdal | fix(field): prevent crash when unable to resolve reference type | [`09a9c4b`](https://togithub.com/sanity-io/sanity/commit/09a9c4b21) Bjørge Næss | fix(types): allow 'hidden' property on object field types | [`0288602`](https://togithub.com/sanity-io/sanity/commit/0288602a1) Bjørge Næss | test(form-builder): add test case for hidden and filtered fields | [`2787300`](https://togithub.com/sanity-io/sanity/commit/278730077) Bjørge Næss | fix(form-builder): make sure hidden/filtered fields are actually hidden | [`964d65b`](https://togithub.com/sanity-io/sanity/commit/964d65bbc) Bjørge Næss | chore(test-studio): add repro case for field validation issue | [`bef4da6`](https://togithub.com/sanity-io/sanity/commit/bef4da638) Bjørge Næss | test(validation): add a failing test case for leaky field validation rules issue | [`efe8315`](https://togithub.com/sanity-io/sanity/commit/efe831504) Bjørge Næss | fix(validation): fix issue where object field validation were written on individual fields, causing unintended validation rule leakage | [`934bdf6`](https://togithub.com/sanity-io/sanity/commit/934bdf68f) ### [`v2.12.0`](https://togithub.com/sanity-io/sanity/releases/v2.12.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.11.2...v2.12.0) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### ✨ Highlights - The `sanity users invite` CLI command now supports the [new role names](https://www.sanity.io/blog/announcing-new-subscription-plans) - The default object input in Sanity Studio has been refactored to use [Sanity UI](https://www.sanity.io/ui). ##### 🐛 Notable bugfixes - Fixes a problem where a Portable Text editor with too many toolbar items inside of a object inside of a modal caused the content to overflow and be clipped - Fixes issue with combining multiple block-tools HTML deserializers. - Fixes various visual issues related to presence and change indicators in the code input ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Bjørge Næss | chore: add repro case for portable text toolbar causing dialog content overflow | [`e145214`](https://togithub.com/sanity-io/sanity/commit/e145214ec4) Per-Kristian Nordnes | test(block-tools): add from the wild test | [`30cce85`](https://togithub.com/sanity-io/sanity/commit/30cce8564a) Per-Kristian Nordnes | fix(block-tools): \_markDefs must be class var | [`79ad07c`](https://togithub.com/sanity-io/sanity/commit/79ad07cab6) Per-Kristian Nordnes | chore(block-tools): add dev package [@types/jsdom](https://togithub.com/types/jsdom) | [`c0a247d`](https://togithub.com/sanity-io/sanity/commit/c0a247d8ee) Per-Kristian Nordnes | fix(block-tools): fix lint errors | [`88bfdc8`](https://togithub.com/sanity-io/sanity/commit/88bfdc8d06) Marius Lundgård | refactor(form-builder): remove workaround in `FileInputButton` | [`3d29c0d`](https://togithub.com/sanity-io/sanity/commit/3d29c0d7ad) Fred Carlsen | fix(form-builder): Fix overflowing PT toolbar menu inside of dialog ([#2560](https://togithub.com/sanity-io/sanity/issues/2560)) | [`e7b9244`](https://togithub.com/sanity-io/sanity/commit/e7b9244ea6) Marius Lundgård | feat(base): migrate `components/Document` to TypeScript ([#2544](https://togithub.com/sanity-io/sanity/issues/2544)) | [`98712b7`](https://togithub.com/sanity-io/sanity/commit/98712b76f7) Espen Hovlandsdal | fix(desk-tool): prevent crash if roles property does not exist on current user | [`65ea503`](https://togithub.com/sanity-io/sanity/commit/65ea50380a) Espen Hovlandsdal | feat(cli): add help for missing [@sanity/core](https://togithub.com/sanity/core) commands | [`3e86168`](https://togithub.com/sanity-io/sanity/commit/3e86168c9b) Espen Hovlandsdal | feat(core): support new roles api in user invite command | [`a2f9f50`](https://togithub.com/sanity-io/sanity/commit/a2f9f503e6) Bjørge Næss | fix(form-builder): update element focus for ImageInput when focus path targets the asset field | [`cb4777d`](https://togithub.com/sanity-io/sanity/commit/cb4777d8b7) Bjørge Næss | refactor(form-builder): move focus check to componentDidUpdate | [`f99e011`](https://togithub.com/sanity-io/sanity/commit/f99e011ddc) Bjørge Næss | refactor(form-builder): make 'readOnly' an optional prop for FormBuilderInput | [`f35ed06`](https://togithub.com/sanity-io/sanity/commit/f35ed06b00) Bjørge Næss | chore(form-builder): fix lint errors | [`747365c`](https://togithub.com/sanity-io/sanity/commit/747365c43e) Bjørge Næss | chore(form-builder): improve typings for input resolver | [`5f90e87`](https://togithub.com/sanity-io/sanity/commit/5f90e8710c) Bjørge Næss | refactor(form-builder): move all implemented parts into a separate folder | [`3a3030d`](https://togithub.com/sanity-io/sanity/commit/3a3030d748) Bjørge Næss | fix(form-builder): update element focus for ReferenceInput when focus path targets it | [`b9c7750`](https://togithub.com/sanity-io/sanity/commit/b9c7750cc3) Bjørge Næss | test(form-builder): setup required plumbing for object input test | [`a3e9b9f`](https://togithub.com/sanity-io/sanity/commit/a3e9b9f4c7) Bjørge Næss | chore(test-studio): add preview selection to objects test | [`f52b6c8`](https://togithub.com/sanity-io/sanity/commit/f52b6c8ff7) Bjørge Næss | feat(base): add support for lazy children to FormFieldSet | [`2e93f36`](https://togithub.com/sanity-io/sanity/commit/2e93f367e0) Bjørge Næss | refactor(base): remove focus path handling from base/FormFieldSet | [`20c56d4`](https://togithub.com/sanity-io/sanity/commit/20c56d49cf) Marius Lundgård | refactor(form-builder): migrate InvalidValueInput to Sanity UI | [`f317fd8`](https://togithub.com/sanity-io/sanity/commit/f317fd8c86) Bjørge Næss | refactor(form-builder): migrate UnknownFields to Sanity UI | [`9942d6f`](https://togithub.com/sanity-io/sanity/commit/9942d6f9f2) Bjørge Næss | chore(form-builder): export ObjectInput props | [`6468918`](https://togithub.com/sanity-io/sanity/commit/6468918c4c) Bjørge Næss | test(form-builder): add more test cases for ObjectInput | [`ae9e863`](https://togithub.com/sanity-io/sanity/commit/ae9e863709) Bjørge Næss | refactor(form-builder): migrate ObjectInput to Sanity UI | [`79d91c0`](https://togithub.com/sanity-io/sanity/commit/79d91c0dfa) Bjørge Næss | test(form-builder): add tests for ObjectFieldSets | [`3b4ef5c`](https://togithub.com/sanity-io/sanity/commit/3b4ef5caa7) Bjørge Næss | refactor(form-builder): sort out fieldset/focus conundrum | [`3349bda`](https://togithub.com/sanity-io/sanity/commit/3349bda688) Bjørge Næss | fix(base): memoize FormFieldSet content and always wrap in a Grid | [`fcc9c32`](https://togithub.com/sanity-io/sanity/commit/fcc9c32008) Bjørge Næss | fix(form-builder): use Stack with space instead of ul in invalid value/untyped value inputs | [`d0f6f59`](https://togithub.com/sanity-io/sanity/commit/d0f6f59ca0) Herman Wikner | fix(code-input): fix change indicator and presence issues ([#2551](https://togithub.com/sanity-io/sanity/issues/2551)) | [`0e7c2ae`](https://togithub.com/sanity-io/sanity/commit/0e7c2ae2ba) Bjørge Næss | fix(form-builder): fix wrong export | [`6a27b6c`](https://togithub.com/sanity-io/sanity/commit/6a27b6c0e5) ### [`v2.11.2`](https://togithub.com/sanity-io/sanity/releases/v2.11.2) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.11.1...v2.11.2) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Update `@sanity/ui` which fixes issue with backwards compatible theming. ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Marius Lundgård | build: update dependencies | [`c655081`](https://togithub.com/sanity-io/sanity/commit/c655081fc) ### [`v2.11.1`](https://togithub.com/sanity-io/sanity/releases/v2.11.1) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.11.0...v2.11.1) Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Fixes a bug where running `sanity graphql deploy` or `sanity exec` might crash if certain plugins or custom components were installed - Fixes a warning being printed to the console about usage of an experimental API version ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Espen Hovlandsdal | fix(default-login): use non-experimental api version | [`cfcbd96`](https://togithub.com/sanity-io/sanity/commit/cfcbd96b5) Espen Hovlandsdal | fix(base): prevent user store crashing in node environment | [`f3e0a16`](https://togithub.com/sanity-io/sanity/commit/f3e0a16be) ### [`v2.11.0`](https://togithub.com/sanity-io/sanity/releases/v2.11.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.10.5...v2.11.0) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### ✨ Highlights ##### Roles-aware studio When using the studio as a user without write access to some or all documents, the user interface will now reflect this and mark fields as read-only, as well as hide or disable actions that cannot be performed. Read-only states have also been given a visual upgrade as part of this release. ##### 🐛 Notable bugfixes - Fixes certain issues with incorrect `node_modules` after running `sanity upgrade` - Fixes bug where studio might crash when navigating/opening new tabs ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Bjørge Næss | build(tsconfig): add es2020 to lib | [`62ec3f2`](https://togithub.com/sanity-io/sanity/commit/62ec3f223) Bjørge Næss | chore: upgrade [@sanity/icons](https://togithub.com/sanity/icons) | [`b4d45fb`](https://togithub.com/sanity-io/sanity/commit/b4d45fb1b) Bjørge Næss | chore: upgrade [@sanity/ui](https://togithub.com/sanity/ui) | [`8593950`](https://togithub.com/sanity-io/sanity/commit/859395047) Espen Hovlandsdal | feat(cli): upgrade to yarn v1.22.10 | [`47186e2`](https://togithub.com/sanity-io/sanity/commit/47186e206) Rico Kahler | fix(client): make projectId optional; combine config types | [`dd995f0`](https://togithub.com/sanity-io/sanity/commit/dd995f06d) Marius Lundgård | fix(form-builder): render array item menu in a portal ([#2528](https://togithub.com/sanity-io/sanity/issues/2528)) | [`1dd802c`](https://togithub.com/sanity-io/sanity/commit/1dd802ce6) Marius Lundgård | build: fix lerna warnings ([#2530](https://togithub.com/sanity-io/sanity/issues/2530)) | [`2be7e6f`](https://togithub.com/sanity-io/sanity/commit/2be7e6fca) Marius Lundgård | build: update dependencies | [`86fa23e`](https://togithub.com/sanity-io/sanity/commit/86fa23e54) Bjørge Næss | fix(form-builder): show presence for readOnly fields | [`608f504`](https://togithub.com/sanity-io/sanity/commit/608f504c6) Bjørge Næss | fix(base): add proper support for disabling IntentLinks | [`8744404`](https://togithub.com/sanity-io/sanity/commit/874440427) Bjørge Næss | fix(imagetool): avoid calling callbacks when read only | [`95a68e5`](https://togithub.com/sanity-io/sanity/commit/95a68e5e1) Marius Lundgård | feat(base): improve theming of read-only and placeholder in inputs | [`ea6e2a5`](https://togithub.com/sanity-io/sanity/commit/ea6e2a541) Bjørge Næss | fix(form-builder): hide item drag handle on read-only array of primitives | [`6e84e41`](https://togithub.com/sanity-io/sanity/commit/6e84e4189) Bjørge Næss | fix(form-builder): disable placeholder for reference inputs in read-only mode | [`c3d1fc7`](https://togithub.com/sanity-io/sanity/commit/c3d1fc767) Bjørge Næss | fix(color-input): disable create button when in readOnly mode | [`c761aee`](https://togithub.com/sanity-io/sanity/commit/c761aee23) Bjørge Næss | fix(form-builder): make text field readOnly instead of disabled for readOnly date inputs | [`c8313f1`](https://togithub.com/sanity-io/sanity/commit/c8313f10e) Bjørge Næss | fix(form-builder): show header on read-only array item dialogs for types without a title | [`5543a7b`](https://togithub.com/sanity-io/sanity/commit/5543a7b63) Bjørge Næss | fix(form-builder): use readOnly instead of disabled state for checkboxes in readOnly options array | [`257f91b`](https://togithub.com/sanity-io/sanity/commit/257f91b40) Bjørge Næss | fix(google-maps-input): hide edit/delete buttons when readOnly | [`9bdc7ef`](https://togithub.com/sanity-io/sanity/commit/9bdc7efd5) Bjørge Næss | fix(imagetool): disable cursor + hover effect when readOnly | [`1faa01d`](https://togithub.com/sanity-io/sanity/commit/1faa01dc0) Bjørge Næss | build(base): enable opt-in strict mode | [`f8910bf`](https://togithub.com/sanity-io/sanity/commit/f8910bf40) Bjørge Næss | refactor(base): refactor/clean up user-store | [`8f78f21`](https://togithub.com/sanity-io/sanity/commit/8f78f2174) Bjørge Næss | refactor: move to userStore.me internally | [`2d8bd74`](https://togithub.com/sanity-io/sanity/commit/2d8bd7497) Dain Cilke | fix(default-layout): protect against undefined state tool | [`9226e75`](https://togithub.com/sanity-io/sanity/commit/9226e7507) Marius Lundgård | build: update dependencies | [`adce009`](https://togithub.com/sanity-io/sanity/commit/adce009ec) Marius Lundgård | feat(base): add `skeleton` colors to theme | [`4a47133`](https://togithub.com/sanity-io/sanity/commit/4a4713383) Bjørge Næss | chore(base): add project reference to initial-value-templates | [`adbac3b`](https://togithub.com/sanity-io/sanity/commit/adbac3b9d) Bjørge Næss | chore: disable import/no-unresolved for typescript files | [`d39de13`](https://togithub.com/sanity-io/sanity/commit/d39de1327) Bjørge Næss | chore(base): fix typescript compile errors | [`caaceb7`](https://togithub.com/sanity-io/sanity/commit/caaceb76a) Bjørge Næss | chore: replace use-observable et al with react-rx | [`5cae932`](https://togithub.com/sanity-io/sanity/commit/5cae93243) Bjørge Næss | feat(base): add support for sticky debug params | [`c2e09c1`](https://togithub.com/sanity-io/sanity/commit/c2e09c166) Bjørge Næss | feat(base): support roles array for current user | [`61247bc`](https://togithub.com/sanity-io/sanity/commit/61247bcb9) Bjørge Næss | feat(initial-value-templates): export resolveInitialValueForType | [`ed5f943`](https://togithub.com/sanity-io/sanity/commit/ed5f943ab) Bjørge Næss | feat(base): add datastore and support hooks for grants | [`ec45156`](https://togithub.com/sanity-io/sanity/commit/ec451563a) Bjørge Næss | feat(default-login): use API vX (for now) | [`d318a1c`](https://togithub.com/sanity-io/sanity/commit/d318a1cee) Bjørge Næss | feat(desk-tool): consider permissions in default document actions | [`2b04f50`](https://togithub.com/sanity-io/sanity/commit/2b04f5068) Bjørge Næss | feat(base): add shared insufficient permissions message component | [`88626f2`](https://togithub.com/sanity-io/sanity/commit/88626f2f4) Bjørge Næss | fix(desk-tool): fix visual glitch in publish button tooltip | [`a505dee`](https://togithub.com/sanity-io/sanity/commit/a505dee33) Bjørge Næss | feat(base): consider permissions in global create document dialog | [`13c9aa8`](https://togithub.com/sanity-io/sanity/commit/13c9aa8a7) Bjørge Næss | feat(desk-tool): add permission check banner to document panel | [`afe267c`](https://togithub.com/sanity-io/sanity/commit/afe267c5c) Bjørge Næss | feat(base): add basic permission check to default pane menu | [`8680eea`](https://togithub.com/sanity-io/sanity/commit/8680eea9b) Bjørge Næss | fix(desk-tool): improve tooltip rendering of statusbar menus | [`7c9c601`](https://togithub.com/sanity-io/sanity/commit/7c9c60198) Bjørge Næss | feat(field): toggle revert buttons based on current user permissions | [`fca4900`](https://togithub.com/sanity-io/sanity/commit/fca490027) Bjørge Næss | feat: disable global create button if user can't create any documents | [`dcea216`](https://togithub.com/sanity-io/sanity/commit/dcea2161c) Bjørge Næss | fix(base): work around issues with circular imports causing errors | [`e8a833c`](https://togithub.com/sanity-io/sanity/commit/e8a833cee) Bjørge Næss | fix(form-builder): workaround circular require issues | [`8fdc708`](https://togithub.com/sanity-io/sanity/commit/8fdc7086a) Rico Kahler | refactor(base): update to new acl endpoint | [`5280c51`](https://togithub.com/sanity-io/sanity/commit/5280c5193) Rico Kahler | test: add wildcard to cy.intercept | [`f91e788`](https://togithub.com/sanity-io/sanity/commit/f91e788f0) Rico Kahler | chore: remove vX client | [`cd36d3c`](https://togithub.com/sanity-io/sanity/commit/cd36d3ce1) Bjørge Næss | fix(base): add tag to acl request | [`36b5f57`](https://togithub.com/sanity-io/sanity/commit/36b5f5775) ### [`v2.10.5`](https://togithub.com/sanity-io/sanity/releases/v2.10.5) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.10.2...v2.10.5) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Fixes issue where dates might show incorrect value when reviewing changes if date format was customized - Fixes issue where CLI might use `.env.production` instead of `.env.development` when running `sanity start`, `sanity exec` and similar ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Espen Hovlandsdal | feat: add support for tagged requests ([#2501](https://togithub.com/sanity-io/sanity/issues/2501)) | [`de18d61`](https://togithub.com/sanity-io/sanity/commit/de18d612c) Bjørge Næss | fix: fix moment/date-fns parse error in diff component | [`1cc1c6a`](https://togithub.com/sanity-io/sanity/commit/1cc1c6a9a) Espen Hovlandsdal | fix(cli): unset NODE_ENV for CLI bundle (don't assume production) ([#2502](https://togithub.com/sanity-io/sanity/issues/2502)) | [`308543d`](https://togithub.com/sanity-io/sanity/commit/308543d82) ### [`v2.10.2`](https://togithub.com/sanity-io/sanity/releases/v2.10.2) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.10.0...v2.10.2) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ### 🐛 Notable bugfixes - Reduces the size of mutations when editing documents in the Studio - Fixes a bug that caused out of bounds values for hotspot/crop to be saved to the data store ### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Magnus Holm | perf(mutator): remove duplicated createIfNotExists | [`4e2150f`](https://togithub.com/sanity-io/sanity/commit/4e2150f19d) Bjørge Næss | fix(imagetool): pass final value to onChangeEnd | [`e02116a`](https://togithub.com/sanity-io/sanity/commit/e02116a63b) Bjørge Næss | fix(form-builder): use final value from onChangeEnd | [`4eb35ee`](https://togithub.com/sanity-io/sanity/commit/4eb35ee49a) Bjørge Næss | fix(imagetool): normalize crop before emitting onChangeEnd | [`4f080b5`](https://togithub.com/sanity-io/sanity/commit/4f080b5ee9) ### [`v2.10.0`](https://togithub.com/sanity-io/sanity/releases/v2.10.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.9.1...v2.10.0) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### ✨ Highlights ##### Initial values for any type This upgrade extends support for [*initial values*](https://www.sanity.io/docs/initial-value-templates) to any field, not just the document type. You can now set initial values on a field that's shared between schema types. It also allows for initial values for fields inside of arrays and the Portable Text editor, which has been a frequent request. Initial values still supports promises if you need to set values from external data sources. [Go to the docs to learn how you can configure initial values.](https://www.sanity.io/docs/initial-value-templates) ![initial-values-2021-04-28](https://user-images.githubusercontent.com/876086/116404523-007c2f80-a82f-11eb-883f-87d22c666750.gif) ##### 🐛 Notable bugfixes - Fixes a few performance regressions in the array input - Fixes an issue where the "revert changes"-dialog confirmation would sometimes be hidden behind the form dialog ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Marius Lundgård | fix(field): fix z-index issues of tooltip and revert dialog ([#2449](https://togithub.com/sanity-io/sanity/issues/2449)) | [`ba32ea1`](https://togithub.com/sanity-io/sanity/commit/ba32ea113) Marius Lundgård | build(examples): update `@sanity/ui` | [`abf6417`](https://togithub.com/sanity-io/sanity/commit/abf64172d) Bjørge Næss | perf(form-builder): move array presence and markers filtering to array item component and memoize | [`2b63c91`](https://togithub.com/sanity-io/sanity/commit/2b63c91f8) Bjørge Næss | perf(base): memoize change indicator paths | [`7a2ffa6`](https://togithub.com/sanity-io/sanity/commit/7a2ffa668) Bjørge Næss | perf(form-builder): memoize fileTarget event handlers | [`bc7d122`](https://togithub.com/sanity-io/sanity/commit/bc7d1228f) Marius Lundgård | build: update `@sanity/color` dependency ([#2452](https://togithub.com/sanity-io/sanity/issues/2452)) | [`5f8977d`](https://togithub.com/sanity-io/sanity/commit/5f8977d99) Bjørge Næss | refactor: move a few shared utilities form form-builder to util package | [`a391a1c`](https://togithub.com/sanity-io/sanity/commit/a391a1c13) Bjørge Næss | refactor(form-builder): inject ArrayFunctions as prop instead of importing | [`828fc45`](https://togithub.com/sanity-io/sanity/commit/828fc4587) Bjørge Næss | chore(desk-tool): fix lint errors | [`7bce53c`](https://togithub.com/sanity-io/sanity/commit/7bce53c81) Bjørge Næss | feat(types): add isArraySchemaType asserter | [`ea7446a`](https://togithub.com/sanity-io/sanity/commit/ea7446ac7) Bjørge Næss | feat(types): add initialValue type property | [`5394961`](https://togithub.com/sanity-io/sanity/commit/539496197) Bjørge Næss | fix(types): add options property to BaseSchemaType | [`7978946`](https://togithub.com/sanity-io/sanity/commit/7978946a5) Bjørge Næss | chore(eslint): add .snap files to eslintignore | [`57b4ed8`](https://togithub.com/sanity-io/sanity/commit/57b4ed8a3) Bjørge Næss | chore(test-studio): add a document type for testing initial values | [`95a122b`](https://togithub.com/sanity-io/sanity/commit/95a122bf1) Espen Hovlandsdal | feat(schema): add initialValue as overridable schema property | [`63d090e`](https://togithub.com/sanity-io/sanity/commit/63d090e30) Rex Isaac Raphael | feat(schema): allow objects with initial values | [`041913b`](https://togithub.com/sanity-io/sanity/commit/041913b54) Rex Isaac Raphael | fix(schema): fix lint errors | [`0717b58`](https://togithub.com/sanity-io/sanity/commit/0717b5838) Bjørge Næss | feat: add support for defining initial values for all schema types | [`28593a0`](https://togithub.com/sanity-io/sanity/commit/28593a003) Bjørge Næss | fix(initial-value-templates): comment out check for \_type | [`96416de`](https://togithub.com/sanity-io/sanity/commit/96416ded6) Bjørge Næss | feat(form-builder): add support for resolving initial values in array input | [`959bdb4`](https://togithub.com/sanity-io/sanity/commit/959bdb414) Bjørge Næss | feat(form-builder): add support for initial values in portable text editor | [`1bd6332`](https://togithub.com/sanity-io/sanity/commit/1bd633283) Bjørge Næss | chore(test-studio): add an example of initial value on type referenced by name | [`b0e9aa2`](https://togithub.com/sanity-io/sanity/commit/b0e9aa2ef) ### [`v2.9.1`](https://togithub.com/sanity-io/sanity/releases/v2.9.1) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.9.0...v2.9.1) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes This release reverts the `v2.9.0` studio search update due to an unexpected issue in studios with complex schemas. We are working on a fix and hope to reintroduce the change soon. ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Bjørge Næss | Revert "feat(search): apply pt::text() when searching portable text fields" | [`c02ba5e`](https://togithub.com/sanity-io/sanity/commit/c02ba5e04) ### [`v2.9.0`](https://togithub.com/sanity-io/sanity/releases/v2.9.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.8.1...v2.9.0) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ### ✨ Highlights #### Improved studio search The Sanity Studio search now supports searching [Portable Text](https://togithub.com/portabletext/portabletext) fields by using the recently introduced [`pt::text()`](https://www.sanity.io/docs/groq-functions#1467558a0339) GROQ function. #### Improved image fields The image fields has seen a number of bugfixes and now properly display presence and change indicators, including for hotspot/crop fields and other image fields that opens in dialogs. #### Sanity UI powered reference input The default reference input in Sanity Studio has been refactored to use the `Autocomplete` component from [Sanity UI](https://sanity.io/ui) which improves overall accessibility and fixes keyboard navigation bugs. ##### Other features - The language filter can now be configured with an array of document types to control which schemas the filter will appear on (thanks [@spacedawwg](https://togithub.com/spacedawwg)!). ### 🐛 Notable bugfixes - Fixes false positive with image fields in dialogs, indicating that there's a change when there is none - The code input now wraps text inside the input so that all the code is visible without having to scroll horizontally (thanks [@katherinepeterson](https://togithub.com/katherinepeterson)!) ### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Bjørge Næss | chore: update pull request template | [`53ddb27`](https://togithub.com/sanity-io/sanity/commit/53ddb27e2) Espen Hovlandsdal | feat(search): apply pt::text() when searching portable text fields | [`ba30e92`](https://togithub.com/sanity-io/sanity/commit/ba30e9270) Bjørge Næss | fix(form-builder): skip href for disabled intent buttons | [`3f33244`](https://togithub.com/sanity-io/sanity/commit/3f3324418) Bjørge Næss | fix(form-builder): navigate intentlink / button using router (pushstate) rather than regular page navigation | [`716499d`](https://togithub.com/sanity-io/sanity/commit/716499d2a) Bjørge Næss | chore(test-studio): add example of reference fields with async and invalid filters | [`a4af37a`](https://togithub.com/sanity-io/sanity/commit/a4af37aa7) Bjørge Næss | chore: upgrade [@sanity/ui](https://togithub.com/sanity/ui) | [`89b0bc9`](https://togithub.com/sanity-io/sanity/commit/89b0bc988) Bjørge Næss | refactor(form-builder): migrate reference input to use Sanity UI | [`43a192b`](https://togithub.com/sanity-io/sanity/commit/43a192b30) Bjørge Næss | fix(form-builder): make change indicator for reference input managed | [`f596e10`](https://togithub.com/sanity-io/sanity/commit/f596e109c) Marius Lundgård | refactor(form-builder): visually adjust ReferenceInput | [`7b052df`](https://togithub.com/sanity-io/sanity/commit/7b052dfe0) katherinepeterson | fix(code-input): wrap text inside code input | [`717becf`](https://togithub.com/sanity-io/sanity/commit/717becfc7) Paul Welsh | feat(language-filter): add documentTypes option | [`58df909`](https://togithub.com/sanity-io/sanity/commit/58df909b1) Bjørge Næss | fix(base): add transaction-collator path reference | [`9c9fe9b`](https://togithub.com/sanity-io/sanity/commit/9c9fe9b2a) Bjørge Næss | chore(imagetool): partially migrate imagetool to ts | [`cc05414`](https://togithub.com/sanity-io/sanity/commit/cc0541453) Bjørge Næss | fix(imagetool): export type definitions for constants | [`9dfc1f8`](https://togithub.com/sanity-io/sanity/commit/9dfc1f87e) Bjørge Næss | fix(types): make \_type on hotspot/crop optional | [`98e6133`](https://togithub.com/sanity-io/sanity/commit/98e6133f8) Bjørge Næss | refactor(form-builder): hoist checkerboard component | [`57a61aa`](https://togithub.com/sanity-io/sanity/commit/57a61aac4) Bjørge Næss | refactor(form-builder): move focus ring utils/hoc to components | [`796e5f0`](https://togithub.com/sanity-io/sanity/commit/796e5f01b) Bjørge Næss | refactor(form-builder): extract RatioBox to a reusable component | [`afad1b8`](https://togithub.com/sanity-io/sanity/commit/afad1b84b) Bjørge Næss | feat(base): add a variant of change indicator for relative paths with passed isChanged value | [`1d7c1ae`](https://togithub.com/sanity-io/sanity/commit/1d7c1ae3b) Bjørge Næss | fix(schema): add custom fields after asset + hotspot crop | [`3e450cd`](https://togithub.com/sanity-io/sanity/commit/3e450cd75) Bjørge Næss | fix(form-builder): support presence & support deep linking for image tool and pass compareValue to dialog | [`81e39e7`](https://togithub.com/sanity-io/sanity/commit/81e39e7d0) Bjørge Næss | refactor(form-builder): migrate ImageToolInput to Sanity UI | [`3864408`](https://togithub.com/sanity-io/sanity/commit/38644082f) Bjørge Næss | fix(form-builder): show presence for users at fields behind dialogs at image field | [`eeaea31`](https://togithub.com/sanity-io/sanity/commit/eeaea3140) Bjørge Næss | fix(form-builder): show change indicator on image when any of the dialog field has changed | [`184eadf`](https://togithub.com/sanity-io/sanity/commit/184eadf52) Bjørge Næss | fix(form-builder): prevent Sanity UI autofocus behavior for image input dialog | [`009ce54`](https://togithub.com/sanity-io/sanity/commit/009ce5409) Bjørge Næss | fix(base): strip semicolon when tokenizing search terms | [`1a40da9`](https://togithub.com/sanity-io/sanity/commit/1a40da9ef) Marius Lundgård | build(base): add missing `@juggle/resize-observer` dependency | [`a0b17e1`](https://togithub.com/sanity-io/sanity/commit/a0b17e148) Marius Lundgård | fix(form-builder): remove BoundaryElementProvider in dialogs | [`8d663a7`](https://togithub.com/sanity-io/sanity/commit/8d663a712) ### [`v2.8.1`](https://togithub.com/sanity-io/sanity/releases/v2.8.1) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.8.0...v2.8.1) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Fixes a bug that accidentally permitted referencing drafts ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Bjørge Næss | fix(base): fix regression causing drafts to be included as results in reference search ([#2441](https://togithub.com/sanity-io/sanity/issues/2441)) | [`02bd577`](https://togithub.com/sanity-io/sanity/commit/02bd57728) ### [`v2.8.0`](https://togithub.com/sanity-io/sanity/releases/v2.8.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.7.4...v2.8.0) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### ✨ Highlights ##### Improved Sanity UI based array inputs We have refactored the default inputs used for array types in the Sanity Studio to [Sanity UI](https://www.sanity.io/ui). As an added bonus, the array inputs now supports keyboard reordering by pressing space followed by arrow keys when the drag handle has focus. ##### 🐛 Notable bugfixes - Fixes issue where the validation list got hidden behind the fullscreen Portable Text Editor ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Espen Hovlandsdal | fix(default-login): render passed children for CorsCheck component | [`c0f29fa`](https://togithub.com/sanity-io/sanity/commit/c0f29fa543) Knut Melvær | chore(client): fix link and add clarification about getDocuments | [`6c57bfd`](https://togithub.com/sanity-io/sanity/commit/6c57bfd14e) Espen Hovlandsdal | refactor(base): transition search utilities to typescript | [`8cd5788`](https://togithub.com/sanity-io/sanity/commit/8cd5788f02) Bjørge Næss | fix: use portal for validation menu ([#2425](https://togithub.com/sanity-io/sanity/issues/2425)) | [`4e99c34`](https://togithub.com/sanity-io/sanity/commit/4e99c346d4) Bjørge Næss | test(form-builder): restore test script | [`438137c`](https://togithub.com/sanity-io/sanity/commit/438137c367) Bjørge Næss | test(form-builder): update test file pattern regex | [`8a3ce7a`](https://togithub.com/sanity-io/sanity/commit/8a3ce7ae28) Bjørge Næss | refactor(form-builder): migrate default asset source to Sanity UI | [`d12ad80`](https://togithub.com/sanity-io/sanity/commit/d12ad8030b) Bjørge Næss | chore(form-builder): use strict mode for transitional components | [`1902832`](https://togithub.com/sanity-io/sanity/commit/1902832191) Bjørge Næss | chore: add css files to eslint ignore pattern | [`a04d0f7`](https://togithub.com/sanity-io/sanity/commit/a04d0f76e8) Bjørge Næss | chore: fix lint errors | [`bcc7b10`](https://togithub.com/sanity-io/sanity/commit/bcc7b1052f) Marius Lundgård | feat(form-builder) add TagInput | [`03d4a03`](https://togithub.com/sanity-io/sanity/commit/03d4a03a26) Bjørge Næss | perf(form-builder): avoid the use of nested ::placeholder selector in TagInput | [`ed14734`](https://togithub.com/sanity-io/sanity/commit/ed147342b6) Marius Lundgård | feat(form-builder): add default placeholder to TagInput | [`eb3062f`](https://togithub.com/sanity-io/sanity/commit/eb3062fbe9) Marius Lundgård | fix(form-builder): disable TagInput when in read-only mode | [`7828c61`](https://togithub.com/sanity-io/sanity/commit/7828c6102e) Bjørge Næss | refactor(form-builder): migrate Details component to Sanity UI | [`08bd4fe`](https://togithub.com/sanity-io/sanity/commit/08bd4fec4b) Bjørge Næss | refactor(form-builder): initial migration of different variations of array inputs to Sanity UI | [`884f576`](https://togithub.com/sanity-io/sanity/commit/884f576f86) Benedicte Emilie Brækken | fix(form-builder) adjust presence margins in array of primitives | [`e5d8770`](https://togithub.com/sanity-io/sanity/commit/e5d8770ddb) Bjørge Næss | fix(form-builder) hide validation tooltip if empty markers | [`6a938e1`](https://togithub.com/sanity-io/sanity/commit/6a938e1329) Bjørge Næss | fix(form-builder) Fix rendering of array of predefined items with legacy format | [`3b13ff9`](https://togithub.com/sanity-io/sanity/commit/3b13ff984a) Bjørge Næss | chore(form-builder) lint: fix unused type variable | [`cb88f61`](https://togithub.com/sanity-io/sanity/commit/cb88f61de7) Marius Lundgård | refactor(form-builder): increase padding and improve button labels of ArrayInput | [`c855506`](https://togithub.com/sanity-io/sanity/commit/c8555068b6) Marius Lundgård | feat(form-builder): improve ArrayOfPrimitivesInput | [`f617ff2`](https://togithub.com/sanity-io/sanity/commit/f617ff217c) Marius Lundgård | test(examples): add example of validation of string as primitive array item | [`50fffb9`](https://togithub.com/sanity-io/sanity/commit/50fffb9ed6) Marius Lundgård | refactor(form-builder): adjust padding of primitive array items | [`5218279`](https://togithub.com/sanity-io/sanity/commit/5218279d70) Bjørge Næss | refactor(form-builder) port scroll fixes from main release line | [`cd080ec`](https://togithub.com/sanity-io/sanity/commit/cd080ec21f) Bjørge Næss | fix(form-builder): hide validation status when no validation items | [`2e8ef33`](https://togithub.com/sanity-io/sanity/commit/2e8ef3390c) Bjørge Næss | fix(form-builder): don't hide validation errors for array items when readonly | [`731f00e`](https://togithub.com/sanity-io/sanity/commit/731f00e027) Bjørge Næss | chore(form-builder): cleanup comments and unused code | [`32cb01b`](https://togithub.com/sanity-io/sanity/commit/32cb01bca9) Bjørge Næss | fix(form-builder): remove box-shadow around moved array items | [`05fd9af`](https://togithub.com/sanity-io/sanity/commit/05fd9af7b8) Marius Lundgård | refactor(form-builder): adjust spacing and fix lint warnings | [`676976c`](https://togithub.com/sanity-io/sanity/commit/676976c9e8) Marius Lundgård | chore(form-builder): disable `import/no-unresolved` in TS file | [`99beb7e`](https://togithub.com/sanity-io/sanity/commit/99beb7ec32) Marius Lundgård | refactor(form-builder): add boundary element provider and deprecate EditItemFold | [`7edf026`](https://togithub.com/sanity-io/sanity/commit/7edf026239) Marius Lundgård | refactor(form-builder): add trash icon to confirm delete button | [`2a61514`](https://togithub.com/sanity-io/sanity/commit/2a61514ba1) Marius Lundgård | refactor(form-builder): adjust spacing and add comments to array grid item | [`a69631c`](https://togithub.com/sanity-io/sanity/commit/a69631c918) Marius Lundgård | perf(form-builder): use memoization to prevent unecessary rerendering | [`9533ebb`](https://togithub.com/sanity-io/sanity/commit/9533ebb8ce) Marius Lundgård | refactor(form-builder): adjust border radius of array items | [`63782f8`](https://togithub.com/sanity-io/sanity/commit/63782f869a) Bjørge Næss | fix(form-builder): fix issue where change indicators on primitive array inputs are displayed even when there are no changes | [`6331622`](https://togithub.com/sanity-io/sanity/commit/633162202f) Bjørge Næss | fix(form-builder): use index as item key instead of type name in "add array item meny button" | [`4df8491`](https://togithub.com/sanity-io/sanity/commit/4df84912c6) Bjørge Næss | fix(form-builder): don't absolute position edit dialogs for array items | [`ccbea93`](https://togithub.com/sanity-io/sanity/commit/ccbea934de) Bjørge Næss | fix: add an offset to FormFieldSet focus ring | [`a768eaf`](https://togithub.com/sanity-io/sanity/commit/a768eaf261) Bjørge Næss | chore: upgrade [@sanity/ui](https://togithub.com/sanity/ui) | [`39e0dab`](https://togithub.com/sanity-io/sanity/commit/39e0dab683) Bjørge Næss | chore(test-studio): add some more test-fields to reference tests | [`df0afae`](https://togithub.com/sanity-io/sanity/commit/df0afaeb6a) Bjørge Næss | fix(client): add missing 'visibility' property on mutation event type | [`1a22c92`](https://togithub.com/sanity-io/sanity/commit/1a22c924d7) Bjørge Næss | chore(form-builder): fix minor TS issue | [`9891a95`](https://togithub.com/sanity-io/sanity/commit/9891a95ee1) Bjørge Næss | fix(form-builder): remove empty value on array item dialog close | [`714b1f3`](https://togithub.com/sanity-io/sanity/commit/714b1f3fe2) Bjørge Næss | chore(server): remove normalize.css from webpack entries | [`0930ac2`](https://togithub.com/sanity-io/sanity/commit/0930ac22f1) Bjørge Næss | chore(form-builder): remove normalize.css workaround from FileInputButton | [`19ebbc1`](https://togithub.com/sanity-io/sanity/commit/19ebbc1cdd) Bjørge Næss | chore(storybook): remove normalize.css | [`5b3522e`](https://togithub.com/sanity-io/sanity/commit/5b3522e9c0Configuration
📅 Schedule: "before 3am on the first day of the month" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by WhiteSource Renovate. View repository job log here.