react-lite-json-viewer
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -24,11 +24,5 @@ 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) { | ||
@@ -99,3 +93,2 @@ var value; | ||
height: this.props.height, | ||
width: this.props.width, | ||
overflowX: 'auto' | ||
@@ -102,0 +95,0 @@ }; |
@@ -33,3 +33,4 @@ var Immutable, JsonViewer, React, a, div, hsl, jianliao, link, ref, reset, span; | ||
return div({ | ||
className: 'app-page' | ||
className: 'app-page', | ||
style: this.stylePage | ||
}, div({ | ||
@@ -42,3 +43,2 @@ style: this.styleNote() | ||
height: 500, | ||
width: window.innerWidth - 200, | ||
data: Immutable.fromJS(jianliao), | ||
@@ -49,2 +49,5 @@ path: this.state.path, | ||
}, | ||
stylePage: { | ||
width: '100%' | ||
}, | ||
styleNote: function() { | ||
@@ -51,0 +54,0 @@ return { |
{ | ||
"name": "react-lite-json-viewer", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Component for exploring store in JSON", | ||
@@ -5,0 +5,0 @@ "main": "lib/json-viewer.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10232
313