Nurturing Pluto's Martians

    @sanity/data-aspects

    2.33.2 • Public • Published

    @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.:

    {
      "typeOptions": {
        "article": {
          "displayName": "Article",
          "itemDisplayField": "name"
        },
        "siteConfig": {
          "displayName": "Site configuration",
          "itemDisplayField": "title"
        }
      }
    }
    

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

    License

    MIT-licensed.

    Install

    npm i @sanity/data-aspects

    DownloadsWeekly Downloads

    38,755

    Version

    2.33.2

    License

    MIT

    Unpacked Size

    7.29 kB

    Total Files

    6

    Last publish

    Collaborators

    • josh_sanity_io
    • joneidejohnsen
    • nina.andal
    • rankers
    • snorreeb
    • mattcraig
    • vincentquigley
    • stipsan
    • michael-sanity
    • rubioz
    • tonina
    • ritasdias
    • simeonsanity
    • kmelve
    • bjoerge
    • rexxars
    • skogsmaskin
    • simenss
    • robinpyon
    • mariuslundgard
    • sanity-io
    • evenw
    • radhe_sanity
    • rbotten
    • vicbergquist
    • judofyr
    • obliadp
    • dcilke
    • fredcarlsen
    • jorn_georg
    • hermanw
    • svirs
    • mikolajsanity
    • sgulseth
    • atombender