@kadira/react-storybook-addon-info
Advanced tools
Comparing version 3.0.4 to 3.0.5
# Change Log | ||
### v3.0.5 | ||
* Over-indentation of ending tag in source code is fixed. See [#13](https://github.com/kadirahq/react-storybook-addon-info/pull/13) | ||
### v3.0.4 | ||
* Remove the need to use json-loader with webpack when using this package. | ||
See: [#12](https://github.com/kadirahq/react-storybook-addon-info/issues/12) | ||
### v3.0.0 | ||
* Add the version which works as an React Storybook addon. |
@@ -113,2 +113,5 @@ 'use strict'; | ||
// Keep a copy so that further mutations to containerStyle don't impact us: | ||
var containerStyleCopy = (0, _assign2.default)({}, containerStyle); | ||
// tag with children | ||
@@ -120,3 +123,3 @@ return _react2.default.createElement( | ||
'div', | ||
{ style: containerStyle }, | ||
{ style: containerStyleCopy }, | ||
_react2.default.createElement( | ||
@@ -140,3 +143,3 @@ 'span', | ||
'div', | ||
{ style: containerStyle }, | ||
{ style: containerStyleCopy }, | ||
_react2.default.createElement( | ||
@@ -143,0 +146,0 @@ 'span', |
{ | ||
"name": "@kadira/react-storybook-addon-info", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "A React Storybook addon to show additional information for your stories.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -45,6 +45,9 @@ import React from 'react'; | ||
} | ||
// Keep a copy so that further mutations to containerStyle don't impact us: | ||
const containerStyleCopy = Object.assign({}, containerStyle); | ||
// tag with children | ||
return <div> | ||
<div style={containerStyle}> | ||
<div style={containerStyleCopy}> | ||
<span style={tagStyle}><{name}</span> | ||
@@ -55,3 +58,3 @@ <Props node={node} /> | ||
{React.Children.map(children, childElement => <Node node={childElement} depth={depth + 1}/>)} | ||
<div style={containerStyle}> | ||
<div style={containerStyleCopy}> | ||
<span style={tagStyle}></{name}></span> | ||
@@ -58,0 +61,0 @@ </div> |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
369875
2314
2