Skip to content

v2.26.0

Compare
Choose a tag to compare
@RitaDias RitaDias released this 01 Feb 15:15
· 5114 commits to next since this release

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Updated File and Image Input

File component

  • Empty state takes up much less vertical space
  • Field with file selected also takes up less vertical space
  • Display original file name and size
  • Options to download the file or copy the url

Image component

  • Empty state takes up much less vertical space
  • Image is vertically responsive to the height of the window, taking up less vertical space
  • Images are no longer enlarged to fit the size of the field
  • Options to copy image url and download the image
File Image
File Input Image Input

Improved change indicator highlighting in Portable Text Editor

Change Indicator for PTE

Updated login status popover to display information about the current user

  • Shows full name, email and login provider of the logged in user
  • Link to project management interface

Login information for user

🐛 Notable bugfixes

  • Fixes an issue where the empty editor placeholder text would sometimes cause focus problems in Webkit.
  • Fixes an issue where multiple types in array input would prevent it from being scrollable

📓 Full changelog

Author Message Commit
Espen Hovlandsdal chore(client): move client out of monorepo 0b9dc29
Espen Hovlandsdal chore: upgrade to @sanity/client@^3.0.1 4a45fba
Espen Hovlandsdal refactor(base): provide expected return type for availability check c3f10e7
Espen Hovlandsdal fix(perf): use non-relative @sanity/client 0f9ef64
Bjørge Næss chore: remove community-studio submodule b91e5bb
Per-Kristian Nordnes test(portable-text-editor): Replace 'Control' key with 'Meta' when running on Apple platform. ef663d6
RitaDias feat(form-builder, imagetool): update Image Input & File input (#3050) 9e5a11c
Per-Kristian Nordnes fix(portable-text-editor): disallow pointer events on placeholder 1c7f5d1
Per-Kristian Nordnes test(portable-text-editor): update test snapshot da849dc
Per-Kristian Nordnes feature(form-builder): guard that hotkeys for the PTE is a stable object + warn if not 802e310
jorngeorg feat(default-layout): update LoginStatus design 8dd9faf
Herman Wikner chore(default-layout): add @sanity/ui-workshop and @sanity/logos dependencies 4af04f2
Herman Wikner refactor(default-layout): pass shared data to PresenceMenu and LoginStatus in Navbar b2398aa
Herman Wikner test(default-layout): add LoginStatus workshop bc898be
Herman Wikner refactor(default-layout): add projectId prop to PresenceMenu af8ff5d
Herman Wikner chore(types): add provider property to CurrentUser interface 2a6e9a1
Herman Wikner feat(base): add onHasChanges callback to CoreChangeIndicator and ChangeIndicatorWithProvidedFullPath + add withHoverEffect option d2ab6f2
Herman Wikner feat(base): update styling ElementWithChangeBar with withHoverEffect prop + skip return ChangeBar if there are no changes 9a047a9
Herman Wikner feat(form-builder): update PTE EditableWrapper design 4020d60
Herman Wikner feat(form-builder): add folder with common components in PTE (ReviewChangesHighlightBlock and StyledChangeIndicatorWithProvidedFullPath) a91fb4f
Herman Wikner feat(form-builder): update PTE BlockObject with review changes highlight block and move styling into separate file ad2bcf2
Herman Wikner feat(form-builder): update PTE TextBlock with review changes highlight block 525438a
RitaDias fix(form-builder): fix overflow when there are many types (#3114) 4d9fd21
Herman Wikner feat(desk-tool): improve MissingDocumentTypesMessage design dd87546