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.3.0-alpha.0 to 3.3.0-alpha.2

10

dist/components/Node.js

@@ -83,3 +83,4 @@ 'use strict';

(0, _assign2.default)(containerStyle, leftPad);
// Keep a copy so that further mutations to containerStyle don't impact us:
var containerStyleCopy = (0, _assign2.default)({}, containerStyle, leftPad);

@@ -97,3 +98,3 @@ var _getData = getData(node),

'div',
{ style: containerStyle },
{ style: containerStyleCopy },
_react2.default.createElement(

@@ -111,3 +112,3 @@ 'span',

'div',
{ style: containerStyle },
{ style: containerStyleCopy },
_react2.default.createElement(

@@ -135,5 +136,2 @@ 'span',

// Keep a copy so that further mutations to containerStyle don't impact us:
var containerStyleCopy = (0, _assign2.default)({}, containerStyle);
// tag with children

@@ -140,0 +138,0 @@ return _react2.default.createElement(

4

dist/components/PropVal.js

@@ -181,3 +181,5 @@ 'use strict';

null,
content
'{',
content,
'}'
);

@@ -184,0 +186,0 @@ }

{
"name": "@storybook/addon-info",
"version": "3.3.0-alpha.0",
"version": "3.3.0-alpha.2",
"description": "A Storybook addon to show additional information for your stories.",

@@ -12,3 +12,3 @@ "license": "MIT",

"scripts": {
"prepublish": "node ../../scripts/prepublish.js",
"prepare": "node ../../scripts/prepare.js",
"publish-storybook": "bash .scripts/publish_storybook.sh",

@@ -18,8 +18,8 @@ "storybook": "start-storybook -p 9010"

"dependencies": {
"@storybook/addons": "^3.3.0-alpha.0",
"@storybook/components": "^3.3.0-alpha.0",
"babel-runtime": "^6.23.0",
"@storybook/addons": "^3.3.0-alpha.2",
"@storybook/components": "^3.3.0-alpha.2",
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"marksy": "^2.0.0",
"prop-types": "^15.5.10",
"prop-types": "^15.6.0",
"react-addons-create-fragment": "^15.5.3",

@@ -30,5 +30,5 @@ "util-deprecate": "^1.0.2"

"git-url-parse": "^6.2.2",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-test-renderer": "^15.6.1"
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0"
},

@@ -35,0 +35,0 @@ "peerDependencies": {

@@ -146,3 +146,3 @@ # Storybook Info Addon

React Docgen is included as part of the @storybook/react package through the use of `babel-plugin-react-docgen` during compile time.
React Docgen is included as part of the @storybook/react package through the use of `babel-plugin-react-docgen` during babel compile time.
When rendering a story with a React component commented in this supported format, the Addon Info prop table will display the prop's comment in the description column.

@@ -179,5 +179,4 @@

```
Comments above flow types are also supported. Storybook Info Addon should now render all the correct types for your component if the PropTypes are in the same file as the React component.
Storybook Info Addon should now render all the correct types for your component.
## The FAQ

@@ -184,0 +183,0 @@

@@ -61,3 +61,4 @@ import React from 'react';

Object.assign(containerStyle, leftPad);
// Keep a copy so that further mutations to containerStyle don't impact us:
const containerStyleCopy = Object.assign({}, containerStyle, leftPad);

@@ -69,3 +70,3 @@ const { name, text, children } = getData(node);

return (
<div style={containerStyle}>
<div style={containerStyleCopy}>
<span style={tagStyle}>{text}</span>

@@ -79,3 +80,3 @@ </div>

return (
<div style={containerStyle}>
<div style={containerStyleCopy}>
<span style={tagStyle}>&lt;{name}</span>

@@ -95,5 +96,2 @@ <Props

// Keep a copy so that further mutations to containerStyle don't impact us:
const containerStyleCopy = Object.assign({}, containerStyle);
// tag with children

@@ -100,0 +98,0 @@ return (

@@ -113,3 +113,3 @@ import React from 'react';

return <span>{content}</span>;
return <span>&#123;{content}&#125;</span>;
}

@@ -116,0 +116,0 @@

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