{"bugs":{"url":"https://github.com/storybooks/storybook/issues"},"dist":{"shasum":"29575e603d3879ed8981e46cde272efca768ceae","tarball":"https://registry.npmjs.org/@storybook/addon-options/-/addon-options-3.4.0-rc.2.tgz","fileCount":16,"integrity":"sha512-VsVoXPHQvqDYbQGvZJqutmGsC4wZSq3vqfNTb0bkcUQci2CbCbTxNQcVtXiJDWtQoUJPZLp1CQN2GKwW4MuBMw==","signatures":[{"sig":"MEUCIBL+xwGVZRzPhFPRbmZi8ZRylCRt4sHVQ5tVyO4YCObhAiEAlSB95S7SjD5tv7nVy/eXSqX8egsQWsaD83DdO/pfWnU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":122192},"main":"preview.js","name":"@storybook/addon-options","readme":"# Storybook Options Addon\n\n[![Build Status on CircleCI](https://circleci.com/gh/storybooks/storybook.svg?style=shield)](https://circleci.com/gh/storybooks/storybook)\n[![CodeFactor](https://www.codefactor.io/repository/github/storybooks/storybook/badge)](https://www.codefactor.io/repository/github/storybooks/storybook)\n[![Known Vulnerabilities](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847/badge.svg)](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847)\n[![BCH compliance](https://bettercodehub.com/edge/badge/storybooks/storybook)](https://bettercodehub.com/results/storybooks/storybook) [![codecov](https://codecov.io/gh/storybooks/storybook/branch/master/graph/badge.svg)](https://codecov.io/gh/storybooks/storybook)  \n[![Storybook Slack](https://now-examples-slackin-rrirkqohko.now.sh/badge.svg)](https://now-examples-slackin-rrirkqohko.now.sh/)\n[![Backers on Open Collective](https://opencollective.com/storybook/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/storybook/sponsors/badge.svg)](#sponsors)\n\n* * *\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\nnpm install -D @storybook/addon-options\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\nImport and use the `setOptions` function in your config.js file.\n\n```js\nimport * as storybook from '@storybook/react';\nimport { setOptions } from '@storybook/addon-options';\n\n// Option defaults:\nsetOptions({\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 mulitple 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  selectedAddonPanel: 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\nstorybook.configure(() => require('./stories'), module);\n```\nIt is also possible to call `setOptions()` inside individual stories. Note that this will bring impact story render performance significantly.\n","license":"MIT","scripts":{"prepare":"node ../../scripts/prepare.js","storybook":"start-storybook -p 9001"},"_npmUser":{"name":"shilman","email":"michael@lab80.co"},"homepage":"https://github.com/storybooks/storybook/tree/master/addons/options","keywords":["storybook"],"repository":{"url":"git+https://github.com/storybooks/storybook.git","type":"git"},"_npmVersion":"5.1.0","description":"Options addon for storybook","directories":{},"maintainers":[{"name":"aaronmcadam","email":"aaron@aaronmcadam.com"},{"name":"alexandrebodin","email":"bodin.alex@gmail.com"},{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"danielduan","email":"dduan@yahoo.com"},{"name":"hypnosphi","email":"talpa@yandex.ru"},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"mnmtanish","email":"mnmtanish@gmail.com"},{"name":"mthuret","email":"mlthutrix@gmail.com"},{"name":"ndelangen","email":"ndelangen@me.com"},{"name":"shilman","email":"michael@lab80.co"},{"name":"tvs","email":"teije-vs@hotmail.com"},{"name":"usulpro","email":"regx@usul.su"}],"_nodeVersion":"8.9.0","dependencies":{"babel-runtime":"^6.26.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@storybook/react":"3.4.0-rc.2"},"peerDependencies":{"react":"*","react-dom":"*","@storybook/addons":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/addon-options_3.4.0-rc.2_1520938798543_0.2764117126632153","host":"s3://npm-registry-packages"},"_id":"@storybook/addon-options@3.4.0-rc.2","version":"3.4.0-rc.2"}