npm @sanity/desk-tool 2.11.0
v2.11.0

latest releases: 2.36.2, 2.36.2-weighted-search.16, 2.36.2-weighted-search.10...
2 years ago

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
Bjørge Næss chore: upgrade @sanity/icons b4d45fb
Bjørge Næss chore: upgrade @sanity/ui 8593950
Espen Hovlandsdal feat(cli): upgrade to yarn v1.22.10 47186e2
Rico Kahler fix(client): make projectId optional; combine config types dd995f0
Marius Lundgård fix(form-builder): render array item menu in a portal (#2528) 1dd802c
Marius Lundgård build: fix lerna warnings (#2530) 2be7e6f
Marius Lundgård build: update dependencies 86fa23e
Bjørge Næss fix(form-builder): show presence for readOnly fields 608f504
Bjørge Næss fix(base): add proper support for disabling IntentLinks 8744404
Bjørge Næss fix(imagetool): avoid calling callbacks when read only 95a68e5
Marius Lundgård feat(base): improve theming of read-only and placeholder in inputs ea6e2a5
Bjørge Næss fix(form-builder): hide item drag handle on read-only array of primitives 6e84e41
Bjørge Næss fix(form-builder): disable placeholder for reference inputs in read-only mode c3d1fc7
Bjørge Næss fix(color-input): disable create button when in readOnly mode c761aee
Bjørge Næss fix(form-builder): make text field readOnly instead of disabled for readOnly date inputs c8313f1
Bjørge Næss fix(form-builder): show header on read-only array item dialogs for types without a title 5543a7b
Bjørge Næss fix(form-builder): use readOnly instead of disabled state for checkboxes in readOnly options array 257f91b
Bjørge Næss fix(google-maps-input): hide edit/delete buttons when readOnly 9bdc7ef
Bjørge Næss fix(imagetool): disable cursor + hover effect when readOnly 1faa01d
Bjørge Næss build(base): enable opt-in strict mode f8910bf
Bjørge Næss refactor(base): refactor/clean up user-store 8f78f21
Bjørge Næss refactor: move to userStore.me internally 2d8bd74
Dain Cilke fix(default-layout): protect against undefined state tool 9226e75
Marius Lundgård build: update dependencies adce009
Marius Lundgård feat(base): add skeleton colors to theme 4a47133
Bjørge Næss chore(base): add project reference to initial-value-templates adbac3b
Bjørge Næss chore: disable import/no-unresolved for typescript files d39de13
Bjørge Næss chore(base): fix typescript compile errors caaceb7
Bjørge Næss chore: replace use-observable et al with react-rx 5cae932
Bjørge Næss feat(base): add support for sticky debug params c2e09c1
Bjørge Næss feat(base): support roles array for current user 61247bc
Bjørge Næss feat(initial-value-templates): export resolveInitialValueForType ed5f943
Bjørge Næss feat(base): add datastore and support hooks for grants ec45156
Bjørge Næss feat(default-login): use API vX (for now) d318a1c
Bjørge Næss feat(desk-tool): consider permissions in default document actions 2b04f50
Bjørge Næss feat(base): add shared insufficient permissions message component 88626f2
Bjørge Næss fix(desk-tool): fix visual glitch in publish button tooltip a505dee
Bjørge Næss feat(base): consider permissions in global create document dialog 13c9aa8
Bjørge Næss feat(desk-tool): add permission check banner to document panel afe267c
Bjørge Næss feat(base): add basic permission check to default pane menu 8680eea
Bjørge Næss fix(desk-tool): improve tooltip rendering of statusbar menus 7c9c601
Bjørge Næss feat(field): toggle revert buttons based on current user permissions fca4900
Bjørge Næss feat: disable global create button if user can't create any documents dcea216
Bjørge Næss fix(base): work around issues with circular imports causing errors e8a833c
Bjørge Næss fix(form-builder): workaround circular require issues 8fdc708
Rico Kahler refactor(base): update to new acl endpoint 5280c51
Rico Kahler test: add wildcard to cy.intercept f91e788
Rico Kahler chore: remove vX client cd36d3c
Bjørge Næss fix(base): add tag to acl request 36b5f57

Don't miss a new desk-tool release

NewReleases is sending notifications on new releases.