Review Changes is the latest in a series of improvements we have made to the authoring experience in the Sanity Studio. You now get full document revision history right inside the Sanity Studio. Down to click and keystroke, you can see who contributed what to any version of a document and roll back a single field. You can also make your own custom diff components with the new APIs and React components.
This release also marks the first feature for advanced dataset management: server-side dataset copying. If your project is on the enterprise plan, you can now run sanity dataset copy production staging to copy the contents including assets of a dataset to another.
GraphQL Document field
When deploying new GraphQL APIs for your datasets, you will now get a Document field which allows you to query for a document with a given ID without having to know it's type up front. You will still need to use fragments with type checks to access fields based on the type, of course:
{
Document(id: "some-doc-id") {
# `_id` is defined on the `Document` interface,
# so it does not require a type assertion
_id
# Unique fields on the `post` type
...on Post {
title
category
}
}
}
UI improvements
We are continously improving the UI, accessibility, and the editoral experience of the Studio. This release includes:
Improvements to the hotspot and crop tool, and the way images are previewed.
The builtin form fields have been made more consistent.
The document’s status bar has a brand new design.
Improved popovers and dialogs with better contrasts/shadows.
Modals in the Desk tool are restricted to their pane, to improve the experience for split views.
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.
If all status checks pass Dependabot will automatically merge this pull request.
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 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 use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps @sanity/components from 1.148.5 to 2.0.1.
Release notes
Sourced from @sanity/components's releases.
Commits
2513e0e
v2.0.137f95f8
Remove eslint package from being publishedfbcb62a
[google-maps-input] Add attribution to geopoint diffeeb7e4d
[chore] Switch back to deploying test-studioa7f8168
[chore] Normalize dependency versions2f5d3ad
[imagetool] fix canvas width to work with changebar0e1cbb0
[desk-tool] fix document list loading indicator padding and style68b1108
[mendoza] Handle overlapping prefix/suffix in string rebase82c53c4
[field] Ensure array exists before attempting to insert stubf25e216
[field] PT: mixin original string segments to pseudoDiffDependabot 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
.If all status checks pass Dependabot will automatically merge this pull request.
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 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 use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)