react-lite-json-viewer
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -88,3 +88,2 @@ var Immutable, React, assign, div, hsl, ref, reset, span, stringify; | ||
fontFamily: reset.codeFonts, | ||
maxWidth: '300px', | ||
overflowX: 'hidden', | ||
@@ -91,0 +90,0 @@ whiteSpace: 'nowrap', |
@@ -24,5 +24,11 @@ var Immutable, React, T, Value, div, hsl, isSafari, reset; | ||
height: T.number.isRequired, | ||
width: T.number, | ||
path: T.instanceOf(Immutable.List).isRequired, | ||
onChange: T.func.isRequired | ||
}, | ||
getDefaultProps: function() { | ||
return { | ||
width: 800 | ||
}; | ||
}, | ||
renderEntries: function(stage, index) { | ||
@@ -92,3 +98,5 @@ var value; | ||
WebkitFlex: 1, | ||
height: this.props.height | ||
height: this.props.height, | ||
width: this.props.width, | ||
overflowX: 'auto' | ||
}; | ||
@@ -119,5 +127,6 @@ }, | ||
overflowX: 'hidden', | ||
paddingRight: '2em' | ||
paddingRight: '2em', | ||
flexShrink: 0 | ||
}; | ||
} | ||
}); |
@@ -41,2 +41,3 @@ var Immutable, JsonViewer, React, a, div, hsl, jianliao, link, ref, reset, span; | ||
height: 500, | ||
width: window.innerWidth - 200, | ||
data: Immutable.fromJS(jianliao), | ||
@@ -43,0 +44,0 @@ path: this.state.path, |
{ | ||
"name": "react-lite-json-viewer", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Component for exploring store in JSON", | ||
@@ -5,0 +5,0 @@ "main": "lib/json-viewer.js", |
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
10329
317
0