{"bugs":{"url":"https://github.com/storybooks/storybook/issues"},"dist":{"shasum":"f4407d3ebc9d813422906be1e97137dfe733c8bf","tarball":"https://registry.npmjs.org/@storybook/addon-options/-/addon-options-5.0.0-debug.2.tgz","fileCount":11,"integrity":"sha512-PVnVtGvjilk9WGOmnfMLlLgpdK3cAsCAmxXgxW8EWYpiHhVQj/V/bNCLe5Kka8NQYBSJnUkbYxA1Dv9ujDyw7Q==","signatures":[{"sig":"MEUCIGIJNovuiZpJuRSZBNgg7+3eJcaze7cMcGAQgqskSzI5AiEAwRLCsyJiaNcCZbRlW7v9GrqYrLouSfk4p5l2hmtZzGQ=","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\nwsFcBAEBCAAQBQJcOXsVCRA9TVsSAnZWagAAzGQQAKO711yTpckEn21qI/bK\nPHlcHfdeY5Tluvp8wgpCnutj40Vz7bBV5WHF4Xi0EM9ocZYqptvXP3TJZ1vc\nE25uZrdwvdPLaLuyRHagdjpCYSkfOGihKlt2ScNRnk57Dl65pTQTFfY2uplT\nBuXIuhscUHZYHVZQ+99IEo0bWii/msiFDImykKYYkX6vGaUEpLl89w0hNnZQ\nGVfD59bmDXwH36FCVjBwY4khbGVxaJbOGDrFiDMjLIkXAQqjE87fG+hoO4ir\n58+r9LNJPwu7/tGYFfMWjzfjPmBOn4zDWs+h7USH/EiNHwKTfyXyFuyAIVuh\noQnnSR6vVJxzCmfCeDAHY2ltPWD/jdSijnoa4dg+oSt0n+0LYqYnaGa3Tzr8\noY9r2bWU1Nptt/g0Lx0RDU7dvv7Jqw5cf+UV/qibh7G6FJdQB0ObH7EZ+qW4\n9EnNDWIOJCVv4phwjYDniE4cYc/PQLTmZVv9u+W0QN6Dqn3PzFXFLgkjkwF1\nP253hHj8kPeRO2hI6H1x62eUZg6diEFH+JoWAHMuBccaVMolEurqhnxTDxAp\nFKALEY+GgFINpqJgvVqPB5rwhnaZaNqrXqP5A0EDj6vba+dWFEUO57YdiYFy\naJJhtZm/ziPediUC/qPz+U2s3hPV2C0Z/UrjoO1rn2f54cXX1oY6+A7nOOOJ\nPRXJ\r\n=GFoW\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":"7d7fcb32d55969d68fec225832168c354f6716e0","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.5/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.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/addon-options_5.0.0-debug.2_1547270933171_0.23332585389126814","host":"s3://npm-registry-packages"},"_id":"@storybook/addon-options@5.0.0-debug.2","version":"5.0.0-debug.2"}