{"bugs":{"url":"https://github.com/storybooks/storybook/issues"},"dist":{"shasum":"74c40d3da5746ef6025eae82aeac7f2a20fd76a1","tarball":"https://registry.npmjs.org/@storybook/addon-options/-/addon-options-4.1.5-react-debug.1.tgz","fileCount":13,"integrity":"sha512-G9P3UwqBvNs1RtAfnT94tvtGI8MmTpzp6ANzEUOzeJRALdUPT76U5N1xk7FfJRVUobE0sSA4G3wQbdZ9Vevapw==","signatures":[{"sig":"MEUCIQDJGgiw2FyufvOBsFxpVOBz3KhMpQTKWH+JryC4okEbjQIgXT/WCrME8gkIUNx1cxZ5FzLCDLqWzJn4Onn7MBoI1fg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNXpTCRA9TVsSAnZWagAAo5sP/1gnKLm5m934HKgMV57V\ntAGa34gOMeQhVCIVt5AxiYMVzlLVAHYDws6IevljJMppnH8OeR6TK6VRgNew\nkw9HgkbwjQQpRh3uORMvTAhv9v/WQT758h7jFkvtb3sJH1Y1R8hk9ljPOTS5\nw/dqnd7cnvrPBPNQeICd7qScoFl/yerRdlooq8n5Q6HbyYiAucH0HhiMQL1i\ne78LkXY5rLWoi1HkJA6nJMDYfQUZOTsnSYsVPRBkt0jD+HhaByaYL9iA0jhj\nk0SpKTosFpg5n0eEX8G6/vydsCRptd0aM0oxUWe5pAmY1FCrDAiNrjOPC6Ck\nfmCDUbaNvRTQaCO0CDYL+WyqLi9J4mg09uE2asPe970dNfDbX0ZBGGUe8x48\nkeZ/+yKBVQ9tFEuIGJtLz2ucwcvssA+qtGR+oMAw8T1moAG0kFroxFDfaNtY\noqomQdi0UdKi/Hjb51S8lDr3SafTu8rKiQLL2Iu+5Gae1bMOBn/eDwvRoDsS\nLHtdrIKx/s2wgVQtI59ec4r5uF5Q0x2fzypidKooqLNYE3a22wAxqGvtxSW0\nvlJwOzIpglF1LIV7cXOn/sLgpwtHZNF3zgI2fU1JRDwSwrbN8XKNx1vur/mh\nzVNmUfwya9UC+WaAzqrBK8OaPRg9XY84Pfpwp0sC7kYYzKCuJLj+cA5xcD9y\nXK0q\r\n=hcpD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"preview.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\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\n###Set options globally\n\nImport and use the `withOptions` decorator in your `config.js` file.\n\n```js\nimport { addDecorator, configure } from '@storybook/react';\nimport { withOptions } from '@storybook/addon-options';\n\n// Option defaults:\naddDecorator(\n  withOptions({\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    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     * 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_NOTE_ that you must attach `withOptions` as a decorator (at the top-level) for this to work.\n\n## Typescript\n\nTo install type definitions: `npm install -D @types/storybook__addon-options`\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 `npm install -D @types/node @types/react`, assuming you are using Typescript >2.0.\n","gitHead":"234686645735e91d11b5dc3a9d7d67e6cd602482","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":"https://github.com/storybooks/storybook.git","type":"git"},"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"}],"dependencies":{"core-js":"^2.5.7","util-deprecate":"^1.0.2","@storybook/addons":"4.1.5-react-debug.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/addon-options_4.1.5-react-debug.1_1547008594355_0.5731944459613438","host":"s3://npm-registry-packages"},"_id":"@storybook/addon-options@4.1.5-react-debug.1","version":"4.1.5-react-debug.1"}