saiichihashimoto / sanity-typed

Completing sanity's developer experience with typescript (and more)!
MIT License
149 stars 7 forks source link

build(deps): bump sanity from 3.23.4 to 3.44.0 #727

Closed dependabot[bot] closed 4 months ago

dependabot[bot] commented 4 months ago

Bumps sanity from 3.23.4 to 3.44.0.

Release notes

Sourced from sanity's releases.

v3.44.0

Installation and upgrading

To initiate a new Studio without installing the CLI globally:

npm create sanity@latest

To upgrade a v3 Studio, run this command in its folder:

npm install sanity@latest

🐛 Notable bugfixes

Customizing restore action now works

This releases fixes a bug preventing developers removing or customising the "restore" document action using the document.actions Studio configuration property.

Studio will now respect changes you make to the "restore" document action, but please note that you must set the action property to "restore" on your DocumentActionComponent. The action property allows Studio to identify the restore action.

Example

import {RocketIcon} from '@sanity/icons'
import {type DocumentActionComponent} from 'sanity'

export const TestCustomRestoreAction: ( action: DocumentActionComponent, ) => DocumentActionComponent = (restoreAction) => { const action: DocumentActionComponent = (props) => ({ ...restoreAction(props), label: 'Custom restore', tone: 'positive', icon: RocketIcon, })

  • action.action = 'restore' return action }

Other bugfixes

  • Fixes an issue that could under certain conditions cause a circular structure to enter an infinite loop. Shoutout to @​sarahsvedenborg and @​stian-svedenborg for identifying the issue and proposing a fix.
  • Resolves a type error caused by the missing preview property in DocumentComponents.
  • Fixes an issue causing cross dataset reference search not returning hits in certain cases.
  • Improves text selection of full screen Portable Text editors (PTE).
  • Fixes issue where nested fullscreen PTEs were unable to open the block style dropdown.
  • Fixes issue causing EXIF metadata not being included when uplading multiple images through drag + drop. Thanks @​xuzuodong!
  • Fixes bugs related to when the PTE is using a Reference input directly as the annotation type (not wrapped in a object type).
  • Add automatically resolving of some validation errors in the PTE.

... (truncated)

Commits
  • 12043b3 v3.44.0
  • 112b66c refactor(core): stabilize studio usage of actions API (#6783)
  • faa5bcf fix(deps): update dependency @​sanity/ui to ^2.1.14 (#6800)
  • 42fd4bf fix(deps): update dependency @​sanity/presentation to v1.15.11 (#6799)
  • 63e3c32 chore(deps): update dependency @​sanity/icons to v3 (#6797)
  • eeba7f2 fix(form): avoid spreading key prop (#6776)
  • 43f1766 fix(deps): update dependency @​sanity/ui to ^2.1.13 (#6787)
  • 517a1a9 fix(deps): update dependency @​sanity/presentation to v1.15.10 (#6786)
  • f341c2d fix(form): properly support passing undefined as title to renderDefault()...
  • 1961904 fix(deps): update dependency @​sanity/client to ^6.19.0 (#6781)
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 4 months ago

Superseded by #728.