{"bugs":{"url":"https://github.com/storybooks/storybook/issues"},"dist":{"shasum":"5ee16d98ee9f3436ddd97e513f7e53eb32695e59","tarball":"https://registry.npmjs.org/@storybook/addon-options/-/addon-options-5.0.0-debug.0.tgz","fileCount":11,"integrity":"sha512-qjt45MtoP+eGlPdQDQ7uxjRf5AmpxVarbiRHbZiGAFj6sEAoe5iKKL+NqWBPl0w8/8a/D1xPRATxS/4xNgsejw==","signatures":[{"sig":"MEUCIQCeEsAqZNqRmlppOUp+2xhDZKZAeSlfYIIG2Tln/owitwIgKypkhCdkNZwJyV2bXPb6CVHuho+Oyvh2vYL+qiPTTGA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcM2oBCRA9TVsSAnZWagAA39YP/1dfdgnPUFenI/xboRx3\nD6GivKq5ZggjIG5e9m3ondHs55T1yDT1fdtUirZiljmT0tfs9JQjYYKynFmk\n5H7slzxwTnfJ47PRt3VF/FcLunCiYL6SGtBlwmOeBROn5Jr+2CwmVtMa0HPO\n9oe0733dHui6Ipd5GQLLwn5fpcCRQTcOvDXv91B6Co1UhRTHK1RIIMi3j9QC\nGU33BMj8YgU08a+Z3bnh4uTKUG1gUlgJ0azdWikqW2ySTJod3DdE/uxUmFVl\nFzQ9jHbvPalL0NYTr/0Hw8YhL6yjGZ16H3/cDFO3sEFJKkjfHTlmGW2+wktk\nIK9RvAImpmQDJ7ODxq8ZgOr8AAxgfcRSlpANyIUNx0oJjamr0mDHxYMLCepB\n+H0hTHN2or7vuSlOdrXjo5Uq7lyVpJKcS6zKBfmyIDOCuD6xhiWgejfXlxBb\n6Xer/kfwN+5vR0b1lwLS2thVEkEVkr2R/vXcI5sI6c+8noGaF6LEPQFk0JER\n3QcETYb4R9AOpGXEvzTBWpayqzjgZJTfZgtP3IixctSVkQsstkM4AMhf3cdN\nLf7sTqLvFqdtxsFq5r8EyPrR1UT5O28GSpk/N13b9Wbm/ga0va9ywxtexuF7\nQEuQ+E8mrtcLTyELVKHR9+obDgR3NpUIIV2RHL5nVcpRYMxSzX7fVxNdGfYR\nRcLl\r\n=1Q71\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@storybook/addon-options","readme":"# Storybook Options Addon\n\nThe Options addon can be used to (re-)configure the [Storybook](https://storybook.js.org) UI at runtime.\n\n[Framework Support](https://github.com/storybooks/storybook/blob/master/ADDONS_SUPPORT.md)\n\n![Screenshot](docs/screenshot.png)\n\n## Getting Started\n\nFirst, install the addon\n\n```sh\nyarn add @storybook/addon-options --dev\n```\n\nAdd this line to your `addons.js` file (create this file inside your storybook config directory if needed).\n\n```js\nimport '@storybook/addon-options/register';\n```\n\n###Set options globally\n\nImport and use the `addParameters` + `options`-key in your `config.js` file.\n\n```js\nimport { addParameters, configure } from '@storybook/react';\n\n// Option defaults:\naddParameters({\n  options: {\n    /**\n     * name to display in the top left corner\n     * @type {String}\n     */\n    name: 'Storybook',\n    /**\n     * URL for name in top left corner to link to\n     * @type {String}\n     */\n    url: '#',\n    /**\n     * show story component as full screen\n     * @type {Boolean}\n     */\n    goFullScreen: false,\n    /**\n     * display panel that shows a list of stories\n     * @type {Boolean}\n     */\n    showStoriesPanel: true,\n    /**\n     * display panel that shows addon configurations\n     * @type {Boolean}\n     */\n    showAddonPanel: true,\n    /**\n     * display floating search box to search through stories\n     * @type {Boolean}\n     */\n    showSearchBox: false,\n    /**\n     * show addon panel as a vertical panel on the right\n     * @type {Boolean}\n     */\n    addonPanelInRight: false,\n    /**\n     * sorts stories\n     * @type {Boolean}\n     */\n    sortStoriesByKind: false,\n    /**\n     * regex for finding the hierarchy separator\n     * @example:\n     *   null - turn off hierarchy\n     *   /\\// - split by `/`\n     *   /\\./ - split by `.`\n     *   /\\/|\\./ - split by `/` or `.`\n     * @type {Regex}\n     */\n    hierarchySeparator: null,\n    /**\n     * regex for finding the hierarchy root separator\n     * @example:\n     *   null - turn off multiple hierarchy roots\n     *   /\\|/ - split by `|`\n     * @type {Regex}\n     */\n    hierarchyRootSeparator: null,\n    /**\n     * sidebar tree animations\n     * @type {Boolean}\n     */\n    sidebarAnimations: true,\n    /**\n     * id to select an addon panel\n     * @type {String}\n     */\n    selectedPanel: undefined, // The order of addons in the \"Addon panel\" is the same as you import them in 'addons.js'. The first panel will be opened by default as you run Storybook\n    /**\n     * enable/disable shortcuts\n     * @type {Boolean}\n     */\n    enableShortcuts: false, // true by default\n  },\n});\n\nconfigure(() => require('./stories'), module);\n```\n\n### Using per-story options\n\nThe options-addon accepts story parameters on the `options` key:\n\n```js\nimport { storiesOf } from '@storybook/react';\nimport MyComponent from './my-component';\n\nstoriesOf('Addons|Custom options', module)\n  // If you want to set the option for all stories in of this kind\n  .addParameters({ options: { addonPanelInRight: true } })\n  .add(\n    'Story for MyComponent',\n    () => <MyComponent />,\n    // If you want to set the options for a specific story\n    { options: { addonPanelInRight: false } }\n  );\n```\n\n## Typescript\n\nTo install type definitions: `yarn add @types/storybook__addon-options --dev`\n\nMake sure you also have the type definitions installed for the following libs:\n\n- node\n- react\n \nYou can install them using `yarn add @types/node @types/react --dev`, assuming you are using Typescript >2.0.\n","gitHead":"7cacf4b23fc7682e0891e8fd4a3983e8879f84c5","license":"MIT","scripts":{"prepare":"node ../../scripts/prepare.js"},"_npmUser":{"name":"shilman","email":"michael@lab80.co"},"homepage":"https://github.com/storybooks/storybook/tree/master/addons/options","keywords":["addon","storybook"],"repository":{"url":"git+https://github.com/storybooks/storybook.git","type":"git"},"_npmVersion":"lerna/3.8.4/node@v8.11.2+x64 (darwin)","description":"Options addon for storybook","directories":{},"maintainers":[{"name":"alexandrebodin","email":"bodin.alex@gmail.com"},{"name":"danielduan","email":"dduan@yahoo.com"},{"name":"hypnosphi","email":"talpa@yandex.ru"},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"ndelangen","email":"ndelangen@me.com"},{"name":"pksunkara","email":"pavan.sss1991@gmail.com"},{"name":"shilman","email":"michael@lab80.co"},{"name":"tmeasday","email":"tom@thesnail.org"},{"name":"usulpro","email":"regx@usul.su"}],"_nodeVersion":"8.11.2","dependencies":{"core-js":"^2.6.1","util-deprecate":"^1.0.2","@storybook/addons":"5.0.0-debug.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/addon-options_5.0.0-debug.0_1546873344939_0.04615585992586002","host":"s3://npm-registry-packages"},"_id":"@storybook/addon-options@5.0.0-debug.0","version":"5.0.0-debug.0"}