From a6424b1ab76f2de96528d8aa3faba24dd517d680 Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Tue, 10 May 2016 13:46:20 +0530 Subject: [PATCH] Make left-panel scrollable. --- dist/manager.js | 4 ++-- dist/manager.js.map | 2 +- .../modules/ui/components/left_panel/index.js | 23 ++++++++++++------- .../ui/components/left_panel/stories.js | 1 - 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/dist/manager.js b/dist/manager.js index a1029d0781a..d5a79eb1537 100644 --- a/dist/manager.js +++ b/dist/manager.js @@ -25,8 +25,8 @@ function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;va * http://api.jqueryui.com/category/ui-core/ */ function n(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&o(e)}function r(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function o(e){for(;e&&e!==document.body;){if(r(e))return!1;e=e.parentNode}return!0}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&n(e,!r)}function a(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return i(e)})}e.exports=a},[363,275],function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[n(t,e)]=r[e]})});var i={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:i};e.exports=a},function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=n(3),i=n(24),a=n(1);o(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length?a(!1):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n.")}var a=h[e]||(h[e]={});if(a[o])return null;a[o]=!0;var u={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==p.current&&(u.childOwner=" It was passed a child from "+t._owner.getName()+"."),u}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;nr;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===A?e.documentElement:e.firstChild:null}function i(e){return e.getAttribute&&e.getAttribute(N)||""}function a(e,t,n,r,o){var i;if(b.logTopLevelRenders){var a=e._currentElement.props,u=a.type;i="React mount: "+("string"==typeof u?u:u.displayName||u.name),console.time(i)}var s=C.mountComponent(e,n,null,y(e,t),o);i&&console.timeEnd(i),e._renderedComponent._topLevelWrapper=e,F._mountImageIntoNode(s,t,e,r,n)}function u(e,t,n,r){var o=x.ReactReconcileTransaction.getPooled(!n&&m.useCreateElement);o.perform(a,null,e,t,o,n,r),x.ReactReconcileTransaction.release(o)}function s(e,t,n){for(C.unmountComponent(e,n),t.nodeType===A&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function l(e){var t=o(e);if(t){var n=v.getInstanceFromNode(t);return!(!n||!n._nativeParent)}}function c(e){var t=o(e),n=t&&v.getInstanceFromNode(t);return n&&!n._nativeParent?n:null}function p(e){var t=c(e);return t?t._nativeContainerInfo._topLevelWrapper:null}var f=n(29),d=n(23),h=n(45),v=(n(15),n(5)),y=n(292),m=n(296),g=n(9),b=n(122),_=(n(46),n(313)),E=n(7),C=n(30),w=n(130),x=n(10),O=n(51),P=n(137),S=n(1),T=n(85),M=n(86),N=(n(2),d.ID_ATTRIBUTE_NAME),k=d.ROOT_ATTRIBUTE_NAME,R=1,A=9,D=11,I={},j=1,L=function(){this.rootID=j++};L.prototype.isReactComponent={},L.prototype.render=function(){return this.props};var F={TopLevelWrapper:L,_instancesByReactRootID:I,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return F.scrollMonitor(n,function(){w.enqueueElementInternal(e,t),r&&w.enqueueCallbackInternal(e,r)}),e},_renderNewRootComponent:function(e,t,n,r){!t||t.nodeType!==R&&t.nodeType!==A&&t.nodeType!==D?S(!1):void 0,h.ensureScrollValueMonitoring();var o=P(e);x.batchedUpdates(u,o,t,n,r);var i=o._instance.rootID;return I[i]=o,o},renderSubtreeIntoContainer:function(e,t,n,r){return null==e||null==e._reactInternalInstance?S(!1):void 0,F._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){w.validateCallback(r,"ReactDOM.render"),g.isValidElement(t)?void 0:S(!1);var a=g(L,null,null,null,null,null,t),u=p(n);if(u){var s=u._currentElement,c=s.props;if(M(c,t)){var f=u._renderedComponent.getPublicInstance(),d=r&&function(){r.call(f)};return F._updateRootComponent(u,a,n,d),f}F.unmountComponentAtNode(n)}var h=o(n),v=h&&!!i(h),y=l(n),m=v&&!u&&!y,b=F._renderNewRootComponent(a,n,m,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):O)._renderedComponent.getPublicInstance();return r&&r.call(b),b},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){!e||e.nodeType!==R&&e.nodeType!==A&&e.nodeType!==D?S(!1):void 0;var t=p(e);if(!t){l(e),1===e.nodeType&&e.hasAttribute(k);return!1}return delete I[t._instance.rootID],x.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(!t||t.nodeType!==R&&t.nodeType!==A&&t.nodeType!==D?S(!1):void 0,i){var u=o(t);if(_.canReuseMarkup(e,u))return void v.precacheNode(n,u);var s=u.getAttribute(_.CHECKSUM_ATTR_NAME);u.removeAttribute(_.CHECKSUM_ATTR_NAME);var l=u.outerHTML;u.setAttribute(_.CHECKSUM_ATTR_NAME,s);var c=e,p=r(c,l);" (client) "+c.substring(p-20,p+20)+"\n (server) "+l.substring(p-20,p+20);t.nodeType===A?S(!1):void 0}if(t.nodeType===A?S(!1):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);f.insertTreeBefore(t,e,null)}else T(t,e),v.precacheNode(n,t.firstChild)}};E.measureMethods(F,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=F},function(e,t,n){"use strict";var r=n(52),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=p[t];return null==n&&(p[t]=n=l(t)),n}function o(e){return c?void 0:s(!1),new c(e)}function i(e){return new f(e)}function a(e){return e instanceof f}var u=n(3),s=n(1),l=null,c=null,p={},f=null,d={injectGenericComponentClass:function(e){c=e},injectTextComponentClass:function(e){f=e},injectComponentClasses:function(e){u(p,e)}},h={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:a,injection:d};e.exports=h},function(e,t,n){"use strict";var r=n(9),o=n(1),i={NATIVE:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.NATIVE:void o(!1)}};e.exports=i},function(e,t,n){"use strict";function r(e,t){}var o=(n(2),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}});e.exports=o},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function o(e){function t(t,n,r,o,i,a){if(o=o||w,a=a||r,null==n[r]){var u=_[i];return t?new Error("Required "+u+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function i(e){function t(t,n,r,o,i){var a=t[n],u=y(a);if(u!==e){var s=_[o],l=m(a);return new Error("Invalid "+s+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return o(t)}function a(){return o(E.thatReturns(null))}function u(e){function t(t,n,r,o,i){if("function"!=typeof e)return new Error("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){var u=_[o],s=y(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l>",x={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:a(),arrayOf:u,element:s(),instanceOf:l,node:d(),objectOf:p,oneOf:c,oneOfType:f,shape:h};e.exports=x},function(e,t,n){"use strict";function r(e){a.enqueueUpdate(e)}function o(e,t){var n=i.get(e);return n?n:null}var i=(n(15),n(76)),a=n(10),u=n(1),s=(n(2),{isMounted:function(e){var t=i.get(e);return t?!!t._renderedComponent:!1},enqueueCallback:function(e,t,n){s.validateCallback(t,n);var i=o(e);return i?(i._pendingCallbacks?i._pendingCallbacks.push(t):i._pendingCallbacks=[t],void r(i)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?u(!1):void 0}});e.exports=s},function(e,t){"use strict";e.exports="15.0.1"},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==t?o(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=n(1);e.exports=r},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.NATIVE?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(127);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(6),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e){var t;if(null===e||e===!1)t=u.create(o);else if("object"==typeof e){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?l(!1):void 0,t="string"==typeof n.type?s.createInternalComponent(n):r(n.type)?new n.type(n):new c(n)}else"string"==typeof e||"number"==typeof e?t=s.createInstanceForText(e):l(!1);return t._mountIndex=0,t._mountImage=null,t}var i=n(3),a=n(288),u=n(121),s=n(126),l=n(1),c=(n(2),function(e){this.construct(e)});i(c.prototype,a.Mixin,{_instantiateReactComponent:o}),e.exports=o},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";var r=n(6),o=n(50),i=n(85),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),e.exports=a},function(e,t,n){"use strict";var r=n(13),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t,n){"use strict";function r(e){return a?void 0:i(!1),f.hasOwnProperty(e)||(e="*"),u.hasOwnProperty(e)||("*"===e?a.innerHTML="":a.innerHTML="<"+e+">",u[e]=!a.firstChild),u[e]?f[e]:null}var o=n(6),i=n(1),a=o.canUseDOM?document.createElement("div"):null,u={},s=[1,'"],l=[1,"","
"],c=[3,"","
"],p=[1,'',""],f={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:s,option:s,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},d=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];d.forEach(function(e){f[e]=p,u[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var a=0;an;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};var r=function(){var e=t[t.length-1],n=t.slice(0,-1);return{v:function(){return n.reduceRight(function(e,t){return t(e)},e.apply(void 0,arguments))}}}();return"object"==typeof r?r.v:void 0}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){function r(){m===y&&(m=y.slice())}function i(){return v}function u(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),m.push(e),function(){if(t){t=!1,r();var n=m.indexOf(e);m.splice(n,1)}}}function c(e){if(!(0,a["default"])(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,v=h(v,e)}finally{g=!1}for(var t=y=m,n=0;na;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.state={},u}return a(t,e),u(t,[{key:"render",value:function(){var e={cursor:"row-resize",background:"#EEEEEE",borderBottom:"solid #E0E0E0 1px",borderTop:"solid #E0E0E0 1px",height:"3px",width:"100%"};return l["default"].createElement("div",{style:e})}}]),t}(s.Component);t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t); -}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;na;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.state={},u}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props.split,t=["Pane",e,this.props.className],n={flex:1,position:"relative",outline:"none"};return void 0!==this.state.size&&("vertical"===e?n.width=this.state.size:(n.height=this.state.size,n.display="flex"),n.flex="none"),l["default"].createElement("div",{className:t.join(" "),style:n},this.props.children)}}]),t}(s.Component);c.propTypes={split:s.PropTypes.oneOf(["vertical","horizontal"]),className:s.PropTypes.string.isRequired,children:s.PropTypes.object.isRequired},t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;ta;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.onMouseDown=u.onMouseDown.bind(u),u}return a(t,e),s(t,[{key:"onMouseDown",value:function(e){this.props.onMouseDown(e)}},{key:"render",value:function(){var e=this.props,t=e.split,n=e.className,r=e.children,o=["Resizer",t,n],i={};return"vertical"===t?u(i,{height:"100%"}):u(i,{width:"100%"}),c["default"].createElement("div",{style:i,className:o.join(" "),onMouseDown:this.onMouseDown},r)}}]),t}(l.Component);p.propTypes={onMouseDown:l.PropTypes.func.isRequired,split:l.PropTypes.oneOf(["vertical","horizontal"]),className:l.PropTypes.string.isRequired,children:l.PropTypes.node.isRequired},t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;ta;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.onMouseDown=u.onMouseDown.bind(u),u.onMouseMove=u.onMouseMove.bind(u),u.onMouseUp=u.onMouseUp.bind(u),u.state={active:!1,resized:!1},u}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.setSize(this.props,this.state),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove)}},{key:"componentWillReceiveProps",value:function(e){this.setSize(e,this.state)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove)}},{key:"onMouseDown",value:function(e){if(this.props.allowResize&&!this.props.size){this.unFocus();var t="vertical"===this.props.split?e.clientX:e.clientY;"function"==typeof this.props.onDragStarted&&this.props.onDragStarted(),this.setState({active:!0,position:t})}}},{key:"onMouseMove",value:function(e){if(this.props.allowResize&&!this.props.size&&this.state.active){this.unFocus();var t="first"===this.props.primary,n=t?this.refs.pane1:this.refs.pane2;if(n){var r=f["default"].findDOMNode(n);if(r.getBoundingClientRect){var o=r.getBoundingClientRect().width,i=r.getBoundingClientRect().height,a="vertical"===this.props.split?e.clientX:e.clientY,u="vertical"===this.props.split?o:i,s=this.state.position,l=t?s-a:a-s,c=u-l;cthis.props.maxSize?c=this.props.maxSize:this.setState({position:a,resized:!0}),this.props.onChange&&this.props.onChange(c),this.setState({draggedSize:c}),n.setState({size:c})}}}}},{key:"onMouseUp",value:function(){this.props.allowResize&&!this.props.size&&this.state.active&&("function"==typeof this.props.onDragFinished&&this.props.onDragFinished(),this.setState({active:!1}))}},{key:"setSize",value:function(e,t){var n="first"===this.props.primary?this.refs.pane1:this.refs.pane2,r=void 0;n&&(r=e.size||t&&t.draggedSize||e.defaultSize||e.minSize,n.setState({size:r}))}},{key:"unFocus",value:function(){document.selection?document.selection.empty():window.getSelection().removeAllRanges()}},{key:"render",value:function(){var e=this.props,t=e.split,n=e.allowResize,r=n?"":"disabled",o={display:"flex",flex:1,position:"relative",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"};"vertical"===t?u(o,{flexDirection:"row",height:"100%",position:"absolute",left:0,right:0}):u(o,{flexDirection:"column",height:"100%",minHeight:"100%",position:"absolute",top:0,bottom:0,width:"100%"});var i=null;i=this.props.resizerChildren?this.props.resizerChildren:"vertical"===t?c["default"].createElement(y["default"],null):c["default"].createElement(g["default"],null);var a=this.props.children,s=["SplitPane",this.props.className,t,r];return c["default"].createElement("div",{className:s.join(" "),style:o,ref:"splitPane"},c["default"].createElement(h["default"],{ref:"pane1",key:"pane1",className:"Pane1",split:t},a[0]),c["default"].createElement(_["default"],{ref:"resizer",key:"resizer",className:r,onMouseDown:this.onMouseDown,children:i,split:t}),c["default"].createElement(h["default"],{ref:"pane2",key:"pane2",className:"Pane2",split:t},a[1]))}}]),t}(l.Component);E.propTypes={primary:l.PropTypes.oneOf(["first","second"]),minSize:l.PropTypes.number,maxSize:l.PropTypes.number,defaultSize:l.PropTypes.number,size:l.PropTypes.oneOfType([l.PropTypes.number,l.PropTypes.string]),allowResize:l.PropTypes.bool,split:l.PropTypes.oneOf(["vertical","horizontal"]),onDragStarted:l.PropTypes.func,onDragFinished:l.PropTypes.func,onChange:l.PropTypes.func,className:l.PropTypes.string,children:l.PropTypes.arrayOf(l.PropTypes.node).isRequired,resizerChildren:l.PropTypes.node},E.defaultProps={split:"vertical",minSize:50,allowResize:!0,primary:"first"},t["default"]=E,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;na;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.state={},u}return a(t,e),u(t,[{key:"render",value:function(){var e={cursor:"col-resize",background:"#EEEEEE",borderLeft:"solid #E0E0E0 1px",borderRight:"solid #E0E0E0 1px",height:"100%",width:"3px"};return l["default"].createElement("div",{style:e})}}]),t}(s.Component);t["default"]=c,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return{reduxStore:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(35);t["default"]={setStories:function(e,t){var n=e.reduxStore;n.dispatch({type:r.types.SET_STORIES,stories:t})},selectStory:function(e,t,n){var o=e.reduxStore;o.dispatch({type:r.types.SELECT_STORY,kind:t,story:n})},jumpToStory:function(e,t){var n=e.reduxStore;n.dispatch({type:r.types.JUMP_TO_STORY,direction:t})},clearActions:function(e){var t=e.reduxStore;t.dispatch({type:r.types.CLEAR_ACTIONS})},addAction:function(e,t){var n=e.reduxStore;n.dispatch({type:r.types.ADD_ACTION,action:t})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&m[0];return g&&(0,p["default"])(g.data,y.data)?g.count++:(y.count=1,m.unshift(y)),s({},e,{actions:m});default:return e}};var l=n(35),c=n(237),p=r(c),f={actions:[]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(156),i=r(o);t["default"]={api:i["default"]}},[362,35,157],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=r(o),a={width:"100%",height:"100%",border:0,margin:0,padding:0},u=function(e){var t=e.url;return i["default"].createElement("iframe",{style:a,src:t})};u.propTypes={url:i["default"].PropTypes.string},t["default"]=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t,n){var r=t.getState(),o=r.core.dataId;t.subscribe(function(){var n=t.getState(),r=n.api;if(r){var i={kind:r.selectedKind,story:r.selectedStory};e.emit(o+".setCurrentStory",JSON.stringify(i))}}),e.on(o+".addAction",function(e){var t=JSON.parse(e);n.api.addAction(t.action)}),e.on(o+".setStories",function(e){var t=JSON.parse(e);n.api.setStories(t.stories)}),e.on(o+".selectStory",function(e){var t=JSON.parse(e);n.api.selectStory(t.kind,t.story)}),e.on(o+".applyShortcut",function(e){var t=JSON.parse(e);n.shortcuts.handleEvent(t.event)})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.composer=void 0;var o=n(159),i=r(o),a=n(22),u=n(108),s=r(u),l=t.composer=function(e,t){var n=e.context,r=n(),o=r.reduxStore,i=o.getState(),a={dataId:i.core.dataId};i.api&&(a.selectedKind=i.api.selectedKind,a.selectedStory=i.api.selectedStory);var u=s["default"].stringify(a),l="iframe.html?"+u;t(null,{url:l})};t["default"]=(0,a.composeAll)((0,a.compose)(l),(0,a.useDeps)())(i["default"])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(263),i=r(o),a=n(160),u=r(a);t["default"]={load:function(e,t){var n=e.reduxStore,r=(0,i["default"])();(0,u["default"])(r,n,t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(54),i=n(53),a=n(35),u=r(a);t["default"]={handleEvent:function(e,t){var n=e.reduxStore;switch(t){case i.features.NEXT_STORY:u["default"].api.jumpToStory(e,1);break;case i.features.PREV_STORY:u["default"].api.jumpToStory(e,-1);break;default:n.dispatch({type:o.types.HANDLE_EVENT,event:t})}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(165),i=r(o);t["default"]={shortcuts:i["default"]}},function(e,t,n){"use strict";function r(e,t){switch(t){case a.features.FULLSCREEN:return{goFullScreen:!e.goFullScreen};case a.features.DOWN_PANEL:return{showDownPanel:!e.showDownPanel};case a.features.LEFT_PANEL:return{showLeftPanel:!e.showLeftPanel};default:return{}}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t1&&c["default"].createElement("span",{style:g},e.count),c["default"].createElement("div",{style:y},c["default"].createElement("span",{ref:"foldable-toggle",onClick:this.onToggleCallback},this.state.collapsed?"►":"▼")),c["default"].createElement("div",{ref:"foldable-content",style:m,dangerouslySetInnerHTML:{__html:(0,h["default"])(t)}}))}}]),t}(c["default"].Component);b.propTypes={action:c["default"].PropTypes.object},t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;na;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.renderKind=u.renderKind.bind(u),u.renderStory=u.renderStory.bind(u),u}return a(t,e),u(t,[{key:"fireOnKind",value:function(e){var t=this.props.onSelectStory;t&&t(e,null)}},{key:"fireOnStory",value:function(e){var t=this.props,n=t.onSelectStory,r=t.selectedKind;n&&n(r,e)}},{key:"renderStory",value:function(e){var t=this.props.selectedStory,n=s({},h),r={key:e,style:n,onClick:this.fireOnStory.bind(this,e)};return e===t&&(n.fontWeight="bold",r.selectedStory=!0),c["default"].createElement("div",r,e)}},{key:"renderKind",value:function(e){var t=e.kind,n=e.stories,r=this.props.selectedKind,o=s({},d);return t===r?(o.fontWeight="bold",c["default"].createElement("div",{key:t},c["default"].createElement("div",{style:o,onClick:this.fireOnKind.bind(this,t),selectedKind:!0},t),c["default"].createElement("div",null,n.map(this.renderStory)))):c["default"].createElement("div",{key:t,style:o,onClick:this.fireOnKind.bind(this,t,null)},t)}},{key:"render",value:function(){var e=this.props.stories;return c["default"].createElement("div",{style:f},e.map(this.renderKind))}}]),t}(c["default"].Component);v.propTypes={stories:c["default"].PropTypes.array.isRequired,selectedKind:c["default"].PropTypes.string.isRequired,selectedStory:c["default"].PropTypes.string.isRequired,onSelectStory:c["default"].PropTypes.func},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n/g,">"),n=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g;return t.replace(n,function(e){var t="number",n=void 0,r=e;return/^"/.test(r)?/:$/.test(r)?(t="key",n="color:#800080",r=e.replace(/"/g,"")):(t="string",n="color:#a31515"):/true|false/.test(r)?(t="boolean",n="color:#066066"):/null|undefined/.test(r)&&(t="null",n="color:#a31515"),''+r+""})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e(l["default"]),n=e(m["default"]),r=document.getElementById("root"),o=i["default"].createElement("div",null,i["default"].createElement(t,{leftPanel:function(){return i["default"].createElement(d["default"],null)},preview:function(){return i["default"].createElement(p["default"],null)},downPanel:function(){return i["default"].createElement(v["default"],null)}}),i["default"].createElement(n,null));u["default"].render(o,r)};var o=n(4),i=r(o),a=n(43),u=r(a),s=n(183),l=r(s),c=n(161),p=r(c),f=n(184),d=r(f),h=n(182),v=r(h),y=n(185),m=r(y)},function(e,t,n){e.exports={"default":n(200),__esModule:!0}},function(e,t,n){e.exports={"default":n(201),__esModule:!0}},function(e,t,n){e.exports={"default":n(202),__esModule:!0}},function(e,t,n){e.exports={"default":n(203),__esModule:!0}},function(e,t,n){e.exports={"default":n(204),__esModule:!0}},function(e,t,n){e.exports={"default":n(205),__esModule:!0}},function(e,t,n){e.exports={"default":n(206),__esModule:!0}},function(e,t,n){e.exports={"default":n(207),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(195),i=r(o),a=n(192),u=r(a),s=n(57),l=r(s);t["default"]=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l["default"])(t)));e.prototype=(0,u["default"])(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i["default"]?(0,i["default"])(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(57),i=r(o);t["default"]=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,i["default"])(t))&&"function"!=typeof t?e:t}},function(e,t,n){n(103),n(102),e.exports=n(228)},function(e,t,n){n(230),e.exports=n(8).Object.assign},function(e,t,n){n(231);var r=n(8).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(232);var r=n(8).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){n(233),e.exports=n(8).Object.getPrototypeOf},function(e,t,n){n(234),e.exports=n(8).Object.setPrototypeOf},function(e,t,n){n(236),n(235),e.exports=n(8).Symbol},function(e,t,n){n(102),n(103),e.exports=n(14)("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(21),o=n(226),i=n(225);e.exports=function(e){return function(t,n,a){var u,s=r(t),l=o(s.length),c=i(a,l);if(e&&n!=n){for(;l>c;)if(u=s[c++],u!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c;return!e&&-1}}},function(e,t,n){var r=n(58),o=n(14)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(u=r(t))&&"function"==typeof t.callee?"Arguments":u}},function(e,t,n){var r=n(39),o=n(62),i=n(40);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,u=n(e),s=i.f,l=0;u.length>l;)s.call(e,a=u[l++])&&t.push(a);return t}},function(e,t,n){e.exports=n(19).document&&document.documentElement},function(e,t,n){var r=n(58);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(61),o=n(41),i=n(63),a={};n(27)(a,n(14)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(39),o=n(21);e.exports=function(e,t){for(var n,i=o(e),a=r(i),u=a.length,s=0;u>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var r=n(42)("meta"),o=n(31),i=n(20),a=n(28).f,u=0,s=Object.isExtensible||function(){return!0},l=!n(26)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[r].i},f=function(e,t){if(!i(e,r)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[r].w},d=function(e){return l&&h.NEED&&s(e)&&!i(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:p,getWeak:f,onFreeze:d}},function(e,t,n){"use strict";var r=n(39),o=n(62),i=n(40),a=n(67),u=n(94),s=Object.assign;e.exports=!s||n(26)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=r})?function(e,t){for(var n=a(e),s=arguments.length,l=1,c=o.f,p=i.f;s>l;)for(var f,d=u(arguments[l++]),h=c?r(d).concat(c(d)):r(d),v=h.length,y=0;v>y;)p.call(d,f=h[y++])&&(n[f]=d[f]);return n}:s},function(e,t,n){var r=n(28),o=n(25),i=n(39);e.exports=n(17)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),u=a.length,s=0;u>s;)r.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var r=n(21),o=n(98).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o.f(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?u(e):o(r(e))}},function(e,t,n){var r=n(18),o=n(8),i=n(26);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(31),o=n(25),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(91)(Function.call,n(97).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(66),o=n(59);e.exports=function(e){return function(t,n){var i,a,u=String(o(t)),s=r(n),l=u.length;return 0>s||s>=l?e?"":void 0:(i=u.charCodeAt(s),55296>i||i>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):i:e?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(e,t,n){var r=n(66),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),0>e?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(66),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(211),o=n(14)("iterator"),i=n(38);e.exports=n(8).getIteratorMethod=function(e){return void 0!=e?e[o]||e["@@iterator"]||i[r(e)]:void 0}},function(e,t,n){var r=n(25),o=n(227);e.exports=n(8).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){"use strict";var r=n(209),o=n(216),i=n(38),a=n(21);e.exports=n(95)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(18);r(r.S+r.F,"Object",{assign:n(219)})},function(e,t,n){var r=n(18);r(r.S,"Object",{create:n(61)})},function(e,t,n){var r=n(18);r(r.S+r.F*!n(17),"Object",{defineProperty:n(28).f})},function(e,t,n){var r=n(67),o=n(99);n(222)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(18);r(r.S,"Object",{setPrototypeOf:n(223).set})},function(e,t){},function(e,t,n){"use strict";var r=n(19),o=n(8),i=n(20),a=n(17),u=n(18),s=n(101),l=n(218).KEY,c=n(26),p=n(65),f=n(63),d=n(42),h=n(14),v=n(217),y=n(212),m=n(214),g=n(25),b=n(21),_=n(68),E=n(41),C=n(61),w=n(221),x=n(97),O=n(28),P=x.f,S=O.f,T=w.f,M=r.Symbol,N=r.JSON,k=N&&N.stringify,R=!1,A="prototype",D=h("_hidden"),I=h("toPrimitive"),j={}.propertyIsEnumerable,L=p("symbol-registry"),F=p("symbols"),U=Object[A],V="function"==typeof M,B=r.QObject,W=a&&c(function(){return 7!=C(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(U,t);r&&delete U[t],S(e,t,n),r&&e!==U&&S(U,t,r)}:S,H=function(e){var t=F[e]=C(M[A]);return t._k=e,a&&R&&W(U,e,{configurable:!0,set:function(t){i(this,D)&&i(this[D],e)&&(this[D][e]=!1),W(this,e,E(1,t))}}),t},K=V&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},z=function(e,t,n){return g(e),t=_(t,!0),g(n),i(F,t)?(n.enumerable?(i(e,D)&&e[D][t]&&(e[D][t]=!1),n=C(n,{enumerable:E(0,!1)})):(i(e,D)||S(e,D,E(1,{})),e[D][t]=!0),W(e,t,n)):S(e,t,n)},q=function(e,t){g(e);for(var n,r=y(t=b(t)),o=0,i=r.length;i>o;)z(e,n=r[o++],t[n]);return e},Y=function(e,t){return void 0===t?C(e):q(C(e),t)},G=function(e){var t=j.call(this,e=_(e,!0));return t||!i(this,e)||!i(F,e)||i(this,D)&&this[D][e]?t:!0},X=function(e,t){var n=P(e=b(e),t=_(t,!0));return!n||!i(F,t)||i(e,D)&&e[D][t]||(n.enumerable=!0),n},$=function(e){for(var t,n=T(b(e)),r=[],o=0;n.length>o;)i(F,t=n[o++])||t==D||t==l||r.push(t);return r},Q=function(e){for(var t,n=T(b(e)),r=[],o=0;n.length>o;)i(F,t=n[o++])&&r.push(F[t]);return r},J=function(e){if(void 0!==e&&!K(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&m(t)||(t=function(e,t){return n&&(t=n.call(this,e,t)),K(t)?void 0:t}),r[1]=t,k.apply(N,r)}},Z=c(function(){var e=M();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))});V||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");return H(d(arguments.length>0?arguments[0]:void 0))},s(M[A],"toString",function(){return this._k}),x.f=X,O.f=z,n(98).f=w.f=$,n(40).f=G,n(62).f=Q,a&&!n(96)&&s(U,"propertyIsEnumerable",G,!0)),u(u.G+u.W+u.F*!V,{Symbol:M});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;){var ne=ee[te++],re=o.Symbol,oe=h(ne);ne in re||S(re,ne,{value:V?oe:H(oe)})}B&&B[A]&&B[A].findChild||(R=!0),u(u.S+u.F*!V,"Symbol",{"for":function(e){return i(L,e+="")?L[e]:L[e]=M(e)},keyFor:function(e){if(K(e))return v(L,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){R=!0},useSimple:function(){R=!1}}),u(u.S+u.F*!V,"Object",{create:Y,defineProperty:z,defineProperties:q,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),N&&u(u.S+u.F*(!V||Z),"JSON",{stringify:J}),M[A][I]||n(27)(M[A],I,M[A].valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:!(e.length>0&&"number"!=typeof e[0]):!1}function i(e,t,n){var i,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return s(t)?(e=a.call(e),t=a.call(t),l(e,t,n)):!1;if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i=0;i--)if(p[i]!=f[i])return!1;for(i=p.length-1;i>=0;i--)if(c=p[i],!l(e[c],t[c],n))return!1;return typeof e==typeof t}var a=Array.prototype.slice,u=n(239),s=n(238),l=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:i(e,t,n)}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){function n(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}function r(e){if(!(this instanceof r))return new r(e);e||(e={}),e.nodeType&&(e={el:e}),this.opts=e,this.el=e.el||document.body,"object"!=typeof this.el&&(this.el=document.querySelector(this.el))}e.exports=function(e){return new r(e)},r.prototype.add=function(e){var t=this.el;if(t){if(""===t.className)return t.className=e;var r=t.className.split(" ");return n(r,e)>-1?r:(r.push(e),t.className=r.join(" "),r)}},r.prototype.remove=function(e){var t=this.el;if(t&&""!==t.className){var r=t.className.split(" "),o=n(r,e);return o>-1&&r.splice(o,1),t.className=r.join(" "),r}},r.prototype.has=function(e){var t=this.el;if(t){var r=t.className.split(" ");return n(r,e)>-1}},r.prototype.toggle=function(e){var t=this.el;t&&(this.has(e)?this.remove(e):this.add(e))}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,o,u,s,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),n.apply(this,u)}else if(i(n))for(u=Array.prototype.slice.call(arguments,1),l=n.slice(),o=l.length,s=0;o>s;s++)l[s].apply(this,u);return!0},n.prototype.addListener=function(e,t){var o;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(o=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,o&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,u;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(u=a;u-- >0;)if(n[u]===t||n[u].listener&&n[u].listener===t){o=u;break}if(0>o)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r;/*! +}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;na;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.state={},u}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props.split,t=["Pane",e,this.props.className],n={flex:1,position:"relative",outline:"none"};return void 0!==this.state.size&&("vertical"===e?n.width=this.state.size:(n.height=this.state.size,n.display="flex"),n.flex="none"),l["default"].createElement("div",{className:t.join(" "),style:n},this.props.children)}}]),t}(s.Component);c.propTypes={split:s.PropTypes.oneOf(["vertical","horizontal"]),className:s.PropTypes.string.isRequired,children:s.PropTypes.object.isRequired},t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;ta;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.onMouseDown=u.onMouseDown.bind(u),u}return a(t,e),s(t,[{key:"onMouseDown",value:function(e){this.props.onMouseDown(e)}},{key:"render",value:function(){var e=this.props,t=e.split,n=e.className,r=e.children,o=["Resizer",t,n],i={};return"vertical"===t?u(i,{height:"100%"}):u(i,{width:"100%"}),c["default"].createElement("div",{style:i,className:o.join(" "),onMouseDown:this.onMouseDown},r)}}]),t}(l.Component);p.propTypes={onMouseDown:l.PropTypes.func.isRequired,split:l.PropTypes.oneOf(["vertical","horizontal"]),className:l.PropTypes.string.isRequired,children:l.PropTypes.node.isRequired},t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;ta;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.onMouseDown=u.onMouseDown.bind(u),u.onMouseMove=u.onMouseMove.bind(u),u.onMouseUp=u.onMouseUp.bind(u),u.state={active:!1,resized:!1},u}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.setSize(this.props,this.state),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove)}},{key:"componentWillReceiveProps",value:function(e){this.setSize(e,this.state)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove)}},{key:"onMouseDown",value:function(e){if(this.props.allowResize&&!this.props.size){this.unFocus();var t="vertical"===this.props.split?e.clientX:e.clientY;"function"==typeof this.props.onDragStarted&&this.props.onDragStarted(),this.setState({active:!0,position:t})}}},{key:"onMouseMove",value:function(e){if(this.props.allowResize&&!this.props.size&&this.state.active){this.unFocus();var t="first"===this.props.primary,n=t?this.refs.pane1:this.refs.pane2;if(n){var r=f["default"].findDOMNode(n);if(r.getBoundingClientRect){var o=r.getBoundingClientRect().width,i=r.getBoundingClientRect().height,a="vertical"===this.props.split?e.clientX:e.clientY,u="vertical"===this.props.split?o:i,s=this.state.position,l=t?s-a:a-s,c=u-l;cthis.props.maxSize?c=this.props.maxSize:this.setState({position:a,resized:!0}),this.props.onChange&&this.props.onChange(c),this.setState({draggedSize:c}),n.setState({size:c})}}}}},{key:"onMouseUp",value:function(){this.props.allowResize&&!this.props.size&&this.state.active&&("function"==typeof this.props.onDragFinished&&this.props.onDragFinished(),this.setState({active:!1}))}},{key:"setSize",value:function(e,t){var n="first"===this.props.primary?this.refs.pane1:this.refs.pane2,r=void 0;n&&(r=e.size||t&&t.draggedSize||e.defaultSize||e.minSize,n.setState({size:r}))}},{key:"unFocus",value:function(){document.selection?document.selection.empty():window.getSelection().removeAllRanges()}},{key:"render",value:function(){var e=this.props,t=e.split,n=e.allowResize,r=n?"":"disabled",o={display:"flex",flex:1,position:"relative",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"};"vertical"===t?u(o,{flexDirection:"row",height:"100%",position:"absolute",left:0,right:0}):u(o,{flexDirection:"column",height:"100%",minHeight:"100%",position:"absolute",top:0,bottom:0,width:"100%"});var i=null;i=this.props.resizerChildren?this.props.resizerChildren:"vertical"===t?c["default"].createElement(y["default"],null):c["default"].createElement(g["default"],null);var a=this.props.children,s=["SplitPane",this.props.className,t,r];return c["default"].createElement("div",{className:s.join(" "),style:o,ref:"splitPane"},c["default"].createElement(h["default"],{ref:"pane1",key:"pane1",className:"Pane1",split:t},a[0]),c["default"].createElement(_["default"],{ref:"resizer",key:"resizer",className:r,onMouseDown:this.onMouseDown,children:i,split:t}),c["default"].createElement(h["default"],{ref:"pane2",key:"pane2",className:"Pane2",split:t},a[1]))}}]),t}(l.Component);E.propTypes={primary:l.PropTypes.oneOf(["first","second"]),minSize:l.PropTypes.number,maxSize:l.PropTypes.number,defaultSize:l.PropTypes.number,size:l.PropTypes.oneOfType([l.PropTypes.number,l.PropTypes.string]),allowResize:l.PropTypes.bool,split:l.PropTypes.oneOf(["vertical","horizontal"]),onDragStarted:l.PropTypes.func,onDragFinished:l.PropTypes.func,onChange:l.PropTypes.func,className:l.PropTypes.string,children:l.PropTypes.arrayOf(l.PropTypes.node).isRequired,resizerChildren:l.PropTypes.node},E.defaultProps={split:"vertical",minSize:50,allowResize:!0,primary:"first"},t["default"]=E,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;na;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.state={},u}return a(t,e),u(t,[{key:"render",value:function(){var e={cursor:"col-resize",background:"#EEEEEE",borderLeft:"solid #E0E0E0 1px",borderRight:"solid #E0E0E0 1px",height:"100%",width:"3px"};return l["default"].createElement("div",{style:e})}}]),t}(s.Component);t["default"]=c,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return{reduxStore:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(35);t["default"]={setStories:function(e,t){var n=e.reduxStore;n.dispatch({type:r.types.SET_STORIES,stories:t})},selectStory:function(e,t,n){var o=e.reduxStore;o.dispatch({type:r.types.SELECT_STORY,kind:t,story:n})},jumpToStory:function(e,t){var n=e.reduxStore;n.dispatch({type:r.types.JUMP_TO_STORY,direction:t})},clearActions:function(e){var t=e.reduxStore;t.dispatch({type:r.types.CLEAR_ACTIONS})},addAction:function(e,t){var n=e.reduxStore;n.dispatch({type:r.types.ADD_ACTION,action:t})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&m[0];return g&&(0,p["default"])(g.data,y.data)?g.count++:(y.count=1,m.unshift(y)),s({},e,{actions:m});default:return e}};var l=n(35),c=n(237),p=r(c),f={actions:[]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(156),i=r(o);t["default"]={api:i["default"]}},[362,35,157],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=r(o),a={width:"100%",height:"100%",border:0,margin:0,padding:0},u=function(e){var t=e.url;return i["default"].createElement("iframe",{style:a,src:t})};u.propTypes={url:i["default"].PropTypes.string},t["default"]=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t,n){var r=t.getState(),o=r.core.dataId;t.subscribe(function(){var n=t.getState(),r=n.api;if(r){var i={kind:r.selectedKind,story:r.selectedStory};e.emit(o+".setCurrentStory",JSON.stringify(i))}}),e.on(o+".addAction",function(e){var t=JSON.parse(e);n.api.addAction(t.action)}),e.on(o+".setStories",function(e){var t=JSON.parse(e);n.api.setStories(t.stories)}),e.on(o+".selectStory",function(e){var t=JSON.parse(e);n.api.selectStory(t.kind,t.story)}),e.on(o+".applyShortcut",function(e){var t=JSON.parse(e);n.shortcuts.handleEvent(t.event)})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.composer=void 0;var o=n(159),i=r(o),a=n(22),u=n(108),s=r(u),l=t.composer=function(e,t){var n=e.context,r=n(),o=r.reduxStore,i=o.getState(),a={dataId:i.core.dataId};i.api&&(a.selectedKind=i.api.selectedKind,a.selectedStory=i.api.selectedStory);var u=s["default"].stringify(a),l="iframe.html?"+u;t(null,{url:l})};t["default"]=(0,a.composeAll)((0,a.compose)(l),(0,a.useDeps)())(i["default"])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(263),i=r(o),a=n(160),u=r(a);t["default"]={load:function(e,t){var n=e.reduxStore,r=(0,i["default"])();(0,u["default"])(r,n,t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(54),i=n(53),a=n(35),u=r(a);t["default"]={handleEvent:function(e,t){var n=e.reduxStore;switch(t){case i.features.NEXT_STORY:u["default"].api.jumpToStory(e,1);break;case i.features.PREV_STORY:u["default"].api.jumpToStory(e,-1);break;default:n.dispatch({type:o.types.HANDLE_EVENT,event:t})}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(165),i=r(o);t["default"]={shortcuts:i["default"]}},function(e,t,n){"use strict";function r(e,t){switch(t){case a.features.FULLSCREEN:return{goFullScreen:!e.goFullScreen};case a.features.DOWN_PANEL:return{showDownPanel:!e.showDownPanel};case a.features.LEFT_PANEL:return{showLeftPanel:!e.showLeftPanel};default:return{}}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t1&&c["default"].createElement("span",{style:g},e.count),c["default"].createElement("div",{style:y},c["default"].createElement("span",{ref:"foldable-toggle",onClick:this.onToggleCallback},this.state.collapsed?"►":"▼")),c["default"].createElement("div",{ref:"foldable-content",style:m,dangerouslySetInnerHTML:{__html:(0,h["default"])(t)}}))}}]),t}(c["default"].Component);b.propTypes={action:c["default"].PropTypes.object},t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;na;a++)r[a]=arguments[a];var u=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return u.renderKind=u.renderKind.bind(u),u.renderStory=u.renderStory.bind(u),u}return a(t,e),u(t,[{key:"fireOnKind",value:function(e){var t=this.props.onSelectStory;t&&t(e,null)}},{key:"fireOnStory",value:function(e){var t=this.props,n=t.onSelectStory,r=t.selectedKind;n&&n(r,e)}},{key:"renderStory",value:function(e){var t=this.props.selectedStory,n=s({},h),r={key:e,style:n,onClick:this.fireOnStory.bind(this,e)};return e===t&&(n.fontWeight="bold",r.selectedStory=!0),c["default"].createElement("div",r,e)}},{key:"renderKind",value:function(e){var t=e.kind,n=e.stories,r=this.props.selectedKind,o=s({},d);return t===r?(o.fontWeight="bold",c["default"].createElement("div",{key:t},c["default"].createElement("div",{style:o,onClick:this.fireOnKind.bind(this,t),selectedKind:!0},t),c["default"].createElement("div",null,n.map(this.renderStory)))):c["default"].createElement("div",{key:t,style:o,onClick:this.fireOnKind.bind(this,t,null)},t)}},{key:"render",value:function(){var e=this.props.stories;return c["default"].createElement("div",{style:f},e.map(this.renderKind))}}]),t}(c["default"].Component);v.propTypes={stories:c["default"].PropTypes.array.isRequired,selectedKind:c["default"].PropTypes.string.isRequired,selectedStory:c["default"].PropTypes.string.isRequired,onSelectStory:c["default"].PropTypes.func},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n/g,">"),n=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g;return t.replace(n,function(e){var t="number",n=void 0,r=e;return/^"/.test(r)?/:$/.test(r)?(t="key",n="color:#800080",r=e.replace(/"/g,"")):(t="string",n="color:#a31515"):/true|false/.test(r)?(t="boolean",n="color:#066066"):/null|undefined/.test(r)&&(t="null",n="color:#a31515"),''+r+""})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e(l["default"]),n=e(m["default"]),r=document.getElementById("root"),o=i["default"].createElement("div",null,i["default"].createElement(t,{leftPanel:function(){return i["default"].createElement(d["default"],null)},preview:function(){return i["default"].createElement(p["default"],null)},downPanel:function(){return i["default"].createElement(v["default"],null)}}),i["default"].createElement(n,null));u["default"].render(o,r)};var o=n(4),i=r(o),a=n(43),u=r(a),s=n(183),l=r(s),c=n(161),p=r(c),f=n(184),d=r(f),h=n(182),v=r(h),y=n(185),m=r(y)},function(e,t,n){e.exports={"default":n(200),__esModule:!0}},function(e,t,n){e.exports={"default":n(201),__esModule:!0}},function(e,t,n){e.exports={"default":n(202),__esModule:!0}},function(e,t,n){e.exports={"default":n(203),__esModule:!0}},function(e,t,n){e.exports={"default":n(204),__esModule:!0}},function(e,t,n){e.exports={"default":n(205),__esModule:!0}},function(e,t,n){e.exports={"default":n(206),__esModule:!0}},function(e,t,n){e.exports={"default":n(207),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(195),i=r(o),a=n(192),u=r(a),s=n(57),l=r(s);t["default"]=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l["default"])(t)));e.prototype=(0,u["default"])(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i["default"]?(0,i["default"])(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(57),i=r(o);t["default"]=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,i["default"])(t))&&"function"!=typeof t?e:t}},function(e,t,n){n(103),n(102),e.exports=n(228)},function(e,t,n){n(230),e.exports=n(8).Object.assign},function(e,t,n){n(231);var r=n(8).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(232);var r=n(8).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){n(233),e.exports=n(8).Object.getPrototypeOf},function(e,t,n){n(234),e.exports=n(8).Object.setPrototypeOf},function(e,t,n){n(236),n(235),e.exports=n(8).Symbol},function(e,t,n){n(102),n(103),e.exports=n(14)("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(21),o=n(226),i=n(225);e.exports=function(e){return function(t,n,a){var u,s=r(t),l=o(s.length),c=i(a,l);if(e&&n!=n){for(;l>c;)if(u=s[c++],u!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c;return!e&&-1}}},function(e,t,n){var r=n(58),o=n(14)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(u=r(t))&&"function"==typeof t.callee?"Arguments":u}},function(e,t,n){var r=n(39),o=n(62),i=n(40);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,u=n(e),s=i.f,l=0;u.length>l;)s.call(e,a=u[l++])&&t.push(a);return t}},function(e,t,n){e.exports=n(19).document&&document.documentElement},function(e,t,n){var r=n(58);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(61),o=n(41),i=n(63),a={};n(27)(a,n(14)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(39),o=n(21);e.exports=function(e,t){for(var n,i=o(e),a=r(i),u=a.length,s=0;u>s;)if(i[n=a[s++]]===t)return n}},function(e,t,n){var r=n(42)("meta"),o=n(31),i=n(20),a=n(28).f,u=0,s=Object.isExtensible||function(){return!0},l=!n(26)(function(){return s(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[r].i},f=function(e,t){if(!i(e,r)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[r].w},d=function(e){return l&&h.NEED&&s(e)&&!i(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:p,getWeak:f,onFreeze:d}},function(e,t,n){"use strict";var r=n(39),o=n(62),i=n(40),a=n(67),u=n(94),s=Object.assign;e.exports=!s||n(26)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=r})?function(e,t){for(var n=a(e),s=arguments.length,l=1,c=o.f,p=i.f;s>l;)for(var f,d=u(arguments[l++]),h=c?r(d).concat(c(d)):r(d),v=h.length,y=0;v>y;)p.call(d,f=h[y++])&&(n[f]=d[f]);return n}:s},function(e,t,n){var r=n(28),o=n(25),i=n(39);e.exports=n(17)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),u=a.length,s=0;u>s;)r.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var r=n(21),o=n(98).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o.f(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?u(e):o(r(e))}},function(e,t,n){var r=n(18),o=n(8),i=n(26);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(31),o=n(25),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(91)(Function.call,n(97).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(66),o=n(59);e.exports=function(e){return function(t,n){var i,a,u=String(o(t)),s=r(n),l=u.length;return 0>s||s>=l?e?"":void 0:(i=u.charCodeAt(s),55296>i||i>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):i:e?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(e,t,n){var r=n(66),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),0>e?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(66),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(211),o=n(14)("iterator"),i=n(38);e.exports=n(8).getIteratorMethod=function(e){return void 0!=e?e[o]||e["@@iterator"]||i[r(e)]:void 0}},function(e,t,n){var r=n(25),o=n(227);e.exports=n(8).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){"use strict";var r=n(209),o=n(216),i=n(38),a=n(21);e.exports=n(95)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(18);r(r.S+r.F,"Object",{assign:n(219)})},function(e,t,n){var r=n(18);r(r.S,"Object",{create:n(61)})},function(e,t,n){var r=n(18);r(r.S+r.F*!n(17),"Object",{defineProperty:n(28).f})},function(e,t,n){var r=n(67),o=n(99);n(222)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(18);r(r.S,"Object",{setPrototypeOf:n(223).set})},function(e,t){},function(e,t,n){"use strict";var r=n(19),o=n(8),i=n(20),a=n(17),u=n(18),s=n(101),l=n(218).KEY,c=n(26),p=n(65),f=n(63),d=n(42),h=n(14),v=n(217),y=n(212),m=n(214),g=n(25),b=n(21),_=n(68),E=n(41),C=n(61),w=n(221),x=n(97),O=n(28),P=x.f,S=O.f,T=w.f,M=r.Symbol,N=r.JSON,k=N&&N.stringify,R=!1,A="prototype",D=h("_hidden"),I=h("toPrimitive"),j={}.propertyIsEnumerable,L=p("symbol-registry"),F=p("symbols"),U=Object[A],V="function"==typeof M,B=r.QObject,W=a&&c(function(){return 7!=C(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(U,t);r&&delete U[t],S(e,t,n),r&&e!==U&&S(U,t,r)}:S,H=function(e){var t=F[e]=C(M[A]);return t._k=e,a&&R&&W(U,e,{configurable:!0,set:function(t){i(this,D)&&i(this[D],e)&&(this[D][e]=!1),W(this,e,E(1,t))}}),t},K=V&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},z=function(e,t,n){return g(e),t=_(t,!0),g(n),i(F,t)?(n.enumerable?(i(e,D)&&e[D][t]&&(e[D][t]=!1),n=C(n,{enumerable:E(0,!1)})):(i(e,D)||S(e,D,E(1,{})),e[D][t]=!0),W(e,t,n)):S(e,t,n)},q=function(e,t){g(e);for(var n,r=y(t=b(t)),o=0,i=r.length;i>o;)z(e,n=r[o++],t[n]);return e},Y=function(e,t){return void 0===t?C(e):q(C(e),t)},G=function(e){var t=j.call(this,e=_(e,!0));return t||!i(this,e)||!i(F,e)||i(this,D)&&this[D][e]?t:!0},X=function(e,t){var n=P(e=b(e),t=_(t,!0));return!n||!i(F,t)||i(e,D)&&e[D][t]||(n.enumerable=!0),n},$=function(e){for(var t,n=T(b(e)),r=[],o=0;n.length>o;)i(F,t=n[o++])||t==D||t==l||r.push(t);return r},Q=function(e){for(var t,n=T(b(e)),r=[],o=0;n.length>o;)i(F,t=n[o++])&&r.push(F[t]);return r},J=function(e){if(void 0!==e&&!K(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&m(t)||(t=function(e,t){return n&&(t=n.call(this,e,t)),K(t)?void 0:t}),r[1]=t,k.apply(N,r)}},Z=c(function(){var e=M();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))});V||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");return H(d(arguments.length>0?arguments[0]:void 0))},s(M[A],"toString",function(){return this._k}),x.f=X,O.f=z,n(98).f=w.f=$,n(40).f=G,n(62).f=Q,a&&!n(96)&&s(U,"propertyIsEnumerable",G,!0)),u(u.G+u.W+u.F*!V,{Symbol:M});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;){var ne=ee[te++],re=o.Symbol,oe=h(ne);ne in re||S(re,ne,{value:V?oe:H(oe)})}B&&B[A]&&B[A].findChild||(R=!0),u(u.S+u.F*!V,"Symbol",{"for":function(e){return i(L,e+="")?L[e]:L[e]=M(e)},keyFor:function(e){if(K(e))return v(L,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){R=!0},useSimple:function(){R=!1}}),u(u.S+u.F*!V,"Object",{create:Y,defineProperty:z,defineProperties:q,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),N&&u(u.S+u.F*(!V||Z),"JSON",{stringify:J}),M[A][I]||n(27)(M[A],I,M[A].valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:!(e.length>0&&"number"!=typeof e[0]):!1}function i(e,t,n){var i,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return s(t)?(e=a.call(e),t=a.call(t),l(e,t,n)):!1;if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i=0;i--)if(p[i]!=f[i])return!1;for(i=p.length-1;i>=0;i--)if(c=p[i],!l(e[c],t[c],n))return!1;return typeof e==typeof t}var a=Array.prototype.slice,u=n(239),s=n(238),l=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:i(e,t,n)}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){function n(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}function r(e){if(!(this instanceof r))return new r(e);e||(e={}),e.nodeType&&(e={el:e}),this.opts=e,this.el=e.el||document.body,"object"!=typeof this.el&&(this.el=document.querySelector(this.el))}e.exports=function(e){return new r(e)},r.prototype.add=function(e){var t=this.el;if(t){if(""===t.className)return t.className=e;var r=t.className.split(" ");return n(r,e)>-1?r:(r.push(e),t.className=r.join(" "),r)}},r.prototype.remove=function(e){var t=this.el;if(t&&""!==t.className){var r=t.className.split(" "),o=n(r,e);return o>-1&&r.splice(o,1),t.className=r.join(" "),r}},r.prototype.has=function(e){var t=this.el;if(t){var r=t.className.split(" ");return n(r,e)>-1}},r.prototype.toggle=function(e){var t=this.el;t&&(this.has(e)?this.remove(e):this.add(e))}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,o,u,s,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),n.apply(this,u)}else if(i(n))for(u=Array.prototype.slice.call(arguments,1),l=n.slice(),o=l.length,s=0;o>s;s++)l[s].apply(this,u);return!0},n.prototype.addListener=function(e,t){var o;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(o=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,o&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,u;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(u=a;u-- >0;)if(n[u]===t||n[u].listener&&n[u].listener===t){o=u;break}if(0>o)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r;/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. diff --git a/dist/manager.js.map b/dist/manager.js.map index e93c1e4a1e8..f2284b23188 100644 --- a/dist/manager.js.map +++ b/dist/manager.js.map @@ -1 +1 @@ -{"version":3,"file":"manager.js","sources":["webpack:///manager.js","webpack:///"],"mappings":"AAAA;ACkgIA;;;;;;;;;;;;;;AAwvDA;;;;;;;;;;;AA6+CA;AAijJA;AAi/DA;;;;;AAynEA;;;AAqRA;AA02HA;AA27HA;AAqjHA","sourceRoot":""} \ No newline at end of file +{"version":3,"file":"manager.js","sources":["webpack:///manager.js","webpack:///"],"mappings":"AAAA;ACkgIA;;;;;;;;;;;;;;AAwvDA;;;;;;;;;;;AA6+CA;AAijJA;AAk/DA;;;;;AAgoEA;;;AAqRA;AA02HA;AA27HA;AAqjHA","sourceRoot":""} \ No newline at end of file diff --git a/src/client/manager/modules/ui/components/left_panel/index.js b/src/client/manager/modules/ui/components/left_panel/index.js index ff35734402a..4b4d401871c 100644 --- a/src/client/manager/modules/ui/components/left_panel/index.js +++ b/src/client/manager/modules/ui/components/left_panel/index.js @@ -4,6 +4,11 @@ import Stories from './stories'; import TextFilter from './text_filter'; import pick from 'lodash.pick'; +const scrollStyle = { + height: '100vh', + overflowY: 'auto', +}; + const mainStyle = { padding: 20, }; @@ -11,14 +16,16 @@ const mainStyle = { const storyProps = ['stories', 'selectedKind', 'selectedStory', 'onSelectStory']; const LeftPanel = (props) => ( -
-
- props.onStoryFilter('')} - onChange={(text) => props.onStoryFilter(text)} - /> - {props.stories ? () : null} +
+
+
+ props.onStoryFilter('')} + onChange={(text) => props.onStoryFilter(text)} + /> + {props.stories ? () : null} +
); diff --git a/src/client/manager/modules/ui/components/left_panel/stories.js b/src/client/manager/modules/ui/components/left_panel/stories.js index 5a180fde5aa..ca2afcf51fb 100644 --- a/src/client/manager/modules/ui/components/left_panel/stories.js +++ b/src/client/manager/modules/ui/components/left_panel/stories.js @@ -2,7 +2,6 @@ import React from 'react'; import { baseFonts } from '../theme'; const listStyle = { - overflowY: 'auto', marginTop: 10, ...baseFonts, };