sanity

Sanity Studio – Rapidly configure content workspaces powered by structured content

MIT License

Downloads
9.5M
Stars
5.2K
Committers
128

Bot releases are visible (Hide)

sanity -

Published by mariuslundgard about 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes an issue with the document sparkline, where it would not always show the published status of a document.

📓 Full changelog

Author Message Commit
Marius Lundgård fix(desk-tool): use editState as source for publish status (#2689) 28ff9a449
sanity - v2.15.1

Published by bjoerge about 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes an issue that could cause the boolean input to crash with an error saying "Element type is invalid …"

📓 Full changelog

Author Message Commit
Marius Lundgård build(google-maps-input): update dependencies 92b1e302c
Bjørge Næss fix(base): ensure esm interoperability in root package reexports (#2684) 40229ef92
sanity - v2.15.0

Published by vicmeow about 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

  • Migrates color-input to @sanity/ui
  • Migrates google-maps-input to @sanity/ui
  • Migrates the document status bar and document actions to @sanity/ui
  • Migrates the default preview to @sanity/ui

🐛 Notable bugfixes

  • Adds a visible indicator on the focused day when using arrow keys to navigate through the calendar days in the date input
  • Fixes an issue that in some rare cases could make the preview selection result in an invalid query
  • Fixes an active state issue with PaneItem in DocumentsListPane

📓 Full changelog

Author Message Commit
Herman Wikner feat(base): migrate default preview to @sanity/ui (#2563) a56b7f8a7
Victoria Bergquist refactor(desk-tool): migrate document status bar to @sanity/ui (#2586) 901820373
Marius Lundgård build(dashboard): update dependency a6b5113ce
Dain Cilke feat(cli): add support for sso/saml login 202ec2ea7
Marius Lundgård refactor(desk-tool): migrate document actions to Sanity UI (#2636) 44ae7edf5
Bjørge Næss chore: add dist folders to gitignore bdd6759f0
Bjørge Næss build(gulpfile): add watchJS task 8a573cedd
Bjørge Næss refactor: use type import/exports where applicable c7a65a222
Bjørge Næss build(typescript): compile package typescript definitions to dist/dts 868003f6c
Bjørge Næss chore(base) add typesVersions as a workaround to lack of support for package exports 2b31430a8
Bjørge Næss refactor(base): remove package root type definition exports 7b97d034e
Bjørge Næss chore(base): add package exports folder cd8ce4a56
Bjørge Næss refactor: rewrite internal lib imports in all packages d80400151
Bjørge Næss refactor(field): add type exports d309543a4
Bjørge Næss refactor(state-router): add type exports 6a30c224f
Bjørge Næss refactor(types): alias @sanity/types to self ffe636d90
Bjørge Næss refactor(types): remove typeRoots, make part-typedef directory names windows safe eb8cae443
Bjørge Næss feat(cli): add codemod for inserting parts reference types directive in ts/tsx files that has part imports c21b36fb2
Bjørge Næss refactor: run reference directive codemod on all files containing part imports 8a68024da
Bjørge Næss chore: add/cleanup missing deps f5c0b44ee
Bjørge Næss chore: remove postcss typescript plugin df6a76c16
Bjørge Næss build(typescript): use same tsconfig for both build and ide and remove path aliases e4034ee38
Bjørge Næss refactor(server): use a hard coded list of monorepo aliases 8f16cf704
Bjørge Næss chore: remove strict folder overrides (for now) 52db7ab4d
Bjørge Næss build(typescript): add missing project references fb54c45ed
Bjørge Næss chore(field): add missing project references 4a75a6395
Bjørge Næss chore(desk-tool): add missing project reference 5fb709c45
Bjørge Næss refactor(structure): export InitialValueTemplateItem type from package dea92bc62
Bjørge Næss test: skip typescript build before running test-suite d897eb20e
Bjørge Næss test: exclude dist folders from test file patterns d58545229
Bjørge Næss test(form-builder): allow mock imports to non-typed path 5a28a728a
Bjørge Næss test(mutator): add tsconfig to test folder e255f4600
Bjørge Næss test(util): add tsconfig to test folder 9d7e2ad32
Bjørge Næss fix(base): export every symbol from structure builder 91333bf4f
Bjørge Næss refactor(desk-tool): move @sanity/base/lib imports to @sanity/base/_internal d84332290
Bjørge Næss chore: add dist folder to clean task in packakges 06273d012
Bjørge Næss build(gulpfile): clean dist folders e74126bdd
Marius Lundgård fix(desk-tool): use correct label and icon bf8ce1c41
Marius Lundgård chore(desk-tool): remove inline references acdab986b
Marius Lundgård build(desk-tool): add missing references 00f411593
Marius Lundgård build(examples): add missing dependency ebc291f90
Bjørge Næss build(depcheck): fix false negative when detecting installed sanity plugins 8ba8971cc
Herman Wikner fix(base): fix active state issue with PaneItem in DocumentsListPane e68e08207
Marius Lundgård refactor(desk-tool): simplify document sparkline UI 3808e7b53
Marius Lundgård fix(desk-tool): make sure changes panel is scrollable 9f85d737f
Marius Lundgård fix(studio-hints): remove theme import cfcf589e8
Herman Wikner refactor(color-input): migrate to @sanity/ui 3abea6db7
Bjørge Næss feat(base): export IntentButton and IntentLink components 682535228
Bjørge Næss refactor(form-builder): use IntentButton and IntentLink from @sanity/components 15f8590c8
Marius Lundgård build: update dependencies 1ca34f606
Bjørge Næss chore(base): ensure consistent package exports and clean up some internal import paths 61f91a968
RitaDias refactor(google-maps-input): migrate to @sanity/ui (#2668) e52146bc0
Per-Kristian Nordnes chore(gulpfile): ignore building @sanity/components and examples/depcheck-test 8e31cdc7a
Bjørge Næss build(types): remove circular dependency ca12d404f
Bjørge Næss chore: change order of clean task 35ea2a1e3
sanity - v2.14.0

Published by bjoerge about 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Features

  • Adds a notice for insufficient permissions to references
  • Adds strict dependency checking to all packages
  • Adds better feedback about accepted files when dragging over file and image inputs

🐛 Notable bugfixes

  • Enforces that DateInput value is constrained to timeStep
  • Fixes issue where importing JSON files would crash the studio build process
  • Fixes an issue where the form was visible above the PTE toolbar in fullscreen mode
  • Adds safeguard against missing .focus() method on components used with the withDocument() higher order component.
  • Adds a visible indicator on the focused day when using arrow keys to navigate through the calendar days in the date input
  • Fixes an issue that in some rare cases could make the preview selection result in an invalid query

📓 Full changelog

Author Message Commit
Victoria Bergquist fix(form-builder): remove 1px gap above pte in fullscreen mode (#2615) 905f95fa2
Rico Kahler feat(base): add preview override for references permissions (#2585) d23ec5d0b
Espen Hovlandsdal fix(server): prevent json imports from passing through babel (#2634) 77f036eac
Sindre Gulseth fix(form-builder): enforce that DateInput value is constrained to timeStep 4b46970a3
Rico Kahler fix(base): fix [object Object] for title value (#2588) ecd01f3d2
Marius Lundgård build: bump @sanity/ui dependency cd0b67508
Sindre Gulseth feature(timeline): add a live edited type 79c550b64
Sindre Gulseth fix(timeline): simplify timeline chunk type logic f436a4636
Marius Lundgård build: update @sanity/ui dependency d40bfde9d
Sindre Gulseth fix(base): fixes a bug where isMissing was triggered when the reference exists 65b902325
Geoff Ball fix(base): render list items in object previews (#2631) 9a2822d73
Espen Hovlandsdal chore(examples): add example of enum value title lookup in preview prepare c8f735eab
Espen Hovlandsdal fix(base): only resolve enum value title if using default prepare 68ff9b6c1
Bjørge Næss fix(form-builder): prevent studio crash when component passed to withDocument() is missing a focus() method (#2637) f501df9db
Bjørge Næss chore: use consistent type assertion syntax (as T instead of <T>) 19cef2a10
Bjørge Næss chore(transaction-collator): fix eslint errors eec3f96cc
Bjørge Næss chore(cli): remove unused tests 707bc7038
Bjørge Næss chore: add depcheck script to catch unused dependencies a98184c83
Bjørge Næss chore: remove unused dependencies c97e3b1ab
Bjørge Næss chore: add missing dependencies 37ebe8f11
Bjørge Næss chore(depcheck): add env plugins to sanityJson parser 064226723
Marius Lundgård build: update dependencies 749edd2a6
Marius Lundgård refactor(examples): improve ui-test-bed-tool 335604fec
Marius Lundgård feat(base): update theme to support @sanity/ui v0.34.8 173b92906
Marius Lundgård feat(examples): add ui-test-bed-tool to example-studio 48683eafb
Bjørge Næss refactor(form-builder): change signature of uploaders to enable knowing at drag over whether file is accepted or not a713c21ad
Bjørge Næss refactor(form-builder): use resolveUploader to determine whether file can be uploaded or not 5dce5874a
Bjørge Næss feat(form-builder): show feedback on drag over whether files can be uploaded or not 427d5d9ea
Bjørge Næss refactor(form-builder): extract a DropMessage component that can be shared across components that supports drag+drop 603c2d879
Marius Lundgård build: update @sanity/ui dependencies 2d50dff89
Marius Lundgård refactor(examples): improve theme test bed 2ee8bdc72
Marius Lundgård refactor(base): update theme for @sanity/[email protected] e0d2e21fe
Bjørge Næss chore(depcheck-test): make depcheck-test package private e4ffa8c47
Bjørge Næss fix(form-builder): fix missing focus ring on focused day (#2650) 6404cd605
Bjørge Næss fix(base): fix invalid query when preview selection targets both a reference field and a field on the referenced document (#2656) 308e653c0
Marius Lundgård fix(base): adjust color theme 98ffed554
sanity -

Published by mariuslundgard over 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Upgrading to @sanity/[email protected] fixes an issue that caused unwanted CSS overrides of core UI layout primitives in certain situations.
  • Fixes an issue where the preview of a string field with predefined list options used the value of the field when selecting it for previewing instead of the title specified in the list options (#769).
  • Fixes an issue that could prevent drafts from being edited even in cases where a grant rule would permit it.

📓 Full changelog

Author Message Commit
Marius Lundgård build: update dependencies ab6ee8be8
Victoria Bergquist fix(base): use title, not value in prepare preview when field has predefined string options (#2618) c1d9d8fee
Bjørge Næss fix(base): fallback to published version if no draft exists d4bcad1f62
Bjørge Næss docs(sanity): improve placeholder package readme text f91a62c6fc
Simeon Griggs chore(data-aspects): remove todo comment (#2623) 0e0b3f89dc
sanity - v2.13.0

Published by vicmeow over 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Migrated @sanity/field to Sanity UI and styled-components
  • Migrated @sanity/dashboard to @sanity/ui and styled-components
  • Migrated studio-hints to @sanity/ui
  • Fixed an issue where the inspected document version is always the latest version and not the current selected version.
  • Migrated default-login to @sanity/ui
  • Added typings for the Sanity CDN image URL parameters
  • Migrated @sanity/desk-tool/tool to styled-components
  • Fixed an issue where readOnly fields and documents would still be editable in the review changes panel
  • Fixed an issue where hidden fields would still be visible in the review changes panel

📓 Full changelog

Author Message Commit
Espen Hovlandsdal build(ci): skip cypress binary install on non-cypress workflows 1489196ca
Victoria Bergquist refactor(field): migrate layout components to sanity ui (#2550) 94f29c3cf
Espen Hovlandsdal feat(server): allow hacking studio webpack configuration 391e61588
Espen Hovlandsdal fix(diff): correct typing for (currently empty) DiffOptions 31ca9b6df
vicbergquist refactor(field): migrate revert changes button to sanity ui 87c485e36
vicbergquist refactor(field): migrate value error to sanity ui 5bd960b0a
vicbergquist refactor(field): migrate metainfo to sanity ui 5b6501506
vicbergquist feat(field): migrate fieldchange, groupchange to sanity ui a8e59d507
vicbergquist fix(field): make revert changes button span full width instead of inlining with diff component f07b6b62b
Herman Wikner refactor(code-input): migrate code-input to @sanity/ui (#2580) b6e04aa7c
Simeon Griggs docs(form-builder): adjust tone of voice 9875227c4
Simeon Griggs docs(client): fix typo on asset upload method 6c6ce4f09
Espen Hovlandsdal feat(types): add image url query parameter types 767dc98ac
Marius Lundgård refactor(validation): convert to ES modules ed7c8dee4
Per-Kristian Nordnes fix(desk-tool): use the document revision you are currently looking at as value for inspect dialog ea9a57f15
vicbergquist refactor(desk-tool): use styled-components in tool/ a770663b3
vicbergquist refactor(field): migrate boolean diff type to @sanity/ui d649f420f
vicbergquist refactor(field): migrate number diff to @sanity/ui 0ac237784
vicbergquist refactor(field): migrate string, url diff to @sanity/ui 6099f4558
vicbergquist refactor(field): migrate slug diff to @sanity/ui 51915caa6
vicbergquist refactor(field): migrate datetime diff to @sanity/ui 75185627a
Herman Wikner refactor(default-login): migrate to @sanity/ui (#2608) b762503d0
Herman Wikner refactor(studio-hints): migrate to @sanity/ui (#2604) e1c7ea003
Arthur Denner fix(schema): add blockEditor to list of overridable fields (#2273) d14ccd08d
Arthur Denner feat(form-builder): allow custom icon for built-in decorators (#2272) ff785f3d3
vicbergquist refactor(field): migrate reference diff to @sanity/ui e89cd7dc1
vicbergquist refactor(field): migrate array of options diff to @sanity/ui f84f0bf51
vicbergquist refactor(field): migrate image and file diffs to @sanity/ui 55c32296b
vicbergquist refactor(field): migrate ptdiff annotation, inline-object components to @sanity/ui 942a0a3a2
vicbergquist refactor(field): migrate ptdiff paragraph to @sanity/ui 2c6f33ac0
vicbergquist refactor(field): migrate ptdiff header to @sanity/ui c414b1861
vicbergquist refactor(field): migrate ptdiff text to @sanity/io 697e36fff
vicbergquist refactor(field): migrate ptdiff blockquote to styled-components 468117a20
vicbergquist refactor(field): migrate ptdiff decorator to styled-components 53c12582f
vicbergquist refactor(field): migrate ptdiff block to @ssanity/ui e18dc7289
vicbergquist refactor(field): remove css from ptdiff f776a5655
Herman Wikner refactor(dashboard): migrate to @sanity/ui (#2590) 81b6149d3
Sindre Gulseth feature(grants): add support for validating built-in $identity param 5a55971ac
Victoria Bergquist fix(field): disable revert changes on read-only fields and documents and hide fields from review changes if hidden: true (#2619) 78d1bb342
sanity -

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

🐛 Notable bugfixes

  • Fixes a bug introduced in v2.12.0 that made hidden fields visible
  • Fixes an issue that caused some plugins to error with the message "Cannot read property 'from' of undefined".
  • Fixes a bug where review changes might crash when showing change in a reference that could target more than one schema type
  • Fixes a bug which caused the create menu to be disabled in cases where the current user actually had access to create the type of document
  • Fixes an issue that caused field validations on object types to be written on individual field types, causing unintentional re-use of validation rules.
  • Migrates components in @sanity/field to Sanity UI and styled-components

📓 Full changelog

Author Message Commit
vicbergquist refactor(field): migrate no changes component to sanity ui c1a240153
vicbergquist refactor(field): migrate ChangeList to sanity ui 0db29890f
vicbergquist refactor(field): migrate diff tooltip to sanity ui 500184a3e
vicbergquist refactor(field): migrate differrorboundary to sanity ui c64f7394e
vicbergquist refactor(field): migrate breadcrumbs to sanity ui b114b3997
vicbergquist refactor(field): migrate fallback diff to sanity ui 99eab5a94
vicbergquist refactor(field): migrate fromto to sanity ui 028308d21
Bjørge Næss fix(base): guard against missing user roles in InsufficientPermissionsMessage 41f63a3f3
Bjørge Næss fix(form-builder): reexport PatchEvent default export 2cdc64585
Bjørge Næss Revert "feat(base): add basic permission check to default pane menu" 02ded8685
Espen Hovlandsdal fix(cli): add missing undeclared dependency d7bc2cfd4
Espen Hovlandsdal fix(field): prevent crash when unable to resolve reference type 09a9c4b21
Bjørge Næss fix(types): allow 'hidden' property on object field types 0288602a1
Bjørge Næss test(form-builder): add test case for hidden and filtered fields 278730077
Bjørge Næss fix(form-builder): make sure hidden/filtered fields are actually hidden 964d65bbc
Bjørge Næss chore(test-studio): add repro case for field validation issue bef4da638
Bjørge Næss test(validation): add a failing test case for leaky field validation rules issue efe831504
Bjørge Næss fix(validation): fix issue where object field validation were written on individual fields, causing unintended validation rule leakage 934bdf68f
sanity -

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

✨ Highlights

🐛 Notable bugfixes

  • Added back an internal API that accidentally broke the sanity-plugin-intl-input

📓 Full changelog

Author Message Commit
Bjørge Næss fix(form-builder): bring back old internal Field API 58e74817b
sanity - v2.12.0

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

✨ Highlights

  • The sanity users invite CLI command now supports the new role names
  • The default object input in Sanity Studio has been refactored to use Sanity UI.

🐛 Notable bugfixes

  • Fixes a problem where a Portable Text editor with too many toolbar items inside of a object inside of a modal caused the content to overflow and be clipped
  • Fixes issue with combining multiple block-tools HTML deserializers.
  • Fixes various visual issues related to presence and change indicators in the code input

📓 Full changelog

Author Message Commit
Bjørge Næss chore: add repro case for portable text toolbar causing dialog content overflow e145214ec4
Per-Kristian Nordnes test(block-tools): add from the wild test 30cce8564a
Per-Kristian Nordnes fix(block-tools): _markDefs must be class var 79ad07cab6
Per-Kristian Nordnes chore(block-tools): add dev package @types/jsdom c0a247d8ee
Per-Kristian Nordnes fix(block-tools): fix lint errors 88bfdc8d06
Marius Lundgård refactor(form-builder): remove workaround in FileInputButton 3d29c0d7ad
Fred Carlsen fix(form-builder): Fix overflowing PT toolbar menu inside of dialog (#2560) e7b9244ea6
Marius Lundgård feat(base): migrate components/Document to TypeScript (#2544) 98712b76f7
Espen Hovlandsdal fix(desk-tool): prevent crash if roles property does not exist on current user 65ea50380a
Espen Hovlandsdal feat(cli): add help for missing @sanity/core commands 3e86168c9b
Espen Hovlandsdal feat(core): support new roles api in user invite command a2f9f503e6
Bjørge Næss fix(form-builder): update element focus for ImageInput when focus path targets the asset field cb4777d8b7
Bjørge Næss refactor(form-builder): move focus check to componentDidUpdate f99e011ddc
Bjørge Næss refactor(form-builder): make 'readOnly' an optional prop for FormBuilderInput f35ed06b00
Bjørge Næss chore(form-builder): fix lint errors 747365c43e
Bjørge Næss chore(form-builder): improve typings for input resolver 5f90e8710c
Bjørge Næss refactor(form-builder): move all implemented parts into a separate folder 3a3030d748
Bjørge Næss fix(form-builder): update element focus for ReferenceInput when focus path targets it b9c7750cc3
Bjørge Næss test(form-builder): setup required plumbing for object input test a3e9b9f4c7
Bjørge Næss chore(test-studio): add preview selection to objects test f52b6c8ff7
Bjørge Næss feat(base): add support for lazy children to FormFieldSet 2e93f367e0
Bjørge Næss refactor(base): remove focus path handling from base/FormFieldSet 20c56d49cf
Marius Lundgård refactor(form-builder): migrate InvalidValueInput to Sanity UI f317fd8c86
Bjørge Næss refactor(form-builder): migrate UnknownFields to Sanity UI 9942d6f9f2
Bjørge Næss chore(form-builder): export ObjectInput props 6468918c4c
Bjørge Næss test(form-builder): add more test cases for ObjectInput ae9e863709
Bjørge Næss refactor(form-builder): migrate ObjectInput to Sanity UI 79d91c0dfa
Bjørge Næss test(form-builder): add tests for ObjectFieldSets 3b4ef5caa7
Bjørge Næss refactor(form-builder): sort out fieldset/focus conundrum 3349bda688
Bjørge Næss fix(base): memoize FormFieldSet content and always wrap in a Grid fcc9c32008
Bjørge Næss fix(form-builder): use Stack with space instead of ul in invalid value/untyped value inputs d0f6f59ca0
Herman Wikner fix(code-input): fix change indicator and presence issues (#2551) 0e7c2ae2ba
Bjørge Næss fix(form-builder): fix wrong export 6a27b6c0e5
sanity -

Published by mariuslundgard over 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Update @sanity/ui which fixes issue with backwards compatible theming.

📓 Full changelog

Author Message Commit
Marius Lundgård build: update dependencies c655081fc
sanity - v2.11.1

Published by rexxars over 3 years ago

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes a bug where running sanity graphql deploy or sanity exec might crash if certain plugins or custom components were installed
  • Fixes a warning being printed to the console about usage of an experimental API version

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(default-login): use non-experimental api version cfcbd96b5
Espen Hovlandsdal fix(base): prevent user store crashing in node environment f3e0a16be
sanity - v2.11.0

Published by rexxars over 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Roles-aware studio

When using the studio as a user without write access to some or all documents, the user interface will now reflect this and mark fields as read-only, as well as hide or disable actions that cannot be performed.

Read-only states have also been given a visual upgrade as part of this release.

🐛 Notable bugfixes

  • Fixes certain issues with incorrect node_modules after running sanity upgrade
  • Fixes bug where studio might crash when navigating/opening new tabs

📓 Full changelog

Author Message Commit
Bjørge Næss build(tsconfig): add es2020 to lib 62ec3f223
Bjørge Næss chore: upgrade @sanity/icons b4d45fb1b
Bjørge Næss chore: upgrade @sanity/ui 859395047
Espen Hovlandsdal feat(cli): upgrade to yarn v1.22.10 47186e206
Rico Kahler fix(client): make projectId optional; combine config types dd995f06d
Marius Lundgård fix(form-builder): render array item menu in a portal (#2528) 1dd802ce6
Marius Lundgård build: fix lerna warnings (#2530) 2be7e6fca
Marius Lundgård build: update dependencies 86fa23e54
Bjørge Næss fix(form-builder): show presence for readOnly fields 608f504c6
Bjørge Næss fix(base): add proper support for disabling IntentLinks 874440427
Bjørge Næss fix(imagetool): avoid calling callbacks when read only 95a68e5e1
Marius Lundgård feat(base): improve theming of read-only and placeholder in inputs ea6e2a541
Bjørge Næss fix(form-builder): hide item drag handle on read-only array of primitives 6e84e4189
Bjørge Næss fix(form-builder): disable placeholder for reference inputs in read-only mode c3d1fc767
Bjørge Næss fix(color-input): disable create button when in readOnly mode c761aee23
Bjørge Næss fix(form-builder): make text field readOnly instead of disabled for readOnly date inputs c8313f10e
Bjørge Næss fix(form-builder): show header on read-only array item dialogs for types without a title 5543a7b63
Bjørge Næss fix(form-builder): use readOnly instead of disabled state for checkboxes in readOnly options array 257f91b40
Bjørge Næss fix(google-maps-input): hide edit/delete buttons when readOnly 9bdc7efd5
Bjørge Næss fix(imagetool): disable cursor + hover effect when readOnly 1faa01dc0
Bjørge Næss build(base): enable opt-in strict mode f8910bf40
Bjørge Næss refactor(base): refactor/clean up user-store 8f78f2174
Bjørge Næss refactor: move to userStore.me internally 2d8bd7497
Dain Cilke fix(default-layout): protect against undefined state tool 9226e7507
Marius Lundgård build: update dependencies adce009ec
Marius Lundgård feat(base): add skeleton colors to theme 4a4713383
Bjørge Næss chore(base): add project reference to initial-value-templates adbac3b9d
Bjørge Næss chore: disable import/no-unresolved for typescript files d39de1327
Bjørge Næss chore(base): fix typescript compile errors caaceb76a
Bjørge Næss chore: replace use-observable et al with react-rx 5cae93243
Bjørge Næss feat(base): add support for sticky debug params c2e09c166
Bjørge Næss feat(base): support roles array for current user 61247bcb9
Bjørge Næss feat(initial-value-templates): export resolveInitialValueForType ed5f943ab
Bjørge Næss feat(base): add datastore and support hooks for grants ec451563a
Bjørge Næss feat(default-login): use API vX (for now) d318a1cee
Bjørge Næss feat(desk-tool): consider permissions in default document actions 2b04f5068
Bjørge Næss feat(base): add shared insufficient permissions message component 88626f2f4
Bjørge Næss fix(desk-tool): fix visual glitch in publish button tooltip a505dee33
Bjørge Næss feat(base): consider permissions in global create document dialog 13c9aa8a7
Bjørge Næss feat(desk-tool): add permission check banner to document panel afe267c5c
Bjørge Næss feat(base): add basic permission check to default pane menu 8680eea9b
Bjørge Næss fix(desk-tool): improve tooltip rendering of statusbar menus 7c9c60198
Bjørge Næss feat(field): toggle revert buttons based on current user permissions fca490027
Bjørge Næss feat: disable global create button if user can't create any documents dcea2161c
Bjørge Næss fix(base): work around issues with circular imports causing errors e8a833cee
Bjørge Næss fix(form-builder): workaround circular require issues 8fdc7086a
Rico Kahler refactor(base): update to new acl endpoint 5280c5193
Rico Kahler test: add wildcard to cy.intercept f91e788f0
Rico Kahler chore: remove vX client cd36d3ce1
Bjørge Næss fix(base): add tag to acl request 36b5f5775
sanity - v2.10.5

Published by rexxars over 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes issue where dates might show incorrect value when reviewing changes if date format was customized
  • Fixes issue where CLI might use .env.production instead of .env.development when running sanity start, sanity exec and similar

📓 Full changelog

Author Message Commit
Espen Hovlandsdal feat: add support for tagged requests (#2501) de18d612c
Bjørge Næss fix: fix moment/date-fns parse error in diff component 1cc1c6a9a
Espen Hovlandsdal fix(cli): unset NODE_ENV for CLI bundle (don't assume production) (#2502) 308543d82
sanity - v2.10.4

Published by rexxars over 3 years ago

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes portable text editor not displaying style of selected block on change

📓 Full changelogy

Author Message Commit
Espen Hovlandsdal fix(form-builder): update portable text block style on style change 917fd80
sanity - v2.10.3

Published by rexxars over 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes portable text editor not displaying style of selected block
  • Fixes portable text editor not displaying toolbar in certain cases

📓 Full changelog

Author Message Commit
Bjørge Næss test: remove node 10 from test matrix, add node 16 a424b3b92
Sindre Gulseth fix(form-builder): Removes display: -webkit-box; 7dfef4974
Bjørge Næss chore(eslint): add .md files to eslintignore 64934a18e
Sindre Gulseth feature(desk-tool): Show a message when theres no history available for a document e8f5b7ced
Espen Hovlandsdal fix(form-builder): update current portable text block style on focus change 173b44ed5
sanity - v2.10.2

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

🐛 Notable bugfixes

  • Reduces the size of mutations when editing documents in the Studio
  • Fixes a bug that caused out of bounds values for hotspot/crop to be saved to the data store

📓 Full changelog

Author Message Commit
Magnus Holm perf(mutator): remove duplicated createIfNotExists 4e2150f19d
Bjørge Næss fix(imagetool): pass final value to onChangeEnd e02116a63b
Bjørge Næss fix(form-builder): use final value from onChangeEnd 4eb35ee49a
Bjørge Næss fix(imagetool): normalize crop before emitting onChangeEnd 4f080b5ee9
sanity - v2.10.1

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

🐛 Notable bugfixes

  • Fixes a bug causing validation errors from individual array items appear on every item in the array

📓 Full changelog

Author Message Commit
Bjørge Næss fix(form-builder): get validation errors from the right markers array for array items 1fc68007dc
sanity - v2.10.0

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

✨ Highlights

Initial values for any type

This upgrade extends support for initial values to any field, not just the document type. You can now set initial values on a field that's shared between schema types. It also allows for initial values for fields inside of arrays and the Portable Text editor, which has been a frequent request. Initial values still supports promises if you need to set values from external data sources.

Go to the docs to learn how you can configure initial values.

initial-values-2021-04-28

🐛 Notable bugfixes

  • Fixes a few performance regressions in the array input
  • Fixes an issue where the "revert changes"-dialog confirmation would sometimes be hidden behind the form dialog

📓 Full changelog

Author Message Commit
Marius Lundgård fix(field): fix z-index issues of tooltip and revert dialog (#2449) ba32ea113
Marius Lundgård build(examples): update @sanity/ui abf64172d
Bjørge Næss perf(form-builder): move array presence and markers filtering to array item component and memoize 2b63c91f8
Bjørge Næss perf(base): memoize change indicator paths 7a2ffa668
Bjørge Næss perf(form-builder): memoize fileTarget event handlers bc7d1228f
Marius Lundgård build: update @sanity/color dependency (#2452) 5f8977d99
Bjørge Næss refactor: move a few shared utilities form form-builder to util package a391a1c13
Bjørge Næss refactor(form-builder): inject ArrayFunctions as prop instead of importing 828fc4587
Bjørge Næss chore(desk-tool): fix lint errors 7bce53c81
Bjørge Næss feat(types): add isArraySchemaType asserter ea7446ac7
Bjørge Næss feat(types): add initialValue type property 539496197
Bjørge Næss fix(types): add options property to BaseSchemaType 7978946a5
Bjørge Næss chore(eslint): add .snap files to eslintignore 57b4ed8a3
Bjørge Næss chore(test-studio): add a document type for testing initial values 95a122bf1
Espen Hovlandsdal feat(schema): add initialValue as overridable schema property 63d090e30
Rex Isaac Raphael feat(schema): allow objects with initial values 041913b54
Rex Isaac Raphael fix(schema): fix lint errors 0717b5838
Bjørge Næss feat: add support for defining initial values for all schema types 28593a003
Bjørge Næss fix(initial-value-templates): comment out check for _type 96416ded6
Bjørge Næss feat(form-builder): add support for resolving initial values in array input 959bdb414
Bjørge Næss feat(form-builder): add support for initial values in portable text editor 1bd633283
Bjørge Næss chore(test-studio): add an example of initial value on type referenced by name b0e9aa2ef
sanity - v2.9.1

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

🐛 Notable bugfixes

This release reverts the v2.9.0 studio search update due to an unexpected issue in studios with complex schemas. We are working on a fix and hope to reintroduce the change soon.

📓 Full changelog

Author Message Commit
Bjørge Næss Revert "feat(search): apply pt::text() when searching portable text fields" c02ba5e04
sanity - v2.9.0

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

✨ Highlights

Improved studio search

The Sanity Studio search now supports searching Portable Text fields by using the recently introduced pt::text() GROQ function.

Improved image fields

The image fields has seen a number of bugfixes and now properly display presence and change indicators, including for hotspot/crop fields and other image fields that opens in dialogs.

Sanity UI powered reference input

The default reference input in Sanity Studio has been refactored to use the Autocomplete component from Sanity UI which improves overall accessibility and fixes keyboard navigation bugs.

Other features

  • The language filter can now be configured with an array of document types to control which schemas the filter will appear on (thanks @spacedawwg!).

🐛 Notable bugfixes

  • Fixes false positive with image fields in dialogs, indicating that there's a change when there is none
  • The code input now wraps text inside the input so that all the code is visible without having to scroll horizontally (thanks @katherinepeterson!)

📓 Full changelog

Author Message Commit
Bjørge Næss chore: update pull request template 53ddb27e2
Espen Hovlandsdal feat(search): apply pt::text() when searching portable text fields ba30e9270
Bjørge Næss fix(form-builder): skip href for disabled intent buttons 3f3324418
Bjørge Næss fix(form-builder): navigate intentlink / button using router (pushstate) rather than regular page navigation 716499d2a
Bjørge Næss chore(test-studio): add example of reference fields with async and invalid filters a4af37aa7
Bjørge Næss chore: upgrade @sanity/ui 89b0bc988
Bjørge Næss refactor(form-builder): migrate reference input to use Sanity UI 43a192b30
Bjørge Næss fix(form-builder): make change indicator for reference input managed f596e109c
Marius Lundgård refactor(form-builder): visually adjust ReferenceInput 7b052dfe0
katherinepeterson fix(code-input): wrap text inside code input 717becfc7
Paul Welsh feat(language-filter): add documentTypes option 58df909b1
Bjørge Næss fix(base): add transaction-collator path reference 9c9fe9b2a
Bjørge Næss chore(imagetool): partially migrate imagetool to ts cc0541453
Bjørge Næss fix(imagetool): export type definitions for constants 9dfc1f87e
Bjørge Næss fix(types): make _type on hotspot/crop optional 98e6133f8
Bjørge Næss refactor(form-builder): hoist checkerboard component 57a61aac4
Bjørge Næss refactor(form-builder): move focus ring utils/hoc to components 796e5f01b
Bjørge Næss refactor(form-builder): extract RatioBox to a reusable component afad1b84b
Bjørge Næss feat(base): add a variant of change indicator for relative paths with passed isChanged value 1d7c1ae3b
Bjørge Næss fix(schema): add custom fields after asset + hotspot crop 3e450cd75
Bjørge Næss fix(form-builder): support presence & support deep linking for image tool and pass compareValue to dialog 81e39e7d0
Bjørge Næss refactor(form-builder): migrate ImageToolInput to Sanity UI 38644082f
Bjørge Næss fix(form-builder): show presence for users at fields behind dialogs at image field eeaea3140
Bjørge Næss fix(form-builder): show change indicator on image when any of the dialog field has changed 184eadf52
Bjørge Næss fix(form-builder): prevent Sanity UI autofocus behavior for image input dialog 009ce5409
Bjørge Næss fix(base): strip semicolon when tokenizing search terms 1a40da9ef
Marius Lundgård build(base): add missing @juggle/resize-observer dependency a0b17e148
Marius Lundgård fix(form-builder): remove BoundaryElementProvider in dialogs 8d663a712