open-index/open-npm huggingface dataset:
npm package: @sanity/storybook-only
Description: Make Sanity only show Storybook. Useful for certain plugin demos.
Author: Sanity.io
Latest version: 0.99.5

# storybook-only

Make Sanity only show Storybook. Useful for certain plugin demos.

## Installing

`sanity install @sanity/storybook-only`

## License

MIT-licensed. See LICENSE.
npm package: @sanity/studio-secrets
Description: React hooks and UI for reading and managing secrets in a Sanity Studio. This is a good pattern for keeping configuration secret. Instead of using environment variables which would be bundled with the Studio source (it is an SPA), we store secret informati
Author: Sanity.io
Latest version: 4.0.2

# @sanity/studio-secrets

React hooks and UI for reading and managing secrets in a Sanity Studio. This is a good pattern for keeping configuration secret. Instead of using environment variables which would be bundled with the Studio source (it is an SPA), we store secret information in a document in the dataset. This document will not be readable to externals even in a public dataset. With custom access controls you can also specify which users can read the configuration in your Studio.

## Caveat

This plugin stores secrets as fields on a document in your dataset.
Even though that document is not accessible without having the correct permissions
(logged in user with read access) it will be included in any export you may do of your dataset and this is important to be aware of.

## Future deprecation

When native server-side secrets handling is available on the Sanity platform this plugin will be deprecated and a migration path will be provided.

## Installation

```
npm install --save @sanity/studio-secrets
```

or

```
yarn add @sanity/studio-secrets
```

## Usage

Quick example of both using the secrets and putting up a dialog to let user enter them.

```javascript
import {useEffect, useState} from 'react'
import {useSecrets, SettingsView} from '@sanity/studio-secrets'

const namespace = 'myPlugin'

const pluginConfigKeys = [
  {
    key: 'apiKey',
    title: 'Your secret API key',
  },
]

const MyComponent = () => {
  const {secrets} = useSecrets(namespace)
  const [showSettings, setShowSettings] = useState(false)

  useEffect(() => {
    if (!secrets) {
      setShowSettings(true)
    }
  }, [secrets])

  if (!showSettings) {
    return null
  }
  return (
    <SettingsView
      title={'My Plugin Settings'}
      namespace={namespace}
      keys={pluginConfigKeys}
      onClose={() => {
        setShowSettings(false)
      }}
    />
  )
}
```

## License

MIT-licensed. See LICENSE.
npm package: @sanity/styled-components
Description: A fork of styled-components that supports concurrent rendering
Author: Sanity.io
Latest version: 6.1.24

# @sanity/styled-components

# ⚠️ Performance-focused styled-components forks

> **Important**: [Sanity](https://www.sanity.io) is not actively maintaining these packages long-term. We're transitioning away from CSS-in-JS solutions to [vanilla-extract](https://vanilla-extract.style/). These forks exist to help the community during the transition period after styled-components [ceased active maintenance](https://opencollective.com/styled-components/updates/thank-you).

[See the README for more information.](https://github.com/sanity-io/styled-components-last-resort#readme)