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 - v2.30.0

Published by ninaandal over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

  • CLI copy dataset command now always prints a job id to make it easier to resume watching running jobs
  • It is now possible to navigate to a referring document from the 'delete document' dialog

🐛 Notable bugfixes

  • Fixed an issue where sanity deploy would return "Hostname already taken" for all errors
  • Added explanation in sanity exec --help on how to add arbitrary arguments to the script
  • Fixed date formatting issue in validation tooltip
  • Added scroll to the types dropdown menu when creating a new reference

📓 Full changelog

Author Message Commit
Nina Andal Aarvik fix(cli): show correct error msg for sanity deploy errors (#3269) d430381e5
Geoff Ball fix(desk-tool): restore S.documentList().defaultOrdering() functionality (#3245) 65c773abf
Espen Hovlandsdal fix(cli): correct checks for cli auth token f7a7c3584
Nina Andal Aarvik fix(cli): include explanation in exec helptext of how to pass arbitrary arguments (#3270) 7f8a042a1
Herman Wikner feat(desk-tool): pass documentScrollElement as portal element to PortalProvider in DocumentPanel 0b70237ec
Herman Wikner fix(base): fix field presence tooltip z-index issues e4ef2a14f
Herman Wikner fix(default-layout): restore focus on buttons when closing dialogs in navbar c4f8f8217
Per-Kristian Nordnes fix(desk-tool): open documentation link in new window c9976f7c0
Dain Cilke feat(cli): print copy dataset job id 5a41d1c76
Herman Wikner feat(desk-tool): add portal to DraftStatus and PublishedStatus b1021c327
Herman Wikner feat(desk-tool): add ReferencePreviewLink to ConfirmDeleteDialogBody + update UI 179f0d9ed
Herman Wikner feat(desk-tool): pass onReferenceLinkClick to ConfirmDeleteDialog 9f7b1349e
Rico Kahler test(desk-tool): mock usePaneRouter 86b7458a4
Martin Jacobsen feat: changes links for Hello Sanity (#3241) 5ea477a25
Nina Andal Aarvik fix(base): add scrolling to dropdown when adding new reference (#3281) 788a54161
Herman Wikner fix(validation): fix broken date validation message ce58d8337
Espen Hovlandsdal refactor(validation): correct typings on date formatter c35e63da6
Espen Hovlandsdal chore(test-studio): add schema example for minimum date value 02c5a4202
sanity - v2.29.8

Published by rexxars over 2 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 where the studio might crash when publishing due to a change in a third party dependency
  • Fixes an issue where user avatar from Google would sometimes not appear
  • Fixes a typo in the studio update dialog
  • Fixes a bug where initializing new projects with a dash in its name would not include it in the suggested output path

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(base): use same-origin referrer policy 6571340751
Rune Botten fix(default-layout): add a missing word to the current version text 5d3e515c77
Nina Andal Aarvik fix(cli): don't remove dash from output path (#3265) b0c8767b23
Espen Hovlandsdal chore(deps): upgrade @sanity/ui 7c186ad594
sanity - v.2.29.7

Published by skogsmaskin over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

https://user-images.githubusercontent.com/6951139/165326488-1754d237-4832-464c-a76d-aa4d67f822f1.mov

As part of a general effort to improve our onboarding experience, this release updates the studio templates available in the CLI.

These release notes also covers v.2.29.6

📓 Full changelog

Author Message Commit
RitaDias refactor(desk-tool): add test-id to missing document type schema (#3248) 473c5f4f4
Geoff Ball chore(cli): Update login docs (#3247) 44b425761
Per-Kristian Nordnes refactor(form-builder): stabilize objectEditData object 524cc97c5
shur fix: do not send in token to apiClient specifically during unauthenticated requests (#3250) 492e7cd49
Henrique Doro feat(cli): shopify template d50e5fbd7
RitaDias feat(cli): get started template 400c4e0df
Per-Kristian Nordnes feat(cli): store metadata on template used with project 41192c9d5
Per-Kristian Nordnes chore(cli): update depcheck ignores for templates a4351dd22
Per-Kristian Nordnes fix(cli): make .eslintrc file in templates folder equal to actual studios ba673dbdc
Per-Kristian Nordnes chore(cli): prettier and eslint template files b18b72c00
Rita refactor(cli): add temporary correct link for ux tests for go to docs 59bbd9f08
Rita refactor(cli): remove schema 28a8539d9
Per-Kristian Nordnes refactor(cli): hide empty schema msg for get-started template 86f754bad
Fred Carlsen feat(cli): add provider flag 5d05a4d52
Rita fix(cli): add hide condition for empty schema + height fix 032650129
Rita refactor(cli): fix update and remove hiding for the empty schema e1ce82374
Rita refactor(cli): change cta text ecc90f4cc
Rita refactor(desk-tool): refactor the text to use br acbbc7ab2
Rita refactor(cli, desk-tool): update link for empty message and cta button + remove line break 58e820538
Fred Carlsen feat(cli): hello sanity copy updates 83e3edc1c
Rita refactor(cli): replace hello sanity references to get started f756ef2e0
Herman Wikner fix(cli): update condition to render tutorial component 5b39e15f7
Rita refactor(desk-tool): change missing document types message - move full stop 6eef24923
Herman Wikner feat(default-layout): add tooltip content to create document button when no schema is created e088e071f
sanity - v2.29.5

Published by sjelfull over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Dry run mode for sanity graphql deploy

You can now preview GraphQL deployments and check for breaking changes without deploying.

📓 Full changelog

Author Message Commit
Marius Lundgård fix(base): guard against missing module global d152588be
Marius Lundgård build: update dependencies 9f636e7b6
Marius Lundgård build: upgrade @sanity/ui-workshop to v0.4 a85cb26e5
Marius Lundgård test(default-layout): fix story path 32bb1ded1
Herman Wikner refactor(default-layout): add data-ui attributes to elements in Navbar 264e91bc6
Rune Botten Chore: Refresh README (#3224) 44d924d74
RitaDias feat(core): add dry-run flag (#3226) d42ef78ca
RitaDias fix(form-builder): allow for upload of items when dropping over text (#3234) b5f4b49a7
sanity - v2.29.4

Published by skogsmaskin over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes regression in the previous release regarding pasting of HTML into the Portable Text Editor.
  • Fixes a rare bug with pasting plain text into the Portable Text editor where it sometimes would error and deny the paste.

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes fix(portable-text-editor): fix order of outer plugin stack f793cdaf4
Per-Kristian Nordnes fix(portable-text-editor): fix pasted plain text normalization issue 7e81046b1
Per-Kristian Nordnes chore(dev): upgrade sanity-plugin-mux-input to 1.1.1 63e33b9da
sanity - v2.29.3

Published by skogsmaskin over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Select organization with the CLI

Allow selecting an organization to attach new projects to during sanity init.

Other features

  • Update image input height based on image size.
  • Adds support for @sanity/language-filter to fallback to a different language select implementation when the current one is not relevant. (thank you @LiamMartens)

🐛 Notable bugfixes

  • Improves how patches are sent to the server in the Portable Text editor, potentially fixing a very rare heisenbug where the latest change in the editor would not be persisted.
  • Fixes a regression in the Portable Text editor's custom paste handler support.
  • Fixes issues in the Portable Text editor when merging two paragraphs with text annotations in some circumstances.
  • Fixes an issue where the number input wasn't allowing for decimal numbers (when the input is active).
  • Fixes an issue with the changelog when filtering out entries without data to display.

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(types): use type-only imports, drop react dependency e01014abe
Espen Hovlandsdal chore(deps): upgrade react types ec97f05e1
Per-Kristian Nordnes test(portable-text-editor): update refactored prop a4941ea67
Per-Kristian Nordnes refactor(portable-text-editor): change plugin callstack 304964bdd
Knut Melvær refactor(import): improve error message on duplicate IDs d6d4351f0
Liam Martens feat(language-filter): implement fallback component for language-filter (#3204) 75e75c5cd
RitaDias fix(form-builder): fix the number input to accept decimal values when default (#3219) 31af95f51
Rune Botten chore: update license files (#3201) ecb04440a
Herman Wikner fix(default-layout): prevent changelog crash by filtering out entries without data to display b53b3e206
Herman Wikner fix(default-layout): add missing link to changelog in github 517648e8f
Per-Kristian Nordnes refactor(portable-text-editor): add API .delete mode + rename option value 205622f26
Per-Kristian Nordnes refactor(form-builder): update renamed option value for the PTE API 985883055
Per-Kristian Nordnes fix(portable-text-editor): fix issue with merging blocks 33f3e4aac
Per-Kristian Nordnes fix(portable-text-editor): remove unused prop 13a129431
Per-Kristian Nordnes refactor(portable-text-editor): export prop types for the PTE components d618119ba
Per-Kristian Nordnes refactor(portable-text-editor): minor code enhancements cbca96cb6
Per-Kristian Nordnes fix(portable-text-editor): remove orphaned markDefs when splitting block at start d8d0dbfb4
RitaDias fix(form-builder) fix image resizing on initial load (#3196) bf6621813
radhe fix(core): emit reconnect on non-channel error in dataset copy job listener (#3167) d891474bb
Per-Kristian Nordnes refactor(portable-text-editor): refactor mutation and patch handling b318626b1
Espen Hovlandsdal feat(cli): allow selecting organization during project creation a1148456e
Per-Kristian Nordnes fix(portable-text-editor): fix wrong type option sent to custom paste handler f746973bf
Per-Kristian Nordnes fix(portable-text-editor): fix issues with insertion of data from custom paste handler 94a4e115f
Per-Kristian Nordnes test(example-studio): add updated config files 3212d3c42
sanity - v2.29.2

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

🐛 Notable bugfixes

  • Fixes an issue where client configured with a token via part:@sanity/base/configure-client would be reset.

📓 Full changelog

Author Message Commit
Espen Hovlandsdal chore(deps): pin node-ipc to 9.2.0 e0d6a6972
Per-Kristian Nordnes fix(base): respect client already configured with token de1204502
sanity - v2.29.1

Published by rexxars over 2 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 v2.29.0 release that prevented the @sanity/default-layout module from being installed

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes chore(default-layout): remove @santy/base from devDeps as it's now a runtime dep 0ed8ab7dd
sanity - v2.29.0

Published by rexxars over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

New changelog dialog

The Studio now has a new changelog dialog that features more in-depth information about the latest features and bugfixes.

🐛 Notable bugfixes

  • Fixes an issue in array inputs where the input was disabled when dragging items within a Portable Text Editor

📓 Full changelog

Author Message Commit
RitaDias fix(form-builder): fix hovering issue in PTE when within an array object (#3187) 59d458ce0
Herman Wikner chore(default-layout): update dependencies 044416a7c
Herman Wikner feat(default-layout): add update UI components 6b22ed642
Herman Wikner feat(default-layout): add changelog to Navbar ce1a7bf8e
Herman Wikner refactor(default-layout): remove studioStatus caad7d136
Herman Wikner feat(base): add changelog typings to module-status 00e243d51
Herman Wikner chore(base): update dependencies cfbe49124
sanity - v2.28.2

Published by rexxars over 2 years ago

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes an issue where sanity exec would use an unauthenticated user session for the client

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(base): return empty auth token stream in non-browser env e70dde030
sanity - v2.28.1

Published by rexxars over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Temporarily bring back the internal ConfirmDelete component from @sanity/desk-tool which was depended on by certain plugins

✨ Highlights

  • Allow using a writable stream as the output destination in the @sanity/export module (thanks @tsolbjor!)

📓 Full changelog

Author Message Commit
Thomas Solbjor feat(export): allow outputPath to be a writable stream 3ba7a9f20
Espen Hovlandsdal fix(desk-tool): temporarily bring back ConfirmDelete util 8e549772b
sanity -

Published by bjoerge over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

  • Adds a check for superfluous image metadata properties being specified
  • The studio now supports authentication for browsers that block third-party cookies

🐛 Notable bugfixes

  • Fixes a bug where document lists would not always show items in the correct order until scrolling down and back up again
  • Fixes a bug where the studio could crash if a user had insufficient permissions to fetch user profiles while collaborating with others
  • Fixes a number of issues with the sanity upgrade command when using --tag or --range
  • Upgraded @sanity/base to use react-refractor version 2.1.6 (thanks @JamesSingleton!)
  • Upgraded @sanity/base to use refractor version 3.6.0 (thanks @miketheman!)

📓 Full changelog

Author Message Commit
James Singleton chore(deps): update react-refractor@^2.1.6 65666b6c16
Espen Hovlandsdal fix(cli): ignore @sanity/client major upgrades aaed678242
Espen Hovlandsdal fix(base): ignore presence sessions with no user profile 51d1f5b3bd
Per-Kristian Nordnes feat(base): authToken datastore 36a8294a99
Per-Kristian Nordnes feat(base): new cross window messaging store aeee9ab6c2
Per-Kristian Nordnes refactor(base): wrappedClient will supports token auth afe5e9998c
Per-Kristian Nordnes refactor(base): userStore will take tokens into account d62d68434b
Per-Kristian Nordnes chore(default-login): wire up @santy/base 0e2e9f7003
Per-Kristian Nordnes refactor(default-login): use auth tokens when necessary 49f2fb68e1
Rita feat(desk-tool): add support for tokens in getJsonSt ream 96fb1adc11
Per-Kristian Nordnes chore(default-login): add @sanity/client ce4349ff50
Per-Kristian Nordnes refactor(desk-tool): use projectId for getToken 9f47ec3ee6
Per-Kristian Nordnes refactor(default-login): convert authenticationFetcher to TypeScript 16c590fc8d
Rita feat(base, default-login): add config for different login methods 2bab8c80ef
Per-Kristian Nordnes refactor(base): userStore will take tokens into account b3fb78852a
Per-Kristian Nordnes fix(base): explictly configure token to undefined 02961fa37b
Per-Kristian Nordnes refactor(base): add stream for same-window auth events too to be merged in 484fdd04f6
Per-Kristian Nordnes feature(default-login): add feature to sync window's login state 2f9d8b8100
Per-Kristian Nordnes feat(base): test for LocalStorage first in getToken ccca4b5212
Per-Kristian Nordnes chore: upgrade @sanity/client and @sanity/eventsource b87a9040e9
Per-Kristian Nordnes refactor(base): rename deleteToken > clearToken e83cdc0db2
Rita style(default-login): clean up comments - remove white spaces + change single line comments 760af1bcd5
Rita style(default-login): remove trailing white space e9372a5138
Per-Kristian Nordnes refactor(base): use query prop for client request e686fe28d1
Per-Kristian Nordnes refactor(default-login): simplify hooks 31ec4d8816
Per-Kristian Nordnes refactor(default-login): remove unnecessary spread 4027f1ea70
Per-Kristian Nordnes refactor(base): make token methods more error proof a9e9db12b4
Per-Kristian Nordnes refactor(desk-tool): resolve token from client directly 0db99b4b1e
Per-Kristian Nordnes chore(default-login): bump @sanity/base version 655db7382d
Per-Kristian Nordnes refactor(base): use util fn. for reading config 6522bd8b03
Espen Hovlandsdal refactor(types): provide typings for authentication fetcher part 3fb15afa8c
Espen Hovlandsdal refactor(default-login): simplify login wrapper, drop cookie test e9ee46d2f4
Espen Hovlandsdal feat(base): exchange session id for token if no cookie is set 0c2deafbfe
Espen Hovlandsdal refactor(base): guard against missing localStorage 6b734a57d0
Espen Hovlandsdal refactor(default-login) allow disabling token-based login fdab6e19b8
Espen Hovlandsdal refactor(base): rename authToken to authState ce41470ee3
Espen Hovlandsdal fix(base): make cross-window auth state work again b7165ccfc2
Espen Hovlandsdal chore(deps): normalize dependency versions 6c5b9bed68
Rico Kahler chore: upgrade @sanity/client f933826784
Bjørge Næss refactor(form-builder): hoist useOnClickOutside hook to shared directory + add comment about why its needed 8387b6a332
Bjørge Næss refactor(types): move schema preview types into its own file and exports types 86ce7bf87c
Bjørge Næss refactor(types): refactor getSearchableTypes to take only the structural type it requires 5f2dd65392
Bjørge Næss refactor(types): export ReferenceFilterOptions interface fa62936bb9
Bjørge Næss fix(types): refine schema preview typings fc5279df81
Bjørge Næss feat(types): add support for cross dataset references d84a245bef
Bjørge Næss refactor(base): make getPreviewPaths take a preview config instead of the type fa9638e3e3
Bjørge Næss refactor(base): rename function 1b44cef370
Rico Kahler refactor(base): remove unused fields b8c8142dc8
Bjørge Næss feat(schema): support cross dataset reference schema type 84e29e6f50
Bjørge Næss feat(schema): support schema validation for cross dataset references c8d56179a8
Bjørge Næss fix(core): exclude cross dataset references from graphql generation ac780e13cb
Bjørge Næss feat(base): add support for using cross dataset refs in previews cfd6a00c16
Bjørge Næss chore(test-studio): add cross dataset token plugin 023ff51cc2
Bjørge Næss chore(test-studio): add test schemas for cross dataset refs 09f01a37a8
Bjørge Næss feat(form-builder): add cross dataset reference input 9602a8869b
Bjørge Næss test(form-builder): add unit tests for cross dataset reference input 7d61f00dfa
Rico Kahler feat(base): include skipCrossDatasetReferenceValidation in delete-like operations f883a7ddc9
Rico Kahler feat(desk-tool): new confirm delete dialog for cross dataset references 02017a06e0
Bjørge Næss fix(desk-tool): simplify reading projectId from token document id d955086ebf
Rico Kahler fix(desk-tool): catch 404 and replace with empty result (#3162) 9e04fcb839
Bjørge Næss chore(test-studio): add example for docs dataset 3e5a2cd599
Bjørge Næss chore(test-studio): add example of cross dataset reference subtype 286b16ecf7
Bjørge Næss feat(test-studio): add example/debug test document for circular cross dataset refs 1631eea64c
Rico Kahler fix(desk-tool): add project IDs to delete dialog c0d0014b4a
Espen Hovlandsdal fix(desk-tool): correct document list ordering on first load 21cb5b0935
Espen Hovlandsdal feat(schema): warn when providing superflous image metadata props d1c9d6a2f4
sanity - v2.27.3

Published by rexxars over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes a number of issues with the sanity upgrade command when using --tag and/or --range
  • Fixes a bug in the Portable Text editor where selecting all the content and overwriting it by inserting text would cause an error

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes chore(portable-text-editor): pin slate version 672bd5e03
Espen Hovlandsdal fix(cli): use current version if failing to find upgradable version eeab603ff
Espen Hovlandsdal fix(cli): skip caret prefix when upgrading to tag 33a0219c2
Espen Hovlandsdal fix(cli): prevent crashing on upgrade if package does not exist locally dfe133432
Espen Hovlandsdal fix(cli): normalize hashed module version numbers when comparing f8d35291f
Espen Hovlandsdal refactor(cli): move removal of modules until after manifest write c64319e05
Espen Hovlandsdal fix(cli): disallow specifying specific modules to upgrade d8673d65e
Espen Hovlandsdal fix(cli): improve help text for upgrade command 0892cc374
sanity - v2.27.2

Published by rexxars over 2 years ago

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes an issue where the defined apiVersion would not be used for document lists in the desk tool structure (thanks @barbogast!)

Other changes

  • Upgrades refractor dependency to ensure a prismjs security upgrade is included (thanks @miketheman!)

📓 Full changelog

Author Message Commit
Espen Hovlandsdal chore(deps): pin typescript version to 4.5.5 aeffd6a32
Benjamin Arbogast fix(desk-tool): make document lists respect defined api version 9bc40ffc0
Espen Hovlandsdal fix(desk-tool): add missing apiVersion typings a125e4ebf
Espen Hovlandsdal chore(test-studio): add apiVersion to a structure node 16c2d083f
Mike Fiedler chore(deps): update to refractor@^3.6.0 54eceed16
sanity - v2.27.1

Published by ricokahler over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

  • Adds keyboard arrow navigation in the Portable Text Editor toolbar (#3126)

🐛 Notable bugfixes

  • Fixes an issue where spellchecking in the Portable Text Editor would not be enabled when omitted in schema options. (#3146)
  • Fixes a bug where Portable Text block values without a defined style property would throw an error when editing that block. (#3161)
  • Improves the performance of the reference search. (#3159)

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes chore(portable-text-editor): remove and resolve TODO regarding spellcheck d99c2ff94d
Per-Kristian Nordnes fix(portable-text-editor): fix spellcheck defaults issue 0ce0653c93
Herman Wikner chore(base): update dependencies 44be99f0bd
Herman Wikner feat(base): add useRovingFocus hook ade3cd7558
Herman Wikner test(base): add roving focus workshop d49d73409f
Herman Wikner refactor(base): improve CollapseMenu component 2fa6dbecf7
Herman Wikner test(base): update CollapseMenu workshop c25201af65
Herman Wikner refactor(default-layout): update ToolCollapseMenu with refactored CollapseMenu + add roving focus 5d315661fc
Herman Wikner refactor(form-builder): update PTE ActionMenu with refactored CollapseMenu 6f167f2ee1
Herman Wikner refactor(form-builder): update PTE InsertMenu with refactored CollapseMenu b675e1a278
Herman Wikner feat(form-builder): add roving focus to PTE Toolbar 4123f4decf
RitaDias feat(eventsource): remove event source package from monorepo (#3152) 65bc2101b1
Herman Wikner fix(base): fix collapse text option in CollapseMenu e94633d3cf
Per-Kristian Nordnes refactor(portable-text-editor): make sure editor content has normalized style prop ad91bf21df
Per-Kristian Nordnes test(portable-text-editor): test the value normalization of style prop 03b206ce29
Bjørge Næss fix(form-builder): rewrite missing ids query and add a few bits of clarity (#3159) fe83c0faeb
sanity - v2.27.0

Published by ricokahler over 2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

More Presence

Presence, the ability to see where your collaborators are, is now visible in document lists, search results, and reference previews.

Other features

  • You can now configure the default API version for Vision (#3127)

🐛 Notable bugfixes

  • Removes a false positive validation error with some nested image and file fields (#3119)
  • Fixes a bug where adding marks to a Portable Text block would remove some existing marks (#3124)
  • Fixes a bug where list items in Portable Text without a level would cause an error (#3129)
  • Fixes a bug where read-only arrays showed an empty actions menu (#3130)
  • Improves empty read-only state for arrays (#3131)
  • Adds validation warnings on incorrectly implemented asset sources (#3135)

📓 Full changelog

Author Message Commit
Espen Hovlandsdal chore: externalize + upgrade generate-help-url 4e6b57d9fa
Espen Hovlandsdal fix(cypress): use uuid instead of nanoid for document ids e8d0d6a5fb
Marius Lundgård chore: render path to package.json when running npm run versions e961b84e01
Espen Hovlandsdal fix(form-builder): unset image/file field when last subfield is cleared 5cce39da0a
Simeon Griggs fix(cli): change upgrade text depending on number of modules ea454e4561
Bjørge Næss fix(default-layout): fix bug that required two clicks to close studio hints sidecar a528b837c4
Per-Kristian Nordnes fix(portable-text-editor): fix normalization bug in adding marks + test edef424405
Herman Wikner feat(base): add DocumentPreviewPresence component 27d15d6ac1
Herman Wikner refactor(desk-tool): remove getStatusIndicator PaneItem helper (replaced) f29dc3654d
Herman Wikner feat(desk-tool): add presence to PaneItem b96d13f811
Herman Wikner refactor(desk-tool): update DocumentListPaneContent ebabebce58
Herman Wikner feat(form-builder): add presence in ReferencePreview 6c33f3ff3b
Herman Wikner feat(form-builder): pass document presence data to ReferencePreview from PreviewReferenceValue 455aa096c5
Herman Wikner feat(form-builder): pass document presence data to PreviewReferenceValue in ArrayItemReferenceInput d6e2313407
Herman Wikner feat(form-builder): pass document presence data to PreviewReferenceValue in ReferenceInput 9c513c879f
Herman Wikner feat(default-layout): add presence in search 110594371f
Herman Wikner refactor(form-builder): update presence in OptionPreview 507ee8022a
Herman Wikner feat(base): add PreviewCard component 4852bd8f78
Herman Wikner refactor(form-builder): remove PreviewCard component, replaced by a new component located in base 9254717b1a
Herman Wikner test(base): add PreviewCard workshop story 9318d82685
Bjørge Næss refactor(form-builder): update document presence from sanity/studio input wrappers 6eaf8fb458
Herman Wikner refactor(form-builder): update presence in PreviewReferenceValue 2dacc3b6de
Herman Wikner chore: export DocumentPresence interface 0e3522cece
Fred Carlsen fix(form-builder): improve empty read-only array state (#3131) d3900918c7
Fred Carlsen fix(form-builder): hide array actions if read-only (#3130) 4d21c9f740
Fred Carlsen feat(vision): make default api version configurable (#3127) 892e1d5cb0
Simeon Griggs fix(default-layout): remove null/undefined tools c5545f65b1
Marius Lundgård fix(base): remove debug style c548fbe39a
Espen Hovlandsdal fix(form-builder): ensure asset sources is array before usage 7aefcd94dc
Espen Hovlandsdal fix(form-builder): forward ref in default asset source cd1f7e84d1
Espen Hovlandsdal refactor(test-studio): forward ref in noop asset source bb558d1455
Per-Kristian Nordnes fix(portable-text-editor): add render defaults for list blocks levels when missing bde7abda0c
Rico Kahler fix(form-builder): remove rogue text 😄 53e302ce2b
sanity - v2.26.0

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

Updated File and Image Input

File component

  • Empty state takes up much less vertical space
  • Field with file selected also takes up less vertical space
  • Display original file name and size
  • Options to download the file or copy the url

Image component

  • Empty state takes up much less vertical space
  • Image is vertically responsive to the height of the window, taking up less vertical space
  • Images are no longer enlarged to fit the size of the field
  • Options to copy image url and download the image
File Image
File Input Image Input

Improved change indicator highlighting in Portable Text Editor

Change Indicator for PTE

Updated login status popover to display information about the current user

  • Shows full name, email and login provider of the logged in user
  • Link to project management interface

Login information for user

🐛 Notable bugfixes

  • Fixes an issue where the empty editor placeholder text would sometimes cause focus problems in Webkit.
  • Fixes an issue where multiple types in array input would prevent it from being scrollable

📓 Full changelog

Author Message Commit
Espen Hovlandsdal chore(client): move client out of monorepo 0b9dc295a
Espen Hovlandsdal chore: upgrade to @sanity/client@^3.0.1 4a45fbae7
Espen Hovlandsdal refactor(base): provide expected return type for availability check c3f10e7a0
Espen Hovlandsdal fix(perf): use non-relative @sanity/client 0f9ef64a3
Bjørge Næss chore: remove community-studio submodule b91e5bbda
Per-Kristian Nordnes test(portable-text-editor): Replace 'Control' key with 'Meta' when running on Apple platform. ef663d655
RitaDias feat(form-builder, imagetool): update Image Input & File input (#3050) 9e5a11cb0
Per-Kristian Nordnes fix(portable-text-editor): disallow pointer events on placeholder 1c7f5d1e1
Per-Kristian Nordnes test(portable-text-editor): update test snapshot da849dc77
Per-Kristian Nordnes feature(form-builder): guard that hotkeys for the PTE is a stable object + warn if not 802e31024
jorngeorg feat(default-layout): update LoginStatus design 8dd9faf8f
Herman Wikner chore(default-layout): add @sanity/ui-workshop and @sanity/logos dependencies 4af04f205
Herman Wikner refactor(default-layout): pass shared data to PresenceMenu and LoginStatus in Navbar b2398aac8
Herman Wikner test(default-layout): add LoginStatus workshop bc898be19
Herman Wikner refactor(default-layout): add projectId prop to PresenceMenu af8ff5dcb
Herman Wikner chore(types): add provider property to CurrentUser interface 2a6e9a1c4
Herman Wikner feat(base): add onHasChanges callback to CoreChangeIndicator and ChangeIndicatorWithProvidedFullPath + add withHoverEffect option d2ab6f2d1
Herman Wikner feat(base): update styling ElementWithChangeBar with withHoverEffect prop + skip return ChangeBar if there are no changes 9a047a952
Herman Wikner feat(form-builder): update PTE EditableWrapper design 4020d60fb
Herman Wikner feat(form-builder): add folder with common components in PTE (ReviewChangesHighlightBlock and StyledChangeIndicatorWithProvidedFullPath) a91fb4fb2
Herman Wikner feat(form-builder): update PTE BlockObject with review changes highlight block and move styling into separate file ad2bcf2f7
Herman Wikner feat(form-builder): update PTE TextBlock with review changes highlight block 525438a2b
RitaDias fix(form-builder): fix overflow when there are many types (#3114) 4d9fd215a
Herman Wikner feat(desk-tool): improve MissingDocumentTypesMessage design dd87546c7
sanity - v2.25.4

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

🐛 Notable bugfixes

  • Fixes a bug in the Portable Text Editor where opening inline objects of type reference would not open the editing interface if the reference was set already
  • Fixes issue where document preview images weren't updating when changed
  • Fixes issue where array items with initial value were overriding set values when duplicating

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes fix(form-builder): fix issue with editing inline object references in PTE a9ba0a022
Marius Lundgård fix(base): remove use of useMemo when rendering preview media 07c9d08d2
Bjørge Næss fix(form-builder): skip initial value resolution when inserting non-empty array items f77b4def9
sanity - v2.25.3

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

🐛 Notable bugfixes

  • Fixes a bug where pasting into an empty Portable Text Editor would cause an error
  • Fixes race condition that caused a crash in the studio when arrays were used

📓 Full changelog

Author Message Commit
Fred Carlsen fix(form-builder): prevent race condition crashing the studio in arrays (#3100) fa422aff9
Per-Kristian Nordnes refactor(portable-text-editor): use more specific block determinator test e9d733c96
Per-Kristian Nordnes test(portable-text-editor): add more tests for operationToPatches 1f1d7cb6a
Per-Kristian Nordnes fix(portable-text-editor): fix bug with inserting blocks into an empty editor f57a0f4b5
sanity - v.2.25.2

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

🐛 Notable bugfixes

  • Fixes a bug introduced in v2.25.1 where inserting object blocks in the Portable Text Editor would cause an error

📓 Full changelog

Author Message Commit
Brian Ball docs: fix typo in contribution guidelines (#3067) c323c21fc
Per-Kristian Nordnes fix(portable-text-editor): fix bug with insertNodePatch c99703da6