npm @sanity/default-layout 0.140.9
v0.140.9

latest releases: 2.36.2, 2.36.2-weighted-search.16, 2.36.2-weighted-search.10...
5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

It's now possible to remove all data for a rich text field

We used to leave an empty block object when you deleted all content in the editor for Portable Text. Now the field will be completely removed when you empty the editor for content.

Hoisted types can now be used as annotations

There was a bug in the schema validation that made it impossible to use types defined globally (also known as "hoisted types") as an annotation in a block type. Now you can refer to annotations types just as {type: 'myTypeDefinedElseWhere'}.

🐛 Notable bugfixes / changes

  • Stack traces are now shown by default when errors occur in the Sanity CLI tool in order to more easily debug issues
  • Fixed a bug for fallback deserialization of HTML links when pasting HTML into the editor for Portable Text without having the default link type in the schema.
  • Fixed a bug where inserting inline objects in the editor for Portable Text would sometimes cause an error.
  • The @sanity/code-input package was implicitly depending on an undeclared dependency
  • Fixed a bug in @sanity/image-url where the crop parameter relied on the horizontal dimension where it should rely on the vertical

📓 Full changelog

Author Message Commit
Bjørge Næss [form-builder] Pass onBlur to underlying string input (#1206) a24ff45
Espen Hovlandsdal [schema] Fix block annotation validation not handling certain objects (#1203) d27d173
Knut Melvær Update Readme (#1211) 3642f89
Kristoffer J. Sivertsen [default-layout] Reset tool when selecting active tool (#1196) 5f91381
Per-Kristian Nordnes [form-builder] Block editor: reset field on delete all (#1214) d5099ac
Kristoffer J. Sivertsen Ux/fix spinner searchable select (#1204) 356b60f
Kristoffer J. Sivertsen [components] Height:stretch does not work as intended in firefox (#1213) 95fac14
Kristoffer J. Sivertsen Fix/title push icons outside mobile view (#1194) f76253d
Marius Lundgård [chore] Alphabetize rules 2641002
Marius Lundgård [chore] Disable block-no-empty 6f13821
Marius Lundgård [chore] Disable comment-empty-line-before a55e957
Bjørge Næss [core] Fix erroneous eslint rule ca772cd
Per-Kristian Nordnes [form-builder] Block editor: Better handling of unsetting field when editor is empty (#1218) 42f8f1f
Simen Svale Skogsrud [image-url] Fixe a mixup where a crop parameter relied on the horizontal dimension where it should rely on the vertical 393b1a2
Per-Kristian Nordnes [block-tools] Fix bug in link deserialization fallback (#1215) dc89b28
Per-Kristian Nordnes [form-builder] Block editor: fix sometimes failing insert inline object (#1227) 050a04b
Espen Hovlandsdal [code-input] Add react-icons as dependency (#1228) 59b401b
Espen Hovlandsdal [cli] Show stack traces on errors by default (#1202) b2ab56a
Kristoffer J. Sivertsen Block editor dialog title (#1226) 75d019a

Don't miss a new default-layout release

NewReleases is sending notifications on new releases.