mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
Update @kadira/storybook-ui to v2.6.0
This commit is contained in:
parent
e8e9067fc2
commit
811939e187
13
dist/client/preview/error_display.js
vendored
13
dist/client/preview/error_display.js
vendored
@ -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
|
||||
)
|
||||
)
|
||||
|
13
dist/client/preview/render.js
vendored
13
dist/client/preview/render.js
vendored
@ -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
32
dist/manager.js
vendored
File diff suppressed because one or more lines are too long
2
dist/manager.js.map
vendored
2
dist/manager.js.map
vendored
@ -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":""}
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user