Sanity Studio – Rapidly configure content workspaces powered by structured content
MIT License
Bot releases are visible (Hide)
Published by rexxars over 4 years ago
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Marius Lundgård | [form-builder] Fix grid layout issue caused by empty div | 7399e7a8a |
Marius Lundgård | [components] Make DefaultPreview more resilient to being placed within CSS grids (#1881) | b0d7be210 |
Marius Lundgård | [form-builder] Remove unecessary spacing | 576931980 |
Marius Lundgård | [form-builder] Make PTE toolbar more resilient to being placed with a CSS grid (#1882) | 20486c23a |
Published by rexxars over 4 years ago
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Marius Lundgård | [monorepo] Disable stylelint in TS files | c5b21c23e |
Marius Lundgård | [form-builder] Fix issue caused by excess toolbar width | fbe23214f |
Marius Lundgård | [desk-tool] Fix Storybook | 32f979391 |
Published by rexxars over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
You can now define a list of allowed options for the number
field type, just like the string
type. Thanks to @pdeona for this one!
sanity.json
We recently introduced environment variables for configuring the project ID and dataset for the Sanity Studio. Now you no longer need to have values predefined in sanity.json
to start the development server. This is great for starters and other projects where you don't want to check in a specific project ID or dataset to version control. Thanks to @chrispecoraro for fixing!
⌘ + S
/ Ctrl + S
key shortcutIf you press the shortcut for “Save” (⌘ + s on Mac, Ctrl + s on Windows/Linux), you will now longer get the browser dialog to save an HTML-file, but get a helpful reminder that your content is synced in real-time to the data store. No manual saving necessary.
.listen()
method potentially crashing in certain non-browser environmentsprecision()
validator crashing on undefined values. Thanks to @coreyward for fixing!Author | Message | Commit |
---|---|---|
Christopher Pecoraro | [core] Allow startup with env without API settings (#1680) | 3228506f2 |
Espen Hovlandsdal | [cli] Use disallowed dataset name as placeholder in client wrapper | fa9c6b764 |
Espen Hovlandsdal | [core] Notify when project ID or dataset differs from defaults | a69f9d709 |
Espen Hovlandsdal | [eventsource] Use forked eventsource polyfill (#1844) | e9dc30ddf |
Corey Ward | [validation] Short-circuit to avoid failed coercion of undefined to string (#1835) |
f1d816418 |
Anders Stensaas | [validation] Fix a performance issue when validating blocks | 7d748fb77 |
Marius Lundgård | [desk-tool] Refactor file organization (#1846) | ac116c7e9 |
Per-Kristian Nordnes | [form-builder] PTE: fix focus bug when in readOnly mode (#1848) | 2da75a974 |
Espen Hovlandsdal | [eslint-config-sanity] Allow unescaped quotes in JSX (#1849) | 84fe3a1a1 |
Marius Lundgård | [desk-tool] Remove 'id' attribute from the editor form (#1851) | d644cdb69 |
Victoria Bergquist | [components] Update status dialog copy | b001bd9b2 |
Pedro De Ona | [form-builder] Support list option on number fields (#1858) | efcc7197c |
Bjørge Næss | [form-builder] Add cases for list option on numbers to test studio schema | 205613a1a |
Bjørge Næss | [form-builder] Improve mapping from list options to select items | cc6007d75 |
Marius Lundgård | [desk-tool] Fix import issues after renaming | 94c3d39b3 |
Bjørge Næss | [base] Prevent liveEdit check from throwing for documents without a schema type | 8ead7a4bf |
Marius Lundgård | [desk-tool] Prevent 'Cmd+S' from triggering HTML document save dialog (#1856) | 3926e6518 |
Marius Lundgård | [desk-tool] Fix auto-save copy | 1fa6ba8b0 |
Espen Hovlandsdal | [chore] Upgrade get-it dependency (#1873) | 48a36576c |
Marius Lundgård | [form-builder] Fix fieldset columns layout (#1878) | 078adb591 |
Published by saasen over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
references
array and the to
array, the sanity graphql deploy
command fails.Author | Message | Commit |
---|---|---|
Anders Stensaas | [core] GraphQL: Make Document-type fields nullable | 3e94b50ea |
Anders Stensaas | [core] GraphQL: Add which types in an array definition are inline objects | 6ae653415 |
Anders Stensaas | [core] GraphQL: Fix an error where the inlineObjects field is generated on references | 9d2890caa |
Published by rexxars over 4 years ago
Upgrade Sanity Studio with:
sanity upgrade
require.context()
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [default-login] Prevent recursive setState on error | 89cd84188 |
Espen Hovlandsdal | [default-login] Treat official provider URLs as non-custom | 83e70f4d7 |
Espen Hovlandsdal | [core] GraphQL: Only use field description if type is string (#1829) | 7d1890aa3 |
Espen Hovlandsdal | [core] Add require.context hook when deploying GraphQL APIs and running scripts (#1831) |
c0bbf418f |
Espen Hovlandsdal | [export] Fix potential crash where response.connection was undefined |
3d0057e00 |
Published by bjoerge over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
null
values.Author | Message | Commit |
---|---|---|
Bjørge Næss | [base] Fix wrong typeof check (#1828) | 379ba250c |
Published by rexxars over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
[object Object]
on certain errors--replace
/--missing
flags on broken referencesAuthor | Message | Commit |
---|---|---|
Espen Hovlandsdal | [cli] Fix CLI printing non-string errors as string | a9d7ed47d |
Espen Hovlandsdal | [core] Fix import suggesting replace/missing flags on broken refs | ea44b2ba7 |
Espen Hovlandsdal | [import] Don't retry reference strengthening errors | e7d9d8511 |
Published by rexxars over 4 years ago
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [export] Only use authorization header if token is provided | 568327848 |
Espen Hovlandsdal | [export] When failing to parse JSON, include line in error | 5cb662893 |
Espen Hovlandsdal | [export] Use explicit connection timeout/read timeouts | 78e2ba144 |
Espen Hovlandsdal | [chore] Fix missing dependencies for build task | ea678514d |
Espen Hovlandsdal | [base] Add typescript definition proxies for structure, initial value templates (#1818) | e92d4802d |
Published by rexxars over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [chore] Require node 10 across packages (#1805) | 4e5c2de11 |
Espen Hovlandsdal | [client] Fix typings for non-document mutation results (#1813) | f56152c99 |
Espen Hovlandsdal | [client] Fix typings for constructor options (useProjectHostname) (#1812) | c4b2cf047 |
Espen Hovlandsdal | [client] Fix incorrect return value type for transaction.serialize() (#1811) | f9dcf13f1 |
Espen Hovlandsdal | [core] Lock terser dependency to 4.6.7 | a68d619a0 |
Published by rexxars over 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 | [components] DefaultDialog: Actually hide close button when 'showClosebutton' is falsy (#1800) | 48453401e |
Espen Hovlandsdal | [core] GraphQL: Use babel loader for ts/tsx files when generating schema (#1801) | 6de67744b |
Shaswat Saxena | [cli] Fix typos in blockContent comments (#1789) |
e55f2c441 |
Bjørge Næss | [chore] Remove Node 8 from .travis.yml (#1793) | 8157ef9a2 |
Espen Hovlandsdal | [export] Catch errors in JSON stream without a statusCode property (#1787) | b633a586c |
Bjørge Næss | [cli] Remove explicit .js extension from path of schema part newly generated projects (#1802) | 8daa25d39 |
Published by bjoerge over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
This release fixes an issue that triggered a flood of console warnings in Studios using in React 16.13.
Author | Message | Commit |
---|---|---|
Bjørge Næss | [chore] Quickfix TS compile order issue (#1794) | 20e8e8d1e |
Bjørge Næss | [base] Improve scheduling of document action state rendering (#1796) | 6da680232 |
Published by saasen over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Per-Kristian Nordnes | Fix toolbar display bugs (#1765) | 29fa828eb |
Espen Hovlandsdal | [desk-tool] Fix incorrect schema type property for validation list (#1766) | eb3a7635f |
Espen Hovlandsdal | [schema] Validate object type previews (#1763) | 7fa1d5222 |
Per-Kristian Nordnes | [test-studio] Upgrade sanity-plugin-dashboard-widget-document-list | bcbc12f18 |
Espen Hovlandsdal | [dashboard] Use observables for fetching, unsubscribe on unmount | 076848ffc |
Espen Hovlandsdal | [studio-hints] Use observables for fetching, unsubscribe on unmount | 070d7e126 |
Thomas Drevon | [test-studio] Add a type for better testing | 042f8a7a3 |
Thomas Drevon | [components] Fix indent | 182594781 |
Thomas Drevon | [form-builder] Extract title assembly logic to a function | 922e903dd |
Thomas Drevon | [schema] Use name as title if title is missing | 8c7019525 |
Thomas Drevon | [test-studio] Expand schema to verify object title is working | be314e6e5 |
Bjørge Næss | [preview] Fetch all fields specified in preview.select even when requesting only a specific preview field (#1780) | f89d8d70a |
vicbergquist | [cli] fix default dataset settings crashing CLI on existing projects (#1777) | 5dfe7d6a9 |
Espen Hovlandsdal | [block-tools] Fix test to be in line with new schema changes (#1783) | 6d581a4c1 |
Bjørge Næss | [chore] Rewrite gulpfile (#1781) | 7e0893b25 |
Published by bjoerge over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
liveEdit
flag enabled.Author | Message | Commit |
---|---|---|
Bjørge Næss | [base] Make sure restoring from history takes liveEdit into account (#1762) | c7e77c89b |
Published by rexxars over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Tom Seisums | [client] Fixed default return type of fetch() (#1760) |
5cae442e0 |
Espen Hovlandsdal | [core] Fix incorrect filename casing on import statement | 0a766fd14 |
Published by rexxars over 4 years ago
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Bjørge Næss | [chore] Prevent lockfiles from being generated on npm install + lerna bootstrap (#1756) | dc7d60de0 |
Bjørge Næss | [chore] Remove storybook from test-studio (#1757) | 68e42efbc |
Espen Hovlandsdal | [client] Typings: Including missing SanityImagePalette definition (#1759) | 96cb157b5 |
Published by saasen over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Read our blog post: “Introducing our new GraphQL API”
We have taken GraphQL out of beta, and introduced a new generation of the schema. The old beta generation will still be available and work as before.
Some of the highlights of the new API:
To use the new generation of the API, update the Sanity CLI and run sanity graphql deploy
. If you have already deployed a GraphQL API, you might want to deploy the new generation with a tag:
sanity graphql deploy --tag next
This will deploy a new endpoint using the next
tag.
Since you now can deploy multiple endpoints, we saw the need for a command in the CLI to list out all your deployed endpoints. This can be done by simply running sanity graphql list
.
Author | Message | Commit |
---|---|---|
Anders Stensaas | [core] GraphQL: Add a tag option when interacting with GraphQL endpoints (#1606) | 0ce072fc8 |
Anders Stensaas | [core] GraphQL: Explicitly add all filters for all types for clarity | c318fde70 |
Anders Stensaas | [core] GraphQL: Dynamically create filters for all types and objects | d6a3f6ba7 |
Anders Stensaas | [core] GraphQL: Fix a bug where the references function wasn't added due to strange syntax | 1366a9a54 |
Espen Hovlandsdal | [core] GraphQL: Check for breaking changes when deploying GraphQL API (#1701) | 0b824d8f2 |
Anders Stensaas | [core] GraphQL: Dynamically generate GraphQL type sortings | 844eb5035 |
Espen Hovlandsdal | [core] GraphQL: Allow deploying legacy GraphQL API generation | ef6c0ff40 |
Espen Hovlandsdal | [cli] Add newline before printed CLI errors | abad5d524 |
Espen Hovlandsdal | [blog-studio] Include form-builder configuration file | 6c5181a02 |
Espen Hovlandsdal | [core] GraphQL: Handle text and email types as strings | e4a31835a |
Espen Hovlandsdal | [core] GraphQL: Use StringFilter for URLs | 9e6f69c21 |
Espen Hovlandsdal | [core] GraphQL: Include reference information on field filters | ee57ee00d |
Espen Hovlandsdal | [core] GraphQL: Set isConstraintFilter property on filters |
e9d8d356e |
Espen Hovlandsdal | [core] GraphQL: Move document filters to separate _ property/type |
7cdac710b |
Espen Hovlandsdal | [core] GraphQL: Move document filters to top of fields list | 26264f6da |
Espen Hovlandsdal | [core] GraphQL: Don't include sorting for reference fields | 65309f91a |
Espen Hovlandsdal | [core] GraphQL: Don't pluralize type queries | 586dde9cf |
Espen Hovlandsdal | [core] GraphQL: Exclude unions from filter generation | 36c9a10dc |
Espen Hovlandsdal | [core] GraphQL: Use lowercase comparators in v2 schemas | ba6336e7d |
Knut Melvær | [core] GraphQL: Specify default generation in help text | 607904924 |
Anders Stensaas | [core] GraphQL: Tweak feedback from CLI when deleting and deploying GraphQL endpoints | 37346a706 |
Anders Stensaas | [core] GraphQL: Rename from "vX" to "genX" in GraphQL | a64a63160 |
Anders Stensaas | [core] GraphQL: Add a CLI command for listing out deployed GraphQL endpoints | d5eb7d306 |
Anders Stensaas | [core] GraphQL: Format output from graphql list command a little better | 7a27fe459 |
Anders Stensaas | [core] GraphQL: Remove in-line mock data when testing graphql list CLI command | 37771b1cb |
Anders Stensaas | [core] GraphQL: Fix a problem where the no endpoints error message was shown regardless of results | 21641c45a |
Anders Stensaas | [core] GraphQL: Align help text of graphql list command with other optionless commands | 3670bacee |
Anders Stensaas | [core] GraphQL: Remove special handling of 404 in graphql list command | 7b026e018 |
Anders Stensaas | [core] GraphQL: Fix an issue where the URL replacer matched on the wrong regex | bbc69458a |
Published by rexxars over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Corey Ward | [validation] Fix invalid disableArrayWarning reference (#1572) |
cbb0bedf7 |
Daniel Roe | [client] Fix typescript definition errors (#1751) | 997fb8642 |
Espen Hovlandsdal | [base] Add missing @sanity/generate-help-url dependency (#1753) | 14e1776d4 |
Published by rexxars over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
New extension points for creating custom workflows:
Read blog post: “Releasing Document Actions: Workflows, Your Way”
source
function not supporting asynchronous resolvingAuthor | Message | Commit |
---|---|---|
Espen Hovlandsdal | [cli] Use more fool-proof status code check for auth errors (#1744) | dbad671de |
Espen Hovlandsdal | [test-studio] Make validation schema work | edb42509c |
Espen Hovlandsdal | [desk-tool] Count both errors and warnings when showing validation marker count | e44e40544 |
Espen Hovlandsdal | [desk-tool] Allow publish action on validation warnings | cd0e9c0e4 |
Espen Hovlandsdal | [test-studio] Add example of async slug source | 6a8fa9315 |
Espen Hovlandsdal | [form-builder] Fix slug source not supporting asynchronous resolving | eb049e1bc |
Published by bjoerge over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
We have done a couple of stability fixes and performance fixes that should improve the overall editing experience.
We have also done a lot of restructuring of the internal Studio codebase to enable some long awaited features. Stay tuned!
Author | Message | Commit |
---|---|---|
Bjørge Næss | [chore] Tidy up package json deps and versions | bb9baf86a |
Bjørge Næss | [chore] Disable noUnusedLocals tsconfig | d2501a1e5 |
Bjørge Næss | [base] Inline document store | a71c343e7 |
Bjørge Næss | [document-store] Remove package (for now) | 02f81e9b6 |
Bjørge Næss | [desk-tool] Enable TypeScript | 9cb1ec0dc |
Bjørge Næss | [form-builder] Make FormField and Object Field pure components | 06d11c37b |
Bjørge Næss | [mutator] Make commit async and make sure onConsistencyChanged emits proper state updates | f49ada03a |
Bjørge Næss | [mutator] Export MutationParams type | 68a80c9d3 |
Bjørge Næss | [base] Add infrastructure for document-actions | 87d929992 |
Bjørge Næss | [base] Allow passing initialValue to patch | 407f675e9 |
Bjørge Næss | [base] Improve document operation execution pipeline | f82045c4f |
Bjørge Næss | [react-hooks] Add @sanity/react-hooks package | a556ab4c4 |
Bjørge Næss | [form-builder] Deprecate checkoutPair and move receiveEvent to SanityFormBuilderContext | 78f4aefe3 |
Bjørge Næss | [desk-tool] Implement desk tool actions on top of new actions/operations infra | 6ad1b44d4 |
Bjørge Næss | [desk-tool] Add a component for showing document operation results | 152a75439 |
Bjørge Næss | [desk-tool] Pass through keyboard shortcuts not handled by document actions | 5e48965fd |
Bjørge Næss | [test-studio] Add an actions playground tool | 54771f37b |
Bjørge Næss | [test-studio] Add some custom document actions and badges to test-studio | 7667f9787 |
Bjørge Næss | [base/desk-tool] Enable autocommit by default | ba253ef71 |
Bjørge Næss | [desk-tool] Pass initialValue to patch | ab61f0802 |
Espen Hovlandsdal | [desk-tool] Only reset state when mounting/unmounting | 6415ee71d |
Bjørge Næss | [desk-tool] Make loading state dependent on connection state | 832b66bb1 |
Bjørge Næss | [react-hooks] Change return value from useConnectionState to connected/connecting/reconnecting | f952dadf1 |
Bjørge Næss | [desk-tool] Prevent publish action component from publishing before sync/validation has completed | 8690d43bc |
Bjørge Næss | [desk-tool] Edit snackbar messages | bb174a9e1 |
Espen Hovlandsdal | [desk-tool] Fix history being stuck in loading mode after restore | 133f67ff7 |
Espen Hovlandsdal | [structure] Resolve intents based on documentListItem IDs if possible | bd34ce1c6 |
Published by skogsmaskin over 4 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Victoria Bergquist | [cli] prevent cli logout on auth errors (#1741) | ef1a831f5 |
Victoria Bergquist | [default-layout] fix sidecar z-index issue (#1740) | d86eb5fd2 |
Per-Kristian Nordnes | [form-builder] Undo plugin must ensure that placeholder prop is removed (#1742) | 8641f2f62 |