sanity-io / sanity-template-gatsby-blog

A Sanity powered Gatsby blog for https://www.sanity.io/create
https://www.sanity.io/create?template=sanity-io/sanity-template-gatsby-blog
98 stars 34 forks source link

chore(deps): update dependency @sanity/cli to v2.25.0 #161

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sanity/cli (source) 2.10.0 -> 2.25.0 age adoption passing confidence

Release Notes

sanity-io/sanity ### [`v2.25.0`](https://togithub.com/sanity-io/sanity/releases/v2.25.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.24.1...v2.25.0) Upgrade the Command Line Interface (CLI) with: npm install --global @​sanity/cli Upgrade Sanity Studio with: sanity upgrade ### ✨ Highlights #### Maintainance update to the Portable Text Editor This update brings fixes for several bugs and improvements to the Portable Text Editor's performance and reliability. It also includes: - Better keyboard accessibility when editing embedded objects - Better tracking of validation errors within the editor - Better Android and IME support #### Default .eslintrc file when creating new projects with the CLI New projects bootstrapped with the CLI will now contain a default `.eslintrc` that extends our new shared ESLint config [@​sanity/eslint-config-studio](https://togithub.com/sanity/eslint-config-studio). ### 🐛 Notable bugfixes - Fixed an issue where the `mode` parameter for the code input would be incorrectly interpreted (Thanks [Tommy](https://togithub.com/ISnackable) for the PR!) - Fixed an issue where `sanity upgrade` would fail if `@sanity/code-input` was installed. - Fixed an issue where `sanity upgrade`, `sanity versions` and `sanity debug` would fail if running without any dependencies installed. - Removed third party dependency causing security warnings with `npm audit` (`immer.js`) ### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Bjørge Næss | fix(base): make presence store debug use debugparams | [`9583d75`](https://togithub.com/sanity-io/sanity/commit/9583d759e5) Tommy | fix(code-input): ace mode variable is interpreted wrongly ([#​3077](https://togithub.com/sanity-io/sanity/issues/3077)) | [`2522cde`](https://togithub.com/sanity-io/sanity/commit/2522cde042) Bjørge Næss | chore(test-studio): fix lint error | [`dad4c2d`](https://togithub.com/sanity-io/sanity/commit/dad4c2dfb5) Espen Hovlandsdal | fix(core): provide ace globals when mocking browser env | [`3e90892`](https://togithub.com/sanity-io/sanity/commit/3e90892283) Rico Kahler | feat(cli): create .eslintrc when bootstrapping new projects ([#​3055](https://togithub.com/sanity-io/sanity/issues/3055)) | [`822ed41`](https://togithub.com/sanity-io/sanity/commit/822ed4114a) Espen Hovlandsdal | chore: upgrade webpack-hot-middleware | [`19cca36`](https://togithub.com/sanity-io/sanity/commit/19cca369cf) Per-Kristian Nordnes | chore(portable-text-editor): upgrade package versions | [`e7a20f9`](https://togithub.com/sanity-io/sanity/commit/e7a20f98e5) Per-Kristian Nordnes | feat(portable-text-editor): define CustomTypes for slate | [`95014e8`](https://togithub.com/sanity-io/sanity/commit/95014e8f5d) Per-Kristian Nordnes | refactor(portable-text-editor): use new types and determinators | [`2438731`](https://togithub.com/sanity-io/sanity/commit/2438731655) Per-Kristian Nordnes | fix(portable-text-editor): fix selection issues | [`cf302f3`](https://togithub.com/sanity-io/sanity/commit/cf302f3e8a) Per-Kristian Nordnes | feat(portable-text-editor): add new plugin that emits PT selections | [`213db47`](https://togithub.com/sanity-io/sanity/commit/213db4797a) Per-Kristian Nordnes | refactor(portable-text-editor): refactor the Editable component (see list) | [`1e38300`](https://togithub.com/sanity-io/sanity/commit/1e3830017b) Per-Kristian Nordnes | refactor(portable-text-editor): use better typings with toPortableTextRange | [`3694281`](https://togithub.com/sanity-io/sanity/commit/3694281b78) Per-Kristian Nordnes | fix(portable-text-editor): change default listItem value | [`1d98eff`](https://togithub.com/sanity-io/sanity/commit/1d98eff9bc) Per-Kristian Nordnes | fix(portable-text-editor): fix bug with adding marks | [`826267e`](https://togithub.com/sanity-io/sanity/commit/826267e6f2) Per-Kristian Nordnes | refactor(portable-text-editor): don't emit or change editor in pt-list plugin | [`6388eb3`](https://togithub.com/sanity-io/sanity/commit/6388eb3223) Per-Kristian Nordnes | chore(portable-text-editor): remove unused code | [`ac11f26`](https://togithub.com/sanity-io/sanity/commit/ac11f26e5e) Per-Kristian Nordnes | refactor(portable-text-editor): don't emit selections or change editor in patching plugin | [`5a23c01`](https://togithub.com/sanity-io/sanity/commit/5a23c01c8f) Per-Kristian Nordnes | chore(portable-text-editor): remove unused code | [`f7d3cb1`](https://togithub.com/sanity-io/sanity/commit/f7d3cb1f13) Per-Kristian Nordnes | refactor(portable-text-editor): use shared fn to create new block | [`69e6aa9`](https://togithub.com/sanity-io/sanity/commit/69e6aa9266) Per-Kristian Nordnes | feat(portable-text-editor): reset block style on enter | [`abc9f96`](https://togithub.com/sanity-io/sanity/commit/abc9f9632f) Per-Kristian Nordnes | refactor(portable-text-editor): fix issues and remove code from InsertData plugin | [`a88524c`](https://togithub.com/sanity-io/sanity/commit/a88524c379) Per-Kristian Nordnes | refactor(portable-text-editor): fix and clean up clipboard handling | [`851d072`](https://togithub.com/sanity-io/sanity/commit/851d072469) Per-Kristian Nordnes | refactor(portable-text-editor): refactor selection adjustments for unset child | [`6418fc2`](https://togithub.com/sanity-io/sanity/commit/6418fc2649) Per-Kristian Nordnes | refactor(portable-text-editor): move hasEditableTarget util to Editable | [`caa1e00`](https://togithub.com/sanity-io/sanity/commit/caa1e00e47) Per-Kristian Nordnes | test(portable-text-editor): refactor and add component tests for PortableTextEditor | [`5ed1c84`](https://togithub.com/sanity-io/sanity/commit/5ed1c847de) Per-Kristian Nordnes | test(portable-text-editor): update test in regard to new key generator used | [`86ca12f`](https://togithub.com/sanity-io/sanity/commit/86ca12fb7a) Per-Kristian Nordnes | test(portable-text-editor): make collaborative test environment more reliable | [`018b51b`](https://togithub.com/sanity-io/sanity/commit/018b51b2a9) Per-Kristian Nordnes | test(portable-text-editor): add selection adjustment collab test | [`b5467b7`](https://togithub.com/sanity-io/sanity/commit/b5467b7f93) Per-Kristian Nordnes | test(form-builder): streamline container props with other PTE Workshop stories | [`35f1fb1`](https://togithub.com/sanity-io/sanity/commit/35f1fb1754) Per-Kristian Nordnes | refactor(form-builder): refactor wrapping of the PTE components | [`8c32868`](https://togithub.com/sanity-io/sanity/commit/8c32868076) Per-Kristian Nordnes | fix(form-builder): fix Android breakage in PTE | [`702a9d9`](https://togithub.com/sanity-io/sanity/commit/702a9d94b3) Per-Kristian Nordnes | fix(form-builder): fix zIndex issue with VisibleOnFocusButton | [`f1305e4`](https://togithub.com/sanity-io/sanity/commit/f1305e4361) Per-Kristian Nordnes | fix(form-builder): fix several issues causing selection issues in the PTE | [`10aa766`](https://togithub.com/sanity-io/sanity/commit/10aa7668d6) Per-Kristian Nordnes | test(portable-text-edior): increase timeouts as CI struggles with Win testing | [`24dcddd`](https://togithub.com/sanity-io/sanity/commit/24dcdddf18) Per-Kristian Nordnes | fix(portable-text-editor): check for child path before checking for marks | [`1ec2b0f`](https://togithub.com/sanity-io/sanity/commit/1ec2b0f327) Per-Kristian Nordnes | refactor(portable-text-editor): expect empty blocks to have default (first) style | [`1f73940`](https://togithub.com/sanity-io/sanity/commit/1f739400d7) Per-Kristian Nordnes | fix(portable-text-editor): prefer unknown over any type | [`0ca1d41`](https://togithub.com/sanity-io/sanity/commit/0ca1d4135d) Per-Kristian Nordnes | fix(portable-text-editor): always emit the new value | [`aa519e6`](https://togithub.com/sanity-io/sanity/commit/aa519e65e1) Per-Kristian Nordnes | fix(portable-text-editor): make a default selection when focusing | [`7a4bdfb`](https://togithub.com/sanity-io/sanity/commit/7a4bdfb992) Per-Kristian Nordnes | fix(portable-text-editor): enter hotkey: only reset style when in end of line | [`a5130be`](https://togithub.com/sanity-io/sanity/commit/a5130be5d1) Per-Kristian Nordnes | refactor(portable-text-editor): clean up selection adjustment fn | [`feb4f12`](https://togithub.com/sanity-io/sanity/commit/feb4f128a7) Per-Kristian Nordnes | chore(portable-text-editor): add [@​types/node](https://togithub.com/types/node) | [`90896ac`](https://togithub.com/sanity-io/sanity/commit/90896acfd4) Per-Kristian Nordnes | test(portable-text-editor): make a more special test selection | [`75b0a8b`](https://togithub.com/sanity-io/sanity/commit/75b0a8b483) Per-Kristian Nordnes | fix(form-builder): PTE toolbar must respect readOnly | [`5d3a1af`](https://togithub.com/sanity-io/sanity/commit/5d3a1afd7c) Per-Kristian Nordnes | refactor(form-builder): fix and refactor PTE input selection and focus handling | [`2065fe8`](https://togithub.com/sanity-io/sanity/commit/2065fe810d) Per-Kristian Nordnes | test(form-builder): fix focusPath issue with TestInput | [`7835089`](https://togithub.com/sanity-io/sanity/commit/7835089bbd) Per-Kristian Nordnes | fix(form-builder): fix contentEditable issue with TextBlock | [`8ec0485`](https://togithub.com/sanity-io/sanity/commit/8ec0485570) Per-Kristian Nordnes | fix(portable-text-editor): fix broken typings for patchToOperations | [`5b6b6d3`](https://togithub.com/sanity-io/sanity/commit/5b6b6d3873) Per-Kristian Nordnes | refactor(portable-text-editor): change plugin chain ordering | [`c4b3692`](https://togithub.com/sanity-io/sanity/commit/c4b3692f9f) Per-Kristian Nordnes | feature(portable-text-editor): add some convenience methods | [`c4dae64`](https://togithub.com/sanity-io/sanity/commit/c4dae64d41) Per-Kristian Nordnes | refactor(portable-text-editor): remove sel. state and keep object equality | [`328f152`](https://togithub.com/sanity-io/sanity/commit/328f1522d1) Per-Kristian Nordnes | fix(portable-text-editor): fix broken delete fn and add test | [`6e819ab`](https://togithub.com/sanity-io/sanity/commit/6e819ab1a1) Per-Kristian Nordnes | test(portable-text-editor): move tests into own plugin test folder | [`00ba26f`](https://togithub.com/sanity-io/sanity/commit/00ba26fb7f) Per-Kristian Nordnes | test(portable-text-editor): try to lower limits after selection refactor | [`8b0b12c`](https://togithub.com/sanity-io/sanity/commit/8b0b12c1d3) Per-Kristian Nordnes | fix(portable-text-editor): normalize plain text fragment too | [`3ebc72f`](https://togithub.com/sanity-io/sanity/commit/3ebc72f545) Per-Kristian Nordnes | fix(form-builder): pte wrap block extras in own conatiner | [`c38fdf7`](https://togithub.com/sanity-io/sanity/commit/c38fdf7574) Per-Kristian Nordnes | refactor(form-builder): PTE: refactor selection and focus handling | [`124cfdf`](https://togithub.com/sanity-io/sanity/commit/124cfdfc85) Per-Kristian Nordnes | feature(form-builder): PTE make inline objects editable by keyboard | [`8e7d86c`](https://togithub.com/sanity-io/sanity/commit/8e7d86c6c3) Per-Kristian Nordnes | fix(form-builder): PTE make annotation edit toolbar work with keyboard | [`205781c`](https://togithub.com/sanity-io/sanity/commit/205781cc53) Per-Kristian Nordnes | test(form-builder): Tweak PTE Workshop values | [`8da6118`](https://togithub.com/sanity-io/sanity/commit/8da6118f13) Per-Kristian Nordnes | refactor(form-builder): rename files: Input > Compositor | [`e08d26a`](https://togithub.com/sanity-io/sanity/commit/e08d26a700) Per-Kristian Nordnes | refactor(portable-text-editor): don't manipulate focus in EditableAPI | [`79a963c`](https://togithub.com/sanity-io/sanity/commit/79a963cd8f) Per-Kristian Nordnes | fix(form-builder): PTE: fix focus issues when edting modals | [`80948f9`](https://togithub.com/sanity-io/sanity/commit/80948f9344) Per-Kristian Nordnes | docs(form-builder): add some comments for what the hooks are for | [`049857b`](https://togithub.com/sanity-io/sanity/commit/049857b369) Per-Kristian Nordnes | feature(form-builder): add single simple hook to scroll to editor elments when focus from outside | [`51faec3`](https://togithub.com/sanity-io/sanity/commit/51faec3514) Per-Kristian Nordnes | refactor(form-builder): split helper func. into two and export | [`f00dd10`](https://togithub.com/sanity-io/sanity/commit/f00dd10545) Per-Kristian Nordnes | test(test-studio): add validation rules to test schema | [`9b65776`](https://togithub.com/sanity-io/sanity/commit/9b65776d9f) Per-Kristian Nordnes | feature(portable-text-editor): add convenience method: isObjectPath | [`6199c3b`](https://togithub.com/sanity-io/sanity/commit/6199c3bb39) Per-Kristian Nordnes | refactor(form-builder): use path function on PortableTextEditor instead | [`98e5c45`](https://togithub.com/sanity-io/sanity/commit/98e5c4597d) Per-Kristian Nordnes | refactor(form-builder): turn off global spellcheck | [`7a86951`](https://togithub.com/sanity-io/sanity/commit/7a86951290) Per-Kristian Nordnes | feature(form-builder): open modals when double clicking on block/inline objnect | [`1a2dc8a`](https://togithub.com/sanity-io/sanity/commit/1a2dc8a993) Per-Kristian Nordnes | refactor(portable-text-editor): refactor withInsertData plugin | [`7ab5985`](https://togithub.com/sanity-io/sanity/commit/7ab5985df3) Per-Kristian Nordnes | chore(portable-text-editor): remove unused code + update comment | [`3dbf8bb`](https://togithub.com/sanity-io/sanity/commit/3dbf8bb376) Per-Kristian Nordnes | test(portable-text-editor): separate the PortableTextEditorTester com. and tests. | [`f640157`](https://togithub.com/sanity-io/sanity/commit/f6401577cb) Per-Kristian Nordnes | fix(portable-text-editor): call .onChange on all manipulating EditableAPI functions | [`35441f6`](https://togithub.com/sanity-io/sanity/commit/35441f6caf) Per-Kristian Nordnes | feature(form-builder): make easier keyboard access to focused block object | [`99cf8ea`](https://togithub.com/sanity-io/sanity/commit/99cf8eabbd) Per-Kristian Nordnes | fix(form-builder): avoid elm. focus tangling with menu button on BlockObjectPreview | [`eeed45c`](https://togithub.com/sanity-io/sanity/commit/eeed45caec) Per-Kristian Nordnes | refactor(form-builder): remove redundant user-select styles | [`478c005`](https://togithub.com/sanity-io/sanity/commit/478c005738) Per-Kristian Nordnes | fix(form-builder): fix some cross browser issues with object toolbars | [`142a3a6`](https://togithub.com/sanity-io/sanity/commit/142a3a6ff5) Per-Kristian Nordnes | refactor(form-builder): tune focusPath and selection handling | [`2332554`](https://togithub.com/sanity-io/sanity/commit/233255423e) Per-Kristian Nordnes | test(form-builder): add focusPath inspector to workshop story | [`a6c2a7c`](https://togithub.com/sanity-io/sanity/commit/a6c2a7c07b) Per-Kristian Nordnes | refactor(portable-text-editor): clean up loose ends in copy/paste | [`4ce2ec4`](https://togithub.com/sanity-io/sanity/commit/4ce2ec401b) Per-Kristian Nordnes | fix(portable-text-editor): fix bug in isObjectPath determinator fn | [`9e3f6e7`](https://togithub.com/sanity-io/sanity/commit/9e3f6e7c38) Per-Kristian Nordnes | refactor(portable-text-editor): work around introducing breaking change | [`fb0a8cf`](https://togithub.com/sanity-io/sanity/commit/fb0a8cffb3) Per-Kristian Nordnes | refactor(form-builder): add descriptive convenience method | [`15a5e10`](https://togithub.com/sanity-io/sanity/commit/15a5e10027) Per-Kristian Nordnes | refactor(form-builder): fix issues with scroll to focus from outside | [`8a7401a`](https://togithub.com/sanity-io/sanity/commit/8a7401ae0e) Per-Kristian Nordnes | fix(form-builder): only use 'is-needed' for scrollIntoView | [`83a2fcf`](https://togithub.com/sanity-io/sanity/commit/83a2fcf0ba) Per-Kristian Nordnes | fix(portable-text-editor): fix bug in isObjectPath | [`e3cbdfd`](https://togithub.com/sanity-io/sanity/commit/e3cbdfd163) Per-Kristian Nordnes | test(portable-text-editor): add selection adjustment test | [`861c11c`](https://togithub.com/sanity-io/sanity/commit/861c11c9c1) Per-Kristian Nordnes | fix(portable-text-editor): fix bug in object path determinator | [`1054159`](https://togithub.com/sanity-io/sanity/commit/10541594e6) Per-Kristian Nordnes | refactor(portable-text-editor): always emit selection when changed | [`92d1973`](https://togithub.com/sanity-io/sanity/commit/92d1973278) Per-Kristian Nordnes | refactor(portable-text-editor): dirty-check props value | [`a84ad64`](https://togithub.com/sanity-io/sanity/commit/a84ad6445f) Per-Kristian Nordnes | fix(portable-text-editor): change plugin order | [`725fa7e`](https://togithub.com/sanity-io/sanity/commit/725fa7e7d4) Per-Kristian Nordnes | fix(portable-text-editor): call onChange where needed | [`de0ffee`](https://togithub.com/sanity-io/sanity/commit/de0ffeefe3) Per-Kristian Nordnes | refactor(portable-text-editor): refactor / fix issues with selection adjustment | [`471c816`](https://togithub.com/sanity-io/sanity/commit/471c8167af) Per-Kristian Nordnes | test(form-builder): update workshop files | [`268b816`](https://togithub.com/sanity-io/sanity/commit/268b8163ab) Per-Kristian Nordnes | test(form-builder): increase jest timeout on test | [`bc0f56c`](https://togithub.com/sanity-io/sanity/commit/bc0f56cf14) Per-Kristian Nordnes | fix(form-builder): fix reference element issue with popover | [`68a517f`](https://togithub.com/sanity-io/sanity/commit/68a517f84b) Per-Kristian Nordnes | refactor(form-builder): memo useObjectEditData hook result | [`6a20dcd`](https://togithub.com/sanity-io/sanity/commit/6a20dcdf54) Per-Kristian Nordnes | fix(form-builder): fix blur and foucus issue with hooks | [`b53e808`](https://togithub.com/sanity-io/sanity/commit/b53e808c2d) Per-Kristian Nordnes | test(form-builder): increase jest timeout for test | [`2a35113`](https://togithub.com/sanity-io/sanity/commit/2a35113b15) Per-Kristian Nordnes | fix(form-builder): fix issues with popover object editing | [`29db1e6`](https://togithub.com/sanity-io/sanity/commit/29db1e6b0b) Per-Kristian Nordnes | fix(form-builder): fix possible undefined error | [`0206dc5`](https://togithub.com/sanity-io/sanity/commit/0206dc5091) Per-Kristian Nordnes | test(form-builder): update workshop story | [`7401f66`](https://togithub.com/sanity-io/sanity/commit/7401f66a3a) Per-Kristian Nordnes | fix(portable-text-editor): fix bug in onPaste handler | [`39557cd`](https://togithub.com/sanity-io/sanity/commit/39557cd3f7) Per-Kristian Nordnes | fix(form-builder): don't close object edit modal if not top layer | [`3dfa672`](https://togithub.com/sanity-io/sanity/commit/3dfa6724f1) Per-Kristian Nordnes | fix(portable-text-editor): put selection in state to force update context provider | [`be4dded`](https://togithub.com/sanity-io/sanity/commit/be4dded4a5) Per-Kristian Nordnes | refactor(portable-text-editor): rename function and simplify | [`2bab799`](https://togithub.com/sanity-io/sanity/commit/2bab799fa3) Per-Kristian Nordnes | fix(form-builder): fix browser comp. issues with dragging block objects | [`077dfa9`](https://togithub.com/sanity-io/sanity/commit/077dfa9d6e) Per-Kristian Nordnes | fix(form-builder): add cursor css to inline object | [`b14439d`](https://togithub.com/sanity-io/sanity/commit/b14439dcdd) Per-Kristian Nordnes | test(form-builder): add ReviewChangesContextProvider | [`d71d7d2`](https://togithub.com/sanity-io/sanity/commit/d71d7d2293) Per-Kristian Nordnes | fix(portable-text-editor): don't break API signature | [`0fb1c2a`](https://togithub.com/sanity-io/sanity/commit/0fb1c2a0a0) Per-Kristian Nordnes | fix(portable-text-editor): upgrade [@​sanity/slate-react](https://togithub.com/sanity/slate-react) | [`95b8f47`](https://togithub.com/sanity-io/sanity/commit/95b8f47dba) Per-Kristian Nordnes | fix(portable-text-editor): add missing value change emission | [`cd0e54f`](https://togithub.com/sanity-io/sanity/commit/cd0e54f82d) Per-Kristian Nordnes | fix(portable-text-editor): fix issues with dragging selections around | [`fddd1c6`](https://togithub.com/sanity-io/sanity/commit/fddd1c62cd) Per-Kristian Nordnes | fix(portable-text-editor): fix issues with restoring value from props | [`60fc9fb`](https://togithub.com/sanity-io/sanity/commit/60fc9fb382) Per-Kristian Nordnes | refactor(form-builder): remove obsolete hook | [`e93067b`](https://togithub.com/sanity-io/sanity/commit/e93067b46d) Per-Kristian Nordnes | fix(portable-text-editor): emit selection as new object | [`a292cb1`](https://togithub.com/sanity-io/sanity/commit/a292cb1f1e) Per-Kristian Nordnes | feature(portable-text-editor): put basic plainText and HTML on clipboard | [`95494bf`](https://togithub.com/sanity-io/sanity/commit/95494bfa4f) Per-Kristian Nordnes | fix(form-builder): remove obsolete style | [`678015b`](https://togithub.com/sanity-io/sanity/commit/678015b592) Per-Kristian Nordnes | chore(portable-text-editor): upgrade package | [`3e26008`](https://togithub.com/sanity-io/sanity/commit/3e26008bad) Per-Kristian Nordnes | refactor(form-builder): rename callback fn | [`49ad1b9`](https://togithub.com/sanity-io/sanity/commit/49ad1b98bf) Per-Kristian Nordnes | refactor(form-builder): add typings to React ref + optimize cb | [`84df66e`](https://togithub.com/sanity-io/sanity/commit/84df66ecd5) Marius Lundgård | fix(form-builder): make sure dialogs open in full-pane mode | [`5739590`](https://togithub.com/sanity-io/sanity/commit/5739590e19) Per-Kristian Nordnes | test(portable-text-editor): add test for marks normalization | [`a68bc84`](https://togithub.com/sanity-io/sanity/commit/a68bc844ca) Per-Kristian Nordnes | fix(portable-text-editor): fix normalization bug | [`a8918d5`](https://togithub.com/sanity-io/sanity/commit/a8918d5fed) Per-Kristian Nordnes | fix(portable-text-editor): call onChange when new selection from props | [`3132abe`](https://togithub.com/sanity-io/sanity/commit/3132abea65) Per-Kristian Nordnes | refactor(form-builder): change var into global const | [`042a1c2`](https://togithub.com/sanity-io/sanity/commit/042a1c2895) Per-Kristian Nordnes | refactor(form-builder): rename export to match filename | [`596f8fb`](https://togithub.com/sanity-io/sanity/commit/596f8fb875) Per-Kristian Nordnes | chore(portable-text-editor): don't specify types | [`90fd15d`](https://togithub.com/sanity-io/sanity/commit/90fd15d074) Per-Kristian Nordnes | fix(portable-text-editor): remove obsolete typecast | [`c23a540`](https://togithub.com/sanity-io/sanity/commit/c23a540598) Per-Kristian Nordnes | fix(portable-text-editor): add missing useCallback | [`5a8620b`](https://togithub.com/sanity-io/sanity/commit/5a8620bc4d) Per-Kristian Nordnes | test(portable-text-editor): move schema test file to test root | [`c08a5f5`](https://togithub.com/sanity-io/sanity/commit/c08a5f5a93) Per-Kristian Nordnes | fix(portable-text-editor): make void childs draggable only | [`802cca8`](https://togithub.com/sanity-io/sanity/commit/802cca8e21) Per-Kristian Nordnes | fix(form-builder): remove redundant CSS that breaks layout on Webkit | [`809f4fb`](https://togithub.com/sanity-io/sanity/commit/809f4fbbb6) Per-Kristian Nordnes | refactor(portable-text-editor): Implement our own placeholder rendring | [`8f17166`](https://togithub.com/sanity-io/sanity/commit/8f17166aeb) Per-Kristian Nordnes | refactor(form-builder): render our own placeholder element | [`8b535cb`](https://togithub.com/sanity-io/sanity/commit/8b535cbd00) Per-Kristian Nordnes | fix(form-builder): fix styled components syntax | [`3f4a6c7`](https://togithub.com/sanity-io/sanity/commit/3f4a6c7a1f) Per-Kristian Nordnes | chore(portable-text-editor): upgrade packages | [`90f8f3e`](https://togithub.com/sanity-io/sanity/commit/90f8f3ef9d) Per-Kristian Nordnes | test(portable-text-editor): allow for serving over network | [`3d3e9bc`](https://togithub.com/sanity-io/sanity/commit/3d3e9bc9f6) Rico Kahler | fix(desk-tool): prevent stale `actionHandlers` ([#​3081](https://togithub.com/sanity-io/sanity/issues/3081)) | [`ee6021d`](https://togithub.com/sanity-io/sanity/commit/ee6021d0dd) Espen Hovlandsdal | fix(cli): delete react-ace before upgrade if going from 8.x to 9.x | [`91f16be`](https://togithub.com/sanity-io/sanity/commit/91f16be06a) Espen Hovlandsdal | fix(cli): fix crash when running upgrade/debug/versions without dependencies | [`e025d04`](https://togithub.com/sanity-io/sanity/commit/e025d04c30) Espen Hovlandsdal | fix(cli): add missing await | [`3df83a4`](https://togithub.com/sanity-io/sanity/commit/3df83a43df) Bjørge Næss | fix(code-input): fallback to 'text' if unable to resolve language mode in preview | [`e3a8486`](https://togithub.com/sanity-io/sanity/commit/e3a84862db) ### [`v2.24.1`](https://togithub.com/sanity-io/sanity/releases/v2.24.1) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.24.0...v2.24.1) Upgrade the Command Line Interface (CLI) with: npm install --global @​sanity/cli Upgrade Sanity Studio with: sanity upgrade #### New features - Allow loading more syntaxes for the `@sanity/code-input` programmatically, see the [code input README](https://togithub.com/sanity-io/sanity/tree/next/packages/%40sanity/code-input#add-support-for-more-languages) for more details - You can now specify coupon codes when creating a new project using the CLI, by using the `--coupon` flag, eg `sanity init --coupon ` ### 🐛 Notable bugfixes - Fixes bug where initial values would no longer work when inserting in arrays - Fixes a bug that caused some false warnings with duplicate and update permissions ### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Fred Carlsen | fix(form-builder): fix dark mode in FormBuilder workshop | [`0238189`](https://togithub.com/sanity-io/sanity/commit/0238189f0) Bjørge Næss | feat(code-input): upgrade ace and add support for custom modes | [`6121832`](https://togithub.com/sanity-io/sanity/commit/6121832bb) Bjørge Næss | chore(code-input): add example of custom rust language support | [`625c06a`](https://togithub.com/sanity-io/sanity/commit/625c06a17) Bjørge Næss | chore(code-input): remove lodash | [`5caea42`](https://togithub.com/sanity-io/sanity/commit/5caea42c5) Marius Lundgård | build: update `@sanity/ui` | [`0d000dc`](https://togithub.com/sanity-io/sanity/commit/0d000dcf9) Marius Lundgård | build: update `@sanity/ui-workshop` | [`81a3b37`](https://togithub.com/sanity-io/sanity/commit/81a3b3776) shur | feat(cli): allow `--coupon` for sanity init ([#​3061](https://togithub.com/sanity-io/sanity/issues/3061)) | [`22aca18`](https://togithub.com/sanity-io/sanity/commit/22aca18ff) Bjørge Næss | fix(form-builder): fix initial value not resolved when adding array items | [`6c88963`](https://togithub.com/sanity-io/sanity/commit/6c889631b) Rico Kahler | fix(base): fix permissions bugs by fallbacking back to published variant | [`8fbf2e5`](https://togithub.com/sanity-io/sanity/commit/8fbf2e560) Espen Hovlandsdal | fix(cli): disallow --project and --coupon both being used | [`a99ad97`](https://togithub.com/sanity-io/sanity/commit/a99ad9721) Espen Hovlandsdal | fix(cli): give more descriptive error when coupon check fails | [`79d72ce`](https://togithub.com/sanity-io/sanity/commit/79d72ce58) Espen Hovlandsdal | fix(cli): skip project selection when using a coupon | [`b50db53`](https://togithub.com/sanity-io/sanity/commit/b50db53f8) Espen Hovlandsdal | fix(cli): dont require a user to validate coupon | [`e72bf3e`](https://togithub.com/sanity-io/sanity/commit/e72bf3eb1) ### [`v2.24.0`](https://togithub.com/sanity-io/sanity/releases/v2.24.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.23.3...v2.24.0) Upgrade the Command Line Interface (CLI) with: npm install --global @​sanity/cli Upgrade Sanity Studio with: sanity upgrade ### ✨ Highlights #### Field groups Added Field Groups to schemas and document view. Read more about the feature here https://www.sanity.io/docs/field-groups. ![Field groups](https://i.imgur.com/IOLCBUq.png) #### New array item menus Arrays now supports adding new items before/after existing array items, and also duplicating existing items ![New array item menus](https://i.imgur.com/hC7cLPs.png) #### New and improved document status indicator Updated document status indicator with saving state and animation. ![Saving indicator](https://i.imgur.com/Dep0tXq.gif) #### Other features - Added `SANITY_STUDIO_PROJECT_NAME` environment config variable ### 🐛 Notable bugfixes - Fixed an issue that could in some cases cause matching documents to be excluded from the search results - Made the default title of referenced document types more user friendly - Fixes an issue that could occasionally cause a query error during publish of a new document created directly from the reference input - Fixes an issue that caused singleton documents to never load if no schemaType was provided. - Fixes UI issue in Portable Text toolbar ### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- hermanwikner | feat(desk-tool): add updated `ReviewChangesButton` | [`53c3233`](https://togithub.com/sanity-io/sanity/commit/53c32336f) hermanwikner | test(desk-tool): add `ReviewChangesButton` workshop story | [`6335477`](https://togithub.com/sanity-io/sanity/commit/633547746) hermanwikner | feat(desk-tool): add updated `ReviewChangesButton` in `DocumentSparkline` | [`947f71e`](https://togithub.com/sanity-io/sanity/commit/947f71e9c) hermanwikner | chore(desk-tool): add framer-motion dependency | [`a0c85b0`](https://togithub.com/sanity-io/sanity/commit/a0c85b0fa) Herman Wikner | feat(desk-tool): add collapsed state to `PublishStatus` | [`e0640d4`](https://togithub.com/sanity-io/sanity/commit/e0640d43b) Herman Wikner | refactor(desk-tool): remove deprecated `AnimatedSyncIcon` | [`7e0eab2`](https://togithub.com/sanity-io/sanity/commit/7e0eab28d) Espen Hovlandsdal | fix(cli): use correct property when comparing against latest | [`cb6f7a5`](https://togithub.com/sanity-io/sanity/commit/cb6f7a53a) Bjørge Næss | chore(base): improve typings for preview observer | [`4821a5e`](https://togithub.com/sanity-io/sanity/commit/4821a5e16) Bjørge Næss | chore(form-builder): remove unused code and fix typo | [`2dd66ea`](https://togithub.com/sanity-io/sanity/commit/2dd66eaed) Rune Botten | feat(util): add SANITY_STUDIO_PROJECT_NAME env variable ([#​3047](https://togithub.com/sanity-io/sanity/issues/3047)) | [`e347bb6`](https://togithub.com/sanity-io/sanity/commit/e347bb6e8) Bjørge Næss | fix(base): restore default limit for weighted search | [`7abc8c3`](https://togithub.com/sanity-io/sanity/commit/7abc8c315) Bjørge Næss | fix(form-builder): bump number of displayed search results for reference inputs | [`32b4ff2`](https://togithub.com/sanity-io/sanity/commit/32b4ff2cf) Bjørge Næss | chore: upgrade [@​sanity/ui](https://togithub.com/sanity/ui) to 0.37.1 | [`d1611da`](https://togithub.com/sanity-io/sanity/commit/d1611da2e) Bjørge Næss | fix(desk-tool): fix ts error | [`e6ffed2`](https://togithub.com/sanity-io/sanity/commit/e6ffed27f) Victoria Bergquist | feat(form-builder): add field groups ([#​3006](https://togithub.com/sanity-io/sanity/issues/3006)) | [`33ed59e`](https://togithub.com/sanity-io/sanity/commit/33ed59eec) Bjørge Næss | test: upgrade [@​sanity/client](https://togithub.com/sanity/client) used by tests | [`401bb23`](https://togithub.com/sanity-io/sanity/commit/401bb23aa) Bjørge Næss | chore: upgrade depcheck and remove extraneous dependency | [`c4c79ff`](https://togithub.com/sanity-io/sanity/commit/c4c79ff0f) Bjørge Næss | fix(schema): improve default title resolution for references ([#​3049](https://togithub.com/sanity-io/sanity/issues/3049)) | [`680cc9f`](https://togithub.com/sanity-io/sanity/commit/680cc9f85) Herman Wikner | fix(form-builder): fix ui issues in PTE toolbar | [`f35a010`](https://togithub.com/sanity-io/sanity/commit/f35a01003) Bjørge Næss | feat(form-builder): add insert/duplicate menu items for array items | [`b833de8`](https://togithub.com/sanity-io/sanity/commit/b833de8e9) Bjørge Næss | feat(form-builder): add insert menu to array of primitive values | [`c156a41`](https://togithub.com/sanity-io/sanity/commit/c156a4124) Bjørge Næss | fix(form-builder): restore focus/cursor after array change | [`f36bd4a`](https://togithub.com/sanity-io/sanity/commit/f36bd4a7a) Bjørge Næss | refactor(form-builder): make InsertMenu a memo component and use stable callbacks for inserting and duplicating items | [`42275cb`](https://togithub.com/sanity-io/sanity/commit/42275cbf7) Bjørge Næss | chore(form-builder): clarify focus handling when removing an item | [`8fc2b11`](https://togithub.com/sanity-io/sanity/commit/8fc2b11c1) Bjørge Næss | chore(form-builder): remove unused code | [`f73c4f0`](https://togithub.com/sanity-io/sanity/commit/f73c4f04b) Fred Carlsen | fix(form-builder): fix switching to all fields tab in modal on open | [`90bd5f7`](https://togithub.com/sanity-io/sanity/commit/90bd5f716f) Fred Carlsen | fix(form-builder): fix columns support for nested object fields | [`14abb94`](https://togithub.com/sanity-io/sanity/commit/14abb940d2) Bjørge Næss | fix(form-builder): fix autofocus issues | [`3b85af8`](https://togithub.com/sanity-io/sanity/commit/3b85af8f5f) ### [`v2.23.3`](https://togithub.com/sanity-io/sanity/releases/v2.23.3) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.23.2...v2.23.3) Upgrade the Command Line Interface (CLI) with: npm install --global @​sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### ✨ Highlights ##### Changes to `sanity upgrade` `sanity upgrade` now behaves slightly different: 1. It now respects the version ranges and pinned versions declared in your `package.json` 2. Tries not to upgrade non-studio modules such as `@sanity/block-content-to-html` 3. Shows a more prominent message if there are major updates available with a link to the changelog ##### 🐛 Notable bugfixes - Fixes an issue that caused a crash instead of a warning screen when omitting schemaType from `S.documentList()` ([#​3022](https://togithub.com/sanity-io/sanity/issues/3022)) - Fixes an issue that caused singleton documents to never load if no schemaType was provided ([#​3043](https://togithub.com/sanity-io/sanity/issues/3043)) ##### 📓 Full changelog | Author | Message | Commit | | ----------------- | -------------------------------------------------------------------------------- | ---------- | | Rico Kahler | fix(base): prevent crash if type `*` is provided to structure ([#​3022](https://togithub.com/sanity-io/sanity/issues/3022)) | [`976e622`](https://togithub.com/sanity-io/sanity/commit/976e622544) | | Fred Carlsen | fix(cypress): fix flaky e2e test for review changes ([#​3021](https://togithub.com/sanity-io/sanity/issues/3021)) | [`75fbfc1`](https://togithub.com/sanity-io/sanity/commit/75fbfc16af) | | Fred Carlsen | fix(cypress): improve e2e test speed ([#​3027](https://togithub.com/sanity-io/sanity/issues/3027)) | [`3b3dc27`](https://togithub.com/sanity-io/sanity/commit/3b3dc27d22) | | Fred Carlsen | feat(form-builder): add workshop for FormBuilderInput ([#​3012](https://togithub.com/sanity-io/sanity/issues/3012)) | [`490258d`](https://togithub.com/sanity-io/sanity/commit/490258dfc8) | | Bjørge Næss | build(gulpfile): add jsx pattern | [`a5f4410`](https://togithub.com/sanity-io/sanity/commit/a5f4410b24) | | Espen Hovlandsdal | fix: monorepo validator crashing on no dev dependencies | [`bb99977`](https://togithub.com/sanity-io/sanity/commit/bb999777d6) | | Espen Hovlandsdal | chore(cli): upgrade get-latest-version to v3.0.1 | [`1ce1bdc`](https://togithub.com/sanity-io/sanity/commit/1ce1bdc96b) | | Espen Hovlandsdal | feat(cli): respect specified ranges when upgrading | [`86a285d`](https://togithub.com/sanity-io/sanity/commit/86a285dbc7) | | Bjørge Næss | fix(form-builder): add prop for passing item component to array of objects input | [`abcde02`](https://togithub.com/sanity-io/sanity/commit/abcde02b1a) | | Rico Kahler | feat(desk-tool): experimental `__preserveInstance` prop ([#​3042](https://togithub.com/sanity-io/sanity/issues/3042)) | [`e92d804`](https://togithub.com/sanity-io/sanity/commit/e92d8049d1) | | Rico Kahler | fix(desk-tool): fix issue with singletons with no type not loading ([#​3043](https://togithub.com/sanity-io/sanity/issues/3043)) | [`2915cfa`](https://togithub.com/sanity-io/sanity/commit/2915cfa1b5) | ### [`v2.23.2`](https://togithub.com/sanity-io/sanity/releases/v2.23.2) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.23.1...v2.23.2) Upgrade the Command Line Interface (CLI) with: npm install --global @​sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Fixes a bug that caused focus loss on an array item after closing the edit dialog - Fixes a bug that caused popovers from closing when clicking outside of the current pane content - Fixes an issue that could cause a max request size exceeded error for documents that had many references. - Fixes a bug that could sometimes cause document preview for object fields with name "title" to crash on reload - Added more details in docs for the `client.delete()` API ##### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Marius Lundgård | fix(form-builder): wrap `editObjectNode` with the correct boundary element | [`22aa2f0`](https://togithub.com/sanity-io/sanity/commit/22aa2f043e) Marius Lundgård | fix(form-builder): do not close edit dialogs on click-outside (PTE) | [`139aabf`](https://togithub.com/sanity-io/sanity/commit/139aabf8df) Marius Lundgård | fix(form-builder): pass boundary element to `useClickOutside` in popovers (PTE) | [`6abecc7`](https://togithub.com/sanity-io/sanity/commit/6abecc74e4) Geoff Ball | docs(client): update client.delete API | [`99e82df`](https://togithub.com/sanity-io/sanity/commit/99e82df8c2) Bjørge Næss | fix(form-builder): don't fallback to raw value in preview subscriber | [`985a5ee`](https://togithub.com/sanity-io/sanity/commit/985a5eee4a) Bjørge Næss | chore(form-builder): add ts support for FormBuilderInput | [`351251f`](https://togithub.com/sanity-io/sanity/commit/351251fc4a) Bjørge Næss | chore(form-builder): keep array item focus in sync with focusPath | [`4f1cf8c`](https://togithub.com/sanity-io/sanity/commit/4f1cf8cc26) Bjørge Næss | fix(base): uniq and chunk availability requests | [`9b3f6fc`](https://togithub.com/sanity-io/sanity/commit/9b3f6fc19e) ### [`v2.23.1`](https://togithub.com/sanity-io/sanity/releases/v2.23.1) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.23.0...v2.23.1) Upgrade the Command Line Interface (CLI) with: npm install --global @​sanity/cli Upgrade Sanity Studio with: sanity upgrade ### 🐛 Notable bugfixes - Fixes an issue where previews of a reference to a document with a field named `'title'` did not display correctly - Fixes a visual error where popover dialogs were appearing beneath other panes ([#​2970](https://togithub.com/sanity-io/sanity/issues/2970)) - Fixes an issue where `'create'` intents set in custom structures would not appear in pane headers ([#​3007](https://togithub.com/sanity-io/sanity/issues/3007)) - Fixes `sanity dataset import` when targeting an `ndjson` file with relative file URLs ([#​2998](https://togithub.com/sanity-io/sanity/issues/2998)) - Fixes a bug preventing `sanity logout` from working in the case of expired sessions ([#​3001](https://togithub.com/sanity-io/sanity/issues/3001)) - Fixes a bug where the CLI would not be able to log a user in if an existing invalid/expired session was present ([#​3002](https://togithub.com/sanity-io/sanity/issues/3002)) #### Other features - Added support for HTTP proxies when using dataset `import`/`export` commands ([#​2999](https://togithub.com/sanity-io/sanity/issues/2999)) - Validation menu button now reflects the highest level of validation ([#​3005](https://togithub.com/sanity-io/sanity/issues/3005)) ### 📓 Full changelog | Author | Message | Commit | | ----------------- | --------------------------------------------------------------------------------------------------- | ---------- | | Espen Hovlandsdal | fix(cli): clear auth token on 401 on logout | [`a659e26`](https://togithub.com/sanity-io/sanity/commit/a659e26e13) | | Espen Hovlandsdal | fix(cli): use authless requests when logging in | [`1c3c406`](https://togithub.com/sanity-io/sanity/commit/1c3c40659a) | | Espen Hovlandsdal | fix(cli): attempt to clear previous session on successful re-authentication | [`f95cbbc`](https://togithub.com/sanity-io/sanity/commit/f95cbbc3bf) | | Espen Hovlandsdal | fix(cli): use stable API version for SAML providers endpoint | [`3aa2893`](https://togithub.com/sanity-io/sanity/commit/3aa289393b) | | Espen Hovlandsdal | feat(cli): use non-legacy yarn v1.22.17 under the hood | [`46ecc53`](https://togithub.com/sanity-io/sanity/commit/46ecc53bb3) | | Espen Hovlandsdal | chore(cli): bump yarn network timeout to 1m | [`21363e2`](https://togithub.com/sanity-io/sanity/commit/21363e2264) | | RitaDias | fix(form-builder, base): fix popper position on popoverDialog ([#​2970](https://togithub.com/sanity-io/sanity/issues/2970)) | [`7fce8cb`](https://togithub.com/sanity-io/sanity/commit/7fce8cb3e7) | | Herman Wikner | test: add `validationCI` schema | [`ac291c8`](https://togithub.com/sanity-io/sanity/commit/ac291c8946) | | Herman Wikner | test(base): add test id:s to `FormFieldValidationStatus` icons | [`6d36590`](https://togithub.com/sanity-io/sanity/commit/6d3659084b) | | Herman Wikner | test(form-builder): add validation test | [`f7515c5`](https://togithub.com/sanity-io/sanity/commit/f7515c514f) | | Bjørge Næss | fix(form-builder): don't pass already "prepared" preview value to preview component | [`6a555a5`](https://togithub.com/sanity-io/sanity/commit/6a555a532a) | | Espen Hovlandsdal | feat(import-cli): switch to get-it for requesting streams | [`99e7afd`](https://togithub.com/sanity-io/sanity/commit/99e7afd94d) | | Espen Hovlandsdal | chore(deps): upgrade get-it to v5.2.1 | [`5226ea8`](https://togithub.com/sanity-io/sanity/commit/5226ea8edc) | | Espen Hovlandsdal | feat(import): use get-it from downloading assets | [`352cfff`](https://togithub.com/sanity-io/sanity/commit/352cfff9ea) | | Espen Hovlandsdal | feat(export): use get-it for requests | [`e420ce7`](https://togithub.com/sanity-io/sanity/commit/e420ce7a18) | | Espen Hovlandsdal | feat(core): use get-it instead of simple-get | [`3bbfaf3`](https://togithub.com/sanity-io/sanity/commit/3bbfaf3a6b) | | Espen Hovlandsdal | feat(cli): use get-it instead of simple-get for plugin init | [`4ad84b0`](https://togithub.com/sanity-io/sanity/commit/4ad84b0d29) | | Espen Hovlandsdal | feat(cli): use get-it for downloading yarn | [`eddb8d3`](https://togithub.com/sanity-io/sanity/commit/eddb8d34c8) | | Espen Hovlandsdal | fix(core): fix file asset urls not working with ndjson target | [`4908874`](https://togithub.com/sanity-io/sanity/commit/4908874ac0) | | Espen Hovlandsdal | fix(import-cli): fix file asset urls not working with ndjson target | [`561daac`](https://togithub.com/sanity-io/sanity/commit/561daac611) | | Rico Kahler | fix(desk-tool): fix create intents not appearing in pane headers ([#​3007](https://togithub.com/sanity-io/sanity/issues/3007)) | [`71db19e`](https://togithub.com/sanity-io/sanity/commit/71db19e1ec) | | Bjørge Næss | fix: pin version of [@​babel/parser](https://togithub.com/babel/parser) due to recent release causing issues with depcheck | [`4bdbc33`](https://togithub.com/sanity-io/sanity/commit/4bdbc33459) | | Herman Wikner | fix(desk-tool): fix issue with overflow tabs indicators in `PaneHeader` | [`f96ba7b`](https://togithub.com/sanity-io/sanity/commit/f96ba7bd9b) | | Herman Wikner | feat(desk-tool): update `ValidationMenu` button so that it reflects the highest level of validation | [`f463885`](https://togithub.com/sanity-io/sanity/commit/f4638853be) | ### [`v2.23.0`](https://togithub.com/sanity-io/sanity/releases/v2.23.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.22.3...v2.23.0) Upgrade the Command Line Interface (CLI) with: npm install --global @​sanity/cli Upgrade Sanity Studio with: sanity upgrade ### ✨ Highlights #### References in place Users can now create a reference to a draft within the context of the referring document. This allows for a smoother workflow where having to leave the document you are working on in order to create and publish the document you wish to refer to is no longer necessary, This new behavior of the reference input can be disabled by setting the property `disableNew: true`. ![](https://i.imgur.com/xRoWQUE.gif) More: - [Reference schema type documentation](https://www.sanity.io/docs/reference-type) - [Connected Content – Introduction to references in Sanity](https://www.sanity.io/docs/connected-content) #### Conditional `readOnly` fields and fieldsets The ability to define if a field is editable based on conditions defined in a schema. #### Info-level validation In addition to being able to provide validation errors, developers can also provide guidance with ℹ️ -symbols to give in-line help to editors. #### New `modal` options in Portable Text editor The Portable Text editor now supports a new `modal` option with a `type` and `width` property. This means you can customize the size of annotation popovers (a much requested feature). ```ts type: 'block', marks: { annotations: [ { type: 'object', name: 'link', title: 'Link', options: { // 👇👇👇 modal: { type: 'popover', width: 'medium' // the default is "small" }, // 👆👆👆 }, }, ], }, // ... ``` ### 🐛 Notable bugfixes - Fixes a case where the `sanity graphql deploy` command would not exit after a successful deploy. - Fixes a bug where importing the `@sanity/eventsource` module in non-browser, non-node.js environments could potentially crash because of a window reference. ### 📓 Full changelog Author | Message | Commit \------------ | ------------- | ------------- Bjørge Næss | chore(test-studio): add example of nested array with a reference | [`66266cc`](https://togithub.com/sanity-io/sanity/commit/66266cc83b) Bjørge Næss | fix(base): don't reexport types as values | [`f7a77b3`](https://togithub.com/sanity-io/sanity/commit/f7a77b3cd4) Rico Kahler | test(desk-tool): proxy module instead of spread | [`3790775`](https://togithub.com/sanity-io/sanity/commit/3790775b91) Fred Carlsen | feat(base,form-builder): support callback for readOnly property on field type | [`945bb0f`](https://togithub.com/sanity-io/sanity/commit/945bb0fb76) vicbergquist | feat(form-builder): resolve readOnly for types in arrays | [`07e77f9`](https://togithub.com/sanity-io/sanity/commit/07e77f9b85) vicbergquist | feat(form-builder): resolve readonly callbacks in file and image input fields | [`5f85c74`](https://togithub.com/sanity-io/sanity/commit/5f85c74bcf) vicbergquist | fix(conditional-fields): resolve readOnly in changes panel | [`a90e057`](https://togithub.com/sanity-io/sanity/commit/a90e057df8) vicbergquist | test(conditional-fields): add tests for useConditionalProperty hook and formbuilder | [`c05d673`](https://togithub.com/sanity-io/sanity/commit/c05d6739c2) RitaDias | feat(form-builder, field, cypress): add conditional (readOnly and hidden) properties to FieldSets ([#​2959](https://togithub.com/sanity-io/sanity/issues/2959)) | [`ba3dfc1`](https://togithub.com/sanity-io/sanity/commit/ba3dfc1240) Marius Lundgård | fix(desk-tool): use `Tooltip` from `@sanity/ui` | [`2078e0d`](https://togithub.com/sanity-io/sanity/commit/2078e0db37) Marius Lundgård | feat(form-builder): support new `modal` option with `width` property (PTE) | [`e16fa33`](https://togithub.com/sanity-io/sanity/commit/e16fa3359d) Marius Lundgård | test(form-builder): test custom modal size in PTE | [`5f1135d`](https://togithub.com/sanity-io/sanity/commit/5f1135dd79) Marius Lundgård | test(test-studio): test modal width option in PTE | [`0201006`](https://togithub.com/sanity-io/sanity/commit/0201006b47) Rico Kahler | test: update document creation and navigation ([#​2972](https://togithub.com/sanity-io/sanity/issues/2972)) | [`adc65f7`](https://togithub.com/sanity-io/sanity/commit/adc65f7416) RitaDias | fix(desk-tool): fix width issues when publish & changes buttons were small ([#​2976](https://togithub.com/sanity-io/sanity/issues/2976)) | [`9f478af`](https://togithub.com/sanity-io/sanity/commit/9f478af289) Per-Kristian Nordnes | fix(form-builder): fix missing hook dep. issue | [`436c3ec`](https://togithub.com/sanity-io/sanity/commit/436c3ecbbc) Per-Kristian Nordnes | test(workshop): fix missing commonjs support for [@​sanity/structure](https://togithub.com/sanity/structure) | [`d1e1804`](https://togithub.com/sanity-io/sanity/commit/d1e1804661) Bjørge Næss | chore: upgrade Sanity UI | [`15b35e6`](https://togithub.com/sanity-io/sanity/commit/15b35e648b) Bjørge Næss | chore(eslint): allow unstable\_ prefixes | [`bd8f645`](https://togithub.com/sanity-io/sanity/commit/bd8f6454d3) Bjørge Næss | fix(desk-tool): add missing type import | [`21df0c8`](https://togithub.com/sanity-io/sanity/commit/21df0c834f) Bjørge Næss | fix(base): show text skeleton only when loading preview | [`1269582`](https://togithub.com/sanity-io/sanity/commit/1269582207) Bjørge Næss | fix(base): show schema type icon as default media preview | [`fe3cc55`](https://togithub.com/sanity-io/sanity/commit/fe3cc55fb2) Bjørge Næss | feat(form-builder): add package exports | [`b990851`](https://togithub.com/sanity-io/sanity/commit/b9908512be) Bjørge Næss | feat(preview): add building blocks for drafts model aware preview values | [`92dd785`](https://togithub.com/sanity-io/sanity/commit/92dd7856a8) Bjørge Næss | chore(base): convert draftUtils to ts | [`3ea2139`](https://togithub.com/sanity-io/sanity/commit/3ea2139ed2) Bjørge Næss | refactor(base): add draftId/publishedId helper function + opaque id types | [`7aed6cd`](https://togithub.com/sanity-io/sanity/commit/7aed6cd793) Bjørge Næss | chore(base): remove soon to be obsolete \_internalMeta property for ref type previews | [`a663369`](https://togithub.com/sanity-io/sanity/commit/a663369549) Rico Kahler | feat(validation,base): add validation for referencing non-existent documents | [`644591c`](https://togithub.com/sanity-io/sanity/commit/644591cbb0) Bjørge Næss | feat(structure): support parent ref path | [`edb196f`](https://togithub.com/sanity-io/sanity/commit/edb196f4cc) Rico Kahler | feat(base): remove \_weak if \_strengthenOnPublish | [`dc67de4`](https://togithub.com/sanity-io/sanity/commit/dc67de4a9f) Rico Kahler | feat(desk-tool): provide reference input with necessary plumbing for opening referenced docs in next pane | [`50f8630`](https://togithub.com/sanity-io/sanity/commit/50f863058d) Bjørge Næss | feat(desk-tool): add reference changed banner | [`630cd0e`](https://togithub.com/sanity-io/sanity/commit/630cd0efd2) Bjørge Næss | fix(desk-tool): serialize path before navigating | [`88ea9a5`](https://togithub.com/sanity-io/sanity/commit/88ea9a5b65) Bjørge Næss | refactor(form-builder): implement new reference input | [`9bc4622`](https://togithub.com/sanity-io/sanity/commit/9bc462231f) Mikolaj Dobrucki | fix(form-builder): fix border on reference input | [`451acd7`](https://togithub.com/sanity-io/sanity/commit/451acd7d24) Mikolaj Dobrucki | fix(form-builder): add space between buttons in reference input | [`7a0ef2a`](https://togithub.com/sanity-io/sanity/commit/7a0ef2a5da) Bjørge Næss | chore(test-studio): add a liveEdit'ed document to references test | [`129e569`](https://togithub.com/sanity-io/sanity/commit/129e5690f4) Rico Kahler | fix(desk-tool): use getDefaultDocumentNode to enable views in nested references | [`13a19b6`](https://togithub.com/sanity-io/sanity/commit/13a19b6922) Rico Kahler | fix(desk-tool): fix styles of ReferenceChangedBanner | [`1393c68`](https://togithub.com/sanity-io/sanity/commit/1393c68cd1) Rico Kahler | fix(form-builder): fix false warning in annotation | [`e6d2a58`](https://togithub.com/sanity-io/sanity/commit/e6d2a58c7d) Rico Kahler | fix(desk-tool): hide reference changed banner if viewing history | [`e8cd68f`](https://togithub.com/sanity-io/sanity/commit/e8cd68fa6e) Bjørge Næss | chore(test-studio): add an image to species type | [`e7f6ff5`](https://togithub.com/sanity-io/sanity/commit/e7f6ff5a8e) Bjørge Næss | chore(test-studio): add an example of an array of objects + references | [`b85da18`](https://togithub.com/sanity-io/sanity/commit/b85da184e7) Bjørge Næss | feat(form-builder) support inline editing of reference items | [`320ba36`](https://togithub.com/sanity-io/sanity/commit/320ba36d27) Bjørge Næss | feat: store weak flag on \_strengthenOnPublish | [`bf76a99`](https://togithub.com/sanity-io/sanity/commit/bf76a99549) Bjørge Næss | test(form-builder): Fix failing tests | [`6b7bbdc`](https://togithub.com/sanity-io/sanity/commit/6b7bbdca31) Bjørge Næss | fix(form-builder): use border instead of shadow around array items | [`8bab404`](https://togithub.com/sanity-io/sanity/commit/8bab404387) Mikolaj Dobrucki | fix(form-builder): make status icons more muted | [`7cd672a`](https://togithub.com/sanity-io/sanity/commit/7cd672a374) Bjørge Næss | feat: pass initial value templates as create menu items to reference input | [`61b7c85`](https://togithub.com/sanity-io/sanity/commit/61b7c85a28) Bjørge Næss | fix(base): improve InsufficientPermissionsMessage wording when no roles passed | [`52fc0ab`](https://togithub.com/sanity-io/sanity/commit/52fc0ab491) Bjørge Næss | chore(test-studio): add referenceTest as editable type for the restricted role | [`f92ca39`](https://togithub.com/sanity-io/sanity/commit/f92ca39f74) Bjørge Næss | refactor(form-builder): extract CreateButton + display permission denied tooltip | [`310939f`](https://togithub.com/sanity-io/sanity/commit/310939fe18) Bjørge Næss | feat: pass template + template params when navigating from a reference | [`7e4843a`](https://togithub.com/sanity-io/sanity/commit/7e4843aabd) Bjørge Næss | feat(form-builder): support disableNew option | [`1e8a4d8`](https://togithub.com/sanity-io/sanity/commit/1e8a4d81c5) Bjørge Næss | chore(desk-tool): remove disabling of camelcase eslint rules | [`4055f44`](https://togithub.com/sanity-io/sanity/commit/4055f441fc) Bjørge Næss | refactor(form-builder): create a shared reference autocomplete | [`75de8db`](https://togithub.com/sanity-io/sanity/commit/75de8db546) Bjørge Næss | feat(form-builder): make reference input responsive | [`9110be0`](https://togithub.com/sanity-io/sanity/commit/9110be0fd0) Bjørge Næss | fix(form-builder): close "edit mode" on click outside | [`26a9eb9`](https://togithub.com/sanity-io/sanity/commit/26a9eb9247) Bjørge Næss | fix(form-builder) render reference input popover in a portal with container as referenceElement | [`9487f30`](https://togithub.com/sanity-io/sanity/commit/9487f30f37) Bjørge Næss | fix(form-builder): make sure to forward given ref to popover | [`422b94e`](https://togithub.com/sanity-io/sanity/commit/422b94e5d0) Bjørge Næss | refactor(form-builder): clean up typings | [`817fa57`](https://togithub.com/sanity-io/sanity/commit/817fa57fc0) hermanwikner | feat(base): add `TextWithTone` component | [`6bdfd53`](https://togithub.com/sanity-io/sanity/commit/6bdfd530c6) hermanwikner | test(base): add `TextWithToneStory` to workshop | [`75b20e2`](https://togithub.com/sanity-io/sanity/commit/75b20e200b) hermanwikner | feat(desk-tool): update `DraftStatus` with `TextWithTone` and `Tooltip` | [`6d42dd6`](https://togithub.com/sanity-io/sanity/commit/6d42dd646d) hermanwikner | feat(desk-tool): update `PublishedStatus` with `TextWithTone` and `Tooltip` | [`2465159`](https://togithub.com/sanity-io/sanity/commit/2465159a82) hermanwikner | feat(desk-tool): update `PaneItem` so that `TextWithTone` inherits correct color | [`3b19df6`](https://togithub.com/sanity-io/sanity/commit/3b19df6052) hermanwikner | refactor(form-builder): remove `__workaround_selected` in `PreviewReferenceValue` since it is not needed anymore | [`fc43952`](https://togithub.com/sanity-io/sanity/commit/fc43952cbf) hermanwikner | feat(form-builder): update `ReferenceInput` so that `TextWithTone` inherits correct color | [`c3c5d0a`](https://togithub.com/sanity-io/sanity/commit/c3c5d0ad77) hermanwikner | refactor(form-builder): use updated `TextWithTone` component in `ReferencePreview` | [`ab26ead`](https://togithub.com/sanity-io/sanity/commit/ab26ead652) hermanwikner | refactor(form-builder): rem

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

renovate[bot] commented 2 years ago

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will now ignore this update (^2.25.0). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.