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 - v0.140.37

Published by rexxars over 5 years ago

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Fixed timestamps for duplicated document not defaulting to current date
  • Fixed studio crash when duplicating document in context-less editing pane

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [desk-tool] Omit _createdAt, _updatedAt when creating duplicate document (#1379) a9372e340
Espen Hovlandsdal [desk-tool] Fix error when duplicating document in fallback edit pane (#1378) 751a2ae93
sanity - v0.140.36

Published by bjoerge over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Fixed a bug so that you will now get more helpful errors upon network failures caused by invalid CORS config
  • Fixed a bug that made list items and previews/search results sometimes appear empty (see #1375)

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [client] Fix withCredentials override not being applied (#1373) 3e6ef9ddc
Kristoffer J. Sivertsen [components] Only border when padding in fieldset content (#1368) f2881b1de
Bjรธrge Nรฆss [preview] Insert a nonbreaking space initially to workaround intersectionobserver chromium bug (#1380) 1895e012e
sanity - v0.140.35

Published by rexxars over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Fixed images not displaying because of incorrect URLs generated on certain devices
  • Fixed global error handler not constraining size of error message

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [base] Use ellipsis for long error messages (#1369) 4eca74fc9
Espen Hovlandsdal [form-builder] Round device pixel ratio, avoiding float dimensions for images (#1372) 333dd2e6f
sanity - v0.140.34

Published by rexxars over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • The global error handler introduced in v0.140.30 was a bit too eager - errors occuring after initial React render are now handled in a slightly more subtle manner
  • Specifying a basePath for studio will no longer cause studio to fail when deployed to sanity.studio
  • Errors inside of the prepare method for previews no longer crashes the studio in production
  • Modules that are linked using npm link/yarn link will no longer cause a hot module reloading resolve error
  • Some users were seeing errors after we introduced the v8 compile cache module in our CLI, so it is now removed

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [core] Deploy to sanity.studio without basePath (#1356) fc6cc63b1
Kristoffer Sivertsen [components] Fix overflow on divider a8a17a6d3
Espen Hovlandsdal [preview] Always run preview prepare in try/catch (#1364) 260db28b1
Knut Melvรฆr [base] Fix typo in comment 01e8d81e5
Espen Hovlandsdal [image-url] Move module out of monorepo (#1359) 07093716b
Espen Hovlandsdal [server] Prevent build error on symlinked modules (#1355) fdab5f329
Espen Hovlandsdal [util] Replace jest with tap 134480aa5
Espen Hovlandsdal [cli] Remove v8-compile-cache because of mixed results 93e6db653
Espen Hovlandsdal [base] Add less intrusive error handler (#1367) c59c62a68
Espen Hovlandsdal [validation] Upgrade jest to v24 6ddb900a0
sanity - v0.140.33

Published by rexxars over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

โœจ Highlights

Collapsible button group in portable text editor

When there is enough room to show all menu items, they are now lifted out of the "Insert"-menu.

๐Ÿ› Notable bugfixes

  • Checkboxes now has font size in line with other components
  • Fixed bug where search would crash if no document types were present
  • Fixed issue in code input where the studio would crash if using unsupported languages
  • Fixed issue where the global error handler would catch non-critical errors

๐Ÿ““ Full changelog

Author Message Commit
Kristoffer J. Sivertsen [components] Checkbox font size fix (#1336) a201c9627
Kristoffer J. Sivertsen [form-builder] Collapsible button group in block editor (#1332) c0e217eb8
Espen Hovlandsdal [default-layout] Fix search crashing when enter is pressed with no results 9fe813053
Espen Hovlandsdal [base] Remove empty query segments causing invalid queries deadc967a
krsnaa [cli] Fix duplicated word in schema file 9227ddb0b
Knut Melvรฆr [cli]ย Add example plugin for dashboard widgets (#1329) 4506b9945
Espen Hovlandsdal [code-input] Only render editor on supported languages cd8619f39
Espen Hovlandsdal [base] Ignore errors when attempting to load HTML as JS 9d68e059e
sanity - v0.140.32

Published by rexxars over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

Notable changes

  • Fix bug where sanity dataset export would not clean up temporary files after failures

๐Ÿ““ Full changelog

Author Message Commit
Bjรธrge Nรฆss [preview] Use visibility query when setting up listener (#1342) 1f5708e9c
Espen Hovlandsdal [export] Clean up temporary files on failure (#1347) 4d032fb1e
Espen Hovlandsdal [export] Provide better error messages on download failure (#1349) 5be08ca68
sanity - v0.140.31

Published by rexxars over 5 years ago

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Fixed a missing dependency in the @sanity/vision plugin

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [vision] Add missing codemirror dependency 376f1cc2a
sanity - v0.140.30

Published by rexxars over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

โœจ Highlights

We had ourselves a "bug week"! Read our blog post.

This release has a bunch of small and less small fixes.

(Slightly) smarter image input/selection

The "select image" dialog no longer shows "Load more" when there are in fact no more images to load. The images are also scaled to fit the current device pixel ratio, resulting in sharper images on mobile devices and high-density displays. Certain images were also downloaded at full size, while they are now scaled down to fit the screen.

Divider allowed in desk structure

A minor (but much requested) feature; You can now use the S.divider() method to add a small divider between list items in the desk tool. In future releases, we will add the ability to group items even further, which will allow "headings", among other features.

Improved error handling

Non-React errors will now be caught and displayed in the browser window, making it easier to debug issues. Opening the browser developer tools will usually give the error with a better stack trace, helping you find the source of the issue more easily.

sanity exec uses same babel config as studio

In certain cases, scripts you would want to execute with sanity exec would include non-standard features like JSX or class properties. While the babel config used for the studio would allow this, sanity exec did not. This is now fixed.

Faster vision plugin

The @sanity/vision GROQ playground is now faster and smarter - we've upgraded a bunch of dependencies, fixing a set of scrolling issues and other odd behavior. (Run sanity install @sanity/vision to try it out.)

More schema validation

We've had a few cases reported where an incorrect schema definition would not be picked up by the schema validation, but instead lead to the studio crashing. Validation rules are now in place to make these situations easier to debug.

Object types no longer listed if no document types found

Previously, if your schema did not contain any document types, the desk tool would instead show object types. This functionality is now removed, and will instead show a descriptive error message.

๐Ÿ› Notable bugfixes

  • Fixed a focus-ring bug in the editor for Portable Text if it was empty
  • Fixed bugs with the "invalid type" warning interface inside the editor for Portable Text.
  • Fixed issue where the reference input would not show a "Loading" state on initial load
  • Fixed case where patches with a numeric key selection would incorrectly match a string key with the same value
  • Fixed positioning of the "Publishing" overlay
  • Fixed default layout not being usable without the desk tool installed
  • Fixed desk structure resolving not allowing a plain structure node to be used as a child
  • Fixed "loading" message on desk tool panes being cut off at the top
  • Fixed issue where sanity init would not allow --visiblity flag
  • Fixed sanity documents commands not accepting numeric document IDs
  • Fixed deprecation warning when logging in to the CLI from Node >= 11

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [form-builder] Display "no images found" text if no images are found (#1306) cdc30a1a8
Espen Hovlandsdal [form-builder] Don't show 'Load more'-button if reached known end (#1307) 077172ae6
Thomas Drevon [structure] Throw error when configuring documentTypeListItems with an unknown type bbb7b78f0
Thomas Drevon [structure] Rename name --> typeName for consistency dbb7866fe
Espen Hovlandsdal [form-builder] Use loading state for reference input while loading initial value (#1309) 3ee528a7d
Espen Hovlandsdal [form-builder] Use max-fit and and DPR-aware height (#1308) 15d146ee0
Per-Kristian Nordnes [validation] Check for type validating arrays and objects in document (#1327) ebb997afe
Espen Hovlandsdal [mutator] Use strict equals when comparing equality (#1326) 82caf34b4
Espen Hovlandsdal [components] Fix propType depending on window global (#1321) 2eece6fda
Espen Hovlandsdal [form-builder] Make canvas to blob polyfill node.js-safe (#1320) 357b2ad5a
Espen Hovlandsdal [components] Remove unused canvas-to-blob dependency (#1319) d8b81149e
Kristoffer J. Sivertsen [desk-tool] Moving overlay out of scroll container (#1312) 9d24e103a
Espen Hovlandsdal [form-builder] Constrain rendered images to a reasonable size (#1330) 6d0411309
Kristoffer J. Sivertsen [vision] Faster result view (#1298) 9f61ab58f
Kristoffer J. Sivertsen [vision] Fix scroll issues (#1295) b8695a799
Kristoffer Sivertsen [components] Remove unused classNames 922943a10
Espen Hovlandsdal [structure] Add divider builder method (#1331) aa473bab7
Espen Hovlandsdal [base] Add global error handler (#1333) 71dc9b6f2
Kristoffer J. Sivertsen [form-builder] Select asset fixes (#1334) a752e74c2
Espen Hovlandsdal [base] Fix history import to match new API (#1323) 07bc78f7b
Espen Hovlandsdal [schema] Catch and display errors for falsey/incorrectly imported type defs (#1316) c6cd7287a
Espen Hovlandsdal [default-layout] Make active tool name optional e3dd544d5
Espen Hovlandsdal [default-layout] Prevent crash if no tools are installed 60c0637ea
Espen Hovlandsdal [default-layout] Disentangle from data aspects/desk-tool c32591dab
Espen Hovlandsdal [schema] Fix crash on invalid array of-member declaration (#1314) ec71ed471
Espen Hovlandsdal [desk-tool] Fix issue where non-function child would fail to resolve (#1325) 54f745c2d
Espen Hovlandsdal [desk-tool] Fix loading indicator being cut at top (#1324) 3b4c9b90a
Espen Hovlandsdal [cli] Show reconfigure prompt only if output path flag is not cwd b48c7a728
Espen Hovlandsdal [cli] Fix inverted visibility allowed check 56d8f6fb1
Espen Hovlandsdal [structure] Improve error when promise is passed in list items (#1311) 456388b92
Espen Hovlandsdal [core] Cast document IDs to string (#1317) 26e246916
Espen Hovlandsdal [core] Make sanity exec use same babel config as studio (#1322) 3130fefec
Espen Hovlandsdal [cli] Use v8 compile cache (#1259) 414a03a89
Espen Hovlandsdal [base] Don't catch errors without an Error instance (#1339) 4a4115fa3
Per-Kristian Nordnes [block-tools] Rename blockContentTypeOptions to blockContentTypeFeatures (#1328) 570df06ae
Marius Lundgรฅrd [block-tools] Add info about running sanity scripts (#1293) 4a133acc9
Per-Kristian Nordnes [form-builder] Block editor: Fix bug where focus was not set properly on editor when first opening the document 7b3a30e19
Per-Kristian Nordnes [form-builder] Block editor: fix bugs related to removing unknown types interface inside the editor 7b3a30e19
Per-Kristian Nordnes [form-builder] Block editor: Support removing invalid annotation types 7b3a30e19
Per-Kristian Nordnes [form-builder] Remove unsued function in BlockObject/InlineObject 7b3a30e19
Per-Kristian Nordnes [form-builder] Block editor: fix invalid conditional, and make dragging of inline object nodes smoother 7b3a30e19
Espen Hovlandsdal [cli] Generate and use initialization vector for token exchange (#1341) 2e6b1e2bf
Thomas Drevon [desk-tool] Display EmptyListPane in case of no document types in schema 5fe84efa5
Thomas Drevon [data-aspects] Don't pass schema when calling class function getDocumentTypes f9cc638fe
Thomas Drevon [structure] Resolve documentTypeList using defined docs instead of inferred types 496316478
Bjรธrge Nรฆss [clean-studio] Add clean-studio a7469afd6
Thomas Drevon [desk-tool] Rename empty list message component and refrain from using any Pane 2340e3a87
Thomas Drevon [desk-tool] Make link actionable 11d5a38fd
Knut Melvรฆr [block-tools] Fix variable name in example (#1337) cdb23e31d
Thomas Drevon [structure] Update data aspects mock 8bd38b432
Espen Hovlandsdal [base] Use pre-wrap to constrain width when displaying uncaught errors (#1343) 10f9130eb
sanity - v0.140.25

Published by skogsmaskin over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

๐Ÿ› Notable bugfixes

  • Fixed a bug in the editor for portable text where inserting inline objects would sometimes crash the studio
  • Fixed a bug in the editor for portable text where writing your own onPaste handler would error if pasting into an empty document
  • Fixed a bug in the data export script related to asset exports, and better error messaging in this regard

๐Ÿ““ Full changelog

Author Message Commit
Per-Kristian Nordnes [import] Set asset patch and reference concurrency to 1 (#1302) 4c33b986b
Per-Kristian Nordnes Fix block editor inline bug (#1300) 9438935ba
Espen Hovlandsdal [export] Use SHA1 for validation if MD5 is not available (#1303) 20135b4b0
Espen Hovlandsdal [export] Include more descriptive messages on download error (#1296) a5246b7be
Per-Kristian Nordnes Fix editor on paste patch bug (#1294) 82d5bada3
sanity - v0.140.24

Published by kristofferjs over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ““ Full changelog

Author Message Commit
Kristoffer Sivertsen [dashboard] Cleanup package.json 2a348ba04
Thomas Drevon [dashboard] Use category instead of timestamp for feed item subtitle a504875a9
sanity - v0.140.22

Published by kristofferjs over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Fixes some cases where build get stuck on missing react-icons in dashboard

๐Ÿ““ Full changelog

Author Message Commit
Kristoffer J. Sivertsen [dashboard] Include react-icons (#1299) 92d508614
sanity - v0.140.21

Published by rexxars over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Verify downloaded assets on export to make sure they match remote checksum

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [export] Verify downloaded assets with checksum (#1291) 5ab9df453
sanity - v0.140.20

Published by bjoerge over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Fixed an issue with sanity import that could sometimes make assets from previous imports interfere with the current import

๐Ÿ““ Full changelog

Author Message Commit
Bjรธrge Nรฆss [import] Use unique tempdirs when unpacking archive for import (#1292) 8c5ccdc81
sanity - v0.140.19

Published by kristofferjs over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Minor fixes to the dashboard tool

๐Ÿ““ Full changelog

Author Message Commit
Kristoffer J. Sivertsen [dashboard] Minor fixes to dashboard (#1290) 4bea3503f
sanity - v0.140.18

Published by bjoerge over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • We fixed an issue with sanity export that affected image or file fields that had their own image or file fields.

๐Ÿ““ Full changelog

Author Message Commit
Bjรธrge Nรฆss [export] Recusively rewrite additional fields on image/file fields (#1289) 906d1af97
sanity - v0.140.17

Published by rexxars over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

โœจ Highlights

New validation flag: assetRequired()

Image and file fields can can now use the assetRequired() validation rule in order to enforce that an image has an actual image and not just metadata fields.

๐Ÿ› Notable bugfixes

  • sanity dataset import no longer overwrites _type field
  • Image and file fields should now show validation errors
  • Validation rules on customized image/file types now work as expected

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [form-builder] Pass on markers from asset inputs to fieldset (#1281) bb1716cbb
Espen Hovlandsdal [form-builder] Hide image edit button if no fields and no asset (#1284) 802e5b2ba
Thomas Drevon [test-studio] Access specific tutorial feed 324b9f7b9
Thomas Drevon [dashboard] If prop is set, request specific feed for template f9b39187f
Espen Hovlandsdal [import] Don't override _type for imported assets (#1288) 372d1f70d
Espen Hovlandsdal [client] Raise default timeout, allow overriding per-request (#1286) 96b668995
Espen Hovlandsdal [validation] Add new assetRequired-flag (#1285) 36428e8aa
Espen Hovlandsdal [validation] Exclude meta fields from object emptiness check (#1282) e9fc73423
Espen Hovlandsdal [schema] Allow file + image to extend validation (#1283) 8b13e880a
sanity - v0.140.16

Published by rexxars over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

โœจ Highlights

Non-HTTP(s) CORS origins

We now support adding origins with protocols other than http/https. This is useful with certain cross-platform mobile toolkits, chrome extensions and similar.

๐Ÿ› Notable bugfixes

  • Fixed a crash when specifying a numeric dataset name to the CLI

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [core] Allow specifying non-HTTP protocols for CORS-origins (#1262) 510452e1f
Espen Hovlandsdal [cli] Improve dataset name validation (#1271) acc590f87
Marius Lundgรฅrd [dashboard] Update design (#1280) 8933d5176
Espen Hovlandsdal [core] Ensure dataset name is a string before validating (#1277) 82c4f8b24
Thomas Drevon [desk-tool] Add comment regarding slice and order when searching for documents (#1279) ac2845130
Espen Hovlandsdal [presence-store] Store message subscription instance on class cc1325e5f
sanity - v0.140.15

Published by rexxars over 5 years ago

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Fixed bug where loading screen would not disappear in hot-reload mode after file change

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [default-login] Fix synchronous setState in constructor (#1268) 9a3471141
sanity - v0.140.14

Published by bjoerge over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

โœจ Highlights

  • After running sanity init for the first time you will now be asked if you'd like an invitation to join the Sanity community on Slack ๐Ÿ™Œ.

๐Ÿ› Notable bugfixes

  • We fixed bug where pasting into a portable text editor inside another portable text editor would sometimes cause an error.
  • Fixed a bug causing an error dialog to appear on successful image deletion.
  • Fixed a bug causing onBlur from text inputs not to be propagated
  • Reverted experimental hotfix for Safari login, due to changes in latest Safari release.

๐Ÿ““ Full changelog

Author Message Commit
Espen Hovlandsdal [cli] Prompt to send community invitation on first project creation (#1258) f56fa1808
Thomas Drevon [scripts] Generate release notes from previous version tag (#1255) 7956ad76a
Per-Kristian Nordnes [form-builder] Fix bug where pasting into an editor inside an editor would sometimes error (#1257) 324076d5e
Per-Kristian Nordnes [default-login] Remove Safari login exception (#1263) 07f24ed73
Kristoffer J. Sivertsen [form-builder] Correct function name and remove asset from state (#1266) 9614a1d5d
Bjรธrge Nรฆss [form-builder] Fix bug where onBlur prop wasn't passed to underlying component 0319e051f
sanity - v0.140.13

Published by skogsmaskin over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

๐Ÿ› Notable bugfixes

  • Fixed a bug where locally installed react-icons would cause issues with the previous release ๐Ÿž

๐Ÿ““ Full changelog

Author Message Commit
Per-Kristian Nordnes [form-builder] Icon must be imported from parts, not from react-icons directly 05ff7978c