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.12

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

Highlights ✨

WebP all the things!

When using @sanity/image-url to generate image URLs, you can now automatically get WebP images if the browser supports it. Use auto(format) to make this happen.

Deleting assets in the asset browser

You can now delete assets in the asset browser. If an asset is used in other documents, we list them with a link to make it easy to remove the reference.

Features

Notable bugfixes 🐛

  • Fixed a bug in the editor for Portable Text that threw an error when you had another editor inside a inline object type.
  • Fixed a focus bug in the editor for Portable Text that would scroll to top trying to set focus further down in the document after going directly into fullscreen mode.

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [form-builder] Block editor: fix bug in editor inside inline object patch to operations (#1243) c504b05c8
Per-Kristian Nordnes [form-builer] Block editor - fix focus bug when toggling fullscreen mode (#1240) a2891f69e
Kristoffer J. Sivertsen [block-editor] Picking icons from schema or type in insert menu (#1217) ea771847f
Knut Melvær [cli] Remove from variants (#1241) ce858fab2
Marius Lundgård [dashboard] Fix @sanity/base version 91486da00
Espen Hovlandsdal [image-url] Add auto('format') support for automatic WebP switching (#1242) 50d4bd6d9
Knut Melvær [block-tools] Fix typo 5457544e2
Marius Lundgård [dashboard] Dashboard updates (#1248) fa89e1726
Marius Lundgård [dashboard] Fix minor CSS issue 4ae3a28c8
Per-Kristian Nordnes [form-builder] Block editor: hide 'More' button if empty (#1247) 0e63be079
Kristoffer J. Sivertsen [dashboard] Getting tutorials feed from proxy (#1251) 95380a52e
David Longo [code-input] Adding Python language compatibility (#1249) 1f71275a9
Martin Jacobsen [code-input] Adds support for .sass and .scss (#1252) 744280005
Thomas Drevon [test-studio] Add new code input languages ae65e1bb0
Per-Kristian Nordnes [server] Upgrade @sanity/css-loader (#1256) 5ba8f6a89
Kristoffer J. Sivertsen [form-builder] Asset delete button (#1191) 86668f955
sanity - v0.140.11

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

  • Rolled back keep-alive change in client that was causing asset uploads to fail

📓 Full changelog

Author Message Commit
Bjørge Næss [client] Improve docs wrt. client.listen and returned observable and how to unsubscribe (#1239) 24efab102
Espen Hovlandsdal [client] Roll back keep-alive change for now d155bce71
sanity - v0.140.10

Published by thomax over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

hasAlpha, isOpaque fields for images

Newly uploaded image assets now have two additional metadata fields:

  • hasAlpha (bool) - Whether or not the image has an alpha channel (regardless of it being in use)
  • isOpaque (bool) - Whether or not the image is opaque (does not contain any transparent pixels)

Note that these fields are only present on newly uploaded image assets.

Keep-Alive in Sanity client

The @sanity/client module now uses keep-alive ♻️ connections against the Sanity API. This improves performance when doing more than one request against the API within a short window of time by reusing network connections.

Filename field on code input

The @sanity/code-input plugin now has an option to enable a filename field. Set options.withFilename to true in order to enable this field. Thanks to Raymond Julin for this improvement!

🐛 Notable bugfixes

  • Fixes a bug with Studio search that split words including numbers into separate terms
  • Fixes a bug where deploying a GraphQL API would fail in certain conditions

📓 Full changelog

Author Message Commit
Bjørge Næss [base] Split string on space and comma instead of using lodash.words for tokenization (#1222) 2664ef3e4
Espen Hovlandsdal [base] Add hasAlpha, isOpaque fields to image metadata fields (#1232) 9e8da6ab7
Bjørge Næss [chore] Upgrade to latest lerna and tweak publish scripts 5bc5448c5
Raymond Julin [code-input] Add a filename field to code input blocks (#1234) 37f488fd4
Espen Hovlandsdal [client] Introduce keepAlive in client (#1235) 63c56254c
Bjørge Næss [form-builder] Remove import for overriding code-input part (#1238) e31ccf1c8
Thomas Drevon [dashboard] Implement skeleton for dashboard tool 84ed06f03
Thomas Drevon [test-studio] Wire up dashboard tool in test-studio d6455c95d
Thomas Drevon [dashboard] Update dashboard readme 0bcd7da44
Thomas Drevon [test-studio] Add some plugins to make the dashboard tool show something fe1a7a2dd
Thomas Drevon [dashboard] Dashboard, first pass which works 66f10d246
Thomas Drevon [dashboard] Add a stack-overview placeholder widget 59adffc2d
Thomas Drevon [test-studio] Update format of dashboardConfig f7fa47104
Thomas Drevon [dashboard] Change format of dashboardConfig and update code to handle the change 8ff6c394e
Kristoffer Sivertsen [dashboard] Setup grid b3ffd85a9
Kristoffer Sivertsen [dashboard] CSS grid with simple config 89904ca93
Thomas Drevon [dashboard] Add project-info dashboard widget f7ad007b1
Thomas Drevon [test-studio] Sample configuration of project-info widget aee1c6645
Kristoffer Sivertsen [dashboard] Adding common styles 938ac93aa
Kristoffer Sivertsen [dashboard] Adding tutorial widget 9abe7e1f4
Kristoffer Sivertsen [dashboard] Styling widget wrapper 7109a5ef2
Kristoffer Sivertsen [dashboard] Document list mockup widget 2442c82bc
Kristoffer Sivertsen [dashboard] Styling stack overview 621605ba2
Kristoffer Sivertsen [dashboard] Styling project info 4ce7116e6
Kristoffer Sivertsen [dashboard] Dashboard configf example f93a1a59a
Thomas Drevon [test-studio] Add project-users widget to test-studio dashboard config 39c89de8d
Thomas Drevon [dashboard] Make manage link open in new tab b64dfb1e5
Thomas Drevon [dashboard] Satisfy react key requirement 09e3c9590
Thomas Drevon [dashboard] First pass at project-users widget 974505cb5
Thomas Drevon [dashboard] Minor formatting 26250ca06
Thomas Drevon [dashboar] Minor fixes in several places d185f044c
Thomas Drevon [dashboard] Fix some wonkieness while building urls d0c6d61c6
Thomas Drevon [dashboard] Added IntentLink on each doc in the document-list widget 6713227ef
Thomas Drevon [dashboard] Don't show drafts by default in document-list widget bba0ad8f6
Thomas Drevon [dashboard] Style profile images 5d5a32600
Kristoffer Sivertsen [dashboard] Removing styles and using components 80c8ac0f6
Kristoffer Sivertsen [default-layout] Firefox does not respect relative height toolContainer 7879ccfa3
Kristoffer Sivertsen [dashboard] Adding button to document-list f9fb7299b
Thomas Drevon [dashboard] Fallback author rendering in tutorials widget a3179b552
Kristoffer Sivertsen [dashboard] Example of different document-list 2bcb00ceb
Thomas Drevon [dashboard] Fix preview db77fb94a
Kristoffer Sivertsen [dashboard] Styling the document-list 2e116f44c
Kristoffer Sivertsen [dashboard] Filter documentTypes from schema in document-list 13a3a06ad
Marius Lundgård [dashboard] Adjust grid layout 40c096e95
Kristoffer Sivertsen [dashboard] Change content structure to feed 937871ac6
Kristoffer Sivertsen [dashboard] Update content structure for tutorials 593107372
Kristoffer Sivertsen [dashboard] Cleanup document-list a8e2bd074
Kristoffer Sivertsen [dashboard] Remove stack-overview 770afa197
Kristoffer Sivertsen [dashboard] Responsive styling cleanup 5fa16266d
Kristoffer Sivertsen [dashboard-tool] Adding correct icon 71820dafe
Kristoffer Sivertsen [dashboard] Simplify and add hover on tutorials 8059128f2
Kristoffer Sivertsen [dashboard] Tidy up design and rename to styles.css .modules.css 14c4c81ce
Kristoffer Sivertsen [dashboard] Stretch instead of fill-avilable 8cf9468cf
Kristoffer Sivertsen [dashboard] Only show the IntentButton for one type 10162d036
Marius Lundgård [dashboard] Fix prop types and prettier format fae70fc19
Marius Lundgård [test-studio] Make dashboard the first menu item 05a19e0e4
Marius Lundgård [dashboard] Add header element to widgets 54dd96c7e
Marius Lundgård [dashboard] Add hairline color 18f80e77a
Marius Lundgård [dashboard] Add design updates (details) cb48479e6
Marius Lundgård [dashboard] Rename widgets directories 32e7380c8
Marius Lundgård [dashboard] Fix file names to conform to conventions, update design e76c4f246
Thomas Drevon [dashboard] Clean up package.json b2a09629f
Thomas Drevon [dashboard] A dozen minor improvements based on code review 944027b25
Thomas Drevon [dashboard] Make the feedItems fetch an observable 80bde7d5e
Thomas Drevon [dashboard] Allow missing posterUrl b59d21752
Thomas Drevon [dashboard] Fix proptype expectation 2ab29b42c
Thomas Drevon [dashboard] Extract hard coded sanity stuff to its own file bdbdf70d3
Thomas Drevon [dashboard] Extract DocumentList widget to its own repo 8dc442dd9
Thomas Drevon [test-studio] Wire up the external DocumentList widget 3d5d01a54
Thomas Drevon [dashboard] In case of data load failure, give the user a way to attempt refetch 5798981d7
Marius Lundgård [dashboard] Add design tweaks 0cefa6b21
Marius Lundgård [dashboard] Fix inconsistencies in ProjectUsers widget 61722db46
Marius Lundgård [dashboard] Add an example of layout configuration to README 88148d64d
Marius Lundgård [dashboard] Change default config 4ce2fbebe
Marius Lundgård [dashboard] Add syntax highlighting to README e0a74898a
Marius Lundgård [dashboard] Move default layout config to widgets d4e45d98c
Marius Lundgård [test-studio] Add cats widget 61c41c728
Thomas Drevon [test-studio] Bump version of document-list widget 6fc14a51a
Thomas Drevon [dashboard] Guard against a single users returning from members fetch cd142d406
Thomas Drevon [dashboard] Improved error display in project-info widget a4ba0fde4
Thomas Drevon [dashboard] Fix additional categories render bug in project-info b7ff62eb6
Thomas Drevon [test-studio] More dashboard test config ad37d015d
Thomas Drevon [dashboard] Fix graphQl url bug in the project-info widget 37969d6c5
Thomas Drevon [dashboard] First pass at some dashboard documentation 75c3453a8
Thomas Drevon [dashboard] Update readme c174fd60b
Thomas Drevon [test-studio] Configure up non-existing widget in test-studio c2400b1dd
Thomas Drevon [dashboard] Improved handling of non-existing widget 356be0812
Per-Kristian Nordnes [dashboard] Update README.md with styling tips 47c4d5596
Espen Hovlandsdal [plugin-loader] Fix resolving paths with query strings bf01370e9
sanity - v0.140.9

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

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) a24ff45c1
Espen Hovlandsdal [schema] Fix block annotation validation not handling certain objects (#1203) d27d17352
Knut Melvær Update Readme (#1211) 3642f89af
Kristoffer J. Sivertsen [default-layout] Reset tool when selecting active tool (#1196) 5f9138130
Per-Kristian Nordnes [form-builder] Block editor: reset field on delete all (#1214) d5099ac6b
Kristoffer J. Sivertsen Ux/fix spinner searchable select (#1204) 356b60f35
Kristoffer J. Sivertsen [components] Height:stretch does not work as intended in firefox (#1213) 95fac14a9
Kristoffer J. Sivertsen Fix/title push icons outside mobile view (#1194) f76253de5
Marius Lundgård [chore] Alphabetize rules 26410020b
Marius Lundgård [chore] Disable block-no-empty 6f138213b
Marius Lundgård [chore] Disable comment-empty-line-before a55e95704
Bjørge Næss [core] Fix erroneous eslint rule ca772cda6
Per-Kristian Nordnes [form-builder] Block editor: Better handling of unsetting field when editor is empty (#1218) 42f8f1f0a
Simen Svale Skogsrud [image-url] Fixe a mixup where a crop parameter relied on the horizontal dimension where it should rely on the vertical 393b1a237
Per-Kristian Nordnes [block-tools] Fix bug in link deserialization fallback (#1215) dc89b281c
Per-Kristian Nordnes [form-builder] Block editor: fix sometimes failing insert inline object (#1227) 050a04bef
Espen Hovlandsdal [code-input] Add react-icons as dependency (#1228) 59b401b6c
Espen Hovlandsdal [cli] Show stack traces on errors by default (#1202) b2ab56a2b
Kristoffer J. Sivertsen Block editor dialog title (#1226) 75d019a5c
sanity - v0.140.8

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

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [form-builder] Add defs folder to npmignore 522e684be
Espen Hovlandsdal [chore] Upgrade get-it 4269b2dff
Simen Svale Skogsrud [image-url] Now compatible with data from GraphQL apis (#1207) 5890b5e7a
sanity - v0.140.7

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

  • Fix bug where underlying request library would use HTTP for HTTPS proxy

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [chore] Upgrade get-it to fix HTTP/HTTPS proxy selection 456c33155
sanity - v0.140.6

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 improvements

  • Introduced HTTP(S) proxy support in the underlying request library for @sanity/client when using HTTP_PROXY / HTTPS_PROXY environment variables in Node.js

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [chore] Upgrade get-it to 4.1.0 (#1201) 8997559c5
sanity - v0.140.4

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

  • Fix failing builds because of breaking change in upstream dependency (terser)

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [core] Fix breaking change in upstream terser dependency (#1197) 38438a79b
sanity - v0.140.3

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

✨ Highlights

This is mostly a maintainance and bug-fix release.

  • Added schema validation rule for arrays where using unnamed object types in combination with the block type may lead to problems.

🐛 Notable bugfixes

  • Fixed a bug where URL fields that allows relative URLs would be incorrectly be highlighted as having errors by the browser
  • Fixed a bug in the portable text editor where starting a new document and pasting content as the first action would loose some of the pasted content
  • Fixed issue where links in a default portable text block would not allow relative URLs
  • Fixed issue where primitive values within an array that only allows object types would crash the form builder

📓 Full changelog

Author Message Commit
Kristoffer J. Sivertsen [test] Visual regression testing using backstopjs (#1157) a89d4451a
Espen Hovlandsdal [form-builder] Use text input for relative URL fields (#1179) 3146a78f8
Espen Hovlandsdal [schema] Allow tel: and mailto: as URI schemes for block link annotation (#1178) b52037ff0
even westvang [base] Change startup message from studio branding to pending connection (#1176) 374c33283
Espen Hovlandsdal [form-builder] Move pathUtils to util package (#1181) 9ea15cd41
Bjørge Næss [core] Coerce semver to allow prereleases of React (#1182) be4375373
Espen Hovlandsdal [form-builder] Show warning on non-object array values (#1173) 2b4a48151
Per-Kristian Nordnes Validate array type of types for object without a name when used in combination with a block type (#1171) 5b7fda18d
Per-Kristian Nordnes [block-tools] Expose normalizeBlock function in README + add test (#1172) c408e4a56
Bjørge Næss [form-builder] Include note about the format of _key in the missing keys warning (#1183) db21a130c
Knut Melvær Add issue templates (#1180) 27dc5b0d8
Knut Melvær Remove feature request description 20443edec
Kristoffer J. Sivertsen [test-studio] Add missing name (#1186) 7ccb100e1
Bjørge Næss [base] Create part of referring documents hoc/util-component (#1188) 4939dcf94
Per-Kristian Nordnes [form-builder] Fix editor bugs and upgrade to latest Slate packages (#1189) d80b55c93
Kristoffer J. Sivertsen [backstop-test-studio] Update versions (#1192) c7b715a0a
sanity - v0.140.2

Published by bjoerge almost 6 years ago

🐛 Notable bugfixes

This fixes an regression introduced in v0.140.0 that made it possible to reference draft documents. This caused issues when publishing drafts that other documents had references to.

📓 Full changelog

Author Message Commit
Bjørge Næss [base] Support excluding drafts from search (#1170) bcb155a8c
sanity - v0.140.1

Published by bjoerge almost 6 years ago

🐛 Notable bugfixes

This patch release fixes an issue with image uploads from the Content Studio in Safari/iOS

📓 Full changelog

Author Message Commit
Bjørge Næss [desk-tool] Delay reconnect events to fix broken image upload on Safari/iOS (#1169) 2093e06ff
sanity - v0.140.0

Published by bjoerge almost 6 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

🎰 Reconfiguring studios

You can now easily reconfigure an existing Sanity studio project to use a different project ID and dataset, by running sanity init in an existing studio folder. This will take you through a reconfiguration process and update the sanity.json file.

You can also ship a "template" for a studio by leaving out the projectId and dataset configuration options in sanity.json - when a user runs sanity init or sanity start in a studio without these options set, it will take them through the creation or selection of a project and dataset.

⚖️ Improved studio search and experimental search config

This release introduces a way to define specific weights on fields/paths for document types.

Since the API is not stable yet, and likely subject to change, it's confgurable on the __experimental_search property for schema document types. Here's an example:

  type: 'document',
  name: 'author',
  fields: [
    {name: 'name', type: 'string'},
    // ...
  ],
  __experimental_search: [
    {weight: 1.2, path: 'name'}
  ]
  // ...

A few things to note:

  • The weight is a global multiplier across all document types, so if name on type customer has a weight of 2, and name on type author has a weight of 4, documents of type author will be ranked higher than documents of type customer, even if their name fields equally matches what the user searched for.
  • If no search config is specified on a document type, it gets derived from the preview config (which again is derived by default through schema introspection).
  • We have also united the reference search with the global search, so that they both follow the same ranking/weighting rules.

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [schema] Add missing fields to span type (#1154) 5dd5371b9
Kristoffer J. Sivertsen [language-filter] Reference element outside of poppable (#1158) cd08bf7b2
Kristoffer J. Sivertsen [components] Add truncate prop to validationlist and item (#1132) 287fdc1df
Kristoffer J. Sivertsen [components] Auto-collapse animation smoothness (#1150) 6284fa139
Espen Hovlandsdal [core] Improve dataset name validation (#1162) 1c3aef474
Espen Hovlandsdal [cli] Allow reconfiguring studio projects (#1163) 26d5913bc
Kristoffer J. Sivertsen [default-layout] Show first letter in name as fallback (#1167) 124a4fe61
Bjørge Næss [default-layout] Give the search hit container a max height of 80vh in order to fit more items (#1166) 7dbc0ebc5
Bjørge Næss [base] Experimental search config with weights (#1168) a6f3caf05
sanity - v0.139.6

Published by rexxars almost 6 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Improved schema validation in certain scenarios
  • @sanity/export no longer produces empty exports on subsequent calls

📓 Full changelog

Author Message Commit
Kristoffer J. Sivertsen [all] Tiny design fixes (#1136) 72c931bbe
Espen Hovlandsdal [schema] Ensure that members declaration is an array before attempting to use it (#1145) 2b7f0115e
Espen Hovlandsdal [export] Fix bug where streams would be reused across invocations (#1146) 0c2907790
sanity - v0.139.5

Published by bjoerge almost 6 years ago

🐛 Notable bugfixes

This patch release fixes an issue with selecting datetime values in arrays

📓 Full changelog

Author Message Commit
Bjørge Næss [components] Make a distinction between onClickOutside and onClose dialog events (#1143) 7c4270e0d
sanity - v0.139.4

Published by rexxars almost 6 years ago

🐛 Notable bugfixes

This is a patch release to fix a problem with how block types are validated

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [schema] Allow name property on block types 51cba2a21
sanity - v0.139.3

Published by rexxars almost 6 years ago

🐛 Notable bugfixes

  • Fixed CSS build issues (for real, this time)

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [server] Use forked CSS-loader aee2f0fb8
sanity - v0.139.2

Published by rexxars almost 6 years ago

🐛 Notable bugfixes

  • Fixed a bug where a downstream dependency would cause CSS issues
  • Fixed a bug where a downstream dependency would cause installation issues on Windows
  • Minor bugfixes for the portable text editor

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [form-builder] Fix block actions props (#1137) 8db17b090
Per-Kristian Nordnes [form-builder] Block editor: improve block action patch functions (#1138) 30364b711
Even Westvang [webpack-loader] Peg loader-utils at 1.1.0 (#1142) 4787bb15c
Espen Hovlandsdal [schema] Allow problems from external schema creators to flow through (#1140) a946f2e86
Espen Hovlandsdal [cli] Replace tty-table dependency with simple list (#1141) ac9e691a3
sanity -

Published by bjoerge almost 6 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

🐛 Notable bugfixes

This is a maintenance release that fixes various issues introduced in in the previous release

📓 Full changelog

Author Message Commit
Kristoffer J. Sivertsen [all] Fix/fullscreen block editor pane issue (#1121) a4f76e489
Kristoffer J. Sivertsen [components] Fix confirm dialog and props on default (#1127) 31a760541
Marius Lundgård [form-builder] Update reference search cap (#1124) de40cedcc
Espen Hovlandsdal [default-layout] Only show version status to administrators (#1126) e2438e44e
Espen Hovlandsdal [schema] Improve schema validation for block type (#1125) a2e193abf
Bjørge Næss [form-builder] Clear timeout on cwu (#1128) e59929760
Per-Kristian Nordnes [form-builder] Upgrade Slate packages (#1133) 14db32b66
Kristoffer J. Sivertsen [components] Remove story that uses fuse (#1123) 6591e2dce
Per-Kristian Nordnes [form-builder] Block editor: tweak ScrollAbsoluteTopBottomPlugin (#1130) 79ac38e99
Per-Kristian Nordnes [form-builder] Fix block editor patching issues (#1134) 481b2f983
Per-Kristian Nordnes [mutator] Fix bug where incoming mutations where never applied when rebase flag was set (#1131) 2568960cb
Bjørge Næss [desk-tool] Improve error message display (#1129) 454b41187
sanity - v0.139.0

Published by bjoerge almost 6 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Realtime and customizable editor for Portable Text

The editor for Portable Text now supports real-time collaborative editing. Changes will be sent as small patches like everything else in the Sanity Studio. It is now also possible to customize the editor with your own styles, decorators and annotations,
and make your own toolbar buttons and previews for it. It also features better paste handling, block markers and actions.

Better tools for Portable Text

@sanity/block-tools have been updated to do a better job at converting HTML into portable text (blocks).
There are some breaking changes in this (mostly internal) package, so if you are using this module externally, have a look at the readme/changelog there.

🐛 Notable bugfixes

  • Running the sanity command on Node v6 or earlier now gives a meaningful error instead of crashing
  • Code input plugin now correctly registers its schema type once installed

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [block-tools] Maintainance, deserialization enhancements (breaking, see changlog.md), tests 3d1eb3fe3
Per-Kristian Nordnes [form-builder] Remove old block editor folder 2a76099e5
Per-Kristian Nordnes [form-builder] New realtime based and customizable block editor 4a35a09dc
Kristoffer J. Sivertsen [form-builder] New block editor CSS 45cbb2ee1
Per-Kristian Nordnes [form-builder] Support diffMatchPatch and handle rebase events from BufferedDocument 1410a4e28
Per-Kristian Nordnes [form-builder] Part definitions and resolvement for the new block editor 7357f8cd4
Per-Kristian Nordnes [form-builder] Updated package.json and .babelrc for the new block editor d5346dce7
Kristoffer J. Sivertsen [base] Icons, part definitions CSS for the new block editor 4cbf4ea0a
Kristoffer J. Sivertsen [code-input] Various adjustment of code input 330c2a490
Kristoffer J. Sivertsen [components] Previews for the block editor 7b8bc1624
Per-Kristian Nordnes [validation] Validation for blocks 7f18a07c8
Per-Kristian Nordnes [schema] Tweak block schemas for the new block editor fa7a3461a
Per-Kristian Nordnes [test-studio] Update schema for new block editor aa85c7b80
Per-Kristian Nordnes [example-studio] Show customization example for block editor 8dcf7bae3
Per-Kristian Nordnes [chore] Set testURL for Jest to avoid issue with jsdom and localstorage bafb41075
Per-Kristian Nordnes [base] Mock 'part:@sanity/base/schema?' to pass test f812d4069
Per-Kristian Nordnes [default-layout] Upgrade is-hotkey to match other packages 67fd383ac
Per-Kristian Nordnes [form-builder] Block editor: fix scrollcontainer width issues (scroll-y: overlay) 258dd3a3b
Espen Hovlandsdal [cli] Use proxy entrypoint for CLI to give proper errors on node < 8 (#1118) 208f4bde3
Espen Hovlandsdal [code-input] Fix incorrect parts implemented (#1119) 534aaa8f1
sanity - v0.138.0

Published by bjoerge almost 6 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Node 8 required

In order to keep up with the Node ecosystem, we now require Node.js version 8 or higher in order to run the Sanity CLI. We will be updating the surrounding tooling to also require the same version over time. Node 6 has been out of active support from the Node.js foundation since the end of April this year, and upgrading from Node 6 is usually a drop-in replacement.

groq template literal package

You can now install and use the groq module in order to help identify GROQ-queries. When paired with editor extensions such as vscode-sanity, this allows for syntax highlighting of queries inside of JS-files. In the future, it might also do preprocessing of the queries, such as trimming unnecessary whitespace.

To use it, install it from npm:

npm install --save groq

And use it in your code:

import groq from 'groq'

const query = groq`*[_type == 'products'][0...10]`

Other features

  • Optimized list panes so they don't render or sync contents when collapsed
  • The reference select input now display correctly when in read-only mode

🐛 Notable bugfixes

  • Fixed a bug where in some cases (often deep nested panes) stretches the last pane outside the viewport when having long titles in the header

📓 Full changelog

Author Message Commit
Marius Lundgård Move search logic into parts (#1105) 87a49db4d
Kristoffer J. Sivertsen [components] Force pane max width to 100% (#1110) 26c07af24
Espen Hovlandsdal [groq] Add groq package for use with tagged template literals (#1109) 92d41c563
Espen Hovlandsdal [chore] Require node >= 8 for all packages (#1112) 863e23a32
Bjørge Næss [desk-tool] Render pane content only when expanded (#1115) b3991cfa1
Kristoffer J. Sivertsen [components] ReadOnly support for searchable-select (#1092) a41265ad1