Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/data-aspects

Package Overview
Dependencies
Maintainers
6
Versions
700
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/data-aspects

Sanity plugin which controls how your data is presented

  • 0.101.10-next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.5K
decreased by-52.86%
Maintainers
6
Weekly downloads
 
Created
Source

@sanity/data-aspects

Sanity plugin which controls how your data is presented.

HOWEVER

We'll re-design how control of data presentation is handed over to a sanity studio maintainer. Hang on for snake tornado.

Usage

Ensure you have data-aspects as a plugin in you Sanity installation. Either:

The config file config/@sanity/data-aspects.json lets you control how your data is listed , e.g.:

{
  "hiddenTypes": [
    "nameOfTypeToExcludeFromView"
  ],
  "typeOptions": {
    "article": {
      "displayName": "Article",
      "itemDisplayField": "name"
    },
    "siteConfig": {
      "displayName": "Site configuration",
      "itemDisplayField": "title"
    }
  }
}

Refer to https://github.com/sanity-io/desk-tool/blob/master/src/SchemaPaneResolver.js for an example on how the DataAspectsResolver can be used.

License

MIT-licensed.

Keywords

FAQs

Package last updated on 16 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc