Update @kadira/storybook-ui to v2.6.0

This commit is contained in:
Arunoda Susiripala 2016-07-20 11:38:40 +05:30
parent e8e9067fc2
commit 811939e187
5 changed files with 37 additions and 25 deletions

View File

@ -37,18 +37,23 @@ var ErrorDisplay = function ErrorDisplay(_ref) {
var error = _ref.error;
return _react2.default.createElement(
'div',
{ style: mainStyle },
{ style: mainStyle, __self: undefined
},
_react2.default.createElement(
'div',
{ style: headingStyle },
{ style: headingStyle, __self: undefined
},
error.message
),
_react2.default.createElement(
'pre',
{ style: codeStyle },
{ style: codeStyle, __self: undefined
},
_react2.default.createElement(
'code',
null,
{
__self: undefined
},
error.stack
)
)

View File

@ -32,21 +32,28 @@ function renderError(error) {
// Since this is an error, this affects to the main page as well.
var realError = new Error(error.message);
realError.stack = error.stack;
var redBox = _react2.default.createElement(_error_display2.default, { error: realError });
var redBox = _react2.default.createElement(_error_display2.default, { error: realError, __self: this
});
_reactDom2.default.render(redBox, rootEl);
}
function renderMain(data, storyStore) {
var _this = this;
if (storyStore.size() === 0) return null;
var NoPreview = function NoPreview() {
return _react2.default.createElement(
'p',
null,
{
__self: _this
},
'No Preview Available!'
);
};
var noPreview = _react2.default.createElement(NoPreview, null);
var noPreview = _react2.default.createElement(NoPreview, {
__self: this
});
var selectedKind = data.selectedKind;
var selectedStory = data.selectedStory;

32
dist/manager.js vendored

File diff suppressed because one or more lines are too long

2
dist/manager.js.map vendored
View File

@ -1 +1 @@
{"version":3,"file":"manager.js","sources":["webpack:///manager.js","webpack:///"],"mappings":"AAAA;ACgpIA;;;;;;;;;;;;;;AA0+FA;;;;;;;;;;;AAsvEA;AA2sIA;AAugFA;;;;;AAgjBA;;;;;;;;;AA8oCA;AA6zEA;;;;;AAyrDA;;;AAksDA;AAq2IA;AA61BA;AAsgFA;AA8tHA;AAm2HA","sourceRoot":""}
{"version":3,"file":"manager.js","sources":["webpack:///manager.js","webpack:///"],"mappings":"AAAA;AC+9HA;;;;;;;;;;;;;;AA8pGA;;;;;;;;;;;AAsvEA;AA2sIA;AA4+EA;;;;;AA0pBA;;;;;;;;;AA8oCA;AA6zEA;;;;;AAyrDA;;;AAksDA;AAq2IA;AA61BA;AAsgFA;AAuuHA;AA01HA","sourceRoot":""}

View File

@ -21,7 +21,7 @@
"dev": "DEV_BUILD=1 nodemon --watch src --exec 'npm run prepublish'"
},
"dependencies": {
"@kadira/storybook-ui": "^2.4.0",
"@kadira/storybook-ui": "^2.6.0",
"airbnb-js-shims": "^1.0.0",
"babel-core": "^6.3.15",
"babel-loader": "^6.2.0",