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 - 0.144.3

Published by bjoerge almost 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 regression introduced in v0.144.0 that broke editing of a document that had an _id that included a dot character (.)
  • Fixed a bug that affected portable text fields: When switching between documents from the search bar (and with no document list panes open), the portable text editor would retain the value from the previous document.

📓 Full changelog

Author Message Commit
Bjørge Næss [desk-tool] Fix issue with path segments getting stripped out of from ids containing . (#1600) 850915055
Bjørge Næss [desk-tool] Wrap EditorPane and use document id as key to force reload (#1601) 03d6f3689
sanity - v0.144.2

Published by skogsmaskin almost 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Remove a part for the snackbar that doesn't exist or isn't used.

📓 Full changelog

Author Message Commit
Jason Bodman Update README to fix bullet in "Stay up to date" section (#1573) acfb8a99f
Victoria Bergquist [components] remove unused snackbar part (#1575) 82cecfb4b
sanity - v0.144.1

Published by skogsmaskin almost 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

This release contains fixes to improve UI, developer experience, documentation, and for Studio customization.

🐛 Notable bugfixes

  • Fixed an annoying portable text editor bug where the editor scrolled to top after re-acquiring focus.
  • Fixed a bug where the Create New Document Button in some circumstances would be missing when using Structure Builder.
  • Fixed a bug where DropDownButton not being closable when using button.

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [form-builder] Fix portable text editor scroll bug where the editor scrolled to top after acquiring focus. (#1562) 410846480
Per-Kristian Nordnes [desk-tool] Edit error header text (#1568) b28758cda
Knut Melvær Add installation instructions (#1566) ec6271bae
Espen Hovlandsdal [structure] Improve type inference from filters (#1570) d6893eca4
Espen Hovlandsdal [components] Fix DropDownButton not being closable with button (#1569) ef5eab0b2
sanity - v0.144.0

Published by rexxars almost 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Introducing: Initial Value Templates

export default {
  name: 'post',
  type: 'document',
  title: 'Blog post',
  initialValue: () => ({
    publishedAt: new Date().toISOString()
  }),
  fields: [
    // ... all the fields
  ]
}

With the newest version of Sanity Studio, you can now set initial values for all your document types. It’s a great way to save your editors time and effort spent on repetitive tasks.

  • Prefill fields with minimal configuration.
  • Fetch content from APIs for new documents.
  • Add multiple templates for quick document creation.

Read the blog post!

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [structure] Expose initial template building functions 16abeefe4
Espen Hovlandsdal [desk-tool] Pass loading message as props, making pane more reusable 5eec395d1
Espen Hovlandsdal [desk-tool] Remove unused props from withDocumentType HOC 7485d40c0
Espen Hovlandsdal [base] Expose initial values utilities 51ef96ca6
Kristoffer Sivertsen [components, desk-tool] CreateDocumentPreview and list 8ece00ea2
Kristoffer Sivertsen [default-layout] Use createDocument list on actionModal c1689588e
Kristoffer Sivertsen [desk-tool] LoadingPane to take title as prop f806ca7eb
Kristoffer Sivertsen [all] Initial values view cleanup 724a1fc31
Espen Hovlandsdal [initial-value-templates] Move initial value logic to separate module d63181fa0
Espen Hovlandsdal [default-layout] Use templates for global action modal ece7f380f
Kristoffer Sivertsen [initial-value] Minor visual tweaks 61ff6a0d2
Kristoffer Sivertsen [desk-tool] Mobile pane working on initial value cbdf23a0b
Kristoffer Sivertsen [initial-value-templates] Display correct names & visual fix e465f279b
Kristoffer Sivertsen [initial-value-templates] Add support for description d29fc3c20
Kristoffer Sivertsen [components] Fullscreen dialog tweaks a28e7a7a6
Espen Hovlandsdal [desk-tool] Fix itemIsSelection check not checking ID of selected item 7e59f499a
Espen Hovlandsdal [desk-tool] Center content of error pane c37b3ac73
Espen Hovlandsdal [initial-value-templates] Allow templates to specify parameters schema 6d5d4af86
Espen Hovlandsdal [structure] Make document list editor slightly more readable 0bf527b26
Espen Hovlandsdal [structure] Add initial value templates to editor spec c1c0c6149
Espen Hovlandsdal [structure] Simplify default editor for document type lists b9501cf3a
Espen Hovlandsdal [structure] Remove template() in favor of initialValueTemplates() a136f417b
Espen Hovlandsdal [desk-tool] Always pass urlParameters to pane 74c3ce960
Espen Hovlandsdal [structure] Introduce editorWithInitialValueTemplate(), initialValueTemplateById() a10c2d794
Espen Hovlandsdal [desk-tool] Only show initial value templates without parameters 078869b2b
Espen Hovlandsdal [test-studio] Add example of deep pane using initial value template 51c7e7605
Espen Hovlandsdal [structure] Update tests to reflect new editor behavior fdb8b9dc5
Espen Hovlandsdal [initial-value-templates] Use new JSON parameters for intents cb53716f3
Espen Hovlandsdal [initial-value-templates] Refactor to define templates on lists 78c10c428
Espen Hovlandsdal [storybook] Hack around build issues df44f63a0
Espen Hovlandsdal [desk-tool] Make "new document" button use initial value templates 4e99a5d00
Victoria Bergquist [desk-tool] Style broken references errors and warnings (#1525) a0599fa2a
Victoria Bergquist [components] style dropdown menu for templates 47d79fbea
Victoria Bergquist [initial-value-templates] fix template icons and refactor 08446117d
Espen Hovlandsdal [chore] Bring version numbers in line with next b9c5c1240
Victoria Bergquist [initial-values] add schema type icon fallback efa783eb1
Bjørge Næss [structure] Guard against possible undefined value 466503310
Espen Hovlandsdal [desk-tool] Prevent initial value re-render transition ce24303e8
Espen Hovlandsdal [desk-tool] Use observable pattern for withInitialValue 456b4c81a
Espen Hovlandsdal [base] Fix incorrect filename for initial value template builder 09c2f0f45
Espen Hovlandsdal [initial-value-templates] Remove templates for asset types f6853c9f2
Espen Hovlandsdal [default-layout] Add validation of new document structure items 7de166356
Espen Hovlandsdal [default-layout] Prefer template item title over template title 7f5c2d3b6
Espen Hovlandsdal [desk-tool] Provide fallback for missing urlParameters 835f1a83f
Espen Hovlandsdal [structure] Add setter/getters for template item descriptions 46e13ba7e
Espen Hovlandsdal [default-layout] Fix parameterized items not appearing in "new document" menu 85795f6e8
Espen Hovlandsdal [test-studio] Add new document structure fixture 5ca719116
Espen Hovlandsdal [initial-value-templates] Add validation for references, multidimensional arrays edd6f6384
Espen Hovlandsdal [chore] Rename initialValue property to initialValues 10c35c147
Espen Hovlandsdal [form-builder] Fix tsconfig causing output to root directory baf59908f
Espen Hovlandsdal [desk-tool] Fix "published"-snackbar disappearing immediately 1799c28f1
Espen Hovlandsdal [base] Add missing dependency d7c5ebb07
Espen Hovlandsdal [initial-value-templates] Fix type declaration for value property af3dbd2b8
Espen Hovlandsdal [initial-value-templates] Add validation for plural values mismatch b9398ffb3
Espen Hovlandsdal [all] Revert to singular initialValue 600d5247e
Espen Hovlandsdal [schema] Fix wording for initial value validation 9fad225b4
Espen Hovlandsdal [mutator] Add type definitions for diff-match-patch (#1561) aa8f70eb2
sanity - v0.142.10

Published by skogsmaskin almost 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade Sanity Studio by running this command in your project folder:

sanity upgrade

✨ Highlights

This reverts a change introduced in the previous release which could potentially make some custom branded studio's logos take up too much space.

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes Revert "[default-layout] fix brand logo sizing (#1544)" 0abb61043
sanity - v0.142.9

Published by skogsmaskin almost 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade Sanity Studio by running this command in your project folder:

sanity upgrade

✨ Highlights

This release contains a bunch of small fixes to improve UI, developer experience, documentation, and for Studio customization.

Thanks to @boyum and @fishintaiwan for their community contributions!

📓 Full changelog

Author Message Commit
Victoria Bergquist Add a Pull Request Template ea35a777d
Espen Hovlandsdal [schema] Provide fallback for preview select if none is given (#1310) 0d388921d
Victoria Bergquist [components] fix icon alignment issues in menu items (#1526) 989bba46e
Espen Hovlandsdal [test-studio] Add mux input for easier testing 8cc098443
fishintaiwan [code input] Readme: Fix typo, add withFilename option (#1529) 381bfcbac
Victoria Bergquist [cli] Add spinner for dataset creation (#1531) b8c0e63a9
Kristoffer J. Sivertsen [code-input] Add support for GROQ (#1533) bfbf9eed7
Victoria Bergquist [cli] install vision in CLI templates by default in dev (#1532) 03112ba70
Espen Hovlandsdal [chore] Gulp: Only recompile changed files (#1541) 57ae0fc0b
Espen Hovlandsdal [validation] Fix "unable to resolve type" for array items (#1540) 37146badc
Kristoffer J. Sivertsen [code-input] Fixes a regex issue making safari catch error (#1545) 1bd4d7d73
Jørn Knutsen Update README.md 69af6daa2
Jørn Knutsen Update README.md d3f775215
Sindre Bøyum Fix typos in md files (#1551) c697823d9
Marius Lundgård [form-builder] Adjust styling of lists in block editor (#1421) df89129ea
Kristoffer J. Sivertsen [code-input] Support groq and fallback in preview (#1556) 42d4544c1
Victoria Bergquist [default-layout] fix status styling and sizing (#1554) d81561d7a
Victoria Bergquist [default-layout] fix brand logo sizing (#1544) 60c6b1046
Bjørge Næss [chore] Hide verbose gulp output behind env flag (#1539) e882e7285
Per-Kristian Nordnes Normalize decorators (#1553) 3c2231e07
Victoria Bergquist [components] add dev server status snackbar (#1543) ae3cf262b
Per-Kristian Nordnes [block-tools] Deserialize text nodes directly on the body better (#1560) 57ed1f101
Per-Kristian Nordnes [form-builder] Fix ts lint errors 28ca25c33
Victoria Bergquist [cli] Add default dataset config (#1530) 44617d26d
sanity - v0.142.8

Published by skogsmaskin about 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 paste bug regression in the editor for portable text 🐞
  • Fixed two bugs with HTML to portable text deserializaion (keep space between two links and an error that was thrown in some circumstances) 🐛

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [form-builder] Block editor: fix paste controller bug (#1548) b6e99b8d8
Per-Kristian Nordnes Fix serialization issues (#1549) b534a90dd
Per-Kristian Nordnes [form-builder] Block editor: ensure placeholder status is removed when pasting fragment (#1552) 18f3027f9
Alex Patterson [block-tools] Fix bug with block breakout in nested structs 71d8bddb2
sanity - v0.142.7

Published by skogsmaskin about 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Output better error message in the CLI when session is invalid and you have to log in again.
  • Fixed a bug where nested portable text editors would error if pasting into it, or inserting a custom object, when being empty.

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [cli] Output a meaningful error message when the user login session is expired (#1522) 7d7a268ef
Per-Kristian Nordnes [form-builder] Fix invalid unset patch (#1515) a976ded19
sanity - v0.142.6

Published by bjoerge about 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Flow => TypeScript

Although this should not be noticable for end users yet, we have now converted all the packages that were using Flow to use TypeScript instead. Check out our blog post for more details.

GraphQL schema fixes

Two long-standing bugs in the GraphQL schema generating code has now been fixed: circular references in types should no longer give stack overflow errors, and subtyped scalars should now work as expected. Huge thanks to Richard Sewell for taking the time to look at these!

Other features

  • Added the getDocuments() method to @sanity/client for fetching multiple documents in one go. Note: this method should be used sparingly and performing a GROQ query is usually a better option.

🐛 Notable bugfixes

  • Inform users about sanity.io/create when running sanity init
  • Fixed a bug where slugs would always be required after writing it once and then deleted it
  • Fixed history pane background color for better Studio customization experience
  • Fixed a bug where adding geopoints to arrays through @sanity/google-maps-input would break
  • Fixed a bug where drag-and-drop of files to an array would crash
  • Fixed a bug where changing the crop area of an image would crash when not first setting a hotspot
  • Fixed a bug where any configured accept parameter would not be passed down to the underlying input. Also changed the default accepted file types for images to image/*, which should provide a more user-friendly way to select images

📓 Full changelog

Author Message Commit
Bjørge Næss [chore] Upgrade dev tooling (babel + eslint, etc) 85c855335
Bjørge Næss [chore] Upgrade lerna d49c1df83
Bjørge Næss [chore] Upgrade prettier 3e20541e7
Bjørge Næss [chore] Upgrade TypeScript + misc gulp pkgs 3971b2403
Bjørge Næss [chore] Remove Flow config and cruft d51b12933
Bjørge Næss [chore] Add TypeScript specific eslint config a1f2731d2
Bjørge Næss [chore] Tweak TypeScript config and gulpfile b6d959005
Bjørge Næss [chore] Harmonize config between existing TypeScript projects bb96416b9
Bjørge Næss [state-router] Migrate from Flow to TypeScript 76b5bd110
Bjørge Næss [block-tools] Migrate from Flow to TypeScript 66d78f4da
Bjørge Næss [schema] Migrate from Flow to TypeScript a4d6d7297
Bjørge Næss [util] Migrate from Flow to TypeScript c8339820c
Bjørge Næss [mutator] Migrate from Flow to TypeScript ca5047e20
Bjørge Næss [components] Remove Flow annotations 5e1d5b0fb
Bjørge Næss [preview] Migrate from Flow to TypeScript 15a70d92f
Bjørge Næss [form-builder] Migrate from Flow to TypeScript 4d1577905
Espen Hovlandsdal [google-maps-input] Merge value with defaults before setting lat/lng (#1500) 3a1fe1477
Richard Sewell [core] fix API generation fails if schema has self-referencing types (#1497) 6e6122f16
Richard Sewell [core] Fix subtyped scalars used in array definitions (#1496) ebf3744a4
Victoria Bergquist [cli] inform about /create when init new project (#1490) a8afc599b
Per-Kristian Nordnes [test-studio] Make test with custom markers (#1505) 8fb44d961
Victoria Bergquist [validation] fix slug always required after being set once 5d96c9faf
Bjørge Næss [client] Add client.getDocuments (#1507) e33c44ba2
Bjørge Næss [base] Use doc endpoint when fetching documents for editing (#1508) 44a18f457
Espen Hovlandsdal [form-builder] Make asset upload options optional (#1512) e6c7a9628
Espen Hovlandsdal [imagetool] When limiting, use default crop if none specified (#1514) 8ff80d096
Espen Hovlandsdal [test-studio] Add nested two-column blocks test case 0ca4de2cb
Victoria Bergquist [desk-tool] fix history pane background (#1499) 0dcd72420
Per-Kristian Nordnes [form-builder] Block editor: fix design regressions from #1492 (#1516) 6a8d1c44a
Espen Hovlandsdal [form-builder] Pass accepted mime types to input (#1517) 551a2083c
Bjørge Næss [chore] Add postcss config for typescript-plugin-css-modules 7ea7af5f0
sanity - v0.142.5

Published by bjoerge about 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 various issues with the Portable Text editor (#1486, #1480, #1481, #1479, #1489)
  • Improved image browsing experience with a checkered background to indicate image transparency (#1488)
  • Made videos in dashboard open in new tabs (#1476)

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [form-builder] Block editor: fix bug with dealing with placeholder onPaste (#1486) 9b8402fa4
Per-Kristian Nordnes [form-builder] Block editor: avoid toolbar making drag and scroll up not function (#1480) 2603b33bf
Per-Kristian Nordnes [form-builder] Block editor: fix decorator horiz. padding that is confusing in regard to whitespace (#1481) 7c23f2617
Per-Kristian Nordnes [form-builder] Block editor: fix issues with drag/drop of blocks (#1479) 7d32a22ac
Per-Kristian Nordnes [form-builder] Block editor: send setIfMissing patch before trying to do a insert (#1489) 176913c31
Bjørge Næss [chore] Add built cli to eslintignore daac61661
Victoria Bergquist [dashboard] open video links in new tab (#1476) 7ea342275
Victoria Bergquist [form-builder] add checkered background for assets #1487 (#1488) db9d1e921
Bjørge Næss [export] Fix documentation re:exported file format dd354f45b
Bjørge Næss [chore] Add rebuild script 633dc6efb
Bjørge Næss [chore] Run lerna bootstrap on postinstall d35ee912a
sanity - v0.142.4

Published by bjoerge about 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

Deprecating support for React < 16.8

Today the minimum version of React required by the Content Studio is 16.3. This means the developer team at Sanity must be careful about using new features introduced in React after v16.3.

The most notable thing we're missing is the ability to use React Hooks. So today we're deprecating versions prior to React 16.8, and soon we will start ship new versions of the sanity studio that relies on features introduced after 16.3 up to and including 16.8.

If you are using an old version of React in your studio, you will now see a deprecation warning telling you to upgrade the versions of react and react-dom. You can read more about upgrading the packages required by the Sanity studio here

Note: This should not cause any trouble as there's no breaking changes between React 16.3 and 16.8, but if you run into any problems, please drop by our community slack and let us know.

📓 Full changelog

Author Message Commit
Bjørge Næss [core] Deprecate react < 16.8 (#1474) 09decba02
sanity - v0.142.3

Published by bjoerge about 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

🐛 Bugfixes and improvements

  • Fixed a bug in the editor for Portable Text where span text containing an annotation would not be patched correctly (#1465).
  • Fixed a bug in the editor for Portable Text where custom block objects containing the key .children under some circumstances would not be patched correctly (#1468).
  • Previously, if a custom input didn't have a (React) ref, the studio would crash and display an error message. Since it's a lot more common now to create function components in React and function components can't be given refs, we made sure to display a warning pointing at the problem and the actual input instead of failing. More details can be found in our help article (#1467).
  • Fixed a bug in history view, where signed out SSO users would cause the studio to crash (#1469).
  • When there is only one available tool (for example the desk-tool by default) we no longer show the tool switcher (#1458).
  • If you add your studio URL to the list of allowed CORS origins but forget to check for Allow credentials, you will now get a more helpful warning (#1431).
  • Improved the way available updates to the Studio are displayed (#1472)

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [form-builder] Various Portable Text Editor fixes (#1465) e4dbc68c6
Bjørge Næss [structure] Add type assertion d39fdbc57
Per-Kristian Nordnes [form-builder] Block editor: Fix bug where inline texts was not patches correctly (#1468) 913a2f922
Bjørge Næss [form-builder] Gracefully handle missing input refs (#1467) ddb47a9f3
Per-Kristian Nordnes [components] Guard against null users in HistoryListItem (#1469) f9523faf0
Kristoffer J. Sivertsen [default-layoyt] Hide toolswitcher when no choices (#1458) abe0d2623
Even Westvang [desk-tool] Remind about credentials when adding CORS origin (#1431) 29b2db206
Per-Kristian Nordnes [form-builder] Various Portable Text Editor fixes (#1473) 90c301f18
Marius Lundgård [default-layout] Fix navbar for storybook 2eabb7954
Victoria Bergquist [default-layout] improve studio module update indicator (#1472) c8647ffd6
sanity - v0.142.2

Published by rexxars about 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Increased timeouts for snackbars (#1457)
  • Fixed an issue where sanity init would crash when choosing to import sample data for a new project (#1459)
  • Fixed an issue causing a studio error when a sanity studio was in a subfolder in a create-react-app project – big thanks to @scottandrews98 for helping us investigate the issue! (#1462, #1463)
  • Fixed an issue that caused an error when editing portable text inside an array or when the first field of a document was a block array (#1464)
  • Fixed link color in selected history view item (#1429)
  • Made the root container use the base font-family for easier Studio customization (#1460)

📓 Full changelog

Author Message Commit
Victoria Bergquist [components] fix errors disappearing too fast (#1457) 566470998
Bjørge Næss [chore] Remove the backstop test folder as well 6f7a79109
Bjørge Næss [components] Make sure color hashing doesn't fail on non-transpiled var() css properties (#1462) 24728f86f
Espen Hovlandsdal [cli] Fix coreCommands not being available after project init (#1459) 174b2fb3e
Bjørge Næss [server] Force transpiling of customProperties/css-variables syntax (#1463) 60da08aa9
Bjørge Næss [form-builder] Wrap BlockEditor in forwardRef (#1464) aff5e5c4d
Victoria Bergquist [components] fix link color in selected item (#1429) (#1461) 0938d45bb
Victoria Bergquist [base] use base font-family as default (#1460) 39f6793db
sanity - v0.142.1

Published by rexxars about 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Safari login improvements

We've had several people report issues with logging in to the Sanity studio using Safari. This release contains a fix that should resolve this issue.

CLI: Multi-document delete

You can now delete multiple documents at once with sanity documents delete. Just pass a list of document IDs to delete:

sanity documents delete doc1 doc2 doc3

🐛 Notable bugfixes

  • Fixed a bug where restoring an old version would lose the content of array fields

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes Update cookie test view (#1448) e9fad686d
Espen Hovlandsdal [form-builder] Add error boundary around portable text editor (#1450) 6b6860ef3
Espen Hovlandsdal [base] Fix array items being nulled when restoring historic documents (#1449) 3daba5234
Espen Hovlandsdal [core] Allow specifying multiple document IDs to delete (#1415) 6bce3811d
sanity - v0.142.0

Published by bjoerge about 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

New notification snackbars! 🍫

This release introduces new stackable notification “snackbars” that stacks, are closable, can have actions in them, and can be used by plugin authors with lots of configuration options (custom icons, etc.).

GIF demoing the snackbars

React Hooks support 🎣

The content studio now works with custom components and plugins that's using React hooks.

Note: In order to use React hooks with your Sanity Studio, make sure to upgrade react and react-dom in your studio to version 16.8 (or later). Read more about how to upgrade React in your studio here.

🐛 Notable bugfixes and optimizations

  • Slugs inside of arrays can't be automatically checked for uniqueness. Previously, they triggered a number of requests when the document changed content, without actually performing a valid check. Users are now required to provide their own isUnique check should they want to ensure uniqueness.
  • Fixed a bug that would cause an error when restoring old versions of a document that has references to now deleted documents. If you restore a version that has a reference to a nonexisting document, that reference field will now be removed upon restore.
  • Missing avatar does not break mobile view.
  • Optimized studio list views which now should load significantly faster.

📓 Full changelog

Author Message Commit
Kristoffer J. Sivertsen [form-builder] Icons in blockeditor (#1416) 5d1a90b39
Marius Lundgård [storybook] Adjust base styles 82f3b1835
Thomas Drevon [client] Fix typo opereration --> operation e004b0697
Bjørge Næss [base] Optimize and move collate function to draft-utils (#1422) 4bf926e02
Bjørge Næss [desk-tool] Fix typo/potential listener leak 3470bd485
Bjørge Næss [base] Move listenQuery 9a1879cc9
Bjørge Næss [base] Remove reference to nonexistent document upon restore to previous revision (#1423) 921e9544a
Kristoffer J. Sivertsen [default-layout] Prettier styling of broken avatar image (#1419) ef9443cf0
Kristoffer J. Sivertsen [desk-tool] Mobile full width publish button (#1417) 9e613da1b
Kristoffer J. Sivertsen [desk-tool] Publish badge in document list (#1407) 0de35e290
Kristoffer Sivertsen [desk-tool] Autoprefixer changes 5f94f5405
Kristoffer Sivertsen [desk-tool] Minor bug fix to editor bef69dc47
Kristoffer J. Sivertsen [desk-tool] Moving spinners to staticContent (#1424) b55701fd0
Victoria Bergquist [components] Add new snackbars (#1426) 8464b68bb
Bjørge Næss Bump the React version required by Sanity Studio to v16.3 (#1433) 352e9cbf3
Espen Hovlandsdal [validation] Disable uniqueness check for fields in arrays (#1434) c83964f83
Bjørge Næss [server] Upgrade React Hot Loader (#1435) b18b10363
Bjørge Næss [test-studio] Add example of custom input that uses hooks 77cd20af9
Espen Hovlandsdal [server] Only alias react-dom in development (#1436) add49d7e4
Bjørge Næss [chore] Run rename-unsafe-lifecycles codemod on all source files (#1439) baef47cc3
Victoria Bergquist Fix issues with the snacker (#1440) f285758a8
Kristoffer J. Sivertsen [components] NoResultText causing scrollbars (#1442) fe5cee44b
Bjørge Næss [chore] Remove visual regression testing for now (#1443) 23f4e089d
Victoria Bergquist [base] make base font size overrideable (#1441) 0ed5f9fbf
sanity - v0.141.6

Published by skogsmaskin over 5 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

in the studio folder.

✨ Highlights

Invite collaborators from the command line

You can now use the Sanity CLI tool to invite people to your project. From your studio folder, run sanity users invite and you'll be prompted for the email and role of the user. You can also use flags (--role) if you want to automate it.

In addition, you can list the members of a project by running sanity users list. You'll get the user IDs, names and roles of all users in the project.

In a future release, we'll be sure to add more commands, such as removing a user from the project, or modifying their role.

🐛 Notable bugfixes

  • Fixed a bug where unloading previews in the editor for Portable Text led to side effects and jumping.
  • Fixed a bug in the editor for Portable Text where focus was not restored when toggling fullscreen mode.

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [core] Add CLI commands for listing and inviting users (#1408) e31055b48
Per-Kristian Nordnes [preview] Don't toggle visiblity for 'inline' and 'block' previews (#1411) 196087962
Per-Kristian Nordnes [form-builder] Block editor: fix focus bug (#1412) 75f32edd3
sanity - v0.141.5

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

🐛 Notable bugfixes

  • Fixed a bug where one could not restore to a previous published version when document history was truncated
  • Fixed a bug which would occasionally cause the Studio build to fail

✨ Enhancements

  • UX improvements to the newly released history

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [transaction-collator] Bugfixes (#1395) c8df3d212
Kristoffer Sivertsen [components] Remove unused part 1f36f1ae2
Per-Kristian Nordnes [transaction-collator] Bugfixes (#1397) 5d6bcbdbd
Thomas Drevon [test-studio] Add hotspot to book cover image 8dccda923
Espen Hovlandsdal [chore] Upgrade tap/jest/babel/gulp setup to latest versions (#1391) 0332b2291
Espen Hovlandsdal [chore] Set concurrency of test-all to 2, avoiding timeouts adba5417f
Espen Hovlandsdal [chore] Fix javascript not being rebuilt after first change d42f36e79
Kristoffer Sivertsen [base] Correct version on check and plugin-loader 77de1b4db
Espen Hovlandsdal [chore] Fix typescript watch task (#1403) a7620454f
Per-Kristian Nordnes History view: make it possible to restore from truncated history (#1404) b0b7f16d1
Kristoffer J. Sivertsen [all] History UI fixes (#1402) 1765192e0
Espen Hovlandsdal [base] Prevent studio from crashing if projectId/dataset is missing 16228b5e2
Espen Hovlandsdal [default-login] Fix incorrect proptype declaration 33d5e586c
Espen Hovlandsdal [base] Check for missing projectId/dataset on startup d02b2f651
sanity - v0.141.2

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

This release fixes a regression introduced in the previous release that accidentally removed the ability to to delete a draft

📓 Full changelog

Author Message Commit
Bjørge Næss [desk-tool] Bring back ability to delete a draft (#1393) c1499707a
sanity - v0.141.1

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

Introducing History Experience

We are very pleased to announce that we just released the document history experience for the Sanity Studio, as well as a new API for querying document revisions.

You can now browse document revisions, as well as the ability to restore earlier versions. Document history also shows who contributed to what edits – a semi-huge improvement to collaborative workflows.

Standard plans have 3 days of history while advanced plans come with 90.

Check out our blog post to learn more.

📓 Full changelog

Author Message Commit
Bjørge Næss [base] Fix unexpected first event "mutation" error (#1366) dc3717c3b
Kristoffer Sivertsen [form-builder] Fix toolbar overflow shadow and z-index 5cdf0d8b3
Per-Kristian Nordnes New package [transaction-collator] (#1385) a3a318105
Kristoffer J. Sivertsen [form-builder] Slug to support readOnly mode (#1389) d701c9f67
Per-Kristian Nordnes [form-builder] Block editor: make editor controlled component in readOnly mode (#1390) 6bcda40ff
Per-Kristian Nordnes [base] New history store d0501c7e0
Kristoffer Sivertsen [base] Expose getUsers in userStore 36b73d10f
Kristoffer Sivertsen [base] History icon 110c4e5a7
Kristoffer Sivertsen [base] State color variations a9f301ac1
Kristoffer Sivertsen [components] Merge presence component from presence-styling branch 2c019457d
Kristoffer Sivertsen [components] Add badge component 9dbbdcd84
Kristoffer Sivertsen [components] Add history components e2ef09163
Kristoffer Sivertsen [components] Use global var for pane height 0644711b9
Kristoffer Sivertsen [components] Add warning color to buttons ea947ca07
Kristoffer Sivertsen [components] Support onHide callback fn prop in snackbar 95564dd7e
Bjørge Næss [desk-tool] Refactor timeAgo component 6e9a391e1
Kristoffer Sivertsen [desk-tool] Add history components 8e963d3bb
Kristoffer Sivertsen [desk-tool] Add Status badge component e02ec595c
Bjørge Næss [desk-tool] Add Delay util. component 5fa604443
Kristoffer Sivertsen [desk-tool] Tweak discard and unpublish confirmation components 53b4c928f
Per-Kristian Nordnes [desk-tool] Refactor editor to support history mode 75ac30f7f
Bjørge Næss [desk-tool] Handle focus path f5469823c
Kristoffer Sivertsen [desk-tool] Add history components 4729c9c0a
sanity - v0.140.38

Published by rexxars over 5 years ago

Upgrade the Content Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fix export failing on certain files due to a missing MD5 header
  • Fix reference input showing "Type to search" on empy fields in read-only mode

📓 Full changelog

Author Message Commit
Bjørge Næss [form-builder] Reference input: Don't show placeholder when input is readOnly (#1381) a2facaeff
Espen Hovlandsdal [export] Check for remote hash before attempting to compare against it (#1383) d093987f7
Espen Hovlandsdal [form-builder] Cancel requestAnimationFrame on unmount (#1382) c463205a5