sanity

Sanity Studio – Rapidly configure content workspaces powered by structured content

MIT License

Downloads
9.5M
Stars
5.2K
Committers
128

Bot releases are hidden (Show)

sanity - v3.0.0-dev-preview.17

Published by rexxars about 2 years ago

🐛 Notable bugfixes

  • Fixes an issue where CLI templates would import from the wrong module in dev-preview.16

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(cli): import from sanity, not @sanity/types db3445178
sanity - v3.0.0-dev-preview.16

Published by rexxars about 2 years ago

✨ Highlights

Less custom input boilerplate

This release introduces a new spreadable elementProps property to all input components.

This currently includes things like onFocus/onBlur event handlers, ref, value (for primitive inputs) and an onChange that handles "native" React change events and emits the correct patches.

The intention is that you can safely pass (or "spread") these on to any "native" input element. This reduces the amount of boilerplate needed for custom inputs - especially those dealing with primitive values, and handles things like unsetting the field if the value is empty, extracting the value from a change event and similar.

For inputs dealing with complex values (objects and arrays), value is not included in elementProps, since it doesn't make sense to pass it to any native input.

This change also includes moving the change indicator rendering from individual primitive input components to their corresponding field component instead. This means even less boilerplate is needed in order to render a simple input component. In the future, we will provide a way to opt-out of this behavior, should you wish to handle the rendering of the change indicator yourself.

These changes means that in essence, all you need for the most basic custom string input would be:

import React from 'react'
import {StringInputProps} from 'sanity'

function StringInput(props: StringInputProps) {
  return <input type="text" {...props.elementProps} />
}

Note that this change means that input components will receive two "values" - props.value will now be of the "parsed" type defined in the schema (e.g. number), while elementProps.value will always be a string, since its intended to being forwarded as an attribute to the native HTML input element.

Context improvements

Custom validation functions and initial value resolvers now gets an extended context parameter passed to them, which includes the schema, the current user and a getClient() function.

Other features

  • Now prints a warning when attempting to use an array with layout: 'tags' and a preconfigured list of options
  • Now supports URL imports in sanity.config.ts
  • Custom diff components are now supported and can be specified on schema types using the components.diff property
  • A logo can now be passed to the configuration and will be rendered in the navigation bar. Note that this property name might change in an upcoming release, but we are including it for people who want to start working on the rendering of their studio logos.
  • Studio loading should be between 50-300ms faster

BREAKING CHANGES

This release includes a few breaking changes:

Versioned client

The useClient() hook now requires you to pass an API version, for instance: useClient({apiVersion: '2022-09-14'}). This allows us to upgrade the API version used throughout the studio without breaking any custom queries or other requests performed from user code.

Similarily, the client property in various contexts (validation, config, initial value resolvers) is deprecated - instead there is a getClient() method attached to the context which takes the same API version configuration.

Router imports

Router imports have been moved from sanity/_unstable to sanity.

🐛 Notable bugfixes

  • Fixes an issue where the reference input would sometimes be stuck in an initial loading phase
  • Fixes an issue causing the tags layout not to work for string array inputs
  • Fixes an issue where the content inside of a portable text annotation popover would sometimes not be displayed
  • Fixes placement of custom markers in the portable text editor
  • Fixes an issue where closing an empty array item would not automatically remove the item
  • Fixes an issue where aliased schema types would get an extra layer of indentation in forms
  • Fixes a peer dependency issue in @sanity/vision potentially causing installs to fail
  • Fixes icons not being shown in certain structure panes
  • Fixes an issue where previews using values from a schema type with a preconfigured list of options would use the name instead of the title
  • Fixes an issue where fieldsets would not respect the readOnly property
  • Fixes an issue where after hot-module reloading had been applied, some schema properties would not be reflected on Webpack-based environments such as Next.js
  • Fixes an issue where the error screens would not be reset after a hot-module reload
  • Fixes a bug where an invalid/expired session might cause the authentication screen to continously fail

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(vision): temporarily remove sanity peer dep while in preview 0ba345fed
Herman Wikner feat(validation): add array validation when using tags layout with list in options 443a734f3
Herman Wikner feat(form): render TagsArrayInput before OptionsArray 260e0507e
Herman Wikner fix(form): placement of custom markers in portable text editor 8f048efd4
Herman Wikner fix(form): only enable focus of ArrayItem when the dialog is closed 632151adb
Cody Olsen fix(server): allow URL imports (#3536) 32f120fbb
Marius Lundgård build: fix package versions 06f93b926
Marius Lundgård build: update design system 6c883dee2
Marius Lundgård build: add jsonc-parser dependency cfc8ae8c1
Marius Lundgård feat(pkg-utils): respect target of tsconfig file 5941e5151
Marius Lundgård build(portable-text-editor): set build target to ES2019 8b1e844af
Espen Hovlandsdal fix(form): remove unnecessary placement prop for popover dialog 15316c110
Espen Hovlandsdal fix(next-studio): allow routing at any depth aac001d78
Espen Hovlandsdal refactor(test-studio): pass whole schema type to group builder 2e1969182
Espen Hovlandsdal fix(desk): pass whole schema type to item and list builder 07004761a
Espen Hovlandsdal test(form): update snapshot for @sanity/ui update 608803f2b
Marius Lundgård build: update design system 206c1880d
Herman Wikner fix(desk): update getSchemaType in ListItemBuilder ad7d72440
Herman Wikner chore(types): add diff to components in BaseDefinitionOptions and BaseSchemaType 947398103
Herman Wikner feat(field): use components.diff instead of diffComponent in resolveDiffComponent 64a4d42c1
Espen Hovlandsdal docs(vision): fix usage example in readme 5cd170096
Marius Lundgård build: update @sanity/tsdoc-to-portable-text b490d7259
Marius Lundgård build: define API extraction reporting settings 47bea8ed1
Marius Lundgård build: update etl script c95e2e6de
Bjørge Næss feat(form): introduce spreadable "elementProps" to reduce custom input boilerplate ac6016846
Espen Hovlandsdal fix(config): include logo in resolved studio config 96d61b31e
Marius Lundgård test(portable-text-editor): increase timeout 66b176607
Marius Lundgård build: update design system cd2aa9193
Marius Lundgård fix(sanity): use correct icon in document list context menu f0e18d16d
Herman Wikner fix(form): always return SanityPreview in defaultResolvePreviewComponent since SanityPreview takes care of resolving the preview component 88363f9d7
Marius Lundgård build: update design system 83bd89c57
Per-Kristian Nordnes fix(form): fix issue where ref.input auto complete was disabled initially 949dba48a
Per-Kristian Nordnes fix(preview): string of options must return option value for preview, not the title 7bdfd2923
Herman Wikner fix(form): read only fieldsets 520535ab1
Marius Lundgård build: remove etl exit code override d49a27d0d
Marius Lundgård build: update etl script 9feb8f3a8
Marius Lundgård build: update etl script 16d160fa3
Per-Kristian Nordnes chore: upgrade eslint and @sanity/ui-workshop to avoid peer legacy deps f6a4c5b14
Bjørge Næss refactor(form): hide 'parents' argument in immutableReconcile 5b9fdb972
Bjørge Næss fix(types): make disableNew optional for reference types 66273587f
Marius Lundgård chore(deps): update design system dependencies 8ae766397
Espen Hovlandsdal fix(hooks): short-circuit invalid dates in useTimeAgo hook 3ff700e43
Espen Hovlandsdal fix(form): handle number and boolean changes in elementProps (#3580) 796227ec3
Espen Hovlandsdal fix(datastores): memoize edit state in document store instance (#3565) 1eab7ba89
Espen Hovlandsdal fix(studio): reset error boundaries on hot module reload 67a83cc3a
Bjørge Næss fix(base): improve correctness of error check 58d8bce29
Espen Hovlandsdal chore: upgrade dependencies 35d31f326
Espen Hovlandsdal chore: fix typescript 4.8 typing issues 37786984e
Snorre Eskeland Brekke chore(deps): downgraded @sanity/logos to 1.1.15 506579ab3
Snorre Eskeland Brekke feat: context available to initialValue function and added schema to validation context deb115da9
Marius Lundgård chore(deps): update design system dependencies cd9721740
Espen Hovlandsdal chore(deps): temporarily pin logos package to 1.1.5 76262a0f5
Per-Kristian Nordnes fix(form): fix issue with popover content not displaying 673e81a69
Espen Hovlandsdal fix: move presence menu to leftmost position in navbar d1729464d
Espen Hovlandsdal feat(types): add missing Geopoint data type 3f3492802
Snorre Eskeland Brekke chore: removed some debug logging 35065be5a
Marius Lundgård refactor(sanity): export router members from main export 8b8f3d642
Marius Lundgård refactor(sanity): update router api and exports bfedd3ca8
Marius Lundgård refactor(vision): update router imports 919aee559
Marius Lundgård refactor(test-studio): adjust router imports a37093def
Espen Hovlandsdal refactor(datastores): optimize cors check, clear token on 401 852cf861e
Snorre Eskeland Brekke feat: defineType second pass 66e562428
Espen Hovlandsdal fix(form): apply JSON syntax highlighting on unknown array item value 4560afdb5
Espen Hovlandsdal feat(cli): use define helpers for template schema types 69d8cae5d
Snorre Eskeland Brekke fix: empty array items are deleted when edit modal is closed 77beb1220
Snorre Eskeland Brekke fix: corrected object level indentation for slug and alias types (#3638) 90c2bb96c
Snorre Eskeland Brekke fix: dark-mode checkerboard for images dc8a1c884
Espen Hovlandsdal chore(deps): upgrade @sanity/client to 3.4.1 58d7a7378
Espen Hovlandsdal fix(datastores): disallow reconfiguration of source client 688963298
Espen Hovlandsdal feat!: require api version when using client, freeze config fd5065a75
Espen Hovlandsdal chore: provide an API version where clients are used 880856a53
Espen Hovlandsdal feat: temporarily provide backwards compatibility with versionless client e1028038d
Espen Hovlandsdal test: provide correct mocks for updated getClient implementation 5d55e65b8
Espen Hovlandsdal chore(types): normalize react dependency version 4e449ea67
sanity -

Published by ninaandal about 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes styling of a columnar fieldsets
  • Fixes an issue where older versions of Safari might crash when opening a referenced document
  • Fixes an issue with the cursor disappearing when arrowing down to the bottom of a collapsed Portable Text Input field
  • Fixes a Safari issue where the Portable Text editor's selection is reset when returning from an object edit modal of an embedded Portable Text object
  • Improved read only mode for the Portable Text Input

📓 Full changelog

Author Message Commit
Nina Andal Aarvik fix(base): add alignment styling to a columnar fieldset (#3279) 3f450c6d2a
Espen Hovlandsdal fix(desk-tool): check for valid resize observer entry before use (#3615) 5d424588ab
Per-Kristian Nordnes fix(form-builder): wrap non contentEditable in basic div 7f8c23185e
Per-Kristian Nordnes fix(form-builder): fix issue where Safari wasn't keeping the editor selection when editing objects 7d1cdbdc66
Espen Hovlandsdal fix(field): use correct type constraint for useRefValue 03774298b2
Per-Kristian Nordnes refactor(form-builder): improve PT-input readOnly mode 49b0aaea37
Per-Kristian Nordnes chore: update to latest v3 PTE f732858f7e
Per-Kristian Nordnes refactor(form-builder): simplify readOnly PT-input colors 75af89d94c
Per-Kristian Nordnes refactor(form-builder): remove redundant key handler 6202c398ba
sanity - v2.33.0

Published by rexxars about 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Performance improvements

This release brings a number of performance improvements, mostly related to excessive re-rendering of components that do not change. Notable improvements are:

  • Better performance for presence indicators when many users are logged in at the same time
  • The Portable Text Editor should be faster and re-render less often

🐛 Notable bugfixes

  • Mitigated an issue that could cause a draft document to be overwritten by an earlier version after publish
  • The Presence list in the toolbar will now only show users who are working in the same dataset

📓 Full changelog

Author Message Commit
Bjørge Næss fix(mutator): minor typing fix 792af474e2
Per-Kristian Nordnes fix(base): fix lint issues with defaultProps 37bafc8778
Per-Kristian Nordnes fix(base): remove inline function passed as prop a8674eef64
Per-Kristian Nordnes fix(dev): fix some issues in example studio custom PT input fe928429a3
Espen Hovlandsdal fix(hooks): short-circuit invalid dates in useTimeAgo hook 4dac11227c
Per-Kristian Nordnes chore(gulpfile): fix issue with watch command 48d791d7cd
RitaDias fix(base): defer connection to presence client (#3590) 76176b1fe4
Bjørge Næss perf(form-builder): skip passing parent for schema types with no conditional fields 24baddc0a8
Bjørge Næss fix(react-hooks): fix useDocumentOperation typing 76bfd06a56
Bjørge Næss refactor(base): clean up document operation typings f65743a370
Bjørge Næss refactor(base): replace commit handler with stream of commit requests 4d4454334e
Bjørge Næss refactor: handle latency better during document publish c961ce4e81
Bjørge Næss fix(desk-tool): add useCondionalToast hook as workaround for missing @sanity/ui feature 5efb741753
Bjørge Næss fix(base): improve correctness of error check 8e8e33ac63
Espen Hovlandsdal refactor: optimize global/document presence 090e0a9ac2
Espen Hovlandsdal refactor: optimize document form presence e7a4f14911
Espen Hovlandsdal refactor: only subscribe to full presence info when menu is open 024e5c4442
Per-Kristian Nordnes chore: remove @sanity/portable-text-editor 8644e1156c
Per-Kristian Nordnes refactor(form-builder): update PT-input to work with v3 version of the PTE ba1b8a53f8
Per-Kristian Nordnes chore(language-filter): ignore ts-error due to incorrect Lerna hoisting of @sanity/types e8c993334a
Per-Kristian Nordnes chore(form-builder): update to latest v3 PTE version f6978b878d
Bjørge Næss perf: split change indicator context into frequent/less frequent updating values e6a4b4085a
sanity - v2.32.0

Published by hermanwikner about 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Accessibility improvements

  • Screen readers will now identify that the main language in the Studio is English
  • Various accessibility improvements

📓 Full changelog

Author Message Commit
Bjørge Næss fix(desk-tool): fix publish button tooltip displaying 'now ago' 89c2ed0e7
Fred Carlsen feat(cli): prefix commands if using npx (#3602) c4a87c755
Kitty Giraudel refactor(desk-tool): remove unnecessary tabindex attribute (#3570) 14ec874f3
Kitty Giraudel refactor(default-layout): Add an accessible name to the presence menu button (#3569) cb2b05ca6
Kitty Giraudel refactor(desk-tool): Connect the review changes button and its tooltip (#3567) 85717f64b
Kitty Giraudel refactor(base): Ensure image previews in PT have an alt attribute (#3566) 19403771f
Kitty Giraudel refactor(base, server): Add missing document language to Sanity Studio (#3307) 60d973f3f
RitaDias fix(default-layout): fix type missing in presence menu (#3605) 5ee4f20e5
sanity - v2.31.1

Published by sjelfull about 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixed an issue where incorrect references to image and file assets would crash the studio and display invalid diffs

📓 Full changelog

Author Message Commit
Nina Andal Aarvik fix: remove muted prop from text inside every tooltip in the studio (#3559) b91c0b9ea
Marius Lundgård build: update design system 86d9dc3ad
Marius Lundgård build: align react-refractor version 490d8a34f
Fred Carlsen fix(form-builder): check for invalid image/file values, provide reset option (#3560) e160d06fd
sanity -

Published by bjoerge about 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Improved search 🕵️

Improved search

  • Adds support for filtering search results by any number of document types. You can also browse documents from any number of types without entering a search query.
  • Search is now toggleable with a hotkey (Command/Control-K) and fully navigable by keyboard.
  • Recent searches (including selected document types) are stored for later use
  • Search terms and results are retained upon close: handy if you want to quickly revisit or amend your last search
  • Improves performance when rendering and scrolling through large result sets
  • The search dialog is wider, giving you more space for the search result listing

NOTE: Documents listed in search results will no longer resolve custom components for block content and array views

🐛 Notable bugfixes

  • Fixes a case where sanity init would fail if ran inside of a yarn workspaces/monorepo setup in certain cases
  • Fixes a case where sanity init would fail if ran inside of a yarn workspaces/monorepo setup in certain cases
  • Fixes an issue with initialValueTemplates() being overridden if you called other methods after it
  • Fixes an issue potentially causing npm to go into an infinite loop when installing @sanity/core

📓 Full changelog

Author Message Commit
Fred Carlsen fix(form-builder): make sure to forward ref for object input with tabs (#3522) 900419aed9
Espen Hovlandsdal fix(server): work around npm peer dependency issue 7ab7b4de3a
Espen Hovlandsdal fix(form-builder): remove unnecessary popover dialog placement prop d1e8951994
Fred Carlsen fix(structure): fix regression with initialValueTemplates being overridden (#3540) d76570d8d5
Espen Hovlandsdal fix(cli): work around edge-case when unable to resolve @sanity/core 3824db4ce0
Robin Pyon feat(default-layout): search improvements (#3525) 52eb23609d
sanity - v3.0.0-dev-preview.15

Published by rexxars about 2 years ago

🐛 Notable bugfixes

  • Fixes a bug causing built studios to get a React hooks/minification error
  • Fixes a few performance and stability issues in the Portable Text editor
  • Fixes a bug where string array fields would not allow list option to have plain strings
  • Fixes a few UI bugs with the array of tags input

📓 Full changelog

Author Message Commit
Herman Wikner feat(types): update list in ArrayOptions to support string 44509ff1e
Herman Wikner feat(form): update title in OptionsArrayInput 958d8035d
Herman Wikner feat(form): skip rendering of level ui for array of tags 8981ee91c
Herman Wikner test(dev): update arrays schema 5abfe3a37
Per-Kristian Nordnes fix(portable-text-editor): fix missing props.value updates 6a5c972e0
Per-Kristian Nordnes refactor(portable-text-editor): simplify equality test 9565cbda7
Per-Kristian Nordnes refactor(portable-text-editor): add code improvements and comments for value sync 9f0f4c2b7
Per-Kristian Nordnes refactor(portable-text-editor): remove unused code f7adfec4d
Per-Kristian Nordnes refactor(portable-text-editor): remove value as a dep from Editable comp. 7cb19019b
Per-Kristian Nordnes refactor(portable-text-editor): better value handling fe941713b
Per-Kristian Nordnes fix(portable-text-editor): fix bugs in patchToOperations 42f771dca
Per-Kristian Nordnes test(portable-text-editor): add tests for patchToOperations 173874757
Per-Kristian Nordnes test(portable-text-editor): fix issues with tests 365a3f74e
Herman Wikner fix(desk): navigateIntent only worked once d7d15ddfc
Espen Hovlandsdal fix(server): drop unnecessary hashing causing deploy issues 8b3311f87
sanity - v3.0.0-dev-preview.14

Published by rexxars about 2 years ago

🐛 Notable bugfixes

  • Fixes a bug where the sanity dataset export command might fail to export assets because of an authorization error
  • Fixes a bug where the sanity dataset export command might fail due to a hash mismatch
  • Fixes a bug where the sanity build/sanity deploy commands might fail because of a virtual entry module used in the vite config
  • Fixes an issue where the Sanity CLI would fail to use the correct Sanity version if both Sanity v2 and Sanity v3 was found in the same directory tree

📓 Full changelog

Author Message Commit
Marius Lundgård fix(sanity): fix hooks dependencies b3044449c
Marius Lundgård feat(sanity): export useFormBuilder hook 271a167a4
Marius Lundgård feat(sanity): keep collapsed paths in form builder context 30e6bc82f
Marius Lundgård test(sanity): update collapsed paths value 36bd258ca
Marius Lundgård fix(sanity): collect render middleware recursively 946ca616e
Marius Lundgård feat(sanity): add document.unstable_languageFilter to Config API 3f1a4d9cd
Marius Lundgård WIP: test-studio c7f9127e9
Espen Hovlandsdal test: move TestProvider to testUtils as it is more generic than forms 0466adf08
Espen Hovlandsdal test(datastores): fix useDocumentType tests a1fc4caf2
Espen Hovlandsdal test(desk): fix resolve intent tests af975ddac
Espen Hovlandsdal test(datastores): fix template permissions test 8ca79343f
Espen Hovlandsdal test: fix weird indirection of config properties d3a7a264b
Espen Hovlandsdal test(form): remove unused boolean input snapsnhots 1dcdda159
Espen Hovlandsdal test(form): fix object fieldset tests ee9fb5093
Espen Hovlandsdal chore(dev-studio): remove unused import a549154de
Espen Hovlandsdal refactor(form): remove unused callback handlers cbf9aeaf0
Espen Hovlandsdal test(form): fix conditional property tests 3d8519e3f
Espen Hovlandsdal test(util): swallow expected error in observable hook factory test f322c7e86
Espen Hovlandsdal test: remove unused test 5cfd2a346
Espen Hovlandsdal fix(export): only set authorization header if token exists 5654dc41c
Dain Cilke feat(export): check sha1 hash first 817709e72
Dain Cilke fix(export): allow either hash check e68957fa4
Espen Hovlandsdal test(import): silence warning caused by mocked http request ebc667310
Espen Hovlandsdal test(validation): temporarily skip nested markDefs test 658532a29
Espen Hovlandsdal refactor(scripts): print deleted paths on CLI test 37314c686
Espen Hovlandsdal fix(cli): more robust test for entry import a81ad785a
Espen Hovlandsdal feat(server): drop use of virtual entry module c5898f490
Espen Hovlandsdal fix(cli): skip interactive package manager prompt in unattended mode 4eaafa842
Espen Hovlandsdal test(portable-text-editor): check for browser before attempting to close 706d654b7
Espen Hovlandsdal test(portable-text-editor): fix typescript/eslint errors in collaborative tests e9b4c7de7
Espen Hovlandsdal fix(cli): default to listening on localhost 13069952d
Espen Hovlandsdal test(cli): use undici for dev server connect tests 2d7a380c2
Espen Hovlandsdal fix(cli): when v2 and v3 is found, use most similar path 176daf151
Espen Hovlandsdal fix: export missing workspace types ef5847fcf
Espen Hovlandsdal chore(etl): show warnings first, then errors e818004f4
Espen Hovlandsdal test(cli): generate workshop scopes before building test-studio e82b4c4ea
Espen Hovlandsdal ci: install chrome before running tests 00ac4df18
Espen Hovlandsdal ci: use stable chrome, pass chrome path as launch options 04fa54d72
Espen Hovlandsdal ci: refactor CLI test script d492b8e17
Espen Hovlandsdal ci: temporarily allow failures in etl job 534d3a952
Espen Hovlandsdal test(block-tools): update snapshots to account for schema type titles 53fe20cb0
Espen Hovlandsdal test(cli): add missing await on cleanup e80c6ea02
sanity - v3.0.0-dev-preview.13

Published by rexxars about 2 years ago

✨ Highlights

Vision v3: Query GROQ from the Studio

The @sanity/vision plugin now supports Sanity Studio version 3! Use the dev-preview tag when installing it:

npm install @sanity/vision@dev-preview

To enable it, import the vision plugin and add it to the plugins array in your sanity.config.ts/sanity.config.js file:

import {visionTool} from '@sanity/vision'

export default createConfig([
  {
    // ... other configuration ...
    plugins: [
      deskTool(),
      visionTool({
        defaultApiVersion: '2022-08-15' // optional
        defaultDataset: 'production'    // optional
      }),
      // ... other plugins ...
    ],
  },
])

Learn how to only load the plugin in development mode (that is, not enabling it when deployed to production) in Vision's documentation.

Vision v3 also supports dark mode and Studio themes, as well as letting you cancel in-progress queries.

Other features

  • The development server and build tooling now use Vite 3
  • If the Studio does not have the correct CORS origin setup, an error dialog will now be displayed to indicate this
  • Improve configuration validation of workspaces
  • Allow omitting the name and basePath properties if only a single workspace is defined
  • Improved appearance of the Studio error boundary
  • Improved performance of the Portable Text Editor
  • Implemented fallback message for browsers where JavaScript is disabled
  • sanity build/sanity deploy up to 5x faster
  • Presence is now supported for users using cookieless authentication
  • When a user does not have access to the Studio but is authenticated, the login provider used is now displayed

🐛 Notable bugfixes

  • Fixes an issue where readOnly would not be respected in certain cases
  • Removes a few peer dependency warnings
  • Fixes an issue where installing dependencies using yarn when creating new projects might fail if yarn 3 was used
  • Fixes display of arrays with layout: 'grid'
  • Fixes the development server not allowing the use of _document.js with JSX
  • Fixes incorrectly typed props for user pane view components
  • Improves the accessibility of image actions menu
  • Fixes an issue where opening the image actions menu on image inputs inside of portals would not work
  • Fixes an issue where certain edit dialogs would say Edit undefined instead of Edit file (or similar)
  • Fixes a potential crash if the file and image fields had incorrect values. Now provides an option to reset the value
  • Fixes an issue where a large amount of references in a document might crash when attempting to validate the document
  • Fixes an issue where cookieless auth users might see an error about being unable to align history
  • Fixes an issue where the upgrade dialog would not use the correct dark/light mode
  • Fixes an issue where inline types for arrays could be given the same name as globally defined types
  • Fixes an issue where icons for field groups would not be displayed

📓 Full changelog

Author Message Commit
Espen Hovlandsdal chore(test-studio): add array of references to arrays test f783d8112
Espen Hovlandsdal chore: add missing esbuild dependency for sanity module 3078f76c0
Espen Hovlandsdal chore: normalize esbuild version throughout the monorepo f04910701
Espen Hovlandsdal fix(portable-text-editor): suppress esbuild jsx transformation warning 7bbf891df
Espen Hovlandsdal chore: upgrade vite to v3 3e75e3e7a
Espen Hovlandsdal chore: upgrade @sanity/client to v3.3.3 a4c43bcf5
Espen Hovlandsdal chore(test-studio): add dataset to cli config 93d81936c
Espen Hovlandsdal chore: bring back vercel config 274c95b7a
Espen Hovlandsdal chore: upgrade jsdom to 20.0.0 06b9cbc6c
Espen Hovlandsdal fix(cli): drop --check-files flag for yarn 3 compatibility a57716932
Herman Wikner fix(form): fix broken array grid layout 9c5548412
Espen Hovlandsdal fix(server): use tsx loader even for .js extensions b99418c4f
Espen Hovlandsdal fix(server): only swallow module not found errors when importing document cc2b3c873
Espen Hovlandsdal fix(desk): correct prop typings for pane view components b0ccfc3b8
Espen Hovlandsdal feat!(datastores): remove deprecated document APIs from v1 c6cabbffd
Espen Hovlandsdal fix(cli): add missing dependency 79da53726
Espen Hovlandsdal fix(server): use jsx loader for .js document files, default loader setup for others 99f4dc493
Espen Hovlandsdal feat(server): warn when document component did not export expected type a3f6fded5
Herman Wikner feat(datastores): add cors origin check when fetching current user in createAuthStore 75129afdb
Herman Wikner feat(studio): add CorsOriginErrorScreen e1b976d3d
Herman Wikner feat(studio): add CorsOriginErrorScreen to StudioErrorBoundary 2b950e1c4
Herman Wikner feat(datastores): add promise to check for cors origin errors 6489a3263
Per-Kristian Nordnes fix(forms): fix bug with openField/closeField 3b4d91365
Herman Wikner fix(form): a11y issues on image actions menu c924653c2
Per-Kristian Nordnes fix(forms): fix Image Input menu button now activating inside portals ddc8dfbaa
Espen Hovlandsdal fix(test-studio): use lowercase workspace names 0cf4434ec
Espen Hovlandsdal reactor(config): skip name from config resolution error if empty 951dbc6f2
Espen Hovlandsdal feat(workspaces): add more validation of basePath and names 82df86a13
Espen Hovlandsdal feat(config): define SingleWorkspace type, allow omitting basePath, name e9da1a20b
Espen Hovlandsdal feat(config): run workspace validation in prepareConfig step 8155b398f
Espen Hovlandsdal refactor(errors): make studio error boundary UI mirror schema error 81bb95138
Espen Hovlandsdal feat(workspaces): add "navigate to default workspace" on not found screen 5c1790ffd
Espen Hovlandsdal test(workspaces): update outdated test snapshot 43b4bd888
Espen Hovlandsdal test(datastores): fix broken document operation tests c27efd1cc
Espen Hovlandsdal chore(test-studio): add vision to test-studio 35bfdd982
Espen Hovlandsdal feat(vision): upgrade to v3, modernize, upgrade dependencies 32e468649
Espen Hovlandsdal feat(vision): allow specifying a default dataset 0f2cea48d
Espen Hovlandsdal feat(vision): push toast indicating URL has been copied 30243f171
Espen Hovlandsdal feat(vision): push toast indicating that listener has been set up aca200f0a
Espen Hovlandsdal feat(vision): push toast indicating that pasted URL was parsed 08a4c1f96
Espen Hovlandsdal feat(vision): show spinner while waiting for first listener event d7be81dff
Espen Hovlandsdal feat(vision): allow cancelling query a85501785
Espen Hovlandsdal chore(desk): upgrade react-json-inspector 11f20c9d1
Herman Wikner fix(form): update readOnly properties in formState 16fcdda47
Herman Wikner dev(test-studio): update conditionalFields schema 6c7c2881c
Herman Wikner fix(form): pass readOnly to input in OptionsArrayInput fb78bb746
Bjørge Næss chore(form): simplify and optimize conditional callback resolution a little bit 6741dab0b
Bjørge Næss chore(form): rename function callConditionalProperty => resolveConditionalProperty a7b66d744
Per-Kristian Nordnes refactor(form): use global keyDown hook for Image action menu 3cdbdbf90
Per-Kristian Nordnes chore(portable-text-editor): upgrade to latest slate and slate-react 51add2452
Per-Kristian Nordnes refactor(portable-text-editor): Performance refactor bebe9342c
Per-Kristian Nordnes test(portable-text-editor): update and add tests for latest refactor 3cc1319c7
Per-Kristian Nordnes test(inputs): add visual re-render debug to PTE Text blocks 8bda33ae9
Per-Kristian Nordnes refactor(inputs): update new patch observable type for PTE e7f36a59f
Per-Kristian Nordnes refactor(inputs): improve fullscreen and activation re-rendering d6d8aa7f4
Per-Kristian Nordnes test(dev): update dev studio schemas 40790412c
Per-Kristian Nordnes fix(inputs): fix issue with scrolling to field and focus PTE on activation 6feb4f24e
Per-Kristian Nordnes fix(portable-text-editor): don't use Object as const name a6b26ca24
Per-Kristian Nordnes refactor(portable-text-edior): keep consistency in pattern 80e248204
Per-Kristian Nordnes fix(portable-text-editor): add default value when there are no previous value. 10167b27e
Per-Kristian Nordnes test(portable-text-editor): update test server start script for vite 3 6a485e6a1
Per-Kristian Nordnes test(portable-text-editor): tsconfig for test suite 502e23be3
Per-Kristian Nordnes fix(form): fix PTE focus handling issue 324b3fb7e
Per-Kristian Nordnes chore: update yarn.lock c66d93795
Herman Wikner feat(form): add helper function to get correct field level in inputResolver 86f8b4864
Espen Hovlandsdal chore: remove unnecessary typings files c18cf5d17
Espen Hovlandsdal feat: add javascript disabled fallback 2ff43ca35
Espen Hovlandsdal ci: optimize vercel builds d9153bd33
Espen Hovlandsdal fix(server): optimize sanity build/sanity deploy 2e00ef3a7
Espen Hovlandsdal fix(form): use most specific title for schema type in modal header 06f862ab9
Espen Hovlandsdal fix(schema): add titles for built-in types 1bb59ab12
Espen Hovlandsdal chore: upgrade asset-utils to v1.2.5 5e096f181
Espen Hovlandsdal fix(form): check for invalid image value, provide reset option b7b308f31
Espen Hovlandsdal fix(form): check for invalid file value, provide reset option d21f91735
Espen Hovlandsdal fix(server): use stricter entry file checks 4dac479b2
Espen Hovlandsdal fix(preview): chunk document availability ids on id length d64aefd0d
Espen Hovlandsdal fix(desk): resolve schema type from template if possible 93081f51a
Espen Hovlandsdal feat(datastores): allow listenQuery to have separate listen and fetch queries 9c37c8638
Espen Hovlandsdal feat(datastores): allow listenQuery to specify relevant transitions 4e401503c
Espen Hovlandsdal feat(datastores): allow listenQuery to specify custom throttle time c1855f400
Espen Hovlandsdal fix(desk): only refetch references on appear/disappear 221628b9d
Espen Hovlandsdal fix(desk): use longer throttle time when refetching references 41661191b
Espen Hovlandsdal refactor(desk): check for document existence before checking ref count 6919ea54d
Espen Hovlandsdal refactor(desk): add request tag to external refs check e08ecd5a5
Dan Michael O. Heggø fix(types): add params to MutationSelection type 4eb7b0c9b
Espen Hovlandsdal chore(util): upgrade moment to latest version 81939b7be
Espen Hovlandsdal feat(config): support presence for cookieless auth users ce8d27a50
Espen Hovlandsdal feat: show current auth provider on not authenticated screen a1895fd94
Espen Hovlandsdal fix(datastores): use auth token for history request if available cf1ce0d2b
Espen Hovlandsdal chore(test-studio): add playlist/playlistTrack schema types fd1160368
Bjørge Næss fix(navbar): use root scheme for changelog dialog b6b8d5eec
Bjørge Næss feat: add a "configuration issues" button + dialog to the global nav bar in development ab1cdefb5
Herman Wikner feat(studio): move note in ConfigIssuesButton to the dialog header 83381528b
Marius Lundgård build: add groq package to root clean script 8b80b6d4d
Bjørge Næss fix(form): pass layout option from array input 5ee4151f7
Bjørge Næss feat(schema): add validation to disallow array members with same name as bulitin types ce862bde4
Espen Hovlandsdal chore(schema): temporarily work around readonly type issue 8d1f0eedb
Herman Wikner fix(form): missing icon in field group 6bafbdb47
Espen Hovlandsdal docs(vision): add note on dev-only usage 3f990af10
Espen Hovlandsdal docs(vision): update screenshot 6c62985e2
sanity - v.2.30.6

Published by RitaDias about 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

📓 Full changelog

Author Message Commit
Fred Carlsen fix(cli): fix asset check in human previews (#3516) cc8d41a51a
sanity - v2.30.5

Published by sjelfull about 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Improved the UX of the new reference indicator in document pane.

📓 Full changelog

Author Message Commit
Nina Andal Aarvik fix(dashboard): fix typo in banner, open link in new pane (#3486) 84ae3437b
Nina Andal Aarvik feat(desk): add reference count and learn more link to references indication (#3484) d3c5a81e6
Espen Hovlandsdal chore: remove last remnants of perf workflow 00646897b
Dan Michael O. Heggø fix(types): add params to MutationSelection type e45efb20f
Espen Hovlandsdal refactor(types): format with prettier ca567a4a9
Nina Andal Aarvik fix(desk): document title ellipsis (#3504) 20e26d82c
RitaDias feat(cli): add new dashboard template (#3430) 09f10a967
Snorre Eskeland Brekke fix(block-tools): ignore blocks inside list items (#3492) 73c0da8a0
sanity - v2.30.4

Published by rexxars about 2 years ago

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes a bug where desk tool document lists would sometimes fail to resolve a schema type for new documents when pane supports multiple types
  • Reduces amount of requests triggered by new reference indication
  • Fixes 404-errors being printed in developer console when checking references for unpublished documents

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(structure): resolve schema type from template if possible 0113faec83
Nina Andal Aarvik feat(desk-tool): add pollInterval option on useReferringDocuments hook (#3478) 98b16dfaae
Espen Hovlandsdal feat(base): allow listenQuery to have separate listen and fetch queries 022969b134
Espen Hovlandsdal feat(base): allow listenQuery to specify relevant transitions a5e91938b4
Espen Hovlandsdal feat(base): allow listenQuery to specify custom throttle time f33bf0ebd9
Espen Hovlandsdal fix(desk-tool): only refetch references on appear/disappear 9f10e86c6e
Espen Hovlandsdal fix(desk-tool): use longer throttle time when refetching references 37fed13d47
Espen Hovlandsdal refactor(desk-tool): prefer options object over numeric arg d26d7597e1
Espen Hovlandsdal refactor(desk-tool): check for document existence before checking ref count d9d23dfa53
Espen Hovlandsdal refactor(desk-tool): add request tag to external refs check a39d8db65b
Espen Hovlandsdal chore: fix tests by using combineLatest instead of forkJoin 6a5ded02a5
Espen Hovlandsdal chore: drop unused perf-studio 46cc392723
Espen Hovlandsdal ci: drop unused perf tests f153a7c382
sanity - v2.30.3

Published by rexxars about 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Notable changes

  • A document that has references to it will now clearly indicate this with a differently colored header/footer, as well as with a link symbol. Additionally, prior to publishing a referenced document, a confirmation dialog will indicate that the change might affect referencing documents
  • Added support for the presence feature when not using cookies for authentication
  • Dependencies upgraded for the Portable Text Editor, fixing issues where Chrome would be reported as missing beforeInput- support after Chrome went above version 100. This broke spellchecking in Chrome and degraded performance
  • Updated UI of dashboard feeds

🐛 Notable bugfixes

  • Fixes rare occurring bug in the Portable Text Editor where it would stop producing patches due to non-updated instance props
  • Fixes issue where the newest get-started templates did not include a gitignore file
  • Fixes a potential error when trying to access a file that does not exist
  • Fixes issue where field validation tooltips would sometimes be cut off when inside of modals
  • Fixes an issue where exporting certain old assets would fail because of an md5 mismatch
  • Fixes an issue where the unpublish dialog would use the term "delete" instead of "unpublish" in the confirm dialog
  • Fixes a few warnings from being printed when navigating the dashboard
  • Fixes an issue where documents with a large amount of references would sometimes fail to be published because of a failing request
  • Fixes an issue where a stray margins property would be passed to a div-element (thanks @KittyGiraudel!)
  • Fixes a few typos in the pets project template (thanks @nick-krantz!)

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(cli): include gitignore in get-started templates c582201a6a
RitaDias refactor(cli): update field descriptions (#3386) 6503c3a224
RitaDias refactor(form-builder): add condition for name in upload progress (#3387) 317b4bd4d1
Espen Hovlandsdal feat(base): support presence for cookieless auth users (#3400) 46133a9ce6
Per-Kristian Nordnes chore(portable-text-editor): upgrade to latest slate and slate-react (#3395) 6cb6a80f94
Per-Kristian Nordnes fix(portable-text-editor): support dynamic instance props for readOnly and maxBlocks (#3295) 71416d34e9
Victoria Bergquist feat(dashboard): add feed sections to dashboard feed (#3429) a02320d1f5
Nina Andal Aarvik fix(base): add portal prop to the formfield (#3432) 509c45527e
Dain Cilke feat(export): check sha1 hash first ca188d34bf
Dain Cilke fix(export): allow either hash check c67241bab1
Espen Hovlandsdal chore(vision): drop unused moment dependency 16c4cd5225
Espen Hovlandsdal chore: normalize @sanity/client dependency version 6879b27406
Espen Hovlandsdal chore(util): upgrade moment to latest version ef10e2b8fa
Espen Hovlandsdal chore(core): upgrade terser a5a6a4cd2b
Fred Carlsen fix(desk-tool): show correct action message in unpublish dialog (#3461) 36feddb39f
Victoria Bergquist feat(dashboard): add docs banner to sanity tutorials widget (#3446) 9103669370
Nick Krantz fix(cli): spelling corrections in getting-started-pets template (#3468) 9dcb8b2d7a
Espen Hovlandsdal chore(resolver): pin mock-fs to 5.1.2 2f9f03e23d
Espen Hovlandsdal fix(dashboard): use correct property for feed item keys a0faa37e52
Espen Hovlandsdal chore(dashboard): drop usage of prop-types package d11f6e12f0
Nina Andal Aarvik feat(base): clearly indicate a referenced document e0d6a1c7b4
Nina Andal Aarvik fix(base): add popover for referenced document edd569cb61
Nina Andal Aarvik fix(base): Fixes after QA and PR review 123e2d3730
Espen Hovlandsdal fix(base): reposition referenced doc popover on resize 476cc89063
Nina Andal Aarvik fix(base): add tooltip to referencedDocHeading 19be6a085c
Nina Andal Aarvik fix(base): add empty div as referenceElement for popover 6951a4ad4d
Nina Andal Aarvik fix(base): add autoFocus to popover 41096c1ddf
Nina Andal Aarvik fix(base): add reference tooltip to title when popover is closed fd2b1771e4
Espen Hovlandsdal fix(language-filter): use default tone for tooltip b5ca6b8899
Espen Hovlandsdal fix(desk-tool): use default tone for header/foot popovers/menus a7708344f8
Espen Hovlandsdal chore(desk-tool): fix lint issues caused by memoized component ed8de89d80
Espen Hovlandsdal refactor(desk-tool): use tone instead of ThemeColorProvider cf5dfcf348
Espen Hovlandsdal refactor(desk-tool): use useEffect instead of useCallback for side effect 701535108b
Espen Hovlandsdal fix(test): pass mock observable fetch method c3489fc3f5
Espen Hovlandsdal fix(base): chunk document availability ids on id length 217c558685
Espen Hovlandsdal fix(base): prevent RegionsWithIntersections margins prop from reaching the DOM 3ff4182166
Espen Hovlandsdal chore: upgrade @sanity/client to v3.3.3 c40c434c41
sanity - v3.0.0-dev-preview.12

Published by rexxars about 2 years ago

Changes

  • New studios gets bootstrapped with deploy and deploy-graphql scripts (mapping to sanity deploy/sanity graphql deploy)
  • The default document node resolver for desk structures now gets the ConfigContext passed as the second argument, matching the regular structure
  • Added and exposed new assertion methods:
    • isDocumentSchemaType
    • isArrayOfObjectsSchemaType
    • isArrayOfPrimitivesSchemaType
    • isObjectInputProps
    • isStringInputProps
    • isNumberInputProps
    • isBooleanInputProps
    • isArrayOfObjectsInputProps
    • isArrayOfPrimitivesInputProps
  • BREAKING CHANGE: The history store no longer exposes the historyEventsFor() method
  • BREAKING CHANGE: The @sanity/transaction-collator module is now deprecated and will no longer be maintained
  • BREAKING CHANGE: Document nodes in structure now requires you to define a schemaType

🐛 Notable bugfixes

  • Fixes issue where studio requests would not be tagged correctly
  • Fixes issue where schema type errors would be caught by the global error handler instead of the specific schema error boundary
  • Fixes issue where deployed studios would crash when attempting to upload images/files
  • Fixes issue where studio might crash when attempting to preview a file as if it was an image
  • Fixes issue where building/deploying a studio would not work if the configuration file had .tsx/.jsx extension
  • Fixes issue where the global error handler would be used for known errors
  • Fixes issue where the wrong order would be used when resolving input components, leading to slug input without a generate button, array inputs without drag handles and a few other cases
  • Fixes a few warnings being printed to the console when publishing
  • Fixes a few issues with the typescript definitions for schema declarations

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(server): add missing esbuild peer dependency e22cebf6e
Espen Hovlandsdal fix(form): inline attr-accept dependency 097e5efd6
Espen Hovlandsdal fix(types): check asset id prefix when determining if object is image cbbde1ca8
Espen Hovlandsdal fix(types): add validation on field definitions a312e2ebb
Espen Hovlandsdal fix(types): add missing placeholder property on date/datetime schema definitions 245201fef
Espen Hovlandsdal fix(types): allow field references in validation min/max/gt/lt rules c5de07b22
Espen Hovlandsdal fix(types): add schema options for cross-dataset references c00f5c550
Espen Hovlandsdal chore(test-studio): migrate schema files to typescript 8a759793d
Marius Lundgård refactor: defer global error listener to let error boundary subscribe 4e4acc9ea
Espen Hovlandsdal fix(server): resolve tsx/jsx studio config when building 9d884b5bf
Espen Hovlandsdal chore(test-studio): migrate schema files to typescript 34120ef5f
Espen Hovlandsdal refactor(hooks): use type-only import for client 7915c91b3
Espen Hovlandsdal fix(studio): prevent global error handler from catching known errors d80f1e154
Espen Hovlandsdal refactor(errors): only expose subscribe() method on global error channel b2b742d92
Espen Hovlandsdal refactor(errors): improve typings for global error handler 375095cbc
Espen Hovlandsdal feat(cli): add deploy + deploy-graphql scripts to package.json 9058bf6ac
Espen Hovlandsdal refactor(portable-text-editor): improve typings 268dd1529
Espen Hovlandsdal refactor(schema): slightly improve typings for schema bf74adfd3
Espen Hovlandsdal feat!: historyStore: drop historyEventsFor(), move history types to @sanity/types 8d72f59d7
Espen Hovlandsdal feat!(transaction-collator): drop unused transaction-collator package 26df0cbd1
Espen Hovlandsdal refactor(types): more specific return type of defineType() 52e554187
Espen Hovlandsdal fix(types): add + deprecate missing isHighlighted asset field option 951e0f14c
Espen Hovlandsdal fix(errors): log uncaught errors to console dea50c810
Espen Hovlandsdal feat(types): add isDocumentSchemaType() asserter 825bc69ab
Espen Hovlandsdal fix(datastores): add missing request tag prefix 62d850bca
Espen Hovlandsdal fix(form): reverse order of input component resolution 860ab5aef
Espen Hovlandsdal fix(cli): use correct create command based on --missing/--replace flags f19aff1ed
Espen Hovlandsdal fix(desk): silence warning about animating stroke dash offset 1558d3e5b
Espen Hovlandsdal fix(test-studio): temporarily remove orderable tag/category types d53a9d408
Espen Hovlandsdal fix(structure): narrow provided structure context to defined properties 59d10a06e
Espen Hovlandsdal feat(desk): pass ConfigContext to default document node resolver 5d9f9b515
Espen Hovlandsdal fix: define types path for exports a37b2067a
Espen Hovlandsdal feat(types): add array of object/primitives schema type asserters db0ef4745
Espen Hovlandsdal refactor(form): use isArrayOfObjectsSchemaType from @sanity/types 9c59e1e09
Espen Hovlandsdal feat(form): implement input props type asserters adec4af45
Espen Hovlandsdal chore(dev-studio): remove deprecated structure example 8b5c7aef4
Espen Hovlandsdal feat!(desk): require schemaType for document nodes in structure a286cb74a
Espen Hovlandsdal chore: modify publish-dev-preview script f9a22b135
sanity - v3.0.0-dev-preview.11

Published by rexxars over 2 years ago

Notable bugfixes

  • Fixes a few dependency installation issues caused by missing peer dependencies
  • Initializes git repository on new projects after installing dependencies

Full changelog

Author Message Commit
Espen Hovlandsdal fix(cli): init git repo after dependency install (for lockfile inclusion) f7271a7
Espen Hovlandsdal feat(cli): add linters and tooling as dev dependencies on new projects 72ff70a
Espen Hovlandsdal fix(cli): move esbuild from devdependency to a dependency dd72de7
sanity - v3.0.0-dev-preview.10

Published by rexxars over 2 years ago

Features

  • Added new --api flag when deploying GraphQL APIs, allowing you to only deploy specific APIs instead of all of them
  • The development server no longer needs to be restarted when changing a custom document component

Notable bugfixes

  • Fixes a bug where the studio would be rendered in read-only mode if user did not have any roles in the current project, as opposed to showing the "Not authorized" screen
  • Changes how the portable text editor handles editing of inline objects, annotations and custom block objects - using popovers for inline objects and annotations, and using dialogs for custom block objects.
  • Fixes a bug where the cursor in the portable text editor might get stuck in certain cases
  • Fixes a bug where an object/array input might render even if all its children were hidden
  • Fixes a bug where pnpm would not be able to execute the Sanity CLI binary

Full changelog

Author Message Commit
Marius Lundgård refactor(sanity): make inline objects and annotations open in popover by default e57e6c54d
Per-Kristian Nordnes refactor(sanity): make more spesific kinds for pt members d61f59c75
Espen Hovlandsdal build: build release notes against v3 if on v3 branch locally 848659f5d
Per-Kristian Nordnes fix(sanity): remove unnecessary prop for pt-input toolbar d73186681
Per-Kristian Nordnes fix(sanity): restore CSS that was changed by accident b1073a502
Per-Kristian Nordnes refactor(sanity): simplify scrollToFocus hook 10a4ea6b1
Per-Kristian Nordnes fix(sanity): fix invalid type check 12e5924fb
Per-Kristian Nordnes fix(sanity): fix type issue and remove unused import ce43d09ef
Per-Kristian Nordnes fix(sanity): include pt members with changes too 6b58e3cd4
Bjørge Næss test(form): remove onFocus/onBlur snapshot tests 64504a0c4
Espen Hovlandsdal feat(server): rebuild index document on custom component change 78ed3686a
Espen Hovlandsdal refactor(schema): clarify that order of fields matter in block type d0828e0ff
Espen Hovlandsdal fix(types): correct span vs block mismatch in portable text types e9913e92d
Espen Hovlandsdal fix(types): add missing blockEditor prop on annotations prop 0fc3436cc
Espen Hovlandsdal feat(block-tools): use strict typings 916af6486
Espen Hovlandsdal fix(portable-text-editor): use inferred typing when normalizing blocks 220fd08fc
Espen Hovlandsdal docs(block-tools): use named imports 82b8dc486
Espen Hovlandsdal feat(cli): add id option to GraphQL APIs da39f9254
Espen Hovlandsdal feat(cli): allow specifying --api to filter which APIs to deploy 542d16ba0
Espen Hovlandsdal refactor(form): fix formatting issue 87978dbf8
Espen Hovlandsdal chore(block-tools): drop unused dependency 053e1c68c
Espen Hovlandsdal fix(diff): export missing diff types 3de8ea55b
Espen Hovlandsdal docs(diff): add documentation and stability tags for diff package a59d339dd
Per-Kristian Nordnes refactor(sanity): fix issues and rename hook for scrolling to pt member 5954e747f
Per-Kristian Nordnes fix(sanity): fix issue where cursor got stuck c09919724
Per-Kristian Nordnes chore(sanity): delete unused hook for pt input 05ae2dbb0
Per-Kristian Nordnes refactor(sanity): blur and focus while toggling pt-input fullscreen 14556b5cc
Per-Kristian Nordnes refactor(sanity): reintroduce scrollSelectionIntoView hook 7fb647d2d
Per-Kristian Nordnes refactor(sanity): remove no longer needed hook dep. bbc637ba5
Bjørge Næss fix(form): fix bug not hiding parent when all members are hidden da88b9d69
Bjørge Næss chore: upgrade react-rx 0f2711a9e
Evan Ford fix(cli): work around pnpm shell script execution bug f1b853395
Espen Hovlandsdal refactor(cli): check shebang of cli script instead of path d12c554b1
Bjørge Næss fix(form): remove collapsible/collapsed as a FormNode concern a7a3bf96e
Bjørge Næss chore(dev): restore cross dataset reference test schemas a5bafb84c
Bjørge Næss test(form): add test-id to fields 9ba92875d
Bjørge Næss test(form): await promise settlement 640c09fb1
Bjørge Næss test(form): remove redundant tests 9b2ca1c14
Bjørge Næss test(form): disable failing cross dataset input tests 7635e0a28
Bjørge Næss test(form): remove redundant object input tests and make the suite pass again 5d744384f
Bjørge Næss test(form): add unit tests for asserting form store collapsible field behavior 51ccfed3d
Bjørge Næss test(form): update snapshot afd7010e0
Espen Hovlandsdal fix(types): correctly type diffMatchPatch values as strings 522e20692
Espen Hovlandsdal refactor(mutator): use strict typescript settings 104559df0
Espen Hovlandsdal refactor(form): disable incorrect patcher example in workshop 7da958ee1
Espen Hovlandsdal refactor(mutator): reduce number of exports 86db411be
Herman Wikner feat(studio): add not authenticated screen (#3380) f9e74596b
Espen Hovlandsdal fix(auth): handle callback url only in auth boundary b6a12fb9b
sanity -

Published by RitaDias over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Add command to list information about dataset jobs

This new command will help users find out the status of jobs without needing the job id.

sanity dataset copy --list

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(export): only set authorization header if token exists 795637999b
Tonina feat(cli): list dataset copy jobs (#3292) 82f20d16dc
Tonina feat(dataset copy list): Format output with console-table-printer (#3303) 4e775f3fd8
Tonina fix(cli): Throw a better error message in case of a failed dataset copy job (#3314) b707932d4e
Vincent Quigley chore(cli): add output to inform that --skip-history flag exists (#3315) a0907f6356
Tonina refactor(cli): use dataset copy command to list copy dataset jobs (#3318) 8ea8d73a12
RitaDias feat(cli): add new getting-started template (with data) (#3365) fbedb56dff
sanity - v3.0.0-dev-preview.9

Published by rexxars over 2 years ago

🐛 Notable bugfixes

  • Fixes issue where schema errors would not be displayed in error boundary
  • Fixes reference inputs not showing create buttons in certain contexts
  • Fixes a few unstyled UI elements using system default font
  • Fixes change indicators not appearing in all contexts
  • Fixes object input not respecting columns option

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes refactor(form/inputs): add missing change indicators 0dbfc338a
Per-Kristian Nordnes fix(desk,form): restore default draft change indicators bfcfb3b8b
Herman Wikner feat(presence): fix tooltip scheme in DocumentPreviewPresence e60850e18
Herman Wikner feat(studio): close NavDrawer when changing workspace, add tooltip to WorkspaceMenuButton b02476aba
Marius Lundgård test(sanity): fix path to config factory f64f2dbb9
Espen Hovlandsdal chore(deps): get rid of remaining prop-types usage 99019a9fb
Espen Hovlandsdal chore(deps): replace pluralize with pluralize-esm 2e0cd7ade
Espen Hovlandsdal chore(deps): replace get-random-values with get-random-values-esm 0384ae77c
Per-Kristian Nordnes fix(form/inputs): pt-input: fix opened member finder 1b2041e38
Herman Wikner test: add object with columns option to test-studio dba35810a
Herman Wikner feat(form): add columns support to ObjectInput ab0c4c4d4
Herman Wikner feat(form): add columns support to MemberFieldset a9ab9379f
Saiichi Shayan Hashimoto feat(types): add calendarTodayLabel to date/datetime schema options (#3355) 7736b4002
Saiichi Shayan Hashimoto feat(types): add missing name to SortOrdering type (#3353) f9ba13079
Bjørge Næss chore: upgrade react-rx fc9cbf13a
Espen Hovlandsdal chore(deps): normalize versions 490e30267
Espen Hovlandsdal chore(components): drop unused version checker component edfe18a8f
Espen Hovlandsdal feat(cli): migrate ecommerce template f2cd91012
Espen Hovlandsdal chore(examples): migrate ecommerce example studio 26814afae
Espen Hovlandsdal chore(examples): drop static folder from clean-studio 1e756d7fa
Espen Hovlandsdal chore: add clean:deps script to remove all node_modules dirs 164997f6f
Espen Hovlandsdal fix(desk): add name to default sort orderings 210c7b677
Espen Hovlandsdal fix(form): fix typings for columns property 5078c08bf
Espen Hovlandsdal chore(types): drop part system typings a20c9fe2a
Espen Hovlandsdal build(vercel): fix build command for vercel deployments in v3 088b9af99
Bjørge Næss chore(form): rename SanityReferenceInput => StudioReferenceInput 132d945bd
Bjørge Næss fix(desk): pass global templates as initial value templates to reference inputs 568f7dfce
Espen Hovlandsdal fix(cli): drop outdated install command ee7ef7e71
Espen Hovlandsdal feat(cli): throw error on v2 plugin install with no @sanity/core installed 83201a5de
Espen Hovlandsdal chore(lint): set react version to 17 for eslint-plugin-react 50aa894fd
Espen Hovlandsdal chore: update lockfile 64e91f427
Espen Hovlandsdal chore: drop unnecessary eslint rule overrides 455129ad6
Espen Hovlandsdal chore: disable tsdoc syntax warning for jest config c9da5d8d0
Espen Hovlandsdal feat(pkg-utils): allow configuring target per export bad4a0777
Espen Hovlandsdal chore: set node target for cli/internal export cc746cec4
Espen Hovlandsdal fix: catch workspace resolution errors with error boundary c5c1ba160
Espen Hovlandsdal refactor(schema): pad list of all possible types on schema error d6330a492
Espen Hovlandsdal feat(screens): preserve newlines in error messages 06e996101
Espen Hovlandsdal chore(deps): drop unused semver-compare dependency 0a80b9c80
Espen Hovlandsdal test: temporarily silence flushSync errors f8369a8e4
Espen Hovlandsdal chore(deps): add types package for semver-compare 2a9fc550d
Herman Wikner fix(sanity): update presence tooltip ui af09edd69
sanity - v2.30.1

Published by rexxars over 2 years ago

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes hovering issue in array input with portable text block
  • Fixes issue where selected list ordering in desk structure would not be respected
  • Fixes issue where document list appeared to be loading forever when changing the ordering
  • Fixes issue where the the code input file name field would disappear when the language option was set
  • Improves error message when copying a dataset and the target dataset already exists, but a copy operation is already in progress

📓 Full changelog

Author Message Commit
RitaDias fix(form-builder): add safe-guard to only trigger the handle drag enter when the "drop offs" are the same as the target (#3282) cb801291c
RitaDias fix(desk-tool): prevent sortBy from overtaking the defaultOrdering (#3296) b9dda8ac8
Nina Andal Aarvik fix(base): keep filename field and languageAlternatives when language is provided in codesnippet (#3288) 11df11ae7
Vincent Quigley feat(cli): allow dataset copying to determine if target dataset exists (#3289) 49208ac4f