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

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 some permission issues where users weren't able to edit documents when they should be
  • Fixes a bug where placeholder text in an empty Portable Text Editor would be stuck for a split second when it should not be
  • Fixes a bug where splitting lines in the Portable Text Editor including an inline object would corrupt the inline object data
  • Fixes an issue in Vision where controls and result were cut off in smaller viewports
  • Fixes an issue in Vision where the params frame could not be selected
  • Fixes an issue in Vision where tabbing to the params frame and editing the JSON would crash the studio

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes test(example-studio): add hotkey example to customized editor 7996e1529
Per-Kristian Nordnes chore: upgrade @types/node 4d811f532
Bjørge Næss chore: remove --force flag when running tsc/type check f95468b87
Per-Kristian Nordnes fix(portable-text-editor): fix types and robustify fromSlateValue 2323c8fce
Per-Kristian Nordnes fix(portable-text-editor): fix type issue and remove obsolete code 36fc82143
Per-Kristian Nordnes fix(portable-text-editor): fix bugs and type issues in operationToPatches d4705d406
Simeon Griggs update readme for consistency with @sanity/document-internationalization f25950590
Marius Lundgård refactor(base): organize preview components d22c1990a
Marius Lundgård refactor(base): improve preview components 2850294b2
Marius Lundgård test(base): improve preview workshop 52e4be3e1
Marius Lundgård refactor: move progress components to base 04b9eea3f
Marius Lundgård refactor(test-studio): pass text as preview media f08907cc4
Marius Lundgård refactor(base): simplify preview constants 8fb6d3c53
Marius Lundgård refactor(form-builder): adjust preview action padding c562932fd
Marius Lundgård refactor(base): remove unused components b413287fc
Marius Lundgård refactor(base): rename to TemplatePreview fb23f8f23
Marius Lundgård test(base): rename to TemplatePreview 6d87ae10e
Marius Lundgård refactor(desk-tool): use TemplatePreview component c875309d9
Marius Lundgård refactor(base): re-add deprecated components (for backwards compatibility) 2a2f90253
RitaDias feat(desk-tool): make inspect dialog pane specific (#3090) 29554378d
RitaDias Fix permission issue panel (#3087) 835bff3cc
Fred Carlsen fix(vision): fix min and max pane sizes so controls or results is never cut off (#2902) 94fac97b2
Fred Carlsen fix(vision): fix z-index issues between CodeMirror and resizer 875fbc979
Fred Carlsen refactor(form-builder): use context for conditional read only (#3072) 01d5b1f12
Per-Kristian Nordnes fix(portable-text-editor): fix glitch in placeholder rendering de7796bdb
sanity - v2.25.0

Published by skogsmaskin almost 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Maintainance update to the Portable Text Editor

This update brings fixes for several bugs and improvements to the Portable Text Editor's performance and reliability. It also includes:

  • Better keyboard accessibility when editing embedded objects
  • Better tracking of validation errors within the editor
  • Better Android and IME support

Default .eslintrc file when creating new projects with the CLI

New projects bootstrapped with the CLI will now contain a default .eslintrc that extends our new shared ESLint config @sanity/eslint-config-studio.

🐛 Notable bugfixes

  • Fixed an issue where the mode parameter for the code input would be incorrectly interpreted (Thanks Tommy for the PR!)
  • Fixed an issue where sanity upgrade would fail if @sanity/code-input was installed.
  • Fixed an issue where sanity upgrade, sanity versions and sanity debug would fail if running without any dependencies installed.
  • Removed third party dependency causing security warnings with npm audit (immer.js)

📓 Full changelog

Author Message Commit
Bjørge Næss fix(base): make presence store debug use debugparams 9583d759e5
Tommy fix(code-input): ace mode variable is interpreted wrongly (#3077) 2522cde042
Bjørge Næss chore(test-studio): fix lint error dad4c2dfb5
Espen Hovlandsdal fix(core): provide ace globals when mocking browser env 3e90892283
Rico Kahler feat(cli): create .eslintrc when bootstrapping new projects (#3055) 822ed4114a
Espen Hovlandsdal chore: upgrade webpack-hot-middleware 19cca369cf
Per-Kristian Nordnes chore(portable-text-editor): upgrade package versions e7a20f98e5
Per-Kristian Nordnes feat(portable-text-editor): define CustomTypes for slate 95014e8f5d
Per-Kristian Nordnes refactor(portable-text-editor): use new types and determinators 2438731655
Per-Kristian Nordnes fix(portable-text-editor): fix selection issues cf302f3e8a
Per-Kristian Nordnes feat(portable-text-editor): add new plugin that emits PT selections 213db4797a
Per-Kristian Nordnes refactor(portable-text-editor): refactor the Editable component (see list) 1e3830017b
Per-Kristian Nordnes refactor(portable-text-editor): use better typings with toPortableTextRange 3694281b78
Per-Kristian Nordnes fix(portable-text-editor): change default listItem value 1d98eff9bc
Per-Kristian Nordnes fix(portable-text-editor): fix bug with adding marks 826267e6f2
Per-Kristian Nordnes refactor(portable-text-editor): don't emit or change editor in pt-list plugin 6388eb3223
Per-Kristian Nordnes chore(portable-text-editor): remove unused code ac11f26e5e
Per-Kristian Nordnes refactor(portable-text-editor): don't emit selections or change editor in patching plugin 5a23c01c8f
Per-Kristian Nordnes chore(portable-text-editor): remove unused code f7d3cb1f13
Per-Kristian Nordnes refactor(portable-text-editor): use shared fn to create new block 69e6aa9266
Per-Kristian Nordnes feat(portable-text-editor): reset block style on enter abc9f9632f
Per-Kristian Nordnes refactor(portable-text-editor): fix issues and remove code from InsertData plugin a88524c379
Per-Kristian Nordnes refactor(portable-text-editor): fix and clean up clipboard handling 851d072469
Per-Kristian Nordnes refactor(portable-text-editor): refactor selection adjustments for unset child 6418fc2649
Per-Kristian Nordnes refactor(portable-text-editor): move hasEditableTarget util to Editable caa1e00e47
Per-Kristian Nordnes test(portable-text-editor): refactor and add component tests for PortableTextEditor 5ed1c847de
Per-Kristian Nordnes test(portable-text-editor): update test in regard to new key generator used 86ca12fb7a
Per-Kristian Nordnes test(portable-text-editor): make collaborative test environment more reliable 018b51b2a9
Per-Kristian Nordnes test(portable-text-editor): add selection adjustment collab test b5467b7f93
Per-Kristian Nordnes test(form-builder): streamline container props with other PTE Workshop stories 35f1fb1754
Per-Kristian Nordnes refactor(form-builder): refactor wrapping of the PTE components 8c32868076
Per-Kristian Nordnes fix(form-builder): fix Android breakage in PTE 702a9d94b3
Per-Kristian Nordnes fix(form-builder): fix zIndex issue with VisibleOnFocusButton f1305e4361
Per-Kristian Nordnes fix(form-builder): fix several issues causing selection issues in the PTE 10aa7668d6
Per-Kristian Nordnes test(portable-text-edior): increase timeouts as CI struggles with Win testing 24dcdddf18
Per-Kristian Nordnes fix(portable-text-editor): check for child path before checking for marks 1ec2b0f327
Per-Kristian Nordnes refactor(portable-text-editor): expect empty blocks to have default (first) style 1f739400d7
Per-Kristian Nordnes fix(portable-text-editor): prefer unknown over any type 0ca1d4135d
Per-Kristian Nordnes fix(portable-text-editor): always emit the new value aa519e65e1
Per-Kristian Nordnes fix(portable-text-editor): make a default selection when focusing 7a4bdfb992
Per-Kristian Nordnes fix(portable-text-editor): enter hotkey: only reset style when in end of line a5130be5d1
Per-Kristian Nordnes refactor(portable-text-editor): clean up selection adjustment fn feb4f128a7
Per-Kristian Nordnes chore(portable-text-editor): add @types/node 90896acfd4
Per-Kristian Nordnes test(portable-text-editor): make a more special test selection 75b0a8b483
Per-Kristian Nordnes fix(form-builder): PTE toolbar must respect readOnly 5d3a1afd7c
Per-Kristian Nordnes refactor(form-builder): fix and refactor PTE input selection and focus handling 2065fe810d
Per-Kristian Nordnes test(form-builder): fix focusPath issue with TestInput 7835089bbd
Per-Kristian Nordnes fix(form-builder): fix contentEditable issue with TextBlock 8ec0485570
Per-Kristian Nordnes fix(portable-text-editor): fix broken typings for patchToOperations 5b6b6d3873
Per-Kristian Nordnes refactor(portable-text-editor): change plugin chain ordering c4b3692f9f
Per-Kristian Nordnes feature(portable-text-editor): add some convenience methods c4dae64d41
Per-Kristian Nordnes refactor(portable-text-editor): remove sel. state and keep object equality 328f1522d1
Per-Kristian Nordnes fix(portable-text-editor): fix broken delete fn and add test 6e819ab1a1
Per-Kristian Nordnes test(portable-text-editor): move tests into own plugin test folder 00ba26fb7f
Per-Kristian Nordnes test(portable-text-editor): try to lower limits after selection refactor 8b0b12c1d3
Per-Kristian Nordnes fix(portable-text-editor): normalize plain text fragment too 3ebc72f545
Per-Kristian Nordnes fix(form-builder): pte wrap block extras in own conatiner c38fdf7574
Per-Kristian Nordnes refactor(form-builder): PTE: refactor selection and focus handling 124cfdfc85
Per-Kristian Nordnes feature(form-builder): PTE make inline objects editable by keyboard 8e7d86c6c3
Per-Kristian Nordnes fix(form-builder): PTE make annotation edit toolbar work with keyboard 205781cc53
Per-Kristian Nordnes test(form-builder): Tweak PTE Workshop values 8da6118f13
Per-Kristian Nordnes refactor(form-builder): rename files: Input > Compositor e08d26a700
Per-Kristian Nordnes refactor(portable-text-editor): don't manipulate focus in EditableAPI 79a963cd8f
Per-Kristian Nordnes fix(form-builder): PTE: fix focus issues when edting modals 80948f9344
Per-Kristian Nordnes docs(form-builder): add some comments for what the hooks are for 049857b369
Per-Kristian Nordnes feature(form-builder): add single simple hook to scroll to editor elments when focus from outside 51faec3514
Per-Kristian Nordnes refactor(form-builder): split helper func. into two and export f00dd10545
Per-Kristian Nordnes test(test-studio): add validation rules to test schema 9b65776d9f
Per-Kristian Nordnes feature(portable-text-editor): add convenience method: isObjectPath 6199c3bb39
Per-Kristian Nordnes refactor(form-builder): use path function on PortableTextEditor instead 98e5c4597d
Per-Kristian Nordnes refactor(form-builder): turn off global spellcheck 7a86951290
Per-Kristian Nordnes feature(form-builder): open modals when double clicking on block/inline objnect 1a2dc8a993
Per-Kristian Nordnes refactor(portable-text-editor): refactor withInsertData plugin 7ab5985df3
Per-Kristian Nordnes chore(portable-text-editor): remove unused code + update comment 3dbf8bb376
Per-Kristian Nordnes test(portable-text-editor): separate the PortableTextEditorTester com. and tests. f6401577cb
Per-Kristian Nordnes fix(portable-text-editor): call .onChange on all manipulating EditableAPI functions 35441f6caf
Per-Kristian Nordnes feature(form-builder): make easier keyboard access to focused block object 99cf8eabbd
Per-Kristian Nordnes fix(form-builder): avoid elm. focus tangling with menu button on BlockObjectPreview eeed45caec
Per-Kristian Nordnes refactor(form-builder): remove redundant user-select styles 478c005738
Per-Kristian Nordnes fix(form-builder): fix some cross browser issues with object toolbars 142a3a6ff5
Per-Kristian Nordnes refactor(form-builder): tune focusPath and selection handling 233255423e
Per-Kristian Nordnes test(form-builder): add focusPath inspector to workshop story a6c2a7c07b
Per-Kristian Nordnes refactor(portable-text-editor): clean up loose ends in copy/paste 4ce2ec401b
Per-Kristian Nordnes fix(portable-text-editor): fix bug in isObjectPath determinator fn 9e3f6e7c38
Per-Kristian Nordnes refactor(portable-text-editor): work around introducing breaking change fb0a8cffb3
Per-Kristian Nordnes refactor(form-builder): add descriptive convenience method 15a5e10027
Per-Kristian Nordnes refactor(form-builder): fix issues with scroll to focus from outside 8a7401ae0e
Per-Kristian Nordnes fix(form-builder): only use 'is-needed' for scrollIntoView 83a2fcf0ba
Per-Kristian Nordnes fix(portable-text-editor): fix bug in isObjectPath e3cbdfd163
Per-Kristian Nordnes test(portable-text-editor): add selection adjustment test 861c11c9c1
Per-Kristian Nordnes fix(portable-text-editor): fix bug in object path determinator 10541594e6
Per-Kristian Nordnes refactor(portable-text-editor): always emit selection when changed 92d1973278
Per-Kristian Nordnes refactor(portable-text-editor): dirty-check props value a84ad6445f
Per-Kristian Nordnes fix(portable-text-editor): change plugin order 725fa7e7d4
Per-Kristian Nordnes fix(portable-text-editor): call onChange where needed de0ffeefe3
Per-Kristian Nordnes refactor(portable-text-editor): refactor / fix issues with selection adjustment 471c8167af
Per-Kristian Nordnes test(form-builder): update workshop files 268b8163ab
Per-Kristian Nordnes test(form-builder): increase jest timeout on test bc0f56cf14
Per-Kristian Nordnes fix(form-builder): fix reference element issue with popover 68a517f84b
Per-Kristian Nordnes refactor(form-builder): memo useObjectEditData hook result 6a20dcdf54
Per-Kristian Nordnes fix(form-builder): fix blur and foucus issue with hooks b53e808c2d
Per-Kristian Nordnes test(form-builder): increase jest timeout for test 2a35113b15
Per-Kristian Nordnes fix(form-builder): fix issues with popover object editing 29db1e6b0b
Per-Kristian Nordnes fix(form-builder): fix possible undefined error 0206dc5091
Per-Kristian Nordnes test(form-builder): update workshop story 7401f66a3a
Per-Kristian Nordnes fix(portable-text-editor): fix bug in onPaste handler 39557cd3f7
Per-Kristian Nordnes fix(form-builder): don't close object edit modal if not top layer 3dfa6724f1
Per-Kristian Nordnes fix(portable-text-editor): put selection in state to force update context provider be4dded4a5
Per-Kristian Nordnes refactor(portable-text-editor): rename function and simplify 2bab799fa3
Per-Kristian Nordnes fix(form-builder): fix browser comp. issues with dragging block objects 077dfa9d6e
Per-Kristian Nordnes fix(form-builder): add cursor css to inline object b14439dcdd
Per-Kristian Nordnes test(form-builder): add ReviewChangesContextProvider d71d7d2293
Per-Kristian Nordnes fix(portable-text-editor): don't break API signature 0fb1c2a0a0
Per-Kristian Nordnes fix(portable-text-editor): upgrade @sanity/slate-react 95b8f47dba
Per-Kristian Nordnes fix(portable-text-editor): add missing value change emission cd0e54f82d
Per-Kristian Nordnes fix(portable-text-editor): fix issues with dragging selections around fddd1c62cd
Per-Kristian Nordnes fix(portable-text-editor): fix issues with restoring value from props 60fc9fb382
Per-Kristian Nordnes refactor(form-builder): remove obsolete hook e93067b46d
Per-Kristian Nordnes fix(portable-text-editor): emit selection as new object a292cb1f1e
Per-Kristian Nordnes feature(portable-text-editor): put basic plainText and HTML on clipboard 95494bfa4f
Per-Kristian Nordnes fix(form-builder): remove obsolete style 678015b592
Per-Kristian Nordnes chore(portable-text-editor): upgrade package 3e26008bad
Per-Kristian Nordnes refactor(form-builder): rename callback fn 49ad1b98bf
Per-Kristian Nordnes refactor(form-builder): add typings to React ref + optimize cb 84df66ecd5
Marius Lundgård fix(form-builder): make sure dialogs open in full-pane mode 5739590e19
Per-Kristian Nordnes test(portable-text-editor): add test for marks normalization a68bc844ca
Per-Kristian Nordnes fix(portable-text-editor): fix normalization bug a8918d5fed
Per-Kristian Nordnes fix(portable-text-editor): call onChange when new selection from props 3132abea65
Per-Kristian Nordnes refactor(form-builder): change var into global const 042a1c2895
Per-Kristian Nordnes refactor(form-builder): rename export to match filename 596f8fb875
Per-Kristian Nordnes chore(portable-text-editor): don't specify types 90fd15d074
Per-Kristian Nordnes fix(portable-text-editor): remove obsolete typecast c23a540598
Per-Kristian Nordnes fix(portable-text-editor): add missing useCallback 5a8620bc4d
Per-Kristian Nordnes test(portable-text-editor): move schema test file to test root c08a5f5a93
Per-Kristian Nordnes fix(portable-text-editor): make void childs draggable only 802cca8e21
Per-Kristian Nordnes fix(form-builder): remove redundant CSS that breaks layout on Webkit 809f4fbbb6
Per-Kristian Nordnes refactor(portable-text-editor): Implement our own placeholder rendring 8f17166aeb
Per-Kristian Nordnes refactor(form-builder): render our own placeholder element 8b535cbd00
Per-Kristian Nordnes fix(form-builder): fix styled components syntax 3f4a6c7a1f
Per-Kristian Nordnes chore(portable-text-editor): upgrade packages 90f8f3ef9d
Per-Kristian Nordnes test(portable-text-editor): allow for serving over network 3d3e9bc9f6
Rico Kahler fix(desk-tool): prevent stale actionHandlers (#3081) ee6021d0dd
Espen Hovlandsdal fix(cli): delete react-ace before upgrade if going from 8.x to 9.x 91f16be06a
Espen Hovlandsdal fix(cli): fix crash when running upgrade/debug/versions without dependencies e025d04c30
Espen Hovlandsdal fix(cli): add missing await 3df83a43df
Bjørge Næss fix(code-input): fallback to 'text' if unable to resolve language mode in preview e3a84862db
sanity - v2.24.2

Published by bjoerge almost 3 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 with @sanity/code-input causing graphql deploy to error with the message TypeError: Cannot read property 'setModuleUrl' of undefined

📓 Full changelog

Author Message Commit
Bjørge Næss fix(code-input): remove webpack-resolver-import c324da6e15
sanity - v2.24.1

Published by rexxars almost 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

New features

  • Allow loading more syntaxes for the @sanity/code-input programmatically, see the code input README for more details
  • You can now specify coupon codes when creating a new project using the CLI, by using the --coupon flag, eg sanity init --coupon <code>

🐛 Notable bugfixes

  • Fixes bug where initial values would no longer work when inserting in arrays
  • Fixes a bug that caused some false warnings with duplicate and update permissions

📓 Full changelog

Author Message Commit
Fred Carlsen fix(form-builder): fix dark mode in FormBuilder workshop 0238189f0
Bjørge Næss feat(code-input): upgrade ace and add support for custom modes 6121832bb
Bjørge Næss chore(code-input): add example of custom rust language support 625c06a17
Bjørge Næss chore(code-input): remove lodash 5caea42c5
Marius Lundgård build: update @sanity/ui 0d000dcf9
Marius Lundgård build: update @sanity/ui-workshop 81a3b3776
shur feat(cli): allow --coupon for sanity init (#3061) 22aca18ff
Bjørge Næss fix(form-builder): fix initial value not resolved when adding array items 6c889631b
Rico Kahler fix(base): fix permissions bugs by fallbacking back to published variant 8fbf2e560
Espen Hovlandsdal fix(cli): disallow --project and --coupon both being used a99ad9721
Espen Hovlandsdal fix(cli): give more descriptive error when coupon check fails 79d72ce58
Espen Hovlandsdal fix(cli): skip project selection when using a coupon b50db53f8
Espen Hovlandsdal fix(cli): dont require a user to validate coupon e72bf3eb1
sanity - v2.24.0

Published by hermanwikner almost 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Field groups

Added Field Groups to schemas and document view. Read more about the feature here https://www.sanity.io/docs/field-groups.

Field groups

New array item menus

Arrays now supports adding new items before/after existing array items, and also duplicating existing items
New array item menus

New and improved document status indicator

Updated document status indicator with saving state and animation.

Saving indicator

Other features

  • Added SANITY_STUDIO_PROJECT_NAME environment config variable

🐛 Notable bugfixes

  • Fixed an issue that could in some cases cause matching documents to be excluded from the search results
  • Made the default title of referenced document types more user friendly
  • Fixes an issue that could occasionally cause a query error during publish of a new document created directly from the reference input
  • Fixes an issue that caused singleton documents to never load if no schemaType was provided.
  • Fixes UI issue in Portable Text toolbar

📓 Full changelog

Author Message Commit
hermanwikner feat(desk-tool): add updated ReviewChangesButton 53c32336f
hermanwikner test(desk-tool): add ReviewChangesButton workshop story 633547746
hermanwikner feat(desk-tool): add updated ReviewChangesButton in DocumentSparkline 947f71e9c
hermanwikner chore(desk-tool): add framer-motion dependency a0c85b0fa
Herman Wikner feat(desk-tool): add collapsed state to PublishStatus e0640d43b
Herman Wikner refactor(desk-tool): remove deprecated AnimatedSyncIcon 7e0eab28d
Espen Hovlandsdal fix(cli): use correct property when comparing against latest cb6f7a53a
Bjørge Næss chore(base): improve typings for preview observer 4821a5e16
Bjørge Næss chore(form-builder): remove unused code and fix typo 2dd66eaed
Rune Botten feat(util): add SANITY_STUDIO_PROJECT_NAME env variable (#3047) e347bb6e8
Bjørge Næss fix(base): restore default limit for weighted search 7abc8c315
Bjørge Næss fix(form-builder): bump number of displayed search results for reference inputs 32b4ff2cf
Bjørge Næss chore: upgrade @sanity/ui to 0.37.1 d1611da2e
Bjørge Næss fix(desk-tool): fix ts error e6ffed27f
Victoria Bergquist feat(form-builder): add field groups (#3006) 33ed59eec
Bjørge Næss test: upgrade @sanity/client used by tests 401bb23aa
Bjørge Næss chore: upgrade depcheck and remove extraneous dependency c4c79ff0f
Bjørge Næss fix(schema): improve default title resolution for references (#3049) 680cc9f85
Herman Wikner fix(form-builder): fix ui issues in PTE toolbar f35a01003
Bjørge Næss feat(form-builder): add insert/duplicate menu items for array items b833de8e9
Bjørge Næss feat(form-builder): add insert menu to array of primitive values c156a4124
Bjørge Næss fix(form-builder): restore focus/cursor after array change f36bd4a7a
Bjørge Næss refactor(form-builder): make InsertMenu a memo component and use stable callbacks for inserting and duplicating items 42275cbf7
Bjørge Næss chore(form-builder): clarify focus handling when removing an item 8fc2b11c1
Bjørge Næss chore(form-builder): remove unused code f73c4f04b
Fred Carlsen fix(form-builder): fix switching to all fields tab in modal on open 90bd5f716f
Fred Carlsen fix(form-builder): fix columns support for nested object fields 14abb940d2
Bjørge Næss fix(form-builder): fix autofocus issues 3b85af8f5f
sanity -

Published by bjoerge almost 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 occasionally cause a query error during publish of a new document created directly from the reference input

📓 Full changelog

Author Message Commit
Bjørge Næss fix(form-builder): fix race condition during publish of referenced document that sometimes produced an invalid query f2224881ab
sanity - v2.23.3

Published by ricokahler almost 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Changes to sanity upgrade

sanity upgrade now behaves slightly different:

  1. It now respects the version ranges and pinned versions declared in your package.json
  2. Tries not to upgrade non-studio modules such as @sanity/block-content-to-html
  3. Shows a more prominent message if there are major updates available with a link to the changelog

🐛 Notable bugfixes

  • Fixes an issue that caused a crash instead of a warning screen when omitting schemaType from S.documentList() (#3022)
  • Fixes an issue that caused singleton documents to never load if no schemaType was provided (#3043)

📓 Full changelog

Author Message Commit
Rico Kahler fix(base): prevent crash if type * is provided to structure (#3022) 976e622544
Fred Carlsen fix(cypress): fix flaky e2e test for review changes (#3021) 75fbfc16af
Fred Carlsen fix(cypress): improve e2e test speed (#3027) 3b3dc27d22
Fred Carlsen feat(form-builder): add workshop for FormBuilderInput (#3012) 490258dfc8
Bjørge Næss build(gulpfile): add jsx pattern a5f4410b24
Espen Hovlandsdal fix: monorepo validator crashing on no dev dependencies bb999777d6
Espen Hovlandsdal chore(cli): upgrade get-latest-version to v3.0.1 1ce1bdc96b
Espen Hovlandsdal feat(cli): respect specified ranges when upgrading 86a285dbc7
Bjørge Næss fix(form-builder): add prop for passing item component to array of objects input abcde02b1a
Rico Kahler feat(desk-tool): experimental __preserveInstance prop (#3042) e92d8049d1
Rico Kahler fix(desk-tool): fix issue with singletons with no type not loading (#3043) 2915cfa1b5
sanity -

Published by bjoerge almost 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 that caused focus loss on an array item after closing the edit dialog
  • Fixes a bug that caused popovers from closing when clicking outside of the current pane content
  • Fixes an issue that could cause a max request size exceeded error for documents that had many references.
  • Fixes a bug that could sometimes cause document preview for object fields with name "title" to crash on reload
  • Added more details in docs for the client.delete() API

📓 Full changelog

Author Message Commit
Marius Lundgård fix(form-builder): wrap editObjectNode with the correct boundary element 22aa2f043e
Marius Lundgård fix(form-builder): do not close edit dialogs on click-outside (PTE) 139aabf8df
Marius Lundgård fix(form-builder): pass boundary element to useClickOutside in popovers (PTE) 6abecc74e4
Geoff Ball docs(client): update client.delete API 99e82df8c2
Bjørge Næss fix(form-builder): don't fallback to raw value in preview subscriber 985a5eee4a
Bjørge Næss chore(form-builder): add ts support for FormBuilderInput 351251fc4a
Bjørge Næss chore(form-builder): keep array item focus in sync with focusPath 4f1cf8cc26
Bjørge Næss fix(base): uniq and chunk availability requests 9b3f6fc19e
sanity - v2.23.1

Published by ricokahler almost 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 where previews of a reference to a document with a field named 'title' did not display correctly
  • Fixes a visual error where popover dialogs were appearing beneath other panes (#2970)
  • Fixes an issue where 'create' intents set in custom structures would not appear in pane headers (#3007)
  • Fixes sanity dataset import when targeting an ndjson file with relative file URLs (#2998)
  • Fixes a bug preventing sanity logout from working in the case of expired sessions (#3001)
  • Fixes a bug where the CLI would not be able to log a user in if an existing invalid/expired session was present (#3002)

Other features

  • Added support for HTTP proxies when using dataset import/export commands (#2999)
  • Validation menu button now reflects the highest level of validation (#3005)

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(cli): clear auth token on 401 on logout a659e26e13
Espen Hovlandsdal fix(cli): use authless requests when logging in 1c3c40659a
Espen Hovlandsdal fix(cli): attempt to clear previous session on successful re-authentication f95cbbc3bf
Espen Hovlandsdal fix(cli): use stable API version for SAML providers endpoint 3aa289393b
Espen Hovlandsdal feat(cli): use non-legacy yarn v1.22.17 under the hood 46ecc53bb3
Espen Hovlandsdal chore(cli): bump yarn network timeout to 1m 21363e2264
RitaDias fix(form-builder, base): fix popper position on popoverDialog (#2970) 7fce8cb3e7
Herman Wikner test: add validationCI schema ac291c8946
Herman Wikner test(base): add test id:s to FormFieldValidationStatus icons 6d3659084b
Herman Wikner test(form-builder): add validation test f7515c514f
Bjørge Næss fix(form-builder): don't pass already "prepared" preview value to preview component 6a555a532a
Espen Hovlandsdal feat(import-cli): switch to get-it for requesting streams 99e7afd94d
Espen Hovlandsdal chore(deps): upgrade get-it to v5.2.1 5226ea8edc
Espen Hovlandsdal feat(import): use get-it from downloading assets 352cfff9ea
Espen Hovlandsdal feat(export): use get-it for requests e420ce7a18
Espen Hovlandsdal feat(core): use get-it instead of simple-get 3bbfaf3a6b
Espen Hovlandsdal feat(cli): use get-it instead of simple-get for plugin init 4ad84b0d29
Espen Hovlandsdal feat(cli): use get-it for downloading yarn eddb8d34c8
Espen Hovlandsdal fix(core): fix file asset urls not working with ndjson target 4908874ac0
Espen Hovlandsdal fix(import-cli): fix file asset urls not working with ndjson target 561daac611
Rico Kahler fix(desk-tool): fix create intents not appearing in pane headers (#3007) 71db19e1ec
Bjørge Næss fix: pin version of @babel/parser due to recent release causing issues with depcheck 4bdbc33459
Herman Wikner fix(desk-tool): fix issue with overflow tabs indicators in PaneHeader f96ba7bd9b
Herman Wikner feat(desk-tool): update ValidationMenu button so that it reflects the highest level of validation f4638853be
sanity -

Published by bjoerge almost 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

References in place

Users can now create a reference to a draft within the context of the referring document. This allows for a smoother workflow where having to leave the document you are working on in order to create and publish the document you wish to refer to is no longer necessary,
This new behavior of the reference input can be disabled by setting the property disableNew: true.

More:

Conditional readOnly fields and fieldsets

The ability to define if a field is editable based on conditions defined in a schema.

Info-level validation

In addition to being able to provide validation errors, developers can also provide guidance with ℹ️ -symbols to give in-line help to editors.

New modal options in Portable Text editor

The Portable Text editor now supports a new modal option with a type and width property. This means you can customize the size of annotation popovers (a much requested feature).

  type: 'block',
  marks: {
    annotations: [
      {
        type: 'object',
        name: 'link',
        title: 'Link',
        options: {
          // 👇👇👇
          modal: {
            type: 'popover',
            width: 'medium' // the default is "small"
          },
          // 👆👆👆
        },
      },
    ],
  },
  // ...

🐛 Notable bugfixes

  • Fixes a case where the sanity graphql deploy command would not exit after a successful deploy.
  • Fixes a bug where importing the @sanity/eventsource module in non-browser, non-node.js environments could potentially crash because of a window reference.

📓 Full changelog

Author Message Commit
Bjørge Næss chore(test-studio): add example of nested array with a reference 66266cc83b
Bjørge Næss fix(base): don't reexport types as values f7a77b3cd4
Rico Kahler test(desk-tool): proxy module instead of spread 3790775b91
Fred Carlsen feat(base,form-builder): support callback for readOnly property on field type 945bb0fb76
vicbergquist feat(form-builder): resolve readOnly for types in arrays 07e77f9b85
vicbergquist feat(form-builder): resolve readonly callbacks in file and image input fields 5f85c74bcf
vicbergquist fix(conditional-fields): resolve readOnly in changes panel a90e057df8
vicbergquist test(conditional-fields): add tests for useConditionalProperty hook and formbuilder c05d6739c2
RitaDias feat(form-builder, field, cypress): add conditional (readOnly and hidden) properties to FieldSets (#2959) ba3dfc1240
Marius Lundgård fix(desk-tool): use Tooltip from @sanity/ui 2078e0db37
Marius Lundgård feat(form-builder): support new modal option with width property (PTE) e16fa3359d
Marius Lundgård test(form-builder): test custom modal size in PTE 5f1135dd79
Marius Lundgård test(test-studio): test modal width option in PTE 0201006b47
Rico Kahler test: update document creation and navigation (#2972) adc65f7416
RitaDias fix(desk-tool): fix width issues when publish & changes buttons were small (#2976) 9f478af289
Per-Kristian Nordnes fix(form-builder): fix missing hook dep. issue 436c3ecbbc
Per-Kristian Nordnes test(workshop): fix missing commonjs support for @sanity/structure d1e1804661
Bjørge Næss chore: upgrade Sanity UI 15b35e648b
Bjørge Næss chore(eslint): allow unstable_ prefixes bd8f6454d3
Bjørge Næss fix(desk-tool): add missing type import 21df0c834f
Bjørge Næss fix(base): show text skeleton only when loading preview 1269582207
Bjørge Næss fix(base): show schema type icon as default media preview fe3cc55fb2
Bjørge Næss feat(form-builder): add package exports b9908512be
Bjørge Næss feat(preview): add building blocks for drafts model aware preview values 92dd7856a8
Bjørge Næss chore(base): convert draftUtils to ts 3ea2139ed2
Bjørge Næss refactor(base): add draftId/publishedId helper function + opaque id types 7aed6cd793
Bjørge Næss chore(base): remove soon to be obsolete _internalMeta property for ref type previews a663369549
Rico Kahler feat(validation,base): add validation for referencing non-existent documents 644591cbb0
Bjørge Næss feat(structure): support parent ref path edb196f4cc
Rico Kahler feat(base): remove _weak if _strengthenOnPublish dc67de4a9f
Rico Kahler feat(desk-tool): provide reference input with necessary plumbing for opening referenced docs in next pane 50f863058d
Bjørge Næss feat(desk-tool): add reference changed banner 630cd0efd2
Bjørge Næss fix(desk-tool): serialize path before navigating 88ea9a5b65
Bjørge Næss refactor(form-builder): implement new reference input 9bc462231f
Mikolaj Dobrucki fix(form-builder): fix border on reference input 451acd7d24
Mikolaj Dobrucki fix(form-builder): add space between buttons in reference input 7a0ef2a5da
Bjørge Næss chore(test-studio): add a liveEdit'ed document to references test 129e5690f4
Rico Kahler fix(desk-tool): use getDefaultDocumentNode to enable views in nested references 13a19b6922
Rico Kahler fix(desk-tool): fix styles of ReferenceChangedBanner 1393c68cd1
Rico Kahler fix(form-builder): fix false warning in annotation e6d2a58c7d
Rico Kahler fix(desk-tool): hide reference changed banner if viewing history e8cd68fa6e
Bjørge Næss chore(test-studio): add an image to species type e7f6ff5a8e
Bjørge Næss chore(test-studio): add an example of an array of objects + references b85da184e7
Bjørge Næss feat(form-builder) support inline editing of reference items 320ba36d27
Bjørge Næss feat: store weak flag on _strengthenOnPublish bf76a99549
Bjørge Næss test(form-builder): Fix failing tests 6b7bbdca31
Bjørge Næss fix(form-builder): use border instead of shadow around array items 8bab404387
Mikolaj Dobrucki fix(form-builder): make status icons more muted 7cd672a374
Bjørge Næss feat: pass initial value templates as create menu items to reference input 61b7c85a28
Bjørge Næss fix(base): improve InsufficientPermissionsMessage wording when no roles passed 52fc0ab491
Bjørge Næss chore(test-studio): add referenceTest as editable type for the restricted role f92ca39f74
Bjørge Næss refactor(form-builder): extract CreateButton + display permission denied tooltip 310939fe18
Bjørge Næss feat: pass template + template params when navigating from a reference 7e4843aabd
Bjørge Næss feat(form-builder): support disableNew option 1e8a4d81c5
Bjørge Næss chore(desk-tool): remove disabling of camelcase eslint rules 4055f441fc
Bjørge Næss refactor(form-builder): create a shared reference autocomplete 75de8db546
Bjørge Næss feat(form-builder): make reference input responsive 9110be0fd0
Bjørge Næss fix(form-builder): close "edit mode" on click outside 26a9eb9247
Bjørge Næss fix(form-builder) render reference input popover in a portal with container as referenceElement 9487f30f37
Bjørge Næss fix(form-builder): make sure to forward given ref to popover 422b94e5d0
Bjørge Næss refactor(form-builder): clean up typings 817fa57fc0
hermanwikner feat(base): add TextWithTone component 6bdfd530c6
hermanwikner test(base): add TextWithToneStory to workshop 75b20e200b
hermanwikner feat(desk-tool): update DraftStatus with TextWithTone and Tooltip 6d42dd646d
hermanwikner feat(desk-tool): update PublishedStatus with TextWithTone and Tooltip 2465159a82
hermanwikner feat(desk-tool): update PaneItem so that TextWithTone inherits correct color 3b19df6052
hermanwikner refactor(form-builder): remove __workaround_selected in PreviewReferenceValue since it is not needed anymore fc43952cbf
hermanwikner feat(form-builder): update ReferenceInput so that TextWithTone inherits correct color c3c5d0ad77
hermanwikner refactor(form-builder): use updated TextWithTone component in ReferencePreview ab26ead652
hermanwikner refactor(form-builder): remove old TextWithTone component 92c7cb4748
hermanwikner feat(desk-tool): update pane item getStatusIndicator helper 24e18d4f87
hermanwikner feat(form-builder): update ArrayItemReferenceInput so that TextWithTone inherits correct color d63226117d
Bjørge Næss refactor(form-builder): extract a shared PreviewCard component ea1496f194
Bjørge Næss feat(form-builder): add ability to remove _strengthenOnPublish in liveEdited documents 3c52e0729c
Bjørge Næss fix(form-builder): open references in grid arrays in a dialog 3b4dfe2a7a
Rico Kahler fix(desk-tool): fix flashing reference changed banner; update copy (#2968) 684c495ee5
Bjørge Næss fix(default-layout): wrap the search term in “no results”-message in smart quotes dec311265c
Bjørge Næss fix(form-builder): display a 'no results' message in reference autocomplete eaac8e7a2d
hermanwikner feat(form-builder): update array ListItem design 489ea02b0d
hermanwikner feat(form-builder): add data-ui property and update props typing in array DragHandle be23c4eec3
hermanwikner feat(form-builder): update ArrayOfPrimitivesInput / ItemRow design 48f17f1811
hermanwikner feat(form-builder): update array ConfirmDeleteButton design 7ab0e72ed1
hermanwikner refactor(form-builder): update ArrayOfPrimitivesInput design cca2cfa043
hermanwikner feat(form-builder): update ItemWithMissingType design e1b752a60a
hermanwikner feat(form-builder): update CellItem design e2ca0a1ce6
hermanwikner feat(form-builder): add missing useMemo dependency in ArrayOfObjectsInput / ArrayItem 137c4c53fb
hermanwikner feat(form-builder): update ArrayOfObjectsInput / ArrayInput design 5454b0d85a
hermanwikner feat(form-builder): add withRadius and withBorder props to Preview 48ea0b3216
hermanwikner feat(base): add withRadius and withBorder props to MediaPreview 331062652a
hermanwikner feat(base): add portal prop to FormFieldValidationStatus 9803a96e63
Bjørge Næss chore(test-studio): add a portable text field to reference test 4e1f94049e
Rico Kahler fix(validation): skip validation error for missing _ref e31d0c2324
Rico Kahler fix: PR feedback f089fca15f
Bjørge Næss fix(form-builder): switch to useMemoObservable for fetching reference metadata efef87e960
Bjørge Næss fix(form-builder): display error + retry button if fetching reference metadata fails b0d2af0452
Bjørge Næss fix(base): remove duplicate hits from global search 8b89b49eb1
Bjørge Næss feat(form-builder): limit search results to 50 762098efbe
Bjørge Næss fix(form-builder): fix bug causing scrolling in reference autocomplete close the popover dc93363074
Per-Kristian Nordnes fix(base): fix type exports/imports 7a58705576
Espen Hovlandsdal fix(eventsource): check for window before using it (#2982) 2f089395af
Bjørge Næss refactor(form-builder): make reference input responsive based on available width 2d097f7fe7
Espen Hovlandsdal fix(core): explicitly exit on successful graphql deploy (#2987) ea9cb641ca
RitaDias test(cypress, default-layout): add smoke test for initial value templates (#2983) cc44c96b0f
Bjørge Næss chore(test-studio): add some more inline and annotation reference examples 4fcb654fa1
Bjørge Næss fix(form-builder): don't clear previous search results when re-opening the autocomplete b40e38a96f
Bjørge Næss chore: rimraf root node_modules when running clean script 45b17203a5
hermanwikner feat(validation): update convertToValidationMarker to support info level 0182a4e3fe
hermanwikner feat(validation): update Rule to support info level d3e6236501
hermanwikner chore(validation): add info level to Rule type d044fa8540
hermanwikner chore(markers): add info level to ValidationMarker type cb70506b73
hermanwikner feat(desk-tool): check if info validation markers exists in ValidationMenu 389a1862c0
hermanwikner chore(types): add isValidationInfoMarker function 6a9cf4136c
hermanwikner feat(base): add info validation support in ValidationList bd89a093f6
hermanwikner feat(base): add info validation design ListItem 38d808555b
hermanwikner chore(base): add FormFieldValidationInfo type 409a86c2b0
hermanwikner feat(base): return marker level as type in markersToValidationList ebc7db5d4b
hermanwikner feat(base): add info validation support in FormFieldValidationStatus ee7d02d6ef
hermanwikner feat(form-builder): add info validation support in BlockObject a7c38dc2d9
hermanwikner feat(form-builder): add info validation support in Markers cafeb5511f
hermanwikner test: add info validation in test-studio schema df403ea672
Rico Kahler test(validation): add info messages test 35b5b59460
Bjørge Næss fix(form-builder): use simpler ref bookeeping for better interplay between mutable and callback refs f4b307b30b
Espen Hovlandsdal chore(client): upgrade get-it to latest version 42134a09e0
sanity - v2.22.5

Published by ricokahler almost 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 where desk structures with observables would be stuck loading.
  • Fixes an issue where the new-document dialog would not use the selected template

📓 Full changelog

Author Message Commit
Rico Kahler fix(desk-tool): wrap with publishReplay(1) (#2975) 20772c91e
Espen Hovlandsdal fix(default-layout): missing template id in new document dialog (#2978) e36e245e7
Rico Kahler chore(workshop): remove unused dep (#2981) 9a61467c5
sanity -

Published by bjoerge almost 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 that disabled all options in the global 'create document'-menu due to insufficient permissions

📓 Full changelog

Author Message Commit
Bjørge Næss fix(default-layout): fix permissions bug in global "create document" menu (#2969) 0e4a9a5942
sanity - v2.22.3

Published by RitaDias almost 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Introduces a larger initial min-width for the DocumentPane.
  • Huge GROQ queries will now use the API-CDN when useCdn: true. Previously these would go to the regular API endpoint.
  • Fixes typo in deferred-visibility for mutations
  • Added schema option to configure spell-checking for Portable Text via options.spellCheck on the block type.

📓 Full changelog

Author Message Commit
Rico Kahler fix(state-router): prevent ID flashing when resolving intents (#2950) 2ebd6e8b4
Rico Kahler fix: update permissions w/ template + precondition support (#2939) 49a07c89e
Fred Carlsen fix(form-builder): fix clearing invalid date values (#2952) 5d961602e
Marius Lundgård refactor(base): pass rest props on to ScrollContainer a155c926c
Marius Lundgård fix(desk-tool): fix typo in layout wrapper 163bb66b9
Magnus Holm feat(client): respect useCdn when queries are sent with POST (#2958) 2137cd392
Marius Lundgård test(desk-tool): rename pane workshop files ae0d73732
Marius Lundgård test(desk-tool): rename test file 0365f3545
Marius Lundgård refactor(desk-tool): refactor pane helpers f4ebfa3cf
Marius Lundgård refactor(desk-tool): add currentMinWidth property 6972ac232
Marius Lundgård test(desk-tool): update pane workshop 37a08b332
Marius Lundgård refactor(desk-tool): implement debug and currentMinWidth in panes f3bfd83f6
Marius Lundgård refactor(test-studio): improve JSON preview 8e92331a7
Marius Lundgård refactor(desk-tool): refactor pane layout to controller and improve d3fb25da5
Marius Lundgård refactor(desk-tool): remove pane title rotate transition 460bbdbdc
Marius Lundgård test(desk-tool): update pane workshop 3e4ebdf5c
Marius Lundgård refactor(desk-tool): pass id and paneKey and remove unused data-* attributes d055458a8
Marius Lundgård refactor(desk-tool): sort prop keys 0100c6387
Mikolaj Dobrucki feat(base): improve change indicators (#2867) 799fdb3a5
Marius Lundgård chore(test-studio): add custom link component in PTE example 4b034139a
Sindre Gulseth fix(client): remove invalid defer and add correct deferred visibility (#2954) 8a039b4e9
Marius Lundgård refactor(desk-tool): increase touch area of scrollable tabs 41e5c728c
Per-Kristian Nordnes refactor(schema): allow options for block type 62b102641
Per-Kristian Nordnes test(test-studio): add spellcheck on block type example f999cd0e3
Per-Kristian Nordnes refactor(form-builder): toggle spellcheck locally on block type adb2ae284
sanity - v2.22.2

Published by skogsmaskin almost 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 in Safari where editing annotations (like links) in the portable text editor would make the popover dialog jump around.

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes fix(form-builder): fix Safari issue with PTE popovers 0243ee9cf
sanity - v2.22.1

Published by ricokahler almost 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 where some custom styles implementations for the Portable Text Editor caused an error

📓 Full changelog

Author Message Commit
Marius Lundgård fix(form-builder): fix fallback text style component c4274c196e
sanity - v2.22.0

Published by ricokahler almost 3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Portable Text Editor Input migrated to Sanity UI

We have now migrated the Portable Text (PT) editor in the Sanity Studio to use Sanity UI. This marks the completion of the migration of the entire Studio to @sanity/ui.

In addition to the migration:

  • Generally improved stability and performance of the PT editor.
  • Added a new affordance for editing/removing text annotations. This will make it easier to e.g. edit link details.
  • Fixed a bug where undo/redo history was not maintained in memory when collapsing/expanding the editor.

Other features

  • Allows plan selection with sanity init --project-plan <plan>
  • Improves usability of ValidationError by making cloneWithMessage optional

📓 Full changelog

Author Message Commit
shur feat(cli): allow plan selection through CLI flag (#2924) b7d36347de
Knut Melvær docs(core): fix typo in help text and error message 6a3c6ac4b2
Espen Hovlandsdal fix(core): fix colorizing of json when input is string 57d90ca7ac
Espen Hovlandsdal fix(core): reparse query flags to fix camelcase issue 7f3470c1e8
Espen Hovlandsdal feat(core): allow api version for query command through env var 1c9ae8ada2
Marius Lundgård chore: move code examples to dev/ fb27542901
Marius Lundgård chore: fix lint issues 8a588a9ecd
Per-Kristian Nordnes refactor(form-builder): optimize pte component rendering with hooks bfa04797d8
Per-Kristian Nordnes refactor(form-builder): simplify props to BlockObject component 5474460f75
Per-Kristian Nordnes refactor(form-builder): change prop name fe2b4355b6
Per-Kristian Nordnes refactor(form-builder): optimize rendering of portable text input with hooks 8ebea21dfd
Per-Kristian Nordnes refactor(form-builder): optimize rendering of portable text editor toolbar with hooks 456cf7eaec
Per-Kristian Nordnes refactor(form-builder): simplify props for Portable Text Input ba5d6ccce6
Per-Kristian Nordnes refactor(form-builder): optimize rendering of object editing with hooks c8c7f9c778
Per-Kristian Nordnes refactor(form-builder): simplify rendering of block extras 7db02536a2
hermanwikner refactor(form-builder): migrate PTE ActionMenu to @sanity/ui 90d2307b11
hermanwikner refactor(form-builder): migrate PTE BlockStyleSelect to @sanity/ui 0e2d533127
hermanwikner refactor(form-builder): migrate PTE InsertMenu to @sanity/ui 71652893f0
hermanwikner refactor(form-builder): migrate PTE Toolbar to @sanity/ui 40702236cb
hermanwikner refactor(form-builder): remove toolbar container in PTE Editor 83c6c8ac79
hermanwikner refactor(form-builder): remove PTE CollapseMenu (replaced by new CollapseMenu component from base) 8ab6659e71
hermanwikner feat(base): improve CollapseMenu component b1654aa72e
hermanwikner refactor(form-builder): migrate PTE CustomIcon to styled-components 4082cc1e04
Per-Kristian Nordnes refactor(form-builder): move text rendering into own component TextBlock 1b762fd8ad
Per-Kristian Nordnes test(form-builder): add to story values 10795d4c7e
Per-Kristian Nordnes refactor(portable-text-editor): remove markup classnames and styles from output 2a65a8f1c8
Per-Kristian Nordnes refactor(form-builder): remove class specific css rules from PT input 686378dd63
Per-Kristian Nordnes refactor(portable-text-editor): write clean DraggableBlock 21316076b1
Per-Kristian Nordnes refactor(form-builder): let BlockExtras have access to render attributes for block b1c2a845ec
Marius Lundgård test(form-builder): begin TextBlock workshop 2e6156e955
Per-Kristian Nordnes refactor(form-builder): remove left behind import from refactoring b2c68ba9eb
Per-Kristian Nordnes refactor(form-builder): send hasError to TextBlock 6ca0fc1b7a
Per-Kristian Nordnes test(form-builder): rename prop for TextBlock in workshop test 98456c4781
Per-Kristian Nordnes refactor(form-builder): move legacy PTE block extras parts into own folder c0739605b9
Per-Kristian Nordnes refactor(form-builder): add typings and fix level prop issue in PTE Input a704dd851b
Per-Kristian Nordnes refactor(portable-text-editor): add level to render attributes e4966ff788
Per-Kristian Nordnes refactor(form-builder): move blockRef to TextBlock and BlockObject components 50eaf4eaba
Per-Kristian Nordnes refactor(form-builder): remove parts from PortableTextInput 23608b3592
Per-Kristian Nordnes refactor(form-builder): re-use editorId as uniq id 1c06e2976e
Per-Kristian Nordnes refactor(form-builder): extract var to constant 3fe63cc459
Per-Kristian Nordnes refactor(form-builder): fix issues with block extras f398cbe288
Per-Kristian Nordnes refactor(form-builder): migrate PTE focus skipper button to Sanity/UI 28dda6c547
Per-Kristian Nordnes refactor(form-builder): increase readability in PortableTextInputWithRef component 350871cedc
Marius Lundgård test(form-builder): improve PT workshop 7335d7ab11
Marius Lundgård refactor(form-builder): simplify portal setup c6f88108b0
hermanwikner refactor(form-builder): improve TextBlock component c890110a0b
hermanwikner refactor(form-builder): migrate Decorator to styled-components 844871518d
hermanwikner refactor(form-builder): remove old text components (replaced by TextBlock) 14645c17da
hermanwikner refactor(form-builder): update TextBlock import in PortableText/Input f01a0de99c
hermanwikner refactor(form-builder): add EditableWrapper component with list style css in Editor e07aa67c44
hermanwikner refactor(form-builder): add fallback to action key in ActionMenu adb4b2a9b1
hermanwikner refactor(form-builder): update BlockStyleSelect options c6af4e1cec
hermanwikner refactor(form-builder): remove renderBlock prop from Toolbar 02e2d495b0
hermanwikner refactor(form-builder): migrate Annotation to @sanity/ui 21a65649cc
Per-Kristian Nordnes refactor(portable-text-editor): move slate instance up to the PortableTextEditor context 6b9b6b3503
Per-Kristian Nordnes refactor(form-builder): migrate PTE ActivateOnFocus message to Sanity/UI. f9262813b9
Per-Kristian Nordnes refactor(form-builder): wrap PTE editable area in UI Card 665d671761
Per-Kristian Nordnes refactor(form-builder): export props of PortableTextInput for testing 8da37e0168
Per-Kristian Nordnes refactor(portable-text-editor): reintroduce outer div classnames 2d1fcf6fe8
Marius Lundgård refactor(form-builder): begin migrate to @sanity/ui 341c434c49
Marius Lundgård test(form-builder): improve PTE workshop 05011acfc4
Per-Kristian Nordnes test(portable-text-editor): update snapshot with classnames 8da950573f
Per-Kristian Nordnes refactor(form-builder): simplify activateOnFocusMessage ab933fef91
Per-Kristian Nordnes fix(form-builder): fix hook dependencies 3f8269f0d6
Marius Lundgård refactor(form-builder): migrate DefaultObjectEditing to @sanity/ui 7c2871d9f2
Marius Lundgård refactor(desk-tool): migrate FullscreenObjectEditing to @sanity/ui 1c80c8c1ed
Marius Lundgård refactor(form-builder): migrate PopoverObjectEditing to @sanity/ui 68e0e56e2f
Marius Lundgård refactor(form-builder): improve PT toolbar perf 5b21e10fa3
Per-Kristian Nordnes fix(form-builder): don't set focus if already active fe8fa8e2d6
Per-Kristian Nordnes refactor(form-builder): close edit object dialogs with escape dafabd9b7a
Per-Kristian Nordnes fix(form-builder): selection must be a dep to toolbar button hooks 3892bc88fb
Per-Kristian Nordnes refactor(form-builder): fix code issues in PTE Toolbar 8c623bc6e2
Per-Kristian Nordnes docs(form-builder): add comment explaining additional hook dep and remove warning f5df889f0f
Per-Kristian Nordnes refactor(form-builder): memo what we can in ActionMenu and InsertMenu 5bb0d3fce1
Marius Lundgård refactor(form-builder): improve PT toolbar perf 959b0cead2
Per-Kristian Nordnes feature(portable-text-editor): support forwardRef and div-props for Editable 63d6567f45
Per-Kristian Nordnes test(form-builder): add to PT input workshop values aaed9e9a01
Marius Lundgård feat(workshop): support all:* parts e3f562f1cd
Marius Lundgård test(form-builder): improve PTE workshop 400825acd7
Per-Kristian Nordnes fix(form-builder): Annotations must be positioned relative 5162679a8e
Per-Kristian Nordnes reafactor(form-builder): fix close edit interface issues for PTE objects fed605df75
Per-Kristian Nordnes refactor(form-builder): fix focus issues with PTE annotations 8359eb965e
Per-Kristian Nordnes test(form-builder): add to workshop values 21beb38768
Marius Lundgård refactor(base): improve block previews 4e15828135
Marius Lundgård refactor(form-builer): begin improve block objects a1fea85a1e
hermanwikner refactor(form-builder): add spacing CSS in Editor styles e9c251953b
hermanwikner refactor(form-builder): add error styling to TextBlock 2edf1b1a7c
hermanwikner refactor(form-builder): update BlockQuote 5cdb8de37f
hermanwikner test(form-builder): update TextBlock workshop to try out error styling e22b628e2b
hermanwikner refactor(form-builder): update isEditing design in Annotation 32f5847a47
hermanwikner refactor(form-builder): add counter reset logic to EditableWrapper in Editor styles 7284efe20f
hermanwikner refactor(form-builder): simplify list count logic in TextBlock b77fb98507
Per-Kristian Nordnes chore(form-builder): upgrade @sanity/slate-react a40e5324f0
Per-Kristian Nordnes feature(portable-text-editor): add scrollSelectionIntoView prop and support c685bb4dd0
Per-Kristian Nordnes feature(form-builder): let the PT input control scrolling itself 2844897329
Per-Kristian Nordnes feature(portable-text-editor): make it possible to turn off scroll into view fabeb22f53
Per-Kristian Nordnes fix(form-builder): remove no longer needed relative placement 99a89270c7
hermanwikner refactor(form-builder): add padding to data-slate-node and improve click-to-focus hit area in EditableWrapper 5af00353cc
Per-Kristian Nordnes test(form-builder): add error states toggle to PTE workshop 1e4d40d4cc
Per-Kristian Nordnes test(form-builder): add to PT workshop values 680c562420
Marius Lundgård test(form-builder): improve PTE workshop 90bcdaf1be
Per-Kristian Nordnes fix(portable-text-editor): remove experimental commented out code 58b52493ff
hermanwikner refactor(base): improve BlockImagePreview component a4f2a44bac
hermanwikner refactor(base): improve BlockPreview component 30f2b5d39c
hermanwikner refactor(form-builder): improve BlockObject error, focused and selected states 668888a5ae
hermanwikner refactor(form-builder): fix menu button and UI issues in BlockObjectPreview e4c9dadde9
hermanwikner test(base): update previews workshop f0277dffa8
Per-Kristian Nordnes test(form-builder): add window.IntersectionObserver and window.ResizeObserver to jest test env 52a9700498
Per-Kristian Nordnes test(form-builder): add customizations to PT workshop 175fac4937
Per-Kristian Nordnes test(form-builder): resolve parts with Jest required by PT input tests d67dbb0e9e
Per-Kristian Nordnes test(form-builder): test PT input block extras customizations. c250670329
Per-Kristian Nordnes chore(portable-text-editor): remove unused dep. scroll-into-view-if-needed 14e735b980
Per-Kristian Nordnes test(portable-text-editor): add missing domRange.getBoundingClientRect implementation be06197b1c
Per-Kristian Nordnes chore(portable-text-editor): add missing dev.dep. jest-environment-jsdom 972aa753fb
hermanwikner refactor(form-builder): migrate InlineObject to @sanity/ui d60c6592ff
hermanwikner refactor(form-builder): design updates in BlockImagePreview bcad7b8e1e
hermanwikner test(form-builder): update BlockImagePreview story 62b36378ae
hermanwikner refactor(form-builder): design updates in InlinePreview b9e58fec9d
hermanwikner test(form-builder): add InlinePreview story ac3c531f81
hermanwikner refactor(form-builder): design update in BlockObject 14da26c5a9
Per-Kristian Nordnes refactor(form-builder): make scroll into view logic use scroll container to determine logic c3378ec8e0
Per-Kristian Nordnes test(form-builder): fix PTE workshop duplicate value keys 08456837d2
Marius Lundgård fix(form-builder): fix boundary and portal element issues 1b667c4a56
hermanwikner refactor(form-builder): update marker and error design in TextBlock 9369335427
hermanwikner refactor(form-builder): update marker and error design in BlockObject 70bc6e6ef9
hermanwikner refactor(form-builder): check if block has markers in Input 06bb6434aa
hermanwikner test(form-builder): add marker test to TextBlock workshop 4550d2d7ec
Marius Lundgård fix(form-builder): fix blend mode e42e036093
Per-Kristian Nordnes fix(form-builder): fix lint errors 5b22a39151
Per-Kristian Nordnes refactor(portable-text-editor): use blockRef as base when making draggable ghost 47561e4fb7
Per-Kristian Nordnes test(test-studio): add custom validation to block type da41894d6f
Per-Kristian Nordnes fix(schema): allow for validation on block type b87ae7ace3
Per-Kristian Nordnes fix(base): export scrollContainer props ce5b883397
Per-Kristian Nordnes fix(form-builder): remove unnecessary any type dc7ef334ab
Per-Kristian Nordnes refactor(form-builder): WIP - new block extras design for Portable Text Input abddc7367a
Per-Kristian Nordnes test(form-builder): update PTE workshop 9c208e6d8f
Per-Kristian Nordnes test(portable-text-editor): update test snapshot 6d0c38eab5
Per-Kristian Nordnes fix(form-builder): blockRef is optional, use optional chaning 9124490a2e
Per-Kristian Nordnes test(form-builder): update TextBlock workshop 7de0c5a227
hermanwikner chore(base): add fallbackTitle to preview types afb93c134f
hermanwikner refactor(form-builder): fix styling in InlinePreview 2a34e8b831
hermanwikner refactor(form-builder): add fallbackTitle to Preview 127c3ff17e
hermanwikner refactor(form-builder): update default icon in SanityDefaultPreview 612db28780
hermanwikner refactor(form-builder): fix styling in InlineObject ebe48a3584
Per-Kristian Nordnes refactor(form-builder): implement block actions visible on block focus 250b719a6b
Per-Kristian Nordnes test(example-studio): update block actions 8646d519d9
Per-Kristian Nordnes test(form-builder): update workshop story d08f2a7785
hermanwikner refactor(base): add fallbackTitle to InlinePreview 60dd7dbafe
Per-Kristian Nordnes test(example-studio): tweak block action example 688b9ef465
Per-Kristian Nordnes fix(form-builder): fix issues with text block markers e18dbc4a15
hermanwikner refactor(form-builder): check if blockActions exist in BlockActions 5497a53baf
hermanwikner refactor(form-builder): remove styling in Editor.styles 37cffaffb1
hermanwikner refactor(form-builder): add PortalProvider to Input f5046dd2e0
hermanwikner refactor(form-builder): pass rootPortalElement to Input in PortableTextInput 07bf611705
hermanwikner refactor(form-builder): add change indicator and update styling in BlockObject 4c65d1bda2
hermanwikner refactor(form-builder): add change indicator and update styling in TextBlock 1b47b09212
Per-Kristian Nordnes fix(form-builder): fix selection issues in editor related to TextBlock 290a325e80
Per-Kristian Nordnes test(form-builder): fix TextBlock workshop issues 575dde3278
Per-Kristian Nordnes test(form-builder): remove console.log 0d32463131
Per-Kristian Nordnes test(example-studio): add @sanity/ui and @sanity/icons 3acc94dd4b
Per-Kristian Nordnes test(form-builder): fix issue with block action example 365571fdee
hermanwikner refactor(base): design fix in InlinePreview 7bdaacb5ca
hermanwikner refactor(form-builder): update dependency array in PortableTextInput 073a5ba725
hermanwikner refactor(form-builder): add design when InlineObject has markers 5ace385bb5
Per-Kristian Nordnes fix(form-builder): keep legacy support for using a React class with renderBlockActions e519d3f74c
Per-Kristian Nordnes test(form-builder): fix Story schema and values c1195f2e8f
Marius Lundgård refactor(form-builder): increase editable padding when expanded c9d6e55bc3
Marius Lundgård refactor(form-builder): adjust editable max-width when expanded 210db5aa31
Marius Lundgård test(form-builder): update mock custom action d6e384f535
Marius Lundgård refactor(form-builder): unmute editable text 74347e7ea9
Marius Lundgård refactor(form-builder): add as property to text elements 7f86a7ad01
hermanwikner refactor(form-builder): delete expandCloseButton 5552746379
hermanwikner refactor(form-builder): remove inline styling on Stack in BlockObject 31391b5a56
hermanwikner refactor(form-builder): add error and markers styling in Annotation ed1aa1dc70
hermanwikner refactor(form-builder): partially fix issue with numbered lists in TextBlock 0241be2cd6
hermanwikner refactor(form-builder): add tooltip to full screen button in Toolbar 5c2f341347
Per-Kristian Nordnes refactor(portable-text-editor): make it possible to style drop indicator from outside 5d6dad0226
Per-Kristian Nordnes refactor(form-builder): style PTE drag & drop d979051ec8
Per-Kristian Nordnes chore(form-builder): sort hook dep. lines 7e2f7764ba
Marius Lundgård refactor(form-builder): use named portals d844a64c9a
Marius Lundgård fix(form-builder): fix handleDelete callback 34d53c565d
hermanwikner fix(base): add z-index to BadgeWrapper to make it appear above PTE 4e45a9990d
hermanwikner refactor(form-builder): add fallbackTitle to BlockImagePreview a6fc7539e5
hermanwikner refactor(form-builder): add fallbackTitle to BlockObjectPreview 394a5947e9
hermanwikner refactor(form-builder): improve TextBlock lists 56ed25349d
Marius Lundgård test(form-builder): add list counter story 52da47d1ba
Marius Lundgård refactor(form-builder): improve drag placeholder styling 61ce84c0bd
Per-Kristian Nordnes refactor(portable-text-editor): add classname pt-list-item-level on list elements aa37c5bff0
hermanwikner refactor(form-builder): add css counter logic to Editor.styles f4be07466b
hermanwikner refactor(form-builder): update counter logic in TextBlock fa6e984ab5
Per-Kristian Nordnes fix(base): inline preview can't use div df8c0d0d37
Per-Kristian Nordnes fix(form-builder): use span not div inside annotations 0d350817b3
hermanwikner refactor(form-builder): update TextBlock textStyles d1d98ce7a6
hermanwikner refactor(form-builder): improve bullet markers in TextBlock 27ee0c2196
hermanwikner refactor(form-builder): update expand button tooltip position in fullscreen in Toolbar 18e9182115
hermanwikner refactor(form-builder): Toolbar: update expand button tooltip text 67c3308363
Marius Lundgård chore(workshop): define __DEV__ global 9f1386488d
Marius Lundgård test(form-builder): add 'Edit objects' story (PTE) 5055c10c71
Marius Lundgård refactor(form-builder): improve typings 000ddd30aa
Marius Lundgård fix(form-builder): use unique id for dialog 2e900aa01e
Marius Lundgård fix(form-builder): remove min-height from popover header ff324685c7
Per-Kristian Nordnes refactor(form-builder): get rid of focusPath and value as render deps 00d463d2ff
Per-Kristian Nordnes refactor(form-builder): wip new annotation inline toolbar buttons ac5aa34821
Per-Kristian Nordnes chore(form-builder): remove unused component 0427c6b6f9
Per-Kristian Nordnes fix(form-builder): don't track focusPath if editor not ready f1c60b8932
Per-Kristian Nordnes fix(form-builder): selection must be a hook dep for PTE toolbar 6cf4c240a8
Per-Kristian Nordnes refactor(form-builder): remove no longer needed disabling checks 2e75fa5bf2
hermanwikner refactor(form-builder): add scroll element state in Editor fc839d35ff
hermanwikner refactor(form-builder): add scroll element state in Input c385cc6a55
hermanwikner refactor(form-builder): add edit popover in Annotation 68342237f1
Marius Lundgård refactor(form-builder): update PTE toolbar padding 25f8ff6e99
Per-Kristian Nordnes test(test-studio): make less annoying custom validation example fdbdd02c5a
Marius Lundgård fix(form-builder): fix TS errors in TextBlock workshop 19299c528b
hermanwikner feat(base): CollapseMenu: add root element to intersection observer 309e8f1a01
hermanwikner refactor(form-builder): ActionMenu: add constrainSize to menu popover 1c2476455c
hermanwikner refactor(form-builder): InsertMenu: add constrainSize to menu popover 43ad4985e6
Marius Lundgård fix(form-builder): fix fallback title d89d5de744
hermanwikner feat(base): CollapseMenu: disable tooltips if there is no text to display f00b3aaa92
Marius Lundgård test(form-builder): splat props to image preview 0d8a58c503
Marius Lundgård test(form-builder): clean up PTE workshop 4da7b76239
Marius Lundgård fix(form-builder): improve decorator styling 4e18075708
hermanwikner refactor(form-builder): TextBlock: remove as prop on TextComponent d6c6220d0f
hermanwikner refactor(form-builder): TextBlock/textStyles: fix block quote styling, add default as prop 349c959be3
hermanwikner refactor(form-builder): BlockStyleSelect: fix block quote styling 8dff337d78
hermanwikner refactor(form-builder): BlockStyleSelect: update block quote border color when menu item is selected 7167311693
Marius Lundgård chore(test-studio): add PT document to test all bells and whistles d22deb7f99
Marius Lundgård fix(form-builder): render actions for custom input components 1c78b77ce0
Marius Lundgård refactor(portable-text-editor): improve dragged styles 1faecba151
Marius Lundgård refactor(form-builder): improved dragged styles (PTE) 65363431b0
Marius Lundgård test(form-builder): clean up PTE workshop 7318affb85
hermanwikner refactor(form-builder): TextBlock: update list styling e89d21e437
hermanwikner feat(base): CollapseMenu: add collapsed option 51fc296634
hermanwikner test(base): update CollapseMenuStory 8515637a1b
hermanwikner refactor(form-builder): ActionMenu: add collapsed prop 51147393c4
hermanwikner refactor(form-builder): InsertMenu: add collapsed prop 008e44a5a4
hermanwikner refactor(form-builder): Toolbar: update design in smaller screen size widths 28998d6e52
Per-Kristian Nordnes refactor(form-builder): handle setting focusPath in change stream 0d64c29159
Per-Kristian Nordnes test(form-builder): update workshop TestInput 9636d47412
Per-Kristian Nordnes fix(form-builder): remove CSS causing issues with editor focus bfb0747bb6
Per-Kristian Nordnes refactor(form-builder): remove no longer needed boolean check 7f130047ad
Per-Kristian Nordnes refactor(form-builder): simplify props 7690e0ce63
Per-Kristian Nordnes fix(form-builder): remove Stack around button ignoring disabled prop fc0e5e9ee1
Marius Lundgård test(form-builder): improve PTE workshop 40636c9027
Marius Lundgård refactor(base): improve readability and debuggability 80e7a60cbd
Marius Lundgård refactor(portable-text-editor): keep selection in ref to optimize perf 06225a9802
Marius Lundgård refactor(form-builder): optimize Toolbar fb58524e38
Marius Lundgård refactor(form-builder): memoize root PT input component b5c214d6fa
Marius Lundgård refactor(form-builder): improve error message 10a8478301
Marius Lundgård test(form-builder): improve block actions in workshop 539d30581b
Per-Kristian Nordnes refactor(form-builder): remove perf critical hook dep. ee65c1326b
Per-Kristian Nordnes fix(portable-text-editor): don't render block actions if no value a7a664c06a
hermanwikner feat(base): CollapseMenu: change intersection observer root element and update rootMargin 2f6c74fa35
hermanwikner refactor(form-builder): BlockObject: update design a59eac3e40
Per-Kristian Nordnes fix(form-builder): fix focus tracking issues 6187010f8c
Per-Kristian Nordnes fix(form-builder): fix bug with clicking outside / flex display 5c930bfe35
Per-Kristian Nordnes refactor(form-builder): clean up vars and states in Toolbar components 46fd2da94c
Per-Kristian Nordnes fix(form-builder): fix selection CSS issues in editor 646c6d823f
hermanwikner refactor(form-builder): BlockImagePreview: update fallback title 62d7d8919c
hermanwikner refactor(form-builder): BlockObjectPreview: update fallback title ec4e33c2db
Per-Kristian Nordnes test(form-builder): fix Story issue 275a689981
hermanwikner refactor(form-builder): TextBlock: add warning design 6c9a2ec47a
hermanwikner refactor(form-builder): Annotation: add warning design 164a2c9e3e
hermanwikner refactor(form-builder): InlineObject: add warning design 5a1cb981e3
hermanwikner refactor(form-builder): BlockObject: add warning design e76707540e
hermanwikner refactor(form-builder): Markers: design updates 29334d709a
hermanwikner refactor(form-builder): Input: pass hasWarning prop to Annotation 01ed248b46
hermanwikner test(form-builder): update workshop to support warnings 4ecc9baa66
Marius Lundgård refactor(form-builder): add EditableCard wrapper with selection reset CSS f198734fbf
Marius Lundgård refactor(form-builder): improve editor styles (PTE) 918b0e6d20
Marius Lundgård refactor(form-builder): clean up editor component c2aa3c7d1f
Marius Lundgård test(form-builder): improve dummy schema 5564390352
Marius Lundgård refactor(form-builder): fix annotation popover overflow dba50f6478
Marius Lundgård refactor(form-builder): memoize portal elements 0ddeefde74
Marius Lundgård refactor(form-builder): rename files 0dbe5b3096
Marius Lundgård refactor(form-builder): use named exports c1554f5ac8
Per-Kristian Nordnes fix(form-builder): workaround Sanity/UI focus takeover for Toolbar 51db6e9979
Marius Lundgård chore(workshop): host on local network 8509c3257e
Marius Lundgård fix(form-builder): hide native formatting toolbar on iOS 0ad6696752
Marius Lundgård refactor(form-builder): clean up VisibleOnFocusButton 100b1ad673
Per-Kristian Nordnes refactor(form-builder): cleanup legacy part support in the PTE 718b8ffec7
Marius Lundgård refactor(form-builder): simplify editor and input components fa99e24959
hermanwikner refactor(form-builder): BlockStyleSelect: update to use title from schema c586b95403
hermanwikner refactor(form-builder): Annotation: update tooltip portal and wrap tooltip content in span dedd6de239
hermanwikner test(base): add BlockPreview workshop 25d7f815ec
Marius Lundgård fix(form-builder): only render <span> inside <div> 3ecd4c8c59
Marius Lundgård feat(base): add withBadge property to ChangeIndicator a39e981608
Marius Lundgård fix(form-builder): prevent change indicator from causing scrollable overflow 02d6eef56b
Marius Lundgård fix(base): decrease hit area to avoid scrollable overflow in forms 18c9b39bbf
Marius Lundgård fix(form-builder): fix Cmd+A (select all) issue in Safari 259abd7b63
Per-Kristian Nordnes fix(form-builder): remove CSS that is breaking copy/paste of HTML fragments in the PTE 5c2390f3fb
Marius Lundgård test(base): improve preview workshop 2b1b909b7b
Marius Lundgård refactor(base): improve preview components bc347f9529
Marius Lundgård refactor(form-builder): improve object rendering 51cfff645e
Per-Kristian Nordnes fix(form-builder): fix Cmd+A (select all) issue when editor is collapsed d880324be6
hermanwikner feat(base): CollapseMenu: add disableRestoreFocusOnClose and onClose properties d7c9b3bb92
hermanwikner test(base): CollapseMenuStory: add disableRestoreFocusOnClose and onMenuClose 562b0e6d43
hermanwikner refactor(form-builder): ActionMenu: set focus on editor on onMenuClose from CollapseMenu cf390e5c81
hermanwikner refactor(form-builder): InsertMenu: set focus on editor on onMenuClose from CollapseMenu e1a1809bbf
Per-Kristian Nordnes fix(portable-text-editor): fix dependency issue in hook ea63b89f74
Per-Kristian Nordnes chore(form-builder): remove unused dep. 'classnames' 6c3b4c1473
Per-Kristian Nordnes refactor(form-builder): add pt classname to editable 4d20dac66c
Per-Kristian Nordnes test(form-builder): fix issues with block extras test 5290eb54e4
Bjørge Næss fix(base): add workaround for circular import issue 15c7a0c012
Marius Lundgård refactor(field): use Popover from @sanity/ui 68b5f77bd8
Per-Kristian Nordnes fix(form-builder): memoize path prop + remove overkill memos b75042d17a
Marius Lundgård refactor(form-builder): clean up toolbar hooks 3b20288959
Marius Lundgård refactor(form-builder): remove unnecessary function wrapper cb277317c5
Marius Lundgård refactor(form-builder): remove unnecessary useMemos 1ad465bc68
Marius Lundgård refactor(form-builder): use theme object for spacing values f9a775b104
hermanwikner refactor(form-builder): extract edit popover in Annotation into a separate AnnotationToolbarPopover component 8fd4f1b27f
hermanwikner refactor(form-builder): ActionMenu: move props to CollapseMenuButton to module scope 0afd98a229
hermanwikner refactor(form-builder): InsertMenu: move props to CollapseMenuButton to module scope 84d8a31217
hermanwikner refactor(form-builder): BlockStyleSelect: refactor styling on menu button, refactor how text styles is rendered 4cea1d9de1
hermanwikner refactor(form-builder): TextBlock: update header sizes with correct values 46095218d6
hermanwikner refactor(form-builder): simplify counter CSS in Editor styles 5a2c1218db
Marius Lundgård refactor(form-builder): fix type import ea9cdc79cc
Marius Lundgård refactor(form-builder): use styled-components for styles eec09b53ed
Marius Lundgård refactor(form-builder): simplify Editor styles 70734f3751
Marius Lundgård test(form-builder): skip block actions test 0d448daf25
hermanwikner refactor(form-builder): Annotation: update check if custom markers exists 84f33e5d97
hermanwikner refactor(form-builder): InlineObject: remove unnecessary z-index and change type to interface 8977dea2c9
hermanwikner refactor(form-builder): BlockActions: use interface instead of type 91fc66bbaa
Marius Lundgård fix(form-builder): fix block actions container height issue d059ba0055
Marius Lundgård refactor(form-builder): remove unnecessary CSS specificity 3d22821a96
Marius Lundgård refactor(form-builder): restore original getBoundingClientRect after override d854c40f75
Per-Kristian Nordnes fix(portable-text-editor): make sure that drag-over element is within editor 937a27c400
Per-Kristian Nordnes fix(form-builder): fix broken CSS selector in PTE input drag indicator e91af5b146
hermanwikner fix(form-builder): improve markers tooltip in PTE BlockObject 91c83a61d4
hermanwikner fix(form-builder): improve markers tooltip in PTE TextBlock 3c27880618
Marius Lundgård refactor(form-builder): simplify block components 3b658d1c18
Marius Lundgård refactor(form-builder): calculate actions position based on theme values b31b5fa2a6
Rico Kahler chore: upgrade puppeteer (#2930) 390c88eb71
Per-Kristian Nordnes test(test-studio): unify schema type def ed814ba7f2
Per-Kristian Nordnes fix(validation): fix bug in path for PT annotations a30d5d0ea6
Rico Kahler feat(types): add compiled schema types for portable text d8b04ee831
Rico Kahler feat(types): add type predicates for portable text 88ac6b8faa
Rico Kahler fix(validation): check markDefs in validateItem ab372d3df6
Rico Kahler refactor(validation): deprecate Rule.block() 5027e9dbd7
Per-Kristian Nordnes test(test-studio): hook up hoisted pt type test cc9440e529
Per-Kristian Nordnes fix(types): fix invalid assertion for block type f21c79fe9e
Per-Kristian Nordnes fix(types): fix Block type to have any type name a118f2864f
Per-Kristian Nordnes fix(portable-text-editor): fix minor regression with drag ghost positioning d350d9339f
Per-Kristian Nordnes test(test-studio): fix validation impl. issue on test schema a8d553f64a
Rico Kahler fix(validation): make cloneWithMessage optional (#2937) 192ee0d1e6
sanity - v2.21.11

Published by ricokahler almost 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 causing sanity exec to crash

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes fix(test-studio): fix wrong prop name for link type ecb9c3ceb
Rico Kahler fix(core): remove require.context in execScript (#2925) 732c4da40
sanity - v2.21.10

Published by ricokahler almost 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 includes a new implementation of our pane and intent resolver that resolves intents deeper in your structure and provides more consistency with getDefaultDocumentNode.

  • Fixes an issue where creating a new document would open in the fallback editor instead of as a child to the current pane.
  • Fixes an issue where opening a search item from the top search would result in the fallback editor instead of user-defined structure.
  • Fixes inconsistencies with getDefaultDocumentNode where configured views would not appear in the fallback editor.
  • Fixes an issue with GraphQL deploy causing "Error: Cannot find module '@sanity/core/_internal'

Other features

  • Support for GROQ query params in patch and delete methods in the client (#1826). Thanks @KarlGe!

📓 Full changelog

Author Message Commit
Marius Lundgård build(studio-hints): update @sanity/ui 5be372826
Karl Georgsen feat(client): add support for patch/delete with query and params (#1826) d9386caa3
Daniel Winsvold docs(code-input): example usage in react frontend (#2233) 8472e5bcd
Alexis Hope refactor(base): ButtonGrid to functional component (#2776) fcea41fed
Espen Hovlandsdal chore(deps): upgrade ora to the latest non-esm version 98e09bac9
Espen Hovlandsdal chore(server): upgrade strip-ansi to latest non-esm version 1a242d3d8
Rico Kahler fix(core): resolve createRequireContext relative to core (#2906) 7edd02173
Simeon Griggs docs(language-filter): clarify plugin needed to be listed in sanity.json (#2910) 330a3252e
Marius Lundgård build: update @sanity/ui dependency 68c31d6b4
hermanwikner build: update @sanity/ui dependency 2f08620e6
Rico Kahler fix(form-builder): update tests for DST (#2918) 7814dec78
Rico Kahler fix(desk-tool): use getDefaultDocumentNode in fallback editor (#2917) 2a0d0d0c4
Rico Kahler refactor(desk-tool): new pane and intent resolution mechanism (#2886) 27bcdad9b
Rico Kahler fix: intent resolver follow up (#2914) e5a84d679
Rico Kahler fix(core): remove support for require.context (#2921) 180f25e2c
sanity - v2.21.9

Published by ricokahler almost 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 regression introduced in #2884 that caused the saving spinner to not appear while a change was still syncing

📓 Full changelog

Author Message Commit
Bjørge Næss chore(test-studio): add a reference field to focus test schema type c172ca515
Bjørge Næss chore(test-studio): fix broken preview for species type bd59f8b55
Bjørge Næss chore(test-studio): rearrange reference test type 3af754b64
Bjørge Næss fix(workshop): support inspection using react devtools in workshop frame 684cbb053
Bjørge Næss fix(form-builder): add focus ring on array items 6590e81aa
Bjørge Næss fix(react-hooks): require document type in useSyncState 874130269
Bjørge Næss fix(desk-tool): pass document type to useSyncState d54da9d63
Marius Lundgård build: update dependencies 45408ca93
sanity - v2.21.8

Published by ricokahler almost 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 causing GraphQL deploys to fail after installing to babel ^7.16.0 see (#2899).

📓 Full changelog

Author Message Commit
Rico Kahler fix(core): fix require.context shim for graphql deploys (#2903) 808c4593d