Sanity Studio – Rapidly configure content workspaces powered by structured content
MIT License
Bot releases are visible (Hide)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Marius Lundgård | [base] Prevent printing warnings when importing ZIndexProvider (#2298) | 57d9e726d |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
This release introduces a complete mapping of the Studio theming variables to Sanity UI’s ThemeProvider
.
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [chore] Move eslint config out of monorepo | 28694e538 |
Marius Lundgård | [base] Map legacy theme values from CSS variables to Sanity UI theme object (#2289) | ef33259ba |
Benedicte Emilie Brækken | [chore] Update sanity-eslint-config | e532be4d1 |
Marius Lundgård | [base] Fix regression in Tooltip (#2296) | 49ea2ea6c |
Marius Lundgård | [chore] Move sanity/typescript before prettier extensions |
b31c09718 |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
allowRelative: true
Author | Message | Commit |
---|---|---|
Bjørge Næss | [chore] Tie perf run results to hardware profile to get more comparable results (#2283) | 2a277278b |
Espen Hovlandsdal | [chore] CI: Skip puppeteer download on non-perf workflows | 6f3ecba20 |
Espen Hovlandsdal | [core] Close JSDOM window after schema is resolved (#2279) | 3f87010d2 |
Espen Hovlandsdal | [core] GraphQL: Skip prompts in non-interactive/CI environment (#2277) | 1d7c63e4e |
Benedicte Emilie Brækken | [form-builder] Wrap react-datepicker in Layer | 9573931f6 |
Benedicte Emilie Brækken | [form-builder] DateInput remove named Moment imprt | 7c0f36646 |
Benedicte Emilie Brækken | [form-builder] DateInput fix eslint warnings | 42db1d060 |
Marius Lundgård | [base] Remove use of Layer in ActivateOnFocus | 40351fd72 |
Marius Lundgård | [form-builder] Remove use of Layer in BlockExtras | 4b102a240 |
Marius Lundgård | [examples] Add example of URL field which allows relative paths | 468c40f8a |
Marius Lundgård | [form-builder] Fix input type in URLInput when allowing relative paths | 011bf9fc0 |
Marius Lundgård | [form-builder] Fix spacing and font-size of RadioSelect | 4549411d5 |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Benedicte Emilie Brækken | [base] Wrap SearchableSelect within Portal | db782f72f |
Bjørge Næss | [base] Always disable native autocomplete on searchable selects | 7e62bc765 |
Published by rexxars over 3 years ago
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Marius Lundgård | [desk-tool] Fix document actions (onClickOutside behavior) (#2276) | 0480e85 |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
This release includes refactoring of dialogs, popovers, and overlays to Sanity UI.
Author | Message | Commit |
---|---|---|
Marius Lundgård | [field] Install @sanity/ui | f2e840339 |
Marius Lundgård | [default-layout] Install @sanity/ui | e2ee31b1d |
Marius Lundgård | [base] Add new ZIndexProvider to transition from CSS variables to @sanity/ui | b5966990f |
Marius Lundgård | [base] Use Layer and Portal from @sanity/ui | 92f68d603 |
Marius Lundgård | [default-layout] Use Layer and Portal from @sanity/ui | 0a90b9e25 |
Marius Lundgård | [field] Use Layer and Portal from @sanity/ui | 4ee62f5e0 |
Marius Lundgård | [desk-tool] Use Layer and Portal from @sanity/ui | 5d6366307 |
Marius Lundgård | [form-builder] PortableText: use Layer from @sanity/ui | 575da1678 |
Marius Lundgård | [form-builder] Use Layer and Portal from @sanity/ui | fac3f6e0b |
Marius Lundgård | [base] Allow passing HTML attributes to DefaultDialog | 2285afdd9 |
Marius Lundgård | [desk-tool] Set a test attribute on ListPane | 643a828d0 |
Marius Lundgård | [cypress] Add test for navbar | 877ae81aa |
Marius Lundgård | [examples] Add more examples of poppers | 769c2dcc3 |
Marius Lundgård | [base] Allow passing HTML attributes to FullscreenDialog | 43d9d9e38 |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Marius Lundgård | [cypress] Throw exception if the sanity token is missing | e481f6d94 |
Marius Lundgård | [chore] Add cypress:open to ease e2e test development |
51b5c7335 |
Marius Lundgård | [chore] Update @sanity/ui | 77e2b952d |
Marius Lundgård | [storybook] Install @sanity/ui | 22f36e13f |
Marius Lundgård | [storybook] Update usage of @sanity/ui | 2e80f0af5 |
Marius Lundgård | [default-layout] Fix tooltip styles in ToolMenu | ad86e0ed4 |
Marius Lundgård | [desk-tool] Fix overflow in InspectDialog | 63c617241 |
Marius Lundgård | [google-maps-input] Increase dialog size | 41ae511e7 |
Marius Lundgård | [studio-hints] Remove border style | b4d7e98e2 |
Bjørge Næss | [perf-studio] Add a perf studio for testing various performance related issues | 42f7da17b |
Bjørge Næss | [chore] Add a quick puppeteer test that measures typing performance in a simple string field | 84c704eee |
Bjørge Næss | [chore] Set up github action for running performance test as part of ci | 931d08e61 |
Bjørge Næss | Unify environment variables setup for e2e and perf tests + add some docs | c8501ef52 |
Bjørge Næss | [chore] Update license files | d18c5ace6 |
Anders Stensaas | [client] Add support for alias in the dataset field | a7ad0c7b4 |
Espen Hovlandsdal | [cli] Replace "dummy dataset" parameter used in CLI | b0c577c95 |
Benedicte Emilie Brækken | [chore] Remove outdated step in contribute.md | d26cf6377 |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
sanity upgrade
will no longer upgrade @sanity/ui
@sanity/ui
Author | Message | Commit |
---|---|---|
Benedicte Emilie Brækken | [cli] Add array of packages excluded from update | 686fb62b2 |
Benedicte Emilie Brækken | [chore] Add end-to-end testing with Cypress (#2261) | b3db23240 |
Benedicte Emilie Brækken | [qa] Add readme for end-to-end testing | b4d18dbdd |
Marius Lundgård | [examples] Add tool that triggers faux UI error message | 3a3233458 |
Marius Lundgård | [base] Fix: Modify script so that caret is not included in version string | 2c19a59c3 |
Marius Lundgård | [base] Improve handling of theme errors originating in @sanity/ui | 1d767add3 |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
BooleanInput
Author | Message | Commit |
---|---|---|
Marius Lundgård | [examples] Add example schema to test poppers of various kinds | b9c221fa9 |
Marius Lundgård | [base] Fix issues with popper configuration in SearchableSelect which affected ReferenceInput | 5e5260c27 |
Benedicte Emilie Brækken | [form-builder] Reduce BoolInput presence padding | 8b4b17b59 |
Benedicte Emilie Brækken | [form-builder] Move BoolInput css to styled | ec3721cae |
Marius Lundgård | [form-builder] Adjust spacing and fix behavior when clicking label | c3e8f2691 |
Published by bjoerge over 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
10
) rows when setting the rows: 0
option in the schema typeoptions.list
option would render [object Object]
in certain casesoptions.list
schema type optionAuthor | Message | Commit |
---|---|---|
Marius Lundgård | [examples] Add field with array of strings (without title) | 043cecb22 |
Marius Lundgård | [base] Fix for backwards compatibility: Hide FormField's header when there's no title | de414bf98 |
Bjørge Næss | [form-builder] TextInput: Only apply default when type.rows is not a number (#2259) | 984b6b43c |
Espen Hovlandsdal | [types] Relax titled list option check, allow additional attributes | caba45eb3 |
Espen Hovlandsdal | [examples] Add example for options.list containing more than 2 attributes |
6e5073386 |
Espen Hovlandsdal | [form-builder] Fix crash when rendering unknown value warning for object/arrays | f009140d2 |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Use the --non-null-document-fields
flag to force fields like _id
, _type
, and _createdAt
to be marked as non-nullable fields in GraphQL APIs.
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [cli] Pass on raw argv to commands for more granular parsing | 825603bce |
Espen Hovlandsdal | [core] GraphQL: Add --non-null-document-fields flag | 511f9a8ff |
Espen Hovlandsdal | [validation] Fix bug on object type with "value" field + "list" option (#2247) | 1ae7348b5 |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
This is a patch release which fixes some small bugs introduced in the previous release relating to text inputs.
rows
property on TextInput
Author | Message | Commit |
---|---|---|
Marius Lundgård | [form-builder] Fix TextInput ’s default rows property |
1ecca18dc |
Marius Lundgård | [form-builder] Make TextInput ’s textarea resizable |
323539ecc |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
This version of the Sanity Studio introduces the use of our new Sanity UI library (see blog post) for primitive field types: string
, text
, number
, boolean
, and slug
.
react-dom/server
would not workeditModal
option from schemaAuthor | Message | Commit |
---|---|---|
Espen Hovlandsdal | [validation] Skip field validation inference if jsonType is not object | 5ddbf2463 |
Espen Hovlandsdal | [schema] Ensure "fields" property is not used on non-object types | 70119c87c |
Bjørge Næss | [chore] Add a watchTS task | 4a3946edb |
Bjørge Næss | [base] Move connection status store to datastores folder | f4184ed3b |
Bjørge Næss | [chore] Upgrade @sanity/ui to latest | 15ddaccdd |
Marius Lundgård | [desk-tool] Wrap document pane with the Card component | e5fcaa27b |
Marius Lundgård | [base] Customize focus ring theming | 15f075bdd |
Marius Lundgård | [base] Add new FormField components | 30741459c |
Benedicte Emilie Brækken | [chore] Add Slack notifications on build failure | de2437d74 |
Bjørge Næss | [form-builder] Improve typings | 6ed835669 |
Marius Lundgård | [base] Export types from FormField | c51368cfc |
Bjørge Næss | [form-builder] Enable opt-in TS strict mode on a directory basis | c73bdabbe |
Bjørge Næss | [form-builder] Remove unused error boundary component | ca67a0f35 |
Bjørge Næss | [form-builder] Remove unused files | 114a3ed51 |
Marius Lundgård | [default-layout] Fix placement of search field | 6623eae8d |
Espen Hovlandsdal | [server] Make react/react-dom alias to folders, not files (#2234) | 522dacc7a |
Marius Lundgård | [examples] Add schemas for testing UrlInput and EmailInput | ff128b9b9 |
Bjørge Næss | [form-builder] Use TextInput from Sanity UI in StringInput | 9893f9b3f |
Bjørge Næss | [form-builder] Use TextInput from Sanity UI for most primitive input components | ce873d158 |
Bjørge Næss | [form-builder] Migrate BooleanInput to Sanity UI | 521129857 |
Bjørge Næss | [form-builder] Migrate SlugInput to use Sanity UI | 9af4cd3ec |
Bjørge Næss | [form-builder] Refactor SelectInput to use Sanity UI | 7f317ba97 |
Marius Lundgård | [base] Use legacy theming for Sanity UI inputs | f4a9c55cd |
Marius Lundgård | [base] Prevent component prop being passed to DOM element | 2942178c6 |
Per-Kristian Nordnes | [form-builder] PTE: Fix bug where annotation modals could not be set to 'dialog' | a79787308 |
Benedicte Emilie Brækken | [form-builder] Fix bug where SelectInput sent the wrong update patch (#2252) | b498a8199 |
Marius Lundgård | [examples] Add test schemas for radio and select inputs | 39b41fc8e |
Benedicte Emilie Brækken | [form-builder] Fix RadioSelect bug missing onChange | a4ce06ade |
Benedicte Emilie Brækken | [form-builder] Add inputId as name to RadioSelect | ae1bcccbd |
Bjørge Næss | [form-builder] Emit onFocus from select + radio select inputs (#2254) | 9c5044d6f |
Marius Lundgård | [form-builder] Trigger onFocus in SlugInput |
eb43166d4 |
Published by bjoerge almost 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Bjørge Næss | [base] Fix wrong reexport from base/preview | 65f8127ce |
Published by benedicteb almost 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Bjørge Næss | [chore] Move preview into base (#2212) | 8a65d2581 |
Marius Lundgård | [base] Add error screen when theme context is not found | 080ecb298 |
Bjørge Næss | [chore] Write the current version of @sanity/ui depended on upon publish | 09d4409b8 |
Published by bjoerge almost 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
sanity import
not honoring the --allow-failing-assets
flag.Author | Message | Commit |
---|---|---|
Bjørge Næss | [base] Fix typing issues with setTimeout | a076bbce3 |
Bjørge Næss | [google-maps-input] Upgrade @types/googlemaps | a845443dd |
Bjørge Næss | [chore] Upgrade typescript and remove as dependency from individual packages | 42166d346 |
Marius Lundgård | [base] Move BoundaryElementProvider to base components directory | 8de1d997f |
Marius Lundgård | [desk-tool] Wrap document panel with BoundaryElementProvider | 806a6b367 |
Marius Lundgård | [design-studio] Add schema to test dropdown menu boundary | 25b3d19ed |
Marius Lundgård | [components] Read boundary element value from context | 7cad0456e |
Espen Hovlandsdal | [desk-tool] Scroll to nearest block if on focus path change (#2200) | f4b66a869 |
Espen Hovlandsdal | [chore] Provide repository subdirectory in package manifests (#2210) | e68a43556 |
Alexander Staubo | [import] Honor the --allow-failing-assets flag (#2207) | 5308d8ab4 |
Bjørge Næss | [form-builder] Don't wrap Details content in a button (#2203) | c9efa44c9 |
Published by rexxars almost 4 years ago
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [language-filter] Add missing labels for languages (#2187) | 00c0016ae |
Espen Hovlandsdal | [base] Don't call onFocus when toggling fieldsets (#2193) | 85cf0ff8a |
Published by bjoerge almost 4 years ago
Upgrade Sanity Studio with:
sanity upgrade
sanity start
under some circumstances.Author | Message | Commit |
---|---|---|
Bjørge Næss | [base] Restore typing stubs (#2182) | bb8c4effe |
Bjørge Næss | Upgrade UI (#2183) | 5d8598f5f |
Published by bjoerge almost 4 years ago
Upgrade Sanity Studio with:
sanity upgrade
sanity start
Author | Message | Commit |
---|---|---|
Bjørge Næss | [chore] Substitute "/"" in branch name with "_" when releasing current tag | 7fc984e7e |
Bjørge Næss | [chore] Pin version of @sanity/icons | 4eb01226b |
Published by bjoerge almost 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
We have added two new features for Advanced Dataset Management for projects on the Enterprise plan. You can now initate dataset copying directly in the cloud and create aliases to hot swap between datasets. This will enhance development and CI workflows.
allDocument
fieldWhen deploying new GraphQL APIs for your datasets, you will now get an allDocument
field which allows you to query for all documents matching a filter. You will still need to use fragments with type checks to access fields based on the type, of course:
{
allDocument(where: {
_createdAt: { gte: "2020-12-01T14:33:00Z"}
}) {
# `_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
}
}
}
If you already have a GraphQL API deployed, you will have to specify that you want to use the new generation of GraphQL schema by using sanity graphql deploy --generation gen3
. The reason for this is a minor breaking change: the DocumentFilter
type now represents the filters that can be applied in the allDocument
query, mirroring other type filters (PostFilter
, AuthorFilter
), while the type previously called DocumentFilter
has been renamed to Sanity_DocumentFilter
.
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [util] Improve typing of PathUtils.trimChildPath | cc3018f2a |
Espen Hovlandsdal | [chore] Build modules before running lint (#2118) | 6d3f20140 |
Espen Hovlandsdal | [chore] Remove unused modules (#2114) | ca34d937e |
Espen Hovlandsdal | [chore] Remove @sanity/check module (#2119) | fa95241a1 |
Espen Hovlandsdal | [mendoza] Move mendoza out of monorepo | cd7269c4e |
Espen Hovlandsdal | [desk-tool] Fix typings for document history | 55230456e |
Espen Hovlandsdal | [chore] Move @sanity/uuid out of monorepo (#2113) | ea1902ad7 |
Bjørge Næss | [chore] Remove obsolete @sanity/observable (#2120) | 7b1f7436b |
Espen Hovlandsdal | [base] Prevent robots from crawling/indexing studios (#2125) | 17c4637c9 |
Espen Hovlandsdal | [chore] Use GitHub Actions for CI (#2127) | bd8671860 |
Bjørge Næss | [test-studio] Bump and lax semver range of dashboard widget plugins | 60afcd2eb |
Bjørge Næss | [form-builder] Upgrade to latest portable-text-editor | becc35c66 |
Oliver Belmont | [color-input] Fix isValidHex error (#2124) (#2128) |
7286a396a |
Bjørge Næss | [chore] Move the the rich-date-input package out of the monorepo (#2126) | f04dec00d |
Marius Lundgård | [chore] Improve performance of webpack development server (#2116) | e80891f17 |
Marius Lundgård | [chore] Install @sanity/ui (#2130) |
48dd9ad20 |
Marius Lundgård | [chore] Upgrade popper dependencies | 237f0e508 |
Marius Lundgård | [chore] Bootstrap dev server (#2131) | 3aa06daa2 |
Benedicte Emilie Brækken | [chore] Remove non-js files before running lint CI | 66f6ead96 |
Arjen | [components] Add pointer-events: none to noResultTextHidden (#2138) |
ba79bbfcf |
Marius Lundgård | [chore] Move @sanity/components to legacy directory in @sanity/base (#2117) | 7fde820b4 |
Marius Lundgård | [chore] Move example studios to examples directory (#2141) |
b90873e68 |
Marius Lundgård | [base] Fix base color issue when using custom theme | 6bfead4c0 |
Bjørge Næss | [base] Create a declarations file for the @sanity/ui theme | e74cfef87 |
Bjørge Næss | [chore] Improve typings and explicitly disable strict mode flags where needed (#2133) | 0b72b385d |
Espen Hovlandsdal | [core] Disallow using aliases for studios (#2142) | 15018b0db |
Marius Lundgård | [storybook] Add support for @sanity/ui in Storybook and improve theme inference (#2143) | 08c74a562 |
Bjørge Næss | [mutator] Fix minor typing issue | d07447ca9 |
Bjørge Næss | [chore] Fix misc. formatting issues | cc8fc586a |
Benedicte Emilie Brækken | [core] Specify target/source dataset in copy prompt | 8142a78e3 |
Benedicte Emilie Brækken | [base] Fix bug where type-guard didn't return bool | e2540140d |
Bjørge Næss | [default-layout] Fix lint error | fa350923a |
Bjørge Næss | [chore] Add a task to lint files changed between current branch and next | 3e521f451 |
Bjørge Næss | [chore] Upgrade @types/react to 17 | e28fa6e75 |
Benedicte Emilie Brækken | [core] Change dataset copy to wait by default | 16afe03b0 |
Benedicte Emilie Brækken | [chore] Lint files one by one | 4fd248d89 |
Bjørge Næss | [chore] Consolidate ad hoc declaration files for parts (#2150) | e2ec8b51b |
Bjørge Næss | [chore] Switch to project references instead of path aliases | a1f117fa4 |
Bjørge Næss | [chore] Run type-check before test suite | 0906f4ff1 |
Benedicte Emilie Brækken | [core] Add --skip-history flag to dataset copy | f66c67558 |
Benedicte Emilie Brækken | [chore] Keep prettier at version 2.1.2 | 78fe9147c |
Benedicte Emilie Brækken | [chore] Prettify files with prettier 2.1.2 | 31a5e6039 |
Benedicte Emilie Brækken | [chore] Run clean before verifying format | 84ababfb9 |
Espen Hovlandsdal | [form-builder] Fix typings for resolveArrayInput (#2162) | ac3bd0509 |
Bjørge Næss | [chore] Fail build script on TS compile errors + smaller improvements (#2165) | fca8a4aa0 |
Marius Lundgård | [base] Update @sanity/ui | f37144d76 |
Marius Lundgård | [base] Improve base styles | 3caf688d9 |
Bjørge Næss | [server] Add missing dependencies (#2168) | c4e5e5730 |
Benedicte Emilie Brækken | [test-studio] Add all types of modals to schema | 557db5420 |
Rex Raphael | [core] Add dataset alias support to CLI (#2166) | 5bff083db |
Rex Raphael | [cli] Fix init command not respecting dataset visibility flag (#2163) | f20593837 |
Andy Richardson | [core] Add full support for querying Document | 38b2434a2 |
Espen Hovlandsdal | [core] Do not include document interface as type | 04821bfc7 |
Espen Hovlandsdal | [core] Explicitly define which types to query for in allDocument query | c6cc38923 |
Anders Stensaas | [core] Revert changes to GraphQL 'gen2'as they were breaking | 652fc7503 |
Anders Stensaas | [core] Add a new GraphQL generation 'gen3' for querying all documents | f2600c898 |
Bjørge Næss | [chore] Lazy require tsconfig when resolving monorepo aliases | bb76931aa |
Bjørge Næss | [chore] Remove unused file | 6265c4d9f |
Bjørge Næss | [chore] Fix issue with double monorepo detection/config override | 46a9c1718 |
Bjørge Næss | [chore] Add tsbuildinfo files to .npmignore | f7e383045 |