Socket
Socket
Sign inDemoInstall

@storybook/addon-info

Package Overview
Dependencies
Maintainers
8
Versions
495
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-info - npm Package Compare versions

Comparing version 3.2.0 to 3.2.4

2

dist/components/Story.js

@@ -482,3 +482,3 @@ 'use strict';

'div',
{ key: type.name },
{ key: type.displayName || type.name },
_react2.default.createElement(

@@ -485,0 +485,0 @@ 'h2',

{
"name": "@storybook/addon-info",
"version": "3.2.0",
"version": "3.2.4",
"description": "A Storybook addon to show additional information for your stories.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -65,2 +65,12 @@ # Storybook Info Addon

## Usage as decorator
It is possible to add infos by default to all components by using a global or story decorator. The drawback is you won't be able to display a distinct info message per story.
It is important to declare this decorator as **the first decorator**, otherwise it won't work well.
```
addDecorator((story, context) => withInfo('common info')(story)(context));
```
## Global options

@@ -67,0 +77,0 @@

@@ -352,3 +352,3 @@ /* eslint no-underscore-dangle: 0 */

const propTables = array.map(type =>
<div key={type.name}>
<div key={type.displayName || type.name}>
<h2 style={this.state.stylesheet.propTableHead}>

@@ -355,0 +355,0 @@ "{type.displayName || type.name}" Component

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc