{"bugs":{"url":"https://github.com/storybookjs/storybook/issues"},"dist":{"shasum":"6612d297fc1c50059ec54a4fcd4bc7b54e894944","tarball":"https://registry.npmjs.org/@storybook/addon-options/-/addon-options-5.3.0-alpha.8.tgz","fileCount":14,"integrity":"sha512-Z2APyh0nlRgXWk5tZVl9argVgo0B4+wYcIFg49swJR6tTpDTkXs24fAU+Lie3sLWR4qCd+WePqDDDTWLhBRuCw==","signatures":[{"sig":"MEQCIGyiBtZZOqPbpBpCOulzTx2hwbrLTYbhexNe24KWHN3rAiBi+PsMG64PHJf00iAb6n//gvt2NaBNPSpKtG6uGcMQrg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlvM4CRA9TVsSAnZWagAAW8YP/2MflSISt1KrZI7tx9D6\n4Ummi8xyYTZjB55HDcBAg7mxsW5MmOOPGAew535p5cG2d4Ox9pHxL4v0IMKZ\n3w+9Of4xR7IyhnN3jPSzTmXmCIC1ZyaT7xdVWMJNzZEZJ0DaD/o6cu65WOPg\nAg2lPHfPhu7iX/kOzHC1s4c/Invh3NQx3PeW5MzxjN44fR+0Be2x94YHYqRM\nZkpby6wUIgWnr3YYBuT+sQgl9wHOfdRlv8+dtyY21G4asCGox8FWYsuvHyom\nB+XiSUMG2mOarKFILjBrOGb4GZBP3F4DgNDB+9b7cV4CAv3Hs68eeUk6s5Yy\nmBxIr5zxmVqJSJNRB0ftWWvkE7Z+zqxg1B5mPGVxlaSIzYbIaBUGJbWTkXca\nJhZc+5ivch5MFndfpHI62R0B3P//cLuueU/VoNl3mpay45QLRHTEqDJBbuKE\nY3Qw0ZNlwt7aCxeK6gTk21b2MY9tZiHJ0vMxYPQxSIgjEDHSpvo09gfw6FDa\nC2mCIr1NkUJ2WBZ3mQDD+qgUxWuwkIOH1I6nrjBWD9PLfGJLaszPWnX0nwA2\ny4xlJJUUkgXiib+cZXPMT67djyIhKh9gESt2n5cnUfstpyDd4FzbNJJmVPPP\nqOMHyisezWRoDMHWBqQabfePWdaJYbzMflgv/DEIOD4aFdh6wZN75GmiJ0QH\nzPjK\r\n=Mt2e\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@storybook/addon-options","types":"dist/public_api.d.ts","readme":"#NOTE: Options Addon is deprecated as of Storybook 5.0\n\nOptions are now configured using the [`options` parameter](../../docs/src/pages/configurations/options-parameter/index.md) which is built into Storybook.\n\n- Global options: `addParameters({ options: { ... }})` and no addon is needed.\n- Story options: `storiesOf(...).add('name', storyFn, { options: { ... }})`\n\nSee the [migration docs](../../MIGRATION.md#options-addon-deprecated) for what's changed.\n\n# 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/storybookjs/storybook/blob/master/ADDONS_SUPPORT.md)\n\n![Screenshot](https://raw.githubusercontent.com/storybookjs/storybook/HEAD/addons/options/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     * 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     * show/hide tool bar\n     * @type {Boolean}\n     */\n    isToolshown: 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":"dc321d395df4c142683b9bf76ba2f848406806b6","license":"MIT","scripts":{"prepare":"node ../../scripts/prepare.js"},"_npmUser":{"name":"shilman","email":"michael@lab80.co"},"homepage":"https://github.com/storybookjs/storybook/tree/master/addons/options","keywords":["addon","storybook"],"repository":{"url":"git+https://github.com/storybookjs/storybook.git","type":"git","directory":"addons/options"},"_npmVersion":"lerna/3.16.4/node@v10.16.3+x64 (darwin)","description":"Options addon for storybook","directories":{},"maintainers":[{"name":"alexandrebodin","email":"bodin.alex@gmail.com"},{"name":"danielduan","email":"dduan@yahoo.com"},{"name":"domyen","email":"dom@hichroma.com"},{"name":"gongreg","email":"gytis.vinclovas@gmail.com"},{"name":"hypnosphi","email":"talpa@yandex.ru"},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"kylesuss","email":"susskyle@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":"10.16.3","dependencies":{"core-js":"^3.0.1","util-deprecate":"^1.0.2","@storybook/addons":"5.3.0-alpha.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/addon-options_5.3.0-alpha.8_1570173752297_0.052662529357632604","host":"s3://npm-registry-packages"},"_id":"@storybook/addon-options@5.3.0-alpha.8","version":"5.3.0-alpha.8"}