{"bugs":{"url":"https://github.com/storybooks/storybook/issues"},"dist":{"shasum":"a515137ce24f2480714a21ebe22addcbd9a1bfb0","tarball":"https://registry.npmjs.org/@storybook/addon-options/-/addon-options-4.0.0-alpha.25.tgz","fileCount":13,"integrity":"sha512-MANW0g38VbT4M7Wdv08OIAUR8w6VOt93fNKm7S5N5qkVaRMr4LZ78OZ26zZy0iKNdMECNYubbd+cwbXgBKTTeA==","signatures":[{"sig":"MEUCIHN5O7j0pwjIWbAr/eZXELdnZQZM7crVVhCxNWthxa06AiEApEwmlOXxykydXKhDqPFlMPEr1BGvXkVlEtRvEMUtPbU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":122928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwb2wCRA9TVsSAnZWagAAuiEP/jy5CKDntqC+hlhWYb7U\n6D8ZdTl0eyX7ommfd6dzEGhHPhNBV/zURLmxJEgssxScF3Wfa57FVacDjV6c\nuS0XA5JgPWRoKPWal0pvHiKIJhoTKi4HB6HbrhGLM9za1kSi6F7C9UjnwcEc\n42DkxC5t+rxcM6fCBBRCFgSnE4a9L0nKRJqxZws4YQgIw3RSXap985cX/Gyd\n/Tr3/dAzio9jvaNXz0rvAmnYGVE7xXEt5e/zNbejdy2HvvwFs6HzRjdZMOKq\nbSCCN+OGyFtwcegj+YqQF4oZRxHcYlhIcNDpaE960WmSX7JBudDZIobBt/u0\nBGxXMs20RAfb/bqbHf5MyM+8fcVREtxJmV7ZmmsRthXkkIxzFV2Gs7cf7HcE\nAuPOywmnRx3AylxsoiPjqcWq2W/GoXNhKRvdUIVwyiOuYn3cCzdQGFcXYChq\ntB+/9GXVIRMscediqRTQFUVLpEICXUkpcR6/60bYd98xcX8LZKXXs4daTrK4\nRWlq6wb6u0ZS0BHNOty2m2WjAgr5b8luGzFfYYO4n4tsnqSAc2CxHpj6mc/l\nO+yFcEb0QdoggqDu/Cp7K+QCsMhcbBvga7rYqg+9r8U0l9Ofa3QBlKt0wHT3\nkz/OM/tuM7aBmN5Y6BXrjENU3d1++uUhx8ayk7ipsiuqVqPLHVXdjbHBz/c7\nEqDB\r\n=0T8A\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\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/marko';\nimport { withKnobs, text, number } from '@storybook/addon-knobs';\nimport Hello from '../components/hello/index.marko';\n\nstoriesOf('Addons|Knobs/Hello', module)\n  // If you want to set the option for all stories in of this kind\n  .addParameters({ options: { addonPanelInRight: true } })\n  .addDecorator(withKnobs)\n  .add(\n    'Simple',\n    () => {\n      const name = text('Name', 'John Doe');\n      const age = number('Age', 44);\n      return Hello.renderSync({\n        name,\n        age,\n      });\n    },\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","gitHead":"155afad695926070cc6426e98d795907846f1207","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":"christianalfoni","email":"christianalfoni@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":{"util-deprecate":"^1.0.2","@storybook/addons":"4.0.0-alpha.25"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/addon-options_4.0.0-alpha.25_1539423664140_0.5298533301746156","host":"s3://npm-registry-packages"},"_id":"@storybook/addon-options@4.0.0-alpha.25","version":"4.0.0-alpha.25"}